@tracelet/ui 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
function wE(t,a){for(var o=0;o<a.length;o++){const l=a[o];if(typeof l!="string"&&!Array.isArray(l)){for(const s in l)if(s!=="default"&&!(s in t)){const c=Object.getOwnPropertyDescriptor(l,s);c&&Object.defineProperty(t,s,c.get?c:{enumerable:!0,get:()=>l[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&l(f)}).observe(document,{childList:!0,subtree:!0});function o(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function l(s){if(s.ep)return;s.ep=!0;const c=o(s);fetch(s.href,c)}})();function yx(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Nf={exports:{}},ci={};var Py;function _E(){if(Py)return ci;Py=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function o(l,s,c){var f=null;if(c!==void 0&&(f=""+c),s.key!==void 0&&(f=""+s.key),"key"in s){c={};for(var d in s)d!=="key"&&(c[d]=s[d])}else c=s;return s=c.ref,{$$typeof:t,type:l,key:f,ref:s!==void 0?s:null,props:c}}return ci.Fragment=a,ci.jsx=o,ci.jsxs=o,ci}var By;function CE(){return By||(By=1,Nf.exports=_E()),Nf.exports}var h=CE(),Tf={exports:{}},Ne={},Hy;function EE(){if(Hy)return Ne;Hy=1;var t={NVM_INC:"/Users/abhishekdagar/.nvm/versions/node/v22.16.0/include/node",VSCODE_GIT_IPC_AUTH_TOKEN:"6136577f294d244c6ca60fe6eb3126546e7f203c4aed9044ecf7a7a25382925a",TERM_PROGRAM:"vscode",npm_package_devDependencies_typescript_eslint:"^8.46.4",NODE:"/Users/abhishekdagar/.nvm/versions/node/v22.16.0/bin/node",INIT_CWD:"/Users/abhishekdagar/Projects/onlydev/tracelet",ANDROID_HOME:"/Users/abhishekdagar/Library/Android/sdk",NVM_CD_FLAGS:"-q",npm_config_version_git_tag:"true",npm_package_devDependencies_typescript:"~5.9.3",npm_package_dependencies_lucide_react:"^0.563.0",TERM:"xterm-256color",SHELL:"/bin/zsh",npm_package_devDependencies_vite:"^7.2.4",npm_package_dependencies_tw_animate_css:"^1.4.0",HOMEBREW_REPOSITORY:"/opt/homebrew",TMPDIR:"/var/folders/ks/566386c14xz84j4wbz0hh0y80000gn/T/",npm_package_dependencies_shadcn:"^3.8.4",npm_config_global_prefix:"/Users/abhishekdagar/.nvm/versions/node/v22.16.0",npm_config_init_license:"MIT",npm_config_email:"dagarabhishek584@gmail.com",npm_package_scripts_lint:"eslint .",TERM_PROGRAM_VERSION:"2.4.37",npm_package_devDependencies__vitejs_plugin_react:"^5.1.1",npm_package_scripts_dev:"vite",ZDOTDIR:"/Users/abhishekdagar",CURSOR_TRACE_ID:"429487f7cd9243b7a1e0b788b48402cf",MallocNanoZone:"0",COLOR:"1",npm_config_noproxy:"",npm_package_private:"true",npm_config_registry:"https://registry.yarnpkg.com",npm_package_dependencies_tailwindcss:"^4.1.17",npm_config_local_prefix:"/Users/abhishekdagar/Projects/onlydev/tracelet",ZSH:"/Users/abhishekdagar/.oh-my-zsh",npm_package_devDependencies_eslint_plugin_react_refresh:"^0.4.24",npm_package_dependencies_react_dom:"^19.2.3",npm_package_repository_url:"https://github.com/tracelethq/tracelet.git",npm_package_readmeFilename:"README.md",npm_package_devDependencies_globals:"^16.5.0",NVM_DIR:"/Users/abhishekdagar/.nvm",USER:"abhishekdagar",npm_package_description:"React UI components for Tracelet API docs and logs",LS_COLORS:"di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43",npm_package_devDependencies__types_react:"^19.2.5",npm_package_devDependencies__eslint_js:"^9.39.1",npm_package_dependencies__tailwindcss_vite:"^4.1.17",npm_package_license:"MIT",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/Users/abhishekdagar/.nvm/versions/node/v22.16.0/etc/npmrc",npm_package_scripts_publish_ui:"yarn build && npm publish --workspace=@tracelet/ui",npm_package_repository_directory:"packages/sdk-ui",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.C0JcdZEWkL/Listeners",VSCODE_PROFILE_INITIALIZED:"1",__CF_USER_TEXT_ENCODING:"0x1F5:0x0:0x0",npm_package_devDependencies_eslint:"^9.39.1",npm_execpath:"/Users/abhishekdagar/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",PAGER:"less",LSCOLORS:"Gxfxcxdxbxegedabagacad",npm_package_scripts_publish_all:"yarn build && npm publish --workspace=@tracelet/core && npm publish --workspace=@tracelet/ui && npm publish --workspace=@tracelet/express",npm_package_devDependencies__types_react_dom:"^19.2.3",npm_package_dependencies_tailwind_merge:"^3.4.0",npm_config_access:"public",PATH:"/var/folders/ks/566386c14xz84j4wbz0hh0y80000gn/T/yarn--1771316337946-0.813024119004182:/Users/abhishekdagar/Projects/onlydev/tracelet/packages/sdk-ui/node_modules/.bin:/Users/abhishekdagar/.config/yarn/link/node_modules/.bin:/Users/abhishekdagar/Projects/onlydev/tracelet/node_modules/.bin:/Users/abhishekdagar/.nvm/versions/node/v22.16.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/abhishekdagar/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/abhishekdagar/.nvm/versions/node/v22.16.0/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/ks/566386c14xz84j4wbz0hh0y80000gn/T/yarn--1771316336777-0.4368562113758321:/Users/abhishekdagar/Projects/onlydev/tracelet/node_modules/.bin:/Users/abhishekdagar/.config/yarn/link/node_modules/.bin:/Users/abhishekdagar/Projects/onlydev/tracelet/node_modules/.bin:/Users/abhishekdagar/.nvm/versions/node/v22.16.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/abhishekdagar/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/abhishekdagar/.nvm/versions/node/v22.16.0/bin/node_modules/npm/bin/node-gyp-bin:/Users/abhishekdagar/Projects/onlydev/tracelet/node_modules/.bin:/Users/abhishekdagar/Projects/onlydev/node_modules/.bin:/Users/abhishekdagar/Projects/node_modules/.bin:/Users/abhishekdagar/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/abhishekdagar/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/abhishekdagar/.console-ninja/.bin:/Users/abhishekdagar/.nvm/versions/node/v22.16.0/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/pmk/env/global/bin:/Library/Apple/usr/bin:/usr/local/go/bin:/Users/abhishekdagar/.console-ninja/.bin:/Users/abhishekdagar/.nvm/versions/node/v22.16.0/bin:/Users/abhishekdagar/Library/Android/sdk/emulator:/Users/abhishekdagar/Library/Android/sdk/platform-tools:/Users/abhishekdagar/Library/Android/sdk/emulator:/Users/abhishekdagar/Library/Android/sdk/platform-tools",npm_config_argv:'{"remain":[],"cooked":["run","build"],"original":["build"]}',npm_package_dependencies_class_variance_authority:"^0.7.1",_:"/Users/abhishekdagar/Projects/onlydev/tracelet/packages/sdk-ui/node_modules/.bin/vite",npm_package_json:"/Users/abhishekdagar/Projects/onlydev/tracelet/package.json",LaunchInstanceID:"F4CDB847-F025-4AD6-86F0-95C8E81CBE66",npm_config_userconfig:"/Users/abhishekdagar/.npmrc",npm_config_init_module:"/Users/abhishekdagar/.npm-init.js",USER_ZDOTDIR:"/Users/abhishekdagar",__CFBundleIdentifier:"com.todesktop.230313mzl4w4u92",npm_command:"run-script",PWD:"/Users/abhishekdagar/Projects/onlydev/tracelet/packages/sdk-ui",npm_package_scripts_publish_express:"yarn build && npm publish --workspace=@tracelet/express",npm_package_devDependencies_eslint_plugin_react_hooks:"^7.0.1",npm_package_scripts_preview:"vite preview",npm_lifecycle_event:"build",EDITOR:"vi",npm_package_dependencies_date_fns:"^4.1.0",npm_package_name:"@tracelet/ui",LANG:"C.UTF-8",npm_package_repository_type:"git",npm_package_dependencies__fontsource_variable_roboto:"^5.2.9",npm_package_scripts_build:"tsc -b && vite build",npm_config_version_commit_hooks:"true",npm_package_dependencies_react_resizable_panels:"^4.6.2",npm_package_dependencies_cmdk:"^1.1.1",npm_config_npm_version:"10.9.2",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",XPC_FLAGS:"0x0",npm_config_username:"adagar29",npm_config_bin_links:"true",npm_config_wrap_output:"",npm_config_node_gyp:"/Users/abhishekdagar/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_package_dependencies_react_day_picker:"^9.13.2",npm_package_version:"0.0.2",XPC_SERVICE_NAME:"0",VSCODE_INJECTION:"1",SHLVL:"4",HOME:"/Users/abhishekdagar",npm_package_type:"module",VSCODE_GIT_ASKPASS_MAIN:"/Applications/Cursor.app/Contents/Resources/app/extensions/git/dist/askpass-main.js",npm_package_scripts_publish_core:"yarn build && npm publish --workspace=@tracelet/core",npm_config_save_prefix:"^",npm_config_strict_ssl:"true",HOMEBREW_PREFIX:"/opt/homebrew",npm_package_nohoist_0:"**/vite",npm_config_version_git_message:"v%s",npm_package_nohoist_1:"**/@vitejs/plugin-react",npm_package_dependencies__radix_ui_react_popover:"^1.1.15",npm_package_dependencies_radix_ui:"^1.4.3",npm_config_cache:"/Users/abhishekdagar/.npm",LESS:"-R",LOGNAME:"abhishekdagar",YARN_WRAP_OUTPUT:"false",npm_lifecycle_script:"tsc -b && vite build",npm_package_dependencies__base_ui_react:"^1.1.0",VSCODE_GIT_IPC_HANDLE:"/var/folders/ks/566386c14xz84j4wbz0hh0y80000gn/T/vscode-git-3a7fe0da12.sock",npm_package_dependencies_react:"^19.2.3",NVM_BIN:"/Users/abhishekdagar/.nvm/versions/node/v22.16.0/bin",npm_config_user_agent:"yarn/1.22.22 npm/? node/v22.16.0 darwin arm64",npm_config_version_git_sign:"",npm_config_ignore_scripts:"",VSCODE_GIT_ASKPASS_NODE:"/Applications/Cursor.app/Contents/Frameworks/Cursor Helper (Plugin).app/Contents/MacOS/Cursor Helper (Plugin)",GIT_ASKPASS:"/Applications/Cursor.app/Contents/Resources/app/extensions/git/dist/askpass.sh",INFOPATH:"/opt/homebrew/share/info:/opt/homebrew/share/info:",HOMEBREW_CELLAR:"/opt/homebrew/Cellar",npm_package_devDependencies__types_node:"^25.2.2",npm_package_dependencies_clsx:"^2.1.1",OSLogRateLimit:"64",npm_package_scripts_pack_sdks:"rm -rf packages/**/*.tgz && yarn build && npm pack --workspace=@tracelet/core && npm pack --workspace=@tracelet/express && npm pack --workspace=@tracelet/ui",npm_package_files_0:"dist",npm_package_workspaces_2:"examples/*",npm_config_init_version:"1.0.0",npm_config_ignore_optional:"",SECURITYSESSIONID:"186af",npm_package_workspaces_0:"apps/*",npm_node_execpath:"/Users/abhishekdagar/.nvm/versions/node/v22.16.0/bin/node",npm_config_prefix:"/Users/abhishekdagar/.nvm/versions/node/v22.16.0",COLORTERM:"truecolor",npm_package_workspaces_1:"packages/*",npm_config_version_tag_prefix:"v",NODE_ENV:"production",TRACELET_DOC_API_ROUTE:"http://localhost:3000",test:"test"};var a=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),_=Symbol.iterator;function M(N){return N===null||typeof N!="object"?null:(N=_&&N[_]||N["@@iterator"],typeof N=="function"?N:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,T={};function k(N,B,$){this.props=N,this.context=B,this.refs=T,this.updater=$||w}k.prototype.isReactComponent={},k.prototype.setState=function(N,B){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,B,"setState")},k.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function D(){}D.prototype=k.prototype;function j(N,B,$){this.props=N,this.context=B,this.refs=T,this.updater=$||w}var R=j.prototype=new D;R.constructor=j,E(R,k.prototype),R.isPureReactComponent=!0;var U=Array.isArray;function Y(){}var H={H:null,A:null,T:null,S:null},ie=Object.prototype.hasOwnProperty;function oe(N,B,$){var Q=$.ref;return{$$typeof:a,type:N,key:B,ref:Q!==void 0?Q:null,props:$}}function O(N,B){return oe(N.type,B,N.props)}function J(N){return typeof N=="object"&&N!==null&&N.$$typeof===a}function le(N){var B={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function($){return B[$]})}var ae=/\/+/g;function V(N,B){return typeof N=="object"&&N!==null&&N.key!=null?le(""+N.key):B.toString(36)}function P(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(Y,Y):(N.status="pending",N.then(function(B){N.status==="pending"&&(N.status="fulfilled",N.value=B)},function(B){N.status==="pending"&&(N.status="rejected",N.reason=B)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function I(N,B,$,Q,se){var X=typeof N;(X==="undefined"||X==="boolean")&&(N=null);var de=!1;if(N===null)de=!0;else switch(X){case"bigint":case"string":case"number":de=!0;break;case"object":switch(N.$$typeof){case a:case o:de=!0;break;case b:return de=N._init,I(de(N._payload),B,$,Q,se)}}if(de)return se=se(N),de=Q===""?"."+V(N,0):Q,U(se)?($="",de!=null&&($=de.replace(ae,"$&/")+"/"),I(se,B,$,"",function(De){return De})):se!=null&&(J(se)&&(se=O(se,$+(se.key==null||N&&N.key===se.key?"":(""+se.key).replace(ae,"$&/")+"/")+de)),B.push(se)),1;de=0;var xe=Q===""?".":Q+":";if(U(N))for(var pe=0;pe<N.length;pe++)Q=N[pe],X=xe+V(Q,pe),de+=I(Q,B,$,X,se);else if(pe=M(N),typeof pe=="function")for(N=pe.call(N),pe=0;!(Q=N.next()).done;)Q=Q.value,X=xe+V(Q,pe++),de+=I(Q,B,$,X,se);else if(X==="object"){if(typeof N.then=="function")return I(P(N),B,$,Q,se);throw B=String(N),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return de}function z(N,B,$){if(N==null)return N;var Q=[],se=0;return I(N,Q,"","",function(X){return B.call($,X,se++)}),Q}function F(N){if(N._status===-1){var B=N._result;B=B(),B.then(function($){(N._status===0||N._status===-1)&&(N._status=1,N._result=$)},function($){(N._status===0||N._status===-1)&&(N._status=2,N._result=$)}),N._status===-1&&(N._status=0,N._result=B)}if(N._status===1)return N._result.default;throw N._result}var ce=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(B))return}else if(typeof t=="object"&&typeof t.emit=="function"){t.emit("uncaughtException",N);return}console.error(N)},ue={map:z,forEach:function(N,B,$){z(N,function(){B.apply(this,arguments)},$)},count:function(N){var B=0;return z(N,function(){B++}),B},toArray:function(N){return z(N,function(B){return B})||[]},only:function(N){if(!J(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return Ne.Activity=S,Ne.Children=ue,Ne.Component=k,Ne.Fragment=l,Ne.Profiler=c,Ne.PureComponent=j,Ne.StrictMode=s,Ne.Suspense=g,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(N){return H.H.useMemoCache(N)}},Ne.cache=function(N){return function(){return N.apply(null,arguments)}},Ne.cacheSignal=function(){return null},Ne.cloneElement=function(N,B,$){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var Q=E({},N.props),se=N.key;if(B!=null)for(X in B.key!==void 0&&(se=""+B.key),B)!ie.call(B,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&B.ref===void 0||(Q[X]=B[X]);var X=arguments.length-2;if(X===1)Q.children=$;else if(1<X){for(var de=Array(X),xe=0;xe<X;xe++)de[xe]=arguments[xe+2];Q.children=de}return oe(N.type,se,Q)},Ne.createContext=function(N){return N={$$typeof:d,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:f,_context:N},N},Ne.createElement=function(N,B,$){var Q,se={},X=null;if(B!=null)for(Q in B.key!==void 0&&(X=""+B.key),B)ie.call(B,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(se[Q]=B[Q]);var de=arguments.length-2;if(de===1)se.children=$;else if(1<de){for(var xe=Array(de),pe=0;pe<de;pe++)xe[pe]=arguments[pe+2];se.children=xe}if(N&&N.defaultProps)for(Q in de=N.defaultProps,de)se[Q]===void 0&&(se[Q]=de[Q]);return oe(N,X,se)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(N){return{$$typeof:p,render:N}},Ne.isValidElement=J,Ne.lazy=function(N){return{$$typeof:b,_payload:{_status:-1,_result:N},_init:F}},Ne.memo=function(N,B){return{$$typeof:y,type:N,compare:B===void 0?null:B}},Ne.startTransition=function(N){var B=H.T,$={};H.T=$;try{var Q=N(),se=H.S;se!==null&&se($,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(Y,ce)}catch(X){ce(X)}finally{B!==null&&$.types!==null&&(B.types=$.types),H.T=B}},Ne.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},Ne.use=function(N){return H.H.use(N)},Ne.useActionState=function(N,B,$){return H.H.useActionState(N,B,$)},Ne.useCallback=function(N,B){return H.H.useCallback(N,B)},Ne.useContext=function(N){return H.H.useContext(N)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(N,B){return H.H.useDeferredValue(N,B)},Ne.useEffect=function(N,B){return H.H.useEffect(N,B)},Ne.useEffectEvent=function(N){return H.H.useEffectEvent(N)},Ne.useId=function(){return H.H.useId()},Ne.useImperativeHandle=function(N,B,$){return H.H.useImperativeHandle(N,B,$)},Ne.useInsertionEffect=function(N,B){return H.H.useInsertionEffect(N,B)},Ne.useLayoutEffect=function(N,B){return H.H.useLayoutEffect(N,B)},Ne.useMemo=function(N,B){return H.H.useMemo(N,B)},Ne.useOptimistic=function(N,B){return H.H.useOptimistic(N,B)},Ne.useReducer=function(N,B,$){return H.H.useReducer(N,B,$)},Ne.useRef=function(N){return H.H.useRef(N)},Ne.useState=function(N){return H.H.useState(N)},Ne.useSyncExternalStore=function(N,B,$){return H.H.useSyncExternalStore(N,B,$)},Ne.useTransition=function(){return H.H.useTransition()},Ne.version="19.2.4",Ne}var Yy;function Hm(){return Yy||(Yy=1,Tf.exports=EE()),Tf.exports}var v=Hm();const fe=yx(v),Ym=wE({__proto__:null,default:fe},[v]);var kf={exports:{}},ui={},Of={exports:{}},Df={};var Iy;function ME(){return Iy||(Iy=1,(function(t){function a(P,I){var z=P.length;P.push(I);e:for(;0<z;){var F=z-1>>>1,ce=P[F];if(0<s(ce,I))P[F]=I,P[z]=ce,z=F;else break e}}function o(P){return P.length===0?null:P[0]}function l(P){if(P.length===0)return null;var I=P[0],z=P.pop();if(z!==I){P[0]=z;e:for(var F=0,ce=P.length,ue=ce>>>1;F<ue;){var N=2*(F+1)-1,B=P[N],$=N+1,Q=P[$];if(0>s(B,z))$<ce&&0>s(Q,B)?(P[F]=Q,P[$]=z,F=$):(P[F]=B,P[N]=z,F=N);else if($<ce&&0>s(Q,z))P[F]=Q,P[$]=z,F=$;else break e}}return I}function s(P,I){var z=P.sortIndex-I.sortIndex;return z!==0?z:P.id-I.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var f=Date,d=f.now();t.unstable_now=function(){return f.now()-d}}var p=[],g=[],y=1,b=null,S=3,_=!1,M=!1,w=!1,E=!1,T=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function j(P){for(var I=o(g);I!==null;){if(I.callback===null)l(g);else if(I.startTime<=P)l(g),I.sortIndex=I.expirationTime,a(p,I);else break;I=o(g)}}function R(P){if(w=!1,j(P),!M)if(o(p)!==null)M=!0,U||(U=!0,J());else{var I=o(g);I!==null&&V(R,I.startTime-P)}}var U=!1,Y=-1,H=5,ie=-1;function oe(){return E?!0:!(t.unstable_now()-ie<H)}function O(){if(E=!1,U){var P=t.unstable_now();ie=P;var I=!0;try{e:{M=!1,w&&(w=!1,k(Y),Y=-1),_=!0;var z=S;try{t:{for(j(P),b=o(p);b!==null&&!(b.expirationTime>P&&oe());){var F=b.callback;if(typeof F=="function"){b.callback=null,S=b.priorityLevel;var ce=F(b.expirationTime<=P);if(P=t.unstable_now(),typeof ce=="function"){b.callback=ce,j(P),I=!0;break t}b===o(p)&&l(p),j(P)}else l(p);b=o(p)}if(b!==null)I=!0;else{var ue=o(g);ue!==null&&V(R,ue.startTime-P),I=!1}}break e}finally{b=null,S=z,_=!1}I=void 0}}finally{I?J():U=!1}}}var J;if(typeof D=="function")J=function(){D(O)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,ae=le.port2;le.port1.onmessage=O,J=function(){ae.postMessage(null)}}else J=function(){T(O,0)};function V(P,I){Y=T(function(){P(t.unstable_now())},I)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(P){P.callback=null},t.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<P?Math.floor(1e3/P):5},t.unstable_getCurrentPriorityLevel=function(){return S},t.unstable_next=function(P){switch(S){case 1:case 2:case 3:var I=3;break;default:I=S}var z=S;S=I;try{return P()}finally{S=z}},t.unstable_requestPaint=function(){E=!0},t.unstable_runWithPriority=function(P,I){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var z=S;S=P;try{return I()}finally{S=z}},t.unstable_scheduleCallback=function(P,I,z){var F=t.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?F+z:F):z=F,P){case 1:var ce=-1;break;case 2:ce=250;break;case 5:ce=1073741823;break;case 4:ce=1e4;break;default:ce=5e3}return ce=z+ce,P={id:y++,callback:I,priorityLevel:P,startTime:z,expirationTime:ce,sortIndex:-1},z>F?(P.sortIndex=z,a(g,P),o(p)===null&&P===o(g)&&(w?(k(Y),Y=-1):w=!0,V(R,z-F))):(P.sortIndex=ce,a(p,P),M||_||(M=!0,U||(U=!0,J()))),P},t.unstable_shouldYield=oe,t.unstable_wrapCallback=function(P){var I=S;return function(){var z=S;S=I;try{return P.apply(this,arguments)}finally{S=z}}}})(Df)),Df}var Gy;function NE(){return Gy||(Gy=1,Of.exports=ME()),Of.exports}var jf={exports:{}},Pt={};var Vy;function TE(){if(Vy)return Pt;Vy=1;var t=Hm();function a(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var l={d:{f:o,r:function(){throw Error(a(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(p,g,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:b==null?null:""+b,children:p,containerInfo:g,implementation:y}}var f=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Pt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Pt.createPortal=function(p,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(a(299));return c(p,g,null,y)},Pt.flushSync=function(p){var g=f.T,y=l.p;try{if(f.T=null,l.p=2,p)return p()}finally{f.T=g,l.p=y,l.d.f()}},Pt.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,l.d.C(p,g))},Pt.prefetchDNS=function(p){typeof p=="string"&&l.d.D(p)},Pt.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var y=g.as,b=d(y,g.crossOrigin),S=typeof g.integrity=="string"?g.integrity:void 0,_=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?l.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:_}):y==="script"&&l.d.X(p,{crossOrigin:b,integrity:S,fetchPriority:_,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Pt.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=d(g.as,g.crossOrigin);l.d.M(p,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&l.d.M(p)},Pt.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,b=d(y,g.crossOrigin);l.d.L(p,y,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Pt.preloadModule=function(p,g){if(typeof p=="string")if(g){var y=d(g.as,g.crossOrigin);l.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else l.d.m(p)},Pt.requestFormReset=function(p){l.d.r(p)},Pt.unstable_batchedUpdates=function(p,g){return p(g)},Pt.useFormState=function(p,g,y){return f.H.useFormState(p,g,y)},Pt.useFormStatus=function(){return f.H.useHostTransitionStatus()},Pt.version="19.2.4",Pt}var qy;function bx(){if(qy)return jf.exports;qy=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),jf.exports=TE(),jf.exports}var Wy;function kE(){if(Wy)return ui;Wy=1;var t={NVM_INC:"/Users/abhishekdagar/.nvm/versions/node/v22.16.0/include/node",VSCODE_GIT_IPC_AUTH_TOKEN:"6136577f294d244c6ca60fe6eb3126546e7f203c4aed9044ecf7a7a25382925a",TERM_PROGRAM:"vscode",npm_package_devDependencies_typescript_eslint:"^8.46.4",NODE:"/Users/abhishekdagar/.nvm/versions/node/v22.16.0/bin/node",INIT_CWD:"/Users/abhishekdagar/Projects/onlydev/tracelet",ANDROID_HOME:"/Users/abhishekdagar/Library/Android/sdk",NVM_CD_FLAGS:"-q",npm_config_version_git_tag:"true",npm_package_devDependencies_typescript:"~5.9.3",npm_package_dependencies_lucide_react:"^0.563.0",TERM:"xterm-256color",SHELL:"/bin/zsh",npm_package_devDependencies_vite:"^7.2.4",npm_package_dependencies_tw_animate_css:"^1.4.0",HOMEBREW_REPOSITORY:"/opt/homebrew",TMPDIR:"/var/folders/ks/566386c14xz84j4wbz0hh0y80000gn/T/",npm_package_dependencies_shadcn:"^3.8.4",npm_config_global_prefix:"/Users/abhishekdagar/.nvm/versions/node/v22.16.0",npm_config_init_license:"MIT",npm_config_email:"dagarabhishek584@gmail.com",npm_package_scripts_lint:"eslint .",TERM_PROGRAM_VERSION:"2.4.37",npm_package_devDependencies__vitejs_plugin_react:"^5.1.1",npm_package_scripts_dev:"vite",ZDOTDIR:"/Users/abhishekdagar",CURSOR_TRACE_ID:"429487f7cd9243b7a1e0b788b48402cf",MallocNanoZone:"0",COLOR:"1",npm_config_noproxy:"",npm_package_private:"true",npm_config_registry:"https://registry.yarnpkg.com",npm_package_dependencies_tailwindcss:"^4.1.17",npm_config_local_prefix:"/Users/abhishekdagar/Projects/onlydev/tracelet",ZSH:"/Users/abhishekdagar/.oh-my-zsh",npm_package_devDependencies_eslint_plugin_react_refresh:"^0.4.24",npm_package_dependencies_react_dom:"^19.2.3",npm_package_repository_url:"https://github.com/tracelethq/tracelet.git",npm_package_readmeFilename:"README.md",npm_package_devDependencies_globals:"^16.5.0",NVM_DIR:"/Users/abhishekdagar/.nvm",USER:"abhishekdagar",npm_package_description:"React UI components for Tracelet API docs and logs",LS_COLORS:"di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43",npm_package_devDependencies__types_react:"^19.2.5",npm_package_devDependencies__eslint_js:"^9.39.1",npm_package_dependencies__tailwindcss_vite:"^4.1.17",npm_package_license:"MIT",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/Users/abhishekdagar/.nvm/versions/node/v22.16.0/etc/npmrc",npm_package_scripts_publish_ui:"yarn build && npm publish --workspace=@tracelet/ui",npm_package_repository_directory:"packages/sdk-ui",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.C0JcdZEWkL/Listeners",VSCODE_PROFILE_INITIALIZED:"1",__CF_USER_TEXT_ENCODING:"0x1F5:0x0:0x0",npm_package_devDependencies_eslint:"^9.39.1",npm_execpath:"/Users/abhishekdagar/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",PAGER:"less",LSCOLORS:"Gxfxcxdxbxegedabagacad",npm_package_scripts_publish_all:"yarn build && npm publish --workspace=@tracelet/core && npm publish --workspace=@tracelet/ui && npm publish --workspace=@tracelet/express",npm_package_devDependencies__types_react_dom:"^19.2.3",npm_package_dependencies_tailwind_merge:"^3.4.0",npm_config_access:"public",PATH:"/var/folders/ks/566386c14xz84j4wbz0hh0y80000gn/T/yarn--1771316337946-0.813024119004182:/Users/abhishekdagar/Projects/onlydev/tracelet/packages/sdk-ui/node_modules/.bin:/Users/abhishekdagar/.config/yarn/link/node_modules/.bin:/Users/abhishekdagar/Projects/onlydev/tracelet/node_modules/.bin:/Users/abhishekdagar/.nvm/versions/node/v22.16.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/abhishekdagar/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/abhishekdagar/.nvm/versions/node/v22.16.0/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/ks/566386c14xz84j4wbz0hh0y80000gn/T/yarn--1771316336777-0.4368562113758321:/Users/abhishekdagar/Projects/onlydev/tracelet/node_modules/.bin:/Users/abhishekdagar/.config/yarn/link/node_modules/.bin:/Users/abhishekdagar/Projects/onlydev/tracelet/node_modules/.bin:/Users/abhishekdagar/.nvm/versions/node/v22.16.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/abhishekdagar/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/abhishekdagar/.nvm/versions/node/v22.16.0/bin/node_modules/npm/bin/node-gyp-bin:/Users/abhishekdagar/Projects/onlydev/tracelet/node_modules/.bin:/Users/abhishekdagar/Projects/onlydev/node_modules/.bin:/Users/abhishekdagar/Projects/node_modules/.bin:/Users/abhishekdagar/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/abhishekdagar/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/abhishekdagar/.console-ninja/.bin:/Users/abhishekdagar/.nvm/versions/node/v22.16.0/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/pmk/env/global/bin:/Library/Apple/usr/bin:/usr/local/go/bin:/Users/abhishekdagar/.console-ninja/.bin:/Users/abhishekdagar/.nvm/versions/node/v22.16.0/bin:/Users/abhishekdagar/Library/Android/sdk/emulator:/Users/abhishekdagar/Library/Android/sdk/platform-tools:/Users/abhishekdagar/Library/Android/sdk/emulator:/Users/abhishekdagar/Library/Android/sdk/platform-tools",npm_config_argv:'{"remain":[],"cooked":["run","build"],"original":["build"]}',npm_package_dependencies_class_variance_authority:"^0.7.1",_:"/Users/abhishekdagar/Projects/onlydev/tracelet/packages/sdk-ui/node_modules/.bin/vite",npm_package_json:"/Users/abhishekdagar/Projects/onlydev/tracelet/package.json",LaunchInstanceID:"F4CDB847-F025-4AD6-86F0-95C8E81CBE66",npm_config_userconfig:"/Users/abhishekdagar/.npmrc",npm_config_init_module:"/Users/abhishekdagar/.npm-init.js",USER_ZDOTDIR:"/Users/abhishekdagar",__CFBundleIdentifier:"com.todesktop.230313mzl4w4u92",npm_command:"run-script",PWD:"/Users/abhishekdagar/Projects/onlydev/tracelet/packages/sdk-ui",npm_package_scripts_publish_express:"yarn build && npm publish --workspace=@tracelet/express",npm_package_devDependencies_eslint_plugin_react_hooks:"^7.0.1",npm_package_scripts_preview:"vite preview",npm_lifecycle_event:"build",EDITOR:"vi",npm_package_dependencies_date_fns:"^4.1.0",npm_package_name:"@tracelet/ui",LANG:"C.UTF-8",npm_package_repository_type:"git",npm_package_dependencies__fontsource_variable_roboto:"^5.2.9",npm_package_scripts_build:"tsc -b && vite build",npm_config_version_commit_hooks:"true",npm_package_dependencies_react_resizable_panels:"^4.6.2",npm_package_dependencies_cmdk:"^1.1.1",npm_config_npm_version:"10.9.2",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",XPC_FLAGS:"0x0",npm_config_username:"adagar29",npm_config_bin_links:"true",npm_config_wrap_output:"",npm_config_node_gyp:"/Users/abhishekdagar/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_package_dependencies_react_day_picker:"^9.13.2",npm_package_version:"0.0.2",XPC_SERVICE_NAME:"0",VSCODE_INJECTION:"1",SHLVL:"4",HOME:"/Users/abhishekdagar",npm_package_type:"module",VSCODE_GIT_ASKPASS_MAIN:"/Applications/Cursor.app/Contents/Resources/app/extensions/git/dist/askpass-main.js",npm_package_scripts_publish_core:"yarn build && npm publish --workspace=@tracelet/core",npm_config_save_prefix:"^",npm_config_strict_ssl:"true",HOMEBREW_PREFIX:"/opt/homebrew",npm_package_nohoist_0:"**/vite",npm_config_version_git_message:"v%s",npm_package_nohoist_1:"**/@vitejs/plugin-react",npm_package_dependencies__radix_ui_react_popover:"^1.1.15",npm_package_dependencies_radix_ui:"^1.4.3",npm_config_cache:"/Users/abhishekdagar/.npm",LESS:"-R",LOGNAME:"abhishekdagar",YARN_WRAP_OUTPUT:"false",npm_lifecycle_script:"tsc -b && vite build",npm_package_dependencies__base_ui_react:"^1.1.0",VSCODE_GIT_IPC_HANDLE:"/var/folders/ks/566386c14xz84j4wbz0hh0y80000gn/T/vscode-git-3a7fe0da12.sock",npm_package_dependencies_react:"^19.2.3",NVM_BIN:"/Users/abhishekdagar/.nvm/versions/node/v22.16.0/bin",npm_config_user_agent:"yarn/1.22.22 npm/? node/v22.16.0 darwin arm64",npm_config_version_git_sign:"",npm_config_ignore_scripts:"",VSCODE_GIT_ASKPASS_NODE:"/Applications/Cursor.app/Contents/Frameworks/Cursor Helper (Plugin).app/Contents/MacOS/Cursor Helper (Plugin)",GIT_ASKPASS:"/Applications/Cursor.app/Contents/Resources/app/extensions/git/dist/askpass.sh",INFOPATH:"/opt/homebrew/share/info:/opt/homebrew/share/info:",HOMEBREW_CELLAR:"/opt/homebrew/Cellar",npm_package_devDependencies__types_node:"^25.2.2",npm_package_dependencies_clsx:"^2.1.1",OSLogRateLimit:"64",npm_package_scripts_pack_sdks:"rm -rf packages/**/*.tgz && yarn build && npm pack --workspace=@tracelet/core && npm pack --workspace=@tracelet/express && npm pack --workspace=@tracelet/ui",npm_package_files_0:"dist",npm_package_workspaces_2:"examples/*",npm_config_init_version:"1.0.0",npm_config_ignore_optional:"",SECURITYSESSIONID:"186af",npm_package_workspaces_0:"apps/*",npm_node_execpath:"/Users/abhishekdagar/.nvm/versions/node/v22.16.0/bin/node",npm_config_prefix:"/Users/abhishekdagar/.nvm/versions/node/v22.16.0",COLORTERM:"truecolor",npm_package_workspaces_1:"packages/*",npm_config_version_tag_prefix:"v",NODE_ENV:"production",TRACELET_DOC_API_ROUTE:"http://localhost:3000",test:"test"};var a=NE(),o=Hm(),l=bx();function s(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var n=e,r=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(r=n.return),e=n.return;while(e)}return n.tag===3?r:null}function d(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function p(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function g(e){if(f(e)!==e)throw Error(s(188))}function y(e){var n=e.alternate;if(!n){if(n=f(e),n===null)throw Error(s(188));return n!==e?null:e}for(var r=e,i=n;;){var u=r.return;if(u===null)break;var m=u.alternate;if(m===null){if(i=u.return,i!==null){r=i;continue}break}if(u.child===m.child){for(m=u.child;m;){if(m===r)return g(u),e;if(m===i)return g(u),n;m=m.sibling}throw Error(s(188))}if(r.return!==i.return)r=u,i=m;else{for(var x=!1,C=u.child;C;){if(C===r){x=!0,r=u,i=m;break}if(C===i){x=!0,i=u,r=m;break}C=C.sibling}if(!x){for(C=m.child;C;){if(C===r){x=!0,r=m,i=u;break}if(C===i){x=!0,i=m,r=u;break}C=C.sibling}if(!x)throw Error(s(189))}}if(r.alternate!==i)throw Error(s(190))}if(r.tag!==3)throw Error(s(188));return r.stateNode.current===r?e:n}function b(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=b(e),n!==null)return n;e=e.sibling}return null}var S=Object.assign,_=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),j=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),ie=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),O=Symbol.for("react.memo_cache_sentinel"),J=Symbol.iterator;function le(e){return e===null||typeof e!="object"?null:(e=J&&e[J]||e["@@iterator"],typeof e=="function"?e:null)}var ae=Symbol.for("react.client.reference");function V(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ae?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case k:return"Profiler";case T:return"StrictMode";case U:return"Suspense";case Y:return"SuspenseList";case oe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case j:return e.displayName||"Context";case D:return(e._context.displayName||"Context")+".Consumer";case R:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case H:return n=e.displayName||null,n!==null?n:V(e.type)||"Memo";case ie:n=e._payload,e=e._init;try{return V(e(n))}catch{}}return null}var P=Array.isArray,I=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},ce=[],ue=-1;function N(e){return{current:e}}function B(e){0>ue||(e.current=ce[ue],ce[ue]=null,ue--)}function $(e,n){ue++,ce[ue]=e.current,e.current=n}var Q=N(null),se=N(null),X=N(null),de=N(null);function xe(e,n){switch($(X,n),$(se,e),$(Q,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?iy(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=iy(n),e=sy(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(Q),$(Q,e)}function pe(){B(Q),B(se),B(X)}function De(e){e.memoizedState!==null&&$(de,e);var n=Q.current,r=sy(n,e.type);n!==r&&($(se,e),$(Q,r))}function Ue(e){se.current===e&&(B(Q),B(se)),de.current===e&&(B(de),oi._currentValue=F)}var xt,Wt;function zt(e){if(xt===void 0)try{throw Error()}catch(r){var n=r.stack.trim().match(/\n( *(at )?)/);xt=n&&n[1]||"",Wt=-1<r.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+xt+e+Wt}var kn=!1;function On(e,n){if(!e||kn)return"";kn=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(n){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(Z){var K=Z}Reflect.construct(e,[],re)}else{try{re.call()}catch(Z){K=Z}e.call(re.prototype)}}else{try{throw Error()}catch(Z){K=Z}(re=e())&&typeof re.catch=="function"&&re.catch(function(){})}}catch(Z){if(Z&&K&&typeof Z.stack=="string")return[Z.stack,K.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=i.DetermineComponentFrameRoot(),x=m[0],C=m[1];if(x&&C){var A=x.split(`
|
|
4
|
+
`),W=C.split(`
|
|
5
|
+
`);for(u=i=0;i<A.length&&!A[i].includes("DetermineComponentFrameRoot");)i++;for(;u<W.length&&!W[u].includes("DetermineComponentFrameRoot");)u++;if(i===A.length||u===W.length)for(i=A.length-1,u=W.length-1;1<=i&&0<=u&&A[i]!==W[u];)u--;for(;1<=i&&0<=u;i--,u--)if(A[i]!==W[u]){if(i!==1||u!==1)do if(i--,u--,0>u||A[i]!==W[u]){var ee=`
|
|
6
|
+
`+A[i].replace(" at new "," at ");return e.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",e.displayName)),ee}while(1<=i&&0<=u);break}}}finally{kn=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?zt(r):""}function gl(e,n){switch(e.tag){case 26:case 27:case 5:return zt(e.type);case 16:return zt("Lazy");case 13:return e.child!==n&&n!==null?zt("Suspense Fallback"):zt("Suspense");case 19:return zt("SuspenseList");case 0:case 15:return On(e.type,!1);case 11:return On(e.type.render,!1);case 1:return On(e.type,!0);case 31:return zt("Activity");default:return""}}function eo(e){try{var n="",r=null;do n+=gl(e,r),r=e,e=e.return;while(e);return n}catch(i){return`
|
|
7
|
+
Error generating stack: `+i.message+`
|
|
8
|
+
`+i.stack}}var yr=Object.prototype.hasOwnProperty,Me=a.unstable_scheduleCallback,$e=a.unstable_cancelCallback,nt=a.unstable_shouldYield,ot=a.unstable_requestPaint,he=a.unstable_now,Ie=a.unstable_getCurrentPriorityLevel,Nt=a.unstable_ImmediatePriority,Ut=a.unstable_UserBlockingPriority,mn=a.unstable_NormalPriority,Yn=a.unstable_LowPriority,to=a.unstable_IdlePriority,vl=a.log,yl=a.unstable_setDisableYieldValue,en=null,Tt=null;function In(e){if(typeof vl=="function"&&yl(e),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(en,e)}catch{}}var Lt=Math.clz32?Math.clz32:Ge,mu=Math.log,Te=Math.LN2;function Ge(e){return e>>>=0,e===0?32:31-(mu(e)/Te|0)|0}var _e=256,Le=262144,Ct=4194304;function ke(e){var n=e&42;if(n!==0)return n;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 no(e,n,r){var i=e.pendingLanes;if(i===0)return 0;var u=0,m=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var C=i&134217727;return C!==0?(i=C&~m,i!==0?u=ke(i):(x&=C,x!==0?u=ke(x):r||(r=C&~e,r!==0&&(u=ke(r))))):(C=i&~m,C!==0?u=ke(C):x!==0?u=ke(x):r||(r=i&~e,r!==0&&(u=ke(r)))),u===0?0:n!==0&&n!==u&&(n&m)===0&&(m=u&-u,r=n&-n,m>=r||m===32&&(r&4194048)!==0)?n:u}function br(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function pu(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 ao(){var e=Ct;return Ct<<=1,(Ct&62914560)===0&&(Ct=4194304),e}function xr(e){for(var n=[],r=0;31>r;r++)n.push(e);return n}function bl(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function u_(e,n,r,i,u,m){var x=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var C=e.entanglements,A=e.expirationTimes,W=e.hiddenUpdates;for(r=x&~r;0<r;){var ee=31-Lt(r),re=1<<ee;C[ee]=0,A[ee]=-1;var K=W[ee];if(K!==null)for(W[ee]=null,ee=0;ee<K.length;ee++){var Z=K[ee];Z!==null&&(Z.lane&=-536870913)}r&=~re}i!==0&&Gp(e,i,0),m!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=m&~(x&~n))}function Gp(e,n,r){e.pendingLanes|=n,e.suspendedLanes&=~n;var i=31-Lt(n);e.entangledLanes|=n,e.entanglements[i]=e.entanglements[i]|1073741824|r&261930}function Vp(e,n){var r=e.entangledLanes|=n;for(e=e.entanglements;r;){var i=31-Lt(r),u=1<<i;u&n|e[i]&n&&(e[i]|=n),r&=~u}}function qp(e,n){var r=n&-n;return r=(r&42)!==0?1:hu(r),(r&(e.suspendedLanes|n))!==0?0:r}function hu(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 gu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Wp(){var e=z.p;return e!==0?e:(e=window.event,e===void 0?32:Dy(e.type))}function Fp(e,n){var r=z.p;try{return z.p=e,n()}finally{z.p=r}}var Ra=Math.random().toString(36).slice(2),kt="__reactFiber$"+Ra,Ft="__reactProps$"+Ra,ro="__reactContainer$"+Ra,vu="__reactEvents$"+Ra,d_="__reactListeners$"+Ra,f_="__reactHandles$"+Ra,$p="__reactResources$"+Ra,xl="__reactMarker$"+Ra;function yu(e){delete e[kt],delete e[Ft],delete e[vu],delete e[d_],delete e[f_]}function oo(e){var n=e[kt];if(n)return n;for(var r=e.parentNode;r;){if(n=r[ro]||r[kt]){if(r=n.alternate,n.child!==null||r!==null&&r.child!==null)for(e=hy(e);e!==null;){if(r=e[kt])return r;e=hy(e)}return n}e=r,r=e.parentNode}return null}function lo(e){if(e=e[kt]||e[ro]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Sl(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(s(33))}function io(e){var n=e[$p];return n||(n=e[$p]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function Et(e){e[xl]=!0}var Kp=new Set,Xp={};function Sr(e,n){so(e,n),so(e+"Capture",n)}function so(e,n){for(Xp[e]=n,e=0;e<n.length;e++)Kp.add(n[e])}var m_=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]*$"),Zp={},Qp={};function p_(e){return yr.call(Qp,e)?!0:yr.call(Zp,e)?!1:m_.test(e)?Qp[e]=!0:(Zp[e]=!0,!1)}function $i(e,n,r){if(p_(n))if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var i=n.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+r)}}function Ki(e,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.setAttribute(n,""+r)}}function ia(e,n,r,i){if(i===null)e.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(n,r,""+i)}}function pn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jp(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function h_(e,n,r){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var u=i.get,m=i.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return u.call(this)},set:function(x){r=""+x,m.call(this,x)}}),Object.defineProperty(e,n,{enumerable:i.enumerable}),{getValue:function(){return r},setValue:function(x){r=""+x},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function bu(e){if(!e._valueTracker){var n=Jp(e)?"checked":"value";e._valueTracker=h_(e,n,""+e[n])}}function eh(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var r=n.getValue(),i="";return e&&(i=Jp(e)?e.checked?"true":"false":e.value),e=i,e!==r?(n.setValue(e),!0):!1}function Xi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var g_=/[\n"\\]/g;function hn(e){return e.replace(g_,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function xu(e,n,r,i,u,m,x,C){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),n!=null?x==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+pn(n)):e.value!==""+pn(n)&&(e.value=""+pn(n)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),n!=null?Su(e,x,pn(n)):r!=null?Su(e,x,pn(r)):i!=null&&e.removeAttribute("value"),u==null&&m!=null&&(e.defaultChecked=!!m),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?e.name=""+pn(C):e.removeAttribute("name")}function th(e,n,r,i,u,m,x,C){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.type=m),n!=null||r!=null){if(!(m!=="submit"&&m!=="reset"||n!=null)){bu(e);return}r=r!=null?""+pn(r):"",n=n!=null?""+pn(n):r,C||n===e.value||(e.value=n),e.defaultValue=n}i=i??u,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=C?e.checked:!!i,e.defaultChecked=!!i,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),bu(e)}function Su(e,n,r){n==="number"&&Xi(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function co(e,n,r,i){if(e=e.options,n){n={};for(var u=0;u<r.length;u++)n["$"+r[u]]=!0;for(r=0;r<e.length;r++)u=n.hasOwnProperty("$"+e[r].value),e[r].selected!==u&&(e[r].selected=u),u&&i&&(e[r].defaultSelected=!0)}else{for(r=""+pn(r),n=null,u=0;u<e.length;u++){if(e[u].value===r){e[u].selected=!0,i&&(e[u].defaultSelected=!0);return}n!==null||e[u].disabled||(n=e[u])}n!==null&&(n.selected=!0)}}function nh(e,n,r){if(n!=null&&(n=""+pn(n),n!==e.value&&(e.value=n),r==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=r!=null?""+pn(r):""}function ah(e,n,r,i){if(n==null){if(i!=null){if(r!=null)throw Error(s(92));if(P(i)){if(1<i.length)throw Error(s(93));i=i[0]}r=i}r==null&&(r=""),n=r}r=pn(n),e.defaultValue=r,i=e.textContent,i===r&&i!==""&&i!==null&&(e.value=i),bu(e)}function uo(e,n){if(n){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=n;return}}e.textContent=n}var v_=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 rh(e,n,r){var i=n.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?i?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":i?e.setProperty(n,r):typeof r!="number"||r===0||v_.has(n)?n==="float"?e.cssFloat=r:e[n]=(""+r).trim():e[n]=r+"px"}function oh(e,n,r){if(n!=null&&typeof n!="object")throw Error(s(62));if(e=e.style,r!=null){for(var i in r)!r.hasOwnProperty(i)||n!=null&&n.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var u in n)i=n[u],n.hasOwnProperty(u)&&r[u]!==i&&rh(e,u,i)}else for(var m in n)n.hasOwnProperty(m)&&rh(e,m,n[m])}function wu(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 y_=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"]]),b_=/^[\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 Zi(e){return b_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function sa(){}var _u=null;function Cu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fo=null,mo=null;function lh(e){var n=lo(e);if(n&&(e=n.stateNode)){var r=e[Ft]||null;e:switch(e=n.stateNode,n.type){case"input":if(xu(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),n=r.name,r.type==="radio"&&n!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+hn(""+n)+'"][type="radio"]'),n=0;n<r.length;n++){var i=r[n];if(i!==e&&i.form===e.form){var u=i[Ft]||null;if(!u)throw Error(s(90));xu(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(n=0;n<r.length;n++)i=r[n],i.form===e.form&&eh(i)}break e;case"textarea":nh(e,r.value,r.defaultValue);break e;case"select":n=r.value,n!=null&&co(e,!!r.multiple,n,!1)}}}var Eu=!1;function ih(e,n,r){if(Eu)return e(n,r);Eu=!0;try{var i=e(n);return i}finally{if(Eu=!1,(fo!==null||mo!==null)&&(Ps(),fo&&(n=fo,e=mo,mo=fo=null,lh(n),e)))for(n=0;n<e.length;n++)lh(e[n])}}function wl(e,n){var r=e.stateNode;if(r===null)return null;var i=r[Ft]||null;if(i===null)return null;r=i[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(s(231,n,typeof r));return r}var ca=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mu=!1;if(ca)try{var _l={};Object.defineProperty(_l,"passive",{get:function(){Mu=!0}}),window.addEventListener("test",_l,_l),window.removeEventListener("test",_l,_l)}catch{Mu=!1}var Aa=null,Nu=null,Qi=null;function sh(){if(Qi)return Qi;var e,n=Nu,r=n.length,i,u="value"in Aa?Aa.value:Aa.textContent,m=u.length;for(e=0;e<r&&n[e]===u[e];e++);var x=r-e;for(i=1;i<=x&&n[r-i]===u[m-i];i++);return Qi=u.slice(e,1<i?1-i:void 0)}function Ji(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function es(){return!0}function ch(){return!1}function $t(e){function n(r,i,u,m,x){this._reactName=r,this._targetInst=u,this.type=i,this.nativeEvent=m,this.target=x,this.currentTarget=null;for(var C in e)e.hasOwnProperty(C)&&(r=e[C],this[C]=r?r(m):m[C]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?es:ch,this.isPropagationStopped=ch,this}return S(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=es)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=es)},persist:function(){},isPersistent:es}),n}var wr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ts=$t(wr),Cl=S({},wr,{view:0,detail:0}),x_=$t(Cl),Tu,ku,El,ns=S({},Cl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Du,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!==El&&(El&&e.type==="mousemove"?(Tu=e.screenX-El.screenX,ku=e.screenY-El.screenY):ku=Tu=0,El=e),Tu)},movementY:function(e){return"movementY"in e?e.movementY:ku}}),uh=$t(ns),S_=S({},ns,{dataTransfer:0}),w_=$t(S_),__=S({},Cl,{relatedTarget:0}),Ou=$t(__),C_=S({},wr,{animationName:0,elapsedTime:0,pseudoElement:0}),E_=$t(C_),M_=S({},wr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),N_=$t(M_),T_=S({},wr,{data:0}),dh=$t(T_),k_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},O_={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"},D_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function j_(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=D_[e])?!!n[e]:!1}function Du(){return j_}var R_=S({},Cl,{key:function(e){if(e.key){var n=k_[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Ji(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?O_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Du,charCode:function(e){return e.type==="keypress"?Ji(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ji(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),A_=$t(R_),z_=S({},ns,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fh=$t(z_),U_=S({},Cl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Du}),L_=$t(U_),P_=S({},wr,{propertyName:0,elapsedTime:0,pseudoElement:0}),B_=$t(P_),H_=S({},ns,{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}),Y_=$t(H_),I_=S({},wr,{newState:0,oldState:0}),G_=$t(I_),V_=[9,13,27,32],ju=ca&&"CompositionEvent"in window,Ml=null;ca&&"documentMode"in document&&(Ml=document.documentMode);var q_=ca&&"TextEvent"in window&&!Ml,mh=ca&&(!ju||Ml&&8<Ml&&11>=Ml),ph=" ",hh=!1;function gh(e,n){switch(e){case"keyup":return V_.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var po=!1;function W_(e,n){switch(e){case"compositionend":return vh(n);case"keypress":return n.which!==32?null:(hh=!0,ph);case"textInput":return e=n.data,e===ph&&hh?null:e;default:return null}}function F_(e,n){if(po)return e==="compositionend"||!ju&&gh(e,n)?(e=sh(),Qi=Nu=Aa=null,po=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return mh&&n.locale!=="ko"?null:n.data;default:return null}}var $_={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 yh(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!$_[e.type]:n==="textarea"}function bh(e,n,r,i){fo?mo?mo.push(i):mo=[i]:fo=i,n=qs(n,"onChange"),0<n.length&&(r=new ts("onChange","change",null,r,i),e.push({event:r,listeners:n}))}var Nl=null,Tl=null;function K_(e){ty(e,0)}function as(e){var n=Sl(e);if(eh(n))return e}function xh(e,n){if(e==="change")return n}var Sh=!1;if(ca){var Ru;if(ca){var Au="oninput"in document;if(!Au){var wh=document.createElement("div");wh.setAttribute("oninput","return;"),Au=typeof wh.oninput=="function"}Ru=Au}else Ru=!1;Sh=Ru&&(!document.documentMode||9<document.documentMode)}function _h(){Nl&&(Nl.detachEvent("onpropertychange",Ch),Tl=Nl=null)}function Ch(e){if(e.propertyName==="value"&&as(Tl)){var n=[];bh(n,Tl,e,Cu(e)),ih(K_,n)}}function X_(e,n,r){e==="focusin"?(_h(),Nl=n,Tl=r,Nl.attachEvent("onpropertychange",Ch)):e==="focusout"&&_h()}function Z_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return as(Tl)}function Q_(e,n){if(e==="click")return as(n)}function J_(e,n){if(e==="input"||e==="change")return as(n)}function eC(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var tn=typeof Object.is=="function"?Object.is:eC;function kl(e,n){if(tn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var r=Object.keys(e),i=Object.keys(n);if(r.length!==i.length)return!1;for(i=0;i<r.length;i++){var u=r[i];if(!yr.call(n,u)||!tn(e[u],n[u]))return!1}return!0}function Eh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mh(e,n){var r=Eh(e);e=0;for(var i;r;){if(r.nodeType===3){if(i=e+r.textContent.length,e<=n&&i>=n)return{node:r,offset:n-e};e=i}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Eh(r)}}function Nh(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Nh(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Th(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Xi(e.document);n instanceof e.HTMLIFrameElement;){try{var r=typeof n.contentWindow.location.href=="string"}catch{r=!1}if(r)e=n.contentWindow;else break;n=Xi(e.document)}return n}function zu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var tC=ca&&"documentMode"in document&&11>=document.documentMode,ho=null,Uu=null,Ol=null,Lu=!1;function kh(e,n,r){var i=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Lu||ho==null||ho!==Xi(i)||(i=ho,"selectionStart"in i&&zu(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Ol&&kl(Ol,i)||(Ol=i,i=qs(Uu,"onSelect"),0<i.length&&(n=new ts("onSelect","select",null,n,r),e.push({event:n,listeners:i}),n.target=ho)))}function _r(e,n){var r={};return r[e.toLowerCase()]=n.toLowerCase(),r["Webkit"+e]="webkit"+n,r["Moz"+e]="moz"+n,r}var go={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionrun:_r("Transition","TransitionRun"),transitionstart:_r("Transition","TransitionStart"),transitioncancel:_r("Transition","TransitionCancel"),transitionend:_r("Transition","TransitionEnd")},Pu={},Oh={};ca&&(Oh=document.createElement("div").style,"AnimationEvent"in window||(delete go.animationend.animation,delete go.animationiteration.animation,delete go.animationstart.animation),"TransitionEvent"in window||delete go.transitionend.transition);function Cr(e){if(Pu[e])return Pu[e];if(!go[e])return e;var n=go[e],r;for(r in n)if(n.hasOwnProperty(r)&&r in Oh)return Pu[e]=n[r];return e}var Dh=Cr("animationend"),jh=Cr("animationiteration"),Rh=Cr("animationstart"),nC=Cr("transitionrun"),aC=Cr("transitionstart"),rC=Cr("transitioncancel"),Ah=Cr("transitionend"),zh=new Map,Bu="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(" ");Bu.push("scrollEnd");function Dn(e,n){zh.set(e,n),Sr(n,[e])}var rs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof t=="object"&&typeof t.emit=="function"){t.emit("uncaughtException",e);return}console.error(e)},gn=[],vo=0,Hu=0;function os(){for(var e=vo,n=Hu=vo=0;n<e;){var r=gn[n];gn[n++]=null;var i=gn[n];gn[n++]=null;var u=gn[n];gn[n++]=null;var m=gn[n];if(gn[n++]=null,i!==null&&u!==null){var x=i.pending;x===null?u.next=u:(u.next=x.next,x.next=u),i.pending=u}m!==0&&Uh(r,u,m)}}function ls(e,n,r,i){gn[vo++]=e,gn[vo++]=n,gn[vo++]=r,gn[vo++]=i,Hu|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Yu(e,n,r,i){return ls(e,n,r,i),is(e)}function Er(e,n){return ls(e,null,null,n),is(e)}function Uh(e,n,r){e.lanes|=r;var i=e.alternate;i!==null&&(i.lanes|=r);for(var u=!1,m=e.return;m!==null;)m.childLanes|=r,i=m.alternate,i!==null&&(i.childLanes|=r),m.tag===22&&(e=m.stateNode,e===null||e._visibility&1||(u=!0)),e=m,m=m.return;return e.tag===3?(m=e.stateNode,u&&n!==null&&(u=31-Lt(r),e=m.hiddenUpdates,i=e[u],i===null?e[u]=[n]:i.push(n),n.lane=r|536870912),m):null}function is(e){if(50<Ql)throw Ql=0,Xd=null,Error(s(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var yo={};function oC(e,n,r,i){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(e,n,r,i){return new oC(e,n,r,i)}function Iu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ua(e,n){var r=e.alternate;return r===null?(r=nn(e.tag,n,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=n,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,n=e.dependencies,r.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function Lh(e,n){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,n=r.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function ss(e,n,r,i,u,m){var x=0;if(i=e,typeof e=="function")Iu(e)&&(x=1);else if(typeof e=="string")x=uE(e,r,Q.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case oe:return e=nn(31,r,n,u),e.elementType=oe,e.lanes=m,e;case E:return Mr(r.children,u,m,n);case T:x=8,u|=24;break;case k:return e=nn(12,r,n,u|2),e.elementType=k,e.lanes=m,e;case U:return e=nn(13,r,n,u),e.elementType=U,e.lanes=m,e;case Y:return e=nn(19,r,n,u),e.elementType=Y,e.lanes=m,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case j:x=10;break e;case D:x=9;break e;case R:x=11;break e;case H:x=14;break e;case ie:x=16,i=null;break e}x=29,r=Error(s(130,e===null?"null":typeof e,"")),i=null}return n=nn(x,r,n,u),n.elementType=e,n.type=i,n.lanes=m,n}function Mr(e,n,r,i){return e=nn(7,e,i,n),e.lanes=r,e}function Gu(e,n,r){return e=nn(6,e,null,n),e.lanes=r,e}function Ph(e){var n=nn(18,null,null,0);return n.stateNode=e,n}function Vu(e,n,r){return n=nn(4,e.children!==null?e.children:[],e.key,n),n.lanes=r,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var Bh=new WeakMap;function vn(e,n){if(typeof e=="object"&&e!==null){var r=Bh.get(e);return r!==void 0?r:(n={value:e,source:n,stack:eo(n)},Bh.set(e,n),n)}return{value:e,source:n,stack:eo(n)}}var bo=[],xo=0,cs=null,Dl=0,yn=[],bn=0,za=null,Gn=1,Vn="";function da(e,n){bo[xo++]=Dl,bo[xo++]=cs,cs=e,Dl=n}function Hh(e,n,r){yn[bn++]=Gn,yn[bn++]=Vn,yn[bn++]=za,za=e;var i=Gn;e=Vn;var u=32-Lt(i)-1;i&=~(1<<u),r+=1;var m=32-Lt(n)+u;if(30<m){var x=u-u%5;m=(i&(1<<x)-1).toString(32),i>>=x,u-=x,Gn=1<<32-Lt(n)+u|r<<u|i,Vn=m+e}else Gn=1<<m|r<<u|i,Vn=e}function qu(e){e.return!==null&&(da(e,1),Hh(e,1,0))}function Wu(e){for(;e===cs;)cs=bo[--xo],bo[xo]=null,Dl=bo[--xo],bo[xo]=null;for(;e===za;)za=yn[--bn],yn[bn]=null,Vn=yn[--bn],yn[bn]=null,Gn=yn[--bn],yn[bn]=null}function Yh(e,n){yn[bn++]=Gn,yn[bn++]=Vn,yn[bn++]=za,Gn=n.id,Vn=n.overflow,za=e}var Ot=null,lt=null,He=!1,Ua=null,xn=!1,Fu=Error(s(519));function La(e){var n=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw jl(vn(n,e)),Fu}function Ih(e){var n=e.stateNode,r=e.type,i=e.memoizedProps;switch(n[kt]=e,n[Ft]=i,r){case"dialog":ze("cancel",n),ze("close",n);break;case"iframe":case"object":case"embed":ze("load",n);break;case"video":case"audio":for(r=0;r<ei.length;r++)ze(ei[r],n);break;case"source":ze("error",n);break;case"img":case"image":case"link":ze("error",n),ze("load",n);break;case"details":ze("toggle",n);break;case"input":ze("invalid",n),th(n,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":ze("invalid",n);break;case"textarea":ze("invalid",n),ah(n,i.value,i.defaultValue,i.children)}r=i.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||n.textContent===""+r||i.suppressHydrationWarning===!0||oy(n.textContent,r)?(i.popover!=null&&(ze("beforetoggle",n),ze("toggle",n)),i.onScroll!=null&&ze("scroll",n),i.onScrollEnd!=null&&ze("scrollend",n),i.onClick!=null&&(n.onclick=sa),n=!0):n=!1,n||La(e,!0)}function Gh(e){for(Ot=e.return;Ot;)switch(Ot.tag){case 5:case 31:case 13:xn=!1;return;case 27:case 3:xn=!0;return;default:Ot=Ot.return}}function So(e){if(e!==Ot)return!1;if(!He)return Gh(e),He=!0,!1;var n=e.tag,r;if((r=n!==3&&n!==27)&&((r=n===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||ff(e.type,e.memoizedProps)),r=!r),r&<&&La(e),Gh(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));lt=py(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));lt=py(e)}else n===27?(n=lt,Za(e.type)?(e=vf,vf=null,lt=e):lt=n):lt=Ot?wn(e.stateNode.nextSibling):null;return!0}function Nr(){lt=Ot=null,He=!1}function $u(){var e=Ua;return e!==null&&(Qt===null?Qt=e:Qt.push.apply(Qt,e),Ua=null),e}function jl(e){Ua===null?Ua=[e]:Ua.push(e)}var Ku=N(null),Tr=null,fa=null;function Pa(e,n,r){$(Ku,n._currentValue),n._currentValue=r}function ma(e){e._currentValue=Ku.current,B(Ku)}function Xu(e,n,r){for(;e!==null;){var i=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,i!==null&&(i.childLanes|=n)):i!==null&&(i.childLanes&n)!==n&&(i.childLanes|=n),e===r)break;e=e.return}}function Zu(e,n,r,i){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var m=u.dependencies;if(m!==null){var x=u.child;m=m.firstContext;e:for(;m!==null;){var C=m;m=u;for(var A=0;A<n.length;A++)if(C.context===n[A]){m.lanes|=r,C=m.alternate,C!==null&&(C.lanes|=r),Xu(m.return,r,e),i||(x=null);break e}m=C.next}}else if(u.tag===18){if(x=u.return,x===null)throw Error(s(341));x.lanes|=r,m=x.alternate,m!==null&&(m.lanes|=r),Xu(x,r,e),x=null}else x=u.child;if(x!==null)x.return=u;else for(x=u;x!==null;){if(x===e){x=null;break}if(u=x.sibling,u!==null){u.return=x.return,x=u;break}x=x.return}u=x}}function wo(e,n,r,i){e=null;for(var u=n,m=!1;u!==null;){if(!m){if((u.flags&524288)!==0)m=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var x=u.alternate;if(x===null)throw Error(s(387));if(x=x.memoizedProps,x!==null){var C=u.type;tn(u.pendingProps.value,x.value)||(e!==null?e.push(C):e=[C])}}else if(u===de.current){if(x=u.alternate,x===null)throw Error(s(387));x.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(oi):e=[oi])}u=u.return}e!==null&&Zu(n,e,r,i),n.flags|=262144}function us(e){for(e=e.firstContext;e!==null;){if(!tn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function kr(e){Tr=e,fa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Dt(e){return Vh(Tr,e)}function ds(e,n){return Tr===null&&kr(e),Vh(e,n)}function Vh(e,n){var r=n._currentValue;if(n={context:n,memoizedValue:r,next:null},fa===null){if(e===null)throw Error(s(308));fa=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else fa=fa.next=n;return r}var lC=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(r,i){e.push(i)}};this.abort=function(){n.aborted=!0,e.forEach(function(r){return r()})}},iC=a.unstable_scheduleCallback,sC=a.unstable_NormalPriority,gt={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Qu(){return{controller:new lC,data:new Map,refCount:0}}function Rl(e){e.refCount--,e.refCount===0&&iC(sC,function(){e.controller.abort()})}var Al=null,Ju=0,_o=0,Co=null;function cC(e,n){if(Al===null){var r=Al=[];Ju=0,_o=nf(),Co={status:"pending",value:void 0,then:function(i){r.push(i)}}}return Ju++,n.then(qh,qh),n}function qh(){if(--Ju===0&&Al!==null){Co!==null&&(Co.status="fulfilled");var e=Al;Al=null,_o=0,Co=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function uC(e,n){var r=[],i={status:"pending",value:null,reason:null,then:function(u){r.push(u)}};return e.then(function(){i.status="fulfilled",i.value=n;for(var u=0;u<r.length;u++)(0,r[u])(n)},function(u){for(i.status="rejected",i.reason=u,u=0;u<r.length;u++)(0,r[u])(void 0)}),i}var Wh=I.S;I.S=function(e,n){kv=he(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&cC(e,n),Wh!==null&&Wh(e,n)};var Or=N(null);function ed(){var e=Or.current;return e!==null?e:at.pooledCache}function fs(e,n){n===null?$(Or,Or.current):$(Or,n.pool)}function Fh(){var e=ed();return e===null?null:{parent:gt._currentValue,pool:e}}var Eo=Error(s(460)),td=Error(s(474)),ms=Error(s(542)),ps={then:function(){}};function $h(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Kh(e,n,r){switch(r=e[r],r===void 0?e.push(n):r!==n&&(n.then(sa,sa),n=r),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Zh(e),e;default:if(typeof n.status=="string")n.then(sa,sa);else{if(e=at,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=n,e.status="pending",e.then(function(i){if(n.status==="pending"){var u=n;u.status="fulfilled",u.value=i}},function(i){if(n.status==="pending"){var u=n;u.status="rejected",u.reason=i}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Zh(e),e}throw jr=n,Eo}}function Dr(e){try{var n=e._init;return n(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(jr=r,Eo):r}}var jr=null;function Xh(){if(jr===null)throw Error(s(459));var e=jr;return jr=null,e}function Zh(e){if(e===Eo||e===ms)throw Error(s(483))}var Mo=null,zl=0;function hs(e){var n=zl;return zl+=1,Mo===null&&(Mo=[]),Kh(Mo,e,n)}function Ul(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function gs(e,n){throw n.$$typeof===_?Error(s(525)):(e=Object.prototype.toString.call(n),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Qh(e){function n(G,L){if(e){var q=G.deletions;q===null?(G.deletions=[L],G.flags|=16):q.push(L)}}function r(G,L){if(!e)return null;for(;L!==null;)n(G,L),L=L.sibling;return null}function i(G){for(var L=new Map;G!==null;)G.key!==null?L.set(G.key,G):L.set(G.index,G),G=G.sibling;return L}function u(G,L){return G=ua(G,L),G.index=0,G.sibling=null,G}function m(G,L,q){return G.index=q,e?(q=G.alternate,q!==null?(q=q.index,q<L?(G.flags|=67108866,L):q):(G.flags|=67108866,L)):(G.flags|=1048576,L)}function x(G){return e&&G.alternate===null&&(G.flags|=67108866),G}function C(G,L,q,ne){return L===null||L.tag!==6?(L=Gu(q,G.mode,ne),L.return=G,L):(L=u(L,q),L.return=G,L)}function A(G,L,q,ne){var we=q.type;return we===E?ee(G,L,q.props.children,ne,q.key):L!==null&&(L.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===ie&&Dr(we)===L.type)?(L=u(L,q.props),Ul(L,q),L.return=G,L):(L=ss(q.type,q.key,q.props,null,G.mode,ne),Ul(L,q),L.return=G,L)}function W(G,L,q,ne){return L===null||L.tag!==4||L.stateNode.containerInfo!==q.containerInfo||L.stateNode.implementation!==q.implementation?(L=Vu(q,G.mode,ne),L.return=G,L):(L=u(L,q.children||[]),L.return=G,L)}function ee(G,L,q,ne,we){return L===null||L.tag!==7?(L=Mr(q,G.mode,ne,we),L.return=G,L):(L=u(L,q),L.return=G,L)}function re(G,L,q){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Gu(""+L,G.mode,q),L.return=G,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case M:return q=ss(L.type,L.key,L.props,null,G.mode,q),Ul(q,L),q.return=G,q;case w:return L=Vu(L,G.mode,q),L.return=G,L;case ie:return L=Dr(L),re(G,L,q)}if(P(L)||le(L))return L=Mr(L,G.mode,q,null),L.return=G,L;if(typeof L.then=="function")return re(G,hs(L),q);if(L.$$typeof===j)return re(G,ds(G,L),q);gs(G,L)}return null}function K(G,L,q,ne){var we=L!==null?L.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return we!==null?null:C(G,L,""+q,ne);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case M:return q.key===we?A(G,L,q,ne):null;case w:return q.key===we?W(G,L,q,ne):null;case ie:return q=Dr(q),K(G,L,q,ne)}if(P(q)||le(q))return we!==null?null:ee(G,L,q,ne,null);if(typeof q.then=="function")return K(G,L,hs(q),ne);if(q.$$typeof===j)return K(G,L,ds(G,q),ne);gs(G,q)}return null}function Z(G,L,q,ne,we){if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return G=G.get(q)||null,C(L,G,""+ne,we);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case M:return G=G.get(ne.key===null?q:ne.key)||null,A(L,G,ne,we);case w:return G=G.get(ne.key===null?q:ne.key)||null,W(L,G,ne,we);case ie:return ne=Dr(ne),Z(G,L,q,ne,we)}if(P(ne)||le(ne))return G=G.get(q)||null,ee(L,G,ne,we,null);if(typeof ne.then=="function")return Z(G,L,q,hs(ne),we);if(ne.$$typeof===j)return Z(G,L,q,ds(L,ne),we);gs(L,ne)}return null}function ge(G,L,q,ne){for(var we=null,Ve=null,be=L,je=L=0,Be=null;be!==null&&je<q.length;je++){be.index>je?(Be=be,be=null):Be=be.sibling;var qe=K(G,be,q[je],ne);if(qe===null){be===null&&(be=Be);break}e&&be&&qe.alternate===null&&n(G,be),L=m(qe,L,je),Ve===null?we=qe:Ve.sibling=qe,Ve=qe,be=Be}if(je===q.length)return r(G,be),He&&da(G,je),we;if(be===null){for(;je<q.length;je++)be=re(G,q[je],ne),be!==null&&(L=m(be,L,je),Ve===null?we=be:Ve.sibling=be,Ve=be);return He&&da(G,je),we}for(be=i(be);je<q.length;je++)Be=Z(be,G,je,q[je],ne),Be!==null&&(e&&Be.alternate!==null&&be.delete(Be.key===null?je:Be.key),L=m(Be,L,je),Ve===null?we=Be:Ve.sibling=Be,Ve=Be);return e&&be.forEach(function(nr){return n(G,nr)}),He&&da(G,je),we}function Ce(G,L,q,ne){if(q==null)throw Error(s(151));for(var we=null,Ve=null,be=L,je=L=0,Be=null,qe=q.next();be!==null&&!qe.done;je++,qe=q.next()){be.index>je?(Be=be,be=null):Be=be.sibling;var nr=K(G,be,qe.value,ne);if(nr===null){be===null&&(be=Be);break}e&&be&&nr.alternate===null&&n(G,be),L=m(nr,L,je),Ve===null?we=nr:Ve.sibling=nr,Ve=nr,be=Be}if(qe.done)return r(G,be),He&&da(G,je),we;if(be===null){for(;!qe.done;je++,qe=q.next())qe=re(G,qe.value,ne),qe!==null&&(L=m(qe,L,je),Ve===null?we=qe:Ve.sibling=qe,Ve=qe);return He&&da(G,je),we}for(be=i(be);!qe.done;je++,qe=q.next())qe=Z(be,G,je,qe.value,ne),qe!==null&&(e&&qe.alternate!==null&&be.delete(qe.key===null?je:qe.key),L=m(qe,L,je),Ve===null?we=qe:Ve.sibling=qe,Ve=qe);return e&&be.forEach(function(SE){return n(G,SE)}),He&&da(G,je),we}function tt(G,L,q,ne){if(typeof q=="object"&&q!==null&&q.type===E&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case M:e:{for(var we=q.key;L!==null;){if(L.key===we){if(we=q.type,we===E){if(L.tag===7){r(G,L.sibling),ne=u(L,q.props.children),ne.return=G,G=ne;break e}}else if(L.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===ie&&Dr(we)===L.type){r(G,L.sibling),ne=u(L,q.props),Ul(ne,q),ne.return=G,G=ne;break e}r(G,L);break}else n(G,L);L=L.sibling}q.type===E?(ne=Mr(q.props.children,G.mode,ne,q.key),ne.return=G,G=ne):(ne=ss(q.type,q.key,q.props,null,G.mode,ne),Ul(ne,q),ne.return=G,G=ne)}return x(G);case w:e:{for(we=q.key;L!==null;){if(L.key===we)if(L.tag===4&&L.stateNode.containerInfo===q.containerInfo&&L.stateNode.implementation===q.implementation){r(G,L.sibling),ne=u(L,q.children||[]),ne.return=G,G=ne;break e}else{r(G,L);break}else n(G,L);L=L.sibling}ne=Vu(q,G.mode,ne),ne.return=G,G=ne}return x(G);case ie:return q=Dr(q),tt(G,L,q,ne)}if(P(q))return ge(G,L,q,ne);if(le(q)){if(we=le(q),typeof we!="function")throw Error(s(150));return q=we.call(q),Ce(G,L,q,ne)}if(typeof q.then=="function")return tt(G,L,hs(q),ne);if(q.$$typeof===j)return tt(G,L,ds(G,q),ne);gs(G,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,L!==null&&L.tag===6?(r(G,L.sibling),ne=u(L,q),ne.return=G,G=ne):(r(G,L),ne=Gu(q,G.mode,ne),ne.return=G,G=ne),x(G)):r(G,L)}return function(G,L,q,ne){try{zl=0;var we=tt(G,L,q,ne);return Mo=null,we}catch(be){if(be===Eo||be===ms)throw be;var Ve=nn(29,be,null,G.mode);return Ve.lanes=ne,Ve.return=G,Ve}}}var Rr=Qh(!0),Jh=Qh(!1),Ba=!1;function nd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ad(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ha(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ya(e,n,r){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(We&2)!==0){var u=i.pending;return u===null?n.next=n:(n.next=u.next,u.next=n),i.pending=n,n=is(e),Uh(e,null,r),n}return ls(e,i,n,r),is(e)}function Ll(e,n,r){if(n=n.updateQueue,n!==null&&(n=n.shared,(r&4194048)!==0)){var i=n.lanes;i&=e.pendingLanes,r|=i,n.lanes=r,Vp(e,r)}}function rd(e,n){var r=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,r===i)){var u=null,m=null;if(r=r.firstBaseUpdate,r!==null){do{var x={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};m===null?u=m=x:m=m.next=x,r=r.next}while(r!==null);m===null?u=m=n:m=m.next=n}else u=m=n;r={baseState:i.baseState,firstBaseUpdate:u,lastBaseUpdate:m,shared:i.shared,callbacks:i.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=n:e.next=n,r.lastBaseUpdate=n}var od=!1;function Pl(){if(od){var e=Co;if(e!==null)throw e}}function Bl(e,n,r,i){od=!1;var u=e.updateQueue;Ba=!1;var m=u.firstBaseUpdate,x=u.lastBaseUpdate,C=u.shared.pending;if(C!==null){u.shared.pending=null;var A=C,W=A.next;A.next=null,x===null?m=W:x.next=W,x=A;var ee=e.alternate;ee!==null&&(ee=ee.updateQueue,C=ee.lastBaseUpdate,C!==x&&(C===null?ee.firstBaseUpdate=W:C.next=W,ee.lastBaseUpdate=A))}if(m!==null){var re=u.baseState;x=0,ee=W=A=null,C=m;do{var K=C.lane&-536870913,Z=K!==C.lane;if(Z?(Pe&K)===K:(i&K)===K){K!==0&&K===_o&&(od=!0),ee!==null&&(ee=ee.next={lane:0,tag:C.tag,payload:C.payload,callback:null,next:null});e:{var ge=e,Ce=C;K=n;var tt=r;switch(Ce.tag){case 1:if(ge=Ce.payload,typeof ge=="function"){re=ge.call(tt,re,K);break e}re=ge;break e;case 3:ge.flags=ge.flags&-65537|128;case 0:if(ge=Ce.payload,K=typeof ge=="function"?ge.call(tt,re,K):ge,K==null)break e;re=S({},re,K);break e;case 2:Ba=!0}}K=C.callback,K!==null&&(e.flags|=64,Z&&(e.flags|=8192),Z=u.callbacks,Z===null?u.callbacks=[K]:Z.push(K))}else Z={lane:K,tag:C.tag,payload:C.payload,callback:C.callback,next:null},ee===null?(W=ee=Z,A=re):ee=ee.next=Z,x|=K;if(C=C.next,C===null){if(C=u.shared.pending,C===null)break;Z=C,C=Z.next,Z.next=null,u.lastBaseUpdate=Z,u.shared.pending=null}}while(!0);ee===null&&(A=re),u.baseState=A,u.firstBaseUpdate=W,u.lastBaseUpdate=ee,m===null&&(u.shared.lanes=0),Wa|=x,e.lanes=x,e.memoizedState=re}}function eg(e,n){if(typeof e!="function")throw Error(s(191,e));e.call(n)}function tg(e,n){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)eg(r[e],n)}var No=N(null),vs=N(0);function ng(e,n){e=wa,$(vs,e),$(No,n),wa=e|n.baseLanes}function ld(){$(vs,wa),$(No,No.current)}function id(){wa=vs.current,B(No),B(vs)}var an=N(null),Sn=null;function Ia(e){var n=e.alternate;$(mt,mt.current&1),$(an,e),Sn===null&&(n===null||No.current!==null||n.memoizedState!==null)&&(Sn=e)}function sd(e){$(mt,mt.current),$(an,e),Sn===null&&(Sn=e)}function ag(e){e.tag===22?($(mt,mt.current),$(an,e),Sn===null&&(Sn=e)):Ga()}function Ga(){$(mt,mt.current),$(an,an.current)}function rn(e){B(an),Sn===e&&(Sn=null),B(mt)}var mt=N(0);function ys(e){for(var n=e;n!==null;){if(n.tag===13){var r=n.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||hf(r)||gf(r)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var pa=0,Oe=null,Je=null,vt=null,bs=!1,To=!1,Ar=!1,xs=0,Hl=0,ko=null,dC=0;function dt(){throw Error(s(321))}function cd(e,n){if(n===null)return!1;for(var r=0;r<n.length&&r<e.length;r++)if(!tn(e[r],n[r]))return!1;return!0}function ud(e,n,r,i,u,m){return pa=m,Oe=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,I.H=e===null||e.memoizedState===null?Hg:Ed,Ar=!1,m=r(i,u),Ar=!1,To&&(m=og(n,r,i,u)),rg(e),m}function rg(e){I.H=Gl;var n=Je!==null&&Je.next!==null;if(pa=0,vt=Je=Oe=null,bs=!1,Hl=0,ko=null,n)throw Error(s(300));e===null||yt||(e=e.dependencies,e!==null&&us(e)&&(yt=!0))}function og(e,n,r,i){Oe=e;var u=0;do{if(To&&(ko=null),Hl=0,To=!1,25<=u)throw Error(s(301));if(u+=1,vt=Je=null,e.updateQueue!=null){var m=e.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}I.H=Yg,m=n(r,i)}while(To);return m}function fC(){var e=I.H,n=e.useState()[0];return n=typeof n.then=="function"?Yl(n):n,e=e.useState()[0],(Je!==null?Je.memoizedState:null)!==e&&(Oe.flags|=1024),n}function dd(){var e=xs!==0;return xs=0,e}function fd(e,n,r){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~r}function md(e){if(bs){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}bs=!1}pa=0,vt=Je=Oe=null,To=!1,Hl=xs=0,ko=null}function Ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vt===null?Oe.memoizedState=vt=e:vt=vt.next=e,vt}function pt(){if(Je===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=Je.next;var n=vt===null?Oe.memoizedState:vt.next;if(n!==null)vt=n,Je=e;else{if(e===null)throw Oe.alternate===null?Error(s(467)):Error(s(310));Je=e,e={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},vt===null?Oe.memoizedState=vt=e:vt=vt.next=e}return vt}function Ss(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yl(e){var n=Hl;return Hl+=1,ko===null&&(ko=[]),e=Kh(ko,e,n),n=Oe,(vt===null?n.memoizedState:vt.next)===null&&(n=n.alternate,I.H=n===null||n.memoizedState===null?Hg:Ed),e}function ws(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Yl(e);if(e.$$typeof===j)return Dt(e)}throw Error(s(438,String(e)))}function pd(e){var n=null,r=Oe.updateQueue;if(r!==null&&(n=r.memoCache),n==null){var i=Oe.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(n={data:i.data.map(function(u){return u.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),r===null&&(r=Ss(),Oe.updateQueue=r),r.memoCache=n,r=n.data[n.index],r===void 0)for(r=n.data[n.index]=Array(e),i=0;i<e;i++)r[i]=O;return n.index++,r}function ha(e,n){return typeof n=="function"?n(e):n}function _s(e){var n=pt();return hd(n,Je,e)}function hd(e,n,r){var i=e.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=r;var u=e.baseQueue,m=i.pending;if(m!==null){if(u!==null){var x=u.next;u.next=m.next,m.next=x}n.baseQueue=u=m,i.pending=null}if(m=e.baseState,u===null)e.memoizedState=m;else{n=u.next;var C=x=null,A=null,W=n,ee=!1;do{var re=W.lane&-536870913;if(re!==W.lane?(Pe&re)===re:(pa&re)===re){var K=W.revertLane;if(K===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null}),re===_o&&(ee=!0);else if((pa&K)===K){W=W.next,K===_o&&(ee=!0);continue}else re={lane:0,revertLane:W.revertLane,gesture:null,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},A===null?(C=A=re,x=m):A=A.next=re,Oe.lanes|=K,Wa|=K;re=W.action,Ar&&r(m,re),m=W.hasEagerState?W.eagerState:r(m,re)}else K={lane:re,revertLane:W.revertLane,gesture:W.gesture,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},A===null?(C=A=K,x=m):A=A.next=K,Oe.lanes|=re,Wa|=re;W=W.next}while(W!==null&&W!==n);if(A===null?x=m:A.next=C,!tn(m,e.memoizedState)&&(yt=!0,ee&&(r=Co,r!==null)))throw r;e.memoizedState=m,e.baseState=x,e.baseQueue=A,i.lastRenderedState=m}return u===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function gd(e){var n=pt(),r=n.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=e;var i=r.dispatch,u=r.pending,m=n.memoizedState;if(u!==null){r.pending=null;var x=u=u.next;do m=e(m,x.action),x=x.next;while(x!==u);tn(m,n.memoizedState)||(yt=!0),n.memoizedState=m,n.baseQueue===null&&(n.baseState=m),r.lastRenderedState=m}return[m,i]}function lg(e,n,r){var i=Oe,u=pt(),m=He;if(m){if(r===void 0)throw Error(s(407));r=r()}else r=n();var x=!tn((Je||u).memoizedState,r);if(x&&(u.memoizedState=r,yt=!0),u=u.queue,bd(cg.bind(null,i,u,e),[e]),u.getSnapshot!==n||x||vt!==null&&vt.memoizedState.tag&1){if(i.flags|=2048,Oo(9,{destroy:void 0},sg.bind(null,i,u,r,n),null),at===null)throw Error(s(349));m||(pa&127)!==0||ig(i,n,r)}return r}function ig(e,n,r){e.flags|=16384,e={getSnapshot:n,value:r},n=Oe.updateQueue,n===null?(n=Ss(),Oe.updateQueue=n,n.stores=[e]):(r=n.stores,r===null?n.stores=[e]:r.push(e))}function sg(e,n,r,i){n.value=r,n.getSnapshot=i,ug(n)&&dg(e)}function cg(e,n,r){return r(function(){ug(n)&&dg(e)})}function ug(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!tn(e,r)}catch{return!0}}function dg(e){var n=Er(e,2);n!==null&&Jt(n,e,2)}function vd(e){var n=Ht();if(typeof e=="function"){var r=e;if(e=r(),Ar){In(!0);try{r()}finally{In(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:e},n}function fg(e,n,r,i){return e.baseState=r,hd(e,Je,typeof i=="function"?i:ha)}function mC(e,n,r,i,u){if(Ms(e))throw Error(s(485));if(e=n.action,e!==null){var m={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){m.listeners.push(x)}};I.T!==null?r(!0):m.isTransition=!1,i(m),r=n.pending,r===null?(m.next=n.pending=m,mg(n,m)):(m.next=r.next,n.pending=r.next=m)}}function mg(e,n){var r=n.action,i=n.payload,u=e.state;if(n.isTransition){var m=I.T,x={};I.T=x;try{var C=r(u,i),A=I.S;A!==null&&A(x,C),pg(e,n,C)}catch(W){yd(e,n,W)}finally{m!==null&&x.types!==null&&(m.types=x.types),I.T=m}}else try{m=r(u,i),pg(e,n,m)}catch(W){yd(e,n,W)}}function pg(e,n,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(i){hg(e,n,i)},function(i){return yd(e,n,i)}):hg(e,n,r)}function hg(e,n,r){n.status="fulfilled",n.value=r,gg(n),e.state=r,n=e.pending,n!==null&&(r=n.next,r===n?e.pending=null:(r=r.next,n.next=r,mg(e,r)))}function yd(e,n,r){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do n.status="rejected",n.reason=r,gg(n),n=n.next;while(n!==i)}e.action=null}function gg(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function vg(e,n){return n}function yg(e,n){if(He){var r=at.formState;if(r!==null){e:{var i=Oe;if(He){if(lt){t:{for(var u=lt,m=xn;u.nodeType!==8;){if(!m){u=null;break t}if(u=wn(u.nextSibling),u===null){u=null;break t}}m=u.data,u=m==="F!"||m==="F"?u:null}if(u){lt=wn(u.nextSibling),i=u.data==="F!";break e}}La(i)}i=!1}i&&(n=r[0])}}return r=Ht(),r.memoizedState=r.baseState=n,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vg,lastRenderedState:n},r.queue=i,r=Lg.bind(null,Oe,i),i.dispatch=r,i=vd(!1),m=Cd.bind(null,Oe,!1,i.queue),i=Ht(),u={state:n,dispatch:null,action:e,pending:null},i.queue=u,r=mC.bind(null,Oe,u,m,r),u.dispatch=r,i.memoizedState=e,[n,r,!1]}function bg(e){var n=pt();return xg(n,Je,e)}function xg(e,n,r){if(n=hd(e,n,vg)[0],e=_s(ha)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var i=Yl(n)}catch(x){throw x===Eo?ms:x}else i=n;n=pt();var u=n.queue,m=u.dispatch;return r!==n.memoizedState&&(Oe.flags|=2048,Oo(9,{destroy:void 0},pC.bind(null,u,r),null)),[i,m,e]}function pC(e,n){e.action=n}function Sg(e){var n=pt(),r=Je;if(r!==null)return xg(n,r,e);pt(),n=n.memoizedState,r=pt();var i=r.queue.dispatch;return r.memoizedState=e,[n,i,!1]}function Oo(e,n,r,i){return e={tag:e,create:r,deps:i,inst:n,next:null},n=Oe.updateQueue,n===null&&(n=Ss(),Oe.updateQueue=n),r=n.lastEffect,r===null?n.lastEffect=e.next=e:(i=r.next,r.next=e,e.next=i,n.lastEffect=e),e}function wg(){return pt().memoizedState}function Cs(e,n,r,i){var u=Ht();Oe.flags|=e,u.memoizedState=Oo(1|n,{destroy:void 0},r,i===void 0?null:i)}function Es(e,n,r,i){var u=pt();i=i===void 0?null:i;var m=u.memoizedState.inst;Je!==null&&i!==null&&cd(i,Je.memoizedState.deps)?u.memoizedState=Oo(n,m,r,i):(Oe.flags|=e,u.memoizedState=Oo(1|n,m,r,i))}function _g(e,n){Cs(8390656,8,e,n)}function bd(e,n){Es(2048,8,e,n)}function hC(e){Oe.flags|=4;var n=Oe.updateQueue;if(n===null)n=Ss(),Oe.updateQueue=n,n.events=[e];else{var r=n.events;r===null?n.events=[e]:r.push(e)}}function Cg(e){var n=pt().memoizedState;return hC({ref:n,nextImpl:e}),function(){if((We&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}function Eg(e,n){return Es(4,2,e,n)}function Mg(e,n){return Es(4,4,e,n)}function Ng(e,n){if(typeof n=="function"){e=e();var r=n(e);return function(){typeof r=="function"?r():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Tg(e,n,r){r=r!=null?r.concat([e]):null,Es(4,4,Ng.bind(null,n,e),r)}function xd(){}function kg(e,n){var r=pt();n=n===void 0?null:n;var i=r.memoizedState;return n!==null&&cd(n,i[1])?i[0]:(r.memoizedState=[e,n],e)}function Og(e,n){var r=pt();n=n===void 0?null:n;var i=r.memoizedState;if(n!==null&&cd(n,i[1]))return i[0];if(i=e(),Ar){In(!0);try{e()}finally{In(!1)}}return r.memoizedState=[i,n],i}function Sd(e,n,r){return r===void 0||(pa&1073741824)!==0&&(Pe&261930)===0?e.memoizedState=n:(e.memoizedState=r,e=Dv(),Oe.lanes|=e,Wa|=e,r)}function Dg(e,n,r,i){return tn(r,n)?r:No.current!==null?(e=Sd(e,r,i),tn(e,n)||(yt=!0),e):(pa&42)===0||(pa&1073741824)!==0&&(Pe&261930)===0?(yt=!0,e.memoizedState=r):(e=Dv(),Oe.lanes|=e,Wa|=e,n)}function jg(e,n,r,i,u){var m=z.p;z.p=m!==0&&8>m?m:8;var x=I.T,C={};I.T=C,Cd(e,!1,n,r);try{var A=u(),W=I.S;if(W!==null&&W(C,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var ee=uC(A,i);Il(e,n,ee,sn(e))}else Il(e,n,i,sn(e))}catch(re){Il(e,n,{then:function(){},status:"rejected",reason:re},sn())}finally{z.p=m,x!==null&&C.types!==null&&(x.types=C.types),I.T=x}}function gC(){}function wd(e,n,r,i){if(e.tag!==5)throw Error(s(476));var u=Rg(e).queue;jg(e,u,n,F,r===null?gC:function(){return Ag(e),r(i)})}function Rg(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:F},next:null};var r={};return n.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:r},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Ag(e){var n=Rg(e);n.next===null&&(n=e.alternate.memoizedState),Il(e,n.next.queue,{},sn())}function _d(){return Dt(oi)}function zg(){return pt().memoizedState}function Ug(){return pt().memoizedState}function vC(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var r=sn();e=Ha(r);var i=Ya(n,e,r);i!==null&&(Jt(i,n,r),Ll(i,n,r)),n={cache:Qu()},e.payload=n;return}n=n.return}}function yC(e,n,r){var i=sn();r={lane:i,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ms(e)?Pg(n,r):(r=Yu(e,n,r,i),r!==null&&(Jt(r,e,i),Bg(r,n,i)))}function Lg(e,n,r){var i=sn();Il(e,n,r,i)}function Il(e,n,r,i){var u={lane:i,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ms(e))Pg(n,u);else{var m=e.alternate;if(e.lanes===0&&(m===null||m.lanes===0)&&(m=n.lastRenderedReducer,m!==null))try{var x=n.lastRenderedState,C=m(x,r);if(u.hasEagerState=!0,u.eagerState=C,tn(C,x))return ls(e,n,u,0),at===null&&os(),!1}catch{}if(r=Yu(e,n,u,i),r!==null)return Jt(r,e,i),Bg(r,n,i),!0}return!1}function Cd(e,n,r,i){if(i={lane:2,revertLane:nf(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Ms(e)){if(n)throw Error(s(479))}else n=Yu(e,r,i,2),n!==null&&Jt(n,e,2)}function Ms(e){var n=e.alternate;return e===Oe||n!==null&&n===Oe}function Pg(e,n){To=bs=!0;var r=e.pending;r===null?n.next=n:(n.next=r.next,r.next=n),e.pending=n}function Bg(e,n,r){if((r&4194048)!==0){var i=n.lanes;i&=e.pendingLanes,r|=i,n.lanes=r,Vp(e,r)}}var Gl={readContext:Dt,use:ws,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useLayoutEffect:dt,useInsertionEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useSyncExternalStore:dt,useId:dt,useHostTransitionStatus:dt,useFormState:dt,useActionState:dt,useOptimistic:dt,useMemoCache:dt,useCacheRefresh:dt};Gl.useEffectEvent=dt;var Hg={readContext:Dt,use:ws,useCallback:function(e,n){return Ht().memoizedState=[e,n===void 0?null:n],e},useContext:Dt,useEffect:_g,useImperativeHandle:function(e,n,r){r=r!=null?r.concat([e]):null,Cs(4194308,4,Ng.bind(null,n,e),r)},useLayoutEffect:function(e,n){return Cs(4194308,4,e,n)},useInsertionEffect:function(e,n){Cs(4,2,e,n)},useMemo:function(e,n){var r=Ht();n=n===void 0?null:n;var i=e();if(Ar){In(!0);try{e()}finally{In(!1)}}return r.memoizedState=[i,n],i},useReducer:function(e,n,r){var i=Ht();if(r!==void 0){var u=r(n);if(Ar){In(!0);try{r(n)}finally{In(!1)}}}else u=n;return i.memoizedState=i.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},i.queue=e,e=e.dispatch=yC.bind(null,Oe,e),[i.memoizedState,e]},useRef:function(e){var n=Ht();return e={current:e},n.memoizedState=e},useState:function(e){e=vd(e);var n=e.queue,r=Lg.bind(null,Oe,n);return n.dispatch=r,[e.memoizedState,r]},useDebugValue:xd,useDeferredValue:function(e,n){var r=Ht();return Sd(r,e,n)},useTransition:function(){var e=vd(!1);return e=jg.bind(null,Oe,e.queue,!0,!1),Ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,r){var i=Oe,u=Ht();if(He){if(r===void 0)throw Error(s(407));r=r()}else{if(r=n(),at===null)throw Error(s(349));(Pe&127)!==0||ig(i,n,r)}u.memoizedState=r;var m={value:r,getSnapshot:n};return u.queue=m,_g(cg.bind(null,i,m,e),[e]),i.flags|=2048,Oo(9,{destroy:void 0},sg.bind(null,i,m,r,n),null),r},useId:function(){var e=Ht(),n=at.identifierPrefix;if(He){var r=Vn,i=Gn;r=(i&~(1<<32-Lt(i)-1)).toString(32)+r,n="_"+n+"R_"+r,r=xs++,0<r&&(n+="H"+r.toString(32)),n+="_"}else r=dC++,n="_"+n+"r_"+r.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:_d,useFormState:yg,useActionState:yg,useOptimistic:function(e){var n=Ht();n.memoizedState=n.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=r,n=Cd.bind(null,Oe,!0,r),r.dispatch=n,[e,n]},useMemoCache:pd,useCacheRefresh:function(){return Ht().memoizedState=vC.bind(null,Oe)},useEffectEvent:function(e){var n=Ht(),r={impl:e};return n.memoizedState=r,function(){if((We&2)!==0)throw Error(s(440));return r.impl.apply(void 0,arguments)}}},Ed={readContext:Dt,use:ws,useCallback:kg,useContext:Dt,useEffect:bd,useImperativeHandle:Tg,useInsertionEffect:Eg,useLayoutEffect:Mg,useMemo:Og,useReducer:_s,useRef:wg,useState:function(){return _s(ha)},useDebugValue:xd,useDeferredValue:function(e,n){var r=pt();return Dg(r,Je.memoizedState,e,n)},useTransition:function(){var e=_s(ha)[0],n=pt().memoizedState;return[typeof e=="boolean"?e:Yl(e),n]},useSyncExternalStore:lg,useId:zg,useHostTransitionStatus:_d,useFormState:bg,useActionState:bg,useOptimistic:function(e,n){var r=pt();return fg(r,Je,e,n)},useMemoCache:pd,useCacheRefresh:Ug};Ed.useEffectEvent=Cg;var Yg={readContext:Dt,use:ws,useCallback:kg,useContext:Dt,useEffect:bd,useImperativeHandle:Tg,useInsertionEffect:Eg,useLayoutEffect:Mg,useMemo:Og,useReducer:gd,useRef:wg,useState:function(){return gd(ha)},useDebugValue:xd,useDeferredValue:function(e,n){var r=pt();return Je===null?Sd(r,e,n):Dg(r,Je.memoizedState,e,n)},useTransition:function(){var e=gd(ha)[0],n=pt().memoizedState;return[typeof e=="boolean"?e:Yl(e),n]},useSyncExternalStore:lg,useId:zg,useHostTransitionStatus:_d,useFormState:Sg,useActionState:Sg,useOptimistic:function(e,n){var r=pt();return Je!==null?fg(r,Je,e,n):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:pd,useCacheRefresh:Ug};Yg.useEffectEvent=Cg;function Md(e,n,r,i){n=e.memoizedState,r=r(i,n),r=r==null?n:S({},n,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Nd={enqueueSetState:function(e,n,r){e=e._reactInternals;var i=sn(),u=Ha(i);u.payload=n,r!=null&&(u.callback=r),n=Ya(e,u,i),n!==null&&(Jt(n,e,i),Ll(n,e,i))},enqueueReplaceState:function(e,n,r){e=e._reactInternals;var i=sn(),u=Ha(i);u.tag=1,u.payload=n,r!=null&&(u.callback=r),n=Ya(e,u,i),n!==null&&(Jt(n,e,i),Ll(n,e,i))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var r=sn(),i=Ha(r);i.tag=2,n!=null&&(i.callback=n),n=Ya(e,i,r),n!==null&&(Jt(n,e,r),Ll(n,e,r))}};function Ig(e,n,r,i,u,m,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,m,x):n.prototype&&n.prototype.isPureReactComponent?!kl(r,i)||!kl(u,m):!0}function Gg(e,n,r,i){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(r,i),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(r,i),n.state!==e&&Nd.enqueueReplaceState(n,n.state,null)}function zr(e,n){var r=n;if("ref"in n){r={};for(var i in n)i!=="ref"&&(r[i]=n[i])}if(e=e.defaultProps){r===n&&(r=S({},r));for(var u in e)r[u]===void 0&&(r[u]=e[u])}return r}function Vg(e){rs(e)}function qg(e){console.error(e)}function Wg(e){rs(e)}function Ns(e,n){try{var r=e.onUncaughtError;r(n.value,{componentStack:n.stack})}catch(i){setTimeout(function(){throw i})}}function Fg(e,n,r){try{var i=e.onCaughtError;i(r.value,{componentStack:r.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Td(e,n,r){return r=Ha(r),r.tag=3,r.payload={element:null},r.callback=function(){Ns(e,n)},r}function $g(e){return e=Ha(e),e.tag=3,e}function Kg(e,n,r,i){var u=r.type.getDerivedStateFromError;if(typeof u=="function"){var m=i.value;e.payload=function(){return u(m)},e.callback=function(){Fg(n,r,i)}}var x=r.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){Fg(n,r,i),typeof u!="function"&&(Fa===null?Fa=new Set([this]):Fa.add(this));var C=i.stack;this.componentDidCatch(i.value,{componentStack:C!==null?C:""})})}function bC(e,n,r,i,u){if(r.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(n=r.alternate,n!==null&&wo(n,r,u,!0),r=an.current,r!==null){switch(r.tag){case 31:case 13:return Sn===null?Bs():r.alternate===null&&ft===0&&(ft=3),r.flags&=-257,r.flags|=65536,r.lanes=u,i===ps?r.flags|=16384:(n=r.updateQueue,n===null?r.updateQueue=new Set([i]):n.add(i),Jd(e,i,u)),!1;case 22:return r.flags|=65536,i===ps?r.flags|=16384:(n=r.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([i])},r.updateQueue=n):(r=n.retryQueue,r===null?n.retryQueue=new Set([i]):r.add(i)),Jd(e,i,u)),!1}throw Error(s(435,r.tag))}return Jd(e,i,u),Bs(),!1}if(He)return n=an.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=u,i!==Fu&&(e=Error(s(422),{cause:i}),jl(vn(e,r)))):(i!==Fu&&(n=Error(s(423),{cause:i}),jl(vn(n,r))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,i=vn(i,r),u=Td(e.stateNode,i,u),rd(e,u),ft!==4&&(ft=2)),!1;var m=Error(s(520),{cause:i});if(m=vn(m,r),Zl===null?Zl=[m]:Zl.push(m),ft!==4&&(ft=2),n===null)return!0;i=vn(i,r),r=n;do{switch(r.tag){case 3:return r.flags|=65536,e=u&-u,r.lanes|=e,e=Td(r.stateNode,i,e),rd(r,e),!1;case 1:if(n=r.type,m=r.stateNode,(r.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Fa===null||!Fa.has(m))))return r.flags|=65536,u&=-u,r.lanes|=u,u=$g(u),Kg(u,e,r,i),rd(r,u),!1}r=r.return}while(r!==null);return!1}var kd=Error(s(461)),yt=!1;function jt(e,n,r,i){n.child=e===null?Jh(n,null,r,i):Rr(n,e.child,r,i)}function Xg(e,n,r,i,u){r=r.render;var m=n.ref;if("ref"in i){var x={};for(var C in i)C!=="ref"&&(x[C]=i[C])}else x=i;return kr(n),i=ud(e,n,r,x,m,u),C=dd(),e!==null&&!yt?(fd(e,n,u),ga(e,n,u)):(He&&C&&qu(n),n.flags|=1,jt(e,n,i,u),n.child)}function Zg(e,n,r,i,u){if(e===null){var m=r.type;return typeof m=="function"&&!Iu(m)&&m.defaultProps===void 0&&r.compare===null?(n.tag=15,n.type=m,Qg(e,n,m,i,u)):(e=ss(r.type,null,i,n,n.mode,u),e.ref=n.ref,e.return=n,n.child=e)}if(m=e.child,!Ld(e,u)){var x=m.memoizedProps;if(r=r.compare,r=r!==null?r:kl,r(x,i)&&e.ref===n.ref)return ga(e,n,u)}return n.flags|=1,e=ua(m,i),e.ref=n.ref,e.return=n,n.child=e}function Qg(e,n,r,i,u){if(e!==null){var m=e.memoizedProps;if(kl(m,i)&&e.ref===n.ref)if(yt=!1,n.pendingProps=i=m,Ld(e,u))(e.flags&131072)!==0&&(yt=!0);else return n.lanes=e.lanes,ga(e,n,u)}return Od(e,n,r,i,u)}function Jg(e,n,r,i){var u=i.children,m=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((n.flags&128)!==0){if(m=m!==null?m.baseLanes|r:r,e!==null){for(i=n.child=e.child,u=0;i!==null;)u=u|i.lanes|i.childLanes,i=i.sibling;i=u&~m}else i=0,n.child=null;return ev(e,n,m,r,i)}if((r&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&fs(n,m!==null?m.cachePool:null),m!==null?ng(n,m):ld(),ag(n);else return i=n.lanes=536870912,ev(e,n,m!==null?m.baseLanes|r:r,r,i)}else m!==null?(fs(n,m.cachePool),ng(n,m),Ga(),n.memoizedState=null):(e!==null&&fs(n,null),ld(),Ga());return jt(e,n,u,r),n.child}function Vl(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function ev(e,n,r,i,u){var m=ed();return m=m===null?null:{parent:gt._currentValue,pool:m},n.memoizedState={baseLanes:r,cachePool:m},e!==null&&fs(n,null),ld(),ag(n),e!==null&&wo(e,n,i,!0),n.childLanes=u,null}function Ts(e,n){return n=Os({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function tv(e,n,r){return Rr(n,e.child,null,r),e=Ts(n,n.pendingProps),e.flags|=2,rn(n),n.memoizedState=null,e}function xC(e,n,r){var i=n.pendingProps,u=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(He){if(i.mode==="hidden")return e=Ts(n,i),n.lanes=536870912,Vl(null,e);if(sd(n),(e=lt)?(e=my(e,xn),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:za!==null?{id:Gn,overflow:Vn}:null,retryLane:536870912,hydrationErrors:null},r=Ph(e),r.return=n,n.child=r,Ot=n,lt=null)):e=null,e===null)throw La(n);return n.lanes=536870912,null}return Ts(n,i)}var m=e.memoizedState;if(m!==null){var x=m.dehydrated;if(sd(n),u)if(n.flags&256)n.flags&=-257,n=tv(e,n,r);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(s(558));else if(yt||wo(e,n,r,!1),u=(r&e.childLanes)!==0,yt||u){if(i=at,i!==null&&(x=qp(i,r),x!==0&&x!==m.retryLane))throw m.retryLane=x,Er(e,x),Jt(i,e,x),kd;Bs(),n=tv(e,n,r)}else e=m.treeContext,lt=wn(x.nextSibling),Ot=n,He=!0,Ua=null,xn=!1,e!==null&&Yh(n,e),n=Ts(n,i),n.flags|=4096;return n}return e=ua(e.child,{mode:i.mode,children:i.children}),e.ref=n.ref,n.child=e,e.return=n,e}function ks(e,n){var r=n.ref;if(r===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(s(284));(e===null||e.ref!==r)&&(n.flags|=4194816)}}function Od(e,n,r,i,u){return kr(n),r=ud(e,n,r,i,void 0,u),i=dd(),e!==null&&!yt?(fd(e,n,u),ga(e,n,u)):(He&&i&&qu(n),n.flags|=1,jt(e,n,r,u),n.child)}function nv(e,n,r,i,u,m){return kr(n),n.updateQueue=null,r=og(n,i,r,u),rg(e),i=dd(),e!==null&&!yt?(fd(e,n,m),ga(e,n,m)):(He&&i&&qu(n),n.flags|=1,jt(e,n,r,m),n.child)}function av(e,n,r,i,u){if(kr(n),n.stateNode===null){var m=yo,x=r.contextType;typeof x=="object"&&x!==null&&(m=Dt(x)),m=new r(i,m),n.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Nd,n.stateNode=m,m._reactInternals=n,m=n.stateNode,m.props=i,m.state=n.memoizedState,m.refs={},nd(n),x=r.contextType,m.context=typeof x=="object"&&x!==null?Dt(x):yo,m.state=n.memoizedState,x=r.getDerivedStateFromProps,typeof x=="function"&&(Md(n,r,x,i),m.state=n.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(x=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),x!==m.state&&Nd.enqueueReplaceState(m,m.state,null),Bl(n,i,m,u),Pl(),m.state=n.memoizedState),typeof m.componentDidMount=="function"&&(n.flags|=4194308),i=!0}else if(e===null){m=n.stateNode;var C=n.memoizedProps,A=zr(r,C);m.props=A;var W=m.context,ee=r.contextType;x=yo,typeof ee=="object"&&ee!==null&&(x=Dt(ee));var re=r.getDerivedStateFromProps;ee=typeof re=="function"||typeof m.getSnapshotBeforeUpdate=="function",C=n.pendingProps!==C,ee||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(C||W!==x)&&Gg(n,m,i,x),Ba=!1;var K=n.memoizedState;m.state=K,Bl(n,i,m,u),Pl(),W=n.memoizedState,C||K!==W||Ba?(typeof re=="function"&&(Md(n,r,re,i),W=n.memoizedState),(A=Ba||Ig(n,r,A,i,K,W,x))?(ee||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(n.flags|=4194308)):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=i,n.memoizedState=W),m.props=i,m.state=W,m.context=x,i=A):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),i=!1)}else{m=n.stateNode,ad(e,n),x=n.memoizedProps,ee=zr(r,x),m.props=ee,re=n.pendingProps,K=m.context,W=r.contextType,A=yo,typeof W=="object"&&W!==null&&(A=Dt(W)),C=r.getDerivedStateFromProps,(W=typeof C=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(x!==re||K!==A)&&Gg(n,m,i,A),Ba=!1,K=n.memoizedState,m.state=K,Bl(n,i,m,u),Pl();var Z=n.memoizedState;x!==re||K!==Z||Ba||e!==null&&e.dependencies!==null&&us(e.dependencies)?(typeof C=="function"&&(Md(n,r,C,i),Z=n.memoizedState),(ee=Ba||Ig(n,r,ee,i,K,Z,A)||e!==null&&e.dependencies!==null&&us(e.dependencies))?(W||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(i,Z,A),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(i,Z,A)),typeof m.componentDidUpdate=="function"&&(n.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof m.componentDidUpdate!="function"||x===e.memoizedProps&&K===e.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&K===e.memoizedState||(n.flags|=1024),n.memoizedProps=i,n.memoizedState=Z),m.props=i,m.state=Z,m.context=A,i=ee):(typeof m.componentDidUpdate!="function"||x===e.memoizedProps&&K===e.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&K===e.memoizedState||(n.flags|=1024),i=!1)}return m=i,ks(e,n),i=(n.flags&128)!==0,m||i?(m=n.stateNode,r=i&&typeof r.getDerivedStateFromError!="function"?null:m.render(),n.flags|=1,e!==null&&i?(n.child=Rr(n,e.child,null,u),n.child=Rr(n,null,r,u)):jt(e,n,r,u),n.memoizedState=m.state,e=n.child):e=ga(e,n,u),e}function rv(e,n,r,i){return Nr(),n.flags|=256,jt(e,n,r,i),n.child}var Dd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function jd(e){return{baseLanes:e,cachePool:Fh()}}function Rd(e,n,r){return e=e!==null?e.childLanes&~r:0,n&&(e|=ln),e}function ov(e,n,r){var i=n.pendingProps,u=!1,m=(n.flags&128)!==0,x;if((x=m)||(x=e!==null&&e.memoizedState===null?!1:(mt.current&2)!==0),x&&(u=!0,n.flags&=-129),x=(n.flags&32)!==0,n.flags&=-33,e===null){if(He){if(u?Ia(n):Ga(),(e=lt)?(e=my(e,xn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:za!==null?{id:Gn,overflow:Vn}:null,retryLane:536870912,hydrationErrors:null},r=Ph(e),r.return=n,n.child=r,Ot=n,lt=null)):e=null,e===null)throw La(n);return gf(e)?n.lanes=32:n.lanes=536870912,null}var C=i.children;return i=i.fallback,u?(Ga(),u=n.mode,C=Os({mode:"hidden",children:C},u),i=Mr(i,u,r,null),C.return=n,i.return=n,C.sibling=i,n.child=C,i=n.child,i.memoizedState=jd(r),i.childLanes=Rd(e,x,r),n.memoizedState=Dd,Vl(null,i)):(Ia(n),Ad(n,C))}var A=e.memoizedState;if(A!==null&&(C=A.dehydrated,C!==null)){if(m)n.flags&256?(Ia(n),n.flags&=-257,n=zd(e,n,r)):n.memoizedState!==null?(Ga(),n.child=e.child,n.flags|=128,n=null):(Ga(),C=i.fallback,u=n.mode,i=Os({mode:"visible",children:i.children},u),C=Mr(C,u,r,null),C.flags|=2,i.return=n,C.return=n,i.sibling=C,n.child=i,Rr(n,e.child,null,r),i=n.child,i.memoizedState=jd(r),i.childLanes=Rd(e,x,r),n.memoizedState=Dd,n=Vl(null,i));else if(Ia(n),gf(C)){if(x=C.nextSibling&&C.nextSibling.dataset,x)var W=x.dgst;x=W,i=Error(s(419)),i.stack="",i.digest=x,jl({value:i,source:null,stack:null}),n=zd(e,n,r)}else if(yt||wo(e,n,r,!1),x=(r&e.childLanes)!==0,yt||x){if(x=at,x!==null&&(i=qp(x,r),i!==0&&i!==A.retryLane))throw A.retryLane=i,Er(e,i),Jt(x,e,i),kd;hf(C)||Bs(),n=zd(e,n,r)}else hf(C)?(n.flags|=192,n.child=e.child,n=null):(e=A.treeContext,lt=wn(C.nextSibling),Ot=n,He=!0,Ua=null,xn=!1,e!==null&&Yh(n,e),n=Ad(n,i.children),n.flags|=4096);return n}return u?(Ga(),C=i.fallback,u=n.mode,A=e.child,W=A.sibling,i=ua(A,{mode:"hidden",children:i.children}),i.subtreeFlags=A.subtreeFlags&65011712,W!==null?C=ua(W,C):(C=Mr(C,u,r,null),C.flags|=2),C.return=n,i.return=n,i.sibling=C,n.child=i,Vl(null,i),i=n.child,C=e.child.memoizedState,C===null?C=jd(r):(u=C.cachePool,u!==null?(A=gt._currentValue,u=u.parent!==A?{parent:A,pool:A}:u):u=Fh(),C={baseLanes:C.baseLanes|r,cachePool:u}),i.memoizedState=C,i.childLanes=Rd(e,x,r),n.memoizedState=Dd,Vl(e.child,i)):(Ia(n),r=e.child,e=r.sibling,r=ua(r,{mode:"visible",children:i.children}),r.return=n,r.sibling=null,e!==null&&(x=n.deletions,x===null?(n.deletions=[e],n.flags|=16):x.push(e)),n.child=r,n.memoizedState=null,r)}function Ad(e,n){return n=Os({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Os(e,n){return e=nn(22,e,null,n),e.lanes=0,e}function zd(e,n,r){return Rr(n,e.child,null,r),e=Ad(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function lv(e,n,r){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n),Xu(e.return,n,r)}function Ud(e,n,r,i,u,m){var x=e.memoizedState;x===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:i,tail:r,tailMode:u,treeForkCount:m}:(x.isBackwards=n,x.rendering=null,x.renderingStartTime=0,x.last=i,x.tail=r,x.tailMode=u,x.treeForkCount=m)}function iv(e,n,r){var i=n.pendingProps,u=i.revealOrder,m=i.tail;i=i.children;var x=mt.current,C=(x&2)!==0;if(C?(x=x&1|2,n.flags|=128):x&=1,$(mt,x),jt(e,n,i,r),i=He?Dl:0,!C&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lv(e,r,n);else if(e.tag===19)lv(e,r,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(r=n.child,u=null;r!==null;)e=r.alternate,e!==null&&ys(e)===null&&(u=r),r=r.sibling;r=u,r===null?(u=n.child,n.child=null):(u=r.sibling,r.sibling=null),Ud(n,!1,u,r,m,i);break;case"backwards":case"unstable_legacy-backwards":for(r=null,u=n.child,n.child=null;u!==null;){if(e=u.alternate,e!==null&&ys(e)===null){n.child=u;break}e=u.sibling,u.sibling=r,r=u,u=e}Ud(n,!0,r,null,m,i);break;case"together":Ud(n,!1,null,null,void 0,i);break;default:n.memoizedState=null}return n.child}function ga(e,n,r){if(e!==null&&(n.dependencies=e.dependencies),Wa|=n.lanes,(r&n.childLanes)===0)if(e!==null){if(wo(e,n,r,!1),(r&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(s(153));if(n.child!==null){for(e=n.child,r=ua(e,e.pendingProps),n.child=r,r.return=n;e.sibling!==null;)e=e.sibling,r=r.sibling=ua(e,e.pendingProps),r.return=n;r.sibling=null}return n.child}function Ld(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&us(e)))}function SC(e,n,r){switch(n.tag){case 3:xe(n,n.stateNode.containerInfo),Pa(n,gt,e.memoizedState.cache),Nr();break;case 27:case 5:De(n);break;case 4:xe(n,n.stateNode.containerInfo);break;case 10:Pa(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,sd(n),null;break;case 13:var i=n.memoizedState;if(i!==null)return i.dehydrated!==null?(Ia(n),n.flags|=128,null):(r&n.child.childLanes)!==0?ov(e,n,r):(Ia(n),e=ga(e,n,r),e!==null?e.sibling:null);Ia(n);break;case 19:var u=(e.flags&128)!==0;if(i=(r&n.childLanes)!==0,i||(wo(e,n,r,!1),i=(r&n.childLanes)!==0),u){if(i)return iv(e,n,r);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),$(mt,mt.current),i)break;return null;case 22:return n.lanes=0,Jg(e,n,r,n.pendingProps);case 24:Pa(n,gt,e.memoizedState.cache)}return ga(e,n,r)}function sv(e,n,r){if(e!==null)if(e.memoizedProps!==n.pendingProps)yt=!0;else{if(!Ld(e,r)&&(n.flags&128)===0)return yt=!1,SC(e,n,r);yt=(e.flags&131072)!==0}else yt=!1,He&&(n.flags&1048576)!==0&&Hh(n,Dl,n.index);switch(n.lanes=0,n.tag){case 16:e:{var i=n.pendingProps;if(e=Dr(n.elementType),n.type=e,typeof e=="function")Iu(e)?(i=zr(e,i),n.tag=1,n=av(null,n,e,i,r)):(n.tag=0,n=Od(null,n,e,i,r));else{if(e!=null){var u=e.$$typeof;if(u===R){n.tag=11,n=Xg(null,n,e,i,r);break e}else if(u===H){n.tag=14,n=Zg(null,n,e,i,r);break e}}throw n=V(e)||e,Error(s(306,n,""))}}return n;case 0:return Od(e,n,n.type,n.pendingProps,r);case 1:return i=n.type,u=zr(i,n.pendingProps),av(e,n,i,u,r);case 3:e:{if(xe(n,n.stateNode.containerInfo),e===null)throw Error(s(387));i=n.pendingProps;var m=n.memoizedState;u=m.element,ad(e,n),Bl(n,i,null,r);var x=n.memoizedState;if(i=x.cache,Pa(n,gt,i),i!==m.cache&&Zu(n,[gt],r,!0),Pl(),i=x.element,m.isDehydrated)if(m={element:i,isDehydrated:!1,cache:x.cache},n.updateQueue.baseState=m,n.memoizedState=m,n.flags&256){n=rv(e,n,i,r);break e}else if(i!==u){u=vn(Error(s(424)),n),jl(u),n=rv(e,n,i,r);break e}else for(e=n.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,lt=wn(e.firstChild),Ot=n,He=!0,Ua=null,xn=!0,r=Jh(n,null,i,r),n.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Nr(),i===u){n=ga(e,n,r);break e}jt(e,n,i,r)}n=n.child}return n;case 26:return ks(e,n),e===null?(r=by(n.type,null,n.pendingProps,null))?n.memoizedState=r:He||(r=n.type,e=n.pendingProps,i=Ws(X.current).createElement(r),i[kt]=n,i[Ft]=e,Rt(i,r,e),Et(i),n.stateNode=i):n.memoizedState=by(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return De(n),e===null&&He&&(i=n.stateNode=gy(n.type,n.pendingProps,X.current),Ot=n,xn=!0,u=lt,Za(n.type)?(vf=u,lt=wn(i.firstChild)):lt=u),jt(e,n,n.pendingProps.children,r),ks(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&He&&((u=i=lt)&&(i=ZC(i,n.type,n.pendingProps,xn),i!==null?(n.stateNode=i,Ot=n,lt=wn(i.firstChild),xn=!1,u=!0):u=!1),u||La(n)),De(n),u=n.type,m=n.pendingProps,x=e!==null?e.memoizedProps:null,i=m.children,ff(u,m)?i=null:x!==null&&ff(u,x)&&(n.flags|=32),n.memoizedState!==null&&(u=ud(e,n,fC,null,null,r),oi._currentValue=u),ks(e,n),jt(e,n,i,r),n.child;case 6:return e===null&&He&&((e=r=lt)&&(r=QC(r,n.pendingProps,xn),r!==null?(n.stateNode=r,Ot=n,lt=null,e=!0):e=!1),e||La(n)),null;case 13:return ov(e,n,r);case 4:return xe(n,n.stateNode.containerInfo),i=n.pendingProps,e===null?n.child=Rr(n,null,i,r):jt(e,n,i,r),n.child;case 11:return Xg(e,n,n.type,n.pendingProps,r);case 7:return jt(e,n,n.pendingProps,r),n.child;case 8:return jt(e,n,n.pendingProps.children,r),n.child;case 12:return jt(e,n,n.pendingProps.children,r),n.child;case 10:return i=n.pendingProps,Pa(n,n.type,i.value),jt(e,n,i.children,r),n.child;case 9:return u=n.type._context,i=n.pendingProps.children,kr(n),u=Dt(u),i=i(u),n.flags|=1,jt(e,n,i,r),n.child;case 14:return Zg(e,n,n.type,n.pendingProps,r);case 15:return Qg(e,n,n.type,n.pendingProps,r);case 19:return iv(e,n,r);case 31:return xC(e,n,r);case 22:return Jg(e,n,r,n.pendingProps);case 24:return kr(n),i=Dt(gt),e===null?(u=ed(),u===null&&(u=at,m=Qu(),u.pooledCache=m,m.refCount++,m!==null&&(u.pooledCacheLanes|=r),u=m),n.memoizedState={parent:i,cache:u},nd(n),Pa(n,gt,u)):((e.lanes&r)!==0&&(ad(e,n),Bl(n,null,null,r),Pl()),u=e.memoizedState,m=n.memoizedState,u.parent!==i?(u={parent:i,cache:i},n.memoizedState=u,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=u),Pa(n,gt,i)):(i=m.cache,Pa(n,gt,i),i!==u.cache&&Zu(n,[gt],r,!0))),jt(e,n,n.pendingProps.children,r),n.child;case 29:throw n.pendingProps}throw Error(s(156,n.tag))}function va(e){e.flags|=4}function Pd(e,n,r,i,u){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(zv())e.flags|=8192;else throw jr=ps,td}else e.flags&=-16777217}function cv(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Cy(n))if(zv())e.flags|=8192;else throw jr=ps,td}function Ds(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?ao():536870912,e.lanes|=n,Ao|=n)}function ql(e,n){if(!He)switch(e.tailMode){case"hidden":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function it(e){var n=e.alternate!==null&&e.alternate.child===e.child,r=0,i=0;if(n)for(var u=e.child;u!==null;)r|=u.lanes|u.childLanes,i|=u.subtreeFlags&65011712,i|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)r|=u.lanes|u.childLanes,i|=u.subtreeFlags,i|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=i,e.childLanes=r,n}function wC(e,n,r){var i=n.pendingProps;switch(Wu(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(n),null;case 1:return it(n),null;case 3:return r=n.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),ma(gt),pe(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(So(n)?va(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,$u())),it(n),null;case 26:var u=n.type,m=n.memoizedState;return e===null?(va(n),m!==null?(it(n),cv(n,m)):(it(n),Pd(n,u,null,i,r))):m?m!==e.memoizedState?(va(n),it(n),cv(n,m)):(it(n),n.flags&=-16777217):(e=e.memoizedProps,e!==i&&va(n),it(n),Pd(n,u,e,i,r)),null;case 27:if(Ue(n),r=X.current,u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==i&&va(n);else{if(!i){if(n.stateNode===null)throw Error(s(166));return it(n),null}e=Q.current,So(n)?Ih(n):(e=gy(u,i,r),n.stateNode=e,va(n))}return it(n),null;case 5:if(Ue(n),u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==i&&va(n);else{if(!i){if(n.stateNode===null)throw Error(s(166));return it(n),null}if(m=Q.current,So(n))Ih(n);else{var x=Ws(X.current);switch(m){case 1:m=x.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:m=x.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":m=x.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":m=x.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":m=x.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof i.is=="string"?x.createElement("select",{is:i.is}):x.createElement("select"),i.multiple?m.multiple=!0:i.size&&(m.size=i.size);break;default:m=typeof i.is=="string"?x.createElement(u,{is:i.is}):x.createElement(u)}}m[kt]=n,m[Ft]=i;e:for(x=n.child;x!==null;){if(x.tag===5||x.tag===6)m.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===n)break e;for(;x.sibling===null;){if(x.return===null||x.return===n)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}n.stateNode=m;e:switch(Rt(m,u,i),u){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&va(n)}}return it(n),Pd(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,r),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==i&&va(n);else{if(typeof i!="string"&&n.stateNode===null)throw Error(s(166));if(e=X.current,So(n)){if(e=n.stateNode,r=n.memoizedProps,i=null,u=Ot,u!==null)switch(u.tag){case 27:case 5:i=u.memoizedProps}e[kt]=n,e=!!(e.nodeValue===r||i!==null&&i.suppressHydrationWarning===!0||oy(e.nodeValue,r)),e||La(n,!0)}else e=Ws(e).createTextNode(i),e[kt]=n,n.stateNode=e}return it(n),null;case 31:if(r=n.memoizedState,e===null||e.memoizedState!==null){if(i=So(n),r!==null){if(e===null){if(!i)throw Error(s(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[kt]=n}else Nr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;it(n),e=!1}else r=$u(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return n.flags&256?(rn(n),n):(rn(n),null);if((n.flags&128)!==0)throw Error(s(558))}return it(n),null;case 13:if(i=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=So(n),i!==null&&i.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=n.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[kt]=n}else Nr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;it(n),u=!1}else u=$u(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return n.flags&256?(rn(n),n):(rn(n),null)}return rn(n),(n.flags&128)!==0?(n.lanes=r,n):(r=i!==null,e=e!==null&&e.memoizedState!==null,r&&(i=n.child,u=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(u=i.alternate.memoizedState.cachePool.pool),m=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(m=i.memoizedState.cachePool.pool),m!==u&&(i.flags|=2048)),r!==e&&r&&(n.child.flags|=8192),Ds(n,n.updateQueue),it(n),null);case 4:return pe(),e===null&&lf(n.stateNode.containerInfo),it(n),null;case 10:return ma(n.type),it(n),null;case 19:if(B(mt),i=n.memoizedState,i===null)return it(n),null;if(u=(n.flags&128)!==0,m=i.rendering,m===null)if(u)ql(i,!1);else{if(ft!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(m=ys(e),m!==null){for(n.flags|=128,ql(i,!1),e=m.updateQueue,n.updateQueue=e,Ds(n,e),n.subtreeFlags=0,e=r,r=n.child;r!==null;)Lh(r,e),r=r.sibling;return $(mt,mt.current&1|2),He&&da(n,i.treeForkCount),n.child}e=e.sibling}i.tail!==null&&he()>Us&&(n.flags|=128,u=!0,ql(i,!1),n.lanes=4194304)}else{if(!u)if(e=ys(m),e!==null){if(n.flags|=128,u=!0,e=e.updateQueue,n.updateQueue=e,Ds(n,e),ql(i,!0),i.tail===null&&i.tailMode==="hidden"&&!m.alternate&&!He)return it(n),null}else 2*he()-i.renderingStartTime>Us&&r!==536870912&&(n.flags|=128,u=!0,ql(i,!1),n.lanes=4194304);i.isBackwards?(m.sibling=n.child,n.child=m):(e=i.last,e!==null?e.sibling=m:n.child=m,i.last=m)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=he(),e.sibling=null,r=mt.current,$(mt,u?r&1|2:r&1),He&&da(n,i.treeForkCount),e):(it(n),null);case 22:case 23:return rn(n),id(),i=n.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(n.flags|=8192):i&&(n.flags|=8192),i?(r&536870912)!==0&&(n.flags&128)===0&&(it(n),n.subtreeFlags&6&&(n.flags|=8192)):it(n),r=n.updateQueue,r!==null&&Ds(n,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==r&&(n.flags|=2048),e!==null&&B(Or),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),n.memoizedState.cache!==r&&(n.flags|=2048),ma(gt),it(n),null;case 25:return null;case 30:return null}throw Error(s(156,n.tag))}function _C(e,n){switch(Wu(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return ma(gt),pe(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Ue(n),null;case 31:if(n.memoizedState!==null){if(rn(n),n.alternate===null)throw Error(s(340));Nr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(rn(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(s(340));Nr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return B(mt),null;case 4:return pe(),null;case 10:return ma(n.type),null;case 22:case 23:return rn(n),id(),e!==null&&B(Or),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return ma(gt),null;case 25:return null;default:return null}}function uv(e,n){switch(Wu(n),n.tag){case 3:ma(gt),pe();break;case 26:case 27:case 5:Ue(n);break;case 4:pe();break;case 31:n.memoizedState!==null&&rn(n);break;case 13:rn(n);break;case 19:B(mt);break;case 10:ma(n.type);break;case 22:case 23:rn(n),id(),e!==null&&B(Or);break;case 24:ma(gt)}}function Wl(e,n){try{var r=n.updateQueue,i=r!==null?r.lastEffect:null;if(i!==null){var u=i.next;r=u;do{if((r.tag&e)===e){i=void 0;var m=r.create,x=r.inst;i=m(),x.destroy=i}r=r.next}while(r!==u)}}catch(C){Xe(n,n.return,C)}}function Va(e,n,r){try{var i=n.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var m=u.next;i=m;do{if((i.tag&e)===e){var x=i.inst,C=x.destroy;if(C!==void 0){x.destroy=void 0,u=n;var A=r,W=C;try{W()}catch(ee){Xe(u,A,ee)}}}i=i.next}while(i!==m)}}catch(ee){Xe(n,n.return,ee)}}function dv(e){var n=e.updateQueue;if(n!==null){var r=e.stateNode;try{tg(n,r)}catch(i){Xe(e,e.return,i)}}}function fv(e,n,r){r.props=zr(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(i){Xe(e,n,i)}}function Fl(e,n){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof r=="function"?e.refCleanup=r(i):r.current=i}}catch(u){Xe(e,n,u)}}function qn(e,n){var r=e.ref,i=e.refCleanup;if(r!==null)if(typeof i=="function")try{i()}catch(u){Xe(e,n,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(u){Xe(e,n,u)}else r.current=null}function mv(e){var n=e.type,r=e.memoizedProps,i=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":r.autoFocus&&i.focus();break e;case"img":r.src?i.src=r.src:r.srcSet&&(i.srcset=r.srcSet)}}catch(u){Xe(e,e.return,u)}}function Bd(e,n,r){try{var i=e.stateNode;qC(i,e.type,r,n),i[Ft]=n}catch(u){Xe(e,e.return,u)}}function pv(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Za(e.type)||e.tag===4}function Hd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pv(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&&Za(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yd(e,n,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,n?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,n):(n=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,n.appendChild(e),r=r._reactRootContainer,r!=null||n.onclick!==null||(n.onclick=sa));else if(i!==4&&(i===27&&Za(e.type)&&(r=e.stateNode,n=null),e=e.child,e!==null))for(Yd(e,n,r),e=e.sibling;e!==null;)Yd(e,n,r),e=e.sibling}function js(e,n,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,n?r.insertBefore(e,n):r.appendChild(e);else if(i!==4&&(i===27&&Za(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(js(e,n,r),e=e.sibling;e!==null;)js(e,n,r),e=e.sibling}function hv(e){var n=e.stateNode,r=e.memoizedProps;try{for(var i=e.type,u=n.attributes;u.length;)n.removeAttributeNode(u[0]);Rt(n,i,r),n[kt]=e,n[Ft]=r}catch(m){Xe(e,e.return,m)}}var ya=!1,bt=!1,Id=!1,gv=typeof WeakSet=="function"?WeakSet:Set,Mt=null;function CC(e,n){if(e=e.containerInfo,uf=Js,e=Th(e),zu(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var u=i.anchorOffset,m=i.focusNode;i=i.focusOffset;try{r.nodeType,m.nodeType}catch{r=null;break e}var x=0,C=-1,A=-1,W=0,ee=0,re=e,K=null;t:for(;;){for(var Z;re!==r||u!==0&&re.nodeType!==3||(C=x+u),re!==m||i!==0&&re.nodeType!==3||(A=x+i),re.nodeType===3&&(x+=re.nodeValue.length),(Z=re.firstChild)!==null;)K=re,re=Z;for(;;){if(re===e)break t;if(K===r&&++W===u&&(C=x),K===m&&++ee===i&&(A=x),(Z=re.nextSibling)!==null)break;re=K,K=re.parentNode}re=Z}r=C===-1||A===-1?null:{start:C,end:A}}else r=null}r=r||{start:0,end:0}}else r=null;for(df={focusedElem:e,selectionRange:r},Js=!1,Mt=n;Mt!==null;)if(n=Mt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,Mt=e;else for(;Mt!==null;){switch(n=Mt,m=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)u=e[r],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&m!==null){e=void 0,r=n,u=m.memoizedProps,m=m.memoizedState,i=r.stateNode;try{var ge=zr(r.type,u);e=i.getSnapshotBeforeUpdate(ge,m),i.__reactInternalSnapshotBeforeUpdate=e}catch(Ce){Xe(r,r.return,Ce)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,r=e.nodeType,r===9)pf(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":pf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=n.sibling,e!==null){e.return=n.return,Mt=e;break}Mt=n.return}}function vv(e,n,r){var i=r.flags;switch(r.tag){case 0:case 11:case 15:xa(e,r),i&4&&Wl(5,r);break;case 1:if(xa(e,r),i&4)if(e=r.stateNode,n===null)try{e.componentDidMount()}catch(x){Xe(r,r.return,x)}else{var u=zr(r.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(u,n,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Xe(r,r.return,x)}}i&64&&dv(r),i&512&&Fl(r,r.return);break;case 3:if(xa(e,r),i&64&&(e=r.updateQueue,e!==null)){if(n=null,r.child!==null)switch(r.child.tag){case 27:case 5:n=r.child.stateNode;break;case 1:n=r.child.stateNode}try{tg(e,n)}catch(x){Xe(r,r.return,x)}}break;case 27:n===null&&i&4&&hv(r);case 26:case 5:xa(e,r),n===null&&i&4&&mv(r),i&512&&Fl(r,r.return);break;case 12:xa(e,r);break;case 31:xa(e,r),i&4&&xv(e,r);break;case 13:xa(e,r),i&4&&Sv(e,r),i&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=RC.bind(null,r),JC(e,r))));break;case 22:if(i=r.memoizedState!==null||ya,!i){n=n!==null&&n.memoizedState!==null||bt,u=ya;var m=bt;ya=i,(bt=n)&&!m?Sa(e,r,(r.subtreeFlags&8772)!==0):xa(e,r),ya=u,bt=m}break;case 30:break;default:xa(e,r)}}function yv(e){var n=e.alternate;n!==null&&(e.alternate=null,yv(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&yu(n)),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 st=null,Kt=!1;function ba(e,n,r){for(r=r.child;r!==null;)bv(e,n,r),r=r.sibling}function bv(e,n,r){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(en,r)}catch{}switch(r.tag){case 26:bt||qn(r,n),ba(e,n,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:bt||qn(r,n);var i=st,u=Kt;Za(r.type)&&(st=r.stateNode,Kt=!1),ba(e,n,r),ni(r.stateNode),st=i,Kt=u;break;case 5:bt||qn(r,n);case 6:if(i=st,u=Kt,st=null,ba(e,n,r),st=i,Kt=u,st!==null)if(Kt)try{(st.nodeType===9?st.body:st.nodeName==="HTML"?st.ownerDocument.body:st).removeChild(r.stateNode)}catch(m){Xe(r,n,m)}else try{st.removeChild(r.stateNode)}catch(m){Xe(r,n,m)}break;case 18:st!==null&&(Kt?(e=st,dy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),Io(e)):dy(st,r.stateNode));break;case 4:i=st,u=Kt,st=r.stateNode.containerInfo,Kt=!0,ba(e,n,r),st=i,Kt=u;break;case 0:case 11:case 14:case 15:Va(2,r,n),bt||Va(4,r,n),ba(e,n,r);break;case 1:bt||(qn(r,n),i=r.stateNode,typeof i.componentWillUnmount=="function"&&fv(r,n,i)),ba(e,n,r);break;case 21:ba(e,n,r);break;case 22:bt=(i=bt)||r.memoizedState!==null,ba(e,n,r),bt=i;break;default:ba(e,n,r)}}function xv(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Io(e)}catch(r){Xe(n,n.return,r)}}}function Sv(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Io(e)}catch(r){Xe(n,n.return,r)}}function EC(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new gv),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new gv),n;default:throw Error(s(435,e.tag))}}function Rs(e,n){var r=EC(e);n.forEach(function(i){if(!r.has(i)){r.add(i);var u=AC.bind(null,e,i);i.then(u,u)}})}function Xt(e,n){var r=n.deletions;if(r!==null)for(var i=0;i<r.length;i++){var u=r[i],m=e,x=n,C=x;e:for(;C!==null;){switch(C.tag){case 27:if(Za(C.type)){st=C.stateNode,Kt=!1;break e}break;case 5:st=C.stateNode,Kt=!1;break e;case 3:case 4:st=C.stateNode.containerInfo,Kt=!0;break e}C=C.return}if(st===null)throw Error(s(160));bv(m,x,u),st=null,Kt=!1,m=u.alternate,m!==null&&(m.return=null),u.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)wv(n,e),n=n.sibling}var jn=null;function wv(e,n){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Xt(n,e),Zt(e),i&4&&(Va(3,e,e.return),Wl(3,e),Va(5,e,e.return));break;case 1:Xt(n,e),Zt(e),i&512&&(bt||r===null||qn(r,r.return)),i&64&&ya&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?i:r.concat(i))));break;case 26:var u=jn;if(Xt(n,e),Zt(e),i&512&&(bt||r===null||qn(r,r.return)),i&4){var m=r!==null?r.memoizedState:null;if(i=e.memoizedState,r===null)if(i===null)if(e.stateNode===null){e:{i=e.type,r=e.memoizedProps,u=u.ownerDocument||u;t:switch(i){case"title":m=u.getElementsByTagName("title")[0],(!m||m[xl]||m[kt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=u.createElement(i),u.head.insertBefore(m,u.querySelector("head > title"))),Rt(m,i,r),m[kt]=e,Et(m),i=m;break e;case"link":var x=wy("link","href",u).get(i+(r.href||""));if(x){for(var C=0;C<x.length;C++)if(m=x[C],m.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&m.getAttribute("rel")===(r.rel==null?null:r.rel)&&m.getAttribute("title")===(r.title==null?null:r.title)&&m.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){x.splice(C,1);break t}}m=u.createElement(i),Rt(m,i,r),u.head.appendChild(m);break;case"meta":if(x=wy("meta","content",u).get(i+(r.content||""))){for(C=0;C<x.length;C++)if(m=x[C],m.getAttribute("content")===(r.content==null?null:""+r.content)&&m.getAttribute("name")===(r.name==null?null:r.name)&&m.getAttribute("property")===(r.property==null?null:r.property)&&m.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&m.getAttribute("charset")===(r.charSet==null?null:r.charSet)){x.splice(C,1);break t}}m=u.createElement(i),Rt(m,i,r),u.head.appendChild(m);break;default:throw Error(s(468,i))}m[kt]=e,Et(m),i=m}e.stateNode=i}else _y(u,e.type,e.stateNode);else e.stateNode=Sy(u,i,e.memoizedProps);else m!==i?(m===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):m.count--,i===null?_y(u,e.type,e.stateNode):Sy(u,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Bd(e,e.memoizedProps,r.memoizedProps)}break;case 27:Xt(n,e),Zt(e),i&512&&(bt||r===null||qn(r,r.return)),r!==null&&i&4&&Bd(e,e.memoizedProps,r.memoizedProps);break;case 5:if(Xt(n,e),Zt(e),i&512&&(bt||r===null||qn(r,r.return)),e.flags&32){u=e.stateNode;try{uo(u,"")}catch(ge){Xe(e,e.return,ge)}}i&4&&e.stateNode!=null&&(u=e.memoizedProps,Bd(e,u,r!==null?r.memoizedProps:u)),i&1024&&(Id=!0);break;case 6:if(Xt(n,e),Zt(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,r=e.stateNode;try{r.nodeValue=i}catch(ge){Xe(e,e.return,ge)}}break;case 3:if(Ks=null,u=jn,jn=Fs(n.containerInfo),Xt(n,e),jn=u,Zt(e),i&4&&r!==null&&r.memoizedState.isDehydrated)try{Io(n.containerInfo)}catch(ge){Xe(e,e.return,ge)}Id&&(Id=!1,_v(e));break;case 4:i=jn,jn=Fs(e.stateNode.containerInfo),Xt(n,e),Zt(e),jn=i;break;case 12:Xt(n,e),Zt(e);break;case 31:Xt(n,e),Zt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Rs(e,i)));break;case 13:Xt(n,e),Zt(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(zs=he()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Rs(e,i)));break;case 22:u=e.memoizedState!==null;var A=r!==null&&r.memoizedState!==null,W=ya,ee=bt;if(ya=W||u,bt=ee||A,Xt(n,e),bt=ee,ya=W,Zt(e),i&8192)e:for(n=e.stateNode,n._visibility=u?n._visibility&-2:n._visibility|1,u&&(r===null||A||ya||bt||Ur(e)),r=null,n=e;;){if(n.tag===5||n.tag===26){if(r===null){A=r=n;try{if(m=A.stateNode,u)x=m.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{C=A.stateNode;var re=A.memoizedProps.style,K=re!=null&&re.hasOwnProperty("display")?re.display:null;C.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(ge){Xe(A,A.return,ge)}}}else if(n.tag===6){if(r===null){A=n;try{A.stateNode.nodeValue=u?"":A.memoizedProps}catch(ge){Xe(A,A.return,ge)}}}else if(n.tag===18){if(r===null){A=n;try{var Z=A.stateNode;u?fy(Z,!0):fy(A.stateNode,!1)}catch(ge){Xe(A,A.return,ge)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;r===n&&(r=null),n=n.return}r===n&&(r=null),n.sibling.return=n.return,n=n.sibling}i&4&&(i=e.updateQueue,i!==null&&(r=i.retryQueue,r!==null&&(i.retryQueue=null,Rs(e,r))));break;case 19:Xt(n,e),Zt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Rs(e,i)));break;case 30:break;case 21:break;default:Xt(n,e),Zt(e)}}function Zt(e){var n=e.flags;if(n&2){try{for(var r,i=e.return;i!==null;){if(pv(i)){r=i;break}i=i.return}if(r==null)throw Error(s(160));switch(r.tag){case 27:var u=r.stateNode,m=Hd(e);js(e,m,u);break;case 5:var x=r.stateNode;r.flags&32&&(uo(x,""),r.flags&=-33);var C=Hd(e);js(e,C,x);break;case 3:case 4:var A=r.stateNode.containerInfo,W=Hd(e);Yd(e,W,A);break;default:throw Error(s(161))}}catch(ee){Xe(e,e.return,ee)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function _v(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;_v(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function xa(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)vv(e,n.alternate,n),n=n.sibling}function Ur(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Va(4,n,n.return),Ur(n);break;case 1:qn(n,n.return);var r=n.stateNode;typeof r.componentWillUnmount=="function"&&fv(n,n.return,r),Ur(n);break;case 27:ni(n.stateNode);case 26:case 5:qn(n,n.return),Ur(n);break;case 22:n.memoizedState===null&&Ur(n);break;case 30:Ur(n);break;default:Ur(n)}e=e.sibling}}function Sa(e,n,r){for(r=r&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var i=n.alternate,u=e,m=n,x=m.flags;switch(m.tag){case 0:case 11:case 15:Sa(u,m,r),Wl(4,m);break;case 1:if(Sa(u,m,r),i=m,u=i.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(W){Xe(i,i.return,W)}if(i=m,u=i.updateQueue,u!==null){var C=i.stateNode;try{var A=u.shared.hiddenCallbacks;if(A!==null)for(u.shared.hiddenCallbacks=null,u=0;u<A.length;u++)eg(A[u],C)}catch(W){Xe(i,i.return,W)}}r&&x&64&&dv(m),Fl(m,m.return);break;case 27:hv(m);case 26:case 5:Sa(u,m,r),r&&i===null&&x&4&&mv(m),Fl(m,m.return);break;case 12:Sa(u,m,r);break;case 31:Sa(u,m,r),r&&x&4&&xv(u,m);break;case 13:Sa(u,m,r),r&&x&4&&Sv(u,m);break;case 22:m.memoizedState===null&&Sa(u,m,r),Fl(m,m.return);break;case 30:break;default:Sa(u,m,r)}n=n.sibling}}function Gd(e,n){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&Rl(r))}function Vd(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Rl(e))}function Rn(e,n,r,i){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Cv(e,n,r,i),n=n.sibling}function Cv(e,n,r,i){var u=n.flags;switch(n.tag){case 0:case 11:case 15:Rn(e,n,r,i),u&2048&&Wl(9,n);break;case 1:Rn(e,n,r,i);break;case 3:Rn(e,n,r,i),u&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Rl(e)));break;case 12:if(u&2048){Rn(e,n,r,i),e=n.stateNode;try{var m=n.memoizedProps,x=m.id,C=m.onPostCommit;typeof C=="function"&&C(x,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){Xe(n,n.return,A)}}else Rn(e,n,r,i);break;case 31:Rn(e,n,r,i);break;case 13:Rn(e,n,r,i);break;case 23:break;case 22:m=n.stateNode,x=n.alternate,n.memoizedState!==null?m._visibility&2?Rn(e,n,r,i):$l(e,n):m._visibility&2?Rn(e,n,r,i):(m._visibility|=2,Do(e,n,r,i,(n.subtreeFlags&10256)!==0||!1)),u&2048&&Gd(x,n);break;case 24:Rn(e,n,r,i),u&2048&&Vd(n.alternate,n);break;default:Rn(e,n,r,i)}}function Do(e,n,r,i,u){for(u=u&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var m=e,x=n,C=r,A=i,W=x.flags;switch(x.tag){case 0:case 11:case 15:Do(m,x,C,A,u),Wl(8,x);break;case 23:break;case 22:var ee=x.stateNode;x.memoizedState!==null?ee._visibility&2?Do(m,x,C,A,u):$l(m,x):(ee._visibility|=2,Do(m,x,C,A,u)),u&&W&2048&&Gd(x.alternate,x);break;case 24:Do(m,x,C,A,u),u&&W&2048&&Vd(x.alternate,x);break;default:Do(m,x,C,A,u)}n=n.sibling}}function $l(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var r=e,i=n,u=i.flags;switch(i.tag){case 22:$l(r,i),u&2048&&Gd(i.alternate,i);break;case 24:$l(r,i),u&2048&&Vd(i.alternate,i);break;default:$l(r,i)}n=n.sibling}}var Kl=8192;function jo(e,n,r){if(e.subtreeFlags&Kl)for(e=e.child;e!==null;)Ev(e,n,r),e=e.sibling}function Ev(e,n,r){switch(e.tag){case 26:jo(e,n,r),e.flags&Kl&&e.memoizedState!==null&&dE(r,jn,e.memoizedState,e.memoizedProps);break;case 5:jo(e,n,r);break;case 3:case 4:var i=jn;jn=Fs(e.stateNode.containerInfo),jo(e,n,r),jn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Kl,Kl=16777216,jo(e,n,r),Kl=i):jo(e,n,r));break;default:jo(e,n,r)}}function Mv(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Xl(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];Mt=i,Tv(i,e)}Mv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Nv(e),e=e.sibling}function Nv(e){switch(e.tag){case 0:case 11:case 15:Xl(e),e.flags&2048&&Va(9,e,e.return);break;case 3:Xl(e);break;case 12:Xl(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,As(e)):Xl(e);break;default:Xl(e)}}function As(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];Mt=i,Tv(i,e)}Mv(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Va(8,n,n.return),As(n);break;case 22:r=n.stateNode,r._visibility&2&&(r._visibility&=-3,As(n));break;default:As(n)}e=e.sibling}}function Tv(e,n){for(;Mt!==null;){var r=Mt;switch(r.tag){case 0:case 11:case 15:Va(8,r,n);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var i=r.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Rl(r.memoizedState.cache)}if(i=r.child,i!==null)i.return=r,Mt=i;else e:for(r=e;Mt!==null;){i=Mt;var u=i.sibling,m=i.return;if(yv(i),i===r){Mt=null;break e}if(u!==null){u.return=m,Mt=u;break e}Mt=m}}}var MC={getCacheForType:function(e){var n=Dt(gt),r=n.data.get(e);return r===void 0&&(r=e(),n.data.set(e,r)),r},cacheSignal:function(){return Dt(gt).controller.signal}},NC=typeof WeakMap=="function"?WeakMap:Map,We=0,at=null,Ae=null,Pe=0,Ke=0,on=null,qa=!1,Ro=!1,qd=!1,wa=0,ft=0,Wa=0,Lr=0,Wd=0,ln=0,Ao=0,Zl=null,Qt=null,Fd=!1,zs=0,kv=0,Us=1/0,Ls=null,Fa=null,St=0,$a=null,zo=null,_a=0,$d=0,Kd=null,Ov=null,Ql=0,Xd=null;function sn(){return(We&2)!==0&&Pe!==0?Pe&-Pe:I.T!==null?nf():Wp()}function Dv(){if(ln===0)if((Pe&536870912)===0||He){var e=Le;Le<<=1,(Le&3932160)===0&&(Le=262144),ln=e}else ln=536870912;return e=an.current,e!==null&&(e.flags|=32),ln}function Jt(e,n,r){(e===at&&(Ke===2||Ke===9)||e.cancelPendingCommit!==null)&&(Uo(e,0),Ka(e,Pe,ln,!1)),bl(e,r),((We&2)===0||e!==at)&&(e===at&&((We&2)===0&&(Lr|=r),ft===4&&Ka(e,Pe,ln,!1)),Wn(e))}function jv(e,n,r){if((We&6)!==0)throw Error(s(327));var i=!r&&(n&127)===0&&(n&e.expiredLanes)===0||br(e,n),u=i?OC(e,n):Qd(e,n,!0),m=i;do{if(u===0){Ro&&!i&&Ka(e,n,0,!1);break}else{if(r=e.current.alternate,m&&!TC(r)){u=Qd(e,n,!1),m=!1;continue}if(u===2){if(m=n,e.errorRecoveryDisabledLanes&m)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){n=x;e:{var C=e;u=Zl;var A=C.current.memoizedState.isDehydrated;if(A&&(Uo(C,x).flags|=256),x=Qd(C,x,!1),x!==2){if(qd&&!A){C.errorRecoveryDisabledLanes|=m,Lr|=m,u=4;break e}m=Qt,Qt=u,m!==null&&(Qt===null?Qt=m:Qt.push.apply(Qt,m))}u=x}if(m=!1,u!==2)continue}}if(u===1){Uo(e,0),Ka(e,n,0,!0);break}e:{switch(i=e,m=u,m){case 0:case 1:throw Error(s(345));case 4:if((n&4194048)!==n)break;case 6:Ka(i,n,ln,!qa);break e;case 2:Qt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((n&62914560)===n&&(u=zs+300-he(),10<u)){if(Ka(i,n,ln,!qa),no(i,0,!0)!==0)break e;_a=n,i.timeoutHandle=cy(Rv.bind(null,i,r,Qt,Ls,Fd,n,ln,Lr,Ao,qa,m,"Throttled",-0,0),u);break e}Rv(i,r,Qt,Ls,Fd,n,ln,Lr,Ao,qa,m,null,-0,0)}}break}while(!0);Wn(e)}function Rv(e,n,r,i,u,m,x,C,A,W,ee,re,K,Z){if(e.timeoutHandle=-1,re=n.subtreeFlags,re&8192||(re&16785408)===16785408){re={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:sa},Ev(n,m,re);var ge=(m&62914560)===m?zs-he():(m&4194048)===m?kv-he():0;if(ge=fE(re,ge),ge!==null){_a=m,e.cancelPendingCommit=ge(Yv.bind(null,e,n,m,r,i,u,x,C,A,ee,re,null,K,Z)),Ka(e,m,x,!W);return}}Yv(e,n,m,r,i,u,x,C,A)}function TC(e){for(var n=e;;){var r=n.tag;if((r===0||r===11||r===15)&&n.flags&16384&&(r=n.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var i=0;i<r.length;i++){var u=r[i],m=u.getSnapshot;u=u.value;try{if(!tn(m(),u))return!1}catch{return!1}}if(r=n.child,n.subtreeFlags&16384&&r!==null)r.return=n,n=r;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Ka(e,n,r,i){n&=~Wd,n&=~Lr,e.suspendedLanes|=n,e.pingedLanes&=~n,i&&(e.warmLanes|=n),i=e.expirationTimes;for(var u=n;0<u;){var m=31-Lt(u),x=1<<m;i[m]=-1,u&=~x}r!==0&&Gp(e,r,n)}function Ps(){return(We&6)===0?(Jl(0),!1):!0}function Zd(){if(Ae!==null){if(Ke===0)var e=Ae.return;else e=Ae,fa=Tr=null,md(e),Mo=null,zl=0,e=Ae;for(;e!==null;)uv(e.alternate,e),e=e.return;Ae=null}}function Uo(e,n){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,$C(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),_a=0,Zd(),at=e,Ae=r=ua(e.current,null),Pe=n,Ke=0,on=null,qa=!1,Ro=br(e,n),qd=!1,Ao=ln=Wd=Lr=Wa=ft=0,Qt=Zl=null,Fd=!1,(n&8)!==0&&(n|=n&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=n;0<i;){var u=31-Lt(i),m=1<<u;n|=e[u],i&=~m}return wa=n,os(),r}function Av(e,n){Oe=null,I.H=Gl,n===Eo||n===ms?(n=Xh(),Ke=3):n===td?(n=Xh(),Ke=4):Ke=n===kd?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,on=n,Ae===null&&(ft=1,Ns(e,vn(n,e.current)))}function zv(){var e=an.current;return e===null?!0:(Pe&4194048)===Pe?Sn===null:(Pe&62914560)===Pe||(Pe&536870912)!==0?e===Sn:!1}function Uv(){var e=I.H;return I.H=Gl,e===null?Gl:e}function Lv(){var e=I.A;return I.A=MC,e}function Bs(){ft=4,qa||(Pe&4194048)!==Pe&&an.current!==null||(Ro=!0),(Wa&134217727)===0&&(Lr&134217727)===0||at===null||Ka(at,Pe,ln,!1)}function Qd(e,n,r){var i=We;We|=2;var u=Uv(),m=Lv();(at!==e||Pe!==n)&&(Ls=null,Uo(e,n)),n=!1;var x=ft;e:do try{if(Ke!==0&&Ae!==null){var C=Ae,A=on;switch(Ke){case 8:Zd(),x=6;break e;case 3:case 2:case 9:case 6:an.current===null&&(n=!0);var W=Ke;if(Ke=0,on=null,Lo(e,C,A,W),r&&Ro){x=0;break e}break;default:W=Ke,Ke=0,on=null,Lo(e,C,A,W)}}kC(),x=ft;break}catch(ee){Av(e,ee)}while(!0);return n&&e.shellSuspendCounter++,fa=Tr=null,We=i,I.H=u,I.A=m,Ae===null&&(at=null,Pe=0,os()),x}function kC(){for(;Ae!==null;)Pv(Ae)}function OC(e,n){var r=We;We|=2;var i=Uv(),u=Lv();at!==e||Pe!==n?(Ls=null,Us=he()+500,Uo(e,n)):Ro=br(e,n);e:do try{if(Ke!==0&&Ae!==null){n=Ae;var m=on;t:switch(Ke){case 1:Ke=0,on=null,Lo(e,n,m,1);break;case 2:case 9:if($h(m)){Ke=0,on=null,Bv(n);break}n=function(){Ke!==2&&Ke!==9||at!==e||(Ke=7),Wn(e)},m.then(n,n);break e;case 3:Ke=7;break e;case 4:Ke=5;break e;case 7:$h(m)?(Ke=0,on=null,Bv(n)):(Ke=0,on=null,Lo(e,n,m,7));break;case 5:var x=null;switch(Ae.tag){case 26:x=Ae.memoizedState;case 5:case 27:var C=Ae;if(x?Cy(x):C.stateNode.complete){Ke=0,on=null;var A=C.sibling;if(A!==null)Ae=A;else{var W=C.return;W!==null?(Ae=W,Hs(W)):Ae=null}break t}}Ke=0,on=null,Lo(e,n,m,5);break;case 6:Ke=0,on=null,Lo(e,n,m,6);break;case 8:Zd(),ft=6;break e;default:throw Error(s(462))}}DC();break}catch(ee){Av(e,ee)}while(!0);return fa=Tr=null,I.H=i,I.A=u,We=r,Ae!==null?0:(at=null,Pe=0,os(),ft)}function DC(){for(;Ae!==null&&!nt();)Pv(Ae)}function Pv(e){var n=sv(e.alternate,e,wa);e.memoizedProps=e.pendingProps,n===null?Hs(e):Ae=n}function Bv(e){var n=e,r=n.alternate;switch(n.tag){case 15:case 0:n=nv(r,n,n.pendingProps,n.type,void 0,Pe);break;case 11:n=nv(r,n,n.pendingProps,n.type.render,n.ref,Pe);break;case 5:md(n);default:uv(r,n),n=Ae=Lh(n,wa),n=sv(r,n,wa)}e.memoizedProps=e.pendingProps,n===null?Hs(e):Ae=n}function Lo(e,n,r,i){fa=Tr=null,md(n),Mo=null,zl=0;var u=n.return;try{if(bC(e,u,n,r,Pe)){ft=1,Ns(e,vn(r,e.current)),Ae=null;return}}catch(m){if(u!==null)throw Ae=u,m;ft=1,Ns(e,vn(r,e.current)),Ae=null;return}n.flags&32768?(He||i===1?e=!0:Ro||(Pe&536870912)!==0?e=!1:(qa=e=!0,(i===2||i===9||i===3||i===6)&&(i=an.current,i!==null&&i.tag===13&&(i.flags|=16384))),Hv(n,e)):Hs(n)}function Hs(e){var n=e;do{if((n.flags&32768)!==0){Hv(n,qa);return}e=n.return;var r=wC(n.alternate,n,wa);if(r!==null){Ae=r;return}if(n=n.sibling,n!==null){Ae=n;return}Ae=n=e}while(n!==null);ft===0&&(ft=5)}function Hv(e,n){do{var r=_C(e.alternate,e);if(r!==null){r.flags&=32767,Ae=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!n&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=r}while(e!==null);ft=6,Ae=null}function Yv(e,n,r,i,u,m,x,C,A){e.cancelPendingCommit=null;do Ys();while(St!==0);if((We&6)!==0)throw Error(s(327));if(n!==null){if(n===e.current)throw Error(s(177));if(m=n.lanes|n.childLanes,m|=Hu,u_(e,r,m,x,C,A),e===at&&(Ae=at=null,Pe=0),zo=n,$a=e,_a=r,$d=m,Kd=u,Ov=i,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,zC(mn,function(){return Wv(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||i){i=I.T,I.T=null,u=z.p,z.p=2,x=We,We|=4;try{CC(e,n,r)}finally{We=x,z.p=u,I.T=i}}St=1,Iv(),Gv(),Vv()}}function Iv(){if(St===1){St=0;var e=$a,n=zo,r=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||r){r=I.T,I.T=null;var i=z.p;z.p=2;var u=We;We|=4;try{wv(n,e);var m=df,x=Th(e.containerInfo),C=m.focusedElem,A=m.selectionRange;if(x!==C&&C&&C.ownerDocument&&Nh(C.ownerDocument.documentElement,C)){if(A!==null&&zu(C)){var W=A.start,ee=A.end;if(ee===void 0&&(ee=W),"selectionStart"in C)C.selectionStart=W,C.selectionEnd=Math.min(ee,C.value.length);else{var re=C.ownerDocument||document,K=re&&re.defaultView||window;if(K.getSelection){var Z=K.getSelection(),ge=C.textContent.length,Ce=Math.min(A.start,ge),tt=A.end===void 0?Ce:Math.min(A.end,ge);!Z.extend&&Ce>tt&&(x=tt,tt=Ce,Ce=x);var G=Mh(C,Ce),L=Mh(C,tt);if(G&&L&&(Z.rangeCount!==1||Z.anchorNode!==G.node||Z.anchorOffset!==G.offset||Z.focusNode!==L.node||Z.focusOffset!==L.offset)){var q=re.createRange();q.setStart(G.node,G.offset),Z.removeAllRanges(),Ce>tt?(Z.addRange(q),Z.extend(L.node,L.offset)):(q.setEnd(L.node,L.offset),Z.addRange(q))}}}}for(re=[],Z=C;Z=Z.parentNode;)Z.nodeType===1&&re.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof C.focus=="function"&&C.focus(),C=0;C<re.length;C++){var ne=re[C];ne.element.scrollLeft=ne.left,ne.element.scrollTop=ne.top}}Js=!!uf,df=uf=null}finally{We=u,z.p=i,I.T=r}}e.current=n,St=2}}function Gv(){if(St===2){St=0;var e=$a,n=zo,r=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||r){r=I.T,I.T=null;var i=z.p;z.p=2;var u=We;We|=4;try{vv(e,n.alternate,n)}finally{We=u,z.p=i,I.T=r}}St=3}}function Vv(){if(St===4||St===3){St=0,ot();var e=$a,n=zo,r=_a,i=Ov;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?St=5:(St=0,zo=$a=null,qv(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Fa=null),gu(r),n=n.stateNode,Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(en,n,void 0,(n.current.flags&128)===128)}catch{}if(i!==null){n=I.T,u=z.p,z.p=2,I.T=null;try{for(var m=e.onRecoverableError,x=0;x<i.length;x++){var C=i[x];m(C.value,{componentStack:C.stack})}}finally{I.T=n,z.p=u}}(_a&3)!==0&&Ys(),Wn(e),u=e.pendingLanes,(r&261930)!==0&&(u&42)!==0?e===Xd?Ql++:(Ql=0,Xd=e):Ql=0,Jl(0)}}function qv(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Rl(n)))}function Ys(){return Iv(),Gv(),Vv(),Wv()}function Wv(){if(St!==5)return!1;var e=$a,n=$d;$d=0;var r=gu(_a),i=I.T,u=z.p;try{z.p=32>r?32:r,I.T=null,r=Kd,Kd=null;var m=$a,x=_a;if(St=0,zo=$a=null,_a=0,(We&6)!==0)throw Error(s(331));var C=We;if(We|=4,Nv(m.current),Cv(m,m.current,x,r),We=C,Jl(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(en,m)}catch{}return!0}finally{z.p=u,I.T=i,qv(e,n)}}function Fv(e,n,r){n=vn(r,n),n=Td(e.stateNode,n,2),e=Ya(e,n,2),e!==null&&(bl(e,2),Wn(e))}function Xe(e,n,r){if(e.tag===3)Fv(e,e,r);else for(;n!==null;){if(n.tag===3){Fv(n,e,r);break}else if(n.tag===1){var i=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Fa===null||!Fa.has(i))){e=vn(r,e),r=$g(2),i=Ya(n,r,2),i!==null&&(Kg(r,i,n,e),bl(i,2),Wn(i));break}}n=n.return}}function Jd(e,n,r){var i=e.pingCache;if(i===null){i=e.pingCache=new NC;var u=new Set;i.set(n,u)}else u=i.get(n),u===void 0&&(u=new Set,i.set(n,u));u.has(r)||(qd=!0,u.add(r),e=jC.bind(null,e,n,r),n.then(e,e))}function jC(e,n,r){var i=e.pingCache;i!==null&&i.delete(n),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,at===e&&(Pe&r)===r&&(ft===4||ft===3&&(Pe&62914560)===Pe&&300>he()-zs?(We&2)===0&&Uo(e,0):Wd|=r,Ao===Pe&&(Ao=0)),Wn(e)}function $v(e,n){n===0&&(n=ao()),e=Er(e,n),e!==null&&(bl(e,n),Wn(e))}function RC(e){var n=e.memoizedState,r=0;n!==null&&(r=n.retryLane),$v(e,r)}function AC(e,n){var r=0;switch(e.tag){case 31:case 13:var i=e.stateNode,u=e.memoizedState;u!==null&&(r=u.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(s(314))}i!==null&&i.delete(n),$v(e,r)}function zC(e,n){return Me(e,n)}var Is=null,Po=null,ef=!1,Gs=!1,tf=!1,Xa=0;function Wn(e){e!==Po&&e.next===null&&(Po===null?Is=Po=e:Po=Po.next=e),Gs=!0,ef||(ef=!0,LC())}function Jl(e,n){if(!tf&&Gs){tf=!0;do for(var r=!1,i=Is;i!==null;){if(e!==0){var u=i.pendingLanes;if(u===0)var m=0;else{var x=i.suspendedLanes,C=i.pingedLanes;m=(1<<31-Lt(42|e)+1)-1,m&=u&~(x&~C),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(r=!0,Qv(i,m))}else m=Pe,m=no(i,i===at?m:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(m&3)===0||br(i,m)||(r=!0,Qv(i,m));i=i.next}while(r);tf=!1}}function UC(){Kv()}function Kv(){Gs=ef=!1;var e=0;Xa!==0&&FC()&&(e=Xa);for(var n=he(),r=null,i=Is;i!==null;){var u=i.next,m=Xv(i,n);m===0?(i.next=null,r===null?Is=u:r.next=u,u===null&&(Po=r)):(r=i,(e!==0||(m&3)!==0)&&(Gs=!0)),i=u}St!==0&&St!==5||Jl(e),Xa!==0&&(Xa=0)}function Xv(e,n){for(var r=e.suspendedLanes,i=e.pingedLanes,u=e.expirationTimes,m=e.pendingLanes&-62914561;0<m;){var x=31-Lt(m),C=1<<x,A=u[x];A===-1?((C&r)===0||(C&i)!==0)&&(u[x]=pu(C,n)):A<=n&&(e.expiredLanes|=C),m&=~C}if(n=at,r=Pe,r=no(e,e===n?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,r===0||e===n&&(Ke===2||Ke===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&$e(i),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||br(e,r)){if(n=r&-r,n===e.callbackPriority)return n;switch(i!==null&&$e(i),gu(r)){case 2:case 8:r=Ut;break;case 32:r=mn;break;case 268435456:r=to;break;default:r=mn}return i=Zv.bind(null,e),r=Me(r,i),e.callbackPriority=n,e.callbackNode=r,n}return i!==null&&i!==null&&$e(i),e.callbackPriority=2,e.callbackNode=null,2}function Zv(e,n){if(St!==0&&St!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(Ys()&&e.callbackNode!==r)return null;var i=Pe;return i=no(e,e===at?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(jv(e,i,n),Xv(e,he()),e.callbackNode!=null&&e.callbackNode===r?Zv.bind(null,e):null)}function Qv(e,n){if(Ys())return null;jv(e,n,!0)}function LC(){KC(function(){(We&6)!==0?Me(Nt,UC):Kv()})}function nf(){if(Xa===0){var e=_o;e===0&&(e=_e,_e<<=1,(_e&261888)===0&&(_e=256)),Xa=e}return Xa}function Jv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Zi(""+e)}function ey(e,n){var r=n.ownerDocument.createElement("input");return r.name=n.name,r.value=n.value,e.id&&r.setAttribute("form",e.id),n.parentNode.insertBefore(r,n),e=new FormData(e),r.parentNode.removeChild(r),e}function PC(e,n,r,i,u){if(n==="submit"&&r&&r.stateNode===u){var m=Jv((u[Ft]||null).action),x=i.submitter;x&&(n=(n=x[Ft]||null)?Jv(n.formAction):x.getAttribute("formAction"),n!==null&&(m=n,x=null));var C=new ts("action","action",null,i,u);e.push({event:C,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Xa!==0){var A=x?ey(u,x):new FormData(u);wd(r,{pending:!0,data:A,method:u.method,action:m},null,A)}}else typeof m=="function"&&(C.preventDefault(),A=x?ey(u,x):new FormData(u),wd(r,{pending:!0,data:A,method:u.method,action:m},m,A))},currentTarget:u}]})}}for(var af=0;af<Bu.length;af++){var rf=Bu[af],BC=rf.toLowerCase(),HC=rf[0].toUpperCase()+rf.slice(1);Dn(BC,"on"+HC)}Dn(Dh,"onAnimationEnd"),Dn(jh,"onAnimationIteration"),Dn(Rh,"onAnimationStart"),Dn("dblclick","onDoubleClick"),Dn("focusin","onFocus"),Dn("focusout","onBlur"),Dn(nC,"onTransitionRun"),Dn(aC,"onTransitionStart"),Dn(rC,"onTransitionCancel"),Dn(Ah,"onTransitionEnd"),so("onMouseEnter",["mouseout","mouseover"]),so("onMouseLeave",["mouseout","mouseover"]),so("onPointerEnter",["pointerout","pointerover"]),so("onPointerLeave",["pointerout","pointerover"]),Sr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Sr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Sr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Sr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Sr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Sr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ei="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(" "),YC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ei));function ty(e,n){n=(n&4)!==0;for(var r=0;r<e.length;r++){var i=e[r],u=i.event;i=i.listeners;e:{var m=void 0;if(n)for(var x=i.length-1;0<=x;x--){var C=i[x],A=C.instance,W=C.currentTarget;if(C=C.listener,A!==m&&u.isPropagationStopped())break e;m=C,u.currentTarget=W;try{m(u)}catch(ee){rs(ee)}u.currentTarget=null,m=A}else for(x=0;x<i.length;x++){if(C=i[x],A=C.instance,W=C.currentTarget,C=C.listener,A!==m&&u.isPropagationStopped())break e;m=C,u.currentTarget=W;try{m(u)}catch(ee){rs(ee)}u.currentTarget=null,m=A}}}}function ze(e,n){var r=n[vu];r===void 0&&(r=n[vu]=new Set);var i=e+"__bubble";r.has(i)||(ny(n,e,2,!1),r.add(i))}function of(e,n,r){var i=0;n&&(i|=4),ny(r,e,i,n)}var Vs="_reactListening"+Math.random().toString(36).slice(2);function lf(e){if(!e[Vs]){e[Vs]=!0,Kp.forEach(function(r){r!=="selectionchange"&&(YC.has(r)||of(r,!1,e),of(r,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Vs]||(n[Vs]=!0,of("selectionchange",!1,n))}}function ny(e,n,r,i){switch(Dy(n)){case 2:var u=hE;break;case 8:u=gE;break;default:u=wf}r=u.bind(null,n,r,e),u=void 0,!Mu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(u=!0),i?u!==void 0?e.addEventListener(n,r,{capture:!0,passive:u}):e.addEventListener(n,r,!0):u!==void 0?e.addEventListener(n,r,{passive:u}):e.addEventListener(n,r,!1)}function sf(e,n,r,i,u){var m=i;if((n&1)===0&&(n&2)===0&&i!==null)e:for(;;){if(i===null)return;var x=i.tag;if(x===3||x===4){var C=i.stateNode.containerInfo;if(C===u)break;if(x===4)for(x=i.return;x!==null;){var A=x.tag;if((A===3||A===4)&&x.stateNode.containerInfo===u)return;x=x.return}for(;C!==null;){if(x=oo(C),x===null)return;if(A=x.tag,A===5||A===6||A===26||A===27){i=m=x;continue e}C=C.parentNode}}i=i.return}ih(function(){var W=m,ee=Cu(r),re=[];e:{var K=zh.get(e);if(K!==void 0){var Z=ts,ge=e;switch(e){case"keypress":if(Ji(r)===0)break e;case"keydown":case"keyup":Z=A_;break;case"focusin":ge="focus",Z=Ou;break;case"focusout":ge="blur",Z=Ou;break;case"beforeblur":case"afterblur":Z=Ou;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z=uh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=w_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=L_;break;case Dh:case jh:case Rh:Z=E_;break;case Ah:Z=B_;break;case"scroll":case"scrollend":Z=x_;break;case"wheel":Z=Y_;break;case"copy":case"cut":case"paste":Z=N_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=fh;break;case"toggle":case"beforetoggle":Z=G_}var Ce=(n&4)!==0,tt=!Ce&&(e==="scroll"||e==="scrollend"),G=Ce?K!==null?K+"Capture":null:K;Ce=[];for(var L=W,q;L!==null;){var ne=L;if(q=ne.stateNode,ne=ne.tag,ne!==5&&ne!==26&&ne!==27||q===null||G===null||(ne=wl(L,G),ne!=null&&Ce.push(ti(L,ne,q))),tt)break;L=L.return}0<Ce.length&&(K=new Z(K,ge,null,r,ee),re.push({event:K,listeners:Ce}))}}if((n&7)===0){e:{if(K=e==="mouseover"||e==="pointerover",Z=e==="mouseout"||e==="pointerout",K&&r!==_u&&(ge=r.relatedTarget||r.fromElement)&&(oo(ge)||ge[ro]))break e;if((Z||K)&&(K=ee.window===ee?ee:(K=ee.ownerDocument)?K.defaultView||K.parentWindow:window,Z?(ge=r.relatedTarget||r.toElement,Z=W,ge=ge?oo(ge):null,ge!==null&&(tt=f(ge),Ce=ge.tag,ge!==tt||Ce!==5&&Ce!==27&&Ce!==6)&&(ge=null)):(Z=null,ge=W),Z!==ge)){if(Ce=uh,ne="onMouseLeave",G="onMouseEnter",L="mouse",(e==="pointerout"||e==="pointerover")&&(Ce=fh,ne="onPointerLeave",G="onPointerEnter",L="pointer"),tt=Z==null?K:Sl(Z),q=ge==null?K:Sl(ge),K=new Ce(ne,L+"leave",Z,r,ee),K.target=tt,K.relatedTarget=q,ne=null,oo(ee)===W&&(Ce=new Ce(G,L+"enter",ge,r,ee),Ce.target=q,Ce.relatedTarget=tt,ne=Ce),tt=ne,Z&&ge)t:{for(Ce=IC,G=Z,L=ge,q=0,ne=G;ne;ne=Ce(ne))q++;ne=0;for(var we=L;we;we=Ce(we))ne++;for(;0<q-ne;)G=Ce(G),q--;for(;0<ne-q;)L=Ce(L),ne--;for(;q--;){if(G===L||L!==null&&G===L.alternate){Ce=G;break t}G=Ce(G),L=Ce(L)}Ce=null}else Ce=null;Z!==null&&ay(re,K,Z,Ce,!1),ge!==null&&tt!==null&&ay(re,tt,ge,Ce,!0)}}e:{if(K=W?Sl(W):window,Z=K.nodeName&&K.nodeName.toLowerCase(),Z==="select"||Z==="input"&&K.type==="file")var Ve=xh;else if(yh(K))if(Sh)Ve=J_;else{Ve=Z_;var be=X_}else Z=K.nodeName,!Z||Z.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?W&&wu(W.elementType)&&(Ve=xh):Ve=Q_;if(Ve&&(Ve=Ve(e,W))){bh(re,Ve,r,ee);break e}be&&be(e,K,W),e==="focusout"&&W&&K.type==="number"&&W.memoizedProps.value!=null&&Su(K,"number",K.value)}switch(be=W?Sl(W):window,e){case"focusin":(yh(be)||be.contentEditable==="true")&&(ho=be,Uu=W,Ol=null);break;case"focusout":Ol=Uu=ho=null;break;case"mousedown":Lu=!0;break;case"contextmenu":case"mouseup":case"dragend":Lu=!1,kh(re,r,ee);break;case"selectionchange":if(tC)break;case"keydown":case"keyup":kh(re,r,ee)}var je;if(ju)e:{switch(e){case"compositionstart":var Be="onCompositionStart";break e;case"compositionend":Be="onCompositionEnd";break e;case"compositionupdate":Be="onCompositionUpdate";break e}Be=void 0}else po?gh(e,r)&&(Be="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Be="onCompositionStart");Be&&(mh&&r.locale!=="ko"&&(po||Be!=="onCompositionStart"?Be==="onCompositionEnd"&&po&&(je=sh()):(Aa=ee,Nu="value"in Aa?Aa.value:Aa.textContent,po=!0)),be=qs(W,Be),0<be.length&&(Be=new dh(Be,e,null,r,ee),re.push({event:Be,listeners:be}),je?Be.data=je:(je=vh(r),je!==null&&(Be.data=je)))),(je=q_?W_(e,r):F_(e,r))&&(Be=qs(W,"onBeforeInput"),0<Be.length&&(be=new dh("onBeforeInput","beforeinput",null,r,ee),re.push({event:be,listeners:Be}),be.data=je)),PC(re,e,W,r,ee)}ty(re,n)})}function ti(e,n,r){return{instance:e,listener:n,currentTarget:r}}function qs(e,n){for(var r=n+"Capture",i=[];e!==null;){var u=e,m=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||m===null||(u=wl(e,r),u!=null&&i.unshift(ti(e,u,m)),u=wl(e,n),u!=null&&i.push(ti(e,u,m))),e.tag===3)return i;e=e.return}return[]}function IC(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ay(e,n,r,i,u){for(var m=n._reactName,x=[];r!==null&&r!==i;){var C=r,A=C.alternate,W=C.stateNode;if(C=C.tag,A!==null&&A===i)break;C!==5&&C!==26&&C!==27||W===null||(A=W,u?(W=wl(r,m),W!=null&&x.unshift(ti(r,W,A))):u||(W=wl(r,m),W!=null&&x.push(ti(r,W,A)))),r=r.return}x.length!==0&&e.push({event:n,listeners:x})}var GC=/\r\n?/g,VC=/\u0000|\uFFFD/g;function ry(e){return(typeof e=="string"?e:""+e).replace(GC,`
|
|
9
|
+
`).replace(VC,"")}function oy(e,n){return n=ry(n),ry(e)===n}function et(e,n,r,i,u,m){switch(r){case"children":typeof i=="string"?n==="body"||n==="textarea"&&i===""||uo(e,i):(typeof i=="number"||typeof i=="bigint")&&n!=="body"&&uo(e,""+i);break;case"className":Ki(e,"class",i);break;case"tabIndex":Ki(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Ki(e,r,i);break;case"style":oh(e,i,m);break;case"data":if(n!=="object"){Ki(e,"data",i);break}case"src":case"href":if(i===""&&(n!=="a"||r!=="href")){e.removeAttribute(r);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(r);break}i=Zi(""+i),e.setAttribute(r,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(r==="formAction"?(n!=="input"&&et(e,n,"name",u.name,u,null),et(e,n,"formEncType",u.formEncType,u,null),et(e,n,"formMethod",u.formMethod,u,null),et(e,n,"formTarget",u.formTarget,u,null)):(et(e,n,"encType",u.encType,u,null),et(e,n,"method",u.method,u,null),et(e,n,"target",u.target,u,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(r);break}i=Zi(""+i),e.setAttribute(r,i);break;case"onClick":i!=null&&(e.onclick=sa);break;case"onScroll":i!=null&&ze("scroll",e);break;case"onScrollEnd":i!=null&&ze("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(r=i.__html,r!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=r}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}r=Zi(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(r,""+i):e.removeAttribute(r);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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":i===!0?e.setAttribute(r,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(r,i):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(r,i):e.removeAttribute(r);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(r):e.setAttribute(r,i);break;case"popover":ze("beforetoggle",e),ze("toggle",e),$i(e,"popover",i);break;case"xlinkActuate":ia(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ia(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ia(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ia(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ia(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ia(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ia(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ia(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ia(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":$i(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=y_.get(r)||r,$i(e,r,i))}}function cf(e,n,r,i,u,m){switch(r){case"style":oh(e,i,m);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(r=i.__html,r!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=r}}break;case"children":typeof i=="string"?uo(e,i):(typeof i=="number"||typeof i=="bigint")&&uo(e,""+i);break;case"onScroll":i!=null&&ze("scroll",e);break;case"onScrollEnd":i!=null&&ze("scrollend",e);break;case"onClick":i!=null&&(e.onclick=sa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Xp.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(u=r.endsWith("Capture"),n=r.slice(2,u?r.length-7:void 0),m=e[Ft]||null,m=m!=null?m[r]:null,typeof m=="function"&&e.removeEventListener(n,m,u),typeof i=="function")){typeof m!="function"&&m!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(n,i,u);break e}r in e?e[r]=i:i===!0?e.setAttribute(r,""):$i(e,r,i)}}}function Rt(e,n,r){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ze("error",e),ze("load",e);var i=!1,u=!1,m;for(m in r)if(r.hasOwnProperty(m)){var x=r[m];if(x!=null)switch(m){case"src":i=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,n));default:et(e,n,m,x,r,null)}}u&&et(e,n,"srcSet",r.srcSet,r,null),i&&et(e,n,"src",r.src,r,null);return;case"input":ze("invalid",e);var C=m=x=u=null,A=null,W=null;for(i in r)if(r.hasOwnProperty(i)){var ee=r[i];if(ee!=null)switch(i){case"name":u=ee;break;case"type":x=ee;break;case"checked":A=ee;break;case"defaultChecked":W=ee;break;case"value":m=ee;break;case"defaultValue":C=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(s(137,n));break;default:et(e,n,i,ee,r,null)}}th(e,m,C,A,W,x,u,!1);return;case"select":ze("invalid",e),i=x=m=null;for(u in r)if(r.hasOwnProperty(u)&&(C=r[u],C!=null))switch(u){case"value":m=C;break;case"defaultValue":x=C;break;case"multiple":i=C;default:et(e,n,u,C,r,null)}n=m,r=x,e.multiple=!!i,n!=null?co(e,!!i,n,!1):r!=null&&co(e,!!i,r,!0);return;case"textarea":ze("invalid",e),m=u=i=null;for(x in r)if(r.hasOwnProperty(x)&&(C=r[x],C!=null))switch(x){case"value":i=C;break;case"defaultValue":u=C;break;case"children":m=C;break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(s(91));break;default:et(e,n,x,C,r,null)}ah(e,i,u,m);return;case"option":for(A in r)r.hasOwnProperty(A)&&(i=r[A],i!=null)&&(A==="selected"?e.selected=i&&typeof i!="function"&&typeof i!="symbol":et(e,n,A,i,r,null));return;case"dialog":ze("beforetoggle",e),ze("toggle",e),ze("cancel",e),ze("close",e);break;case"iframe":case"object":ze("load",e);break;case"video":case"audio":for(i=0;i<ei.length;i++)ze(ei[i],e);break;case"image":ze("error",e),ze("load",e);break;case"details":ze("toggle",e);break;case"embed":case"source":case"link":ze("error",e),ze("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(W in r)if(r.hasOwnProperty(W)&&(i=r[W],i!=null))switch(W){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,n));default:et(e,n,W,i,r,null)}return;default:if(wu(n)){for(ee in r)r.hasOwnProperty(ee)&&(i=r[ee],i!==void 0&&cf(e,n,ee,i,r,void 0));return}}for(C in r)r.hasOwnProperty(C)&&(i=r[C],i!=null&&et(e,n,C,i,r,null))}function qC(e,n,r,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,m=null,x=null,C=null,A=null,W=null,ee=null;for(Z in r){var re=r[Z];if(r.hasOwnProperty(Z)&&re!=null)switch(Z){case"checked":break;case"value":break;case"defaultValue":A=re;default:i.hasOwnProperty(Z)||et(e,n,Z,null,i,re)}}for(var K in i){var Z=i[K];if(re=r[K],i.hasOwnProperty(K)&&(Z!=null||re!=null))switch(K){case"type":m=Z;break;case"name":u=Z;break;case"checked":W=Z;break;case"defaultChecked":ee=Z;break;case"value":x=Z;break;case"defaultValue":C=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(s(137,n));break;default:Z!==re&&et(e,n,K,Z,i,re)}}xu(e,x,C,A,W,ee,m,u);return;case"select":Z=x=C=K=null;for(m in r)if(A=r[m],r.hasOwnProperty(m)&&A!=null)switch(m){case"value":break;case"multiple":Z=A;default:i.hasOwnProperty(m)||et(e,n,m,null,i,A)}for(u in i)if(m=i[u],A=r[u],i.hasOwnProperty(u)&&(m!=null||A!=null))switch(u){case"value":K=m;break;case"defaultValue":C=m;break;case"multiple":x=m;default:m!==A&&et(e,n,u,m,i,A)}n=C,r=x,i=Z,K!=null?co(e,!!r,K,!1):!!i!=!!r&&(n!=null?co(e,!!r,n,!0):co(e,!!r,r?[]:"",!1));return;case"textarea":Z=K=null;for(C in r)if(u=r[C],r.hasOwnProperty(C)&&u!=null&&!i.hasOwnProperty(C))switch(C){case"value":break;case"children":break;default:et(e,n,C,null,i,u)}for(x in i)if(u=i[x],m=r[x],i.hasOwnProperty(x)&&(u!=null||m!=null))switch(x){case"value":K=u;break;case"defaultValue":Z=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==m&&et(e,n,x,u,i,m)}nh(e,K,Z);return;case"option":for(var ge in r)K=r[ge],r.hasOwnProperty(ge)&&K!=null&&!i.hasOwnProperty(ge)&&(ge==="selected"?e.selected=!1:et(e,n,ge,null,i,K));for(A in i)K=i[A],Z=r[A],i.hasOwnProperty(A)&&K!==Z&&(K!=null||Z!=null)&&(A==="selected"?e.selected=K&&typeof K!="function"&&typeof K!="symbol":et(e,n,A,K,i,Z));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 Ce in r)K=r[Ce],r.hasOwnProperty(Ce)&&K!=null&&!i.hasOwnProperty(Ce)&&et(e,n,Ce,null,i,K);for(W in i)if(K=i[W],Z=r[W],i.hasOwnProperty(W)&&K!==Z&&(K!=null||Z!=null))switch(W){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(s(137,n));break;default:et(e,n,W,K,i,Z)}return;default:if(wu(n)){for(var tt in r)K=r[tt],r.hasOwnProperty(tt)&&K!==void 0&&!i.hasOwnProperty(tt)&&cf(e,n,tt,void 0,i,K);for(ee in i)K=i[ee],Z=r[ee],!i.hasOwnProperty(ee)||K===Z||K===void 0&&Z===void 0||cf(e,n,ee,K,i,Z);return}}for(var G in r)K=r[G],r.hasOwnProperty(G)&&K!=null&&!i.hasOwnProperty(G)&&et(e,n,G,null,i,K);for(re in i)K=i[re],Z=r[re],!i.hasOwnProperty(re)||K===Z||K==null&&Z==null||et(e,n,re,K,i,Z)}function ly(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function WC(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,r=performance.getEntriesByType("resource"),i=0;i<r.length;i++){var u=r[i],m=u.transferSize,x=u.initiatorType,C=u.duration;if(m&&C&&ly(x)){for(x=0,C=u.responseEnd,i+=1;i<r.length;i++){var A=r[i],W=A.startTime;if(W>C)break;var ee=A.transferSize,re=A.initiatorType;ee&&ly(re)&&(A=A.responseEnd,x+=ee*(A<C?1:(C-W)/(A-W)))}if(--i,n+=8*(m+x)/(u.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var uf=null,df=null;function Ws(e){return e.nodeType===9?e:e.ownerDocument}function iy(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 sy(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function ff(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var mf=null;function FC(){var e=window.event;return e&&e.type==="popstate"?e===mf?!1:(mf=e,!0):(mf=null,!1)}var cy=typeof setTimeout=="function"?setTimeout:void 0,$C=typeof clearTimeout=="function"?clearTimeout:void 0,uy=typeof Promise=="function"?Promise:void 0,KC=typeof queueMicrotask=="function"?queueMicrotask:typeof uy<"u"?function(e){return uy.resolve(null).then(e).catch(XC)}:cy;function XC(e){setTimeout(function(){throw e})}function Za(e){return e==="head"}function dy(e,n){var r=n,i=0;do{var u=r.nextSibling;if(e.removeChild(r),u&&u.nodeType===8)if(r=u.data,r==="/$"||r==="/&"){if(i===0){e.removeChild(u),Io(n);return}i--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")i++;else if(r==="html")ni(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,ni(r);for(var m=r.firstChild;m;){var x=m.nextSibling,C=m.nodeName;m[xl]||C==="SCRIPT"||C==="STYLE"||C==="LINK"&&m.rel.toLowerCase()==="stylesheet"||r.removeChild(m),m=x}}else r==="body"&&ni(e.ownerDocument.body);r=u}while(r);Io(n)}function fy(e,n){var r=e;e=0;do{var i=r.nextSibling;if(r.nodeType===1?n?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(n?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=i}while(r)}function pf(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var r=n;switch(n=n.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":pf(r),yu(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function ZC(e,n,r,i){for(;e.nodeType===1;){var u=r;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[xl])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(m=e.getAttribute("rel"),m==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(m!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(m=e.getAttribute("src"),(m!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&m&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var m=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===m)return e}else return e;if(e=wn(e.nextSibling),e===null)break}return null}function QC(e,n,r){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=wn(e.nextSibling),e===null))return null;return e}function my(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=wn(e.nextSibling),e===null))return null;return e}function hf(e){return e.data==="$?"||e.data==="$~"}function gf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function JC(e,n){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||r.readyState!=="loading")n();else{var i=function(){n(),r.removeEventListener("DOMContentLoaded",i)};r.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function wn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var vf=null;function py(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(n===0)return wn(e.nextSibling);n--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||n++}e=e.nextSibling}return null}function hy(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(n===0)return e;n--}else r!=="/$"&&r!=="/&"||n++}e=e.previousSibling}return null}function gy(e,n,r){switch(n=Ws(r),e){case"html":if(e=n.documentElement,!e)throw Error(s(452));return e;case"head":if(e=n.head,!e)throw Error(s(453));return e;case"body":if(e=n.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function ni(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);yu(e)}var _n=new Map,vy=new Set;function Fs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ca=z.d;z.d={f:eE,r:tE,D:nE,C:aE,L:rE,m:oE,X:iE,S:lE,M:sE};function eE(){var e=Ca.f(),n=Ps();return e||n}function tE(e){var n=lo(e);n!==null&&n.tag===5&&n.type==="form"?Ag(n):Ca.r(e)}var Bo=typeof document>"u"?null:document;function yy(e,n,r){var i=Bo;if(i&&typeof n=="string"&&n){var u=hn(n);u='link[rel="'+e+'"][href="'+u+'"]',typeof r=="string"&&(u+='[crossorigin="'+r+'"]'),vy.has(u)||(vy.add(u),e={rel:e,crossOrigin:r,href:n},i.querySelector(u)===null&&(n=i.createElement("link"),Rt(n,"link",e),Et(n),i.head.appendChild(n)))}}function nE(e){Ca.D(e),yy("dns-prefetch",e,null)}function aE(e,n){Ca.C(e,n),yy("preconnect",e,n)}function rE(e,n,r){Ca.L(e,n,r);var i=Bo;if(i&&e&&n){var u='link[rel="preload"][as="'+hn(n)+'"]';n==="image"&&r&&r.imageSrcSet?(u+='[imagesrcset="'+hn(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(u+='[imagesizes="'+hn(r.imageSizes)+'"]')):u+='[href="'+hn(e)+'"]';var m=u;switch(n){case"style":m=Ho(e);break;case"script":m=Yo(e)}_n.has(m)||(e=S({rel:"preload",href:n==="image"&&r&&r.imageSrcSet?void 0:e,as:n},r),_n.set(m,e),i.querySelector(u)!==null||n==="style"&&i.querySelector(ai(m))||n==="script"&&i.querySelector(ri(m))||(n=i.createElement("link"),Rt(n,"link",e),Et(n),i.head.appendChild(n)))}}function oE(e,n){Ca.m(e,n);var r=Bo;if(r&&e){var i=n&&typeof n.as=="string"?n.as:"script",u='link[rel="modulepreload"][as="'+hn(i)+'"][href="'+hn(e)+'"]',m=u;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Yo(e)}if(!_n.has(m)&&(e=S({rel:"modulepreload",href:e},n),_n.set(m,e),r.querySelector(u)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(ri(m)))return}i=r.createElement("link"),Rt(i,"link",e),Et(i),r.head.appendChild(i)}}}function lE(e,n,r){Ca.S(e,n,r);var i=Bo;if(i&&e){var u=io(i).hoistableStyles,m=Ho(e);n=n||"default";var x=u.get(m);if(!x){var C={loading:0,preload:null};if(x=i.querySelector(ai(m)))C.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":n},r),(r=_n.get(m))&&yf(e,r);var A=x=i.createElement("link");Et(A),Rt(A,"link",e),A._p=new Promise(function(W,ee){A.onload=W,A.onerror=ee}),A.addEventListener("load",function(){C.loading|=1}),A.addEventListener("error",function(){C.loading|=2}),C.loading|=4,$s(x,n,i)}x={type:"stylesheet",instance:x,count:1,state:C},u.set(m,x)}}}function iE(e,n){Ca.X(e,n);var r=Bo;if(r&&e){var i=io(r).hoistableScripts,u=Yo(e),m=i.get(u);m||(m=r.querySelector(ri(u)),m||(e=S({src:e,async:!0},n),(n=_n.get(u))&&bf(e,n),m=r.createElement("script"),Et(m),Rt(m,"link",e),r.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},i.set(u,m))}}function sE(e,n){Ca.M(e,n);var r=Bo;if(r&&e){var i=io(r).hoistableScripts,u=Yo(e),m=i.get(u);m||(m=r.querySelector(ri(u)),m||(e=S({src:e,async:!0,type:"module"},n),(n=_n.get(u))&&bf(e,n),m=r.createElement("script"),Et(m),Rt(m,"link",e),r.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},i.set(u,m))}}function by(e,n,r,i){var u=(u=X.current)?Fs(u):null;if(!u)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(n=Ho(r.href),r=io(u).hoistableStyles,i=r.get(n),i||(i={type:"style",instance:null,count:0,state:null},r.set(n,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=Ho(r.href);var m=io(u).hoistableStyles,x=m.get(e);if(x||(u=u.ownerDocument||u,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(e,x),(m=u.querySelector(ai(e)))&&!m._p&&(x.instance=m,x.state.loading=5),_n.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},_n.set(e,r),m||cE(u,e,r,x.state))),n&&i===null)throw Error(s(528,""));return x}if(n&&i!==null)throw Error(s(529,""));return null;case"script":return n=r.async,r=r.src,typeof r=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Yo(r),r=io(u).hoistableScripts,i=r.get(n),i||(i={type:"script",instance:null,count:0,state:null},r.set(n,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ho(e){return'href="'+hn(e)+'"'}function ai(e){return'link[rel="stylesheet"]['+e+"]"}function xy(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function cE(e,n,r,i){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?i.loading=1:(n=e.createElement("link"),i.preload=n,n.addEventListener("load",function(){return i.loading|=1}),n.addEventListener("error",function(){return i.loading|=2}),Rt(n,"link",r),Et(n),e.head.appendChild(n))}function Yo(e){return'[src="'+hn(e)+'"]'}function ri(e){return"script[async]"+e}function Sy(e,n,r){if(n.count++,n.instance===null)switch(n.type){case"style":var i=e.querySelector('style[data-href~="'+hn(r.href)+'"]');if(i)return n.instance=i,Et(i),i;var u=S({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Et(i),Rt(i,"style",u),$s(i,r.precedence,e),n.instance=i;case"stylesheet":u=Ho(r.href);var m=e.querySelector(ai(u));if(m)return n.state.loading|=4,n.instance=m,Et(m),m;i=xy(r),(u=_n.get(u))&&yf(i,u),m=(e.ownerDocument||e).createElement("link"),Et(m);var x=m;return x._p=new Promise(function(C,A){x.onload=C,x.onerror=A}),Rt(m,"link",i),n.state.loading|=4,$s(m,r.precedence,e),n.instance=m;case"script":return m=Yo(r.src),(u=e.querySelector(ri(m)))?(n.instance=u,Et(u),u):(i=r,(u=_n.get(m))&&(i=S({},r),bf(i,u)),e=e.ownerDocument||e,u=e.createElement("script"),Et(u),Rt(u,"link",i),e.head.appendChild(u),n.instance=u);case"void":return null;default:throw Error(s(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(i=n.instance,n.state.loading|=4,$s(i,r.precedence,e));return n.instance}function $s(e,n,r){for(var i=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=i.length?i[i.length-1]:null,m=u,x=0;x<i.length;x++){var C=i[x];if(C.dataset.precedence===n)m=C;else if(m!==u)break}m?m.parentNode.insertBefore(e,m.nextSibling):(n=r.nodeType===9?r.head:r,n.insertBefore(e,n.firstChild))}function yf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function bf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Ks=null;function wy(e,n,r){if(Ks===null){var i=new Map,u=Ks=new Map;u.set(r,i)}else u=Ks,i=u.get(r),i||(i=new Map,u.set(r,i));if(i.has(e))return i;for(i.set(e,null),r=r.getElementsByTagName(e),u=0;u<r.length;u++){var m=r[u];if(!(m[xl]||m[kt]||e==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var x=m.getAttribute(n)||"";x=e+x;var C=i.get(x);C?C.push(m):i.set(x,[m])}}return i}function _y(e,n,r){e=e.ownerDocument||e,e.head.insertBefore(r,n==="title"?e.querySelector("head > title"):null)}function uE(e,n,r){if(r===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;return n.rel==="stylesheet"?(e=n.disabled,typeof n.precedence=="string"&&e==null):!0;case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Cy(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function dE(e,n,r,i){if(r.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var u=Ho(i.href),m=n.querySelector(ai(u));if(m){n=m._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Xs.bind(e),n.then(e,e)),r.state.loading|=4,r.instance=m,Et(m);return}m=n.ownerDocument||n,i=xy(i),(u=_n.get(u))&&yf(i,u),m=m.createElement("link"),Et(m);var x=m;x._p=new Promise(function(C,A){x.onload=C,x.onerror=A}),Rt(m,"link",i),r.instance=m}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,n),(n=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=Xs.bind(e),n.addEventListener("load",r),n.addEventListener("error",r))}}var xf=0;function fE(e,n){return e.stylesheets&&e.count===0&&Qs(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var i=setTimeout(function(){if(e.stylesheets&&Qs(e,e.stylesheets),e.unsuspend){var m=e.unsuspend;e.unsuspend=null,m()}},6e4+n);0<e.imgBytes&&xf===0&&(xf=62500*WC());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Qs(e,e.stylesheets),e.unsuspend)){var m=e.unsuspend;e.unsuspend=null,m()}},(e.imgBytes>xf?50:800)+n);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(u)}}:null}function Xs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zs=null;function Qs(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zs=new Map,n.forEach(mE,e),Zs=null,Xs.call(e))}function mE(e,n){if(!(n.state.loading&4)){var r=Zs.get(e);if(r)var i=r.get(null);else{r=new Map,Zs.set(e,r);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<u.length;m++){var x=u[m];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(r.set(x.dataset.precedence,x),i=x)}i&&r.set(null,i)}u=n.instance,x=u.getAttribute("data-precedence"),m=r.get(x)||i,m===i&&r.set(null,u),r.set(x,u),this.count++,i=Xs.bind(this),u.addEventListener("load",i),u.addEventListener("error",i),m?m.parentNode.insertBefore(u,m.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),n.state.loading|=4}}var oi={$$typeof:j,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function pE(e,n,r,i,u,m,x,C,A){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=xr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xr(0),this.hiddenUpdates=xr(null),this.identifierPrefix=i,this.onUncaughtError=u,this.onCaughtError=m,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function Ey(e,n,r,i,u,m,x,C,A,W,ee,re){return e=new pE(e,n,r,x,A,W,ee,re,C),n=1,m===!0&&(n|=24),m=nn(3,null,null,n),e.current=m,m.stateNode=e,n=Qu(),n.refCount++,e.pooledCache=n,n.refCount++,m.memoizedState={element:i,isDehydrated:r,cache:n},nd(m),e}function My(e){return e?(e=yo,e):yo}function Ny(e,n,r,i,u,m){u=My(u),i.context===null?i.context=u:i.pendingContext=u,i=Ha(n),i.payload={element:r},m=m===void 0?null:m,m!==null&&(i.callback=m),r=Ya(e,i,n),r!==null&&(Jt(r,e,n),Ll(r,e,n))}function Ty(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<n?r:n}}function Sf(e,n){Ty(e,n),(e=e.alternate)&&Ty(e,n)}function ky(e){if(e.tag===13||e.tag===31){var n=Er(e,67108864);n!==null&&Jt(n,e,67108864),Sf(e,67108864)}}function Oy(e){if(e.tag===13||e.tag===31){var n=sn();n=hu(n);var r=Er(e,n);r!==null&&Jt(r,e,n),Sf(e,n)}}var Js=!0;function hE(e,n,r,i){var u=I.T;I.T=null;var m=z.p;try{z.p=2,wf(e,n,r,i)}finally{z.p=m,I.T=u}}function gE(e,n,r,i){var u=I.T;I.T=null;var m=z.p;try{z.p=8,wf(e,n,r,i)}finally{z.p=m,I.T=u}}function wf(e,n,r,i){if(Js){var u=_f(i);if(u===null)sf(e,n,i,ec,r),jy(e,i);else if(yE(u,e,n,r,i))i.stopPropagation();else if(jy(e,i),n&4&&-1<vE.indexOf(e)){for(;u!==null;){var m=lo(u);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var x=ke(m.pendingLanes);if(x!==0){var C=m;for(C.pendingLanes|=2,C.entangledLanes|=2;x;){var A=1<<31-Lt(x);C.entanglements[1]|=A,x&=~A}Wn(m),(We&6)===0&&(Us=he()+500,Jl(0))}}break;case 31:case 13:C=Er(m,2),C!==null&&Jt(C,m,2),Ps(),Sf(m,2)}if(m=_f(i),m===null&&sf(e,n,i,ec,r),m===u)break;u=m}u!==null&&i.stopPropagation()}else sf(e,n,i,null,r)}}function _f(e){return e=Cu(e),Cf(e)}var ec=null;function Cf(e){if(ec=null,e=oo(e),e!==null){var n=f(e);if(n===null)e=null;else{var r=n.tag;if(r===13){if(e=d(n),e!==null)return e;e=null}else if(r===31){if(e=p(n),e!==null)return e;e=null}else if(r===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return ec=e,null}function Dy(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(Ie()){case Nt:return 2;case Ut:return 8;case mn:case Yn:return 32;case to:return 268435456;default:return 32}default:return 32}}var Ef=!1,Qa=null,Ja=null,er=null,li=new Map,ii=new Map,tr=[],vE="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 jy(e,n){switch(e){case"focusin":case"focusout":Qa=null;break;case"dragenter":case"dragleave":Ja=null;break;case"mouseover":case"mouseout":er=null;break;case"pointerover":case"pointerout":li.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":ii.delete(n.pointerId)}}function si(e,n,r,i,u,m){return e===null||e.nativeEvent!==m?(e={blockedOn:n,domEventName:r,eventSystemFlags:i,nativeEvent:m,targetContainers:[u]},n!==null&&(n=lo(n),n!==null&&ky(n)),e):(e.eventSystemFlags|=i,n=e.targetContainers,u!==null&&n.indexOf(u)===-1&&n.push(u),e)}function yE(e,n,r,i,u){switch(n){case"focusin":return Qa=si(Qa,e,n,r,i,u),!0;case"dragenter":return Ja=si(Ja,e,n,r,i,u),!0;case"mouseover":return er=si(er,e,n,r,i,u),!0;case"pointerover":var m=u.pointerId;return li.set(m,si(li.get(m)||null,e,n,r,i,u)),!0;case"gotpointercapture":return m=u.pointerId,ii.set(m,si(ii.get(m)||null,e,n,r,i,u)),!0}return!1}function Ry(e){var n=oo(e.target);if(n!==null){var r=f(n);if(r!==null){if(n=r.tag,n===13){if(n=d(r),n!==null){e.blockedOn=n,Fp(e.priority,function(){Oy(r)});return}}else if(n===31){if(n=p(r),n!==null){e.blockedOn=n,Fp(e.priority,function(){Oy(r)});return}}else if(n===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function tc(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var r=_f(e.nativeEvent);if(r===null){r=e.nativeEvent;var i=new r.constructor(r.type,r);_u=i,r.target.dispatchEvent(i),_u=null}else return n=lo(r),n!==null&&ky(n),e.blockedOn=r,!1;n.shift()}return!0}function Ay(e,n,r){tc(e)&&r.delete(n)}function bE(){Ef=!1,Qa!==null&&tc(Qa)&&(Qa=null),Ja!==null&&tc(Ja)&&(Ja=null),er!==null&&tc(er)&&(er=null),li.forEach(Ay),ii.forEach(Ay)}function nc(e,n){e.blockedOn===n&&(e.blockedOn=null,Ef||(Ef=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,bE)))}var ac=null;function zy(e){ac!==e&&(ac=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){ac===e&&(ac=null);for(var n=0;n<e.length;n+=3){var r=e[n],i=e[n+1],u=e[n+2];if(typeof i!="function"){if(Cf(i||r)===null)continue;break}var m=lo(r);m!==null&&(e.splice(n,3),n-=3,wd(m,{pending:!0,data:u,method:r.method,action:i},i,u))}}))}function Io(e){function n(A){return nc(A,e)}Qa!==null&&nc(Qa,e),Ja!==null&&nc(Ja,e),er!==null&&nc(er,e),li.forEach(n),ii.forEach(n);for(var r=0;r<tr.length;r++){var i=tr[r];i.blockedOn===e&&(i.blockedOn=null)}for(;0<tr.length&&(r=tr[0],r.blockedOn===null);)Ry(r),r.blockedOn===null&&tr.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(i=0;i<r.length;i+=3){var u=r[i],m=r[i+1],x=u[Ft]||null;if(typeof m=="function")x||zy(r);else if(x){var C=null;if(m&&m.hasAttribute("formAction")){if(u=m,x=m[Ft]||null)C=x.formAction;else if(Cf(u)!==null)continue}else C=x.action;typeof C=="function"?r[i+1]=C:(r.splice(i,3),i-=3),zy(r)}}}function Uy(){function e(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(x){return u=x})},focusReset:"manual",scroll:"manual"})}function n(){u!==null&&(u(),u=null),i||setTimeout(r,20)}function r(){if(!i&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(r,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),u!==null&&(u(),u=null)}}}function Mf(e){this._internalRoot=e}rc.prototype.render=Mf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(s(409));var r=n.current,i=sn();Ny(r,i,e,n,null,null)},rc.prototype.unmount=Mf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Ny(e.current,2,null,e,null,null),Ps(),n[ro]=null}};function rc(e){this._internalRoot=e}rc.prototype.unstable_scheduleHydration=function(e){if(e){var n=Wp();e={blockedOn:null,target:e,priority:n};for(var r=0;r<tr.length&&n!==0&&n<tr[r].priority;r++);tr.splice(r,0,e),r===0&&Ry(e)}};var Ly=o.version;if(Ly!=="19.2.4")throw Error(s(527,Ly,"19.2.4"));z.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=y(n),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var xE={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{en=oc.inject(xE),Tt=oc}catch{}}return ui.createRoot=function(e,n){if(!c(e))throw Error(s(299));var r=!1,i="",u=Vg,m=qg,x=Wg;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError)),n=Ey(e,1,!1,null,null,r,i,null,u,m,x,Uy),e[ro]=n.current,lf(e),new Mf(n)},ui.hydrateRoot=function(e,n,r){if(!c(e))throw Error(s(299));var i=!1,u="",m=Vg,x=qg,C=Wg,A=null;return r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(u=r.identifierPrefix),r.onUncaughtError!==void 0&&(m=r.onUncaughtError),r.onCaughtError!==void 0&&(x=r.onCaughtError),r.onRecoverableError!==void 0&&(C=r.onRecoverableError),r.formState!==void 0&&(A=r.formState)),n=Ey(e,1,!0,n,r??null,i,u,A,m,x,C,Uy),n.context=My(null),r=n.current,i=sn(),i=hu(i),u=Ha(i),u.callback=null,Ya(r,u,i),r=i,n.current.lanes=r,bl(n,r),Wn(n),e[ro]=n.current,lf(e),new rc(n)},ui.version="19.2.4",ui}var Fy;function OE(){if(Fy)return kf.exports;Fy=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),kf.exports=kE(),kf.exports}var DE=OE();const xx=(...t)=>t.filter((a,o,l)=>!!a&&a.trim()!==""&&l.indexOf(a)===o).join(" ").trim();const jE=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const RE=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,o,l)=>l?l.toUpperCase():o.toLowerCase());const $y=t=>{const a=RE(t);return a.charAt(0).toUpperCase()+a.slice(1)};var AE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const zE=t=>{for(const a in t)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};const UE=v.forwardRef(({color:t="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:l,className:s="",children:c,iconNode:f,...d},p)=>v.createElement("svg",{ref:p,...AE,width:a,height:a,stroke:t,strokeWidth:l?Number(o)*24/Number(a):o,className:xx("lucide",s),...!c&&!zE(d)&&{"aria-hidden":"true"},...d},[...f.map(([g,y])=>v.createElement(g,y)),...Array.isArray(c)?c:[c]]));const rt=(t,a)=>{const o=v.forwardRef(({className:l,...s},c)=>v.createElement(UE,{ref:c,iconNode:a,className:xx(`lucide-${jE($y(t))}`,`lucide-${t}`,l),...s}));return o.displayName=$y(t),o};const LE=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Sx=rt("book-open",LE);const PE=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Ky=rt("calendar",PE);const BE=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Im=rt("check",BE);const HE=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Gm=rt("chevron-down",HE);const YE=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],IE=rt("chevron-left",YE);const GE=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],wx=rt("chevron-right",GE);const VE=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],qE=rt("chevron-up",VE);const WE=[["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"}]],_x=rt("copy",WE);const FE=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],Cx=rt("corner-down-left",FE);const $E=[["path",{d:"M14 22h4a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v6",key:"14cnrg"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M5 14a1 1 0 0 0-1 1v2a1 1 0 0 1-1 1 1 1 0 0 1 1 1v2a1 1 0 0 0 1 1",key:"sr0ebq"}],["path",{d:"M9 22a1 1 0 0 0 1-1v-2a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-2a1 1 0 0 0-1-1",key:"w793db"}]],KE=rt("file-braces-corner",$E);const XE=[["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 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],ZE=rt("file-braces",XE);const QE=[["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"}]],Xy=rt("file",QE);const JE=[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]],eM=rt("fingerprint-pattern",JE);const tM=[["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M6 20V4",key:"1w1bmo"}],["path",{d:"M18 20V4",key:"o2hl4u"}]],nM=rt("heading",tM);const aM=[["path",{d:"M10.293 2.293a1 1 0 0 1 1.414 0l2.5 2.5 5.994 1.227a1 1 0 0 1 .506 1.687l-7 7a1 1 0 0 1-1.687-.506l-1.227-5.994-2.5-2.5a1 1 0 0 1 0-1.414z",key:"sb8slu"}],["path",{d:"m14.207 4.793-3.414 3.414",key:"m2x3oj"}],["path",{d:"M3 20a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z",key:"8b3myj"}],["path",{d:"m9.086 6.5-4.793 4.793a1 1 0 0 0-.18 1.17L7 18",key:"43s6cu"}]],rM=rt("lamp-desk",aM);const oM=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ir=rt("loader-circle",oM);const lM=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],iM=rt("lock-keyhole",lM);const sM=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],cM=rt("moon",sM);const uM=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],dM=rt("panel-left",uM);const fM=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Zy=rt("plus",fM);const mM=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Vm=rt("refresh-cw",mM);const pM=[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]],fm=rt("route",pM);const hM=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ex=rt("search",hM);const gM=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],vM=rt("send",gM);const yM=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],bM=rt("sun",yM);const xM=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Qy=rt("trash-2",xM);const SM=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Mx=rt("x",SM),Rf="route",Af="tab",zf="responseTab",Jy="tracelet-docs-tabByRoute",di="tracelet-docs-responseTabByRoute",eb="tracelet-docs-sidebarOpenKeys";function qm(){const t=v.useCallback(()=>typeof window>"u"?null:new URLSearchParams(window.location.search).get(Rf),[]),a=v.useCallback(f=>{const d=new URL(window.location.href);f?d.searchParams.set(Rf,f):d.searchParams.delete(Rf),window.history.replaceState(null,"",d.toString())},[]),o=v.useCallback(()=>typeof window>"u"?null:new URLSearchParams(window.location.search).get(Af),[]),l=v.useCallback(f=>{const d=new URL(window.location.href);f?d.searchParams.set(Af,f):d.searchParams.delete(Af),window.history.replaceState(null,"",d.toString())},[]),s=v.useCallback(()=>typeof window>"u"?null:new URLSearchParams(window.location.search).get(zf),[]),c=v.useCallback(f=>{const d=new URL(window.location.href);f?d.searchParams.set(zf,f):d.searchParams.delete(zf),window.history.replaceState(null,"",d.toString())},[]);return{getRouteFromUrl:t,setRouteInUrl:a,getTabFromUrl:o,setTabInUrl:l,getResponseTabFromUrl:s,setResponseTabInUrl:c}}function wM(){const t=v.useCallback(()=>{try{const s=localStorage.getItem(Jy);if(s)return JSON.parse(s)}catch{}return{}},[]),[a,o]=v.useState(t),l=v.useCallback(s=>{o(c=>{const f=typeof s=="function"?s(c):s;try{localStorage.setItem(Jy,JSON.stringify(f))}catch{}return f})},[]);return[a,l]}function _M(t){const{getResponseTabFromUrl:a,setResponseTabInUrl:o}=qm(),l=v.useCallback(()=>{try{const p=localStorage.getItem(di);if(p){const g=JSON.parse(p);if(g[t]==="headers"||g[t]==="response")return g[t]}}catch{}const d=a();return d==="headers"||d==="response"?d:"response"},[t,a]),[s,c]=v.useState(l);v.useEffect(()=>{const d=l();c(d),o(d);try{const p=localStorage.getItem(di),g=p?JSON.parse(p):{};g[t]=d,localStorage.setItem(di,JSON.stringify(g))}catch{}},[t,l,o]);const f=v.useCallback(d=>{c(d),o(d);try{const p=localStorage.getItem(di),g=p?JSON.parse(p):{};g[t]=d,localStorage.setItem(di,JSON.stringify(g))}catch{}},[t,o]);return[s,f]}function CM(){const t=v.useCallback(()=>{try{const s=localStorage.getItem(eb);if(s){const c=JSON.parse(s);return Array.isArray(c)?new Set(c):new Set}}catch{}return new Set},[]),[a,o]=v.useState(t);v.useEffect(()=>{try{localStorage.setItem(eb,JSON.stringify([...a]))}catch{}},[a]);const l=v.useCallback(s=>{o(c=>{const f=new Set(c);return f.has(s)?f.delete(s):f.add(s),f})},[]);return[a,o,l]}function Nx(t){var a,o,l="";if(typeof t=="string"||typeof t=="number")l+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(a=0;a<s;a++)t[a]&&(o=Nx(t[a]))&&(l&&(l+=" "),l+=o)}else for(o in t)t[o]&&(l&&(l+=" "),l+=o);return l}function Tx(){for(var t,a,o=0,l="",s=arguments.length;o<s;o++)(t=arguments[o])&&(a=Nx(t))&&(l&&(l+=" "),l+=a);return l}const tb=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,nb=Tx,fr=(t,a)=>o=>{var l;if(a?.variants==null)return nb(t,o?.class,o?.className);const{variants:s,defaultVariants:c}=a,f=Object.keys(s).map(g=>{const y=o?.[g],b=c?.[g];if(y===null)return null;const S=tb(y)||tb(b);return s[g][S]}),d=o&&Object.entries(o).reduce((g,y)=>{let[b,S]=y;return S===void 0||(g[b]=S),g},{}),p=a==null||(l=a.compoundVariants)===null||l===void 0?void 0:l.reduce((g,y)=>{let{class:b,className:S,..._}=y;return Object.entries(_).every(M=>{let[w,E]=M;return Array.isArray(E)?E.includes({...c,...d}[w]):{...c,...d}[w]===E})?[...g,b,S]:g},[]);return nb(t,f,p,o?.class,o?.className)};var Ai=bx();const EM=yx(Ai);function ab(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function ta(...t){return a=>{let o=!1;const l=t.map(s=>{const c=ab(s,a);return!o&&typeof c=="function"&&(o=!0),c});if(o)return()=>{for(let s=0;s<l.length;s++){const c=l[s];typeof c=="function"?c():ab(t[s],null)}}}}function Ye(...t){return v.useCallback(ta(...t),t)}function cr(t){const a=MM(t),o=v.forwardRef((l,s)=>{const{children:c,...f}=l,d=v.Children.toArray(c),p=d.find(TM);if(p){const g=p.props.children,y=d.map(b=>b===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:b);return h.jsx(a,{...f,ref:s,children:v.isValidElement(g)?v.cloneElement(g,void 0,y):null})}return h.jsx(a,{...f,ref:s,children:c})});return o.displayName=`${t}.Slot`,o}var Uc=cr("Slot");function MM(t){const a=v.forwardRef((o,l)=>{const{children:s,...c}=o;if(v.isValidElement(s)){const f=OM(s),d=kM(c,s.props);return s.type!==v.Fragment&&(d.ref=l?ta(l,f):f),v.cloneElement(s,d)}return v.Children.count(s)>1?v.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var kx=Symbol("radix.slottable");function NM(t){const a=({children:o})=>h.jsx(h.Fragment,{children:o});return a.displayName=`${t}.Slottable`,a.__radixId=kx,a}function TM(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===kx}function kM(t,a){const o={...a};for(const l in a){const s=t[l],c=a[l];/^on[A-Z]/.test(l)?s&&c?o[l]=(...d)=>{const p=c(...d);return s(...d),p}:s&&(o[l]=s):l==="style"?o[l]={...s,...c}:l==="className"&&(o[l]=[s,c].filter(Boolean).join(" "))}return{...t,...o}}function OM(t){let a=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,o=a&&"isReactWarning"in a&&a.isReactWarning;return o?t.ref:(a=Object.getOwnPropertyDescriptor(t,"ref")?.get,o=a&&"isReactWarning"in a&&a.isReactWarning,o?t.props.ref:t.props.ref||t.ref)}var DM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ee=DM.reduce((t,a)=>{const o=cr(`Primitive.${a}`),l=v.forwardRef((s,c)=>{const{asChild:f,...d}=s,p=f?o:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(p,{...d,ref:c})});return l.displayName=`Primitive.${a}`,{...t,[a]:l}},{});function Ox(t,a){t&&Ai.flushSync(()=>t.dispatchEvent(a))}var Dx=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),jM="VisuallyHidden",jx=v.forwardRef((t,a)=>h.jsx(Ee.span,{...t,ref:a,style:{...Dx,...t.style}}));jx.displayName=jM;var RM=jx;function AM(t,a){const o=v.createContext(a),l=c=>{const{children:f,...d}=c,p=v.useMemo(()=>d,Object.values(d));return h.jsx(o.Provider,{value:p,children:f})};l.displayName=t+"Provider";function s(c){const f=v.useContext(o);if(f)return f;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${t}\``)}return[l,s]}function Tn(t,a=[]){let o=[];function l(c,f){const d=v.createContext(f),p=o.length;o=[...o,f];const g=b=>{const{scope:S,children:_,...M}=b,w=S?.[t]?.[p]||d,E=v.useMemo(()=>M,Object.values(M));return h.jsx(w.Provider,{value:E,children:_})};g.displayName=c+"Provider";function y(b,S){const _=S?.[t]?.[p]||d,M=v.useContext(_);if(M)return M;if(f!==void 0)return f;throw new Error(`\`${b}\` must be used within \`${c}\``)}return[g,y]}const s=()=>{const c=o.map(f=>v.createContext(f));return function(d){const p=d?.[t]||c;return v.useMemo(()=>({[`__scope${t}`]:{...d,[t]:p}}),[d,p])}};return s.scopeName=t,[l,zM(s,...a)]}function zM(...t){const a=t[0];if(t.length===1)return a;const o=()=>{const l=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(c){const f=l.reduce((d,{useScope:p,scopeName:g})=>{const b=p(c)[`__scope${g}`];return{...d,...b}},{});return v.useMemo(()=>({[`__scope${a.scopeName}`]:f}),[f])}};return o.scopeName=a.scopeName,o}function Wm(t){const a=t+"CollectionProvider",[o,l]=Tn(a),[s,c]=o(a,{collectionRef:{current:null},itemMap:new Map}),f=w=>{const{scope:E,children:T}=w,k=fe.useRef(null),D=fe.useRef(new Map).current;return h.jsx(s,{scope:E,itemMap:D,collectionRef:k,children:T})};f.displayName=a;const d=t+"CollectionSlot",p=cr(d),g=fe.forwardRef((w,E)=>{const{scope:T,children:k}=w,D=c(d,T),j=Ye(E,D.collectionRef);return h.jsx(p,{ref:j,children:k})});g.displayName=d;const y=t+"CollectionItemSlot",b="data-radix-collection-item",S=cr(y),_=fe.forwardRef((w,E)=>{const{scope:T,children:k,...D}=w,j=fe.useRef(null),R=Ye(E,j),U=c(y,T);return fe.useEffect(()=>(U.itemMap.set(j,{ref:j,...D}),()=>{U.itemMap.delete(j)})),h.jsx(S,{[b]:"",ref:R,children:k})});_.displayName=y;function M(w){const E=c(t+"CollectionConsumer",w);return fe.useCallback(()=>{const k=E.collectionRef.current;if(!k)return[];const D=Array.from(k.querySelectorAll(`[${b}]`));return Array.from(E.itemMap.values()).sort((U,Y)=>D.indexOf(U.ref.current)-D.indexOf(Y.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:f,Slot:g,ItemSlot:_},M,l]}function me(t,a,{checkForDefaultPrevented:o=!0}={}){return function(s){if(t?.(s),o===!1||!s.defaultPrevented)return a?.(s)}}var At=globalThis?.document?v.useLayoutEffect:()=>{},UM=Ym[" useInsertionEffect ".trim().toString()]||At;function na({prop:t,defaultProp:a,onChange:o=()=>{},caller:l}){const[s,c,f]=LM({defaultProp:a,onChange:o}),d=t!==void 0,p=d?t:s;{const y=v.useRef(t!==void 0);v.useEffect(()=>{const b=y.current;b!==d&&console.warn(`${l} is changing from ${b?"controlled":"uncontrolled"} to ${d?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=d},[d,l])}const g=v.useCallback(y=>{if(d){const b=PM(y)?y(t):y;b!==t&&f.current?.(b)}else c(y)},[d,t,c,f]);return[p,g]}function LM({defaultProp:t,onChange:a}){const[o,l]=v.useState(t),s=v.useRef(o),c=v.useRef(a);return UM(()=>{c.current=a},[a]),v.useEffect(()=>{s.current!==o&&(c.current?.(o),s.current=o)},[o,s]),[o,l,c]}function PM(t){return typeof t=="function"}function BM(t,a){return v.useReducer((o,l)=>a[o][l]??o,t)}var Vt=t=>{const{present:a,children:o}=t,l=HM(a),s=typeof o=="function"?o({present:l.isPresent}):v.Children.only(o),c=Ye(l.ref,YM(s));return typeof o=="function"||l.isPresent?v.cloneElement(s,{ref:c}):null};Vt.displayName="Presence";function HM(t){const[a,o]=v.useState(),l=v.useRef(null),s=v.useRef(t),c=v.useRef("none"),f=t?"mounted":"unmounted",[d,p]=BM(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const g=lc(l.current);c.current=d==="mounted"?g:"none"},[d]),At(()=>{const g=l.current,y=s.current;if(y!==t){const S=c.current,_=lc(g);t?p("MOUNT"):_==="none"||g?.display==="none"?p("UNMOUNT"):p(y&&S!==_?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,p]),At(()=>{if(a){let g;const y=a.ownerDocument.defaultView??window,b=_=>{const w=lc(l.current).includes(CSS.escape(_.animationName));if(_.target===a&&w&&(p("ANIMATION_END"),!s.current)){const E=a.style.animationFillMode;a.style.animationFillMode="forwards",g=y.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=E)})}},S=_=>{_.target===a&&(c.current=lc(l.current))};return a.addEventListener("animationstart",S),a.addEventListener("animationcancel",b),a.addEventListener("animationend",b),()=>{y.clearTimeout(g),a.removeEventListener("animationstart",S),a.removeEventListener("animationcancel",b),a.removeEventListener("animationend",b)}}else p("ANIMATION_END")},[a,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:v.useCallback(g=>{l.current=g?getComputedStyle(g):null,o(g)},[])}}function lc(t){return t?.animationName||"none"}function YM(t){let a=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,o=a&&"isReactWarning"in a&&a.isReactWarning;return o?t.ref:(a=Object.getOwnPropertyDescriptor(t,"ref")?.get,o=a&&"isReactWarning"in a&&a.isReactWarning,o?t.props.ref:t.props.ref||t.ref)}var IM=Ym[" useId ".trim().toString()]||(()=>{}),GM=0;function _t(t){const[a,o]=v.useState(IM());return At(()=>{o(l=>l??String(GM++))},[t]),t||(a?`radix-${a}`:"")}var Lc="Collapsible",[VM]=Tn(Lc),[qM,Fm]=VM(Lc),Rx=v.forwardRef((t,a)=>{const{__scopeCollapsible:o,open:l,defaultOpen:s,disabled:c,onOpenChange:f,...d}=t,[p,g]=na({prop:l,defaultProp:s??!1,onChange:f,caller:Lc});return h.jsx(qM,{scope:o,disabled:c,contentId:_t(),open:p,onOpenToggle:v.useCallback(()=>g(y=>!y),[g]),children:h.jsx(Ee.div,{"data-state":Km(p),"data-disabled":c?"":void 0,...d,ref:a})})});Rx.displayName=Lc;var Ax="CollapsibleTrigger",zx=v.forwardRef((t,a)=>{const{__scopeCollapsible:o,...l}=t,s=Fm(Ax,o);return h.jsx(Ee.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":Km(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...l,ref:a,onClick:me(t.onClick,s.onOpenToggle)})});zx.displayName=Ax;var $m="CollapsibleContent",Ux=v.forwardRef((t,a)=>{const{forceMount:o,...l}=t,s=Fm($m,t.__scopeCollapsible);return h.jsx(Vt,{present:o||s.open,children:({present:c})=>h.jsx(WM,{...l,ref:a,present:c})})});Ux.displayName=$m;var WM=v.forwardRef((t,a)=>{const{__scopeCollapsible:o,present:l,children:s,...c}=t,f=Fm($m,o),[d,p]=v.useState(l),g=v.useRef(null),y=Ye(a,g),b=v.useRef(0),S=b.current,_=v.useRef(0),M=_.current,w=f.open||d,E=v.useRef(w),T=v.useRef(void 0);return v.useEffect(()=>{const k=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(k)},[]),At(()=>{const k=g.current;if(k){T.current=T.current||{transitionDuration:k.style.transitionDuration,animationName:k.style.animationName},k.style.transitionDuration="0s",k.style.animationName="none";const D=k.getBoundingClientRect();b.current=D.height,_.current=D.width,E.current||(k.style.transitionDuration=T.current.transitionDuration,k.style.animationName=T.current.animationName),p(l)}},[f.open,l]),h.jsx(Ee.div,{"data-state":Km(f.open),"data-disabled":f.disabled?"":void 0,id:f.contentId,hidden:!w,...c,ref:y,style:{"--radix-collapsible-content-height":S?`${S}px`:void 0,"--radix-collapsible-content-width":M?`${M}px`:void 0,...t.style},children:w&&s})});function Km(t){return t?"open":"closed"}var FM=Rx,$M=v.createContext(void 0);function Pc(t){const a=v.useContext($M);return t||a||"ltr"}function aa(t){const a=v.useRef(t);return v.useEffect(()=>{a.current=t}),v.useMemo(()=>(...o)=>a.current?.(...o),[])}function KM(t,a=globalThis?.document){const o=aa(t);v.useEffect(()=>{const l=s=>{s.key==="Escape"&&o(s)};return a.addEventListener("keydown",l,{capture:!0}),()=>a.removeEventListener("keydown",l,{capture:!0})},[o,a])}var XM="DismissableLayer",mm="dismissableLayer.update",ZM="dismissableLayer.pointerDownOutside",QM="dismissableLayer.focusOutside",rb,Lx=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),il=v.forwardRef((t,a)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:f,onDismiss:d,...p}=t,g=v.useContext(Lx),[y,b]=v.useState(null),S=y?.ownerDocument??globalThis?.document,[,_]=v.useState({}),M=Ye(a,Y=>b(Y)),w=Array.from(g.layers),[E]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),T=w.indexOf(E),k=y?w.indexOf(y):-1,D=g.layersWithOutsidePointerEventsDisabled.size>0,j=k>=T,R=tN(Y=>{const H=Y.target,ie=[...g.branches].some(oe=>oe.contains(H));!j||ie||(s?.(Y),f?.(Y),Y.defaultPrevented||d?.())},S),U=nN(Y=>{const H=Y.target;[...g.branches].some(oe=>oe.contains(H))||(c?.(Y),f?.(Y),Y.defaultPrevented||d?.())},S);return KM(Y=>{k===g.layers.size-1&&(l?.(Y),!Y.defaultPrevented&&d&&(Y.preventDefault(),d()))},S),v.useEffect(()=>{if(y)return o&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(rb=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),ob(),()=>{o&&g.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=rb)}},[y,S,o,g]),v.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),ob())},[y,g]),v.useEffect(()=>{const Y=()=>_({});return document.addEventListener(mm,Y),()=>document.removeEventListener(mm,Y)},[]),h.jsx(Ee.div,{...p,ref:M,style:{pointerEvents:D?j?"auto":"none":void 0,...t.style},onFocusCapture:me(t.onFocusCapture,U.onFocusCapture),onBlurCapture:me(t.onBlurCapture,U.onBlurCapture),onPointerDownCapture:me(t.onPointerDownCapture,R.onPointerDownCapture)})});il.displayName=XM;var JM="DismissableLayerBranch",eN=v.forwardRef((t,a)=>{const o=v.useContext(Lx),l=v.useRef(null),s=Ye(a,l);return v.useEffect(()=>{const c=l.current;if(c)return o.branches.add(c),()=>{o.branches.delete(c)}},[o.branches]),h.jsx(Ee.div,{...t,ref:s})});eN.displayName=JM;function tN(t,a=globalThis?.document){const o=aa(t),l=v.useRef(!1),s=v.useRef(()=>{});return v.useEffect(()=>{const c=d=>{if(d.target&&!l.current){let p=function(){Px(ZM,o,g,{discrete:!0})};const g={originalEvent:d};d.pointerType==="touch"?(a.removeEventListener("click",s.current),s.current=p,a.addEventListener("click",s.current,{once:!0})):p()}else a.removeEventListener("click",s.current);l.current=!1},f=window.setTimeout(()=>{a.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(f),a.removeEventListener("pointerdown",c),a.removeEventListener("click",s.current)}},[a,o]),{onPointerDownCapture:()=>l.current=!0}}function nN(t,a=globalThis?.document){const o=aa(t),l=v.useRef(!1);return v.useEffect(()=>{const s=c=>{c.target&&!l.current&&Px(QM,o,{originalEvent:c},{discrete:!1})};return a.addEventListener("focusin",s),()=>a.removeEventListener("focusin",s)},[a,o]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function ob(){const t=new CustomEvent(mm);document.dispatchEvent(t)}function Px(t,a,o,{discrete:l}){const s=o.originalEvent.target,c=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:o});a&&s.addEventListener(t,a,{once:!0}),l?Ox(s,c):s.dispatchEvent(c)}var Uf="focusScope.autoFocusOnMount",Lf="focusScope.autoFocusOnUnmount",lb={bubbles:!1,cancelable:!0},aN="FocusScope",zi=v.forwardRef((t,a)=>{const{loop:o=!1,trapped:l=!1,onMountAutoFocus:s,onUnmountAutoFocus:c,...f}=t,[d,p]=v.useState(null),g=aa(s),y=aa(c),b=v.useRef(null),S=Ye(a,w=>p(w)),_=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(l){let w=function(D){if(_.paused||!d)return;const j=D.target;d.contains(j)?b.current=j:lr(b.current,{select:!0})},E=function(D){if(_.paused||!d)return;const j=D.relatedTarget;j!==null&&(d.contains(j)||lr(b.current,{select:!0}))},T=function(D){if(document.activeElement===document.body)for(const R of D)R.removedNodes.length>0&&lr(d)};document.addEventListener("focusin",w),document.addEventListener("focusout",E);const k=new MutationObserver(T);return d&&k.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",E),k.disconnect()}}},[l,d,_.paused]),v.useEffect(()=>{if(d){sb.add(_);const w=document.activeElement;if(!d.contains(w)){const T=new CustomEvent(Uf,lb);d.addEventListener(Uf,g),d.dispatchEvent(T),T.defaultPrevented||(rN(cN(Bx(d)),{select:!0}),document.activeElement===w&&lr(d))}return()=>{d.removeEventListener(Uf,g),setTimeout(()=>{const T=new CustomEvent(Lf,lb);d.addEventListener(Lf,y),d.dispatchEvent(T),T.defaultPrevented||lr(w??document.body,{select:!0}),d.removeEventListener(Lf,y),sb.remove(_)},0)}}},[d,g,y,_]);const M=v.useCallback(w=>{if(!o&&!l||_.paused)return;const E=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,T=document.activeElement;if(E&&T){const k=w.currentTarget,[D,j]=oN(k);D&&j?!w.shiftKey&&T===j?(w.preventDefault(),o&&lr(D,{select:!0})):w.shiftKey&&T===D&&(w.preventDefault(),o&&lr(j,{select:!0})):T===k&&w.preventDefault()}},[o,l,_.paused]);return h.jsx(Ee.div,{tabIndex:-1,...f,ref:S,onKeyDown:M})});zi.displayName=aN;function rN(t,{select:a=!1}={}){const o=document.activeElement;for(const l of t)if(lr(l,{select:a}),document.activeElement!==o)return}function oN(t){const a=Bx(t),o=ib(a,t),l=ib(a.reverse(),t);return[o,l]}function Bx(t){const a=[],o=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const s=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||s?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)a.push(o.currentNode);return a}function ib(t,a){for(const o of t)if(!lN(o,{upTo:a}))return o}function lN(t,{upTo:a}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(a!==void 0&&t===a)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function iN(t){return t instanceof HTMLInputElement&&"select"in t}function lr(t,{select:a=!1}={}){if(t&&t.focus){const o=document.activeElement;t.focus({preventScroll:!0}),t!==o&&iN(t)&&a&&t.select()}}var sb=sN();function sN(){let t=[];return{add(a){const o=t[0];a!==o&&o?.pause(),t=cb(t,a),t.unshift(a)},remove(a){t=cb(t,a),t[0]?.resume()}}}function cb(t,a){const o=[...t],l=o.indexOf(a);return l!==-1&&o.splice(l,1),o}function cN(t){return t.filter(a=>a.tagName!=="A")}var uN="Portal",sl=v.forwardRef((t,a)=>{const{container:o,...l}=t,[s,c]=v.useState(!1);At(()=>c(!0),[]);const f=o||s&&globalThis?.document?.body;return f?EM.createPortal(h.jsx(Ee.div,{...l,ref:a}),f):null});sl.displayName=uN;var Pf=0;function Bc(){v.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??ub()),document.body.insertAdjacentElement("beforeend",t[1]??ub()),Pf++,()=>{Pf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),Pf--}},[])}function ub(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Kn=function(){return Kn=Object.assign||function(a){for(var o,l=1,s=arguments.length;l<s;l++){o=arguments[l];for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(a[c]=o[c])}return a},Kn.apply(this,arguments)};function Hx(t,a){var o={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&a.indexOf(l)<0&&(o[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,l=Object.getOwnPropertySymbols(t);s<l.length;s++)a.indexOf(l[s])<0&&Object.prototype.propertyIsEnumerable.call(t,l[s])&&(o[l[s]]=t[l[s]]);return o}function dN(t,a,o){if(o||arguments.length===2)for(var l=0,s=a.length,c;l<s;l++)(c||!(l in a))&&(c||(c=Array.prototype.slice.call(a,0,l)),c[l]=a[l]);return t.concat(c||Array.prototype.slice.call(a))}var xc="right-scroll-bar-position",Sc="width-before-scroll-bar",fN="with-scroll-bars-hidden",mN="--removed-body-scroll-bar-size";function Bf(t,a){return typeof t=="function"?t(a):t&&(t.current=a),t}function pN(t,a){var o=v.useState(function(){return{value:t,callback:a,facade:{get current(){return o.value},set current(l){var s=o.value;s!==l&&(o.value=l,o.callback(l,s))}}}})[0];return o.callback=a,o.facade}var hN=typeof window<"u"?v.useLayoutEffect:v.useEffect,db=new WeakMap;function gN(t,a){var o=pN(null,function(l){return t.forEach(function(s){return Bf(s,l)})});return hN(function(){var l=db.get(o);if(l){var s=new Set(l),c=new Set(t),f=o.current;s.forEach(function(d){c.has(d)||Bf(d,null)}),c.forEach(function(d){s.has(d)||Bf(d,f)})}db.set(o,t)},[t]),o}function vN(t){return t}function yN(t,a){a===void 0&&(a=vN);var o=[],l=!1,s={read:function(){if(l)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:t},useMedium:function(c){var f=a(c,l);return o.push(f),function(){o=o.filter(function(d){return d!==f})}},assignSyncMedium:function(c){for(l=!0;o.length;){var f=o;o=[],f.forEach(c)}o={push:function(d){return c(d)},filter:function(){return o}}},assignMedium:function(c){l=!0;var f=[];if(o.length){var d=o;o=[],d.forEach(c),f=o}var p=function(){var y=f;f=[],y.forEach(c)},g=function(){return Promise.resolve().then(p)};g(),o={push:function(y){f.push(y),g()},filter:function(y){return f=f.filter(y),o}}}};return s}function bN(t){t===void 0&&(t={});var a=yN(null);return a.options=Kn({async:!0,ssr:!1},t),a}var Yx=function(t){var a=t.sideCar,o=Hx(t,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var l=a.read();if(!l)throw new Error("Sidecar medium not found");return v.createElement(l,Kn({},o))};Yx.isSideCarExport=!0;function xN(t,a){return t.useMedium(a),Yx}var Ix=bN(),Hf=function(){},Hc=v.forwardRef(function(t,a){var o=v.useRef(null),l=v.useState({onScrollCapture:Hf,onWheelCapture:Hf,onTouchMoveCapture:Hf}),s=l[0],c=l[1],f=t.forwardProps,d=t.children,p=t.className,g=t.removeScrollBar,y=t.enabled,b=t.shards,S=t.sideCar,_=t.noRelative,M=t.noIsolation,w=t.inert,E=t.allowPinchZoom,T=t.as,k=T===void 0?"div":T,D=t.gapMode,j=Hx(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=S,U=gN([o,a]),Y=Kn(Kn({},j),s);return v.createElement(v.Fragment,null,y&&v.createElement(R,{sideCar:Ix,removeScrollBar:g,shards:b,noRelative:_,noIsolation:M,inert:w,setCallbacks:c,allowPinchZoom:!!E,lockRef:o,gapMode:D}),f?v.cloneElement(v.Children.only(d),Kn(Kn({},Y),{ref:U})):v.createElement(k,Kn({},Y,{className:p,ref:U}),d))});Hc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Hc.classNames={fullWidth:Sc,zeroRight:xc};var SN=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function wN(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var a=SN();return a&&t.setAttribute("nonce",a),t}function _N(t,a){t.styleSheet?t.styleSheet.cssText=a:t.appendChild(document.createTextNode(a))}function CN(t){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(t)}var EN=function(){var t=0,a=null;return{add:function(o){t==0&&(a=wN())&&(_N(a,o),CN(a)),t++},remove:function(){t--,!t&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},MN=function(){var t=EN();return function(a,o){v.useEffect(function(){return t.add(a),function(){t.remove()}},[a&&o])}},Gx=function(){var t=MN(),a=function(o){var l=o.styles,s=o.dynamic;return t(l,s),null};return a},NN={left:0,top:0,right:0,gap:0},Yf=function(t){return parseInt(t||"",10)||0},TN=function(t){var a=window.getComputedStyle(document.body),o=a[t==="padding"?"paddingLeft":"marginLeft"],l=a[t==="padding"?"paddingTop":"marginTop"],s=a[t==="padding"?"paddingRight":"marginRight"];return[Yf(o),Yf(l),Yf(s)]},kN=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return NN;var a=TN(t),o=document.documentElement.clientWidth,l=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,l-o+a[2]-a[0])}},ON=Gx(),el="data-scroll-locked",DN=function(t,a,o,l){var s=t.left,c=t.top,f=t.right,d=t.gap;return o===void 0&&(o="margin"),`
|
|
10
|
+
.`.concat(fN,` {
|
|
11
|
+
overflow: hidden `).concat(l,`;
|
|
12
|
+
padding-right: `).concat(d,"px ").concat(l,`;
|
|
13
|
+
}
|
|
14
|
+
body[`).concat(el,`] {
|
|
15
|
+
overflow: hidden `).concat(l,`;
|
|
16
|
+
overscroll-behavior: contain;
|
|
17
|
+
`).concat([a&&"position: relative ".concat(l,";"),o==="margin"&&`
|
|
18
|
+
padding-left: `.concat(s,`px;
|
|
19
|
+
padding-top: `).concat(c,`px;
|
|
20
|
+
padding-right: `).concat(f,`px;
|
|
21
|
+
margin-left:0;
|
|
22
|
+
margin-top:0;
|
|
23
|
+
margin-right: `).concat(d,"px ").concat(l,`;
|
|
24
|
+
`),o==="padding"&&"padding-right: ".concat(d,"px ").concat(l,";")].filter(Boolean).join(""),`
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.`).concat(xc,` {
|
|
28
|
+
right: `).concat(d,"px ").concat(l,`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.`).concat(Sc,` {
|
|
32
|
+
margin-right: `).concat(d,"px ").concat(l,`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.`).concat(xc," .").concat(xc,` {
|
|
36
|
+
right: 0 `).concat(l,`;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.`).concat(Sc," .").concat(Sc,` {
|
|
40
|
+
margin-right: 0 `).concat(l,`;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
body[`).concat(el,`] {
|
|
44
|
+
`).concat(mN,": ").concat(d,`px;
|
|
45
|
+
}
|
|
46
|
+
`)},fb=function(){var t=parseInt(document.body.getAttribute(el)||"0",10);return isFinite(t)?t:0},jN=function(){v.useEffect(function(){return document.body.setAttribute(el,(fb()+1).toString()),function(){var t=fb()-1;t<=0?document.body.removeAttribute(el):document.body.setAttribute(el,t.toString())}},[])},RN=function(t){var a=t.noRelative,o=t.noImportant,l=t.gapMode,s=l===void 0?"margin":l;jN();var c=v.useMemo(function(){return kN(s)},[s]);return v.createElement(ON,{styles:DN(c,!a,s,o?"":"!important")})},pm=!1;if(typeof window<"u")try{var ic=Object.defineProperty({},"passive",{get:function(){return pm=!0,!0}});window.addEventListener("test",ic,ic),window.removeEventListener("test",ic,ic)}catch{pm=!1}var Go=pm?{passive:!1}:!1,AN=function(t){return t.tagName==="TEXTAREA"},Vx=function(t,a){if(!(t instanceof Element))return!1;var o=window.getComputedStyle(t);return o[a]!=="hidden"&&!(o.overflowY===o.overflowX&&!AN(t)&&o[a]==="visible")},zN=function(t){return Vx(t,"overflowY")},UN=function(t){return Vx(t,"overflowX")},mb=function(t,a){var o=a.ownerDocument,l=a;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var s=qx(t,l);if(s){var c=Wx(t,l),f=c[1],d=c[2];if(f>d)return!0}l=l.parentNode}while(l&&l!==o.body);return!1},LN=function(t){var a=t.scrollTop,o=t.scrollHeight,l=t.clientHeight;return[a,o,l]},PN=function(t){var a=t.scrollLeft,o=t.scrollWidth,l=t.clientWidth;return[a,o,l]},qx=function(t,a){return t==="v"?zN(a):UN(a)},Wx=function(t,a){return t==="v"?LN(a):PN(a)},BN=function(t,a){return t==="h"&&a==="rtl"?-1:1},HN=function(t,a,o,l,s){var c=BN(t,window.getComputedStyle(a).direction),f=c*l,d=o.target,p=a.contains(d),g=!1,y=f>0,b=0,S=0;do{if(!d)break;var _=Wx(t,d),M=_[0],w=_[1],E=_[2],T=w-E-c*M;(M||T)&&qx(t,d)&&(b+=T,S+=M);var k=d.parentNode;d=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!p&&d!==document.body||p&&(a.contains(d)||a===d));return(y&&Math.abs(b)<1||!y&&Math.abs(S)<1)&&(g=!0),g},sc=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},pb=function(t){return[t.deltaX,t.deltaY]},hb=function(t){return t&&"current"in t?t.current:t},YN=function(t,a){return t[0]===a[0]&&t[1]===a[1]},IN=function(t){return`
|
|
47
|
+
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
48
|
+
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
49
|
+
`)},GN=0,Vo=[];function VN(t){var a=v.useRef([]),o=v.useRef([0,0]),l=v.useRef(),s=v.useState(GN++)[0],c=v.useState(Gx)[0],f=v.useRef(t);v.useEffect(function(){f.current=t},[t]),v.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var w=dN([t.lockRef.current],(t.shards||[]).map(hb),!0).filter(Boolean);return w.forEach(function(E){return E.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),w.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var d=v.useCallback(function(w,E){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!f.current.allowPinchZoom;var T=sc(w),k=o.current,D="deltaX"in w?w.deltaX:k[0]-T[0],j="deltaY"in w?w.deltaY:k[1]-T[1],R,U=w.target,Y=Math.abs(D)>Math.abs(j)?"h":"v";if("touches"in w&&Y==="h"&&U.type==="range")return!1;var H=window.getSelection(),ie=H&&H.anchorNode,oe=ie?ie===U||ie.contains(U):!1;if(oe)return!1;var O=mb(Y,U);if(!O)return!0;if(O?R=Y:(R=Y==="v"?"h":"v",O=mb(Y,U)),!O)return!1;if(!l.current&&"changedTouches"in w&&(D||j)&&(l.current=R),!R)return!0;var J=l.current||R;return HN(J,E,w,J==="h"?D:j)},[]),p=v.useCallback(function(w){var E=w;if(!(!Vo.length||Vo[Vo.length-1]!==c)){var T="deltaY"in E?pb(E):sc(E),k=a.current.filter(function(R){return R.name===E.type&&(R.target===E.target||E.target===R.shadowParent)&&YN(R.delta,T)})[0];if(k&&k.should){E.cancelable&&E.preventDefault();return}if(!k){var D=(f.current.shards||[]).map(hb).filter(Boolean).filter(function(R){return R.contains(E.target)}),j=D.length>0?d(E,D[0]):!f.current.noIsolation;j&&E.cancelable&&E.preventDefault()}}},[]),g=v.useCallback(function(w,E,T,k){var D={name:w,delta:E,target:T,should:k,shadowParent:qN(T)};a.current.push(D),setTimeout(function(){a.current=a.current.filter(function(j){return j!==D})},1)},[]),y=v.useCallback(function(w){o.current=sc(w),l.current=void 0},[]),b=v.useCallback(function(w){g(w.type,pb(w),w.target,d(w,t.lockRef.current))},[]),S=v.useCallback(function(w){g(w.type,sc(w),w.target,d(w,t.lockRef.current))},[]);v.useEffect(function(){return Vo.push(c),t.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:S}),document.addEventListener("wheel",p,Go),document.addEventListener("touchmove",p,Go),document.addEventListener("touchstart",y,Go),function(){Vo=Vo.filter(function(w){return w!==c}),document.removeEventListener("wheel",p,Go),document.removeEventListener("touchmove",p,Go),document.removeEventListener("touchstart",y,Go)}},[]);var _=t.removeScrollBar,M=t.inert;return v.createElement(v.Fragment,null,M?v.createElement(c,{styles:IN(s)}):null,_?v.createElement(RN,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function qN(t){for(var a=null;t!==null;)t instanceof ShadowRoot&&(a=t.host,t=t.host),t=t.parentNode;return a}const WN=xN(Ix,VN);var Ui=v.forwardRef(function(t,a){return v.createElement(Hc,Kn({},t,{ref:a,sideCar:WN}))});Ui.classNames=Hc.classNames;var FN=function(t){if(typeof document>"u")return null;var a=Array.isArray(t)?t[0]:t;return a.ownerDocument.body},qo=new WeakMap,cc=new WeakMap,uc={},If=0,Fx=function(t){return t&&(t.host||Fx(t.parentNode))},$N=function(t,a){return a.map(function(o){if(t.contains(o))return o;var l=Fx(o);return l&&t.contains(l)?l:(console.error("aria-hidden",o,"in not contained inside",t,". Doing nothing"),null)}).filter(function(o){return!!o})},KN=function(t,a,o,l){var s=$N(a,Array.isArray(t)?t:[t]);uc[o]||(uc[o]=new WeakMap);var c=uc[o],f=[],d=new Set,p=new Set(s),g=function(b){!b||d.has(b)||(d.add(b),g(b.parentNode))};s.forEach(g);var y=function(b){!b||p.has(b)||Array.prototype.forEach.call(b.children,function(S){if(d.has(S))y(S);else try{var _=S.getAttribute(l),M=_!==null&&_!=="false",w=(qo.get(S)||0)+1,E=(c.get(S)||0)+1;qo.set(S,w),c.set(S,E),f.push(S),w===1&&M&&cc.set(S,!0),E===1&&S.setAttribute(o,"true"),M||S.setAttribute(l,"true")}catch(T){console.error("aria-hidden: cannot operate on ",S,T)}})};return y(a),d.clear(),If++,function(){f.forEach(function(b){var S=qo.get(b)-1,_=c.get(b)-1;qo.set(b,S),c.set(b,_),S||(cc.has(b)||b.removeAttribute(l),cc.delete(b)),_||b.removeAttribute(o)}),If--,If||(qo=new WeakMap,qo=new WeakMap,cc=new WeakMap,uc={})}},Yc=function(t,a,o){o===void 0&&(o="data-aria-hidden");var l=Array.from(Array.isArray(t)?t:[t]),s=FN(t);return s?(l.push.apply(l,Array.from(s.querySelectorAll("[aria-live], script"))),KN(l,s,o,"aria-hidden")):function(){return null}},Ic="Dialog",[$x]=Tn(Ic),[XN,Hn]=$x(Ic),Kx=t=>{const{__scopeDialog:a,children:o,open:l,defaultOpen:s,onOpenChange:c,modal:f=!0}=t,d=v.useRef(null),p=v.useRef(null),[g,y]=na({prop:l,defaultProp:s??!1,onChange:c,caller:Ic});return h.jsx(XN,{scope:a,triggerRef:d,contentRef:p,contentId:_t(),titleId:_t(),descriptionId:_t(),open:g,onOpenChange:y,onOpenToggle:v.useCallback(()=>y(b=>!b),[y]),modal:f,children:o})};Kx.displayName=Ic;var Xx="DialogTrigger",ZN=v.forwardRef((t,a)=>{const{__scopeDialog:o,...l}=t,s=Hn(Xx,o),c=Ye(a,s.triggerRef);return h.jsx(Ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Qm(s.open),...l,ref:c,onClick:me(t.onClick,s.onOpenToggle)})});ZN.displayName=Xx;var Xm="DialogPortal",[QN,Zx]=$x(Xm,{forceMount:void 0}),Qx=t=>{const{__scopeDialog:a,forceMount:o,children:l,container:s}=t,c=Hn(Xm,a);return h.jsx(QN,{scope:a,forceMount:o,children:v.Children.map(l,f=>h.jsx(Vt,{present:o||c.open,children:h.jsx(sl,{asChild:!0,container:s,children:f})}))})};Qx.displayName=Xm;var Ec="DialogOverlay",Jx=v.forwardRef((t,a)=>{const o=Zx(Ec,t.__scopeDialog),{forceMount:l=o.forceMount,...s}=t,c=Hn(Ec,t.__scopeDialog);return c.modal?h.jsx(Vt,{present:l||c.open,children:h.jsx(eT,{...s,ref:a})}):null});Jx.displayName=Ec;var JN=cr("DialogOverlay.RemoveScroll"),eT=v.forwardRef((t,a)=>{const{__scopeDialog:o,...l}=t,s=Hn(Ec,o);return h.jsx(Ui,{as:JN,allowPinchZoom:!0,shards:[s.contentRef],children:h.jsx(Ee.div,{"data-state":Qm(s.open),...l,ref:a,style:{pointerEvents:"auto",...l.style}})})}),Vr="DialogContent",e0=v.forwardRef((t,a)=>{const o=Zx(Vr,t.__scopeDialog),{forceMount:l=o.forceMount,...s}=t,c=Hn(Vr,t.__scopeDialog);return h.jsx(Vt,{present:l||c.open,children:c.modal?h.jsx(tT,{...s,ref:a}):h.jsx(nT,{...s,ref:a})})});e0.displayName=Vr;var tT=v.forwardRef((t,a)=>{const o=Hn(Vr,t.__scopeDialog),l=v.useRef(null),s=Ye(a,o.contentRef,l);return v.useEffect(()=>{const c=l.current;if(c)return Yc(c)},[]),h.jsx(t0,{...t,ref:s,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:me(t.onCloseAutoFocus,c=>{c.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:me(t.onPointerDownOutside,c=>{const f=c.detail.originalEvent,d=f.button===0&&f.ctrlKey===!0;(f.button===2||d)&&c.preventDefault()}),onFocusOutside:me(t.onFocusOutside,c=>c.preventDefault())})}),nT=v.forwardRef((t,a)=>{const o=Hn(Vr,t.__scopeDialog),l=v.useRef(!1),s=v.useRef(!1);return h.jsx(t0,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{t.onCloseAutoFocus?.(c),c.defaultPrevented||(l.current||o.triggerRef.current?.focus(),c.preventDefault()),l.current=!1,s.current=!1},onInteractOutside:c=>{t.onInteractOutside?.(c),c.defaultPrevented||(l.current=!0,c.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const f=c.target;o.triggerRef.current?.contains(f)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&s.current&&c.preventDefault()}})}),t0=v.forwardRef((t,a)=>{const{__scopeDialog:o,trapFocus:l,onOpenAutoFocus:s,onCloseAutoFocus:c,...f}=t,d=Hn(Vr,o),p=v.useRef(null),g=Ye(a,p);return Bc(),h.jsxs(h.Fragment,{children:[h.jsx(zi,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:s,onUnmountAutoFocus:c,children:h.jsx(il,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":Qm(d.open),...f,ref:g,onDismiss:()=>d.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(aT,{titleId:d.titleId}),h.jsx(oT,{contentRef:p,descriptionId:d.descriptionId})]})]})}),Zm="DialogTitle",n0=v.forwardRef((t,a)=>{const{__scopeDialog:o,...l}=t,s=Hn(Zm,o);return h.jsx(Ee.h2,{id:s.titleId,...l,ref:a})});n0.displayName=Zm;var a0="DialogDescription",r0=v.forwardRef((t,a)=>{const{__scopeDialog:o,...l}=t,s=Hn(a0,o);return h.jsx(Ee.p,{id:s.descriptionId,...l,ref:a})});r0.displayName=a0;var o0="DialogClose",l0=v.forwardRef((t,a)=>{const{__scopeDialog:o,...l}=t,s=Hn(o0,o);return h.jsx(Ee.button,{type:"button",...l,ref:a,onClick:me(t.onClick,()=>s.onOpenChange(!1))})});l0.displayName=o0;function Qm(t){return t?"open":"closed"}var i0="DialogTitleWarning",[T6,s0]=AM(i0,{contentName:Vr,titleName:Zm,docsSlug:"dialog"}),aT=({titleId:t})=>{const a=s0(i0),o=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
|
|
50
|
+
|
|
51
|
+
If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
52
|
+
|
|
53
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return v.useEffect(()=>{t&&(document.getElementById(t)||console.error(o))},[o,t]),null},rT="DialogDescriptionWarning",oT=({contentRef:t,descriptionId:a})=>{const l=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${s0(rT).contentName}}.`;return v.useEffect(()=>{const s=t.current?.getAttribute("aria-describedby");a&&s&&(document.getElementById(a)||console.warn(l))},[l,t,a]),null},Jm=Kx,ep=Qx,tp=Jx,np=e0,c0=n0,u0=r0,d0=l0;function f0(t){const a=v.useRef({value:t,previous:t});return v.useMemo(()=>(a.current.value!==t&&(a.current.previous=a.current.value,a.current.value=t),a.current.previous),[t])}function m0(t){const[a,o]=v.useState(void 0);return At(()=>{if(t){o({width:t.offsetWidth,height:t.offsetHeight});const l=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const c=s[0];let f,d;if("borderBoxSize"in c){const p=c.borderBoxSize,g=Array.isArray(p)?p[0]:p;f=g.inlineSize,d=g.blockSize}else f=t.offsetWidth,d=t.offsetHeight;o({width:f,height:d})});return l.observe(t,{box:"border-box"}),()=>l.unobserve(t)}else o(void 0)},[t]),a}var Gc="Checkbox",[lT]=Tn(Gc),[iT,ap]=lT(Gc);function sT(t){const{__scopeCheckbox:a,checked:o,children:l,defaultChecked:s,disabled:c,form:f,name:d,onCheckedChange:p,required:g,value:y="on",internal_do_not_use_render:b}=t,[S,_]=na({prop:o,defaultProp:s??!1,onChange:p,caller:Gc}),[M,w]=v.useState(null),[E,T]=v.useState(null),k=v.useRef(!1),D=M?!!f||!!M.closest("form"):!0,j={checked:S,disabled:c,setChecked:_,control:M,setControl:w,name:d,form:f,value:y,hasConsumerStoppedPropagationRef:k,required:g,defaultChecked:sr(s)?!1:s,isFormControl:D,bubbleInput:E,setBubbleInput:T};return h.jsx(iT,{scope:a,...j,children:cT(b)?b(j):l})}var p0="CheckboxTrigger",h0=v.forwardRef(({__scopeCheckbox:t,onKeyDown:a,onClick:o,...l},s)=>{const{control:c,value:f,disabled:d,checked:p,required:g,setControl:y,setChecked:b,hasConsumerStoppedPropagationRef:S,isFormControl:_,bubbleInput:M}=ap(p0,t),w=Ye(s,y),E=v.useRef(p);return v.useEffect(()=>{const T=c?.form;if(T){const k=()=>b(E.current);return T.addEventListener("reset",k),()=>T.removeEventListener("reset",k)}},[c,b]),h.jsx(Ee.button,{type:"button",role:"checkbox","aria-checked":sr(p)?"mixed":p,"aria-required":g,"data-state":S0(p),"data-disabled":d?"":void 0,disabled:d,value:f,...l,ref:w,onKeyDown:me(a,T=>{T.key==="Enter"&&T.preventDefault()}),onClick:me(o,T=>{b(k=>sr(k)?!0:!k),M&&_&&(S.current=T.isPropagationStopped(),S.current||T.stopPropagation())})})});h0.displayName=p0;var g0=v.forwardRef((t,a)=>{const{__scopeCheckbox:o,name:l,checked:s,defaultChecked:c,required:f,disabled:d,value:p,onCheckedChange:g,form:y,...b}=t;return h.jsx(sT,{__scopeCheckbox:o,checked:s,defaultChecked:c,disabled:d,required:f,onCheckedChange:g,name:l,form:y,value:p,internal_do_not_use_render:({isFormControl:S})=>h.jsxs(h.Fragment,{children:[h.jsx(h0,{...b,ref:a,__scopeCheckbox:o}),S&&h.jsx(x0,{__scopeCheckbox:o})]})})});g0.displayName=Gc;var v0="CheckboxIndicator",y0=v.forwardRef((t,a)=>{const{__scopeCheckbox:o,forceMount:l,...s}=t,c=ap(v0,o);return h.jsx(Vt,{present:l||sr(c.checked)||c.checked===!0,children:h.jsx(Ee.span,{"data-state":S0(c.checked),"data-disabled":c.disabled?"":void 0,...s,ref:a,style:{pointerEvents:"none",...t.style}})})});y0.displayName=v0;var b0="CheckboxBubbleInput",x0=v.forwardRef(({__scopeCheckbox:t,...a},o)=>{const{control:l,hasConsumerStoppedPropagationRef:s,checked:c,defaultChecked:f,required:d,disabled:p,name:g,value:y,form:b,bubbleInput:S,setBubbleInput:_}=ap(b0,t),M=Ye(o,_),w=f0(c),E=m0(l);v.useEffect(()=>{const k=S;if(!k)return;const D=window.HTMLInputElement.prototype,R=Object.getOwnPropertyDescriptor(D,"checked").set,U=!s.current;if(w!==c&&R){const Y=new Event("click",{bubbles:U});k.indeterminate=sr(c),R.call(k,sr(c)?!1:c),k.dispatchEvent(Y)}},[S,w,c,s]);const T=v.useRef(sr(c)?!1:c);return h.jsx(Ee.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??T.current,required:d,disabled:p,name:g,value:y,form:b,...a,tabIndex:-1,ref:M,style:{...a.style,...E,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});x0.displayName=b0;function cT(t){return typeof t=="function"}function sr(t){return t==="indeterminate"}function S0(t){return sr(t)?"indeterminate":t?"checked":"unchecked"}const uT=["top","right","bottom","left"],ur=Math.min,un=Math.max,Mc=Math.round,dc=Math.floor,ea=t=>({x:t,y:t}),dT={left:"right",right:"left",bottom:"top",top:"bottom"},fT={start:"end",end:"start"};function hm(t,a,o){return un(t,ur(a,o))}function Oa(t,a){return typeof t=="function"?t(a):t}function Da(t){return t.split("-")[0]}function cl(t){return t.split("-")[1]}function rp(t){return t==="x"?"y":"x"}function op(t){return t==="y"?"height":"width"}const mT=new Set(["top","bottom"]);function Qn(t){return mT.has(Da(t))?"y":"x"}function lp(t){return rp(Qn(t))}function pT(t,a,o){o===void 0&&(o=!1);const l=cl(t),s=lp(t),c=op(s);let f=s==="x"?l===(o?"end":"start")?"right":"left":l==="start"?"bottom":"top";return a.reference[c]>a.floating[c]&&(f=Nc(f)),[f,Nc(f)]}function hT(t){const a=Nc(t);return[gm(t),a,gm(a)]}function gm(t){return t.replace(/start|end/g,a=>fT[a])}const gb=["left","right"],vb=["right","left"],gT=["top","bottom"],vT=["bottom","top"];function yT(t,a,o){switch(t){case"top":case"bottom":return o?a?vb:gb:a?gb:vb;case"left":case"right":return a?gT:vT;default:return[]}}function bT(t,a,o,l){const s=cl(t);let c=yT(Da(t),o==="start",l);return s&&(c=c.map(f=>f+"-"+s),a&&(c=c.concat(c.map(gm)))),c}function Nc(t){return t.replace(/left|right|bottom|top/g,a=>dT[a])}function xT(t){return{top:0,right:0,bottom:0,left:0,...t}}function w0(t){return typeof t!="number"?xT(t):{top:t,right:t,bottom:t,left:t}}function Tc(t){const{x:a,y:o,width:l,height:s}=t;return{width:l,height:s,top:o,left:a,right:a+l,bottom:o+s,x:a,y:o}}function yb(t,a,o){let{reference:l,floating:s}=t;const c=Qn(a),f=lp(a),d=op(f),p=Da(a),g=c==="y",y=l.x+l.width/2-s.width/2,b=l.y+l.height/2-s.height/2,S=l[d]/2-s[d]/2;let _;switch(p){case"top":_={x:y,y:l.y-s.height};break;case"bottom":_={x:y,y:l.y+l.height};break;case"right":_={x:l.x+l.width,y:b};break;case"left":_={x:l.x-s.width,y:b};break;default:_={x:l.x,y:l.y}}switch(cl(a)){case"start":_[f]-=S*(o&&g?-1:1);break;case"end":_[f]+=S*(o&&g?-1:1);break}return _}async function ST(t,a){var o;a===void 0&&(a={});const{x:l,y:s,platform:c,rects:f,elements:d,strategy:p}=t,{boundary:g="clippingAncestors",rootBoundary:y="viewport",elementContext:b="floating",altBoundary:S=!1,padding:_=0}=Oa(a,t),M=w0(_),E=d[S?b==="floating"?"reference":"floating":b],T=Tc(await c.getClippingRect({element:(o=await(c.isElement==null?void 0:c.isElement(E)))==null||o?E:E.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:g,rootBoundary:y,strategy:p})),k=b==="floating"?{x:l,y:s,width:f.floating.width,height:f.floating.height}:f.reference,D=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),j=await(c.isElement==null?void 0:c.isElement(D))?await(c.getScale==null?void 0:c.getScale(D))||{x:1,y:1}:{x:1,y:1},R=Tc(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:k,offsetParent:D,strategy:p}):k);return{top:(T.top-R.top+M.top)/j.y,bottom:(R.bottom-T.bottom+M.bottom)/j.y,left:(T.left-R.left+M.left)/j.x,right:(R.right-T.right+M.right)/j.x}}const wT=async(t,a,o)=>{const{placement:l="bottom",strategy:s="absolute",middleware:c=[],platform:f}=o,d=c.filter(Boolean),p=await(f.isRTL==null?void 0:f.isRTL(a));let g=await f.getElementRects({reference:t,floating:a,strategy:s}),{x:y,y:b}=yb(g,l,p),S=l,_={},M=0;for(let E=0;E<d.length;E++){var w;const{name:T,fn:k}=d[E],{x:D,y:j,data:R,reset:U}=await k({x:y,y:b,initialPlacement:l,placement:S,strategy:s,middlewareData:_,rects:g,platform:{...f,detectOverflow:(w=f.detectOverflow)!=null?w:ST},elements:{reference:t,floating:a}});y=D??y,b=j??b,_={..._,[T]:{..._[T],...R}},U&&M<=50&&(M++,typeof U=="object"&&(U.placement&&(S=U.placement),U.rects&&(g=U.rects===!0?await f.getElementRects({reference:t,floating:a,strategy:s}):U.rects),{x:y,y:b}=yb(g,S,p)),E=-1)}return{x:y,y:b,placement:S,strategy:s,middlewareData:_}},_T=t=>({name:"arrow",options:t,async fn(a){const{x:o,y:l,placement:s,rects:c,platform:f,elements:d,middlewareData:p}=a,{element:g,padding:y=0}=Oa(t,a)||{};if(g==null)return{};const b=w0(y),S={x:o,y:l},_=lp(s),M=op(_),w=await f.getDimensions(g),E=_==="y",T=E?"top":"left",k=E?"bottom":"right",D=E?"clientHeight":"clientWidth",j=c.reference[M]+c.reference[_]-S[_]-c.floating[M],R=S[_]-c.reference[_],U=await(f.getOffsetParent==null?void 0:f.getOffsetParent(g));let Y=U?U[D]:0;(!Y||!await(f.isElement==null?void 0:f.isElement(U)))&&(Y=d.floating[D]||c.floating[M]);const H=j/2-R/2,ie=Y/2-w[M]/2-1,oe=ur(b[T],ie),O=ur(b[k],ie),J=oe,le=Y-w[M]-O,ae=Y/2-w[M]/2+H,V=hm(J,ae,le),P=!p.arrow&&cl(s)!=null&&ae!==V&&c.reference[M]/2-(ae<J?oe:O)-w[M]/2<0,I=P?ae<J?ae-J:ae-le:0;return{[_]:S[_]+I,data:{[_]:V,centerOffset:ae-V-I,...P&&{alignmentOffset:I}},reset:P}}}),CT=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(a){var o,l;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:p,elements:g}=a,{mainAxis:y=!0,crossAxis:b=!0,fallbackPlacements:S,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:M="none",flipAlignment:w=!0,...E}=Oa(t,a);if((o=c.arrow)!=null&&o.alignmentOffset)return{};const T=Da(s),k=Qn(d),D=Da(d)===d,j=await(p.isRTL==null?void 0:p.isRTL(g.floating)),R=S||(D||!w?[Nc(d)]:hT(d)),U=M!=="none";!S&&U&&R.push(...bT(d,w,M,j));const Y=[d,...R],H=await p.detectOverflow(a,E),ie=[];let oe=((l=c.flip)==null?void 0:l.overflows)||[];if(y&&ie.push(H[T]),b){const ae=pT(s,f,j);ie.push(H[ae[0]],H[ae[1]])}if(oe=[...oe,{placement:s,overflows:ie}],!ie.every(ae=>ae<=0)){var O,J;const ae=(((O=c.flip)==null?void 0:O.index)||0)+1,V=Y[ae];if(V&&(!(b==="alignment"?k!==Qn(V):!1)||oe.every(z=>Qn(z.placement)===k?z.overflows[0]>0:!0)))return{data:{index:ae,overflows:oe},reset:{placement:V}};let P=(J=oe.filter(I=>I.overflows[0]<=0).sort((I,z)=>I.overflows[1]-z.overflows[1])[0])==null?void 0:J.placement;if(!P)switch(_){case"bestFit":{var le;const I=(le=oe.filter(z=>{if(U){const F=Qn(z.placement);return F===k||F==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(F=>F>0).reduce((F,ce)=>F+ce,0)]).sort((z,F)=>z[1]-F[1])[0])==null?void 0:le[0];I&&(P=I);break}case"initialPlacement":P=d;break}if(s!==P)return{reset:{placement:P}}}return{}}}};function bb(t,a){return{top:t.top-a.height,right:t.right-a.width,bottom:t.bottom-a.height,left:t.left-a.width}}function xb(t){return uT.some(a=>t[a]>=0)}const ET=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(a){const{rects:o,platform:l}=a,{strategy:s="referenceHidden",...c}=Oa(t,a);switch(s){case"referenceHidden":{const f=await l.detectOverflow(a,{...c,elementContext:"reference"}),d=bb(f,o.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:xb(d)}}}case"escaped":{const f=await l.detectOverflow(a,{...c,altBoundary:!0}),d=bb(f,o.floating);return{data:{escapedOffsets:d,escaped:xb(d)}}}default:return{}}}}},_0=new Set(["left","top"]);async function MT(t,a){const{placement:o,platform:l,elements:s}=t,c=await(l.isRTL==null?void 0:l.isRTL(s.floating)),f=Da(o),d=cl(o),p=Qn(o)==="y",g=_0.has(f)?-1:1,y=c&&p?-1:1,b=Oa(a,t);let{mainAxis:S,crossAxis:_,alignmentAxis:M}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return d&&typeof M=="number"&&(_=d==="end"?M*-1:M),p?{x:_*y,y:S*g}:{x:S*g,y:_*y}}const NT=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(a){var o,l;const{x:s,y:c,placement:f,middlewareData:d}=a,p=await MT(a,t);return f===((o=d.offset)==null?void 0:o.placement)&&(l=d.arrow)!=null&&l.alignmentOffset?{}:{x:s+p.x,y:c+p.y,data:{...p,placement:f}}}}},TT=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(a){const{x:o,y:l,placement:s,platform:c}=a,{mainAxis:f=!0,crossAxis:d=!1,limiter:p={fn:T=>{let{x:k,y:D}=T;return{x:k,y:D}}},...g}=Oa(t,a),y={x:o,y:l},b=await c.detectOverflow(a,g),S=Qn(Da(s)),_=rp(S);let M=y[_],w=y[S];if(f){const T=_==="y"?"top":"left",k=_==="y"?"bottom":"right",D=M+b[T],j=M-b[k];M=hm(D,M,j)}if(d){const T=S==="y"?"top":"left",k=S==="y"?"bottom":"right",D=w+b[T],j=w-b[k];w=hm(D,w,j)}const E=p.fn({...a,[_]:M,[S]:w});return{...E,data:{x:E.x-o,y:E.y-l,enabled:{[_]:f,[S]:d}}}}}},kT=function(t){return t===void 0&&(t={}),{options:t,fn(a){const{x:o,y:l,placement:s,rects:c,middlewareData:f}=a,{offset:d=0,mainAxis:p=!0,crossAxis:g=!0}=Oa(t,a),y={x:o,y:l},b=Qn(s),S=rp(b);let _=y[S],M=y[b];const w=Oa(d,a),E=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(p){const D=S==="y"?"height":"width",j=c.reference[S]-c.floating[D]+E.mainAxis,R=c.reference[S]+c.reference[D]-E.mainAxis;_<j?_=j:_>R&&(_=R)}if(g){var T,k;const D=S==="y"?"width":"height",j=_0.has(Da(s)),R=c.reference[b]-c.floating[D]+(j&&((T=f.offset)==null?void 0:T[b])||0)+(j?0:E.crossAxis),U=c.reference[b]+c.reference[D]+(j?0:((k=f.offset)==null?void 0:k[b])||0)-(j?E.crossAxis:0);M<R?M=R:M>U&&(M=U)}return{[S]:_,[b]:M}}}},OT=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(a){var o,l;const{placement:s,rects:c,platform:f,elements:d}=a,{apply:p=()=>{},...g}=Oa(t,a),y=await f.detectOverflow(a,g),b=Da(s),S=cl(s),_=Qn(s)==="y",{width:M,height:w}=c.floating;let E,T;b==="top"||b==="bottom"?(E=b,T=S===(await(f.isRTL==null?void 0:f.isRTL(d.floating))?"start":"end")?"left":"right"):(T=b,E=S==="end"?"top":"bottom");const k=w-y.top-y.bottom,D=M-y.left-y.right,j=ur(w-y[E],k),R=ur(M-y[T],D),U=!a.middlewareData.shift;let Y=j,H=R;if((o=a.middlewareData.shift)!=null&&o.enabled.x&&(H=D),(l=a.middlewareData.shift)!=null&&l.enabled.y&&(Y=k),U&&!S){const oe=un(y.left,0),O=un(y.right,0),J=un(y.top,0),le=un(y.bottom,0);_?H=M-2*(oe!==0||O!==0?oe+O:un(y.left,y.right)):Y=w-2*(J!==0||le!==0?J+le:un(y.top,y.bottom))}await p({...a,availableWidth:H,availableHeight:Y});const ie=await f.getDimensions(d.floating);return M!==ie.width||w!==ie.height?{reset:{rects:!0}}:{}}}};function Vc(){return typeof window<"u"}function ul(t){return C0(t)?(t.nodeName||"").toLowerCase():"#document"}function dn(t){var a;return(t==null||(a=t.ownerDocument)==null?void 0:a.defaultView)||window}function oa(t){var a;return(a=(C0(t)?t.ownerDocument:t.document)||window.document)==null?void 0:a.documentElement}function C0(t){return Vc()?t instanceof Node||t instanceof dn(t).Node:!1}function Pn(t){return Vc()?t instanceof Element||t instanceof dn(t).Element:!1}function ra(t){return Vc()?t instanceof HTMLElement||t instanceof dn(t).HTMLElement:!1}function Sb(t){return!Vc()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof dn(t).ShadowRoot}const DT=new Set(["inline","contents"]);function Li(t){const{overflow:a,overflowX:o,overflowY:l,display:s}=Bn(t);return/auto|scroll|overlay|hidden|clip/.test(a+l+o)&&!DT.has(s)}const jT=new Set(["table","td","th"]);function RT(t){return jT.has(ul(t))}const AT=[":popover-open",":modal"];function qc(t){return AT.some(a=>{try{return t.matches(a)}catch{return!1}})}const zT=["transform","translate","scale","rotate","perspective"],UT=["transform","translate","scale","rotate","perspective","filter"],LT=["paint","layout","strict","content"];function ip(t){const a=sp(),o=Pn(t)?Bn(t):t;return zT.some(l=>o[l]?o[l]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!a&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!a&&(o.filter?o.filter!=="none":!1)||UT.some(l=>(o.willChange||"").includes(l))||LT.some(l=>(o.contain||"").includes(l))}function PT(t){let a=dr(t);for(;ra(a)&&!nl(a);){if(ip(a))return a;if(qc(a))return null;a=dr(a)}return null}function sp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const BT=new Set(["html","body","#document"]);function nl(t){return BT.has(ul(t))}function Bn(t){return dn(t).getComputedStyle(t)}function Wc(t){return Pn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function dr(t){if(ul(t)==="html")return t;const a=t.assignedSlot||t.parentNode||Sb(t)&&t.host||oa(t);return Sb(a)?a.host:a}function E0(t){const a=dr(t);return nl(a)?t.ownerDocument?t.ownerDocument.body:t.body:ra(a)&&Li(a)?a:E0(a)}function Ni(t,a,o){var l;a===void 0&&(a=[]),o===void 0&&(o=!0);const s=E0(t),c=s===((l=t.ownerDocument)==null?void 0:l.body),f=dn(s);if(c){const d=vm(f);return a.concat(f,f.visualViewport||[],Li(s)?s:[],d&&o?Ni(d):[])}return a.concat(s,Ni(s,[],o))}function vm(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function M0(t){const a=Bn(t);let o=parseFloat(a.width)||0,l=parseFloat(a.height)||0;const s=ra(t),c=s?t.offsetWidth:o,f=s?t.offsetHeight:l,d=Mc(o)!==c||Mc(l)!==f;return d&&(o=c,l=f),{width:o,height:l,$:d}}function cp(t){return Pn(t)?t:t.contextElement}function tl(t){const a=cp(t);if(!ra(a))return ea(1);const o=a.getBoundingClientRect(),{width:l,height:s,$:c}=M0(a);let f=(c?Mc(o.width):o.width)/l,d=(c?Mc(o.height):o.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!d||!Number.isFinite(d))&&(d=1),{x:f,y:d}}const HT=ea(0);function N0(t){const a=dn(t);return!sp()||!a.visualViewport?HT:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function YT(t,a,o){return a===void 0&&(a=!1),!o||a&&o!==dn(t)?!1:a}function qr(t,a,o,l){a===void 0&&(a=!1),o===void 0&&(o=!1);const s=t.getBoundingClientRect(),c=cp(t);let f=ea(1);a&&(l?Pn(l)&&(f=tl(l)):f=tl(t));const d=YT(c,o,l)?N0(c):ea(0);let p=(s.left+d.x)/f.x,g=(s.top+d.y)/f.y,y=s.width/f.x,b=s.height/f.y;if(c){const S=dn(c),_=l&&Pn(l)?dn(l):l;let M=S,w=vm(M);for(;w&&l&&_!==M;){const E=tl(w),T=w.getBoundingClientRect(),k=Bn(w),D=T.left+(w.clientLeft+parseFloat(k.paddingLeft))*E.x,j=T.top+(w.clientTop+parseFloat(k.paddingTop))*E.y;p*=E.x,g*=E.y,y*=E.x,b*=E.y,p+=D,g+=j,M=dn(w),w=vm(M)}}return Tc({width:y,height:b,x:p,y:g})}function Fc(t,a){const o=Wc(t).scrollLeft;return a?a.left+o:qr(oa(t)).left+o}function T0(t,a){const o=t.getBoundingClientRect(),l=o.left+a.scrollLeft-Fc(t,o),s=o.top+a.scrollTop;return{x:l,y:s}}function IT(t){let{elements:a,rect:o,offsetParent:l,strategy:s}=t;const c=s==="fixed",f=oa(l),d=a?qc(a.floating):!1;if(l===f||d&&c)return o;let p={scrollLeft:0,scrollTop:0},g=ea(1);const y=ea(0),b=ra(l);if((b||!b&&!c)&&((ul(l)!=="body"||Li(f))&&(p=Wc(l)),ra(l))){const _=qr(l);g=tl(l),y.x=_.x+l.clientLeft,y.y=_.y+l.clientTop}const S=f&&!b&&!c?T0(f,p):ea(0);return{width:o.width*g.x,height:o.height*g.y,x:o.x*g.x-p.scrollLeft*g.x+y.x+S.x,y:o.y*g.y-p.scrollTop*g.y+y.y+S.y}}function GT(t){return Array.from(t.getClientRects())}function VT(t){const a=oa(t),o=Wc(t),l=t.ownerDocument.body,s=un(a.scrollWidth,a.clientWidth,l.scrollWidth,l.clientWidth),c=un(a.scrollHeight,a.clientHeight,l.scrollHeight,l.clientHeight);let f=-o.scrollLeft+Fc(t);const d=-o.scrollTop;return Bn(l).direction==="rtl"&&(f+=un(a.clientWidth,l.clientWidth)-s),{width:s,height:c,x:f,y:d}}const wb=25;function qT(t,a){const o=dn(t),l=oa(t),s=o.visualViewport;let c=l.clientWidth,f=l.clientHeight,d=0,p=0;if(s){c=s.width,f=s.height;const y=sp();(!y||y&&a==="fixed")&&(d=s.offsetLeft,p=s.offsetTop)}const g=Fc(l);if(g<=0){const y=l.ownerDocument,b=y.body,S=getComputedStyle(b),_=y.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,M=Math.abs(l.clientWidth-b.clientWidth-_);M<=wb&&(c-=M)}else g<=wb&&(c+=g);return{width:c,height:f,x:d,y:p}}const WT=new Set(["absolute","fixed"]);function FT(t,a){const o=qr(t,!0,a==="fixed"),l=o.top+t.clientTop,s=o.left+t.clientLeft,c=ra(t)?tl(t):ea(1),f=t.clientWidth*c.x,d=t.clientHeight*c.y,p=s*c.x,g=l*c.y;return{width:f,height:d,x:p,y:g}}function _b(t,a,o){let l;if(a==="viewport")l=qT(t,o);else if(a==="document")l=VT(oa(t));else if(Pn(a))l=FT(a,o);else{const s=N0(t);l={x:a.x-s.x,y:a.y-s.y,width:a.width,height:a.height}}return Tc(l)}function k0(t,a){const o=dr(t);return o===a||!Pn(o)||nl(o)?!1:Bn(o).position==="fixed"||k0(o,a)}function $T(t,a){const o=a.get(t);if(o)return o;let l=Ni(t,[],!1).filter(d=>Pn(d)&&ul(d)!=="body"),s=null;const c=Bn(t).position==="fixed";let f=c?dr(t):t;for(;Pn(f)&&!nl(f);){const d=Bn(f),p=ip(f);!p&&d.position==="fixed"&&(s=null),(c?!p&&!s:!p&&d.position==="static"&&!!s&&WT.has(s.position)||Li(f)&&!p&&k0(t,f))?l=l.filter(y=>y!==f):s=d,f=dr(f)}return a.set(t,l),l}function KT(t){let{element:a,boundary:o,rootBoundary:l,strategy:s}=t;const f=[...o==="clippingAncestors"?qc(a)?[]:$T(a,this._c):[].concat(o),l],d=f[0],p=f.reduce((g,y)=>{const b=_b(a,y,s);return g.top=un(b.top,g.top),g.right=ur(b.right,g.right),g.bottom=ur(b.bottom,g.bottom),g.left=un(b.left,g.left),g},_b(a,d,s));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function XT(t){const{width:a,height:o}=M0(t);return{width:a,height:o}}function ZT(t,a,o){const l=ra(a),s=oa(a),c=o==="fixed",f=qr(t,!0,c,a);let d={scrollLeft:0,scrollTop:0};const p=ea(0);function g(){p.x=Fc(s)}if(l||!l&&!c)if((ul(a)!=="body"||Li(s))&&(d=Wc(a)),l){const _=qr(a,!0,c,a);p.x=_.x+a.clientLeft,p.y=_.y+a.clientTop}else s&&g();c&&!l&&s&&g();const y=s&&!l&&!c?T0(s,d):ea(0),b=f.left+d.scrollLeft-p.x-y.x,S=f.top+d.scrollTop-p.y-y.y;return{x:b,y:S,width:f.width,height:f.height}}function Gf(t){return Bn(t).position==="static"}function Cb(t,a){if(!ra(t)||Bn(t).position==="fixed")return null;if(a)return a(t);let o=t.offsetParent;return oa(t)===o&&(o=o.ownerDocument.body),o}function O0(t,a){const o=dn(t);if(qc(t))return o;if(!ra(t)){let s=dr(t);for(;s&&!nl(s);){if(Pn(s)&&!Gf(s))return s;s=dr(s)}return o}let l=Cb(t,a);for(;l&&RT(l)&&Gf(l);)l=Cb(l,a);return l&&nl(l)&&Gf(l)&&!ip(l)?o:l||PT(t)||o}const QT=async function(t){const a=this.getOffsetParent||O0,o=this.getDimensions,l=await o(t.floating);return{reference:ZT(t.reference,await a(t.floating),t.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function JT(t){return Bn(t).direction==="rtl"}const ek={convertOffsetParentRelativeRectToViewportRelativeRect:IT,getDocumentElement:oa,getClippingRect:KT,getOffsetParent:O0,getElementRects:QT,getClientRects:GT,getDimensions:XT,getScale:tl,isElement:Pn,isRTL:JT};function D0(t,a){return t.x===a.x&&t.y===a.y&&t.width===a.width&&t.height===a.height}function tk(t,a){let o=null,l;const s=oa(t);function c(){var d;clearTimeout(l),(d=o)==null||d.disconnect(),o=null}function f(d,p){d===void 0&&(d=!1),p===void 0&&(p=1),c();const g=t.getBoundingClientRect(),{left:y,top:b,width:S,height:_}=g;if(d||a(),!S||!_)return;const M=dc(b),w=dc(s.clientWidth-(y+S)),E=dc(s.clientHeight-(b+_)),T=dc(y),D={rootMargin:-M+"px "+-w+"px "+-E+"px "+-T+"px",threshold:un(0,ur(1,p))||1};let j=!0;function R(U){const Y=U[0].intersectionRatio;if(Y!==p){if(!j)return f();Y?f(!1,Y):l=setTimeout(()=>{f(!1,1e-7)},1e3)}Y===1&&!D0(g,t.getBoundingClientRect())&&f(),j=!1}try{o=new IntersectionObserver(R,{...D,root:s.ownerDocument})}catch{o=new IntersectionObserver(R,D)}o.observe(t)}return f(!0),c}function nk(t,a,o,l){l===void 0&&(l={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:p=!1}=l,g=cp(t),y=s||c?[...g?Ni(g):[],...Ni(a)]:[];y.forEach(T=>{s&&T.addEventListener("scroll",o,{passive:!0}),c&&T.addEventListener("resize",o)});const b=g&&d?tk(g,o):null;let S=-1,_=null;f&&(_=new ResizeObserver(T=>{let[k]=T;k&&k.target===g&&_&&(_.unobserve(a),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var D;(D=_)==null||D.observe(a)})),o()}),g&&!p&&_.observe(g),_.observe(a));let M,w=p?qr(t):null;p&&E();function E(){const T=qr(t);w&&!D0(w,T)&&o(),w=T,M=requestAnimationFrame(E)}return o(),()=>{var T;y.forEach(k=>{s&&k.removeEventListener("scroll",o),c&&k.removeEventListener("resize",o)}),b?.(),(T=_)==null||T.disconnect(),_=null,p&&cancelAnimationFrame(M)}}const ak=NT,rk=TT,ok=CT,lk=OT,ik=ET,Eb=_T,sk=kT,ck=(t,a,o)=>{const l=new Map,s={platform:ek,...o},c={...s.platform,_c:l};return wT(t,a,{...s,platform:c})};var uk=typeof document<"u",dk=function(){},wc=uk?v.useLayoutEffect:dk;function kc(t,a){if(t===a)return!0;if(typeof t!=typeof a)return!1;if(typeof t=="function"&&t.toString()===a.toString())return!0;let o,l,s;if(t&&a&&typeof t=="object"){if(Array.isArray(t)){if(o=t.length,o!==a.length)return!1;for(l=o;l--!==0;)if(!kc(t[l],a[l]))return!1;return!0}if(s=Object.keys(t),o=s.length,o!==Object.keys(a).length)return!1;for(l=o;l--!==0;)if(!{}.hasOwnProperty.call(a,s[l]))return!1;for(l=o;l--!==0;){const c=s[l];if(!(c==="_owner"&&t.$$typeof)&&!kc(t[c],a[c]))return!1}return!0}return t!==t&&a!==a}function j0(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Mb(t,a){const o=j0(t);return Math.round(a*o)/o}function Vf(t){const a=v.useRef(t);return wc(()=>{a.current=t}),a}function fk(t){t===void 0&&(t={});const{placement:a="bottom",strategy:o="absolute",middleware:l=[],platform:s,elements:{reference:c,floating:f}={},transform:d=!0,whileElementsMounted:p,open:g}=t,[y,b]=v.useState({x:0,y:0,strategy:o,placement:a,middlewareData:{},isPositioned:!1}),[S,_]=v.useState(l);kc(S,l)||_(l);const[M,w]=v.useState(null),[E,T]=v.useState(null),k=v.useCallback(z=>{z!==U.current&&(U.current=z,w(z))},[]),D=v.useCallback(z=>{z!==Y.current&&(Y.current=z,T(z))},[]),j=c||M,R=f||E,U=v.useRef(null),Y=v.useRef(null),H=v.useRef(y),ie=p!=null,oe=Vf(p),O=Vf(s),J=Vf(g),le=v.useCallback(()=>{if(!U.current||!Y.current)return;const z={placement:a,strategy:o,middleware:S};O.current&&(z.platform=O.current),ck(U.current,Y.current,z).then(F=>{const ce={...F,isPositioned:J.current!==!1};ae.current&&!kc(H.current,ce)&&(H.current=ce,Ai.flushSync(()=>{b(ce)}))})},[S,a,o,O,J]);wc(()=>{g===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,b(z=>({...z,isPositioned:!1})))},[g]);const ae=v.useRef(!1);wc(()=>(ae.current=!0,()=>{ae.current=!1}),[]),wc(()=>{if(j&&(U.current=j),R&&(Y.current=R),j&&R){if(oe.current)return oe.current(j,R,le);le()}},[j,R,le,oe,ie]);const V=v.useMemo(()=>({reference:U,floating:Y,setReference:k,setFloating:D}),[k,D]),P=v.useMemo(()=>({reference:j,floating:R}),[j,R]),I=v.useMemo(()=>{const z={position:o,left:0,top:0};if(!P.floating)return z;const F=Mb(P.floating,y.x),ce=Mb(P.floating,y.y);return d?{...z,transform:"translate("+F+"px, "+ce+"px)",...j0(P.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:F,top:ce}},[o,d,P.floating,y.x,y.y]);return v.useMemo(()=>({...y,update:le,refs:V,elements:P,floatingStyles:I}),[y,le,V,P,I])}const mk=t=>{function a(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:t,fn(o){const{element:l,padding:s}=typeof t=="function"?t(o):t;return l&&a(l)?l.current!=null?Eb({element:l.current,padding:s}).fn(o):{}:l?Eb({element:l,padding:s}).fn(o):{}}}},pk=(t,a)=>({...ak(t),options:[t,a]}),hk=(t,a)=>({...rk(t),options:[t,a]}),gk=(t,a)=>({...sk(t),options:[t,a]}),vk=(t,a)=>({...ok(t),options:[t,a]}),yk=(t,a)=>({...lk(t),options:[t,a]}),bk=(t,a)=>({...ik(t),options:[t,a]}),xk=(t,a)=>({...mk(t),options:[t,a]});var Sk="Arrow",R0=v.forwardRef((t,a)=>{const{children:o,width:l=10,height:s=5,...c}=t;return h.jsx(Ee.svg,{...c,ref:a,width:l,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?o:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});R0.displayName=Sk;var wk=R0,up="Popper",[A0,mr]=Tn(up),[_k,z0]=A0(up),U0=t=>{const{__scopePopper:a,children:o}=t,[l,s]=v.useState(null);return h.jsx(_k,{scope:a,anchor:l,onAnchorChange:s,children:o})};U0.displayName=up;var L0="PopperAnchor",P0=v.forwardRef((t,a)=>{const{__scopePopper:o,virtualRef:l,...s}=t,c=z0(L0,o),f=v.useRef(null),d=Ye(a,f),p=v.useRef(null);return v.useEffect(()=>{const g=p.current;p.current=l?.current||f.current,g!==p.current&&c.onAnchorChange(p.current)}),l?null:h.jsx(Ee.div,{...s,ref:d})});P0.displayName=L0;var dp="PopperContent",[Ck,Ek]=A0(dp),B0=v.forwardRef((t,a)=>{const{__scopePopper:o,side:l="bottom",sideOffset:s=0,align:c="center",alignOffset:f=0,arrowPadding:d=0,avoidCollisions:p=!0,collisionBoundary:g=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:S=!1,updatePositionStrategy:_="optimized",onPlaced:M,...w}=t,E=z0(dp,o),[T,k]=v.useState(null),D=Ye(a,X=>k(X)),[j,R]=v.useState(null),U=m0(j),Y=U?.width??0,H=U?.height??0,ie=l+(c!=="center"?"-"+c:""),oe=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},O=Array.isArray(g)?g:[g],J=O.length>0,le={padding:oe,boundary:O.filter(Nk),altBoundary:J},{refs:ae,floatingStyles:V,placement:P,isPositioned:I,middlewareData:z}=fk({strategy:"fixed",placement:ie,whileElementsMounted:(...X)=>nk(...X,{animationFrame:_==="always"}),elements:{reference:E.anchor},middleware:[pk({mainAxis:s+H,alignmentAxis:f}),p&&hk({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?gk():void 0,...le}),p&&vk({...le}),yk({...le,apply:({elements:X,rects:de,availableWidth:xe,availableHeight:pe})=>{const{width:De,height:Ue}=de.reference,xt=X.floating.style;xt.setProperty("--radix-popper-available-width",`${xe}px`),xt.setProperty("--radix-popper-available-height",`${pe}px`),xt.setProperty("--radix-popper-anchor-width",`${De}px`),xt.setProperty("--radix-popper-anchor-height",`${Ue}px`)}}),j&&xk({element:j,padding:d}),Tk({arrowWidth:Y,arrowHeight:H}),S&&bk({strategy:"referenceHidden",...le})]}),[F,ce]=I0(P),ue=aa(M);At(()=>{I&&ue?.()},[I,ue]);const N=z.arrow?.x,B=z.arrow?.y,$=z.arrow?.centerOffset!==0,[Q,se]=v.useState();return At(()=>{T&&se(window.getComputedStyle(T).zIndex)},[T]),h.jsx("div",{ref:ae.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:I?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[z.transformOrigin?.x,z.transformOrigin?.y].join(" "),...z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:h.jsx(Ck,{scope:o,placedSide:F,onArrowChange:R,arrowX:N,arrowY:B,shouldHideArrow:$,children:h.jsx(Ee.div,{"data-side":F,"data-align":ce,...w,ref:D,style:{...w.style,animation:I?void 0:"none"}})})})});B0.displayName=dp;var H0="PopperArrow",Mk={top:"bottom",right:"left",bottom:"top",left:"right"},Y0=v.forwardRef(function(a,o){const{__scopePopper:l,...s}=a,c=Ek(H0,l),f=Mk[c.placedSide];return h.jsx("span",{ref:c.onArrowChange,style:{position:"absolute",left:c.arrowX,top:c.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[c.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[c.placedSide],visibility:c.shouldHideArrow?"hidden":void 0},children:h.jsx(wk,{...s,ref:o,style:{...s.style,display:"block"}})})});Y0.displayName=H0;function Nk(t){return t!==null}var Tk=t=>({name:"transformOrigin",options:t,fn(a){const{placement:o,rects:l,middlewareData:s}=a,f=s.arrow?.centerOffset!==0,d=f?0:t.arrowWidth,p=f?0:t.arrowHeight,[g,y]=I0(o),b={start:"0%",center:"50%",end:"100%"}[y],S=(s.arrow?.x??0)+d/2,_=(s.arrow?.y??0)+p/2;let M="",w="";return g==="bottom"?(M=f?b:`${S}px`,w=`${-p}px`):g==="top"?(M=f?b:`${S}px`,w=`${l.floating.height+p}px`):g==="right"?(M=`${-p}px`,w=f?b:`${_}px`):g==="left"&&(M=`${l.floating.width+p}px`,w=f?b:`${_}px`),{data:{x:M,y:w}}}});function I0(t){const[a,o="center"]=t.split("-");return[a,o]}var $c=U0,Pi=P0,Kc=B0,Xc=Y0,qf="rovingFocusGroup.onEntryFocus",kk={bubbles:!1,cancelable:!0},Bi="RovingFocusGroup",[ym,G0,Ok]=Wm(Bi),[Dk,Zc]=Tn(Bi,[Ok]),[jk,Rk]=Dk(Bi),V0=v.forwardRef((t,a)=>h.jsx(ym.Provider,{scope:t.__scopeRovingFocusGroup,children:h.jsx(ym.Slot,{scope:t.__scopeRovingFocusGroup,children:h.jsx(Ak,{...t,ref:a})})}));V0.displayName=Bi;var Ak=v.forwardRef((t,a)=>{const{__scopeRovingFocusGroup:o,orientation:l,loop:s=!1,dir:c,currentTabStopId:f,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:p,onEntryFocus:g,preventScrollOnEntryFocus:y=!1,...b}=t,S=v.useRef(null),_=Ye(a,S),M=Pc(c),[w,E]=na({prop:f,defaultProp:d??null,onChange:p,caller:Bi}),[T,k]=v.useState(!1),D=aa(g),j=G0(o),R=v.useRef(!1),[U,Y]=v.useState(0);return v.useEffect(()=>{const H=S.current;if(H)return H.addEventListener(qf,D),()=>H.removeEventListener(qf,D)},[D]),h.jsx(jk,{scope:o,orientation:l,dir:M,loop:s,currentTabStopId:w,onItemFocus:v.useCallback(H=>E(H),[E]),onItemShiftTab:v.useCallback(()=>k(!0),[]),onFocusableItemAdd:v.useCallback(()=>Y(H=>H+1),[]),onFocusableItemRemove:v.useCallback(()=>Y(H=>H-1),[]),children:h.jsx(Ee.div,{tabIndex:T||U===0?-1:0,"data-orientation":l,...b,ref:_,style:{outline:"none",...t.style},onMouseDown:me(t.onMouseDown,()=>{R.current=!0}),onFocus:me(t.onFocus,H=>{const ie=!R.current;if(H.target===H.currentTarget&&ie&&!T){const oe=new CustomEvent(qf,kk);if(H.currentTarget.dispatchEvent(oe),!oe.defaultPrevented){const O=j().filter(P=>P.focusable),J=O.find(P=>P.active),le=O.find(P=>P.id===w),V=[J,le,...O].filter(Boolean).map(P=>P.ref.current);F0(V,y)}}R.current=!1}),onBlur:me(t.onBlur,()=>k(!1))})})}),q0="RovingFocusGroupItem",W0=v.forwardRef((t,a)=>{const{__scopeRovingFocusGroup:o,focusable:l=!0,active:s=!1,tabStopId:c,children:f,...d}=t,p=_t(),g=c||p,y=Rk(q0,o),b=y.currentTabStopId===g,S=G0(o),{onFocusableItemAdd:_,onFocusableItemRemove:M,currentTabStopId:w}=y;return v.useEffect(()=>{if(l)return _(),()=>M()},[l,_,M]),h.jsx(ym.ItemSlot,{scope:o,id:g,focusable:l,active:s,children:h.jsx(Ee.span,{tabIndex:b?0:-1,"data-orientation":y.orientation,...d,ref:a,onMouseDown:me(t.onMouseDown,E=>{l?y.onItemFocus(g):E.preventDefault()}),onFocus:me(t.onFocus,()=>y.onItemFocus(g)),onKeyDown:me(t.onKeyDown,E=>{if(E.key==="Tab"&&E.shiftKey){y.onItemShiftTab();return}if(E.target!==E.currentTarget)return;const T=Lk(E,y.orientation,y.dir);if(T!==void 0){if(E.metaKey||E.ctrlKey||E.altKey||E.shiftKey)return;E.preventDefault();let D=S().filter(j=>j.focusable).map(j=>j.ref.current);if(T==="last")D.reverse();else if(T==="prev"||T==="next"){T==="prev"&&D.reverse();const j=D.indexOf(E.currentTarget);D=y.loop?Pk(D,j+1):D.slice(j+1)}setTimeout(()=>F0(D))}}),children:typeof f=="function"?f({isCurrentTabStop:b,hasTabStop:w!=null}):f})})});W0.displayName=q0;var zk={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Uk(t,a){return a!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function Lk(t,a,o){const l=Uk(t.key,o);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(l))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(l)))return zk[l]}function F0(t,a=!1){const o=document.activeElement;for(const l of t)if(l===o||(l.focus({preventScroll:a}),document.activeElement!==o))return}function Pk(t,a){return t.map((o,l)=>t[(a+l)%t.length])}var $0=V0,K0=W0,bm=["Enter"," "],Bk=["ArrowDown","PageUp","Home"],X0=["ArrowUp","PageDown","End"],Hk=[...Bk,...X0],Yk={ltr:[...bm,"ArrowRight"],rtl:[...bm,"ArrowLeft"]},Ik={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Hi="Menu",[Ti,Gk,Vk]=Wm(Hi),[Zr,Z0]=Tn(Hi,[Vk,mr,Zc]),Qc=mr(),Q0=Zc(),[qk,Qr]=Zr(Hi),[Wk,Yi]=Zr(Hi),J0=t=>{const{__scopeMenu:a,open:o=!1,children:l,dir:s,onOpenChange:c,modal:f=!0}=t,d=Qc(a),[p,g]=v.useState(null),y=v.useRef(!1),b=aa(c),S=Pc(s);return v.useEffect(()=>{const _=()=>{y.current=!0,document.addEventListener("pointerdown",M,{capture:!0,once:!0}),document.addEventListener("pointermove",M,{capture:!0,once:!0})},M=()=>y.current=!1;return document.addEventListener("keydown",_,{capture:!0}),()=>{document.removeEventListener("keydown",_,{capture:!0}),document.removeEventListener("pointerdown",M,{capture:!0}),document.removeEventListener("pointermove",M,{capture:!0})}},[]),h.jsx($c,{...d,children:h.jsx(qk,{scope:a,open:o,onOpenChange:b,content:p,onContentChange:g,children:h.jsx(Wk,{scope:a,onClose:v.useCallback(()=>b(!1),[b]),isUsingKeyboardRef:y,dir:S,modal:f,children:l})})})};J0.displayName=Hi;var Fk="MenuAnchor",fp=v.forwardRef((t,a)=>{const{__scopeMenu:o,...l}=t,s=Qc(o);return h.jsx(Pi,{...s,...l,ref:a})});fp.displayName=Fk;var mp="MenuPortal",[$k,e1]=Zr(mp,{forceMount:void 0}),t1=t=>{const{__scopeMenu:a,forceMount:o,children:l,container:s}=t,c=Qr(mp,a);return h.jsx($k,{scope:a,forceMount:o,children:h.jsx(Vt,{present:o||c.open,children:h.jsx(sl,{asChild:!0,container:s,children:l})})})};t1.displayName=mp;var Mn="MenuContent",[Kk,pp]=Zr(Mn),n1=v.forwardRef((t,a)=>{const o=e1(Mn,t.__scopeMenu),{forceMount:l=o.forceMount,...s}=t,c=Qr(Mn,t.__scopeMenu),f=Yi(Mn,t.__scopeMenu);return h.jsx(Ti.Provider,{scope:t.__scopeMenu,children:h.jsx(Vt,{present:l||c.open,children:h.jsx(Ti.Slot,{scope:t.__scopeMenu,children:f.modal?h.jsx(Xk,{...s,ref:a}):h.jsx(Zk,{...s,ref:a})})})})}),Xk=v.forwardRef((t,a)=>{const o=Qr(Mn,t.__scopeMenu),l=v.useRef(null),s=Ye(a,l);return v.useEffect(()=>{const c=l.current;if(c)return Yc(c)},[]),h.jsx(hp,{...t,ref:s,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:me(t.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})}),Zk=v.forwardRef((t,a)=>{const o=Qr(Mn,t.__scopeMenu);return h.jsx(hp,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>o.onOpenChange(!1)})}),Qk=cr("MenuContent.ScrollLock"),hp=v.forwardRef((t,a)=>{const{__scopeMenu:o,loop:l=!1,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:f,disableOutsidePointerEvents:d,onEntryFocus:p,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:S,onDismiss:_,disableOutsideScroll:M,...w}=t,E=Qr(Mn,o),T=Yi(Mn,o),k=Qc(o),D=Q0(o),j=Gk(o),[R,U]=v.useState(null),Y=v.useRef(null),H=Ye(a,Y,E.onContentChange),ie=v.useRef(0),oe=v.useRef(""),O=v.useRef(0),J=v.useRef(null),le=v.useRef("right"),ae=v.useRef(0),V=M?Ui:v.Fragment,P=M?{as:Qk,allowPinchZoom:!0}:void 0,I=F=>{const ce=oe.current+F,ue=j().filter(X=>!X.disabled),N=document.activeElement,B=ue.find(X=>X.ref.current===N)?.textValue,$=ue.map(X=>X.textValue),Q=uO($,ce,B),se=ue.find(X=>X.textValue===Q)?.ref.current;(function X(de){oe.current=de,window.clearTimeout(ie.current),de!==""&&(ie.current=window.setTimeout(()=>X(""),1e3))})(ce),se&&setTimeout(()=>se.focus())};v.useEffect(()=>()=>window.clearTimeout(ie.current),[]),Bc();const z=v.useCallback(F=>le.current===J.current?.side&&fO(F,J.current?.area),[]);return h.jsx(Kk,{scope:o,searchRef:oe,onItemEnter:v.useCallback(F=>{z(F)&&F.preventDefault()},[z]),onItemLeave:v.useCallback(F=>{z(F)||(Y.current?.focus(),U(null))},[z]),onTriggerLeave:v.useCallback(F=>{z(F)&&F.preventDefault()},[z]),pointerGraceTimerRef:O,onPointerGraceIntentChange:v.useCallback(F=>{J.current=F},[]),children:h.jsx(V,{...P,children:h.jsx(zi,{asChild:!0,trapped:s,onMountAutoFocus:me(c,F=>{F.preventDefault(),Y.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:f,children:h.jsx(il,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:S,onDismiss:_,children:h.jsx($0,{asChild:!0,...D,dir:T.dir,orientation:"vertical",loop:l,currentTabStopId:R,onCurrentTabStopIdChange:U,onEntryFocus:me(p,F=>{T.isUsingKeyboardRef.current||F.preventDefault()}),preventScrollOnEntryFocus:!0,children:h.jsx(Kc,{role:"menu","aria-orientation":"vertical","data-state":y1(E.open),"data-radix-menu-content":"",dir:T.dir,...k,...w,ref:H,style:{outline:"none",...w.style},onKeyDown:me(w.onKeyDown,F=>{const ue=F.target.closest("[data-radix-menu-content]")===F.currentTarget,N=F.ctrlKey||F.altKey||F.metaKey,B=F.key.length===1;ue&&(F.key==="Tab"&&F.preventDefault(),!N&&B&&I(F.key));const $=Y.current;if(F.target!==$||!Hk.includes(F.key))return;F.preventDefault();const se=j().filter(X=>!X.disabled).map(X=>X.ref.current);X0.includes(F.key)&&se.reverse(),sO(se)}),onBlur:me(t.onBlur,F=>{F.currentTarget.contains(F.target)||(window.clearTimeout(ie.current),oe.current="")}),onPointerMove:me(t.onPointerMove,ki(F=>{const ce=F.target,ue=ae.current!==F.clientX;if(F.currentTarget.contains(ce)&&ue){const N=F.clientX>ae.current?"right":"left";le.current=N,ae.current=F.clientX}}))})})})})})})});n1.displayName=Mn;var Jk="MenuGroup",gp=v.forwardRef((t,a)=>{const{__scopeMenu:o,...l}=t;return h.jsx(Ee.div,{role:"group",...l,ref:a})});gp.displayName=Jk;var eO="MenuLabel",a1=v.forwardRef((t,a)=>{const{__scopeMenu:o,...l}=t;return h.jsx(Ee.div,{...l,ref:a})});a1.displayName=eO;var Oc="MenuItem",Nb="menu.itemSelect",Jc=v.forwardRef((t,a)=>{const{disabled:o=!1,onSelect:l,...s}=t,c=v.useRef(null),f=Yi(Oc,t.__scopeMenu),d=pp(Oc,t.__scopeMenu),p=Ye(a,c),g=v.useRef(!1),y=()=>{const b=c.current;if(!o&&b){const S=new CustomEvent(Nb,{bubbles:!0,cancelable:!0});b.addEventListener(Nb,_=>l?.(_),{once:!0}),Ox(b,S),S.defaultPrevented?g.current=!1:f.onClose()}};return h.jsx(r1,{...s,ref:p,disabled:o,onClick:me(t.onClick,y),onPointerDown:b=>{t.onPointerDown?.(b),g.current=!0},onPointerUp:me(t.onPointerUp,b=>{g.current||b.currentTarget?.click()}),onKeyDown:me(t.onKeyDown,b=>{const S=d.searchRef.current!=="";o||S&&b.key===" "||bm.includes(b.key)&&(b.currentTarget.click(),b.preventDefault())})})});Jc.displayName=Oc;var r1=v.forwardRef((t,a)=>{const{__scopeMenu:o,disabled:l=!1,textValue:s,...c}=t,f=pp(Oc,o),d=Q0(o),p=v.useRef(null),g=Ye(a,p),[y,b]=v.useState(!1),[S,_]=v.useState("");return v.useEffect(()=>{const M=p.current;M&&_((M.textContent??"").trim())},[c.children]),h.jsx(Ti.ItemSlot,{scope:o,disabled:l,textValue:s??S,children:h.jsx(K0,{asChild:!0,...d,focusable:!l,children:h.jsx(Ee.div,{role:"menuitem","data-highlighted":y?"":void 0,"aria-disabled":l||void 0,"data-disabled":l?"":void 0,...c,ref:g,onPointerMove:me(t.onPointerMove,ki(M=>{l?f.onItemLeave(M):(f.onItemEnter(M),M.defaultPrevented||M.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:me(t.onPointerLeave,ki(M=>f.onItemLeave(M))),onFocus:me(t.onFocus,()=>b(!0)),onBlur:me(t.onBlur,()=>b(!1))})})})}),tO="MenuCheckboxItem",o1=v.forwardRef((t,a)=>{const{checked:o=!1,onCheckedChange:l,...s}=t;return h.jsx(u1,{scope:t.__scopeMenu,checked:o,children:h.jsx(Jc,{role:"menuitemcheckbox","aria-checked":Dc(o)?"mixed":o,...s,ref:a,"data-state":yp(o),onSelect:me(s.onSelect,()=>l?.(Dc(o)?!0:!o),{checkForDefaultPrevented:!1})})})});o1.displayName=tO;var l1="MenuRadioGroup",[nO,aO]=Zr(l1,{value:void 0,onValueChange:()=>{}}),i1=v.forwardRef((t,a)=>{const{value:o,onValueChange:l,...s}=t,c=aa(l);return h.jsx(nO,{scope:t.__scopeMenu,value:o,onValueChange:c,children:h.jsx(gp,{...s,ref:a})})});i1.displayName=l1;var s1="MenuRadioItem",c1=v.forwardRef((t,a)=>{const{value:o,...l}=t,s=aO(s1,t.__scopeMenu),c=o===s.value;return h.jsx(u1,{scope:t.__scopeMenu,checked:c,children:h.jsx(Jc,{role:"menuitemradio","aria-checked":c,...l,ref:a,"data-state":yp(c),onSelect:me(l.onSelect,()=>s.onValueChange?.(o),{checkForDefaultPrevented:!1})})})});c1.displayName=s1;var vp="MenuItemIndicator",[u1,rO]=Zr(vp,{checked:!1}),d1=v.forwardRef((t,a)=>{const{__scopeMenu:o,forceMount:l,...s}=t,c=rO(vp,o);return h.jsx(Vt,{present:l||Dc(c.checked)||c.checked===!0,children:h.jsx(Ee.span,{...s,ref:a,"data-state":yp(c.checked)})})});d1.displayName=vp;var oO="MenuSeparator",f1=v.forwardRef((t,a)=>{const{__scopeMenu:o,...l}=t;return h.jsx(Ee.div,{role:"separator","aria-orientation":"horizontal",...l,ref:a})});f1.displayName=oO;var lO="MenuArrow",m1=v.forwardRef((t,a)=>{const{__scopeMenu:o,...l}=t,s=Qc(o);return h.jsx(Xc,{...s,...l,ref:a})});m1.displayName=lO;var iO="MenuSub",[k6,p1]=Zr(iO),bi="MenuSubTrigger",h1=v.forwardRef((t,a)=>{const o=Qr(bi,t.__scopeMenu),l=Yi(bi,t.__scopeMenu),s=p1(bi,t.__scopeMenu),c=pp(bi,t.__scopeMenu),f=v.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:p}=c,g={__scopeMenu:t.__scopeMenu},y=v.useCallback(()=>{f.current&&window.clearTimeout(f.current),f.current=null},[]);return v.useEffect(()=>y,[y]),v.useEffect(()=>{const b=d.current;return()=>{window.clearTimeout(b),p(null)}},[d,p]),h.jsx(fp,{asChild:!0,...g,children:h.jsx(r1,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":s.contentId,"data-state":y1(o.open),...t,ref:ta(a,s.onTriggerChange),onClick:b=>{t.onClick?.(b),!(t.disabled||b.defaultPrevented)&&(b.currentTarget.focus(),o.open||o.onOpenChange(!0))},onPointerMove:me(t.onPointerMove,ki(b=>{c.onItemEnter(b),!b.defaultPrevented&&!t.disabled&&!o.open&&!f.current&&(c.onPointerGraceIntentChange(null),f.current=window.setTimeout(()=>{o.onOpenChange(!0),y()},100))})),onPointerLeave:me(t.onPointerLeave,ki(b=>{y();const S=o.content?.getBoundingClientRect();if(S){const _=o.content?.dataset.side,M=_==="right",w=M?-5:5,E=S[M?"left":"right"],T=S[M?"right":"left"];c.onPointerGraceIntentChange({area:[{x:b.clientX+w,y:b.clientY},{x:E,y:S.top},{x:T,y:S.top},{x:T,y:S.bottom},{x:E,y:S.bottom}],side:_}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(b),b.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:me(t.onKeyDown,b=>{const S=c.searchRef.current!=="";t.disabled||S&&b.key===" "||Yk[l.dir].includes(b.key)&&(o.onOpenChange(!0),o.content?.focus(),b.preventDefault())})})})});h1.displayName=bi;var g1="MenuSubContent",v1=v.forwardRef((t,a)=>{const o=e1(Mn,t.__scopeMenu),{forceMount:l=o.forceMount,...s}=t,c=Qr(Mn,t.__scopeMenu),f=Yi(Mn,t.__scopeMenu),d=p1(g1,t.__scopeMenu),p=v.useRef(null),g=Ye(a,p);return h.jsx(Ti.Provider,{scope:t.__scopeMenu,children:h.jsx(Vt,{present:l||c.open,children:h.jsx(Ti.Slot,{scope:t.__scopeMenu,children:h.jsx(hp,{id:d.contentId,"aria-labelledby":d.triggerId,...s,ref:g,align:"start",side:f.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:y=>{f.isUsingKeyboardRef.current&&p.current?.focus(),y.preventDefault()},onCloseAutoFocus:y=>y.preventDefault(),onFocusOutside:me(t.onFocusOutside,y=>{y.target!==d.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:me(t.onEscapeKeyDown,y=>{f.onClose(),y.preventDefault()}),onKeyDown:me(t.onKeyDown,y=>{const b=y.currentTarget.contains(y.target),S=Ik[f.dir].includes(y.key);b&&S&&(c.onOpenChange(!1),d.trigger?.focus(),y.preventDefault())})})})})})});v1.displayName=g1;function y1(t){return t?"open":"closed"}function Dc(t){return t==="indeterminate"}function yp(t){return Dc(t)?"indeterminate":t?"checked":"unchecked"}function sO(t){const a=document.activeElement;for(const o of t)if(o===a||(o.focus(),document.activeElement!==a))return}function cO(t,a){return t.map((o,l)=>t[(a+l)%t.length])}function uO(t,a,o){const s=a.length>1&&Array.from(a).every(g=>g===a[0])?a[0]:a,c=o?t.indexOf(o):-1;let f=cO(t,Math.max(c,0));s.length===1&&(f=f.filter(g=>g!==o));const p=f.find(g=>g.toLowerCase().startsWith(s.toLowerCase()));return p!==o?p:void 0}function dO(t,a){const{x:o,y:l}=t;let s=!1;for(let c=0,f=a.length-1;c<a.length;f=c++){const d=a[c],p=a[f],g=d.x,y=d.y,b=p.x,S=p.y;y>l!=S>l&&o<(b-g)*(l-y)/(S-y)+g&&(s=!s)}return s}function fO(t,a){if(!a)return!1;const o={x:t.clientX,y:t.clientY};return dO(o,a)}function ki(t){return a=>a.pointerType==="mouse"?t(a):void 0}var mO=J0,pO=fp,hO=t1,gO=n1,vO=gp,yO=a1,bO=Jc,xO=o1,SO=i1,wO=c1,_O=d1,CO=f1,EO=m1,MO=h1,NO=v1,eu="DropdownMenu",[TO]=Tn(eu,[Z0]),qt=Z0(),[kO,b1]=TO(eu),x1=t=>{const{__scopeDropdownMenu:a,children:o,dir:l,open:s,defaultOpen:c,onOpenChange:f,modal:d=!0}=t,p=qt(a),g=v.useRef(null),[y,b]=na({prop:s,defaultProp:c??!1,onChange:f,caller:eu});return h.jsx(kO,{scope:a,triggerId:_t(),triggerRef:g,contentId:_t(),open:y,onOpenChange:b,onOpenToggle:v.useCallback(()=>b(S=>!S),[b]),modal:d,children:h.jsx(mO,{...p,open:y,onOpenChange:b,dir:l,modal:d,children:o})})};x1.displayName=eu;var S1="DropdownMenuTrigger",w1=v.forwardRef((t,a)=>{const{__scopeDropdownMenu:o,disabled:l=!1,...s}=t,c=b1(S1,o),f=qt(o);return h.jsx(pO,{asChild:!0,...f,children:h.jsx(Ee.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":l?"":void 0,disabled:l,...s,ref:ta(a,c.triggerRef),onPointerDown:me(t.onPointerDown,d=>{!l&&d.button===0&&d.ctrlKey===!1&&(c.onOpenToggle(),c.open||d.preventDefault())}),onKeyDown:me(t.onKeyDown,d=>{l||(["Enter"," "].includes(d.key)&&c.onOpenToggle(),d.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(d.key)&&d.preventDefault())})})})});w1.displayName=S1;var OO="DropdownMenuPortal",_1=t=>{const{__scopeDropdownMenu:a,...o}=t,l=qt(a);return h.jsx(hO,{...l,...o})};_1.displayName=OO;var C1="DropdownMenuContent",E1=v.forwardRef((t,a)=>{const{__scopeDropdownMenu:o,...l}=t,s=b1(C1,o),c=qt(o),f=v.useRef(!1);return h.jsx(gO,{id:s.contentId,"aria-labelledby":s.triggerId,...c,...l,ref:a,onCloseAutoFocus:me(t.onCloseAutoFocus,d=>{f.current||s.triggerRef.current?.focus(),f.current=!1,d.preventDefault()}),onInteractOutside:me(t.onInteractOutside,d=>{const p=d.detail.originalEvent,g=p.button===0&&p.ctrlKey===!0,y=p.button===2||g;(!s.modal||y)&&(f.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});E1.displayName=C1;var DO="DropdownMenuGroup",jO=v.forwardRef((t,a)=>{const{__scopeDropdownMenu:o,...l}=t,s=qt(o);return h.jsx(vO,{...s,...l,ref:a})});jO.displayName=DO;var RO="DropdownMenuLabel",AO=v.forwardRef((t,a)=>{const{__scopeDropdownMenu:o,...l}=t,s=qt(o);return h.jsx(yO,{...s,...l,ref:a})});AO.displayName=RO;var zO="DropdownMenuItem",M1=v.forwardRef((t,a)=>{const{__scopeDropdownMenu:o,...l}=t,s=qt(o);return h.jsx(bO,{...s,...l,ref:a})});M1.displayName=zO;var UO="DropdownMenuCheckboxItem",LO=v.forwardRef((t,a)=>{const{__scopeDropdownMenu:o,...l}=t,s=qt(o);return h.jsx(xO,{...s,...l,ref:a})});LO.displayName=UO;var PO="DropdownMenuRadioGroup",BO=v.forwardRef((t,a)=>{const{__scopeDropdownMenu:o,...l}=t,s=qt(o);return h.jsx(SO,{...s,...l,ref:a})});BO.displayName=PO;var HO="DropdownMenuRadioItem",YO=v.forwardRef((t,a)=>{const{__scopeDropdownMenu:o,...l}=t,s=qt(o);return h.jsx(wO,{...s,...l,ref:a})});YO.displayName=HO;var IO="DropdownMenuItemIndicator",GO=v.forwardRef((t,a)=>{const{__scopeDropdownMenu:o,...l}=t,s=qt(o);return h.jsx(_O,{...s,...l,ref:a})});GO.displayName=IO;var VO="DropdownMenuSeparator",qO=v.forwardRef((t,a)=>{const{__scopeDropdownMenu:o,...l}=t,s=qt(o);return h.jsx(CO,{...s,...l,ref:a})});qO.displayName=VO;var WO="DropdownMenuArrow",FO=v.forwardRef((t,a)=>{const{__scopeDropdownMenu:o,...l}=t,s=qt(o);return h.jsx(EO,{...s,...l,ref:a})});FO.displayName=WO;var $O="DropdownMenuSubTrigger",KO=v.forwardRef((t,a)=>{const{__scopeDropdownMenu:o,...l}=t,s=qt(o);return h.jsx(MO,{...s,...l,ref:a})});KO.displayName=$O;var XO="DropdownMenuSubContent",ZO=v.forwardRef((t,a)=>{const{__scopeDropdownMenu:o,...l}=t,s=qt(o);return h.jsx(NO,{...s,...l,ref:a,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ZO.displayName=XO;var QO=x1,JO=w1,eD=_1,tD=E1,nD=M1,aD="Label",N1=v.forwardRef((t,a)=>h.jsx(Ee.label,{...t,ref:a,onMouseDown:o=>{o.target.closest("button, input, select, textarea")||(t.onMouseDown?.(o),!o.defaultPrevented&&o.detail>1&&o.preventDefault())}}));N1.displayName=aD;var rD=N1;function Tb(t,[a,o]){return Math.min(o,Math.max(a,t))}var tu="Popover",[T1]=Tn(tu,[mr]),Ii=mr(),[oD,pr]=T1(tu),k1=t=>{const{__scopePopover:a,children:o,open:l,defaultOpen:s,onOpenChange:c,modal:f=!1}=t,d=Ii(a),p=v.useRef(null),[g,y]=v.useState(!1),[b,S]=na({prop:l,defaultProp:s??!1,onChange:c,caller:tu});return h.jsx($c,{...d,children:h.jsx(oD,{scope:a,contentId:_t(),triggerRef:p,open:b,onOpenChange:S,onOpenToggle:v.useCallback(()=>S(_=>!_),[S]),hasCustomAnchor:g,onCustomAnchorAdd:v.useCallback(()=>y(!0),[]),onCustomAnchorRemove:v.useCallback(()=>y(!1),[]),modal:f,children:o})})};k1.displayName=tu;var O1="PopoverAnchor",lD=v.forwardRef((t,a)=>{const{__scopePopover:o,...l}=t,s=pr(O1,o),c=Ii(o),{onCustomAnchorAdd:f,onCustomAnchorRemove:d}=s;return v.useEffect(()=>(f(),()=>d()),[f,d]),h.jsx(Pi,{...c,...l,ref:a})});lD.displayName=O1;var D1="PopoverTrigger",j1=v.forwardRef((t,a)=>{const{__scopePopover:o,...l}=t,s=pr(D1,o),c=Ii(o),f=Ye(a,s.triggerRef),d=h.jsx(Ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":L1(s.open),...l,ref:f,onClick:me(t.onClick,s.onOpenToggle)});return s.hasCustomAnchor?d:h.jsx(Pi,{asChild:!0,...c,children:d})});j1.displayName=D1;var bp="PopoverPortal",[iD,sD]=T1(bp,{forceMount:void 0}),R1=t=>{const{__scopePopover:a,forceMount:o,children:l,container:s}=t,c=pr(bp,a);return h.jsx(iD,{scope:a,forceMount:o,children:h.jsx(Vt,{present:o||c.open,children:h.jsx(sl,{asChild:!0,container:s,children:l})})})};R1.displayName=bp;var al="PopoverContent",A1=v.forwardRef((t,a)=>{const o=sD(al,t.__scopePopover),{forceMount:l=o.forceMount,...s}=t,c=pr(al,t.__scopePopover);return h.jsx(Vt,{present:l||c.open,children:c.modal?h.jsx(uD,{...s,ref:a}):h.jsx(dD,{...s,ref:a})})});A1.displayName=al;var cD=cr("PopoverContent.RemoveScroll"),uD=v.forwardRef((t,a)=>{const o=pr(al,t.__scopePopover),l=v.useRef(null),s=Ye(a,l),c=v.useRef(!1);return v.useEffect(()=>{const f=l.current;if(f)return Yc(f)},[]),h.jsx(Ui,{as:cD,allowPinchZoom:!0,children:h.jsx(z1,{...t,ref:s,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:me(t.onCloseAutoFocus,f=>{f.preventDefault(),c.current||o.triggerRef.current?.focus()}),onPointerDownOutside:me(t.onPointerDownOutside,f=>{const d=f.detail.originalEvent,p=d.button===0&&d.ctrlKey===!0,g=d.button===2||p;c.current=g},{checkForDefaultPrevented:!1}),onFocusOutside:me(t.onFocusOutside,f=>f.preventDefault(),{checkForDefaultPrevented:!1})})})}),dD=v.forwardRef((t,a)=>{const o=pr(al,t.__scopePopover),l=v.useRef(!1),s=v.useRef(!1);return h.jsx(z1,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{t.onCloseAutoFocus?.(c),c.defaultPrevented||(l.current||o.triggerRef.current?.focus(),c.preventDefault()),l.current=!1,s.current=!1},onInteractOutside:c=>{t.onInteractOutside?.(c),c.defaultPrevented||(l.current=!0,c.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const f=c.target;o.triggerRef.current?.contains(f)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&s.current&&c.preventDefault()}})}),z1=v.forwardRef((t,a)=>{const{__scopePopover:o,trapFocus:l,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:f,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:g,onInteractOutside:y,...b}=t,S=pr(al,o),_=Ii(o);return Bc(),h.jsx(zi,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:s,onUnmountAutoFocus:c,children:h.jsx(il,{asChild:!0,disableOutsidePointerEvents:f,onInteractOutside:y,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:g,onDismiss:()=>S.onOpenChange(!1),children:h.jsx(Kc,{"data-state":L1(S.open),role:"dialog",id:S.contentId,..._,...b,ref:a,style:{...b.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),U1="PopoverClose",fD=v.forwardRef((t,a)=>{const{__scopePopover:o,...l}=t,s=pr(U1,o);return h.jsx(Ee.button,{type:"button",...l,ref:a,onClick:me(t.onClick,()=>s.onOpenChange(!1))})});fD.displayName=U1;var mD="PopoverArrow",pD=v.forwardRef((t,a)=>{const{__scopePopover:o,...l}=t,s=Ii(o);return h.jsx(Xc,{...s,...l,ref:a})});pD.displayName=mD;function L1(t){return t?"open":"closed"}var hD=k1,gD=j1,vD=R1,yD=A1,bD=[" ","Enter","ArrowUp","ArrowDown"],xD=[" ","Enter"],Wr="Select",[nu,au,SD]=Wm(Wr),[dl]=Tn(Wr,[SD,mr]),ru=mr(),[wD,hr]=dl(Wr),[_D,CD]=dl(Wr),P1=t=>{const{__scopeSelect:a,children:o,open:l,defaultOpen:s,onOpenChange:c,value:f,defaultValue:d,onValueChange:p,dir:g,name:y,autoComplete:b,disabled:S,required:_,form:M}=t,w=ru(a),[E,T]=v.useState(null),[k,D]=v.useState(null),[j,R]=v.useState(!1),U=Pc(g),[Y,H]=na({prop:l,defaultProp:s??!1,onChange:c,caller:Wr}),[ie,oe]=na({prop:f,defaultProp:d,onChange:p,caller:Wr}),O=v.useRef(null),J=E?M||!!E.closest("form"):!0,[le,ae]=v.useState(new Set),V=Array.from(le).map(P=>P.props.value).join(";");return h.jsx($c,{...w,children:h.jsxs(wD,{required:_,scope:a,trigger:E,onTriggerChange:T,valueNode:k,onValueNodeChange:D,valueNodeHasChildren:j,onValueNodeHasChildrenChange:R,contentId:_t(),value:ie,onValueChange:oe,open:Y,onOpenChange:H,dir:U,triggerPointerDownPosRef:O,disabled:S,children:[h.jsx(nu.Provider,{scope:a,children:h.jsx(_D,{scope:t.__scopeSelect,onNativeOptionAdd:v.useCallback(P=>{ae(I=>new Set(I).add(P))},[]),onNativeOptionRemove:v.useCallback(P=>{ae(I=>{const z=new Set(I);return z.delete(P),z})},[]),children:o})}),J?h.jsxs(lS,{"aria-hidden":!0,required:_,tabIndex:-1,name:y,autoComplete:b,value:ie,onChange:P=>oe(P.target.value),disabled:S,form:M,children:[ie===void 0?h.jsx("option",{value:""}):null,Array.from(le)]},V):null]})})};P1.displayName=Wr;var B1="SelectTrigger",H1=v.forwardRef((t,a)=>{const{__scopeSelect:o,disabled:l=!1,...s}=t,c=ru(o),f=hr(B1,o),d=f.disabled||l,p=Ye(a,f.onTriggerChange),g=au(o),y=v.useRef("touch"),[b,S,_]=sS(w=>{const E=g().filter(D=>!D.disabled),T=E.find(D=>D.value===f.value),k=cS(E,w,T);k!==void 0&&f.onValueChange(k.value)}),M=w=>{d||(f.onOpenChange(!0),_()),w&&(f.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return h.jsx(Pi,{asChild:!0,...c,children:h.jsx(Ee.button,{type:"button",role:"combobox","aria-controls":f.contentId,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":iS(f.value)?"":void 0,...s,ref:p,onClick:me(s.onClick,w=>{w.currentTarget.focus(),y.current!=="mouse"&&M(w)}),onPointerDown:me(s.onPointerDown,w=>{y.current=w.pointerType;const E=w.target;E.hasPointerCapture(w.pointerId)&&E.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(M(w),w.preventDefault())}),onKeyDown:me(s.onKeyDown,w=>{const E=b.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&S(w.key),!(E&&w.key===" ")&&bD.includes(w.key)&&(M(),w.preventDefault())})})})});H1.displayName=B1;var Y1="SelectValue",I1=v.forwardRef((t,a)=>{const{__scopeSelect:o,className:l,style:s,children:c,placeholder:f="",...d}=t,p=hr(Y1,o),{onValueNodeHasChildrenChange:g}=p,y=c!==void 0,b=Ye(a,p.onValueNodeChange);return At(()=>{g(y)},[g,y]),h.jsx(Ee.span,{...d,ref:b,style:{pointerEvents:"none"},children:iS(p.value)?h.jsx(h.Fragment,{children:f}):c})});I1.displayName=Y1;var ED="SelectIcon",G1=v.forwardRef((t,a)=>{const{__scopeSelect:o,children:l,...s}=t;return h.jsx(Ee.span,{"aria-hidden":!0,...s,ref:a,children:l||"▼"})});G1.displayName=ED;var MD="SelectPortal",V1=t=>h.jsx(sl,{asChild:!0,...t});V1.displayName=MD;var Fr="SelectContent",q1=v.forwardRef((t,a)=>{const o=hr(Fr,t.__scopeSelect),[l,s]=v.useState();if(At(()=>{s(new DocumentFragment)},[]),!o.open){const c=l;return c?Ai.createPortal(h.jsx(W1,{scope:t.__scopeSelect,children:h.jsx(nu.Slot,{scope:t.__scopeSelect,children:h.jsx("div",{children:t.children})})}),c):null}return h.jsx(F1,{...t,ref:a})});q1.displayName=Fr;var zn=10,[W1,gr]=dl(Fr),ND="SelectContentImpl",TD=cr("SelectContent.RemoveScroll"),F1=v.forwardRef((t,a)=>{const{__scopeSelect:o,position:l="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:c,onPointerDownOutside:f,side:d,sideOffset:p,align:g,alignOffset:y,arrowPadding:b,collisionBoundary:S,collisionPadding:_,sticky:M,hideWhenDetached:w,avoidCollisions:E,...T}=t,k=hr(Fr,o),[D,j]=v.useState(null),[R,U]=v.useState(null),Y=Ye(a,X=>j(X)),[H,ie]=v.useState(null),[oe,O]=v.useState(null),J=au(o),[le,ae]=v.useState(!1),V=v.useRef(!1);v.useEffect(()=>{if(D)return Yc(D)},[D]),Bc();const P=v.useCallback(X=>{const[de,...xe]=J().map(Ue=>Ue.ref.current),[pe]=xe.slice(-1),De=document.activeElement;for(const Ue of X)if(Ue===De||(Ue?.scrollIntoView({block:"nearest"}),Ue===de&&R&&(R.scrollTop=0),Ue===pe&&R&&(R.scrollTop=R.scrollHeight),Ue?.focus(),document.activeElement!==De))return},[J,R]),I=v.useCallback(()=>P([H,D]),[P,H,D]);v.useEffect(()=>{le&&I()},[le,I]);const{onOpenChange:z,triggerPointerDownPosRef:F}=k;v.useEffect(()=>{if(D){let X={x:0,y:0};const de=pe=>{X={x:Math.abs(Math.round(pe.pageX)-(F.current?.x??0)),y:Math.abs(Math.round(pe.pageY)-(F.current?.y??0))}},xe=pe=>{X.x<=10&&X.y<=10?pe.preventDefault():D.contains(pe.target)||z(!1),document.removeEventListener("pointermove",de),F.current=null};return F.current!==null&&(document.addEventListener("pointermove",de),document.addEventListener("pointerup",xe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",de),document.removeEventListener("pointerup",xe,{capture:!0})}}},[D,z,F]),v.useEffect(()=>{const X=()=>z(!1);return window.addEventListener("blur",X),window.addEventListener("resize",X),()=>{window.removeEventListener("blur",X),window.removeEventListener("resize",X)}},[z]);const[ce,ue]=sS(X=>{const de=J().filter(De=>!De.disabled),xe=de.find(De=>De.ref.current===document.activeElement),pe=cS(de,X,xe);pe&&setTimeout(()=>pe.ref.current.focus())}),N=v.useCallback((X,de,xe)=>{const pe=!V.current&&!xe;(k.value!==void 0&&k.value===de||pe)&&(ie(X),pe&&(V.current=!0))},[k.value]),B=v.useCallback(()=>D?.focus(),[D]),$=v.useCallback((X,de,xe)=>{const pe=!V.current&&!xe;(k.value!==void 0&&k.value===de||pe)&&O(X)},[k.value]),Q=l==="popper"?xm:$1,se=Q===xm?{side:d,sideOffset:p,align:g,alignOffset:y,arrowPadding:b,collisionBoundary:S,collisionPadding:_,sticky:M,hideWhenDetached:w,avoidCollisions:E}:{};return h.jsx(W1,{scope:o,content:D,viewport:R,onViewportChange:U,itemRefCallback:N,selectedItem:H,onItemLeave:B,itemTextRefCallback:$,focusSelectedItem:I,selectedItemText:oe,position:l,isPositioned:le,searchRef:ce,children:h.jsx(Ui,{as:TD,allowPinchZoom:!0,children:h.jsx(zi,{asChild:!0,trapped:k.open,onMountAutoFocus:X=>{X.preventDefault()},onUnmountAutoFocus:me(s,X=>{k.trigger?.focus({preventScroll:!0}),X.preventDefault()}),children:h.jsx(il,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:X=>X.preventDefault(),onDismiss:()=>k.onOpenChange(!1),children:h.jsx(Q,{role:"listbox",id:k.contentId,"data-state":k.open?"open":"closed",dir:k.dir,onContextMenu:X=>X.preventDefault(),...T,...se,onPlaced:()=>ae(!0),ref:Y,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:me(T.onKeyDown,X=>{const de=X.ctrlKey||X.altKey||X.metaKey;if(X.key==="Tab"&&X.preventDefault(),!de&&X.key.length===1&&ue(X.key),["ArrowUp","ArrowDown","Home","End"].includes(X.key)){let pe=J().filter(De=>!De.disabled).map(De=>De.ref.current);if(["ArrowUp","End"].includes(X.key)&&(pe=pe.slice().reverse()),["ArrowUp","ArrowDown"].includes(X.key)){const De=X.target,Ue=pe.indexOf(De);pe=pe.slice(Ue+1)}setTimeout(()=>P(pe)),X.preventDefault()}})})})})})})});F1.displayName=ND;var kD="SelectItemAlignedPosition",$1=v.forwardRef((t,a)=>{const{__scopeSelect:o,onPlaced:l,...s}=t,c=hr(Fr,o),f=gr(Fr,o),[d,p]=v.useState(null),[g,y]=v.useState(null),b=Ye(a,Y=>y(Y)),S=au(o),_=v.useRef(!1),M=v.useRef(!0),{viewport:w,selectedItem:E,selectedItemText:T,focusSelectedItem:k}=f,D=v.useCallback(()=>{if(c.trigger&&c.valueNode&&d&&g&&w&&E&&T){const Y=c.trigger.getBoundingClientRect(),H=g.getBoundingClientRect(),ie=c.valueNode.getBoundingClientRect(),oe=T.getBoundingClientRect();if(c.dir!=="rtl"){const De=oe.left-H.left,Ue=ie.left-De,xt=Y.left-Ue,Wt=Y.width+xt,zt=Math.max(Wt,H.width),kn=window.innerWidth-zn,On=Tb(Ue,[zn,Math.max(zn,kn-zt)]);d.style.minWidth=Wt+"px",d.style.left=On+"px"}else{const De=H.right-oe.right,Ue=window.innerWidth-ie.right-De,xt=window.innerWidth-Y.right-Ue,Wt=Y.width+xt,zt=Math.max(Wt,H.width),kn=window.innerWidth-zn,On=Tb(Ue,[zn,Math.max(zn,kn-zt)]);d.style.minWidth=Wt+"px",d.style.right=On+"px"}const O=S(),J=window.innerHeight-zn*2,le=w.scrollHeight,ae=window.getComputedStyle(g),V=parseInt(ae.borderTopWidth,10),P=parseInt(ae.paddingTop,10),I=parseInt(ae.borderBottomWidth,10),z=parseInt(ae.paddingBottom,10),F=V+P+le+z+I,ce=Math.min(E.offsetHeight*5,F),ue=window.getComputedStyle(w),N=parseInt(ue.paddingTop,10),B=parseInt(ue.paddingBottom,10),$=Y.top+Y.height/2-zn,Q=J-$,se=E.offsetHeight/2,X=E.offsetTop+se,de=V+P+X,xe=F-de;if(de<=$){const De=O.length>0&&E===O[O.length-1].ref.current;d.style.bottom="0px";const Ue=g.clientHeight-w.offsetTop-w.offsetHeight,xt=Math.max(Q,se+(De?B:0)+Ue+I),Wt=de+xt;d.style.height=Wt+"px"}else{const De=O.length>0&&E===O[0].ref.current;d.style.top="0px";const xt=Math.max($,V+w.offsetTop+(De?N:0)+se)+xe;d.style.height=xt+"px",w.scrollTop=de-$+w.offsetTop}d.style.margin=`${zn}px 0`,d.style.minHeight=ce+"px",d.style.maxHeight=J+"px",l?.(),requestAnimationFrame(()=>_.current=!0)}},[S,c.trigger,c.valueNode,d,g,w,E,T,c.dir,l]);At(()=>D(),[D]);const[j,R]=v.useState();At(()=>{g&&R(window.getComputedStyle(g).zIndex)},[g]);const U=v.useCallback(Y=>{Y&&M.current===!0&&(D(),k?.(),M.current=!1)},[D,k]);return h.jsx(DD,{scope:o,contentWrapper:d,shouldExpandOnScrollRef:_,onScrollButtonChange:U,children:h.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:j},children:h.jsx(Ee.div,{...s,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});$1.displayName=kD;var OD="SelectPopperPosition",xm=v.forwardRef((t,a)=>{const{__scopeSelect:o,align:l="start",collisionPadding:s=zn,...c}=t,f=ru(o);return h.jsx(Kc,{...f,...c,ref:a,align:l,collisionPadding:s,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});xm.displayName=OD;var[DD,xp]=dl(Fr,{}),Sm="SelectViewport",K1=v.forwardRef((t,a)=>{const{__scopeSelect:o,nonce:l,...s}=t,c=gr(Sm,o),f=xp(Sm,o),d=Ye(a,c.onViewportChange),p=v.useRef(0);return h.jsxs(h.Fragment,{children:[h.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),h.jsx(nu.Slot,{scope:o,children:h.jsx(Ee.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:me(s.onScroll,g=>{const y=g.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:S}=f;if(S?.current&&b){const _=Math.abs(p.current-y.scrollTop);if(_>0){const M=window.innerHeight-zn*2,w=parseFloat(b.style.minHeight),E=parseFloat(b.style.height),T=Math.max(w,E);if(T<M){const k=T+_,D=Math.min(M,k),j=k-D;b.style.height=D+"px",b.style.bottom==="0px"&&(y.scrollTop=j>0?j:0,b.style.justifyContent="flex-end")}}}p.current=y.scrollTop})})})]})});K1.displayName=Sm;var X1="SelectGroup",[jD,RD]=dl(X1),AD=v.forwardRef((t,a)=>{const{__scopeSelect:o,...l}=t,s=_t();return h.jsx(jD,{scope:o,id:s,children:h.jsx(Ee.div,{role:"group","aria-labelledby":s,...l,ref:a})})});AD.displayName=X1;var Z1="SelectLabel",zD=v.forwardRef((t,a)=>{const{__scopeSelect:o,...l}=t,s=RD(Z1,o);return h.jsx(Ee.div,{id:s.id,...l,ref:a})});zD.displayName=Z1;var jc="SelectItem",[UD,Q1]=dl(jc),J1=v.forwardRef((t,a)=>{const{__scopeSelect:o,value:l,disabled:s=!1,textValue:c,...f}=t,d=hr(jc,o),p=gr(jc,o),g=d.value===l,[y,b]=v.useState(c??""),[S,_]=v.useState(!1),M=Ye(a,k=>p.itemRefCallback?.(k,l,s)),w=_t(),E=v.useRef("touch"),T=()=>{s||(d.onValueChange(l),d.onOpenChange(!1))};if(l==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return h.jsx(UD,{scope:o,value:l,disabled:s,textId:w,isSelected:g,onItemTextChange:v.useCallback(k=>{b(D=>D||(k?.textContent??"").trim())},[]),children:h.jsx(nu.ItemSlot,{scope:o,value:l,disabled:s,textValue:y,children:h.jsx(Ee.div,{role:"option","aria-labelledby":w,"data-highlighted":S?"":void 0,"aria-selected":g&&S,"data-state":g?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...f,ref:M,onFocus:me(f.onFocus,()=>_(!0)),onBlur:me(f.onBlur,()=>_(!1)),onClick:me(f.onClick,()=>{E.current!=="mouse"&&T()}),onPointerUp:me(f.onPointerUp,()=>{E.current==="mouse"&&T()}),onPointerDown:me(f.onPointerDown,k=>{E.current=k.pointerType}),onPointerMove:me(f.onPointerMove,k=>{E.current=k.pointerType,s?p.onItemLeave?.():E.current==="mouse"&&k.currentTarget.focus({preventScroll:!0})}),onPointerLeave:me(f.onPointerLeave,k=>{k.currentTarget===document.activeElement&&p.onItemLeave?.()}),onKeyDown:me(f.onKeyDown,k=>{p.searchRef?.current!==""&&k.key===" "||(xD.includes(k.key)&&T(),k.key===" "&&k.preventDefault())})})})})});J1.displayName=jc;var xi="SelectItemText",eS=v.forwardRef((t,a)=>{const{__scopeSelect:o,className:l,style:s,...c}=t,f=hr(xi,o),d=gr(xi,o),p=Q1(xi,o),g=CD(xi,o),[y,b]=v.useState(null),S=Ye(a,T=>b(T),p.onItemTextChange,T=>d.itemTextRefCallback?.(T,p.value,p.disabled)),_=y?.textContent,M=v.useMemo(()=>h.jsx("option",{value:p.value,disabled:p.disabled,children:_},p.value),[p.disabled,p.value,_]),{onNativeOptionAdd:w,onNativeOptionRemove:E}=g;return At(()=>(w(M),()=>E(M)),[w,E,M]),h.jsxs(h.Fragment,{children:[h.jsx(Ee.span,{id:p.textId,...c,ref:S}),p.isSelected&&f.valueNode&&!f.valueNodeHasChildren?Ai.createPortal(c.children,f.valueNode):null]})});eS.displayName=xi;var tS="SelectItemIndicator",nS=v.forwardRef((t,a)=>{const{__scopeSelect:o,...l}=t;return Q1(tS,o).isSelected?h.jsx(Ee.span,{"aria-hidden":!0,...l,ref:a}):null});nS.displayName=tS;var wm="SelectScrollUpButton",aS=v.forwardRef((t,a)=>{const o=gr(wm,t.__scopeSelect),l=xp(wm,t.__scopeSelect),[s,c]=v.useState(!1),f=Ye(a,l.onScrollButtonChange);return At(()=>{if(o.viewport&&o.isPositioned){let d=function(){const g=p.scrollTop>0;c(g)};const p=o.viewport;return d(),p.addEventListener("scroll",d),()=>p.removeEventListener("scroll",d)}},[o.viewport,o.isPositioned]),s?h.jsx(oS,{...t,ref:f,onAutoScroll:()=>{const{viewport:d,selectedItem:p}=o;d&&p&&(d.scrollTop=d.scrollTop-p.offsetHeight)}}):null});aS.displayName=wm;var _m="SelectScrollDownButton",rS=v.forwardRef((t,a)=>{const o=gr(_m,t.__scopeSelect),l=xp(_m,t.__scopeSelect),[s,c]=v.useState(!1),f=Ye(a,l.onScrollButtonChange);return At(()=>{if(o.viewport&&o.isPositioned){let d=function(){const g=p.scrollHeight-p.clientHeight,y=Math.ceil(p.scrollTop)<g;c(y)};const p=o.viewport;return d(),p.addEventListener("scroll",d),()=>p.removeEventListener("scroll",d)}},[o.viewport,o.isPositioned]),s?h.jsx(oS,{...t,ref:f,onAutoScroll:()=>{const{viewport:d,selectedItem:p}=o;d&&p&&(d.scrollTop=d.scrollTop+p.offsetHeight)}}):null});rS.displayName=_m;var oS=v.forwardRef((t,a)=>{const{__scopeSelect:o,onAutoScroll:l,...s}=t,c=gr("SelectScrollButton",o),f=v.useRef(null),d=au(o),p=v.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return v.useEffect(()=>()=>p(),[p]),At(()=>{d().find(y=>y.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[d]),h.jsx(Ee.div,{"aria-hidden":!0,...s,ref:a,style:{flexShrink:0,...s.style},onPointerDown:me(s.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(l,50))}),onPointerMove:me(s.onPointerMove,()=>{c.onItemLeave?.(),f.current===null&&(f.current=window.setInterval(l,50))}),onPointerLeave:me(s.onPointerLeave,()=>{p()})})}),LD="SelectSeparator",PD=v.forwardRef((t,a)=>{const{__scopeSelect:o,...l}=t;return h.jsx(Ee.div,{"aria-hidden":!0,...l,ref:a})});PD.displayName=LD;var Cm="SelectArrow",BD=v.forwardRef((t,a)=>{const{__scopeSelect:o,...l}=t,s=ru(o),c=hr(Cm,o),f=gr(Cm,o);return c.open&&f.position==="popper"?h.jsx(Xc,{...s,...l,ref:a}):null});BD.displayName=Cm;var HD="SelectBubbleInput",lS=v.forwardRef(({__scopeSelect:t,value:a,...o},l)=>{const s=v.useRef(null),c=Ye(l,s),f=f0(a);return v.useEffect(()=>{const d=s.current;if(!d)return;const p=window.HTMLSelectElement.prototype,y=Object.getOwnPropertyDescriptor(p,"value").set;if(f!==a&&y){const b=new Event("change",{bubbles:!0});y.call(d,a),d.dispatchEvent(b)}},[f,a]),h.jsx(Ee.select,{...o,style:{...Dx,...o.style},ref:c,defaultValue:a})});lS.displayName=HD;function iS(t){return t===""||t===void 0}function sS(t){const a=aa(t),o=v.useRef(""),l=v.useRef(0),s=v.useCallback(f=>{const d=o.current+f;a(d),(function p(g){o.current=g,window.clearTimeout(l.current),g!==""&&(l.current=window.setTimeout(()=>p(""),1e3))})(d)},[a]),c=v.useCallback(()=>{o.current="",window.clearTimeout(l.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(l.current),[]),[o,s,c]}function cS(t,a,o){const s=a.length>1&&Array.from(a).every(g=>g===a[0])?a[0]:a,c=o?t.indexOf(o):-1;let f=YD(t,Math.max(c,0));s.length===1&&(f=f.filter(g=>g!==o));const p=f.find(g=>g.textValue.toLowerCase().startsWith(s.toLowerCase()));return p!==o?p:void 0}function YD(t,a){return t.map((o,l)=>t[(a+l)%t.length])}var ID=P1,GD=H1,VD=I1,qD=G1,WD=V1,FD=q1,$D=K1,KD=J1,XD=eS,ZD=nS,QD=aS,JD=rS,ou="Tabs",[ej]=Tn(ou,[Zc]),uS=Zc(),[tj,Sp]=ej(ou),dS=v.forwardRef((t,a)=>{const{__scopeTabs:o,value:l,onValueChange:s,defaultValue:c,orientation:f="horizontal",dir:d,activationMode:p="automatic",...g}=t,y=Pc(d),[b,S]=na({prop:l,onChange:s,defaultProp:c??"",caller:ou});return h.jsx(tj,{scope:o,baseId:_t(),value:b,onValueChange:S,orientation:f,dir:y,activationMode:p,children:h.jsx(Ee.div,{dir:y,"data-orientation":f,...g,ref:a})})});dS.displayName=ou;var fS="TabsList",mS=v.forwardRef((t,a)=>{const{__scopeTabs:o,loop:l=!0,...s}=t,c=Sp(fS,o),f=uS(o);return h.jsx($0,{asChild:!0,...f,orientation:c.orientation,dir:c.dir,loop:l,children:h.jsx(Ee.div,{role:"tablist","aria-orientation":c.orientation,...s,ref:a})})});mS.displayName=fS;var pS="TabsTrigger",hS=v.forwardRef((t,a)=>{const{__scopeTabs:o,value:l,disabled:s=!1,...c}=t,f=Sp(pS,o),d=uS(o),p=yS(f.baseId,l),g=bS(f.baseId,l),y=l===f.value;return h.jsx(K0,{asChild:!0,...d,focusable:!s,active:y,children:h.jsx(Ee.button,{type:"button",role:"tab","aria-selected":y,"aria-controls":g,"data-state":y?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:p,...c,ref:a,onMouseDown:me(t.onMouseDown,b=>{!s&&b.button===0&&b.ctrlKey===!1?f.onValueChange(l):b.preventDefault()}),onKeyDown:me(t.onKeyDown,b=>{[" ","Enter"].includes(b.key)&&f.onValueChange(l)}),onFocus:me(t.onFocus,()=>{const b=f.activationMode!=="manual";!y&&!s&&b&&f.onValueChange(l)})})})});hS.displayName=pS;var gS="TabsContent",vS=v.forwardRef((t,a)=>{const{__scopeTabs:o,value:l,forceMount:s,children:c,...f}=t,d=Sp(gS,o),p=yS(d.baseId,l),g=bS(d.baseId,l),y=l===d.value,b=v.useRef(y);return v.useEffect(()=>{const S=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(S)},[]),h.jsx(Vt,{present:s||y,children:({present:S})=>h.jsx(Ee.div,{"data-state":y?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":p,hidden:!S,id:g,tabIndex:0,...f,ref:a,style:{...t.style,animationDuration:b.current?"0s":void 0},children:S&&c})})});vS.displayName=gS;function yS(t,a){return`${t}-trigger-${a}`}function bS(t,a){return`${t}-content-${a}`}var nj=dS,aj=mS,rj=hS,oj=vS,[lu]=Tn("Tooltip",[mr]),iu=mr(),xS="TooltipProvider",lj=700,Em="tooltip.open",[ij,wp]=lu(xS),SS=t=>{const{__scopeTooltip:a,delayDuration:o=lj,skipDelayDuration:l=300,disableHoverableContent:s=!1,children:c}=t,f=v.useRef(!0),d=v.useRef(!1),p=v.useRef(0);return v.useEffect(()=>{const g=p.current;return()=>window.clearTimeout(g)},[]),h.jsx(ij,{scope:a,isOpenDelayedRef:f,delayDuration:o,onOpen:v.useCallback(()=>{window.clearTimeout(p.current),f.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>f.current=!0,l)},[l]),isPointerInTransitRef:d,onPointerInTransitChange:v.useCallback(g=>{d.current=g},[]),disableHoverableContent:s,children:c})};SS.displayName=xS;var Oi="Tooltip",[sj,Gi]=lu(Oi),wS=t=>{const{__scopeTooltip:a,children:o,open:l,defaultOpen:s,onOpenChange:c,disableHoverableContent:f,delayDuration:d}=t,p=wp(Oi,t.__scopeTooltip),g=iu(a),[y,b]=v.useState(null),S=_t(),_=v.useRef(0),M=f??p.disableHoverableContent,w=d??p.delayDuration,E=v.useRef(!1),[T,k]=na({prop:l,defaultProp:s??!1,onChange:Y=>{Y?(p.onOpen(),document.dispatchEvent(new CustomEvent(Em))):p.onClose(),c?.(Y)},caller:Oi}),D=v.useMemo(()=>T?E.current?"delayed-open":"instant-open":"closed",[T]),j=v.useCallback(()=>{window.clearTimeout(_.current),_.current=0,E.current=!1,k(!0)},[k]),R=v.useCallback(()=>{window.clearTimeout(_.current),_.current=0,k(!1)},[k]),U=v.useCallback(()=>{window.clearTimeout(_.current),_.current=window.setTimeout(()=>{E.current=!0,k(!0),_.current=0},w)},[w,k]);return v.useEffect(()=>()=>{_.current&&(window.clearTimeout(_.current),_.current=0)},[]),h.jsx($c,{...g,children:h.jsx(sj,{scope:a,contentId:S,open:T,stateAttribute:D,trigger:y,onTriggerChange:b,onTriggerEnter:v.useCallback(()=>{p.isOpenDelayedRef.current?U():j()},[p.isOpenDelayedRef,U,j]),onTriggerLeave:v.useCallback(()=>{M?R():(window.clearTimeout(_.current),_.current=0)},[R,M]),onOpen:j,onClose:R,disableHoverableContent:M,children:o})})};wS.displayName=Oi;var Mm="TooltipTrigger",_S=v.forwardRef((t,a)=>{const{__scopeTooltip:o,...l}=t,s=Gi(Mm,o),c=wp(Mm,o),f=iu(o),d=v.useRef(null),p=Ye(a,d,s.onTriggerChange),g=v.useRef(!1),y=v.useRef(!1),b=v.useCallback(()=>g.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",b),[b]),h.jsx(Pi,{asChild:!0,...f,children:h.jsx(Ee.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...l,ref:p,onPointerMove:me(t.onPointerMove,S=>{S.pointerType!=="touch"&&!y.current&&!c.isPointerInTransitRef.current&&(s.onTriggerEnter(),y.current=!0)}),onPointerLeave:me(t.onPointerLeave,()=>{s.onTriggerLeave(),y.current=!1}),onPointerDown:me(t.onPointerDown,()=>{s.open&&s.onClose(),g.current=!0,document.addEventListener("pointerup",b,{once:!0})}),onFocus:me(t.onFocus,()=>{g.current||s.onOpen()}),onBlur:me(t.onBlur,s.onClose),onClick:me(t.onClick,s.onClose)})})});_S.displayName=Mm;var _p="TooltipPortal",[cj,uj]=lu(_p,{forceMount:void 0}),CS=t=>{const{__scopeTooltip:a,forceMount:o,children:l,container:s}=t,c=Gi(_p,a);return h.jsx(cj,{scope:a,forceMount:o,children:h.jsx(Vt,{present:o||c.open,children:h.jsx(sl,{asChild:!0,container:s,children:l})})})};CS.displayName=_p;var rl="TooltipContent",ES=v.forwardRef((t,a)=>{const o=uj(rl,t.__scopeTooltip),{forceMount:l=o.forceMount,side:s="top",...c}=t,f=Gi(rl,t.__scopeTooltip);return h.jsx(Vt,{present:l||f.open,children:f.disableHoverableContent?h.jsx(MS,{side:s,...c,ref:a}):h.jsx(dj,{side:s,...c,ref:a})})}),dj=v.forwardRef((t,a)=>{const o=Gi(rl,t.__scopeTooltip),l=wp(rl,t.__scopeTooltip),s=v.useRef(null),c=Ye(a,s),[f,d]=v.useState(null),{trigger:p,onClose:g}=o,y=s.current,{onPointerInTransitChange:b}=l,S=v.useCallback(()=>{d(null),b(!1)},[b]),_=v.useCallback((M,w)=>{const E=M.currentTarget,T={x:M.clientX,y:M.clientY},k=hj(T,E.getBoundingClientRect()),D=gj(T,k),j=vj(w.getBoundingClientRect()),R=bj([...D,...j]);d(R),b(!0)},[b]);return v.useEffect(()=>()=>S(),[S]),v.useEffect(()=>{if(p&&y){const M=E=>_(E,y),w=E=>_(E,p);return p.addEventListener("pointerleave",M),y.addEventListener("pointerleave",w),()=>{p.removeEventListener("pointerleave",M),y.removeEventListener("pointerleave",w)}}},[p,y,_,S]),v.useEffect(()=>{if(f){const M=w=>{const E=w.target,T={x:w.clientX,y:w.clientY},k=p?.contains(E)||y?.contains(E),D=!yj(T,f);k?S():D&&(S(),g())};return document.addEventListener("pointermove",M),()=>document.removeEventListener("pointermove",M)}},[p,y,f,g,S]),h.jsx(MS,{...t,ref:c})}),[fj,mj]=lu(Oi,{isInside:!1}),pj=NM("TooltipContent"),MS=v.forwardRef((t,a)=>{const{__scopeTooltip:o,children:l,"aria-label":s,onEscapeKeyDown:c,onPointerDownOutside:f,...d}=t,p=Gi(rl,o),g=iu(o),{onClose:y}=p;return v.useEffect(()=>(document.addEventListener(Em,y),()=>document.removeEventListener(Em,y)),[y]),v.useEffect(()=>{if(p.trigger){const b=S=>{S.target?.contains(p.trigger)&&y()};return window.addEventListener("scroll",b,{capture:!0}),()=>window.removeEventListener("scroll",b,{capture:!0})}},[p.trigger,y]),h.jsx(il,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:b=>b.preventDefault(),onDismiss:y,children:h.jsxs(Kc,{"data-state":p.stateAttribute,...g,...d,ref:a,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[h.jsx(pj,{children:l}),h.jsx(fj,{scope:o,isInside:!0,children:h.jsx(RM,{id:p.contentId,role:"tooltip",children:s||l})})]})})});ES.displayName=rl;var NS="TooltipArrow",TS=v.forwardRef((t,a)=>{const{__scopeTooltip:o,...l}=t,s=iu(o);return mj(NS,o).isInside?null:h.jsx(Xc,{...s,...l,ref:a})});TS.displayName=NS;function hj(t,a){const o=Math.abs(a.top-t.y),l=Math.abs(a.bottom-t.y),s=Math.abs(a.right-t.x),c=Math.abs(a.left-t.x);switch(Math.min(o,l,s,c)){case c:return"left";case s:return"right";case o:return"top";case l:return"bottom";default:throw new Error("unreachable")}}function gj(t,a,o=5){const l=[];switch(a){case"top":l.push({x:t.x-o,y:t.y+o},{x:t.x+o,y:t.y+o});break;case"bottom":l.push({x:t.x-o,y:t.y-o},{x:t.x+o,y:t.y-o});break;case"left":l.push({x:t.x+o,y:t.y-o},{x:t.x+o,y:t.y+o});break;case"right":l.push({x:t.x-o,y:t.y-o},{x:t.x-o,y:t.y+o});break}return l}function vj(t){const{top:a,right:o,bottom:l,left:s}=t;return[{x:s,y:a},{x:o,y:a},{x:o,y:l},{x:s,y:l}]}function yj(t,a){const{x:o,y:l}=t;let s=!1;for(let c=0,f=a.length-1;c<a.length;f=c++){const d=a[c],p=a[f],g=d.x,y=d.y,b=p.x,S=p.y;y>l!=S>l&&o<(b-g)*(l-y)/(S-y)+g&&(s=!s)}return s}function bj(t){const a=t.slice();return a.sort((o,l)=>o.x<l.x?-1:o.x>l.x?1:o.y<l.y?-1:o.y>l.y?1:0),xj(a)}function xj(t){if(t.length<=1)return t.slice();const a=[];for(let l=0;l<t.length;l++){const s=t[l];for(;a.length>=2;){const c=a[a.length-1],f=a[a.length-2];if((c.x-f.x)*(s.y-f.y)>=(c.y-f.y)*(s.x-f.x))a.pop();else break}a.push(s)}a.pop();const o=[];for(let l=t.length-1;l>=0;l--){const s=t[l];for(;o.length>=2;){const c=o[o.length-1],f=o[o.length-2];if((c.x-f.x)*(s.y-f.y)>=(c.y-f.y)*(s.x-f.x))o.pop();else break}o.push(s)}return o.pop(),a.length===1&&o.length===1&&a[0].x===o[0].x&&a[0].y===o[0].y?a:a.concat(o)}var Sj=SS,wj=wS,_j=_S,Cj=CS,Ej=ES,Mj=TS;const Nj=(t,a)=>{const o=new Array(t.length+a.length);for(let l=0;l<t.length;l++)o[l]=t[l];for(let l=0;l<a.length;l++)o[t.length+l]=a[l];return o},Tj=(t,a)=>({classGroupId:t,validator:a}),kS=(t=new Map,a=null,o)=>({nextPart:t,validators:a,classGroupId:o}),Rc="-",kb=[],kj="arbitrary..",Oj=t=>{const a=jj(t),{conflictingClassGroups:o,conflictingClassGroupModifiers:l}=t;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return Dj(f);const d=f.split(Rc),p=d[0]===""&&d.length>1?1:0;return OS(d,p,a)},getConflictingClassGroupIds:(f,d)=>{if(d){const p=l[f],g=o[f];return p?g?Nj(g,p):p:g||kb}return o[f]||kb}}},OS=(t,a,o)=>{if(t.length-a===0)return o.classGroupId;const s=t[a],c=o.nextPart.get(s);if(c){const g=OS(t,a+1,c);if(g)return g}const f=o.validators;if(f===null)return;const d=a===0?t.join(Rc):t.slice(a).join(Rc),p=f.length;for(let g=0;g<p;g++){const y=f[g];if(y.validator(d))return y.classGroupId}},Dj=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const a=t.slice(1,-1),o=a.indexOf(":"),l=a.slice(0,o);return l?kj+l:void 0})(),jj=t=>{const{theme:a,classGroups:o}=t;return Rj(o,a)},Rj=(t,a)=>{const o=kS();for(const l in t){const s=t[l];Cp(s,o,l,a)}return o},Cp=(t,a,o,l)=>{const s=t.length;for(let c=0;c<s;c++){const f=t[c];Aj(f,a,o,l)}},Aj=(t,a,o,l)=>{if(typeof t=="string"){zj(t,a,o);return}if(typeof t=="function"){Uj(t,a,o,l);return}Lj(t,a,o,l)},zj=(t,a,o)=>{const l=t===""?a:DS(a,t);l.classGroupId=o},Uj=(t,a,o,l)=>{if(Pj(t)){Cp(t(l),a,o,l);return}a.validators===null&&(a.validators=[]),a.validators.push(Tj(o,t))},Lj=(t,a,o,l)=>{const s=Object.entries(t),c=s.length;for(let f=0;f<c;f++){const[d,p]=s[f];Cp(p,DS(a,d),o,l)}},DS=(t,a)=>{let o=t;const l=a.split(Rc),s=l.length;for(let c=0;c<s;c++){const f=l[c];let d=o.nextPart.get(f);d||(d=kS(),o.nextPart.set(f,d)),o=d}return o},Pj=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Bj=t=>{if(t<1)return{get:()=>{},set:()=>{}};let a=0,o=Object.create(null),l=Object.create(null);const s=(c,f)=>{o[c]=f,a++,a>t&&(a=0,l=o,o=Object.create(null))};return{get(c){let f=o[c];if(f!==void 0)return f;if((f=l[c])!==void 0)return s(c,f),f},set(c,f){c in o?o[c]=f:s(c,f)}}},Nm="!",Ob=":",Hj=[],Db=(t,a,o,l,s)=>({modifiers:t,hasImportantModifier:a,baseClassName:o,maybePostfixModifierPosition:l,isExternal:s}),Yj=t=>{const{prefix:a,experimentalParseClassName:o}=t;let l=s=>{const c=[];let f=0,d=0,p=0,g;const y=s.length;for(let w=0;w<y;w++){const E=s[w];if(f===0&&d===0){if(E===Ob){c.push(s.slice(p,w)),p=w+1;continue}if(E==="/"){g=w;continue}}E==="["?f++:E==="]"?f--:E==="("?d++:E===")"&&d--}const b=c.length===0?s:s.slice(p);let S=b,_=!1;b.endsWith(Nm)?(S=b.slice(0,-1),_=!0):b.startsWith(Nm)&&(S=b.slice(1),_=!0);const M=g&&g>p?g-p:void 0;return Db(c,_,S,M)};if(a){const s=a+Ob,c=l;l=f=>f.startsWith(s)?c(f.slice(s.length)):Db(Hj,!1,f,void 0,!0)}if(o){const s=l;l=c=>o({className:c,parseClassName:s})}return l},Ij=t=>{const a=new Map;return t.orderSensitiveModifiers.forEach((o,l)=>{a.set(o,1e6+l)}),o=>{const l=[];let s=[];for(let c=0;c<o.length;c++){const f=o[c],d=f[0]==="[",p=a.has(f);d||p?(s.length>0&&(s.sort(),l.push(...s),s=[]),l.push(f)):s.push(f)}return s.length>0&&(s.sort(),l.push(...s)),l}},Gj=t=>({cache:Bj(t.cacheSize),parseClassName:Yj(t),sortModifiers:Ij(t),...Oj(t)}),Vj=/\s+/,qj=(t,a)=>{const{parseClassName:o,getClassGroupId:l,getConflictingClassGroupIds:s,sortModifiers:c}=a,f=[],d=t.trim().split(Vj);let p="";for(let g=d.length-1;g>=0;g-=1){const y=d[g],{isExternal:b,modifiers:S,hasImportantModifier:_,baseClassName:M,maybePostfixModifierPosition:w}=o(y);if(b){p=y+(p.length>0?" "+p:p);continue}let E=!!w,T=l(E?M.substring(0,w):M);if(!T){if(!E){p=y+(p.length>0?" "+p:p);continue}if(T=l(M),!T){p=y+(p.length>0?" "+p:p);continue}E=!1}const k=S.length===0?"":S.length===1?S[0]:c(S).join(":"),D=_?k+Nm:k,j=D+T;if(f.indexOf(j)>-1)continue;f.push(j);const R=s(T,E);for(let U=0;U<R.length;++U){const Y=R[U];f.push(D+Y)}p=y+(p.length>0?" "+p:p)}return p},Wj=(...t)=>{let a=0,o,l,s="";for(;a<t.length;)(o=t[a++])&&(l=jS(o))&&(s&&(s+=" "),s+=l);return s},jS=t=>{if(typeof t=="string")return t;let a,o="";for(let l=0;l<t.length;l++)t[l]&&(a=jS(t[l]))&&(o&&(o+=" "),o+=a);return o},Fj=(t,...a)=>{let o,l,s,c;const f=p=>{const g=a.reduce((y,b)=>b(y),t());return o=Gj(g),l=o.cache.get,s=o.cache.set,c=d,d(p)},d=p=>{const g=l(p);if(g)return g;const y=qj(p,o);return s(p,y),y};return c=f,(...p)=>c(Wj(...p))},$j=[],wt=t=>{const a=o=>o[t]||$j;return a.isThemeGetter=!0,a},RS=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,AS=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Kj=/^\d+\/\d+$/,Xj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zj=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Qj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Jj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,eR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wo=t=>Kj.test(t),Re=t=>!!t&&!Number.isNaN(Number(t)),ar=t=>!!t&&Number.isInteger(Number(t)),Wf=t=>t.endsWith("%")&&Re(t.slice(0,-1)),Ea=t=>Xj.test(t),tR=()=>!0,nR=t=>Zj.test(t)&&!Qj.test(t),zS=()=>!1,aR=t=>Jj.test(t),rR=t=>eR.test(t),oR=t=>!ve(t)&&!ye(t),lR=t=>fl(t,PS,zS),ve=t=>RS.test(t),Pr=t=>fl(t,BS,nR),Ff=t=>fl(t,dR,Re),jb=t=>fl(t,US,zS),iR=t=>fl(t,LS,rR),fc=t=>fl(t,HS,aR),ye=t=>AS.test(t),fi=t=>ml(t,BS),sR=t=>ml(t,fR),Rb=t=>ml(t,US),cR=t=>ml(t,PS),uR=t=>ml(t,LS),mc=t=>ml(t,HS,!0),fl=(t,a,o)=>{const l=RS.exec(t);return l?l[1]?a(l[1]):o(l[2]):!1},ml=(t,a,o=!1)=>{const l=AS.exec(t);return l?l[1]?a(l[1]):o:!1},US=t=>t==="position"||t==="percentage",LS=t=>t==="image"||t==="url",PS=t=>t==="length"||t==="size"||t==="bg-size",BS=t=>t==="length",dR=t=>t==="number",fR=t=>t==="family-name",HS=t=>t==="shadow",mR=()=>{const t=wt("color"),a=wt("font"),o=wt("text"),l=wt("font-weight"),s=wt("tracking"),c=wt("leading"),f=wt("breakpoint"),d=wt("container"),p=wt("spacing"),g=wt("radius"),y=wt("shadow"),b=wt("inset-shadow"),S=wt("text-shadow"),_=wt("drop-shadow"),M=wt("blur"),w=wt("perspective"),E=wt("aspect"),T=wt("ease"),k=wt("animate"),D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...j(),ye,ve],U=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto","contain","none"],H=()=>[ye,ve,p],ie=()=>[Wo,"full","auto",...H()],oe=()=>[ar,"none","subgrid",ye,ve],O=()=>["auto",{span:["full",ar,ye,ve]},ar,ye,ve],J=()=>[ar,"auto",ye,ve],le=()=>["auto","min","max","fr",ye,ve],ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...H()],I=()=>[Wo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],z=()=>[t,ye,ve],F=()=>[...j(),Rb,jb,{position:[ye,ve]}],ce=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ue=()=>["auto","cover","contain",cR,lR,{size:[ye,ve]}],N=()=>[Wf,fi,Pr],B=()=>["","none","full",g,ye,ve],$=()=>["",Re,fi,Pr],Q=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>[Re,Wf,Rb,jb],de=()=>["","none",M,ye,ve],xe=()=>["none",Re,ye,ve],pe=()=>["none",Re,ye,ve],De=()=>[Re,ye,ve],Ue=()=>[Wo,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ea],breakpoint:[Ea],color:[tR],container:[Ea],"drop-shadow":[Ea],ease:["in","out","in-out"],font:[oR],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ea],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ea],shadow:[Ea],spacing:["px",Re],text:[Ea],"text-shadow":[Ea],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Wo,ve,ye,E]}],container:["container"],columns:[{columns:[Re,ve,ye,d]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:R()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ie()}],"inset-x":[{"inset-x":ie()}],"inset-y":[{"inset-y":ie()}],start:[{start:ie()}],end:[{end:ie()}],top:[{top:ie()}],right:[{right:ie()}],bottom:[{bottom:ie()}],left:[{left:ie()}],visibility:["visible","invisible","collapse"],z:[{z:[ar,"auto",ye,ve]}],basis:[{basis:[Wo,"full","auto",d,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Re,Wo,"auto","initial","none",ve]}],grow:[{grow:["",Re,ye,ve]}],shrink:[{shrink:["",Re,ye,ve]}],order:[{order:[ar,"first","last","none",ye,ve]}],"grid-cols":[{"grid-cols":oe()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":oe()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:H()}],px:[{px:H()}],py:[{py:H()}],ps:[{ps:H()}],pe:[{pe:H()}],pt:[{pt:H()}],pr:[{pr:H()}],pb:[{pb:H()}],pl:[{pl:H()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:I()}],w:[{w:[d,"screen",...I()]}],"min-w":[{"min-w":[d,"screen","none",...I()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[f]},...I()]}],h:[{h:["screen","lh",...I()]}],"min-h":[{"min-h":["screen","lh","none",...I()]}],"max-h":[{"max-h":["screen","lh",...I()]}],"font-size":[{text:["base",o,fi,Pr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,ye,Ff]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Wf,ve]}],"font-family":[{font:[sR,ve,a]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,ye,ve]}],"line-clamp":[{"line-clamp":[Re,"none",ye,Ff]}],leading:[{leading:[c,...H()]}],"list-image":[{"list-image":["none",ye,ve]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ye,ve]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:z()}],"text-color":[{text:z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:[Re,"from-font","auto",ye,Pr]}],"text-decoration-color":[{decoration:z()}],"underline-offset":[{"underline-offset":[Re,"auto",ye,ve]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye,ve]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ye,ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:ce()}],"bg-size":[{bg:ue()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ar,ye,ve],radial:["",ye,ve],conic:[ar,ye,ve]},uR,iR]}],"bg-color":[{bg:z()}],"gradient-from-pos":[{from:N()}],"gradient-via-pos":[{via:N()}],"gradient-to-pos":[{to:N()}],"gradient-from":[{from:z()}],"gradient-via":[{via:z()}],"gradient-to":[{to:z()}],rounded:[{rounded:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Q(),"hidden","none"]}],"divide-style":[{divide:[...Q(),"hidden","none"]}],"border-color":[{border:z()}],"border-color-x":[{"border-x":z()}],"border-color-y":[{"border-y":z()}],"border-color-s":[{"border-s":z()}],"border-color-e":[{"border-e":z()}],"border-color-t":[{"border-t":z()}],"border-color-r":[{"border-r":z()}],"border-color-b":[{"border-b":z()}],"border-color-l":[{"border-l":z()}],"divide-color":[{divide:z()}],"outline-style":[{outline:[...Q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Re,ye,ve]}],"outline-w":[{outline:["",Re,fi,Pr]}],"outline-color":[{outline:z()}],shadow:[{shadow:["","none",y,mc,fc]}],"shadow-color":[{shadow:z()}],"inset-shadow":[{"inset-shadow":["none",b,mc,fc]}],"inset-shadow-color":[{"inset-shadow":z()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:z()}],"ring-offset-w":[{"ring-offset":[Re,Pr]}],"ring-offset-color":[{"ring-offset":z()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":z()}],"text-shadow":[{"text-shadow":["none",S,mc,fc]}],"text-shadow-color":[{"text-shadow":z()}],opacity:[{opacity:[Re,ye,ve]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Re]}],"mask-image-linear-from-pos":[{"mask-linear-from":X()}],"mask-image-linear-to-pos":[{"mask-linear-to":X()}],"mask-image-linear-from-color":[{"mask-linear-from":z()}],"mask-image-linear-to-color":[{"mask-linear-to":z()}],"mask-image-t-from-pos":[{"mask-t-from":X()}],"mask-image-t-to-pos":[{"mask-t-to":X()}],"mask-image-t-from-color":[{"mask-t-from":z()}],"mask-image-t-to-color":[{"mask-t-to":z()}],"mask-image-r-from-pos":[{"mask-r-from":X()}],"mask-image-r-to-pos":[{"mask-r-to":X()}],"mask-image-r-from-color":[{"mask-r-from":z()}],"mask-image-r-to-color":[{"mask-r-to":z()}],"mask-image-b-from-pos":[{"mask-b-from":X()}],"mask-image-b-to-pos":[{"mask-b-to":X()}],"mask-image-b-from-color":[{"mask-b-from":z()}],"mask-image-b-to-color":[{"mask-b-to":z()}],"mask-image-l-from-pos":[{"mask-l-from":X()}],"mask-image-l-to-pos":[{"mask-l-to":X()}],"mask-image-l-from-color":[{"mask-l-from":z()}],"mask-image-l-to-color":[{"mask-l-to":z()}],"mask-image-x-from-pos":[{"mask-x-from":X()}],"mask-image-x-to-pos":[{"mask-x-to":X()}],"mask-image-x-from-color":[{"mask-x-from":z()}],"mask-image-x-to-color":[{"mask-x-to":z()}],"mask-image-y-from-pos":[{"mask-y-from":X()}],"mask-image-y-to-pos":[{"mask-y-to":X()}],"mask-image-y-from-color":[{"mask-y-from":z()}],"mask-image-y-to-color":[{"mask-y-to":z()}],"mask-image-radial":[{"mask-radial":[ye,ve]}],"mask-image-radial-from-pos":[{"mask-radial-from":X()}],"mask-image-radial-to-pos":[{"mask-radial-to":X()}],"mask-image-radial-from-color":[{"mask-radial-from":z()}],"mask-image-radial-to-color":[{"mask-radial-to":z()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":j()}],"mask-image-conic-pos":[{"mask-conic":[Re]}],"mask-image-conic-from-pos":[{"mask-conic-from":X()}],"mask-image-conic-to-pos":[{"mask-conic-to":X()}],"mask-image-conic-from-color":[{"mask-conic-from":z()}],"mask-image-conic-to-color":[{"mask-conic-to":z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:ce()}],"mask-size":[{mask:ue()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ye,ve]}],filter:[{filter:["","none",ye,ve]}],blur:[{blur:de()}],brightness:[{brightness:[Re,ye,ve]}],contrast:[{contrast:[Re,ye,ve]}],"drop-shadow":[{"drop-shadow":["","none",_,mc,fc]}],"drop-shadow-color":[{"drop-shadow":z()}],grayscale:[{grayscale:["",Re,ye,ve]}],"hue-rotate":[{"hue-rotate":[Re,ye,ve]}],invert:[{invert:["",Re,ye,ve]}],saturate:[{saturate:[Re,ye,ve]}],sepia:[{sepia:["",Re,ye,ve]}],"backdrop-filter":[{"backdrop-filter":["","none",ye,ve]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[Re,ye,ve]}],"backdrop-contrast":[{"backdrop-contrast":[Re,ye,ve]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Re,ye,ve]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Re,ye,ve]}],"backdrop-invert":[{"backdrop-invert":["",Re,ye,ve]}],"backdrop-opacity":[{"backdrop-opacity":[Re,ye,ve]}],"backdrop-saturate":[{"backdrop-saturate":[Re,ye,ve]}],"backdrop-sepia":[{"backdrop-sepia":["",Re,ye,ve]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ye,ve]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Re,"initial",ye,ve]}],ease:[{ease:["linear","initial",T,ye,ve]}],delay:[{delay:[Re,ye,ve]}],animate:[{animate:["none",k,ye,ve]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,ye,ve]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:xe()}],"rotate-x":[{"rotate-x":xe()}],"rotate-y":[{"rotate-y":xe()}],"rotate-z":[{"rotate-z":xe()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":["scale-3d"],skew:[{skew:De()}],"skew-x":[{"skew-x":De()}],"skew-y":[{"skew-y":De()}],transform:[{transform:[ye,ve,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ue()}],"translate-x":[{"translate-x":Ue()}],"translate-y":[{"translate-y":Ue()}],"translate-z":[{"translate-z":Ue()}],"translate-none":["translate-none"],accent:[{accent:z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:z()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ye,ve]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ye,ve]}],fill:[{fill:["none",...z()]}],"stroke-w":[{stroke:[Re,fi,Pr,Ff]}],stroke:[{stroke:["none",...z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},pR=Fj(mR);function te(...t){return pR(Tx(t))}const Tm=fr("focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-md border border-transparent bg-clip-padding text-xs/relaxed font-medium focus-visible:ring-2 aria-invalid:ring-2 [&_svg:not([class*='size-'])]:size-4 inline-flex items-center justify-center whitespace-nowrap transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none group/button select-none",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border dark:bg-input/30 hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground",destructive:"bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-7 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",xs:"h-5 gap-1 rounded-sm px-2 text-[0.625rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-2.5",sm:"h-6 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",lg:"h-8 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-4",icon:"size-7 [&_svg:not([class*='size-'])]:size-3.5","icon-xs":"size-5 rounded-sm [&_svg:not([class*='size-'])]:size-2.5","icon-sm":"size-6 [&_svg:not([class*='size-'])]:size-3","icon-lg":"size-8 [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default",size:"default"}});function ct({className:t,variant:a="default",size:o="default",asChild:l=!1,...s}){const c=l?Uc:"button";return h.jsx(c,{"data-slot":"button","data-variant":a,"data-size":o,className:te(Tm({variant:a,size:o,className:t})),...s})}function YS({className:t,orientation:a="horizontal",...o}){return h.jsx(nj,{"data-slot":"tabs","data-orientation":a,className:te("gap-2 group/tabs flex data-horizontal:flex-col",t),...o})}const hR=fr("rounded-lg p-[3px] group-data-horizontal/tabs:h-8 data-[variant=line]:rounded-none group/tabs-list text-muted-foreground inline-flex w-fit items-center justify-center group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function IS({className:t,variant:a="default",...o}){return h.jsx(aj,{"data-slot":"tabs-list","data-variant":a,className:te(hR({variant:a}),t),...o})}function km({className:t,...a}){return h.jsx(rj,{"data-slot":"tabs-trigger",className:te("gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-xs font-medium group-data-vertical/tabs:py-[calc(--spacing(1.25))] [&_svg:not([class*='size-'])]:size-3.5 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center whitespace-nowrap transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background dark:data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 data-active:text-foreground","after:bg-foreground after:absolute after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",t),...a})}function Om({className:t,...a}){return h.jsx(oj,{"data-slot":"tabs-content",className:te("text-xs/relaxed flex-1 outline-none",t),...a})}function gR(t){const a=[];let o=0;const l=t.length,s=()=>t[o],c=()=>o<l?t[o++]:"",f=d=>{let p="";for(;o<l&&d(t[o]);)p+=c();return p};for(;o<l;){const d=s();if(d==='"'){let g=c();for(;o<l;){const S=c();if(g+=S,S==="\\")g+=c();else if(S==='"')break}let y=o;for(;y<l&&(t[y]===" "||t[y]===" "||t[y]===`
|
|
54
|
+
`||t[y]==="\r");)y++;const b=y<l&&t[y]===":";a.push({type:b?"key":"string",value:g});continue}if(d===" "||d===" "||d===`
|
|
55
|
+
`||d==="\r"){a.push({type:"text",value:f(g=>g===" "||g===" "||g===`
|
|
56
|
+
`||g==="\r")});continue}if(d==="{"||d==="}"||d==="["||d==="]"||d===":"||d===","){a.push({type:"punctuation",value:c()});continue}const p=t.slice(o).match(/^-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/);if(p){a.push({type:"number",value:p[0]}),o+=p[0].length;continue}if(t.slice(o,o+4)==="true"){a.push({type:"boolean",value:"true"}),o+=4;continue}if(t.slice(o,o+5)==="false"){a.push({type:"boolean",value:"false"}),o+=5;continue}if(t.slice(o,o+4)==="null"){a.push({type:"null",value:"null"}),o+=4;continue}a.push({type:"text",value:c()})}return a}function vR(t){const a=t.trim();return a.startsWith("{")&&a.endsWith("}")||a.startsWith("[")&&a.endsWith("]")}function Ep({children:t,className:a}){const o=v.useMemo(()=>{if(!vR(t))return null;try{return gR(t)}catch{return null}},[t]);return o===null?h.jsx("span",{className:a,children:t}):h.jsx("code",{className:a,"data-json-highlight":!0,children:o.map((l,s)=>h.jsx("span",{"data-json-token":l.type,children:l.value},s))})}const yR=v.forwardRef(function({value:a="",invalid:o,className:l,...s},c){const f=v.useRef(null),d=v.useRef(null),p=v.useCallback(()=>{const y=d.current,b=f.current;y&&b&&(b.scrollTop=y.scrollTop,b.scrollLeft=y.scrollLeft)},[]),g=v.useCallback(y=>{d.current=y,typeof c=="function"?c(y):c&&(c.current=y)},[c]);return h.jsxs("div",{className:"relative min-h-20 w-full",children:[h.jsx("pre",{ref:f,"aria-hidden":!0,className:"pointer-events-none absolute inset-0 overflow-auto whitespace-pre-wrap wrap-break-word rounded-md border border-transparent px-2 py-1.5 font-mono text-xs",style:{margin:0},children:h.jsx(Ep,{className:"block min-h-full",children:String(a)})}),h.jsx("textarea",{ref:g,value:a,onScroll:p,className:`absolute inset-0 min-h-full w-full resize-none overflow-auto rounded-md border bg-transparent px-2 py-1.5 font-mono text-xs caret-foreground text-transparent placeholder:text-muted-foreground outline-none focus-visible:ring-1 ${o?"border-destructive focus-visible:ring-destructive":"border-border focus-visible:ring-ring"} ${l??""}`,spellCheck:!1,...s})]})});function Gr(t){const a=typeof t=="string"?t.trim():"",o=a.toLowerCase();return o==="date"?"Date":o==="datetime"||o==="date-time"||o==="date_time"?"DateTime":o==="string"?"String":o==="boolean"||o==="bool"?"Boolean":o==="number"||o==="integer"||o==="int"||o==="float"||o==="double"?"Number":o==="file"?"file":a||"String"}function _c(t){if(!t)return[];if(Array.isArray(t)&&t.length>0)return t;const a=t&&typeof t=="object"&&"properties"in t&&t.properties;return!a||typeof a!="object"?[]:Object.entries(a).map(([o,l])=>({name:o,type:l&&typeof l=="object"&&typeof l.type=="string"?l.type:"string",desc:l&&typeof l=="object"&&typeof l.description=="string"?l.description:void 0,enum:l&&typeof l=="object"&&Array.isArray(l.enum)?l.enum:void 0,required:l&&typeof l=="object"&&l.required===!0,accept:l&&typeof l=="object"&&typeof l.accept=="string"?l.accept:void 0,maxFiles:l&&typeof l=="object"&&typeof l.maxFiles=="number"?l.maxFiles:void 0}))}function bR(t){if(typeof t!="string")return[];const a=t.match(/:[^/]+/g);return a?[...new Set(a.map(o=>o.slice(1)))]:[]}function pc(t){if(!t||!Array.isArray(t)||t.length===0)return[];const a=t[0];return a&&typeof a=="object"&&Array.isArray(a.properties)?t.flatMap(o=>o.properties??[]):t.filter(o=>o!=null&&typeof o.name=="string")}function Ab(t){return!t||t.length===0?[]:t.map(a=>{const o=a.type==="enum"&&a.enum?.length?"String":Gr(a.type),l=o.toLowerCase()==="file";return{id:crypto.randomUUID(),key:a.name,value:"",type:o,enabled:!0,...l&&{fileAccept:a.accept,fileMaxFiles:a.maxFiles!=null&&a.maxFiles>=1?a.maxFiles:1}}})}function xR(t){const a=_c(t);if(a.length===0)return"{}";const o={};for(const l of a){const s=l.type==="enum"&&l.enum?.length?`enum (${l.enum.join(" | ")})`:Gr(l.type).toLowerCase();o[l.name]=s}return JSON.stringify(o,null,2)}const GS=[{id:"details",label:"Details",visible:"whenResponseTypesOrBody",Icon:rM},{id:"params",label:"Params",visible:"whenParams",Icon:Sx},{id:"body",label:"Body",visible:"whenBody",Icon:KE},{id:"headers",label:"Headers",visible:"always",Icon:nM},{id:"authorization",label:"Authorization",visible:"always",Icon:eM}];function Mp(t,a){return t.filter(o=>{const l=o.visible??"always";return l==="always"?!0:l==="whenParams"?a.hasParams:l==="whenBody"?a.hasBody:l==="whenResponseTypes"?a.hasResponseTypes:l==="whenResponseTypesOrBody"?a.hasResponseTypes||a.hasBody:!0})}function VS(t,a){return`${t}:${a}`}function SR(t,a){return Mp(t,a)[0]?.id??"headers"}const rr=fr("",{variants:{variant:{default:"bg-muted-foreground",primary:"bg-primary"}}}),Nn=({topRight:t=!0,bottomRight:a=!0,bottomLeft:o=!0,topLeft:l=!0,variant:s="default",className:c})=>h.jsxs("span",{className:te(c),children:[l&&h.jsx("span",{className:te("absolute -left-px -top-px z-10"),children:h.jsxs("span",{className:"relative",children:[h.jsx("span",{className:te("w-px h-[7.87px] rounded-full absolute top-0",rr({variant:s}))}),h.jsx("span",{className:te("w-[7.87px] h-px rounded-full absolute left-0",rr({variant:s}))})]})}),t&&h.jsx("span",{className:te("absolute -right-px -top-px z-10"),children:h.jsxs("span",{className:"relative",children:[h.jsx("span",{className:te("w-px h-[7.87px] rounded-full absolute top-0",rr({variant:s}))}),h.jsx("span",{className:te("w-[7.87px] h-px rounded-full absolute -left-[7px]",rr({variant:s}))})]})}),o&&h.jsx("span",{className:te("absolute -left-px -bottom-px z-10"),children:h.jsxs("span",{className:"relative",children:[h.jsx("span",{className:te("w-px h-[7.87px] rounded-full absolute -top-[7px]",rr({variant:s}))}),h.jsx("span",{className:te("w-[7.87px] h-px rounded-full absolute left-0",rr({variant:s}))})]})}),a&&h.jsx("span",{className:te("absolute -right-px -bottom-px z-10"),children:h.jsxs("span",{className:"relative",children:[h.jsx("span",{className:te("w-px h-[7.87px] rounded-full absolute -top-[7px]",rr({variant:s}))}),h.jsx("span",{className:te("w-[7.87px] h-px rounded-full absolute -left-[7px]",rr({variant:s}))})]})})]});function Dm(t,a,o,l,s){const c=new Set(o),f=new Set(l);let d=a;const p=[];for(const S of s){if(!S.enabled||S.key.trim()==="")continue;const _=S.value.trim();if(c.has(S.key)){if(_==="")continue;d=d.replace(new RegExp(`:${S.key}(?=/|$)`),encodeURIComponent(_))}else if(f.has(S.key)){const M=encodeURIComponent(_);p.push(`${encodeURIComponent(S.key)}=${M}`)}}const g=t.replace(/\/$/,""),y=d.startsWith("/")?d:`/${d}`,b=`${g}${y}`;return p.length?`${b}?${p.join("&")}`:b}function qS(t,a,o,l="application/json"){if(!["POST","PUT","PATCH"].includes(t.toUpperCase()))return;if(a.some(p=>p.enabled&&p.key.trim()!==""&&(p.type||"").toLowerCase()==="file"&&(p.file||p.files&&p.files.length>0))||l==="multipart/form-data"){const p=new FormData;for(const g of a)if(!(!g.enabled||g.key.trim()===""))if((g.type||"").toLowerCase()==="file")if(g.files?.length)for(const y of g.files)p.append(g.key,y);else g.file&&p.append(g.key,g.file);else p.append(g.key,g.value);return p}const d={};for(const p of a){if(!p.enabled||p.key.trim()==="")continue;const g=(p.type||"").toLowerCase();if(g!=="file")if(g==="array")try{const y=JSON.parse(p.value||"[]");d[p.key]=Array.isArray(y)?y:[p.value]}catch{d[p.key]=[]}else if(g==="object")try{const y=JSON.parse(p.value||"{}");d[p.key]=typeof y=="object"&&y!==null?y:{}}catch{d[p.key]={}}else d[p.key]=p.value}if(Object.keys(d).length!==0)return JSON.stringify(d)}function WS(t){const a={};for(const o of t)!o.enabled||o.key.trim()===""||(a[o.key.trim()]=o.value);return a}function wR(t,a,o,l,s,c,f,d,p,g,y="application/json"){const b=Dm(t,a,l,s,c),S=WS(f);p.type==="bearer"&&p.bearerToken?.trim()&&(S.Authorization=`Bearer ${p.bearerToken.trim()}`),p.type==="basic"&&p.username!=null&&p.password!=null&&(S.Authorization=`Basic ${btoa(`${p.username}:${p.password}`)}`),p.type==="apiKey"&&p.apiKeyName?.trim()&&p.apiKeyValue!=null&&(S[p.apiKeyName.trim()]=p.apiKeyValue);const _=qS(o,d,g,y),M=E=>E.replace(/'/g,`'"'"'`),w=["curl","-X",o.toUpperCase(),M(b)];for(const[E,T]of Object.entries(S))w.push("-H",`'${E}: ${M(T)}'`);return typeof _=="string"&&_!==""&&w.push("--data-raw",`'${M(_)}'`),w.join(" ")}function _R({routeKey:t,response:a,loading:o,responseTab:l,onResponseTabChange:s}){const[c,f]=v.useState("json"),[d,p]=v.useState(!1),g=a?.headers?Object.entries(a.headers):[],y=v.useCallback(async()=>{if(!a)return;const b=l==="response"?a.body||"(empty)":g.map(([S,_])=>`${S}: ${_}`).join(`
|
|
57
|
+
`);try{await navigator.clipboard.writeText(b),p(!0),setTimeout(()=>p(!1),2e3)}catch{}},[a,l,g]);return h.jsx("section",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:h.jsxs(YS,{value:l,onValueChange:b=>s(b),className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:[h.jsx("div",{className:"text-muted-foreground flex h-9 shrink-0 w-full items-center justify-between gap-3 border-b border-border p-px pr-[2px]",children:h.jsxs(IS,{className:"h-auto w-full justify-between rounded-none border-0 bg-transparent p-0 px-4 relative",children:[h.jsxs("div",{className:"flex items-center justify-start gap-3",children:[h.jsx(km,{value:"response",className:"tab-item",children:"Response"}),h.jsx(km,{value:"headers",className:"tab-item",children:"Headers"})]}),h.jsx(Nn,{}),h.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[a&&a.status!=null&&h.jsxs("span",{className:"font-mono text-xs text-foreground",children:[a.status," ",a.statusText]}),a?.durationMs!=null&&h.jsxs("span",{className:"font-mono text-xs",children:[a.durationMs," ms"]}),!a&&!o&&h.jsx("span",{className:"text-xs",children:"—"}),a&&!o&&h.jsxs(ct,{variant:"outline",size:"sm",className:"h-6 gap-1 px-2 text-xs",onClick:y,children:[h.jsx(_x,{className:"size-3"}),d?"Copied":"Copy"]}),h.jsxs("div",{className:"flex gap-0.5 rounded-md border border-border bg-muted/50 p-0.5",children:[h.jsx(ct,{variant:c==="json"?"secondary":"ghost",size:"sm",className:"h-6 px-2 text-xs",onClick:()=>f("json"),children:"JSON"}),h.jsx(ct,{variant:c==="html"?"secondary":"ghost",size:"sm",className:"h-6 px-2 text-xs",onClick:()=>f("html"),children:"HTML"}),h.jsx(ct,{variant:c==="raw"?"secondary":"ghost",size:"sm",className:"h-6 px-2 text-xs",onClick:()=>f("raw"),children:"Raw"})]})]})]})}),h.jsx(Om,{value:"response",className:"mt-0 flex min-h-0 flex-1 flex-col overflow-hidden data-[state=inactive]:hidden px-2",children:h.jsxs("div",{className:"bg-muted/30 flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden rounded-md border border-dashed border-border",children:[!a&&!o&&h.jsx("div",{className:"flex flex-1 items-center justify-center p-8 text-center text-muted-foreground text-xs",children:"Click Send above to run the request"}),o&&h.jsxs("div",{className:"flex flex-1 items-center justify-center gap-2 p-8 text-muted-foreground text-xs",children:[h.jsx(Ir,{className:"size-4 animate-spin"}),"Sending…"]}),a&&!o&&h.jsxs("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden p-3",children:[a.error&&h.jsx("p",{className:"text-destructive mb-2 text-xs font-medium",children:a.error}),c==="json"&&(()=>{const b=a.body||"(empty)",S=b.split(`
|
|
58
|
+
`);return h.jsxs("div",{className:"bg-background/80 flex min-h-0 flex-1 flex-col rounded border border-border font-mono text-xs leading-7 relative",children:[h.jsx(Nn,{}),h.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 overflow-auto relative bg-muted/30",children:[h.jsx("div",{className:"shrink-0 select-none py-2 pl-2 pr-3 text-right text-muted-foreground leading-7 min-w-10 h-full","aria-hidden":!0,children:S.map((_,M)=>h.jsx("div",{children:M+1},M))}),h.jsx("pre",{className:"min-w-0 flex-1 whitespace-pre-wrap break-all leading-7",children:h.jsx(Ep,{className:"block border-l bg-background py-2",children:b})})]})]})})(),c==="html"&&h.jsx("div",{dangerouslySetInnerHTML:{__html:a.body||""}}),c==="raw"&&h.jsx("pre",{className:"bg-background/80 max-h-full min-h-0 flex-1 overflow-auto rounded border border-border p-2 font-mono text-xs whitespace-pre-wrap break-all",children:a.body||"(empty)"})]})]})}),h.jsx(Om,{value:"headers",className:"mt-0 flex min-h-0 flex-1 flex-col overflow-auto data-[state=inactive]:hidden px-2",children:h.jsxs("div",{className:"bg-muted/30 flex min-h-[120px] min-w-0 flex-1 flex-col overflow-hidden rounded-md border border-dashed border-border",children:[!a&&!o&&h.jsx("div",{className:"flex flex-1 items-center justify-center p-8 text-center text-muted-foreground text-xs",children:"Click Send above to see response headers"}),o&&h.jsxs("div",{className:"flex flex-1 items-center justify-center gap-2 p-8 text-muted-foreground text-xs",children:[h.jsx(Ir,{className:"size-4 animate-spin"}),"Sending…"]}),a&&!o&&h.jsx("div",{className:"flex flex-1 flex-col overflow-auto p-0",children:g.length===0?h.jsx("div",{className:"text-muted-foreground py-6 text-center text-xs",children:"No headers"}):h.jsx("ul",{className:"divide-y divide-border/50",children:g.map(([b,S])=>h.jsxs("li",{className:"grid grid-cols-[minmax(0,auto)_1fr] items-center gap-4 px-4 py-3 text-xs text-foreground even:bg-background/5",children:[h.jsx("span",{className:"font-mono text-muted-foreground",children:b}),h.jsx("span",{className:"min-w-0 break-all font-mono",children:S})]},b))})})]})})]})})}function CR(){return h.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 p-8 text-center text-muted-foreground",children:[h.jsx(ZE,{className:"size-12 opacity-40"}),h.jsx("p",{className:"text-sm font-medium",children:"Select a route"}),h.jsx("p",{className:"text-xs",children:"Choose an API endpoint from the list to view its details"})]})}const ER=fr("h-5 gap-1 rounded-full border border-transparent px-2 py-0.5 text-[0.625rem] font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-2.5! inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive overflow-hidden group/badge",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground bg-input/20 dark:bg-input/30",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function MR({className:t,variant:a="default",asChild:o=!1,...l}){const s=o?Uc:"span";return h.jsx(s,{"data-slot":"badge","data-variant":a,className:te(ER({variant:a}),t),...l})}function NR({route:t,onSend:a,sendLoading:o=!1,getCurlRequest:l,fetchUrl:s}){const[c,f]=v.useState(!1),d=typeof t.method=="string"?t.method:String(t.method),p=typeof t.path=="string"&&t.path||"/",g=v.useCallback(async()=>{if(!l)return;const y=l();try{await navigator.clipboard.writeText(y),f(!0),setTimeout(()=>f(!1),2e3)}catch{}},[l]);return h.jsx("div",{className:"shrink-0 border-b border-border p-px pr-[2px]",children:h.jsxs("div",{className:"relative px-6 py-4",children:[h.jsx(Nn,{}),h.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 ",children:[h.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[h.jsx(MR,{variant:"secondary",className:"font-mono text-xs",children:d}),h.jsx("code",{className:"text-foreground font-mono text-sm font-medium",children:p})]}),s&&h.jsx("code",{className:"text-muted-foreground block truncate font-mono text-xs",title:s,children:s})]}),h.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[l&&h.jsxs(ct,{size:"sm",variant:"outline",className:"h-8 gap-1.5 text-xs",onClick:g,disabled:o,children:[h.jsx(_x,{className:"size-3.5"}),c?"Copied":"Copy cURL"]}),a&&h.jsxs(ct,{size:"sm",variant:"default",className:"h-8 gap-1.5 text-xs",onClick:a,disabled:o,children:[o?h.jsx(Ir,{className:"size-3.5 animate-spin"}):h.jsx(vM,{className:"size-3.5"}),"Send"]})]})]}),t.description&&typeof t.description=="string"&&h.jsx("p",{className:"text-muted-foreground mt-1.5 text-xs leading-relaxed",children:t.description})]})})}function TR(t,a){const o=getComputedStyle(t),l=parseFloat(o.fontSize);return a*l}function kR(t,a){const o=getComputedStyle(t.ownerDocument.body),l=parseFloat(o.fontSize);return a*l}function OR(t){return t/100*window.innerHeight}function DR(t){return t/100*window.innerWidth}function jR(t){switch(typeof t){case"number":return[t,"px"];case"string":{const a=parseFloat(t);return t.endsWith("%")?[a,"%"]:t.endsWith("px")?[a,"px"]:t.endsWith("rem")?[a,"rem"]:t.endsWith("em")?[a,"em"]:t.endsWith("vh")?[a,"vh"]:t.endsWith("vw")?[a,"vw"]:[a,"%"]}}}function hc({groupSize:t,panelElement:a,styleProp:o}){let l;const[s,c]=jR(o);switch(c){case"%":{l=s/100*t;break}case"px":{l=s;break}case"rem":{l=kR(a,s);break}case"em":{l=TR(a,s);break}case"vh":{l=OR(s);break}case"vw":{l=DR(s);break}}return l}function Un(t){return parseFloat(t.toFixed(3))}function ol({group:t}){const{orientation:a,panels:o}=t;return o.reduce((l,s)=>(l+=a==="horizontal"?s.element.offsetWidth:s.element.offsetHeight,l),0)}function jm(t){const{panels:a}=t,o=ol({group:t});return o===0?a.map(l=>({collapsedSize:0,collapsible:l.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:l.panelConstraints.disabled,minSize:0,maxSize:100,panelId:l.id})):a.map(l=>{const{element:s,panelConstraints:c}=l;let f=0;if(c.collapsedSize!==void 0){const y=hc({groupSize:o,panelElement:s,styleProp:c.collapsedSize});f=Un(y/o*100)}let d;if(c.defaultSize!==void 0){const y=hc({groupSize:o,panelElement:s,styleProp:c.defaultSize});d=Un(y/o*100)}let p=0;if(c.minSize!==void 0){const y=hc({groupSize:o,panelElement:s,styleProp:c.minSize});p=Un(y/o*100)}let g=100;if(c.maxSize!==void 0){const y=hc({groupSize:o,panelElement:s,styleProp:c.maxSize});g=Un(y/o*100)}return{collapsedSize:f,collapsible:c.collapsible===!0,defaultSize:d,disabled:c.disabled,minSize:p,maxSize:g,panelId:l.id}})}function Qe(t,a="Assertion error"){if(!t)throw Error(a)}function Rm(t,a){return Array.from(a).sort(t==="horizontal"?RR:AR)}function RR(t,a){const o=t.element.offsetLeft-a.element.offsetLeft;return o!==0?o:t.element.offsetWidth-a.element.offsetWidth}function AR(t,a){const o=t.element.offsetTop-a.element.offsetTop;return o!==0?o:t.element.offsetHeight-a.element.offsetHeight}function FS(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE}function $S(t,a){return{x:t.x>=a.left&&t.x<=a.right?0:Math.min(Math.abs(t.x-a.left),Math.abs(t.x-a.right)),y:t.y>=a.top&&t.y<=a.bottom?0:Math.min(Math.abs(t.y-a.top),Math.abs(t.y-a.bottom))}}function zR({orientation:t,rects:a,targetRect:o}){const l={x:o.x+o.width/2,y:o.y+o.height/2};let s,c=Number.MAX_VALUE;for(const f of a){const{x:d,y:p}=$S(l,f),g=t==="horizontal"?d:p;g<c&&(c=g,s=f)}return Qe(s,"No rect found"),s}let gc;function UR(){return gc===void 0&&(typeof matchMedia=="function"?gc=!!matchMedia("(pointer:coarse)").matches:gc=!1),gc}function KS(t){const{element:a,orientation:o,panels:l,separators:s}=t,c=Rm(o,Array.from(a.children).filter(FS).map(M=>({element:M}))).map(({element:M})=>M),f=[];let d=!1,p=!1,g=-1,y=-1,b=0,S,_=[];{let M=-1;for(const w of c)w.hasAttribute("data-panel")&&(M++,w.ariaDisabled===null&&(b++,g===-1&&(g=M),y=M))}if(b>1){let M=-1;for(const w of c)if(w.hasAttribute("data-panel")){M++;const E=l.find(T=>T.element===w);if(E){if(S){const T=S.element.getBoundingClientRect(),k=w.getBoundingClientRect();let D;if(p){const j=o==="horizontal"?new DOMRect(T.right,T.top,0,T.height):new DOMRect(T.left,T.bottom,T.width,0),R=o==="horizontal"?new DOMRect(k.left,k.top,0,k.height):new DOMRect(k.left,k.top,k.width,0);switch(_.length){case 0:{D=[j,R];break}case 1:{const U=_[0],Y=zR({orientation:o,rects:[T,k],targetRect:U.element.getBoundingClientRect()});D=[U,Y===T?R:j];break}default:{D=_;break}}}else _.length?D=_:D=[o==="horizontal"?new DOMRect(T.right,k.top,k.left-T.right,k.height):new DOMRect(k.left,T.bottom,k.width,k.top-T.bottom)];for(const j of D){let R="width"in j?j:j.element.getBoundingClientRect();const U=UR()?t.resizeTargetMinimumSize.coarse:t.resizeTargetMinimumSize.fine;if(R.width<U){const H=U-R.width;R=new DOMRect(R.x-H/2,R.y,R.width+H,R.height)}if(R.height<U){const H=U-R.height;R=new DOMRect(R.x,R.y-H/2,R.width,R.height+H)}const Y=M<=g||M>y;!d&&!Y&&f.push({group:t,groupSize:ol({group:t}),panels:[S,E],separator:"width"in j?void 0:j,rect:R}),d=!1}}p=!1,S=E,_=[]}}else if(w.hasAttribute("data-separator")){w.ariaDisabled!==null&&(d=!0);const E=s.find(T=>T.element===w);E?_.push(E):(S=void 0,_=[])}else p=!0}return f}class LR{#e={};addListener(a,o){const l=this.#e[a];return l===void 0?this.#e[a]=[o]:l.includes(o)||l.push(o),()=>{this.removeListener(a,o)}}emit(a,o){const l=this.#e[a];if(l!==void 0)if(l.length===1)l[0].call(null,o);else{let s=!1,c=null;const f=Array.from(l);for(let d=0;d<f.length;d++){const p=f[d];try{p.call(null,o)}catch(g){c===null&&(s=!0,c=g)}}if(s)throw c}}removeAllListeners(){this.#e={}}removeListener(a,o){const l=this.#e[a];if(l!==void 0){const s=l.indexOf(o);s>=0&&l.splice(s,1)}}}function Yt(t,a,o=0){return Math.abs(Un(t)-Un(a))<=o}let Cn={cursorFlags:0,interactionState:{state:"inactive"},mountedGroups:new Map};const ka=new LR;function It(){return Cn}function Gt(t){const a=typeof t=="function"?t(Cn):t;if(Cn===a)return Cn;const o=Cn;return Cn={...Cn,...a},a.cursorFlags!==void 0&&ka.emit("cursorFlagsChange",Cn.cursorFlags),a.interactionState!==void 0&&ka.emit("interactionStateChange",Cn.interactionState),a.mountedGroups!==void 0&&(Cn.mountedGroups.forEach((l,s)=>{l.derivedPanelConstraints.forEach(c=>{if(c.collapsible){const{layout:f}=o.mountedGroups.get(s)??{};if(f){const d=Yt(c.collapsedSize,l.layout[c.panelId]),p=Yt(c.collapsedSize,f[c.panelId]);d&&!p&&(s.inMemoryLastExpandedPanelSizes[c.panelId]=f[c.panelId])}}})}),ka.emit("mountedGroupsChange",Cn.mountedGroups)),Cn}function PR(t,a,o){let l,s={x:1/0,y:1/0};for(const c of a){const f=$S(o,c.rect);switch(t){case"horizontal":{f.x<=s.x&&(l=c,s=f);break}case"vertical":{f.y<=s.y&&(l=c,s=f);break}}}return l?{distance:s,hitRegion:l}:void 0}function BR(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function HR(t,a){if(t===a)throw new Error("Cannot compare node with itself");const o={a:Lb(t),b:Lb(a)};let l;for(;o.a.at(-1)===o.b.at(-1);)l=o.a.pop(),o.b.pop();Qe(l,"Stacking order can only be calculated for elements with a common ancestor");const s={a:Ub(zb(o.a)),b:Ub(zb(o.b))};if(s.a===s.b){const c=l.childNodes,f={a:o.a.at(-1),b:o.b.at(-1)};let d=c.length;for(;d--;){const p=c[d];if(p===f.a)return 1;if(p===f.b)return-1}}return Math.sign(s.a-s.b)}const YR=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function IR(t){const a=getComputedStyle(XS(t)??t).display;return a==="flex"||a==="inline-flex"}function GR(t){const a=getComputedStyle(t);return!!(a.position==="fixed"||a.zIndex!=="auto"&&(a.position!=="static"||IR(t))||+a.opacity<1||"transform"in a&&a.transform!=="none"||"webkitTransform"in a&&a.webkitTransform!=="none"||"mixBlendMode"in a&&a.mixBlendMode!=="normal"||"filter"in a&&a.filter!=="none"||"webkitFilter"in a&&a.webkitFilter!=="none"||"isolation"in a&&a.isolation==="isolate"||YR.test(a.willChange)||a.webkitOverflowScrolling==="touch")}function zb(t){let a=t.length;for(;a--;){const o=t[a];if(Qe(o,"Missing node"),GR(o))return o}return null}function Ub(t){return t&&Number(getComputedStyle(t).zIndex)||0}function Lb(t){const a=[];for(;t;)a.push(t),t=XS(t);return a}function XS(t){const{parentNode:a}=t;return BR(a)?a.host:a}function VR(t,a){return t.x<a.x+a.width&&t.x+t.width>a.x&&t.y<a.y+a.height&&t.y+t.height>a.y}function qR({groupElement:t,hitRegion:a,pointerEventTarget:o}){if(!FS(o)||o.contains(t)||t.contains(o))return!0;if(HR(o,t)>0){let l=o;for(;l;){if(l.contains(t))return!0;if(VR(l.getBoundingClientRect(),a))return!1;l=l.parentElement}}return!0}function Np(t,a){const o=[];return a.forEach((l,s)=>{if(s.disabled)return;const c=KS(s),f=PR(s.orientation,c,{x:t.clientX,y:t.clientY});f&&f.distance.x<=0&&f.distance.y<=0&&qR({groupElement:s.element,hitRegion:f.hitRegion.rect,pointerEventTarget:t.target})&&o.push(f.hitRegion)}),o}function WR(t,a){if(t.length!==a.length)return!1;for(let o=0;o<t.length;o++)if(t[o]!=a[o])return!1;return!0}function $n(t,a){return Yt(t,a)?0:t>a?1:-1}function Jo({overrideDisabledPanels:t,panelConstraints:a,prevSize:o,size:l}){const{collapsedSize:s=0,collapsible:c,disabled:f,maxSize:d=100,minSize:p=0}=a;if(f&&!t)return o;if($n(l,p)<0)if(c){const g=(s+p)/2;$n(l,g)<0?l=s:l=p}else l=p;return l=Math.min(d,l),l=Un(l),l}function Di({delta:t,initialLayout:a,panelConstraints:o,pivotIndices:l,prevLayout:s,trigger:c}){if(Yt(t,0))return a;const f=c==="imperative-api",d=Object.values(a),p=Object.values(s),g=[...d],[y,b]=l;Qe(y!=null,"Invalid first pivot index"),Qe(b!=null,"Invalid second pivot index");let S=0;switch(c){case"keyboard":{{const w=t<0?b:y,E=o[w];Qe(E,`Panel constraints not found for index ${w}`);const{collapsedSize:T=0,collapsible:k,minSize:D=0}=E;if(k){const j=d[w];if(Qe(j!=null,`Previous layout not found for panel index ${w}`),Yt(j,T)){const R=D-j;$n(R,Math.abs(t))>0&&(t=t<0?0-R:R)}}}{const w=t<0?y:b,E=o[w];Qe(E,`No panel constraints found for index ${w}`);const{collapsedSize:T=0,collapsible:k,minSize:D=0}=E;if(k){const j=d[w];if(Qe(j!=null,`Previous layout not found for panel index ${w}`),Yt(j,D)){const R=j-T;$n(R,Math.abs(t))>0&&(t=t<0?0-R:R)}}}break}default:{const w=t<0?b:y,E=o[w];Qe(E,`Panel constraints not found for index ${w}`);const T=d[w],{collapsible:k,collapsedSize:D,minSize:j}=E;if(k&&$n(T,j)<0)if(t>0){const R=j-D,U=R/2,Y=T+t;$n(Y,j)<0&&(t=$n(t,U)<=0?0:R)}else{const R=j-D,U=100-R/2,Y=T-t;$n(Y,j)<0&&(t=$n(100+t,U)>0?0:-R)}break}}{const w=t<0?1:-1;let E=t<0?b:y,T=0;for(;;){const D=d[E];Qe(D!=null,`Previous layout not found for panel index ${E}`);const j=Jo({overrideDisabledPanels:f,panelConstraints:o[E],prevSize:D,size:100})-D;if(T+=j,E+=w,E<0||E>=o.length)break}const k=Math.min(Math.abs(t),Math.abs(T));t=t<0?0-k:k}{let w=t<0?y:b;for(;w>=0&&w<o.length;){const E=Math.abs(t)-Math.abs(S),T=d[w];Qe(T!=null,`Previous layout not found for panel index ${w}`);const k=T-E,D=Jo({overrideDisabledPanels:f,panelConstraints:o[w],prevSize:T,size:k});if(!Yt(T,D)&&(S+=T-D,g[w]=D,S.toFixed(3).localeCompare(Math.abs(t).toFixed(3),void 0,{numeric:!0})>=0))break;t<0?w--:w++}}if(WR(p,g))return s;{const w=t<0?b:y,E=d[w];Qe(E!=null,`Previous layout not found for panel index ${w}`);const T=E+S,k=Jo({overrideDisabledPanels:f,panelConstraints:o[w],prevSize:E,size:T});if(g[w]=k,!Yt(k,T)){let D=T-k,j=t<0?b:y;for(;j>=0&&j<o.length;){const R=g[j];Qe(R!=null,`Previous layout not found for panel index ${j}`);const U=R+D,Y=Jo({overrideDisabledPanels:f,panelConstraints:o[j],prevSize:R,size:U});if(Yt(R,Y)||(D-=Y-R,g[j]=Y),Yt(D,0))break;t>0?j--:j++}}}const _=Object.values(g).reduce((w,E)=>E+w,0);if(!Yt(_,100,.1))return s;const M=Object.keys(s);return g.reduce((w,E,T)=>(w[M[T]]=E,w),{})}function $r(t,a){if(Object.keys(t).length!==Object.keys(a).length)return!1;for(const o in t)if(a[o]===void 0||$n(t[o],a[o])!==0)return!1;return!0}function Kr({layout:t,panelConstraints:a}){const o=Object.values(t),l=[...o],s=l.reduce((d,p)=>d+p,0);if(l.length!==a.length)throw Error(`Invalid ${a.length} panel layout: ${l.map(d=>`${d}%`).join(", ")}`);if(!Yt(s,100)&&l.length>0)for(let d=0;d<a.length;d++){const p=l[d];Qe(p!=null,`No layout data found for index ${d}`);const g=100/s*p;l[d]=g}let c=0;for(let d=0;d<a.length;d++){const p=o[d];Qe(p!=null,`No layout data found for index ${d}`);const g=l[d];Qe(g!=null,`No layout data found for index ${d}`);const y=Jo({overrideDisabledPanels:!0,panelConstraints:a[d],prevSize:p,size:g});g!=y&&(c+=g-y,l[d]=y)}if(!Yt(c,0))for(let d=0;d<a.length;d++){const p=l[d];Qe(p!=null,`No layout data found for index ${d}`);const g=p+c,y=Jo({overrideDisabledPanels:!0,panelConstraints:a[d],prevSize:p,size:g});if(p!==y&&(c-=y-p,l[d]=y,Yt(c,0)))break}const f=Object.keys(t);return l.reduce((d,p,g)=>(d[f[g]]=p,d),{})}function ZS({groupId:t,panelId:a}){const o=()=>{const{mountedGroups:d}=It();for(const[p,{defaultLayoutDeferred:g,derivedPanelConstraints:y,layout:b,separatorToPanels:S}]of d)if(p.id===t)return{defaultLayoutDeferred:g,derivedPanelConstraints:y,group:p,layout:b,separatorToPanels:S};throw Error(`Group ${t} not found`)},l=()=>{const d=o().derivedPanelConstraints.find(p=>p.panelId===a);if(d!==void 0)return d;throw Error(`Panel constraints not found for Panel ${a}`)},s=()=>{const d=o().group.panels.find(p=>p.id===a);if(d!==void 0)return d;throw Error(`Layout not found for Panel ${a}`)},c=()=>{const d=o().layout[a];if(d!==void 0)return d;throw Error(`Layout not found for Panel ${a}`)},f=d=>{const p=c();if(d===p)return;const{defaultLayoutDeferred:g,derivedPanelConstraints:y,group:b,layout:S,separatorToPanels:_}=o(),M=b.panels.findIndex(k=>k.id===a),w=M===b.panels.length-1,E=Di({delta:w?p-d:d-p,initialLayout:S,panelConstraints:y,pivotIndices:w?[M-1,M]:[M,M+1],prevLayout:S,trigger:"imperative-api"}),T=Kr({layout:E,panelConstraints:y});$r(S,T)||Gt(k=>({mountedGroups:new Map(k.mountedGroups).set(b,{defaultLayoutDeferred:g,derivedPanelConstraints:y,layout:T,separatorToPanels:_})}))};return{collapse:()=>{const{collapsible:d,collapsedSize:p}=l(),{mutableValues:g}=s(),y=c();d&&y!==p&&(g.expandToSize=y,f(p))},expand:()=>{const{collapsible:d,collapsedSize:p,minSize:g}=l(),{mutableValues:y}=s(),b=c();if(d&&b===p){let S=y.expandToSize??g;S===0&&(S=1),f(S)}},getSize:()=>{const{group:d}=o(),p=c(),{element:g}=s(),y=d.orientation==="horizontal"?g.offsetWidth:g.offsetHeight;return{asPercentage:p,inPixels:y}},isCollapsed:()=>{const{collapsible:d,collapsedSize:p}=l(),g=c();return d&&Yt(p,g)},resize:d=>{if(c()!==d){let p;switch(typeof d){case"number":{const{group:g}=o(),y=ol({group:g});p=Un(d/y*100);break}case"string":{p=parseFloat(d);break}}f(p)}}}}function Pb(t){if(t.defaultPrevented)return;const{mountedGroups:a}=It();Np(t,a).forEach(o=>{if(o.separator){const l=o.panels.find(s=>s.panelConstraints.defaultSize!==void 0);if(l){const s=l.panelConstraints.defaultSize,c=ZS({groupId:o.group.id,panelId:l.id});c&&s!==void 0&&(c.resize(s),t.preventDefault())}}})}function Cc(t){const{mountedGroups:a}=It();for(const[o]of a)if(o.separators.some(l=>l.element===t))return o;throw Error("Could not find parent Group for separator element")}function QS({groupId:t}){const a=()=>{const{mountedGroups:o}=It();for(const[l,s]of o)if(l.id===t)return{group:l,...s};throw Error(`Could not find Group with id "${t}"`)};return{getLayout(){const{defaultLayoutDeferred:o,layout:l}=a();return o?{}:l},setLayout(o){const{defaultLayoutDeferred:l,derivedPanelConstraints:s,group:c,layout:f,separatorToPanels:d}=a(),p=Kr({layout:o,panelConstraints:s});if(l)return f;if(!$r(f,p)){Gt(y=>({mountedGroups:new Map(y.mountedGroups).set(c,{defaultLayoutDeferred:l,derivedPanelConstraints:s,layout:p,separatorToPanels:d})}));const g=c.panels.map(({id:y})=>y).join(",");c.inMemoryLayouts[g]=p}return p}}}function JS(t){const{mountedGroups:a}=It(),o=a.get(t);return Qe(o,`Mounted Group ${t.id} not found`),o}function Br(t,a){const o=Cc(t),l=JS(o),s=o.separators.find(y=>y.element===t);Qe(s,"Matching separator not found");const c=l.separatorToPanels.get(s);Qe(c,"Matching panels not found");const f=c.map(y=>o.panels.indexOf(y)),d=QS({groupId:o.id}).getLayout(),p=Di({delta:a,initialLayout:d,panelConstraints:l.derivedPanelConstraints,pivotIndices:f,prevLayout:d,trigger:"keyboard"}),g=Kr({layout:p,panelConstraints:l.derivedPanelConstraints});$r(d,g)||Gt(y=>({mountedGroups:new Map(y.mountedGroups).set(o,{defaultLayoutDeferred:l.defaultLayoutDeferred,derivedPanelConstraints:l.derivedPanelConstraints,layout:g,separatorToPanels:l.separatorToPanels})}))}function Bb(t){if(t.defaultPrevented)return;const a=t.currentTarget,o=Cc(a);if(!o.disabled)switch(t.key){case"ArrowDown":{t.preventDefault(),o.orientation==="vertical"&&Br(a,5);break}case"ArrowLeft":{t.preventDefault(),o.orientation==="horizontal"&&Br(a,-5);break}case"ArrowRight":{t.preventDefault(),o.orientation==="horizontal"&&Br(a,5);break}case"ArrowUp":{t.preventDefault(),o.orientation==="vertical"&&Br(a,-5);break}case"End":{t.preventDefault(),Br(a,100);break}case"Enter":{t.preventDefault();const l=Cc(a),{derivedPanelConstraints:s,layout:c,separatorToPanels:f}=JS(l),d=l.separators.find(b=>b.element===a);Qe(d,"Matching separator not found");const p=f.get(d);Qe(p,"Matching panels not found");const g=p[0],y=s.find(b=>b.panelId===g.id);if(Qe(y,"Panel metadata not found"),y.collapsible){const b=c[g.id],S=y.collapsedSize===b?l.inMemoryLastExpandedPanelSizes[g.id]??y.minSize:y.collapsedSize;Br(a,S-b)}break}case"F6":{t.preventDefault();const l=Cc(a).separators.map(f=>f.element),s=Array.from(l).findIndex(f=>f===t.currentTarget);Qe(s!==null,"Index not found");const c=t.shiftKey?s>0?s-1:l.length-1:s+1<l.length?s+1:0;l[c].focus();break}case"Home":{t.preventDefault(),Br(a,-100);break}}}function Hb(t){if(t.defaultPrevented||t.pointerType==="mouse"&&t.button>0)return;const{mountedGroups:a}=It(),o=Np(t,a),l=new Map;let s=!1;o.forEach(c=>{c.separator&&(s||(s=!0,c.separator.element.focus()));const f=a.get(c.group);f&&l.set(c.group,f.layout)}),Gt({interactionState:{hitRegions:o,initialLayoutMap:l,pointerDownAtPoint:{x:t.clientX,y:t.clientY},state:"active"}}),o.length&&t.preventDefault()}const FR=t=>t,$f=()=>{},ew=1,tw=2,nw=4,aw=8,Yb=3,Ib=12;let vc;function Gb(){return vc===void 0&&(vc=!1,typeof window<"u"&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(vc=!0)),vc}function $R({cursorFlags:t,groups:a,state:o}){let l=0,s=0;switch(o){case"active":case"hover":a.forEach(c=>{if(!c.disableCursor)switch(c.orientation){case"horizontal":{l++;break}case"vertical":{s++;break}}})}if(!(l===0&&s===0)){switch(o){case"active":{if(t&&Gb()){const c=(t&ew)!==0,f=(t&tw)!==0,d=(t&nw)!==0,p=(t&aw)!==0;if(c)return d?"se-resize":p?"ne-resize":"e-resize";if(f)return d?"sw-resize":p?"nw-resize":"w-resize";if(d)return"s-resize";if(p)return"n-resize"}break}}return Gb()?l>0&&s>0?"move":l>0?"ew-resize":"ns-resize":l>0&&s>0?"grab":l>0?"col-resize":"row-resize"}}const Vb=new WeakMap;function Tp(t){if(t.defaultView===null||t.defaultView===void 0)return;let{prevStyle:a,styleSheet:o}=Vb.get(t)??{};o===void 0&&(o=new t.defaultView.CSSStyleSheet,t.adoptedStyleSheets.push(o));const{cursorFlags:l,interactionState:s}=It();switch(s.state){case"active":case"hover":{const c=$R({cursorFlags:l,groups:s.hitRegions.map(d=>d.group),state:s.state}),f=`*, *:hover {cursor: ${c} !important; ${s.state==="active"?"touch-action: none;":""} }`;if(a===f)return;a=f,c?o.cssRules.length===0?o.insertRule(f):o.replaceSync(f):o.cssRules.length===1&&o.deleteRule(0);break}case"inactive":{a=void 0,o.cssRules.length===1&&o.deleteRule(0);break}}Vb.set(t,{prevStyle:a,styleSheet:o})}function rw({document:t,event:a,hitRegions:o,initialLayoutMap:l,mountedGroups:s,pointerDownAtPoint:c,prevCursorFlags:f}){let d=0;const p=new Map(s);o.forEach(y=>{const{group:b,groupSize:S}=y,{disableCursor:_,orientation:M,panels:w}=b;let E=0;c?M==="horizontal"?E=(a.clientX-c.x)/S*100:E=(a.clientY-c.y)/S*100:M==="horizontal"?E=a.clientX<0?-100:100:E=a.clientY<0?-100:100;const T=l.get(b),{defaultLayoutDeferred:k,derivedPanelConstraints:D,layout:j,separatorToPanels:R}=s.get(b)??{defaultLayoutDeferred:!1};if(D&&T&&j&&R){const U=Di({delta:E,initialLayout:T,panelConstraints:D,pivotIndices:y.panels.map(Y=>w.indexOf(Y)),prevLayout:j,trigger:"mouse-or-touch"});if($r(U,j)){if(E!==0&&!_)switch(M){case"horizontal":{d|=E<0?ew:tw;break}case"vertical":{d|=E<0?nw:aw;break}}}else{p.set(y.group,{defaultLayoutDeferred:k,derivedPanelConstraints:D,layout:U,separatorToPanels:R});const Y=y.group.panels.map(({id:H})=>H).join(",");y.group.inMemoryLayouts[Y]=U}}});let g=0;a.movementX===0?g|=f&Yb:g|=d&Yb,a.movementY===0?g|=f&Ib:g|=d&Ib,Gt({cursorFlags:g,mountedGroups:p}),Tp(t)}function qb(t){const{cursorFlags:a,interactionState:o,mountedGroups:l}=It();o.state==="active"&&rw({document:t.currentTarget,event:t,hitRegions:o.hitRegions,initialLayoutMap:o.initialLayoutMap,mountedGroups:l,prevCursorFlags:a})}function Wb(t){if(t.defaultPrevented)return;const{cursorFlags:a,interactionState:o,mountedGroups:l}=It();switch(o.state){case"active":{if(t.buttons===0){Gt(s=>s.interactionState.state==="inactive"?s:{cursorFlags:0,interactionState:{state:"inactive"}}),Gt(s=>({mountedGroups:new Map(s.mountedGroups)}));return}rw({document:t.currentTarget,event:t,hitRegions:o.hitRegions,initialLayoutMap:o.initialLayoutMap,mountedGroups:l,pointerDownAtPoint:o.pointerDownAtPoint,prevCursorFlags:a});break}default:{const s=Np(t,l);s.length===0?o.state!=="inactive"&&Gt({interactionState:{state:"inactive"}}):Gt({interactionState:{hitRegions:s,state:"hover"}}),Tp(t.currentTarget);break}}}function Fb(t){if(t.relatedTarget instanceof HTMLIFrameElement){const{interactionState:a}=It();a.state==="hover"&&Gt({interactionState:{state:"inactive"}})}}function $b(t){if(t.defaultPrevented||t.pointerType==="mouse"&&t.button>0)return;const{interactionState:a}=It();a.state==="active"&&(Gt({cursorFlags:0,interactionState:{state:"inactive"}}),a.hitRegions.length>0&&(Tp(t.currentTarget),Gt(o=>({mountedGroups:new Map(o.mountedGroups)})),t.preventDefault()))}function Kb(t){let a=0,o=0;const l={};for(const c of t)if(c.defaultSize!==void 0){a++;const f=Un(c.defaultSize);o+=f,l[c.panelId]=f}else l[c.panelId]=void 0;const s=t.length-a;if(s!==0){const c=Un((100-o)/s);for(const f of t)f.defaultSize===void 0&&(l[f.panelId]=c)}return l}function KR(t,a,o){if(!o[0])return;const l=t.panels.find(p=>p.element===a);if(!l||!l.onResize)return;const s=ol({group:t}),c=t.orientation==="horizontal"?l.element.offsetWidth:l.element.offsetHeight,f=l.mutableValues.prevSize,d={asPercentage:Un(c/s*100),inPixels:c};l.mutableValues.prevSize=d,l.onResize(d,l.id,f)}function XR(t,a){if(Object.keys(t).length!==Object.keys(a).length)return!1;for(const o in t)if(t[o]!==a[o])return!1;return!0}function ZR(t,a){const o=t.map(s=>s.id),l=Object.keys(a);if(o.length!==l.length)return!1;for(const s of o)if(!l.includes(s))return!1;return!0}const Fo=new Map;function QR(t){let a=!0;Qe(t.element.ownerDocument.defaultView,"Cannot register an unmounted Group");const o=t.element.ownerDocument.defaultView.ResizeObserver,l=new Set,s=new Set,c=new o(M=>{for(const w of M){const{borderBoxSize:E,target:T}=w;if(T===t.element){if(a){if(ol({group:t})===0)return;Gt(k=>{const D=k.mountedGroups.get(t);if(D){const j=jm(t),R=D.defaultLayoutDeferred?Kb(j):D.layout,U=Kr({layout:R,panelConstraints:j});return!D.defaultLayoutDeferred&&$r(R,U)&&XR(D.derivedPanelConstraints,j)?k:{mountedGroups:new Map(k.mountedGroups).set(t,{defaultLayoutDeferred:!1,derivedPanelConstraints:j,layout:U,separatorToPanels:D.separatorToPanels})}}return k})}}else KR(t,T,E)}});c.observe(t.element),t.panels.forEach(M=>{Qe(!l.has(M.id),`Panel ids must be unique; id "${M.id}" was used more than once`),l.add(M.id),M.onResize&&c.observe(M.element)});const f=ol({group:t}),d=jm(t),p=t.panels.map(({id:M})=>M).join(",");let g=t.defaultLayout;g&&(ZR(t.panels,g)||(g=void 0));const y=t.inMemoryLayouts[p]??g??Kb(d),b=Kr({layout:y,panelConstraints:d}),S=KS(t),_=t.element.ownerDocument;return Gt(M=>{const w=new Map;return Fo.set(_,(Fo.get(_)??0)+1),S.forEach(E=>{E.separator&&w.set(E.separator,E.panels)}),{mountedGroups:new Map(M.mountedGroups).set(t,{defaultLayoutDeferred:f===0,derivedPanelConstraints:d,layout:b,separatorToPanels:w})}}),t.separators.forEach(M=>{Qe(!s.has(M.id),`Separator ids must be unique; id "${M.id}" was used more than once`),s.add(M.id),M.element.addEventListener("keydown",Bb)}),Fo.get(_)===1&&(_.addEventListener("dblclick",Pb,!0),_.addEventListener("pointerdown",Hb,!0),_.addEventListener("pointerleave",qb),_.addEventListener("pointermove",Wb),_.addEventListener("pointerout",Fb),_.addEventListener("pointerup",$b,!0)),function(){a=!1,Fo.set(_,Math.max(0,(Fo.get(_)??0)-1)),Gt(M=>{const w=new Map(M.mountedGroups);return w.delete(t),{mountedGroups:w}}),t.separators.forEach(M=>{M.element.removeEventListener("keydown",Bb)}),Fo.get(_)||(_.removeEventListener("dblclick",Pb,!0),_.removeEventListener("pointerdown",Hb,!0),_.removeEventListener("pointerleave",qb),_.removeEventListener("pointermove",Wb),_.removeEventListener("pointerout",Fb),_.removeEventListener("pointerup",$b,!0)),c.disconnect()}}function JR(){const[t,a]=v.useState({}),o=v.useCallback(()=>a({}),[]);return[t,o]}function kp(t){const a=v.useId();return`${t??a}`}const Jr=typeof window<"u"?v.useLayoutEffect:v.useEffect;function wi(t){const a=v.useRef(t);return Jr(()=>{a.current=t},[t]),v.useCallback((...o)=>a.current?.(...o),[a])}function Op(...t){return wi(a=>{t.forEach(o=>{if(o)switch(typeof o){case"function":{o(a);break}case"object":{o.current=a;break}}})})}function Dp(t){const a=v.useRef({...t});return Jr(()=>{for(const o in t)a.current[o]=t[o]},[t]),a.current}const ow=v.createContext(null);function eA(t,a){const o=v.useRef({getLayout:()=>({}),setLayout:FR});v.useImperativeHandle(a,()=>o.current,[]),Jr(()=>{Object.assign(o.current,QS({groupId:t}))})}function lw({children:t,className:a,defaultLayout:o,disableCursor:l,disabled:s,elementRef:c,groupRef:f,id:d,onLayoutChange:p,onLayoutChanged:g,orientation:y="horizontal",resizeTargetMinimumSize:b={coarse:20,fine:10},style:S,..._}){const M=v.useRef({onLayoutChange:{},onLayoutChanged:{}}),w=wi(O=>{$r(M.current.onLayoutChange,O)||(M.current.onLayoutChange=O,p?.(O))}),E=wi(O=>{$r(M.current.onLayoutChanged,O)||(M.current.onLayoutChanged=O,g?.(O))}),T=kp(d),k=v.useRef(null),[D,j]=JR(),R=v.useRef({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:b,separators:[]}),U=Op(k,c);eA(T,f);const Y=wi((O,J)=>{const{interactionState:le,mountedGroups:ae}=It();for(const V of ae.keys())if(V.id===O){const P=ae.get(V);if(P){let I=!1;return le.state==="active"&&(I=le.hitRegions.some(z=>z.group===V)),{flexGrow:P.layout[J]??1,pointerEvents:I?"none":void 0}}}return{flexGrow:o?.[J]??1}}),H=Dp({defaultLayout:o,disableCursor:l}),ie=v.useMemo(()=>({get disableCursor(){return!!H.disableCursor},getPanelStyles:Y,id:T,orientation:y,registerPanel:O=>{const J=R.current;return J.panels=Rm(y,[...J.panels,O]),j(),()=>{J.panels=J.panels.filter(le=>le!==O),j()}},registerSeparator:O=>{const J=R.current;return J.separators=Rm(y,[...J.separators,O]),j(),()=>{J.separators=J.separators.filter(le=>le!==O),j()}},togglePanelDisabled:(O,J)=>{const le=R.current.panels.find(V=>V.id===O);le&&(le.panelConstraints.disabled=J);const{mountedGroups:ae}=It();for(const V of ae.keys())if(V.id===T){const P=ae.get(V);P&&(P.derivedPanelConstraints=jm(V))}},toggleSeparatorDisabled:(O,J)=>{const le=R.current.separators.find(ae=>ae.id===O);le&&(le.disabled=J)}}),[Y,T,j,y,H]),oe=v.useRef(null);return Jr(()=>{const O=k.current;if(O===null)return;const J=R.current;let le;if(H.defaultLayout!==void 0&&Object.keys(H.defaultLayout).length===J.panels.length){le={};for(const F of J.panels){const ce=H.defaultLayout[F.id];ce!==void 0&&(le[F.id]=ce)}}const ae={defaultLayout:le,disableCursor:!!H.disableCursor,disabled:!!s,element:O,id:T,inMemoryLastExpandedPanelSizes:R.current.lastExpandedPanelSizes,inMemoryLayouts:R.current.layouts,orientation:y,panels:J.panels,resizeTargetMinimumSize:J.resizeTargetMinimumSize,separators:J.separators};oe.current=ae;const V=QR(ae),P=It().mountedGroups.get(ae);if(P){const{defaultLayoutDeferred:F,derivedPanelConstraints:ce,layout:ue}=P;!F&&ce.length>0&&(w(ue),E(ue))}const I=ka.addListener("interactionStateChange",F=>{F.state}),z=ka.addListener("mountedGroupsChange",F=>{const ce=F.get(ae);if(ce){const{defaultLayoutDeferred:ue,derivedPanelConstraints:N,layout:B}=ce;if(ue||N.length===0)return;const{interactionState:$}=It(),Q=$.state!=="active";w(B),Q&&E(B)}});return()=>{oe.current=null,V(),I(),z()}},[s,T,E,w,y,D,H]),v.useEffect(()=>{const O=oe.current;O&&(O.defaultLayout=o,O.disableCursor=!!l)}),h.jsx(ow.Provider,{value:ie,children:h.jsx("div",{..._,className:a,"data-group":!0,"data-testid":T,id:T,ref:U,style:{height:"100%",width:"100%",overflow:"hidden",...S,display:"flex",flexDirection:y==="horizontal"?"row":"column",flexWrap:"nowrap"},children:t})})}lw.displayName="Group";function jp(){const t=v.useContext(ow);return Qe(t,"Group Context not found; did you render a Panel or Separator outside of a Group?"),t}function tA(t,a){const{id:o}=jp(),l=v.useRef({collapse:$f,expand:$f,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:$f});v.useImperativeHandle(a,()=>l.current,[]),Jr(()=>{Object.assign(l.current,ZS({groupId:o,panelId:t}))})}function iw({children:t,className:a,collapsedSize:o="0%",collapsible:l=!1,defaultSize:s,disabled:c,elementRef:f,id:d,maxSize:p="100%",minSize:g="0%",onResize:y,panelRef:b,style:S,..._}){const M=!!d,w=kp(d),E=Dp({disabled:c}),T=v.useRef(null),k=Op(T,f),{getPanelStyles:D,id:j,registerPanel:R,togglePanelDisabled:U}=jp(),Y=y!==null,H=wi((oe,O,J)=>{y?.(oe,d,J)});Jr(()=>{const oe=T.current;if(oe!==null){const O={element:oe,id:w,idIsStable:M,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:Y?H:void 0,panelConstraints:{collapsedSize:o,collapsible:l,defaultSize:s,disabled:E.disabled,maxSize:p,minSize:g}};return R(O)}},[o,l,s,Y,w,M,p,g,H,R,E]),v.useEffect(()=>{U(w,!!c)},[c,w,U]),tA(w,b);const ie=v.useSyncExternalStore(oe=>(ka.addListener("mountedGroupsChange",oe),()=>{ka.removeListener("mountedGroupsChange",oe)}),()=>JSON.stringify(D(j,w)),()=>JSON.stringify(D(j,w)));return h.jsx("div",{..._,"aria-disabled":c||void 0,"data-panel":!0,"data-testid":w,id:w,ref:k,style:{...nA,display:"flex",flexBasis:0,flexShrink:1,overflow:"hidden",...JSON.parse(ie)},children:h.jsx("div",{className:a,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,...S},children:t})})}iw.displayName="Panel";const nA={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function aA({layout:t,panelConstraints:a,panelId:o,panelIndex:l}){let s,c;const f=t[o],d=a.find(p=>p.panelId===o);if(d){const p=d.maxSize,g=d.collapsible?d.collapsedSize:d.minSize,y=[l,l+1];c=Kr({layout:Di({delta:g-f,initialLayout:t,panelConstraints:a,pivotIndices:y,prevLayout:t}),panelConstraints:a})[o],s=Kr({layout:Di({delta:p-f,initialLayout:t,panelConstraints:a,pivotIndices:y,prevLayout:t}),panelConstraints:a})[o]}return{valueControls:o,valueMax:s,valueMin:c,valueNow:f}}function sw({children:t,className:a,disabled:o,elementRef:l,id:s,style:c,...f}){const d=kp(s),p=Dp({disabled:o}),[g,y]=v.useState({}),[b,S]=v.useState("inactive"),_=v.useRef(null),M=Op(_,l),{disableCursor:w,id:E,orientation:T,registerSeparator:k,toggleSeparatorDisabled:D}=jp(),j=T==="horizontal"?"vertical":"horizontal";Jr(()=>{const U=_.current;if(U!==null){const Y={disabled:p.disabled,element:U,id:d},H=k(Y),ie=ka.addListener("interactionStateChange",O=>{S(O.state!=="inactive"&&O.hitRegions.some(J=>J.separator===Y)?O.state:"inactive")}),oe=ka.addListener("mountedGroupsChange",O=>{O.forEach(({derivedPanelConstraints:J,layout:le,separatorToPanels:ae},V)=>{if(V.id===E){const P=ae.get(Y);if(P){const I=P[0],z=V.panels.indexOf(I);y(aA({layout:le,panelConstraints:J,panelId:I.id,panelIndex:z}))}}})});return()=>{ie(),oe(),H()}}},[E,d,k,p]),v.useEffect(()=>{D(d,!!o)},[o,d,D]);let R;return o&&!w&&(R="not-allowed"),h.jsx("div",{...f,"aria-controls":g.valueControls,"aria-disabled":o||void 0,"aria-orientation":j,"aria-valuemax":g.valueMax,"aria-valuemin":g.valueMin,"aria-valuenow":g.valueNow,children:t,className:a,"data-separator":o?"disabled":b,"data-testid":d,id:d,ref:M,role:"separator",style:{flexBasis:"auto",cursor:R,...c,flexGrow:0,flexShrink:0},tabIndex:o?void 0:0})}sw.displayName="Separator";function rA({className:t,...a}){return h.jsx(lw,{"data-slot":"resizable-panel-group",className:te("flex h-full w-full aria-[orientation=vertical]:flex-col",t),...a})}function Xb({...t}){return h.jsx(iw,{"data-slot":"resizable-panel",...t})}function oA({withHandle:t,className:a,...o}){return h.jsx(sw,{"data-slot":"resizable-handle",className:te("bg-border focus-visible:ring-ring ring-offset-background relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90",a),...o,children:t&&h.jsx("div",{className:"bg-border h-6 w-1 rounded-lg z-10 flex shrink-0"})})}function Xn({className:t,type:a,...o}){return h.jsx("input",{type:a,"data-slot":"input",className:te("bg-input/20 dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-7 rounded-md border px-2 py-0.5 text-sm transition-colors file:h-6 file:text-xs/relaxed file:font-medium focus-visible:ring-2 aria-invalid:ring-2 md:text-xs/relaxed file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",t),...o})}function ir({className:t,...a}){return h.jsx(rD,{"data-slot":"label",className:te("gap-2 text-xs/relaxed leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed",t),...a})}function _i({...t}){return h.jsx(ID,{"data-slot":"select",...t})}function Ci({...t}){return h.jsx(VD,{"data-slot":"select-value",...t})}function Ei({className:t,size:a="default",children:o,...l}){return h.jsxs(GD,{"data-slot":"select-trigger","data-size":a,className:te("border-input data-placeholder:text-muted-foreground bg-input/20 dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 gap-1.5 rounded-md border px-2 py-1.5 text-xs/relaxed transition-colors focus-visible:ring-2 aria-invalid:ring-2 data-[size=default]:h-7 data-[size=sm]:h-6 *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-3.5 flex w-fit items-center justify-between whitespace-nowrap outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_svg]:pointer-events-none [&_svg]:shrink-0",t),...l,children:[o,h.jsx(qD,{asChild:!0,children:h.jsx(Gm,{className:"text-muted-foreground size-3.5 pointer-events-none"})})]})}function Mi({className:t,children:a,position:o="item-aligned",align:l="center",...s}){return h.jsx(WD,{children:h.jsxs(FD,{"data-slot":"select-content","data-align-trigger":o==="item-aligned",className:te("bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 min-w-32 rounded-lg shadow-md ring-1 duration-100 relative z-50 max-h-(--radix-select-content-available-height) origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto data-[align-trigger=true]:animate-none",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:o,align:l,...s,children:[h.jsx(lA,{}),h.jsx($D,{"data-position":o,className:te("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)",o==="popper"&&""),children:a}),h.jsx(iA,{})]})})}function Ma({className:t,children:a,...o}){return h.jsxs(KD,{"data-slot":"select-item",className:te("focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed [&_svg:not([class*='size-'])]:size-3.5 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",t),...o,children:[h.jsx("span",{className:"pointer-events-none absolute right-2 flex items-center justify-center",children:h.jsx(ZD,{children:h.jsx(Im,{className:"pointer-events-none"})})}),h.jsx(XD,{children:a})]})}function lA({className:t,...a}){return h.jsx(QD,{"data-slot":"select-scroll-up-button",className:te("bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-3.5",t),...a,children:h.jsx(qE,{})})}function iA({className:t,...a}){return h.jsx(JD,{"data-slot":"select-scroll-down-button",className:te("bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-3.5",t),...a,children:h.jsx(Gm,{})})}function sA({auth:t,setAuth:a}){const o=l=>{a(s=>({...s,...l}))};return h.jsxs("section",{className:"flex flex-col gap-4 overflow-hidden",children:[h.jsx("h3",{className:"text-muted-foreground text-xs font-medium",children:"Authorization"}),h.jsxs("div",{className:"flex flex-col gap-3",children:[h.jsxs("div",{className:"grid gap-2",children:[h.jsx(ir,{className:"text-xs",children:"Type"}),h.jsxs(_i,{value:t.type,onValueChange:l=>o({type:l}),children:[h.jsx(Ei,{className:"h-8 text-xs",children:h.jsx(Ci,{})}),h.jsxs(Mi,{children:[h.jsx(Ma,{value:"none",className:"text-xs",children:"No auth"}),h.jsx(Ma,{value:"bearer",className:"text-xs",children:"Bearer Token"}),h.jsx(Ma,{value:"basic",className:"text-xs",children:"Basic Auth"}),h.jsx(Ma,{value:"apiKey",className:"text-xs",children:"API Key"})]})]})]}),t.type==="bearer"&&h.jsxs("div",{className:"grid gap-2",children:[h.jsx(ir,{className:"text-xs",children:"Token"}),h.jsx(Xn,{type:"password",placeholder:"Your token",value:t.bearerToken??"",onChange:l=>o({bearerToken:l.target.value}),className:"h-8 font-mono text-xs"})]}),t.type==="basic"&&h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"grid gap-2",children:[h.jsx(ir,{className:"text-xs",children:"Username"}),h.jsx(Xn,{type:"text",placeholder:"Username",value:t.username??"",onChange:l=>o({username:l.target.value}),className:"h-8 font-mono text-xs"})]}),h.jsxs("div",{className:"grid gap-2",children:[h.jsx(ir,{className:"text-xs",children:"Password"}),h.jsx(Xn,{type:"password",placeholder:"Password",value:t.password??"",onChange:l=>o({password:l.target.value}),className:"h-8 font-mono text-xs"})]})]}),t.type==="apiKey"&&h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"grid gap-2",children:[h.jsx(ir,{className:"text-xs",children:"Key name (header or query)"}),h.jsx(Xn,{type:"text",placeholder:"X-API-Key",value:t.apiKeyName??"",onChange:l=>o({apiKeyName:l.target.value}),className:"h-8 font-mono text-xs"})]}),h.jsxs("div",{className:"grid gap-2",children:[h.jsx(ir,{className:"text-xs",children:"Value"}),h.jsx(Xn,{type:"password",placeholder:"API key value",value:t.apiKeyValue??"",onChange:l=>o({apiKeyValue:l.target.value}),className:"h-8 font-mono text-xs"})]})]})]})]})}const cw=6048e5,cA=864e5,uw=6e4,dw=36e5,Zb=Symbol.for("constructDateFrom");function ht(t,a){return typeof t=="function"?t(a):t&&typeof t=="object"&&Zb in t?t[Zb](a):t instanceof Date?new t.constructor(a):new Date(a)}function Fe(t,a){return ht(a||t,t)}function fw(t,a,o){const l=Fe(t,o?.in);return isNaN(a)?ht(t,NaN):(a&&l.setDate(l.getDate()+a),l)}function mw(t,a,o){const l=Fe(t,o?.in);if(isNaN(a))return ht(t,NaN);if(!a)return l;const s=l.getDate(),c=ht(t,l.getTime());c.setMonth(l.getMonth()+a+1,0);const f=c.getDate();return s>=f?c:(l.setFullYear(c.getFullYear(),c.getMonth(),s),l)}let uA={};function Vi(){return uA}function ll(t,a){const o=Vi(),l=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,s=Fe(t,a?.in),c=s.getDay(),f=(c<l?7:0)+c-l;return s.setDate(s.getDate()-f),s.setHours(0,0,0,0),s}function ji(t,a){return ll(t,{...a,weekStartsOn:1})}function pw(t,a){const o=Fe(t,a?.in),l=o.getFullYear(),s=ht(o,0);s.setFullYear(l+1,0,4),s.setHours(0,0,0,0);const c=ji(s),f=ht(o,0);f.setFullYear(l,0,4),f.setHours(0,0,0,0);const d=ji(f);return o.getTime()>=c.getTime()?l+1:o.getTime()>=d.getTime()?l:l-1}function Qb(t){const a=Fe(t),o=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return o.setUTCFullYear(a.getFullYear()),+t-+o}function pl(t,...a){const o=ht.bind(null,a.find(l=>typeof l=="object"));return a.map(o)}function Ri(t,a){const o=Fe(t,a?.in);return o.setHours(0,0,0,0),o}function Rp(t,a,o){const[l,s]=pl(o?.in,t,a),c=Ri(l),f=Ri(s),d=+c-Qb(c),p=+f-Qb(f);return Math.round((d-p)/cA)}function dA(t,a){const o=pw(t,a),l=ht(t,0);return l.setFullYear(o,0,4),l.setHours(0,0,0,0),ji(l)}function fA(t,a,o){return fw(t,a*7,o)}function mA(t,a,o){return mw(t,a*12,o)}function pA(t,a){let o,l=a?.in;return t.forEach(s=>{!l&&typeof s=="object"&&(l=ht.bind(null,s));const c=Fe(s,l);(!o||o<c||isNaN(+c))&&(o=c)}),ht(l,o||NaN)}function hA(t,a){let o,l=a?.in;return t.forEach(s=>{!l&&typeof s=="object"&&(l=ht.bind(null,s));const c=Fe(s,l);(!o||o>c||isNaN(+c))&&(o=c)}),ht(l,o||NaN)}function gA(t,a,o){const[l,s]=pl(o?.in,t,a);return+Ri(l)==+Ri(s)}function hw(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function vA(t){return!(!hw(t)&&typeof t!="number"||isNaN(+Fe(t)))}function gw(t,a,o){const[l,s]=pl(o?.in,t,a),c=l.getFullYear()-s.getFullYear(),f=l.getMonth()-s.getMonth();return c*12+f}function yA(t,a){const o=Fe(t,a?.in),l=o.getMonth();return o.setFullYear(o.getFullYear(),l+1,0),o.setHours(23,59,59,999),o}function vw(t,a){const[o,l]=pl(t,a.start,a.end);return{start:o,end:l}}function bA(t,a){const{start:o,end:l}=vw(a?.in,t);let s=+o>+l;const c=s?+o:+l,f=s?l:o;f.setHours(0,0,0,0),f.setDate(1);let d=1;const p=[];for(;+f<=c;)p.push(ht(o,f)),f.setMonth(f.getMonth()+d);return s?p.reverse():p}function xA(t,a){const o=Fe(t,a?.in);return o.setDate(1),o.setHours(0,0,0,0),o}function SA(t,a){const o=Fe(t,a?.in),l=o.getFullYear();return o.setFullYear(l+1,0,0),o.setHours(23,59,59,999),o}function yw(t,a){const o=Fe(t,a?.in);return o.setFullYear(o.getFullYear(),0,1),o.setHours(0,0,0,0),o}function wA(t,a){const{start:o,end:l}=vw(a?.in,t);let s=+o>+l;const c=s?+o:+l,f=s?l:o;f.setHours(0,0,0,0),f.setMonth(0,1);let d=1;const p=[];for(;+f<=c;)p.push(ht(o,f)),f.setFullYear(f.getFullYear()+d);return s?p.reverse():p}function bw(t,a){const o=Vi(),l=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,s=Fe(t,a?.in),c=s.getDay(),f=(c<l?-7:0)+6-(c-l);return s.setDate(s.getDate()+f),s.setHours(23,59,59,999),s}function _A(t,a){return bw(t,{...a,weekStartsOn:1})}const CA={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},EA=(t,a,o)=>{let l;const s=CA[t];return typeof s=="string"?l=s:a===1?l=s.one:l=s.other.replace("{{count}}",a.toString()),o?.addSuffix?o.comparison&&o.comparison>0?"in "+l:l+" ago":l};function Kf(t){return(a={})=>{const o=a.width?String(a.width):t.defaultWidth;return t.formats[o]||t.formats[t.defaultWidth]}}const MA={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},NA={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},TA={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},kA={date:Kf({formats:MA,defaultWidth:"full"}),time:Kf({formats:NA,defaultWidth:"full"}),dateTime:Kf({formats:TA,defaultWidth:"full"})},OA={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},DA=(t,a,o,l)=>OA[t];function mi(t){return(a,o)=>{const l=o?.context?String(o.context):"standalone";let s;if(l==="formatting"&&t.formattingValues){const f=t.defaultFormattingWidth||t.defaultWidth,d=o?.width?String(o.width):f;s=t.formattingValues[d]||t.formattingValues[f]}else{const f=t.defaultWidth,d=o?.width?String(o.width):t.defaultWidth;s=t.values[d]||t.values[f]}const c=t.argumentCallback?t.argumentCallback(a):a;return s[c]}}const jA={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},RA={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},AA={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},zA={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},UA={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},LA={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},PA=(t,a)=>{const o=Number(t),l=o%100;if(l>20||l<10)switch(l%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},BA={ordinalNumber:PA,era:mi({values:jA,defaultWidth:"wide"}),quarter:mi({values:RA,defaultWidth:"wide",argumentCallback:t=>t-1}),month:mi({values:AA,defaultWidth:"wide"}),day:mi({values:zA,defaultWidth:"wide"}),dayPeriod:mi({values:UA,defaultWidth:"wide",formattingValues:LA,defaultFormattingWidth:"wide"})};function pi(t){return(a,o={})=>{const l=o.width,s=l&&t.matchPatterns[l]||t.matchPatterns[t.defaultMatchWidth],c=a.match(s);if(!c)return null;const f=c[0],d=l&&t.parsePatterns[l]||t.parsePatterns[t.defaultParseWidth],p=Array.isArray(d)?YA(d,b=>b.test(f)):HA(d,b=>b.test(f));let g;g=t.valueCallback?t.valueCallback(p):p,g=o.valueCallback?o.valueCallback(g):g;const y=a.slice(f.length);return{value:g,rest:y}}}function HA(t,a){for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&a(t[o]))return o}function YA(t,a){for(let o=0;o<t.length;o++)if(a(t[o]))return o}function IA(t){return(a,o={})=>{const l=a.match(t.matchPattern);if(!l)return null;const s=l[0],c=a.match(t.parsePattern);if(!c)return null;let f=t.valueCallback?t.valueCallback(c[0]):c[0];f=o.valueCallback?o.valueCallback(f):f;const d=a.slice(s.length);return{value:f,rest:d}}}const GA=/^(\d+)(th|st|nd|rd)?/i,VA=/\d+/i,qA={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},WA={any:[/^b/i,/^(a|c)/i]},FA={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},$A={any:[/1/i,/2/i,/3/i,/4/i]},KA={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},XA={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ZA={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},QA={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},JA={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ez={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},tz={ordinalNumber:IA({matchPattern:GA,parsePattern:VA,valueCallback:t=>parseInt(t,10)}),era:pi({matchPatterns:qA,defaultMatchWidth:"wide",parsePatterns:WA,defaultParseWidth:"any"}),quarter:pi({matchPatterns:FA,defaultMatchWidth:"wide",parsePatterns:$A,defaultParseWidth:"any",valueCallback:t=>t+1}),month:pi({matchPatterns:KA,defaultMatchWidth:"wide",parsePatterns:XA,defaultParseWidth:"any"}),day:pi({matchPatterns:ZA,defaultMatchWidth:"wide",parsePatterns:QA,defaultParseWidth:"any"}),dayPeriod:pi({matchPatterns:JA,defaultMatchWidth:"any",parsePatterns:ez,defaultParseWidth:"any"})},Xo={code:"en-US",formatDistance:EA,formatLong:kA,formatRelative:DA,localize:BA,match:tz,options:{weekStartsOn:0,firstWeekContainsDate:1}};function nz(t,a){const o=Fe(t,a?.in);return Rp(o,yw(o))+1}function Ap(t,a){const o=Fe(t,a?.in),l=+ji(o)-+dA(o);return Math.round(l/cw)+1}function xw(t,a){const o=Fe(t,a?.in),l=o.getFullYear(),s=Vi(),c=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,f=ht(a?.in||t,0);f.setFullYear(l+1,0,c),f.setHours(0,0,0,0);const d=ll(f,a),p=ht(a?.in||t,0);p.setFullYear(l,0,c),p.setHours(0,0,0,0);const g=ll(p,a);return+o>=+d?l+1:+o>=+g?l:l-1}function az(t,a){const o=Vi(),l=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=xw(t,a),c=ht(a?.in||t,0);return c.setFullYear(s,0,l),c.setHours(0,0,0,0),ll(c,a)}function zp(t,a){const o=Fe(t,a?.in),l=+ll(o,a)-+az(o,a);return Math.round(l/cw)+1}function Ze(t,a){const o=t<0?"-":"",l=Math.abs(t).toString().padStart(a,"0");return o+l}const or={y(t,a){const o=t.getFullYear(),l=o>0?o:1-o;return Ze(a==="yy"?l%100:l,a.length)},M(t,a){const o=t.getMonth();return a==="M"?String(o+1):Ze(o+1,2)},d(t,a){return Ze(t.getDate(),a.length)},a(t,a){const o=t.getHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return o.toUpperCase();case"aaa":return o;case"aaaaa":return o[0];default:return o==="am"?"a.m.":"p.m."}},h(t,a){return Ze(t.getHours()%12||12,a.length)},H(t,a){return Ze(t.getHours(),a.length)},m(t,a){return Ze(t.getMinutes(),a.length)},s(t,a){return Ze(t.getSeconds(),a.length)},S(t,a){const o=a.length,l=t.getMilliseconds(),s=Math.trunc(l*Math.pow(10,o-3));return Ze(s,a.length)}},$o={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Jb={G:function(t,a,o){const l=t.getFullYear()>0?1:0;switch(a){case"G":case"GG":case"GGG":return o.era(l,{width:"abbreviated"});case"GGGGG":return o.era(l,{width:"narrow"});default:return o.era(l,{width:"wide"})}},y:function(t,a,o){if(a==="yo"){const l=t.getFullYear(),s=l>0?l:1-l;return o.ordinalNumber(s,{unit:"year"})}return or.y(t,a)},Y:function(t,a,o,l){const s=xw(t,l),c=s>0?s:1-s;if(a==="YY"){const f=c%100;return Ze(f,2)}return a==="Yo"?o.ordinalNumber(c,{unit:"year"}):Ze(c,a.length)},R:function(t,a){const o=pw(t);return Ze(o,a.length)},u:function(t,a){const o=t.getFullYear();return Ze(o,a.length)},Q:function(t,a,o){const l=Math.ceil((t.getMonth()+1)/3);switch(a){case"Q":return String(l);case"QQ":return Ze(l,2);case"Qo":return o.ordinalNumber(l,{unit:"quarter"});case"QQQ":return o.quarter(l,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(l,{width:"narrow",context:"formatting"});default:return o.quarter(l,{width:"wide",context:"formatting"})}},q:function(t,a,o){const l=Math.ceil((t.getMonth()+1)/3);switch(a){case"q":return String(l);case"qq":return Ze(l,2);case"qo":return o.ordinalNumber(l,{unit:"quarter"});case"qqq":return o.quarter(l,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(l,{width:"narrow",context:"standalone"});default:return o.quarter(l,{width:"wide",context:"standalone"})}},M:function(t,a,o){const l=t.getMonth();switch(a){case"M":case"MM":return or.M(t,a);case"Mo":return o.ordinalNumber(l+1,{unit:"month"});case"MMM":return o.month(l,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(l,{width:"narrow",context:"formatting"});default:return o.month(l,{width:"wide",context:"formatting"})}},L:function(t,a,o){const l=t.getMonth();switch(a){case"L":return String(l+1);case"LL":return Ze(l+1,2);case"Lo":return o.ordinalNumber(l+1,{unit:"month"});case"LLL":return o.month(l,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(l,{width:"narrow",context:"standalone"});default:return o.month(l,{width:"wide",context:"standalone"})}},w:function(t,a,o,l){const s=zp(t,l);return a==="wo"?o.ordinalNumber(s,{unit:"week"}):Ze(s,a.length)},I:function(t,a,o){const l=Ap(t);return a==="Io"?o.ordinalNumber(l,{unit:"week"}):Ze(l,a.length)},d:function(t,a,o){return a==="do"?o.ordinalNumber(t.getDate(),{unit:"date"}):or.d(t,a)},D:function(t,a,o){const l=nz(t);return a==="Do"?o.ordinalNumber(l,{unit:"dayOfYear"}):Ze(l,a.length)},E:function(t,a,o){const l=t.getDay();switch(a){case"E":case"EE":case"EEE":return o.day(l,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(l,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(l,{width:"short",context:"formatting"});default:return o.day(l,{width:"wide",context:"formatting"})}},e:function(t,a,o,l){const s=t.getDay(),c=(s-l.weekStartsOn+8)%7||7;switch(a){case"e":return String(c);case"ee":return Ze(c,2);case"eo":return o.ordinalNumber(c,{unit:"day"});case"eee":return o.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(s,{width:"short",context:"formatting"});default:return o.day(s,{width:"wide",context:"formatting"})}},c:function(t,a,o,l){const s=t.getDay(),c=(s-l.weekStartsOn+8)%7||7;switch(a){case"c":return String(c);case"cc":return Ze(c,a.length);case"co":return o.ordinalNumber(c,{unit:"day"});case"ccc":return o.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(s,{width:"narrow",context:"standalone"});case"cccccc":return o.day(s,{width:"short",context:"standalone"});default:return o.day(s,{width:"wide",context:"standalone"})}},i:function(t,a,o){const l=t.getDay(),s=l===0?7:l;switch(a){case"i":return String(s);case"ii":return Ze(s,a.length);case"io":return o.ordinalNumber(s,{unit:"day"});case"iii":return o.day(l,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(l,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(l,{width:"short",context:"formatting"});default:return o.day(l,{width:"wide",context:"formatting"})}},a:function(t,a,o){const s=t.getHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(s,{width:"narrow",context:"formatting"});default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,a,o){const l=t.getHours();let s;switch(l===12?s=$o.noon:l===0?s=$o.midnight:s=l/12>=1?"pm":"am",a){case"b":case"bb":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(s,{width:"narrow",context:"formatting"});default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,a,o){const l=t.getHours();let s;switch(l>=17?s=$o.evening:l>=12?s=$o.afternoon:l>=4?s=$o.morning:s=$o.night,a){case"B":case"BB":case"BBB":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(s,{width:"narrow",context:"formatting"});default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,a,o){if(a==="ho"){let l=t.getHours()%12;return l===0&&(l=12),o.ordinalNumber(l,{unit:"hour"})}return or.h(t,a)},H:function(t,a,o){return a==="Ho"?o.ordinalNumber(t.getHours(),{unit:"hour"}):or.H(t,a)},K:function(t,a,o){const l=t.getHours()%12;return a==="Ko"?o.ordinalNumber(l,{unit:"hour"}):Ze(l,a.length)},k:function(t,a,o){let l=t.getHours();return l===0&&(l=24),a==="ko"?o.ordinalNumber(l,{unit:"hour"}):Ze(l,a.length)},m:function(t,a,o){return a==="mo"?o.ordinalNumber(t.getMinutes(),{unit:"minute"}):or.m(t,a)},s:function(t,a,o){return a==="so"?o.ordinalNumber(t.getSeconds(),{unit:"second"}):or.s(t,a)},S:function(t,a){return or.S(t,a)},X:function(t,a,o){const l=t.getTimezoneOffset();if(l===0)return"Z";switch(a){case"X":return tx(l);case"XXXX":case"XX":return Hr(l);default:return Hr(l,":")}},x:function(t,a,o){const l=t.getTimezoneOffset();switch(a){case"x":return tx(l);case"xxxx":case"xx":return Hr(l);default:return Hr(l,":")}},O:function(t,a,o){const l=t.getTimezoneOffset();switch(a){case"O":case"OO":case"OOO":return"GMT"+ex(l,":");default:return"GMT"+Hr(l,":")}},z:function(t,a,o){const l=t.getTimezoneOffset();switch(a){case"z":case"zz":case"zzz":return"GMT"+ex(l,":");default:return"GMT"+Hr(l,":")}},t:function(t,a,o){const l=Math.trunc(+t/1e3);return Ze(l,a.length)},T:function(t,a,o){return Ze(+t,a.length)}};function ex(t,a=""){const o=t>0?"-":"+",l=Math.abs(t),s=Math.trunc(l/60),c=l%60;return c===0?o+String(s):o+String(s)+a+Ze(c,2)}function tx(t,a){return t%60===0?(t>0?"-":"+")+Ze(Math.abs(t)/60,2):Hr(t,a)}function Hr(t,a=""){const o=t>0?"-":"+",l=Math.abs(t),s=Ze(Math.trunc(l/60),2),c=Ze(l%60,2);return o+s+a+c}const nx=(t,a)=>{switch(t){case"P":return a.date({width:"short"});case"PP":return a.date({width:"medium"});case"PPP":return a.date({width:"long"});default:return a.date({width:"full"})}},Sw=(t,a)=>{switch(t){case"p":return a.time({width:"short"});case"pp":return a.time({width:"medium"});case"ppp":return a.time({width:"long"});default:return a.time({width:"full"})}},rz=(t,a)=>{const o=t.match(/(P+)(p+)?/)||[],l=o[1],s=o[2];if(!s)return nx(t,a);let c;switch(l){case"P":c=a.dateTime({width:"short"});break;case"PP":c=a.dateTime({width:"medium"});break;case"PPP":c=a.dateTime({width:"long"});break;default:c=a.dateTime({width:"full"});break}return c.replace("{{date}}",nx(l,a)).replace("{{time}}",Sw(s,a))},oz={p:Sw,P:rz},lz=/^D+$/,iz=/^Y+$/,sz=["D","DD","YY","YYYY"];function cz(t){return lz.test(t)}function uz(t){return iz.test(t)}function dz(t,a,o){const l=fz(t,a,o);if(console.warn(l),sz.includes(t))throw new RangeError(l)}function fz(t,a,o){const l=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${a}\`) for formatting ${l} to the input \`${o}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const mz=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,pz=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hz=/^'([^]*?)'?$/,gz=/''/g,vz=/[a-zA-Z]/;function Zn(t,a,o){const l=Vi(),s=o?.locale??l.locale??Xo,c=o?.firstWeekContainsDate??o?.locale?.options?.firstWeekContainsDate??l.firstWeekContainsDate??l.locale?.options?.firstWeekContainsDate??1,f=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??l.weekStartsOn??l.locale?.options?.weekStartsOn??0,d=Fe(t,o?.in);if(!vA(d))throw new RangeError("Invalid time value");let p=a.match(pz).map(y=>{const b=y[0];if(b==="p"||b==="P"){const S=oz[b];return S(y,s.formatLong)}return y}).join("").match(mz).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const b=y[0];if(b==="'")return{isToken:!1,value:yz(y)};if(Jb[b])return{isToken:!0,value:y};if(b.match(vz))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:y}});s.localize.preprocessor&&(p=s.localize.preprocessor(d,p));const g={firstWeekContainsDate:c,weekStartsOn:f,locale:s};return p.map(y=>{if(!y.isToken)return y.value;const b=y.value;(!o?.useAdditionalWeekYearTokens&&uz(b)||!o?.useAdditionalDayOfYearTokens&&cz(b))&&dz(b,a,String(t));const S=Jb[b[0]];return S(d,b,s.localize,g)}).join("")}function yz(t){const a=t.match(hz);return a?a[1].replace(gz,"'"):t}function bz(t,a){const o=Fe(t,a?.in),l=o.getFullYear(),s=o.getMonth(),c=ht(o,0);return c.setFullYear(l,s+1,0),c.setHours(0,0,0,0),c.getDate()}function xz(t,a){return Fe(t,a?.in).getMonth()}function Sz(t,a){return Fe(t,a?.in).getFullYear()}function wz(t,a){return+Fe(t)>+Fe(a)}function _z(t,a){return+Fe(t)<+Fe(a)}function Cz(t,a,o){const[l,s]=pl(o?.in,t,a);return l.getFullYear()===s.getFullYear()&&l.getMonth()===s.getMonth()}function Ez(t,a,o){const[l,s]=pl(o?.in,t,a);return l.getFullYear()===s.getFullYear()}function hi(t,a){const o=()=>ht(a?.in,NaN),s=kz(t);let c;if(s.date){const g=Oz(s.date,2);c=Dz(g.restDateString,g.year)}if(!c||isNaN(+c))return o();const f=+c;let d=0,p;if(s.time&&(d=jz(s.time),isNaN(d)))return o();if(s.timezone){if(p=Rz(s.timezone),isNaN(p))return o()}else{const g=new Date(f+d),y=Fe(0,a?.in);return y.setFullYear(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate()),y.setHours(g.getUTCHours(),g.getUTCMinutes(),g.getUTCSeconds(),g.getUTCMilliseconds()),y}return Fe(f+d+p,a?.in)}const yc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Mz=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Nz=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Tz=/^([+-])(\d{2})(?::?(\d{2}))?$/;function kz(t){const a={},o=t.split(yc.dateTimeDelimiter);let l;if(o.length>2)return a;if(/:/.test(o[0])?l=o[0]:(a.date=o[0],l=o[1],yc.timeZoneDelimiter.test(a.date)&&(a.date=t.split(yc.timeZoneDelimiter)[0],l=t.substr(a.date.length,t.length))),l){const s=yc.timezone.exec(l);s?(a.time=l.replace(s[1],""),a.timezone=s[1]):a.time=l}return a}function Oz(t,a){const o=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+a)+"})|(\\d{2}|[+-]\\d{"+(2+a)+"})$)"),l=t.match(o);if(!l)return{year:NaN,restDateString:""};const s=l[1]?parseInt(l[1]):null,c=l[2]?parseInt(l[2]):null;return{year:c===null?s:c*100,restDateString:t.slice((l[1]||l[2]).length)}}function Dz(t,a){if(a===null)return new Date(NaN);const o=t.match(Mz);if(!o)return new Date(NaN);const l=!!o[4],s=gi(o[1]),c=gi(o[2])-1,f=gi(o[3]),d=gi(o[4]),p=gi(o[5])-1;if(l)return Pz(a,d,p)?Az(a,d,p):new Date(NaN);{const g=new Date(0);return!Uz(a,c,f)||!Lz(a,s)?new Date(NaN):(g.setUTCFullYear(a,c,Math.max(s,f)),g)}}function gi(t){return t?parseInt(t):1}function jz(t){const a=t.match(Nz);if(!a)return NaN;const o=Xf(a[1]),l=Xf(a[2]),s=Xf(a[3]);return Bz(o,l,s)?o*dw+l*uw+s*1e3:NaN}function Xf(t){return t&&parseFloat(t.replace(",","."))||0}function Rz(t){if(t==="Z")return 0;const a=t.match(Tz);if(!a)return 0;const o=a[1]==="+"?-1:1,l=parseInt(a[2]),s=a[3]&&parseInt(a[3])||0;return Hz(l,s)?o*(l*dw+s*uw):NaN}function Az(t,a,o){const l=new Date(0);l.setUTCFullYear(t,0,4);const s=l.getUTCDay()||7,c=(a-1)*7+o+1-s;return l.setUTCDate(l.getUTCDate()+c),l}const zz=[31,null,31,30,31,30,31,31,30,31,30,31];function ww(t){return t%400===0||t%4===0&&t%100!==0}function Uz(t,a,o){return a>=0&&a<=11&&o>=1&&o<=(zz[a]||(ww(t)?29:28))}function Lz(t,a){return a>=1&&a<=(ww(t)?366:365)}function Pz(t,a,o){return a>=1&&a<=53&&o>=0&&o<=6}function Bz(t,a,o){return t===24?a===0&&o===0:o>=0&&o<60&&a>=0&&a<60&&t>=0&&t<25}function Hz(t,a){return a>=0&&a<=59}function Yz(t,a,o){const l=Fe(t,o?.in),s=l.getFullYear(),c=l.getDate(),f=ht(t,0);f.setFullYear(s,a,15),f.setHours(0,0,0,0);const d=bz(f);return l.setMonth(a,Math.min(c,d)),l}function Iz(t,a,o){const l=Fe(t,o?.in);return isNaN(+l)?ht(t,NaN):(l.setFullYear(a),l)}function Gz(t,a,o="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:t,timeZoneName:o}).format(a).split(/\s/g).slice(2).join(" ")}const Vz={},Si={};function Yr(t,a){try{const l=(Vz[t]||=new Intl.DateTimeFormat("en-US",{timeZone:t,timeZoneName:"longOffset"}).format)(a).split("GMT")[1];return l in Si?Si[l]:ax(l,l.split(":"))}catch{if(t in Si)return Si[t];const o=t?.match(qz);return o?ax(t,o.slice(1)):NaN}}const qz=/([+-]\d\d):?(\d\d)?/;function ax(t,a){const o=+(a[0]||0),l=+(a[1]||0),s=+(a[2]||0)/60;return Si[t]=o*60+l>0?o*60+l+s:o*60-l-s}class Jn extends Date{constructor(...a){super(),a.length>1&&typeof a[a.length-1]=="string"&&(this.timeZone=a.pop()),this.internal=new Date,isNaN(Yr(this.timeZone,this))?this.setTime(NaN):a.length?typeof a[0]=="number"&&(a.length===1||a.length===2&&typeof a[1]!="number")?this.setTime(a[0]):typeof a[0]=="string"?this.setTime(+new Date(a[0])):a[0]instanceof Date?this.setTime(+a[0]):(this.setTime(+new Date(...a)),_w(this),Am(this)):this.setTime(Date.now())}static tz(a,...o){return o.length?new Jn(...o,a):new Jn(Date.now(),a)}withTimeZone(a){return new Jn(+this,a)}getTimezoneOffset(){const a=-Yr(this.timeZone,this);return a>0?Math.floor(a):Math.ceil(a)}setTime(a){return Date.prototype.setTime.apply(this,arguments),Am(this),+this}[Symbol.for("constructDateFrom")](a){return new Jn(+new Date(a),this.timeZone)}}const rx=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(t=>{if(!rx.test(t))return;const a=t.replace(rx,"$1UTC");Jn.prototype[a]&&(t.startsWith("get")?Jn.prototype[t]=function(){return this.internal[a]()}:(Jn.prototype[t]=function(){return Date.prototype[a].apply(this.internal,arguments),Wz(this),+this},Jn.prototype[a]=function(){return Date.prototype[a].apply(this,arguments),Am(this),+this}))});function Am(t){t.internal.setTime(+t),t.internal.setUTCSeconds(t.internal.getUTCSeconds()-Math.round(-Yr(t.timeZone,t)*60))}function Wz(t){Date.prototype.setFullYear.call(t,t.internal.getUTCFullYear(),t.internal.getUTCMonth(),t.internal.getUTCDate()),Date.prototype.setHours.call(t,t.internal.getUTCHours(),t.internal.getUTCMinutes(),t.internal.getUTCSeconds(),t.internal.getUTCMilliseconds()),_w(t)}function _w(t){const a=Yr(t.timeZone,t),o=a>0?Math.floor(a):Math.ceil(a),l=new Date(+t);l.setUTCHours(l.getUTCHours()-1);const s=-new Date(+t).getTimezoneOffset(),c=-new Date(+l).getTimezoneOffset(),f=s-c,d=Date.prototype.getHours.apply(t)!==t.internal.getUTCHours();f&&d&&t.internal.setUTCMinutes(t.internal.getUTCMinutes()+f);const p=s-o;p&&Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+p);const g=new Date(+t);g.setUTCSeconds(0);const y=s>0?g.getSeconds():(g.getSeconds()-60)%60,b=Math.round(-(Yr(t.timeZone,t)*60))%60;(b||y)&&(t.internal.setUTCSeconds(t.internal.getUTCSeconds()+b),Date.prototype.setUTCSeconds.call(t,Date.prototype.getUTCSeconds.call(t)+b+y));const S=Yr(t.timeZone,t),_=S>0?Math.floor(S):Math.ceil(S),w=-new Date(+t).getTimezoneOffset()-_,E=_!==o,T=w-p;if(E&&T){Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+T);const k=Yr(t.timeZone,t),D=k>0?Math.floor(k):Math.ceil(k),j=_-D;j&&(t.internal.setUTCMinutes(t.internal.getUTCMinutes()+j),Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+j))}}class Bt extends Jn{static tz(a,...o){return o.length?new Bt(...o,a):new Bt(Date.now(),a)}toISOString(){const[a,o,l]=this.tzComponents(),s=`${a}${o}:${l}`;return this.internal.toISOString().slice(0,-1)+s}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[a,o,l,s]=this.internal.toUTCString().split(" ");return`${a?.slice(0,-1)} ${l} ${o} ${s}`}toTimeString(){const a=this.internal.toUTCString().split(" ")[4],[o,l,s]=this.tzComponents();return`${a} GMT${o}${l}${s} (${Gz(this.timeZone,this)})`}toLocaleString(a,o){return Date.prototype.toLocaleString.call(this,a,{...o,timeZone:o?.timeZone||this.timeZone})}toLocaleDateString(a,o){return Date.prototype.toLocaleDateString.call(this,a,{...o,timeZone:o?.timeZone||this.timeZone})}toLocaleTimeString(a,o){return Date.prototype.toLocaleTimeString.call(this,a,{...o,timeZone:o?.timeZone||this.timeZone})}tzComponents(){const a=this.getTimezoneOffset(),o=a>0?"-":"+",l=String(Math.floor(Math.abs(a)/60)).padStart(2,"0"),s=String(Math.abs(a)%60).padStart(2,"0");return[o,l,s]}withTimeZone(a){return new Bt(+this,a)}[Symbol.for("constructDateFrom")](a){return new Bt(+new Date(a),this.timeZone)}}const ox=5,Fz=4;function $z(t,a){const o=a.startOfMonth(t),l=o.getDay()>0?o.getDay():7,s=a.addDays(t,-l+1),c=a.addDays(s,ox*7-1);return a.getMonth(t)===a.getMonth(c)?ox:Fz}function Cw(t,a){const o=a.startOfMonth(t),l=o.getDay();return l===1?o:l===0?a.addDays(o,-6):a.addDays(o,-1*(l-1))}function Kz(t,a){const o=Cw(t,a),l=$z(t,a);return a.addDays(o,l*7-1)}const Ew={...Xo,labels:{labelDayButton:(t,a,o,l)=>{let s;l&&typeof l.format=="function"?s=l.format.bind(l):s=(f,d)=>Zn(f,d,{locale:Xo,...o});let c=s(t,"PPPP");return a.today&&(c=`Today, ${c}`),a.selected&&(c=`${c}, selected`),c},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:t=>`Week ${t}`,labelYearDropdown:"Choose the Year",labelGrid:(t,a,o)=>{let l;return o&&typeof o.format=="function"?l=o.format.bind(o):l=(s,c)=>Zn(s,c,{locale:Xo,...a}),l(t,"LLLL yyyy")},labelGridcell:(t,a,o,l)=>{let s;l&&typeof l.format=="function"?s=l.format.bind(l):s=(f,d)=>Zn(f,d,{locale:Xo,...o});let c=s(t,"PPPP");return a?.today&&(c=`Today, ${c}`),c},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(t,a,o)=>{let l;return o&&typeof o.format=="function"?l=o.format.bind(o):l=(s,c)=>Zn(s,c,{locale:Xo,...a}),l(t,"cccc")}}};class fn{constructor(a,o){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?Bt.tz(this.options.timeZone):new this.Date,this.newDate=(l,s,c)=>this.overrides?.newDate?this.overrides.newDate(l,s,c):this.options.timeZone?new Bt(l,s,c,this.options.timeZone):new Date(l,s,c),this.addDays=(l,s)=>this.overrides?.addDays?this.overrides.addDays(l,s):fw(l,s),this.addMonths=(l,s)=>this.overrides?.addMonths?this.overrides.addMonths(l,s):mw(l,s),this.addWeeks=(l,s)=>this.overrides?.addWeeks?this.overrides.addWeeks(l,s):fA(l,s),this.addYears=(l,s)=>this.overrides?.addYears?this.overrides.addYears(l,s):mA(l,s),this.differenceInCalendarDays=(l,s)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(l,s):Rp(l,s),this.differenceInCalendarMonths=(l,s)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(l,s):gw(l,s),this.eachMonthOfInterval=l=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(l):bA(l),this.eachYearOfInterval=l=>{const s=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(l):wA(l),c=new Set(s.map(d=>this.getYear(d)));if(c.size===s.length)return s;const f=[];return c.forEach(d=>{f.push(new Date(d,0,1))}),f},this.endOfBroadcastWeek=l=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(l):Kz(l,this),this.endOfISOWeek=l=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(l):_A(l),this.endOfMonth=l=>this.overrides?.endOfMonth?this.overrides.endOfMonth(l):yA(l),this.endOfWeek=(l,s)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(l,s):bw(l,this.options),this.endOfYear=l=>this.overrides?.endOfYear?this.overrides.endOfYear(l):SA(l),this.format=(l,s,c)=>{const f=this.overrides?.format?this.overrides.format(l,s,this.options):Zn(l,s,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(f):f},this.getISOWeek=l=>this.overrides?.getISOWeek?this.overrides.getISOWeek(l):Ap(l),this.getMonth=(l,s)=>this.overrides?.getMonth?this.overrides.getMonth(l,this.options):xz(l,this.options),this.getYear=(l,s)=>this.overrides?.getYear?this.overrides.getYear(l,this.options):Sz(l,this.options),this.getWeek=(l,s)=>this.overrides?.getWeek?this.overrides.getWeek(l,this.options):zp(l,this.options),this.isAfter=(l,s)=>this.overrides?.isAfter?this.overrides.isAfter(l,s):wz(l,s),this.isBefore=(l,s)=>this.overrides?.isBefore?this.overrides.isBefore(l,s):_z(l,s),this.isDate=l=>this.overrides?.isDate?this.overrides.isDate(l):hw(l),this.isSameDay=(l,s)=>this.overrides?.isSameDay?this.overrides.isSameDay(l,s):gA(l,s),this.isSameMonth=(l,s)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(l,s):Cz(l,s),this.isSameYear=(l,s)=>this.overrides?.isSameYear?this.overrides.isSameYear(l,s):Ez(l,s),this.max=l=>this.overrides?.max?this.overrides.max(l):pA(l),this.min=l=>this.overrides?.min?this.overrides.min(l):hA(l),this.setMonth=(l,s)=>this.overrides?.setMonth?this.overrides.setMonth(l,s):Yz(l,s),this.setYear=(l,s)=>this.overrides?.setYear?this.overrides.setYear(l,s):Iz(l,s),this.startOfBroadcastWeek=(l,s)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(l,this):Cw(l,this),this.startOfDay=l=>this.overrides?.startOfDay?this.overrides.startOfDay(l):Ri(l),this.startOfISOWeek=l=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(l):ji(l),this.startOfMonth=l=>this.overrides?.startOfMonth?this.overrides.startOfMonth(l):xA(l),this.startOfWeek=(l,s)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(l,this.options):ll(l,this.options),this.startOfYear=l=>this.overrides?.startOfYear?this.overrides.startOfYear(l):yw(l),this.options={locale:Ew,...a},this.overrides=o}getDigitMap(){const{numerals:a="latn"}=this.options,o=new Intl.NumberFormat("en-US",{numberingSystem:a}),l={};for(let s=0;s<10;s++)l[s.toString()]=o.format(s);return l}replaceDigits(a){const o=this.getDigitMap();return a.replace(/\d/g,l=>o[l]||l)}formatNumber(a){return this.replaceDigits(a.toString())}getMonthYearOrder(){const a=this.options.locale?.code;return a&&fn.yearFirstLocales.has(a)?"year-first":"month-first"}formatMonthYear(a){const{locale:o,timeZone:l,numerals:s}=this.options,c=o?.code;if(c&&fn.yearFirstLocales.has(c))try{return new Intl.DateTimeFormat(c,{month:"long",year:"numeric",timeZone:l,numberingSystem:s}).format(a)}catch{}const f=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(a,f)}}fn.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const la=new fn;class Mw{constructor(a,o,l=la){this.date=a,this.displayMonth=o,this.outside=!!(o&&!l.isSameMonth(a,o)),this.dateLib=l,this.isoDate=l.format(a,"yyyy-MM-dd"),this.displayMonthId=l.format(o,"yyyy-MM"),this.dateMonthId=l.format(a,"yyyy-MM")}isEqualTo(a){return this.dateLib.isSameDay(a.date,this.date)&&this.dateLib.isSameMonth(a.displayMonth,this.displayMonth)}}class Xz{constructor(a,o){this.date=a,this.weeks=o}}class Zz{constructor(a,o){this.days=o,this.weekNumber=a}}function Qz(t){return fe.createElement("button",{...t})}function Jz(t){return fe.createElement("span",{...t})}function e3(t){const{size:a=24,orientation:o="left",className:l}=t;return fe.createElement("svg",{className:l,width:a,height:a,viewBox:"0 0 24 24"},o==="up"&&fe.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),o==="down"&&fe.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),o==="left"&&fe.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),o==="right"&&fe.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function t3(t){const{day:a,modifiers:o,...l}=t;return fe.createElement("td",{...l})}function n3(t){const{day:a,modifiers:o,...l}=t,s=fe.useRef(null);return fe.useEffect(()=>{o.focused&&s.current?.focus()},[o.focused]),fe.createElement("button",{ref:s,...l})}var Se;(function(t){t.Root="root",t.Chevron="chevron",t.Day="day",t.DayButton="day_button",t.CaptionLabel="caption_label",t.Dropdowns="dropdowns",t.Dropdown="dropdown",t.DropdownRoot="dropdown_root",t.Footer="footer",t.MonthGrid="month_grid",t.MonthCaption="month_caption",t.MonthsDropdown="months_dropdown",t.Month="month",t.Months="months",t.Nav="nav",t.NextMonthButton="button_next",t.PreviousMonthButton="button_previous",t.Week="week",t.Weeks="weeks",t.Weekday="weekday",t.Weekdays="weekdays",t.WeekNumber="week_number",t.WeekNumberHeader="week_number_header",t.YearsDropdown="years_dropdown"})(Se||(Se={}));var ut;(function(t){t.disabled="disabled",t.hidden="hidden",t.outside="outside",t.focused="focused",t.today="today"})(ut||(ut={}));var Ln;(function(t){t.range_end="range_end",t.range_middle="range_middle",t.range_start="range_start",t.selected="selected"})(Ln||(Ln={}));var cn;(function(t){t.weeks_before_enter="weeks_before_enter",t.weeks_before_exit="weeks_before_exit",t.weeks_after_enter="weeks_after_enter",t.weeks_after_exit="weeks_after_exit",t.caption_after_enter="caption_after_enter",t.caption_after_exit="caption_after_exit",t.caption_before_enter="caption_before_enter",t.caption_before_exit="caption_before_exit"})(cn||(cn={}));function a3(t){const{options:a,className:o,components:l,classNames:s,...c}=t,f=[s[Se.Dropdown],o].join(" "),d=a?.find(({value:p})=>p===c.value);return fe.createElement("span",{"data-disabled":c.disabled,className:s[Se.DropdownRoot]},fe.createElement(l.Select,{className:f,...c},a?.map(({value:p,label:g,disabled:y})=>fe.createElement(l.Option,{key:p,value:p,disabled:y},g))),fe.createElement("span",{className:s[Se.CaptionLabel],"aria-hidden":!0},d?.label,fe.createElement(l.Chevron,{orientation:"down",size:18,className:s[Se.Chevron]})))}function r3(t){return fe.createElement("div",{...t})}function o3(t){return fe.createElement("div",{...t})}function l3(t){const{calendarMonth:a,displayIndex:o,...l}=t;return fe.createElement("div",{...l},t.children)}function i3(t){const{calendarMonth:a,displayIndex:o,...l}=t;return fe.createElement("div",{...l})}function s3(t){return fe.createElement("table",{...t})}function c3(t){return fe.createElement("div",{...t})}const Nw=v.createContext(void 0);function qi(){const t=v.useContext(Nw);if(t===void 0)throw new Error("useDayPicker() must be used within a custom component.");return t}function u3(t){const{components:a}=qi();return fe.createElement(a.Dropdown,{...t})}function d3(t){const{onPreviousClick:a,onNextClick:o,previousMonth:l,nextMonth:s,...c}=t,{components:f,classNames:d,labels:{labelPrevious:p,labelNext:g}}=qi(),y=v.useCallback(S=>{s&&o?.(S)},[s,o]),b=v.useCallback(S=>{l&&a?.(S)},[l,a]);return fe.createElement("nav",{...c},fe.createElement(f.PreviousMonthButton,{type:"button",className:d[Se.PreviousMonthButton],tabIndex:l?void 0:-1,"aria-disabled":l?void 0:!0,"aria-label":p(l),onClick:b},fe.createElement(f.Chevron,{disabled:l?void 0:!0,className:d[Se.Chevron],orientation:"left"})),fe.createElement(f.NextMonthButton,{type:"button",className:d[Se.NextMonthButton],tabIndex:s?void 0:-1,"aria-disabled":s?void 0:!0,"aria-label":g(s),onClick:y},fe.createElement(f.Chevron,{disabled:s?void 0:!0,orientation:"right",className:d[Se.Chevron]})))}function f3(t){const{components:a}=qi();return fe.createElement(a.Button,{...t})}function m3(t){return fe.createElement("option",{...t})}function p3(t){const{components:a}=qi();return fe.createElement(a.Button,{...t})}function h3(t){const{rootRef:a,...o}=t;return fe.createElement("div",{...o,ref:a})}function g3(t){return fe.createElement("select",{...t})}function v3(t){const{week:a,...o}=t;return fe.createElement("tr",{...o})}function y3(t){return fe.createElement("th",{...t})}function b3(t){return fe.createElement("thead",{"aria-hidden":!0},fe.createElement("tr",{...t}))}function x3(t){const{week:a,...o}=t;return fe.createElement("th",{...o})}function S3(t){return fe.createElement("th",{...t})}function w3(t){return fe.createElement("tbody",{...t})}function _3(t){const{components:a}=qi();return fe.createElement(a.Dropdown,{...t})}const C3=Object.freeze(Object.defineProperty({__proto__:null,Button:Qz,CaptionLabel:Jz,Chevron:e3,Day:t3,DayButton:n3,Dropdown:a3,DropdownNav:r3,Footer:o3,Month:l3,MonthCaption:i3,MonthGrid:s3,Months:c3,MonthsDropdown:u3,Nav:d3,NextMonthButton:f3,Option:m3,PreviousMonthButton:p3,Root:h3,Select:g3,Week:v3,WeekNumber:x3,WeekNumberHeader:S3,Weekday:y3,Weekdays:b3,Weeks:w3,YearsDropdown:_3},Symbol.toStringTag,{value:"Module"}));function Na(t,a,o=!1,l=la){let{from:s,to:c}=t;const{differenceInCalendarDays:f,isSameDay:d}=l;return s&&c?(f(c,s)<0&&([s,c]=[c,s]),f(a,s)>=(o?1:0)&&f(c,a)>=(o?1:0)):!o&&c?d(c,a):!o&&s?d(s,a):!1}function Up(t){return!!(t&&typeof t=="object"&&"before"in t&&"after"in t)}function su(t){return!!(t&&typeof t=="object"&&"from"in t)}function Lp(t){return!!(t&&typeof t=="object"&&"after"in t)}function Pp(t){return!!(t&&typeof t=="object"&&"before"in t)}function Tw(t){return!!(t&&typeof t=="object"&&"dayOfWeek"in t)}function kw(t,a){return Array.isArray(t)&&t.every(a.isDate)}function Ta(t,a,o=la){const l=Array.isArray(a)?a:[a],{isSameDay:s,differenceInCalendarDays:c,isAfter:f}=o;return l.some(d=>{if(typeof d=="boolean")return d;if(o.isDate(d))return s(t,d);if(kw(d,o))return d.some(p=>s(t,p));if(su(d))return Na(d,t,!1,o);if(Tw(d))return Array.isArray(d.dayOfWeek)?d.dayOfWeek.includes(t.getDay()):d.dayOfWeek===t.getDay();if(Up(d)){const p=c(d.before,t),g=c(d.after,t),y=p>0,b=g<0;return f(d.before,d.after)?b&&y:y||b}return Lp(d)?c(t,d.after)>0:Pp(d)?c(d.before,t)>0:typeof d=="function"?d(t):!1})}function E3(t,a,o,l,s){const{disabled:c,hidden:f,modifiers:d,showOutsideDays:p,broadcastCalendar:g,today:y=s.today()}=a,{isSameDay:b,isSameMonth:S,startOfMonth:_,isBefore:M,endOfMonth:w,isAfter:E}=s,T=o&&_(o),k=l&&w(l),D={[ut.focused]:[],[ut.outside]:[],[ut.disabled]:[],[ut.hidden]:[],[ut.today]:[]},j={};for(const R of t){const{date:U,displayMonth:Y}=R,H=!!(Y&&!S(U,Y)),ie=!!(T&&M(U,T)),oe=!!(k&&E(U,k)),O=!!(c&&Ta(U,c,s)),J=!!(f&&Ta(U,f,s))||ie||oe||!g&&!p&&H||g&&p===!1&&H,le=b(U,y);H&&D.outside.push(R),O&&D.disabled.push(R),J&&D.hidden.push(R),le&&D.today.push(R),d&&Object.keys(d).forEach(ae=>{const V=d?.[ae];V&&Ta(U,V,s)&&(j[ae]?j[ae].push(R):j[ae]=[R])})}return R=>{const U={[ut.focused]:!1,[ut.disabled]:!1,[ut.hidden]:!1,[ut.outside]:!1,[ut.today]:!1},Y={};for(const H in D){const ie=D[H];U[H]=ie.some(oe=>oe===R)}for(const H in j)Y[H]=j[H].some(ie=>ie===R);return{...U,...Y}}}function M3(t,a,o={}){return Object.entries(t).filter(([,s])=>s===!0).reduce((s,[c])=>(o[c]?s.push(o[c]):a[ut[c]]?s.push(a[ut[c]]):a[Ln[c]]&&s.push(a[Ln[c]]),s),[a[Se.Day]])}function N3(t){return{...C3,...t}}function T3(t){const a={"data-mode":t.mode??void 0,"data-required":"required"in t?t.required:void 0,"data-multiple-months":t.numberOfMonths&&t.numberOfMonths>1||void 0,"data-week-numbers":t.showWeekNumber||void 0,"data-broadcast-calendar":t.broadcastCalendar||void 0,"data-nav-layout":t.navLayout||void 0};return Object.entries(t).forEach(([o,l])=>{o.startsWith("data-")&&(a[o]=l)}),a}function Bp(){const t={};for(const a in Se)t[Se[a]]=`rdp-${Se[a]}`;for(const a in ut)t[ut[a]]=`rdp-${ut[a]}`;for(const a in Ln)t[Ln[a]]=`rdp-${Ln[a]}`;for(const a in cn)t[cn[a]]=`rdp-${cn[a]}`;return t}function Ow(t,a,o){return(o??new fn(a)).formatMonthYear(t)}const k3=Ow;function O3(t,a,o){return(o??new fn(a)).format(t,"d")}function D3(t,a=la){return a.format(t,"LLLL")}function j3(t,a,o){return(o??new fn(a)).format(t,"cccccc")}function R3(t,a=la){return t<10?a.formatNumber(`0${t.toLocaleString()}`):a.formatNumber(`${t.toLocaleString()}`)}function A3(){return""}function Dw(t,a=la){return a.format(t,"yyyy")}const z3=Dw,U3=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:Ow,formatDay:O3,formatMonthCaption:k3,formatMonthDropdown:D3,formatWeekNumber:R3,formatWeekNumberHeader:A3,formatWeekdayName:j3,formatYearCaption:z3,formatYearDropdown:Dw},Symbol.toStringTag,{value:"Module"}));function L3(t){return t?.formatMonthCaption&&!t.formatCaption&&(t.formatCaption=t.formatMonthCaption),t?.formatYearCaption&&!t.formatYearDropdown&&(t.formatYearDropdown=t.formatYearCaption),{...U3,...t}}function Hp(t,a,o,l){let s=(l??new fn(o)).format(t,"PPPP");return a.today&&(s=`Today, ${s}`),a.selected&&(s=`${s}, selected`),s}const P3=Hp;function Yp(t,a,o){return(o??new fn(a)).formatMonthYear(t)}const B3=Yp;function jw(t,a,o,l){let s=(l??new fn(o)).format(t,"PPPP");return a?.today&&(s=`Today, ${s}`),s}function Rw(t){return"Choose the Month"}function Aw(){return""}const H3="Go to the Next Month";function zw(t,a){return H3}function Uw(t){return"Go to the Previous Month"}function Lw(t,a,o){return(o??new fn(a)).format(t,"cccc")}function Pw(t,a){return`Week ${t}`}function Bw(t){return"Week Number"}function Hw(t){return"Choose the Year"}const Y3=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:B3,labelDay:P3,labelDayButton:Hp,labelGrid:Yp,labelGridcell:jw,labelMonthDropdown:Rw,labelNav:Aw,labelNext:zw,labelPrevious:Uw,labelWeekNumber:Pw,labelWeekNumberHeader:Bw,labelWeekday:Lw,labelYearDropdown:Hw},Symbol.toStringTag,{value:"Module"})),An=(t,a,o)=>a||(o?typeof o=="function"?o:(...l)=>o:t);function I3(t,a){const o=a.locale?.labels??{};return{...Y3,...t??{},labelDayButton:An(Hp,t?.labelDayButton,o.labelDayButton),labelMonthDropdown:An(Rw,t?.labelMonthDropdown,o.labelMonthDropdown),labelNext:An(zw,t?.labelNext,o.labelNext),labelPrevious:An(Uw,t?.labelPrevious,o.labelPrevious),labelWeekNumber:An(Pw,t?.labelWeekNumber,o.labelWeekNumber),labelYearDropdown:An(Hw,t?.labelYearDropdown,o.labelYearDropdown),labelGrid:An(Yp,t?.labelGrid,o.labelGrid),labelGridcell:An(jw,t?.labelGridcell,o.labelGridcell),labelNav:An(Aw,t?.labelNav,o.labelNav),labelWeekNumberHeader:An(Bw,t?.labelWeekNumberHeader,o.labelWeekNumberHeader),labelWeekday:An(Lw,t?.labelWeekday,o.labelWeekday)}}function G3(t,a,o,l,s){const{startOfMonth:c,startOfYear:f,endOfYear:d,eachMonthOfInterval:p,getMonth:g}=s;return p({start:f(t),end:d(t)}).map(S=>{const _=l.formatMonthDropdown(S,s),M=g(S),w=a&&S<c(a)||o&&S>c(o)||!1;return{value:M,label:_,disabled:w}})}function V3(t,a={},o={}){let l={...a?.[Se.Day]};return Object.entries(t).filter(([,s])=>s===!0).forEach(([s])=>{l={...l,...o?.[s]}}),l}function q3(t,a,o,l){const s=l??t.today(),c=o?t.startOfBroadcastWeek(s,t):a?t.startOfISOWeek(s):t.startOfWeek(s),f=[];for(let d=0;d<7;d++){const p=t.addDays(c,d);f.push(p)}return f}function W3(t,a,o,l,s=!1){if(!t||!a)return;const{startOfYear:c,endOfYear:f,eachYearOfInterval:d,getYear:p}=l,g=c(t),y=f(a),b=d({start:g,end:y});return s&&b.reverse(),b.map(S=>{const _=o.formatYearDropdown(S,l);return{value:p(S),label:_,disabled:!1}})}function F3(t,a={}){const{weekStartsOn:o,locale:l}=a,s=o??l?.options?.weekStartsOn??0,c=d=>{const p=typeof d=="number"||typeof d=="string"?new Date(d):d;return new Bt(p.getFullYear(),p.getMonth(),p.getDate(),12,0,0,t)},f=d=>{const p=c(d);return new Date(p.getFullYear(),p.getMonth(),p.getDate(),0,0,0,0)};return{today:()=>c(Bt.tz(t)),newDate:(d,p,g)=>new Bt(d,p,g,12,0,0,t),startOfDay:d=>c(d),startOfWeek:(d,p)=>{const g=c(d),y=p?.weekStartsOn??s,b=(g.getDay()-y+7)%7;return g.setDate(g.getDate()-b),g},startOfISOWeek:d=>{const p=c(d),g=(p.getDay()-1+7)%7;return p.setDate(p.getDate()-g),p},startOfMonth:d=>{const p=c(d);return p.setDate(1),p},startOfYear:d=>{const p=c(d);return p.setMonth(0,1),p},endOfWeek:(d,p)=>{const g=c(d),S=(((p?.weekStartsOn??s)+6)%7-g.getDay()+7)%7;return g.setDate(g.getDate()+S),g},endOfISOWeek:d=>{const p=c(d),g=(7-p.getDay())%7;return p.setDate(p.getDate()+g),p},endOfMonth:d=>{const p=c(d);return p.setMonth(p.getMonth()+1,0),p},endOfYear:d=>{const p=c(d);return p.setMonth(11,31),p},eachMonthOfInterval:d=>{const p=c(d.start),g=c(d.end),y=[],b=new Bt(p.getFullYear(),p.getMonth(),1,12,0,0,t),S=g.getFullYear()*12+g.getMonth();for(;b.getFullYear()*12+b.getMonth()<=S;)y.push(new Bt(b,t)),b.setMonth(b.getMonth()+1,1);return y},addDays:(d,p)=>{const g=c(d);return g.setDate(g.getDate()+p),g},addWeeks:(d,p)=>{const g=c(d);return g.setDate(g.getDate()+p*7),g},addMonths:(d,p)=>{const g=c(d);return g.setMonth(g.getMonth()+p),g},addYears:(d,p)=>{const g=c(d);return g.setFullYear(g.getFullYear()+p),g},eachYearOfInterval:d=>{const p=c(d.start),g=c(d.end),y=[],b=new Bt(p.getFullYear(),0,1,12,0,0,t);for(;b.getFullYear()<=g.getFullYear();)y.push(new Bt(b,t)),b.setFullYear(b.getFullYear()+1,0,1);return y},getWeek:(d,p)=>{const g=f(d);return zp(g,{weekStartsOn:p?.weekStartsOn??s,firstWeekContainsDate:p?.firstWeekContainsDate??l?.options?.firstWeekContainsDate??1})},getISOWeek:d=>{const p=f(d);return Ap(p)},differenceInCalendarDays:(d,p)=>{const g=f(d),y=f(p);return Rp(g,y)},differenceInCalendarMonths:(d,p)=>{const g=f(d),y=f(p);return gw(g,y)}}}const Wi=t=>t instanceof HTMLElement?t:null,Zf=t=>[...t.querySelectorAll("[data-animated-month]")??[]],$3=t=>Wi(t.querySelector("[data-animated-month]")),Qf=t=>Wi(t.querySelector("[data-animated-caption]")),Jf=t=>Wi(t.querySelector("[data-animated-weeks]")),K3=t=>Wi(t.querySelector("[data-animated-nav]")),X3=t=>Wi(t.querySelector("[data-animated-weekdays]"));function Z3(t,a,{classNames:o,months:l,focused:s,dateLib:c}){const f=v.useRef(null),d=v.useRef(l),p=v.useRef(!1);v.useLayoutEffect(()=>{const g=d.current;if(d.current=l,!a||!t.current||!(t.current instanceof HTMLElement)||l.length===0||g.length===0||l.length!==g.length)return;const y=c.isSameMonth(l[0].date,g[0].date),b=c.isAfter(l[0].date,g[0].date),S=b?o[cn.caption_after_enter]:o[cn.caption_before_enter],_=b?o[cn.weeks_after_enter]:o[cn.weeks_before_enter],M=f.current,w=t.current.cloneNode(!0);if(w instanceof HTMLElement?(Zf(w).forEach(D=>{if(!(D instanceof HTMLElement))return;const j=$3(D);j&&D.contains(j)&&D.removeChild(j);const R=Qf(D);R&&R.classList.remove(S);const U=Jf(D);U&&U.classList.remove(_)}),f.current=w):f.current=null,p.current||y||s)return;const E=M instanceof HTMLElement?Zf(M):[],T=Zf(t.current);if(T?.every(k=>k instanceof HTMLElement)&&E&&E.every(k=>k instanceof HTMLElement)){p.current=!0,t.current.style.isolation="isolate";const k=K3(t.current);k&&(k.style.zIndex="1"),T.forEach((D,j)=>{const R=E[j];if(!R)return;D.style.position="relative",D.style.overflow="hidden";const U=Qf(D);U&&U.classList.add(S);const Y=Jf(D);Y&&Y.classList.add(_);const H=()=>{p.current=!1,t.current&&(t.current.style.isolation=""),k&&(k.style.zIndex=""),U&&U.classList.remove(S),Y&&Y.classList.remove(_),D.style.position="",D.style.overflow="",D.contains(R)&&D.removeChild(R)};R.style.pointerEvents="none",R.style.position="absolute",R.style.overflow="hidden",R.setAttribute("aria-hidden","true");const ie=X3(R);ie&&(ie.style.opacity="0");const oe=Qf(R);oe&&(oe.classList.add(b?o[cn.caption_before_exit]:o[cn.caption_after_exit]),oe.addEventListener("animationend",H));const O=Jf(R);O&&O.classList.add(b?o[cn.weeks_before_exit]:o[cn.weeks_after_exit]),D.insertBefore(R,D.firstChild)})}})}function Q3(t,a,o,l){const s=t[0],c=t[t.length-1],{ISOWeek:f,fixedWeeks:d,broadcastCalendar:p}=o??{},{addDays:g,differenceInCalendarDays:y,differenceInCalendarMonths:b,endOfBroadcastWeek:S,endOfISOWeek:_,endOfMonth:M,endOfWeek:w,isAfter:E,startOfBroadcastWeek:T,startOfISOWeek:k,startOfWeek:D}=l,j=p?T(s,l):f?k(s):D(s),R=p?S(c):f?_(M(c)):w(M(c)),U=a&&(p?S(a):f?_(a):w(a)),Y=U&&E(R,U)?U:R,H=y(Y,j),ie=b(c,s)+1,oe=[];for(let le=0;le<=H;le++){const ae=g(j,le);oe.push(ae)}const J=(p?35:42)*ie;if(d&&oe.length<J){const le=J-oe.length;for(let ae=0;ae<le;ae++){const V=g(oe[oe.length-1],1);oe.push(V)}}return oe}function J3(t){const a=[];return t.reduce((o,l)=>{const s=l.weeks.reduce((c,f)=>c.concat(f.days.slice()),a.slice());return o.concat(s.slice())},a.slice())}function e4(t,a,o,l){const{numberOfMonths:s=1}=o,c=[];for(let f=0;f<s;f++){const d=l.addMonths(t,f);if(a&&d>a)break;c.push(d)}return c}function lx(t,a,o,l){const{month:s,defaultMonth:c,today:f=l.today(),numberOfMonths:d=1}=t;let p=s||c||f;const{differenceInCalendarMonths:g,addMonths:y,startOfMonth:b}=l;if(o&&g(o,p)<d-1){const S=-1*(d-1);p=y(o,S)}return a&&g(p,a)<0&&(p=a),b(p)}function t4(t,a,o,l){const{addDays:s,endOfBroadcastWeek:c,endOfISOWeek:f,endOfMonth:d,endOfWeek:p,getISOWeek:g,getWeek:y,startOfBroadcastWeek:b,startOfISOWeek:S,startOfWeek:_}=l,M=t.reduce((w,E)=>{const T=o.broadcastCalendar?b(E,l):o.ISOWeek?S(E):_(E),k=o.broadcastCalendar?c(E):o.ISOWeek?f(d(E)):p(d(E)),D=a.filter(Y=>Y>=T&&Y<=k),j=o.broadcastCalendar?35:42;if(o.fixedWeeks&&D.length<j){const Y=a.filter(H=>{const ie=j-D.length;return H>k&&H<=s(k,ie)});D.push(...Y)}const R=D.reduce((Y,H)=>{const ie=o.ISOWeek?g(H):y(H),oe=Y.find(J=>J.weekNumber===ie),O=new Mw(H,E,l);return oe?oe.days.push(O):Y.push(new Zz(ie,[O])),Y},[]),U=new Xz(E,R);return w.push(U),w},[]);return o.reverseMonths?M.reverse():M}function n4(t,a){let{startMonth:o,endMonth:l}=t;const{startOfYear:s,startOfDay:c,startOfMonth:f,endOfMonth:d,addYears:p,endOfYear:g,newDate:y,today:b}=a,{fromYear:S,toYear:_,fromMonth:M,toMonth:w}=t;!o&&M&&(o=M),!o&&S&&(o=a.newDate(S,0,1)),!l&&w&&(l=w),!l&&_&&(l=y(_,11,31));const E=t.captionLayout==="dropdown"||t.captionLayout==="dropdown-years";return o?o=f(o):S?o=y(S,0,1):!o&&E&&(o=s(p(t.today??b(),-100))),l?l=d(l):_?l=y(_,11,31):!l&&E&&(l=g(t.today??b())),[o&&c(o),l&&c(l)]}function a4(t,a,o,l){if(o.disableNavigation)return;const{pagedNavigation:s,numberOfMonths:c=1}=o,{startOfMonth:f,addMonths:d,differenceInCalendarMonths:p}=l,g=s?c:1,y=f(t);if(!a)return d(y,g);if(!(p(a,t)<c))return d(y,g)}function r4(t,a,o,l){if(o.disableNavigation)return;const{pagedNavigation:s,numberOfMonths:c}=o,{startOfMonth:f,addMonths:d,differenceInCalendarMonths:p}=l,g=s?c??1:1,y=f(t);if(!a)return d(y,-g);if(!(p(y,a)<=0))return d(y,-g)}function o4(t){const a=[];return t.reduce((o,l)=>o.concat(l.weeks.slice()),a.slice())}function cu(t,a){const[o,l]=v.useState(t);return[a===void 0?o:a,l]}function l4(t,a){const[o,l]=n4(t,a),{startOfMonth:s,endOfMonth:c}=a,f=lx(t,o,l,a),[d,p]=cu(f,t.month?f:void 0);v.useEffect(()=>{const j=lx(t,o,l,a);p(j)},[t.timeZone]);const{months:g,weeks:y,days:b,previousMonth:S,nextMonth:_}=v.useMemo(()=>{const j=e4(d,l,{numberOfMonths:t.numberOfMonths},a),R=Q3(j,t.endMonth?c(t.endMonth):void 0,{ISOWeek:t.ISOWeek,fixedWeeks:t.fixedWeeks,broadcastCalendar:t.broadcastCalendar},a),U=t4(j,R,{broadcastCalendar:t.broadcastCalendar,fixedWeeks:t.fixedWeeks,ISOWeek:t.ISOWeek,reverseMonths:t.reverseMonths},a),Y=o4(U),H=J3(U),ie=r4(d,o,t,a),oe=a4(d,l,t,a);return{months:U,weeks:Y,days:H,previousMonth:ie,nextMonth:oe}},[a,d.getTime(),l?.getTime(),o?.getTime(),t.disableNavigation,t.broadcastCalendar,t.endMonth?.getTime(),t.fixedWeeks,t.ISOWeek,t.numberOfMonths,t.pagedNavigation,t.reverseMonths]),{disableNavigation:M,onMonthChange:w}=t,E=j=>y.some(R=>R.days.some(U=>U.isEqualTo(j))),T=j=>{if(M)return;let R=s(j);o&&R<s(o)&&(R=s(o)),l&&R>s(l)&&(R=s(l)),p(R),w?.(R)};return{months:g,weeks:y,days:b,navStart:o,navEnd:l,previousMonth:S,nextMonth:_,goToMonth:T,goToDay:j=>{E(j)||T(j.date)}}}var Fn;(function(t){t[t.Today=0]="Today",t[t.Selected=1]="Selected",t[t.LastFocused=2]="LastFocused",t[t.FocusedModifier=3]="FocusedModifier"})(Fn||(Fn={}));function ix(t){return!t[ut.disabled]&&!t[ut.hidden]&&!t[ut.outside]}function i4(t,a,o,l){let s,c=-1;for(const f of t){const d=a(f);ix(d)&&(d[ut.focused]&&c<Fn.FocusedModifier?(s=f,c=Fn.FocusedModifier):l?.isEqualTo(f)&&c<Fn.LastFocused?(s=f,c=Fn.LastFocused):o(f.date)&&c<Fn.Selected?(s=f,c=Fn.Selected):d[ut.today]&&c<Fn.Today&&(s=f,c=Fn.Today))}return s||(s=t.find(f=>ix(a(f)))),s}function s4(t,a,o,l,s,c,f){const{ISOWeek:d,broadcastCalendar:p}=c,{addDays:g,addMonths:y,addWeeks:b,addYears:S,endOfBroadcastWeek:_,endOfISOWeek:M,endOfWeek:w,max:E,min:T,startOfBroadcastWeek:k,startOfISOWeek:D,startOfWeek:j}=f;let U={day:g,week:b,month:y,year:S,startOfWeek:Y=>p?k(Y,f):d?D(Y):j(Y),endOfWeek:Y=>p?_(Y):d?M(Y):w(Y)}[t](o,a==="after"?1:-1);return a==="before"&&l?U=E([l,U]):a==="after"&&s&&(U=T([s,U])),U}function Yw(t,a,o,l,s,c,f,d=0){if(d>365)return;const p=s4(t,a,o.date,l,s,c,f),g=!!(c.disabled&&Ta(p,c.disabled,f)),y=!!(c.hidden&&Ta(p,c.hidden,f)),b=p,S=new Mw(p,b,f);return!g&&!y?S:Yw(t,a,S,l,s,c,f,d+1)}function c4(t,a,o,l,s){const{autoFocus:c}=t,[f,d]=v.useState(),p=i4(a.days,o,l||(()=>!1),f),[g,y]=v.useState(c?p:void 0);return{isFocusTarget:w=>!!p?.isEqualTo(w),setFocused:y,focused:g,blur:()=>{d(g),y(void 0)},moveFocus:(w,E)=>{if(!g)return;const T=Yw(w,E,g,a.navStart,a.navEnd,t,s);T&&(t.disableNavigation&&!a.days.some(D=>D.isEqualTo(T))||(a.goToDay(T),y(T)))}}}function u4(t,a){const{selected:o,required:l,onSelect:s}=t,[c,f]=cu(o,s?o:void 0),d=s?o:c,{isSameDay:p}=a,g=_=>d?.some(M=>p(M,_))??!1,{min:y,max:b}=t;return{selected:d,select:(_,M,w)=>{let E=[...d??[]];if(g(_)){if(d?.length===y||l&&d?.length===1)return;E=d?.filter(T=>!p(T,_))}else d?.length===b?E=[_]:E=[...E,_];return s||f(E),s?.(E,_,M,w),E},isSelected:g}}function d4(t,a,o=0,l=0,s=!1,c=la){const{from:f,to:d}=a||{},{isSameDay:p,isAfter:g,isBefore:y}=c;let b;if(!f&&!d)b={from:t,to:o>0?void 0:t};else if(f&&!d)p(f,t)?o===0?b={from:f,to:t}:s?b={from:f,to:void 0}:b=void 0:y(t,f)?b={from:t,to:f}:b={from:f,to:t};else if(f&&d)if(p(f,t)&&p(d,t))s?b={from:f,to:d}:b=void 0;else if(p(f,t))b={from:f,to:o>0?void 0:t};else if(p(d,t))b={from:t,to:o>0?void 0:t};else if(y(t,f))b={from:t,to:d};else if(g(t,f))b={from:f,to:t};else if(g(t,d))b={from:f,to:t};else throw new Error("Invalid range");if(b?.from&&b?.to){const S=c.differenceInCalendarDays(b.to,b.from);l>0&&S>l?b={from:t,to:void 0}:o>1&&S<o&&(b={from:t,to:void 0})}return b}function f4(t,a,o=la){const l=Array.isArray(a)?a:[a];let s=t.from;const c=o.differenceInCalendarDays(t.to,t.from),f=Math.min(c,6);for(let d=0;d<=f;d++){if(l.includes(s.getDay()))return!0;s=o.addDays(s,1)}return!1}function sx(t,a,o=la){return Na(t,a.from,!1,o)||Na(t,a.to,!1,o)||Na(a,t.from,!1,o)||Na(a,t.to,!1,o)}function m4(t,a,o=la){const l=Array.isArray(a)?a:[a];if(l.filter(d=>typeof d!="function").some(d=>typeof d=="boolean"?d:o.isDate(d)?Na(t,d,!1,o):kw(d,o)?d.some(p=>Na(t,p,!1,o)):su(d)?d.from&&d.to?sx(t,{from:d.from,to:d.to},o):!1:Tw(d)?f4(t,d.dayOfWeek,o):Up(d)?o.isAfter(d.before,d.after)?sx(t,{from:o.addDays(d.after,1),to:o.addDays(d.before,-1)},o):Ta(t.from,d,o)||Ta(t.to,d,o):Lp(d)||Pp(d)?Ta(t.from,d,o)||Ta(t.to,d,o):!1))return!0;const f=l.filter(d=>typeof d=="function");if(f.length){let d=t.from;const p=o.differenceInCalendarDays(t.to,t.from);for(let g=0;g<=p;g++){if(f.some(y=>y(d)))return!0;d=o.addDays(d,1)}}return!1}function p4(t,a){const{disabled:o,excludeDisabled:l,selected:s,required:c,onSelect:f}=t,[d,p]=cu(s,f?s:void 0),g=f?s:d;return{selected:g,select:(S,_,M)=>{const{min:w,max:E}=t,T=S?d4(S,g,w,E,c,a):void 0;return l&&o&&T?.from&&T.to&&m4({from:T.from,to:T.to},o,a)&&(T.from=S,T.to=void 0),f||p(T),f?.(T,S,_,M),T},isSelected:S=>g&&Na(g,S,!1,a)}}function h4(t,a){const{selected:o,required:l,onSelect:s}=t,[c,f]=cu(o,s?o:void 0),d=s?o:c,{isSameDay:p}=a;return{selected:d,select:(b,S,_)=>{let M=b;return!l&&d&&d&&p(b,d)&&(M=void 0),s||f(M),s?.(M,b,S,_),M},isSelected:b=>d?p(d,b):!1}}function g4(t,a){const o=h4(t,a),l=u4(t,a),s=p4(t,a);switch(t.mode){case"single":return o;case"multiple":return l;case"range":return s;default:return}}function En(t,a){return t instanceof Bt&&t.timeZone===a?t:new Bt(t,a)}function Ko(t,a,o){return En(t,a)}function cx(t,a,o){return typeof t=="boolean"||typeof t=="function"?t:t instanceof Date?Ko(t,a):Array.isArray(t)?t.map(l=>l instanceof Date?Ko(l,a):l):su(t)?{...t,from:t.from?En(t.from,a):t.from,to:t.to?En(t.to,a):t.to}:Up(t)?{before:Ko(t.before,a),after:Ko(t.after,a)}:Lp(t)?{after:Ko(t.after,a)}:Pp(t)?{before:Ko(t.before,a)}:t}function em(t,a,o){return t&&(Array.isArray(t)?t.map(l=>cx(l,a)):cx(t,a))}function v4(t){let a=t;const o=a.timeZone;if(o&&(a={...t,timeZone:o},a.today&&(a.today=En(a.today,o)),a.month&&(a.month=En(a.month,o)),a.defaultMonth&&(a.defaultMonth=En(a.defaultMonth,o)),a.startMonth&&(a.startMonth=En(a.startMonth,o)),a.endMonth&&(a.endMonth=En(a.endMonth,o)),a.mode==="single"&&a.selected?a.selected=En(a.selected,o):a.mode==="multiple"&&a.selected?a.selected=a.selected?.map(Te=>En(Te,o)):a.mode==="range"&&a.selected&&(a.selected={from:a.selected.from?En(a.selected.from,o):a.selected.from,to:a.selected.to?En(a.selected.to,o):a.selected.to}),a.disabled!==void 0&&(a.disabled=em(a.disabled,o)),a.hidden!==void 0&&(a.hidden=em(a.hidden,o)),a.modifiers)){const Te={};Object.keys(a.modifiers).forEach(Ge=>{Te[Ge]=em(a.modifiers?.[Ge],o)}),a.modifiers=Te}const{components:l,formatters:s,labels:c,dateLib:f,locale:d,classNames:p}=v.useMemo(()=>{const Te={...Ew,...a.locale},Ge=a.broadcastCalendar?1:a.weekStartsOn,_e=a.noonSafe&&a.timeZone?F3(a.timeZone,{weekStartsOn:Ge,locale:Te}):void 0,Le=a.dateLib&&_e?{..._e,...a.dateLib}:a.dateLib??_e,Ct=new fn({locale:Te,weekStartsOn:Ge,firstWeekContainsDate:a.firstWeekContainsDate,useAdditionalWeekYearTokens:a.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:a.useAdditionalDayOfYearTokens,timeZone:a.timeZone,numerals:a.numerals},Le);return{dateLib:Ct,components:N3(a.components),formatters:L3(a.formatters),labels:I3(a.labels,Ct.options),locale:Te,classNames:{...Bp(),...a.classNames}}},[a.locale,a.broadcastCalendar,a.weekStartsOn,a.firstWeekContainsDate,a.useAdditionalWeekYearTokens,a.useAdditionalDayOfYearTokens,a.timeZone,a.numerals,a.dateLib,a.noonSafe,a.components,a.formatters,a.labels,a.classNames]);a.today||(a={...a,today:f.today()});const{captionLayout:g,mode:y,navLayout:b,numberOfMonths:S=1,onDayBlur:_,onDayClick:M,onDayFocus:w,onDayKeyDown:E,onDayMouseEnter:T,onDayMouseLeave:k,onNextClick:D,onPrevClick:j,showWeekNumber:R,styles:U}=a,{formatCaption:Y,formatDay:H,formatMonthDropdown:ie,formatWeekNumber:oe,formatWeekNumberHeader:O,formatWeekdayName:J,formatYearDropdown:le}=s,ae=l4(a,f),{days:V,months:P,navStart:I,navEnd:z,previousMonth:F,nextMonth:ce,goToMonth:ue}=ae,N=E3(V,a,I,z,f),{isSelected:B,select:$,selected:Q}=g4(a,f)??{},{blur:se,focused:X,isFocusTarget:de,moveFocus:xe,setFocused:pe}=c4(a,ae,N,B??(()=>!1),f),{labelDayButton:De,labelGridcell:Ue,labelGrid:xt,labelMonthDropdown:Wt,labelNav:zt,labelPrevious:kn,labelNext:On,labelWeekday:gl,labelWeekNumber:eo,labelWeekNumberHeader:yr,labelYearDropdown:Me}=c,$e=v.useMemo(()=>q3(f,a.ISOWeek,a.broadcastCalendar,a.today),[f,a.ISOWeek,a.broadcastCalendar,a.today]),nt=y!==void 0||M!==void 0,ot=v.useCallback(()=>{F&&(ue(F),j?.(F))},[F,ue,j]),he=v.useCallback(()=>{ce&&(ue(ce),D?.(ce))},[ue,ce,D]),Ie=v.useCallback((Te,Ge)=>_e=>{_e.preventDefault(),_e.stopPropagation(),pe(Te),!Ge.disabled&&($?.(Te.date,Ge,_e),M?.(Te.date,Ge,_e))},[$,M,pe]),Nt=v.useCallback((Te,Ge)=>_e=>{pe(Te),w?.(Te.date,Ge,_e)},[w,pe]),Ut=v.useCallback((Te,Ge)=>_e=>{se(),_?.(Te.date,Ge,_e)},[se,_]),mn=v.useCallback((Te,Ge)=>_e=>{const Le={ArrowLeft:[_e.shiftKey?"month":"day",a.dir==="rtl"?"after":"before"],ArrowRight:[_e.shiftKey?"month":"day",a.dir==="rtl"?"before":"after"],ArrowDown:[_e.shiftKey?"year":"week","after"],ArrowUp:[_e.shiftKey?"year":"week","before"],PageUp:[_e.shiftKey?"year":"month","before"],PageDown:[_e.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(Le[_e.key]){_e.preventDefault(),_e.stopPropagation();const[Ct,ke]=Le[_e.key];xe(Ct,ke)}E?.(Te.date,Ge,_e)},[xe,E,a.dir]),Yn=v.useCallback((Te,Ge)=>_e=>{T?.(Te.date,Ge,_e)},[T]),to=v.useCallback((Te,Ge)=>_e=>{k?.(Te.date,Ge,_e)},[k]),vl=v.useCallback(Te=>Ge=>{const _e=Number(Ge.target.value),Le=f.setMonth(f.startOfMonth(Te),_e);ue(Le)},[f,ue]),yl=v.useCallback(Te=>Ge=>{const _e=Number(Ge.target.value),Le=f.setYear(f.startOfMonth(Te),_e);ue(Le)},[f,ue]),{className:en,style:Tt}=v.useMemo(()=>({className:[p[Se.Root],a.className].filter(Boolean).join(" "),style:{...U?.[Se.Root],...a.style}}),[p,a.className,a.style,U]),In=T3(a),Lt=v.useRef(null);Z3(Lt,!!a.animate,{classNames:p,months:P,focused:X,dateLib:f});const mu={dayPickerProps:a,selected:Q,select:$,isSelected:B,months:P,nextMonth:ce,previousMonth:F,goToMonth:ue,getModifiers:N,components:l,classNames:p,styles:U,labels:c,formatters:s};return fe.createElement(Nw.Provider,{value:mu},fe.createElement(l.Root,{rootRef:a.animate?Lt:void 0,className:en,style:Tt,dir:a.dir,id:a.id,lang:a.lang,nonce:a.nonce,title:a.title,role:a.role,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"],...In},fe.createElement(l.Months,{className:p[Se.Months],style:U?.[Se.Months]},!a.hideNavigation&&!b&&fe.createElement(l.Nav,{"data-animated-nav":a.animate?"true":void 0,className:p[Se.Nav],style:U?.[Se.Nav],"aria-label":zt(),onPreviousClick:ot,onNextClick:he,previousMonth:F,nextMonth:ce}),P.map((Te,Ge)=>fe.createElement(l.Month,{"data-animated-month":a.animate?"true":void 0,className:p[Se.Month],style:U?.[Se.Month],key:Ge,displayIndex:Ge,calendarMonth:Te},b==="around"&&!a.hideNavigation&&Ge===0&&fe.createElement(l.PreviousMonthButton,{type:"button",className:p[Se.PreviousMonthButton],tabIndex:F?void 0:-1,"aria-disabled":F?void 0:!0,"aria-label":kn(F),onClick:ot,"data-animated-button":a.animate?"true":void 0},fe.createElement(l.Chevron,{disabled:F?void 0:!0,className:p[Se.Chevron],orientation:a.dir==="rtl"?"right":"left"})),fe.createElement(l.MonthCaption,{"data-animated-caption":a.animate?"true":void 0,className:p[Se.MonthCaption],style:U?.[Se.MonthCaption],calendarMonth:Te,displayIndex:Ge},g?.startsWith("dropdown")?fe.createElement(l.DropdownNav,{className:p[Se.Dropdowns],style:U?.[Se.Dropdowns]},(()=>{const _e=g==="dropdown"||g==="dropdown-months"?fe.createElement(l.MonthsDropdown,{key:"month",className:p[Se.MonthsDropdown],"aria-label":Wt(),classNames:p,components:l,disabled:!!a.disableNavigation,onChange:vl(Te.date),options:G3(Te.date,I,z,s,f),style:U?.[Se.Dropdown],value:f.getMonth(Te.date)}):fe.createElement("span",{key:"month"},ie(Te.date,f)),Le=g==="dropdown"||g==="dropdown-years"?fe.createElement(l.YearsDropdown,{key:"year",className:p[Se.YearsDropdown],"aria-label":Me(f.options),classNames:p,components:l,disabled:!!a.disableNavigation,onChange:yl(Te.date),options:W3(I,z,s,f,!!a.reverseYears),style:U?.[Se.Dropdown],value:f.getYear(Te.date)}):fe.createElement("span",{key:"year"},le(Te.date,f));return f.getMonthYearOrder()==="year-first"?[Le,_e]:[_e,Le]})(),fe.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},Y(Te.date,f.options,f))):fe.createElement(l.CaptionLabel,{className:p[Se.CaptionLabel],role:"status","aria-live":"polite"},Y(Te.date,f.options,f))),b==="around"&&!a.hideNavigation&&Ge===S-1&&fe.createElement(l.NextMonthButton,{type:"button",className:p[Se.NextMonthButton],tabIndex:ce?void 0:-1,"aria-disabled":ce?void 0:!0,"aria-label":On(ce),onClick:he,"data-animated-button":a.animate?"true":void 0},fe.createElement(l.Chevron,{disabled:ce?void 0:!0,className:p[Se.Chevron],orientation:a.dir==="rtl"?"left":"right"})),Ge===S-1&&b==="after"&&!a.hideNavigation&&fe.createElement(l.Nav,{"data-animated-nav":a.animate?"true":void 0,className:p[Se.Nav],style:U?.[Se.Nav],"aria-label":zt(),onPreviousClick:ot,onNextClick:he,previousMonth:F,nextMonth:ce}),fe.createElement(l.MonthGrid,{role:"grid","aria-multiselectable":y==="multiple"||y==="range","aria-label":xt(Te.date,f.options,f)||void 0,className:p[Se.MonthGrid],style:U?.[Se.MonthGrid]},!a.hideWeekdays&&fe.createElement(l.Weekdays,{"data-animated-weekdays":a.animate?"true":void 0,className:p[Se.Weekdays],style:U?.[Se.Weekdays]},R&&fe.createElement(l.WeekNumberHeader,{"aria-label":yr(f.options),className:p[Se.WeekNumberHeader],style:U?.[Se.WeekNumberHeader],scope:"col"},O()),$e.map(_e=>fe.createElement(l.Weekday,{"aria-label":gl(_e,f.options,f),className:p[Se.Weekday],key:String(_e),style:U?.[Se.Weekday],scope:"col"},J(_e,f.options,f)))),fe.createElement(l.Weeks,{"data-animated-weeks":a.animate?"true":void 0,className:p[Se.Weeks],style:U?.[Se.Weeks]},Te.weeks.map(_e=>fe.createElement(l.Week,{className:p[Se.Week],key:_e.weekNumber,style:U?.[Se.Week],week:_e},R&&fe.createElement(l.WeekNumber,{week:_e,style:U?.[Se.WeekNumber],"aria-label":eo(_e.weekNumber,{locale:d}),className:p[Se.WeekNumber],scope:"row",role:"rowheader"},oe(_e.weekNumber,f)),_e.days.map(Le=>{const{date:Ct}=Le,ke=N(Le);if(ke[ut.focused]=!ke.hidden&&!!X?.isEqualTo(Le),ke[Ln.selected]=B?.(Ct)||ke.selected,su(Q)){const{from:ao,to:xr}=Q;ke[Ln.range_start]=!!(ao&&xr&&f.isSameDay(Ct,ao)),ke[Ln.range_end]=!!(ao&&xr&&f.isSameDay(Ct,xr)),ke[Ln.range_middle]=Na(Q,Ct,!0,f)}const no=V3(ke,U,a.modifiersStyles),br=M3(ke,p,a.modifiersClassNames),pu=!nt&&!ke.hidden?Ue(Ct,ke,f.options,f):void 0;return fe.createElement(l.Day,{key:`${Le.isoDate}_${Le.displayMonthId}`,day:Le,modifiers:ke,className:br.join(" "),style:no,role:"gridcell","aria-selected":ke.selected||void 0,"aria-label":pu,"data-day":Le.isoDate,"data-month":Le.outside?Le.dateMonthId:void 0,"data-selected":ke.selected||void 0,"data-disabled":ke.disabled||void 0,"data-hidden":ke.hidden||void 0,"data-outside":Le.outside||void 0,"data-focused":ke.focused||void 0,"data-today":ke.today||void 0},!ke.hidden&&nt?fe.createElement(l.DayButton,{className:p[Se.DayButton],style:U?.[Se.DayButton],type:"button",day:Le,modifiers:ke,disabled:!ke.focused&&ke.disabled||void 0,"aria-disabled":ke.focused&&ke.disabled||void 0,tabIndex:de(Le)?0:-1,"aria-label":De(Ct,ke,f.options,f),onClick:Ie(Le,ke),onBlur:Ut(Le,ke),onFocus:Nt(Le,ke),onKeyDown:mn(Le,ke),onMouseEnter:Yn(Le,ke),onMouseLeave:to(Le,ke)},H(Ct,f.options,f)):!ke.hidden&&H(Le.date,f.options,f))})))))))),a.footer&&fe.createElement(l.Footer,{className:p[Se.Footer],style:U?.[Se.Footer],role:"status","aria-live":"polite"},a.footer)))}function ux({className:t,classNames:a,showOutsideDays:o=!0,captionLayout:l="label",buttonVariant:s="ghost",locale:c,formatters:f,components:d,...p}){const g=Bp();return h.jsx(v4,{showOutsideDays:o,className:te("p-3 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(6)] bg-background group/calendar in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,t),captionLayout:l,locale:c,formatters:{formatMonthDropdown:y=>y.toLocaleString(c?.code,{month:"short"}),...f},classNames:{root:te("w-fit",g.root),months:te("flex gap-4 flex-col md:flex-row relative",g.months),month:te("flex flex-col w-full gap-4",g.month),nav:te("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",g.nav),button_previous:te(Tm({variant:s}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",g.button_previous),button_next:te(Tm({variant:s}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",g.button_next),month_caption:te("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",g.month_caption),dropdowns:te("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",g.dropdowns),dropdown_root:te("relative rounded-(--cell-radius)",g.dropdown_root),dropdown:te("absolute bg-popover inset-0 opacity-0",g.dropdown),caption_label:te("select-none font-medium",l==="label"?"text-sm":"rounded-(--cell-radius) flex items-center gap-1 text-sm [&>svg]:text-muted-foreground [&>svg]:size-3.5",g.caption_label),table:"w-full border-collapse",weekdays:te("flex",g.weekdays),weekday:te("text-muted-foreground rounded-(--cell-radius) flex-1 font-normal text-[0.8rem] select-none",g.weekday),week:te("flex w-full mt-2",g.week),week_number_header:te("select-none w-(--cell-size)",g.week_number_header),week_number:te("text-[0.8rem] select-none text-muted-foreground",g.week_number),day:te("relative w-full rounded-(--cell-radius) h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-(--cell-radius) group/day aspect-square select-none",p.showWeekNumber?"[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)":"[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)",g.day),range_start:te("rounded-l-(--cell-radius) bg-muted relative after:bg-muted after:absolute after:inset-y-0 after:w-4 after:right-0 z-0 isolate",g.range_start),range_middle:te("rounded-none",g.range_middle),range_end:te("rounded-r-(--cell-radius) bg-muted relative after:bg-muted after:absolute after:inset-y-0 after:w-4 after:left-0 z-0 isolate",g.range_end),today:te("bg-muted text-foreground rounded-(--cell-radius) data-[selected=true]:rounded-none",g.today),outside:te("text-muted-foreground aria-selected:text-muted-foreground",g.outside),disabled:te("text-muted-foreground opacity-50",g.disabled),hidden:te("invisible",g.hidden),...a},components:{Root:({className:y,rootRef:b,...S})=>h.jsx("div",{"data-slot":"calendar",ref:b,className:te(y),...S}),Chevron:({className:y,orientation:b,...S})=>b==="left"?h.jsx(IE,{className:te("size-4",y),...S}):b==="right"?h.jsx(wx,{className:te("size-4",y),...S}):h.jsx(Gm,{className:te("size-4",y),...S}),DayButton:({...y})=>h.jsx(y4,{locale:c,...y}),WeekNumber:({children:y,...b})=>h.jsx("td",{...b,children:h.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:y})}),...d},...p})}function y4({className:t,day:a,modifiers:o,locale:l,...s}){const c=Bp(),f=v.useRef(null);return v.useEffect(()=>{o.focused&&f.current?.focus()},[o.focused]),h.jsx(ct,{ref:f,variant:"ghost",size:"icon","data-day":a.date.toLocaleDateString(l?.code),"data-selected-single":o.selected&&!o.range_start&&!o.range_end&&!o.range_middle,"data-range-start":o.range_start,"data-range-end":o.range_end,"data-range-middle":o.range_middle,className:te("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-foreground relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-r-(--cell-radius) data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-l-(--cell-radius) [&>span]:text-xs [&>span]:opacity-70",c.day,t),...s})}function dx({className:t,...a}){return h.jsx(g0,{"data-slot":"checkbox",className:te("border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4 items-center justify-center rounded-[4px] border transition-shadow group-has-disabled/field:opacity-50 focus-visible:ring-2 aria-invalid:ring-2 peer relative shrink-0 outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-50",t),...a,children:h.jsx(y0,{"data-slot":"checkbox-indicator",className:"[&>svg]:size-3.5 grid place-content-center text-current transition-none",children:h.jsx(Im,{})})})}function tm({...t}){return h.jsx(hD,{"data-slot":"popover",...t})}function nm({...t}){return h.jsx(gD,{"data-slot":"popover-trigger",...t})}function am({className:t,align:a="center",sideOffset:o=4,...l}){return h.jsx(vD,{children:h.jsx(yD,{"data-slot":"popover-content",align:a,sideOffset:o,className:te("bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 flex flex-col gap-4 rounded-lg p-2.5 text-xs shadow-md ring-1 duration-100 z-50 w-72 origin-(--radix-popover-content-transform-origin) outline-hidden",t),...l})})}const b4=["string","number","boolean","date","datetime","file"],x4=["12","1","2","3","4","5","6","7","8","9","10","11"],S4=Array.from({length:60},(t,a)=>a.toString().padStart(2,"0")),w4=["AM","PM"],rm={maxHeight:"12rem"};function _4(t){const[a,o]=t.split(":"),l=parseInt(a??"0",10),s=l===0?12:l>12?l-12:l,c=l<12?"AM":"PM";return`${s}:${o??"00"} ${c}`}function C4(t){const[a,o]=t.split(":"),l=parseInt(a??"0",10),s=l===0?"12":l>12?String(l-12):String(l),c=l<12?"AM":"PM";return{hour12:s,minute:(o??"00").padStart(2,"0"),ampm:c}}function E4(t,a,o){const l=parseInt(t,10);return`${(t==="12"?o==="AM"?0:12:o==="PM"?l+12:l).toString().padStart(2,"0")}:${a.padStart(2,"0")}`}function om({rows:t,setRows:a,allowAddMore:o=!1,showTypeColumn:l=!0,allowTypeChange:s=!1,errorKeys:c=[],requiredKeys:f=[]}){const d=v.useMemo(()=>new Set(c.map(O=>O.trim())),[c]),p=v.useMemo(()=>new Set(f.map(O=>O.trim())),[f]),[g,y]=v.useState({}),b=(O,J)=>{a(le=>le.map(ae=>ae.id===O?{...ae,...J}:ae))},S=()=>{a(O=>[...O,{id:crypto.randomUUID(),key:"",value:"",type:"String",enabled:!0}])},_=O=>O.fileMaxFiles??1,M=O=>O.fileAccept,w=(O,J,le)=>{const ae=Array.from(J.target.files??[]),V=_(le);if(V<=1){const P=ae[0]??null;b(O,{file:P,files:void 0,value:P?P.name:""})}else{const I=[...le.files??[],...ae].slice(0,V);b(O,{file:void 0,files:I,value:I.length?I.map(z=>z.name).join(", "):""})}J.target.value=""},E=(O,J)=>{const le=t.find(V=>V.id===O);if(!le)return;if(_(le)<=1)b(O,{file:null,value:""});else{const V=(le.files??[]).filter((P,I)=>I!==J);b(O,{files:V,value:V.length?V.map(P=>P.name).join(", "):""})}},T=O=>{a(J=>J.length>1?J.filter(le=>le.id!==O):J)},k=O=>{if(O.trim()==="")return[];try{const J=JSON.parse(O);return Array.isArray(J)?J.map(String):[O]}catch{return[]}},D=(O,J)=>{const le=t.find(V=>V.id===O);if(!le)return;const ae=k(le.value);ae.push(J.trim()),b(O,{value:JSON.stringify(ae)}),y(V=>({...V,[O]:""}))},j=(O,J)=>{const le=t.find(V=>V.id===O);if(!le)return;const ae=k(le.value);ae.splice(J,1),b(O,{value:JSON.stringify(ae)})},R=O=>{if(O.trim()==="")return!1;try{const J=JSON.parse(O);return typeof J!="object"||J===null}catch{return!0}},U=s?t:t.filter(O=>Gr(O.type)!=="File"),Y=U.length>0&&U.every(O=>O.enabled),H=U.some(O=>O.enabled),ie=O=>{const J=O===!0;a(le=>le.map(ae=>({...ae,enabled:J})))},oe=U.length===0?!1:Y?!0:H?"indeterminate":!1;return U.length===0&&!o?h.jsx("div",{className:"rounded-md border border-border border-dashed px-4 py-6 text-center text-muted-foreground text-xs",children:"No params defined"}):h.jsx("div",{className:"overflow-hidden p-px pr-[2px] pb-[2px]",children:h.jsxs("div",{className:"relative border border-border",children:[h.jsx(Nn,{}),h.jsxs("table",{className:"w-full text-xs",children:[h.jsx("thead",{children:h.jsxs("tr",{className:"border-b border-border bg-muted/50",children:[h.jsx("th",{className:"w-8 px-3 py-2 text-left font-medium",children:h.jsx(dx,{checked:oe,onCheckedChange:ie,"aria-label":"Toggle all rows"})}),h.jsx("th",{className:"w-[25%] px-3 py-2 text-left font-medium",children:"Key"}),h.jsx("th",{className:"px-3 py-2 text-left font-medium",children:"Value"}),l&&h.jsx("th",{className:"w-[120px] px-3 py-2 text-left font-medium",children:"Type"}),o&&h.jsx("th",{className:"w-10 px-2 py-2"})]})}),h.jsx("tbody",{children:U.map(O=>{const J=Gr(O.type),le=d.has(O.key.trim()),ae=p.has(O.key.trim());return h.jsxs("tr",{className:`border-b border-border last:border-b-0 ${le?"bg-destructive/10 border-l-4 border-l-destructive":""}`,children:[h.jsx("td",{className:"px-3 py-1.5",children:h.jsx(dx,{checked:O.enabled,onCheckedChange:V=>b(O.id,{enabled:V===!0}),"aria-label":`Toggle ${O.key||"row"}`})}),h.jsx("td",{className:"px-3 py-1.5",children:h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsx(Xn,{value:O.key,onChange:V=>b(O.id,{key:V.target.value}),placeholder:"Key",className:"h-7 border-0 bg-transparent font-mono text-xs focus-visible:ring-1",readOnly:!o}),ae&&h.jsx("span",{className:"text-destructive shrink-0 font-mono text-xs",title:"Required",children:"*"})]})}),h.jsx("td",{className:"px-3 py-1.5",children:J.toLowerCase()==="file"?(()=>{const V=_(O)>1?O.files??[]:O.file?[O.file]:[],P=V.length>0,I=_(O)>1?V.length<_(O):!0;return P?h.jsxs(tm,{children:[h.jsx(nm,{asChild:!0,children:h.jsxs(ct,{type:"button",variant:"outline",size:"sm",className:"h-7 gap-1.5 font-mono text-xs",children:[h.jsx(Xy,{className:"size-3.5"}),V.length===1?"1 file":`${V.length} files`]})}),h.jsx(am,{align:"start",className:"w-72 overflow-hidden p-0 border-4",children:h.jsxs("div",{className:"flex flex-col",children:[h.jsx("div",{className:"max-h-56 overflow-auto p-1",children:h.jsx("div",{className:"flex flex-col gap-0.5",children:V.map((z,F)=>h.jsxs("div",{className:"flex items-center gap-2 rounded-lg px-2.5 py-2 text-xs/relaxed hover:bg-muted",children:[h.jsx(Xy,{className:"size-3.5 shrink-0 text-muted-foreground"}),h.jsx("span",{className:"min-w-0 flex-1 truncate font-mono",title:z.name,children:z.name}),h.jsx(ct,{type:"button",variant:"ghost",size:"icon",className:"h-7 w-7 shrink-0 text-muted-foreground hover:text-destructive",onClick:()=>E(O.id,F),"aria-label":"Remove file",children:h.jsx(Qy,{className:"size-3.5"})})]},`${O.id}-${F}-${z.name}`))})}),I&&h.jsxs("label",{className:"flex cursor-pointer items-center gap-2 border-t border-border bg-border px-3 py-2.5 text-xs text-muted-foreground",children:[h.jsx("input",{type:"file",multiple:_(O)>1,accept:M(O),onChange:z=>w(O.id,z,O),className:"sr-only"}),h.jsx(Cx,{className:"size-3.5 shrink-0"}),h.jsxs("span",{children:["Add file",_(O)>1?` (${V.length}/${_(O)})`:""]})]})]})})]}):h.jsxs("label",{className:"flex cursor-pointer items-center gap-2",children:[h.jsx("input",{type:"file",multiple:_(O)>1,accept:M(O),onChange:z=>w(O.id,z,O),className:"text-muted-foreground w-full max-w-[220px] cursor-pointer text-xs file:mr-2 file:cursor-pointer file:rounded file:border-0 file:bg-muted file:px-2 file:py-1 file:text-xs file:text-foreground"}),h.jsx("span",{className:"text-muted-foreground shrink-0 text-xs",children:M(O)?`Choose file (${M(O)})`:"Choose file"})]})})():J.toLowerCase()==="array"?h.jsxs("div",{className:"flex flex-col gap-1.5",children:[h.jsx("div",{className:"flex flex-wrap gap-1",children:k(O.value).map((V,P)=>h.jsxs("span",{className:"bg-muted text-foreground inline-flex items-center gap-1 rounded px-2 py-0.5 font-mono text-xs",children:[V,h.jsx("button",{type:"button",onClick:()=>j(O.id,P),className:"text-muted-foreground hover:text-destructive","aria-label":"Remove",children:"×"})]},`${O.id}-${P}`))}),h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsx(Xn,{value:g[O.id]??"",onChange:V=>y(P=>({...P,[O.id]:V.target.value})),placeholder:"Add value",className:"h-7 flex-1 min-w-0 border border-border font-mono text-xs",onKeyDown:V=>{if(V.key==="Enter"){V.preventDefault();const P=(g[O.id]??"").trim();P&&D(O.id,P)}}}),h.jsx(ct,{type:"button",variant:"outline",size:"icon",className:"h-7 w-7 shrink-0",onClick:()=>{const V=(g[O.id]??"").trim();V&&D(O.id,V)},"aria-label":"Add value",children:h.jsx(Zy,{className:"size-3.5"})})]})]}):J.toLowerCase()==="date"?h.jsxs(tm,{children:[h.jsx(nm,{asChild:!0,children:h.jsxs(ct,{variant:"outline",size:"sm",className:"h-7 w-full justify-start font-mono text-xs font-normal",children:[h.jsx(Ky,{className:"mr-2 size-3.5"}),O.value?Zn((()=>{try{return hi(O.value)}catch{return new Date}})(),"PPP"):"Pick a date"]})}),h.jsx(am,{align:"start",className:"w-auto p-0",children:h.jsx(ux,{mode:"single",selected:O.value?(()=>{try{const V=hi(O.value);return isNaN(V.getTime())?void 0:V}catch{return}})():void 0,onSelect:V=>{V&&b(O.id,{value:Zn(V,"yyyy-MM-dd")})},initialFocus:!0})})]}):J.toLowerCase()==="datetime"?h.jsx("div",{className:"flex flex-col gap-1.5",children:h.jsxs(tm,{children:[h.jsx(nm,{asChild:!0,children:h.jsxs(ct,{variant:"outline",size:"sm",className:"h-7 w-full justify-start font-mono text-xs font-normal",children:[h.jsx(Ky,{className:"mr-2 size-3.5"}),O.value?(()=>{const[V,P]=O.value.split("T");try{const I=V?hi(V):null,z=I&&!isNaN(I.getTime())?Zn(I,"PPP"):"",F=P?_4(P.slice(0,5)):"";return F?`${z} ${F}`:z||"Pick date & time"}catch{return"Pick date & time"}})():"Pick date & time"]})}),h.jsxs(am,{align:"start",className:"w-auto p-0",children:[h.jsx(ux,{mode:"single",selected:O.value?.includes("T")?(()=>{const V=O.value.split("T")[0];if(V)try{const P=hi(V);return isNaN(P.getTime())?void 0:P}catch{return}})():O.value?(()=>{try{const V=hi(O.value);return isNaN(V.getTime())?void 0:V}catch{return}})():void 0,onSelect:V=>{if(V){const P=O.value?.includes("T")?O.value.split("T")[1]?.slice(0,5)??"00:00":"00:00";b(O.id,{value:`${Zn(V,"yyyy-MM-dd")}T${P}`})}},captionLayout:"dropdown"}),h.jsx("div",{className:"border-t border-border p-2",children:h.jsxs("div",{className:"text-muted-foreground flex items-center gap-2 text-xs",children:[h.jsx("span",{className:"shrink-0",children:"Time"}),(()=>{const V=O.value?.includes("T")?O.value.split("T")[1]?.slice(0,5):"00:00",{hour12:P,minute:I,ampm:z}=C4(V),F=O.value?.includes("T")?O.value.split("T")[0]:Zn(new Date,"yyyy-MM-dd"),ce=(ue,N,B)=>b(O.id,{value:`${F}T${E4(ue,N,B)}`});return h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsxs(_i,{value:P,onValueChange:ue=>ce(ue,I,z),children:[h.jsx(Ei,{size:"sm",className:"h-7 w-12 font-mono text-xs",children:h.jsx(Ci,{placeholder:"Hr"})}),h.jsx(Mi,{position:"popper",side:"bottom",align:"start",sideOffset:4,className:"overflow-y-auto",style:rm,children:x4.map(ue=>h.jsx(Ma,{value:ue,className:"font-mono text-xs",children:ue},ue))})]}),h.jsx("span",{className:"text-muted-foreground font-mono",children:":"}),h.jsxs(_i,{value:I,onValueChange:ue=>ce(P,ue,z),children:[h.jsx(Ei,{size:"sm",className:"h-7 w-14 font-mono text-xs",children:h.jsx(Ci,{placeholder:"mm"})}),h.jsx(Mi,{position:"popper",side:"bottom",align:"start",sideOffset:4,className:"overflow-y-auto",style:rm,children:S4.map(ue=>h.jsx(Ma,{value:ue,className:"font-mono text-xs",children:ue},ue))})]}),h.jsxs(_i,{value:z,onValueChange:ue=>ce(P,I,ue),children:[h.jsx(Ei,{size:"sm",className:"h-7 w-14 font-mono text-xs",children:h.jsx(Ci,{placeholder:"AM/PM"})}),h.jsx(Mi,{position:"popper",side:"bottom",align:"start",sideOffset:4,style:rm,children:w4.map(ue=>h.jsx(Ma,{value:ue,className:"font-mono text-xs",children:ue},ue))})]})]})})()]})})]})]})}):J.toLowerCase()==="object"?h.jsx(yR,{value:O.value,onChange:V=>b(O.id,{value:V.target.value}),placeholder:'{"key": "value"}',invalid:R(O.value),rows:3}):h.jsx(Xn,{value:O.value,onChange:V=>b(O.id,{value:V.target.value}),placeholder:"Value",className:"h-7 border-0 bg-transparent font-mono text-xs focus-visible:ring-1"})}),l&&h.jsx("td",{className:"px-3 py-1.5",children:s?h.jsx("select",{value:J,onChange:V=>b(O.id,{type:V.target.value,...V.target.value!=="file"?{file:void 0,files:void 0}:{}}),className:"bg-transparent font-mono text-xs outline-none focus:ring-1 focus:ring-ring rounded border border-transparent",children:b4.map(V=>h.jsx("option",{value:V,children:V},V))}):h.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:J})}),o&&h.jsx("td",{className:"px-2 py-1.5",children:h.jsxs(ct,{variant:"ghost",size:"icon",className:"size-6 text-muted-foreground hover:text-destructive",onClick:()=>T(O.id),children:[h.jsx(Qy,{className:"size-3.5"}),h.jsx("span",{className:"sr-only",children:"Delete"})]})})]},O.id)})})]}),o&&h.jsx("div",{className:"flex items-center gap-2 border-t border-border bg-muted/30 px-3 py-2",children:h.jsxs(ct,{variant:"ghost",size:"sm",className:"h-7 text-xs",onClick:S,children:[h.jsx(Zy,{className:"size-3.5"}),"Add More"]})})]})})}function M4({responses:t}){return t?.length?h.jsxs("section",{className:"flex flex-col gap-6 overflow-auto",children:[h.jsx("h3",{className:"text-muted-foreground text-xs font-medium",children:"Response types by status"}),t.map((a,o)=>h.jsxs("div",{className:"border border-border p-px",children:[h.jsxs("div",{className:"border-b border-border bg-muted/50 px-3 py-2 flex items-center gap-2 relative",children:[h.jsx(Nn,{}),h.jsx("span",{className:"font-mono text-xs font-medium",children:a.status}),a.description&&h.jsx("span",{className:"text-muted-foreground text-xs",children:a.description})]}),a.properties?.length>0?h.jsxs("div",{className:"relative w-full",children:[h.jsx(Nn,{}),h.jsxs("table",{className:"w-full text-xs",children:[h.jsx("thead",{children:h.jsxs("tr",{className:"border-b border-border bg-muted/30",children:[h.jsx("th",{className:"w-[25%] px-3 py-2 text-left font-medium",children:"Property"}),h.jsx("th",{className:"w-[100px] px-3 py-2 text-left font-medium",children:"Type"}),h.jsx("th",{className:"px-3 py-2 text-left font-medium",children:"Description"})]})}),h.jsx("tbody",{children:a.properties.map((l,s)=>h.jsxs("tr",{className:"border-b border-border/50 last:border-0",children:[h.jsx("td",{className:"px-3 py-2 font-mono",children:l.name}),h.jsxs("td",{className:"px-3 py-2 text-muted-foreground",children:[l.type,l.enum?.length?` (${l.enum.slice(0,3).join(", ")}${l.enum.length>3?"…":""})`:""]}),h.jsx("td",{className:"px-3 py-2 text-muted-foreground",children:l.desc??"—"})]},`${l.name}-${s}`))})]})]}):h.jsx("div",{className:"text-muted-foreground px-3 py-4 text-center text-xs",children:"No properties"})]},`${a.status}-${o}`))]}):h.jsx("div",{className:"text-muted-foreground rounded-md border border-dashed border-border px-4 py-6 text-center text-xs",children:"No response types defined for this route."})}function N4({activeTab:t,onTabChange:a,hasParams:o,hasBody:l,hasResponseTypes:s,paramsRows:c,setParamsRows:f,bodyRows:d,setBodyRows:p,headersRows:g,setHeadersRows:y,route:b,response:S,sendLoading:_,resizeLayout:M,onResizeLayoutChanged:w,auth:E,setAuth:T,tabsConfig:k=GS,responseTab:D,onResponseTabChange:j,pathParamErrorKeys:R=[],bodyErrorKeys:U=[],pathParamRequiredKeys:Y=[],bodyRequiredKeys:H=[],bodyContentType:ie="application/json",bodyContentTypeFromMeta:oe=!1,bodyHasFiles:O=!1,onBodyContentTypeChange:J}){const le=v.useMemo(()=>Mp(k,{hasParams:o,hasBody:l,hasResponseTypes:s}),[k,o,l,s]),ae=VS(typeof b.method=="string"?b.method:String(b.method),typeof b.path=="string"&&b.path||"/"),V=h.jsx(_R,{routeKey:ae,response:S,loading:_,responseTab:D,onResponseTabChange:j}),P="flex-1 min-h-0",I={defaultLayout:M,onLayoutChanged:w};function z(F){return(()=>{switch(F){case"details":{const ue=xR(b.request);return h.jsxs("section",{className:"flex flex-col gap-6 overflow-auto",children:[ue!=="{}"&&h.jsxs("div",{className:"flex flex-col gap-2 p-px pr-1",children:[h.jsx("h3",{className:"text-muted-foreground text-xs font-medium",children:"Request body (JSON)"}),h.jsxs("div",{className:"relative w-full",children:[h.jsx(Nn,{}),h.jsx("pre",{className:"bg-muted/50 border border-border p-3 font-mono text-xs overflow-auto",children:h.jsx(Ep,{children:ue})})]})]}),h.jsx(M4,{responses:b.responses??[]})]})}case"params":return h.jsxs("section",{className:"flex flex-col overflow-auto",children:[h.jsx("h3",{className:"text-muted-foreground mb-2 text-xs font-medium",children:"Query Params"}),h.jsx(om,{rows:c,setRows:f,allowAddMore:!1,showTypeColumn:!0,errorKeys:R,requiredKeys:Y})]});case"body":return h.jsxs("section",{className:"flex flex-col overflow-auto",children:[h.jsxs("div",{className:"text-muted-foreground mb-2 flex flex-wrap items-center gap-2 text-xs",children:[h.jsx("span",{className:"font-medium",children:"Request Body"}),h.jsx("span",{className:"text-muted-foreground/70",children:"·"}),h.jsx("span",{className:"font-medium",children:"Send as:"}),oe||O?h.jsx("span",{className:"rounded bg-muted px-2 py-0.5 font-mono",title:O?"Form data required when files are present":"Set by API meta",children:ie==="application/json"?"JSON":"Form data"}):h.jsxs(_i,{value:ie,onValueChange:ue=>J?.(ue),children:[h.jsx(Ei,{className:"h-7 w-30 font-mono",children:h.jsx(Ci,{placeholder:"Send as"})}),h.jsxs(Mi,{children:[h.jsx(Ma,{value:"application/json",children:"JSON"}),h.jsx(Ma,{value:"multipart/form-data",children:"Form data"})]})]})]}),h.jsx(om,{rows:d,setRows:p,allowAddMore:!1,showTypeColumn:!0,errorKeys:U,requiredKeys:H})]});case"headers":return h.jsxs("section",{className:"flex flex-col overflow-auto",children:[h.jsx("h3",{className:"text-muted-foreground mb-2 text-xs font-medium",children:"Headers"}),h.jsx(om,{rows:g,setRows:y,allowAddMore:!0,showTypeColumn:!1})]});case"authorization":return h.jsx(sA,{auth:E,setAuth:T})}})()}return h.jsxs(rA,{orientation:"vertical",className:P,...I,children:[h.jsx(Xb,{id:"top",defaultSize:50,minSize:20,className:"flex min-h-0 flex-col overflow-hidden",children:h.jsxs(YS,{value:t,onValueChange:F=>a(F),className:"flex min-h-0 flex-1 flex-col overflow-hidden gap-0",children:[h.jsx(IS,{className:"h-9 w-full justify-start rounded-none border-b border-border bg-transparent p-px pr-[2px] relative",children:h.jsxs("div",{className:"relative flex items-center justify-start w-full h-full",children:[h.jsx(Nn,{}),le.map(F=>h.jsxs(km,{value:F.id,className:"tab-item",children:[F.Icon&&h.jsx(F.Icon,{className:"size-4"}),F.label]},F.id))]})}),h.jsx("div",{className:"min-h-0 flex-1",children:le.map(F=>h.jsx(Om,{value:F.id,className:"tab-content",children:h.jsxs("div",{className:"relative h-full p-1",children:[h.jsx(Nn,{}),h.jsx("div",{className:"h-full overflow-auto",children:z(F.id)})]})},F.id))})]})}),h.jsx(oA,{withHandle:!0}),h.jsx(Xb,{id:"bottom",defaultSize:50,minSize:20,className:"flex min-h-0 flex-col overflow-hidden",children:h.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden",children:V})})]})}function vi(t){return t.map(({file:a,files:o,...l})=>({...l,file:void 0,files:void 0}))}function T4({route:t,apiBase:a,tabsConfig:o}){const{setTabInUrl:l}=qm(),[s,c]=wM(),[f,d]=v.useState([]),[p,g]=v.useState([]),[y,b]=v.useState([{id:crypto.randomUUID(),key:"",value:"",type:"String",enabled:!0}]),[S,_]=v.useState({}),[M,w]=v.useState(void 0),[E,T]=v.useState({type:"none"}),[k,D]=v.useState(!1),[j,R]=v.useState({}),[U,Y]=v.useState({}),H=v.useRef({}),ie=t?typeof t.method=="string"?t.method:String(t.method):"",oe=t&&typeof t.path=="string"&&t.path||"/",O=t?VS(ie,oe):"",[J,le]=_M(O||"_"),ae=v.useMemo(()=>{if(!t)return[];const Me=pc(t.params).map($e=>$e.name);return Me.length>0?Me:bR(oe)},[t?.params,oe]),V=v.useMemo(()=>t?pc(t.query).map(Me=>Me.name):[],[t?.query]),P=v.useMemo(()=>t?_c(t.request).filter(Me=>Me.required===!0).map(Me=>Me.name):[],[t?.request]),I=p.some(Me=>Me.enabled&&Me.key.trim()!==""&&(Me.type||"").toLowerCase()==="file"&&(Me.file||Me.files&&Me.files.length>0)),z=t?.requestContentType,F=z!=null&&String(z).trim()!==""?String(z).trim().toLowerCase()==="multipart/form-data"?"multipart/form-data":"application/json":void 0,ce=F!=null,ue=I?"multipart/form-data":F??U[O]??"application/json",N=j[O],B=N?.pathParamErrorKeys??[],$=N?.bodyErrorKeys??[],Q=v.useCallback(async()=>{const Me=ae.filter(he=>{const Ie=f.find(Nt=>Nt.key.trim()===he);return!Ie||!Ie.enabled||Ie.value.trim()===""}),$e=P.filter(he=>{const Ie=p.find(Nt=>Nt.key.trim()===he);return!Ie||!Ie.enabled||Ie.value.trim()===""&&!Ie.file&&!(Ie.files&&Ie.files.length>0)});if(Me.length>0||$e.length>0){R(he=>({...he,[O]:{pathParamErrorKeys:Me,bodyErrorKeys:$e}})),Me.length>0?(c(he=>({...he,[O]:"params"})),l("params")):(c(he=>({...he,[O]:"body"})),l("body"));return}const nt=p.filter(he=>he.enabled&&he.key.trim()!==""&&(he.type||"").toLowerCase()==="object"&&(()=>{if(he.value.trim()==="")return!1;try{const Ie=JSON.parse(he.value);return typeof Ie!="object"||Ie===null}catch{return!0}})()).map(he=>he.key.trim());if(nt.length>0){R(he=>({...he,[O]:{pathParamErrorKeys:he[O]?.pathParamErrorKeys??[],bodyErrorKeys:nt}})),c(he=>({...he,[O]:"body"})),l("body");return}R(he=>{const Ie={...he};return delete Ie[O],Ie}),D(!0);const ot=performance.now();try{const he=Dm(a,oe,ae,V,f),Ie=WS(y);E.type==="bearer"&&E.bearerToken?.trim()&&(Ie.Authorization=`Bearer ${E.bearerToken.trim()}`),E.type==="basic"&&E.username!=null&&E.password!=null&&(Ie.Authorization=`Basic ${btoa(`${E.username}:${E.password}`)}`),E.type==="apiKey"&&E.apiKeyName?.trim()&&E.apiKeyValue!=null&&(Ie[E.apiKeyName.trim()]=E.apiKeyValue);const Nt=qS(ie,p,void 0,ue);Nt&&!Ie["Content-Type"]&&typeof Nt=="string"&&(Ie["Content-Type"]="application/json");const Ut=await fetch(he,{method:ie.toUpperCase(),headers:Object.keys(Ie).length?Ie:void 0,body:Nt??void 0}),mn={};Ut.headers.forEach((en,Tt)=>{mn[Tt]=en});let Yn;const to=Ut.headers.get("content-type")??"";try{if(to.includes("application/json")){const en=await Ut.json();Yn=JSON.stringify(en,null,2)}else Yn=await Ut.text()}catch{Yn="(unable to read body)"}const vl=Math.round(performance.now()-ot),yl={status:Ut.status,statusText:Ut.statusText,headers:mn,body:Yn,error:null,durationMs:vl};_(en=>({...en,[O]:yl}))}catch(he){const Ie=Math.round(performance.now()-ot),Nt={status:null,statusText:"",headers:{},body:"",error:he instanceof Error?he.message:"Request failed",durationMs:Ie};_(Ut=>({...Ut,[O]:Nt}))}finally{D(!1)}},[a,ie,oe,t,O,ae,V,P,f,p,y,E,ue,c,l]);if(v.useEffect(()=>{if(!t||!O)return;const Me=_c(t.request),$e=Ab(Me),nt=H.current[O];if(nt){d(nt.params.map(he=>({...he,id:he.id||crypto.randomUUID(),type:Gr(he.type)})));const ot=nt.body.length===0&&$e.length>0?$e:nt.body.map(he=>({...he,id:he.id||crypto.randomUUID(),type:Gr(he.type)}));g(ot),b(nt.headers.length>0?nt.headers.map(he=>({...he,id:he.id||crypto.randomUUID(),type:Gr(he.type)})):[{id:crypto.randomUUID(),key:"",value:"",type:"String",enabled:!0}]),T(nt.auth),nt.body.length===0&&$e.length>0&&(H.current[O]={...nt,body:vi($e)})}else{const ot=pc(t.query),he=pc(t.params),Ie=he.length>0?he:ae.map(Yn=>({name:Yn,type:"string"})),Nt=[...ot,...Ie],Ut=Nt.length?Ab(Nt):[],mn=[{id:crypto.randomUUID(),key:"",value:"",type:"String",enabled:!0}];d(Ut),g($e),b(mn),T({type:"none"}),H.current[O]={params:Ut,body:vi($e),headers:mn,auth:{type:"none"}}}},[O,t?.path,t?.method,t?.query,t?.params,t?.request,ae]),v.useEffect(()=>{if(!O||!j[O])return;const Me=ae.filter(nt=>{const ot=f.find(he=>he.key.trim()===nt);return!ot||!ot.enabled||ot.value.trim()===""}),$e=P.filter(nt=>{const ot=p.find(he=>he.key.trim()===nt);return!ot||!ot.enabled||ot.value.trim()===""&&!ot.file&&!(ot.files&&ot.files.length>0)});Me.length===0&&$e.length===0?R(nt=>{const ot={...nt};return delete ot[O],ot}):R(nt=>({...nt,[O]:{pathParamErrorKeys:Me,bodyErrorKeys:$e}}))},[O,ae,P,f,p]),v.useEffect(()=>{if(!O)return;const Me=H.current[O],$e=vi(f),nt=$e.length===0&&Me?.params?.length?Me.params:$e;H.current[O]={params:nt,body:vi(p),headers:vi(y),auth:{...E}}},[O,f,p,y,E]),!t)return h.jsx(CR,{});const se=ae.length>0||V.length>0,X=_c(t.request).length>0,de=Array.isArray(t.responses)&&t.responses.length>0,xe=o??GS,pe=v.useMemo(()=>Mp(xe,{hasParams:se,hasBody:X,hasResponseTypes:de}).map(Me=>Me.id),[xe,se,X,de]),De=SR(xe,{hasParams:se,hasBody:X,hasResponseTypes:de}),Ue=s[O],Wt=Ue&&pe.includes(Ue)?Ue:De;v.useEffect(()=>{if(!O)return;const Me=s[O];Me&&!pe.includes(Me)&&(c($e=>({...$e,[O]:De})),l(De))},[O,De,pe,s,c,l]);const zt=v.useCallback(Me=>{c($e=>({...$e,[O]:Me})),l(Me)},[O,c,l]),kn=S[O]??null,On=v.useCallback(Me=>w(Me),[]),gl=v.useCallback(()=>wR(a,oe,ie,ae,V,f,y,p,E,void 0,ue),[a,oe,ie,ae,V,f,y,p,E,ue]),eo=v.useCallback(Me=>{Y($e=>({...$e,[O]:Me}))},[O]),yr=v.useMemo(()=>Dm(a,oe,ae,V,f),[a,oe,ae,V,f]);return h.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[h.jsx(NR,{route:t,onSend:Q,sendLoading:k,getCurlRequest:gl,fetchUrl:yr}),h.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:h.jsx(N4,{activeTab:Wt,onTabChange:zt,hasParams:se,hasBody:X,hasResponseTypes:de,paramsRows:f,setParamsRows:d,bodyRows:p,setBodyRows:g,headersRows:y,setHeadersRows:b,route:t,response:kn,sendLoading:k,resizeLayout:M,onResizeLayoutChanged:On,auth:E,setAuth:T,tabsConfig:o,responseTab:J,onResponseTabChange:le,pathParamErrorKeys:B,bodyErrorKeys:$,pathParamRequiredKeys:ae,bodyRequiredKeys:P,bodyContentType:ue,bodyContentTypeFromMeta:ce,bodyHasFiles:I,onBodyContentTypeChange:eo})})]})}function k4({className:t,...a}){return h.jsx("div",{"data-slot":"empty",className:te("gap-4 rounded-xl border-dashed p-6 flex w-full min-w-0 flex-1 flex-col items-center justify-center text-center text-balance",t),...a})}function O4({className:t,...a}){return h.jsx("div",{"data-slot":"empty-header",className:te("gap-1 flex max-w-sm flex-col items-center",t),...a})}const D4=fr("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"bg-muted text-foreground flex size-8 shrink-0 items-center justify-center rounded-md [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default"}});function j4({className:t,variant:a="default",...o}){return h.jsx("div",{"data-slot":"empty-icon","data-variant":a,className:te(D4({variant:a,className:t})),...o})}function R4({className:t,...a}){return h.jsx("div",{"data-slot":"empty-title",className:te("text-sm font-medium tracking-tight",t),...a})}function A4({className:t,...a}){return h.jsx("div",{"data-slot":"empty-description",className:te("text-xs/relaxed text-muted-foreground [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",t),...a})}function z4({className:t,...a}){return h.jsx("div",{"data-slot":"empty-content",className:te("gap-2 text-xs/relaxed flex w-full max-w-sm min-w-0 flex-col items-center text-balance",t),...a})}function U4({onRefresh:t}){return h.jsxs(k4,{className:"border",children:[h.jsxs(O4,{children:[h.jsx(j4,{variant:"icon",children:h.jsx(fm,{})}),h.jsx(R4,{children:"No routes found"}),h.jsxs(A4,{children:["Your Express app hasn't exposed any routes yet, or Tracelet hasn't connected. Add routes to your app and ensure it's running with Tracelet middleware at ","http://localhost:3000","."]})]}),h.jsxs(z4,{children:[t&&h.jsxs(ct,{variant:"outline",onClick:t,children:[h.jsx(Vm,{className:"size-4"}),"Refresh"]}),h.jsx(ct,{variant:"outline",asChild:!0,children:h.jsxs("a",{href:"https://github.com/onlydev/tracelet",target:"_blank",rel:"noopener noreferrer",children:[h.jsx(Sx,{className:"size-4"}),"View setup guide"]})})]})]})}function Iw({className:t,size:a="default",...o}){return h.jsx("div",{"data-slot":"card","data-size":a,className:te("ring-foreground/10 bg-card text-card-foreground gap-4 overflow-hidden rounded-lg py-4 text-xs/relaxed ring-1 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 *:[img:first-child]:rounded-t-lg *:[img:last-child]:rounded-b-lg group/card flex flex-col",t),...o})}function Gw({className:t,...a}){return h.jsx("div",{"data-slot":"card-header",className:te("gap-1 rounded-t-lg px-4 group-data-[size=sm]/card:px-3 [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3 group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",t),...a})}function Vw({className:t,...a}){return h.jsx("div",{"data-slot":"card-title",className:te("text-sm font-medium",t),...a})}function qw({className:t,...a}){return h.jsx("div",{"data-slot":"card-description",className:te("text-muted-foreground text-xs/relaxed",t),...a})}function Ww({className:t,...a}){return h.jsx("div",{"data-slot":"card-content",className:te("px-4 group-data-[size=sm]/card:px-3",t),...a})}function L4({className:t,...a}){return h.jsx("div",{"data-slot":"field-group",className:te("gap-4 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4 group/field-group @container/field-group flex w-full flex-col",t),...a})}const P4=fr("data-[invalid=true]:text-destructive gap-2 group/field flex w-full",{variants:{orientation:{vertical:"flex-col *:w-full [&>.sr-only]:w-auto",horizontal:"flex-row items-center *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",responsive:"flex-col *:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:*:data-[slot=field-label]:flex-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"}},defaultVariants:{orientation:"vertical"}});function fx({className:t,orientation:a="vertical",...o}){return h.jsx("div",{role:"group","data-slot":"field","data-orientation":a,className:te(P4({orientation:a}),t),...o})}const zm="tracelet-docs-token";function B4(){try{return localStorage.getItem(zm)}catch{return null}}function Fw(t){try{t?localStorage.setItem(zm,t):localStorage.removeItem(zm)}catch{}}function H4({authUrl:t,onSuccess:a,embedded:o}){const[l,s]=v.useState(""),[c,f]=v.useState(""),[d,p]=v.useState(null),[g,y]=v.useState(!1),b=v.useCallback(async _=>{_.preventDefault(),p(null),y(!0);try{const M=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:l,password:c})}),w=await M.json().catch(()=>({}));if(M.ok&&(w.token!=null||w.authenticated===!0)){w.token?(Fw(w.token),a(w.token)):a("");return}p(w.error??"Invalid credentials")}catch(M){p(M instanceof Error?M.message:"Request failed")}finally{y(!1)}},[t,l,c,a]),S=h.jsxs(Iw,{className:te(o?"border-0 shadow-none":"w-full max-w-sm","overflow-hidden"),children:[h.jsxs(Gw,{className:te("space-y-3 pb-6"),children:[h.jsx("div",{className:"flex size-10 items-center justify-center rounded-full bg-primary/10 text-primary",children:h.jsx(iM,{className:"size-5","aria-hidden":!0})}),h.jsxs("div",{className:"space-y-1",children:[h.jsx(Vw,{className:"text-base font-semibold tracking-tight",children:"Sign in to Tracelet Docs"}),h.jsx(qw,{className:"text-xs/relaxed",children:"Use your credentials to access the API documentation."})]})]}),h.jsx(Ww,{className:te("pt-0"),children:h.jsx("form",{onSubmit:b,className:"space-y-4",children:h.jsxs(L4,{className:"gap-4",children:[h.jsxs(fx,{children:[h.jsx(ir,{htmlFor:"login-username",className:"text-xs font-medium text-muted-foreground",children:"Username"}),h.jsx(Xn,{id:"login-username",type:"text",autoComplete:"username",placeholder:"Enter username",value:l,onChange:_=>s(_.target.value),disabled:g,required:!0,className:"h-9"})]}),h.jsxs(fx,{children:[h.jsx(ir,{htmlFor:"login-password",className:"text-xs font-medium text-muted-foreground",children:"Password"}),h.jsx(Xn,{id:"login-password",type:"password",autoComplete:"current-password",placeholder:"Enter password",value:c,onChange:_=>f(_.target.value),disabled:g,required:!0,className:"h-9"})]}),d&&h.jsx("div",{role:"alert",className:"flex items-center gap-2 rounded-md border border-destructive/20 bg-destructive/5 px-3 py-2 text-xs text-destructive",children:d}),h.jsx(ct,{type:"submit",className:"mt-1 h-9 w-full gap-2 font-medium",disabled:g,children:g?h.jsxs(h.Fragment,{children:[h.jsx(Ir,{className:"size-4 shrink-0 animate-spin","aria-hidden":!0}),"Signing in…"]}):"Sign in"})]})})})]});return o?S:h.jsx("div",{className:"flex min-h-screen items-center justify-center p-4",children:S})}function Y4({...t}){return h.jsx(QO,{"data-slot":"dropdown-menu",...t})}function I4({...t}){return h.jsx(JO,{"data-slot":"dropdown-menu-trigger",...t})}function G4({className:t,align:a="start",sideOffset:o=4,...l}){return h.jsx(eD,{children:h.jsx(tD,{"data-slot":"dropdown-menu-content",sideOffset:o,align:a,className:te("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100 z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto data-[state=closed]:overflow-hidden",t),...l})})}function lm({className:t,inset:a,variant:o="default",...l}){return h.jsx(nD,{"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":o,className:te("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed data-inset:pl-7.5 [&_svg:not([class*='size-'])]:size-3.5 group/dropdown-menu-item relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",t),...l})}const V4={theme:"system",setTheme:()=>null},$w=v.createContext(V4);function q4({children:t,defaultTheme:a="system",storageKey:o="tracelet-ui-theme",...l}){const[s,c]=v.useState(()=>localStorage.getItem(o)||a);v.useEffect(()=>{const p=window.document.documentElement;if(p.classList.remove("light","dark"),s==="system"){const g=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";p.classList.add(g);return}p.classList.add(s)},[s]);const d={theme:s,setTheme:p=>{localStorage.setItem(o,p),c(p)}};return h.jsx($w.Provider,{...l,value:d,children:t})}const W4=()=>{const t=v.useContext($w);if(t===void 0)throw new Error("useTheme must be used within a ThemeProvider");return t};function F4(){const{setTheme:t}=W4();return h.jsxs(Y4,{children:[h.jsx(I4,{asChild:!0,children:h.jsxs(ct,{variant:"outline",size:"icon",children:[h.jsx(bM,{className:"size-4 scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90"}),h.jsx(cM,{className:"absolute size-4 scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0"}),h.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),h.jsxs(G4,{align:"end",children:[h.jsx(lm,{onClick:()=>t("light"),children:"Light"}),h.jsx(lm,{onClick:()=>t("dark"),children:"Dark"}),h.jsx(lm,{onClick:()=>t("system"),children:"System"})]})]})}var mx=1,$4=.9,K4=.8,X4=.17,im=.1,sm=.999,Z4=.9999,Q4=.99,J4=/[\\\/_+.#"@\[\(\{&]/,e5=/[\\\/_+.#"@\[\(\{&]/g,t5=/[\s-]/,Kw=/[\s-]/g;function Um(t,a,o,l,s,c,f){if(c===a.length)return s===t.length?mx:Q4;var d=`${s},${c}`;if(f[d]!==void 0)return f[d];for(var p=l.charAt(c),g=o.indexOf(p,s),y=0,b,S,_,M;g>=0;)b=Um(t,a,o,l,g+1,c+1,f),b>y&&(g===s?b*=mx:J4.test(t.charAt(g-1))?(b*=K4,_=t.slice(s,g-1).match(e5),_&&s>0&&(b*=Math.pow(sm,_.length))):t5.test(t.charAt(g-1))?(b*=$4,M=t.slice(s,g-1).match(Kw),M&&s>0&&(b*=Math.pow(sm,M.length))):(b*=X4,s>0&&(b*=Math.pow(sm,g-s))),t.charAt(g)!==a.charAt(c)&&(b*=Z4)),(b<im&&o.charAt(g-1)===l.charAt(c+1)||l.charAt(c+1)===l.charAt(c)&&o.charAt(g-1)!==l.charAt(c))&&(S=Um(t,a,o,l,g+1,c+2,f),S*im>b&&(b=S*im)),b>y&&(y=b),g=o.indexOf(p,g+1);return f[d]=y,y}function px(t){return t.toLowerCase().replace(Kw," ")}function n5(t,a,o){return t=o&&o.length>0?`${t+" "+o.join(" ")}`:t,Um(t,a,px(t),px(a),0,0,{})}var a5=Symbol.for("react.lazy"),Ac=Ym[" use ".trim().toString()];function r5(t){return typeof t=="object"&&t!==null&&"then"in t}function Xw(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===a5&&"_payload"in t&&r5(t._payload)}function o5(t){const a=l5(t),o=v.forwardRef((l,s)=>{let{children:c,...f}=l;Xw(c)&&typeof Ac=="function"&&(c=Ac(c._payload));const d=v.Children.toArray(c),p=d.find(s5);if(p){const g=p.props.children,y=d.map(b=>b===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:b);return h.jsx(a,{...f,ref:s,children:v.isValidElement(g)?v.cloneElement(g,void 0,y):null})}return h.jsx(a,{...f,ref:s,children:c})});return o.displayName=`${t}.Slot`,o}function l5(t){const a=v.forwardRef((o,l)=>{let{children:s,...c}=o;if(Xw(s)&&typeof Ac=="function"&&(s=Ac(s._payload)),v.isValidElement(s)){const f=u5(s),d=c5(c,s.props);return s.type!==v.Fragment&&(d.ref=l?ta(l,f):f),v.cloneElement(s,d)}return v.Children.count(s)>1?v.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var i5=Symbol("radix.slottable");function s5(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===i5}function c5(t,a){const o={...a};for(const l in a){const s=t[l],c=a[l];/^on[A-Z]/.test(l)?s&&c?o[l]=(...d)=>{const p=c(...d);return s(...d),p}:s&&(o[l]=s):l==="style"?o[l]={...s,...c}:l==="className"&&(o[l]=[s,c].filter(Boolean).join(" "))}return{...t,...o}}function u5(t){let a=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,o=a&&"isReactWarning"in a&&a.isReactWarning;return o?t.ref:(a=Object.getOwnPropertyDescriptor(t,"ref")?.get,o=a&&"isReactWarning"in a&&a.isReactWarning,o?t.props.ref:t.props.ref||t.ref)}var d5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],vr=d5.reduce((t,a)=>{const o=o5(`Primitive.${a}`),l=v.forwardRef((s,c)=>{const{asChild:f,...d}=s,p=f?o:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(p,{...d,ref:c})});return l.displayName=`Primitive.${a}`,{...t,[a]:l}},{}),yi='[cmdk-group=""]',cm='[cmdk-group-items=""]',f5='[cmdk-group-heading=""]',Zw='[cmdk-item=""]',hx=`${Zw}:not([aria-disabled="true"])`,Lm="cmdk-item-select",Zo="data-value",m5=(t,a,o)=>n5(t,a,o),Qw=v.createContext(void 0),Fi=()=>v.useContext(Qw),Jw=v.createContext(void 0),Ip=()=>v.useContext(Jw),e_=v.createContext(void 0),t_=v.forwardRef((t,a)=>{let o=Qo(()=>{var N,B;return{search:"",value:(B=(N=t.value)!=null?N:t.defaultValue)!=null?B:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),l=Qo(()=>new Set),s=Qo(()=>new Map),c=Qo(()=>new Map),f=Qo(()=>new Set),d=n_(t),{label:p,children:g,value:y,onValueChange:b,filter:S,shouldFilter:_,loop:M,disablePointerSelection:w=!1,vimBindings:E=!0,...T}=t,k=_t(),D=_t(),j=_t(),R=v.useRef(null),U=C5();Xr(()=>{if(y!==void 0){let N=y.trim();o.current.value=N,Y.emit()}},[y]),Xr(()=>{U(6,le)},[]);let Y=v.useMemo(()=>({subscribe:N=>(f.current.add(N),()=>f.current.delete(N)),snapshot:()=>o.current,setState:(N,B,$)=>{var Q,se,X,de;if(!Object.is(o.current[N],B)){if(o.current[N]=B,N==="search")J(),oe(),U(1,O);else if(N==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let xe=document.getElementById(j);xe?xe.focus():(Q=document.getElementById(k))==null||Q.focus()}if(U(7,()=>{var xe;o.current.selectedItemId=(xe=ae())==null?void 0:xe.id,Y.emit()}),$||U(5,le),((se=d.current)==null?void 0:se.value)!==void 0){let xe=B??"";(de=(X=d.current).onValueChange)==null||de.call(X,xe);return}}Y.emit()}},emit:()=>{f.current.forEach(N=>N())}}),[]),H=v.useMemo(()=>({value:(N,B,$)=>{var Q;B!==((Q=c.current.get(N))==null?void 0:Q.value)&&(c.current.set(N,{value:B,keywords:$}),o.current.filtered.items.set(N,ie(B,$)),U(2,()=>{oe(),Y.emit()}))},item:(N,B)=>(l.current.add(N),B&&(s.current.has(B)?s.current.get(B).add(N):s.current.set(B,new Set([N]))),U(3,()=>{J(),oe(),o.current.value||O(),Y.emit()}),()=>{c.current.delete(N),l.current.delete(N),o.current.filtered.items.delete(N);let $=ae();U(4,()=>{J(),$?.getAttribute("id")===N&&O(),Y.emit()})}),group:N=>(s.current.has(N)||s.current.set(N,new Set),()=>{c.current.delete(N),s.current.delete(N)}),filter:()=>d.current.shouldFilter,label:p||t["aria-label"],getDisablePointerSelection:()=>d.current.disablePointerSelection,listId:k,inputId:j,labelId:D,listInnerRef:R}),[]);function ie(N,B){var $,Q;let se=(Q=($=d.current)==null?void 0:$.filter)!=null?Q:m5;return N?se(N,o.current.search,B):0}function oe(){if(!o.current.search||d.current.shouldFilter===!1)return;let N=o.current.filtered.items,B=[];o.current.filtered.groups.forEach(Q=>{let se=s.current.get(Q),X=0;se.forEach(de=>{let xe=N.get(de);X=Math.max(xe,X)}),B.push([Q,X])});let $=R.current;V().sort((Q,se)=>{var X,de;let xe=Q.getAttribute("id"),pe=se.getAttribute("id");return((X=N.get(pe))!=null?X:0)-((de=N.get(xe))!=null?de:0)}).forEach(Q=>{let se=Q.closest(cm);se?se.appendChild(Q.parentElement===se?Q:Q.closest(`${cm} > *`)):$.appendChild(Q.parentElement===$?Q:Q.closest(`${cm} > *`))}),B.sort((Q,se)=>se[1]-Q[1]).forEach(Q=>{var se;let X=(se=R.current)==null?void 0:se.querySelector(`${yi}[${Zo}="${encodeURIComponent(Q[0])}"]`);X?.parentElement.appendChild(X)})}function O(){let N=V().find($=>$.getAttribute("aria-disabled")!=="true"),B=N?.getAttribute(Zo);Y.setState("value",B||void 0)}function J(){var N,B,$,Q;if(!o.current.search||d.current.shouldFilter===!1){o.current.filtered.count=l.current.size;return}o.current.filtered.groups=new Set;let se=0;for(let X of l.current){let de=(B=(N=c.current.get(X))==null?void 0:N.value)!=null?B:"",xe=(Q=($=c.current.get(X))==null?void 0:$.keywords)!=null?Q:[],pe=ie(de,xe);o.current.filtered.items.set(X,pe),pe>0&&se++}for(let[X,de]of s.current)for(let xe of de)if(o.current.filtered.items.get(xe)>0){o.current.filtered.groups.add(X);break}o.current.filtered.count=se}function le(){var N,B,$;let Q=ae();Q&&(((N=Q.parentElement)==null?void 0:N.firstChild)===Q&&(($=(B=Q.closest(yi))==null?void 0:B.querySelector(f5))==null||$.scrollIntoView({block:"nearest"})),Q.scrollIntoView({block:"nearest"}))}function ae(){var N;return(N=R.current)==null?void 0:N.querySelector(`${Zw}[aria-selected="true"]`)}function V(){var N;return Array.from(((N=R.current)==null?void 0:N.querySelectorAll(hx))||[])}function P(N){let B=V()[N];B&&Y.setState("value",B.getAttribute(Zo))}function I(N){var B;let $=ae(),Q=V(),se=Q.findIndex(de=>de===$),X=Q[se+N];(B=d.current)!=null&&B.loop&&(X=se+N<0?Q[Q.length-1]:se+N===Q.length?Q[0]:Q[se+N]),X&&Y.setState("value",X.getAttribute(Zo))}function z(N){let B=ae(),$=B?.closest(yi),Q;for(;$&&!Q;)$=N>0?w5($,yi):_5($,yi),Q=$?.querySelector(hx);Q?Y.setState("value",Q.getAttribute(Zo)):I(N)}let F=()=>P(V().length-1),ce=N=>{N.preventDefault(),N.metaKey?F():N.altKey?z(1):I(1)},ue=N=>{N.preventDefault(),N.metaKey?P(0):N.altKey?z(-1):I(-1)};return v.createElement(vr.div,{ref:a,tabIndex:-1,...T,"cmdk-root":"",onKeyDown:N=>{var B;(B=T.onKeyDown)==null||B.call(T,N);let $=N.nativeEvent.isComposing||N.keyCode===229;if(!(N.defaultPrevented||$))switch(N.key){case"n":case"j":{E&&N.ctrlKey&&ce(N);break}case"ArrowDown":{ce(N);break}case"p":case"k":{E&&N.ctrlKey&&ue(N);break}case"ArrowUp":{ue(N);break}case"Home":{N.preventDefault(),P(0);break}case"End":{N.preventDefault(),F();break}case"Enter":{N.preventDefault();let Q=ae();if(Q){let se=new Event(Lm);Q.dispatchEvent(se)}}}}},v.createElement("label",{"cmdk-label":"",htmlFor:H.inputId,id:H.labelId,style:M5},p),uu(t,N=>v.createElement(Jw.Provider,{value:Y},v.createElement(Qw.Provider,{value:H},N))))}),p5=v.forwardRef((t,a)=>{var o,l;let s=_t(),c=v.useRef(null),f=v.useContext(e_),d=Fi(),p=n_(t),g=(l=(o=p.current)==null?void 0:o.forceMount)!=null?l:f?.forceMount;Xr(()=>{if(!g)return d.item(s,f?.id)},[g]);let y=a_(s,c,[t.value,t.children,c],t.keywords),b=Ip(),S=ja(U=>U.value&&U.value===y.current),_=ja(U=>g||d.filter()===!1?!0:U.search?U.filtered.items.get(s)>0:!0);v.useEffect(()=>{let U=c.current;if(!(!U||t.disabled))return U.addEventListener(Lm,M),()=>U.removeEventListener(Lm,M)},[_,t.onSelect,t.disabled]);function M(){var U,Y;w(),(Y=(U=p.current).onSelect)==null||Y.call(U,y.current)}function w(){b.setState("value",y.current,!0)}if(!_)return null;let{disabled:E,value:T,onSelect:k,forceMount:D,keywords:j,...R}=t;return v.createElement(vr.div,{ref:ta(c,a),...R,id:s,"cmdk-item":"",role:"option","aria-disabled":!!E,"aria-selected":!!S,"data-disabled":!!E,"data-selected":!!S,onPointerMove:E||d.getDisablePointerSelection()?void 0:w,onClick:E?void 0:M},t.children)}),h5=v.forwardRef((t,a)=>{let{heading:o,children:l,forceMount:s,...c}=t,f=_t(),d=v.useRef(null),p=v.useRef(null),g=_t(),y=Fi(),b=ja(_=>s||y.filter()===!1?!0:_.search?_.filtered.groups.has(f):!0);Xr(()=>y.group(f),[]),a_(f,d,[t.value,t.heading,p]);let S=v.useMemo(()=>({id:f,forceMount:s}),[s]);return v.createElement(vr.div,{ref:ta(d,a),...c,"cmdk-group":"",role:"presentation",hidden:b?void 0:!0},o&&v.createElement("div",{ref:p,"cmdk-group-heading":"","aria-hidden":!0,id:g},o),uu(t,_=>v.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":o?g:void 0},v.createElement(e_.Provider,{value:S},_))))}),g5=v.forwardRef((t,a)=>{let{alwaysRender:o,...l}=t,s=v.useRef(null),c=ja(f=>!f.search);return!o&&!c?null:v.createElement(vr.div,{ref:ta(s,a),...l,"cmdk-separator":"",role:"separator"})}),v5=v.forwardRef((t,a)=>{let{onValueChange:o,...l}=t,s=t.value!=null,c=Ip(),f=ja(g=>g.search),d=ja(g=>g.selectedItemId),p=Fi();return v.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),v.createElement(vr.input,{ref:a,...l,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":p.listId,"aria-labelledby":p.labelId,"aria-activedescendant":d,id:p.inputId,type:"text",value:s?t.value:f,onChange:g=>{s||c.setState("search",g.target.value),o?.(g.target.value)}})}),y5=v.forwardRef((t,a)=>{let{children:o,label:l="Suggestions",...s}=t,c=v.useRef(null),f=v.useRef(null),d=ja(g=>g.selectedItemId),p=Fi();return v.useEffect(()=>{if(f.current&&c.current){let g=f.current,y=c.current,b,S=new ResizeObserver(()=>{b=requestAnimationFrame(()=>{let _=g.offsetHeight;y.style.setProperty("--cmdk-list-height",_.toFixed(1)+"px")})});return S.observe(g),()=>{cancelAnimationFrame(b),S.unobserve(g)}}},[]),v.createElement(vr.div,{ref:ta(c,a),...s,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":d,"aria-label":l,id:p.listId},uu(t,g=>v.createElement("div",{ref:ta(f,p.listInnerRef),"cmdk-list-sizer":""},g)))}),b5=v.forwardRef((t,a)=>{let{open:o,onOpenChange:l,overlayClassName:s,contentClassName:c,container:f,...d}=t;return v.createElement(Jm,{open:o,onOpenChange:l},v.createElement(ep,{container:f},v.createElement(tp,{"cmdk-overlay":"",className:s}),v.createElement(np,{"aria-label":t.label,"cmdk-dialog":"",className:c},v.createElement(t_,{ref:a,...d}))))}),x5=v.forwardRef((t,a)=>ja(o=>o.filtered.count===0)?v.createElement(vr.div,{ref:a,...t,"cmdk-empty":"",role:"presentation"}):null),S5=v.forwardRef((t,a)=>{let{progress:o,children:l,label:s="Loading...",...c}=t;return v.createElement(vr.div,{ref:a,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":s},uu(t,f=>v.createElement("div",{"aria-hidden":!0},f)))}),hl=Object.assign(t_,{List:y5,Item:p5,Input:v5,Group:h5,Separator:g5,Dialog:b5,Empty:x5,Loading:S5});function w5(t,a){let o=t.nextElementSibling;for(;o;){if(o.matches(a))return o;o=o.nextElementSibling}}function _5(t,a){let o=t.previousElementSibling;for(;o;){if(o.matches(a))return o;o=o.previousElementSibling}}function n_(t){let a=v.useRef(t);return Xr(()=>{a.current=t}),a}var Xr=typeof window>"u"?v.useEffect:v.useLayoutEffect;function Qo(t){let a=v.useRef();return a.current===void 0&&(a.current=t()),a}function ja(t){let a=Ip(),o=()=>t(a.snapshot());return v.useSyncExternalStore(a.subscribe,o,o)}function a_(t,a,o,l=[]){let s=v.useRef(),c=Fi();return Xr(()=>{var f;let d=(()=>{var g;for(let y of o){if(typeof y=="string")return y.trim();if(typeof y=="object"&&"current"in y)return y.current?(g=y.current.textContent)==null?void 0:g.trim():s.current}})(),p=l.map(g=>g.trim());c.value(t,d,p),(f=a.current)==null||f.setAttribute(Zo,d),s.current=d}),s}var C5=()=>{let[t,a]=v.useState(),o=Qo(()=>new Map);return Xr(()=>{o.current.forEach(l=>l()),o.current=new Map},[t]),(l,s)=>{o.current.set(l,s),a({})}};function E5(t){let a=t.type;return typeof a=="function"?a(t.props):"render"in a?a.render(t.props):t}function uu({asChild:t,children:a},o){return t&&v.isValidElement(a)?v.cloneElement(E5(a),{ref:a.ref},o(a.props.children)):o(a)}var M5={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function r_({...t}){return h.jsx(Jm,{"data-slot":"dialog",...t})}function N5({...t}){return h.jsx(ep,{"data-slot":"dialog-portal",...t})}function T5({className:t,...a}){return h.jsx(tp,{"data-slot":"dialog-overlay",className:te("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 isolate z-50",t),...a})}function o_({className:t,children:a,showCloseButton:o=!0,...l}){return h.jsxs(N5,{children:[h.jsx(T5,{}),h.jsxs(np,{"data-slot":"dialog-content",className:te("bg-background data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/10 grid max-w-[calc(100%-2rem)] gap-4 rounded-xl p-4 text-xs/relaxed ring-1 duration-100 sm:max-w-sm fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 outline-none",t),...l,children:[a,o&&h.jsx(d0,{"data-slot":"dialog-close",asChild:!0,children:h.jsxs(ct,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm",children:[h.jsx(Mx,{}),h.jsx("span",{className:"sr-only",children:"Close"})]})})]})]})}function k5({className:t,...a}){return h.jsx("div",{"data-slot":"dialog-header",className:te("gap-1 flex flex-col",t),...a})}function O5({className:t,...a}){return h.jsx(c0,{"data-slot":"dialog-title",className:te("text-sm font-medium",t),...a})}function D5({className:t,...a}){return h.jsx(u0,{"data-slot":"dialog-description",className:te("text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed *:[a]:underline *:[a]:underline-offset-3",t),...a})}function j5({className:t,...a}){return h.jsx("div",{"data-slot":"input-group",role:"group",className:te("border-input bg-input/20 dark:bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/30 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 h-7 rounded-md border transition-colors in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-data-[align=block-end]:rounded-md has-data-[align=block-start]:rounded-md has-[[data-slot=input-group-control]:focus-visible]:ring-2 has-[[data-slot][aria-invalid=true]]:ring-2 has-[textarea]:rounded-md has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto",t),...a})}const R5=fr("text-muted-foreground **:data-[slot=kbd]:bg-muted-foreground/10 h-auto gap-1 py-2 text-xs/relaxed font-medium group-data-[disabled=true]/input-group:opacity-50 **:data-[slot=kbd]:rounded-[calc(var(--radius-sm)-2px)] **:data-[slot=kbd]:px-1 **:data-[slot=kbd]:text-[0.625rem] [&>svg:not([class*='size-'])]:size-3.5 flex cursor-text items-center justify-center select-none",{variants:{align:{"inline-start":"pl-2 has-[>button]:ml-[-0.275rem] has-[>kbd]:ml-[-0.275rem] order-first","inline-end":"pr-2 has-[>button]:mr-[-0.275rem] has-[>kbd]:mr-[-0.275rem] order-last","block-start":"px-2 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2 order-first w-full justify-start","block-end":"px-2 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2 order-last w-full justify-start"}},defaultVariants:{align:"inline-start"}});function A5({className:t,align:a="inline-start",...o}){return h.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":a,className:te(R5({align:a}),t),onClick:l=>{l.target.closest("button")||l.currentTarget.parentElement?.querySelector("input")?.focus()},...o})}function z5({className:t,...a}){return h.jsx(hl,{"data-slot":"command",className:te("bg-popover text-popover-foreground rounded-xl p-1 flex size-full flex-col overflow-hidden",t),...a})}function U5({title:t="Command Palette",description:a="Search for a command to run...",children:o,className:l,showCloseButton:s=!1,...c}){return h.jsxs(r_,{...c,children:[h.jsxs(k5,{className:"sr-only",children:[h.jsx(O5,{children:t}),h.jsx(D5,{children:a})]}),h.jsx(o_,{className:te("rounded-xl! top-1/3 translate-y-0 overflow-hidden p-0",l),showCloseButton:s,children:o})]})}function L5({className:t,...a}){return h.jsx("div",{"data-slot":"command-input-wrapper",className:"p-1 pb-0",children:h.jsxs(j5,{className:"bg-input/20 dark:bg-input/30 h-8!",children:[h.jsx(hl.Input,{"data-slot":"command-input",className:te("w-full text-xs/relaxed outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),...a}),h.jsx(A5,{children:h.jsx(Ex,{className:"size-3.5 shrink-0 opacity-50"})})]})})}function P5({className:t,...a}){return h.jsx(hl.List,{"data-slot":"command-list",className:te("no-scrollbar max-h-72 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto",t),...a})}function B5({className:t,...a}){return h.jsx(hl.Empty,{"data-slot":"command-empty",className:te("py-6 text-center text-xs/relaxed",t),...a})}function H5({className:t,...a}){return h.jsx(hl.Group,{"data-slot":"command-group",className:te("text-foreground **:[[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 **:[[cmdk-group-heading]]:px-2.5 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium",t),...a})}function Y5({className:t,children:a,...o}){return h.jsxs(hl.Item,{"data-slot":"command-item",className:te("data-selected:bg-muted data-selected:text-foreground data-selected:*:[svg]:text-foreground relative flex min-h-7 cursor-default items-center gap-2 rounded-md px-2.5 py-1.5 text-xs/relaxed outline-hidden select-none in-data-[slot=dialog-content]:rounded-md [&_svg:not([class*='size-'])]:size-3.5 group/command-item data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",t),...o,children:[a,h.jsx(Im,{className:"ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100"})]})}function bc({className:t,...a}){return h.jsx("kbd",{"data-slot":"kbd",className:te("bg-muted text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 h-5 w-fit min-w-5 gap-1 rounded-xs px-1 font-sans text-[0.625rem] font-medium [&_svg:not([class*='size-'])]:size-3 pointer-events-none inline-flex items-center justify-center select-none",t),...a})}function gx({className:t,...a}){return h.jsx("kbd",{"data-slot":"kbd-group",className:te("gap-1 inline-flex items-center",t),...a})}function I5({...t}){return h.jsx(FM,{"data-slot":"collapsible",...t})}function G5({...t}){return h.jsx(zx,{"data-slot":"collapsible-trigger",...t})}function V5({...t}){return h.jsx(Ux,{"data-slot":"collapsible-content",...t})}const um=768;function q5(){const[t,a]=v.useState(void 0);return v.useEffect(()=>{const o=window.matchMedia(`(max-width: ${um-1}px)`),l=()=>{a(window.innerWidth<um)};return o.addEventListener("change",l),a(window.innerWidth<um),()=>o.removeEventListener("change",l)},[]),!!t}function W5({...t}){return h.jsx(Jm,{"data-slot":"sheet",...t})}function F5({...t}){return h.jsx(ep,{"data-slot":"sheet-portal",...t})}function $5({className:t,...a}){return h.jsx(tp,{"data-slot":"sheet-overlay",className:te("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50",t),...a})}function K5({className:t,children:a,side:o="right",showCloseButton:l=!0,...s}){return h.jsxs(F5,{children:[h.jsx($5,{}),h.jsxs(np,{"data-slot":"sheet-content","data-side":o,className:te("bg-background data-open:animate-in data-closed:animate-out data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 fixed z-50 flex flex-col bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",t),...s,children:[a,l&&h.jsx(d0,{"data-slot":"sheet-close",asChild:!0,children:h.jsxs(ct,{variant:"ghost",className:"absolute top-4 right-4",size:"icon-sm",children:[h.jsx(Mx,{}),h.jsx("span",{className:"sr-only",children:"Close"})]})})]})]})}function X5({className:t,...a}){return h.jsx("div",{"data-slot":"sheet-header",className:te("gap-1.5 p-6 flex flex-col",t),...a})}function Z5({className:t,...a}){return h.jsx(c0,{"data-slot":"sheet-title",className:te("text-foreground text-sm font-medium",t),...a})}function Q5({className:t,...a}){return h.jsx(u0,{"data-slot":"sheet-description",className:te("text-muted-foreground text-xs/relaxed",t),...a})}function J5({delayDuration:t=0,...a}){return h.jsx(Sj,{"data-slot":"tooltip-provider",delayDuration:t,...a})}function e6({...t}){return h.jsx(wj,{"data-slot":"tooltip",...t})}function t6({...t}){return h.jsx(_j,{"data-slot":"tooltip-trigger",...t})}function n6({className:t,sideOffset:a=0,children:o,...l}){return h.jsx(Cj,{children:h.jsxs(Ej,{"data-slot":"tooltip-content",sideOffset:a,className:te("data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 rounded-md px-3 py-1.5 text-xs **:data-[slot=kbd]:rounded-md bg-foreground text-background z-50 w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin)",t),...l,children:[o,h.jsx(Mj,{className:"size-2.5 rotate-45 rounded-[2px] bg-foreground fill-foreground z-50 translate-y-[calc(-50%-2px)]"})]})})}const a6="sidebar_state",r6=3600*24*7,o6="16rem",l6="18rem",i6="3rem",s6="b",l_=v.createContext(null);function du(){const t=v.useContext(l_);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function c6({defaultOpen:t=!0,open:a,onOpenChange:o,className:l,style:s,children:c,...f}){const d=q5(),[p,g]=v.useState(!1),[y,b]=v.useState(t),S=a??y,_=v.useCallback(T=>{const k=typeof T=="function"?T(S):T;o?o(k):b(k),document.cookie=`${a6}=${k}; path=/; max-age=${r6}`},[o,S]),M=v.useCallback(()=>d?g(T=>!T):_(T=>!T),[d,_,g]);v.useEffect(()=>{const T=k=>{k.key===s6&&(k.metaKey||k.ctrlKey)&&(k.preventDefault(),M())};return window.addEventListener("keydown",T),()=>window.removeEventListener("keydown",T)},[M]);const w=S?"expanded":"collapsed",E=v.useMemo(()=>({state:w,open:S,setOpen:_,isMobile:d,openMobile:p,setOpenMobile:g,toggleSidebar:M}),[w,S,_,d,p,g,M]);return h.jsx(l_.Provider,{value:E,children:h.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":o6,"--sidebar-width-icon":i6,...s},className:te("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",l),...f,children:c})})}function u6({side:t="left",variant:a="sidebar",collapsible:o="offcanvas",className:l,children:s,dir:c,...f}){const{isMobile:d,state:p,openMobile:g,setOpenMobile:y}=du();return o==="none"?h.jsx("div",{"data-slot":"sidebar",className:te("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",l),...f,children:s}):d?h.jsx(W5,{open:g,onOpenChange:y,...f,children:h.jsxs(K5,{dir:c,"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":l6},side:t,children:[h.jsxs(X5,{className:"sr-only",children:[h.jsx(Z5,{children:"Sidebar"}),h.jsx(Q5,{children:"Displays the mobile sidebar."})]}),h.jsx("div",{className:"flex h-full w-full flex-col",children:s})]})}):h.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":p,"data-collapsible":p==="collapsed"?o:"","data-variant":a,"data-side":t,"data-slot":"sidebar",children:[h.jsx("div",{"data-slot":"sidebar-gap",className:te("transition-[width] duration-200 ease-linear relative w-(--sidebar-width) bg-transparent","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",a==="floating"||a==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),h.jsx("div",{"data-slot":"sidebar-container","data-side":t,className:te("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",a==="floating"||a==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",l),...f,children:h.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:ring-sidebar-border group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 flex size-full flex-col",children:s})})]})}function d6({className:t,onClick:a,...o}){const{toggleSidebar:l}=du();return h.jsxs(ct,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:te(t),onClick:s=>{a?.(s),l()},...o,children:[h.jsx(dM,{}),h.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function f6({className:t,...a}){const{toggleSidebar:o}=du();return h.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:te("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-[2px] sm:flex ltr:-translate-x-1/2 rtl:-translate-x-1/2","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",t),...a})}function m6({className:t,...a}){return h.jsx("main",{"data-slot":"sidebar-inset",className:te("bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 relative flex w-full flex-1 flex-col",t),...a})}function p6({className:t,...a}){return h.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:te("gap-2 p-2 flex flex-col",t),...a})}function h6({className:t,...a}){return h.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:te("no-scrollbar gap-0 flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),...a})}function g6({className:t,...a}){return h.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:te("gap-px flex w-full min-w-0 flex-col",t),...a})}function i_({className:t,...a}){return h.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:te("group/menu-item relative",t),...a})}const v6=fr("ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground gap-2 rounded-[calc(var(--radius-sm)+2px)] p-2 text-left text-xs transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 data-active:font-medium peer/menu-button flex w-full items-center overflow-hidden outline-hidden group/menu-button disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-xs",sm:"h-7 text-xs",lg:"h-12 text-xs group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function s_({asChild:t=!1,isActive:a=!1,variant:o="default",size:l="default",tooltip:s,className:c,...f}){const d=t?Uc:"button",{isMobile:p,state:g}=du(),y=h.jsx(d,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":l,"data-active":a,className:te(v6({variant:o,size:l}),c),...f});return s?(typeof s=="string"&&(s={children:s}),h.jsxs(e6,{children:[h.jsx(t6,{asChild:!0,children:y}),h.jsx(n6,{side:"right",align:"center",hidden:g!=="collapsed"||p,...s})]})):y}function y6({className:t,...a}){return h.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:te("border-sidebar-border mx-3.5 translate-x-px gap-1 border-l px-2.5 py-0.5 group-data-[collapsible=icon]:hidden flex min-w-0 flex-col",t),...a})}function vx({className:t,...a}){return h.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:te("group/menu-sub-item relative",t),...a})}function b6({asChild:t=!1,size:a="md",isActive:o=!1,className:l,...s}){const c=t?Uc:"a";return h.jsx(c,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":a,"data-active":o,className:te("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground h-7 gap-2 rounded-md px-2 focus-visible:ring-2 data-[size=md]:text-xs data-[size=sm]:text-xs [&>svg]:size-4 flex min-w-0 -translate-x-px items-center overflow-hidden outline-hidden group-data-[collapsible=icon]:hidden disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:shrink-0",l),...s})}function zc(t){const a=[];for(const o of t)a.push(o),o.routes?.length&&a.push(...zc(o.routes));return a}function x6({width:t=40,height:a=40,isLong:o=!1}){return h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("img",{src:"/tracelet-docs/logo.svg",alt:"Tracelet",width:t,height:a,className:"object-contain"}),o&&h.jsx("span",{className:"text-2xl font-bold",children:"Tracelet"})]})}function fu(t){const a=t.toUpperCase(),o="font-mono text-[10px] font-semibold rounded border shrink-0 ";switch(a){case"GET":return o+"bg-emerald-500/15 text-emerald-700 dark:text-emerald-400 border-emerald-500/30 dark:border-emerald-500/30";case"POST":return o+"bg-blue-500/15 text-blue-700 dark:text-blue-400 border-blue-500/30 dark:border-blue-500/30";case"PUT":return o+"bg-amber-500/15 text-amber-700 dark:text-amber-400 border-amber-500/30 dark:border-amber-500/30";case"PATCH":return o+"bg-violet-500/15 text-violet-700 dark:text-violet-400 border-violet-500/30 dark:border-violet-500/30";case"DELETE":return o+"bg-red-500/15 text-red-700 dark:text-red-400 border-red-500/30 dark:border-red-500/30";default:return o+"bg-muted text-muted-foreground border-border"}}function Pm(t){return`${t.method}:${t.path}`}function S6({route:t,isSelected:a,onSelect:o}){const l=typeof t.method=="string"?t.method:String(t.method),s=typeof t.path=="string"&&t.path||"/",c=l.charAt(0).toUpperCase(),f=fu(l);return h.jsx(i_,{children:h.jsx(s_,{isActive:a,onClick:o,tooltip:`${l} ${s}`,className:"flex flex-col items-stretch gap-1 group-data-[collapsible=icon]:justify-center! h-9 cursor-pointer",children:h.jsxs("div",{className:"flex w-full min-w-0 items-center gap-2 group-data-[collapsible=icon]:justify-center",children:[h.jsx("span",{className:te("hidden size-6 shrink-0 items-center justify-center rounded border font-mono text-[10px] font-semibold group-data-[collapsible=icon]:flex!",f),children:c}),h.jsx("span",{className:te("h-5 min-w-9 flex items-center justify-center px-1.5 group-data-[collapsible=icon]:hidden!",f),children:l}),h.jsx("span",{className:"min-w-0 truncate font-mono text-xs text-sidebar-foreground group-data-[collapsible=icon]:hidden",children:s})]})})})}function w6({route:t,showChevron:a=!1}){const o=typeof t.method=="string"?t.method:String(t.method),l=typeof t.path=="string"&&t.path||"/",s=o.charAt(0).toUpperCase(),c=fu(o);return h.jsxs("div",{className:"flex w-full min-w-0 items-center gap-2 group-data-[collapsible=icon]:justify-center",children:[h.jsx("span",{className:te("hidden size-6 shrink-0 items-center justify-center rounded border font-mono text-[10px] font-semibold group-data-[collapsible=icon]:flex!",c),children:o==="PARENT"?h.jsx(fm,{className:"size-3.5"}):s}),h.jsx("span",{className:te("h-5 min-w-9 flex items-center justify-center px-1.5 shrink-0 group-data-[collapsible=icon]:hidden!",c),children:o==="PARENT"?h.jsx(fm,{className:"size-4"}):o}),h.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-xs group-data-[collapsible=icon]:hidden",children:l}),a&&h.jsx(wx,{className:"size-3.5 shrink-0 text-muted-foreground transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90 group-data-[collapsible=icon]:hidden"})]})}function c_({route:t,apiBase:a,selectedRoute:o,onSelectRoute:l,openKeys:s,onToggleOpen:c,asSubItem:f=!1}){const d=Pm(t),p=t.routes&&t.routes.length>0,g=s.has(d),y=o?.method===t.method&&o?.path===t.path,b=typeof t.method=="string"?t.method:String(t.method),S=typeof t.path=="string"&&t.path||"/";if(!p)return f?h.jsx(vx,{children:h.jsxs(b6,{isActive:!!y,onClick:()=>l(t),className:"cursor-pointer",children:[h.jsx("span",{className:te("h-5 min-w-9 flex items-center justify-center px-1.5 shrink-0",fu(b)),children:b}),h.jsx("span",{className:"min-w-0 truncate font-mono text-xs",children:S})]})}):h.jsx(S6,{route:t,apiBase:a,isSelected:!!y,onSelect:()=>l(t)});const _=h.jsxs(I5,{open:g,onOpenChange:M=>{M!==g&&c(d)},className:"group/collapsible",children:[h.jsx(G5,{asChild:!0,children:h.jsx(s_,{tooltip:`${b} ${S}`,className:"flex flex-col items-stretch gap-1 group-data-[collapsible=icon]:justify-center! h-9",children:h.jsx(w6,{route:t,showChevron:!0})})}),h.jsx(V5,{children:h.jsx(y6,{children:t.routes.map((M,w)=>h.jsx(c_,{route:M,apiBase:a,selectedRoute:o,onSelectRoute:l,openKeys:s,onToggleOpen:c,asSubItem:!0},`${Pm(M)}-${w}`))})})]});return f?h.jsx(vx,{children:_}):h.jsx(i_,{children:_})}function _6({routes:t,selectedRoute:a,onSelectRoute:o,onRefresh:l,apiBase:s=""}){const c=v.useMemo(()=>zc(t).length,[t]),[f,,d]=CM();return h.jsxs(u6,{collapsible:"icon",children:[h.jsx(p6,{className:"border-b border-sidebar-border bg-sidebar/80 p-px h-(--header-height)",children:h.jsxs("div",{className:"flex w-full min-w-0 items-center gap-3 px-3 py-1 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0 relative",children:[h.jsx(Nn,{}),h.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-md text-sidebar-accent-foreground",children:h.jsx(x6,{})}),h.jsxs("div",{className:"grid min-w-0 flex-1 text-left leading-tight group-data-[collapsible=icon]:hidden",children:[h.jsx("span",{className:"truncate text-sm font-semibold text-sidebar-foreground",children:"API Routes"}),h.jsxs("span",{className:"truncate text-xs text-muted-foreground",children:[c," endpoint",c===1?"":"s"]})]}),h.jsxs(ct,{variant:"ghost",size:"icon",onClick:l,className:"size-8 shrink-0 rounded-md group-data-[collapsible=icon]:hidden",children:[h.jsx(Vm,{className:"size-4"}),h.jsx("span",{className:"sr-only",children:"Refresh"})]})]})}),h.jsx(h6,{className:"gap-0.5 p-[2px] pt-0",children:h.jsxs("div",{className:"relative h-full",children:[h.jsx(Nn,{}),h.jsx(g6,{className:"relative h-full overflow-auto",children:t.map((p,g)=>h.jsx(c_,{route:p,apiBase:s,selectedRoute:a,onSelectRoute:o,openKeys:f,onToggleOpen:d},`${Pm(p)}-${g}`))})]})}),h.jsx(f6,{})]})}function Bm(t,a){if(!a.trim())return t;const o=t.toLowerCase(),l=a.trim().toLowerCase(),s=o.indexOf(l);return s===-1?t:h.jsxs(h.Fragment,{children:[t.slice(0,s),h.jsx("mark",{className:"bg-primary/15 text-primary rounded px-0.5 font-medium",children:t.slice(s,s+a.trim().length)}),Bm(t.slice(s+a.trim().length),a)]})}function C6({routes:t,onSelect:a}){const o=ja(c=>c.search??""),l=o.trim().toLowerCase(),s=l.length>0;return h.jsx(H5,{heading:"API routes",children:t.map(c=>{const f=[c.method,c.path,c.description??""].filter(Boolean).join(" "),d=c.description?.trim()??"",g=s&&d.length>0&&d.toLowerCase().includes(l);return h.jsx(Y5,{value:f,onSelect:()=>a(c),children:h.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[h.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[h.jsx("span",{className:te(fu(typeof c.method=="string"?c.method:String(c.method)),"inline-flex h-5 min-w-9 items-center justify-center px-1.5 py-0.5"),children:typeof c.method=="string"?c.method:String(c.method)}),h.jsx("span",{className:"truncate text-xs font-mono",children:Bm(c.path,o)})]}),g&&h.jsx("span",{className:"text-muted-foreground line-clamp-2 text-[11px] leading-snug",children:Bm(c.description??"",o)})]})},`${c.method}:${c.path}`)})})}function E6({open:t,onOpenChange:a,routes:o,onSelectRoute:l}){v.useEffect(()=>{const c=f=>{f.key==="k"&&(f.metaKey||f.ctrlKey)&&(f.preventDefault(),a(!t))};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[t,a]);const s=v.useCallback(c=>{l(c),a(!1)},[l,a]);return h.jsxs(h.Fragment,{children:[h.jsxs(ct,{variant:"outline",size:"sm",className:"h-8 gap-1.5 text-muted-foreground",onClick:()=>a(!0),children:[h.jsx(Ex,{className:"size-3.5"}),h.jsx("span",{className:"hidden sm:inline",children:"Search routes"}),h.jsxs(gx,{className:"hidden sm:inline-flex",children:[h.jsx(bc,{children:"⌘"}),h.jsx(bc,{children:"K"})]})]}),h.jsx(U5,{open:t,onOpenChange:a,title:"Search API routes",description:"Search and jump to an API route.",className:"border-4",children:h.jsxs("div",{className:"flex flex-col",children:[h.jsxs(z5,{className:"flex flex-col border-0 bg-transparent shadow-none [&_[data-slot=command-input-wrapper]>div]:rounded-lg **:data-[slot=command-item]:rounded-lg",children:[h.jsx(L5,{placeholder:"Search by method, path, or description..."}),h.jsxs(P5,{children:[h.jsx(B5,{children:"No routes found."}),h.jsx(C6,{routes:o,onSelect:s})]})]}),h.jsxs("div",{className:"flex items-center gap-2 border-t border-border bg-border px-3 py-2.5 text-xs text-muted-foreground","aria-hidden":!0,children:[h.jsx(Cx,{className:"size-3.5 shrink-0"}),h.jsx("span",{children:"Go to Route"}),h.jsxs(gx,{className:"ml-auto",children:[h.jsx(bc,{children:"⌘"}),h.jsx(bc,{children:"K"})]})]})]})})]})}const dm="http://localhost:3000";function M6(){const{getRouteFromUrl:t,setRouteInUrl:a}=qm(),[o,l]=v.useState(null),[s,c]=v.useState(!0),[f,d]=v.useState(null),[p,g]=v.useState(null),[y,b]=v.useState(!1),[S,_]=v.useState(!1),[M,w]=v.useState(()=>B4()),E=dm.replace(/\/$/,""),T=`${E}/tracelet-docs/check-auth`,k=`${E}/tracelet-docs/auth`,D=`${E}/tracelet-docs?json=true`,j=v.useCallback(async V=>{c(!0),d(null);try{const P={};V&&(P.Authorization=`Bearer ${V}`);const I=await fetch(D,{headers:Object.keys(P).length?P:void 0});if(I.status===401){Fw(null),w(null),_(!0),l(null),g(null),a(null);return}if(!I.ok)throw new Error(`HTTP ${I.status}`);const z=await I.json(),F=Array.isArray(z)?z:[];l(F);const ce=zc(F),ue=t(),N=ue?decodeURIComponent(ue):null,B=N&&ce.find($=>`${$.method}:${$.path}`===N);g($=>B||(($&&ce.find(se=>se.path===$.path&&se.method===$.method))??ce[0]??null))}catch(P){d(P instanceof Error?P.message:"Failed to fetch routes"),l([]),g(null),a(null)}finally{c(!1)}},[D,t]);v.useEffect(()=>{let V=!1;return(async()=>{try{const I=await(await fetch(T)).json().catch(()=>({}));V||(_(!!I.authRequired),b(!0))}catch{V||(_(!1),b(!0))}})(),()=>{V=!0}},[T]);const R=v.useCallback(V=>{g(V),a(`${V.method}:${V.path}`)},[a]);v.useEffect(()=>{y&&(S&&!M||j(M))},[y,S,M,j]);const U=v.useMemo(()=>o?zc(o):[],[o]),Y=U.length>0,[H,ie]=v.useState(!1),[oe,O]=v.useState(0),J=v.useCallback(()=>{O(V=>V+1),j(M)},[j,M]),le=v.useCallback(V=>{w(V||null),j(V||null)},[j]);if(v.useEffect(()=>{if(!o?.length||U.length===0)return;const V=t();if(!V)return;const P=decodeURIComponent(V);U.some(z=>`${z.method}:${z.path}`===P)||a(p?`${p.method}:${p.path}`:null)},[o,U,p,t,a]),!y)return h.jsx("div",{className:"flex min-h-screen items-center justify-center",children:h.jsxs("div",{className:"flex flex-col items-center gap-3 text-muted-foreground",children:[h.jsx(Ir,{className:"size-8 animate-spin"}),h.jsx("p",{className:"text-sm",children:"Checking authentication…"})]})});const ae=S&&!M;return h.jsxs(h.Fragment,{children:[h.jsx(r_,{open:ae,children:h.jsx(o_,{className:"sm:max-w-sm",showCloseButton:!1,onPointerDownOutside:V=>V.preventDefault(),onEscapeKeyDown:V=>V.preventDefault(),children:h.jsx(H4,{embedded:!0,authUrl:k,onSuccess:le})})}),h.jsx(_6,{routes:o??[],selectedRoute:p,onSelectRoute:R,onRefresh:J,apiBase:dm}),h.jsxs(m6,{children:[h.jsx("header",{className:"flex h-(--header-height) shrink-0 items-center justify-between gap-2 border-b border-border bg-background/95 backdrop-blur supports-backdrop-filter:bg-background/60 p-px pb-[2px] pr-[2px]",children:h.jsxs("div",{className:"relative flex items-center justify-between w-full h-full",children:[h.jsx(Nn,{className:"-z-10 absolute inset-0"}),h.jsx(d6,{}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(E6,{open:H,onOpenChange:ie,routes:U,onSelectRoute:R}),h.jsx(F4,{})]})]})}),h.jsxs("div",{className:"relative flex flex-1 flex-col overflow-hidden",children:[s&&!o?.length&&h.jsx("div",{className:"flex flex-1 items-center justify-center",children:h.jsxs("div",{className:"flex flex-col items-center gap-3 text-muted-foreground",children:[h.jsx(Ir,{className:"size-8 animate-spin"}),h.jsx("p",{className:"text-sm",children:"Loading routes…"})]})}),!s&&f&&h.jsx("div",{className:"flex flex-1 items-center justify-center p-4",children:h.jsx("div",{className:"w-full max-w-md min-w-[min(100%,18rem)]",children:h.jsxs(Iw,{className:"w-full border-destructive/50",children:[h.jsxs(Gw,{children:[h.jsx(Vw,{className:"text-destructive",children:"Connection error"}),h.jsxs(qw,{className:"wrap-break-word",children:["Could not fetch routes from ",D,". ",f]})]}),h.jsx(Ww,{children:h.jsxs(ct,{variant:"outline",onClick:()=>j(M),children:[h.jsx(Vm,{className:"size-4"}),"Retry"]})})]})})}),!s&&!f&&!Y&&h.jsx("div",{className:"flex flex-1 items-center justify-center p-4",children:h.jsx("div",{className:"w-full max-w-md",children:h.jsx(U4,{onRefresh:J})})}),!f&&Y&&p&&h.jsx(T4,{route:p,apiBase:dm},oe),s&&Y&&p&&h.jsx("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-background/50",children:h.jsxs("div",{className:"flex flex-col items-center gap-2 rounded-lg border bg-card px-4 py-3 shadow-sm",children:[h.jsx(Ir,{className:"size-5 animate-spin text-muted-foreground"}),h.jsx("span",{className:"text-sm text-muted-foreground",children:"Refreshing routes…"})]})})]})]})]})}function N6(){return h.jsx(c6,{children:h.jsx(J5,{children:h.jsx(M6,{})})})}DE.createRoot(document.getElementById("root")).render(h.jsx(v.StrictMode,{children:h.jsx(q4,{defaultTheme:"system",storageKey:"tracelet-ui-theme",children:h.jsx(N6,{})})}));
|