@hamsterbase/evidra 0.6.1 → 0.7.1

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.
Files changed (38) hide show
  1. package/dist/sdk/main.js +9 -0
  2. package/dist/service/cli.js +206 -101
  3. package/dist/web/assets/ProjectFileEditor-Drd5hhbo.js +90 -0
  4. package/dist/web/assets/ProjectFileEditor-uqf4b7Mq.css +1 -0
  5. package/dist/web/assets/{cssMode-Bp9HHvW7.js → cssMode-DLjojEX5.js} +1 -1
  6. package/dist/web/assets/editor-DjpsE8to.css +1 -0
  7. package/dist/web/assets/editor.api-Cm8Jz3Ng.js +908 -0
  8. package/dist/web/assets/{freemarker2-BfnklRK3.js → freemarker2-ffO1wPRi.js} +1 -1
  9. package/dist/web/assets/{handlebars-Dr05HF5Z.js → handlebars-B67yYAds.js} +1 -1
  10. package/dist/web/assets/{html-Ct1uYOSC.js → html-D4vuTio3.js} +1 -1
  11. package/dist/web/assets/{htmlMode-Bn39zG3X.js → htmlMode-Nau5A2BZ.js} +1 -1
  12. package/dist/web/assets/{index-B148ctmz.js → index-DuyTRx9x.js} +2 -2
  13. package/dist/web/assets/{javascript-G8E6TtRr.js → javascript-j7PBySIN.js} +1 -1
  14. package/dist/web/assets/{jsonMode-DsjA0P9q.js → jsonMode-Dlcb-cLx.js} +1 -1
  15. package/dist/web/assets/{liquid-C0Qe68hn.js → liquid-DSGlvFRw.js} +1 -1
  16. package/dist/web/assets/{lspLanguageFeatures-D2cfzE9E.js → lspLanguageFeatures-DUpjT3Ad.js} +1 -1
  17. package/dist/web/assets/{main-Begg-8Nh.css → main-Bl-lTPMD.css} +1 -1
  18. package/dist/web/assets/main-DKZIIy2T.css +2 -0
  19. package/dist/web/assets/main-IQ1sFdJO.js +26 -0
  20. package/dist/web/assets/main-rJTrPQRY.js +18 -0
  21. package/dist/web/assets/{mdx-BrShTA3M.js → mdx-BjjEiDsC.js} +1 -1
  22. package/dist/web/assets/monaco-3fFILk_i.js +58 -0
  23. package/dist/web/assets/{python-BkqIHyNQ.js → python-dNdKGm1p.js} +1 -1
  24. package/dist/web/assets/{razor-DtX8gikg.js → razor-CATEbAgj.js} +1 -1
  25. package/dist/web/assets/{tsMode-Bx3w4Bb_.js → tsMode-BULlPLGv.js} +1 -1
  26. package/dist/web/assets/{typescript-DuX3E9Jz.js → typescript-Cwd0ePfj.js} +1 -1
  27. package/dist/web/assets/{workers-Dj20YQoo.js → workers-C57gUq9G.js} +1 -1
  28. package/dist/web/assets/{xml-CIaN_PJ3.js → xml-DjQsY_vM.js} +1 -1
  29. package/dist/web/assets/{yaml-BqFbaewv.js → yaml-BOOR4cPJ.js} +1 -1
  30. package/dist/web/index.html +1 -1
  31. package/package.json +1 -1
  32. package/dist/web/assets/editor-B8GMDV7_.css +0 -1
  33. package/dist/web/assets/editor.api-BZNIEFbB.js +0 -908
  34. package/dist/web/assets/main-BH8yzSnW.js +0 -26
  35. package/dist/web/assets/main-BRAOizZ3.js +0 -18
  36. package/dist/web/assets/main-CAvFOBUt.css +0 -2
  37. package/dist/web/assets/monaco-CuSMZpTT.js +0 -58
  38. package/dist/web/assets/useDisplayPreference-DTZ1jElj.js +0 -89
@@ -0,0 +1,90 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/monaco-3fFILk_i.js","assets/index-DuyTRx9x.js","assets/editor.api-Cm8Jz3Ng.js","assets/editor-DjpsE8to.css","assets/monaco-n7clI0si.css"])))=>i.map(i=>d[i]);
2
+ import{t as e}from"./index-DuyTRx9x.js";var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),c=(e,t)=>{let r={};for(var i in e)n(r,i,{get:e[i],enumerable:!0});return t||n(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},u=(e,r,i)=>(i=e==null?{}:t(a(e)),l(r||!e||!e.__esModule||!o.call(e,`default`)?n(i,`default`,{value:e,enumerable:!0}):i,e)),d=s((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.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.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`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ee(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var k=/\/+/g;function A(e,t){return typeof e==`object`&&e&&e.key!=null?ee(``+e.key):t.toString(36)}function te(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(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 ne(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,ne(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+A(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(k,`$&/`)+`/`),ne(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(k,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+A(a,u),c+=ne(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+A(a,u++),c+=ne(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ne(te(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 j(e,t,n){if(e==null)return e;var r=[],i=0;return ne(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function M(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var N=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)},re={map:j,forEach:function(e,t,n){j(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return j(e,function(){t++}),t},toArray:function(e){return j(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=re,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},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=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.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 E(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)T.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 E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:M}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,N)}catch(e){N(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),f=s(((e,t)=>{t.exports=d()})),p=u(f(),1),m=e=>{throw TypeError(e)},h=(e,t,n)=>t.has(e)||m(`Cannot `+n),g=(e,t,n)=>(h(e,t,`read from private field`),n?n.call(e):t.get(e)),_=(e,t,n)=>t.has(e)?m(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),v=(e,t,n,r)=>(h(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),y=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,b=/^[\\/]{2}/;function x(e,t){return t+e.replace(/\\/g,`/`)}var S=`popstate`;function C(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function w(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return ee(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:k(t)}return te(t,n,null,e)}function T(e,t){if(e===!1||e==null)throw Error(t)}function E(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function D(){return Math.random().toString(36).substring(2,10)}function O(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function ee(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?A(t):t,state:n,key:t&&t.key||r||D(),mask:i}}function k({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function A(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function te(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=C(e)?e:ee(h.location,e,t);n&&n(r,e),l=u()+1;let d=O(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=C(e)?e:ee(h.location,e,t);n&&n(r,e),l=u();let i=O(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return ne(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(S,d),c=e,()=>{i.removeEventListener(S,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function ne(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),T(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:k(t);return i=i.replace(/ $/,`%20`),!n&&b.test(i)&&(i=r+i),new URL(i,r)}var j,M=class{constructor(e){if(_(this,j,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(g(this,j).has(e))return g(this,j).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){g(this,j).set(e,t)}};j=new WeakMap;var N=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]);function re(e){return N.has(e)}var ie=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`]);function ae(e){return ie.has(e)}function oe(e){return e.index===!0}function P(e,t,n=[],r={},i=!1){return e.map((e,a)=>{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(T(e.index!==!0||!e.children,`Cannot specify children on an index route`),T(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),oe(e)){let n={...e,id:s};return r[s]=F(n,t(n)),n}{let n={...e,id:s,children:void 0};return r[s]=F(n,t(n)),e.children&&(n.children=P(e.children,t,o,r,i)),n}})}function F(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function se(e,t,n=`/`){return ce(e,t,n,!1)}function ce(e,t,n,r,i){let a=Oe((typeof t==`string`?A(t):t).pathname||`/`,n);if(a==null)return null;let o=i??ue(e),s=null,c=De(a);for(let e=0;s==null&&e<o.length;++e)s=Ce(o[e],c,r);return s}function le(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function ue(e){let t=de(e);return pe(t),t}function de(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;T(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=I([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(T(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),de(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:xe(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Ee(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of fe(e.path))a(e,t,!0,n)}),t}function fe(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=fe(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function pe(e){e.sort((e,t)=>e.score===t.score?Se(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var me=/^:[\w-]+$/,he=3,ge=2,_e=1,ve=10,ye=-2,be=e=>e===`*`;function xe(e,t){let n=e.split(`/`),r=n.length;return n.some(be)&&(r+=ye),t&&(r+=ge),n.filter(e=>!be(e)).reduce((e,t)=>e+(me.test(t)?he:t===``?_e:ve),r)}function Se(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function Ce(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?Te(u,l,s.matcher,s.compiledParams):we(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=we({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:I([a,d.pathname]),pathnameBase:ze(I([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=I([a,d.pathnameBase]))}return o}function we(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Ee(e.path,e.caseSensitive,e.end);return Te(e,t,n,r)}function Te(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=Re(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=Re(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Ee(e,t=!1,n=!0){E(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function De(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return E(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Oe(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function ke({basename:e,pathname:t}){return t===`/`?e:I([e,t])}var Ae=e=>y.test(e);function je(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?A(e):e,a;return n?(n=Le(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?Me(n.substring(1),`/`):Me(n,t)):a=t,{pathname:a,search:Be(r),hash:Ve(i)}}function Me(e,t){let n=Re(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Ne(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Pe(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Fe(e){let t=Pe(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Ie(e,t,n,r=!1){let i;typeof e==`string`?i=A(e):(i={...e},T(!i.pathname||!i.pathname.includes(`?`),Ne(`?`,`pathname`,`search`,i)),T(!i.pathname||!i.pathname.includes(`#`),Ne(`#`,`pathname`,`hash`,i)),T(!i.search||!i.search.includes(`#`),Ne(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=je(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Le=e=>e.replace(/[\\/]{2,}/g,`/`),I=e=>Le(e.join(`/`));function Re(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var ze=e=>Re(e).replace(/^\/*/,`/`),Be=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Ve=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,He=(e,t=302)=>{let n=t;typeof n==`number`?n={status:n}:n.status===void 0&&(n.status=302);let r=new Headers(n.headers);return r.set(`Location`,e),new Response(null,{...n,headers:r})},Ue=(e,t)=>{let n=He(e,t);return n.headers.set(`X-Remix-Replace`,`true`),n},We=[`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],Ge=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Ke(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function qe(e){return I(e.map(e=>e.route.path).filter(Boolean))||`/`}var Je=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Ye(e,t){let n=e;if(typeof n!=`string`||!y.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Je)try{let e=new URL(window.location.href),r=b.test(n)?new URL(x(n,e.protocol)):new URL(n),a=Oe(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{E(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var Xe=Symbol(`Uninstrumented`);function Ze(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(n);for(let r of t)e[r]&&n[r].push(e[r])}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=$e(n.lazy,t.lazy,()=>void 0);e&&(r.lazy=e)}if(typeof t.lazy==`object`){let e=t.lazy;[`middleware`,`loader`,`action`].forEach(t=>{let i=e[t],a=n[`lazy.${t}`];if(typeof i==`function`&&a.length>0){let e=$e(a,i,()=>void 0);e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}})}return[`loader`,`action`].forEach(e=>{let i=t[e];if(typeof i==`function`&&n[e].length>0){let t=i[Xe]??i,a=$e(n[e],t,(...e)=>tt(e[0]));a&&(e===`loader`&&t.hydrate===!0&&(a.hydrate=!0),a[Xe]=t,r[e]=a)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=e[Xe]??e,r=$e(n.middleware,t,(...e)=>tt(e[0]));return r?(r[Xe]=t,r):e})),r}function Qe(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}})),n.navigate.length>0){let t=e.navigate[Xe]??e.navigate,r=$e(n.navigate,t,(...t)=>{let[n,r]=t;return{to:typeof n==`number`||typeof n==`string`?n:n?k(n):`.`,...nt(e,r??{})}});r&&(r[Xe]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[Xe]??e.fetch,r=$e(n.fetch,t,(...t)=>{let[n,,r,i]=t;return{href:r??`.`,fetcherKey:n,...nt(e,i??{})}});r&&(r[Xe]=t,e.fetch=r)}return e}function $e(e,t,n){return e.length===0?null:async(...r)=>{let i=await et(e,n(...r),()=>t(...r),e.length-1);if(i.type===`error`)throw i.value;return i.value}}async function et(e,t,n,r){let i=e[r],a;if(i){let o,s=async()=>(o?console.error(`You cannot call instrumented handlers more than once`):o=et(e,t,n,r-1),a=await o,T(a,`Expected a result`),a.type===`error`&&a.value instanceof Error?{status:`error`,error:a.value}:{status:`success`,error:void 0});try{await i(s,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}o||await s(),await o}else try{a={type:`success`,value:await n()}}catch(e){a={type:`error`,value:e}}return a||{type:`error`,value:Error(`No result assigned in instrumentation chain.`)}}function tt(e){let{request:t,context:n,params:r,pattern:i}=e;return{request:rt(t),params:{...r},pattern:i,context:it(n)}}function nt(e,t){return{currentUrl:k(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function rt(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function it(e){if(ot(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var at=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function ot(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===at}var st=new URL(`http://localhost`);function ct(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),st)}catch{return st}}function lt(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function ut(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function dt(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!lt(i,n),s=!lt(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!ut(e,i)||!lt(i,a)))throw Error(`External navigation is not allowed`)}var ft=[`POST`,`PUT`,`PATCH`,`DELETE`],pt=new Set(ft),mt=[`GET`,...ft],ht=new Set(mt),gt=new Set([301,302,303,307,308]),_t=new Set([307,308]),vt={state:`idle`,location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},yt={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},bt={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},xt=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),St=`remix-router-transitions`,Ct=Symbol(`ResetLoaderData`),wt,Tt,Et,Dt,Ot=class{constructor(e){_(this,wt),_(this,Tt),_(this,Et),_(this,Dt),v(this,wt,e),v(this,Tt,ue(e))}get stableRoutes(){return g(this,wt)}get activeRoutes(){return g(this,Et)??g(this,wt)}get branches(){return g(this,Dt)??g(this,Tt)}get hasHMRRoutes(){return g(this,Et)!=null}setRoutes(e){v(this,wt,e),v(this,Tt,ue(e))}setHmrRoutes(e){v(this,Et,e),v(this,Dt,ue(e))}commitHmrRoutes(){g(this,Et)&&(v(this,wt,g(this,Et)),v(this,Tt,g(this,Dt)),v(this,Et,void 0),v(this,Dt,void 0))}};wt=new WeakMap,Tt=new WeakMap,Et=new WeakMap,Dt=new WeakMap;function kt(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;T(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties||xt,a=i;if(e.instrumentations){let t=e.instrumentations;a=e=>({...i(e),...Ze(t.map(e=>e.route).filter(Boolean),e)})}let o={},s=new Ot(P(e.routes,a,void 0,o)),c=e.basename||`/`;c.startsWith(`/`)||(c=`/${c}`);let l=e.dataStrategy||Kt,u={...e.future},d=null,f=new Set,p=null,m=null,h=null,g=null,_=e.hydrationData!=null,v=ce(s.activeRoutes,e.history.location,c,!1,s.branches),y=!1,x=null,S,C;if(v==null&&!e.patchRoutesOnNavigation){let t=vn(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=_n(s.activeRoutes);S=!0,C=!S,v=n,x={[r.id]:t}}else if(v&&!e.hydrationData&&lt(v,s.activeRoutes,e.history.location.pathname).active&&(v=null),!v){S=!1,C=!S,v=[];let t=lt(null,s.activeRoutes,e.history.location.pathname);t.active&&t.matches&&(y=!0,v=t.matches)}else if(v.some(e=>e.route.lazy))S=!1,C=!S;else if(!v.some(e=>Pt(e.route)))S=!0,C=!S;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=v;if(n){let e=v.findIndex(e=>n[e.route.id]!==void 0);r=r.slice(0,e+1)}C=!1,S=!0,r.forEach(e=>{let r=Ft(e.route,t,n);C||=r.renderFallback,S&&=!r.shouldLoad})}let w,D={historyAction:e.history.action,location:e.history.location,matches:v,initialized:S,renderFallback:C,navigation:vt,restoreScrollPosition:e.hydrationData==null&&null,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||x,fetchers:new Map,blockers:new Map},O=`POP`,te=null,j=!1,N,re=!1,ie=new Map,ae=null,oe=!1,F=!1,se=new Set,ue=new Map,de=0,fe=-1,pe=new Map,me=new Set,he=new Map,ge=new Map,_e=new Set,ve=new Map,ye,be=null;function xe(){if(d=e.history.listen(({action:t,location:n,delta:r})=>{if(ye){ye(),ye=void 0;return}E(ve.size===0||r!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=rt({currentLocation:D.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{ye=e});e.history.go(r*-1),nt(i,{state:`blocked`,location:n,proceed(){nt(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(D.blockers);e.set(i,bt),we({blockers:e})}}),te?.resolve(),te=null}else return ke(t,n)}),n){Hn(t,ie);let e=()=>Un(t,ie);t.addEventListener(`pagehide`,e),ae=()=>t.removeEventListener(`pagehide`,e)}return D.initialized||ke(`POP`,D.location,{initialHydration:!0}),w}function Se(){d&&d(),ae&&ae(),f.clear(),N&&N.abort(),D.fetchers.forEach((e,t)=>Ge(D.fetchers,t)),D.blockers.forEach((e,t)=>tt(t))}function Ce(e){if(f.add(e),p){let{newErrors:t}=p;p=null,e(D,{deletedFetchers:[],newErrors:t,viewTransitionOpts:void 0,flushSync:!1})}return()=>f.delete(e)}function we(e,t={}){e.matches&&=e.matches.map(e=>{let t=o[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),D={...D,...e};let n=[],r=[];D.fetchers.forEach((e,t)=>{e.state===`idle`&&(_e.has(t)?n.push(t):r.push(t))}),_e.forEach(e=>{!D.fetchers.has(e)&&!ue.has(e)&&n.push(e)}),f.size===0&&(p={newErrors:e.errors??null}),[...f].forEach(r=>r(D,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),n.forEach(e=>Ge(D.fetchers,e)),r.forEach(e=>D.fetchers.delete(e))}function Te(t,n,{flushSync:r}={}){let i=D.actionData!=null&&D.navigation.formMethod!=null&&Nn(D.navigation.formMethod)&&D.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?D.actionData:null;let o=n.loaderData?mn(D.loaderData,n.loaderData,n.matches||[],n.errors):D.loaderData,c=D.blockers;c.size>0&&(c=new Map(c),c.forEach((e,t)=>c.set(t,bt)));let l=!oe&&ct(t,n.matches||D.matches),u=j===!0||D.navigation.formMethod!=null&&Nn(D.navigation.formMethod)&&t.state?._isRedirect!==!0;s.commitHmrRoutes(),oe||O===`POP`||(O===`PUSH`?e.history.push(t,t.state):O===`REPLACE`&&e.history.replace(t,t.state));let d;if(O===`POP`&&!oe&&t!==D.location){let e=ie.get(D.location.pathname);e&&e.has(t.pathname)?d={currentLocation:D.location,nextLocation:t}:ie.has(t.pathname)&&(d={currentLocation:t,nextLocation:D.location})}else if(re){let e=ie.get(D.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),ie.set(D.location.pathname,e)),d={currentLocation:D.location,nextLocation:t}}we({...n,actionData:a,loaderData:o,historyAction:O,location:t,initialized:!0,renderFallback:!1,navigation:vt,revalidation:`idle`,restoreScrollPosition:l,preventScrollReset:u,blockers:c},{viewTransitionOpts:d,flushSync:r===!0}),O=`POP`,j=!1,re=!1,oe=!1,F=!1,te?.resolve(),te=null,be?.resolve(),be=null}async function Ee(t,n){if(te?.resolve(),te=null,typeof t==`number`){te||=Wn();let n=te.promise;return e.history.go(t),n}let{path:r,submission:i,error:a}=Mt(!1,jt(D.location,D.matches,c,t,n?.fromRouteId,n?.relative),n),o;if(n?.mask){let t=typeof n.mask==`string`?A(n.mask):{...D.location.mask,...n.mask};if(o={pathname:t.pathname??``,search:t.search??``,hash:t.hash??``},b.test(o.pathname))throw Error(`External navigation is not allowed`);o.pathname.startsWith(`\\`)&&(o.pathname=o.pathname.replace(/^\\+/,`/`)),dt(typeof n.mask==`string`?n.mask:k(n.mask),k(o),e.history.createURL(`/`),`reject`)}let s=D.location,l=ee(s,r,n&&n.state,void 0,o);l={...l,...e.history.encodeLocation(l)},dt(t==null?e.history.createHref(D.location):typeof t==`string`?t:k(t),e.history.createHref(l.mask||l),e.history.createURL(`/`),`reject`);let u=n&&n.replace!=null?n.replace:void 0,d=`PUSH`;u===!0?d=`REPLACE`:u===!1||i!=null&&Nn(i.formMethod)&&i.formAction===D.location.pathname+D.location.search&&(d=`REPLACE`);let f=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,p=(n&&n.flushSync)===!0,m=rt({currentLocation:s,nextLocation:l,historyAction:d});m?nt(m,{state:`blocked`,location:l,proceed(){nt(m,{state:`proceeding`,proceed:void 0,reset:void 0,location:l}),Ee(t,n)},reset(){let e=new Map(D.blockers);e.set(m,bt),we({blockers:e})}}):await ke(d,l,{submission:i,pendingError:a,preventScrollReset:f,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:p,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate})}function De(){be||=Wn(),Be(),we({revalidation:`loading`});let e=be.promise;return D.navigation.state===`submitting`?e:D.navigation.state===`idle`?(ke(D.historyAction,D.location,{startUninterruptedRevalidation:!0}),e):(ke(O||D.historyAction,D.navigation.location,{overrideNavigation:D.navigation,enableViewTransition:re===!0}),e)}async function ke(t,n,r){N&&N.abort(),N=null,O=t,oe=(r&&r.startUninterruptedRevalidation)===!0,st(D.location,D.matches),j=(r&&r.preventScrollReset)===!0,re=(r&&r.enableViewTransition)===!0;let i=s.activeRoutes,a=r?.initialHydration&&D.matches&&D.matches.length>0&&!y?D.matches:ce(i,n,c,!1,s.branches),o=(r&&r.flushSync)===!0;if(a&&D.initialized&&!F&&xn(D.location,n)&&!(r&&r.submission&&Nn(r.submission.formMethod))){Te(n,{matches:a},{flushSync:o});return}let l=lt(a,i,n.pathname);if(l.active&&l.matches&&(a=l.matches),!a){let{error:e,notFoundMatches:t,route:r}=it(n.pathname);Te(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:o});return}let u=r&&r.overrideNavigation?{...r.overrideNavigation,matches:a,historyAction:t}:void 0;N=new AbortController;let d=cn(e.history,n,N.signal,r&&r.submission),f=e.getContext?await e.getContext():new M,p;if(r&&r.pendingError)p=[gn(a).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&Nn(r.submission.formMethod)){let i=await je(d,n,r.submission,a,t,f,l.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:o});if(i.shortCircuited)return;if(i.pendingActionResult){let[e,t]=i.pendingActionResult;if(En(t)&&Ke(t.error)&&t.error.status===404){N=null,Te(n,{matches:i.matches,loaderData:{},errors:{[e]:t.error}});return}}a=i.matches||a,p=i.pendingActionResult,u=Ln(n,a,t,r.submission),o=!1,l.active=!1,d=cn(e.history,d.url,d.signal)}let{shortCircuited:m,matches:h,loaderData:g,errors:_,workingFetchers:v}=await Me(d,n,a,t,f,l.active,u,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,o,p,r&&r.callSiteDefaultShouldRevalidate);m||(N=null,Te(n,{matches:h||a,...hn(p),loaderData:g,errors:_,...v?{fetchers:v}:{}}))}async function je(t,n,i,l,u,d,f,p,m={}){if(Be(),we({navigation:Rn(n,l,u,i)},{flushSync:m.flushSync===!0}),f){let e=await ut(l,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=_n(s.activeRoutes);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=gn(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}if(e.matches)l=e.matches;else{let{notFoundMatches:e,error:t,route:r}=it(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:`error`,error:t}]}}}let h,g=Fn(l,n);if(!g.route.action&&!g.route.lazy)h={type:`error`,error:vn(405,{method:t.method,pathname:n.pathname,routeId:g.route.id})};else{let e=await Re(t,n,Qt(a,o,t,n,l,g,p?[]:r,d),d,null);if(h=e[g.route.id],!h){for(let t of l)if(e[t.route.id]){h=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(Dn(h)){let n;return n=m&&m.replace!=null?m.replace:sn(h.response.headers.get(`Location`),new URL(t.url),c,e.history)===D.location.pathname+D.location.search,await I(t,h,!0,{submission:i,replace:n}),{shortCircuited:!0}}if(En(h)){let e=gn(l,g.route.id);return(m&&m.replace)!==!0&&(O=`PUSH`),{matches:l,pendingActionResult:[e.route.id,h,g.route.id]}}return{matches:l,pendingActionResult:[g.route.id,h]}}async function Me(t,n,i,l,u,d,f,p,m,h,g,_,v,y){let b=f||Ln(n,i,l,p),x=p||m||In(b),S=!oe&&!g;if(d){if(S){let e=Ne(v);we({navigation:b,...e===void 0?{}:{actionData:e}},{flushSync:_})}let e=await ut(i,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=_n(s.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=gn(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)i=e.matches;else{let{error:e,notFoundMatches:t,route:r}=it(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let C=s.activeRoutes,{dsMatches:w,revalidatingFetchers:T}=Nt(t,u,a,o,e.history,D,i,x,n,g?[]:r,g===!0,F,se,_e,he,me,C,c,e.patchRoutesOnNavigation!=null,s.branches,v,y);if(fe=++de,!e.dataStrategy&&!w.some(e=>e.shouldLoad)&&!w.some(e=>e.route.middleware&&e.route.middleware.length>0)&&T.length===0){let e=new Map(D.fetchers),t=Xe(e);return Te(n,{matches:i,loaderData:{},errors:v&&En(v[1])?{[v[0]]:v[1].error}:null,...hn(v),...t?{fetchers:e}:{}},{flushSync:_}),{shortCircuited:!0}}if(S){let e={};if(!d){e.navigation=b;let t=Ne(v);t!==void 0&&(e.actionData=t)}T.length>0&&(e.fetchers=Pe(T)),we(e,{flushSync:_})}T.forEach(e=>{Je(e.key),e.controller&&ue.set(e.key,e.controller)});let E=()=>T.forEach(e=>Je(e.key));N&&N.signal.addEventListener(`abort`,E);let{loaderResults:O,fetcherResults:ee}=await ze(w,T,t,n,u);if(t.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener(`abort`,E),T.forEach(e=>ue.delete(e.key));let k=yn(O);if(k)return await I(t,k.result,!0,{replace:h}),{shortCircuited:!0};if(k=yn(ee),k)return me.add(k.key),await I(t,k.result,!0,{replace:h}),{shortCircuited:!0};let A=new Map(D.fetchers),{loaderData:te,errors:ne}=pn(D,i,O,v,T,ee,A);g&&D.errors&&(ne={...D.errors,...ne});let j=Xe(A),M=$e(fe,A),re=j||M||T.length>0;return{matches:i,loaderData:te,errors:ne,...re?{workingFetchers:A}:{}}}function Ne(e){if(e&&!En(e[1]))return{[e[0]]:e[1].data};if(D.actionData)return Object.keys(D.actionData).length===0?null:D.actionData}function Pe(e){let t=new Map(D.fetchers);return e.forEach(e=>{let n=t.get(e.key),r=zn(void 0,n?n.data:void 0);t.set(e.key,r)}),t}async function Fe(t,n,r,i){Je(t);let a=(i&&i.flushSync)===!0,o=s.activeRoutes,l=jt(D.location,D.matches,c,r,n,i?.relative),u=ce(o,l,c,!1,s.branches),d=lt(u,o,l);if(d.active&&d.matches&&(u=d.matches),!u){He(t,n,vn(404,{pathname:l}),{flushSync:a});return}let{path:f,submission:p,error:m}=Mt(!0,l,i);if(m){He(t,n,m,{flushSync:a});return}let h=e.getContext?await e.getContext():new M,g=(i&&i.preventScrollReset)===!0;p&&Nn(p.formMethod)?await Ie(t,n,f,u,h,d.active,a,g,p,i&&i.defaultShouldRevalidate):(he.set(t,{routeId:n,path:f}),await Le(t,n,f,u,h,d.active,a,g,p))}async function Ie(t,n,i,l,u,d,f,p,m,h){Be(),he.delete(t),Ve(t,Bn(m,D.fetchers.get(t)),{flushSync:f});let g=new AbortController,_=cn(e.history,i,g.signal,m);if(d){let e=await ut(l,new URL(_.url).pathname,_.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){He(t,n,e.error,{flushSync:f});return}if(e.matches)l=e.matches;else{He(t,n,vn(404,{pathname:i}),{flushSync:f});return}}let v=Fn(l,i);if(!v.route.action&&!v.route.lazy){He(t,n,vn(405,{method:m.formMethod,pathname:i,routeId:n}),{flushSync:f});return}ue.set(t,g);let y=de,b=Qt(a,o,_,i,l,v,r,u),x=await Re(_,i,b,u,t),S=x[v.route.id];if(!S){for(let e of b)if(x[e.route.id]){S=x[e.route.id];break}}if(_.signal.aborted){ue.get(t)===g&&ue.delete(t);return}if(_e.has(t)){if(Dn(S)||En(S)){Ve(t,Vn(void 0));return}}else{if(Dn(S)){if(ue.delete(t),fe>y){Ve(t,Vn(void 0));return}return me.add(t),Ve(t,zn(m)),I(_,S,!1,{fetcherSubmission:m,preventScrollReset:p})}if(En(S)){He(t,n,S.error);return}}let C=D.navigation.location||D.location,w=cn(e.history,C,g.signal),E=s.activeRoutes,ee=D.navigation.state===`idle`?D.matches:ce(E,D.navigation.location,c,!1,s.branches);T(ee,`Didn't find any matches after fetcher action`);let k=++de;pe.set(t,k);let{dsMatches:A,revalidatingFetchers:te}=Nt(w,u,a,o,e.history,D,ee,m,C,r,!1,F,se,_e,he,me,E,c,e.patchRoutesOnNavigation!=null,s.branches,[v.route.id,S],h),ne=zn(m,S.data),j=new Map(D.fetchers);j.set(t,ne),te.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=j.get(t),r=zn(void 0,n?n.data:void 0);j.set(t,r),Je(t),e.controller&&ue.set(t,e.controller)}),we({fetchers:j});let M=()=>te.forEach(e=>Je(e.key));g.signal.addEventListener(`abort`,M);let{loaderResults:re,fetcherResults:ie}=await ze(A,te,w,C,u);if(g.signal.aborted)return;g.signal.removeEventListener(`abort`,M),pe.delete(t),ue.delete(t),te.forEach(e=>ue.delete(e.key));let ae=D.fetchers.has(t),oe=e=>{if(!ae)return e;let n=new Map(e.fetchers);return n.set(t,Vn(S.data)),{...e,fetchers:n}},P=yn(re);if(P)return D=oe(D),I(w,P.result,!1,{preventScrollReset:p});if(P=yn(ie),P)return me.add(P.key),D=oe(D),I(w,P.result,!1,{preventScrollReset:p});let le=new Map(D.fetchers);ae&&le.set(t,Vn(S.data));let{loaderData:ge,errors:ve}=pn(D,ee,re,void 0,te,ie,le);$e(k,le),D.navigation.state===`loading`&&k>fe?(T(O,`Expected pending action`),N&&N.abort(),Te(D.navigation.location,{matches:ee,loaderData:ge,errors:ve,fetchers:le})):(we({errors:ve,loaderData:mn(D.loaderData,ge,ee,ve),fetchers:le}),F=!1)}async function Le(t,n,i,s,c,l,u,d,f){let p=D.fetchers.get(t);Ve(t,zn(f,p?p.data:void 0),{flushSync:u});let m=new AbortController,h=cn(e.history,i,m.signal);if(l){let e=await ut(s,new URL(h.url).pathname,h.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){He(t,n,e.error,{flushSync:u});return}if(e.matches)s=e.matches;else{He(t,n,vn(404,{pathname:i}),{flushSync:u});return}}let g=Fn(s,i);ue.set(t,m);let _=de,v=await Re(h,i,Qt(a,o,h,i,s,g,r,c),c,t),y=v[g.route.id];if(!y){for(let e of s)if(v[e.route.id]){y=v[e.route.id];break}}if(ue.get(t)===m&&ue.delete(t),!h.signal.aborted){if(_e.has(t))Ve(t,Vn(void 0));else if(Dn(y)){if(fe>_){Ve(t,Vn(void 0));return}me.add(t),await I(h,y,!1,{preventScrollReset:d})}else En(y)?He(t,n,y.error):Ve(t,Vn(y.data))}}async function I(r,i,a,{submission:o,fetcherSubmission:s,preventScrollReset:l,replace:u}={}){a||(te?.resolve(),te=null),i.response.headers.has(`X-Remix-Revalidate`)&&(F=!0);let d=i.response.headers.get(`Location`);T(d,`Expected a Location header on the redirect Response`);let f=d,p=new URL(r.url);d=sn(d,p,c,e.history),dt(f,d,p,`allow-explicit`);let m=ee(D.location,d,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(Ae(d)){let n=ne(t,d,!0);e=n.origin!==t.location.origin||Oe(n.pathname,c)==null}if(e){u?t.location.replace(d):t.location.assign(d);return}}N=null;let h=u===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:g,formAction:_,formEncType:v}=D.navigation;!o&&!s&&g&&_&&v&&(o=In(D.navigation));let y=o||s;_t.has(i.response.status)&&y&&Nn(y.formMethod)?await ke(h,m,{submission:{...y,formAction:d},preventScrollReset:l||j,enableViewTransition:a?re:void 0}):await ke(h,m,{overrideNavigation:Ln(m,[],h,o),fetcherSubmission:s,preventScrollReset:l||j,enableViewTransition:a?re:void 0})}async function Re(e,t,n,r,i){let a,o={};try{a=await $t(l,e,t,n,i,r,!1)}catch(e){return n.filter(e=>e.shouldLoad).forEach(t=>{o[t.route.id]={type:`error`,error:e}}),o}if(e.signal.aborted)return o;if(!Nn(e.method))for(let e of n){if(a[e.route.id]?.type===`error`)break;a.hasOwnProperty(e.route.id)||D.loaderData.hasOwnProperty(e.route.id)||D.errors&&D.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(a[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(a))if(Tn(r)){let i=r.result;o[t]={type:`redirect`,response:rn(i,e,t,n,c)}}else o[t]=await nn(r);return o}async function ze(e,t,n,r,i){let a=Re(n,r,e,i,null),o=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await Re(e.request,e.path,e.matches,i,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:`error`,error:vn(404,{pathname:e.path})}})}));return{loaderResults:await a,fetcherResults:(await o).reduce((e,t)=>Object.assign(e,t),{})}}function Be(){F=!0,he.forEach((e,t)=>{ue.has(t)&&se.add(t),Je(t)})}function Ve(e,t,n={}){let r=new Map(D.fetchers);r.set(e,t),we({fetchers:r},{flushSync:(n&&n.flushSync)===!0})}function He(e,t,n,r={}){let i=gn(D.matches,t),a=new Map(D.fetchers);Ge(a,e),we({errors:{[i.route.id]:n},fetchers:a},{flushSync:(r&&r.flushSync)===!0})}function Ue(e){return ge.set(e,(ge.get(e)||0)+1),_e.has(e)&&_e.delete(e),D.fetchers.get(e)||yt}function We(e,t){Je(e,t?.reason),Ve(e,Vn(null))}function Ge(e,t){let n=D.fetchers.get(t);ue.has(t)&&!(n&&n.state===`loading`&&pe.has(t))&&Je(t),he.delete(t),pe.delete(t),me.delete(t),_e.delete(t),se.delete(t),e.delete(t)}function qe(e){let t=(ge.get(e)||0)-1;t<=0?(ge.delete(e),_e.add(e)):ge.set(e,t),we({fetchers:new Map(D.fetchers)})}function Je(e,t){let n=ue.get(e);n&&(n.abort(t),ue.delete(e))}function Ye(e,t){for(let n of e){let e=t.get(n);T(e,`Expected fetcher: ${n}`);let r=Vn(e.data);t.set(n,r)}}function Xe(e){let t=[],n=!1;for(let r of me){let i=e.get(r);T(i,`Expected fetcher: ${r}`),i.state===`loading`&&(me.delete(r),t.push(r),n=!0)}return Ye(t,e),n}function $e(e,t){let n=[];for(let[r,i]of pe)if(i<e){let e=t.get(r);T(e,`Expected fetcher: ${r}`),e.state===`loading`&&(Je(r),pe.delete(r),n.push(r))}return Ye(n,t),n.length>0}function et(e,t){let n=D.blockers.get(e)||bt;return ve.get(e)!==t&&ve.set(e,t),n}function tt(e){D.blockers.delete(e),ve.delete(e)}function nt(e,t){let n=D.blockers.get(e)||bt;T(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(D.blockers);r.set(e,t),we({blockers:r})}function rt({currentLocation:e,nextLocation:t,historyAction:n}){if(ve.size===0)return;ve.size>1&&E(!1,`A router only supports one blocker at a time`);let r=Array.from(ve.entries()),[i,a]=r[r.length-1],o=D.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function it(e){let t=vn(404,{pathname:e}),n=s.activeRoutes,{matches:r,route:i}=_n(n);return{notFoundMatches:r,route:i,error:t}}function at(e,t,n){if(m=e,g=t,h=n||null,!_&&D.navigation===vt){_=!0;let e=ct(D.location,D.matches);e!=null&&we({restoreScrollPosition:e})}return()=>{m=null,g=null,h=null}}function ot(e,t){return h&&h(e,t.map(e=>le(e,D.loaderData)))||e.key}function st(e,t){if(m&&g){let n=ot(e,t);m[n]=g()}}function ct(e,t){if(m){let n=ot(e,t),r=m[n];if(typeof r==`number`)return r}return null}function lt(t,n,r){if(e.patchRoutesOnNavigation){let e=s.branches;if(!t)return{active:!0,matches:ce(n,r,c,!0,e)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:ce(n,r,c,!0,e)}}return{active:!1,matches:null}}async function ut(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let l=t;for(;;){let t=o;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:l,fetcherKey:i,patch:(e,n)=>{r.aborted||zt(e,n,s,t,a,!1)}})}catch(e){return{type:`error`,error:e,partialMatches:l}}if(r.aborted)return{type:`aborted`};let u=s.branches,d=ce(s.activeRoutes,n,c,!1,u),f=null;if(d&&(Object.keys(d[0].params).length===0||(f=ce(s.activeRoutes,n,c,!0,u),!(f&&l.length<f.length&&ft(l,f.slice(0,l.length))))))return{type:`success`,matches:d};if(f||=ce(s.activeRoutes,n,c,!0,u),!f||ft(l,f))return{type:`success`,matches:null};l=f}}function ft(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function pt(e){o={},s.setHmrRoutes(P(e,a,void 0,o))}function mt(e,t,n=!1){zt(e,t,s,o,a,n),s.hasHMRRoutes||we({})}return w={get basename(){return c},get future(){return u},get state(){return D},get routes(){return s.stableRoutes},get branches(){return s.branches},get manifest(){return o},get window(){return t},initialize:xe,subscribe:Ce,enableScrollRestoration:at,navigate:Ee,fetch:Fe,revalidate:De,createHref:t=>e.history.createHref(t),createURL:t=>e.history.createURL(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Ue,resetFetcher:We,deleteFetcher:qe,dispose:Se,getBlocker:et,deleteBlocker:tt,patchRoutes:mt,_internalFetchControllers:ue,_internalSetRoutes:pt,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){we(e)}},e.instrumentations&&(w=Qe(w,e.instrumentations.map(e=>e.router).filter(Boolean))),w}function At(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function jt(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=Ie(r||`.`,Fe(o),Oe(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=Pn(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=ke({basename:n,pathname:c.pathname})),k(c)}function Mt(e,t,n){if(!n||!At(n))return{path:t};if(n.formMethod&&!Mn(n.formMethod))return{path:t,error:vn(405,{method:n.formMethod})};let r=()=>({path:t,error:vn(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=bn(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!Nn(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}
3
+ `,``):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if(n.formEncType===`application/json`){if(!Nn(i))return r();try{let e=typeof n.body==`string`?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch{return r()}}}T(typeof FormData==`function`,`FormData is not available in this environment`);let o,s;if(n.formData)o=un(n.formData),s=n.formData;else if(n.body instanceof FormData)o=un(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=dn(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=dn(o)}catch{return r()}let c={formMethod:i,formAction:a,formEncType:n&&n.formEncType||`application/x-www-form-urlencoded`,formData:s,json:void 0,text:void 0};if(Nn(c.formMethod))return{path:t,submission:c};let l=A(t);return e&&l.search&&Pn(l.search)&&o.append(`index`,``),l.search=`?${o}`,{path:k(l),submission:c}}function Nt(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x){let S=b?En(b[1])?b[1].error:b[1].data:void 0,C=i.createURL(a.location),w=i.createURL(c),T;if(u&&a.errors){let e=Object.keys(a.errors)[0];T=o.findIndex(t=>t.route.id===e)}else if(b&&En(b[1])){let e=b[0];T=o.findIndex(t=>t.route.id===e)-1}let E=b?b[1].statusCode:void 0,D=E&&E>=400,O={currentUrl:C,currentParams:a.matches[0]?.params||{},nextUrl:w,nextParams:o[0].params,...s,actionResult:S,actionStatus:E},ee=qe(o),k=o.map((i,o)=>{let{route:s}=i,f=null;if(T!=null&&o>T)f=!1;else if(s.lazy)f=!0;else if(!Pt(s))f=!1;else if(u){let{shouldLoad:e}=Ft(s,a.loaderData,a.errors);f=e}else It(a.loaderData,a.matches[o],i)&&(f=!0);if(f!==null)return Zt(n,r,e,c,ee,i,l,t,f);let p=!1;typeof x==`boolean`?p=x:D?p=!1:d||C.pathname+C.search===w.pathname+w.search?p=!0:C.search===w.search?Lt(a.matches[o],i)&&(p=!0):p=!0;let m={...O,defaultShouldRevalidate:p},h=Rt(i,m);return Zt(n,r,e,c,ee,i,l,t,h,m,x)}),A=[];return m.forEach((e,s)=>{if(u||!o.some(t=>t.route.id===e.routeId)||p.has(s))return;let c=a.fetchers.get(s),m=c&&c.state!==`idle`&&c.data===void 0,b=ce(g,e.path,_??`/`,!1,y);if(!b){if(v&&m)return;A.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(h.has(s))return;let S=Fn(b,e.path),C=new AbortController,w=cn(i,e.path,C.signal),T=null;if(f.has(s))f.delete(s),T=Qt(n,r,w,e.path,b,S,l,t);else if(m)d&&(T=Qt(n,r,w,e.path,b,S,l,t));else{let i;i=typeof x==`boolean`?x:!D&&d;let a={...O,defaultShouldRevalidate:i};Rt(S,a)&&(T=Qt(n,r,w,e.path,b,S,l,t,a))}T&&A.push({key:s,routeId:e.routeId,path:e.path,matches:T,match:S,request:w,controller:C})}),{dsMatches:k,revalidatingFetchers:A}}function Pt(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function Ft(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Pt(e))return{shouldLoad:!1,renderFallback:!1};let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;if(!r&&i)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader==`function`&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!i;return{shouldLoad:a,renderFallback:a}}function It(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function Lt(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function Rt(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function zt(e,t,n,r,i,a){let o;if(e){let t=r[e];T(t,`No route found to patch children into: routeId = ${e}`),t.children||=[],o=t.children}else o=n.activeRoutes;let s=[],c=[];if(t.forEach(e=>{let t=o.find(t=>Bt(e,t));t?c.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=P(s,i,[e||`_`,`patch`,String(o?.length||`0`)],r);o.push(...t)}if(a&&c.length>0)for(let e=0;e<c.length;e++){let{existingRoute:t,newRoute:n}=c[e],r=t,[a]=P([n],i,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}function Bt(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index!==t.index||e.path!==t.path||e.caseSensitive!==t.caseSensitive?!1:(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((e,n)=>t.children?.some(t=>Bt(e,t)))??!1}var Vt=new WeakMap,Ht=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(T(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=Vt.get(i);o||(o={},Vt.set(i,o));let s=o[e];if(s)return s;let c=(async()=>{let t=re(e),n=i[e]!==void 0&&e!==`hasErrorBoundary`;if(t)E(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)E(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();t!=null&&(Object.assign(i,{[e]:t}),Object.assign(i,r(i)))}typeof i.lazy==`object`&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>e===void 0)&&(i.lazy=void 0))})();return o[e]=c,c},Ut=new WeakMap;function Wt(e,t,n,r,i){let a=n[e.id];if(T(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=Ut.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{T(typeof e.lazy==`function`,`No lazy route function found`);let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(r===void 0)continue;let i=ae(e),o=a[e]!==void 0&&e!==`hasErrorBoundary`;i?E(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?E(!o,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return Ut.set(a,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let o=Object.keys(e.lazy),s=[],c;for(let a of o){if(i&&i.includes(a))continue;let o=Ht({key:a,route:e,manifest:n,mapRouteProperties:r});o&&(s.push(o),a===t&&(c=o))}let l=s.length>0?Promise.all(s).then(()=>{}):void 0;return l?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:c}}async function Gt(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function Kt(e){return e.matches.some(e=>e.route.middleware)?qt(e,()=>Gt(e)):Gt(e)}function qt(e,t){return Jt(e,t,e=>{if(jn(e))throw e;return e},Cn,n);function n(t,n,r){if(r)return Promise.resolve(Object.assign(r.value,{[n]:{type:`error`,result:t}}));{let{matches:r}=e,i=gn(r,r[Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0))].route.id).route.id;return Promise.resolve({[i]:{type:`error`,result:t}})}}}async function Jt(e,t,n,r,i){let{matches:a,...o}=e;return await Yt(o,a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]),t,n,r,i)}async function Yt(e,t,n,r,i,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??Error(`Request aborted: ${s.method} ${s.url}`);let c=t[o];if(!c)return await n();let[l,u]=c,d,f=async()=>{if(d)throw Error("You may only call `next()` once per middleware");try{return d={value:await Yt(e,t,n,r,i,a,o+1)},d.value}catch(e){return d={value:await a(e,l,d)},d.value}};try{let t=await u(e,f),n=t==null?void 0:r(t);return i(n)?n:d?n??d.value:(d={value:await f()},d.value)}catch(e){return await a(e,l,d)}}function Xt(e,t,n,r,i){let a=Ht({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=Wt(r.route,Nn(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function Zt(e,t,n,r,i,a,o,s,c,l=null,u){let d=!1,f=Xt(e,t,n,a,o);return{...a,_lazyPromises:f,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler(e){return d=!0,l?typeof u==`boolean`?Rt(a,{...l,defaultShouldRevalidate:u}):typeof e==`boolean`?Rt(a,{...l,defaultShouldRevalidate:e}):Rt(a,l):c},resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=d||c||e&&!Nn(n.method)&&(t||o),p=l&&l.length>0&&!o&&!t;return u&&(Nn(n.method)||!p)?en({request:n,path:r,pattern:i,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:s}):Promise.resolve({type:`data`,result:void 0})}}}function Qt(e,t,n,r,i,a,o,s,c=null){return i.map(l=>l.route.id===a.route.id?Zt(e,t,n,r,qe(i),l,o,s,!0,c):{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:Xt(e,t,n,l,o),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function $t(e,t,n,r,i,a,o){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let s={request:t,url:ln(t,n),pattern:qe(r),params:r[0].params,context:a,matches:r},c=o?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=s;return qt(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},l=await e({...s,fetcherKey:i,runClientMiddleware:c});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return l}async function en({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:o,scopedContext:s}){let c,l,u=Nn(e.method),d=u?`action`:`loader`,f=i=>{let a,c=new Promise((e,t)=>a=t);l=()=>a(),e.signal.addEventListener(`abort`,l);let u=a=>typeof i==`function`?i({request:e,url:ln(e,t),pattern:n,params:r.params,context:s},...a===void 0?[]:[a]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)),f=(async()=>{try{return{type:`data`,result:await(o?o(e=>u(e)):u())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([f,c])};try{let t=u?r.route.action:r.route.loader;if(i||a){if(t){let e,[n]=await Promise.all([f(t).catch(t=>{e=t}),i,a]);if(e!==void 0)throw e;c=n}else{await i;let t=u?r.route.action:r.route.loader;if(t)[c]=await Promise.all([f(t),a]);else if(d===`action`){let t=new URL(e.url),n=t.pathname+t.search;throw vn(405,{method:e.method,pathname:n,routeId:r.route.id})}else return{type:`data`,result:void 0}}}else if(t)c=await f(t);else{let t=new URL(e.url);throw vn(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{l&&e.signal.removeEventListener(`abort`,l)}return c}async function tn(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function nn(e){let{result:t,type:n}=e;if(kn(t)){let e;try{e=await tn(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new Ge(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?On(t)?t.data instanceof Error?{type:`error`,error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:Sn(t),statusCode:Ke(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:Ke(t)?t.status:void 0}:On(t)?{type:`data`,data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`data`,data:t}}function rn(e,t,n,r,i){let a=e.headers.get(`Location`);if(T(a,`Redirects returned/thrown from loaders/actions must have a Location header`),!Ae(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=jt(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}var an=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function on(e){try{return an.includes(new URL(e).protocol)}catch{return!1}}function sn(e,t,n,r){if(Ae(e)){let r=e,i=b.test(r)?new URL(x(r,t.protocol)):new URL(r);if(on(i.toString()))throw Error(`Invalid redirect location`);let a=Oe(i.pathname,n)!=null;if(i.origin===t.origin&&a)return Le(i.pathname)+i.search+i.hash}try{if(on(r.createURL(e).toString()))throw Error(`Invalid redirect location`)}catch{}return e}function cn(e,t,n,r){let i=e.createURL(bn(t)).toString(),a={signal:n};if(r&&Nn(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):a.body=t===`text/plain`?r.text:t===`application/x-www-form-urlencoded`&&r.formData?un(r.formData):r.formData}return new Request(i,a)}function ln(e,t){let n=new URL(e.url),r=typeof t==`string`?A(t):t;if(n.pathname=r.pathname||`/`,r.search){let e=new URLSearchParams(r.search),t=e.getAll(`index`);e.delete(`index`);for(let n of t.filter(Boolean))e.append(`index`,n);n.search=e.size?`?${e.toString()}`:``}else n.search=``;return n.hash=r.hash||``,n}function un(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function dn(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function fn(e,t,n,r=!1,i=!1){let a={},o=null,s,c=!1,l={},u=n&&En(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(T(!Dn(f),`Cannot handle redirect results in processLoaderData`),En(f)){let t=f.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=gn(e,d);o[n.route.id]??(o[n.route.id]=t)}r||(a[d]=Ct),c||(c=!0,s=Ke(f.error)?f.error.status:500),f.headers&&(l[d]=f.headers)}else a[d]=f.data,f.statusCode&&f.statusCode!==200&&!c&&(s=f.statusCode),f.headers&&(l[d]=f.headers)}),u!==void 0&&n&&(o={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function pn(e,t,n,r,i,a,o){let{loaderData:s,errors:c}=fn(t,n,r);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:r,controller:i}=t;if(i&&i.signal.aborted)return;let s=a[n];if(T(s,`Did not find corresponding fetcher result`),En(s)){let t=gn(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:s.error}),o.delete(n)}else if(Dn(s))T(!1,`Unhandled fetcher revalidation redirect`);else{let e=Vn(s.data);o.set(n,e)}}),{loaderData:s,errors:c}}function mn(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==Ct).reduce((e,[t,n])=>(e[t]=n,e),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(i[n]=e[n]),r&&r.hasOwnProperty(n))break}return i}function hn(e){return e?En(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function gn(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.hasErrorBoundary===!0)||e[0]}function _n(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function vn(e,{pathname:t,routeId:n,method:r,type:i,message:a}={}){let o=`Unknown Server Error`,s=`Unknown @remix-run/router error`;return e===400?(o=`Bad Request`,r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i===`invalid-body`&&(s=`Unable to encode submission body`)):e===403?(o=`Forbidden`,s=`Route "${n}" does not match URL "${t}"`):e===404?(o=`Not Found`,s=`No route matches URL "${t}"`):e===405&&(o=`Method Not Allowed`,r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new Ge(e||500,o,Error(s),!0)}function yn(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(Dn(r))return{key:n,result:r}}}function bn(e){return k({...typeof e==`string`?A(e):e,hash:``})}function xn(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash||t.hash!==``}function Sn(e){return new Ge(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function Cn(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&wn(t))}function wn(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function Tn(e){return kn(e.result)&&gt.has(e.result.status)}function En(e){return e.type===`error`}function Dn(e){return(e&&e.type)===`redirect`}function On(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function kn(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function An(e){return gt.has(e)}function jn(e){return kn(e)&&An(e.status)&&e.headers.has(`Location`)}function Mn(e){return ht.has(e.toUpperCase())}function Nn(e){return pt.has(e.toUpperCase())}function Pn(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function Fn(e,t){let n=typeof t==`string`?A(t).search:t.search;if(e[e.length-1].route.index&&Pn(n||``))return e[e.length-1];let r=Pe(e);return r[r.length-1]}function In(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(t&&n&&r){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function Ln(e,t,n,r){return r?{state:`loading`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:`loading`,location:e,matches:t,historyAction:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Rn(e,t,n,r){return{state:`submitting`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function zn(e,t){return e?{state:`loading`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:`loading`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Bn(e,t){return{state:`submitting`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Vn(e){return{state:`idle`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Hn(e,t){try{let n=e.sessionStorage.getItem(St);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function Un(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(St,JSON.stringify(n))}catch(e){E(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}function Wn(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Gn=p.createContext(null);Gn.displayName=`DataRouter`;var Kn=p.createContext(null);Kn.displayName=`DataRouterState`;var qn=p.createContext(!1);function Jn(){return p.useContext(qn)}var Yn=p.createContext({isTransitioning:!1});Yn.displayName=`ViewTransition`;var Xn=p.createContext(new Map);Xn.displayName=`Fetchers`;var Zn=p.createContext(null);Zn.displayName=`Await`;var Qn=p.createContext(null);Qn.displayName=`Navigation`;var $n=p.createContext(null);$n.displayName=`Location`;var er=p.createContext({outlet:null,matches:[],isDataRoute:!1});er.displayName=`Route`;var tr=p.createContext(null);tr.displayName=`RouteError`;var nr=`REACT_ROUTER_ERROR`,rr=`REDIRECT`,ir=`ROUTE_ERROR_RESPONSE`;function ar(e){if(e.startsWith(`${nr}:${rr}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function or(e){if(e.startsWith(`${nr}:${ir}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Ge(t.status,t.statusText,t.data)}catch{}}function sr(e,{relative:t}={}){T(cr(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=p.useContext(Qn),{hash:i,pathname:a,search:o}=vr(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:I([n,a])),r.createHref({pathname:s,search:o,hash:i})}function cr(){return p.useContext($n)!=null}function lr(){return T(cr(),`useLocation() may be used only in the context of a <Router> component.`),p.useContext($n).location}var ur=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function dr(e){p.useContext(Qn).static||p.useLayoutEffect(e)}function fr(){let{isDataRoute:e}=p.useContext(er);return e?Fr():pr()}function pr(){T(cr(),`useNavigate() may be used only in the context of a <Router> component.`);let e=p.useContext(Gn),{basename:t,navigator:n}=p.useContext(Qn),{matches:r}=p.useContext(er),{pathname:i}=lr(),a=JSON.stringify(Fe(r)),o=p.useRef(!1);return dr(()=>{o.current=!0}),p.useCallback((r,s={})=>{if(E(o.current,ur),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Ie(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:I([t,c.pathname])),dt(typeof r==`string`?r:k(r),n.createHref(c),ct(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var mr=p.createContext(null);function hr(){return p.useContext(mr)}function gr(e){let t=p.useContext(er).outlet;return p.useMemo(()=>t&&p.createElement(mr.Provider,{value:e},t),[t,e])}function _r(){let{matches:e}=p.useContext(er);return e[e.length-1]?.params??{}}function vr(e,{relative:t}={}){let{matches:n}=p.useContext(er),{pathname:r}=lr(),i=JSON.stringify(Fe(n));return p.useMemo(()=>Ie(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function yr(e,t,n){T(cr(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=p.useContext(Qn),{matches:i}=p.useContext(er),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;Lr(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
4
+
5
+ Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=lr(),d;if(t){let e=typeof t==`string`?A(t):t;T(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,m=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);m=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let h=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):se(e,{pathname:m});E(l||h!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),E(h==null||h[h.length-1].route.element!==void 0||h[h.length-1].route.Component!==void 0||h[h.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=Er(h&&h.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:I([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:I([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&g?p.createElement($n.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},g):g}function br(){let e=Pr(),t=Ke(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=p.createElement(p.Fragment,null,p.createElement(`p`,null,`💿 Hey developer 👋`),p.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,p.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,p.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),p.createElement(p.Fragment,null,p.createElement(`h2`,null,`Unexpected Application Error!`),p.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?p.createElement(`pre`,{style:i},n):null,o)}var xr=p.createElement(br,null),Sr=class extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=or(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:p.createElement(er.Provider,{value:this.props.routeContext},p.createElement(tr.Provider,{value:e,children:this.props.component}));return this.context?p.createElement(wr,{error:e},t):t}};Sr.contextType=qn;var Cr=new WeakMap;function wr({children:e,error:t}){let{basename:n,navigator:r}=p.useContext(Qn);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=ar(t.digest);if(e){let i=Cr.get(t);if(i)throw i;let a=Ye(e.location,n),o=a.absoluteURL||a.to;if(dt(e.location,o,ct(r),`allow-explicit`),on(o))throw Error(`Invalid redirect location`);if(Je&&!Cr.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw Cr.set(t,n),n}}return p.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function Tr({routeContext:e,match:t,children:n}){let r=p.useContext(Gn);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),p.createElement(er.Provider,{value:e},n)}function Er(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);T(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:qe(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,m=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||xr,o&&(s<0&&c===0?(Lr(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,m=null):s===c&&(d=!0,m=n.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,c+1)),g=()=>{let t;return t=u?f:d?m:n.route.Component?p.createElement(n.route.Component,null):n.route.element?n.route.element:e,p.createElement(Tr,{match:n,routeContext:{outlet:e,matches:h,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?p.createElement(Sr,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:l}):g()},null)}function Dr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Or(e){let t=p.useContext(Gn);return T(t,Dr(e)),t}function kr(e){let t=p.useContext(Kn);return T(t,Dr(e)),t}function Ar(e){let t=p.useContext(er);return T(t,Dr(e)),t}function jr(e){let t=Ar(e),n=t.matches[t.matches.length-1];return T(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Mr(){return jr(`useRouteId`)}function Nr(){let{matches:e,loaderData:t}=kr(`useMatches`);return p.useMemo(()=>e.map(e=>le(e,t)),[e,t])}function Pr(){let e=p.useContext(tr),t=kr(`useRouteError`),n=jr(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Fr(){let{router:e}=Or(`useNavigate`),t=jr(`useNavigate`),n=p.useRef(!1);return dr(()=>{n.current=!0}),p.useCallback(async(r,i={})=>{E(n.current,ur),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Ir={};function Lr(e,t,n){!t&&!Ir[e]&&(Ir[e]=!0,E(!1,n))}var Rr={};function zr(e,t){!e&&!Rr[t]&&(Rr[t]=!0,console.warn(t))}var Br=p.useOptimistic,Vr=()=>void 0;function Hr(e){return Br?Br(e):[e,Vr]}function Ur(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&E(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:p.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&E(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&E(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var Wr=[`HydrateFallback`,`hydrateFallbackElement`],Gr=class{constructor(){this.status=`pending`,this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function Kr({router:e,flushSync:t,onError:n,useTransitions:r}){r=Jn()||r;let[i,a]=p.useState(e.state),[o,s]=Hr(i),[c,l]=p.useState(),[u,d]=p.useState({isTransitioning:!1}),[f,m]=p.useState(),[h,g]=p.useState(),[_,v]=p.useState(),y=p.useRef(new Map),b=p.useCallback((i,{deletedFetchers:o,newErrors:c,flushSync:u,viewTransitionOpts:_})=>{c&&n&&Object.values(c).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},pattern:qe(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&y.current.set(t,e.data)}),o.forEach(e=>y.current.delete(e)),zr(u===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let b=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(zr(_==null||b,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!_||!b)t&&u?t(()=>a(i)):r===!1?a(i):p.startTransition(()=>{r===!0&&s(e=>qr(e,i)),a(i)});else if(t&&u){t(()=>{h&&(f?.resolve(),h.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:_.currentLocation,nextLocation:_.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>a(i))});n.finished.finally(()=>{t(()=>{m(void 0),g(void 0),l(void 0),d({isTransitioning:!1})})}),t(()=>g(n))}else h?(f?.resolve(),h.skipTransition(),v({state:i,currentLocation:_.currentLocation,nextLocation:_.nextLocation})):(l(i),d({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}))},[e.window,t,h,f,r,s,n]);p.useLayoutEffect(()=>e.subscribe(b),[e,b]),p.useEffect(()=>{u.isTransitioning&&!u.flushSync&&m(new Gr)},[u]),p.useEffect(()=>{if(f&&c&&e.window){let t=c,n=f.promise,i=e.window.document.startViewTransition(async()=>{r===!1?a(t):p.startTransition(()=>{r===!0&&s(e=>qr(e,t)),a(t)}),await n});i.finished.finally(()=>{m(void 0),g(void 0),l(void 0),d({isTransitioning:!1})}),g(i)}},[c,f,e.window,r,s]),p.useEffect(()=>{f&&c&&o.location.key===c.location.key&&f.resolve()},[f,h,o.location,c]),p.useEffect(()=>{!u.isTransitioning&&_&&(l(_.state),d({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}),v(void 0))},[u.isTransitioning,_]);let x=p.useMemo(()=>({createHref:e.createHref,createURL:e.createURL,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),S=e.basename||`/`,C=p.useMemo(()=>({router:e,navigator:x,static:!1,basename:S,onError:n}),[e,x,S,n]);return p.createElement(p.Fragment,null,p.createElement(Gn.Provider,{value:C},p.createElement(Kn.Provider,{value:o},p.createElement(Xn.Provider,{value:y.current},p.createElement(Yn.Provider,{value:u},p.createElement(Zr,{basename:S,location:o.location,navigationType:o.historyAction,navigator:x,useTransitions:r},p.createElement(Jr,{routes:e.routes,manifest:e.manifest,future:e.future,state:o,isStatic:!1,onError:n})))))),null)}function qr(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}var Jr=p.memo(Yr);function Yr({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return yr(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function Xr(e){return gr(e.context)}function Zr({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){T(!cr(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=p.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=A(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:m=`default`,mask:h}=n,g=p.useMemo(()=>{let e=Oe(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:m,mask:h},navigationType:r}},[s,l,u,d,f,m,r,h]);return E(g!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:p.createElement(Qn.Provider,{value:c},p.createElement($n.Provider,{children:t,value:g}))}p.Component;var Qr=`get`,$r=`application/x-www-form-urlencoded`;function ei(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function ti(e){return ei(e)&&e.tagName.toLowerCase()===`button`}function ni(e){return ei(e)&&e.tagName.toLowerCase()===`form`}function ri(e){return ei(e)&&e.tagName.toLowerCase()===`input`}function ii(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ai(e,t){return e.button===0&&(!t||t===`_self`)&&!ii(e)}function oi(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function si(e,t){let n=oi(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var ci=null;function li(){if(ci===null)try{new FormData(document.createElement(`form`),0),ci=!1}catch{ci=!0}return ci}var ui=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function di(e){return e!=null&&!ui.has(e)?(E(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${$r}"`),null):e}function fi(e,t){let n,r,i,a,o;if(ni(e)){let o=e.getAttribute(`action`);r=o?Oe(o,t):null,n=e.getAttribute(`method`)||Qr,i=di(e.getAttribute(`enctype`))||$r,a=new FormData(e)}else if(ti(e)||ri(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Oe(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Qr,i=di(e.getAttribute(`formenctype`))||di(o.getAttribute(`enctype`))||$r,a=new FormData(o,e),!li()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(ei(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Qr,r=null,i=$r,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function pi(e,t){if(e===!1||e==null)throw Error(t)}function mi(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&Oe(i.pathname,t)===`/`?`${Re(t)}/_root.${r}`:`${Re(i.pathname)}.${r}`,i}async function hi(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function gi(e){return e!=null&&typeof e.page==`string`}function _i(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function vi(e,t,n){return Ci((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await hi(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(_i).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function yi(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function bi(e,t,{includeHydrateFallback:n}={}){return xi(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function xi(e){return[...new Set(e)]}function Si(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Ci(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!gi(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Si(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function wi(){let e=p.useContext(Gn);return pi(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Ti(){let e=p.useContext(Kn);return pi(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Ei=p.createContext(void 0);Ei.displayName=`FrameworkContext`;function Di(){let e=p.useContext(Ei);return pi(e,`You must render this element inside a <HydratedRouter> element`),e}function Oi(e,t){let n=p.useContext(Ei),[r,i]=p.useState(!1),[a,o]=p.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=p.useRef(null);p.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),p.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let m=()=>{i(!0)},h=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:ki(s,m),onBlur:ki(c,h),onMouseEnter:ki(l,m),onMouseLeave:ki(u,h),onTouchStart:ki(d,m)}]:[a,f,{}]:[!1,f,{}]}function ki(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Ai({page:e,...t}){let n=Jn(),{nonce:r}=Di(),{router:i}=wi(),a=p.useMemo(()=>se(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?p.createElement(Mi,{page:e,matches:a,...t}):p.createElement(Ni,{page:e,matches:a,...t})):null}function ji(e){let{manifest:t,routeModules:n}=Di(),[r,i]=p.useState([]);return p.useEffect(()=>{let r=!1;return vi(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Mi({page:e,matches:t,...n}){let r=lr(),{future:i}=Di(),{basename:a}=wi(),o=p.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=mi(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return p.createElement(p.Fragment,null,o.map(e=>p.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Ni({page:e,matches:t,...n}){let r=lr(),{future:i,manifest:a,routeModules:o}=Di(),{basename:s}=wi(),{loaderData:c,matches:l}=Ti(),u=p.useMemo(()=>yi(e,t,l,a,r,`data`),[e,t,l,a,r]),d=p.useMemo(()=>yi(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=p.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=mi(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),m=p.useMemo(()=>bi(d,a),[d,a]),h=ji(d);return p.createElement(p.Fragment,null,f.map(e=>p.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),m.map(e=>p.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),h.map(({key:e,link:t})=>p.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Pi(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}p.Component;var L=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{L&&(window.__reactRouterVersion=`7.18.4`)}catch{}function Fi(e,t){return kt({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:w({window:t?.window}),hydrationData:t?.hydrationData||Ii(),routes:e,mapRouteProperties:Ur,hydrationRouteProperties:Wr,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function Ii(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Li(e.errors)}),e}function Li(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new Ge(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(typeof r.__subType==`string`&&We.includes(r.__subType)){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=``,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=``,n[e]=t}}else n[e]=r;return n}var Ri=p.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...m},h){let{basename:g,navigator:_,useTransitions:v}=p.useContext(Qn),b=typeof l==`string`&&y.test(l),x=Ye(l,g);l=x.to;let S=sr(l,{relative:r}),C=lr(),w=null;if(o){let e=Ie(o,[],C.mask?C.mask.pathname:`/`,!0);g!==`/`&&(e.pathname=e.pathname===`/`?g:I([g,e.pathname])),w=_.createHref(e)}let[T,E,D]=Oi(n,m),O=Ui(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:v});function ee(t){e&&e(t),t.defaultPrevented||O(t)}let k=!(x.isExternal||i),A=p.createElement(`a`,{...m,...D,href:(k?w:void 0)||x.absoluteURL||S,onClick:k?ee:e,ref:Pi(h,E),target:c,"data-discover":!b&&t===`render`?`true`:void 0});return T&&!b?p.createElement(p.Fragment,null,A,p.createElement(Ai,{page:S})):A});Ri.displayName=`Link`;var zi=p.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=vr(a,{relative:c.relative}),d=lr(),f=p.useContext(Kn),{navigator:m,basename:h}=p.useContext(Qn),g=f!=null&&Yi(u)&&o===!0,_=m.encodeLocation?m.encodeLocation(u).pathname:u.pathname,v=d.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&h&&(y=Oe(y,h)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!r&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!r&&y.startsWith(_)&&y.charAt(_.length)===`/`),C={isActive:x,isPending:S,isTransitioning:g},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,g?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return p.createElement(Ri,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});zi.displayName=`NavLink`;var Bi=p.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Qr,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...m},h)=>{let{useTransitions:g}=p.useContext(Qn),_=qi(),v=Ji(s,{relative:l}),b=o.toLowerCase()===`get`?`get`:`post`,x=typeof s==`string`&&y.test(s);return p.createElement(`form`,{ref:h,method:b,action:v,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,m=()=>_(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});g&&n!==!1?p.startTransition(()=>m()):m()},...m,"data-discover":!x&&e===`render`?`true`:void 0})});Bi.displayName=`Form`;function Vi(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Hi(e){let t=p.useContext(Gn);return T(t,Vi(e)),t}function Ui(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=fr(),d=lr(),f=vr(e,{relative:o});return p.useCallback(m=>{if(ai(m,t)){m.preventDefault();let t=n===void 0?k(d)===k(f):n,h=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?p.startTransition(()=>h()):h()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function Wi(e){E(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=p.useRef(oi(e)),n=p.useRef(!1),r=lr(),i=p.useMemo(()=>si(r.search,n.current?null:t.current),[r.search]),a=fr();return[i,p.useCallback((e,t)=>{let r=oi(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Gi=0,Ki=()=>`__${String(++Gi)}__`;function qi(){let{router:e}=Hi(`useSubmit`),{basename:t}=p.useContext(Qn),n=Mr(),r=e.fetch,i=e.navigate;return p.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=fi(e,t);if(a.navigate===!1){let e=a.fetcherKey||Ki();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Ji(e,{relative:t}={}){let{basename:n}=p.useContext(Qn),r=p.useContext(er);T(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...vr(e||`.`,{relative:t})},o=lr();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:I([n,a.pathname])),k(a)}function Yi(e,{relative:t}={}){let n=p.useContext(Yn);T(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Hi(`useViewTransitionState`),i=vr(e,{relative:t});if(!n.isTransitioning)return!1;let a=Oe(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Oe(n.nextLocation.pathname,r)||n.nextLocation.pathname;return we(i.pathname,o)!=null||we(i.pathname,a)!=null}var Xi=s((e=>{var t=f();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`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(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.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 o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.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=c(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=c(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})}}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=c(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=c(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})}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 s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.8`})),Zi=s(((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=Xi()})),Qi=u(Zi(),1);function $i(e){return p.createElement(Kr,{flushSync:Qi.flushSync,...e})}function ea(e){let t=(0,p.useCallback)(t=>{let n=e.onDidChange(t);return()=>n.dispose()},[e]);return(0,p.useSyncExternalStore)(t,e.getSnapshot),e}var ta=s((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})),na=s(((e,t)=>{t.exports=ta()})),R=na(),ra=(0,p.createContext)(null);function ia({services:e,children:t}){return(0,R.jsx)(ra.Provider,{value:e,children:t})}function aa(e){let t=(0,p.useContext)(ra);if(!t)throw Error(`组件必须位于 ServicesProvider 内`);return t.invokeFunction(t=>t.get(e))}var oa=class{ctor;staticArguments;supportsDelayedInstantiation;constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}},sa;(function(e){e.serviceIds=new Map,e.DI_TARGET=`$di$target`,e.DI_DEPENDENCIES=`$di$dependencies`;function t(t){return t[e.DI_DEPENDENCIES]||[]}e.getServiceDependencies=t})(sa||={});var ca=ua(`instantiationService`);function la(e,t,n){t[sa.DI_TARGET]===t?t[sa.DI_DEPENDENCIES].push({id:e,index:n}):(t[sa.DI_DEPENDENCIES]=[{id:e,index:n}],t[sa.DI_TARGET]=t)}function ua(e){if(sa.serviceIds.has(e))return sa.serviceIds.get(e);let t=function(e,n,r){if(arguments.length!==3)throw Error(`@IServiceName-decorator can only be used to decorate a parameter`);la(t,e,r)};return t.toString=()=>e,sa.serviceIds.set(e,t),t}var da=new class{unexpectedErrorHandler;listeners;constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?va.isErrorNoTelemetry(e)?new va(e.message+`
6
+
7
+ `+e.stack):Error(e.message+`
8
+
9
+ `+e.stack):e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(t=>{t(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function fa(e){ma(e)||da.onUnexpectedError(e)}var pa=`Canceled`;function ma(e){return e instanceof ha||e instanceof Error&&e.name===pa&&e.message===pa}var ha=class extends Error{constructor(){super(pa),this.name=this.message}};function ga(e){return Error(e?`Illegal argument: ${e}`:`Illegal argument`)}function _a(e){return Error(e?`Illegal state: ${e}`:`Illegal state`)}var va=class e extends Error{name;constructor(e){super(e),this.name=`CodeExpectedError`}static fromError(t){if(t instanceof e)return t;let n=new e;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(e){return e.name===`CodeExpectedError`}};function ya(e){let t=this,n=!1,r;return function(){return n||(n=!0,r=e.apply(t,arguments)),r}}var ba;(function(e){function t(e){return e&&typeof e==`object`&&typeof e[Symbol.iterator]==`function`}e.is=t;let n=Object.freeze([]);function r(){return n}e.empty=r;function*i(e){yield e}e.single=i;function a(e){return t(e)?e:i(e)}e.wrap=a;function o(e){return e||n}e.from=o;function s(e){return!e||e[Symbol.iterator]().next().done===!0}e.isEmpty=s;function c(e){return e[Symbol.iterator]().next().value}e.first=c;function l(e,t){for(let n of e)if(t(n))return!0;return!1}e.some=l;function u(e,t){for(let n of e)if(t(n))return n}e.find=u;function*d(e,t){for(let n of e)t(n)&&(yield n)}e.filter=d;function*f(e,t){let n=0;for(let r of e)yield t(r,n++)}e.map=f;function*p(...e){for(let t of e)for(let e of t)yield e}e.concat=p;function m(e,t,n){let r=n;for(let n of e)r=t(r,n);return r}e.reduce=m;function*h(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]}e.slice=h;function g(t,n=1/0){let r=[];if(n===0)return[r,t];let i=t[Symbol.iterator]();for(let t=0;t<n;t++){let t=i.next();if(t.done)return[r,e.empty()];r.push(t.value)}return[r,{[Symbol.iterator](){return i}}]}e.consume=g})(ba||={});var xa=null;function Sa(e){return xa?.trackDisposable(e),e}function Ca(e){xa?.markAsDisposed(e)}function wa(e,t){xa?.setParent(e,t)}function Ta(e){return xa?.markAsSingleton(e),e}function Ea(e){if(ba.is(e)){let t=[];for(let n of e)if(n)try{n.dispose()}catch(e){t.push(e)}if(t.length===1)throw t[0];if(t.length>1)throw AggregateError(t,`Encountered errors while disposing of store`);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function Da(...e){return Oa(()=>Ea(e))}function Oa(e){let t=Sa({dispose:ya(()=>{Ca(t),e()})});return t}var ka=class e{static DISABLE_DISPOSED_WARNING=!1;_toDispose=new Set;_isDisposed=!1;constructor(){Sa(this)}dispose(){this._isDisposed||(Ca(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Ea(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw Error(`Cannot register a disposable on itself!`);return wa(t,this),this._isDisposed?e.DISABLE_DISPOSED_WARNING||console.warn(Error(`Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!`).stack):this._toDispose.add(t),t}},Aa=class{static None=Object.freeze({dispose(){}});_store=new ka;constructor(){Sa(this),wa(this._store,this)}dispose(){Ca(this),this._store.dispose()}_register(e){if(e===this)throw Error(`Cannot register a disposable on itself!`);return this._store.add(e)}},ja=class{_value;_isDisposed=!1;constructor(){Sa(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&wa(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,Ca(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){let e=this._value;return this._value=void 0,e&&wa(e,null),e}},Ma=class{dispose=()=>{};unset=()=>{};isset=()=>!1;constructor(){Sa(this)}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>t!==void 0,this.dispose=()=>{t&&(t(),t=void 0,Ca(this))},this}},Na=class e{static Undefined=new e(void 0);element;next;prev;constructor(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}},Pa=class{_first=Na.Undefined;_last=Na.Undefined;_size=0;get size(){return this._size}isEmpty(){return this._first===Na.Undefined}clear(){let e=this._first;for(;e!==Na.Undefined;){let t=e.next;e.prev=Na.Undefined,e.next=Na.Undefined,e=t}this._first=Na.Undefined,this._last=Na.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let n=new Na(e);if(this._first===Na.Undefined)this._first=n,this._last=n;else if(t){let e=this._last;this._last=n,n.prev=e,e.next=n}else{let e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==Na.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Na.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Na.Undefined&&e.next!==Na.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Na.Undefined&&e.next===Na.Undefined?(this._first=Na.Undefined,this._last=Na.Undefined):e.next===Na.Undefined?(this._last=this._last.prev,this._last.next=Na.Undefined):e.prev===Na.Undefined&&(this._first=this._first.next,this._first.prev=Na.Undefined);--this._size}*[Symbol.iterator](){let e=this._first;for(;e!==Na.Undefined;)yield e.element,e=e.next}};function Fa(e,t){let n;return n=t.length===0?e:e.replace(/\{(\d+)\}/g,(e,n)=>{let r=t[n[0]],i=e;return typeof r==`string`?i=r:(typeof r==`number`||typeof r==`boolean`||r==null)&&(i=String(r)),i}),n}function Ia(e,t,...n){return Fa(t,n)}var La=!1,Ra=!1,za=!1,Ba=!1,Va=!1,Ha=void 0,Ua=`en`,Wa=void 0,Ga=typeof self==`object`?self:typeof global==`object`?global:{},Ka=void 0;Ga.vscode!==void 0&&Ga.vscode.process!==void 0?Ka=Ga.vscode.process:typeof process<`u`&&(Ka=process);var qa=typeof Ka?.versions?.electron==`string`&&Ka?.type===`renderer`;if(typeof navigator==`object`&&!qa)Wa=navigator.userAgent,La=Wa.indexOf(`Windows`)>=0,Ra=Wa.indexOf(`Macintosh`)>=0,Va=(Wa.indexOf(`Macintosh`)>=0||Wa.indexOf(`iPad`)>=0||Wa.indexOf(`iPhone`)>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,za=Wa.indexOf(`Linux`)>=0,Wa?.indexOf(`Mobi`),Ba=!0,Ha=(Ia({key:`ensureLoaderPluginIsLoaded`,comment:[`{Locked}`]},`_`),`en`),Ua=Ha,navigator.language;else if(typeof Ka==`object`){La=Ka.platform===`win32`,Ra=Ka.platform===`darwin`,za=Ka.platform===`linux`,za&&Ka.env.SNAP&&Ka.env.SNAP_REVISION,Ka.env.CI||Ka.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Ha=`en`,Ua=`en`;let e=Ka.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e),n=t.availableLanguages[`*`];Ha=t.locale,t.osLocale,Ua=n||`en`,t._translationsConfigFile}catch{}}else console.error(`Unable to resolve platform.`);var Ja=La,Ya=Ra,Xa=za,Za=Ba;Ba&&Ga.importScripts;var Qa=Wa,$a=Ua,eo;(function(e){function t(){return $a}e.value=t;function n(){return $a.length===2?$a===`en`:$a.length>=3&&$a[0]===`e`&&$a[1]===`n`&&$a[2]===`-`}e.isDefaultVariant=n;function r(){return $a===`en`}e.isDefault=r})(eo||={});var to=typeof Ga.postMessage==`function`&&!Ga.importScripts,no=(()=>{if(to){let e=[];Ga.addEventListener(`message`,t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n<r;n++){let r=e[n];if(r.id===t.data.vscodeScheduleAsyncWork){e.splice(n,1),r.callback();return}}});let t=0;return n=>{let r=++t;e.push({id:r,callback:n}),Ga.postMessage({vscodeScheduleAsyncWork:r},`*`)}}return e=>setTimeout(e)})(),ro;(function(e){e[e.Windows=1]=`Windows`,e[e.Macintosh=2]=`Macintosh`,e[e.Linux=3]=`Linux`})(ro||={});var io=Ra||Va?ro.Macintosh:La?ro.Windows:ro.Linux,ao=!!(Qa&&Qa.indexOf(`Chrome`)>=0),oo=!!(Qa&&Qa.indexOf(`Firefox`)>=0),so=!!(!ao&&Qa&&Qa.indexOf(`Safari`)>=0),co=!!(Qa&&Qa.indexOf(`Edg/`)>=0);Qa&&Qa.indexOf(`Android`);var lo=Ga.performance&&typeof Ga.performance.now==`function`,uo=class e{_highResolution;_startTime;_stopTime;static create(t=!0){return new e(t)}constructor(e){this._highResolution=lo&&e,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime===-1?this._now()-this._startTime:this._stopTime-this._startTime}_now(){return this._highResolution?Ga.performance.now():Date.now()}},fo;(function(e){e.None=()=>Aa.None;function t(e,t){return u(e,()=>void 0,0,void 0,!0,void 0,t)}e.defer=t;function n(e){return(t,n=null,r)=>{let i=!1,a;return a=e(e=>{if(!i)return a?a.dispose():i=!0,t.call(n,e)},null,r),i&&a.dispose(),a}}e.once=n;function r(e,t,n){return l((n,r=null,i)=>e(e=>n.call(r,t(e)),null,i),n)}e.map=r;function i(e,t,n){return l((n,r=null,i)=>e(e=>{t(e),n.call(r,e)},null,i),n)}e.forEach=i;function a(e,t,n){return l((n,r=null,i)=>e(e=>t(e)&&n.call(r,e),null,i),n)}e.filter=a;function o(e){return e}e.signal=o;function s(...e){return(t,n=null,r)=>Da(...e.map(e=>e(e=>t.call(n,e),null,r)))}e.any=s;function c(e,t,n,i){let a=n;return r(e,e=>(a=t(a,e),a),i)}e.reduce=c;function l(e,t){let n,r=new _o({onWillAddFirstListener(){n=e(r.fire,r)},onDidRemoveLastListener(){n?.dispose()}});return t?.add(r),r.event}function u(e,t,n=100,r=!1,i=!1,a,o){let s,c,l,u=0,d,f=new _o({leakWarningThreshold:a,onWillAddFirstListener(){s=e(e=>{u++,c=t(c,e),r&&!l&&(f.fire(c),c=void 0),d=()=>{let e=c;c=void 0,l=void 0,(!r||u>1)&&f.fire(e),u=0},typeof n==`number`?(clearTimeout(l),l=setTimeout(d,n)):l===void 0&&(l=0,queueMicrotask(d))})},onWillRemoveListener(){i&&u>0&&d?.()},onDidRemoveLastListener(){d=void 0,s.dispose()}});return o?.add(f),f.event}e.debounce=u;function d(t,n=0,r){return e.debounce(t,(e,t)=>e?(e.push(t),e):[t],n,void 0,!0,void 0,r)}e.accumulate=d;function f(e,t=(e,t)=>e===t,n){let r=!0,i;return a(e,e=>{let n=r||!t(e,i);return r=!1,i=e,n},n)}e.latch=f;function p(t,n,r){return[e.filter(t,n,r),e.filter(t,e=>!n(e),r)]}e.split=p;function m(e,t=!1,n=[]){let r=n.slice(),i=e(e=>{r?r.push(e):o.fire(e)}),a=()=>{r?.forEach(e=>o.fire(e)),r=null},o=new _o({onWillAddFirstListener(){i||=e(e=>o.fire(e))},onDidAddFirstListener(){r&&(t?setTimeout(a):a())},onDidRemoveLastListener(){i&&i.dispose(),i=null}});return o.event}e.buffer=m;class h{event;disposables=new ka;constructor(e){this.event=e}map(e){return new h(r(this.event,e,this.disposables))}forEach(e){return new h(i(this.event,e,this.disposables))}filter(e){return new h(a(this.event,e,this.disposables))}reduce(e,t){return new h(c(this.event,e,t,this.disposables))}latch(){return new h(f(this.event,void 0,this.disposables))}debounce(e,t=100,n=!1,r=!1,i){return new h(u(this.event,e,t,n,r,i,this.disposables))}on(e,t,n){return this.event(e,t,n)}once(e,t,r){return n(this.event)(e,t,r)}dispose(){this.disposables.dispose()}}function g(e){return new h(e)}e.chain=g;function _(e,t,n=e=>e){let r=(...e)=>i.fire(n(...e)),i=new _o({onWillAddFirstListener:()=>e.on(t,r),onDidRemoveLastListener:()=>e.removeListener(t,r)});return i.event}e.fromNodeEventEmitter=_;function v(e,t,n=e=>e){let r=(...e)=>i.fire(n(...e)),i=new _o({onWillAddFirstListener:()=>e.addEventListener(t,r),onDidRemoveLastListener:()=>e.removeEventListener(t,r)});return i.event}e.fromDOMEventEmitter=v;function y(e){return new Promise(t=>n(e)(t))}e.toPromise=y;function b(e,t){return t(void 0),e(e=>t(e))}e.runAndSubscribe=b;function x(e,t){let n=null;function r(e){n?.dispose(),n=new ka,t(e,n)}r(void 0);let i=e(e=>r(e));return Oa(()=>{i.dispose(),n?.dispose()})}e.runAndSubscribeWithStore=x;class S{_observable;emitter;_counter=0;_hasChanged=!1;constructor(e,t){this._observable=e;let n={onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}};this.emitter=new _o(n),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function C(e,t){return new S(e,t).emitter.event}e.fromObservable=C;function w(e){return t=>{let n=0,r=!1,i={beginUpdate(){n++},endUpdate(){n--,n===0&&(e.reportChanges(),r&&(r=!1,t()))},handlePossibleChange(){},handleChange(){r=!0}};return e.addObserver(i),{dispose(){e.removeObserver(i)}}}}e.fromObservableLight=w})(fo||={});var po=class e{static all=new Set;static _idPool=0;name;listenerCount=0;invocationCount=0;elapsedOverall=0;durations=[];_stopWatch;constructor(t){this.name=`${t}_${e._idPool++}`,e.all.add(this)}start(e){this._stopWatch=new uo(!0),this.listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}},z=-1,mo=class{threshold;name;_stacks;_warnCountdown=0;constructor(e,t=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=t}dispose(){this._stacks?.clear()}check(e,t){let n=this.threshold;if(n<=0||t<n)return;this._stacks||=new Map;let r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),--this._warnCountdown,this._warnCountdown<=0){this._warnCountdown=n*.5;let e,r=0;for(let[t,n]of this._stacks)(!e||r<n)&&(e=t,r=n);console.warn(`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${r}):`),console.warn(e)}return()=>{let t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}},ho=class e{value;static create(){return new e(Error().stack??``)}constructor(e){this.value=e}print(){console.warn(this.value.split(`
10
+ `).slice(2).join(`
11
+ `))}},go=class{callback;callbackThis;stack;subscription=new Ma;constructor(e,t,n){this.callback=e,this.callbackThis=t,this.stack=n}invoke(e){this.callback.call(this.callbackThis,e)}},_o=class{_options;_leakageMon;_perfMon;_disposed=!1;_event;_deliveryQueue;_listeners;constructor(e){this._options=e,this._leakageMon=z>0||this._options?.leakWarningThreshold?new mo(this._options?.leakWarningThreshold??z):void 0,this._perfMon=this._options?._profName?new po(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._listeners&&this._listeners.clear(),this._deliveryQueue?.clear(this),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event||=(e,t,n)=>{if(this._listeners||=new Pa,this._leakageMon&&this._listeners.size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),Aa.None;let r=this._listeners.isEmpty();r&&this._options?.onWillAddFirstListener&&this._options.onWillAddFirstListener(this);let i,a;this._leakageMon&&this._listeners.size>=Math.ceil(this._leakageMon.threshold*.2)&&(a=ho.create(),i=this._leakageMon.check(a,this._listeners.size+1));let o=new go(e,t,a),s=this._listeners.push(o);r&&this._options?.onDidAddFirstListener&&this._options.onDidAddFirstListener(this),this._options?.onDidAddListener&&this._options.onDidAddListener(this,e,t);let c=o.subscription.set(()=>{i?.(),this._disposed||(this._options?.onWillRemoveListener?.(this),s(),this._options&&this._options.onDidRemoveLastListener&&(!this._listeners||this._listeners.isEmpty())&&this._options.onDidRemoveLastListener(this))});return n instanceof ka?n.add(c):Array.isArray(n)&&n.push(c),c},this._event}fire(e){if(this._listeners){this._deliveryQueue||=new yo(this._options?.onListenerError);for(let t of this._listeners)this._deliveryQueue.push(this,t,e);this._perfMon?.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),this._perfMon?.stop()}}hasListeners(){return this._listeners?!this._listeners.isEmpty():!1}},vo=class{_onListenerError;_queue=new Pa;constructor(e=fa){this._onListenerError=e}get size(){return this._queue.size}push(e,t,n){this._queue.push(new bo(e,t,n))}clear(e){let t=new Pa;for(let n of this._queue)n.emitter!==e&&t.push(n);this._queue=t}deliver(){for(;this._queue.size>0;){let e=this._queue.shift();try{e.listener.invoke(e.event)}catch(e){this._onListenerError(e)}}}},yo=class extends vo{clear(e){this._queue.clear()}},bo=class{emitter;listener;event;constructor(e,t,n){this.emitter=e,this.listener=t,this.event=n}},xo=class extends _o{_isPaused=0;_eventQueue=new Pa;_mergeFn;constructor(e){super(e),this._mergeFn=e?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0){if(this._mergeFn){if(this._eventQueue.size>0){let e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}}fire(e){this._listeners&&(this._isPaused===0?super.fire(e):this._eventQueue.push(e))}},So=class{_token;constructor(e,t){this._token=-1,typeof e==`function`&&typeof t==`number`&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}},Co=class{_token;constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}},wo;(function(){wo=typeof requestIdleCallback!=`function`||typeof cancelIdleCallback!=`function`?e=>{no(()=>{if(t)return;let n=Date.now()+15;e(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,n-Date.now())}}))});let t=!1;return{dispose(){t||=!0}}}:(e,t)=>{let n=requestIdleCallback(e,typeof t==`number`?{timeout:t}:void 0),r=!1;return{dispose(){r||(r=!0,cancelIdleCallback(n))}}}})();var To=class{_executor;_handle;_didRun=!1;_value;_error;constructor(e){this._executor=()=>{try{this._value=e()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=wo(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}},Eo;(function(e){async function t(e){let t,n=await Promise.all(e.map(e=>e.then(e=>e,e=>{t||=e})));if(t!==void 0)throw t;return n}e.settled=t;function n(e){return new Promise(async(t,n)=>{try{await e(t,n)}catch(e){n(e)}})}e.withAsyncBody=n})(Eo||={}),class e{static fromArray(t){return new e(e=>{e.emitMany(t)})}static fromPromise(t){return new e(async e=>{e.emitMany(await t)})}static fromPromises(t){return new e(async e=>{await Promise.all(t.map(async t=>e.emitOne(await t)))})}static merge(t){return new e(async e=>{await Promise.all(t.map(async t=>{for await(let n of t)e.emitOne(n)}))})}static EMPTY=e.fromArray([]);_state;_results;_error;_onStateChanged;constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new _o,queueMicrotask(async()=>{let t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(e){this.reject(e instanceof Error?e:Error(String(e)))}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(this._state===1)return{done:!0,value:void 0};await fo.toPromise(this._onStateChanged.event)}while(1)}}}static map(t,n){return new e(async e=>{for await(let r of t)e.emitOne(n(r))})}map(t){return e.map(this,t)}static filter(t,n){return new e(async e=>{for await(let r of t)n(r)&&e.emitOne(r)})}filter(t){return e.filter(this,t)}static coalesce(t){return e.filter(t,e=>!!e)}coalesce(){return e.coalesce(this)}static async toPromise(e){let t=[];for await(let n of e)t.push(n);return t}toPromise(){return e.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}};var Do=class{key;data;incoming=new Map;outgoing=new Map;constructor(e,t){this.key=e,this.data=t}},Oo=class{_hashFn;_nodes=new Map;constructor(e){this._hashFn=e}roots(){let e=[];for(let t of this._nodes.values())t.outgoing.size===0&&e.push(t);return e}insertEdge(e,t){let n=this.lookupOrInsertNode(e),r=this.lookupOrInsertNode(t);n.outgoing.set(r.key,r),r.incoming.set(n.key,n)}removeNode(e){let t=this._hashFn(e);this._nodes.delete(t);for(let e of this._nodes.values())e.outgoing.delete(t),e.incoming.delete(t)}lookupOrInsertNode(e){let t=this._hashFn(e),n=this._nodes.get(t);return n||(n=new Do(t,e),this._nodes.set(t,n)),n}lookup(e){return this._nodes.get(this._hashFn(e))}isEmpty(){return this._nodes.size===0}toString(){let e=[];for(let[t,n]of this._nodes)e.push(`${t}\n\t(-> incoming)[${[...n.incoming.keys()].join(`, `)}]\n\t(outgoing ->)[${[...n.outgoing.keys()].join(`,`)}]\n`);return e.join(`
12
+ `)}findCycleSlow(){for(let[e,t]of this._nodes){let n=new Set([e]),r=this._findCycle(t,n);if(r)return r}}_findCycle(e,t){for(let[n,r]of e.outgoing){if(t.has(n))return[...t,n].join(` -> `);t.add(n);let e=this._findCycle(r,t);if(e)return e;t.delete(n)}}},ko=class{_entries=new Map;constructor(...e){for(let[t,n]of e)this.set(t,n)}set(e,t){let n=this._entries.get(e);return this._entries.set(e,t),n}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}},Ao=!1,jo=class extends Error{constructor(e){super(`cyclic dependency between services`),this.message=e.findCycleSlow()??`UNABLE to detect cycle, dumping graph: \n${e.toString()}`}},Mo=class e{_services;_strict;_parent;_enableTracing;_globalGraph;_globalGraphImplicitDependency;constructor(e=new ko,t=!1,n,r=Ao){this._services=e,this._strict=t,this._parent=n,this._enableTracing=r,this._services.set(ca,this),this._globalGraph=r?n?._globalGraph??new Oo(e=>e):void 0}createChild(t){return new e(t,this._strict,this,this._enableTracing)}invokeFunction(e,...t){let n=No.traceInvocation(this._enableTracing,e),r=!1;try{return e({get:e=>{if(r)throw _a(`service accessor is only valid during the invocation of its target method`);let t=this._getOrCreateServiceInstance(e,n);if(!t)throw Error(`[invokeFunction] unknown service '${e}'`);return t}},...t)}finally{r=!0,n.stop()}}createInstance(e,...t){let n,r;return e instanceof oa?(n=No.traceCreation(this._enableTracing,e.ctor),r=this._createInstance(e.ctor,e.staticArguments.concat(t),n)):(n=No.traceCreation(this._enableTracing,e),r=this._createInstance(e,t,n)),n.stop(),r}_createInstance(e,t=[],n){let r=sa.getServiceDependencies(e).sort((e,t)=>e.index-t.index),i=[];for(let t of r){let r=this._getOrCreateServiceInstance(t.id,n);r||this._throwIfStrict(`[createInstance] ${e.name} depends on UNKNOWN service ${t.id}.`,!1),i.push(r)}let a=r.length>0?r[0].index:t.length;if(t.length!==a){console.trace(`[createInstance] First service dependency of ${e.name} at position ${a+1} conflicts with ${t.length} static arguments`);let n=a-t.length;t=n>0?t.concat(Array(n)):t.slice(0,a)}return Reflect.construct(e,t.concat(i))}_setServiceInstance(e,t){if(this._services.get(e)instanceof oa)this._services.set(e,t);else if(this._parent)this._parent._setServiceInstance(e,t);else throw Error(`illegalState - setting UNKNOWN service instance`)}_getServiceInstanceOrDescriptor(e){let t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t}_getOrCreateServiceInstance(e,t){this._globalGraph&&this._globalGraphImplicitDependency&&this._globalGraph.insertEdge(this._globalGraphImplicitDependency,String(e));let n=this._getServiceInstanceOrDescriptor(e);return n instanceof oa?this._safeCreateAndCacheServiceInstance(e,n,t.branch(e,!0)):(t.branch(e,!1),n)}_activeInstantiations=new Set;_safeCreateAndCacheServiceInstance(e,t,n){if(this._activeInstantiations.has(e))throw Error(`illegal state - RECURSIVELY instantiating service '${e}'`);this._activeInstantiations.add(e);try{return this._createAndCacheServiceInstance(e,t,n)}finally{this._activeInstantiations.delete(e)}}_createAndCacheServiceInstance(e,t,n){let r=new Oo(e=>e.id.toString()),i=0,a=[{id:e,desc:t,_trace:n}];for(;a.length;){let t=a.pop();if(r.lookupOrInsertNode(t),i++>1e3)throw new jo(r);for(let n of sa.getServiceDependencies(t.desc.ctor)){let i=this._getServiceInstanceOrDescriptor(n.id);if(i||this._throwIfStrict(`[createInstance] ${e} depends on ${n.id} which is NOT registered.`,!0),this._globalGraph?.insertEdge(String(t.id),String(n.id)),i instanceof oa){let e={id:n.id,desc:i,_trace:t._trace.branch(n.id,!0)};r.insertEdge(t,e),a.push(e)}}}for(;;){let e=r.roots();if(e.length===0){if(!r.isEmpty())throw new jo(r);break}for(let{data:t}of e){if(this._getServiceInstanceOrDescriptor(t.id)instanceof oa){let e=this._createServiceInstanceWithOwner(t.id,t.desc.ctor,t.desc.staticArguments,t.desc.supportsDelayedInstantiation,t._trace);this._setServiceInstance(t.id,e)}r.removeNode(t)}}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,t,n=[],r,i){if(this._services.get(e)instanceof oa)return this._createServiceInstance(e,t,n,r,i);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,n,r,i);throw Error(`illegalState - creating UNKNOWN service instance ${t.name}`)}_createServiceInstance(t,n,r=[],i,a){if(i){let i=new e(void 0,this._strict,this,this._enableTracing);i._globalGraphImplicitDependency=String(t);let o=new Map,s=new To(()=>{let e=i._createInstance(n,r,a);for(let[t,n]of o){let r=e[t];if(typeof r==`function`)for(let t of n)r.apply(e,t)}return o.clear(),e});return new Proxy(Object.create(null),{get(e,t){if(!s.isInitialized&&typeof t==`string`&&(t.startsWith(`onDid`)||t.startsWith(`onWill`))){let e=o.get(t);return e||(e=new Pa,o.set(t,e)),(t,n,r)=>Oa(e.push([t,n,r]))}if(t in e)return e[t];let n=s.value,r=n[t];return typeof r==`function`&&(r=r.bind(n),e[t]=r),r},set(e,t,n){return s.value[t]=n,!0},getPrototypeOf(e){return n.prototype}})}return this._createInstance(n,r,a)}_throwIfStrict(e,t){if(t&&console.warn(e),this._strict)throw Error(e)}},No=class e{type;name;static all=new Set;static _None=new class extends e{constructor(){super(0,null)}stop(){}branch(){return this}};static traceInvocation(t,n){return t?new e(2,n.name||Error().stack.split(`
13
+ `).slice(3,4).join(`
14
+ `)):e._None}static traceCreation(t,n){return t?new e(1,n.name):e._None}static _totals=0;_start=Date.now();_dep=[];constructor(e,t){this.type=e,this.name=t}branch(t,n){let r=new e(3,t.toString());return this._dep.push([t,n,r]),r}stop(){let t=Date.now()-this._start;e._totals+=t;let n=!1;function r(e,t){let i=[],a=Array(e+1).join(` `);for(let[o,s,c]of t._dep)if(s&&c){n=!0,i.push(`${a}CREATES -> ${o}`);let t=r(e+1,c);t&&i.push(t)}else i.push(`${a}uses -> ${o}`);return i.join(`
15
+ `)}let i=[`${this.type===1?`CREATE`:`CALL`} ${this.name}`,`${r(1,this)}`,`DONE, took ${t.toFixed(2)}ms (grand total ${e._totals.toFixed(2)}ms)`];(t>2||n)&&e.all.add(i.join(`
16
+ `))}},Po=class extends Error{status;constructor(e,t){super(t),this.status=e,this.name=`HttpError`}},Fo=class{options;constructor(e){this.options=e}get(e){return this.request(`GET`,e)}post(e,t,n=[200]){return this.request(`POST`,e,t,n)}patch(e,t){return this.request(`PATCH`,e,t)}delete(e){return this.request(`DELETE`,e)}async request(e,t,n,r=[200]){let i=await this.options.requestLib(`${this.options.endpoint??``}/api/${t}`,{method:e,headers:{"Content-Type":`application/json`},body:n===void 0?void 0:JSON.stringify(n)}),a;try{a=i.body?JSON.parse(i.body):void 0}catch{a=void 0}if(!r.includes(i.status)){let e=a&&typeof a==`object`&&`error`in a?String(a.error):i.body||`请求失败 (${i.status})`;throw new Po(i.status,e)}return a}},Io=class e{options;static fetchToRequestLib=e=>async(t,n)=>{let r=await e(t,{method:n.method,headers:n.headers,body:n.body});return{status:r.status,body:await r.text()}};client;project;files;conformance;changelog;baselines;tasks;changes;code;constructor(e){this.options=e,this.client=new Fo(e),this.project={get:()=>this.client.get(`project`)},this.files={list:e=>this.client.get(`files?${Lo({directory:e})}`),read:(e,t=0)=>this.client.get(`files/content?${Lo({path:e,offset:String(t)})}`)},this.conformance={list:()=>this.client.get(`conformance`),readme:e=>this.client.get(`conformance/readme?${Lo({rule:e})}`)},this.changelog={list:()=>this.client.get(`changelog`),files:e=>this.client.get(`changelog/${encodeURIComponent(e)}/files`),diff:(e,t)=>this.client.get(`changelog/${encodeURIComponent(e)}/diff?${Lo({path:t})}`),update:(e,t)=>this.client.patch(`changelog/${encodeURIComponent(e)}`,t)},this.baselines={list:()=>this.client.get(`baselines`),delete:(e,t,n)=>this.client.delete(`namespaces/${encodeURIComponent(e)}/baselines?${Lo({file:t,version:n})}`)},this.tasks={list:()=>this.client.get(`tasks`),detail:e=>this.client.get(`tasks/${encodeURIComponent(e)}`),removable:()=>this.client.get(`tasks/removable`),prune:()=>this.client.delete(`tasks/removable`),approve:(e,t,n)=>this.client.post(`tasks/${encodeURIComponent(e)}/approvals`,{caseIds:t,baselineVersion:n},[200,409])},this.changes={list:e=>this.client.get(`baseline-changes?${Lo({ref:e})}`),review:(e,t,n,r)=>this.client.patch(`baseline-changes/reviews`,{ref:e,version:t,items:n,reviewed:r})},this.code={list:e=>this.client.get(`code-changes?${Lo({ref:e})}`),diff:(e,t,n)=>this.client.get(`code-changes/diff?${Lo({ref:e,path:t,...n?{version:n}:{}})}`),review:(e,t,n,r)=>this.client.patch(`code-changes/reviews`,{ref:e,version:t,items:n,reviewed:r})}}clone(){return new e(this.options)}};function Lo(e){return new URLSearchParams(e).toString()}var Ro=class{changed;state={data:null,loading:!1,error:null};currentKey=null;get key(){return this.currentKey}generation=0;pending=null;constructor(e){this.changed=e}clear(){this.currentKey=null,this.generation++,this.pending=null,this.state={data:null,loading:!1,error:null},this.changed()}load(e,t,n=!1){if(e!==this.key&&(this.currentKey=e,this.generation++,this.pending=null,this.state={data:null,loading:!1,error:null}),this.pending&&!n)return this.pending;let r=++this.generation;return this.state={...this.state,loading:!0,error:null},this.pending=Promise.resolve().then(t).then(e=>{r===this.generation&&(this.state={data:e,loading:!1,error:null})},e=>{if(r!==this.generation)return;let t=e instanceof Error?e:Error(String(e));this.state={data:t instanceof Po&&t.status===404?null:this.state.data,loading:!1,error:t}}).then(()=>{r===this.generation&&(this.pending=null,this.changed())}),this.changed(),this.pending}dispose(){this.generation++,this.pending=null}},zo=ua(`baselineService`),Bo=class extends Aa{sdk=new Io({requestLib:Io.fetchToRequestLib(fetch)});changed=this._register(new _o);onDidChange=this.changed.event;revision=0;getSnapshot=()=>this.revision;disposed=!1;get loading(){return this.list.state.loading}publish(){this.disposed||(this.revision++,this.changed.fire())}list=this._register(new Ro(()=>this.publish()));get baseline(){return this.list.state}async refresh(){await this.list.load(`baseline`,()=>this.sdk.baselines.list())}async deleteBaseline(e,t,n){await this.sdk.baselines.delete(e,t,n),await this.list.load(`baseline`,()=>this.sdk.baselines.list(),!0)}dispose(){this.disposed=!0,super.dispose()}},Vo=ua(`tasksService`),Ho=class extends Aa{sdk=new Io({requestLib:Io.fetchToRequestLib(fetch)});changed=this._register(new _o);onDidChange=this.changed.event;revision=0;getSnapshot=()=>this.revision;disposed=!1;get loading(){return this.list.state.loading||this.detail.state.loading}publish(){this.disposed||(this.revision++,this.changed.fire())}list=this._register(new Ro(()=>this.publish()));detail=this._register(new Ro(()=>this.publish()));removableCount=this._register(new Ro(()=>this.publish()));get removable(){return this.removableCount.state.data?.count??0}async prune(){let{count:e}=await this.sdk.tasks.prune();return await this.removableCount.load(`removable`,()=>this.sdk.tasks.removable(),!0),e}get tasks(){return this.list.state}get task(){return this.detail.state}async refreshTask(e,t=!1){e?(await this.detail.load(e,()=>this.sdk.tasks.detail(e),t),await this.refreshUncachedSummary()):this.detail.clear()}async refreshUncachedSummary(){let e=this.task.data;!this.disposed&&e&&this.tasks.data?.some(t=>t.id===e.task.id&&t.cached===!1)&&await this.list.load(`tasks`,()=>this.sdk.tasks.list(),!0)}async refresh(e){await Promise.all([this.list.load(`tasks`,()=>this.sdk.tasks.list()),this.removableCount.load(`removable`,()=>this.sdk.tasks.removable()),this.refreshTask(e)]),await this.refreshUncachedSummary()}async approve(e,t,n){let r=await this.sdk.tasks.approve(e,t,n);return await Promise.all([this.list.load(`tasks`,()=>this.sdk.tasks.list(),!0),this.detail.key===e?this.refreshTask(e,!0):Promise.resolve()]),await this.refreshUncachedSummary(),r}dispose(){this.disposed=!0,super.dispose()}},Uo=ua(`baselineChangeService`),Wo=class extends Aa{sdk=new Io({requestLib:Io.fetchToRequestLib(fetch)});changed=this._register(new _o);onDidChange=this.changed.event;revision=0;getSnapshot=()=>this.revision;disposed=!1;refreshRequest=0;get loading(){return this.projectResource.state.loading||this.changes.state.loading}publish(){this.disposed||(this.revision++,this.changed.fire())}projectResource=this._register(new Ro(()=>this.publish()));changes=this._register(new Ro(()=>this.publish()));get project(){return this.projectResource.state}get baselineChanges(){return this.changes.state}async refresh(e){let t=++this.refreshRequest,n=e||this.project.data?.defaultRef;if(n&&this.changes.key!==n&&this.changes.clear(),await this.projectResource.load(`project`,()=>this.sdk.project.get()),this.disposed||t!==this.refreshRequest)return;let r=e||this.project.data?.defaultRef||`HEAD`;await this.changes.load(r,()=>this.sdk.changes.list(r))}async reviewBaseline(e,t,n,r){let i=this.refreshRequest;await this.sdk.changes.review(e,t,n,r),!(this.disposed||i!==this.refreshRequest)&&await this.changes.load(e,()=>this.sdk.changes.list(e),!0)}dispose(){this.disposed=!0,super.dispose()}};function Go(e,t,n){return JSON.stringify([e,t,n])}var Ko=ua(`codeDiffService`),qo=class extends Aa{sdk=new Io({requestLib:Io.fetchToRequestLib(fetch)});changed=this._register(new _o);onDidChange=this.changed.event;revision=0;getSnapshot=()=>this.revision;disposed=!1;refreshRequest=0;diffRequest=0;get loading(){return this.projectResource.state.loading||this.changes.state.loading||this.diff.state.loading}publish(){this.disposed||(this.revision++,this.changed.fire())}projectResource=this._register(new Ro(()=>this.publish()));changes=this._register(new Ro(()=>this.publish()));diff=this._register(new Ro(()=>this.publish()));get project(){return this.projectResource.state}get codeChanges(){return this.changes.state}get codeDiff(){return this.diff.state}get codeDiffKey(){return this.diff.key}async refreshDiff(e){this.diffRequest++;let t=this.codeChanges.data,n=t?.files.find(n=>n.path===(e||t.files[0]?.path));if(!t||!n){this.diff.clear();return}let r=Go(t.sha,n.path,n.reviewKey);await this.diff.load(r,()=>this.sdk.code.diff(t.sha,n.path,n.reviewKey))}async refresh(e,t=``,{diff:n=!0}={}){let r=++this.refreshRequest,i=this.diffRequest,a=e||this.project.data?.defaultRef;if(a&&this.changes.key!==a&&(this.changes.clear(),this.diff.clear()),await this.projectResource.load(`project`,()=>this.sdk.project.get()),this.disposed||r!==this.refreshRequest)return;let o=e||this.project.data?.defaultRef||`HEAD`;await this.changes.load(o,()=>this.sdk.code.list(o)),n&&!this.disposed&&r===this.refreshRequest&&i===this.diffRequest&&await this.refreshDiff(t)}async reviewCode(e,t,n,r,{diff:i=!0}={}){let a=this.refreshRequest,o=this.diffRequest,s=this.codeDiff.data?.path||``;await this.sdk.code.review(e,t,n,r),!(this.disposed||a!==this.refreshRequest)&&(await this.changes.load(e,()=>this.sdk.code.list(e),!0),i&&!this.disposed&&a===this.refreshRequest&&o===this.diffRequest&&await this.refreshDiff(s))}dispose(){this.disposed=!0,super.dispose()}},Jo=ua(`changelogService`),Yo=class extends Aa{sdk=new Io({requestLib:Io.fetchToRequestLib(fetch)});changed=this._register(new _o);onDidChange=this.changed.event;revision=0;getSnapshot=()=>this.revision;disposed=!1;refreshRequest=0;writeChain=Promise.resolve();writeRevision=0;updatedNotes=new Map;publish(){this.disposed||(this.revision++,this.changed.fire())}commitResource=this._register(new Ro(()=>this.publish()));fileResource=this._register(new Ro(()=>this.publish()));diffResource=this._register(new Ro(()=>this.publish()));get commits(){return this.commitResource.state}get files(){return this.fileResource.state}get diff(){return this.diffResource.state}get loading(){return this.commits.loading||this.files.loading||this.diff.loading}async refresh(){let e=++this.refreshRequest;await this.writeChain,!(this.disposed||e!==this.refreshRequest)&&(await this.commitResource.load(`changelog`,async()=>{let e=this.writeRevision,t=await this.sdk.changelog.list();return t?{...t,commits:t.commits.map(t=>{let n=this.updatedNotes.get(t.commitId);return n&&n.revision>e?n.note:t})}:``}),this.disposed||e!==this.refreshRequest||this.commits.data&&this.commits.data.commits.length||(this.fileResource.clear(),this.diffResource.clear()))}async selectCommit(e){this.diffResource.clear(),e?await this.fileResource.load(e,()=>this.sdk.changelog.files(e)):this.fileResource.clear()}async selectFile(e,t){!e||!t?this.diffResource.clear():await this.diffResource.load(JSON.stringify([e,t]),()=>this.sdk.changelog.diff(e,t))}update(e,t){let n=this.writeChain.then(async()=>{let n=await this.sdk.changelog.update(e,t);this.updatedNotes.set(e,{revision:++this.writeRevision,note:n});let r=this.commitResource.state;return r.data&&!this.disposed&&(this.commitResource.state={...r,data:{...r.data,commits:r.data.commits.map(t=>t.commitId===e?n:t)}},this.publish()),n});return this.writeChain=n.catch(()=>{}),n}dispose(){this.disposed=!0,super.dispose()}},Xo=ua(`filesService`),Zo=class extends Aa{sdk=new Io({requestLib:Io.fetchToRequestLib(fetch)});changed=this._register(new _o);revision=0;onDidChange=this.changed.event;getSnapshot=()=>this.revision;publish=()=>{this.revision++,this.changed.fire()};directories=new Map;content=this._register(new Ro(this.publish));get loading(){return this.content.state.loading||!!this.directories.get(``)?.state.loading}loadDirectory(e){let t=this.directories.get(e);return t||(t=new Ro(this.publish),this.directories.set(e,t)),t.load(e,()=>this.sdk.files.list(e))}toggleDirectory(e){if(!this.directories.has(e))this.loadDirectory(e);else{for(let[t,n]of this.directories)(t===e||t.startsWith(e+`/`))&&(n.dispose(),this.directories.delete(t));this.publish()}}readFile(e,t){return this.content.load(JSON.stringify([e,t]),()=>this.sdk.files.read(e,t))}dispose(){for(let e of this.directories.values())e.dispose();this.directories.clear(),super.dispose()}},Qo=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&A(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&A(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var ee=new MessageChannel,k=ee.port2;ee.port1.onmessage=D,O=function(){k.postMessage(null)}}else O=function(){_(D,0)};function A(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,A(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}}}})),$o=s(((e,t)=>{t.exports=Qo()})),es=s((e=>{var t=$o(),n=f(),r=Zi();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){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,m=Symbol.for(`react.element`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.memo_cache_sentinel`),ee=Symbol.iterator;function k(e){return typeof e!=`object`||!e?null:(e=ee&&e[ee]||e[`@@iterator`],typeof e==`function`?e:null)}var A=Symbol.for(`react.client.reference`);function te(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===A?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return t=e.displayName||null,t===null?te(e.type)||`Memo`:t;case E:t=e._payload,e=e._init;try{return te(e(t))}catch{}}return null}var ne=Array.isArray,j=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N={pending:!1,data:null,method:null,action:null},re=[],ie=-1;function ae(e){return{current:e}}function oe(e){0>ie||(e.current=re[ie],re[ie]=null,ie--)}function P(e,t){ie++,re[ie]=e.current,e.current=t}var F=ae(null),se=ae(null),ce=ae(null),le=ae(null);function ue(e,t){switch(P(ce,t),P(se,e),P(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hd(t),e=Ud(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}oe(F),P(F,e)}function de(){oe(F),oe(se),oe(ce)}function fe(e){e.memoizedState!==null&&P(le,e);var t=F.current,n=Ud(t,e.type);t!==n&&(P(se,e),P(F,n))}function pe(e){se.current===e&&(oe(F),oe(se)),le.current===e&&(oe(le),$f._currentValue=N)}var me,he;function ge(e){if(me===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);me=t&&t[1]||``,he=-1<e.stack.indexOf(`
17
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
18
+ `+me+e+he}var _e=!1;function ve(e,t){if(!e||_e)return``;_e=!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}e.call(n.prototype)}}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(`
19
+ `),l=s.split(`
20
+ `);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=`
21
+ `+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{_e=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ge(n):``}function ye(e,t){switch(e.tag){case 26:case 27:case 5:return ge(e.type);case 16:return ge(`Lazy`);case 13:return e.child!==t&&t!==null?ge(`Suspense Fallback`):ge(`Suspense`);case 19:return ge(`SuspenseList`);case 0:case 15:return ve(e.type,!1);case 11:return ve(e.type.render,!1);case 1:return ve(e.type,!0);case 31:return ge(`Activity`);default:return``}}function be(e){try{var t=``,n=null;do t+=ye(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
22
+ Error generating stack: `+e.message+`
23
+ `+e.stack}}var xe=Object.prototype.hasOwnProperty,Se=t.unstable_scheduleCallback,Ce=t.unstable_cancelCallback,we=t.unstable_shouldYield,Te=t.unstable_requestPaint,Ee=t.unstable_now,De=t.unstable_getCurrentPriorityLevel,Oe=t.unstable_ImmediatePriority,ke=t.unstable_UserBlockingPriority,Ae=t.unstable_NormalPriority,je=t.unstable_LowPriority,Me=t.unstable_IdlePriority,Ne=t.log,Pe=t.unstable_setDisableYieldValue,Fe=null,Ie=null;function Le(e){if(typeof Ne==`function`&&Pe(e),Ie&&typeof Ie.setStrictMode==`function`)try{Ie.setStrictMode(Fe,e)}catch{}}var I=Math.clz32?Math.clz32:Be,Re=Math.log,ze=Math.LN2;function Be(e){return e>>>=0,e===0?32:31-(Re(e)/ze|0)|0}var Ve=256,He=262144,Ue=4194304;function We(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&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ge(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=We(n))):i=We(o):i=We(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=We(n))):i=We(o)):i=We(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 Ke(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Je(){var e=Ue;return Ue<<=1,!(Ue&62914560)&&(Ue=4194304),e}function Ye(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ze(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-I(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&&Qe(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Qe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-I(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function $e(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-I(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function et(e,t){var n=t&-t;return n=n&42?1:tt(n),(n&(e.suspendedLanes|t))===0?n:0}function tt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function nt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function rt(){var e=M.p;return e===0?(e=window.event,e===void 0?32:hp(e.type)):e}function it(e,t){var n=M.p;try{return M.p=e,t()}finally{M.p=n}}var at=Math.random().toString(36).slice(2),ot=`__reactFiber$`+at,st=`__reactProps$`+at,ct=`__reactContainer$`+at,lt=`__reactEvents$`+at,ut=`__reactListeners$`+at,dt=`__reactHandles$`+at,ft=`__reactResources$`+at,pt=`__reactMarker$`+at;function mt(e){delete e[ot],delete e[st],delete e[lt],delete e[ut],delete e[dt]}function ht(e){var t=e[ot];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ct]||n[ot]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ff(e);e!==null;){if(n=e[ot])return n;e=ff(e)}return t}e=n,n=e.parentNode}return null}function gt(e){if(e=e[ot]||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 _t(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function vt(e){var t=e[ft];return t||=e[ft]={hoistableStyles:new Map,hoistableScripts:new Map},t}function yt(e){e[pt]=!0}var bt=new Set,xt={};function St(e,t){Ct(e,t),Ct(e+`Capture`,t)}function Ct(e,t){for(xt[e]=t,e=0;e<t.length;e++)bt.add(t[e])}var wt=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]*$`),Tt={},Et={};function Dt(e){return xe.call(Et,e)?!0:xe.call(Tt,e)?!1:wt.test(e)?Et[e]=!0:(Tt[e]=!0,!1)}function Ot(e,t,n){if(Dt(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 kt(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 At(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 jt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Mt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Nt(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 Pt(e){if(!e._valueTracker){var t=Mt(e)?`checked`:`value`;e._valueTracker=Nt(e,t,``+e[t])}}function Ft(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Mt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function It(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Lt=/[\n"\\]/g;function Rt(e){return e.replace(Lt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function zt(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=``+jt(t)):e.value!==``+jt(t)&&(e.value=``+jt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Vt(e,o,jt(n)):Vt(e,o,jt(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=``+jt(s):e.removeAttribute(`name`)}function Bt(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)){Pt(e);return}n=n==null?``:``+jt(n),t=t==null?n:``+jt(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),Pt(e)}function Vt(e,t,n){t===`number`&&It(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Ht(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=``+jt(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 Ut(e,t,n){t!=null&&(t=``+jt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+jt(n)}function Wt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ne(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=jt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Pt(e)}function Gt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Kt=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 qt(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||Kt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Jt(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]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&qt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&qt(e,o,t[o])}function Yt(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 Xt=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`],[`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`]]),Zt=/^[\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 Qt(e){return Zt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function $t(){}var en=null;function tn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var nn=null,rn=null;function an(e){var t=gt(e);if(t&&(e=t.stateNode)){var n=e[st]||null;a:switch(e=t.stateNode,t.type){case`input`:if(zt(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="`+Rt(``+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));zt(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&&Ft(r)}break a;case`textarea`:Ut(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Ht(e,!!n.multiple,t,!1)}}}var on=!1;function sn(e,t,n){if(on)return e(t,n);on=!0;try{return e(t)}finally{if(on=!1,(nn!==null||rn!==null)&&(Su(),nn&&(t=nn,e=rn,rn=nn=null,an(t),e)))for(t=0;t<e.length;t++)an(e[t])}}function cn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[st]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var ln=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,un=!1;if(ln)try{var dn={};Object.defineProperty(dn,"passive",{get:function(){un=!0}}),window.addEventListener(`test`,dn,dn),window.removeEventListener(`test`,dn,dn)}catch{un=!1}var fn=null,pn=null,mn=null;function hn(){if(mn)return mn;var e,t=pn,n=t.length,r,i=`value`in fn?fn.value:fn.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 mn=i.slice(e,1<r?1-r:void 0)}function gn(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 _n(){return!0}function vn(){return!1}function yn(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)?_n:vn,this.isPropagationStopped=vn,this}return p(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=_n)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=_n)},persist:function(){},isPersistent:_n}),t}var bn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xn=yn(bn),Sn=p({},bn,{view:0,detail:0}),Cn=yn(Sn),wn,Tn,En,Dn=p({},Sn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rn,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!==En&&(En&&e.type===`mousemove`?(wn=e.screenX-En.screenX,Tn=e.screenY-En.screenY):Tn=wn=0,En=e),wn)},movementY:function(e){return`movementY`in e?e.movementY:Tn}}),On=yn(Dn),kn=yn(p({},Dn,{dataTransfer:0})),An=yn(p({},Sn,{relatedTarget:0})),jn=yn(p({},bn,{animationName:0,elapsedTime:0,pseudoElement:0})),Mn=yn(p({},bn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Nn=yn(p({},bn,{data:0})),Pn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Fn={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`},In={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Ln(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=In[e])?!!t[e]:!1}function Rn(){return Ln}var zn=yn(p({},Sn,{key:function(e){if(e.key){var t=Pn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=gn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Fn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rn,charCode:function(e){return e.type===`keypress`?gn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?gn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Bn=yn(p({},Dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Vn=yn(p({},Sn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rn})),Hn=yn(p({},bn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Un=yn(p({},Dn,{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})),Wn=yn(p({},bn,{newState:0,oldState:0})),Gn=[9,13,27,32],Kn=ln&&`CompositionEvent`in window,qn=null;ln&&`documentMode`in document&&(qn=document.documentMode);var Jn=ln&&`TextEvent`in window&&!qn,Yn=ln&&(!Kn||qn&&8<qn&&11>=qn),Xn=` `,Zn=!1;function Qn(e,t){switch(e){case`keyup`:return Gn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function $n(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var er=!1;function tr(e,t){switch(e){case`compositionend`:return $n(t);case`keypress`:return t.which===32?(Zn=!0,Xn):null;case`textInput`:return e=t.data,e===Xn&&Zn?null:e;default:return null}}function nr(e,t){if(er)return e===`compositionend`||!Kn&&Qn(e,t)?(e=hn(),mn=pn=fn=null,er=!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 Yn&&t.locale!==`ko`?null:t.data;default:return null}}var rr={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 ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!rr[e.type]:t===`textarea`}function ar(e,t,n,r){nn?rn?rn.push(r):rn=[r]:nn=r,t=Od(t,`onChange`),0<t.length&&(n=new xn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var or=null,sr=null;function cr(e){xd(e,0)}function lr(e){if(Ft(_t(e)))return e}function ur(e,t){if(e===`change`)return t}var dr=!1;if(ln){var fr;if(ln){var pr=`oninput`in document;if(!pr){var mr=document.createElement(`div`);mr.setAttribute(`oninput`,`return;`),pr=typeof mr.oninput==`function`}fr=pr}else fr=!1;dr=fr&&(!document.documentMode||9<document.documentMode)}function hr(){or&&(or.detachEvent(`onpropertychange`,gr),sr=or=null)}function gr(e){if(e.propertyName===`value`&&lr(sr)){var t=[];ar(t,sr,e,tn(e)),sn(cr,t)}}function _r(e,t,n){e===`focusin`?(hr(),or=t,sr=n,or.attachEvent(`onpropertychange`,gr)):e===`focusout`&&hr()}function vr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return lr(sr)}function yr(e,t){if(e===`click`)return lr(t)}function br(e,t){if(e===`input`||e===`change`)return lr(t)}function xr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Sr=typeof Object.is==`function`?Object.is:xr;function Cr(e,t){if(Sr(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(!xe.call(t,i)||!Sr(e[i],t[i]))return!1}return!0}function wr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Tr(e,t){var n=wr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=wr(n)}}function Er(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Er(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=It(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=It(e.document)}return t}function Or(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 kr=ln&&`documentMode`in document&&11>=document.documentMode,Ar=null,jr=null,Mr=null,Nr=!1;function Pr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nr||Ar==null||Ar!==It(r)||(r=Ar,`selectionStart`in r&&Or(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}),Mr&&Cr(Mr,r)||(Mr=r,r=Od(jr,`onSelect`),0<r.length&&(t=new xn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Ar)))}function Fr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Ir={animationend:Fr(`Animation`,`AnimationEnd`),animationiteration:Fr(`Animation`,`AnimationIteration`),animationstart:Fr(`Animation`,`AnimationStart`),transitionrun:Fr(`Transition`,`TransitionRun`),transitionstart:Fr(`Transition`,`TransitionStart`),transitioncancel:Fr(`Transition`,`TransitionCancel`),transitionend:Fr(`Transition`,`TransitionEnd`)},Lr={},Rr={};ln&&(Rr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Ir.animationend.animation,delete Ir.animationiteration.animation,delete Ir.animationstart.animation),`TransitionEvent`in window||delete Ir.transitionend.transition);function zr(e){if(Lr[e])return Lr[e];if(!Ir[e])return e;var t=Ir[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Rr)return Lr[e]=t[n];return e}var Br=zr(`animationend`),Vr=zr(`animationiteration`),Hr=zr(`animationstart`),Ur=zr(`transitionrun`),Wr=zr(`transitionstart`),Gr=zr(`transitioncancel`),Kr=zr(`transitionend`),qr=new Map,Jr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error 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(` `);Jr.push(`scrollEnd`);function Yr(e,t){qr.set(e,t),St(t,[e])}var Xr=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)},Zr=[],Qr=0,$r=0;function ei(){for(var e=Qr,t=$r=Qr=0;t<e;){var n=Zr[t];Zr[t++]=null;var r=Zr[t];Zr[t++]=null;var i=Zr[t];Zr[t++]=null;var a=Zr[t];if(Zr[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&&ii(n,i,a)}}function ti(e,t,n,r){Zr[Qr++]=e,Zr[Qr++]=t,Zr[Qr++]=n,Zr[Qr++]=r,$r|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ni(e,t,n,r){return ti(e,t,n,r),ai(e)}function ri(e,t){return ti(e,null,null,t),ai(e)}function ii(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-I(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ai(e){if(50<pu)throw pu=0,mu=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 si(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ci(e,t,n,r){return new si(e,t,n,r)}function li(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ui(e,t){var n=e.alternate;return n===null?(n=ci(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,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 di(e,t){e.flags&=65011714;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 fi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)li(e)&&(s=1);else if(typeof e==`string`)s=Wf(e,n,F.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case D:return e=ci(31,n,t,a),e.elementType=D,e.lanes=o,e;case _:return pi(n.children,a,o,t);case v:s=8,a|=24;break;case y:return e=ci(12,n,t,a|2),e.elementType=y,e.lanes=o,e;case C:return e=ci(13,n,t,a),e.elementType=C,e.lanes=o,e;case w:return e=ci(19,n,t,a),e.elementType=w,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case x:s=10;break a;case b:s=9;break a;case S:s=11;break a;case T:s=14;break a;case E:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ci(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function pi(e,t,n,r){return e=ci(7,e,r,t),e.lanes=n,e}function mi(e,t,n){return e=ci(6,e,null,t),e.lanes=n,e}function hi(e){var t=ci(18,null,null,0);return t.stateNode=e,t}function gi(e,t,n){return t=ci(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var _i=new WeakMap;function vi(e,t){if(typeof e==`object`&&e){var n=_i.get(e);return n===void 0?(t={value:e,source:t,stack:be(t)},_i.set(e,t),t):n}return{value:e,source:t,stack:be(t)}}var yi=[],bi=0,xi=null,Si=0,Ci=[],wi=0,Ti=null,Ei=1,Di=``;function Oi(e,t){yi[bi++]=Si,yi[bi++]=xi,xi=e,Si=t}function ki(e,t,n){Ci[wi++]=Ei,Ci[wi++]=Di,Ci[wi++]=Ti,Ti=e;var r=Ei;e=Di;var i=32-I(r)-1;r&=~(1<<i),n+=1;var a=32-I(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ei=1<<32-I(t)+i|n<<i|r,Di=a+e}else Ei=1<<a|n<<i|r,Di=e}function Ai(e){e.return!==null&&(Oi(e,1),ki(e,1,0))}function ji(e){for(;e===xi;)xi=yi[--bi],yi[bi]=null,Si=yi[--bi],yi[bi]=null;for(;e===Ti;)Ti=Ci[--wi],Ci[wi]=null,Di=Ci[--wi],Ci[wi]=null,Ei=Ci[--wi],Ci[wi]=null}function Mi(e,t){Ci[wi++]=Ei,Ci[wi++]=Di,Ci[wi++]=Ti,Ei=t.id,Di=t.overflow,Ti=e}var Ni=null,Pi=null,L=!1,Fi=null,Ii=!1,Li=Error(i(519));function Ri(e){throw Wi(vi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Li}function zi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ot]=e,t[st]=r,n){case`dialog`:X(`cancel`,t),X(`close`,t);break;case`iframe`:case`object`:case`embed`:X(`load`,t);break;case`video`:case`audio`:for(n=0;n<yd.length;n++)X(yd[n],t);break;case`source`:X(`error`,t);break;case`img`:case`image`:case`link`:X(`error`,t),X(`load`,t);break;case`details`:X(`toggle`,t);break;case`input`:X(`invalid`,t),Bt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:X(`invalid`,t);break;case`textarea`:X(`invalid`,t),Wt(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||Pd(t.textContent,n)?(r.popover!=null&&(X(`beforetoggle`,t),X(`toggle`,t)),r.onScroll!=null&&X(`scroll`,t),r.onScrollEnd!=null&&X(`scrollend`,t),r.onClick!=null&&(t.onclick=$t),t=!0):t=!1,t||Ri(e,!0)}function Bi(e){for(Ni=e.return;Ni;)switch(Ni.tag){case 5:case 31:case 13:Ii=!1;return;case 27:case 3:Ii=!0;return;default:Ni=Ni.return}}function Vi(e){if(e!==Ni)return!1;if(!L)return Bi(e),L=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Wd(e.type,e.memoizedProps)),n=!n),n&&Pi&&Ri(e),Bi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Pi=df(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Pi=df(e)}else t===27?(t=Pi,Qd(e.type)?(e=uf,uf=null,Pi=e):Pi=t):Pi=Ni?lf(e.stateNode.nextSibling):null;return!0}function Hi(){Pi=Ni=null,L=!1}function Ui(){var e=Fi;return e!==null&&(nu===null?nu=e:nu.push.apply(nu,e),Fi=null),e}function Wi(e){Fi===null?Fi=[e]:Fi.push(e)}var Gi=ae(null),Ki=null,qi=null;function Ji(e,t,n){P(Gi,t._currentValue),t._currentValue=n}function Yi(e){e._currentValue=Gi.current,oe(Gi)}function Xi(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 Qi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Xi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Xi(s,n,e),s=null}else 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 $i(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;Sr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===le.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[$f]:e.push($f))}a=a.return}e!==null&&Qi(t,e,n,r),t.flags|=262144}function ea(e){for(e=e.firstContext;e!==null;){if(!Sr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ta(e){Ki=e,qi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function na(e){return ra(Ki,e)}function R(e,t){return Ki===null&&ta(e),ra(e,t)}function ra(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},qi===null){if(e===null)throw Error(i(308));qi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else qi=qi.next=t;return n}var ia=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()})}},aa=t.unstable_scheduleCallback,oa=t.unstable_NormalPriority,sa={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ca(){return{controller:new ia,data:new Map,refCount:0}}function la(e){e.refCount--,e.refCount===0&&aa(oa,function(){e.controller.abort()})}var ua=null,da=0,fa=0,pa=null;function ma(e,t){if(ua===null){var n=ua=[];da=0,fa=pd(),pa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return da++,t.then(ha,ha),t}function ha(){if(--da===0&&ua!==null){pa!==null&&(pa.status=`fulfilled`);var e=ua;ua=null,fa=0,pa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ga(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 _a=j.S;j.S=function(e,t){ru=Ee(),typeof t==`object`&&t&&typeof t.then==`function`&&ma(e,t),_a!==null&&_a(e,t)};var va=ae(null);function ya(){var e=va.current;return e===null?Ul.pooledCache:e}function ba(e,t){t===null?P(va,va.current):P(va,t.pool)}function xa(){var e=ya();return e===null?null:{parent:sa._currentValue,pool:e}}var Sa=Error(i(460)),Ca=Error(i(474)),wa=Error(i(542)),Ta={then:function(){}};function Ea(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Da(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then($t,$t),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ja(e),e;default:if(typeof t.status==`string`)t.then($t,$t);else{if(e=Ul,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,ja(e),e}throw ka=t,Sa}}function Oa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(ka=e,Sa):e}}var ka=null;function Aa(){if(ka===null)throw Error(i(459));var e=ka;return ka=null,e}function ja(e){if(e===Sa||e===wa)throw Error(i(483))}var Ma=null,Na=0;function Pa(e){var t=Na;return Na+=1,Ma===null&&(Ma=[]),Da(Ma,e,t)}function Fa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ia(e,t){throw t.$$typeof===m?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function La(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=ui(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|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=mi(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===_?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===E&&Oa(i)===t.type)?(t=a(t,n.props),Fa(t,n),t.return=e,t):(t=fi(n.type,n.key,n.props,null,e.mode,r),Fa(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=gi(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=pi(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=mi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case h:return n=fi(t.type,t.key,t.props,null,e.mode,n),Fa(n,t),n.return=e,n;case g:return t=gi(t,e.mode,n),t.return=e,t;case E:return t=Oa(t),f(e,t,n)}if(ne(t)||k(t))return t=pi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Pa(t),n);if(t.$$typeof===x)return f(e,R(e,t),n);Ia(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 h:return n.key===i?l(e,t,n,r):null;case g:return n.key===i?u(e,t,n,r):null;case E:return n=Oa(n),p(e,t,n,r)}if(ne(n)||k(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Pa(n),r);if(n.$$typeof===x)return p(e,t,R(e,n),r);Ia(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 h:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case g:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case E:return r=Oa(r),m(e,t,n,r,i)}if(ne(r)||k(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Pa(r),i);if(r.$$typeof===x)return m(e,t,n,R(t,r),i);Ia(t,r)}return null}function v(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),L&&Oi(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 L&&Oi(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(g.key===null?h:g.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)}),L&&Oi(i,h),l}function y(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),L&&Oi(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 L&&Oi(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(v.key===null?g:v.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)}),L&&Oi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===E&&Oa(l)===r.type){n(e,r.sibling),c=a(r,o.props),Fa(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===_?(c=pi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=fi(o.type,o.key,o.props,null,e.mode,c),Fa(c,o),c.return=e,e=c)}return s(e);case g:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=gi(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=Oa(o),b(e,r,o,c)}if(ne(o))return v(e,r,o,c);if(k(o)){if(l=k(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Pa(o),c);if(o.$$typeof===x)return b(e,r,R(e,o),c);Ia(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=mi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Na=0;var i=b(e,t,n,r);return Ma=null,i}catch(t){if(t===Sa||t===wa)throw t;var a=ci(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ra=La(!0),za=La(!1),Ba=!1;function Va(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ha(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 Ua(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,H&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ai(e),ii(e,null,n),t}return ti(e,r,t,n),ai(e)}function Ga(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,$e(e,n)}}function Ka(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 qa=!1;function Ja(){if(qa){var e=pa;if(e!==null)throw e}}function Ya(e,t,n,r){qa=!1;var i=e.updateQueue;Ba=!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,m=f!==s.lane;if(m?(W&f)===f:(r&f)===f){f!==0&&f===fa&&(qa=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=p({},d,f);break a;case 2:Ba=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,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),Xl|=o,e.lanes=o,e.memoizedState=d}}function Xa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Za(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Xa(n[e],t)}var Qa=ae(null),$a=ae(0);function eo(e,t){e=Jl,P($a,e),P(Qa,t),Jl=e|t.baseLanes}function to(){P($a,Jl),P(Qa,Qa.current)}function no(){Jl=$a.current,oe(Qa),oe($a)}var ro=ae(null),io=null;function ao(e){var t=e.alternate;P(uo,uo.current&1),P(ro,e),io===null&&(t===null||Qa.current!==null||t.memoizedState!==null)&&(io=e)}function oo(e){P(uo,uo.current),P(ro,e),io===null&&(io=e)}function so(e){e.tag===22?(P(uo,uo.current),P(ro,e),io===null&&(io=e)):co(e)}function co(){P(uo,uo.current),P(ro,ro.current)}function lo(e){oe(ro),io===e&&(io=null),oe(uo)}var uo=ae(0);function fo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||of(n)||sf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var po=0,z=null,mo=null,ho=null,go=!1,_o=!1,vo=!1,yo=0,bo=0,xo=null,So=0;function Co(){throw Error(i(321))}function wo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Sr(e[n],t[n]))return!1;return!0}function To(e,t,n,r,i,a){return po=a,z=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?Hs:Us,vo=!1,a=n(r,i),vo=!1,_o&&(a=Do(t,n,r,i)),Eo(e),a}function Eo(e){j.H=Vs;var t=mo!==null&&mo.next!==null;if(po=0,ho=mo=z=null,go=!1,bo=0,xo=null,t)throw Error(i(300));e===null||oc||(e=e.dependencies,e!==null&&ea(e)&&(oc=!0))}function Do(e,t,n,r){z=e;var a=0;do{if(_o&&(xo=null),bo=0,_o=!1,25<=a)throw Error(i(301));if(a+=1,ho=mo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}j.H=Ws,o=t(n,r)}while(_o);return o}function Oo(){var e=j.H,t=e.useState()[0];return t=typeof t.then==`function`?Fo(t):t,e=e.useState()[0],(mo===null?null:mo.memoizedState)!==e&&(z.flags|=1024),t}function ko(){var e=yo!==0;return yo=0,e}function Ao(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function jo(e){if(go){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}go=!1}po=0,ho=mo=z=null,_o=!1,bo=yo=0,xo=null}function Mo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ho===null?z.memoizedState=ho=e:ho=ho.next=e,ho}function No(){if(mo===null){var e=z.alternate;e=e===null?null:e.memoizedState}else e=mo.next;var t=ho===null?z.memoizedState:ho.next;if(t!==null)ho=t,mo=e;else{if(e===null)throw z.alternate===null?Error(i(467)):Error(i(310));mo=e,e={memoizedState:mo.memoizedState,baseState:mo.baseState,baseQueue:mo.baseQueue,queue:mo.queue,next:null},ho===null?z.memoizedState=ho=e:ho=ho.next=e}return ho}function Po(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fo(e){var t=bo;return bo+=1,xo===null&&(xo=[]),e=Da(xo,e,t),t=z,(ho===null?t.memoizedState:ho.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?Hs:Us),e}function Io(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Fo(e);if(e.$$typeof===x)return na(e)}throw Error(i(438,String(e)))}function Lo(e){var t=null,n=z.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=z.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=Po(),z.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]=O;return t.index++,n}function Ro(e,t){return typeof t==`function`?t(e):t}function zo(e){return Bo(No(),mo,e)}function Bo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(po&f)===f:(W&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===fa&&(d=!0);else if((po&p)===p){u=u.next,p===fa&&(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,z.lanes|=p,Xl|=p;f=u.action,vo&&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,z.lanes|=f,Xl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Sr(o,e.memoizedState)&&(oc=!0,d&&(n=pa,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 Vo(e){var t=No(),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);Sr(o,t.memoizedState)||(oc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ho(e,t,n){var r=z,a=No(),o=L;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Sr((mo||a).memoizedState,n);if(s&&(a.memoizedState=n,oc=!0),a=a.queue,ps(Go.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||ho!==null&&ho.memoizedState.tag&1){if(r.flags|=2048,cs(9,{destroy:void 0},Wo.bind(null,r,a,n,t),null),Ul===null)throw Error(i(349));o||po&127||Uo(r,t,n)}return n}function Uo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=z.updateQueue,t===null?(t=Po(),z.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wo(e,t,n,r){t.value=n,t.getSnapshot=r,Ko(t)&&qo(e)}function Go(e,t,n){return n(function(){Ko(t)&&qo(e)})}function Ko(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Sr(e,n)}catch{return!0}}function qo(e){var t=ri(e,2);t!==null&&_u(t,e,2)}function Jo(e){var t=Mo();if(typeof e==`function`){var n=e;if(e=n(),vo){Le(!0);try{n()}finally{Le(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:e},t}function Yo(e,t,n,r){return e.baseState=n,Bo(e,mo,typeof r==`function`?r:Ro)}function Xo(e,t,n,r,a){if(Rs(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)}};j.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Zo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Zo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=j.T,o={};j.T=o;try{var s=n(i,r),c=j.S;c!==null&&c(o,s),Qo(e,t,s)}catch(n){ts(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),j.T=a}}else try{a=n(i,r),Qo(e,t,a)}catch(n){ts(e,t,n)}}function Qo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){es(e,t,n)},function(n){return ts(e,t,n)}):es(e,t,n)}function es(e,t,n){t.status=`fulfilled`,t.value=n,ns(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Zo(e,n)))}function ts(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ns(t),t=t.next;while(t!==r)}e.action=null}function ns(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function rs(e,t){return t}function B(e,t){if(L){var n=Ul.formState;if(n!==null){a:{var r=z;if(L){if(Pi){b:{for(var i=Pi,a=Ii;i.nodeType!==8;)if(!a||(i=lf(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Pi=lf(i.nextSibling),r=i.data===`F!`;break a}}Ri(r)}r=!1}r&&(t=n[0])}}return n=Mo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rs,lastRenderedState:t},n.queue=r,n=Fs.bind(null,z,r),r.dispatch=n,r=Jo(!1),a=Ls.bind(null,z,!1,r.queue),r=Mo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Xo.bind(null,z,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function is(e){return as(No(),mo,e)}function as(e,t,n){if(t=Bo(e,t,rs)[0],e=zo(Ro)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Fo(t)}catch(e){throw e===Sa?wa:e}else r=t;t=No();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(z.flags|=2048,cs(9,{destroy:void 0},os.bind(null,i,n),null)),[r,a,e]}function os(e,t){e.action=t}function ss(e){var t=No(),n=mo;if(n!==null)return as(t,n,e);No(),t=t.memoizedState,n=No();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function cs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=z.updateQueue,t===null&&(t=Po(),z.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 ls(){return No().memoizedState}function us(e,t,n,r){var i=Mo();z.flags|=e,i.memoizedState=cs(1|t,{destroy:void 0},n,r===void 0?null:r)}function ds(e,t,n,r){var i=No();r=r===void 0?null:r;var a=i.memoizedState.inst;mo!==null&&r!==null&&wo(r,mo.memoizedState.deps)?i.memoizedState=cs(t,a,n,r):(z.flags|=e,i.memoizedState=cs(1|t,a,n,r))}function fs(e,t){us(8390656,8,e,t)}function ps(e,t){ds(2048,8,e,t)}function ms(e){z.flags|=4;var t=z.updateQueue;if(t===null)t=Po(),z.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function hs(e){var t=No().memoizedState;return ms({ref:t,nextImpl:e}),function(){if(H&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function gs(e,t){return ds(4,2,e,t)}function _s(e,t){return ds(4,4,e,t)}function vs(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 ys(e,t,n){n=n==null?null:n.concat([e]),ds(4,4,vs.bind(null,t,e),n)}function bs(){}function xs(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&wo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ss(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&wo(t,r[1]))return r[0];if(r=e(),vo){Le(!0);try{e()}finally{Le(!1)}}return n.memoizedState=[r,t],r}function Cs(e,t,n){return n===void 0||po&1073741824&&!(W&261930)?e.memoizedState=t:(e.memoizedState=n,e=gu(),z.lanes|=e,Xl|=e,n)}function ws(e,t,n,r){return Sr(n,t)?n:Qa.current===null?!(po&42)||po&1073741824&&!(W&261930)?(oc=!0,e.memoizedState=n):(e=gu(),z.lanes|=e,Xl|=e,t):(e=Cs(e,n,r),Sr(e,t)||(oc=!0),e)}function Ts(e,t,n,r,i){var a=M.p;M.p=a!==0&&8>a?a:8;var o=j.T,s={};j.T=s,Ls(e,!1,t,n);try{var c=i(),l=j.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Is(e,t,ga(c,r),hu(e)):Is(e,t,r,hu(e))}catch(n){Is(e,t,{then:function(){},status:`rejected`,reason:n},hu())}finally{M.p=a,o!==null&&s.types!==null&&(o.types=s.types),j.T=o}}function Es(){}function Ds(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Os(e).queue;Ts(e,a,t,N,n===null?Es:function(){return ks(e),n(r)})}function Os(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:N,baseState:N,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:N},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ks(e){var t=Os(e);t.next===null&&(t=e.alternate.memoizedState),Is(e,t.next.queue,{},hu())}function As(){return na($f)}function js(){return No().memoizedState}function Ms(){return No().memoizedState}function Ns(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=hu();e=Ua(n);var r=Wa(t,e,n);r!==null&&(_u(r,t,n),Ga(r,t,n)),t={cache:ca()},e.payload=t;return}t=t.return}}function Ps(e,t,n){var r=hu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Rs(e)?zs(t,n):(n=ni(e,t,n,r),n!==null&&(_u(n,e,r),Bs(n,t,r)))}function Fs(e,t,n){Is(e,t,n,hu())}function Is(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Rs(e))zs(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,Sr(s,o))return ti(e,t,i,0),Ul===null&&ei(),!1}catch{}if(n=ni(e,t,i,r),n!==null)return _u(n,e,r),Bs(n,t,r),!0}return!1}function Ls(e,t,n,r){if(r={lane:2,revertLane:pd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Rs(e)){if(t)throw Error(i(479))}else t=ni(e,n,r,2),t!==null&&_u(t,e,2)}function Rs(e){var t=e.alternate;return e===z||t!==null&&t===z}function zs(e,t){_o=go=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}var Vs={readContext:na,use:Io,useCallback:Co,useContext:Co,useEffect:Co,useImperativeHandle:Co,useLayoutEffect:Co,useInsertionEffect:Co,useMemo:Co,useReducer:Co,useRef:Co,useState:Co,useDebugValue:Co,useDeferredValue:Co,useTransition:Co,useSyncExternalStore:Co,useId:Co,useHostTransitionStatus:Co,useFormState:Co,useActionState:Co,useOptimistic:Co,useMemoCache:Co,useCacheRefresh:Co};Vs.useEffectEvent=Co;var Hs={readContext:na,use:Io,useCallback:function(e,t){return Mo().memoizedState=[e,t===void 0?null:t],e},useContext:na,useEffect:fs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),us(4194308,4,vs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return us(4194308,4,e,t)},useInsertionEffect:function(e,t){us(4,2,e,t)},useMemo:function(e,t){var n=Mo();t=t===void 0?null:t;var r=e();if(vo){Le(!0);try{e()}finally{Le(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Mo();if(n!==void 0){var i=n(t);if(vo){Le(!0);try{n(t)}finally{Le(!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=Ps.bind(null,z,e),[r.memoizedState,e]},useRef:function(e){var t=Mo();return e={current:e},t.memoizedState=e},useState:function(e){e=Jo(e);var t=e.queue,n=Fs.bind(null,z,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:bs,useDeferredValue:function(e,t){return Cs(Mo(),e,t)},useTransition:function(){var e=Jo(!1);return e=Ts.bind(null,z,e.queue,!0,!1),Mo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=z,a=Mo();if(L){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Ul===null)throw Error(i(349));W&127||Uo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,fs(Go.bind(null,r,o,e),[e]),r.flags|=2048,cs(9,{destroy:void 0},Wo.bind(null,r,o,n,t),null),n},useId:function(){var e=Mo(),t=Ul.identifierPrefix;if(L){var n=Di,r=Ei;n=(r&~(1<<32-I(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=yo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=So++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:As,useFormState:B,useActionState:B,useOptimistic:function(e){var t=Mo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ls.bind(null,z,!0,n),n.dispatch=t,[e,t]},useMemoCache:Lo,useCacheRefresh:function(){return Mo().memoizedState=Ns.bind(null,z)},useEffectEvent:function(e){var t=Mo(),n={impl:e};return t.memoizedState=n,function(){if(H&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Us={readContext:na,use:Io,useCallback:xs,useContext:na,useEffect:ps,useImperativeHandle:ys,useInsertionEffect:gs,useLayoutEffect:_s,useMemo:Ss,useReducer:zo,useRef:ls,useState:function(){return zo(Ro)},useDebugValue:bs,useDeferredValue:function(e,t){return ws(No(),mo.memoizedState,e,t)},useTransition:function(){var e=zo(Ro)[0],t=No().memoizedState;return[typeof e==`boolean`?e:Fo(e),t]},useSyncExternalStore:Ho,useId:js,useHostTransitionStatus:As,useFormState:is,useActionState:is,useOptimistic:function(e,t){return Yo(No(),mo,e,t)},useMemoCache:Lo,useCacheRefresh:Ms};Us.useEffectEvent=hs;var Ws={readContext:na,use:Io,useCallback:xs,useContext:na,useEffect:ps,useImperativeHandle:ys,useInsertionEffect:gs,useLayoutEffect:_s,useMemo:Ss,useReducer:Vo,useRef:ls,useState:function(){return Vo(Ro)},useDebugValue:bs,useDeferredValue:function(e,t){var n=No();return mo===null?Cs(n,e,t):ws(n,mo.memoizedState,e,t)},useTransition:function(){var e=Vo(Ro)[0],t=No().memoizedState;return[typeof e==`boolean`?e:Fo(e),t]},useSyncExternalStore:Ho,useId:js,useHostTransitionStatus:As,useFormState:ss,useActionState:ss,useOptimistic:function(e,t){var n=No();return mo===null?(n.baseState=e,[e,n.queue.dispatch]):Yo(n,mo,e,t)},useMemoCache:Lo,useCacheRefresh:Ms};Ws.useEffectEvent=hs;function Gs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:p({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ks={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=hu(),i=Ua(r);i.payload=t,n!=null&&(i.callback=n),t=Wa(e,i,r),t!==null&&(_u(t,e,r),Ga(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=hu(),i=Ua(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Wa(e,i,r),t!==null&&(_u(t,e,r),Ga(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=hu(),r=Ua(n);r.tag=2,t!=null&&(r.callback=t),t=Wa(e,r,n),t!==null&&(_u(t,e,n),Ga(t,e,n))}};function qs(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?!Cr(n,r)||!Cr(i,a):!0}function Js(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&&Ks.enqueueReplaceState(t,t.state,null)}function Ys(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=p({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Xs(e){Xr(e)}function Zs(e){console.error(e)}function Qs(e){Xr(e)}function $s(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function ec(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function tc(e,t,n){return n=Ua(n),n.tag=3,n.payload={element:null},n.callback=function(){$s(e,t)},n}function nc(e){return e=Ua(e),e.tag=3,e}function rc(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(){ec(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){ec(t,n,r),typeof i!=`function`&&(J===null?J=new Set([this]):J.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function ic(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&$i(t,n,a,!0),n=ro.current,n!==null){switch(n.tag){case 31:case 13:return io===null?ku():n.alternate===null&&Yl===0&&(Yl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ta?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),qu(e,r,a)),!1;case 22:return n.flags|=65536,r===Ta?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)),qu(e,r,a)),!1}throw Error(i(435,n.tag))}return qu(e,r,a),ku(),!1}if(L)return t=ro.current,t===null?(r!==Li&&(t=Error(i(423),{cause:r}),Wi(vi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=vi(r,n),a=tc(e.stateNode,r,a),Ka(e,a),Yl!==4&&(Yl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Li&&(e=Error(i(422),{cause:r}),Wi(vi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=vi(o,n),tu===null?tu=[o]:tu.push(o),Yl!==4&&(Yl=2),t===null)return!0;r=vi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=tc(n.stateNode,r,e),Ka(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`&&(J===null||!J.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=nc(a),rc(a,e,n,r),Ka(n,a),!1}n=n.return}while(n!==null);return!1}var ac=Error(i(461)),oc=!1;function sc(e,t,n,r){t.child=e===null?za(t,null,n,r):Ra(t,e.child,n,r)}function cc(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 ta(t),r=To(e,t,n,o,a,i),s=ko(),e!==null&&!oc?(Ao(e,t,i),Mc(e,t,i)):(L&&s&&Ai(t),t.flags|=1,sc(e,t,r,i),t.child)}function lc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!li(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,uc(e,t,a,r,i)):(e=fi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!V(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Cr:n,n(o,r)&&e.ref===t.ref)return Mc(e,t,i)}return t.flags|=1,e=ui(a,r),e.ref=t.ref,e.return=t,t.child=e}function uc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Cr(a,r)&&e.ref===t.ref){if(oc=!1,t.pendingProps=r=a,V(e,i))e.flags&131072&&(oc=!0);else return t.lanes=e.lanes,Mc(e,t,i)}}return vc(e,t,n,r,i)}function dc(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&&ba(t,a===null?null:a.cachePool),a===null?to():eo(t,a),so(t);else return r=t.lanes=536870912,pc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ba(t,null),to(),co(t)):(ba(t,a.cachePool),eo(t,a),co(t),t.memoizedState=null);return sc(e,t,i,n),t.child}function fc(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=ya();return a=a===null?null:{parent:sa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ba(t,null),to(),so(t),e!==null&&$i(e,t,r,!0),t.childLanes=i,null}function mc(e,t){return t=Dc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function hc(e,t,n){return Ra(t,e.child,null,n),e=mc(t,t.pendingProps),e.flags|=2,lo(t),t.memoizedState=null,e}function gc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(L){if(r.mode===`hidden`)return e=mc(t,r),t.lanes=536870912,fc(null,e);if(oo(t),(e=Pi)?(e=af(e,Ii),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ti===null?null:{id:Ei,overflow:Di},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Ni=t,Pi=null)):e=null,e===null)throw Ri(t);return t.lanes=536870912,null}return mc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(oo(t),a){if(t.flags&256)t.flags&=-257,t=hc(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||$i(e,t,n,!1),a=(n&e.childLanes)!==0,oc||a){if(r=Ul,r!==null&&(s=et(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ri(e,s),_u(r,e,s),ac;ku(),t=hc(e,t,n)}else e=o.treeContext,Pi=lf(s.nextSibling),Ni=t,L=!0,Fi=null,Ii=!1,e!==null&&Mi(t,e),t=mc(t,r),t.flags|=4096;return t}return e=ui(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function _c(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 vc(e,t,n,r,i){return ta(t),n=To(e,t,n,r,void 0,i),r=ko(),e!==null&&!oc?(Ao(e,t,i),Mc(e,t,i)):(L&&r&&Ai(t),t.flags|=1,sc(e,t,n,i),t.child)}function yc(e,t,n,r,i,a){return ta(t),t.updateQueue=null,n=Do(t,r,n,i),Eo(e),r=ko(),e!==null&&!oc?(Ao(e,t,a),Mc(e,t,a)):(L&&r&&Ai(t),t.flags|=1,sc(e,t,n,a),t.child)}function bc(e,t,n,r,i){if(ta(t),t.stateNode===null){var a=oi,o=n.contextType;typeof o==`object`&&o&&(a=na(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ks,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Va(t),o=n.contextType,a.context=typeof o==`object`&&o?na(o):oi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Gs(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&&Ks.enqueueReplaceState(a,a.state,null),Ya(t,r,a,i),Ja(),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=Ys(n,s);a.props=c;var l=a.context,u=n.contextType;o=oi,typeof u==`object`&&u&&(o=na(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)&&Js(t,a,r,o),Ba=!1;var f=t.memoizedState;a.state=f,Ya(t,r,a,i),Ja(),l=t.memoizedState,s||f!==l||Ba?(typeof d==`function`&&(Gs(t,n,d,r),l=t.memoizedState),(c=Ba||qs(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,Ha(e,t),o=t.memoizedProps,u=Ys(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=oi,typeof l==`object`&&l&&(c=na(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)&&Js(t,a,r,c),Ba=!1,f=t.memoizedState,a.state=f,Ya(t,r,a,i),Ja();var p=t.memoizedState;o!==d||f!==p||Ba||e!==null&&e.dependencies!==null&&ea(e.dependencies)?(typeof s==`function`&&(Gs(t,n,s,r),p=t.memoizedState),(u=Ba||qs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ea(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,_c(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=Ra(t,e.child,null,i),t.child=Ra(t,null,n,i)):sc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Mc(e,t,i),e}function xc(e,t,n,r){return Hi(),t.flags|=256,sc(e,t,n,r),t.child}var Sc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cc(e){return{baseLanes:e,cachePool:xa()}}function wc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=$l),e}function Tc(e,t,n){var r=t.pendingProps,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(uo.current&2)),s&&(a=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(L){if(a?ao(t):co(t),(e=Pi)?(e=af(e,Ii),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ti===null?null:{id:Ei,overflow:Di},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Ni=t,Pi=null)):e=null,e===null)throw Ri(t);return sf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(co(t),a=t.mode,c=Dc({mode:`hidden`,children:c},a),r=pi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Cc(n),r.childLanes=wc(e,s,n),t.memoizedState=Sc,fc(null,r)):(ao(t),Ec(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(ao(t),t.flags&=-257,t=Oc(e,t,n)):t.memoizedState===null?(co(t),c=r.fallback,a=t.mode,r=Dc({mode:`visible`,children:r.children},a),c=pi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ra(t,e.child,null,n),r=t.child,r.memoizedState=Cc(n),r.childLanes=wc(e,s,n),t.memoizedState=Sc,t=fc(null,r)):(co(t),t.child=e.child,t.flags|=128,t=null);else if(ao(t),sf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Wi({value:r,source:null,stack:null}),t=Oc(e,t,n)}else if(oc||$i(e,t,n,!1),s=(n&e.childLanes)!==0,oc||s){if(s=Ul,s!==null&&(r=et(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ri(e,r),_u(s,e,r),ac;of(c)||ku(),t=Oc(e,t,n)}else of(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Pi=lf(c.nextSibling),Ni=t,L=!0,Fi=null,Ii=!1,e!==null&&Mi(t,e),t=Ec(t,r.children),t.flags|=4096);return t}return a?(co(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=ui(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=pi(c,a,n,null),c.flags|=2):c=ui(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,fc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Cc(n):(a=c.cachePool,a===null?a=xa():(l=sa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=wc(e,s,n),t.memoizedState=Sc,fc(e.child,r)):(ao(t),n=e.child,e=n.sibling,n=ui(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Ec(e,t){return t=Dc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Dc(e,t){return e=ci(22,e,null,t),e.lanes=0,e}function Oc(e,t,n){return Ra(t,e.child,null,n),e=Ec(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function kc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xi(e.return,t,n)}function Ac(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 jc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=uo.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,P(uo,o),sc(e,t,r,n),r=L?Si:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kc(e,n,t);else if(e.tag===19)kc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&fo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ac(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&fo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ac(t,!0,n,null,a,r);break;case`together`:Ac(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Mc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xl|=t.lanes,(n&t.childLanes)===0){if(e!==null){if($i(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=ui(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ui(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function V(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&ea(e)))}function Nc(e,t,n){switch(t.tag){case 3:ue(t,t.stateNode.containerInfo),Ji(t,sa,e.memoizedState.cache),Hi();break;case 27:case 5:fe(t);break;case 4:ue(t,t.stateNode.containerInfo);break;case 10:Ji(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,oo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ao(t),e=Mc(e,t,n),e===null?null:e.sibling):Tc(e,t,n):(ao(t),t.flags|=128,null);ao(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=($i(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return jc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),P(uo,uo.current),r)break;return null;case 22:return t.lanes=0,dc(e,t,n,t.pendingProps);case 24:Ji(t,sa,e.memoizedState.cache)}return Mc(e,t,n)}function Pc(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)oc=!0;else{if(!V(e,n)&&!(t.flags&128))return oc=!1,Nc(e,t,n);oc=!!(e.flags&131072)}}else oc=!1,L&&t.flags&1048576&&ki(t,Si,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Oa(t.elementType),t.type=e,typeof e==`function`)li(e)?(r=Ys(e,r),t.tag=1,t=bc(null,t,e,r,n)):(t.tag=0,t=vc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===S){t.tag=11,t=cc(null,t,e,r,n);break a}if(a===T){t.tag=14,t=lc(null,t,e,r,n);break a}}throw t=te(e)||e,Error(i(306,t,``))}}return t;case 0:return vc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Ys(r,t.pendingProps),bc(e,t,r,a,n);case 3:a:{if(ue(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ha(e,t),Ya(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ji(t,sa,r),r!==o.cache&&Qi(t,[sa],n,!0),Ja(),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=xc(e,t,r,n);break a}if(r!==a){a=vi(Error(i(424)),t),Wi(a),t=xc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Pi=lf(e.firstChild),Ni=t,L=!0,Fi=null,Ii=!0,n=za(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Hi(),r===a){t=Mc(e,t,n);break a}sc(e,t,r,n)}t=t.child}return t;case 26:return _c(e,t),e===null?(n=Af(t.type,null,t.pendingProps,null))?t.memoizedState=n:L||(n=t.type,e=t.pendingProps,r=Vd(ce.current).createElement(n),r[ot]=t,r[st]=e,Id(r,n,e),yt(r),t.stateNode=r):t.memoizedState=Af(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fe(t),e===null&&L&&(r=t.stateNode=pf(t.type,t.pendingProps,ce.current),Ni=t,Ii=!0,a=Pi,Qd(t.type)?(uf=a,Pi=lf(r.firstChild)):Pi=a),sc(e,t,t.pendingProps.children,n),_c(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&L&&((a=r=Pi)&&(r=nf(r,t.type,t.pendingProps,Ii),r===null?a=!1:(t.stateNode=r,Ni=t,Pi=lf(r.firstChild),Ii=!1,a=!0)),a||Ri(t)),fe(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Wd(a,o)?r=null:s!==null&&Wd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=To(e,t,Oo,null,null,n),$f._currentValue=a),_c(e,t),sc(e,t,r,n),t.child;case 6:return e===null&&L&&((e=n=Pi)&&(n=rf(n,t.pendingProps,Ii),n===null?e=!1:(t.stateNode=n,Ni=t,Pi=null,e=!0)),e||Ri(t)),null;case 13:return Tc(e,t,n);case 4:return ue(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ra(t,null,r,n):sc(e,t,r,n),t.child;case 11:return cc(e,t,t.type,t.pendingProps,n);case 7:return sc(e,t,t.pendingProps,n),t.child;case 8:return sc(e,t,t.pendingProps.children,n),t.child;case 12:return sc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ji(t,t.type,r.value),sc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ta(t),a=na(a),r=r(a),t.flags|=1,sc(e,t,r,n),t.child;case 14:return lc(e,t,t.type,t.pendingProps,n);case 15:return uc(e,t,t.type,t.pendingProps,n);case 19:return jc(e,t,n);case 31:return gc(e,t,n);case 22:return dc(e,t,n,t.pendingProps);case 24:return ta(t),r=na(sa),e===null?(a=ya(),a===null&&(a=Ul,o=ca(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Va(t),Ji(t,sa,a)):((e.lanes&n)!==0&&(Ha(e,t),Ya(t,null,null,n),Ja()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ji(t,sa,r),r!==a.cache&&Qi(t,[sa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ji(t,sa,r))),sc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Fc(e){e.flags|=4}function Ic(e,t,n,r,i){if((t=!!(e.mode&32))&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Eu())e.flags|=8192;else throw ka=Ta,Ca}}else e.flags&=-16777217}function Lc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Gf(t)){if(Eu())e.flags|=8192;else throw ka=Ta,Ca}}function Rc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Je(),e.lanes|=t,eu|=t)}function zc(e,t){if(!L)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var 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}}function Bc(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&65011712,r|=i.flags&65011712,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 Vc(e,t,n){var r=t.pendingProps;switch(ji(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bc(t),null;case 1:return Bc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Yi(sa),de(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Vi(t)?Fc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ui())),Bc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Fc(t),o===null?(Bc(t),Ic(t,a,null,r,n)):(Bc(t),Lc(t,o))):o?o===e.memoizedState?(Bc(t),t.flags&=-16777217):(Fc(t),Bc(t),Lc(t,o)):(e=e.memoizedProps,e!==r&&Fc(t),Bc(t),Ic(t,a,e,r,n)),null;case 27:if(pe(t),n=ce.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Fc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Bc(t),null}e=F.current,Vi(t)?zi(t,e):(e=pf(a,r,n),t.stateNode=e,Fc(t))}return Bc(t),null;case 5:if(pe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Fc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Bc(t),null}if(o=F.current,Vi(t))zi(t,o);else{var s=Vd(ce.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[ot]=t,o[st]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Id(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Fc(t)}}return Bc(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Fc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ce.current,Vi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ni,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ot]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Pd(e.nodeValue,n)),e||Ri(t,!0)}else e=Vd(e).createTextNode(r),e[ot]=t,t.stateNode=e}return Bc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Vi(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[ot]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Bc(t),e=!1}else n=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(lo(t),t):(lo(t),null);if(t.flags&128)throw Error(i(558))}return Bc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Vi(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[ot]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Bc(t),a=!1}else a=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(lo(t),t):(lo(t),null)}return lo(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),Rc(t,t.updateQueue),Bc(t),null);case 4:return de(),e===null&&wd(t.stateNode.containerInfo),Bc(t),null;case 10:return Yi(t.type),Bc(t),null;case 19:if(oe(uo),r=t.memoizedState,r===null)return Bc(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)zc(r,!1);else{if(Yl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=fo(e),o!==null){for(t.flags|=128,zc(r,!1),e=o.updateQueue,t.updateQueue=e,Rc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)di(n,e),n=n.sibling;return P(uo,uo.current&1|2),L&&Oi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ee()>iu&&(t.flags|=128,a=!0,zc(r,!1),t.lanes=4194304)}}else{if(!a){if(e=fo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Rc(t,e),zc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!L)return Bc(t),null}else 2*Ee()-r.renderingStartTime>iu&&n!==536870912&&(t.flags|=128,a=!0,zc(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)}return r.tail===null?(Bc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ee(),e.sibling=null,n=uo.current,P(uo,a?n&1|2:n&1),L&&Oi(t,r.treeForkCount),e);case 22:case 23:return lo(t),no(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Bc(t),t.subtreeFlags&6&&(t.flags|=8192)):Bc(t),n=t.updateQueue,n!==null&&Rc(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&&oe(va),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Yi(sa),Bc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Hc(e,t){switch(ji(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yi(sa),de(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pe(t),null;case 31:if(t.memoizedState!==null){if(lo(t),t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(lo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return oe(uo),null;case 4:return de(),null;case 10:return Yi(t.type),null;case 22:case 23:return lo(t),no(),e!==null&&oe(va),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Yi(sa),null;case 25:return null;default:return null}}function Uc(e,t){switch(ji(t),t.tag){case 3:Yi(sa),de();break;case 26:case 27:case 5:pe(t);break;case 4:de();break;case 31:t.memoizedState!==null&&lo(t);break;case 13:lo(t);break;case 19:oe(uo);break;case 10:Yi(t.type);break;case 22:case 23:lo(t),no(),e!==null&&oe(va);break;case 24:Yi(sa)}}function Wc(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){Y(t,t.return,e)}}function Gc(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){Y(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Y(t,t.return,e)}}function Kc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Za(t,n)}catch(t){Y(e,e.return,t)}}}function qc(e,t,n){n.props=Ys(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Y(e,t,n)}}function Jc(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:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Y(e,t,n)}}function Yc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Y(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){Y(e,t,n)}else n.current=null}}function Xc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Y(e,e.return,t)}}function Zc(e,t,n){try{var r=e.stateNode;Q(r,e.type,n,t),r[st]=t}catch(t){Y(e,e.return,t)}}function Qc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qd(e.type)||e.tag===4}function $c(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Qc(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&&Qd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function el(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=$t));else if(r!==4&&(r===27&&Qd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(el(e,t,n),e=e.sibling;e!==null;)el(e,t,n),e=e.sibling}function tl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Qd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(tl(e,t,n),e=e.sibling;e!==null;)tl(e,t,n),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]);Id(t,r,n),t[ot]=e,t[st]=n}catch(t){Y(e,e.return,t)}}var rl=!1,il=!1,al=!1,ol=typeof WeakSet==`function`?WeakSet:Set,sl=null;function cl(e,t){if(e=e.containerInfo,zd=cp,e=Dr(e),Or(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Bd={focusedElem:e,selectionRange:n},cp=!1,sl=t;sl!==null;)if(t=sl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,sl=e;else for(;sl!==null;){switch(t=sl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Ys(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Y(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)tf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:tf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,sl=e;break}sl=t.return}}function ll(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:wl(e,n),r&4&&Wc(5,n);break;case 1:if(wl(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Y(n,n.return,e)}else{var i=Ys(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Y(n,n.return,e)}}}r&64&&Kc(n),r&512&&Jc(n,n.return);break;case 3:if(wl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Za(e,t)}catch(e){Y(n,n.return,e)}}break;case 27:t===null&&r&4&&nl(n);case 26:case 5:wl(e,n),t===null&&r&4&&Xc(n),r&512&&Jc(n,n.return);break;case 12:wl(e,n);break;case 31:wl(e,n),r&4&&hl(e,n);break;case 13:wl(e,n),r&4&&gl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Xu.bind(null,n),cf(e,n))));break;case 22:if(r=n.memoizedState!==null||rl,!r){t=t!==null&&t.memoizedState!==null||il,i=rl;var a=il;rl=r,(il=t)&&!a?El(e,n,!!(n.subtreeFlags&8772)):wl(e,n),rl=i,il=a}break;case 30:break;default:wl(e,n)}}function ul(e){var t=e.alternate;t!==null&&(e.alternate=null,ul(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&mt(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 dl=null,fl=!1;function pl(e,t,n){for(n=n.child;n!==null;)ml(e,t,n),n=n.sibling}function ml(e,t,n){if(Ie&&typeof Ie.onCommitFiberUnmount==`function`)try{Ie.onCommitFiberUnmount(Fe,n)}catch{}switch(n.tag){case 26:il||Yc(n,t),pl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:il||Yc(n,t);var r=dl,i=fl;Qd(n.type)&&(dl=n.stateNode,fl=!1),pl(e,t,n),mf(n.stateNode),dl=r,fl=i;break;case 5:il||Yc(n,t);case 6:if(r=dl,i=fl,dl=null,pl(e,t,n),dl=r,fl=i,dl!==null){if(fl)try{(dl.nodeType===9?dl.body:dl.nodeName===`HTML`?dl.ownerDocument.body:dl).removeChild(n.stateNode)}catch(e){Y(n,t,e)}else try{dl.removeChild(n.stateNode)}catch(e){Y(n,t,e)}}break;case 18:dl!==null&&(fl?(e=dl,$d(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Pp(e)):$d(dl,n.stateNode));break;case 4:r=dl,i=fl,dl=n.stateNode.containerInfo,fl=!0,pl(e,t,n),dl=r,fl=i;break;case 0:case 11:case 14:case 15:Gc(2,n,t),il||Gc(4,n,t),pl(e,t,n);break;case 1:il||(Yc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&qc(n,t,r)),pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:il=(r=il)||n.memoizedState!==null,pl(e,t,n),il=r;break;default:pl(e,t,n)}}function hl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Pp(e)}catch(e){Y(t,t.return,e)}}}function gl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pp(e)}catch(e){Y(t,t.return,e)}}function _l(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ol),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ol),t;default:throw Error(i(435,e.tag))}}function vl(e,t){var n=_l(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Zu.bind(null,e,t);t.then(r,r)}})}function yl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Qd(c.type)){dl=c.stateNode,fl=!1;break a}break;case 5:dl=c.stateNode,fl=!1;break a;case 3:case 4:dl=c.stateNode.containerInfo,fl=!0;break a}c=c.return}if(dl===null)throw Error(i(160));ml(o,s,a),dl=null,fl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)xl(t,e),t=t.sibling}var bl=null;function xl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yl(t,e),Sl(e),r&4&&(Gc(3,e,e.return),Wc(3,e),Gc(5,e,e.return));break;case 1:yl(t,e),Sl(e),r&512&&(il||n===null||Yc(n,n.return)),r&64&&rl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=bl;if(yl(t,e),Sl(e),r&512&&(il||n===null||Yc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null){if(r===null){if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[pt]||o[ot]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Id(o,r,n),o[ot]=e,yt(o),r=o;break a;case`link`:var s=Hf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Id(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Hf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Id(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[ot]=e,yt(o),r=o}e.stateNode=r}else Uf(a,e.type,e.stateNode)}else e.stateNode=Lf(a,r,e.memoizedProps)}else o===r?r===null&&e.stateNode!==null&&Zc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Uf(a,e.type,e.stateNode):Lf(a,r,e.memoizedProps))}break;case 27:yl(t,e),Sl(e),r&512&&(il||n===null||Yc(n,n.return)),n!==null&&r&4&&Zc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(yl(t,e),Sl(e),r&512&&(il||n===null||Yc(n,n.return)),e.flags&32){a=e.stateNode;try{Gt(a,``)}catch(t){Y(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Zc(e,a,n===null?a:n.memoizedProps)),r&1024&&(al=!0);break;case 6:if(yl(t,e),Sl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Y(e,e.return,t)}}break;case 3:if(Vf=null,a=bl,bl=_f(t.containerInfo),yl(t,e),bl=a,Sl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Pp(t.containerInfo)}catch(t){Y(e,e.return,t)}al&&(al=!1,Cl(e));break;case 4:r=bl,bl=_f(e.stateNode.containerInfo),yl(t,e),Sl(e),bl=r;break;case 12:yl(t,e),Sl(e);break;case 31:yl(t,e),Sl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,vl(e,r)));break;case 13:yl(t,e),Sl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(q=Ee()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,vl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=rl,d=il;if(rl=u||a,il=d||l,yl(t,e),il=d,rl=u,Sl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||rl||il||Tl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Y(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Y(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?ef(m,!0):ef(l.stateNode,!1)}catch(e){Y(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,vl(e,n))));break;case 19:yl(t,e),Sl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,vl(e,r)));break;case 30:break;case 21:break;default:yl(t,e),Sl(e)}}function Sl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Qc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;tl(e,$c(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Gt(o,``),n.flags&=-33),tl(e,$c(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;el(e,$c(e),s);break;default:throw Error(i(161))}}catch(t){Y(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Cl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Cl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function wl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ll(e,t.alternate,t),t=t.sibling}function Tl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Gc(4,t,t.return),Tl(t);break;case 1:Yc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&qc(t,t.return,n),Tl(t);break;case 27:mf(t.stateNode);case 26:case 5:Yc(t,t.return),Tl(t);break;case 22:t.memoizedState===null&&Tl(t);break;case 30:Tl(t);break;default:Tl(t)}e=e.sibling}}function El(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:El(i,a,n),Wc(4,a);break;case 1:if(El(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Y(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Xa(c[i],s)}catch(e){Y(r,r.return,e)}}n&&o&64&&Kc(a),Jc(a,a.return);break;case 27:nl(a);case 26:case 5:El(i,a,n),n&&r===null&&o&4&&Xc(a),Jc(a,a.return);break;case 12:El(i,a,n);break;case 31:El(i,a,n),n&&o&4&&hl(i,a);break;case 13:El(i,a,n),n&&o&4&&gl(i,a);break;case 22:a.memoizedState===null&&El(i,a,n),Jc(a,a.return);break;case 30:break;default:El(i,a,n)}t=t.sibling}}function Dl(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&&la(n))}function Ol(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&la(e))}function kl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Al(e,t,n,r),t=t.sibling}function Al(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:kl(e,t,n,r),i&2048&&Wc(9,t);break;case 1:kl(e,t,n,r);break;case 3:kl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&la(e)));break;case 12:if(i&2048){kl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Y(t,t.return,e)}}else kl(e,t,n,r);break;case 31:kl(e,t,n,r);break;case 13:kl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?kl(e,t,n,r):(a._visibility|=2,jl(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?kl(e,t,n,r):Ml(e,t),i&2048&&Dl(o,t);break;case 24:kl(e,t,n,r),i&2048&&Ol(t.alternate,t);break;default:kl(e,t,n,r)}}function jl(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:jl(a,o,s,c,i),Wc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,jl(a,o,s,c,i)):u._visibility&2?jl(a,o,s,c,i):Ml(a,o),i&&l&2048&&Dl(o.alternate,o);break;case 24:jl(a,o,s,c,i),i&&l&2048&&Ol(o.alternate,o);break;default:jl(a,o,s,c,i)}t=t.sibling}}function Ml(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:Ml(n,r),i&2048&&Dl(r.alternate,r);break;case 24:Ml(n,r),i&2048&&Ol(r.alternate,r);break;default:Ml(n,r)}t=t.sibling}}var Nl=8192;function Pl(e,t,n){if(e.subtreeFlags&Nl)for(e=e.child;e!==null;)Fl(e,t,n),e=e.sibling}function Fl(e,t,n){switch(e.tag){case 26:Pl(e,t,n),e.flags&Nl&&e.memoizedState!==null&&Kf(n,bl,e.memoizedState,e.memoizedProps);break;case 5:Pl(e,t,n);break;case 3:case 4:var r=bl;bl=_f(e.stateNode.containerInfo),Pl(e,t,n),bl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Nl,Nl=16777216,Pl(e,t,n),Nl=r):Pl(e,t,n));break;default:Pl(e,t,n)}}function Il(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 Ll(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];sl=r,Bl(r,e)}Il(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Rl(e),e=e.sibling}function Rl(e){switch(e.tag){case 0:case 11:case 15:Ll(e),e.flags&2048&&Gc(9,e,e.return);break;case 3:Ll(e);break;case 12:Ll(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,zl(e)):Ll(e);break;default:Ll(e)}}function zl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];sl=r,Bl(r,e)}Il(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Gc(8,t,t.return),zl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,zl(t));break;default:zl(t)}e=e.sibling}}function Bl(e,t){for(;sl!==null;){var n=sl;switch(n.tag){case 0:case 11:case 15:Gc(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:la(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,sl=r;else a:for(n=e;sl!==null;){r=sl;var i=r.sibling,a=r.return;if(ul(r),r===n){sl=null;break a}if(i!==null){i.return=a,sl=i;break a}sl=a}}}var Vl={getCacheForType:function(e){var t=na(sa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return na(sa).controller.signal}},Hl=typeof WeakMap==`function`?WeakMap:Map,H=0,Ul=null,U=null,W=0,G=0,Wl=null,Gl=!1,Kl=!1,ql=!1,Jl=0,Yl=0,Xl=0,Zl=0,Ql=0,$l=0,eu=0,tu=null,nu=null,K=!1,q=0,ru=0,iu=1/0,au=null,J=null,ou=0,su=null,cu=null,lu=0,uu=0,du=null,fu=null,pu=0,mu=null;function hu(){return H&2&&W!==0?W&-W:j.T===null?rt():pd()}function gu(){if($l===0){if(!(W&536870912)||L){var e=He;He<<=1,!(He&3932160)&&(He=262144),$l=e}else $l=536870912}return e=ro.current,e!==null&&(e.flags|=32),$l}function _u(e,t,n){(e===Ul&&(G===2||G===9)||e.cancelPendingCommit!==null)&&(wu(e,0),xu(e,W,$l,!1)),Xe(e,n),H&2&&e===Ul||(e===Ul&&(!(H&2)&&(Zl|=n),Yl===4&&xu(e,W,$l,!1)),ad(e))}function vu(e,t,n){if(H&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||Ke(e,t),a=r?Mu(e,t):Au(e,t,!0),o=r;do{if(a===0){Kl&&!r&&xu(e,t,0,!1);break}if(n=e.current.alternate,o&&!bu(n))a=Au(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=tu;var l=c.current.memoizedState.isDehydrated;if(l&&(wu(c,s).flags|=256),s=Au(c,s,!1),s!==2){if(ql&&!l){c.errorRecoveryDisabledLanes|=o,Zl|=o,a=4;break a}o=nu,nu=a,o!==null&&(nu===null?nu=o:nu.push.apply(nu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){wu(e,0),xu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:xu(r,t,$l,!Gl);break a;case 2:nu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=q+300-Ee(),10<a)){if(xu(r,t,$l,!Gl),Ge(r,0,!0)!==0)break a;lu=t,r.timeoutHandle=qd(yu.bind(null,r,n,nu,au,K,t,$l,Zl,eu,Gl,o,`Throttled`,-0,0),a);break a}yu(r,n,nu,au,K,t,$l,Zl,eu,Gl,o,null,-0,0)}break}}while(1);ad(e)}function yu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$t},Fl(t,a,d);var m=(a&62914560)===a?q-Ee():(a&4194048)===a?ru-Ee():0;if(m=Jf(d,m),m!==null){lu=a,e.cancelPendingCommit=m(zu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),xu(e,a,o,!l);return}}zu(e,t,a,n,r,i,o,s,c)}function bu(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(!Sr(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 xu(e,t,n,r){t&=~Ql,t&=~Zl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-I(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Qe(e,n,t)}function Su(){return H&6?!0:(od(0,!1),!1)}function Cu(){if(U!==null){if(G===0)var e=U.return;else e=U,qi=Ki=null,jo(e),Ma=null,Na=0,e=U;for(;e!==null;)Uc(e.alternate,e),e=e.return;U=null}}function wu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Jd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),lu=0,Cu(),Ul=e,U=n=ui(e.current,null),W=t,G=0,Wl=null,Gl=!1,Kl=Ke(e,t),ql=!1,eu=$l=Ql=Zl=Xl=Yl=0,nu=tu=null,K=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-I(r),a=1<<i;t|=e[i],r&=~a}return Jl=t,ei(),n}function Tu(e,t){z=null,j.H=Vs,t===Sa||t===wa?(t=Aa(),G=3):t===Ca?(t=Aa(),G=4):G=t===ac?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Wl=t,U===null&&(Yl=1,$s(e,vi(t,e.current)))}function Eu(){var e=ro.current;return e===null?!0:(W&4194048)===W?io===null:(W&62914560)===W||W&536870912?e===io:!1}function Du(){var e=j.H;return j.H=Vs,e===null?Vs:e}function Ou(){var e=j.A;return j.A=Vl,e}function ku(){Yl=4,Gl||(W&4194048)!==W&&ro.current!==null||(Kl=!0),!(Xl&134217727)&&!(Zl&134217727)||Ul===null||xu(Ul,W,$l,!1)}function Au(e,t,n){var r=H;H|=2;var i=Du(),a=Ou();(Ul!==e||W!==t)&&(au=null,wu(e,t)),t=!1;var o=Yl;a:do try{if(G!==0&&U!==null){var s=U,c=Wl;switch(G){case 8:Cu(),o=6;break a;case 3:case 2:case 9:case 6:ro.current===null&&(t=!0);var l=G;if(G=0,Wl=null,Iu(e,s,c,l),n&&Kl){o=0;break a}break;default:l=G,G=0,Wl=null,Iu(e,s,c,l)}}ju(),o=Yl;break}catch(t){Tu(e,t)}while(1);return t&&e.shellSuspendCounter++,qi=Ki=null,H=r,j.H=i,j.A=a,U===null&&(Ul=null,W=0,ei()),o}function ju(){for(;U!==null;)Pu(U)}function Mu(e,t){var n=H;H|=2;var r=Du(),a=Ou();Ul!==e||W!==t?(au=null,iu=Ee()+500,wu(e,t)):Kl=Ke(e,t);a:do try{if(G!==0&&U!==null){t=U;var o=Wl;b:switch(G){case 1:G=0,Wl=null,Iu(e,t,o,1);break;case 2:case 9:if(Ea(o)){G=0,Wl=null,Fu(t);break}t=function(){G!==2&&G!==9||Ul!==e||(G=7),ad(e)},o.then(t,t);break a;case 3:G=7;break a;case 4:G=5;break a;case 7:Ea(o)?(G=0,Wl=null,Fu(t)):(G=0,Wl=null,Iu(e,t,o,7));break;case 5:var s=null;switch(U.tag){case 26:s=U.memoizedState;case 5:case 27:var c=U;if(s?Gf(s):c.stateNode.complete){G=0,Wl=null;var l=c.sibling;if(l!==null)U=l;else{var u=c.return;u===null?U=null:(U=u,Lu(u))}break b}}G=0,Wl=null,Iu(e,t,o,5);break;case 6:G=0,Wl=null,Iu(e,t,o,6);break;case 8:Cu(),Yl=6;break a;default:throw Error(i(462))}}Nu();break}catch(t){Tu(e,t)}while(1);return qi=Ki=null,j.H=r,j.A=a,H=n,U===null?(Ul=null,W=0,ei(),Yl):0}function Nu(){for(;U!==null&&!we();)Pu(U)}function Pu(e){var t=Pc(e.alternate,e,Jl);e.memoizedProps=e.pendingProps,t===null?Lu(e):U=t}function Fu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=yc(n,t,t.pendingProps,t.type,void 0,W);break;case 11:t=yc(n,t,t.pendingProps,t.type.render,t.ref,W);break;case 5:jo(t);default:Uc(n,t),t=U=di(t,Jl),t=Pc(n,t,Jl)}e.memoizedProps=e.pendingProps,t===null?Lu(e):U=t}function Iu(e,t,n,r){qi=Ki=null,jo(t),Ma=null,Na=0;var i=t.return;try{if(ic(e,i,t,n,W)){Yl=1,$s(e,vi(n,e.current)),U=null;return}}catch(t){if(i!==null)throw U=i,t;Yl=1,$s(e,vi(n,e.current)),U=null;return}t.flags&32768?(L||r===1?e=!0:Kl||W&536870912?e=!1:(Gl=e=!0,(r===2||r===9||r===3||r===6)&&(r=ro.current,r!==null&&r.tag===13&&(r.flags|=16384))),Ru(t,e)):Lu(t)}function Lu(e){var t=e;do{if(t.flags&32768){Ru(t,Gl);return}e=t.return;var n=Vc(t.alternate,t,Jl);if(n!==null){U=n;return}if(t=t.sibling,t!==null){U=t;return}U=t=e}while(t!==null);Yl===0&&(Yl=5)}function Ru(e,t){do{var n=Hc(e.alternate,e);if(n!==null){n.flags&=32767,U=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){U=e;return}U=e=n}while(e!==null);Yl=6,U=null}function zu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Wu();while(ou!==0);if(H&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=$r,Ze(e,n,o,s,c,l),e===Ul&&(U=Ul=null,W=0),cu=t,su=e,lu=n,uu=o,du=a,fu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Qu(Ae,function(){return Gu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=j.T,j.T=null,a=M.p,M.p=2,s=H,H|=4;try{cl(e,t,n)}finally{H=s,M.p=a,j.T=r}}ou=1,Bu(),Vu(),Hu()}}function Bu(){if(ou===1){ou=0;var e=su,t=cu,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=j.T,j.T=null;var r=M.p;M.p=2;var i=H;H|=4;try{xl(t,e);var a=Bd,o=Dr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Er(s.ownerDocument.documentElement,s)){if(c!==null&&Or(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 _=Tr(s,h),v=Tr(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}}cp=!!zd,Bd=zd=null}finally{H=i,M.p=r,j.T=n}}e.current=t,ou=2}}function Vu(){if(ou===2){ou=0;var e=su,t=cu,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=j.T,j.T=null;var r=M.p;M.p=2;var i=H;H|=4;try{ll(e,t.alternate,t)}finally{H=i,M.p=r,j.T=n}}ou=3}}function Hu(){if(ou===4||ou===3){ou=0,Te();var e=su,t=cu,n=lu,r=fu;t.subtreeFlags&10256||t.flags&10256?ou=5:(ou=0,cu=su=null,Uu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(J=null),nt(n),t=t.stateNode,Ie&&typeof Ie.onCommitFiberRoot==`function`)try{Ie.onCommitFiberRoot(Fe,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=j.T,i=M.p,M.p=2,j.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{j.T=t,M.p=i}}lu&3&&Wu(),ad(e),i=e.pendingLanes,n&261930&&i&42?e===mu?pu++:(pu=0,mu=e):pu=0,od(0,!1)}}function Uu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,la(t)))}function Wu(){return Bu(),Vu(),Hu(),Gu()}function Gu(){if(ou!==5)return!1;var e=su,t=uu;uu=0;var n=nt(lu),r=j.T,a=M.p;try{M.p=32>n?32:n,j.T=null,n=du,du=null;var o=su,s=lu;if(ou=0,cu=su=null,lu=0,H&6)throw Error(i(331));var c=H;if(H|=4,Rl(o.current),Al(o,o.current,s,n),H=c,od(0,!1),Ie&&typeof Ie.onPostCommitFiberRoot==`function`)try{Ie.onPostCommitFiberRoot(Fe,o)}catch{}return!0}finally{M.p=a,j.T=r,Uu(e,t)}}function Ku(e,t,n){t=vi(n,t),t=tc(e.stateNode,t,2),e=Wa(e,t,2),e!==null&&(Xe(e,2),ad(e))}function Y(e,t,n){if(e.tag===3)Ku(e,e,n);else for(;t!==null;){if(t.tag===3){Ku(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(J===null||!J.has(r))){e=vi(n,e),n=nc(2),r=Wa(t,n,2),r!==null&&(rc(n,r,t,e),Xe(r,2),ad(r));break}}t=t.return}}function qu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Hl;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)||(ql=!0,i.add(n),e=Ju.bind(null,e,t,n),t.then(e,e))}function Ju(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ul===e&&(W&n)===n&&(Yl===4||Yl===3&&(W&62914560)===W&&300>Ee()-q?!(H&2)&&wu(e,0):Ql|=n,eu===W&&(eu=0)),ad(e)}function Yu(e,t){t===0&&(t=Je()),e=ri(e,t),e!==null&&(Xe(e,t),ad(e))}function Xu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yu(e,n)}function Zu(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),Yu(e,n)}function Qu(e,t){return Se(e,t)}var $u=null,ed=null,td=!1,nd=!1,rd=!1,id=0;function ad(e){e!==ed&&e.next===null&&(ed===null?$u=ed=e:ed=ed.next=e),nd=!0,td||(td=!0,fd())}function od(e,t){if(!rd&&nd){rd=!0;do for(var n=!1,r=$u;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-I(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,dd(r,a))}else a=W,a=Ge(r,r===Ul?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ke(r,a)||(n=!0,dd(r,a))}r=r.next}while(n);rd=!1}}function sd(){cd()}function cd(){nd=td=!1;var e=0;id!==0&&Kd()&&(e=id);for(var t=Ee(),n=null,r=$u;r!==null;){var i=r.next,a=ld(r,t);a===0?(r.next=null,n===null?$u=i:n.next=i,i===null&&(ed=n)):(n=r,(e!==0||a&3)&&(nd=!0)),r=i}ou!==0&&ou!==5||od(e,!1),id!==0&&(id=0)}function ld(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-I(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=qe(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Ul,n=W,n=Ge(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(G===2||G===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ce(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ke(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ce(r),nt(n)){case 2:case 8:n=ke;break;case 32:n=Ae;break;case 268435456:n=Me;break;default:n=Ae}return r=ud.bind(null,e),n=Se(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ce(r),e.callbackPriority=2,e.callbackNode=null,2}function ud(e,t){if(ou!==0&&ou!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Wu()&&e.callbackNode!==n)return null;var r=W;return r=Ge(e,e===Ul?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(vu(e,r,t),ld(e,Ee()),e.callbackNode!=null&&e.callbackNode===n?ud.bind(null,e):null)}function dd(e,t){if(Wu())return null;vu(e,t,!0)}function fd(){Xd(function(){H&6?Se(Oe,sd):cd()})}function pd(){if(id===0){var e=fa;e===0&&(e=Ve,Ve<<=1,!(Ve&261888)&&(Ve=256)),id=e}return id}function md(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Qt(``+e)}function hd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function gd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=md((i[st]||null).action),o=r.submitter;o&&(t=(t=o[st]||null)?md(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new xn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(id!==0){var e=o?hd(i,o):new FormData(i);Ds(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?hd(i,o):new FormData(i),Ds(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var _d=0;_d<Jr.length;_d++){var vd=Jr[_d];Yr(vd.toLowerCase(),`on`+(vd[0].toUpperCase()+vd.slice(1)))}Yr(Br,`onAnimationEnd`),Yr(Vr,`onAnimationIteration`),Yr(Hr,`onAnimationStart`),Yr(`dblclick`,`onDoubleClick`),Yr(`focusin`,`onFocus`),Yr(`focusout`,`onBlur`),Yr(Ur,`onTransitionRun`),Yr(Wr,`onTransitionStart`),Yr(Gr,`onTransitionCancel`),Yr(Kr,`onTransitionEnd`),Ct(`onMouseEnter`,[`mouseout`,`mouseover`]),Ct(`onMouseLeave`,[`mouseout`,`mouseover`]),Ct(`onPointerEnter`,[`pointerout`,`pointerover`]),Ct(`onPointerLeave`,[`pointerout`,`pointerover`]),St(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),St(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),St(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),St(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),St(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),St(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var yd=`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(` `),bd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(yd));function xd(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Xr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Xr(e)}i.currentTarget=null,a=c}}}}function X(e,t){var n=t[lt];n===void 0&&(n=t[lt]=new Set);var r=e+`__bubble`;n.has(r)||(Td(t,e,2,!1),n.add(r))}function Sd(e,t,n){var r=0;t&&(r|=4),Td(n,e,r,t)}var Cd=`_reactListening`+Math.random().toString(36).slice(2);function wd(e){if(!e[Cd]){e[Cd]=!0,bt.forEach(function(t){t!==`selectionchange`&&(bd.has(t)||Sd(t,!1,e),Sd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Cd]||(t[Cd]=!0,Sd(`selectionchange`,!1,t))}}function Td(e,t,n,r){switch(hp(t)){case 2:var i=lp;break;case 8:i=up;break;default:i=dp}n=i.bind(null,t,n,e),i=void 0,!un||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 Ed(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=ht(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}sn(function(){var r=a,i=tn(n),s=[];a:{var c=qr.get(e);if(c!==void 0){var l=xn,u=e;switch(e){case`keypress`:if(gn(n)===0)break a;case`keydown`:case`keyup`:l=zn;break;case`focusin`:u=`focus`,l=An;break;case`focusout`:u=`blur`,l=An;break;case`beforeblur`:case`afterblur`:l=An;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=On;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=kn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Vn;break;case Br:case Vr:case Hr:l=jn;break;case Kr:l=Hn;break;case`scroll`:case`scrollend`:l=Cn;break;case`wheel`:l=Un;break;case`copy`:case`cut`:case`paste`:l=Mn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Bn;break;case`toggle`:case`beforetoggle`:l=Wn}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=cn(m,p),g!=null&&d.push(Dd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==en&&(u=n.relatedTarget||n.fromElement)&&(ht(u)||u[ct]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?ht(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=On,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Bn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:_t(l),h=u==null?c:_t(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,ht(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=kd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Ad(s,c,l,d,!1),u!==null&&f!==null&&Ad(s,f,u,d,!0)}}a:{if(c=r?_t(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=ur;else if(ir(c)){if(dr)v=br;else{v=vr;var y=_r}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Yt(r.elementType)&&(v=ur):v=yr;if(v&&=v(e,r)){ar(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Vt(c,`number`,c.value)}switch(y=r?_t(r):window,e){case`focusin`:(ir(y)||y.contentEditable===`true`)&&(Ar=y,jr=r,Mr=null);break;case`focusout`:Mr=jr=Ar=null;break;case`mousedown`:Nr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Nr=!1,Pr(s,n,i);break;case`selectionchange`:if(kr)break;case`keydown`:case`keyup`:Pr(s,n,i)}var b;if(Kn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else er?Qn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Yn&&n.locale!==`ko`&&(er||x!==`onCompositionStart`?x===`onCompositionEnd`&&er&&(b=hn()):(fn=i,pn=`value`in fn?fn.value:fn.textContent,er=!0)),y=Od(r,x),0<y.length&&(x=new Nn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=$n(n),b!==null&&(x.data=b)))),(b=Jn?tr(e,n):nr(e,n))&&(x=Od(r,`onBeforeInput`),0<x.length&&(y=new Nn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),gd(s,e,r,n,i)}xd(s,t)})}function Dd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Od(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=cn(e,n),i!=null&&r.unshift(Dd(e,i,a)),i=cn(e,t),i!=null&&r.push(Dd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function kd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ad(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=cn(n,a),l!=null&&o.unshift(Dd(n,l,c))):i||(l=cn(n,a),l!=null&&o.push(Dd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var jd=/\r\n?/g,Md=/\u0000|\uFFFD/g;function Nd(e){return(typeof e==`string`?e:``+e).replace(jd,`
24
+ `).replace(Md,``)}function Pd(e,t){return t=Nd(t),Nd(e)===t}function Z(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Gt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Gt(e,``+r);break;case`className`:kt(e,`class`,r);break;case`tabIndex`:kt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:kt(e,n,r);break;case`style`:Jt(e,r,o);break;case`data`:if(t!==`object`){kt(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=Qt(``+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`&&Z(e,t,`name`,a.name,a,null),Z(e,t,`formEncType`,a.formEncType,a,null),Z(e,t,`formMethod`,a.formMethod,a,null),Z(e,t,`formTarget`,a.formTarget,a,null)):(Z(e,t,`encType`,a.encType,a,null),Z(e,t,`method`,a.method,a,null),Z(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Qt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=$t);break;case`onScroll`:r!=null&&X(`scroll`,e);break;case`onScrollEnd`:r!=null&&X(`scrollend`,e);break;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));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Qt(``+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`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`:X(`beforetoggle`,e),X(`toggle`,e),Ot(e,`popover`,r);break;case`xlinkActuate`:At(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:At(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:At(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:At(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:At(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:At(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:At(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:At(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:At(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Ot(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Xt.get(n)||n,Ot(e,n,r))}}function Fd(e,t,n,r,a,o){switch(n){case`style`:Jt(e,r,o);break;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));e.innerHTML=n}}break;case`children`:typeof r==`string`?Gt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Gt(e,``+r);break;case`onScroll`:r!=null&&X(`scroll`,e);break;case`onScrollEnd`:r!=null&&X(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=$t);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!xt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[st]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Ot(e,n,r)}}}function Id(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:X(`error`,e),X(`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:Z(e,t,o,s,n,null)}}a&&Z(e,t,`srcSet`,n.srcSet,n,null),r&&Z(e,t,`src`,n.src,n,null);return;case`input`:X(`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:Z(e,t,r,d,n,null)}}Bt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in X(`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:Z(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Ht(e,!!r,n,!0):Ht(e,!!r,t,!1);return;case`textarea`:for(s in X(`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:Z(e,t,s,c,n,null)}Wt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Z(e,t,l,r,n,null)}return;case`dialog`:X(`beforetoggle`,e),X(`toggle`,e),X(`cancel`,e),X(`close`,e);break;case`iframe`:case`object`:X(`load`,e);break;case`video`:case`audio`:for(r=0;r<yd.length;r++)X(yd[r],e);break;case`image`:X(`error`,e),X(`load`,e);break;case`details`:X(`toggle`,e);break;case`embed`:case`source`:case`link`:X(`error`,e),X(`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:Z(e,t,u,r,n,null)}return;default:if(Yt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Fd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Z(e,t,c,r,n,null))}function Q(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Z(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`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Z(e,t,p,m,r,f)}}zt(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)||Z(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`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Z(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Ht(e,!!n,n?[]:``,!1):Ht(e,!!n,t,!0)):Ht(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Z(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`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Z(e,t,s,a,r,o)}Ut(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Z(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Z(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)&&Z(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:Z(e,t,u,p,r,m)}return;default:if(Yt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Fd(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||Fd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Z(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||Z(e,t,f,p,r,m)}function Ld(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Rd(){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&&Ld(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&&Ld(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 zd=null,Bd=null;function Vd(e){return e.nodeType===9?e:e.ownerDocument}function Hd(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 Ud(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 Wd(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 Gd=null;function Kd(){var e=window.event;return e&&e.type===`popstate`?e!==Gd&&(Gd=e,!0):(Gd=null,!1)}var qd=typeof setTimeout==`function`?setTimeout:void 0,Jd=typeof clearTimeout==`function`?clearTimeout:void 0,Yd=typeof Promise==`function`?Promise:void 0,Xd=typeof queueMicrotask==`function`?queueMicrotask:Yd===void 0?qd:function(e){return Yd.resolve(null).then(e).catch(Zd)};function Zd(e){setTimeout(function(){throw e})}function Qd(e){return e===`head`}function $d(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),Pp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)mf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,mf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[pt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&mf(e.ownerDocument.body)}n=i}while(n);Pp(t)}function ef(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 tf(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`:tf(n),mt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function nf(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[pt])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=lf(e.nextSibling),e===null)break}return null}function rf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=lf(e.nextSibling),e===null))return null;return e}function af(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=lf(e.nextSibling),e===null))return null;return e}function of(e){return e.data===`$?`||e.data===`$~`}function sf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function cf(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 lf(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 uf=null;function df(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return lf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function ff(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 pf(e,t,n){switch(t=Vd(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 mf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);mt(e)}var hf=new Map,gf=new Set;function _f(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var vf=M.d;M.d={f:yf,r:bf,D:Cf,C:wf,L:Tf,m:Ef,X:Of,S:Df,M:kf};function yf(){var e=vf.f(),t=Su();return e||t}function bf(e){var t=gt(e);t!==null&&t.tag===5&&t.type===`form`?ks(t):vf.r(e)}var xf=typeof document>`u`?null:document;function Sf(e,t,n){var r=xf;if(r&&typeof t==`string`&&t){var i=Rt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),gf.has(i)||(gf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Id(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Cf(e){vf.D(e),Sf(`dns-prefetch`,e,null)}function wf(e,t){vf.C(e,t),Sf(`preconnect`,e,t)}function Tf(e,t,n){vf.L(e,t,n);var r=xf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Rt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Rt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Rt(n.imageSizes)+`"]`)):i+=`[href="`+Rt(e)+`"]`;var a=i;switch(t){case`style`:a=jf(e);break;case`script`:a=Ff(e)}hf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),hf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Mf(a))||t===`script`&&r.querySelector(If(a))||(t=r.createElement(`link`),Id(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Ef(e,t){vf.m(e,t);var n=xf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Rt(r)+`"][href="`+Rt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Ff(e)}if(!hf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),hf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(If(a)))return}r=n.createElement(`link`),Id(r,`link`,e),yt(r),n.head.appendChild(r)}}}function Df(e,t,n){vf.S(e,t,n);var r=xf;if(r&&e){var i=vt(r).hoistableStyles,a=jf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Mf(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=hf.get(a))&&zf(e,n);var c=o=r.createElement(`link`);yt(c),Id(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,Rf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Of(e,t){vf.X(e,t);var n=xf;if(n&&e){var r=vt(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=p({src:e,async:!0},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),yt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t){vf.M(e,t);var n=xf;if(n&&e){var r=vt(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),yt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t,n,r){var a=(a=ce.current)?_f(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`?(t=jf(n.href),n=vt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,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=jf(n.href);var o=vt(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(Mf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),hf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},hf.set(e,n),o||Pf(a,e,n,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`?(t=Ff(n),n=vt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function jf(e){return`href="`+Rt(e)+`"`}function Mf(e){return`link[rel="stylesheet"][`+e+`]`}function Nf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Pf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Id(t,`link`,n),yt(t),e.head.appendChild(t))}function Ff(e){return`[src="`+Rt(e)+`"]`}function If(e){return`script[async]`+e}function Lf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Rt(n.href)+`"]`);if(r)return t.instance=r,yt(r),r;var a=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),yt(r),Id(r,`style`,a),Rf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=jf(n.href);var o=e.querySelector(Mf(a));if(o)return t.state.loading|=4,t.instance=o,yt(o),o;r=Nf(n),(a=hf.get(a))&&zf(r,a),o=(e.ownerDocument||e).createElement(`link`),yt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Id(o,`link`,r),t.state.loading|=4,Rf(o,n.precedence,e),t.instance=o;case`script`:return o=Ff(n.src),(a=e.querySelector(If(o)))?(t.instance=a,yt(a),a):(r=n,(a=hf.get(o))&&(r=p({},n),Bf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),yt(a),Id(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,Rf(r,n.precedence,e));return t.instance}function Rf(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 zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Bf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Vf=null;function Hf(e,t,n){if(Vf===null){var r=new Map,i=Vf=new Map;i.set(n,r)}else i=Vf,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[pt]||a[ot]||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 Uf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Wf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Gf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Kf(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=jf(r.href),a=t.querySelector(Mf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Yf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,yt(a);return}a=t.ownerDocument||t,r=Nf(r),(i=hf.get(i))&&zf(r,i),a=a.createElement(`link`),yt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Id(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=Yf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var qf=0;function Jf(e,t){return e.stylesheets&&e.count===0&&Zf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&qf===0&&(qf=62500*Rd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>qf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Yf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xf=null;function Zf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xf=new Map,t.forEach(Qf,e),Xf=null,Yf.call(e))}function Qf(e,t){if(!(t.state.loading&4)){var n=Xf.get(e);if(n)var r=n.get(null);else{n=new Map,Xf.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=Yf.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 $f={$$typeof:x,Provider:null,Consumer:null,_currentValue:N,_currentValue2:N,_threadCount:0};function ep(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=Ye(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ye(0),this.hiddenUpdates=Ye(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function tp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ep(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ci(3,null,null,t),e.current=a,a.stateNode=e,t=ca(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Va(a),e}function np(e){return e?(e=oi,e):oi}function rp(e,t,n,r,i,a){i=np(i),r.context===null?r.context=i:r.pendingContext=i,r=Ua(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Wa(e,r,t),n!==null&&(_u(n,e,t),Ga(n,e,t))}function ip(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ap(e,t){ip(e,t),(e=e.alternate)&&ip(e,t)}function op(e){if(e.tag===13||e.tag===31){var t=ri(e,67108864);t!==null&&_u(t,e,67108864),ap(e,67108864)}}function sp(e){if(e.tag===13||e.tag===31){var t=hu();t=tt(t);var n=ri(e,t);n!==null&&_u(n,e,t),ap(e,t)}}var cp=!0;function lp(e,t,n,r){var i=j.T;j.T=null;var a=M.p;try{M.p=2,dp(e,t,n,r)}finally{M.p=a,j.T=i}}function up(e,t,n,r){var i=j.T;j.T=null;var a=M.p;try{M.p=8,dp(e,t,n,r)}finally{M.p=a,j.T=i}}function dp(e,t,n,r){if(cp){var i=fp(r);if(i===null)Ed(e,t,r,pp,n),wp(e,r);else if(Ep(i,e,t,n,r))r.stopPropagation();else if(wp(e,r),t&4&&-1<Cp.indexOf(e)){for(;i!==null;){var a=gt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=We(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-I(o);s.entanglements[1]|=c,o&=~c}ad(a),!(H&6)&&(iu=Ee()+500,od(0,!1))}}break;case 31:case 13:s=ri(a,2),s!==null&&_u(s,a,2),Su(),ap(a,2)}if(a=fp(r),a===null&&Ed(e,t,r,pp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Ed(e,t,r,null,n)}}function fp(e){return e=tn(e),mp(e)}var pp=null;function mp(e){if(pp=null,e=ht(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 pp=e,null}function hp(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`resize`: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`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`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(De()){case Oe:return 2;case ke:return 8;case Ae:case je:return 32;case Me:return 268435456;default:return 32}default:return 32}}var gp=!1,_p=null,vp=null,yp=null,bp=new Map,xp=new Map,Sp=[],Cp=`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 wp(e,t){switch(e){case`focusin`:case`focusout`:_p=null;break;case`dragenter`:case`dragleave`:vp=null;break;case`mouseover`:case`mouseout`:yp=null;break;case`pointerover`:case`pointerout`:bp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:xp.delete(t.pointerId)}}function Tp(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=gt(t),t!==null&&op(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ep(e,t,n,r,i){switch(t){case`focusin`:return _p=Tp(_p,e,t,n,r,i),!0;case`dragenter`:return vp=Tp(vp,e,t,n,r,i),!0;case`mouseover`:return yp=Tp(yp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return bp.set(a,Tp(bp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,xp.set(a,Tp(xp.get(a)||null,e,t,n,r,i)),!0}return!1}function Dp(e){var t=ht(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,it(e.priority,function(){sp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,it(e.priority,function(){sp(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 Op(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);en=r,n.target.dispatchEvent(r),en=null}else return t=gt(n),t!==null&&op(t),e.blockedOn=n,!1;t.shift()}return!0}function kp(e,t,n){Op(e)&&n.delete(t)}function Ap(){gp=!1,_p!==null&&Op(_p)&&(_p=null),vp!==null&&Op(vp)&&(vp=null),yp!==null&&Op(yp)&&(yp=null),bp.forEach(kp),xp.forEach(kp)}function jp(e,n){e.blockedOn===n&&(e.blockedOn=null,gp||(gp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ap)))}var Mp=null;function Np(e){Mp!==e&&(Mp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Mp===e&&(Mp=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(mp(r||n)===null)continue;break}var a=gt(n);a!==null&&(e.splice(t,3),t-=3,Ds(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Pp(e){function t(t){return jp(t,e)}_p!==null&&jp(_p,e),vp!==null&&jp(vp,e),yp!==null&&jp(yp,e),bp.forEach(t),xp.forEach(t);for(var n=0;n<Sp.length;n++){var r=Sp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Sp.length&&(n=Sp[0],n.blockedOn===null);)Dp(n),n.blockedOn===null&&Sp.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||Np(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[st]||null)s=o.formAction;else if(mp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Np(n)}}}function Fp(){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 Ip(e){this._internalRoot=e}Lp.prototype.render=Ip.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;rp(n,hu(),e,t,null,null)},Lp.prototype.unmount=Ip.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rp(e.current,2,null,e,null,null),Su(),t[ct]=null}};function Lp(e){this._internalRoot=e}Lp.prototype.unstable_scheduleHydration=function(e){if(e){var t=rt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Sp.length&&t!==0&&t<Sp[n].priority;n++);Sp.splice(n,0,e),n===0&&Dp(e)}};var Rp=n.version;if(Rp!==`19.2.8`)throw Error(i(527,Rp,`19.2.8`));M.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var zp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:j,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Bp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bp.isDisabled&&Bp.supportsFiber)try{Fe=Bp.inject(zp),Ie=Bp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Xs,s=Zs,c=Qs;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=tp(e,1,!1,null,null,n,r,null,o,s,c,Fp),e[ct]=t.current,wd(e),new Ip(t)}})),ts=s(((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=es()})),ns=ua(`clipboardService`),rs=class{async writeText(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}let t=document.activeElement instanceof HTMLElement?document.activeElement:null,n=t?.closest(`dialog[open]`)??document.body,r=document.createElement(`textarea`);r.value=e,r.setAttribute(`readonly`,``),r.style.position=`fixed`,r.style.opacity=`0`,r.style.pointerEvents=`none`,n.appendChild(r);try{if(r.focus({preventScroll:!0}),r.select(),r.setSelectionRange(0,e.length),!document.execCommand(`copy`))throw Error(`剪贴板写入失败`)}finally{r.remove(),t?.focus({preventScroll:!0})}}};function B(){for(var e,t=0,n=``,r=arguments.length;t<r;t++)(e=arguments[t])&&typeof e==`string`&&(n+=(n&&` `)+e);return n}var is=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function as(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:is(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var os=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},ss=e=>{let t=os(e);return t.charAt(0).toUpperCase()+t.slice(1)},cs=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),ls={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function us(e){return e!=null}function ds(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??ls.width,a=e.size??e.height??ls.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?cs(...c):cs(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??ls[`stroke-width`])*Number(e.size??e.width??ls.width)/Number(t.size??t.width??ls.width):t.strokeWidth??ls[`stroke-width`];return[`svg`,{...Object.entries(ls).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&us(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&us(t.width)&&{[r(`width`)]:t.width},...`height`in t&&us(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function fs(e,t={}){return ds(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var ps=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},ms=(0,p.createContext)({}),hs=()=>(0,p.useContext)(ms),gs=(0,p.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:m=24,strokeWidth:h=2,absoluteStrokeWidth:g=!1,nonScalingStroke:_=!1,color:v=`currentColor`,className:y=``}=hs()??{},b=!!c||ps(d),[x,S,C=[]]=fs(u,{color:e??v,width:n??t??m,height:r??t??m,strokeWidth:i??h,absoluteStrokeWidth:a??g,nonScalingStroke:o??_,className:cs(y,s),hasA11yProp:b,attributes:d});return(0,p.createElement)(x,{ref:f,...S},[...C.map(([e,t])=>(0,p.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function _s(e,t=[],n=[]){let r=typeof e==`string`?as(e,t,n):e,i=(0,p.forwardRef)(({className:e,...t},n)=>(0,p.createElement)(gs,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=ss(r.name)),i}var vs={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};vs.node;var ys=_s(vs),bs={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};bs.node;var xs=_s(bs),Ss={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};Ss.node;var Cs=_s(Ss),ws={name:`circle-exclamation-point`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`,`circle-alert`]};ws.node;var Ts=_s(ws),Es={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};Es.node;var Ds=_s(Es),Os={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};Os.node;var ks=_s(Os),As={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};As.node;var js=_s(As),Ms=Symbol.for(`preact-signals`);function Ns(){if(zs>1)zs--;else{var e,t=!1;for((function(){var e=Us;for(Us=void 0;e!==void 0;){var t=e.S;if(t.v===e.v)for(var n=t.t;n!==void 0;n=n.x)n.i===e.i&&(n.i=t.i);e=e.o}})();Rs!==void 0;){var n=Rs;for(Rs=void 0,Bs++;n!==void 0;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&Js(n))try{n.c()}catch(n){t||=(e=n,!0)}n=r}}if(Bs=0,zs--,t)throw e}}function Ps(e){if(zs>0)return e();Hs=++Vs,zs++;try{return e()}finally{Ns()}}var Fs,Is=void 0;function Ls(e){var t=Is,n=Fs;Is=void 0,Fs=void 0;try{return e()}finally{Is=t,Fs=n}}var Rs=void 0,zs=0,Bs=0,Vs=0,Hs=0,Us=void 0,Ws=0;function Gs(e){if(Is!==void 0){var t=e.n;if(t===void 0||t.t!==Is)return t={i:0,S:e,p:Is.s,n:void 0,t:Is,e:void 0,x:void 0,r:t},Is.s!==void 0&&(Is.s.n=t),Is.s=t,e.n=t,32&Is.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=Is.s,t.n=void 0,Is.s.n=t,Is.s=t),t}}function Ks(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}Ks.prototype.brand=Ms,Ks.prototype.h=function(){return!0},Ks.prototype.S=function(e){var t=this,n=this.t;n!==e&&e.e===void 0&&(e.x=n,this.t=e,n===void 0?Ls(function(){var e;(e=t.W)==null||e.call(t)}):n.e=e)},Ks.prototype.U=function(e){var t=this;if(this.t!==void 0){var n=e.e,r=e.x;n!==void 0&&(n.x=r,e.e=void 0),r!==void 0&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,r===void 0&&Ls(function(){var e;(e=t.Z)==null||e.call(t)}))}},Ks.prototype.subscribe=function(e){var t=this;return rc(function(){var n=t.value;Ls(function(){return e(n)})},{name:`sub`})},Ks.prototype.valueOf=function(){return this.value},Ks.prototype.toString=function(){return this.value+``},Ks.prototype.toJSON=function(){return this.value},Ks.prototype.peek=function(){var e=this;return Ls(function(){return e.value})},Object.defineProperty(Ks.prototype,"value",{get:function(){var e=Gs(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Bs>100)throw Error(`Cycle detected`);(function(e){zs!==0&&Bs===0&&e.l!==Hs&&(e.l=Hs,Us={S:e,v:e.v,i:e.i,o:Us})})(this),this.v=e,this.i++,Ws++,zs++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ns()}}}});function qs(e,t){return new Ks(e,t)}function Js(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Ys(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Xs(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function Zs(e,t){Ks.call(this,void 0,t),this.x=e,this.s=void 0,this.g=Ws-1,this.f=4}Zs.prototype=new Ks,Zs.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ws))return!0;if(this.g=Ws,this.f|=1,this.i>0&&!Js(this))return this.f&=-2,!0;var e=Is;try{Ys(this),Is=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return Is=e,Xs(this),this.f&=-2,!0},Zs.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Ks.prototype.S.call(this,e)},Zs.prototype.U=function(e){if(this.t!==void 0&&(Ks.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},Zs.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(Zs.prototype,"value",{get:function(){if(1&this.f)throw Error(`Cycle detected`);var e=Gs(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function Qs(e,t){return new Zs(e,t)}function $s(e){var t=e.j;if(e.j=void 0,typeof t==`function`){zs++;var n=Is;Is=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,ec(e),t}finally{Is=n,Ns()}}}function ec(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,$s(e)}function tc(e){if(Is!==this)throw Error(`Out-of-order effect`);Xs(this),Is=e,this.f&=-2;try{8&this.f&&ec(this)}finally{Ns()}}function nc(e,t){this.x=e,this.j=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=t?.name,Fs&&Fs.push(this)}nc.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t==`function`&&(this.j=t)}finally{e()}},nc.prototype.S=function(){if(1&this.f)throw Error(`Cycle detected`);this.f|=1,this.f&=-9,$s(this),Ys(this),zs++;var e=Is;return Is=this,tc.bind(this,e)},nc.prototype.N=function(){2&this.f||(this.f|=2,this.u=Rs,Rs=this)},nc.prototype.d=function(){this.f|=8,1&this.f||ec(this)},nc.prototype.dispose=function(){this.d()};function rc(e,t){var n=new nc(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}var ic=Object.create,ac=Object.defineProperty,oc=Object.defineProperties,sc=Object.getOwnPropertyDescriptor,cc=Object.getOwnPropertyDescriptors,lc=Object.getOwnPropertySymbols,uc=Object.prototype.hasOwnProperty,dc=Object.prototype.propertyIsEnumerable,fc=(e,t)=>(t=Symbol[e])?t:Symbol.for(`Symbol.`+e),pc=e=>{throw TypeError(e)},mc=(e,t,n)=>t in e?ac(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hc=(e,t)=>{for(var n in t||={})uc.call(t,n)&&mc(e,n,t[n]);if(lc)for(var n of lc(t))dc.call(t,n)&&mc(e,n,t[n]);return e},gc=(e,t)=>oc(e,cc(t)),_c=(e,t)=>ac(e,`name`,{value:t,configurable:!0}),vc=e=>[,,,ic(e?.[fc(`metadata`)]??null)],yc=[`class`,`method`,`getter`,`setter`,`accessor`,`field`,`value`,`get`,`set`],bc=e=>e!==void 0&&typeof e!=`function`?pc(`Function expected`):e,xc=(e,t,n,r,i)=>({kind:yc[e],name:t,metadata:r,addInitializer:e=>n._?pc(`Already initialized`):i.push(bc(e||null))}),Sc=(e,t)=>mc(t,fc(`metadata`),e[3]),Cc=(e,t,n,r)=>{for(var i=0,a=e[t>>1],o=a&&a.length;i<o;i++)t&1?a[i].call(n):r=a[i].call(n,r);return r},wc=(e,t,n,r,i,a)=>{var o,s,c,l,u,d=t&7,f=!!(t&8),p=!!(t&16),m=d>3?e.length+1:d?f?1:2:0,h=yc[d+5],g=d>3&&(e[m-1]=[]),_=e[m]||(e[m]=[]),v=d&&(!p&&!f&&(i=i.prototype),d<5&&(d>3||!p)&&sc(d<4?i:{get[n](){return Dc(this,a)},set[n](e){return kc(this,a,e)}},n));d?p&&d<4&&_c(a,(d>2?`set `:d>1?`get `:``)+n):_c(i,n);for(var y=r.length-1;y>=0;y--)l=xc(d,n,c={},e[3],_),d&&(l.static=f,l.private=p,u=l.access={has:p?e=>Ec(i,e):e=>n in e},d^3&&(u.get=p?e=>(d^1?Dc:Ac)(e,i,d^4?a:v.get):e=>e[n]),d>2&&(u.set=p?(e,t)=>kc(e,i,t,d^4?a:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?p?a:v[h]:d>4?void 0:{get:v.get,set:v.set}:i,l),c._=1,d^4||s===void 0?bc(s)&&(d>4?g.unshift(s):d?p?a=s:v[h]=s:i=s):typeof s!=`object`||!s?pc(`Object expected`):(bc(o=s.get)&&(v.get=o),bc(o=s.set)&&(v.set=o),bc(o=s.init)&&g.unshift(o));return d||Sc(e,i),v&&ac(i,n,v),p?d^4?a:v:i},Tc=(e,t,n)=>t.has(e)||pc(`Cannot `+n),Ec=(e,t)=>Object(t)===t?e.has(t):pc(`Cannot use the "in" operator on this value`),Dc=(e,t,n)=>(Tc(e,t,`read from private field`),n?n.call(e):t.get(e)),Oc=(e,t,n)=>t.has(e)?pc(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),kc=(e,t,n,r)=>(Tc(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),Ac=(e,t,n)=>(Tc(e,t,`access private method`),n);function jc(e,t){if(t){let n;return Qs(()=>{let r=e();return r&&n&&t(n,r)?n:(n=r,r)})}return Qs(e)}function Mc(e,t){if(Object.is(e,t))return!0;if(e===null||t===null)return!1;if(typeof e==`function`&&typeof t==`function`)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}if(Array.isArray(e))return!Array.isArray(t)||e.length!==t.length?!1:!e.some((e,n)=>!Mc(e,t[n]));if(typeof e==`object`&&typeof t==`object`){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&!n.some(n=>!Mc(e[n],t[n]))}return!1}function V({get:e},t){return{init(e){return qs(e)},get(){return e.call(this).value},set(t){let n=e.call(this);n.peek()!==t&&(n.value=t)}}}function Nc(e,t){let n=new WeakMap;return function(){let t=n.get(this);return t||(t=jc(e.bind(this)),n.set(this,t)),t.value}}function Pc(e=!0){return function(t,n){n.addInitializer(function(){let t=n.kind===`field`||n.static?this:Object.getPrototypeOf(this),r=Object.getOwnPropertyDescriptor(t,n.name);r&&Object.defineProperty(t,n.name,gc(hc({},r),{enumerable:e}))})}}function Fc(...e){let t=e.map(e=>rc(e));return()=>t.forEach(e=>e())}var Ic,Lc,Rc,zc,Bc,Vc=[V],Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c,el,tl;Bc=[V],zc=[V],Rc=[Pc()],Lc=[Pc()],Ic=[Pc()];var nl=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,Cc(Hc,5,this),Oc(this,qc),Oc(this,Uc,Cc(Hc,8,this)),Cc(Hc,11,this),Oc(this,Jc,Cc(Hc,12,this)),Cc(Hc,15,this),Oc(this,Qc,Cc(Hc,16,this)),Cc(Hc,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return Dc(this,qc,el)}get initial(){return Dc(this,qc,Gc)}get previous(){return Dc(this,qc,Xc)}set current(e){let t=Ls(()=>Dc(this,qc,el));e&&t&&this.equals(t,e)||Ps(()=>{Dc(this,qc,Gc)||kc(this,qc,e,Kc),kc(this,qc,t,Zc),kc(this,qc,e,tl)})}reset(e=this.defaultValue){Ps(()=>{kc(this,qc,void 0,Zc),kc(this,qc,e,Kc),kc(this,qc,e,tl)})}};Hc=vc(null),Uc=new WeakMap,qc=new WeakSet,Jc=new WeakMap,Qc=new WeakMap,Wc=wc(Hc,20,`#initial`,Vc,qc,Uc),Gc=Wc.get,Kc=Wc.set,Yc=wc(Hc,20,`#previous`,Bc,qc,Jc),Xc=Yc.get,Zc=Yc.set,$c=wc(Hc,20,`#current`,zc,qc,Qc),el=$c.get,tl=$c.set,wc(Hc,2,`current`,Rc,nl),wc(Hc,2,`initial`,Lc,nl),wc(Hc,2,`previous`,Ic,nl),Sc(Hc,nl);function rl(e){return Ls(()=>{let t={};for(let n in e)Object.defineProperty(t,n,{value:e[n],enumerable:!0,configurable:!0,writable:!0});return t})}var il=Object.create,al=Object.defineProperty,ol=Object.getOwnPropertyDescriptor,sl=Object.getOwnPropertySymbols,cl=Object.prototype.hasOwnProperty,ll=Object.prototype.propertyIsEnumerable,ul=(e,t)=>(t=Symbol[e])?t:Symbol.for(`Symbol.`+e),dl=e=>{throw TypeError(e)},fl=Math.pow,pl=(e,t,n)=>t in e?al(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ml=(e,t)=>{for(var n in t||={})cl.call(t,n)&&pl(e,n,t[n]);if(sl)for(var n of sl(t))ll.call(t,n)&&pl(e,n,t[n]);return e},hl=(e,t)=>al(e,`name`,{value:t,configurable:!0}),gl=e=>[,,,il(e?.[ul(`metadata`)]??null)],_l=[`class`,`method`,`getter`,`setter`,`accessor`,`field`,`value`,`get`,`set`],vl=e=>e!==void 0&&typeof e!=`function`?dl(`Function expected`):e,yl=(e,t,n,r,i)=>({kind:_l[e],name:t,metadata:r,addInitializer:e=>n._?dl(`Already initialized`):i.push(vl(e||null))}),bl=(e,t)=>pl(t,ul(`metadata`),e[3]),xl=(e,t,n,r)=>{for(var i=0,a=e[t>>1],o=a&&a.length;i<o;i++)t&1?a[i].call(n):r=a[i].call(n,r);return r},Sl=(e,t,n,r,i,a)=>{var o,s,c,l,u,d=t&7,f=!!(t&8),p=!!(t&16),m=d>3?e.length+1:d?f?1:2:0,h=_l[d+5],g=d>3&&(e[m-1]=[]),_=e[m]||(e[m]=[]),v=d&&(!p&&!f&&(i=i.prototype),d<5&&(d>3||!p)&&ol(d<4?i:{get[n](){return Tl(this,a)},set[n](e){return Dl(this,a,e)}},n));d?p&&d<4&&hl(a,(d>2?`set `:d>1?`get `:``)+n):hl(i,n);for(var y=r.length-1;y>=0;y--)l=yl(d,n,c={},e[3],_),d&&(l.static=f,l.private=p,u=l.access={has:p?e=>wl(i,e):e=>n in e},d^3&&(u.get=p?e=>(d^1?Tl:Ol)(e,i,d^4?a:v.get):e=>e[n]),d>2&&(u.set=p?(e,t)=>Dl(e,i,t,d^4?a:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?p?a:v[h]:d>4?void 0:{get:v.get,set:v.set}:i,l),c._=1,d^4||s===void 0?vl(s)&&(d>4?g.unshift(s):d?p?a=s:v[h]=s:i=s):typeof s!=`object`||!s?dl(`Object expected`):(vl(o=s.get)&&(v.get=o),vl(o=s.set)&&(v.set=o),vl(o=s.init)&&g.unshift(o));return d||bl(e,i),v&&al(i,n,v),p?d^4?a:v:i},Cl=(e,t,n)=>t.has(e)||dl(`Cannot `+n),wl=(e,t)=>Object(t)===t?e.has(t):dl(`Cannot use the "in" operator on this value`),Tl=(e,t,n)=>(Cl(e,t,`read from private field`),n?n.call(e):t.get(e)),El=(e,t,n)=>t.has(e)?dl(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),Dl=(e,t,n,r)=>(Cl(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),Ol=(e,t,n)=>(Cl(e,t,`access private method`),n),kl=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},Al=class e{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,n){let{top:r,left:i,width:a,height:o,scale:s}=this,c=new e(i+t,r+n,a,o);return c.scale=ml({},s),c}get boundingRectangle(){let{width:e,height:t,left:n,top:r,right:i,bottom:a}=this;return{width:e,height:t,left:n,top:r,right:i,bottom:a}}get center(){let{left:e,top:t,right:n,bottom:r}=this;return new kl((e+n)/2,(t+r)/2)}get area(){let{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;let{left:n,top:r,width:i,height:a}=this;return n===t.left&&r===t.top&&i===t.width&&a===t.height}containsPoint(e){let{top:t,left:n,bottom:r,right:i}=this;return t<=e.y&&e.y<=r&&n<=e.x&&e.x<=i}intersectionArea(t){return t instanceof e?jl(this,t):0}intersectionRatio(e){let{area:t}=this,n=this.intersectionArea(e);return n/(e.area+t-n)}get bottom(){let{top:e,height:t}=this;return e+t}get right(){let{left:e,width:t}=this;return e+t}get aspectRatio(){let{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:n,width:r,height:i}){return new e(n,t,r,i)}static delta(e,t,n={x:`center`,y:`center`}){let r=(e,t)=>{let r=n[t],i=t===`x`?e.left:e.top,a=t===`x`?e.width:e.height;return r==`start`?i:r==`end`?i+a:i+a/2};return kl.delta({x:r(e,`x`),y:r(e,`y`)},{x:r(t,`x`),y:r(t,`y`)})}static intersectionRatio(t,n){return e.from(t).intersectionRatio(e.from(n))}};function jl(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;return r<i&&n<a?o*s:0}var Ml,Nl,Pl,Fl,Il,Ll=class extends (Pl=nl,Nl=[Nc],Ml=[Nc],Pl){constructor(e){let t=kl.from(e);super(t,(e,t)=>kl.equals(e,t)),xl(Il,5,this),El(this,Fl,0),this.velocity={x:0,y:0}}get delta(){return kl.delta(this.current,this.initial)}get direction(){let{current:e,previous:t}=this;if(!t)return null;let n={x:e.x-t.x,y:e.y-t.y};return!n.x&&!n.y?null:Math.abs(n.x)>Math.abs(n.y)?n.x>0?`right`:`left`:n.y>0?`down`:`up`}get current(){return super.current}set current(e){let{current:t}=this,n=kl.from(e),r={x:n.x-t.x,y:n.y-t.y},i=Date.now(),a=i-Tl(this,Fl),o=e=>Math.round(e/a*100);Ps(()=>{Dl(this,Fl,i),this.velocity={x:o(r.x),y:o(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(kl.from(e)),this.velocity={x:0,y:0}}};Il=gl(Pl),Fl=new WeakMap,Sl(Il,2,`delta`,Nl,Ll),Sl(Il,2,`direction`,Ml,Ll),bl(Il,Ll);function Rl({x:e,y:t},n){let r=Math.abs(e),i=Math.abs(t);return typeof n==`number`?Math.sqrt(fl(r,2)+fl(i,2))>n:`x`in n&&`y`in n?r>n.x&&i>n.y:`x`in n?r>n.x:`y`in n&&i>n.y}var zl=(e=>(e.Horizontal=`x`,e.Vertical=`y`,e))(zl||{}),Bl=Object.values(zl),Vl=Object.create,Hl=Object.defineProperty,H=Object.defineProperties,Ul=Object.getOwnPropertyDescriptor,U=Object.getOwnPropertyDescriptors,W=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,Wl=Object.prototype.propertyIsEnumerable,Gl=(e,t)=>(t=Symbol[e])?t:Symbol.for(`Symbol.`+e),Kl=e=>{throw TypeError(e)},ql=(e,t,n)=>t in e?Hl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Jl=(e,t)=>{for(var n in t||={})G.call(t,n)&&ql(e,n,t[n]);if(W)for(var n of W(t))Wl.call(t,n)&&ql(e,n,t[n]);return e},Yl=(e,t)=>H(e,U(t)),Xl=(e,t)=>Hl(e,`name`,{value:t,configurable:!0}),Zl=(e,t)=>{var n={};for(var r in e)G.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&W)for(var r of W(e))t.indexOf(r)<0&&Wl.call(e,r)&&(n[r]=e[r]);return n},Ql=e=>[,,,Vl(e?.[Gl(`metadata`)]??null)],$l=[`class`,`method`,`getter`,`setter`,`accessor`,`field`,`value`,`get`,`set`],eu=e=>e!==void 0&&typeof e!=`function`?Kl(`Function expected`):e,tu=(e,t,n,r,i)=>({kind:$l[e],name:t,metadata:r,addInitializer:e=>n._?Kl(`Already initialized`):i.push(eu(e||null))}),nu=(e,t)=>ql(t,Gl(`metadata`),e[3]),K=(e,t,n,r)=>{for(var i=0,a=e[t>>1],o=a&&a.length;i<o;i++)t&1?a[i].call(n):r=a[i].call(n,r);return r},q=(e,t,n,r,i,a)=>{var o,s,c,l,u,d=t&7,f=!!(t&8),p=!!(t&16),m=d>3?e.length+1:d?f?1:2:0,h=$l[d+5],g=d>3&&(e[m-1]=[]),_=e[m]||(e[m]=[]),v=d&&(!p&&!f&&(i=i.prototype),d<5&&(d>3||!p)&&Ul(d<4?i:{get[n](){return au(this,a)},set[n](e){return ou(this,a,e)}},n));d?p&&d<4&&Xl(a,(d>2?`set `:d>1?`get `:``)+n):Xl(i,n);for(var y=r.length-1;y>=0;y--)l=tu(d,n,c={},e[3],_),d&&(l.static=f,l.private=p,u=l.access={has:p?e=>iu(i,e):e=>n in e},d^3&&(u.get=p?e=>(d^1?au:su)(e,i,d^4?a:v.get):e=>e[n]),d>2&&(u.set=p?(e,t)=>ou(e,i,t,d^4?a:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?p?a:v[h]:d>4?void 0:{get:v.get,set:v.set}:i,l),c._=1,d^4||s===void 0?eu(s)&&(d>4?g.unshift(s):d?p?a=s:v[h]=s:i=s):typeof s!=`object`||!s?Kl(`Object expected`):(eu(o=s.get)&&(v.get=o),eu(o=s.set)&&(v.set=o),eu(o=s.init)&&g.unshift(o));return d||nu(e,i),v&&Hl(i,n,v),p?d^4?a:v:i},ru=(e,t,n)=>t.has(e)||Kl(`Cannot `+n),iu=(e,t)=>Object(t)===t?e.has(t):Kl(`Cannot use the "in" operator on this value`),au=(e,t,n)=>(ru(e,t,`read from private field`),n?n.call(e):t.get(e)),J=(e,t,n)=>t.has(e)?Kl(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),ou=(e,t,n,r)=>(ru(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),su=(e,t,n)=>(ru(e,t,`access private method`),n);function cu(e,t){return{plugin:e,options:t}}function lu(e){return t=>cu(e,t)}function uu(e){return typeof e==`function`?{plugin:e,options:void 0}:e}var du=[V],fu,pu,mu,hu=class{constructor(e,t){this.manager=e,this.options=t,J(this,pu,K(fu,8,this,!1)),K(fu,11,this),J(this,mu,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return Ls(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){let t=rc(e.bind(this));return au(this,mu).add(t),t}destroy(){au(this,mu).forEach(e=>e())}static configure(e){return cu(this,e)}};fu=Ql(null),pu=new WeakMap,mu=new WeakMap,q(fu,4,`disabled`,du,hu,pu),nu(fu,hu);var gu=class extends hu{},_u,vu,yu=[V],bu,xu,Su,Cu,wu,Tu,Eu;vu=[V],_u=[V];var Du=class e{constructor(e,t){J(this,Cu,K(Su,8,this)),K(Su,11,this),J(this,wu),J(this,Tu,K(Su,12,this)),K(Su,15,this),J(this,Eu,K(Su,16,this)),K(Su,19,this);let{effects:n,id:r,data:i={},disabled:a=!1,register:o=!0}=e,s=r;ou(this,wu,qs(r)),this.manager=t,this.data=i,this.disabled=a,this.effects=()=>[()=>{let{id:e,manager:t}=this;if(e!==s)return s=e,t?.registry.register(this),()=>t?.registry.unregister(this)},...n?.()??[]],this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&o&&queueMicrotask(this.register)}get id(){let t=au(this,wu).value;return e.pendingIdChanges?.get(this)??t}set id(t){t!==(e.pendingIdChanges?.get(this)??au(this,wu).peek())&&(e.pendingIdChanges||(e.pendingIdChanges=new Map,queueMicrotask(()=>{var t;return su(t=e,bu,xu).call(t)})),e.pendingIdChanges.set(this,t))}register(){return this.manager?.registry.register(this)}unregister(){var e;(e=this.manager)==null||e.registry.unregister(this)}destroy(){var e;(e=this.manager)==null||e.registry.unregister(this)}};Su=Ql(null),bu=new WeakSet,xu=function(){let e=Du.pendingIdChanges;Du.pendingIdChanges=null,e&&Ps(()=>{for(let[t,n]of e)au(t,wu).value=n})},Cu=new WeakMap,wu=new WeakMap,Tu=new WeakMap,Eu=new WeakMap,q(Su,4,`manager`,yu,Du,Cu),q(Su,4,`data`,vu,Du,Tu),q(Su,4,`disabled`,_u,Du,Eu),J(Du,bu),nu(Su,Du),Du.pendingIdChanges=null;var Ou=Du,ku,Au,ju,Mu,Nu,Pu,Fu,Iu,Lu,Ru,zu,Bu=class extends (Fu=Ou,Pu=[V],Nu=[V],Mu=[V],ju=[Nc],Au=[Nc],ku=[Nc],Fu){constructor(e,t){var n=e,{modifiers:r,type:i,sensors:a,plugins:o,effects:s}=n,c=Zl(n,[`modifiers`,`type`,`sensors`,`plugins`,`effects`]);super(Yl(Jl({},c),{effects:()=>[...s?.()??[],()=>{let{manager:e,plugins:t}=this;if(e&&t)for(let n of t){let{plugin:t}=uu(n);e.registry.plugins.register(t)}}]}),t),K(Iu,5,this),J(this,Lu,K(Iu,8,this)),K(Iu,11,this),J(this,Ru,K(Iu,12,this)),K(Iu,15,this),J(this,zu,K(Iu,16,this,this.isDragSource?`dragging`:`idle`)),K(Iu,19,this),this.type=i,this.sensors=a,this.modifiers=r,this.alignment=c.alignment,this.plugins=o}pluginConfig(e){if(this.plugins)for(let t of this.plugins){let n=uu(t);if(n.plugin===e)return n.options}}get isDropping(){return this.status===`dropping`&&this.isDragSource}get isDragging(){return this.status===`dragging`&&this.isDragSource}get isDragSource(){return this.manager?.dragOperation.source?.id===this.id}};Iu=Ql(Fu),Lu=new WeakMap,Ru=new WeakMap,zu=new WeakMap,q(Iu,4,`type`,Pu,Bu,Lu),q(Iu,4,`modifiers`,Nu,Bu,Ru),q(Iu,4,`status`,Mu,Bu,zu),q(Iu,2,`isDropping`,ju,Bu),q(Iu,2,`isDragging`,Au,Bu),q(Iu,2,`isDragSource`,ku,Bu),nu(Iu,Bu);var Vu,Hu,Uu,Wu,Gu,Ku,Y,qu,Ju,Yu,Xu,Zu,Qu,$u=class extends (Y=Ou,Ku=[V],Gu=[V],Wu=[V],Uu=[V],Hu=[V],Vu=[Nc],Y){constructor(e,t){var n=e,{accept:r,collisionDetector:i,collisionPriority:a,type:o}=n,s=Zl(n,[`accept`,`collisionDetector`,`collisionPriority`,`type`]);super(s,t),K(qu,5,this),J(this,Ju,K(qu,8,this)),K(qu,11,this),J(this,Yu,K(qu,12,this)),K(qu,15,this),J(this,Xu,K(qu,16,this)),K(qu,19,this),J(this,Zu,K(qu,20,this)),K(qu,23,this),J(this,Qu,K(qu,24,this)),K(qu,27,this),this.accept=r,this.collisionDetector=i,this.collisionPriority=a,this.type=o}accepts(e){let{accept:t}=this;return t?typeof t==`function`?t(e):e.type?Array.isArray(t)?t.includes(e.type):e.type===t:!1:!0}get isDropTarget(){return this.manager?.dragOperation.target?.id===this.id}};qu=Ql(Y),Ju=new WeakMap,Yu=new WeakMap,Xu=new WeakMap,Zu=new WeakMap,Qu=new WeakMap,q(qu,4,`accept`,Ku,$u,Ju),q(qu,4,`type`,Gu,$u,Yu),q(qu,4,`collisionDetector`,Wu,$u,Xu),q(qu,4,`collisionPriority`,Uu,$u,Zu),q(qu,4,`shape`,Hu,$u,Qu),q(qu,2,`isDropTarget`,Vu,$u),nu(qu,$u);var ed=(e=>(e[e.Lowest=0]=`Lowest`,e[e.Low=1]=`Low`,e[e.Normal=2]=`Normal`,e[e.High=3]=`High`,e[e.Highest=4]=`Highest`,e))(ed||{}),td=(e=>(e[e.Collision=0]=`Collision`,e[e.ShapeIntersection=1]=`ShapeIntersection`,e[e.PointerIntersection=2]=`PointerIntersection`,e))(td||{}),nd,rd,id,ad,od,sd,cd,ld=[V],ud,dd;cd=[Nc],sd=[Nc],od=[Nc],ad=[Nc],id=[Nc],rd=[Nc],nd=[Nc];var fd=class{constructor(){K(ud,5,this),J(this,dd,K(ud,8,this,`idle`)),K(ud,11,this)}get current(){return this.value}get idle(){return this.value===`idle`}get initializationPending(){return this.value===`initialization-pending`}get initializing(){return this.value===`initializing`}get initialized(){let{value:e}=this;return e!==`idle`&&e!==`initialization-pending`}get dragging(){return this.value===`dragging`}get dropped(){return this.value===`dropped`}set(e){this.value=e}};ud=Ql(null),dd=new WeakMap,q(ud,4,`value`,ld,fd,dd),q(ud,2,`current`,cd,fd),q(ud,2,`idle`,sd,fd),q(ud,2,`initializationPending`,od,fd),q(ud,2,`initializing`,ad,fd),q(ud,2,`initialized`,id,fd),q(ud,2,`dragging`,rd,fd),q(ud,2,`dropped`,nd,fd),nu(ud,fd);var pd=class extends hu{constructor(e,t){super(e,t),this.manager=e,this.options=t}},md=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(let t of e??[])t.controller=this}onEvent(e){if(!this.activated){if(this.constraints?.length)for(let t of this.constraints)t.onEvent(e);else this.activate(e)}}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},hd,gd=class{constructor(e){this.options=e,J(this,hd)}set controller(e){ou(this,hd,e),e.signal.addEventListener(`abort`,()=>this.abort())}activate(e){var t;(t=au(this,hd))==null||t.activate(e)}};hd=new WeakMap;var _d,vd,yd,bd,xd,X,Sd,Cd,wd=[Nc],Td,Ed,Dd,Od,kd,Ad,jd,Md,Nd,Pd;Cd=[V],Sd=[V],X=[V],xd=[V],bd=[V],yd=[Nc],vd=[Nc],_d=[Nc];var Z=class{constructor(e){K(Od,5,this),J(this,Td),J(this,Ed),J(this,Dd,new nl(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new fd,J(this,kd,K(Od,8,this,!1)),K(Od,11,this),J(this,Ad,K(Od,12,this,null)),K(Od,15,this),J(this,jd,K(Od,16,this,null)),K(Od,19,this),J(this,Md,K(Od,20,this,null)),K(Od,23,this),J(this,Nd,K(Od,24,this,[])),K(Od,27,this),this.position=new Ll({x:0,y:0}),J(this,Pd,{x:0,y:0}),ou(this,Td,e)}get shape(){let{current:e,initial:t,previous:n}=au(this,Dd);return!e||!t?null:{current:e,initial:t,previous:n}}set shape(e){e?au(this,Dd).current=e:au(this,Dd).reset()}get source(){let e=this.sourceIdentifier;if(e==null)return null;let t=au(this,Td).registry.draggables.get(e);return t&&ou(this,Ed,t),t??au(this,Ed)??null}get target(){let e=this.targetIdentifier;return e==null?null:au(this,Td).registry.droppables.get(e)??null}get transform(){let{x:e,y:t}=this.position.delta,n={x:e,y:t};for(let e of this.modifiers)n=e.apply(Yl(Jl({},this.snapshot()),{transform:n}));return ou(this,Pd,n),n}snapshot(){return Ls(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:au(this,Pd),shape:this.shape?rl(this.shape):null,position:rl(this.position),status:rl(this.status),canceled:this.canceled}))}reset(){Ps(()=>{this.status.set(`idle`),this.sourceIdentifier=null,this.targetIdentifier=null,au(this,Dd).reset(),this.position.reset({x:0,y:0}),ou(this,Pd,{x:0,y:0}),this.modifiers=[]})}};Od=Ql(null),Td=new WeakMap,Ed=new WeakMap,Dd=new WeakMap,kd=new WeakMap,Ad=new WeakMap,jd=new WeakMap,Md=new WeakMap,Nd=new WeakMap,Pd=new WeakMap,q(Od,2,`shape`,wd,Z),q(Od,4,`canceled`,Cd,Z,kd),q(Od,4,`activatorEvent`,Sd,Z,Ad),q(Od,4,`sourceIdentifier`,X,Z,jd),q(Od,4,`targetIdentifier`,xd,Z,Md),q(Od,4,`modifiers`,bd,Z,Nd),q(Od,2,`source`,yd,Z),q(Od,2,`target`,vd,Z),q(Od,2,`transform`,_d,Z),nu(Od,Z);var Fd=e=>{throw TypeError(e)},Id=(e,t,n)=>t.has(e)||Fd(`Cannot `+n),Q=(e,t,n)=>(Id(e,t,`read from private field`),t.get(e)),Ld=(e,t,n)=>t.has(e)?Fd(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),Rd=(e,t,n,r)=>(Id(e,t,`write to private field`),t.set(e,n),n),zd=(e,t,n)=>(Id(e,t,`access private method`),n);function Bd(e){return e?e instanceof KeyframeEffect||`getKeyframes`in e&&typeof e.getKeyframes==`function`:!1}function Vd(e,t){let n=e.getAnimations(),r=null;for(let e of n){if(e.playState!==`running`)continue;let{effect:n}=e,i=(Bd(n)?n.getKeyframes():[]).filter(t);i.length>0&&(r=[i[i.length-1],e])}return r}function Hd(e){let{width:t,height:n,top:r,left:i,bottom:a,right:o}=e.getBoundingClientRect();return{width:t,height:n,top:r,left:i,bottom:a,right:o}}function Ud(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function Wd(e){return`nodeType`in e}function Gd(e){return e?Ud(e)?e:Wd(e)?`defaultView`in e?e.defaultView??window:e.ownerDocument?.defaultView??window:window:window}function Kd(e){let{Document:t}=Gd(e);return e instanceof t||`nodeType`in e&&e.nodeType===Node.DOCUMENT_NODE}function qd(e){return!e||Ud(e)?!1:e instanceof Gd(e).HTMLElement||`namespaceURI`in e&&typeof e.namespaceURI==`string`&&e.namespaceURI.endsWith(`html`)}function Jd(e){return e instanceof Gd(e).SVGElement||`namespaceURI`in e&&typeof e.namespaceURI==`string`&&e.namespaceURI.endsWith(`svg`)}function Yd(e){return e?Ud(e)?e.document:Wd(e)?Kd(e)?e:qd(e)||Jd(e)?e.ownerDocument:document:document:document}function Xd(e){let{documentElement:t}=Yd(e),n=Gd(e).visualViewport,r=n?.width??t.clientWidth,i=n?.height??t.clientHeight,a=n?.offsetTop??0,o=n?.offsetLeft??0;return{top:a,left:o,right:o+r,bottom:a+i,width:r,height:i}}function Zd(e,t){if(Qd(e)&&e.open===!1)return!1;let{overflow:n,overflowX:r,overflowY:i}=getComputedStyle(e);return n===`visible`&&r===`visible`&&i===`visible`}function Qd(e){return e.tagName===`DETAILS`}function $d(e,t=e.getBoundingClientRect(),n=0){let r=t,{ownerDocument:i}=e,a=i.defaultView??window,o=e.parentElement;for(;o&&o!==i.documentElement;){if(!Zd(o)){let e=o.getBoundingClientRect(),t=n*(e.bottom-e.top),i=n*(e.right-e.left),a=n*(e.bottom-e.top),s=n*(e.right-e.left);r={top:Math.max(r.top,e.top-t),right:Math.min(r.right,e.right+i),bottom:Math.min(r.bottom,e.bottom+a),left:Math.max(r.left,e.left-s),width:0,height:0},r.width=r.right-r.left,r.height=r.bottom-r.top}o=o.parentElement}let s=a.visualViewport,c=s?.offsetTop??0,l=s?.offsetLeft??0,u=s?.width??a.innerWidth,d=s?.height??a.innerHeight,f=n*d,p=n*u;return r={top:Math.max(r.top,c-f),right:Math.min(r.right,l+u+p),bottom:Math.min(r.bottom,c+d+f),left:Math.max(r.left,l-p),width:0,height:0},r.width=r.right-r.left,r.height=r.bottom-r.top,r.width<0&&(r.width=0),r.height<0&&(r.height=0),r}function ef(e){return{x:e.clientX,y:e.clientY}}var tf=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function nf(e=document,t=new Set){if(t.has(e))return[];t.add(e);let n=[e];for(let r of Array.from(e.querySelectorAll(`iframe, frame`)))try{let e=r.contentDocument;e&&!t.has(e)&&n.push(...nf(e,t))}catch{}try{let r=e.defaultView;if(r&&r!==window.top){let i=r.parent;i&&i.document&&i.document!==e&&n.push(...nf(i.document,t))}}catch{}return n}function rf(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function af(){let e=rf()?window.visualViewport:null;return{x:e?.offsetLeft??0,y:e?.offsetTop??0}}function of(e){return!e||!Wd(e)?!1:e instanceof Gd(e).ShadowRoot}function sf(e){if(e&&Wd(e)){let t=e.getRootNode();if(of(t)||t instanceof Document)return t}return Yd(e)}function cf(e){return e.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function lf(e){let t=`input, textarea, select, canvas, [contenteditable]`,n=e.cloneNode(!0),r=Array.from(e.querySelectorAll(t));return Array.from(n.querySelectorAll(t)).forEach((e,t)=>{let n=r[t];uf(e)&&uf(n)&&(e.type!==`file`&&(e.value=n.value),e.type===`radio`&&e.name&&(e.name=`Cloned__${e.name}`)),df(e)&&df(n)&&n.width>0&&n.height>0&&e.getContext(`2d`)?.drawImage(n,0,0)}),n}function uf(e){return`value`in e}function df(e){return e.tagName===`CANVAS`}function ff(e,{x:t,y:n}){let r=e.elementFromPoint(t,n);if(pf(r)){let{contentDocument:e}=r;if(e){let{left:i,top:a}=r.getBoundingClientRect();return ff(e,{x:t-i,y:n-a})}}return r}function pf(e){return e?.tagName===`IFRAME`}var mf=new WeakMap;function hf(e){return e.closest(`
25
+ input:not([disabled]),
26
+ select:not([disabled]),
27
+ textarea:not([disabled]),
28
+ button:not([disabled]),
29
+ a[href],
30
+ [contenteditable]:not([contenteditable="false"])
31
+ `)}var gf=class{constructor(){this.entries=new Set,this.clear=()=>{for(let e of this.entries){let[t,{type:n,listener:r,options:i}]=e;t.removeEventListener(n,r,i)}this.entries.clear()}}bind(e,t){let n=Array.isArray(e)?e:[e],r=Array.isArray(t)?t:[t],i=[];for(let e of n)for(let t of r){let{type:n,listener:r,options:a}=t,o=[e,t];e.addEventListener(n,r,a),this.entries.add(o),i.push(o)}let a=this.entries;return function(){for(let e of i){let[t,{type:n,listener:r,options:i}]=e;t.removeEventListener(n,r,i),a.delete(e)}}}};function _f(e){let t=e?.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function vf(e){let t=new Set,n=_f(e);for(;n;)t.add(n),n=_f(n);return t}function yf(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}function bf(e,t){let n=()=>performance.now(),r,i;return function(...a){let o=this;i?(r?.(),r=yf(()=>{e.apply(o,a),i=n()},t-(n()-i))):(e.apply(o,a),i=n())}}function xf(e,t){return e===t?!0:!e||!t?!1:e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}function Sf(e,t=e.getBoundingClientRect()){let{width:n,height:r}=$d(e,t);return n>0&&r>0}var Cf=typeof ResizeObserver<`u`?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},wf,Tf=class extends Cf{constructor(e){super(t=>{Q(this,wf)?e(t,this):Rd(this,wf,!0)}),Ld(this,wf,!1)}};wf=new WeakMap;var Ef=Array.from({length:100},(e,t)=>t/100),Df=75,Of,kf,Af,jf,Mf,Nf,Pf,Ff,If,Lf,Rf,zf=class{constructor(e,t,n={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,Ld(this,If),this.disconnect=()=>{var e,t,n;Rd(this,Pf,!0),(e=Q(this,Af))==null||e.disconnect(),(t=Q(this,jf))==null||t.disconnect(),Q(this,Mf).disconnect(),(n=Q(this,Nf))==null||n.remove()},Ld(this,Of,!0),Ld(this,kf),Ld(this,Af),Ld(this,jf),Ld(this,Mf),Ld(this,Nf),Ld(this,Pf,!1),Ld(this,Ff,bf(()=>{var e;let{element:t}=this;if((e=Q(this,jf))==null||e.disconnect(),Q(this,Pf)||!Q(this,Of)||!t.isConnected)return;let n=t.ownerDocument??document,{innerHeight:r,innerWidth:i}=n.defaultView??window,a=t.getBoundingClientRect(),{top:o,left:s,bottom:c,right:l}=$d(t,a),u=-Math.floor(o),d=-Math.floor(s),f=`${u}px ${-Math.floor(i-l)}px ${-Math.floor(r-c)}px ${d}px`;this.boundingClientRect=a,Rd(this,jf,new IntersectionObserver(e=>{let[n]=e,{intersectionRect:r}=n;(n.intersectionRatio===1?Al.intersectionRatio(r,$d(t)):n.intersectionRatio)!==1&&Q(this,Ff).call(this)},{threshold:Ef,rootMargin:f,root:n})),Q(this,jf).observe(t),zd(this,If,Lf).call(this)},Df)),this.boundingClientRect=e.getBoundingClientRect(),Rd(this,Of,Sf(e,this.boundingClientRect));let r=!0;this.callback=e=>{r&&(r=!1,n.skipInitial)||t(e)};let i=e.ownerDocument;n?.debug&&(Rd(this,Nf,document.createElement(`div`)),Q(this,Nf).style.background=`rgba(0,0,0,0.15)`,Q(this,Nf).style.position=`fixed`,Q(this,Nf).style.pointerEvents=`none`,i.body.appendChild(Q(this,Nf))),Rd(this,Mf,new IntersectionObserver(t=>{var n,r;let{boundingClientRect:i,isIntersecting:a}=t[t.length-1],{width:o,height:s}=i,c=Q(this,Of);Rd(this,Of,a),(o||s)&&(c&&!a?((n=Q(this,jf))==null||n.disconnect(),this.callback(null),(r=Q(this,Af))==null||r.disconnect(),Rd(this,Af,void 0),Q(this,Nf)&&(Q(this,Nf).style.visibility=`hidden`)):Q(this,Ff).call(this),a&&!Q(this,Af)&&(Rd(this,Af,new Tf(Q(this,Ff))),Q(this,Af).observe(e)))},{threshold:Ef,root:i})),Q(this,Of)&&!n.skipInitial&&this.callback(this.boundingClientRect),Q(this,Mf).observe(e)}};Of=new WeakMap,kf=new WeakMap,Af=new WeakMap,jf=new WeakMap,Mf=new WeakMap,Nf=new WeakMap,Pf=new WeakMap,Ff=new WeakMap,If=new WeakSet,Lf=function(){Q(this,Pf)||(zd(this,If,Rf).call(this),!xf(this.boundingClientRect,Q(this,kf))&&(this.callback(this.boundingClientRect),Rd(this,kf,this.boundingClientRect)))},Rf=function(){if(Q(this,Nf)){let{top:e,left:t,width:n,height:r}=$d(this.element);Q(this,Nf).style.overflow=`hidden`,Q(this,Nf).style.visibility=`visible`,Q(this,Nf).style.top=`${Math.floor(e)}px`,Q(this,Nf).style.left=`${Math.floor(t)}px`,Q(this,Nf).style.width=`${Math.floor(n)}px`,Q(this,Nf).style.height=`${Math.floor(r)}px`}};var Bf=new WeakMap,Vf=new WeakMap;function Hf(e,t){let n=Bf.get(e);return n||={disconnect:new zf(e,t=>{let n=Bf.get(e);n&&n.callbacks.forEach(e=>e(t))},{skipInitial:!0}).disconnect,callbacks:new Set},n.callbacks.add(t),Bf.set(e,n),()=>{n.callbacks.delete(t),n.callbacks.size===0&&(Bf.delete(e),n.disconnect())}}function Uf(e,t){let n=new Set;for(let r of e){let e=Hf(r,t);n.add(e)}return()=>n.forEach(e=>e())}function Wf(e,t){let n=e.ownerDocument;if(!Vf.has(n)){let e=new AbortController,t=new Set;document.addEventListener(`scroll`,e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),Vf.set(n,{disconnect:()=>e.abort(),listeners:t})}let{listeners:r,disconnect:i}=Vf.get(n)??{};return!r||!i?()=>{}:(r.add(t),()=>{r.delete(t),r.size===0&&(i(),Vf.delete(n))})}var Gf,Kf,qf,Jf,Yf=class{constructor(e,t,n){this.callback=t,Ld(this,Gf),Ld(this,Kf,!1),Ld(this,qf),Ld(this,Jf,bf(e=>{if(!Q(this,Kf)&&e.target&&`contains`in e.target&&typeof e.target.contains==`function`){for(let t of Q(this,qf))if(e.target.contains(t)){this.callback(Q(this,Gf).boundingClientRect);break}}},Df));let r=vf(e),i=Uf(r,t),a=Wf(e,Q(this,Jf));Rd(this,qf,r),Rd(this,Gf,new zf(e,t,n)),this.disconnect=()=>{Q(this,Kf)||(Rd(this,Kf,!0),i(),a(),Q(this,Gf).disconnect())}}};Gf=new WeakMap,Kf=new WeakMap,qf=new WeakMap,Jf=new WeakMap;function Xf(e){return`showPopover`in e&&`hidePopover`in e&&typeof e.showPopover==`function`&&typeof e.hidePopover==`function`}function Zf(e){try{Xf(e)&&e.isConnected&&e.hasAttribute(`popover`)&&!e.matches(`:popover-open`)&&e.showPopover()}catch{}}var Qf=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{let{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(let t of e)t();for(let e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}},$f=new Qf(e=>{typeof requestAnimationFrame==`function`?requestAnimationFrame(e):e()}),ep=new Qf(e=>setTimeout(e,50)),tp=new Map,np=tp.clear.bind(tp);function rp(e,t=!1){if(!t)return ip(e);let n=tp.get(e);return n||(n=ip(e),tp.set(e,n),ep.schedule(np),n)}function ip(e){return Gd(e).getComputedStyle(e)}function ap(e){return!tf||!e?!1:e===Yd(e).scrollingElement}function op(e){let t=Gd(e),n=ap(e),r=n?Xd(e):Hd(e),i=t.visualViewport,a=n?{height:i?.height??t.innerHeight,width:i?.width??t.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o=e.scrollWidth-a.width,s=rp(e,!0),c=n?s.direction===`rtl`:sp(s),l={current:{x:e.scrollLeft,y:e.scrollTop},min:{x:c?-o:0,y:0},max:{x:c?0:o,y:e.scrollHeight-a.height}};return{rect:r,position:l,isTop:l.current.y<=l.min.y,isLeft:l.current.x<=l.min.x,isBottom:l.current.y>=l.max.y,isRight:l.current.x>=l.max.x}}function sp(e){let{direction:t,display:n,writingMode:r}=e,i=r===`vertical-lr`||r===`vertical-rl`||r===`sideways-lr`||r===`sideways-rl`,a=i?r===`vertical-rl`||r===`sideways-rl`:t===`rtl`;if(n!==`flex`&&n!==`inline-flex`)return a;let{flexDirection:o,flexWrap:s}=e,c=o===`row`||o===`row-reverse`;return a!==((i?!c:c)?o===`row-reverse`||o===`column-reverse`:s===`wrap-reverse`)}function cp(e,t,n=op(e)){let{isTop:r,isBottom:i,isLeft:a,isRight:o,position:s}=n,{x:c,y:l}=t??{x:0,y:0},u=!r&&s.current.y+l>s.min.y,d=!i&&s.current.y+l<s.max.y,f=!a&&s.current.x+c>s.min.x,p=!o&&s.current.x+c<s.max.x;return{top:u,bottom:d,left:f,right:p,x:f||p,y:u||d}}function lp(e,t=rp(e,!0)){return t.position===`fixed`||t.position===`sticky`}function up(e,t=rp(e,!0)){let n=/(auto|scroll|overlay)/;return[`overflow`,`overflowX`,`overflowY`].some(e=>{let r=t[e];return typeof r==`string`&&n.test(r)})}var dp={excludeElement:!0,escapeShadowDOM:!0};function fp(e,t=dp){let{limit:n,excludeElement:r,escapeShadowDOM:i}=t,a=new Set;function o(t){if(n!=null&&a.size>=n||!t)return a;if(Kd(t)&&t.scrollingElement!=null&&!a.has(t.scrollingElement))return a.add(t.scrollingElement),a;if(i&&of(t))return o(t.host);if(!qd(t))return Jd(t)?o(t.parentElement):a;if(a.has(t))return a;let s=rp(t,!0);if(r&&t===e||up(t,s)&&a.add(t),lp(t,s)){let{scrollingElement:e}=t.ownerDocument;return e&&a.add(e),a}return o(t.parentNode)}return e?o(e):a}function pp(e,t=window.frameElement){let n={x:0,y:0,scaleX:1,scaleY:1};if(!e)return n;let r=_f(e);for(;r;){if(r===t)return n;let e=Hd(r),{x:i,y:a}=mp(r,e);n.x+=e.left,n.y+=e.top,n.scaleX*=i,n.scaleY*=a,r=_f(r)}return n}function mp(e,t=Hd(e)){let n=Math.round(t.width),r=Math.round(t.height);if(qd(e))return{x:n/e.offsetWidth,y:r/e.offsetHeight};let i=rp(e,!0);return{x:(parseFloat(i.width)||n)/n,y:(parseFloat(i.height)||r)/r}}function hp(e){if(!e||e===`none`)return null;let t=e.split(` `),n=parseFloat(t[0]),r=parseFloat(t[1]);return isNaN(n)&&isNaN(r)?null:{x:isNaN(n)?r:n,y:isNaN(r)?n:r}}function gp(e){if(!e||e===`none`)return null;let[t,n,r=`0`]=e.split(` `),i={x:parseFloat(t),y:parseFloat(n),z:parseInt(r,10)};return isNaN(i.x)&&isNaN(i.y)?null:{x:isNaN(i.x)?0:i.x,y:isNaN(i.y)?0:i.y,z:isNaN(i.z)?0:i.z}}function _p(e){let{scale:t,transform:n,translate:r}=e,i=hp(t),a=gp(r),o=vp(n);if(!o&&!i&&!a)return null;let s={x:i?.x??1,y:i?.y??1},c={x:a?.x??0,y:a?.y??0},l={x:o?.x??0,y:o?.y??0,scaleX:o?.scaleX??1,scaleY:o?.scaleY??1};return{x:c.x+l.x,y:c.y+l.y,z:a?.z??0,scaleX:s.x*l.scaleX,scaleY:s.y*l.scaleY}}function vp(e){if(e.startsWith(`matrix3d(`)){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith(`matrix(`)){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}var yp=(e=>(e[e.Idle=0]=`Idle`,e[e.Forward=1]=`Forward`,e[e.Reverse=-1]=`Reverse`,e))(yp||{}),bp={x:.2,y:.2},xp={x:10,y:10};function Sp(e,t,n,r=25,i=bp,a=xp,o=op(e)){let{x:s,y:c}=t,{rect:l,isTop:u,isBottom:d,isLeft:f,isRight:p}=o,m=pp(e),h=_p(rp(e,!0)),g=h!==null&&h?.scaleX<0,_=h!==null&&h?.scaleY<0,v=new Al(l.left*m.scaleX+m.x,l.top*m.scaleY+m.y,l.width*m.scaleX,l.height*m.scaleY),y={x:0,y:0},b={x:0,y:0},x={height:v.height*i.y,width:v.width*i.x};return x.height>0&&(!u||_&&!d)&&c<=v.top+x.height&&n?.y!==1&&s>=v.left-a.x&&s<=v.right+a.x?(y.y=_?1:-1,b.y=r*Math.abs((v.top+x.height-c)/x.height)):x.height>0&&(!d||_&&!u)&&c>=v.bottom-x.height&&n?.y!==-1&&s>=v.left-a.x&&s<=v.right+a.x&&(y.y=_?-1:1,b.y=r*Math.abs((v.bottom-x.height-c)/x.height)),x.width>0&&(!p||g&&!f)&&s>=v.right-x.width&&n?.x!==-1&&c>=v.top-a.y&&c<=v.bottom+a.y?(y.x=g?-1:1,b.x=r*Math.abs((v.right-x.width-s)/x.width)):x.width>0&&(!f||g&&!p)&&s<=v.left+x.width&&n?.x!==1&&c>=v.top-a.y&&c<=v.bottom+a.y&&(y.x=g?1:-1,b.x=r*Math.abs((v.left+x.width-s)/x.width)),{direction:y,speed:b}}function Cp(e,{block:t=`nearest`,inline:n=`nearest`}={}){if(!qd(e))return;let r=fp(e),i=[];for(let a of r){if(!qd(a))continue;let{top:r,left:o}=Tp(e,a),s=r,c=o;for(let e of i)s-=e.scrollTop,c-=e.scrollLeft;if(t!==`none`){let n=s<a.scrollTop;n!==s+e.offsetHeight>a.scrollTop+a.clientHeight&&(a.scrollTop=t===`center`?s-a.clientHeight/2+e.offsetHeight/2:n?s:s+e.offsetHeight-a.clientHeight)}if(n!==`none`){let t=c<a.scrollLeft;t!==c+e.offsetWidth>a.scrollLeft+a.clientWidth&&(a.scrollLeft=n===`center`?c-a.clientWidth/2+e.offsetWidth/2:t?c:c+e.offsetWidth-a.clientWidth)}i.push(a)}}function wp(e){let t=0,n=0,r=e;for(;r;){t+=r.offsetTop,n+=r.offsetLeft;let e=r.offsetParent;if(!qd(e))break;t+=e.clientTop,n+=e.clientLeft,r=e}return{top:t,left:n}}function Tp(e,t){let n=wp(e),r=wp(t);return{top:n.top-r.top-t.clientTop,left:n.left-r.left-t.clientLeft}}function Ep(e,t,n){let{scaleX:r,scaleY:i,x:a,y:o}=t,s=e.left+a+(1-r)*parseFloat(n),c=e.top+o+(1-i)*parseFloat(n.slice(n.indexOf(` `)+1)),l=r?e.width*r:e.width,u=i?e.height*i:e.height;return{width:l,height:u,top:c,right:s+l,bottom:c+u,left:s}}function Dp(e,t,n){let{scaleX:r,scaleY:i,x:a,y:o}=t,s=e.left-a-(1-r)*parseFloat(n),c=e.top-o-(1-i)*parseFloat(n.slice(n.indexOf(` `)+1)),l=r?e.width/r:e.width,u=i?e.height/i:e.height;return{width:l,height:u,top:c,right:s+l,bottom:c+u,left:s}}function Op({element:e,keyframes:t,options:n}){return e.animate(t,n).finished}var kp=new Qf(e=>setTimeout(e,0)),Ap=new Map,jp=Ap.clear.bind(Ap);function Mp(e){let t=e.ownerDocument,n=Ap.get(t);if(n)return n;n=t.getAnimations(),Ap.set(t,n),kp.schedule(jp);let r=n.filter(t=>Bd(t.effect)&&t.effect.target===e);return Ap.set(e,r),n}function Np(e,t){let n=Mp(e).filter(e=>{if(Bd(e.effect)){let{target:n}=e.effect;if((n&&t.isValidTarget?.call(t,n))??!0)return e.effect.getKeyframes().some(e=>{for(let n of t.properties)if(e[n])return!0})}}).map(e=>{let{effect:t,currentTime:n}=e,r=t?.getComputedTiming().duration;if(!(e.pending||e.playState===`finished`)&&typeof r==`number`&&typeof n==`number`&&n<r)return e.currentTime=r,()=>{e.currentTime=n}});if(n.length>0)return()=>n.forEach(e=>e?.())}var Pp=class extends Al{constructor(e,t={}){let{frameTransform:n=pp(e),ignoreTransforms:r,getBoundingClientRect:i=Hd}=t,a=Np(e,{properties:[`transform`,`translate`,`scale`,`width`,`height`],isValidTarget:t=>(t!==e||rf())&&t.contains(e)}),o=i(e),{top:s,left:c,width:l,height:u}=o,d,f=rp(e),p=_p(f),m={x:p?.scaleX??1,y:p?.scaleY??1},h=Fp(e,f);a?.(),p&&(d=Dp(o,p,f.transformOrigin),(r||h)&&(s=d.top,c=d.left,l=d.width,u=d.height));let g={width:d?.width??l,height:d?.height??u};if(h&&!r&&d){let e=Ep(d,h,f.transformOrigin);s=e.top,c=e.left,l=e.width,u=e.height,m.x=h.scaleX,m.y=h.scaleY}n&&(r||(c*=n.scaleX,l*=n.scaleX,s*=n.scaleY,u*=n.scaleY),c+=n.x,s+=n.y),super(c,s,l,u),this.scale=m,this.intrinsicWidth=g.width,this.intrinsicHeight=g.height}};function Fp(e,t){let n=e.getAnimations();if(!n.length)return null;let r,i,a,o=!1;for(let e of n){if(e.playState!==`running`)continue;let t=Bd(e.effect)?e.effect.getKeyframes():[],n=t[t.length-1];if(!n)continue;let{transform:s,translate:c,scale:l}=n;typeof s==`string`&&s&&(r=s,o=!0),typeof c==`string`&&c&&(i=c,o=!0),typeof l==`string`&&l&&(a=l,o=!0)}return o?_p({transform:r??t.transform,translate:i??t.translate,scale:a??t.scale}):null}function Ip(e){return`style`in e&&typeof e.style==`object`&&e.style!==null&&`setProperty`in e.style&&`removeProperty`in e.style&&typeof e.style.setProperty==`function`&&typeof e.style.removeProperty==`function`}var Lp=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=``){let{element:n}=this;if(Ip(n))for(let[r,i]of Object.entries(e)){let e=`${t}${r}`;this.initial.has(e)||this.initial.set(e,n.style.getPropertyValue(e)),n.style.setProperty(e,typeof i==`string`?i:`${i}px`)}}remove(e,t=``){let{element:n}=this;if(Ip(n))for(let r of e){let e=`${t}${r}`;n.style.removeProperty(e)}}reset(){let{element:e}=this;if(Ip(e)){for(let[t,n]of this.initial)e.style.setProperty(t,n);e.getAttribute(`style`)===``&&e.removeAttribute(`style`)}}};function Rp(e){return e?e instanceof Gd(e).Element||Wd(e)&&e.nodeType===Node.ELEMENT_NODE:!1}function zp(e){if(!e)return!1;let{KeyboardEvent:t}=Gd(e.target);return e instanceof t}function Bp(e){if(!e)return!1;let{PointerEvent:t}=Gd(e.target);return e instanceof t}function Vp(e){if(!Rp(e))return!1;let{tagName:t}=e;return t===`INPUT`||t===`TEXTAREA`||Hp(e)}function Hp(e){return e.hasAttribute(`contenteditable`)&&e.getAttribute(`contenteditable`)!==`false`}var Up={};function Wp(e){let t=Up[e]==null?0:Up[e]+1;return Up[e]=t,`${e}-${t}`}var Gp=({dragOperation:e,droppable:t})=>{let n=e.position.current;if(!n)return null;let{id:r}=t;return t.shape&&t.shape.containsPoint(n)?{id:r,value:1/kl.distance(t.shape.center,n),type:td.PointerIntersection,priority:ed.High}:null},Kp=({dragOperation:e,droppable:t})=>{let{shape:n}=e;if(!t.shape||!n?.current)return null;let r=n.current.intersectionArea(t.shape);if(r){let{position:i}=e,a=kl.distance(t.shape.center,i.current),o=r/(n.current.area+t.shape.area-r)/a;return{id:t.id,value:o,type:td.ShapeIntersection,priority:ed.Normal}}return null},qp=e=>Gp(e)??Kp(e),Jp=Object.create,Yp=Object.defineProperty,Xp=Object.defineProperties,Zp=Object.getOwnPropertyDescriptor,Qp=Object.getOwnPropertyDescriptors,$p=Object.getOwnPropertySymbols,em=Object.prototype.hasOwnProperty,tm=Object.prototype.propertyIsEnumerable,nm=(e,t)=>(t=Symbol[e])?t:Symbol.for(`Symbol.`+e),rm=e=>{throw TypeError(e)},im=(e,t,n)=>t in e?Yp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,am=(e,t)=>{for(var n in t||={})em.call(t,n)&&im(e,n,t[n]);if($p)for(var n of $p(t))tm.call(t,n)&&im(e,n,t[n]);return e},om=(e,t)=>Xp(e,Qp(t)),sm=(e,t)=>Yp(e,`name`,{value:t,configurable:!0}),cm=(e,t)=>{var n={};for(var r in e)em.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&$p)for(var r of $p(e))t.indexOf(r)<0&&tm.call(e,r)&&(n[r]=e[r]);return n},lm=e=>[,,,Jp(e?.[nm(`metadata`)]??null)],um=[`class`,`method`,`getter`,`setter`,`accessor`,`field`,`value`,`get`,`set`],dm=e=>e!==void 0&&typeof e!=`function`?rm(`Function expected`):e,fm=(e,t,n,r,i)=>({kind:um[e],name:t,metadata:r,addInitializer:e=>n._?rm(`Already initialized`):i.push(dm(e||null))}),pm=(e,t)=>im(t,nm(`metadata`),e[3]),mm=(e,t,n,r)=>{for(var i=0,a=e[t>>1],o=a&&a.length;i<o;i++)t&1?a[i].call(n):r=a[i].call(n,r);return r},hm=(e,t,n,r,i,a)=>{var o,s,c,l,u,d=t&7,f=!!(t&8),p=!!(t&16),m=d>3?e.length+1:d?f?1:2:0,h=um[d+5],g=d>3&&(e[m-1]=[]),_=e[m]||(e[m]=[]),v=d&&(!p&&!f&&(i=i.prototype),d<5&&(d>3||!p)&&Zp(d<4?i:{get[n](){return $(this,a)},set[n](e){return ym(this,a,e)}},n));d?p&&d<4&&sm(a,(d>2?`set `:d>1?`get `:``)+n):sm(i,n);for(var y=r.length-1;y>=0;y--)l=fm(d,n,c={},e[3],_),d&&(l.static=f,l.private=p,u=l.access={has:p?e=>_m(i,e):e=>n in e},d^3&&(u.get=p?e=>(d^1?$:bm)(e,i,d^4?a:v.get):e=>e[n]),d>2&&(u.set=p?(e,t)=>ym(e,i,t,d^4?a:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?p?a:v[h]:d>4?void 0:{get:v.get,set:v.set}:i,l),c._=1,d^4||s===void 0?dm(s)&&(d>4?g.unshift(s):d?p?a=s:v[h]=s:i=s):typeof s!=`object`||!s?rm(`Object expected`):(dm(o=s.get)&&(v.get=o),dm(o=s.set)&&(v.set=o),dm(o=s.init)&&g.unshift(o));return d||pm(e,i),v&&Yp(i,n,v),p?d^4?a:v:i},gm=(e,t,n)=>t.has(e)||rm(`Cannot `+n),_m=(e,t)=>Object(t)===t?e.has(t):rm(`Cannot use the "in" operator on this value`),$=(e,t,n)=>(gm(e,t,`read from private field`),n?n.call(e):t.get(e)),vm=(e,t,n)=>t.has(e)?rm(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),ym=(e,t,n,r)=>(gm(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),bm=(e,t,n)=>(gm(e,t,`access private method`),n),xm=new Map;function Sm(e){return of(e)?e.host.isConnected:e.defaultView!=null}var Cm,wm,Tm,Em,Dm,Om,km,Am,jm,Mm,Nm,Pm,Fm,Im,Lm,Rm,zm=class extends (Om=gu,Dm=[V],Em=[V],Tm=[Nc],wm=[Nc],Cm=[Nc],Om){constructor(e,t){super(e,t),mm(km,5,this),vm(this,Pm),vm(this,Am,mm(km,8,this,new Map)),mm(km,11,this),vm(this,jm,mm(km,12,this,new Set)),mm(km,15,this),vm(this,Mm,new Set),vm(this,Nm,new Map),this.registerEffect(bm(this,Pm,Fm))}register(e,t){return Ls(()=>{let n=new Map(this.registeredRules);n.set(e,t?.retain??!1),this.registeredRules=n}),()=>{Ls(()=>{let t=new Map(this.registeredRules);t.delete(e),this.registeredRules=t})}}addRoot(e){return Ls(()=>{let t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{Ls(()=>{let t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){let{source:e}=this.manager.dragOperation;return sf(e?.element??null)}get targetRoot(){let{target:e}=this.manager.dragOperation;return sf(e?.element??null)}get roots(){let{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){let e=[this.sourceRoot,this.targetRoot].filter(e=>e!=null);return new Set([...e,...this.additionalRoots])}return new Set}destroy(){for(let e of $(this,Nm).values())for(let t of e.values())t();$(this,Nm).clear(),$(this,Mm).clear(),super.destroy()}};km=lm(Om),Am=new WeakMap,jm=new WeakMap,Mm=new WeakMap,Nm=new WeakMap,Pm=new WeakSet,Fm=function(){let{roots:e,registeredRules:t}=this;for(let t of e)$(this,Mm).add(t);let n=new Map;for(let r of $(this,Mm)){let i=e.has(r);if(!i&&!Sm(r))$(this,Mm).delete(r);else for(let[e,a]of t){if(!i&&!a)continue;let t=n.get(r);t||(t=new Set,n.set(r,t)),t.add(e)}}for(let[e,t]of $(this,Nm)){let r=n.get(e);for(let[e,n]of t)r?.has(e)||(n(),t.delete(e));t.size===0&&$(this,Nm).delete(e)}for(let[e,t]of n){let n=$(this,Nm).get(e);n||(n=new Map,$(this,Nm).set(e,n));for(let r of t)n.has(r)||n.set(r,bm(this,Pm,Im).call(this,e,r))}},Im=function(e,t){let n=xm.get(e);n||(n=new Map,xm.set(e,n));let r=n.get(t);if(!r){let i=Kd(e)?bm(this,Pm,Lm).call(this,e,n,t):bm(this,Pm,Rm).call(this,e,n,t);if(!i)return()=>{};r=i,n.set(t,r)}r.refCount++;let i=!1;return()=>{i||(i=!0,r.refCount--,r.refCount===0&&r.cleanup())}},Lm=function(e,t,n){let r=e.createElement(`style`),{nonce:i}=this.options??{};i&&r.setAttribute(`nonce`,i),r.textContent=n,e.head.prepend(r);let a=new MutationObserver(t=>{for(let n of t)for(let t of Array.from(n.removedNodes))if(t===r){e.head.prepend(r);return}});return a.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{a.disconnect(),r.remove(),t.delete(n),t.size===0&&xm.delete(e)}}},Rm=function(e,t,n){`adoptedStyleSheets`in e&&Array.isArray(e.adoptedStyleSheets);let{CSSStyleSheet:r}=e.ownerDocument.defaultView??{};if(!r)return null;let i=new r;return i.replaceSync(n),e.adoptedStyleSheets.push(i),{refCount:0,cleanup:()=>{if(of(e)&&e.host?.isConnected){let t=e.adoptedStyleSheets.indexOf(i);t!==-1&&e.adoptedStyleSheets.splice(t,1)}t.delete(n),t.size===0&&xm.delete(e)}}},hm(km,4,`registeredRules`,Dm,zm,Am),hm(km,4,`additionalRoots`,Em,zm,jm),hm(km,2,`sourceRoot`,Tm,zm),hm(km,2,`targetRoot`,wm,zm),hm(km,2,`roots`,Cm,zm),pm(km,zm),zm.configure=lu(zm);var Bm=zm,Vm=`data-dnd-`,Hm=`${Vm}dropping`,Um=`--dnd-`,Wm=`${Vm}dragging`,Gm=`${Vm}placeholder`,Km=[Wm,Gm,`popover`,`aria-pressed`,`aria-grabbing`],qm=[`view-transition-name`],Jm=`
32
+ :is(:root,:host) [${Wm}] {
33
+ position: fixed !important;
34
+ pointer-events: none !important;
35
+ touch-action: none;
36
+ z-index: calc(infinity);
37
+ will-change: translate;
38
+ top: var(${Um}top, 0px) !important;
39
+ left: var(${Um}left, 0px) !important;
40
+ right: unset !important;
41
+ bottom: unset !important;
42
+ width: var(${Um}width, auto);
43
+ max-width: var(${Um}width, auto);
44
+ height: var(${Um}height, auto);
45
+ max-height: var(${Um}height, auto);
46
+ transform: var(${Um}transform, none) !important;
47
+ transition: var(${Um}transition) !important;
48
+ }
49
+
50
+ :is(:root,:host) [${Gm}] {
51
+ transition: none;
52
+ }
53
+
54
+ :is(:root,:host) [${Gm}='hidden'] {
55
+ visibility: hidden;
56
+ }
57
+
58
+ [${Wm}] * {
59
+ pointer-events: none !important;
60
+ }
61
+
62
+ [${Wm}]:not([${Hm}]) {
63
+ translate: var(${Um}translate) !important;
64
+ }
65
+
66
+ [${Wm}][style*='${Um}scale'] {
67
+ scale: var(${Um}scale) !important;
68
+ transform-origin: var(${Um}transform-origin) !important;
69
+ }
70
+
71
+ @layer dnd-kit {
72
+ :where([${Wm}][popover]) {
73
+ overflow: visible;
74
+ background: unset;
75
+ border: unset;
76
+ margin: unset;
77
+ padding: unset;
78
+ color: inherit;
79
+
80
+ &:is(input, button) {
81
+ border: revert;
82
+ background: revert;
83
+ }
84
+ }
85
+ }
86
+ [${Wm}]::backdrop, [${Vm}overlay]:not([${Wm}]) {
87
+ display: none;
88
+ visibility: hidden;
89
+ }
90
+ `.replace(/\n+/g,` `).replace(/\s+/g,` `).trim();function Ym(e,t=`hidden`){return Ls(()=>{let{element:n,manager:r}=e;if(!n||!r)return;let i=Xm(n,r.registry.droppables),a=[],o=lf(n),{remove:s}=o;return Zm(i,o,a),Qm(o,t),o.remove=()=>{a.forEach(e=>e()),s.call(o)},o})}function Xm(e,t){let n=new Map;for(let r of t)if(r.element&&(e===r.element||e.contains(r.element))){let e=`${Vm}${Wp(`dom-id`)}`;r.element.setAttribute(e,``),n.set(r,e)}return n}function Zm(e,t,n){for(let[r,i]of e){if(!r.element)continue;let e=`[${i}]`,a=t.matches(e)?t:t.querySelector(e);if(r.element.removeAttribute(i),!a)continue;let o=r.element;r.proxy=a,a.removeAttribute(i),mf.set(o,a),n.push(()=>{mf.delete(o),r.proxy=void 0})}}function Qm(e,t=`hidden`){e.setAttribute(`inert`,`true`),e.setAttribute(`tab-index`,`-1`),e.setAttribute(`aria-hidden`,`true`),e.setAttribute(Gm,t)}function $m(e,t){return e===t||_f(e)===_f(t)}function eh(e){let{target:t}=e;`newState`in e&&e.newState===`closed`&&Rp(t)&&t.hasAttribute(`popover`)&&requestAnimationFrame(()=>Zf(t))}function th(e){return e.tagName===`TR`}function nh(e,t,n){let r=new MutationObserver(r=>{let i=!1;for(let n of r){if(n.target!==e){i=!0;continue}if(n.type!==`attributes`)continue;let r=n.attributeName;if(r.startsWith(`aria-`)||Km.includes(r))continue;let a=e.getAttribute(r);if(r===`style`){if(Ip(e)&&Ip(t)){let n=e.style;for(let e of Array.from(t.style))n.getPropertyValue(e)===``&&t.style.removeProperty(e);for(let e of Array.from(n)){if(qm.includes(e)||e.startsWith(Um))continue;let r=n.getPropertyValue(e);t.style.setProperty(e,r)}}}else a===null?t.removeAttribute(r):t.setAttribute(r,a)}i&&n&&t.replaceChildren(...e.cloneNode(!0).childNodes)});return r.observe(e,{attributes:!0,subtree:!0,childList:!0}),r}function rh(e,t,n){let r=new MutationObserver(r=>{for(let i of r)if(i.addedNodes.length!==0)for(let r of Array.from(i.addedNodes)){if(r.contains(e)&&e.nextElementSibling!==t){e.insertAdjacentElement(`afterend`,t),Zf(n);return}if(r.contains(t)&&t.previousElementSibling!==e){t.insertAdjacentElement(`beforebegin`,e),Zf(n);return}}e.isConnected&&t.isConnected&&e.nextElementSibling!==t&&(e.insertAdjacentElement(`afterend`,t),Zf(n))});return r.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),r}function ih(e){return new ResizeObserver(()=>{var t;let n=new Pp(e.placeholder,{frameTransform:e.frameTransform,ignoreTransforms:!0}),r=e.transformOrigin??{x:1,y:1},i=(e.width-n.width)*r.x+e.delta.x,a=(e.height-n.height)*r.y+e.delta.y,o=af();if(e.styles.set({width:n.width-e.widthOffset,height:n.height-e.heightOffset,top:e.top+a+o.y,left:e.left+i+o.x},Um),(t=e.getElementMutationObserver())==null||t.takeRecords(),th(e.element)&&th(e.placeholder)){let t=Array.from(e.element.cells),n=Array.from(e.placeholder.cells);e.getSavedCellWidths()||e.setSavedCellWidths(t.map(e=>e.style.width));for(let[e,r]of t.entries()){let t=n[e];r.style.width=`${t.getBoundingClientRect().width}px`}}let s=e.getTranslate()??{x:0,y:0},c=e.left+i+o.x+s.x,l=e.top+a+o.y+s.y,u=n.width-e.widthOffset,d=n.height-e.heightOffset,f=e.frameTransform;e.dragOperation.shape=new Al(c*f.scaleX+f.x,l*f.scaleY+f.y,u*f.scaleX,d*f.scaleY)})}var ah=250,oh=`ease`;function sh(e){var t;let{animation:n}=e;if(typeof n==`function`){let t=n({source:e.source,element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});Promise.resolve(t).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)});return}let{duration:r=ah,easing:i=oh}=n??{};Zf(e.feedbackElement);let[,a]=Vd(e.feedbackElement,e=>`translate`in e)??[];a?.pause();let o=e.placeholder??e.element,s={frameTransform:$m(e.feedbackElement,o)?null:void 0},c=new Pp(e.feedbackElement,s),l=gp(rp(e.feedbackElement).translate)??e.translate,u=new Pp(o,s),d=Al.delta(c,u,e.alignment),f={x:l.x-d.x,y:l.y-d.y},p=Math.round(c.intrinsicHeight)===Math.round(u.intrinsicHeight)?{}:{minHeight:[`${c.intrinsicHeight}px`,`${u.intrinsicHeight}px`],maxHeight:[`${c.intrinsicHeight}px`,`${u.intrinsicHeight}px`]},m=Math.round(c.intrinsicWidth)===Math.round(u.intrinsicWidth)?{}:{minWidth:[`${c.intrinsicWidth}px`,`${u.intrinsicWidth}px`],maxWidth:[`${c.intrinsicWidth}px`,`${u.intrinsicWidth}px`]};e.styles.set({transition:e.transition},Um),e.feedbackElement.setAttribute(Hm,``),(t=e.getElementMutationObserver())==null||t.takeRecords(),Op({element:e.feedbackElement,keyframes:om(am(am({},p),m),{translate:[`${l.x}px ${l.y}px 0`,`${f.x}px ${f.y}px 0`]}),options:{duration:cf(Gd(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?r:0,easing:i}}).then(()=>{e.feedbackElement.removeAttribute(Hm),a?.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}var ch,lh,uh,dh,fh,ph,mh,hh=class extends (lh=hu,ch=[V],lh){constructor(e,t){super(e,t),vm(this,fh),vm(this,dh,mm(uh,8,this)),mm(uh,11,this),this.state={initial:{},current:{}};let n=e.registry.plugins.get(Bm),r=n?.register(Jm,{retain:!0});if(r){let e=this.destroy.bind(this);this.destroy=()=>{r(),e()}}this.registerEffect(bm(this,fh,ph).bind(this,n)),this.registerEffect(bm(this,fh,mh))}};uh=lm(lh),dh=new WeakMap,fh=new WeakSet,ph=function(e){let{overlay:t}=this;if(!t||!e)return;let n=sf(t);if(n)return e.addRoot(n)},mh=function(){let{state:e,manager:t,options:n}=this,{dragOperation:r}=t,{position:i,source:a,status:o}=r;if(o.idle){e.current={},e.initial={};return}if(!a)return;let{element:s}=a,c=a.pluginConfig(hh),l=c?.feedback??n?.feedback??`default`,u=typeof l==`function`?l(a,t):l;if(!s||u===`none`||!o.initialized||o.initializing)return;let{initial:d}=e,f=this.overlay??s,p=pp(f),m=pp(s),h=!$m(s,f),g=new Pp(s,{frameTransform:h?m:null,ignoreTransforms:!h}),_={x:m.scaleX/p.scaleX,y:m.scaleY/p.scaleY},{width:v,height:y,top:b,left:x}=g;h&&(v/=_.x,y/=_.y);let S=new Lp(f),C=rp(s),{transition:w,translate:T,boxSizing:E,paddingBlockStart:D,paddingBlockEnd:O,paddingInlineStart:ee,paddingInlineEnd:k,borderInlineStartWidth:A,borderInlineEndWidth:te,borderBlockStartWidth:ne,borderBlockEndWidth:j}=C,M=w.split(`,`).filter(e=>!/^\s*(transform|translate|scale)\b/.test(e)).join(`,`),N=_p(C),re=C.transform,ie=u===`clone`,ae=E===`content-box`,oe=ae?parseInt(ee)+parseInt(k)+parseInt(A)+parseInt(te):0,P=ae?parseInt(D)+parseInt(O)+parseInt(ne)+parseInt(j):0,F=u!==`move`&&!this.overlay?Ym(a,ie?`clone`:`hidden`):null,se=Ls(()=>zp(t.dragOperation.activatorEvent));if(!d.translate){if(this.overlay&&N)d.translate={x:N.x,y:N.y};else if(T!==`none`){let e=gp(T);e&&(d.translate=e)}}if(!d.transformOrigin){let e=Ls(()=>i.current),t=x+(N?.x??0),n=b+(N?.y??0);d.transformOrigin={x:(e.x-t*p.scaleX-p.x)/(v*p.scaleX),y:(e.y-n*p.scaleY-p.y)/(y*p.scaleY)}}let{transformOrigin:ce}=d,le=b*p.scaleY+p.y,ue=x*p.scaleX+p.x;if(!d.coordinates&&(d.coordinates={x:ue,y:le},_.x!==1||_.y!==1)){let{scaleX:e,scaleY:t}=m,{x:n,y:r}=ce;d.coordinates.x+=(v*e-v)*n,d.coordinates.y+=(y*t-y)*r}d.dimensions||={width:v,height:y},d.frameTransform||=p;let de={x:d.coordinates.x-ue,y:d.coordinates.y-le},fe={width:(d.dimensions.width*d.frameTransform.scaleX-v*p.scaleX)*ce.x,height:(d.dimensions.height*d.frameTransform.scaleY-y*p.scaleY)*ce.y},pe={x:de.x/p.scaleX+fe.width,y:de.y/p.scaleY+fe.height},me={left:x+pe.x,top:b+pe.y};f.setAttribute(Wm,`true`);let he=Ls(()=>r.transform),ge=d.translate??{x:0,y:0},_e=he.x*p.scaleX+ge.x,ve=he.y*p.scaleY+ge.y,ye=af();S.set({width:v-oe,height:y-P,top:me.top+ye.y,left:me.left+ye.x,translate:`${_e}px ${ve}px 0`,transform:this.overlay?`none`:re,transition:M?`${M}, translate 0ms linear`:`translate 0ms linear`,scale:h?`${_.x} ${_.y}`:``,"transform-origin":`${ce.x*100}% ${ce.y*100}%`},Um),F&&(s.insertAdjacentElement(`afterend`,F),n?.rootElement&&(typeof n.rootElement==`function`?n.rootElement(a):n.rootElement).appendChild(s)),Xf(f)&&(f.hasAttribute(`popover`)||f.setAttribute(`popover`,`manual`),Zf(f),f.addEventListener(`beforetoggle`,eh));let be,xe,Se,Ce=ih({placeholder:F,element:s,feedbackElement:f,frameTransform:p,transformOrigin:ce,width:v,height:y,top:b,left:x,widthOffset:oe,heightOffset:P,delta:pe,styles:S,dragOperation:r,getTranslate:()=>e.current.translate,getElementMutationObserver:()=>be,getSavedCellWidths:()=>Se,setSavedCellWidths:e=>{Se=e}}),we=new Pp(f);Ls(()=>r.shape=we);let Te=Gd(f),Ee=e=>{this.manager.actions.stop({event:e})},De=cf(Te);se&&Te.addEventListener(`resize`,Ee),Ls(()=>a.status)===`idle`&&requestAnimationFrame(()=>a.status=`dragging`),F&&(Ce.observe(F),be=nh(s,F,ie),xe=rh(s,F,f));let Oe=t.dragOperation.source?.id,ke=()=>{if(!se||Oe==null)return;let e=t.registry.draggables.get(Oe),n=e?.handle??e?.element;qd(n)&&n.focus()},Ae=()=>{be?.disconnect(),xe?.disconnect(),Ce.disconnect(),Te.removeEventListener(`resize`,Ee),Xf(f)&&(f.removeEventListener(`beforetoggle`,eh),f.removeAttribute(`popover`)),f.removeAttribute(Wm),S.reset();let t=()=>{if(Se&&th(s)){let e=Array.from(s.cells);for(let[t,n]of e.entries())n.style.width=Se[t]??``}a.status=`idle`;let t=e.current.translate!=null,n=r.status.dragging;F&&(!n&&t||F.parentElement!==f.parentElement)&&f.isConnected&&F.replaceWith(f),F?.remove()};f===this.overlay?setTimeout(t,0):t()},je=n?.dropAnimation,Me=this,Ne=Fc(()=>{let{transform:t,status:i}=r;if((t.x||t.y||e.current.translate)&&i.dragging){let i=d.translate??{x:0,y:0},a={x:t.x/p.scaleX+i.x,y:t.y/p.scaleY+i.y},o=e.current.translate,s=Ls(()=>r.modifiers),c=Ls(()=>r.shape?.current),l=n?.keyboardTransition,u=se&&!De&&l!==null?`${l?.duration??250}ms ${l?.easing??`cubic-bezier(0.25, 1, 0.5, 1)`}`:`0ms linear`;if(S.set({transition:M?`${M}, translate ${u}`:`translate ${u}`,translate:`${a.x}px ${a.y}px 0`},Um),be?.takeRecords(),c&&c!==we&&o&&!s.length){let e=kl.delta(a,o);r.shape=Al.from(c.boundingRectangle).translate(e.x*p.scaleX,e.y*p.scaleY)}else r.shape=new Pp(f);e.current.translate=a}},function(){if(r.status.dropped){this.dispose(),a.status=`dropping`;let n=c?.dropAnimation===void 0?Me.dropAnimation===void 0?je:Me.dropAnimation:c.dropAnimation,r=e.current.translate,i=r!=null;if(!r&&s!==f&&(r={x:0,y:0}),!r||n===null){Ae();return}t.renderer.rendering.then(()=>{sh({source:a,element:s,feedbackElement:f,placeholder:F,translate:r,moved:i,transition:w,alignment:a.alignment,styles:S,animation:n??void 0,getElementMutationObserver:()=>be,cleanup:Ae,restoreFocus:ke})})}});return()=>{Ae(),Ne()}},hm(uh,4,`overlay`,ch,hh,dh),pm(uh,hh),hh.configure=lu(hh);var gh=!0,_h=!1,vh,yh,bh=[V],xh=yp.Forward,Sh,Ch,wh;yh=(vh=[V],yp.Reverse);var Th=class{constructor(){vm(this,Ch,mm(Sh,8,this,gh)),mm(Sh,11,this),vm(this,wh,mm(Sh,12,this,gh)),mm(Sh,15,this)}isLocked(e){return e===yp.Idle?!1:e==null?this[yp.Forward]===gh&&this[yp.Reverse]===gh:this[e]===gh}unlock(e){e!==yp.Idle&&(this[e]=_h)}};Sh=lm(null),Ch=new WeakMap,wh=new WeakMap,hm(Sh,4,xh,bh,Th,Ch),hm(Sh,4,yh,vh,Th,wh),pm(Sh,Th);var Eh=[yp.Forward,yp.Reverse],Dh=class{constructor(){this.x=new Th,this.y=new Th}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},Oh=class extends hu{constructor(e){super(e);let t=qs(new Dh),n=null;this.signal=t,rc(()=>{let{status:r}=e.dragOperation;if(!r.initialized){n=null,t.value=new Dh;return}let{delta:i}=e.dragOperation.position;if(n){let e={x:kh(i.x,n.x),y:kh(i.y,n.y)},r=t.peek();Ps(()=>{for(let t of Bl)for(let n of Eh)e[t]===n&&r[t].unlock(n);t.value=r})}n=i})}get current(){return this.signal.peek()}};function kh(e,t){return Math.sign(e-t)}var Ah,jh,Mh,Nh,Ph,Fh,Ih=class extends (jh=gu,Ah=[V],jh){constructor(e){super(e),vm(this,Nh,mm(Mh,8,this,!1)),mm(Mh,11,this),vm(this,Ph),vm(this,Fh,()=>{if(!$(this,Ph))return;let{element:e,by:t}=$(this,Ph);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=(e,t)=>{if(this.disabled)return!1;let n=this.getScrollableElements();if(!n)return ym(this,Ph,void 0),!1;let{position:r}=this.manager.dragOperation,i=r?.current;if(i){let{by:r}=e??{},a=r?{x:Lh(r.x),y:Lh(r.y)}:void 0,o=a?void 0:this.scrollIntentTracker.current;if(o?.isLocked())return!1;for(let e of n){let n=op(e),s=cp(e,r,n);if(s.x||s.y){let{speed:s,direction:c}=Sp(e,i,a,t?.acceleration,t?.threshold,void 0,n);if(o)for(let e of Bl)o[e].isLocked(c[e])&&(s[e]=0,c[e]=0);if(c.x||c.y){let{x:t,y:n}=r??c,i=t*s.x,a=n*s.y;if(i||a){let t=$(this,Ph)?.by;if(this.autoScrolling&&t&&(t.x&&!i||t.y&&!a))continue;return ym(this,Ph,{element:e,by:{x:i,y:a}}),$f.schedule($(this,Fh)),!0}}}}}return ym(this,Ph,void 0),!1};let t=null,n=null,r=jc(()=>{let{position:n,source:r}=e.dragOperation;if(!n)return null;let i=ff(sf(r?.element),n.current);return i&&(t=i),i??t}),i=jc(()=>{let t=r.value,{documentElement:i}=Yd(t);if(!t||t===i){let{target:t}=e.dragOperation,r=t?.element;if(r){let e=fp(r,{excludeElement:!1});return n=e,e}}if(t){let e=fp(t,{excludeElement:!1});return this.autoScrolling&&n&&e.size<n?.size?n:(n=e,e)}return n=null,null},Mc);this.getScrollableElements=()=>i.value,this.scrollIntentTracker=new Oh(e),this.destroy=e.monitor.addEventListener(`dragmove`,t=>{!this.disabled&&!t.defaultPrevented&&zp(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};Mh=lm(jh),Nh=new WeakMap,Ph=new WeakMap,Fh=new WeakMap,hm(Mh,4,`autoScrolling`,Ah,Ih,Nh),pm(Mh,Ih);function Lh(e){return e>0?yp.Forward:e<0?yp.Reverse:yp.Idle}var Rh=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{let{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(let t of e)t();for(let e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}}(e=>{typeof requestAnimationFrame==`function`?requestAnimationFrame(e):e()}),zh=10,Bh=class extends hu{constructor(e,t){super(e,t);let n=e.registry.plugins.get(Ih);if(!n)throw Error(`AutoScroller plugin depends on Scroller plugin`);this.destroy=rc(()=>{if(this.disabled)return;let{position:t,status:r}=e.dragOperation;if(r.dragging){let e={acceleration:this.options?.acceleration,threshold:typeof this.options?.threshold==`number`?{x:this.options.threshold,y:this.options.threshold}:this.options?.threshold};if(n.scroll(void 0,e)){n.autoScrolling=!0;let t=setInterval(()=>Rh.schedule(()=>n.scroll(void 0,e)),zh);return()=>{clearInterval(t)}}n.autoScrolling=!1}})}};Bh.configure=lu(Bh);var Vh=Bh;function Hh(e,t){let n=Wh(e.key);return t.some(e=>Wh(e)===n)}var Uh=new Set(`alt.altgraph.backspace.capslock.control.delete.end.enter.escape.home.insert.meta.pagedown.pageup.pause.printscreen.shift.space.tab.arrowdown.arrowleft.arrowright.arrowup.f1.f2.f3.f4.f5.f6.f7.f8.f9.f10.f11.f12`.split(`.`));function Wh(e){if(e===` `||e===`Spacebar`)return`space`;if(/^Key[A-Z]$/.test(e))return e.slice(3).toLowerCase();if(/^Digit[0-9]$/.test(e))return e.slice(5);if(e.length===1)return e.toLowerCase();let t=e.toLowerCase();return Uh.has(t)?t:e}var Gh=Object.freeze({offset:10,keyboardCodes:{start:[`Space`,`Enter`],cancel:[`Escape`],end:[`Space`,`Enter`,`Tab`],up:[`ArrowUp`],down:[`ArrowDown`],left:[`ArrowLeft`],right:[`ArrowRight`]},preventActivation(e,t){let n=t.handle??t.element;return e.target!==n}}),Kh,qh=class extends pd{constructor(e,t){super(e),this.manager=e,this.options=t,vm(this,Kh,[]),this.listeners=new gf,this.handleSourceKeyDown=(e,t,n)=>{if(this.disabled||e.defaultPrevented||!Rp(e.target)||t.disabled)return;let{keyboardCodes:r=Gh.keyboardCodes,preventActivation:i=Gh.preventActivation}=n??{};Hh(e,r.start)&&this.manager.dragOperation.status.idle&&(i?.(e,t)||this.handleStart(e,t,n))}}bind(e,t=this.options){return rc(()=>{let n=e.handle??e.element,r=n=>{zp(n)&&this.handleSourceKeyDown(n,e,t)};if(n)return n.addEventListener(`keydown`,r),()=>{n.removeEventListener(`keydown`,r)}})}handleStart(e,t,n){let{element:r}=t;if(!r)throw Error(`Source draggable does not have an associated element`);e.preventDefault(),e.stopImmediatePropagation(),Cp(r);let{center:i}=new Pp(r);if(this.manager.actions.start({event:e,coordinates:{x:i.x,y:i.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();let a=Yd(r),o=[this.listeners.bind(a,[{type:`keydown`,listener:e=>this.handleKeyDown(e,t,n),options:{capture:!0}}])];$(this,Kh).push(...o)}handleKeyDown(e,t,n){let{keyboardCodes:r=Gh.keyboardCodes}=n??{};if(Hh(e,[...r.end,...r.cancel])){e.preventDefault();let t=Hh(e,r.cancel);this.handleEnd(e,t)}else Hh(e,r.up)?this.handleMove(`up`,e):Hh(e,r.down)&&this.handleMove(`down`,e),Hh(e,r.left)?this.handleMove(`left`,e):Hh(e,r.right)&&this.handleMove(`right`,e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){let{shape:n}=this.manager.dragOperation,r=t.shiftKey?5:1,i={x:0,y:0},a=this.options?.offset??Gh.offset;if(typeof a==`number`&&(a={x:a,y:a}),n){switch(e){case`up`:i={x:0,y:-a.y*r};break;case`down`:i={x:0,y:a.y*r};break;case`left`:i={x:-a.x*r,y:0};break;case`right`:i={x:a.x*r,y:0}}(i.x||i.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:i}))}}sideEffects(){let e=this.manager.registry.plugins.get(Vh);e?.disabled===!1&&(e.disable(),$(this,Kh).push(()=>{e.enable()}))}cleanup(){$(this,Kh).forEach(e=>e()),ym(this,Kh,[])}destroy(){this.cleanup(),this.listeners.clear()}};Kh=new WeakMap,qh.configure=lu(qh),qh.defaults=Gh;var Jh,Yh=class extends gd{constructor(){super(...arguments),vm(this,Jh)}onEvent(e){switch(e.type){case`pointerdown`:ym(this,Jh,ef(e));break;case`pointermove`:if(!$(this,Jh))return;let{x:t,y:n}=ef(e),r={x:t-$(this,Jh).x,y:n-$(this,Jh).y},{tolerance:i}=this.options;if(i&&Rl(r,i)){this.abort();return}Rl(r,this.options.value)&&this.activate(e);break;case`pointerup`:this.abort()}}abort(){ym(this,Jh,void 0)}};Jh=new WeakMap;var Xh,Zh,Qh=class extends gd{constructor(){super(...arguments),vm(this,Xh),vm(this,Zh)}onEvent(e){switch(e.type){case`pointerdown`:ym(this,Zh,ef(e)),ym(this,Xh,setTimeout(()=>this.activate(e),this.options.value));break;case`pointermove`:if(!$(this,Zh))return;let{x:t,y:n}=ef(e);Rl({x:t-$(this,Zh).x,y:n-$(this,Zh).y},this.options.tolerance)&&this.abort();break;case`pointerup`:this.abort()}}abort(){$(this,Xh)&&(clearTimeout($(this,Xh)),ym(this,Zh,void 0),ym(this,Xh,void 0))}};Xh=new WeakMap,Zh=new WeakMap;var $h=class{};$h.Delay=Qh,$h.Distance=Yh;var eg=Object.freeze({activationConstraints(e,t){let{pointerType:n,target:r}=e;if(n!==`mouse`||!Rp(r)||t.handle!==r&&!t.handle?.contains(r))return n===`touch`?[new $h.Delay({value:250,tolerance:5})]:Vp(r)&&!e.defaultPrevented?[new $h.Delay({value:200,tolerance:0})]:[new $h.Delay({value:200,tolerance:10}),new $h.Distance({value:5})]},preventActivation(e,t){let{target:n}=e;if(n===t.element||n===t.handle||!Rp(n)||t.handle?.contains(n))return!1;let r=hf(n);return r!==t.element&&!!r}}),tg,ng=class extends pd{constructor(e,t){super(e),this.manager=e,this.options=t,vm(this,tg,new Set),this.listeners=new gf,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{let{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,n=this.options){let{activationConstraints:r=eg.activationConstraints}=n??{};return typeof r==`function`?r(e,t):r}bind(e,t=this.options){return rc(()=>{let n=new AbortController,{signal:r}=n,i=n=>{Bp(n)&&this.handlePointerDown(n,e,t)},a=[e.handle??e.element];t?.activatorElements&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(let e of a)e&&(cg(e.ownerDocument.defaultView),e.addEventListener(`pointerdown`,i,{signal:r}));return()=>n.abort()})}handlePointerDown(e,t,n){if(this.disabled||!e.isPrimary||e.button!==0||!Rp(e.target)||t.disabled||ig(e)||!this.manager.dragOperation.status.idle)return;let{preventActivation:r=eg.preventActivation}=n??{};if(r?.(e,t))return;let{target:i}=e,a=qd(i)&&i.draggable&&i.getAttribute(`draggable`)===`true`,o=pp(t.element),{x:s,y:c}=ef(e);this.initialCoordinates={x:s*o.scaleX+o.x,y:c*o.scaleY+o.y};let l=this.activationConstraints(e,t,n);e.sensor=this;let u=new md(l,e=>this.handleStart(t,e));u.signal.onabort=()=>this.handleCancel(e),u.onEvent(e),this.controller=u;let{pointerId:d}=e,f=e=>t=>{t.pointerId===d&&e(t)},p=nf(),m=this.listeners.bind(p,[{type:`pointermove`,listener:f(e=>this.handlePointerMove(e,t))},{type:`pointerup`,listener:f(this.handlePointerUp),options:{capture:!0}},{type:`pointercancel`,listener:f(this.handleCancel)},{type:`dragstart`,listener:a?this.handleCancel:ag,options:{capture:!0}}]);$(this,tg).add(()=>{m(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var n;this.controller?.activated===!1&&((n=this.controller)==null||n.onEvent(e));let{status:r}=this.manager.dragOperation;if(r.initializing||r.dragging){let n=ef(e),i=pp(t.element);n.x=n.x*i.scaleX+i.x,n.y=n.y*i.scaleY+i.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=n,r.dragging&&$f.schedule(this.handleMove)}}handlePointerUp(e){let{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();let n=!t.initialized,r=Yd(e.target),i=r.defaultView;if(!n&&i){let e=e=>{e.target===r.body&&e.detail>0&&(e.preventDefault(),e.stopImmediatePropagation())};i.addEventListener(`click`,e,!0),i.setTimeout(()=>{i.removeEventListener(`click`,e,!0)},0)}this.manager.actions.stop({event:e,canceled:n})}this.cleanup()}handleKeyDown(e){e.key===`Escape`&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){let{manager:n,initialCoordinates:r}=this;if(!r||!n.dragOperation.status.idle||t.defaultPrevented)return;let i=n.actions.start({coordinates:r,event:t,source:e});if(i.signal.aborted)return this.cleanup();t.preventDefault();let a=Yd(t.target).body;try{a.setPointerCapture(t.pointerId)}catch{this.handleCancel(t);return}let o=Rp(t.target)?[t.target,a]:a,s=this.listeners.bind(o,[{type:`touchmove`,listener:ag,options:{passive:!1}},{type:`click`,listener:ag},{type:`contextmenu`,listener:ag},{type:`keydown`,listener:this.handleKeyDown}]);$(this,tg).add(s),n.renderer.rendering.then(()=>{!i.signal.aborted&&n.dragOperation.status.dragging&&$f.schedule(this.handleMove)})}handleCancel(e){let{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){let{controller:e}=this;this.controller=void 0,e&&!e.signal.aborted&&e.abort(),this.latest={event:void 0,coordinates:void 0},$(this,tg).forEach(e=>e()),$(this,tg).clear()}destroy(){this.cleanup(),this.listeners.clear()}};tg=new WeakMap,ng.configure=lu(ng),ng.defaults=eg;var rg=ng;function ig(e){return`sensor`in e}function ag(e){e.preventDefault()}function og(){}var sg=new WeakSet;function cg(e){e&&!sg.has(e)&&(e.addEventListener(`touchmove`,og,{capture:!1,passive:!1}),sg.add(e))}var lg,ug,dg,fg,pg,mg,hg=class extends (dg=Bu,ug=[V],lg=[V],dg){constructor(e,t){var n=e,{element:r,effects:i=()=>[],handle:a}=n,o=cm(n,[`element`,`effects`,`handle`]);super(am({effects:()=>[...i(),()=>{let{manager:e}=this;if(!e)return;let t=(this.sensors?.map(uu)??[...e.sensors]).map(t=>{let n=t instanceof pd?t:e.registry.register(t.plugin),r=t instanceof pd?void 0:t.options;return n.bind(this,r)});return function(){t.forEach(e=>e())}}]},o),t),vm(this,pg,mm(fg,8,this)),mm(fg,11,this),vm(this,mg,mm(fg,12,this)),mm(fg,15,this),this.element=r,this.handle=a}};fg=lm(dg),pg=new WeakMap,mg=new WeakMap,hm(fg,4,`handle`,ug,hg,pg),hm(fg,4,`element`,lg,hg,mg),pm(fg,hg);var gg,_g,vg,yg,bg,xg,Sg,Cg,wg,Tg,Eg=class extends (vg=$u,_g=[V],gg=[V],vg){constructor(e,t){var n=e,{element:r,effects:i=()=>[]}=n,a=cm(n,[`element`,`effects`]);let{collisionDetector:o=qp}=a,s=e=>{let{manager:t,element:n}=this;if(!n||e===null){this.shape=void 0;return}if(!t)return;let r=new Pp(n),i=Ls(()=>this.shape);return r&&i?.equals(r)?i:(this.shape=r,r)},c=qs(!1);super(om(am({},a),{collisionDetector:o,effects:()=>[...i(),()=>{let{element:e,manager:t}=this;if(!t)return;let{dragOperation:n}=t,{source:r}=n;c.value=!!(r&&n.status.initialized&&e&&!this.disabled&&this.accepts(r))},()=>{let{element:e}=this;if(c.value&&e){let t=new Yf(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{if(this.manager?.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),vm(this,wg),vm(this,bg,mm(yg,8,this)),mm(yg,11,this),vm(this,Tg,mm(yg,12,this)),mm(yg,15,this),this.element=r,this.refreshShape=()=>s()}set element(e){ym(this,wg,e,Cg)}get element(){return this.proxy??$(this,wg,Sg)}};yg=lm(vg),bg=new WeakMap,wg=new WeakSet,Tg=new WeakMap,xg=hm(yg,20,`#element`,_g,wg,bg),Sg=xg.get,Cg=xg.set,hm(yg,4,`proxy`,gg,Eg,Tg),pm(yg,Eg);var Dg=`focus-visible:outline-1 focus-visible:outline-solid focus-visible:outline-hub-focus-ring`,Og=`peer-focus-visible:outline-1 peer-focus-visible:outline-solid peer-focus-visible:outline-offset-2 peer-focus-visible:outline-hub-focus-ring`,kg={Root:B(`inline-flex items-center justify-center gap-1.5`,`box-border select-none whitespace-nowrap rounded-full`,`border-(length:--hub-hairline) border-solid border-transparent`,`font-sans font-medium leading-[normal]`,`transition-colors duration-(--hub-duration-normal) motion-reduce:transition-none`,Dg,`disabled:cursor-not-allowed disabled:opacity-50`),variants:{primary:`bg-hub-primary-solid text-hub-primary-contrast shadow-hub-xs enabled:hover:bg-hub-primary-solid-hover focus-visible:outline-offset-2`,secondary:B(`relative bg-hub-bg-panel text-hub-fg-control shadow-hub-sm focus-visible:outline-offset-0`,`enabled:hover:bg-hub-bg-hover enabled:hover:shadow-none`,`after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] enabled:hover:after:shadow-hub-sm-hover`),ghost:`bg-transparent text-hub-fg-control enabled:hover:bg-hub-bg-hover focus-visible:outline-offset-0`,danger:`bg-hub-error-solid text-hub-error-contrast shadow-hub-xs enabled:hover:bg-hub-error-solid-hover focus-visible:outline-offset-2`},sizes:{sm:`h-6 px-2 text-hub-sm`,md:`h-7 px-2.5 text-hub-sm`,lg:`h-8 px-3 text-hub-md`}};function Ag({variant:e=`primary`,size:t=`md`,type:n=`button`,className:r,...i}){return(0,R.jsx)(`button`,{...i,type:n,className:B(kg.Root,kg.variants[e],kg.sizes[t],r)})}var jg={Root:B(`inline-grid flex-none select-none place-items-center rounded-full border-0 focus-visible:outline-offset-0`,`transition-colors duration-(--hub-duration-fast) motion-reduce:transition-none`,Dg,`disabled:cursor-not-allowed disabled:opacity-50`,`aria-pressed:bg-hub-bg-muted aria-pressed:text-hub-fg-title aria-pressed:shadow-[0_0_0_var(--hub-hairline)_var(--hub-border-emphasized)]`,`aria-pressed:enabled:hover:bg-hub-bg-muted aria-pressed:enabled:hover:text-hub-fg-title aria-pressed:enabled:active:bg-hub-bg-muted`,`aria-pressed:enabled:hover:shadow-[0_0_0_var(--hub-hairline)_var(--hub-border-emphasized)]`),sizes:{sm:`size-6 [&_svg]:size-3.5`,md:B(`size-7 [&_svg]:size-3.5`,`[&_.lucide-search]:scale-90 [&_.lucide-list-filter]:scale-95 [&_.lucide-square-pen]:scale-97`,`[&_.lucide-settings-2]:scale-x-115 [&_.lucide-settings-2]:scale-y-95 [&_.lucide-panel-right]:scale-x-105 [&_.lucide-panel-right]:scale-y-90`),lg:`size-8 [&_svg]:size-4`},variants:{surface:B(`bg-hub-bg-panel text-hub-fg-muted shadow-hub-sm`,`enabled:hover:bg-hub-bg-hover enabled:hover:text-hub-fg-control enabled:hover:shadow-hub-sm-hover enabled:active:bg-hub-bg-emphasized`),ghost:B(`bg-transparent text-hub-fg-secondary`,`enabled:hover:bg-hub-bg-overlay-hover enabled:hover:text-hub-fg-title enabled:active:bg-hub-bg-muted`)}};function Mg({className:e,size:t=`md`,type:n=`button`,variant:r=`surface`,pressed:i,...a}){return(0,R.jsx)(`button`,{...a,type:n,"aria-pressed":i,className:B(jg.Root,jg.sizes[t],jg.variants[r],e)})}var Ng={Root:`group/checkbox relative inline-flex size-3.5 flex-none align-middle`,Input:B(`peer absolute inset-0 z-(--hub-z-raised) m-0 size-full cursor-pointer opacity-0`,`disabled:cursor-default`),Surface:B(`pointer-events-none box-border grid size-full place-items-center rounded-hub-sm border border-solid`,`border-hub-border-strong bg-transparent text-hub-primary-contrast`,`transition-colors duration-(--hub-duration-fast) ease-out motion-reduce:transition-none`,`peer-checked:border-hub-primary-solid peer-checked:bg-hub-primary-solid`,`peer-indeterminate:border-hub-primary-solid peer-indeterminate:bg-hub-primary-solid`,`peer-[:enabled:hover]:border-hub-primary-solid-hover`,Og,`peer-disabled:opacity-50`),Check:`hidden [grid-area:1/1] group-has-[:checked:not(:indeterminate)]/checkbox:block`,Mixed:`hidden [grid-area:1/1] group-has-[:indeterminate]/checkbox:block`};function Pg({indeterminate:e=!1,className:t,ref:n,...r}){let i=(0,p.useRef)(null),a=(0,p.useCallback)(e=>{if(i.current=e,typeof n==`function`)return n(e);n&&(n.current=e)},[n]);return(0,p.useLayoutEffect)(()=>{i.current&&(i.current.indeterminate=e)},[e]),(0,R.jsxs)(`span`,{className:B(Ng.Root,t),children:[(0,R.jsx)(`input`,{...r,ref:a,type:`checkbox`,className:Ng.Input}),(0,R.jsxs)(`span`,{className:Ng.Surface,"aria-hidden":`true`,children:[(0,R.jsx)(ys,{className:Ng.Check,size:12,strokeWidth:2.5}),(0,R.jsx)(ks,{className:Ng.Mixed,size:12,strokeWidth:2.5})]})]})}var Fg={Root:`pointer-events-none block flex-none`,orientations:{horizontal:`h-(--hub-hairline) w-full`,vertical:`w-(--hub-hairline) self-stretch`},tones:{default:`bg-hub-border`,subtle:`bg-hub-border-subtle`}};function Ig(e,t,n,r){return t?{[e]:0,left:n,right:n,width:r??`auto`}:{[e]:0,top:n,bottom:n,height:r}}function Lg(e,t,n){let r=n===void 0?{}:{alignSelf:`center`};if(!e)return{marginBlock:t,height:n,...r};let i=t?`calc(100% - ${t*2}px)`:void 0;return{marginInline:t,width:n??i,...r}}function Rg({orientation:e=`horizontal`,tone:t=`default`,edge:n,inset:r=0,length:i,className:a,style:o,...s}){let c=n?n===`left`||n===`right`?`vertical`:`horizontal`:e,l=c===`horizontal`,u=n?Ig(n,l,r,i):Lg(l,r,i);return(0,R.jsx)(`span`,{...s,"aria-hidden":`true`,"data-divider":``,"data-orientation":c,"data-tone":t,"data-edge":n,className:B(Fg.Root,Fg.orientations[c],Fg.tones[t],n&&`absolute`,a),style:{...u,...o}})}var zg=`pointer-events-none absolute inset-y-0 left-[calc((var(--hub-hit-area)_-_1px)_/_2)]`,Bg={Root:B(`group/resize absolute z-(--hub-z-raised) w-(--hub-hit-area) touch-none select-none cursor-col-resize outline-none`),edges:{left:`left-[calc(var(--hub-hit-area)_/_-2)]`,right:`right-[calc(var(--hub-hit-area)_/_-2)]`},Line:B(zg,`[&]:bg-hub-border-control`),Feedback:B(zg,`w-px origin-left scale-x-50 overflow-hidden bg-hub-border-control opacity-0`,`[mask-image:linear-gradient(transparent,black_10%,black_90%,transparent)]`,`transition-opacity duration-(--hub-duration-slow) ease-in-out motion-reduce:transition-none`,`group-hover/resize:opacity-100 group-data-[dragging=true]/resize:opacity-100`,`group-focus-visible/resize:opacity-100`),Gradient:B(`absolute -top-1/2 left-0 h-[200%] w-full bg-hub-fg`,`[mask-image:linear-gradient(transparent_5%,black_40%,black_60%,transparent_95%)]`),DragShield:`fixed inset-0 z-(--hub-z-overlay) cursor-col-resize`};function Vg({label:e,controls:t,value:n,min:r,max:i,defaultValue:a,step:o=16,showDivider:s=!0,inset:c=0,edge:l=`right`,onChange:u,className:d,style:f,...m}){let h=l===`right`?1:-1,g=(0,p.useRef)(void 0),_=(0,p.useRef)(null),v=e=>{let t=e.currentTarget.getBoundingClientRect();_.current&&(_.current.style.transform=`translateY(${e.clientY-t.top-t.height/2}px)`)},[y,b]=(0,p.useState)(!1),x=e=>u(Math.max(r,Math.min(i,e)));return(0,R.jsxs)(`div`,{...m,role:`separator`,"aria-label":e,"aria-controls":t,"aria-orientation":`vertical`,"aria-valuemin":r,"aria-valuemax":i,"aria-valuenow":n,tabIndex:0,className:B(Bg.Root,Bg.edges[l],d),style:{insetBlock:c,...f},"data-resize-handle":!0,"data-dragging":y,onDoubleClick:()=>{a!==void 0&&x(a)},onKeyDown:e=>{let t={Home:r,End:i,ArrowLeft:n-o*h,ArrowRight:n+o*h}[e.key];t!==void 0&&(e.preventDefault(),e.stopPropagation(),x(t))},onPointerEnter:v,onPointerDown:e=>{e.button===0&&e.isPrimary&&!g.current&&(e.preventDefault(),v(e),e.currentTarget.focus(),e.currentTarget.setPointerCapture(e.pointerId),g.current={pointerId:e.pointerId,x:e.clientX,width:n},b(!0))},onPointerMove:e=>{v(e);let t=g.current;t?.pointerId===e.pointerId&&x(t.width+(e.clientX-t.x)*h)},onPointerUp:e=>{g.current?.pointerId===e.pointerId&&(e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId),g.current=void 0,b(!1))},onLostPointerCapture:()=>{g.current=void 0,b(!1)},onPointerCancel:()=>{g.current=void 0,b(!1)},children:[s&&(0,R.jsx)(Rg,{orientation:`vertical`,className:Bg.Line}),(0,R.jsx)(`span`,{"aria-hidden":!0,className:Bg.Feedback,children:(0,R.jsx)(`span`,{ref:_,className:Bg.Gradient})}),y?(0,R.jsx)(`div`,{"aria-hidden":!0,className:Bg.DragShield}):null]})}var Hg={Viewport:B(`fixed bottom-6 right-6 z-(--hub-z-toast)`,`flex max-w-[calc(100vw_-_var(--hub-float-gutter)_*_2)] flex-col items-end gap-2`),Root:B(`max-w-full`,`animate-[hub-toast-in_var(--hub-duration-enter)_ease]`,`data-closing:pointer-events-none data-closing:animate-[hub-toast-out_var(--hub-duration-exit)_ease_forwards]`,`motion-reduce:animate-none motion-reduce:data-closing:animate-none`),Card:B(`relative box-border flex w-96 max-w-[min(100%,calc(100vw_-_var(--hub-float-gutter)_*_2))] items-start gap-2`,`rounded-hub-lg border-(length:--hub-hairline) border-solid border-transparent bg-hub-bg-panel p-3`,`after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit]`,`after:shadow-hub-md after:ring-(length:--hub-hairline) after:ring-hub-border-subtle`,`font-sans text-hub-md leading-4 text-hub-fg-muted antialiased`),icons:{info:B(`size-4 shrink-0 text-hub-fg-muted [&_circle]:fill-current`,`[&_path]:stroke-hub-bg-panel [&_line]:stroke-hub-bg-panel`),success:B(`grid size-4 shrink-0 place-items-center rounded-full`,`bg-hub-success-solid text-hub-success-contrast`),error:`size-4 shrink-0 text-hub-error-solid`},Content:`min-w-0 flex-1 break-words`,Message:`font-medium leading-[normal] text-hub-fg-title`,Description:`mt-2 line-clamp-2 leading-5 text-hub-fg-muted`,Action:B(`mt-3 block cursor-pointer border-0 bg-transparent p-0`,`font-sans text-hub-md leading-5 text-hub-primary-solid`,`enabled:hover:underline`,Dg,`disabled:cursor-not-allowed disabled:opacity-50`),Close:`-m-1 enabled:hover:bg-hub-bg-hover-subtle enabled:hover:text-hub-fg-control`};function Ug(e,t){return getComputedStyle(e).getPropertyValue(t).trim()}function Wg(e,t){return parseFloat(Ug(e,t))}function Gg(e,t){let n=Ug(e,t);return(n.endsWith(`ms`)?parseFloat(n):parseFloat(n)*1e3)||0}var Kg=()=>matchMedia(`(prefers-reduced-motion: reduce)`).matches;function qg({message:e,description:t,variant:n=`info`,action:r,duration:i=n===`error`?8e3:4e3,revision:a=0,closeLabel:o,onDismiss:s,className:c,onMouseEnter:l,onMouseLeave:u,onFocus:d,onBlur:f,...m}){let h=(0,p.useRef)(null),g=(0,p.useRef)(a),_=(0,p.useRef)(s);_.current=s;let[v,y]=(0,p.useState)(!1),[b,x]=(0,p.useState)(!1),[S,C]=(0,p.useState)(!1),[w,T]=(0,p.useState)(!1),E=v||b;(0,p.useEffect)(()=>{if(g.current===a)return;g.current=a,T(!1);let e=h.current;if(!e||Kg())return;let t=e.animate([{transform:`scale(1)`,easing:`ease-out`,offset:0},{transform:`scale(1.05)`,easing:`linear`,offset:.125},{transform:`scale(1.05)`,easing:`ease-in-out`,offset:.25},{transform:`scale(1)`,offset:1}],{duration:Gg(e,`--hub-duration-emphasis`)});return()=>t.cancel()},[a]),(0,p.useEffect)(()=>{if(!i||E||S)return;let e=setTimeout(()=>T(!0),i);return()=>clearTimeout(e)},[i,a,E,S]),(0,p.useEffect)(()=>{if(!w)return;let e=!1,t=h.current?.parentElement?.getAnimations()??[];return Promise.allSettled(t.map(e=>e.finished)).then(()=>{e||_.current()}),()=>{e=!0}},[w]);let D=async()=>{if(!S&&r){C(!0);try{await r.onClick(),T(!0)}finally{C(!1)}}};return(0,R.jsx)(`div`,{...m,className:B(Hg.Root,c),"data-closing":w||void 0,onMouseEnter:e=>{y(!0),l?.(e)},onMouseLeave:e=>{y(!1),u?.(e)},onFocus:e=>{x(!0),d?.(e)},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||x(!1),f?.(e)},children:(0,R.jsxs)(`div`,{ref:h,className:Hg.Card,"data-variant":n,"data-expanded":!!(t||r)||void 0,children:[(0,R.jsx)(`span`,{className:Hg.icons[n],children:n===`success`?(0,R.jsx)(ys,{size:11,strokeWidth:3,"aria-hidden":!0}):n===`error`?(0,R.jsx)(Ts,{size:16,"aria-hidden":!0}):(0,R.jsx)(Ds,{size:16,"aria-hidden":!0})}),(0,R.jsxs)(`div`,{className:Hg.Content,children:[(0,R.jsx)(`div`,{role:n===`error`?`alert`:`status`,"aria-atomic":`true`,className:Hg.Message,children:e}),t&&(0,R.jsx)(`div`,{className:Hg.Description,children:t}),r&&(0,R.jsx)(`button`,{type:`button`,className:Hg.Action,disabled:S,onClick:()=>void D(),children:r.label})]}),(0,R.jsx)(Mg,{variant:`ghost`,size:`sm`,className:Hg.Close,"aria-label":o,disabled:S,onClick:()=>T(!0),children:(0,R.jsx)(js,{"aria-hidden":!0})})]})})}function Jg({store:e,closeLabel:t,className:n,...r}){let i=(0,p.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot);return i.length===0?null:(0,R.jsx)(`div`,{role:`region`,...r,className:B(Hg.Viewport,n),children:i.map(({id:n,options:{onClose:r,...i},revision:a})=>(0,R.jsx)(qg,{...i,revision:a,closeLabel:t,onDismiss:()=>e.dismiss(n)},n))})}var Yg=(e,t)=>e.message===t.message&&e.description===t.description&&(e.variant??`info`)===(t.variant??`info`)&&!e.action&&!t.action,Xg=class{items=[];listeners=new Set;max;nextId=0;constructor(e={}){this.max=Math.max(1,e.max??1)}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.items;show(e){let t=this.items.find(t=>Yg(t.options,e));if(t)return this.commit(this.items.map(n=>n===t?{...n,options:e,revision:n.revision+1}:n)),t.id;let n=`toast-${++this.nextId}`;return this.commit([...this.items,{id:n,options:e,revision:0}].slice(-this.max)),n}dismiss(e){let t=e===void 0?[]:this.items.filter(t=>t.id!==e);t.length!==this.items.length&&this.commit(t)}commit(e){let t=this.items.filter(t=>!e.some(({id:e})=>e===t.id));this.items=e;for(let e of[...this.listeners])e();for(let e of t)e.options.onClose?.()}};function Zg(e){return{gutter:Wg(e,`--hub-menu-gutter`),maxHeight:Wg(e,`--hub-menu-max-height`),affordance:Wg(e,`--hub-scroll-affordance`)}}function Qg({placement:e=`auto`,trigger:t,viewport:n,metrics:r,panelWidth:i,borderHeight:a,contentHeight:o,row:s}){let{gutter:c,maxHeight:l,affordance:u}=r,d=s?.height??t.height,f=s?.top??0,p=Math.min(Math.max(t.width,i),n.width-c*2),m=Math.max(c,Math.min(t.left,n.width-p-c)),h=t.top+t.height/2,g=f+d/2,_=h-g,v=Math.min(o,l,n.height-c*2);if(e===`bottom`){let e=Math.max(0,Math.min(v,n.height-t.bottom-c-a));return{placement:`below`,top:t.bottom,left:m,width:p,maxHeight:e,scrollTop:Math.max(0,g-e/2)}}if(h-c>=u+d/2&&n.height-c-h>=u+d/2){let e=Math.max(c,_),t=Math.min(v,o-Math.max(0,e-_)),r=Math.min(t,n.height-c-e),i=s?.hasNext?u:o-(f+d);return h-e>r-i-d/2&&(e=h-r+i+d/2),{placement:`aligned`,top:e,left:m,width:p,maxHeight:Math.max(d,r),scrollTop:Math.max(0,g-(h-e))}}let y=n.height-t.bottom-c,b=t.top-c,x=y>=v||y>=b,S=Math.min(v,x?y:b),C=Math.max(d,S),w=x?t.bottom:t.top-Math.min(o,C)-a;return{placement:x?`below`:`above`,top:w,left:m,width:p,maxHeight:C,scrollTop:Math.max(0,g-S/2)}}var $g={Root:`inline-flex min-w-0 align-middle`,Trigger:B(`relative inline-flex min-w-0 items-center gap-2 box-border cursor-default`,`rounded-(--hub-radius-md) border-(length:--hub-hairline) border-solid border-transparent shadow-hub-sm`,`bg-hub-bg-panel text-hub-fg-control font-sans font-normal`,`px-2.5 outline-none focus-visible:outline-offset-0 enabled:hover:bg-hub-bg-hover enabled:hover:shadow-none aria-expanded:bg-hub-bg-muted`,`after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] enabled:hover:after:shadow-hub-sm-hover`,`disabled:opacity-50 disabled:pointer-events-none`,Dg),Size:{small:`h-(--hub-control-height-sm) text-hub-sm`,default:`h-(--hub-control-height-md) text-hub-md`},Font:{small:`text-hub-sm`,default:`text-hub-md`},Row:{small:`h-(--hub-control-height-sm)`,default:`h-(--hub-row-height-md)`},Label:`min-w-0 flex-1 truncate text-left`,Icon:`inline-flex shrink-0 items-center justify-center`,Chevron:B(`pointer-events-none h-2 w-2.5 shrink-0 scale-180 text-hub-fg-muted`,`[&>path]:origin-center [&>path]:scale-x-90 [&>path]:scale-y-80 [&>path]:stroke-[3.5]`),Check:`size-4 shrink-0 text-hub-fg-muted`,Popup:B(`fixed inset-auto m-0 p-0 box-border w-max max-w-[calc(100vw-var(--hub-menu-gutter)*2)]`,`overflow-hidden rounded-hub-lg border-0 bg-hub-bg-panel text-hub-fg-control outline-none`,`ring-(length:--hub-hairline) ring-hub-border-control shadow-hub-md`,`font-sans font-normal`),List:`relative box-border overflow-y-auto overscroll-contain p-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden`,Option:B(`relative flex box-border cursor-default items-center gap-2 px-2 aria-[selected=false]:pe-8 rounded-(--hub-radius-md)`,`whitespace-nowrap outline-none data-active:bg-hub-bg-hover aria-disabled:opacity-40`,`[&>.lucide-check>path]:origin-center [&>.lucide-check>path]:scale-x-80 [&>.lucide-check>path]:scale-y-89 [&>.lucide-check>path]:translate-y-px`,`[&>.lucide-check>path]:[vector-effect:non-scaling-stroke] [&>.lucide-check>path]:stroke-[1.5]`),Scroll:B(`absolute inset-x-0 z-(--hub-z-raised) flex h-(--hub-scroll-affordance) items-center justify-center`,`cursor-default text-hub-fg-muted backdrop-blur-sm`),ScrollTop:`top-0 bg-linear-to-b from-hub-bg-panel via-hub-bg-panel/90 to-hub-bg-panel/50`,ScrollBottom:`bottom-0 bg-linear-to-t from-hub-bg-panel via-hub-bg-panel/90 to-hub-bg-panel/50`},e_=e=>e.scrollTop<=1,t_=e=>e.scrollTop+e.clientHeight>=e.scrollHeight-1;function n_(e){let[t,n]=(0,p.useState)({top:!1,bottom:!1}),r=(0,p.useRef)(void 0),i=()=>{let t=e.current;if(!t)return;let r=!e_(t),i=!t_(t);n(e=>e.top===r&&e.bottom===i?e:{top:r,bottom:i})},a=()=>{clearInterval(r.current),r.current=void 0};return(0,p.useEffect)(()=>a,[]),{edges:t,update:i,start:t=>{a();let n=t===`top`?-1:1;r.current=setInterval(()=>{let t=e.current;t?(t.scrollBy({top:n*4}),(n<0?t.scrollTop<=0:t_(t))&&a()):a()},16)},stop:a}}function r_({value:e,defaultValue:t,onValueChange:n,trigger:r,form:i}){let[a,o]=(0,p.useState)(t??``),s=e!==void 0,c=e??a;return(0,p.useEffect)(()=>{let e=r.current?.form;if(!e||s)return;let n=new Set,i=e=>{let r=setTimeout(()=>{n.delete(r),e.defaultPrevented||o(t??``)});n.add(r)};return e.addEventListener(`reset`,i),()=>{e.removeEventListener(`reset`,i),n.forEach(clearTimeout)}},[s,t,i,r]),{current:c,commit:e=>{s||o(e),e!==c&&n?.(e)}}}var i_=new Set([`ArrowDown`,`ArrowUp`,`Enter`,` `]),a_=new Set([`ArrowDown`,`ArrowUp`,`Home`,`End`,`Enter`,` `,`Escape`]),o_=[{side:`top`,className:$g.ScrollTop,Icon:Cs},{side:`bottom`,className:$g.ScrollBottom,Icon:xs}];function s_({icon:e,label:t}){return(0,R.jsxs)(R.Fragment,{children:[e&&(0,R.jsx)(`span`,{className:$g.Icon,children:e}),(0,R.jsx)(`span`,{className:$g.Label,children:t})]})}function c_({options:e,value:t,defaultValue:n,onValueChange:r,size:i=`default`,placement:a=`auto`,placeholder:o=`请选择`,name:s,disabled:c,className:l,onKeyDown:u,onClick:d,...f}){let m=(0,p.useRef)(null),h=(0,p.useRef)(null),g=(0,p.useRef)(null),_=(0,p.useRef)(void 0),{current:v,commit:y}=r_({value:t,defaultValue:n,onValueChange:r,trigger:m,form:f.form}),b=n_(g),[x,S]=(0,p.useState)(!1),[C,w]=(0,p.useState)(-1),T=(0,p.useId)(),E=e.findIndex(e=>e.value===v),D=e[E],O=c||!e.length,ee=e.map((e,t)=>e.disabled?-1:t).filter(e=>e>=0),k=e.map(e=>[e.value,e.label,+!!e.disabled].join(`\0`)).join(``),A=()=>{b.stop(),S(!1)},te=(e=!0)=>{A(),h.current?.matches(`:popover-open`)&&h.current.hidePopover(),e&&m.current?.focus({preventScroll:!0})},ne=t=>{let n=e[t];n&&!n.disabled&&(y(n.value),te())},j=e=>{w(e);let t=g.current,n=t?.children[e];if(!t||!n)return;let r=_.current?.affordance??0,i=n.offsetTop;i<t.scrollTop+r?t.scrollTop=Math.max(0,i-r):i+n.offsetHeight>t.scrollTop+t.clientHeight-r&&(t.scrollTop=i+n.offsetHeight-t.clientHeight+r),b.update()},M=e=>{let{key:t}=e;if(!x)i_.has(t)&&(e.preventDefault(),S(!0));else if(t===`Tab`)te();else if(a_.has(t)){if(e.preventDefault(),e.stopPropagation(),t===`Escape`)te();else if(t===`Enter`||t===` `)ne(C);else if(t===`Home`)j(ee[0]??-1);else if(t===`End`)j(ee.at(-1)??-1);else{let e=ee.indexOf(C)+(t===`ArrowDown`?1:-1);j(ee[Math.max(0,Math.min(ee.length-1,e))]??-1)}}},N=e=>{d?.(e),!e.defaultPrevented&&(x?te():S(!0))},re=e=>{u?.(e),e.defaultPrevented||M(e)},ie=e=>{e.newState===`closed`&&A()};return(0,p.useLayoutEffect)(()=>{if(!x||O)return;let e=h.current,t=g.current;e.showPopover(),e.style.visibility=`hidden`,e.style.width=``,t.style.maxHeight=``,t.scrollTop=0;let n=D&&!D.disabled?E:ee[0]??-1;w(n),_.current=Zg(e);let r=t.children[Math.max(0,n)],i=e.getBoundingClientRect(),o=Qg({placement:a,trigger:m.current.getBoundingClientRect(),viewport:{width:window.innerWidth,height:window.innerHeight},metrics:_.current,panelWidth:i.width,borderHeight:i.height-t.getBoundingClientRect().height,contentHeight:t.scrollHeight,row:r&&{top:r.offsetTop,height:r.offsetHeight,hasNext:!!r.nextElementSibling}});return e.dataset.placement=o.placement,e.style.top=`${o.top}px`,e.style.left=`${o.left}px`,e.style.width=`${o.width}px`,t.style.maxHeight=`${o.maxHeight}px`,t.scrollTop=o.scrollTop,e.style.visibility=``,e.focus({preventScroll:!0}),b.update(),b.stop},[x,O,k,a]),(0,p.useEffect)(()=>{if(!x||O)return;let e=h.current,t=()=>te(!1),n=n=>{e.contains(n.target)||t()};return window.addEventListener(`resize`,t),window.addEventListener(`scroll`,n,!0),()=>{window.removeEventListener(`resize`,t),window.removeEventListener(`scroll`,n,!0)}},[x,O]),(0,p.useEffect)(()=>{O&&te(!1)},[O]),(0,R.jsxs)(`span`,{className:$g.Root,children:[s&&(0,R.jsx)(`input`,{type:`hidden`,name:s,form:f.form,value:v,disabled:O}),(0,R.jsxs)(`button`,{...f,ref:m,type:`button`,role:`combobox`,"aria-haspopup":`listbox`,"aria-expanded":x,"aria-controls":T,disabled:O,className:B($g.Trigger,$g.Size[i],l),"data-size":i,onClick:N,onKeyDown:re,children:[(0,R.jsx)(s_,{icon:D?.icon,label:D?.label??o}),(0,R.jsx)(xs,{className:$g.Chevron,"aria-hidden":`true`})]}),(0,R.jsxs)(`div`,{ref:h,popover:`auto`,id:T,role:`listbox`,tabIndex:-1,"aria-label":f[`aria-label`],"aria-labelledby":f[`aria-labelledby`],"aria-activedescendant":C>=0?`${T}-${C}`:void 0,className:B($g.Popup,$g.Font[i]),"data-size":i,onKeyDown:M,onToggle:ie,children:[(0,R.jsx)(`div`,{ref:g,className:$g.List,onScroll:b.update,children:e.map((e,t)=>(0,R.jsxs)(`div`,{id:`${T}-${t}`,role:`option`,"aria-selected":v===e.value,"aria-disabled":e.disabled||void 0,"data-active":C===t||void 0,"data-value":e.value,className:B($g.Option,$g.Row[i]),onPointerMove:n=>{(n.movementX||n.movementY)&&w(e.disabled?-1:t)},onClick:()=>ne(t),children:[(0,R.jsx)(s_,{icon:e.icon,label:e.label}),v===e.value&&(0,R.jsx)(ys,{className:$g.Check,"aria-hidden":`true`})]},e.value))}),o_.map(({side:e,className:t,Icon:n})=>b.edges[e]&&(0,R.jsx)(`div`,{"aria-hidden":`true`,className:B($g.Scroll,t),onPointerEnter:()=>b.start(e),onPointerLeave:b.stop,onPointerDown:e=>e.preventDefault(),children:(0,R.jsx)(n,{className:$g.Check})},e))]})]})}var l_=[`Control`,`Alt`,`Shift`,`Meta`],u_={"⌘":`meta`,cmd:`meta`,command:`meta`,meta:`meta`,ctrl:`control`,control:`control`,"⌃":`control`,alt:`alt`,option:`alt`,"⌥":`alt`,shift:`shift`,"⇧":`shift`,esc:`escape`,escape:`escape`,enter:`enter`,return:`enter`,"↵":`enter`,space:` `,spacebar:` `,"␣":` `,"↑":`arrowup`,"↓":`arrowdown`,"←":`arrowleft`,"→":`arrowright`},d_=new Set([`process`,`dead`,`unidentified`]);function f_(e){let t=e.toLowerCase();return u_[t.trim()]??t}var p_=class{coordinator;host;hover=!1;popupHover=!1;focus=!1;shortcut=!1;disabled=!1;openTimer;closeTimer;constructor(e,t){this.coordinator=e,this.host=t}get wanted(){return!this.disabled&&(this.hover||this.popupHover||this.focus)}delay(e){let t=this.host.trigger();return t?Gg(t,e):0}clearClose(){window.clearTimeout(this.closeTimer),this.closeTimer=void 0}enter(){this.hover=!0,this.coordinator.request(this,!1)}leave(){this.hover=!1,this.coordinator.release(this,!0)}popupEnter(){this.popupHover=!0,this.coordinator.request(this,!1)}popupLeave(){this.popupHover=!1,this.coordinator.release(this,!0)}focusIn(){this.focus=!0,this.coordinator.request(this,!0)}focusOut(){this.focus=!1,this.coordinator.release(this,!1)}dismiss(){this.coordinator.dismiss(this)}setDisabled(e){this.disabled=e,e&&this.dismiss()}setShortcut(e){this.shortcut!==e&&(this.shortcut=e,this.coordinator.countShortcut(e?1:-1))}isPressed(e){return this.coordinator.isPressed(e)}dispose(){this.coordinator.unregister(this)}},m_=class{document;onEmpty;handles=new Set;visible=null;pending=null;skipUntil=0;shortcuts=0;modifiers=new Set;keys=new Map;composing=!1;constructor(e,t){this.document=e,this.onEmpty=t}register(e){let t=new p_(this,e);return this.handles.size||this.listen(!0),this.handles.add(t),t}unregister(e){this.handles.delete(e)&&(this.dismiss(e),e.setShortcut(!1),!this.handles.size&&(this.listen(!1),this.skipUntil=0,this.onEmpty()))}request(e,t){e.wanted&&(this.visible===e?e.clearClose():t||this.visible||performance.now()<this.skipUntil?this.show(e):this.pending!==e&&(this.cancelPending(),this.pending=e,e.openTimer=window.setTimeout(()=>{this.pending===e&&(this.pending=null,this.handles.has(e)&&e.wanted&&this.show(e))},e.delay(`--hub-delay-open`))))}release(e,t){e.wanted||(this.pending===e&&this.cancelPending(),this.visible===e&&(e.clearClose(),t?e.closeTimer=window.setTimeout(()=>{e.wanted||this.hide(e)},e.delay(`--hub-duration-fast`)):this.hide(e)))}dismiss(e){e.hover=e.popupHover=e.focus=!1,this.pending===e&&this.cancelPending(),this.hide(e)}countShortcut(e){this.shortcuts+=e,this.shortcuts||this.clearKeys()}isPressed(e){let t=f_(e);if(this.modifiers.has(t))return!0;for(let e of this.keys.values())if(e===t)return!0;return!1}show(e){this.cancelPending();let t=this.visible;t!==e&&(this.visible=e,t&&(t.clearClose(),t.host.onOpenChange(!1)),e.host.onOpenChange(!0))}hide(e){e.clearClose(),this.visible===e&&(this.visible=null,this.skipUntil=performance.now()+e.delay(`--hub-delay-skip`),e.host.onOpenChange(!1))}cancelPending(){this.pending&&=(window.clearTimeout(this.pending.openTimer),null)}dismissAll(){this.pending&&this.dismiss(this.pending),this.visible&&this.dismiss(this.visible)}keyState(){return[...this.modifiers,``,...this.keys.values()].join(`\0`)}clearKeys(){(this.modifiers.size||this.keys.size)&&(this.modifiers.clear(),this.keys.clear(),this.visible?.host.onKeysChange())}onKey=e=>{if(!this.shortcuts)return;let t=this.keyState(),n=e.type===`keydown`,r=e.key.toLowerCase(),i=new Set;for(let t of l_)e.getModifierState(t)&&i.add(t.toLowerCase());let a=l_.some(e=>e.toLowerCase()===r);n&&a&&i.add(r),this.modifiers=i;let o=e.code||r;n?a||this.composing||e.isComposing||d_.has(r)||this.keys.set(o,r):(this.keys.delete(o),r===`meta`&&this.keys.clear()),this.keyState()!==t&&this.visible?.host.onKeysChange()};onComposition=e=>{this.composing=e.type===`compositionstart`,this.composing&&this.keys.size&&(this.keys.clear(),this.visible?.host.onKeysChange())};onScroll=e=>{let t=e.target;for(let e of new Set([this.pending,this.visible])){let n=e?.host.trigger();e&&n&&t.contains(n)&&(e===this.visible&&e.focus&&e.host.reposition()||this.dismiss(e))}};onResize=()=>this.dismissAll();onInactive=e=>{e.type===`visibilitychange`&&!this.document.hidden||e.type===`blur`&&e.target!==this.document.defaultView||(this.dismissAll(),this.skipUntil=0,this.composing=!1,this.clearKeys())};listen(e){let t=this.document.defaultView,n=(t,n,r)=>{e?t?.addEventListener(n,r,!0):t?.removeEventListener(n,r,!0)};n(this.document,`keydown`,this.onKey),n(this.document,`keyup`,this.onKey),n(this.document,`compositionstart`,this.onComposition),n(this.document,`compositionend`,this.onComposition),n(this.document,`visibilitychange`,this.onInactive),n(t,`blur`,this.onInactive),n(t,`resize`,this.onResize),n(t,`scroll`,this.onScroll),e||this.clearKeys()}},h_=new WeakMap;function g_(e,t){let n=h_.get(e);return n||(n=new m_(e,()=>h_.delete(e)),h_.set(e,n)),n.register(t)}var __={top:`bottom`,bottom:`top`,left:`right`,right:`left`};function v_({trigger:e,panel:t,margin:n,viewport:r,side:i,align:a,rtl:o}){let s=t.width+n*2,c=t.height+n*2,l={top:e.top,bottom:r.height-e.bottom,left:e.left,right:r.width-e.right},u=i===`top`||i===`bottom`,d=__[i],f=l[i]<(u?c:s)&&l[d]>l[i]?d:i,p=f===`top`?e.top-c:f===`bottom`?e.bottom:f===`left`?e.left-s:e.right,m=u?e.left:e.top,h=u?e.width:e.height,g=u?s:c,_=u&&o&&a!==`center`?a===`start`?`end`:`start`:a,v=_===`start`?m-n:_===`end`?m+h-g+n:m+(h-g)/2,y=(e,t)=>Math.round(Math.max(0,Math.min(e,t)));return{side:f,top:y(u?p:v,r.height-c),left:y(u?v:p,r.width-s)}}var y_={Popup:B(`fixed inset-auto m-1.5 box-border w-max border-(length:--hub-hairline) border-solid border-hub-border-panel px-2 py-1.25`,`max-w-[min(var(--hub-float-width),calc(100vw-var(--hub-float-gutter)))]`,`max-h-[calc(100vh-var(--hub-float-gutter))] overflow-x-hidden overflow-y-auto overscroll-contain`,`open:inline-flex items-center-safe gap-2`,`rounded-(--hub-radius-md) bg-hub-bg-panel text-hub-fg-control shadow-hub-xs`,`font-sans font-[450] text-hub-xs leading-normal text-left`,`transition-opacity duration-(--hub-duration-fast) starting:opacity-0 motion-reduce:transition-none`),Content:`min-w-0 whitespace-normal wrap-anywhere`,Keys:`-mr-0.5 inline-flex shrink-0 items-center gap-0.5`,Kbd:B(`inline-flex min-w-4.5 box-border items-center justify-center p-0.5`,`rounded-(--hub-radius-compact) border-(length:--hub-hairline) border-solid border-hub-border-panel`,`bg-transparent text-hub-fg-muted font-sans text-hub-xs font-normal leading-[1.1]`,`transition-colors duration-(--hub-duration-fast) motion-reduce:transition-none`,`data-pressed:bg-hub-bg-emphasized`)};function b_(e,t){return n=>{e?.(n),t(n)}}function x_(e,t,n){let r=Math.max(t.top,0),i=Math.max(t.left,0),a=Math.min(t.bottom,n.height),o=Math.min(t.right,n.width);for(let t=e;t&&t!==e.ownerDocument.documentElement;t=t.parentElement){if(t!==e){let{overflowX:e,overflowY:n}=getComputedStyle(t);if(e!==`visible`||n!==`visible`){let s=t.getBoundingClientRect();n!==`visible`&&(r=Math.max(r,s.top),a=Math.min(a,s.bottom)),e!==`visible`&&(i=Math.max(i,s.left),o=Math.min(o,s.right))}}if(t.matches(`:popover-open, :modal, :fullscreen`))break}return a>r&&o>i}function S_({children:e,content:t,shortcut:n,side:r=`bottom`,align:i=`center`,disabled:a=!1}){let o=(0,p.useRef)(null),s=(0,p.useRef)(null),c=(0,p.useRef)(null),l=(0,p.useRef)(!1),u=(0,p.useRef)(()=>!1),[d,f]=(0,p.useState)(!1),[,m]=(0,p.useState)(0),h=(0,p.useId)(),g=e,_=g.props,v=n?.length?n:void 0,y=_.ref,b=(0,p.useCallback)(e=>{if(o.current=e,typeof y==`function`){let t=y(e);if(typeof t==`function`)return()=>{o.current=null,t()}}else y&&(y.current=e)},[y]);(0,p.useLayoutEffect)(()=>{u.current=()=>{let e=o.current,t=s.current;if(!e||!t)return!1;let n=e.ownerDocument.documentElement,a={width:n.clientWidth,height:n.clientHeight},c=e.getBoundingClientRect(),l=getComputedStyle(t),u=v_({trigger:c,panel:t.getBoundingClientRect(),margin:parseFloat(l.marginTop)||0,viewport:a,side:r,align:i,rtl:l.direction===`rtl`});return t.dataset.side=u.side,t.style.top=`${u.top}px`,t.style.left=`${u.left}px`,x_(e,c,a)}}),(0,p.useLayoutEffect)(()=>{let e=o.current;if(!e)return;let t=g_(e.ownerDocument,{trigger:()=>o.current,onOpenChange:f,onKeysChange:()=>m(e=>e+1),reposition:()=>u.current()});return c.current=t,()=>{c.current=null,t.dispose()}},[]),(0,p.useLayoutEffect)(()=>{c.current?.setShortcut(!!v)},[!!v]),(0,p.useLayoutEffect)(()=>{c.current?.setDisabled(a)},[a]),(0,p.useLayoutEffect)(()=>{let e=s.current;if(!d||!e)return;e.showPopover(),u.current();let t=new ResizeObserver(()=>u.current());return t.observe(e),()=>{t.disconnect(),e.matches(`:popover-open`)&&e.hidePopover()}},[d]),(0,p.useLayoutEffect)(()=>{d&&u.current()},[r,i]);let x=a?_[`aria-describedby`]:[...new Set([..._[`aria-describedby`]?.split(/\s+/).filter(Boolean)??[],h])].join(` `),S=()=>{l.current=!1};return(0,R.jsxs)(R.Fragment,{children:[(0,p.cloneElement)(g,{ref:b,"aria-describedby":x,onPointerEnter:b_(_.onPointerEnter,e=>{e.pointerType!==`touch`&&c.current?.enter()}),onPointerLeave:b_(_.onPointerLeave,()=>{S(),c.current?.leave()}),onPointerDown:b_(_.onPointerDown,()=>{l.current=!0}),onPointerUp:b_(_.onPointerUp,S),onPointerCancel:b_(_.onPointerCancel,S),onFocus:b_(_.onFocus,e=>{!l.current&&e.target.matches(`:focus-visible`)&&c.current?.focusIn()}),onBlur:b_(_.onBlur,e=>{e.currentTarget.contains(e.relatedTarget)||c.current?.focusOut()}),onClick:b_(_.onClick,()=>c.current?.dismiss())}),!a&&(0,R.jsxs)(`span`,{ref:s,id:h,role:`tooltip`,popover:`manual`,tabIndex:-1,className:y_.Popup,onPointerEnter:()=>c.current?.popupEnter(),onPointerLeave:()=>c.current?.popupLeave(),children:[(0,R.jsx)(`span`,{className:y_.Content,children:t}),v&&(0,R.jsx)(`span`,{className:y_.Keys,children:v.map((e,t)=>(0,R.jsx)(`kbd`,{className:y_.Kbd,"data-pressed":d&&c.current?.isPressed(e)||void 0,children:e},t))})]})]})}B(`pointer-events-none box-border flex size-full items-center rounded-full bg-hub-bg-inactive p-0.75`,`transition-colors duration-(--hub-duration-normal) motion-reduce:transition-none`,`peer-checked:bg-hub-primary-solid peer-disabled:opacity-50`,Og,`peer-[:enabled:hover:not(:checked)]:bg-hub-bg-inactive-hover peer-[:enabled:hover:checked]:bg-hub-primary-solid-hover`),B(`block size-3.5 rounded-full bg-hub-primary-contrast`,`transition-transform duration-(--hub-duration-normal) motion-reduce:transition-none`,`group-has-[:checked]/switch:translate-x-2.5`,`group-has-[:enabled:hover]/switch:w-4 group-has-[:enabled:hover:checked]/switch:translate-x-2`),B(`fixed inset-auto z-(--hub-z-overlay) m-0 box-border max-w-[calc(100vw-2*var(--hub-menu-gutter))] overflow-y-auto`,`rounded-(--hub-radius-lg) border-(length:--hub-hairline) border-solid border-hub-border-panel bg-hub-bg-panel py-1.5`,`font-sans text-hub-md leading-normal text-hub-fg-control shadow-hub-md outline-none`),B(`w-(--hub-popup-width-md) px-0`,`[&_[role=separator]>[data-divider]]:mx-0! [&_[role=separator]>[data-divider]]:w-full!`,`[&_[role=separator]>[data-divider]]:bg-hub-border-subtle`),B(`relative isolate flex h-8 w-full shrink-0 items-center gap-2 border-0 bg-transparent text-left`,`font-sans text-hub-md font-[450] whitespace-nowrap outline-none`,`disabled:cursor-not-allowed disabled:opacity-40 aria-disabled:cursor-not-allowed aria-disabled:opacity-40`,`[&>svg]:size-4 [&>svg]:shrink-0 [&>span]:min-w-0 [&>span]:truncate`),B(`m-0 py-0 pl-3.5 pr-4.5 leading-[normal]`,`before:pointer-events-none before:absolute before:inset-y-0 before:inset-x-1.5 before:-z-1 before:rounded-(--hub-radius-md) before:content-['']`,`[&:not(:disabled):not([aria-disabled=true]):is(:hover,:focus-visible)]:before:bg-hub-bg-muted`),B(`rounded-(--hub-radius-inner) pl-2.5 pr-3.5 leading-5`,`[&:not(:disabled):not([aria-disabled=true]):is(:hover,:focus-visible)]:bg-hub-bg-muted`),B(`opacity-0 transition-[opacity,color,background-color] duration-(--hub-duration-fast) motion-reduce:transition-none`,`group-hover/sidebar-group:opacity-100 group-focus-within/sidebar-group:opacity-100 focus-visible:opacity-100`,`[@media(hover:none)]:opacity-100`),B(`mb-px box-border flex h-7 w-full flex-none items-center gap-1.5 rounded-(--hub-radius-md)`,`border-0 py-0 pl-2.5 pr-[9px] text-left font-sans text-hub-md font-medium leading-4 no-underline`,`transition-colors duration-(--hub-duration-normal) motion-reduce:transition-none`,`[&>svg]:size-4 [&>svg]:shrink-0 focus-visible:-outline-offset-1`,Dg,`disabled:cursor-default disabled:opacity-50 aria-disabled:cursor-default aria-disabled:opacity-50`),B(`relative data-[dragging=true]:opacity-50`,`data-[drop-edge]:after:pointer-events-none data-[drop-edge]:after:absolute data-[drop-edge]:after:inset-x-2.5`,`data-[drop-edge]:after:h-0.5 data-[drop-edge]:after:bg-hub-focus-ring`,`data-[drop-edge=top]:after:top-0 data-[drop-edge=bottom]:after:bottom-0`),B(`flex h-full min-w-0 flex-1 items-center gap-1.5 border-0 bg-transparent p-0 text-left text-inherit no-underline`,Dg),rg.configure({preventActivation:(e,t)=>{if(!(e.target instanceof Element))return!1;if(e.target.closest(`[data-sidebar-trailing], [role=menu]`))return!0;let n=e.target.closest(`button`);return!!n&&n!==t.element&&!n.hasAttribute(`data-sidebar-control`)}});var C_=`h-(--hub-row-height-md) rounded-(--hub-radius-md) border-(length:--hub-hairline) border-solid border-hub-border-control`,w_=B(`focus-within:outline-1 focus-within:outline-solid focus-within:-outline-offset-1`,`focus-within:outline-hub-focus-ring aria-invalid:focus-within:outline-hub-error-solid`),T_={Base:B(`box-border min-w-0 w-full bg-hub-bg-control font-sans text-hub-md font-normal text-hub-fg-title`,`outline-none transition-colors duration-(--hub-duration-fast) motion-reduce:transition-none`,`aria-invalid:border-hub-error-solid disabled:cursor-not-allowed disabled:opacity-50`),Frame:C_,Focus:w_,Input:B(C_,w_,`block px-3 py-1.5 placeholder:text-hub-fg-placeholder`,`enabled:not-focus:not-aria-invalid:hover:border-hub-border-control-hover`)};B(T_.Base,T_.Frame,T_.Focus,`flex items-center`,`has-disabled:opacity-50 not-has-disabled:not-focus-within:not-aria-invalid:hover:border-hub-border-control-hover`),B(`inline-grid h-full shrink-0 place-items-center rounded-(--hub-radius-md) border-0 bg-transparent px-3`,`text-hub-fg-secondary focus-visible:-outline-offset-1 disabled:cursor-not-allowed`,Dg),B(T_.Base,T_.Focus,`block resize-y rounded-(--hub-radius-card) border-0 p-4`,`shadow-hub-sm placeholder:text-hub-fg-placeholder [&[rows="3"]]:min-h-30`,`aria-invalid:ring-1 aria-invalid:ring-hub-error-solid`),B(`relative m-0.5 flex h-7 min-w-0 flex-auto items-center justify-center gap-1.5 rounded-full border-(length:--hub-hairline) border-solid border-transparent px-3 py-1`,`bg-hub-bg-panel font-sans text-hub-sm font-medium leading-[normal] whitespace-nowrap text-hub-fg-muted`,`transition-[border,background-color,color] duration-(--hub-duration-normal)`,`before:absolute before:-inset-0.5 before:content-['']`,`after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:shadow-hub-sm after:transition-shadow after:duration-(--hub-duration-normal) after:content-['']`,`aria-selected:bg-hub-bg-selected aria-selected:text-hub-fg-title aria-selected:after:shadow-[0_0_0_var(--hub-hairline)_var(--hub-border-emphasized)]`,`[&:not([aria-selected=true]):enabled:hover]:bg-hub-bg-hover-subtle [&:not([aria-selected=true]):enabled:hover]:text-hub-fg-control`,`[&:not([aria-selected=true]):enabled:hover]:duration-0 [&:not([aria-selected=true]):enabled:hover]:after:duration-0`,`[&:not([aria-selected=true]):enabled:hover]:after:shadow-hub-sm-hover`,`focus:outline-none focus-visible:-outline-offset-1`,Dg,`disabled:cursor-not-allowed disabled:opacity-40 motion-reduce:transition-none motion-reduce:after:transition-none`);var E_=ua(`notificationService`),D_=class extends Xg{},O_={ignoredBaseline:`baseline.ignored`,deleteBaseline:`baseline.delete`,module:{root:`module`,loading:`module.loading`,baseline:`view.baseline`,tasks:`view.tasks`,changes:`module.changes`,code:`module.code`,changelog:`module.changelog`,conformance:`module.conformance`,files:`module.files`,tooltip:e=>`module.tooltip.${e}`},conformance:{list:`conformance.list`,enabled:`conformance.enabled`,disabled:`conformance.disabled`,rule:e=>`conformance.rule.${e}`,readme:`conformance.readme`,state:`conformance.state`},changelog:{commits:`changelog.commits`,commit:e=>`changelog.commit.${e}`,review:e=>`changelog.review.${e}`,reviewCount:`changelog.reviewCount`,reviewFilter:`changelog.reviewFilter`,files:`changelog.files`,file:e=>`changelog.file.${e}`,detail:`changelog.detail`,empty:`changelog.empty`,editor:`changelog.editor`,scopes:`changelog.scopes`,entry:e=>`changelog.entry.${e}`,saveState:e=>`changelog.save.${e}`,retry:e=>`changelog.retry.${e}`,tag:e=>`changelog.tag.${e}`},files:{tree:`files.tree`,folderLoading:e=>`files.folderLoading.${e}`,file:e=>`files.file.${e}`,content:`files.content`,editor:`files.editor`,previous:`files.previous`,next:`files.next`},code:{tree:`code.tree`,scroll:`code.scroll`,file:e=>`code.file.${e}`,content:`code.content`,empty:`code.empty`,refresh:`code.refresh`,review:e=>`code.review.${e}`,reviewCount:`code.reviewCount`},changes:{tree:`changes.tree`,review:e=>`changes.review.${e}`,reviewCount:`changes.reviewCount`},visual:{stage:{root:`visual.stage`,image:e=>`visual.stage.image.${e}`,zoom:e=>`visual.stage.zoom.${e}`,approve:`approve`}},dialog:{root:`dialog`,close:`dialog.close`},branches:`changes.branches`,resize:`sidebar.resize`,approveBatch:`approve.batch`,selectionBar:`selection.bar`,pageHeader:`page.header`,headerMetadata:`page.header.metadata`,statusBadge:`status.badge`,taskStatus:e=>`status.task.${e}`,folder:e=>`tree.folder.${e}`,clearSelection:`selection.clear`,previous:`stage.previous`,next:`stage.next`,snapshotTab:e=>`snapshot.tab.${e}`,sourceTab:e=>`source.tab.${e}`,collapse:`source.collapse`,copy:`source.copy`,source:`source.code`,sourceLineNumbers:`source.lineNumbers`,diffUnified:`diff.unified`,diffExpand:`diff.expand`,diffEditor:`diff.editor`,diffOriginal:`diff.original`,diffModified:`diff.modified`,namespace:e=>`namespace.${e}`,view:{baseline:`view.baseline`,tasks:`view.tasks`},tasks:{root:`tasks`,empty:`tasks.empty`,item:e=>`tasks.${e}`,removable:`tasks.removable`,prune:`tasks.prune`},tree:`cases`,case:e=>`case.${e}`,selectFolder:e=>`select.folder.${e}`,select:e=>`select.${e}`,detail:`detail`,snapshotContent:`detail.snapshots`,supplement:`detail.supplement`,taskInfo:`detail.taskInfo`,caseEyebrow:`detail.caseEyebrow`,taskExecutionId:`detail.taskExecutionId`,copyTaskExecutionId:`detail.copyTaskExecutionId`,caseId:`detail.caseId`,copyCaseIds:`detail.copyCaseIds`,taskError:`detail.taskError`,empty:`empty`,approve:`approve`,refresh:`refresh`,message:`message`,previewTab:e=>`preview.tab.${e}`,preview:{tabs:`preview.tabs`,title:`preview.title`,card:`preview.card`,previous:`preview.previous`,next:`preview.next`,left:`preview.left`,right:`preview.right`,position:`preview.position`,version:`preview.version`,hints:`preview.hints`,case:`preview.case`,status:`preview.status`,select:`preview.select`,evidence:`preview.evidence`,evidenceTab:e=>`preview.evidence.${e}`},snapshotPreview:e=>`snapshot.preview.${e}`,imageVersion:(e,t)=>`image.version.${e}.${t}`,snapshotViewLabel:e=>`snapshot.viewLabel.${e}`,snapshotCompare:e=>`snapshot.compare.${e}`,snapshotStatus:e=>`snapshot.status.${e}`,snapshotMetrics:e=>`snapshot.metrics.${e}`,snapshotDiff:e=>`snapshot.diff.${e}`,snapshot:e=>`snapshot.${e}`,image:(e,t)=>`image.${e}.${t}`,text:e=>`text.${e}`,observation:e=>`observation.${e}`,filter:e=>`filter.${e}`,filterGroup:`filter.group`,filterThumb:`filter.thumb`,mobile:{tabbar:`mobile.tabbar`,tab:e=>`mobile.tab.${e}`,more:`mobile.more`,moreSheet:`mobile.moreSheet`,editTabs:`mobile.editTabs`,tabOrder:e=>`mobile.tabOrder.${e}`,tabHandle:e=>`mobile.tabHandle.${e}`,saveTabs:`mobile.saveTabs`,resetTabs:`mobile.resetTabs`,rule:e=>`mobile.rule.${e}`,page:e=>`mobile.page.${e}`,back:`mobile.back`,prev:`mobile.prev`,next:`mobile.next`,switchHand:`mobile.switchHand`,empty:`mobile.empty`,toast:`mobile.toast`,diff:e=>`mobile.diff.${e}`,ref:`mobile.ref`,refDialog:`mobile.refDialog`,refOption:e=>`mobile.refOption.${e}`,review:`mobile.review`,file:e=>`mobile.file.${e}`,check:e=>`mobile.check.${e}`,commit:e=>`mobile.commit.${e}`,actionSheet:`mobile.actionSheet`,moreActions:`mobile.moreActions`,caseInfo:`mobile.caseInfo`,copyCaseId:`mobile.copyCaseId`,copyPath:`mobile.copyPath`,pathDisclosure:`mobile.pathDisclosure`,metrics:e=>`mobile.metrics.${e}`,copy:e=>`mobile.copy.${e}`,diagnostics:`mobile.diagnostics`,expandAll:`mobile.expandAll`,tag:e=>`mobile.tag.${e}`,note:e=>`mobile.note.${e}`,noteState:e=>`mobile.noteState.${e}`,task:e=>`mobile.task.${e}`,case:e=>`mobile.case.${e}`,baselineCase:e=>`mobile.baselineCase.${e}`,folder:e=>`mobile.folder.${e}`,evidence:e=>`mobile.evidence.${e}`,filter:e=>`mobile.filter.${e}`,confirm:`mobile.confirm`,confirmOk:`mobile.confirm.ok`,confirmCancel:`mobile.confirm.cancel`,image:e=>`mobile.image.${e}`,fileDiff:`mobile.fileDiff`,approve:`mobile.approve`,approveAll:`mobile.approveAll`,prune:`mobile.prune`,deleteBaseline:`mobile.deleteBaseline`}},k_=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function A_(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:k_(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var j_=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},M_=e=>{let t=j_(e);return t.charAt(0).toUpperCase()+t.slice(1)},N_=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),P_={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function F_(e){return e!=null}function I_(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??P_.width,a=e.size??e.height??P_.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?N_(...c):N_(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??P_[`stroke-width`])*Number(e.size??e.width??P_.width)/Number(t.size??t.width??P_.width):t.strokeWidth??P_[`stroke-width`];return[`svg`,{...Object.entries(P_).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&F_(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&F_(t.width)&&{[r(`width`)]:t.width},...`height`in t&&F_(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function L_(e,t={}){return I_(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var R_=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},z_=(0,p.createContext)({}),B_=()=>(0,p.useContext)(z_),V_=(0,p.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:m=24,strokeWidth:h=2,absoluteStrokeWidth:g=!1,nonScalingStroke:_=!1,color:v=`currentColor`,className:y=``}=B_()??{},b=!!c||R_(d),[x,S,C=[]]=L_(u,{color:e??v,width:n??t??m,height:r??t??m,strokeWidth:i??h,absoluteStrokeWidth:a??g,nonScalingStroke:o??_,className:N_(y,s),hasA11yProp:b,attributes:d});return(0,p.createElement)(x,{ref:f,...S},[...C.map(([e,t])=>(0,p.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function H_(e,t=[],n=[]){let r=typeof e==`string`?A_(e,t,n):e,i=(0,p.forwardRef)(({className:e,...t},n)=>(0,p.createElement)(V_,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=M_(r.name)),i}var U_={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};U_.node;var W_=H_(U_),G_={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};G_.node;var K_=H_(G_),q_={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};q_.node;var J_=H_(q_),Y_={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};Y_.node;var X_=H_(Y_),Z_={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};Z_.node;var Q_=H_(Z_),$_={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};$_.node;var ev=H_($_),tv={name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]};tv.node;var nv=H_(tv),rv={name:`circle-x`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-circle`]};rv.node;var iv=H_(rv),av={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};av.node;var ov=H_(av),sv={name:`diamond`,size:24,node:[[`path`,{d:`M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41l-7.59-7.59a2.41 2.41 0 0 0-3.41 0Z`,key:`1f1r0c`}]]};sv.node;var cv=H_(sv),lv={name:`file-code-corner`,size:24,node:[[`path`,{d:`M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35`,key:`1wthlu`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m5 16-3 3 3 3`,key:`331omg`}],[`path`,{d:`m9 22 3-3-3-3`,key:`lsp7cz`}]],aliases:[`file-code-2`]};lv.node;var uv=H_(lv),dv={name:`file-diff`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}],[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}]]};dv.node;var fv=H_(dv),pv={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};pv.node;var mv=H_(pv),hv={name:`folder-tree`,size:24,node:[[`path`,{d:`M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`,key:`hod4my`}],[`path`,{d:`M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`,key:`w4yl2u`}],[`path`,{d:`M3 5a2 2 0 0 0 2 2h3`,key:`f2jnh7`}],[`path`,{d:`M3 3v13a2 2 0 0 0 2 2h3`,key:`k8epm1`}]]};hv.node;var gv=H_(hv),_v={name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]};_v.node;var vv=H_(_v),yv={name:`git-compare-arrows`,size:24,node:[[`circle`,{cx:`5`,cy:`6`,r:`3`,key:`1qnov2`}],[`path`,{d:`M12 6h5a2 2 0 0 1 2 2v7`,key:`1yj91y`}],[`path`,{d:`m15 9-3-3 3-3`,key:`1lwv8l`}],[`circle`,{cx:`19`,cy:`18`,r:`3`,key:`1qljk2`}],[`path`,{d:`M12 18H7a2 2 0 0 1-2-2V9`,key:`16sdep`}],[`path`,{d:`m9 15 3 3-3 3`,key:`1m3kbl`}]]};yv.node;var bv=H_(yv),xv={name:`image`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]};xv.node;var Sv=H_(xv),Cv={name:`images`,size:24,node:[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]};Cv.node;var wv=H_(Cv),Tv={name:`layers`,size:24,node:[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]],aliases:[`layers-3`]};Tv.node;var Ev=H_(Tv),Dv={name:`list-checks`,size:24,node:[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]};Dv.node;var Ov=H_(Dv),kv={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};kv.node;var Av=H_(kv),jv={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};jv.node;var Mv=H_(jv),Nv={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};Nv.node;var Pv=H_(Nv),Fv={name:`rotate-ccw-clock`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};Fv.node;var Iv=H_(Fv),Lv={name:`scroll-text`,size:24,node:[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]};Lv.node;var Rv=H_(Lv);function zv(e,t=[]){let n=(0,p.useRef)(e);n.current=e,(0,p.useEffect)(()=>{let e=()=>{n.current()};return e(),window.addEventListener(`focus`,e),()=>window.removeEventListener(`focus`,e)},t)}function Bv(e){if(!e?.width||!e.height)return{};let t=e.scale??1,n=Math.max(1,Math.round(e.width/t));return{width:n,height:Math.max(1,Math.round(e.height/t)),...t>1&&{style:{maxWidth:`min(100%, ${n}px)`}}}}function Vv(e){let[t,n]=(0,p.useState)(()=>{try{return localStorage.getItem(e)===`true`}catch{return!1}});return(0,p.useEffect)(()=>{try{localStorage.setItem(e,String(t))}catch{}},[e,t]),[t,n]}function Hv(e){let t=ea(aa(Xo)),[n,r]=(0,p.useState)([0]),i=n.at(-1);zv(()=>t.readFile(e,i),[e,i]);let a=t.content.key===JSON.stringify([e,i])?t.content.state:null,o=a?.data,s=o?.kind===`text`?o.text:void 0,c=o?.kind===`text`?o.nextOffset:void 0;return{offset:i,text:s,loading:!a||a.loading,error:a?.error?.message,note:o?.kind===`binary`?`二进制文件不支持文本预览。`:s===``?`空文件`:void 0,pager:i>0||c!==void 0?{index:n.length-1,hasNext:c!==void 0,onPrev:()=>{i>0&&r(n.slice(0,-1))},onNext:()=>{c!==void 0&&r([...n,c])}}:null}}var Uv=e=>`/mobile/${e}`;function Wv(e,t={}){let n=new URLSearchParams(Object.entries(t).filter(e=>!!e[1])).toString();return n?`${e}?${n}`:e}function Gv(e){let t=ea(aa(Xo));zv(()=>t.loadDirectory(``));let n=t.directories.get(``)?.state,r=e?16:14,i=n=>(t.directories.get(n)?.state?.data??[]).map(({name:a,directory:o})=>{let s=n?n+`/`+a:a,c=o?vv:uv,l=o?t.directories.get(s)?.state:void 0;return{key:s,label:a,icon:(0,R.jsx)(c,{size:r}),trailing:l?.loading?(0,R.jsx)(Av,{className:`project-folder-loading`,size:r,role:`status`,"aria-label":`正在读取 ${a}`,"data-testid":O_.files.folderLoading(s)}):l?.error?(0,R.jsx)(`span`,{className:`project-folder-error`,role:`img`,"aria-label":l.error.message,title:l.error.message,children:(0,R.jsx)(Q_,{size:r,"aria-hidden":`true`})}):void 0,testId:o?(e?O_.mobile.folder:O_.folder)(s):(e?O_.mobile.file:O_.files.file)(s),children:o?i(s):void 0,href:e&&!o?Wv(`/mobile/files/file`,{path:s}):void 0}});return{nodes:i(``),error:n?.error,loading:n?.loading??!0,isExpanded:e=>t.directories.has(e),onToggle:e=>t.toggleDirectory(e)}}function Kv({path:t,text:n,mobile:r=!1}){let i=(0,p.useRef)(null),[a,o]=(0,p.useState)(`loading`);return(0,p.useEffect)(()=>{let a=!0,s;return o(`loading`),e(async()=>{let{monaco:e,languageForPath:t}=await import(`./monaco-3fFILk_i.js`);return{monaco:e,languageForPath:t}},__vite__mapDeps([0,1,2,3,4])).then(async({monaco:e,languageForPath:c})=>{if(!a)return;let l=c(t);await e.editor.colorize(``,l,{}),a&&i.current&&(s=e.editor.create(i.current,{value:n,language:l,theme:`vs`,ariaLabel:t,readOnly:!0,domReadOnly:!0,automaticLayout:!0,minimap:{enabled:!1},renderValidationDecorations:`off`,renderLineHighlight:`none`,overviewRulerLanes:0,overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,scrollBeyondLastLine:!1,lineNumbersMinChars:3,fontSize:12,fontFamily:getComputedStyle(i.current).getPropertyValue(r?`--m-font-mono`:`--font-metadata`).trim(),lineHeight:r?20:22,...r&&{folding:!1,glyphMargin:!1,lineDecorationsWidth:8},padding:{top:8,bottom:8}}),o(`ready`))}).catch(()=>{a&&o(`error`)}),()=>{a=!1,s?.dispose()}},[t,n,r]),(0,R.jsxs)(`div`,{className:`project-file-editor`,"data-testid":O_.files.editor,"aria-busy":a===`loading`,children:[(0,R.jsx)(`div`,{className:`project-file-editor-host`,ref:i}),a!==`ready`&&(0,R.jsx)(`pre`,{className:`project-file-fallback`,tabIndex:0,children:n})]})}export{Ko as $,lr as $t,X_ as A,Aa as At,Mg as B,oa as Bt,uv as C,Xa as Ct,nv as D,Ja as Dt,iv as E,Za as Et,O_ as F,ba as Ft,rs as G,$i as Gt,c_ as H,aa as Ht,E_ as I,ga as It,Zo as J,zi as Jt,ns as K,Zi as Kt,D_ as L,_a as Lt,K_ as M,ja as Mt,W_ as N,Ta as Nt,ev as O,Ia as Ot,H_ as P,Oa as Pt,qo as Q,Ue as Qt,Ag as R,ca as Rt,fv as S,oo as St,ov as T,so as Tt,Jg as U,na as Ut,Vg as V,ia as Vt,S_ as W,ea as Wt,Yo as X,Fi as Xt,Xo as Y,Xr as Yt,Jo as Z,He as Zt,Sv as _,io as _t,Hv as a,f as an,Bo as at,gv as b,ao as bt,zv as c,u as cn,Io as ct,Pv as d,ko as dt,Nr as en,Go as et,Mv as f,Co as ft,wv as g,xo as gt,Ev as h,fo as ht,Uv as i,Wi as in,Ho as it,J_ as j,ka as jt,Q_ as k,Pa as kt,Rv as l,Po as lt,Ov as m,_o as mt,Gv as n,hr as nn,Uo as nt,Vv as o,s as on,zo as ot,Av as p,So as pt,ts as q,Ri as qt,Wv as r,_r as rn,Vo as rt,Bv as s,c as sn,Ro as st,Kv as t,fr as tn,Wo as tt,Iv as u,Mo as ut,bv as v,ro as vt,cv as w,Ya as wt,mv as x,co as xt,vv as y,Ga as yt,Pg as z,ua as zt};