xiaozhi-client 1.6.3 → 1.6.4-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/MCPService-B1FvMc8R.d.ts +243 -0
  2. package/dist/WebServer.d.ts +33 -22
  3. package/dist/WebServer.js +65 -30
  4. package/dist/WebServer.js.map +1 -1
  5. package/dist/WebServerStandalone.js +65 -30
  6. package/dist/WebServerStandalone.js.map +1 -1
  7. package/dist/adapters/ConfigAdapter.d.ts +30 -0
  8. package/dist/adapters/ConfigAdapter.js +3 -0
  9. package/dist/adapters/ConfigAdapter.js.map +1 -0
  10. package/dist/cli.js +67 -32
  11. package/dist/cli.js.map +1 -1
  12. package/dist/configManager.d.ts +5 -0
  13. package/dist/configManager.js +2 -2
  14. package/dist/configManager.js.map +1 -1
  15. package/dist/mcpCommands.js +2 -2
  16. package/dist/mcpCommands.js.map +1 -1
  17. package/dist/mcpServerProxy.js +2 -2
  18. package/dist/mcpServerProxy.js.map +1 -1
  19. package/dist/services/MCPServer.d.ts +2 -235
  20. package/dist/services/MCPServer.js +4 -4
  21. package/dist/services/MCPServer.js.map +1 -1
  22. package/package.json +22 -30
  23. package/web/dist/assets/form-utils-BAESeaiO.js +22 -0
  24. package/web/dist/assets/form-utils-BAESeaiO.js.map +1 -0
  25. package/web/dist/assets/index-CCieCKu1.js +31 -0
  26. package/web/dist/assets/index-CCieCKu1.js.map +1 -0
  27. package/web/dist/assets/index-eZDZS6qd.css +1 -0
  28. package/web/dist/assets/radix-ui-DW48STyt.js +2 -0
  29. package/web/dist/assets/radix-ui-DW48STyt.js.map +1 -0
  30. package/web/dist/assets/react-vendor-Bm2cC0fo.js +184 -0
  31. package/web/dist/assets/react-vendor-Bm2cC0fo.js.map +1 -0
  32. package/web/dist/assets/utils-DE0xezXx.js +2 -0
  33. package/web/dist/assets/utils-DE0xezXx.js.map +1 -0
  34. package/web/dist/assets/vendor-C4NtkA-O.js +10 -0
  35. package/web/dist/assets/vendor-C4NtkA-O.js.map +1 -0
  36. package/web/dist/index.html +7 -2
  37. package/web/README.md +0 -169
  38. package/web/dist/assets/index-Jy5aLSeZ.js +0 -241
  39. package/web/dist/assets/index-Jy5aLSeZ.js.map +0 -1
  40. package/web/dist/assets/index-o2NfdFal.css +0 -1
@@ -1,241 +0,0 @@
1
- function S1(e,t){for(var n=0;n<t.length;n++){const o=t[n];if(typeof o!="string"&&!Array.isArray(o)){for(const r in o)if(r!=="default"&&!(r in e)){const i=Object.getOwnPropertyDescriptor(o,r);i&&Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:()=>o[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();function Qv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qv={exports:{}},Ll={},ey={exports:{}},fe={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var _a=Symbol.for("react.element"),k1=Symbol.for("react.portal"),$1=Symbol.for("react.fragment"),N1=Symbol.for("react.strict_mode"),E1=Symbol.for("react.profiler"),j1=Symbol.for("react.provider"),I1=Symbol.for("react.context"),C1=Symbol.for("react.forward_ref"),z1=Symbol.for("react.suspense"),P1=Symbol.for("react.memo"),O1=Symbol.for("react.lazy"),bh=Symbol.iterator;function T1(e){return e===null||typeof e!="object"?null:(e=bh&&e[bh]||e["@@iterator"],typeof e=="function"?e:null)}var ty={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ny=Object.assign,ry={};function ri(e,t,n){this.props=e,this.context=t,this.refs=ry,this.updater=n||ty}ri.prototype.isReactComponent={};ri.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ri.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function oy(){}oy.prototype=ri.prototype;function Bd(e,t,n){this.props=e,this.context=t,this.refs=ry,this.updater=n||ty}var Hd=Bd.prototype=new oy;Hd.constructor=Bd;ny(Hd,ri.prototype);Hd.isPureReactComponent=!0;var xh=Array.isArray,iy=Object.prototype.hasOwnProperty,Gd={current:null},ay={key:!0,ref:!0,__self:!0,__source:!0};function sy(e,t,n){var o,r={},i=null,a=null;if(t!=null)for(o in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)iy.call(t,o)&&!ay.hasOwnProperty(o)&&(r[o]=t[o]);var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}if(e&&e.defaultProps)for(o in s=e.defaultProps,s)r[o]===void 0&&(r[o]=s[o]);return{$$typeof:_a,type:e,key:i,ref:a,props:r,_owner:Gd.current}}function D1(e,t){return{$$typeof:_a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Kd(e){return typeof e=="object"&&e!==null&&e.$$typeof===_a}function R1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var wh=/\/+/g;function Mu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?R1(""+e.key):t.toString(36)}function _s(e,t,n,o,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case _a:case k1:a=!0}}if(a)return a=e,r=r(a),e=o===""?"."+Mu(a,0):o,xh(r)?(n="",e!=null&&(n=e.replace(wh,"$&/")+"/"),_s(r,t,n,"",function(u){return u})):r!=null&&(Kd(r)&&(r=D1(r,n+(!r.key||a&&a.key===r.key?"":(""+r.key).replace(wh,"$&/")+"/")+e)),t.push(r)),1;if(a=0,o=o===""?".":o+":",xh(e))for(var s=0;s<e.length;s++){i=e[s];var l=o+Mu(i,s);a+=_s(i,t,n,l,r)}else if(l=T1(e),typeof l=="function")for(e=l.call(e),s=0;!(i=e.next()).done;)i=i.value,l=o+Mu(i,s++),a+=_s(i,t,n,l,r);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Ha(e,t,n){if(e==null)return e;var o=[],r=0;return _s(e,o,"","",function(i){return t.call(n,i,r++)}),o}function A1(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var pt={current:null},Ss={transition:null},U1={ReactCurrentDispatcher:pt,ReactCurrentBatchConfig:Ss,ReactCurrentOwner:Gd};function ly(){throw Error("act(...) is not supported in production builds of React.")}fe.Children={map:Ha,forEach:function(e,t,n){Ha(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ha(e,function(){t++}),t},toArray:function(e){return Ha(e,function(t){return t})||[]},only:function(e){if(!Kd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};fe.Component=ri;fe.Fragment=$1;fe.Profiler=E1;fe.PureComponent=Bd;fe.StrictMode=N1;fe.Suspense=z1;fe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U1;fe.act=ly;fe.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=ny({},e.props),r=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=Gd.current),t.key!==void 0&&(r=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)iy.call(t,l)&&!ay.hasOwnProperty(l)&&(o[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}return{$$typeof:_a,type:e.type,key:r,ref:i,props:o,_owner:a}};fe.createContext=function(e){return e={$$typeof:I1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:j1,_context:e},e.Consumer=e};fe.createElement=sy;fe.createFactory=function(e){var t=sy.bind(null,e);return t.type=e,t};fe.createRef=function(){return{current:null}};fe.forwardRef=function(e){return{$$typeof:C1,render:e}};fe.isValidElement=Kd;fe.lazy=function(e){return{$$typeof:O1,_payload:{_status:-1,_result:e},_init:A1}};fe.memo=function(e,t){return{$$typeof:P1,type:e,compare:t===void 0?null:t}};fe.startTransition=function(e){var t=Ss.transition;Ss.transition={};try{e()}finally{Ss.transition=t}};fe.unstable_act=ly;fe.useCallback=function(e,t){return pt.current.useCallback(e,t)};fe.useContext=function(e){return pt.current.useContext(e)};fe.useDebugValue=function(){};fe.useDeferredValue=function(e){return pt.current.useDeferredValue(e)};fe.useEffect=function(e,t){return pt.current.useEffect(e,t)};fe.useId=function(){return pt.current.useId()};fe.useImperativeHandle=function(e,t,n){return pt.current.useImperativeHandle(e,t,n)};fe.useInsertionEffect=function(e,t){return pt.current.useInsertionEffect(e,t)};fe.useLayoutEffect=function(e,t){return pt.current.useLayoutEffect(e,t)};fe.useMemo=function(e,t){return pt.current.useMemo(e,t)};fe.useReducer=function(e,t,n){return pt.current.useReducer(e,t,n)};fe.useRef=function(e){return pt.current.useRef(e)};fe.useState=function(e){return pt.current.useState(e)};fe.useSyncExternalStore=function(e,t,n){return pt.current.useSyncExternalStore(e,t,n)};fe.useTransition=function(){return pt.current.useTransition()};fe.version="18.3.1";ey.exports=fe;var g=ey.exports;const P=Qv(g),uy=S1({__proto__:null,default:P},[g]);/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var L1=g,M1=Symbol.for("react.element"),F1=Symbol.for("react.fragment"),V1=Object.prototype.hasOwnProperty,Z1=L1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,W1={key:!0,ref:!0,__self:!0,__source:!0};function cy(e,t,n){var o,r={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(o in t)V1.call(t,o)&&!W1.hasOwnProperty(o)&&(r[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)r[o]===void 0&&(r[o]=t[o]);return{$$typeof:M1,type:e,key:i,ref:a,props:r,_owner:Z1.current}}Ll.Fragment=F1;Ll.jsx=cy;Ll.jsxs=cy;qv.exports=Ll;var f=qv.exports,Cc={},dy={exports:{}},Tt={},fy={exports:{}},my={};/**
18
- * @license React
19
- * scheduler.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */(function(e){function t(E,F){var Y=E.length;E.push(F);e:for(;0<Y;){var Q=Y-1>>>1,oe=E[Q];if(0<r(oe,F))E[Q]=F,E[Y]=oe,Y=Q;else break e}}function n(E){return E.length===0?null:E[0]}function o(E){if(E.length===0)return null;var F=E[0],Y=E.pop();if(Y!==F){E[0]=Y;e:for(var Q=0,oe=E.length,ne=oe>>>1;Q<ne;){var ce=2*(Q+1)-1,Oe=E[ce],de=ce+1,me=E[de];if(0>r(Oe,Y))de<oe&&0>r(me,Oe)?(E[Q]=me,E[de]=Y,Q=de):(E[Q]=Oe,E[ce]=Y,Q=ce);else if(de<oe&&0>r(me,Y))E[Q]=me,E[de]=Y,Q=de;else break e}}return F}function r(E,F){var Y=E.sortIndex-F.sortIndex;return Y!==0?Y:E.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],d=1,c=null,h=3,y=!1,x=!1,b=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(E){for(var F=n(u);F!==null;){if(F.callback===null)o(u);else if(F.startTime<=E)o(u),F.sortIndex=F.expirationTime,t(l,F);else break;F=n(u)}}function _(E){if(b=!1,v(E),!x)if(n(l)!==null)x=!0,M(S);else{var F=n(u);F!==null&&te(_,F.startTime-E)}}function S(E,F){x=!1,b&&(b=!1,m(I),I=-1),y=!0;var Y=h;try{for(v(F),c=n(l);c!==null&&(!(c.expirationTime>F)||E&&!G());){var Q=c.callback;if(typeof Q=="function"){c.callback=null,h=c.priorityLevel;var oe=Q(c.expirationTime<=F);F=e.unstable_now(),typeof oe=="function"?c.callback=oe:c===n(l)&&o(l),v(F)}else o(l);c=n(l)}if(c!==null)var ne=!0;else{var ce=n(u);ce!==null&&te(_,ce.startTime-F),ne=!1}return ne}finally{c=null,h=Y,y=!1}}var $=!1,N=null,I=-1,D=5,O=-1;function G(){return!(e.unstable_now()-O<D)}function U(){if(N!==null){var E=e.unstable_now();O=E;var F=!0;try{F=N(!0,E)}finally{F?B():($=!1,N=null)}}else $=!1}var B;if(typeof p=="function")B=function(){p(U)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,re=ee.port2;ee.port1.onmessage=U,B=function(){re.postMessage(null)}}else B=function(){w(U,0)};function M(E){N=E,$||($=!0,B())}function te(E,F){I=w(function(){E(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(E){E.callback=null},e.unstable_continueExecution=function(){x||y||(x=!0,M(S))},e.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<E?Math.floor(1e3/E):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(E){switch(h){case 1:case 2:case 3:var F=3;break;default:F=h}var Y=h;h=F;try{return E()}finally{h=Y}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(E,F){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var Y=h;h=E;try{return F()}finally{h=Y}},e.unstable_scheduleCallback=function(E,F,Y){var Q=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?Q+Y:Q):Y=Q,E){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=Y+oe,E={id:d++,callback:F,priorityLevel:E,startTime:Y,expirationTime:oe,sortIndex:-1},Y>Q?(E.sortIndex=Y,t(u,E),n(l)===null&&E===n(u)&&(b?(m(I),I=-1):b=!0,te(_,Y-Q))):(E.sortIndex=oe,t(l,E),x||y||(x=!0,M(S))),E},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(E){var F=h;return function(){var Y=h;h=F;try{return E.apply(this,arguments)}finally{h=Y}}}})(my);fy.exports=my;var B1=fy.exports;/**
26
- * @license React
27
- * react-dom.production.min.js
28
- *
29
- * Copyright (c) Facebook, Inc. and its affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var H1=g,Ot=B1;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var py=new Set,Ki={};function to(e,t){Lo(e,t),Lo(e+"Capture",t)}function Lo(e,t){for(Ki[e]=t,e=0;e<t.length;e++)py.add(t[e])}var Zn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zc=Object.prototype.hasOwnProperty,G1=/^[: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]*$/,_h={},Sh={};function K1(e){return zc.call(Sh,e)?!0:zc.call(_h,e)?!1:G1.test(e)?Sh[e]=!0:(_h[e]=!0,!1)}function J1(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Y1(e,t,n,o){if(t===null||typeof t>"u"||J1(e,t,n,o))return!0;if(o)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ht(e,t,n,o,r,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var et={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){et[e]=new ht(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];et[t]=new ht(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){et[e]=new ht(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){et[e]=new ht(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){et[e]=new ht(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){et[e]=new ht(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){et[e]=new ht(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){et[e]=new ht(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){et[e]=new ht(e,5,!1,e.toLowerCase(),null,!1,!1)});var Jd=/[\-:]([a-z])/g;function Yd(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Jd,Yd);et[t]=new ht(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Jd,Yd);et[t]=new ht(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Jd,Yd);et[t]=new ht(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){et[e]=new ht(e,1,!1,e.toLowerCase(),null,!1,!1)});et.xlinkHref=new ht("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){et[e]=new ht(e,1,!1,e.toLowerCase(),null,!0,!0)});function Xd(e,t,n,o){var r=et.hasOwnProperty(t)?et[t]:null;(r!==null?r.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Y1(t,n,r,o)&&(n=null),o||r===null?K1(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=n===null?r.type===3?!1:"":n:(t=r.attributeName,o=r.attributeNamespace,n===null?e.removeAttribute(t):(r=r.type,n=r===3||r===4&&n===!0?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}var Yn=H1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ga=Symbol.for("react.element"),vo=Symbol.for("react.portal"),yo=Symbol.for("react.fragment"),Qd=Symbol.for("react.strict_mode"),Pc=Symbol.for("react.profiler"),hy=Symbol.for("react.provider"),gy=Symbol.for("react.context"),qd=Symbol.for("react.forward_ref"),Oc=Symbol.for("react.suspense"),Tc=Symbol.for("react.suspense_list"),ef=Symbol.for("react.memo"),or=Symbol.for("react.lazy"),vy=Symbol.for("react.offscreen"),kh=Symbol.iterator;function yi(e){return e===null||typeof e!="object"?null:(e=kh&&e[kh]||e["@@iterator"],typeof e=="function"?e:null)}var ze=Object.assign,Fu;function Ci(e){if(Fu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Fu=t&&t[1]||""}return`
34
- `+Fu+e}var Vu=!1;function Zu(e,t){if(!e||Vu)return"";Vu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var o=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){o=u}e.call(t.prototype)}else{try{throw Error()}catch(u){o=u}e()}}catch(u){if(u&&o&&typeof u.stack=="string"){for(var r=u.stack.split(`
35
- `),i=o.stack.split(`
36
- `),a=r.length-1,s=i.length-1;1<=a&&0<=s&&r[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(r[a]!==i[s]){if(a!==1||s!==1)do if(a--,s--,0>s||r[a]!==i[s]){var l=`
37
- `+r[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Vu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ci(e):""}function X1(e){switch(e.tag){case 5:return Ci(e.type);case 16:return Ci("Lazy");case 13:return Ci("Suspense");case 19:return Ci("SuspenseList");case 0:case 2:case 15:return e=Zu(e.type,!1),e;case 11:return e=Zu(e.type.render,!1),e;case 1:return e=Zu(e.type,!0),e;default:return""}}function Dc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yo:return"Fragment";case vo:return"Portal";case Pc:return"Profiler";case Qd:return"StrictMode";case Oc:return"Suspense";case Tc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case gy:return(e.displayName||"Context")+".Consumer";case hy:return(e._context.displayName||"Context")+".Provider";case qd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ef:return t=e.displayName||null,t!==null?t:Dc(e.type)||"Memo";case or:t=e._payload,e=e._init;try{return Dc(e(t))}catch{}}return null}function Q1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Dc(t);case 8:return t===Qd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Sr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function yy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function q1(e){var t=yy(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(a){o=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(a){o=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ka(e){e._valueTracker||(e._valueTracker=q1(e))}function by(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=yy(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function Bs(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}}function Rc(e,t){var n=t.checked;return ze({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $h(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=Sr(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function xy(e,t){t=t.checked,t!=null&&Xd(e,"checked",t,!1)}function Ac(e,t){xy(e,t);var n=Sr(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Uc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Uc(e,t.type,Sr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Nh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Uc(e,t,n){(t!=="number"||Bs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zi=Array.isArray;function Io(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&o&&(e[n].defaultSelected=!0)}else{for(n=""+Sr(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,o&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Lc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return ze({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Eh(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(R(92));if(zi(n)){if(1<n.length)throw Error(R(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Sr(n)}}function wy(e,t){var n=Sr(t.value),o=Sr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),o!=null&&(e.defaultValue=""+o)}function jh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function _y(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Mc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?_y(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ja,Sy=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ja=Ja||document.createElement("div"),Ja.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ja.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ji(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ai={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},eN=["Webkit","ms","Moz","O"];Object.keys(Ai).forEach(function(e){eN.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ai[t]=Ai[e]})});function ky(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ai.hasOwnProperty(e)&&Ai[e]?(""+t).trim():t+"px"}function $y(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,r=ky(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}var tN=ze({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Fc(e,t){if(t){if(tN[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Vc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Zc=null;function tf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wc=null,Co=null,zo=null;function Ih(e){if(e=$a(e)){if(typeof Wc!="function")throw Error(R(280));var t=e.stateNode;t&&(t=Wl(t),Wc(e.stateNode,e.type,t))}}function Ny(e){Co?zo?zo.push(e):zo=[e]:Co=e}function Ey(){if(Co){var e=Co,t=zo;if(zo=Co=null,Ih(e),t)for(e=0;e<t.length;e++)Ih(t[e])}}function jy(e,t){return e(t)}function Iy(){}var Wu=!1;function Cy(e,t,n){if(Wu)return e(t,n);Wu=!0;try{return jy(e,t,n)}finally{Wu=!1,(Co!==null||zo!==null)&&(Iy(),Ey())}}function Yi(e,t){var n=e.stateNode;if(n===null)return null;var o=Wl(n);if(o===null)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(R(231,t,typeof n));return n}var Bc=!1;if(Zn)try{var bi={};Object.defineProperty(bi,"passive",{get:function(){Bc=!0}}),window.addEventListener("test",bi,bi),window.removeEventListener("test",bi,bi)}catch{Bc=!1}function nN(e,t,n,o,r,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Ui=!1,Hs=null,Gs=!1,Hc=null,rN={onError:function(e){Ui=!0,Hs=e}};function oN(e,t,n,o,r,i,a,s,l){Ui=!1,Hs=null,nN.apply(rN,arguments)}function iN(e,t,n,o,r,i,a,s,l){if(oN.apply(this,arguments),Ui){if(Ui){var u=Hs;Ui=!1,Hs=null}else throw Error(R(198));Gs||(Gs=!0,Hc=u)}}function no(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function zy(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Ch(e){if(no(e)!==e)throw Error(R(188))}function aN(e){var t=e.alternate;if(!t){if(t=no(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,o=t;;){var r=n.return;if(r===null)break;var i=r.alternate;if(i===null){if(o=r.return,o!==null){n=o;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===n)return Ch(r),e;if(i===o)return Ch(r),t;i=i.sibling}throw Error(R(188))}if(n.return!==o.return)n=r,o=i;else{for(var a=!1,s=r.child;s;){if(s===n){a=!0,n=r,o=i;break}if(s===o){a=!0,o=r,n=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===n){a=!0,n=i,o=r;break}if(s===o){a=!0,o=i,n=r;break}s=s.sibling}if(!a)throw Error(R(189))}}if(n.alternate!==o)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function Py(e){return e=aN(e),e!==null?Oy(e):null}function Oy(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Oy(e);if(t!==null)return t;e=e.sibling}return null}var Ty=Ot.unstable_scheduleCallback,zh=Ot.unstable_cancelCallback,sN=Ot.unstable_shouldYield,lN=Ot.unstable_requestPaint,De=Ot.unstable_now,uN=Ot.unstable_getCurrentPriorityLevel,nf=Ot.unstable_ImmediatePriority,Dy=Ot.unstable_UserBlockingPriority,Ks=Ot.unstable_NormalPriority,cN=Ot.unstable_LowPriority,Ry=Ot.unstable_IdlePriority,Ml=null,_n=null;function dN(e){if(_n&&typeof _n.onCommitFiberRoot=="function")try{_n.onCommitFiberRoot(Ml,e,void 0,(e.current.flags&128)===128)}catch{}}var nn=Math.clz32?Math.clz32:pN,fN=Math.log,mN=Math.LN2;function pN(e){return e>>>=0,e===0?32:31-(fN(e)/mN|0)|0}var Ya=64,Xa=4194304;function Pi(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Js(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,r=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~r;s!==0?o=Pi(s):(i&=a,i!==0&&(o=Pi(i)))}else a=n&~r,a!==0?o=Pi(a):i!==0&&(o=Pi(i));if(o===0)return 0;if(t!==0&&t!==o&&!(t&r)&&(r=o&-o,i=t&-t,r>=i||r===16&&(i&4194240)!==0))return t;if(o&4&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)n=31-nn(t),r=1<<n,o|=e[n],t&=~r;return o}function hN(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function gN(e,t){for(var n=e.suspendedLanes,o=e.pingedLanes,r=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-nn(i),s=1<<a,l=r[a];l===-1?(!(s&n)||s&o)&&(r[a]=hN(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}function Gc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ay(){var e=Ya;return Ya<<=1,!(Ya&4194240)&&(Ya=64),e}function Bu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Sa(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-nn(t),e[t]=n}function vN(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-nn(n),i=1<<r;t[r]=0,o[r]=-1,e[r]=-1,n&=~i}}function rf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var o=31-nn(n),r=1<<o;r&t|e[o]&t&&(e[o]|=t),n&=~r}}var xe=0;function Uy(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ly,of,My,Fy,Vy,Kc=!1,Qa=[],hr=null,gr=null,vr=null,Xi=new Map,Qi=new Map,ar=[],yN="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 submit".split(" ");function Ph(e,t){switch(e){case"focusin":case"focusout":hr=null;break;case"dragenter":case"dragleave":gr=null;break;case"mouseover":case"mouseout":vr=null;break;case"pointerover":case"pointerout":Xi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qi.delete(t.pointerId)}}function xi(e,t,n,o,r,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:o,nativeEvent:i,targetContainers:[r]},t!==null&&(t=$a(t),t!==null&&of(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function bN(e,t,n,o,r){switch(t){case"focusin":return hr=xi(hr,e,t,n,o,r),!0;case"dragenter":return gr=xi(gr,e,t,n,o,r),!0;case"mouseover":return vr=xi(vr,e,t,n,o,r),!0;case"pointerover":var i=r.pointerId;return Xi.set(i,xi(Xi.get(i)||null,e,t,n,o,r)),!0;case"gotpointercapture":return i=r.pointerId,Qi.set(i,xi(Qi.get(i)||null,e,t,n,o,r)),!0}return!1}function Zy(e){var t=Ur(e.target);if(t!==null){var n=no(t);if(n!==null){if(t=n.tag,t===13){if(t=zy(n),t!==null){e.blockedOn=t,Vy(e.priority,function(){My(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ks(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var o=new n.constructor(n.type,n);Zc=o,n.target.dispatchEvent(o),Zc=null}else return t=$a(n),t!==null&&of(t),e.blockedOn=n,!1;t.shift()}return!0}function Oh(e,t,n){ks(e)&&n.delete(t)}function xN(){Kc=!1,hr!==null&&ks(hr)&&(hr=null),gr!==null&&ks(gr)&&(gr=null),vr!==null&&ks(vr)&&(vr=null),Xi.forEach(Oh),Qi.forEach(Oh)}function wi(e,t){e.blockedOn===t&&(e.blockedOn=null,Kc||(Kc=!0,Ot.unstable_scheduleCallback(Ot.unstable_NormalPriority,xN)))}function qi(e){function t(r){return wi(r,e)}if(0<Qa.length){wi(Qa[0],e);for(var n=1;n<Qa.length;n++){var o=Qa[n];o.blockedOn===e&&(o.blockedOn=null)}}for(hr!==null&&wi(hr,e),gr!==null&&wi(gr,e),vr!==null&&wi(vr,e),Xi.forEach(t),Qi.forEach(t),n=0;n<ar.length;n++)o=ar[n],o.blockedOn===e&&(o.blockedOn=null);for(;0<ar.length&&(n=ar[0],n.blockedOn===null);)Zy(n),n.blockedOn===null&&ar.shift()}var Po=Yn.ReactCurrentBatchConfig,Ys=!0;function wN(e,t,n,o){var r=xe,i=Po.transition;Po.transition=null;try{xe=1,af(e,t,n,o)}finally{xe=r,Po.transition=i}}function _N(e,t,n,o){var r=xe,i=Po.transition;Po.transition=null;try{xe=4,af(e,t,n,o)}finally{xe=r,Po.transition=i}}function af(e,t,n,o){if(Ys){var r=Jc(e,t,n,o);if(r===null)tc(e,t,o,Xs,n),Ph(e,o);else if(bN(r,e,t,n,o))o.stopPropagation();else if(Ph(e,o),t&4&&-1<yN.indexOf(e)){for(;r!==null;){var i=$a(r);if(i!==null&&Ly(i),i=Jc(e,t,n,o),i===null&&tc(e,t,o,Xs,n),i===r)break;r=i}r!==null&&o.stopPropagation()}else tc(e,t,o,null,n)}}var Xs=null;function Jc(e,t,n,o){if(Xs=null,e=tf(o),e=Ur(e),e!==null)if(t=no(e),t===null)e=null;else if(n=t.tag,n===13){if(e=zy(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Xs=e,null}function Wy(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(uN()){case nf:return 1;case Dy:return 4;case Ks:case cN:return 16;case Ry:return 536870912;default:return 16}default:return 16}}var lr=null,sf=null,$s=null;function By(){if($s)return $s;var e,t=sf,n=t.length,o,r="value"in lr?lr.value:lr.textContent,i=r.length;for(e=0;e<n&&t[e]===r[e];e++);var a=n-e;for(o=1;o<=a&&t[n-o]===r[i-o];o++);return $s=r.slice(e,1<o?1-o:void 0)}function Ns(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function qa(){return!0}function Th(){return!1}function Dt(e){function t(n,o,r,i,a){this._reactName=n,this._targetInst=r,this.type=o,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?qa:Th,this.isPropagationStopped=Th,this}return ze(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=qa)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=qa)},persist:function(){},isPersistent:qa}),t}var oi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lf=Dt(oi),ka=ze({},oi,{view:0,detail:0}),SN=Dt(ka),Hu,Gu,_i,Fl=ze({},ka,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:uf,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!==_i&&(_i&&e.type==="mousemove"?(Hu=e.screenX-_i.screenX,Gu=e.screenY-_i.screenY):Gu=Hu=0,_i=e),Hu)},movementY:function(e){return"movementY"in e?e.movementY:Gu}}),Dh=Dt(Fl),kN=ze({},Fl,{dataTransfer:0}),$N=Dt(kN),NN=ze({},ka,{relatedTarget:0}),Ku=Dt(NN),EN=ze({},oi,{animationName:0,elapsedTime:0,pseudoElement:0}),jN=Dt(EN),IN=ze({},oi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),CN=Dt(IN),zN=ze({},oi,{data:0}),Rh=Dt(zN),PN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ON={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"},TN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function DN(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=TN[e])?!!t[e]:!1}function uf(){return DN}var RN=ze({},ka,{key:function(e){if(e.key){var t=PN[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ns(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ON[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:uf,charCode:function(e){return e.type==="keypress"?Ns(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ns(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),AN=Dt(RN),UN=ze({},Fl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ah=Dt(UN),LN=ze({},ka,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:uf}),MN=Dt(LN),FN=ze({},oi,{propertyName:0,elapsedTime:0,pseudoElement:0}),VN=Dt(FN),ZN=ze({},Fl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),WN=Dt(ZN),BN=[9,13,27,32],cf=Zn&&"CompositionEvent"in window,Li=null;Zn&&"documentMode"in document&&(Li=document.documentMode);var HN=Zn&&"TextEvent"in window&&!Li,Hy=Zn&&(!cf||Li&&8<Li&&11>=Li),Uh=" ",Lh=!1;function Gy(e,t){switch(e){case"keyup":return BN.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ky(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var bo=!1;function GN(e,t){switch(e){case"compositionend":return Ky(t);case"keypress":return t.which!==32?null:(Lh=!0,Uh);case"textInput":return e=t.data,e===Uh&&Lh?null:e;default:return null}}function KN(e,t){if(bo)return e==="compositionend"||!cf&&Gy(e,t)?(e=By(),$s=sf=lr=null,bo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Hy&&t.locale!=="ko"?null:t.data;default:return null}}var JN={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 Mh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!JN[e.type]:t==="textarea"}function Jy(e,t,n,o){Ny(o),t=Qs(t,"onChange"),0<t.length&&(n=new lf("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var Mi=null,ea=null;function YN(e){ab(e,0)}function Vl(e){var t=_o(e);if(by(t))return e}function XN(e,t){if(e==="change")return t}var Yy=!1;if(Zn){var Ju;if(Zn){var Yu="oninput"in document;if(!Yu){var Fh=document.createElement("div");Fh.setAttribute("oninput","return;"),Yu=typeof Fh.oninput=="function"}Ju=Yu}else Ju=!1;Yy=Ju&&(!document.documentMode||9<document.documentMode)}function Vh(){Mi&&(Mi.detachEvent("onpropertychange",Xy),ea=Mi=null)}function Xy(e){if(e.propertyName==="value"&&Vl(ea)){var t=[];Jy(t,ea,e,tf(e)),Cy(YN,t)}}function QN(e,t,n){e==="focusin"?(Vh(),Mi=t,ea=n,Mi.attachEvent("onpropertychange",Xy)):e==="focusout"&&Vh()}function qN(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Vl(ea)}function eE(e,t){if(e==="click")return Vl(t)}function tE(e,t){if(e==="input"||e==="change")return Vl(t)}function nE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var an=typeof Object.is=="function"?Object.is:nE;function ta(e,t){if(an(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++){var r=n[o];if(!zc.call(t,r)||!an(e[r],t[r]))return!1}return!0}function Zh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wh(e,t){var n=Zh(e);e=0;for(var o;n;){if(n.nodeType===3){if(o=e+n.textContent.length,e<=t&&o>=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Zh(n)}}function Qy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qy(){for(var e=window,t=Bs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Bs(e.document)}return t}function df(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function rE(e){var t=qy(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qy(n.ownerDocument.documentElement,n)){if(o!==null&&df(n)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,i=Math.min(o.start,r);o=o.end===void 0?i:Math.min(o.end,r),!e.extend&&i>o&&(r=o,o=i,i=r),r=Wh(n,i);var a=Wh(n,o);r&&a&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),i>o?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var oE=Zn&&"documentMode"in document&&11>=document.documentMode,xo=null,Yc=null,Fi=null,Xc=!1;function Bh(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Xc||xo==null||xo!==Bs(o)||(o=xo,"selectionStart"in o&&df(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Fi&&ta(Fi,o)||(Fi=o,o=Qs(Yc,"onSelect"),0<o.length&&(t=new lf("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=xo)))}function es(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wo={animationend:es("Animation","AnimationEnd"),animationiteration:es("Animation","AnimationIteration"),animationstart:es("Animation","AnimationStart"),transitionend:es("Transition","TransitionEnd")},Xu={},eb={};Zn&&(eb=document.createElement("div").style,"AnimationEvent"in window||(delete wo.animationend.animation,delete wo.animationiteration.animation,delete wo.animationstart.animation),"TransitionEvent"in window||delete wo.transitionend.transition);function Zl(e){if(Xu[e])return Xu[e];if(!wo[e])return e;var t=wo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in eb)return Xu[e]=t[n];return e}var tb=Zl("animationend"),nb=Zl("animationiteration"),rb=Zl("animationstart"),ob=Zl("transitionend"),ib=new Map,Hh="abort auxClick 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(" ");function Ir(e,t){ib.set(e,t),to(t,[e])}for(var Qu=0;Qu<Hh.length;Qu++){var qu=Hh[Qu],iE=qu.toLowerCase(),aE=qu[0].toUpperCase()+qu.slice(1);Ir(iE,"on"+aE)}Ir(tb,"onAnimationEnd");Ir(nb,"onAnimationIteration");Ir(rb,"onAnimationStart");Ir("dblclick","onDoubleClick");Ir("focusin","onFocus");Ir("focusout","onBlur");Ir(ob,"onTransitionEnd");Lo("onMouseEnter",["mouseout","mouseover"]);Lo("onMouseLeave",["mouseout","mouseover"]);Lo("onPointerEnter",["pointerout","pointerover"]);Lo("onPointerLeave",["pointerout","pointerover"]);to("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));to("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));to("onBeforeInput",["compositionend","keypress","textInput","paste"]);to("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));to("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));to("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Oi="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(" "),sE=new Set("cancel close invalid load scroll toggle".split(" ").concat(Oi));function Gh(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,iN(o,t,void 0,e),e.currentTarget=null}function ab(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var o=e[n],r=o.event;o=o.listeners;e:{var i=void 0;if(t)for(var a=o.length-1;0<=a;a--){var s=o[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&r.isPropagationStopped())break e;Gh(r,s,u),i=l}else for(a=0;a<o.length;a++){if(s=o[a],l=s.instance,u=s.currentTarget,s=s.listener,l!==i&&r.isPropagationStopped())break e;Gh(r,s,u),i=l}}}if(Gs)throw e=Hc,Gs=!1,Hc=null,e}function Se(e,t){var n=t[nd];n===void 0&&(n=t[nd]=new Set);var o=e+"__bubble";n.has(o)||(sb(t,e,2,!1),n.add(o))}function ec(e,t,n){var o=0;t&&(o|=4),sb(n,e,o,t)}var ts="_reactListening"+Math.random().toString(36).slice(2);function na(e){if(!e[ts]){e[ts]=!0,py.forEach(function(n){n!=="selectionchange"&&(sE.has(n)||ec(n,!1,e),ec(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ts]||(t[ts]=!0,ec("selectionchange",!1,t))}}function sb(e,t,n,o){switch(Wy(t)){case 1:var r=wN;break;case 4:r=_N;break;default:r=af}n=r.bind(null,t,n,e),r=void 0,!Bc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),o?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function tc(e,t,n,o,r){var i=o;if(!(t&1)&&!(t&2)&&o!==null)e:for(;;){if(o===null)return;var a=o.tag;if(a===3||a===4){var s=o.stateNode.containerInfo;if(s===r||s.nodeType===8&&s.parentNode===r)break;if(a===4)for(a=o.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===r||l.nodeType===8&&l.parentNode===r))return;a=a.return}for(;s!==null;){if(a=Ur(s),a===null)return;if(l=a.tag,l===5||l===6){o=i=a;continue e}s=s.parentNode}}o=o.return}Cy(function(){var u=i,d=tf(n),c=[];e:{var h=ib.get(e);if(h!==void 0){var y=lf,x=e;switch(e){case"keypress":if(Ns(n)===0)break e;case"keydown":case"keyup":y=AN;break;case"focusin":x="focus",y=Ku;break;case"focusout":x="blur",y=Ku;break;case"beforeblur":case"afterblur":y=Ku;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=Dh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=$N;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=MN;break;case tb:case nb:case rb:y=jN;break;case ob:y=VN;break;case"scroll":y=SN;break;case"wheel":y=WN;break;case"copy":case"cut":case"paste":y=CN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Ah}var b=(t&4)!==0,w=!b&&e==="scroll",m=b?h!==null?h+"Capture":null:h;b=[];for(var p=u,v;p!==null;){v=p;var _=v.stateNode;if(v.tag===5&&_!==null&&(v=_,m!==null&&(_=Yi(p,m),_!=null&&b.push(ra(p,_,v)))),w)break;p=p.return}0<b.length&&(h=new y(h,x,null,n,d),c.push({event:h,listeners:b}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",h&&n!==Zc&&(x=n.relatedTarget||n.fromElement)&&(Ur(x)||x[Wn]))break e;if((y||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,y?(x=n.relatedTarget||n.toElement,y=u,x=x?Ur(x):null,x!==null&&(w=no(x),x!==w||x.tag!==5&&x.tag!==6)&&(x=null)):(y=null,x=u),y!==x)){if(b=Dh,_="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(b=Ah,_="onPointerLeave",m="onPointerEnter",p="pointer"),w=y==null?h:_o(y),v=x==null?h:_o(x),h=new b(_,p+"leave",y,n,d),h.target=w,h.relatedTarget=v,_=null,Ur(d)===u&&(b=new b(m,p+"enter",x,n,d),b.target=v,b.relatedTarget=w,_=b),w=_,y&&x)t:{for(b=y,m=x,p=0,v=b;v;v=co(v))p++;for(v=0,_=m;_;_=co(_))v++;for(;0<p-v;)b=co(b),p--;for(;0<v-p;)m=co(m),v--;for(;p--;){if(b===m||m!==null&&b===m.alternate)break t;b=co(b),m=co(m)}b=null}else b=null;y!==null&&Kh(c,h,y,b,!1),x!==null&&w!==null&&Kh(c,w,x,b,!0)}}e:{if(h=u?_o(u):window,y=h.nodeName&&h.nodeName.toLowerCase(),y==="select"||y==="input"&&h.type==="file")var S=XN;else if(Mh(h))if(Yy)S=tE;else{S=qN;var $=QN}else(y=h.nodeName)&&y.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(S=eE);if(S&&(S=S(e,u))){Jy(c,S,n,d);break e}$&&$(e,h,u),e==="focusout"&&($=h._wrapperState)&&$.controlled&&h.type==="number"&&Uc(h,"number",h.value)}switch($=u?_o(u):window,e){case"focusin":(Mh($)||$.contentEditable==="true")&&(xo=$,Yc=u,Fi=null);break;case"focusout":Fi=Yc=xo=null;break;case"mousedown":Xc=!0;break;case"contextmenu":case"mouseup":case"dragend":Xc=!1,Bh(c,n,d);break;case"selectionchange":if(oE)break;case"keydown":case"keyup":Bh(c,n,d)}var N;if(cf)e:{switch(e){case"compositionstart":var I="onCompositionStart";break e;case"compositionend":I="onCompositionEnd";break e;case"compositionupdate":I="onCompositionUpdate";break e}I=void 0}else bo?Gy(e,n)&&(I="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(I="onCompositionStart");I&&(Hy&&n.locale!=="ko"&&(bo||I!=="onCompositionStart"?I==="onCompositionEnd"&&bo&&(N=By()):(lr=d,sf="value"in lr?lr.value:lr.textContent,bo=!0)),$=Qs(u,I),0<$.length&&(I=new Rh(I,e,null,n,d),c.push({event:I,listeners:$}),N?I.data=N:(N=Ky(n),N!==null&&(I.data=N)))),(N=HN?GN(e,n):KN(e,n))&&(u=Qs(u,"onBeforeInput"),0<u.length&&(d=new Rh("onBeforeInput","beforeinput",null,n,d),c.push({event:d,listeners:u}),d.data=N))}ab(c,t)})}function ra(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qs(e,t){for(var n=t+"Capture",o=[];e!==null;){var r=e,i=r.stateNode;r.tag===5&&i!==null&&(r=i,i=Yi(e,n),i!=null&&o.unshift(ra(e,i,r)),i=Yi(e,t),i!=null&&o.push(ra(e,i,r))),e=e.return}return o}function co(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Kh(e,t,n,o,r){for(var i=t._reactName,a=[];n!==null&&n!==o;){var s=n,l=s.alternate,u=s.stateNode;if(l!==null&&l===o)break;s.tag===5&&u!==null&&(s=u,r?(l=Yi(n,i),l!=null&&a.unshift(ra(n,l,s))):r||(l=Yi(n,i),l!=null&&a.push(ra(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var lE=/\r\n?/g,uE=/\u0000|\uFFFD/g;function Jh(e){return(typeof e=="string"?e:""+e).replace(lE,`
38
- `).replace(uE,"")}function ns(e,t,n){if(t=Jh(t),Jh(e)!==t&&n)throw Error(R(425))}function qs(){}var Qc=null,qc=null;function ed(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var td=typeof setTimeout=="function"?setTimeout:void 0,cE=typeof clearTimeout=="function"?clearTimeout:void 0,Yh=typeof Promise=="function"?Promise:void 0,dE=typeof queueMicrotask=="function"?queueMicrotask:typeof Yh<"u"?function(e){return Yh.resolve(null).then(e).catch(fE)}:td;function fE(e){setTimeout(function(){throw e})}function nc(e,t){var n=t,o=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(o===0){e.removeChild(r),qi(t);return}o--}else n!=="$"&&n!=="$?"&&n!=="$!"||o++;n=r}while(n);qi(t)}function yr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Xh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ii=Math.random().toString(36).slice(2),yn="__reactFiber$"+ii,oa="__reactProps$"+ii,Wn="__reactContainer$"+ii,nd="__reactEvents$"+ii,mE="__reactListeners$"+ii,pE="__reactHandles$"+ii;function Ur(e){var t=e[yn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Wn]||n[yn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Xh(e);e!==null;){if(n=e[yn])return n;e=Xh(e)}return t}e=n,n=e.parentNode}return null}function $a(e){return e=e[yn]||e[Wn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function _o(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function Wl(e){return e[oa]||null}var rd=[],So=-1;function Cr(e){return{current:e}}function ke(e){0>So||(e.current=rd[So],rd[So]=null,So--)}function we(e,t){So++,rd[So]=e.current,e.current=t}var kr={},at=Cr(kr),xt=Cr(!1),Hr=kr;function Mo(e,t){var n=e.type.contextTypes;if(!n)return kr;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var r={},i;for(i in n)r[i]=t[i];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function wt(e){return e=e.childContextTypes,e!=null}function el(){ke(xt),ke(at)}function Qh(e,t,n){if(at.current!==kr)throw Error(R(168));we(at,t),we(xt,n)}function lb(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var r in o)if(!(r in t))throw Error(R(108,Q1(e)||"Unknown",r));return ze({},n,o)}function tl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||kr,Hr=at.current,we(at,e),we(xt,xt.current),!0}function qh(e,t,n){var o=e.stateNode;if(!o)throw Error(R(169));n?(e=lb(e,t,Hr),o.__reactInternalMemoizedMergedChildContext=e,ke(xt),ke(at),we(at,e)):ke(xt),we(xt,n)}var Rn=null,Bl=!1,rc=!1;function ub(e){Rn===null?Rn=[e]:Rn.push(e)}function hE(e){Bl=!0,ub(e)}function zr(){if(!rc&&Rn!==null){rc=!0;var e=0,t=xe;try{var n=Rn;for(xe=1;e<n.length;e++){var o=n[e];do o=o(!0);while(o!==null)}Rn=null,Bl=!1}catch(r){throw Rn!==null&&(Rn=Rn.slice(e+1)),Ty(nf,zr),r}finally{xe=t,rc=!1}}return null}var ko=[],$o=0,nl=null,rl=0,Lt=[],Mt=0,Gr=null,Un=1,Ln="";function Rr(e,t){ko[$o++]=rl,ko[$o++]=nl,nl=e,rl=t}function cb(e,t,n){Lt[Mt++]=Un,Lt[Mt++]=Ln,Lt[Mt++]=Gr,Gr=e;var o=Un;e=Ln;var r=32-nn(o)-1;o&=~(1<<r),n+=1;var i=32-nn(t)+r;if(30<i){var a=r-r%5;i=(o&(1<<a)-1).toString(32),o>>=a,r-=a,Un=1<<32-nn(t)+r|n<<r|o,Ln=i+e}else Un=1<<i|n<<r|o,Ln=e}function ff(e){e.return!==null&&(Rr(e,1),cb(e,1,0))}function mf(e){for(;e===nl;)nl=ko[--$o],ko[$o]=null,rl=ko[--$o],ko[$o]=null;for(;e===Gr;)Gr=Lt[--Mt],Lt[Mt]=null,Ln=Lt[--Mt],Lt[Mt]=null,Un=Lt[--Mt],Lt[Mt]=null}var zt=null,Ct=null,Ee=!1,Qt=null;function db(e,t){var n=Ft(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function eg(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,zt=e,Ct=yr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,zt=e,Ct=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gr!==null?{id:Un,overflow:Ln}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ft(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,zt=e,Ct=null,!0):!1;default:return!1}}function od(e){return(e.mode&1)!==0&&(e.flags&128)===0}function id(e){if(Ee){var t=Ct;if(t){var n=t;if(!eg(e,t)){if(od(e))throw Error(R(418));t=yr(n.nextSibling);var o=zt;t&&eg(e,t)?db(o,n):(e.flags=e.flags&-4097|2,Ee=!1,zt=e)}}else{if(od(e))throw Error(R(418));e.flags=e.flags&-4097|2,Ee=!1,zt=e}}}function tg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;zt=e}function rs(e){if(e!==zt)return!1;if(!Ee)return tg(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ed(e.type,e.memoizedProps)),t&&(t=Ct)){if(od(e))throw fb(),Error(R(418));for(;t;)db(e,t),t=yr(t.nextSibling)}if(tg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ct=yr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ct=null}}else Ct=zt?yr(e.stateNode.nextSibling):null;return!0}function fb(){for(var e=Ct;e;)e=yr(e.nextSibling)}function Fo(){Ct=zt=null,Ee=!1}function pf(e){Qt===null?Qt=[e]:Qt.push(e)}var gE=Yn.ReactCurrentBatchConfig;function Si(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(R(309));var o=n.stateNode}if(!o)throw Error(R(147,e));var r=o,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var s=r.refs;a===null?delete s[i]:s[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(R(284));if(!n._owner)throw Error(R(290,e))}return e}function os(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ng(e){var t=e._init;return t(e._payload)}function mb(e){function t(m,p){if(e){var v=m.deletions;v===null?(m.deletions=[p],m.flags|=16):v.push(p)}}function n(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function o(m,p){for(m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function r(m,p){return m=_r(m,p),m.index=0,m.sibling=null,m}function i(m,p,v){return m.index=v,e?(v=m.alternate,v!==null?(v=v.index,v<p?(m.flags|=2,p):v):(m.flags|=2,p)):(m.flags|=1048576,p)}function a(m){return e&&m.alternate===null&&(m.flags|=2),m}function s(m,p,v,_){return p===null||p.tag!==6?(p=cc(v,m.mode,_),p.return=m,p):(p=r(p,v),p.return=m,p)}function l(m,p,v,_){var S=v.type;return S===yo?d(m,p,v.props.children,_,v.key):p!==null&&(p.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===or&&ng(S)===p.type)?(_=r(p,v.props),_.ref=Si(m,p,v),_.return=m,_):(_=Os(v.type,v.key,v.props,null,m.mode,_),_.ref=Si(m,p,v),_.return=m,_)}function u(m,p,v,_){return p===null||p.tag!==4||p.stateNode.containerInfo!==v.containerInfo||p.stateNode.implementation!==v.implementation?(p=dc(v,m.mode,_),p.return=m,p):(p=r(p,v.children||[]),p.return=m,p)}function d(m,p,v,_,S){return p===null||p.tag!==7?(p=Br(v,m.mode,_,S),p.return=m,p):(p=r(p,v),p.return=m,p)}function c(m,p,v){if(typeof p=="string"&&p!==""||typeof p=="number")return p=cc(""+p,m.mode,v),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Ga:return v=Os(p.type,p.key,p.props,null,m.mode,v),v.ref=Si(m,null,p),v.return=m,v;case vo:return p=dc(p,m.mode,v),p.return=m,p;case or:var _=p._init;return c(m,_(p._payload),v)}if(zi(p)||yi(p))return p=Br(p,m.mode,v,null),p.return=m,p;os(m,p)}return null}function h(m,p,v,_){var S=p!==null?p.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return S!==null?null:s(m,p,""+v,_);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Ga:return v.key===S?l(m,p,v,_):null;case vo:return v.key===S?u(m,p,v,_):null;case or:return S=v._init,h(m,p,S(v._payload),_)}if(zi(v)||yi(v))return S!==null?null:d(m,p,v,_,null);os(m,v)}return null}function y(m,p,v,_,S){if(typeof _=="string"&&_!==""||typeof _=="number")return m=m.get(v)||null,s(p,m,""+_,S);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Ga:return m=m.get(_.key===null?v:_.key)||null,l(p,m,_,S);case vo:return m=m.get(_.key===null?v:_.key)||null,u(p,m,_,S);case or:var $=_._init;return y(m,p,v,$(_._payload),S)}if(zi(_)||yi(_))return m=m.get(v)||null,d(p,m,_,S,null);os(p,_)}return null}function x(m,p,v,_){for(var S=null,$=null,N=p,I=p=0,D=null;N!==null&&I<v.length;I++){N.index>I?(D=N,N=null):D=N.sibling;var O=h(m,N,v[I],_);if(O===null){N===null&&(N=D);break}e&&N&&O.alternate===null&&t(m,N),p=i(O,p,I),$===null?S=O:$.sibling=O,$=O,N=D}if(I===v.length)return n(m,N),Ee&&Rr(m,I),S;if(N===null){for(;I<v.length;I++)N=c(m,v[I],_),N!==null&&(p=i(N,p,I),$===null?S=N:$.sibling=N,$=N);return Ee&&Rr(m,I),S}for(N=o(m,N);I<v.length;I++)D=y(N,m,I,v[I],_),D!==null&&(e&&D.alternate!==null&&N.delete(D.key===null?I:D.key),p=i(D,p,I),$===null?S=D:$.sibling=D,$=D);return e&&N.forEach(function(G){return t(m,G)}),Ee&&Rr(m,I),S}function b(m,p,v,_){var S=yi(v);if(typeof S!="function")throw Error(R(150));if(v=S.call(v),v==null)throw Error(R(151));for(var $=S=null,N=p,I=p=0,D=null,O=v.next();N!==null&&!O.done;I++,O=v.next()){N.index>I?(D=N,N=null):D=N.sibling;var G=h(m,N,O.value,_);if(G===null){N===null&&(N=D);break}e&&N&&G.alternate===null&&t(m,N),p=i(G,p,I),$===null?S=G:$.sibling=G,$=G,N=D}if(O.done)return n(m,N),Ee&&Rr(m,I),S;if(N===null){for(;!O.done;I++,O=v.next())O=c(m,O.value,_),O!==null&&(p=i(O,p,I),$===null?S=O:$.sibling=O,$=O);return Ee&&Rr(m,I),S}for(N=o(m,N);!O.done;I++,O=v.next())O=y(N,m,I,O.value,_),O!==null&&(e&&O.alternate!==null&&N.delete(O.key===null?I:O.key),p=i(O,p,I),$===null?S=O:$.sibling=O,$=O);return e&&N.forEach(function(U){return t(m,U)}),Ee&&Rr(m,I),S}function w(m,p,v,_){if(typeof v=="object"&&v!==null&&v.type===yo&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Ga:e:{for(var S=v.key,$=p;$!==null;){if($.key===S){if(S=v.type,S===yo){if($.tag===7){n(m,$.sibling),p=r($,v.props.children),p.return=m,m=p;break e}}else if($.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===or&&ng(S)===$.type){n(m,$.sibling),p=r($,v.props),p.ref=Si(m,$,v),p.return=m,m=p;break e}n(m,$);break}else t(m,$);$=$.sibling}v.type===yo?(p=Br(v.props.children,m.mode,_,v.key),p.return=m,m=p):(_=Os(v.type,v.key,v.props,null,m.mode,_),_.ref=Si(m,p,v),_.return=m,m=_)}return a(m);case vo:e:{for($=v.key;p!==null;){if(p.key===$)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(m,p.sibling),p=r(p,v.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=dc(v,m.mode,_),p.return=m,m=p}return a(m);case or:return $=v._init,w(m,p,$(v._payload),_)}if(zi(v))return x(m,p,v,_);if(yi(v))return b(m,p,v,_);os(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(m,p.sibling),p=r(p,v),p.return=m,m=p):(n(m,p),p=cc(v,m.mode,_),p.return=m,m=p),a(m)):n(m,p)}return w}var Vo=mb(!0),pb=mb(!1),ol=Cr(null),il=null,No=null,hf=null;function gf(){hf=No=il=null}function vf(e){var t=ol.current;ke(ol),e._currentValue=t}function ad(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Oo(e,t){il=e,hf=No=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(bt=!0),e.firstContext=null)}function Zt(e){var t=e._currentValue;if(hf!==e)if(e={context:e,memoizedValue:t,next:null},No===null){if(il===null)throw Error(R(308));No=e,il.dependencies={lanes:0,firstContext:e}}else No=No.next=e;return t}var Lr=null;function yf(e){Lr===null?Lr=[e]:Lr.push(e)}function hb(e,t,n,o){var r=t.interleaved;return r===null?(n.next=n,yf(t)):(n.next=r.next,r.next=n),t.interleaved=n,Bn(e,o)}function Bn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ir=!1;function bf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function gb(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function br(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,he&2){var r=o.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),o.pending=t,Bn(e,n)}return r=o.interleaved,r===null?(t.next=t,yf(o)):(t.next=r.next,r.next=t),o.interleaved=t,Bn(e,n)}function Es(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,rf(e,n)}}function rg(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var r=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?r=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?r=i=t:i=i.next=t}else r=i=t;n={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function al(e,t,n,o){var r=e.updateQueue;ir=!1;var i=r.firstBaseUpdate,a=r.lastBaseUpdate,s=r.shared.pending;if(s!==null){r.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?i=u:a.next=u,a=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==a&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=l))}if(i!==null){var c=r.baseState;a=0,d=u=l=null,s=i;do{var h=s.lane,y=s.eventTime;if((o&h)===h){d!==null&&(d=d.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var x=e,b=s;switch(h=t,y=n,b.tag){case 1:if(x=b.payload,typeof x=="function"){c=x.call(y,c,h);break e}c=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=b.payload,h=typeof x=="function"?x.call(y,c,h):x,h==null)break e;c=ze({},c,h);break e;case 2:ir=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=r.effects,h===null?r.effects=[s]:h.push(s))}else y={eventTime:y,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=y,l=c):d=d.next=y,a|=h;if(s=s.next,s===null){if(s=r.shared.pending,s===null)break;h=s,s=h.next,h.next=null,r.lastBaseUpdate=h,r.shared.pending=null}}while(!0);if(d===null&&(l=c),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=d,t=r.shared.interleaved,t!==null){r=t;do a|=r.lane,r=r.next;while(r!==t)}else i===null&&(r.shared.lanes=0);Jr|=a,e.lanes=a,e.memoizedState=c}}function og(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],r=o.callback;if(r!==null){if(o.callback=null,o=n,typeof r!="function")throw Error(R(191,r));r.call(o)}}}var Na={},Sn=Cr(Na),ia=Cr(Na),aa=Cr(Na);function Mr(e){if(e===Na)throw Error(R(174));return e}function xf(e,t){switch(we(aa,t),we(ia,e),we(Sn,Na),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Mc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Mc(t,e)}ke(Sn),we(Sn,t)}function Zo(){ke(Sn),ke(ia),ke(aa)}function vb(e){Mr(aa.current);var t=Mr(Sn.current),n=Mc(t,e.type);t!==n&&(we(ia,e),we(Sn,n))}function wf(e){ia.current===e&&(ke(Sn),ke(ia))}var Ie=Cr(0);function sl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var oc=[];function _f(){for(var e=0;e<oc.length;e++)oc[e]._workInProgressVersionPrimary=null;oc.length=0}var js=Yn.ReactCurrentDispatcher,ic=Yn.ReactCurrentBatchConfig,Kr=0,Ce=null,Ze=null,He=null,ll=!1,Vi=!1,sa=0,vE=0;function rt(){throw Error(R(321))}function Sf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!an(e[n],t[n]))return!1;return!0}function kf(e,t,n,o,r,i){if(Kr=i,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,js.current=e===null||e.memoizedState===null?wE:_E,e=n(o,r),Vi){i=0;do{if(Vi=!1,sa=0,25<=i)throw Error(R(301));i+=1,He=Ze=null,t.updateQueue=null,js.current=SE,e=n(o,r)}while(Vi)}if(js.current=ul,t=Ze!==null&&Ze.next!==null,Kr=0,He=Ze=Ce=null,ll=!1,t)throw Error(R(300));return e}function $f(){var e=sa!==0;return sa=0,e}function vn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return He===null?Ce.memoizedState=He=e:He=He.next=e,He}function Wt(){if(Ze===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=Ze.next;var t=He===null?Ce.memoizedState:He.next;if(t!==null)He=t,Ze=e;else{if(e===null)throw Error(R(310));Ze=e,e={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},He===null?Ce.memoizedState=He=e:He=He.next=e}return He}function la(e,t){return typeof t=="function"?t(e):t}function ac(e){var t=Wt(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var o=Ze,r=o.baseQueue,i=n.pending;if(i!==null){if(r!==null){var a=r.next;r.next=i.next,i.next=a}o.baseQueue=r=i,n.pending=null}if(r!==null){i=r.next,o=o.baseState;var s=a=null,l=null,u=i;do{var d=u.lane;if((Kr&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),o=u.hasEagerState?u.eagerState:e(o,u.action);else{var c={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=c,a=o):l=l.next=c,Ce.lanes|=d,Jr|=d}u=u.next}while(u!==null&&u!==i);l===null?a=o:l.next=s,an(o,t.memoizedState)||(bt=!0),t.memoizedState=o,t.baseState=a,t.baseQueue=l,n.lastRenderedState=o}if(e=n.interleaved,e!==null){r=e;do i=r.lane,Ce.lanes|=i,Jr|=i,r=r.next;while(r!==e)}else r===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function sc(e){var t=Wt(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var o=n.dispatch,r=n.pending,i=t.memoizedState;if(r!==null){n.pending=null;var a=r=r.next;do i=e(i,a.action),a=a.next;while(a!==r);an(i,t.memoizedState)||(bt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,o]}function yb(){}function bb(e,t){var n=Ce,o=Wt(),r=t(),i=!an(o.memoizedState,r);if(i&&(o.memoizedState=r,bt=!0),o=o.queue,Nf(_b.bind(null,n,o,e),[e]),o.getSnapshot!==t||i||He!==null&&He.memoizedState.tag&1){if(n.flags|=2048,ua(9,wb.bind(null,n,o,r,t),void 0,null),Ge===null)throw Error(R(349));Kr&30||xb(n,t,r)}return r}function xb(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function wb(e,t,n,o){t.value=n,t.getSnapshot=o,Sb(t)&&kb(e)}function _b(e,t,n){return n(function(){Sb(t)&&kb(e)})}function Sb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!an(e,n)}catch{return!0}}function kb(e){var t=Bn(e,1);t!==null&&rn(t,e,1,-1)}function ig(e){var t=vn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:e},t.queue=e,e=e.dispatch=xE.bind(null,Ce,e),[t.memoizedState,e]}function ua(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e)),e}function $b(){return Wt().memoizedState}function Is(e,t,n,o){var r=vn();Ce.flags|=e,r.memoizedState=ua(1|t,n,void 0,o===void 0?null:o)}function Hl(e,t,n,o){var r=Wt();o=o===void 0?null:o;var i=void 0;if(Ze!==null){var a=Ze.memoizedState;if(i=a.destroy,o!==null&&Sf(o,a.deps)){r.memoizedState=ua(t,n,i,o);return}}Ce.flags|=e,r.memoizedState=ua(1|t,n,i,o)}function ag(e,t){return Is(8390656,8,e,t)}function Nf(e,t){return Hl(2048,8,e,t)}function Nb(e,t){return Hl(4,2,e,t)}function Eb(e,t){return Hl(4,4,e,t)}function jb(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ib(e,t,n){return n=n!=null?n.concat([e]):null,Hl(4,4,jb.bind(null,t,e),n)}function Ef(){}function Cb(e,t){var n=Wt();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&Sf(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function zb(e,t){var n=Wt();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&Sf(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function Pb(e,t,n){return Kr&21?(an(n,t)||(n=Ay(),Ce.lanes|=n,Jr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bt=!0),e.memoizedState=n)}function yE(e,t){var n=xe;xe=n!==0&&4>n?n:4,e(!0);var o=ic.transition;ic.transition={};try{e(!1),t()}finally{xe=n,ic.transition=o}}function Ob(){return Wt().memoizedState}function bE(e,t,n){var o=wr(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},Tb(e))Db(t,n);else if(n=hb(e,t,n,o),n!==null){var r=ft();rn(n,e,o,r),Rb(n,t,o)}}function xE(e,t,n){var o=wr(e),r={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(Tb(e))Db(t,r);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(r.hasEagerState=!0,r.eagerState=s,an(s,a)){var l=t.interleaved;l===null?(r.next=r,yf(t)):(r.next=l.next,l.next=r),t.interleaved=r;return}}catch{}finally{}n=hb(e,t,r,o),n!==null&&(r=ft(),rn(n,e,o,r),Rb(n,t,o))}}function Tb(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function Db(e,t){Vi=ll=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rb(e,t,n){if(n&4194240){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,rf(e,n)}}var ul={readContext:Zt,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useInsertionEffect:rt,useLayoutEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useMutableSource:rt,useSyncExternalStore:rt,useId:rt,unstable_isNewReconciler:!1},wE={readContext:Zt,useCallback:function(e,t){return vn().memoizedState=[e,t===void 0?null:t],e},useContext:Zt,useEffect:ag,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Is(4194308,4,jb.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Is(4194308,4,e,t)},useInsertionEffect:function(e,t){return Is(4,2,e,t)},useMemo:function(e,t){var n=vn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=vn();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=bE.bind(null,Ce,e),[o.memoizedState,e]},useRef:function(e){var t=vn();return e={current:e},t.memoizedState=e},useState:ig,useDebugValue:Ef,useDeferredValue:function(e){return vn().memoizedState=e},useTransition:function(){var e=ig(!1),t=e[0];return e=yE.bind(null,e[1]),vn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=Ce,r=vn();if(Ee){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Ge===null)throw Error(R(349));Kr&30||xb(o,t,n)}r.memoizedState=n;var i={value:n,getSnapshot:t};return r.queue=i,ag(_b.bind(null,o,i,e),[e]),o.flags|=2048,ua(9,wb.bind(null,o,i,n,t),void 0,null),n},useId:function(){var e=vn(),t=Ge.identifierPrefix;if(Ee){var n=Ln,o=Un;n=(o&~(1<<32-nn(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=sa++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=vE++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},_E={readContext:Zt,useCallback:Cb,useContext:Zt,useEffect:Nf,useImperativeHandle:Ib,useInsertionEffect:Nb,useLayoutEffect:Eb,useMemo:zb,useReducer:ac,useRef:$b,useState:function(){return ac(la)},useDebugValue:Ef,useDeferredValue:function(e){var t=Wt();return Pb(t,Ze.memoizedState,e)},useTransition:function(){var e=ac(la)[0],t=Wt().memoizedState;return[e,t]},useMutableSource:yb,useSyncExternalStore:bb,useId:Ob,unstable_isNewReconciler:!1},SE={readContext:Zt,useCallback:Cb,useContext:Zt,useEffect:Nf,useImperativeHandle:Ib,useInsertionEffect:Nb,useLayoutEffect:Eb,useMemo:zb,useReducer:sc,useRef:$b,useState:function(){return sc(la)},useDebugValue:Ef,useDeferredValue:function(e){var t=Wt();return Ze===null?t.memoizedState=e:Pb(t,Ze.memoizedState,e)},useTransition:function(){var e=sc(la)[0],t=Wt().memoizedState;return[e,t]},useMutableSource:yb,useSyncExternalStore:bb,useId:Ob,unstable_isNewReconciler:!1};function Yt(e,t){if(e&&e.defaultProps){t=ze({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function sd(e,t,n,o){t=e.memoizedState,n=n(o,t),n=n==null?t:ze({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Gl={isMounted:function(e){return(e=e._reactInternals)?no(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=ft(),r=wr(e),i=Fn(o,r);i.payload=t,n!=null&&(i.callback=n),t=br(e,i,r),t!==null&&(rn(t,e,r,o),Es(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=ft(),r=wr(e),i=Fn(o,r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=br(e,i,r),t!==null&&(rn(t,e,r,o),Es(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ft(),o=wr(e),r=Fn(n,o);r.tag=2,t!=null&&(r.callback=t),t=br(e,r,o),t!==null&&(rn(t,e,o,n),Es(t,e,o))}};function sg(e,t,n,o,r,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,i,a):t.prototype&&t.prototype.isPureReactComponent?!ta(n,o)||!ta(r,i):!0}function Ab(e,t,n){var o=!1,r=kr,i=t.contextType;return typeof i=="object"&&i!==null?i=Zt(i):(r=wt(t)?Hr:at.current,o=t.contextTypes,i=(o=o!=null)?Mo(e,r):kr),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Gl,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),t}function lg(e,t,n,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&Gl.enqueueReplaceState(t,t.state,null)}function ld(e,t,n,o){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},bf(e);var i=t.contextType;typeof i=="object"&&i!==null?r.context=Zt(i):(i=wt(t)?Hr:at.current,r.context=Mo(e,i)),r.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(sd(e,t,i,n),r.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(t=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),t!==r.state&&Gl.enqueueReplaceState(r,r.state,null),al(e,n,r,o),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308)}function Wo(e,t){try{var n="",o=t;do n+=X1(o),o=o.return;while(o);var r=n}catch(i){r=`
39
- Error generating stack: `+i.message+`
40
- `+i.stack}return{value:e,source:t,stack:r,digest:null}}function lc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ud(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var kE=typeof WeakMap=="function"?WeakMap:Map;function Ub(e,t,n){n=Fn(-1,n),n.tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){dl||(dl=!0,bd=o),ud(e,t)},n}function Lb(e,t,n){n=Fn(-1,n),n.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var r=t.value;n.payload=function(){return o(r)},n.callback=function(){ud(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){ud(e,t),typeof o!="function"&&(xr===null?xr=new Set([this]):xr.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function ug(e,t,n){var o=e.pingCache;if(o===null){o=e.pingCache=new kE;var r=new Set;o.set(t,r)}else r=o.get(t),r===void 0&&(r=new Set,o.set(t,r));r.has(n)||(r.add(n),e=UE.bind(null,e,t,n),t.then(e,e))}function cg(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function dg(e,t,n,o,r){return e.mode&1?(e.flags|=65536,e.lanes=r,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Fn(-1,1),t.tag=2,br(n,t,1))),n.lanes|=1),e)}var $E=Yn.ReactCurrentOwner,bt=!1;function ut(e,t,n,o){t.child=e===null?pb(t,null,n,o):Vo(t,e.child,n,o)}function fg(e,t,n,o,r){n=n.render;var i=t.ref;return Oo(t,r),o=kf(e,t,n,o,i,r),n=$f(),e!==null&&!bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Hn(e,t,r)):(Ee&&n&&ff(t),t.flags|=1,ut(e,t,o,r),t.child)}function mg(e,t,n,o,r){if(e===null){var i=n.type;return typeof i=="function"&&!Df(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Mb(e,t,i,o,r)):(e=Os(n.type,null,o,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&r)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:ta,n(a,o)&&e.ref===t.ref)return Hn(e,t,r)}return t.flags|=1,e=_r(i,o),e.ref=t.ref,e.return=t,t.child=e}function Mb(e,t,n,o,r){if(e!==null){var i=e.memoizedProps;if(ta(i,o)&&e.ref===t.ref)if(bt=!1,t.pendingProps=o=i,(e.lanes&r)!==0)e.flags&131072&&(bt=!0);else return t.lanes=e.lanes,Hn(e,t,r)}return cd(e,t,n,o,r)}function Fb(e,t,n){var o=t.pendingProps,r=o.children,i=e!==null?e.memoizedState:null;if(o.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},we(jo,$t),$t|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,we(jo,$t),$t|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=i!==null?i.baseLanes:n,we(jo,$t),$t|=o}else i!==null?(o=i.baseLanes|n,t.memoizedState=null):o=n,we(jo,$t),$t|=o;return ut(e,t,r,n),t.child}function Vb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function cd(e,t,n,o,r){var i=wt(n)?Hr:at.current;return i=Mo(t,i),Oo(t,r),n=kf(e,t,n,o,i,r),o=$f(),e!==null&&!bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Hn(e,t,r)):(Ee&&o&&ff(t),t.flags|=1,ut(e,t,n,r),t.child)}function pg(e,t,n,o,r){if(wt(n)){var i=!0;tl(t)}else i=!1;if(Oo(t,r),t.stateNode===null)Cs(e,t),Ab(t,n,o),ld(t,n,o,r),o=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Zt(u):(u=wt(n)?Hr:at.current,u=Mo(t,u));var d=n.getDerivedStateFromProps,c=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";c||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==o||l!==u)&&lg(t,a,o,u),ir=!1;var h=t.memoizedState;a.state=h,al(t,o,a,r),l=t.memoizedState,s!==o||h!==l||xt.current||ir?(typeof d=="function"&&(sd(t,n,d,o),l=t.memoizedState),(s=ir||sg(t,n,s,o,h,l,u))?(c||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=l),a.props=o,a.state=l,a.context=u,o=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{a=t.stateNode,gb(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Yt(t.type,s),a.props=u,c=t.pendingProps,h=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=Zt(l):(l=wt(n)?Hr:at.current,l=Mo(t,l));var y=n.getDerivedStateFromProps;(d=typeof y=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==c||h!==l)&&lg(t,a,o,l),ir=!1,h=t.memoizedState,a.state=h,al(t,o,a,r);var x=t.memoizedState;s!==c||h!==x||xt.current||ir?(typeof y=="function"&&(sd(t,n,y,o),x=t.memoizedState),(u=ir||sg(t,n,u,o,h,x,l)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(o,x,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(o,x,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=x),a.props=o,a.state=x,a.context=l,o=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),o=!1)}return dd(e,t,n,o,i,r)}function dd(e,t,n,o,r,i){Vb(e,t);var a=(t.flags&128)!==0;if(!o&&!a)return r&&qh(t,n,!1),Hn(e,t,i);o=t.stateNode,$E.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&a?(t.child=Vo(t,e.child,null,i),t.child=Vo(t,null,s,i)):ut(e,t,s,i),t.memoizedState=o.state,r&&qh(t,n,!0),t.child}function Zb(e){var t=e.stateNode;t.pendingContext?Qh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Qh(e,t.context,!1),xf(e,t.containerInfo)}function hg(e,t,n,o,r){return Fo(),pf(r),t.flags|=256,ut(e,t,n,o),t.child}var fd={dehydrated:null,treeContext:null,retryLane:0};function md(e){return{baseLanes:e,cachePool:null,transitions:null}}function Wb(e,t,n){var o=t.pendingProps,r=Ie.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(r&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(r|=1),we(Ie,r&1),e===null)return id(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=o.children,e=o.fallback,i?(o=t.mode,i=t.child,a={mode:"hidden",children:a},!(o&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Yl(a,o,0,null),e=Br(e,o,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=md(n),t.memoizedState=fd,e):jf(t,a));if(r=e.memoizedState,r!==null&&(s=r.dehydrated,s!==null))return NE(e,t,a,o,s,r,n);if(i){i=o.fallback,a=t.mode,r=e.child,s=r.sibling;var l={mode:"hidden",children:o.children};return!(a&1)&&t.child!==r?(o=t.child,o.childLanes=0,o.pendingProps=l,t.deletions=null):(o=_r(r,l),o.subtreeFlags=r.subtreeFlags&14680064),s!==null?i=_r(s,i):(i=Br(i,a,n,null),i.flags|=2),i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,a=e.child.memoizedState,a=a===null?md(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=fd,o}return i=e.child,e=i.sibling,o=_r(i,{mode:"visible",children:o.children}),!(t.mode&1)&&(o.lanes=n),o.return=t,o.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function jf(e,t){return t=Yl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function is(e,t,n,o){return o!==null&&pf(o),Vo(t,e.child,null,n),e=jf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function NE(e,t,n,o,r,i,a){if(n)return t.flags&256?(t.flags&=-257,o=lc(Error(R(422))),is(e,t,a,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=o.fallback,r=t.mode,o=Yl({mode:"visible",children:o.children},r,0,null),i=Br(i,r,a,null),i.flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,t.mode&1&&Vo(t,e.child,null,a),t.child.memoizedState=md(a),t.memoizedState=fd,i);if(!(t.mode&1))return is(e,t,a,null);if(r.data==="$!"){if(o=r.nextSibling&&r.nextSibling.dataset,o)var s=o.dgst;return o=s,i=Error(R(419)),o=lc(i,o,void 0),is(e,t,a,o)}if(s=(a&e.childLanes)!==0,bt||s){if(o=Ge,o!==null){switch(a&-a){case 4:r=2;break;case 16:r=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}r=r&(o.suspendedLanes|a)?0:r,r!==0&&r!==i.retryLane&&(i.retryLane=r,Bn(e,r),rn(o,e,r,-1))}return Tf(),o=lc(Error(R(421))),is(e,t,a,o)}return r.data==="$?"?(t.flags|=128,t.child=e.child,t=LE.bind(null,e),r._reactRetry=t,null):(e=i.treeContext,Ct=yr(r.nextSibling),zt=t,Ee=!0,Qt=null,e!==null&&(Lt[Mt++]=Un,Lt[Mt++]=Ln,Lt[Mt++]=Gr,Un=e.id,Ln=e.overflow,Gr=t),t=jf(t,o.children),t.flags|=4096,t)}function gg(e,t,n){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),ad(e.return,t,n)}function uc(e,t,n,o,r){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:r}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=n,i.tailMode=r)}function Bb(e,t,n){var o=t.pendingProps,r=o.revealOrder,i=o.tail;if(ut(e,t,o.children,n),o=Ie.current,o&2)o=o&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&gg(e,n,t);else if(e.tag===19)gg(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(we(Ie,o),!(t.mode&1))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&sl(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),uc(t,!1,r,n,i);break;case"backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&sl(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}uc(t,!0,n,null,i);break;case"together":uc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Cs(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Jr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=_r(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=_r(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function EE(e,t,n){switch(t.tag){case 3:Zb(t),Fo();break;case 5:vb(t);break;case 1:wt(t.type)&&tl(t);break;case 4:xf(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,r=t.memoizedProps.value;we(ol,o._currentValue),o._currentValue=r;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(we(Ie,Ie.current&1),t.flags|=128,null):n&t.child.childLanes?Wb(e,t,n):(we(Ie,Ie.current&1),e=Hn(e,t,n),e!==null?e.sibling:null);we(Ie,Ie.current&1);break;case 19:if(o=(n&t.childLanes)!==0,e.flags&128){if(o)return Bb(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),we(Ie,Ie.current),o)break;return null;case 22:case 23:return t.lanes=0,Fb(e,t,n)}return Hn(e,t,n)}var Hb,pd,Gb,Kb;Hb=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};pd=function(){};Gb=function(e,t,n,o){var r=e.memoizedProps;if(r!==o){e=t.stateNode,Mr(Sn.current);var i=null;switch(n){case"input":r=Rc(e,r),o=Rc(e,o),i=[];break;case"select":r=ze({},r,{value:void 0}),o=ze({},o,{value:void 0}),i=[];break;case"textarea":r=Lc(e,r),o=Lc(e,o),i=[];break;default:typeof r.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=qs)}Fc(n,o);var a;n=null;for(u in r)if(!o.hasOwnProperty(u)&&r.hasOwnProperty(u)&&r[u]!=null)if(u==="style"){var s=r[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ki.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in o){var l=o[u];if(s=r!=null?r[u]:void 0,o.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ki.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Se("scroll",e),i||s===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Kb=function(e,t,n,o){n!==o&&(t.flags|=4)};function ki(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ot(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,o=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,o|=r.subtreeFlags&14680064,o|=r.flags&14680064,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=o,e.childLanes=n,t}function jE(e,t,n){var o=t.pendingProps;switch(mf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(t),null;case 1:return wt(t.type)&&el(),ot(t),null;case 3:return o=t.stateNode,Zo(),ke(xt),ke(at),_f(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(rs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Qt!==null&&(_d(Qt),Qt=null))),pd(e,t),ot(t),null;case 5:wf(t);var r=Mr(aa.current);if(n=t.type,e!==null&&t.stateNode!=null)Gb(e,t,n,o,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(R(166));return ot(t),null}if(e=Mr(Sn.current),rs(t)){o=t.stateNode,n=t.type;var i=t.memoizedProps;switch(o[yn]=t,o[oa]=i,e=(t.mode&1)!==0,n){case"dialog":Se("cancel",o),Se("close",o);break;case"iframe":case"object":case"embed":Se("load",o);break;case"video":case"audio":for(r=0;r<Oi.length;r++)Se(Oi[r],o);break;case"source":Se("error",o);break;case"img":case"image":case"link":Se("error",o),Se("load",o);break;case"details":Se("toggle",o);break;case"input":$h(o,i),Se("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},Se("invalid",o);break;case"textarea":Eh(o,i),Se("invalid",o)}Fc(n,i),r=null;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];a==="children"?typeof s=="string"?o.textContent!==s&&(i.suppressHydrationWarning!==!0&&ns(o.textContent,s,e),r=["children",s]):typeof s=="number"&&o.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&ns(o.textContent,s,e),r=["children",""+s]):Ki.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Se("scroll",o)}switch(n){case"input":Ka(o),Nh(o,i,!0);break;case"textarea":Ka(o),jh(o);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(o.onclick=qs)}o=r,t.updateQueue=o,o!==null&&(t.flags|=4)}else{a=r.nodeType===9?r:r.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=_y(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=a.createElement(n,{is:o.is}):(e=a.createElement(n),n==="select"&&(a=e,o.multiple?a.multiple=!0:o.size&&(a.size=o.size))):e=a.createElementNS(e,n),e[yn]=t,e[oa]=o,Hb(e,t,!1,!1),t.stateNode=e;e:{switch(a=Vc(n,o),n){case"dialog":Se("cancel",e),Se("close",e),r=o;break;case"iframe":case"object":case"embed":Se("load",e),r=o;break;case"video":case"audio":for(r=0;r<Oi.length;r++)Se(Oi[r],e);r=o;break;case"source":Se("error",e),r=o;break;case"img":case"image":case"link":Se("error",e),Se("load",e),r=o;break;case"details":Se("toggle",e),r=o;break;case"input":$h(e,o),r=Rc(e,o),Se("invalid",e);break;case"option":r=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},r=ze({},o,{value:void 0}),Se("invalid",e);break;case"textarea":Eh(e,o),r=Lc(e,o),Se("invalid",e);break;default:r=o}Fc(n,r),s=r;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="style"?$y(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Sy(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ji(e,l):typeof l=="number"&&Ji(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Ki.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Se("scroll",e):l!=null&&Xd(e,i,l,a))}switch(n){case"input":Ka(e),Nh(e,o,!1);break;case"textarea":Ka(e),jh(e);break;case"option":o.value!=null&&e.setAttribute("value",""+Sr(o.value));break;case"select":e.multiple=!!o.multiple,i=o.value,i!=null?Io(e,!!o.multiple,i,!1):o.defaultValue!=null&&Io(e,!!o.multiple,o.defaultValue,!0);break;default:typeof r.onClick=="function"&&(e.onclick=qs)}switch(n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ot(t),null;case 6:if(e&&t.stateNode!=null)Kb(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(R(166));if(n=Mr(aa.current),Mr(Sn.current),rs(t)){if(o=t.stateNode,n=t.memoizedProps,o[yn]=t,(i=o.nodeValue!==n)&&(e=zt,e!==null))switch(e.tag){case 3:ns(o.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ns(o.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[yn]=t,t.stateNode=o}return ot(t),null;case 13:if(ke(Ie),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&Ct!==null&&t.mode&1&&!(t.flags&128))fb(),Fo(),t.flags|=98560,i=!1;else if(i=rs(t),o!==null&&o.dehydrated!==null){if(e===null){if(!i)throw Error(R(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(R(317));i[yn]=t}else Fo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ot(t),i=!1}else Qt!==null&&(_d(Qt),Qt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,t.mode&1&&(e===null||Ie.current&1?We===0&&(We=3):Tf())),t.updateQueue!==null&&(t.flags|=4),ot(t),null);case 4:return Zo(),pd(e,t),e===null&&na(t.stateNode.containerInfo),ot(t),null;case 10:return vf(t.type._context),ot(t),null;case 17:return wt(t.type)&&el(),ot(t),null;case 19:if(ke(Ie),i=t.memoizedState,i===null)return ot(t),null;if(o=(t.flags&128)!==0,a=i.rendering,a===null)if(o)ki(i,!1);else{if(We!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=sl(e),a!==null){for(t.flags|=128,ki(i,!1),o=a.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=n,n=t.child;n!==null;)i=n,e=o,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return we(Ie,Ie.current&1|2),t.child}e=e.sibling}i.tail!==null&&De()>Bo&&(t.flags|=128,o=!0,ki(i,!1),t.lanes=4194304)}else{if(!o)if(e=sl(a),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ki(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ee)return ot(t),null}else 2*De()-i.renderingStartTime>Bo&&n!==1073741824&&(t.flags|=128,o=!0,ki(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=De(),t.sibling=null,n=Ie.current,we(Ie,o?n&1|2:n&1),t):(ot(t),null);case 22:case 23:return Of(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&t.mode&1?$t&1073741824&&(ot(t),t.subtreeFlags&6&&(t.flags|=8192)):ot(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function IE(e,t){switch(mf(t),t.tag){case 1:return wt(t.type)&&el(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zo(),ke(xt),ke(at),_f(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return wf(t),null;case 13:if(ke(Ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Fo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ke(Ie),null;case 4:return Zo(),null;case 10:return vf(t.type._context),null;case 22:case 23:return Of(),null;case 24:return null;default:return null}}var as=!1,it=!1,CE=typeof WeakSet=="function"?WeakSet:Set,H=null;function Eo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){Pe(e,t,o)}else n.current=null}function hd(e,t,n){try{n()}catch(o){Pe(e,t,o)}}var vg=!1;function zE(e,t){if(Qc=Ys,e=qy(),df(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var r=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,d=0,c=e,h=null;t:for(;;){for(var y;c!==n||r!==0&&c.nodeType!==3||(s=a+r),c!==i||o!==0&&c.nodeType!==3||(l=a+o),c.nodeType===3&&(a+=c.nodeValue.length),(y=c.firstChild)!==null;)h=c,c=y;for(;;){if(c===e)break t;if(h===n&&++u===r&&(s=a),h===i&&++d===o&&(l=a),(y=c.nextSibling)!==null)break;c=h,h=c.parentNode}c=y}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(qc={focusedElem:e,selectionRange:n},Ys=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var b=x.memoizedProps,w=x.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?b:Yt(t.type,b),w);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(_){Pe(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return x=vg,vg=!1,x}function Zi(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var r=o=o.next;do{if((r.tag&e)===e){var i=r.destroy;r.destroy=void 0,i!==void 0&&hd(t,n,i)}r=r.next}while(r!==o)}}function Kl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function gd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Jb(e){var t=e.alternate;t!==null&&(e.alternate=null,Jb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yn],delete t[oa],delete t[nd],delete t[mE],delete t[pE])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Yb(e){return e.tag===5||e.tag===3||e.tag===4}function yg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Yb(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.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 vd(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=qs));else if(o!==4&&(e=e.child,e!==null))for(vd(e,t,n),e=e.sibling;e!==null;)vd(e,t,n),e=e.sibling}function yd(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(yd(e,t,n),e=e.sibling;e!==null;)yd(e,t,n),e=e.sibling}var Qe=null,Xt=!1;function tr(e,t,n){for(n=n.child;n!==null;)Xb(e,t,n),n=n.sibling}function Xb(e,t,n){if(_n&&typeof _n.onCommitFiberUnmount=="function")try{_n.onCommitFiberUnmount(Ml,n)}catch{}switch(n.tag){case 5:it||Eo(n,t);case 6:var o=Qe,r=Xt;Qe=null,tr(e,t,n),Qe=o,Xt=r,Qe!==null&&(Xt?(e=Qe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Qe.removeChild(n.stateNode));break;case 18:Qe!==null&&(Xt?(e=Qe,n=n.stateNode,e.nodeType===8?nc(e.parentNode,n):e.nodeType===1&&nc(e,n),qi(e)):nc(Qe,n.stateNode));break;case 4:o=Qe,r=Xt,Qe=n.stateNode.containerInfo,Xt=!0,tr(e,t,n),Qe=o,Xt=r;break;case 0:case 11:case 14:case 15:if(!it&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){r=o=o.next;do{var i=r,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&hd(n,t,a),r=r.next}while(r!==o)}tr(e,t,n);break;case 1:if(!it&&(Eo(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(s){Pe(n,t,s)}tr(e,t,n);break;case 21:tr(e,t,n);break;case 22:n.mode&1?(it=(o=it)||n.memoizedState!==null,tr(e,t,n),it=o):tr(e,t,n);break;default:tr(e,t,n)}}function bg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new CE),t.forEach(function(o){var r=ME.bind(null,e,o);n.has(o)||(n.add(o),o.then(r,r))})}}function Jt(e,t){var n=t.deletions;if(n!==null)for(var o=0;o<n.length;o++){var r=n[o];try{var i=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:Qe=s.stateNode,Xt=!1;break e;case 3:Qe=s.stateNode.containerInfo,Xt=!0;break e;case 4:Qe=s.stateNode.containerInfo,Xt=!0;break e}s=s.return}if(Qe===null)throw Error(R(160));Xb(i,a,r),Qe=null,Xt=!1;var l=r.alternate;l!==null&&(l.return=null),r.return=null}catch(u){Pe(r,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Qb(t,e),t=t.sibling}function Qb(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Jt(t,e),hn(e),o&4){try{Zi(3,e,e.return),Kl(3,e)}catch(b){Pe(e,e.return,b)}try{Zi(5,e,e.return)}catch(b){Pe(e,e.return,b)}}break;case 1:Jt(t,e),hn(e),o&512&&n!==null&&Eo(n,n.return);break;case 5:if(Jt(t,e),hn(e),o&512&&n!==null&&Eo(n,n.return),e.flags&32){var r=e.stateNode;try{Ji(r,"")}catch(b){Pe(e,e.return,b)}}if(o&4&&(r=e.stateNode,r!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&xy(r,i),Vc(s,a);var u=Vc(s,i);for(a=0;a<l.length;a+=2){var d=l[a],c=l[a+1];d==="style"?$y(r,c):d==="dangerouslySetInnerHTML"?Sy(r,c):d==="children"?Ji(r,c):Xd(r,d,c,u)}switch(s){case"input":Ac(r,i);break;case"textarea":wy(r,i);break;case"select":var h=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!i.multiple;var y=i.value;y!=null?Io(r,!!i.multiple,y,!1):h!==!!i.multiple&&(i.defaultValue!=null?Io(r,!!i.multiple,i.defaultValue,!0):Io(r,!!i.multiple,i.multiple?[]:"",!1))}r[oa]=i}catch(b){Pe(e,e.return,b)}}break;case 6:if(Jt(t,e),hn(e),o&4){if(e.stateNode===null)throw Error(R(162));r=e.stateNode,i=e.memoizedProps;try{r.nodeValue=i}catch(b){Pe(e,e.return,b)}}break;case 3:if(Jt(t,e),hn(e),o&4&&n!==null&&n.memoizedState.isDehydrated)try{qi(t.containerInfo)}catch(b){Pe(e,e.return,b)}break;case 4:Jt(t,e),hn(e);break;case 13:Jt(t,e),hn(e),r=e.child,r.flags&8192&&(i=r.memoizedState!==null,r.stateNode.isHidden=i,!i||r.alternate!==null&&r.alternate.memoizedState!==null||(zf=De())),o&4&&bg(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(it=(u=it)||d,Jt(t,e),it=u):Jt(t,e),hn(e),o&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(H=e,d=e.child;d!==null;){for(c=H=d;H!==null;){switch(h=H,y=h.child,h.tag){case 0:case 11:case 14:case 15:Zi(4,h,h.return);break;case 1:Eo(h,h.return);var x=h.stateNode;if(typeof x.componentWillUnmount=="function"){o=h,n=h.return;try{t=o,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(b){Pe(o,n,b)}}break;case 5:Eo(h,h.return);break;case 22:if(h.memoizedState!==null){wg(c);continue}}y!==null?(y.return=h,H=y):wg(c)}d=d.sibling}e:for(d=null,c=e;;){if(c.tag===5){if(d===null){d=c;try{r=c.stateNode,u?(i=r.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=c.stateNode,l=c.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=ky("display",a))}catch(b){Pe(e,e.return,b)}}}else if(c.tag===6){if(d===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(b){Pe(e,e.return,b)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;d===c&&(d=null),c=c.return}d===c&&(d=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:Jt(t,e),hn(e),o&4&&bg(e);break;case 21:break;default:Jt(t,e),hn(e)}}function hn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Yb(n)){var o=n;break e}n=n.return}throw Error(R(160))}switch(o.tag){case 5:var r=o.stateNode;o.flags&32&&(Ji(r,""),o.flags&=-33);var i=yg(e);yd(e,i,r);break;case 3:case 4:var a=o.stateNode.containerInfo,s=yg(e);vd(e,s,a);break;default:throw Error(R(161))}}catch(l){Pe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function PE(e,t,n){H=e,qb(e)}function qb(e,t,n){for(var o=(e.mode&1)!==0;H!==null;){var r=H,i=r.child;if(r.tag===22&&o){var a=r.memoizedState!==null||as;if(!a){var s=r.alternate,l=s!==null&&s.memoizedState!==null||it;s=as;var u=it;if(as=a,(it=l)&&!u)for(H=r;H!==null;)a=H,l=a.child,a.tag===22&&a.memoizedState!==null?_g(r):l!==null?(l.return=a,H=l):_g(r);for(;i!==null;)H=i,qb(i),i=i.sibling;H=r,as=s,it=u}xg(e)}else r.subtreeFlags&8772&&i!==null?(i.return=r,H=i):xg(e)}}function xg(e){for(;H!==null;){var t=H;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:it||Kl(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!it)if(n===null)o.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:Yt(t.type,n.memoizedProps);o.componentDidUpdate(r,n.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&og(t,i,o);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}og(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var c=d.dehydrated;c!==null&&qi(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}it||t.flags&512&&gd(t)}catch(h){Pe(t,t.return,h)}}if(t===e){H=null;break}if(n=t.sibling,n!==null){n.return=t.return,H=n;break}H=t.return}}function wg(e){for(;H!==null;){var t=H;if(t===e){H=null;break}var n=t.sibling;if(n!==null){n.return=t.return,H=n;break}H=t.return}}function _g(e){for(;H!==null;){var t=H;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Kl(4,t)}catch(l){Pe(t,n,l)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var r=t.return;try{o.componentDidMount()}catch(l){Pe(t,r,l)}}var i=t.return;try{gd(t)}catch(l){Pe(t,i,l)}break;case 5:var a=t.return;try{gd(t)}catch(l){Pe(t,a,l)}}}catch(l){Pe(t,t.return,l)}if(t===e){H=null;break}var s=t.sibling;if(s!==null){s.return=t.return,H=s;break}H=t.return}}var OE=Math.ceil,cl=Yn.ReactCurrentDispatcher,If=Yn.ReactCurrentOwner,Vt=Yn.ReactCurrentBatchConfig,he=0,Ge=null,Le=null,qe=0,$t=0,jo=Cr(0),We=0,ca=null,Jr=0,Jl=0,Cf=0,Wi=null,yt=null,zf=0,Bo=1/0,Dn=null,dl=!1,bd=null,xr=null,ss=!1,ur=null,fl=0,Bi=0,xd=null,zs=-1,Ps=0;function ft(){return he&6?De():zs!==-1?zs:zs=De()}function wr(e){return e.mode&1?he&2&&qe!==0?qe&-qe:gE.transition!==null?(Ps===0&&(Ps=Ay()),Ps):(e=xe,e!==0||(e=window.event,e=e===void 0?16:Wy(e.type)),e):1}function rn(e,t,n,o){if(50<Bi)throw Bi=0,xd=null,Error(R(185));Sa(e,n,o),(!(he&2)||e!==Ge)&&(e===Ge&&(!(he&2)&&(Jl|=n),We===4&&sr(e,qe)),_t(e,o),n===1&&he===0&&!(t.mode&1)&&(Bo=De()+500,Bl&&zr()))}function _t(e,t){var n=e.callbackNode;gN(e,t);var o=Js(e,e===Ge?qe:0);if(o===0)n!==null&&zh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(n!=null&&zh(n),t===1)e.tag===0?hE(Sg.bind(null,e)):ub(Sg.bind(null,e)),dE(function(){!(he&6)&&zr()}),n=null;else{switch(Uy(o)){case 1:n=nf;break;case 4:n=Dy;break;case 16:n=Ks;break;case 536870912:n=Ry;break;default:n=Ks}n=sx(n,ex.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ex(e,t){if(zs=-1,Ps=0,he&6)throw Error(R(327));var n=e.callbackNode;if(To()&&e.callbackNode!==n)return null;var o=Js(e,e===Ge?qe:0);if(o===0)return null;if(o&30||o&e.expiredLanes||t)t=ml(e,o);else{t=o;var r=he;he|=2;var i=nx();(Ge!==e||qe!==t)&&(Dn=null,Bo=De()+500,Wr(e,t));do try{RE();break}catch(s){tx(e,s)}while(!0);gf(),cl.current=i,he=r,Le!==null?t=0:(Ge=null,qe=0,t=We)}if(t!==0){if(t===2&&(r=Gc(e),r!==0&&(o=r,t=wd(e,r))),t===1)throw n=ca,Wr(e,0),sr(e,o),_t(e,De()),n;if(t===6)sr(e,o);else{if(r=e.current.alternate,!(o&30)&&!TE(r)&&(t=ml(e,o),t===2&&(i=Gc(e),i!==0&&(o=i,t=wd(e,i))),t===1))throw n=ca,Wr(e,0),sr(e,o),_t(e,De()),n;switch(e.finishedWork=r,e.finishedLanes=o,t){case 0:case 1:throw Error(R(345));case 2:Ar(e,yt,Dn);break;case 3:if(sr(e,o),(o&130023424)===o&&(t=zf+500-De(),10<t)){if(Js(e,0)!==0)break;if(r=e.suspendedLanes,(r&o)!==o){ft(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=td(Ar.bind(null,e,yt,Dn),t);break}Ar(e,yt,Dn);break;case 4:if(sr(e,o),(o&4194240)===o)break;for(t=e.eventTimes,r=-1;0<o;){var a=31-nn(o);i=1<<a,a=t[a],a>r&&(r=a),o&=~i}if(o=r,o=De()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*OE(o/1960))-o,10<o){e.timeoutHandle=td(Ar.bind(null,e,yt,Dn),o);break}Ar(e,yt,Dn);break;case 5:Ar(e,yt,Dn);break;default:throw Error(R(329))}}}return _t(e,De()),e.callbackNode===n?ex.bind(null,e):null}function wd(e,t){var n=Wi;return e.current.memoizedState.isDehydrated&&(Wr(e,t).flags|=256),e=ml(e,t),e!==2&&(t=yt,yt=n,t!==null&&_d(t)),e}function _d(e){yt===null?yt=e:yt.push.apply(yt,e)}function TE(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var o=0;o<n.length;o++){var r=n[o],i=r.getSnapshot;r=r.value;try{if(!an(i(),r))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function sr(e,t){for(t&=~Cf,t&=~Jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-nn(t),o=1<<n;e[n]=-1,t&=~o}}function Sg(e){if(he&6)throw Error(R(327));To();var t=Js(e,0);if(!(t&1))return _t(e,De()),null;var n=ml(e,t);if(e.tag!==0&&n===2){var o=Gc(e);o!==0&&(t=o,n=wd(e,o))}if(n===1)throw n=ca,Wr(e,0),sr(e,t),_t(e,De()),n;if(n===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ar(e,yt,Dn),_t(e,De()),null}function Pf(e,t){var n=he;he|=1;try{return e(t)}finally{he=n,he===0&&(Bo=De()+500,Bl&&zr())}}function Yr(e){ur!==null&&ur.tag===0&&!(he&6)&&To();var t=he;he|=1;var n=Vt.transition,o=xe;try{if(Vt.transition=null,xe=1,e)return e()}finally{xe=o,Vt.transition=n,he=t,!(he&6)&&zr()}}function Of(){$t=jo.current,ke(jo)}function Wr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,cE(n)),Le!==null)for(n=Le.return;n!==null;){var o=n;switch(mf(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&el();break;case 3:Zo(),ke(xt),ke(at),_f();break;case 5:wf(o);break;case 4:Zo();break;case 13:ke(Ie);break;case 19:ke(Ie);break;case 10:vf(o.type._context);break;case 22:case 23:Of()}n=n.return}if(Ge=e,Le=e=_r(e.current,null),qe=$t=t,We=0,ca=null,Cf=Jl=Jr=0,yt=Wi=null,Lr!==null){for(t=0;t<Lr.length;t++)if(n=Lr[t],o=n.interleaved,o!==null){n.interleaved=null;var r=o.next,i=n.pending;if(i!==null){var a=i.next;i.next=r,o.next=a}n.pending=o}Lr=null}return e}function tx(e,t){do{var n=Le;try{if(gf(),js.current=ul,ll){for(var o=Ce.memoizedState;o!==null;){var r=o.queue;r!==null&&(r.pending=null),o=o.next}ll=!1}if(Kr=0,He=Ze=Ce=null,Vi=!1,sa=0,If.current=null,n===null||n.return===null){We=1,ca=t,Le=null;break}e:{var i=e,a=n.return,s=n,l=t;if(t=qe,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=s,c=d.tag;if(!(d.mode&1)&&(c===0||c===11||c===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var y=cg(a);if(y!==null){y.flags&=-257,dg(y,a,s,i,t),y.mode&1&&ug(i,u,t),t=y,l=u;var x=t.updateQueue;if(x===null){var b=new Set;b.add(l),t.updateQueue=b}else x.add(l);break e}else{if(!(t&1)){ug(i,u,t),Tf();break e}l=Error(R(426))}}else if(Ee&&s.mode&1){var w=cg(a);if(w!==null){!(w.flags&65536)&&(w.flags|=256),dg(w,a,s,i,t),pf(Wo(l,s));break e}}i=l=Wo(l,s),We!==4&&(We=2),Wi===null?Wi=[i]:Wi.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=Ub(i,l,t);rg(i,m);break e;case 1:s=l;var p=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(xr===null||!xr.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t;var _=Lb(i,s,t);rg(i,_);break e}}i=i.return}while(i!==null)}ox(n)}catch(S){t=S,Le===n&&n!==null&&(Le=n=n.return);continue}break}while(!0)}function nx(){var e=cl.current;return cl.current=ul,e===null?ul:e}function Tf(){(We===0||We===3||We===2)&&(We=4),Ge===null||!(Jr&268435455)&&!(Jl&268435455)||sr(Ge,qe)}function ml(e,t){var n=he;he|=2;var o=nx();(Ge!==e||qe!==t)&&(Dn=null,Wr(e,t));do try{DE();break}catch(r){tx(e,r)}while(!0);if(gf(),he=n,cl.current=o,Le!==null)throw Error(R(261));return Ge=null,qe=0,We}function DE(){for(;Le!==null;)rx(Le)}function RE(){for(;Le!==null&&!sN();)rx(Le)}function rx(e){var t=ax(e.alternate,e,$t);e.memoizedProps=e.pendingProps,t===null?ox(e):Le=t,If.current=null}function ox(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=IE(n,t),n!==null){n.flags&=32767,Le=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{We=6,Le=null;return}}else if(n=jE(n,t,$t),n!==null){Le=n;return}if(t=t.sibling,t!==null){Le=t;return}Le=t=e}while(t!==null);We===0&&(We=5)}function Ar(e,t,n){var o=xe,r=Vt.transition;try{Vt.transition=null,xe=1,AE(e,t,n,o)}finally{Vt.transition=r,xe=o}return null}function AE(e,t,n,o){do To();while(ur!==null);if(he&6)throw Error(R(327));n=e.finishedWork;var r=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(vN(e,i),e===Ge&&(Le=Ge=null,qe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ss||(ss=!0,sx(Ks,function(){return To(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Vt.transition,Vt.transition=null;var a=xe;xe=1;var s=he;he|=4,If.current=null,zE(e,n),Qb(n,e),rE(qc),Ys=!!Qc,qc=Qc=null,e.current=n,PE(n),lN(),he=s,xe=a,Vt.transition=i}else e.current=n;if(ss&&(ss=!1,ur=e,fl=r),i=e.pendingLanes,i===0&&(xr=null),dN(n.stateNode),_t(e,De()),t!==null)for(o=e.onRecoverableError,n=0;n<t.length;n++)r=t[n],o(r.value,{componentStack:r.stack,digest:r.digest});if(dl)throw dl=!1,e=bd,bd=null,e;return fl&1&&e.tag!==0&&To(),i=e.pendingLanes,i&1?e===xd?Bi++:(Bi=0,xd=e):Bi=0,zr(),null}function To(){if(ur!==null){var e=Uy(fl),t=Vt.transition,n=xe;try{if(Vt.transition=null,xe=16>e?16:e,ur===null)var o=!1;else{if(e=ur,ur=null,fl=0,he&6)throw Error(R(331));var r=he;for(he|=4,H=e.current;H!==null;){var i=H,a=i.child;if(H.flags&16){var s=i.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(H=u;H!==null;){var d=H;switch(d.tag){case 0:case 11:case 15:Zi(8,d,i)}var c=d.child;if(c!==null)c.return=d,H=c;else for(;H!==null;){d=H;var h=d.sibling,y=d.return;if(Jb(d),d===u){H=null;break}if(h!==null){h.return=y,H=h;break}H=y}}}var x=i.alternate;if(x!==null){var b=x.child;if(b!==null){x.child=null;do{var w=b.sibling;b.sibling=null,b=w}while(b!==null)}}H=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,H=a;else e:for(;H!==null;){if(i=H,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Zi(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,H=m;break e}H=i.return}}var p=e.current;for(H=p;H!==null;){a=H;var v=a.child;if(a.subtreeFlags&2064&&v!==null)v.return=a,H=v;else e:for(a=p;H!==null;){if(s=H,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Kl(9,s)}}catch(S){Pe(s,s.return,S)}if(s===a){H=null;break e}var _=s.sibling;if(_!==null){_.return=s.return,H=_;break e}H=s.return}}if(he=r,zr(),_n&&typeof _n.onPostCommitFiberRoot=="function")try{_n.onPostCommitFiberRoot(Ml,e)}catch{}o=!0}return o}finally{xe=n,Vt.transition=t}}return!1}function kg(e,t,n){t=Wo(n,t),t=Ub(e,t,1),e=br(e,t,1),t=ft(),e!==null&&(Sa(e,1,t),_t(e,t))}function Pe(e,t,n){if(e.tag===3)kg(e,e,n);else for(;t!==null;){if(t.tag===3){kg(t,e,n);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(xr===null||!xr.has(o))){e=Wo(n,e),e=Lb(t,e,1),t=br(t,e,1),e=ft(),t!==null&&(Sa(t,1,e),_t(t,e));break}}t=t.return}}function UE(e,t,n){var o=e.pingCache;o!==null&&o.delete(t),t=ft(),e.pingedLanes|=e.suspendedLanes&n,Ge===e&&(qe&n)===n&&(We===4||We===3&&(qe&130023424)===qe&&500>De()-zf?Wr(e,0):Cf|=n),_t(e,t)}function ix(e,t){t===0&&(e.mode&1?(t=Xa,Xa<<=1,!(Xa&130023424)&&(Xa=4194304)):t=1);var n=ft();e=Bn(e,t),e!==null&&(Sa(e,t,n),_t(e,n))}function LE(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ix(e,n)}function ME(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(R(314))}o!==null&&o.delete(t),ix(e,n)}var ax;ax=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||xt.current)bt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return bt=!1,EE(e,t,n);bt=!!(e.flags&131072)}else bt=!1,Ee&&t.flags&1048576&&cb(t,rl,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Cs(e,t),e=t.pendingProps;var r=Mo(t,at.current);Oo(t,n),r=kf(null,t,o,e,r,n);var i=$f();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wt(o)?(i=!0,tl(t)):i=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,bf(t),r.updater=Gl,t.stateNode=r,r._reactInternals=t,ld(t,o,e,n),t=dd(null,t,o,!0,i,n)):(t.tag=0,Ee&&i&&ff(t),ut(null,t,r,n),t=t.child),t;case 16:o=t.elementType;e:{switch(Cs(e,t),e=t.pendingProps,r=o._init,o=r(o._payload),t.type=o,r=t.tag=VE(o),e=Yt(o,e),r){case 0:t=cd(null,t,o,e,n);break e;case 1:t=pg(null,t,o,e,n);break e;case 11:t=fg(null,t,o,e,n);break e;case 14:t=mg(null,t,o,Yt(o.type,e),n);break e}throw Error(R(306,o,""))}return t;case 0:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:Yt(o,r),cd(e,t,o,r,n);case 1:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:Yt(o,r),pg(e,t,o,r,n);case 3:e:{if(Zb(t),e===null)throw Error(R(387));o=t.pendingProps,i=t.memoizedState,r=i.element,gb(e,t),al(t,o,null,n);var a=t.memoizedState;if(o=a.element,i.isDehydrated)if(i={element:o,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){r=Wo(Error(R(423)),t),t=hg(e,t,o,n,r);break e}else if(o!==r){r=Wo(Error(R(424)),t),t=hg(e,t,o,n,r);break e}else for(Ct=yr(t.stateNode.containerInfo.firstChild),zt=t,Ee=!0,Qt=null,n=pb(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Fo(),o===r){t=Hn(e,t,n);break e}ut(e,t,o,n)}t=t.child}return t;case 5:return vb(t),e===null&&id(t),o=t.type,r=t.pendingProps,i=e!==null?e.memoizedProps:null,a=r.children,ed(o,r)?a=null:i!==null&&ed(o,i)&&(t.flags|=32),Vb(e,t),ut(e,t,a,n),t.child;case 6:return e===null&&id(t),null;case 13:return Wb(e,t,n);case 4:return xf(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Vo(t,null,o,n):ut(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:Yt(o,r),fg(e,t,o,r,n);case 7:return ut(e,t,t.pendingProps,n),t.child;case 8:return ut(e,t,t.pendingProps.children,n),t.child;case 12:return ut(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,r=t.pendingProps,i=t.memoizedProps,a=r.value,we(ol,o._currentValue),o._currentValue=a,i!==null)if(an(i.value,a)){if(i.children===r.children&&!xt.current){t=Hn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===o){if(i.tag===1){l=Fn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),ad(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(R(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),ad(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}ut(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=t.pendingProps.children,Oo(t,n),r=Zt(r),o=o(r),t.flags|=1,ut(e,t,o,n),t.child;case 14:return o=t.type,r=Yt(o,t.pendingProps),r=Yt(o.type,r),mg(e,t,o,r,n);case 15:return Mb(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:Yt(o,r),Cs(e,t),t.tag=1,wt(o)?(e=!0,tl(t)):e=!1,Oo(t,n),Ab(t,o,r),ld(t,o,r,n),dd(null,t,o,!0,e,n);case 19:return Bb(e,t,n);case 22:return Fb(e,t,n)}throw Error(R(156,t.tag))};function sx(e,t){return Ty(e,t)}function FE(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ft(e,t,n,o){return new FE(e,t,n,o)}function Df(e){return e=e.prototype,!(!e||!e.isReactComponent)}function VE(e){if(typeof e=="function")return Df(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qd)return 11;if(e===ef)return 14}return 2}function _r(e,t){var n=e.alternate;return n===null?(n=Ft(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Os(e,t,n,o,r,i){var a=2;if(o=e,typeof e=="function")Df(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case yo:return Br(n.children,r,i,t);case Qd:a=8,r|=8;break;case Pc:return e=Ft(12,n,t,r|2),e.elementType=Pc,e.lanes=i,e;case Oc:return e=Ft(13,n,t,r),e.elementType=Oc,e.lanes=i,e;case Tc:return e=Ft(19,n,t,r),e.elementType=Tc,e.lanes=i,e;case vy:return Yl(n,r,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hy:a=10;break e;case gy:a=9;break e;case qd:a=11;break e;case ef:a=14;break e;case or:a=16,o=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Ft(a,n,t,r),t.elementType=e,t.type=o,t.lanes=i,t}function Br(e,t,n,o){return e=Ft(7,e,o,t),e.lanes=n,e}function Yl(e,t,n,o){return e=Ft(22,e,o,t),e.elementType=vy,e.lanes=n,e.stateNode={isHidden:!1},e}function cc(e,t,n){return e=Ft(6,e,null,t),e.lanes=n,e}function dc(e,t,n){return t=Ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ZE(e,t,n,o,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Bu(0),this.expirationTimes=Bu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bu(0),this.identifierPrefix=o,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Rf(e,t,n,o,r,i,a,s,l){return e=new ZE(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ft(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},bf(i),e}function WE(e,t,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:vo,key:o==null?null:""+o,children:e,containerInfo:t,implementation:n}}function lx(e){if(!e)return kr;e=e._reactInternals;e:{if(no(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(wt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var n=e.type;if(wt(n))return lb(e,n,t)}return t}function ux(e,t,n,o,r,i,a,s,l){return e=Rf(n,o,!0,e,r,i,a,s,l),e.context=lx(null),n=e.current,o=ft(),r=wr(n),i=Fn(o,r),i.callback=t??null,br(n,i,r),e.current.lanes=r,Sa(e,r,o),_t(e,o),e}function Xl(e,t,n,o){var r=t.current,i=ft(),a=wr(r);return n=lx(n),t.context===null?t.context=n:t.pendingContext=n,t=Fn(i,a),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=br(r,t,a),e!==null&&(rn(e,r,a,i),Es(e,r,a)),a}function pl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function $g(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Af(e,t){$g(e,t),(e=e.alternate)&&$g(e,t)}function BE(){return null}var cx=typeof reportError=="function"?reportError:function(e){console.error(e)};function Uf(e){this._internalRoot=e}Ql.prototype.render=Uf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));Xl(e,t,null,null)};Ql.prototype.unmount=Uf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Yr(function(){Xl(null,e,null,null)}),t[Wn]=null}};function Ql(e){this._internalRoot=e}Ql.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fy();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ar.length&&t!==0&&t<ar[n].priority;n++);ar.splice(n,0,e),n===0&&Zy(e)}};function Lf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ql(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ng(){}function HE(e,t,n,o,r){if(r){if(typeof o=="function"){var i=o;o=function(){var u=pl(a);i.call(u)}}var a=ux(t,o,e,0,null,!1,!1,"",Ng);return e._reactRootContainer=a,e[Wn]=a.current,na(e.nodeType===8?e.parentNode:e),Yr(),a}for(;r=e.lastChild;)e.removeChild(r);if(typeof o=="function"){var s=o;o=function(){var u=pl(l);s.call(u)}}var l=Rf(e,0,!1,null,null,!1,!1,"",Ng);return e._reactRootContainer=l,e[Wn]=l.current,na(e.nodeType===8?e.parentNode:e),Yr(function(){Xl(t,l,n,o)}),l}function eu(e,t,n,o,r){var i=n._reactRootContainer;if(i){var a=i;if(typeof r=="function"){var s=r;r=function(){var l=pl(a);s.call(l)}}Xl(t,a,e,r)}else a=HE(n,t,e,r,o);return pl(a)}Ly=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Pi(t.pendingLanes);n!==0&&(rf(t,n|1),_t(t,De()),!(he&6)&&(Bo=De()+500,zr()))}break;case 13:Yr(function(){var o=Bn(e,1);if(o!==null){var r=ft();rn(o,e,1,r)}}),Af(e,1)}};of=function(e){if(e.tag===13){var t=Bn(e,134217728);if(t!==null){var n=ft();rn(t,e,134217728,n)}Af(e,134217728)}};My=function(e){if(e.tag===13){var t=wr(e),n=Bn(e,t);if(n!==null){var o=ft();rn(n,e,t,o)}Af(e,t)}};Fy=function(){return xe};Vy=function(e,t){var n=xe;try{return xe=e,t()}finally{xe=n}};Wc=function(e,t,n){switch(t){case"input":if(Ac(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var r=Wl(o);if(!r)throw Error(R(90));by(o),Ac(o,r)}}}break;case"textarea":wy(e,n);break;case"select":t=n.value,t!=null&&Io(e,!!n.multiple,t,!1)}};jy=Pf;Iy=Yr;var GE={usingClientEntryPoint:!1,Events:[$a,_o,Wl,Ny,Ey,Pf]},$i={findFiberByHostInstance:Ur,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},KE={bundleType:$i.bundleType,version:$i.version,rendererPackageName:$i.rendererPackageName,rendererConfig:$i.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Yn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Py(e),e===null?null:e.stateNode},findFiberByHostInstance:$i.findFiberByHostInstance||BE,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ls=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ls.isDisabled&&ls.supportsFiber)try{Ml=ls.inject(KE),_n=ls}catch{}}Tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=GE;Tt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Lf(t))throw Error(R(200));return WE(e,t,null,n)};Tt.createRoot=function(e,t){if(!Lf(e))throw Error(R(299));var n=!1,o="",r=cx;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),t=Rf(e,1,!1,null,null,n,!1,o,r),e[Wn]=t.current,na(e.nodeType===8?e.parentNode:e),new Uf(t)};Tt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=Py(t),e=e===null?null:e.stateNode,e};Tt.flushSync=function(e){return Yr(e)};Tt.hydrate=function(e,t,n){if(!ql(t))throw Error(R(200));return eu(null,e,t,!0,n)};Tt.hydrateRoot=function(e,t,n){if(!Lf(e))throw Error(R(405));var o=n!=null&&n.hydratedSources||null,r=!1,i="",a=cx;if(n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=ux(t,null,e,1,n??null,r,!1,i,a),e[Wn]=t.current,na(e),o)for(e=0;e<o.length;e++)n=o[e],r=n._getVersion,r=r(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new Ql(t)};Tt.render=function(e,t,n){if(!ql(t))throw Error(R(200));return eu(null,e,t,!1,n)};Tt.unmountComponentAtNode=function(e){if(!ql(e))throw Error(R(40));return e._reactRootContainer?(Yr(function(){eu(null,null,e,!1,function(){e._reactRootContainer=null,e[Wn]=null})}),!0):!1};Tt.unstable_batchedUpdates=Pf;Tt.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!ql(n))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return eu(e,t,n,!1,o)};Tt.version="18.3.1-next-f1338f8080-20240426";function dx(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dx)}catch(e){console.error(e)}}dx(),dy.exports=Tt;var tu=dy.exports;const fx=Qv(tu);var Eg=tu;Cc.createRoot=Eg.createRoot,Cc.hydrateRoot=Eg.hydrateRoot;/**
41
- * react-router v7.7.1
42
- *
43
- * Copyright (c) Remix Software Inc.
44
- *
45
- * This source code is licensed under the MIT license found in the
46
- * LICENSE.md file in the root directory of this source tree.
47
- *
48
- * @license MIT
49
- */var jg="popstate";function JE(e={}){function t(o,r){let{pathname:i,search:a,hash:s}=o.location;return Sd("",{pathname:i,search:a,hash:s},r.state&&r.state.usr||null,r.state&&r.state.key||"default")}function n(o,r){return typeof r=="string"?r:da(r)}return XE(t,n,null,e)}function je(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function sn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function YE(){return Math.random().toString(36).substring(2,10)}function Ig(e,t){return{usr:e.state,key:e.key,idx:t}}function Sd(e,t,n=null,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ai(t):t,state:n,key:t&&t.key||o||YE()}}function da({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ai(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let o=e.indexOf("?");o>=0&&(t.search=e.substring(o),e=e.substring(0,o)),e&&(t.pathname=e)}return t}function XE(e,t,n,o={}){let{window:r=document.defaultView,v5Compat:i=!1}=o,a=r.history,s="POP",l=null,u=d();u==null&&(u=0,a.replaceState({...a.state,idx:u},""));function d(){return(a.state||{idx:null}).idx}function c(){s="POP";let w=d(),m=w==null?null:w-u;u=w,l&&l({action:s,location:b.location,delta:m})}function h(w,m){s="PUSH";let p=Sd(b.location,w,m);u=d()+1;let v=Ig(p,u),_=b.createHref(p);try{a.pushState(v,"",_)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;r.location.assign(_)}i&&l&&l({action:s,location:b.location,delta:1})}function y(w,m){s="REPLACE";let p=Sd(b.location,w,m);u=d();let v=Ig(p,u),_=b.createHref(p);a.replaceState(v,"",_),i&&l&&l({action:s,location:b.location,delta:0})}function x(w){return QE(w)}let b={get action(){return s},get location(){return e(r,a)},listen(w){if(l)throw new Error("A history only accepts one active listener");return r.addEventListener(jg,c),l=w,()=>{r.removeEventListener(jg,c),l=null}},createHref(w){return t(r,w)},createURL:x,encodeLocation(w){let m=x(w);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:y,go(w){return a.go(w)}};return b}function QE(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),je(n,"No window.location.(origin|href) available to create URL");let o=typeof e=="string"?e:da(e);return o=o.replace(/ $/,"%20"),!t&&o.startsWith("//")&&(o=n+o),new URL(o,n)}function mx(e,t,n="/"){return qE(e,t,n,!1)}function qE(e,t,n,o){let r=typeof t=="string"?ai(t):t,i=Gn(r.pathname||"/",n);if(i==null)return null;let a=px(e);ej(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let u=dj(i);s=uj(a[l],u,o)}return s}function px(e,t=[],n=[],o=""){let r=(i,a,s)=>{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(je(l.relativePath.startsWith(o),`Absolute route path "${l.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(o.length));let u=Vn([o,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(je(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),px(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:sj(u,i.index),routesMeta:d})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))r(i,a);else for(let l of hx(i.path))r(i,a,l)}),t}function hx(e){let t=e.split("/");if(t.length===0)return[];let[n,...o]=t,r=n.endsWith("?"),i=n.replace(/\?$/,"");if(o.length===0)return r?[i,""]:[i];let a=hx(o.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),r&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function ej(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:lj(t.routesMeta.map(o=>o.childrenIndex),n.routesMeta.map(o=>o.childrenIndex)))}var tj=/^:[\w-]+$/,nj=3,rj=2,oj=1,ij=10,aj=-2,Cg=e=>e==="*";function sj(e,t){let n=e.split("/"),o=n.length;return n.some(Cg)&&(o+=aj),t&&(o+=rj),n.filter(r=>!Cg(r)).reduce((r,i)=>r+(tj.test(i)?nj:i===""?oj:ij),o)}function lj(e,t){return e.length===t.length&&e.slice(0,-1).every((o,r)=>o===t[r])?e[e.length-1]-t[t.length-1]:0}function uj(e,t,n=!1){let{routesMeta:o}=e,r={},i="/",a=[];for(let s=0;s<o.length;++s){let l=o[s],u=s===o.length-1,d=i==="/"?t:t.slice(i.length)||"/",c=hl({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),h=l.route;if(!c&&u&&n&&!o[o.length-1].route.index&&(c=hl({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!c)return null;Object.assign(r,c.params),a.push({params:r,pathname:Vn([i,c.pathname]),pathnameBase:hj(Vn([i,c.pathnameBase])),route:h}),c.pathnameBase!=="/"&&(i=Vn([i,c.pathnameBase]))}return a}function hl(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,o]=cj(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let i=r[0],a=i.replace(/(.)\/+$/,"$1"),s=r.slice(1);return{params:o.reduce((u,{paramName:d,isOptional:c},h)=>{if(d==="*"){let x=s[h]||"";a=i.slice(0,i.length-x.length).replace(/(.)\/+$/,"$1")}const y=s[h];return c&&!y?u[d]=void 0:u[d]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function cj(e,t=!1,n=!0){sn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let o=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(o.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(o.push({paramName:"*"}),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":e!==""&&e!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),o]}function dj(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return sn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Gn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,o=e.charAt(n);return o&&o!=="/"?null:e.slice(n)||"/"}function fj(e,t="/"){let{pathname:n,search:o="",hash:r=""}=typeof e=="string"?ai(e):e;return{pathname:n?n.startsWith("/")?n:mj(n,t):t,search:gj(o),hash:vj(r)}}function mj(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function fc(e,t,n,o){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function pj(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Mf(e){let t=pj(e);return t.map((n,o)=>o===t.length-1?n.pathname:n.pathnameBase)}function Ff(e,t,n,o=!1){let r;typeof e=="string"?r=ai(e):(r={...e},je(!r.pathname||!r.pathname.includes("?"),fc("?","pathname","search",r)),je(!r.pathname||!r.pathname.includes("#"),fc("#","pathname","hash",r)),je(!r.search||!r.search.includes("#"),fc("#","search","hash",r)));let i=e===""||r.pathname==="",a=i?"/":r.pathname,s;if(a==null)s=n;else{let c=t.length-1;if(!o&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),c-=1;r.pathname=h.join("/")}s=c>=0?t[c]:"/"}let l=fj(r,s),u=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}var Vn=e=>e.join("/").replace(/\/\/+/g,"/"),hj=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),gj=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,vj=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function yj(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var gx=["POST","PUT","PATCH","DELETE"];new Set(gx);var bj=["GET",...gx];new Set(bj);var si=g.createContext(null);si.displayName="DataRouter";var nu=g.createContext(null);nu.displayName="DataRouterState";g.createContext(!1);var vx=g.createContext({isTransitioning:!1});vx.displayName="ViewTransition";var xj=g.createContext(new Map);xj.displayName="Fetchers";var wj=g.createContext(null);wj.displayName="Await";var dn=g.createContext(null);dn.displayName="Navigation";var Ea=g.createContext(null);Ea.displayName="Location";var En=g.createContext({outlet:null,matches:[],isDataRoute:!1});En.displayName="Route";var Vf=g.createContext(null);Vf.displayName="RouteError";function _j(e,{relative:t}={}){je(li(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:o}=g.useContext(dn),{hash:r,pathname:i,search:a}=ja(e,{relative:t}),s=i;return n!=="/"&&(s=i==="/"?n:Vn([n,i])),o.createHref({pathname:s,search:a,hash:r})}function li(){return g.useContext(Ea)!=null}function Xn(){return je(li(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Ea).location}var yx="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function bx(e){g.useContext(dn).static||g.useLayoutEffect(e)}function xx(){let{isDataRoute:e}=g.useContext(En);return e?Dj():Sj()}function Sj(){je(li(),"useNavigate() may be used only in the context of a <Router> component.");let e=g.useContext(si),{basename:t,navigator:n}=g.useContext(dn),{matches:o}=g.useContext(En),{pathname:r}=Xn(),i=JSON.stringify(Mf(o)),a=g.useRef(!1);return bx(()=>{a.current=!0}),g.useCallback((l,u={})=>{if(sn(a.current,yx),!a.current)return;if(typeof l=="number"){n.go(l);return}let d=Ff(l,JSON.parse(i),r,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Vn([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,i,r,e])}g.createContext(null);function ja(e,{relative:t}={}){let{matches:n}=g.useContext(En),{pathname:o}=Xn(),r=JSON.stringify(Mf(n));return g.useMemo(()=>Ff(e,JSON.parse(r),o,t==="path"),[e,r,o,t])}function kj(e,t){return wx(e,t)}function wx(e,t,n,o){var m;je(li(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=g.useContext(dn),{matches:i}=g.useContext(En),a=i[i.length-1],s=a?a.params:{},l=a?a.pathname:"/",u=a?a.pathnameBase:"/",d=a&&a.route;{let p=d&&d.path||"";_x(l,!d||p.endsWith("*")||p.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${p}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
50
-
51
- Please change the parent <Route path="${p}"> to <Route path="${p==="/"?"*":`${p}/*`}">.`)}let c=Xn(),h;if(t){let p=typeof t=="string"?ai(t):t;je(u==="/"||((m=p.pathname)==null?void 0:m.startsWith(u)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${p.pathname}" was given in the \`location\` prop.`),h=p}else h=c;let y=h.pathname||"/",x=y;if(u!=="/"){let p=u.replace(/^\//,"").split("/");x="/"+y.replace(/^\//,"").split("/").slice(p.length).join("/")}let b=mx(e,{pathname:x});sn(d||b!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),sn(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=Ij(b&&b.map(p=>Object.assign({},p,{params:Object.assign({},s,p.params),pathname:Vn([u,r.encodeLocation?r.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?u:Vn([u,r.encodeLocation?r.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),i,n,o);return t&&w?g.createElement(Ea.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...h},navigationType:"POP"}},w):w}function $j(){let e=Tj(),t=yj(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:o},i={padding:"2px 4px",backgroundColor:o},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:i},"ErrorBoundary")," or"," ",g.createElement("code",{style:i},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:r},n):null,a)}var Nj=g.createElement($j,null),Ej=class extends g.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?g.createElement(En.Provider,{value:this.props.routeContext},g.createElement(Vf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function jj({routeContext:e,match:t,children:n}){let o=g.useContext(si);return o&&o.static&&o.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=t.route.id),g.createElement(En.Provider,{value:e},n)}function Ij(e,t=[],n=null,o=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let r=e,i=n==null?void 0:n.errors;if(i!=null){let l=r.findIndex(u=>u.route.id&&(i==null?void 0:i[u.route.id])!==void 0);je(l>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),r=r.slice(0,Math.min(r.length,l+1))}let a=!1,s=-1;if(n)for(let l=0;l<r.length;l++){let u=r[l];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(s=l),u.route.id){let{loaderData:d,errors:c}=n,h=u.route.loader&&!d.hasOwnProperty(u.route.id)&&(!c||c[u.route.id]===void 0);if(u.route.lazy||h){a=!0,s>=0?r=r.slice(0,s+1):r=[r[0]];break}}}return r.reduceRight((l,u,d)=>{let c,h=!1,y=null,x=null;n&&(c=i&&u.route.id?i[u.route.id]:void 0,y=u.route.errorElement||Nj,a&&(s<0&&d===0?(_x("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,x=null):s===d&&(h=!0,x=u.route.hydrateFallbackElement||null)));let b=t.concat(r.slice(0,d+1)),w=()=>{let m;return c?m=y:h?m=x:u.route.Component?m=g.createElement(u.route.Component,null):u.route.element?m=u.route.element:m=l,g.createElement(jj,{match:u,routeContext:{outlet:l,matches:b,isDataRoute:n!=null},children:m})};return n&&(u.route.ErrorBoundary||u.route.errorElement||d===0)?g.createElement(Ej,{location:n.location,revalidation:n.revalidation,component:y,error:c,children:w(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):w()},null)}function Zf(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Cj(e){let t=g.useContext(si);return je(t,Zf(e)),t}function zj(e){let t=g.useContext(nu);return je(t,Zf(e)),t}function Pj(e){let t=g.useContext(En);return je(t,Zf(e)),t}function Wf(e){let t=Pj(e),n=t.matches[t.matches.length-1];return je(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Oj(){return Wf("useRouteId")}function Tj(){var o;let e=g.useContext(Vf),t=zj("useRouteError"),n=Wf("useRouteError");return e!==void 0?e:(o=t.errors)==null?void 0:o[n]}function Dj(){let{router:e}=Cj("useNavigate"),t=Wf("useNavigate"),n=g.useRef(!1);return bx(()=>{n.current=!0}),g.useCallback(async(r,i={})=>{sn(n.current,yx),n.current&&(typeof r=="number"?e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var zg={};function _x(e,t,n){!t&&!zg[e]&&(zg[e]=!0,sn(!1,n))}g.memo(Rj);function Rj({routes:e,future:t,state:n}){return wx(e,void 0,n,t)}function Aj({to:e,replace:t,state:n,relative:o}){je(li(),"<Navigate> may be used only in the context of a <Router> component.");let{static:r}=g.useContext(dn);sn(!r,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=g.useContext(En),{pathname:a}=Xn(),s=xx(),l=Ff(e,Mf(i),a,o==="path"),u=JSON.stringify(l);return g.useEffect(()=>{s(JSON.parse(u),{replace:t,state:n,relative:o})},[s,u,o,t,n]),null}function Ts(e){je(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Uj({basename:e="/",children:t=null,location:n,navigationType:o="POP",navigator:r,static:i=!1}){je(!li(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),s=g.useMemo(()=>({basename:a,navigator:r,static:i,future:{}}),[a,r,i]);typeof n=="string"&&(n=ai(n));let{pathname:l="/",search:u="",hash:d="",state:c=null,key:h="default"}=n,y=g.useMemo(()=>{let x=Gn(l,a);return x==null?null:{location:{pathname:x,search:u,hash:d,state:c,key:h},navigationType:o}},[a,l,u,d,c,h,o]);return sn(y!=null,`<Router basename="${a}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:g.createElement(dn.Provider,{value:s},g.createElement(Ea.Provider,{children:t,value:y}))}function Lj({children:e,location:t}){return kj(kd(e),t)}function kd(e,t=[]){let n=[];return g.Children.forEach(e,(o,r)=>{if(!g.isValidElement(o))return;let i=[...t,r];if(o.type===g.Fragment){n.push.apply(n,kd(o.props.children,i));return}je(o.type===Ts,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),je(!o.props.index||!o.props.children,"An index route cannot have child routes.");let a={id:o.props.id||i.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(a.children=kd(o.props.children,i)),n.push(a)}),n}var Ds="get",Rs="application/x-www-form-urlencoded";function ru(e){return e!=null&&typeof e.tagName=="string"}function Mj(e){return ru(e)&&e.tagName.toLowerCase()==="button"}function Fj(e){return ru(e)&&e.tagName.toLowerCase()==="form"}function Vj(e){return ru(e)&&e.tagName.toLowerCase()==="input"}function Zj(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Wj(e,t){return e.button===0&&(!t||t==="_self")&&!Zj(e)}var us=null;function Bj(){if(us===null)try{new FormData(document.createElement("form"),0),us=!1}catch{us=!0}return us}var Hj=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function mc(e){return e!=null&&!Hj.has(e)?(sn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Rs}"`),null):e}function Gj(e,t){let n,o,r,i,a;if(Fj(e)){let s=e.getAttribute("action");o=s?Gn(s,t):null,n=e.getAttribute("method")||Ds,r=mc(e.getAttribute("enctype"))||Rs,i=new FormData(e)}else if(Mj(e)||Vj(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||s.getAttribute("action");if(o=l?Gn(l,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||Ds,r=mc(e.getAttribute("formenctype"))||mc(s.getAttribute("enctype"))||Rs,i=new FormData(s,e),!Bj()){let{name:u,type:d,value:c}=e;if(d==="image"){let h=u?`${u}.`:"";i.append(`${h}x`,"0"),i.append(`${h}y`,"0")}else u&&i.append(u,c)}}else{if(ru(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ds,o=null,r=Rs,a=e}return i&&r==="text/plain"&&(a=i,i=void 0),{action:o,method:n.toLowerCase(),encType:r,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Bf(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Kj(e,t,n){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return o.pathname==="/"?o.pathname=`_root.${n}`:t&&Gn(o.pathname,t)==="/"?o.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${n}`,o}async function Jj(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Yj(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Xj(e,t,n){let o=await Promise.all(e.map(async r=>{let i=t.routes[r.route.id];if(i){let a=await Jj(i,n);return a.links?a.links():[]}return[]}));return tI(o.flat(1).filter(Yj).filter(r=>r.rel==="stylesheet"||r.rel==="preload").map(r=>r.rel==="stylesheet"?{...r,rel:"prefetch",as:"style"}:{...r,rel:"prefetch"}))}function Pg(e,t,n,o,r,i){let a=(l,u)=>n[u]?l.route.id!==n[u].route.id:!0,s=(l,u)=>{var d;return n[u].pathname!==l.pathname||((d=n[u].route.path)==null?void 0:d.endsWith("*"))&&n[u].params["*"]!==l.params["*"]};return i==="assets"?t.filter((l,u)=>a(l,u)||s(l,u)):i==="data"?t.filter((l,u)=>{var c;let d=o.routes[l.route.id];if(!d||!d.hasLoader)return!1;if(a(l,u)||s(l,u))return!0;if(l.route.shouldRevalidate){let h=l.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:((c=n[0])==null?void 0:c.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function Qj(e,t,{includeHydrateFallback:n}={}){return qj(e.map(o=>{let r=t.routes[o.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function qj(e){return[...new Set(e)]}function eI(e){let t={},n=Object.keys(e).sort();for(let o of n)t[o]=e[o];return t}function tI(e,t){let n=new Set;return new Set(t),e.reduce((o,r)=>{let i=JSON.stringify(eI(r));return n.has(i)||(n.add(i),o.push({key:i,link:r})),o},[])}function Sx(){let e=g.useContext(si);return Bf(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function nI(){let e=g.useContext(nu);return Bf(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Hf=g.createContext(void 0);Hf.displayName="FrameworkContext";function kx(){let e=g.useContext(Hf);return Bf(e,"You must render this element inside a <HydratedRouter> element"),e}function rI(e,t){let n=g.useContext(Hf),[o,r]=g.useState(!1),[i,a]=g.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:c}=t,h=g.useRef(null);g.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let b=m=>{m.forEach(p=>{a(p.isIntersecting)})},w=new IntersectionObserver(b,{threshold:.5});return h.current&&w.observe(h.current),()=>{w.disconnect()}}},[e]),g.useEffect(()=>{if(o){let b=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(b)}}},[o]);let y=()=>{r(!0)},x=()=>{r(!1),a(!1)};return n?e!=="intent"?[i,h,{}]:[i,h,{onFocus:Ni(s,y),onBlur:Ni(l,x),onMouseEnter:Ni(u,y),onMouseLeave:Ni(d,x),onTouchStart:Ni(c,y)}]:[!1,h,{}]}function Ni(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function oI({page:e,...t}){let{router:n}=Sx(),o=g.useMemo(()=>mx(n.routes,e,n.basename),[n.routes,e,n.basename]);return o?g.createElement(aI,{page:e,matches:o,...t}):null}function iI(e){let{manifest:t,routeModules:n}=kx(),[o,r]=g.useState([]);return g.useEffect(()=>{let i=!1;return Xj(e,t,n).then(a=>{i||r(a)}),()=>{i=!0}},[e,t,n]),o}function aI({page:e,matches:t,...n}){let o=Xn(),{manifest:r,routeModules:i}=kx(),{basename:a}=Sx(),{loaderData:s,matches:l}=nI(),u=g.useMemo(()=>Pg(e,t,l,r,o,"data"),[e,t,l,r,o]),d=g.useMemo(()=>Pg(e,t,l,r,o,"assets"),[e,t,l,r,o]),c=g.useMemo(()=>{if(e===o.pathname+o.search+o.hash)return[];let x=new Set,b=!1;if(t.forEach(m=>{var v;let p=r.routes[m.route.id];!p||!p.hasLoader||(!u.some(_=>_.route.id===m.route.id)&&m.route.id in s&&((v=i[m.route.id])!=null&&v.shouldRevalidate)||p.hasClientLoader?b=!0:x.add(m.route.id))}),x.size===0)return[];let w=Kj(e,a,"data");return b&&x.size>0&&w.searchParams.set("_routes",t.filter(m=>x.has(m.route.id)).map(m=>m.route.id).join(",")),[w.pathname+w.search]},[a,s,o,r,u,t,e,i]),h=g.useMemo(()=>Qj(d,r),[d,r]),y=iI(d);return g.createElement(g.Fragment,null,c.map(x=>g.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...n})),h.map(x=>g.createElement("link",{key:x,rel:"modulepreload",href:x,...n})),y.map(({key:x,link:b})=>g.createElement("link",{key:x,...b})))}function sI(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var $x=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{$x&&(window.__reactRouterVersion="7.7.1")}catch{}function lI({basename:e,children:t,window:n}){let o=g.useRef();o.current==null&&(o.current=JE({window:n,v5Compat:!0}));let r=o.current,[i,a]=g.useState({action:r.action,location:r.location}),s=g.useCallback(l=>{g.startTransition(()=>a(l))},[a]);return g.useLayoutEffect(()=>r.listen(s),[r,s]),g.createElement(Uj,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:r})}var Nx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ou=g.forwardRef(function({onClick:t,discover:n="render",prefetch:o="none",relative:r,reloadDocument:i,replace:a,state:s,target:l,to:u,preventScrollReset:d,viewTransition:c,...h},y){let{basename:x}=g.useContext(dn),b=typeof u=="string"&&Nx.test(u),w,m=!1;if(typeof u=="string"&&b&&(w=u,$x))try{let D=new URL(window.location.href),O=u.startsWith("//")?new URL(D.protocol+u):new URL(u),G=Gn(O.pathname,x);O.origin===D.origin&&G!=null?u=G+O.search+O.hash:m=!0}catch{sn(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let p=_j(u,{relative:r}),[v,_,S]=rI(o,h),$=fI(u,{replace:a,state:s,target:l,preventScrollReset:d,relative:r,viewTransition:c});function N(D){t&&t(D),D.defaultPrevented||$(D)}let I=g.createElement("a",{...h,...S,href:w||p,onClick:m||i?t:N,ref:sI(y,_),target:l,"data-discover":!b&&n==="render"?"true":void 0});return v&&!b?g.createElement(g.Fragment,null,I,g.createElement(oI,{page:p})):I});ou.displayName="Link";var uI=g.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:o="",end:r=!1,style:i,to:a,viewTransition:s,children:l,...u},d){let c=ja(a,{relative:u.relative}),h=Xn(),y=g.useContext(nu),{navigator:x,basename:b}=g.useContext(dn),w=y!=null&&vI(c)&&s===!0,m=x.encodeLocation?x.encodeLocation(c).pathname:c.pathname,p=h.pathname,v=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(p=p.toLowerCase(),v=v?v.toLowerCase():null,m=m.toLowerCase()),v&&b&&(v=Gn(v,b)||v);const _=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let S=p===m||!r&&p.startsWith(m)&&p.charAt(_)==="/",$=v!=null&&(v===m||!r&&v.startsWith(m)&&v.charAt(m.length)==="/"),N={isActive:S,isPending:$,isTransitioning:w},I=S?t:void 0,D;typeof o=="function"?D=o(N):D=[o,S?"active":null,$?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let O=typeof i=="function"?i(N):i;return g.createElement(ou,{...u,"aria-current":I,className:D,ref:d,style:O,to:a,viewTransition:s},typeof l=="function"?l(N):l)});uI.displayName="NavLink";var cI=g.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:o,replace:r,state:i,method:a=Ds,action:s,onSubmit:l,relative:u,preventScrollReset:d,viewTransition:c,...h},y)=>{let x=hI(),b=gI(s,{relative:u}),w=a.toLowerCase()==="get"?"get":"post",m=typeof s=="string"&&Nx.test(s),p=v=>{if(l&&l(v),v.defaultPrevented)return;v.preventDefault();let _=v.nativeEvent.submitter,S=(_==null?void 0:_.getAttribute("formmethod"))||a;x(_||v.currentTarget,{fetcherKey:t,method:S,navigate:n,replace:r,state:i,relative:u,preventScrollReset:d,viewTransition:c})};return g.createElement("form",{ref:y,method:w,action:b,onSubmit:o?l:p,...h,"data-discover":!m&&e==="render"?"true":void 0})});cI.displayName="Form";function dI(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ex(e){let t=g.useContext(si);return je(t,dI(e)),t}function fI(e,{target:t,replace:n,state:o,preventScrollReset:r,relative:i,viewTransition:a}={}){let s=xx(),l=Xn(),u=ja(e,{relative:i});return g.useCallback(d=>{if(Wj(d,t)){d.preventDefault();let c=n!==void 0?n:da(l)===da(u);s(e,{replace:c,state:o,preventScrollReset:r,relative:i,viewTransition:a})}},[l,s,u,n,o,t,e,r,i,a])}var mI=0,pI=()=>`__${String(++mI)}__`;function hI(){let{router:e}=Ex("useSubmit"),{basename:t}=g.useContext(dn),n=Oj();return g.useCallback(async(o,r={})=>{let{action:i,method:a,encType:s,formData:l,body:u}=Gj(o,t);if(r.navigate===!1){let d=r.fetcherKey||pI();await e.fetch(d,n,r.action||i,{preventScrollReset:r.preventScrollReset,formData:l,body:u,formMethod:r.method||a,formEncType:r.encType||s,flushSync:r.flushSync})}else await e.navigate(r.action||i,{preventScrollReset:r.preventScrollReset,formData:l,body:u,formMethod:r.method||a,formEncType:r.encType||s,replace:r.replace,state:r.state,fromRouteId:n,flushSync:r.flushSync,viewTransition:r.viewTransition})},[e,t,n])}function gI(e,{relative:t}={}){let{basename:n}=g.useContext(dn),o=g.useContext(En);je(o,"useFormAction must be used inside a RouteContext");let[r]=o.matches.slice(-1),i={...ja(e||".",{relative:t})},a=Xn();if(e==null){i.search=a.search;let s=new URLSearchParams(i.search),l=s.getAll("index");if(l.some(d=>d==="")){s.delete("index"),l.filter(c=>c).forEach(c=>s.append("index",c));let d=s.toString();i.search=d?`?${d}`:""}}return(!e||e===".")&&r.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:Vn([n,i.pathname])),da(i)}function vI(e,{relative:t}={}){let n=g.useContext(vx);je(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=Ex("useViewTransitionState"),r=ja(e,{relative:t});if(!n.isTransitioning)return!1;let i=Gn(n.currentLocation.pathname,o)||n.currentLocation.pathname,a=Gn(n.nextLocation.pathname,o)||n.nextLocation.pathname;return hl(r.pathname,a)!=null||hl(r.pathname,i)!=null}var yI=(e,t,n,o,r,i,a,s)=>{let l=document.documentElement,u=["light","dark"];function d(y){(Array.isArray(e)?e:[e]).forEach(x=>{let b=x==="class",w=b&&i?r.map(m=>i[m]||m):r;b?(l.classList.remove(...w),l.classList.add(i&&i[y]?i[y]:y)):l.setAttribute(x,y)}),c(y)}function c(y){s&&u.includes(y)&&(l.style.colorScheme=y)}function h(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(o)d(o);else try{let y=localStorage.getItem(t)||n,x=a&&y==="system"?h():y;d(x)}catch{}},bI=g.createContext(void 0),xI={setTheme:e=>{},themes:[]},wI=()=>{var e;return(e=g.useContext(bI))!=null?e:xI};g.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:o,enableColorScheme:r,defaultTheme:i,value:a,themes:s,nonce:l,scriptProps:u})=>{let d=JSON.stringify([n,t,i,e,s,a,o,r]).slice(1,-1);return g.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${yI.toString()})(${d})`}})});function _I(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const SI=e=>{switch(e){case"success":return NI;case"info":return jI;case"warning":return EI;case"error":return II;default:return null}},kI=Array(12).fill(0),$I=({visible:e,className:t})=>P.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},P.createElement("div",{className:"sonner-spinner"},kI.map((n,o)=>P.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),NI=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),EI=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},P.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),jI=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),II=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),CI=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},P.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),P.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),zI=()=>{const[e,t]=P.useState(document.hidden);return P.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let $d=1;class PI{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:o,...r}=t,i=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:$d++,a=this.toasts.find(l=>l.id===i),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),a?this.toasts=this.toasts.map(l=>l.id===i?(this.publish({...l,...t,id:i,title:o}),{...l,...t,id:i,dismissible:s,title:o}):l):this.addToast({title:o,...r,dismissible:s,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(o=>o({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let o;n.loading!==void 0&&(o=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const r=Promise.resolve(t instanceof Function?t():t);let i=o!==void 0,a;const s=r.then(async u=>{if(a=["resolve",u],P.isValidElement(u))i=!1,this.create({id:o,type:"default",message:u});else if(TI(u)&&!u.ok){i=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,h=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,x=typeof c=="object"&&!P.isValidElement(c)?c:{message:c};this.create({id:o,type:"error",description:h,...x})}else if(u instanceof Error){i=!1;const c=typeof n.error=="function"?await n.error(u):n.error,h=typeof n.description=="function"?await n.description(u):n.description,x=typeof c=="object"&&!P.isValidElement(c)?c:{message:c};this.create({id:o,type:"error",description:h,...x})}else if(n.success!==void 0){i=!1;const c=typeof n.success=="function"?await n.success(u):n.success,h=typeof n.description=="function"?await n.description(u):n.description,x=typeof c=="object"&&!P.isValidElement(c)?c:{message:c};this.create({id:o,type:"success",description:h,...x})}}).catch(async u=>{if(a=["reject",u],n.error!==void 0){i=!1;const d=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,y=typeof d=="object"&&!P.isValidElement(d)?d:{message:d};this.create({id:o,type:"error",description:c,...y})}}).finally(()=>{i&&(this.dismiss(o),o=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((u,d)=>s.then(()=>a[0]==="reject"?d(a[1]):u(a[1])).catch(d));return typeof o!="string"&&typeof o!="number"?{unwrap:l}:Object.assign(o,{unwrap:l})},this.custom=(t,n)=>{const o=(n==null?void 0:n.id)||$d++;return this.create({jsx:t(o),id:o,...n}),o},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const vt=new PI,OI=(e,t)=>{const n=(t==null?void 0:t.id)||$d++;return vt.addToast({title:e,...t,id:n}),n},TI=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",DI=OI,RI=()=>vt.toasts,AI=()=>vt.getActiveToasts(),pe=Object.assign(DI,{success:vt.success,info:vt.info,warning:vt.warning,error:vt.error,custom:vt.custom,message:vt.message,promise:vt.promise,dismiss:vt.dismiss,loading:vt.loading},{getHistory:RI,getToasts:AI});_I("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function cs(e){return e.label!==void 0}const UI=3,LI="24px",MI="16px",Og=4e3,FI=356,VI=14,ZI=45,WI=200;function gn(...e){return e.filter(Boolean).join(" ")}function BI(e){const[t,n]=e.split("-"),o=[];return t&&o.push(t),n&&o.push(n),o}const HI=e=>{var t,n,o,r,i,a,s,l,u;const{invert:d,toast:c,unstyled:h,interacting:y,setHeights:x,visibleToasts:b,heights:w,index:m,toasts:p,expanded:v,removeToast:_,defaultRichColors:S,closeButton:$,style:N,cancelButtonStyle:I,actionButtonStyle:D,className:O="",descriptionClassName:G="",duration:U,position:B,gap:ee,expandByDefault:re,classNames:M,icons:te,closeButtonAriaLabel:E="Close toast"}=e,[F,Y]=P.useState(null),[Q,oe]=P.useState(null),[ne,ce]=P.useState(!1),[Oe,de]=P.useState(!1),[me,lt]=P.useState(!1),[Ke,Je]=P.useState(!1),[pn,St]=P.useState(!1),[Cn,zn]=P.useState(0),[so,lo]=P.useState(0),Pn=P.useRef(c.duration||U||Og),pi=P.useRef(null),Ye=P.useRef(null),k=m===0,C=m+1<=b,z=c.type,Z=c.dismissible!==!1,V=c.className||"",A=c.descriptionClassName||"",q=P.useMemo(()=>w.findIndex(se=>se.toastId===c.id)||0,[w,c.id]),ve=P.useMemo(()=>{var se;return(se=c.closeButton)!=null?se:$},[c.closeButton,$]),ye=P.useMemo(()=>c.duration||U||Og,[c.duration,U]),tt=P.useRef(0),Bt=P.useRef(0),Ht=P.useRef(0),qn=P.useRef(null),[hi,gi]=B.split("-"),Za=P.useMemo(()=>w.reduce((se,Be,nt)=>nt>=q?se:se+Be.height,0),[w,q]),vi=zI(),Lu=c.invert||d,uo=z==="loading";Bt.current=P.useMemo(()=>q*ee+Za,[q,Za]),P.useEffect(()=>{Pn.current=ye},[ye]),P.useEffect(()=>{ce(!0)},[]),P.useEffect(()=>{const se=Ye.current;if(se){const Be=se.getBoundingClientRect().height;return lo(Be),x(nt=>[{toastId:c.id,height:Be,position:c.position},...nt]),()=>x(nt=>nt.filter(kt=>kt.toastId!==c.id))}},[x,c.id]),P.useLayoutEffect(()=>{if(!ne)return;const se=Ye.current,Be=se.style.height;se.style.height="auto";const nt=se.getBoundingClientRect().height;se.style.height=Be,lo(nt),x(kt=>kt.find(Xe=>Xe.toastId===c.id)?kt.map(Xe=>Xe.toastId===c.id?{...Xe,height:nt}:Xe):[{toastId:c.id,height:nt,position:c.position},...kt])},[ne,c.title,c.description,x,c.id,c.jsx,c.action,c.cancel]);const er=P.useCallback(()=>{de(!0),zn(Bt.current),x(se=>se.filter(Be=>Be.toastId!==c.id)),setTimeout(()=>{_(c)},WI)},[c,_,x,Bt]);P.useEffect(()=>{if(c.promise&&z==="loading"||c.duration===1/0||c.type==="loading")return;let se;return v||y||vi?(()=>{if(Ht.current<tt.current){const kt=new Date().getTime()-tt.current;Pn.current=Pn.current-kt}Ht.current=new Date().getTime()})():(()=>{Pn.current!==1/0&&(tt.current=new Date().getTime(),se=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),er()},Pn.current))})(),()=>clearTimeout(se)},[v,y,c,z,vi,er]),P.useEffect(()=>{c.delete&&(er(),c.onDismiss==null||c.onDismiss.call(c,c))},[er,c.delete]);function w1(){var se;if(te!=null&&te.loading){var Be;return P.createElement("div",{className:gn(M==null?void 0:M.loader,c==null||(Be=c.classNames)==null?void 0:Be.loader,"sonner-loader"),"data-visible":z==="loading"},te.loading)}return P.createElement($I,{className:gn(M==null?void 0:M.loader,c==null||(se=c.classNames)==null?void 0:se.loader),visible:z==="loading"})}const _1=c.icon||(te==null?void 0:te[z])||SI(z);var gh,vh;return P.createElement("li",{tabIndex:0,ref:Ye,className:gn(O,V,M==null?void 0:M.toast,c==null||(t=c.classNames)==null?void 0:t.toast,M==null?void 0:M.default,M==null?void 0:M[z],c==null||(n=c.classNames)==null?void 0:n[z]),"data-sonner-toast":"","data-rich-colors":(gh=c.richColors)!=null?gh:S,"data-styled":!(c.jsx||c.unstyled||h),"data-mounted":ne,"data-promise":!!c.promise,"data-swiped":pn,"data-removed":Oe,"data-visible":C,"data-y-position":hi,"data-x-position":gi,"data-index":m,"data-front":k,"data-swiping":me,"data-dismissible":Z,"data-type":z,"data-invert":Lu,"data-swipe-out":Ke,"data-swipe-direction":Q,"data-expanded":!!(v||re&&ne),style:{"--index":m,"--toasts-before":m,"--z-index":p.length-m,"--offset":`${Oe?Cn:Bt.current}px`,"--initial-height":re?"auto":`${so}px`,...N,...c.style},onDragEnd:()=>{lt(!1),Y(null),qn.current=null},onPointerDown:se=>{uo||!Z||(pi.current=new Date,zn(Bt.current),se.target.setPointerCapture(se.pointerId),se.target.tagName!=="BUTTON"&&(lt(!0),qn.current={x:se.clientX,y:se.clientY}))},onPointerUp:()=>{var se,Be,nt;if(Ke||!Z)return;qn.current=null;const kt=Number(((se=Ye.current)==null?void 0:se.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Wa=Number(((Be=Ye.current)==null?void 0:Be.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Xe=new Date().getTime()-((nt=pi.current)==null?void 0:nt.getTime()),Ut=F==="x"?kt:Wa,Ba=Math.abs(Ut)/Xe;if(Math.abs(Ut)>=ZI||Ba>.11){zn(Bt.current),c.onDismiss==null||c.onDismiss.call(c,c),oe(F==="x"?kt>0?"right":"left":Wa>0?"down":"up"),er(),Je(!0);return}else{var Gt,Kt;(Gt=Ye.current)==null||Gt.style.setProperty("--swipe-amount-x","0px"),(Kt=Ye.current)==null||Kt.style.setProperty("--swipe-amount-y","0px")}St(!1),lt(!1),Y(null)},onPointerMove:se=>{var Be,nt,kt;if(!qn.current||!Z||((Be=window.getSelection())==null?void 0:Be.toString().length)>0)return;const Xe=se.clientY-qn.current.y,Ut=se.clientX-qn.current.x;var Ba;const Gt=(Ba=e.swipeDirections)!=null?Ba:BI(B);!F&&(Math.abs(Ut)>1||Math.abs(Xe)>1)&&Y(Math.abs(Ut)>Math.abs(Xe)?"x":"y");let Kt={x:0,y:0};const yh=Tr=>1/(1.5+Math.abs(Tr)/20);if(F==="y"){if(Gt.includes("top")||Gt.includes("bottom"))if(Gt.includes("top")&&Xe<0||Gt.includes("bottom")&&Xe>0)Kt.y=Xe;else{const Tr=Xe*yh(Xe);Kt.y=Math.abs(Tr)<Math.abs(Xe)?Tr:Xe}}else if(F==="x"&&(Gt.includes("left")||Gt.includes("right")))if(Gt.includes("left")&&Ut<0||Gt.includes("right")&&Ut>0)Kt.x=Ut;else{const Tr=Ut*yh(Ut);Kt.x=Math.abs(Tr)<Math.abs(Ut)?Tr:Ut}(Math.abs(Kt.x)>0||Math.abs(Kt.y)>0)&&St(!0),(nt=Ye.current)==null||nt.style.setProperty("--swipe-amount-x",`${Kt.x}px`),(kt=Ye.current)==null||kt.style.setProperty("--swipe-amount-y",`${Kt.y}px`)}},ve&&!c.jsx&&z!=="loading"?P.createElement("button",{"aria-label":E,"data-disabled":uo,"data-close-button":!0,onClick:uo||!Z?()=>{}:()=>{er(),c.onDismiss==null||c.onDismiss.call(c,c)},className:gn(M==null?void 0:M.closeButton,c==null||(o=c.classNames)==null?void 0:o.closeButton)},(vh=te==null?void 0:te.close)!=null?vh:CI):null,(z||c.icon||c.promise)&&c.icon!==null&&((te==null?void 0:te[z])!==null||c.icon)?P.createElement("div",{"data-icon":"",className:gn(M==null?void 0:M.icon,c==null||(r=c.classNames)==null?void 0:r.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||w1():null,c.type!=="loading"?_1:null):null,P.createElement("div",{"data-content":"",className:gn(M==null?void 0:M.content,c==null||(i=c.classNames)==null?void 0:i.content)},P.createElement("div",{"data-title":"",className:gn(M==null?void 0:M.title,c==null||(a=c.classNames)==null?void 0:a.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?P.createElement("div",{"data-description":"",className:gn(G,A,M==null?void 0:M.description,c==null||(s=c.classNames)==null?void 0:s.description)},typeof c.description=="function"?c.description():c.description):null),P.isValidElement(c.cancel)?c.cancel:c.cancel&&cs(c.cancel)?P.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||I,onClick:se=>{cs(c.cancel)&&Z&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,se),er())},className:gn(M==null?void 0:M.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,P.isValidElement(c.action)?c.action:c.action&&cs(c.action)?P.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||D,onClick:se=>{cs(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,se),!se.defaultPrevented&&er())},className:gn(M==null?void 0:M.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function Tg(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function GI(e,t){const n={};return[e,t].forEach((o,r)=>{const i=r===1,a=i?"--mobile-offset":"--offset",s=i?MI:LI;function l(u){["top","right","bottom","left"].forEach(d=>{n[`${a}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof o=="number"||typeof o=="string"?l(o):typeof o=="object"?["top","right","bottom","left"].forEach(u=>{o[u]===void 0?n[`${a}-${u}`]=s:n[`${a}-${u}`]=typeof o[u]=="number"?`${o[u]}px`:o[u]}):l(s)}),n}const KI=P.forwardRef(function(t,n){const{invert:o,position:r="bottom-right",hotkey:i=["altKey","KeyT"],expand:a,closeButton:s,className:l,offset:u,mobileOffset:d,theme:c="light",richColors:h,duration:y,style:x,visibleToasts:b=UI,toastOptions:w,dir:m=Tg(),gap:p=VI,icons:v,containerAriaLabel:_="Notifications"}=t,[S,$]=P.useState([]),N=P.useMemo(()=>Array.from(new Set([r].concat(S.filter(Q=>Q.position).map(Q=>Q.position)))),[S,r]),[I,D]=P.useState([]),[O,G]=P.useState(!1),[U,B]=P.useState(!1),[ee,re]=P.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),M=P.useRef(null),te=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=P.useRef(null),F=P.useRef(!1),Y=P.useCallback(Q=>{$(oe=>{var ne;return(ne=oe.find(ce=>ce.id===Q.id))!=null&&ne.delete||vt.dismiss(Q.id),oe.filter(({id:ce})=>ce!==Q.id)})},[]);return P.useEffect(()=>vt.subscribe(Q=>{if(Q.dismiss){requestAnimationFrame(()=>{$(oe=>oe.map(ne=>ne.id===Q.id?{...ne,delete:!0}:ne))});return}setTimeout(()=>{fx.flushSync(()=>{$(oe=>{const ne=oe.findIndex(ce=>ce.id===Q.id);return ne!==-1?[...oe.slice(0,ne),{...oe[ne],...Q},...oe.slice(ne+1)]:[Q,...oe]})})})}),[S]),P.useEffect(()=>{if(c!=="system"){re(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?re("dark"):re("light")),typeof window>"u")return;const Q=window.matchMedia("(prefers-color-scheme: dark)");try{Q.addEventListener("change",({matches:oe})=>{re(oe?"dark":"light")})}catch{Q.addListener(({matches:ne})=>{try{re(ne?"dark":"light")}catch(ce){console.error(ce)}})}},[c]),P.useEffect(()=>{S.length<=1&&G(!1)},[S]),P.useEffect(()=>{const Q=oe=>{var ne;if(i.every(de=>oe[de]||oe.code===de)){var Oe;G(!0),(Oe=M.current)==null||Oe.focus()}oe.code==="Escape"&&(document.activeElement===M.current||(ne=M.current)!=null&&ne.contains(document.activeElement))&&G(!1)};return document.addEventListener("keydown",Q),()=>document.removeEventListener("keydown",Q)},[i]),P.useEffect(()=>{if(M.current)return()=>{E.current&&(E.current.focus({preventScroll:!0}),E.current=null,F.current=!1)}},[M.current]),P.createElement("section",{ref:n,"aria-label":`${_} ${te}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},N.map((Q,oe)=>{var ne;const[ce,Oe]=Q.split("-");return S.length?P.createElement("ol",{key:Q,dir:m==="auto"?Tg():m,tabIndex:-1,ref:M,className:l,"data-sonner-toaster":!0,"data-sonner-theme":ee,"data-y-position":ce,"data-x-position":Oe,style:{"--front-toast-height":`${((ne=I[0])==null?void 0:ne.height)||0}px`,"--width":`${FI}px`,"--gap":`${p}px`,...x,...GI(u,d)},onBlur:de=>{F.current&&!de.currentTarget.contains(de.relatedTarget)&&(F.current=!1,E.current&&(E.current.focus({preventScroll:!0}),E.current=null))},onFocus:de=>{de.target instanceof HTMLElement&&de.target.dataset.dismissible==="false"||F.current||(F.current=!0,E.current=de.relatedTarget)},onMouseEnter:()=>G(!0),onMouseMove:()=>G(!0),onMouseLeave:()=>{U||G(!1)},onDragEnd:()=>G(!1),onPointerDown:de=>{de.target instanceof HTMLElement&&de.target.dataset.dismissible==="false"||B(!0)},onPointerUp:()=>B(!1)},S.filter(de=>!de.position&&oe===0||de.position===Q).map((de,me)=>{var lt,Ke;return P.createElement(HI,{key:de.id,icons:v,index:me,toast:de,defaultRichColors:h,duration:(lt=w==null?void 0:w.duration)!=null?lt:y,className:w==null?void 0:w.className,descriptionClassName:w==null?void 0:w.descriptionClassName,invert:o,visibleToasts:b,closeButton:(Ke=w==null?void 0:w.closeButton)!=null?Ke:s,interacting:U,position:Q,style:w==null?void 0:w.style,unstyled:w==null?void 0:w.unstyled,classNames:w==null?void 0:w.classNames,cancelButtonStyle:w==null?void 0:w.cancelButtonStyle,actionButtonStyle:w==null?void 0:w.actionButtonStyle,closeButtonAriaLabel:w==null?void 0:w.closeButtonAriaLabel,removeToast:Y,toasts:S.filter(Je=>Je.position==de.position),heights:I.filter(Je=>Je.position==de.position),setHeights:D,expandByDefault:a,gap:p,expanded:O,swipeDirections:t.swipeDirections})})):null}))}),JI=({...e})=>{const{theme:t="system"}=wI();return f.jsx(KI,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};/**
52
- * @license lucide-react v0.523.0 - ISC
53
- *
54
- * This source code is licensed under the ISC license.
55
- * See the LICENSE file in the root directory of this source tree.
56
- */const YI=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),XI=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase()),Dg=e=>{const t=XI(e);return t.charAt(0).toUpperCase()+t.slice(1)},jx=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim(),QI=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
57
- * @license lucide-react v0.523.0 - ISC
58
- *
59
- * This source code is licensed under the ISC license.
60
- * See the LICENSE file in the root directory of this source tree.
61
- */var qI={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"};/**
62
- * @license lucide-react v0.523.0 - ISC
63
- *
64
- * This source code is licensed under the ISC license.
65
- * See the LICENSE file in the root directory of this source tree.
66
- */const eC=g.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:r="",children:i,iconNode:a,...s},l)=>g.createElement("svg",{ref:l,...qI,width:t,height:t,stroke:e,strokeWidth:o?Number(n)*24/Number(t):n,className:jx("lucide",r),...!i&&!QI(s)&&{"aria-hidden":"true"},...s},[...a.map(([u,d])=>g.createElement(u,d)),...Array.isArray(i)?i:[i]]));/**
67
- * @license lucide-react v0.523.0 - ISC
68
- *
69
- * This source code is licensed under the ISC license.
70
- * See the LICENSE file in the root directory of this source tree.
71
- */const Rt=(e,t)=>{const n=g.forwardRef(({className:o,...r},i)=>g.createElement(eC,{ref:i,iconNode:t,className:jx(`lucide-${YI(Dg(e))}`,`lucide-${e}`,o),...r}));return n.displayName=Dg(e),n};/**
72
- * @license lucide-react v0.523.0 - ISC
73
- *
74
- * This source code is licensed under the ISC license.
75
- * See the LICENSE file in the root directory of this source tree.
76
- */const tC=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["line",{x1:"12",x2:"12",y1:"16",y2:"12",key:"1y1yb1"}],["line",{x1:"12",x2:"12.01",y1:"8",y2:"8",key:"110wyk"}]],nC=Rt("badge-info",tC);/**
77
- * @license lucide-react v0.523.0 - ISC
78
- *
79
- * This source code is licensed under the ISC license.
80
- * See the LICENSE file in the root directory of this source tree.
81
- */const rC=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]],Rg=Rt("coffee",rC);/**
82
- * @license lucide-react v0.523.0 - ISC
83
- *
84
- * This source code is licensed under the ISC license.
85
- * See the LICENSE file in the root directory of this source tree.
86
- */const oC=[["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"}]],iC=Rt("copy",oC);/**
87
- * @license lucide-react v0.523.0 - ISC
88
- *
89
- * This source code is licensed under the ISC license.
90
- * See the LICENSE file in the root directory of this source tree.
91
- */const aC=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],sC=Rt("github",aC);/**
92
- * @license lucide-react v0.523.0 - ISC
93
- *
94
- * This source code is licensed under the ISC license.
95
- * See the LICENSE file in the root directory of this source tree.
96
- */const lC=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],uC=Rt("layout-dashboard",lC);/**
97
- * @license lucide-react v0.523.0 - ISC
98
- *
99
- * This source code is licensed under the ISC license.
100
- * See the LICENSE file in the root directory of this source tree.
101
- */const cC=[["path",{d:"M5 12h14",key:"1ays0h"}]],dC=Rt("minus",cC);/**
102
- * @license lucide-react v0.523.0 - ISC
103
- *
104
- * This source code is licensed under the ISC license.
105
- * See the LICENSE file in the root directory of this source tree.
106
- */const fC=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],mC=Rt("panel-left",fC);/**
107
- * @license lucide-react v0.523.0 - ISC
108
- *
109
- * This source code is licensed under the ISC license.
110
- * See the LICENSE file in the root directory of this source tree.
111
- */const pC=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Gf=Rt("plus",pC);/**
112
- * @license lucide-react v0.523.0 - ISC
113
- *
114
- * This source code is licensed under the ISC license.
115
- * See the LICENSE file in the root directory of this source tree.
116
- */const hC=[["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"}]],gC=Rt("refresh-cw",hC);/**
117
- * @license lucide-react v0.523.0 - ISC
118
- *
119
- * This source code is licensed under the ISC license.
120
- * See the LICENSE file in the root directory of this source tree.
121
- */const vC=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],iu=Rt("settings",vC);/**
122
- * @license lucide-react v0.523.0 - ISC
123
- *
124
- * This source code is licensed under the ISC license.
125
- * See the LICENSE file in the root directory of this source tree.
126
- */const yC=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]],Ix=Rt("trash",yC);/**
127
- * @license lucide-react v0.523.0 - ISC
128
- *
129
- * This source code is licensed under the ISC license.
130
- * See the LICENSE file in the root directory of this source tree.
131
- */const bC=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]],Ag=Rt("wrench",bC);/**
132
- * @license lucide-react v0.523.0 - ISC
133
- *
134
- * This source code is licensed under the ISC license.
135
- * See the LICENSE file in the root directory of this source tree.
136
- */const xC=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Cx=Rt("x",xC);function Ug(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function zx(...e){return t=>{let n=!1;const o=e.map(r=>{const i=Ug(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():Ug(e[r],null)}}}}function At(...e){return g.useCallback(zx(...e),e)}function Kf(e){const t=wC(e),n=g.forwardRef((o,r)=>{const{children:i,...a}=o,s=g.Children.toArray(i),l=s.find(_C);if(l){const u=l.props.children,d=s.map(c=>c===l?g.Children.count(u)>1?g.Children.only(null):g.isValidElement(u)?u.props.children:null:c);return f.jsx(t,{...a,ref:r,children:g.isValidElement(u)?g.cloneElement(u,void 0,d):null})}return f.jsx(t,{...a,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}var ro=Kf("Slot");function wC(e){const t=g.forwardRef((n,o)=>{const{children:r,...i}=n;if(g.isValidElement(r)){const a=kC(r),s=SC(i,r.props);return r.type!==g.Fragment&&(s.ref=o?zx(o,a):a),g.cloneElement(r,s)}return g.Children.count(r)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Px=Symbol("radix.slottable");function Ox(e){const t=({children:n})=>f.jsx(f.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Px,t}function _C(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Px}function SC(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...s)=>{const l=i(...s);return r(...s),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function kC(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Tx(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Tx(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Dx(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Tx(e))&&(o&&(o+=" "),o+=t);return o}const Lg=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Mg=Dx,Ia=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return Mg(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(u=>{const d=n==null?void 0:n[u],c=i==null?void 0:i[u];if(d===null)return null;const h=Lg(d)||Lg(c);return r[u][h]}),s=n&&Object.entries(n).reduce((u,d)=>{let[c,h]=d;return h===void 0||(u[c]=h),u},{}),l=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,d)=>{let{class:c,className:h,...y}=d;return Object.entries(y).every(x=>{let[b,w]=x;return Array.isArray(w)?w.includes({...i,...s}[b]):{...i,...s}[b]===w})?[...u,c,h]:u},[]);return Mg(e,a,l,n==null?void 0:n.class,n==null?void 0:n.className)},Jf="-",$C=e=>{const t=EC(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:a=>{const s=a.split(Jf);return s[0]===""&&s.length!==1&&s.shift(),Rx(s,t)||NC(a)},getConflictingClassGroupIds:(a,s)=>{const l=n[a]||[];return s&&o[a]?[...l,...o[a]]:l}}},Rx=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),r=o?Rx(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;const i=e.join(Jf);return(a=t.validators.find(({validator:s})=>s(i)))==null?void 0:a.classGroupId},Fg=/^\[(.+)\]$/,NC=e=>{if(Fg.test(e)){const t=Fg.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},EC=e=>{const{theme:t,classGroups:n}=e,o={nextPart:new Map,validators:[]};for(const r in n)Nd(n[r],o,r,t);return o},Nd=(e,t,n,o)=>{e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:Vg(t,r);i.classGroupId=n;return}if(typeof r=="function"){if(jC(r)){Nd(r(o),t,n,o);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([i,a])=>{Nd(a,Vg(t,i),n,o)})})},Vg=(e,t)=>{let n=e;return t.split(Jf).forEach(o=>{n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n},jC=e=>e.isThemeGetter,IC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;const r=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,o=n,n=new Map)};return{get(i){let a=n.get(i);if(a!==void 0)return a;if((a=o.get(i))!==void 0)return r(i,a),a},set(i,a){n.has(i)?n.set(i,a):r(i,a)}}},Ed="!",jd=":",CC=jd.length,zC=e=>{const{prefix:t,experimentalParseClassName:n}=e;let o=r=>{const i=[];let a=0,s=0,l=0,u;for(let x=0;x<r.length;x++){let b=r[x];if(a===0&&s===0){if(b===jd){i.push(r.slice(l,x)),l=x+CC;continue}if(b==="/"){u=x;continue}}b==="["?a++:b==="]"?a--:b==="("?s++:b===")"&&s--}const d=i.length===0?r:r.substring(l),c=PC(d),h=c!==d,y=u&&u>l?u-l:void 0;return{modifiers:i,hasImportantModifier:h,baseClassName:c,maybePostfixModifierPosition:y}};if(t){const r=t+jd,i=o;o=a=>a.startsWith(r)?i(a.substring(r.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(n){const r=o;o=i=>n({className:i,parseClassName:r})}return o},PC=e=>e.endsWith(Ed)?e.substring(0,e.length-1):e.startsWith(Ed)?e.substring(1):e,OC=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const r=[];let i=[];return o.forEach(a=>{a[0]==="["||t[a]?(r.push(...i.sort(),a),i=[]):i.push(a)}),r.push(...i.sort()),r}},TC=e=>({cache:IC(e.cacheSize),parseClassName:zC(e),sortModifiers:OC(e),...$C(e)}),DC=/\s+/,RC=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:i}=t,a=[],s=e.trim().split(DC);let l="";for(let u=s.length-1;u>=0;u-=1){const d=s[u],{isExternal:c,modifiers:h,hasImportantModifier:y,baseClassName:x,maybePostfixModifierPosition:b}=n(d);if(c){l=d+(l.length>0?" "+l:l);continue}let w=!!b,m=o(w?x.substring(0,b):x);if(!m){if(!w){l=d+(l.length>0?" "+l:l);continue}if(m=o(x),!m){l=d+(l.length>0?" "+l:l);continue}w=!1}const p=i(h).join(":"),v=y?p+Ed:p,_=v+m;if(a.includes(_))continue;a.push(_);const S=r(m,w);for(let $=0;$<S.length;++$){const N=S[$];a.push(v+N)}l=d+(l.length>0?" "+l:l)}return l};function AC(){let e=0,t,n,o="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Ax(t))&&(o&&(o+=" "),o+=n);return o}const Ax=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=Ax(e[o]))&&(n&&(n+=" "),n+=t);return n};function UC(e,...t){let n,o,r,i=a;function a(l){const u=t.reduce((d,c)=>c(d),e());return n=TC(u),o=n.cache.get,r=n.cache.set,i=s,s(l)}function s(l){const u=o(l);if(u)return u;const d=RC(l,n);return r(l,d),d}return function(){return i(AC.apply(null,arguments))}}const Me=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Ux=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Lx=/^\((?:(\w[\w-]*):)?(.+)\)$/i,LC=/^\d+\/\d+$/,MC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,FC=/\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$/,VC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ZC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,WC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fo=e=>LC.test(e),le=e=>!!e&&!Number.isNaN(Number(e)),nr=e=>!!e&&Number.isInteger(Number(e)),pc=e=>e.endsWith("%")&&le(e.slice(0,-1)),On=e=>MC.test(e),BC=()=>!0,HC=e=>FC.test(e)&&!VC.test(e),Mx=()=>!1,GC=e=>ZC.test(e),KC=e=>WC.test(e),JC=e=>!K(e)&&!J(e),YC=e=>ui(e,Zx,Mx),K=e=>Ux.test(e),Dr=e=>ui(e,Wx,HC),hc=e=>ui(e,tz,le),Zg=e=>ui(e,Fx,Mx),XC=e=>ui(e,Vx,KC),ds=e=>ui(e,Bx,GC),J=e=>Lx.test(e),Ei=e=>ci(e,Wx),QC=e=>ci(e,nz),Wg=e=>ci(e,Fx),qC=e=>ci(e,Zx),ez=e=>ci(e,Vx),fs=e=>ci(e,Bx,!0),ui=(e,t,n)=>{const o=Ux.exec(e);return o?o[1]?t(o[1]):n(o[2]):!1},ci=(e,t,n=!1)=>{const o=Lx.exec(e);return o?o[1]?t(o[1]):n:!1},Fx=e=>e==="position"||e==="percentage",Vx=e=>e==="image"||e==="url",Zx=e=>e==="length"||e==="size"||e==="bg-size",Wx=e=>e==="length",tz=e=>e==="number",nz=e=>e==="family-name",Bx=e=>e==="shadow",rz=()=>{const e=Me("color"),t=Me("font"),n=Me("text"),o=Me("font-weight"),r=Me("tracking"),i=Me("leading"),a=Me("breakpoint"),s=Me("container"),l=Me("spacing"),u=Me("radius"),d=Me("shadow"),c=Me("inset-shadow"),h=Me("text-shadow"),y=Me("drop-shadow"),x=Me("blur"),b=Me("perspective"),w=Me("aspect"),m=Me("ease"),p=Me("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[..._(),J,K],$=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],I=()=>[J,K,l],D=()=>[fo,"full","auto",...I()],O=()=>[nr,"none","subgrid",J,K],G=()=>["auto",{span:["full",nr,J,K]},nr,J,K],U=()=>[nr,"auto",J,K],B=()=>["auto","min","max","fr",J,K],ee=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...I()],te=()=>[fo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],E=()=>[e,J,K],F=()=>[..._(),Wg,Zg,{position:[J,K]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",qC,YC,{size:[J,K]}],oe=()=>[pc,Ei,Dr],ne=()=>["","none","full",u,J,K],ce=()=>["",le,Ei,Dr],Oe=()=>["solid","dashed","dotted","double"],de=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>[le,pc,Wg,Zg],lt=()=>["","none",x,J,K],Ke=()=>["none",le,J,K],Je=()=>["none",le,J,K],pn=()=>[le,J,K],St=()=>[fo,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[On],breakpoint:[On],color:[BC],container:[On],"drop-shadow":[On],ease:["in","out","in-out"],font:[JC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[On],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[On],shadow:[On],spacing:["px",le],text:[On],"text-shadow":[On],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",fo,K,J,w]}],container:["container"],columns:[{columns:[le,K,J,s]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"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:S()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{start:D()}],end:[{end:D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[nr,"auto",J,K]}],basis:[{basis:[fo,"full","auto",s,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[le,fo,"auto","initial","none",K]}],grow:[{grow:["",le,J,K]}],shrink:[{shrink:["",le,J,K]}],order:[{order:[nr,"first","last","none",J,K]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...ee(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...ee()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":ee()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:te()}],w:[{w:[s,"screen",...te()]}],"min-w":[{"min-w":[s,"screen","none",...te()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...te()]}],h:[{h:["screen","lh",...te()]}],"min-h":[{"min-h":["screen","lh","none",...te()]}],"max-h":[{"max-h":["screen","lh",...te()]}],"font-size":[{text:["base",n,Ei,Dr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,J,hc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",pc,K]}],"font-family":[{font:[QC,K,t]}],"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:[r,J,K]}],"line-clamp":[{"line-clamp":[le,"none",J,hc]}],leading:[{leading:[i,...I()]}],"list-image":[{"list-image":["none",J,K]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",J,K]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[le,"from-font","auto",J,Dr]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[le,"auto",J,K]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J,K]}],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",J,K]}],"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:Y()}],"bg-size":[{bg:Q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},nr,J,K],radial:["",J,K],conic:[nr,J,K]},ez,XC]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:ne()}],"rounded-s":[{"rounded-s":ne()}],"rounded-e":[{"rounded-e":ne()}],"rounded-t":[{"rounded-t":ne()}],"rounded-r":[{"rounded-r":ne()}],"rounded-b":[{"rounded-b":ne()}],"rounded-l":[{"rounded-l":ne()}],"rounded-ss":[{"rounded-ss":ne()}],"rounded-se":[{"rounded-se":ne()}],"rounded-ee":[{"rounded-ee":ne()}],"rounded-es":[{"rounded-es":ne()}],"rounded-tl":[{"rounded-tl":ne()}],"rounded-tr":[{"rounded-tr":ne()}],"rounded-br":[{"rounded-br":ne()}],"rounded-bl":[{"rounded-bl":ne()}],"border-w":[{border:ce()}],"border-w-x":[{"border-x":ce()}],"border-w-y":[{"border-y":ce()}],"border-w-s":[{"border-s":ce()}],"border-w-e":[{"border-e":ce()}],"border-w-t":[{"border-t":ce()}],"border-w-r":[{"border-r":ce()}],"border-w-b":[{"border-b":ce()}],"border-w-l":[{"border-l":ce()}],"divide-x":[{"divide-x":ce()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ce()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Oe(),"hidden","none"]}],"divide-style":[{divide:[...Oe(),"hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:[...Oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[le,J,K]}],"outline-w":[{outline:["",le,Ei,Dr]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",d,fs,ds]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",c,fs,ds]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[le,Dr]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":ce()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",h,fs,ds]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[le,J,K]}],"mix-blend":[{"mix-blend":[...de(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":de()}],"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":[le]}],"mask-image-linear-from-pos":[{"mask-linear-from":me()}],"mask-image-linear-to-pos":[{"mask-linear-to":me()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":me()}],"mask-image-t-to-pos":[{"mask-t-to":me()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":me()}],"mask-image-r-to-pos":[{"mask-r-to":me()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":me()}],"mask-image-b-to-pos":[{"mask-b-to":me()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":me()}],"mask-image-l-to-pos":[{"mask-l-to":me()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":me()}],"mask-image-x-to-pos":[{"mask-x-to":me()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":me()}],"mask-image-y-to-pos":[{"mask-y-to":me()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[J,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":me()}],"mask-image-radial-to-pos":[{"mask-radial-to":me()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"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":_()}],"mask-image-conic-pos":[{"mask-conic":[le]}],"mask-image-conic-from-pos":[{"mask-conic-from":me()}],"mask-image-conic-to-pos":[{"mask-conic-to":me()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:Y()}],"mask-size":[{mask:Q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",J,K]}],filter:[{filter:["","none",J,K]}],blur:[{blur:lt()}],brightness:[{brightness:[le,J,K]}],contrast:[{contrast:[le,J,K]}],"drop-shadow":[{"drop-shadow":["","none",y,fs,ds]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",le,J,K]}],"hue-rotate":[{"hue-rotate":[le,J,K]}],invert:[{invert:["",le,J,K]}],saturate:[{saturate:[le,J,K]}],sepia:[{sepia:["",le,J,K]}],"backdrop-filter":[{"backdrop-filter":["","none",J,K]}],"backdrop-blur":[{"backdrop-blur":lt()}],"backdrop-brightness":[{"backdrop-brightness":[le,J,K]}],"backdrop-contrast":[{"backdrop-contrast":[le,J,K]}],"backdrop-grayscale":[{"backdrop-grayscale":["",le,J,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[le,J,K]}],"backdrop-invert":[{"backdrop-invert":["",le,J,K]}],"backdrop-opacity":[{"backdrop-opacity":[le,J,K]}],"backdrop-saturate":[{"backdrop-saturate":[le,J,K]}],"backdrop-sepia":[{"backdrop-sepia":["",le,J,K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",J,K]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[le,"initial",J,K]}],ease:[{ease:["linear","initial",m,J,K]}],delay:[{delay:[le,J,K]}],animate:[{animate:["none",p,J,K]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,J,K]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:Ke()}],"rotate-x":[{"rotate-x":Ke()}],"rotate-y":[{"rotate-y":Ke()}],"rotate-z":[{"rotate-z":Ke()}],scale:[{scale:Je()}],"scale-x":[{"scale-x":Je()}],"scale-y":[{"scale-y":Je()}],"scale-z":[{"scale-z":Je()}],"scale-3d":["scale-3d"],skew:[{skew:pn()}],"skew-x":[{"skew-x":pn()}],"skew-y":[{"skew-y":pn()}],transform:[{transform:[J,K,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:St()}],"translate-x":[{"translate-x":St()}],"translate-y":[{"translate-y":St()}],"translate-z":[{"translate-z":St()}],"translate-none":["translate-none"],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"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",J,K]}],"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":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",J,K]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[le,Ei,Dr,hc]}],stroke:[{stroke:["none",...E()]}],"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"]}},oz=UC(rz);function X(...e){return oz(Dx(e))}const Yf=Ia("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ne=g.forwardRef(({className:e,variant:t,size:n,asChild:o=!1,...r},i)=>{const a=o?ro:"button";return f.jsx(a,{className:X(Yf({variant:t,size:n,className:e})),ref:i,...r})});Ne.displayName="Button";const cr=g.forwardRef(({className:e,type:t,...n},o)=>f.jsx("input",{type:t,className:X("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:o,...n}));cr.displayName="Input";var iz=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],st=iz.reduce((e,t)=>{const n=Kf(`Primitive.${t}`),o=g.forwardRef((r,i)=>{const{asChild:a,...s}=r,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(l,{...s,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function az(e,t){e&&tu.flushSync(()=>e.dispatchEvent(t))}var sz="Separator",Bg="horizontal",lz=["horizontal","vertical"],Hx=g.forwardRef((e,t)=>{const{decorative:n,orientation:o=Bg,...r}=e,i=uz(o)?o:Bg,s=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return f.jsx(st.div,{"data-orientation":i,...s,...r,ref:t})});Hx.displayName=sz;function uz(e){return lz.includes(e)}var Gx=Hx;const Xf=g.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...o},r)=>f.jsx(Gx,{ref:r,decorative:n,orientation:t,className:X("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));Xf.displayName=Gx.displayName;function dt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function cz(e,t){const n=g.createContext(t),o=i=>{const{children:a,...s}=i,l=g.useMemo(()=>s,Object.values(s));return f.jsx(n.Provider,{value:l,children:a})};o.displayName=e+"Provider";function r(i){const a=g.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[o,r]}function au(e,t=[]){let n=[];function o(i,a){const s=g.createContext(a),l=n.length;n=[...n,a];const u=c=>{var m;const{scope:h,children:y,...x}=c,b=((m=h==null?void 0:h[e])==null?void 0:m[l])||s,w=g.useMemo(()=>x,Object.values(x));return f.jsx(b.Provider,{value:w,children:y})};u.displayName=i+"Provider";function d(c,h){var b;const y=((b=h==null?void 0:h[e])==null?void 0:b[l])||s,x=g.useContext(y);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${i}\``)}return[u,d]}const r=()=>{const i=n.map(a=>g.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return r.scopeName=e,[o,dz(r,...t)]}function dz(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const a=o.reduce((s,{useScope:l,scopeName:u})=>{const c=l(i)[`__scope${u}`];return{...s,...c}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var $r=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},fz=uy[" useId ".trim().toString()]||(()=>{}),mz=0;function As(e){const[t,n]=g.useState(fz());return $r(()=>{n(o=>o??String(mz++))},[e]),e||(t?`radix-${t}`:"")}var pz=uy[" useInsertionEffect ".trim().toString()]||$r;function Kx({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,i,a]=hz({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:r;{const d=g.useRef(e!==void 0);g.useEffect(()=>{const c=d.current;c!==s&&console.warn(`${o} is changing from ${c?"controlled":"uncontrolled"} to ${s?"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.`),d.current=s},[s,o])}const u=g.useCallback(d=>{var c;if(s){const h=gz(d)?d(e):d;h!==e&&((c=a.current)==null||c.call(a,h))}else i(d)},[s,e,i,a]);return[l,u]}function hz({defaultProp:e,onChange:t}){const[n,o]=g.useState(e),r=g.useRef(n),i=g.useRef(t);return pz(()=>{i.current=t},[t]),g.useEffect(()=>{var a;r.current!==n&&((a=i.current)==null||a.call(i,n),r.current=n)},[n,r]),[n,o,i]}function gz(e){return typeof e=="function"}function Ho(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function vz(e,t=globalThis==null?void 0:globalThis.document){const n=Ho(e);g.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var yz="DismissableLayer",Id="dismissableLayer.update",bz="dismissableLayer.pointerDownOutside",xz="dismissableLayer.focusOutside",Hg,Jx=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qf=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...l}=e,u=g.useContext(Jx),[d,c]=g.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=g.useState({}),x=At(t,N=>c(N)),b=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=b.indexOf(w),p=d?b.indexOf(d):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,_=p>=m,S=Sz(N=>{const I=N.target,D=[...u.branches].some(O=>O.contains(I));!_||D||(r==null||r(N),a==null||a(N),N.defaultPrevented||s==null||s())},h),$=kz(N=>{const I=N.target;[...u.branches].some(O=>O.contains(I))||(i==null||i(N),a==null||a(N),N.defaultPrevented||s==null||s())},h);return vz(N=>{p===u.layers.size-1&&(o==null||o(N),!N.defaultPrevented&&s&&(N.preventDefault(),s()))},h),g.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Hg=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Gg(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Hg)}},[d,h,n,u]),g.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Gg())},[d,u]),g.useEffect(()=>{const N=()=>y({});return document.addEventListener(Id,N),()=>document.removeEventListener(Id,N)},[]),f.jsx(st.div,{...l,ref:x,style:{pointerEvents:v?_?"auto":"none":void 0,...e.style},onFocusCapture:dt(e.onFocusCapture,$.onFocusCapture),onBlurCapture:dt(e.onBlurCapture,$.onBlurCapture),onPointerDownCapture:dt(e.onPointerDownCapture,S.onPointerDownCapture)})});Qf.displayName=yz;var wz="DismissableLayerBranch",_z=g.forwardRef((e,t)=>{const n=g.useContext(Jx),o=g.useRef(null),r=At(t,o);return g.useEffect(()=>{const i=o.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),f.jsx(st.div,{...e,ref:r})});_z.displayName=wz;function Sz(e,t=globalThis==null?void 0:globalThis.document){const n=Ho(e),o=g.useRef(!1),r=g.useRef(()=>{});return g.useEffect(()=>{const i=s=>{if(s.target&&!o.current){let l=function(){Yx(bz,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=l,t.addEventListener("click",r.current,{once:!0})):l()}else t.removeEventListener("click",r.current);o.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function kz(e,t=globalThis==null?void 0:globalThis.document){const n=Ho(e),o=g.useRef(!1);return g.useEffect(()=>{const r=i=>{i.target&&!o.current&&Yx(xz,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Gg(){const e=new CustomEvent(Id);document.dispatchEvent(e)}function Yx(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?az(r,i):r.dispatchEvent(i)}var gc="focusScope.autoFocusOnMount",vc="focusScope.autoFocusOnUnmount",Kg={bubbles:!1,cancelable:!0},$z="FocusScope",Xx=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...a}=e,[s,l]=g.useState(null),u=Ho(r),d=Ho(i),c=g.useRef(null),h=At(t,b=>l(b)),y=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(o){let b=function(v){if(y.paused||!s)return;const _=v.target;s.contains(_)?c.current=_:rr(c.current,{select:!0})},w=function(v){if(y.paused||!s)return;const _=v.relatedTarget;_!==null&&(s.contains(_)||rr(c.current,{select:!0}))},m=function(v){if(document.activeElement===document.body)for(const S of v)S.removedNodes.length>0&&rr(s)};document.addEventListener("focusin",b),document.addEventListener("focusout",w);const p=new MutationObserver(m);return s&&p.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",w),p.disconnect()}}},[o,s,y.paused]),g.useEffect(()=>{if(s){Yg.add(y);const b=document.activeElement;if(!s.contains(b)){const m=new CustomEvent(gc,Kg);s.addEventListener(gc,u),s.dispatchEvent(m),m.defaultPrevented||(Nz(zz(Qx(s)),{select:!0}),document.activeElement===b&&rr(s))}return()=>{s.removeEventListener(gc,u),setTimeout(()=>{const m=new CustomEvent(vc,Kg);s.addEventListener(vc,d),s.dispatchEvent(m),m.defaultPrevented||rr(b??document.body,{select:!0}),s.removeEventListener(vc,d),Yg.remove(y)},0)}}},[s,u,d,y]);const x=g.useCallback(b=>{if(!n&&!o||y.paused)return;const w=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,m=document.activeElement;if(w&&m){const p=b.currentTarget,[v,_]=Ez(p);v&&_?!b.shiftKey&&m===_?(b.preventDefault(),n&&rr(v,{select:!0})):b.shiftKey&&m===v&&(b.preventDefault(),n&&rr(_,{select:!0})):m===p&&b.preventDefault()}},[n,o,y.paused]);return f.jsx(st.div,{tabIndex:-1,...a,ref:h,onKeyDown:x})});Xx.displayName=$z;function Nz(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(rr(o,{select:t}),document.activeElement!==n)return}function Ez(e){const t=Qx(e),n=Jg(t,e),o=Jg(t.reverse(),e);return[n,o]}function Qx(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Jg(e,t){for(const n of e)if(!jz(n,{upTo:t}))return n}function jz(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Iz(e){return e instanceof HTMLInputElement&&"select"in e}function rr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Iz(e)&&t&&e.select()}}var Yg=Cz();function Cz(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Xg(e,t),e.unshift(t)},remove(t){var n;e=Xg(e,t),(n=e[0])==null||n.resume()}}}function Xg(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function zz(e){return e.filter(t=>t.tagName!=="A")}var Pz="Portal",qx=g.forwardRef((e,t)=>{var s;const{container:n,...o}=e,[r,i]=g.useState(!1);$r(()=>i(!0),[]);const a=n||r&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return a?fx.createPortal(f.jsx(st.div,{...o,ref:t}),a):null});qx.displayName=Pz;function Oz(e,t){return g.useReducer((n,o)=>t[n][o]??n,e)}var Ca=e=>{const{present:t,children:n}=e,o=Tz(t),r=typeof n=="function"?n({present:o.isPresent}):g.Children.only(n),i=At(o.ref,Dz(r));return typeof n=="function"||o.isPresent?g.cloneElement(r,{ref:i}):null};Ca.displayName="Presence";function Tz(e){const[t,n]=g.useState(),o=g.useRef(null),r=g.useRef(e),i=g.useRef("none"),a=e?"mounted":"unmounted",[s,l]=Oz(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const u=ms(o.current);i.current=s==="mounted"?u:"none"},[s]),$r(()=>{const u=o.current,d=r.current;if(d!==e){const h=i.current,y=ms(u);e?l("MOUNT"):y==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&h!==y?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),$r(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,c=y=>{const b=ms(o.current).includes(y.animationName);if(y.target===t&&b&&(l("ANIMATION_END"),!r.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},h=y=>{y.target===t&&(i.current=ms(o.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:g.useCallback(u=>{o.current=u?getComputedStyle(u):null,n(u)},[])}}function ms(e){return(e==null?void 0:e.animationName)||"none"}function Dz(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var yc=0;function Rz(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Qg()),document.body.insertAdjacentElement("beforeend",e[1]??Qg()),yc++,()=>{yc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),yc--}},[])}function Qg(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var bn=function(){return bn=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},bn.apply(this,arguments)};function ew(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function Az(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,i;o<r;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}var Us="right-scroll-bar-position",Ls="width-before-scroll-bar",Uz="with-scroll-bars-hidden",Lz="--removed-body-scroll-bar-size";function bc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Mz(e,t){var n=g.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var Fz=typeof window<"u"?g.useLayoutEffect:g.useEffect,qg=new WeakMap;function Vz(e,t){var n=Mz(null,function(o){return e.forEach(function(r){return bc(r,o)})});return Fz(function(){var o=qg.get(n);if(o){var r=new Set(o),i=new Set(e),a=n.current;r.forEach(function(s){i.has(s)||bc(s,null)}),i.forEach(function(s){r.has(s)||bc(s,a)})}qg.set(n,e)},[e]),n}function Zz(e){return e}function Wz(e,t){t===void 0&&(t=Zz);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,o);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(o=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){o=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var l=function(){var d=a;a=[],d.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}};return r}function Bz(e){e===void 0&&(e={});var t=Wz(null);return t.options=bn({async:!0,ssr:!1},e),t}var tw=function(e){var t=e.sideCar,n=ew(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return g.createElement(o,bn({},n))};tw.isSideCarExport=!0;function Hz(e,t){return e.useMedium(t),tw}var nw=Bz(),xc=function(){},su=g.forwardRef(function(e,t){var n=g.useRef(null),o=g.useState({onScrollCapture:xc,onWheelCapture:xc,onTouchMoveCapture:xc}),r=o[0],i=o[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,c=e.shards,h=e.sideCar,y=e.noRelative,x=e.noIsolation,b=e.inert,w=e.allowPinchZoom,m=e.as,p=m===void 0?"div":m,v=e.gapMode,_=ew(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=h,$=Vz([n,t]),N=bn(bn({},_),r);return g.createElement(g.Fragment,null,d&&g.createElement(S,{sideCar:nw,removeScrollBar:u,shards:c,noRelative:y,noIsolation:x,inert:b,setCallbacks:i,allowPinchZoom:!!w,lockRef:n,gapMode:v}),a?g.cloneElement(g.Children.only(s),bn(bn({},N),{ref:$})):g.createElement(p,bn({},N,{className:l,ref:$}),s))});su.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};su.classNames={fullWidth:Ls,zeroRight:Us};var Gz=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Kz(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Gz();return t&&e.setAttribute("nonce",t),e}function Jz(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Yz(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Xz=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Kz())&&(Jz(t,n),Yz(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Qz=function(){var e=Xz();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},rw=function(){var e=Qz(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},qz={left:0,top:0,right:0,gap:0},wc=function(e){return parseInt(e||"",10)||0},e4=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[wc(n),wc(o),wc(r)]},t4=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return qz;var t=e4(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},n4=rw(),Do="data-scroll-locked",r4=function(e,t,n,o){var r=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
137
- .`.concat(Uz,` {
138
- overflow: hidden `).concat(o,`;
139
- padding-right: `).concat(s,"px ").concat(o,`;
140
- }
141
- body[`).concat(Do,`] {
142
- overflow: hidden `).concat(o,`;
143
- overscroll-behavior: contain;
144
- `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
145
- padding-left: `.concat(r,`px;
146
- padding-top: `).concat(i,`px;
147
- padding-right: `).concat(a,`px;
148
- margin-left:0;
149
- margin-top:0;
150
- margin-right: `).concat(s,"px ").concat(o,`;
151
- `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(o,";")].filter(Boolean).join(""),`
152
- }
153
-
154
- .`).concat(Us,` {
155
- right: `).concat(s,"px ").concat(o,`;
156
- }
157
-
158
- .`).concat(Ls,` {
159
- margin-right: `).concat(s,"px ").concat(o,`;
160
- }
161
-
162
- .`).concat(Us," .").concat(Us,` {
163
- right: 0 `).concat(o,`;
164
- }
165
-
166
- .`).concat(Ls," .").concat(Ls,` {
167
- margin-right: 0 `).concat(o,`;
168
- }
169
-
170
- body[`).concat(Do,`] {
171
- `).concat(Lz,": ").concat(s,`px;
172
- }
173
- `)},ev=function(){var e=parseInt(document.body.getAttribute(Do)||"0",10);return isFinite(e)?e:0},o4=function(){g.useEffect(function(){return document.body.setAttribute(Do,(ev()+1).toString()),function(){var e=ev()-1;e<=0?document.body.removeAttribute(Do):document.body.setAttribute(Do,e.toString())}},[])},i4=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;o4();var i=g.useMemo(function(){return t4(r)},[r]);return g.createElement(n4,{styles:r4(i,!t,r,n?"":"!important")})},Cd=!1;if(typeof window<"u")try{var ps=Object.defineProperty({},"passive",{get:function(){return Cd=!0,!0}});window.addEventListener("test",ps,ps),window.removeEventListener("test",ps,ps)}catch{Cd=!1}var mo=Cd?{passive:!1}:!1,a4=function(e){return e.tagName==="TEXTAREA"},ow=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!a4(e)&&n[t]==="visible")},s4=function(e){return ow(e,"overflowY")},l4=function(e){return ow(e,"overflowX")},tv=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=iw(e,o);if(r){var i=aw(e,o),a=i[1],s=i[2];if(a>s)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},u4=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},c4=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},iw=function(e,t){return e==="v"?s4(t):l4(t)},aw=function(e,t){return e==="v"?u4(t):c4(t)},d4=function(e,t){return e==="h"&&t==="rtl"?-1:1},f4=function(e,t,n,o,r){var i=d4(e,window.getComputedStyle(t).direction),a=i*o,s=n.target,l=t.contains(s),u=!1,d=a>0,c=0,h=0;do{if(!s)break;var y=aw(e,s),x=y[0],b=y[1],w=y[2],m=b-w-i*x;(x||m)&&iw(e,s)&&(c+=m,h+=x);var p=s.parentNode;s=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&Math.abs(c)<1||!d&&Math.abs(h)<1)&&(u=!0),u},hs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nv=function(e){return[e.deltaX,e.deltaY]},rv=function(e){return e&&"current"in e?e.current:e},m4=function(e,t){return e[0]===t[0]&&e[1]===t[1]},p4=function(e){return`
174
- .block-interactivity-`.concat(e,` {pointer-events: none;}
175
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
176
- `)},h4=0,po=[];function g4(e){var t=g.useRef([]),n=g.useRef([0,0]),o=g.useRef(),r=g.useState(h4++)[0],i=g.useState(rw)[0],a=g.useRef(e);g.useEffect(function(){a.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var b=Az([e.lockRef.current],(e.shards||[]).map(rv),!0).filter(Boolean);return b.forEach(function(w){return w.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),b.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var s=g.useCallback(function(b,w){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!a.current.allowPinchZoom;var m=hs(b),p=n.current,v="deltaX"in b?b.deltaX:p[0]-m[0],_="deltaY"in b?b.deltaY:p[1]-m[1],S,$=b.target,N=Math.abs(v)>Math.abs(_)?"h":"v";if("touches"in b&&N==="h"&&$.type==="range")return!1;var I=tv(N,$);if(!I)return!0;if(I?S=N:(S=N==="v"?"h":"v",I=tv(N,$)),!I)return!1;if(!o.current&&"changedTouches"in b&&(v||_)&&(o.current=S),!S)return!0;var D=o.current||S;return f4(D,w,b,D==="h"?v:_)},[]),l=g.useCallback(function(b){var w=b;if(!(!po.length||po[po.length-1]!==i)){var m="deltaY"in w?nv(w):hs(w),p=t.current.filter(function(S){return S.name===w.type&&(S.target===w.target||w.target===S.shadowParent)&&m4(S.delta,m)})[0];if(p&&p.should){w.cancelable&&w.preventDefault();return}if(!p){var v=(a.current.shards||[]).map(rv).filter(Boolean).filter(function(S){return S.contains(w.target)}),_=v.length>0?s(w,v[0]):!a.current.noIsolation;_&&w.cancelable&&w.preventDefault()}}},[]),u=g.useCallback(function(b,w,m,p){var v={name:b,delta:w,target:m,should:p,shadowParent:v4(m)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(_){return _!==v})},1)},[]),d=g.useCallback(function(b){n.current=hs(b),o.current=void 0},[]),c=g.useCallback(function(b){u(b.type,nv(b),b.target,s(b,e.lockRef.current))},[]),h=g.useCallback(function(b){u(b.type,hs(b),b.target,s(b,e.lockRef.current))},[]);g.useEffect(function(){return po.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:h}),document.addEventListener("wheel",l,mo),document.addEventListener("touchmove",l,mo),document.addEventListener("touchstart",d,mo),function(){po=po.filter(function(b){return b!==i}),document.removeEventListener("wheel",l,mo),document.removeEventListener("touchmove",l,mo),document.removeEventListener("touchstart",d,mo)}},[]);var y=e.removeScrollBar,x=e.inert;return g.createElement(g.Fragment,null,x?g.createElement(i,{styles:p4(r)}):null,y?g.createElement(i4,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function v4(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const y4=Hz(nw,g4);var sw=g.forwardRef(function(e,t){return g.createElement(su,bn({},e,{ref:t,sideCar:y4}))});sw.classNames=su.classNames;var b4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ho=new WeakMap,gs=new WeakMap,vs={},_c=0,lw=function(e){return e&&(e.host||lw(e.parentNode))},x4=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=lw(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},w4=function(e,t,n,o){var r=x4(t,Array.isArray(e)?e:[e]);vs[n]||(vs[n]=new WeakMap);var i=vs[n],a=[],s=new Set,l=new Set(r),u=function(c){!c||s.has(c)||(s.add(c),u(c.parentNode))};r.forEach(u);var d=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(h){if(s.has(h))d(h);else try{var y=h.getAttribute(o),x=y!==null&&y!=="false",b=(ho.get(h)||0)+1,w=(i.get(h)||0)+1;ho.set(h,b),i.set(h,w),a.push(h),b===1&&x&&gs.set(h,!0),w===1&&h.setAttribute(n,"true"),x||h.setAttribute(o,"true")}catch(m){console.error("aria-hidden: cannot operate on ",h,m)}})};return d(t),s.clear(),_c++,function(){a.forEach(function(c){var h=ho.get(c)-1,y=i.get(c)-1;ho.set(c,h),i.set(c,y),h||(gs.has(c)||c.removeAttribute(o),gs.delete(c)),y||c.removeAttribute(n)}),_c--,_c||(ho=new WeakMap,ho=new WeakMap,gs=new WeakMap,vs={})}},_4=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=b4(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),w4(o,r,n,"aria-hidden")):function(){return null}},lu="Dialog",[uw,cw]=au(lu),[S4,fn]=uw(lu),dw=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:i,modal:a=!0}=e,s=g.useRef(null),l=g.useRef(null),[u,d]=Kx({prop:o,defaultProp:r??!1,onChange:i,caller:lu});return f.jsx(S4,{scope:t,triggerRef:s,contentRef:l,contentId:As(),titleId:As(),descriptionId:As(),open:u,onOpenChange:d,onOpenToggle:g.useCallback(()=>d(c=>!c),[d]),modal:a,children:n})};dw.displayName=lu;var fw="DialogTrigger",mw=g.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=fn(fw,n),i=At(t,r.triggerRef);return f.jsx(st.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":tm(r.open),...o,ref:i,onClick:dt(e.onClick,r.onOpenToggle)})});mw.displayName=fw;var qf="DialogPortal",[k4,pw]=uw(qf,{forceMount:void 0}),hw=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,i=fn(qf,t);return f.jsx(k4,{scope:t,forceMount:n,children:g.Children.map(o,a=>f.jsx(Ca,{present:n||i.open,children:f.jsx(qx,{asChild:!0,container:r,children:a})}))})};hw.displayName=qf;var gl="DialogOverlay",gw=g.forwardRef((e,t)=>{const n=pw(gl,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,i=fn(gl,e.__scopeDialog);return i.modal?f.jsx(Ca,{present:o||i.open,children:f.jsx(N4,{...r,ref:t})}):null});gw.displayName=gl;var $4=Kf("DialogOverlay.RemoveScroll"),N4=g.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=fn(gl,n);return f.jsx(sw,{as:$4,allowPinchZoom:!0,shards:[r.contentRef],children:f.jsx(st.div,{"data-state":tm(r.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),Xr="DialogContent",vw=g.forwardRef((e,t)=>{const n=pw(Xr,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,i=fn(Xr,e.__scopeDialog);return f.jsx(Ca,{present:o||i.open,children:i.modal?f.jsx(E4,{...r,ref:t}):f.jsx(j4,{...r,ref:t})})});vw.displayName=Xr;var E4=g.forwardRef((e,t)=>{const n=fn(Xr,e.__scopeDialog),o=g.useRef(null),r=At(t,n.contentRef,o);return g.useEffect(()=>{const i=o.current;if(i)return _4(i)},[]),f.jsx(yw,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:dt(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:dt(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:dt(e.onFocusOutside,i=>i.preventDefault())})}),j4=g.forwardRef((e,t)=>{const n=fn(Xr,e.__scopeDialog),o=g.useRef(!1),r=g.useRef(!1);return f.jsx(yw,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,s;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(o.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:i=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(o.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const a=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),yw=g.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:i,...a}=e,s=fn(Xr,n),l=g.useRef(null),u=At(t,l);return Rz(),f.jsxs(f.Fragment,{children:[f.jsx(Xx,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:i,children:f.jsx(Qf,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":tm(s.open),...a,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(C4,{titleId:s.titleId}),f.jsx(P4,{contentRef:l,descriptionId:s.descriptionId})]})]})}),em="DialogTitle",bw=g.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=fn(em,n);return f.jsx(st.h2,{id:r.titleId,...o,ref:t})});bw.displayName=em;var xw="DialogDescription",ww=g.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=fn(xw,n);return f.jsx(st.p,{id:r.descriptionId,...o,ref:t})});ww.displayName=xw;var _w="DialogClose",Sw=g.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=fn(_w,n);return f.jsx(st.button,{type:"button",...o,ref:t,onClick:dt(e.onClick,()=>r.onOpenChange(!1))})});Sw.displayName=_w;function tm(e){return e?"open":"closed"}var kw="DialogTitleWarning",[I4,$w]=cz(kw,{contentName:Xr,titleName:em,docsSlug:"dialog"}),C4=({titleId:e})=>{const t=$w(kw),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
177
-
178
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
179
-
180
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},z4="DialogDescriptionWarning",P4=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${$w(z4).contentName}}.`;return g.useEffect(()=>{var i;const r=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},nm=dw,Nw=mw,rm=hw,za=gw,Pa=vw,Oa=bw,Ta=ww,Da=Sw;const O4=nm,T4=rm,Ew=g.forwardRef(({className:e,...t},n)=>f.jsx(za,{className:X("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Ew.displayName=za.displayName;const D4=Ia("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),jw=g.forwardRef(({side:e="right",className:t,children:n,...o},r)=>f.jsxs(T4,{children:[f.jsx(Ew,{}),f.jsxs(Pa,{ref:r,className:X(D4({side:e}),t),...o,children:[n,f.jsxs(Da,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[f.jsx(Cx,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));jw.displayName=Pa.displayName;const Iw=({className:e,...t})=>f.jsx("div",{className:X("flex flex-col space-y-2 text-center sm:text-left",e),...t});Iw.displayName="SheetHeader";const Cw=g.forwardRef(({className:e,...t},n)=>f.jsx(Oa,{ref:n,className:X("text-lg font-semibold text-foreground",e),...t}));Cw.displayName=Oa.displayName;const zw=g.forwardRef(({className:e,...t},n)=>f.jsx(Ta,{ref:n,className:X("text-sm text-muted-foreground",e),...t}));zw.displayName=Ta.displayName;function ov({className:e,...t}){return f.jsx("div",{className:X("animate-pulse rounded-md bg-muted",e),...t})}const R4=["top","right","bottom","left"],Nr=Math.min,jt=Math.max,vl=Math.round,ys=Math.floor,kn=e=>({x:e,y:e}),A4={left:"right",right:"left",bottom:"top",top:"bottom"},U4={start:"end",end:"start"};function zd(e,t,n){return jt(e,Nr(t,n))}function Kn(e,t){return typeof e=="function"?e(t):e}function Jn(e){return e.split("-")[0]}function di(e){return e.split("-")[1]}function om(e){return e==="x"?"y":"x"}function im(e){return e==="y"?"height":"width"}const L4=new Set(["top","bottom"]);function xn(e){return L4.has(Jn(e))?"y":"x"}function am(e){return om(xn(e))}function M4(e,t,n){n===void 0&&(n=!1);const o=di(e),r=am(e),i=im(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=yl(a)),[a,yl(a)]}function F4(e){const t=yl(e);return[Pd(e),t,Pd(t)]}function Pd(e){return e.replace(/start|end/g,t=>U4[t])}const iv=["left","right"],av=["right","left"],V4=["top","bottom"],Z4=["bottom","top"];function W4(e,t,n){switch(e){case"top":case"bottom":return n?t?av:iv:t?iv:av;case"left":case"right":return t?V4:Z4;default:return[]}}function B4(e,t,n,o){const r=di(e);let i=W4(Jn(e),n==="start",o);return r&&(i=i.map(a=>a+"-"+r),t&&(i=i.concat(i.map(Pd)))),i}function yl(e){return e.replace(/left|right|bottom|top/g,t=>A4[t])}function H4(e){return{top:0,right:0,bottom:0,left:0,...e}}function Pw(e){return typeof e!="number"?H4(e):{top:e,right:e,bottom:e,left:e}}function bl(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function sv(e,t,n){let{reference:o,floating:r}=e;const i=xn(t),a=am(t),s=im(a),l=Jn(t),u=i==="y",d=o.x+o.width/2-r.width/2,c=o.y+o.height/2-r.height/2,h=o[s]/2-r[s]/2;let y;switch(l){case"top":y={x:d,y:o.y-r.height};break;case"bottom":y={x:d,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:c};break;case"left":y={x:o.x-r.width,y:c};break;default:y={x:o.x,y:o.y}}switch(di(t)){case"start":y[a]-=h*(n&&u?-1:1);break;case"end":y[a]+=h*(n&&u?-1:1);break}return y}const G4=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:c}=sv(u,o,l),h=o,y={},x=0;for(let b=0;b<s.length;b++){const{name:w,fn:m}=s[b],{x:p,y:v,data:_,reset:S}=await m({x:d,y:c,initialPlacement:o,placement:h,strategy:r,middlewareData:y,rects:u,platform:a,elements:{reference:e,floating:t}});d=p??d,c=v??c,y={...y,[w]:{...y[w],..._}},S&&x<=50&&(x++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(u=S.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:d,y:c}=sv(u,h,l)),b=-1)}return{x:d,y:c,placement:h,strategy:r,middlewareData:y}};async function fa(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:h=!1,padding:y=0}=Kn(t,e),x=Pw(y),w=s[h?c==="floating"?"reference":"floating":c],m=bl(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:l})),p=c==="floating"?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),_=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},S=bl(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:p,offsetParent:v,strategy:l}):p);return{top:(m.top-S.top+x.top)/_.y,bottom:(S.bottom-m.bottom+x.bottom)/_.y,left:(m.left-S.left+x.left)/_.x,right:(S.right-m.right+x.right)/_.x}}const K4=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:d=0}=Kn(e,t)||{};if(u==null)return{};const c=Pw(d),h={x:n,y:o},y=am(r),x=im(y),b=await a.getDimensions(u),w=y==="y",m=w?"top":"left",p=w?"bottom":"right",v=w?"clientHeight":"clientWidth",_=i.reference[x]+i.reference[y]-h[y]-i.floating[x],S=h[y]-i.reference[y],$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let N=$?$[v]:0;(!N||!await(a.isElement==null?void 0:a.isElement($)))&&(N=s.floating[v]||i.floating[x]);const I=_/2-S/2,D=N/2-b[x]/2-1,O=Nr(c[m],D),G=Nr(c[p],D),U=O,B=N-b[x]-G,ee=N/2-b[x]/2+I,re=zd(U,ee,B),M=!l.arrow&&di(r)!=null&&ee!==re&&i.reference[x]/2-(ee<U?O:G)-b[x]/2<0,te=M?ee<U?ee-U:ee-B:0;return{[y]:h[y]+te,data:{[y]:re,centerOffset:ee-re-te,...M&&{alignmentOffset:te}},reset:M}}}),J4=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:h,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:b=!0,...w}=Kn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=Jn(r),p=xn(s),v=Jn(s)===s,_=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=h||(v||!b?[yl(s)]:F4(s)),$=x!=="none";!h&&$&&S.push(...B4(s,b,x,_));const N=[s,...S],I=await fa(t,w),D=[];let O=((o=i.flip)==null?void 0:o.overflows)||[];if(d&&D.push(I[m]),c){const ee=M4(r,a,_);D.push(I[ee[0]],I[ee[1]])}if(O=[...O,{placement:r,overflows:D}],!D.every(ee=>ee<=0)){var G,U;const ee=(((G=i.flip)==null?void 0:G.index)||0)+1,re=N[ee];if(re&&(!(c==="alignment"?p!==xn(re):!1)||O.every(E=>E.overflows[0]>0&&xn(E.placement)===p)))return{data:{index:ee,overflows:O},reset:{placement:re}};let M=(U=O.filter(te=>te.overflows[0]<=0).sort((te,E)=>te.overflows[1]-E.overflows[1])[0])==null?void 0:U.placement;if(!M)switch(y){case"bestFit":{var B;const te=(B=O.filter(E=>{if($){const F=xn(E.placement);return F===p||F==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(F=>F>0).reduce((F,Y)=>F+Y,0)]).sort((E,F)=>E[1]-F[1])[0])==null?void 0:B[0];te&&(M=te);break}case"initialPlacement":M=s;break}if(r!==M)return{reset:{placement:M}}}return{}}}};function lv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function uv(e){return R4.some(t=>e[t]>=0)}const Y4=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=Kn(e,t);switch(o){case"referenceHidden":{const i=await fa(t,{...r,elementContext:"reference"}),a=lv(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:uv(a)}}}case"escaped":{const i=await fa(t,{...r,altBoundary:!0}),a=lv(i,n.floating);return{data:{escapedOffsets:a,escaped:uv(a)}}}default:return{}}}}},Ow=new Set(["left","top"]);async function X4(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),a=Jn(n),s=di(n),l=xn(n)==="y",u=Ow.has(a)?-1:1,d=i&&l?-1:1,c=Kn(t,e);let{mainAxis:h,crossAxis:y,alignmentAxis:x}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof x=="number"&&(y=s==="end"?x*-1:x),l?{x:y*d,y:h*u}:{x:h*u,y:y*d}}const Q4=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:a,middlewareData:s}=t,l=await X4(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:a}}}}},q4=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:w=>{let{x:m,y:p}=w;return{x:m,y:p}}},...l}=Kn(e,t),u={x:n,y:o},d=await fa(t,l),c=xn(Jn(r)),h=om(c);let y=u[h],x=u[c];if(i){const w=h==="y"?"top":"left",m=h==="y"?"bottom":"right",p=y+d[w],v=y-d[m];y=zd(p,y,v)}if(a){const w=c==="y"?"top":"left",m=c==="y"?"bottom":"right",p=x+d[w],v=x-d[m];x=zd(p,x,v)}const b=s.fn({...t,[h]:y,[c]:x});return{...b,data:{x:b.x-n,y:b.y-o,enabled:{[h]:i,[c]:a}}}}}},eP=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=Kn(e,t),d={x:n,y:o},c=xn(r),h=om(c);let y=d[h],x=d[c];const b=Kn(s,t),w=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const v=h==="y"?"height":"width",_=i.reference[h]-i.floating[v]+w.mainAxis,S=i.reference[h]+i.reference[v]-w.mainAxis;y<_?y=_:y>S&&(y=S)}if(u){var m,p;const v=h==="y"?"width":"height",_=Ow.has(Jn(r)),S=i.reference[c]-i.floating[v]+(_&&((m=a.offset)==null?void 0:m[c])||0)+(_?0:w.crossAxis),$=i.reference[c]+i.reference[v]+(_?0:((p=a.offset)==null?void 0:p[c])||0)-(_?w.crossAxis:0);x<S?x=S:x>$&&(x=$)}return{[h]:y,[c]:x}}}},tP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...u}=Kn(e,t),d=await fa(t,u),c=Jn(r),h=di(r),y=xn(r)==="y",{width:x,height:b}=i.floating;let w,m;c==="top"||c==="bottom"?(w=c,m=h===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(m=c,w=h==="end"?"top":"bottom");const p=b-d.top-d.bottom,v=x-d.left-d.right,_=Nr(b-d[w],p),S=Nr(x-d[m],v),$=!t.middlewareData.shift;let N=_,I=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=v),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(N=p),$&&!h){const O=jt(d.left,0),G=jt(d.right,0),U=jt(d.top,0),B=jt(d.bottom,0);y?I=x-2*(O!==0||G!==0?O+G:jt(d.left,d.right)):N=b-2*(U!==0||B!==0?U+B:jt(d.top,d.bottom))}await l({...t,availableWidth:I,availableHeight:N});const D=await a.getDimensions(s.floating);return x!==D.width||b!==D.height?{reset:{rects:!0}}:{}}}};function uu(){return typeof window<"u"}function fi(e){return Tw(e)?(e.nodeName||"").toLowerCase():"#document"}function Pt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function jn(e){var t;return(t=(Tw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Tw(e){return uu()?e instanceof Node||e instanceof Pt(e).Node:!1}function ln(e){return uu()?e instanceof Element||e instanceof Pt(e).Element:!1}function $n(e){return uu()?e instanceof HTMLElement||e instanceof Pt(e).HTMLElement:!1}function cv(e){return!uu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pt(e).ShadowRoot}const nP=new Set(["inline","contents"]);function Ra(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=un(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!nP.has(r)}const rP=new Set(["table","td","th"]);function oP(e){return rP.has(fi(e))}const iP=[":popover-open",":modal"];function cu(e){return iP.some(t=>{try{return e.matches(t)}catch{return!1}})}const aP=["transform","translate","scale","rotate","perspective"],sP=["transform","translate","scale","rotate","perspective","filter"],lP=["paint","layout","strict","content"];function sm(e){const t=lm(),n=ln(e)?un(e):e;return aP.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||sP.some(o=>(n.willChange||"").includes(o))||lP.some(o=>(n.contain||"").includes(o))}function uP(e){let t=Er(e);for(;$n(t)&&!Go(t);){if(sm(t))return t;if(cu(t))return null;t=Er(t)}return null}function lm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const cP=new Set(["html","body","#document"]);function Go(e){return cP.has(fi(e))}function un(e){return Pt(e).getComputedStyle(e)}function du(e){return ln(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Er(e){if(fi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||cv(e)&&e.host||jn(e);return cv(t)?t.host:t}function Dw(e){const t=Er(e);return Go(t)?e.ownerDocument?e.ownerDocument.body:e.body:$n(t)&&Ra(t)?t:Dw(t)}function ma(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Dw(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),a=Pt(r);if(i){const s=Od(a);return t.concat(a,a.visualViewport||[],Ra(r)?r:[],s&&n?ma(s):[])}return t.concat(r,ma(r,[],n))}function Od(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Rw(e){const t=un(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=$n(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=vl(n)!==i||vl(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}function um(e){return ln(e)?e:e.contextElement}function Ro(e){const t=um(e);if(!$n(t))return kn(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=Rw(t);let a=(i?vl(n.width):n.width)/o,s=(i?vl(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const dP=kn(0);function Aw(e){const t=Pt(e);return!lm()||!t.visualViewport?dP:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function fP(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Pt(e)?!1:t}function Qr(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=um(e);let a=kn(1);t&&(o?ln(o)&&(a=Ro(o)):a=Ro(e));const s=fP(i,n,o)?Aw(i):kn(0);let l=(r.left+s.x)/a.x,u=(r.top+s.y)/a.y,d=r.width/a.x,c=r.height/a.y;if(i){const h=Pt(i),y=o&&ln(o)?Pt(o):o;let x=h,b=Od(x);for(;b&&o&&y!==x;){const w=Ro(b),m=b.getBoundingClientRect(),p=un(b),v=m.left+(b.clientLeft+parseFloat(p.paddingLeft))*w.x,_=m.top+(b.clientTop+parseFloat(p.paddingTop))*w.y;l*=w.x,u*=w.y,d*=w.x,c*=w.y,l+=v,u+=_,x=Pt(b),b=Od(x)}}return bl({width:d,height:c,x:l,y:u})}function cm(e,t){const n=du(e).scrollLeft;return t?t.left+n:Qr(jn(e)).left+n}function Uw(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-(n?0:cm(e,o)),i=o.top+t.scrollTop;return{x:r,y:i}}function mP(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",a=jn(o),s=t?cu(t.floating):!1;if(o===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=kn(1);const d=kn(0),c=$n(o);if((c||!c&&!i)&&((fi(o)!=="body"||Ra(a))&&(l=du(o)),$n(o))){const y=Qr(o);u=Ro(o),d.x=y.x+o.clientLeft,d.y=y.y+o.clientTop}const h=a&&!c&&!i?Uw(a,l,!0):kn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+h.x,y:n.y*u.y-l.scrollTop*u.y+d.y+h.y}}function pP(e){return Array.from(e.getClientRects())}function hP(e){const t=jn(e),n=du(e),o=e.ownerDocument.body,r=jt(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=jt(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+cm(e);const s=-n.scrollTop;return un(o).direction==="rtl"&&(a+=jt(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:s}}function gP(e,t){const n=Pt(e),o=jn(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,l=0;if(r){i=r.width,a=r.height;const u=lm();(!u||u&&t==="fixed")&&(s=r.offsetLeft,l=r.offsetTop)}return{width:i,height:a,x:s,y:l}}const vP=new Set(["absolute","fixed"]);function yP(e,t){const n=Qr(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=$n(e)?Ro(e):kn(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=r*i.x,u=o*i.y;return{width:a,height:s,x:l,y:u}}function dv(e,t,n){let o;if(t==="viewport")o=gP(e,n);else if(t==="document")o=hP(jn(e));else if(ln(t))o=yP(t,n);else{const r=Aw(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return bl(o)}function Lw(e,t){const n=Er(e);return n===t||!ln(n)||Go(n)?!1:un(n).position==="fixed"||Lw(n,t)}function bP(e,t){const n=t.get(e);if(n)return n;let o=ma(e,[],!1).filter(s=>ln(s)&&fi(s)!=="body"),r=null;const i=un(e).position==="fixed";let a=i?Er(e):e;for(;ln(a)&&!Go(a);){const s=un(a),l=sm(a);!l&&s.position==="fixed"&&(r=null),(i?!l&&!r:!l&&s.position==="static"&&!!r&&vP.has(r.position)||Ra(a)&&!l&&Lw(e,a))?o=o.filter(d=>d!==a):r=s,a=Er(a)}return t.set(e,o),o}function xP(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const a=[...n==="clippingAncestors"?cu(t)?[]:bP(t,this._c):[].concat(n),o],s=a[0],l=a.reduce((u,d)=>{const c=dv(t,d,r);return u.top=jt(c.top,u.top),u.right=Nr(c.right,u.right),u.bottom=Nr(c.bottom,u.bottom),u.left=jt(c.left,u.left),u},dv(t,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function wP(e){const{width:t,height:n}=Rw(e);return{width:t,height:n}}function _P(e,t,n){const o=$n(t),r=jn(t),i=n==="fixed",a=Qr(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=kn(0);function u(){l.x=cm(r)}if(o||!o&&!i)if((fi(t)!=="body"||Ra(r))&&(s=du(t)),o){const y=Qr(t,!0,i,t);l.x=y.x+t.clientLeft,l.y=y.y+t.clientTop}else r&&u();i&&!o&&r&&u();const d=r&&!o&&!i?Uw(r,s):kn(0),c=a.left+s.scrollLeft-l.x-d.x,h=a.top+s.scrollTop-l.y-d.y;return{x:c,y:h,width:a.width,height:a.height}}function Sc(e){return un(e).position==="static"}function fv(e,t){if(!$n(e)||un(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return jn(e)===n&&(n=n.ownerDocument.body),n}function Mw(e,t){const n=Pt(e);if(cu(e))return n;if(!$n(e)){let r=Er(e);for(;r&&!Go(r);){if(ln(r)&&!Sc(r))return r;r=Er(r)}return n}let o=fv(e,t);for(;o&&oP(o)&&Sc(o);)o=fv(o,t);return o&&Go(o)&&Sc(o)&&!sm(o)?n:o||uP(e)||n}const SP=async function(e){const t=this.getOffsetParent||Mw,n=this.getDimensions,o=await n(e.floating);return{reference:_P(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function kP(e){return un(e).direction==="rtl"}const $P={convertOffsetParentRelativeRectToViewportRelativeRect:mP,getDocumentElement:jn,getClippingRect:xP,getOffsetParent:Mw,getElementRects:SP,getClientRects:pP,getDimensions:wP,getScale:Ro,isElement:ln,isRTL:kP};function Fw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function NP(e,t){let n=null,o;const r=jn(e);function i(){var s;clearTimeout(o),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:d,top:c,width:h,height:y}=u;if(s||t(),!h||!y)return;const x=ys(c),b=ys(r.clientWidth-(d+h)),w=ys(r.clientHeight-(c+y)),m=ys(d),v={rootMargin:-x+"px "+-b+"px "+-w+"px "+-m+"px",threshold:jt(0,Nr(1,l))||1};let _=!0;function S($){const N=$[0].intersectionRatio;if(N!==l){if(!_)return a();N?a(!1,N):o=setTimeout(()=>{a(!1,1e-7)},1e3)}N===1&&!Fw(u,e.getBoundingClientRect())&&a(),_=!1}try{n=new IntersectionObserver(S,{...v,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,v)}n.observe(e)}return a(!0),i}function EP(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=um(e),d=r||i?[...u?ma(u):[],...ma(t)]:[];d.forEach(m=>{r&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const c=u&&s?NP(u,n):null;let h=-1,y=null;a&&(y=new ResizeObserver(m=>{let[p]=m;p&&p.target===u&&y&&(y.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var v;(v=y)==null||v.observe(t)})),n()}),u&&!l&&y.observe(u),y.observe(t));let x,b=l?Qr(e):null;l&&w();function w(){const m=Qr(e);b&&!Fw(b,m)&&n(),b=m,x=requestAnimationFrame(w)}return n(),()=>{var m;d.forEach(p=>{r&&p.removeEventListener("scroll",n),i&&p.removeEventListener("resize",n)}),c==null||c(),(m=y)==null||m.disconnect(),y=null,l&&cancelAnimationFrame(x)}}const jP=Q4,IP=q4,CP=J4,zP=tP,PP=Y4,mv=K4,OP=eP,TP=(e,t,n)=>{const o=new Map,r={platform:$P,...n},i={...r.platform,_c:o};return G4(e,t,{...r,platform:i})};var DP=typeof document<"u",RP=function(){},Ms=DP?g.useLayoutEffect:RP;function xl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!xl(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!xl(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Vw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pv(e,t){const n=Vw(e);return Math.round(t*n)/n}function kc(e){const t=g.useRef(e);return Ms(()=>{t.current=e}),t}function AP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[d,c]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,y]=g.useState(o);xl(h,o)||y(o);const[x,b]=g.useState(null),[w,m]=g.useState(null),p=g.useCallback(E=>{E!==$.current&&($.current=E,b(E))},[]),v=g.useCallback(E=>{E!==N.current&&(N.current=E,m(E))},[]),_=i||x,S=a||w,$=g.useRef(null),N=g.useRef(null),I=g.useRef(d),D=l!=null,O=kc(l),G=kc(r),U=kc(u),B=g.useCallback(()=>{if(!$.current||!N.current)return;const E={placement:t,strategy:n,middleware:h};G.current&&(E.platform=G.current),TP($.current,N.current,E).then(F=>{const Y={...F,isPositioned:U.current!==!1};ee.current&&!xl(I.current,Y)&&(I.current=Y,tu.flushSync(()=>{c(Y)}))})},[h,t,n,G,U]);Ms(()=>{u===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,c(E=>({...E,isPositioned:!1})))},[u]);const ee=g.useRef(!1);Ms(()=>(ee.current=!0,()=>{ee.current=!1}),[]),Ms(()=>{if(_&&($.current=_),S&&(N.current=S),_&&S){if(O.current)return O.current(_,S,B);B()}},[_,S,B,O,D]);const re=g.useMemo(()=>({reference:$,floating:N,setReference:p,setFloating:v}),[p,v]),M=g.useMemo(()=>({reference:_,floating:S}),[_,S]),te=g.useMemo(()=>{const E={position:n,left:0,top:0};if(!M.floating)return E;const F=pv(M.floating,d.x),Y=pv(M.floating,d.y);return s?{...E,transform:"translate("+F+"px, "+Y+"px)",...Vw(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:Y}},[n,s,M.floating,d.x,d.y]);return g.useMemo(()=>({...d,update:B,refs:re,elements:M,floatingStyles:te}),[d,B,re,M,te])}const UP=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?mv({element:o.current,padding:r}).fn(n):{}:o?mv({element:o,padding:r}).fn(n):{}}}},LP=(e,t)=>({...jP(e),options:[e,t]}),MP=(e,t)=>({...IP(e),options:[e,t]}),FP=(e,t)=>({...OP(e),options:[e,t]}),VP=(e,t)=>({...CP(e),options:[e,t]}),ZP=(e,t)=>({...zP(e),options:[e,t]}),WP=(e,t)=>({...PP(e),options:[e,t]}),BP=(e,t)=>({...UP(e),options:[e,t]});var HP="Arrow",Zw=g.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...i}=e;return f.jsx(st.svg,{...i,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});Zw.displayName=HP;var GP=Zw;function KP(e){const[t,n]=g.useState(void 0);return $r(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let a,s;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var dm="Popper",[Ww,Bw]=au(dm),[JP,Hw]=Ww(dm),Gw=e=>{const{__scopePopper:t,children:n}=e,[o,r]=g.useState(null);return f.jsx(JP,{scope:t,anchor:o,onAnchorChange:r,children:n})};Gw.displayName=dm;var Kw="PopperAnchor",Jw=g.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=Hw(Kw,n),a=g.useRef(null),s=At(t,a);return g.useEffect(()=>{i.onAnchorChange((o==null?void 0:o.current)||a.current)}),o?null:f.jsx(st.div,{...r,ref:s})});Jw.displayName=Kw;var fm="PopperContent",[YP,XP]=Ww(fm),Yw=g.forwardRef((e,t)=>{var me,lt,Ke,Je,pn,St;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:c="partial",hideWhenDetached:h=!1,updatePositionStrategy:y="optimized",onPlaced:x,...b}=e,w=Hw(fm,n),[m,p]=g.useState(null),v=At(t,Cn=>p(Cn)),[_,S]=g.useState(null),$=KP(_),N=($==null?void 0:$.width)??0,I=($==null?void 0:$.height)??0,D=o+(i!=="center"?"-"+i:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},G=Array.isArray(u)?u:[u],U=G.length>0,B={padding:O,boundary:G.filter(qP),altBoundary:U},{refs:ee,floatingStyles:re,placement:M,isPositioned:te,middlewareData:E}=AP({strategy:"fixed",placement:D,whileElementsMounted:(...Cn)=>EP(...Cn,{animationFrame:y==="always"}),elements:{reference:w.anchor},middleware:[LP({mainAxis:r+I,alignmentAxis:a}),l&&MP({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?FP():void 0,...B}),l&&VP({...B}),ZP({...B,apply:({elements:Cn,rects:zn,availableWidth:so,availableHeight:lo})=>{const{width:Pn,height:pi}=zn.reference,Ye=Cn.floating.style;Ye.setProperty("--radix-popper-available-width",`${so}px`),Ye.setProperty("--radix-popper-available-height",`${lo}px`),Ye.setProperty("--radix-popper-anchor-width",`${Pn}px`),Ye.setProperty("--radix-popper-anchor-height",`${pi}px`)}}),_&&BP({element:_,padding:s}),eO({arrowWidth:N,arrowHeight:I}),h&&WP({strategy:"referenceHidden",...B})]}),[F,Y]=qw(M),Q=Ho(x);$r(()=>{te&&(Q==null||Q())},[te,Q]);const oe=(me=E.arrow)==null?void 0:me.x,ne=(lt=E.arrow)==null?void 0:lt.y,ce=((Ke=E.arrow)==null?void 0:Ke.centerOffset)!==0,[Oe,de]=g.useState();return $r(()=>{m&&de(window.getComputedStyle(m).zIndex)},[m]),f.jsx("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{...re,transform:te?re.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Oe,"--radix-popper-transform-origin":[(Je=E.transformOrigin)==null?void 0:Je.x,(pn=E.transformOrigin)==null?void 0:pn.y].join(" "),...((St=E.hide)==null?void 0:St.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(YP,{scope:n,placedSide:F,onArrowChange:S,arrowX:oe,arrowY:ne,shouldHideArrow:ce,children:f.jsx(st.div,{"data-side":F,"data-align":Y,...b,ref:v,style:{...b.style,animation:te?void 0:"none"}})})})});Yw.displayName=fm;var Xw="PopperArrow",QP={top:"bottom",right:"left",bottom:"top",left:"right"},Qw=g.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,i=XP(Xw,o),a=QP[i.placedSide];return f.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:f.jsx(GP,{...r,ref:n,style:{...r.style,display:"block"}})})});Qw.displayName=Xw;function qP(e){return e!==null}var eO=e=>({name:"transformOrigin",options:e,fn(t){var w,m,p;const{placement:n,rects:o,middlewareData:r}=t,a=((w=r.arrow)==null?void 0:w.centerOffset)!==0,s=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[u,d]=qw(n),c={start:"0%",center:"50%",end:"100%"}[d],h=(((m=r.arrow)==null?void 0:m.x)??0)+s/2,y=(((p=r.arrow)==null?void 0:p.y)??0)+l/2;let x="",b="";return u==="bottom"?(x=a?c:`${h}px`,b=`${-l}px`):u==="top"?(x=a?c:`${h}px`,b=`${o.floating.height+l}px`):u==="right"?(x=`${-l}px`,b=a?c:`${y}px`):u==="left"&&(x=`${o.floating.width+l}px`,b=a?c:`${y}px`),{data:{x,y:b}}}});function qw(e){const[t,n="center"]=e.split("-");return[t,n]}var tO=Gw,nO=Jw,rO=Yw,oO=Qw,iO=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"}),aO="VisuallyHidden",e0=g.forwardRef((e,t)=>f.jsx(st.span,{...e,ref:t,style:{...iO,...e.style}}));e0.displayName=aO;var sO=e0,[fu,aA]=au("Tooltip",[Bw]),mu=Bw(),t0="TooltipProvider",lO=700,Td="tooltip.open",[uO,mm]=fu(t0),n0=e=>{const{__scopeTooltip:t,delayDuration:n=lO,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:i}=e,a=g.useRef(!0),s=g.useRef(!1),l=g.useRef(0);return g.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),f.jsx(uO,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:g.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:g.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,o)},[o]),isPointerInTransitRef:s,onPointerInTransitChange:g.useCallback(u=>{s.current=u},[]),disableHoverableContent:r,children:i})};n0.displayName=t0;var pa="Tooltip",[cO,pu]=fu(pa),r0=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,l=mm(pa,e.__scopeTooltip),u=mu(t),[d,c]=g.useState(null),h=As(),y=g.useRef(0),x=a??l.disableHoverableContent,b=s??l.delayDuration,w=g.useRef(!1),[m,p]=Kx({prop:o,defaultProp:r??!1,onChange:N=>{N?(l.onOpen(),document.dispatchEvent(new CustomEvent(Td))):l.onClose(),i==null||i(N)},caller:pa}),v=g.useMemo(()=>m?w.current?"delayed-open":"instant-open":"closed",[m]),_=g.useCallback(()=>{window.clearTimeout(y.current),y.current=0,w.current=!1,p(!0)},[p]),S=g.useCallback(()=>{window.clearTimeout(y.current),y.current=0,p(!1)},[p]),$=g.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{w.current=!0,p(!0),y.current=0},b)},[b,p]);return g.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),f.jsx(tO,{...u,children:f.jsx(cO,{scope:t,contentId:h,open:m,stateAttribute:v,trigger:d,onTriggerChange:c,onTriggerEnter:g.useCallback(()=>{l.isOpenDelayedRef.current?$():_()},[l.isOpenDelayedRef,$,_]),onTriggerLeave:g.useCallback(()=>{x?S():(window.clearTimeout(y.current),y.current=0)},[S,x]),onOpen:_,onClose:S,disableHoverableContent:x,children:n})})};r0.displayName=pa;var Dd="TooltipTrigger",o0=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=pu(Dd,n),i=mm(Dd,n),a=mu(n),s=g.useRef(null),l=At(t,s,r.onTriggerChange),u=g.useRef(!1),d=g.useRef(!1),c=g.useCallback(()=>u.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),f.jsx(nO,{asChild:!0,...a,children:f.jsx(st.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:l,onPointerMove:dt(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),d.current=!0)}),onPointerLeave:dt(e.onPointerLeave,()=>{r.onTriggerLeave(),d.current=!1}),onPointerDown:dt(e.onPointerDown,()=>{r.open&&r.onClose(),u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:dt(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:dt(e.onBlur,r.onClose),onClick:dt(e.onClick,r.onClose)})})});o0.displayName=Dd;var dO="TooltipPortal",[sA,fO]=fu(dO,{forceMount:void 0}),Ko="TooltipContent",i0=g.forwardRef((e,t)=>{const n=fO(Ko,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...i}=e,a=pu(Ko,e.__scopeTooltip);return f.jsx(Ca,{present:o||a.open,children:a.disableHoverableContent?f.jsx(a0,{side:r,...i,ref:t}):f.jsx(mO,{side:r,...i,ref:t})})}),mO=g.forwardRef((e,t)=>{const n=pu(Ko,e.__scopeTooltip),o=mm(Ko,e.__scopeTooltip),r=g.useRef(null),i=At(t,r),[a,s]=g.useState(null),{trigger:l,onClose:u}=n,d=r.current,{onPointerInTransitChange:c}=o,h=g.useCallback(()=>{s(null),c(!1)},[c]),y=g.useCallback((x,b)=>{const w=x.currentTarget,m={x:x.clientX,y:x.clientY},p=yO(m,w.getBoundingClientRect()),v=bO(m,p),_=xO(b.getBoundingClientRect()),S=_O([...v,..._]);s(S),c(!0)},[c]);return g.useEffect(()=>()=>h(),[h]),g.useEffect(()=>{if(l&&d){const x=w=>y(w,d),b=w=>y(w,l);return l.addEventListener("pointerleave",x),d.addEventListener("pointerleave",b),()=>{l.removeEventListener("pointerleave",x),d.removeEventListener("pointerleave",b)}}},[l,d,y,h]),g.useEffect(()=>{if(a){const x=b=>{const w=b.target,m={x:b.clientX,y:b.clientY},p=(l==null?void 0:l.contains(w))||(d==null?void 0:d.contains(w)),v=!wO(m,a);p?h():v&&(h(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,d,a,u,h]),f.jsx(a0,{...e,ref:i})}),[pO,hO]=fu(pa,{isInside:!1}),gO=Ox("TooltipContent"),a0=g.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,l=pu(Ko,n),u=mu(n),{onClose:d}=l;return g.useEffect(()=>(document.addEventListener(Td,d),()=>document.removeEventListener(Td,d)),[d]),g.useEffect(()=>{if(l.trigger){const c=h=>{const y=h.target;y!=null&&y.contains(l.trigger)&&d()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[l.trigger,d]),f.jsx(Qf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:c=>c.preventDefault(),onDismiss:d,children:f.jsxs(rO,{"data-state":l.stateAttribute,...u,...s,ref:t,style:{...s.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:[f.jsx(gO,{children:o}),f.jsx(pO,{scope:n,isInside:!0,children:f.jsx(sO,{id:l.contentId,role:"tooltip",children:r||o})})]})})});i0.displayName=Ko;var s0="TooltipArrow",vO=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=mu(n);return hO(s0,n).isInside?null:f.jsx(oO,{...r,...o,ref:t})});vO.displayName=s0;function yO(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function bO(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function xO(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function wO(e,t){const{x:n,y:o}=e;let r=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i],l=t[a],u=s.x,d=s.y,c=l.x,h=l.y;d>o!=h>o&&n<(c-u)*(o-d)/(h-d)+u&&(r=!r)}return r}function _O(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),SO(t)}function SO(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(r.y-a.y)>=(i.y-a.y)*(r.x-a.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const i=n[n.length-1],a=n[n.length-2];if((i.x-a.x)*(r.y-a.y)>=(i.y-a.y)*(r.x-a.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var kO=n0,$O=r0,NO=o0,l0=i0;const EO=kO,jO=$O,IO=NO,u0=g.forwardRef(({className:e,sideOffset:t=4,...n},o)=>f.jsx(l0,{ref:o,sideOffset:t,className:X("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=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 origin-[--radix-tooltip-content-transform-origin]",e),...n}));u0.displayName=l0.displayName;const $c=768;function CO(){const[e,t]=g.useState(void 0);return g.useEffect(()=>{const n=window.matchMedia(`(max-width: ${$c-1}px)`),o=()=>{t(window.innerWidth<$c)};return n.addEventListener("change",o),t(window.innerWidth<$c),()=>n.removeEventListener("change",o)},[]),!!e}const zO="sidebar_state",PO=60*60*24*7,OO="16rem",TO="18rem",DO="3rem",RO="b",c0=g.createContext(null);function hu(){const e=g.useContext(c0);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const pm=g.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:o,style:r,children:i,...a},s)=>{const l=CO(),[u,d]=g.useState(!1),[c,h]=g.useState(e),y=t??c,x=g.useCallback(p=>{const v=typeof p=="function"?p(y):p;n?n(v):h(v),document.cookie=`${zO}=${v}; path=/; max-age=${PO}`},[n,y]),b=g.useCallback(()=>l?d(p=>!p):x(p=>!p),[l,x]);g.useEffect(()=>{const p=v=>{v.key===RO&&(v.metaKey||v.ctrlKey)&&(v.preventDefault(),b())};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[b]);const w=y?"expanded":"collapsed",m=g.useMemo(()=>({state:w,open:y,setOpen:x,isMobile:l,openMobile:u,setOpenMobile:d,toggleSidebar:b}),[w,y,x,l,u,b]);return f.jsx(c0.Provider,{value:m,children:f.jsx(EO,{delayDuration:0,children:f.jsx("div",{style:{"--sidebar-width":OO,"--sidebar-width-icon":DO,...r},className:X("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",o),ref:s,...a,children:i})})})});pm.displayName="SidebarProvider";const d0=g.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:o,children:r,...i},a)=>{const{isMobile:s,state:l,openMobile:u,setOpenMobile:d}=hu();return n==="none"?f.jsx("div",{className:X("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:a,...i,children:r}):s?f.jsx(O4,{open:u,onOpenChange:d,...i,children:f.jsxs(jw,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":TO},side:e,children:[f.jsxs(Iw,{className:"sr-only",children:[f.jsx(Cw,{children:"Sidebar"}),f.jsx(zw,{children:"Displays the mobile sidebar."})]}),f.jsx("div",{className:"flex h-full w-full flex-col",children:r})]})}):f.jsxs("div",{ref:a,className:"group peer hidden text-sidebar-foreground md:block","data-state":l,"data-collapsible":l==="collapsed"?n:"","data-variant":t,"data-side":e,children:[f.jsx("div",{className:X("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),f.jsx("div",{className:X("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...i,children:f.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:r})})]})});d0.displayName="Sidebar";const f0=g.forwardRef(({className:e,onClick:t,...n},o)=>{const{toggleSidebar:r}=hu();return f.jsxs(Ne,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:X("h-7 w-7",e),onClick:i=>{t==null||t(i),r()},...n,children:[f.jsx(mC,{}),f.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});f0.displayName="SidebarTrigger";const AO=g.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:o}=hu();return f.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:X("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});AO.displayName="SidebarRail";const hm=g.forwardRef(({className:e,...t},n)=>f.jsx("main",{ref:n,className:X("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));hm.displayName="SidebarInset";const UO=g.forwardRef(({className:e,...t},n)=>f.jsx(cr,{ref:n,"data-sidebar":"input",className:X("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));UO.displayName="SidebarInput";const m0=g.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,"data-sidebar":"header",className:X("flex flex-col gap-2 p-2",e),...t}));m0.displayName="SidebarHeader";const LO=g.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,"data-sidebar":"footer",className:X("flex flex-col gap-2 p-2",e),...t}));LO.displayName="SidebarFooter";const MO=g.forwardRef(({className:e,...t},n)=>f.jsx(Xf,{ref:n,"data-sidebar":"separator",className:X("mx-2 w-auto bg-sidebar-border",e),...t}));MO.displayName="SidebarSeparator";const p0=g.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,"data-sidebar":"content",className:X("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));p0.displayName="SidebarContent";const h0=g.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,"data-sidebar":"group",className:X("relative flex w-full min-w-0 flex-col p-2",e),...t}));h0.displayName="SidebarGroup";const FO=g.forwardRef(({className:e,asChild:t=!1,...n},o)=>{const r=t?ro:"div";return f.jsx(r,{ref:o,"data-sidebar":"group-label",className:X("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})});FO.displayName="SidebarGroupLabel";const VO=g.forwardRef(({className:e,asChild:t=!1,...n},o)=>{const r=t?ro:"button";return f.jsx(r,{ref:o,"data-sidebar":"group-action",className:X("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})});VO.displayName="SidebarGroupAction";const g0=g.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,"data-sidebar":"group-content",className:X("w-full text-sm",e),...t}));g0.displayName="SidebarGroupContent";const gm=g.forwardRef(({className:e,...t},n)=>f.jsx("ul",{ref:n,"data-sidebar":"menu",className:X("flex w-full min-w-0 flex-col gap-1",e),...t}));gm.displayName="SidebarMenu";const vm=g.forwardRef(({className:e,...t},n)=>f.jsx("li",{ref:n,"data-sidebar":"menu-item",className:X("group/menu-item relative",e),...t}));vm.displayName="SidebarMenuItem";const ZO=Ia("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>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 shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),ym=g.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:o="default",tooltip:r,className:i,...a},s)=>{const l=e?ro:"button",{isMobile:u,state:d}=hu(),c=f.jsx(l,{ref:s,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:X(ZO({variant:n,size:o}),i),...a});return r?(typeof r=="string"&&(r={children:r}),f.jsxs(jO,{children:[f.jsx(IO,{asChild:!0,children:c}),f.jsx(u0,{side:"right",align:"center",hidden:d!=="collapsed"||u,...r})]})):c});ym.displayName="SidebarMenuButton";const WO=g.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...o},r)=>{const i=t?ro:"button";return f.jsx(i,{ref:r,"data-sidebar":"menu-action",className:X("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...o})});WO.displayName="SidebarMenuAction";const BO=g.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:X("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));BO.displayName="SidebarMenuBadge";const HO=g.forwardRef(({className:e,showIcon:t=!1,...n},o)=>{const r=g.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return f.jsxs("div",{ref:o,"data-sidebar":"menu-skeleton",className:X("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&f.jsx(ov,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),f.jsx(ov,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});HO.displayName="SidebarMenuSkeleton";const GO=g.forwardRef(({className:e,...t},n)=>f.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:X("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));GO.displayName="SidebarMenuSub";const KO=g.forwardRef(({...e},t)=>f.jsx("li",{ref:t,...e}));KO.displayName="SidebarMenuSubItem";const JO=g.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:o,...r},i)=>{const a=e?ro:"a";return f.jsx(a,{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:X("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground 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 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...r})});JO.displayName="SidebarMenuSubButton";function YO({items:e}){const t=Xn();return f.jsx(h0,{children:f.jsx(g0,{className:"flex flex-col gap-2",children:f.jsx(gm,{children:e.map(n=>{const r=t.pathname===n.url;return f.jsx(vm,{children:f.jsx(ym,{className:X("min-w-8 duration-200 ease-linear hover:bg-primary/5",r?"bg-primary text-primary-foreground duration-200 ease-linear hover:bg-primary/90 hover:text-primary-foreground active:bg-primary/90 active:text-primary-foreground":"min-w-8 duration-200 ease-linear"),tooltip:n.title,asChild:!0,children:f.jsxs(ou,{to:n.url,children:[n.icon&&f.jsx(n.icon,{}),f.jsx("span",{children:n.title})]})})},n.title)})})})})}const XO={navMain:[{title:"仪表板",url:"/dashboard",icon:uC},{title:"全局配置",url:"/settings",icon:iu}]};function v0({...e}){return f.jsxs(d0,{collapsible:"offcanvas",...e,children:[f.jsx(m0,{children:f.jsx(gm,{children:f.jsx(vm,{children:f.jsx(ym,{asChild:!0,className:"data-[slot=sidebar-menu-button]:!p-1.5",children:f.jsx(ou,{to:"/",children:f.jsx("span",{className:"text-base font-semibold",children:"Xiaozhi Client"})})})})})}),f.jsx(p0,{children:f.jsx(YO,{items:XO.navMain})})]})}var y0="AlertDialog",[QO,lA]=au(y0,[cw]),Qn=cw(),b0=e=>{const{__scopeAlertDialog:t,...n}=e,o=Qn(t);return f.jsx(nm,{...o,...n,modal:!0})};b0.displayName=y0;var qO="AlertDialogTrigger",x0=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Qn(n);return f.jsx(Nw,{...r,...o,ref:t})});x0.displayName=qO;var e2="AlertDialogPortal",w0=e=>{const{__scopeAlertDialog:t,...n}=e,o=Qn(t);return f.jsx(rm,{...o,...n})};w0.displayName=e2;var t2="AlertDialogOverlay",_0=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Qn(n);return f.jsx(za,{...r,...o,ref:t})});_0.displayName=t2;var Ao="AlertDialogContent",[n2,r2]=QO(Ao),o2=Ox("AlertDialogContent"),S0=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:o,...r}=e,i=Qn(n),a=g.useRef(null),s=At(t,a),l=g.useRef(null);return f.jsx(I4,{contentName:Ao,titleName:k0,docsSlug:"alert-dialog",children:f.jsx(n2,{scope:n,cancelRef:l,children:f.jsxs(Pa,{role:"alertdialog",...i,...r,ref:s,onOpenAutoFocus:dt(r.onOpenAutoFocus,u=>{var d;u.preventDefault(),(d=l.current)==null||d.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[f.jsx(o2,{children:o}),f.jsx(a2,{contentRef:a})]})})})});S0.displayName=Ao;var k0="AlertDialogTitle",$0=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Qn(n);return f.jsx(Oa,{...r,...o,ref:t})});$0.displayName=k0;var N0="AlertDialogDescription",E0=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Qn(n);return f.jsx(Ta,{...r,...o,ref:t})});E0.displayName=N0;var i2="AlertDialogAction",j0=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Qn(n);return f.jsx(Da,{...r,...o,ref:t})});j0.displayName=i2;var I0="AlertDialogCancel",C0=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,{cancelRef:r}=r2(I0,n),i=Qn(n),a=At(t,r);return f.jsx(Da,{...i,...o,ref:a})});C0.displayName=I0;var a2=({contentRef:e})=>{const t=`\`${Ao}\` requires a description for the component to be accessible for screen reader users.
181
-
182
- You can add a description to the \`${Ao}\` by passing a \`${N0}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
183
-
184
- Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Ao}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
185
-
186
- For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return g.useEffect(()=>{var o;document.getElementById((o=e.current)==null?void 0:o.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},s2=b0,l2=x0,u2=w0,z0=_0,P0=S0,O0=j0,T0=C0,D0=$0,R0=E0;const A0=s2,c2=l2,d2=u2,U0=g.forwardRef(({className:e,...t},n)=>f.jsx(z0,{className:X("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));U0.displayName=z0.displayName;const bm=g.forwardRef(({className:e,...t},n)=>f.jsxs(d2,{children:[f.jsx(U0,{}),f.jsx(P0,{ref:n,className:X("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));bm.displayName=P0.displayName;const xm=({className:e,...t})=>f.jsx("div",{className:X("flex flex-col space-y-2 text-center sm:text-left",e),...t});xm.displayName="AlertDialogHeader";const wm=({className:e,...t})=>f.jsx("div",{className:X("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});wm.displayName="AlertDialogFooter";const _m=g.forwardRef(({className:e,...t},n)=>f.jsx(D0,{ref:n,className:X("text-lg font-semibold",e),...t}));_m.displayName=D0.displayName;const Sm=g.forwardRef(({className:e,...t},n)=>f.jsx(R0,{ref:n,className:X("text-sm text-muted-foreground",e),...t}));Sm.displayName=R0.displayName;const km=g.forwardRef(({className:e,...t},n)=>f.jsx(O0,{ref:n,className:X(Yf(),e),...t}));km.displayName=O0.displayName;const $m=g.forwardRef(({className:e,...t},n)=>f.jsx(T0,{ref:n,className:X(Yf({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));$m.displayName=T0.displayName;const ha=nm,gu=Nw,f2=rm,vu=Da,L0=g.forwardRef(({className:e,...t},n)=>f.jsx(za,{ref:n,className:X("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));L0.displayName=za.displayName;const Jo=g.forwardRef(({className:e,children:t,...n},o)=>f.jsxs(f2,{children:[f.jsx(L0,{}),f.jsxs(Pa,{ref:o,className:X("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,f.jsxs(Da,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[f.jsx(Cx,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Jo.displayName=Pa.displayName;const Yo=({className:e,...t})=>f.jsx("div",{className:X("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Yo.displayName="DialogHeader";const Aa=({className:e,...t})=>f.jsx("div",{className:X("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Aa.displayName="DialogFooter";const Xo=g.forwardRef(({className:e,...t},n)=>f.jsx(Oa,{ref:n,className:X("text-lg font-semibold leading-none tracking-tight",e),...t}));Xo.displayName=Oa.displayName;const Qo=g.forwardRef(({className:e,...t},n)=>f.jsx(Ta,{ref:n,className:X("text-sm text-muted-foreground",e),...t}));Qo.displayName=Ta.displayName;const hv=e=>{let t;const n=new Set,o=(u,d)=>{const c=typeof u=="function"?u(t):u;if(!Object.is(c,t)){const h=t;t=d??(typeof c!="object"||c===null)?c:Object.assign({},t,c),n.forEach(y=>y(t,h))}},r=()=>t,s={setState:o,getState:r,getInitialState:()=>l,subscribe:u=>(n.add(u),()=>n.delete(u))},l=t=e(o,r,s);return s},m2=e=>e?hv(e):hv,p2=e=>e;function h2(e,t=p2){const n=P.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return P.useDebugValue(n),n}const g2=e=>{const t=m2(e),n=o=>h2(t,o);return Object.assign(n,t),n},v2=e=>g2,gv={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},ga=new Map,bs=e=>{const t=ga.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,o])=>[n,o.getState()])):{}},y2=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const o=ga.get(n.name);if(o)return{type:"tracked",store:e,...o};const r={connection:t.connect(n),stores:{}};return ga.set(n.name,r),{type:"tracked",store:e,...r}},b2=(e,t)=>{if(t===void 0)return;const n=ga.get(e);n&&(delete n.stores[t],Object.keys(n.stores).length===0&&ga.delete(e))},x2=e=>{var t,n;if(!e)return;const o=e.split(`
187
- `),r=o.findIndex(a=>a.includes("api.setState"));if(r<0)return;const i=((t=o[r+1])==null?void 0:t.trim())||"";return(n=/.+ (.+) .+/.exec(i))==null?void 0:n[1]},w2=(e,t={})=>(n,o,r)=>{const{enabled:i,anonymousActionType:a,store:s,...l}=t;let u;try{u=(i??(gv?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return e(n,o,r);const{connection:d,...c}=y2(s,u,l);let h=!0;r.setState=(b,w,m)=>{const p=n(b,w);if(!h)return p;const v=m===void 0?{type:a||x2(new Error().stack)||"anonymous"}:typeof m=="string"?{type:m}:m;return s===void 0?(d==null||d.send(v,o()),p):(d==null||d.send({...v,type:`${s}/${v.type}`},{...bs(l.name),[s]:r.getState()}),p)},r.devtools={cleanup:()=>{d&&typeof d.unsubscribe=="function"&&d.unsubscribe(),b2(l.name,s)}};const y=(...b)=>{const w=h;h=!1,n(...b),h=w},x=e(r.setState,o,r);if(c.type==="untracked"?d==null||d.init(x):(c.stores[c.store]=r,d==null||d.init(Object.fromEntries(Object.entries(c.stores).map(([b,w])=>[b,b===c.store?x:w.getState()])))),r.dispatchFromDevtools&&typeof r.dispatch=="function"){let b=!1;const w=r.dispatch;r.dispatch=(...m)=>{(gv?"production":void 0)!=="production"&&m[0].type==="__setState"&&!b&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),b=!0),w(...m)}}return d.subscribe(b=>{var w;switch(b.type){case"ACTION":if(typeof b.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return Nc(b.payload,m=>{if(m.type==="__setState"){if(s===void 0){y(m.state);return}Object.keys(m.state).length!==1&&console.error(`
188
- [zustand devtools middleware] Unsupported __setState action format.
189
- When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
190
- and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
191
- `);const p=m.state[s];if(p==null)return;JSON.stringify(r.getState())!==JSON.stringify(p)&&y(p);return}r.dispatchFromDevtools&&typeof r.dispatch=="function"&&r.dispatch(m)});case"DISPATCH":switch(b.payload.type){case"RESET":return y(x),s===void 0?d==null?void 0:d.init(r.getState()):d==null?void 0:d.init(bs(l.name));case"COMMIT":if(s===void 0){d==null||d.init(r.getState());return}return d==null?void 0:d.init(bs(l.name));case"ROLLBACK":return Nc(b.state,m=>{if(s===void 0){y(m),d==null||d.init(r.getState());return}y(m[s]),d==null||d.init(bs(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Nc(b.state,m=>{if(s===void 0){y(m);return}JSON.stringify(r.getState())!==JSON.stringify(m[s])&&y(m[s])});case"IMPORT_STATE":{const{nextLiftedState:m}=b.payload,p=(w=m.computedStates.slice(-1)[0])==null?void 0:w.state;if(!p)return;y(s===void 0?p:p[s]),d==null||d.send(null,m);return}case"PAUSE_RECORDING":return h=!h}return}}),x},_2=w2,Nc=(e,t)=>{let n;try{n=JSON.parse(e)}catch(o){console.error("[zustand devtools middleware] Could not parse the received json",o)}n!==void 0&&t(n)},vv=e=>Symbol.iterator in e,yv=e=>"entries"in e,bv=(e,t)=>{const n=e instanceof Map?e:new Map(e.entries()),o=t instanceof Map?t:new Map(t.entries());if(n.size!==o.size)return!1;for(const[r,i]of n)if(!Object.is(i,o.get(r)))return!1;return!0},S2=(e,t)=>{const n=e[Symbol.iterator](),o=t[Symbol.iterator]();let r=n.next(),i=o.next();for(;!r.done&&!i.done;){if(!Object.is(r.value,i.value))return!1;r=n.next(),i=o.next()}return!!r.done&&!!i.done};function k2(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:vv(e)&&vv(t)?yv(e)&&yv(t)?bv(e,t):S2(e,t):bv({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function $2(e){const t=P.useRef(void 0);return n=>{const o=e(n);return k2(t.current,o)?t.current:t.current=o}}const xv={connected:!1,config:null,status:null,restartStatus:void 0,portChangeStatus:void 0,wsUrl:"",mcpEndpoint:"",mcpServers:{},mcpServerConfig:{}},Nn=v2()(_2(e=>({...xv,setConnected:t=>{console.log("[Store] 更新 connected 状态:",t),e({connected:t},!1,"setConnected")},setConfig:t=>{console.log("[Store] 更新 config 状态:",t?"有配置数据":"无配置数据"),console.log("[Store] 同步更新 mcpEndpoint:",t==null?void 0:t.mcpEndpoint),e({config:t,mcpEndpoint:(t==null?void 0:t.mcpEndpoint)??""},!1,"setConfig")},setStatus:t=>{console.log("[Store] 更新 status 状态:",t),e({status:t},!1,"setStatus")},setRestartStatus:t=>e({restartStatus:t},!1,"setRestartStatus"),setPortChangeStatus:t=>e({portChangeStatus:t},!1,"setPortChangeStatus"),setWsUrl:t=>e({wsUrl:t},!1,"setWsUrl"),updateFromWebSocket:t=>e(n=>({...n,...t}),!1,"updateFromWebSocket"),reset:()=>e(xv,!1,"reset"),setMcpServers:t=>e({mcpServers:t},!1,"setMcpServers"),setMcpServerConfig:t=>e({mcpServerConfig:t},!1,"setMcpServerConfig"),setMcpEndpoint:t=>e({mcpEndpoint:t},!1,"setMcpEndpoint")}),{name:"websocket-store"})),M0=()=>Nn(e=>e.mcpEndpoint),F0=()=>Nn(e=>e.connected),oo=()=>Nn(e=>e.config),N2=()=>Nn(e=>e.portChangeStatus),E2=()=>Nn(e=>e.wsUrl),V0=()=>Nn(e=>{var t;return(t=e.config)==null?void 0:t.mcpServers}),j2=()=>Nn(e=>{var t;return(t=e.config)==null?void 0:t.mcpServerConfig}),I2=()=>Nn($2(e=>({setConnected:e.setConnected,setConfig:e.setConfig,setStatus:e.setStatus,setRestartStatus:e.setRestartStatus,setPortChangeStatus:e.setPortChangeStatus,setWsUrl:e.setWsUrl,setMcpEndpoint:e.setMcpEndpoint,setMcpServers:e.setMcpServers,setMcpServerConfig:e.setMcpServerConfig,updateFromWebSocket:e.updateFromWebSocket,reset:e.reset})));async function Z0(e,t=3e3){try{const n=new AbortController,o=setTimeout(()=>n.abort(),t);let r;try{r=await fetch(`http://localhost:${e}/api/status`,{method:"GET",signal:n.signal})}catch{r=await fetch(`http://localhost:${e}/health`,{method:"GET",signal:n.signal})}return clearTimeout(o),r.ok}catch{return!1}}async function C2(e,t=30,n=2e3,o){for(let r=1;r<=t;r++){if(o&&o(r,t),await Z0(e,1e3))return!0;r<t&&await new Promise(a=>setTimeout(a,n))}return!1}function wv(e,t){const n=window.location.protocol==="https:"?"wss:":"ws:",o=window.location.hostname||"localhost";return n==="ws:"&&e===80||n==="wss:"&&e===443?`${n}//${o}`:`${n}//${o}:${e}`}function z2(e){try{const t=new URL(e),n=Number.parseInt(t.port);return Number.isNaN(n)?null:n}catch{return null}}function Pr(){const[e,t]=g.useState({connected:!1,config:null,status:null}),n=g.useRef(null),[o,r]=g.useState(""),i=g.useRef(null),a=I2(),s=g.useCallback((v,_)=>{console.log("[WebSocket] 同步到 store:",v,_);try{switch(v){case"connected":a.setConnected(_),console.log("[WebSocket] Store connected 已更新为:",_);break;case"config":a.setConfig(_),console.log("[WebSocket] Store config 已更新");break;case"status":a.setStatus(_),console.log("[WebSocket] Store status 已更新:",_);break;case"restartStatus":a.setRestartStatus(_),console.log("[WebSocket] Store restartStatus 已更新");break;case"wsUrl":a.setWsUrl(_),console.log("[WebSocket] Store wsUrl 已更新:",_);break;case"portChangeStatus":a.setPortChangeStatus(_),console.log("[WebSocket] Store portChangeStatus 已更新:",_);break}}catch(S){console.error("Failed to sync to store:",S)}},[a]),l=g.useCallback(v=>{const _=localStorage.getItem("xiaozhi-ws-url");if(_)return _;let S=9999;if(v)S=v;else if(window.location.port){const $=Number.parseInt(window.location.port);Number.isNaN($)||(S=$)}else window.location.protocol==="http:"&&!window.location.port?S=80:window.location.protocol==="https:"&&!window.location.port&&(S=443);return wv(S)},[]),u=g.useCallback(()=>{i.current&&(clearInterval(i.current),i.current=null)},[]),d=g.useCallback(v=>{u();const _=()=>{v.readyState===WebSocket.OPEN&&v.send(JSON.stringify({type:"getStatus"}))};_(),i.current=setInterval(_,1e3)},[u]);g.useEffect(()=>{const v=l();r(v),s("wsUrl",v);const _=new WebSocket(v);return _.onopen=()=>{console.log(`[WebSocket] 连接已建立,URL: ${v}`);const S={connected:!0};t($=>({...$,...S})),s("connected",!0),console.log("[WebSocket] 发送初始请求: getConfig, getStatus"),_.send(JSON.stringify({type:"getConfig"})),_.send(JSON.stringify({type:"getStatus"})),d(_)},_.onmessage=S=>{const $=JSON.parse(S.data);switch(console.log("[WebSocket] 收到消息:",$),$.type){case"config":case"configUpdate":console.log("[WebSocket] 处理 config 更新:",$.data),t(N=>({...N,config:$.data})),s("config",$.data);break;case"status":case"statusUpdate":{console.log("[WebSocket] 处理 status 更新:",$.data);const N=$.data;N&&typeof N=="object"?(t(I=>({...I,status:N})),setTimeout(()=>{s("status",N)},0)):console.warn("[WebSocket] 收到无效的 status 数据:",N);break}case"restartStatus":console.log("[WebSocket] 处理 restartStatus 更新:",$.data),t(N=>({...N,restartStatus:$.data})),s("restartStatus",$.data);break;default:console.log("[WebSocket] 未处理的消息类型:",$.type)}},_.onclose=()=>{console.log("[WebSocket] 连接已断开"),t(S=>({...S,connected:!1})),s("connected",!1),u()},_.onerror=S=>{console.error("WebSocket error:",S)},n.current=_,()=>{u(),_.close()}},[l,d,u,s]);const c=g.useCallback(v=>new Promise((_,S)=>{var $;if((($=n.current)==null?void 0:$.readyState)===WebSocket.OPEN){const N=`${o.replace(/^ws(s)?:\/\//,"http$1://")}/api/config`;fetch(N,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(v)}).then(I=>I.ok?I.json().then(()=>{var D;(D=n.current)==null||D.send(JSON.stringify({type:"updateConfig",config:v})),_()}):I.text().then(D=>{S(new Error(D||"保存配置失败"))})).catch(S)}else S(new Error("WebSocket 未连接"))}),[o]),h=g.useCallback(()=>{var v;((v=n.current)==null?void 0:v.readyState)===WebSocket.OPEN&&n.current.send(JSON.stringify({type:"getStatus"}))},[]),y=g.useCallback(()=>new Promise((v,_)=>{var S;((S=n.current)==null?void 0:S.readyState)===WebSocket.OPEN?(console.log("[WebSocket] 发送重启请求"),n.current.send(JSON.stringify({type:"restartService"})),console.log("[WebSocket] 等待服务重启..."),setTimeout(()=>{console.log("[WebSocket] 服务重启等待时间结束,假设重启完成"),v()},5e3)):_(new Error("WebSocket 未连接"))}),[]),x=g.useCallback(v=>{v?localStorage.setItem("xiaozhi-ws-url",v):localStorage.removeItem("xiaozhi-ws-url"),window.location.reload()},[]),b=g.useCallback(async v=>{if((z2(o)||9999)!==v){s("portChangeStatus",{status:"checking",targetPort:v,timestamp:Date.now()});try{const S=Nn.getState().connected;console.log(`[WebSocket] 开始端口切换到 ${v},当前连接状态: ${S}`),S?(console.log("[WebSocket] 执行已连接状态下的端口切换"),await w(v)):(console.log("[WebSocket] 执行未连接状态下的端口切换"),await m(v)),console.log(`[WebSocket] 端口切换到 ${v} 成功完成`),s("portChangeStatus",{status:"completed",targetPort:v,timestamp:Date.now()})}catch(S){const $=S instanceof Error?S.message:"端口切换失败";throw console.error(`[WebSocket] 端口切换到 ${v} 失败:`,$),s("portChangeStatus",{status:"failed",targetPort:v,error:$,timestamp:Date.now()}),S}}},[o,s]),w=g.useCallback(async v=>{var N;const _=Nn.getState().config;if(!_)throw new Error("配置数据未加载,请刷新页面后重试");console.log(`[WebSocket] 当前配置端口: ${(N=_.webUI)==null?void 0:N.port}, 目标端口: ${v}`),console.log("[WebSocket] 步骤1: 更新配置文件");const S={..._,webUI:{..._.webUI,port:v}};try{await c(S),console.log("[WebSocket] 配置文件更新成功")}catch(I){throw new Error(`配置文件更新失败: ${I instanceof Error?I.message:"未知错误"}`)}console.log("[WebSocket] 步骤2: 重启服务"),s("portChangeStatus",{status:"polling",targetPort:v,currentAttempt:0,maxAttempts:45,timestamp:Date.now()});try{await y(),console.log("[WebSocket] 服务重启请求已发送")}catch(I){throw new Error(`服务重启失败: ${I instanceof Error?I.message:"未知错误"}`)}if(console.log(`[WebSocket] 开始轮询新端口 ${v}`),!await C2(v,45,2e3,(I,D)=>{console.log(`[WebSocket] 端口轮询进度: ${I}/${D}`),s("portChangeStatus",{status:"polling",targetPort:v,currentAttempt:I,maxAttempts:D,timestamp:Date.now()})}))throw new Error(`新端口 ${v} 在90秒超时时间内未可用,请检查服务是否正常启动`);console.log(`[WebSocket] 新端口 ${v} 已可用`),await p(v)},[c,y,s]),m=g.useCallback(async v=>{if(!await Z0(v))throw new Error(`端口 ${v} 不可用,请检查服务端是否已启动`);await p(v)},[]),p=g.useCallback(async v=>{console.log(`[WebSocket] 步骤4: 连接到新端口 ${v}`),s("portChangeStatus",{status:"connecting",targetPort:v,timestamp:Date.now()});try{const _=wv(v);console.log(`[WebSocket] 新的WebSocket URL: ${_}`),localStorage.setItem("xiaozhi-ws-url",_),console.log("[WebSocket] 新URL已保存到localStorage"),console.log("[WebSocket] 重新加载页面以建立新连接"),window.location.reload()}catch(_){throw new Error(`连接到新端口失败: ${_ instanceof Error?_.message:"未知错误"}`)}},[s]);return{...e,updateConfig:c,refreshStatus:h,restartService:y,wsUrl:o,setCustomWsUrl:x,changePort:b}}const _v=e=>`${e.slice(0,30)}...${e.slice(-10)}`,P2=e=>{if(!e.trim())return"请输入接入点地址";const t="wss://api.xiaozhi.me/mcp/?token=";if(!e.startsWith(t))return"接入点格式无效,请输入正确的小智服务端接入点地址";const n=e.substring(t.length);if(!n)return"接入点格式无效,缺少 token 参数";const o=n.split(".");if(o.length!==3)return"接入点格式无效,token 格式不正确";for(const r of o)if(!r||!/^[A-Za-z0-9_-]+$/.test(r))return"接入点格式无效,token 格式不正确";return null};function O2(){const[e,t]=g.useState(!1),[n,o]=g.useState(!1),[r,i]=g.useState(""),[a,s]=g.useState(!1),[l,u]=g.useState(!1),[d,c]=g.useState(""),[h,y]=g.useState(!1),[x,b]=g.useState(""),w=oo(),m=M0(),{updateConfig:p}=Pr(),v=async O=>{var G;try{if((G=navigator.clipboard)!=null&&G.writeText)await navigator.clipboard.writeText(O),pe.success("接入点地址已复制到剪贴板");else{const U=document.createElement("textarea");U.value=O,U.style.position="fixed",U.style.opacity="0",document.body.appendChild(U),U.select();const B=document.execCommand("copy");if(document.body.removeChild(U),B)pe.success("接入点地址已复制到剪贴板");else throw new Error("复制命令执行失败")}}catch(U){console.error("复制失败:",U),pe.error("复制失败,请手动复制")}},_=async()=>{if(!w||!r){pe.error("配置数据未加载或未选择要删除的接入点");return}s(!0);try{const G=(Array.isArray(m)?m:[m]).filter(ee=>ee!==r),U=G.length>0?G.length===1?G[0]:G:"",B={...w,mcpEndpoint:U};await p(B),pe.success("接入点已删除"),o(!1),i("")}catch(O){console.error("删除接入点失败:",O),pe.error(O instanceof Error?O.message:"删除接入点失败")}finally{s(!1)}},S=async()=>{const O=P2(d);if(O){b(O);return}const G=Array.isArray(m)?m:[m];if(G.includes(d)){b("该接入点已存在");return}if(!w){pe.error("配置数据未加载,请稍后重试");return}y(!0);try{const U=[d,...G.filter(ee=>ee)],B={...w,mcpEndpoint:U};await p(B),pe.success("接入点添加成功"),u(!1),c(""),b("")}catch(U){console.error("添加接入点失败:",U),pe.error(U instanceof Error?U.message:"添加接入点失败")}finally{y(!1)}},$=()=>{c(""),b(""),u(!0)},N=O=>{c(O),x&&b("")},I=O=>{i(O),o(!0)},D=g.useMemo(()=>{let O=[];return Array.isArray(m)&&(O=m),typeof m=="string"&&m.length&&O.push(m),O},[m]);return f.jsxs(ha,{open:e,onOpenChange:t,children:[f.jsx(gu,{asChild:!0,children:f.jsx(Ne,{variant:"secondary",size:"icon",className:"size-8",children:f.jsx(iu,{className:"size-4"})})}),f.jsxs(Jo,{className:"sm:max-w-[600px]",children:[f.jsxs(Yo,{className:"mb-4",children:[f.jsx(Xo,{children:"配置小智服务端接入点"}),f.jsx(Qo,{children:"点击保存后,需要重启服务才会生效。"})]}),f.jsxs("div",{className:"flex flex-col gap-2",children:[D.map(O=>f.jsxs("div",{className:"flex items-center justify-between p-4 bg-slate-50 rounded-md font-mono",children:[f.jsx("span",{className:"flex-1 text-ellipsis overflow-hidden whitespace-nowrap",children:_v(O)}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Ne,{variant:"outline",size:"icon",onClick:()=>v(O),title:"复制完整地址",children:f.jsx(iC,{className:"size-4"})}),f.jsx(Ne,{variant:"outline",size:"icon",onClick:()=>I(O),title:"删除此接入点",children:f.jsx(Ix,{className:"size-4 text-red-500"})})]})]},O)),D.length===0&&f.jsxs("div",{className:"flex flex-col items-center flex-1 text-sm text-muted-foreground text-center justify-center gap-2",children:[f.jsx(nC,{}),f.jsx("span",{children:"暂无接入点,请添加"})]}),f.jsxs("div",{className:"flex items-center gap-2 mt-4",children:[f.jsxs(Ne,{size:"icon",className:"flex-1 flex items-center gap-2",onClick:$,children:[f.jsx(Gf,{className:"size-4"}),f.jsx("span",{children:"添加小智服务端接入点"})]}),f.jsx(Ne,{variant:"outline",size:"icon",className:"flex-1 flex items-center gap-2",onClick:()=>window.open("https://xiaozhi.me/console/agents","_blank"),children:f.jsx("span",{children:"打开小智服务端"})})]})]})]}),f.jsx(A0,{open:n,onOpenChange:o,children:f.jsxs(bm,{children:[f.jsxs(xm,{children:[f.jsx(_m,{children:"确认删除接入点"}),f.jsxs(Sm,{children:['确定要删除接入点 "',_v(r),'" 吗?此操作无法撤销。']})]}),f.jsxs(wm,{children:[f.jsx($m,{disabled:a,children:"取消"}),f.jsx(km,{onClick:_,disabled:a,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:a?"删除中...":"确定删除"})]})]})}),f.jsx(ha,{open:l,onOpenChange:u,children:f.jsxs(Jo,{className:"sm:max-w-[500px]",children:[f.jsxs(Yo,{children:[f.jsx(Xo,{children:"添加新的接入点"}),f.jsx(Qo,{children:"请输入小智服务端接入点地址"})]}),f.jsx("div",{className:"grid gap-4 py-4",children:f.jsxs("div",{className:"space-y-2",children:[f.jsx(cr,{placeholder:"请输入接入点地址,例如:wss://api.xiaozhi.me/mcp/?token=...",value:d,onChange:O=>N(O.target.value),disabled:h,className:"font-mono text-sm"}),x&&f.jsx("p",{className:"text-sm text-red-500",children:x})]})}),f.jsxs(Aa,{children:[f.jsx(vu,{asChild:!0,children:f.jsx(Ne,{variant:"outline",disabled:h,children:"取消"})}),f.jsx(Ne,{onClick:S,disabled:h||!d.trim(),children:h?"添加中...":"确定"})]})]})})]})}var Ua=e=>e.type==="checkbox",Fr=e=>e instanceof Date,ct=e=>e==null;const W0=e=>typeof e=="object";var Re=e=>!ct(e)&&!Array.isArray(e)&&W0(e)&&!Fr(e),B0=e=>Re(e)&&e.target?Ua(e.target)?e.target.checked:e.target.value:e,T2=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,H0=(e,t)=>e.has(T2(t)),D2=e=>{const t=e.constructor&&e.constructor.prototype;return Re(t)&&t.hasOwnProperty("isPrototypeOf")},Nm=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ve(e){let t;const n=Array.isArray(e),o=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(Nm&&(e instanceof Blob||o))&&(n||Re(e)))if(t=n?[]:{},!n&&!D2(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Ve(e[r]));else return e;return t}var yu=e=>/^\w*$/.test(e),Te=e=>e===void 0,Em=e=>Array.isArray(e)?e.filter(Boolean):[],jm=e=>Em(e.replace(/["|']|\]/g,"").split(/\.|\[/)),W=(e,t,n)=>{if(!t||!Re(e))return n;const o=(yu(t)?[t]:jm(t)).reduce((r,i)=>ct(r)?r:r[i],e);return Te(o)||o===e?Te(e[t])?n:e[t]:o},Nt=e=>typeof e=="boolean",be=(e,t,n)=>{let o=-1;const r=yu(t)?[t]:jm(t),i=r.length,a=i-1;for(;++o<i;){const s=r[o];let l=n;if(o!==a){const u=e[s];l=Re(u)||Array.isArray(u)?u:isNaN(+r[o+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=l,e=e[s]}};const wl={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},qt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Tn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Im=P.createContext(null);Im.displayName="HookFormContext";const bu=()=>P.useContext(Im),R2=e=>{const{children:t,...n}=e;return P.createElement(Im.Provider,{value:n},t)};var G0=(e,t,n,o=!0)=>{const r={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(r,i,{get:()=>{const a=i;return t._proxyFormState[a]!==qt.all&&(t._proxyFormState[a]=!o||qt.all),n&&(n[a]=!0),e[a]}});return r};const Cm=typeof window<"u"?P.useLayoutEffect:P.useEffect;function A2(e){const t=bu(),{control:n=t.control,disabled:o,name:r,exact:i}=e||{},[a,s]=P.useState(n._formState),l=P.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Cm(()=>n._subscribe({name:r,formState:l.current,exact:i,callback:u=>{!o&&s({...n._formState,...u})}}),[r,o,i]),P.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),P.useMemo(()=>G0(a,n,l.current,!1),[a,n])}var wn=e=>typeof e=="string",K0=(e,t,n,o,r)=>wn(e)?(o&&t.watch.add(e),W(n,e,r)):Array.isArray(e)?e.map(i=>(o&&t.watch.add(i),W(n,i))):(o&&(t.watchAll=!0),n),Rd=e=>ct(e)||!W0(e);function An(e,t,n=new WeakSet){if(Rd(e)||Rd(t))return e===t;if(Fr(e)&&Fr(t))return e.getTime()===t.getTime();const o=Object.keys(e),r=Object.keys(t);if(o.length!==r.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of o){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const s=t[i];if(Fr(a)&&Fr(s)||Re(a)&&Re(s)||Array.isArray(a)&&Array.isArray(s)?!An(a,s,n):a!==s)return!1}}return!0}function U2(e){const t=bu(),{control:n=t.control,name:o,defaultValue:r,disabled:i,exact:a,compute:s}=e||{},l=P.useRef(r),u=P.useRef(s),d=P.useRef(void 0);u.current=s;const c=P.useMemo(()=>n._getWatch(o,l.current),[n,o]),[h,y]=P.useState(u.current?u.current(c):c);return Cm(()=>n._subscribe({name:o,formState:{values:!0},exact:a,callback:x=>{if(!i){const b=K0(o,n._names,x.values||n._formValues,!1,l.current);if(u.current){const w=u.current(b);An(w,d.current)||(y(w),d.current=w)}else y(b)}}}),[n,i,o,a]),P.useEffect(()=>n._removeUnmounted()),h}function L2(e){const t=bu(),{name:n,disabled:o,control:r=t.control,shouldUnregister:i,defaultValue:a}=e,s=H0(r._names.array,n),l=P.useMemo(()=>W(r._formValues,n,W(r._defaultValues,n,a)),[r,n,a]),u=U2({control:r,name:n,defaultValue:l,exact:!0}),d=A2({control:r,name:n,exact:!0}),c=P.useRef(e),h=P.useRef(r.register(n,{...e.rules,value:u,...Nt(e.disabled)?{disabled:e.disabled}:{}}));c.current=e;const y=P.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!W(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!W(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!W(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!W(d.validatingFields,n)},error:{enumerable:!0,get:()=>W(d.errors,n)}}),[d,n]),x=P.useCallback(p=>h.current.onChange({target:{value:B0(p),name:n},type:wl.CHANGE}),[n]),b=P.useCallback(()=>h.current.onBlur({target:{value:W(r._formValues,n),name:n},type:wl.BLUR}),[n,r._formValues]),w=P.useCallback(p=>{const v=W(r._fields,n);v&&p&&(v._f.ref={focus:()=>p.focus&&p.focus(),select:()=>p.select&&p.select(),setCustomValidity:_=>p.setCustomValidity(_),reportValidity:()=>p.reportValidity()})},[r._fields,n]),m=P.useMemo(()=>({name:n,value:u,...Nt(o)||d.disabled?{disabled:d.disabled||o}:{},onChange:x,onBlur:b,ref:w}),[n,o,d.disabled,x,b,w,u]);return P.useEffect(()=>{const p=r._options.shouldUnregister||i;r.register(n,{...c.current.rules,...Nt(c.current.disabled)?{disabled:c.current.disabled}:{}});const v=(_,S)=>{const $=W(r._fields,_);$&&$._f&&($._f.mount=S)};if(v(n,!0),p){const _=Ve(W(r._options.defaultValues,n));be(r._defaultValues,n,_),Te(W(r._formValues,n))&&be(r._formValues,n,_)}return!s&&r.register(n),()=>{(s?p&&!r._state.action:p)?r.unregister(n):v(n,!1)}},[n,r,s,i]),P.useEffect(()=>{r._setDisabledField({disabled:o,name:n})},[o,n,r]),P.useMemo(()=>({field:m,formState:d,fieldState:y}),[m,d,y])}const M2=e=>e.render(L2(e));var zm=(e,t,n,o,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[o]:r||!0}}:{},Hi=e=>Array.isArray(e)?e:[e],Sv=()=>{let e=[];return{get observers(){return e},next:r=>{for(const i of e)i.next&&i.next(r)},subscribe:r=>(e.push(r),{unsubscribe:()=>{e=e.filter(i=>i!==r)}}),unsubscribe:()=>{e=[]}}},gt=e=>Re(e)&&!Object.keys(e).length,Pm=e=>e.type==="file",en=e=>typeof e=="function",_l=e=>{if(!Nm)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},J0=e=>e.type==="select-multiple",Om=e=>e.type==="radio",F2=e=>Om(e)||Ua(e),Ec=e=>_l(e)&&e.isConnected;function V2(e,t){const n=t.slice(0,-1).length;let o=0;for(;o<n;)e=Te(e)?o++:e[t[o++]];return e}function Z2(e){for(const t in e)if(e.hasOwnProperty(t)&&!Te(e[t]))return!1;return!0}function Ue(e,t){const n=Array.isArray(t)?t:yu(t)?[t]:jm(t),o=n.length===1?e:V2(e,n),r=n.length-1,i=n[r];return o&&delete o[i],r!==0&&(Re(o)&&gt(o)||Array.isArray(o)&&Z2(o))&&Ue(e,n.slice(0,-1)),e}var Y0=e=>{for(const t in e)if(en(e[t]))return!0;return!1};function Sl(e,t={}){const n=Array.isArray(e);if(Re(e)||n)for(const o in e)Array.isArray(e[o])||Re(e[o])&&!Y0(e[o])?(t[o]=Array.isArray(e[o])?[]:{},Sl(e[o],t[o])):ct(e[o])||(t[o]=!0);return t}function X0(e,t,n){const o=Array.isArray(e);if(Re(e)||o)for(const r in e)Array.isArray(e[r])||Re(e[r])&&!Y0(e[r])?Te(t)||Rd(n[r])?n[r]=Array.isArray(e[r])?Sl(e[r],[]):{...Sl(e[r])}:X0(e[r],ct(t)?{}:t[r],n[r]):n[r]=!An(e[r],t[r]);return n}var ji=(e,t)=>X0(e,t,Sl(t));const kv={value:!1,isValid:!1},$v={value:!0,isValid:!0};var Q0=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Te(e[0].attributes.value)?Te(e[0].value)||e[0].value===""?$v:{value:e[0].value,isValid:!0}:$v:kv}return kv},q0=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:o})=>Te(e)?e:t?e===""?NaN:e&&+e:n&&wn(e)?new Date(e):o?o(e):e;const Nv={isValid:!1,value:null};var e_=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Nv):Nv;function Ev(e){const t=e.ref;return Pm(t)?t.files:Om(t)?e_(e.refs).value:J0(t)?[...t.selectedOptions].map(({value:n})=>n):Ua(t)?Q0(e.refs).value:q0(Te(t.value)?e.ref.value:t.value,e)}var W2=(e,t,n,o)=>{const r={};for(const i of e){const a=W(t,i);a&&be(r,i,a._f)}return{criteriaMode:n,names:[...e],fields:r,shouldUseNativeValidation:o}},kl=e=>e instanceof RegExp,Ii=e=>Te(e)?e:kl(e)?e.source:Re(e)?kl(e.value)?e.value.source:e.value:e,jv=e=>({isOnSubmit:!e||e===qt.onSubmit,isOnBlur:e===qt.onBlur,isOnChange:e===qt.onChange,isOnAll:e===qt.all,isOnTouch:e===qt.onTouched});const Iv="AsyncFunction";var B2=e=>!!e&&!!e.validate&&!!(en(e.validate)&&e.validate.constructor.name===Iv||Re(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Iv)),H2=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Cv=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(o=>e.startsWith(o)&&/^\.\w+/.test(e.slice(o.length))));const Gi=(e,t,n,o)=>{for(const r of n||Object.keys(e)){const i=W(e,r);if(i){const{_f:a,...s}=i;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],r)&&!o)return!0;if(a.ref&&t(a.ref,a.name)&&!o)return!0;if(Gi(s,t))break}else if(Re(s)&&Gi(s,t))break}}};function zv(e,t,n){const o=W(e,n);if(o||yu(n))return{error:o,name:n};const r=n.split(".");for(;r.length;){const i=r.join("."),a=W(t,i),s=W(e,i);if(a&&!Array.isArray(a)&&n!==i)return{name:n};if(s&&s.type)return{name:i,error:s};if(s&&s.root&&s.root.type)return{name:`${i}.root`,error:s.root};r.pop()}return{name:n}}var G2=(e,t,n,o)=>{n(e);const{name:r,...i}=e;return gt(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(a=>t[a]===(!o||qt.all))},K2=(e,t,n)=>!e||!t||e===t||Hi(e).some(o=>o&&(n?o===t:o.startsWith(t)||t.startsWith(o))),J2=(e,t,n,o,r)=>r.isOnAll?!1:!n&&r.isOnTouch?!(t||e):(n?o.isOnBlur:r.isOnBlur)?!e:(n?o.isOnChange:r.isOnChange)?e:!0,Y2=(e,t)=>!Em(W(e,t)).length&&Ue(e,t),X2=(e,t,n)=>{const o=Hi(W(e,n));return be(o,"root",t[n]),be(e,n,o),e},Fs=e=>wn(e);function Pv(e,t,n="validate"){if(Fs(e)||Array.isArray(e)&&e.every(Fs)||Nt(e)&&!e)return{type:n,message:Fs(e)?e:"",ref:t}}var go=e=>Re(e)&&!kl(e)?e:{value:e,message:""},Ov=async(e,t,n,o,r,i)=>{const{ref:a,refs:s,required:l,maxLength:u,minLength:d,min:c,max:h,pattern:y,validate:x,name:b,valueAsNumber:w,mount:m}=e._f,p=W(n,b);if(!m||t.has(b))return{};const v=s?s[0]:a,_=U=>{r&&v.reportValidity&&(v.setCustomValidity(Nt(U)?"":U||""),v.reportValidity())},S={},$=Om(a),N=Ua(a),I=$||N,D=(w||Pm(a))&&Te(a.value)&&Te(p)||_l(a)&&a.value===""||p===""||Array.isArray(p)&&!p.length,O=zm.bind(null,b,o,S),G=(U,B,ee,re=Tn.maxLength,M=Tn.minLength)=>{const te=U?B:ee;S[b]={type:U?re:M,message:te,ref:a,...O(U?re:M,te)}};if(i?!Array.isArray(p)||!p.length:l&&(!I&&(D||ct(p))||Nt(p)&&!p||N&&!Q0(s).isValid||$&&!e_(s).isValid)){const{value:U,message:B}=Fs(l)?{value:!!l,message:l}:go(l);if(U&&(S[b]={type:Tn.required,message:B,ref:v,...O(Tn.required,B)},!o))return _(B),S}if(!D&&(!ct(c)||!ct(h))){let U,B;const ee=go(h),re=go(c);if(!ct(p)&&!isNaN(p)){const M=a.valueAsNumber||p&&+p;ct(ee.value)||(U=M>ee.value),ct(re.value)||(B=M<re.value)}else{const M=a.valueAsDate||new Date(p),te=Y=>new Date(new Date().toDateString()+" "+Y),E=a.type=="time",F=a.type=="week";wn(ee.value)&&p&&(U=E?te(p)>te(ee.value):F?p>ee.value:M>new Date(ee.value)),wn(re.value)&&p&&(B=E?te(p)<te(re.value):F?p<re.value:M<new Date(re.value))}if((U||B)&&(G(!!U,ee.message,re.message,Tn.max,Tn.min),!o))return _(S[b].message),S}if((u||d)&&!D&&(wn(p)||i&&Array.isArray(p))){const U=go(u),B=go(d),ee=!ct(U.value)&&p.length>+U.value,re=!ct(B.value)&&p.length<+B.value;if((ee||re)&&(G(ee,U.message,B.message),!o))return _(S[b].message),S}if(y&&!D&&wn(p)){const{value:U,message:B}=go(y);if(kl(U)&&!p.match(U)&&(S[b]={type:Tn.pattern,message:B,ref:a,...O(Tn.pattern,B)},!o))return _(B),S}if(x){if(en(x)){const U=await x(p,n),B=Pv(U,v);if(B&&(S[b]={...B,...O(Tn.validate,B.message)},!o))return _(B.message),S}else if(Re(x)){let U={};for(const B in x){if(!gt(U)&&!o)break;const ee=Pv(await x[B](p,n),v,B);ee&&(U={...ee,...O(B,ee.message)},_(ee.message),o&&(S[b]=U))}if(!gt(U)&&(S[b]={ref:v,...U},!o))return S}}return _(!0),S};const Q2={mode:qt.onSubmit,reValidateMode:qt.onChange,shouldFocusError:!0};function q2(e={}){let t={...Q2,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:en(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},o={},r=Re(t.defaultValues)||Re(t.values)?Ve(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:Ve(r),a={action:!1,mount:!1,watch:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let c={...d};const h={array:Sv(),state:Sv()},y=t.criteriaMode===qt.all,x=k=>C=>{clearTimeout(u),u=setTimeout(k,C)},b=async k=>{if(!t.disabled&&(d.isValid||c.isValid||k)){const C=t.resolver?gt((await N()).errors):await D(o,!0);C!==n.isValid&&h.state.next({isValid:C})}},w=(k,C)=>{!t.disabled&&(d.isValidating||d.validatingFields||c.isValidating||c.validatingFields)&&((k||Array.from(s.mount)).forEach(z=>{z&&(C?be(n.validatingFields,z,C):Ue(n.validatingFields,z))}),h.state.next({validatingFields:n.validatingFields,isValidating:!gt(n.validatingFields)}))},m=(k,C=[],z,Z,V=!0,A=!0)=>{if(Z&&z&&!t.disabled){if(a.action=!0,A&&Array.isArray(W(o,k))){const q=z(W(o,k),Z.argA,Z.argB);V&&be(o,k,q)}if(A&&Array.isArray(W(n.errors,k))){const q=z(W(n.errors,k),Z.argA,Z.argB);V&&be(n.errors,k,q),Y2(n.errors,k)}if((d.touchedFields||c.touchedFields)&&A&&Array.isArray(W(n.touchedFields,k))){const q=z(W(n.touchedFields,k),Z.argA,Z.argB);V&&be(n.touchedFields,k,q)}(d.dirtyFields||c.dirtyFields)&&(n.dirtyFields=ji(r,i)),h.state.next({name:k,isDirty:G(k,C),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else be(i,k,C)},p=(k,C)=>{be(n.errors,k,C),h.state.next({errors:n.errors})},v=k=>{n.errors=k,h.state.next({errors:n.errors,isValid:!1})},_=(k,C,z,Z)=>{const V=W(o,k);if(V){const A=W(i,k,Te(z)?W(r,k):z);Te(A)||Z&&Z.defaultChecked||C?be(i,k,C?A:Ev(V._f)):ee(k,A),a.mount&&b()}},S=(k,C,z,Z,V)=>{let A=!1,q=!1;const ve={name:k};if(!t.disabled){if(!z||Z){(d.isDirty||c.isDirty)&&(q=n.isDirty,n.isDirty=ve.isDirty=G(),A=q!==ve.isDirty);const ye=An(W(r,k),C);q=!!W(n.dirtyFields,k),ye?Ue(n.dirtyFields,k):be(n.dirtyFields,k,!0),ve.dirtyFields=n.dirtyFields,A=A||(d.dirtyFields||c.dirtyFields)&&q!==!ye}if(z){const ye=W(n.touchedFields,k);ye||(be(n.touchedFields,k,z),ve.touchedFields=n.touchedFields,A=A||(d.touchedFields||c.touchedFields)&&ye!==z)}A&&V&&h.state.next(ve)}return A?ve:{}},$=(k,C,z,Z)=>{const V=W(n.errors,k),A=(d.isValid||c.isValid)&&Nt(C)&&n.isValid!==C;if(t.delayError&&z?(l=x(()=>p(k,z)),l(t.delayError)):(clearTimeout(u),l=null,z?be(n.errors,k,z):Ue(n.errors,k)),(z?!An(V,z):V)||!gt(Z)||A){const q={...Z,...A&&Nt(C)?{isValid:C}:{},errors:n.errors,name:k};n={...n,...q},h.state.next(q)}},N=async k=>{w(k,!0);const C=await t.resolver(i,t.context,W2(k||s.mount,o,t.criteriaMode,t.shouldUseNativeValidation));return w(k),C},I=async k=>{const{errors:C}=await N(k);if(k)for(const z of k){const Z=W(C,z);Z?be(n.errors,z,Z):Ue(n.errors,z)}else n.errors=C;return C},D=async(k,C,z={valid:!0})=>{for(const Z in k){const V=k[Z];if(V){const{_f:A,...q}=V;if(A){const ve=s.array.has(A.name),ye=V._f&&B2(V._f);ye&&d.validatingFields&&w([Z],!0);const tt=await Ov(V,s.disabled,i,y,t.shouldUseNativeValidation&&!C,ve);if(ye&&d.validatingFields&&w([Z]),tt[A.name]&&(z.valid=!1,C))break;!C&&(W(tt,A.name)?ve?X2(n.errors,tt,A.name):be(n.errors,A.name,tt[A.name]):Ue(n.errors,A.name))}!gt(q)&&await D(q,C,z)}}return z.valid},O=()=>{for(const k of s.unMount){const C=W(o,k);C&&(C._f.refs?C._f.refs.every(z=>!Ec(z)):!Ec(C._f.ref))&&me(k)}s.unMount=new Set},G=(k,C)=>!t.disabled&&(k&&C&&be(i,k,C),!An(Y(),r)),U=(k,C,z)=>K0(k,s,{...a.mount?i:Te(C)?r:wn(k)?{[k]:C}:C},z,C),B=k=>Em(W(a.mount?i:r,k,t.shouldUnregister?W(r,k,[]):[])),ee=(k,C,z={})=>{const Z=W(o,k);let V=C;if(Z){const A=Z._f;A&&(!A.disabled&&be(i,k,q0(C,A)),V=_l(A.ref)&&ct(C)?"":C,J0(A.ref)?[...A.ref.options].forEach(q=>q.selected=V.includes(q.value)):A.refs?Ua(A.ref)?A.refs.forEach(q=>{(!q.defaultChecked||!q.disabled)&&(Array.isArray(V)?q.checked=!!V.find(ve=>ve===q.value):q.checked=V===q.value||!!V)}):A.refs.forEach(q=>q.checked=q.value===V):Pm(A.ref)?A.ref.value="":(A.ref.value=V,A.ref.type||h.state.next({name:k,values:Ve(i)})))}(z.shouldDirty||z.shouldTouch)&&S(k,V,z.shouldTouch,z.shouldDirty,!0),z.shouldValidate&&F(k)},re=(k,C,z)=>{for(const Z in C){if(!C.hasOwnProperty(Z))return;const V=C[Z],A=k+"."+Z,q=W(o,A);(s.array.has(k)||Re(V)||q&&!q._f)&&!Fr(V)?re(A,V,z):ee(A,V,z)}},M=(k,C,z={})=>{const Z=W(o,k),V=s.array.has(k),A=Ve(C);be(i,k,A),V?(h.array.next({name:k,values:Ve(i)}),(d.isDirty||d.dirtyFields||c.isDirty||c.dirtyFields)&&z.shouldDirty&&h.state.next({name:k,dirtyFields:ji(r,i),isDirty:G(k,A)})):Z&&!Z._f&&!ct(A)?re(k,A,z):ee(k,A,z),Cv(k,s)&&h.state.next({...n,name:k}),h.state.next({name:a.mount?k:void 0,values:Ve(i)})},te=async k=>{a.mount=!0;const C=k.target;let z=C.name,Z=!0;const V=W(o,z),A=ye=>{Z=Number.isNaN(ye)||Fr(ye)&&isNaN(ye.getTime())||An(ye,W(i,z,ye))},q=jv(t.mode),ve=jv(t.reValidateMode);if(V){let ye,tt;const Bt=C.type?Ev(V._f):B0(k),Ht=k.type===wl.BLUR||k.type===wl.FOCUS_OUT,qn=!H2(V._f)&&!t.resolver&&!W(n.errors,z)&&!V._f.deps||J2(Ht,W(n.touchedFields,z),n.isSubmitted,ve,q),hi=Cv(z,s,Ht);be(i,z,Bt),Ht?(V._f.onBlur&&V._f.onBlur(k),l&&l(0)):V._f.onChange&&V._f.onChange(k);const gi=S(z,Bt,Ht),Za=!gt(gi)||hi;if(!Ht&&h.state.next({name:z,type:k.type,values:Ve(i)}),qn)return(d.isValid||c.isValid)&&(t.mode==="onBlur"?Ht&&b():Ht||b()),Za&&h.state.next({name:z,...hi?{}:gi});if(!Ht&&hi&&h.state.next({...n}),t.resolver){const{errors:vi}=await N([z]);if(A(Bt),Z){const Lu=zv(n.errors,o,z),uo=zv(vi,o,Lu.name||z);ye=uo.error,z=uo.name,tt=gt(vi)}}else w([z],!0),ye=(await Ov(V,s.disabled,i,y,t.shouldUseNativeValidation))[z],w([z]),A(Bt),Z&&(ye?tt=!1:(d.isValid||c.isValid)&&(tt=await D(o,!0)));Z&&(V._f.deps&&F(V._f.deps),$(z,tt,ye,gi))}},E=(k,C)=>{if(W(n.errors,C)&&k.focus)return k.focus(),1},F=async(k,C={})=>{let z,Z;const V=Hi(k);if(t.resolver){const A=await I(Te(k)?k:V);z=gt(A),Z=k?!V.some(q=>W(A,q)):z}else k?(Z=(await Promise.all(V.map(async A=>{const q=W(o,A);return await D(q&&q._f?{[A]:q}:q)}))).every(Boolean),!(!Z&&!n.isValid)&&b()):Z=z=await D(o);return h.state.next({...!wn(k)||(d.isValid||c.isValid)&&z!==n.isValid?{}:{name:k},...t.resolver||!k?{isValid:z}:{},errors:n.errors}),C.shouldFocus&&!Z&&Gi(o,E,k?V:s.mount),Z},Y=k=>{const C={...a.mount?i:r};return Te(k)?C:wn(k)?W(C,k):k.map(z=>W(C,z))},Q=(k,C)=>({invalid:!!W((C||n).errors,k),isDirty:!!W((C||n).dirtyFields,k),error:W((C||n).errors,k),isValidating:!!W(n.validatingFields,k),isTouched:!!W((C||n).touchedFields,k)}),oe=k=>{k&&Hi(k).forEach(C=>Ue(n.errors,C)),h.state.next({errors:k?n.errors:{}})},ne=(k,C,z)=>{const Z=(W(o,k,{_f:{}})._f||{}).ref,V=W(n.errors,k)||{},{ref:A,message:q,type:ve,...ye}=V;be(n.errors,k,{...ye,...C,ref:Z}),h.state.next({name:k,errors:n.errors,isValid:!1}),z&&z.shouldFocus&&Z&&Z.focus&&Z.focus()},ce=(k,C)=>en(k)?h.state.subscribe({next:z=>"values"in z&&k(U(void 0,C),z)}):U(k,C,!0),Oe=k=>h.state.subscribe({next:C=>{K2(k.name,C.name,k.exact)&&G2(C,k.formState||d,Pn,k.reRenderRoot)&&k.callback({values:{...i},...n,...C,defaultValues:r})}}).unsubscribe,de=k=>(a.mount=!0,c={...c,...k.formState},Oe({...k,formState:c})),me=(k,C={})=>{for(const z of k?Hi(k):s.mount)s.mount.delete(z),s.array.delete(z),C.keepValue||(Ue(o,z),Ue(i,z)),!C.keepError&&Ue(n.errors,z),!C.keepDirty&&Ue(n.dirtyFields,z),!C.keepTouched&&Ue(n.touchedFields,z),!C.keepIsValidating&&Ue(n.validatingFields,z),!t.shouldUnregister&&!C.keepDefaultValue&&Ue(r,z);h.state.next({values:Ve(i)}),h.state.next({...n,...C.keepDirty?{isDirty:G()}:{}}),!C.keepIsValid&&b()},lt=({disabled:k,name:C})=>{(Nt(k)&&a.mount||k||s.disabled.has(C))&&(k?s.disabled.add(C):s.disabled.delete(C))},Ke=(k,C={})=>{let z=W(o,k);const Z=Nt(C.disabled)||Nt(t.disabled);return be(o,k,{...z||{},_f:{...z&&z._f?z._f:{ref:{name:k}},name:k,mount:!0,...C}}),s.mount.add(k),z?lt({disabled:Nt(C.disabled)?C.disabled:t.disabled,name:k}):_(k,!0,C.value),{...Z?{disabled:C.disabled||t.disabled}:{},...t.progressive?{required:!!C.required,min:Ii(C.min),max:Ii(C.max),minLength:Ii(C.minLength),maxLength:Ii(C.maxLength),pattern:Ii(C.pattern)}:{},name:k,onChange:te,onBlur:te,ref:V=>{if(V){Ke(k,C),z=W(o,k);const A=Te(V.value)&&V.querySelectorAll&&V.querySelectorAll("input,select,textarea")[0]||V,q=F2(A),ve=z._f.refs||[];if(q?ve.find(ye=>ye===A):A===z._f.ref)return;be(o,k,{_f:{...z._f,...q?{refs:[...ve.filter(Ec),A,...Array.isArray(W(r,k))?[{}]:[]],ref:{type:A.type,name:k}}:{ref:A}}}),_(k,!1,void 0,A)}else z=W(o,k,{}),z._f&&(z._f.mount=!1),(t.shouldUnregister||C.shouldUnregister)&&!(H0(s.array,k)&&a.action)&&s.unMount.add(k)}}},Je=()=>t.shouldFocusError&&Gi(o,E,s.mount),pn=k=>{Nt(k)&&(h.state.next({disabled:k}),Gi(o,(C,z)=>{const Z=W(o,z);Z&&(C.disabled=Z._f.disabled||k,Array.isArray(Z._f.refs)&&Z._f.refs.forEach(V=>{V.disabled=Z._f.disabled||k}))},0,!1))},St=(k,C)=>async z=>{let Z;z&&(z.preventDefault&&z.preventDefault(),z.persist&&z.persist());let V=Ve(i);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:A,values:q}=await N();n.errors=A,V=Ve(q)}else await D(o);if(s.disabled.size)for(const A of s.disabled)Ue(V,A);if(Ue(n.errors,"root"),gt(n.errors)){h.state.next({errors:{}});try{await k(V,z)}catch(A){Z=A}}else C&&await C({...n.errors},z),Je(),setTimeout(Je);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:gt(n.errors)&&!Z,submitCount:n.submitCount+1,errors:n.errors}),Z)throw Z},Cn=(k,C={})=>{W(o,k)&&(Te(C.defaultValue)?M(k,Ve(W(r,k))):(M(k,C.defaultValue),be(r,k,Ve(C.defaultValue))),C.keepTouched||Ue(n.touchedFields,k),C.keepDirty||(Ue(n.dirtyFields,k),n.isDirty=C.defaultValue?G(k,Ve(W(r,k))):G()),C.keepError||(Ue(n.errors,k),d.isValid&&b()),h.state.next({...n}))},zn=(k,C={})=>{const z=k?Ve(k):r,Z=Ve(z),V=gt(k),A=V?r:Z;if(C.keepDefaultValues||(r=z),!C.keepValues){if(C.keepDirtyValues){const q=new Set([...s.mount,...Object.keys(ji(r,i))]);for(const ve of Array.from(q))W(n.dirtyFields,ve)?be(A,ve,W(i,ve)):M(ve,W(A,ve))}else{if(Nm&&Te(k))for(const q of s.mount){const ve=W(o,q);if(ve&&ve._f){const ye=Array.isArray(ve._f.refs)?ve._f.refs[0]:ve._f.ref;if(_l(ye)){const tt=ye.closest("form");if(tt){tt.reset();break}}}}if(C.keepFieldsRef)for(const q of s.mount)M(q,W(A,q));else o={}}i=t.shouldUnregister?C.keepDefaultValues?Ve(r):{}:Ve(A),h.array.next({values:{...A}}),h.state.next({values:{...A}})}s={mount:C.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!d.isValid||!!C.keepIsValid||!!C.keepDirtyValues,a.watch=!!t.shouldUnregister,h.state.next({submitCount:C.keepSubmitCount?n.submitCount:0,isDirty:V?!1:C.keepDirty?n.isDirty:!!(C.keepDefaultValues&&!An(k,r)),isSubmitted:C.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:V?{}:C.keepDirtyValues?C.keepDefaultValues&&i?ji(r,i):n.dirtyFields:C.keepDefaultValues&&k?ji(r,k):C.keepDirty?n.dirtyFields:{},touchedFields:C.keepTouched?n.touchedFields:{},errors:C.keepErrors?n.errors:{},isSubmitSuccessful:C.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},so=(k,C)=>zn(en(k)?k(i):k,C),lo=(k,C={})=>{const z=W(o,k),Z=z&&z._f;if(Z){const V=Z.refs?Z.refs[0]:Z.ref;V.focus&&(V.focus(),C.shouldSelect&&en(V.select)&&V.select())}},Pn=k=>{n={...n,...k}},Ye={control:{register:Ke,unregister:me,getFieldState:Q,handleSubmit:St,setError:ne,_subscribe:Oe,_runSchema:N,_focusError:Je,_getWatch:U,_getDirty:G,_setValid:b,_setFieldArray:m,_setDisabledField:lt,_setErrors:v,_getFieldArray:B,_reset:zn,_resetDefaultValues:()=>en(t.defaultValues)&&t.defaultValues().then(k=>{so(k,t.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:O,_disableForm:pn,_subjects:h,_proxyFormState:d,get _fields(){return o},get _formValues(){return i},get _state(){return a},set _state(k){a=k},get _defaultValues(){return r},get _names(){return s},set _names(k){s=k},get _formState(){return n},get _options(){return t},set _options(k){t={...t,...k}}},subscribe:de,trigger:F,register:Ke,handleSubmit:St,watch:ce,setValue:M,getValues:Y,reset:so,resetField:Cn,clearErrors:oe,unregister:me,setError:ne,setFocus:lo,getFieldState:Q};return{...Ye,formControl:Ye}}function xu(e={}){const t=P.useRef(void 0),n=P.useRef(void 0),[o,r]=P.useState({isDirty:!1,isValidating:!1,isLoading:en(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:en(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:o},e.defaultValues&&!en(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...s}=q2(e);t.current={...s,formState:o}}const i=t.current.control;return i._options=e,Cm(()=>{const a=i._subscribe({formState:i._proxyFormState,callback:()=>r({...i._formState}),reRenderRoot:!0});return r(s=>({...s,isReady:!0})),i._formState.isReady=!0,a},[i]),P.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),P.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),P.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),P.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),P.useEffect(()=>{if(i._proxyFormState.isDirty){const a=i._getDirty();a!==o.isDirty&&i._subjects.state.next({isDirty:a})}},[i,o.isDirty]),P.useEffect(()=>{e.values&&!An(e.values,n.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),n.current=e.values,r(a=>({...a}))):i._resetDefaultValues()},[i,e.values]),P.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=G0(o,i),t.current}var eT="Label",t_=g.forwardRef((e,t)=>f.jsx(st.label,{...e,ref:t,onMouseDown:n=>{var r;n.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));t_.displayName=eT;var n_=t_;const tT=Ia("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),r_=g.forwardRef(({className:e,...t},n)=>f.jsx(n_,{ref:n,className:X(tT(),e),...t}));r_.displayName=n_.displayName;const wu=R2,o_=g.createContext({}),Vr=({...e})=>f.jsx(o_.Provider,{value:{name:e.name},children:f.jsx(M2,{...e})}),_u=()=>{const e=g.useContext(o_),t=g.useContext(i_),{getFieldState:n,formState:o}=bu(),r=n(e.name,o);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...r}},i_=g.createContext({}),dr=g.forwardRef(({className:e,...t},n)=>{const o=g.useId();return f.jsx(i_.Provider,{value:{id:o},children:f.jsx("div",{ref:n,className:X("space-y-2",e),...t})})});dr.displayName="FormItem";const Ti=g.forwardRef(({className:e,...t},n)=>{const{error:o,formItemId:r}=_u();return f.jsx(r_,{ref:n,className:X(o&&"text-destructive",e),htmlFor:r,...t})});Ti.displayName="FormLabel";const fr=g.forwardRef(({...e},t)=>{const{error:n,formItemId:o,formDescriptionId:r,formMessageId:i}=_u();return f.jsx(ro,{ref:t,id:o,"aria-describedby":n?`${r} ${i}`:`${r}`,"aria-invalid":!!n,...e})});fr.displayName="FormControl";const nT=g.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:o}=_u();return f.jsx("p",{ref:n,id:o,className:X("text-sm text-muted-foreground",e),...t})});nT.displayName="FormDescription";const mr=g.forwardRef(({className:e,children:t,...n},o)=>{const{error:r,formMessageId:i}=_u(),a=r?String((r==null?void 0:r.message)??""):t;return a?f.jsx("p",{ref:o,id:i,className:X("text-sm font-medium text-destructive",e),...n,children:a}):null});mr.displayName="FormMessage";const Tv=(e,t,n)=>{if(e&&"reportValidity"in e){const o=W(n,t);e.setCustomValidity(o&&o.message||""),e.reportValidity()}},Ad=(e,t)=>{for(const n in t.fields){const o=t.fields[n];o&&o.ref&&"reportValidity"in o.ref?Tv(o.ref,n,e):o&&o.refs&&o.refs.forEach(r=>Tv(r,n,e))}},Dv=(e,t)=>{t.shouldUseNativeValidation&&Ad(e,t);const n={};for(const o in e){const r=W(t.fields,o),i=Object.assign(e[o]||{},{ref:r&&r.ref});if(rT(t.names||Object.keys(e),o)){const a=Object.assign({},W(n,o));be(a,"root",i),be(n,o,a)}else be(n,o,i)}return n},rT=(e,t)=>{const n=Rv(t);return e.some(o=>Rv(o).match(`^${n}\\.\\d+`))};function Rv(e){return e.replace(/\]|\[/g,"")}const a_=Object.freeze({status:"aborted"});function j(e,t,n){function o(s,l){var u;Object.defineProperty(s,"_zod",{value:s._zod??{},enumerable:!1}),(u=s._zod).traits??(u.traits=new Set),s._zod.traits.add(e),t(s,l);for(const d in a.prototype)d in s||Object.defineProperty(s,d,{value:a.prototype[d].bind(s)});s._zod.constr=a,s._zod.def=l}const r=(n==null?void 0:n.Parent)??Object;class i extends r{}Object.defineProperty(i,"name",{value:e});function a(s){var l;const u=n!=null&&n.Parent?new i:this;o(u,s),(l=u._zod).deferred??(l.deferred=[]);for(const d of u._zod.deferred)d();return u}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>{var l,u;return n!=null&&n.Parent&&s instanceof n.Parent?!0:(u=(l=s==null?void 0:s._zod)==null?void 0:l.traits)==null?void 0:u.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}const s_=Symbol("zod_brand");class qo extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const $l={};function mt(e){return e&&Object.assign($l,e),$l}function oT(e){return e}function iT(e){return e}function aT(e){}function sT(e){throw new Error}function lT(e){}function Tm(e){const t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,r])=>t.indexOf(+o)===-1).map(([o,r])=>r)}function L(e,t="|"){return e.map(n=>ae(n)).join(t)}function Nl(e,t){return typeof t=="bigint"?t.toString():t}function Su(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function io(e){return e==null}function ku(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function l_(e,t){const n=(e.toString().split(".")[1]||"").length,o=(t.toString().split(".")[1]||"").length,r=n>o?n:o,i=Number.parseInt(e.toFixed(r).replace(".","")),a=Number.parseInt(t.toFixed(r).replace(".",""));return i%a/10**r}function ge(e,t,n){Object.defineProperty(e,t,{get(){{const o=n();return e[t]=o,o}},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function In(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Or(...e){const t={};for(const n of e){const o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}function uT(e){return Or(e._zod.def)}function cT(e,t){return t?t.reduce((n,o)=>n==null?void 0:n[o],e):e}function dT(e){const t=Object.keys(e),n=t.map(o=>e[o]);return Promise.all(n).then(o=>{const r={};for(let i=0;i<t.length;i++)r[t[i]]=o[i];return r})}function fT(e=10){const t="abcdefghijklmnopqrstuvwxyz";let n="";for(let o=0;o<e;o++)n+=t[Math.floor(Math.random()*t.length)];return n}function Ud(e){return JSON.stringify(e)}const Dm="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function va(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const u_=Su(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function ya(e){if(va(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(va(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function mT(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}const pT=e=>{const t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},El=new Set(["string","number","symbol"]),c_=new Set(["string","number","bigint","boolean","symbol","undefined"]);function jr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function mn(e,t,n){const o=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(o._zod.parent=e),o}function T(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function hT(e){let t;return new Proxy({},{get(n,o,r){return t??(t=e()),Reflect.get(t,o,r)},set(n,o,r,i){return t??(t=e()),Reflect.set(t,o,r,i)},has(n,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(n,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(n,o,r){return t??(t=e()),Reflect.defineProperty(t,o,r)}})}function ae(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function d_(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const f_={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},m_={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function p_(e,t){const n=e._zod.def,o=Or(e._zod.def,{get shape(){const r={};for(const i in t){if(!(i in n.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&(r[i]=n.shape[i])}return In(this,"shape",r),r},checks:[]});return mn(e,o)}function h_(e,t){const n=e._zod.def,o=Or(e._zod.def,{get shape(){const r={...e._zod.def.shape};for(const i in t){if(!(i in n.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&delete r[i]}return In(this,"shape",r),r},checks:[]});return mn(e,o)}function g_(e,t){if(!ya(t))throw new Error("Invalid input to extend: expected a plain object");const n=Or(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return In(this,"shape",o),o},checks:[]});return mn(e,n)}function v_(e,t){const n=Or(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t._zod.def.shape};return In(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:[]});return mn(e,n)}function y_(e,t,n){const o=Or(t._zod.def,{get shape(){const r=t._zod.def.shape,i={...r};if(n)for(const a in n){if(!(a in r))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=e?new e({type:"optional",innerType:r[a]}):r[a])}else for(const a in r)i[a]=e?new e({type:"optional",innerType:r[a]}):r[a];return In(this,"shape",i),i},checks:[]});return mn(t,o)}function b_(e,t,n){const o=Or(t._zod.def,{get shape(){const r=t._zod.def.shape,i={...r};if(n)for(const a in n){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(const a in r)i[a]=new e({type:"nonoptional",innerType:r[a]});return In(this,"shape",i),i},checks:[]});return mn(t,o)}function Uo(e,t=0){var n;for(let o=t;o<e.issues.length;o++)if(((n=e.issues[o])==null?void 0:n.continue)!==!0)return!0;return!1}function tn(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function Di(e){return typeof e=="string"?e:e==null?void 0:e.message}function cn(e,t,n){var r,i,a,s,l,u;const o={...e,path:e.path??[]};if(!e.message){const d=Di((a=(i=(r=e.inst)==null?void 0:r._zod.def)==null?void 0:i.error)==null?void 0:a.call(i,e))??Di((s=t==null?void 0:t.error)==null?void 0:s.call(t,e))??Di((l=n.customError)==null?void 0:l.call(n,e))??Di((u=n.localeError)==null?void 0:u.call(n,e))??"Invalid input";o.message=d}return delete o.inst,delete o.continue,t!=null&&t.reportInput||delete o.input,o}function $u(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Nu(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ei(...e){const[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}function gT(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}class vT{constructor(...t){}}const yT=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:m_,Class:vT,NUMBER_FORMAT_RANGES:f_,aborted:Uo,allowsEval:u_,assert:lT,assertEqual:oT,assertIs:aT,assertNever:sT,assertNotEqual:iT,assignProp:In,cached:Su,captureStackTrace:Dm,cleanEnum:gT,cleanRegex:ku,clone:mn,cloneDef:uT,createTransparentProxy:hT,defineLazy:ge,esc:Ud,escapeRegex:jr,extend:g_,finalizeIssue:cn,floatSafeRemainder:l_,getElementAtPath:cT,getEnumValues:Tm,getLengthableOrigin:Nu,getParsedType:pT,getSizableOrigin:$u,isObject:va,isPlainObject:ya,issue:ei,joinValues:L,jsonStringifyReplacer:Nl,merge:v_,mergeDefs:Or,normalizeParams:T,nullish:io,numKeys:mT,omit:h_,optionalKeys:d_,partial:y_,pick:p_,prefixIssues:tn,primitiveTypes:c_,promiseAllObject:dT,propertyKeyTypes:El,randomString:fT,required:b_,stringifyPrimitive:ae,unwrapMessage:Di},Symbol.toStringTag,{value:"Module"})),x_=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Nl,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Eu=j("$ZodError",x_),La=j("$ZodError",x_,{Parent:Error});function Rm(e,t=n=>n.message){const n={},o=[];for(const r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):o.push(t(r));return{formErrors:o,fieldErrors:n}}function Am(e,t){const n=t||function(i){return i.message},o={_errors:[]},r=i=>{for(const a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>r({issues:s}));else if(a.code==="invalid_key")r({issues:a.issues});else if(a.code==="invalid_element")r({issues:a.issues});else if(a.path.length===0)o._errors.push(n(a));else{let s=o,l=0;for(;l<a.path.length;){const u=a.path[l];l===a.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(n(a))):s[u]=s[u]||{_errors:[]},s=s[u],l++}}};return r(e),o}function w_(e,t){const n=t||function(i){return i.message},o={errors:[]},r=(i,a=[])=>{var s,l;for(const u of i.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(d=>r({issues:d},u.path));else if(u.code==="invalid_key")r({issues:u.issues},u.path);else if(u.code==="invalid_element")r({issues:u.issues},u.path);else{const d=[...a,...u.path];if(d.length===0){o.errors.push(n(u));continue}let c=o,h=0;for(;h<d.length;){const y=d[h],x=h===d.length-1;typeof y=="string"?(c.properties??(c.properties={}),(s=c.properties)[y]??(s[y]={errors:[]}),c=c.properties[y]):(c.items??(c.items=[]),(l=c.items)[y]??(l[y]={errors:[]}),c=c.items[y]),x&&c.errors.push(n(u)),h++}}};return r(e),o}function __(e){const t=[],n=e.map(o=>typeof o=="object"?o.key:o);for(const o of n)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function S_(e){var o;const t=[],n=[...e.issues].sort((r,i)=>(r.path??[]).length-(i.path??[]).length);for(const r of n)t.push(`✖ ${r.message}`),(o=r.path)!=null&&o.length&&t.push(` → at ${__(r.path)}`);return t.join(`
192
- `)}const Um=e=>(t,n,o,r)=>{const i=o?Object.assign(o,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new qo;if(a.issues.length){const s=new((r==null?void 0:r.Err)??e)(a.issues.map(l=>cn(l,i,mt())));throw Dm(s,r==null?void 0:r.callee),s}return a.value},jl=Um(La),Lm=e=>async(t,n,o,r)=>{const i=o?Object.assign(o,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const s=new((r==null?void 0:r.Err)??e)(a.issues.map(l=>cn(l,i,mt())));throw Dm(s,r==null?void 0:r.callee),s}return a.value},Il=Lm(La),Mm=e=>(t,n,o)=>{const r=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},r);if(i instanceof Promise)throw new qo;return i.issues.length?{success:!1,error:new(e??Eu)(i.issues.map(a=>cn(a,r,mt())))}:{success:!0,data:i.value}},k_=Mm(La),Fm=e=>async(t,n,o)=>{const r=o?Object.assign(o,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>cn(a,r,mt())))}:{success:!0,data:i.value}},$_=Fm(La),N_=/^[cC][^\s-]{8,}$/,E_=/^[0-9a-z]+$/,j_=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,I_=/^[0-9a-vA-V]{20}$/,C_=/^[A-Za-z0-9]{27}$/,z_=/^[a-zA-Z0-9_-]{21}$/,P_=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,bT=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,O_=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ti=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,xT=ti(4),wT=ti(6),_T=ti(7),T_=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,ST=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,kT=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,$T=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,NT=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ET="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function D_(){return new RegExp(ET,"u")}const R_=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,A_=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,U_=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,L_=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,M_=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Vm=/^[A-Za-z0-9_-]*$/,F_=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,jT=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,V_=/^\+(?:[0-9]){6,14}[0-9]$/,Z_="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",W_=new RegExp(`^${Z_}$`);function B_(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function H_(e){return new RegExp(`^${B_(e)}$`)}function G_(e){const t=B_({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-]\\d{2}:\\d{2})");const o=`${t}(?:${n.join("|")})`;return new RegExp(`^${Z_}T(?:${o})$`)}const K_=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},J_=/^\d+n?$/,Y_=/^\d+$/,X_=/^-?\d+(?:\.\d+)?/i,Q_=/true|false/i,q_=/null/i,eS=/undefined/i,tS=/^[^A-Z]*$/,nS=/^[^a-z]*$/,rS=Object.freeze(Object.defineProperty({__proto__:null,base64:M_,base64url:Vm,bigint:J_,boolean:Q_,browserEmail:NT,cidrv4:U_,cidrv6:L_,cuid:N_,cuid2:E_,date:W_,datetime:G_,domain:jT,duration:P_,e164:V_,email:T_,emoji:D_,extendedDuration:bT,guid:O_,hostname:F_,html5Email:ST,integer:Y_,ipv4:R_,ipv6:A_,ksuid:C_,lowercase:tS,nanoid:z_,null:q_,number:X_,rfc5322Email:kT,string:K_,time:H_,ulid:j_,undefined:eS,unicodeEmail:$T,uppercase:nS,uuid:ti,uuid4:xT,uuid6:wT,uuid7:_T,xid:I_},Symbol.toStringTag,{value:"Module"})),Ae=j("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),oS={number:"number",bigint:"bigint",object:"date"},Zm=j("$ZodCheckLessThan",(e,t)=>{Ae.init(e,t);const n=oS[typeof t.value];e._zod.onattach.push(o=>{const r=o._zod.bag,i=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:n,code:"too_big",maximum:t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Wm=j("$ZodCheckGreaterThan",(e,t)=>{Ae.init(e,t);const n=oS[typeof t.value];e._zod.onattach.push(o=>{const r=o._zod.bag,i=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:n,code:"too_small",minimum:t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),iS=j("$ZodCheckMultipleOf",(e,t)=>{Ae.init(e,t),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):l_(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),aS=j("$ZodCheckNumberFormat",(e,t)=>{var a;Ae.init(e,t),t.format=t.format||"float64";const n=(a=t.format)==null?void 0:a.includes("int"),o=n?"int":"number",[r,i]=f_[t.format];e._zod.onattach.push(s=>{const l=s._zod.bag;l.format=t.format,l.minimum=r,l.maximum=i,n&&(l.pattern=Y_)}),e._zod.check=s=>{const l=s.value;if(n){if(!Number.isInteger(l)){s.issues.push({expected:o,format:t.format,code:"invalid_type",input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?s.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,continue:!t.abort}):s.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,continue:!t.abort});return}}l<r&&s.issues.push({origin:"number",input:l,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),l>i&&s.issues.push({origin:"number",input:l,code:"too_big",maximum:i,inst:e})}}),sS=j("$ZodCheckBigIntFormat",(e,t)=>{Ae.init(e,t);const[n,o]=m_[t.format];e._zod.onattach.push(r=>{const i=r._zod.bag;i.format=t.format,i.minimum=n,i.maximum=o}),e._zod.check=r=>{const i=r.value;i<n&&r.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),i>o&&r.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inst:e})}}),lS=j("$ZodCheckMaxSize",(e,t)=>{var n;Ae.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!io(r)&&r.size!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{const r=o.value;r.size<=t.maximum||o.issues.push({origin:$u(r),code:"too_big",maximum:t.maximum,input:r,inst:e,continue:!t.abort})}}),uS=j("$ZodCheckMinSize",(e,t)=>{var n;Ae.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!io(r)&&r.size!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{const r=o.value;r.size>=t.minimum||o.issues.push({origin:$u(r),code:"too_small",minimum:t.minimum,input:r,inst:e,continue:!t.abort})}}),cS=j("$ZodCheckSizeEquals",(e,t)=>{var n;Ae.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!io(r)&&r.size!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=o=>{const r=o.value,i=r.size;if(i===t.size)return;const a=i>t.size;o.issues.push({origin:$u(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),dS=j("$ZodCheckMaxLength",(e,t)=>{var n;Ae.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!io(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{const r=o.value;if(r.length<=t.maximum)return;const a=Nu(r);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),fS=j("$ZodCheckMinLength",(e,t)=>{var n;Ae.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!io(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{const r=o.value;if(r.length>=t.minimum)return;const a=Nu(r);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),mS=j("$ZodCheckLengthEquals",(e,t)=>{var n;Ae.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!io(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=o=>{const r=o.value,i=r.length;if(i===t.length)return;const a=Nu(r),s=i>t.length;o.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Ma=j("$ZodCheckStringFormat",(e,t)=>{var n,o;Ae.init(e,t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),pS=j("$ZodCheckRegex",(e,t)=>{Ma.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),hS=j("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=tS),Ma.init(e,t)}),gS=j("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=nS),Ma.init(e,t)}),vS=j("$ZodCheckIncludes",(e,t)=>{Ae.init(e,t);const n=jr(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=o,e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),yS=j("$ZodCheckStartsWith",(e,t)=>{Ae.init(e,t);const n=new RegExp(`^${jr(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),bS=j("$ZodCheckEndsWith",(e,t)=>{Ae.init(e,t);const n=new RegExp(`.*${jr(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function Av(e,t,n){e.issues.length&&t.issues.push(...tn(n,e.issues))}const xS=j("$ZodCheckProperty",(e,t)=>{Ae.init(e,t),e._zod.check=n=>{const o=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(r=>Av(r,n,t.property));Av(o,n,t.property)}}),wS=j("$ZodCheckMimeType",(e,t)=>{Ae.init(e,t);const n=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{n.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e})}}),_S=j("$ZodCheckOverwrite",(e,t)=>{Ae.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class SS{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const o=t.split(`
193
- `).filter(a=>a),r=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(const a of i)this.content.push(a)}compile(){const t=Function,n=this==null?void 0:this.args,r=[...((this==null?void 0:this.content)??[""]).map(i=>` ${i}`)];return new t(...n,r.join(`
194
- `))}}const kS={major:4,minor:0,patch:10},ie=j("$ZodType",(e,t)=>{var r;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=kS;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const i of o)for(const a of i._zod.onattach)a(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),(r=e._zod.deferred)==null||r.push(()=>{e._zod.run=e._zod.parse});else{const i=(a,s,l)=>{let u=Uo(a),d;for(const c of s){if(c._zod.def.when){if(!c._zod.def.when(a))continue}else if(u)continue;const h=a.issues.length,y=c._zod.check(a);if(y instanceof Promise&&(l==null?void 0:l.async)===!1)throw new qo;if(d||y instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await y,a.issues.length!==h&&(u||(u=Uo(a,h)))});else{if(a.issues.length===h)continue;u||(u=Uo(a,h))}}return d?d.then(()=>a):a};e._zod.run=(a,s)=>{const l=e._zod.parse(a,s);if(l instanceof Promise){if(s.async===!1)throw new qo;return l.then(u=>i(u,o,s))}return i(l,o,s)}}e["~standard"]={validate:i=>{var a;try{const s=k_(e,i);return s.success?{value:s.data}:{issues:(a=s.error)==null?void 0:a.issues}}catch{return $_(e,i).then(l=>{var u;return l.success?{value:l.data}:{issues:(u=l.error)==null?void 0:u.issues}})}},vendor:"zod",version:1}}),Fa=j("$ZodString",(e,t)=>{var n;ie.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??K_(e._zod.bag),e._zod.parse=(o,r)=>{if(t.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),_e=j("$ZodStringFormat",(e,t)=>{Ma.init(e,t),Fa.init(e,t)}),$S=j("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=O_),_e.init(e,t)}),NS=j("$ZodUUID",(e,t)=>{if(t.version){const o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=ti(o))}else t.pattern??(t.pattern=ti());_e.init(e,t)}),ES=j("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=T_),_e.init(e,t)}),jS=j("$ZodURL",(e,t)=>{_e.init(e,t),e._zod.check=n=>{try{const o=n.value.trim(),r=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:F_.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=r.href:n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),IS=j("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=D_()),_e.init(e,t)}),CS=j("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=z_),_e.init(e,t)}),zS=j("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=N_),_e.init(e,t)}),PS=j("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=E_),_e.init(e,t)}),OS=j("$ZodULID",(e,t)=>{t.pattern??(t.pattern=j_),_e.init(e,t)}),TS=j("$ZodXID",(e,t)=>{t.pattern??(t.pattern=I_),_e.init(e,t)}),DS=j("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=C_),_e.init(e,t)}),RS=j("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=G_(t)),_e.init(e,t)}),AS=j("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=W_),_e.init(e,t)}),US=j("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=H_(t)),_e.init(e,t)}),LS=j("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=P_),_e.init(e,t)}),MS=j("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=R_),_e.init(e,t),e._zod.onattach.push(n=>{const o=n._zod.bag;o.format="ipv4"})}),FS=j("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=A_),_e.init(e,t),e._zod.onattach.push(n=>{const o=n._zod.bag;o.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),VS=j("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=U_),_e.init(e,t)}),ZS=j("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=L_),_e.init(e,t),e._zod.check=n=>{const[o,r]=n.value.split("/");try{if(!r)throw new Error;const i=Number(r);if(`${i}`!==r)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Bm(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const WS=j("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=M_),_e.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{Bm(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function BS(e){if(!Vm.test(e))return!1;const t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Bm(n)}const HS=j("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Vm),_e.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{BS(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),GS=j("$ZodE164",(e,t)=>{t.pattern??(t.pattern=V_),_e.init(e,t)});function KS(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[o]=n;if(!o)return!1;const r=JSON.parse(atob(o));return!("typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}const JS=j("$ZodJWT",(e,t)=>{_e.init(e,t),e._zod.check=n=>{KS(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),YS=j("$ZodCustomStringFormat",(e,t)=>{_e.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),Hm=j("$ZodNumber",(e,t)=>{ie.init(e,t),e._zod.pattern=e._zod.bag.pattern??X_,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;const i=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...i?{received:i}:{}}),n}}),XS=j("$ZodNumber",(e,t)=>{aS.init(e,t),Hm.init(e,t)}),Gm=j("$ZodBoolean",(e,t)=>{ie.init(e,t),e._zod.pattern=Q_,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=!!n.value}catch{}const r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),Km=j("$ZodBigInt",(e,t)=>{ie.init(e,t),e._zod.pattern=J_,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),QS=j("$ZodBigInt",(e,t)=>{sS.init(e,t),Km.init(e,t)}),qS=j("$ZodSymbol",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),n}}),ek=j("$ZodUndefined",(e,t)=>{ie.init(e,t),e._zod.pattern=eS,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,o)=>{const r=n.value;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),n}}),tk=j("$ZodNull",(e,t)=>{ie.init(e,t),e._zod.pattern=q_,e._zod.values=new Set([null]),e._zod.parse=(n,o)=>{const r=n.value;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),n}}),nk=j("$ZodAny",(e,t)=>{ie.init(e,t),e._zod.parse=n=>n}),Cl=j("$ZodUnknown",(e,t)=>{ie.init(e,t),e._zod.parse=n=>n}),rk=j("$ZodNever",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),ok=j("$ZodVoid",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),n}}),ik=j("$ZodDate",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}const r=n.value,i=r instanceof Date;return i&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...i?{received:"Invalid Date"}:{},inst:e}),n}});function Uv(e,t,n){e.issues.length&&t.issues.push(...tn(n,e.issues)),t.value[n]=e.value}const Jm=j("$ZodArray",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);const i=[];for(let a=0;a<r.length;a++){const s=r[a],l=t.element._zod.run({value:s,issues:[]},o);l instanceof Promise?i.push(l.then(u=>Uv(u,n,a))):Uv(l,n,a)}return i.length?Promise.all(i).then(()=>n):n}});function xs(e,t,n,o){e.issues.length&&t.issues.push(...tn(n,e.issues)),e.value===void 0?n in o&&(t.value[n]=void 0):t.value[n]=e.value}const ak=j("$ZodObject",(e,t)=>{ie.init(e,t);const n=Su(()=>{const c=Object.keys(t.shape);for(const y of c)if(!(t.shape[y]instanceof ie))throw new Error(`Invalid element at key "${y}": expected a Zod schema`);const h=d_(t.shape);return{shape:t.shape,keys:c,keySet:new Set(c),numKeys:c.length,optionalKeys:new Set(h)}});ge(e._zod,"propValues",()=>{const c=t.shape,h={};for(const y in c){const x=c[y]._zod;if(x.values){h[y]??(h[y]=new Set);for(const b of x.values)h[y].add(b)}}return h});const o=c=>{const h=new SS(["shape","payload","ctx"]),y=n.value,x=p=>{const v=Ud(p);return`shape[${v}]._zod.run({ value: input[${v}], issues: [] }, ctx)`};h.write("const input = payload.value;");const b=Object.create(null);let w=0;for(const p of y.keys)b[p]=`key_${w++}`;h.write("const newResult = {}");for(const p of y.keys){const v=b[p],_=Ud(p);h.write(`const ${v} = ${x(p)};`),h.write(`
195
- if (${v}.issues.length) {
196
- payload.issues = payload.issues.concat(${v}.issues.map(iss => ({
197
- ...iss,
198
- path: iss.path ? [${_}, ...iss.path] : [${_}]
199
- })));
200
- }
201
-
202
- if (${v}.value === undefined) {
203
- if (${_} in input) {
204
- newResult[${_}] = undefined;
205
- }
206
- } else {
207
- newResult[${_}] = ${v}.value;
208
- }
209
- `)}h.write("payload.value = newResult;"),h.write("return payload;");const m=h.compile();return(p,v)=>m(c,p,v)};let r;const i=va,a=!$l.jitless,l=a&&u_.value,u=t.catchall;let d;e._zod.parse=(c,h)=>{d??(d=n.value);const y=c.value;if(!i(y))return c.issues.push({expected:"object",code:"invalid_type",input:y,inst:e}),c;const x=[];if(a&&l&&(h==null?void 0:h.async)===!1&&h.jitless!==!0)r||(r=o(t.shape)),c=r(c,h);else{c.value={};const v=d.shape;for(const _ of d.keys){const $=v[_]._zod.run({value:y[_],issues:[]},h);$ instanceof Promise?x.push($.then(N=>xs(N,c,_,y))):xs($,c,_,y)}}if(!u)return x.length?Promise.all(x).then(()=>c):c;const b=[],w=d.keySet,m=u._zod,p=m.def.type;for(const v of Object.keys(y)){if(w.has(v))continue;if(p==="never"){b.push(v);continue}const _=m.run({value:y[v],issues:[]},h);_ instanceof Promise?x.push(_.then(S=>xs(S,c,v,y))):xs(_,c,v,y)}return b.length&&c.issues.push({code:"unrecognized_keys",keys:b,input:y,inst:e}),x.length?Promise.all(x).then(()=>c):c}});function Lv(e,t,n,o){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const r=e.filter(i=>!Uo(i));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>cn(a,o,mt())))}),t)}const Ym=j("$ZodUnion",(e,t)=>{ie.init(e,t),ge(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),ge(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),ge(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),ge(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){const n=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${n.map(o=>ku(o.source)).join("|")})$`)}}),e._zod.parse=(n,o)=>{let r=!1;const i=[];for(const a of t.options){const s=a._zod.run({value:n.value,issues:[]},o);if(s instanceof Promise)i.push(s),r=!0;else{if(s.issues.length===0)return s;i.push(s)}}return r?Promise.all(i).then(a=>Lv(a,n,e,o)):Lv(i,n,e,o)}}),sk=j("$ZodDiscriminatedUnion",(e,t)=>{Ym.init(e,t);const n=e._zod.parse;ge(e._zod,"propValues",()=>{const r={};for(const i of t.options){const a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const[s,l]of Object.entries(a)){r[s]||(r[s]=new Set);for(const u of l)r[s].add(u)}}return r});const o=Su(()=>{var a;const r=t.options,i=new Map;for(const s of r){const l=(a=s._zod.propValues)==null?void 0:a[t.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(const u of l){if(i.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);i.set(u,s)}}return i});e._zod.parse=(r,i)=>{const a=r.value;if(!va(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;const s=o.value.get(a==null?void 0:a[t.discriminator]);return s?s._zod.run(r,i):t.unionFallback?n(r,i):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),r)}}),lk=j("$ZodIntersection",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{const r=n.value,i=t.left._zod.run({value:r,issues:[]},o),a=t.right._zod.run({value:r,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([l,u])=>Mv(n,l,u)):Mv(n,i,a)}});function Ld(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ya(e)&&ya(t)){const n=Object.keys(t),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),r={...e,...t};for(const i of o){const a=Ld(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r[i]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let o=0;o<e.length;o++){const r=e[o],i=t[o],a=Ld(r,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Mv(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),Uo(e))return e;const o=Ld(t.value,n.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const ju=j("$ZodTuple",(e,t)=>{ie.init(e,t);const n=t.items,o=n.length-[...n].reverse().findIndex(r=>r._zod.optin!=="optional");e._zod.parse=(r,i)=>{const a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];const s=[];if(!t.rest){const u=a.length>n.length,d=a.length<o-1;if(u||d)return r.issues.push({input:a,inst:e,origin:"array",...u?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length}}),r}let l=-1;for(const u of n){if(l++,l>=a.length&&l>=o)continue;const d=u._zod.run({value:a[l],issues:[]},i);d instanceof Promise?s.push(d.then(c=>ws(c,r,l))):ws(d,r,l)}if(t.rest){const u=a.slice(n.length);for(const d of u){l++;const c=t.rest._zod.run({value:d,issues:[]},i);c instanceof Promise?s.push(c.then(h=>ws(h,r,l))):ws(c,r,l)}}return s.length?Promise.all(s).then(()=>r):r}});function ws(e,t,n){e.issues.length&&t.issues.push(...tn(n,e.issues)),t.value[n]=e.value}const uk=j("$ZodRecord",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;if(!ya(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;const i=[];if(t.keyType._zod.values){const a=t.keyType._zod.values;n.value={};for(const l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){const u=t.valueType._zod.run({value:r[l],issues:[]},o);u instanceof Promise?i.push(u.then(d=>{d.issues.length&&n.issues.push(...tn(l,d.issues)),n.value[l]=d.value})):(u.issues.length&&n.issues.push(...tn(l,u.issues)),n.value[l]=u.value)}let s;for(const l in r)a.has(l)||(s=s??[],s.push(l));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:s})}else{n.value={};for(const a of Reflect.ownKeys(r)){if(a==="__proto__")continue;const s=t.keyType._zod.run({value:a,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(s.issues.length){n.issues.push({origin:"record",code:"invalid_key",issues:s.issues.map(u=>cn(u,o,mt())),input:a,path:[a],inst:e}),n.value[s.value]=s.value;continue}const l=t.valueType._zod.run({value:r[a],issues:[]},o);l instanceof Promise?i.push(l.then(u=>{u.issues.length&&n.issues.push(...tn(a,u.issues)),n.value[s.value]=u.value})):(l.issues.length&&n.issues.push(...tn(a,l.issues)),n.value[s.value]=l.value)}}return i.length?Promise.all(i).then(()=>n):n}}),ck=j("$ZodMap",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;const i=[];n.value=new Map;for(const[a,s]of r){const l=t.keyType._zod.run({value:a,issues:[]},o),u=t.valueType._zod.run({value:s,issues:[]},o);l instanceof Promise||u instanceof Promise?i.push(Promise.all([l,u]).then(([d,c])=>{Fv(d,c,n,a,r,e,o)})):Fv(l,u,n,a,r,e,o)}return i.length?Promise.all(i).then(()=>n):n}});function Fv(e,t,n,o,r,i,a){e.issues.length&&(El.has(typeof o)?n.issues.push(...tn(o,e.issues)):n.issues.push({origin:"map",code:"invalid_key",input:r,inst:i,issues:e.issues.map(s=>cn(s,a,mt()))})),t.issues.length&&(El.has(typeof o)?n.issues.push(...tn(o,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:i,key:o,issues:t.issues.map(s=>cn(s,a,mt()))})),n.value.set(e.value,t.value)}const dk=j("$ZodSet",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),n;const i=[];n.value=new Set;for(const a of r){const s=t.valueType._zod.run({value:a,issues:[]},o);s instanceof Promise?i.push(s.then(l=>Vv(l,n))):Vv(s,n)}return i.length?Promise.all(i).then(()=>n):n}});function Vv(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}const fk=j("$ZodEnum",(e,t)=>{ie.init(e,t);const n=Tm(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(r=>El.has(typeof r)).map(r=>typeof r=="string"?jr(r):r.toString()).join("|")})$`),e._zod.parse=(r,i)=>{const a=r.value;return o.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r}}),mk=j("$ZodLiteral",(e,t)=>{if(ie.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?jr(n):n?jr(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,o)=>{const r=n.value;return e._zod.values.has(r)||n.issues.push({code:"invalid_value",values:t.values,input:r,inst:e}),n}}),pk=j("$ZodFile",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n}}),Xm=j("$ZodTransform",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{const r=t.transform(n.value,n);if(o.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n));if(r instanceof Promise)throw new qo;return n.value=r,n}}),hk=j("$ZodOptional",(e,t)=>{ie.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ge(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ge(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${ku(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>t.innerType._zod.optin==="optional"?t.innerType._zod.run(n,o):n.value===void 0?n:t.innerType._zod.run(n,o)}),gk=j("$ZodNullable",(e,t)=>{ie.init(e,t),ge(e._zod,"optin",()=>t.innerType._zod.optin),ge(e._zod,"optout",()=>t.innerType._zod.optout),ge(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${ku(n.source)}|null)$`):void 0}),ge(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:t.innerType._zod.run(n,o)}),vk=j("$ZodDefault",(e,t)=>{ie.init(e,t),e._zod.optin="optional",ge(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(n.value===void 0)return n.value=t.defaultValue,n;const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>Zv(i,t)):Zv(r,t)}});function Zv(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const yk=j("$ZodPrefault",(e,t)=>{ie.init(e,t),e._zod.optin="optional",ge(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>(n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,o))}),bk=j("$ZodNonOptional",(e,t)=>{ie.init(e,t),ge(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>Wv(i,e)):Wv(r,e)}});function Wv(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const xk=j("$ZodSuccess",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>(n.value=i.issues.length===0,n)):(n.value=r.issues.length===0,n)}}),wk=j("$ZodCatch",(e,t)=>{ie.init(e,t),ge(e._zod,"optin",()=>t.innerType._zod.optin),ge(e._zod,"optout",()=>t.innerType._zod.optout),ge(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(a=>cn(a,o,mt()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(i=>cn(i,o,mt()))},input:n.value}),n.issues=[]),n)}}),_k=j("$ZodNaN",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),Qm=j("$ZodPipe",(e,t)=>{ie.init(e,t),ge(e._zod,"values",()=>t.in._zod.values),ge(e._zod,"optin",()=>t.in._zod.optin),ge(e._zod,"optout",()=>t.out._zod.optout),ge(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{const r=t.in._zod.run(n,o);return r instanceof Promise?r.then(i=>Bv(i,t,o)):Bv(r,t,o)}});function Bv(e,t,n){return e.issues.length?e:t.out._zod.run({value:e.value,issues:e.issues},n)}const Sk=j("$ZodReadonly",(e,t)=>{ie.init(e,t),ge(e._zod,"propValues",()=>t.innerType._zod.propValues),ge(e._zod,"values",()=>t.innerType._zod.values),ge(e._zod,"optin",()=>t.innerType._zod.optin),ge(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,o)=>{const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(Hv):Hv(r)}});function Hv(e){return e.value=Object.freeze(e.value),e}const kk=j("$ZodTemplateLiteral",(e,t)=>{ie.init(e,t);const n=[];for(const o of t.parts)if(o instanceof ie){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);const r=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${o._zod.traits}`);const i=r.startsWith("^")?1:0,a=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(i,a))}else if(o===null||c_.has(typeof o))n.push(jr(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(o,r)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"template_literal",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),$k=j("$ZodPromise",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},o))}),Nk=j("$ZodLazy",(e,t)=>{ie.init(e,t),ge(e._zod,"innerType",()=>t.getter()),ge(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),ge(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),ge(e._zod,"optin",()=>e._zod.innerType._zod.optin),ge(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),Ek=j("$ZodCustom",(e,t)=>{Ae.init(e,t),ie.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{const o=n.value,r=t.fn(o);if(r instanceof Promise)return r.then(i=>Gv(i,n,o,e));Gv(r,n,o,e)}});function Gv(e,t,n,o){if(!e){const r={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(r.params=o._zod.def.params),t.issues.push(ei(r))}}const IT=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"};return r=>{switch(r.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${r.expected}، ولكن تم إدخال ${n(r.input)}`;case"invalid_value":return r.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${ae(r.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?` أكبر من اللازم: يفترض أن تكون ${r.origin??"القيمة"} ${i} ${r.maximum.toString()} ${a.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${r.origin??"القيمة"} ${i} ${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`أصغر من اللازم: يفترض لـ ${r.origin} أن يكون ${i} ${r.minimum.toString()} ${a.unit}`:`أصغر من اللازم: يفترض لـ ${r.origin} أن يكون ${i} ${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${r.prefix}"`:i.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${i.suffix}"`:i.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${i.includes}"`:i.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${i.pattern}`:`${o[i.format]??r.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${r.divisor}`;case"unrecognized_keys":return`معرف${r.keys.length>1?"ات":""} غريب${r.keys.length>1?"ة":""}: ${L(r.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${r.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${r.origin}`;default:return"مدخل غير مقبول"}}};function CT(){return{localeError:IT()}}const zT=()=>{const e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${r.expected}, daxil olan ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Yanlış dəyər: gözlənilən ${ae(r.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Çox böyük: gözlənilən ${r.origin??"dəyər"} ${i}${r.maximum.toString()} ${a.unit??"element"}`:`Çox böyük: gözlənilən ${r.origin??"dəyər"} ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Çox kiçik: gözlənilən ${r.origin} ${i}${r.minimum.toString()} ${a.unit}`:`Çox kiçik: gözlənilən ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Yanlış mətn: "${i.prefix}" ilə başlamalıdır`:i.format==="ends_with"?`Yanlış mətn: "${i.suffix}" ilə bitməlidir`:i.format==="includes"?`Yanlış mətn: "${i.includes}" daxil olmalıdır`:i.format==="regex"?`Yanlış mətn: ${i.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${o[i.format]??r.format}`}case"not_multiple_of":return`Yanlış ədəd: ${r.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${r.keys.length>1?"lar":""}: ${L(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${r.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function PT(){return{localeError:zT()}}function Kv(e,t,n,o){const r=Math.abs(e),i=r%10,a=r%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?n:o}const OT=()=>{const e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"лік";case"object":{if(Array.isArray(r))return"масіў";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"};return r=>{switch(r.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${r.expected}, атрымана ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Няправільны ўвод: чакалася ${ae(r.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);if(a){const s=Number(r.maximum),l=Kv(s,a.unit.one,a.unit.few,a.unit.many);return`Занадта вялікі: чакалася, што ${r.origin??"значэнне"} павінна ${a.verb} ${i}${r.maximum.toString()} ${l}`}return`Занадта вялікі: чакалася, што ${r.origin??"значэнне"} павінна быць ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);if(a){const s=Number(r.minimum),l=Kv(s,a.unit.one,a.unit.few,a.unit.many);return`Занадта малы: чакалася, што ${r.origin} павінна ${a.verb} ${i}${r.minimum.toString()} ${l}`}return`Занадта малы: чакалася, што ${r.origin} павінна быць ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${i.prefix}"`:i.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${i.suffix}"`:i.format==="includes"?`Няправільны радок: павінен змяшчаць "${i.includes}"`:i.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${i.pattern}`:`Няправільны ${o[i.format]??r.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${r.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${r.keys.length>1?"ключы":"ключ"}: ${L(r.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${r.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${r.origin}`;default:return"Няправільны ўвод"}}};function TT(){return{localeError:OT()}}const DT=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return r=>{switch(r.code){case"invalid_type":return`Tipus invàlid: s'esperava ${r.expected}, s'ha rebut ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Valor invàlid: s'esperava ${ae(r.values[0])}`:`Opció invàlida: s'esperava una de ${L(r.values," o ")}`;case"too_big":{const i=r.inclusive?"com a màxim":"menys de",a=t(r.origin);return a?`Massa gran: s'esperava que ${r.origin??"el valor"} contingués ${i} ${r.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${i} ${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?"com a mínim":"més de",a=t(r.origin);return a?`Massa petit: s'esperava que ${r.origin} contingués ${i} ${r.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${i} ${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Format invàlid: ha de començar amb "${i.prefix}"`:i.format==="ends_with"?`Format invàlid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format invàlid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${i.pattern}`:`Format invàlid per a ${o[i.format]??r.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${L(r.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${r.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${r.origin}`;default:return"Entrada invàlida"}}};function RT(){return{localeError:DT()}}const AT=()=>{const e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"číslo";case"string":return"řetězec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(r))return"pole";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"};return r=>{switch(r.code){case"invalid_type":return`Neplatný vstup: očekáváno ${r.expected}, obdrženo ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Neplatný vstup: očekáváno ${ae(r.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je příliš velká: ${r.origin??"hodnota"} musí mít ${i}${r.maximum.toString()} ${a.unit??"prvků"}`:`Hodnota je příliš velká: ${r.origin??"hodnota"} musí být ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Hodnota je příliš malá: ${r.origin??"hodnota"} musí mít ${i}${r.minimum.toString()} ${a.unit??"prvků"}`:`Hodnota je příliš malá: ${r.origin??"hodnota"} musí být ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Neplatný řetězec: musí začínat na "${i.prefix}"`:i.format==="ends_with"?`Neplatný řetězec: musí končit na "${i.suffix}"`:i.format==="includes"?`Neplatný řetězec: musí obsahovat "${i.includes}"`:i.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${i.pattern}`:`Neplatný formát ${o[i.format]??r.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${r.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${L(r.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${r.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${r.origin}`;default:return"Neplatný vstup"}}};function UT(){return{localeError:AT()}}const LT=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},t={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};function n(a){return e[a]??null}function o(a){return t[a]??a}const r=a=>{const s=typeof a;switch(s){case"number":return Number.isNaN(a)?"NaN":"tal";case"object":return Array.isArray(a)?"liste":a===null?"null":Object.getPrototypeOf(a)!==Object.prototype&&a.constructor?a.constructor.name:"objekt"}return s},i={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return a=>{switch(a.code){case"invalid_type":return`Ugyldigt input: forventede ${o(a.expected)}, fik ${o(r(a.input))}`;case"invalid_value":return a.values.length===1?`Ugyldig værdi: forventede ${ae(a.values[0])}`:`Ugyldigt valg: forventede en af følgende ${L(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",l=n(a.origin),u=o(a.origin);return l?`For stor: forventede ${u??"value"} ${l.verb} ${s} ${a.maximum.toString()} ${l.unit??"elementer"}`:`For stor: forventede ${u??"value"} havde ${s} ${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",l=n(a.origin),u=o(a.origin);return l?`For lille: forventede ${u} ${l.verb} ${s} ${a.minimum.toString()} ${l.unit}`:`For lille: forventede ${u} havde ${s} ${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Ugyldig streng: skal starte med "${s.prefix}"`:s.format==="ends_with"?`Ugyldig streng: skal ende med "${s.suffix}"`:s.format==="includes"?`Ugyldig streng: skal indeholde "${s.includes}"`:s.format==="regex"?`Ugyldig streng: skal matche mønsteret ${s.pattern}`:`Ugyldig ${i[s.format]??a.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${L(a.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${a.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${a.origin}`;default:return"Ugyldigt input"}}};function MT(){return{localeError:LT()}}const FT=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"Zahl";case"object":{if(Array.isArray(r))return"Array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return r=>{switch(r.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${r.expected}, erhalten ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ungültige Eingabe: erwartet ${ae(r.values[0])}`:`Ungültige Option: erwartet eine von ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Zu groß: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ist`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${i}${r.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${i}${r.minimum.toString()} ist`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Ungültiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ungültiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ungültiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ungültiger String: muss dem Muster ${i.pattern} entsprechen`:`Ungültig: ${o[i.format]??r.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${L(r.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${r.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${r.origin}`;default:return"Ungültige Eingabe"}}};function VT(){return{localeError:FT()}}const ZT=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},WT=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function t(o){return e[o]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return o=>{switch(o.code){case"invalid_type":return`Invalid input: expected ${o.expected}, received ${ZT(o.input)}`;case"invalid_value":return o.values.length===1?`Invalid input: expected ${ae(o.values[0])}`:`Invalid option: expected one of ${L(o.values,"|")}`;case"too_big":{const r=o.inclusive?"<=":"<",i=t(o.origin);return i?`Too big: expected ${o.origin??"value"} to have ${r}${o.maximum.toString()} ${i.unit??"elements"}`:`Too big: expected ${o.origin??"value"} to be ${r}${o.maximum.toString()}`}case"too_small":{const r=o.inclusive?">=":">",i=t(o.origin);return i?`Too small: expected ${o.origin} to have ${r}${o.minimum.toString()} ${i.unit}`:`Too small: expected ${o.origin} to be ${r}${o.minimum.toString()}`}case"invalid_format":{const r=o;return r.format==="starts_with"?`Invalid string: must start with "${r.prefix}"`:r.format==="ends_with"?`Invalid string: must end with "${r.suffix}"`:r.format==="includes"?`Invalid string: must include "${r.includes}"`:r.format==="regex"?`Invalid string: must match pattern ${r.pattern}`:`Invalid ${n[r.format]??o.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${o.divisor}`;case"unrecognized_keys":return`Unrecognized key${o.keys.length>1?"s":""}: ${L(o.keys,", ")}`;case"invalid_key":return`Invalid key in ${o.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${o.origin}`;default:return"Invalid input"}}};function jk(){return{localeError:WT()}}const BT=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},HT=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(o){return e[o]??null}const n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return o=>{switch(o.code){case"invalid_type":return`Nevalida enigo: atendiĝis ${o.expected}, riceviĝis ${BT(o.input)}`;case"invalid_value":return o.values.length===1?`Nevalida enigo: atendiĝis ${ae(o.values[0])}`:`Nevalida opcio: atendiĝis unu el ${L(o.values,"|")}`;case"too_big":{const r=o.inclusive?"<=":"<",i=t(o.origin);return i?`Tro granda: atendiĝis ke ${o.origin??"valoro"} havu ${r}${o.maximum.toString()} ${i.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${o.origin??"valoro"} havu ${r}${o.maximum.toString()}`}case"too_small":{const r=o.inclusive?">=":">",i=t(o.origin);return i?`Tro malgranda: atendiĝis ke ${o.origin} havu ${r}${o.minimum.toString()} ${i.unit}`:`Tro malgranda: atendiĝis ke ${o.origin} estu ${r}${o.minimum.toString()}`}case"invalid_format":{const r=o;return r.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${r.prefix}"`:r.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${r.suffix}"`:r.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${r.includes}"`:r.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${r.pattern}`:`Nevalida ${n[r.format]??o.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${o.divisor}`;case"unrecognized_keys":return`Nekonata${o.keys.length>1?"j":""} ŝlosilo${o.keys.length>1?"j":""}: ${L(o.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${o.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${o.origin}`;default:return"Nevalida enigo"}}};function GT(){return{localeError:HT()}}const KT=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"número";case"object":{if(Array.isArray(r))return"arreglo";if(r===null)return"nulo";if(Object.getPrototypeOf(r)!==Object.prototype)return r.constructor.name}}return i},o={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return r=>{switch(r.code){case"invalid_type":return`Entrada inválida: se esperaba ${r.expected}, recibido ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Entrada inválida: se esperaba ${ae(r.values[0])}`:`Opción inválida: se esperaba una de ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Demasiado grande: se esperaba que ${r.origin??"valor"} tuviera ${i}${r.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${r.origin??"valor"} fuera ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Demasiado pequeño: se esperaba que ${r.origin} tuviera ${i}${r.minimum.toString()} ${a.unit}`:`Demasiado pequeño: se esperaba que ${r.origin} fuera ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Cadena inválida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inválida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inválida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${i.pattern}`:`Inválido ${o[i.format]??r.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${L(r.keys,", ")}`;case"invalid_key":return`Llave inválida en ${r.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${r.origin}`;default:return"Entrada inválida"}}};function JT(){return{localeError:KT()}}const YT=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"عدد";case"object":{if(Array.isArray(r))return"آرایه";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"};return r=>{switch(r.code){case"invalid_type":return`ورودی نامعتبر: می‌بایست ${r.expected} می‌بود، ${n(r.input)} دریافت شد`;case"invalid_value":return r.values.length===1?`ورودی نامعتبر: می‌بایست ${ae(r.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${L(r.values,"|")} می‌بود`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`خیلی بزرگ: ${r.origin??"مقدار"} باید ${i}${r.maximum.toString()} ${a.unit??"عنصر"} باشد`:`خیلی بزرگ: ${r.origin??"مقدار"} باید ${i}${r.maximum.toString()} باشد`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`خیلی کوچک: ${r.origin} باید ${i}${r.minimum.toString()} ${a.unit} باشد`:`خیلی کوچک: ${r.origin} باید ${i}${r.minimum.toString()} باشد`}case"invalid_format":{const i=r;return i.format==="starts_with"?`رشته نامعتبر: باید با "${i.prefix}" شروع شود`:i.format==="ends_with"?`رشته نامعتبر: باید با "${i.suffix}" تمام شود`:i.format==="includes"?`رشته نامعتبر: باید شامل "${i.includes}" باشد`:i.format==="regex"?`رشته نامعتبر: باید با الگوی ${i.pattern} مطابقت داشته باشد`:`${o[i.format]??r.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${r.divisor} باشد`;case"unrecognized_keys":return`کلید${r.keys.length>1?"های":""} ناشناس: ${L(r.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${r.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${r.origin}`;default:return"ورودی نامعتبر"}}};function XT(){return{localeError:YT()}}const QT=()=>{const e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return r=>{switch(r.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${r.expected}, oli ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Virheellinen syöte: täytyy olla ${ae(r.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Liian suuri: ${a.subject} täytyy olla ${i}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon täytyy olla ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Liian pieni: ${a.subject} täytyy olla ${i}${r.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon täytyy olla ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen syöte: täytyy sisältää "${i.includes}"`:i.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${i.pattern}`:`Virheellinen ${o[i.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${L(r.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function qT(){return{localeError:QT()}}const eD=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"nombre";case"object":{if(Array.isArray(r))return"tableau";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return r=>{switch(r.code){case"invalid_type":return`Entrée invalide : ${r.expected} attendu, ${n(r.input)} reçu`;case"invalid_value":return r.values.length===1?`Entrée invalide : ${ae(r.values[0])} attendu`:`Option invalide : une valeur parmi ${L(r.values,"|")} attendue`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${r.origin??"valeur"} doit ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"élément(s)"}`:`Trop grand : ${r.origin??"valeur"} doit être ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${r.origin} doit ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${r.origin} doit être ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Chaîne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Chaîne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Chaîne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${i.pattern}`:`${o[i.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${r.divisor}`;case"unrecognized_keys":return`Clé${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${L(r.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${r.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entrée invalide"}}};function tD(){return{localeError:eD()}}const nD=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return r=>{switch(r.code){case"invalid_type":return`Entrée invalide : attendu ${r.expected}, reçu ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Entrée invalide : attendu ${ae(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"≤":"<",a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${i}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?"≥":">",a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${i}${r.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${r.origin} soit ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Chaîne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Chaîne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Chaîne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Chaîne invalide : doit correspondre au motif ${i.pattern}`:`${o[i.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${r.divisor}`;case"unrecognized_keys":return`Clé${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${L(r.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${r.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entrée invalide"}}};function rD(){return{localeError:nD()}}const oD=()=>{const e={string:{unit:"אותיות",verb:"לכלול"},file:{unit:"בייטים",verb:"לכלול"},array:{unit:"פריטים",verb:"לכלול"},set:{unit:"פריטים",verb:"לכלול"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"קלט",email:"כתובת אימייל",url:"כתובת רשת",emoji:"אימוג'י",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"תאריך וזמן ISO",date:"תאריך ISO",time:"זמן ISO",duration:"משך זמן ISO",ipv4:"כתובת IPv4",ipv6:"כתובת IPv6",cidrv4:"טווח IPv4",cidrv6:"טווח IPv6",base64:"מחרוזת בבסיס 64",base64url:"מחרוזת בבסיס 64 לכתובות רשת",json_string:"מחרוזת JSON",e164:"מספר E.164",jwt:"JWT",template_literal:"קלט"};return r=>{switch(r.code){case"invalid_type":return`קלט לא תקין: צריך ${r.expected}, התקבל ${n(r.input)}`;case"invalid_value":return r.values.length===1?`קלט לא תקין: צריך ${ae(r.values[0])}`:`קלט לא תקין: צריך אחת מהאפשרויות ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`גדול מדי: ${r.origin??"value"} צריך להיות ${i}${r.maximum.toString()} ${a.unit??"elements"}`:`גדול מדי: ${r.origin??"value"} צריך להיות ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`קטן מדי: ${r.origin} צריך להיות ${i}${r.minimum.toString()} ${a.unit}`:`קטן מדי: ${r.origin} צריך להיות ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`מחרוזת לא תקינה: חייבת להתחיל ב"${i.prefix}"`:i.format==="ends_with"?`מחרוזת לא תקינה: חייבת להסתיים ב "${i.suffix}"`:i.format==="includes"?`מחרוזת לא תקינה: חייבת לכלול "${i.includes}"`:i.format==="regex"?`מחרוזת לא תקינה: חייבת להתאים לתבנית ${i.pattern}`:`${o[i.format]??r.format} לא תקין`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${r.divisor}`;case"unrecognized_keys":return`מפתח${r.keys.length>1?"ות":""} לא מזוה${r.keys.length>1?"ים":"ה"}: ${L(r.keys,", ")}`;case"invalid_key":return`מפתח לא תקין ב${r.origin}`;case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${r.origin}`;default:return"קלט לא תקין"}}};function iD(){return{localeError:oD()}}const aD=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"szám";case"object":{if(Array.isArray(r))return"tömb";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"};return r=>{switch(r.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${r.expected}, a kapott érték ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Érvénytelen bemenet: a várt érték ${ae(r.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Túl nagy: ${r.origin??"érték"} mérete túl nagy ${i}${r.maximum.toString()} ${a.unit??"elem"}`:`Túl nagy: a bemeneti érték ${r.origin??"érték"} túl nagy: ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Túl kicsi: a bemeneti érték ${r.origin} mérete túl kicsi ${i}${r.minimum.toString()} ${a.unit}`:`Túl kicsi: a bemeneti érték ${r.origin} túl kicsi ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Érvénytelen string: "${i.prefix}" értékkel kell kezdődnie`:i.format==="ends_with"?`Érvénytelen string: "${i.suffix}" értékkel kell végződnie`:i.format==="includes"?`Érvénytelen string: "${i.includes}" értéket kell tartalmaznia`:i.format==="regex"?`Érvénytelen string: ${i.pattern} mintának kell megfelelnie`:`Érvénytelen ${o[i.format]??r.format}`}case"not_multiple_of":return`Érvénytelen szám: ${r.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${L(r.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${r.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${r.origin}`;default:return"Érvénytelen bemenet"}}};function sD(){return{localeError:aD()}}const lD=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Input tidak valid: diharapkan ${r.expected}, diterima ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${ae(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${i}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${i}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${o[i.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${L(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}};function uD(){return{localeError:lD()}}const cD=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"númer";case"object":{if(Array.isArray(e))return"fylki";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},dD=()=>{const e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function t(o){return e[o]??null}const n={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"};return o=>{switch(o.code){case"invalid_type":return`Rangt gildi: Þú slóst inn ${cD(o.input)} þar sem á að vera ${o.expected}`;case"invalid_value":return o.values.length===1?`Rangt gildi: gert ráð fyrir ${ae(o.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${L(o.values,"|")}`;case"too_big":{const r=o.inclusive?"<=":"<",i=t(o.origin);return i?`Of stórt: gert er ráð fyrir að ${o.origin??"gildi"} hafi ${r}${o.maximum.toString()} ${i.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${o.origin??"gildi"} sé ${r}${o.maximum.toString()}`}case"too_small":{const r=o.inclusive?">=":">",i=t(o.origin);return i?`Of lítið: gert er ráð fyrir að ${o.origin} hafi ${r}${o.minimum.toString()} ${i.unit}`:`Of lítið: gert er ráð fyrir að ${o.origin} sé ${r}${o.minimum.toString()}`}case"invalid_format":{const r=o;return r.format==="starts_with"?`Ógildur strengur: verður að byrja á "${r.prefix}"`:r.format==="ends_with"?`Ógildur strengur: verður að enda á "${r.suffix}"`:r.format==="includes"?`Ógildur strengur: verður að innihalda "${r.includes}"`:r.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${r.pattern}`:`Rangt ${n[r.format]??o.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${o.divisor}`;case"unrecognized_keys":return`Óþekkt ${o.keys.length>1?"ir lyklar":"ur lykill"}: ${L(o.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${o.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${o.origin}`;default:return"Rangt gildi"}}};function fD(){return{localeError:dD()}}const mD=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"numero";case"object":{if(Array.isArray(r))return"vettore";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Input non valido: atteso ${r.expected}, ricevuto ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Input non valido: atteso ${ae(r.values[0])}`:`Opzione non valida: atteso uno tra ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${i}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${i}${r.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${r.origin} deve essere ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Invalid ${o[i.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${L(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}};function pD(){return{localeError:mD()}}const hD=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"数値";case"object":{if(Array.isArray(r))return"配列";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"};return r=>{switch(r.code){case"invalid_type":return`無効な入力: ${r.expected}が期待されましたが、${n(r.input)}が入力されました`;case"invalid_value":return r.values.length===1?`無効な入力: ${ae(r.values[0])}が期待されました`:`無効な選択: ${L(r.values,"、")}のいずれかである必要があります`;case"too_big":{const i=r.inclusive?"以下である":"より小さい",a=t(r.origin);return a?`大きすぎる値: ${r.origin??"値"}は${r.maximum.toString()}${a.unit??"要素"}${i}必要があります`:`大きすぎる値: ${r.origin??"値"}は${r.maximum.toString()}${i}必要があります`}case"too_small":{const i=r.inclusive?"以上である":"より大きい",a=t(r.origin);return a?`小さすぎる値: ${r.origin}は${r.minimum.toString()}${a.unit}${i}必要があります`:`小さすぎる値: ${r.origin}は${r.minimum.toString()}${i}必要があります`}case"invalid_format":{const i=r;return i.format==="starts_with"?`無効な文字列: "${i.prefix}"で始まる必要があります`:i.format==="ends_with"?`無効な文字列: "${i.suffix}"で終わる必要があります`:i.format==="includes"?`無効な文字列: "${i.includes}"を含む必要があります`:i.format==="regex"?`無効な文字列: パターン${i.pattern}に一致する必要があります`:`無効な${o[i.format]??r.format}`}case"not_multiple_of":return`無効な数値: ${r.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${r.keys.length>1?"群":""}: ${L(r.keys,"、")}`;case"invalid_key":return`${r.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${r.origin}内の無効な値`;default:return"無効な入力"}}};function gD(){return{localeError:hD()}}const vD=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":{if(Array.isArray(r))return"អារេ (Array)";if(r===null)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"};return r=>{switch(r.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${r.expected} ប៉ុន្តែទទួលបាន ${n(r.input)}`;case"invalid_value":return r.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${ae(r.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`ធំពេក៖ ត្រូវការ ${r.origin??"តម្លៃ"} ${i} ${r.maximum.toString()} ${a.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${r.origin??"តម្លៃ"} ${i} ${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`តូចពេក៖ ត្រូវការ ${r.origin} ${i} ${r.minimum.toString()} ${a.unit}`:`តូចពេក៖ ត្រូវការ ${r.origin} ${i} ${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${i.prefix}"`:i.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${i.suffix}"`:i.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${i.includes}"`:i.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${i.pattern}`:`មិនត្រឹមត្រូវ៖ ${o[i.format]??r.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${r.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${L(r.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${r.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${r.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function yD(){return{localeError:vD()}}const bD=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"};return r=>{switch(r.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${r.expected}, 받은 타입은 ${n(r.input)}입니다`;case"invalid_value":return r.values.length===1?`잘못된 입력: 값은 ${ae(r.values[0])} 이어야 합니다`:`잘못된 옵션: ${L(r.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const i=r.inclusive?"이하":"미만",a=i==="미만"?"이어야 합니다":"여야 합니다",s=t(r.origin),l=(s==null?void 0:s.unit)??"요소";return s?`${r.origin??"값"}이 너무 큽니다: ${r.maximum.toString()}${l} ${i}${a}`:`${r.origin??"값"}이 너무 큽니다: ${r.maximum.toString()} ${i}${a}`}case"too_small":{const i=r.inclusive?"이상":"초과",a=i==="이상"?"이어야 합니다":"여야 합니다",s=t(r.origin),l=(s==null?void 0:s.unit)??"요소";return s?`${r.origin??"값"}이 너무 작습니다: ${r.minimum.toString()}${l} ${i}${a}`:`${r.origin??"값"}이 너무 작습니다: ${r.minimum.toString()} ${i}${a}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`잘못된 문자열: "${i.prefix}"(으)로 시작해야 합니다`:i.format==="ends_with"?`잘못된 문자열: "${i.suffix}"(으)로 끝나야 합니다`:i.format==="includes"?`잘못된 문자열: "${i.includes}"을(를) 포함해야 합니다`:i.format==="regex"?`잘못된 문자열: 정규식 ${i.pattern} 패턴과 일치해야 합니다`:`잘못된 ${o[i.format]??r.format}`}case"not_multiple_of":return`잘못된 숫자: ${r.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${L(r.keys,", ")}`;case"invalid_key":return`잘못된 키: ${r.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${r.origin}`;default:return"잘못된 입력"}}};function xD(){return{localeError:bD()}}const wD=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"број";case"object":{if(Array.isArray(r))return"низа";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"};return r=>{switch(r.code){case"invalid_type":return`Грешен внес: се очекува ${r.expected}, примено ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Invalid input: expected ${ae(r.values[0])}`:`Грешана опција: се очекува една ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Премногу голем: се очекува ${r.origin??"вредноста"} да има ${i}${r.maximum.toString()} ${a.unit??"елементи"}`:`Премногу голем: се очекува ${r.origin??"вредноста"} да биде ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Премногу мал: се очекува ${r.origin} да има ${i}${r.minimum.toString()} ${a.unit}`:`Премногу мал: се очекува ${r.origin} да биде ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Неважечка низа: мора да започнува со "${i.prefix}"`:i.format==="ends_with"?`Неважечка низа: мора да завршува со "${i.suffix}"`:i.format==="includes"?`Неважечка низа: мора да вклучува "${i.includes}"`:i.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${i.pattern}`:`Invalid ${o[i.format]??r.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${L(r.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${r.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${r.origin}`;default:return"Грешен внес"}}};function _D(){return{localeError:wD()}}const SD=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"nombor";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Input tidak sah: dijangka ${r.expected}, diterima ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${ae(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${o[i.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${L(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}};function kD(){return{localeError:SD()}}const $D=()=>{const e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"getal";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return r=>{switch(r.code){case"invalid_type":return`Ongeldige invoer: verwacht ${r.expected}, ontving ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${ae(r.values[0])}`:`Ongeldige optie: verwacht één van ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Te lang: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} ${a.unit??"elementen"} bevat`:`Te lang: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} is`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Te kort: verwacht dat ${r.origin} ${i}${r.minimum.toString()} ${a.unit} bevat`:`Te kort: verwacht dat ${r.origin} ${i}${r.minimum.toString()} is`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${o[i.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${L(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}};function ND(){return{localeError:$D()}}const ED=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"tall";case"object":{if(Array.isArray(r))return"liste";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Ugyldig input: forventet ${r.expected}, fikk ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${ae(r.values[0])}`:`Ugyldig valg: forventet en av ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til å ha ${i}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til å ha ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til å ha ${i}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${r.origin} til å ha ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Ugyldig streng: må starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: må ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: må inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: må matche mønsteret ${i.pattern}`:`Ugyldig ${o[i.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${L(r.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function jD(){return{localeError:ED()}}const ID=()=>{const e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"numara";case"object":{if(Array.isArray(r))return"saf";if(r===null)return"gayb";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"};return r=>{switch(r.code){case"invalid_type":return`Fâsit giren: umulan ${r.expected}, alınan ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Fâsit giren: umulan ${ae(r.values[0])}`:`Fâsit tercih: mûteberler ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Fazla büyük: ${r.origin??"value"}, ${i}${r.maximum.toString()} ${a.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${r.origin??"value"}, ${i}${r.maximum.toString()} olmalıydı.`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Fazla küçük: ${r.origin}, ${i}${r.minimum.toString()} ${a.unit} sahip olmalıydı.`:`Fazla küçük: ${r.origin}, ${i}${r.minimum.toString()} olmalıydı.`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Fâsit metin: "${i.prefix}" ile başlamalı.`:i.format==="ends_with"?`Fâsit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`Fâsit metin: "${i.includes}" ihtivâ etmeli.`:i.format==="regex"?`Fâsit metin: ${i.pattern} nakşına uymalı.`:`Fâsit ${o[i.format]??r.format}`}case"not_multiple_of":return`Fâsit sayı: ${r.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${r.keys.length>1?"s":""}: ${L(r.keys,", ")}`;case"invalid_key":return`${r.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${r.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function CD(){return{localeError:ID()}}const zD=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"عدد";case"object":{if(Array.isArray(r))return"ارې";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"};return r=>{switch(r.code){case"invalid_type":return`ناسم ورودي: باید ${r.expected} وای, مګر ${n(r.input)} ترلاسه شو`;case"invalid_value":return r.values.length===1?`ناسم ورودي: باید ${ae(r.values[0])} وای`:`ناسم انتخاب: باید یو له ${L(r.values,"|")} څخه وای`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`ډیر لوی: ${r.origin??"ارزښت"} باید ${i}${r.maximum.toString()} ${a.unit??"عنصرونه"} ولري`:`ډیر لوی: ${r.origin??"ارزښت"} باید ${i}${r.maximum.toString()} وي`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`ډیر کوچنی: ${r.origin} باید ${i}${r.minimum.toString()} ${a.unit} ولري`:`ډیر کوچنی: ${r.origin} باید ${i}${r.minimum.toString()} وي`}case"invalid_format":{const i=r;return i.format==="starts_with"?`ناسم متن: باید د "${i.prefix}" سره پیل شي`:i.format==="ends_with"?`ناسم متن: باید د "${i.suffix}" سره پای ته ورسيږي`:i.format==="includes"?`ناسم متن: باید "${i.includes}" ولري`:i.format==="regex"?`ناسم متن: باید د ${i.pattern} سره مطابقت ولري`:`${o[i.format]??r.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${r.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${r.keys.length>1?"کلیډونه":"کلیډ"}: ${L(r.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${r.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${r.origin} کې`;default:return"ناسمه ورودي"}}};function PD(){return{localeError:zD()}}const OD=()=>{const e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"liczba";case"object":{if(Array.isArray(r))return"tablica";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"};return r=>{switch(r.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${r.expected}, otrzymano ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${ae(r.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Za duża wartość: oczekiwano, że ${r.origin??"wartość"} będzie mieć ${i}${r.maximum.toString()} ${a.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${r.origin??"wartość"} będzie wynosić ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Za mała wartość: oczekiwano, że ${r.origin??"wartość"} będzie mieć ${i}${r.minimum.toString()} ${a.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${r.origin??"wartość"} będzie wynosić ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${i.prefix}"`:i.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${i.suffix}"`:i.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${i.includes}"`:i.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${i.pattern}`:`Nieprawidłow(y/a/e) ${o[i.format]??r.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${L(r.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${r.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${r.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function TD(){return{localeError:OD()}}const DD=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"número";case"object":{if(Array.isArray(r))return"array";if(r===null)return"nulo";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return r=>{switch(r.code){case"invalid_type":return`Tipo inválido: esperado ${r.expected}, recebido ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Entrada inválida: esperado ${ae(r.values[0])}`:`Opção inválida: esperada uma das ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${i}${r.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Muito pequeno: esperado que ${r.origin} tivesse ${i}${r.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Texto inválido: deve começar com "${i.prefix}"`:i.format==="ends_with"?`Texto inválido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inválido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inválido: deve corresponder ao padrão ${i.pattern}`:`${o[i.format]??r.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${L(r.keys,", ")}`;case"invalid_key":return`Chave inválida em ${r.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${r.origin}`;default:return"Campo inválido"}}};function RD(){return{localeError:DD()}}function Jv(e,t,n,o){const r=Math.abs(e),i=r%10,a=r%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?n:o}const AD=()=>{const e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"число";case"object":{if(Array.isArray(r))return"массив";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"};return r=>{switch(r.code){case"invalid_type":return`Неверный ввод: ожидалось ${r.expected}, получено ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Неверный ввод: ожидалось ${ae(r.values[0])}`:`Неверный вариант: ожидалось одно из ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);if(a){const s=Number(r.maximum),l=Jv(s,a.unit.one,a.unit.few,a.unit.many);return`Слишком большое значение: ожидалось, что ${r.origin??"значение"} будет иметь ${i}${r.maximum.toString()} ${l}`}return`Слишком большое значение: ожидалось, что ${r.origin??"значение"} будет ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);if(a){const s=Number(r.minimum),l=Jv(s,a.unit.one,a.unit.few,a.unit.many);return`Слишком маленькое значение: ожидалось, что ${r.origin} будет иметь ${i}${r.minimum.toString()} ${l}`}return`Слишком маленькое значение: ожидалось, что ${r.origin} будет ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Неверная строка: должна начинаться с "${i.prefix}"`:i.format==="ends_with"?`Неверная строка: должна заканчиваться на "${i.suffix}"`:i.format==="includes"?`Неверная строка: должна содержать "${i.includes}"`:i.format==="regex"?`Неверная строка: должна соответствовать шаблону ${i.pattern}`:`Неверный ${o[i.format]??r.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${r.divisor}`;case"unrecognized_keys":return`Нераспознанн${r.keys.length>1?"ые":"ый"} ключ${r.keys.length>1?"и":""}: ${L(r.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${r.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${r.origin}`;default:return"Неверные входные данные"}}};function UD(){return{localeError:AD()}}const LD=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"število";case"object":{if(Array.isArray(r))return"tabela";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"};return r=>{switch(r.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${r.expected}, prejeto ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Neveljaven vnos: pričakovano ${ae(r.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Preveliko: pričakovano, da bo ${r.origin??"vrednost"} imelo ${i}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${r.origin??"vrednost"} ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Premajhno: pričakovano, da bo ${r.origin} imelo ${i}${r.minimum.toString()} ${a.unit}`:`Premajhno: pričakovano, da bo ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Neveljaven niz: mora se začeti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se končati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${o[i.format]??r.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i ključi":" ključ"}: ${L(r.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}};function MD(){return{localeError:LD()}}const FD=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"antal";case"object":{if(Array.isArray(r))return"lista";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return r=>{switch(r.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${r.expected}, fick ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ogiltig inmatning: förväntat ${ae(r.values[0])}`:`Ogiltigt val: förväntade en av ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`För stor(t): förväntade ${r.origin??"värdet"} att ha ${i}${r.maximum.toString()} ${a.unit??"element"}`:`För stor(t): förväntat ${r.origin??"värdet"} att ha ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`För lite(t): förväntade ${r.origin??"värdet"} att ha ${i}${r.minimum.toString()} ${a.unit}`:`För lite(t): förväntade ${r.origin??"värdet"} att ha ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Ogiltig sträng: måste börja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig sträng: måste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig sträng: måste innehålla "${i.includes}"`:i.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${i.pattern}"`:`Ogiltig(t) ${o[i.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${L(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${r.origin??"värdet"}`;default:return"Ogiltig input"}}};function VD(){return{localeError:FD()}}const ZD=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"எண் அல்லாதது":"எண்";case"object":{if(Array.isArray(r))return"அணி";if(r===null)return"வெறுமை";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${r.expected}, பெறப்பட்டது ${n(r.input)}`;case"invalid_value":return r.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${ae(r.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${L(r.values,"|")} இல் ஒன்று`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${r.origin??"மதிப்பு"} ${i}${r.maximum.toString()} ${a.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${r.origin??"மதிப்பு"} ${i}${r.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${r.origin} ${i}${r.minimum.toString()} ${a.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${r.origin} ${i}${r.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const i=r;return i.format==="starts_with"?`தவறான சரம்: "${i.prefix}" இல் தொடங்க வேண்டும்`:i.format==="ends_with"?`தவறான சரம்: "${i.suffix}" இல் முடிவடைய வேண்டும்`:i.format==="includes"?`தவறான சரம்: "${i.includes}" ஐ உள்ளடக்க வேண்டும்`:i.format==="regex"?`தவறான சரம்: ${i.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${o[i.format]??r.format}`}case"not_multiple_of":return`தவறான எண்: ${r.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${r.keys.length>1?"கள்":""}: ${L(r.keys,", ")}`;case"invalid_key":return`${r.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${r.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function WD(){return{localeError:ZD()}}const BD=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":{if(Array.isArray(r))return"อาร์เรย์ (Array)";if(r===null)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"};return r=>{switch(r.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${r.expected} แต่ได้รับ ${n(r.input)}`;case"invalid_value":return r.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${ae(r.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"ไม่เกิน":"น้อยกว่า",a=t(r.origin);return a?`เกินกำหนด: ${r.origin??"ค่า"} ควรมี${i} ${r.maximum.toString()} ${a.unit??"รายการ"}`:`เกินกำหนด: ${r.origin??"ค่า"} ควรมี${i} ${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?"อย่างน้อย":"มากกว่า",a=t(r.origin);return a?`น้อยกว่ากำหนด: ${r.origin} ควรมี${i} ${r.minimum.toString()} ${a.unit}`:`น้อยกว่ากำหนด: ${r.origin} ควรมี${i} ${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${i.prefix}"`:i.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${i.suffix}"`:i.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${i.includes}" อยู่ในข้อความ`:i.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${i.pattern}`:`รูปแบบไม่ถูกต้อง: ${o[i.format]??r.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${r.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${L(r.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${r.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${r.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function HD(){return{localeError:BD()}}const GD=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},KD=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function t(o){return e[o]??null}const n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"};return o=>{switch(o.code){case"invalid_type":return`Geçersiz değer: beklenen ${o.expected}, alınan ${GD(o.input)}`;case"invalid_value":return o.values.length===1?`Geçersiz değer: beklenen ${ae(o.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${L(o.values,"|")}`;case"too_big":{const r=o.inclusive?"<=":"<",i=t(o.origin);return i?`Çok büyük: beklenen ${o.origin??"değer"} ${r}${o.maximum.toString()} ${i.unit??"öğe"}`:`Çok büyük: beklenen ${o.origin??"değer"} ${r}${o.maximum.toString()}`}case"too_small":{const r=o.inclusive?">=":">",i=t(o.origin);return i?`Çok küçük: beklenen ${o.origin} ${r}${o.minimum.toString()} ${i.unit}`:`Çok küçük: beklenen ${o.origin} ${r}${o.minimum.toString()}`}case"invalid_format":{const r=o;return r.format==="starts_with"?`Geçersiz metin: "${r.prefix}" ile başlamalı`:r.format==="ends_with"?`Geçersiz metin: "${r.suffix}" ile bitmeli`:r.format==="includes"?`Geçersiz metin: "${r.includes}" içermeli`:r.format==="regex"?`Geçersiz metin: ${r.pattern} desenine uymalı`:`Geçersiz ${n[r.format]??o.format}`}case"not_multiple_of":return`Geçersiz sayı: ${o.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${o.keys.length>1?"lar":""}: ${L(o.keys,", ")}`;case"invalid_key":return`${o.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${o.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function JD(){return{localeError:KD()}}const YD=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"число";case"object":{if(Array.isArray(r))return"масив";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"};return r=>{switch(r.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${r.expected}, отримано ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Неправильні вхідні дані: очікується ${ae(r.values[0])}`:`Неправильна опція: очікується одне з ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Занадто велике: очікується, що ${r.origin??"значення"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"елементів"}`:`Занадто велике: очікується, що ${r.origin??"значення"} буде ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Занадто мале: очікується, що ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`Занадто мале: очікується, що ${r.origin} буде ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Неправильний рядок: повинен починатися з "${i.prefix}"`:i.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${i.suffix}"`:i.format==="includes"?`Неправильний рядок: повинен містити "${i.includes}"`:i.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${i.pattern}`:`Неправильний ${o[i.format]??r.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${r.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${r.keys.length>1?"і":""}: ${L(r.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${r.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${r.origin}`;default:return"Неправильні вхідні дані"}}};function XD(){return{localeError:YD()}}const QD=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"نمبر";case"object":{if(Array.isArray(r))return"آرے";if(r===null)return"نل";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"};return r=>{switch(r.code){case"invalid_type":return`غلط ان پٹ: ${r.expected} متوقع تھا، ${n(r.input)} موصول ہوا`;case"invalid_value":return r.values.length===1?`غلط ان پٹ: ${ae(r.values[0])} متوقع تھا`:`غلط آپشن: ${L(r.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`بہت بڑا: ${r.origin??"ویلیو"} کے ${i}${r.maximum.toString()} ${a.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${r.origin??"ویلیو"} کا ${i}${r.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`بہت چھوٹا: ${r.origin} کے ${i}${r.minimum.toString()} ${a.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${r.origin} کا ${i}${r.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const i=r;return i.format==="starts_with"?`غلط سٹرنگ: "${i.prefix}" سے شروع ہونا چاہیے`:i.format==="ends_with"?`غلط سٹرنگ: "${i.suffix}" پر ختم ہونا چاہیے`:i.format==="includes"?`غلط سٹرنگ: "${i.includes}" شامل ہونا چاہیے`:i.format==="regex"?`غلط سٹرنگ: پیٹرن ${i.pattern} سے میچ ہونا چاہیے`:`غلط ${o[i.format]??r.format}`}case"not_multiple_of":return`غلط نمبر: ${r.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${r.keys.length>1?"ز":""}: ${L(r.keys,"، ")}`;case"invalid_key":return`${r.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${r.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function qD(){return{localeError:QD()}}const eR=()=>{const e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"số";case"object":{if(Array.isArray(r))return"mảng";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"};return r=>{switch(r.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${r.expected}, nhận được ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Đầu vào không hợp lệ: mong đợi ${ae(r.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Quá lớn: mong đợi ${r.origin??"giá trị"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"phần tử"}`:`Quá lớn: mong đợi ${r.origin??"giá trị"} ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Quá nhỏ: mong đợi ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`Quá nhỏ: mong đợi ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${i.prefix}"`:i.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${i.suffix}"`:i.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${i.includes}"`:i.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${i.pattern}`:`${o[i.format]??r.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${r.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${L(r.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${r.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${r.origin}`;default:return"Đầu vào không hợp lệ"}}};function tR(){return{localeError:eR()}}const nR=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"非数字(NaN)":"数字";case"object":{if(Array.isArray(r))return"数组";if(r===null)return"空值(null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"};return r=>{switch(r.code){case"invalid_type":return`无效输入:期望 ${r.expected},实际接收 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`无效输入:期望 ${ae(r.values[0])}`:`无效选项:期望以下之一 ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`数值过大:期望 ${r.origin??"值"} ${i}${r.maximum.toString()} ${a.unit??"个元素"}`:`数值过大:期望 ${r.origin??"值"} ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`数值过小:期望 ${r.origin} ${i}${r.minimum.toString()} ${a.unit}`:`数值过小:期望 ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`无效字符串:必须以 "${i.prefix}" 开头`:i.format==="ends_with"?`无效字符串:必须以 "${i.suffix}" 结尾`:i.format==="includes"?`无效字符串:必须包含 "${i.includes}"`:i.format==="regex"?`无效字符串:必须满足正则表达式 ${i.pattern}`:`无效${o[i.format]??r.format}`}case"not_multiple_of":return`无效数字:必须是 ${r.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${L(r.keys,", ")}`;case"invalid_key":return`${r.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${r.origin} 中包含无效值(value)`;default:return"无效输入"}}};function rR(){return{localeError:nR()}}const oR=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(r){return e[r]??null}const n=r=>{const i=typeof r;switch(i){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return i},o={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"};return r=>{switch(r.code){case"invalid_type":return`無效的輸入值:預期為 ${r.expected},但收到 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`無效的輸入值:預期為 ${ae(r.values[0])}`:`無效的選項:預期為以下其中之一 ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`數值過大:預期 ${r.origin??"值"} 應為 ${i}${r.maximum.toString()} ${a.unit??"個元素"}`:`數值過大:預期 ${r.origin??"值"} 應為 ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`數值過小:預期 ${r.origin} 應為 ${i}${r.minimum.toString()} ${a.unit}`:`數值過小:預期 ${r.origin} 應為 ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`無效的字串:必須以 "${i.prefix}" 開頭`:i.format==="ends_with"?`無效的字串:必須以 "${i.suffix}" 結尾`:i.format==="includes"?`無效的字串:必須包含 "${i.includes}"`:i.format==="regex"?`無效的字串:必須符合格式 ${i.pattern}`:`無效的 ${o[i.format]??r.format}`}case"not_multiple_of":return`無效的數字:必須為 ${r.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${r.keys.length>1?"們":""}:${L(r.keys,"、")}`;case"invalid_key":return`${r.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${r.origin} 中有無效的值`;default:return"無效的輸入值"}}};function iR(){return{localeError:oR()}}const Ik=Object.freeze(Object.defineProperty({__proto__:null,ar:CT,az:PT,be:TT,ca:RT,cs:UT,da:MT,de:VT,en:jk,eo:GT,es:JT,fa:XT,fi:qT,fr:tD,frCA:rD,he:iD,hu:sD,id:uD,is:fD,it:pD,ja:gD,kh:yD,ko:xD,mk:_D,ms:kD,nl:ND,no:jD,ota:CD,pl:TD,ps:PD,pt:RD,ru:UD,sl:MD,sv:VD,ta:WD,th:HD,tr:JD,ua:XD,ur:qD,vi:tR,zhCN:rR,zhTW:iR},Symbol.toStringTag,{value:"Module"})),Ck=Symbol("ZodOutput"),zk=Symbol("ZodInput");class qm{constructor(){this._map=new Map,this._idmap=new Map}add(t,...n){const o=n[0];if(this._map.set(t,o),o&&typeof o=="object"&&"id"in o){if(this._idmap.has(o.id))throw new Error(`ID ${o.id} already exists in the registry`);this._idmap.set(o.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const o={...this.get(n)??{}};delete o.id;const r={...o,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function ep(){return new qm}const Zr=ep();function Pk(e,t){return new e({type:"string",...T(t)})}function Ok(e,t){return new e({type:"string",coerce:!0,...T(t)})}function tp(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...T(t)})}function zl(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...T(t)})}function np(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...T(t)})}function rp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...T(t)})}function op(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...T(t)})}function ip(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...T(t)})}function ap(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...T(t)})}function sp(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...T(t)})}function lp(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...T(t)})}function up(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...T(t)})}function cp(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...T(t)})}function dp(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...T(t)})}function fp(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...T(t)})}function mp(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...T(t)})}function pp(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...T(t)})}function hp(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...T(t)})}function gp(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...T(t)})}function vp(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...T(t)})}function yp(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...T(t)})}function bp(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...T(t)})}function xp(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...T(t)})}function wp(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...T(t)})}const Tk={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Dk(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...T(t)})}function Rk(e,t){return new e({type:"string",format:"date",check:"string_format",...T(t)})}function Ak(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...T(t)})}function Uk(e,t){return new e({type:"string",format:"duration",check:"string_format",...T(t)})}function Lk(e,t){return new e({type:"number",checks:[],...T(t)})}function Mk(e,t){return new e({type:"number",coerce:!0,checks:[],...T(t)})}function Fk(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...T(t)})}function Vk(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...T(t)})}function Zk(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...T(t)})}function Wk(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...T(t)})}function Bk(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...T(t)})}function Hk(e,t){return new e({type:"boolean",...T(t)})}function Gk(e,t){return new e({type:"boolean",coerce:!0,...T(t)})}function Kk(e,t){return new e({type:"bigint",...T(t)})}function Jk(e,t){return new e({type:"bigint",coerce:!0,...T(t)})}function Yk(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...T(t)})}function Xk(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...T(t)})}function Qk(e,t){return new e({type:"symbol",...T(t)})}function qk(e,t){return new e({type:"undefined",...T(t)})}function e$(e,t){return new e({type:"null",...T(t)})}function t$(e){return new e({type:"any"})}function Pl(e){return new e({type:"unknown"})}function n$(e,t){return new e({type:"never",...T(t)})}function r$(e,t){return new e({type:"void",...T(t)})}function o$(e,t){return new e({type:"date",...T(t)})}function i$(e,t){return new e({type:"date",coerce:!0,...T(t)})}function a$(e,t){return new e({type:"nan",...T(t)})}function qr(e,t){return new Zm({check:"less_than",...T(t),value:e,inclusive:!1})}function on(e,t){return new Zm({check:"less_than",...T(t),value:e,inclusive:!0})}function eo(e,t){return new Wm({check:"greater_than",...T(t),value:e,inclusive:!1})}function It(e,t){return new Wm({check:"greater_than",...T(t),value:e,inclusive:!0})}function s$(e){return eo(0,e)}function l$(e){return qr(0,e)}function u$(e){return on(0,e)}function c$(e){return It(0,e)}function ba(e,t){return new iS({check:"multiple_of",...T(t),value:e})}function Iu(e,t){return new lS({check:"max_size",...T(t),maximum:e})}function xa(e,t){return new uS({check:"min_size",...T(t),minimum:e})}function _p(e,t){return new cS({check:"size_equals",...T(t),size:e})}function Cu(e,t){return new dS({check:"max_length",...T(t),maximum:e})}function ni(e,t){return new fS({check:"min_length",...T(t),minimum:e})}function zu(e,t){return new mS({check:"length_equals",...T(t),length:e})}function Sp(e,t){return new pS({check:"string_format",format:"regex",...T(t),pattern:e})}function kp(e){return new hS({check:"string_format",format:"lowercase",...T(e)})}function $p(e){return new gS({check:"string_format",format:"uppercase",...T(e)})}function Np(e,t){return new vS({check:"string_format",format:"includes",...T(t),includes:e})}function Ep(e,t){return new yS({check:"string_format",format:"starts_with",...T(t),prefix:e})}function jp(e,t){return new bS({check:"string_format",format:"ends_with",...T(t),suffix:e})}function d$(e,t,n){return new xS({check:"property",property:e,schema:t,...T(n)})}function Ip(e,t){return new wS({check:"mime_type",mime:e,...T(t)})}function ao(e){return new _S({check:"overwrite",tx:e})}function Cp(e){return ao(t=>t.normalize(e))}function zp(){return ao(e=>e.trim())}function Pp(){return ao(e=>e.toLowerCase())}function Op(){return ao(e=>e.toUpperCase())}function Tp(e,t,n){return new e({type:"array",element:t,...T(n)})}function aR(e,t,n){return new e({type:"union",options:t,...T(n)})}function sR(e,t,n,o){return new e({type:"union",options:n,discriminator:t,...T(o)})}function lR(e,t,n){return new e({type:"intersection",left:t,right:n})}function f$(e,t,n,o){const r=n instanceof ie,i=r?o:n,a=r?n:null;return new e({type:"tuple",items:t,rest:a,...T(i)})}function uR(e,t,n,o){return new e({type:"record",keyType:t,valueType:n,...T(o)})}function cR(e,t,n,o){return new e({type:"map",keyType:t,valueType:n,...T(o)})}function dR(e,t,n){return new e({type:"set",valueType:t,...T(n)})}function fR(e,t,n){const o=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:o,...T(n)})}function mR(e,t,n){return new e({type:"enum",entries:t,...T(n)})}function pR(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...T(n)})}function m$(e,t){return new e({type:"file",...T(t)})}function hR(e,t){return new e({type:"transform",transform:t})}function gR(e,t){return new e({type:"optional",innerType:t})}function vR(e,t){return new e({type:"nullable",innerType:t})}function yR(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():n}})}function bR(e,t,n){return new e({type:"nonoptional",innerType:t,...T(n)})}function xR(e,t){return new e({type:"success",innerType:t})}function wR(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function _R(e,t,n){return new e({type:"pipe",in:t,out:n})}function SR(e,t){return new e({type:"readonly",innerType:t})}function kR(e,t,n){return new e({type:"template_literal",parts:t,...T(n)})}function $R(e,t){return new e({type:"lazy",getter:t})}function NR(e,t){return new e({type:"promise",innerType:t})}function p$(e,t,n){const o=T(n);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function h$(e,t,n){return new e({type:"custom",check:"custom",fn:t,...T(n)})}function g$(e,t){const n=T(t);let o=n.truthy??["true","1","yes","on","y","enabled"],r=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(o=o.map(x=>typeof x=="string"?x.toLowerCase():x),r=r.map(x=>typeof x=="string"?x.toLowerCase():x));const i=new Set(o),a=new Set(r),s=e.Pipe??Qm,l=e.Boolean??Gm,u=e.String??Fa,d=e.Transform??Xm,c=new d({type:"transform",transform:(x,b)=>{let w=x;return n.case!=="sensitive"&&(w=w.toLowerCase()),i.has(w)?!0:a.has(w)?!1:(b.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:b.value,inst:c}),{})},error:n.error}),h=new s({type:"pipe",in:new u({type:"string",error:n.error}),out:c,error:n.error});return new s({type:"pipe",in:h,out:new l({type:"boolean",error:n.error}),error:n.error})}function v$(e,t,n,o={}){const r=T(o),i={...T(o),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:s=>n.test(s),...r};return n instanceof RegExp&&(i.pattern=n),new e(i)}class y${constructor(t){this._def=t,this.def=t}implement(t){if(typeof t!="function")throw new Error("implement() must be called with a function");const n=(...o)=>{const r=this._def.input?jl(this._def.input,o,void 0,{callee:n}):o;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");const i=t(...r);return this._def.output?jl(this._def.output,i,void 0,{callee:n}):i};return n}implementAsync(t){if(typeof t!="function")throw new Error("implement() must be called with a function");const n=async(...o)=>{const r=this._def.input?await Il(this._def.input,o,void 0,{callee:n}):o;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");const i=await t(...r);return this._def.output?Il(this._def.output,i,void 0,{callee:n}):i};return n}input(...t){const n=this.constructor;return Array.isArray(t[0])?new n({type:"function",input:new ju({type:"tuple",items:t[0],rest:t[1]}),output:this._def.output}):new n({type:"function",input:t[0],output:this._def.output})}output(t){const n=this.constructor;return new n({type:"function",input:this._def.input,output:t})}}function b$(e){return new y$({type:"function",input:Array.isArray(e==null?void 0:e.input)?f$(ju,e==null?void 0:e.input):(e==null?void 0:e.input)??Tp(Jm,Pl(Cl)),output:(e==null?void 0:e.output)??Pl(Cl)})}class Md{constructor(t){this.counter=0,this.metadataRegistry=(t==null?void 0:t.metadata)??Zr,this.target=(t==null?void 0:t.target)??"draft-2020-12",this.unrepresentable=(t==null?void 0:t.unrepresentable)??"throw",this.override=(t==null?void 0:t.override)??(()=>{}),this.io=(t==null?void 0:t.io)??"output",this.seen=new Map}process(t,n={path:[],schemaPath:[]}){var c,h,y;var o;const r=t._zod.def,i={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},a=this.seen.get(t);if(a)return a.count++,n.schemaPath.includes(t)&&(a.cycle=n.path),a.schema;const s={schema:{},count:1,cycle:void 0,path:n.path};this.seen.set(t,s);const l=(h=(c=t._zod).toJSONSchema)==null?void 0:h.call(c);if(l)s.schema=l;else{const x={...n,schemaPath:[...n.schemaPath,t],path:n.path},b=t._zod.parent;if(b)s.ref=b,this.process(b,x),this.seen.get(b).isParent=!0;else{const w=s.schema;switch(r.type){case"string":{const m=w;m.type="string";const{minimum:p,maximum:v,format:_,patterns:S,contentEncoding:$}=t._zod.bag;if(typeof p=="number"&&(m.minLength=p),typeof v=="number"&&(m.maxLength=v),_&&(m.format=i[_]??_,m.format===""&&delete m.format),$&&(m.contentEncoding=$),S&&S.size>0){const N=[...S];N.length===1?m.pattern=N[0].source:N.length>1&&(s.schema.allOf=[...N.map(I=>({...this.target==="draft-7"?{type:"string"}:{},pattern:I.source}))])}break}case"number":{const m=w,{minimum:p,maximum:v,format:_,multipleOf:S,exclusiveMaximum:$,exclusiveMinimum:N}=t._zod.bag;typeof _=="string"&&_.includes("int")?m.type="integer":m.type="number",typeof N=="number"&&(m.exclusiveMinimum=N),typeof p=="number"&&(m.minimum=p,typeof N=="number"&&(N>=p?delete m.minimum:delete m.exclusiveMinimum)),typeof $=="number"&&(m.exclusiveMaximum=$),typeof v=="number"&&(m.maximum=v,typeof $=="number"&&($<=v?delete m.maximum:delete m.exclusiveMaximum)),typeof S=="number"&&(m.multipleOf=S);break}case"boolean":{const m=w;m.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{w.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{w.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const m=w,{minimum:p,maximum:v}=t._zod.bag;typeof p=="number"&&(m.minItems=p),typeof v=="number"&&(m.maxItems=v),m.type="array",m.items=this.process(r.element,{...x,path:[...x.path,"items"]});break}case"object":{const m=w;m.type="object",m.properties={};const p=r.shape;for(const S in p)m.properties[S]=this.process(p[S],{...x,path:[...x.path,"properties",S]});const v=new Set(Object.keys(p)),_=new Set([...v].filter(S=>{const $=r.shape[S]._zod;return this.io==="input"?$.optin===void 0:$.optout===void 0}));_.size>0&&(m.required=Array.from(_)),((y=r.catchall)==null?void 0:y._zod.def.type)==="never"?m.additionalProperties=!1:r.catchall?r.catchall&&(m.additionalProperties=this.process(r.catchall,{...x,path:[...x.path,"additionalProperties"]})):this.io==="output"&&(m.additionalProperties=!1);break}case"union":{const m=w;m.anyOf=r.options.map((p,v)=>this.process(p,{...x,path:[...x.path,"anyOf",v]}));break}case"intersection":{const m=w,p=this.process(r.left,{...x,path:[...x.path,"allOf",0]}),v=this.process(r.right,{...x,path:[...x.path,"allOf",1]}),_=$=>"allOf"in $&&Object.keys($).length===1,S=[..._(p)?p.allOf:[p],..._(v)?v.allOf:[v]];m.allOf=S;break}case"tuple":{const m=w;m.type="array";const p=r.items.map((S,$)=>this.process(S,{...x,path:[...x.path,"prefixItems",$]}));if(this.target==="draft-2020-12"?m.prefixItems=p:m.items=p,r.rest){const S=this.process(r.rest,{...x,path:[...x.path,"items"]});this.target==="draft-2020-12"?m.items=S:m.additionalItems=S}r.rest&&(m.items=this.process(r.rest,{...x,path:[...x.path,"items"]}));const{minimum:v,maximum:_}=t._zod.bag;typeof v=="number"&&(m.minItems=v),typeof _=="number"&&(m.maxItems=_);break}case"record":{const m=w;m.type="object",m.propertyNames=this.process(r.keyType,{...x,path:[...x.path,"propertyNames"]}),m.additionalProperties=this.process(r.valueType,{...x,path:[...x.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const m=w,p=Tm(r.entries);p.every(v=>typeof v=="number")&&(m.type="number"),p.every(v=>typeof v=="string")&&(m.type="string"),m.enum=p;break}case"literal":{const m=w,p=[];for(const v of r.values)if(v===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof v=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");p.push(Number(v))}else p.push(v);if(p.length!==0)if(p.length===1){const v=p[0];m.type=v===null?"null":typeof v,m.const=v}else p.every(v=>typeof v=="number")&&(m.type="number"),p.every(v=>typeof v=="string")&&(m.type="string"),p.every(v=>typeof v=="boolean")&&(m.type="string"),p.every(v=>v===null)&&(m.type="null"),m.enum=p;break}case"file":{const m=w,p={type:"string",format:"binary",contentEncoding:"binary"},{minimum:v,maximum:_,mime:S}=t._zod.bag;v!==void 0&&(p.minLength=v),_!==void 0&&(p.maxLength=_),S?S.length===1?(p.contentMediaType=S[0],Object.assign(m,p)):m.anyOf=S.map($=>({...p,contentMediaType:$})):Object.assign(m,p);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const m=this.process(r.innerType,x);w.anyOf=[m,{type:"null"}];break}case"nonoptional":{this.process(r.innerType,x),s.ref=r.innerType;break}case"success":{const m=w;m.type="boolean";break}case"default":{this.process(r.innerType,x),s.ref=r.innerType,w.default=JSON.parse(JSON.stringify(r.defaultValue));break}case"prefault":{this.process(r.innerType,x),s.ref=r.innerType,this.io==="input"&&(w._prefault=JSON.parse(JSON.stringify(r.defaultValue)));break}case"catch":{this.process(r.innerType,x),s.ref=r.innerType;let m;try{m=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}w.default=m;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const m=w,p=t._zod.pattern;if(!p)throw new Error("Pattern not found in template literal");m.type="string",m.pattern=p.source;break}case"pipe":{const m=this.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;this.process(m,x),s.ref=m;break}case"readonly":{this.process(r.innerType,x),s.ref=r.innerType,w.readOnly=!0;break}case"promise":{this.process(r.innerType,x),s.ref=r.innerType;break}case"optional":{this.process(r.innerType,x),s.ref=r.innerType;break}case"lazy":{const m=t._zod.innerType;this.process(m,x),s.ref=m;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}}}}const u=this.metadataRegistry.get(t);return u&&Object.assign(s.schema,u),this.io==="input"&&Fe(t)&&(delete s.schema.examples,delete s.schema.default),this.io==="input"&&s.schema._prefault&&((o=s.schema).default??(o.default=s.schema._prefault)),delete s.schema._prefault,this.seen.get(t).schema}emit(t,n){var d,c,h,y,x,b;const o={cycles:(n==null?void 0:n.cycles)??"ref",reused:(n==null?void 0:n.reused)??"inline",external:(n==null?void 0:n.external)??void 0},r=this.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=w=>{var S;const m=this.target==="draft-2020-12"?"$defs":"definitions";if(o.external){const $=(S=o.external.registry.get(w[0]))==null?void 0:S.id,N=o.external.uri??(D=>D);if($)return{ref:N($)};const I=w[1].defId??w[1].schema.id??`schema${this.counter++}`;return w[1].defId=I,{defId:I,ref:`${N("__shared")}#/${m}/${I}`}}if(w[1]===r)return{ref:"#"};const v=`#/${m}/`,_=w[1].schema.id??`__schema${this.counter++}`;return{defId:_,ref:v+_}},a=w=>{if(w[1].schema.$ref)return;const m=w[1],{ref:p,defId:v}=i(w);m.def={...m.schema},v&&(m.defId=v);const _=m.schema;for(const S in _)delete _[S];_.$ref=p};if(o.cycles==="throw")for(const w of this.seen.entries()){const m=w[1];if(m.cycle)throw new Error(`Cycle detected: #/${(d=m.cycle)==null?void 0:d.join("/")}/<root>
210
-
211
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const w of this.seen.entries()){const m=w[1];if(t===w[0]){a(w);continue}if(o.external){const v=(c=o.external.registry.get(w[0]))==null?void 0:c.id;if(t!==w[0]&&v){a(w);continue}}if((h=this.metadataRegistry.get(w[0]))==null?void 0:h.id){a(w);continue}if(m.cycle){a(w);continue}if(m.count>1&&o.reused==="ref"){a(w);continue}}const s=(w,m)=>{const p=this.seen.get(w),v=p.def??p.schema,_={...v};if(p.ref===null)return;const S=p.ref;if(p.ref=null,S){s(S,m);const $=this.seen.get(S).schema;$.$ref&&m.target==="draft-7"?(v.allOf=v.allOf??[],v.allOf.push($)):(Object.assign(v,$),Object.assign(v,_))}p.isParent||this.override({zodSchema:w,jsonSchema:v,path:p.path??[]})};for(const w of[...this.seen.entries()].reverse())s(w[0],{target:this.target});const l={};if(this.target==="draft-2020-12"?l.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?l.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),(y=o.external)!=null&&y.uri){const w=(x=o.external.registry.get(t))==null?void 0:x.id;if(!w)throw new Error("Schema is missing an `id` property");l.$id=o.external.uri(w)}Object.assign(l,r.def);const u=((b=o.external)==null?void 0:b.defs)??{};for(const w of this.seen.entries()){const m=w[1];m.def&&m.defId&&(u[m.defId]=m.def)}o.external||Object.keys(u).length>0&&(this.target==="draft-2020-12"?l.$defs=u:l.definitions=u);try{return JSON.parse(JSON.stringify(l))}catch{throw new Error("Error converting schema to JSON.")}}}function x$(e,t){if(e instanceof qm){const o=new Md(t),r={};for(const s of e._idmap.entries()){const[l,u]=s;o.process(u)}const i={},a={registry:e,uri:t==null?void 0:t.uri,defs:r};for(const s of e._idmap.entries()){const[l,u]=s;i[l]=o.emit(u,{...t,external:a})}if(Object.keys(r).length>0){const s=o.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[s]:r}}return{schemas:i}}const n=new Md(t);return n.process(e),n.emit(e,t)}function Fe(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;switch(r.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return Fe(r.element,n);case"object":{for(const i in r.shape)if(Fe(r.shape[i],n))return!0;return!1}case"union":{for(const i of r.options)if(Fe(i,n))return!0;return!1}case"intersection":return Fe(r.left,n)||Fe(r.right,n);case"tuple":{for(const i of r.items)if(Fe(i,n))return!0;return!!(r.rest&&Fe(r.rest,n))}case"record":return Fe(r.keyType,n)||Fe(r.valueType,n);case"map":return Fe(r.keyType,n)||Fe(r.valueType,n);case"set":return Fe(r.valueType,n);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return Fe(r.innerType,n);case"lazy":return Fe(r.getter(),n);case"default":return Fe(r.innerType,n);case"prefault":return Fe(r.innerType,n);case"custom":return!1;case"transform":return!0;case"pipe":return Fe(r.in,n)||Fe(r.out,n);case"success":return!1;case"catch":return!1}throw new Error(`Unknown schema type: ${r.type}`)}const ER=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),jR=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:nk,$ZodArray:Jm,$ZodAsyncError:qo,$ZodBase64:WS,$ZodBase64URL:HS,$ZodBigInt:Km,$ZodBigIntFormat:QS,$ZodBoolean:Gm,$ZodCIDRv4:VS,$ZodCIDRv6:ZS,$ZodCUID:zS,$ZodCUID2:PS,$ZodCatch:wk,$ZodCheck:Ae,$ZodCheckBigIntFormat:sS,$ZodCheckEndsWith:bS,$ZodCheckGreaterThan:Wm,$ZodCheckIncludes:vS,$ZodCheckLengthEquals:mS,$ZodCheckLessThan:Zm,$ZodCheckLowerCase:hS,$ZodCheckMaxLength:dS,$ZodCheckMaxSize:lS,$ZodCheckMimeType:wS,$ZodCheckMinLength:fS,$ZodCheckMinSize:uS,$ZodCheckMultipleOf:iS,$ZodCheckNumberFormat:aS,$ZodCheckOverwrite:_S,$ZodCheckProperty:xS,$ZodCheckRegex:pS,$ZodCheckSizeEquals:cS,$ZodCheckStartsWith:yS,$ZodCheckStringFormat:Ma,$ZodCheckUpperCase:gS,$ZodCustom:Ek,$ZodCustomStringFormat:YS,$ZodDate:ik,$ZodDefault:vk,$ZodDiscriminatedUnion:sk,$ZodE164:GS,$ZodEmail:ES,$ZodEmoji:IS,$ZodEnum:fk,$ZodError:Eu,$ZodFile:pk,$ZodFunction:y$,$ZodGUID:$S,$ZodIPv4:MS,$ZodIPv6:FS,$ZodISODate:AS,$ZodISODateTime:RS,$ZodISODuration:LS,$ZodISOTime:US,$ZodIntersection:lk,$ZodJWT:JS,$ZodKSUID:DS,$ZodLazy:Nk,$ZodLiteral:mk,$ZodMap:ck,$ZodNaN:_k,$ZodNanoID:CS,$ZodNever:rk,$ZodNonOptional:bk,$ZodNull:tk,$ZodNullable:gk,$ZodNumber:Hm,$ZodNumberFormat:XS,$ZodObject:ak,$ZodOptional:hk,$ZodPipe:Qm,$ZodPrefault:yk,$ZodPromise:$k,$ZodReadonly:Sk,$ZodRealError:La,$ZodRecord:uk,$ZodRegistry:qm,$ZodSet:dk,$ZodString:Fa,$ZodStringFormat:_e,$ZodSuccess:xk,$ZodSymbol:qS,$ZodTemplateLiteral:kk,$ZodTransform:Xm,$ZodTuple:ju,$ZodType:ie,$ZodULID:OS,$ZodURL:jS,$ZodUUID:NS,$ZodUndefined:ek,$ZodUnion:Ym,$ZodUnknown:Cl,$ZodVoid:ok,$ZodXID:TS,$brand:s_,$constructor:j,$input:zk,$output:Ck,Doc:SS,JSONSchema:ER,JSONSchemaGenerator:Md,NEVER:a_,TimePrecision:Tk,_any:t$,_array:Tp,_base64:yp,_base64url:bp,_bigint:Kk,_boolean:Hk,_catch:wR,_cidrv4:gp,_cidrv6:vp,_coercedBigint:Jk,_coercedBoolean:Gk,_coercedDate:i$,_coercedNumber:Mk,_coercedString:Ok,_cuid:up,_cuid2:cp,_custom:p$,_date:o$,_default:yR,_discriminatedUnion:sR,_e164:xp,_email:tp,_emoji:sp,_endsWith:jp,_enum:fR,_file:m$,_float32:Vk,_float64:Zk,_gt:eo,_gte:It,_guid:zl,_includes:Np,_int:Fk,_int32:Wk,_int64:Yk,_intersection:lR,_ipv4:pp,_ipv6:hp,_isoDate:Rk,_isoDateTime:Dk,_isoDuration:Uk,_isoTime:Ak,_jwt:wp,_ksuid:mp,_lazy:$R,_length:zu,_literal:pR,_lowercase:kp,_lt:qr,_lte:on,_map:cR,_max:on,_maxLength:Cu,_maxSize:Iu,_mime:Ip,_min:It,_minLength:ni,_minSize:xa,_multipleOf:ba,_nan:a$,_nanoid:lp,_nativeEnum:mR,_negative:l$,_never:n$,_nonnegative:c$,_nonoptional:bR,_nonpositive:u$,_normalize:Cp,_null:e$,_nullable:vR,_number:Lk,_optional:gR,_overwrite:ao,_parse:Um,_parseAsync:Lm,_pipe:_R,_positive:s$,_promise:NR,_property:d$,_readonly:SR,_record:uR,_refine:h$,_regex:Sp,_safeParse:Mm,_safeParseAsync:Fm,_set:dR,_size:_p,_startsWith:Ep,_string:Pk,_stringFormat:v$,_stringbool:g$,_success:xR,_symbol:Qk,_templateLiteral:kR,_toLowerCase:Pp,_toUpperCase:Op,_transform:hR,_trim:zp,_tuple:f$,_uint32:Bk,_uint64:Xk,_ulid:dp,_undefined:qk,_union:aR,_unknown:Pl,_uppercase:$p,_url:ap,_uuid:np,_uuidv4:rp,_uuidv6:op,_uuidv7:ip,_void:r$,_xid:fp,clone:mn,config:mt,flattenError:Rm,formatError:Am,function:b$,globalConfig:$l,globalRegistry:Zr,isValidBase64:Bm,isValidBase64URL:BS,isValidJWT:KS,locales:Ik,parse:jl,parseAsync:Il,prettifyError:S_,regexes:rS,registry:ep,safeParse:k_,safeParseAsync:$_,toDotPath:__,toJSONSchema:x$,treeifyError:w_,util:yT,version:kS},Symbol.toStringTag,{value:"Module"}));function Yv(e,t){try{var n=e()}catch(o){return t(o)}return n&&n.then?n.then(void 0,t):n}function IR(e,t){for(var n={};e.length;){var o=e[0],r=o.code,i=o.message,a=o.path.join(".");if(!n[a])if("unionErrors"in o){var s=o.unionErrors[0].errors[0];n[a]={message:s.message,type:s.code}}else n[a]={message:i,type:r};if("unionErrors"in o&&o.unionErrors.forEach(function(d){return d.errors.forEach(function(c){return e.push(c)})}),t){var l=n[a].types,u=l&&l[o.code];n[a]=zm(a,t,n,r,u?[].concat(u,o.message):o.message)}e.shift()}return n}function CR(e,t){for(var n={};e.length;){var o=e[0],r=o.code,i=o.message,a=o.path.join(".");if(!n[a])if(o.code==="invalid_union"&&o.errors.length>0){var s=o.errors[0][0];n[a]={message:s.message,type:s.code}}else n[a]={message:i,type:r};if(o.code==="invalid_union"&&o.errors.forEach(function(d){return d.forEach(function(c){return e.push(c)})}),t){var l=n[a].types,u=l&&l[o.code];n[a]=zm(a,t,n,r,u?[].concat(u,o.message):o.message)}e.shift()}return n}function Pu(e,t,n){if(n===void 0&&(n={}),function(o){return"_def"in o&&typeof o._def=="object"&&"typeName"in o._def}(e))return function(o,r,i){try{return Promise.resolve(Yv(function(){return Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](o,t)).then(function(a){return i.shouldUseNativeValidation&&Ad({},i),{errors:{},values:n.raw?Object.assign({},o):a}})},function(a){if(function(s){return Array.isArray(s==null?void 0:s.issues)}(a))return{values:{},errors:Dv(IR(a.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw a}))}catch(a){return Promise.reject(a)}};if(function(o){return"_zod"in o&&typeof o._zod=="object"}(e))return function(o,r,i){try{return Promise.resolve(Yv(function(){return Promise.resolve((n.mode==="sync"?jl:Il)(e,o,t)).then(function(a){return i.shouldUseNativeValidation&&Ad({},i),{errors:{},values:n.raw?Object.assign({},o):a}})},function(a){if(function(s){return s instanceof Eu}(a))return{values:{},errors:Dv(CR(a.issues,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw a}))}catch(a){return Promise.reject(a)}};throw new Error("Invalid input: not a Zod schema")}const Dp=j("ZodISODateTime",(e,t)=>{RS.init(e,t),$e.init(e,t)});function w$(e){return Dk(Dp,e)}const Rp=j("ZodISODate",(e,t)=>{AS.init(e,t),$e.init(e,t)});function _$(e){return Rk(Rp,e)}const Ap=j("ZodISOTime",(e,t)=>{US.init(e,t),$e.init(e,t)});function S$(e){return Ak(Ap,e)}const Up=j("ZodISODuration",(e,t)=>{LS.init(e,t),$e.init(e,t)});function k$(e){return Uk(Up,e)}const zR=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:Rp,ZodISODateTime:Dp,ZodISODuration:Up,ZodISOTime:Ap,date:_$,datetime:w$,duration:k$,time:S$},Symbol.toStringTag,{value:"Module"})),$$=(e,t)=>{Eu.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Am(e,n)},flatten:{value:n=>Rm(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Nl,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Nl,2)}},isEmpty:{get(){return e.issues.length===0}}})},PR=j("ZodError",$$),Va=j("ZodError",$$,{Parent:Error}),N$=Um(Va),E$=Lm(Va),j$=Mm(Va),I$=Fm(Va),ue=j("ZodType",(e,t)=>(ie.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),e.clone=(n,o)=>mn(e,n,o),e.brand=()=>e,e.register=(n,o)=>(n.add(e,o),e),e.parse=(n,o)=>N$(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>j$(e,n,o),e.parseAsync=async(n,o)=>E$(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>I$(e,n,o),e.spa=e.safeParseAsync,e.refine=(n,o)=>e.check(g1(n,o)),e.superRefine=n=>e.check(v1(n)),e.overwrite=n=>e.check(ao(n)),e.optional=()=>Dl(e),e.nullable=()=>Rl(e),e.nullish=()=>Dl(Rl(e)),e.nonoptional=n=>o1(e,n),e.array=()=>ah(e),e.or=n=>lh([e,n]),e.and=n=>W$(e,n),e.transform=n=>Al(e,dh(n)),e.default=n=>t1(e,n),e.prefault=n=>r1(e,n),e.catch=n=>s1(e,n),e.pipe=n=>Al(e,n),e.readonly=()=>c1(e),e.describe=n=>{const o=e.clone();return Zr.add(o,{description:n}),o},Object.defineProperty(e,"description",{get(){var n;return(n=Zr.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Zr.get(e);const o=e.clone();return Zr.add(o,n[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Lp=j("_ZodString",(e,t)=>{Fa.init(e,t),ue.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...o)=>e.check(Sp(...o)),e.includes=(...o)=>e.check(Np(...o)),e.startsWith=(...o)=>e.check(Ep(...o)),e.endsWith=(...o)=>e.check(jp(...o)),e.min=(...o)=>e.check(ni(...o)),e.max=(...o)=>e.check(Cu(...o)),e.length=(...o)=>e.check(zu(...o)),e.nonempty=(...o)=>e.check(ni(1,...o)),e.lowercase=o=>e.check(kp(o)),e.uppercase=o=>e.check($p(o)),e.trim=()=>e.check(zp()),e.normalize=(...o)=>e.check(Cp(...o)),e.toLowerCase=()=>e.check(Pp()),e.toUpperCase=()=>e.check(Op())}),Ou=j("ZodString",(e,t)=>{Fa.init(e,t),Lp.init(e,t),e.email=n=>e.check(tp(Mp,n)),e.url=n=>e.check(ap(Fp,n)),e.jwt=n=>e.check(wp(nh,n)),e.emoji=n=>e.check(sp(Vp,n)),e.guid=n=>e.check(zl(Ol,n)),e.uuid=n=>e.check(np(Mn,n)),e.uuidv4=n=>e.check(rp(Mn,n)),e.uuidv6=n=>e.check(op(Mn,n)),e.uuidv7=n=>e.check(ip(Mn,n)),e.nanoid=n=>e.check(lp(Zp,n)),e.guid=n=>e.check(zl(Ol,n)),e.cuid=n=>e.check(up(Wp,n)),e.cuid2=n=>e.check(cp(Bp,n)),e.ulid=n=>e.check(dp(Hp,n)),e.base64=n=>e.check(yp(qp,n)),e.base64url=n=>e.check(bp(eh,n)),e.xid=n=>e.check(fp(Gp,n)),e.ksuid=n=>e.check(mp(Kp,n)),e.ipv4=n=>e.check(pp(Jp,n)),e.ipv6=n=>e.check(hp(Yp,n)),e.cidrv4=n=>e.check(gp(Xp,n)),e.cidrv6=n=>e.check(vp(Qp,n)),e.e164=n=>e.check(xp(th,n)),e.datetime=n=>e.check(w$(n)),e.date=n=>e.check(_$(n)),e.time=n=>e.check(S$(n)),e.duration=n=>e.check(k$(n))});function Fd(e){return Pk(Ou,e)}const $e=j("ZodStringFormat",(e,t)=>{_e.init(e,t),Lp.init(e,t)}),Mp=j("ZodEmail",(e,t)=>{ES.init(e,t),$e.init(e,t)});function OR(e){return tp(Mp,e)}const Ol=j("ZodGUID",(e,t)=>{$S.init(e,t),$e.init(e,t)});function TR(e){return zl(Ol,e)}const Mn=j("ZodUUID",(e,t)=>{NS.init(e,t),$e.init(e,t)});function DR(e){return np(Mn,e)}function RR(e){return rp(Mn,e)}function AR(e){return op(Mn,e)}function UR(e){return ip(Mn,e)}const Fp=j("ZodURL",(e,t)=>{jS.init(e,t),$e.init(e,t)});function LR(e){return ap(Fp,e)}const Vp=j("ZodEmoji",(e,t)=>{IS.init(e,t),$e.init(e,t)});function MR(e){return sp(Vp,e)}const Zp=j("ZodNanoID",(e,t)=>{CS.init(e,t),$e.init(e,t)});function FR(e){return lp(Zp,e)}const Wp=j("ZodCUID",(e,t)=>{zS.init(e,t),$e.init(e,t)});function VR(e){return up(Wp,e)}const Bp=j("ZodCUID2",(e,t)=>{PS.init(e,t),$e.init(e,t)});function ZR(e){return cp(Bp,e)}const Hp=j("ZodULID",(e,t)=>{OS.init(e,t),$e.init(e,t)});function WR(e){return dp(Hp,e)}const Gp=j("ZodXID",(e,t)=>{TS.init(e,t),$e.init(e,t)});function BR(e){return fp(Gp,e)}const Kp=j("ZodKSUID",(e,t)=>{DS.init(e,t),$e.init(e,t)});function HR(e){return mp(Kp,e)}const Jp=j("ZodIPv4",(e,t)=>{MS.init(e,t),$e.init(e,t)});function GR(e){return pp(Jp,e)}const Yp=j("ZodIPv6",(e,t)=>{FS.init(e,t),$e.init(e,t)});function KR(e){return hp(Yp,e)}const Xp=j("ZodCIDRv4",(e,t)=>{VS.init(e,t),$e.init(e,t)});function JR(e){return gp(Xp,e)}const Qp=j("ZodCIDRv6",(e,t)=>{ZS.init(e,t),$e.init(e,t)});function YR(e){return vp(Qp,e)}const qp=j("ZodBase64",(e,t)=>{WS.init(e,t),$e.init(e,t)});function XR(e){return yp(qp,e)}const eh=j("ZodBase64URL",(e,t)=>{HS.init(e,t),$e.init(e,t)});function QR(e){return bp(eh,e)}const th=j("ZodE164",(e,t)=>{GS.init(e,t),$e.init(e,t)});function qR(e){return xp(th,e)}const nh=j("ZodJWT",(e,t)=>{JS.init(e,t),$e.init(e,t)});function e6(e){return wp(nh,e)}const C$=j("ZodCustomStringFormat",(e,t)=>{YS.init(e,t),$e.init(e,t)});function t6(e,t,n={}){return v$(C$,e,t,n)}const Tu=j("ZodNumber",(e,t)=>{Hm.init(e,t),ue.init(e,t),e.gt=(o,r)=>e.check(eo(o,r)),e.gte=(o,r)=>e.check(It(o,r)),e.min=(o,r)=>e.check(It(o,r)),e.lt=(o,r)=>e.check(qr(o,r)),e.lte=(o,r)=>e.check(on(o,r)),e.max=(o,r)=>e.check(on(o,r)),e.int=o=>e.check(Vd(o)),e.safe=o=>e.check(Vd(o)),e.positive=o=>e.check(eo(0,o)),e.nonnegative=o=>e.check(It(0,o)),e.negative=o=>e.check(qr(0,o)),e.nonpositive=o=>e.check(on(0,o)),e.multipleOf=(o,r)=>e.check(ba(o,r)),e.step=(o,r)=>e.check(ba(o,r)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function z$(e){return Lk(Tu,e)}const mi=j("ZodNumberFormat",(e,t)=>{XS.init(e,t),Tu.init(e,t)});function Vd(e){return Fk(mi,e)}function n6(e){return Vk(mi,e)}function r6(e){return Zk(mi,e)}function o6(e){return Wk(mi,e)}function i6(e){return Bk(mi,e)}const Du=j("ZodBoolean",(e,t)=>{Gm.init(e,t),ue.init(e,t)});function P$(e){return Hk(Du,e)}const Ru=j("ZodBigInt",(e,t)=>{Km.init(e,t),ue.init(e,t),e.gte=(o,r)=>e.check(It(o,r)),e.min=(o,r)=>e.check(It(o,r)),e.gt=(o,r)=>e.check(eo(o,r)),e.gte=(o,r)=>e.check(It(o,r)),e.min=(o,r)=>e.check(It(o,r)),e.lt=(o,r)=>e.check(qr(o,r)),e.lte=(o,r)=>e.check(on(o,r)),e.max=(o,r)=>e.check(on(o,r)),e.positive=o=>e.check(eo(BigInt(0),o)),e.negative=o=>e.check(qr(BigInt(0),o)),e.nonpositive=o=>e.check(on(BigInt(0),o)),e.nonnegative=o=>e.check(It(BigInt(0),o)),e.multipleOf=(o,r)=>e.check(ba(o,r));const n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function a6(e){return Kk(Ru,e)}const rh=j("ZodBigIntFormat",(e,t)=>{QS.init(e,t),Ru.init(e,t)});function s6(e){return Yk(rh,e)}function l6(e){return Xk(rh,e)}const O$=j("ZodSymbol",(e,t)=>{qS.init(e,t),ue.init(e,t)});function u6(e){return Qk(O$,e)}const T$=j("ZodUndefined",(e,t)=>{ek.init(e,t),ue.init(e,t)});function c6(e){return qk(T$,e)}const D$=j("ZodNull",(e,t)=>{tk.init(e,t),ue.init(e,t)});function R$(e){return e$(D$,e)}const A$=j("ZodAny",(e,t)=>{nk.init(e,t),ue.init(e,t)});function d6(){return t$(A$)}const U$=j("ZodUnknown",(e,t)=>{Cl.init(e,t),ue.init(e,t)});function Tl(){return Pl(U$)}const L$=j("ZodNever",(e,t)=>{rk.init(e,t),ue.init(e,t)});function oh(e){return n$(L$,e)}const M$=j("ZodVoid",(e,t)=>{ok.init(e,t),ue.init(e,t)});function f6(e){return r$(M$,e)}const ih=j("ZodDate",(e,t)=>{ik.init(e,t),ue.init(e,t),e.min=(o,r)=>e.check(It(o,r)),e.max=(o,r)=>e.check(on(o,r));const n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function m6(e){return o$(ih,e)}const F$=j("ZodArray",(e,t)=>{Jm.init(e,t),ue.init(e,t),e.element=t.element,e.min=(n,o)=>e.check(ni(n,o)),e.nonempty=n=>e.check(ni(1,n)),e.max=(n,o)=>e.check(Cu(n,o)),e.length=(n,o)=>e.check(zu(n,o)),e.unwrap=()=>e.element});function ah(e,t){return Tp(F$,e,t)}function p6(e){const t=e._zod.def.shape;return X$(Object.keys(t))}const Au=j("ZodObject",(e,t)=>{ak.init(e,t),ue.init(e,t),ge(e,"shape",()=>t.shape),e.keyof=()=>J$(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Tl()}),e.loose=()=>e.clone({...e._zod.def,catchall:Tl()}),e.strict=()=>e.clone({...e._zod.def,catchall:oh()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>g_(e,n),e.merge=n=>v_(e,n),e.pick=n=>p_(e,n),e.omit=n=>h_(e,n),e.partial=(...n)=>y_(fh,e,n[0]),e.required=(...n)=>b_(mh,e,n[0])});function h6(e,t){const n={type:"object",get shape(){return In(this,"shape",{...e}),this.shape},...T(t)};return new Au(n)}function g6(e,t){return new Au({type:"object",get shape(){return In(this,"shape",{...e}),this.shape},catchall:oh(),...T(t)})}function v6(e,t){return new Au({type:"object",get shape(){return In(this,"shape",{...e}),this.shape},catchall:Tl(),...T(t)})}const sh=j("ZodUnion",(e,t)=>{Ym.init(e,t),ue.init(e,t),e.options=t.options});function lh(e,t){return new sh({type:"union",options:e,...T(t)})}const V$=j("ZodDiscriminatedUnion",(e,t)=>{sh.init(e,t),sk.init(e,t)});function y6(e,t,n){return new V$({type:"union",options:t,discriminator:e,...T(n)})}const Z$=j("ZodIntersection",(e,t)=>{lk.init(e,t),ue.init(e,t)});function W$(e,t){return new Z$({type:"intersection",left:e,right:t})}const B$=j("ZodTuple",(e,t)=>{ju.init(e,t),ue.init(e,t),e.rest=n=>e.clone({...e._zod.def,rest:n})});function b6(e,t,n){const o=t instanceof ie,r=o?n:t,i=o?t:null;return new B$({type:"tuple",items:e,rest:i,...T(r)})}const uh=j("ZodRecord",(e,t)=>{uk.init(e,t),ue.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function H$(e,t,n){return new uh({type:"record",keyType:e,valueType:t,...T(n)})}function x6(e,t,n){const o=mn(e);return o._zod.values=void 0,new uh({type:"record",keyType:o,valueType:t,...T(n)})}const G$=j("ZodMap",(e,t)=>{ck.init(e,t),ue.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function w6(e,t,n){return new G$({type:"map",keyType:e,valueType:t,...T(n)})}const K$=j("ZodSet",(e,t)=>{dk.init(e,t),ue.init(e,t),e.min=(...n)=>e.check(xa(...n)),e.nonempty=n=>e.check(xa(1,n)),e.max=(...n)=>e.check(Iu(...n)),e.size=(...n)=>e.check(_p(...n))});function _6(e,t){return new K$({type:"set",valueType:e,...T(t)})}const wa=j("ZodEnum",(e,t)=>{fk.init(e,t),ue.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(o,r)=>{const i={};for(const a of o)if(n.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new wa({...t,checks:[],...T(r),entries:i})},e.exclude=(o,r)=>{const i={...t.entries};for(const a of o)if(n.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new wa({...t,checks:[],...T(r),entries:i})}});function J$(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new wa({type:"enum",entries:n,...T(t)})}function S6(e,t){return new wa({type:"enum",entries:e,...T(t)})}const Y$=j("ZodLiteral",(e,t)=>{mk.init(e,t),ue.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function X$(e,t){return new Y$({type:"literal",values:Array.isArray(e)?e:[e],...T(t)})}const Q$=j("ZodFile",(e,t)=>{pk.init(e,t),ue.init(e,t),e.min=(n,o)=>e.check(xa(n,o)),e.max=(n,o)=>e.check(Iu(n,o)),e.mime=(n,o)=>e.check(Ip(Array.isArray(n)?n:[n],o))});function k6(e){return m$(Q$,e)}const ch=j("ZodTransform",(e,t)=>{Xm.init(e,t),ue.init(e,t),e._zod.parse=(n,o)=>{n.addIssue=i=>{if(typeof i=="string")n.issues.push(ei(i,n.value,t));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(ei(a))}};const r=t.transform(n.value,n);return r instanceof Promise?r.then(i=>(n.value=i,n)):(n.value=r,n)}});function dh(e){return new ch({type:"transform",transform:e})}const fh=j("ZodOptional",(e,t)=>{hk.init(e,t),ue.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Dl(e){return new fh({type:"optional",innerType:e})}const q$=j("ZodNullable",(e,t)=>{gk.init(e,t),ue.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Rl(e){return new q$({type:"nullable",innerType:e})}function $6(e){return Dl(Rl(e))}const e1=j("ZodDefault",(e,t)=>{vk.init(e,t),ue.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function t1(e,t){return new e1({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}const n1=j("ZodPrefault",(e,t)=>{yk.init(e,t),ue.init(e,t),e.unwrap=()=>e._zod.def.innerType});function r1(e,t){return new n1({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}const mh=j("ZodNonOptional",(e,t)=>{bk.init(e,t),ue.init(e,t),e.unwrap=()=>e._zod.def.innerType});function o1(e,t){return new mh({type:"nonoptional",innerType:e,...T(t)})}const i1=j("ZodSuccess",(e,t)=>{xk.init(e,t),ue.init(e,t),e.unwrap=()=>e._zod.def.innerType});function N6(e){return new i1({type:"success",innerType:e})}const a1=j("ZodCatch",(e,t)=>{wk.init(e,t),ue.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function s1(e,t){return new a1({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const l1=j("ZodNaN",(e,t)=>{_k.init(e,t),ue.init(e,t)});function E6(e){return a$(l1,e)}const ph=j("ZodPipe",(e,t)=>{Qm.init(e,t),ue.init(e,t),e.in=t.in,e.out=t.out});function Al(e,t){return new ph({type:"pipe",in:e,out:t})}const u1=j("ZodReadonly",(e,t)=>{Sk.init(e,t),ue.init(e,t),e.unwrap=()=>e._zod.def.innerType});function c1(e){return new u1({type:"readonly",innerType:e})}const d1=j("ZodTemplateLiteral",(e,t)=>{kk.init(e,t),ue.init(e,t)});function j6(e,t){return new d1({type:"template_literal",parts:e,...T(t)})}const f1=j("ZodLazy",(e,t)=>{Nk.init(e,t),ue.init(e,t),e.unwrap=()=>e._zod.def.getter()});function m1(e){return new f1({type:"lazy",getter:e})}const p1=j("ZodPromise",(e,t)=>{$k.init(e,t),ue.init(e,t),e.unwrap=()=>e._zod.def.innerType});function I6(e){return new p1({type:"promise",innerType:e})}const Uu=j("ZodCustom",(e,t)=>{Ek.init(e,t),ue.init(e,t)});function h1(e){const t=new Ae({check:"custom"});return t._zod.check=e,t}function C6(e,t){return p$(Uu,e??(()=>!0),t)}function g1(e,t={}){return h$(Uu,e,t)}function v1(e){const t=h1(n=>(n.addIssue=o=>{if(typeof o=="string")n.issues.push(ei(o,n.value,t._zod.def));else{const r=o;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),n.issues.push(ei(r))}},e(n.value,n)));return t}function z6(e,t={error:`Input not instance of ${e.name}`}){const n=new Uu({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...T(t)});return n._zod.bag.Class=e,n}const P6=(...e)=>g$({Pipe:ph,Boolean:Du,String:Ou,Transform:ch},...e);function O6(e){const t=m1(()=>lh([Fd(e),z$(),P$(),R$(),ah(t),H$(Fd(),t)]));return t}function T6(e,t){return Al(dh(e),t)}const D6={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function R6(e){mt({customError:e})}function A6(){return mt().customError}var Zd;Zd||(Zd={});function U6(e){return Ok(Ou,e)}function L6(e){return Mk(Tu,e)}function M6(e){return Gk(Du,e)}function F6(e){return Jk(Ru,e)}function V6(e){return i$(ih,e)}const Z6=Object.freeze(Object.defineProperty({__proto__:null,bigint:F6,boolean:M6,date:V6,number:L6,string:U6},Symbol.toStringTag,{value:"Module"}));mt(jk());const Et=Object.freeze(Object.defineProperty({__proto__:null,$brand:s_,$input:zk,$output:Ck,NEVER:a_,TimePrecision:Tk,ZodAny:A$,ZodArray:F$,ZodBase64:qp,ZodBase64URL:eh,ZodBigInt:Ru,ZodBigIntFormat:rh,ZodBoolean:Du,ZodCIDRv4:Xp,ZodCIDRv6:Qp,ZodCUID:Wp,ZodCUID2:Bp,ZodCatch:a1,ZodCustom:Uu,ZodCustomStringFormat:C$,ZodDate:ih,ZodDefault:e1,ZodDiscriminatedUnion:V$,ZodE164:th,ZodEmail:Mp,ZodEmoji:Vp,ZodEnum:wa,ZodError:PR,ZodFile:Q$,get ZodFirstPartyTypeKind(){return Zd},ZodGUID:Ol,ZodIPv4:Jp,ZodIPv6:Yp,ZodISODate:Rp,ZodISODateTime:Dp,ZodISODuration:Up,ZodISOTime:Ap,ZodIntersection:Z$,ZodIssueCode:D6,ZodJWT:nh,ZodKSUID:Kp,ZodLazy:f1,ZodLiteral:Y$,ZodMap:G$,ZodNaN:l1,ZodNanoID:Zp,ZodNever:L$,ZodNonOptional:mh,ZodNull:D$,ZodNullable:q$,ZodNumber:Tu,ZodNumberFormat:mi,ZodObject:Au,ZodOptional:fh,ZodPipe:ph,ZodPrefault:n1,ZodPromise:p1,ZodReadonly:u1,ZodRealError:Va,ZodRecord:uh,ZodSet:K$,ZodString:Ou,ZodStringFormat:$e,ZodSuccess:i1,ZodSymbol:O$,ZodTemplateLiteral:d1,ZodTransform:ch,ZodTuple:B$,ZodType:ue,ZodULID:Hp,ZodURL:Fp,ZodUUID:Mn,ZodUndefined:T$,ZodUnion:sh,ZodUnknown:U$,ZodVoid:M$,ZodXID:Gp,_ZodString:Lp,_default:t1,any:d6,array:ah,base64:XR,base64url:QR,bigint:a6,boolean:P$,catch:s1,check:h1,cidrv4:JR,cidrv6:YR,clone:mn,coerce:Z6,config:mt,core:jR,cuid:VR,cuid2:ZR,custom:C6,date:m6,discriminatedUnion:y6,e164:qR,email:OR,emoji:MR,endsWith:jp,enum:J$,file:k6,flattenError:Rm,float32:n6,float64:r6,formatError:Am,function:b$,getErrorMap:A6,globalRegistry:Zr,gt:eo,gte:It,guid:TR,includes:Np,instanceof:z6,int:Vd,int32:o6,int64:s6,intersection:W$,ipv4:GR,ipv6:KR,iso:zR,json:O6,jwt:e6,keyof:p6,ksuid:HR,lazy:m1,length:zu,literal:X$,locales:Ik,looseObject:v6,lowercase:kp,lt:qr,lte:on,map:w6,maxLength:Cu,maxSize:Iu,mime:Ip,minLength:ni,minSize:xa,multipleOf:ba,nan:E6,nanoid:FR,nativeEnum:S6,negative:l$,never:oh,nonnegative:c$,nonoptional:o1,nonpositive:u$,normalize:Cp,null:R$,nullable:Rl,nullish:$6,number:z$,object:h6,optional:Dl,overwrite:ao,parse:N$,parseAsync:E$,partialRecord:x6,pipe:Al,positive:s$,prefault:r1,preprocess:T6,prettifyError:S_,promise:I6,property:d$,readonly:c1,record:H$,refine:g1,regex:Sp,regexes:rS,registry:ep,safeParse:j$,safeParseAsync:I$,set:_6,setErrorMap:R6,size:_p,startsWith:Ep,strictObject:g6,string:Fd,stringFormat:t6,stringbool:P6,success:N6,superRefine:v1,symbol:u6,templateLiteral:j6,toJSONSchema:x$,toLowerCase:Pp,toUpperCase:Op,transform:dh,treeifyError:w_,trim:zp,tuple:b6,uint32:i6,uint64:l6,ulid:WR,undefined:c6,union:lh,unknown:Tl,uppercase:$p,url:LR,uuid:DR,uuidv4:RR,uuidv6:AR,uuidv7:UR,void:f6,xid:BR},Symbol.toStringTag,{value:"Module"})),W6=Et.object({port:Et.string().min(1,{message:"端口号不能为空"}).refine(e=>!Number.isNaN(Number(e)),{message:"请输入有效的数字"}).refine(e=>Number(e)>=1&&Number(e)<=65535,{message:"端口号必须在 1-65535 之间"}).refine(e=>Number.isInteger(Number(e)),{message:"端口号必须是整数"})});function B6(){const[e,t]=g.useState(!1),[n,o]=g.useState(!1),r=oo(),i=F0(),a=N2(),{changePort:s}=Pr(),l=xu({resolver:Pu(W6),defaultValues:{port:"9999"}});g.useEffect(()=>{var c;(c=r==null?void 0:r.webUI)!=null&&c.port&&l.reset({port:r.webUI.port.toString()})},[r,l]);const u=()=>{if(n)return"处理中...";if((a==null?void 0:a.status)==="checking")return"检测端口...";if((a==null?void 0:a.status)==="polling"){const{currentAttempt:c,maxAttempts:h}=a;return`等待服务重启 (${c||0}/${h||45})`}return(a==null?void 0:a.status)==="connecting"?"连接中...":i?"保存并重启":"保存并连接"};async function d(c){var x;const h=Number(c.port),y=(x=r==null?void 0:r.webUI)==null?void 0:x.port;if(h===y){t(!1);return}console.log(`[WebUrlSettingButton] 开始端口切换: ${y} -> ${h}`),o(!0);try{pe.info(i?`正在将端口从 ${y} 切换到 ${h}...`:`正在连接到端口 ${h}...`),await s(h),pe.success(i?`端口已成功切换到 ${h},页面即将刷新...`:`已成功连接到端口 ${h},页面即将刷新...`),t(!1)}catch(b){console.error("端口切换失败:",b);const w=b instanceof Error?b.message:"端口切换失败";pe.error(`端口切换失败: ${w}`)}finally{o(!1)}}return f.jsxs(ha,{open:e,onOpenChange:t,children:[f.jsx(gu,{asChild:!0,children:f.jsx(Ne,{variant:"secondary",size:"icon",className:"size-8",children:f.jsx(iu,{className:"h-4 w-4"})})}),f.jsx(Jo,{className:"sm:max-w-[250px]",children:f.jsx(wu,{...l,children:f.jsxs("form",{onSubmit:l.handleSubmit(d),children:[f.jsxs(Yo,{className:"mb-4",children:[f.jsx(Xo,{children:"配置服务端端口"}),f.jsx(Qo,{children:i?"修改端口后将自动重启服务并重新连接。":"请输入服务端端口号,系统将尝试连接。"})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs("div",{children:["ws://",window.location.hostname,":"]}),f.jsx("div",{className:"w-[100px]",children:f.jsx(Vr,{control:l.control,name:"port",render:({field:c})=>f.jsxs(dr,{children:[f.jsx(fr,{children:f.jsx(cr,{placeholder:"服务端端口,默认9999",className:"font-mono text-sm",disabled:n,type:"number",...c})}),f.jsx(mr,{})]})})})]}),f.jsxs(Aa,{className:"mt-4",children:[f.jsx(vu,{asChild:!0,children:f.jsx(Ne,{variant:"outline",disabled:n,children:"取消"})}),f.jsx(Ne,{type:"submit",disabled:n||(a==null?void 0:a.status)==="polling",children:u()})]})]})})})]})}const pr=g.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:X("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));pr.displayName="Card";const Vs=g.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:X("flex flex-col space-y-1.5 p-6",e),...t}));Vs.displayName="CardHeader";const Zs=g.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:X("text-2xl font-semibold leading-none tracking-tight",e),...t}));Zs.displayName="CardTitle";const Ws=g.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:X("text-sm text-muted-foreground",e),...t}));Ws.displayName="CardDescription";const Ri=g.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:X("p-6 pt-0",e),...t}));Ri.displayName="CardContent";const Ul=g.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:X("flex items-center p-6 pt-0",e),...t}));Ul.displayName="CardFooter";const jc=({showValue:e=!0,value:t=0,maxValue:n=100,size:o=60,activeColor:r="#3b82f6",inactiveColor:i="#e5e7eb",symbol:a="%"})=>{const s=(o-6)/2,l=s*2*Math.PI,u=l,d=l-t/n*l;return f.jsxs("div",{className:"relative inline-flex items-center justify-center",children:[f.jsxs("svg",{width:o,height:o,className:"transform -rotate-90",children:[f.jsx("circle",{cx:o/2,cy:o/2,r:s,stroke:i,strokeWidth:6,fill:"none"}),f.jsx("circle",{cx:o/2,cy:o/2,r:s,stroke:r,strokeWidth:6,fill:"none",strokeDasharray:u,strokeDashoffset:d,strokeLinecap:"round",className:"transition-all duration-300 ease-in-out"})]}),e&&f.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:f.jsxs("span",{className:"text-xs font-medium",children:[t,a]})})]})};function H6(){const e=V0(),t=F0(),n=Object.keys(e||{}).length,o=E2(),r=M0();return f.jsxs("div",{className:"*:data-[slot=card]:shadow-xs @xl/main:grid-cols-2 @5xl/main:grid-cols-4 grid grid-cols-1 gap-4 px-4 *:data-[slot=card]:bg-gradient-to-t *:data-[slot=card]:from-primary/5 *:data-[slot=card]:to-card dark:*:data-[slot=card]:bg-card lg:px-6",children:[f.jsxs(pr,{className:"@container/card",children:[f.jsxs(Vs,{className:"relative",children:[f.jsx(Ws,{children:"小智接入点"}),f.jsx(Zs,{className:"@[250px]/card:text-3xl text-2xl font-semibold tabular-nums",children:Array.isArray(r)?r.length:r?1:0}),f.jsx("div",{className:"absolute right-4 top-4 flex flex-col items-center",children:f.jsx(jc,{showValue:!1,value:Array.isArray(r)?r.length:r?1:0,maxValue:Math.max(Array.isArray(r)?r.length:1,1),activeColor:"#16a34a",inactiveColor:"#f87171",size:30,symbol:""})})]}),f.jsx(Ul,{className:"flex-col items-end gap-1 text-sm",children:f.jsx(O2,{})})]}),f.jsxs(pr,{className:"@container/card",children:[f.jsxs(Vs,{className:"relative",children:[f.jsx(Ws,{children:"Xiaozhi Client"}),f.jsx(Zs,{className:"@[250px]/card:text-3xl text-2xl font-semibold tabular-nums",children:t?"已连接":"未连接"}),f.jsx("div",{className:"absolute right-4 top-4",children:f.jsx(jc,{showValue:!1,value:1,maxValue:1,activeColor:t?"#16a34a":"#f87171",inactiveColor:t?"#16a34a":"#f87171",size:30,symbol:""})})]}),f.jsxs(Ul,{className:"flex items-center justify-between gap-1 text-sm",children:[f.jsx("div",{className:"text-muted-foreground",children:o}),f.jsx(B6,{})]})]}),f.jsx(pr,{className:"@container/card",children:f.jsxs(Vs,{className:"relative",children:[f.jsx(Ws,{children:"MCP服务"}),f.jsx(Zs,{className:"@[250px]/card:text-3xl text-2xl font-semibold tabular-nums",children:n}),f.jsx("div",{className:"absolute right-4 top-4",children:f.jsx(jc,{showValue:!1,value:n,maxValue:n,activeColor:"#16a34a",inactiveColor:"#f87171",size:30,symbol:""})})]})})]})}const G6=Ia("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Ic({className:e,variant:t,...n}){return f.jsx("div",{className:X(G6({variant:t}),e),...n})}function Wd(e){if(!e||typeof e!="object")throw new Error("服务配置必须是一个有效的对象");if("command"in e&&typeof e.command=="string")return"stdio";if("type"in e&&e.type==="sse")return"sse";if("url"in e&&typeof e.url=="string")return"streamable-http";throw new Error("无法识别的 MCP 服务配置类型。配置必须包含 command 字段(stdio)、type: 'sse' 字段(sse)或 url 字段(streamable-http)")}const hh=g.forwardRef(({className:e,...t},n)=>f.jsx("textarea",{className:X("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));hh.displayName="Textarea";const K6=Et.object({config:Et.string().min(2,{message:"配置不能为空"})});function Xv(){const[e,t]=g.useState(!1),[n,o]=g.useState(!1),{updateConfig:r}=Pr(),i=oo(),a=xu({resolver:Pu(K6),defaultValues:{config:""}}),s=(d,c)=>{if(!c||typeof c!="object")return{valid:!1,error:`服务 "${d}" 的配置必须是一个对象`};const h="command"in c,y="type"in c,x="url"in c;if(h){if(!c.command||typeof c.command!="string")return{valid:!1,error:`服务 "${d}" 缺少必需的 command 字段或字段类型不正确`};if(!Array.isArray(c.args))return{valid:!1,error:`服务 "${d}" 的 args 字段必须是数组`}}else if(y&&c.type==="sse"){if(!c.url||typeof c.url!="string")return{valid:!1,error:`服务 "${d}" 缺少必需的 url 字段或字段类型不正确`}}else if(x){if(!c.url||typeof c.url!="string")return{valid:!1,error:`服务 "${d}" 缺少必需的 url 字段或字段类型不正确`};if(c.type&&c.type!=="streamable-http")return{valid:!1,error:`服务 "${d}" 的 type 字段如果存在,必须是 "streamable-http"`}}else return{valid:!1,error:`服务 "${d}" 的配置无效: 必须包含 command 字段(stdio)、type: 'sse' 字段(sse)或 url 字段(streamable-http)`};try{return Wd(c),{valid:!0}}catch(b){return{valid:!1,error:`服务 "${d}" 的配置无效: ${b instanceof Error?b.message:"未知错误"}`}}},l=d=>{try{const c=d.trim();if(!c)return{success:!1,error:"配置不能为空"};const h=JSON.parse(c);let y;if(h.mcpServers&&typeof h.mcpServers=="object")y=h.mcpServers;else if(typeof h=="object"&&!Array.isArray(h))try{Wd(h),y={[h.command?h.command.split("/").pop()||"mcp-server":h.type==="sse"?"sse-server":"http-server"]:h}}catch{y=h}else return{success:!1,error:"配置格式错误: 必须是对象格式"};for(const[x,b]of Object.entries(y)){const w=s(x,b);if(!w.valid)return{success:!1,error:w.error}}return{success:!0,data:y}}catch(c){return{success:!1,error:`JSON 格式错误: ${c instanceof Error?c.message:"无法解析 JSON"}`}}};async function u(d){if(!i){pe.error("配置数据未加载,请稍后重试");return}o(!0);try{const c=l(d.config);if(!c.success){pe.error(c.error||"配置验证失败");return}const h=c.data,y=Object.keys(h).filter(w=>w in(i.mcpServers||{}));if(y.length>0){pe.error(`服务名称冲突: 以下服务已存在: ${y.join(", ")}`);return}const x={...i,mcpServers:{...h,...i.mcpServers}};await r(x);const b=Object.keys(h).length;pe.success(b===1?`已添加 MCP 服务 "${Object.keys(h)[0]}"`:`已添加 ${b} 个 MCP 服务`),a.reset(),t(!1)}catch(c){console.error("更新配置失败:",c),pe.error(c instanceof Error?c.message:"更新配置失败")}finally{o(!1)}}return f.jsxs(ha,{open:e,onOpenChange:t,children:[f.jsx(gu,{asChild:!0,children:f.jsxs(Ne,{size:"icon",className:"w-full",children:[f.jsx(Gf,{className:"h-4 w-4"}),f.jsx("span",{children:"添加MCP服务"})]})}),f.jsx(Jo,{className:"sm:max-w-[500px]",children:f.jsx(wu,{...a,children:f.jsxs("form",{onSubmit:a.handleSubmit(u),children:[f.jsxs(Yo,{className:"mb-4",children:[f.jsx(Xo,{children:"添加MCP服务"}),f.jsx(Qo,{children:"添加后,需要重启服务才会生效。"})]}),f.jsx("div",{className:"grid gap-4",children:f.jsx(Vr,{control:a.control,name:"config",render:({field:d})=>f.jsxs(dr,{children:[f.jsx(fr,{children:f.jsx(hh,{className:"resize-none h-[300px] font-mono text-sm",disabled:n,placeholder:`支持三种通信方式:
212
-
213
- 1. 本地进程 (stdio):
214
- {
215
- "mcpServers": {
216
- "local-server": {
217
- "command": "npx",
218
- "args": ["-y", "@example/mcp-server"]
219
- }
220
- }
221
- }
222
-
223
- 2. 服务器推送 (SSE):
224
- {
225
- "mcpServers": {
226
- "sse-server": {
227
- "type": "sse",
228
- "url": "https://example.com/sse"
229
- }
230
- }
231
- }
232
-
233
- 3. 流式 HTTP:
234
- {
235
- "mcpServers": {
236
- "http-server": {
237
- "url": "https://example.com/mcp"
238
- }
239
- }
240
- }`,...d})}),f.jsx(mr,{})]})})}),f.jsxs(Aa,{className:"mt-4",children:[f.jsx(vu,{asChild:!0,children:f.jsx(Ne,{variant:"outline",disabled:n,children:"取消"})}),f.jsx(Ne,{type:"submit",disabled:n,children:n?"保存中...":"保存"})]})]})})})]})}const J6=Et.object({config:Et.string().min(2,{message:"配置不能为空"})});function Y6({mcpServer:e,mcpServerName:t}){const[n,o]=g.useState(!1),[r,i]=g.useState(!1),a=oo(),{updateConfig:s}=Pr(),l=xu({resolver:Pu(J6),defaultValues:{config:JSON.stringify(e,null,2)}});async function u(d){if(!a){pe.error("配置数据未加载,请稍后重试");return}i(!0);try{let c;try{c=JSON.parse(d.config)}catch{pe.error("JSON格式错误,请检查配置格式");return}if(!c||typeof c!="object"){pe.error("配置格式无效");return}const h={...a,mcpServers:{...a.mcpServers,[t]:c}};await s(h),pe.success("MCP服务器配置已更新"),o(!1)}catch(c){console.error("更新配置失败:",c),pe.error(c instanceof Error?c.message:"更新配置失败")}finally{i(!1)}}return f.jsxs(ha,{open:n,onOpenChange:o,children:[f.jsx(gu,{asChild:!0,children:f.jsx(Ne,{variant:"secondary",size:"icon",className:"size-8",children:f.jsx(iu,{className:"h-4 w-4"})})}),f.jsx(Jo,{className:"sm:max-w-[500px]",children:f.jsx(wu,{...l,children:f.jsxs("form",{onSubmit:l.handleSubmit(u),children:[f.jsxs(Yo,{className:"mb-4",children:[f.jsxs(Xo,{children:["配置 ",t," MCP"]}),f.jsx(Qo,{children:"点击保存后,需要重启服务才会生效。"})]}),f.jsx("div",{className:"grid gap-4",children:f.jsx(Vr,{control:l.control,name:"config",render:({field:d})=>f.jsxs(dr,{children:[f.jsx(fr,{children:f.jsx(hh,{placeholder:"MCP服务配置",className:"resize-none h-[300px] font-mono text-sm",disabled:r,...d})}),f.jsx(mr,{})]})})}),f.jsxs(Aa,{className:"mt-4",children:[f.jsx(vu,{asChild:!0,children:f.jsx(Ne,{variant:"outline",disabled:r,children:"取消"})}),f.jsx(Ne,{type:"submit",disabled:r,children:r?"保存中...":"保存"})]})]})})})]})}function X6({mcpServerName:e}){const[t,n]=g.useState(!1),{updateConfig:o}=Pr(),r=oo(),i=async()=>{if(!r){pe.error("配置未加载,无法删除服务");return}try{n(!0);const a={...r.mcpServers};delete a[e];const s=r.mcpServerConfig?{...r.mcpServerConfig}:void 0;s&&e in s&&delete s[e];const l={...r,mcpServers:a,mcpServerConfig:s};await o(l),pe.success(`MCP 服务 "${e}" 已删除`)}catch(a){console.error("删除 MCP 服务失败:",a),pe.error(`删除 MCP 服务失败: ${a instanceof Error?a.message:"未知错误"}`)}finally{n(!1)}};return f.jsxs(A0,{children:[f.jsx(c2,{asChild:!0,children:f.jsx(Ne,{variant:"destructive",size:"icon",className:"size-8",children:f.jsx(Ix,{className:"h-4 w-4"})})}),f.jsxs(bm,{children:[f.jsxs(xm,{children:[f.jsxs(_m,{children:["确定要删除这个(",e,")MCP服务吗?"]}),f.jsx(Sm,{children:"删除后,对应的工具列表也会移除。"})]}),f.jsxs(wm,{children:[f.jsx($m,{children:"取消"}),f.jsx(km,{onClick:i,disabled:t,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:t?"删除中...":"确定"})]})]})]})}function y1({onRestart:e,disabled:t=!1,variant:n="outline",className:o="",restartingText:r="重启中...",defaultText:i="重启服务"}){const[a,s]=g.useState(!1),{restartStatus:l,restartService:u}=Pr();g.useEffect(()=>{l&&(l.status==="completed"||l.status==="failed")&&s(!1)},[l]);const d=async()=>{if(!a){u(),s(!0);try{e&&await e()}catch(c){pe.error(c instanceof Error?c.message:"重启服务时发生错误"),s(!1)}}};return f.jsxs(Ne,{type:"button",onClick:d,variant:n,disabled:a||t,className:`flex items-center gap-2 ${o}`,children:[f.jsx(gC,{className:`h-4 w-4 ${a?"animate-spin":""}`}),a?r:i]})}function Q6({updateConfig:e}){const t=j2(),n=V0(),o=oo(),r=g.useMemo(()=>Object.entries(t||{}).flatMap(([l,u])=>Object.entries((u==null?void 0:u.tools)||{}).map(([d,c])=>({serverName:l,toolName:d,...c}))),[t]),i=async(l,u,d)=>{var c,h,y,x,b,w;if(!e){pe.error("updateConfig 方法未提供");return}if(!o){pe.error("配置未加载");return}try{const m={...o,mcpServerConfig:{...o.mcpServerConfig,[l]:{...(c=o.mcpServerConfig)==null?void 0:c[l],tools:{...(y=(h=o.mcpServerConfig)==null?void 0:h[l])==null?void 0:y.tools,[u]:{...(w=(b=(x=o.mcpServerConfig)==null?void 0:x[l])==null?void 0:b.tools)==null?void 0:w[u],enable:!d}}}}};await e(m);const p=d?"禁用":"启用";pe.success(`${p}工具 ${u} 成功`)}catch(m){console.error("切换工具状态失败:",m),pe.error(m instanceof Error?m.message:"切换工具状态失败")}},a=r.filter(l=>l.enable),s=r.filter(l=>!l.enable);return!n||Object.keys(n).length===0?f.jsx("div",{className:"@container/main flex flex-1 flex-col gap-2",children:f.jsxs("div",{className:"flex flex-col gap-4 py-4 md:gap-6 md:py-6",children:[f.jsx("div",{className:"flex items-center justify-between px-4 lg:px-6",children:f.jsxs("div",{children:[f.jsx("h2",{className:"text-lg font-semibold",children:"你的聚合 MCP 服务"}),f.jsx("p",{className:"text-sm text-muted-foreground",children:"在这里管理你的 MCP 服务器和工具。"})]})}),f.jsx("div",{className:"px-4 lg:px-6",children:f.jsx(pr,{className:"border-dashed",children:f.jsxs(Ri,{className:"flex flex-col items-center justify-center py-12",children:[f.jsx(Rg,{className:"h-12 w-12 text-muted-foreground mb-4"}),f.jsx("h3",{className:"text-lg font-semibold mb-2",children:"还没有 MCP 服务"}),f.jsx("p",{className:"text-sm text-muted-foreground text-center mb-4",children:"添加你的第一个 MCP 服务器来开始使用强大的工具集成功能。"}),f.jsx(Xv,{})]})})})]})}):f.jsxs("div",{className:"flex flex-col gap-4 px-4 lg:px-6",children:[f.jsx("h2",{className:"text-2xl font-bold",children:"你的聚合 MCP 服务"}),f.jsx("p",{className:"text-sm text-muted-foreground",children:"你可以在这里管理你的 MCP 服务,包括启用/禁用工具,以及查看工具的详细信息。 最终暴露给小智服务端和其他MCP客户端的是这里聚合MCP"}),f.jsxs("div",{className:"*:data-[slot=card]:shadow-xs @xl/main:grid-cols-8 @5xl/main:grid-cols-8 grid grid-cols-1 gap-4 *:data-[slot=card]:bg-gradient-to-t *:data-[slot=card]:from-primary/5 *:data-[slot=card]:to-card dark:*:data-[slot=card]:bg-card",children:[f.jsx(pr,{className:"transition-all duration-200 col-span-3",children:f.jsx(Ri,{className:"p-4",children:f.jsxs("div",{className:"flex-col",children:[f.jsxs("h4",{className:"text-sm font-medium mb-3 flex items-center gap-2",children:[f.jsx(Ag,{className:"h-4 w-4"}),"使用中的工具 (",a.length,")"]}),f.jsx("div",{className:"flex-1 space-y-2",children:a.map(l=>f.jsxs("div",{className:"flex items-start justify-between p-4 bg-slate-50 rounded-md font-mono",children:[f.jsxs("div",{className:"text-md flex flex-col gap-2",children:[f.jsxs("div",{className:"flex items-center gap-2 justify-start",children:[f.jsx(Ic,{variant:"secondary",className:"rounded-md",children:l.serverName}),f.jsx("span",{children:l.toolName})]}),f.jsx("p",{className:"text-sm text-muted-foreground my-2",children:l.description}),f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsxs("span",{className:"text-sm text-muted-foreground",children:[f.jsx("span",{className:"text-muted-foreground",children:"使用次数:"})," ",f.jsx("span",{className:"text-primary font-bold",children:l.usageCount||0})]}),f.jsxs("span",{className:"text-sm text-muted-foreground",children:[f.jsx("span",{className:"text-muted-foreground",children:"最后使用:"})," ",f.jsx("span",{className:"text-primary font-bold",children:l.lastUsedTime||"-"})]})]})]}),f.jsx("div",{className:"flex items-center gap-2 ml-4",children:f.jsx(Ne,{variant:"secondary",size:"icon",className:"size-8 hover:bg-red-500 hover:text-white",onClick:()=>i(l.serverName,l.toolName,!0),children:f.jsx(dC,{size:18})})})]},l.toolName))})]})})}),f.jsx(pr,{className:"transition-all duration-200 col-span-3",children:f.jsx(Ri,{className:"p-4",children:f.jsxs("div",{className:"flex-col",children:[f.jsxs("h4",{className:"text-sm font-medium mb-3 flex items-center gap-2",children:[f.jsx(Ag,{className:"h-4 w-4"}),"未使用的工具 (",s.length,")"]}),s.length===0&&f.jsxs("div",{className:"flex-1 flex flex-col items-center gap-4 py-20 px-4 bg-slate-50 rounded-md font-mono h-full",children:[f.jsx(Rg,{strokeWidth:1.5,size:48,className:"text-muted-foreground"}),f.jsx("span",{className:"text-sm text-muted-foreground",children:"全部工具都已经启用"})]}),f.jsx("div",{className:"flex-1 space-y-2",children:s.map(l=>f.jsxs("div",{className:"flex items-start justify-between p-4 bg-slate-50 rounded-md font-mono",children:[f.jsxs("div",{className:"text-md flex flex-col gap-2",children:[f.jsxs("div",{className:"flex items-center gap-2 justify-start",children:[f.jsx(Ic,{variant:"secondary",className:"rounded-md",children:l.serverName}),f.jsx("span",{children:l.toolName})]}),f.jsx("p",{className:"text-sm text-muted-foreground",children:l.description}),f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsxs("span",{className:"text-sm text-muted-foreground",children:[f.jsx("span",{className:"text-muted-foreground",children:"使用次数:"})," ",f.jsx("span",{className:"text-primary font-bold",children:l.usageCount||0})]}),f.jsxs("span",{className:"text-sm text-muted-foreground",children:[f.jsx("span",{className:"text-muted-foreground",children:"最后使用:"})," ",f.jsx("span",{className:"text-primary font-bold",children:l.lastUsedTime||"-"})]})]})]}),f.jsx("div",{className:"flex items-center gap-2 ml-4",children:f.jsx(Ne,{variant:"secondary",size:"icon",className:"size-8 hover:bg-green-500 hover:text-white",onClick:()=>i(l.serverName,l.toolName,!1),children:f.jsx(Gf,{className:"h-4 w-4"})})})]},l.toolName))})]})})}),f.jsxs("div",{className:"transition-all duration-200 gap-4 flex flex-col col-span-2",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Xv,{}),f.jsx(y1,{})]}),Object.entries(n||{}).map(([l,u])=>f.jsxs(pr,{className:"transition-all duration-200",children:[f.jsx(Ri,{className:"p-0",children:f.jsx("div",{className:"p-4 pb-2",children:f.jsxs("div",{className:"flex items-start justify-between",children:[f.jsx("div",{className:"flex items-start gap-4 flex-1",children:f.jsx("div",{className:"flex-1",children:f.jsx("div",{className:"flex items-center gap-2 mb-2",children:f.jsx("h3",{className:"text-lg font-semibold",children:l})})})}),f.jsxs("div",{className:"flex items-center gap-2 ml-4",children:[f.jsx(Y6,{mcpServerName:l,mcpServer:u}),f.jsx(X6,{mcpServerName:l})]})]})})}),f.jsx(Ul,{className:"p-4 pt-2",children:f.jsx(Ic,{variant:"outline",className:"text-xs",children:Wd(u)})})]},l))]})]})]})}function b1({title:e}){return f.jsxs("header",{className:"group-has-data-[collapsible=icon]/sidebar-wrapper:h-12 flex h-12 shrink-0 items-center gap-2 border-b transition-[width,height] ease-linear",children:[f.jsxs("div",{className:"flex w-full items-center gap-1 px-4 lg:gap-2 lg:px-6",children:[f.jsx(f0,{className:"-ml-1"}),f.jsx(Xf,{orientation:"vertical",className:"mx-2 data-[orientation=vertical]:h-4"}),f.jsx("h1",{className:"text-base font-medium",children:e})]}),f.jsx("div",{className:"flex w-full justify-end items-center gap-1 px-4 lg:gap-2 lg:px-6",children:f.jsx("a",{href:"https://github.com/shenjingnan/xiaozhi-client",target:"_blank",rel:"noopener noreferrer",children:f.jsx(sC,{size:24,className:"text-slate-500",fill:"currentColor"})})})]})}const x1=g.createContext(null);function q6({children:e}){const t=Pr(),n={updateConfig:t.updateConfig,refreshStatus:t.refreshStatus,restartService:t.restartService,setCustomWsUrl:t.setCustomWsUrl,changePort:t.changePort,wsUrl:t.wsUrl};return f.jsx(x1.Provider,{value:n,children:e})}function eA(){const e=g.useContext(x1);if(!e)throw new Error("useWebSocketActions must be used within a WebSocketProvider");return e}function tA(){const{updateConfig:e}=eA();return f.jsxs(pm,{children:[f.jsx(v0,{variant:"inset"}),f.jsxs(hm,{children:[f.jsx(b1,{title:"看板"}),f.jsx("div",{className:"flex flex-1 flex-col",children:f.jsx("div",{className:"@container/main flex flex-1 flex-col gap-2",children:f.jsxs("div",{className:"flex flex-col gap-4 py-4 md:gap-6 md:py-6",children:[f.jsx(H6,{}),f.jsx(Q6,{updateConfig:e})]})})})]})]})}const nA=Et.object({modelscope:Et.object({apiKey:Et.string().min(2,{message:"API Key不能为空"}).optional()}),connection:Et.object({heartbeatInterval:Et.number().min(1e3,{message:"心跳间隔不能小于1000毫秒"}),heartbeatTimeout:Et.number().min(1e3,{message:"心跳超时不能小于1000毫秒"}),reconnectInterval:Et.number().min(1e3,{message:"重连间隔不能小于1000毫秒"})})});function rA(){var a,s,l,u;const e=oo(),{updateConfig:t}=Pr();console.log(e);const[n,o]=g.useState(!1),r=xu({resolver:Pu(nA),defaultValues:{modelscope:{apiKey:((a=e==null?void 0:e.modelscope)==null?void 0:a.apiKey)||""},connection:{heartbeatInterval:((s=e==null?void 0:e.connection)==null?void 0:s.heartbeatInterval)||3e4,heartbeatTimeout:((l=e==null?void 0:e.connection)==null?void 0:l.heartbeatTimeout)||1e4,reconnectInterval:((u=e==null?void 0:e.connection)==null?void 0:u.reconnectInterval)||5e3}}});g.useEffect(()=>{var d,c,h,y;r.reset({modelscope:{apiKey:((d=e==null?void 0:e.modelscope)==null?void 0:d.apiKey)||""},connection:{heartbeatInterval:((c=e==null?void 0:e.connection)==null?void 0:c.heartbeatInterval)||3e4,heartbeatTimeout:((h=e==null?void 0:e.connection)==null?void 0:h.heartbeatTimeout)||1e4,reconnectInterval:((y=e==null?void 0:e.connection)==null?void 0:y.reconnectInterval)||5e3}})},[e,r.reset]);async function i(d){if(!e){pe.error("配置数据未加载,请稍后重试");return}o(!0);try{const c={...e,modelscope:{apiKey:d.modelscope.apiKey},connection:{heartbeatInterval:d.connection.heartbeatInterval,heartbeatTimeout:d.connection.heartbeatTimeout,reconnectInterval:d.connection.reconnectInterval}};await t(c),pe.success("配置已更新")}catch(c){console.error("更新配置失败:",c),pe.error(c instanceof Error?c.message:"更新配置失败")}finally{o(!1)}}return f.jsxs(pm,{children:[f.jsx(v0,{variant:"inset"}),f.jsxs(hm,{children:[f.jsx(b1,{title:"设置"}),f.jsx("div",{className:"flex flex-1 flex-col p-4",children:f.jsx("div",{className:"@container/main flex flex-1 flex-col gap-2 items-center",children:f.jsx("div",{className:"flex flex-col gap-4 py-4 md:gap-6 md:py-6 w-[600px]",children:f.jsx(wu,{...r,children:f.jsx("form",{onSubmit:r.handleSubmit(i),children:f.jsxs("div",{className:"grid gap-4",children:[f.jsx(Vr,{control:r.control,name:"modelscope.apiKey",render:({field:d})=>f.jsxs(dr,{children:[f.jsx(Ti,{children:"魔搭社区 API Key"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx(fr,{children:f.jsx(cr,{placeholder:"魔搭社区 API Key",className:"font-mono text-sm",type:"password",disabled:n,...d})}),f.jsx(Ne,{variant:"outline",onClick:()=>{window.open("https://www.modelscope.cn/my/myaccesstoken","_blank")},children:"打开魔搭社区"})]}),f.jsx(mr,{})]})}),f.jsx(Vr,{control:r.control,name:"connection.heartbeatInterval",render:({field:d})=>f.jsxs(dr,{children:[f.jsx(Ti,{children:"心跳间隔(毫秒)"}),f.jsxs("div",{className:"flex gap-2 items-center",children:[f.jsx(fr,{children:f.jsx(cr,{placeholder:"心跳间隔(毫秒)",className:"font-mono text-sm",type:"number",disabled:n,...d,value:d.value||"",onChange:c=>{const h=c.target.value;d.onChange(h===""?"":Number(h))}})}),f.jsx("span",{className:"text-sm text-muted-foreground w-[50px]",children:"毫秒"})]}),f.jsx(mr,{})]})}),f.jsx(Vr,{control:r.control,name:"connection.heartbeatTimeout",render:({field:d})=>f.jsxs(dr,{children:[f.jsx(Ti,{children:"心跳超时(毫秒)"}),f.jsxs("div",{className:"flex gap-2 items-center",children:[f.jsx(fr,{children:f.jsx(cr,{placeholder:"心跳超时(毫秒)",className:"font-mono text-sm",type:"number",disabled:n,...d,value:d.value||"",onChange:c=>{const h=c.target.value;d.onChange(h===""?"":Number(h))}})}),f.jsx("span",{className:"text-sm text-muted-foreground w-[50px]",children:"毫秒"})]}),f.jsx(mr,{})]})}),f.jsx(Vr,{control:r.control,name:"connection.reconnectInterval",render:({field:d})=>f.jsxs(dr,{children:[f.jsx(Ti,{children:"重连间隔(毫秒)"}),f.jsxs("div",{className:"flex gap-2 items-center",children:[f.jsx(fr,{children:f.jsx(cr,{placeholder:"重连间隔(毫秒)",className:"font-mono text-sm",type:"number",disabled:n,...d,value:d.value||"",onChange:c=>{const h=c.target.value;d.onChange(h===""?"":Number(h))}})}),f.jsx("span",{className:"text-sm text-muted-foreground w-[50px]",children:"毫秒"})]}),f.jsx(mr,{})]})}),f.jsxs("div",{className:"flex gap-2 justify-end",children:[f.jsx(Ne,{type:"submit",disabled:n,className:"flex-1",children:n?"保存中...":"保存"}),f.jsx(y1,{})]})]})})})})})})]})]})}function oA(){return f.jsxs(q6,{children:[f.jsxs(Lj,{children:[f.jsx(Ts,{path:"/",element:f.jsx(Aj,{to:"/dashboard"})}),f.jsx(Ts,{path:"/dashboard",element:f.jsx(tA,{})}),f.jsx(Ts,{path:"/settings",element:f.jsx(rA,{})})]}),f.jsx(JI,{})]})}Cc.createRoot(document.getElementById("root")).render(f.jsx(P.StrictMode,{children:f.jsx(lI,{children:f.jsx(oA,{})})}));
241
- //# sourceMappingURL=index-Jy5aLSeZ.js.map