@xpert-ai/plugin-spaces 0.2.0 → 0.3.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.
@@ -1,73 +1,11 @@
1
- "use strict";(()=>{var vk=Object.create;var ef=Object.defineProperty;var xk=Object.getOwnPropertyDescriptor;var yk=Object.getOwnPropertyNames;var wk=Object.getPrototypeOf,Ck=Object.prototype.hasOwnProperty;var Rr=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(a){throw t=0,a}},co=(e,t)=>{for(var a in t)ef(e,a,{get:t[a],enumerable:!0})},Sk=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of yk(t))!Ck.call(e,o)&&o!==a&&ef(e,o,{get:()=>t[o],enumerable:!(r=xk(t,o))||r.enumerable});return e};var N=(e,t,a)=>(a=e!=null?vk(wk(e)):{},Sk(t||!e||!e.__esModule?ef(a,"default",{value:e,enumerable:!0}):a,e));var zg=Rr(be=>{"use strict";var Ai=Symbol.for("react.element"),Lk=Symbol.for("react.portal"),Ik=Symbol.for("react.fragment"),bk=Symbol.for("react.strict_mode"),kk=Symbol.for("react.profiler"),Rk=Symbol.for("react.provider"),Pk=Symbol.for("react.context"),Tk=Symbol.for("react.forward_ref"),Mk=Symbol.for("react.suspense"),Dk=Symbol.for("react.memo"),_k=Symbol.for("react.lazy"),Rg=Symbol.iterator;function Ak(e){return e===null||typeof e!="object"?null:(e=Rg&&e[Rg]||e["@@iterator"],typeof e=="function"?e:null)}var Mg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Dg=Object.assign,_g={};function ls(e,t,a){this.props=e,this.context=t,this.refs=_g,this.updater=a||Mg}ls.prototype.isReactComponent={};ls.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")};ls.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ag(){}Ag.prototype=ls.prototype;function af(e,t,a){this.props=e,this.context=t,this.refs=_g,this.updater=a||Mg}var rf=af.prototype=new Ag;rf.constructor=af;Dg(rf,ls.prototype);rf.isPureReactComponent=!0;var Pg=Array.isArray,Eg=Object.prototype.hasOwnProperty,of={current:null},Og={key:!0,ref:!0,__self:!0,__source:!0};function Ng(e,t,a){var r,o={},n=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(n=""+t.key),t)Eg.call(t,r)&&!Og.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(i===1)o.children=a;else if(1<i){for(var l=Array(i),u=0;u<i;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)o[r]===void 0&&(o[r]=i[r]);return{$$typeof:Ai,type:e,key:n,ref:s,props:o,_owner:of.current}}function Ek(e,t){return{$$typeof:Ai,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function nf(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ai}function Ok(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var Tg=/\/+/g;function tf(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Ok(""+e.key):t.toString(36)}function su(e,t,a,r,o){var n=typeof e;(n==="undefined"||n==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(n){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Ai:case Lk:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+tf(s,0):r,Pg(o)?(a="",e!=null&&(a=e.replace(Tg,"$&/")+"/"),su(o,t,a,"",function(u){return u})):o!=null&&(nf(o)&&(o=Ek(o,a+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Tg,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Pg(e))for(var i=0;i<e.length;i++){n=e[i];var l=r+tf(n,i);s+=su(n,t,a,l,o)}else if(l=Ak(e),typeof l=="function")for(e=l.call(e),i=0;!(n=e.next()).done;)n=n.value,l=r+tf(n,i++),s+=su(n,t,a,l,o);else if(n==="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 s}function nu(e,t,a){if(e==null)return e;var r=[],o=0;return su(e,r,"","",function(n){return t.call(a,n,o++)}),r}function Nk(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a)},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ut={current:null},iu={transition:null},Fk={ReactCurrentDispatcher:Ut,ReactCurrentBatchConfig:iu,ReactCurrentOwner:of};function Fg(){throw Error("act(...) is not supported in production builds of React.")}be.Children={map:nu,forEach:function(e,t,a){nu(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return nu(e,function(){t++}),t},toArray:function(e){return nu(e,function(t){return t})||[]},only:function(e){if(!nf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};be.Component=ls;be.Fragment=Ik;be.Profiler=kk;be.PureComponent=af;be.StrictMode=bk;be.Suspense=Mk;be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Fk;be.act=Fg;be.cloneElement=function(e,t,a){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Dg({},e.props),o=e.key,n=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(n=t.ref,s=of.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(l in t)Eg.call(t,l)&&!Og.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&i!==void 0?i[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=a;else if(1<l){i=Array(l);for(var u=0;u<l;u++)i[u]=arguments[u+2];r.children=i}return{$$typeof:Ai,type:e.type,key:o,ref:n,props:r,_owner:s}};be.createContext=function(e){return e={$$typeof:Pk,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Rk,_context:e},e.Consumer=e};be.createElement=Ng;be.createFactory=function(e){var t=Ng.bind(null,e);return t.type=e,t};be.createRef=function(){return{current:null}};be.forwardRef=function(e){return{$$typeof:Tk,render:e}};be.isValidElement=nf;be.lazy=function(e){return{$$typeof:_k,_payload:{_status:-1,_result:e},_init:Nk}};be.memo=function(e,t){return{$$typeof:Dk,type:e,compare:t===void 0?null:t}};be.startTransition=function(e){var t=iu.transition;iu.transition={};try{e()}finally{iu.transition=t}};be.unstable_act=Fg;be.useCallback=function(e,t){return Ut.current.useCallback(e,t)};be.useContext=function(e){return Ut.current.useContext(e)};be.useDebugValue=function(){};be.useDeferredValue=function(e){return Ut.current.useDeferredValue(e)};be.useEffect=function(e,t){return Ut.current.useEffect(e,t)};be.useId=function(){return Ut.current.useId()};be.useImperativeHandle=function(e,t,a){return Ut.current.useImperativeHandle(e,t,a)};be.useInsertionEffect=function(e,t){return Ut.current.useInsertionEffect(e,t)};be.useLayoutEffect=function(e,t){return Ut.current.useLayoutEffect(e,t)};be.useMemo=function(e,t){return Ut.current.useMemo(e,t)};be.useReducer=function(e,t,a){return Ut.current.useReducer(e,t,a)};be.useRef=function(e){return Ut.current.useRef(e)};be.useState=function(e){return Ut.current.useState(e)};be.useSyncExternalStore=function(e,t,a){return Ut.current.useSyncExternalStore(e,t,a)};be.useTransition=function(){return Ut.current.useTransition()};be.version="18.3.1"});var te=Rr((OO,Bg)=>{"use strict";Bg.exports=zg()});var Hg=Rr(lu=>{"use strict";var zk=te(),Bk=Symbol.for("react.element"),Uk=Symbol.for("react.fragment"),Hk=Object.prototype.hasOwnProperty,jk=zk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Vk={key:!0,ref:!0,__self:!0,__source:!0};function Ug(e,t,a){var r,o={},n=null,s=null;a!==void 0&&(n=""+a),t.key!==void 0&&(n=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Hk.call(t,r)&&!Vk.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Bk,type:e,key:n,ref:s,props:o,_owner:jk.current}}lu.Fragment=Uk;lu.jsx=Ug;lu.jsxs=Ug});var ke=Rr((FO,jg)=>{"use strict";jg.exports=Hg()});var Gv=Rr(je=>{"use strict";function Pf(e,t){var a=e.length;e.push(t);e:for(;0<a;){var r=a-1>>>1,o=e[r];if(0<Lu(o,t))e[r]=t,e[a]=o,a=r;else break e}}function Aa(e){return e.length===0?null:e[0]}function bu(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var r=0,o=e.length,n=o>>>1;r<n;){var s=2*(r+1)-1,i=e[s],l=s+1,u=e[l];if(0>Lu(i,a))l<o&&0>Lu(u,i)?(e[r]=u,e[l]=a,r=l):(e[r]=i,e[s]=a,r=s);else if(l<o&&0>Lu(u,a))e[r]=u,e[l]=a,r=l;else break e}}return t}function Lu(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Fv=performance,je.unstable_now=function(){return Fv.now()}):(bf=Date,zv=bf.now(),je.unstable_now=function(){return bf.now()-zv});var Fv,bf,zv,nr=[],vo=[],xR=1,ya=null,Mt=3,ku=!1,rn=!1,Ui=!1,Hv=typeof setTimeout=="function"?setTimeout:null,jv=typeof clearTimeout=="function"?clearTimeout:null,Bv=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Tf(e){for(var t=Aa(vo);t!==null;){if(t.callback===null)bu(vo);else if(t.startTime<=e)bu(vo),t.sortIndex=t.expirationTime,Pf(nr,t);else break;t=Aa(vo)}}function Mf(e){if(Ui=!1,Tf(e),!rn)if(Aa(nr)!==null)rn=!0,_f(Df);else{var t=Aa(vo);t!==null&&Af(Mf,t.startTime-e)}}function Df(e,t){rn=!1,Ui&&(Ui=!1,jv(Hi),Hi=-1),ku=!0;var a=Mt;try{for(Tf(t),ya=Aa(nr);ya!==null&&(!(ya.expirationTime>t)||e&&!Wv());){var r=ya.callback;if(typeof r=="function"){ya.callback=null,Mt=ya.priorityLevel;var o=r(ya.expirationTime<=t);t=je.unstable_now(),typeof o=="function"?ya.callback=o:ya===Aa(nr)&&bu(nr),Tf(t)}else bu(nr);ya=Aa(nr)}if(ya!==null)var n=!0;else{var s=Aa(vo);s!==null&&Af(Mf,s.startTime-t),n=!1}return n}finally{ya=null,Mt=a,ku=!1}}var Ru=!1,Iu=null,Hi=-1,Vv=5,qv=-1;function Wv(){return!(je.unstable_now()-qv<Vv)}function kf(){if(Iu!==null){var e=je.unstable_now();qv=e;var t=!0;try{t=Iu(!0,e)}finally{t?Bi():(Ru=!1,Iu=null)}}else Ru=!1}var Bi;typeof Bv=="function"?Bi=function(){Bv(kf)}:typeof MessageChannel<"u"?(Rf=new MessageChannel,Uv=Rf.port2,Rf.port1.onmessage=kf,Bi=function(){Uv.postMessage(null)}):Bi=function(){Hv(kf,0)};var Rf,Uv;function _f(e){Iu=e,Ru||(Ru=!0,Bi())}function Af(e,t){Hi=Hv(function(){e(je.unstable_now())},t)}je.unstable_IdlePriority=5;je.unstable_ImmediatePriority=1;je.unstable_LowPriority=4;je.unstable_NormalPriority=3;je.unstable_Profiling=null;je.unstable_UserBlockingPriority=2;je.unstable_cancelCallback=function(e){e.callback=null};je.unstable_continueExecution=function(){rn||ku||(rn=!0,_f(Df))};je.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"):Vv=0<e?Math.floor(1e3/e):5};je.unstable_getCurrentPriorityLevel=function(){return Mt};je.unstable_getFirstCallbackNode=function(){return Aa(nr)};je.unstable_next=function(e){switch(Mt){case 1:case 2:case 3:var t=3;break;default:t=Mt}var a=Mt;Mt=t;try{return e()}finally{Mt=a}};je.unstable_pauseExecution=function(){};je.unstable_requestPaint=function(){};je.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=Mt;Mt=e;try{return t()}finally{Mt=a}};je.unstable_scheduleCallback=function(e,t,a){var r=je.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?r+a:r):a=r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=a+o,e={id:xR++,callback:t,priorityLevel:e,startTime:a,expirationTime:o,sortIndex:-1},a>r?(e.sortIndex=a,Pf(vo,e),Aa(nr)===null&&e===Aa(vo)&&(Ui?(jv(Hi),Hi=-1):Ui=!0,Af(Mf,a-r))):(e.sortIndex=o,Pf(nr,e),rn||ku||(rn=!0,_f(Df))),e};je.unstable_shouldYield=Wv;je.unstable_wrapCallback=function(e){var t=Mt;return function(){var a=Mt;Mt=t;try{return e.apply(this,arguments)}finally{Mt=a}}}});var Kv=Rr((T2,$v)=>{"use strict";$v.exports=Gv()});var Yw=Rr(ha=>{"use strict";var yR=te(),pa=Kv();function U(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a]);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 ty=new Set,ul={};function vn(e,t){Fs(e,t),Fs(e+"Capture",t)}function Fs(e,t){for(ul[e]=t,e=0;e<t.length;e++)ty.add(t[e])}var Hr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ap=Object.prototype.hasOwnProperty,wR=/^[: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]*$/,Xv={},Zv={};function CR(e){return ap.call(Zv,e)?!0:ap.call(Xv,e)?!1:wR.test(e)?Zv[e]=!0:(Xv[e]=!0,!1)}function SR(e,t,a,r){if(a!==null&&a.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:a!==null?!a.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function LR(e,t,a,r){if(t===null||typeof t>"u"||SR(e,t,a,r))return!0;if(r)return!1;if(a!==null)switch(a.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 qt(e,t,a,r,o,n,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=a,this.propertyName=e,this.type=t,this.sanitizeURL=n,this.removeEmptyString=s}var Lt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lt[e]=new qt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Lt[t]=new qt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lt[e]=new qt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lt[e]=new qt(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){Lt[e]=new qt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Lt[e]=new qt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Lt[e]=new qt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Lt[e]=new qt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Lt[e]=new qt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Kp=/[\-:]([a-z])/g;function Xp(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(Kp,Xp);Lt[t]=new qt(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(Kp,Xp);Lt[t]=new qt(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(Kp,Xp);Lt[t]=new qt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Lt[e]=new qt(e,1,!1,e.toLowerCase(),null,!1,!1)});Lt.xlinkHref=new qt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Lt[e]=new qt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zp(e,t,a,r){var o=Lt.hasOwnProperty(t)?Lt[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(LR(t,a,o,r)&&(a=null),r||o===null?CR(t)&&(a===null?e.removeAttribute(t):e.setAttribute(t,""+a)):o.mustUseProperty?e[o.propertyName]=a===null?o.type===3?!1:"":a:(t=o.attributeName,r=o.attributeNamespace,a===null?e.removeAttribute(t):(o=o.type,a=o===3||o===4&&a===!0?"":""+a,r?e.setAttributeNS(r,t,a):e.setAttribute(t,a))))}var Wr=yR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Pu=Symbol.for("react.element"),ys=Symbol.for("react.portal"),ws=Symbol.for("react.fragment"),Qp=Symbol.for("react.strict_mode"),rp=Symbol.for("react.profiler"),ay=Symbol.for("react.provider"),ry=Symbol.for("react.context"),Yp=Symbol.for("react.forward_ref"),op=Symbol.for("react.suspense"),np=Symbol.for("react.suspense_list"),Jp=Symbol.for("react.memo"),yo=Symbol.for("react.lazy"),oy=Symbol.for("react.offscreen"),Qv=Symbol.iterator;function ji(e){return e===null||typeof e!="object"?null:(e=Qv&&e[Qv]||e["@@iterator"],typeof e=="function"?e:null)}var Qe=Object.assign,Ef;function Zi(e){if(Ef===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Ef=t&&t[1]||""}return`
2
- `+Ef+e}var Of=!1;function Nf(e,t){if(!e||Of)return"";Of=!0;var a=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 r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
1
+ "use strict";(()=>{var w0=Object.create;var _f=Object.defineProperty;var C0=Object.getOwnPropertyDescriptor;var S0=Object.getOwnPropertyNames;var L0=Object.getPrototypeOf,I0=Object.prototype.hasOwnProperty;var Xr=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(a){throw t=0,a}},_o=(e,t)=>{for(var a in t)_f(e,a,{get:t[a],enumerable:!0})},b0=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of S0(t))!I0.call(e,o)&&o!==a&&_f(e,o,{get:()=>t[o],enumerable:!(r=C0(t,o))||r.enumerable});return e};var F=(e,t,a)=>(a=e!=null?w0(L0(e)):{},b0(t||!e||!e.__esModule?_f(a,"default",{value:e,enumerable:!0}):a,e));var Jv=Xr(De=>{"use strict";var il=Symbol.for("react.element"),gR=Symbol.for("react.portal"),vR=Symbol.for("react.fragment"),xR=Symbol.for("react.strict_mode"),yR=Symbol.for("react.profiler"),wR=Symbol.for("react.provider"),CR=Symbol.for("react.context"),SR=Symbol.for("react.forward_ref"),LR=Symbol.for("react.suspense"),IR=Symbol.for("react.memo"),bR=Symbol.for("react.lazy"),jv=Symbol.iterator;function kR(e){return e===null||typeof e!="object"?null:(e=jv&&e[jv]||e["@@iterator"],typeof e=="function"?e:null)}var Wv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Gv=Object.assign,$v={};function As(e,t,a){this.props=e,this.context=t,this.refs=$v,this.updater=a||Wv}As.prototype.isReactComponent={};As.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")};As.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Kv(){}Kv.prototype=As.prototype;function zf(e,t,a){this.props=e,this.context=t,this.refs=$v,this.updater=a||Wv}var Bf=zf.prototype=new Kv;Bf.constructor=zf;Gv(Bf,As.prototype);Bf.isPureReactComponent=!0;var Vv=Array.isArray,Xv=Object.prototype.hasOwnProperty,Uf={current:null},Zv={key:!0,ref:!0,__self:!0,__source:!0};function Qv(e,t,a){var r,o={},n=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(n=""+t.key),t)Xv.call(t,r)&&!Zv.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(i===1)o.children=a;else if(1<i){for(var l=Array(i),u=0;u<i;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)o[r]===void 0&&(o[r]=i[r]);return{$$typeof:il,type:e,key:n,ref:s,props:o,_owner:Uf.current}}function RR(e,t){return{$$typeof:il,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Hf(e){return typeof e=="object"&&e!==null&&e.$$typeof===il}function PR(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var qv=/\/+/g;function Ff(e,t){return typeof e=="object"&&e!==null&&e.key!=null?PR(""+e.key):t.toString(36)}function Hu(e,t,a,r,o){var n=typeof e;(n==="undefined"||n==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(n){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case il:case gR:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Ff(s,0):r,Vv(o)?(a="",e!=null&&(a=e.replace(qv,"$&/")+"/"),Hu(o,t,a,"",function(u){return u})):o!=null&&(Hf(o)&&(o=RR(o,a+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(qv,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Vv(e))for(var i=0;i<e.length;i++){n=e[i];var l=r+Ff(n,i);s+=Hu(n,t,a,l,o)}else if(l=kR(e),typeof l=="function")for(e=l.call(e),i=0;!(n=e.next()).done;)n=n.value,l=r+Ff(n,i++),s+=Hu(n,t,a,l,o);else if(n==="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 s}function Uu(e,t,a){if(e==null)return e;var r=[],o=0;return Hu(e,r,"","",function(n){return t.call(a,n,o++)}),r}function DR(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a)},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var oa={current:null},ju={transition:null},TR={ReactCurrentDispatcher:oa,ReactCurrentBatchConfig:ju,ReactCurrentOwner:Uf};function Yv(){throw Error("act(...) is not supported in production builds of React.")}De.Children={map:Uu,forEach:function(e,t,a){Uu(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return Uu(e,function(){t++}),t},toArray:function(e){return Uu(e,function(t){return t})||[]},only:function(e){if(!Hf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};De.Component=As;De.Fragment=vR;De.Profiler=yR;De.PureComponent=zf;De.StrictMode=xR;De.Suspense=LR;De.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=TR;De.act=Yv;De.cloneElement=function(e,t,a){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Gv({},e.props),o=e.key,n=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(n=t.ref,s=Uf.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(l in t)Xv.call(t,l)&&!Zv.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&i!==void 0?i[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=a;else if(1<l){i=Array(l);for(var u=0;u<l;u++)i[u]=arguments[u+2];r.children=i}return{$$typeof:il,type:e.type,key:o,ref:n,props:r,_owner:s}};De.createContext=function(e){return e={$$typeof:CR,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:wR,_context:e},e.Consumer=e};De.createElement=Qv;De.createFactory=function(e){var t=Qv.bind(null,e);return t.type=e,t};De.createRef=function(){return{current:null}};De.forwardRef=function(e){return{$$typeof:SR,render:e}};De.isValidElement=Hf;De.lazy=function(e){return{$$typeof:bR,_payload:{_status:-1,_result:e},_init:DR}};De.memo=function(e,t){return{$$typeof:IR,type:e,compare:t===void 0?null:t}};De.startTransition=function(e){var t=ju.transition;ju.transition={};try{e()}finally{ju.transition=t}};De.unstable_act=Yv;De.useCallback=function(e,t){return oa.current.useCallback(e,t)};De.useContext=function(e){return oa.current.useContext(e)};De.useDebugValue=function(){};De.useDeferredValue=function(e){return oa.current.useDeferredValue(e)};De.useEffect=function(e,t){return oa.current.useEffect(e,t)};De.useId=function(){return oa.current.useId()};De.useImperativeHandle=function(e,t,a){return oa.current.useImperativeHandle(e,t,a)};De.useInsertionEffect=function(e,t){return oa.current.useInsertionEffect(e,t)};De.useLayoutEffect=function(e,t){return oa.current.useLayoutEffect(e,t)};De.useMemo=function(e,t){return oa.current.useMemo(e,t)};De.useReducer=function(e,t,a){return oa.current.useReducer(e,t,a)};De.useRef=function(e){return oa.current.useRef(e)};De.useState=function(e){return oa.current.useState(e)};De.useSyncExternalStore=function(e,t,a){return oa.current.useSyncExternalStore(e,t,a)};De.useTransition=function(){return oa.current.useTransition()};De.version="18.3.1"});var ee=Xr((GN,ex)=>{"use strict";ex.exports=Jv()});var ix=Xr(Gu=>{"use strict";var ZR=ee(),QR=Symbol.for("react.element"),YR=Symbol.for("react.fragment"),JR=Object.prototype.hasOwnProperty,eP=ZR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tP={key:!0,ref:!0,__self:!0,__source:!0};function sx(e,t,a){var r,o={},n=null,s=null;a!==void 0&&(n=""+a),t.key!==void 0&&(n=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)JR.call(t,r)&&!tP.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:QR,type:e,key:n,ref:s,props:o,_owner:eP.current}}Gu.Fragment=YR;Gu.jsx=sx;Gu.jsxs=sx});var fe=Xr((pF,lx)=>{"use strict";lx.exports=ix()});var xx=Xr(Ke=>{"use strict";function Gf(e,t){var a=e.length;e.push(t);e:for(;0<a;){var r=a-1>>>1,o=e[r];if(0<$u(o,t))e[r]=t,e[a]=o,a=r;else break e}}function ar(e){return e.length===0?null:e[0]}function Xu(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var r=0,o=e.length,n=o>>>1;r<n;){var s=2*(r+1)-1,i=e[s],l=s+1,u=e[l];if(0>$u(i,a))l<o&&0>$u(u,i)?(e[r]=u,e[l]=a,r=l):(e[r]=i,e[s]=a,r=s);else if(l<o&&0>$u(u,a))e[r]=u,e[l]=a,r=l;else break e}}return t}function $u(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(ux=performance,Ke.unstable_now=function(){return ux.now()}):(Vf=Date,dx=Vf.now(),Ke.unstable_now=function(){return Vf.now()-dx});var ux,Vf,dx,Pr=[],No=[],aP=1,Ua=null,Gt=3,Zu=!1,In=!1,dl=!1,px=typeof setTimeout=="function"?setTimeout:null,mx=typeof clearTimeout=="function"?clearTimeout:null,cx=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $f(e){for(var t=ar(No);t!==null;){if(t.callback===null)Xu(No);else if(t.startTime<=e)Xu(No),t.sortIndex=t.expirationTime,Gf(Pr,t);else break;t=ar(No)}}function Kf(e){if(dl=!1,$f(e),!In)if(ar(Pr)!==null)In=!0,Zf(Xf);else{var t=ar(No);t!==null&&Qf(Kf,t.startTime-e)}}function Xf(e,t){In=!1,dl&&(dl=!1,mx(cl),cl=-1),Zu=!0;var a=Gt;try{for($f(t),Ua=ar(Pr);Ua!==null&&(!(Ua.expirationTime>t)||e&&!vx());){var r=Ua.callback;if(typeof r=="function"){Ua.callback=null,Gt=Ua.priorityLevel;var o=r(Ua.expirationTime<=t);t=Ke.unstable_now(),typeof o=="function"?Ua.callback=o:Ua===ar(Pr)&&Xu(Pr),$f(t)}else Xu(Pr);Ua=ar(Pr)}if(Ua!==null)var n=!0;else{var s=ar(No);s!==null&&Qf(Kf,s.startTime-t),n=!1}return n}finally{Ua=null,Gt=a,Zu=!1}}var Qu=!1,Ku=null,cl=-1,hx=5,gx=-1;function vx(){return!(Ke.unstable_now()-gx<hx)}function qf(){if(Ku!==null){var e=Ke.unstable_now();gx=e;var t=!0;try{t=Ku(!0,e)}finally{t?ul():(Qu=!1,Ku=null)}}else Qu=!1}var ul;typeof cx=="function"?ul=function(){cx(qf)}:typeof MessageChannel<"u"?(Wf=new MessageChannel,fx=Wf.port2,Wf.port1.onmessage=qf,ul=function(){fx.postMessage(null)}):ul=function(){px(qf,0)};var Wf,fx;function Zf(e){Ku=e,Qu||(Qu=!0,ul())}function Qf(e,t){cl=px(function(){e(Ke.unstable_now())},t)}Ke.unstable_IdlePriority=5;Ke.unstable_ImmediatePriority=1;Ke.unstable_LowPriority=4;Ke.unstable_NormalPriority=3;Ke.unstable_Profiling=null;Ke.unstable_UserBlockingPriority=2;Ke.unstable_cancelCallback=function(e){e.callback=null};Ke.unstable_continueExecution=function(){In||Zu||(In=!0,Zf(Xf))};Ke.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"):hx=0<e?Math.floor(1e3/e):5};Ke.unstable_getCurrentPriorityLevel=function(){return Gt};Ke.unstable_getFirstCallbackNode=function(){return ar(Pr)};Ke.unstable_next=function(e){switch(Gt){case 1:case 2:case 3:var t=3;break;default:t=Gt}var a=Gt;Gt=t;try{return e()}finally{Gt=a}};Ke.unstable_pauseExecution=function(){};Ke.unstable_requestPaint=function(){};Ke.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=Gt;Gt=e;try{return t()}finally{Gt=a}};Ke.unstable_scheduleCallback=function(e,t,a){var r=Ke.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?r+a:r):a=r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=a+o,e={id:aP++,callback:t,priorityLevel:e,startTime:a,expirationTime:o,sortIndex:-1},a>r?(e.sortIndex=a,Gf(No,e),ar(Pr)===null&&e===ar(No)&&(dl?(mx(cl),cl=-1):dl=!0,Qf(Kf,a-r))):(e.sortIndex=o,Gf(Pr,e),In||Zu||(In=!0,Zf(Xf))),e};Ke.unstable_shouldYield=vx;Ke.unstable_wrapCallback=function(e){var t=Gt;return function(){var a=Gt;Gt=t;try{return e.apply(this,arguments)}finally{Gt=a}}}});var wx=Xr((hF,yx)=>{"use strict";yx.exports=xx()});var IC=Xr(Fa=>{"use strict";var rP=ee(),Oa=wx();function U(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a]);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 Ry=new Set,Al={};function Fn(e,t){si(e,t),si(e+"Capture",t)}function si(e,t){for(Al[e]=t,e=0;e<t.length;e++)Ry.add(t[e])}var uo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wp=Object.prototype.hasOwnProperty,oP=/^[: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]*$/,Cx={},Sx={};function nP(e){return wp.call(Sx,e)?!0:wp.call(Cx,e)?!1:oP.test(e)?Sx[e]=!0:(Cx[e]=!0,!1)}function sP(e,t,a,r){if(a!==null&&a.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:a!==null?!a.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function iP(e,t,a,r){if(t===null||typeof t>"u"||sP(e,t,a,r))return!0;if(r)return!1;if(a!==null)switch(a.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 ia(e,t,a,r,o,n,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=a,this.propertyName=e,this.type=t,this.sanitizeURL=n,this.removeEmptyString=s}var Bt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Bt[e]=new ia(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Bt[t]=new ia(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Bt[e]=new ia(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Bt[e]=new ia(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){Bt[e]=new ia(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Bt[e]=new ia(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Bt[e]=new ia(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Bt[e]=new ia(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Bt[e]=new ia(e,5,!1,e.toLowerCase(),null,!1,!1)});var fm=/[\-:]([a-z])/g;function pm(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(fm,pm);Bt[t]=new ia(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(fm,pm);Bt[t]=new ia(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(fm,pm);Bt[t]=new ia(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Bt[e]=new ia(e,1,!1,e.toLowerCase(),null,!1,!1)});Bt.xlinkHref=new ia("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Bt[e]=new ia(e,1,!1,e.toLowerCase(),null,!0,!0)});function mm(e,t,a,r){var o=Bt.hasOwnProperty(t)?Bt[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(iP(t,a,o,r)&&(a=null),r||o===null?nP(t)&&(a===null?e.removeAttribute(t):e.setAttribute(t,""+a)):o.mustUseProperty?e[o.propertyName]=a===null?o.type===3?!1:"":a:(t=o.attributeName,r=o.attributeNamespace,a===null?e.removeAttribute(t):(o=o.type,a=o===3||o===4&&a===!0?"":""+a,r?e.setAttributeNS(r,t,a):e.setAttribute(t,a))))}var mo=rP.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Yu=Symbol.for("react.element"),js=Symbol.for("react.portal"),Vs=Symbol.for("react.fragment"),hm=Symbol.for("react.strict_mode"),Cp=Symbol.for("react.profiler"),Py=Symbol.for("react.provider"),Dy=Symbol.for("react.context"),gm=Symbol.for("react.forward_ref"),Sp=Symbol.for("react.suspense"),Lp=Symbol.for("react.suspense_list"),vm=Symbol.for("react.memo"),zo=Symbol.for("react.lazy"),Ty=Symbol.for("react.offscreen"),Lx=Symbol.iterator;function fl(e){return e===null||typeof e!="object"?null:(e=Lx&&e[Lx]||e["@@iterator"],typeof e=="function"?e:null)}var rt=Object.assign,Yf;function wl(e){if(Yf===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Yf=t&&t[1]||""}return`
2
+ `+Yf+e}var Jf=!1;function ep(e,t){if(!e||Jf)return"";Jf=!0;var a=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 r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
3
3
  `),n=r.stack.split(`
4
4
  `),s=o.length-1,i=n.length-1;1<=s&&0<=i&&o[s]!==n[i];)i--;for(;1<=s&&0<=i;s--,i--)if(o[s]!==n[i]){if(s!==1||i!==1)do if(s--,i--,0>i||o[s]!==n[i]){var l=`
5
- `+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=i);break}}}finally{Of=!1,Error.prepareStackTrace=a}return(e=e?e.displayName||e.name:"")?Zi(e):""}function IR(e){switch(e.tag){case 5:return Zi(e.type);case 16:return Zi("Lazy");case 13:return Zi("Suspense");case 19:return Zi("SuspenseList");case 0:case 2:case 15:return e=Nf(e.type,!1),e;case 11:return e=Nf(e.type.render,!1),e;case 1:return e=Nf(e.type,!0),e;default:return""}}function sp(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 ws:return"Fragment";case ys:return"Portal";case rp:return"Profiler";case Qp:return"StrictMode";case op:return"Suspense";case np:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ry:return(e.displayName||"Context")+".Consumer";case ay:return(e._context.displayName||"Context")+".Provider";case Yp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Jp:return t=e.displayName||null,t!==null?t:sp(e.type)||"Memo";case yo:t=e._payload,e=e._init;try{return sp(e(t))}catch{}}return null}function bR(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 sp(t);case 8:return t===Qp?"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 Ao(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ny(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kR(e){var t=ny(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,n=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,n.call(this,s)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Tu(e){e._valueTracker||(e._valueTracker=kR(e))}function sy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=ny(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function rd(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 ip(e,t){var a=t.checked;return Qe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??e._wrapperState.initialChecked})}function Yv(e,t){var a=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;a=Ao(t.value!=null?t.value:a),e._wrapperState={initialChecked:r,initialValue:a,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function iy(e,t){t=t.checked,t!=null&&Zp(e,"checked",t,!1)}function lp(e,t){iy(e,t);var a=Ao(t.value),r=t.type;if(a!=null)r==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+a):e.value!==""+a&&(e.value=""+a);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?up(e,t.type,a):t.hasOwnProperty("defaultValue")&&up(e,t.type,Ao(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Jv(e,t,a){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,a||t===e.value||(e.value=t),e.defaultValue=t}a=e.name,a!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,a!==""&&(e.name=a)}function up(e,t,a){(t!=="number"||rd(e.ownerDocument)!==e)&&(a==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+a&&(e.defaultValue=""+a))}var Qi=Array.isArray;function Ds(e,t,a,r){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&r&&(e[a].defaultSelected=!0)}else{for(a=""+Ao(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function dp(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(U(91));return Qe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ex(e,t){var a=t.value;if(a==null){if(a=t.children,t=t.defaultValue,a!=null){if(t!=null)throw Error(U(92));if(Qi(a)){if(1<a.length)throw Error(U(93));a=a[0]}t=a}t==null&&(t=""),a=t}e._wrapperState={initialValue:Ao(a)}}function ly(e,t){var a=Ao(t.value),r=Ao(t.defaultValue);a!=null&&(a=""+a,a!==e.value&&(e.value=a),t.defaultValue==null&&e.defaultValue!==a&&(e.defaultValue=a)),r!=null&&(e.defaultValue=""+r)}function tx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function uy(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 cp(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?uy(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Mu,dy=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,a,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,a,r,o)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Mu=Mu||document.createElement("div"),Mu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Mu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function dl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var el={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},RR=["Webkit","ms","Moz","O"];Object.keys(el).forEach(function(e){RR.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),el[t]=el[e]})});function cy(e,t,a){return t==null||typeof t=="boolean"||t===""?"":a||typeof t!="number"||t===0||el.hasOwnProperty(e)&&el[e]?(""+t).trim():t+"px"}function fy(e,t){e=e.style;for(var a in t)if(t.hasOwnProperty(a)){var r=a.indexOf("--")===0,o=cy(a,t[a],r);a==="float"&&(a="cssFloat"),r?e.setProperty(a,o):e[a]=o}}var PR=Qe({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 fp(e,t){if(t){if(PR[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function pp(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 mp=null;function em(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hp=null,_s=null,As=null;function ax(e){if(e=Pl(e)){if(typeof hp!="function")throw Error(U(280));var t=e.stateNode;t&&(t=Dd(t),hp(e.stateNode,e.type,t))}}function py(e){_s?As?As.push(e):As=[e]:_s=e}function my(){if(_s){var e=_s,t=As;if(As=_s=null,ax(e),t)for(e=0;e<t.length;e++)ax(t[e])}}function hy(e,t){return e(t)}function gy(){}var Ff=!1;function vy(e,t,a){if(Ff)return e(t,a);Ff=!0;try{return hy(e,t,a)}finally{Ff=!1,(_s!==null||As!==null)&&(gy(),my())}}function cl(e,t){var a=e.stateNode;if(a===null)return null;var r=Dd(a);if(r===null)return null;a=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(U(231,t,typeof a));return a}var gp=!1;if(Hr)try{vs={},Object.defineProperty(vs,"passive",{get:function(){gp=!0}}),window.addEventListener("test",vs,vs),window.removeEventListener("test",vs,vs)}catch{gp=!1}var vs;function TR(e,t,a,r,o,n,s,i,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(a,u)}catch(d){this.onError(d)}}var tl=!1,od=null,nd=!1,vp=null,MR={onError:function(e){tl=!0,od=e}};function DR(e,t,a,r,o,n,s,i,l){tl=!1,od=null,TR.apply(MR,arguments)}function _R(e,t,a,r,o,n,s,i,l){if(DR.apply(this,arguments),tl){if(tl){var u=od;tl=!1,od=null}else throw Error(U(198));nd||(nd=!0,vp=u)}}function xn(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function xy(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 rx(e){if(xn(e)!==e)throw Error(U(188))}function AR(e){var t=e.alternate;if(!t){if(t=xn(e),t===null)throw Error(U(188));return t!==e?null:e}for(var a=e,r=t;;){var o=a.return;if(o===null)break;var n=o.alternate;if(n===null){if(r=o.return,r!==null){a=r;continue}break}if(o.child===n.child){for(n=o.child;n;){if(n===a)return rx(o),e;if(n===r)return rx(o),t;n=n.sibling}throw Error(U(188))}if(a.return!==r.return)a=o,r=n;else{for(var s=!1,i=o.child;i;){if(i===a){s=!0,a=o,r=n;break}if(i===r){s=!0,r=o,a=n;break}i=i.sibling}if(!s){for(i=n.child;i;){if(i===a){s=!0,a=n,r=o;break}if(i===r){s=!0,r=n,a=o;break}i=i.sibling}if(!s)throw Error(U(189))}}if(a.alternate!==r)throw Error(U(190))}if(a.tag!==3)throw Error(U(188));return a.stateNode.current===a?e:t}function yy(e){return e=AR(e),e!==null?wy(e):null}function wy(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=wy(e);if(t!==null)return t;e=e.sibling}return null}var Cy=pa.unstable_scheduleCallback,ox=pa.unstable_cancelCallback,ER=pa.unstable_shouldYield,OR=pa.unstable_requestPaint,tt=pa.unstable_now,NR=pa.unstable_getCurrentPriorityLevel,tm=pa.unstable_ImmediatePriority,Sy=pa.unstable_UserBlockingPriority,sd=pa.unstable_NormalPriority,FR=pa.unstable_LowPriority,Ly=pa.unstable_IdlePriority,Rd=null,ur=null;function zR(e){if(ur&&typeof ur.onCommitFiberRoot=="function")try{ur.onCommitFiberRoot(Rd,e,void 0,(e.current.flags&128)===128)}catch{}}var za=Math.clz32?Math.clz32:HR,BR=Math.log,UR=Math.LN2;function HR(e){return e>>>=0,e===0?32:31-(BR(e)/UR|0)|0}var Du=64,_u=4194304;function Yi(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 id(e,t){var a=e.pendingLanes;if(a===0)return 0;var r=0,o=e.suspendedLanes,n=e.pingedLanes,s=a&268435455;if(s!==0){var i=s&~o;i!==0?r=Yi(i):(n&=s,n!==0&&(r=Yi(n)))}else s=a&~o,s!==0?r=Yi(s):n!==0&&(r=Yi(n));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,n=t&-t,o>=n||o===16&&(n&4194240)!==0))return t;if((r&4)!==0&&(r|=a&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)a=31-za(t),o=1<<a,r|=e[a],t&=~o;return r}function jR(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 VR(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,n=e.pendingLanes;0<n;){var s=31-za(n),i=1<<s,l=o[s];l===-1?((i&a)===0||(i&r)!==0)&&(o[s]=jR(i,t)):l<=t&&(e.expiredLanes|=i),n&=~i}}function xp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Iy(){var e=Du;return Du<<=1,(Du&4194240)===0&&(Du=64),e}function zf(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function kl(e,t,a){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-za(t),e[t]=a}function qR(e,t){var a=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 r=e.eventTimes;for(e=e.expirationTimes;0<a;){var o=31-za(a),n=1<<o;t[o]=0,r[o]=-1,e[o]=-1,a&=~n}}function am(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-za(a),o=1<<r;o&t|e[r]&t&&(e[r]|=t),a&=~o}}var ze=0;function by(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var ky,rm,Ry,Py,Ty,yp=!1,Au=[],bo=null,ko=null,Ro=null,fl=new Map,pl=new Map,Co=[],WR="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 nx(e,t){switch(e){case"focusin":case"focusout":bo=null;break;case"dragenter":case"dragleave":ko=null;break;case"mouseover":case"mouseout":Ro=null;break;case"pointerover":case"pointerout":fl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pl.delete(t.pointerId)}}function Vi(e,t,a,r,o,n){return e===null||e.nativeEvent!==n?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:n,targetContainers:[o]},t!==null&&(t=Pl(t),t!==null&&rm(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function GR(e,t,a,r,o){switch(t){case"focusin":return bo=Vi(bo,e,t,a,r,o),!0;case"dragenter":return ko=Vi(ko,e,t,a,r,o),!0;case"mouseover":return Ro=Vi(Ro,e,t,a,r,o),!0;case"pointerover":var n=o.pointerId;return fl.set(n,Vi(fl.get(n)||null,e,t,a,r,o)),!0;case"gotpointercapture":return n=o.pointerId,pl.set(n,Vi(pl.get(n)||null,e,t,a,r,o)),!0}return!1}function My(e){var t=sn(e.target);if(t!==null){var a=xn(t);if(a!==null){if(t=a.tag,t===13){if(t=xy(a),t!==null){e.blockedOn=t,Ty(e.priority,function(){Ry(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function $u(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=wp(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);mp=r,a.target.dispatchEvent(r),mp=null}else return t=Pl(a),t!==null&&rm(t),e.blockedOn=a,!1;t.shift()}return!0}function sx(e,t,a){$u(e)&&a.delete(t)}function $R(){yp=!1,bo!==null&&$u(bo)&&(bo=null),ko!==null&&$u(ko)&&(ko=null),Ro!==null&&$u(Ro)&&(Ro=null),fl.forEach(sx),pl.forEach(sx)}function qi(e,t){e.blockedOn===t&&(e.blockedOn=null,yp||(yp=!0,pa.unstable_scheduleCallback(pa.unstable_NormalPriority,$R)))}function ml(e){function t(o){return qi(o,e)}if(0<Au.length){qi(Au[0],e);for(var a=1;a<Au.length;a++){var r=Au[a];r.blockedOn===e&&(r.blockedOn=null)}}for(bo!==null&&qi(bo,e),ko!==null&&qi(ko,e),Ro!==null&&qi(Ro,e),fl.forEach(t),pl.forEach(t),a=0;a<Co.length;a++)r=Co[a],r.blockedOn===e&&(r.blockedOn=null);for(;0<Co.length&&(a=Co[0],a.blockedOn===null);)My(a),a.blockedOn===null&&Co.shift()}var Es=Wr.ReactCurrentBatchConfig,ld=!0;function KR(e,t,a,r){var o=ze,n=Es.transition;Es.transition=null;try{ze=1,om(e,t,a,r)}finally{ze=o,Es.transition=n}}function XR(e,t,a,r){var o=ze,n=Es.transition;Es.transition=null;try{ze=4,om(e,t,a,r)}finally{ze=o,Es.transition=n}}function om(e,t,a,r){if(ld){var o=wp(e,t,a,r);if(o===null)Wf(e,t,r,ud,a),nx(e,r);else if(GR(o,e,t,a,r))r.stopPropagation();else if(nx(e,r),t&4&&-1<WR.indexOf(e)){for(;o!==null;){var n=Pl(o);if(n!==null&&ky(n),n=wp(e,t,a,r),n===null&&Wf(e,t,r,ud,a),n===o)break;o=n}o!==null&&r.stopPropagation()}else Wf(e,t,r,null,a)}}var ud=null;function wp(e,t,a,r){if(ud=null,e=em(r),e=sn(e),e!==null)if(t=xn(e),t===null)e=null;else if(a=t.tag,a===13){if(e=xy(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ud=e,null}function Dy(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(NR()){case tm:return 1;case Sy:return 4;case sd:case FR:return 16;case Ly:return 536870912;default:return 16}default:return 16}}var Lo=null,nm=null,Ku=null;function _y(){if(Ku)return Ku;var e,t=nm,a=t.length,r,o="value"in Lo?Lo.value:Lo.textContent,n=o.length;for(e=0;e<a&&t[e]===o[e];e++);var s=a-e;for(r=1;r<=s&&t[a-r]===o[n-r];r++);return Ku=o.slice(e,1<r?1-r:void 0)}function Xu(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 Eu(){return!0}function ix(){return!1}function ma(e){function t(a,r,o,n,s){this._reactName=a,this._targetInst=o,this.type=r,this.nativeEvent=n,this.target=s,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(a=e[i],this[i]=a?a(n):n[i]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Eu:ix,this.isPropagationStopped=ix,this}return Qe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Eu)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Eu)},persist:function(){},isPersistent:Eu}),t}var qs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sm=ma(qs),Rl=Qe({},qs,{view:0,detail:0}),ZR=ma(Rl),Bf,Uf,Wi,Pd=Qe({},Rl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:im,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!==Wi&&(Wi&&e.type==="mousemove"?(Bf=e.screenX-Wi.screenX,Uf=e.screenY-Wi.screenY):Uf=Bf=0,Wi=e),Bf)},movementY:function(e){return"movementY"in e?e.movementY:Uf}}),lx=ma(Pd),QR=Qe({},Pd,{dataTransfer:0}),YR=ma(QR),JR=Qe({},Rl,{relatedTarget:0}),Hf=ma(JR),eP=Qe({},qs,{animationName:0,elapsedTime:0,pseudoElement:0}),tP=ma(eP),aP=Qe({},qs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rP=ma(aP),oP=Qe({},qs,{data:0}),ux=ma(oP),nP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sP={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"},iP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lP(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=iP[e])?!!t[e]:!1}function im(){return lP}var uP=Qe({},Rl,{key:function(e){if(e.key){var t=nP[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sP[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:im,charCode:function(e){return e.type==="keypress"?Xu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),dP=ma(uP),cP=Qe({},Pd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dx=ma(cP),fP=Qe({},Rl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:im}),pP=ma(fP),mP=Qe({},qs,{propertyName:0,elapsedTime:0,pseudoElement:0}),hP=ma(mP),gP=Qe({},Pd,{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}),vP=ma(gP),xP=[9,13,27,32],lm=Hr&&"CompositionEvent"in window,al=null;Hr&&"documentMode"in document&&(al=document.documentMode);var yP=Hr&&"TextEvent"in window&&!al,Ay=Hr&&(!lm||al&&8<al&&11>=al),cx=" ",fx=!1;function Ey(e,t){switch(e){case"keyup":return xP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cs=!1;function wP(e,t){switch(e){case"compositionend":return Oy(t);case"keypress":return t.which!==32?null:(fx=!0,cx);case"textInput":return e=t.data,e===cx&&fx?null:e;default:return null}}function CP(e,t){if(Cs)return e==="compositionend"||!lm&&Ey(e,t)?(e=_y(),Ku=nm=Lo=null,Cs=!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 Ay&&t.locale!=="ko"?null:t.data;default:return null}}var SP={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 px(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!SP[e.type]:t==="textarea"}function Ny(e,t,a,r){py(r),t=dd(t,"onChange"),0<t.length&&(a=new sm("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var rl=null,hl=null;function LP(e){$y(e,0)}function Td(e){var t=Is(e);if(sy(t))return e}function IP(e,t){if(e==="change")return t}var Fy=!1;Hr&&(Hr?(Nu="oninput"in document,Nu||(jf=document.createElement("div"),jf.setAttribute("oninput","return;"),Nu=typeof jf.oninput=="function"),Ou=Nu):Ou=!1,Fy=Ou&&(!document.documentMode||9<document.documentMode));var Ou,Nu,jf;function mx(){rl&&(rl.detachEvent("onpropertychange",zy),hl=rl=null)}function zy(e){if(e.propertyName==="value"&&Td(hl)){var t=[];Ny(t,hl,e,em(e)),vy(LP,t)}}function bP(e,t,a){e==="focusin"?(mx(),rl=t,hl=a,rl.attachEvent("onpropertychange",zy)):e==="focusout"&&mx()}function kP(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Td(hl)}function RP(e,t){if(e==="click")return Td(t)}function PP(e,t){if(e==="input"||e==="change")return Td(t)}function TP(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ua=typeof Object.is=="function"?Object.is:TP;function gl(e,t){if(Ua(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var o=a[r];if(!ap.call(t,o)||!Ua(e[o],t[o]))return!1}return!0}function hx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gx(e,t){var a=hx(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=hx(a)}}function By(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?By(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Uy(){for(var e=window,t=rd();t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=rd(e.document)}return t}function um(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 MP(e){var t=Uy(),a=e.focusedElem,r=e.selectionRange;if(t!==a&&a&&a.ownerDocument&&By(a.ownerDocument.documentElement,a)){if(r!==null&&um(a)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in a)a.selectionStart=t,a.selectionEnd=Math.min(e,a.value.length);else if(e=(t=a.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=a.textContent.length,n=Math.min(r.start,o);r=r.end===void 0?n:Math.min(r.end,o),!e.extend&&n>r&&(o=r,r=n,n=o),o=gx(a,n);var s=gx(a,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),n>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=a;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<t.length;a++)e=t[a],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var DP=Hr&&"documentMode"in document&&11>=document.documentMode,Ss=null,Cp=null,ol=null,Sp=!1;function vx(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Sp||Ss==null||Ss!==rd(r)||(r=Ss,"selectionStart"in r&&um(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ol&&gl(ol,r)||(ol=r,r=dd(Cp,"onSelect"),0<r.length&&(t=new sm("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=Ss)))}function Fu(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Ls={animationend:Fu("Animation","AnimationEnd"),animationiteration:Fu("Animation","AnimationIteration"),animationstart:Fu("Animation","AnimationStart"),transitionend:Fu("Transition","TransitionEnd")},Vf={},Hy={};Hr&&(Hy=document.createElement("div").style,"AnimationEvent"in window||(delete Ls.animationend.animation,delete Ls.animationiteration.animation,delete Ls.animationstart.animation),"TransitionEvent"in window||delete Ls.transitionend.transition);function Md(e){if(Vf[e])return Vf[e];if(!Ls[e])return e;var t=Ls[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Hy)return Vf[e]=t[a];return e}var jy=Md("animationend"),Vy=Md("animationiteration"),qy=Md("animationstart"),Wy=Md("transitionend"),Gy=new Map,xx="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 Oo(e,t){Gy.set(e,t),vn(t,[e])}for(zu=0;zu<xx.length;zu++)Bu=xx[zu],yx=Bu.toLowerCase(),wx=Bu[0].toUpperCase()+Bu.slice(1),Oo(yx,"on"+wx);var Bu,yx,wx,zu;Oo(jy,"onAnimationEnd");Oo(Vy,"onAnimationIteration");Oo(qy,"onAnimationStart");Oo("dblclick","onDoubleClick");Oo("focusin","onFocus");Oo("focusout","onBlur");Oo(Wy,"onTransitionEnd");Fs("onMouseEnter",["mouseout","mouseover"]);Fs("onMouseLeave",["mouseout","mouseover"]);Fs("onPointerEnter",["pointerout","pointerover"]);Fs("onPointerLeave",["pointerout","pointerover"]);vn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));vn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));vn("onBeforeInput",["compositionend","keypress","textInput","paste"]);vn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));vn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));vn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ji="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(" "),_P=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ji));function Cx(e,t,a){var r=e.type||"unknown-event";e.currentTarget=a,_R(r,t,void 0,e),e.currentTarget=null}function $y(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],o=r.event;r=r.listeners;e:{var n=void 0;if(t)for(var s=r.length-1;0<=s;s--){var i=r[s],l=i.instance,u=i.currentTarget;if(i=i.listener,l!==n&&o.isPropagationStopped())break e;Cx(o,i,u),n=l}else for(s=0;s<r.length;s++){if(i=r[s],l=i.instance,u=i.currentTarget,i=i.listener,l!==n&&o.isPropagationStopped())break e;Cx(o,i,u),n=l}}}if(nd)throw e=vp,nd=!1,vp=null,e}function We(e,t){var a=t[Rp];a===void 0&&(a=t[Rp]=new Set);var r=e+"__bubble";a.has(r)||(Ky(t,e,2,!1),a.add(r))}function qf(e,t,a){var r=0;t&&(r|=4),Ky(a,e,r,t)}var Uu="_reactListening"+Math.random().toString(36).slice(2);function vl(e){if(!e[Uu]){e[Uu]=!0,ty.forEach(function(a){a!=="selectionchange"&&(_P.has(a)||qf(a,!1,e),qf(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Uu]||(t[Uu]=!0,qf("selectionchange",!1,t))}}function Ky(e,t,a,r){switch(Dy(t)){case 1:var o=KR;break;case 4:o=XR;break;default:o=om}a=o.bind(null,t,a,e),o=void 0,!gp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function Wf(e,t,a,r,o){var n=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var i=r.stateNode.containerInfo;if(i===o||i.nodeType===8&&i.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;i!==null;){if(s=sn(i),s===null)return;if(l=s.tag,l===5||l===6){r=n=s;continue e}i=i.parentNode}}r=r.return}vy(function(){var u=n,d=em(a),c=[];e:{var f=Gy.get(e);if(f!==void 0){var h=sm,v=e;switch(e){case"keypress":if(Xu(a)===0)break e;case"keydown":case"keyup":h=dP;break;case"focusin":v="focus",h=Hf;break;case"focusout":v="blur",h=Hf;break;case"beforeblur":case"afterblur":h=Hf;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=lx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=YR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=pP;break;case jy:case Vy:case qy:h=tP;break;case Wy:h=hP;break;case"scroll":h=ZR;break;case"wheel":h=vP;break;case"copy":case"cut":case"paste":h=rP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=dx}var x=(t&4)!==0,w=!x&&e==="scroll",p=x?f!==null?f+"Capture":null:f;x=[];for(var m=u,g;m!==null;){g=m;var y=g.stateNode;if(g.tag===5&&y!==null&&(g=y,p!==null&&(y=cl(m,p),y!=null&&x.push(xl(m,y,g)))),w)break;m=m.return}0<x.length&&(f=new h(f,v,null,a,d),c.push({event:f,listeners:x}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&a!==mp&&(v=a.relatedTarget||a.fromElement)&&(sn(v)||v[jr]))break e;if((h||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,h?(v=a.relatedTarget||a.toElement,h=u,v=v?sn(v):null,v!==null&&(w=xn(v),v!==w||v.tag!==5&&v.tag!==6)&&(v=null)):(h=null,v=u),h!==v)){if(x=lx,y="onMouseLeave",p="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(x=dx,y="onPointerLeave",p="onPointerEnter",m="pointer"),w=h==null?f:Is(h),g=v==null?f:Is(v),f=new x(y,m+"leave",h,a,d),f.target=w,f.relatedTarget=g,y=null,sn(d)===u&&(x=new x(p,m+"enter",v,a,d),x.target=g,x.relatedTarget=w,y=x),w=y,h&&v)t:{for(x=h,p=v,m=0,g=x;g;g=xs(g))m++;for(g=0,y=p;y;y=xs(y))g++;for(;0<m-g;)x=xs(x),m--;for(;0<g-m;)p=xs(p),g--;for(;m--;){if(x===p||p!==null&&x===p.alternate)break t;x=xs(x),p=xs(p)}x=null}else x=null;h!==null&&Sx(c,f,h,x,!1),v!==null&&w!==null&&Sx(c,w,v,x,!0)}}e:{if(f=u?Is(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var C=IP;else if(px(f))if(Fy)C=PP;else{C=kP;var I=bP}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(C=RP);if(C&&(C=C(e,u))){Ny(c,C,a,d);break e}I&&I(e,f,u),e==="focusout"&&(I=f._wrapperState)&&I.controlled&&f.type==="number"&&up(f,"number",f.value)}switch(I=u?Is(u):window,e){case"focusin":(px(I)||I.contentEditable==="true")&&(Ss=I,Cp=u,ol=null);break;case"focusout":ol=Cp=Ss=null;break;case"mousedown":Sp=!0;break;case"contextmenu":case"mouseup":case"dragend":Sp=!1,vx(c,a,d);break;case"selectionchange":if(DP)break;case"keydown":case"keyup":vx(c,a,d)}var k;if(lm)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Cs?Ey(e,a)&&(b="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(b="onCompositionStart");b&&(Ay&&a.locale!=="ko"&&(Cs||b!=="onCompositionStart"?b==="onCompositionEnd"&&Cs&&(k=_y()):(Lo=d,nm="value"in Lo?Lo.value:Lo.textContent,Cs=!0)),I=dd(u,b),0<I.length&&(b=new ux(b,e,null,a,d),c.push({event:b,listeners:I}),k?b.data=k:(k=Oy(a),k!==null&&(b.data=k)))),(k=yP?wP(e,a):CP(e,a))&&(u=dd(u,"onBeforeInput"),0<u.length&&(d=new ux("onBeforeInput","beforeinput",null,a,d),c.push({event:d,listeners:u}),d.data=k))}$y(c,t)})}function xl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function dd(e,t){for(var a=t+"Capture",r=[];e!==null;){var o=e,n=o.stateNode;o.tag===5&&n!==null&&(o=n,n=cl(e,a),n!=null&&r.unshift(xl(e,n,o)),n=cl(e,t),n!=null&&r.push(xl(e,n,o))),e=e.return}return r}function xs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Sx(e,t,a,r,o){for(var n=t._reactName,s=[];a!==null&&a!==r;){var i=a,l=i.alternate,u=i.stateNode;if(l!==null&&l===r)break;i.tag===5&&u!==null&&(i=u,o?(l=cl(a,n),l!=null&&s.unshift(xl(a,l,i))):o||(l=cl(a,n),l!=null&&s.push(xl(a,l,i)))),a=a.return}s.length!==0&&e.push({event:t,listeners:s})}var AP=/\r\n?/g,EP=/\u0000|\uFFFD/g;function Lx(e){return(typeof e=="string"?e:""+e).replace(AP,`
6
- `).replace(EP,"")}function Hu(e,t,a){if(t=Lx(t),Lx(e)!==t&&a)throw Error(U(425))}function cd(){}var Lp=null,Ip=null;function bp(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 kp=typeof setTimeout=="function"?setTimeout:void 0,OP=typeof clearTimeout=="function"?clearTimeout:void 0,Ix=typeof Promise=="function"?Promise:void 0,NP=typeof queueMicrotask=="function"?queueMicrotask:typeof Ix<"u"?function(e){return Ix.resolve(null).then(e).catch(FP)}:kp;function FP(e){setTimeout(function(){throw e})}function Gf(e,t){var a=t,r=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(r===0){e.removeChild(o),ml(t);return}r--}else a!=="$"&&a!=="$?"&&a!=="$!"||r++;a=o}while(a);ml(t)}function Po(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 bx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}var Ws=Math.random().toString(36).slice(2),lr="__reactFiber$"+Ws,yl="__reactProps$"+Ws,jr="__reactContainer$"+Ws,Rp="__reactEvents$"+Ws,zP="__reactListeners$"+Ws,BP="__reactHandles$"+Ws;function sn(e){var t=e[lr];if(t)return t;for(var a=e.parentNode;a;){if(t=a[jr]||a[lr]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=bx(e);e!==null;){if(a=e[lr])return a;e=bx(e)}return t}e=a,a=e.parentNode}return null}function Pl(e){return e=e[lr]||e[jr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Is(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(U(33))}function Dd(e){return e[yl]||null}var Pp=[],bs=-1;function No(e){return{current:e}}function Ge(e){0>bs||(e.current=Pp[bs],Pp[bs]=null,bs--)}function Ve(e,t){bs++,Pp[bs]=e.current,e.current=t}var Eo={},Et=No(Eo),aa=No(!1),fn=Eo;function zs(e,t){var a=e.type.contextTypes;if(!a)return Eo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},n;for(n in a)o[n]=t[n];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ra(e){return e=e.childContextTypes,e!=null}function fd(){Ge(aa),Ge(Et)}function kx(e,t,a){if(Et.current!==Eo)throw Error(U(168));Ve(Et,t),Ve(aa,a)}function Xy(e,t,a){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return a;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(U(108,bR(e)||"Unknown",o));return Qe({},a,r)}function pd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Eo,fn=Et.current,Ve(Et,e),Ve(aa,aa.current),!0}function Rx(e,t,a){var r=e.stateNode;if(!r)throw Error(U(169));a?(e=Xy(e,t,fn),r.__reactInternalMemoizedMergedChildContext=e,Ge(aa),Ge(Et),Ve(Et,e)):Ge(aa),Ve(aa,a)}var Fr=null,_d=!1,$f=!1;function Zy(e){Fr===null?Fr=[e]:Fr.push(e)}function UP(e){_d=!0,Zy(e)}function Fo(){if(!$f&&Fr!==null){$f=!0;var e=0,t=ze;try{var a=Fr;for(ze=1;e<a.length;e++){var r=a[e];do r=r(!0);while(r!==null)}Fr=null,_d=!1}catch(o){throw Fr!==null&&(Fr=Fr.slice(e+1)),Cy(tm,Fo),o}finally{ze=t,$f=!1}}return null}var ks=[],Rs=0,md=null,hd=0,wa=[],Ca=0,pn=null,zr=1,Br="";function on(e,t){ks[Rs++]=hd,ks[Rs++]=md,md=e,hd=t}function Qy(e,t,a){wa[Ca++]=zr,wa[Ca++]=Br,wa[Ca++]=pn,pn=e;var r=zr;e=Br;var o=32-za(r)-1;r&=~(1<<o),a+=1;var n=32-za(t)+o;if(30<n){var s=o-o%5;n=(r&(1<<s)-1).toString(32),r>>=s,o-=s,zr=1<<32-za(t)+o|a<<o|r,Br=n+e}else zr=1<<n|a<<o|r,Br=e}function dm(e){e.return!==null&&(on(e,1),Qy(e,1,0))}function cm(e){for(;e===md;)md=ks[--Rs],ks[Rs]=null,hd=ks[--Rs],ks[Rs]=null;for(;e===pn;)pn=wa[--Ca],wa[Ca]=null,Br=wa[--Ca],wa[Ca]=null,zr=wa[--Ca],wa[Ca]=null}var fa=null,ca=null,Ke=!1,Fa=null;function Yy(e,t){var a=Sa(5,null,null,0);a.elementType="DELETED",a.stateNode=t,a.return=e,t=e.deletions,t===null?(e.deletions=[a],e.flags|=16):t.push(a)}function Px(e,t){switch(e.tag){case 5:var a=e.type;return t=t.nodeType!==1||a.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,fa=e,ca=Po(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,fa=e,ca=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(a=pn!==null?{id:zr,overflow:Br}:null,e.memoizedState={dehydrated:t,treeContext:a,retryLane:1073741824},a=Sa(18,null,null,0),a.stateNode=t,a.return=e,e.child=a,fa=e,ca=null,!0):!1;default:return!1}}function Tp(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Mp(e){if(Ke){var t=ca;if(t){var a=t;if(!Px(e,t)){if(Tp(e))throw Error(U(418));t=Po(a.nextSibling);var r=fa;t&&Px(e,t)?Yy(r,a):(e.flags=e.flags&-4097|2,Ke=!1,fa=e)}}else{if(Tp(e))throw Error(U(418));e.flags=e.flags&-4097|2,Ke=!1,fa=e}}}function Tx(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;fa=e}function ju(e){if(e!==fa)return!1;if(!Ke)return Tx(e),Ke=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!bp(e.type,e.memoizedProps)),t&&(t=ca)){if(Tp(e))throw Jy(),Error(U(418));for(;t;)Yy(e,t),t=Po(t.nextSibling)}if(Tx(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"){if(t===0){ca=Po(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++}e=e.nextSibling}ca=null}}else ca=fa?Po(e.stateNode.nextSibling):null;return!0}function Jy(){for(var e=ca;e;)e=Po(e.nextSibling)}function Bs(){ca=fa=null,Ke=!1}function fm(e){Fa===null?Fa=[e]:Fa.push(e)}var HP=Wr.ReactCurrentBatchConfig;function Gi(e,t,a){if(e=a.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(U(309));var r=a.stateNode}if(!r)throw Error(U(147,e));var o=r,n=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===n?t.ref:(t=function(s){var i=o.refs;s===null?delete i[n]:i[n]=s},t._stringRef=n,t)}if(typeof e!="string")throw Error(U(284));if(!a._owner)throw Error(U(290,e))}return e}function Vu(e,t){throw e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Mx(e){var t=e._init;return t(e._payload)}function ew(e){function t(p,m){if(e){var g=p.deletions;g===null?(p.deletions=[m],p.flags|=16):g.push(m)}}function a(p,m){if(!e)return null;for(;m!==null;)t(p,m),m=m.sibling;return null}function r(p,m){for(p=new Map;m!==null;)m.key!==null?p.set(m.key,m):p.set(m.index,m),m=m.sibling;return p}function o(p,m){return p=_o(p,m),p.index=0,p.sibling=null,p}function n(p,m,g){return p.index=g,e?(g=p.alternate,g!==null?(g=g.index,g<m?(p.flags|=2,m):g):(p.flags|=2,m)):(p.flags|=1048576,m)}function s(p){return e&&p.alternate===null&&(p.flags|=2),p}function i(p,m,g,y){return m===null||m.tag!==6?(m=ep(g,p.mode,y),m.return=p,m):(m=o(m,g),m.return=p,m)}function l(p,m,g,y){var C=g.type;return C===ws?d(p,m,g.props.children,y,g.key):m!==null&&(m.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===yo&&Mx(C)===m.type)?(y=o(m,g.props),y.ref=Gi(p,m,g),y.return=p,y):(y=ad(g.type,g.key,g.props,null,p.mode,y),y.ref=Gi(p,m,g),y.return=p,y)}function u(p,m,g,y){return m===null||m.tag!==4||m.stateNode.containerInfo!==g.containerInfo||m.stateNode.implementation!==g.implementation?(m=tp(g,p.mode,y),m.return=p,m):(m=o(m,g.children||[]),m.return=p,m)}function d(p,m,g,y,C){return m===null||m.tag!==7?(m=cn(g,p.mode,y,C),m.return=p,m):(m=o(m,g),m.return=p,m)}function c(p,m,g){if(typeof m=="string"&&m!==""||typeof m=="number")return m=ep(""+m,p.mode,g),m.return=p,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Pu:return g=ad(m.type,m.key,m.props,null,p.mode,g),g.ref=Gi(p,null,m),g.return=p,g;case ys:return m=tp(m,p.mode,g),m.return=p,m;case yo:var y=m._init;return c(p,y(m._payload),g)}if(Qi(m)||ji(m))return m=cn(m,p.mode,g,null),m.return=p,m;Vu(p,m)}return null}function f(p,m,g,y){var C=m!==null?m.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return C!==null?null:i(p,m,""+g,y);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Pu:return g.key===C?l(p,m,g,y):null;case ys:return g.key===C?u(p,m,g,y):null;case yo:return C=g._init,f(p,m,C(g._payload),y)}if(Qi(g)||ji(g))return C!==null?null:d(p,m,g,y,null);Vu(p,g)}return null}function h(p,m,g,y,C){if(typeof y=="string"&&y!==""||typeof y=="number")return p=p.get(g)||null,i(m,p,""+y,C);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Pu:return p=p.get(y.key===null?g:y.key)||null,l(m,p,y,C);case ys:return p=p.get(y.key===null?g:y.key)||null,u(m,p,y,C);case yo:var I=y._init;return h(p,m,g,I(y._payload),C)}if(Qi(y)||ji(y))return p=p.get(g)||null,d(m,p,y,C,null);Vu(m,y)}return null}function v(p,m,g,y){for(var C=null,I=null,k=m,b=m=0,T=null;k!==null&&b<g.length;b++){k.index>b?(T=k,k=null):T=k.sibling;var A=f(p,k,g[b],y);if(A===null){k===null&&(k=T);break}e&&k&&A.alternate===null&&t(p,k),m=n(A,m,b),I===null?C=A:I.sibling=A,I=A,k=T}if(b===g.length)return a(p,k),Ke&&on(p,b),C;if(k===null){for(;b<g.length;b++)k=c(p,g[b],y),k!==null&&(m=n(k,m,b),I===null?C=k:I.sibling=k,I=k);return Ke&&on(p,b),C}for(k=r(p,k);b<g.length;b++)T=h(k,p,b,g[b],y),T!==null&&(e&&T.alternate!==null&&k.delete(T.key===null?b:T.key),m=n(T,m,b),I===null?C=T:I.sibling=T,I=T);return e&&k.forEach(function(D){return t(p,D)}),Ke&&on(p,b),C}function x(p,m,g,y){var C=ji(g);if(typeof C!="function")throw Error(U(150));if(g=C.call(g),g==null)throw Error(U(151));for(var I=C=null,k=m,b=m=0,T=null,A=g.next();k!==null&&!A.done;b++,A=g.next()){k.index>b?(T=k,k=null):T=k.sibling;var D=f(p,k,A.value,y);if(D===null){k===null&&(k=T);break}e&&k&&D.alternate===null&&t(p,k),m=n(D,m,b),I===null?C=D:I.sibling=D,I=D,k=T}if(A.done)return a(p,k),Ke&&on(p,b),C;if(k===null){for(;!A.done;b++,A=g.next())A=c(p,A.value,y),A!==null&&(m=n(A,m,b),I===null?C=A:I.sibling=A,I=A);return Ke&&on(p,b),C}for(k=r(p,k);!A.done;b++,A=g.next())A=h(k,p,b,A.value,y),A!==null&&(e&&A.alternate!==null&&k.delete(A.key===null?b:A.key),m=n(A,m,b),I===null?C=A:I.sibling=A,I=A);return e&&k.forEach(function(E){return t(p,E)}),Ke&&on(p,b),C}function w(p,m,g,y){if(typeof g=="object"&&g!==null&&g.type===ws&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Pu:e:{for(var C=g.key,I=m;I!==null;){if(I.key===C){if(C=g.type,C===ws){if(I.tag===7){a(p,I.sibling),m=o(I,g.props.children),m.return=p,p=m;break e}}else if(I.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===yo&&Mx(C)===I.type){a(p,I.sibling),m=o(I,g.props),m.ref=Gi(p,I,g),m.return=p,p=m;break e}a(p,I);break}else t(p,I);I=I.sibling}g.type===ws?(m=cn(g.props.children,p.mode,y,g.key),m.return=p,p=m):(y=ad(g.type,g.key,g.props,null,p.mode,y),y.ref=Gi(p,m,g),y.return=p,p=y)}return s(p);case ys:e:{for(I=g.key;m!==null;){if(m.key===I)if(m.tag===4&&m.stateNode.containerInfo===g.containerInfo&&m.stateNode.implementation===g.implementation){a(p,m.sibling),m=o(m,g.children||[]),m.return=p,p=m;break e}else{a(p,m);break}else t(p,m);m=m.sibling}m=tp(g,p.mode,y),m.return=p,p=m}return s(p);case yo:return I=g._init,w(p,m,I(g._payload),y)}if(Qi(g))return v(p,m,g,y);if(ji(g))return x(p,m,g,y);Vu(p,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,m!==null&&m.tag===6?(a(p,m.sibling),m=o(m,g),m.return=p,p=m):(a(p,m),m=ep(g,p.mode,y),m.return=p,p=m),s(p)):a(p,m)}return w}var Us=ew(!0),tw=ew(!1),gd=No(null),vd=null,Ps=null,pm=null;function mm(){pm=Ps=vd=null}function hm(e){var t=gd.current;Ge(gd),e._currentValue=t}function Dp(e,t,a){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===a)break;e=e.return}}function Os(e,t){vd=e,pm=Ps=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ta=!0),e.firstContext=null)}function Ia(e){var t=e._currentValue;if(pm!==e)if(e={context:e,memoizedValue:t,next:null},Ps===null){if(vd===null)throw Error(U(308));Ps=e,vd.dependencies={lanes:0,firstContext:e}}else Ps=Ps.next=e;return t}var ln=null;function gm(e){ln===null?ln=[e]:ln.push(e)}function aw(e,t,a,r){var o=t.interleaved;return o===null?(a.next=a,gm(t)):(a.next=o.next,o.next=a),t.interleaved=a,Vr(e,r)}function Vr(e,t){e.lanes|=t;var a=e.alternate;for(a!==null&&(a.lanes|=t),a=e,e=e.return;e!==null;)e.childLanes|=t,a=e.alternate,a!==null&&(a.childLanes|=t),a=e,e=e.return;return a.tag===3?a.stateNode:null}var wo=!1;function vm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function rw(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 Ur(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function To(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(_e&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Vr(e,a)}return o=r.interleaved,o===null?(t.next=t,gm(r)):(t.next=o.next,o.next=t),r.interleaved=t,Vr(e,a)}function Zu(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,am(e,a)}}function Dx(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var o=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var s={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};n===null?o=n=s:n=n.next=s,a=a.next}while(a!==null);n===null?o=n=t:n=n.next=t}else o=n=t;a={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:n,shared:r.shared,effects:r.effects},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function xd(e,t,a,r){var o=e.updateQueue;wo=!1;var n=o.firstBaseUpdate,s=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var l=i,u=l.next;l.next=null,s===null?n=u:s.next=u,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,i=d.lastBaseUpdate,i!==s&&(i===null?d.firstBaseUpdate=u:i.next=u,d.lastBaseUpdate=l))}if(n!==null){var c=o.baseState;s=0,d=u=l=null,i=n;do{var f=i.lane,h=i.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:h,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var v=e,x=i;switch(f=t,h=a,x.tag){case 1:if(v=x.payload,typeof v=="function"){c=v.call(h,c,f);break e}c=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,f=typeof v=="function"?v.call(h,c,f):v,f==null)break e;c=Qe({},c,f);break e;case 2:wo=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[i]:f.push(i))}else h={eventTime:h,lane:f,tag:i.tag,payload:i.payload,callback:i.callback,next:null},d===null?(u=d=h,l=c):d=d.next=h,s|=f;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;f=i,i=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(d===null&&(l=c),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else n===null&&(o.shared.lanes=0);hn|=s,e.lanes=s,e.memoizedState=c}}function _x(e,t,a){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=a,typeof o!="function")throw Error(U(191,o));o.call(r)}}}var Tl={},dr=No(Tl),wl=No(Tl),Cl=No(Tl);function un(e){if(e===Tl)throw Error(U(174));return e}function xm(e,t){switch(Ve(Cl,t),Ve(wl,e),Ve(dr,Tl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:cp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=cp(t,e)}Ge(dr),Ve(dr,t)}function Hs(){Ge(dr),Ge(wl),Ge(Cl)}function ow(e){un(Cl.current);var t=un(dr.current),a=cp(t,e.type);t!==a&&(Ve(wl,e),Ve(dr,a))}function ym(e){wl.current===e&&(Ge(dr),Ge(wl))}var Xe=No(0);function yd(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)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 Kf=[];function wm(){for(var e=0;e<Kf.length;e++)Kf[e]._workInProgressVersionPrimary=null;Kf.length=0}var Qu=Wr.ReactCurrentDispatcher,Xf=Wr.ReactCurrentBatchConfig,mn=0,Ze=null,lt=null,mt=null,wd=!1,nl=!1,Sl=0,jP=0;function Dt(){throw Error(U(321))}function Cm(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ua(e[a],t[a]))return!1;return!0}function Sm(e,t,a,r,o,n){if(mn=n,Ze=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Qu.current=e===null||e.memoizedState===null?GP:$P,e=a(r,o),nl){n=0;do{if(nl=!1,Sl=0,25<=n)throw Error(U(301));n+=1,mt=lt=null,t.updateQueue=null,Qu.current=KP,e=a(r,o)}while(nl)}if(Qu.current=Cd,t=lt!==null&&lt.next!==null,mn=0,mt=lt=Ze=null,wd=!1,t)throw Error(U(300));return e}function Lm(){var e=Sl!==0;return Sl=0,e}function ir(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?Ze.memoizedState=mt=e:mt=mt.next=e,mt}function ba(){if(lt===null){var e=Ze.alternate;e=e!==null?e.memoizedState:null}else e=lt.next;var t=mt===null?Ze.memoizedState:mt.next;if(t!==null)mt=t,lt=e;else{if(e===null)throw Error(U(310));lt=e,e={memoizedState:lt.memoizedState,baseState:lt.baseState,baseQueue:lt.baseQueue,queue:lt.queue,next:null},mt===null?Ze.memoizedState=mt=e:mt=mt.next=e}return mt}function Ll(e,t){return typeof t=="function"?t(e):t}function Zf(e){var t=ba(),a=t.queue;if(a===null)throw Error(U(311));a.lastRenderedReducer=e;var r=lt,o=r.baseQueue,n=a.pending;if(n!==null){if(o!==null){var s=o.next;o.next=n.next,n.next=s}r.baseQueue=o=n,a.pending=null}if(o!==null){n=o.next,r=r.baseState;var i=s=null,l=null,u=n;do{var d=u.lane;if((mn&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(i=l=c,s=r):l=l.next=c,Ze.lanes|=d,hn|=d}u=u.next}while(u!==null&&u!==n);l===null?s=r:l.next=i,Ua(r,t.memoizedState)||(ta=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,a.lastRenderedState=r}if(e=a.interleaved,e!==null){o=e;do n=o.lane,Ze.lanes|=n,hn|=n,o=o.next;while(o!==e)}else o===null&&(a.lanes=0);return[t.memoizedState,a.dispatch]}function Qf(e){var t=ba(),a=t.queue;if(a===null)throw Error(U(311));a.lastRenderedReducer=e;var r=a.dispatch,o=a.pending,n=t.memoizedState;if(o!==null){a.pending=null;var s=o=o.next;do n=e(n,s.action),s=s.next;while(s!==o);Ua(n,t.memoizedState)||(ta=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,r]}function nw(){}function sw(e,t){var a=Ze,r=ba(),o=t(),n=!Ua(r.memoizedState,o);if(n&&(r.memoizedState=o,ta=!0),r=r.queue,Im(uw.bind(null,a,r,e),[e]),r.getSnapshot!==t||n||mt!==null&&mt.memoizedState.tag&1){if(a.flags|=2048,Il(9,lw.bind(null,a,r,o,t),void 0,null),ht===null)throw Error(U(349));(mn&30)!==0||iw(a,t,o)}return o}function iw(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ze.updateQueue,t===null?(t={lastEffect:null,stores:null},Ze.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function lw(e,t,a,r){t.value=a,t.getSnapshot=r,dw(t)&&cw(e)}function uw(e,t,a){return a(function(){dw(t)&&cw(e)})}function dw(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ua(e,a)}catch{return!0}}function cw(e){var t=Vr(e,1);t!==null&&Ba(t,e,1,-1)}function Ax(e){var t=ir();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ll,lastRenderedState:e},t.queue=e,e=e.dispatch=WP.bind(null,Ze,e),[t.memoizedState,e]}function Il(e,t,a,r){return e={tag:e,create:t,destroy:a,deps:r,next:null},t=Ze.updateQueue,t===null?(t={lastEffect:null,stores:null},Ze.updateQueue=t,t.lastEffect=e.next=e):(a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e)),e}function fw(){return ba().memoizedState}function Yu(e,t,a,r){var o=ir();Ze.flags|=e,o.memoizedState=Il(1|t,a,void 0,r===void 0?null:r)}function Ad(e,t,a,r){var o=ba();r=r===void 0?null:r;var n=void 0;if(lt!==null){var s=lt.memoizedState;if(n=s.destroy,r!==null&&Cm(r,s.deps)){o.memoizedState=Il(t,a,n,r);return}}Ze.flags|=e,o.memoizedState=Il(1|t,a,n,r)}function Ex(e,t){return Yu(8390656,8,e,t)}function Im(e,t){return Ad(2048,8,e,t)}function pw(e,t){return Ad(4,2,e,t)}function mw(e,t){return Ad(4,4,e,t)}function hw(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 gw(e,t,a){return a=a!=null?a.concat([e]):null,Ad(4,4,hw.bind(null,t,e),a)}function bm(){}function vw(e,t){var a=ba();t=t===void 0?null:t;var r=a.memoizedState;return r!==null&&t!==null&&Cm(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function xw(e,t){var a=ba();t=t===void 0?null:t;var r=a.memoizedState;return r!==null&&t!==null&&Cm(t,r[1])?r[0]:(e=e(),a.memoizedState=[e,t],e)}function yw(e,t,a){return(mn&21)===0?(e.baseState&&(e.baseState=!1,ta=!0),e.memoizedState=a):(Ua(a,t)||(a=Iy(),Ze.lanes|=a,hn|=a,e.baseState=!0),t)}function VP(e,t){var a=ze;ze=a!==0&&4>a?a:4,e(!0);var r=Xf.transition;Xf.transition={};try{e(!1),t()}finally{ze=a,Xf.transition=r}}function ww(){return ba().memoizedState}function qP(e,t,a){var r=Do(e);if(a={lane:r,action:a,hasEagerState:!1,eagerState:null,next:null},Cw(e))Sw(t,a);else if(a=aw(e,t,a,r),a!==null){var o=Vt();Ba(a,e,r,o),Lw(a,t,r)}}function WP(e,t,a){var r=Do(e),o={lane:r,action:a,hasEagerState:!1,eagerState:null,next:null};if(Cw(e))Sw(t,o);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var s=t.lastRenderedState,i=n(s,a);if(o.hasEagerState=!0,o.eagerState=i,Ua(i,s)){var l=t.interleaved;l===null?(o.next=o,gm(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}a=aw(e,t,o,r),a!==null&&(o=Vt(),Ba(a,e,r,o),Lw(a,t,r))}}function Cw(e){var t=e.alternate;return e===Ze||t!==null&&t===Ze}function Sw(e,t){nl=wd=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Lw(e,t,a){if((a&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,am(e,a)}}var Cd={readContext:Ia,useCallback:Dt,useContext:Dt,useEffect:Dt,useImperativeHandle:Dt,useInsertionEffect:Dt,useLayoutEffect:Dt,useMemo:Dt,useReducer:Dt,useRef:Dt,useState:Dt,useDebugValue:Dt,useDeferredValue:Dt,useTransition:Dt,useMutableSource:Dt,useSyncExternalStore:Dt,useId:Dt,unstable_isNewReconciler:!1},GP={readContext:Ia,useCallback:function(e,t){return ir().memoizedState=[e,t===void 0?null:t],e},useContext:Ia,useEffect:Ex,useImperativeHandle:function(e,t,a){return a=a!=null?a.concat([e]):null,Yu(4194308,4,hw.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Yu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yu(4,2,e,t)},useMemo:function(e,t){var a=ir();return t=t===void 0?null:t,e=e(),a.memoizedState=[e,t],e},useReducer:function(e,t,a){var r=ir();return t=a!==void 0?a(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=qP.bind(null,Ze,e),[r.memoizedState,e]},useRef:function(e){var t=ir();return e={current:e},t.memoizedState=e},useState:Ax,useDebugValue:bm,useDeferredValue:function(e){return ir().memoizedState=e},useTransition:function(){var e=Ax(!1),t=e[0];return e=VP.bind(null,e[1]),ir().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,a){var r=Ze,o=ir();if(Ke){if(a===void 0)throw Error(U(407));a=a()}else{if(a=t(),ht===null)throw Error(U(349));(mn&30)!==0||iw(r,t,a)}o.memoizedState=a;var n={value:a,getSnapshot:t};return o.queue=n,Ex(uw.bind(null,r,n,e),[e]),r.flags|=2048,Il(9,lw.bind(null,r,n,a,t),void 0,null),a},useId:function(){var e=ir(),t=ht.identifierPrefix;if(Ke){var a=Br,r=zr;a=(r&~(1<<32-za(r)-1)).toString(32)+a,t=":"+t+"R"+a,a=Sl++,0<a&&(t+="H"+a.toString(32)),t+=":"}else a=jP++,t=":"+t+"r"+a.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},$P={readContext:Ia,useCallback:vw,useContext:Ia,useEffect:Im,useImperativeHandle:gw,useInsertionEffect:pw,useLayoutEffect:mw,useMemo:xw,useReducer:Zf,useRef:fw,useState:function(){return Zf(Ll)},useDebugValue:bm,useDeferredValue:function(e){var t=ba();return yw(t,lt.memoizedState,e)},useTransition:function(){var e=Zf(Ll)[0],t=ba().memoizedState;return[e,t]},useMutableSource:nw,useSyncExternalStore:sw,useId:ww,unstable_isNewReconciler:!1},KP={readContext:Ia,useCallback:vw,useContext:Ia,useEffect:Im,useImperativeHandle:gw,useInsertionEffect:pw,useLayoutEffect:mw,useMemo:xw,useReducer:Qf,useRef:fw,useState:function(){return Qf(Ll)},useDebugValue:bm,useDeferredValue:function(e){var t=ba();return lt===null?t.memoizedState=e:yw(t,lt.memoizedState,e)},useTransition:function(){var e=Qf(Ll)[0],t=ba().memoizedState;return[e,t]},useMutableSource:nw,useSyncExternalStore:sw,useId:ww,unstable_isNewReconciler:!1};function Oa(e,t){if(e&&e.defaultProps){t=Qe({},t),e=e.defaultProps;for(var a in e)t[a]===void 0&&(t[a]=e[a]);return t}return t}function _p(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:Qe({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Ed={isMounted:function(e){return(e=e._reactInternals)?xn(e)===e:!1},enqueueSetState:function(e,t,a){e=e._reactInternals;var r=Vt(),o=Do(e),n=Ur(r,o);n.payload=t,a!=null&&(n.callback=a),t=To(e,n,o),t!==null&&(Ba(t,e,o,r),Zu(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=Vt(),o=Do(e),n=Ur(r,o);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=To(e,n,o),t!==null&&(Ba(t,e,o,r),Zu(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Vt(),r=Do(e),o=Ur(a,r);o.tag=2,t!=null&&(o.callback=t),t=To(e,o,r),t!==null&&(Ba(t,e,r,a),Zu(t,e,r))}};function Ox(e,t,a,r,o,n,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,n,s):t.prototype&&t.prototype.isPureReactComponent?!gl(a,r)||!gl(o,n):!0}function Iw(e,t,a){var r=!1,o=Eo,n=t.contextType;return typeof n=="object"&&n!==null?n=Ia(n):(o=ra(t)?fn:Et.current,r=t.contextTypes,n=(r=r!=null)?zs(e,o):Eo),t=new t(a,n),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ed,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=n),t}function Nx(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&Ed.enqueueReplaceState(t,t.state,null)}function Ap(e,t,a,r){var o=e.stateNode;o.props=a,o.state=e.memoizedState,o.refs={},vm(e);var n=t.contextType;typeof n=="object"&&n!==null?o.context=Ia(n):(n=ra(t)?fn:Et.current,o.context=zs(e,n)),o.state=e.memoizedState,n=t.getDerivedStateFromProps,typeof n=="function"&&(_p(e,t,n,a),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Ed.enqueueReplaceState(o,o.state,null),xd(e,a,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function js(e,t){try{var a="",r=t;do a+=IR(r),r=r.return;while(r);var o=a}catch(n){o=`
5
+ `+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=i);break}}}finally{Jf=!1,Error.prepareStackTrace=a}return(e=e?e.displayName||e.name:"")?wl(e):""}function lP(e){switch(e.tag){case 5:return wl(e.type);case 16:return wl("Lazy");case 13:return wl("Suspense");case 19:return wl("SuspenseList");case 0:case 2:case 15:return e=ep(e.type,!1),e;case 11:return e=ep(e.type.render,!1),e;case 1:return e=ep(e.type,!0),e;default:return""}}function Ip(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 Vs:return"Fragment";case js:return"Portal";case Cp:return"Profiler";case hm:return"StrictMode";case Sp:return"Suspense";case Lp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Dy:return(e.displayName||"Context")+".Consumer";case Py:return(e._context.displayName||"Context")+".Provider";case gm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vm:return t=e.displayName||null,t!==null?t:Ip(e.type)||"Memo";case zo:t=e._payload,e=e._init;try{return Ip(e(t))}catch{}}return null}function uP(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 Ip(t);case 8:return t===hm?"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 Yo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function My(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dP(e){var t=My(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,n=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,n.call(this,s)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ju(e){e._valueTracker||(e._valueTracker=dP(e))}function _y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=My(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function Rd(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 bp(e,t){var a=t.checked;return rt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??e._wrapperState.initialChecked})}function Ix(e,t){var a=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;a=Yo(t.value!=null?t.value:a),e._wrapperState={initialChecked:r,initialValue:a,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ay(e,t){t=t.checked,t!=null&&mm(e,"checked",t,!1)}function kp(e,t){Ay(e,t);var a=Yo(t.value),r=t.type;if(a!=null)r==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+a):e.value!==""+a&&(e.value=""+a);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Rp(e,t.type,a):t.hasOwnProperty("defaultValue")&&Rp(e,t.type,Yo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bx(e,t,a){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,a||t===e.value||(e.value=t),e.defaultValue=t}a=e.name,a!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,a!==""&&(e.name=a)}function Rp(e,t,a){(t!=="number"||Rd(e.ownerDocument)!==e)&&(a==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+a&&(e.defaultValue=""+a))}var Cl=Array.isArray;function ei(e,t,a,r){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&r&&(e[a].defaultSelected=!0)}else{for(a=""+Yo(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Pp(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(U(91));return rt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function kx(e,t){var a=t.value;if(a==null){if(a=t.children,t=t.defaultValue,a!=null){if(t!=null)throw Error(U(92));if(Cl(a)){if(1<a.length)throw Error(U(93));a=a[0]}t=a}t==null&&(t=""),a=t}e._wrapperState={initialValue:Yo(a)}}function Ey(e,t){var a=Yo(t.value),r=Yo(t.defaultValue);a!=null&&(a=""+a,a!==e.value&&(e.value=a),t.defaultValue==null&&e.defaultValue!==a&&(e.defaultValue=a)),r!=null&&(e.defaultValue=""+r)}function Rx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Oy(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 Dp(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Oy(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ed,Ny=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,a,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,a,r,o)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ed=ed||document.createElement("div"),ed.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ed.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function El(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Il={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},cP=["Webkit","ms","Moz","O"];Object.keys(Il).forEach(function(e){cP.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Il[t]=Il[e]})});function Fy(e,t,a){return t==null||typeof t=="boolean"||t===""?"":a||typeof t!="number"||t===0||Il.hasOwnProperty(e)&&Il[e]?(""+t).trim():t+"px"}function zy(e,t){e=e.style;for(var a in t)if(t.hasOwnProperty(a)){var r=a.indexOf("--")===0,o=Fy(a,t[a],r);a==="float"&&(a="cssFloat"),r?e.setProperty(a,o):e[a]=o}}var fP=rt({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 Tp(e,t){if(t){if(fP[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function Mp(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 _p=null;function xm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ap=null,ti=null,ai=null;function Px(e){if(e=Yl(e)){if(typeof Ap!="function")throw Error(U(280));var t=e.stateNode;t&&(t=tc(t),Ap(e.stateNode,e.type,t))}}function By(e){ti?ai?ai.push(e):ai=[e]:ti=e}function Uy(){if(ti){var e=ti,t=ai;if(ai=ti=null,Px(e),t)for(e=0;e<t.length;e++)Px(t[e])}}function Hy(e,t){return e(t)}function jy(){}var tp=!1;function Vy(e,t,a){if(tp)return e(t,a);tp=!0;try{return Hy(e,t,a)}finally{tp=!1,(ti!==null||ai!==null)&&(jy(),Uy())}}function Ol(e,t){var a=e.stateNode;if(a===null)return null;var r=tc(a);if(r===null)return null;a=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(U(231,t,typeof a));return a}var Ep=!1;if(uo)try{Us={},Object.defineProperty(Us,"passive",{get:function(){Ep=!0}}),window.addEventListener("test",Us,Us),window.removeEventListener("test",Us,Us)}catch{Ep=!1}var Us;function pP(e,t,a,r,o,n,s,i,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(a,u)}catch(c){this.onError(c)}}var bl=!1,Pd=null,Dd=!1,Op=null,mP={onError:function(e){bl=!0,Pd=e}};function hP(e,t,a,r,o,n,s,i,l){bl=!1,Pd=null,pP.apply(mP,arguments)}function gP(e,t,a,r,o,n,s,i,l){if(hP.apply(this,arguments),bl){if(bl){var u=Pd;bl=!1,Pd=null}else throw Error(U(198));Dd||(Dd=!0,Op=u)}}function zn(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function qy(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 Dx(e){if(zn(e)!==e)throw Error(U(188))}function vP(e){var t=e.alternate;if(!t){if(t=zn(e),t===null)throw Error(U(188));return t!==e?null:e}for(var a=e,r=t;;){var o=a.return;if(o===null)break;var n=o.alternate;if(n===null){if(r=o.return,r!==null){a=r;continue}break}if(o.child===n.child){for(n=o.child;n;){if(n===a)return Dx(o),e;if(n===r)return Dx(o),t;n=n.sibling}throw Error(U(188))}if(a.return!==r.return)a=o,r=n;else{for(var s=!1,i=o.child;i;){if(i===a){s=!0,a=o,r=n;break}if(i===r){s=!0,r=o,a=n;break}i=i.sibling}if(!s){for(i=n.child;i;){if(i===a){s=!0,a=n,r=o;break}if(i===r){s=!0,r=n,a=o;break}i=i.sibling}if(!s)throw Error(U(189))}}if(a.alternate!==r)throw Error(U(190))}if(a.tag!==3)throw Error(U(188));return a.stateNode.current===a?e:t}function Wy(e){return e=vP(e),e!==null?Gy(e):null}function Gy(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Gy(e);if(t!==null)return t;e=e.sibling}return null}var $y=Oa.unstable_scheduleCallback,Tx=Oa.unstable_cancelCallback,xP=Oa.unstable_shouldYield,yP=Oa.unstable_requestPaint,lt=Oa.unstable_now,wP=Oa.unstable_getCurrentPriorityLevel,ym=Oa.unstable_ImmediatePriority,Ky=Oa.unstable_UserBlockingPriority,Td=Oa.unstable_NormalPriority,CP=Oa.unstable_LowPriority,Xy=Oa.unstable_IdlePriority,Qd=null,_r=null;function SP(e){if(_r&&typeof _r.onCommitFiberRoot=="function")try{_r.onCommitFiberRoot(Qd,e,void 0,(e.current.flags&128)===128)}catch{}}var ir=Math.clz32?Math.clz32:bP,LP=Math.log,IP=Math.LN2;function bP(e){return e>>>=0,e===0?32:31-(LP(e)/IP|0)|0}var td=64,ad=4194304;function Sl(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 Md(e,t){var a=e.pendingLanes;if(a===0)return 0;var r=0,o=e.suspendedLanes,n=e.pingedLanes,s=a&268435455;if(s!==0){var i=s&~o;i!==0?r=Sl(i):(n&=s,n!==0&&(r=Sl(n)))}else s=a&~o,s!==0?r=Sl(s):n!==0&&(r=Sl(n));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,n=t&-t,o>=n||o===16&&(n&4194240)!==0))return t;if((r&4)!==0&&(r|=a&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)a=31-ir(t),o=1<<a,r|=e[a],t&=~o;return r}function kP(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 RP(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,n=e.pendingLanes;0<n;){var s=31-ir(n),i=1<<s,l=o[s];l===-1?((i&a)===0||(i&r)!==0)&&(o[s]=kP(i,t)):l<=t&&(e.expiredLanes|=i),n&=~i}}function Np(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Zy(){var e=td;return td<<=1,(td&4194240)===0&&(td=64),e}function ap(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Zl(e,t,a){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ir(t),e[t]=a}function PP(e,t){var a=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 r=e.eventTimes;for(e=e.expirationTimes;0<a;){var o=31-ir(a),n=1<<o;t[o]=0,r[o]=-1,e[o]=-1,a&=~n}}function wm(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-ir(a),o=1<<r;o&t|e[r]&t&&(e[r]|=t),a&=~o}}var Ve=0;function Qy(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Yy,Cm,Jy,ew,tw,Fp=!1,rd=[],qo=null,Wo=null,Go=null,Nl=new Map,Fl=new Map,Uo=[],DP="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 Mx(e,t){switch(e){case"focusin":case"focusout":qo=null;break;case"dragenter":case"dragleave":Wo=null;break;case"mouseover":case"mouseout":Go=null;break;case"pointerover":case"pointerout":Nl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fl.delete(t.pointerId)}}function pl(e,t,a,r,o,n){return e===null||e.nativeEvent!==n?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:n,targetContainers:[o]},t!==null&&(t=Yl(t),t!==null&&Cm(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function TP(e,t,a,r,o){switch(t){case"focusin":return qo=pl(qo,e,t,a,r,o),!0;case"dragenter":return Wo=pl(Wo,e,t,a,r,o),!0;case"mouseover":return Go=pl(Go,e,t,a,r,o),!0;case"pointerover":var n=o.pointerId;return Nl.set(n,pl(Nl.get(n)||null,e,t,a,r,o)),!0;case"gotpointercapture":return n=o.pointerId,Fl.set(n,pl(Fl.get(n)||null,e,t,a,r,o)),!0}return!1}function aw(e){var t=Rn(e.target);if(t!==null){var a=zn(t);if(a!==null){if(t=a.tag,t===13){if(t=qy(a),t!==null){e.blockedOn=t,tw(e.priority,function(){Jy(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=zp(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);_p=r,a.target.dispatchEvent(r),_p=null}else return t=Yl(a),t!==null&&Cm(t),e.blockedOn=a,!1;t.shift()}return!0}function _x(e,t,a){vd(e)&&a.delete(t)}function MP(){Fp=!1,qo!==null&&vd(qo)&&(qo=null),Wo!==null&&vd(Wo)&&(Wo=null),Go!==null&&vd(Go)&&(Go=null),Nl.forEach(_x),Fl.forEach(_x)}function ml(e,t){e.blockedOn===t&&(e.blockedOn=null,Fp||(Fp=!0,Oa.unstable_scheduleCallback(Oa.unstable_NormalPriority,MP)))}function zl(e){function t(o){return ml(o,e)}if(0<rd.length){ml(rd[0],e);for(var a=1;a<rd.length;a++){var r=rd[a];r.blockedOn===e&&(r.blockedOn=null)}}for(qo!==null&&ml(qo,e),Wo!==null&&ml(Wo,e),Go!==null&&ml(Go,e),Nl.forEach(t),Fl.forEach(t),a=0;a<Uo.length;a++)r=Uo[a],r.blockedOn===e&&(r.blockedOn=null);for(;0<Uo.length&&(a=Uo[0],a.blockedOn===null);)aw(a),a.blockedOn===null&&Uo.shift()}var ri=mo.ReactCurrentBatchConfig,_d=!0;function _P(e,t,a,r){var o=Ve,n=ri.transition;ri.transition=null;try{Ve=1,Sm(e,t,a,r)}finally{Ve=o,ri.transition=n}}function AP(e,t,a,r){var o=Ve,n=ri.transition;ri.transition=null;try{Ve=4,Sm(e,t,a,r)}finally{Ve=o,ri.transition=n}}function Sm(e,t,a,r){if(_d){var o=zp(e,t,a,r);if(o===null)up(e,t,r,Ad,a),Mx(e,r);else if(TP(o,e,t,a,r))r.stopPropagation();else if(Mx(e,r),t&4&&-1<DP.indexOf(e)){for(;o!==null;){var n=Yl(o);if(n!==null&&Yy(n),n=zp(e,t,a,r),n===null&&up(e,t,r,Ad,a),n===o)break;o=n}o!==null&&r.stopPropagation()}else up(e,t,r,null,a)}}var Ad=null;function zp(e,t,a,r){if(Ad=null,e=xm(r),e=Rn(e),e!==null)if(t=zn(e),t===null)e=null;else if(a=t.tag,a===13){if(e=qy(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ad=e,null}function rw(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(wP()){case ym:return 1;case Ky:return 4;case Td:case CP:return 16;case Xy:return 536870912;default:return 16}default:return 16}}var jo=null,Lm=null,xd=null;function ow(){if(xd)return xd;var e,t=Lm,a=t.length,r,o="value"in jo?jo.value:jo.textContent,n=o.length;for(e=0;e<a&&t[e]===o[e];e++);var s=a-e;for(r=1;r<=s&&t[a-r]===o[n-r];r++);return xd=o.slice(e,1<r?1-r:void 0)}function yd(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 od(){return!0}function Ax(){return!1}function Na(e){function t(a,r,o,n,s){this._reactName=a,this._targetInst=o,this.type=r,this.nativeEvent=n,this.target=s,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(a=e[i],this[i]=a?a(n):n[i]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?od:Ax,this.isPropagationStopped=Ax,this}return rt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=od)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=od)},persist:function(){},isPersistent:od}),t}var pi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Im=Na(pi),Ql=rt({},pi,{view:0,detail:0}),EP=Na(Ql),rp,op,hl,Yd=rt({},Ql,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bm,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!==hl&&(hl&&e.type==="mousemove"?(rp=e.screenX-hl.screenX,op=e.screenY-hl.screenY):op=rp=0,hl=e),rp)},movementY:function(e){return"movementY"in e?e.movementY:op}}),Ex=Na(Yd),OP=rt({},Yd,{dataTransfer:0}),NP=Na(OP),FP=rt({},Ql,{relatedTarget:0}),np=Na(FP),zP=rt({},pi,{animationName:0,elapsedTime:0,pseudoElement:0}),BP=Na(zP),UP=rt({},pi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),HP=Na(UP),jP=rt({},pi,{data:0}),Ox=Na(jP),VP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qP={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"},WP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function GP(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=WP[e])?!!t[e]:!1}function bm(){return GP}var $P=rt({},Ql,{key:function(e){if(e.key){var t=VP[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=yd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?qP[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bm,charCode:function(e){return e.type==="keypress"?yd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?yd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),KP=Na($P),XP=rt({},Yd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Nx=Na(XP),ZP=rt({},Ql,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bm}),QP=Na(ZP),YP=rt({},pi,{propertyName:0,elapsedTime:0,pseudoElement:0}),JP=Na(YP),e1=rt({},Yd,{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}),t1=Na(e1),a1=[9,13,27,32],km=uo&&"CompositionEvent"in window,kl=null;uo&&"documentMode"in document&&(kl=document.documentMode);var r1=uo&&"TextEvent"in window&&!kl,nw=uo&&(!km||kl&&8<kl&&11>=kl),Fx=" ",zx=!1;function sw(e,t){switch(e){case"keyup":return a1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function iw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qs=!1;function o1(e,t){switch(e){case"compositionend":return iw(t);case"keypress":return t.which!==32?null:(zx=!0,Fx);case"textInput":return e=t.data,e===Fx&&zx?null:e;default:return null}}function n1(e,t){if(qs)return e==="compositionend"||!km&&sw(e,t)?(e=ow(),xd=Lm=jo=null,qs=!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 nw&&t.locale!=="ko"?null:t.data;default:return null}}var s1={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 Bx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!s1[e.type]:t==="textarea"}function lw(e,t,a,r){By(r),t=Ed(t,"onChange"),0<t.length&&(a=new Im("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Rl=null,Bl=null;function i1(e){yw(e,0)}function Jd(e){var t=$s(e);if(_y(t))return e}function l1(e,t){if(e==="change")return t}var uw=!1;uo&&(uo?(sd="oninput"in document,sd||(sp=document.createElement("div"),sp.setAttribute("oninput","return;"),sd=typeof sp.oninput=="function"),nd=sd):nd=!1,uw=nd&&(!document.documentMode||9<document.documentMode));var nd,sd,sp;function Ux(){Rl&&(Rl.detachEvent("onpropertychange",dw),Bl=Rl=null)}function dw(e){if(e.propertyName==="value"&&Jd(Bl)){var t=[];lw(t,Bl,e,xm(e)),Vy(i1,t)}}function u1(e,t,a){e==="focusin"?(Ux(),Rl=t,Bl=a,Rl.attachEvent("onpropertychange",dw)):e==="focusout"&&Ux()}function d1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jd(Bl)}function c1(e,t){if(e==="click")return Jd(t)}function f1(e,t){if(e==="input"||e==="change")return Jd(t)}function p1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ur=typeof Object.is=="function"?Object.is:p1;function Ul(e,t){if(ur(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var o=a[r];if(!wp.call(t,o)||!ur(e[o],t[o]))return!1}return!0}function Hx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jx(e,t){var a=Hx(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Hx(a)}}function cw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fw(){for(var e=window,t=Rd();t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Rd(e.document)}return t}function Rm(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 m1(e){var t=fw(),a=e.focusedElem,r=e.selectionRange;if(t!==a&&a&&a.ownerDocument&&cw(a.ownerDocument.documentElement,a)){if(r!==null&&Rm(a)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in a)a.selectionStart=t,a.selectionEnd=Math.min(e,a.value.length);else if(e=(t=a.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=a.textContent.length,n=Math.min(r.start,o);r=r.end===void 0?n:Math.min(r.end,o),!e.extend&&n>r&&(o=r,r=n,n=o),o=jx(a,n);var s=jx(a,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),n>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=a;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<t.length;a++)e=t[a],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var h1=uo&&"documentMode"in document&&11>=document.documentMode,Ws=null,Bp=null,Pl=null,Up=!1;function Vx(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Up||Ws==null||Ws!==Rd(r)||(r=Ws,"selectionStart"in r&&Rm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Pl&&Ul(Pl,r)||(Pl=r,r=Ed(Bp,"onSelect"),0<r.length&&(t=new Im("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=Ws)))}function id(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Gs={animationend:id("Animation","AnimationEnd"),animationiteration:id("Animation","AnimationIteration"),animationstart:id("Animation","AnimationStart"),transitionend:id("Transition","TransitionEnd")},ip={},pw={};uo&&(pw=document.createElement("div").style,"AnimationEvent"in window||(delete Gs.animationend.animation,delete Gs.animationiteration.animation,delete Gs.animationstart.animation),"TransitionEvent"in window||delete Gs.transitionend.transition);function ec(e){if(ip[e])return ip[e];if(!Gs[e])return e;var t=Gs[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in pw)return ip[e]=t[a];return e}var mw=ec("animationend"),hw=ec("animationiteration"),gw=ec("animationstart"),vw=ec("transitionend"),xw=new Map,qx="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 en(e,t){xw.set(e,t),Fn(t,[e])}for(ld=0;ld<qx.length;ld++)ud=qx[ld],Wx=ud.toLowerCase(),Gx=ud[0].toUpperCase()+ud.slice(1),en(Wx,"on"+Gx);var ud,Wx,Gx,ld;en(mw,"onAnimationEnd");en(hw,"onAnimationIteration");en(gw,"onAnimationStart");en("dblclick","onDoubleClick");en("focusin","onFocus");en("focusout","onBlur");en(vw,"onTransitionEnd");si("onMouseEnter",["mouseout","mouseover"]);si("onMouseLeave",["mouseout","mouseover"]);si("onPointerEnter",["pointerout","pointerover"]);si("onPointerLeave",["pointerout","pointerover"]);Fn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Fn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Fn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Fn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Fn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Fn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ll="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(" "),g1=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ll));function $x(e,t,a){var r=e.type||"unknown-event";e.currentTarget=a,gP(r,t,void 0,e),e.currentTarget=null}function yw(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],o=r.event;r=r.listeners;e:{var n=void 0;if(t)for(var s=r.length-1;0<=s;s--){var i=r[s],l=i.instance,u=i.currentTarget;if(i=i.listener,l!==n&&o.isPropagationStopped())break e;$x(o,i,u),n=l}else for(s=0;s<r.length;s++){if(i=r[s],l=i.instance,u=i.currentTarget,i=i.listener,l!==n&&o.isPropagationStopped())break e;$x(o,i,u),n=l}}}if(Dd)throw e=Op,Dd=!1,Op=null,e}function Qe(e,t){var a=t[Wp];a===void 0&&(a=t[Wp]=new Set);var r=e+"__bubble";a.has(r)||(ww(t,e,2,!1),a.add(r))}function lp(e,t,a){var r=0;t&&(r|=4),ww(a,e,r,t)}var dd="_reactListening"+Math.random().toString(36).slice(2);function Hl(e){if(!e[dd]){e[dd]=!0,Ry.forEach(function(a){a!=="selectionchange"&&(g1.has(a)||lp(a,!1,e),lp(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[dd]||(t[dd]=!0,lp("selectionchange",!1,t))}}function ww(e,t,a,r){switch(rw(t)){case 1:var o=_P;break;case 4:o=AP;break;default:o=Sm}a=o.bind(null,t,a,e),o=void 0,!Ep||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function up(e,t,a,r,o){var n=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var i=r.stateNode.containerInfo;if(i===o||i.nodeType===8&&i.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;i!==null;){if(s=Rn(i),s===null)return;if(l=s.tag,l===5||l===6){r=n=s;continue e}i=i.parentNode}}r=r.return}Vy(function(){var u=n,c=xm(a),d=[];e:{var f=xw.get(e);if(f!==void 0){var h=Im,v=e;switch(e){case"keypress":if(yd(a)===0)break e;case"keydown":case"keyup":h=KP;break;case"focusin":v="focus",h=np;break;case"focusout":v="blur",h=np;break;case"beforeblur":case"afterblur":h=np;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Ex;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=NP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=QP;break;case mw:case hw:case gw:h=BP;break;case vw:h=JP;break;case"scroll":h=EP;break;case"wheel":h=t1;break;case"copy":case"cut":case"paste":h=HP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Nx}var x=(t&4)!==0,w=!x&&e==="scroll",m=x?f!==null?f+"Capture":null:f;x=[];for(var p=u,g;p!==null;){g=p;var y=g.stateNode;if(g.tag===5&&y!==null&&(g=y,m!==null&&(y=Ol(p,m),y!=null&&x.push(jl(p,y,g)))),w)break;p=p.return}0<x.length&&(f=new h(f,v,null,a,c),d.push({event:f,listeners:x}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&a!==_p&&(v=a.relatedTarget||a.fromElement)&&(Rn(v)||v[co]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(v=a.relatedTarget||a.toElement,h=u,v=v?Rn(v):null,v!==null&&(w=zn(v),v!==w||v.tag!==5&&v.tag!==6)&&(v=null)):(h=null,v=u),h!==v)){if(x=Ex,y="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(x=Nx,y="onPointerLeave",m="onPointerEnter",p="pointer"),w=h==null?f:$s(h),g=v==null?f:$s(v),f=new x(y,p+"leave",h,a,c),f.target=w,f.relatedTarget=g,y=null,Rn(c)===u&&(x=new x(m,p+"enter",v,a,c),x.target=g,x.relatedTarget=w,y=x),w=y,h&&v)t:{for(x=h,m=v,p=0,g=x;g;g=Hs(g))p++;for(g=0,y=m;y;y=Hs(y))g++;for(;0<p-g;)x=Hs(x),p--;for(;0<g-p;)m=Hs(m),g--;for(;p--;){if(x===m||m!==null&&x===m.alternate)break t;x=Hs(x),m=Hs(m)}x=null}else x=null;h!==null&&Kx(d,f,h,x,!1),v!==null&&w!==null&&Kx(d,w,v,x,!0)}}e:{if(f=u?$s(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var L=l1;else if(Bx(f))if(uw)L=f1;else{L=d1;var b=u1}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(L=c1);if(L&&(L=L(e,u))){lw(d,L,a,c);break e}b&&b(e,f,u),e==="focusout"&&(b=f._wrapperState)&&b.controlled&&f.type==="number"&&Rp(f,"number",f.value)}switch(b=u?$s(u):window,e){case"focusin":(Bx(b)||b.contentEditable==="true")&&(Ws=b,Bp=u,Pl=null);break;case"focusout":Pl=Bp=Ws=null;break;case"mousedown":Up=!0;break;case"contextmenu":case"mouseup":case"dragend":Up=!1,Vx(d,a,c);break;case"selectionchange":if(h1)break;case"keydown":case"keyup":Vx(d,a,c)}var R;if(km)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else qs?sw(e,a)&&(k="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(k="onCompositionStart");k&&(nw&&a.locale!=="ko"&&(qs||k!=="onCompositionStart"?k==="onCompositionEnd"&&qs&&(R=ow()):(jo=c,Lm="value"in jo?jo.value:jo.textContent,qs=!0)),b=Ed(u,k),0<b.length&&(k=new Ox(k,e,null,a,c),d.push({event:k,listeners:b}),R?k.data=R:(R=iw(a),R!==null&&(k.data=R)))),(R=r1?o1(e,a):n1(e,a))&&(u=Ed(u,"onBeforeInput"),0<u.length&&(c=new Ox("onBeforeInput","beforeinput",null,a,c),d.push({event:c,listeners:u}),c.data=R))}yw(d,t)})}function jl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ed(e,t){for(var a=t+"Capture",r=[];e!==null;){var o=e,n=o.stateNode;o.tag===5&&n!==null&&(o=n,n=Ol(e,a),n!=null&&r.unshift(jl(e,n,o)),n=Ol(e,t),n!=null&&r.push(jl(e,n,o))),e=e.return}return r}function Hs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Kx(e,t,a,r,o){for(var n=t._reactName,s=[];a!==null&&a!==r;){var i=a,l=i.alternate,u=i.stateNode;if(l!==null&&l===r)break;i.tag===5&&u!==null&&(i=u,o?(l=Ol(a,n),l!=null&&s.unshift(jl(a,l,i))):o||(l=Ol(a,n),l!=null&&s.push(jl(a,l,i)))),a=a.return}s.length!==0&&e.push({event:t,listeners:s})}var v1=/\r\n?/g,x1=/\u0000|\uFFFD/g;function Xx(e){return(typeof e=="string"?e:""+e).replace(v1,`
6
+ `).replace(x1,"")}function cd(e,t,a){if(t=Xx(t),Xx(e)!==t&&a)throw Error(U(425))}function Od(){}var Hp=null,jp=null;function Vp(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 qp=typeof setTimeout=="function"?setTimeout:void 0,y1=typeof clearTimeout=="function"?clearTimeout:void 0,Zx=typeof Promise=="function"?Promise:void 0,w1=typeof queueMicrotask=="function"?queueMicrotask:typeof Zx<"u"?function(e){return Zx.resolve(null).then(e).catch(C1)}:qp;function C1(e){setTimeout(function(){throw e})}function dp(e,t){var a=t,r=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(r===0){e.removeChild(o),zl(t);return}r--}else a!=="$"&&a!=="$?"&&a!=="$!"||r++;a=o}while(a);zl(t)}function $o(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 Qx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}var mi=Math.random().toString(36).slice(2),Mr="__reactFiber$"+mi,Vl="__reactProps$"+mi,co="__reactContainer$"+mi,Wp="__reactEvents$"+mi,S1="__reactListeners$"+mi,L1="__reactHandles$"+mi;function Rn(e){var t=e[Mr];if(t)return t;for(var a=e.parentNode;a;){if(t=a[co]||a[Mr]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Qx(e);e!==null;){if(a=e[Mr])return a;e=Qx(e)}return t}e=a,a=e.parentNode}return null}function Yl(e){return e=e[Mr]||e[co],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function $s(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(U(33))}function tc(e){return e[Vl]||null}var Gp=[],Ks=-1;function tn(e){return{current:e}}function Ye(e){0>Ks||(e.current=Gp[Ks],Gp[Ks]=null,Ks--)}function Xe(e,t){Ks++,Gp[Ks]=e.current,e.current=t}var Jo={},Zt=tn(Jo),ya=tn(!1),_n=Jo;function ii(e,t){var a=e.type.contextTypes;if(!a)return Jo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},n;for(n in a)o[n]=t[n];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function wa(e){return e=e.childContextTypes,e!=null}function Nd(){Ye(ya),Ye(Zt)}function Yx(e,t,a){if(Zt.current!==Jo)throw Error(U(168));Xe(Zt,t),Xe(ya,a)}function Cw(e,t,a){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return a;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(U(108,uP(e)||"Unknown",o));return rt({},a,r)}function Fd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Jo,_n=Zt.current,Xe(Zt,e),Xe(ya,ya.current),!0}function Jx(e,t,a){var r=e.stateNode;if(!r)throw Error(U(169));a?(e=Cw(e,t,_n),r.__reactInternalMemoizedMergedChildContext=e,Ye(ya),Ye(Zt),Xe(Zt,e)):Ye(ya),Xe(ya,a)}var no=null,ac=!1,cp=!1;function Sw(e){no===null?no=[e]:no.push(e)}function I1(e){ac=!0,Sw(e)}function an(){if(!cp&&no!==null){cp=!0;var e=0,t=Ve;try{var a=no;for(Ve=1;e<a.length;e++){var r=a[e];do r=r(!0);while(r!==null)}no=null,ac=!1}catch(o){throw no!==null&&(no=no.slice(e+1)),$y(ym,an),o}finally{Ve=t,cp=!1}}return null}var Xs=[],Zs=0,zd=null,Bd=0,Ha=[],ja=0,An=null,so=1,io="";function bn(e,t){Xs[Zs++]=Bd,Xs[Zs++]=zd,zd=e,Bd=t}function Lw(e,t,a){Ha[ja++]=so,Ha[ja++]=io,Ha[ja++]=An,An=e;var r=so;e=io;var o=32-ir(r)-1;r&=~(1<<o),a+=1;var n=32-ir(t)+o;if(30<n){var s=o-o%5;n=(r&(1<<s)-1).toString(32),r>>=s,o-=s,so=1<<32-ir(t)+o|a<<o|r,io=n+e}else so=1<<n|a<<o|r,io=e}function Pm(e){e.return!==null&&(bn(e,1),Lw(e,1,0))}function Dm(e){for(;e===zd;)zd=Xs[--Zs],Xs[Zs]=null,Bd=Xs[--Zs],Xs[Zs]=null;for(;e===An;)An=Ha[--ja],Ha[ja]=null,io=Ha[--ja],Ha[ja]=null,so=Ha[--ja],Ha[ja]=null}var Ea=null,Aa=null,et=!1,sr=null;function Iw(e,t){var a=Va(5,null,null,0);a.elementType="DELETED",a.stateNode=t,a.return=e,t=e.deletions,t===null?(e.deletions=[a],e.flags|=16):t.push(a)}function ey(e,t){switch(e.tag){case 5:var a=e.type;return t=t.nodeType!==1||a.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ea=e,Aa=$o(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ea=e,Aa=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(a=An!==null?{id:so,overflow:io}:null,e.memoizedState={dehydrated:t,treeContext:a,retryLane:1073741824},a=Va(18,null,null,0),a.stateNode=t,a.return=e,e.child=a,Ea=e,Aa=null,!0):!1;default:return!1}}function $p(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Kp(e){if(et){var t=Aa;if(t){var a=t;if(!ey(e,t)){if($p(e))throw Error(U(418));t=$o(a.nextSibling);var r=Ea;t&&ey(e,t)?Iw(r,a):(e.flags=e.flags&-4097|2,et=!1,Ea=e)}}else{if($p(e))throw Error(U(418));e.flags=e.flags&-4097|2,et=!1,Ea=e}}}function ty(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ea=e}function fd(e){if(e!==Ea)return!1;if(!et)return ty(e),et=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Vp(e.type,e.memoizedProps)),t&&(t=Aa)){if($p(e))throw bw(),Error(U(418));for(;t;)Iw(e,t),t=$o(t.nextSibling)}if(ty(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"){if(t===0){Aa=$o(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++}e=e.nextSibling}Aa=null}}else Aa=Ea?$o(e.stateNode.nextSibling):null;return!0}function bw(){for(var e=Aa;e;)e=$o(e.nextSibling)}function li(){Aa=Ea=null,et=!1}function Tm(e){sr===null?sr=[e]:sr.push(e)}var b1=mo.ReactCurrentBatchConfig;function gl(e,t,a){if(e=a.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(U(309));var r=a.stateNode}if(!r)throw Error(U(147,e));var o=r,n=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===n?t.ref:(t=function(s){var i=o.refs;s===null?delete i[n]:i[n]=s},t._stringRef=n,t)}if(typeof e!="string")throw Error(U(284));if(!a._owner)throw Error(U(290,e))}return e}function pd(e,t){throw e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ay(e){var t=e._init;return t(e._payload)}function kw(e){function t(m,p){if(e){var g=m.deletions;g===null?(m.deletions=[p],m.flags|=16):g.push(p)}}function a(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function r(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 o(m,p){return m=Qo(m,p),m.index=0,m.sibling=null,m}function n(m,p,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<p?(m.flags|=2,p):g):(m.flags|=2,p)):(m.flags|=1048576,p)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function i(m,p,g,y){return p===null||p.tag!==6?(p=xp(g,m.mode,y),p.return=m,p):(p=o(p,g),p.return=m,p)}function l(m,p,g,y){var L=g.type;return L===Vs?c(m,p,g.props.children,y,g.key):p!==null&&(p.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===zo&&ay(L)===p.type)?(y=o(p,g.props),y.ref=gl(m,p,g),y.return=m,y):(y=kd(g.type,g.key,g.props,null,m.mode,y),y.ref=gl(m,p,g),y.return=m,y)}function u(m,p,g,y){return p===null||p.tag!==4||p.stateNode.containerInfo!==g.containerInfo||p.stateNode.implementation!==g.implementation?(p=yp(g,m.mode,y),p.return=m,p):(p=o(p,g.children||[]),p.return=m,p)}function c(m,p,g,y,L){return p===null||p.tag!==7?(p=Mn(g,m.mode,y,L),p.return=m,p):(p=o(p,g),p.return=m,p)}function d(m,p,g){if(typeof p=="string"&&p!==""||typeof p=="number")return p=xp(""+p,m.mode,g),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Yu:return g=kd(p.type,p.key,p.props,null,m.mode,g),g.ref=gl(m,null,p),g.return=m,g;case js:return p=yp(p,m.mode,g),p.return=m,p;case zo:var y=p._init;return d(m,y(p._payload),g)}if(Cl(p)||fl(p))return p=Mn(p,m.mode,g,null),p.return=m,p;pd(m,p)}return null}function f(m,p,g,y){var L=p!==null?p.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return L!==null?null:i(m,p,""+g,y);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Yu:return g.key===L?l(m,p,g,y):null;case js:return g.key===L?u(m,p,g,y):null;case zo:return L=g._init,f(m,p,L(g._payload),y)}if(Cl(g)||fl(g))return L!==null?null:c(m,p,g,y,null);pd(m,g)}return null}function h(m,p,g,y,L){if(typeof y=="string"&&y!==""||typeof y=="number")return m=m.get(g)||null,i(p,m,""+y,L);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Yu:return m=m.get(y.key===null?g:y.key)||null,l(p,m,y,L);case js:return m=m.get(y.key===null?g:y.key)||null,u(p,m,y,L);case zo:var b=y._init;return h(m,p,g,b(y._payload),L)}if(Cl(y)||fl(y))return m=m.get(g)||null,c(p,m,y,L,null);pd(p,y)}return null}function v(m,p,g,y){for(var L=null,b=null,R=p,k=p=0,M=null;R!==null&&k<g.length;k++){R.index>k?(M=R,R=null):M=R.sibling;var E=f(m,R,g[k],y);if(E===null){R===null&&(R=M);break}e&&R&&E.alternate===null&&t(m,R),p=n(E,p,k),b===null?L=E:b.sibling=E,b=E,R=M}if(k===g.length)return a(m,R),et&&bn(m,k),L;if(R===null){for(;k<g.length;k++)R=d(m,g[k],y),R!==null&&(p=n(R,p,k),b===null?L=R:b.sibling=R,b=R);return et&&bn(m,k),L}for(R=r(m,R);k<g.length;k++)M=h(R,m,k,g[k],y),M!==null&&(e&&M.alternate!==null&&R.delete(M.key===null?k:M.key),p=n(M,p,k),b===null?L=M:b.sibling=M,b=M);return e&&R.forEach(function(O){return t(m,O)}),et&&bn(m,k),L}function x(m,p,g,y){var L=fl(g);if(typeof L!="function")throw Error(U(150));if(g=L.call(g),g==null)throw Error(U(151));for(var b=L=null,R=p,k=p=0,M=null,E=g.next();R!==null&&!E.done;k++,E=g.next()){R.index>k?(M=R,R=null):M=R.sibling;var O=f(m,R,E.value,y);if(O===null){R===null&&(R=M);break}e&&R&&O.alternate===null&&t(m,R),p=n(O,p,k),b===null?L=O:b.sibling=O,b=O,R=M}if(E.done)return a(m,R),et&&bn(m,k),L;if(R===null){for(;!E.done;k++,E=g.next())E=d(m,E.value,y),E!==null&&(p=n(E,p,k),b===null?L=E:b.sibling=E,b=E);return et&&bn(m,k),L}for(R=r(m,R);!E.done;k++,E=g.next())E=h(R,m,k,E.value,y),E!==null&&(e&&E.alternate!==null&&R.delete(E.key===null?k:E.key),p=n(E,p,k),b===null?L=E:b.sibling=E,b=E);return e&&R.forEach(function(T){return t(m,T)}),et&&bn(m,k),L}function w(m,p,g,y){if(typeof g=="object"&&g!==null&&g.type===Vs&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Yu:e:{for(var L=g.key,b=p;b!==null;){if(b.key===L){if(L=g.type,L===Vs){if(b.tag===7){a(m,b.sibling),p=o(b,g.props.children),p.return=m,m=p;break e}}else if(b.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===zo&&ay(L)===b.type){a(m,b.sibling),p=o(b,g.props),p.ref=gl(m,b,g),p.return=m,m=p;break e}a(m,b);break}else t(m,b);b=b.sibling}g.type===Vs?(p=Mn(g.props.children,m.mode,y,g.key),p.return=m,m=p):(y=kd(g.type,g.key,g.props,null,m.mode,y),y.ref=gl(m,p,g),y.return=m,m=y)}return s(m);case js:e:{for(b=g.key;p!==null;){if(p.key===b)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){a(m,p.sibling),p=o(p,g.children||[]),p.return=m,m=p;break e}else{a(m,p);break}else t(m,p);p=p.sibling}p=yp(g,m.mode,y),p.return=m,m=p}return s(m);case zo:return b=g._init,w(m,p,b(g._payload),y)}if(Cl(g))return v(m,p,g,y);if(fl(g))return x(m,p,g,y);pd(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(a(m,p.sibling),p=o(p,g),p.return=m,m=p):(a(m,p),p=xp(g,m.mode,y),p.return=m,m=p),s(m)):a(m,p)}return w}var ui=kw(!0),Rw=kw(!1),Ud=tn(null),Hd=null,Qs=null,Mm=null;function _m(){Mm=Qs=Hd=null}function Am(e){var t=Ud.current;Ye(Ud),e._currentValue=t}function Xp(e,t,a){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===a)break;e=e.return}}function oi(e,t){Hd=e,Mm=Qs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(xa=!0),e.firstContext=null)}function Wa(e){var t=e._currentValue;if(Mm!==e)if(e={context:e,memoizedValue:t,next:null},Qs===null){if(Hd===null)throw Error(U(308));Qs=e,Hd.dependencies={lanes:0,firstContext:e}}else Qs=Qs.next=e;return t}var Pn=null;function Em(e){Pn===null?Pn=[e]:Pn.push(e)}function Pw(e,t,a,r){var o=t.interleaved;return o===null?(a.next=a,Em(t)):(a.next=o.next,o.next=a),t.interleaved=a,fo(e,r)}function fo(e,t){e.lanes|=t;var a=e.alternate;for(a!==null&&(a.lanes|=t),a=e,e=e.return;e!==null;)e.childLanes|=t,a=e.alternate,a!==null&&(a.childLanes|=t),a=e,e=e.return;return a.tag===3?a.stateNode:null}var Bo=!1;function Om(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Dw(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 lo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ko(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Ne&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,fo(e,a)}return o=r.interleaved,o===null?(t.next=t,Em(r)):(t.next=o.next,o.next=t),r.interleaved=t,fo(e,a)}function wd(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,wm(e,a)}}function ry(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var o=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var s={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};n===null?o=n=s:n=n.next=s,a=a.next}while(a!==null);n===null?o=n=t:n=n.next=t}else o=n=t;a={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:n,shared:r.shared,effects:r.effects},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function jd(e,t,a,r){var o=e.updateQueue;Bo=!1;var n=o.firstBaseUpdate,s=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var l=i,u=l.next;l.next=null,s===null?n=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,i=c.lastBaseUpdate,i!==s&&(i===null?c.firstBaseUpdate=u:i.next=u,c.lastBaseUpdate=l))}if(n!==null){var d=o.baseState;s=0,c=u=l=null,i=n;do{var f=i.lane,h=i.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var v=e,x=i;switch(f=t,h=a,x.tag){case 1:if(v=x.payload,typeof v=="function"){d=v.call(h,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,f=typeof v=="function"?v.call(h,d,f):v,f==null)break e;d=rt({},d,f);break e;case 2:Bo=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[i]:f.push(i))}else h={eventTime:h,lane:f,tag:i.tag,payload:i.payload,callback:i.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,s|=f;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;f=i,i=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else n===null&&(o.shared.lanes=0);On|=s,e.lanes=s,e.memoizedState=d}}function oy(e,t,a){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=a,typeof o!="function")throw Error(U(191,o));o.call(r)}}}var Jl={},Ar=tn(Jl),ql=tn(Jl),Wl=tn(Jl);function Dn(e){if(e===Jl)throw Error(U(174));return e}function Nm(e,t){switch(Xe(Wl,t),Xe(ql,e),Xe(Ar,Jl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Dp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Dp(t,e)}Ye(Ar),Xe(Ar,t)}function di(){Ye(Ar),Ye(ql),Ye(Wl)}function Tw(e){Dn(Wl.current);var t=Dn(Ar.current),a=Dp(t,e.type);t!==a&&(Xe(ql,e),Xe(Ar,a))}function Fm(e){ql.current===e&&(Ye(Ar),Ye(ql))}var tt=tn(0);function Vd(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)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 fp=[];function zm(){for(var e=0;e<fp.length;e++)fp[e]._workInProgressVersionPrimary=null;fp.length=0}var Cd=mo.ReactCurrentDispatcher,pp=mo.ReactCurrentBatchConfig,En=0,at=null,Lt=null,Tt=null,qd=!1,Dl=!1,Gl=0,k1=0;function $t(){throw Error(U(321))}function Bm(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!ur(e[a],t[a]))return!1;return!0}function Um(e,t,a,r,o,n){if(En=n,at=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Cd.current=e===null||e.memoizedState===null?T1:M1,e=a(r,o),Dl){n=0;do{if(Dl=!1,Gl=0,25<=n)throw Error(U(301));n+=1,Tt=Lt=null,t.updateQueue=null,Cd.current=_1,e=a(r,o)}while(Dl)}if(Cd.current=Wd,t=Lt!==null&&Lt.next!==null,En=0,Tt=Lt=at=null,qd=!1,t)throw Error(U(300));return e}function Hm(){var e=Gl!==0;return Gl=0,e}function Tr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tt===null?at.memoizedState=Tt=e:Tt=Tt.next=e,Tt}function Ga(){if(Lt===null){var e=at.alternate;e=e!==null?e.memoizedState:null}else e=Lt.next;var t=Tt===null?at.memoizedState:Tt.next;if(t!==null)Tt=t,Lt=e;else{if(e===null)throw Error(U(310));Lt=e,e={memoizedState:Lt.memoizedState,baseState:Lt.baseState,baseQueue:Lt.baseQueue,queue:Lt.queue,next:null},Tt===null?at.memoizedState=Tt=e:Tt=Tt.next=e}return Tt}function $l(e,t){return typeof t=="function"?t(e):t}function mp(e){var t=Ga(),a=t.queue;if(a===null)throw Error(U(311));a.lastRenderedReducer=e;var r=Lt,o=r.baseQueue,n=a.pending;if(n!==null){if(o!==null){var s=o.next;o.next=n.next,n.next=s}r.baseQueue=o=n,a.pending=null}if(o!==null){n=o.next,r=r.baseState;var i=s=null,l=null,u=n;do{var c=u.lane;if((En&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(i=l=d,s=r):l=l.next=d,at.lanes|=c,On|=c}u=u.next}while(u!==null&&u!==n);l===null?s=r:l.next=i,ur(r,t.memoizedState)||(xa=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,a.lastRenderedState=r}if(e=a.interleaved,e!==null){o=e;do n=o.lane,at.lanes|=n,On|=n,o=o.next;while(o!==e)}else o===null&&(a.lanes=0);return[t.memoizedState,a.dispatch]}function hp(e){var t=Ga(),a=t.queue;if(a===null)throw Error(U(311));a.lastRenderedReducer=e;var r=a.dispatch,o=a.pending,n=t.memoizedState;if(o!==null){a.pending=null;var s=o=o.next;do n=e(n,s.action),s=s.next;while(s!==o);ur(n,t.memoizedState)||(xa=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,r]}function Mw(){}function _w(e,t){var a=at,r=Ga(),o=t(),n=!ur(r.memoizedState,o);if(n&&(r.memoizedState=o,xa=!0),r=r.queue,jm(Ow.bind(null,a,r,e),[e]),r.getSnapshot!==t||n||Tt!==null&&Tt.memoizedState.tag&1){if(a.flags|=2048,Kl(9,Ew.bind(null,a,r,o,t),void 0,null),Mt===null)throw Error(U(349));(En&30)!==0||Aw(a,t,o)}return o}function Aw(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=at.updateQueue,t===null?(t={lastEffect:null,stores:null},at.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Ew(e,t,a,r){t.value=a,t.getSnapshot=r,Nw(t)&&Fw(e)}function Ow(e,t,a){return a(function(){Nw(t)&&Fw(e)})}function Nw(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!ur(e,a)}catch{return!0}}function Fw(e){var t=fo(e,1);t!==null&&lr(t,e,1,-1)}function ny(e){var t=Tr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$l,lastRenderedState:e},t.queue=e,e=e.dispatch=D1.bind(null,at,e),[t.memoizedState,e]}function Kl(e,t,a,r){return e={tag:e,create:t,destroy:a,deps:r,next:null},t=at.updateQueue,t===null?(t={lastEffect:null,stores:null},at.updateQueue=t,t.lastEffect=e.next=e):(a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e)),e}function zw(){return Ga().memoizedState}function Sd(e,t,a,r){var o=Tr();at.flags|=e,o.memoizedState=Kl(1|t,a,void 0,r===void 0?null:r)}function rc(e,t,a,r){var o=Ga();r=r===void 0?null:r;var n=void 0;if(Lt!==null){var s=Lt.memoizedState;if(n=s.destroy,r!==null&&Bm(r,s.deps)){o.memoizedState=Kl(t,a,n,r);return}}at.flags|=e,o.memoizedState=Kl(1|t,a,n,r)}function sy(e,t){return Sd(8390656,8,e,t)}function jm(e,t){return rc(2048,8,e,t)}function Bw(e,t){return rc(4,2,e,t)}function Uw(e,t){return rc(4,4,e,t)}function Hw(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 jw(e,t,a){return a=a!=null?a.concat([e]):null,rc(4,4,Hw.bind(null,t,e),a)}function Vm(){}function Vw(e,t){var a=Ga();t=t===void 0?null:t;var r=a.memoizedState;return r!==null&&t!==null&&Bm(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function qw(e,t){var a=Ga();t=t===void 0?null:t;var r=a.memoizedState;return r!==null&&t!==null&&Bm(t,r[1])?r[0]:(e=e(),a.memoizedState=[e,t],e)}function Ww(e,t,a){return(En&21)===0?(e.baseState&&(e.baseState=!1,xa=!0),e.memoizedState=a):(ur(a,t)||(a=Zy(),at.lanes|=a,On|=a,e.baseState=!0),t)}function R1(e,t){var a=Ve;Ve=a!==0&&4>a?a:4,e(!0);var r=pp.transition;pp.transition={};try{e(!1),t()}finally{Ve=a,pp.transition=r}}function Gw(){return Ga().memoizedState}function P1(e,t,a){var r=Zo(e);if(a={lane:r,action:a,hasEagerState:!1,eagerState:null,next:null},$w(e))Kw(t,a);else if(a=Pw(e,t,a,r),a!==null){var o=sa();lr(a,e,r,o),Xw(a,t,r)}}function D1(e,t,a){var r=Zo(e),o={lane:r,action:a,hasEagerState:!1,eagerState:null,next:null};if($w(e))Kw(t,o);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var s=t.lastRenderedState,i=n(s,a);if(o.hasEagerState=!0,o.eagerState=i,ur(i,s)){var l=t.interleaved;l===null?(o.next=o,Em(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}a=Pw(e,t,o,r),a!==null&&(o=sa(),lr(a,e,r,o),Xw(a,t,r))}}function $w(e){var t=e.alternate;return e===at||t!==null&&t===at}function Kw(e,t){Dl=qd=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Xw(e,t,a){if((a&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,wm(e,a)}}var Wd={readContext:Wa,useCallback:$t,useContext:$t,useEffect:$t,useImperativeHandle:$t,useInsertionEffect:$t,useLayoutEffect:$t,useMemo:$t,useReducer:$t,useRef:$t,useState:$t,useDebugValue:$t,useDeferredValue:$t,useTransition:$t,useMutableSource:$t,useSyncExternalStore:$t,useId:$t,unstable_isNewReconciler:!1},T1={readContext:Wa,useCallback:function(e,t){return Tr().memoizedState=[e,t===void 0?null:t],e},useContext:Wa,useEffect:sy,useImperativeHandle:function(e,t,a){return a=a!=null?a.concat([e]):null,Sd(4194308,4,Hw.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Sd(4194308,4,e,t)},useInsertionEffect:function(e,t){return Sd(4,2,e,t)},useMemo:function(e,t){var a=Tr();return t=t===void 0?null:t,e=e(),a.memoizedState=[e,t],e},useReducer:function(e,t,a){var r=Tr();return t=a!==void 0?a(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=P1.bind(null,at,e),[r.memoizedState,e]},useRef:function(e){var t=Tr();return e={current:e},t.memoizedState=e},useState:ny,useDebugValue:Vm,useDeferredValue:function(e){return Tr().memoizedState=e},useTransition:function(){var e=ny(!1),t=e[0];return e=R1.bind(null,e[1]),Tr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,a){var r=at,o=Tr();if(et){if(a===void 0)throw Error(U(407));a=a()}else{if(a=t(),Mt===null)throw Error(U(349));(En&30)!==0||Aw(r,t,a)}o.memoizedState=a;var n={value:a,getSnapshot:t};return o.queue=n,sy(Ow.bind(null,r,n,e),[e]),r.flags|=2048,Kl(9,Ew.bind(null,r,n,a,t),void 0,null),a},useId:function(){var e=Tr(),t=Mt.identifierPrefix;if(et){var a=io,r=so;a=(r&~(1<<32-ir(r)-1)).toString(32)+a,t=":"+t+"R"+a,a=Gl++,0<a&&(t+="H"+a.toString(32)),t+=":"}else a=k1++,t=":"+t+"r"+a.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},M1={readContext:Wa,useCallback:Vw,useContext:Wa,useEffect:jm,useImperativeHandle:jw,useInsertionEffect:Bw,useLayoutEffect:Uw,useMemo:qw,useReducer:mp,useRef:zw,useState:function(){return mp($l)},useDebugValue:Vm,useDeferredValue:function(e){var t=Ga();return Ww(t,Lt.memoizedState,e)},useTransition:function(){var e=mp($l)[0],t=Ga().memoizedState;return[e,t]},useMutableSource:Mw,useSyncExternalStore:_w,useId:Gw,unstable_isNewReconciler:!1},_1={readContext:Wa,useCallback:Vw,useContext:Wa,useEffect:jm,useImperativeHandle:jw,useInsertionEffect:Bw,useLayoutEffect:Uw,useMemo:qw,useReducer:hp,useRef:zw,useState:function(){return hp($l)},useDebugValue:Vm,useDeferredValue:function(e){var t=Ga();return Lt===null?t.memoizedState=e:Ww(t,Lt.memoizedState,e)},useTransition:function(){var e=hp($l)[0],t=Ga().memoizedState;return[e,t]},useMutableSource:Mw,useSyncExternalStore:_w,useId:Gw,unstable_isNewReconciler:!1};function or(e,t){if(e&&e.defaultProps){t=rt({},t),e=e.defaultProps;for(var a in e)t[a]===void 0&&(t[a]=e[a]);return t}return t}function Zp(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:rt({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var oc={isMounted:function(e){return(e=e._reactInternals)?zn(e)===e:!1},enqueueSetState:function(e,t,a){e=e._reactInternals;var r=sa(),o=Zo(e),n=lo(r,o);n.payload=t,a!=null&&(n.callback=a),t=Ko(e,n,o),t!==null&&(lr(t,e,o,r),wd(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=sa(),o=Zo(e),n=lo(r,o);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=Ko(e,n,o),t!==null&&(lr(t,e,o,r),wd(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=sa(),r=Zo(e),o=lo(a,r);o.tag=2,t!=null&&(o.callback=t),t=Ko(e,o,r),t!==null&&(lr(t,e,r,a),wd(t,e,r))}};function iy(e,t,a,r,o,n,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,n,s):t.prototype&&t.prototype.isPureReactComponent?!Ul(a,r)||!Ul(o,n):!0}function Zw(e,t,a){var r=!1,o=Jo,n=t.contextType;return typeof n=="object"&&n!==null?n=Wa(n):(o=wa(t)?_n:Zt.current,r=t.contextTypes,n=(r=r!=null)?ii(e,o):Jo),t=new t(a,n),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=oc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=n),t}function ly(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&oc.enqueueReplaceState(t,t.state,null)}function Qp(e,t,a,r){var o=e.stateNode;o.props=a,o.state=e.memoizedState,o.refs={},Om(e);var n=t.contextType;typeof n=="object"&&n!==null?o.context=Wa(n):(n=wa(t)?_n:Zt.current,o.context=ii(e,n)),o.state=e.memoizedState,n=t.getDerivedStateFromProps,typeof n=="function"&&(Zp(e,t,n,a),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&oc.enqueueReplaceState(o,o.state,null),jd(e,a,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function ci(e,t){try{var a="",r=t;do a+=lP(r),r=r.return;while(r);var o=a}catch(n){o=`
7
7
  Error generating stack: `+n.message+`
8
- `+n.stack}return{value:e,source:t,stack:o,digest:null}}function Yf(e,t,a){return{value:e,source:null,stack:a??null,digest:t??null}}function Ep(e,t){try{console.error(t.value)}catch(a){setTimeout(function(){throw a})}}var XP=typeof WeakMap=="function"?WeakMap:Map;function bw(e,t,a){a=Ur(-1,a),a.tag=3,a.payload={element:null};var r=t.value;return a.callback=function(){Ld||(Ld=!0,qp=r),Ep(e,t)},a}function kw(e,t,a){a=Ur(-1,a),a.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;a.payload=function(){return r(o)},a.callback=function(){Ep(e,t)}}var n=e.stateNode;return n!==null&&typeof n.componentDidCatch=="function"&&(a.callback=function(){Ep(e,t),typeof r!="function"&&(Mo===null?Mo=new Set([this]):Mo.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),a}function Fx(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new XP;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(a)||(o.add(a),e=u1.bind(null,e,t,a),t.then(e,e))}function zx(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 Bx(e,t,a,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(t=Ur(-1,1),t.tag=2,To(a,t,1))),a.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var ZP=Wr.ReactCurrentOwner,ta=!1;function jt(e,t,a,r){t.child=e===null?tw(t,null,a,r):Us(t,e.child,a,r)}function Ux(e,t,a,r,o){a=a.render;var n=t.ref;return Os(t,o),r=Sm(e,t,a,r,n,o),a=Lm(),e!==null&&!ta?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qr(e,t,o)):(Ke&&a&&dm(t),t.flags|=1,jt(e,t,r,o),t.child)}function Hx(e,t,a,r,o){if(e===null){var n=a.type;return typeof n=="function"&&!Am(n)&&n.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(t.tag=15,t.type=n,Rw(e,t,n,r,o)):(e=ad(a.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(n=e.child,(e.lanes&o)===0){var s=n.memoizedProps;if(a=a.compare,a=a!==null?a:gl,a(s,r)&&e.ref===t.ref)return qr(e,t,o)}return t.flags|=1,e=_o(n,r),e.ref=t.ref,e.return=t,t.child=e}function Rw(e,t,a,r,o){if(e!==null){var n=e.memoizedProps;if(gl(n,r)&&e.ref===t.ref)if(ta=!1,t.pendingProps=r=n,(e.lanes&o)!==0)(e.flags&131072)!==0&&(ta=!0);else return t.lanes=e.lanes,qr(e,t,o)}return Op(e,t,a,r,o)}function Pw(e,t,a){var r=t.pendingProps,o=r.children,n=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ve(Ms,da),da|=a;else{if((a&1073741824)===0)return e=n!==null?n.baseLanes|a:a,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ve(Ms,da),da|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=n!==null?n.baseLanes:a,Ve(Ms,da),da|=r}else n!==null?(r=n.baseLanes|a,t.memoizedState=null):r=a,Ve(Ms,da),da|=r;return jt(e,t,o,a),t.child}function Tw(e,t){var a=t.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(t.flags|=512,t.flags|=2097152)}function Op(e,t,a,r,o){var n=ra(a)?fn:Et.current;return n=zs(t,n),Os(t,o),a=Sm(e,t,a,r,n,o),r=Lm(),e!==null&&!ta?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qr(e,t,o)):(Ke&&r&&dm(t),t.flags|=1,jt(e,t,a,o),t.child)}function jx(e,t,a,r,o){if(ra(a)){var n=!0;pd(t)}else n=!1;if(Os(t,o),t.stateNode===null)Ju(e,t),Iw(t,a,r),Ap(t,a,r,o),r=!0;else if(e===null){var s=t.stateNode,i=t.memoizedProps;s.props=i;var l=s.context,u=a.contextType;typeof u=="object"&&u!==null?u=Ia(u):(u=ra(a)?fn:Et.current,u=zs(t,u));var d=a.getDerivedStateFromProps,c=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";c||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==r||l!==u)&&Nx(t,s,r,u),wo=!1;var f=t.memoizedState;s.state=f,xd(t,r,s,o),l=t.memoizedState,i!==r||f!==l||aa.current||wo?(typeof d=="function"&&(_p(t,a,d,r),l=t.memoizedState),(i=wo||Ox(t,a,i,r,f,l,u))?(c||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=i):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,rw(e,t),i=t.memoizedProps,u=t.type===t.elementType?i:Oa(t.type,i),s.props=u,c=t.pendingProps,f=s.context,l=a.contextType,typeof l=="object"&&l!==null?l=Ia(l):(l=ra(a)?fn:Et.current,l=zs(t,l));var h=a.getDerivedStateFromProps;(d=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==c||f!==l)&&Nx(t,s,r,l),wo=!1,f=t.memoizedState,s.state=f,xd(t,r,s,o);var v=t.memoizedState;i!==c||f!==v||aa.current||wo?(typeof h=="function"&&(_p(t,a,h,r),v=t.memoizedState),(u=wo||Ox(t,a,u,r,f,v,l)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,v,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,v,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),s.props=r,s.state=v,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Np(e,t,a,r,n,o)}function Np(e,t,a,r,o,n){Tw(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Rx(t,a,!1),qr(e,t,n);r=t.stateNode,ZP.current=t;var i=s&&typeof a.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Us(t,e.child,null,n),t.child=Us(t,null,i,n)):jt(e,t,i,n),t.memoizedState=r.state,o&&Rx(t,a,!0),t.child}function Mw(e){var t=e.stateNode;t.pendingContext?kx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&kx(e,t.context,!1),xm(e,t.containerInfo)}function Vx(e,t,a,r,o){return Bs(),fm(o),t.flags|=256,jt(e,t,a,r),t.child}var Fp={dehydrated:null,treeContext:null,retryLane:0};function zp(e){return{baseLanes:e,cachePool:null,transitions:null}}function Dw(e,t,a){var r=t.pendingProps,o=Xe.current,n=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(o&2)!==0),i?(n=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Ve(Xe,o&1),e===null)return Mp(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=r.children,e=r.fallback,n?(r=t.mode,n=t.child,s={mode:"hidden",children:s},(r&1)===0&&n!==null?(n.childLanes=0,n.pendingProps=s):n=Fd(s,r,0,null),e=cn(e,r,a,null),n.return=t,e.return=t,n.sibling=e,t.child=n,t.child.memoizedState=zp(a),t.memoizedState=Fp,e):km(t,s));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return QP(e,t,s,r,i,o,a);if(n){n=r.fallback,s=t.mode,o=e.child,i=o.sibling;var l={mode:"hidden",children:r.children};return(s&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=_o(o,l),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?n=_o(i,n):(n=cn(n,s,a,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,r=n,n=t.child,s=e.child.memoizedState,s=s===null?zp(a):{baseLanes:s.baseLanes|a,cachePool:null,transitions:s.transitions},n.memoizedState=s,n.childLanes=e.childLanes&~a,t.memoizedState=Fp,r}return n=e.child,e=n.sibling,r=_o(n,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=a),r.return=t,r.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=r,t.memoizedState=null,r}function km(e,t){return t=Fd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function qu(e,t,a,r){return r!==null&&fm(r),Us(t,e.child,null,a),e=km(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function QP(e,t,a,r,o,n,s){if(a)return t.flags&256?(t.flags&=-257,r=Yf(Error(U(422))),qu(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(n=r.fallback,o=t.mode,r=Fd({mode:"visible",children:r.children},o,0,null),n=cn(n,o,s,null),n.flags|=2,r.return=t,n.return=t,r.sibling=n,t.child=r,(t.mode&1)!==0&&Us(t,e.child,null,s),t.child.memoizedState=zp(s),t.memoizedState=Fp,n);if((t.mode&1)===0)return qu(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var i=r.dgst;return r=i,n=Error(U(419)),r=Yf(n,r,void 0),qu(e,t,s,r)}if(i=(s&e.childLanes)!==0,ta||i){if(r=ht,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(r.suspendedLanes|s))!==0?0:o,o!==0&&o!==n.retryLane&&(n.retryLane=o,Vr(e,o),Ba(r,e,o,-1))}return _m(),r=Yf(Error(U(421))),qu(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=d1.bind(null,e),o._reactRetry=t,null):(e=n.treeContext,ca=Po(o.nextSibling),fa=t,Ke=!0,Fa=null,e!==null&&(wa[Ca++]=zr,wa[Ca++]=Br,wa[Ca++]=pn,zr=e.id,Br=e.overflow,pn=t),t=km(t,r.children),t.flags|=4096,t)}function qx(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Dp(e.return,t,a)}function Jf(e,t,a,r,o){var n=e.memoizedState;n===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:o}:(n.isBackwards=t,n.rendering=null,n.renderingStartTime=0,n.last=r,n.tail=a,n.tailMode=o)}function _w(e,t,a){var r=t.pendingProps,o=r.revealOrder,n=r.tail;if(jt(e,t,r.children,a),r=Xe.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&qx(e,a,t);else if(e.tag===19)qx(e,a,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}r&=1}if(Ve(Xe,r),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&yd(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Jf(t,!1,o,a,n);break;case"backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&yd(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Jf(t,!0,a,null,n);break;case"together":Jf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ju(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qr(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),hn|=t.lanes,(a&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,a=_o(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=_o(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function YP(e,t,a){switch(t.tag){case 3:Mw(t),Bs();break;case 5:ow(t);break;case 1:ra(t.type)&&pd(t);break;case 4:xm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ve(gd,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ve(Xe,Xe.current&1),t.flags|=128,null):(a&t.child.childLanes)!==0?Dw(e,t,a):(Ve(Xe,Xe.current&1),e=qr(e,t,a),e!==null?e.sibling:null);Ve(Xe,Xe.current&1);break;case 19:if(r=(a&t.childLanes)!==0,(e.flags&128)!==0){if(r)return _w(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ve(Xe,Xe.current),r)break;return null;case 22:case 23:return t.lanes=0,Pw(e,t,a)}return qr(e,t,a)}var Aw,Bp,Ew,Ow;Aw=function(e,t){for(var a=t.child;a!==null;){if(a.tag===5||a.tag===6)e.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return;a=a.return}a.sibling.return=a.return,a=a.sibling}};Bp=function(){};Ew=function(e,t,a,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,un(dr.current);var n=null;switch(a){case"input":o=ip(e,o),r=ip(e,r),n=[];break;case"select":o=Qe({},o,{value:void 0}),r=Qe({},r,{value:void 0}),n=[];break;case"textarea":o=dp(e,o),r=dp(e,r),n=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=cd)}fp(a,r);var s;a=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var i=o[u];for(s in i)i.hasOwnProperty(s)&&(a||(a={}),a[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ul.hasOwnProperty(u)?n||(n=[]):(n=n||[]).push(u,null));for(u in r){var l=r[u];if(i=o?.[u],r.hasOwnProperty(u)&&l!==i&&(l!=null||i!=null))if(u==="style")if(i){for(s in i)!i.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(a||(a={}),a[s]="");for(s in l)l.hasOwnProperty(s)&&i[s]!==l[s]&&(a||(a={}),a[s]=l[s])}else a||(n||(n=[]),n.push(u,a)),a=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,i=i?i.__html:void 0,l!=null&&i!==l&&(n=n||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(n=n||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ul.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&We("scroll",e),n||i===l||(n=[])):(n=n||[]).push(u,l))}a&&(n=n||[]).push("style",a);var u=n;(t.updateQueue=u)&&(t.flags|=4)}};Ow=function(e,t,a,r){a!==r&&(t.flags|=4)};function $i(e,t){if(!Ke)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function _t(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function JP(e,t,a){var r=t.pendingProps;switch(cm(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(t),null;case 1:return ra(t.type)&&fd(),_t(t),null;case 3:return r=t.stateNode,Hs(),Ge(aa),Ge(Et),wm(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ju(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Fa!==null&&($p(Fa),Fa=null))),Bp(e,t),_t(t),null;case 5:ym(t);var o=un(Cl.current);if(a=t.type,e!==null&&t.stateNode!=null)Ew(e,t,a,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(U(166));return _t(t),null}if(e=un(dr.current),ju(t)){r=t.stateNode,a=t.type;var n=t.memoizedProps;switch(r[lr]=t,r[yl]=n,e=(t.mode&1)!==0,a){case"dialog":We("cancel",r),We("close",r);break;case"iframe":case"object":case"embed":We("load",r);break;case"video":case"audio":for(o=0;o<Ji.length;o++)We(Ji[o],r);break;case"source":We("error",r);break;case"img":case"image":case"link":We("error",r),We("load",r);break;case"details":We("toggle",r);break;case"input":Yv(r,n),We("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!n.multiple},We("invalid",r);break;case"textarea":ex(r,n),We("invalid",r)}fp(a,n),o=null;for(var s in n)if(n.hasOwnProperty(s)){var i=n[s];s==="children"?typeof i=="string"?r.textContent!==i&&(n.suppressHydrationWarning!==!0&&Hu(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(n.suppressHydrationWarning!==!0&&Hu(r.textContent,i,e),o=["children",""+i]):ul.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&We("scroll",r)}switch(a){case"input":Tu(r),Jv(r,n,!0);break;case"textarea":Tu(r),tx(r);break;case"select":case"option":break;default:typeof n.onClick=="function"&&(r.onclick=cd)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=uy(a)),e==="http://www.w3.org/1999/xhtml"?a==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(a,{is:r.is}):(e=s.createElement(a),a==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,a),e[lr]=t,e[yl]=r,Aw(e,t,!1,!1),t.stateNode=e;e:{switch(s=pp(a,r),a){case"dialog":We("cancel",e),We("close",e),o=r;break;case"iframe":case"object":case"embed":We("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ji.length;o++)We(Ji[o],e);o=r;break;case"source":We("error",e),o=r;break;case"img":case"image":case"link":We("error",e),We("load",e),o=r;break;case"details":We("toggle",e),o=r;break;case"input":Yv(e,r),o=ip(e,r),We("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Qe({},r,{value:void 0}),We("invalid",e);break;case"textarea":ex(e,r),o=dp(e,r),We("invalid",e);break;default:o=r}fp(a,o),i=o;for(n in i)if(i.hasOwnProperty(n)){var l=i[n];n==="style"?fy(e,l):n==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&dy(e,l)):n==="children"?typeof l=="string"?(a!=="textarea"||l!=="")&&dl(e,l):typeof l=="number"&&dl(e,""+l):n!=="suppressContentEditableWarning"&&n!=="suppressHydrationWarning"&&n!=="autoFocus"&&(ul.hasOwnProperty(n)?l!=null&&n==="onScroll"&&We("scroll",e):l!=null&&Zp(e,n,l,s))}switch(a){case"input":Tu(e),Jv(e,r,!1);break;case"textarea":Tu(e),tx(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ao(r.value));break;case"select":e.multiple=!!r.multiple,n=r.value,n!=null?Ds(e,!!r.multiple,n,!1):r.defaultValue!=null&&Ds(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=cd)}switch(a){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return _t(t),null;case 6:if(e&&t.stateNode!=null)Ow(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(U(166));if(a=un(Cl.current),un(dr.current),ju(t)){if(r=t.stateNode,a=t.memoizedProps,r[lr]=t,(n=r.nodeValue!==a)&&(e=fa,e!==null))switch(e.tag){case 3:Hu(r.nodeValue,a,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Hu(r.nodeValue,a,(e.mode&1)!==0)}n&&(t.flags|=4)}else r=(a.nodeType===9?a:a.ownerDocument).createTextNode(r),r[lr]=t,t.stateNode=r}return _t(t),null;case 13:if(Ge(Xe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ke&&ca!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Jy(),Bs(),t.flags|=98560,n=!1;else if(n=ju(t),r!==null&&r.dehydrated!==null){if(e===null){if(!n)throw Error(U(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(U(317));n[lr]=t}else Bs(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;_t(t),n=!1}else Fa!==null&&($p(Fa),Fa=null),n=!0;if(!n)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=a,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Xe.current&1)!==0?ut===0&&(ut=3):_m())),t.updateQueue!==null&&(t.flags|=4),_t(t),null);case 4:return Hs(),Bp(e,t),e===null&&vl(t.stateNode.containerInfo),_t(t),null;case 10:return hm(t.type._context),_t(t),null;case 17:return ra(t.type)&&fd(),_t(t),null;case 19:if(Ge(Xe),n=t.memoizedState,n===null)return _t(t),null;if(r=(t.flags&128)!==0,s=n.rendering,s===null)if(r)$i(n,!1);else{if(ut!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=yd(e),s!==null){for(t.flags|=128,$i(n,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=a,a=t.child;a!==null;)n=a,e=r,n.flags&=14680066,s=n.alternate,s===null?(n.childLanes=0,n.lanes=e,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,e=s.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),a=a.sibling;return Ve(Xe,Xe.current&1|2),t.child}e=e.sibling}n.tail!==null&&tt()>Vs&&(t.flags|=128,r=!0,$i(n,!1),t.lanes=4194304)}else{if(!r)if(e=yd(s),e!==null){if(t.flags|=128,r=!0,a=e.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),$i(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!Ke)return _t(t),null}else 2*tt()-n.renderingStartTime>Vs&&a!==1073741824&&(t.flags|=128,r=!0,$i(n,!1),t.lanes=4194304);n.isBackwards?(s.sibling=t.child,t.child=s):(a=n.last,a!==null?a.sibling=s:t.child=s,n.last=s)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=tt(),t.sibling=null,a=Xe.current,Ve(Xe,r?a&1|2:a&1),t):(_t(t),null);case 22:case 23:return Dm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(da&1073741824)!==0&&(_t(t),t.subtreeFlags&6&&(t.flags|=8192)):_t(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function e1(e,t){switch(cm(t),t.tag){case 1:return ra(t.type)&&fd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hs(),Ge(aa),Ge(Et),wm(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return ym(t),null;case 13:if(Ge(Xe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Bs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ge(Xe),null;case 4:return Hs(),null;case 10:return hm(t.type._context),null;case 22:case 23:return Dm(),null;case 24:return null;default:return null}}var Wu=!1,At=!1,t1=typeof WeakSet=="function"?WeakSet:Set,Q=null;function Ts(e,t){var a=e.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(r){et(e,t,r)}else a.current=null}function Up(e,t,a){try{a()}catch(r){et(e,t,r)}}var Wx=!1;function a1(e,t){if(Lp=ld,e=Uy(),um(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var o=r.anchorOffset,n=r.focusNode;r=r.focusOffset;try{a.nodeType,n.nodeType}catch{a=null;break e}var s=0,i=-1,l=-1,u=0,d=0,c=e,f=null;t:for(;;){for(var h;c!==a||o!==0&&c.nodeType!==3||(i=s+o),c!==n||r!==0&&c.nodeType!==3||(l=s+r),c.nodeType===3&&(s+=c.nodeValue.length),(h=c.firstChild)!==null;)f=c,c=h;for(;;){if(c===e)break t;if(f===a&&++u===o&&(i=s),f===n&&++d===r&&(l=s),(h=c.nextSibling)!==null)break;c=f,f=c.parentNode}c=h}a=i===-1||l===-1?null:{start:i,end:l}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ip={focusedElem:e,selectionRange:a},ld=!1,Q=t;Q!==null;)if(t=Q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Q=e;else for(;Q!==null;){t=Q;try{var v=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var x=v.memoizedProps,w=v.memoizedState,p=t.stateNode,m=p.getSnapshotBeforeUpdate(t.elementType===t.type?x:Oa(t.type,x),w);p.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(y){et(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,Q=e;break}Q=t.return}return v=Wx,Wx=!1,v}function sl(e,t,a){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var n=o.destroy;o.destroy=void 0,n!==void 0&&Up(t,a,n)}o=o.next}while(o!==r)}}function Od(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var a=t=t.next;do{if((a.tag&e)===e){var r=a.create;a.destroy=r()}a=a.next}while(a!==t)}}function Hp(e){var t=e.ref;if(t!==null){var a=e.stateNode;e.tag,e=a,typeof t=="function"?t(e):t.current=e}}function Nw(e){var t=e.alternate;t!==null&&(e.alternate=null,Nw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[lr],delete t[yl],delete t[Rp],delete t[zP],delete t[BP])),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 Fw(e){return e.tag===5||e.tag===3||e.tag===4}function Gx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fw(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 jp(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.nodeType===8?a.parentNode.insertBefore(e,t):a.insertBefore(e,t):(a.nodeType===8?(t=a.parentNode,t.insertBefore(e,a)):(t=a,t.appendChild(e)),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=cd));else if(r!==4&&(e=e.child,e!==null))for(jp(e,t,a),e=e.sibling;e!==null;)jp(e,t,a),e=e.sibling}function Vp(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Vp(e,t,a),e=e.sibling;e!==null;)Vp(e,t,a),e=e.sibling}var Ct=null,Na=!1;function xo(e,t,a){for(a=a.child;a!==null;)zw(e,t,a),a=a.sibling}function zw(e,t,a){if(ur&&typeof ur.onCommitFiberUnmount=="function")try{ur.onCommitFiberUnmount(Rd,a)}catch{}switch(a.tag){case 5:At||Ts(a,t);case 6:var r=Ct,o=Na;Ct=null,xo(e,t,a),Ct=r,Na=o,Ct!==null&&(Na?(e=Ct,a=a.stateNode,e.nodeType===8?e.parentNode.removeChild(a):e.removeChild(a)):Ct.removeChild(a.stateNode));break;case 18:Ct!==null&&(Na?(e=Ct,a=a.stateNode,e.nodeType===8?Gf(e.parentNode,a):e.nodeType===1&&Gf(e,a),ml(e)):Gf(Ct,a.stateNode));break;case 4:r=Ct,o=Na,Ct=a.stateNode.containerInfo,Na=!0,xo(e,t,a),Ct=r,Na=o;break;case 0:case 11:case 14:case 15:if(!At&&(r=a.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var n=o,s=n.destroy;n=n.tag,s!==void 0&&((n&2)!==0||(n&4)!==0)&&Up(a,t,s),o=o.next}while(o!==r)}xo(e,t,a);break;case 1:if(!At&&(Ts(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=a.memoizedProps,r.state=a.memoizedState,r.componentWillUnmount()}catch(i){et(a,t,i)}xo(e,t,a);break;case 21:xo(e,t,a);break;case 22:a.mode&1?(At=(r=At)||a.memoizedState!==null,xo(e,t,a),At=r):xo(e,t,a);break;default:xo(e,t,a)}}function $x(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var a=e.stateNode;a===null&&(a=e.stateNode=new t1),t.forEach(function(r){var o=c1.bind(null,e,r);a.has(r)||(a.add(r),r.then(o,o))})}}function Ea(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var o=a[r];try{var n=e,s=t,i=s;e:for(;i!==null;){switch(i.tag){case 5:Ct=i.stateNode,Na=!1;break e;case 3:Ct=i.stateNode.containerInfo,Na=!0;break e;case 4:Ct=i.stateNode.containerInfo,Na=!0;break e}i=i.return}if(Ct===null)throw Error(U(160));zw(n,s,o),Ct=null,Na=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){et(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Bw(t,e),t=t.sibling}function Bw(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ea(t,e),sr(e),r&4){try{sl(3,e,e.return),Od(3,e)}catch(x){et(e,e.return,x)}try{sl(5,e,e.return)}catch(x){et(e,e.return,x)}}break;case 1:Ea(t,e),sr(e),r&512&&a!==null&&Ts(a,a.return);break;case 5:if(Ea(t,e),sr(e),r&512&&a!==null&&Ts(a,a.return),e.flags&32){var o=e.stateNode;try{dl(o,"")}catch(x){et(e,e.return,x)}}if(r&4&&(o=e.stateNode,o!=null)){var n=e.memoizedProps,s=a!==null?a.memoizedProps:n,i=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{i==="input"&&n.type==="radio"&&n.name!=null&&iy(o,n),pp(i,s);var u=pp(i,n);for(s=0;s<l.length;s+=2){var d=l[s],c=l[s+1];d==="style"?fy(o,c):d==="dangerouslySetInnerHTML"?dy(o,c):d==="children"?dl(o,c):Zp(o,d,c,u)}switch(i){case"input":lp(o,n);break;case"textarea":ly(o,n);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!n.multiple;var h=n.value;h!=null?Ds(o,!!n.multiple,h,!1):f!==!!n.multiple&&(n.defaultValue!=null?Ds(o,!!n.multiple,n.defaultValue,!0):Ds(o,!!n.multiple,n.multiple?[]:"",!1))}o[yl]=n}catch(x){et(e,e.return,x)}}break;case 6:if(Ea(t,e),sr(e),r&4){if(e.stateNode===null)throw Error(U(162));o=e.stateNode,n=e.memoizedProps;try{o.nodeValue=n}catch(x){et(e,e.return,x)}}break;case 3:if(Ea(t,e),sr(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{ml(t.containerInfo)}catch(x){et(e,e.return,x)}break;case 4:Ea(t,e),sr(e);break;case 13:Ea(t,e),sr(e),o=e.child,o.flags&8192&&(n=o.memoizedState!==null,o.stateNode.isHidden=n,!n||o.alternate!==null&&o.alternate.memoizedState!==null||(Tm=tt())),r&4&&$x(e);break;case 22:if(d=a!==null&&a.memoizedState!==null,e.mode&1?(At=(u=At)||d,Ea(t,e),At=u):Ea(t,e),sr(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&(e.mode&1)!==0)for(Q=e,d=e.child;d!==null;){for(c=Q=d;Q!==null;){switch(f=Q,h=f.child,f.tag){case 0:case 11:case 14:case 15:sl(4,f,f.return);break;case 1:Ts(f,f.return);var v=f.stateNode;if(typeof v.componentWillUnmount=="function"){r=f,a=f.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(x){et(r,a,x)}}break;case 5:Ts(f,f.return);break;case 22:if(f.memoizedState!==null){Xx(c);continue}}h!==null?(h.return=f,Q=h):Xx(c)}d=d.sibling}e:for(d=null,c=e;;){if(c.tag===5){if(d===null){d=c;try{o=c.stateNode,u?(n=o.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"):(i=c.stateNode,l=c.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,i.style.display=cy("display",s))}catch(x){et(e,e.return,x)}}}else if(c.tag===6){if(d===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(x){et(e,e.return,x)}}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:Ea(t,e),sr(e),r&4&&$x(e);break;case 21:break;default:Ea(t,e),sr(e)}}function sr(e){var t=e.flags;if(t&2){try{e:{for(var a=e.return;a!==null;){if(Fw(a)){var r=a;break e}a=a.return}throw Error(U(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(dl(o,""),r.flags&=-33);var n=Gx(e);Vp(e,n,o);break;case 3:case 4:var s=r.stateNode.containerInfo,i=Gx(e);jp(e,i,s);break;default:throw Error(U(161))}}catch(l){et(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function r1(e,t,a){Q=e,Uw(e,t,a)}function Uw(e,t,a){for(var r=(e.mode&1)!==0;Q!==null;){var o=Q,n=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Wu;if(!s){var i=o.alternate,l=i!==null&&i.memoizedState!==null||At;i=Wu;var u=At;if(Wu=s,(At=l)&&!u)for(Q=o;Q!==null;)s=Q,l=s.child,s.tag===22&&s.memoizedState!==null?Zx(o):l!==null?(l.return=s,Q=l):Zx(o);for(;n!==null;)Q=n,Uw(n,t,a),n=n.sibling;Q=o,Wu=i,At=u}Kx(e,t,a)}else(o.subtreeFlags&8772)!==0&&n!==null?(n.return=o,Q=n):Kx(e,t,a)}}function Kx(e){for(;Q!==null;){var t=Q;if((t.flags&8772)!==0){var a=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:At||Od(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!At)if(a===null)r.componentDidMount();else{var o=t.elementType===t.type?a.memoizedProps:Oa(t.type,a.memoizedProps);r.componentDidUpdate(o,a.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var n=t.updateQueue;n!==null&&_x(t,n,r);break;case 3:var s=t.updateQueue;if(s!==null){if(a=null,t.child!==null)switch(t.child.tag){case 5:a=t.child.stateNode;break;case 1:a=t.child.stateNode}_x(t,s,a)}break;case 5:var i=t.stateNode;if(a===null&&t.flags&4){a=i;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break;case"img":l.src&&(a.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&&ml(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(U(163))}At||t.flags&512&&Hp(t)}catch(f){et(t,t.return,f)}}if(t===e){Q=null;break}if(a=t.sibling,a!==null){a.return=t.return,Q=a;break}Q=t.return}}function Xx(e){for(;Q!==null;){var t=Q;if(t===e){Q=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Q=a;break}Q=t.return}}function Zx(e){for(;Q!==null;){var t=Q;try{switch(t.tag){case 0:case 11:case 15:var a=t.return;try{Od(4,t)}catch(l){et(t,a,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){et(t,o,l)}}var n=t.return;try{Hp(t)}catch(l){et(t,n,l)}break;case 5:var s=t.return;try{Hp(t)}catch(l){et(t,s,l)}}}catch(l){et(t,t.return,l)}if(t===e){Q=null;break}var i=t.sibling;if(i!==null){i.return=t.return,Q=i;break}Q=t.return}}var o1=Math.ceil,Sd=Wr.ReactCurrentDispatcher,Rm=Wr.ReactCurrentOwner,La=Wr.ReactCurrentBatchConfig,_e=0,ht=null,rt=null,St=0,da=0,Ms=No(0),ut=0,bl=null,hn=0,Nd=0,Pm=0,il=null,ea=null,Tm=0,Vs=1/0,Nr=null,Ld=!1,qp=null,Mo=null,Gu=!1,Io=null,Id=0,ll=0,Wp=null,ed=-1,td=0;function Vt(){return(_e&6)!==0?tt():ed!==-1?ed:ed=tt()}function Do(e){return(e.mode&1)===0?1:(_e&2)!==0&&St!==0?St&-St:HP.transition!==null?(td===0&&(td=Iy()),td):(e=ze,e!==0||(e=window.event,e=e===void 0?16:Dy(e.type)),e)}function Ba(e,t,a,r){if(50<ll)throw ll=0,Wp=null,Error(U(185));kl(e,a,r),((_e&2)===0||e!==ht)&&(e===ht&&((_e&2)===0&&(Nd|=a),ut===4&&So(e,St)),oa(e,r),a===1&&_e===0&&(t.mode&1)===0&&(Vs=tt()+500,_d&&Fo()))}function oa(e,t){var a=e.callbackNode;VR(e,t);var r=id(e,e===ht?St:0);if(r===0)a!==null&&ox(a),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(a!=null&&ox(a),t===1)e.tag===0?UP(Qx.bind(null,e)):Zy(Qx.bind(null,e)),NP(function(){(_e&6)===0&&Fo()}),a=null;else{switch(by(r)){case 1:a=tm;break;case 4:a=Sy;break;case 16:a=sd;break;case 536870912:a=Ly;break;default:a=sd}a=Kw(a,Hw.bind(null,e))}e.callbackPriority=t,e.callbackNode=a}}function Hw(e,t){if(ed=-1,td=0,(_e&6)!==0)throw Error(U(327));var a=e.callbackNode;if(Ns()&&e.callbackNode!==a)return null;var r=id(e,e===ht?St:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=bd(e,r);else{t=r;var o=_e;_e|=2;var n=Vw();(ht!==e||St!==t)&&(Nr=null,Vs=tt()+500,dn(e,t));do try{i1();break}catch(i){jw(e,i)}while(!0);mm(),Sd.current=n,_e=o,rt!==null?t=0:(ht=null,St=0,t=ut)}if(t!==0){if(t===2&&(o=xp(e),o!==0&&(r=o,t=Gp(e,o))),t===1)throw a=bl,dn(e,0),So(e,r),oa(e,tt()),a;if(t===6)So(e,r);else{if(o=e.current.alternate,(r&30)===0&&!n1(o)&&(t=bd(e,r),t===2&&(n=xp(e),n!==0&&(r=n,t=Gp(e,n))),t===1))throw a=bl,dn(e,0),So(e,r),oa(e,tt()),a;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(U(345));case 2:nn(e,ea,Nr);break;case 3:if(So(e,r),(r&130023424)===r&&(t=Tm+500-tt(),10<t)){if(id(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Vt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=kp(nn.bind(null,e,ea,Nr),t);break}nn(e,ea,Nr);break;case 4:if(So(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-za(r);n=1<<s,s=t[s],s>o&&(o=s),r&=~n}if(r=o,r=tt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*o1(r/1960))-r,10<r){e.timeoutHandle=kp(nn.bind(null,e,ea,Nr),r);break}nn(e,ea,Nr);break;case 5:nn(e,ea,Nr);break;default:throw Error(U(329))}}}return oa(e,tt()),e.callbackNode===a?Hw.bind(null,e):null}function Gp(e,t){var a=il;return e.current.memoizedState.isDehydrated&&(dn(e,t).flags|=256),e=bd(e,t),e!==2&&(t=ea,ea=a,t!==null&&$p(t)),e}function $p(e){ea===null?ea=e:ea.push.apply(ea,e)}function n1(e){for(var t=e;;){if(t.flags&16384){var a=t.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var r=0;r<a.length;r++){var o=a[r],n=o.getSnapshot;o=o.value;try{if(!Ua(n(),o))return!1}catch{return!1}}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 So(e,t){for(t&=~Pm,t&=~Nd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var a=31-za(t),r=1<<a;e[a]=-1,t&=~r}}function Qx(e){if((_e&6)!==0)throw Error(U(327));Ns();var t=id(e,0);if((t&1)===0)return oa(e,tt()),null;var a=bd(e,t);if(e.tag!==0&&a===2){var r=xp(e);r!==0&&(t=r,a=Gp(e,r))}if(a===1)throw a=bl,dn(e,0),So(e,t),oa(e,tt()),a;if(a===6)throw Error(U(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,nn(e,ea,Nr),oa(e,tt()),null}function Mm(e,t){var a=_e;_e|=1;try{return e(t)}finally{_e=a,_e===0&&(Vs=tt()+500,_d&&Fo())}}function gn(e){Io!==null&&Io.tag===0&&(_e&6)===0&&Ns();var t=_e;_e|=1;var a=La.transition,r=ze;try{if(La.transition=null,ze=1,e)return e()}finally{ze=r,La.transition=a,_e=t,(_e&6)===0&&Fo()}}function Dm(){da=Ms.current,Ge(Ms)}function dn(e,t){e.finishedWork=null,e.finishedLanes=0;var a=e.timeoutHandle;if(a!==-1&&(e.timeoutHandle=-1,OP(a)),rt!==null)for(a=rt.return;a!==null;){var r=a;switch(cm(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&fd();break;case 3:Hs(),Ge(aa),Ge(Et),wm();break;case 5:ym(r);break;case 4:Hs();break;case 13:Ge(Xe);break;case 19:Ge(Xe);break;case 10:hm(r.type._context);break;case 22:case 23:Dm()}a=a.return}if(ht=e,rt=e=_o(e.current,null),St=da=t,ut=0,bl=null,Pm=Nd=hn=0,ea=il=null,ln!==null){for(t=0;t<ln.length;t++)if(a=ln[t],r=a.interleaved,r!==null){a.interleaved=null;var o=r.next,n=a.pending;if(n!==null){var s=n.next;n.next=o,r.next=s}a.pending=r}ln=null}return e}function jw(e,t){do{var a=rt;try{if(mm(),Qu.current=Cd,wd){for(var r=Ze.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}wd=!1}if(mn=0,mt=lt=Ze=null,nl=!1,Sl=0,Rm.current=null,a===null||a.return===null){ut=1,bl=t,rt=null;break}e:{var n=e,s=a.return,i=a,l=t;if(t=St,i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=i,c=d.tag;if((d.mode&1)===0&&(c===0||c===11||c===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=zx(s);if(h!==null){h.flags&=-257,Bx(h,s,i,n,t),h.mode&1&&Fx(n,u,t),t=h,l=u;var v=t.updateQueue;if(v===null){var x=new Set;x.add(l),t.updateQueue=x}else v.add(l);break e}else{if((t&1)===0){Fx(n,u,t),_m();break e}l=Error(U(426))}}else if(Ke&&i.mode&1){var w=zx(s);if(w!==null){(w.flags&65536)===0&&(w.flags|=256),Bx(w,s,i,n,t),fm(js(l,i));break e}}n=l=js(l,i),ut!==4&&(ut=2),il===null?il=[n]:il.push(n),n=s;do{switch(n.tag){case 3:n.flags|=65536,t&=-t,n.lanes|=t;var p=bw(n,l,t);Dx(n,p);break e;case 1:i=l;var m=n.type,g=n.stateNode;if((n.flags&128)===0&&(typeof m.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Mo===null||!Mo.has(g)))){n.flags|=65536,t&=-t,n.lanes|=t;var y=kw(n,i,t);Dx(n,y);break e}}n=n.return}while(n!==null)}Ww(a)}catch(C){t=C,rt===a&&a!==null&&(rt=a=a.return);continue}break}while(!0)}function Vw(){var e=Sd.current;return Sd.current=Cd,e===null?Cd:e}function _m(){(ut===0||ut===3||ut===2)&&(ut=4),ht===null||(hn&268435455)===0&&(Nd&268435455)===0||So(ht,St)}function bd(e,t){var a=_e;_e|=2;var r=Vw();(ht!==e||St!==t)&&(Nr=null,dn(e,t));do try{s1();break}catch(o){jw(e,o)}while(!0);if(mm(),_e=a,Sd.current=r,rt!==null)throw Error(U(261));return ht=null,St=0,ut}function s1(){for(;rt!==null;)qw(rt)}function i1(){for(;rt!==null&&!ER();)qw(rt)}function qw(e){var t=$w(e.alternate,e,da);e.memoizedProps=e.pendingProps,t===null?Ww(e):rt=t,Rm.current=null}function Ww(e){var t=e;do{var a=t.alternate;if(e=t.return,(t.flags&32768)===0){if(a=JP(a,t,da),a!==null){rt=a;return}}else{if(a=e1(a,t),a!==null){a.flags&=32767,rt=a;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ut=6,rt=null;return}}if(t=t.sibling,t!==null){rt=t;return}rt=t=e}while(t!==null);ut===0&&(ut=5)}function nn(e,t,a){var r=ze,o=La.transition;try{La.transition=null,ze=1,l1(e,t,a,r)}finally{La.transition=o,ze=r}return null}function l1(e,t,a,r){do Ns();while(Io!==null);if((_e&6)!==0)throw Error(U(327));a=e.finishedWork;var o=e.finishedLanes;if(a===null)return null;if(e.finishedWork=null,e.finishedLanes=0,a===e.current)throw Error(U(177));e.callbackNode=null,e.callbackPriority=0;var n=a.lanes|a.childLanes;if(qR(e,n),e===ht&&(rt=ht=null,St=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||Gu||(Gu=!0,Kw(sd,function(){return Ns(),null})),n=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||n){n=La.transition,La.transition=null;var s=ze;ze=1;var i=_e;_e|=4,Rm.current=null,a1(e,a),Bw(a,e),MP(Ip),ld=!!Lp,Ip=Lp=null,e.current=a,r1(a,e,o),OR(),_e=i,ze=s,La.transition=n}else e.current=a;if(Gu&&(Gu=!1,Io=e,Id=o),n=e.pendingLanes,n===0&&(Mo=null),zR(a.stateNode,r),oa(e,tt()),t!==null)for(r=e.onRecoverableError,a=0;a<t.length;a++)o=t[a],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ld)throw Ld=!1,e=qp,qp=null,e;return(Id&1)!==0&&e.tag!==0&&Ns(),n=e.pendingLanes,(n&1)!==0?e===Wp?ll++:(ll=0,Wp=e):ll=0,Fo(),null}function Ns(){if(Io!==null){var e=by(Id),t=La.transition,a=ze;try{if(La.transition=null,ze=16>e?16:e,Io===null)var r=!1;else{if(e=Io,Io=null,Id=0,(_e&6)!==0)throw Error(U(331));var o=_e;for(_e|=4,Q=e.current;Q!==null;){var n=Q,s=n.child;if((Q.flags&16)!==0){var i=n.deletions;if(i!==null){for(var l=0;l<i.length;l++){var u=i[l];for(Q=u;Q!==null;){var d=Q;switch(d.tag){case 0:case 11:case 15:sl(8,d,n)}var c=d.child;if(c!==null)c.return=d,Q=c;else for(;Q!==null;){d=Q;var f=d.sibling,h=d.return;if(Nw(d),d===u){Q=null;break}if(f!==null){f.return=h,Q=f;break}Q=h}}}var v=n.alternate;if(v!==null){var x=v.child;if(x!==null){v.child=null;do{var w=x.sibling;x.sibling=null,x=w}while(x!==null)}}Q=n}}if((n.subtreeFlags&2064)!==0&&s!==null)s.return=n,Q=s;else e:for(;Q!==null;){if(n=Q,(n.flags&2048)!==0)switch(n.tag){case 0:case 11:case 15:sl(9,n,n.return)}var p=n.sibling;if(p!==null){p.return=n.return,Q=p;break e}Q=n.return}}var m=e.current;for(Q=m;Q!==null;){s=Q;var g=s.child;if((s.subtreeFlags&2064)!==0&&g!==null)g.return=s,Q=g;else e:for(s=m;Q!==null;){if(i=Q,(i.flags&2048)!==0)try{switch(i.tag){case 0:case 11:case 15:Od(9,i)}}catch(C){et(i,i.return,C)}if(i===s){Q=null;break e}var y=i.sibling;if(y!==null){y.return=i.return,Q=y;break e}Q=i.return}}if(_e=o,Fo(),ur&&typeof ur.onPostCommitFiberRoot=="function")try{ur.onPostCommitFiberRoot(Rd,e)}catch{}r=!0}return r}finally{ze=a,La.transition=t}}return!1}function Yx(e,t,a){t=js(a,t),t=bw(e,t,1),e=To(e,t,1),t=Vt(),e!==null&&(kl(e,1,t),oa(e,t))}function et(e,t,a){if(e.tag===3)Yx(e,e,a);else for(;t!==null;){if(t.tag===3){Yx(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Mo===null||!Mo.has(r))){e=js(a,e),e=kw(t,e,1),t=To(t,e,1),e=Vt(),t!==null&&(kl(t,1,e),oa(t,e));break}}t=t.return}}function u1(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),t=Vt(),e.pingedLanes|=e.suspendedLanes&a,ht===e&&(St&a)===a&&(ut===4||ut===3&&(St&130023424)===St&&500>tt()-Tm?dn(e,0):Pm|=a),oa(e,t)}function Gw(e,t){t===0&&((e.mode&1)===0?t=1:(t=_u,_u<<=1,(_u&130023424)===0&&(_u=4194304)));var a=Vt();e=Vr(e,t),e!==null&&(kl(e,t,a),oa(e,a))}function d1(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Gw(e,a)}function c1(e,t){var a=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),Gw(e,a)}var $w;$w=function(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps||aa.current)ta=!0;else{if((e.lanes&a)===0&&(t.flags&128)===0)return ta=!1,YP(e,t,a);ta=(e.flags&131072)!==0}else ta=!1,Ke&&(t.flags&1048576)!==0&&Qy(t,hd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ju(e,t),e=t.pendingProps;var o=zs(t,Et.current);Os(t,a),o=Sm(null,t,r,e,o,a);var n=Lm();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ra(r)?(n=!0,pd(t)):n=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,vm(t),o.updater=Ed,t.stateNode=o,o._reactInternals=t,Ap(t,r,e,a),t=Np(null,t,r,!0,n,a)):(t.tag=0,Ke&&n&&dm(t),jt(null,t,o,a),t=t.child),t;case 16:r=t.elementType;e:{switch(Ju(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=p1(r),e=Oa(r,e),o){case 0:t=Op(null,t,r,e,a);break e;case 1:t=jx(null,t,r,e,a);break e;case 11:t=Ux(null,t,r,e,a);break e;case 14:t=Hx(null,t,r,Oa(r.type,e),a);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Oa(r,o),Op(e,t,r,o,a);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Oa(r,o),jx(e,t,r,o,a);case 3:e:{if(Mw(t),e===null)throw Error(U(387));r=t.pendingProps,n=t.memoizedState,o=n.element,rw(e,t),xd(t,r,null,a);var s=t.memoizedState;if(r=s.element,n.isDehydrated)if(n={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){o=js(Error(U(423)),t),t=Vx(e,t,r,a,o);break e}else if(r!==o){o=js(Error(U(424)),t),t=Vx(e,t,r,a,o);break e}else for(ca=Po(t.stateNode.containerInfo.firstChild),fa=t,Ke=!0,Fa=null,a=tw(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Bs(),r===o){t=qr(e,t,a);break e}jt(e,t,r,a)}t=t.child}return t;case 5:return ow(t),e===null&&Mp(t),r=t.type,o=t.pendingProps,n=e!==null?e.memoizedProps:null,s=o.children,bp(r,o)?s=null:n!==null&&bp(r,n)&&(t.flags|=32),Tw(e,t),jt(e,t,s,a),t.child;case 6:return e===null&&Mp(t),null;case 13:return Dw(e,t,a);case 4:return xm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Us(t,null,r,a):jt(e,t,r,a),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Oa(r,o),Ux(e,t,r,o,a);case 7:return jt(e,t,t.pendingProps,a),t.child;case 8:return jt(e,t,t.pendingProps.children,a),t.child;case 12:return jt(e,t,t.pendingProps.children,a),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,n=t.memoizedProps,s=o.value,Ve(gd,r._currentValue),r._currentValue=s,n!==null)if(Ua(n.value,s)){if(n.children===o.children&&!aa.current){t=qr(e,t,a);break e}}else for(n=t.child,n!==null&&(n.return=t);n!==null;){var i=n.dependencies;if(i!==null){s=n.child;for(var l=i.firstContext;l!==null;){if(l.context===r){if(n.tag===1){l=Ur(-1,a&-a),l.tag=2;var u=n.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}}n.lanes|=a,l=n.alternate,l!==null&&(l.lanes|=a),Dp(n.return,a,t),i.lanes|=a;break}l=l.next}}else if(n.tag===10)s=n.type===t.type?null:n.child;else if(n.tag===18){if(s=n.return,s===null)throw Error(U(341));s.lanes|=a,i=s.alternate,i!==null&&(i.lanes|=a),Dp(s,a,t),s=n.sibling}else s=n.child;if(s!==null)s.return=n;else for(s=n;s!==null;){if(s===t){s=null;break}if(n=s.sibling,n!==null){n.return=s.return,s=n;break}s=s.return}n=s}jt(e,t,o.children,a),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Os(t,a),o=Ia(o),r=r(o),t.flags|=1,jt(e,t,r,a),t.child;case 14:return r=t.type,o=Oa(r,t.pendingProps),o=Oa(r.type,o),Hx(e,t,r,o,a);case 15:return Rw(e,t,t.type,t.pendingProps,a);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Oa(r,o),Ju(e,t),t.tag=1,ra(r)?(e=!0,pd(t)):e=!1,Os(t,a),Iw(t,r,o),Ap(t,r,o,a),Np(null,t,r,!0,e,a);case 19:return _w(e,t,a);case 22:return Pw(e,t,a)}throw Error(U(156,t.tag))};function Kw(e,t){return Cy(e,t)}function f1(e,t,a,r){this.tag=e,this.key=a,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Sa(e,t,a,r){return new f1(e,t,a,r)}function Am(e){return e=e.prototype,!(!e||!e.isReactComponent)}function p1(e){if(typeof e=="function")return Am(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yp)return 11;if(e===Jp)return 14}return 2}function _o(e,t){var a=e.alternate;return a===null?(a=Sa(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&14680064,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a}function ad(e,t,a,r,o,n){var s=2;if(r=e,typeof e=="function")Am(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ws:return cn(a.children,o,n,t);case Qp:s=8,o|=8;break;case rp:return e=Sa(12,a,t,o|2),e.elementType=rp,e.lanes=n,e;case op:return e=Sa(13,a,t,o),e.elementType=op,e.lanes=n,e;case np:return e=Sa(19,a,t,o),e.elementType=np,e.lanes=n,e;case oy:return Fd(a,o,n,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ay:s=10;break e;case ry:s=9;break e;case Yp:s=11;break e;case Jp:s=14;break e;case yo:s=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=Sa(s,a,t,o),t.elementType=e,t.type=r,t.lanes=n,t}function cn(e,t,a,r){return e=Sa(7,e,r,t),e.lanes=a,e}function Fd(e,t,a,r){return e=Sa(22,e,r,t),e.elementType=oy,e.lanes=a,e.stateNode={isHidden:!1},e}function ep(e,t,a){return e=Sa(6,e,null,t),e.lanes=a,e}function tp(e,t,a){return t=Sa(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function m1(e,t,a,r,o){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=zf(0),this.expirationTimes=zf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zf(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Em(e,t,a,r,o,n,s,i,l){return e=new m1(e,t,a,i,l),t===1?(t=1,n===!0&&(t|=8)):t=0,n=Sa(3,null,null,t),e.current=n,n.stateNode=e,n.memoizedState={element:r,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},vm(n),e}function h1(e,t,a){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ys,key:r==null?null:""+r,children:e,containerInfo:t,implementation:a}}function Xw(e){if(!e)return Eo;e=e._reactInternals;e:{if(xn(e)!==e||e.tag!==1)throw Error(U(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ra(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(U(171))}if(e.tag===1){var a=e.type;if(ra(a))return Xy(e,a,t)}return t}function Zw(e,t,a,r,o,n,s,i,l){return e=Em(a,r,!0,e,o,n,s,i,l),e.context=Xw(null),a=e.current,r=Vt(),o=Do(a),n=Ur(r,o),n.callback=t??null,To(a,n,o),e.current.lanes=o,kl(e,o,r),oa(e,r),e}function zd(e,t,a,r){var o=t.current,n=Vt(),s=Do(o);return a=Xw(a),t.context===null?t.context=a:t.pendingContext=a,t=Ur(n,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=To(o,t,s),e!==null&&(Ba(e,o,s,n),Zu(e,o,s)),s}function kd(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Jx(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Om(e,t){Jx(e,t),(e=e.alternate)&&Jx(e,t)}function g1(){return null}var Qw=typeof reportError=="function"?reportError:function(e){console.error(e)};function Nm(e){this._internalRoot=e}Bd.prototype.render=Nm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));zd(e,t,null,null)};Bd.prototype.unmount=Nm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;gn(function(){zd(null,e,null,null)}),t[jr]=null}};function Bd(e){this._internalRoot=e}Bd.prototype.unstable_scheduleHydration=function(e){if(e){var t=Py();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Co.length&&t!==0&&t<Co[a].priority;a++);Co.splice(a,0,e),a===0&&My(e)}};function Fm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ud(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ey(){}function v1(e,t,a,r,o){if(o){if(typeof r=="function"){var n=r;r=function(){var u=kd(s);n.call(u)}}var s=Zw(t,r,e,0,null,!1,!1,"",ey);return e._reactRootContainer=s,e[jr]=s.current,vl(e.nodeType===8?e.parentNode:e),gn(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var u=kd(l);i.call(u)}}var l=Em(e,0,!1,null,null,!1,!1,"",ey);return e._reactRootContainer=l,e[jr]=l.current,vl(e.nodeType===8?e.parentNode:e),gn(function(){zd(t,l,a,r)}),l}function Hd(e,t,a,r,o){var n=a._reactRootContainer;if(n){var s=n;if(typeof o=="function"){var i=o;o=function(){var l=kd(s);i.call(l)}}zd(t,s,e,o)}else s=v1(a,t,e,o,r);return kd(s)}ky=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var a=Yi(t.pendingLanes);a!==0&&(am(t,a|1),oa(t,tt()),(_e&6)===0&&(Vs=tt()+500,Fo()))}break;case 13:gn(function(){var r=Vr(e,1);if(r!==null){var o=Vt();Ba(r,e,1,o)}}),Om(e,1)}};rm=function(e){if(e.tag===13){var t=Vr(e,134217728);if(t!==null){var a=Vt();Ba(t,e,134217728,a)}Om(e,134217728)}};Ry=function(e){if(e.tag===13){var t=Do(e),a=Vr(e,t);if(a!==null){var r=Vt();Ba(a,e,t,r)}Om(e,t)}};Py=function(){return ze};Ty=function(e,t){var a=ze;try{return ze=e,t()}finally{ze=a}};hp=function(e,t,a){switch(t){case"input":if(lp(e,a),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var o=Dd(r);if(!o)throw Error(U(90));sy(r),lp(r,o)}}}break;case"textarea":ly(e,a);break;case"select":t=a.value,t!=null&&Ds(e,!!a.multiple,t,!1)}};hy=Mm;gy=gn;var x1={usingClientEntryPoint:!1,Events:[Pl,Is,Dd,py,my,Mm]},Ki={findFiberByHostInstance:sn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},y1={bundleType:Ki.bundleType,version:Ki.version,rendererPackageName:Ki.rendererPackageName,rendererConfig:Ki.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Wr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=yy(e),e===null?null:e.stateNode},findFiberByHostInstance:Ki.findFiberByHostInstance||g1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Xi=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Xi.isDisabled&&Xi.supportsFiber))try{Rd=Xi.inject(y1),ur=Xi}catch{}var Xi;ha.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x1;ha.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Fm(t))throw Error(U(200));return h1(e,t,null,a)};ha.createRoot=function(e,t){if(!Fm(e))throw Error(U(299));var a=!1,r="",o=Qw;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Em(e,1,!1,null,null,a,!1,r,o),e[jr]=t.current,vl(e.nodeType===8?e.parentNode:e),new Nm(t)};ha.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(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=yy(t),e=e===null?null:e.stateNode,e};ha.flushSync=function(e){return gn(e)};ha.hydrate=function(e,t,a){if(!Ud(t))throw Error(U(200));return Hd(null,e,t,!0,a)};ha.hydrateRoot=function(e,t,a){if(!Fm(e))throw Error(U(405));var r=a!=null&&a.hydratedSources||null,o=!1,n="",s=Qw;if(a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onRecoverableError!==void 0&&(s=a.onRecoverableError)),t=Zw(t,null,e,1,a??null,o,!1,n,s),e[jr]=t.current,vl(e),r)for(e=0;e<r.length;e++)a=r[e],o=a._getVersion,o=o(a._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[a,o]:t.mutableSourceEagerHydrationData.push(a,o);return new Bd(t)};ha.render=function(e,t,a){if(!Ud(t))throw Error(U(200));return Hd(null,e,t,!1,a)};ha.unmountComponentAtNode=function(e){if(!Ud(e))throw Error(U(40));return e._reactRootContainer?(gn(function(){Hd(null,null,e,!1,function(){e._reactRootContainer=null,e[jr]=null})}),!0):!1};ha.unstable_batchedUpdates=Mm;ha.unstable_renderSubtreeIntoContainer=function(e,t,a,r){if(!Ud(a))throw Error(U(200));if(e==null||e._reactInternals===void 0)throw Error(U(38));return Hd(e,t,a,!1,r)};ha.version="18.3.1-next-f1338f8080-20240426"});var Gs=Rr((D2,eC)=>{"use strict";function Jw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Jw)}catch(e){console.error(e)}}Jw(),eC.exports=Yw()});var dk=Rr(Ig=>{"use strict";var uk=Gs();Ig.createRoot=uk.createRoot,Ig.hydrateRoot=uk.hydrateRoot;var sV});var nv=N(ke(),1);var me=e=>typeof e=="string",Ei=()=>{let e,t,a=new Promise((r,o)=>{e=r,t=o});return a.resolve=e,a.reject=t,a},Vg=e=>e==null?"":""+e,qk=(e,t,a)=>{e.forEach(r=>{t[r]&&(a[r]=t[r])})},Wk=/###/g,qg=e=>e&&e.indexOf("###")>-1?e.replace(Wk,"."):e,Wg=e=>!e||me(e),Oi=(e,t,a)=>{let r=me(t)?t.split("."):t,o=0;for(;o<r.length-1;){if(Wg(e))return{};let n=qg(r[o]);!e[n]&&a&&(e[n]=new a),Object.prototype.hasOwnProperty.call(e,n)?e=e[n]:e={},++o}return Wg(e)?{}:{obj:e,k:qg(r[o])}},Gg=(e,t,a)=>{let{obj:r,k:o}=Oi(e,t,Object);if(r!==void 0||t.length===1){r[o]=a;return}let n=t[t.length-1],s=t.slice(0,t.length-1),i=Oi(e,s,Object);for(;i.obj===void 0&&s.length;)n=`${s[s.length-1]}.${n}`,s=s.slice(0,s.length-1),i=Oi(e,s,Object),i?.obj&&typeof i.obj[`${i.k}.${n}`]<"u"&&(i.obj=void 0);i.obj[`${i.k}.${n}`]=a},Gk=(e,t,a,r)=>{let{obj:o,k:n}=Oi(e,t,Object);o[n]=o[n]||[],o[n].push(a)},du=(e,t)=>{let{obj:a,k:r}=Oi(e,t);if(a&&Object.prototype.hasOwnProperty.call(a,r))return a[r]},$k=(e,t,a)=>{let r=du(e,a);return r!==void 0?r:du(t,a)},ev=(e,t,a)=>{for(let r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?me(e[r])||e[r]instanceof String||me(t[r])||t[r]instanceof String?a&&(e[r]=t[r]):ev(e[r],t[r],a):e[r]=t[r]);return e},us=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),Kk={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},Xk=e=>me(e)?e.replace(/[&<>"'\/]/g,t=>Kk[t]):e,uf=class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let a=this.regExpMap.get(t);if(a!==void 0)return a;let r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}},Zk=[" ",",","?","!",";"],Qk=new uf(20),Yk=(e,t,a)=>{t=t||"",a=a||"";let r=Zk.filter(s=>t.indexOf(s)<0&&a.indexOf(s)<0);if(r.length===0)return!0;let o=Qk.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`),n=!o.test(e);if(!n){let s=e.indexOf(a);s>0&&!o.test(e.substring(0,s))&&(n=!0)}return n},df=(e,t,a=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(a),o=e;for(let n=0;n<r.length;){if(!o||typeof o!="object")return;let s,i="";for(let l=n;l<r.length;++l)if(l!==n&&(i+=a),i+=r[l],s=o[i],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<r.length-1)continue;n+=l-n+1;break}o=s}return o},Ni=e=>e?.replace("_","-"),Jk={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}},cf=class e{constructor(t,a={}){this.init(t,a)}init(t,a={}){this.prefix=a.prefix||"i18next:",this.logger=t||Jk,this.options=a,this.debug=a.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,a,r,o){return o&&!this.debug?null:(me(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[a](t))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},tr=new cf,ds=class{constructor(){this.observers={}}on(t,a){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);let o=this.observers[r].get(a)||0;this.observers[r].set(a,o+1)}),this}off(t,a){if(this.observers[t]){if(!a){delete this.observers[t];return}this.observers[t].delete(a)}}emit(t,...a){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([o,n])=>{for(let s=0;s<n;s++)o(...a)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,n])=>{for(let s=0;s<n;s++)o.apply(o,[t,...a])})}},cu=class extends ds{constructor(t,a={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let a=this.options.ns.indexOf(t);a>-1&&this.options.ns.splice(a,1)}getResource(t,a,r,o={}){let n=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure,i;t.indexOf(".")>-1?i=t.split("."):(i=[t,a],r&&(Array.isArray(r)?i.push(...r):me(r)&&n?i.push(...r.split(n)):i.push(r)));let l=du(this.data,i);return!l&&!a&&!r&&t.indexOf(".")>-1&&(t=i[0],a=i[1],r=i.slice(2).join(".")),l||!s||!me(r)?l:df(this.data?.[t]?.[a],r,n)}addResource(t,a,r,o,n={silent:!1}){let s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,i=[t,a];r&&(i=i.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(i=t.split("."),o=a,a=i[1]),this.addNamespaces(a),Gg(this.data,i,o),n.silent||this.emit("added",t,a,r,o)}addResources(t,a,r,o={silent:!1}){for(let n in r)(me(r[n])||Array.isArray(r[n]))&&this.addResource(t,a,n,r[n],{silent:!0});o.silent||this.emit("added",t,a,r)}addResourceBundle(t,a,r,o,n,s={silent:!1,skipCopy:!1}){let i=[t,a];t.indexOf(".")>-1&&(i=t.split("."),o=r,r=a,a=i[1]),this.addNamespaces(a);let l=du(this.data,i)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?ev(l,r,n):l={...l,...r},Gg(this.data,i,l),s.silent||this.emit("added",t,a,r)}removeResourceBundle(t,a){this.hasResourceBundle(t,a)&&delete this.data[t][a],this.removeNamespaces(a),this.emit("removed",t,a)}hasResourceBundle(t,a){return this.getResource(t,a)!==void 0}getResourceBundle(t,a){return a||(a=this.options.defaultNS),this.getResource(t,a)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let a=this.getDataByLanguage(t);return!!(a&&Object.keys(a)||[]).find(o=>a[o]&&Object.keys(a[o]).length>0)}toJSON(){return this.data}},tv={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,a,r,o){return e.forEach(n=>{t=this.processors[n]?.process(t,a,r,o)??t}),t}},av=Symbol("i18next/PATH_KEY");function e0(){let e=[],t=Object.create(null),a;return t.get=(r,o)=>(a?.revoke?.(),o===av?e:(e.push(o),a=Proxy.revocable(r,t),a.proxy)),Proxy.revocable(Object.create(null),t).proxy}function ff(e,t){let{[av]:a}=e(e0());return a.join(t?.keySeparator??".")}var $g={},sf=e=>!me(e)&&typeof e!="boolean"&&typeof e!="number",fu=class e extends ds{constructor(t,a={}){super(),qk(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=tr.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,a={interpolation:{}}){let r={...a};if(t==null)return!1;let o=this.resolve(t,r);if(o?.res===void 0)return!1;let n=sf(o.res);return!(r.returnObjects===!1&&n)}extractFromKey(t,a){let r=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");let o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,n=a.ns||this.options.defaultNS||[],s=r&&t.indexOf(r)>-1,i=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!Yk(t,r,o);if(s&&!i){let l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:me(n)?[n]:n};let u=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(u[0])>-1)&&(n=u.shift()),t=u.join(o)}return{key:t,namespaces:me(n)?[n]:n}}translate(t,a,r){let o=typeof a=="object"?{...a}:a;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),t==null)return"";typeof t=="function"&&(t=ff(t,{...this.options,...o})),Array.isArray(t)||(t=[String(t)]);let n=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(t[t.length-1],o),u=l[l.length-1],d=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;d===void 0&&(d=":");let c=o.lng||this.language,f=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c?.toLowerCase()==="cimode")return f?n?{res:`${u}${d}${i}`,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(o)}:`${u}${d}${i}`:n?{res:i,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(o)}:i;let h=this.resolve(t,o),v=h?.res,x=h?.usedKey||i,w=h?.exactUsedKey||i,p=["[object Number]","[object Function]","[object RegExp]"],m=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,y=o.count!==void 0&&!me(o.count),C=e.hasDefaultValue(o),I=y?this.pluralResolver.getSuffix(c,o.count,o):"",k=o.ordinal&&y?this.pluralResolver.getSuffix(c,o.count,{ordinal:!1}):"",b=y&&!o.ordinal&&o.count===0,T=b&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${I}`]||o[`defaultValue${k}`]||o.defaultValue,A=v;g&&!v&&C&&(A=T);let D=sf(A),E=Object.prototype.toString.apply(A);if(g&&A&&D&&p.indexOf(E)<0&&!(me(m)&&Array.isArray(A))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let z=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,A,{...o,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return n?(h.res=z,h.usedParams=this.getUsedParamsDetails(o),h):z}if(s){let z=Array.isArray(A),O=z?[]:{},_=z?w:x;for(let B in A)if(Object.prototype.hasOwnProperty.call(A,B)){let j=`${_}${s}${B}`;C&&!v?O[B]=this.translate(j,{...o,defaultValue:sf(T)?T[B]:void 0,joinArrays:!1,ns:l}):O[B]=this.translate(j,{...o,joinArrays:!1,ns:l}),O[B]===j&&(O[B]=A[B])}v=O}}else if(g&&me(m)&&Array.isArray(v))v=v.join(m),v&&(v=this.extendTranslation(v,t,o,r));else{let z=!1,O=!1;!this.isValidLookup(v)&&C&&(z=!0,v=T),this.isValidLookup(v)||(O=!0,v=i);let B=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&O?void 0:v,j=C&&T!==v&&this.options.updateMissing;if(O||z||j){if(this.logger.log(j?"updateKey":"missingKey",c,u,i,j?T:v),s){let se=this.resolve(i,{...o,keySeparator:!1});se&&se.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let W=[],ee=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ee&&ee[0])for(let se=0;se<ee.length;se++)W.push(ee[se]);else this.options.saveMissingTo==="all"?W=this.languageUtils.toResolveHierarchy(o.lng||this.language):W.push(o.lng||this.language);let P=(se,ie,H)=>{let ve=C&&H!==v?H:B;this.options.missingKeyHandler?this.options.missingKeyHandler(se,u,ie,ve,j,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(se,u,ie,ve,j,o),this.emit("missingKey",se,u,ie,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&y?W.forEach(se=>{let ie=this.pluralResolver.getSuffixes(se,o);b&&o[`defaultValue${this.options.pluralSeparator}zero`]&&ie.indexOf(`${this.options.pluralSeparator}zero`)<0&&ie.push(`${this.options.pluralSeparator}zero`),ie.forEach(H=>{P([se],i+H,o[`defaultValue${H}`]||T)})}):P(W,i,T))}v=this.extendTranslation(v,t,o,h,r),O&&v===i&&this.options.appendNamespaceToMissingKey&&(v=`${u}${d}${i}`),(O||z)&&this.options.parseMissingKeyHandler&&(v=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${d}${i}`:i,z?v:void 0,o))}return n?(h.res=v,h.usedParams=this.getUsedParamsDetails(o),h):v}extendTranslation(t,a,r,o,n){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});let l=me(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),u;if(l){let c=t.match(this.interpolator.nestingRegexp);u=c&&c.length}let d=r.replace&&!me(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,r.lng||this.language||o.usedLng,r),l){let c=t.match(this.interpolator.nestingRegexp),f=c&&c.length;u<f&&(r.nest=!1)}!r.lng&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...c)=>n?.[0]===c[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${c[0]} in key: ${a[0]}`),null):this.translate(...c,a),r)),r.interpolation&&this.interpolator.reset()}let s=r.postProcess||this.options.postProcess,i=me(s)?[s]:s;return t!=null&&i?.length&&r.applyPostProcessor!==!1&&(t=tv.handle(i,t,a,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,a={}){let r,o,n,s,i;return me(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;let u=this.extractFromKey(l,a),d=u.key;o=d;let c=u.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let f=a.count!==void 0&&!me(a.count),h=f&&!a.ordinal&&a.count===0,v=a.context!==void 0&&(me(a.context)||typeof a.context=="number")&&a.context!=="",x=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach(w=>{this.isValidLookup(r)||(i=w,!$g[`${x[0]}-${w}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(i)&&($g[`${x[0]}-${w}`]=!0,this.logger.warn(`key "${o}" for languages "${x.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),x.forEach(p=>{if(this.isValidLookup(r))return;s=p;let m=[d];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(m,d,p,w,a);else{let y;f&&(y=this.pluralResolver.getSuffix(p,a.count,a));let C=`${this.options.pluralSeparator}zero`,I=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(a.ordinal&&y.indexOf(I)===0&&m.push(d+y.replace(I,this.options.pluralSeparator)),m.push(d+y),h&&m.push(d+C)),v){let k=`${d}${this.options.contextSeparator||"_"}${a.context}`;m.push(k),f&&(a.ordinal&&y.indexOf(I)===0&&m.push(k+y.replace(I,this.options.pluralSeparator)),m.push(k+y),h&&m.push(k+C))}}let g;for(;g=m.pop();)this.isValidLookup(r)||(n=g,r=this.getResource(p,w,g,a))}))})}),{res:r,usedKey:o,exactUsedKey:n,usedLng:s,usedNS:i}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,a,r,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,a,r,o):this.resourceStore.getResource(t,a,r,o)}getUsedParamsDetails(t={}){let a=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!me(t.replace),o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(let n of a)delete o[n]}return o}static hasDefaultValue(t){let a="defaultValue";for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&a===r.substring(0,a.length)&&t[r]!==void 0)return!0;return!1}},pu=class{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=tr.create("languageUtils")}getScriptPartFromCode(t){if(t=Ni(t),!t||t.indexOf("-")<0)return null;let a=t.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}getLanguagePartFromCode(t){if(t=Ni(t),!t||t.indexOf("-")<0)return t;let a=t.split("-");return this.formatLanguageCode(a[0])}formatLanguageCode(t){if(me(t)&&t.indexOf("-")>-1){let a;try{a=Intl.getCanonicalLocales(t)[0]}catch{}return a&&this.options.lowerCaseLng&&(a=a.toLowerCase()),a||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let a;return t.forEach(r=>{if(a)return;let o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(a=o)}),!a&&this.options.supportedLngs&&t.forEach(r=>{if(a)return;let o=this.getScriptPartFromCode(r);if(this.isSupportedCode(o))return a=o;let n=this.getLanguagePartFromCode(r);if(this.isSupportedCode(n))return a=n;a=this.options.supportedLngs.find(s=>{if(s===n)return s;if(!(s.indexOf("-")<0&&n.indexOf("-")<0)&&(s.indexOf("-")>0&&n.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===n||s.indexOf(n)===0&&n.length>1))return s})}),a||(a=this.getFallbackCodes(this.options.fallbackLng)[0]),a}getFallbackCodes(t,a){if(!t)return[];if(typeof t=="function"&&(t=t(a)),me(t)&&(t=[t]),Array.isArray(t))return t;if(!a)return t.default||[];let r=t[a];return r||(r=t[this.getScriptPartFromCode(a)]),r||(r=t[this.formatLanguageCode(a)]),r||(r=t[this.getLanguagePartFromCode(a)]),r||(r=t.default),r||[]}toResolveHierarchy(t,a){let r=this.getFallbackCodes((a===!1?[]:a)||this.options.fallbackLng||[],t),o=[],n=s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return me(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&n(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&n(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&n(this.getLanguagePartFromCode(t))):me(t)&&n(this.formatLanguageCode(t)),r.forEach(s=>{o.indexOf(s)<0&&n(this.formatLanguageCode(s))}),o}},Kg={zero:0,one:1,two:2,few:3,many:4,other:5},Xg={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})},pf=class{constructor(t,a={}){this.languageUtils=t,this.options=a,this.logger=tr.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,a){this.rules[t]=a}clearCache(){this.pluralRulesCache={}}getRule(t,a={}){let r=Ni(t==="dev"?"en":t),o=a.ordinal?"ordinal":"cardinal",n=JSON.stringify({cleanedCode:r,type:o});if(n in this.pluralRulesCache)return this.pluralRulesCache[n];let s;try{s=new Intl.PluralRules(r,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Xg;if(!t.match(/-|_/))return Xg;let l=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(l,a)}return this.pluralRulesCache[n]=s,s}needsPlural(t,a={}){let r=this.getRule(t,a);return r||(r=this.getRule("dev",a)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,a,r={}){return this.getSuffixes(t,r).map(o=>`${a}${o}`)}getSuffixes(t,a={}){let r=this.getRule(t,a);return r||(r=this.getRule("dev",a)),r?r.resolvedOptions().pluralCategories.sort((o,n)=>Kg[o]-Kg[n]).map(o=>`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,a,r={}){let o=this.getRule(t,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(a)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",a,r))}},Zg=(e,t,a,r=".",o=!0)=>{let n=$k(e,t,a);return!n&&o&&me(a)&&(n=df(e,a,r),n===void 0&&(n=df(t,a,r))),n},lf=e=>e.replace(/\$/g,"$$$$"),mf=class{constructor(t={}){this.logger=tr.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(a=>a),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});let{escape:a,escapeValue:r,useRawValueToEscape:o,prefix:n,prefixEscaped:s,suffix:i,suffixEscaped:l,formatSeparator:u,unescapeSuffix:d,unescapePrefix:c,nestingPrefix:f,nestingPrefixEscaped:h,nestingSuffix:v,nestingSuffixEscaped:x,nestingOptionsSeparator:w,maxReplaces:p,alwaysFormat:m}=t.interpolation;this.escape=a!==void 0?a:Xk,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=n?us(n):s||"{{",this.suffix=i?us(i):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=f?us(f):h||us("$t("),this.nestingSuffix=v?us(v):x||us(")"),this.nestingOptionsSeparator=w||",",this.maxReplaces=p||1e3,this.alwaysFormat=m!==void 0?m:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=(a,r)=>a?.source===r?(a.lastIndex=0,a):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,a,r,o){let n,s,i,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=h=>{if(h.indexOf(this.formatSeparator)<0){let p=Zg(a,l,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(p,void 0,r,{...o,...a,interpolationkey:h}):p}let v=h.split(this.formatSeparator),x=v.shift().trim(),w=v.join(this.formatSeparator).trim();return this.format(Zg(a,l,x,this.options.keySeparator,this.options.ignoreJSONStructure),w,r,{...o,...a,interpolationkey:x})};this.resetRegExp();let d=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,c=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>lf(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?lf(this.escape(h)):lf(h)}].forEach(h=>{for(i=0;n=h.regex.exec(t);){let v=n[1].trim();if(s=u(v),s===void 0)if(typeof d=="function"){let w=d(t,n,o);s=me(w)?w:""}else if(o&&Object.prototype.hasOwnProperty.call(o,v))s="";else if(c){s=n[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`),s="";else!me(s)&&!this.useRawValueToEscape&&(s=Vg(s));let x=h.safeValue(s);if(t=t.replace(n[0],x),c?(h.regex.lastIndex+=s.length,h.regex.lastIndex-=n[0].length):h.regex.lastIndex=0,i++,i>=this.maxReplaces)break}}),t}nest(t,a,r={}){let o,n,s,i=(l,u)=>{let d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;let c=l.split(new RegExp(`${d}[ ]*{`)),f=`{${c[1]}`;l=c[0],f=this.interpolate(f,s);let h=f.match(/'/g),v=f.match(/"/g);((h?.length??0)%2===0&&!v||v.length%2!==0)&&(f=f.replace(/'/g,'"'));try{s=JSON.parse(f),u&&(s={...u,...s})}catch(x){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,x),`${l}${d}${f}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;o=this.nestingRegexp.exec(t);){let l=[];s={...r},s=s.replace&&!me(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(u!==-1&&(l=o[1].slice(u).split(this.formatSeparator).map(d=>d.trim()).filter(Boolean),o[1]=o[1].slice(0,u)),n=a(i.call(this,o[1].trim(),s),s),n&&o[0]===t&&!me(n))return n;me(n)||(n=Vg(n)),n||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),n=""),l.length&&(n=l.reduce((d,c)=>this.format(d,c,r.lng,{...r,interpolationkey:o[1].trim()}),n.trim())),t=t.replace(o[0],n),this.regexp.lastIndex=0}return t}},t0=e=>{let t=e.toLowerCase().trim(),a={};if(e.indexOf("(")>-1){let r=e.split("(");t=r[0].toLowerCase().trim();let o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?a.currency||(a.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?a.range||(a.range=o.trim()):o.split(";").forEach(s=>{if(s){let[i,...l]=s.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),d=i.trim();a[d]||(a[d]=u),u==="false"&&(a[d]=!1),u==="true"&&(a[d]=!0),isNaN(u)||(a[d]=parseInt(u,10))}})}return{formatName:t,formatOptions:a}},Qg=e=>{let t={};return(a,r,o)=>{let n=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(n={...n,[o.interpolationkey]:void 0});let s=r+JSON.stringify(n),i=t[s];return i||(i=e(Ni(r),o),t[s]=i),i(a)}},a0=e=>(t,a,r)=>e(Ni(a),r)(t),hf=class{constructor(t={}){this.logger=tr.create("formatter"),this.options=t,this.init(t)}init(t,a={interpolation:{}}){this.formatSeparator=a.interpolation.formatSeparator||",";let r=a.cacheInBuiltFormats?Qg:a0;this.formats={number:r((o,n)=>{let s=new Intl.NumberFormat(o,{...n});return i=>s.format(i)}),currency:r((o,n)=>{let s=new Intl.NumberFormat(o,{...n,style:"currency"});return i=>s.format(i)}),datetime:r((o,n)=>{let s=new Intl.DateTimeFormat(o,{...n});return i=>s.format(i)}),relativetime:r((o,n)=>{let s=new Intl.RelativeTimeFormat(o,{...n});return i=>s.format(i,n.range||"day")}),list:r((o,n)=>{let s=new Intl.ListFormat(o,{...n});return i=>s.format(i)})}}add(t,a){this.formats[t.toLowerCase().trim()]=a}addCached(t,a){this.formats[t.toLowerCase().trim()]=Qg(a)}format(t,a,r,o={}){let n=a.split(this.formatSeparator);if(n.length>1&&n[0].indexOf("(")>1&&n[0].indexOf(")")<0&&n.find(i=>i.indexOf(")")>-1)){let i=n.findIndex(l=>l.indexOf(")")>-1);n[0]=[n[0],...n.splice(1,i)].join(this.formatSeparator)}return n.reduce((i,l)=>{let{formatName:u,formatOptions:d}=t0(l);if(this.formats[u]){let c=i;try{let f=o?.formatParams?.[o.interpolationkey]||{},h=f.locale||f.lng||o.locale||o.lng||r;c=this.formats[u](i,h,{...d,...o,...f})}catch(f){this.logger.warn(f)}return c}else this.logger.warn(`there was no format function for ${u}`);return i},t)}},r0=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},gf=class extends ds{constructor(t,a,r,o={}){super(),this.backend=t,this.store=a,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=tr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,o.backend,o)}queueLoad(t,a,r,o){let n={},s={},i={},l={};return t.forEach(u=>{let d=!0;a.forEach(c=>{let f=`${u}|${c}`;!r.reload&&this.store.hasResourceBundle(u,c)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?s[f]===void 0&&(s[f]=!0):(this.state[f]=1,d=!1,s[f]===void 0&&(s[f]=!0),n[f]===void 0&&(n[f]=!0),l[c]===void 0&&(l[c]=!0)))}),d||(i[u]=!0)}),(Object.keys(n).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(n),pending:Object.keys(s),toLoadLanguages:Object.keys(i),toLoadNamespaces:Object.keys(l)}}loaded(t,a,r){let o=t.split("|"),n=o[0],s=o[1];a&&this.emit("failedLoading",n,s,a),!a&&r&&this.store.addResourceBundle(n,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=a?-1:2,a&&r&&(this.state[t]=0);let i={};this.queue.forEach(l=>{Gk(l.loaded,[n],s),r0(l,t),a&&l.errors.push(a),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{i[u]||(i[u]={});let d=l.loaded[u];d.length&&d.forEach(c=>{i[u][c]===void 0&&(i[u][c]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",i),this.queue=this.queue.filter(l=>!l.done)}read(t,a,r,o=0,n=this.retryTimeout,s){if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:a,fcName:r,tried:o,wait:n,callback:s});return}this.readingCalls++;let i=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){let c=this.waitingReads.shift();this.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}if(u&&d&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,a,r,o+1,n*2,s)},n);return}s(u,d)},l=this.backend[r].bind(this.backend);if(l.length===2){try{let u=l(t,a);u&&typeof u.then=="function"?u.then(d=>i(null,d)).catch(i):i(null,u)}catch(u){i(u)}return}return l(t,a,i)}prepareLoading(t,a,r={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();me(t)&&(t=this.languageUtils.toResolveHierarchy(t)),me(a)&&(a=[a]);let n=this.queueLoad(t,a,r,o);if(!n.toLoad.length)return n.pending.length||o(),null;n.toLoad.forEach(s=>{this.loadOne(s)})}load(t,a,r){this.prepareLoading(t,a,{},r)}reload(t,a,r){this.prepareLoading(t,a,{reload:!0},r)}loadOne(t,a=""){let r=t.split("|"),o=r[0],n=r[1];this.read(o,n,"read",void 0,void 0,(s,i)=>{s&&this.logger.warn(`${a}loading namespace ${n} for language ${o} failed`,s),!s&&i&&this.logger.log(`${a}loaded namespace ${n} for language ${o}`,i),this.loaded(t,s,i)})}saveMissing(t,a,r,o,n,s={},i=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(a)){this.logger.warn(`did not save key "${r}" as the namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){let l={...s,isUpdate:n},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,a,r,o,l):d=u(t,a,r,o),d&&typeof d.then=="function"?d.then(c=>i(null,c)).catch(i):i(null,d)}catch(d){i(d)}else u(t,a,r,o,i,l)}!t||!t[0]||this.store.addResource(t[0],a,r,o)}}},Yg=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),me(e[1])&&(t.defaultValue=e[1]),me(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let a=e[3]||e[2];Object.keys(a).forEach(r=>{t[r]=a[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Jg=e=>(me(e.ns)&&(e.ns=[e.ns]),me(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),me(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),uu=()=>{},o0=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(a=>{typeof e[a]=="function"&&(e[a]=e[a].bind(e))})},mu=class e extends ds{constructor(t={},a){if(super(),this.options=Jg(t),this.services={},this.logger=tr,this.modules={external:[]},o0(this),a&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,a),this;setTimeout(()=>{this.init(t,a)},0)}}init(t={},a){this.isInitializing=!0,typeof t=="function"&&(a=t,t={}),t.defaultNS==null&&t.ns&&(me(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));let r=Yg();this.options={...r,...this.options,...Jg(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);let o=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?tr.init(o(this.modules.logger),this.options):tr.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=hf;let d=new pu(this.options);this.store=new cu(this.options.resources,this.options);let c=this.services;c.logger=tr,c.resourceStore=this.store,c.languageUtils=d,c.pluralResolver=new pf(d,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),u&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(c.formatter=o(u),c.formatter.init&&c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new mf(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new gf(o(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",(h,...v)=>{this.emit(h,...v)}),this.modules.languageDetector&&(c.languageDetector=o(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=o(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new fu(this.services,this.options),this.translator.on("*",(h,...v)=>{this.emit(h,...v)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,a||(a=uu),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=(...d)=>this.store[u](...d)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...d)=>(this.store[u](...d),this)});let i=Ei(),l=()=>{let u=(d,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(c),a(d,c)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),i}loadResources(t,a=uu){let r=a,o=me(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();let n=[],s=i=>{if(!i||i==="cimode")return;this.services.languageUtils.toResolveHierarchy(i).forEach(u=>{u!=="cimode"&&n.indexOf(u)<0&&n.push(u)})};o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload?.forEach?.(i=>s(i)),this.services.backendConnector.load(n,this.options.ns,i=>{!i&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(i)})}else r(null)}reloadResources(t,a,r){let o=Ei();return typeof t=="function"&&(r=t,t=void 0),typeof a=="function"&&(r=a,a=void 0),t||(t=this.languages),a||(a=this.options.ns),r||(r=uu),this.services.backendConnector.reload(t,a,n=>{o.resolve(),r(n)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&tv.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let a=0;a<this.languages.length;a++){let r=this.languages[a];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,a){this.isLanguageChangingTo=t;let r=Ei();this.emit("languageChanging",t);let o=i=>{this.language=i,this.languages=this.services.languageUtils.toResolveHierarchy(i),this.resolvedLanguage=void 0,this.setResolvedLanguage(i)},n=(i,l)=>{l?this.isLanguageChangingTo===t&&(o(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...u)=>this.t(...u)),a&&a(i,(...u)=>this.t(...u))},s=i=>{!t&&!i&&this.services.languageDetector&&(i=[]);let l=me(i)?i:i&&i[0],u=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(me(i)?[i]:i);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector?.cacheUserLanguage?.(u)),this.loadResources(u,d=>{n(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),r}getFixedT(t,a,r){let o=(n,s,...i)=>{let l;typeof s!="object"?l=this.options.overloadTranslationOptionHandler([n,s].concat(i)):l={...s},l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||o.keyPrefix);let u=this.options.keySeparator||".",d;return l.keyPrefix&&Array.isArray(n)?d=n.map(c=>(typeof c=="function"&&(c=ff(c,{...this.options,...s})),`${l.keyPrefix}${u}${c}`)):(typeof n=="function"&&(n=ff(n,{...this.options,...s})),d=l.keyPrefix?`${l.keyPrefix}${u}${n}`:n),this.t(d,l)};return me(t)?o.lng=t:o.lngs=t,o.ns=a,o.keyPrefix=r,o}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,a={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let r=a.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,n=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;let s=(i,l)=>{let u=this.services.backendConnector.state[`${i}|${l}`];return u===-1||u===0||u===2};if(a.precheck){let i=a.precheck(this,s);if(i!==void 0)return i}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!o||s(n,t)))}loadNamespaces(t,a){let r=Ei();return this.options.ns?(me(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),a&&a(o)}),r):(a&&a(),Promise.resolve())}loadLanguages(t,a){let r=Ei();me(t)&&(t=[t]);let o=this.options.preload||[],n=t.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return n.length?(this.options.preload=o.concat(n),this.loadResources(s=>{r.resolve(),a&&a(s)}),r):(a&&a(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{let o=new Intl.Locale(t);if(o&&o.getTextInfo){let n=o.getTextInfo();if(n&&n.direction)return n.direction}}catch{}let a=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new pu(Yg());return t.toLowerCase().indexOf("-latn")>1?"ltr":a.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},a){return new e(t,a)}cloneInstance(t={},a=uu){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let o={...this.options,...t,isClone:!0},n=new e(o);if((t.debug!==void 0||t.prefix!==void 0)&&(n.logger=n.logger.clone(t)),["store","services","language"].forEach(i=>{n[i]=this[i]}),n.services={...this.services},n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},r){let i=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},l[u]=Object.keys(l[u]).reduce((d,c)=>(d[c]={...l[u][c]},d),l[u]),l),{});n.store=new cu(i,o),n.services.resourceStore=n.store}return n.translator=new fu(n.services,o),n.translator.on("*",(i,...l)=>{n.emit(i,...l)}),n.init(o,a),n.translator.options=o,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},Ht=mu.createInstance();Ht.createInstance=mu.createInstance;var rv=Ht.createInstance,zO=Ht.dir,BO=Ht.init,UO=Ht.loadResources,HO=Ht.reloadResources,jO=Ht.use,VO=Ht.changeLanguage,qO=Ht.getFixedT,WO=Ht.t,GO=Ht.exists,$O=Ht.setDefaultNamespace,KO=Ht.hasLoadedNamespace,XO=Ht.loadNamespaces,ZO=Ht.loadLanguages;var fo=N(te(),1),n0=Symbol("remote-view.message"),vf=class extends Error{constructor(t,a,r){super(),this.key=t,this.values=a,Object.defineProperty(this,"message",{configurable:!0,get:()=>r(t,a)}),this.name="ViewMessageError"}key;values},ov={en:{close:"Close",commandTitle:"Command palette",commandDescription:"Search for a command to run\u2026"},"zh-Hans":{close:"\u5173\u95ED",commandTitle:"\u547D\u4EE4\u9762\u677F",commandDescription:"\u641C\u7D22\u8981\u8FD0\u884C\u7684\u547D\u4EE4\u2026"}};function hu(e){try{return new Intl.Locale((e||"en").replaceAll("_","-")).language==="zh"?"zh-Hans":"en"}catch{return"en"}}function xf(e,t=typeof navigator>"u"?"en":navigator.language){let a=rv();a.init({lng:hu(t),fallbackLng:"en",supportedLngs:["en","zh-Hans"],load:"currentOnly",initAsync:!1,keySeparator:!1,defaultNS:"view",interpolation:{escapeValue:!1},resources:{en:{view:e.en,ui:ov.en},"zh-Hans":{view:e["zh-Hans"],ui:ov["zh-Hans"]}}});let r=()=>hu(a.resolvedLanguage??a.language),o=s=>(a.on("languageChanged",s),()=>{a.off("languageChanged",s)}),n=(s,i)=>String(a.t(s,i));return{getLocale:r,subscribe:o,setLocale(s){s!==void 0&&a.changeLanguage(hu(s)),typeof document<"u"&&(document.documentElement.lang=r())},t:(s,i)=>n(s,i),message:(s,i)=>({[n0]:!0,key:s,values:i}),error:(s,i)=>new vf(s,i,n),format(s){return typeof s=="string"?s:s instanceof Error?s.message:n(s.key,s.values)},ui:s=>String(a.t(s,{ns:"ui"})),date(s,i={}){let l=new Date(s);return Number.isNaN(l.getTime())?"":new Intl.DateTimeFormat(r(),i).format(l)},number(s,i){return new Intl.NumberFormat(r(),i).format(s)},label(s,i=""){if(typeof s=="string")return s;let l=Object.entries(s),u=r();return l.find(([d])=>hu(d)===u&&/^(en|zh)([-_]|$)/i.test(d))?.[1]??s.en_US??s.en??s["en-US"]??i}}}var s0=xf({en:{},"zh-Hans":{}},"en"),sv=(0,fo.createContext)(s0);function iv({i18n:e,children:t}){return(0,nv.jsx)(sv.Provider,{value:e,children:t})}function gu(e){return(0,fo.useSyncExternalStore)(e.subscribe,e.getLocale,e.getLocale)}function lv(e,t=""){gu(e);let[a,r]=(0,fo.useState)(t);return[e.format(a),r]}function yf(){let e=(0,fo.useContext)(sv);return gu(e),e.ui}var uv={"bridge.contextChanged":"The space context has changed.","bridge.requestFailed":"The request failed.","bridge.closed":"The space is closed.","bridge.notConnected":"The space is not connected yet.","bridge.timeout":"The request timed out. Please try again.","common.actionFailed":"The action failed.","bridge.uploadFailed":"File upload failed.","bridge.editorUnavailable":"Unable to open the document editor.","templates.project.title":"Project brief","templates.project.description":"Align the team on the project background, goals, and key plans.","templates.project.content":`## Project goals
9
-
10
- Describe what this project should achieve.
11
-
12
- ## Key deliverables
13
-
14
- - First deliverable
15
- - Second deliverable
16
-
17
- ## Next steps
18
-
19
- Identify owners and the next review date.`,"templates.meeting.title":"Meeting notes","templates.meeting.description":"Capture decisions and next steps, with owners and deadlines.","templates.meeting.content":`## Discussion
20
-
21
- Record the meeting context and conclusions.
22
-
23
- ## Action items
24
-
25
- - Task \xB7 Owner \xB7 Due date
26
-
27
- ## Open questions
28
-
29
- Record questions that need follow-up.`,"templates.weekly.title":"Weekly update","templates.weekly.description":"Summarize progress, blockers, and plans for next week.","templates.weekly.content":`## This week
30
-
31
- - Completed work
32
-
33
- ## Blockers
34
-
35
- Record risks, blockers, and support needed.
36
-
37
- ## Next week
38
-
39
- - Next steps`,"folder.location":"Location","folder.root":"Space root","create.renameMove":"Rename and move","create.page":"New page","create.folder":"New folder","create.pageDescription":"Start with a blank page or a team template.","library.storageNote":"Content is saved in this project's file workspace.","create.startingPoint":"Page starting point","create.templates":"Page templates","create.blank":"Blank page","create.blankDescription":"Create a blank document.","create.pageName":"Page name","common.name":"Name","create.namePlaceholder":"Give this content a name","create.permissions":"Inherits project members' viewing and editing permissions","common.cancel":"Cancel","common.save":"Save","create.createPage":"Create page","common.create":"Create","download.preparing":"Preparing download\u2026","download.saveFile":"Save file","editor.connecting":"Connecting\u2026","editor.saving":"Saving\u2026","editor.fileSyncFailed":"Document edits are preserved, but file sync failed. Check file conflicts and try again.","editor.saveFailed":"Save failed. Please reopen the page.","editor.saved":"Saved","editor.offline":"Disconnected. Editing is paused and will sync when the connection returns.","editor.readOnly":"Read only","editor.externalChange":"The file has changed. Review its versions.","editor.reviewChanges":"File updated; review required","editor.reauthorize":"Disconnected. Reopen to verify access.","editor.accessFailed":"Access or sync failed. Please reopen the page.","editor.loadFailed":"Unable to load the page.","editor.label":"Page editor","editor.reviewVersions":"Review file versions","editor.blockType":"Block type","block.paragraph":"Text","block.heading":"Heading","block.list":"List","block.code":"Code","editor.headingPlaceholder":"Heading text","editor.paragraphPlaceholder":"Paragraph text","editor.addParagraph":"\uFF0B Add paragraph","conflict.title":"The file content has changed","conflict.description":"The file workspace and collaborative page have different versions. Choose which content to continue with; both versions remain in history.","conflict.fileVersion":"File workspace version","conflict.useFile":"Use file version","conflict.pageVersion":"Collaborative page version (including local edits)","conflict.keepPage":"Keep page version","conflict.loading":"Loading both versions\u2026","navigation.waitForSave":"Saving. Please wait before switching.","navigation.trash":"Trash","kind.folder":"Folder","kind.page":"Page","navigation.files":"Files and artifacts","navigation.all":"All content","common.dismiss":"Dismiss notification","common.processing":"Working\u2026","project.choose":"Choose a collaboration project","project.chooseDescription":"Create a Collaboration Space in the Workbench project picker, or choose an existing project.","project.sharing":"Project members and connected Assistants share the files and documents here.","common.reload":"Reload","navigation.label":"Space navigation","space.title":"Collaboration space","navigation.search":"Search space","common.opening":"Opening\u2026","space.sharedSuffix":"\xB7 Shared with project members","navigation.findDocument":"Find documents","knowledge.title":"Document search","navigation.back":"Back to content","document.actions":"Document actions","document.renameMove":"Rename / move","access.title":"Access","trash.restore":"Restore content","trash.move":"Move to trash","document.projectFileSuffix":"\xB7 Project file","trash.documentNotice":"This content is in the trash. Restore it to continue using it.","document.editorUnavailable":"The collaboration editor is temporarily unavailable. The original file is preserved and can be downloaded.","document.reopenEditor":"Reopen editor","document.originalFormat":"The file retains its original format and is available in the project file workspace.","document.download":"Download file","library.description":"Build, maintain, and use content with your team and AI.","library.search":"Search this space","library.new":"New","materials.title":"Add materials","source.title":"Import from a document platform","library.recent":"Recently updated","library.refresh":"Refresh list","library.loading":"Loading content\u2026","library.type":"Type","library.source":"Source","library.updated":"Updated","library.actions":"Actions","source.copyType":"External text copy","library.spacePage":"Space page","materials.assistantArtifacts":"Assistant artifacts","library.projectFile":"Project file","common.open":"Open","source.viewOrigin":"View import source","library.noResults":"No matching content","trash.empty":"Trash is empty","library.empty":"Write your first document together","library.searchHint":"Try another name or file path.","library.createHint":"Create a page or add files to start collaborating with your team and AI.","common.closePanel":"Close panel","source.originTitle":"Import source","source.copyDescription":"This document is an independent copy in this project, governed by project permissions.","source.openPlatform":"View original on source platform","common.close":"Close","access.description":"Maintain documents, files, and artifacts with your team and AI \xB7 Provided by the Spaces plugin","access.entry":"Workbench entry","access.views":"Views","access.entryDescription":"After an Assistant adds and publishes this capability, open the view in a connected collaboration project.","access.shared":"Shared with project members","access.roles":"Owners and admins manage members, Assistants, and content. Editors collaborate; other members view and download. Archived spaces are read only.","access.projectPermissions":"Manage members and Assistants in project settings. Assistant access alone does not grant access to project content.","access.capabilities":"Capabilities","access.pages":"Page collaboration","access.pagesDescription":"Independent Markdown editor with real-time collaboration and version history","access.ai":"Create with AI","access.aiDescription":"Generate, comment on, and review changes in the Assistant","access.filesDescription":"Project files, uploads, and collected artifact versions","access.searchDescription":"Search and reference space content with the project knowledge base","access.sheetDescription":"Spreadsheet editing is provided by installed editor plugins.","common.done":"Got it","common.image":"Image","materials.description":"Add files and existing artifacts to this space.","materials.source":"Material source","materials.local":"Local files","materials.chooseFiles":"Choose files to add","materials.fileLimit":"Up to 25 MiB per file","materials.editor":"Editing method","materials.keepOriginal":"Keep as original file","materials.search":"Search available artifacts","materials.loading":"Loading artifacts\u2026","materials.untitled":"Untitled artifact","materials.noFileVersion":"No file version available","materials.noVersion":"No versions","materials.empty":"No artifacts available. Generate a file in chat, then return here to add it.","common.previousPage":"Previous page","common.nextPage":"Next page","materials.versionNote":"Collect the selected version. Source updates will not overwrite the project file.","materials.add":"Add to space","error.retry":"The action failed. Please try again.","error.conflict":"Content has changed. Your content is preserved; refresh and review the files and version history.","error.denied":"You do not have permission, or your project access has been revoked.","error.timeout":"The response timed out. Please try again later.","error.model":"The model is unavailable. Check your organization's model configuration.","kind.file":"File","kind.sheet":"Spreadsheet","kind.artifact":"Artifact","panel.choosePage":"Select a page to view comments, AI suggestions, and version history.","proposal.request":"Describe the change","proposal.defaultRequest":"Make the next steps more specific","proposal.selectedOnly":"Only the selected paragraph is changed, after you accept the suggestion.","proposal.selectBlock":"Select a paragraph first.","proposal.generate":"Generate suggestion","proposal.original":"Original","proposal.suggestion":"Suggested change","proposal.accept":"Accept change","proposal.reject":"Reject","proposal.accepted":"Accepted","proposal.rejected":"Rejected","comments.resolved":"Resolved","comments.pending":"Open","comments.reopen":"Reopen","comments.resolve":"Mark resolved","comments.empty":"No comments yet. Leave a question or record a conclusion.","comments.body":"Comment","comments.placeholder":"Add a comment\u2026","comments.post":"Post comment","history.checkpointLabel":"Manual checkpoint","history.createCheckpoint":"Create checkpoint","history.current":"Current version","history.preserveNote":"The current version will be preserved before restoring.","history.restoreVersion":"Restore this version","history.confirmNext":"Review the content to restore next.","history.restoreDescription":"This content will become a new version. The current version remains in history.","history.confirmRestore":"Confirm restore","knowledge.description":"The project's built-in knowledge base indexes documents and inherits project permissions.","knowledge.enable":"Enable built-in knowledge base","knowledge.linked":"Built-in knowledge base connected \xB7 Keyword search","knowledge.sync":"Sync / retry indexing","knowledge.refresh":"Refresh status","knowledge.askTitle":"Ask this space","knowledge.accessNote":"Answers use only content you can access in this project.","knowledge.question":"Question","knowledge.placeholder":"What should this project do next?","knowledge.ask":"Ask","knowledge.noSources":"No usable sources found.","error.save":"Save failed.","error.download":"Download failed.","source.error.locator":"Paste a Feishu /docx/ or /wiki/ document link.","source.error.type":"This wiki link does not point to a new document. Only docx text copies are supported.","source.error.access":"The account authorized for this connection cannot read the document. Check the connection and document accounts, or choose an accessible document.","source.error.connection":"Unable to read the source. Check the connection, app permissions, and the authorized account's document access.","source.error.changed":"The Feishu document has changed. Preview it again before importing.","source.error.size":"The document exceeds the current 100 KB text limit.","source.description":"Copy text from an authorized source into this project to edit with project members.","source.retryConnections":"Retry loading connections","source.noConnections":"This Assistant / project has no connection that supports document reading.","source.setupHint":"Ask an administrator to install the Feishu connector and authorize a shared account in connection management. Then select Recheck.","source.recheck":"Recheck","source.provider":"Document source","source.chooseConnection":"Choose an authorized connection","source.projectScope":"Project","source.workspaceScope":"Assistant workspace","source.recheckConnections":"Recheck connections","source.searchHint":"Available documents depend on the account authorized for this shared connection. An empty query lists the drive root; keyword searches return up to 199 new documents.","source.searchLabel":"Search source documents","source.searchPlaceholder":"Search document titles","source.search":"Search / list","source.linkLabel":"Feishu document link","source.linkPlaceholder":"Paste a Feishu /docx/ or /wiki/ link","common.preview":"Preview","source.emptyPage":"No importable documents on this page. Continue to the next page or paste a document link.","common.loadMore":"Load more","source.openOriginal":"View original","source.emptyText":"(This document has no importable text.)","source.confirmation":"I have reviewed the preview and agree to share this text copy with project members. The copy is stored independently and will not be deleted automatically if remote access is revoked.","source.import":"Import text copy","library.subpage":"Subpage \xB7 {{title}}","library.moreActions":"More actions for {{title}}","source.destination":"{{space}} / {{folder}}","source.originRevision":"{{provider}} \xB7 Source revision {{revision}}","source.importedAt":"Imported: {{date}}","source.id":"Source ID: {{id}}","source.previewMeta":"Source revision {{revision}} \xB7 Destination: {{destination}}","source.connectionLabel":"{{provider}} \xB7 Shared with {{scope}}","source.disconnected":"{{label}} \xB7 Not connected","materials.importWith":"Import with {{editor}}","materials.chooseArtifact":"Select {{title}}","materials.artifactVersion":"Version of {{title}}","materials.selected":"{{count}} items selected","materials.selected_one":"{{count}} item selected","materials.selected_other":"{{count}} items selected","common.pageNumber":"Page {{page}}","history.restoreTitle":"Restore \u201C{{title}}\u201D?","editor.people":"{{count}} online: {{names}}","common.workbench":"Workbench","materials.fileSize":"{{size}} KB","common.version":"v{{version}}","history.versionMeta":"{{date}} \xB7 v{{version}}","create.document":"Create document"};var dv={"bridge.contextChanged":"\u7A7A\u95F4\u4E0A\u4E0B\u6587\u5DF2\u5207\u6362","bridge.requestFailed":"\u8BF7\u6C42\u5931\u8D25","bridge.closed":"\u7A7A\u95F4\u5DF2\u5173\u95ED","bridge.notConnected":"\u7A7A\u95F4\u5C1A\u672A\u8FDE\u63A5","bridge.timeout":"\u8BF7\u6C42\u8D85\u65F6\uFF0C\u8BF7\u91CD\u8BD5","common.actionFailed":"\u64CD\u4F5C\u5931\u8D25","bridge.uploadFailed":"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25","bridge.editorUnavailable":"\u65E0\u6CD5\u6253\u5F00\u6587\u6863\u7F16\u8F91\u5668","templates.project.title":"\u9879\u76EE\u7B80\u62A5","templates.project.description":"\u68B3\u7406\u9879\u76EE\u80CC\u666F\u3001\u76EE\u6807\u4E0E\u5173\u952E\u8BA1\u5212\uFF0C\u8BA9\u56E2\u961F\u5BF9\u9F50\u3002","templates.project.content":`## \u9879\u76EE\u76EE\u6807
40
-
41
- \u63CF\u8FF0\u672C\u9879\u76EE\u5E0C\u671B\u8FBE\u6210\u7684\u76EE\u6807\u3002
42
-
43
- ## \u5173\u952E\u4EA4\u4ED8
44
-
45
- - \u7B2C\u4E00\u9879\u4EA4\u4ED8
46
- - \u7B2C\u4E8C\u9879\u4EA4\u4ED8
47
-
48
- ## \u4E0B\u4E00\u6B65
49
-
50
- \u660E\u786E\u8D1F\u8D23\u4EBA\u548C\u4E0B\u4E00\u6B21\u68C0\u67E5\u65F6\u95F4\u3002`,"templates.meeting.title":"\u4F1A\u8BAE\u7EAA\u8981","templates.meeting.description":"\u8BB0\u5F55\u8BA8\u8BBA\u8981\u70B9\u4E0E\u540E\u7EED\u884C\u52A8\uFF0C\u660E\u786E\u8D23\u4EFB\u4E0E\u65F6\u95F4\u3002","templates.meeting.content":`## \u8BA8\u8BBA\u8981\u70B9
51
-
52
- \u8BB0\u5F55\u4F1A\u8BAE\u80CC\u666F\u4E0E\u8BA8\u8BBA\u7ED3\u8BBA\u3002
53
-
54
- ## \u884C\u52A8\u4E8B\u9879
55
-
56
- - \u5F85\u529E\u4E8B\u9879 \xB7 \u8D1F\u8D23\u4EBA \xB7 \u622A\u6B62\u65E5\u671F
57
-
58
- ## \u5F85\u786E\u8BA4
59
-
60
- \u8BB0\u5F55\u9700\u8981\u540E\u7EED\u786E\u8BA4\u7684\u95EE\u9898\u3002`,"templates.weekly.title":"\u56E2\u961F\u5468\u62A5","templates.weekly.description":"\u603B\u7ED3\u672C\u5468\u8FDB\u5C55\u3001\u5F85\u89E3\u51B3\u95EE\u9898\u4E0E\u4E0B\u5468\u5B89\u6392\u3002","templates.weekly.content":`## \u672C\u5468\u8FDB\u5C55
61
-
62
- - \u5DF2\u5B8C\u6210\u7684\u5DE5\u4F5C
63
-
64
- ## \u5F85\u89E3\u51B3
65
-
66
- \u8BB0\u5F55\u98CE\u9669\u3001\u963B\u788D\u4E0E\u9700\u8981\u7684\u652F\u6301\u3002
67
-
68
- ## \u4E0B\u5468\u5B89\u6392
69
-
70
- - \u4E0B\u4E00\u6B65\u8BA1\u5212`,"folder.location":"\u5B58\u653E\u4F4D\u7F6E","folder.root":"\u7A7A\u95F4\u6839\u76EE\u5F55","create.renameMove":"\u91CD\u547D\u540D\u4E0E\u79FB\u52A8","create.page":"\u65B0\u5EFA\u9875\u9762","create.folder":"\u65B0\u5EFA\u6587\u4EF6\u5939","create.pageDescription":"\u4ECE\u7A7A\u767D\u9875\u9762\u5F00\u59CB\uFF0C\u6216\u4F7F\u7528\u56E2\u961F\u5E38\u7528\u6A21\u677F","library.storageNote":"\u5185\u5BB9\u4FDD\u5B58\u5728\u5F53\u524D\u9879\u76EE\u7684\u6587\u4EF6\u5DE5\u4F5C\u533A\u4E2D","create.startingPoint":"\u9875\u9762\u8D77\u70B9","create.templates":"\u9875\u9762\u6A21\u677F","create.blank":"\u7A7A\u767D\u9875\u9762","create.blankDescription":"\u521B\u5EFA\u4E00\u4EFD\u7A7A\u767D\u6587\u6863\u3002","create.pageName":"\u9875\u9762\u540D\u79F0","common.name":"\u540D\u79F0","create.namePlaceholder":"\u4E3A\u8FD9\u4EFD\u5185\u5BB9\u547D\u540D","create.permissions":"\u7EE7\u627F\u9879\u76EE\u6210\u5458\u7684\u67E5\u770B\u4E0E\u7F16\u8F91\u6743\u9650","common.cancel":"\u53D6\u6D88","common.save":"\u4FDD\u5B58","create.createPage":"\u521B\u5EFA\u9875\u9762","common.create":"\u521B\u5EFA","download.preparing":"\u6B63\u5728\u51C6\u5907\u4E0B\u8F7D\u2026","download.saveFile":"\u4FDD\u5B58\u6587\u4EF6","editor.connecting":"\u6B63\u5728\u8FDE\u63A5\u2026","editor.saving":"\u6B63\u5728\u4FDD\u5B58\u2026","editor.fileSyncFailed":"\u6587\u6863\u4FEE\u6539\u5DF2\u4FDD\u7559\uFF0C\u4F46\u6587\u4EF6\u540C\u6B65\u5931\u8D25\u3002\u8BF7\u68C0\u67E5\u6587\u4EF6\u51B2\u7A81\u540E\u91CD\u8BD5\u3002","editor.saveFailed":"\u4FDD\u5B58\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u6253\u5F00\u9875\u9762","editor.saved":"\u5DF2\u4FDD\u5B58","editor.offline":"\u7F51\u7EDC\u5DF2\u65AD\u5F00\uFF0C\u7F16\u8F91\u5DF2\u6682\u505C\uFF1B\u8FDE\u63A5\u6062\u590D\u540E\u81EA\u52A8\u540C\u6B65","editor.readOnly":"\u53EA\u8BFB","editor.externalChange":"\u6587\u4EF6\u5DF2\u88AB\u4FEE\u6539\uFF0C\u7B49\u5F85\u6838\u5BF9\u7248\u672C","editor.reviewChanges":"\u6587\u4EF6\u6709\u66F4\u65B0\uFF0C\u5F85\u6838\u5BF9","editor.reauthorize":"\u8FDE\u63A5\u5DF2\u65AD\u5F00\uFF0C\u8BF7\u91CD\u65B0\u6253\u5F00\u4EE5\u9A8C\u8BC1\u8BBF\u95EE\u6743\u9650","editor.accessFailed":"\u8BBF\u95EE\u6216\u540C\u6B65\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u6253\u5F00\u9875\u9762","editor.loadFailed":"\u9875\u9762\u52A0\u8F7D\u5931\u8D25","editor.label":"\u9875\u9762\u7F16\u8F91\u5668","editor.reviewVersions":"\u6838\u5BF9\u6587\u4EF6\u7248\u672C","editor.blockType":"\u6BB5\u843D\u7C7B\u578B","block.paragraph":"\u6B63\u6587","block.heading":"\u6807\u9898","block.list":"\u5217\u8868","block.code":"\u4EE3\u7801","editor.headingPlaceholder":"\u6807\u9898\u5185\u5BB9","editor.paragraphPlaceholder":"\u6BB5\u843D\u5185\u5BB9","editor.addParagraph":"\uFF0B \u6DFB\u52A0\u6BB5\u843D","conflict.title":"\u6587\u4EF6\u5185\u5BB9\u5DF2\u53D1\u751F\u53D8\u5316","conflict.description":"\u6587\u4EF6\u5DE5\u4F5C\u533A\u548C\u534F\u4F5C\u9875\u9762\u6709\u4E0D\u540C\u7248\u672C\u3002\u9009\u62E9\u8981\u7EE7\u7EED\u4F7F\u7528\u7684\u5185\u5BB9\uFF1B\u4E24\u4EFD\u5185\u5BB9\u90FD\u4F1A\u4FDD\u7559\u5728\u5386\u53F2\u8BB0\u5F55\u4E2D\u3002","conflict.fileVersion":"\u6587\u4EF6\u5DE5\u4F5C\u533A\u7248\u672C","conflict.useFile":"\u91C7\u7528\u6587\u4EF6\u7248\u672C","conflict.pageVersion":"\u534F\u4F5C\u9875\u9762\u7248\u672C\uFF08\u542B\u672C\u5730\u4FEE\u6539\uFF09","conflict.keepPage":"\u4FDD\u7559\u9875\u9762\u7248\u672C","conflict.loading":"\u6B63\u5728\u8BFB\u53D6\u4E24\u4E2A\u7248\u672C\u2026","navigation.waitForSave":"\u6B63\u5728\u4FDD\u5B58\uFF0C\u8BF7\u7B49\u5F85\u5B8C\u6210\u540E\u518D\u5207\u6362\u3002","navigation.trash":"\u56DE\u6536\u7AD9","kind.folder":"\u6587\u4EF6\u5939","kind.page":"\u9875\u9762","navigation.files":"\u6587\u4EF6\u4E0E\u6210\u679C","navigation.all":"\u5168\u90E8\u5185\u5BB9","common.dismiss":"\u5173\u95ED\u63D0\u793A","common.processing":"\u6B63\u5728\u5904\u7406\u2026","project.choose":"\u9009\u62E9\u4E00\u4E2A\u534F\u4F5C\u7A7A\u95F4\u9879\u76EE","project.chooseDescription":"\u5728 Workbench \u7684\u9879\u76EE\u9009\u62E9\u5668\u4E2D\u521B\u5EFA\u201C\u534F\u4F5C\u7A7A\u95F4\u201D\uFF0C\u6216\u9009\u62E9\u5DF2\u6709\u9879\u76EE\u3002","project.sharing":"\u9879\u76EE\u6210\u5458\u548C\u7ED1\u5B9A\u7684\u591A\u4E2A Assistant \u5C06\u5171\u540C\u4F7F\u7528\u8FD9\u91CC\u7684\u6587\u4EF6\u4E0E\u6587\u6863\u3002","common.reload":"\u91CD\u65B0\u52A0\u8F7D","navigation.label":"\u7A7A\u95F4\u5BFC\u822A","space.title":"\u534F\u4F5C\u7A7A\u95F4","navigation.search":"\u641C\u7D22\u7A7A\u95F4","common.opening":"\u6B63\u5728\u6253\u5F00\u2026","space.sharedSuffix":"\xB7 \u9879\u76EE\u6210\u5458\u5171\u4EAB","navigation.findDocument":"\u67E5\u627E\u6587\u6863","knowledge.title":"\u6587\u6863\u68C0\u7D22","navigation.back":"\u8FD4\u56DE\u5185\u5BB9\u5217\u8868","document.actions":"\u6587\u6863\u64CD\u4F5C","document.renameMove":"\u91CD\u547D\u540D / \u79FB\u52A8","access.title":"\u8BBF\u95EE\u8303\u56F4","trash.restore":"\u6062\u590D\u5185\u5BB9","trash.move":"\u79FB\u5165\u56DE\u6536\u7AD9","document.projectFileSuffix":"\xB7 \u9879\u76EE\u6587\u4EF6","trash.documentNotice":"\u6B64\u5185\u5BB9\u5DF2\u79FB\u5165\u56DE\u6536\u7AD9\uFF0C\u6062\u590D\u540E\u53EF\u7EE7\u7EED\u4F7F\u7528\u3002","document.editorUnavailable":"\u6B64\u6587\u6863\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u534F\u4F5C\u7F16\u8F91\u5668\u6253\u5F00\u3002\u539F\u59CB\u6587\u4EF6\u4FDD\u7559\uFF0C\u53EF\u4E0B\u8F7D\u67E5\u770B\u3002","document.reopenEditor":"\u91CD\u65B0\u6253\u5F00\u7F16\u8F91\u5668","document.originalFormat":"\u6587\u4EF6\u4FDD\u7559\u539F\u59CB\u683C\u5F0F\uFF0C\u53EF\u5728\u9879\u76EE\u6587\u4EF6\u5DE5\u4F5C\u533A\u4E2D\u7EE7\u7EED\u4F7F\u7528\u3002","document.download":"\u4E0B\u8F7D\u6587\u4EF6","library.description":"\u4E0E\u56E2\u961F\u548C AI \u4E00\u8D77\u79EF\u7D2F\u3001\u7EF4\u62A4\u548C\u4F7F\u7528\u5185\u5BB9","library.search":"\u641C\u7D22\u5F53\u524D\u7A7A\u95F4","library.new":"\u65B0\u5EFA","materials.title":"\u6DFB\u52A0\u8D44\u6599","source.title":"\u4ECE\u6587\u6863\u5E73\u53F0\u5BFC\u5165","library.recent":"\u6700\u8FD1\u66F4\u65B0","library.refresh":"\u5237\u65B0\u5217\u8868","library.loading":"\u6B63\u5728\u52A0\u8F7D\u5185\u5BB9\u2026","library.type":"\u7C7B\u578B","library.source":"\u6765\u6E90","library.updated":"\u66F4\u65B0\u65F6\u95F4","library.actions":"\u64CD\u4F5C","source.copyType":"\u5916\u90E8\u6587\u672C\u526F\u672C","library.spacePage":"\u7A7A\u95F4\u9875\u9762","materials.assistantArtifacts":"Assistant \u6210\u679C","library.projectFile":"\u9879\u76EE\u6587\u4EF6","common.open":"\u6253\u5F00","source.viewOrigin":"\u67E5\u770B\u5BFC\u5165\u6765\u6E90","library.noResults":"\u6CA1\u6709\u627E\u5230\u5339\u914D\u7684\u5185\u5BB9","trash.empty":"\u56DE\u6536\u7AD9\u4E3A\u7A7A","library.empty":"\u4E00\u8D77\u5199\u4E0B\u7B2C\u4E00\u7BC7\u6587\u6863","library.searchHint":"\u8BD5\u8BD5\u5176\u4ED6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\u3002","library.createHint":"\u521B\u5EFA\u9875\u9762\uFF0C\u6216\u6DFB\u52A0\u5DF2\u6709\u6587\u4EF6\uFF0C\u5F00\u59CB\u4E0E\u56E2\u961F\u548C AI \u534F\u4F5C\u3002","common.closePanel":"\u5173\u95ED\u4FA7\u680F","source.originTitle":"\u5BFC\u5165\u6765\u6E90","source.copyDescription":"\u6B64\u6587\u6863\u662F\u5F53\u524D\u9879\u76EE\u4E2D\u7684\u72EC\u7ACB\u526F\u672C\uFF0C\u7531\u9879\u76EE\u6743\u9650\u7BA1\u7406\u3002","source.openPlatform":"\u5728\u6765\u6E90\u5E73\u53F0\u67E5\u770B\u539F\u6587","common.close":"\u5173\u95ED","access.description":"\u4E0E\u56E2\u961F\u548C AI \u5171\u540C\u7EF4\u62A4\u6587\u6863\u3001\u6587\u4EF6\u548C\u6210\u679C \xB7 \u7531 Spaces \u63D2\u4EF6\u63D0\u4F9B","access.entry":"\u5DE5\u4F5C\u53F0\u5165\u53E3","access.views":"\u89C6\u56FE","access.entryDescription":"Assistant \u6DFB\u52A0\u5E76\u53D1\u5E03\u6B64\u80FD\u529B\u540E\uFF0C\u53EF\u5728\u5DF2\u7ED1\u5B9A\u7684\u534F\u4F5C\u7A7A\u95F4\u9879\u76EE\u4E2D\u6253\u5F00\u89C6\u56FE\u3002","access.shared":"\u9879\u76EE\u6210\u5458\u5171\u4EAB","access.roles":"\u6240\u6709\u8005\u548C\u7BA1\u7406\u5458\u7BA1\u7406\u6210\u5458\u3001Assistant \u4E0E\u5185\u5BB9\uFF1B\u7F16\u8F91\u8005\u5171\u540C\u7F16\u8F91\uFF0C\u666E\u901A\u6210\u5458\u67E5\u770B\u548C\u4E0B\u8F7D\u3002\u5F52\u6863\u540E\u7A7A\u95F4\u53EA\u8BFB\u3002","access.projectPermissions":"\u5728\u9879\u76EE\u8BBE\u7F6E\u4E2D\u7BA1\u7406\u6210\u5458\u4E0E\u591A\u4E2A Assistant\u3002\u4EC5\u62E5\u6709 Assistant \u6743\u9650\u4E0D\u4F1A\u83B7\u5F97\u8BE5\u9879\u76EE\u7684\u5185\u5BB9\u3002","access.capabilities":"\u5305\u542B\u7684\u80FD\u529B","access.pages":"\u9875\u9762\u534F\u4F5C","access.pagesDescription":"\u72EC\u7ACB Markdown \u7F16\u8F91\u5668\uFF0C\u5B9E\u65F6\u534F\u4F5C\u4E0E\u7248\u672C\u5386\u53F2","access.ai":"AI \u5171\u521B","access.aiDescription":"\u5728 Assistant \u4E2D\u751F\u6210\u3001\u8BC4\u8BBA\u4E0E\u5BA1\u9605\u4FEE\u6539","access.filesDescription":"\u9879\u76EE\u6587\u4EF6\u3001\u4E0A\u4F20\u4E0E\u56FA\u5B9A\u7248\u672C\u5F52\u96C6","access.searchDescription":"\u7ED1\u5B9A\u9879\u76EE\u77E5\u8BC6\u5E93\uFF0C\u68C0\u7D22\u4E0E\u5F15\u7528\u7A7A\u95F4\u5185\u5BB9","access.sheetDescription":"\u8868\u683C\u7F16\u8F91\u7531\u5DF2\u5B89\u88C5\u7684\u7F16\u8F91\u5668\u63D2\u4EF6\u63D0\u4F9B\u3002","common.done":"\u77E5\u9053\u4E86","common.image":"\u56FE\u7247","materials.description":"\u5C06\u6587\u4EF6\u4E0E\u5DF2\u6709\u6210\u679C\u653E\u8FDB\u5F53\u524D\u7A7A\u95F4","materials.source":"\u8D44\u6599\u6765\u6E90","materials.local":"\u672C\u5730\u6587\u4EF6","materials.chooseFiles":"\u9009\u62E9\u8981\u6DFB\u52A0\u7684\u6587\u4EF6","materials.fileLimit":"\u6BCF\u4E2A\u6587\u4EF6\u6700\u591A 25 MiB","materials.editor":"\u7F16\u8F91\u65B9\u5F0F","materials.keepOriginal":"\u4FDD\u7559\u4E3A\u539F\u59CB\u6587\u4EF6","materials.search":"\u641C\u7D22\u53EF\u5F52\u96C6\u7684\u6210\u679C","materials.loading":"\u6B63\u5728\u52A0\u8F7D\u6210\u679C\u2026","materials.untitled":"\u672A\u547D\u540D\u6210\u679C","materials.noFileVersion":"\u6682\u65E0\u6587\u4EF6\u7248\u672C","materials.noVersion":"\u6682\u65E0\u7248\u672C","materials.empty":"\u6682\u65E0\u53EF\u5F52\u96C6\u7684\u6210\u679C\u3002\u5728\u804A\u5929\u4E2D\u751F\u6210\u6587\u4EF6\u540E\uFF0C\u53EF\u56DE\u5230\u8FD9\u91CC\u6DFB\u52A0\u3002","common.previousPage":"\u4E0A\u4E00\u9875","common.nextPage":"\u4E0B\u4E00\u9875","materials.versionNote":"\u5F52\u96C6\u6240\u9009\u7248\u672C\uFF0C\u6765\u6E90\u66F4\u65B0\u4E0D\u4F1A\u81EA\u52A8\u8986\u76D6\u5F53\u524D\u9879\u76EE\u6587\u4EF6\u3002","materials.add":"\u6DFB\u52A0\u5230\u7A7A\u95F4","error.retry":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5","error.conflict":"\u5185\u5BB9\u5DF2\u53D1\u751F\u53D8\u5316\u3002\u5DF2\u4FDD\u7559\u5F53\u524D\u5185\u5BB9\uFF0C\u8BF7\u5237\u65B0\u540E\u68C0\u67E5\u6587\u4EF6\u548C\u7248\u672C\u8BB0\u5F55\u3002","error.denied":"\u6CA1\u6709\u6267\u884C\u6B64\u64CD\u4F5C\u7684\u6743\u9650\uFF0C\u6216\u9879\u76EE\u8BBF\u95EE\u6743\u9650\u5DF2\u88AB\u64A4\u9500\u3002","error.timeout":"\u54CD\u5E94\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002","error.model":"\u6A21\u578B\u6682\u4E0D\u53EF\u7528\uFF0C\u8BF7\u68C0\u67E5\u7EC4\u7EC7\u7684\u6A21\u578B\u914D\u7F6E\u3002","kind.file":"\u6587\u4EF6","kind.sheet":"\u8868\u683C","kind.artifact":"\u6210\u679C","panel.choosePage":"\u9009\u62E9\u9875\u9762\u4EE5\u67E5\u770B\u8BC4\u8BBA\u3001AI \u5EFA\u8BAE\u548C\u7248\u672C\u5386\u53F2\u3002","proposal.request":"\u63CF\u8FF0\u4FEE\u6539\u8981\u6C42","proposal.defaultRequest":"\u8BA9\u4E0B\u4E00\u6B65\u66F4\u5177\u4F53","proposal.selectedOnly":"\u53EA\u4FEE\u6539\u9009\u4E2D\u7684\u6BB5\u843D\uFF0C\u63A5\u53D7\u540E\u5199\u5165\u6B63\u6587\u3002","proposal.selectBlock":"\u5148\u70B9\u51FB\u6B63\u6587\u4E2D\u7684\u6BB5\u843D\u3002","proposal.generate":"\u751F\u6210\u4FEE\u6539\u5EFA\u8BAE","proposal.original":"\u539F\u6587","proposal.suggestion":"\u5EFA\u8BAE\u4FEE\u6539","proposal.accept":"\u63A5\u53D7\u4FEE\u6539","proposal.reject":"\u62D2\u7EDD","proposal.accepted":"\u5DF2\u63A5\u53D7","proposal.rejected":"\u5DF2\u62D2\u7EDD","comments.resolved":"\u5DF2\u89E3\u51B3","comments.pending":"\u5F85\u5904\u7406","comments.reopen":"\u91CD\u65B0\u6253\u5F00","comments.resolve":"\u6807\u8BB0\u89E3\u51B3","comments.empty":"\u8FD8\u6CA1\u6709\u8BC4\u8BBA\u3002\u7559\u4E0B\u95EE\u9898\u6216\u8BB0\u5F55\u8BA8\u8BBA\u7ED3\u8BBA\u3002","comments.body":"\u8BC4\u8BBA\u5185\u5BB9","comments.placeholder":"\u6DFB\u52A0\u8BC4\u8BBA\u2026","comments.post":"\u53D1\u8868\u8BC4\u8BBA","history.checkpointLabel":"\u624B\u52A8\u68C0\u67E5\u70B9","history.createCheckpoint":"\u521B\u5EFA\u68C0\u67E5\u70B9","history.current":"\u5F53\u524D\u7248\u672C","history.preserveNote":"\u6062\u590D\u524D\u4F1A\u4FDD\u7559\u5F53\u524D\u7248\u672C","history.restoreVersion":"\u6062\u590D\u6B64\u7248\u672C","history.confirmNext":"\u4E0B\u4E00\u6B65\u5C06\u786E\u8BA4\u6062\u590D\u5185\u5BB9","history.restoreDescription":"\u5C06\u4EE5\u6B64\u5185\u5BB9\u751F\u6210\u65B0\u7248\u672C\uFF0C\u5F53\u524D\u7248\u672C\u4F1A\u4FDD\u7559\u5728\u5386\u53F2\u8BB0\u5F55\u4E2D\u3002","history.confirmRestore":"\u786E\u8BA4\u6062\u590D","knowledge.description":"\u9879\u76EE\u5185\u7F6E\u77E5\u8BC6\u5E93\u7D22\u5F15\u5F53\u524D\u6587\u6863\uFF0C\u8BBF\u95EE\u6743\u9650\u59CB\u7EC8\u7EE7\u627F\u9879\u76EE\u3002","knowledge.enable":"\u542F\u7528\u5185\u7F6E\u77E5\u8BC6\u5E93","knowledge.linked":"\u5DF2\u7ED1\u5B9A\u5185\u7F6E\u77E5\u8BC6\u5E93 \xB7 \u5173\u952E\u8BCD\u68C0\u7D22","knowledge.sync":"\u540C\u6B65 / \u91CD\u8BD5\u7D22\u5F15","knowledge.refresh":"\u5237\u65B0\u72B6\u6001","knowledge.askTitle":"\u5411\u7A7A\u95F4\u63D0\u95EE","knowledge.accessNote":"\u4EC5\u6839\u636E\u5F53\u524D\u9879\u76EE\u4E2D\u4F60\u6709\u6743\u8BBF\u95EE\u7684\u5185\u5BB9\u56DE\u7B54\u3002","knowledge.question":"\u95EE\u9898","knowledge.placeholder":"\u8FD9\u4E2A\u9879\u76EE\u4E0B\u4E00\u6B65\u9700\u8981\u505A\u4EC0\u4E48\uFF1F","knowledge.ask":"\u63D0\u95EE","knowledge.noSources":"\u6CA1\u6709\u627E\u5230\u53EF\u7528\u6765\u6E90\u3002","error.save":"\u4FDD\u5B58\u5931\u8D25","error.download":"\u4E0B\u8F7D\u5931\u8D25","source.error.locator":"\u8BF7\u7C98\u8D34\u98DE\u4E66\u65B0\u7248\u6587\u6863\u7684 /docx/ \u6216 /wiki/ \u94FE\u63A5\u3002","source.error.type":"\u8BE5\u77E5\u8BC6\u5E93\u94FE\u63A5\u6307\u5411\u7684\u4E0D\u662F\u65B0\u7248\u6587\u6863\uFF0C\u5F53\u524D\u4EC5\u652F\u6301\u5BFC\u5165 docx \u6587\u672C\u526F\u672C\u3002","source.error.access":"\u5F53\u524D\u8FDE\u63A5\u7684\u6388\u6743\u8D26\u6237\u6CA1\u6709\u8BE5\u6587\u6863\u7684\u9605\u8BFB\u6743\u9650\u3002\u8BF7\u6838\u5BF9\u8FDE\u63A5\u8D26\u53F7\u4E0E\u6587\u6863\u8D26\u53F7\uFF0C\u6216\u9009\u62E9\u8BE5\u8D26\u53F7\u53EF\u4EE5\u8BFB\u53D6\u7684\u6587\u6863\u3002","source.error.connection":"\u65E0\u6CD5\u8BFB\u53D6\u6765\u6E90\u3002\u8BF7\u68C0\u67E5\u8FDE\u63A5\u662F\u5426\u6709\u6548\u3001\u5E94\u7528\u6743\u9650\uFF0C\u4EE5\u53CA\u6388\u6743\u8D26\u6237\u662F\u5426\u80FD\u8BBF\u95EE\u8BE5\u6587\u6863\u3002","source.error.changed":"\u98DE\u4E66\u539F\u6587\u5DF2\u53D8\u5316\uFF0C\u8BF7\u91CD\u65B0\u9884\u89C8\u540E\u518D\u5BFC\u5165\u3002","source.error.size":"\u6587\u6863\u8D85\u8FC7\u672C\u6279\u652F\u6301\u7684 100 KB \u6587\u672C\u4E0A\u9650\u3002","source.description":"\u5C06\u6388\u6743\u6765\u6E90\u7684\u6587\u672C\u590D\u5236\u5230\u5F53\u524D\u9879\u76EE\uFF0C\u4E0E\u9879\u76EE\u6210\u5458\u5171\u540C\u7F16\u8F91\u3002","source.retryConnections":"\u91CD\u8BD5\u52A0\u8F7D\u8FDE\u63A5","source.noConnections":"\u5F53\u524D Assistant / \u9879\u76EE\u6CA1\u6709\u652F\u6301\u6587\u6863\u8BFB\u53D6\u7684\u8FDE\u63A5\u3002","source.setupHint":"\u8BF7\u7BA1\u7406\u5458\u5B89\u88C5\u98DE\u4E66\u8FDE\u63A5\u5668\uFF0C\u5E76\u5728\u8FDE\u63A5\u7BA1\u7406\u4E2D\u5B8C\u6210\u5171\u4EAB\u8D26\u6237\u6388\u6743\u3002\u6388\u6743\u5B8C\u6210\u540E\uFF0C\u70B9\u51FB\u201C\u91CD\u65B0\u68C0\u67E5\u201D\u3002","source.recheck":"\u91CD\u65B0\u68C0\u67E5","source.provider":"\u6587\u6863\u6765\u6E90","source.chooseConnection":"\u9009\u62E9\u5DF2\u6388\u6743\u8FDE\u63A5","source.projectScope":"\u9879\u76EE","source.workspaceScope":"Assistant \u5DE5\u4F5C\u533A","source.recheckConnections":"\u91CD\u65B0\u68C0\u67E5\u8FDE\u63A5","source.searchHint":"\u6587\u6863\u8303\u56F4\u7531\u8BE5\u5171\u4EAB\u8FDE\u63A5\u7684\u6388\u6743\u8D26\u6237\u51B3\u5B9A\u3002\u7A7A\u67E5\u8BE2\u5217\u51FA\u4E91\u76D8\u6839\u76EE\u5F55\uFF1B\u5173\u952E\u8BCD\u641C\u7D22\u6700\u591A\u8FD4\u56DE\u524D 199 \u9879\u65B0\u7248\u6587\u6863\u3002","source.searchLabel":"\u641C\u7D22\u6765\u6E90\u6587\u6863","source.searchPlaceholder":"\u641C\u7D22\u6587\u6863\u6807\u9898","source.search":"\u641C\u7D22 / \u5217\u51FA","source.linkLabel":"\u98DE\u4E66\u6587\u6863\u94FE\u63A5","source.linkPlaceholder":"\u7C98\u8D34\u98DE\u4E66 /docx/ \u6216 /wiki/ \u94FE\u63A5","common.preview":"\u9884\u89C8","source.emptyPage":"\u672C\u9875\u6CA1\u6709\u53EF\u5BFC\u5165\u7684\u65B0\u7248\u6587\u6863\u3002\u53EF\u7EE7\u7EED\u7FFB\u9875\uFF0C\u6216\u7C98\u8D34\u6587\u6863\u94FE\u63A5\u3002","common.loadMore":"\u52A0\u8F7D\u66F4\u591A","source.openOriginal":"\u67E5\u770B\u539F\u6587","source.emptyText":"\uFF08\u6587\u6863\u6CA1\u6709\u53EF\u5BFC\u5165\u7684\u6587\u672C\uFF09","source.confirmation":"\u6211\u5DF2\u6838\u5BF9\u9884\u89C8\uFF0C\u540C\u610F\u5C06\u6B64\u6587\u672C\u526F\u672C\u5171\u4EAB\u7ED9\u9879\u76EE\u6210\u5458\u3002\u526F\u672C\u72EC\u7ACB\u4FDD\u5B58\uFF0C\u8FDC\u7AEF\u64A4\u6743\u4E0D\u4F1A\u81EA\u52A8\u5220\u9664\u526F\u672C\u3002","source.import":"\u5BFC\u5165\u6587\u672C\u526F\u672C","library.subpage":"\u5B50\u9875\u9762 \xB7 {{title}}","library.moreActions":"\u66F4\u591A\u64CD\u4F5C {{title}}","source.destination":"{{space}} / {{folder}}","source.originRevision":"{{provider}} \xB7 \u539F\u6587\u7248\u672C {{revision}}","source.importedAt":"\u5BFC\u5165\u65F6\u95F4\uFF1A{{date}}","source.id":"\u539F\u6587 ID\uFF1A{{id}}","source.previewMeta":"\u539F\u6587\u7248\u672C {{revision}} \xB7 \u76EE\u6807\uFF1A{{destination}}","source.connectionLabel":"{{provider}} \xB7 {{scope}}\u5171\u4EAB","source.disconnected":"{{label}} \xB7 \u672A\u8FDE\u63A5","materials.importWith":"\u4F7F\u7528 {{editor}} \u5BFC\u5165","materials.chooseArtifact":"\u9009\u62E9 {{title}}","materials.artifactVersion":"{{title}} \u7684\u7248\u672C","materials.selected":"\u5DF2\u9009\u62E9 {{count}} \u9879","materials.selected_one":"\u5DF2\u9009\u62E9 {{count}} \u9879","materials.selected_other":"\u5DF2\u9009\u62E9 {{count}} \u9879","common.pageNumber":"\u7B2C {{page}} \u9875","history.restoreTitle":"\u6062\u590D\u201C{{title}}\u201D\uFF1F","editor.people":"{{count}} \u4EBA\u5728\u7EBF\uFF1A{{names}}","common.workbench":"Workbench","materials.fileSize":"{{size}} KB","common.version":"v{{version}}","history.versionMeta":"{{date}} \xB7 v{{version}}","create.document":"\u521B\u5EFA\u6587\u6863"};var Fe=xf({en:uv,"zh-Hans":dv}),S=Fe.t,Yt=()=>gu(Fe),po=(e="")=>lv(Fe,e);function cv(e){var t,a,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(a=cv(e[t]))&&(r&&(r+=" "),r+=a)}else for(a in e)e[a]&&(r&&(r+=" "),r+=a);return r}function vu(){for(var e,t,a=0,r="",o=arguments.length;a<o;a++)(e=arguments[a])&&(t=cv(e))&&(r&&(r+=" "),r+=t);return r}var u0=(e,t)=>{let a=new Array(e.length+t.length);for(let r=0;r<e.length;r++)a[r]=e[r];for(let r=0;r<t.length;r++)a[e.length+r]=t[r];return a},d0=(e,t)=>({classGroupId:e,validator:t}),vv=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a});var fv=[],c0="arbitrary..",f0=e=>{let t=m0(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return p0(s);let i=s.split("-"),l=i[0]===""&&i.length>1?1:0;return xv(i,l,t)},getConflictingClassGroupIds:(s,i)=>{if(i){let l=r[s],u=a[s];return l?u?u0(u,l):l:u||fv}return a[s]||fv}}},xv=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let o=e[t],n=a.nextPart.get(o);if(n){let u=xv(e,t+1,n);if(u)return u}let s=a.validators;if(s===null)return;let i=t===0?e.join("-"):e.slice(t).join("-"),l=s.length;for(let u=0;u<l;u++){let d=s[u];if(d.validator(i))return d.classGroupId}},p0=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),r=t.slice(0,a);return r?c0+r:void 0})(),m0=e=>{let{theme:t,classGroups:a}=e;return h0(a,t)},h0=(e,t)=>{let a=vv();for(let r in e){let o=e[r];Cf(o,a,r,t)}return a},Cf=(e,t,a,r)=>{let o=e.length;for(let n=0;n<o;n++){let s=e[n];g0(s,t,a,r)}},g0=(e,t,a,r)=>{if(typeof e=="string"){v0(e,t,a);return}if(typeof e=="function"){x0(e,t,a,r);return}y0(e,t,a,r)},v0=(e,t,a)=>{let r=e===""?t:yv(t,e);r.classGroupId=a},x0=(e,t,a,r)=>{if(w0(e)){Cf(e(r),t,a,r);return}t.validators===null&&(t.validators=[]),t.validators.push(d0(a,e))},y0=(e,t,a,r)=>{let o=Object.entries(e),n=o.length;for(let s=0;s<n;s++){let[i,l]=o[s];Cf(l,yv(t,i),a,r)}},yv=(e,t)=>{let a=e,r=t.split("-"),o=r.length;for(let n=0;n<o;n++){let s=r[n],i=a.nextPart.get(s);i||(i=vv(),a.nextPart.set(s,i)),a=i}return a},w0=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,C0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),r=Object.create(null),o=(n,s)=>{a[n]=s,t++,t>e&&(t=0,r=a,a=Object.create(null))};return{get(n){let s=a[n];if(s!==void 0)return s;if((s=r[n])!==void 0)return o(n,s),s},set(n,s){n in a?a[n]=s:o(n,s)}}};var S0=[],pv=(e,t,a,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:r,isExternal:o}),L0=e=>{let{prefix:t,experimentalParseClassName:a}=e,r=o=>{let n=[],s=0,i=0,l=0,u,d=o.length;for(let x=0;x<d;x++){let w=o[x];if(s===0&&i===0){if(w===":"){n.push(o.slice(l,x)),l=x+1;continue}if(w==="/"){u=x;continue}}w==="["?s++:w==="]"?s--:w==="("?i++:w===")"&&i--}let c=n.length===0?o:o.slice(l),f=c,h=!1;c.endsWith("!")?(f=c.slice(0,-1),h=!0):c.startsWith("!")&&(f=c.slice(1),h=!0);let v=u&&u>l?u-l:void 0;return pv(n,h,f,v)};if(t){let o=t+":",n=r;r=s=>s.startsWith(o)?n(s.slice(o.length)):pv(S0,!1,s,void 0,!0)}if(a){let o=r;r=n=>a({className:n,parseClassName:o})}return r},I0=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,r)=>{t.set(a,1e6+r)}),a=>{let r=[],o=[];for(let n=0;n<a.length;n++){let s=a[n],i=s[0]==="[",l=t.has(s);i||l?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(s)):o.push(s)}return o.length>0&&(o.sort(),r.push(...o)),r}},b0=e=>({cache:C0(e.cacheSize),parseClassName:L0(e),sortModifiers:I0(e),postfixLookupClassGroupIds:k0(e),...f0(e)}),k0=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let r=0;r<a.length;r++)t[a[r]]=!0;return t},R0=/\s+/,P0=(e,t)=>{let{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:n,postfixLookupClassGroupIds:s}=t,i=[],l=e.trim().split(R0),u="";for(let d=l.length-1;d>=0;d-=1){let c=l[d],{isExternal:f,modifiers:h,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:w}=a(c);if(f){u=c+(u.length>0?" "+u:u);continue}let p=!!w,m;if(p){let k=x.substring(0,w);m=r(k);let b=m&&s[m]?r(x):void 0;b&&b!==m&&(m=b,p=!1)}else m=r(x);if(!m){if(!p){u=c+(u.length>0?" "+u:u);continue}if(m=r(x),!m){u=c+(u.length>0?" "+u:u);continue}p=!1}let g=h.length===0?"":h.length===1?h[0]:n(h).join(":"),y=v?g+"!":g,C=y+m;if(i.indexOf(C)>-1)continue;i.push(C);let I=o(m,p);for(let k=0;k<I.length;++k){let b=I[k];i.push(y+b)}u=c+(u.length>0?" "+u:u)}return u},T0=(...e)=>{let t=0,a,r,o="";for(;t<e.length;)(a=e[t++])&&(r=wv(a))&&(o&&(o+=" "),o+=r);return o},wv=e=>{if(typeof e=="string")return e;let t,a="";for(let r=0;r<e.length;r++)e[r]&&(t=wv(e[r]))&&(a&&(a+=" "),a+=t);return a},M0=(e,...t)=>{let a,r,o,n,s=l=>{let u=t.reduce((d,c)=>c(d),e());return a=b0(u),r=a.cache.get,o=a.cache.set,n=i,i(l)},i=l=>{let u=r(l);if(u)return u;let d=P0(l,a);return o(l,d),d};return n=s,(...l)=>n(T0(...l))},D0=[],it=e=>{let t=a=>a[e]||D0;return t.isThemeGetter=!0,t},Cv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Sv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_0=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,A0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,E0=/\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$/,O0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,N0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,F0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,mo=e=>_0.test(e),Le=e=>!!e&&!Number.isNaN(Number(e)),ar=e=>!!e&&Number.isInteger(Number(e)),wf=e=>e.endsWith("%")&&Le(e.slice(0,-1)),Pr=e=>A0.test(e),Lv=()=>!0,z0=e=>E0.test(e)&&!O0.test(e),Sf=()=>!1,B0=e=>N0.test(e),U0=e=>F0.test(e),H0=e=>!X(e)&&!Z(e),j0=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),V0=e=>ho(e,kv,Sf),X=e=>Cv.test(e),en=e=>ho(e,Rv,z0),mv=e=>ho(e,Q0,Le),q0=e=>ho(e,Tv,Lv),W0=e=>ho(e,Pv,Sf),hv=e=>ho(e,Iv,Sf),G0=e=>ho(e,bv,U0),xu=e=>ho(e,Mv,B0),Z=e=>Sv.test(e),Fi=e=>tn(e,Rv),$0=e=>tn(e,Pv),gv=e=>tn(e,Iv),K0=e=>tn(e,kv),X0=e=>tn(e,bv),yu=e=>tn(e,Mv,!0),Z0=e=>tn(e,Tv,!0),ho=(e,t,a)=>{let r=Cv.exec(e);return r?r[1]?t(r[1]):a(r[2]):!1},tn=(e,t,a=!1)=>{let r=Sv.exec(e);return r?r[1]?t(r[1]):a:!1},Iv=e=>e==="position"||e==="percentage",bv=e=>e==="image"||e==="url",kv=e=>e==="length"||e==="size"||e==="bg-size",Rv=e=>e==="length",Q0=e=>e==="number",Pv=e=>e==="family-name",Tv=e=>e==="number"||e==="weight",Mv=e=>e==="shadow";var Y0=()=>{let e=it("color"),t=it("font"),a=it("text"),r=it("font-weight"),o=it("tracking"),n=it("leading"),s=it("breakpoint"),i=it("container"),l=it("spacing"),u=it("radius"),d=it("shadow"),c=it("inset-shadow"),f=it("text-shadow"),h=it("drop-shadow"),v=it("blur"),x=it("perspective"),w=it("aspect"),p=it("ease"),m=it("animate"),g=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...y(),Z,X],I=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],b=()=>[Z,X,l],T=()=>[mo,"full","auto",...b()],A=()=>[ar,"none","subgrid",Z,X],D=()=>["auto",{span:["full",ar,Z,X]},ar,Z,X],E=()=>[ar,"auto",Z,X],z=()=>["auto","min","max","fr",Z,X],O=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],_=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...b()],j=()=>[mo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],W=()=>[mo,"screen","full","dvw","lvw","svw","min","max","fit",...b()],ee=()=>[mo,"screen","full","lh","dvh","lvh","svh","min","max","fit",...b()],P=()=>[e,Z,X],se=()=>[...y(),gv,hv,{position:[Z,X]}],ie=()=>["no-repeat",{repeat:["","x","y","space","round"]}],H=()=>["auto","cover","contain",K0,V0,{size:[Z,X]}],ve=()=>[wf,Fi,en],Se=()=>["","none","full",u,Z,X],fe=()=>["",Le,Fi,en],Ae=()=>["solid","dashed","dotted","double"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>[Le,wf,gv,hv],Je=()=>["","none",v,Z,X],De=()=>["none",Le,Z,X],Oe=()=>["none",Le,Z,X],M=()=>[Le,Z,X],ye=()=>[mo,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pr],breakpoint:[Pr],color:[Lv],container:[Pr],"drop-shadow":[Pr],ease:["in","out","in-out"],font:[H0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Pr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Pr],shadow:[Pr],spacing:["px",Le],text:[Pr],"text-shadow":[Pr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",mo,X,Z,w]}],container:["container"],"container-type":[{"@container":["","normal","size",Z,X]}],"container-named":[j0],columns:[{columns:[Le,X,Z,i]}],"break-after":[{"break-after":g()}],"break-before":[{"break-before":g()}],"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:C()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[ar,"auto",Z,X]}],basis:[{basis:[mo,"full","auto",i,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,mo,"auto","initial","none",X]}],grow:[{grow:["",Le,Z,X]}],shrink:[{shrink:["",Le,Z,X]}],order:[{order:[ar,"first","last","none",Z,X]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":z()}],"auto-rows":[{"auto-rows":z()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:[...O(),"normal"]}],"justify-items":[{"justify-items":[..._(),"normal"]}],"justify-self":[{"justify-self":["auto",..._()]}],"align-content":[{content:["normal",...O()]}],"align-items":[{items:[..._(),{baseline:["","last"]}]}],"align-self":[{self:["auto",..._(),{baseline:["","last"]}]}],"place-content":[{"place-content":O()}],"place-items":[{"place-items":[..._(),"baseline"]}],"place-self":[{"place-self":["auto",..._()]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pbs:[{pbs:b()}],pbe:[{pbe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],"inline-size":[{inline:["auto",...W()]}],"min-inline-size":[{"min-inline":["auto",...W()]}],"max-inline-size":[{"max-inline":["none",...W()]}],"block-size":[{block:["auto",...ee()]}],"min-block-size":[{"min-block":["auto",...ee()]}],"max-block-size":[{"max-block":["none",...ee()]}],w:[{w:[i,"screen",...j()]}],"min-w":[{"min-w":[i,"screen","none",...j()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",a,Fi,en]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Z0,q0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",wf,X]}],"font-family":[{font:[$0,W0,t]}],"font-features":[{"font-features":[X]}],"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:[o,Z,X]}],"line-clamp":[{"line-clamp":[Le,"none",Z,mv]}],leading:[{leading:[n,...b()]}],"list-image":[{"list-image":["none",Z,X]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Z,X]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",Z,en]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[Le,"auto",Z,X]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"tab-size":[{tab:[ar,Z,X]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z,X]}],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",Z,X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:se()}],"bg-repeat":[{bg:ie()}],"bg-size":[{bg:H()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ar,Z,X],radial:["",Z,X],conic:[ar,Z,X]},X0,G0]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:ve()}],"gradient-via-pos":[{via:ve()}],"gradient-to-pos":[{to:ve()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:Se()}],"rounded-s":[{"rounded-s":Se()}],"rounded-e":[{"rounded-e":Se()}],"rounded-t":[{"rounded-t":Se()}],"rounded-r":[{"rounded-r":Se()}],"rounded-b":[{"rounded-b":Se()}],"rounded-l":[{"rounded-l":Se()}],"rounded-ss":[{"rounded-ss":Se()}],"rounded-se":[{"rounded-se":Se()}],"rounded-ee":[{"rounded-ee":Se()}],"rounded-es":[{"rounded-es":Se()}],"rounded-tl":[{"rounded-tl":Se()}],"rounded-tr":[{"rounded-tr":Se()}],"rounded-br":[{"rounded-br":Se()}],"rounded-bl":[{"rounded-bl":Se()}],"border-w":[{border:fe()}],"border-w-x":[{"border-x":fe()}],"border-w-y":[{"border-y":fe()}],"border-w-s":[{"border-s":fe()}],"border-w-e":[{"border-e":fe()}],"border-w-bs":[{"border-bs":fe()}],"border-w-be":[{"border-be":fe()}],"border-w-t":[{"border-t":fe()}],"border-w-r":[{"border-r":fe()}],"border-w-b":[{"border-b":fe()}],"border-w-l":[{"border-l":fe()}],"divide-x":[{"divide-x":fe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":fe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ae(),"hidden","none"]}],"divide-style":[{divide:[...Ae(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...Ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,Z,X]}],"outline-w":[{outline:["",Le,Fi,en]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",d,yu,xu]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",c,yu,xu]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[Le,en]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":fe()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",f,yu,xu]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[Le,Z,X]}],"mix-blend":[{"mix-blend":[...K(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":K()}],"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":oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":oe()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":oe()}],"mask-image-t-to-pos":[{"mask-t-to":oe()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":oe()}],"mask-image-r-to-pos":[{"mask-r-to":oe()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":oe()}],"mask-image-b-to-pos":[{"mask-b-to":oe()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":oe()}],"mask-image-l-to-pos":[{"mask-l-to":oe()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":oe()}],"mask-image-x-to-pos":[{"mask-x-to":oe()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":oe()}],"mask-image-y-to-pos":[{"mask-y-to":oe()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[Z,X]}],"mask-image-radial-from-pos":[{"mask-radial-from":oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":oe()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"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":y()}],"mask-image-conic-pos":[{"mask-conic":[Le]}],"mask-image-conic-from-pos":[{"mask-conic-from":oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":oe()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:se()}],"mask-repeat":[{mask:ie()}],"mask-size":[{mask:H()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Z,X]}],filter:[{filter:["","none",Z,X]}],blur:[{blur:Je()}],brightness:[{brightness:[Le,Z,X]}],contrast:[{contrast:[Le,Z,X]}],"drop-shadow":[{"drop-shadow":["","none",h,yu,xu]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",Le,Z,X]}],"hue-rotate":[{"hue-rotate":[Le,Z,X]}],invert:[{invert:["",Le,Z,X]}],saturate:[{saturate:[Le,Z,X]}],sepia:[{sepia:["",Le,Z,X]}],"backdrop-filter":[{"backdrop-filter":["","none",Z,X]}],"backdrop-blur":[{"backdrop-blur":Je()}],"backdrop-brightness":[{"backdrop-brightness":[Le,Z,X]}],"backdrop-contrast":[{"backdrop-contrast":[Le,Z,X]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,Z,X]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,Z,X]}],"backdrop-invert":[{"backdrop-invert":["",Le,Z,X]}],"backdrop-opacity":[{"backdrop-opacity":[Le,Z,X]}],"backdrop-saturate":[{"backdrop-saturate":[Le,Z,X]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,Z,X]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Z,X]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",Z,X]}],ease:[{ease:["linear","initial",p,Z,X]}],delay:[{delay:[Le,Z,X]}],animate:[{animate:["none",m,Z,X]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,Z,X]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:De()}],"rotate-x":[{"rotate-x":De()}],"rotate-y":[{"rotate-y":De()}],"rotate-z":[{"rotate-z":De()}],scale:[{scale:Oe()}],"scale-x":[{"scale-x":Oe()}],"scale-y":[{"scale-y":Oe()}],"scale-z":[{"scale-z":Oe()}],"scale-3d":["scale-3d"],skew:[{skew:M()}],"skew-x":[{"skew-x":M()}],"skew-y":[{"skew-y":M()}],transform:[{transform:[Z,X,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ye()}],"translate-x":[{"translate-x":ye()}],"translate-y":[{"translate-y":ye()}],"translate-z":[{"translate-z":ye()}],"translate-none":["translate-none"],zoom:[{zoom:[ar,Z,X]}],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"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",Z,X]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":P()}],"scrollbar-track-color":[{"scrollbar-track":P()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mbs":[{"scroll-mbs":b()}],"scroll-mbe":[{"scroll-mbe":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pbs":[{"scroll-pbs":b()}],"scroll-pbe":[{"scroll-pbe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"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",Z,X]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[Le,Fi,en,mv]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Dv=M0(Y0);function Lf(e={}){let t=e.styleId??"xpert-shadcn-ui-theme-vars";if(typeof document>"u")return;e.density==="compact"?document.documentElement.dataset.xuiDensity="compact":e.density==="default"&&delete document.documentElement.dataset.xuiDensity;let a=document.getElementById(t);a||(a=document.createElement("style"),a.id=t,document.head.appendChild(a)),a.textContent=`
8
+ `+n.stack}return{value:e,source:t,stack:o,digest:null}}function gp(e,t,a){return{value:e,source:null,stack:a??null,digest:t??null}}function Yp(e,t){try{console.error(t.value)}catch(a){setTimeout(function(){throw a})}}var A1=typeof WeakMap=="function"?WeakMap:Map;function Qw(e,t,a){a=lo(-1,a),a.tag=3,a.payload={element:null};var r=t.value;return a.callback=function(){$d||($d=!0,lm=r),Yp(e,t)},a}function Yw(e,t,a){a=lo(-1,a),a.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;a.payload=function(){return r(o)},a.callback=function(){Yp(e,t)}}var n=e.stateNode;return n!==null&&typeof n.componentDidCatch=="function"&&(a.callback=function(){Yp(e,t),typeof r!="function"&&(Xo===null?Xo=new Set([this]):Xo.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),a}function uy(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new A1;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(a)||(o.add(a),e=$1.bind(null,e,t,a),t.then(e,e))}function dy(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 cy(e,t,a,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(t=lo(-1,1),t.tag=2,Ko(a,t,1))),a.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var E1=mo.ReactCurrentOwner,xa=!1;function na(e,t,a,r){t.child=e===null?Rw(t,null,a,r):ui(t,e.child,a,r)}function fy(e,t,a,r,o){a=a.render;var n=t.ref;return oi(t,o),r=Um(e,t,a,r,n,o),a=Hm(),e!==null&&!xa?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,po(e,t,o)):(et&&a&&Pm(t),t.flags|=1,na(e,t,r,o),t.child)}function py(e,t,a,r,o){if(e===null){var n=a.type;return typeof n=="function"&&!Qm(n)&&n.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(t.tag=15,t.type=n,Jw(e,t,n,r,o)):(e=kd(a.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(n=e.child,(e.lanes&o)===0){var s=n.memoizedProps;if(a=a.compare,a=a!==null?a:Ul,a(s,r)&&e.ref===t.ref)return po(e,t,o)}return t.flags|=1,e=Qo(n,r),e.ref=t.ref,e.return=t,t.child=e}function Jw(e,t,a,r,o){if(e!==null){var n=e.memoizedProps;if(Ul(n,r)&&e.ref===t.ref)if(xa=!1,t.pendingProps=r=n,(e.lanes&o)!==0)(e.flags&131072)!==0&&(xa=!0);else return t.lanes=e.lanes,po(e,t,o)}return Jp(e,t,a,r,o)}function eC(e,t,a){var r=t.pendingProps,o=r.children,n=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Xe(Js,_a),_a|=a;else{if((a&1073741824)===0)return e=n!==null?n.baseLanes|a:a,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Xe(Js,_a),_a|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=n!==null?n.baseLanes:a,Xe(Js,_a),_a|=r}else n!==null?(r=n.baseLanes|a,t.memoizedState=null):r=a,Xe(Js,_a),_a|=r;return na(e,t,o,a),t.child}function tC(e,t){var a=t.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(t.flags|=512,t.flags|=2097152)}function Jp(e,t,a,r,o){var n=wa(a)?_n:Zt.current;return n=ii(t,n),oi(t,o),a=Um(e,t,a,r,n,o),r=Hm(),e!==null&&!xa?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,po(e,t,o)):(et&&r&&Pm(t),t.flags|=1,na(e,t,a,o),t.child)}function my(e,t,a,r,o){if(wa(a)){var n=!0;Fd(t)}else n=!1;if(oi(t,o),t.stateNode===null)Ld(e,t),Zw(t,a,r),Qp(t,a,r,o),r=!0;else if(e===null){var s=t.stateNode,i=t.memoizedProps;s.props=i;var l=s.context,u=a.contextType;typeof u=="object"&&u!==null?u=Wa(u):(u=wa(a)?_n:Zt.current,u=ii(t,u));var c=a.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==r||l!==u)&&ly(t,s,r,u),Bo=!1;var f=t.memoizedState;s.state=f,jd(t,r,s,o),l=t.memoizedState,i!==r||f!==l||ya.current||Bo?(typeof c=="function"&&(Zp(t,a,c,r),l=t.memoizedState),(i=Bo||iy(t,a,i,r,f,l,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=i):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Dw(e,t),i=t.memoizedProps,u=t.type===t.elementType?i:or(t.type,i),s.props=u,d=t.pendingProps,f=s.context,l=a.contextType,typeof l=="object"&&l!==null?l=Wa(l):(l=wa(a)?_n:Zt.current,l=ii(t,l));var h=a.getDerivedStateFromProps;(c=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==d||f!==l)&&ly(t,s,r,l),Bo=!1,f=t.memoizedState,s.state=f,jd(t,r,s,o);var v=t.memoizedState;i!==d||f!==v||ya.current||Bo?(typeof h=="function"&&(Zp(t,a,h,r),v=t.memoizedState),(u=Bo||iy(t,a,u,r,f,v,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,v,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,v,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),s.props=r,s.state=v,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return em(e,t,a,r,n,o)}function em(e,t,a,r,o,n){tC(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Jx(t,a,!1),po(e,t,n);r=t.stateNode,E1.current=t;var i=s&&typeof a.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=ui(t,e.child,null,n),t.child=ui(t,null,i,n)):na(e,t,i,n),t.memoizedState=r.state,o&&Jx(t,a,!0),t.child}function aC(e){var t=e.stateNode;t.pendingContext?Yx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Yx(e,t.context,!1),Nm(e,t.containerInfo)}function hy(e,t,a,r,o){return li(),Tm(o),t.flags|=256,na(e,t,a,r),t.child}var tm={dehydrated:null,treeContext:null,retryLane:0};function am(e){return{baseLanes:e,cachePool:null,transitions:null}}function rC(e,t,a){var r=t.pendingProps,o=tt.current,n=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(o&2)!==0),i?(n=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Xe(tt,o&1),e===null)return Kp(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=r.children,e=r.fallback,n?(r=t.mode,n=t.child,s={mode:"hidden",children:s},(r&1)===0&&n!==null?(n.childLanes=0,n.pendingProps=s):n=ic(s,r,0,null),e=Mn(e,r,a,null),n.return=t,e.return=t,n.sibling=e,t.child=n,t.child.memoizedState=am(a),t.memoizedState=tm,e):qm(t,s));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return O1(e,t,s,r,i,o,a);if(n){n=r.fallback,s=t.mode,o=e.child,i=o.sibling;var l={mode:"hidden",children:r.children};return(s&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Qo(o,l),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?n=Qo(i,n):(n=Mn(n,s,a,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,r=n,n=t.child,s=e.child.memoizedState,s=s===null?am(a):{baseLanes:s.baseLanes|a,cachePool:null,transitions:s.transitions},n.memoizedState=s,n.childLanes=e.childLanes&~a,t.memoizedState=tm,r}return n=e.child,e=n.sibling,r=Qo(n,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=a),r.return=t,r.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=r,t.memoizedState=null,r}function qm(e,t){return t=ic({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function md(e,t,a,r){return r!==null&&Tm(r),ui(t,e.child,null,a),e=qm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function O1(e,t,a,r,o,n,s){if(a)return t.flags&256?(t.flags&=-257,r=gp(Error(U(422))),md(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(n=r.fallback,o=t.mode,r=ic({mode:"visible",children:r.children},o,0,null),n=Mn(n,o,s,null),n.flags|=2,r.return=t,n.return=t,r.sibling=n,t.child=r,(t.mode&1)!==0&&ui(t,e.child,null,s),t.child.memoizedState=am(s),t.memoizedState=tm,n);if((t.mode&1)===0)return md(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var i=r.dgst;return r=i,n=Error(U(419)),r=gp(n,r,void 0),md(e,t,s,r)}if(i=(s&e.childLanes)!==0,xa||i){if(r=Mt,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(r.suspendedLanes|s))!==0?0:o,o!==0&&o!==n.retryLane&&(n.retryLane=o,fo(e,o),lr(r,e,o,-1))}return Zm(),r=gp(Error(U(421))),md(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=K1.bind(null,e),o._reactRetry=t,null):(e=n.treeContext,Aa=$o(o.nextSibling),Ea=t,et=!0,sr=null,e!==null&&(Ha[ja++]=so,Ha[ja++]=io,Ha[ja++]=An,so=e.id,io=e.overflow,An=t),t=qm(t,r.children),t.flags|=4096,t)}function gy(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xp(e.return,t,a)}function vp(e,t,a,r,o){var n=e.memoizedState;n===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:o}:(n.isBackwards=t,n.rendering=null,n.renderingStartTime=0,n.last=r,n.tail=a,n.tailMode=o)}function oC(e,t,a){var r=t.pendingProps,o=r.revealOrder,n=r.tail;if(na(e,t,r.children,a),r=tt.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&gy(e,a,t);else if(e.tag===19)gy(e,a,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}r&=1}if(Xe(tt,r),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Vd(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),vp(t,!1,o,a,n);break;case"backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Vd(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}vp(t,!0,a,null,n);break;case"together":vp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ld(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function po(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),On|=t.lanes,(a&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,a=Qo(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Qo(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function N1(e,t,a){switch(t.tag){case 3:aC(t),li();break;case 5:Tw(t);break;case 1:wa(t.type)&&Fd(t);break;case 4:Nm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Xe(Ud,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Xe(tt,tt.current&1),t.flags|=128,null):(a&t.child.childLanes)!==0?rC(e,t,a):(Xe(tt,tt.current&1),e=po(e,t,a),e!==null?e.sibling:null);Xe(tt,tt.current&1);break;case 19:if(r=(a&t.childLanes)!==0,(e.flags&128)!==0){if(r)return oC(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Xe(tt,tt.current),r)break;return null;case 22:case 23:return t.lanes=0,eC(e,t,a)}return po(e,t,a)}var nC,rm,sC,iC;nC=function(e,t){for(var a=t.child;a!==null;){if(a.tag===5||a.tag===6)e.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return;a=a.return}a.sibling.return=a.return,a=a.sibling}};rm=function(){};sC=function(e,t,a,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Dn(Ar.current);var n=null;switch(a){case"input":o=bp(e,o),r=bp(e,r),n=[];break;case"select":o=rt({},o,{value:void 0}),r=rt({},r,{value:void 0}),n=[];break;case"textarea":o=Pp(e,o),r=Pp(e,r),n=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Od)}Tp(a,r);var s;a=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var i=o[u];for(s in i)i.hasOwnProperty(s)&&(a||(a={}),a[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Al.hasOwnProperty(u)?n||(n=[]):(n=n||[]).push(u,null));for(u in r){var l=r[u];if(i=o?.[u],r.hasOwnProperty(u)&&l!==i&&(l!=null||i!=null))if(u==="style")if(i){for(s in i)!i.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(a||(a={}),a[s]="");for(s in l)l.hasOwnProperty(s)&&i[s]!==l[s]&&(a||(a={}),a[s]=l[s])}else a||(n||(n=[]),n.push(u,a)),a=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,i=i?i.__html:void 0,l!=null&&i!==l&&(n=n||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(n=n||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Al.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Qe("scroll",e),n||i===l||(n=[])):(n=n||[]).push(u,l))}a&&(n=n||[]).push("style",a);var u=n;(t.updateQueue=u)&&(t.flags|=4)}};iC=function(e,t,a,r){a!==r&&(t.flags|=4)};function vl(e,t){if(!et)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Kt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function F1(e,t,a){var r=t.pendingProps;switch(Dm(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kt(t),null;case 1:return wa(t.type)&&Nd(),Kt(t),null;case 3:return r=t.stateNode,di(),Ye(ya),Ye(Zt),zm(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(fd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,sr!==null&&(cm(sr),sr=null))),rm(e,t),Kt(t),null;case 5:Fm(t);var o=Dn(Wl.current);if(a=t.type,e!==null&&t.stateNode!=null)sC(e,t,a,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(U(166));return Kt(t),null}if(e=Dn(Ar.current),fd(t)){r=t.stateNode,a=t.type;var n=t.memoizedProps;switch(r[Mr]=t,r[Vl]=n,e=(t.mode&1)!==0,a){case"dialog":Qe("cancel",r),Qe("close",r);break;case"iframe":case"object":case"embed":Qe("load",r);break;case"video":case"audio":for(o=0;o<Ll.length;o++)Qe(Ll[o],r);break;case"source":Qe("error",r);break;case"img":case"image":case"link":Qe("error",r),Qe("load",r);break;case"details":Qe("toggle",r);break;case"input":Ix(r,n),Qe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!n.multiple},Qe("invalid",r);break;case"textarea":kx(r,n),Qe("invalid",r)}Tp(a,n),o=null;for(var s in n)if(n.hasOwnProperty(s)){var i=n[s];s==="children"?typeof i=="string"?r.textContent!==i&&(n.suppressHydrationWarning!==!0&&cd(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(n.suppressHydrationWarning!==!0&&cd(r.textContent,i,e),o=["children",""+i]):Al.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&Qe("scroll",r)}switch(a){case"input":Ju(r),bx(r,n,!0);break;case"textarea":Ju(r),Rx(r);break;case"select":case"option":break;default:typeof n.onClick=="function"&&(r.onclick=Od)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Oy(a)),e==="http://www.w3.org/1999/xhtml"?a==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(a,{is:r.is}):(e=s.createElement(a),a==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,a),e[Mr]=t,e[Vl]=r,nC(e,t,!1,!1),t.stateNode=e;e:{switch(s=Mp(a,r),a){case"dialog":Qe("cancel",e),Qe("close",e),o=r;break;case"iframe":case"object":case"embed":Qe("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ll.length;o++)Qe(Ll[o],e);o=r;break;case"source":Qe("error",e),o=r;break;case"img":case"image":case"link":Qe("error",e),Qe("load",e),o=r;break;case"details":Qe("toggle",e),o=r;break;case"input":Ix(e,r),o=bp(e,r),Qe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=rt({},r,{value:void 0}),Qe("invalid",e);break;case"textarea":kx(e,r),o=Pp(e,r),Qe("invalid",e);break;default:o=r}Tp(a,o),i=o;for(n in i)if(i.hasOwnProperty(n)){var l=i[n];n==="style"?zy(e,l):n==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Ny(e,l)):n==="children"?typeof l=="string"?(a!=="textarea"||l!=="")&&El(e,l):typeof l=="number"&&El(e,""+l):n!=="suppressContentEditableWarning"&&n!=="suppressHydrationWarning"&&n!=="autoFocus"&&(Al.hasOwnProperty(n)?l!=null&&n==="onScroll"&&Qe("scroll",e):l!=null&&mm(e,n,l,s))}switch(a){case"input":Ju(e),bx(e,r,!1);break;case"textarea":Ju(e),Rx(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Yo(r.value));break;case"select":e.multiple=!!r.multiple,n=r.value,n!=null?ei(e,!!r.multiple,n,!1):r.defaultValue!=null&&ei(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Od)}switch(a){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Kt(t),null;case 6:if(e&&t.stateNode!=null)iC(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(U(166));if(a=Dn(Wl.current),Dn(Ar.current),fd(t)){if(r=t.stateNode,a=t.memoizedProps,r[Mr]=t,(n=r.nodeValue!==a)&&(e=Ea,e!==null))switch(e.tag){case 3:cd(r.nodeValue,a,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&cd(r.nodeValue,a,(e.mode&1)!==0)}n&&(t.flags|=4)}else r=(a.nodeType===9?a:a.ownerDocument).createTextNode(r),r[Mr]=t,t.stateNode=r}return Kt(t),null;case 13:if(Ye(tt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(et&&Aa!==null&&(t.mode&1)!==0&&(t.flags&128)===0)bw(),li(),t.flags|=98560,n=!1;else if(n=fd(t),r!==null&&r.dehydrated!==null){if(e===null){if(!n)throw Error(U(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(U(317));n[Mr]=t}else li(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Kt(t),n=!1}else sr!==null&&(cm(sr),sr=null),n=!0;if(!n)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=a,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(tt.current&1)!==0?It===0&&(It=3):Zm())),t.updateQueue!==null&&(t.flags|=4),Kt(t),null);case 4:return di(),rm(e,t),e===null&&Hl(t.stateNode.containerInfo),Kt(t),null;case 10:return Am(t.type._context),Kt(t),null;case 17:return wa(t.type)&&Nd(),Kt(t),null;case 19:if(Ye(tt),n=t.memoizedState,n===null)return Kt(t),null;if(r=(t.flags&128)!==0,s=n.rendering,s===null)if(r)vl(n,!1);else{if(It!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Vd(e),s!==null){for(t.flags|=128,vl(n,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=a,a=t.child;a!==null;)n=a,e=r,n.flags&=14680066,s=n.alternate,s===null?(n.childLanes=0,n.lanes=e,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,e=s.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),a=a.sibling;return Xe(tt,tt.current&1|2),t.child}e=e.sibling}n.tail!==null&&lt()>fi&&(t.flags|=128,r=!0,vl(n,!1),t.lanes=4194304)}else{if(!r)if(e=Vd(s),e!==null){if(t.flags|=128,r=!0,a=e.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),vl(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!et)return Kt(t),null}else 2*lt()-n.renderingStartTime>fi&&a!==1073741824&&(t.flags|=128,r=!0,vl(n,!1),t.lanes=4194304);n.isBackwards?(s.sibling=t.child,t.child=s):(a=n.last,a!==null?a.sibling=s:t.child=s,n.last=s)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=lt(),t.sibling=null,a=tt.current,Xe(tt,r?a&1|2:a&1),t):(Kt(t),null);case 22:case 23:return Xm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(_a&1073741824)!==0&&(Kt(t),t.subtreeFlags&6&&(t.flags|=8192)):Kt(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function z1(e,t){switch(Dm(t),t.tag){case 1:return wa(t.type)&&Nd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return di(),Ye(ya),Ye(Zt),zm(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Fm(t),null;case 13:if(Ye(tt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ye(tt),null;case 4:return di(),null;case 10:return Am(t.type._context),null;case 22:case 23:return Xm(),null;case 24:return null;default:return null}}var hd=!1,Xt=!1,B1=typeof WeakSet=="function"?WeakSet:Set,Y=null;function Ys(e,t){var a=e.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(r){st(e,t,r)}else a.current=null}function om(e,t,a){try{a()}catch(r){st(e,t,r)}}var vy=!1;function U1(e,t){if(Hp=_d,e=fw(),Rm(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var o=r.anchorOffset,n=r.focusNode;r=r.focusOffset;try{a.nodeType,n.nodeType}catch{a=null;break e}var s=0,i=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==a||o!==0&&d.nodeType!==3||(i=s+o),d!==n||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===a&&++u===o&&(i=s),f===n&&++c===r&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}a=i===-1||l===-1?null:{start:i,end:l}}else a=null}a=a||{start:0,end:0}}else a=null;for(jp={focusedElem:e,selectionRange:a},_d=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var v=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var x=v.memoizedProps,w=v.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?x:or(t.type,x),w);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(y){st(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return v=vy,vy=!1,v}function Tl(e,t,a){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var n=o.destroy;o.destroy=void 0,n!==void 0&&om(t,a,n)}o=o.next}while(o!==r)}}function nc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var a=t=t.next;do{if((a.tag&e)===e){var r=a.create;a.destroy=r()}a=a.next}while(a!==t)}}function nm(e){var t=e.ref;if(t!==null){var a=e.stateNode;e.tag,e=a,typeof t=="function"?t(e):t.current=e}}function lC(e){var t=e.alternate;t!==null&&(e.alternate=null,lC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mr],delete t[Vl],delete t[Wp],delete t[S1],delete t[L1])),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 uC(e){return e.tag===5||e.tag===3||e.tag===4}function xy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||uC(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 sm(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.nodeType===8?a.parentNode.insertBefore(e,t):a.insertBefore(e,t):(a.nodeType===8?(t=a.parentNode,t.insertBefore(e,a)):(t=a,t.appendChild(e)),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Od));else if(r!==4&&(e=e.child,e!==null))for(sm(e,t,a),e=e.sibling;e!==null;)sm(e,t,a),e=e.sibling}function im(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(im(e,t,a),e=e.sibling;e!==null;)im(e,t,a),e=e.sibling}var Ft=null,nr=!1;function Fo(e,t,a){for(a=a.child;a!==null;)dC(e,t,a),a=a.sibling}function dC(e,t,a){if(_r&&typeof _r.onCommitFiberUnmount=="function")try{_r.onCommitFiberUnmount(Qd,a)}catch{}switch(a.tag){case 5:Xt||Ys(a,t);case 6:var r=Ft,o=nr;Ft=null,Fo(e,t,a),Ft=r,nr=o,Ft!==null&&(nr?(e=Ft,a=a.stateNode,e.nodeType===8?e.parentNode.removeChild(a):e.removeChild(a)):Ft.removeChild(a.stateNode));break;case 18:Ft!==null&&(nr?(e=Ft,a=a.stateNode,e.nodeType===8?dp(e.parentNode,a):e.nodeType===1&&dp(e,a),zl(e)):dp(Ft,a.stateNode));break;case 4:r=Ft,o=nr,Ft=a.stateNode.containerInfo,nr=!0,Fo(e,t,a),Ft=r,nr=o;break;case 0:case 11:case 14:case 15:if(!Xt&&(r=a.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var n=o,s=n.destroy;n=n.tag,s!==void 0&&((n&2)!==0||(n&4)!==0)&&om(a,t,s),o=o.next}while(o!==r)}Fo(e,t,a);break;case 1:if(!Xt&&(Ys(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=a.memoizedProps,r.state=a.memoizedState,r.componentWillUnmount()}catch(i){st(a,t,i)}Fo(e,t,a);break;case 21:Fo(e,t,a);break;case 22:a.mode&1?(Xt=(r=Xt)||a.memoizedState!==null,Fo(e,t,a),Xt=r):Fo(e,t,a);break;default:Fo(e,t,a)}}function yy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var a=e.stateNode;a===null&&(a=e.stateNode=new B1),t.forEach(function(r){var o=X1.bind(null,e,r);a.has(r)||(a.add(r),r.then(o,o))})}}function rr(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var o=a[r];try{var n=e,s=t,i=s;e:for(;i!==null;){switch(i.tag){case 5:Ft=i.stateNode,nr=!1;break e;case 3:Ft=i.stateNode.containerInfo,nr=!0;break e;case 4:Ft=i.stateNode.containerInfo,nr=!0;break e}i=i.return}if(Ft===null)throw Error(U(160));dC(n,s,o),Ft=null,nr=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){st(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)cC(t,e),t=t.sibling}function cC(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(rr(t,e),Dr(e),r&4){try{Tl(3,e,e.return),nc(3,e)}catch(x){st(e,e.return,x)}try{Tl(5,e,e.return)}catch(x){st(e,e.return,x)}}break;case 1:rr(t,e),Dr(e),r&512&&a!==null&&Ys(a,a.return);break;case 5:if(rr(t,e),Dr(e),r&512&&a!==null&&Ys(a,a.return),e.flags&32){var o=e.stateNode;try{El(o,"")}catch(x){st(e,e.return,x)}}if(r&4&&(o=e.stateNode,o!=null)){var n=e.memoizedProps,s=a!==null?a.memoizedProps:n,i=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{i==="input"&&n.type==="radio"&&n.name!=null&&Ay(o,n),Mp(i,s);var u=Mp(i,n);for(s=0;s<l.length;s+=2){var c=l[s],d=l[s+1];c==="style"?zy(o,d):c==="dangerouslySetInnerHTML"?Ny(o,d):c==="children"?El(o,d):mm(o,c,d,u)}switch(i){case"input":kp(o,n);break;case"textarea":Ey(o,n);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!n.multiple;var h=n.value;h!=null?ei(o,!!n.multiple,h,!1):f!==!!n.multiple&&(n.defaultValue!=null?ei(o,!!n.multiple,n.defaultValue,!0):ei(o,!!n.multiple,n.multiple?[]:"",!1))}o[Vl]=n}catch(x){st(e,e.return,x)}}break;case 6:if(rr(t,e),Dr(e),r&4){if(e.stateNode===null)throw Error(U(162));o=e.stateNode,n=e.memoizedProps;try{o.nodeValue=n}catch(x){st(e,e.return,x)}}break;case 3:if(rr(t,e),Dr(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{zl(t.containerInfo)}catch(x){st(e,e.return,x)}break;case 4:rr(t,e),Dr(e);break;case 13:rr(t,e),Dr(e),o=e.child,o.flags&8192&&(n=o.memoizedState!==null,o.stateNode.isHidden=n,!n||o.alternate!==null&&o.alternate.memoizedState!==null||($m=lt())),r&4&&yy(e);break;case 22:if(c=a!==null&&a.memoizedState!==null,e.mode&1?(Xt=(u=Xt)||c,rr(t,e),Xt=u):rr(t,e),Dr(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&(e.mode&1)!==0)for(Y=e,c=e.child;c!==null;){for(d=Y=c;Y!==null;){switch(f=Y,h=f.child,f.tag){case 0:case 11:case 14:case 15:Tl(4,f,f.return);break;case 1:Ys(f,f.return);var v=f.stateNode;if(typeof v.componentWillUnmount=="function"){r=f,a=f.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(x){st(r,a,x)}}break;case 5:Ys(f,f.return);break;case 22:if(f.memoizedState!==null){Cy(d);continue}}h!==null?(h.return=f,Y=h):Cy(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,u?(n=o.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"):(i=d.stateNode,l=d.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,i.style.display=Fy("display",s))}catch(x){st(e,e.return,x)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(x){st(e,e.return,x)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:rr(t,e),Dr(e),r&4&&yy(e);break;case 21:break;default:rr(t,e),Dr(e)}}function Dr(e){var t=e.flags;if(t&2){try{e:{for(var a=e.return;a!==null;){if(uC(a)){var r=a;break e}a=a.return}throw Error(U(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(El(o,""),r.flags&=-33);var n=xy(e);im(e,n,o);break;case 3:case 4:var s=r.stateNode.containerInfo,i=xy(e);sm(e,i,s);break;default:throw Error(U(161))}}catch(l){st(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function H1(e,t,a){Y=e,fC(e,t,a)}function fC(e,t,a){for(var r=(e.mode&1)!==0;Y!==null;){var o=Y,n=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||hd;if(!s){var i=o.alternate,l=i!==null&&i.memoizedState!==null||Xt;i=hd;var u=Xt;if(hd=s,(Xt=l)&&!u)for(Y=o;Y!==null;)s=Y,l=s.child,s.tag===22&&s.memoizedState!==null?Sy(o):l!==null?(l.return=s,Y=l):Sy(o);for(;n!==null;)Y=n,fC(n,t,a),n=n.sibling;Y=o,hd=i,Xt=u}wy(e,t,a)}else(o.subtreeFlags&8772)!==0&&n!==null?(n.return=o,Y=n):wy(e,t,a)}}function wy(e){for(;Y!==null;){var t=Y;if((t.flags&8772)!==0){var a=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Xt||nc(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Xt)if(a===null)r.componentDidMount();else{var o=t.elementType===t.type?a.memoizedProps:or(t.type,a.memoizedProps);r.componentDidUpdate(o,a.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var n=t.updateQueue;n!==null&&oy(t,n,r);break;case 3:var s=t.updateQueue;if(s!==null){if(a=null,t.child!==null)switch(t.child.tag){case 5:a=t.child.stateNode;break;case 1:a=t.child.stateNode}oy(t,s,a)}break;case 5:var i=t.stateNode;if(a===null&&t.flags&4){a=i;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break;case"img":l.src&&(a.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 c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&zl(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(U(163))}Xt||t.flags&512&&nm(t)}catch(f){st(t,t.return,f)}}if(t===e){Y=null;break}if(a=t.sibling,a!==null){a.return=t.return,Y=a;break}Y=t.return}}function Cy(e){for(;Y!==null;){var t=Y;if(t===e){Y=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Y=a;break}Y=t.return}}function Sy(e){for(;Y!==null;){var t=Y;try{switch(t.tag){case 0:case 11:case 15:var a=t.return;try{nc(4,t)}catch(l){st(t,a,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){st(t,o,l)}}var n=t.return;try{nm(t)}catch(l){st(t,n,l)}break;case 5:var s=t.return;try{nm(t)}catch(l){st(t,s,l)}}}catch(l){st(t,t.return,l)}if(t===e){Y=null;break}var i=t.sibling;if(i!==null){i.return=t.return,Y=i;break}Y=t.return}}var j1=Math.ceil,Gd=mo.ReactCurrentDispatcher,Wm=mo.ReactCurrentOwner,qa=mo.ReactCurrentBatchConfig,Ne=0,Mt=null,dt=null,zt=0,_a=0,Js=tn(0),It=0,Xl=null,On=0,sc=0,Gm=0,Ml=null,va=null,$m=0,fi=1/0,oo=null,$d=!1,lm=null,Xo=null,gd=!1,Vo=null,Kd=0,_l=0,um=null,Id=-1,bd=0;function sa(){return(Ne&6)!==0?lt():Id!==-1?Id:Id=lt()}function Zo(e){return(e.mode&1)===0?1:(Ne&2)!==0&&zt!==0?zt&-zt:b1.transition!==null?(bd===0&&(bd=Zy()),bd):(e=Ve,e!==0||(e=window.event,e=e===void 0?16:rw(e.type)),e)}function lr(e,t,a,r){if(50<_l)throw _l=0,um=null,Error(U(185));Zl(e,a,r),((Ne&2)===0||e!==Mt)&&(e===Mt&&((Ne&2)===0&&(sc|=a),It===4&&Ho(e,zt)),Ca(e,r),a===1&&Ne===0&&(t.mode&1)===0&&(fi=lt()+500,ac&&an()))}function Ca(e,t){var a=e.callbackNode;RP(e,t);var r=Md(e,e===Mt?zt:0);if(r===0)a!==null&&Tx(a),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(a!=null&&Tx(a),t===1)e.tag===0?I1(Ly.bind(null,e)):Sw(Ly.bind(null,e)),w1(function(){(Ne&6)===0&&an()}),a=null;else{switch(Qy(r)){case 1:a=ym;break;case 4:a=Ky;break;case 16:a=Td;break;case 536870912:a=Xy;break;default:a=Td}a=wC(a,pC.bind(null,e))}e.callbackPriority=t,e.callbackNode=a}}function pC(e,t){if(Id=-1,bd=0,(Ne&6)!==0)throw Error(U(327));var a=e.callbackNode;if(ni()&&e.callbackNode!==a)return null;var r=Md(e,e===Mt?zt:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Xd(e,r);else{t=r;var o=Ne;Ne|=2;var n=hC();(Mt!==e||zt!==t)&&(oo=null,fi=lt()+500,Tn(e,t));do try{W1();break}catch(i){mC(e,i)}while(!0);_m(),Gd.current=n,Ne=o,dt!==null?t=0:(Mt=null,zt=0,t=It)}if(t!==0){if(t===2&&(o=Np(e),o!==0&&(r=o,t=dm(e,o))),t===1)throw a=Xl,Tn(e,0),Ho(e,r),Ca(e,lt()),a;if(t===6)Ho(e,r);else{if(o=e.current.alternate,(r&30)===0&&!V1(o)&&(t=Xd(e,r),t===2&&(n=Np(e),n!==0&&(r=n,t=dm(e,n))),t===1))throw a=Xl,Tn(e,0),Ho(e,r),Ca(e,lt()),a;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(U(345));case 2:kn(e,va,oo);break;case 3:if(Ho(e,r),(r&130023424)===r&&(t=$m+500-lt(),10<t)){if(Md(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){sa(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=qp(kn.bind(null,e,va,oo),t);break}kn(e,va,oo);break;case 4:if(Ho(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-ir(r);n=1<<s,s=t[s],s>o&&(o=s),r&=~n}if(r=o,r=lt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*j1(r/1960))-r,10<r){e.timeoutHandle=qp(kn.bind(null,e,va,oo),r);break}kn(e,va,oo);break;case 5:kn(e,va,oo);break;default:throw Error(U(329))}}}return Ca(e,lt()),e.callbackNode===a?pC.bind(null,e):null}function dm(e,t){var a=Ml;return e.current.memoizedState.isDehydrated&&(Tn(e,t).flags|=256),e=Xd(e,t),e!==2&&(t=va,va=a,t!==null&&cm(t)),e}function cm(e){va===null?va=e:va.push.apply(va,e)}function V1(e){for(var t=e;;){if(t.flags&16384){var a=t.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var r=0;r<a.length;r++){var o=a[r],n=o.getSnapshot;o=o.value;try{if(!ur(n(),o))return!1}catch{return!1}}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 Ho(e,t){for(t&=~Gm,t&=~sc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var a=31-ir(t),r=1<<a;e[a]=-1,t&=~r}}function Ly(e){if((Ne&6)!==0)throw Error(U(327));ni();var t=Md(e,0);if((t&1)===0)return Ca(e,lt()),null;var a=Xd(e,t);if(e.tag!==0&&a===2){var r=Np(e);r!==0&&(t=r,a=dm(e,r))}if(a===1)throw a=Xl,Tn(e,0),Ho(e,t),Ca(e,lt()),a;if(a===6)throw Error(U(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kn(e,va,oo),Ca(e,lt()),null}function Km(e,t){var a=Ne;Ne|=1;try{return e(t)}finally{Ne=a,Ne===0&&(fi=lt()+500,ac&&an())}}function Nn(e){Vo!==null&&Vo.tag===0&&(Ne&6)===0&&ni();var t=Ne;Ne|=1;var a=qa.transition,r=Ve;try{if(qa.transition=null,Ve=1,e)return e()}finally{Ve=r,qa.transition=a,Ne=t,(Ne&6)===0&&an()}}function Xm(){_a=Js.current,Ye(Js)}function Tn(e,t){e.finishedWork=null,e.finishedLanes=0;var a=e.timeoutHandle;if(a!==-1&&(e.timeoutHandle=-1,y1(a)),dt!==null)for(a=dt.return;a!==null;){var r=a;switch(Dm(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Nd();break;case 3:di(),Ye(ya),Ye(Zt),zm();break;case 5:Fm(r);break;case 4:di();break;case 13:Ye(tt);break;case 19:Ye(tt);break;case 10:Am(r.type._context);break;case 22:case 23:Xm()}a=a.return}if(Mt=e,dt=e=Qo(e.current,null),zt=_a=t,It=0,Xl=null,Gm=sc=On=0,va=Ml=null,Pn!==null){for(t=0;t<Pn.length;t++)if(a=Pn[t],r=a.interleaved,r!==null){a.interleaved=null;var o=r.next,n=a.pending;if(n!==null){var s=n.next;n.next=o,r.next=s}a.pending=r}Pn=null}return e}function mC(e,t){do{var a=dt;try{if(_m(),Cd.current=Wd,qd){for(var r=at.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}qd=!1}if(En=0,Tt=Lt=at=null,Dl=!1,Gl=0,Wm.current=null,a===null||a.return===null){It=1,Xl=t,dt=null;break}e:{var n=e,s=a.return,i=a,l=t;if(t=zt,i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=i,d=c.tag;if((c.mode&1)===0&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=dy(s);if(h!==null){h.flags&=-257,cy(h,s,i,n,t),h.mode&1&&uy(n,u,t),t=h,l=u;var v=t.updateQueue;if(v===null){var x=new Set;x.add(l),t.updateQueue=x}else v.add(l);break e}else{if((t&1)===0){uy(n,u,t),Zm();break e}l=Error(U(426))}}else if(et&&i.mode&1){var w=dy(s);if(w!==null){(w.flags&65536)===0&&(w.flags|=256),cy(w,s,i,n,t),Tm(ci(l,i));break e}}n=l=ci(l,i),It!==4&&(It=2),Ml===null?Ml=[n]:Ml.push(n),n=s;do{switch(n.tag){case 3:n.flags|=65536,t&=-t,n.lanes|=t;var m=Qw(n,l,t);ry(n,m);break e;case 1:i=l;var p=n.type,g=n.stateNode;if((n.flags&128)===0&&(typeof p.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Xo===null||!Xo.has(g)))){n.flags|=65536,t&=-t,n.lanes|=t;var y=Yw(n,i,t);ry(n,y);break e}}n=n.return}while(n!==null)}vC(a)}catch(L){t=L,dt===a&&a!==null&&(dt=a=a.return);continue}break}while(!0)}function hC(){var e=Gd.current;return Gd.current=Wd,e===null?Wd:e}function Zm(){(It===0||It===3||It===2)&&(It=4),Mt===null||(On&268435455)===0&&(sc&268435455)===0||Ho(Mt,zt)}function Xd(e,t){var a=Ne;Ne|=2;var r=hC();(Mt!==e||zt!==t)&&(oo=null,Tn(e,t));do try{q1();break}catch(o){mC(e,o)}while(!0);if(_m(),Ne=a,Gd.current=r,dt!==null)throw Error(U(261));return Mt=null,zt=0,It}function q1(){for(;dt!==null;)gC(dt)}function W1(){for(;dt!==null&&!xP();)gC(dt)}function gC(e){var t=yC(e.alternate,e,_a);e.memoizedProps=e.pendingProps,t===null?vC(e):dt=t,Wm.current=null}function vC(e){var t=e;do{var a=t.alternate;if(e=t.return,(t.flags&32768)===0){if(a=F1(a,t,_a),a!==null){dt=a;return}}else{if(a=z1(a,t),a!==null){a.flags&=32767,dt=a;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{It=6,dt=null;return}}if(t=t.sibling,t!==null){dt=t;return}dt=t=e}while(t!==null);It===0&&(It=5)}function kn(e,t,a){var r=Ve,o=qa.transition;try{qa.transition=null,Ve=1,G1(e,t,a,r)}finally{qa.transition=o,Ve=r}return null}function G1(e,t,a,r){do ni();while(Vo!==null);if((Ne&6)!==0)throw Error(U(327));a=e.finishedWork;var o=e.finishedLanes;if(a===null)return null;if(e.finishedWork=null,e.finishedLanes=0,a===e.current)throw Error(U(177));e.callbackNode=null,e.callbackPriority=0;var n=a.lanes|a.childLanes;if(PP(e,n),e===Mt&&(dt=Mt=null,zt=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||gd||(gd=!0,wC(Td,function(){return ni(),null})),n=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||n){n=qa.transition,qa.transition=null;var s=Ve;Ve=1;var i=Ne;Ne|=4,Wm.current=null,U1(e,a),cC(a,e),m1(jp),_d=!!Hp,jp=Hp=null,e.current=a,H1(a,e,o),yP(),Ne=i,Ve=s,qa.transition=n}else e.current=a;if(gd&&(gd=!1,Vo=e,Kd=o),n=e.pendingLanes,n===0&&(Xo=null),SP(a.stateNode,r),Ca(e,lt()),t!==null)for(r=e.onRecoverableError,a=0;a<t.length;a++)o=t[a],r(o.value,{componentStack:o.stack,digest:o.digest});if($d)throw $d=!1,e=lm,lm=null,e;return(Kd&1)!==0&&e.tag!==0&&ni(),n=e.pendingLanes,(n&1)!==0?e===um?_l++:(_l=0,um=e):_l=0,an(),null}function ni(){if(Vo!==null){var e=Qy(Kd),t=qa.transition,a=Ve;try{if(qa.transition=null,Ve=16>e?16:e,Vo===null)var r=!1;else{if(e=Vo,Vo=null,Kd=0,(Ne&6)!==0)throw Error(U(331));var o=Ne;for(Ne|=4,Y=e.current;Y!==null;){var n=Y,s=n.child;if((Y.flags&16)!==0){var i=n.deletions;if(i!==null){for(var l=0;l<i.length;l++){var u=i[l];for(Y=u;Y!==null;){var c=Y;switch(c.tag){case 0:case 11:case 15:Tl(8,c,n)}var d=c.child;if(d!==null)d.return=c,Y=d;else for(;Y!==null;){c=Y;var f=c.sibling,h=c.return;if(lC(c),c===u){Y=null;break}if(f!==null){f.return=h,Y=f;break}Y=h}}}var v=n.alternate;if(v!==null){var x=v.child;if(x!==null){v.child=null;do{var w=x.sibling;x.sibling=null,x=w}while(x!==null)}}Y=n}}if((n.subtreeFlags&2064)!==0&&s!==null)s.return=n,Y=s;else e:for(;Y!==null;){if(n=Y,(n.flags&2048)!==0)switch(n.tag){case 0:case 11:case 15:Tl(9,n,n.return)}var m=n.sibling;if(m!==null){m.return=n.return,Y=m;break e}Y=n.return}}var p=e.current;for(Y=p;Y!==null;){s=Y;var g=s.child;if((s.subtreeFlags&2064)!==0&&g!==null)g.return=s,Y=g;else e:for(s=p;Y!==null;){if(i=Y,(i.flags&2048)!==0)try{switch(i.tag){case 0:case 11:case 15:nc(9,i)}}catch(L){st(i,i.return,L)}if(i===s){Y=null;break e}var y=i.sibling;if(y!==null){y.return=i.return,Y=y;break e}Y=i.return}}if(Ne=o,an(),_r&&typeof _r.onPostCommitFiberRoot=="function")try{_r.onPostCommitFiberRoot(Qd,e)}catch{}r=!0}return r}finally{Ve=a,qa.transition=t}}return!1}function Iy(e,t,a){t=ci(a,t),t=Qw(e,t,1),e=Ko(e,t,1),t=sa(),e!==null&&(Zl(e,1,t),Ca(e,t))}function st(e,t,a){if(e.tag===3)Iy(e,e,a);else for(;t!==null;){if(t.tag===3){Iy(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Xo===null||!Xo.has(r))){e=ci(a,e),e=Yw(t,e,1),t=Ko(t,e,1),e=sa(),t!==null&&(Zl(t,1,e),Ca(t,e));break}}t=t.return}}function $1(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),t=sa(),e.pingedLanes|=e.suspendedLanes&a,Mt===e&&(zt&a)===a&&(It===4||It===3&&(zt&130023424)===zt&&500>lt()-$m?Tn(e,0):Gm|=a),Ca(e,t)}function xC(e,t){t===0&&((e.mode&1)===0?t=1:(t=ad,ad<<=1,(ad&130023424)===0&&(ad=4194304)));var a=sa();e=fo(e,t),e!==null&&(Zl(e,t,a),Ca(e,a))}function K1(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),xC(e,a)}function X1(e,t){var a=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),xC(e,a)}var yC;yC=function(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps||ya.current)xa=!0;else{if((e.lanes&a)===0&&(t.flags&128)===0)return xa=!1,N1(e,t,a);xa=(e.flags&131072)!==0}else xa=!1,et&&(t.flags&1048576)!==0&&Lw(t,Bd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ld(e,t),e=t.pendingProps;var o=ii(t,Zt.current);oi(t,a),o=Um(null,t,r,e,o,a);var n=Hm();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wa(r)?(n=!0,Fd(t)):n=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Om(t),o.updater=oc,t.stateNode=o,o._reactInternals=t,Qp(t,r,e,a),t=em(null,t,r,!0,n,a)):(t.tag=0,et&&n&&Pm(t),na(null,t,o,a),t=t.child),t;case 16:r=t.elementType;e:{switch(Ld(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Q1(r),e=or(r,e),o){case 0:t=Jp(null,t,r,e,a);break e;case 1:t=my(null,t,r,e,a);break e;case 11:t=fy(null,t,r,e,a);break e;case 14:t=py(null,t,r,or(r.type,e),a);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:or(r,o),Jp(e,t,r,o,a);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:or(r,o),my(e,t,r,o,a);case 3:e:{if(aC(t),e===null)throw Error(U(387));r=t.pendingProps,n=t.memoizedState,o=n.element,Dw(e,t),jd(t,r,null,a);var s=t.memoizedState;if(r=s.element,n.isDehydrated)if(n={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){o=ci(Error(U(423)),t),t=hy(e,t,r,a,o);break e}else if(r!==o){o=ci(Error(U(424)),t),t=hy(e,t,r,a,o);break e}else for(Aa=$o(t.stateNode.containerInfo.firstChild),Ea=t,et=!0,sr=null,a=Rw(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(li(),r===o){t=po(e,t,a);break e}na(e,t,r,a)}t=t.child}return t;case 5:return Tw(t),e===null&&Kp(t),r=t.type,o=t.pendingProps,n=e!==null?e.memoizedProps:null,s=o.children,Vp(r,o)?s=null:n!==null&&Vp(r,n)&&(t.flags|=32),tC(e,t),na(e,t,s,a),t.child;case 6:return e===null&&Kp(t),null;case 13:return rC(e,t,a);case 4:return Nm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ui(t,null,r,a):na(e,t,r,a),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:or(r,o),fy(e,t,r,o,a);case 7:return na(e,t,t.pendingProps,a),t.child;case 8:return na(e,t,t.pendingProps.children,a),t.child;case 12:return na(e,t,t.pendingProps.children,a),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,n=t.memoizedProps,s=o.value,Xe(Ud,r._currentValue),r._currentValue=s,n!==null)if(ur(n.value,s)){if(n.children===o.children&&!ya.current){t=po(e,t,a);break e}}else for(n=t.child,n!==null&&(n.return=t);n!==null;){var i=n.dependencies;if(i!==null){s=n.child;for(var l=i.firstContext;l!==null;){if(l.context===r){if(n.tag===1){l=lo(-1,a&-a),l.tag=2;var u=n.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}n.lanes|=a,l=n.alternate,l!==null&&(l.lanes|=a),Xp(n.return,a,t),i.lanes|=a;break}l=l.next}}else if(n.tag===10)s=n.type===t.type?null:n.child;else if(n.tag===18){if(s=n.return,s===null)throw Error(U(341));s.lanes|=a,i=s.alternate,i!==null&&(i.lanes|=a),Xp(s,a,t),s=n.sibling}else s=n.child;if(s!==null)s.return=n;else for(s=n;s!==null;){if(s===t){s=null;break}if(n=s.sibling,n!==null){n.return=s.return,s=n;break}s=s.return}n=s}na(e,t,o.children,a),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,oi(t,a),o=Wa(o),r=r(o),t.flags|=1,na(e,t,r,a),t.child;case 14:return r=t.type,o=or(r,t.pendingProps),o=or(r.type,o),py(e,t,r,o,a);case 15:return Jw(e,t,t.type,t.pendingProps,a);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:or(r,o),Ld(e,t),t.tag=1,wa(r)?(e=!0,Fd(t)):e=!1,oi(t,a),Zw(t,r,o),Qp(t,r,o,a),em(null,t,r,!0,e,a);case 19:return oC(e,t,a);case 22:return eC(e,t,a)}throw Error(U(156,t.tag))};function wC(e,t){return $y(e,t)}function Z1(e,t,a,r){this.tag=e,this.key=a,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Va(e,t,a,r){return new Z1(e,t,a,r)}function Qm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Q1(e){if(typeof e=="function")return Qm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gm)return 11;if(e===vm)return 14}return 2}function Qo(e,t){var a=e.alternate;return a===null?(a=Va(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&14680064,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a}function kd(e,t,a,r,o,n){var s=2;if(r=e,typeof e=="function")Qm(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Vs:return Mn(a.children,o,n,t);case hm:s=8,o|=8;break;case Cp:return e=Va(12,a,t,o|2),e.elementType=Cp,e.lanes=n,e;case Sp:return e=Va(13,a,t,o),e.elementType=Sp,e.lanes=n,e;case Lp:return e=Va(19,a,t,o),e.elementType=Lp,e.lanes=n,e;case Ty:return ic(a,o,n,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Py:s=10;break e;case Dy:s=9;break e;case gm:s=11;break e;case vm:s=14;break e;case zo:s=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=Va(s,a,t,o),t.elementType=e,t.type=r,t.lanes=n,t}function Mn(e,t,a,r){return e=Va(7,e,r,t),e.lanes=a,e}function ic(e,t,a,r){return e=Va(22,e,r,t),e.elementType=Ty,e.lanes=a,e.stateNode={isHidden:!1},e}function xp(e,t,a){return e=Va(6,e,null,t),e.lanes=a,e}function yp(e,t,a){return t=Va(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Y1(e,t,a,r,o){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=ap(0),this.expirationTimes=ap(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ap(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ym(e,t,a,r,o,n,s,i,l){return e=new Y1(e,t,a,i,l),t===1?(t=1,n===!0&&(t|=8)):t=0,n=Va(3,null,null,t),e.current=n,n.stateNode=e,n.memoizedState={element:r,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},Om(n),e}function J1(e,t,a){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:js,key:r==null?null:""+r,children:e,containerInfo:t,implementation:a}}function CC(e){if(!e)return Jo;e=e._reactInternals;e:{if(zn(e)!==e||e.tag!==1)throw Error(U(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(wa(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(U(171))}if(e.tag===1){var a=e.type;if(wa(a))return Cw(e,a,t)}return t}function SC(e,t,a,r,o,n,s,i,l){return e=Ym(a,r,!0,e,o,n,s,i,l),e.context=CC(null),a=e.current,r=sa(),o=Zo(a),n=lo(r,o),n.callback=t??null,Ko(a,n,o),e.current.lanes=o,Zl(e,o,r),Ca(e,r),e}function lc(e,t,a,r){var o=t.current,n=sa(),s=Zo(o);return a=CC(a),t.context===null?t.context=a:t.pendingContext=a,t=lo(n,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ko(o,t,s),e!==null&&(lr(e,o,s,n),wd(e,o,s)),s}function Zd(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function by(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Jm(e,t){by(e,t),(e=e.alternate)&&by(e,t)}function eD(){return null}var LC=typeof reportError=="function"?reportError:function(e){console.error(e)};function eh(e){this._internalRoot=e}uc.prototype.render=eh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));lc(e,t,null,null)};uc.prototype.unmount=eh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nn(function(){lc(null,e,null,null)}),t[co]=null}};function uc(e){this._internalRoot=e}uc.prototype.unstable_scheduleHydration=function(e){if(e){var t=ew();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Uo.length&&t!==0&&t<Uo[a].priority;a++);Uo.splice(a,0,e),a===0&&aw(e)}};function th(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function dc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ky(){}function tD(e,t,a,r,o){if(o){if(typeof r=="function"){var n=r;r=function(){var u=Zd(s);n.call(u)}}var s=SC(t,r,e,0,null,!1,!1,"",ky);return e._reactRootContainer=s,e[co]=s.current,Hl(e.nodeType===8?e.parentNode:e),Nn(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var u=Zd(l);i.call(u)}}var l=Ym(e,0,!1,null,null,!1,!1,"",ky);return e._reactRootContainer=l,e[co]=l.current,Hl(e.nodeType===8?e.parentNode:e),Nn(function(){lc(t,l,a,r)}),l}function cc(e,t,a,r,o){var n=a._reactRootContainer;if(n){var s=n;if(typeof o=="function"){var i=o;o=function(){var l=Zd(s);i.call(l)}}lc(t,s,e,o)}else s=tD(a,t,e,o,r);return Zd(s)}Yy=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var a=Sl(t.pendingLanes);a!==0&&(wm(t,a|1),Ca(t,lt()),(Ne&6)===0&&(fi=lt()+500,an()))}break;case 13:Nn(function(){var r=fo(e,1);if(r!==null){var o=sa();lr(r,e,1,o)}}),Jm(e,1)}};Cm=function(e){if(e.tag===13){var t=fo(e,134217728);if(t!==null){var a=sa();lr(t,e,134217728,a)}Jm(e,134217728)}};Jy=function(e){if(e.tag===13){var t=Zo(e),a=fo(e,t);if(a!==null){var r=sa();lr(a,e,t,r)}Jm(e,t)}};ew=function(){return Ve};tw=function(e,t){var a=Ve;try{return Ve=e,t()}finally{Ve=a}};Ap=function(e,t,a){switch(t){case"input":if(kp(e,a),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var o=tc(r);if(!o)throw Error(U(90));_y(r),kp(r,o)}}}break;case"textarea":Ey(e,a);break;case"select":t=a.value,t!=null&&ei(e,!!a.multiple,t,!1)}};Hy=Km;jy=Nn;var aD={usingClientEntryPoint:!1,Events:[Yl,$s,tc,By,Uy,Km]},xl={findFiberByHostInstance:Rn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},rD={bundleType:xl.bundleType,version:xl.version,rendererPackageName:xl.rendererPackageName,rendererConfig:xl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:mo.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Wy(e),e===null?null:e.stateNode},findFiberByHostInstance:xl.findFiberByHostInstance||eD,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(yl=__REACT_DEVTOOLS_GLOBAL_HOOK__,!yl.isDisabled&&yl.supportsFiber))try{Qd=yl.inject(rD),_r=yl}catch{}var yl;Fa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=aD;Fa.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!th(t))throw Error(U(200));return J1(e,t,null,a)};Fa.createRoot=function(e,t){if(!th(e))throw Error(U(299));var a=!1,r="",o=LC;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Ym(e,1,!1,null,null,a,!1,r,o),e[co]=t.current,Hl(e.nodeType===8?e.parentNode:e),new eh(t)};Fa.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(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=Wy(t),e=e===null?null:e.stateNode,e};Fa.flushSync=function(e){return Nn(e)};Fa.hydrate=function(e,t,a){if(!dc(t))throw Error(U(200));return cc(null,e,t,!0,a)};Fa.hydrateRoot=function(e,t,a){if(!th(e))throw Error(U(405));var r=a!=null&&a.hydratedSources||null,o=!1,n="",s=LC;if(a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onRecoverableError!==void 0&&(s=a.onRecoverableError)),t=SC(t,null,e,1,a??null,o,!1,n,s),e[co]=t.current,Hl(e),r)for(e=0;e<r.length;e++)a=r[e],o=a._getVersion,o=o(a._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[a,o]:t.mutableSourceEagerHydrationData.push(a,o);return new uc(t)};Fa.render=function(e,t,a){if(!dc(t))throw Error(U(200));return cc(null,e,t,!1,a)};Fa.unmountComponentAtNode=function(e){if(!dc(e))throw Error(U(40));return e._reactRootContainer?(Nn(function(){cc(null,null,e,!1,function(){e._reactRootContainer=null,e[co]=null})}),!0):!1};Fa.unstable_batchedUpdates=Km;Fa.unstable_renderSubtreeIntoContainer=function(e,t,a,r){if(!dc(a))throw Error(U(200));if(e==null||e._reactInternals===void 0)throw Error(U(38));return cc(e,t,a,!1,r)};Fa.version="18.3.1-next-f1338f8080-20240426"});var hi=Xr((vF,kC)=>{"use strict";function bC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(bC)}catch(e){console.error(e)}}bC(),kC.exports=IC()});var p0=Xr(uv=>{"use strict";var f0=hi();uv.createRoot=f0.createRoot,uv.hydrateRoot=f0.hydrateRoot;var Gq});function Cv(e){var t,a,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(a=Cv(e[t]))&&(r&&(r+=" "),r+=a)}else for(a in e)e[a]&&(r&&(r+=" "),r+=a);return r}function Fu(){for(var e,t,a=0,r="",o=arguments.length;a<o;a++)(e=arguments[a])&&(t=Cv(e))&&(r&&(r+=" "),r+=t);return r}var k0=(e,t)=>{let a=new Array(e.length+t.length);for(let r=0;r<e.length;r++)a[r]=e[r];for(let r=0;r<t.length;r++)a[e.length+r]=t[r];return a},R0=(e,t)=>({classGroupId:e,validator:t}),Rv=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a});var Sv=[],P0="arbitrary..",D0=e=>{let t=M0(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return T0(s);let i=s.split("-"),l=i[0]===""&&i.length>1?1:0;return Pv(i,l,t)},getConflictingClassGroupIds:(s,i)=>{if(i){let l=r[s],u=a[s];return l?u?k0(u,l):l:u||Sv}return a[s]||Sv}}},Pv=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let o=e[t],n=a.nextPart.get(o);if(n){let u=Pv(e,t+1,n);if(u)return u}let s=a.validators;if(s===null)return;let i=t===0?e.join("-"):e.slice(t).join("-"),l=s.length;for(let u=0;u<l;u++){let c=s[u];if(c.validator(i))return c.classGroupId}},T0=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),r=t.slice(0,a);return r?P0+r:void 0})(),M0=e=>{let{theme:t,classGroups:a}=e;return _0(a,t)},_0=(e,t)=>{let a=Rv();for(let r in e){let o=e[r];Ef(o,a,r,t)}return a},Ef=(e,t,a,r)=>{let o=e.length;for(let n=0;n<o;n++){let s=e[n];A0(s,t,a,r)}},A0=(e,t,a,r)=>{if(typeof e=="string"){E0(e,t,a);return}if(typeof e=="function"){O0(e,t,a,r);return}N0(e,t,a,r)},E0=(e,t,a)=>{let r=e===""?t:Dv(t,e);r.classGroupId=a},O0=(e,t,a,r)=>{if(F0(e)){Ef(e(r),t,a,r);return}t.validators===null&&(t.validators=[]),t.validators.push(R0(a,e))},N0=(e,t,a,r)=>{let o=Object.entries(e),n=o.length;for(let s=0;s<n;s++){let[i,l]=o[s];Ef(l,Dv(t,i),a,r)}},Dv=(e,t)=>{let a=e,r=t.split("-"),o=r.length;for(let n=0;n<o;n++){let s=r[n],i=a.nextPart.get(s);i||(i=Rv(),a.nextPart.set(s,i)),a=i}return a},F0=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,z0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),r=Object.create(null),o=(n,s)=>{a[n]=s,t++,t>e&&(t=0,r=a,a=Object.create(null))};return{get(n){let s=a[n];if(s!==void 0)return s;if((s=r[n])!==void 0)return o(n,s),s},set(n,s){n in a?a[n]=s:o(n,s)}}};var B0=[],Lv=(e,t,a,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:r,isExternal:o}),U0=e=>{let{prefix:t,experimentalParseClassName:a}=e,r=o=>{let n=[],s=0,i=0,l=0,u,c=o.length;for(let x=0;x<c;x++){let w=o[x];if(s===0&&i===0){if(w===":"){n.push(o.slice(l,x)),l=x+1;continue}if(w==="/"){u=x;continue}}w==="["?s++:w==="]"?s--:w==="("?i++:w===")"&&i--}let d=n.length===0?o:o.slice(l),f=d,h=!1;d.endsWith("!")?(f=d.slice(0,-1),h=!0):d.startsWith("!")&&(f=d.slice(1),h=!0);let v=u&&u>l?u-l:void 0;return Lv(n,h,f,v)};if(t){let o=t+":",n=r;r=s=>s.startsWith(o)?n(s.slice(o.length)):Lv(B0,!1,s,void 0,!0)}if(a){let o=r;r=n=>a({className:n,parseClassName:o})}return r},H0=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,r)=>{t.set(a,1e6+r)}),a=>{let r=[],o=[];for(let n=0;n<a.length;n++){let s=a[n],i=s[0]==="[",l=t.has(s);i||l?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(s)):o.push(s)}return o.length>0&&(o.sort(),r.push(...o)),r}},j0=e=>({cache:z0(e.cacheSize),parseClassName:U0(e),sortModifiers:H0(e),postfixLookupClassGroupIds:V0(e),...D0(e)}),V0=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let r=0;r<a.length;r++)t[a[r]]=!0;return t},q0=/\s+/,W0=(e,t)=>{let{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:n,postfixLookupClassGroupIds:s}=t,i=[],l=e.trim().split(q0),u="";for(let c=l.length-1;c>=0;c-=1){let d=l[c],{isExternal:f,modifiers:h,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:w}=a(d);if(f){u=d+(u.length>0?" "+u:u);continue}let m=!!w,p;if(m){let R=x.substring(0,w);p=r(R);let k=p&&s[p]?r(x):void 0;k&&k!==p&&(p=k,m=!1)}else p=r(x);if(!p){if(!m){u=d+(u.length>0?" "+u:u);continue}if(p=r(x),!p){u=d+(u.length>0?" "+u:u);continue}m=!1}let g=h.length===0?"":h.length===1?h[0]:n(h).join(":"),y=v?g+"!":g,L=y+p;if(i.indexOf(L)>-1)continue;i.push(L);let b=o(p,m);for(let R=0;R<b.length;++R){let k=b[R];i.push(y+k)}u=d+(u.length>0?" "+u:u)}return u},G0=(...e)=>{let t=0,a,r,o="";for(;t<e.length;)(a=e[t++])&&(r=Tv(a))&&(o&&(o+=" "),o+=r);return o},Tv=e=>{if(typeof e=="string")return e;let t,a="";for(let r=0;r<e.length;r++)e[r]&&(t=Tv(e[r]))&&(a&&(a+=" "),a+=t);return a},$0=(e,...t)=>{let a,r,o,n,s=l=>{let u=t.reduce((c,d)=>d(c),e());return a=j0(u),r=a.cache.get,o=a.cache.set,n=i,i(l)},i=l=>{let u=r(l);if(u)return u;let c=W0(l,a);return o(l,c),c};return n=s,(...l)=>n(G0(...l))},K0=[],St=e=>{let t=a=>a[e]||K0;return t.isThemeGetter=!0,t},Mv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_v=/^\((?:(\w[\w-]*):)?(.+)\)$/i,X0=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Z0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Q0=/\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$/,Y0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,J0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,eR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ao=e=>X0.test(e),Ie=e=>!!e&&!Number.isNaN(Number(e)),br=e=>!!e&&Number.isInteger(Number(e)),Af=e=>e.endsWith("%")&&Ie(e.slice(0,-1)),Zr=e=>Z0.test(e),Av=()=>!0,tR=e=>Q0.test(e)&&!Y0.test(e),Of=()=>!1,aR=e=>J0.test(e),rR=e=>eR.test(e),oR=e=>!Z(e)&&!Q(e),nR=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),sR=e=>Eo(e,Nv,Of),Z=e=>Mv.test(e),Cn=e=>Eo(e,Fv,tR),Iv=e=>Eo(e,mR,Ie),iR=e=>Eo(e,Bv,Av),lR=e=>Eo(e,zv,Of),bv=e=>Eo(e,Ev,Of),uR=e=>Eo(e,Ov,rR),zu=e=>Eo(e,Uv,aR),Q=e=>_v.test(e),sl=e=>Sn(e,Fv),dR=e=>Sn(e,zv),kv=e=>Sn(e,Ev),cR=e=>Sn(e,Nv),fR=e=>Sn(e,Ov),Bu=e=>Sn(e,Uv,!0),pR=e=>Sn(e,Bv,!0),Eo=(e,t,a)=>{let r=Mv.exec(e);return r?r[1]?t(r[1]):a(r[2]):!1},Sn=(e,t,a=!1)=>{let r=_v.exec(e);return r?r[1]?t(r[1]):a:!1},Ev=e=>e==="position"||e==="percentage",Ov=e=>e==="image"||e==="url",Nv=e=>e==="length"||e==="size"||e==="bg-size",Fv=e=>e==="length",mR=e=>e==="number",zv=e=>e==="family-name",Bv=e=>e==="number"||e==="weight",Uv=e=>e==="shadow";var hR=()=>{let e=St("color"),t=St("font"),a=St("text"),r=St("font-weight"),o=St("tracking"),n=St("leading"),s=St("breakpoint"),i=St("container"),l=St("spacing"),u=St("radius"),c=St("shadow"),d=St("inset-shadow"),f=St("text-shadow"),h=St("drop-shadow"),v=St("blur"),x=St("perspective"),w=St("aspect"),m=St("ease"),p=St("animate"),g=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...y(),Q,Z],b=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],k=()=>[Q,Z,l],M=()=>[Ao,"full","auto",...k()],E=()=>[br,"none","subgrid",Q,Z],O=()=>["auto",{span:["full",br,Q,Z]},br,Q,Z],T=()=>[br,"auto",Q,Z],_=()=>["auto","min","max","fr",Q,Z],A=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],N=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...k()],H=()=>[Ao,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],V=()=>[Ao,"screen","full","dvw","lvw","svw","min","max","fit",...k()],ae=()=>[Ao,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],D=()=>[e,Q,Z],ge=()=>[...y(),kv,bv,{position:[Q,Z]}],ve=()=>["no-repeat",{repeat:["","x","y","space","round"]}],j=()=>["auto","cover","contain",cR,sR,{size:[Q,Z]}],Re=()=>[Af,sl,Cn],Pe=()=>["","none","full",u,Q,Z],Se=()=>["",Ie,sl,Cn],qe=()=>["solid","dashed","dotted","double"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>[Ie,Af,kv,bv],He=()=>["","none",v,Q,Z],Fe=()=>["none",Ie,Q,Z],ze=()=>["none",Ie,Q,Z],Oe=()=>[Ie,Q,Z],We=()=>[Ao,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Zr],breakpoint:[Zr],color:[Av],container:[Zr],"drop-shadow":[Zr],ease:["in","out","in-out"],font:[oR],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Zr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Zr],shadow:[Zr],spacing:["px",Ie],text:[Zr],"text-shadow":[Zr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ao,Z,Q,w]}],container:["container"],"container-type":[{"@container":["","normal","size",Q,Z]}],"container-named":[nR],columns:[{columns:[Ie,Z,Q,i]}],"break-after":[{"break-after":g()}],"break-before":[{"break-before":g()}],"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:L()}],overflow:[{overflow:b()}],"overflow-x":[{"overflow-x":b()}],"overflow-y":[{"overflow-y":b()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{"inset-s":M(),start:M()}],end:[{"inset-e":M(),end:M()}],"inset-bs":[{"inset-bs":M()}],"inset-be":[{"inset-be":M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[br,"auto",Q,Z]}],basis:[{basis:[Ao,"full","auto",i,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ie,Ao,"auto","initial","none",Z]}],grow:[{grow:["",Ie,Q,Z]}],shrink:[{shrink:["",Ie,Q,Z]}],order:[{order:[br,"first","last","none",Q,Z]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":_()}],"auto-rows":[{"auto-rows":_()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...A(),"normal"]}],"justify-items":[{"justify-items":[...N(),"normal"]}],"justify-self":[{"justify-self":["auto",...N()]}],"align-content":[{content:["normal",...A()]}],"align-items":[{items:[...N(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...N(),{baseline:["","last"]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...N(),"baseline"]}],"place-self":[{"place-self":["auto",...N()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mbs:[{mbs:z()}],mbe:[{mbe:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],"inline-size":[{inline:["auto",...V()]}],"min-inline-size":[{"min-inline":["auto",...V()]}],"max-inline-size":[{"max-inline":["none",...V()]}],"block-size":[{block:["auto",...ae()]}],"min-block-size":[{"min-block":["auto",...ae()]}],"max-block-size":[{"max-block":["none",...ae()]}],w:[{w:[i,"screen",...H()]}],"min-w":[{"min-w":[i,"screen","none",...H()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",a,sl,Cn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,pR,iR]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Af,Z]}],"font-family":[{font:[dR,lR,t]}],"font-features":[{"font-features":[Z]}],"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:[o,Q,Z]}],"line-clamp":[{"line-clamp":[Ie,"none",Q,Iv]}],leading:[{leading:[n,...k()]}],"list-image":[{"list-image":["none",Q,Z]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Q,Z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...qe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ie,"from-font","auto",Q,Cn]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[Ie,"auto",Q,Z]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"tab-size":[{tab:[br,Q,Z]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q,Z]}],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",Q,Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ge()}],"bg-repeat":[{bg:ve()}],"bg-size":[{bg:j()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},br,Q,Z],radial:["",Q,Z],conic:[br,Q,Z]},fR,uR]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:Re()}],"gradient-via-pos":[{via:Re()}],"gradient-to-pos":[{to:Re()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:Pe()}],"rounded-s":[{"rounded-s":Pe()}],"rounded-e":[{"rounded-e":Pe()}],"rounded-t":[{"rounded-t":Pe()}],"rounded-r":[{"rounded-r":Pe()}],"rounded-b":[{"rounded-b":Pe()}],"rounded-l":[{"rounded-l":Pe()}],"rounded-ss":[{"rounded-ss":Pe()}],"rounded-se":[{"rounded-se":Pe()}],"rounded-ee":[{"rounded-ee":Pe()}],"rounded-es":[{"rounded-es":Pe()}],"rounded-tl":[{"rounded-tl":Pe()}],"rounded-tr":[{"rounded-tr":Pe()}],"rounded-br":[{"rounded-br":Pe()}],"rounded-bl":[{"rounded-bl":Pe()}],"border-w":[{border:Se()}],"border-w-x":[{"border-x":Se()}],"border-w-y":[{"border-y":Se()}],"border-w-s":[{"border-s":Se()}],"border-w-e":[{"border-e":Se()}],"border-w-bs":[{"border-bs":Se()}],"border-w-be":[{"border-be":Se()}],"border-w-t":[{"border-t":Se()}],"border-w-r":[{"border-r":Se()}],"border-w-b":[{"border-b":Se()}],"border-w-l":[{"border-l":Se()}],"divide-x":[{"divide-x":Se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...qe(),"hidden","none"]}],"divide-style":[{divide:[...qe(),"hidden","none"]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-bs":[{"border-bs":D()}],"border-color-be":[{"border-be":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}],"divide-color":[{divide:D()}],"outline-style":[{outline:[...qe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ie,Q,Z]}],"outline-w":[{outline:["",Ie,sl,Cn]}],"outline-color":[{outline:D()}],shadow:[{shadow:["","none",c,Bu,zu]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":["none",d,Bu,zu]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[Ie,Cn]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":Se()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":["none",f,Bu,zu]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[Ie,Q,Z]}],"mix-blend":[{"mix-blend":[...J(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":J()}],"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":[Ie]}],"mask-image-linear-from-pos":[{"mask-linear-from":ue()}],"mask-image-linear-to-pos":[{"mask-linear-to":ue()}],"mask-image-linear-from-color":[{"mask-linear-from":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"mask-image-t-from-pos":[{"mask-t-from":ue()}],"mask-image-t-to-pos":[{"mask-t-to":ue()}],"mask-image-t-from-color":[{"mask-t-from":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"mask-image-r-from-pos":[{"mask-r-from":ue()}],"mask-image-r-to-pos":[{"mask-r-to":ue()}],"mask-image-r-from-color":[{"mask-r-from":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"mask-image-b-from-pos":[{"mask-b-from":ue()}],"mask-image-b-to-pos":[{"mask-b-to":ue()}],"mask-image-b-from-color":[{"mask-b-from":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"mask-image-l-from-pos":[{"mask-l-from":ue()}],"mask-image-l-to-pos":[{"mask-l-to":ue()}],"mask-image-l-from-color":[{"mask-l-from":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"mask-image-x-from-pos":[{"mask-x-from":ue()}],"mask-image-x-to-pos":[{"mask-x-to":ue()}],"mask-image-x-from-color":[{"mask-x-from":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"mask-image-y-from-pos":[{"mask-y-from":ue()}],"mask-image-y-to-pos":[{"mask-y-to":ue()}],"mask-image-y-from-color":[{"mask-y-from":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[Q,Z]}],"mask-image-radial-from-pos":[{"mask-radial-from":ue()}],"mask-image-radial-to-pos":[{"mask-radial-to":ue()}],"mask-image-radial-from-color":[{"mask-radial-from":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"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":y()}],"mask-image-conic-pos":[{"mask-conic":[Ie]}],"mask-image-conic-from-pos":[{"mask-conic-from":ue()}],"mask-image-conic-to-pos":[{"mask-conic-to":ue()}],"mask-image-conic-from-color":[{"mask-conic-from":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ge()}],"mask-repeat":[{mask:ve()}],"mask-size":[{mask:j()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Q,Z]}],filter:[{filter:["","none",Q,Z]}],blur:[{blur:He()}],brightness:[{brightness:[Ie,Q,Z]}],contrast:[{contrast:[Ie,Q,Z]}],"drop-shadow":[{"drop-shadow":["","none",h,Bu,zu]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:["",Ie,Q,Z]}],"hue-rotate":[{"hue-rotate":[Ie,Q,Z]}],invert:[{invert:["",Ie,Q,Z]}],saturate:[{saturate:[Ie,Q,Z]}],sepia:[{sepia:["",Ie,Q,Z]}],"backdrop-filter":[{"backdrop-filter":["","none",Q,Z]}],"backdrop-blur":[{"backdrop-blur":He()}],"backdrop-brightness":[{"backdrop-brightness":[Ie,Q,Z]}],"backdrop-contrast":[{"backdrop-contrast":[Ie,Q,Z]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ie,Q,Z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ie,Q,Z]}],"backdrop-invert":[{"backdrop-invert":["",Ie,Q,Z]}],"backdrop-opacity":[{"backdrop-opacity":[Ie,Q,Z]}],"backdrop-saturate":[{"backdrop-saturate":[Ie,Q,Z]}],"backdrop-sepia":[{"backdrop-sepia":["",Ie,Q,Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Q,Z]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ie,"initial",Q,Z]}],ease:[{ease:["linear","initial",m,Q,Z]}],delay:[{delay:[Ie,Q,Z]}],animate:[{animate:["none",p,Q,Z]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,Q,Z]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:Fe()}],"rotate-x":[{"rotate-x":Fe()}],"rotate-y":[{"rotate-y":Fe()}],"rotate-z":[{"rotate-z":Fe()}],scale:[{scale:ze()}],"scale-x":[{"scale-x":ze()}],"scale-y":[{"scale-y":ze()}],"scale-z":[{"scale-z":ze()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[Q,Z,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:We()}],"translate-x":[{"translate-x":We()}],"translate-y":[{"translate-y":We()}],"translate-z":[{"translate-z":We()}],"translate-none":["translate-none"],zoom:[{zoom:[br,Q,Z]}],accent:[{accent:D()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:D()}],"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",Q,Z]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":D()}],"scrollbar-track-color":[{"scrollbar-track":D()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",Q,Z]}],fill:[{fill:["none",...D()]}],"stroke-w":[{stroke:[Ie,sl,Cn,Iv]}],stroke:[{stroke:["none",...D()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Hv=$0(hR);function Nf(e={}){let t=e.styleId??"xpert-shadcn-ui-theme-vars";if(typeof document>"u")return;e.density==="compact"?document.documentElement.dataset.xuiDensity="compact":e.density==="default"&&delete document.documentElement.dataset.xuiDensity;let a=document.getElementById(t);a||(a=document.createElement("style"),a.id=t,document.head.appendChild(a)),a.textContent=`
71
9
  :root {
72
10
  --background: var(--xui-color-background, #ffffff);
73
11
  --foreground: var(--xui-color-foreground, #18181b);
@@ -122,12 +60,12 @@ Record risks, blockers, and support needed.
122
60
  --border: var(--xui-color-border, #27272a);
123
61
  --input: var(--xui-color-input, var(--border));
124
62
  }
125
- `}var Su=N(te(),1);var wu=(...e)=>e.filter((t,a,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===a).join(" ").trim();var _v=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var Av=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,r)=>r?r.toUpperCase():a.toLowerCase());var If=e=>{let t=Av(e);return t.charAt(0).toUpperCase()+t.slice(1)};var zi=N(te(),1);var Cu={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"};var Ev=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var cs=N(te(),1);var J0=(0,cs.createContext)({});var Ov=()=>(0,cs.useContext)(J0);var Nv=(0,zi.forwardRef)(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:r,className:o="",children:n,iconNode:s,...i},l)=>{let{size:u=24,strokeWidth:d=2,absoluteStrokeWidth:c=!1,color:f="currentColor",className:h=""}=Ov()??{},v=r??c?Number(a??d)*24/Number(t??u):a??d;return(0,zi.createElement)("svg",{ref:l,...Cu,width:t??u??Cu.width,height:t??u??Cu.height,stroke:e??f,strokeWidth:v,className:wu("lucide",h,o),...!n&&!Ev(i)&&{"aria-hidden":"true"},...i},[...s.map(([x,w])=>(0,zi.createElement)(x,w)),...Array.isArray(n)?n:[n]])});var Te=(e,t)=>{let a=(0,Su.forwardRef)(({className:r,...o},n)=>(0,Su.createElement)(Nv,{ref:n,iconNode:t,className:wu(`lucide-${_v(If(e))}`,`lucide-${e}`,r),...o}));return a.displayName=If(e),a};var eR=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],fs=Te("arrow-left",eR);var tR=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Tr=Te("check",tR);var aR=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Mr=Te("chevron-down",aR);var rR=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ps=Te("chevron-up",rR);var oR=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],ms=Te("download",oR);var nR=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],rr=Te("ellipsis",nR);var sR=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Jt=Te("file-text",sR);var iR=[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]],an=Te("files",iR);var lR=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],or=Te("folder",lR);var uR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Dr=Te("info",uR);var dR=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],_r=Te("lock-keyhole",dR);var cR=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],go=Te("plus",cR);var fR=[["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"}]],Ar=Te("refresh-cw",fR);var pR=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],xa=Te("search",pR);var mR=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],hs=Te("trash-2",mR);var hR=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],gs=Te("upload",hR);var gR=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],Er=Te("wand-sparkles",gR);var vR=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Or=Te("x",vR);var Y=N(ke(),1);var D1=N(te(),1);var lC=N(te(),1),uC=N(Gs(),1);var Vd={};co(Vd,{Root:()=>S1,Slot:()=>S1,Slottable:()=>L1,createSlot:()=>bt,createSlottable:()=>Hm});var It=N(te(),1);var tC=N(te(),1),w1=Object.defineProperty,Bm=(e,t)=>w1(e,"name",{value:t,configurable:!0});function zm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Bm(zm,"setRef");function aC(...e){return t=>{let a=!1,r=e.map(o=>{let n=zm(o,t);return!a&&typeof n=="function"&&(a=!0),n});if(a)return()=>{for(let o=0;o<r.length;o++){let n=r[o];typeof n=="function"?n():zm(e[o],null)}}}}Bm(aC,"composeRefs");function he(...e){return tC.useCallback(aC(...e),e)}Bm(he,"useComposedRefs");var C1=Object.defineProperty,Ha=(e,t)=>C1(e,"name",{value:t,configurable:!0});function bt(e){let t=It.forwardRef((a,r)=>{let{children:o,...n}=a,s=null,i=!1,l=[];Um(o)&&typeof jd=="function"&&(o=jd(o._payload)),It.Children.forEach(o,f=>{if(sC(f)){i=!0;let h=f,v="child"in h.props?h.props.child:h.props.children;Um(v)&&typeof jd=="function"&&(v=jd(v._payload)),s=I1(h,v),l.push(s?.props?.children)}else l.push(f)}),s?s=It.cloneElement(s,void 0,l):!i&&It.Children.count(o)===1&&It.isValidElement(o)&&(s=o);let u=s?nC(s):void 0,d=he(r,u);if(!s){if(o||o===0)throw new Error(i?R1(e):k1(e));return o}let c=oC(n,s.props??{});return s.type!==It.Fragment&&(c.ref=r?d:u),It.cloneElement(s,c)});return t.displayName=`${e}.Slot`,t}Ha(bt,"createSlot");var S1=bt("Slot"),rC=Symbol.for("radix.slottable");function Hm(e){let t=Ha(a=>"child"in a?a.children(a.child):a.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=rC,t}Ha(Hm,"createSlottable");var L1=Hm("Slottable"),I1=Ha((e,t)=>{if("child"in e.props){let a=e.props.child;return It.isValidElement(a)?It.cloneElement(a,void 0,e.props.children(a.props.children)):null}return It.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function oC(e,t){let a={...t};for(let r in t){let o=e[r],n=t[r];/^on[A-Z]/.test(r)?o&&n?a[r]=(...i)=>{let l=n(...i);return o(...i),l}:o&&(a[r]=o):r==="style"?a[r]={...o,...n}:r==="className"&&(a[r]=[o,n].filter(Boolean).join(" "))}return{...e,...a}}Ha(oC,"mergeProps");function nC(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}Ha(nC,"getElementRef");function sC(e){return It.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===rC}Ha(sC,"isSlottable");var b1=Symbol.for("react.lazy");function Um(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===b1&&"_payload"in e&&iC(e._payload)}Ha(Um,"isLazyComponent");function iC(e){return typeof e=="object"&&e!==null&&"then"in e}Ha(iC,"isPromiseLike");var k1=Ha(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),R1=Ha(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),jd=It[" use ".trim().toString()];var dC=N(ke(),1),P1=Object.defineProperty,T1=(e,t)=>P1(e,"name",{value:t,configurable:!0}),M1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],le=M1.reduce((e,t)=>{let a=bt(`Primitive.${t}`),r=lC.forwardRef((o,n)=>{let{asChild:s,...i}=o,l=s?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,dC.jsx)(l,{...i,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ml(e,t){e&&uC.flushSync(()=>e.dispatchEvent(t))}T1(Ml,"dispatchDiscreteCustomEvent");var _1=N(ke(),1);var cC=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"});var Ra=N(te(),1),jm=N(ke(),1),A1=Object.defineProperty,ka=(e,t)=>A1(e,"name",{value:t,configurable:!0});function E1(e,t){let a=Ra.createContext(t);a.displayName=e+"Context";let r=ka(n=>{let{children:s,...i}=n,l=Ra.useMemo(()=>i,Object.values(i));return(0,jm.jsx)(a.Provider,{value:l,children:s})},"Provider");r.displayName=e+"Provider";function o(n,s={}){let{optional:i=!1}=s,l=Ra.useContext(a);if(l)return l;if(t!==void 0)return t;if(!i)throw new Error(`\`${n}\` must be used within \`${e}\``)}return ka(o,"useContext"),[r,o]}ka(E1,"createContext");function at(e,t=[]){let a=[];function r(n,s){let i=Ra.createContext(s);i.displayName=n+"Context";let l=a.length;a=[...a,s];let u=ka(c=>{let{scope:f,children:h,...v}=c,x=f?.[e]?.[l]||i,w=Ra.useMemo(()=>v,Object.values(v));return(0,jm.jsx)(x.Provider,{value:w,children:h})},"Provider");u.displayName=n+"Provider";function d(c,f,h={}){let{optional:v=!1}=h,x=f?.[e]?.[l]||i,w=Ra.useContext(x);if(w)return w;if(s!==void 0)return s;if(!v)throw new Error(`\`${c}\` must be used within \`${n}\``)}return ka(d,"useContext"),[u,d]}ka(r,"createContext");let o=ka(()=>{let n=a.map(s=>Ra.createContext(s));return ka(function(i){let l=i?.[e]||n;return Ra.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])},"useScope")},"createScope");return o.scopeName=e,[r,fC(o,...t)]}ka(at,"createContextScope");function fC(...e){let t=e[0];if(e.length===1)return t;let a=ka(()=>{let r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return ka(function(n){let s=r.reduce((i,{useScope:l,scopeName:u})=>{let c=l(n)[`__scope${u}`];return{...i,...c}},{});return Ra.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])},"useComposedScopes")},"createScope");return a.scopeName=t.scopeName,a}ka(fC,"composeContextScopes");var ja=N(te(),1);var qd=N(ke(),1),na=N(te(),1);var yn=N(ke(),1),O1=Object.defineProperty,gt=(e,t)=>O1(e,"name",{value:t,configurable:!0});function wn(e){let t=e+"CollectionProvider",[a,r]=at(t),[o,n]=a(t,{collectionRef:{current:null},itemMap:new Map}),s=gt(x=>{let{scope:w,children:p}=x,m=ja.useRef(null),g=ja.useRef(new Map).current;return(0,qd.jsx)(o,{scope:w,itemMap:g,collectionRef:m,children:p})},"CollectionProvider");s.displayName=t;let i=e+"CollectionSlot",l=bt(i),u=ja.forwardRef((x,w)=>{let{scope:p,children:m}=x,g=n(i,p),y=he(w,g.collectionRef);return(0,qd.jsx)(l,{ref:y,children:m})});u.displayName=i;let d=e+"CollectionItemSlot",c="data-radix-collection-item",f=bt(d),h=ja.forwardRef((x,w)=>{let{scope:p,children:m,...g}=x,y=ja.useRef(null),C=he(w,y),I=n(d,p);return ja.useEffect(()=>(I.itemMap.set(y,{ref:y,...g}),()=>{I.itemMap.delete(y)})),(0,qd.jsx)(f,{[c]:"",ref:C,children:m})});h.displayName=d;function v(x){let w=n(e+"CollectionConsumer",x);return ja.useCallback(()=>{let m=w.collectionRef.current;if(!m)return[];let g=Array.from(m.querySelectorAll(`[${c}]`));return Array.from(w.itemMap.values()).sort((I,k)=>g.indexOf(I.ref.current)-g.indexOf(k.ref.current))},[w.collectionRef,w.itemMap])}return gt(v,"useCollection"),[{Provider:s,Slot:u,ItemSlot:h},v,r]}gt(wn,"createCollection");var pC=new WeakMap,Vm=class zo extends Map{static{gt(this,"OrderedDict")}#e;constructor(t){super(t),this.#e=[...super.keys()],pC.set(this,!0)}set(t,a){return pC.get(this)&&(this.has(t)?this.#e[this.#e.indexOf(t)]=t:this.#e.push(t)),super.set(t,a),this}insert(t,a,r){let o=this.has(a),n=this.#e.length,s=Wm(t),i=s>=0?s:n+s,l=i<0||i>=n?-1:i;if(l===this.size||o&&l===this.size-1||l===-1)return this.set(a,r),this;let u=this.size+(o?0:1);s<0&&i++;let d=[...this.#e],c,f=!1;for(let h=i;h<u;h++)if(i===h){let v=d[h];d[h]===a&&(v=d[h+1]),o&&this.delete(a),c=this.get(v),this.set(a,r)}else{!f&&d[h-1]===a&&(f=!0);let v=d[f?h:h-1],x=c;c=this.get(v),this.delete(v),this.set(v,x)}return this}with(t,a,r){let o=new zo(this);return o.insert(t,a,r),o}before(t){let a=this.#e.indexOf(t)-1;if(!(a<0))return this.entryAt(a)}setBefore(t,a,r){let o=this.#e.indexOf(t);return o===-1?this:this.insert(o,a,r)}after(t){let a=this.#e.indexOf(t);if(a=a===-1||a===this.size-1?-1:a+1,a!==-1)return this.entryAt(a)}setAfter(t,a,r){let o=this.#e.indexOf(t);return o===-1?this:this.insert(o+1,a,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(t){let a=super.delete(t);return a&&this.#e.splice(this.#e.indexOf(t),1),a}deleteAt(t){let a=this.keyAt(t);return a!==void 0?this.delete(a):!1}at(t){let a=Wd(this.#e,t);if(a!==void 0)return this.get(a)}entryAt(t){let a=Wd(this.#e,t);if(a!==void 0)return[a,this.get(a)]}indexOf(t){return this.#e.indexOf(t)}keyAt(t){return Wd(this.#e,t)}from(t,a){let r=this.indexOf(t);if(r===-1)return;let o=r+a;return o<0&&(o=0),o>=this.size&&(o=this.size-1),this.at(o)}keyFrom(t,a){let r=this.indexOf(t);if(r===-1)return;let o=r+a;return o<0&&(o=0),o>=this.size&&(o=this.size-1),this.keyAt(o)}find(t,a){let r=0;for(let o of this){if(Reflect.apply(t,a,[o,r,this]))return o;r++}}findIndex(t,a){let r=0;for(let o of this){if(Reflect.apply(t,a,[o,r,this]))return r;r++}return-1}filter(t,a){let r=[],o=0;for(let n of this)Reflect.apply(t,a,[n,o,this])&&r.push(n),o++;return new zo(r)}map(t,a){let r=[],o=0;for(let n of this)r.push([n[0],Reflect.apply(t,a,[n,o,this])]),o++;return new zo(r)}reduce(...t){let[a,r]=t,o=0,n=r??this.at(0);for(let s of this)o===0&&t.length===1?n=s:n=Reflect.apply(a,this,[n,s,o,this]),o++;return n}reduceRight(...t){let[a,r]=t,o=r??this.at(-1);for(let n=this.size-1;n>=0;n--){let s=this.at(n);n===this.size-1&&t.length===1?o=s:o=Reflect.apply(a,this,[o,s,n,this])}return o}toSorted(t){let a=[...this.entries()].sort(t);return new zo(a)}toReversed(){let t=new zo;for(let a=this.size-1;a>=0;a--){let r=this.keyAt(a),o=this.get(r);t.set(r,o)}return t}toSpliced(...t){let a=[...this.entries()];return a.splice(...t),new zo(a)}slice(t,a){let r=new zo,o=this.size-1;if(t===void 0)return r;t<0&&(t=t+this.size),a!==void 0&&a>0&&(o=a-1);for(let n=t;n<=o;n++){let s=this.keyAt(n),i=this.get(s);r.set(s,i)}return r}every(t,a){let r=0;for(let o of this){if(!Reflect.apply(t,a,[o,r,this]))return!1;r++}return!0}some(t,a){let r=0;for(let o of this){if(Reflect.apply(t,a,[o,r,this]))return!0;r++}return!1}};function Wd(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let a=mC(e,t);return a===-1?void 0:e[a]}gt(Wd,"at");function mC(e,t){let a=e.length,r=Wm(t),o=r>=0?r:a+r;return o<0||o>=a?-1:o}gt(mC,"toSafeIndex");function Wm(e){return e!==e||e===0?0:Math.trunc(e)}gt(Wm,"toSafeInteger");function N1(e){let t=e+"CollectionProvider",[a,r]=at(t),[o,n]=a(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Vm,setItemMap:gt(()=>{},"setItemMap")}),s=gt(({state:g,...y})=>g?(0,yn.jsx)(l,{...y,state:g}):(0,yn.jsx)(i,{...y}),"CollectionProvider");s.displayName=t;let i=gt(g=>{let y=w();return(0,yn.jsx)(l,{...g,state:y})},"CollectionInit");i.displayName=t+"Init";let l=gt(g=>{let{scope:y,children:C,state:I}=g,k=na.useRef(null),[b,T]=na.useState(null),A=he(k,T),[D,E]=I;return na.useEffect(()=>{if(!b)return;let z=vC(()=>{});return z.observe(b,{childList:!0,subtree:!0}),()=>{z.disconnect()}},[b]),(0,yn.jsx)(o,{scope:y,itemMap:D,setItemMap:E,collectionRef:A,collectionRefObject:k,collectionElement:b,children:C})},"CollectionProviderImpl");l.displayName=t+"Impl";let u=e+"CollectionSlot",d=bt(u),c=na.forwardRef((g,y)=>{let{scope:C,children:I}=g,k=n(u,C),b=he(y,k.collectionRef);return(0,yn.jsx)(d,{ref:b,children:I})});c.displayName=u;let f=e+"CollectionItemSlot",h="data-radix-collection-item",v=bt(f),x=na.forwardRef((g,y)=>{let{scope:C,children:I,...k}=g,b=na.useRef(null),[T,A]=na.useState(null),D=he(y,b,A),E=n(f,C),{setItemMap:z}=E,O=na.useRef(k);hC(O.current,k)||(O.current=k);let _=O.current;return na.useEffect(()=>{let B=_;return z(j=>T?j.has(T)?j.set(T,{...B,element:T}).toSorted(qm):(j.set(T,{...B,element:T}),j.toSorted(qm)):j),()=>{z(j=>!T||!j.has(T)?j:(j.delete(T),new Vm(j)))}},[T,_,z]),(0,yn.jsx)(v,{[h]:"",ref:D,children:I})});x.displayName=f;function w(){return na.useState(new Vm)}gt(w,"useInitCollection");function p(g){let{itemMap:y}=n(e+"CollectionConsumer",g);return y}return gt(p,"useCollection"),[{Provider:s,Slot:c,ItemSlot:x},{createCollectionScope:r,useCollection:p,useInitCollection:w}]}gt(N1,"createCollection");function hC(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;let a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(let o of a)if(!Object.prototype.hasOwnProperty.call(t,o)||e[o]!==t[o])return!1;return!0}gt(hC,"shallowEqual");function gC(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}gt(gC,"isElementPreceding");function qm(e,t){return!e[1].element||!t[1].element?0:gC(e[1].element,t[1].element)?-1:1}gt(qm,"sortByDocumentPosition");function vC(e){return new MutationObserver(a=>{for(let r of a)if(r.type==="childList"){e();return}})}gt(vC,"getChildListObserver");var F1=Object.defineProperty,$s=(e,t)=>F1(e,"name",{value:t,configurable:!0}),xC=!!(typeof window<"u"&&window.document&&window.document.createElement);function G(e,t,{checkForDefaultPrevented:a=!0}={}){return $s(function(o){if(e?.(o),a===!1||!o||!o.defaultPrevented)return t?.(o)},"handleEvent")}$s(G,"composeEventHandlers");function z1(e){if(!xC)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}$s(z1,"getOwnerWindow");function Gm(e){if(!xC)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}$s(Gm,"getOwnerDocument");function yC(e,t=!1){let{activeElement:a}=Gm(e);if(!a?.nodeName)return null;if(wC(a)&&a.contentDocument)return yC(a.contentDocument.body,t);if(t){let r=a.getAttribute("aria-activedescendant");if(r){let o=Gm(a).getElementById(r);if(o)return o}}return a}$s(yC,"getActiveElement");function wC(e){return e.tagName==="IFRAME"}$s(wC,"isFrame");var Pa=N(te(),1);var Gd=!1;var CC=N(te(),1),Ne=globalThis?.document?CC.useLayoutEffect:()=>{};var Va=N(te(),1);var Ks=N(te(),1),B1=Object.defineProperty,U1=(e,t)=>B1(e,"name",{value:t,configurable:!0}),SC=Ks[" useEffectEvent ".trim().toString()],LC=Ks[" useInsertionEffect ".trim().toString()];function $m(e){if(typeof SC=="function")return SC(e);let t=Ks.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof LC=="function"?LC(()=>{t.current=e}):Ne(()=>{t.current=e}),Ks.useMemo(()=>((...a)=>t.current?.(...a)),[])}U1($m,"useEffectEvent");var H1=Object.defineProperty,Dl=(e,t)=>H1(e,"name",{value:t,configurable:!0}),j1=Pa[" useInsertionEffect ".trim().toString()]||Ne;function Wt({prop:e,defaultProp:t,onChange:a=Dl(()=>{},"onChange"),caller:r}){let[o,n,s]=bC({defaultProp:t,onChange:a}),i=e!==void 0,l=i?e:o;if(Gd){let d=Pa.useRef(e!==void 0);Pa.useEffect(()=>{let c=d.current;c!==i&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${i?"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=i},[i,r])}let u=Pa.useCallback(d=>{if(i){let c=kC(d)?d(e):d;c!==e&&s.current?.(c)}else n(d)},[i,e,n,s]);return[l,u]}Dl(Wt,"useControllableState");function bC({defaultProp:e,onChange:t}){let[a,r]=Pa.useState(e),o=Pa.useRef(a),n=Pa.useRef(t);return j1(()=>{n.current=t},[t]),Pa.useEffect(()=>{o.current!==a&&(n.current?.(a),o.current=a)},[a,o]),[a,r,n]}Dl(bC,"useUncontrolledState");function kC(e){return typeof e=="function"}Dl(kC,"isFunction");var IC=Symbol("RADIX:SYNC_STATE");function V1(e,t,a,r){let{prop:o,defaultProp:n,onChange:s,caller:i}=t,l=o!==void 0,u=$m(s);if(Gd){let w=Va.useRef(o!==void 0);Va.useEffect(()=>{let p=w.current;p!==l&&console.warn(`${i} is changing from ${p?"controlled":"uncontrolled"} to ${l?"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.`),w.current=l},[l,i])}let d=[{...a,state:n}];r&&d.push(r);let[c,f]=Va.useReducer((w,p)=>{if(p.type===IC)return{...w,state:p.state};let m=e(w,p);return l&&!Object.is(m.state,w.state)&&u(m.state),m},...d),h=c.state,v=Va.useRef(h);Va.useEffect(()=>{v.current!==h&&(v.current=h,l||u(h))},[h,v,l]);let x=Va.useMemo(()=>o!==void 0?{...c,state:o}:c,[c,o]);return Va.useEffect(()=>{l&&!Object.is(o,c.state)&&f({type:IC,state:o})},[o,c.state,l]),[x,f]}Dl(V1,"useControllableStateReducer");var kt=N(te(),1);var RC=N(te(),1),q1=Object.defineProperty,Gr=(e,t)=>q1(e,"name",{value:t,configurable:!0});function PC(e,t){return RC.useReducer((a,r)=>t[a][r]??a,e)}Gr(PC,"useStateMachine");var Gt=Gr(e=>{let{present:t,children:a}=e,r=TC(t),o=typeof a=="function"?a({present:r.isPresent}):kt.Children.only(a),n=MC(r.ref,DC(o));return typeof a=="function"||r.isPresent?kt.cloneElement(o,{ref:n}):null},"Presence");function TC(e){let[t,a]=kt.useState(),r=kt.useRef(null),o=kt.useRef(e),n=kt.useRef("none"),s=kt.useRef(void 0),i=e?"mounted":"unmounted",[l,u]=PC(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return kt.useEffect(()=>{l==="mounted"?(n.current=s.current??Xs(r.current),s.current=void 0):n.current="none"},[l]),Ne(()=>{let d=r.current,c=o.current;if(c!==e){let h=n.current,v=Xs(d);e?(s.current=v,u("MOUNT")):v==="none"||d?.display==="none"?u("UNMOUNT"):u(c&&h!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),Ne(()=>{if(t){let d,c=t.ownerDocument.defaultView??window,f=Gr(v=>{let w=Xs(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&w&&(u("ANIMATION_END"),!o.current)){let p=t.style.animationFillMode;t.style.animationFillMode="forwards",d=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=p)})}},"handleAnimationEnd"),h=Gr(v=>{v.target===t&&(n.current=Xs(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(d),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:kt.useCallback(d=>{if(d){let c=getComputedStyle(d);r.current=c,s.current=Xs(c)}else r.current=null;a(d)},[])}}Gr(TC,"usePresence");function Km(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Gr(Km,"setRef");function MC(...e){let t=kt.useRef(e);return t.current=e,kt.useCallback(a=>{let r=t.current,o=!1,n=r.map(s=>{let i=Km(s,a);return!o&&typeof i=="function"&&(o=!0),i});if(o)return()=>{for(let s=0;s<n.length;s++){let i=n[s];typeof i=="function"?i():Km(r[s],null)}}},[])}Gr(MC,"useStableComposedRefs");function Xs(e){return e?.animationName||"none"}Gr(Xs,"getAnimationName");function DC(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}Gr(DC,"getElementRef");var Xm=N(te(),1);var W1=Object.defineProperty,G1=(e,t)=>W1(e,"name",{value:t,configurable:!0}),$1=Xm[" useId ".trim().toString()]||(()=>{}),K1=0;function dt(e){let[t,a]=Xm.useState($1());return Ne(()=>{e||a(r=>r??String(K1++))},[e]),e||(t?`radix-${t}`:"")}G1(dt,"useId");var $d=N(te(),1),Q1=N(ke(),1),X1=Object.defineProperty,Z1=(e,t)=>X1(e,"name",{value:t,configurable:!0}),Y1=$d.createContext(void 0);function $r(e){let t=$d.useContext(Y1);return e||t||"ltr"}Z1($r,"useDirection");var Wa={};co(Wa,{Close:()=>JT,Content:()=>WT,Description:()=>QT,Dialog:()=>FT,DialogClose:()=>JT,DialogContent:()=>WT,DialogDescription:()=>QT,DialogOverlay:()=>jT,DialogPortal:()=>HT,DialogTitle:()=>XT,DialogTrigger:()=>BT,Overlay:()=>jT,Portal:()=>HT,Root:()=>FT,Title:()=>XT,Trigger:()=>BT,WarningProvider:()=>eM,createDialogScope:()=>OT});var qe=N(te(),1);var Be=N(te(),1);var Zs=N(te(),1),J1=Object.defineProperty,eT=(e,t)=>J1(e,"name",{value:t,configurable:!0});function ot(e){let t=Zs.useRef(e);return Zs.useEffect(()=>{t.current=e}),Zs.useMemo(()=>((...a)=>t.current?.(...a)),[])}eT(ot,"useCallbackRef");var AC=N(ke(),1),tT=Object.defineProperty,vt=(e,t)=>tT(e,"name",{value:t,configurable:!0}),Zm="dismissableLayer.update",aT="dismissableLayer.pointerDownOutside",rT="dismissableLayer.focusOutside",_C,EC=Be.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Qs=Be.forwardRef(vt(function(t,a){let{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:l,onDismiss:u,...d}=t,c=Be.useContext(EC),[f,h]=Be.useState(null),v=f?.ownerDocument??globalThis?.document,[,x]=Be.useState({}),w=he(a,h),p=Array.from(c.layers),[m]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),g=m?p.indexOf(m):-1,y=f?p.indexOf(f):-1,C=c.layersWithOutsidePointerEventsDisabled.size>0,I=y>=g,k=Be.useRef(!1),b=OC(E=>{s?.(E),l?.(E),E.defaultPrevented||u?.()},{ownerDocument:v,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:k,dismissableSurfaces:c.dismissableSurfaces,shouldHandlePointerDownOutside:Be.useCallback(E=>{if(!(E instanceof Node))return!1;let z=[...c.branches].some(O=>O.contains(E));return I&&!z},[c.branches,I])}),T=NC(E=>{if(o&&k.current)return;let z=E.target;[...c.branches].some(_=>_.contains(z))||(i?.(E),l?.(E),E.defaultPrevented||u?.())},v),A=f?y===p.length-1:!1,D=ot(E=>{E.key==="Escape"&&(n?.(E),!E.defaultPrevented&&u&&(E.preventDefault(),u()))});return Be.useEffect(()=>{if(A)return v.addEventListener("keydown",D,{capture:!0}),()=>v.removeEventListener("keydown",D,{capture:!0})},[v,A,D]),Be.useEffect(()=>{if(f)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(_C=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),Qm(),()=>{r&&(c.layersWithOutsidePointerEventsDisabled.delete(f),c.layersWithOutsidePointerEventsDisabled.size===0&&(v.body.style.pointerEvents=_C))}},[f,v,r,c]),Be.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),Qm())},[f,c]),Be.useEffect(()=>{let E=vt(()=>x({}),"handleUpdate");return document.addEventListener(Zm,E),()=>document.removeEventListener(Zm,E)},[]),(0,AC.jsx)(le.div,{...d,ref:w,style:{pointerEvents:C?I?"auto":"none":void 0,...t.style},onFocusCapture:G(t.onFocusCapture,T.onFocusCapture),onBlurCapture:G(t.onBlurCapture,T.onBlurCapture),onPointerDownCapture:G(t.onPointerDownCapture,b.onPointerDownCapture)})},"DismissableLayer"));function Ym(){let e=Be.useContext(EC),[t,a]=Be.useState(null);return Be.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),a}vt(Ym,"useDismissableLayerSurface");var oT=vt(()=>!0,"IS_TRUE");function OC(e,t){let{ownerDocument:a=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:n,shouldHandlePointerDownOutside:s=oT}=t,i=ot(e),l=Be.useRef(!1),u=Be.useRef(!1),d=Be.useRef(new Map),c=Be.useRef(()=>{});return Be.useEffect(()=>{function f(){u.current=!1,o.current=!1,d.current.clear()}vt(f,"resetOutsideInteraction");function h(){return Array.from(d.current.values()).some(Boolean)}vt(h,"isOutsideInteractionIntercepted");function v(g){if(!u.current)return;let y=g.target;y instanceof Node&&[...n].some(I=>I.contains(y))||d.current.set(g.type,!0),g.type==="click"&&window.setTimeout(()=>{u.current&&c.current()},0)}vt(v,"handleInteractionCapture");function x(g){u.current&&d.current.set(g.type,!1)}vt(x,"handleInteractionBubble");let w=vt(g=>{if(g.target&&!l.current){let C=function(){a.removeEventListener("click",c.current);let k=h();f(),k||Jm(aT,i,I,{discrete:!0})};var y=C;if(vt(C,"handleAndDispatchPointerDownOutsideEvent"),!s(g.target)){a.removeEventListener("click",c.current),f(),l.current=!1;return}let I={originalEvent:g};u.current=!0,o.current=r&&g.button===0,d.current.clear(),!r||g.button!==0?C():(a.removeEventListener("click",c.current),c.current=C,a.addEventListener("click",c.current,{once:!0}))}else a.removeEventListener("click",c.current),f();l.current=!1},"handlePointerDown"),p=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let g of p)a.addEventListener(g,v,!0),a.addEventListener(g,x);let m=window.setTimeout(()=>{a.addEventListener("pointerdown",w)},0);return()=>{window.clearTimeout(m),a.removeEventListener("pointerdown",w),a.removeEventListener("click",c.current);for(let g of p)a.removeEventListener(g,v,!0),a.removeEventListener(g,x)}},[a,i,r,o,n,s]),{onPointerDownCapture:vt(()=>l.current=!0,"onPointerDownCapture")}}vt(OC,"usePointerDownOutside");function NC(e,t=globalThis?.document){let a=ot(e),r=Be.useRef(!1);return Be.useEffect(()=>{let o=vt(n=>{n.target&&!r.current&&Jm(rT,a,{originalEvent:n},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,a]),{onFocusCapture:vt(()=>r.current=!0,"onFocusCapture"),onBlurCapture:vt(()=>r.current=!1,"onBlurCapture")}}vt(NC,"useFocusOutside");function Qm(){let e=new CustomEvent(Zm);document.dispatchEvent(e)}vt(Qm,"dispatchUpdate");function Jm(e,t,a,{discrete:r}){let o=a.originalEvent.target,n=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});t&&o.addEventListener(e,t,{once:!0}),r?Ml(o,n):o.dispatchEvent(n)}vt(Jm,"handleAndDispatchCustomEvent");var Ta=N(te(),1);var BC=N(ke(),1),nT=Object.defineProperty,$t=(e,t)=>nT(e,"name",{value:t,configurable:!0}),eh="focusScope.autoFocusOnMount",th="focusScope.autoFocusOnUnmount",FC={bubbles:!1,cancelable:!0},Ys=Ta.forwardRef($t(function(t,a){let{loop:r=!1,trapped:o=!1,onMountAutoFocus:n,onUnmountAutoFocus:s,...i}=t,[l,u]=Ta.useState(null),d=ot(n),c=ot(s),f=Ta.useRef(null),h=he(a,u),v=Ta.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Ta.useEffect(()=>{if(o){let g=function(k){if(v.paused||!l)return;let b=k.target;l.contains(b)?f.current=b:Kr(f.current,{select:!0})},y=function(k){if(v.paused||!l)return;let b=k.relatedTarget;b!==null&&(l.contains(b)||Kr(f.current,{select:!0}))},C=function(k){if(document.activeElement===document.body)for(let T of k)T.removedNodes.length>0&&Kr(l)};var w=g,p=y,m=C;$t(g,"handleFocusIn"),$t(y,"handleFocusOut"),$t(C,"handleMutations"),document.addEventListener("focusin",g),document.addEventListener("focusout",y);let I=new MutationObserver(C);return l&&I.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",y),I.disconnect()}}},[o,l,v.paused]),Ta.useEffect(()=>{if(l){zC.add(v);let w=document.activeElement;if(!l.contains(w)){let m=new CustomEvent(eh,FC);l.addEventListener(eh,d),l.dispatchEvent(m),m.defaultPrevented||(UC(WC(oh(l)),{select:!0}),document.activeElement===w&&Kr(l))}return()=>{l.removeEventListener(eh,d),setTimeout(()=>{let m=new CustomEvent(th,FC);l.addEventListener(th,c),l.dispatchEvent(m),m.defaultPrevented||Kr(w??document.body,{select:!0}),l.removeEventListener(th,c),zC.remove(v)},0)}}},[l,d,c,v]);let x=Ta.useCallback(w=>{if(!r&&!o||v.paused)return;let p=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,m=document.activeElement;if(p&&m){let g=w.currentTarget,[y,C]=HC(g);y&&C?!w.shiftKey&&m===C?(w.preventDefault(),r&&Kr(y,{select:!0})):w.shiftKey&&m===y&&(w.preventDefault(),r&&Kr(C,{select:!0})):m===g&&w.preventDefault()}},[r,o,v.paused]);return(0,BC.jsx)(le.div,{tabIndex:-1,...i,ref:h,onKeyDown:x})},"FocusScope"));function UC(e,{select:t=!1}={}){let a=document.activeElement;for(let r of e)if(Kr(r,{select:t}),document.activeElement!==a)return}$t(UC,"focusFirst");function HC(e){let t=oh(e),a=ah(t,e),r=ah(t.reverse(),e);return[a,r]}$t(HC,"getTabbableEdges");function oh(e){let t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:$t(r=>{let o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;a.nextNode();)t.push(a.currentNode);return t}$t(oh,"getTabbableCandidates");function ah(e,t){let a=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(a?!r.checkVisibility({checkVisibilityCSS:!0}):jC(r,{upTo:t})))return r}$t(ah,"findVisible");function jC(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}$t(jC,"isHidden");function VC(e){return e instanceof HTMLInputElement&&"select"in e}$t(VC,"isSelectableInput");function Kr(e,{select:t=!1}={}){if(e&&e.focus){let a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&VC(e)&&t&&e.select()}}$t(Kr,"focus");var zC=qC();function qC(){let e=[];return{add(t){let a=e[0];t!==a&&a?.pause(),e=rh(e,t),e.unshift(t)},remove(t){e=rh(e,t),e[0]?.resume()}}}$t(qC,"createFocusScopesStack");function rh(e,t){let a=[...e],r=a.indexOf(t);return r!==-1&&a.splice(r,1),a}$t(rh,"arrayRemove");function WC(e){return e.filter(t=>t.tagName!=="A")}$t(WC,"removeLinks");var Kd=N(te(),1),GC=N(Gs(),1);var $C=N(ke(),1),sT=Object.defineProperty,iT=(e,t)=>sT(e,"name",{value:t,configurable:!0}),Js=Kd.forwardRef(iT(function(t,a){let{container:r,...o}=t,[n,s]=Kd.useState(!1);Ne(()=>s(!0),[]);let i=r||n&&globalThis?.document?.body;return i?GC.createPortal((0,$C.jsx)(le.div,{...o,ref:a}),i):null},"Portal"));var KC=N(te(),1),lT=Object.defineProperty,sh=(e,t)=>lT(e,"name",{value:t,configurable:!0}),Xd=0,ei=null;function uT(e){return Bo(),e.children}sh(uT,"FocusGuards");function Bo(){KC.useEffect(()=>{ei||(ei={start:nh(),end:nh()});let{start:e,end:t}=ei;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Xd++,()=>{Xd===1&&(ei?.start.remove(),ei?.end.remove(),ei=null),Xd=Math.max(0,Xd-1)}},[])}sh(Bo,"useFocusGuards");function nh(){let 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}sh(nh,"createFocusGuard");var sa=function(){return sa=Object.assign||function(t){for(var a,r=1,o=arguments.length;r<o;r++){a=arguments[r];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t},sa.apply(this,arguments)};function Zd(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(a[r[o]]=e[r[o]]);return a}function XC(e,t,a){if(a||arguments.length===2)for(var r=0,o=t.length,n;r<o;r++)(n||!(r in t))&&(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}var tc=N(te());var Ot=N(te());var Cn="right-scroll-bar-position",Sn="width-before-scroll-bar",ih="with-scroll-bars-hidden",lh="--removed-body-scroll-bar-size";function Qd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}var ZC=N(te());function QC(e,t){var a=(0,ZC.useState)(function(){return{value:e,callback:t,facade:{get current(){return a.value},set current(r){var o=a.value;o!==r&&(a.value=r,a.callback(r,o))}}}})[0];return a.callback=t,a.facade}var Yd=N(te());var dT=typeof window<"u"?Yd.useLayoutEffect:Yd.useEffect,YC=new WeakMap;function uh(e,t){var a=QC(t||null,function(r){return e.forEach(function(o){return Qd(o,r)})});return dT(function(){var r=YC.get(a);if(r){var o=new Set(r),n=new Set(e),s=a.current;o.forEach(function(i){n.has(i)||Qd(i,null)}),n.forEach(function(i){o.has(i)||Qd(i,s)})}YC.set(a,e)},[e]),a}function cT(e){return e}function fT(e,t){t===void 0&&(t=cT);var a=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:e},useMedium:function(n){var s=t(n,r);return a.push(s),function(){a=a.filter(function(i){return i!==s})}},assignSyncMedium:function(n){for(r=!0;a.length;){var s=a;a=[],s.forEach(n)}a={push:function(i){return n(i)},filter:function(){return a}}},assignMedium:function(n){r=!0;var s=[];if(a.length){var i=a;a=[],i.forEach(n),s=a}var l=function(){var d=s;s=[],d.forEach(n)},u=function(){return Promise.resolve().then(l)};u(),a={push:function(d){s.push(d),u()},filter:function(d){return s=s.filter(d),a}}}};return o}function dh(e){e===void 0&&(e={});var t=fT(null);return t.options=sa({async:!0,ssr:!1},e),t}var JC=N(te()),eS=function(e){var t=e.sideCar,a=Zd(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return JC.createElement(r,sa({},a))};eS.isSideCarExport=!0;function ch(e,t){return e.useMedium(t),eS}var Jd=dh();var fh=function(){},_l=Ot.forwardRef(function(e,t){var a=Ot.useRef(null),r=Ot.useState({onScrollCapture:fh,onWheelCapture:fh,onTouchMoveCapture:fh}),o=r[0],n=r[1],s=e.forwardProps,i=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,c=e.shards,f=e.sideCar,h=e.noRelative,v=e.noIsolation,x=e.inert,w=e.allowPinchZoom,p=e.as,m=p===void 0?"div":p,g=e.gapMode,y=Zd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=f,I=uh([a,t]),k=sa(sa({},y),o);return Ot.createElement(Ot.Fragment,null,d&&Ot.createElement(C,{sideCar:Jd,removeScrollBar:u,shards:c,noRelative:h,noIsolation:v,inert:x,setCallbacks:n,allowPinchZoom:!!w,lockRef:a,gapMode:g}),s?Ot.cloneElement(Ot.Children.only(i),sa(sa({},k),{ref:I})):Ot.createElement(m,sa({},k,{className:l,ref:I}),i))});_l.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};_l.classNames={fullWidth:Sn,zeroRight:Cn};var $e=N(te());var ai=N(te());var rS=N(te());var tS;var aS=function(){if(tS)return tS;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function pT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=aS();return t&&e.setAttribute("nonce",t),e}function mT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function hT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ph=function(){var e=0,t=null;return{add:function(a){e==0&&(t=pT())&&(mT(t,a),hT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var mh=function(){var e=ph();return function(t,a){rS.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&a])}};var Al=function(){var e=mh(),t=function(a){var r=a.styles,o=a.dynamic;return e(r,o),null};return t};var gT={left:0,top:0,right:0,gap:0},hh=function(e){return parseInt(e||"",10)||0},vT=function(e){var t=window.getComputedStyle(document.body),a=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[hh(a),hh(r),hh(o)]},gh=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return gT;var t=vT(e),a=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-a+t[2]-t[0])}};var xT=Al(),ti="data-scroll-locked",yT=function(e,t,a,r){var o=e.left,n=e.top,s=e.right,i=e.gap;return a===void 0&&(a="margin"),`
126
- .`.concat(ih,` {
63
+ `}var Wu=F(ee(),1);var Vu=(...e)=>e.filter((t,a,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===a).join(" ").trim();var tx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var ax=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,r)=>r?r.toUpperCase():a.toLowerCase());var jf=e=>{let t=ax(e);return t.charAt(0).toUpperCase()+t.slice(1)};var ll=F(ee(),1);var qu={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"};var rx=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var Es=F(ee(),1);var MR=(0,Es.createContext)({});var ox=()=>(0,Es.useContext)(MR);var nx=(0,ll.forwardRef)(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:r,className:o="",children:n,iconNode:s,...i},l)=>{let{size:u=24,strokeWidth:c=2,absoluteStrokeWidth:d=!1,color:f="currentColor",className:h=""}=ox()??{},v=r??d?Number(a??c)*24/Number(t??u):a??c;return(0,ll.createElement)("svg",{ref:l,...qu,width:t??u??qu.width,height:t??u??qu.height,stroke:e??f,strokeWidth:v,className:Vu("lucide",h,o),...!n&&!rx(i)&&{"aria-hidden":"true"},...i},[...s.map(([x,w])=>(0,ll.createElement)(x,w)),...Array.isArray(n)?n:[n]])});var _e=(e,t)=>{let a=(0,Wu.forwardRef)(({className:r,...o},n)=>(0,Wu.createElement)(nx,{ref:n,iconNode:t,className:Vu(`lucide-${tx(jf(e))}`,`lucide-${e}`,r),...o}));return a.displayName=jf(e),a};var _R=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Os=_e("arrow-left",_R);var AR=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Qr=_e("check",AR);var ER=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Yr=_e("chevron-down",ER);var OR=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Ns=_e("chevron-up",OR);var NR=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Fs=_e("download",NR);var FR=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],kr=_e("ellipsis",FR);var zR=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],ga=_e("file-text",zR);var BR=[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]],Ln=_e("files",BR);var UR=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Rr=_e("folder",UR);var HR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Jr=_e("info",HR);var jR=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],eo=_e("lock-keyhole",jR);var VR=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Oo=_e("plus",VR);var qR=[["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"}]],to=_e("refresh-cw",qR);var WR=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ba=_e("search",WR);var GR=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],zs=_e("trash-2",GR);var $R=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Bs=_e("upload",$R);var KR=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],ao=_e("wand-sparkles",KR);var XR=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ro=_e("x",XR);var X=F(fe(),1);var hD=F(ee(),1);var EC=F(ee(),1),OC=F(hi(),1);var eu={};_o(eu,{Root:()=>sD,Slot:()=>sD,Slottable:()=>iD,createSlot:()=>Ht,createSlottable:()=>nh});var Ut=F(ee(),1);var RC=F(ee(),1),oD=Object.defineProperty,rh=(e,t)=>oD(e,"name",{value:t,configurable:!0});function ah(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}rh(ah,"setRef");function PC(...e){return t=>{let a=!1,r=e.map(o=>{let n=ah(o,t);return!a&&typeof n=="function"&&(a=!0),n});if(a)return()=>{for(let o=0;o<r.length;o++){let n=r[o];typeof n=="function"?n():ah(e[o],null)}}}}rh(PC,"composeRefs");function pe(...e){return RC.useCallback(PC(...e),e)}rh(pe,"useComposedRefs");var nD=Object.defineProperty,dr=(e,t)=>nD(e,"name",{value:t,configurable:!0});function Ht(e){let t=Ut.forwardRef((a,r)=>{let{children:o,...n}=a,s=null,i=!1,l=[];oh(o)&&typeof fc=="function"&&(o=fc(o._payload)),Ut.Children.forEach(o,f=>{if(_C(f)){i=!0;let h=f,v="child"in h.props?h.props.child:h.props.children;oh(v)&&typeof fc=="function"&&(v=fc(v._payload)),s=lD(h,v),l.push(s?.props?.children)}else l.push(f)}),s?s=Ut.cloneElement(s,void 0,l):!i&&Ut.Children.count(o)===1&&Ut.isValidElement(o)&&(s=o);let u=s?MC(s):void 0,c=pe(r,u);if(!s){if(o||o===0)throw new Error(i?cD(e):dD(e));return o}let d=TC(n,s.props??{});return s.type!==Ut.Fragment&&(d.ref=r?c:u),Ut.cloneElement(s,d)});return t.displayName=`${e}.Slot`,t}dr(Ht,"createSlot");var sD=Ht("Slot"),DC=Symbol.for("radix.slottable");function nh(e){let t=dr(a=>"child"in a?a.children(a.child):a.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=DC,t}dr(nh,"createSlottable");var iD=nh("Slottable"),lD=dr((e,t)=>{if("child"in e.props){let a=e.props.child;return Ut.isValidElement(a)?Ut.cloneElement(a,void 0,e.props.children(a.props.children)):null}return Ut.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function TC(e,t){let a={...t};for(let r in t){let o=e[r],n=t[r];/^on[A-Z]/.test(r)?o&&n?a[r]=(...i)=>{let l=n(...i);return o(...i),l}:o&&(a[r]=o):r==="style"?a[r]={...o,...n}:r==="className"&&(a[r]=[o,n].filter(Boolean).join(" "))}return{...e,...a}}dr(TC,"mergeProps");function MC(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}dr(MC,"getElementRef");function _C(e){return Ut.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===DC}dr(_C,"isSlottable");var uD=Symbol.for("react.lazy");function oh(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===uD&&"_payload"in e&&AC(e._payload)}dr(oh,"isLazyComponent");function AC(e){return typeof e=="object"&&e!==null&&"then"in e}dr(AC,"isPromiseLike");var dD=dr(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),cD=dr(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),fc=Ut[" use ".trim().toString()];var NC=F(fe(),1),fD=Object.defineProperty,pD=(e,t)=>fD(e,"name",{value:t,configurable:!0}),mD=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],se=mD.reduce((e,t)=>{let a=Ht(`Primitive.${t}`),r=EC.forwardRef((o,n)=>{let{asChild:s,...i}=o,l=s?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,NC.jsx)(l,{...i,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function tu(e,t){e&&OC.flushSync(()=>e.dispatchEvent(t))}pD(tu,"dispatchDiscreteCustomEvent");var gD=F(fe(),1);var FC=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"});var Ka=F(ee(),1),sh=F(fe(),1),vD=Object.defineProperty,$a=(e,t)=>vD(e,"name",{value:t,configurable:!0});function xD(e,t){let a=Ka.createContext(t);a.displayName=e+"Context";let r=$a(n=>{let{children:s,...i}=n,l=Ka.useMemo(()=>i,Object.values(i));return(0,sh.jsx)(a.Provider,{value:l,children:s})},"Provider");r.displayName=e+"Provider";function o(n,s={}){let{optional:i=!1}=s,l=Ka.useContext(a);if(l)return l;if(t!==void 0)return t;if(!i)throw new Error(`\`${n}\` must be used within \`${e}\``)}return $a(o,"useContext"),[r,o]}$a(xD,"createContext");function ut(e,t=[]){let a=[];function r(n,s){let i=Ka.createContext(s);i.displayName=n+"Context";let l=a.length;a=[...a,s];let u=$a(d=>{let{scope:f,children:h,...v}=d,x=f?.[e]?.[l]||i,w=Ka.useMemo(()=>v,Object.values(v));return(0,sh.jsx)(x.Provider,{value:w,children:h})},"Provider");u.displayName=n+"Provider";function c(d,f,h={}){let{optional:v=!1}=h,x=f?.[e]?.[l]||i,w=Ka.useContext(x);if(w)return w;if(s!==void 0)return s;if(!v)throw new Error(`\`${d}\` must be used within \`${n}\``)}return $a(c,"useContext"),[u,c]}$a(r,"createContext");let o=$a(()=>{let n=a.map(s=>Ka.createContext(s));return $a(function(i){let l=i?.[e]||n;return Ka.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])},"useScope")},"createScope");return o.scopeName=e,[r,zC(o,...t)]}$a(ut,"createContextScope");function zC(...e){let t=e[0];if(e.length===1)return t;let a=$a(()=>{let r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return $a(function(n){let s=r.reduce((i,{useScope:l,scopeName:u})=>{let d=l(n)[`__scope${u}`];return{...i,...d}},{});return Ka.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])},"useComposedScopes")},"createScope");return a.scopeName=t.scopeName,a}$a(zC,"composeContextScopes");var cr=F(ee(),1);var pc=F(fe(),1),Sa=F(ee(),1);var Bn=F(fe(),1),yD=Object.defineProperty,_t=(e,t)=>yD(e,"name",{value:t,configurable:!0});function Un(e){let t=e+"CollectionProvider",[a,r]=ut(t),[o,n]=a(t,{collectionRef:{current:null},itemMap:new Map}),s=_t(x=>{let{scope:w,children:m}=x,p=cr.useRef(null),g=cr.useRef(new Map).current;return(0,pc.jsx)(o,{scope:w,itemMap:g,collectionRef:p,children:m})},"CollectionProvider");s.displayName=t;let i=e+"CollectionSlot",l=Ht(i),u=cr.forwardRef((x,w)=>{let{scope:m,children:p}=x,g=n(i,m),y=pe(w,g.collectionRef);return(0,pc.jsx)(l,{ref:y,children:p})});u.displayName=i;let c=e+"CollectionItemSlot",d="data-radix-collection-item",f=Ht(c),h=cr.forwardRef((x,w)=>{let{scope:m,children:p,...g}=x,y=cr.useRef(null),L=pe(w,y),b=n(c,m);return cr.useEffect(()=>(b.itemMap.set(y,{ref:y,...g}),()=>{b.itemMap.delete(y)})),(0,pc.jsx)(f,{[d]:"",ref:L,children:p})});h.displayName=c;function v(x){let w=n(e+"CollectionConsumer",x);return cr.useCallback(()=>{let p=w.collectionRef.current;if(!p)return[];let g=Array.from(p.querySelectorAll(`[${d}]`));return Array.from(w.itemMap.values()).sort((b,R)=>g.indexOf(b.ref.current)-g.indexOf(R.ref.current))},[w.collectionRef,w.itemMap])}return _t(v,"useCollection"),[{Provider:s,Slot:u,ItemSlot:h},v,r]}_t(Un,"createCollection");var BC=new WeakMap,ih=class rn extends Map{static{_t(this,"OrderedDict")}#e;constructor(t){super(t),this.#e=[...super.keys()],BC.set(this,!0)}set(t,a){return BC.get(this)&&(this.has(t)?this.#e[this.#e.indexOf(t)]=t:this.#e.push(t)),super.set(t,a),this}insert(t,a,r){let o=this.has(a),n=this.#e.length,s=uh(t),i=s>=0?s:n+s,l=i<0||i>=n?-1:i;if(l===this.size||o&&l===this.size-1||l===-1)return this.set(a,r),this;let u=this.size+(o?0:1);s<0&&i++;let c=[...this.#e],d,f=!1;for(let h=i;h<u;h++)if(i===h){let v=c[h];c[h]===a&&(v=c[h+1]),o&&this.delete(a),d=this.get(v),this.set(a,r)}else{!f&&c[h-1]===a&&(f=!0);let v=c[f?h:h-1],x=d;d=this.get(v),this.delete(v),this.set(v,x)}return this}with(t,a,r){let o=new rn(this);return o.insert(t,a,r),o}before(t){let a=this.#e.indexOf(t)-1;if(!(a<0))return this.entryAt(a)}setBefore(t,a,r){let o=this.#e.indexOf(t);return o===-1?this:this.insert(o,a,r)}after(t){let a=this.#e.indexOf(t);if(a=a===-1||a===this.size-1?-1:a+1,a!==-1)return this.entryAt(a)}setAfter(t,a,r){let o=this.#e.indexOf(t);return o===-1?this:this.insert(o+1,a,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(t){let a=super.delete(t);return a&&this.#e.splice(this.#e.indexOf(t),1),a}deleteAt(t){let a=this.keyAt(t);return a!==void 0?this.delete(a):!1}at(t){let a=mc(this.#e,t);if(a!==void 0)return this.get(a)}entryAt(t){let a=mc(this.#e,t);if(a!==void 0)return[a,this.get(a)]}indexOf(t){return this.#e.indexOf(t)}keyAt(t){return mc(this.#e,t)}from(t,a){let r=this.indexOf(t);if(r===-1)return;let o=r+a;return o<0&&(o=0),o>=this.size&&(o=this.size-1),this.at(o)}keyFrom(t,a){let r=this.indexOf(t);if(r===-1)return;let o=r+a;return o<0&&(o=0),o>=this.size&&(o=this.size-1),this.keyAt(o)}find(t,a){let r=0;for(let o of this){if(Reflect.apply(t,a,[o,r,this]))return o;r++}}findIndex(t,a){let r=0;for(let o of this){if(Reflect.apply(t,a,[o,r,this]))return r;r++}return-1}filter(t,a){let r=[],o=0;for(let n of this)Reflect.apply(t,a,[n,o,this])&&r.push(n),o++;return new rn(r)}map(t,a){let r=[],o=0;for(let n of this)r.push([n[0],Reflect.apply(t,a,[n,o,this])]),o++;return new rn(r)}reduce(...t){let[a,r]=t,o=0,n=r??this.at(0);for(let s of this)o===0&&t.length===1?n=s:n=Reflect.apply(a,this,[n,s,o,this]),o++;return n}reduceRight(...t){let[a,r]=t,o=r??this.at(-1);for(let n=this.size-1;n>=0;n--){let s=this.at(n);n===this.size-1&&t.length===1?o=s:o=Reflect.apply(a,this,[o,s,n,this])}return o}toSorted(t){let a=[...this.entries()].sort(t);return new rn(a)}toReversed(){let t=new rn;for(let a=this.size-1;a>=0;a--){let r=this.keyAt(a),o=this.get(r);t.set(r,o)}return t}toSpliced(...t){let a=[...this.entries()];return a.splice(...t),new rn(a)}slice(t,a){let r=new rn,o=this.size-1;if(t===void 0)return r;t<0&&(t=t+this.size),a!==void 0&&a>0&&(o=a-1);for(let n=t;n<=o;n++){let s=this.keyAt(n),i=this.get(s);r.set(s,i)}return r}every(t,a){let r=0;for(let o of this){if(!Reflect.apply(t,a,[o,r,this]))return!1;r++}return!0}some(t,a){let r=0;for(let o of this){if(Reflect.apply(t,a,[o,r,this]))return!0;r++}return!1}};function mc(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let a=UC(e,t);return a===-1?void 0:e[a]}_t(mc,"at");function UC(e,t){let a=e.length,r=uh(t),o=r>=0?r:a+r;return o<0||o>=a?-1:o}_t(UC,"toSafeIndex");function uh(e){return e!==e||e===0?0:Math.trunc(e)}_t(uh,"toSafeInteger");function wD(e){let t=e+"CollectionProvider",[a,r]=ut(t),[o,n]=a(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new ih,setItemMap:_t(()=>{},"setItemMap")}),s=_t(({state:g,...y})=>g?(0,Bn.jsx)(l,{...y,state:g}):(0,Bn.jsx)(i,{...y}),"CollectionProvider");s.displayName=t;let i=_t(g=>{let y=w();return(0,Bn.jsx)(l,{...g,state:y})},"CollectionInit");i.displayName=t+"Init";let l=_t(g=>{let{scope:y,children:L,state:b}=g,R=Sa.useRef(null),[k,M]=Sa.useState(null),E=pe(R,M),[O,T]=b;return Sa.useEffect(()=>{if(!k)return;let _=VC(()=>{});return _.observe(k,{childList:!0,subtree:!0}),()=>{_.disconnect()}},[k]),(0,Bn.jsx)(o,{scope:y,itemMap:O,setItemMap:T,collectionRef:E,collectionRefObject:R,collectionElement:k,children:L})},"CollectionProviderImpl");l.displayName=t+"Impl";let u=e+"CollectionSlot",c=Ht(u),d=Sa.forwardRef((g,y)=>{let{scope:L,children:b}=g,R=n(u,L),k=pe(y,R.collectionRef);return(0,Bn.jsx)(c,{ref:k,children:b})});d.displayName=u;let f=e+"CollectionItemSlot",h="data-radix-collection-item",v=Ht(f),x=Sa.forwardRef((g,y)=>{let{scope:L,children:b,...R}=g,k=Sa.useRef(null),[M,E]=Sa.useState(null),O=pe(y,k,E),T=n(f,L),{setItemMap:_}=T,A=Sa.useRef(R);HC(A.current,R)||(A.current=R);let N=A.current;return Sa.useEffect(()=>{let z=N;return _(H=>M?H.has(M)?H.set(M,{...z,element:M}).toSorted(lh):(H.set(M,{...z,element:M}),H.toSorted(lh)):H),()=>{_(H=>!M||!H.has(M)?H:(H.delete(M),new ih(H)))}},[M,N,_]),(0,Bn.jsx)(v,{[h]:"",ref:O,children:b})});x.displayName=f;function w(){return Sa.useState(new ih)}_t(w,"useInitCollection");function m(g){let{itemMap:y}=n(e+"CollectionConsumer",g);return y}return _t(m,"useCollection"),[{Provider:s,Slot:d,ItemSlot:x},{createCollectionScope:r,useCollection:m,useInitCollection:w}]}_t(wD,"createCollection");function HC(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;let a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(let o of a)if(!Object.prototype.hasOwnProperty.call(t,o)||e[o]!==t[o])return!1;return!0}_t(HC,"shallowEqual");function jC(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}_t(jC,"isElementPreceding");function lh(e,t){return!e[1].element||!t[1].element?0:jC(e[1].element,t[1].element)?-1:1}_t(lh,"sortByDocumentPosition");function VC(e){return new MutationObserver(a=>{for(let r of a)if(r.type==="childList"){e();return}})}_t(VC,"getChildListObserver");var CD=Object.defineProperty,gi=(e,t)=>CD(e,"name",{value:t,configurable:!0}),qC=!!(typeof window<"u"&&window.document&&window.document.createElement);function $(e,t,{checkForDefaultPrevented:a=!0}={}){return gi(function(o){if(e?.(o),a===!1||!o||!o.defaultPrevented)return t?.(o)},"handleEvent")}gi($,"composeEventHandlers");function SD(e){if(!qC)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}gi(SD,"getOwnerWindow");function dh(e){if(!qC)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}gi(dh,"getOwnerDocument");function WC(e,t=!1){let{activeElement:a}=dh(e);if(!a?.nodeName)return null;if(GC(a)&&a.contentDocument)return WC(a.contentDocument.body,t);if(t){let r=a.getAttribute("aria-activedescendant");if(r){let o=dh(a).getElementById(r);if(o)return o}}return a}gi(WC,"getActiveElement");function GC(e){return e.tagName==="IFRAME"}gi(GC,"isFrame");var Xa=F(ee(),1);var hc=!1;var $C=F(ee(),1),Ue=globalThis?.document?$C.useLayoutEffect:()=>{};var fr=F(ee(),1);var vi=F(ee(),1),LD=Object.defineProperty,ID=(e,t)=>LD(e,"name",{value:t,configurable:!0}),KC=vi[" useEffectEvent ".trim().toString()],XC=vi[" useInsertionEffect ".trim().toString()];function ch(e){if(typeof KC=="function")return KC(e);let t=vi.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof XC=="function"?XC(()=>{t.current=e}):Ue(()=>{t.current=e}),vi.useMemo(()=>((...a)=>t.current?.(...a)),[])}ID(ch,"useEffectEvent");var bD=Object.defineProperty,au=(e,t)=>bD(e,"name",{value:t,configurable:!0}),kD=Xa[" useInsertionEffect ".trim().toString()]||Ue;function la({prop:e,defaultProp:t,onChange:a=au(()=>{},"onChange"),caller:r}){let[o,n,s]=QC({defaultProp:t,onChange:a}),i=e!==void 0,l=i?e:o;if(hc){let c=Xa.useRef(e!==void 0);Xa.useEffect(()=>{let d=c.current;d!==i&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${i?"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.`),c.current=i},[i,r])}let u=Xa.useCallback(c=>{if(i){let d=YC(c)?c(e):c;d!==e&&s.current?.(d)}else n(c)},[i,e,n,s]);return[l,u]}au(la,"useControllableState");function QC({defaultProp:e,onChange:t}){let[a,r]=Xa.useState(e),o=Xa.useRef(a),n=Xa.useRef(t);return kD(()=>{n.current=t},[t]),Xa.useEffect(()=>{o.current!==a&&(n.current?.(a),o.current=a)},[a,o]),[a,r,n]}au(QC,"useUncontrolledState");function YC(e){return typeof e=="function"}au(YC,"isFunction");var ZC=Symbol("RADIX:SYNC_STATE");function RD(e,t,a,r){let{prop:o,defaultProp:n,onChange:s,caller:i}=t,l=o!==void 0,u=ch(s);if(hc){let w=fr.useRef(o!==void 0);fr.useEffect(()=>{let m=w.current;m!==l&&console.warn(`${i} is changing from ${m?"controlled":"uncontrolled"} to ${l?"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.`),w.current=l},[l,i])}let c=[{...a,state:n}];r&&c.push(r);let[d,f]=fr.useReducer((w,m)=>{if(m.type===ZC)return{...w,state:m.state};let p=e(w,m);return l&&!Object.is(p.state,w.state)&&u(p.state),p},...c),h=d.state,v=fr.useRef(h);fr.useEffect(()=>{v.current!==h&&(v.current=h,l||u(h))},[h,v,l]);let x=fr.useMemo(()=>o!==void 0?{...d,state:o}:d,[d,o]);return fr.useEffect(()=>{l&&!Object.is(o,d.state)&&f({type:ZC,state:o})},[o,d.state,l]),[x,f]}au(RD,"useControllableStateReducer");var jt=F(ee(),1);var JC=F(ee(),1),PD=Object.defineProperty,ho=(e,t)=>PD(e,"name",{value:t,configurable:!0});function eS(e,t){return JC.useReducer((a,r)=>t[a][r]??a,e)}ho(eS,"useStateMachine");var ua=ho(e=>{let{present:t,children:a}=e,r=tS(t),o=typeof a=="function"?a({present:r.isPresent}):jt.Children.only(a),n=aS(r.ref,rS(o));return typeof a=="function"||r.isPresent?jt.cloneElement(o,{ref:n}):null},"Presence");function tS(e){let[t,a]=jt.useState(),r=jt.useRef(null),o=jt.useRef(e),n=jt.useRef("none"),s=jt.useRef(void 0),i=e?"mounted":"unmounted",[l,u]=eS(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return jt.useEffect(()=>{l==="mounted"?(n.current=s.current??xi(r.current),s.current=void 0):n.current="none"},[l]),Ue(()=>{let c=r.current,d=o.current;if(d!==e){let h=n.current,v=xi(c);e?(s.current=v,u("MOUNT")):v==="none"||c?.display==="none"?u("UNMOUNT"):u(d&&h!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),Ue(()=>{if(t){let c,d=t.ownerDocument.defaultView??window,f=ho(v=>{let w=xi(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&w&&(u("ANIMATION_END"),!o.current)){let m=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},"handleAnimationEnd"),h=ho(v=>{v.target===t&&(n.current=xi(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:jt.useCallback(c=>{if(c){let d=getComputedStyle(c);r.current=d,s.current=xi(d)}else r.current=null;a(c)},[])}}ho(tS,"usePresence");function fh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}ho(fh,"setRef");function aS(...e){let t=jt.useRef(e);return t.current=e,jt.useCallback(a=>{let r=t.current,o=!1,n=r.map(s=>{let i=fh(s,a);return!o&&typeof i=="function"&&(o=!0),i});if(o)return()=>{for(let s=0;s<n.length;s++){let i=n[s];typeof i=="function"?i():fh(r[s],null)}}},[])}ho(aS,"useStableComposedRefs");function xi(e){return e?.animationName||"none"}ho(xi,"getAnimationName");function rS(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}ho(rS,"getElementRef");var ph=F(ee(),1);var DD=Object.defineProperty,TD=(e,t)=>DD(e,"name",{value:t,configurable:!0}),MD=ph[" useId ".trim().toString()]||(()=>{}),_D=0;function bt(e){let[t,a]=ph.useState(MD());return Ue(()=>{e||a(r=>r??String(_D++))},[e]),e||(t?`radix-${t}`:"")}TD(bt,"useId");var gc=F(ee(),1),OD=F(fe(),1),AD=Object.defineProperty,ED=(e,t)=>AD(e,"name",{value:t,configurable:!0}),ND=gc.createContext(void 0);function go(e){let t=gc.useContext(ND);return e||t||"ltr"}ED(go,"useDirection");var mr={};_o(mr,{Close:()=>FT,Content:()=>DT,Description:()=>OT,Dialog:()=>CT,DialogClose:()=>FT,DialogContent:()=>DT,DialogDescription:()=>OT,DialogOverlay:()=>kT,DialogPortal:()=>bT,DialogTitle:()=>AT,DialogTrigger:()=>LT,Overlay:()=>kT,Portal:()=>bT,Root:()=>CT,Title:()=>AT,Trigger:()=>LT,WarningProvider:()=>zT,createDialogScope:()=>yT});var Ze=F(ee(),1);var Ge=F(ee(),1);var yi=F(ee(),1),FD=Object.defineProperty,zD=(e,t)=>FD(e,"name",{value:t,configurable:!0});function ct(e){let t=yi.useRef(e);return yi.useEffect(()=>{t.current=e}),yi.useMemo(()=>((...a)=>t.current?.(...a)),[])}zD(ct,"useCallbackRef");var nS=F(fe(),1),BD=Object.defineProperty,At=(e,t)=>BD(e,"name",{value:t,configurable:!0}),mh="dismissableLayer.update",UD="dismissableLayer.pointerDownOutside",HD="dismissableLayer.focusOutside",oS,sS=Ge.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),wi=Ge.forwardRef(At(function(t,a){let{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:l,onDismiss:u,...c}=t,d=Ge.useContext(sS),[f,h]=Ge.useState(null),v=f?.ownerDocument??globalThis?.document,[,x]=Ge.useState({}),w=pe(a,h),m=Array.from(d.layers),[p]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),g=p?m.indexOf(p):-1,y=f?m.indexOf(f):-1,L=d.layersWithOutsidePointerEventsDisabled.size>0,b=y>=g,R=Ge.useRef(!1),k=iS(T=>{s?.(T),l?.(T),T.defaultPrevented||u?.()},{ownerDocument:v,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:R,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:Ge.useCallback(T=>{if(!(T instanceof Node))return!1;let _=[...d.branches].some(A=>A.contains(T));return b&&!_},[d.branches,b])}),M=lS(T=>{if(o&&R.current)return;let _=T.target;[...d.branches].some(N=>N.contains(_))||(i?.(T),l?.(T),T.defaultPrevented||u?.())},v),E=f?y===m.length-1:!1,O=ct(T=>{T.key==="Escape"&&(n?.(T),!T.defaultPrevented&&u&&(T.preventDefault(),u()))});return Ge.useEffect(()=>{if(E)return v.addEventListener("keydown",O,{capture:!0}),()=>v.removeEventListener("keydown",O,{capture:!0})},[v,E,O]),Ge.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(oS=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),hh(),()=>{r&&(d.layersWithOutsidePointerEventsDisabled.delete(f),d.layersWithOutsidePointerEventsDisabled.size===0&&(v.body.style.pointerEvents=oS))}},[f,v,r,d]),Ge.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),hh())},[f,d]),Ge.useEffect(()=>{let T=At(()=>x({}),"handleUpdate");return document.addEventListener(mh,T),()=>document.removeEventListener(mh,T)},[]),(0,nS.jsx)(se.div,{...c,ref:w,style:{pointerEvents:L?b?"auto":"none":void 0,...t.style},onFocusCapture:$(t.onFocusCapture,M.onFocusCapture),onBlurCapture:$(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:$(t.onPointerDownCapture,k.onPointerDownCapture)})},"DismissableLayer"));function gh(){let e=Ge.useContext(sS),[t,a]=Ge.useState(null);return Ge.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),a}At(gh,"useDismissableLayerSurface");var jD=At(()=>!0,"IS_TRUE");function iS(e,t){let{ownerDocument:a=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:n,shouldHandlePointerDownOutside:s=jD}=t,i=ct(e),l=Ge.useRef(!1),u=Ge.useRef(!1),c=Ge.useRef(new Map),d=Ge.useRef(()=>{});return Ge.useEffect(()=>{function f(){u.current=!1,o.current=!1,c.current.clear()}At(f,"resetOutsideInteraction");function h(){return Array.from(c.current.values()).some(Boolean)}At(h,"isOutsideInteractionIntercepted");function v(g){if(!u.current)return;let y=g.target;y instanceof Node&&[...n].some(b=>b.contains(y))||c.current.set(g.type,!0),g.type==="click"&&window.setTimeout(()=>{u.current&&d.current()},0)}At(v,"handleInteractionCapture");function x(g){u.current&&c.current.set(g.type,!1)}At(x,"handleInteractionBubble");let w=At(g=>{if(g.target&&!l.current){let L=function(){a.removeEventListener("click",d.current);let R=h();f(),R||vh(UD,i,b,{discrete:!0})};var y=L;if(At(L,"handleAndDispatchPointerDownOutsideEvent"),!s(g.target)){a.removeEventListener("click",d.current),f(),l.current=!1;return}let b={originalEvent:g};u.current=!0,o.current=r&&g.button===0,c.current.clear(),!r||g.button!==0?L():(a.removeEventListener("click",d.current),d.current=L,a.addEventListener("click",d.current,{once:!0}))}else a.removeEventListener("click",d.current),f();l.current=!1},"handlePointerDown"),m=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let g of m)a.addEventListener(g,v,!0),a.addEventListener(g,x);let p=window.setTimeout(()=>{a.addEventListener("pointerdown",w)},0);return()=>{window.clearTimeout(p),a.removeEventListener("pointerdown",w),a.removeEventListener("click",d.current);for(let g of m)a.removeEventListener(g,v,!0),a.removeEventListener(g,x)}},[a,i,r,o,n,s]),{onPointerDownCapture:At(()=>l.current=!0,"onPointerDownCapture")}}At(iS,"usePointerDownOutside");function lS(e,t=globalThis?.document){let a=ct(e),r=Ge.useRef(!1);return Ge.useEffect(()=>{let o=At(n=>{n.target&&!r.current&&vh(HD,a,{originalEvent:n},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,a]),{onFocusCapture:At(()=>r.current=!0,"onFocusCapture"),onBlurCapture:At(()=>r.current=!1,"onBlurCapture")}}At(lS,"useFocusOutside");function hh(){let e=new CustomEvent(mh);document.dispatchEvent(e)}At(hh,"dispatchUpdate");function vh(e,t,a,{discrete:r}){let o=a.originalEvent.target,n=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});t&&o.addEventListener(e,t,{once:!0}),r?tu(o,n):o.dispatchEvent(n)}At(vh,"handleAndDispatchCustomEvent");var Za=F(ee(),1);var cS=F(fe(),1),VD=Object.defineProperty,da=(e,t)=>VD(e,"name",{value:t,configurable:!0}),xh="focusScope.autoFocusOnMount",yh="focusScope.autoFocusOnUnmount",uS={bubbles:!1,cancelable:!0},Ci=Za.forwardRef(da(function(t,a){let{loop:r=!1,trapped:o=!1,onMountAutoFocus:n,onUnmountAutoFocus:s,...i}=t,[l,u]=Za.useState(null),c=ct(n),d=ct(s),f=Za.useRef(null),h=pe(a,u),v=Za.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Za.useEffect(()=>{if(o){let g=function(R){if(v.paused||!l)return;let k=R.target;l.contains(k)?f.current=k:vo(f.current,{select:!0})},y=function(R){if(v.paused||!l)return;let k=R.relatedTarget;k!==null&&(l.contains(k)||vo(f.current,{select:!0}))},L=function(R){if(document.activeElement===document.body)for(let M of R)M.removedNodes.length>0&&vo(l)};var w=g,m=y,p=L;da(g,"handleFocusIn"),da(y,"handleFocusOut"),da(L,"handleMutations"),document.addEventListener("focusin",g),document.addEventListener("focusout",y);let b=new MutationObserver(L);return l&&b.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",y),b.disconnect()}}},[o,l,v.paused]),Za.useEffect(()=>{if(l){dS.add(v);let w=document.activeElement;if(!l.contains(w)){let p=new CustomEvent(xh,uS);l.addEventListener(xh,c),l.dispatchEvent(p),p.defaultPrevented||(fS(vS(Sh(l)),{select:!0}),document.activeElement===w&&vo(l))}return()=>{l.removeEventListener(xh,c),setTimeout(()=>{let p=new CustomEvent(yh,uS);l.addEventListener(yh,d),l.dispatchEvent(p),p.defaultPrevented||vo(w??document.body,{select:!0}),l.removeEventListener(yh,d),dS.remove(v)},0)}}},[l,c,d,v]);let x=Za.useCallback(w=>{if(!r&&!o||v.paused)return;let m=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,p=document.activeElement;if(m&&p){let g=w.currentTarget,[y,L]=pS(g);y&&L?!w.shiftKey&&p===L?(w.preventDefault(),r&&vo(y,{select:!0})):w.shiftKey&&p===y&&(w.preventDefault(),r&&vo(L,{select:!0})):p===g&&w.preventDefault()}},[r,o,v.paused]);return(0,cS.jsx)(se.div,{tabIndex:-1,...i,ref:h,onKeyDown:x})},"FocusScope"));function fS(e,{select:t=!1}={}){let a=document.activeElement;for(let r of e)if(vo(r,{select:t}),document.activeElement!==a)return}da(fS,"focusFirst");function pS(e){let t=Sh(e),a=wh(t,e),r=wh(t.reverse(),e);return[a,r]}da(pS,"getTabbableEdges");function Sh(e){let t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:da(r=>{let o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;a.nextNode();)t.push(a.currentNode);return t}da(Sh,"getTabbableCandidates");function wh(e,t){let a=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(a?!r.checkVisibility({checkVisibilityCSS:!0}):mS(r,{upTo:t})))return r}da(wh,"findVisible");function mS(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}da(mS,"isHidden");function hS(e){return e instanceof HTMLInputElement&&"select"in e}da(hS,"isSelectableInput");function vo(e,{select:t=!1}={}){if(e&&e.focus){let a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&hS(e)&&t&&e.select()}}da(vo,"focus");var dS=gS();function gS(){let e=[];return{add(t){let a=e[0];t!==a&&a?.pause(),e=Ch(e,t),e.unshift(t)},remove(t){e=Ch(e,t),e[0]?.resume()}}}da(gS,"createFocusScopesStack");function Ch(e,t){let a=[...e],r=a.indexOf(t);return r!==-1&&a.splice(r,1),a}da(Ch,"arrayRemove");function vS(e){return e.filter(t=>t.tagName!=="A")}da(vS,"removeLinks");var vc=F(ee(),1),xS=F(hi(),1);var yS=F(fe(),1),qD=Object.defineProperty,WD=(e,t)=>qD(e,"name",{value:t,configurable:!0}),Si=vc.forwardRef(WD(function(t,a){let{container:r,...o}=t,[n,s]=vc.useState(!1);Ue(()=>s(!0),[]);let i=r||n&&globalThis?.document?.body;return i?xS.createPortal((0,yS.jsx)(se.div,{...o,ref:a}),i):null},"Portal"));var wS=F(ee(),1),GD=Object.defineProperty,Ih=(e,t)=>GD(e,"name",{value:t,configurable:!0}),xc=0,Li=null;function $D(e){return on(),e.children}Ih($D,"FocusGuards");function on(){wS.useEffect(()=>{Li||(Li={start:Lh(),end:Lh()});let{start:e,end:t}=Li;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),xc++,()=>{xc===1&&(Li?.start.remove(),Li?.end.remove(),Li=null),xc=Math.max(0,xc-1)}},[])}Ih(on,"useFocusGuards");function Lh(){let 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}Ih(Lh,"createFocusGuard");var La=function(){return La=Object.assign||function(t){for(var a,r=1,o=arguments.length;r<o;r++){a=arguments[r];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t},La.apply(this,arguments)};function yc(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(a[r[o]]=e[r[o]]);return a}function CS(e,t,a){if(a||arguments.length===2)for(var r=0,o=t.length,n;r<o;r++)(n||!(r in t))&&(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}var Ic=F(ee());var Qt=F(ee());var Hn="right-scroll-bar-position",jn="width-before-scroll-bar",bh="with-scroll-bars-hidden",kh="--removed-body-scroll-bar-size";function wc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}var SS=F(ee());function LS(e,t){var a=(0,SS.useState)(function(){return{value:e,callback:t,facade:{get current(){return a.value},set current(r){var o=a.value;o!==r&&(a.value=r,a.callback(r,o))}}}})[0];return a.callback=t,a.facade}var Cc=F(ee());var KD=typeof window<"u"?Cc.useLayoutEffect:Cc.useEffect,IS=new WeakMap;function Rh(e,t){var a=LS(t||null,function(r){return e.forEach(function(o){return wc(o,r)})});return KD(function(){var r=IS.get(a);if(r){var o=new Set(r),n=new Set(e),s=a.current;o.forEach(function(i){n.has(i)||wc(i,null)}),n.forEach(function(i){o.has(i)||wc(i,s)})}IS.set(a,e)},[e]),a}function XD(e){return e}function ZD(e,t){t===void 0&&(t=XD);var a=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:e},useMedium:function(n){var s=t(n,r);return a.push(s),function(){a=a.filter(function(i){return i!==s})}},assignSyncMedium:function(n){for(r=!0;a.length;){var s=a;a=[],s.forEach(n)}a={push:function(i){return n(i)},filter:function(){return a}}},assignMedium:function(n){r=!0;var s=[];if(a.length){var i=a;a=[],i.forEach(n),s=a}var l=function(){var c=s;s=[],c.forEach(n)},u=function(){return Promise.resolve().then(l)};u(),a={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),a}}}};return o}function Ph(e){e===void 0&&(e={});var t=ZD(null);return t.options=La({async:!0,ssr:!1},e),t}var bS=F(ee()),kS=function(e){var t=e.sideCar,a=yc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return bS.createElement(r,La({},a))};kS.isSideCarExport=!0;function Dh(e,t){return e.useMedium(t),kS}var Sc=Ph();var Th=function(){},ru=Qt.forwardRef(function(e,t){var a=Qt.useRef(null),r=Qt.useState({onScrollCapture:Th,onWheelCapture:Th,onTouchMoveCapture:Th}),o=r[0],n=r[1],s=e.forwardProps,i=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,h=e.noRelative,v=e.noIsolation,x=e.inert,w=e.allowPinchZoom,m=e.as,p=m===void 0?"div":m,g=e.gapMode,y=yc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=f,b=Rh([a,t]),R=La(La({},y),o);return Qt.createElement(Qt.Fragment,null,c&&Qt.createElement(L,{sideCar:Sc,removeScrollBar:u,shards:d,noRelative:h,noIsolation:v,inert:x,setCallbacks:n,allowPinchZoom:!!w,lockRef:a,gapMode:g}),s?Qt.cloneElement(Qt.Children.only(i),La(La({},R),{ref:b})):Qt.createElement(p,La({},R,{className:l,ref:b}),i))});ru.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ru.classNames={fullWidth:jn,zeroRight:Hn};var Je=F(ee());var bi=F(ee());var DS=F(ee());var RS;var PS=function(){if(RS)return RS;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function QD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=PS();return t&&e.setAttribute("nonce",t),e}function YD(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function JD(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Mh=function(){var e=0,t=null;return{add:function(a){e==0&&(t=QD())&&(YD(t,a),JD(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var _h=function(){var e=Mh();return function(t,a){DS.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&a])}};var ou=function(){var e=_h(),t=function(a){var r=a.styles,o=a.dynamic;return e(r,o),null};return t};var eT={left:0,top:0,right:0,gap:0},Ah=function(e){return parseInt(e||"",10)||0},tT=function(e){var t=window.getComputedStyle(document.body),a=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ah(a),Ah(r),Ah(o)]},Eh=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return eT;var t=tT(e),a=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-a+t[2]-t[0])}};var aT=ou(),Ii="data-scroll-locked",rT=function(e,t,a,r){var o=e.left,n=e.top,s=e.right,i=e.gap;return a===void 0&&(a="margin"),`
64
+ .`.concat(bh,` {
127
65
  overflow: hidden `).concat(r,`;
128
66
  padding-right: `).concat(i,"px ").concat(r,`;
129
67
  }
130
- body[`).concat(ti,`] {
68
+ body[`).concat(Ii,`] {
131
69
  overflow: hidden `).concat(r,`;
132
70
  overscroll-behavior: contain;
133
71
  `).concat([t&&"position: relative ".concat(r,";"),a==="margin"&&`
@@ -140,28 +78,90 @@ Record risks, blockers, and support needed.
140
78
  `),a==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
141
79
  }
142
80
 
143
- .`).concat(Cn,` {
81
+ .`).concat(Hn,` {
144
82
  right: `).concat(i,"px ").concat(r,`;
145
83
  }
146
84
 
147
- .`).concat(Sn,` {
85
+ .`).concat(jn,` {
148
86
  margin-right: `).concat(i,"px ").concat(r,`;
149
87
  }
150
88
 
151
- .`).concat(Cn," .").concat(Cn,` {
89
+ .`).concat(Hn," .").concat(Hn,` {
152
90
  right: 0 `).concat(r,`;
153
91
  }
154
92
 
155
- .`).concat(Sn," .").concat(Sn,` {
93
+ .`).concat(jn," .").concat(jn,` {
156
94
  margin-right: 0 `).concat(r,`;
157
95
  }
158
96
 
159
- body[`).concat(ti,`] {
160
- `).concat(lh,": ").concat(i,`px;
97
+ body[`).concat(Ii,`] {
98
+ `).concat(kh,": ").concat(i,`px;
161
99
  }
162
- `)},oS=function(){var e=parseInt(document.body.getAttribute(ti)||"0",10);return isFinite(e)?e:0},wT=function(){ai.useEffect(function(){return document.body.setAttribute(ti,(oS()+1).toString()),function(){var e=oS()-1;e<=0?document.body.removeAttribute(ti):document.body.setAttribute(ti,e.toString())}},[])},vh=function(e){var t=e.noRelative,a=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;wT();var n=ai.useMemo(function(){return gh(o)},[o]);return ai.createElement(xT,{styles:yT(n,!t,o,a?"":"!important")})};var xh=!1;if(typeof window<"u")try{El=Object.defineProperty({},"passive",{get:function(){return xh=!0,!0}}),window.addEventListener("test",El,El),window.removeEventListener("test",El,El)}catch{xh=!1}var El,Ln=xh?{passive:!1}:!1;var CT=function(e){return e.tagName==="TEXTAREA"},nS=function(e,t){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[t]!=="hidden"&&!(a.overflowY===a.overflowX&&!CT(e)&&a[t]==="visible")},ST=function(e){return nS(e,"overflowY")},LT=function(e){return nS(e,"overflowX")},yh=function(e,t){var a=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=sS(e,r);if(o){var n=iS(e,r),s=n[1],i=n[2];if(s>i)return!0}r=r.parentNode}while(r&&r!==a.body);return!1},IT=function(e){var t=e.scrollTop,a=e.scrollHeight,r=e.clientHeight;return[t,a,r]},bT=function(e){var t=e.scrollLeft,a=e.scrollWidth,r=e.clientWidth;return[t,a,r]},sS=function(e,t){return e==="v"?ST(t):LT(t)},iS=function(e,t){return e==="v"?IT(t):bT(t)},kT=function(e,t){return e==="h"&&t==="rtl"?-1:1},lS=function(e,t,a,r,o){var n=kT(e,window.getComputedStyle(t).direction),s=n*r,i=a.target,l=t.contains(i),u=!1,d=s>0,c=0,f=0;do{if(!i)break;var h=iS(e,i),v=h[0],x=h[1],w=h[2],p=x-w-n*v;(v||p)&&sS(e,i)&&(c+=p,f+=v);var m=i.parentNode;i=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(d&&(o&&Math.abs(c)<1||!o&&s>c)||!d&&(o&&Math.abs(f)<1||!o&&-s>f))&&(u=!0),u};var ec=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},uS=function(e){return[e.deltaX,e.deltaY]},dS=function(e){return e&&"current"in e?e.current:e},RT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},PT=function(e){return`
100
+ `)},TS=function(){var e=parseInt(document.body.getAttribute(Ii)||"0",10);return isFinite(e)?e:0},oT=function(){bi.useEffect(function(){return document.body.setAttribute(Ii,(TS()+1).toString()),function(){var e=TS()-1;e<=0?document.body.removeAttribute(Ii):document.body.setAttribute(Ii,e.toString())}},[])},Oh=function(e){var t=e.noRelative,a=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;oT();var n=bi.useMemo(function(){return Eh(o)},[o]);return bi.createElement(aT,{styles:rT(n,!t,o,a?"":"!important")})};var Nh=!1;if(typeof window<"u")try{nu=Object.defineProperty({},"passive",{get:function(){return Nh=!0,!0}}),window.addEventListener("test",nu,nu),window.removeEventListener("test",nu,nu)}catch{Nh=!1}var nu,Vn=Nh?{passive:!1}:!1;var nT=function(e){return e.tagName==="TEXTAREA"},MS=function(e,t){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[t]!=="hidden"&&!(a.overflowY===a.overflowX&&!nT(e)&&a[t]==="visible")},sT=function(e){return MS(e,"overflowY")},iT=function(e){return MS(e,"overflowX")},Fh=function(e,t){var a=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=_S(e,r);if(o){var n=AS(e,r),s=n[1],i=n[2];if(s>i)return!0}r=r.parentNode}while(r&&r!==a.body);return!1},lT=function(e){var t=e.scrollTop,a=e.scrollHeight,r=e.clientHeight;return[t,a,r]},uT=function(e){var t=e.scrollLeft,a=e.scrollWidth,r=e.clientWidth;return[t,a,r]},_S=function(e,t){return e==="v"?sT(t):iT(t)},AS=function(e,t){return e==="v"?lT(t):uT(t)},dT=function(e,t){return e==="h"&&t==="rtl"?-1:1},ES=function(e,t,a,r,o){var n=dT(e,window.getComputedStyle(t).direction),s=n*r,i=a.target,l=t.contains(i),u=!1,c=s>0,d=0,f=0;do{if(!i)break;var h=AS(e,i),v=h[0],x=h[1],w=h[2],m=x-w-n*v;(v||m)&&_S(e,i)&&(d+=m,f+=v);var p=i.parentNode;i=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(c&&(o&&Math.abs(d)<1||!o&&s>d)||!c&&(o&&Math.abs(f)<1||!o&&-s>f))&&(u=!0),u};var Lc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},OS=function(e){return[e.deltaX,e.deltaY]},NS=function(e){return e&&"current"in e?e.current:e},cT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},fT=function(e){return`
163
101
  .block-interactivity-`.concat(e,` {pointer-events: none;}
164
102
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
165
- `)},TT=0,ri=[];function cS(e){var t=$e.useRef([]),a=$e.useRef([0,0]),r=$e.useRef(),o=$e.useState(TT++)[0],n=$e.useState(Al)[0],s=$e.useRef(e);$e.useEffect(function(){s.current=e},[e]),$e.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var x=XC([e.lockRef.current],(e.shards||[]).map(dS),!0).filter(Boolean);return x.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),x.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=$e.useCallback(function(x,w){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!s.current.allowPinchZoom;var p=ec(x),m=a.current,g="deltaX"in x?x.deltaX:m[0]-p[0],y="deltaY"in x?x.deltaY:m[1]-p[1],C,I=x.target,k=Math.abs(g)>Math.abs(y)?"h":"v";if("touches"in x&&k==="h"&&I.type==="range")return!1;var b=window.getSelection(),T=b&&b.anchorNode,A=T?T===I||T.contains(I):!1;if(A)return!1;var D=yh(k,I);if(!D)return!0;if(D?C=k:(C=k==="v"?"h":"v",D=yh(k,I)),!D)return!1;if(!r.current&&"changedTouches"in x&&(g||y)&&(r.current=C),!C)return!0;var E=r.current||C;return lS(E,w,x,E==="h"?g:y,!0)},[]),l=$e.useCallback(function(x){var w=x;if(!(!ri.length||ri[ri.length-1]!==n)){var p="deltaY"in w?uS(w):ec(w),m=t.current.filter(function(C){return C.name===w.type&&(C.target===w.target||w.target===C.shadowParent)&&RT(C.delta,p)})[0];if(m&&m.should){w.cancelable&&w.preventDefault();return}if(!m){var g=(s.current.shards||[]).map(dS).filter(Boolean).filter(function(C){return C.contains(w.target)}),y=g.length>0?i(w,g[0]):!s.current.noIsolation;y&&w.cancelable&&w.preventDefault()}}},[]),u=$e.useCallback(function(x,w,p,m){var g={name:x,delta:w,target:p,should:m,shadowParent:MT(p)};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(y){return y!==g})},1)},[]),d=$e.useCallback(function(x){a.current=ec(x),r.current=void 0},[]),c=$e.useCallback(function(x){u(x.type,uS(x),x.target,i(x,e.lockRef.current))},[]),f=$e.useCallback(function(x){u(x.type,ec(x),x.target,i(x,e.lockRef.current))},[]);$e.useEffect(function(){return ri.push(n),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Ln),document.addEventListener("touchmove",l,Ln),document.addEventListener("touchstart",d,Ln),function(){ri=ri.filter(function(x){return x!==n}),document.removeEventListener("wheel",l,Ln),document.removeEventListener("touchmove",l,Ln),document.removeEventListener("touchstart",d,Ln)}},[]);var h=e.removeScrollBar,v=e.inert;return $e.createElement($e.Fragment,null,v?$e.createElement(n,{styles:PT(o)}):null,h?$e.createElement(vh,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function MT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var fS=ch(Jd,cS);var pS=tc.forwardRef(function(e,t){return tc.createElement(_l,sa({},e,{ref:t,sideCar:fS}))});pS.classNames=_l.classNames;var In=pS;var DT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},oi=new WeakMap,ac=new WeakMap,rc={},wh=0,mS=function(e){return e&&(e.host||mS(e.parentNode))},_T=function(e,t){return t.map(function(a){if(e.contains(a))return a;var r=mS(a);return r&&e.contains(r)?r:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},AT=function(e,t,a,r){var o=_T(t,Array.isArray(e)?e:[e]);rc[a]||(rc[a]=new WeakMap);var n=rc[a],s=[],i=new Set,l=new Set(o),u=function(c){!c||i.has(c)||(i.add(c),u(c.parentNode))};o.forEach(u);var d=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(f){if(i.has(f))d(f);else try{var h=f.getAttribute(r),v=h!==null&&h!=="false",x=(oi.get(f)||0)+1,w=(n.get(f)||0)+1;oi.set(f,x),n.set(f,w),s.push(f),x===1&&v&&ac.set(f,!0),w===1&&f.setAttribute(a,"true"),v||f.setAttribute(r,"true")}catch(p){console.error("aria-hidden: cannot operate on ",f,p)}})};return d(t),i.clear(),wh++,function(){s.forEach(function(c){var f=oi.get(c)-1,h=n.get(c)-1;oi.set(c,f),n.set(c,h),f||(ac.has(c)||c.removeAttribute(r),ac.delete(c)),h||c.removeAttribute(a)}),wh--,wh||(oi=new WeakMap,oi=new WeakMap,ac=new WeakMap,rc={})}},ni=function(e,t,a){a===void 0&&(a="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||DT(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),AT(r,o,a,"aria-hidden")):function(){return null}};var Ye=N(ke(),1),ET=Object.defineProperty,ia=(e,t)=>ET(e,"name",{value:t,configurable:!0}),Sh="Dialog",[hS,OT]=at(Sh),[NT,qa]=hS(Sh),FT=ia(e=>{let{__scopeDialog:t,children:a,open:r,defaultOpen:o,onOpenChange:n,modal:s=!0}=e,i=qe.useRef(null),l=qe.useRef(null),[u,d]=Wt({prop:r,defaultProp:o??!1,onChange:n,caller:Sh}),[c,f]=qe.useState(0),[h,v]=qe.useState(0);return(0,Ye.jsx)(NT,{scope:t,triggerRef:i,contentRef:l,contentId:dt(),titleId:dt(),descriptionId:dt(),titlePresent:c>0,descriptionPresent:h>0,setTitleCount:f,setDescriptionCount:v,open:u,onOpenChange:d,onOpenToggle:qe.useCallback(()=>d(x=>!x),[d]),modal:s,children:a})},"Dialog"),zT="DialogTrigger",BT=qe.forwardRef(ia(function(t,a){let{__scopeDialog:r,...o}=t,n=qa(zT,r),s=he(a,n.triggerRef);return(0,Ye.jsx)(le.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.open?n.contentId:void 0,"data-state":oc(n.open),...o,ref:s,onClick:G(t.onClick,n.onOpenToggle)})},"DialogTrigger")),gS="DialogPortal",[UT,vS]=hS(gS,{forceMount:void 0}),HT=ia(e=>{let{__scopeDialog:t,forceMount:a,children:r,container:o}=e,n=qa(gS,t);return(0,Ye.jsx)(UT,{scope:t,forceMount:a,children:qe.Children.map(r,s=>(0,Ye.jsx)(Gt,{present:a||n.open,children:(0,Ye.jsx)(Js,{asChild:!0,container:o,children:s})}))})},"DialogPortal"),Ch="DialogOverlay",jT=qe.forwardRef(ia(function(t,a){let r=vS(Ch,t.__scopeDialog),{forceMount:o=r.forceMount,...n}=t,s=qa(Ch,t.__scopeDialog);return s.modal?(0,Ye.jsx)(Gt,{present:o||s.open,children:(0,Ye.jsx)(qT,{...n,ref:a})}):null},"DialogOverlay")),VT=bt("DialogOverlay.RemoveScroll"),qT=qe.forwardRef(ia(function(t,a){let{__scopeDialog:r,...o}=t,n=qa(Ch,r),s=Ym(),i=he(a,s);return(0,Ye.jsx)(In,{as:VT,allowPinchZoom:!0,shards:[n.contentRef],children:(0,Ye.jsx)(le.div,{"data-state":oc(n.open),...o,ref:i,style:{pointerEvents:"auto",...o.style}})})},"DialogOverlayImpl")),Ol="DialogContent",WT=qe.forwardRef(ia(function(t,a){let r=vS(Ol,t.__scopeDialog),{forceMount:o=r.forceMount,...n}=t,s=qa(Ol,t.__scopeDialog);return(0,Ye.jsx)(Gt,{present:o||s.open,children:s.modal?(0,Ye.jsx)(GT,{...n,ref:a}):(0,Ye.jsx)($T,{...n,ref:a})})},"DialogContent")),GT=qe.forwardRef(ia(function(t,a){let r=qa(Ol,t.__scopeDialog),o=qe.useRef(null),n=he(a,r.contentRef,o);return qe.useEffect(()=>{let s=o.current;if(s)return ni(s)},[]),(0,Ye.jsx)(xS,{...t,ref:n,trapFocus:r.open,disableOutsidePointerEvents:r.open,onCloseAutoFocus:G(t.onCloseAutoFocus,s=>{s.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:G(t.onPointerDownOutside,s=>{let i=s.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&s.preventDefault()}),onFocusOutside:G(t.onFocusOutside,s=>s.preventDefault())})},"DialogContentModal")),$T=qe.forwardRef(ia(function(t,a){let r=qa(Ol,t.__scopeDialog),o=qe.useRef(!1),n=qe.useRef(!1);return(0,Ye.jsx)(xS,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(o.current||r.triggerRef.current?.focus(),s.preventDefault()),o.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));let i=s.target;r.triggerRef.current?.contains(i)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})},"DialogContentNonModal")),xS=qe.forwardRef(ia(function(t,a){let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:n,onCloseAutoFocus:s,...i}=t,l=qa(Ol,r);return Bo(),(0,Ye.jsx)(Ye.Fragment,{children:(0,Ye.jsx)(Ys,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:n,onUnmountAutoFocus:s,children:(0,Ye.jsx)(Qs,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionPresent?l.descriptionId:void 0,"aria-labelledby":l.titlePresent?l.titleId:void 0,"data-state":oc(l.open),...i,ref:a,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1)})})})},"DialogContentImpl")),KT="DialogTitle",XT=qe.forwardRef(ia(function(t,a){let{__scopeDialog:r,...o}=t,n=qa(KT,r),{setTitleCount:s}=n;return Ne(()=>(s(i=>i+1),()=>s(i=>i-1)),[s]),(0,Ye.jsx)(le.h2,{id:n.titleId,...o,ref:a})},"DialogTitle")),ZT="DialogDescription",QT=qe.forwardRef(ia(function(t,a){let{__scopeDialog:r,...o}=t,n=qa(ZT,r),{setDescriptionCount:s}=n;return Ne(()=>(s(i=>i+1),()=>s(i=>i-1)),[s]),(0,Ye.jsx)(le.p,{id:n.descriptionId,...o,ref:a})},"DialogDescription")),YT="DialogClose",JT=qe.forwardRef(ia(function(t,a){let{__scopeDialog:r,...o}=t,n=qa(YT,r);return(0,Ye.jsx)(le.button,{type:"button",...o,ref:a,onClick:G(t.onClick,()=>n.onOpenChange(!1))})},"DialogClose")),eM=ia(e=>e.children,"WarningProvider");function oc(e){return e?"open":"closed"}ia(oc,"getState");var Fl={};co(Fl,{Checkbox:()=>lM,CheckboxIndicator:()=>dM,Indicator:()=>dM,Root:()=>lM,createCheckboxScope:()=>nM,unstable_BubbleInput:()=>CS,unstable_CheckboxBubbleInput:()=>CS,unstable_CheckboxProvider:()=>bh,unstable_CheckboxTrigger:()=>wS,unstable_Provider:()=>bh,unstable_Trigger:()=>wS});var nt=N(te(),1);var yS=N(te(),1);var tM=Object.defineProperty,aM=(e,t)=>tM(e,"name",{value:t,configurable:!0});function Nl(e){let[t,a]=yS.useState(void 0);return Ne(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});let r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;let n=o[0],s,i;if("borderBoxSize"in n){let l=n.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,i=u.blockSize}else s=e.offsetWidth,i=e.offsetHeight;a({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else a(void 0)},[e]),t}aM(Nl,"useSize");var ga=N(ke(),1),rM=Object.defineProperty,Zr=(e,t)=>rM(e,"name",{value:t,configurable:!0}),Lh="Checkbox",[oM,nM]=at(Lh),[sM,Ih]=oM(Lh);function bh(e){let{__scopeCheckbox:t,checked:a,children:r,defaultChecked:o,disabled:n,form:s,name:i,onCheckedChange:l,required:u,value:d="on",internal_do_not_use_render:c}=e,[f,h]=Wt({prop:a,defaultProp:o??!1,onChange:l,caller:Lh}),[v,x]=nt.useState(null),[w,p]=nt.useState(null),m=nt.useRef(!1),[g,y]=nt.useReducer(k=>k+1,0),C=v?!!s||!!v.closest("form"):!0,I={checked:f,disabled:n,setChecked:h,control:v,setControl:x,name:i,form:s,value:d,hasConsumerStoppedPropagationRef:m,userInteractionCount:g,onUserInteraction:y,required:u,defaultChecked:Xr(o)?!1:o,isFormControl:C,bubbleInput:w,setBubbleInput:p};return(0,ga.jsx)(sM,{scope:t,...I,children:SS(c)?c(I):r})}Zr(bh,"CheckboxProvider");var iM="CheckboxTrigger",wS=nt.forwardRef(Zr(function({__scopeCheckbox:t,onKeyDown:a,onClick:r,...o},n){let{control:s,value:i,disabled:l,checked:u,required:d,setControl:c,setChecked:f,hasConsumerStoppedPropagationRef:h,onUserInteraction:v,isFormControl:x,bubbleInput:w}=Ih(iM,t),p=he(n,c),m=nt.useRef(u);return nt.useEffect(()=>{let g=s?.form;if(g){let y=Zr(()=>f(m.current),"reset");return g.addEventListener("reset",y),()=>g.removeEventListener("reset",y)}},[s,f]),(0,ga.jsx)(le.button,{type:"button",role:"checkbox","aria-checked":Xr(u)?"mixed":u,"aria-required":d,"data-state":kh(u),"data-disabled":l?"":void 0,disabled:l,value:i,...o,ref:p,onKeyDown:G(a,g=>{g.key==="Enter"&&g.preventDefault()}),onClick:G(r,g=>{v(),f(y=>Xr(y)?!0:!y),w&&x&&(h.current=g.isPropagationStopped(),h.current||g.stopPropagation())})})},"CheckboxTrigger")),lM=nt.forwardRef(Zr(function(t,a){let{__scopeCheckbox:r,name:o,checked:n,defaultChecked:s,required:i,disabled:l,value:u,onCheckedChange:d,form:c,...f}=t;return(0,ga.jsx)(bh,{__scopeCheckbox:r,checked:n,defaultChecked:s,disabled:l,required:i,onCheckedChange:d,name:o,form:c,value:u,internal_do_not_use_render:({isFormControl:h})=>(0,ga.jsxs)(ga.Fragment,{children:[(0,ga.jsx)(wS,{...f,ref:a,__scopeCheckbox:r}),h&&(0,ga.jsx)(CS,{__scopeCheckbox:r})]})})},"Checkbox")),uM="CheckboxIndicator",dM=nt.forwardRef(Zr(function(t,a){let{__scopeCheckbox:r,forceMount:o,...n}=t,s=Ih(uM,r);return(0,ga.jsx)(Gt,{present:o||Xr(s.checked)||s.checked===!0,children:(0,ga.jsx)(le.span,{"data-state":kh(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:a,style:{pointerEvents:"none",...t.style}})})},"CheckboxIndicator")),cM="CheckboxBubbleInput",CS=nt.forwardRef(Zr(function({__scopeCheckbox:t,onClick:a,...r},o){let{control:n,hasConsumerStoppedPropagationRef:s,userInteractionCount:i,checked:l,defaultChecked:u,required:d,disabled:c,name:f,value:h,form:v,bubbleInput:x,setBubbleInput:w}=Ih(cM,t),p=he(o,w),m=Nl(n),g=nt.useRef(!1),y=nt.useRef(l),C=nt.useRef(i);nt.useEffect(()=>{let k=x;if(!k)return;let b=window.HTMLInputElement.prototype,A=Object.getOwnPropertyDescriptor(b,"checked").set,D=i!==C.current;C.current=i;let E=y.current!==l;y.current=l;let z=!(D&&s.current);if(E&&A){g.current=!D;let O=new Event("click",{bubbles:z});k.indeterminate=Xr(l),A.call(k,Xr(l)?!1:l),k.dispatchEvent(O),g.current=!1}},[x,l,s,i]);let I=nt.useRef(Xr(l)?!1:l);return(0,ga.jsx)(le.input,{type:"checkbox","aria-hidden":!0,defaultChecked:u??I.current,required:d,disabled:c,name:f,value:h,form:v,...r,tabIndex:-1,ref:p,onClick:G(a,k=>{g.current&&k.stopPropagation()}),style:{...r.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function SS(e){return typeof e=="function"}Zr(SS,"isFunction");function Xr(e){return e==="indeterminate"}Zr(Xr,"isIndeterminate");function kh(e){return Xr(e)?"indeterminate":e?"checked":"unchecked"}Zr(kh,"getState");var ae=N(te(),1);var Rt=N(te(),1);var bS=["top","right","bottom","left"];var cr=Math.min,Ga=Math.max,Bl=Math.round,Ul=Math.floor,fr=e=>({x:e,y:e}),fM={left:"right",right:"left",bottom:"top",top:"bottom"};function Rh(e,t,a){return Ga(e,cr(t,a))}function pr(e,t){return typeof e=="function"?e(t):e}function Qr(e){return e.split("-")[0]}function bn(e){return e.split("-")[1]}function sc(e){return e==="x"?"y":"x"}function ic(e){return e==="y"?"height":"width"}function $a(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function lc(e){return sc($a(e))}function kS(e,t,a){a===void 0&&(a=!1);let r=bn(e),o=lc(e),n=ic(o),s=o==="x"?r===(a?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=zl(s)),[s,zl(s)]}function RS(e){let t=zl(e);return[nc(e),t,nc(t)]}function nc(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var LS=["left","right"],IS=["right","left"],pM=["top","bottom"],mM=["bottom","top"];function hM(e,t,a){switch(e){case"top":case"bottom":return a?t?IS:LS:t?LS:IS;case"left":case"right":return t?pM:mM;default:return[]}}function PS(e,t,a,r){let o=bn(e),n=hM(Qr(e),a==="start",r);return o&&(n=n.map(s=>s+"-"+o),t&&(n=n.concat(n.map(nc)))),n}function zl(e){let t=Qr(e);return fM[t]+e.slice(t.length)}function gM(e){var t,a,r,o;return{top:(t=e.top)!=null?t:0,right:(a=e.right)!=null?a:0,bottom:(r=e.bottom)!=null?r:0,left:(o=e.left)!=null?o:0}}function Ph(e){return typeof e!="number"?gM(e):{top:e,right:e,bottom:e,left:e}}function kn(e){let{x:t,y:a,width:r,height:o}=e;return{width:r,height:o,top:a,left:t,right:t+r,bottom:a+o,x:t,y:a}}function TS(e,t,a){let{reference:r,floating:o}=e,n=$a(t),s=lc(t),i=ic(s),l=Qr(t),u=n==="y",d=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,f=r[i]/2-o[i]/2,h;switch(l){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:c};break;case"left":h={x:r.x-o.width,y:c};break;default:h={x:r.x,y:r.y}}let v=bn(t);return v&&(h[s]+=f*(v==="end"?1:-1)*(a&&u?-1:1)),h}async function _S(e,t){var a;t===void 0&&(t={});let{x:r,y:o,platform:n,rects:s,elements:i,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:f=!1,padding:h=0}=pr(t,e),v=Ph(h),w=i[f?c==="floating"?"reference":"floating":c],p=kn(await n.getClippingRect({element:(a=await(n.isElement==null?void 0:n.isElement(w)))==null||a?w:w.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(i.floating)),boundary:u,rootBoundary:d,strategy:l})),m=c==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,g=await(n.getOffsetParent==null?void 0:n.getOffsetParent(i.floating)),y=await(n.isElement==null?void 0:n.isElement(g))&&await(n.getScale==null?void 0:n.getScale(g))||{x:1,y:1},C=kn(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:m,offsetParent:g,strategy:l}):m);return{top:(p.top-C.top+v.top)/y.y,bottom:(C.bottom-p.bottom+v.bottom)/y.y,left:(p.left-C.left+v.left)/y.x,right:(C.right-p.right+v.right)/y.x}}var vM=50,AS=async(e,t,a)=>{let{placement:r="bottom",strategy:o="absolute",middleware:n=[],platform:s}=a,i=s.detectOverflow?s:{...s,detectOverflow:_S},l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:c}=TS(u,r,l),f=r,h=0,v={};for(let x=0;x<n.length;x++){let w=n[x];if(!w)continue;let{name:p,fn:m}=w,{x:g,y,data:C,reset:I}=await m({x:d,y:c,initialPlacement:r,placement:f,strategy:o,middlewareData:v,rects:u,platform:i,elements:{reference:e,floating:t}});d=g??d,c=y??c,v[p]={...v[p],...C},I&&h<vM&&(h++,typeof I=="object"&&(I.placement&&(f=I.placement),I.rects&&(u=I.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):I.rects),{x:d,y:c}=TS(u,f,l)),x=-1)}return{x:d,y:c,placement:f,strategy:o,middlewareData:v}},ES=e=>({name:"arrow",options:e,async fn(t){let{x:a,y:r,placement:o,rects:n,platform:s,elements:i,middlewareData:l}=t,{element:u,padding:d=0}=pr(e,t)||{};if(u==null)return{};let c=Ph(d),f={x:a,y:r},h=lc(o),v=ic(h),x=await s.getDimensions(u),w=h==="y",p=w?"top":"left",m=w?"bottom":"right",g=w?"clientHeight":"clientWidth",y=n.reference[v]+n.reference[h]-f[h]-n.floating[v],C=f[h]-n.reference[h],I=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),k=I?I[g]:0;(!k||!await(s.isElement==null?void 0:s.isElement(I)))&&(k=i.floating[g]||n.floating[v]);let b=y/2-C/2,T=k/2-x[v]/2-1,A=cr(c[p],T),D=cr(c[m],T),E=k-x[v]-D,z=k/2-x[v]/2+b,O=Rh(A,z,E),_=!l.arrow&&bn(o)!=null&&z!==O&&n.reference[v]/2-(z<A?A:D)-x[v]/2<0,B=_?z<A?z-A:z-E:0;return{[h]:f[h]+B,data:{[h]:O,centerOffset:z-O-B,..._&&{alignmentOffset:B}},reset:_}}});var OS=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,r;let{placement:o,middlewareData:n,rects:s,initialPlacement:i,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:x=!0,...w}=pr(e,t);if((a=n.arrow)!=null&&a.alignmentOffset)return{};let p=Qr(o),m=$a(i),g=Qr(i)===i,y=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=f||(g||!x?[zl(i)]:RS(i)),I=v!=="none";!f&&I&&C.push(...PS(i,x,v,y));let k=[i,...C],b=await l.detectOverflow(t,w),T=[],A=((r=n.flip)==null?void 0:r.overflows)||[];if(d&&T.push(b[p]),c){let O=kS(o,s,y);T.push(b[O[0]],b[O[1]])}if(A=[...A,{placement:o,overflows:T}],!T.every(O=>O<=0)){var D,E;let O=(((D=n.flip)==null?void 0:D.index)||0)+1,_=k[O];if(_&&(!(c==="alignment"?m!==$a(_):!1)||A.every(W=>$a(W.placement)===m?W.overflows[0]>0:!0)))return{data:{index:O,overflows:A},reset:{placement:_}};let B=(E=A.filter(j=>j.overflows[0]<=0).sort((j,W)=>j.overflows[1]-W.overflows[1])[0])==null?void 0:E.placement;if(!B)switch(h){case"bestFit":{var z;let j=(z=A.filter(W=>{if(I){let ee=$a(W.placement);return ee===m||ee==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(ee=>ee>0).reduce((ee,P)=>ee+P,0)]).sort((W,ee)=>W[1]-ee[1])[0])==null?void 0:z[0];j&&(B=j);break}case"initialPlacement":B=i;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function MS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function DS(e){return bS.some(t=>e[t]>=0)}var NS=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a,platform:r}=t,{strategy:o="referenceHidden",...n}=pr(e,t);switch(o){case"referenceHidden":{let s=await r.detectOverflow(t,{...n,elementContext:"reference"}),i=MS(s,a.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:DS(i)}}}case"escaped":{let s=await r.detectOverflow(t,{...n,altBoundary:!0}),i=MS(s,a.floating);return{data:{escapedOffsets:i,escaped:DS(i)}}}default:return{}}}}};var FS=new Set(["left","top"]);async function xM(e,t){let{placement:a,platform:r,elements:o}=e,n=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Qr(a),i=bn(a),l=$a(a)==="y",u=FS.has(s)?-1:1,d=n&&l?-1:1,c=pr(t,e),{mainAxis:f,crossAxis:h,alignmentAxis:v}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return i&&typeof v=="number"&&(h=i==="end"?v*-1:v),l?{x:h*d,y:f*u}:{x:f*u,y:h*d}}var zS=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,r;let{x:o,y:n,placement:s,middlewareData:i}=t,l=await xM(t,e);return s===((a=i.offset)==null?void 0:a.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:n+l.y,data:{...l,placement:s}}}}},BS=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:r,placement:o,platform:n}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:m=>{let{x:g,y}=m;return{x:g,y}}},...u}=pr(e,t),d={x:a,y:r},c=await n.detectOverflow(t,u),f=$a(o),h=sc(f),v=d[h],x=d[f],w=(m,g)=>Rh(g+c[m==="y"?"top":"left"],g,g-c[m==="y"?"bottom":"right"]);s&&(v=w(h,v)),i&&(x=w(f,x));let p=l.fn({...t,[h]:v,[f]:x});return{...p,data:{x:p.x-a,y:p.y-r,enabled:{[h]:s,[f]:i}}}}}},US=function(e){return e===void 0&&(e={}),{options:e,fn(t){var a,r;let{x:o,y:n,placement:s,rects:i,middlewareData:l}=t,{offset:u=0,mainAxis:d=!0,crossAxis:c=!0}=pr(e,t),f={x:o,y:n},h=$a(s),v=sc(h),x=f[v],w=f[h],p=pr(u,t),m=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:(a=p.mainAxis)!=null?a:0,crossAxis:(r=p.crossAxis)!=null?r:0};if(d){let C=v==="y"?"height":"width",I=i.reference[v]-i.floating[C]+m.mainAxis,k=i.reference[v]+i.reference[C]-m.mainAxis;x<I?x=I:x>k&&(x=k)}if(c){var g,y;let C=v==="y"?"width":"height",I=FS.has(Qr(s)),k=i.reference[h]-i.floating[C]+(I&&((g=l.offset)==null?void 0:g[h])||0)+(I?0:m.crossAxis),b=i.reference[h]+i.reference[C]+(I?0:((y=l.offset)==null?void 0:y[h])||0)-(I?m.crossAxis:0);w<k?w=k:w>b&&(w=b)}return{[v]:x,[h]:w}}}},HS=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:a,rects:r,platform:o,elements:n}=t,{apply:s=()=>{},...i}=pr(e,t),l=await o.detectOverflow(t,i),u=Qr(a),d=bn(a),c=$a(a)==="y",{width:f,height:h}=r.floating,v,x;u==="top"||u==="bottom"?(v=u,x=d===(await(o.isRTL==null?void 0:o.isRTL(n.floating))?"start":"end")?"left":"right"):(x=u,v=d==="end"?"top":"bottom");let w=h-l.top-l.bottom,p=f-l.left-l.right,m=cr(h-l[v],w),g=cr(f-l[x],p),y=t.middlewareData.shift,C=!y,I=m,k=g;y!=null&&y.enabled.x&&(k=p),y!=null&&y.enabled.y&&(I=w),C&&!d&&(c?k=f-2*Ga(l.left,l.right):I=h-2*Ga(l.top,l.bottom)),await s({...t,availableWidth:k,availableHeight:I});let b=await o.getDimensions(n.floating);return f!==b.width||h!==b.height?{reset:{rects:!0}}:{}}}};function uc(){return typeof window<"u"}function Tn(e){return VS(e)?(e.nodeName||"").toLowerCase():"#document"}function Kt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function mr(e){var t;return(t=(VS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function VS(e){return uc()?e instanceof Node||e instanceof Kt(e).Node:!1}function Ka(e){return uc()?e instanceof Element||e instanceof Kt(e).Element:!1}function Yr(e){return uc()?e instanceof HTMLElement||e instanceof Kt(e).HTMLElement:!1}function jS(e){return!uc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Kt(e).ShadowRoot}function Hl(e){let{overflow:t,overflowX:a,overflowY:r,display:o}=Xa(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+a)&&o!=="inline"&&o!=="contents"}function qS(e){return/^(table|td|th)$/.test(Tn(e))}function jl(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var yM=/transform|translate|scale|rotate|perspective|filter/,wM=/paint|layout|strict|content/,Rn=e=>!!e&&e!=="none",Th;function dc(e){let t=Ka(e)?Xa(e):e;return Rn(t.transform)||Rn(t.translate)||Rn(t.scale)||Rn(t.rotate)||Rn(t.perspective)||!cc()&&(Rn(t.backdropFilter)||Rn(t.filter))||yM.test(t.willChange||"")||wM.test(t.contain||"")}function WS(e){let t=Uo(e);for(;Yr(t)&&!si(t);){if(dc(t))return t;if(jl(t))return null;t=Uo(t)}return null}function cc(){return Th==null&&(Th=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Th}function si(e){return/^(html|body|#document)$/.test(Tn(e))}function Xa(e){return Kt(e).getComputedStyle(e)}function Vl(e){return Ka(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Uo(e){if(Tn(e)==="html")return e;let t=e.assignedSlot||e.parentNode||jS(e)&&e.host||mr(e);return jS(t)?t.host:t}function GS(e){let t=Uo(e);return si(t)?(e.ownerDocument||e).body:Yr(t)&&Hl(t)?t:GS(t)}function Pn(e,t,a){var r;t===void 0&&(t=[]),a===void 0&&(a=!0);let o=GS(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),s=Kt(o);if(n){let i=fc(s);return t.concat(s,s.visualViewport||[],Hl(o)?o:[],i&&a?Pn(i):[])}else return t.concat(o,Pn(o,[],a))}function fc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function XS(e){let t=Xa(e),a=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Yr(e),n=o?e.offsetWidth:a,s=o?e.offsetHeight:r,i=Bl(a)!==n||Bl(r)!==s;return i&&(a=n,r=s),{width:a,height:r,$:i}}function Dh(e){return Ka(e)?e:e.contextElement}function ii(e){let t=Dh(e);if(!Yr(t))return fr(1);let a=t.getBoundingClientRect(),{width:r,height:o,$:n}=XS(t),s=(n?Bl(a.width):a.width)/r,i=(n?Bl(a.height):a.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}var CM=fr(0);function ZS(e){let t=Kt(e);return!cc()||!t.visualViewport?CM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function SM(e,t,a){return t===void 0&&(t=!1),!!a&&t&&a===Kt(e)}function Mn(e,t,a,r){t===void 0&&(t=!1),a===void 0&&(a=!1);let o=e.getBoundingClientRect(),n=Dh(e),s=fr(1);t&&(r?Ka(r)&&(s=ii(r)):s=ii(e));let i=SM(n,a,r)?ZS(n):fr(0),l=(o.left+i.x)/s.x,u=(o.top+i.y)/s.y,d=o.width/s.x,c=o.height/s.y;if(n&&r){let f=Kt(n),h=Ka(r)?Kt(r):r,v=f,x=fc(v);for(;x&&h!==v;){let w=ii(x),p=x.getBoundingClientRect(),m=Xa(x),g=p.left+(x.clientLeft+parseFloat(m.paddingLeft))*w.x,y=p.top+(x.clientTop+parseFloat(m.paddingTop))*w.y;l*=w.x,u*=w.y,d*=w.x,c*=w.y,l+=g,u+=y,v=Kt(x),x=fc(v)}}return kn({width:d,height:c,x:l,y:u})}function pc(e,t){let a=Vl(e).scrollLeft;return t?t.left+a:Mn(mr(e)).left+a}function QS(e,t){let a=e.getBoundingClientRect(),r=a.left+t.scrollLeft-pc(e,a),o=a.top+t.scrollTop;return{x:r,y:o}}function LM(e){let{elements:t,rect:a,offsetParent:r,strategy:o}=e,n=o==="fixed",s=mr(r),i=t?jl(t.floating):!1;if(r===s||i&&n)return a;let l={scrollLeft:0,scrollTop:0},u=fr(1),d=fr(0),c=Yr(r);if((c||!n)&&((Tn(r)!=="body"||Hl(s))&&(l=Vl(r)),c)){let h=Mn(r);u=ii(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}let f=s&&!c&&!n?QS(s,l):fr(0);return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-l.scrollLeft*u.x+d.x+f.x,y:a.y*u.y-l.scrollTop*u.y+d.y+f.y}}function IM(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function bM(e){let t=Vl(e),a=e.ownerDocument.body,r=Ga(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),o=Ga(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight),n=-t.scrollLeft+pc(e),s=-t.scrollTop;return Xa(a).direction==="rtl"&&(n+=Ga(e.clientWidth,a.clientWidth)-r),{width:r,height:o,x:n,y:s}}var kM=25;function RM(e,t,a){a===void 0&&(a="viewport");let r=a==="layoutViewport",o=Kt(e),n=mr(e),s=o.visualViewport,i=n.clientWidth,l=n.clientHeight,u=0,d=0;if(s){let f=!cc()||t==="fixed";r?f||(u=-s.offsetLeft,d=-s.offsetTop):(i=s.width,l=s.height,f&&(u=s.offsetLeft,d=s.offsetTop))}if(pc(n)<=0){let f=n.ownerDocument,h=f.body,v=getComputedStyle(h),x=f.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,w=Math.abs(n.clientWidth-h.clientWidth-x),p=getComputedStyle(n).scrollbarGutter==="stable both-edges"?w/2:w;p<=kM&&(i-=p)}return{width:i,height:l,x:u,y:d}}function PM(e,t){let a=Mn(e,!0,t==="fixed"),r=a.top+e.clientTop,o=a.left+e.clientLeft,n=ii(e),s=e.clientWidth*n.x,i=e.clientHeight*n.y,l=o*n.x,u=r*n.y;return{width:s,height:i,x:l,y:u}}function $S(e,t,a){let r;if(t==="viewport"||t==="layoutViewport")r=RM(e,a,t);else if(t==="document")r=bM(mr(e));else if(Ka(t))r=PM(t,a);else{let o=ZS(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return kn(r)}function TM(e,t){let a=t.get(e);if(a)return a;let r=Pn(e,[],!1).filter(i=>Ka(i)&&Tn(i)!=="body"),o=null,n=Xa(e).position==="fixed",s=n?Uo(e):e;for(;Ka(s)&&!si(s);){let i=Xa(s),l=dc(s),u=o?o.position:n?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&i.position==="static")?r=r.filter(c=>c!==s):o=i,s=Uo(s)}return t.set(e,r),r}function MM(e){let{element:t,boundary:a,rootBoundary:r,strategy:o}=e,s=[...a==="clippingAncestors"?jl(t)?[]:TM(t,this._c):[].concat(a),r],i=$S(t,s[0],o),l=i.top,u=i.right,d=i.bottom,c=i.left;for(let f=1;f<s.length;f++){let h=$S(t,s[f],o);l=Ga(h.top,l),u=cr(h.right,u),d=cr(h.bottom,d),c=Ga(h.left,c)}return{width:u-c,height:d-l,x:c,y:l}}function DM(e){let{width:t,height:a}=XS(e);return{width:t,height:a}}function _M(e,t,a){let r=Yr(t),o=mr(t),n=a==="fixed",s=Mn(e,!0,n,t),i={scrollLeft:0,scrollTop:0},l=fr(0);if((r||!n)&&((Tn(t)!=="body"||Hl(o))&&(i=Vl(t)),r)){let f=Mn(t,!0,n,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}!r&&o&&(l.x=pc(o));let u=o&&!r&&!n?QS(o,i):fr(0),d=s.left+i.scrollLeft-l.x-u.x,c=s.top+i.scrollTop-l.y-u.y;return{x:d,y:c,width:s.width,height:s.height}}function Mh(e){return Xa(e).position==="static"}function KS(e,t){if(!Yr(e)||Xa(e).position==="fixed")return null;if(t)return t(e);let a=e.offsetParent;return mr(e)===a&&(a=a.ownerDocument.body),a}function YS(e,t){let a=Kt(e);if(jl(e))return a;if(!Yr(e)){let o=Uo(e);for(;o&&!si(o);){if(Ka(o)&&!Mh(o))return o;o=Uo(o)}return a}let r=KS(e,t);for(;r&&qS(r)&&Mh(r);)r=KS(r,t);return r&&si(r)&&Mh(r)&&!dc(r)?a:r||WS(e)||a}var AM=async function(e){let t=this.getOffsetParent||YS,a=this.getDimensions,r=await a(e.floating);return{reference:_M(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function EM(e){return Xa(e).direction==="rtl"}var JS={convertOffsetParentRelativeRectToViewportRelativeRect:LM,getDocumentElement:mr,getClippingRect:MM,getOffsetParent:YS,getElementRects:AM,getClientRects:IM,getDimensions:DM,getScale:ii,isElement:Ka,isRTL:EM};function eL(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function OM(e,t,a){let r=null,o,n=mr(e);function s(){var d;clearTimeout(o),(d=r)==null||d.disconnect(),r=null}function i(d,c){d===void 0&&(d=!1),c===void 0&&(c=1),s();let f=e.getBoundingClientRect(),{left:h,top:v,width:x,height:w}=f;if(d||t(),!x||!w)return;let p=Ul(v),m=Ul(n.clientWidth-(h+x)),g=Ul(n.clientHeight-(v+w)),y=Ul(h),I={rootMargin:-p+"px "+-m+"px "+-g+"px "+-y+"px",threshold:Ga(0,cr(1,c))||1},k=!0;function b(T){let A=T[0].intersectionRatio;if(!eL(f,e.getBoundingClientRect()))return i();if(A!==c){if(!k)return i();A?i(!1,A):o=setTimeout(()=>{i(!1,1e-7)},1e3)}k=!1}try{r=new IntersectionObserver(b,{...I,root:n.ownerDocument})}catch{r=new IntersectionObserver(b,I)}r.observe(e)}let l=Kt(e),u=()=>i(a);return l.addEventListener("resize",u),i(!0),()=>{l.removeEventListener("resize",u),s()}}function _h(e,t,a,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:n=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Dh(e),d=o||n?[...u?Pn(u):[],...t?Pn(t):[]]:[];d.forEach(p=>{o&&p.addEventListener("scroll",a),n&&p.addEventListener("resize",a)});let c=u&&i?OM(u,a,n):null,f=-1,h=null;s&&(h=new ResizeObserver(p=>{let[m]=p;m&&m.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var g;(g=h)==null||g.observe(t)})),a()}),u&&!l&&h.observe(u),t&&h.observe(t));let v,x=l?Mn(e):null;l&&w();function w(){let p=Mn(e);x&&!eL(x,p)&&a(),x=p,v=requestAnimationFrame(w)}return a(),()=>{var p;d.forEach(m=>{o&&m.removeEventListener("scroll",a),n&&m.removeEventListener("resize",a)}),c?.(),(p=h)==null||p.disconnect(),h=null,l&&cancelAnimationFrame(v)}}var tL=zS;var aL=BS,rL=OS,oL=HS,nL=NS,Ah=ES;var sL=US,Eh=(e,t,a)=>{let r=new Map,o=a??{},n={...JS,...o.platform,_c:r};return AS(e,t,{...o,platform:n})};var st=N(te(),1),lL=N(te(),1),uL=N(Gs(),1),NM=typeof document<"u",FM=function(){},mc=NM?lL.useLayoutEffect:FM;function hc(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 a,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(r=a;r--!==0;)if(!hc(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),a=o.length,a!==Object.keys(t).length)return!1;for(r=a;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=a;r--!==0;){let n=o[r];if(!(n==="_owner"&&e.$$typeof)&&!hc(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function dL(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function iL(e,t){let a=dL(e);return Math.round(t*a)/a}function Oh(e){let t=st.useRef(e);return mc(()=>{t.current=e}),t}function cL(e){e===void 0&&(e={});let{placement:t="bottom",strategy:a="absolute",middleware:r=[],platform:o,elements:{reference:n,floating:s}={},transform:i=!0,whileElementsMounted:l,open:u}=e,[d,c]=st.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=st.useState(r);hc(f,r)||h(r);let[v,x]=st.useState(null),[w,p]=st.useState(null),m=st.useCallback(W=>{W!==I.current&&(I.current=W,x(W))},[]),g=st.useCallback(W=>{W!==k.current&&(k.current=W,p(W))},[]),y=n||v,C=s||w,I=st.useRef(null),k=st.useRef(null),b=st.useRef(d),T=l!=null,A=Oh(l),D=Oh(o),E=Oh(u),z=st.useCallback(()=>{if(!I.current||!k.current)return;let W={placement:t,strategy:a,middleware:f};D.current&&(W.platform=D.current),Eh(I.current,k.current,W).then(ee=>{let P={...ee,isPositioned:E.current!==!1};O.current&&!hc(b.current,P)&&(b.current=P,uL.flushSync(()=>{c(P)}))})},[f,t,a,D,E]);mc(()=>{u===!1&&b.current.isPositioned&&(b.current.isPositioned=!1,c(W=>({...W,isPositioned:!1})))},[u]);let O=st.useRef(!1);mc(()=>(O.current=!0,()=>{O.current=!1}),[]),mc(()=>{if(y&&(I.current=y),C&&(k.current=C),y&&C){if(A.current)return A.current(y,C,z);z()}},[y,C,z,A,T]);let _=st.useMemo(()=>({reference:I,floating:k,setReference:m,setFloating:g}),[m,g]),B=st.useMemo(()=>({reference:y,floating:C}),[y,C]),j=st.useMemo(()=>{let W={position:a,left:0,top:0};if(!B.floating)return W;let ee=iL(B.floating,d.x),P=iL(B.floating,d.y);return i?{...W,transform:"translate("+ee+"px, "+P+"px)",...dL(B.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:ee,top:P}},[a,i,B.floating,d.x,d.y]);return st.useMemo(()=>({...d,update:z,refs:_,elements:B,floatingStyles:j}),[d,z,_,B,j])}var zM=e=>{function t(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){let{element:r,padding:o}=typeof e=="function"?e(a):e;return r&&t(r)?r.current!=null?Ah({element:r.current,padding:o}).fn(a):{}:r?Ah({element:r,padding:o}).fn(a):{}}}},fL=(e,t)=>{let a=tL(e);return{name:a.name,fn:a.fn,options:[e,t]}},pL=(e,t)=>{let a=aL(e);return{name:a.name,fn:a.fn,options:[e,t]}},mL=(e,t)=>({fn:sL(e).fn,options:[e,t]}),hL=(e,t)=>{let a=rL(e);return{name:a.name,fn:a.fn,options:[e,t]}},gL=(e,t)=>{let a=oL(e);return{name:a.name,fn:a.fn,options:[e,t]}};var vL=(e,t)=>{let a=nL(e);return{name:a.name,fn:a.fn,options:[e,t]}};var xL=(e,t)=>{let a=zM(e);return{name:a.name,fn:a.fn,options:[e,t]}};var yL=N(te(),1);var Nh=N(ke(),1),BM=Object.defineProperty,UM=(e,t)=>BM(e,"name",{value:t,configurable:!0}),HM=yL.forwardRef(UM(function(t,a){let{children:r,width:o=10,height:n=5,...s}=t;return(0,Nh.jsx)(le.svg,{...s,ref:a,width:o,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:(0,Nh.jsx)("polygon",{points:"0,0 30,0 15,10"})})},"Arrow")),wL=HM;var Ho=N(ke(),1),VM=Object.defineProperty,Jr=(e,t)=>VM(e,"name",{value:t,configurable:!0});var CL="Popper",[SL,li]=at(CL),[qM,LL]=SL(CL),WM=Jr(e=>{let{__scopePopper:t,children:a}=e,[r,o]=Rt.useState(null),[n,s]=Rt.useState(void 0);return(0,Ho.jsx)(qM,{scope:t,anchor:r,onAnchorChange:o,placementState:n,setPlacementState:s,children:a})},"Popper"),GM="PopperAnchor",$M=Rt.forwardRef(Jr(function(t,a){let{__scopePopper:r,virtualRef:o,...n}=t,s=LL(GM,r),i=Rt.useRef(null),l=s.onAnchorChange,u=Rt.useCallback(x=>{i.current=x,x&&l(x)},[l]),d=he(a,u),c=Rt.useRef(null);Rt.useEffect(()=>{if(!o)return;let x=c.current;c.current=o.current,x!==c.current&&l(c.current)});let f=s.placementState&&gc(s.placementState),h=f?.[0],v=f?.[1];return o?null:(0,Ho.jsx)(le.div,{"data-radix-popper-side":h,"data-radix-popper-align":v,...n,ref:d})},"PopperAnchor")),IL="PopperContent",[KM,XM]=SL(IL),ZM=Rt.forwardRef(Jr(function(t,a){let{__scopePopper:r,side:o="bottom",sideOffset:n=0,align:s="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:v="optimized",onPlaced:x,...w}=t,p=LL(IL,r),[m,g]=Rt.useState(null),y=he(a,g),[C,I]=Rt.useState(null),k=Nl(C),b=k?.width??0,T=k?.height??0,A=o+(s!=="center"?"-"+s:""),D=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},E=Array.isArray(d)?d:[d],z=E.length>0,O={padding:D,boundary:E.filter(bL),altBoundary:z},{refs:_,floatingStyles:B,placement:j,isPositioned:W,middlewareData:ee}=cL({strategy:"fixed",placement:A,whileElementsMounted:Jr((...oe)=>_h(...oe,{animationFrame:v==="always"}),"whileElementsMounted"),elements:{reference:p.anchor},middleware:[fL({mainAxis:n+T,alignmentAxis:i}),u&&pL({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?mL():void 0,...O}),u&&hL({...O}),gL({...O,apply:Jr(({elements:oe,rects:Je,availableWidth:De,availableHeight:Oe})=>{let{width:M,height:ye}=Je.reference,Tt=oe.floating.style;Tt.setProperty("--radix-popper-available-width",`${De}px`),Tt.setProperty("--radix-popper-available-height",`${Oe}px`),Tt.setProperty("--radix-popper-anchor-width",`${M}px`),Tt.setProperty("--radix-popper-anchor-height",`${ye}px`)},"apply")}),C&&xL({element:C,padding:l}),eD({arrowWidth:b,arrowHeight:T}),h&&vL({strategy:"referenceHidden",...O,boundary:z?O.boundary:void 0})]}),P=p.setPlacementState;Ne(()=>(P(j),()=>{P(void 0)}),[j,P]);let[se,ie]=gc(j),H=ot(x);Ne(()=>{W&&H?.()},[W,H]);let ve=ee.arrow?.x,Se=ee.arrow?.y,fe=ee.arrow?.centerOffset!==0,[Ae,K]=Rt.useState();return Ne(()=>{m&&K(window.getComputedStyle(m).zIndex)},[m]),(0,Ho.jsx)("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:W?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ae,"--radix-popper-transform-origin":[ee.transformOrigin?.x,ee.transformOrigin?.y].join(" "),...ee.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:(0,Ho.jsx)(KM,{scope:r,placedSide:se,placedAlign:ie,onArrowChange:I,arrowX:ve,arrowY:Se,shouldHideArrow:fe,children:(0,Ho.jsx)(le.div,{"data-side":se,"data-align":ie,...w,ref:y,style:{...w.style,animation:W?w.style?.animation:"none"}})})})},"PopperContent")),QM="PopperArrow",YM={top:"bottom",right:"left",bottom:"top",left:"right"},JM=Rt.forwardRef(Jr(function(t,a){let{__scopePopper:r,...o}=t,n=XM(QM,r),s=YM[n.placedSide];return(0,Ho.jsx)("span",{ref:n.onArrowChange,style:{position:"absolute",left:n.arrowX,top:n.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[n.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[n.placedSide],visibility:n.shouldHideArrow?"hidden":void 0},children:(0,Ho.jsx)(wL,{...o,ref:a,style:{...o.style,display:"block"}})})},"PopperArrow"));function bL(e){return e!==null}Jr(bL,"isNotNull");var eD=Jr(e=>({name:"transformOrigin",options:e,fn(t){let{placement:a,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,d]=gc(a),c={start:"0%",center:"50%",end:"100%"}[d],f=(o.arrow?.x??0)+i/2,h=(o.arrow?.y??0)+l/2,v="",x="";return u==="bottom"?(v=s?c:`${f}px`,x=`${-l}px`):u==="top"?(v=s?c:`${f}px`,x=`${r.floating.height+l}px`):u==="right"?(v=`${-l}px`,x=s?c:`${h}px`):u==="left"&&(v=`${r.floating.width+l}px`,x=s?c:`${h}px`),{data:{x:v,y:x}}}}),"transformOrigin");function gc(e){let[t,a="center"]=e.split("-");return[t,a]}Jr(gc,"getSideAndAlignFromPlacement");var ql=WM,vc=$M,xc=ZM,yc=JM;var xt=N(te(),1);var aD=N(te(),1),wc=N(te(),1),tD=Object.defineProperty,zh=(e,t)=>tD(e,"name",{value:t,configurable:!0}),Fh=!1;function RL(){let[e,t]=wc.useState(Fh);return wc.useEffect(()=>{Fh||(Fh=!0,t(!0))},[]),e}zh(RL,"useIsHydrated");var PL=aD[" useSyncExternalStore ".trim().toString()];function TL(){return()=>{}}zh(TL,"subscribe");function ML(){return PL(TL,()=>!0,()=>!1)}zh(ML,"useIsHydratedModern");var DL=typeof PL=="function"?ML:RL;var jo=N(ke(),1),rD=Object.defineProperty,Dn=(e,t)=>rD(e,"name",{value:t,configurable:!0}),Bh="rovingFocusGroup.onEntryFocus",oD={bubbles:!1,cancelable:!0},Cc="RovingFocusGroup",[Uh,_L,nD]=wn(Cc),[sD,ui]=at(Cc,[nD]),[iD,lD]=sD(Cc),uD=xt.forwardRef(Dn(function(t,a){return(0,jo.jsx)(Uh.Provider,{scope:t.__scopeRovingFocusGroup,children:(0,jo.jsx)(Uh.Slot,{scope:t.__scopeRovingFocusGroup,children:(0,jo.jsx)(dD,{...t,ref:a})})})},"RovingFocusGroup")),dD=xt.forwardRef(Dn(function(t,a){let{__scopeRovingFocusGroup:r,orientation:o,loop:n=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:c=!1,...f}=t,h=xt.useRef(null),v=he(a,h),x=$r(s),[w,p]=Wt({prop:i,defaultProp:l??null,onChange:u,caller:Cc}),[m,g]=xt.useState(!1),y=ot(d),C=_L(r),I=xt.useRef(!1),[k,b]=xt.useState(0);return xt.useEffect(()=>{let T=h.current;if(T)return T.addEventListener(Bh,y),()=>T.removeEventListener(Bh,y)},[y]),(0,jo.jsx)(iD,{scope:r,orientation:o,dir:x,loop:n,currentTabStopId:w,onItemFocus:xt.useCallback(T=>p(T),[p]),onItemShiftTab:xt.useCallback(()=>g(!0),[]),onFocusableItemAdd:xt.useCallback(()=>b(T=>T+1),[]),onFocusableItemRemove:xt.useCallback(()=>b(T=>T-1),[]),children:(0,jo.jsx)(le.div,{tabIndex:m||k===0?-1:0,"data-orientation":o,...f,ref:v,style:{outline:"none",...t.style},onMouseDown:G(t.onMouseDown,()=>{I.current=!0}),onFocus:G(t.onFocus,T=>{let A=!I.current;if(T.target===T.currentTarget&&A&&!m){let D=new CustomEvent(Bh,oD);if(T.currentTarget.dispatchEvent(D),!D.defaultPrevented){let E=C().filter(j=>j.focusable),z=E.find(j=>j.active),O=E.find(j=>j.id===w),B=[z,O,...E].filter(Boolean).map(j=>j.ref.current);Hh(B,c)}}I.current=!1}),onBlur:G(t.onBlur,()=>g(!1))})})},"RovingFocusGroupImpl")),cD="RovingFocusGroupItem",fD=xt.forwardRef(Dn(function(t,a){let{__scopeRovingFocusGroup:r,focusable:o=!0,active:n=!1,tabStopId:s,children:i,...l}=t,u=dt(),d=s||u,c=lD(cD,r),f=c.currentTabStopId===d,h=_L(r),{onFocusableItemAdd:v,onFocusableItemRemove:x,currentTabStopId:w}=c,p=DL();return Ne(()=>{if(!(!p||!o))return v(),()=>x()},[p,o,v,x]),xt.useEffect(()=>{if(!(p||!o))return v(),()=>x()},[p,o,v,x]),(0,jo.jsx)(Uh.ItemSlot,{scope:r,id:d,focusable:o,active:n,children:(0,jo.jsx)(le.span,{tabIndex:f?0:-1,"data-orientation":c.orientation,...l,ref:a,onMouseDown:G(t.onMouseDown,m=>{o?c.onItemFocus(d):m.preventDefault()}),onFocus:G(t.onFocus,()=>c.onItemFocus(d)),onKeyDown:G(t.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){c.onItemShiftTab();return}if(m.target!==m.currentTarget)return;let g=EL(m,c.orientation,c.dir);if(g!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let C=h().filter(I=>I.focusable).map(I=>I.ref.current);if(g==="last")C.reverse();else if(g==="prev"||g==="next"){g==="prev"&&C.reverse();let I=C.indexOf(m.currentTarget);C=c.loop?OL(C,I+1):C.slice(I+1)}setTimeout(()=>Hh(C))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:w!=null}):i})})},"RovingFocusGroupItem")),pD={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function AL(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}Dn(AL,"getDirectionAwareKey");function EL(e,t,a){let r=AL(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return pD[r]}Dn(EL,"getFocusIntent");function Hh(e,t=!1){let a=document.activeElement;for(let r of e)if(r===a||(r.focus({preventScroll:t}),document.activeElement!==a))return}Dn(Hh,"focusFirst");function OL(e,t){return e.map((a,r)=>e[(t+r)%e.length])}Dn(OL,"wrapArray");var Sc=uD,Lc=fD;var ge=N(ke(),1),mD=Object.defineProperty,Me=(e,t)=>mD(e,"name",{value:t,configurable:!0}),jh=["Enter"," "],hD=["ArrowDown","PageUp","Home"],zL=["ArrowUp","PageDown","End"],gD=[...hD,...zL],vD={ltr:[...jh,"ArrowRight"],rtl:[...jh,"ArrowLeft"]},xD={ltr:["ArrowLeft"],rtl:["ArrowRight"]},bc="Menu",[Wl,yD,wD]=wn(bc),[_n,qh]=at(bc,[wD,li,ui]),$l=li(),BL=ui(),[UL,Vo]=_n(bc),[CD,Kl]=_n(bc),SD=Me(e=>{let{__scopeMenu:t,open:a=!1,children:r,dir:o,onOpenChange:n,modal:s=!0}=e,i=$l(t),[l,u]=ae.useState(null),d=ae.useRef(!1),c=ot(n),f=$r(o);return ae.useEffect(()=>{let h=Me(()=>{d.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},"handleKeyDown"),v=Me(()=>d.current=!1,"handlePointer");return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),ae.useEffect(()=>{if(!a)return;let h=Me(()=>c(!1),"handleBlur");return window.addEventListener("blur",h),()=>window.removeEventListener("blur",h)},[a,c]),(0,ge.jsx)(ql,{...i,children:(0,ge.jsx)(UL,{scope:t,open:a,onOpenChange:c,content:l,onContentChange:u,children:(0,ge.jsx)(CD,{scope:t,onClose:ae.useCallback(()=>c(!1),[c]),isUsingKeyboardRef:d,dir:f,modal:s,children:r})})})},"Menu"),HL=ae.forwardRef(Me(function(t,a){let{__scopeMenu:r,...o}=t,n=$l(r);return(0,ge.jsx)(vc,{...n,...o,ref:a})},"MenuAnchor")),jL="MenuPortal",[LD,VL]=_n(jL,{forceMount:void 0}),ID=Me(e=>{let{__scopeMenu:t,forceMount:a,children:r,container:o}=e,n=Vo(jL,t);return(0,ge.jsx)(LD,{scope:t,forceMount:a,children:(0,ge.jsx)(Gt,{present:a||n.open,children:(0,ge.jsx)(Js,{asChild:!0,container:o,children:r})})})},"MenuPortal"),Za="MenuContent",[bD,Wh]=_n(Za),kD=ae.forwardRef(Me(function(t,a){let r=VL(Za,t.__scopeMenu),{forceMount:o=r.forceMount,...n}=t,s=Vo(Za,t.__scopeMenu),i=Kl(Za,t.__scopeMenu);return(0,ge.jsx)(Wl.Provider,{scope:t.__scopeMenu,children:(0,ge.jsx)(Gt,{present:o||s.open,children:(0,ge.jsx)(Wl.Slot,{scope:t.__scopeMenu,children:i.modal?(0,ge.jsx)(RD,{...n,ref:a}):(0,ge.jsx)(PD,{...n,ref:a})})})})},"MenuContent")),RD=ae.forwardRef(Me(function(t,a){let r=Vo(Za,t.__scopeMenu),o=ae.useRef(null),n=he(a,o);return ae.useEffect(()=>{let s=o.current;if(s)return ni(s)},[]),(0,ge.jsx)(Gh,{...t,ref:n,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:G(t.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})},"MenuRootContentModal")),PD=ae.forwardRef(Me(function(t,a){let r=Vo(Za,t.__scopeMenu);return(0,ge.jsx)(Gh,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})},"MenuRootContentNonModal")),TD=bt("MenuContent.ScrollLock"),Gh=ae.forwardRef(Me(function(t,a){let{__scopeMenu:r,loop:o=!1,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:u,onEscapeKeyDown:d,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:h,onDismiss:v,disableOutsideScroll:x,...w}=t,p=Vo(Za,r),m=Kl(Za,r),g=$l(r),y=BL(r),C=yD(r),[I,k]=ae.useState(null),b=ae.useRef(null),T=he(a,b,p.onContentChange),A=ae.useRef(0),D=ae.useRef(""),E=ae.useRef(0),z=ae.useRef(null),O=ae.useRef("right"),_=ae.useRef(0),B=x?In:ae.Fragment,j=x?{as:TD,allowPinchZoom:!0}:void 0,W=Me(P=>{let se=D.current+P,ie=C().filter(K=>!K.disabled),H=document.activeElement,ve=ie.find(K=>K.ref.current===H)?.textValue,Se=ie.map(K=>K.textValue),fe=YL(Se,se,ve),Ae=ie.find(K=>K.textValue===fe)?.ref.current;Me((function K(oe){D.current=oe,window.clearTimeout(A.current),oe!==""&&(A.current=window.setTimeout(()=>K(""),1e3))}),"updateSearch")(se),Ae&&setTimeout(()=>Ae.focus())},"handleTypeaheadSearch");ae.useEffect(()=>()=>window.clearTimeout(A.current),[]),Bo();let ee=ae.useCallback(P=>O.current===z.current?.side&&eI(P,z.current?.area),[]);return(0,ge.jsx)(bD,{scope:r,searchRef:D,onItemEnter:ae.useCallback(P=>{ee(P)&&P.preventDefault()},[ee]),onItemLeave:ae.useCallback(P=>{ee(P)||(b.current?.focus(),k(null))},[ee]),onTriggerLeave:ae.useCallback(P=>{ee(P)&&P.preventDefault()},[ee]),pointerGraceTimerRef:E,onPointerGraceIntentChange:ae.useCallback(P=>{z.current=P},[]),children:(0,ge.jsx)(B,{...j,children:(0,ge.jsx)(Ys,{asChild:!0,trapped:n,onMountAutoFocus:G(s,P=>{P.preventDefault(),b.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:(0,ge.jsx)(Qs,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:d,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:h,onDismiss:v,children:(0,ge.jsx)(Sc,{asChild:!0,...y,dir:m.dir,orientation:"vertical",loop:o,currentTabStopId:I,onCurrentTabStopIdChange:k,onEntryFocus:G(u,P=>{m.isUsingKeyboardRef.current||P.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,ge.jsx)(xc,{role:"menu","aria-orientation":"vertical","data-state":Kh(p.open),"data-radix-menu-content":"",dir:m.dir,...g,...w,ref:T,style:{outline:"none",...w.style},onKeyDown:G(w.onKeyDown,P=>{let ie=P.target.closest("[data-radix-menu-content]")===P.currentTarget,H=P.ctrlKey||P.altKey||P.metaKey,ve=P.key.length===1;ie&&(P.key==="Tab"&&P.preventDefault(),!H&&ve&&W(P.key));let Se=b.current;if(P.target!==Se||!gD.includes(P.key))return;P.preventDefault();let Ae=C().filter(K=>!K.disabled).map(K=>K.ref.current);zL.includes(P.key)&&Ae.reverse(),ZL(Ae)}),onBlur:G(t.onBlur,P=>{P.currentTarget.contains(P.target)||(window.clearTimeout(A.current),D.current="")}),onPointerMove:G(t.onPointerMove,di(P=>{let se=P.target,ie=_.current!==P.clientX;if(P.currentTarget.contains(se)&&ie){let H=P.clientX>_.current?"right":"left";O.current=H,_.current=P.clientX}}))})})})})})})},"MenuContentImpl")),qL=ae.forwardRef(Me(function(t,a){let{__scopeMenu:r,...o}=t;return(0,ge.jsx)(le.div,{role:"group",...o,ref:a})},"MenuGroup")),MD=ae.forwardRef(Me(function(t,a){let{__scopeMenu:r,...o}=t;return(0,ge.jsx)(le.div,{...o,ref:a})},"MenuLabel")),Vh="MenuItem",FL="menu.itemSelect",$h=ae.forwardRef(Me(function(t,a){let{disabled:r=!1,onSelect:o,...n}=t,s=ae.useRef(null),i=Kl(Vh,t.__scopeMenu),l=Wh(Vh,t.__scopeMenu),u=he(a,s),d=ae.useRef(!1),c=Me(()=>{let f=s.current;if(!r&&f){let h=new CustomEvent(FL,{bubbles:!0,cancelable:!0});f.addEventListener(FL,v=>o?.(v),{once:!0}),Ml(f,h),h.defaultPrevented?d.current=!1:i.onClose()}},"handleSelect");return(0,ge.jsx)(WL,{...n,ref:u,disabled:r,onClick:G(t.onClick,c),onPointerDown:f=>{t.onPointerDown?.(f),d.current=!0},onPointerUp:G(t.onPointerUp,f=>{d.current||f.currentTarget?.click()}),onKeyDown:G(t.onKeyDown,f=>{r||f.target!==f.currentTarget||l.searchRef.current!==""&&f.key===" "||jh.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})},"MenuItem")),WL=ae.forwardRef(Me(function(t,a){let{__scopeMenu:r,disabled:o=!1,textValue:n,...s}=t,i=Wh(Vh,r),l=BL(r),u=ae.useRef(null),d=he(a,u),[c,f]=ae.useState(!1),[h,v]=ae.useState("");return ae.useEffect(()=>{let x=u.current;x&&v((x.textContent??"").trim())},[s.children]),(0,ge.jsx)(Wl.ItemSlot,{scope:r,disabled:o,textValue:n??h,children:(0,ge.jsx)(Lc,{asChild:!0,...l,focusable:!o,children:(0,ge.jsx)(le.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:d,onPointerMove:G(t.onPointerMove,di(x=>{o?i.onItemLeave(x):(i.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:G(t.onPointerLeave,di(x=>i.onItemLeave(x))),onFocus:G(t.onFocus,()=>f(!0)),onBlur:G(t.onBlur,()=>f(!1))})})})},"MenuItemImpl")),DD=ae.forwardRef(Me(function(t,a){let{checked:r=!1,onCheckedChange:o,...n}=t;return(0,ge.jsx)($L,{scope:t.__scopeMenu,checked:r,children:(0,ge.jsx)($h,{role:"menuitemcheckbox","aria-checked":Gl(r)?"mixed":r,...n,ref:a,"data-state":kc(r),onSelect:G(n.onSelect,()=>o?.(Gl(r)?!0:!r),{checkForDefaultPrevented:!1})})})},"MenuCheckboxItem")),_D="MenuRadioGroup",[AD,ED]=_n(_D,{value:void 0,onValueChange:Me(()=>{},"onValueChange")}),OD=ae.forwardRef(Me(function(t,a){let{value:r,onValueChange:o,...n}=t,s=ot(o);return(0,ge.jsx)(AD,{scope:t.__scopeMenu,value:r,onValueChange:s,children:(0,ge.jsx)(qL,{...n,ref:a})})},"MenuRadioGroup")),ND="MenuRadioItem",FD=ae.forwardRef(Me(function(t,a){let{value:r,...o}=t,n=ED(ND,t.__scopeMenu),s=r===n.value;return(0,ge.jsx)($L,{scope:t.__scopeMenu,checked:s,children:(0,ge.jsx)($h,{role:"menuitemradio","aria-checked":s,...o,ref:a,"data-state":kc(s),onSelect:G(o.onSelect,()=>n.onValueChange?.(r),{checkForDefaultPrevented:!1})})})},"MenuRadioItem")),GL="MenuItemIndicator",[$L,zD]=_n(GL,{checked:!1}),BD=ae.forwardRef(Me(function(t,a){let{__scopeMenu:r,forceMount:o,...n}=t,s=zD(GL,r);return(0,ge.jsx)(Gt,{present:o||Gl(s.checked)||s.checked===!0,children:(0,ge.jsx)(le.span,{...n,ref:a,"data-state":kc(s.checked)})})},"MenuItemIndicator")),UD=ae.forwardRef(Me(function(t,a){let{__scopeMenu:r,...o}=t;return(0,ge.jsx)(le.div,{role:"separator","aria-orientation":"horizontal",...o,ref:a})},"MenuSeparator")),HD=ae.forwardRef(Me(function(t,a){let{__scopeMenu:r,...o}=t,n=$l(r);return(0,ge.jsx)(yc,{...n,...o,ref:a})},"MenuArrow")),KL="MenuSub",[jD,XL]=_n(KL),VD=Me(e=>{let{__scopeMenu:t,children:a,open:r=!1,onOpenChange:o}=e,n=Vo(KL,t),s=$l(t),[i,l]=ae.useState(null),[u,d]=ae.useState(null),c=ot(o);return ae.useEffect(()=>(n.open===!1&&c(!1),()=>c(!1)),[n.open,c]),(0,ge.jsx)(ql,{...s,children:(0,ge.jsx)(UL,{scope:t,open:r,onOpenChange:c,content:u,onContentChange:d,children:(0,ge.jsx)(jD,{scope:t,contentId:dt(),triggerId:dt(),trigger:i,onTriggerChange:l,children:a})})})},"MenuSub"),Ic="MenuSubTrigger",qD=ae.forwardRef(Me(function(t,a){let r=Vo(Ic,t.__scopeMenu),o=Kl(Ic,t.__scopeMenu),n=XL(Ic,t.__scopeMenu),s=Wh(Ic,t.__scopeMenu),i=ae.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=s,d={__scopeMenu:t.__scopeMenu},c=ae.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);ae.useEffect(()=>c,[c]),ae.useEffect(()=>{let h=l.current;return()=>{window.clearTimeout(h),u(null)}},[l,u]);let f=he(a,n.onTriggerChange);return(0,ge.jsx)(HL,{asChild:!0,...d,children:(0,ge.jsx)(WL,{id:n.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":r.open?n.contentId:void 0,"data-state":Kh(r.open),...t,ref:f,onClick:h=>{t.onClick?.(h),!(t.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:G(t.onPointerMove,di(h=>{s.onItemEnter(h),!h.defaultPrevented&&!t.disabled&&!r.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),c()},100))})),onPointerLeave:G(t.onPointerLeave,di(h=>{c();let v=r.content?.getBoundingClientRect();if(v){let x=r.content?.dataset.side,w=x==="right",p=w?-5:5,m=v[w?"left":"right"],g=v[w?"right":"left"];s.onPointerGraceIntentChange({area:[{x:h.clientX+p,y:h.clientY},{x:m,y:v.top},{x:g,y:v.top},{x:g,y:v.bottom},{x:m,y:v.bottom}],side:x}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(h),h.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:G(t.onKeyDown,h=>{t.disabled||h.target!==h.currentTarget||s.searchRef.current!==""&&h.key===" "||vD[o.dir].includes(h.key)&&(r.onOpenChange(!0),r.content?.focus(),h.preventDefault())})})})},"MenuSubTrigger")),WD="MenuSubContent",GD=ae.forwardRef(Me(function(t,a){let r=VL(Za,t.__scopeMenu),{forceMount:o=r.forceMount,align:n="start",...s}=t,i=Vo(Za,t.__scopeMenu),l=Kl(Za,t.__scopeMenu),u=XL(WD,t.__scopeMenu),d=ae.useRef(null),c=he(a,d);return(0,ge.jsx)(Wl.Provider,{scope:t.__scopeMenu,children:(0,ge.jsx)(Gt,{present:o||i.open,children:(0,ge.jsx)(Wl.Slot,{scope:t.__scopeMenu,children:(0,ge.jsx)(Gh,{id:u.contentId,"aria-labelledby":u.triggerId,...s,ref:c,align:n,side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{l.isUsingKeyboardRef.current&&d.current?.focus(),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:G(t.onFocusOutside,f=>{f.target!==u.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:G(t.onEscapeKeyDown,f=>{l.onClose(),f.preventDefault()}),onKeyDown:G(t.onKeyDown,f=>{let h=f.currentTarget.contains(f.target),v=xD[l.dir].includes(f.key);h&&v&&(i.onOpenChange(!1),u.trigger?.focus(),f.preventDefault())})})})})})},"MenuSubContent"));function Kh(e){return e?"open":"closed"}Me(Kh,"getOpenState");function Gl(e){return e==="indeterminate"}Me(Gl,"isIndeterminate");function kc(e){return Gl(e)?"indeterminate":e?"checked":"unchecked"}Me(kc,"getCheckedState");function ZL(e){let t=document.activeElement;for(let a of e)if(a===t||(a.focus(),document.activeElement!==t))return}Me(ZL,"focusFirst");function QL(e,t){return e.map((a,r)=>e[(t+r)%e.length])}Me(QL,"wrapArray");function YL(e,t,a){let o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,n=a?e.indexOf(a):-1,s=QL(e,Math.max(n,0));o.length===1&&(s=s.filter(u=>u!==a));let l=s.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return l!==a?l:void 0}Me(YL,"getNextMatch");function JL(e,t){let{x:a,y:r}=e,o=!1;for(let n=0,s=t.length-1;n<t.length;s=n++){let i=t[n],l=t[s],u=i.x,d=i.y,c=l.x,f=l.y;d>r!=f>r&&a<(c-u)*(r-d)/(f-d)+u&&(o=!o)}return o}Me(JL,"isPointInPolygon");function eI(e,t){if(!t)return!1;let a={x:e.clientX,y:e.clientY};return JL(a,t)}Me(eI,"isPointerInGraceArea");function di(e){return t=>t.pointerType==="mouse"?e(t):void 0}Me(di,"whenMouse");var tI=SD,aI=HL,rI=ID,oI=kD,nI=qL,sI=MD,iI=$h,lI=DD,uI=OD,dI=FD,cI=BD,fI=UD,pI=HD,mI=VD,hI=qD,gI=GD;var eo={};co(eo,{Arrow:()=>f_,CheckboxItem:()=>i_,Content:()=>r_,DropdownMenu:()=>xI,DropdownMenuArrow:()=>MI,DropdownMenuCheckboxItem:()=>bI,DropdownMenuContent:()=>CI,DropdownMenuGroup:()=>SI,DropdownMenuItem:()=>II,DropdownMenuItemIndicator:()=>PI,DropdownMenuLabel:()=>LI,DropdownMenuPortal:()=>wI,DropdownMenuRadioGroup:()=>kI,DropdownMenuRadioItem:()=>RI,DropdownMenuSeparator:()=>TI,DropdownMenuSub:()=>DI,DropdownMenuSubContent:()=>AI,DropdownMenuSubTrigger:()=>_I,DropdownMenuTrigger:()=>yI,Group:()=>o_,Item:()=>s_,ItemIndicator:()=>d_,Label:()=>n_,Portal:()=>a_,RadioGroup:()=>l_,RadioItem:()=>u_,Root:()=>e_,Separator:()=>c_,Sub:()=>p_,SubContent:()=>h_,SubTrigger:()=>m_,Trigger:()=>t_,createDropdownMenuScope:()=>ZD});var ft=N(te(),1);var ct=N(ke(),1),KD=Object.defineProperty,Nt=(e,t)=>KD(e,"name",{value:t,configurable:!0}),Xh="DropdownMenu",[XD,ZD]=at(Xh,[qh]),Ft=qh(),[QD,vI]=XD(Xh),xI=Nt(e=>{let{__scopeDropdownMenu:t,children:a,dir:r,open:o,defaultOpen:n,onOpenChange:s,modal:i=!0}=e,l=Ft(t),u=ft.useRef(null),[d,c]=Wt({prop:o,defaultProp:n??!1,onChange:s,caller:Xh});return(0,ct.jsx)(QD,{scope:t,triggerId:dt(),triggerRef:u,contentId:dt(),open:d,onOpenChange:c,onOpenToggle:ft.useCallback(()=>c(f=>!f),[c]),modal:i,children:(0,ct.jsx)(tI,{...l,open:d,onOpenChange:c,dir:r,modal:i,children:a})})},"DropdownMenu"),YD="DropdownMenuTrigger",yI=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,disabled:o=!1,...n}=t,s=vI(YD,r),i=Ft(r),l=he(a,s.triggerRef);return(0,ct.jsx)(aI,{asChild:!0,...i,children:(0,ct.jsx)(le.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...n,ref:l,onPointerDown:G(t.onPointerDown,u=>{!o&&u.button===0&&u.ctrlKey===!1&&(s.onOpenToggle(),s.open||u.preventDefault())}),onKeyDown:G(t.onKeyDown,u=>{o||(["Enter"," "].includes(u.key)&&s.onOpenToggle(),u.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})},"DropdownMenuTrigger")),wI=Nt(e=>{let{__scopeDropdownMenu:t,...a}=e,r=Ft(t);return(0,ct.jsx)(rI,{...r,...a})},"DropdownMenuPortal"),JD="DropdownMenuContent",CI=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=vI(JD,r),s=Ft(r),i=ft.useRef(!1);return(0,ct.jsx)(oI,{id:n.contentId,"aria-labelledby":n.triggerId,...s,...o,ref:a,onCloseAutoFocus:G(t.onCloseAutoFocus,l=>{i.current||n.triggerRef.current?.focus(),i.current=!1,l.preventDefault()}),onInteractOutside:G(t.onInteractOutside,l=>{let u=l.detail.originalEvent,d=u.button===0&&u.ctrlKey===!0,c=u.button===2||d;(!n.modal||c)&&(i.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent")),SI=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Ft(r);return(0,ct.jsx)(nI,{...n,...o,ref:a})},"DropdownMenuGroup")),LI=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Ft(r);return(0,ct.jsx)(sI,{...n,...o,ref:a})},"DropdownMenuLabel")),II=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Ft(r);return(0,ct.jsx)(iI,{...n,...o,ref:a})},"DropdownMenuItem")),bI=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Ft(r);return(0,ct.jsx)(lI,{...n,...o,ref:a})},"DropdownMenuCheckboxItem")),kI=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Ft(r);return(0,ct.jsx)(uI,{...n,...o,ref:a})},"DropdownMenuRadioGroup")),RI=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Ft(r);return(0,ct.jsx)(dI,{...n,...o,ref:a})},"DropdownMenuRadioItem")),PI=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Ft(r);return(0,ct.jsx)(cI,{...n,...o,ref:a})},"DropdownMenuItemIndicator")),TI=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Ft(r);return(0,ct.jsx)(fI,{...n,...o,ref:a})},"DropdownMenuSeparator")),MI=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Ft(r);return(0,ct.jsx)(pI,{...n,...o,ref:a})},"DropdownMenuArrow")),DI=Nt(e=>{let{__scopeDropdownMenu:t,children:a,open:r,onOpenChange:o,defaultOpen:n}=e,s=Ft(t),[i,l]=Wt({prop:r,defaultProp:n??!1,onChange:o,caller:"DropdownMenuSub"});return(0,ct.jsx)(mI,{...s,open:i,onOpenChange:l,children:a})},"DropdownMenuSub"),_I=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Ft(r);return(0,ct.jsx)(hI,{...n,...o,ref:a})},"DropdownMenuSubTrigger")),AI=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Ft(r);return(0,ct.jsx)(gI,{...n,...o,ref:a,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuSubContent")),e_=xI,t_=yI,a_=wI,r_=CI,o_=SI,n_=LI,s_=II,i_=bI,l_=kI,u_=RI,d_=PI,c_=TI,f_=MI,p_=DI,m_=_I,h_=AI;var Rc={};co(Rc,{Label:()=>NI,Root:()=>x_});var EI=N(te(),1);var OI=N(ke(),1),g_=Object.defineProperty,v_=(e,t)=>g_(e,"name",{value:t,configurable:!0}),NI=EI.forwardRef(v_(function(t,a){return(0,OI.jsx)(le.label,{...t,ref:a,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(t.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}})},"Label")),x_=NI;var Pc=N(te(),1),y_=Object.defineProperty,w_=(e,t)=>y_(e,"name",{value:t,configurable:!0});function Zh(e){let t=Pc.useRef({value:e,previous:e});return Pc.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}w_(Zh,"usePrevious");var C_=Object.defineProperty,S_=(e,t)=>C_(e,"name",{value:t,configurable:!0});function Tc(e,[t,a]){return Math.min(a,Math.max(t,e))}S_(Tc,"clamp");var Xt={};co(Xt,{Arrow:()=>uA,Content:()=>H_,Group:()=>Q_,Icon:()=>N_,Item:()=>tA,ItemIndicator:()=>oA,ItemText:()=>aA,Label:()=>J_,Portal:()=>U_,Root:()=>D_,ScrollDownButton:()=>sA,ScrollUpButton:()=>nA,Select:()=>D_,SelectArrow:()=>uA,SelectContent:()=>H_,SelectGroup:()=>Q_,SelectIcon:()=>N_,SelectItem:()=>tA,SelectItemIndicator:()=>oA,SelectItemText:()=>aA,SelectLabel:()=>J_,SelectPortal:()=>U_,SelectScrollDownButton:()=>sA,SelectScrollUpButton:()=>nA,SelectSeparator:()=>iA,SelectTrigger:()=>A_,SelectValue:()=>O_,SelectViewport:()=>$_,Separator:()=>iA,Trigger:()=>A_,Value:()=>O_,Viewport:()=>$_,createSelectScope:()=>R_,unstable_BubbleInput:()=>qI,unstable_Provider:()=>Jh,unstable_SelectBubbleInput:()=>qI,unstable_SelectProvider:()=>Jh});var V=N(te(),1),Yh=N(Gs(),1);var ne=N(ke(),1),L_=Object.defineProperty,Re=(e,t)=>L_(e,"name",{value:t,configurable:!0}),I_=[" ","Enter","ArrowUp","ArrowDown"],b_=[" ","Enter"],ci="Select",[Dc,_c,k_]=wn(ci),[En,R_]=at(ci,[k_,li]),Ac=li(),[P_,qo]=En(ci),[T_,M_]=En(ci);function Jh(e){let{__scopeSelect:t,children:a,open:r,defaultOpen:o,onOpenChange:n,value:s,defaultValue:i,onValueChange:l,dir:u,name:d,autoComplete:c,disabled:f,required:h,form:v,internal_do_not_use_render:x}=e,w=Ac(t),[p,m]=V.useState(null),[g,y]=V.useState(null),[C,I]=V.useState(!1),k=$r(u),[b,T]=Wt({prop:r,defaultProp:o??!1,onChange:n,caller:ci}),[A,D]=Wt({prop:s,defaultProp:i,onChange:l,caller:ci}),E=V.useRef(null),z=V.useRef(A);V.useEffect(()=>{let ie=v?p?.ownerDocument.getElementById(v):p?.form;if(ie instanceof HTMLFormElement){let H=Re(()=>D(z.current),"reset");return ie.addEventListener("reset",H),()=>ie.removeEventListener("reset",H)}},[v,p,D]);let O=p?!!v||!!p.closest("form"):!0,[_,B]=V.useState(new Set),j=dt(),W=Array.from(_).map(ie=>ie.props.value).join(";"),ee=V.useCallback(ie=>{B(H=>new Set(H).add(ie))},[]),P=V.useCallback(ie=>{B(H=>{let ve=new Set(H);return ve.delete(ie),ve})},[]),se={required:h,trigger:p,onTriggerChange:m,valueNode:g,onValueNodeChange:y,valueNodeHasChildren:C,onValueNodeHasChildrenChange:I,contentId:j,value:A,onValueChange:D,open:b,onOpenChange:T,dir:k,triggerPointerDownPosRef:E,disabled:f,name:d,autoComplete:c,form:v,nativeOptions:_,nativeSelectKey:W,isFormControl:O};return(0,ne.jsx)(ql,{...w,children:(0,ne.jsx)(P_,{scope:t,...se,children:(0,ne.jsx)(Dc.Provider,{scope:t,children:(0,ne.jsx)(T_,{scope:t,onNativeOptionAdd:ee,onNativeOptionRemove:P,children:WI(x)?x(se):a})})})})}Re(Jh,"SelectProvider");var D_=Re(e=>{let{__scopeSelect:t,children:a,...r}=e;return(0,ne.jsx)(Jh,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:o})=>(0,ne.jsxs)(ne.Fragment,{children:[a,o?(0,ne.jsx)(qI,{__scopeSelect:t}):null]})})},"Select"),__="SelectTrigger",A_=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,disabled:o=!1,...n}=t,s=Ac(r),i=qo(__,r),l=i.disabled||o,u=he(a,i.onTriggerChange),d=_c(r),c=V.useRef("touch"),[f,h,v]=tg(w=>{let p=d().filter(y=>!y.disabled),m=p.find(y=>y.value===i.value),g=ag(p,w,m);g!==void 0&&i.onValueChange(g.value)}),x=Re(w=>{l||(i.onOpenChange(!0),v()),w&&(i.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})},"handleOpen");return(0,ne.jsx)(vc,{asChild:!0,...s,children:(0,ne.jsx)(le.button,{type:"button",role:"combobox","aria-controls":i.open?i.contentId:void 0,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Xl(i.value)?"":void 0,...n,ref:u,onClick:G(n.onClick,w=>{w.currentTarget.focus(),c.current!=="mouse"&&x(w)}),onPointerDown:G(n.onPointerDown,w=>{c.current=w.pointerType;let p=w.target;p.hasPointerCapture(w.pointerId)&&p.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(x(w),w.preventDefault())}),onKeyDown:G(n.onKeyDown,w=>{let p=f.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&h(w.key),!(p&&w.key===" ")&&I_.includes(w.key)&&(x(),w.preventDefault())})})})},"SelectTrigger")),E_="SelectValue",O_=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,className:o,style:n,children:s,placeholder:i="",...l}=t,u=qo(E_,r),{onValueNodeHasChildrenChange:d}=u,c=s!==void 0,f=he(a,u.onValueNodeChange);Ne(()=>{d(c)},[d,c]);let h=Xl(u.value);return(0,ne.jsx)(le.span,{...l,asChild:h?!1:l.asChild,ref:f,style:{pointerEvents:"none"},children:(0,ne.jsx)(V.Fragment,{children:h?i:s},h?"placeholder":"value")})},"SelectValue")),N_=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,children:o,...n}=t;return(0,ne.jsx)(le.span,{"aria-hidden":!0,...n,ref:a,children:o||"\u25BC"})},"SelectIcon")),F_="SelectPortal",[z_,B_]=En(F_,{forceMount:void 0}),U_=Re(e=>{let{__scopeSelect:t,forceMount:a,...r}=e;return(0,ne.jsx)(z_,{scope:e.__scopeSelect,forceMount:a,children:(0,ne.jsx)(Js,{asChild:!0,...r})})},"SelectPortal"),An="SelectContent",H_=V.forwardRef(Re(function(t,a){let r=B_(An,t.__scopeSelect),{forceMount:o=r.forceMount,...n}=t,s=qo(An,t.__scopeSelect),[i,l]=V.useState();return Ne(()=>{l(new DocumentFragment)},[]),(0,ne.jsx)(Gt,{present:o||s.open,children:({present:u})=>u?(0,ne.jsx)(q_,{...n,ref:a}):(0,ne.jsx)(j_,{...n,fragment:i})})},"SelectContent")),j_=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,children:o,fragment:n}=t;return n?Yh.createPortal((0,ne.jsx)(HI,{scope:r,children:(0,ne.jsx)(Dc.Slot,{scope:r,children:(0,ne.jsx)("div",{ref:a,children:o})})}),n):null},"SelectContentFragment")),Qa=10,[HI,Wo]=En(An),V_=bt("SelectContent.RemoveScroll"),q_=V.forwardRef(Re(function(t,a){let{__scopeSelect:r}=t,{position:o="item-aligned",onCloseAutoFocus:n,onEscapeKeyDown:s,onPointerDownOutside:i,side:l,sideOffset:u,align:d,alignOffset:c,arrowPadding:f,collisionBoundary:h,collisionPadding:v,sticky:x,hideWhenDetached:w,avoidCollisions:p,...m}=t,g=qo(An,r),[y,C]=V.useState(null),[I,k]=V.useState(null),b=he(a,C),[T,A]=V.useState(null),[D,E]=V.useState(null),z=_c(r),[O,_]=V.useState(!1),B=V.useRef(!1);V.useEffect(()=>{if(y)return ni(y)},[y]),Bo();let j=V.useCallback(K=>{let[oe,...Je]=z().map(M=>M.ref.current),[De]=Je.slice(-1),Oe=document.activeElement;for(let M of K)if(M===Oe||(M?.scrollIntoView({block:"nearest"}),M===oe&&I&&(I.scrollTop=0),M===De&&I&&(I.scrollTop=I.scrollHeight),M?.focus(),document.activeElement!==Oe))return},[z,I]),W=V.useCallback(()=>j([T,y]),[j,T,y]);V.useEffect(()=>{O&&W()},[O,W]);let{onOpenChange:ee,triggerPointerDownPosRef:P}=g;V.useEffect(()=>{if(y){let K={x:0,y:0},oe=Re(De=>{K={x:Math.abs(Math.round(De.pageX)-(P.current?.x??0)),y:Math.abs(Math.round(De.pageY)-(P.current?.y??0))}},"handlePointerMove"),Je=Re(De=>{K.x<=10&&K.y<=10?De.preventDefault():De.composedPath().includes(y)||ee(!1),document.removeEventListener("pointermove",oe),P.current=null},"handlePointerUp");return P.current!==null&&(document.addEventListener("pointermove",oe),document.addEventListener("pointerup",Je,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",oe),document.removeEventListener("pointerup",Je,{capture:!0})}}},[y,ee,P]),V.useEffect(()=>{let K=Re(()=>ee(!1),"close");return window.addEventListener("blur",K),window.addEventListener("resize",K),()=>{window.removeEventListener("blur",K),window.removeEventListener("resize",K)}},[ee]);let[se,ie]=tg(K=>{let oe=z().filter(Oe=>!Oe.disabled),Je=oe.find(Oe=>Oe.ref.current===document.activeElement),De=ag(oe,K,Je);De&&setTimeout(()=>De.ref.current?.focus())}),H=V.useCallback((K,oe,Je)=>{let De=!B.current&&!Je;(g.value!==void 0&&g.value===oe||De)&&(A(K),De&&(B.current=!0))},[g.value]),ve=V.useCallback(()=>y?.focus(),[y]),Se=V.useCallback((K,oe,Je)=>{let De=!B.current&&!Je;(g.value!==void 0&&g.value===oe||De)&&E(K)},[g.value]),fe=o==="popper"?FI:W_,Ae=fe===FI?{side:l,sideOffset:u,align:d,alignOffset:c,arrowPadding:f,collisionBoundary:h,collisionPadding:v,sticky:x,hideWhenDetached:w,avoidCollisions:p}:{};return(0,ne.jsx)(HI,{scope:r,content:y,viewport:I,onViewportChange:k,itemRefCallback:H,selectedItem:T,onItemLeave:ve,itemTextRefCallback:Se,focusSelectedItem:W,selectedItemText:D,position:o,isPositioned:O,searchRef:se,children:(0,ne.jsx)(In,{as:V_,allowPinchZoom:!0,children:(0,ne.jsx)(Ys,{asChild:!0,trapped:g.open,onMountAutoFocus:K=>{K.preventDefault()},onUnmountAutoFocus:G(n,K=>{g.trigger?.focus({preventScroll:!0}),K.preventDefault()}),children:(0,ne.jsx)(Qs,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:K=>K.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:(0,ne.jsx)(fe,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:K=>K.preventDefault(),...m,...Ae,onPlaced:()=>_(!0),ref:b,style:{display:"flex",flexDirection:"column",outline:"none",...m.style},onKeyDown:G(m.onKeyDown,K=>{let oe=K.ctrlKey||K.altKey||K.metaKey;if(K.key==="Tab"&&K.preventDefault(),!oe&&K.key.length===1&&ie(K.key),["ArrowUp","ArrowDown","Home","End"].includes(K.key)){let De=z().filter(Oe=>!Oe.disabled).map(Oe=>Oe.ref.current);if(["ArrowUp","End"].includes(K.key)&&(De=De.slice().reverse()),["ArrowUp","ArrowDown"].includes(K.key)){let Oe=K.target,M=De.indexOf(Oe);De=De.slice(M+1)}setTimeout(()=>j(De)),K.preventDefault()}})})})})})})},"SelectContentImpl")),W_=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,onPlaced:o,...n}=t,s=qo(An,r),i=Wo(An,r),[l,u]=V.useState(null),[d,c]=V.useState(null),f=he(a,c),h=_c(r),v=V.useRef(!1),x=V.useRef(!0),{viewport:w,selectedItem:p,selectedItemText:m,focusSelectedItem:g}=i,y=V.useCallback(()=>{if(s.trigger&&s.valueNode&&l&&d&&w&&p&&m){let b=s.trigger.getBoundingClientRect(),T=d.getBoundingClientRect(),A=s.valueNode.getBoundingClientRect(),D=m.getBoundingClientRect();if(s.dir!=="rtl"){let Oe=D.left-T.left,M=A.left-Oe,ye=b.left-M,Tt=b.width+ye,Qc=Math.max(Tt,T.width),Yc=window.innerWidth-Qa,Jc=Tc(M,[Qa,Math.max(Qa,Yc-Qc)]);l.style.minWidth=Tt+"px",l.style.left=Jc+"px"}else{let Oe=T.right-D.right,M=window.innerWidth-A.right-Oe,ye=window.innerWidth-b.right-M,Tt=b.width+ye,Qc=Math.max(Tt,T.width),Yc=window.innerWidth-Qa,Jc=Tc(M,[Qa,Math.max(Qa,Yc-Qc)]);l.style.minWidth=Tt+"px",l.style.right=Jc+"px"}let E=h(),z=window.innerHeight-Qa*2,O=w.scrollHeight,_=window.getComputedStyle(d),B=parseInt(_.borderTopWidth,10),j=parseInt(_.paddingTop,10),W=parseInt(_.borderBottomWidth,10),ee=parseInt(_.paddingBottom,10),P=B+j+O+ee+W,se=Math.min(p.offsetHeight*5,P),ie=window.getComputedStyle(w),H=parseInt(ie.paddingTop,10),ve=parseInt(ie.paddingBottom,10),Se=b.top+b.height/2-Qa,fe=z-Se,Ae=p.offsetHeight/2,K=p.offsetTop+Ae,oe=B+j+K,Je=P-oe;if(oe<=Se){let Oe=E.length>0&&p===E[E.length-1].ref.current;l.style.bottom="0px";let M=d.clientHeight-w.offsetTop-w.offsetHeight,ye=Math.max(fe,Ae+(Oe?ve:0)+M+W),Tt=oe+ye;l.style.height=Tt+"px"}else{let Oe=E.length>0&&p===E[0].ref.current;l.style.top="0px";let ye=Math.max(Se,B+w.offsetTop+(Oe?H:0)+Ae)+Je;l.style.height=ye+"px",w.scrollTop=oe-Se+w.offsetTop}l.style.margin=`${Qa}px 0`,l.style.minHeight=se+"px",l.style.maxHeight=z+"px",o?.(),requestAnimationFrame(()=>v.current=!0)}},[h,s.trigger,s.valueNode,l,d,w,p,m,s.dir,o]);Ne(()=>y(),[y]);let[C,I]=V.useState();Ne(()=>{d&&I(window.getComputedStyle(d).zIndex)},[d]);let k=V.useCallback(b=>{b&&x.current===!0&&(y(),g?.(),x.current=!1)},[y,g]);return(0,ne.jsx)(G_,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:v,onScrollButtonChange:k,children:(0,ne.jsx)("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:(0,ne.jsx)(le.div,{...n,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...n.style}})})})},"SelectItemAlignedPosition")),FI=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,align:o="start",collisionPadding:n=Qa,...s}=t,i=Ac(r);return(0,ne.jsx)(xc,{...i,...s,ref:a,align:o,collisionPadding:n,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[G_,eg]=En(An,{}),zI="SelectViewport",$_=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,nonce:o,...n}=t,s=Wo(zI,r),i=eg(zI,r),l=he(a,s.onViewportChange),u=V.useRef(0);return(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),(0,ne.jsx)(Dc.Slot,{scope:r,children:(0,ne.jsx)(le.div,{"data-radix-select-viewport":"",role:"presentation",...n,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...n.style},onScroll:G(n.onScroll,d=>{let c=d.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:h}=i;if(h?.current&&f){let v=Math.abs(u.current-c.scrollTop);if(v>0){let x=window.innerHeight-Qa*2,w=parseFloat(f.style.minHeight),p=parseFloat(f.style.height),m=Math.max(w,p);if(m<x){let g=m+v,y=Math.min(x,g),C=g-y;f.style.height=y+"px",f.style.bottom==="0px"&&(c.scrollTop=C>0?C:0,f.style.justifyContent="flex-end")}}}u.current=c.scrollTop})})})]})},"SelectViewport")),K_="SelectGroup",[X_,Z_]=En(K_),Q_=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,...o}=t,n=dt();return(0,ne.jsx)(X_,{scope:r,id:n,children:(0,ne.jsx)(le.div,{role:"group","aria-labelledby":n,...o,ref:a})})},"SelectGroup")),Y_="SelectLabel",J_=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,...o}=t,n=Z_(Y_,r);return(0,ne.jsx)(le.div,{id:n.id,...o,ref:a})},"SelectLabel")),Qh="SelectItem",[eA,jI]=En(Qh),tA=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,value:o,disabled:n=!1,textValue:s,...i}=t,l=qo(Qh,r),u=Wo(Qh,r),d=l.value===o,[c,f]=V.useState(s??""),[h,v]=V.useState(!1),x=ot(y=>u.itemRefCallback?.(y,o,n)),w=he(a,x),p=dt(),m=V.useRef("touch"),g=Re(()=>{n||(l.onValueChange(o),l.onOpenChange(!1))},"handleSelect");return(0,ne.jsx)(eA,{scope:r,value:o,disabled:n,textId:p,isSelected:d,onItemTextChange:V.useCallback(y=>{f(C=>C||(y?.textContent??"").trim())},[]),children:(0,ne.jsx)(Dc.ItemSlot,{scope:r,value:o,disabled:n,textValue:c,children:(0,ne.jsx)(le.div,{role:"option","aria-labelledby":p,"data-highlighted":h?"":void 0,"aria-selected":d&&h,"data-state":d?"checked":"unchecked","aria-disabled":n||void 0,"data-disabled":n?"":void 0,tabIndex:n?void 0:-1,...i,ref:w,onFocus:G(i.onFocus,()=>v(!0)),onBlur:G(i.onBlur,()=>v(!1)),onClick:G(i.onClick,()=>{m.current!=="mouse"&&g()}),onPointerUp:G(i.onPointerUp,()=>{m.current==="mouse"&&g()}),onPointerDown:G(i.onPointerDown,y=>{m.current=y.pointerType}),onPointerMove:G(i.onPointerMove,y=>{m.current=y.pointerType,n?u.onItemLeave?.():m.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:G(i.onPointerLeave,y=>{y.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:G(i.onKeyDown,y=>{n||y.target!==y.currentTarget||u.searchRef?.current!==""&&y.key===" "||(b_.includes(y.key)&&g(),y.key===" "&&y.preventDefault())})})})})},"SelectItem")),Mc="SelectItemText",aA=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,className:o,style:n,...s}=t,i=qo(Mc,r),l=Wo(Mc,r),u=jI(Mc,r),d=M_(Mc,r),[c,f]=V.useState(null),h=ot(g=>l.itemTextRefCallback?.(g,u.value,u.disabled)),v=he(a,f,u.onItemTextChange,h),x=c?.textContent,w=V.useMemo(()=>(0,ne.jsx)("option",{value:u.value,disabled:u.disabled,children:x},u.value),[u.disabled,u.value,x]),{onNativeOptionAdd:p,onNativeOptionRemove:m}=d;return Ne(()=>(p(w),()=>m(w)),[p,m,w]),(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)(le.span,{id:u.textId,...s,ref:v}),u.isSelected&&i.valueNode&&!i.valueNodeHasChildren&&!Xl(i.value)?Yh.createPortal(s.children,i.valueNode):null]})},"SelectItemText")),rA="SelectItemIndicator",oA=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,...o}=t;return jI(rA,r).isSelected?(0,ne.jsx)(le.span,{"aria-hidden":!0,...o,ref:a}):null},"SelectItemIndicator")),BI="SelectScrollUpButton",nA=V.forwardRef(Re(function(t,a){let r=Wo(BI,t.__scopeSelect),o=eg(BI,t.__scopeSelect),[n,s]=V.useState(!1),i=he(a,o.onScrollButtonChange);return Ne(()=>{if(r.viewport&&r.isPositioned){let u=function(){let c=d.scrollTop>0;s(c)};var l=u;Re(u,"handleScroll");let d=r.viewport;return u(),d.addEventListener("scroll",u),()=>d.removeEventListener("scroll",u)}},[r.viewport,r.isPositioned]),n?(0,ne.jsx)(VI,{...t,ref:i,onAutoScroll:()=>{let{viewport:l,selectedItem:u}=r;l&&u&&(l.scrollTop=l.scrollTop-u.offsetHeight)}}):null},"SelectScrollUpButton")),UI="SelectScrollDownButton",sA=V.forwardRef(Re(function(t,a){let r=Wo(UI,t.__scopeSelect),o=eg(UI,t.__scopeSelect),[n,s]=V.useState(!1),i=he(a,o.onScrollButtonChange);return Ne(()=>{if(r.viewport&&r.isPositioned){let u=function(){let c=d.scrollHeight-d.clientHeight,f=Math.ceil(d.scrollTop)<c;s(f)};var l=u;Re(u,"handleScroll");let d=r.viewport;return u(),d.addEventListener("scroll",u),()=>d.removeEventListener("scroll",u)}},[r.viewport,r.isPositioned]),n?(0,ne.jsx)(VI,{...t,ref:i,onAutoScroll:()=>{let{viewport:l,selectedItem:u}=r;l&&u&&(l.scrollTop=l.scrollTop+u.offsetHeight)}}):null},"SelectScrollDownButton")),VI=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,onAutoScroll:o,...n}=t,s=Wo("SelectScrollButton",r),i=V.useRef(null),l=_c(r),u=V.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return V.useEffect(()=>()=>u(),[u]),Ne(()=>{l().find(c=>c.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),(0,ne.jsx)(le.div,{"aria-hidden":!0,...n,ref:a,style:{flexShrink:0,...n.style},onPointerDown:G(n.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(o,50))}),onPointerMove:G(n.onPointerMove,()=>{s.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(o,50))}),onPointerLeave:G(n.onPointerLeave,()=>{u()})})},"SelectScrollButtonImpl")),iA=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,...o}=t;return(0,ne.jsx)(le.div,{"aria-hidden":!0,...o,ref:a})},"SelectSeparator")),lA="SelectArrow",uA=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,...o}=t,n=Ac(r);return Wo(lA,r).position==="popper"?(0,ne.jsx)(yc,{...n,...o,ref:a}):null},"SelectArrow")),dA="SelectBubbleInput",qI=V.forwardRef(Re(function({__scopeSelect:t,...a},r){let o=qo(dA,t),{value:n,onValueChange:s,required:i,disabled:l,name:u,autoComplete:d,form:c}=o,{nativeOptions:f,nativeSelectKey:h}=o,v=V.useRef(null),x=he(r,v),w=n??"",p=Zh(w),m=Array.from(f).some(g=>(g.props.value??"")==="");return V.useEffect(()=>{let g=v.current;if(!g)return;let y=window.HTMLSelectElement.prototype,I=Object.getOwnPropertyDescriptor(y,"value").set;if(p!==w&&I){let k=new Event("change",{bubbles:!0});I.call(g,w),g.dispatchEvent(k)}},[p,w]),(0,ne.jsxs)(le.select,{"aria-hidden":!0,required:i,tabIndex:-1,name:u,autoComplete:d,disabled:l,form:c,onChange:g=>s(g.target.value),...a,style:{...cC,...a.style},ref:x,defaultValue:w,children:[Xl(n)&&!m?(0,ne.jsx)("option",{value:""}):null,Array.from(f)]},h)},"SelectBubbleInput"));function WI(e){return typeof e=="function"}Re(WI,"isFunction");function Xl(e){return e===""||e===void 0}Re(Xl,"shouldShowPlaceholder");function tg(e){let t=ot(e),a=V.useRef(""),r=V.useRef(0),o=V.useCallback(s=>{let i=a.current+s;t(i),Re((function l(u){a.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}),"updateSearch")(i)},[t]),n=V.useCallback(()=>{a.current="",window.clearTimeout(r.current)},[]);return V.useEffect(()=>()=>window.clearTimeout(r.current),[]),[a,o,n]}Re(tg,"useTypeaheadSearch");function ag(e,t,a){let o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,n=a?e.indexOf(a):-1,s=GI(e,Math.max(n,0));o.length===1&&(s=s.filter(u=>u!==a));let l=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==a?l:void 0}Re(ag,"findNextItem");function GI(e,t){return e.map((a,r)=>e[(t+r)%e.length])}Re(GI,"wrapArray");var On={};co(On,{Content:()=>CA,List:()=>yA,Root:()=>xA,Tabs:()=>KI,TabsContent:()=>QI,TabsList:()=>XI,TabsTrigger:()=>ZI,Trigger:()=>wA,createTabsScope:()=>pA});var ao=N(te(),1);var to=N(ke(),1),cA=Object.defineProperty,fi=(e,t)=>cA(e,"name",{value:t,configurable:!0}),rg="Tabs",[fA,pA]=at(rg,[ui]),$I=ui(),[mA,og]=fA(rg),KI=ao.forwardRef(fi(function(t,a){let{__scopeTabs:r,value:o,onValueChange:n,defaultValue:s,orientation:i="horizontal",dir:l,activationMode:u="automatic",...d}=t,c=$r(l),[f,h]=Wt({prop:o,onChange:n,defaultProp:s??"",caller:rg});return(0,to.jsx)(mA,{scope:r,baseId:dt(),value:f,onValueChange:h,orientation:i,dir:c,activationMode:u,children:(0,to.jsx)(le.div,{dir:c,"data-orientation":i,...d,ref:a})})},"Tabs")),hA="TabsList",XI=ao.forwardRef(fi(function(t,a){let{__scopeTabs:r,loop:o=!0,...n}=t,s=og(hA,r),i=$I(r);return(0,to.jsx)(Sc,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:o,children:(0,to.jsx)(le.div,{role:"tablist","aria-orientation":s.orientation,...n,ref:a})})},"TabsList")),gA="TabsTrigger",ZI=ao.forwardRef(fi(function(t,a){let{__scopeTabs:r,value:o,disabled:n=!1,...s}=t,i=og(gA,r),l=$I(r),u=ng(i.baseId,o),d=sg(i.baseId,o),c=o===i.value;return(0,to.jsx)(Lc,{asChild:!0,...l,focusable:!n,active:c,children:(0,to.jsx)(le.button,{type:"button",role:"tab","aria-selected":c,"aria-controls":d,"data-state":c?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:u,...s,ref:a,onMouseDown:G(t.onMouseDown,f=>{!n&&f.button===0&&f.ctrlKey===!1?i.onValueChange(o):f.preventDefault()}),onKeyDown:G(t.onKeyDown,f=>{n||f.target!==f.currentTarget||[" ","Enter"].includes(f.key)&&i.onValueChange(o)}),onFocus:G(t.onFocus,()=>{let f=i.activationMode!=="manual";!c&&!n&&f&&i.onValueChange(o)})})})},"TabsTrigger")),vA="TabsContent",QI=ao.forwardRef(fi(function(t,a){let{__scopeTabs:r,value:o,forceMount:n,children:s,...i}=t,l=og(vA,r),u=ng(l.baseId,o),d=sg(l.baseId,o),c=o===l.value,f=ao.useRef(c);return ao.useEffect(()=>{let h=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(h)},[]),(0,to.jsx)(Gt,{present:n||c,children:({present:h})=>(0,to.jsx)(le.div,{"data-state":c?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":u,hidden:!h,id:d,tabIndex:0,...i,ref:a,style:{...t.style,animationDuration:f.current?"0s":void 0},children:h&&s})})},"TabsContent"));function ng(e,t){return`${e}-trigger-${t}`}fi(ng,"makeTriggerId");function sg(e,t){return`${e}-content-${t}`}fi(sg,"makeContentId");var xA=KI,yA=XI,wA=ZI,CA=QI;var vr=N(te(),1);var YI=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,JI=vu,Go=(e,t)=>a=>{var r;if(t?.variants==null)return JI(e,a?.class,a?.className);let{variants:o,defaultVariants:n}=t,s=Object.keys(o).map(u=>{let d=a?.[u],c=n?.[u];if(d===null)return null;let f=YI(d)||YI(c);return o[u][f]}),i=a&&Object.entries(a).reduce((u,d)=>{let[c,f]=d;return f===void 0||(u[c]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:c,className:f,...h}=d;return Object.entries(h).every(v=>{let[x,w]=v;return Array.isArray(w)?w.includes({...n,...i}[x]):{...n,...i}[x]===w})?[...u,c,f]:u},[]);return JI(e,s,l,a?.class,a?.className)};var vi=N(ke(),1),Ie=N(te(),1);function SA(e,t){let a=getComputedStyle(e),r=parseFloat(a.fontSize);return t*r}function LA(e,t){let a=getComputedStyle(e.ownerDocument.documentElement),r=parseFloat(a.fontSize);return t*r}function IA(e){return e/100*window.innerHeight}function bA(e){return e/100*window.innerWidth}function kA(e){switch(typeof e){case"number":return[e,"px"];case"string":{let t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}function Zl({groupSize:e,panelElement:t,styleProp:a}){let r,[o,n]=kA(a);switch(n){case"%":{r=o/100*e;break}case"px":{r=o;break}case"rem":{r=LA(t,o);break}case"em":{r=SA(t,o);break}case"vh":{r=IA(o);break}case"vw":{r=bA(o);break}}return r}function Zt(e){return parseFloat(e.toFixed(3))}function xi({group:e}){let{orientation:t,panels:a}=e;return a.reduce((r,o)=>(r+=t==="horizontal"?o.element.offsetWidth:o.element.offsetHeight,r),0)}function lg(e){let{panels:t}=e,a=xi({group:e});return a===0?t.map(r=>({groupResizeBehavior:r.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:r.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:r.panelConstraints.disabled,minSize:0,maxSize:100,panelId:r.id})):t.map(r=>{let{element:o,panelConstraints:n}=r,s=0;if(n.collapsedSize!==void 0){let d=Zl({groupSize:a,panelElement:o,styleProp:n.collapsedSize});s=Zt(d/a*100)}let i;if(n.defaultSize!==void 0){let d=Zl({groupSize:a,panelElement:o,styleProp:n.defaultSize});i=Zt(d/a*100)}let l=0;if(n.minSize!==void 0){let d=Zl({groupSize:a,panelElement:o,styleProp:n.minSize});l=Zt(d/a*100)}let u=100;if(n.maxSize!==void 0){let d=Zl({groupSize:a,panelElement:o,styleProp:n.maxSize});u=Zt(d/a*100)}return{groupResizeBehavior:n.groupResizeBehavior,collapsedSize:s,collapsible:n.collapsible===!0,defaultSize:i,disabled:n.disabled,minSize:l,maxSize:u,panelId:r.id}})}function Ue(e,t="Assertion error"){if(!e)throw Error(t)}function ug(e,t){return Array.from(t).sort(e==="horizontal"?RA:PA)}function RA(e,t){let a=e.element.offsetLeft-t.element.offsetLeft;return a!==0?a:e.element.offsetWidth-t.element.offsetWidth}function PA(e,t){let a=e.element.offsetTop-t.element.offsetTop;return a!==0?a:e.element.offsetHeight-t.element.offsetHeight}function vb(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function xb(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function TA({orientation:e,rects:t,targetRect:a}){let r={x:a.x+a.width/2,y:a.y+a.height/2},o,n=Number.MAX_VALUE;for(let s of t){let{x:i,y:l}=xb(r,s),u=e==="horizontal"?i:l;u<n&&(n=u,o=s)}return Ue(o,"No rect found"),o}var Ec;function MA(){return Ec===void 0&&(typeof matchMedia=="function"?Ec=!!matchMedia("(pointer:coarse)").matches:Ec=!1),Ec}function yb(e){let{element:t,orientation:a,panels:r,separators:o}=e,n=ug(a,Array.from(t.children).filter(vb).map(v=>({element:v}))).map(({element:v})=>v),s=[],i=!1,l=!1,u=-1,d=-1,c=0,f,h=[];{let v=-1;for(let x of n)x.hasAttribute("data-panel")&&(v++,x.hasAttribute("data-disabled")||(c++,u===-1&&(u=v),d=v))}if(c>1){let v=-1;for(let x of n)if(x.hasAttribute("data-panel")){v++;let w=r.find(p=>p.element===x);if(w){if(f){let p=f.element.getBoundingClientRect(),m=x.getBoundingClientRect(),g;if(l){let y=a==="horizontal"?new DOMRect(p.right,p.top,0,p.height):new DOMRect(p.left,p.bottom,p.width,0),C=a==="horizontal"?new DOMRect(m.left,m.top,0,m.height):new DOMRect(m.left,m.top,m.width,0);switch(h.length){case 0:{g=[y,C];break}case 1:{let I=h[0],k=TA({orientation:a,rects:[p,m],targetRect:I.element.getBoundingClientRect()});g=[I,k===p?C:y];break}default:{g=h;break}}}else h.length?g=h:g=[a==="horizontal"?new DOMRect(p.right,m.top,m.left-p.right,m.height):new DOMRect(m.left,p.bottom,m.width,m.top-p.bottom)];for(let y of g){let C="width"in y?y:y.element.getBoundingClientRect(),I=MA()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(C.width<I){let b=I-C.width;C=new DOMRect(C.x-b/2,C.y,C.width+b,C.height)}if(C.height<I){let b=I-C.height;C=new DOMRect(C.x,C.y-b/2,C.width,C.height+b)}let k=v<=u||v>d;!i&&!k&&s.push({group:e,groupSize:xi({group:e}),panels:[f,w],separator:"width"in y?void 0:y,rect:C}),i=!1}}l=!1,f=w,h=[]}}else if(x.hasAttribute("data-separator")){x.ariaDisabled!==null&&(i=!0);let w=o.find(p=>p.element===x);w?h.push(w):(f=void 0,h=[])}else l=!0}return s}var Fc=class{#e={};addListener(t,a){let r=this.#e[t];return r===void 0?this.#e[t]=[a]:r.includes(a)||r.push(a),()=>{this.removeListener(t,a)}}emit(t,a){let r=this.#e[t];if(r!==void 0)if(r.length===1)r[0].call(null,a);else{let o=!1,n=null,s=Array.from(r);for(let i=0;i<s.length;i++){let l=s[i];try{l.call(null,a)}catch(u){n===null&&(o=!0,n=u)}}if(o)throw n}}removeAllListeners(){this.#e={}}removeListener(t,a){let r=this.#e[t];if(r!==void 0){let o=r.indexOf(a);o>=0&&r.splice(o,1)}}},hi={cursorFlags:0,state:"inactive"},dg=new Fc;function Fn(){return hi}function DA(e){return dg.addListener("change",e)}function _A(e){let t=hi,a={...hi};a.cursorFlags=e,hi=a,dg.emit("change",{prev:t,next:a})}function gi(e){let t=hi;hi=e,dg.emit("change",{prev:t,next:e})}var AA=e=>e,ig=()=>{},wb=1,Cb=2,Sb=4,Lb=8,eb=3,tb=12,Oc;function ab(){return Oc===void 0&&(Oc=!1,typeof window<"u"&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(Oc=!0)),Oc}function EA({cursorFlags:e,groups:t,state:a}){let r=0,o=0;switch(a){case"active":case"hover":t.forEach(n=>{if(!n.mutableState.disableCursor)switch(n.orientation){case"horizontal":{r++;break}case"vertical":{o++;break}}})}if(!(r===0&&o===0)){switch(a){case"active":{if(e&&ab()){let n=(e&wb)!==0,s=(e&Cb)!==0,i=(e&Sb)!==0,l=(e&Lb)!==0;if(n)return i?"se-resize":l?"ne-resize":"e-resize";if(s)return i?"sw-resize":l?"nw-resize":"w-resize";if(i)return"s-resize";if(l)return"n-resize"}break}}return ab()?r>0&&o>0?"move":r>0?"ew-resize":"ns-resize":r>0&&o>0?"grab":r>0?"col-resize":"row-resize"}}var rb=new WeakMap;function cg(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:a}=rb.get(e)??{};a===void 0&&(a=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(a):e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]));let r=Fn();switch(r.state){case"active":case"hover":{let o=EA({cursorFlags:r.cursorFlags,groups:r.hitRegions.map(s=>s.group),state:r.state}),n=`*, *:hover {cursor: ${o} !important; }`;if(t===n)return;t=n,o?a.cssRules.length===0?a.insertRule(n):a.replaceSync(n):a.cssRules.length===1&&a.deleteRule(0);break}case"inactive":{t=void 0,a.cssRules.length===1&&a.deleteRule(0);break}}rb.set(e,{prevStyle:t,styleSheet:a})}var gr=new Map,Ib=new Fc;function OA(e){gr=new Map(gr),gr.delete(e)}function ob(e,t){for(let[a]of gr)if(a.id===e)return a}function $o(e,t){for(let[a,r]of gr)if(a.id===e)return r;if(t)throw Error(`Could not find data for Group with id ${e}`)}function Un(){return gr}function fg(e,t){return Ib.addListener("groupChange",a=>{a.group.id===e&&t(a)})}function ro(e,t,a){let r=gr.get(e);gr=new Map(gr),gr.set(e,t),Ib.emit("groupChange",{group:e,isUserInteraction:a?.isUserInteraction===!0,prev:r,next:t})}function bb(e){let t=Fn(),a=!1;return t.state==="active"&&(gi({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(cg(e),a=!0,t.hitRegions.forEach(r=>{let o=$o(r.group.id,!0);ro(r.group,o,{isUserInteraction:!0})}))),a}function nb(e){e.defaultPrevented||bb(e.currentTarget)}function NA(e,t,a){let r,o={x:1/0,y:1/0};for(let n of t){let s=xb(a,n.rect);switch(e){case"horizontal":{s.x<=o.x&&(r=n,o=s);break}case"vertical":{s.y<=o.y&&(r=n,o=s);break}}}return r?{distance:o,hitRegion:r}:void 0}function FA(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function zA(e,t){if(e===t)throw new Error("Cannot compare node with itself");let a={a:lb(e),b:lb(t)},r;for(;a.a.at(-1)===a.b.at(-1);)r=a.a.pop(),a.b.pop();Ue(r,"Stacking order can only be calculated for elements with a common ancestor");let o={a:ib(sb(a.a)),b:ib(sb(a.b))};if(o.a===o.b){let n=r.childNodes,s={a:a.a.at(-1),b:a.b.at(-1)},i=n.length;for(;i--;){let l=n[i];if(l===s.a)return 1;if(l===s.b)return-1}}return Math.sign(o.a-o.b)}var BA=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function UA(e){let t=getComputedStyle(kb(e)??e).display;return t==="flex"||t==="inline-flex"}function HA(e){let t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||UA(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||BA.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function sb(e){let t=e.length;for(;t--;){let a=e[t];if(Ue(a,"Missing node"),HA(a))return a}return null}function ib(e){return e&&Number(getComputedStyle(e).zIndex)||0}function lb(e){let t=[];for(;e;)t.push(e),e=kb(e);return t}function kb(e){let{parentNode:t}=e;return FA(t)?t.host:t}function jA(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function VA({groupElement:e,hitRegion:t,pointerEventTarget:a}){if(!vb(a)||a.contains(e)||e.contains(a))return!0;if(zA(a,e)>0){let r=a;for(;r;){if(r.contains(e))return!0;if(jA(r.getBoundingClientRect(),t))return!1;r=r.parentElement}}return!0}function pg(e,t){let a=[];return t.forEach((r,o)=>{if(o.disabled)return;let n=yb(o),s=NA(o.orientation,n,{x:e.clientX,y:e.clientY});s&&s.distance.x<=0&&s.distance.y<=0&&VA({groupElement:o.element,hitRegion:s.hitRegion.rect,pointerEventTarget:e.target})&&a.push(s.hitRegion)}),a}function qA(e,t){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!=t[a])return!1;return!0}function zt(e,t,a=0){return Math.abs(Zt(e)-Zt(t))<=a}function hr(e,t){return zt(e,t)?0:e>t?1:-1}function mi({overrideDisabledPanels:e,panelConstraints:t,prevSize:a,size:r}){let{collapsedSize:o=0,collapsible:n,disabled:s,maxSize:i=100,minSize:l=0}=t;if(s&&!e)return a;if(hr(r,l)<0)if(n){let u=(o+l)/2;hr(r,u)<0?r=o:r=l}else r=l;return r=Math.min(i,r),r=Zt(r),r}function Yl({delta:e,initialLayout:t,panelConstraints:a,pivotIndices:r,prevLayout:o,trigger:n}){if(zt(e,0))return t;let s=n==="imperative-api",i=Object.values(t),l=Object.values(o),u=[...i],[d,c]=r;Ue(d!=null,"Invalid first pivot index"),Ue(c!=null,"Invalid second pivot index");let f=0;switch(n){case"keyboard":{{let x=e<0?c:d,w=a[x];Ue(w,`Panel constraints not found for index ${x}`);let{collapsedSize:p=0,collapsible:m,minSize:g=0}=w;if(m){let y=i[x];if(Ue(y!=null,`Previous layout not found for panel index ${x}`),zt(y,p)){let C=g-y;hr(C,Math.abs(e))>0&&(e=e<0?0-C:C)}}}{let x=e<0?d:c,w=a[x];Ue(w,`No panel constraints found for index ${x}`);let{collapsedSize:p=0,collapsible:m,minSize:g=0}=w;if(m){let y=i[x];if(Ue(y!=null,`Previous layout not found for panel index ${x}`),zt(y,g)){let C=y-p;hr(C,Math.abs(e))>0&&(e=e<0?0-C:C)}}}break}default:{let x=e<0?c:d,w=a[x];Ue(w,`Panel constraints not found for index ${x}`);let p=i[x],{collapsible:m,collapsedSize:g,minSize:y}=w;if(m&&hr(p,y)<0)if(e>0){let C=y-g,I=C/2,k=p+e;hr(k,y)<0&&(e=hr(e,I)<=0?0:C)}else{let C=y-g,I=100-C/2,k=p-e;hr(k,y)<0&&(e=hr(100+e,I)>0?0:-C)}break}}{let x=e<0?1:-1,w=e<0?c:d,p=0;for(;;){let g=i[w];Ue(g!=null,`Previous layout not found for panel index ${w}`);let y=mi({overrideDisabledPanels:s,panelConstraints:a[w],prevSize:g,size:100})-g;if(p+=y,w+=x,w<0||w>=a.length)break}let m=Math.min(Math.abs(e),Math.abs(p));e=e<0?0-m:m}{let x=e<0?d:c;for(;x>=0&&x<a.length;){let w=Math.abs(e)-Math.abs(f),p=i[x];Ue(p!=null,`Previous layout not found for panel index ${x}`);let m=p-w,g=mi({overrideDisabledPanels:s,panelConstraints:a[x],prevSize:p,size:m});if(!zt(p,g)&&(f+=p-g,u[x]=g,f.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?x--:x++}}if(qA(l,u))return o;{let x=e<0?c:d,w=i[x];Ue(w!=null,`Previous layout not found for panel index ${x}`);let p=w+f,m=mi({overrideDisabledPanels:s,panelConstraints:a[x],prevSize:w,size:p});if(u[x]=m,!zt(m,p)){let g=p-m,y=e<0?c:d;for(;y>=0&&y<a.length;){let C=u[y];Ue(C!=null,`Previous layout not found for panel index ${y}`);let I=C+g,k=mi({overrideDisabledPanels:s,panelConstraints:a[y],prevSize:C,size:I});if(zt(C,k)||(g-=k-C,u[y]=k),zt(g,0))break;e>0?y--:y++}}}let h=Object.values(u).reduce((x,w)=>w+x,0);if(!zt(h,100,.1))return o;let v=Object.keys(o);return u.reduce((x,w,p)=>(x[v[p]]=w,x),{})}function zn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let a in e)if(t[a]===void 0||hr(e[a],t[a])!==0)return!1;return!0}function Bn({layout:e,panelConstraints:t}){let a=Object.values(e),r=[...a],o=r.reduce((i,l)=>i+l,0);if(r.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${r.map(i=>`${i}%`).join(", ")}`);if(!zt(o,100)&&r.length>0)for(let i=0;i<t.length;i++){let l=r[i];Ue(l!=null,`No layout data found for index ${i}`);let u=100/o*l;r[i]=u}let n=0;for(let i=0;i<t.length;i++){let l=a[i];Ue(l!=null,`No layout data found for index ${i}`);let u=r[i];Ue(u!=null,`No layout data found for index ${i}`);let d=mi({overrideDisabledPanels:!0,panelConstraints:t[i],prevSize:l,size:u});u!=d&&(n+=u-d,r[i]=d)}if(!zt(n,0))for(let i=0;i<t.length;i++){let l=r[i];Ue(l!=null,`No layout data found for index ${i}`);let u=l+n,d=mi({overrideDisabledPanels:!0,panelConstraints:t[i],prevSize:l,size:u});if(l!==d&&(n-=d-l,r[i]=d,zt(n,0)))break}let s=Object.keys(e);return r.reduce((i,l,u)=>(i[s[u]]=l,i),{})}function Rb({groupId:e,panelId:t}){let a=()=>{let l=Un();for(let[u,{defaultLayoutDeferred:d,derivedPanelConstraints:c,layout:f,groupSize:h,separatorToPanels:v}]of l)if(u.id===e)return{defaultLayoutDeferred:d,derivedPanelConstraints:c,group:u,groupSize:h,layout:f,separatorToPanels:v};throw Error(`Group ${e} not found`)},r=()=>{let l=a().derivedPanelConstraints.find(u=>u.panelId===t);if(l!==void 0)return l;throw Error(`Panel constraints not found for Panel ${t}`)},o=()=>{let l=a().group.panels.find(u=>u.id===t);if(l!==void 0)return l;throw Error(`Layout not found for Panel ${t}`)},n=()=>{let l=a().layout[t];if(l!==void 0)return l;throw Error(`Layout not found for Panel ${t}`)},s=({nextSize:l,panels:u,prevLayout:d,derivedPanelConstraints:c})=>{let f=n(),h=u.findIndex(w=>w.id===t),v=h===0,x=h===u.length-1;if(x&&l<f&&(v||u.slice(0,h).every((w,p)=>{let m=c[p];return m?.collapsible&&zt(m.collapsedSize,d[m.panelId])}))){let w=u.slice(0,h).reduce((p,m)=>p+d[m.id],0);return{...d,[t]:Zt(100-w)}}return Yl({delta:x?f-l:l-f,initialLayout:d,panelConstraints:c,pivotIndices:x?[h-1,h]:[h,h+1],prevLayout:d,trigger:"imperative-api"})},i=l=>{let u=n();if(l===u)return;let{defaultLayoutDeferred:d,derivedPanelConstraints:c,group:f,groupSize:h,layout:v,separatorToPanels:x}=a(),w=s({nextSize:l,panels:f.panels,prevLayout:v,derivedPanelConstraints:c}),p=Bn({layout:w,panelConstraints:c});zn(v,p)||ro(f,{defaultLayoutDeferred:d,derivedPanelConstraints:c,groupSize:h,layout:p,separatorToPanels:x})};return{collapse:()=>{let{collapsible:l,collapsedSize:u}=r(),{mutableValues:d}=o(),c=n();l&&c!==u&&(d.expandToSize=c,i(u))},expand:()=>{let{collapsible:l,collapsedSize:u,minSize:d}=r(),{mutableValues:c}=o(),f=n();if(l&&f===u){let h=c.expandToSize??d;h===0&&(h=1),i(h)}},getSize:()=>{let{group:l}=a(),u=n(),{element:d}=o(),c=l.orientation==="horizontal"?d.offsetWidth:d.offsetHeight;return{asPercentage:u,inPixels:c}},isCollapsed:()=>{let{collapsible:l,collapsedSize:u}=r(),d=n();return l&&zt(u,d)},resize:l=>{let{group:u}=a(),{element:d}=o(),c=xi({group:u}),f=Zl({groupSize:c,panelElement:d,styleProp:l}),h=Zt(f/c*100);i(h)}}}function ub(e){if(e.defaultPrevented)return;let t=Un();pg(e,t).forEach(a=>{if(a.separator&&!a.separator.disableDoubleClick){let r=a.panels.find(o=>o.panelConstraints.defaultSize!==void 0);if(r){let o=r.panelConstraints.defaultSize,n=Rb({groupId:a.group.id,panelId:r.id});n&&o!==void 0&&(n.resize(o),e.preventDefault())}}})}function Nc(e){let t=Un();for(let[a]of t)if(a.separators.some(r=>r.element===e))return a;throw Error("Could not find parent Group for separator element")}function Pb({groupId:e}){let t=()=>{let a=Un();for(let[r,o]of a)if(r.id===e)return{group:r,...o};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){let{defaultLayoutDeferred:a,layout:r}=t();return a?{}:r},setLayout(a){let{defaultLayoutDeferred:r,derivedPanelConstraints:o,group:n,groupSize:s,layout:i,separatorToPanels:l}=t(),u=Bn({layout:a,panelConstraints:o});return r?i:(zn(i,u)||ro(n,{defaultLayoutDeferred:r,derivedPanelConstraints:o,groupSize:s,layout:u,separatorToPanels:l}),u)}}}function Nn(e,t){let a=Nc(e),r=$o(a.id,!0),o=a.separators.find(d=>d.element===e);Ue(o,"Matching separator not found");let n=r.separatorToPanels.get(o);Ue(n,"Matching panels not found");let s=n.map(d=>a.panels.indexOf(d)),i=Pb({groupId:a.id}).getLayout(),l=Yl({delta:t,initialLayout:i,panelConstraints:r.derivedPanelConstraints,pivotIndices:s,prevLayout:i,trigger:"keyboard"}),u=Bn({layout:l,panelConstraints:r.derivedPanelConstraints});zn(i,u)||ro(a,{defaultLayoutDeferred:r.defaultLayoutDeferred,derivedPanelConstraints:r.derivedPanelConstraints,groupSize:r.groupSize,layout:u,separatorToPanels:r.separatorToPanels},{isUserInteraction:!0})}function db(e){if(e.defaultPrevented)return;let t=e.currentTarget,a=Nc(t);if(!a.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),a.orientation==="vertical"&&Nn(t,5);break}case"ArrowLeft":{e.preventDefault(),a.orientation==="horizontal"&&Nn(t,-5);break}case"ArrowRight":{e.preventDefault(),a.orientation==="horizontal"&&Nn(t,5);break}case"ArrowUp":{e.preventDefault(),a.orientation==="vertical"&&Nn(t,-5);break}case"End":{e.preventDefault(),Nn(t,100);break}case"Enter":{e.preventDefault();let r=Nc(t),o=$o(r.id,!0),{derivedPanelConstraints:n,layout:s,separatorToPanels:i}=o,l=r.separators.find(f=>f.element===t);Ue(l,"Matching separator not found");let u=i.get(l);Ue(u,"Matching panels not found");let d=u[0],c=n.find(f=>f.panelId===d.id);if(Ue(c,"Panel metadata not found"),c.collapsible){let f=s[d.id],h=c.collapsedSize===f?r.mutableState.expandedPanelSizes[d.id]??c.minSize:c.collapsedSize;Nn(t,h-f)}break}case"F6":{e.preventDefault();let r=Nc(t).separators.map(s=>s.element),o=Array.from(r).findIndex(s=>s===e.currentTarget);Ue(o!==null,"Index not found");let n=e.shiftKey?o>0?o-1:r.length-1:o+1<r.length?o+1:0;r[n].focus({preventScroll:!0});break}case"Home":{e.preventDefault(),Nn(t,-100);break}}}function cb(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;let t=Un(),a=pg(e,t),r=new Map,o=!1;a.forEach(n=>{n.separator&&(o||(o=!0,n.separator.element.focus({focusVisible:!1,preventScroll:!0})));let s=t.get(n.group);s&&r.set(n.group,s.layout)}),gi({cursorFlags:0,hitRegions:a,initialLayoutMap:r,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),a.length&&e.preventDefault()}function Tb({document:e,event:t,hitRegions:a,initialLayoutMap:r,mountedGroups:o,pointerDownAtPoint:n,prevCursorFlags:s}){let i=0;a.forEach(u=>{let{group:d,groupSize:c}=u,{orientation:f,panels:h}=d,{disableCursor:v}=d.mutableState,x=0;n?f==="horizontal"?x=(t.clientX-n.x)/c*100:x=(t.clientY-n.y)/c*100:f==="horizontal"?x=t.clientX<0?-100:100:x=t.clientY<0?-100:100;let w=r.get(d),p=o.get(d);if(!w||!p)return;let{defaultLayoutDeferred:m,derivedPanelConstraints:g,groupSize:y,layout:C,separatorToPanels:I}=p;if(g&&C&&I){let k=Yl({delta:x,initialLayout:w,panelConstraints:g,pivotIndices:u.panels.map(b=>h.indexOf(b)),prevLayout:C,trigger:"mouse-or-touch"});if(zn(k,C)){if(x!==0&&!v)switch(f){case"horizontal":{i|=x<0?wb:Cb;break}case"vertical":{i|=x<0?Sb:Lb;break}}}else ro(u.group,{defaultLayoutDeferred:m,derivedPanelConstraints:g,groupSize:y,layout:k,separatorToPanels:I})}});let l=0;t.movementX===0?l|=s&eb:l|=i&eb,t.movementY===0?l|=s&tb:l|=i&tb,_A(l),cg(e)}function fb(e){let t=Un(),a=Fn();a.state==="active"&&Tb({document:e.currentTarget,event:e,hitRegions:a.hitRegions,initialLayoutMap:a.initialLayoutMap,mountedGroups:t,prevCursorFlags:a.cursorFlags})}function pb(e){if(e.defaultPrevented)return;let t=Fn(),a=Un();switch(t.state){case"active":{if(e.buttons===0){gi({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(r=>{let o=$o(r.group.id,!0);ro(r.group,o,{isUserInteraction:!0})});return}for(let r of t.hitRegions)if(r.separator){let{element:o}=r.separator;o.hasPointerCapture?.(e.pointerId)||o.setPointerCapture?.(e.pointerId)}Tb({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:a,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break}default:{let r=pg(e,a);r.length===0?t.state!=="inactive"&&gi({cursorFlags:0,state:"inactive"}):gi({cursorFlags:0,hitRegions:r,state:"hover"}),cg(e.currentTarget);break}}}function mb(e){e.relatedTarget instanceof HTMLIFrameElement&&Fn().state==="hover"&&gi({cursorFlags:0,state:"inactive"})}function hb(e){e.defaultPrevented||e.pointerType==="mouse"&&e.button>0||bb(e.currentTarget)&&e.preventDefault()}function gb(e){let t=0,a=0,r={};for(let n of e)if(n.defaultSize!==void 0){t++;let s=Zt(n.defaultSize);a+=s,r[n.panelId]=s}else r[n.panelId]=void 0;let o=e.length-t;if(o!==0){let n=Zt((100-a)/o);for(let s of e)s.defaultSize===void 0&&(r[s.panelId]=n)}return r}function WA(e,t,a){if(!a[0])return;let r=e.panels.find(l=>l.element===t);if(!r||!r.onResize)return;let o=xi({group:e}),n=e.orientation==="horizontal"?r.element.offsetWidth:r.element.offsetHeight,s=r.mutableValues.prevSize,i={asPercentage:Zt(n/o*100),inPixels:n};r.mutableValues.prevSize=i,r.onResize(i,r.id,s)}function GA(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let a in e)if(e[a]!==t[a])return!1;return!0}function $A({group:e,nextGroupSize:t,prevGroupSize:a,prevLayout:r}){if(a<=0||t<=0||a===t)return r;let o=0,n=0,s=!1,i=new Map,l=[];for(let c of e.panels){let f=r[c.id]??0;if(c.panelConstraints.groupResizeBehavior==="preserve-pixel-size"){s=!0;let h=f/100*a,v=Zt(h/t*100);i.set(c.id,v),o+=v}else l.push(c.id),n+=f}if(!s||l.length===0)return r;let u=100-o,d={...r};if(i.forEach((c,f)=>{d[f]=c}),n>0)for(let c of l){let f=r[c]??0;d[c]=Zt(f/n*u)}else{let c=Zt(u/l.length);for(let f of l)d[f]=c}return d}function KA(e,t){let a=e.map(o=>o.id),r=Object.keys(t);if(a.length!==r.length)return!1;for(let o of a)if(!r.includes(o))return!1;return!0}var pi=new Map;function XA(e){let t=!0;Ue(e.element.ownerDocument.defaultView,"Cannot register an unmounted Group");let a=e.element.ownerDocument.defaultView.ResizeObserver,r=new Set,o=new Set,n=new a(v=>{for(let x of v){let{borderBoxSize:w,target:p}=x;if(p===e.element){if(t){let m=xi({group:e});if(m===0)return;let g=$o(e.id);if(!g)return;let y=lg(e),C=g.defaultLayoutDeferred?gb(y):g.layout,I=$A({group:e,nextGroupSize:m,prevGroupSize:g.groupSize,prevLayout:C}),k=Bn({layout:I,panelConstraints:y});if(!g.defaultLayoutDeferred&&zn(g.layout,k)&&GA(g.derivedPanelConstraints,y)&&g.groupSize===m)return;ro(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:y,groupSize:m,layout:k,separatorToPanels:g.separatorToPanels})}}else WA(e,p,w)}});n.observe(e.element),e.panels.forEach(v=>{Ue(!r.has(v.id),`Panel ids must be unique; id "${v.id}" was used more than once`),r.add(v.id),v.onResize&&n.observe(v.element)});let s=xi({group:e}),i=lg(e),l=e.panels.map(({id:v})=>v).join(","),u=e.mutableState.defaultLayout;u&&(KA(e.panels,u)||(u=void 0));let d=e.mutableState.layouts[l]??u??gb(i),c=Bn({layout:d,panelConstraints:i}),f=e.element.ownerDocument;pi.set(f,(pi.get(f)??0)+1);let h=new Map;return yb(e).forEach(v=>{v.separator&&h.set(v.separator,v.panels)}),ro(e,{defaultLayoutDeferred:s===0,derivedPanelConstraints:i,groupSize:s,layout:c,separatorToPanels:h}),e.separators.forEach(v=>{Ue(!o.has(v.id),`Separator ids must be unique; id "${v.id}" was used more than once`),o.add(v.id),v.element.addEventListener("keydown",db)}),pi.get(f)===1&&(f.addEventListener("contextmenu",nb,!0),f.addEventListener("dblclick",ub,!0),f.addEventListener("pointerdown",cb,!0),f.addEventListener("pointerleave",fb),f.addEventListener("pointermove",pb),f.addEventListener("pointerout",mb),f.addEventListener("pointerup",hb,!0)),function(){t=!1,pi.set(f,Math.max(0,(pi.get(f)??0)-1)),OA(e),e.separators.forEach(v=>{v.element.removeEventListener("keydown",db)}),pi.get(f)||(f.removeEventListener("contextmenu",nb,!0),f.removeEventListener("dblclick",ub,!0),f.removeEventListener("pointerdown",cb,!0),f.removeEventListener("pointerleave",fb),f.removeEventListener("pointermove",pb),f.removeEventListener("pointerout",mb),f.removeEventListener("pointerup",hb,!0)),n.disconnect()}}function ZA(){let[e,t]=(0,Ie.useState)({}),a=(0,Ie.useCallback)(()=>t({}),[]);return[e,a]}function mg(e){let t=(0,Ie.useId)();return`${e??t}`}var Hn=typeof window<"u"?Ie.useLayoutEffect:Ie.useEffect;function Ql(e){let t=(0,Ie.useRef)(e);return Hn(()=>{t.current=e},[e]),(0,Ie.useCallback)((...a)=>t.current?.(...a),[t])}function hg(...e){return Ql(t=>{e.forEach(a=>{if(a)switch(typeof a){case"function":{a(t);break}case"object":{a.current=t;break}}})})}function gg(e){let t=(0,Ie.useRef)({...e});return Hn(()=>{for(let a in e)t.current[a]=e[a]},[e]),t.current}var Mb=(0,Ie.createContext)(null);function QA(e,t){let a=(0,Ie.useRef)({getLayout:()=>({}),setLayout:AA});(0,Ie.useImperativeHandle)(t,()=>a.current,[]),Hn(()=>{Object.assign(a.current,Pb({groupId:e}))})}function Db({children:e,className:t,defaultLayout:a,disableCursor:r,disabled:o,elementRef:n,groupRef:s,id:i,onLayoutChange:l,onLayoutChanged:u,orientation:d="horizontal",resizeTargetMinimumSize:c={coarse:20,fine:10},style:f,...h}){let v=(0,Ie.useRef)({onLayoutChange:{},onLayoutChanged:{}}),x=Ql(D=>{zn(v.current.onLayoutChange,D)||(v.current.onLayoutChange=D,l?.(D))}),w=Ql((D,E)=>{zn(v.current.onLayoutChanged,D)||(v.current.onLayoutChanged=D,u?.(D,{isUserInteraction:E}))}),p=mg(i),m=(0,Ie.useRef)(null),[g,y]=ZA(),C=(0,Ie.useRef)({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:c,separators:[]}),I=hg(m,n);QA(p,s);let k=Ql((D,E)=>{let z=Fn(),O=ob(D),_=$o(D);if(_){let B=!1;return z.state==="active"&&(B=z.hitRegions.some(j=>j.group===O)),{flexGrow:_.layout[E]??1,pointerEvents:B?"none":void 0}}if(a?.[E])return{flexGrow:a?.[E]}}),b=gg({defaultLayout:a,disableCursor:r}),T=(0,Ie.useMemo)(()=>({get disableCursor(){return!!b.disableCursor},getPanelStyles:k,id:p,orientation:d,registerPanel:D=>{let E=C.current;return E.panels=ug(d,[...E.panels,D]),y(),()=>{E.panels=E.panels.filter(z=>z!==D),y()}},registerSeparator:D=>{let E=C.current;return E.separators=ug(d,[...E.separators,D]),y(),()=>{E.separators=E.separators.filter(z=>z!==D),y()}},updatePanelProps:(D,{disabled:E})=>{let z=C.current.panels.find(B=>B.id===D);z&&(z.panelConstraints.disabled=E);let O=ob(p),_=$o(p);O&&_&&ro(O,{..._,derivedPanelConstraints:lg(O)})},updateSeparatorProps:(D,{disabled:E,disableDoubleClick:z})=>{let O=C.current.separators.find(_=>_.id===D);O&&(O.disabled=E,O.disableDoubleClick=z)}}),[k,p,y,d,b]),A=(0,Ie.useRef)(null);return Hn(()=>{let D=m.current;if(D===null)return;let E=C.current,z;if(b.defaultLayout!==void 0&&Object.keys(b.defaultLayout).length===E.panels.length){z={};for(let P of E.panels){let se=b.defaultLayout[P.id];se!==void 0&&(z[P.id]=se)}}let O={disabled:!!o,element:D,id:p,mutableState:{defaultLayout:z,disableCursor:!!b.disableCursor,expandedPanelSizes:C.current.lastExpandedPanelSizes,layouts:C.current.layouts},orientation:d,panels:E.panels,resizeTargetMinimumSize:E.resizeTargetMinimumSize,separators:E.separators};A.current=O;let _=XA(O),{defaultLayoutDeferred:B,derivedPanelConstraints:j,layout:W}=$o(O.id,!0);!B&&j.length>0&&(x(W),w(W,!1));let ee=fg(p,P=>{let{defaultLayoutDeferred:se,derivedPanelConstraints:ie,layout:H}=P.next;if(se||ie.length===0)return;let ve=O.panels.map(({id:fe})=>fe).join(",");O.mutableState.layouts[ve]=H,ie.forEach(fe=>{if(fe.collapsible){let{layout:Ae}=P.prev??{};if(Ae){let K=zt(fe.collapsedSize,H[fe.panelId]),oe=zt(fe.collapsedSize,Ae[fe.panelId]);K&&!oe&&(O.mutableState.expandedPanelSizes[fe.panelId]=Ae[fe.panelId])}}});let Se=Fn().state!=="active";x(H),Se&&w(H,P.isUserInteraction)});return()=>{A.current=null,_(),ee()}},[o,p,w,x,d,g,b]),(0,Ie.useEffect)(()=>{let D=A.current;D&&(D.mutableState.defaultLayout=a,D.mutableState.disableCursor=!!r)}),(0,vi.jsx)(Mb.Provider,{value:T,children:(0,vi.jsx)("div",{...h,className:t,"data-group":!0,"data-testid":p,id:p,ref:I,style:{height:"100%",width:"100%",overflow:"hidden",...f,display:"flex",flexDirection:d==="horizontal"?"row":"column",flexWrap:"nowrap",touchAction:d==="horizontal"?"pan-y":"pan-x"},children:e})})}Db.displayName="Group";function vg(){let e=(0,Ie.useContext)(Mb);return Ue(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function YA(e,t){let{id:a}=vg(),r=(0,Ie.useRef)({collapse:ig,expand:ig,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:ig});(0,Ie.useImperativeHandle)(t,()=>r.current,[]),Hn(()=>{Object.assign(r.current,Rb({groupId:a,panelId:e}))})}function _b({children:e,className:t,collapsedSize:a="0%",collapsible:r=!1,defaultSize:o,disabled:n,elementRef:s,groupResizeBehavior:i="preserve-relative-size",id:l,maxSize:u="100%",minSize:d="0%",onResize:c,panelRef:f,style:h,...v}){let x=!!l,w=mg(l),p=gg({disabled:n}),m=(0,Ie.useRef)(null),g=hg(m,s),{getPanelStyles:y,id:C,orientation:I,registerPanel:k,updatePanelProps:b}=vg(),T=c!==null,A=Ql((O,_,B)=>{c?.(O,l,B)});Hn(()=>{let O=m.current;if(O!==null){let _={element:O,id:w,idIsStable:x,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:T?A:void 0,panelConstraints:{groupResizeBehavior:i,collapsedSize:a,collapsible:r,defaultSize:o,disabled:p.disabled,maxSize:u,minSize:d}};return k(_)}},[i,a,r,o,T,w,x,u,d,A,k,p]),(0,Ie.useEffect)(()=>{b(w,{disabled:n})},[n,w,b]),YA(w,f);let D=()=>{let O=y(C,w);if(O)return JSON.stringify(O)},E=(0,Ie.useSyncExternalStore)(O=>fg(C,O),D,D),z;return E?z=JSON.parse(E):o!==void 0?z={flexGrow:void 0,flexShrink:void 0,flexBasis:o}:z={flexGrow:1},(0,vi.jsx)("div",{...v,"data-disabled":n||void 0,"data-panel":!0,"data-testid":w,id:w,ref:g,style:{...JA,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...z},children:(0,vi.jsx)("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...h,touchAction:I==="horizontal"?"pan-y":"pan-x"},children:e})})}_b.displayName="Panel";var JA={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function eE({layout:e,panelConstraints:t,panelId:a,panelIndex:r}){let o,n,s=e[a],i=t.find(l=>l.panelId===a);if(i){let l=i.maxSize,u=i.collapsible?i.collapsedSize:i.minSize,d=[r,r+1];n=Bn({layout:Yl({delta:u-s,initialLayout:e,panelConstraints:t,pivotIndices:d,prevLayout:e}),panelConstraints:t})[a],o=Bn({layout:Yl({delta:l-s,initialLayout:e,panelConstraints:t,pivotIndices:d,prevLayout:e}),panelConstraints:t})[a]}return{valueControls:a,valueMax:o,valueMin:n,valueNow:s}}function Ab({children:e,className:t,disabled:a,disableDoubleClick:r,elementRef:o,id:n,style:s,...i}){let l=mg(n),u=gg({disabled:a,disableDoubleClick:r}),[d,c]=(0,Ie.useState)({}),[f,h]=(0,Ie.useState)("inactive"),[v,x]=(0,Ie.useState)(!1),w=(0,Ie.useRef)(null),p=hg(w,o),{disableCursor:m,id:g,orientation:y,registerSeparator:C,updateSeparatorProps:I}=vg(),k=y==="horizontal"?"vertical":"horizontal";Hn(()=>{let A=w.current;if(A!==null){let D={disabled:u.disabled,disableDoubleClick:u.disableDoubleClick,element:A,id:l},E=C(D),z=DA(_=>{h(_.next.state!=="inactive"&&_.next.hitRegions.some(B=>B.separator===D)?_.next.state:"inactive")}),O=fg(g,_=>{let{derivedPanelConstraints:B,layout:j,separatorToPanels:W}=_.next,ee=W.get(D);if(ee){let P=ee[0],se=ee.indexOf(P);c(eE({layout:j,panelConstraints:B,panelId:P.id,panelIndex:se}))}});return()=>{z(),O(),E()}}},[g,l,C,u]),(0,Ie.useEffect)(()=>{I(l,{disabled:a,disableDoubleClick:r})},[a,r,l,I]);let b;a&&!m&&(b="not-allowed");let T;return a?T="disabled":f==="active"?T="active":v?T="focus":T=f,(0,vi.jsx)("div",{...i,"aria-controls":d.valueControls,"aria-disabled":a||void 0,"aria-orientation":k,"aria-valuemax":d.valueMax,"aria-valuemin":d.valueMin,"aria-valuenow":d.valueNow,children:e,className:t,"data-separator":T,"data-testid":l,id:l,onBlur:()=>x(!1),onFocus:()=>x(!0),ref:p,role:"separator",style:{flexBasis:"auto",cursor:b,...s,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:a?void 0:0})}Ab.displayName="Separator";function Ee(...e){return Dv(vu(e))}var rE=Go("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}}),de=vr.forwardRef(function({className:e,variant:t="default",size:a="default",asChild:r=!1,...o},n){let s=r?Vd.Root:"button";return(0,Y.jsx)(s,{ref:n,"data-slot":"button","data-variant":t,"data-size":a,className:Ee(rE({variant:t,size:a,className:e})),...o})});var lj=Go("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function zc({className:e,...t}){return(0,Y.jsx)(Fl.Root,{"data-slot":"checkbox",className:Ee("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",e),...t,children:(0,Y.jsx)(Fl.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none [&>svg]:size-3.5",children:(0,Y.jsx)(Tr,{})})})}function xr({...e}){return(0,Y.jsx)(Wa.Root,{"data-slot":"dialog",...e})}function oE({...e}){return(0,Y.jsx)(Wa.Portal,{"data-slot":"dialog-portal",...e})}function nE({className:e,...t}){return(0,Y.jsx)(Wa.Overlay,{"data-slot":"dialog-overlay",className:Ee("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function yr({className:e,children:t,showCloseButton:a=!0,...r}){let o=yf();return(0,Y.jsxs)(oE,{children:[(0,Y.jsx)(nE,{}),(0,Y.jsxs)(Wa.Content,{"data-slot":"dialog-content",className:Ee("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...r,children:[t,a&&(0,Y.jsx)(Wa.Close,{"data-slot":"dialog-close",asChild:!0,children:(0,Y.jsxs)(de,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm",children:[(0,Y.jsx)(Or,{}),(0,Y.jsx)("span",{className:"sr-only",children:o("close")})]})})]})]})}function wr({className:e,...t}){return(0,Y.jsx)("div",{"data-slot":"dialog-header",className:Ee("flex flex-col gap-2",e),...t})}function Ko({className:e,showCloseButton:t=!1,children:a,...r}){let o=yf();return(0,Y.jsxs)("div",{"data-slot":"dialog-footer",className:Ee("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),...r,children:[a,t&&(0,Y.jsx)(Wa.Close,{asChild:!0,children:(0,Y.jsx)(de,{variant:"outline",children:o("close")})})]})}function Cr({className:e,...t}){return(0,Y.jsx)(Wa.Title,{"data-slot":"dialog-title",className:Ee("text-base leading-none font-medium",e),...t})}function Sr({className:e,...t}){return(0,Y.jsx)(Wa.Description,{"data-slot":"dialog-description",className:Ee("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}function Ya({className:e,type:t,...a}){return(0,Y.jsx)("input",{type:t,"data-slot":"input",className:Ee("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...a})}function Eb({className:e,...t}){return(0,Y.jsx)("div",{"data-slot":"input-group",role:"group",className:Ee("group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",e),...t})}var sE=Go("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]","inline-end":"order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]","block-start":"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2","block-end":"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"}},defaultVariants:{align:"inline-start"}});function Ob({className:e,align:t="inline-start",...a}){return(0,Y.jsx)("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:Ee(sE({align:t}),e),onClick:r=>{r.target.closest("button")||r.currentTarget.parentElement?.querySelector("input")?.focus()},...a})}var uj=Go("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",sm:"","icon-xs":"size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function Nb({className:e,...t}){return(0,Y.jsx)(Ya,{"data-slot":"input-group-control",className:Ee("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent",e),...t})}function Bc({...e}){return(0,Y.jsx)(eo.Root,{"data-slot":"dropdown-menu",...e})}function Uc({...e}){return(0,Y.jsx)(eo.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function Hc({className:e,align:t="start",sideOffset:a=4,...r}){return(0,Y.jsx)(eo.Portal,{children:(0,Y.jsx)(eo.Content,{"data-slot":"dropdown-menu-content",sideOffset:a,align:t,className:Ee("z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 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 data-[state=closed]:overflow-hidden data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...r})})}function va({className:e,inset:t,variant:a="default",...r}){return(0,Y.jsx)(eo.Item,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":a,className:Ee("group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",e),...r})}function Fb({className:e,...t}){return(0,Y.jsx)(eo.Separator,{"data-slot":"dropdown-menu-separator",className:Ee("-mx-1 my-1 h-px bg-border",e),...t})}function oo({className:e,...t}){return(0,Y.jsx)(Rc.Root,{"data-slot":"label",className:Ee("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function jn({...e}){return(0,Y.jsx)(Xt.Root,{"data-slot":"select",...e})}function Vn({...e}){return(0,Y.jsx)(Xt.Value,{"data-slot":"select-value",...e})}function qn({className:e,size:t="default",children:a,...r}){return(0,Y.jsxs)(Xt.Trigger,{"data-slot":"select-trigger","data-size":t,className:Ee("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[a,(0,Y.jsx)(Xt.Icon,{asChild:!0,children:(0,Y.jsx)(Mr,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function Wn({className:e,children:t,position:a="item-aligned",align:r="center",...o}){return(0,Y.jsx)(Xt.Portal,{children:(0,Y.jsxs)(Xt.Content,{"data-slot":"select-content","data-align-trigger":a==="item-aligned",className:Ee("relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,align:r,...o,children:[(0,Y.jsx)(iE,{}),(0,Y.jsx)(Xt.Viewport,{"data-position":a,className:Ee("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)",a==="popper"&&""),children:t}),(0,Y.jsx)(lE,{})]})})}function no({className:e,children:t,...a}){return(0,Y.jsxs)(Xt.Item,{"data-slot":"select-item",className:Ee("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...a,children:[(0,Y.jsx)("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center",children:(0,Y.jsx)(Xt.ItemIndicator,{children:(0,Y.jsx)(Tr,{className:"pointer-events-none"})})}),(0,Y.jsx)(Xt.ItemText,{children:t})]})}function iE({className:e,...t}){return(0,Y.jsx)(Xt.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:Ee("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,Y.jsx)(ps,{})})}function lE({className:e,...t}){return(0,Y.jsx)(Xt.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:Ee("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,Y.jsx)(Mr,{})})}var dj=3600*24*7;var cj=vr.createContext(null);var fj=Go("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! 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 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_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"}});function zb({className:e,...t}){return(0,Y.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,Y.jsx)("table",{"data-slot":"table",className:Ee("w-full caption-bottom text-sm",e),...t})})}function Bb({className:e,...t}){return(0,Y.jsx)("thead",{"data-slot":"table-header",className:Ee("[&_tr]:border-b",e),...t})}function Ub({className:e,...t}){return(0,Y.jsx)("tbody",{"data-slot":"table-body",className:Ee("[&_tr:last-child]:border-0",e),...t})}function xg({className:e,...t}){return(0,Y.jsx)("tr",{"data-slot":"table-row",className:Ee("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...t})}function yi({className:e,...t}){return(0,Y.jsx)("th",{"data-slot":"table-head",className:Ee("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...t})}function wi({className:e,...t}){return(0,Y.jsx)("td",{"data-slot":"table-cell",className:Ee("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...t})}function jc({className:e,orientation:t="horizontal",...a}){return(0,Y.jsx)(On.Root,{"data-slot":"tabs","data-orientation":t,className:Ee("group/tabs flex gap-2 data-horizontal:flex-col",e),...a})}var uE=Go("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function Vc({className:e,variant:t="default",...a}){return(0,Y.jsx)(On.List,{"data-slot":"tabs-list","data-variant":t,className:Ee(uE({variant:t}),e),...a})}function Ci({className:e,...t}){return(0,Y.jsx)(On.Trigger,{"data-slot":"tabs-trigger",className:Ee("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...t})}function Si({className:e,...t}){return(0,Y.jsx)(On.Content,{"data-slot":"tabs-content",className:Ee("flex-1 text-sm outline-none",e),...t})}var pj=Go("group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-muted"},size:{default:"h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",sm:"h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2"}},defaultVariants:{variant:"default",size:"default"}});var mj=vr.createContext({size:"default",variant:"default",spacing:2,orientation:"horizontal"});var yt=N(te(),1);var R={};co(R,{BRAND:()=>OE,DIRTY:()=>Gn,EMPTY_PATH:()=>pE,INVALID:()=>ue,NEVER:()=>yO,OK:()=>Bt,ParseStatus:()=>Pt,Schema:()=>Ce,ZodAny:()=>Qo,ZodArray:()=>uo,ZodBigInt:()=>Kn,ZodBoolean:()=>Xn,ZodBranded:()=>eu,ZodCatch:()=>ss,ZodDate:()=>Zn,ZodDefault:()=>ns,ZodDiscriminatedUnion:()=>Gc,ZodEffects:()=>_a,ZodEnum:()=>rs,ZodError:()=>la,ZodFirstPartyTypeKind:()=>ce,ZodFunction:()=>Kc,ZodIntersection:()=>es,ZodIssueCode:()=>F,ZodLazy:()=>ts,ZodLiteral:()=>as,ZodMap:()=>Pi,ZodNaN:()=>Mi,ZodNativeEnum:()=>os,ZodNever:()=>Ja,ZodNull:()=>Yn,ZodNullable:()=>br,ZodNumber:()=>$n,ZodObject:()=>ua,ZodOptional:()=>Ma,ZodParsedType:()=>$,ZodPipeline:()=>tu,ZodPromise:()=>Yo,ZodReadonly:()=>is,ZodRecord:()=>$c,ZodSchema:()=>Ce,ZodSet:()=>Ti,ZodString:()=>Zo,ZodSymbol:()=>ki,ZodTransformer:()=>_a,ZodTuple:()=>Ir,ZodType:()=>Ce,ZodUndefined:()=>Qn,ZodUnion:()=>Jn,ZodUnknown:()=>lo,ZodVoid:()=>Ri,addIssueToContext:()=>q,any:()=>qE,array:()=>KE,bigint:()=>BE,boolean:()=>Qb,coerce:()=>xO,custom:()=>Kb,date:()=>UE,datetimeRegex:()=>Gb,defaultErrorMap:()=>so,discriminatedUnion:()=>YE,effect:()=>dO,enum:()=>iO,function:()=>oO,getErrorMap:()=>Li,getParsedType:()=>Lr,instanceof:()=>FE,intersection:()=>JE,isAborted:()=>qc,isAsync:()=>Ii,isDirty:()=>Wc,isValid:()=>Xo,late:()=>NE,lazy:()=>nO,literal:()=>sO,makeIssue:()=>Jl,map:()=>aO,nan:()=>zE,nativeEnum:()=>lO,never:()=>GE,null:()=>VE,nullable:()=>fO,number:()=>Zb,object:()=>XE,objectUtil:()=>yg,oboolean:()=>vO,onumber:()=>gO,optional:()=>cO,ostring:()=>hO,pipeline:()=>mO,preprocess:()=>pO,promise:()=>uO,quotelessJson:()=>dE,record:()=>tO,set:()=>rO,setErrorMap:()=>fE,strictObject:()=>ZE,string:()=>Xb,symbol:()=>HE,transformer:()=>dO,tuple:()=>eO,undefined:()=>jE,union:()=>QE,unknown:()=>WE,util:()=>Pe,void:()=>$E});var Pe;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function a(o){throw new Error}e.assertNever=a,e.arrayToEnum=o=>{let n={};for(let s of o)n[s]=s;return n},e.getValidEnumValues=o=>{let n=e.objectKeys(o).filter(i=>typeof o[o[i]]!="number"),s={};for(let i of n)s[i]=o[i];return e.objectValues(s)},e.objectValues=o=>e.objectKeys(o).map(function(n){return o[n]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{let n=[];for(let s in o)Object.prototype.hasOwnProperty.call(o,s)&&n.push(s);return n},e.find=(o,n)=>{for(let s of o)if(n(s))return s},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function r(o,n=" | "){return o.map(s=>typeof s=="string"?`'${s}'`:s).join(n)}e.joinValues=r,e.jsonStringifyReplacer=(o,n)=>typeof n=="bigint"?n.toString():n})(Pe||(Pe={}));var yg;(function(e){e.mergeShapes=(t,a)=>({...t,...a})})(yg||(yg={}));var $=Pe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Lr=e=>{switch(typeof e){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:$.object;default:return $.unknown}};var F=Pe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),dE=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),la=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.name="ZodError",this.issues=t}format(t){let a=t||function(n){return n.message},r={_errors:[]},o=n=>{for(let s of n.issues)if(s.code==="invalid_union")s.unionErrors.map(o);else if(s.code==="invalid_return_type")o(s.returnTypeError);else if(s.code==="invalid_arguments")o(s.argumentsError);else if(s.path.length===0)r._errors.push(a(s));else{let i=r,l=0;for(;l<s.path.length;){let u=s.path[l];l===s.path.length-1?(i[u]=i[u]||{_errors:[]},i[u]._errors.push(a(s))):i[u]=i[u]||{_errors:[]},i=i[u],l++}}};return o(this),r}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Pe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=a=>a.message){let a={},r=[];for(let o of this.issues)o.path.length>0?(a[o.path[0]]=a[o.path[0]]||[],a[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:a}}get formErrors(){return this.flatten()}};la.create=e=>new la(e);var cE=(e,t)=>{let a;switch(e.code){case F.invalid_type:e.received===$.undefined?a="Required":a=`Expected ${e.expected}, received ${e.received}`;break;case F.invalid_literal:a=`Invalid literal value, expected ${JSON.stringify(e.expected,Pe.jsonStringifyReplacer)}`;break;case F.unrecognized_keys:a=`Unrecognized key(s) in object: ${Pe.joinValues(e.keys,", ")}`;break;case F.invalid_union:a="Invalid input";break;case F.invalid_union_discriminator:a=`Invalid discriminator value. Expected ${Pe.joinValues(e.options)}`;break;case F.invalid_enum_value:a=`Invalid enum value. Expected ${Pe.joinValues(e.options)}, received '${e.received}'`;break;case F.invalid_arguments:a="Invalid function arguments";break;case F.invalid_return_type:a="Invalid function return type";break;case F.invalid_date:a="Invalid date";break;case F.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(a=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(a=`${a} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?a=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?a=`Invalid input: must end with "${e.validation.endsWith}"`:Pe.assertNever(e.validation):e.validation!=="regex"?a=`Invalid ${e.validation}`:a="Invalid";break;case F.too_small:e.type==="array"?a=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?a=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?a=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?a=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:a="Invalid input";break;case F.too_big:e.type==="array"?a=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?a=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?a=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?a=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?a=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:a="Invalid input";break;case F.custom:a="Invalid input";break;case F.invalid_intersection_types:a="Intersection results could not be merged";break;case F.not_multiple_of:a=`Number must be a multiple of ${e.multipleOf}`;break;case F.not_finite:a="Number must be finite";break;default:a=t.defaultError,Pe.assertNever(e)}return{message:a}},so=cE;var Hb=so;function fE(e){Hb=e}function Li(){return Hb}var Jl=e=>{let{data:t,path:a,errorMaps:r,issueData:o}=e,n=[...a,...o.path||[]],s={...o,path:n};if(o.message!==void 0)return{...o,path:n,message:o.message};let i="",l=r.filter(u=>!!u).slice().reverse();for(let u of l)i=u(s,{data:t,defaultError:i}).message;return{...o,path:n,message:i}},pE=[];function q(e,t){let a=Li(),r=Jl({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,a,a===so?void 0:so].filter(o=>!!o)});e.common.issues.push(r)}var Pt=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,a){let r=[];for(let o of a){if(o.status==="aborted")return ue;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,a){let r=[];for(let o of a){let n=await o.key,s=await o.value;r.push({key:n,value:s})}return e.mergeObjectSync(t,r)}static mergeObjectSync(t,a){let r={};for(let o of a){let{key:n,value:s}=o;if(n.status==="aborted"||s.status==="aborted")return ue;n.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),n.value!=="__proto__"&&(typeof s.value<"u"||o.alwaysSet)&&(r[n.value]=s.value)}return{status:t.value,value:r}}},ue=Object.freeze({status:"aborted"}),Gn=e=>({status:"dirty",value:e}),Bt=e=>({status:"valid",value:e}),qc=e=>e.status==="aborted",Wc=e=>e.status==="dirty",Xo=e=>e.status==="valid",Ii=e=>typeof Promise<"u"&&e instanceof Promise;var J;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(J||(J={}));var Da=class{constructor(t,a,r,o){this._cachedPath=[],this.parent=t,this.data=a,this._path=r,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},jb=(e,t)=>{if(Xo(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let a=new la(e.common.issues);return this._error=a,this._error}}};function xe(e){if(!e)return{};let{errorMap:t,invalid_type_error:a,required_error:r,description:o}=e;if(t&&(a||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(s,i)=>{let{message:l}=e;return s.code==="invalid_enum_value"?{message:l??i.defaultError}:typeof i.data>"u"?{message:l??r??i.defaultError}:s.code!=="invalid_type"?{message:i.defaultError}:{message:l??a??i.defaultError}},description:o}}var Ce=class{get description(){return this._def.description}_getType(t){return Lr(t.data)}_getOrReturnCtx(t,a){return a||{common:t.parent.common,data:t.data,parsedType:Lr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Pt,ctx:{common:t.parent.common,data:t.data,parsedType:Lr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let a=this._parse(t);if(Ii(a))throw new Error("Synchronous parse encountered promise.");return a}_parseAsync(t){let a=this._parse(t);return Promise.resolve(a)}parse(t,a){let r=this.safeParse(t,a);if(r.success)return r.data;throw r.error}safeParse(t,a){let r={common:{issues:[],async:a?.async??!1,contextualErrorMap:a?.errorMap},path:a?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Lr(t)},o=this._parseSync({data:t,path:r.path,parent:r});return jb(r,o)}"~validate"(t){let a={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Lr(t)};if(!this["~standard"].async)try{let r=this._parseSync({data:t,path:[],parent:a});return Xo(r)?{value:r.value}:{issues:a.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),a.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:a}).then(r=>Xo(r)?{value:r.value}:{issues:a.common.issues})}async parseAsync(t,a){let r=await this.safeParseAsync(t,a);if(r.success)return r.data;throw r.error}async safeParseAsync(t,a){let r={common:{issues:[],contextualErrorMap:a?.errorMap,async:!0},path:a?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Lr(t)},o=this._parse({data:t,path:r.path,parent:r}),n=await(Ii(o)?o:Promise.resolve(o));return jb(r,n)}refine(t,a){let r=o=>typeof a=="string"||typeof a>"u"?{message:a}:typeof a=="function"?a(o):a;return this._refinement((o,n)=>{let s=t(o),i=()=>n.addIssue({code:F.custom,...r(o)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(i(),!1)):s?!0:(i(),!1)})}refinement(t,a){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof a=="function"?a(r,o):a),!1))}_refinement(t){return new _a({schema:this,typeName:ce.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:a=>this["~validate"](a)}}optional(){return Ma.create(this,this._def)}nullable(){return br.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return uo.create(this)}promise(){return Yo.create(this,this._def)}or(t){return Jn.create([this,t],this._def)}and(t){return es.create(this,t,this._def)}transform(t){return new _a({...xe(this._def),schema:this,typeName:ce.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let a=typeof t=="function"?t:()=>t;return new ns({...xe(this._def),innerType:this,defaultValue:a,typeName:ce.ZodDefault})}brand(){return new eu({typeName:ce.ZodBranded,type:this,...xe(this._def)})}catch(t){let a=typeof t=="function"?t:()=>t;return new ss({...xe(this._def),innerType:this,catchValue:a,typeName:ce.ZodCatch})}describe(t){let a=this.constructor;return new a({...this._def,description:t})}pipe(t){return tu.create(this,t)}readonly(){return is.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},mE=/^c[^\s-]{8,}$/i,hE=/^[0-9a-z]+$/,gE=/^[0-9A-HJKMNP-TV-Z]{26}$/i,vE=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,xE=/^[a-z0-9_-]{21}$/i,yE=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,wE=/^[-+]?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)?)??$/,CE=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,SE="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",wg,LE=/^(?:(?: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])$/,IE=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,bE=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,kE=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,RE=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,PE=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,qb="((\\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])))",TE=new RegExp(`^${qb}$`);function Wb(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let a=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${a}`}function ME(e){return new RegExp(`^${Wb(e)}$`)}function Gb(e){let t=`${qb}T${Wb(e)}`,a=[];return a.push(e.local?"Z?":"Z"),e.offset&&a.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${a.join("|")})`,new RegExp(`^${t}$`)}function DE(e,t){return!!((t==="v4"||!t)&&LE.test(e)||(t==="v6"||!t)&&bE.test(e))}function _E(e,t){if(!yE.test(e))return!1;try{let[a]=e.split("."),r=a.replace(/-/g,"+").replace(/_/g,"/").padEnd(a.length+(4-a.length%4)%4,"="),o=JSON.parse(atob(r));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function AE(e,t){return!!((t==="v4"||!t)&&IE.test(e)||(t==="v6"||!t)&&kE.test(e))}var Zo=class e extends Ce{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==$.string){let n=this._getOrReturnCtx(t);return q(n,{code:F.invalid_type,expected:$.string,received:n.parsedType}),ue}let r=new Pt,o;for(let n of this._def.checks)if(n.kind==="min")t.data.length<n.value&&(o=this._getOrReturnCtx(t,o),q(o,{code:F.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),r.dirty());else if(n.kind==="max")t.data.length>n.value&&(o=this._getOrReturnCtx(t,o),q(o,{code:F.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),r.dirty());else if(n.kind==="length"){let s=t.data.length>n.value,i=t.data.length<n.value;(s||i)&&(o=this._getOrReturnCtx(t,o),s?q(o,{code:F.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):i&&q(o,{code:F.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),r.dirty())}else if(n.kind==="email")CE.test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"email",code:F.invalid_string,message:n.message}),r.dirty());else if(n.kind==="emoji")wg||(wg=new RegExp(SE,"u")),wg.test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"emoji",code:F.invalid_string,message:n.message}),r.dirty());else if(n.kind==="uuid")vE.test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"uuid",code:F.invalid_string,message:n.message}),r.dirty());else if(n.kind==="nanoid")xE.test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"nanoid",code:F.invalid_string,message:n.message}),r.dirty());else if(n.kind==="cuid")mE.test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"cuid",code:F.invalid_string,message:n.message}),r.dirty());else if(n.kind==="cuid2")hE.test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"cuid2",code:F.invalid_string,message:n.message}),r.dirty());else if(n.kind==="ulid")gE.test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"ulid",code:F.invalid_string,message:n.message}),r.dirty());else if(n.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),q(o,{validation:"url",code:F.invalid_string,message:n.message}),r.dirty()}else n.kind==="regex"?(n.regex.lastIndex=0,n.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"regex",code:F.invalid_string,message:n.message}),r.dirty())):n.kind==="trim"?t.data=t.data.trim():n.kind==="includes"?t.data.includes(n.value,n.position)||(o=this._getOrReturnCtx(t,o),q(o,{code:F.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),r.dirty()):n.kind==="toLowerCase"?t.data=t.data.toLowerCase():n.kind==="toUpperCase"?t.data=t.data.toUpperCase():n.kind==="startsWith"?t.data.startsWith(n.value)||(o=this._getOrReturnCtx(t,o),q(o,{code:F.invalid_string,validation:{startsWith:n.value},message:n.message}),r.dirty()):n.kind==="endsWith"?t.data.endsWith(n.value)||(o=this._getOrReturnCtx(t,o),q(o,{code:F.invalid_string,validation:{endsWith:n.value},message:n.message}),r.dirty()):n.kind==="datetime"?Gb(n).test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{code:F.invalid_string,validation:"datetime",message:n.message}),r.dirty()):n.kind==="date"?TE.test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{code:F.invalid_string,validation:"date",message:n.message}),r.dirty()):n.kind==="time"?ME(n).test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{code:F.invalid_string,validation:"time",message:n.message}),r.dirty()):n.kind==="duration"?wE.test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"duration",code:F.invalid_string,message:n.message}),r.dirty()):n.kind==="ip"?DE(t.data,n.version)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"ip",code:F.invalid_string,message:n.message}),r.dirty()):n.kind==="jwt"?_E(t.data,n.alg)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"jwt",code:F.invalid_string,message:n.message}),r.dirty()):n.kind==="cidr"?AE(t.data,n.version)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"cidr",code:F.invalid_string,message:n.message}),r.dirty()):n.kind==="base64"?RE.test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"base64",code:F.invalid_string,message:n.message}),r.dirty()):n.kind==="base64url"?PE.test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"base64url",code:F.invalid_string,message:n.message}),r.dirty()):Pe.assertNever(n);return{status:r.value,value:t.data}}_regex(t,a,r){return this.refinement(o=>t.test(o),{validation:a,code:F.invalid_string,...J.errToObj(r)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...J.errToObj(t)})}url(t){return this._addCheck({kind:"url",...J.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...J.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...J.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...J.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...J.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...J.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...J.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...J.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...J.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...J.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...J.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...J.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...J.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...J.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...J.errToObj(t)})}regex(t,a){return this._addCheck({kind:"regex",regex:t,...J.errToObj(a)})}includes(t,a){return this._addCheck({kind:"includes",value:t,position:a?.position,...J.errToObj(a?.message)})}startsWith(t,a){return this._addCheck({kind:"startsWith",value:t,...J.errToObj(a)})}endsWith(t,a){return this._addCheck({kind:"endsWith",value:t,...J.errToObj(a)})}min(t,a){return this._addCheck({kind:"min",value:t,...J.errToObj(a)})}max(t,a){return this._addCheck({kind:"max",value:t,...J.errToObj(a)})}length(t,a){return this._addCheck({kind:"length",value:t,...J.errToObj(a)})}nonempty(t){return this.min(1,J.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t}get maxLength(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t}};Zo.create=e=>new Zo({checks:[],typeName:ce.ZodString,coerce:e?.coerce??!1,...xe(e)});function EE(e,t){let a=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=a>r?a:r,n=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return n%s/10**o}var $n=class e extends Ce{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==$.number){let n=this._getOrReturnCtx(t);return q(n,{code:F.invalid_type,expected:$.number,received:n.parsedType}),ue}let r,o=new Pt;for(let n of this._def.checks)n.kind==="int"?Pe.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),q(r,{code:F.invalid_type,expected:"integer",received:"float",message:n.message}),o.dirty()):n.kind==="min"?(n.inclusive?t.data<n.value:t.data<=n.value)&&(r=this._getOrReturnCtx(t,r),q(r,{code:F.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),o.dirty()):n.kind==="max"?(n.inclusive?t.data>n.value:t.data>=n.value)&&(r=this._getOrReturnCtx(t,r),q(r,{code:F.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),o.dirty()):n.kind==="multipleOf"?EE(t.data,n.value)!==0&&(r=this._getOrReturnCtx(t,r),q(r,{code:F.not_multiple_of,multipleOf:n.value,message:n.message}),o.dirty()):n.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),q(r,{code:F.not_finite,message:n.message}),o.dirty()):Pe.assertNever(n);return{status:o.value,value:t.data}}gte(t,a){return this.setLimit("min",t,!0,J.toString(a))}gt(t,a){return this.setLimit("min",t,!1,J.toString(a))}lte(t,a){return this.setLimit("max",t,!0,J.toString(a))}lt(t,a){return this.setLimit("max",t,!1,J.toString(a))}setLimit(t,a,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:a,inclusive:r,message:J.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:J.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:J.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:J.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:J.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:J.toString(t)})}multipleOf(t,a){return this._addCheck({kind:"multipleOf",value:t,message:J.toString(a)})}finite(t){return this._addCheck({kind:"finite",message:J.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:J.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:J.toString(t)})}get minValue(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t}get maxValue(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Pe.isInteger(t.value))}get isFinite(){let t=null,a=null;for(let r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(a===null||r.value>a)&&(a=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(a)&&Number.isFinite(t)}};$n.create=e=>new $n({checks:[],typeName:ce.ZodNumber,coerce:e?.coerce||!1,...xe(e)});var Kn=class e extends Ce{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==$.bigint)return this._getInvalidInput(t);let r,o=new Pt;for(let n of this._def.checks)n.kind==="min"?(n.inclusive?t.data<n.value:t.data<=n.value)&&(r=this._getOrReturnCtx(t,r),q(r,{code:F.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),o.dirty()):n.kind==="max"?(n.inclusive?t.data>n.value:t.data>=n.value)&&(r=this._getOrReturnCtx(t,r),q(r,{code:F.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),o.dirty()):n.kind==="multipleOf"?t.data%n.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),q(r,{code:F.not_multiple_of,multipleOf:n.value,message:n.message}),o.dirty()):Pe.assertNever(n);return{status:o.value,value:t.data}}_getInvalidInput(t){let a=this._getOrReturnCtx(t);return q(a,{code:F.invalid_type,expected:$.bigint,received:a.parsedType}),ue}gte(t,a){return this.setLimit("min",t,!0,J.toString(a))}gt(t,a){return this.setLimit("min",t,!1,J.toString(a))}lte(t,a){return this.setLimit("max",t,!0,J.toString(a))}lt(t,a){return this.setLimit("max",t,!1,J.toString(a))}setLimit(t,a,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:a,inclusive:r,message:J.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:J.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:J.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:J.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:J.toString(t)})}multipleOf(t,a){return this._addCheck({kind:"multipleOf",value:t,message:J.toString(a)})}get minValue(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t}get maxValue(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t}};Kn.create=e=>new Kn({checks:[],typeName:ce.ZodBigInt,coerce:e?.coerce??!1,...xe(e)});var Xn=class extends Ce{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==$.boolean){let r=this._getOrReturnCtx(t);return q(r,{code:F.invalid_type,expected:$.boolean,received:r.parsedType}),ue}return Bt(t.data)}};Xn.create=e=>new Xn({typeName:ce.ZodBoolean,coerce:e?.coerce||!1,...xe(e)});var Zn=class e extends Ce{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==$.date){let n=this._getOrReturnCtx(t);return q(n,{code:F.invalid_type,expected:$.date,received:n.parsedType}),ue}if(Number.isNaN(t.data.getTime())){let n=this._getOrReturnCtx(t);return q(n,{code:F.invalid_date}),ue}let r=new Pt,o;for(let n of this._def.checks)n.kind==="min"?t.data.getTime()<n.value&&(o=this._getOrReturnCtx(t,o),q(o,{code:F.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):n.kind==="max"?t.data.getTime()>n.value&&(o=this._getOrReturnCtx(t,o),q(o,{code:F.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):Pe.assertNever(n);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,a){return this._addCheck({kind:"min",value:t.getTime(),message:J.toString(a)})}max(t,a){return this._addCheck({kind:"max",value:t.getTime(),message:J.toString(a)})}get minDate(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t!=null?new Date(t):null}};Zn.create=e=>new Zn({checks:[],coerce:e?.coerce||!1,typeName:ce.ZodDate,...xe(e)});var ki=class extends Ce{_parse(t){if(this._getType(t)!==$.symbol){let r=this._getOrReturnCtx(t);return q(r,{code:F.invalid_type,expected:$.symbol,received:r.parsedType}),ue}return Bt(t.data)}};ki.create=e=>new ki({typeName:ce.ZodSymbol,...xe(e)});var Qn=class extends Ce{_parse(t){if(this._getType(t)!==$.undefined){let r=this._getOrReturnCtx(t);return q(r,{code:F.invalid_type,expected:$.undefined,received:r.parsedType}),ue}return Bt(t.data)}};Qn.create=e=>new Qn({typeName:ce.ZodUndefined,...xe(e)});var Yn=class extends Ce{_parse(t){if(this._getType(t)!==$.null){let r=this._getOrReturnCtx(t);return q(r,{code:F.invalid_type,expected:$.null,received:r.parsedType}),ue}return Bt(t.data)}};Yn.create=e=>new Yn({typeName:ce.ZodNull,...xe(e)});var Qo=class extends Ce{constructor(){super(...arguments),this._any=!0}_parse(t){return Bt(t.data)}};Qo.create=e=>new Qo({typeName:ce.ZodAny,...xe(e)});var lo=class extends Ce{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Bt(t.data)}};lo.create=e=>new lo({typeName:ce.ZodUnknown,...xe(e)});var Ja=class extends Ce{_parse(t){let a=this._getOrReturnCtx(t);return q(a,{code:F.invalid_type,expected:$.never,received:a.parsedType}),ue}};Ja.create=e=>new Ja({typeName:ce.ZodNever,...xe(e)});var Ri=class extends Ce{_parse(t){if(this._getType(t)!==$.undefined){let r=this._getOrReturnCtx(t);return q(r,{code:F.invalid_type,expected:$.void,received:r.parsedType}),ue}return Bt(t.data)}};Ri.create=e=>new Ri({typeName:ce.ZodVoid,...xe(e)});var uo=class e extends Ce{_parse(t){let{ctx:a,status:r}=this._processInputParams(t),o=this._def;if(a.parsedType!==$.array)return q(a,{code:F.invalid_type,expected:$.array,received:a.parsedType}),ue;if(o.exactLength!==null){let s=a.data.length>o.exactLength.value,i=a.data.length<o.exactLength.value;(s||i)&&(q(a,{code:s?F.too_big:F.too_small,minimum:i?o.exactLength.value:void 0,maximum:s?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&a.data.length<o.minLength.value&&(q(a,{code:F.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&a.data.length>o.maxLength.value&&(q(a,{code:F.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),a.common.async)return Promise.all([...a.data].map((s,i)=>o.type._parseAsync(new Da(a,s,a.path,i)))).then(s=>Pt.mergeArray(r,s));let n=[...a.data].map((s,i)=>o.type._parseSync(new Da(a,s,a.path,i)));return Pt.mergeArray(r,n)}get element(){return this._def.type}min(t,a){return new e({...this._def,minLength:{value:t,message:J.toString(a)}})}max(t,a){return new e({...this._def,maxLength:{value:t,message:J.toString(a)}})}length(t,a){return new e({...this._def,exactLength:{value:t,message:J.toString(a)}})}nonempty(t){return this.min(1,t)}};uo.create=(e,t)=>new uo({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ce.ZodArray,...xe(t)});function bi(e){if(e instanceof ua){let t={};for(let a in e.shape){let r=e.shape[a];t[a]=Ma.create(bi(r))}return new ua({...e._def,shape:()=>t})}else return e instanceof uo?new uo({...e._def,type:bi(e.element)}):e instanceof Ma?Ma.create(bi(e.unwrap())):e instanceof br?br.create(bi(e.unwrap())):e instanceof Ir?Ir.create(e.items.map(t=>bi(t))):e}var ua=class e extends Ce{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),a=Pe.objectKeys(t);return this._cached={shape:t,keys:a},this._cached}_parse(t){if(this._getType(t)!==$.object){let u=this._getOrReturnCtx(t);return q(u,{code:F.invalid_type,expected:$.object,received:u.parsedType}),ue}let{status:r,ctx:o}=this._processInputParams(t),{shape:n,keys:s}=this._getCached(),i=[];if(!(this._def.catchall instanceof Ja&&this._def.unknownKeys==="strip"))for(let u in o.data)s.includes(u)||i.push(u);let l=[];for(let u of s){let d=n[u],c=o.data[u];l.push({key:{status:"valid",value:u},value:d._parse(new Da(o,c,o.path,u)),alwaysSet:u in o.data})}if(this._def.catchall instanceof Ja){let u=this._def.unknownKeys;if(u==="passthrough")for(let d of i)l.push({key:{status:"valid",value:d},value:{status:"valid",value:o.data[d]}});else if(u==="strict")i.length>0&&(q(o,{code:F.unrecognized_keys,keys:i}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let d of i){let c=o.data[d];l.push({key:{status:"valid",value:d},value:u._parse(new Da(o,c,o.path,d)),alwaysSet:d in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let u=[];for(let d of l){let c=await d.key,f=await d.value;u.push({key:c,value:f,alwaysSet:d.alwaysSet})}return u}).then(u=>Pt.mergeObjectSync(r,u)):Pt.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return J.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(a,r)=>{let o=this._def.errorMap?.(a,r).message??r.defaultError;return a.code==="unrecognized_keys"?{message:J.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ce.ZodObject})}setKey(t,a){return this.augment({[t]:a})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let a={};for(let r of Pe.objectKeys(t))t[r]&&this.shape[r]&&(a[r]=this.shape[r]);return new e({...this._def,shape:()=>a})}omit(t){let a={};for(let r of Pe.objectKeys(this.shape))t[r]||(a[r]=this.shape[r]);return new e({...this._def,shape:()=>a})}deepPartial(){return bi(this)}partial(t){let a={};for(let r of Pe.objectKeys(this.shape)){let o=this.shape[r];t&&!t[r]?a[r]=o:a[r]=o.optional()}return new e({...this._def,shape:()=>a})}required(t){let a={};for(let r of Pe.objectKeys(this.shape))if(t&&!t[r])a[r]=this.shape[r];else{let n=this.shape[r];for(;n instanceof Ma;)n=n._def.innerType;a[r]=n}return new e({...this._def,shape:()=>a})}keyof(){return $b(Pe.objectKeys(this.shape))}};ua.create=(e,t)=>new ua({shape:()=>e,unknownKeys:"strip",catchall:Ja.create(),typeName:ce.ZodObject,...xe(t)});ua.strictCreate=(e,t)=>new ua({shape:()=>e,unknownKeys:"strict",catchall:Ja.create(),typeName:ce.ZodObject,...xe(t)});ua.lazycreate=(e,t)=>new ua({shape:e,unknownKeys:"strip",catchall:Ja.create(),typeName:ce.ZodObject,...xe(t)});var Jn=class extends Ce{_parse(t){let{ctx:a}=this._processInputParams(t),r=this._def.options;function o(n){for(let i of n)if(i.result.status==="valid")return i.result;for(let i of n)if(i.result.status==="dirty")return a.common.issues.push(...i.ctx.common.issues),i.result;let s=n.map(i=>new la(i.ctx.common.issues));return q(a,{code:F.invalid_union,unionErrors:s}),ue}if(a.common.async)return Promise.all(r.map(async n=>{let s={...a,common:{...a.common,issues:[]},parent:null};return{result:await n._parseAsync({data:a.data,path:a.path,parent:s}),ctx:s}})).then(o);{let n,s=[];for(let l of r){let u={...a,common:{...a.common,issues:[]},parent:null},d=l._parseSync({data:a.data,path:a.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!n&&(n={result:d,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(n)return a.common.issues.push(...n.ctx.common.issues),n.result;let i=s.map(l=>new la(l));return q(a,{code:F.invalid_union,unionErrors:i}),ue}}get options(){return this._def.options}};Jn.create=(e,t)=>new Jn({options:e,typeName:ce.ZodUnion,...xe(t)});var io=e=>e instanceof ts?io(e.schema):e instanceof _a?io(e.innerType()):e instanceof as?[e.value]:e instanceof rs?e.options:e instanceof os?Pe.objectValues(e.enum):e instanceof ns?io(e._def.innerType):e instanceof Qn?[void 0]:e instanceof Yn?[null]:e instanceof Ma?[void 0,...io(e.unwrap())]:e instanceof br?[null,...io(e.unwrap())]:e instanceof eu||e instanceof is?io(e.unwrap()):e instanceof ss?io(e._def.innerType):[],Gc=class e extends Ce{_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==$.object)return q(a,{code:F.invalid_type,expected:$.object,received:a.parsedType}),ue;let r=this.discriminator,o=a.data[r],n=this.optionsMap.get(o);return n?a.common.async?n._parseAsync({data:a.data,path:a.path,parent:a}):n._parseSync({data:a.data,path:a.path,parent:a}):(q(a,{code:F.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),ue)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,a,r){let o=new Map;for(let n of a){let s=io(n.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let i of s){if(o.has(i))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(i)}`);o.set(i,n)}}return new e({typeName:ce.ZodDiscriminatedUnion,discriminator:t,options:a,optionsMap:o,...xe(r)})}};function Cg(e,t){let a=Lr(e),r=Lr(t);if(e===t)return{valid:!0,data:e};if(a===$.object&&r===$.object){let o=Pe.objectKeys(t),n=Pe.objectKeys(e).filter(i=>o.indexOf(i)!==-1),s={...e,...t};for(let i of n){let l=Cg(e[i],t[i]);if(!l.valid)return{valid:!1};s[i]=l.data}return{valid:!0,data:s}}else if(a===$.array&&r===$.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let n=0;n<e.length;n++){let s=e[n],i=t[n],l=Cg(s,i);if(!l.valid)return{valid:!1};o.push(l.data)}return{valid:!0,data:o}}else return a===$.date&&r===$.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var es=class extends Ce{_parse(t){let{status:a,ctx:r}=this._processInputParams(t),o=(n,s)=>{if(qc(n)||qc(s))return ue;let i=Cg(n.value,s.value);return i.valid?((Wc(n)||Wc(s))&&a.dirty(),{status:a.value,value:i.data}):(q(r,{code:F.invalid_intersection_types}),ue)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([n,s])=>o(n,s)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};es.create=(e,t,a)=>new es({left:e,right:t,typeName:ce.ZodIntersection,...xe(a)});var Ir=class e extends Ce{_parse(t){let{status:a,ctx:r}=this._processInputParams(t);if(r.parsedType!==$.array)return q(r,{code:F.invalid_type,expected:$.array,received:r.parsedType}),ue;if(r.data.length<this._def.items.length)return q(r,{code:F.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ue;!this._def.rest&&r.data.length>this._def.items.length&&(q(r,{code:F.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),a.dirty());let n=[...r.data].map((s,i)=>{let l=this._def.items[i]||this._def.rest;return l?l._parse(new Da(r,s,r.path,i)):null}).filter(s=>!!s);return r.common.async?Promise.all(n).then(s=>Pt.mergeArray(a,s)):Pt.mergeArray(a,n)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Ir.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ir({items:e,typeName:ce.ZodTuple,rest:null,...xe(t)})};var $c=class e extends Ce{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:a,ctx:r}=this._processInputParams(t);if(r.parsedType!==$.object)return q(r,{code:F.invalid_type,expected:$.object,received:r.parsedType}),ue;let o=[],n=this._def.keyType,s=this._def.valueType;for(let i in r.data)o.push({key:n._parse(new Da(r,i,r.path,i)),value:s._parse(new Da(r,r.data[i],r.path,i)),alwaysSet:i in r.data});return r.common.async?Pt.mergeObjectAsync(a,o):Pt.mergeObjectSync(a,o)}get element(){return this._def.valueType}static create(t,a,r){return a instanceof Ce?new e({keyType:t,valueType:a,typeName:ce.ZodRecord,...xe(r)}):new e({keyType:Zo.create(),valueType:t,typeName:ce.ZodRecord,...xe(a)})}},Pi=class extends Ce{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:a,ctx:r}=this._processInputParams(t);if(r.parsedType!==$.map)return q(r,{code:F.invalid_type,expected:$.map,received:r.parsedType}),ue;let o=this._def.keyType,n=this._def.valueType,s=[...r.data.entries()].map(([i,l],u)=>({key:o._parse(new Da(r,i,r.path,[u,"key"])),value:n._parse(new Da(r,l,r.path,[u,"value"]))}));if(r.common.async){let i=new Map;return Promise.resolve().then(async()=>{for(let l of s){let u=await l.key,d=await l.value;if(u.status==="aborted"||d.status==="aborted")return ue;(u.status==="dirty"||d.status==="dirty")&&a.dirty(),i.set(u.value,d.value)}return{status:a.value,value:i}})}else{let i=new Map;for(let l of s){let u=l.key,d=l.value;if(u.status==="aborted"||d.status==="aborted")return ue;(u.status==="dirty"||d.status==="dirty")&&a.dirty(),i.set(u.value,d.value)}return{status:a.value,value:i}}}};Pi.create=(e,t,a)=>new Pi({valueType:t,keyType:e,typeName:ce.ZodMap,...xe(a)});var Ti=class e extends Ce{_parse(t){let{status:a,ctx:r}=this._processInputParams(t);if(r.parsedType!==$.set)return q(r,{code:F.invalid_type,expected:$.set,received:r.parsedType}),ue;let o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(q(r,{code:F.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),a.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(q(r,{code:F.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),a.dirty());let n=this._def.valueType;function s(l){let u=new Set;for(let d of l){if(d.status==="aborted")return ue;d.status==="dirty"&&a.dirty(),u.add(d.value)}return{status:a.value,value:u}}let i=[...r.data.values()].map((l,u)=>n._parse(new Da(r,l,r.path,u)));return r.common.async?Promise.all(i).then(l=>s(l)):s(i)}min(t,a){return new e({...this._def,minSize:{value:t,message:J.toString(a)}})}max(t,a){return new e({...this._def,maxSize:{value:t,message:J.toString(a)}})}size(t,a){return this.min(t,a).max(t,a)}nonempty(t){return this.min(1,t)}};Ti.create=(e,t)=>new Ti({valueType:e,minSize:null,maxSize:null,typeName:ce.ZodSet,...xe(t)});var Kc=class e extends Ce{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==$.function)return q(a,{code:F.invalid_type,expected:$.function,received:a.parsedType}),ue;function r(i,l){return Jl({data:i,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,Li(),so].filter(u=>!!u),issueData:{code:F.invalid_arguments,argumentsError:l}})}function o(i,l){return Jl({data:i,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,Li(),so].filter(u=>!!u),issueData:{code:F.invalid_return_type,returnTypeError:l}})}let n={errorMap:a.common.contextualErrorMap},s=a.data;if(this._def.returns instanceof Yo){let i=this;return Bt(async function(...l){let u=new la([]),d=await i._def.args.parseAsync(l,n).catch(h=>{throw u.addIssue(r(l,h)),u}),c=await Reflect.apply(s,this,d);return await i._def.returns._def.type.parseAsync(c,n).catch(h=>{throw u.addIssue(o(c,h)),u})})}else{let i=this;return Bt(function(...l){let u=i._def.args.safeParse(l,n);if(!u.success)throw new la([r(l,u.error)]);let d=Reflect.apply(s,this,u.data),c=i._def.returns.safeParse(d,n);if(!c.success)throw new la([o(d,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Ir.create(t).rest(lo.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,a,r){return new e({args:t||Ir.create([]).rest(lo.create()),returns:a||lo.create(),typeName:ce.ZodFunction,...xe(r)})}},ts=class extends Ce{get schema(){return this._def.getter()}_parse(t){let{ctx:a}=this._processInputParams(t);return this._def.getter()._parse({data:a.data,path:a.path,parent:a})}};ts.create=(e,t)=>new ts({getter:e,typeName:ce.ZodLazy,...xe(t)});var as=class extends Ce{_parse(t){if(t.data!==this._def.value){let a=this._getOrReturnCtx(t);return q(a,{received:a.data,code:F.invalid_literal,expected:this._def.value}),ue}return{status:"valid",value:t.data}}get value(){return this._def.value}};as.create=(e,t)=>new as({value:e,typeName:ce.ZodLiteral,...xe(t)});function $b(e,t){return new rs({values:e,typeName:ce.ZodEnum,...xe(t)})}var rs=class e extends Ce{_parse(t){if(typeof t.data!="string"){let a=this._getOrReturnCtx(t),r=this._def.values;return q(a,{expected:Pe.joinValues(r),received:a.parsedType,code:F.invalid_type}),ue}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let a=this._getOrReturnCtx(t),r=this._def.values;return q(a,{received:a.data,code:F.invalid_enum_value,options:r}),ue}return Bt(t.data)}get options(){return this._def.values}get enum(){let t={};for(let a of this._def.values)t[a]=a;return t}get Values(){let t={};for(let a of this._def.values)t[a]=a;return t}get Enum(){let t={};for(let a of this._def.values)t[a]=a;return t}extract(t,a=this._def){return e.create(t,{...this._def,...a})}exclude(t,a=this._def){return e.create(this.options.filter(r=>!t.includes(r)),{...this._def,...a})}};rs.create=$b;var os=class extends Ce{_parse(t){let a=Pe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==$.string&&r.parsedType!==$.number){let o=Pe.objectValues(a);return q(r,{expected:Pe.joinValues(o),received:r.parsedType,code:F.invalid_type}),ue}if(this._cache||(this._cache=new Set(Pe.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let o=Pe.objectValues(a);return q(r,{received:r.data,code:F.invalid_enum_value,options:o}),ue}return Bt(t.data)}get enum(){return this._def.values}};os.create=(e,t)=>new os({values:e,typeName:ce.ZodNativeEnum,...xe(t)});var Yo=class extends Ce{unwrap(){return this._def.type}_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==$.promise&&a.common.async===!1)return q(a,{code:F.invalid_type,expected:$.promise,received:a.parsedType}),ue;let r=a.parsedType===$.promise?a.data:Promise.resolve(a.data);return Bt(r.then(o=>this._def.type.parseAsync(o,{path:a.path,errorMap:a.common.contextualErrorMap})))}};Yo.create=(e,t)=>new Yo({type:e,typeName:ce.ZodPromise,...xe(t)});var _a=class extends Ce{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ce.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:a,ctx:r}=this._processInputParams(t),o=this._def.effect||null,n={addIssue:s=>{q(r,s),s.fatal?a.abort():a.dirty()},get path(){return r.path}};if(n.addIssue=n.addIssue.bind(n),o.type==="preprocess"){let s=o.transform(r.data,n);if(r.common.async)return Promise.resolve(s).then(async i=>{if(a.value==="aborted")return ue;let l=await this._def.schema._parseAsync({data:i,path:r.path,parent:r});return l.status==="aborted"?ue:l.status==="dirty"?Gn(l.value):a.value==="dirty"?Gn(l.value):l});{if(a.value==="aborted")return ue;let i=this._def.schema._parseSync({data:s,path:r.path,parent:r});return i.status==="aborted"?ue:i.status==="dirty"?Gn(i.value):a.value==="dirty"?Gn(i.value):i}}if(o.type==="refinement"){let s=i=>{let l=o.refinement(i,n);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return i};if(r.common.async===!1){let i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?ue:(i.status==="dirty"&&a.dirty(),s(i.value),{status:a.value,value:i.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>i.status==="aborted"?ue:(i.status==="dirty"&&a.dirty(),s(i.value).then(()=>({status:a.value,value:i.value}))))}if(o.type==="transform")if(r.common.async===!1){let s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Xo(s))return ue;let i=o.transform(s.value,n);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:a.value,value:i}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>Xo(s)?Promise.resolve(o.transform(s.value,n)).then(i=>({status:a.value,value:i})):ue);Pe.assertNever(o)}};_a.create=(e,t,a)=>new _a({schema:e,typeName:ce.ZodEffects,effect:t,...xe(a)});_a.createWithPreprocess=(e,t,a)=>new _a({schema:t,effect:{type:"preprocess",transform:e},typeName:ce.ZodEffects,...xe(a)});var Ma=class extends Ce{_parse(t){return this._getType(t)===$.undefined?Bt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Ma.create=(e,t)=>new Ma({innerType:e,typeName:ce.ZodOptional,...xe(t)});var br=class extends Ce{_parse(t){return this._getType(t)===$.null?Bt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};br.create=(e,t)=>new br({innerType:e,typeName:ce.ZodNullable,...xe(t)});var ns=class extends Ce{_parse(t){let{ctx:a}=this._processInputParams(t),r=a.data;return a.parsedType===$.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:a.path,parent:a})}removeDefault(){return this._def.innerType}};ns.create=(e,t)=>new ns({innerType:e,typeName:ce.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...xe(t)});var ss=class extends Ce{_parse(t){let{ctx:a}=this._processInputParams(t),r={...a,common:{...a.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Ii(o)?o.then(n=>({status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new la(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new la(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};ss.create=(e,t)=>new ss({innerType:e,typeName:ce.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...xe(t)});var Mi=class extends Ce{_parse(t){if(this._getType(t)!==$.nan){let r=this._getOrReturnCtx(t);return q(r,{code:F.invalid_type,expected:$.nan,received:r.parsedType}),ue}return{status:"valid",value:t.data}}};Mi.create=e=>new Mi({typeName:ce.ZodNaN,...xe(e)});var OE=Symbol("zod_brand"),eu=class extends Ce{_parse(t){let{ctx:a}=this._processInputParams(t),r=a.data;return this._def.type._parse({data:r,path:a.path,parent:a})}unwrap(){return this._def.type}},tu=class e extends Ce{_parse(t){let{status:a,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{let n=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return n.status==="aborted"?ue:n.status==="dirty"?(a.dirty(),Gn(n.value)):this._def.out._parseAsync({data:n.value,path:r.path,parent:r})})();{let o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?ue:o.status==="dirty"?(a.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,a){return new e({in:t,out:a,typeName:ce.ZodPipeline})}},is=class extends Ce{_parse(t){let a=this._def.innerType._parse(t),r=o=>(Xo(o)&&(o.value=Object.freeze(o.value)),o);return Ii(a)?a.then(o=>r(o)):r(a)}unwrap(){return this._def.innerType}};is.create=(e,t)=>new is({innerType:e,typeName:ce.ZodReadonly,...xe(t)});function Vb(e,t){let a=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof a=="string"?{message:a}:a}function Kb(e,t={},a){return e?Qo.create().superRefine((r,o)=>{let n=e(r);if(n instanceof Promise)return n.then(s=>{if(!s){let i=Vb(t,r),l=i.fatal??a??!0;o.addIssue({code:"custom",...i,fatal:l})}});if(!n){let s=Vb(t,r),i=s.fatal??a??!0;o.addIssue({code:"custom",...s,fatal:i})}}):Qo.create()}var NE={object:ua.lazycreate},ce;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ce||(ce={}));var FE=(e,t={message:`Input not instance of ${e.name}`})=>Kb(a=>a instanceof e,t),Xb=Zo.create,Zb=$n.create,zE=Mi.create,BE=Kn.create,Qb=Xn.create,UE=Zn.create,HE=ki.create,jE=Qn.create,VE=Yn.create,qE=Qo.create,WE=lo.create,GE=Ja.create,$E=Ri.create,KE=uo.create,XE=ua.create,ZE=ua.strictCreate,QE=Jn.create,YE=Gc.create,JE=es.create,eO=Ir.create,tO=$c.create,aO=Pi.create,rO=Ti.create,oO=Kc.create,nO=ts.create,sO=as.create,iO=rs.create,lO=os.create,uO=Yo.create,dO=_a.create,cO=Ma.create,fO=br.create,pO=_a.createWithPreprocess,mO=tu.create,hO=()=>Xb().optional(),gO=()=>Zb().optional(),vO=()=>Qb().optional(),xO={string:(e=>Zo.create({...e,coerce:!0})),number:(e=>$n.create({...e,coerce:!0})),boolean:(e=>Xn.create({...e,coerce:!0})),bigint:(e=>Kn.create({...e,coerce:!0})),date:(e=>Zn.create({...e,coerce:!0}))};var yO=ue;var Jb="xpertai.remote_component",wO=R.object({channel:R.literal(Jb),protocolVersion:R.literal(1),type:R.string(),instanceId:R.string().optional(),scopeRevision:R.number().optional(),requestId:R.string().optional(),data:R.unknown(),result:R.unknown(),message:R.string().optional(),code:R.string().optional(),locale:R.string().optional(),theme:R.object({mode:R.enum(["light","dark"]).optional(),tokens:R.record(R.string()).optional()}).optional()}).passthrough(),er=null,CO=0,Jo=new Map;function Sg(e,t={}){window.parent.postMessage({channel:Jb,protocolVersion:1,...er,type:e,...t},"*")}function ek(e){let t,a=r=>{if(r.source!==window.parent)return;let o=wO.safeParse(r.data);if(!o.success)return;let n=o.data;if(n.type==="init"){Fe.setLocale(n.locale);let i=!er||n.instanceId!==er.instanceId||n.scopeRevision!==er.scopeRevision;if(i){for(let c of Jo.values())clearTimeout(c.timer),c.reject(new DOMException(S("bridge.contextChanged"),"AbortError"));Jo.clear(),er={instanceId:n.instanceId,scopeRevision:n.scopeRevision}}let l=n.theme?.tokens??{};document.documentElement.classList.toggle("dark",n.theme?.mode==="dark");for(let[c,f]of Object.entries(l)){let h=c.startsWith("--xui-")?c:"--xui-"+c.replace(/[A-Z]/g,v=>"-"+v.toLowerCase());document.documentElement.style.setProperty(h,f)}Lf();let u={colorBackground:"--background",colorForeground:"--foreground",colorBorder:"--border",colorMuted:"--muted",colorMutedForeground:"--muted-foreground",colorSecondary:"--secondary",colorPrimary:"--ring"};for(let[c,f]of Object.entries(u))l[c]&&document.documentElement.style.setProperty(f,l[c]);document.documentElement.style.colorScheme=n.theme?.mode??"light";let d=JSON.stringify(n.initialQuery);(i||d!==t)&&(t=d,e(n.initialQuery)),Sg("resize",{height:window.innerHeight,viewportBound:!0});return}if(n.instanceId!==er?.instanceId||n.scopeRevision!==er?.scopeRevision&&n.type!=="error"||!n.requestId)return;let s=Jo.get(n.requestId);s&&(clearTimeout(s.timer),Jo.delete(n.requestId),n.type==="error"?s.reject(new Error(n.message??n.code??S("bridge.requestFailed"))):s.resolve(n.data??n.result))};return window.addEventListener("message",a),Sg("ready"),()=>{window.removeEventListener("message",a);for(let r of Jo.values())clearTimeout(r.timer),r.reject(Fe.error("bridge.closed"));Jo.clear(),er=null}}function Di(e,t){if(!er)return Promise.reject(Fe.error("bridge.notConnected"));let a=`spaces-${++CO}`;return new Promise((r,o)=>{let n=setTimeout(()=>{Jo.delete(a),o(Fe.error("bridge.timeout"))},12e4);Jo.set(a,{resolve:r,reject:o,timer:n}),Sg(e,{requestId:a,...t})})}var tk=e=>Di("requestData",{query:e});async function pt(e,t){let a=R.object({success:R.boolean(),data:R.unknown(),message:R.string().optional()}).parse(await Di("executeAction",{actionKey:e,input:t}));if(!a.success)throw new Error(a.message??S("common.actionFailed"));return a.data}async function ak(e,t,a="file.upload"){let r=R.object({success:R.boolean(),data:R.unknown()}).parse(await Di("executeFileAction",{actionKey:a,input:e,file:{name:t.name,type:t.type,size:t.size,buffer:await t.arrayBuffer()}}));if(!r.success)throw Fe.error("bridge.uploadFailed");return r.data}async function rk(e){let t=R.object({url:R.string(),fileName:R.string()}).parse(await Di("requestFileAccess",{fileKey:e,purpose:"download"})),a=document.createElement("a");return a.href=t.url,a.download=t.fileName,a.rel="noopener",document.body.append(a),a.click(),a.remove(),t}var Lg=e=>Di("invokeClientCommand",{commandKey:"assistant.context.set",payload:e});async function ok(e,t){let a=er,r=await Yb("workbench.content.resolve",{resourceId:e,...t?{providerKey:t}:{}});if(a!==er)throw new DOMException(S("bridge.contextChanged"),"AbortError");let{navigation:o}=R.object({navigation:R.object({target:R.literal("workbench.view"),viewKey:R.string().min(1),selectionId:R.literal(e),parameters:R.record(R.unknown()).optional()})}).parse(r);return Yb("workbench.navigation.open",o)}async function Yb(e,t){let a=await Di("invokeClientCommand",{commandKey:e,payload:t}),r=R.object({success:R.boolean(),message:R.string().optional(),code:R.string().optional()}).parse(a);if(!r.success)throw new Error(r.message??r.code??S("bridge.editorUnavailable"));return a}var Xc=R.object({importOrigin:R.object({provider:R.string(),documentId:R.string(),url:R.string().nullable(),revision:R.string(),importedAt:R.string(),warnings:R.array(R.string())}).nullable().optional(),id:R.string(),spaceId:R.string().optional(),parentId:R.string().nullable().optional(),parentPageId:R.string().nullable().optional(),editorKey:R.string().nullable().optional(),title:R.string(),kind:R.string().optional(),version:R.number(),role:R.string().optional(),deleted:R.boolean().optional(),filePath:R.string().nullable().optional(),updatedAt:R.string().optional(),syncStatus:R.string().optional(),knowledgebaseId:R.string().nullable().optional()}),nk=R.object({meta:R.object({root:Xc,items:R.array(Xc),role:R.string(),canWrite:R.boolean(),canManage:R.boolean(),project:R.object({id:R.string(),title:R.string()})})}),SO=R.object({id:R.string(),status:R.string(),patch:R.object({before:R.string(),after:R.string(),reason:R.string()})}),LO=R.object({id:R.string(),body:R.string(),resolved:R.boolean()}),sk=R.object({id:R.string(),sequence:R.number(),label:R.string(),createdAt:R.string().optional()}),IO=sk.extend({markdown:R.string(),blocks:R.array(R.object({id:R.string(),kind:R.string(),text:R.string()}))}),kr=e=>{if(e instanceof Error&&e.name==="AbortError")return"";let t=e instanceof Error?e.message:S("error.retry");return/conflict|sources_changed|file.changed/iu.test(t)?Fe.message("error.conflict"):/denied|Forbidden|403/u.test(t)?Fe.message("error.denied"):/ai_timeout|aborted|timeout/iu.test(t)?Fe.message("error.timeout"):/model|copilot/iu.test(t)?Fe.message("error.model"):e instanceof Error?e:Fe.message("error.retry")},ik=e=>({page:S("kind.page"),folder:S("kind.folder"),file:S("kind.file"),artifact:S("kind.artifact")})[e??"file"]??S("kind.file"),au=e=>e?Fe.date(e,{month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"}):"";var pe=N(ke(),1),bO=R.object({items:R.array(R.object({bindingId:R.string(),provider:R.string(),available:R.boolean(),status:R.string(),label:R.union([R.string(),R.record(R.string())]),scope:R.object({type:R.enum(["workspace","project"])})}))}),kO=R.object({items:R.array(R.object({id:R.string(),title:R.string(),url:R.string().nullable()})),nextCursor:R.string().nullable()}),RO=R.object({id:R.string(),title:R.string(),url:R.string().nullable(),revision:R.string(),contentHash:R.string(),provider:R.string(),format:R.literal("text/plain"),content:R.string(),warnings:R.array(R.string())}),Zc=e=>{let t=e instanceof Error?e.message:"";return/unsupported_locator/u.test(t)?Fe.message("source.error.locator"):/unsupported_document_type/u.test(t)?Fe.message("source.error.type"):/source_access_denied/u.test(t)?Fe.message("source.error.access"):/provider_rejected|connection_required|request_failed/u.test(t)?Fe.message("source.error.connection"):/source_changed/u.test(t)?Fe.message("source.error.changed"):/too_large/u.test(t)?Fe.message("source.error.size"):kr(e)};function lk({spaceId:e,parentId:t,destination:a,onClose:r,onDone:o,returnFocus:n}){Yt();let s=H=>{let ve=S("source.connectionLabel",{provider:Fe.label(H.label,H.provider),scope:H.scope.type==="project"?S("source.projectScope"):S("source.workspaceScope")});return H.available?ve:S("source.disconnected",{label:ve})},[i,l]=(0,yt.useState)([]),[u,d]=(0,yt.useState)(""),[c,f]=(0,yt.useState)(""),[h,v]=(0,yt.useState)(""),[x,w]=(0,yt.useState)(""),[p,m]=(0,yt.useState)([]),[g,y]=(0,yt.useState)(null),[C,I]=(0,yt.useState)(!1),[k,b]=(0,yt.useState)(null),[T,A]=(0,yt.useState)(!1),[D,E]=(0,yt.useState)(!0),[z,O]=po(""),[_,B]=(0,yt.useState)(!1),j=(0,yt.useRef)(crypto.randomUUID()),W=(0,yt.useRef)(!0);async function ee(){E(!0),O("");try{let H=bO.parse(await pt("source.list",{}));W.current&&(l(H.items),d(H.items.find(ve=>ve.available)?.bindingId??""),B(!0))}catch(H){W.current&&O(Zc(H))}finally{W.current&&E(!1)}}(0,yt.useEffect)(()=>(W.current=!0,ee(),()=>{W.current=!1}),[]);function P(){b(null),A(!1),j.current=crypto.randomUUID()}async function se(H=!1){E(!0),O(""),P();try{let ve=H?h:c,Se=kO.parse(await pt("source.search",{bindingId:u,query:ve,...H&&g?{cursor:g}:{},pageSize:25}));W.current&&(m(fe=>H?[...new Map([...fe,...Se.items].map(Ae=>[Ae.id,Ae])).values()]:Se.items),y(Se.nextCursor),v(ve),I(!0))}catch(ve){O(Zc(ve))}finally{E(!1)}}async function ie(H){w(H),P(),E(!0),O("");try{let ve=RO.parse(await pt("source.preview",{bindingId:u,locator:H}));W.current&&b(ve)}catch(ve){O(Zc(ve))}finally{E(!1)}}return(0,pe.jsx)(xr,{open:!0,onOpenChange:H=>{!H&&!D&&r()},children:(0,pe.jsxs)(yr,{className:"space-dialog max-h-[85vh] overflow-y-auto",onCloseAutoFocus:H=>{H.preventDefault(),n()},children:[(0,pe.jsxs)(wr,{children:[(0,pe.jsx)(Cr,{children:S("source.title")}),(0,pe.jsx)(Sr,{children:S("source.description")})]}),z&&(0,pe.jsx)("p",{role:"alert",children:z}),!_&&!D&&(0,pe.jsx)(de,{variant:"outline",onClick:()=>{ee()},children:S("source.retryConnections")}),_&&!i.length?(0,pe.jsxs)("div",{children:[(0,pe.jsx)("p",{children:S("source.noConnections")}),(0,pe.jsx)("p",{className:"muted",children:S("source.setupHint")}),(0,pe.jsx)(de,{variant:"outline",disabled:D,onClick:()=>{ee()},children:S("source.recheck")})]}):(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsxs)("div",{className:"form-field",children:[(0,pe.jsx)(oo,{htmlFor:"document-source",children:S("source.provider")}),(0,pe.jsxs)(jn,{value:u,disabled:D,onValueChange:H=>{d(H),m([]),y(null),I(!1),w(""),P()},children:[(0,pe.jsx)(qn,{id:"document-source",className:"w-full",children:(0,pe.jsx)(Vn,{placeholder:S("source.chooseConnection")})}),(0,pe.jsx)(Wn,{position:"popper",children:i.map(H=>(0,pe.jsx)(no,{value:H.bindingId,disabled:!H.available,children:s(H)},H.bindingId))})]})]}),(0,pe.jsx)(de,{variant:"outline",disabled:D,onClick:()=>{P(),m([]),y(null),I(!1),ee()},children:S("source.recheckConnections")}),(0,pe.jsx)("p",{className:"muted text-sm",children:S("source.searchHint")}),(0,pe.jsxs)("form",{className:"flex gap-2",onSubmit:H=>{H.preventDefault(),se()},children:[(0,pe.jsx)(Ya,{"aria-label":S("source.searchLabel"),value:c,maxLength:200,onChange:H=>f(H.target.value),placeholder:S("source.searchPlaceholder"),disabled:D}),(0,pe.jsx)(de,{disabled:D||!u,children:S("source.search")})]}),(0,pe.jsxs)("div",{className:"flex gap-2",children:[(0,pe.jsx)(Ya,{"aria-label":S("source.linkLabel"),value:x,onChange:H=>{w(H.target.value),P()},placeholder:S("source.linkPlaceholder"),disabled:D}),(0,pe.jsx)(de,{variant:"outline",disabled:D||!u||!x.trim(),onClick:()=>{ie(x.trim())},children:S("common.preview")})]}),!!p.length&&(0,pe.jsx)("ul",{className:"max-h-48 overflow-y-auto",children:p.map(H=>(0,pe.jsx)("li",{children:(0,pe.jsx)(de,{className:"max-w-full justify-start truncate",variant:"ghost",disabled:D,onClick:()=>{ie(H.url??H.id)},children:H.title})},H.id))}),C&&!p.length&&(0,pe.jsx)("p",{className:"muted",children:S("source.emptyPage")}),g&&(0,pe.jsx)(de,{variant:"outline",disabled:D,onClick:()=>{se(!0)},children:S("common.loadMore")}),k&&(0,pe.jsxs)("section",{className:"space-y-3",children:[(0,pe.jsx)("h3",{children:k.title}),(0,pe.jsx)("p",{className:"muted text-sm",children:S("source.previewMeta",{revision:k.revision,destination:a})}),k.url&&(0,pe.jsx)("a",{href:k.url,target:"_blank",rel:"noopener noreferrer",className:"underline",children:S("source.openOriginal")}),k.warnings.map(H=>(0,pe.jsx)("p",{role:"note",children:H},H)),(0,pe.jsx)("pre",{className:"max-h-56 overflow-auto whitespace-pre-wrap rounded border p-3 text-sm",children:k.content||S("source.emptyText")}),(0,pe.jsxs)("div",{className:"confirmation-field",children:[(0,pe.jsx)(zc,{id:"confirm-source-import",disabled:D,checked:T,onCheckedChange:H=>A(H===!0)}),(0,pe.jsx)(oo,{htmlFor:"confirm-source-import",children:S("source.confirmation")})]})]})]}),(0,pe.jsxs)(Ko,{children:[(0,pe.jsx)(de,{variant:"outline",disabled:D,onClick:r,children:S("common.cancel")}),(0,pe.jsx)(de,{disabled:D||!k||!T,onClick:()=>{k&&(E(!0),O(""),pt("source.import",{bindingId:u,locator:x,spaceId:e,parentId:t,requestId:j.current,expectedRevision:k.revision,expectedHash:k.contentHash,confirmed:!0}).then(async()=>{await o(),r()}).catch(H=>O(Zc(H))).finally(()=>E(!1)))},children:D?S("common.processing"):S("source.import")})]})]})})}var He=N(te(),1),gk=N(dk(),1);var bg=N(te(),1);var ru=N(ke(),1);function ck({fileKey:e,children:t,disabled:a,onError:r}){Yt();let[o,n]=(0,bg.useState)(!1),[s,i]=(0,bg.useState)(null);async function l(){n(!0);try{i({key:e,...await rk(e)})}catch(u){r(u)}finally{n(!1)}}return(0,ru.jsxs)("span",{className:"inline-flex flex-wrap items-center gap-2",children:[(0,ru.jsx)(de,{variant:"outline",disabled:a||o,onClick:()=>{l()},children:o?S("download.preparing"):t}),s?.key===e&&(0,ru.jsx)("a",{className:"text-sm underline underline-offset-4",href:s.url,download:s.fileName,rel:"noopener",children:S("download.saveFile")})]})}var ou=N(te(),1);var we=N(ke(),1),PO=()=>[{title:S("templates.project.title"),description:S("templates.project.description"),content:S("templates.project.content")},{title:S("templates.meeting.title"),description:S("templates.meeting.description"),content:S("templates.meeting.content")},{title:S("templates.weekly.title"),description:S("templates.weekly.description"),content:S("templates.weekly.content")}];function kg({items:e,value:t,onChange:a}){return Yt(),(0,we.jsxs)("div",{className:"form-field",children:[(0,we.jsx)(oo,{htmlFor:"folder-location",children:S("folder.location")}),(0,we.jsxs)(jn,{value:t||"root",onValueChange:r=>a(r==="root"?"":r),children:[(0,we.jsx)(qn,{id:"folder-location",className:"w-full",children:(0,we.jsx)(Vn,{})}),(0,we.jsxs)(Wn,{position:"popper",children:[(0,we.jsx)(no,{value:"root",children:S("folder.root")}),e.filter(r=>r.kind==="folder"&&!r.deleted).map(r=>(0,we.jsx)(no,{value:r.id,children:r.filePath??r.title},r.id))]})]})]})}function fk({root:e,items:t,initialParent:a,kind:r,editors:o,editing:n,onClose:s,onDone:i,run:l,busy:u}){Yt();let d=PO(),[c,f]=(0,ou.useState)(0),[h,v]=(0,ou.useState)(!1),[x,w]=(0,ou.useState)(n?.title??""),[p,m]=(0,ou.useState)(n?.parentId??a),g=r==="page"&&!n;return(0,we.jsx)(xr,{open:!0,onOpenChange:y=>{y||s()},children:(0,we.jsxs)(yr,{className:g?"space-dialog template-dialog":"space-dialog",children:[(0,we.jsxs)(wr,{children:[(0,we.jsx)(Cr,{children:n?S("create.renameMove"):g?S("create.page"):r==="folder"?S("create.folder"):S("create.document")}),(0,we.jsx)(Sr,{children:g?S("create.pageDescription"):S("library.storageNote")})]}),g&&(0,we.jsxs)(jc,{value:h?"blank":"templates",onValueChange:y=>v(y==="blank"),children:[(0,we.jsxs)(Vc,{"aria-label":S("create.startingPoint"),children:[(0,we.jsx)(Ci,{value:"templates",children:S("create.templates")}),(0,we.jsx)(Ci,{value:"blank",children:S("create.blank")})]}),(0,we.jsx)(Si,{value:"templates",children:(0,we.jsx)("div",{className:"template-grid",children:d.map((y,C)=>(0,we.jsxs)(de,{type:"button",variant:c===C?"secondary":"outline",className:"template-option","aria-pressed":c===C,onClick:()=>{f(C),x||w(y.title)},children:[(0,we.jsxs)("div",{className:`template-paper ${c===C?"chosen":""}`,children:[c===C&&(0,we.jsx)(Tr,{className:"template-check"}),(0,we.jsx)("strong",{children:y.title}),y.content.split(`
103
+ `)},pT=0,ki=[];function FS(e){var t=Je.useRef([]),a=Je.useRef([0,0]),r=Je.useRef(),o=Je.useState(pT++)[0],n=Je.useState(ou)[0],s=Je.useRef(e);Je.useEffect(function(){s.current=e},[e]),Je.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var x=CS([e.lockRef.current],(e.shards||[]).map(NS),!0).filter(Boolean);return x.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),x.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=Je.useCallback(function(x,w){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!s.current.allowPinchZoom;var m=Lc(x),p=a.current,g="deltaX"in x?x.deltaX:p[0]-m[0],y="deltaY"in x?x.deltaY:p[1]-m[1],L,b=x.target,R=Math.abs(g)>Math.abs(y)?"h":"v";if("touches"in x&&R==="h"&&b.type==="range")return!1;var k=window.getSelection(),M=k&&k.anchorNode,E=M?M===b||M.contains(b):!1;if(E)return!1;var O=Fh(R,b);if(!O)return!0;if(O?L=R:(L=R==="v"?"h":"v",O=Fh(R,b)),!O)return!1;if(!r.current&&"changedTouches"in x&&(g||y)&&(r.current=L),!L)return!0;var T=r.current||L;return ES(T,w,x,T==="h"?g:y,!0)},[]),l=Je.useCallback(function(x){var w=x;if(!(!ki.length||ki[ki.length-1]!==n)){var m="deltaY"in w?OS(w):Lc(w),p=t.current.filter(function(L){return L.name===w.type&&(L.target===w.target||w.target===L.shadowParent)&&cT(L.delta,m)})[0];if(p&&p.should){w.cancelable&&w.preventDefault();return}if(!p){var g=(s.current.shards||[]).map(NS).filter(Boolean).filter(function(L){return L.contains(w.target)}),y=g.length>0?i(w,g[0]):!s.current.noIsolation;y&&w.cancelable&&w.preventDefault()}}},[]),u=Je.useCallback(function(x,w,m,p){var g={name:x,delta:w,target:m,should:p,shadowParent:mT(m)};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(y){return y!==g})},1)},[]),c=Je.useCallback(function(x){a.current=Lc(x),r.current=void 0},[]),d=Je.useCallback(function(x){u(x.type,OS(x),x.target,i(x,e.lockRef.current))},[]),f=Je.useCallback(function(x){u(x.type,Lc(x),x.target,i(x,e.lockRef.current))},[]);Je.useEffect(function(){return ki.push(n),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Vn),document.addEventListener("touchmove",l,Vn),document.addEventListener("touchstart",c,Vn),function(){ki=ki.filter(function(x){return x!==n}),document.removeEventListener("wheel",l,Vn),document.removeEventListener("touchmove",l,Vn),document.removeEventListener("touchstart",c,Vn)}},[]);var h=e.removeScrollBar,v=e.inert;return Je.createElement(Je.Fragment,null,v?Je.createElement(n,{styles:fT(o)}):null,h?Je.createElement(Oh,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function mT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var zS=Dh(Sc,FS);var BS=Ic.forwardRef(function(e,t){return Ic.createElement(ru,La({},e,{ref:t,sideCar:zS}))});BS.classNames=ru.classNames;var qn=BS;var hT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ri=new WeakMap,bc=new WeakMap,kc={},zh=0,US=function(e){return e&&(e.host||US(e.parentNode))},gT=function(e,t){return t.map(function(a){if(e.contains(a))return a;var r=US(a);return r&&e.contains(r)?r:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},vT=function(e,t,a,r){var o=gT(t,Array.isArray(e)?e:[e]);kc[a]||(kc[a]=new WeakMap);var n=kc[a],s=[],i=new Set,l=new Set(o),u=function(d){!d||i.has(d)||(i.add(d),u(d.parentNode))};o.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(i.has(f))c(f);else try{var h=f.getAttribute(r),v=h!==null&&h!=="false",x=(Ri.get(f)||0)+1,w=(n.get(f)||0)+1;Ri.set(f,x),n.set(f,w),s.push(f),x===1&&v&&bc.set(f,!0),w===1&&f.setAttribute(a,"true"),v||f.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",f,m)}})};return c(t),i.clear(),zh++,function(){s.forEach(function(d){var f=Ri.get(d)-1,h=n.get(d)-1;Ri.set(d,f),n.set(d,h),f||(bc.has(d)||d.removeAttribute(r),bc.delete(d)),h||d.removeAttribute(a)}),zh--,zh||(Ri=new WeakMap,Ri=new WeakMap,bc=new WeakMap,kc={})}},Pi=function(e,t,a){a===void 0&&(a="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||hT(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),vT(r,o,a,"aria-hidden")):function(){return null}};var ot=F(fe(),1),xT=Object.defineProperty,Ia=(e,t)=>xT(e,"name",{value:t,configurable:!0}),Uh="Dialog",[HS,yT]=ut(Uh),[wT,pr]=HS(Uh),CT=Ia(e=>{let{__scopeDialog:t,children:a,open:r,defaultOpen:o,onOpenChange:n,modal:s=!0}=e,i=Ze.useRef(null),l=Ze.useRef(null),[u,c]=la({prop:r,defaultProp:o??!1,onChange:n,caller:Uh}),[d,f]=Ze.useState(0),[h,v]=Ze.useState(0);return(0,ot.jsx)(wT,{scope:t,triggerRef:i,contentRef:l,contentId:bt(),titleId:bt(),descriptionId:bt(),titlePresent:d>0,descriptionPresent:h>0,setTitleCount:f,setDescriptionCount:v,open:u,onOpenChange:c,onOpenToggle:Ze.useCallback(()=>c(x=>!x),[c]),modal:s,children:a})},"Dialog"),ST="DialogTrigger",LT=Ze.forwardRef(Ia(function(t,a){let{__scopeDialog:r,...o}=t,n=pr(ST,r),s=pe(a,n.triggerRef);return(0,ot.jsx)(se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.open?n.contentId:void 0,"data-state":Rc(n.open),...o,ref:s,onClick:$(t.onClick,n.onOpenToggle)})},"DialogTrigger")),jS="DialogPortal",[IT,VS]=HS(jS,{forceMount:void 0}),bT=Ia(e=>{let{__scopeDialog:t,forceMount:a,children:r,container:o}=e,n=pr(jS,t);return(0,ot.jsx)(IT,{scope:t,forceMount:a,children:Ze.Children.map(r,s=>(0,ot.jsx)(ua,{present:a||n.open,children:(0,ot.jsx)(Si,{asChild:!0,container:o,children:s})}))})},"DialogPortal"),Bh="DialogOverlay",kT=Ze.forwardRef(Ia(function(t,a){let r=VS(Bh,t.__scopeDialog),{forceMount:o=r.forceMount,...n}=t,s=pr(Bh,t.__scopeDialog);return s.modal?(0,ot.jsx)(ua,{present:o||s.open,children:(0,ot.jsx)(PT,{...n,ref:a})}):null},"DialogOverlay")),RT=Ht("DialogOverlay.RemoveScroll"),PT=Ze.forwardRef(Ia(function(t,a){let{__scopeDialog:r,...o}=t,n=pr(Bh,r),s=gh(),i=pe(a,s);return(0,ot.jsx)(qn,{as:RT,allowPinchZoom:!0,shards:[n.contentRef],children:(0,ot.jsx)(se.div,{"data-state":Rc(n.open),...o,ref:i,style:{pointerEvents:"auto",...o.style}})})},"DialogOverlayImpl")),su="DialogContent",DT=Ze.forwardRef(Ia(function(t,a){let r=VS(su,t.__scopeDialog),{forceMount:o=r.forceMount,...n}=t,s=pr(su,t.__scopeDialog);return(0,ot.jsx)(ua,{present:o||s.open,children:s.modal?(0,ot.jsx)(TT,{...n,ref:a}):(0,ot.jsx)(MT,{...n,ref:a})})},"DialogContent")),TT=Ze.forwardRef(Ia(function(t,a){let r=pr(su,t.__scopeDialog),o=Ze.useRef(null),n=pe(a,r.contentRef,o);return Ze.useEffect(()=>{let s=o.current;if(s)return Pi(s)},[]),(0,ot.jsx)(qS,{...t,ref:n,trapFocus:r.open,disableOutsidePointerEvents:r.open,onCloseAutoFocus:$(t.onCloseAutoFocus,s=>{s.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:$(t.onPointerDownOutside,s=>{let i=s.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&s.preventDefault()}),onFocusOutside:$(t.onFocusOutside,s=>s.preventDefault())})},"DialogContentModal")),MT=Ze.forwardRef(Ia(function(t,a){let r=pr(su,t.__scopeDialog),o=Ze.useRef(!1),n=Ze.useRef(!1);return(0,ot.jsx)(qS,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(o.current||r.triggerRef.current?.focus(),s.preventDefault()),o.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));let i=s.target;r.triggerRef.current?.contains(i)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})},"DialogContentNonModal")),qS=Ze.forwardRef(Ia(function(t,a){let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:n,onCloseAutoFocus:s,...i}=t,l=pr(su,r);return on(),(0,ot.jsx)(ot.Fragment,{children:(0,ot.jsx)(Ci,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:n,onUnmountAutoFocus:s,children:(0,ot.jsx)(wi,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionPresent?l.descriptionId:void 0,"aria-labelledby":l.titlePresent?l.titleId:void 0,"data-state":Rc(l.open),...i,ref:a,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1)})})})},"DialogContentImpl")),_T="DialogTitle",AT=Ze.forwardRef(Ia(function(t,a){let{__scopeDialog:r,...o}=t,n=pr(_T,r),{setTitleCount:s}=n;return Ue(()=>(s(i=>i+1),()=>s(i=>i-1)),[s]),(0,ot.jsx)(se.h2,{id:n.titleId,...o,ref:a})},"DialogTitle")),ET="DialogDescription",OT=Ze.forwardRef(Ia(function(t,a){let{__scopeDialog:r,...o}=t,n=pr(ET,r),{setDescriptionCount:s}=n;return Ue(()=>(s(i=>i+1),()=>s(i=>i-1)),[s]),(0,ot.jsx)(se.p,{id:n.descriptionId,...o,ref:a})},"DialogDescription")),NT="DialogClose",FT=Ze.forwardRef(Ia(function(t,a){let{__scopeDialog:r,...o}=t,n=pr(NT,r);return(0,ot.jsx)(se.button,{type:"button",...o,ref:a,onClick:$(t.onClick,()=>n.onOpenChange(!1))})},"DialogClose")),zT=Ia(e=>e.children,"WarningProvider");function Rc(e){return e?"open":"closed"}Ia(Rc,"getState");var lu={};_o(lu,{Checkbox:()=>GT,CheckboxIndicator:()=>KT,Indicator:()=>KT,Root:()=>GT,createCheckboxScope:()=>VT,unstable_BubbleInput:()=>$S,unstable_CheckboxBubbleInput:()=>$S,unstable_CheckboxProvider:()=>Vh,unstable_CheckboxTrigger:()=>GS,unstable_Provider:()=>Vh,unstable_Trigger:()=>GS});var ft=F(ee(),1);var WS=F(ee(),1);var BT=Object.defineProperty,UT=(e,t)=>BT(e,"name",{value:t,configurable:!0});function iu(e){let[t,a]=WS.useState(void 0);return Ue(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});let r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;let n=o[0],s,i;if("borderBoxSize"in n){let l=n.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,i=u.blockSize}else s=e.offsetWidth,i=e.offsetHeight;a({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else a(void 0)},[e]),t}UT(iu,"useSize");var za=F(fe(),1),HT=Object.defineProperty,yo=(e,t)=>HT(e,"name",{value:t,configurable:!0}),Hh="Checkbox",[jT,VT]=ut(Hh),[qT,jh]=jT(Hh);function Vh(e){let{__scopeCheckbox:t,checked:a,children:r,defaultChecked:o,disabled:n,form:s,name:i,onCheckedChange:l,required:u,value:c="on",internal_do_not_use_render:d}=e,[f,h]=la({prop:a,defaultProp:o??!1,onChange:l,caller:Hh}),[v,x]=ft.useState(null),[w,m]=ft.useState(null),p=ft.useRef(!1),[g,y]=ft.useReducer(R=>R+1,0),L=v?!!s||!!v.closest("form"):!0,b={checked:f,disabled:n,setChecked:h,control:v,setControl:x,name:i,form:s,value:c,hasConsumerStoppedPropagationRef:p,userInteractionCount:g,onUserInteraction:y,required:u,defaultChecked:xo(o)?!1:o,isFormControl:L,bubbleInput:w,setBubbleInput:m};return(0,za.jsx)(qT,{scope:t,...b,children:KS(d)?d(b):r})}yo(Vh,"CheckboxProvider");var WT="CheckboxTrigger",GS=ft.forwardRef(yo(function({__scopeCheckbox:t,onKeyDown:a,onClick:r,...o},n){let{control:s,value:i,disabled:l,checked:u,required:c,setControl:d,setChecked:f,hasConsumerStoppedPropagationRef:h,onUserInteraction:v,isFormControl:x,bubbleInput:w}=jh(WT,t),m=pe(n,d),p=ft.useRef(u);return ft.useEffect(()=>{let g=s?.form;if(g){let y=yo(()=>f(p.current),"reset");return g.addEventListener("reset",y),()=>g.removeEventListener("reset",y)}},[s,f]),(0,za.jsx)(se.button,{type:"button",role:"checkbox","aria-checked":xo(u)?"mixed":u,"aria-required":c,"data-state":qh(u),"data-disabled":l?"":void 0,disabled:l,value:i,...o,ref:m,onKeyDown:$(a,g=>{g.key==="Enter"&&g.preventDefault()}),onClick:$(r,g=>{v(),f(y=>xo(y)?!0:!y),w&&x&&(h.current=g.isPropagationStopped(),h.current||g.stopPropagation())})})},"CheckboxTrigger")),GT=ft.forwardRef(yo(function(t,a){let{__scopeCheckbox:r,name:o,checked:n,defaultChecked:s,required:i,disabled:l,value:u,onCheckedChange:c,form:d,...f}=t;return(0,za.jsx)(Vh,{__scopeCheckbox:r,checked:n,defaultChecked:s,disabled:l,required:i,onCheckedChange:c,name:o,form:d,value:u,internal_do_not_use_render:({isFormControl:h})=>(0,za.jsxs)(za.Fragment,{children:[(0,za.jsx)(GS,{...f,ref:a,__scopeCheckbox:r}),h&&(0,za.jsx)($S,{__scopeCheckbox:r})]})})},"Checkbox")),$T="CheckboxIndicator",KT=ft.forwardRef(yo(function(t,a){let{__scopeCheckbox:r,forceMount:o,...n}=t,s=jh($T,r);return(0,za.jsx)(ua,{present:o||xo(s.checked)||s.checked===!0,children:(0,za.jsx)(se.span,{"data-state":qh(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:a,style:{pointerEvents:"none",...t.style}})})},"CheckboxIndicator")),XT="CheckboxBubbleInput",$S=ft.forwardRef(yo(function({__scopeCheckbox:t,onClick:a,...r},o){let{control:n,hasConsumerStoppedPropagationRef:s,userInteractionCount:i,checked:l,defaultChecked:u,required:c,disabled:d,name:f,value:h,form:v,bubbleInput:x,setBubbleInput:w}=jh(XT,t),m=pe(o,w),p=iu(n),g=ft.useRef(!1),y=ft.useRef(l),L=ft.useRef(i);ft.useEffect(()=>{let R=x;if(!R)return;let k=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(k,"checked").set,O=i!==L.current;L.current=i;let T=y.current!==l;y.current=l;let _=!(O&&s.current);if(T&&E){g.current=!O;let A=new Event("click",{bubbles:_});R.indeterminate=xo(l),E.call(R,xo(l)?!1:l),R.dispatchEvent(A),g.current=!1}},[x,l,s,i]);let b=ft.useRef(xo(l)?!1:l);return(0,za.jsx)(se.input,{type:"checkbox","aria-hidden":!0,defaultChecked:u??b.current,required:c,disabled:d,name:f,value:h,form:v,...r,tabIndex:-1,ref:m,onClick:$(a,R=>{g.current&&R.stopPropagation()}),style:{...r.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function KS(e){return typeof e=="function"}yo(KS,"isFunction");function xo(e){return e==="indeterminate"}yo(xo,"isIndeterminate");function qh(e){return xo(e)?"indeterminate":e?"checked":"unchecked"}yo(qh,"getState");var re=F(ee(),1);var Vt=F(ee(),1);var QS=["top","right","bottom","left"];var Er=Math.min,hr=Math.max,du=Math.round,cu=Math.floor,Or=e=>({x:e,y:e}),ZT={left:"right",right:"left",bottom:"top",top:"bottom"};function Wh(e,t,a){return hr(e,Er(t,a))}function Nr(e,t){return typeof e=="function"?e(t):e}function wo(e){return e.split("-")[0]}function Wn(e){return e.split("-")[1]}function Dc(e){return e==="x"?"y":"x"}function Tc(e){return e==="y"?"height":"width"}function gr(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Mc(e){return Dc(gr(e))}function YS(e,t,a){a===void 0&&(a=!1);let r=Wn(e),o=Mc(e),n=Tc(o),s=o==="x"?r===(a?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=uu(s)),[s,uu(s)]}function JS(e){let t=uu(e);return[Pc(e),t,Pc(t)]}function Pc(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var XS=["left","right"],ZS=["right","left"],QT=["top","bottom"],YT=["bottom","top"];function JT(e,t,a){switch(e){case"top":case"bottom":return a?t?ZS:XS:t?XS:ZS;case"left":case"right":return t?QT:YT;default:return[]}}function eL(e,t,a,r){let o=Wn(e),n=JT(wo(e),a==="start",r);return o&&(n=n.map(s=>s+"-"+o),t&&(n=n.concat(n.map(Pc)))),n}function uu(e){let t=wo(e);return ZT[t]+e.slice(t.length)}function eM(e){var t,a,r,o;return{top:(t=e.top)!=null?t:0,right:(a=e.right)!=null?a:0,bottom:(r=e.bottom)!=null?r:0,left:(o=e.left)!=null?o:0}}function Gh(e){return typeof e!="number"?eM(e):{top:e,right:e,bottom:e,left:e}}function Gn(e){let{x:t,y:a,width:r,height:o}=e;return{width:r,height:o,top:a,left:t,right:t+r,bottom:a+o,x:t,y:a}}function tL(e,t,a){let{reference:r,floating:o}=e,n=gr(t),s=Mc(t),i=Tc(s),l=wo(t),u=n==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[i]/2-o[i]/2,h;switch(l){case"top":h={x:c,y:r.y-o.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}let v=Wn(t);return v&&(h[s]+=f*(v==="end"?1:-1)*(a&&u?-1:1)),h}async function oL(e,t){var a;t===void 0&&(t={});let{x:r,y:o,platform:n,rects:s,elements:i,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=Nr(t,e),v=Gh(h),w=i[f?d==="floating"?"reference":"floating":d],m=Gn(await n.getClippingRect({element:(a=await(n.isElement==null?void 0:n.isElement(w)))==null||a?w:w.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(i.floating)),boundary:u,rootBoundary:c,strategy:l})),p=d==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,g=await(n.getOffsetParent==null?void 0:n.getOffsetParent(i.floating)),y=await(n.isElement==null?void 0:n.isElement(g))&&await(n.getScale==null?void 0:n.getScale(g))||{x:1,y:1},L=Gn(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:p,offsetParent:g,strategy:l}):p);return{top:(m.top-L.top+v.top)/y.y,bottom:(L.bottom-m.bottom+v.bottom)/y.y,left:(m.left-L.left+v.left)/y.x,right:(L.right-m.right+v.right)/y.x}}var tM=50,nL=async(e,t,a)=>{let{placement:r="bottom",strategy:o="absolute",middleware:n=[],platform:s}=a,i=s.detectOverflow?s:{...s,detectOverflow:oL},l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=tL(u,r,l),f=r,h=0,v={};for(let x=0;x<n.length;x++){let w=n[x];if(!w)continue;let{name:m,fn:p}=w,{x:g,y,data:L,reset:b}=await p({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:v,rects:u,platform:i,elements:{reference:e,floating:t}});c=g??c,d=y??d,v[m]={...v[m],...L},b&&h<tM&&(h++,typeof b=="object"&&(b.placement&&(f=b.placement),b.rects&&(u=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:c,y:d}=tL(u,f,l)),x=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:v}},sL=e=>({name:"arrow",options:e,async fn(t){let{x:a,y:r,placement:o,rects:n,platform:s,elements:i,middlewareData:l}=t,{element:u,padding:c=0}=Nr(e,t)||{};if(u==null)return{};let d=Gh(c),f={x:a,y:r},h=Mc(o),v=Tc(h),x=await s.getDimensions(u),w=h==="y",m=w?"top":"left",p=w?"bottom":"right",g=w?"clientHeight":"clientWidth",y=n.reference[v]+n.reference[h]-f[h]-n.floating[v],L=f[h]-n.reference[h],b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),R=b?b[g]:0;(!R||!await(s.isElement==null?void 0:s.isElement(b)))&&(R=i.floating[g]||n.floating[v]);let k=y/2-L/2,M=R/2-x[v]/2-1,E=Er(d[m],M),O=Er(d[p],M),T=R-x[v]-O,_=R/2-x[v]/2+k,A=Wh(E,_,T),N=!l.arrow&&Wn(o)!=null&&_!==A&&n.reference[v]/2-(_<E?E:O)-x[v]/2<0,z=N?_<E?_-E:_-T:0;return{[h]:f[h]+z,data:{[h]:A,centerOffset:_-A-z,...N&&{alignmentOffset:z}},reset:N}}});var iL=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,r;let{placement:o,middlewareData:n,rects:s,initialPlacement:i,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:x=!0,...w}=Nr(e,t);if((a=n.arrow)!=null&&a.alignmentOffset)return{};let m=wo(o),p=gr(i),g=wo(i)===i,y=await(l.isRTL==null?void 0:l.isRTL(u.floating)),L=f||(g||!x?[uu(i)]:JS(i)),b=v!=="none";!f&&b&&L.push(...eL(i,x,v,y));let R=[i,...L],k=await l.detectOverflow(t,w),M=[],E=((r=n.flip)==null?void 0:r.overflows)||[];if(c&&M.push(k[m]),d){let A=YS(o,s,y);M.push(k[A[0]],k[A[1]])}if(E=[...E,{placement:o,overflows:M}],!M.every(A=>A<=0)){var O,T;let A=(((O=n.flip)==null?void 0:O.index)||0)+1,N=R[A];if(N&&(!(d==="alignment"?p!==gr(N):!1)||E.every(V=>gr(V.placement)===p?V.overflows[0]>0:!0)))return{data:{index:A,overflows:E},reset:{placement:N}};let z=(T=E.filter(H=>H.overflows[0]<=0).sort((H,V)=>H.overflows[1]-V.overflows[1])[0])==null?void 0:T.placement;if(!z)switch(h){case"bestFit":{var _;let H=(_=E.filter(V=>{if(b){let ae=gr(V.placement);return ae===p||ae==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(ae=>ae>0).reduce((ae,D)=>ae+D,0)]).sort((V,ae)=>V[1]-ae[1])[0])==null?void 0:_[0];H&&(z=H);break}case"initialPlacement":z=i;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function aL(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function rL(e){return QS.some(t=>e[t]>=0)}var lL=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a,platform:r}=t,{strategy:o="referenceHidden",...n}=Nr(e,t);switch(o){case"referenceHidden":{let s=await r.detectOverflow(t,{...n,elementContext:"reference"}),i=aL(s,a.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:rL(i)}}}case"escaped":{let s=await r.detectOverflow(t,{...n,altBoundary:!0}),i=aL(s,a.floating);return{data:{escapedOffsets:i,escaped:rL(i)}}}default:return{}}}}};var uL=new Set(["left","top"]);async function aM(e,t){let{placement:a,platform:r,elements:o}=e,n=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=wo(a),i=Wn(a),l=gr(a)==="y",u=uL.has(s)?-1:1,c=n&&l?-1:1,d=Nr(t,e),{mainAxis:f,crossAxis:h,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof v=="number"&&(h=i==="end"?v*-1:v),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}var dL=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,r;let{x:o,y:n,placement:s,middlewareData:i}=t,l=await aM(t,e);return s===((a=i.offset)==null?void 0:a.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:n+l.y,data:{...l,placement:s}}}}},cL=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:r,placement:o,platform:n}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:p=>{let{x:g,y}=p;return{x:g,y}}},...u}=Nr(e,t),c={x:a,y:r},d=await n.detectOverflow(t,u),f=gr(o),h=Dc(f),v=c[h],x=c[f],w=(p,g)=>Wh(g+d[p==="y"?"top":"left"],g,g-d[p==="y"?"bottom":"right"]);s&&(v=w(h,v)),i&&(x=w(f,x));let m=l.fn({...t,[h]:v,[f]:x});return{...m,data:{x:m.x-a,y:m.y-r,enabled:{[h]:s,[f]:i}}}}}},fL=function(e){return e===void 0&&(e={}),{options:e,fn(t){var a,r;let{x:o,y:n,placement:s,rects:i,middlewareData:l}=t,{offset:u=0,mainAxis:c=!0,crossAxis:d=!0}=Nr(e,t),f={x:o,y:n},h=gr(s),v=Dc(h),x=f[v],w=f[h],m=Nr(u,t),p=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:(a=m.mainAxis)!=null?a:0,crossAxis:(r=m.crossAxis)!=null?r:0};if(c){let L=v==="y"?"height":"width",b=i.reference[v]-i.floating[L]+p.mainAxis,R=i.reference[v]+i.reference[L]-p.mainAxis;x<b?x=b:x>R&&(x=R)}if(d){var g,y;let L=v==="y"?"width":"height",b=uL.has(wo(s)),R=i.reference[h]-i.floating[L]+(b&&((g=l.offset)==null?void 0:g[h])||0)+(b?0:p.crossAxis),k=i.reference[h]+i.reference[L]+(b?0:((y=l.offset)==null?void 0:y[h])||0)-(b?p.crossAxis:0);w<R?w=R:w>k&&(w=k)}return{[v]:x,[h]:w}}}},pL=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:a,rects:r,platform:o,elements:n}=t,{apply:s=()=>{},...i}=Nr(e,t),l=await o.detectOverflow(t,i),u=wo(a),c=Wn(a),d=gr(a)==="y",{width:f,height:h}=r.floating,v,x;u==="top"||u==="bottom"?(v=u,x=c===(await(o.isRTL==null?void 0:o.isRTL(n.floating))?"start":"end")?"left":"right"):(x=u,v=c==="end"?"top":"bottom");let w=h-l.top-l.bottom,m=f-l.left-l.right,p=Er(h-l[v],w),g=Er(f-l[x],m),y=t.middlewareData.shift,L=!y,b=p,R=g;y!=null&&y.enabled.x&&(R=m),y!=null&&y.enabled.y&&(b=w),L&&!c&&(d?R=f-2*hr(l.left,l.right):b=h-2*hr(l.top,l.bottom)),await s({...t,availableWidth:R,availableHeight:b});let k=await o.getDimensions(n.floating);return f!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}};function _c(){return typeof window<"u"}function Xn(e){return hL(e)?(e.nodeName||"").toLowerCase():"#document"}function ca(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fr(e){var t;return(t=(hL(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function hL(e){return _c()?e instanceof Node||e instanceof ca(e).Node:!1}function vr(e){return _c()?e instanceof Element||e instanceof ca(e).Element:!1}function Co(e){return _c()?e instanceof HTMLElement||e instanceof ca(e).HTMLElement:!1}function mL(e){return!_c()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ca(e).ShadowRoot}function fu(e){let{overflow:t,overflowX:a,overflowY:r,display:o}=xr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+a)&&o!=="inline"&&o!=="contents"}function gL(e){return/^(table|td|th)$/.test(Xn(e))}function pu(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var rM=/transform|translate|scale|rotate|perspective|filter/,oM=/paint|layout|strict|content/,$n=e=>!!e&&e!=="none",$h;function Ac(e){let t=vr(e)?xr(e):e;return $n(t.transform)||$n(t.translate)||$n(t.scale)||$n(t.rotate)||$n(t.perspective)||!Ec()&&($n(t.backdropFilter)||$n(t.filter))||rM.test(t.willChange||"")||oM.test(t.contain||"")}function vL(e){let t=nn(e);for(;Co(t)&&!Di(t);){if(Ac(t))return t;if(pu(t))return null;t=nn(t)}return null}function Ec(){return $h==null&&($h=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),$h}function Di(e){return/^(html|body|#document)$/.test(Xn(e))}function xr(e){return ca(e).getComputedStyle(e)}function mu(e){return vr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nn(e){if(Xn(e)==="html")return e;let t=e.assignedSlot||e.parentNode||mL(e)&&e.host||Fr(e);return mL(t)?t.host:t}function xL(e){let t=nn(e);return Di(t)?(e.ownerDocument||e).body:Co(t)&&fu(t)?t:xL(t)}function Kn(e,t,a){var r;t===void 0&&(t=[]),a===void 0&&(a=!0);let o=xL(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),s=ca(o);if(n){let i=Oc(s);return t.concat(s,s.visualViewport||[],fu(o)?o:[],i&&a?Kn(i):[])}else return t.concat(o,Kn(o,[],a))}function Oc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function CL(e){let t=xr(e),a=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Co(e),n=o?e.offsetWidth:a,s=o?e.offsetHeight:r,i=du(a)!==n||du(r)!==s;return i&&(a=n,r=s),{width:a,height:r,$:i}}function Xh(e){return vr(e)?e:e.contextElement}function Ti(e){let t=Xh(e);if(!Co(t))return Or(1);let a=t.getBoundingClientRect(),{width:r,height:o,$:n}=CL(t),s=(n?du(a.width):a.width)/r,i=(n?du(a.height):a.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}var nM=Or(0);function SL(e){let t=ca(e);return!Ec()||!t.visualViewport?nM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sM(e,t,a){return t===void 0&&(t=!1),!!a&&t&&a===ca(e)}function Zn(e,t,a,r){t===void 0&&(t=!1),a===void 0&&(a=!1);let o=e.getBoundingClientRect(),n=Xh(e),s=Or(1);t&&(r?vr(r)&&(s=Ti(r)):s=Ti(e));let i=sM(n,a,r)?SL(n):Or(0),l=(o.left+i.x)/s.x,u=(o.top+i.y)/s.y,c=o.width/s.x,d=o.height/s.y;if(n&&r){let f=ca(n),h=vr(r)?ca(r):r,v=f,x=Oc(v);for(;x&&h!==v;){let w=Ti(x),m=x.getBoundingClientRect(),p=xr(x),g=m.left+(x.clientLeft+parseFloat(p.paddingLeft))*w.x,y=m.top+(x.clientTop+parseFloat(p.paddingTop))*w.y;l*=w.x,u*=w.y,c*=w.x,d*=w.y,l+=g,u+=y,v=ca(x),x=Oc(v)}}return Gn({width:c,height:d,x:l,y:u})}function Nc(e,t){let a=mu(e).scrollLeft;return t?t.left+a:Zn(Fr(e)).left+a}function LL(e,t){let a=e.getBoundingClientRect(),r=a.left+t.scrollLeft-Nc(e,a),o=a.top+t.scrollTop;return{x:r,y:o}}function iM(e){let{elements:t,rect:a,offsetParent:r,strategy:o}=e,n=o==="fixed",s=Fr(r),i=t?pu(t.floating):!1;if(r===s||i&&n)return a;let l={scrollLeft:0,scrollTop:0},u=Or(1),c=Or(0),d=Co(r);if((d||!n)&&((Xn(r)!=="body"||fu(s))&&(l=mu(r)),d)){let h=Zn(r);u=Ti(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}let f=s&&!d&&!n?LL(s,l):Or(0);return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:a.y*u.y-l.scrollTop*u.y+c.y+f.y}}function lM(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function uM(e){let t=mu(e),a=e.ownerDocument.body,r=hr(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),o=hr(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight),n=-t.scrollLeft+Nc(e),s=-t.scrollTop;return xr(a).direction==="rtl"&&(n+=hr(e.clientWidth,a.clientWidth)-r),{width:r,height:o,x:n,y:s}}var dM=25;function cM(e,t,a){a===void 0&&(a="viewport");let r=a==="layoutViewport",o=ca(e),n=Fr(e),s=o.visualViewport,i=n.clientWidth,l=n.clientHeight,u=0,c=0;if(s){let f=!Ec()||t==="fixed";r?f||(u=-s.offsetLeft,c=-s.offsetTop):(i=s.width,l=s.height,f&&(u=s.offsetLeft,c=s.offsetTop))}if(Nc(n)<=0){let f=n.ownerDocument,h=f.body,v=getComputedStyle(h),x=f.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,w=Math.abs(n.clientWidth-h.clientWidth-x),m=getComputedStyle(n).scrollbarGutter==="stable both-edges"?w/2:w;m<=dM&&(i-=m)}return{width:i,height:l,x:u,y:c}}function fM(e,t){let a=Zn(e,!0,t==="fixed"),r=a.top+e.clientTop,o=a.left+e.clientLeft,n=Ti(e),s=e.clientWidth*n.x,i=e.clientHeight*n.y,l=o*n.x,u=r*n.y;return{width:s,height:i,x:l,y:u}}function yL(e,t,a){let r;if(t==="viewport"||t==="layoutViewport")r=cM(e,a,t);else if(t==="document")r=uM(Fr(e));else if(vr(t))r=fM(t,a);else{let o=SL(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Gn(r)}function pM(e,t){let a=t.get(e);if(a)return a;let r=Kn(e,[],!1).filter(i=>vr(i)&&Xn(i)!=="body"),o=null,n=xr(e).position==="fixed",s=n?nn(e):e;for(;vr(s)&&!Di(s);){let i=xr(s),l=Ac(s),u=o?o.position:n?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&i.position==="static")?r=r.filter(d=>d!==s):o=i,s=nn(s)}return t.set(e,r),r}function mM(e){let{element:t,boundary:a,rootBoundary:r,strategy:o}=e,s=[...a==="clippingAncestors"?pu(t)?[]:pM(t,this._c):[].concat(a),r],i=yL(t,s[0],o),l=i.top,u=i.right,c=i.bottom,d=i.left;for(let f=1;f<s.length;f++){let h=yL(t,s[f],o);l=hr(h.top,l),u=Er(h.right,u),c=Er(h.bottom,c),d=hr(h.left,d)}return{width:u-d,height:c-l,x:d,y:l}}function hM(e){let{width:t,height:a}=CL(e);return{width:t,height:a}}function gM(e,t,a){let r=Co(t),o=Fr(t),n=a==="fixed",s=Zn(e,!0,n,t),i={scrollLeft:0,scrollTop:0},l=Or(0);if((r||!n)&&((Xn(t)!=="body"||fu(o))&&(i=mu(t)),r)){let f=Zn(t,!0,n,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}!r&&o&&(l.x=Nc(o));let u=o&&!r&&!n?LL(o,i):Or(0),c=s.left+i.scrollLeft-l.x-u.x,d=s.top+i.scrollTop-l.y-u.y;return{x:c,y:d,width:s.width,height:s.height}}function Kh(e){return xr(e).position==="static"}function wL(e,t){if(!Co(e)||xr(e).position==="fixed")return null;if(t)return t(e);let a=e.offsetParent;return Fr(e)===a&&(a=a.ownerDocument.body),a}function IL(e,t){let a=ca(e);if(pu(e))return a;if(!Co(e)){let o=nn(e);for(;o&&!Di(o);){if(vr(o)&&!Kh(o))return o;o=nn(o)}return a}let r=wL(e,t);for(;r&&gL(r)&&Kh(r);)r=wL(r,t);return r&&Di(r)&&Kh(r)&&!Ac(r)?a:r||vL(e)||a}var vM=async function(e){let t=this.getOffsetParent||IL,a=this.getDimensions,r=await a(e.floating);return{reference:gM(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function xM(e){return xr(e).direction==="rtl"}var bL={convertOffsetParentRelativeRectToViewportRelativeRect:iM,getDocumentElement:Fr,getClippingRect:mM,getOffsetParent:IL,getElementRects:vM,getClientRects:lM,getDimensions:hM,getScale:Ti,isElement:vr,isRTL:xM};function kL(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yM(e,t,a){let r=null,o,n=Fr(e);function s(){var c;clearTimeout(o),(c=r)==null||c.disconnect(),r=null}function i(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),s();let f=e.getBoundingClientRect(),{left:h,top:v,width:x,height:w}=f;if(c||t(),!x||!w)return;let m=cu(v),p=cu(n.clientWidth-(h+x)),g=cu(n.clientHeight-(v+w)),y=cu(h),b={rootMargin:-m+"px "+-p+"px "+-g+"px "+-y+"px",threshold:hr(0,Er(1,d))||1},R=!0;function k(M){let E=M[0].intersectionRatio;if(!kL(f,e.getBoundingClientRect()))return i();if(E!==d){if(!R)return i();E?i(!1,E):o=setTimeout(()=>{i(!1,1e-7)},1e3)}R=!1}try{r=new IntersectionObserver(k,{...b,root:n.ownerDocument})}catch{r=new IntersectionObserver(k,b)}r.observe(e)}let l=ca(e),u=()=>i(a);return l.addEventListener("resize",u),i(!0),()=>{l.removeEventListener("resize",u),s()}}function Zh(e,t,a,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:n=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Xh(e),c=o||n?[...u?Kn(u):[],...t?Kn(t):[]]:[];c.forEach(m=>{o&&m.addEventListener("scroll",a),n&&m.addEventListener("resize",a)});let d=u&&i?yM(u,a,n):null,f=-1,h=null;s&&(h=new ResizeObserver(m=>{let[p]=m;p&&p.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var g;(g=h)==null||g.observe(t)})),a()}),u&&!l&&h.observe(u),t&&h.observe(t));let v,x=l?Zn(e):null;l&&w();function w(){let m=Zn(e);x&&!kL(x,m)&&a(),x=m,v=requestAnimationFrame(w)}return a(),()=>{var m;c.forEach(p=>{o&&p.removeEventListener("scroll",a),n&&p.removeEventListener("resize",a)}),d?.(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(v)}}var RL=dL;var PL=cL,DL=iL,TL=pL,ML=lL,Qh=sL;var _L=fL,Yh=(e,t,a)=>{let r=new Map,o=a??{},n={...bL,...o.platform,_c:r};return nL(e,t,{...o,platform:n})};var pt=F(ee(),1),EL=F(ee(),1),OL=F(hi(),1),wM=typeof document<"u",CM=function(){},Fc=wM?EL.useLayoutEffect:CM;function zc(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 a,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(r=a;r--!==0;)if(!zc(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),a=o.length,a!==Object.keys(t).length)return!1;for(r=a;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=a;r--!==0;){let n=o[r];if(!(n==="_owner"&&e.$$typeof)&&!zc(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function NL(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function AL(e,t){let a=NL(e);return Math.round(t*a)/a}function Jh(e){let t=pt.useRef(e);return Fc(()=>{t.current=e}),t}function FL(e){e===void 0&&(e={});let{placement:t="bottom",strategy:a="absolute",middleware:r=[],platform:o,elements:{reference:n,floating:s}={},transform:i=!0,whileElementsMounted:l,open:u}=e,[c,d]=pt.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=pt.useState(r);zc(f,r)||h(r);let[v,x]=pt.useState(null),[w,m]=pt.useState(null),p=pt.useCallback(V=>{V!==b.current&&(b.current=V,x(V))},[]),g=pt.useCallback(V=>{V!==R.current&&(R.current=V,m(V))},[]),y=n||v,L=s||w,b=pt.useRef(null),R=pt.useRef(null),k=pt.useRef(c),M=l!=null,E=Jh(l),O=Jh(o),T=Jh(u),_=pt.useCallback(()=>{if(!b.current||!R.current)return;let V={placement:t,strategy:a,middleware:f};O.current&&(V.platform=O.current),Yh(b.current,R.current,V).then(ae=>{let D={...ae,isPositioned:T.current!==!1};A.current&&!zc(k.current,D)&&(k.current=D,OL.flushSync(()=>{d(D)}))})},[f,t,a,O,T]);Fc(()=>{u===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,d(V=>({...V,isPositioned:!1})))},[u]);let A=pt.useRef(!1);Fc(()=>(A.current=!0,()=>{A.current=!1}),[]),Fc(()=>{if(y&&(b.current=y),L&&(R.current=L),y&&L){if(E.current)return E.current(y,L,_);_()}},[y,L,_,E,M]);let N=pt.useMemo(()=>({reference:b,floating:R,setReference:p,setFloating:g}),[p,g]),z=pt.useMemo(()=>({reference:y,floating:L}),[y,L]),H=pt.useMemo(()=>{let V={position:a,left:0,top:0};if(!z.floating)return V;let ae=AL(z.floating,c.x),D=AL(z.floating,c.y);return i?{...V,transform:"translate("+ae+"px, "+D+"px)",...NL(z.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:ae,top:D}},[a,i,z.floating,c.x,c.y]);return pt.useMemo(()=>({...c,update:_,refs:N,elements:z,floatingStyles:H}),[c,_,N,z,H])}var SM=e=>{function t(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){let{element:r,padding:o}=typeof e=="function"?e(a):e;return r&&t(r)?r.current!=null?Qh({element:r.current,padding:o}).fn(a):{}:r?Qh({element:r,padding:o}).fn(a):{}}}},zL=(e,t)=>{let a=RL(e);return{name:a.name,fn:a.fn,options:[e,t]}},BL=(e,t)=>{let a=PL(e);return{name:a.name,fn:a.fn,options:[e,t]}},UL=(e,t)=>({fn:_L(e).fn,options:[e,t]}),HL=(e,t)=>{let a=DL(e);return{name:a.name,fn:a.fn,options:[e,t]}},jL=(e,t)=>{let a=TL(e);return{name:a.name,fn:a.fn,options:[e,t]}};var VL=(e,t)=>{let a=ML(e);return{name:a.name,fn:a.fn,options:[e,t]}};var qL=(e,t)=>{let a=SM(e);return{name:a.name,fn:a.fn,options:[e,t]}};var WL=F(ee(),1);var eg=F(fe(),1),LM=Object.defineProperty,IM=(e,t)=>LM(e,"name",{value:t,configurable:!0}),bM=WL.forwardRef(IM(function(t,a){let{children:r,width:o=10,height:n=5,...s}=t;return(0,eg.jsx)(se.svg,{...s,ref:a,width:o,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:(0,eg.jsx)("polygon",{points:"0,0 30,0 15,10"})})},"Arrow")),GL=bM;var sn=F(fe(),1),RM=Object.defineProperty,So=(e,t)=>RM(e,"name",{value:t,configurable:!0});var $L="Popper",[KL,Mi]=ut($L),[PM,XL]=KL($L),DM=So(e=>{let{__scopePopper:t,children:a}=e,[r,o]=Vt.useState(null),[n,s]=Vt.useState(void 0);return(0,sn.jsx)(PM,{scope:t,anchor:r,onAnchorChange:o,placementState:n,setPlacementState:s,children:a})},"Popper"),TM="PopperAnchor",MM=Vt.forwardRef(So(function(t,a){let{__scopePopper:r,virtualRef:o,...n}=t,s=XL(TM,r),i=Vt.useRef(null),l=s.onAnchorChange,u=Vt.useCallback(x=>{i.current=x,x&&l(x)},[l]),c=pe(a,u),d=Vt.useRef(null);Vt.useEffect(()=>{if(!o)return;let x=d.current;d.current=o.current,x!==d.current&&l(d.current)});let f=s.placementState&&Bc(s.placementState),h=f?.[0],v=f?.[1];return o?null:(0,sn.jsx)(se.div,{"data-radix-popper-side":h,"data-radix-popper-align":v,...n,ref:c})},"PopperAnchor")),ZL="PopperContent",[_M,AM]=KL(ZL),EM=Vt.forwardRef(So(function(t,a){let{__scopePopper:r,side:o="bottom",sideOffset:n=0,align:s="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:v="optimized",onPlaced:x,...w}=t,m=XL(ZL,r),[p,g]=Vt.useState(null),y=pe(a,g),[L,b]=Vt.useState(null),R=iu(L),k=R?.width??0,M=R?.height??0,E=o+(s!=="center"?"-"+s:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},T=Array.isArray(c)?c:[c],_=T.length>0,A={padding:O,boundary:T.filter(QL),altBoundary:_},{refs:N,floatingStyles:z,placement:H,isPositioned:V,middlewareData:ae}=FL({strategy:"fixed",placement:E,whileElementsMounted:So((...ue)=>Zh(...ue,{animationFrame:v==="always"}),"whileElementsMounted"),elements:{reference:m.anchor},middleware:[zL({mainAxis:n+M,alignmentAxis:i}),u&&BL({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?UL():void 0,...A}),u&&HL({...A}),jL({...A,apply:So(({elements:ue,rects:He,availableWidth:Fe,availableHeight:ze})=>{let{width:Oe,height:We}=He.reference,ra=ue.floating.style;ra.setProperty("--radix-popper-available-width",`${Fe}px`),ra.setProperty("--radix-popper-available-height",`${ze}px`),ra.setProperty("--radix-popper-anchor-width",`${Oe}px`),ra.setProperty("--radix-popper-anchor-height",`${We}px`)},"apply")}),L&&qL({element:L,padding:l}),zM({arrowWidth:k,arrowHeight:M}),h&&VL({strategy:"referenceHidden",...A,boundary:_?A.boundary:void 0})]}),D=m.setPlacementState;Ue(()=>(D(H),()=>{D(void 0)}),[H,D]);let[ge,ve]=Bc(H),j=ct(x);Ue(()=>{V&&j?.()},[V,j]);let Re=ae.arrow?.x,Pe=ae.arrow?.y,Se=ae.arrow?.centerOffset!==0,[qe,J]=Vt.useState();return Ue(()=>{p&&J(window.getComputedStyle(p).zIndex)},[p]),(0,sn.jsx)("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:V?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:qe,"--radix-popper-transform-origin":[ae.transformOrigin?.x,ae.transformOrigin?.y].join(" "),...ae.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:(0,sn.jsx)(_M,{scope:r,placedSide:ge,placedAlign:ve,onArrowChange:b,arrowX:Re,arrowY:Pe,shouldHideArrow:Se,children:(0,sn.jsx)(se.div,{"data-side":ge,"data-align":ve,...w,ref:y,style:{...w.style,animation:V?w.style?.animation:"none"}})})})},"PopperContent")),OM="PopperArrow",NM={top:"bottom",right:"left",bottom:"top",left:"right"},FM=Vt.forwardRef(So(function(t,a){let{__scopePopper:r,...o}=t,n=AM(OM,r),s=NM[n.placedSide];return(0,sn.jsx)("span",{ref:n.onArrowChange,style:{position:"absolute",left:n.arrowX,top:n.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[n.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[n.placedSide],visibility:n.shouldHideArrow?"hidden":void 0},children:(0,sn.jsx)(GL,{...o,ref:a,style:{...o.style,display:"block"}})})},"PopperArrow"));function QL(e){return e!==null}So(QL,"isNotNull");var zM=So(e=>({name:"transformOrigin",options:e,fn(t){let{placement:a,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,c]=Bc(a),d={start:"0%",center:"50%",end:"100%"}[c],f=(o.arrow?.x??0)+i/2,h=(o.arrow?.y??0)+l/2,v="",x="";return u==="bottom"?(v=s?d:`${f}px`,x=`${-l}px`):u==="top"?(v=s?d:`${f}px`,x=`${r.floating.height+l}px`):u==="right"?(v=`${-l}px`,x=s?d:`${h}px`):u==="left"&&(v=`${r.floating.width+l}px`,x=s?d:`${h}px`),{data:{x:v,y:x}}}}),"transformOrigin");function Bc(e){let[t,a="center"]=e.split("-");return[t,a]}So(Bc,"getSideAndAlignFromPlacement");var hu=DM,Uc=MM,Hc=EM,jc=FM;var Et=F(ee(),1);var UM=F(ee(),1),Vc=F(ee(),1),BM=Object.defineProperty,ag=(e,t)=>BM(e,"name",{value:t,configurable:!0}),tg=!1;function JL(){let[e,t]=Vc.useState(tg);return Vc.useEffect(()=>{tg||(tg=!0,t(!0))},[]),e}ag(JL,"useIsHydrated");var eI=UM[" useSyncExternalStore ".trim().toString()];function tI(){return()=>{}}ag(tI,"subscribe");function aI(){return eI(tI,()=>!0,()=>!1)}ag(aI,"useIsHydratedModern");var rI=typeof eI=="function"?aI:JL;var ln=F(fe(),1),HM=Object.defineProperty,Qn=(e,t)=>HM(e,"name",{value:t,configurable:!0}),rg="rovingFocusGroup.onEntryFocus",jM={bubbles:!1,cancelable:!0},qc="RovingFocusGroup",[og,oI,VM]=Un(qc),[qM,_i]=ut(qc,[VM]),[WM,GM]=qM(qc),$M=Et.forwardRef(Qn(function(t,a){return(0,ln.jsx)(og.Provider,{scope:t.__scopeRovingFocusGroup,children:(0,ln.jsx)(og.Slot,{scope:t.__scopeRovingFocusGroup,children:(0,ln.jsx)(KM,{...t,ref:a})})})},"RovingFocusGroup")),KM=Et.forwardRef(Qn(function(t,a){let{__scopeRovingFocusGroup:r,orientation:o,loop:n=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...f}=t,h=Et.useRef(null),v=pe(a,h),x=go(s),[w,m]=la({prop:i,defaultProp:l??null,onChange:u,caller:qc}),[p,g]=Et.useState(!1),y=ct(c),L=oI(r),b=Et.useRef(!1),[R,k]=Et.useState(0);return Et.useEffect(()=>{let M=h.current;if(M)return M.addEventListener(rg,y),()=>M.removeEventListener(rg,y)},[y]),(0,ln.jsx)(WM,{scope:r,orientation:o,dir:x,loop:n,currentTabStopId:w,onItemFocus:Et.useCallback(M=>m(M),[m]),onItemShiftTab:Et.useCallback(()=>g(!0),[]),onFocusableItemAdd:Et.useCallback(()=>k(M=>M+1),[]),onFocusableItemRemove:Et.useCallback(()=>k(M=>M-1),[]),children:(0,ln.jsx)(se.div,{tabIndex:p||R===0?-1:0,"data-orientation":o,...f,ref:v,style:{outline:"none",...t.style},onMouseDown:$(t.onMouseDown,()=>{b.current=!0}),onFocus:$(t.onFocus,M=>{let E=!b.current;if(M.target===M.currentTarget&&E&&!p){let O=new CustomEvent(rg,jM);if(M.currentTarget.dispatchEvent(O),!O.defaultPrevented){let T=L().filter(H=>H.focusable),_=T.find(H=>H.active),A=T.find(H=>H.id===w),z=[_,A,...T].filter(Boolean).map(H=>H.ref.current);ng(z,d)}}b.current=!1}),onBlur:$(t.onBlur,()=>g(!1))})})},"RovingFocusGroupImpl")),XM="RovingFocusGroupItem",ZM=Et.forwardRef(Qn(function(t,a){let{__scopeRovingFocusGroup:r,focusable:o=!0,active:n=!1,tabStopId:s,children:i,...l}=t,u=bt(),c=s||u,d=GM(XM,r),f=d.currentTabStopId===c,h=oI(r),{onFocusableItemAdd:v,onFocusableItemRemove:x,currentTabStopId:w}=d,m=rI();return Ue(()=>{if(!(!m||!o))return v(),()=>x()},[m,o,v,x]),Et.useEffect(()=>{if(!(m||!o))return v(),()=>x()},[m,o,v,x]),(0,ln.jsx)(og.ItemSlot,{scope:r,id:c,focusable:o,active:n,children:(0,ln.jsx)(se.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...l,ref:a,onMouseDown:$(t.onMouseDown,p=>{o?d.onItemFocus(c):p.preventDefault()}),onFocus:$(t.onFocus,()=>d.onItemFocus(c)),onKeyDown:$(t.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){d.onItemShiftTab();return}if(p.target!==p.currentTarget)return;let g=sI(p,d.orientation,d.dir);if(g!==void 0){if(p.metaKey||p.ctrlKey||p.altKey||p.shiftKey)return;p.preventDefault();let L=h().filter(b=>b.focusable).map(b=>b.ref.current);if(g==="last")L.reverse();else if(g==="prev"||g==="next"){g==="prev"&&L.reverse();let b=L.indexOf(p.currentTarget);L=d.loop?iI(L,b+1):L.slice(b+1)}setTimeout(()=>ng(L))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:w!=null}):i})})},"RovingFocusGroupItem")),QM={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function nI(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}Qn(nI,"getDirectionAwareKey");function sI(e,t,a){let r=nI(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return QM[r]}Qn(sI,"getFocusIntent");function ng(e,t=!1){let a=document.activeElement;for(let r of e)if(r===a||(r.focus({preventScroll:t}),document.activeElement!==a))return}Qn(ng,"focusFirst");function iI(e,t){return e.map((a,r)=>e[(t+r)%e.length])}Qn(iI,"wrapArray");var Wc=$M,Gc=ZM;var me=F(fe(),1),YM=Object.defineProperty,Ae=(e,t)=>YM(e,"name",{value:t,configurable:!0}),sg=["Enter"," "],JM=["ArrowDown","PageUp","Home"],dI=["ArrowUp","PageDown","End"],e_=[...JM,...dI],t_={ltr:[...sg,"ArrowRight"],rtl:[...sg,"ArrowLeft"]},a_={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Kc="Menu",[gu,r_,o_]=Un(Kc),[Yn,lg]=ut(Kc,[o_,Mi,_i]),xu=Mi(),cI=_i(),[fI,un]=Yn(Kc),[n_,yu]=Yn(Kc),s_=Ae(e=>{let{__scopeMenu:t,open:a=!1,children:r,dir:o,onOpenChange:n,modal:s=!0}=e,i=xu(t),[l,u]=re.useState(null),c=re.useRef(!1),d=ct(n),f=go(o);return re.useEffect(()=>{let h=Ae(()=>{c.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},"handleKeyDown"),v=Ae(()=>c.current=!1,"handlePointer");return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),re.useEffect(()=>{if(!a)return;let h=Ae(()=>d(!1),"handleBlur");return window.addEventListener("blur",h),()=>window.removeEventListener("blur",h)},[a,d]),(0,me.jsx)(hu,{...i,children:(0,me.jsx)(fI,{scope:t,open:a,onOpenChange:d,content:l,onContentChange:u,children:(0,me.jsx)(n_,{scope:t,onClose:re.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:s,children:r})})})},"Menu"),pI=re.forwardRef(Ae(function(t,a){let{__scopeMenu:r,...o}=t,n=xu(r);return(0,me.jsx)(Uc,{...n,...o,ref:a})},"MenuAnchor")),mI="MenuPortal",[i_,hI]=Yn(mI,{forceMount:void 0}),l_=Ae(e=>{let{__scopeMenu:t,forceMount:a,children:r,container:o}=e,n=un(mI,t);return(0,me.jsx)(i_,{scope:t,forceMount:a,children:(0,me.jsx)(ua,{present:a||n.open,children:(0,me.jsx)(Si,{asChild:!0,container:o,children:r})})})},"MenuPortal"),yr="MenuContent",[u_,ug]=Yn(yr),d_=re.forwardRef(Ae(function(t,a){let r=hI(yr,t.__scopeMenu),{forceMount:o=r.forceMount,...n}=t,s=un(yr,t.__scopeMenu),i=yu(yr,t.__scopeMenu);return(0,me.jsx)(gu.Provider,{scope:t.__scopeMenu,children:(0,me.jsx)(ua,{present:o||s.open,children:(0,me.jsx)(gu.Slot,{scope:t.__scopeMenu,children:i.modal?(0,me.jsx)(c_,{...n,ref:a}):(0,me.jsx)(f_,{...n,ref:a})})})})},"MenuContent")),c_=re.forwardRef(Ae(function(t,a){let r=un(yr,t.__scopeMenu),o=re.useRef(null),n=pe(a,o);return re.useEffect(()=>{let s=o.current;if(s)return Pi(s)},[]),(0,me.jsx)(dg,{...t,ref:n,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:$(t.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})},"MenuRootContentModal")),f_=re.forwardRef(Ae(function(t,a){let r=un(yr,t.__scopeMenu);return(0,me.jsx)(dg,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})},"MenuRootContentNonModal")),p_=Ht("MenuContent.ScrollLock"),dg=re.forwardRef(Ae(function(t,a){let{__scopeMenu:r,loop:o=!1,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:u,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:v,disableOutsideScroll:x,...w}=t,m=un(yr,r),p=yu(yr,r),g=xu(r),y=cI(r),L=r_(r),[b,R]=re.useState(null),k=re.useRef(null),M=pe(a,k,m.onContentChange),E=re.useRef(0),O=re.useRef(""),T=re.useRef(0),_=re.useRef(null),A=re.useRef("right"),N=re.useRef(0),z=x?qn:re.Fragment,H=x?{as:p_,allowPinchZoom:!0}:void 0,V=Ae(D=>{let ge=O.current+D,ve=L().filter(J=>!J.disabled),j=document.activeElement,Re=ve.find(J=>J.ref.current===j)?.textValue,Pe=ve.map(J=>J.textValue),Se=II(Pe,ge,Re),qe=ve.find(J=>J.textValue===Se)?.ref.current;Ae((function J(ue){O.current=ue,window.clearTimeout(E.current),ue!==""&&(E.current=window.setTimeout(()=>J(""),1e3))}),"updateSearch")(ge),qe&&setTimeout(()=>qe.focus())},"handleTypeaheadSearch");re.useEffect(()=>()=>window.clearTimeout(E.current),[]),on();let ae=re.useCallback(D=>A.current===_.current?.side&&kI(D,_.current?.area),[]);return(0,me.jsx)(u_,{scope:r,searchRef:O,onItemEnter:re.useCallback(D=>{ae(D)&&D.preventDefault()},[ae]),onItemLeave:re.useCallback(D=>{ae(D)||(k.current?.focus(),R(null))},[ae]),onTriggerLeave:re.useCallback(D=>{ae(D)&&D.preventDefault()},[ae]),pointerGraceTimerRef:T,onPointerGraceIntentChange:re.useCallback(D=>{_.current=D},[]),children:(0,me.jsx)(z,{...H,children:(0,me.jsx)(Ci,{asChild:!0,trapped:n,onMountAutoFocus:$(s,D=>{D.preventDefault(),k.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:(0,me.jsx)(wi,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:v,children:(0,me.jsx)(Wc,{asChild:!0,...y,dir:p.dir,orientation:"vertical",loop:o,currentTabStopId:b,onCurrentTabStopIdChange:R,onEntryFocus:$(u,D=>{p.isUsingKeyboardRef.current||D.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,me.jsx)(Hc,{role:"menu","aria-orientation":"vertical","data-state":fg(m.open),"data-radix-menu-content":"",dir:p.dir,...g,...w,ref:M,style:{outline:"none",...w.style},onKeyDown:$(w.onKeyDown,D=>{let ve=D.target.closest("[data-radix-menu-content]")===D.currentTarget,j=D.ctrlKey||D.altKey||D.metaKey,Re=D.key.length===1;ve&&(D.key==="Tab"&&D.preventDefault(),!j&&Re&&V(D.key));let Pe=k.current;if(D.target!==Pe||!e_.includes(D.key))return;D.preventDefault();let qe=L().filter(J=>!J.disabled).map(J=>J.ref.current);dI.includes(D.key)&&qe.reverse(),SI(qe)}),onBlur:$(t.onBlur,D=>{D.currentTarget.contains(D.target)||(window.clearTimeout(E.current),O.current="")}),onPointerMove:$(t.onPointerMove,Ai(D=>{let ge=D.target,ve=N.current!==D.clientX;if(D.currentTarget.contains(ge)&&ve){let j=D.clientX>N.current?"right":"left";A.current=j,N.current=D.clientX}}))})})})})})})},"MenuContentImpl")),gI=re.forwardRef(Ae(function(t,a){let{__scopeMenu:r,...o}=t;return(0,me.jsx)(se.div,{role:"group",...o,ref:a})},"MenuGroup")),m_=re.forwardRef(Ae(function(t,a){let{__scopeMenu:r,...o}=t;return(0,me.jsx)(se.div,{...o,ref:a})},"MenuLabel")),ig="MenuItem",uI="menu.itemSelect",cg=re.forwardRef(Ae(function(t,a){let{disabled:r=!1,onSelect:o,...n}=t,s=re.useRef(null),i=yu(ig,t.__scopeMenu),l=ug(ig,t.__scopeMenu),u=pe(a,s),c=re.useRef(!1),d=Ae(()=>{let f=s.current;if(!r&&f){let h=new CustomEvent(uI,{bubbles:!0,cancelable:!0});f.addEventListener(uI,v=>o?.(v),{once:!0}),tu(f,h),h.defaultPrevented?c.current=!1:i.onClose()}},"handleSelect");return(0,me.jsx)(vI,{...n,ref:u,disabled:r,onClick:$(t.onClick,d),onPointerDown:f=>{t.onPointerDown?.(f),c.current=!0},onPointerUp:$(t.onPointerUp,f=>{c.current||f.currentTarget?.click()}),onKeyDown:$(t.onKeyDown,f=>{r||f.target!==f.currentTarget||l.searchRef.current!==""&&f.key===" "||sg.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})},"MenuItem")),vI=re.forwardRef(Ae(function(t,a){let{__scopeMenu:r,disabled:o=!1,textValue:n,...s}=t,i=ug(ig,r),l=cI(r),u=re.useRef(null),c=pe(a,u),[d,f]=re.useState(!1),[h,v]=re.useState("");return re.useEffect(()=>{let x=u.current;x&&v((x.textContent??"").trim())},[s.children]),(0,me.jsx)(gu.ItemSlot,{scope:r,disabled:o,textValue:n??h,children:(0,me.jsx)(Gc,{asChild:!0,...l,focusable:!o,children:(0,me.jsx)(se.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:c,onPointerMove:$(t.onPointerMove,Ai(x=>{o?i.onItemLeave(x):(i.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:$(t.onPointerLeave,Ai(x=>i.onItemLeave(x))),onFocus:$(t.onFocus,()=>f(!0)),onBlur:$(t.onBlur,()=>f(!1))})})})},"MenuItemImpl")),h_=re.forwardRef(Ae(function(t,a){let{checked:r=!1,onCheckedChange:o,...n}=t;return(0,me.jsx)(yI,{scope:t.__scopeMenu,checked:r,children:(0,me.jsx)(cg,{role:"menuitemcheckbox","aria-checked":vu(r)?"mixed":r,...n,ref:a,"data-state":Xc(r),onSelect:$(n.onSelect,()=>o?.(vu(r)?!0:!r),{checkForDefaultPrevented:!1})})})},"MenuCheckboxItem")),g_="MenuRadioGroup",[v_,x_]=Yn(g_,{value:void 0,onValueChange:Ae(()=>{},"onValueChange")}),y_=re.forwardRef(Ae(function(t,a){let{value:r,onValueChange:o,...n}=t,s=ct(o);return(0,me.jsx)(v_,{scope:t.__scopeMenu,value:r,onValueChange:s,children:(0,me.jsx)(gI,{...n,ref:a})})},"MenuRadioGroup")),w_="MenuRadioItem",C_=re.forwardRef(Ae(function(t,a){let{value:r,...o}=t,n=x_(w_,t.__scopeMenu),s=r===n.value;return(0,me.jsx)(yI,{scope:t.__scopeMenu,checked:s,children:(0,me.jsx)(cg,{role:"menuitemradio","aria-checked":s,...o,ref:a,"data-state":Xc(s),onSelect:$(o.onSelect,()=>n.onValueChange?.(r),{checkForDefaultPrevented:!1})})})},"MenuRadioItem")),xI="MenuItemIndicator",[yI,S_]=Yn(xI,{checked:!1}),L_=re.forwardRef(Ae(function(t,a){let{__scopeMenu:r,forceMount:o,...n}=t,s=S_(xI,r);return(0,me.jsx)(ua,{present:o||vu(s.checked)||s.checked===!0,children:(0,me.jsx)(se.span,{...n,ref:a,"data-state":Xc(s.checked)})})},"MenuItemIndicator")),I_=re.forwardRef(Ae(function(t,a){let{__scopeMenu:r,...o}=t;return(0,me.jsx)(se.div,{role:"separator","aria-orientation":"horizontal",...o,ref:a})},"MenuSeparator")),b_=re.forwardRef(Ae(function(t,a){let{__scopeMenu:r,...o}=t,n=xu(r);return(0,me.jsx)(jc,{...n,...o,ref:a})},"MenuArrow")),wI="MenuSub",[k_,CI]=Yn(wI),R_=Ae(e=>{let{__scopeMenu:t,children:a,open:r=!1,onOpenChange:o}=e,n=un(wI,t),s=xu(t),[i,l]=re.useState(null),[u,c]=re.useState(null),d=ct(o);return re.useEffect(()=>(n.open===!1&&d(!1),()=>d(!1)),[n.open,d]),(0,me.jsx)(hu,{...s,children:(0,me.jsx)(fI,{scope:t,open:r,onOpenChange:d,content:u,onContentChange:c,children:(0,me.jsx)(k_,{scope:t,contentId:bt(),triggerId:bt(),trigger:i,onTriggerChange:l,children:a})})})},"MenuSub"),$c="MenuSubTrigger",P_=re.forwardRef(Ae(function(t,a){let r=un($c,t.__scopeMenu),o=yu($c,t.__scopeMenu),n=CI($c,t.__scopeMenu),s=ug($c,t.__scopeMenu),i=re.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=s,c={__scopeMenu:t.__scopeMenu},d=re.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);re.useEffect(()=>d,[d]),re.useEffect(()=>{let h=l.current;return()=>{window.clearTimeout(h),u(null)}},[l,u]);let f=pe(a,n.onTriggerChange);return(0,me.jsx)(pI,{asChild:!0,...c,children:(0,me.jsx)(vI,{id:n.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":r.open?n.contentId:void 0,"data-state":fg(r.open),...t,ref:f,onClick:h=>{t.onClick?.(h),!(t.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:$(t.onPointerMove,Ai(h=>{s.onItemEnter(h),!h.defaultPrevented&&!t.disabled&&!r.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),d()},100))})),onPointerLeave:$(t.onPointerLeave,Ai(h=>{d();let v=r.content?.getBoundingClientRect();if(v){let x=r.content?.dataset.side,w=x==="right",m=w?-5:5,p=v[w?"left":"right"],g=v[w?"right":"left"];s.onPointerGraceIntentChange({area:[{x:h.clientX+m,y:h.clientY},{x:p,y:v.top},{x:g,y:v.top},{x:g,y:v.bottom},{x:p,y:v.bottom}],side:x}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(h),h.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:$(t.onKeyDown,h=>{t.disabled||h.target!==h.currentTarget||s.searchRef.current!==""&&h.key===" "||t_[o.dir].includes(h.key)&&(r.onOpenChange(!0),r.content?.focus(),h.preventDefault())})})})},"MenuSubTrigger")),D_="MenuSubContent",T_=re.forwardRef(Ae(function(t,a){let r=hI(yr,t.__scopeMenu),{forceMount:o=r.forceMount,align:n="start",...s}=t,i=un(yr,t.__scopeMenu),l=yu(yr,t.__scopeMenu),u=CI(D_,t.__scopeMenu),c=re.useRef(null),d=pe(a,c);return(0,me.jsx)(gu.Provider,{scope:t.__scopeMenu,children:(0,me.jsx)(ua,{present:o||i.open,children:(0,me.jsx)(gu.Slot,{scope:t.__scopeMenu,children:(0,me.jsx)(dg,{id:u.contentId,"aria-labelledby":u.triggerId,...s,ref:d,align:n,side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{l.isUsingKeyboardRef.current&&c.current?.focus(),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:$(t.onFocusOutside,f=>{f.target!==u.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:$(t.onEscapeKeyDown,f=>{l.onClose(),f.preventDefault()}),onKeyDown:$(t.onKeyDown,f=>{let h=f.currentTarget.contains(f.target),v=a_[l.dir].includes(f.key);h&&v&&(i.onOpenChange(!1),u.trigger?.focus(),f.preventDefault())})})})})})},"MenuSubContent"));function fg(e){return e?"open":"closed"}Ae(fg,"getOpenState");function vu(e){return e==="indeterminate"}Ae(vu,"isIndeterminate");function Xc(e){return vu(e)?"indeterminate":e?"checked":"unchecked"}Ae(Xc,"getCheckedState");function SI(e){let t=document.activeElement;for(let a of e)if(a===t||(a.focus(),document.activeElement!==t))return}Ae(SI,"focusFirst");function LI(e,t){return e.map((a,r)=>e[(t+r)%e.length])}Ae(LI,"wrapArray");function II(e,t,a){let o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,n=a?e.indexOf(a):-1,s=LI(e,Math.max(n,0));o.length===1&&(s=s.filter(u=>u!==a));let l=s.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return l!==a?l:void 0}Ae(II,"getNextMatch");function bI(e,t){let{x:a,y:r}=e,o=!1;for(let n=0,s=t.length-1;n<t.length;s=n++){let i=t[n],l=t[s],u=i.x,c=i.y,d=l.x,f=l.y;c>r!=f>r&&a<(d-u)*(r-c)/(f-c)+u&&(o=!o)}return o}Ae(bI,"isPointInPolygon");function kI(e,t){if(!t)return!1;let a={x:e.clientX,y:e.clientY};return bI(a,t)}Ae(kI,"isPointerInGraceArea");function Ai(e){return t=>t.pointerType==="mouse"?e(t):void 0}Ae(Ai,"whenMouse");var RI=s_,PI=pI,DI=l_,TI=d_,MI=gI,_I=m_,AI=cg,EI=h_,OI=y_,NI=C_,FI=L_,zI=I_,BI=b_,UI=R_,HI=P_,jI=T_;var zr={};_o(zr,{Arrow:()=>Z_,CheckboxItem:()=>W_,Content:()=>H_,DropdownMenu:()=>qI,DropdownMenuArrow:()=>ab,DropdownMenuCheckboxItem:()=>QI,DropdownMenuContent:()=>$I,DropdownMenuGroup:()=>KI,DropdownMenuItem:()=>ZI,DropdownMenuItemIndicator:()=>eb,DropdownMenuLabel:()=>XI,DropdownMenuPortal:()=>GI,DropdownMenuRadioGroup:()=>YI,DropdownMenuRadioItem:()=>JI,DropdownMenuSeparator:()=>tb,DropdownMenuSub:()=>rb,DropdownMenuSubContent:()=>nb,DropdownMenuSubTrigger:()=>ob,DropdownMenuTrigger:()=>WI,Group:()=>j_,Item:()=>q_,ItemIndicator:()=>K_,Label:()=>V_,Portal:()=>U_,RadioGroup:()=>G_,RadioItem:()=>$_,Root:()=>z_,Separator:()=>X_,Sub:()=>Q_,SubContent:()=>J_,SubTrigger:()=>Y_,Trigger:()=>B_,createDropdownMenuScope:()=>E_});var Rt=F(ee(),1);var kt=F(fe(),1),__=Object.defineProperty,Yt=(e,t)=>__(e,"name",{value:t,configurable:!0}),pg="DropdownMenu",[A_,E_]=ut(pg,[lg]),Jt=lg(),[O_,VI]=A_(pg),qI=Yt(e=>{let{__scopeDropdownMenu:t,children:a,dir:r,open:o,defaultOpen:n,onOpenChange:s,modal:i=!0}=e,l=Jt(t),u=Rt.useRef(null),[c,d]=la({prop:o,defaultProp:n??!1,onChange:s,caller:pg});return(0,kt.jsx)(O_,{scope:t,triggerId:bt(),triggerRef:u,contentId:bt(),open:c,onOpenChange:d,onOpenToggle:Rt.useCallback(()=>d(f=>!f),[d]),modal:i,children:(0,kt.jsx)(RI,{...l,open:c,onOpenChange:d,dir:r,modal:i,children:a})})},"DropdownMenu"),N_="DropdownMenuTrigger",WI=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,disabled:o=!1,...n}=t,s=VI(N_,r),i=Jt(r),l=pe(a,s.triggerRef);return(0,kt.jsx)(PI,{asChild:!0,...i,children:(0,kt.jsx)(se.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...n,ref:l,onPointerDown:$(t.onPointerDown,u=>{!o&&u.button===0&&u.ctrlKey===!1&&(s.onOpenToggle(),s.open||u.preventDefault())}),onKeyDown:$(t.onKeyDown,u=>{o||(["Enter"," "].includes(u.key)&&s.onOpenToggle(),u.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})},"DropdownMenuTrigger")),GI=Yt(e=>{let{__scopeDropdownMenu:t,...a}=e,r=Jt(t);return(0,kt.jsx)(DI,{...r,...a})},"DropdownMenuPortal"),F_="DropdownMenuContent",$I=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=VI(F_,r),s=Jt(r),i=Rt.useRef(!1);return(0,kt.jsx)(TI,{id:n.contentId,"aria-labelledby":n.triggerId,...s,...o,ref:a,onCloseAutoFocus:$(t.onCloseAutoFocus,l=>{i.current||n.triggerRef.current?.focus(),i.current=!1,l.preventDefault()}),onInteractOutside:$(t.onInteractOutside,l=>{let u=l.detail.originalEvent,c=u.button===0&&u.ctrlKey===!0,d=u.button===2||c;(!n.modal||d)&&(i.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent")),KI=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Jt(r);return(0,kt.jsx)(MI,{...n,...o,ref:a})},"DropdownMenuGroup")),XI=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Jt(r);return(0,kt.jsx)(_I,{...n,...o,ref:a})},"DropdownMenuLabel")),ZI=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Jt(r);return(0,kt.jsx)(AI,{...n,...o,ref:a})},"DropdownMenuItem")),QI=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Jt(r);return(0,kt.jsx)(EI,{...n,...o,ref:a})},"DropdownMenuCheckboxItem")),YI=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Jt(r);return(0,kt.jsx)(OI,{...n,...o,ref:a})},"DropdownMenuRadioGroup")),JI=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Jt(r);return(0,kt.jsx)(NI,{...n,...o,ref:a})},"DropdownMenuRadioItem")),eb=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Jt(r);return(0,kt.jsx)(FI,{...n,...o,ref:a})},"DropdownMenuItemIndicator")),tb=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Jt(r);return(0,kt.jsx)(zI,{...n,...o,ref:a})},"DropdownMenuSeparator")),ab=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Jt(r);return(0,kt.jsx)(BI,{...n,...o,ref:a})},"DropdownMenuArrow")),rb=Yt(e=>{let{__scopeDropdownMenu:t,children:a,open:r,onOpenChange:o,defaultOpen:n}=e,s=Jt(t),[i,l]=la({prop:r,defaultProp:n??!1,onChange:o,caller:"DropdownMenuSub"});return(0,kt.jsx)(UI,{...s,open:i,onOpenChange:l,children:a})},"DropdownMenuSub"),ob=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Jt(r);return(0,kt.jsx)(HI,{...n,...o,ref:a})},"DropdownMenuSubTrigger")),nb=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Jt(r);return(0,kt.jsx)(jI,{...n,...o,ref:a,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuSubContent")),z_=qI,B_=WI,U_=GI,H_=$I,j_=KI,V_=XI,q_=ZI,W_=QI,G_=YI,$_=JI,K_=eb,X_=tb,Z_=ab,Q_=rb,Y_=ob,J_=nb;var Zc={};_o(Zc,{Label:()=>lb,Root:()=>aA});var sb=F(ee(),1);var ib=F(fe(),1),eA=Object.defineProperty,tA=(e,t)=>eA(e,"name",{value:t,configurable:!0}),lb=sb.forwardRef(tA(function(t,a){return(0,ib.jsx)(se.label,{...t,ref:a,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(t.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}})},"Label")),aA=lb;var Qc=F(ee(),1),rA=Object.defineProperty,oA=(e,t)=>rA(e,"name",{value:t,configurable:!0});function mg(e){let t=Qc.useRef({value:e,previous:e});return Qc.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}oA(mg,"usePrevious");var nA=Object.defineProperty,sA=(e,t)=>nA(e,"name",{value:t,configurable:!0});function Yc(e,[t,a]){return Math.min(a,Math.max(t,e))}sA(Yc,"clamp");var fa={};_o(fa,{Arrow:()=>$A,Content:()=>bA,Group:()=>OA,Icon:()=>wA,Item:()=>BA,ItemIndicator:()=>jA,ItemText:()=>UA,Label:()=>FA,Portal:()=>IA,Root:()=>hA,ScrollDownButton:()=>qA,ScrollUpButton:()=>VA,Select:()=>hA,SelectArrow:()=>$A,SelectContent:()=>bA,SelectGroup:()=>OA,SelectIcon:()=>wA,SelectItem:()=>BA,SelectItemIndicator:()=>jA,SelectItemText:()=>UA,SelectLabel:()=>FA,SelectPortal:()=>IA,SelectScrollDownButton:()=>qA,SelectScrollUpButton:()=>VA,SelectSeparator:()=>WA,SelectTrigger:()=>vA,SelectValue:()=>yA,SelectViewport:()=>MA,Separator:()=>WA,Trigger:()=>vA,Value:()=>yA,Viewport:()=>MA,createSelectScope:()=>cA,unstable_BubbleInput:()=>gb,unstable_Provider:()=>vg,unstable_SelectBubbleInput:()=>gb,unstable_SelectProvider:()=>vg});var q=F(ee(),1),gg=F(hi(),1);var ne=F(fe(),1),iA=Object.defineProperty,Te=(e,t)=>iA(e,"name",{value:t,configurable:!0}),lA=[" ","Enter","ArrowUp","ArrowDown"],uA=[" ","Enter"],Ei="Select",[ef,tf,dA]=Un(Ei),[es,cA]=ut(Ei,[dA,Mi]),af=Mi(),[fA,dn]=es(Ei),[pA,mA]=es(Ei);function vg(e){let{__scopeSelect:t,children:a,open:r,defaultOpen:o,onOpenChange:n,value:s,defaultValue:i,onValueChange:l,dir:u,name:c,autoComplete:d,disabled:f,required:h,form:v,internal_do_not_use_render:x}=e,w=af(t),[m,p]=q.useState(null),[g,y]=q.useState(null),[L,b]=q.useState(!1),R=go(u),[k,M]=la({prop:r,defaultProp:o??!1,onChange:n,caller:Ei}),[E,O]=la({prop:s,defaultProp:i,onChange:l,caller:Ei}),T=q.useRef(null),_=q.useRef(E);q.useEffect(()=>{let ve=v?m?.ownerDocument.getElementById(v):m?.form;if(ve instanceof HTMLFormElement){let j=Te(()=>O(_.current),"reset");return ve.addEventListener("reset",j),()=>ve.removeEventListener("reset",j)}},[v,m,O]);let A=m?!!v||!!m.closest("form"):!0,[N,z]=q.useState(new Set),H=bt(),V=Array.from(N).map(ve=>ve.props.value).join(";"),ae=q.useCallback(ve=>{z(j=>new Set(j).add(ve))},[]),D=q.useCallback(ve=>{z(j=>{let Re=new Set(j);return Re.delete(ve),Re})},[]),ge={required:h,trigger:m,onTriggerChange:p,valueNode:g,onValueNodeChange:y,valueNodeHasChildren:L,onValueNodeHasChildrenChange:b,contentId:H,value:E,onValueChange:O,open:k,onOpenChange:M,dir:R,triggerPointerDownPosRef:T,disabled:f,name:c,autoComplete:d,form:v,nativeOptions:N,nativeSelectKey:V,isFormControl:A};return(0,ne.jsx)(hu,{...w,children:(0,ne.jsx)(fA,{scope:t,...ge,children:(0,ne.jsx)(ef.Provider,{scope:t,children:(0,ne.jsx)(pA,{scope:t,onNativeOptionAdd:ae,onNativeOptionRemove:D,children:vb(x)?x(ge):a})})})})}Te(vg,"SelectProvider");var hA=Te(e=>{let{__scopeSelect:t,children:a,...r}=e;return(0,ne.jsx)(vg,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:o})=>(0,ne.jsxs)(ne.Fragment,{children:[a,o?(0,ne.jsx)(gb,{__scopeSelect:t}):null]})})},"Select"),gA="SelectTrigger",vA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,disabled:o=!1,...n}=t,s=af(r),i=dn(gA,r),l=i.disabled||o,u=pe(a,i.onTriggerChange),c=tf(r),d=q.useRef("touch"),[f,h,v]=yg(w=>{let m=c().filter(y=>!y.disabled),p=m.find(y=>y.value===i.value),g=wg(m,w,p);g!==void 0&&i.onValueChange(g.value)}),x=Te(w=>{l||(i.onOpenChange(!0),v()),w&&(i.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})},"handleOpen");return(0,ne.jsx)(Uc,{asChild:!0,...s,children:(0,ne.jsx)(se.button,{type:"button",role:"combobox","aria-controls":i.open?i.contentId:void 0,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":wu(i.value)?"":void 0,...n,ref:u,onClick:$(n.onClick,w=>{w.currentTarget.focus(),d.current!=="mouse"&&x(w)}),onPointerDown:$(n.onPointerDown,w=>{d.current=w.pointerType;let m=w.target;m.hasPointerCapture(w.pointerId)&&m.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(x(w),w.preventDefault())}),onKeyDown:$(n.onKeyDown,w=>{let m=f.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&h(w.key),!(m&&w.key===" ")&&lA.includes(w.key)&&(x(),w.preventDefault())})})})},"SelectTrigger")),xA="SelectValue",yA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,className:o,style:n,children:s,placeholder:i="",...l}=t,u=dn(xA,r),{onValueNodeHasChildrenChange:c}=u,d=s!==void 0,f=pe(a,u.onValueNodeChange);Ue(()=>{c(d)},[c,d]);let h=wu(u.value);return(0,ne.jsx)(se.span,{...l,asChild:h?!1:l.asChild,ref:f,style:{pointerEvents:"none"},children:(0,ne.jsx)(q.Fragment,{children:h?i:s},h?"placeholder":"value")})},"SelectValue")),wA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,children:o,...n}=t;return(0,ne.jsx)(se.span,{"aria-hidden":!0,...n,ref:a,children:o||"\u25BC"})},"SelectIcon")),CA="SelectPortal",[SA,LA]=es(CA,{forceMount:void 0}),IA=Te(e=>{let{__scopeSelect:t,forceMount:a,...r}=e;return(0,ne.jsx)(SA,{scope:e.__scopeSelect,forceMount:a,children:(0,ne.jsx)(Si,{asChild:!0,...r})})},"SelectPortal"),Jn="SelectContent",bA=q.forwardRef(Te(function(t,a){let r=LA(Jn,t.__scopeSelect),{forceMount:o=r.forceMount,...n}=t,s=dn(Jn,t.__scopeSelect),[i,l]=q.useState();return Ue(()=>{l(new DocumentFragment)},[]),(0,ne.jsx)(ua,{present:o||s.open,children:({present:u})=>u?(0,ne.jsx)(PA,{...n,ref:a}):(0,ne.jsx)(kA,{...n,fragment:i})})},"SelectContent")),kA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,children:o,fragment:n}=t;return n?gg.createPortal((0,ne.jsx)(pb,{scope:r,children:(0,ne.jsx)(ef.Slot,{scope:r,children:(0,ne.jsx)("div",{ref:a,children:o})})}),n):null},"SelectContentFragment")),wr=10,[pb,cn]=es(Jn),RA=Ht("SelectContent.RemoveScroll"),PA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r}=t,{position:o="item-aligned",onCloseAutoFocus:n,onEscapeKeyDown:s,onPointerDownOutside:i,side:l,sideOffset:u,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:v,sticky:x,hideWhenDetached:w,avoidCollisions:m,...p}=t,g=dn(Jn,r),[y,L]=q.useState(null),[b,R]=q.useState(null),k=pe(a,L),[M,E]=q.useState(null),[O,T]=q.useState(null),_=tf(r),[A,N]=q.useState(!1),z=q.useRef(!1);q.useEffect(()=>{if(y)return Pi(y)},[y]),on();let H=q.useCallback(J=>{let[ue,...He]=_().map(Oe=>Oe.ref.current),[Fe]=He.slice(-1),ze=document.activeElement;for(let Oe of J)if(Oe===ze||(Oe?.scrollIntoView({block:"nearest"}),Oe===ue&&b&&(b.scrollTop=0),Oe===Fe&&b&&(b.scrollTop=b.scrollHeight),Oe?.focus(),document.activeElement!==ze))return},[_,b]),V=q.useCallback(()=>H([M,y]),[H,M,y]);q.useEffect(()=>{A&&V()},[A,V]);let{onOpenChange:ae,triggerPointerDownPosRef:D}=g;q.useEffect(()=>{if(y){let J={x:0,y:0},ue=Te(Fe=>{J={x:Math.abs(Math.round(Fe.pageX)-(D.current?.x??0)),y:Math.abs(Math.round(Fe.pageY)-(D.current?.y??0))}},"handlePointerMove"),He=Te(Fe=>{J.x<=10&&J.y<=10?Fe.preventDefault():Fe.composedPath().includes(y)||ae(!1),document.removeEventListener("pointermove",ue),D.current=null},"handlePointerUp");return D.current!==null&&(document.addEventListener("pointermove",ue),document.addEventListener("pointerup",He,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ue),document.removeEventListener("pointerup",He,{capture:!0})}}},[y,ae,D]),q.useEffect(()=>{let J=Te(()=>ae(!1),"close");return window.addEventListener("blur",J),window.addEventListener("resize",J),()=>{window.removeEventListener("blur",J),window.removeEventListener("resize",J)}},[ae]);let[ge,ve]=yg(J=>{let ue=_().filter(ze=>!ze.disabled),He=ue.find(ze=>ze.ref.current===document.activeElement),Fe=wg(ue,J,He);Fe&&setTimeout(()=>Fe.ref.current?.focus())}),j=q.useCallback((J,ue,He)=>{let Fe=!z.current&&!He;(g.value!==void 0&&g.value===ue||Fe)&&(E(J),Fe&&(z.current=!0))},[g.value]),Re=q.useCallback(()=>y?.focus(),[y]),Pe=q.useCallback((J,ue,He)=>{let Fe=!z.current&&!He;(g.value!==void 0&&g.value===ue||Fe)&&T(J)},[g.value]),Se=o==="popper"?ub:DA,qe=Se===ub?{side:l,sideOffset:u,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:v,sticky:x,hideWhenDetached:w,avoidCollisions:m}:{};return(0,ne.jsx)(pb,{scope:r,content:y,viewport:b,onViewportChange:R,itemRefCallback:j,selectedItem:M,onItemLeave:Re,itemTextRefCallback:Pe,focusSelectedItem:V,selectedItemText:O,position:o,isPositioned:A,searchRef:ge,children:(0,ne.jsx)(qn,{as:RA,allowPinchZoom:!0,children:(0,ne.jsx)(Ci,{asChild:!0,trapped:g.open,onMountAutoFocus:J=>{J.preventDefault()},onUnmountAutoFocus:$(n,J=>{g.trigger?.focus({preventScroll:!0}),J.preventDefault()}),children:(0,ne.jsx)(wi,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:J=>J.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:(0,ne.jsx)(Se,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:J=>J.preventDefault(),...p,...qe,onPlaced:()=>N(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...p.style},onKeyDown:$(p.onKeyDown,J=>{let ue=J.ctrlKey||J.altKey||J.metaKey;if(J.key==="Tab"&&J.preventDefault(),!ue&&J.key.length===1&&ve(J.key),["ArrowUp","ArrowDown","Home","End"].includes(J.key)){let Fe=_().filter(ze=>!ze.disabled).map(ze=>ze.ref.current);if(["ArrowUp","End"].includes(J.key)&&(Fe=Fe.slice().reverse()),["ArrowUp","ArrowDown"].includes(J.key)){let ze=J.target,Oe=Fe.indexOf(ze);Fe=Fe.slice(Oe+1)}setTimeout(()=>H(Fe)),J.preventDefault()}})})})})})})},"SelectContentImpl")),DA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,onPlaced:o,...n}=t,s=dn(Jn,r),i=cn(Jn,r),[l,u]=q.useState(null),[c,d]=q.useState(null),f=pe(a,d),h=tf(r),v=q.useRef(!1),x=q.useRef(!0),{viewport:w,selectedItem:m,selectedItemText:p,focusSelectedItem:g}=i,y=q.useCallback(()=>{if(s.trigger&&s.valueNode&&l&&c&&w&&m&&p){let k=s.trigger.getBoundingClientRect(),M=c.getBoundingClientRect(),E=s.valueNode.getBoundingClientRect(),O=p.getBoundingClientRect();if(s.dir!=="rtl"){let ze=O.left-M.left,Oe=E.left-ze,We=k.left-Oe,ra=k.width+We,Au=Math.max(ra,M.width),nl=window.innerWidth-wr,Ps=Yc(Oe,[wr,Math.max(wr,nl-Au)]);l.style.minWidth=ra+"px",l.style.left=Ps+"px"}else{let ze=M.right-O.right,Oe=window.innerWidth-E.right-ze,We=window.innerWidth-k.right-Oe,ra=k.width+We,Au=Math.max(ra,M.width),nl=window.innerWidth-wr,Ps=Yc(Oe,[wr,Math.max(wr,nl-Au)]);l.style.minWidth=ra+"px",l.style.right=Ps+"px"}let T=h(),_=window.innerHeight-wr*2,A=w.scrollHeight,N=window.getComputedStyle(c),z=parseInt(N.borderTopWidth,10),H=parseInt(N.paddingTop,10),V=parseInt(N.borderBottomWidth,10),ae=parseInt(N.paddingBottom,10),D=z+H+A+ae+V,ge=Math.min(m.offsetHeight*5,D),ve=window.getComputedStyle(w),j=parseInt(ve.paddingTop,10),Re=parseInt(ve.paddingBottom,10),Pe=k.top+k.height/2-wr,Se=_-Pe,qe=m.offsetHeight/2,J=m.offsetTop+qe,ue=z+H+J,He=D-ue;if(ue<=Pe){let ze=T.length>0&&m===T[T.length-1].ref.current;l.style.bottom="0px";let Oe=c.clientHeight-w.offsetTop-w.offsetHeight,We=Math.max(Se,qe+(ze?Re:0)+Oe+V),ra=ue+We;l.style.height=ra+"px"}else{let ze=T.length>0&&m===T[0].ref.current;l.style.top="0px";let We=Math.max(Pe,z+w.offsetTop+(ze?j:0)+qe)+He;l.style.height=We+"px",w.scrollTop=ue-Pe+w.offsetTop}l.style.margin=`${wr}px 0`,l.style.minHeight=ge+"px",l.style.maxHeight=_+"px",o?.(),requestAnimationFrame(()=>v.current=!0)}},[h,s.trigger,s.valueNode,l,c,w,m,p,s.dir,o]);Ue(()=>y(),[y]);let[L,b]=q.useState();Ue(()=>{c&&b(window.getComputedStyle(c).zIndex)},[c]);let R=q.useCallback(k=>{k&&x.current===!0&&(y(),g?.(),x.current=!1)},[y,g]);return(0,ne.jsx)(TA,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:v,onScrollButtonChange:R,children:(0,ne.jsx)("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:L},children:(0,ne.jsx)(se.div,{...n,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...n.style}})})})},"SelectItemAlignedPosition")),ub=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,align:o="start",collisionPadding:n=wr,...s}=t,i=af(r);return(0,ne.jsx)(Hc,{...i,...s,ref:a,align:o,collisionPadding:n,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[TA,xg]=es(Jn,{}),db="SelectViewport",MA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,nonce:o,...n}=t,s=cn(db,r),i=xg(db,r),l=pe(a,s.onViewportChange),u=q.useRef(0);return(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),(0,ne.jsx)(ef.Slot,{scope:r,children:(0,ne.jsx)(se.div,{"data-radix-select-viewport":"",role:"presentation",...n,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...n.style},onScroll:$(n.onScroll,c=>{let d=c.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:h}=i;if(h?.current&&f){let v=Math.abs(u.current-d.scrollTop);if(v>0){let x=window.innerHeight-wr*2,w=parseFloat(f.style.minHeight),m=parseFloat(f.style.height),p=Math.max(w,m);if(p<x){let g=p+v,y=Math.min(x,g),L=g-y;f.style.height=y+"px",f.style.bottom==="0px"&&(d.scrollTop=L>0?L:0,f.style.justifyContent="flex-end")}}}u.current=d.scrollTop})})})]})},"SelectViewport")),_A="SelectGroup",[AA,EA]=es(_A),OA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,...o}=t,n=bt();return(0,ne.jsx)(AA,{scope:r,id:n,children:(0,ne.jsx)(se.div,{role:"group","aria-labelledby":n,...o,ref:a})})},"SelectGroup")),NA="SelectLabel",FA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,...o}=t,n=EA(NA,r);return(0,ne.jsx)(se.div,{id:n.id,...o,ref:a})},"SelectLabel")),hg="SelectItem",[zA,mb]=es(hg),BA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,value:o,disabled:n=!1,textValue:s,...i}=t,l=dn(hg,r),u=cn(hg,r),c=l.value===o,[d,f]=q.useState(s??""),[h,v]=q.useState(!1),x=ct(y=>u.itemRefCallback?.(y,o,n)),w=pe(a,x),m=bt(),p=q.useRef("touch"),g=Te(()=>{n||(l.onValueChange(o),l.onOpenChange(!1))},"handleSelect");return(0,ne.jsx)(zA,{scope:r,value:o,disabled:n,textId:m,isSelected:c,onItemTextChange:q.useCallback(y=>{f(L=>L||(y?.textContent??"").trim())},[]),children:(0,ne.jsx)(ef.ItemSlot,{scope:r,value:o,disabled:n,textValue:d,children:(0,ne.jsx)(se.div,{role:"option","aria-labelledby":m,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":n||void 0,"data-disabled":n?"":void 0,tabIndex:n?void 0:-1,...i,ref:w,onFocus:$(i.onFocus,()=>v(!0)),onBlur:$(i.onBlur,()=>v(!1)),onClick:$(i.onClick,()=>{p.current!=="mouse"&&g()}),onPointerUp:$(i.onPointerUp,()=>{p.current==="mouse"&&g()}),onPointerDown:$(i.onPointerDown,y=>{p.current=y.pointerType}),onPointerMove:$(i.onPointerMove,y=>{p.current=y.pointerType,n?u.onItemLeave?.():p.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:$(i.onPointerLeave,y=>{y.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:$(i.onKeyDown,y=>{n||y.target!==y.currentTarget||u.searchRef?.current!==""&&y.key===" "||(uA.includes(y.key)&&g(),y.key===" "&&y.preventDefault())})})})})},"SelectItem")),Jc="SelectItemText",UA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,className:o,style:n,...s}=t,i=dn(Jc,r),l=cn(Jc,r),u=mb(Jc,r),c=mA(Jc,r),[d,f]=q.useState(null),h=ct(g=>l.itemTextRefCallback?.(g,u.value,u.disabled)),v=pe(a,f,u.onItemTextChange,h),x=d?.textContent,w=q.useMemo(()=>(0,ne.jsx)("option",{value:u.value,disabled:u.disabled,children:x},u.value),[u.disabled,u.value,x]),{onNativeOptionAdd:m,onNativeOptionRemove:p}=c;return Ue(()=>(m(w),()=>p(w)),[m,p,w]),(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)(se.span,{id:u.textId,...s,ref:v}),u.isSelected&&i.valueNode&&!i.valueNodeHasChildren&&!wu(i.value)?gg.createPortal(s.children,i.valueNode):null]})},"SelectItemText")),HA="SelectItemIndicator",jA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,...o}=t;return mb(HA,r).isSelected?(0,ne.jsx)(se.span,{"aria-hidden":!0,...o,ref:a}):null},"SelectItemIndicator")),cb="SelectScrollUpButton",VA=q.forwardRef(Te(function(t,a){let r=cn(cb,t.__scopeSelect),o=xg(cb,t.__scopeSelect),[n,s]=q.useState(!1),i=pe(a,o.onScrollButtonChange);return Ue(()=>{if(r.viewport&&r.isPositioned){let u=function(){let d=c.scrollTop>0;s(d)};var l=u;Te(u,"handleScroll");let c=r.viewport;return u(),c.addEventListener("scroll",u),()=>c.removeEventListener("scroll",u)}},[r.viewport,r.isPositioned]),n?(0,ne.jsx)(hb,{...t,ref:i,onAutoScroll:()=>{let{viewport:l,selectedItem:u}=r;l&&u&&(l.scrollTop=l.scrollTop-u.offsetHeight)}}):null},"SelectScrollUpButton")),fb="SelectScrollDownButton",qA=q.forwardRef(Te(function(t,a){let r=cn(fb,t.__scopeSelect),o=xg(fb,t.__scopeSelect),[n,s]=q.useState(!1),i=pe(a,o.onScrollButtonChange);return Ue(()=>{if(r.viewport&&r.isPositioned){let u=function(){let d=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<d;s(f)};var l=u;Te(u,"handleScroll");let c=r.viewport;return u(),c.addEventListener("scroll",u),()=>c.removeEventListener("scroll",u)}},[r.viewport,r.isPositioned]),n?(0,ne.jsx)(hb,{...t,ref:i,onAutoScroll:()=>{let{viewport:l,selectedItem:u}=r;l&&u&&(l.scrollTop=l.scrollTop+u.offsetHeight)}}):null},"SelectScrollDownButton")),hb=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,onAutoScroll:o,...n}=t,s=cn("SelectScrollButton",r),i=q.useRef(null),l=tf(r),u=q.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return q.useEffect(()=>()=>u(),[u]),Ue(()=>{l().find(d=>d.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),(0,ne.jsx)(se.div,{"aria-hidden":!0,...n,ref:a,style:{flexShrink:0,...n.style},onPointerDown:$(n.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(o,50))}),onPointerMove:$(n.onPointerMove,()=>{s.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(o,50))}),onPointerLeave:$(n.onPointerLeave,()=>{u()})})},"SelectScrollButtonImpl")),WA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,...o}=t;return(0,ne.jsx)(se.div,{"aria-hidden":!0,...o,ref:a})},"SelectSeparator")),GA="SelectArrow",$A=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,...o}=t,n=af(r);return cn(GA,r).position==="popper"?(0,ne.jsx)(jc,{...n,...o,ref:a}):null},"SelectArrow")),KA="SelectBubbleInput",gb=q.forwardRef(Te(function({__scopeSelect:t,...a},r){let o=dn(KA,t),{value:n,onValueChange:s,required:i,disabled:l,name:u,autoComplete:c,form:d}=o,{nativeOptions:f,nativeSelectKey:h}=o,v=q.useRef(null),x=pe(r,v),w=n??"",m=mg(w),p=Array.from(f).some(g=>(g.props.value??"")==="");return q.useEffect(()=>{let g=v.current;if(!g)return;let y=window.HTMLSelectElement.prototype,b=Object.getOwnPropertyDescriptor(y,"value").set;if(m!==w&&b){let R=new Event("change",{bubbles:!0});b.call(g,w),g.dispatchEvent(R)}},[m,w]),(0,ne.jsxs)(se.select,{"aria-hidden":!0,required:i,tabIndex:-1,name:u,autoComplete:c,disabled:l,form:d,onChange:g=>s(g.target.value),...a,style:{...FC,...a.style},ref:x,defaultValue:w,children:[wu(n)&&!p?(0,ne.jsx)("option",{value:""}):null,Array.from(f)]},h)},"SelectBubbleInput"));function vb(e){return typeof e=="function"}Te(vb,"isFunction");function wu(e){return e===""||e===void 0}Te(wu,"shouldShowPlaceholder");function yg(e){let t=ct(e),a=q.useRef(""),r=q.useRef(0),o=q.useCallback(s=>{let i=a.current+s;t(i),Te((function l(u){a.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}),"updateSearch")(i)},[t]),n=q.useCallback(()=>{a.current="",window.clearTimeout(r.current)},[]);return q.useEffect(()=>()=>window.clearTimeout(r.current),[]),[a,o,n]}Te(yg,"useTypeaheadSearch");function wg(e,t,a){let o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,n=a?e.indexOf(a):-1,s=xb(e,Math.max(n,0));o.length===1&&(s=s.filter(u=>u!==a));let l=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==a?l:void 0}Te(wg,"findNextItem");function xb(e,t){return e.map((a,r)=>e[(t+r)%e.length])}Te(xb,"wrapArray");var ts={};_o(ts,{Content:()=>nE,List:()=>rE,Root:()=>aE,Tabs:()=>wb,TabsContent:()=>Lb,TabsList:()=>Cb,TabsTrigger:()=>Sb,Trigger:()=>oE,createTabsScope:()=>QA});var Io=F(ee(),1);var Lo=F(fe(),1),XA=Object.defineProperty,Oi=(e,t)=>XA(e,"name",{value:t,configurable:!0}),Cg="Tabs",[ZA,QA]=ut(Cg,[_i]),yb=_i(),[YA,Sg]=ZA(Cg),wb=Io.forwardRef(Oi(function(t,a){let{__scopeTabs:r,value:o,onValueChange:n,defaultValue:s,orientation:i="horizontal",dir:l,activationMode:u="automatic",...c}=t,d=go(l),[f,h]=la({prop:o,onChange:n,defaultProp:s??"",caller:Cg});return(0,Lo.jsx)(YA,{scope:r,baseId:bt(),value:f,onValueChange:h,orientation:i,dir:d,activationMode:u,children:(0,Lo.jsx)(se.div,{dir:d,"data-orientation":i,...c,ref:a})})},"Tabs")),JA="TabsList",Cb=Io.forwardRef(Oi(function(t,a){let{__scopeTabs:r,loop:o=!0,...n}=t,s=Sg(JA,r),i=yb(r);return(0,Lo.jsx)(Wc,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:o,children:(0,Lo.jsx)(se.div,{role:"tablist","aria-orientation":s.orientation,...n,ref:a})})},"TabsList")),eE="TabsTrigger",Sb=Io.forwardRef(Oi(function(t,a){let{__scopeTabs:r,value:o,disabled:n=!1,...s}=t,i=Sg(eE,r),l=yb(r),u=Lg(i.baseId,o),c=Ig(i.baseId,o),d=o===i.value;return(0,Lo.jsx)(Gc,{asChild:!0,...l,focusable:!n,active:d,children:(0,Lo.jsx)(se.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":c,"data-state":d?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:u,...s,ref:a,onMouseDown:$(t.onMouseDown,f=>{!n&&f.button===0&&f.ctrlKey===!1?i.onValueChange(o):f.preventDefault()}),onKeyDown:$(t.onKeyDown,f=>{n||f.target!==f.currentTarget||[" ","Enter"].includes(f.key)&&i.onValueChange(o)}),onFocus:$(t.onFocus,()=>{let f=i.activationMode!=="manual";!d&&!n&&f&&i.onValueChange(o)})})})},"TabsTrigger")),tE="TabsContent",Lb=Io.forwardRef(Oi(function(t,a){let{__scopeTabs:r,value:o,forceMount:n,children:s,...i}=t,l=Sg(tE,r),u=Lg(l.baseId,o),c=Ig(l.baseId,o),d=o===l.value,f=Io.useRef(d);return Io.useEffect(()=>{let h=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(h)},[]),(0,Lo.jsx)(ua,{present:n||d,children:({present:h})=>(0,Lo.jsx)(se.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":u,hidden:!h,id:c,tabIndex:0,...i,ref:a,style:{...t.style,animationDuration:f.current?"0s":void 0},children:h&&s})})},"TabsContent"));function Lg(e,t){return`${e}-trigger-${t}`}Oi(Lg,"makeTriggerId");function Ig(e,t){return`${e}-content-${t}`}Oi(Ig,"makeContentId");var aE=wb,rE=Cb,oE=Sb,nE=Lb;var jr=F(ee(),1);var Ib=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,bb=Fu,fn=(e,t)=>a=>{var r;if(t?.variants==null)return bb(e,a?.class,a?.className);let{variants:o,defaultVariants:n}=t,s=Object.keys(o).map(u=>{let c=a?.[u],d=n?.[u];if(c===null)return null;let f=Ib(c)||Ib(d);return o[u][f]}),i=a&&Object.entries(a).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:f,...h}=c;return Object.entries(h).every(v=>{let[x,w]=v;return Array.isArray(w)?w.includes({...n,...i}[x]):{...n,...i}[x]===w})?[...u,d,f]:u},[]);return bb(e,s,l,a?.class,a?.className)};var jb=F(fe(),1);var he=e=>typeof e=="string",Cu=()=>{let e,t,a=new Promise((r,o)=>{e=r,t=o});return a.resolve=e,a.reject=t,a},kb=e=>e==null?"":""+e,sE=(e,t,a)=>{e.forEach(r=>{t[r]&&(a[r]=t[r])})},iE=/###/g,Rb=e=>e&&e.indexOf("###")>-1?e.replace(iE,"."):e,Pb=e=>!e||he(e),Su=(e,t,a)=>{let r=he(t)?t.split("."):t,o=0;for(;o<r.length-1;){if(Pb(e))return{};let n=Rb(r[o]);!e[n]&&a&&(e[n]=new a),Object.prototype.hasOwnProperty.call(e,n)?e=e[n]:e={},++o}return Pb(e)?{}:{obj:e,k:Rb(r[o])}},Db=(e,t,a)=>{let{obj:r,k:o}=Su(e,t,Object);if(r!==void 0||t.length===1){r[o]=a;return}let n=t[t.length-1],s=t.slice(0,t.length-1),i=Su(e,s,Object);for(;i.obj===void 0&&s.length;)n=`${s[s.length-1]}.${n}`,s=s.slice(0,s.length-1),i=Su(e,s,Object),i?.obj&&typeof i.obj[`${i.k}.${n}`]<"u"&&(i.obj=void 0);i.obj[`${i.k}.${n}`]=a},lE=(e,t,a,r)=>{let{obj:o,k:n}=Su(e,t,Object);o[n]=o[n]||[],o[n].push(a)},of=(e,t)=>{let{obj:a,k:r}=Su(e,t);if(a&&Object.prototype.hasOwnProperty.call(a,r))return a[r]},uE=(e,t,a)=>{let r=of(e,a);return r!==void 0?r:of(t,a)},Fb=(e,t,a)=>{for(let r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?he(e[r])||e[r]instanceof String||he(t[r])||t[r]instanceof String?a&&(e[r]=t[r]):Fb(e[r],t[r],a):e[r]=t[r]);return e},Ni=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),dE={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},cE=e=>he(e)?e.replace(/[&<>"'\/]/g,t=>dE[t]):e,Rg=class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let a=this.regExpMap.get(t);if(a!==void 0)return a;let r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}},fE=[" ",",","?","!",";"],pE=new Rg(20),mE=(e,t,a)=>{t=t||"",a=a||"";let r=fE.filter(s=>t.indexOf(s)<0&&a.indexOf(s)<0);if(r.length===0)return!0;let o=pE.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`),n=!o.test(e);if(!n){let s=e.indexOf(a);s>0&&!o.test(e.substring(0,s))&&(n=!0)}return n},Pg=(e,t,a=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(a),o=e;for(let n=0;n<r.length;){if(!o||typeof o!="object")return;let s,i="";for(let l=n;l<r.length;++l)if(l!==n&&(i+=a),i+=r[l],s=o[i],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<r.length-1)continue;n+=l-n+1;break}o=s}return o},Lu=e=>e?.replace("_","-"),hE={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}},Dg=class e{constructor(t,a={}){this.init(t,a)}init(t,a={}){this.prefix=a.prefix||"i18next:",this.logger=t||hE,this.options=a,this.debug=a.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,a,r,o){return o&&!this.debug?null:(he(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[a](t))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},Br=new Dg,Fi=class{constructor(){this.observers={}}on(t,a){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);let o=this.observers[r].get(a)||0;this.observers[r].set(a,o+1)}),this}off(t,a){if(this.observers[t]){if(!a){delete this.observers[t];return}this.observers[t].delete(a)}}emit(t,...a){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([o,n])=>{for(let s=0;s<n;s++)o(...a)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,n])=>{for(let s=0;s<n;s++)o.apply(o,[t,...a])})}},nf=class extends Fi{constructor(t,a={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let a=this.options.ns.indexOf(t);a>-1&&this.options.ns.splice(a,1)}getResource(t,a,r,o={}){let n=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure,i;t.indexOf(".")>-1?i=t.split("."):(i=[t,a],r&&(Array.isArray(r)?i.push(...r):he(r)&&n?i.push(...r.split(n)):i.push(r)));let l=of(this.data,i);return!l&&!a&&!r&&t.indexOf(".")>-1&&(t=i[0],a=i[1],r=i.slice(2).join(".")),l||!s||!he(r)?l:Pg(this.data?.[t]?.[a],r,n)}addResource(t,a,r,o,n={silent:!1}){let s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,i=[t,a];r&&(i=i.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(i=t.split("."),o=a,a=i[1]),this.addNamespaces(a),Db(this.data,i,o),n.silent||this.emit("added",t,a,r,o)}addResources(t,a,r,o={silent:!1}){for(let n in r)(he(r[n])||Array.isArray(r[n]))&&this.addResource(t,a,n,r[n],{silent:!0});o.silent||this.emit("added",t,a,r)}addResourceBundle(t,a,r,o,n,s={silent:!1,skipCopy:!1}){let i=[t,a];t.indexOf(".")>-1&&(i=t.split("."),o=r,r=a,a=i[1]),this.addNamespaces(a);let l=of(this.data,i)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?Fb(l,r,n):l={...l,...r},Db(this.data,i,l),s.silent||this.emit("added",t,a,r)}removeResourceBundle(t,a){this.hasResourceBundle(t,a)&&delete this.data[t][a],this.removeNamespaces(a),this.emit("removed",t,a)}hasResourceBundle(t,a){return this.getResource(t,a)!==void 0}getResourceBundle(t,a){return a||(a=this.options.defaultNS),this.getResource(t,a)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let a=this.getDataByLanguage(t);return!!(a&&Object.keys(a)||[]).find(o=>a[o]&&Object.keys(a[o]).length>0)}toJSON(){return this.data}},zb={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,a,r,o){return e.forEach(n=>{t=this.processors[n]?.process(t,a,r,o)??t}),t}},Bb=Symbol("i18next/PATH_KEY");function gE(){let e=[],t=Object.create(null),a;return t.get=(r,o)=>(a?.revoke?.(),o===Bb?e:(e.push(o),a=Proxy.revocable(r,t),a.proxy)),Proxy.revocable(Object.create(null),t).proxy}function Tg(e,t){let{[Bb]:a}=e(gE());return a.join(t?.keySeparator??".")}var Tb={},bg=e=>!he(e)&&typeof e!="boolean"&&typeof e!="number",sf=class e extends Fi{constructor(t,a={}){super(),sE(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Br.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,a={interpolation:{}}){let r={...a};if(t==null)return!1;let o=this.resolve(t,r);if(o?.res===void 0)return!1;let n=bg(o.res);return!(r.returnObjects===!1&&n)}extractFromKey(t,a){let r=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");let o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,n=a.ns||this.options.defaultNS||[],s=r&&t.indexOf(r)>-1,i=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!mE(t,r,o);if(s&&!i){let l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:he(n)?[n]:n};let u=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(u[0])>-1)&&(n=u.shift()),t=u.join(o)}return{key:t,namespaces:he(n)?[n]:n}}translate(t,a,r){let o=typeof a=="object"?{...a}:a;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),t==null)return"";typeof t=="function"&&(t=Tg(t,{...this.options,...o})),Array.isArray(t)||(t=[String(t)]);let n=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(t[t.length-1],o),u=l[l.length-1],c=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");let d=o.lng||this.language,f=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()==="cimode")return f?n?{res:`${u}${c}${i}`,usedKey:i,exactUsedKey:i,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(o)}:`${u}${c}${i}`:n?{res:i,usedKey:i,exactUsedKey:i,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(o)}:i;let h=this.resolve(t,o),v=h?.res,x=h?.usedKey||i,w=h?.exactUsedKey||i,m=["[object Number]","[object Function]","[object RegExp]"],p=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,y=o.count!==void 0&&!he(o.count),L=e.hasDefaultValue(o),b=y?this.pluralResolver.getSuffix(d,o.count,o):"",R=o.ordinal&&y?this.pluralResolver.getSuffix(d,o.count,{ordinal:!1}):"",k=y&&!o.ordinal&&o.count===0,M=k&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${b}`]||o[`defaultValue${R}`]||o.defaultValue,E=v;g&&!v&&L&&(E=M);let O=bg(E),T=Object.prototype.toString.apply(E);if(g&&E&&O&&m.indexOf(T)<0&&!(he(p)&&Array.isArray(E))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let _=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,E,{...o,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return n?(h.res=_,h.usedParams=this.getUsedParamsDetails(o),h):_}if(s){let _=Array.isArray(E),A=_?[]:{},N=_?w:x;for(let z in E)if(Object.prototype.hasOwnProperty.call(E,z)){let H=`${N}${s}${z}`;L&&!v?A[z]=this.translate(H,{...o,defaultValue:bg(M)?M[z]:void 0,joinArrays:!1,ns:l}):A[z]=this.translate(H,{...o,joinArrays:!1,ns:l}),A[z]===H&&(A[z]=E[z])}v=A}}else if(g&&he(p)&&Array.isArray(v))v=v.join(p),v&&(v=this.extendTranslation(v,t,o,r));else{let _=!1,A=!1;!this.isValidLookup(v)&&L&&(_=!0,v=M),this.isValidLookup(v)||(A=!0,v=i);let z=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&A?void 0:v,H=L&&M!==v&&this.options.updateMissing;if(A||_||H){if(this.logger.log(H?"updateKey":"missingKey",d,u,i,H?M:v),s){let ge=this.resolve(i,{...o,keySeparator:!1});ge&&ge.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let V=[],ae=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ae&&ae[0])for(let ge=0;ge<ae.length;ge++)V.push(ae[ge]);else this.options.saveMissingTo==="all"?V=this.languageUtils.toResolveHierarchy(o.lng||this.language):V.push(o.lng||this.language);let D=(ge,ve,j)=>{let Re=L&&j!==v?j:z;this.options.missingKeyHandler?this.options.missingKeyHandler(ge,u,ve,Re,H,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(ge,u,ve,Re,H,o),this.emit("missingKey",ge,u,ve,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&y?V.forEach(ge=>{let ve=this.pluralResolver.getSuffixes(ge,o);k&&o[`defaultValue${this.options.pluralSeparator}zero`]&&ve.indexOf(`${this.options.pluralSeparator}zero`)<0&&ve.push(`${this.options.pluralSeparator}zero`),ve.forEach(j=>{D([ge],i+j,o[`defaultValue${j}`]||M)})}):D(V,i,M))}v=this.extendTranslation(v,t,o,h,r),A&&v===i&&this.options.appendNamespaceToMissingKey&&(v=`${u}${c}${i}`),(A||_)&&this.options.parseMissingKeyHandler&&(v=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${c}${i}`:i,_?v:void 0,o))}return n?(h.res=v,h.usedParams=this.getUsedParamsDetails(o),h):v}extendTranslation(t,a,r,o,n){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});let l=he(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),u;if(l){let d=t.match(this.interpolator.nestingRegexp);u=d&&d.length}let c=r.replace&&!he(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),t=this.interpolator.interpolate(t,c,r.lng||this.language||o.usedLng,r),l){let d=t.match(this.interpolator.nestingRegexp),f=d&&d.length;u<f&&(r.nest=!1)}!r.lng&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...d)=>n?.[0]===d[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${d[0]} in key: ${a[0]}`),null):this.translate(...d,a),r)),r.interpolation&&this.interpolator.reset()}let s=r.postProcess||this.options.postProcess,i=he(s)?[s]:s;return t!=null&&i?.length&&r.applyPostProcessor!==!1&&(t=zb.handle(i,t,a,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,a={}){let r,o,n,s,i;return he(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;let u=this.extractFromKey(l,a),c=u.key;o=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));let f=a.count!==void 0&&!he(a.count),h=f&&!a.ordinal&&a.count===0,v=a.context!==void 0&&(he(a.context)||typeof a.context=="number")&&a.context!=="",x=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);d.forEach(w=>{this.isValidLookup(r)||(i=w,!Tb[`${x[0]}-${w}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(i)&&(Tb[`${x[0]}-${w}`]=!0,this.logger.warn(`key "${o}" for languages "${x.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),x.forEach(m=>{if(this.isValidLookup(r))return;s=m;let p=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(p,c,m,w,a);else{let y;f&&(y=this.pluralResolver.getSuffix(m,a.count,a));let L=`${this.options.pluralSeparator}zero`,b=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(a.ordinal&&y.indexOf(b)===0&&p.push(c+y.replace(b,this.options.pluralSeparator)),p.push(c+y),h&&p.push(c+L)),v){let R=`${c}${this.options.contextSeparator||"_"}${a.context}`;p.push(R),f&&(a.ordinal&&y.indexOf(b)===0&&p.push(R+y.replace(b,this.options.pluralSeparator)),p.push(R+y),h&&p.push(R+L))}}let g;for(;g=p.pop();)this.isValidLookup(r)||(n=g,r=this.getResource(m,w,g,a))}))})}),{res:r,usedKey:o,exactUsedKey:n,usedLng:s,usedNS:i}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,a,r,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,a,r,o):this.resourceStore.getResource(t,a,r,o)}getUsedParamsDetails(t={}){let a=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!he(t.replace),o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(let n of a)delete o[n]}return o}static hasDefaultValue(t){let a="defaultValue";for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&a===r.substring(0,a.length)&&t[r]!==void 0)return!0;return!1}},lf=class{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Br.create("languageUtils")}getScriptPartFromCode(t){if(t=Lu(t),!t||t.indexOf("-")<0)return null;let a=t.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}getLanguagePartFromCode(t){if(t=Lu(t),!t||t.indexOf("-")<0)return t;let a=t.split("-");return this.formatLanguageCode(a[0])}formatLanguageCode(t){if(he(t)&&t.indexOf("-")>-1){let a;try{a=Intl.getCanonicalLocales(t)[0]}catch{}return a&&this.options.lowerCaseLng&&(a=a.toLowerCase()),a||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let a;return t.forEach(r=>{if(a)return;let o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(a=o)}),!a&&this.options.supportedLngs&&t.forEach(r=>{if(a)return;let o=this.getScriptPartFromCode(r);if(this.isSupportedCode(o))return a=o;let n=this.getLanguagePartFromCode(r);if(this.isSupportedCode(n))return a=n;a=this.options.supportedLngs.find(s=>{if(s===n)return s;if(!(s.indexOf("-")<0&&n.indexOf("-")<0)&&(s.indexOf("-")>0&&n.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===n||s.indexOf(n)===0&&n.length>1))return s})}),a||(a=this.getFallbackCodes(this.options.fallbackLng)[0]),a}getFallbackCodes(t,a){if(!t)return[];if(typeof t=="function"&&(t=t(a)),he(t)&&(t=[t]),Array.isArray(t))return t;if(!a)return t.default||[];let r=t[a];return r||(r=t[this.getScriptPartFromCode(a)]),r||(r=t[this.formatLanguageCode(a)]),r||(r=t[this.getLanguagePartFromCode(a)]),r||(r=t.default),r||[]}toResolveHierarchy(t,a){let r=this.getFallbackCodes((a===!1?[]:a)||this.options.fallbackLng||[],t),o=[],n=s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return he(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&n(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&n(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&n(this.getLanguagePartFromCode(t))):he(t)&&n(this.formatLanguageCode(t)),r.forEach(s=>{o.indexOf(s)<0&&n(this.formatLanguageCode(s))}),o}},Mb={zero:0,one:1,two:2,few:3,many:4,other:5},_b={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})},Mg=class{constructor(t,a={}){this.languageUtils=t,this.options=a,this.logger=Br.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,a){this.rules[t]=a}clearCache(){this.pluralRulesCache={}}getRule(t,a={}){let r=Lu(t==="dev"?"en":t),o=a.ordinal?"ordinal":"cardinal",n=JSON.stringify({cleanedCode:r,type:o});if(n in this.pluralRulesCache)return this.pluralRulesCache[n];let s;try{s=new Intl.PluralRules(r,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),_b;if(!t.match(/-|_/))return _b;let l=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(l,a)}return this.pluralRulesCache[n]=s,s}needsPlural(t,a={}){let r=this.getRule(t,a);return r||(r=this.getRule("dev",a)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,a,r={}){return this.getSuffixes(t,r).map(o=>`${a}${o}`)}getSuffixes(t,a={}){let r=this.getRule(t,a);return r||(r=this.getRule("dev",a)),r?r.resolvedOptions().pluralCategories.sort((o,n)=>Mb[o]-Mb[n]).map(o=>`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,a,r={}){let o=this.getRule(t,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(a)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",a,r))}},Ab=(e,t,a,r=".",o=!0)=>{let n=uE(e,t,a);return!n&&o&&he(a)&&(n=Pg(e,a,r),n===void 0&&(n=Pg(t,a,r))),n},kg=e=>e.replace(/\$/g,"$$$$"),_g=class{constructor(t={}){this.logger=Br.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(a=>a),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});let{escape:a,escapeValue:r,useRawValueToEscape:o,prefix:n,prefixEscaped:s,suffix:i,suffixEscaped:l,formatSeparator:u,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:h,nestingSuffix:v,nestingSuffixEscaped:x,nestingOptionsSeparator:w,maxReplaces:m,alwaysFormat:p}=t.interpolation;this.escape=a!==void 0?a:cE,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=n?Ni(n):s||"{{",this.suffix=i?Ni(i):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=f?Ni(f):h||Ni("$t("),this.nestingSuffix=v?Ni(v):x||Ni(")"),this.nestingOptionsSeparator=w||",",this.maxReplaces=m||1e3,this.alwaysFormat=p!==void 0?p:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=(a,r)=>a?.source===r?(a.lastIndex=0,a):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,a,r,o){let n,s,i,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=h=>{if(h.indexOf(this.formatSeparator)<0){let m=Ab(a,l,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(m,void 0,r,{...o,...a,interpolationkey:h}):m}let v=h.split(this.formatSeparator),x=v.shift().trim(),w=v.join(this.formatSeparator).trim();return this.format(Ab(a,l,x,this.options.keySeparator,this.options.ignoreJSONStructure),w,r,{...o,...a,interpolationkey:x})};this.resetRegExp();let c=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>kg(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?kg(this.escape(h)):kg(h)}].forEach(h=>{for(i=0;n=h.regex.exec(t);){let v=n[1].trim();if(s=u(v),s===void 0)if(typeof c=="function"){let w=c(t,n,o);s=he(w)?w:""}else if(o&&Object.prototype.hasOwnProperty.call(o,v))s="";else if(d){s=n[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`),s="";else!he(s)&&!this.useRawValueToEscape&&(s=kb(s));let x=h.safeValue(s);if(t=t.replace(n[0],x),d?(h.regex.lastIndex+=s.length,h.regex.lastIndex-=n[0].length):h.regex.lastIndex=0,i++,i>=this.maxReplaces)break}}),t}nest(t,a,r={}){let o,n,s,i=(l,u)=>{let c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;let d=l.split(new RegExp(`${c}[ ]*{`)),f=`{${d[1]}`;l=d[0],f=this.interpolate(f,s);let h=f.match(/'/g),v=f.match(/"/g);((h?.length??0)%2===0&&!v||v.length%2!==0)&&(f=f.replace(/'/g,'"'));try{s=JSON.parse(f),u&&(s={...u,...s})}catch(x){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,x),`${l}${c}${f}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;o=this.nestingRegexp.exec(t);){let l=[];s={...r},s=s.replace&&!he(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(u!==-1&&(l=o[1].slice(u).split(this.formatSeparator).map(c=>c.trim()).filter(Boolean),o[1]=o[1].slice(0,u)),n=a(i.call(this,o[1].trim(),s),s),n&&o[0]===t&&!he(n))return n;he(n)||(n=kb(n)),n||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),n=""),l.length&&(n=l.reduce((c,d)=>this.format(c,d,r.lng,{...r,interpolationkey:o[1].trim()}),n.trim())),t=t.replace(o[0],n),this.regexp.lastIndex=0}return t}},vE=e=>{let t=e.toLowerCase().trim(),a={};if(e.indexOf("(")>-1){let r=e.split("(");t=r[0].toLowerCase().trim();let o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?a.currency||(a.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?a.range||(a.range=o.trim()):o.split(";").forEach(s=>{if(s){let[i,...l]=s.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),c=i.trim();a[c]||(a[c]=u),u==="false"&&(a[c]=!1),u==="true"&&(a[c]=!0),isNaN(u)||(a[c]=parseInt(u,10))}})}return{formatName:t,formatOptions:a}},Eb=e=>{let t={};return(a,r,o)=>{let n=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(n={...n,[o.interpolationkey]:void 0});let s=r+JSON.stringify(n),i=t[s];return i||(i=e(Lu(r),o),t[s]=i),i(a)}},xE=e=>(t,a,r)=>e(Lu(a),r)(t),Ag=class{constructor(t={}){this.logger=Br.create("formatter"),this.options=t,this.init(t)}init(t,a={interpolation:{}}){this.formatSeparator=a.interpolation.formatSeparator||",";let r=a.cacheInBuiltFormats?Eb:xE;this.formats={number:r((o,n)=>{let s=new Intl.NumberFormat(o,{...n});return i=>s.format(i)}),currency:r((o,n)=>{let s=new Intl.NumberFormat(o,{...n,style:"currency"});return i=>s.format(i)}),datetime:r((o,n)=>{let s=new Intl.DateTimeFormat(o,{...n});return i=>s.format(i)}),relativetime:r((o,n)=>{let s=new Intl.RelativeTimeFormat(o,{...n});return i=>s.format(i,n.range||"day")}),list:r((o,n)=>{let s=new Intl.ListFormat(o,{...n});return i=>s.format(i)})}}add(t,a){this.formats[t.toLowerCase().trim()]=a}addCached(t,a){this.formats[t.toLowerCase().trim()]=Eb(a)}format(t,a,r,o={}){let n=a.split(this.formatSeparator);if(n.length>1&&n[0].indexOf("(")>1&&n[0].indexOf(")")<0&&n.find(i=>i.indexOf(")")>-1)){let i=n.findIndex(l=>l.indexOf(")")>-1);n[0]=[n[0],...n.splice(1,i)].join(this.formatSeparator)}return n.reduce((i,l)=>{let{formatName:u,formatOptions:c}=vE(l);if(this.formats[u]){let d=i;try{let f=o?.formatParams?.[o.interpolationkey]||{},h=f.locale||f.lng||o.locale||o.lng||r;d=this.formats[u](i,h,{...c,...o,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${u}`);return i},t)}},yE=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},Eg=class extends Fi{constructor(t,a,r,o={}){super(),this.backend=t,this.store=a,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Br.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,o.backend,o)}queueLoad(t,a,r,o){let n={},s={},i={},l={};return t.forEach(u=>{let c=!0;a.forEach(d=>{let f=`${u}|${d}`;!r.reload&&this.store.hasResourceBundle(u,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?s[f]===void 0&&(s[f]=!0):(this.state[f]=1,c=!1,s[f]===void 0&&(s[f]=!0),n[f]===void 0&&(n[f]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(i[u]=!0)}),(Object.keys(n).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(n),pending:Object.keys(s),toLoadLanguages:Object.keys(i),toLoadNamespaces:Object.keys(l)}}loaded(t,a,r){let o=t.split("|"),n=o[0],s=o[1];a&&this.emit("failedLoading",n,s,a),!a&&r&&this.store.addResourceBundle(n,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=a?-1:2,a&&r&&(this.state[t]=0);let i={};this.queue.forEach(l=>{lE(l.loaded,[n],s),yE(l,t),a&&l.errors.push(a),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{i[u]||(i[u]={});let c=l.loaded[u];c.length&&c.forEach(d=>{i[u][d]===void 0&&(i[u][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",i),this.queue=this.queue.filter(l=>!l.done)}read(t,a,r,o=0,n=this.retryTimeout,s){if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:a,fcName:r,tried:o,wait:n,callback:s});return}this.readingCalls++;let i=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){let d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,a,r,o+1,n*2,s)},n);return}s(u,c)},l=this.backend[r].bind(this.backend);if(l.length===2){try{let u=l(t,a);u&&typeof u.then=="function"?u.then(c=>i(null,c)).catch(i):i(null,u)}catch(u){i(u)}return}return l(t,a,i)}prepareLoading(t,a,r={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();he(t)&&(t=this.languageUtils.toResolveHierarchy(t)),he(a)&&(a=[a]);let n=this.queueLoad(t,a,r,o);if(!n.toLoad.length)return n.pending.length||o(),null;n.toLoad.forEach(s=>{this.loadOne(s)})}load(t,a,r){this.prepareLoading(t,a,{},r)}reload(t,a,r){this.prepareLoading(t,a,{reload:!0},r)}loadOne(t,a=""){let r=t.split("|"),o=r[0],n=r[1];this.read(o,n,"read",void 0,void 0,(s,i)=>{s&&this.logger.warn(`${a}loading namespace ${n} for language ${o} failed`,s),!s&&i&&this.logger.log(`${a}loaded namespace ${n} for language ${o}`,i),this.loaded(t,s,i)})}saveMissing(t,a,r,o,n,s={},i=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(a)){this.logger.warn(`did not save key "${r}" as the namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){let l={...s,isUpdate:n},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,a,r,o,l):c=u(t,a,r,o),c&&typeof c.then=="function"?c.then(d=>i(null,d)).catch(i):i(null,c)}catch(c){i(c)}else u(t,a,r,o,i,l)}!t||!t[0]||this.store.addResource(t[0],a,r,o)}}},Ob=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),he(e[1])&&(t.defaultValue=e[1]),he(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let a=e[3]||e[2];Object.keys(a).forEach(r=>{t[r]=a[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Nb=e=>(he(e.ns)&&(e.ns=[e.ns]),he(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),he(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),rf=()=>{},wE=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(a=>{typeof e[a]=="function"&&(e[a]=e[a].bind(e))})},uf=class e extends Fi{constructor(t={},a){if(super(),this.options=Nb(t),this.services={},this.logger=Br,this.modules={external:[]},wE(this),a&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,a),this;setTimeout(()=>{this.init(t,a)},0)}}init(t={},a){this.isInitializing=!0,typeof t=="function"&&(a=t,t={}),t.defaultNS==null&&t.ns&&(he(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));let r=Ob();this.options={...r,...this.options,...Nb(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);let o=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Br.init(o(this.modules.logger),this.options):Br.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=Ag;let c=new lf(this.options);this.store=new nf(this.options.resources,this.options);let d=this.services;d.logger=Br,d.resourceStore=this.store,d.languageUtils=c,d.pluralResolver=new Mg(c,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),u&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(d.formatter=o(u),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new _g(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new Eg(o(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(h,...v)=>{this.emit(h,...v)}),this.modules.languageDetector&&(d.languageDetector=o(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=o(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new sf(this.services,this.options),this.translator.on("*",(h,...v)=>{this.emit(h,...v)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,a||(a=rf),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=(...c)=>this.store[u](...c)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...c)=>(this.store[u](...c),this)});let i=Cu(),l=()=>{let u=(c,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(d),a(c,d)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),i}loadResources(t,a=rf){let r=a,o=he(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();let n=[],s=i=>{if(!i||i==="cimode")return;this.services.languageUtils.toResolveHierarchy(i).forEach(u=>{u!=="cimode"&&n.indexOf(u)<0&&n.push(u)})};o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload?.forEach?.(i=>s(i)),this.services.backendConnector.load(n,this.options.ns,i=>{!i&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(i)})}else r(null)}reloadResources(t,a,r){let o=Cu();return typeof t=="function"&&(r=t,t=void 0),typeof a=="function"&&(r=a,a=void 0),t||(t=this.languages),a||(a=this.options.ns),r||(r=rf),this.services.backendConnector.reload(t,a,n=>{o.resolve(),r(n)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&zb.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let a=0;a<this.languages.length;a++){let r=this.languages[a];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,a){this.isLanguageChangingTo=t;let r=Cu();this.emit("languageChanging",t);let o=i=>{this.language=i,this.languages=this.services.languageUtils.toResolveHierarchy(i),this.resolvedLanguage=void 0,this.setResolvedLanguage(i)},n=(i,l)=>{l?this.isLanguageChangingTo===t&&(o(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...u)=>this.t(...u)),a&&a(i,(...u)=>this.t(...u))},s=i=>{!t&&!i&&this.services.languageDetector&&(i=[]);let l=he(i)?i:i&&i[0],u=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(he(i)?[i]:i);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector?.cacheUserLanguage?.(u)),this.loadResources(u,c=>{n(c,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),r}getFixedT(t,a,r){let o=(n,s,...i)=>{let l;typeof s!="object"?l=this.options.overloadTranslationOptionHandler([n,s].concat(i)):l={...s},l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||o.keyPrefix);let u=this.options.keySeparator||".",c;return l.keyPrefix&&Array.isArray(n)?c=n.map(d=>(typeof d=="function"&&(d=Tg(d,{...this.options,...s})),`${l.keyPrefix}${u}${d}`)):(typeof n=="function"&&(n=Tg(n,{...this.options,...s})),c=l.keyPrefix?`${l.keyPrefix}${u}${n}`:n),this.t(c,l)};return he(t)?o.lng=t:o.lngs=t,o.ns=a,o.keyPrefix=r,o}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,a={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let r=a.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,n=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;let s=(i,l)=>{let u=this.services.backendConnector.state[`${i}|${l}`];return u===-1||u===0||u===2};if(a.precheck){let i=a.precheck(this,s);if(i!==void 0)return i}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!o||s(n,t)))}loadNamespaces(t,a){let r=Cu();return this.options.ns?(he(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),a&&a(o)}),r):(a&&a(),Promise.resolve())}loadLanguages(t,a){let r=Cu();he(t)&&(t=[t]);let o=this.options.preload||[],n=t.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return n.length?(this.options.preload=o.concat(n),this.loadResources(s=>{r.resolve(),a&&a(s)}),r):(a&&a(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{let o=new Intl.Locale(t);if(o&&o.getTextInfo){let n=o.getTextInfo();if(n&&n.direction)return n.direction}}catch{}let a=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new lf(Ob());return t.toLowerCase().indexOf("-latn")>1?"ltr":a.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},a){return new e(t,a)}cloneInstance(t={},a=rf){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let o={...this.options,...t,isClone:!0},n=new e(o);if((t.debug!==void 0||t.prefix!==void 0)&&(n.logger=n.logger.clone(t)),["store","services","language"].forEach(i=>{n[i]=this[i]}),n.services={...this.services},n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},r){let i=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},l[u]=Object.keys(l[u]).reduce((c,d)=>(c[d]={...l[u][d]},c),l[u]),l),{});n.store=new nf(i,o),n.services.resourceStore=n.store}return n.translator=new sf(n.services,o),n.translator.on("*",(i,...l)=>{n.emit(i,...l)}),n.init(o,a),n.translator.options=o,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},pa=uf.createInstance();pa.createInstance=uf.createInstance;var Ub=pa.createInstance,TH=pa.dir,MH=pa.init,_H=pa.loadResources,AH=pa.reloadResources,EH=pa.use,OH=pa.changeLanguage,NH=pa.getFixedT,FH=pa.t,zH=pa.exists,BH=pa.setDefaultNamespace,UH=pa.hasLoadedNamespace,HH=pa.loadNamespaces,jH=pa.loadLanguages;var pn=F(ee(),1),CE=Symbol("remote-view.message"),Ng=class extends Error{constructor(t,a,r){super(),this.key=t,this.values=a,Object.defineProperty(this,"message",{configurable:!0,get:()=>r(t,a)}),this.name="ViewMessageError"}key;values},Og={en:{close:"Close",commandTitle:"Command palette",commandDescription:"Search for a command to run\u2026"},"zh-Hans":{close:"\u5173\u95ED",commandTitle:"\u547D\u4EE4\u9762\u677F",commandDescription:"\u641C\u7D22\u8981\u8FD0\u884C\u7684\u547D\u4EE4\u2026"},"zh-Hant":{close:"\u95DC\u9589",commandTitle:"\u547D\u4EE4\u9762\u677F",commandDescription:"\u641C\u5C0B\u8981\u57F7\u884C\u7684\u547D\u4EE4\u2026"}};function Hb(e){try{let t=new Intl.Locale((e||"en").replaceAll("_","-"));return t.language==="zh"?t.maximize().script==="Hant"?"zh-Hant":"zh-Hans":"en"}catch{return"en"}}function Fg(e,t=typeof navigator>"u"?"en":navigator.language){let a=i=>{let l=Hb(i);return l==="zh-Hant"&&!e["zh-Hant"]?"zh-Hans":l},r=Ub();r.init({lng:a(t),fallbackLng:"en",supportedLngs:["en","zh-Hans","zh-Hant"],load:"currentOnly",initAsync:!1,keySeparator:!1,defaultNS:"view",interpolation:{escapeValue:!1},resources:{en:{view:e.en,ui:Og.en},"zh-Hans":{view:e["zh-Hans"],ui:Og["zh-Hans"]},"zh-Hant":{view:e["zh-Hant"]??e["zh-Hans"],ui:Og["zh-Hant"]}}});let o=()=>a(r.resolvedLanguage??r.language),n=i=>(r.on("languageChanged",i),()=>{r.off("languageChanged",i)}),s=(i,l)=>String(r.t(i,l));return{getLocale:o,subscribe:n,setLocale(i){i!==void 0&&r.changeLanguage(a(i)),typeof document<"u"&&(document.documentElement.lang=o())},t:(i,l)=>s(i,l),message:(i,l)=>({[CE]:!0,key:i,values:l}),error:(i,l)=>new Ng(i,l,s),format(i){return typeof i=="string"?i:i instanceof Error?i.message:s(i.key,i.values)},ui:i=>String(r.t(i,{ns:"ui"})),date(i,l={}){let u=new Date(i);return Number.isNaN(u.getTime())?"":new Intl.DateTimeFormat(o(),l).format(u)},number(i,l){return new Intl.NumberFormat(o(),l).format(i)},label(i,l=""){if(typeof i=="string")return i;let u=Object.entries(i),c=o();return u.find(([d])=>Hb(d)===c&&/^(en|zh)([-_]|$)/i.test(d))?.[1]??i.en_US??i.en??i["en-US"]??l}}}var SE=Fg({en:{},"zh-Hans":{}},"en"),Vb=(0,pn.createContext)(SE);function qb({i18n:e,children:t}){return(0,jb.jsx)(Vb.Provider,{value:e,children:t})}function df(e){return(0,pn.useSyncExternalStore)(e.subscribe,e.getLocale,e.getLocale)}function Wb(e,t=""){df(e);let[a,r]=(0,pn.useState)(t);return[e.format(a),r]}function zg(){let e=(0,pn.useContext)(Vb);return df(e),e.ui}var ji=F(fe(),1),be=F(ee(),1);function LE(e,t){let a=getComputedStyle(e),r=parseFloat(a.fontSize);return t*r}function IE(e,t){let a=getComputedStyle(e.ownerDocument.documentElement),r=parseFloat(a.fontSize);return t*r}function bE(e){return e/100*window.innerHeight}function kE(e){return e/100*window.innerWidth}function RE(e){switch(typeof e){case"number":return[e,"px"];case"string":{let t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}function Iu({groupSize:e,panelElement:t,styleProp:a}){let r,[o,n]=RE(a);switch(n){case"%":{r=o/100*e;break}case"px":{r=o;break}case"rem":{r=IE(t,o);break}case"em":{r=LE(t,o);break}case"vh":{r=bE(o);break}case"vw":{r=kE(o);break}}return r}function ma(e){return parseFloat(e.toFixed(3))}function Vi({group:e}){let{orientation:t,panels:a}=e;return a.reduce((r,o)=>(r+=t==="horizontal"?o.element.offsetWidth:o.element.offsetHeight,r),0)}function Ug(e){let{panels:t}=e,a=Vi({group:e});return a===0?t.map(r=>({groupResizeBehavior:r.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:r.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:r.panelConstraints.disabled,minSize:0,maxSize:100,panelId:r.id})):t.map(r=>{let{element:o,panelConstraints:n}=r,s=0;if(n.collapsedSize!==void 0){let c=Iu({groupSize:a,panelElement:o,styleProp:n.collapsedSize});s=ma(c/a*100)}let i;if(n.defaultSize!==void 0){let c=Iu({groupSize:a,panelElement:o,styleProp:n.defaultSize});i=ma(c/a*100)}let l=0;if(n.minSize!==void 0){let c=Iu({groupSize:a,panelElement:o,styleProp:n.minSize});l=ma(c/a*100)}let u=100;if(n.maxSize!==void 0){let c=Iu({groupSize:a,panelElement:o,styleProp:n.maxSize});u=ma(c/a*100)}return{groupResizeBehavior:n.groupResizeBehavior,collapsedSize:s,collapsible:n.collapsible===!0,defaultSize:i,disabled:n.disabled,minSize:l,maxSize:u,panelId:r.id}})}function $e(e,t="Assertion error"){if(!e)throw Error(t)}function Hg(e,t){return Array.from(t).sort(e==="horizontal"?PE:DE)}function PE(e,t){let a=e.element.offsetLeft-t.element.offsetLeft;return a!==0?a:e.element.offsetWidth-t.element.offsetWidth}function DE(e,t){let a=e.element.offsetTop-t.element.offsetTop;return a!==0?a:e.element.offsetHeight-t.element.offsetHeight}function uk(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function dk(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function TE({orientation:e,rects:t,targetRect:a}){let r={x:a.x+a.width/2,y:a.y+a.height/2},o,n=Number.MAX_VALUE;for(let s of t){let{x:i,y:l}=dk(r,s),u=e==="horizontal"?i:l;u<n&&(n=u,o=s)}return $e(o,"No rect found"),o}var cf;function ME(){return cf===void 0&&(typeof matchMedia=="function"?cf=!!matchMedia("(pointer:coarse)").matches:cf=!1),cf}function ck(e){let{element:t,orientation:a,panels:r,separators:o}=e,n=Hg(a,Array.from(t.children).filter(uk).map(v=>({element:v}))).map(({element:v})=>v),s=[],i=!1,l=!1,u=-1,c=-1,d=0,f,h=[];{let v=-1;for(let x of n)x.hasAttribute("data-panel")&&(v++,x.hasAttribute("data-disabled")||(d++,u===-1&&(u=v),c=v))}if(d>1){let v=-1;for(let x of n)if(x.hasAttribute("data-panel")){v++;let w=r.find(m=>m.element===x);if(w){if(f){let m=f.element.getBoundingClientRect(),p=x.getBoundingClientRect(),g;if(l){let y=a==="horizontal"?new DOMRect(m.right,m.top,0,m.height):new DOMRect(m.left,m.bottom,m.width,0),L=a==="horizontal"?new DOMRect(p.left,p.top,0,p.height):new DOMRect(p.left,p.top,p.width,0);switch(h.length){case 0:{g=[y,L];break}case 1:{let b=h[0],R=TE({orientation:a,rects:[m,p],targetRect:b.element.getBoundingClientRect()});g=[b,R===m?L:y];break}default:{g=h;break}}}else h.length?g=h:g=[a==="horizontal"?new DOMRect(m.right,p.top,p.left-m.right,p.height):new DOMRect(p.left,m.bottom,p.width,p.top-m.bottom)];for(let y of g){let L="width"in y?y:y.element.getBoundingClientRect(),b=ME()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(L.width<b){let k=b-L.width;L=new DOMRect(L.x-k/2,L.y,L.width+k,L.height)}if(L.height<b){let k=b-L.height;L=new DOMRect(L.x,L.y-k/2,L.width,L.height+k)}let R=v<=u||v>c;!i&&!R&&s.push({group:e,groupSize:Vi({group:e}),panels:[f,w],separator:"width"in y?void 0:y,rect:L}),i=!1}}l=!1,f=w,h=[]}}else if(x.hasAttribute("data-separator")){x.ariaDisabled!==null&&(i=!0);let w=o.find(m=>m.element===x);w?h.push(w):(f=void 0,h=[])}else l=!0}return s}var mf=class{#e={};addListener(t,a){let r=this.#e[t];return r===void 0?this.#e[t]=[a]:r.includes(a)||r.push(a),()=>{this.removeListener(t,a)}}emit(t,a){let r=this.#e[t];if(r!==void 0)if(r.length===1)r[0].call(null,a);else{let o=!1,n=null,s=Array.from(r);for(let i=0;i<s.length;i++){let l=s[i];try{l.call(null,a)}catch(u){n===null&&(o=!0,n=u)}}if(o)throw n}}removeAllListeners(){this.#e={}}removeListener(t,a){let r=this.#e[t];if(r!==void 0){let o=r.indexOf(a);o>=0&&r.splice(o,1)}}},Ui={cursorFlags:0,state:"inactive"},jg=new mf;function rs(){return Ui}function _E(e){return jg.addListener("change",e)}function AE(e){let t=Ui,a={...Ui};a.cursorFlags=e,Ui=a,jg.emit("change",{prev:t,next:a})}function Hi(e){let t=Ui;Ui=e,jg.emit("change",{prev:t,next:e})}var EE=e=>e,Bg=()=>{},fk=1,pk=2,mk=4,hk=8,Gb=3,$b=12,ff;function Kb(){return ff===void 0&&(ff=!1,typeof window<"u"&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(ff=!0)),ff}function OE({cursorFlags:e,groups:t,state:a}){let r=0,o=0;switch(a){case"active":case"hover":t.forEach(n=>{if(!n.mutableState.disableCursor)switch(n.orientation){case"horizontal":{r++;break}case"vertical":{o++;break}}})}if(!(r===0&&o===0)){switch(a){case"active":{if(e&&Kb()){let n=(e&fk)!==0,s=(e&pk)!==0,i=(e&mk)!==0,l=(e&hk)!==0;if(n)return i?"se-resize":l?"ne-resize":"e-resize";if(s)return i?"sw-resize":l?"nw-resize":"w-resize";if(i)return"s-resize";if(l)return"n-resize"}break}}return Kb()?r>0&&o>0?"move":r>0?"ew-resize":"ns-resize":r>0&&o>0?"grab":r>0?"col-resize":"row-resize"}}var Xb=new WeakMap;function Vg(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:a}=Xb.get(e)??{};a===void 0&&(a=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(a):e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]));let r=rs();switch(r.state){case"active":case"hover":{let o=OE({cursorFlags:r.cursorFlags,groups:r.hitRegions.map(s=>s.group),state:r.state}),n=`*, *:hover {cursor: ${o} !important; }`;if(t===n)return;t=n,o?a.cssRules.length===0?a.insertRule(n):a.replaceSync(n):a.cssRules.length===1&&a.deleteRule(0);break}case"inactive":{t=void 0,a.cssRules.length===1&&a.deleteRule(0);break}}Xb.set(e,{prevStyle:t,styleSheet:a})}var Hr=new Map,gk=new mf;function NE(e){Hr=new Map(Hr),Hr.delete(e)}function Zb(e,t){for(let[a]of Hr)if(a.id===e)return a}function mn(e,t){for(let[a,r]of Hr)if(a.id===e)return r;if(t)throw Error(`Could not find data for Group with id ${e}`)}function ss(){return Hr}function qg(e,t){return gk.addListener("groupChange",a=>{a.group.id===e&&t(a)})}function bo(e,t,a){let r=Hr.get(e);Hr=new Map(Hr),Hr.set(e,t),gk.emit("groupChange",{group:e,isUserInteraction:a?.isUserInteraction===!0,prev:r,next:t})}function vk(e){let t=rs(),a=!1;return t.state==="active"&&(Hi({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(Vg(e),a=!0,t.hitRegions.forEach(r=>{let o=mn(r.group.id,!0);bo(r.group,o,{isUserInteraction:!0})}))),a}function Qb(e){e.defaultPrevented||vk(e.currentTarget)}function FE(e,t,a){let r,o={x:1/0,y:1/0};for(let n of t){let s=dk(a,n.rect);switch(e){case"horizontal":{s.x<=o.x&&(r=n,o=s);break}case"vertical":{s.y<=o.y&&(r=n,o=s);break}}}return r?{distance:o,hitRegion:r}:void 0}function zE(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function BE(e,t){if(e===t)throw new Error("Cannot compare node with itself");let a={a:ek(e),b:ek(t)},r;for(;a.a.at(-1)===a.b.at(-1);)r=a.a.pop(),a.b.pop();$e(r,"Stacking order can only be calculated for elements with a common ancestor");let o={a:Jb(Yb(a.a)),b:Jb(Yb(a.b))};if(o.a===o.b){let n=r.childNodes,s={a:a.a.at(-1),b:a.b.at(-1)},i=n.length;for(;i--;){let l=n[i];if(l===s.a)return 1;if(l===s.b)return-1}}return Math.sign(o.a-o.b)}var UE=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function HE(e){let t=getComputedStyle(xk(e)??e).display;return t==="flex"||t==="inline-flex"}function jE(e){let t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||HE(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||UE.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function Yb(e){let t=e.length;for(;t--;){let a=e[t];if($e(a,"Missing node"),jE(a))return a}return null}function Jb(e){return e&&Number(getComputedStyle(e).zIndex)||0}function ek(e){let t=[];for(;e;)t.push(e),e=xk(e);return t}function xk(e){let{parentNode:t}=e;return zE(t)?t.host:t}function VE(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function qE({groupElement:e,hitRegion:t,pointerEventTarget:a}){if(!uk(a)||a.contains(e)||e.contains(a))return!0;if(BE(a,e)>0){let r=a;for(;r;){if(r.contains(e))return!0;if(VE(r.getBoundingClientRect(),t))return!1;r=r.parentElement}}return!0}function Wg(e,t){let a=[];return t.forEach((r,o)=>{if(o.disabled)return;let n=ck(o),s=FE(o.orientation,n,{x:e.clientX,y:e.clientY});s&&s.distance.x<=0&&s.distance.y<=0&&qE({groupElement:o.element,hitRegion:s.hitRegion.rect,pointerEventTarget:e.target})&&a.push(s.hitRegion)}),a}function WE(e,t){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!=t[a])return!1;return!0}function ea(e,t,a=0){return Math.abs(ma(e)-ma(t))<=a}function Ur(e,t){return ea(e,t)?0:e>t?1:-1}function Bi({overrideDisabledPanels:e,panelConstraints:t,prevSize:a,size:r}){let{collapsedSize:o=0,collapsible:n,disabled:s,maxSize:i=100,minSize:l=0}=t;if(s&&!e)return a;if(Ur(r,l)<0)if(n){let u=(o+l)/2;Ur(r,u)<0?r=o:r=l}else r=l;return r=Math.min(i,r),r=ma(r),r}function ku({delta:e,initialLayout:t,panelConstraints:a,pivotIndices:r,prevLayout:o,trigger:n}){if(ea(e,0))return t;let s=n==="imperative-api",i=Object.values(t),l=Object.values(o),u=[...i],[c,d]=r;$e(c!=null,"Invalid first pivot index"),$e(d!=null,"Invalid second pivot index");let f=0;switch(n){case"keyboard":{{let x=e<0?d:c,w=a[x];$e(w,`Panel constraints not found for index ${x}`);let{collapsedSize:m=0,collapsible:p,minSize:g=0}=w;if(p){let y=i[x];if($e(y!=null,`Previous layout not found for panel index ${x}`),ea(y,m)){let L=g-y;Ur(L,Math.abs(e))>0&&(e=e<0?0-L:L)}}}{let x=e<0?c:d,w=a[x];$e(w,`No panel constraints found for index ${x}`);let{collapsedSize:m=0,collapsible:p,minSize:g=0}=w;if(p){let y=i[x];if($e(y!=null,`Previous layout not found for panel index ${x}`),ea(y,g)){let L=y-m;Ur(L,Math.abs(e))>0&&(e=e<0?0-L:L)}}}break}default:{let x=e<0?d:c,w=a[x];$e(w,`Panel constraints not found for index ${x}`);let m=i[x],{collapsible:p,collapsedSize:g,minSize:y}=w;if(p&&Ur(m,y)<0)if(e>0){let L=y-g,b=L/2,R=m+e;Ur(R,y)<0&&(e=Ur(e,b)<=0?0:L)}else{let L=y-g,b=100-L/2,R=m-e;Ur(R,y)<0&&(e=Ur(100+e,b)>0?0:-L)}break}}{let x=e<0?1:-1,w=e<0?d:c,m=0;for(;;){let g=i[w];$e(g!=null,`Previous layout not found for panel index ${w}`);let y=Bi({overrideDisabledPanels:s,panelConstraints:a[w],prevSize:g,size:100})-g;if(m+=y,w+=x,w<0||w>=a.length)break}let p=Math.min(Math.abs(e),Math.abs(m));e=e<0?0-p:p}{let x=e<0?c:d;for(;x>=0&&x<a.length;){let w=Math.abs(e)-Math.abs(f),m=i[x];$e(m!=null,`Previous layout not found for panel index ${x}`);let p=m-w,g=Bi({overrideDisabledPanels:s,panelConstraints:a[x],prevSize:m,size:p});if(!ea(m,g)&&(f+=m-g,u[x]=g,f.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?x--:x++}}if(WE(l,u))return o;{let x=e<0?d:c,w=i[x];$e(w!=null,`Previous layout not found for panel index ${x}`);let m=w+f,p=Bi({overrideDisabledPanels:s,panelConstraints:a[x],prevSize:w,size:m});if(u[x]=p,!ea(p,m)){let g=m-p,y=e<0?d:c;for(;y>=0&&y<a.length;){let L=u[y];$e(L!=null,`Previous layout not found for panel index ${y}`);let b=L+g,R=Bi({overrideDisabledPanels:s,panelConstraints:a[y],prevSize:L,size:b});if(ea(L,R)||(g-=R-L,u[y]=R),ea(g,0))break;e>0?y--:y++}}}let h=Object.values(u).reduce((x,w)=>w+x,0);if(!ea(h,100,.1))return o;let v=Object.keys(o);return u.reduce((x,w,m)=>(x[v[m]]=w,x),{})}function os(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let a in e)if(t[a]===void 0||Ur(e[a],t[a])!==0)return!1;return!0}function ns({layout:e,panelConstraints:t}){let a=Object.values(e),r=[...a],o=r.reduce((i,l)=>i+l,0);if(r.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${r.map(i=>`${i}%`).join(", ")}`);if(!ea(o,100)&&r.length>0)for(let i=0;i<t.length;i++){let l=r[i];$e(l!=null,`No layout data found for index ${i}`);let u=100/o*l;r[i]=u}let n=0;for(let i=0;i<t.length;i++){let l=a[i];$e(l!=null,`No layout data found for index ${i}`);let u=r[i];$e(u!=null,`No layout data found for index ${i}`);let c=Bi({overrideDisabledPanels:!0,panelConstraints:t[i],prevSize:l,size:u});u!=c&&(n+=u-c,r[i]=c)}if(!ea(n,0))for(let i=0;i<t.length;i++){let l=r[i];$e(l!=null,`No layout data found for index ${i}`);let u=l+n,c=Bi({overrideDisabledPanels:!0,panelConstraints:t[i],prevSize:l,size:u});if(l!==c&&(n-=c-l,r[i]=c,ea(n,0)))break}let s=Object.keys(e);return r.reduce((i,l,u)=>(i[s[u]]=l,i),{})}function yk({groupId:e,panelId:t}){let a=()=>{let l=ss();for(let[u,{defaultLayoutDeferred:c,derivedPanelConstraints:d,layout:f,groupSize:h,separatorToPanels:v}]of l)if(u.id===e)return{defaultLayoutDeferred:c,derivedPanelConstraints:d,group:u,groupSize:h,layout:f,separatorToPanels:v};throw Error(`Group ${e} not found`)},r=()=>{let l=a().derivedPanelConstraints.find(u=>u.panelId===t);if(l!==void 0)return l;throw Error(`Panel constraints not found for Panel ${t}`)},o=()=>{let l=a().group.panels.find(u=>u.id===t);if(l!==void 0)return l;throw Error(`Layout not found for Panel ${t}`)},n=()=>{let l=a().layout[t];if(l!==void 0)return l;throw Error(`Layout not found for Panel ${t}`)},s=({nextSize:l,panels:u,prevLayout:c,derivedPanelConstraints:d})=>{let f=n(),h=u.findIndex(w=>w.id===t),v=h===0,x=h===u.length-1;if(x&&l<f&&(v||u.slice(0,h).every((w,m)=>{let p=d[m];return p?.collapsible&&ea(p.collapsedSize,c[p.panelId])}))){let w=u.slice(0,h).reduce((m,p)=>m+c[p.id],0);return{...c,[t]:ma(100-w)}}return ku({delta:x?f-l:l-f,initialLayout:c,panelConstraints:d,pivotIndices:x?[h-1,h]:[h,h+1],prevLayout:c,trigger:"imperative-api"})},i=l=>{let u=n();if(l===u)return;let{defaultLayoutDeferred:c,derivedPanelConstraints:d,group:f,groupSize:h,layout:v,separatorToPanels:x}=a(),w=s({nextSize:l,panels:f.panels,prevLayout:v,derivedPanelConstraints:d}),m=ns({layout:w,panelConstraints:d});os(v,m)||bo(f,{defaultLayoutDeferred:c,derivedPanelConstraints:d,groupSize:h,layout:m,separatorToPanels:x})};return{collapse:()=>{let{collapsible:l,collapsedSize:u}=r(),{mutableValues:c}=o(),d=n();l&&d!==u&&(c.expandToSize=d,i(u))},expand:()=>{let{collapsible:l,collapsedSize:u,minSize:c}=r(),{mutableValues:d}=o(),f=n();if(l&&f===u){let h=d.expandToSize??c;h===0&&(h=1),i(h)}},getSize:()=>{let{group:l}=a(),u=n(),{element:c}=o(),d=l.orientation==="horizontal"?c.offsetWidth:c.offsetHeight;return{asPercentage:u,inPixels:d}},isCollapsed:()=>{let{collapsible:l,collapsedSize:u}=r(),c=n();return l&&ea(u,c)},resize:l=>{let{group:u}=a(),{element:c}=o(),d=Vi({group:u}),f=Iu({groupSize:d,panelElement:c,styleProp:l}),h=ma(f/d*100);i(h)}}}function tk(e){if(e.defaultPrevented)return;let t=ss();Wg(e,t).forEach(a=>{if(a.separator&&!a.separator.disableDoubleClick){let r=a.panels.find(o=>o.panelConstraints.defaultSize!==void 0);if(r){let o=r.panelConstraints.defaultSize,n=yk({groupId:a.group.id,panelId:r.id});n&&o!==void 0&&(n.resize(o),e.preventDefault())}}})}function pf(e){let t=ss();for(let[a]of t)if(a.separators.some(r=>r.element===e))return a;throw Error("Could not find parent Group for separator element")}function wk({groupId:e}){let t=()=>{let a=ss();for(let[r,o]of a)if(r.id===e)return{group:r,...o};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){let{defaultLayoutDeferred:a,layout:r}=t();return a?{}:r},setLayout(a){let{defaultLayoutDeferred:r,derivedPanelConstraints:o,group:n,groupSize:s,layout:i,separatorToPanels:l}=t(),u=ns({layout:a,panelConstraints:o});return r?i:(os(i,u)||bo(n,{defaultLayoutDeferred:r,derivedPanelConstraints:o,groupSize:s,layout:u,separatorToPanels:l}),u)}}}function as(e,t){let a=pf(e),r=mn(a.id,!0),o=a.separators.find(c=>c.element===e);$e(o,"Matching separator not found");let n=r.separatorToPanels.get(o);$e(n,"Matching panels not found");let s=n.map(c=>a.panels.indexOf(c)),i=wk({groupId:a.id}).getLayout(),l=ku({delta:t,initialLayout:i,panelConstraints:r.derivedPanelConstraints,pivotIndices:s,prevLayout:i,trigger:"keyboard"}),u=ns({layout:l,panelConstraints:r.derivedPanelConstraints});os(i,u)||bo(a,{defaultLayoutDeferred:r.defaultLayoutDeferred,derivedPanelConstraints:r.derivedPanelConstraints,groupSize:r.groupSize,layout:u,separatorToPanels:r.separatorToPanels},{isUserInteraction:!0})}function ak(e){if(e.defaultPrevented)return;let t=e.currentTarget,a=pf(t);if(!a.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),a.orientation==="vertical"&&as(t,5);break}case"ArrowLeft":{e.preventDefault(),a.orientation==="horizontal"&&as(t,-5);break}case"ArrowRight":{e.preventDefault(),a.orientation==="horizontal"&&as(t,5);break}case"ArrowUp":{e.preventDefault(),a.orientation==="vertical"&&as(t,-5);break}case"End":{e.preventDefault(),as(t,100);break}case"Enter":{e.preventDefault();let r=pf(t),o=mn(r.id,!0),{derivedPanelConstraints:n,layout:s,separatorToPanels:i}=o,l=r.separators.find(f=>f.element===t);$e(l,"Matching separator not found");let u=i.get(l);$e(u,"Matching panels not found");let c=u[0],d=n.find(f=>f.panelId===c.id);if($e(d,"Panel metadata not found"),d.collapsible){let f=s[c.id],h=d.collapsedSize===f?r.mutableState.expandedPanelSizes[c.id]??d.minSize:d.collapsedSize;as(t,h-f)}break}case"F6":{e.preventDefault();let r=pf(t).separators.map(s=>s.element),o=Array.from(r).findIndex(s=>s===e.currentTarget);$e(o!==null,"Index not found");let n=e.shiftKey?o>0?o-1:r.length-1:o+1<r.length?o+1:0;r[n].focus({preventScroll:!0});break}case"Home":{e.preventDefault(),as(t,-100);break}}}function rk(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;let t=ss(),a=Wg(e,t),r=new Map,o=!1;a.forEach(n=>{n.separator&&(o||(o=!0,n.separator.element.focus({focusVisible:!1,preventScroll:!0})));let s=t.get(n.group);s&&r.set(n.group,s.layout)}),Hi({cursorFlags:0,hitRegions:a,initialLayoutMap:r,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),a.length&&e.preventDefault()}function Ck({document:e,event:t,hitRegions:a,initialLayoutMap:r,mountedGroups:o,pointerDownAtPoint:n,prevCursorFlags:s}){let i=0;a.forEach(u=>{let{group:c,groupSize:d}=u,{orientation:f,panels:h}=c,{disableCursor:v}=c.mutableState,x=0;n?f==="horizontal"?x=(t.clientX-n.x)/d*100:x=(t.clientY-n.y)/d*100:f==="horizontal"?x=t.clientX<0?-100:100:x=t.clientY<0?-100:100;let w=r.get(c),m=o.get(c);if(!w||!m)return;let{defaultLayoutDeferred:p,derivedPanelConstraints:g,groupSize:y,layout:L,separatorToPanels:b}=m;if(g&&L&&b){let R=ku({delta:x,initialLayout:w,panelConstraints:g,pivotIndices:u.panels.map(k=>h.indexOf(k)),prevLayout:L,trigger:"mouse-or-touch"});if(os(R,L)){if(x!==0&&!v)switch(f){case"horizontal":{i|=x<0?fk:pk;break}case"vertical":{i|=x<0?mk:hk;break}}}else bo(u.group,{defaultLayoutDeferred:p,derivedPanelConstraints:g,groupSize:y,layout:R,separatorToPanels:b})}});let l=0;t.movementX===0?l|=s&Gb:l|=i&Gb,t.movementY===0?l|=s&$b:l|=i&$b,AE(l),Vg(e)}function ok(e){let t=ss(),a=rs();a.state==="active"&&Ck({document:e.currentTarget,event:e,hitRegions:a.hitRegions,initialLayoutMap:a.initialLayoutMap,mountedGroups:t,prevCursorFlags:a.cursorFlags})}function nk(e){if(e.defaultPrevented)return;let t=rs(),a=ss();switch(t.state){case"active":{if(e.buttons===0){Hi({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(r=>{let o=mn(r.group.id,!0);bo(r.group,o,{isUserInteraction:!0})});return}for(let r of t.hitRegions)if(r.separator){let{element:o}=r.separator;o.hasPointerCapture?.(e.pointerId)||o.setPointerCapture?.(e.pointerId)}Ck({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:a,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break}default:{let r=Wg(e,a);r.length===0?t.state!=="inactive"&&Hi({cursorFlags:0,state:"inactive"}):Hi({cursorFlags:0,hitRegions:r,state:"hover"}),Vg(e.currentTarget);break}}}function sk(e){e.relatedTarget instanceof HTMLIFrameElement&&rs().state==="hover"&&Hi({cursorFlags:0,state:"inactive"})}function ik(e){e.defaultPrevented||e.pointerType==="mouse"&&e.button>0||vk(e.currentTarget)&&e.preventDefault()}function lk(e){let t=0,a=0,r={};for(let n of e)if(n.defaultSize!==void 0){t++;let s=ma(n.defaultSize);a+=s,r[n.panelId]=s}else r[n.panelId]=void 0;let o=e.length-t;if(o!==0){let n=ma((100-a)/o);for(let s of e)s.defaultSize===void 0&&(r[s.panelId]=n)}return r}function GE(e,t,a){if(!a[0])return;let r=e.panels.find(l=>l.element===t);if(!r||!r.onResize)return;let o=Vi({group:e}),n=e.orientation==="horizontal"?r.element.offsetWidth:r.element.offsetHeight,s=r.mutableValues.prevSize,i={asPercentage:ma(n/o*100),inPixels:n};r.mutableValues.prevSize=i,r.onResize(i,r.id,s)}function $E(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let a in e)if(e[a]!==t[a])return!1;return!0}function KE({group:e,nextGroupSize:t,prevGroupSize:a,prevLayout:r}){if(a<=0||t<=0||a===t)return r;let o=0,n=0,s=!1,i=new Map,l=[];for(let d of e.panels){let f=r[d.id]??0;if(d.panelConstraints.groupResizeBehavior==="preserve-pixel-size"){s=!0;let h=f/100*a,v=ma(h/t*100);i.set(d.id,v),o+=v}else l.push(d.id),n+=f}if(!s||l.length===0)return r;let u=100-o,c={...r};if(i.forEach((d,f)=>{c[f]=d}),n>0)for(let d of l){let f=r[d]??0;c[d]=ma(f/n*u)}else{let d=ma(u/l.length);for(let f of l)c[f]=d}return c}function XE(e,t){let a=e.map(o=>o.id),r=Object.keys(t);if(a.length!==r.length)return!1;for(let o of a)if(!r.includes(o))return!1;return!0}var zi=new Map;function ZE(e){let t=!0;$e(e.element.ownerDocument.defaultView,"Cannot register an unmounted Group");let a=e.element.ownerDocument.defaultView.ResizeObserver,r=new Set,o=new Set,n=new a(v=>{for(let x of v){let{borderBoxSize:w,target:m}=x;if(m===e.element){if(t){let p=Vi({group:e});if(p===0)return;let g=mn(e.id);if(!g)return;let y=Ug(e),L=g.defaultLayoutDeferred?lk(y):g.layout,b=KE({group:e,nextGroupSize:p,prevGroupSize:g.groupSize,prevLayout:L}),R=ns({layout:b,panelConstraints:y});if(!g.defaultLayoutDeferred&&os(g.layout,R)&&$E(g.derivedPanelConstraints,y)&&g.groupSize===p)return;bo(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:y,groupSize:p,layout:R,separatorToPanels:g.separatorToPanels})}}else GE(e,m,w)}});n.observe(e.element),e.panels.forEach(v=>{$e(!r.has(v.id),`Panel ids must be unique; id "${v.id}" was used more than once`),r.add(v.id),v.onResize&&n.observe(v.element)});let s=Vi({group:e}),i=Ug(e),l=e.panels.map(({id:v})=>v).join(","),u=e.mutableState.defaultLayout;u&&(XE(e.panels,u)||(u=void 0));let c=e.mutableState.layouts[l]??u??lk(i),d=ns({layout:c,panelConstraints:i}),f=e.element.ownerDocument;zi.set(f,(zi.get(f)??0)+1);let h=new Map;return ck(e).forEach(v=>{v.separator&&h.set(v.separator,v.panels)}),bo(e,{defaultLayoutDeferred:s===0,derivedPanelConstraints:i,groupSize:s,layout:d,separatorToPanels:h}),e.separators.forEach(v=>{$e(!o.has(v.id),`Separator ids must be unique; id "${v.id}" was used more than once`),o.add(v.id),v.element.addEventListener("keydown",ak)}),zi.get(f)===1&&(f.addEventListener("contextmenu",Qb,!0),f.addEventListener("dblclick",tk,!0),f.addEventListener("pointerdown",rk,!0),f.addEventListener("pointerleave",ok),f.addEventListener("pointermove",nk),f.addEventListener("pointerout",sk),f.addEventListener("pointerup",ik,!0)),function(){t=!1,zi.set(f,Math.max(0,(zi.get(f)??0)-1)),NE(e),e.separators.forEach(v=>{v.element.removeEventListener("keydown",ak)}),zi.get(f)||(f.removeEventListener("contextmenu",Qb,!0),f.removeEventListener("dblclick",tk,!0),f.removeEventListener("pointerdown",rk,!0),f.removeEventListener("pointerleave",ok),f.removeEventListener("pointermove",nk),f.removeEventListener("pointerout",sk),f.removeEventListener("pointerup",ik,!0)),n.disconnect()}}function QE(){let[e,t]=(0,be.useState)({}),a=(0,be.useCallback)(()=>t({}),[]);return[e,a]}function Gg(e){let t=(0,be.useId)();return`${e??t}`}var is=typeof window<"u"?be.useLayoutEffect:be.useEffect;function bu(e){let t=(0,be.useRef)(e);return is(()=>{t.current=e},[e]),(0,be.useCallback)((...a)=>t.current?.(...a),[t])}function $g(...e){return bu(t=>{e.forEach(a=>{if(a)switch(typeof a){case"function":{a(t);break}case"object":{a.current=t;break}}})})}function Kg(e){let t=(0,be.useRef)({...e});return is(()=>{for(let a in e)t.current[a]=e[a]},[e]),t.current}var Sk=(0,be.createContext)(null);function YE(e,t){let a=(0,be.useRef)({getLayout:()=>({}),setLayout:EE});(0,be.useImperativeHandle)(t,()=>a.current,[]),is(()=>{Object.assign(a.current,wk({groupId:e}))})}function Lk({children:e,className:t,defaultLayout:a,disableCursor:r,disabled:o,elementRef:n,groupRef:s,id:i,onLayoutChange:l,onLayoutChanged:u,orientation:c="horizontal",resizeTargetMinimumSize:d={coarse:20,fine:10},style:f,...h}){let v=(0,be.useRef)({onLayoutChange:{},onLayoutChanged:{}}),x=bu(O=>{os(v.current.onLayoutChange,O)||(v.current.onLayoutChange=O,l?.(O))}),w=bu((O,T)=>{os(v.current.onLayoutChanged,O)||(v.current.onLayoutChanged=O,u?.(O,{isUserInteraction:T}))}),m=Gg(i),p=(0,be.useRef)(null),[g,y]=QE(),L=(0,be.useRef)({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:d,separators:[]}),b=$g(p,n);YE(m,s);let R=bu((O,T)=>{let _=rs(),A=Zb(O),N=mn(O);if(N){let z=!1;return _.state==="active"&&(z=_.hitRegions.some(H=>H.group===A)),{flexGrow:N.layout[T]??1,pointerEvents:z?"none":void 0}}if(a?.[T])return{flexGrow:a?.[T]}}),k=Kg({defaultLayout:a,disableCursor:r}),M=(0,be.useMemo)(()=>({get disableCursor(){return!!k.disableCursor},getPanelStyles:R,id:m,orientation:c,registerPanel:O=>{let T=L.current;return T.panels=Hg(c,[...T.panels,O]),y(),()=>{T.panels=T.panels.filter(_=>_!==O),y()}},registerSeparator:O=>{let T=L.current;return T.separators=Hg(c,[...T.separators,O]),y(),()=>{T.separators=T.separators.filter(_=>_!==O),y()}},updatePanelProps:(O,{disabled:T})=>{let _=L.current.panels.find(z=>z.id===O);_&&(_.panelConstraints.disabled=T);let A=Zb(m),N=mn(m);A&&N&&bo(A,{...N,derivedPanelConstraints:Ug(A)})},updateSeparatorProps:(O,{disabled:T,disableDoubleClick:_})=>{let A=L.current.separators.find(N=>N.id===O);A&&(A.disabled=T,A.disableDoubleClick=_)}}),[R,m,y,c,k]),E=(0,be.useRef)(null);return is(()=>{let O=p.current;if(O===null)return;let T=L.current,_;if(k.defaultLayout!==void 0&&Object.keys(k.defaultLayout).length===T.panels.length){_={};for(let D of T.panels){let ge=k.defaultLayout[D.id];ge!==void 0&&(_[D.id]=ge)}}let A={disabled:!!o,element:O,id:m,mutableState:{defaultLayout:_,disableCursor:!!k.disableCursor,expandedPanelSizes:L.current.lastExpandedPanelSizes,layouts:L.current.layouts},orientation:c,panels:T.panels,resizeTargetMinimumSize:T.resizeTargetMinimumSize,separators:T.separators};E.current=A;let N=ZE(A),{defaultLayoutDeferred:z,derivedPanelConstraints:H,layout:V}=mn(A.id,!0);!z&&H.length>0&&(x(V),w(V,!1));let ae=qg(m,D=>{let{defaultLayoutDeferred:ge,derivedPanelConstraints:ve,layout:j}=D.next;if(ge||ve.length===0)return;let Re=A.panels.map(({id:Se})=>Se).join(",");A.mutableState.layouts[Re]=j,ve.forEach(Se=>{if(Se.collapsible){let{layout:qe}=D.prev??{};if(qe){let J=ea(Se.collapsedSize,j[Se.panelId]),ue=ea(Se.collapsedSize,qe[Se.panelId]);J&&!ue&&(A.mutableState.expandedPanelSizes[Se.panelId]=qe[Se.panelId])}}});let Pe=rs().state!=="active";x(j),Pe&&w(j,D.isUserInteraction)});return()=>{E.current=null,N(),ae()}},[o,m,w,x,c,g,k]),(0,be.useEffect)(()=>{let O=E.current;O&&(O.mutableState.defaultLayout=a,O.mutableState.disableCursor=!!r)}),(0,ji.jsx)(Sk.Provider,{value:M,children:(0,ji.jsx)("div",{...h,className:t,"data-group":!0,"data-testid":m,id:m,ref:b,style:{height:"100%",width:"100%",overflow:"hidden",...f,display:"flex",flexDirection:c==="horizontal"?"row":"column",flexWrap:"nowrap",touchAction:c==="horizontal"?"pan-y":"pan-x"},children:e})})}Lk.displayName="Group";function Xg(){let e=(0,be.useContext)(Sk);return $e(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function JE(e,t){let{id:a}=Xg(),r=(0,be.useRef)({collapse:Bg,expand:Bg,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:Bg});(0,be.useImperativeHandle)(t,()=>r.current,[]),is(()=>{Object.assign(r.current,yk({groupId:a,panelId:e}))})}function Ik({children:e,className:t,collapsedSize:a="0%",collapsible:r=!1,defaultSize:o,disabled:n,elementRef:s,groupResizeBehavior:i="preserve-relative-size",id:l,maxSize:u="100%",minSize:c="0%",onResize:d,panelRef:f,style:h,...v}){let x=!!l,w=Gg(l),m=Kg({disabled:n}),p=(0,be.useRef)(null),g=$g(p,s),{getPanelStyles:y,id:L,orientation:b,registerPanel:R,updatePanelProps:k}=Xg(),M=d!==null,E=bu((A,N,z)=>{d?.(A,l,z)});is(()=>{let A=p.current;if(A!==null){let N={element:A,id:w,idIsStable:x,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:M?E:void 0,panelConstraints:{groupResizeBehavior:i,collapsedSize:a,collapsible:r,defaultSize:o,disabled:m.disabled,maxSize:u,minSize:c}};return R(N)}},[i,a,r,o,M,w,x,u,c,E,R,m]),(0,be.useEffect)(()=>{k(w,{disabled:n})},[n,w,k]),JE(w,f);let O=()=>{let A=y(L,w);if(A)return JSON.stringify(A)},T=(0,be.useSyncExternalStore)(A=>qg(L,A),O,O),_;return T?_=JSON.parse(T):o!==void 0?_={flexGrow:void 0,flexShrink:void 0,flexBasis:o}:_={flexGrow:1},(0,ji.jsx)("div",{...v,"data-disabled":n||void 0,"data-panel":!0,"data-testid":w,id:w,ref:g,style:{...eO,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",..._},children:(0,ji.jsx)("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...h,touchAction:b==="horizontal"?"pan-y":"pan-x"},children:e})})}Ik.displayName="Panel";var eO={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function tO({layout:e,panelConstraints:t,panelId:a,panelIndex:r}){let o,n,s=e[a],i=t.find(l=>l.panelId===a);if(i){let l=i.maxSize,u=i.collapsible?i.collapsedSize:i.minSize,c=[r,r+1];n=ns({layout:ku({delta:u-s,initialLayout:e,panelConstraints:t,pivotIndices:c,prevLayout:e}),panelConstraints:t})[a],o=ns({layout:ku({delta:l-s,initialLayout:e,panelConstraints:t,pivotIndices:c,prevLayout:e}),panelConstraints:t})[a]}return{valueControls:a,valueMax:o,valueMin:n,valueNow:s}}function bk({children:e,className:t,disabled:a,disableDoubleClick:r,elementRef:o,id:n,style:s,...i}){let l=Gg(n),u=Kg({disabled:a,disableDoubleClick:r}),[c,d]=(0,be.useState)({}),[f,h]=(0,be.useState)("inactive"),[v,x]=(0,be.useState)(!1),w=(0,be.useRef)(null),m=$g(w,o),{disableCursor:p,id:g,orientation:y,registerSeparator:L,updateSeparatorProps:b}=Xg(),R=y==="horizontal"?"vertical":"horizontal";is(()=>{let E=w.current;if(E!==null){let O={disabled:u.disabled,disableDoubleClick:u.disableDoubleClick,element:E,id:l},T=L(O),_=_E(N=>{h(N.next.state!=="inactive"&&N.next.hitRegions.some(z=>z.separator===O)?N.next.state:"inactive")}),A=qg(g,N=>{let{derivedPanelConstraints:z,layout:H,separatorToPanels:V}=N.next,ae=V.get(O);if(ae){let D=ae[0],ge=ae.indexOf(D);d(tO({layout:H,panelConstraints:z,panelId:D.id,panelIndex:ge}))}});return()=>{_(),A(),T()}}},[g,l,L,u]),(0,be.useEffect)(()=>{b(l,{disabled:a,disableDoubleClick:r})},[a,r,l,b]);let k;a&&!p&&(k="not-allowed");let M;return a?M="disabled":f==="active"?M="active":v?M="focus":M=f,(0,ji.jsx)("div",{...i,"aria-controls":c.valueControls,"aria-disabled":a||void 0,"aria-orientation":R,"aria-valuemax":c.valueMax,"aria-valuemin":c.valueMin,"aria-valuenow":c.valueNow,children:e,className:t,"data-separator":M,"data-testid":l,id:l,onBlur:()=>x(!1),onFocus:()=>x(!0),ref:m,role:"separator",style:{flexBasis:"auto",cursor:k,...s,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:a?void 0:0})}bk.displayName="Separator";function ke(...e){return Hv(Fu(e))}var oO=fn("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}}),G=jr.forwardRef(function({className:e,variant:t="default",size:a="default",asChild:r=!1,...o},n){let s=r?eu.Root:"button";return(0,X.jsx)(s,{ref:n,"data-slot":"button","data-variant":t,"data-size":a,className:ke(oO({variant:t,size:a,className:e})),...o})});var nO=fn("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function Zg({className:e,variant:t="default",asChild:a=!1,...r}){let o=a?eu.Root:"span";return(0,X.jsx)(o,{"data-slot":"badge","data-variant":t,className:ke(nO({variant:t}),e),...r})}function kk({className:e,size:t="default",...a}){return(0,X.jsx)("div",{"data-slot":"card","data-size":t,className:ke("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...a})}function Rk({className:e,...t}){return(0,X.jsx)("div",{"data-slot":"card-header",className:ke("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",e),...t})}function Pk({className:e,...t}){return(0,X.jsx)("div",{"data-slot":"card-content",className:ke("px-(--card-spacing)",e),...t})}function Dk({className:e,...t}){return(0,X.jsx)("div",{"data-slot":"card-footer",className:ke("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...t})}function hf({className:e,...t}){return(0,X.jsx)(lu.Root,{"data-slot":"checkbox",className:ke("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",e),...t,children:(0,X.jsx)(lu.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none [&>svg]:size-3.5",children:(0,X.jsx)(Qr,{})})})}function mt({...e}){return(0,X.jsx)(mr.Root,{"data-slot":"dialog",...e})}function sO({...e}){return(0,X.jsx)(mr.Portal,{"data-slot":"dialog-portal",...e})}function iO({className:e,...t}){return(0,X.jsx)(mr.Overlay,{"data-slot":"dialog-overlay",className:ke("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function ht({className:e,children:t,showCloseButton:a=!0,...r}){let o=zg();return(0,X.jsxs)(sO,{children:[(0,X.jsx)(iO,{}),(0,X.jsxs)(mr.Content,{"data-slot":"dialog-content",className:ke("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...r,children:[t,a&&(0,X.jsx)(mr.Close,{"data-slot":"dialog-close",asChild:!0,children:(0,X.jsxs)(G,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm",children:[(0,X.jsx)(ro,{}),(0,X.jsx)("span",{className:"sr-only",children:o("close")})]})})]})]})}function gt({className:e,...t}){return(0,X.jsx)("div",{"data-slot":"dialog-header",className:ke("flex flex-col gap-2",e),...t})}function Ot({className:e,showCloseButton:t=!1,children:a,...r}){let o=zg();return(0,X.jsxs)("div",{"data-slot":"dialog-footer",className:ke("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),...r,children:[a,t&&(0,X.jsx)(mr.Close,{asChild:!0,children:(0,X.jsx)(G,{variant:"outline",children:o("close")})})]})}function vt({className:e,...t}){return(0,X.jsx)(mr.Title,{"data-slot":"dialog-title",className:ke("text-base leading-none font-medium",e),...t})}function xt({className:e,...t}){return(0,X.jsx)(mr.Description,{"data-slot":"dialog-description",className:ke("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}function qt({className:e,type:t,...a}){return(0,X.jsx)("input",{type:t,"data-slot":"input",className:ke("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...a})}function Qg({className:e,...t}){return(0,X.jsx)("textarea",{"data-slot":"textarea",className:ke("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...t})}function Tk({className:e,...t}){return(0,X.jsx)("div",{"data-slot":"input-group",role:"group",className:ke("group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",e),...t})}var lO=fn("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]","inline-end":"order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]","block-start":"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2","block-end":"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"}},defaultVariants:{align:"inline-start"}});function Mk({className:e,align:t="inline-start",...a}){return(0,X.jsx)("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:ke(lO({align:t}),e),onClick:r=>{r.target.closest("button")||r.currentTarget.parentElement?.querySelector("input")?.focus()},...a})}var dV=fn("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",sm:"","icon-xs":"size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function _k({className:e,...t}){return(0,X.jsx)(qt,{"data-slot":"input-group-control",className:ke("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent",e),...t})}function gf({...e}){return(0,X.jsx)(zr.Root,{"data-slot":"dropdown-menu",...e})}function vf({...e}){return(0,X.jsx)(zr.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function xf({className:e,align:t="start",sideOffset:a=4,...r}){return(0,X.jsx)(zr.Portal,{children:(0,X.jsx)(zr.Content,{"data-slot":"dropdown-menu-content",sideOffset:a,align:t,className:ke("z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 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 data-[state=closed]:overflow-hidden data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...r})})}function yt({className:e,inset:t,variant:a="default",...r}){return(0,X.jsx)(zr.Item,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":a,className:ke("group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",e),...r})}function Ak({className:e,inset:t,...a}){return(0,X.jsx)(zr.Label,{"data-slot":"dropdown-menu-label","data-inset":t,className:ke("px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7",e),...a})}function Yg({className:e,...t}){return(0,X.jsx)(zr.Separator,{"data-slot":"dropdown-menu-separator",className:ke("-mx-1 my-1 h-px bg-border",e),...t})}function wt({className:e,...t}){return(0,X.jsx)(Zc.Root,{"data-slot":"label",className:ke("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function ba({...e}){return(0,X.jsx)(fa.Root,{"data-slot":"select",...e})}function ka({...e}){return(0,X.jsx)(fa.Value,{"data-slot":"select-value",...e})}function Ra({className:e,size:t="default",children:a,...r}){return(0,X.jsxs)(fa.Trigger,{"data-slot":"select-trigger","data-size":t,className:ke("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[a,(0,X.jsx)(fa.Icon,{asChild:!0,children:(0,X.jsx)(Yr,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function Pa({className:e,children:t,position:a="item-aligned",align:r="center",...o}){return(0,X.jsx)(fa.Portal,{children:(0,X.jsxs)(fa.Content,{"data-slot":"select-content","data-align-trigger":a==="item-aligned",className:ke("relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,align:r,...o,children:[(0,X.jsx)(uO,{}),(0,X.jsx)(fa.Viewport,{"data-position":a,className:ke("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)",a==="popper"&&""),children:t}),(0,X.jsx)(dO,{})]})})}function Pt({className:e,children:t,...a}){return(0,X.jsxs)(fa.Item,{"data-slot":"select-item",className:ke("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...a,children:[(0,X.jsx)("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center",children:(0,X.jsx)(fa.ItemIndicator,{children:(0,X.jsx)(Qr,{className:"pointer-events-none"})})}),(0,X.jsx)(fa.ItemText,{children:t})]})}function uO({className:e,...t}){return(0,X.jsx)(fa.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:ke("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,X.jsx)(Ns,{})})}function dO({className:e,...t}){return(0,X.jsx)(fa.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:ke("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,X.jsx)(Yr,{})})}var cV=3600*24*7;var fV=jr.createContext(null);var pV=fn("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! 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 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_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"}});function Ek({className:e,...t}){return(0,X.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,X.jsx)("table",{"data-slot":"table",className:ke("w-full caption-bottom text-sm",e),...t})})}function Ok({className:e,...t}){return(0,X.jsx)("thead",{"data-slot":"table-header",className:ke("[&_tr]:border-b",e),...t})}function Nk({className:e,...t}){return(0,X.jsx)("tbody",{"data-slot":"table-body",className:ke("[&_tr:last-child]:border-0",e),...t})}function Jg({className:e,...t}){return(0,X.jsx)("tr",{"data-slot":"table-row",className:ke("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...t})}function ls({className:e,...t}){return(0,X.jsx)("th",{"data-slot":"table-head",className:ke("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...t})}function us({className:e,...t}){return(0,X.jsx)("td",{"data-slot":"table-cell",className:ke("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...t})}function yf({className:e,orientation:t="horizontal",...a}){return(0,X.jsx)(ts.Root,{"data-slot":"tabs","data-orientation":t,className:ke("group/tabs flex gap-2 data-horizontal:flex-col",e),...a})}var cO=fn("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function wf({className:e,variant:t="default",...a}){return(0,X.jsx)(ts.List,{"data-slot":"tabs-list","data-variant":t,className:ke(cO({variant:t}),e),...a})}function qi({className:e,...t}){return(0,X.jsx)(ts.Trigger,{"data-slot":"tabs-trigger",className:ke("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...t})}function Wi({className:e,...t}){return(0,X.jsx)(ts.Content,{"data-slot":"tabs-content",className:ke("flex-1 text-sm outline-none",e),...t})}var mV=fn("group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-muted"},size:{default:"h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",sm:"h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2"}},defaultVariants:{variant:"default",size:"default"}});var hV=jr.createContext({size:"default",variant:"default",spacing:2,orientation:"horizontal"});var I={};_o(I,{BRAND:()=>FO,DIRTY:()=>ds,EMPTY_PATH:()=>hO,INVALID:()=>le,NEVER:()=>CN,OK:()=>ta,ParseStatus:()=>Wt,Schema:()=>Le,ZodAny:()=>vn,ZodArray:()=>Do,ZodBigInt:()=>fs,ZodBoolean:()=>ps,ZodBranded:()=>Pu,ZodCatch:()=>Is,ZodDate:()=>ms,ZodDefault:()=>Ls,ZodDiscriminatedUnion:()=>Lf,ZodEffects:()=>Ja,ZodEnum:()=>Cs,ZodError:()=>Da,ZodFirstPartyTypeKind:()=>de,ZodFunction:()=>bf,ZodIntersection:()=>xs,ZodIssueCode:()=>B,ZodLazy:()=>ys,ZodLiteral:()=>ws,ZodMap:()=>Qi,ZodNaN:()=>Ji,ZodNativeEnum:()=>Ss,ZodNever:()=>Cr,ZodNull:()=>gs,ZodNullable:()=>Wr,ZodNumber:()=>cs,ZodObject:()=>Ta,ZodOptional:()=>Qa,ZodParsedType:()=>K,ZodPipeline:()=>Du,ZodPromise:()=>xn,ZodReadonly:()=>bs,ZodRecord:()=>If,ZodSchema:()=>Le,ZodSet:()=>Yi,ZodString:()=>gn,ZodSymbol:()=>Xi,ZodTransformer:()=>Ja,ZodTuple:()=>qr,ZodType:()=>Le,ZodUndefined:()=>hs,ZodUnion:()=>vs,ZodUnknown:()=>Po,ZodVoid:()=>Zi,addIssueToContext:()=>W,any:()=>GO,array:()=>ZO,bigint:()=>HO,boolean:()=>$k,coerce:()=>wN,custom:()=>qk,date:()=>jO,datetimeRegex:()=>jk,defaultErrorMap:()=>ko,discriminatedUnion:()=>eN,effect:()=>fN,enum:()=>uN,function:()=>sN,getErrorMap:()=>Gi,getParsedType:()=>Vr,instanceof:()=>BO,intersection:()=>tN,isAborted:()=>Cf,isAsync:()=>$i,isDirty:()=>Sf,isValid:()=>hn,late:()=>zO,lazy:()=>iN,literal:()=>lN,makeIssue:()=>Ru,map:()=>oN,nan:()=>UO,nativeEnum:()=>dN,never:()=>KO,null:()=>WO,nullable:()=>mN,number:()=>Gk,object:()=>QO,objectUtil:()=>ev,oboolean:()=>yN,onumber:()=>xN,optional:()=>pN,ostring:()=>vN,pipeline:()=>gN,preprocess:()=>hN,promise:()=>cN,quotelessJson:()=>fO,record:()=>rN,set:()=>nN,setErrorMap:()=>mO,strictObject:()=>YO,string:()=>Wk,symbol:()=>VO,transformer:()=>fN,tuple:()=>aN,undefined:()=>qO,union:()=>JO,unknown:()=>$O,util:()=>Me,void:()=>XO});var Me;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function a(o){throw new Error}e.assertNever=a,e.arrayToEnum=o=>{let n={};for(let s of o)n[s]=s;return n},e.getValidEnumValues=o=>{let n=e.objectKeys(o).filter(i=>typeof o[o[i]]!="number"),s={};for(let i of n)s[i]=o[i];return e.objectValues(s)},e.objectValues=o=>e.objectKeys(o).map(function(n){return o[n]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{let n=[];for(let s in o)Object.prototype.hasOwnProperty.call(o,s)&&n.push(s);return n},e.find=(o,n)=>{for(let s of o)if(n(s))return s},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function r(o,n=" | "){return o.map(s=>typeof s=="string"?`'${s}'`:s).join(n)}e.joinValues=r,e.jsonStringifyReplacer=(o,n)=>typeof n=="bigint"?n.toString():n})(Me||(Me={}));var ev;(function(e){e.mergeShapes=(t,a)=>({...t,...a})})(ev||(ev={}));var K=Me.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Vr=e=>{switch(typeof e){case"undefined":return K.undefined;case"string":return K.string;case"number":return Number.isNaN(e)?K.nan:K.number;case"boolean":return K.boolean;case"function":return K.function;case"bigint":return K.bigint;case"symbol":return K.symbol;case"object":return Array.isArray(e)?K.array:e===null?K.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?K.promise:typeof Map<"u"&&e instanceof Map?K.map:typeof Set<"u"&&e instanceof Set?K.set:typeof Date<"u"&&e instanceof Date?K.date:K.object;default:return K.unknown}};var B=Me.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),fO=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),Da=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.name="ZodError",this.issues=t}format(t){let a=t||function(n){return n.message},r={_errors:[]},o=n=>{for(let s of n.issues)if(s.code==="invalid_union")s.unionErrors.map(o);else if(s.code==="invalid_return_type")o(s.returnTypeError);else if(s.code==="invalid_arguments")o(s.argumentsError);else if(s.path.length===0)r._errors.push(a(s));else{let i=r,l=0;for(;l<s.path.length;){let u=s.path[l];l===s.path.length-1?(i[u]=i[u]||{_errors:[]},i[u]._errors.push(a(s))):i[u]=i[u]||{_errors:[]},i=i[u],l++}}};return o(this),r}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Me.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=a=>a.message){let a={},r=[];for(let o of this.issues)o.path.length>0?(a[o.path[0]]=a[o.path[0]]||[],a[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:a}}get formErrors(){return this.flatten()}};Da.create=e=>new Da(e);var pO=(e,t)=>{let a;switch(e.code){case B.invalid_type:e.received===K.undefined?a="Required":a=`Expected ${e.expected}, received ${e.received}`;break;case B.invalid_literal:a=`Invalid literal value, expected ${JSON.stringify(e.expected,Me.jsonStringifyReplacer)}`;break;case B.unrecognized_keys:a=`Unrecognized key(s) in object: ${Me.joinValues(e.keys,", ")}`;break;case B.invalid_union:a="Invalid input";break;case B.invalid_union_discriminator:a=`Invalid discriminator value. Expected ${Me.joinValues(e.options)}`;break;case B.invalid_enum_value:a=`Invalid enum value. Expected ${Me.joinValues(e.options)}, received '${e.received}'`;break;case B.invalid_arguments:a="Invalid function arguments";break;case B.invalid_return_type:a="Invalid function return type";break;case B.invalid_date:a="Invalid date";break;case B.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(a=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(a=`${a} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?a=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?a=`Invalid input: must end with "${e.validation.endsWith}"`:Me.assertNever(e.validation):e.validation!=="regex"?a=`Invalid ${e.validation}`:a="Invalid";break;case B.too_small:e.type==="array"?a=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?a=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?a=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?a=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:a="Invalid input";break;case B.too_big:e.type==="array"?a=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?a=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?a=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?a=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?a=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:a="Invalid input";break;case B.custom:a="Invalid input";break;case B.invalid_intersection_types:a="Intersection results could not be merged";break;case B.not_multiple_of:a=`Number must be a multiple of ${e.multipleOf}`;break;case B.not_finite:a="Number must be finite";break;default:a=t.defaultError,Me.assertNever(e)}return{message:a}},ko=pO;var Fk=ko;function mO(e){Fk=e}function Gi(){return Fk}var Ru=e=>{let{data:t,path:a,errorMaps:r,issueData:o}=e,n=[...a,...o.path||[]],s={...o,path:n};if(o.message!==void 0)return{...o,path:n,message:o.message};let i="",l=r.filter(u=>!!u).slice().reverse();for(let u of l)i=u(s,{data:t,defaultError:i}).message;return{...o,path:n,message:i}},hO=[];function W(e,t){let a=Gi(),r=Ru({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,a,a===ko?void 0:ko].filter(o=>!!o)});e.common.issues.push(r)}var Wt=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,a){let r=[];for(let o of a){if(o.status==="aborted")return le;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,a){let r=[];for(let o of a){let n=await o.key,s=await o.value;r.push({key:n,value:s})}return e.mergeObjectSync(t,r)}static mergeObjectSync(t,a){let r={};for(let o of a){let{key:n,value:s}=o;if(n.status==="aborted"||s.status==="aborted")return le;n.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),n.value!=="__proto__"&&(typeof s.value<"u"||o.alwaysSet)&&(r[n.value]=s.value)}return{status:t.value,value:r}}},le=Object.freeze({status:"aborted"}),ds=e=>({status:"dirty",value:e}),ta=e=>({status:"valid",value:e}),Cf=e=>e.status==="aborted",Sf=e=>e.status==="dirty",hn=e=>e.status==="valid",$i=e=>typeof Promise<"u"&&e instanceof Promise;var te;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(te||(te={}));var Ya=class{constructor(t,a,r,o){this._cachedPath=[],this.parent=t,this.data=a,this._path=r,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},zk=(e,t)=>{if(hn(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let a=new Da(e.common.issues);return this._error=a,this._error}}};function ye(e){if(!e)return{};let{errorMap:t,invalid_type_error:a,required_error:r,description:o}=e;if(t&&(a||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(s,i)=>{let{message:l}=e;return s.code==="invalid_enum_value"?{message:l??i.defaultError}:typeof i.data>"u"?{message:l??r??i.defaultError}:s.code!=="invalid_type"?{message:i.defaultError}:{message:l??a??i.defaultError}},description:o}}var Le=class{get description(){return this._def.description}_getType(t){return Vr(t.data)}_getOrReturnCtx(t,a){return a||{common:t.parent.common,data:t.data,parsedType:Vr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Wt,ctx:{common:t.parent.common,data:t.data,parsedType:Vr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let a=this._parse(t);if($i(a))throw new Error("Synchronous parse encountered promise.");return a}_parseAsync(t){let a=this._parse(t);return Promise.resolve(a)}parse(t,a){let r=this.safeParse(t,a);if(r.success)return r.data;throw r.error}safeParse(t,a){let r={common:{issues:[],async:a?.async??!1,contextualErrorMap:a?.errorMap},path:a?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Vr(t)},o=this._parseSync({data:t,path:r.path,parent:r});return zk(r,o)}"~validate"(t){let a={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Vr(t)};if(!this["~standard"].async)try{let r=this._parseSync({data:t,path:[],parent:a});return hn(r)?{value:r.value}:{issues:a.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),a.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:a}).then(r=>hn(r)?{value:r.value}:{issues:a.common.issues})}async parseAsync(t,a){let r=await this.safeParseAsync(t,a);if(r.success)return r.data;throw r.error}async safeParseAsync(t,a){let r={common:{issues:[],contextualErrorMap:a?.errorMap,async:!0},path:a?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Vr(t)},o=this._parse({data:t,path:r.path,parent:r}),n=await($i(o)?o:Promise.resolve(o));return zk(r,n)}refine(t,a){let r=o=>typeof a=="string"||typeof a>"u"?{message:a}:typeof a=="function"?a(o):a;return this._refinement((o,n)=>{let s=t(o),i=()=>n.addIssue({code:B.custom,...r(o)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(i(),!1)):s?!0:(i(),!1)})}refinement(t,a){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof a=="function"?a(r,o):a),!1))}_refinement(t){return new Ja({schema:this,typeName:de.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:a=>this["~validate"](a)}}optional(){return Qa.create(this,this._def)}nullable(){return Wr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Do.create(this)}promise(){return xn.create(this,this._def)}or(t){return vs.create([this,t],this._def)}and(t){return xs.create(this,t,this._def)}transform(t){return new Ja({...ye(this._def),schema:this,typeName:de.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let a=typeof t=="function"?t:()=>t;return new Ls({...ye(this._def),innerType:this,defaultValue:a,typeName:de.ZodDefault})}brand(){return new Pu({typeName:de.ZodBranded,type:this,...ye(this._def)})}catch(t){let a=typeof t=="function"?t:()=>t;return new Is({...ye(this._def),innerType:this,catchValue:a,typeName:de.ZodCatch})}describe(t){let a=this.constructor;return new a({...this._def,description:t})}pipe(t){return Du.create(this,t)}readonly(){return bs.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},gO=/^c[^\s-]{8,}$/i,vO=/^[0-9a-z]+$/,xO=/^[0-9A-HJKMNP-TV-Z]{26}$/i,yO=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,wO=/^[a-z0-9_-]{21}$/i,CO=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,SO=/^[-+]?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)?)??$/,LO=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,IO="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",tv,bO=/^(?:(?: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])$/,kO=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,RO=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,PO=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,DO=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,TO=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Uk="((\\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])))",MO=new RegExp(`^${Uk}$`);function Hk(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let a=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${a}`}function _O(e){return new RegExp(`^${Hk(e)}$`)}function jk(e){let t=`${Uk}T${Hk(e)}`,a=[];return a.push(e.local?"Z?":"Z"),e.offset&&a.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${a.join("|")})`,new RegExp(`^${t}$`)}function AO(e,t){return!!((t==="v4"||!t)&&bO.test(e)||(t==="v6"||!t)&&RO.test(e))}function EO(e,t){if(!CO.test(e))return!1;try{let[a]=e.split("."),r=a.replace(/-/g,"+").replace(/_/g,"/").padEnd(a.length+(4-a.length%4)%4,"="),o=JSON.parse(atob(r));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function OO(e,t){return!!((t==="v4"||!t)&&kO.test(e)||(t==="v6"||!t)&&PO.test(e))}var gn=class e extends Le{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==K.string){let n=this._getOrReturnCtx(t);return W(n,{code:B.invalid_type,expected:K.string,received:n.parsedType}),le}let r=new Wt,o;for(let n of this._def.checks)if(n.kind==="min")t.data.length<n.value&&(o=this._getOrReturnCtx(t,o),W(o,{code:B.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),r.dirty());else if(n.kind==="max")t.data.length>n.value&&(o=this._getOrReturnCtx(t,o),W(o,{code:B.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),r.dirty());else if(n.kind==="length"){let s=t.data.length>n.value,i=t.data.length<n.value;(s||i)&&(o=this._getOrReturnCtx(t,o),s?W(o,{code:B.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):i&&W(o,{code:B.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),r.dirty())}else if(n.kind==="email")LO.test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"email",code:B.invalid_string,message:n.message}),r.dirty());else if(n.kind==="emoji")tv||(tv=new RegExp(IO,"u")),tv.test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"emoji",code:B.invalid_string,message:n.message}),r.dirty());else if(n.kind==="uuid")yO.test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"uuid",code:B.invalid_string,message:n.message}),r.dirty());else if(n.kind==="nanoid")wO.test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"nanoid",code:B.invalid_string,message:n.message}),r.dirty());else if(n.kind==="cuid")gO.test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"cuid",code:B.invalid_string,message:n.message}),r.dirty());else if(n.kind==="cuid2")vO.test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"cuid2",code:B.invalid_string,message:n.message}),r.dirty());else if(n.kind==="ulid")xO.test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"ulid",code:B.invalid_string,message:n.message}),r.dirty());else if(n.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),W(o,{validation:"url",code:B.invalid_string,message:n.message}),r.dirty()}else n.kind==="regex"?(n.regex.lastIndex=0,n.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"regex",code:B.invalid_string,message:n.message}),r.dirty())):n.kind==="trim"?t.data=t.data.trim():n.kind==="includes"?t.data.includes(n.value,n.position)||(o=this._getOrReturnCtx(t,o),W(o,{code:B.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),r.dirty()):n.kind==="toLowerCase"?t.data=t.data.toLowerCase():n.kind==="toUpperCase"?t.data=t.data.toUpperCase():n.kind==="startsWith"?t.data.startsWith(n.value)||(o=this._getOrReturnCtx(t,o),W(o,{code:B.invalid_string,validation:{startsWith:n.value},message:n.message}),r.dirty()):n.kind==="endsWith"?t.data.endsWith(n.value)||(o=this._getOrReturnCtx(t,o),W(o,{code:B.invalid_string,validation:{endsWith:n.value},message:n.message}),r.dirty()):n.kind==="datetime"?jk(n).test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{code:B.invalid_string,validation:"datetime",message:n.message}),r.dirty()):n.kind==="date"?MO.test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{code:B.invalid_string,validation:"date",message:n.message}),r.dirty()):n.kind==="time"?_O(n).test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{code:B.invalid_string,validation:"time",message:n.message}),r.dirty()):n.kind==="duration"?SO.test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"duration",code:B.invalid_string,message:n.message}),r.dirty()):n.kind==="ip"?AO(t.data,n.version)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"ip",code:B.invalid_string,message:n.message}),r.dirty()):n.kind==="jwt"?EO(t.data,n.alg)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"jwt",code:B.invalid_string,message:n.message}),r.dirty()):n.kind==="cidr"?OO(t.data,n.version)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"cidr",code:B.invalid_string,message:n.message}),r.dirty()):n.kind==="base64"?DO.test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"base64",code:B.invalid_string,message:n.message}),r.dirty()):n.kind==="base64url"?TO.test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"base64url",code:B.invalid_string,message:n.message}),r.dirty()):Me.assertNever(n);return{status:r.value,value:t.data}}_regex(t,a,r){return this.refinement(o=>t.test(o),{validation:a,code:B.invalid_string,...te.errToObj(r)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...te.errToObj(t)})}url(t){return this._addCheck({kind:"url",...te.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...te.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...te.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...te.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...te.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...te.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...te.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...te.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...te.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...te.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...te.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...te.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...te.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...te.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...te.errToObj(t)})}regex(t,a){return this._addCheck({kind:"regex",regex:t,...te.errToObj(a)})}includes(t,a){return this._addCheck({kind:"includes",value:t,position:a?.position,...te.errToObj(a?.message)})}startsWith(t,a){return this._addCheck({kind:"startsWith",value:t,...te.errToObj(a)})}endsWith(t,a){return this._addCheck({kind:"endsWith",value:t,...te.errToObj(a)})}min(t,a){return this._addCheck({kind:"min",value:t,...te.errToObj(a)})}max(t,a){return this._addCheck({kind:"max",value:t,...te.errToObj(a)})}length(t,a){return this._addCheck({kind:"length",value:t,...te.errToObj(a)})}nonempty(t){return this.min(1,te.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t}get maxLength(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t}};gn.create=e=>new gn({checks:[],typeName:de.ZodString,coerce:e?.coerce??!1,...ye(e)});function NO(e,t){let a=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=a>r?a:r,n=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return n%s/10**o}var cs=class e extends Le{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==K.number){let n=this._getOrReturnCtx(t);return W(n,{code:B.invalid_type,expected:K.number,received:n.parsedType}),le}let r,o=new Wt;for(let n of this._def.checks)n.kind==="int"?Me.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:B.invalid_type,expected:"integer",received:"float",message:n.message}),o.dirty()):n.kind==="min"?(n.inclusive?t.data<n.value:t.data<=n.value)&&(r=this._getOrReturnCtx(t,r),W(r,{code:B.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),o.dirty()):n.kind==="max"?(n.inclusive?t.data>n.value:t.data>=n.value)&&(r=this._getOrReturnCtx(t,r),W(r,{code:B.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),o.dirty()):n.kind==="multipleOf"?NO(t.data,n.value)!==0&&(r=this._getOrReturnCtx(t,r),W(r,{code:B.not_multiple_of,multipleOf:n.value,message:n.message}),o.dirty()):n.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:B.not_finite,message:n.message}),o.dirty()):Me.assertNever(n);return{status:o.value,value:t.data}}gte(t,a){return this.setLimit("min",t,!0,te.toString(a))}gt(t,a){return this.setLimit("min",t,!1,te.toString(a))}lte(t,a){return this.setLimit("max",t,!0,te.toString(a))}lt(t,a){return this.setLimit("max",t,!1,te.toString(a))}setLimit(t,a,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:a,inclusive:r,message:te.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:te.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:te.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:te.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:te.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:te.toString(t)})}multipleOf(t,a){return this._addCheck({kind:"multipleOf",value:t,message:te.toString(a)})}finite(t){return this._addCheck({kind:"finite",message:te.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:te.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:te.toString(t)})}get minValue(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t}get maxValue(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Me.isInteger(t.value))}get isFinite(){let t=null,a=null;for(let r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(a===null||r.value>a)&&(a=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(a)&&Number.isFinite(t)}};cs.create=e=>new cs({checks:[],typeName:de.ZodNumber,coerce:e?.coerce||!1,...ye(e)});var fs=class e extends Le{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==K.bigint)return this._getInvalidInput(t);let r,o=new Wt;for(let n of this._def.checks)n.kind==="min"?(n.inclusive?t.data<n.value:t.data<=n.value)&&(r=this._getOrReturnCtx(t,r),W(r,{code:B.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),o.dirty()):n.kind==="max"?(n.inclusive?t.data>n.value:t.data>=n.value)&&(r=this._getOrReturnCtx(t,r),W(r,{code:B.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),o.dirty()):n.kind==="multipleOf"?t.data%n.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),W(r,{code:B.not_multiple_of,multipleOf:n.value,message:n.message}),o.dirty()):Me.assertNever(n);return{status:o.value,value:t.data}}_getInvalidInput(t){let a=this._getOrReturnCtx(t);return W(a,{code:B.invalid_type,expected:K.bigint,received:a.parsedType}),le}gte(t,a){return this.setLimit("min",t,!0,te.toString(a))}gt(t,a){return this.setLimit("min",t,!1,te.toString(a))}lte(t,a){return this.setLimit("max",t,!0,te.toString(a))}lt(t,a){return this.setLimit("max",t,!1,te.toString(a))}setLimit(t,a,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:a,inclusive:r,message:te.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:te.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:te.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:te.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:te.toString(t)})}multipleOf(t,a){return this._addCheck({kind:"multipleOf",value:t,message:te.toString(a)})}get minValue(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t}get maxValue(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t}};fs.create=e=>new fs({checks:[],typeName:de.ZodBigInt,coerce:e?.coerce??!1,...ye(e)});var ps=class extends Le{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==K.boolean){let r=this._getOrReturnCtx(t);return W(r,{code:B.invalid_type,expected:K.boolean,received:r.parsedType}),le}return ta(t.data)}};ps.create=e=>new ps({typeName:de.ZodBoolean,coerce:e?.coerce||!1,...ye(e)});var ms=class e extends Le{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==K.date){let n=this._getOrReturnCtx(t);return W(n,{code:B.invalid_type,expected:K.date,received:n.parsedType}),le}if(Number.isNaN(t.data.getTime())){let n=this._getOrReturnCtx(t);return W(n,{code:B.invalid_date}),le}let r=new Wt,o;for(let n of this._def.checks)n.kind==="min"?t.data.getTime()<n.value&&(o=this._getOrReturnCtx(t,o),W(o,{code:B.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):n.kind==="max"?t.data.getTime()>n.value&&(o=this._getOrReturnCtx(t,o),W(o,{code:B.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):Me.assertNever(n);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,a){return this._addCheck({kind:"min",value:t.getTime(),message:te.toString(a)})}max(t,a){return this._addCheck({kind:"max",value:t.getTime(),message:te.toString(a)})}get minDate(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t!=null?new Date(t):null}};ms.create=e=>new ms({checks:[],coerce:e?.coerce||!1,typeName:de.ZodDate,...ye(e)});var Xi=class extends Le{_parse(t){if(this._getType(t)!==K.symbol){let r=this._getOrReturnCtx(t);return W(r,{code:B.invalid_type,expected:K.symbol,received:r.parsedType}),le}return ta(t.data)}};Xi.create=e=>new Xi({typeName:de.ZodSymbol,...ye(e)});var hs=class extends Le{_parse(t){if(this._getType(t)!==K.undefined){let r=this._getOrReturnCtx(t);return W(r,{code:B.invalid_type,expected:K.undefined,received:r.parsedType}),le}return ta(t.data)}};hs.create=e=>new hs({typeName:de.ZodUndefined,...ye(e)});var gs=class extends Le{_parse(t){if(this._getType(t)!==K.null){let r=this._getOrReturnCtx(t);return W(r,{code:B.invalid_type,expected:K.null,received:r.parsedType}),le}return ta(t.data)}};gs.create=e=>new gs({typeName:de.ZodNull,...ye(e)});var vn=class extends Le{constructor(){super(...arguments),this._any=!0}_parse(t){return ta(t.data)}};vn.create=e=>new vn({typeName:de.ZodAny,...ye(e)});var Po=class extends Le{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ta(t.data)}};Po.create=e=>new Po({typeName:de.ZodUnknown,...ye(e)});var Cr=class extends Le{_parse(t){let a=this._getOrReturnCtx(t);return W(a,{code:B.invalid_type,expected:K.never,received:a.parsedType}),le}};Cr.create=e=>new Cr({typeName:de.ZodNever,...ye(e)});var Zi=class extends Le{_parse(t){if(this._getType(t)!==K.undefined){let r=this._getOrReturnCtx(t);return W(r,{code:B.invalid_type,expected:K.void,received:r.parsedType}),le}return ta(t.data)}};Zi.create=e=>new Zi({typeName:de.ZodVoid,...ye(e)});var Do=class e extends Le{_parse(t){let{ctx:a,status:r}=this._processInputParams(t),o=this._def;if(a.parsedType!==K.array)return W(a,{code:B.invalid_type,expected:K.array,received:a.parsedType}),le;if(o.exactLength!==null){let s=a.data.length>o.exactLength.value,i=a.data.length<o.exactLength.value;(s||i)&&(W(a,{code:s?B.too_big:B.too_small,minimum:i?o.exactLength.value:void 0,maximum:s?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&a.data.length<o.minLength.value&&(W(a,{code:B.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&a.data.length>o.maxLength.value&&(W(a,{code:B.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),a.common.async)return Promise.all([...a.data].map((s,i)=>o.type._parseAsync(new Ya(a,s,a.path,i)))).then(s=>Wt.mergeArray(r,s));let n=[...a.data].map((s,i)=>o.type._parseSync(new Ya(a,s,a.path,i)));return Wt.mergeArray(r,n)}get element(){return this._def.type}min(t,a){return new e({...this._def,minLength:{value:t,message:te.toString(a)}})}max(t,a){return new e({...this._def,maxLength:{value:t,message:te.toString(a)}})}length(t,a){return new e({...this._def,exactLength:{value:t,message:te.toString(a)}})}nonempty(t){return this.min(1,t)}};Do.create=(e,t)=>new Do({type:e,minLength:null,maxLength:null,exactLength:null,typeName:de.ZodArray,...ye(t)});function Ki(e){if(e instanceof Ta){let t={};for(let a in e.shape){let r=e.shape[a];t[a]=Qa.create(Ki(r))}return new Ta({...e._def,shape:()=>t})}else return e instanceof Do?new Do({...e._def,type:Ki(e.element)}):e instanceof Qa?Qa.create(Ki(e.unwrap())):e instanceof Wr?Wr.create(Ki(e.unwrap())):e instanceof qr?qr.create(e.items.map(t=>Ki(t))):e}var Ta=class e extends Le{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),a=Me.objectKeys(t);return this._cached={shape:t,keys:a},this._cached}_parse(t){if(this._getType(t)!==K.object){let u=this._getOrReturnCtx(t);return W(u,{code:B.invalid_type,expected:K.object,received:u.parsedType}),le}let{status:r,ctx:o}=this._processInputParams(t),{shape:n,keys:s}=this._getCached(),i=[];if(!(this._def.catchall instanceof Cr&&this._def.unknownKeys==="strip"))for(let u in o.data)s.includes(u)||i.push(u);let l=[];for(let u of s){let c=n[u],d=o.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Ya(o,d,o.path,u)),alwaysSet:u in o.data})}if(this._def.catchall instanceof Cr){let u=this._def.unknownKeys;if(u==="passthrough")for(let c of i)l.push({key:{status:"valid",value:c},value:{status:"valid",value:o.data[c]}});else if(u==="strict")i.length>0&&(W(o,{code:B.unrecognized_keys,keys:i}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let c of i){let d=o.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Ya(o,d,o.path,c)),alwaysSet:c in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let u=[];for(let c of l){let d=await c.key,f=await c.value;u.push({key:d,value:f,alwaysSet:c.alwaysSet})}return u}).then(u=>Wt.mergeObjectSync(r,u)):Wt.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return te.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(a,r)=>{let o=this._def.errorMap?.(a,r).message??r.defaultError;return a.code==="unrecognized_keys"?{message:te.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:de.ZodObject})}setKey(t,a){return this.augment({[t]:a})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let a={};for(let r of Me.objectKeys(t))t[r]&&this.shape[r]&&(a[r]=this.shape[r]);return new e({...this._def,shape:()=>a})}omit(t){let a={};for(let r of Me.objectKeys(this.shape))t[r]||(a[r]=this.shape[r]);return new e({...this._def,shape:()=>a})}deepPartial(){return Ki(this)}partial(t){let a={};for(let r of Me.objectKeys(this.shape)){let o=this.shape[r];t&&!t[r]?a[r]=o:a[r]=o.optional()}return new e({...this._def,shape:()=>a})}required(t){let a={};for(let r of Me.objectKeys(this.shape))if(t&&!t[r])a[r]=this.shape[r];else{let n=this.shape[r];for(;n instanceof Qa;)n=n._def.innerType;a[r]=n}return new e({...this._def,shape:()=>a})}keyof(){return Vk(Me.objectKeys(this.shape))}};Ta.create=(e,t)=>new Ta({shape:()=>e,unknownKeys:"strip",catchall:Cr.create(),typeName:de.ZodObject,...ye(t)});Ta.strictCreate=(e,t)=>new Ta({shape:()=>e,unknownKeys:"strict",catchall:Cr.create(),typeName:de.ZodObject,...ye(t)});Ta.lazycreate=(e,t)=>new Ta({shape:e,unknownKeys:"strip",catchall:Cr.create(),typeName:de.ZodObject,...ye(t)});var vs=class extends Le{_parse(t){let{ctx:a}=this._processInputParams(t),r=this._def.options;function o(n){for(let i of n)if(i.result.status==="valid")return i.result;for(let i of n)if(i.result.status==="dirty")return a.common.issues.push(...i.ctx.common.issues),i.result;let s=n.map(i=>new Da(i.ctx.common.issues));return W(a,{code:B.invalid_union,unionErrors:s}),le}if(a.common.async)return Promise.all(r.map(async n=>{let s={...a,common:{...a.common,issues:[]},parent:null};return{result:await n._parseAsync({data:a.data,path:a.path,parent:s}),ctx:s}})).then(o);{let n,s=[];for(let l of r){let u={...a,common:{...a.common,issues:[]},parent:null},c=l._parseSync({data:a.data,path:a.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!n&&(n={result:c,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(n)return a.common.issues.push(...n.ctx.common.issues),n.result;let i=s.map(l=>new Da(l));return W(a,{code:B.invalid_union,unionErrors:i}),le}}get options(){return this._def.options}};vs.create=(e,t)=>new vs({options:e,typeName:de.ZodUnion,...ye(t)});var Ro=e=>e instanceof ys?Ro(e.schema):e instanceof Ja?Ro(e.innerType()):e instanceof ws?[e.value]:e instanceof Cs?e.options:e instanceof Ss?Me.objectValues(e.enum):e instanceof Ls?Ro(e._def.innerType):e instanceof hs?[void 0]:e instanceof gs?[null]:e instanceof Qa?[void 0,...Ro(e.unwrap())]:e instanceof Wr?[null,...Ro(e.unwrap())]:e instanceof Pu||e instanceof bs?Ro(e.unwrap()):e instanceof Is?Ro(e._def.innerType):[],Lf=class e extends Le{_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==K.object)return W(a,{code:B.invalid_type,expected:K.object,received:a.parsedType}),le;let r=this.discriminator,o=a.data[r],n=this.optionsMap.get(o);return n?a.common.async?n._parseAsync({data:a.data,path:a.path,parent:a}):n._parseSync({data:a.data,path:a.path,parent:a}):(W(a,{code:B.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),le)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,a,r){let o=new Map;for(let n of a){let s=Ro(n.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let i of s){if(o.has(i))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(i)}`);o.set(i,n)}}return new e({typeName:de.ZodDiscriminatedUnion,discriminator:t,options:a,optionsMap:o,...ye(r)})}};function av(e,t){let a=Vr(e),r=Vr(t);if(e===t)return{valid:!0,data:e};if(a===K.object&&r===K.object){let o=Me.objectKeys(t),n=Me.objectKeys(e).filter(i=>o.indexOf(i)!==-1),s={...e,...t};for(let i of n){let l=av(e[i],t[i]);if(!l.valid)return{valid:!1};s[i]=l.data}return{valid:!0,data:s}}else if(a===K.array&&r===K.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let n=0;n<e.length;n++){let s=e[n],i=t[n],l=av(s,i);if(!l.valid)return{valid:!1};o.push(l.data)}return{valid:!0,data:o}}else return a===K.date&&r===K.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var xs=class extends Le{_parse(t){let{status:a,ctx:r}=this._processInputParams(t),o=(n,s)=>{if(Cf(n)||Cf(s))return le;let i=av(n.value,s.value);return i.valid?((Sf(n)||Sf(s))&&a.dirty(),{status:a.value,value:i.data}):(W(r,{code:B.invalid_intersection_types}),le)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([n,s])=>o(n,s)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};xs.create=(e,t,a)=>new xs({left:e,right:t,typeName:de.ZodIntersection,...ye(a)});var qr=class e extends Le{_parse(t){let{status:a,ctx:r}=this._processInputParams(t);if(r.parsedType!==K.array)return W(r,{code:B.invalid_type,expected:K.array,received:r.parsedType}),le;if(r.data.length<this._def.items.length)return W(r,{code:B.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),le;!this._def.rest&&r.data.length>this._def.items.length&&(W(r,{code:B.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),a.dirty());let n=[...r.data].map((s,i)=>{let l=this._def.items[i]||this._def.rest;return l?l._parse(new Ya(r,s,r.path,i)):null}).filter(s=>!!s);return r.common.async?Promise.all(n).then(s=>Wt.mergeArray(a,s)):Wt.mergeArray(a,n)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};qr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new qr({items:e,typeName:de.ZodTuple,rest:null,...ye(t)})};var If=class e extends Le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:a,ctx:r}=this._processInputParams(t);if(r.parsedType!==K.object)return W(r,{code:B.invalid_type,expected:K.object,received:r.parsedType}),le;let o=[],n=this._def.keyType,s=this._def.valueType;for(let i in r.data)o.push({key:n._parse(new Ya(r,i,r.path,i)),value:s._parse(new Ya(r,r.data[i],r.path,i)),alwaysSet:i in r.data});return r.common.async?Wt.mergeObjectAsync(a,o):Wt.mergeObjectSync(a,o)}get element(){return this._def.valueType}static create(t,a,r){return a instanceof Le?new e({keyType:t,valueType:a,typeName:de.ZodRecord,...ye(r)}):new e({keyType:gn.create(),valueType:t,typeName:de.ZodRecord,...ye(a)})}},Qi=class extends Le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:a,ctx:r}=this._processInputParams(t);if(r.parsedType!==K.map)return W(r,{code:B.invalid_type,expected:K.map,received:r.parsedType}),le;let o=this._def.keyType,n=this._def.valueType,s=[...r.data.entries()].map(([i,l],u)=>({key:o._parse(new Ya(r,i,r.path,[u,"key"])),value:n._parse(new Ya(r,l,r.path,[u,"value"]))}));if(r.common.async){let i=new Map;return Promise.resolve().then(async()=>{for(let l of s){let u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return le;(u.status==="dirty"||c.status==="dirty")&&a.dirty(),i.set(u.value,c.value)}return{status:a.value,value:i}})}else{let i=new Map;for(let l of s){let u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return le;(u.status==="dirty"||c.status==="dirty")&&a.dirty(),i.set(u.value,c.value)}return{status:a.value,value:i}}}};Qi.create=(e,t,a)=>new Qi({valueType:t,keyType:e,typeName:de.ZodMap,...ye(a)});var Yi=class e extends Le{_parse(t){let{status:a,ctx:r}=this._processInputParams(t);if(r.parsedType!==K.set)return W(r,{code:B.invalid_type,expected:K.set,received:r.parsedType}),le;let o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(W(r,{code:B.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),a.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(W(r,{code:B.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),a.dirty());let n=this._def.valueType;function s(l){let u=new Set;for(let c of l){if(c.status==="aborted")return le;c.status==="dirty"&&a.dirty(),u.add(c.value)}return{status:a.value,value:u}}let i=[...r.data.values()].map((l,u)=>n._parse(new Ya(r,l,r.path,u)));return r.common.async?Promise.all(i).then(l=>s(l)):s(i)}min(t,a){return new e({...this._def,minSize:{value:t,message:te.toString(a)}})}max(t,a){return new e({...this._def,maxSize:{value:t,message:te.toString(a)}})}size(t,a){return this.min(t,a).max(t,a)}nonempty(t){return this.min(1,t)}};Yi.create=(e,t)=>new Yi({valueType:e,minSize:null,maxSize:null,typeName:de.ZodSet,...ye(t)});var bf=class e extends Le{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==K.function)return W(a,{code:B.invalid_type,expected:K.function,received:a.parsedType}),le;function r(i,l){return Ru({data:i,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,Gi(),ko].filter(u=>!!u),issueData:{code:B.invalid_arguments,argumentsError:l}})}function o(i,l){return Ru({data:i,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,Gi(),ko].filter(u=>!!u),issueData:{code:B.invalid_return_type,returnTypeError:l}})}let n={errorMap:a.common.contextualErrorMap},s=a.data;if(this._def.returns instanceof xn){let i=this;return ta(async function(...l){let u=new Da([]),c=await i._def.args.parseAsync(l,n).catch(h=>{throw u.addIssue(r(l,h)),u}),d=await Reflect.apply(s,this,c);return await i._def.returns._def.type.parseAsync(d,n).catch(h=>{throw u.addIssue(o(d,h)),u})})}else{let i=this;return ta(function(...l){let u=i._def.args.safeParse(l,n);if(!u.success)throw new Da([r(l,u.error)]);let c=Reflect.apply(s,this,u.data),d=i._def.returns.safeParse(c,n);if(!d.success)throw new Da([o(c,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:qr.create(t).rest(Po.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,a,r){return new e({args:t||qr.create([]).rest(Po.create()),returns:a||Po.create(),typeName:de.ZodFunction,...ye(r)})}},ys=class extends Le{get schema(){return this._def.getter()}_parse(t){let{ctx:a}=this._processInputParams(t);return this._def.getter()._parse({data:a.data,path:a.path,parent:a})}};ys.create=(e,t)=>new ys({getter:e,typeName:de.ZodLazy,...ye(t)});var ws=class extends Le{_parse(t){if(t.data!==this._def.value){let a=this._getOrReturnCtx(t);return W(a,{received:a.data,code:B.invalid_literal,expected:this._def.value}),le}return{status:"valid",value:t.data}}get value(){return this._def.value}};ws.create=(e,t)=>new ws({value:e,typeName:de.ZodLiteral,...ye(t)});function Vk(e,t){return new Cs({values:e,typeName:de.ZodEnum,...ye(t)})}var Cs=class e extends Le{_parse(t){if(typeof t.data!="string"){let a=this._getOrReturnCtx(t),r=this._def.values;return W(a,{expected:Me.joinValues(r),received:a.parsedType,code:B.invalid_type}),le}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let a=this._getOrReturnCtx(t),r=this._def.values;return W(a,{received:a.data,code:B.invalid_enum_value,options:r}),le}return ta(t.data)}get options(){return this._def.values}get enum(){let t={};for(let a of this._def.values)t[a]=a;return t}get Values(){let t={};for(let a of this._def.values)t[a]=a;return t}get Enum(){let t={};for(let a of this._def.values)t[a]=a;return t}extract(t,a=this._def){return e.create(t,{...this._def,...a})}exclude(t,a=this._def){return e.create(this.options.filter(r=>!t.includes(r)),{...this._def,...a})}};Cs.create=Vk;var Ss=class extends Le{_parse(t){let a=Me.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==K.string&&r.parsedType!==K.number){let o=Me.objectValues(a);return W(r,{expected:Me.joinValues(o),received:r.parsedType,code:B.invalid_type}),le}if(this._cache||(this._cache=new Set(Me.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let o=Me.objectValues(a);return W(r,{received:r.data,code:B.invalid_enum_value,options:o}),le}return ta(t.data)}get enum(){return this._def.values}};Ss.create=(e,t)=>new Ss({values:e,typeName:de.ZodNativeEnum,...ye(t)});var xn=class extends Le{unwrap(){return this._def.type}_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==K.promise&&a.common.async===!1)return W(a,{code:B.invalid_type,expected:K.promise,received:a.parsedType}),le;let r=a.parsedType===K.promise?a.data:Promise.resolve(a.data);return ta(r.then(o=>this._def.type.parseAsync(o,{path:a.path,errorMap:a.common.contextualErrorMap})))}};xn.create=(e,t)=>new xn({type:e,typeName:de.ZodPromise,...ye(t)});var Ja=class extends Le{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===de.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:a,ctx:r}=this._processInputParams(t),o=this._def.effect||null,n={addIssue:s=>{W(r,s),s.fatal?a.abort():a.dirty()},get path(){return r.path}};if(n.addIssue=n.addIssue.bind(n),o.type==="preprocess"){let s=o.transform(r.data,n);if(r.common.async)return Promise.resolve(s).then(async i=>{if(a.value==="aborted")return le;let l=await this._def.schema._parseAsync({data:i,path:r.path,parent:r});return l.status==="aborted"?le:l.status==="dirty"?ds(l.value):a.value==="dirty"?ds(l.value):l});{if(a.value==="aborted")return le;let i=this._def.schema._parseSync({data:s,path:r.path,parent:r});return i.status==="aborted"?le:i.status==="dirty"?ds(i.value):a.value==="dirty"?ds(i.value):i}}if(o.type==="refinement"){let s=i=>{let l=o.refinement(i,n);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return i};if(r.common.async===!1){let i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?le:(i.status==="dirty"&&a.dirty(),s(i.value),{status:a.value,value:i.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>i.status==="aborted"?le:(i.status==="dirty"&&a.dirty(),s(i.value).then(()=>({status:a.value,value:i.value}))))}if(o.type==="transform")if(r.common.async===!1){let s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!hn(s))return le;let i=o.transform(s.value,n);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:a.value,value:i}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>hn(s)?Promise.resolve(o.transform(s.value,n)).then(i=>({status:a.value,value:i})):le);Me.assertNever(o)}};Ja.create=(e,t,a)=>new Ja({schema:e,typeName:de.ZodEffects,effect:t,...ye(a)});Ja.createWithPreprocess=(e,t,a)=>new Ja({schema:t,effect:{type:"preprocess",transform:e},typeName:de.ZodEffects,...ye(a)});var Qa=class extends Le{_parse(t){return this._getType(t)===K.undefined?ta(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Qa.create=(e,t)=>new Qa({innerType:e,typeName:de.ZodOptional,...ye(t)});var Wr=class extends Le{_parse(t){return this._getType(t)===K.null?ta(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Wr.create=(e,t)=>new Wr({innerType:e,typeName:de.ZodNullable,...ye(t)});var Ls=class extends Le{_parse(t){let{ctx:a}=this._processInputParams(t),r=a.data;return a.parsedType===K.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:a.path,parent:a})}removeDefault(){return this._def.innerType}};Ls.create=(e,t)=>new Ls({innerType:e,typeName:de.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ye(t)});var Is=class extends Le{_parse(t){let{ctx:a}=this._processInputParams(t),r={...a,common:{...a.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return $i(o)?o.then(n=>({status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new Da(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Da(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};Is.create=(e,t)=>new Is({innerType:e,typeName:de.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ye(t)});var Ji=class extends Le{_parse(t){if(this._getType(t)!==K.nan){let r=this._getOrReturnCtx(t);return W(r,{code:B.invalid_type,expected:K.nan,received:r.parsedType}),le}return{status:"valid",value:t.data}}};Ji.create=e=>new Ji({typeName:de.ZodNaN,...ye(e)});var FO=Symbol("zod_brand"),Pu=class extends Le{_parse(t){let{ctx:a}=this._processInputParams(t),r=a.data;return this._def.type._parse({data:r,path:a.path,parent:a})}unwrap(){return this._def.type}},Du=class e extends Le{_parse(t){let{status:a,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{let n=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return n.status==="aborted"?le:n.status==="dirty"?(a.dirty(),ds(n.value)):this._def.out._parseAsync({data:n.value,path:r.path,parent:r})})();{let o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?le:o.status==="dirty"?(a.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,a){return new e({in:t,out:a,typeName:de.ZodPipeline})}},bs=class extends Le{_parse(t){let a=this._def.innerType._parse(t),r=o=>(hn(o)&&(o.value=Object.freeze(o.value)),o);return $i(a)?a.then(o=>r(o)):r(a)}unwrap(){return this._def.innerType}};bs.create=(e,t)=>new bs({innerType:e,typeName:de.ZodReadonly,...ye(t)});function Bk(e,t){let a=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof a=="string"?{message:a}:a}function qk(e,t={},a){return e?vn.create().superRefine((r,o)=>{let n=e(r);if(n instanceof Promise)return n.then(s=>{if(!s){let i=Bk(t,r),l=i.fatal??a??!0;o.addIssue({code:"custom",...i,fatal:l})}});if(!n){let s=Bk(t,r),i=s.fatal??a??!0;o.addIssue({code:"custom",...s,fatal:i})}}):vn.create()}var zO={object:Ta.lazycreate},de;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(de||(de={}));var BO=(e,t={message:`Input not instance of ${e.name}`})=>qk(a=>a instanceof e,t),Wk=gn.create,Gk=cs.create,UO=Ji.create,HO=fs.create,$k=ps.create,jO=ms.create,VO=Xi.create,qO=hs.create,WO=gs.create,GO=vn.create,$O=Po.create,KO=Cr.create,XO=Zi.create,ZO=Do.create,QO=Ta.create,YO=Ta.strictCreate,JO=vs.create,eN=Lf.create,tN=xs.create,aN=qr.create,rN=If.create,oN=Qi.create,nN=Yi.create,sN=bf.create,iN=ys.create,lN=ws.create,uN=Cs.create,dN=Ss.create,cN=xn.create,fN=Ja.create,pN=Qa.create,mN=Wr.create,hN=Ja.createWithPreprocess,gN=Du.create,vN=()=>Wk().optional(),xN=()=>Gk().optional(),yN=()=>$k().optional(),wN={string:(e=>gn.create({...e,coerce:!0})),number:(e=>cs.create({...e,coerce:!0})),boolean:(e=>ps.create({...e,coerce:!0})),bigint:(e=>fs.create({...e,coerce:!0})),date:(e=>ms.create({...e,coerce:!0}))};var CN=le;var Kk={"bridge.contextChanged":"The space context has changed.","bridge.requestFailed":"The request failed.","bridge.closed":"The space is closed.","bridge.notConnected":"The space is not connected yet.","bridge.timeout":"The request timed out. Please try again.","common.actionFailed":"The action failed.","bridge.uploadFailed":"File upload failed.","bridge.editorUnavailable":"Unable to open the document editor.","templates.project.title":"Project brief","templates.project.description":"Align the team on the project background, goals, and key plans.","templates.project.content":`## Project goals
104
+
105
+ Describe what this project should achieve.
106
+
107
+ ## Key deliverables
108
+
109
+ - First deliverable
110
+ - Second deliverable
111
+
112
+ ## Next steps
113
+
114
+ Identify owners and the next review date.`,"templates.meeting.title":"Meeting notes","templates.meeting.description":"Capture decisions and next steps, with owners and deadlines.","templates.meeting.content":`## Discussion
115
+
116
+ Record the meeting context and conclusions.
117
+
118
+ ## Action items
119
+
120
+ - Task \xB7 Owner \xB7 Due date
121
+
122
+ ## Open questions
123
+
124
+ Record questions that need follow-up.`,"templates.weekly.title":"Weekly update","templates.weekly.description":"Summarize progress, blockers, and plans for next week.","templates.weekly.content":`## This week
125
+
126
+ - Completed work
127
+
128
+ ## Blockers
129
+
130
+ Record risks, blockers, and support needed.
131
+
132
+ ## Next week
133
+
134
+ - Next steps`,"folder.location":"Location","folder.root":"Space root","create.renameMove":"Rename and move","create.page":"New page","create.folder":"New folder","create.pageDescription":"Start with a blank page or a team template.","library.storageNote":"Content is saved in this project's file workspace.","create.startingPoint":"Page starting point","create.templates":"Page templates","create.blank":"Blank page","create.blankDescription":"Create a blank document.","create.pageName":"Page name","common.name":"Name","create.namePlaceholder":"Give this content a name","create.permissions":"Inherits project members' viewing and editing permissions","common.cancel":"Cancel","common.save":"Save","create.createPage":"Create page","common.create":"Create","download.preparing":"Preparing download\u2026","download.saveFile":"Save file","editor.connecting":"Connecting\u2026","editor.saving":"Saving\u2026","editor.fileSyncFailed":"Document edits are preserved, but file sync failed. Check file conflicts and try again.","editor.saveFailed":"Save failed. Please reopen the page.","editor.saved":"Saved","editor.offline":"Disconnected. Editing is paused and will sync when the connection returns.","editor.readOnly":"Read only","editor.externalChange":"The file has changed. Review its versions.","editor.reviewChanges":"File updated; review required","editor.reauthorize":"Disconnected. Reopen to verify access.","editor.accessFailed":"Access or sync failed. Please reopen the page.","editor.loadFailed":"Unable to load the page.","editor.label":"Page editor","editor.reviewVersions":"Review file versions","editor.blockType":"Block type","block.paragraph":"Text","block.heading":"Heading","block.list":"List","block.code":"Code","editor.headingPlaceholder":"Heading text","editor.paragraphPlaceholder":"Paragraph text","editor.addParagraph":"\uFF0B Add paragraph","conflict.title":"The file content has changed","conflict.description":"The file workspace and collaborative page have different versions. Choose which content to continue with; both versions remain in history.","conflict.fileVersion":"File workspace version","conflict.useFile":"Use file version","conflict.pageVersion":"Collaborative page version (including local edits)","conflict.keepPage":"Keep page version","conflict.loading":"Loading both versions\u2026","navigation.waitForSave":"Saving. Please wait before switching.","navigation.trash":"Trash","kind.folder":"Folder","kind.page":"Page","navigation.files":"Files and artifacts","navigation.all":"All content","common.dismiss":"Dismiss notification","common.processing":"Working\u2026","project.choose":"Choose a collaboration project","project.chooseDescription":"Create a Collaboration Space in the Workbench project picker, or choose an existing project.","project.sharing":"Project members and connected Assistants share the files and documents here.","common.reload":"Reload","navigation.label":"Space navigation","space.title":"Collaboration space","navigation.search":"Search space","common.opening":"Opening\u2026","space.sharedSuffix":"\xB7 Shared with project members","navigation.findDocument":"Find documents","knowledge.title":"Document search","navigation.back":"Back to content","document.actions":"Document actions","document.renameMove":"Rename / move","access.title":"Access","trash.restore":"Restore content","trash.move":"Move to trash","document.projectFileSuffix":"\xB7 Project file","trash.documentNotice":"This content is in the trash. Restore it to continue using it.","document.editorUnavailable":"The collaboration editor is temporarily unavailable. The original file is preserved and can be downloaded.","document.reopenEditor":"Reopen editor","document.originalFormat":"The file retains its original format and is available in the project file workspace.","document.download":"Download file","library.description":"Build, maintain, and use content with your team and AI.","library.search":"Search this space","library.new":"New","materials.title":"Add materials","source.title":"Import from a document platform","library.recent":"Recently updated","library.refresh":"Refresh list","library.loading":"Loading content\u2026","library.type":"Type","library.source":"Source","library.updated":"Updated","library.actions":"Actions","source.copyType":"External text copy","library.spacePage":"Space page","materials.assistantArtifacts":"Assistant artifacts","library.projectFile":"Project file","common.open":"Open","source.viewOrigin":"View import source","library.noResults":"No matching content","trash.empty":"Trash is empty","library.empty":"Write your first document together","library.searchHint":"Try another name or file path.","library.createHint":"Create a page or add files to start collaborating with your team and AI.","common.closePanel":"Close panel","source.originTitle":"Import source","source.copyDescription":"This document is an independent copy in this project, governed by project permissions.","source.openPlatform":"View original on source platform","common.close":"Close","access.description":"Maintain documents, files, and artifacts with your team and AI \xB7 Provided by the Spaces plugin","access.entry":"Workbench entry","access.views":"Views","access.entryDescription":"After an Assistant adds and publishes this capability, open the view in a connected collaboration project.","access.shared":"Shared with project members","access.roles":"Owners and admins manage members, Assistants, and content. Editors collaborate; other members view and download. Archived spaces are read only.","access.projectPermissions":"Manage members and Assistants in project settings. Assistant access alone does not grant access to project content.","access.capabilities":"Capabilities","access.pages":"Page collaboration","access.pagesDescription":"Independent Markdown editor with real-time collaboration and version history","access.ai":"Create with AI","access.aiDescription":"Generate, comment on, and review changes in the Assistant","access.filesDescription":"Project files, uploads, and collected artifact versions","access.searchDescription":"Search and reference space content with the project knowledge base","access.sheetDescription":"Spreadsheet editing is provided by installed editor plugins.","common.done":"Got it","common.image":"Image","materials.description":"Add files and existing artifacts to this space.","materials.source":"Material source","materials.local":"Local files","materials.chooseFiles":"Choose files to add","materials.fileLimit":"Up to 25 MiB per file","materials.editor":"Editing method","materials.keepOriginal":"Keep as original file","materials.search":"Search available artifacts","materials.loading":"Loading artifacts\u2026","materials.untitled":"Untitled artifact","materials.noFileVersion":"No file version available","materials.noVersion":"No versions","materials.empty":"No artifacts available. Generate a file in chat, then return here to add it.","common.previousPage":"Previous page","common.nextPage":"Next page","materials.versionNote":"Collect the selected version. Source updates will not overwrite the project file.","materials.add":"Add to space","error.retry":"The action failed. Please try again.","error.conflict":"Content has changed. Your content is preserved; refresh and review the files and version history.","error.denied":"You do not have permission, or your project access has been revoked.","error.timeout":"The response timed out. Please try again later.","error.model":"The model is unavailable. Check your organization's model configuration.","kind.file":"File","kind.sheet":"Spreadsheet","kind.artifact":"Artifact","panel.choosePage":"Select a page to view comments, AI suggestions, and version history.","proposal.request":"Describe the change","proposal.defaultRequest":"Make the next steps more specific","proposal.selectedOnly":"Only the selected paragraph is changed, after you accept the suggestion.","proposal.selectBlock":"Select a paragraph first.","proposal.generate":"Generate suggestion","proposal.original":"Original","proposal.suggestion":"Suggested change","proposal.accept":"Accept change","proposal.reject":"Reject","proposal.accepted":"Accepted","proposal.rejected":"Rejected","comments.resolved":"Resolved","comments.pending":"Open","comments.reopen":"Reopen","comments.resolve":"Mark resolved","comments.empty":"No comments yet. Leave a question or record a conclusion.","comments.body":"Comment","comments.placeholder":"Add a comment\u2026","comments.post":"Post comment","history.checkpointLabel":"Manual checkpoint","history.createCheckpoint":"Create checkpoint","history.current":"Current version","history.preserveNote":"The current version will be preserved before restoring.","history.restoreVersion":"Restore this version","history.confirmNext":"Review the content to restore next.","history.restoreDescription":"This content will become a new version. The current version remains in history.","history.confirmRestore":"Confirm restore","knowledge.description":"The project's built-in knowledge base indexes documents and inherits project permissions.","knowledge.enable":"Enable built-in knowledge base","knowledge.linked":"Built-in knowledge base connected \xB7 Keyword search","knowledge.sync":"Sync / retry indexing","knowledge.refresh":"Refresh status","knowledge.askTitle":"Ask this space","knowledge.accessNote":"Answers use only content you can access in this project.","knowledge.question":"Question","knowledge.placeholder":"What should this project do next?","knowledge.ask":"Ask","knowledge.noSources":"No usable sources found.","error.save":"Save failed.","error.download":"Download failed.","source.error.locator":"Paste a Feishu /docx/ or /wiki/ document link.","source.error.type":"This wiki link does not point to a new document. Only docx text copies are supported.","source.error.access":"The account authorized for this connection cannot read the document. Check the connection and document accounts, or choose an accessible document.","source.error.connection":"Unable to read the source. Check the connection, app permissions, and the authorized account's document access.","source.error.changed":"The Feishu document has changed. Preview it again before importing.","source.error.size":"The document exceeds the current 100 KB text limit.","source.description":"Copy text from an authorized source into this project to edit with project members.","source.retryConnections":"Retry loading connections","source.noConnections":"This Assistant / project has no connection that supports document reading.","source.setupHint":"Ask an administrator to install the Feishu connector and authorize a shared account in connection management. Then select Recheck.","source.recheck":"Recheck","source.provider":"Document source","source.chooseConnection":"Choose an authorized connection","source.projectScope":"Project","source.workspaceScope":"Assistant workspace","source.recheckConnections":"Recheck connections","source.searchHint":"Available documents depend on the account authorized for this shared connection. An empty query lists the drive root; keyword searches return up to 199 new documents.","source.searchLabel":"Search source documents","source.searchPlaceholder":"Search document titles","source.search":"Search / list","source.linkLabel":"Feishu document link","source.linkPlaceholder":"Paste a Feishu /docx/ or /wiki/ link","common.preview":"Preview","source.emptyPage":"No importable documents on this page. Continue to the next page or paste a document link.","common.loadMore":"Load more","source.openOriginal":"View original","source.emptyText":"(This document has no importable text.)","source.confirmation":"I have reviewed the preview and agree to share this text copy with project members. The copy is stored independently and will not be deleted automatically if remote access is revoked.","source.import":"Import text copy","library.subpage":"Subpage \xB7 {{title}}","library.moreActions":"More actions for {{title}}","source.destination":"{{space}} / {{folder}}","source.originRevision":"{{provider}} \xB7 Source revision {{revision}}","source.importedAt":"Imported: {{date}}","source.id":"Source ID: {{id}}","source.previewMeta":"Source revision {{revision}} \xB7 Destination: {{destination}}","source.connectionLabel":"{{provider}} \xB7 Shared with {{scope}}","source.disconnected":"{{label}} \xB7 Not connected","materials.importWith":"Import with {{editor}}","materials.chooseArtifact":"Select {{title}}","materials.artifactVersion":"Version of {{title}}","materials.selected":"{{count}} items selected","materials.selected_one":"{{count}} item selected","materials.selected_other":"{{count}} items selected","common.pageNumber":"Page {{page}}","history.restoreTitle":"Restore \u201C{{title}}\u201D?","editor.people":"{{count}} online: {{names}}","common.workbench":"Workbench","materials.fileSize":"{{size}} KB","common.version":"v{{version}}","history.versionMeta":"{{date}} \xB7 v{{version}}","create.document":"Create document","catalog.create":"Create {{type}}","catalog.permissions":"Owned by this project and shared with its members.","catalog.resource":"Project resource","catalog.more":"Load more resources","catalog.rename":"Rename","catalog.openWith":"Open with","catalog.recycleDescription":"Move \u201C{{title}}\u201D to trash? Editing will stop and published share links will be revoked. Source files and versions are retained.","catalog.restoreDescription":"Restore \u201C{{title}}\u201D for editing. Previous share links will remain revoked.","catalog.move":"Move to folder","catalog.moveDescription":"Organize this resource in the current space. Its identity, source bundle and shared links stay the same.","catalog.folderNotEmpty":"Move the resources out of this folder before recycling it.","knowledge.searchQuery":"Search indexed content","knowledge.searchAction":"Search","catalog.editorDefaults":"Default editor","catalog.editorDefaultsDescription":"An explicit Open with choice takes precedence, followed by resource, project and organization defaults. Only compatible editors can open this model.","catalog.defaultScope":"Applies to","catalog.defaultEditor":"Editor","catalog.inheritEditor":"Inherit default","catalog.scope.resource":"This resource","catalog.scope.project":"This model in this project","catalog.scope.organization":"This model in this organization","catalog.unavailable":"Content provider unavailable","catalog.unavailableDescription":"The source files are retained in this project. Re-enable the provider to continue editing, or download the retained source backup. It may be older than the last editing state.","catalog.downloadBackup":"Download source backup","knowledge.pending":"Waiting to sync","knowledge.processing":"Indexing","knowledge.ready":"Ready","knowledge.failed":"Index failed","knowledge.failureNote":"Indexing failed. Sync again to retry.","catalog.duplicate":"Duplicate","catalog.copyTitle":"{{title}} \u2014 copy","catalog.implementation":"Editor implementation","catalog.startFrom":"Start from","catalog.blank":"Blank document","catalog.creationMode":"Next step","catalog.editMyself":"Edit myself","catalog.withAssistant":"Generate with Assistant","catalog.brief":"What would you like to create?","catalog.assistantNotice":"Sends your brief to the current Assistant. Its configured capabilities and permissions apply.","catalog.generate":"Create and send to Assistant","catalog.generatePrompt":"Please edit the existing Project resource \u201C{{title}}\u201D (contentId: {{contentId}}). Read its current content and use the configured type tools. Do not create another copy or publish it. Requirements: {{prompt}}","library.listView":"List view","library.gridView":"Grid view","library.state":"Access / sync","catalog.projectAccess":"Project members","catalog.readOnly":"Read only","catalog.synced":"Source synced","catalog.pending":"Source sync pending","catalog.failed":"Source sync failed; retry scheduled","catalog.sourceRevision":"Source revision: {{revision}}","catalog.outlinePreview":"Structure preview"};var Xk={"bridge.contextChanged":"\u7A7A\u95F4\u4E0A\u4E0B\u6587\u5DF2\u5207\u6362","bridge.requestFailed":"\u8BF7\u6C42\u5931\u8D25","bridge.closed":"\u7A7A\u95F4\u5DF2\u5173\u95ED","bridge.notConnected":"\u7A7A\u95F4\u5C1A\u672A\u8FDE\u63A5","bridge.timeout":"\u8BF7\u6C42\u8D85\u65F6\uFF0C\u8BF7\u91CD\u8BD5","common.actionFailed":"\u64CD\u4F5C\u5931\u8D25","bridge.uploadFailed":"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25","bridge.editorUnavailable":"\u65E0\u6CD5\u6253\u5F00\u6587\u6863\u7F16\u8F91\u5668","templates.project.title":"\u9879\u76EE\u7B80\u62A5","templates.project.description":"\u68B3\u7406\u9879\u76EE\u80CC\u666F\u3001\u76EE\u6807\u4E0E\u5173\u952E\u8BA1\u5212\uFF0C\u8BA9\u56E2\u961F\u5BF9\u9F50\u3002","templates.project.content":`## \u9879\u76EE\u76EE\u6807
135
+
136
+ \u63CF\u8FF0\u672C\u9879\u76EE\u5E0C\u671B\u8FBE\u6210\u7684\u76EE\u6807\u3002
137
+
138
+ ## \u5173\u952E\u4EA4\u4ED8
139
+
140
+ - \u7B2C\u4E00\u9879\u4EA4\u4ED8
141
+ - \u7B2C\u4E8C\u9879\u4EA4\u4ED8
142
+
143
+ ## \u4E0B\u4E00\u6B65
144
+
145
+ \u660E\u786E\u8D1F\u8D23\u4EBA\u548C\u4E0B\u4E00\u6B21\u68C0\u67E5\u65F6\u95F4\u3002`,"templates.meeting.title":"\u4F1A\u8BAE\u7EAA\u8981","templates.meeting.description":"\u8BB0\u5F55\u8BA8\u8BBA\u8981\u70B9\u4E0E\u540E\u7EED\u884C\u52A8\uFF0C\u660E\u786E\u8D23\u4EFB\u4E0E\u65F6\u95F4\u3002","templates.meeting.content":`## \u8BA8\u8BBA\u8981\u70B9
146
+
147
+ \u8BB0\u5F55\u4F1A\u8BAE\u80CC\u666F\u4E0E\u8BA8\u8BBA\u7ED3\u8BBA\u3002
148
+
149
+ ## \u884C\u52A8\u4E8B\u9879
150
+
151
+ - \u5F85\u529E\u4E8B\u9879 \xB7 \u8D1F\u8D23\u4EBA \xB7 \u622A\u6B62\u65E5\u671F
152
+
153
+ ## \u5F85\u786E\u8BA4
154
+
155
+ \u8BB0\u5F55\u9700\u8981\u540E\u7EED\u786E\u8BA4\u7684\u95EE\u9898\u3002`,"templates.weekly.title":"\u56E2\u961F\u5468\u62A5","templates.weekly.description":"\u603B\u7ED3\u672C\u5468\u8FDB\u5C55\u3001\u5F85\u89E3\u51B3\u95EE\u9898\u4E0E\u4E0B\u5468\u5B89\u6392\u3002","templates.weekly.content":`## \u672C\u5468\u8FDB\u5C55
156
+
157
+ - \u5DF2\u5B8C\u6210\u7684\u5DE5\u4F5C
158
+
159
+ ## \u5F85\u89E3\u51B3
160
+
161
+ \u8BB0\u5F55\u98CE\u9669\u3001\u963B\u788D\u4E0E\u9700\u8981\u7684\u652F\u6301\u3002
162
+
163
+ ## \u4E0B\u5468\u5B89\u6392
164
+
165
+ - \u4E0B\u4E00\u6B65\u8BA1\u5212`,"folder.location":"\u5B58\u653E\u4F4D\u7F6E","folder.root":"\u7A7A\u95F4\u6839\u76EE\u5F55","create.renameMove":"\u91CD\u547D\u540D\u4E0E\u79FB\u52A8","create.page":"\u65B0\u5EFA\u9875\u9762","create.folder":"\u65B0\u5EFA\u6587\u4EF6\u5939","create.pageDescription":"\u4ECE\u7A7A\u767D\u9875\u9762\u5F00\u59CB\uFF0C\u6216\u4F7F\u7528\u56E2\u961F\u5E38\u7528\u6A21\u677F","library.storageNote":"\u5185\u5BB9\u4FDD\u5B58\u5728\u5F53\u524D\u9879\u76EE\u7684\u6587\u4EF6\u5DE5\u4F5C\u533A\u4E2D","create.startingPoint":"\u9875\u9762\u8D77\u70B9","create.templates":"\u9875\u9762\u6A21\u677F","create.blank":"\u7A7A\u767D\u9875\u9762","create.blankDescription":"\u521B\u5EFA\u4E00\u4EFD\u7A7A\u767D\u6587\u6863\u3002","create.pageName":"\u9875\u9762\u540D\u79F0","common.name":"\u540D\u79F0","create.namePlaceholder":"\u4E3A\u8FD9\u4EFD\u5185\u5BB9\u547D\u540D","create.permissions":"\u7EE7\u627F\u9879\u76EE\u6210\u5458\u7684\u67E5\u770B\u4E0E\u7F16\u8F91\u6743\u9650","common.cancel":"\u53D6\u6D88","common.save":"\u4FDD\u5B58","create.createPage":"\u521B\u5EFA\u9875\u9762","common.create":"\u521B\u5EFA","download.preparing":"\u6B63\u5728\u51C6\u5907\u4E0B\u8F7D\u2026","download.saveFile":"\u4FDD\u5B58\u6587\u4EF6","editor.connecting":"\u6B63\u5728\u8FDE\u63A5\u2026","editor.saving":"\u6B63\u5728\u4FDD\u5B58\u2026","editor.fileSyncFailed":"\u6587\u6863\u4FEE\u6539\u5DF2\u4FDD\u7559\uFF0C\u4F46\u6587\u4EF6\u540C\u6B65\u5931\u8D25\u3002\u8BF7\u68C0\u67E5\u6587\u4EF6\u51B2\u7A81\u540E\u91CD\u8BD5\u3002","editor.saveFailed":"\u4FDD\u5B58\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u6253\u5F00\u9875\u9762","editor.saved":"\u5DF2\u4FDD\u5B58","editor.offline":"\u7F51\u7EDC\u5DF2\u65AD\u5F00\uFF0C\u7F16\u8F91\u5DF2\u6682\u505C\uFF1B\u8FDE\u63A5\u6062\u590D\u540E\u81EA\u52A8\u540C\u6B65","editor.readOnly":"\u53EA\u8BFB","editor.externalChange":"\u6587\u4EF6\u5DF2\u88AB\u4FEE\u6539\uFF0C\u7B49\u5F85\u6838\u5BF9\u7248\u672C","editor.reviewChanges":"\u6587\u4EF6\u6709\u66F4\u65B0\uFF0C\u5F85\u6838\u5BF9","editor.reauthorize":"\u8FDE\u63A5\u5DF2\u65AD\u5F00\uFF0C\u8BF7\u91CD\u65B0\u6253\u5F00\u4EE5\u9A8C\u8BC1\u8BBF\u95EE\u6743\u9650","editor.accessFailed":"\u8BBF\u95EE\u6216\u540C\u6B65\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u6253\u5F00\u9875\u9762","editor.loadFailed":"\u9875\u9762\u52A0\u8F7D\u5931\u8D25","editor.label":"\u9875\u9762\u7F16\u8F91\u5668","editor.reviewVersions":"\u6838\u5BF9\u6587\u4EF6\u7248\u672C","editor.blockType":"\u6BB5\u843D\u7C7B\u578B","block.paragraph":"\u6B63\u6587","block.heading":"\u6807\u9898","block.list":"\u5217\u8868","block.code":"\u4EE3\u7801","editor.headingPlaceholder":"\u6807\u9898\u5185\u5BB9","editor.paragraphPlaceholder":"\u6BB5\u843D\u5185\u5BB9","editor.addParagraph":"\uFF0B \u6DFB\u52A0\u6BB5\u843D","conflict.title":"\u6587\u4EF6\u5185\u5BB9\u5DF2\u53D1\u751F\u53D8\u5316","conflict.description":"\u6587\u4EF6\u5DE5\u4F5C\u533A\u548C\u534F\u4F5C\u9875\u9762\u6709\u4E0D\u540C\u7248\u672C\u3002\u9009\u62E9\u8981\u7EE7\u7EED\u4F7F\u7528\u7684\u5185\u5BB9\uFF1B\u4E24\u4EFD\u5185\u5BB9\u90FD\u4F1A\u4FDD\u7559\u5728\u5386\u53F2\u8BB0\u5F55\u4E2D\u3002","conflict.fileVersion":"\u6587\u4EF6\u5DE5\u4F5C\u533A\u7248\u672C","conflict.useFile":"\u91C7\u7528\u6587\u4EF6\u7248\u672C","conflict.pageVersion":"\u534F\u4F5C\u9875\u9762\u7248\u672C\uFF08\u542B\u672C\u5730\u4FEE\u6539\uFF09","conflict.keepPage":"\u4FDD\u7559\u9875\u9762\u7248\u672C","conflict.loading":"\u6B63\u5728\u8BFB\u53D6\u4E24\u4E2A\u7248\u672C\u2026","navigation.waitForSave":"\u6B63\u5728\u4FDD\u5B58\uFF0C\u8BF7\u7B49\u5F85\u5B8C\u6210\u540E\u518D\u5207\u6362\u3002","navigation.trash":"\u56DE\u6536\u7AD9","kind.folder":"\u6587\u4EF6\u5939","kind.page":"\u9875\u9762","navigation.files":"\u6587\u4EF6\u4E0E\u6210\u679C","navigation.all":"\u5168\u90E8\u5185\u5BB9","common.dismiss":"\u5173\u95ED\u63D0\u793A","common.processing":"\u6B63\u5728\u5904\u7406\u2026","project.choose":"\u9009\u62E9\u4E00\u4E2A\u534F\u4F5C\u7A7A\u95F4\u9879\u76EE","project.chooseDescription":"\u5728 Workbench \u7684\u9879\u76EE\u9009\u62E9\u5668\u4E2D\u521B\u5EFA\u201C\u534F\u4F5C\u7A7A\u95F4\u201D\uFF0C\u6216\u9009\u62E9\u5DF2\u6709\u9879\u76EE\u3002","project.sharing":"\u9879\u76EE\u6210\u5458\u548C\u7ED1\u5B9A\u7684\u591A\u4E2A Assistant \u5C06\u5171\u540C\u4F7F\u7528\u8FD9\u91CC\u7684\u6587\u4EF6\u4E0E\u6587\u6863\u3002","common.reload":"\u91CD\u65B0\u52A0\u8F7D","navigation.label":"\u7A7A\u95F4\u5BFC\u822A","space.title":"\u534F\u4F5C\u7A7A\u95F4","navigation.search":"\u641C\u7D22\u7A7A\u95F4","common.opening":"\u6B63\u5728\u6253\u5F00\u2026","space.sharedSuffix":"\xB7 \u9879\u76EE\u6210\u5458\u5171\u4EAB","navigation.findDocument":"\u67E5\u627E\u6587\u6863","knowledge.title":"\u6587\u6863\u68C0\u7D22","navigation.back":"\u8FD4\u56DE\u5185\u5BB9\u5217\u8868","document.actions":"\u6587\u6863\u64CD\u4F5C","document.renameMove":"\u91CD\u547D\u540D / \u79FB\u52A8","access.title":"\u8BBF\u95EE\u8303\u56F4","trash.restore":"\u6062\u590D\u5185\u5BB9","trash.move":"\u79FB\u5165\u56DE\u6536\u7AD9","document.projectFileSuffix":"\xB7 \u9879\u76EE\u6587\u4EF6","trash.documentNotice":"\u6B64\u5185\u5BB9\u5DF2\u79FB\u5165\u56DE\u6536\u7AD9\uFF0C\u6062\u590D\u540E\u53EF\u7EE7\u7EED\u4F7F\u7528\u3002","document.editorUnavailable":"\u6B64\u6587\u6863\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u534F\u4F5C\u7F16\u8F91\u5668\u6253\u5F00\u3002\u539F\u59CB\u6587\u4EF6\u4FDD\u7559\uFF0C\u53EF\u4E0B\u8F7D\u67E5\u770B\u3002","document.reopenEditor":"\u91CD\u65B0\u6253\u5F00\u7F16\u8F91\u5668","document.originalFormat":"\u6587\u4EF6\u4FDD\u7559\u539F\u59CB\u683C\u5F0F\uFF0C\u53EF\u5728\u9879\u76EE\u6587\u4EF6\u5DE5\u4F5C\u533A\u4E2D\u7EE7\u7EED\u4F7F\u7528\u3002","document.download":"\u4E0B\u8F7D\u6587\u4EF6","library.description":"\u4E0E\u56E2\u961F\u548C AI \u4E00\u8D77\u79EF\u7D2F\u3001\u7EF4\u62A4\u548C\u4F7F\u7528\u5185\u5BB9","library.search":"\u641C\u7D22\u5F53\u524D\u7A7A\u95F4","library.new":"\u65B0\u5EFA","materials.title":"\u6DFB\u52A0\u8D44\u6599","source.title":"\u4ECE\u6587\u6863\u5E73\u53F0\u5BFC\u5165","library.recent":"\u6700\u8FD1\u66F4\u65B0","library.refresh":"\u5237\u65B0\u5217\u8868","library.loading":"\u6B63\u5728\u52A0\u8F7D\u5185\u5BB9\u2026","library.type":"\u7C7B\u578B","library.source":"\u6765\u6E90","library.updated":"\u66F4\u65B0\u65F6\u95F4","library.actions":"\u64CD\u4F5C","source.copyType":"\u5916\u90E8\u6587\u672C\u526F\u672C","library.spacePage":"\u7A7A\u95F4\u9875\u9762","materials.assistantArtifacts":"Assistant \u6210\u679C","library.projectFile":"\u9879\u76EE\u6587\u4EF6","common.open":"\u6253\u5F00","source.viewOrigin":"\u67E5\u770B\u5BFC\u5165\u6765\u6E90","library.noResults":"\u6CA1\u6709\u627E\u5230\u5339\u914D\u7684\u5185\u5BB9","trash.empty":"\u56DE\u6536\u7AD9\u4E3A\u7A7A","library.empty":"\u4E00\u8D77\u5199\u4E0B\u7B2C\u4E00\u7BC7\u6587\u6863","library.searchHint":"\u8BD5\u8BD5\u5176\u4ED6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\u3002","library.createHint":"\u521B\u5EFA\u9875\u9762\uFF0C\u6216\u6DFB\u52A0\u5DF2\u6709\u6587\u4EF6\uFF0C\u5F00\u59CB\u4E0E\u56E2\u961F\u548C AI \u534F\u4F5C\u3002","common.closePanel":"\u5173\u95ED\u4FA7\u680F","source.originTitle":"\u5BFC\u5165\u6765\u6E90","source.copyDescription":"\u6B64\u6587\u6863\u662F\u5F53\u524D\u9879\u76EE\u4E2D\u7684\u72EC\u7ACB\u526F\u672C\uFF0C\u7531\u9879\u76EE\u6743\u9650\u7BA1\u7406\u3002","source.openPlatform":"\u5728\u6765\u6E90\u5E73\u53F0\u67E5\u770B\u539F\u6587","common.close":"\u5173\u95ED","access.description":"\u4E0E\u56E2\u961F\u548C AI \u5171\u540C\u7EF4\u62A4\u6587\u6863\u3001\u6587\u4EF6\u548C\u6210\u679C \xB7 \u7531 Spaces \u63D2\u4EF6\u63D0\u4F9B","access.entry":"\u5DE5\u4F5C\u53F0\u5165\u53E3","access.views":"\u89C6\u56FE","access.entryDescription":"Assistant \u6DFB\u52A0\u5E76\u53D1\u5E03\u6B64\u80FD\u529B\u540E\uFF0C\u53EF\u5728\u5DF2\u7ED1\u5B9A\u7684\u534F\u4F5C\u7A7A\u95F4\u9879\u76EE\u4E2D\u6253\u5F00\u89C6\u56FE\u3002","access.shared":"\u9879\u76EE\u6210\u5458\u5171\u4EAB","access.roles":"\u6240\u6709\u8005\u548C\u7BA1\u7406\u5458\u7BA1\u7406\u6210\u5458\u3001Assistant \u4E0E\u5185\u5BB9\uFF1B\u7F16\u8F91\u8005\u5171\u540C\u7F16\u8F91\uFF0C\u666E\u901A\u6210\u5458\u67E5\u770B\u548C\u4E0B\u8F7D\u3002\u5F52\u6863\u540E\u7A7A\u95F4\u53EA\u8BFB\u3002","access.projectPermissions":"\u5728\u9879\u76EE\u8BBE\u7F6E\u4E2D\u7BA1\u7406\u6210\u5458\u4E0E\u591A\u4E2A Assistant\u3002\u4EC5\u62E5\u6709 Assistant \u6743\u9650\u4E0D\u4F1A\u83B7\u5F97\u8BE5\u9879\u76EE\u7684\u5185\u5BB9\u3002","access.capabilities":"\u5305\u542B\u7684\u80FD\u529B","access.pages":"\u9875\u9762\u534F\u4F5C","access.pagesDescription":"\u72EC\u7ACB Markdown \u7F16\u8F91\u5668\uFF0C\u5B9E\u65F6\u534F\u4F5C\u4E0E\u7248\u672C\u5386\u53F2","access.ai":"AI \u5171\u521B","access.aiDescription":"\u5728 Assistant \u4E2D\u751F\u6210\u3001\u8BC4\u8BBA\u4E0E\u5BA1\u9605\u4FEE\u6539","access.filesDescription":"\u9879\u76EE\u6587\u4EF6\u3001\u4E0A\u4F20\u4E0E\u56FA\u5B9A\u7248\u672C\u5F52\u96C6","access.searchDescription":"\u7ED1\u5B9A\u9879\u76EE\u77E5\u8BC6\u5E93\uFF0C\u68C0\u7D22\u4E0E\u5F15\u7528\u7A7A\u95F4\u5185\u5BB9","access.sheetDescription":"\u8868\u683C\u7F16\u8F91\u7531\u5DF2\u5B89\u88C5\u7684\u7F16\u8F91\u5668\u63D2\u4EF6\u63D0\u4F9B\u3002","common.done":"\u77E5\u9053\u4E86","common.image":"\u56FE\u7247","materials.description":"\u5C06\u6587\u4EF6\u4E0E\u5DF2\u6709\u6210\u679C\u653E\u8FDB\u5F53\u524D\u7A7A\u95F4","materials.source":"\u8D44\u6599\u6765\u6E90","materials.local":"\u672C\u5730\u6587\u4EF6","materials.chooseFiles":"\u9009\u62E9\u8981\u6DFB\u52A0\u7684\u6587\u4EF6","materials.fileLimit":"\u6BCF\u4E2A\u6587\u4EF6\u6700\u591A 25 MiB","materials.editor":"\u7F16\u8F91\u65B9\u5F0F","materials.keepOriginal":"\u4FDD\u7559\u4E3A\u539F\u59CB\u6587\u4EF6","materials.search":"\u641C\u7D22\u53EF\u5F52\u96C6\u7684\u6210\u679C","materials.loading":"\u6B63\u5728\u52A0\u8F7D\u6210\u679C\u2026","materials.untitled":"\u672A\u547D\u540D\u6210\u679C","materials.noFileVersion":"\u6682\u65E0\u6587\u4EF6\u7248\u672C","materials.noVersion":"\u6682\u65E0\u7248\u672C","materials.empty":"\u6682\u65E0\u53EF\u5F52\u96C6\u7684\u6210\u679C\u3002\u5728\u804A\u5929\u4E2D\u751F\u6210\u6587\u4EF6\u540E\uFF0C\u53EF\u56DE\u5230\u8FD9\u91CC\u6DFB\u52A0\u3002","common.previousPage":"\u4E0A\u4E00\u9875","common.nextPage":"\u4E0B\u4E00\u9875","materials.versionNote":"\u5F52\u96C6\u6240\u9009\u7248\u672C\uFF0C\u6765\u6E90\u66F4\u65B0\u4E0D\u4F1A\u81EA\u52A8\u8986\u76D6\u5F53\u524D\u9879\u76EE\u6587\u4EF6\u3002","materials.add":"\u6DFB\u52A0\u5230\u7A7A\u95F4","error.retry":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5","error.conflict":"\u5185\u5BB9\u5DF2\u53D1\u751F\u53D8\u5316\u3002\u5DF2\u4FDD\u7559\u5F53\u524D\u5185\u5BB9\uFF0C\u8BF7\u5237\u65B0\u540E\u68C0\u67E5\u6587\u4EF6\u548C\u7248\u672C\u8BB0\u5F55\u3002","error.denied":"\u6CA1\u6709\u6267\u884C\u6B64\u64CD\u4F5C\u7684\u6743\u9650\uFF0C\u6216\u9879\u76EE\u8BBF\u95EE\u6743\u9650\u5DF2\u88AB\u64A4\u9500\u3002","error.timeout":"\u54CD\u5E94\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002","error.model":"\u6A21\u578B\u6682\u4E0D\u53EF\u7528\uFF0C\u8BF7\u68C0\u67E5\u7EC4\u7EC7\u7684\u6A21\u578B\u914D\u7F6E\u3002","kind.file":"\u6587\u4EF6","kind.sheet":"\u8868\u683C","kind.artifact":"\u6210\u679C","panel.choosePage":"\u9009\u62E9\u9875\u9762\u4EE5\u67E5\u770B\u8BC4\u8BBA\u3001AI \u5EFA\u8BAE\u548C\u7248\u672C\u5386\u53F2\u3002","proposal.request":"\u63CF\u8FF0\u4FEE\u6539\u8981\u6C42","proposal.defaultRequest":"\u8BA9\u4E0B\u4E00\u6B65\u66F4\u5177\u4F53","proposal.selectedOnly":"\u53EA\u4FEE\u6539\u9009\u4E2D\u7684\u6BB5\u843D\uFF0C\u63A5\u53D7\u540E\u5199\u5165\u6B63\u6587\u3002","proposal.selectBlock":"\u5148\u70B9\u51FB\u6B63\u6587\u4E2D\u7684\u6BB5\u843D\u3002","proposal.generate":"\u751F\u6210\u4FEE\u6539\u5EFA\u8BAE","proposal.original":"\u539F\u6587","proposal.suggestion":"\u5EFA\u8BAE\u4FEE\u6539","proposal.accept":"\u63A5\u53D7\u4FEE\u6539","proposal.reject":"\u62D2\u7EDD","proposal.accepted":"\u5DF2\u63A5\u53D7","proposal.rejected":"\u5DF2\u62D2\u7EDD","comments.resolved":"\u5DF2\u89E3\u51B3","comments.pending":"\u5F85\u5904\u7406","comments.reopen":"\u91CD\u65B0\u6253\u5F00","comments.resolve":"\u6807\u8BB0\u89E3\u51B3","comments.empty":"\u8FD8\u6CA1\u6709\u8BC4\u8BBA\u3002\u7559\u4E0B\u95EE\u9898\u6216\u8BB0\u5F55\u8BA8\u8BBA\u7ED3\u8BBA\u3002","comments.body":"\u8BC4\u8BBA\u5185\u5BB9","comments.placeholder":"\u6DFB\u52A0\u8BC4\u8BBA\u2026","comments.post":"\u53D1\u8868\u8BC4\u8BBA","history.checkpointLabel":"\u624B\u52A8\u68C0\u67E5\u70B9","history.createCheckpoint":"\u521B\u5EFA\u68C0\u67E5\u70B9","history.current":"\u5F53\u524D\u7248\u672C","history.preserveNote":"\u6062\u590D\u524D\u4F1A\u4FDD\u7559\u5F53\u524D\u7248\u672C","history.restoreVersion":"\u6062\u590D\u6B64\u7248\u672C","history.confirmNext":"\u4E0B\u4E00\u6B65\u5C06\u786E\u8BA4\u6062\u590D\u5185\u5BB9","history.restoreDescription":"\u5C06\u4EE5\u6B64\u5185\u5BB9\u751F\u6210\u65B0\u7248\u672C\uFF0C\u5F53\u524D\u7248\u672C\u4F1A\u4FDD\u7559\u5728\u5386\u53F2\u8BB0\u5F55\u4E2D\u3002","history.confirmRestore":"\u786E\u8BA4\u6062\u590D","knowledge.description":"\u9879\u76EE\u5185\u7F6E\u77E5\u8BC6\u5E93\u7D22\u5F15\u5F53\u524D\u6587\u6863\uFF0C\u8BBF\u95EE\u6743\u9650\u59CB\u7EC8\u7EE7\u627F\u9879\u76EE\u3002","knowledge.enable":"\u542F\u7528\u5185\u7F6E\u77E5\u8BC6\u5E93","knowledge.linked":"\u5DF2\u7ED1\u5B9A\u5185\u7F6E\u77E5\u8BC6\u5E93 \xB7 \u5173\u952E\u8BCD\u68C0\u7D22","knowledge.sync":"\u540C\u6B65 / \u91CD\u8BD5\u7D22\u5F15","knowledge.refresh":"\u5237\u65B0\u72B6\u6001","knowledge.askTitle":"\u5411\u7A7A\u95F4\u63D0\u95EE","knowledge.accessNote":"\u4EC5\u6839\u636E\u5F53\u524D\u9879\u76EE\u4E2D\u4F60\u6709\u6743\u8BBF\u95EE\u7684\u5185\u5BB9\u56DE\u7B54\u3002","knowledge.question":"\u95EE\u9898","knowledge.placeholder":"\u8FD9\u4E2A\u9879\u76EE\u4E0B\u4E00\u6B65\u9700\u8981\u505A\u4EC0\u4E48\uFF1F","knowledge.ask":"\u63D0\u95EE","knowledge.noSources":"\u6CA1\u6709\u627E\u5230\u53EF\u7528\u6765\u6E90\u3002","error.save":"\u4FDD\u5B58\u5931\u8D25","error.download":"\u4E0B\u8F7D\u5931\u8D25","source.error.locator":"\u8BF7\u7C98\u8D34\u98DE\u4E66\u65B0\u7248\u6587\u6863\u7684 /docx/ \u6216 /wiki/ \u94FE\u63A5\u3002","source.error.type":"\u8BE5\u77E5\u8BC6\u5E93\u94FE\u63A5\u6307\u5411\u7684\u4E0D\u662F\u65B0\u7248\u6587\u6863\uFF0C\u5F53\u524D\u4EC5\u652F\u6301\u5BFC\u5165 docx \u6587\u672C\u526F\u672C\u3002","source.error.access":"\u5F53\u524D\u8FDE\u63A5\u7684\u6388\u6743\u8D26\u6237\u6CA1\u6709\u8BE5\u6587\u6863\u7684\u9605\u8BFB\u6743\u9650\u3002\u8BF7\u6838\u5BF9\u8FDE\u63A5\u8D26\u53F7\u4E0E\u6587\u6863\u8D26\u53F7\uFF0C\u6216\u9009\u62E9\u8BE5\u8D26\u53F7\u53EF\u4EE5\u8BFB\u53D6\u7684\u6587\u6863\u3002","source.error.connection":"\u65E0\u6CD5\u8BFB\u53D6\u6765\u6E90\u3002\u8BF7\u68C0\u67E5\u8FDE\u63A5\u662F\u5426\u6709\u6548\u3001\u5E94\u7528\u6743\u9650\uFF0C\u4EE5\u53CA\u6388\u6743\u8D26\u6237\u662F\u5426\u80FD\u8BBF\u95EE\u8BE5\u6587\u6863\u3002","source.error.changed":"\u98DE\u4E66\u539F\u6587\u5DF2\u53D8\u5316\uFF0C\u8BF7\u91CD\u65B0\u9884\u89C8\u540E\u518D\u5BFC\u5165\u3002","source.error.size":"\u6587\u6863\u8D85\u8FC7\u672C\u6279\u652F\u6301\u7684 100 KB \u6587\u672C\u4E0A\u9650\u3002","source.description":"\u5C06\u6388\u6743\u6765\u6E90\u7684\u6587\u672C\u590D\u5236\u5230\u5F53\u524D\u9879\u76EE\uFF0C\u4E0E\u9879\u76EE\u6210\u5458\u5171\u540C\u7F16\u8F91\u3002","source.retryConnections":"\u91CD\u8BD5\u52A0\u8F7D\u8FDE\u63A5","source.noConnections":"\u5F53\u524D Assistant / \u9879\u76EE\u6CA1\u6709\u652F\u6301\u6587\u6863\u8BFB\u53D6\u7684\u8FDE\u63A5\u3002","source.setupHint":"\u8BF7\u7BA1\u7406\u5458\u5B89\u88C5\u98DE\u4E66\u8FDE\u63A5\u5668\uFF0C\u5E76\u5728\u8FDE\u63A5\u7BA1\u7406\u4E2D\u5B8C\u6210\u5171\u4EAB\u8D26\u6237\u6388\u6743\u3002\u6388\u6743\u5B8C\u6210\u540E\uFF0C\u70B9\u51FB\u201C\u91CD\u65B0\u68C0\u67E5\u201D\u3002","source.recheck":"\u91CD\u65B0\u68C0\u67E5","source.provider":"\u6587\u6863\u6765\u6E90","source.chooseConnection":"\u9009\u62E9\u5DF2\u6388\u6743\u8FDE\u63A5","source.projectScope":"\u9879\u76EE","source.workspaceScope":"Assistant \u5DE5\u4F5C\u533A","source.recheckConnections":"\u91CD\u65B0\u68C0\u67E5\u8FDE\u63A5","source.searchHint":"\u6587\u6863\u8303\u56F4\u7531\u8BE5\u5171\u4EAB\u8FDE\u63A5\u7684\u6388\u6743\u8D26\u6237\u51B3\u5B9A\u3002\u7A7A\u67E5\u8BE2\u5217\u51FA\u4E91\u76D8\u6839\u76EE\u5F55\uFF1B\u5173\u952E\u8BCD\u641C\u7D22\u6700\u591A\u8FD4\u56DE\u524D 199 \u9879\u65B0\u7248\u6587\u6863\u3002","source.searchLabel":"\u641C\u7D22\u6765\u6E90\u6587\u6863","source.searchPlaceholder":"\u641C\u7D22\u6587\u6863\u6807\u9898","source.search":"\u641C\u7D22 / \u5217\u51FA","source.linkLabel":"\u98DE\u4E66\u6587\u6863\u94FE\u63A5","source.linkPlaceholder":"\u7C98\u8D34\u98DE\u4E66 /docx/ \u6216 /wiki/ \u94FE\u63A5","common.preview":"\u9884\u89C8","source.emptyPage":"\u672C\u9875\u6CA1\u6709\u53EF\u5BFC\u5165\u7684\u65B0\u7248\u6587\u6863\u3002\u53EF\u7EE7\u7EED\u7FFB\u9875\uFF0C\u6216\u7C98\u8D34\u6587\u6863\u94FE\u63A5\u3002","common.loadMore":"\u52A0\u8F7D\u66F4\u591A","source.openOriginal":"\u67E5\u770B\u539F\u6587","source.emptyText":"\uFF08\u6587\u6863\u6CA1\u6709\u53EF\u5BFC\u5165\u7684\u6587\u672C\uFF09","source.confirmation":"\u6211\u5DF2\u6838\u5BF9\u9884\u89C8\uFF0C\u540C\u610F\u5C06\u6B64\u6587\u672C\u526F\u672C\u5171\u4EAB\u7ED9\u9879\u76EE\u6210\u5458\u3002\u526F\u672C\u72EC\u7ACB\u4FDD\u5B58\uFF0C\u8FDC\u7AEF\u64A4\u6743\u4E0D\u4F1A\u81EA\u52A8\u5220\u9664\u526F\u672C\u3002","source.import":"\u5BFC\u5165\u6587\u672C\u526F\u672C","library.subpage":"\u5B50\u9875\u9762 \xB7 {{title}}","library.moreActions":"\u66F4\u591A\u64CD\u4F5C {{title}}","source.destination":"{{space}} / {{folder}}","source.originRevision":"{{provider}} \xB7 \u539F\u6587\u7248\u672C {{revision}}","source.importedAt":"\u5BFC\u5165\u65F6\u95F4\uFF1A{{date}}","source.id":"\u539F\u6587 ID\uFF1A{{id}}","source.previewMeta":"\u539F\u6587\u7248\u672C {{revision}} \xB7 \u76EE\u6807\uFF1A{{destination}}","source.connectionLabel":"{{provider}} \xB7 {{scope}}\u5171\u4EAB","source.disconnected":"{{label}} \xB7 \u672A\u8FDE\u63A5","materials.importWith":"\u4F7F\u7528 {{editor}} \u5BFC\u5165","materials.chooseArtifact":"\u9009\u62E9 {{title}}","materials.artifactVersion":"{{title}} \u7684\u7248\u672C","materials.selected":"\u5DF2\u9009\u62E9 {{count}} \u9879","materials.selected_one":"\u5DF2\u9009\u62E9 {{count}} \u9879","materials.selected_other":"\u5DF2\u9009\u62E9 {{count}} \u9879","common.pageNumber":"\u7B2C {{page}} \u9875","history.restoreTitle":"\u6062\u590D\u201C{{title}}\u201D\uFF1F","editor.people":"{{count}} \u4EBA\u5728\u7EBF\uFF1A{{names}}","common.workbench":"Workbench","materials.fileSize":"{{size}} KB","common.version":"v{{version}}","history.versionMeta":"{{date}} \xB7 v{{version}}","create.document":"\u521B\u5EFA\u6587\u6863","catalog.create":"\u65B0\u5EFA{{type}}","catalog.permissions":"\u5185\u5BB9\u5F52\u5C5E\u4E8E\u5F53\u524D\u9879\u76EE\uFF0C\u4E0E\u9879\u76EE\u6210\u5458\u5171\u4EAB\u3002","catalog.resource":"\u9879\u76EE\u8D44\u6E90","catalog.more":"\u52A0\u8F7D\u66F4\u591A\u8D44\u6E90","catalog.rename":"\u91CD\u547D\u540D","catalog.openWith":"\u6253\u5F00\u65B9\u5F0F","catalog.recycleDescription":"\u5C06\u201C{{title}}\u201D\u79FB\u5165\u56DE\u6536\u7AD9\uFF1F\u7F16\u8F91\u5C06\u505C\u6B62\uFF0C\u5DF2\u53D1\u5E03\u7684\u5206\u4EAB\u94FE\u63A5\u5C06\u64A4\u9500\uFF0C\u6E90\u6587\u4EF6\u4E0E\u7248\u672C\u4F1A\u4FDD\u7559\u3002","catalog.restoreDescription":"\u6062\u590D\u201C{{title}}\u201D\u5E76\u7EE7\u7EED\u7F16\u8F91\u3002\u4E4B\u524D\u7684\u5206\u4EAB\u94FE\u63A5\u4E0D\u4F1A\u81EA\u52A8\u91CD\u65B0\u53D1\u5E03\u3002","catalog.move":"\u79FB\u52A8\u5230\u6587\u4EF6\u5939","catalog.moveDescription":"\u8C03\u6574\u8D44\u6E90\u5728\u5F53\u524D\u7A7A\u95F4\u4E2D\u7684\u4F4D\u7F6E\uFF0C\u4FDD\u7559\u8D44\u6E90\u8EAB\u4EFD\u3001\u6E90\u6587\u4EF6\u5305\u548C\u5171\u4EAB\u94FE\u63A5\u3002","catalog.folderNotEmpty":"\u8BF7\u5148\u79FB\u51FA\u6B64\u6587\u4EF6\u5939\u4E2D\u7684\u8D44\u6E90\uFF0C\u518D\u56DE\u6536\u6587\u4EF6\u5939\u3002","knowledge.searchQuery":"\u68C0\u7D22\u5DF2\u7D22\u5F15\u5185\u5BB9","knowledge.searchAction":"\u641C\u7D22","catalog.editorDefaults":"\u9ED8\u8BA4\u7F16\u8F91\u5668","catalog.editorDefaultsDescription":"\u672C\u6B21\u6253\u5F00\u65B9\u5F0F\u4F18\u5148\uFF0C\u5176\u6B21\u4F9D\u6B21\u4F7F\u7528\u5185\u5BB9\u3001\u9879\u76EE\u3001\u7EC4\u7EC7\u7684\u9ED8\u8BA4\u7F16\u8F91\u5668\u3002\u53EA\u5141\u8BB8\u4F7F\u7528\u517C\u5BB9\u5F53\u524D\u6A21\u578B\u7684\u7F16\u8F91\u5668\u3002","catalog.defaultScope":"\u9002\u7528\u8303\u56F4","catalog.defaultEditor":"\u7F16\u8F91\u5668","catalog.inheritEditor":"\u7EE7\u627F\u9ED8\u8BA4\u8BBE\u7F6E","catalog.scope.resource":"\u5F53\u524D\u5185\u5BB9","catalog.scope.project":"\u5F53\u524D\u9879\u76EE\u7684\u6B64\u7C7B\u6A21\u578B","catalog.scope.organization":"\u5F53\u524D\u7EC4\u7EC7\u7684\u6B64\u7C7B\u6A21\u578B","catalog.unavailable":"\u5185\u5BB9\u63D0\u4F9B\u8005\u6682\u4E0D\u53EF\u7528","catalog.unavailableDescription":"\u9879\u76EE\u4E2D\u7684\u6E90\u6587\u4EF6\u4ECD\u88AB\u4FDD\u7559\u3002\u91CD\u65B0\u542F\u7528\u63D0\u4F9B\u8005\u540E\u53EF\u7EE7\u7EED\u7F16\u8F91\uFF0C\u4E5F\u53EF\u4EE5\u4E0B\u8F7D\u4FDD\u7559\u7684\u6E90\u5907\u4EFD\u3002\u5907\u4EFD\u53EF\u80FD\u65E9\u4E8E\u6700\u540E\u7684\u7F16\u8F91\u72B6\u6001\u3002","catalog.downloadBackup":"\u4E0B\u8F7D\u6E90\u5907\u4EFD","knowledge.pending":"\u5F85\u540C\u6B65","knowledge.processing":"\u7D22\u5F15\u4E2D","knowledge.ready":"\u5DF2\u5C31\u7EEA","knowledge.failed":"\u7D22\u5F15\u5931\u8D25","knowledge.failureNote":"\u7D22\u5F15\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u540C\u6B65\u91CD\u8BD5\u3002","catalog.duplicate":"\u521B\u5EFA\u526F\u672C","catalog.copyTitle":"{{title}} \xB7 \u526F\u672C","catalog.implementation":"\u521B\u5EFA\u5B9E\u73B0","catalog.startFrom":"\u521D\u59CB\u5185\u5BB9","catalog.blank":"\u7A7A\u767D\u6587\u6863","catalog.creationMode":"\u521B\u5EFA\u540E","catalog.editMyself":"\u81EA\u5DF1\u7F16\u8F91","catalog.withAssistant":"\u4EA4\u7ED9 Assistant \u751F\u6210","catalog.brief":"\u5E0C\u671B\u751F\u6210\u4EC0\u4E48\u5185\u5BB9\uFF1F","catalog.assistantNotice":"\u5C06\u9700\u6C42\u53D1\u9001\u7ED9\u5F53\u524D Assistant\uFF0C\u4F7F\u7528\u5176\u5DF2\u914D\u7F6E\u7684\u80FD\u529B\u548C\u6743\u9650\u3002","catalog.generate":"\u521B\u5EFA\u5E76\u53D1\u9001\u7ED9 Assistant","catalog.generatePrompt":"\u8BF7\u7F16\u8F91\u5F53\u524D\u9879\u76EE\u4E2D\u5DF2\u521B\u5EFA\u7684\u8D44\u6E90\u201C{{title}}\u201D\uFF08contentId\uFF1A{{contentId}}\uFF09\u3002\u5148\u8BFB\u53D6\u73B0\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5DF2\u914D\u7F6E\u7684\u7C7B\u578B\u5DE5\u5177\u7F16\u8F91\u3002\u4E0D\u8981\u53E6\u5EFA\u526F\u672C\u6216\u53D1\u5E03\u3002\u9700\u6C42\uFF1A{{prompt}}","library.listView":"\u5217\u8868\u89C6\u56FE","library.gridView":"\u7F51\u683C\u89C6\u56FE","library.state":"\u6743\u9650 / \u540C\u6B65","catalog.projectAccess":"\u9879\u76EE\u6210\u5458\u5171\u4EAB","catalog.readOnly":"\u53EA\u8BFB","catalog.synced":"\u6E90\u6587\u4EF6\u5DF2\u540C\u6B65","catalog.pending":"\u6E90\u6587\u4EF6\u540C\u6B65\u4E2D","catalog.failed":"\u6E90\u6587\u4EF6\u540C\u6B65\u5931\u8D25\uFF0C\u7B49\u5F85\u91CD\u8BD5","catalog.sourceRevision":"\u6E90\u6587\u4EF6\u7248\u672C\uFF1A{{revision}}","catalog.outlinePreview":"\u7ED3\u6784\u9884\u89C8"};var Be=Fg({en:Kk,"zh-Hans":Xk}),C=Be.t,it=()=>df(Be),yn=(e="")=>Wb(Be,e);var Zk="xpertai.remote_component",IN=I.object({channel:I.literal(Zk),protocolVersion:I.literal(1),type:I.string(),instanceId:I.string().optional(),scopeRevision:I.number().optional(),requestId:I.string().optional(),data:I.unknown(),result:I.unknown(),message:I.string().optional(),code:I.string().optional(),event:I.object({type:I.string(),data:I.object({revision:I.number().int().nonnegative().optional()}).optional()}).optional(),locale:I.string().optional(),theme:I.object({mode:I.enum(["light","dark"]).optional(),tokens:I.record(I.string()).optional()}).optional()}).passthrough(),aa=null,bN=0,wn=new Map;function rv(e,t={}){window.parent.postMessage({channel:Zk,protocolVersion:1,...aa,type:e,...t},"*")}function Qk(e){let t,a,r=!1,o=0,n,s=()=>{r||(rv("ready"),++o<60&&(n=setTimeout(s,1e3)))},i=()=>{for(let u of wn.values())clearTimeout(u.timer),u.reject(new DOMException(C("bridge.contextChanged"),"AbortError"));wn.clear()},l=u=>{if(u.source!==window.parent)return;let c=IN.safeParse(u.data);if(!c.success)return;let d=c.data;if(d.type==="init"){if(!d.instanceId)return;r=!0,clearTimeout(n),Be.setLocale(d.locale);let h=!aa||d.instanceId!==aa.instanceId||d.scopeRevision!==aa.scopeRevision;h&&(i(),aa={instanceId:d.instanceId,scopeRevision:d.scopeRevision});let v=d.theme?.tokens??{};document.documentElement.classList.toggle("dark",d.theme?.mode==="dark");for(let[m,p]of Object.entries(v)){let g=m.startsWith("--xui-")?m:"--xui-"+m.replace(/[A-Z]/g,y=>"-"+y.toLowerCase());document.documentElement.style.setProperty(g,p)}Nf();let x={colorBackground:"--background",colorForeground:"--foreground",colorBorder:"--border",colorMuted:"--muted",colorMutedForeground:"--muted-foreground",colorSecondary:"--secondary",colorPrimary:"--ring"};for(let[m,p]of Object.entries(x))v[m]&&document.documentElement.style.setProperty(p,v[m]);document.documentElement.style.colorScheme=d.theme?.mode??"light";let w=JSON.stringify(d.initialQuery);a=d.initialQuery,(h||w!==t)&&(t=w,e(d.initialQuery)),rv("resize",{height:window.innerHeight,viewportBound:!0});return}if(aa&&d.instanceId===aa.instanceId&&d.type==="hostEvent"&&d.event?.type==="view.context.changed"){let h=d.event.data?.revision;h!==void 0&&h>(aa.scopeRevision??-1)&&(i(),aa={...aa,scopeRevision:h},e(a));return}if(d.instanceId!==aa?.instanceId||d.scopeRevision!==aa?.scopeRevision&&d.type!=="error"||!d.requestId)return;let f=wn.get(d.requestId);f&&(clearTimeout(f.timer),wn.delete(d.requestId),d.type==="error"?f.reject(new Error(d.message??d.code??C("bridge.requestFailed"))):f.resolve(d.data??d.result))};return window.addEventListener("message",l),s(),()=>{r=!0,clearTimeout(n),window.removeEventListener("message",l);for(let u of wn.values())clearTimeout(u.timer),u.reject(Be.error("bridge.closed"));wn.clear(),aa=null}}function el(e,t){if(!aa)return Promise.reject(Be.error("bridge.notConnected"));let a=`spaces-${++bN}`;return new Promise((r,o)=>{let n=setTimeout(()=>{wn.delete(a),o(Be.error("bridge.timeout"))},12e4);wn.set(a,{resolve:r,reject:o,timer:n}),rv(e,{requestId:a,...t})})}var Yk=e=>el("requestData",{query:e});async function Ee(e,t){let a=I.object({success:I.boolean(),data:I.unknown(),message:I.string().optional()}).parse(await el("executeAction",{actionKey:e,input:t}));if(!a.success)throw new Error(a.message??C("common.actionFailed"));return a.data}async function Jk(e,t,a="file.upload"){let r=I.object({success:I.boolean(),data:I.unknown()}).parse(await el("executeFileAction",{actionKey:a,input:e,file:{name:t.name,type:t.type,size:t.size,buffer:await t.arrayBuffer()}}));if(!r.success)throw Be.error("bridge.uploadFailed");return r.data}async function e0(e){let t=I.object({url:I.string(),fileName:I.string()}).parse(await el("requestFileAccess",{fileKey:e,purpose:"download"})),a=document.createElement("a");return a.href=t.url,a.download=t.fileName,a.rel="noopener",document.body.append(a),a.click(),a.remove(),t}var Tu=e=>el("invokeClientCommand",{commandKey:"assistant.context.set",payload:e});async function tl(e,t,a){let r=aa,o=await ov("workbench.content.resolve",{resourceId:e,...t?{providerKey:t}:{},...a?{editorKey:a}:{}});if(r!==aa)throw new DOMException(C("bridge.contextChanged"),"AbortError");let{navigation:n}=I.object({navigation:I.object({target:I.literal("workbench.view"),viewKey:I.string().min(1),selectionId:t==="platform.content.catalog"?I.string().min(1):I.literal(e),parameters:I.record(I.unknown()).optional()})}).parse(o);return ov("workbench.navigation.open",n)}async function ov(e,t){let a=await el("invokeClientCommand",{commandKey:e,payload:t}),r=I.object({success:I.boolean(),message:I.string().optional(),code:I.string().optional()}).parse(a);if(!r.success)throw new Error(r.message??r.code??C("bridge.editorUnavailable"));return a}var t0=(e,t)=>ov("assistant.chat.send_message",{text:e,clientMessageId:t});var Sr=F(fe(),1);function a0({item:e,onClose:t,run:a,busy:r}){return it(),(0,Sr.jsx)(mt,{open:!0,onOpenChange:t,children:(0,Sr.jsxs)(ht,{children:[(0,Sr.jsxs)(gt,{children:[(0,Sr.jsx)(vt,{children:C("catalog.unavailable")}),(0,Sr.jsx)(xt,{children:C("catalog.unavailableDescription")})]}),(0,Sr.jsx)("p",{children:e.title}),(0,Sr.jsxs)(Ot,{children:[(0,Sr.jsx)(G,{variant:"outline",onClick:t,children:C("common.cancel")}),(0,Sr.jsx)(G,{disabled:r,onClick:()=>{a(async()=>{let o=I.object({fileName:I.string(),content:I.string()}).parse(await Ee("catalog.backup",{contentId:e.id})),n=URL.createObjectURL(new Blob([o.content],{type:"application/json"})),s=document.createElement("a");s.href=n,s.download=o.fileName,s.click(),window.setTimeout(()=>URL.revokeObjectURL(n),1e3)})},children:C("catalog.downloadBackup")})]})]})})}var al=F(ee(),1);var nt=F(fe(),1),kN=I.array(I.object({scope:I.enum(["resource","project","organization"]),editorKey:I.string().nullable(),revision:I.number(),canSet:I.boolean()}));function r0({item:e,onClose:t,run:a,busy:r}){it();let[o,n]=(0,al.useState)([]),[s,i]=(0,al.useState)("resource"),[l,u]=(0,al.useState)("inherit"),c=o.find(d=>d.scope===s);return(0,al.useEffect)(()=>{a(async()=>{let d=kN.parse(await Ee("catalog.preferences",{contentId:e.id}));n(d),u(d[0]?.editorKey??"inherit")})},[e.id]),(0,nt.jsx)(mt,{open:!0,onOpenChange:t,children:(0,nt.jsxs)(ht,{children:[(0,nt.jsxs)(gt,{children:[(0,nt.jsx)(vt,{children:C("catalog.editorDefaults")}),(0,nt.jsx)(xt,{children:C("catalog.editorDefaultsDescription")})]}),(0,nt.jsx)(wt,{children:C("catalog.defaultScope")}),(0,nt.jsxs)(ba,{value:s,onValueChange:d=>{i(d),u(o.find(f=>f.scope===d)?.editorKey??"inherit")},children:[(0,nt.jsx)(Ra,{children:(0,nt.jsx)(ka,{})}),(0,nt.jsx)(Pa,{children:o.map(d=>(0,nt.jsx)(Pt,{value:d.scope,children:C(`catalog.scope.${d.scope}`)},d.scope))})]}),(0,nt.jsx)(wt,{children:C("catalog.defaultEditor")}),(0,nt.jsxs)(ba,{value:l,onValueChange:u,disabled:!c?.canSet,children:[(0,nt.jsx)(Ra,{children:(0,nt.jsx)(ka,{})}),(0,nt.jsxs)(Pa,{children:[(0,nt.jsx)(Pt,{value:"inherit",children:C("catalog.inheritEditor")}),e.compatibleEditors?.map(d=>(0,nt.jsx)(Pt,{value:d.key,children:d.title},d.key))]})]}),(0,nt.jsxs)(Ot,{children:[(0,nt.jsx)(G,{variant:"outline",onClick:t,children:C("common.cancel")}),(0,nt.jsx)(G,{disabled:r||!c?.canSet,onClick:()=>{a(async()=>{await Ee("catalog.preference.set",{contentId:e.id,scope:s,editorKey:l==="inherit"?null:l,expectedRevision:c.revision}),t()})},children:C("common.save")})]})]})})}var Df=F(ee(),1);var Mu=F(ee(),1);var To=I.object({importOrigin:I.object({provider:I.string(),documentId:I.string(),url:I.string().nullable(),revision:I.string(),importedAt:I.string(),warnings:I.array(I.string())}).nullable().optional(),canWrite:I.boolean().optional(),sourceSync:I.object({status:I.enum(["synced","pending","failed"]),revision:I.string().optional()}).optional(),preview:I.object({kind:I.literal("outline"),revision:I.string(),lines:I.array(I.string())}).optional(),resourceRevision:I.string().optional(),allowedActions:I.array(I.string()).optional(),availability:I.enum(["available","provider-unavailable"]).optional(),resourceTypeId:I.string().optional(),compatibleEditors:I.array(I.object({key:I.string(),title:I.string()})).optional(),id:I.string(),spaceId:I.string().optional(),parentId:I.string().nullable().optional(),parentPageId:I.string().nullable().optional(),editorKey:I.string().nullable().optional(),title:I.string(),kind:I.string().optional(),version:I.number(),role:I.string().optional(),deleted:I.boolean().optional(),filePath:I.string().nullable().optional(),updatedAt:I.string().optional(),syncStatus:I.string().optional(),knowledgebaseId:I.string().nullable().optional()}),o0=I.object({meta:I.object({root:To,items:I.array(To),role:I.string(),canWrite:I.boolean(),canManage:I.boolean(),project:I.object({id:I.string(),title:I.string()})})}),RN=I.object({id:I.string(),status:I.string(),patch:I.object({before:I.string(),after:I.string(),reason:I.string()})}),PN=I.object({id:I.string(),body:I.string(),resolved:I.boolean()}),n0=I.object({id:I.string(),sequence:I.number(),label:I.string(),createdAt:I.string().optional()}),DN=n0.extend({markdown:I.string(),blocks:I.array(I.object({id:I.string(),kind:I.string(),text:I.string()}))}),Lr=e=>{if(e instanceof Error&&e.name==="AbortError")return"";let t=e instanceof Error?e.message:C("error.retry");return/folder_contains_resources/u.test(t)?Be.message("catalog.folderNotEmpty"):/conflict|sources_changed|file.changed/iu.test(t)?Be.message("error.conflict"):/denied|Forbidden|403/u.test(t)?Be.message("error.denied"):/ai_timeout|aborted|timeout/iu.test(t)?Be.message("error.timeout"):/model|copilot/iu.test(t)?Be.message("error.model"):e instanceof Error?e:Be.message("error.retry")},s0=e=>({page:C("kind.page"),folder:C("kind.folder"),file:C("kind.file"),artifact:C("kind.artifact")})[e??"file"]??C("kind.file"),rl=e=>e?Be.date(e,{month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"}):"";var we=F(fe(),1),TN=()=>[{title:C("templates.project.title"),description:C("templates.project.description"),content:C("templates.project.content")},{title:C("templates.meeting.title"),description:C("templates.meeting.description"),content:C("templates.meeting.content")},{title:C("templates.weekly.title"),description:C("templates.weekly.description"),content:C("templates.weekly.content")}];function ks({items:e,value:t,onChange:a,disabled:r}){return it(),(0,we.jsxs)("div",{className:"form-field",children:[(0,we.jsx)(wt,{htmlFor:"folder-location",children:C("folder.location")}),(0,we.jsxs)(ba,{disabled:r,value:t||"root",onValueChange:o=>a(o==="root"?"":o),children:[(0,we.jsx)(Ra,{id:"folder-location",className:"w-full",children:(0,we.jsx)(ka,{})}),(0,we.jsxs)(Pa,{position:"popper",children:[(0,we.jsx)(Pt,{value:"root",children:C("folder.root")}),e.filter(o=>o.kind==="folder"&&!o.deleted).map(o=>(0,we.jsx)(Pt,{value:o.id,children:o.filePath??o.title},o.id))]})]})]})}function i0({root:e,items:t,initialParent:a,kind:r,editors:o,editing:n,onClose:s,onDone:i,run:l,busy:u}){it();let c=TN(),[d,f]=(0,Mu.useState)(0),[h,v]=(0,Mu.useState)(!1),[x,w]=(0,Mu.useState)(n?.title??""),[m,p]=(0,Mu.useState)(n?.parentId??a),g=r==="page"&&!n;return(0,we.jsx)(mt,{open:!0,onOpenChange:y=>{y||s()},children:(0,we.jsxs)(ht,{className:g?"space-dialog template-dialog":"space-dialog",children:[(0,we.jsxs)(gt,{children:[(0,we.jsx)(vt,{children:n?C("create.renameMove"):g?C("create.page"):r==="folder"?C("create.folder"):C("create.document")}),(0,we.jsx)(xt,{children:g?C("create.pageDescription"):C("library.storageNote")})]}),g&&(0,we.jsxs)(yf,{value:h?"blank":"templates",onValueChange:y=>v(y==="blank"),children:[(0,we.jsxs)(wf,{"aria-label":C("create.startingPoint"),children:[(0,we.jsx)(qi,{value:"templates",children:C("create.templates")}),(0,we.jsx)(qi,{value:"blank",children:C("create.blank")})]}),(0,we.jsx)(Wi,{value:"templates",children:(0,we.jsx)("div",{className:"template-grid",children:c.map((y,L)=>(0,we.jsxs)(G,{type:"button",variant:d===L?"secondary":"outline",className:"template-option","aria-pressed":d===L,onClick:()=>{f(L),x||w(y.title)},children:[(0,we.jsxs)("div",{className:`template-paper ${d===L?"chosen":""}`,children:[d===L&&(0,we.jsx)(Qr,{className:"template-check"}),(0,we.jsx)("strong",{children:y.title}),y.content.split(`
166
166
 
167
- `).slice(0,6).map((I,k)=>I.startsWith("## ")?(0,we.jsx)("h4",{children:I.slice(3)},k):(0,we.jsx)("p",{children:I},k))]}),(0,we.jsx)("h3",{children:y.title}),(0,we.jsx)("p",{children:y.description})]},y.title))})}),(0,we.jsx)(Si,{value:"blank",children:(0,we.jsx)("p",{className:"muted",children:S("create.blankDescription")})})]}),(0,we.jsxs)("form",{className:"create-form",onSubmit:y=>{y.preventDefault(),l(async()=>{let C=o.find(k=>k.key===r),I=n?await pt("item.edit",{itemId:n.id,expectedVersion:n.version,title:x,parentId:p||null}):await pt(C?"editor.create":"item.create",{spaceId:e.id,parentId:p||null,title:x,...C?{editorKey:C.key}:{kind:r,...g?{content:h?"":d[c].content}:{}}});await i(Xc.parse(I)),s()})},children:[(0,we.jsxs)("div",{className:"form-columns",children:[(0,we.jsxs)(oo,{children:[g?S("create.pageName"):S("common.name"),(0,we.jsx)(Ya,{required:!0,autoFocus:!0,maxLength:200,value:x,onChange:y=>w(y.target.value),placeholder:S("create.namePlaceholder")})]}),(0,we.jsx)(kg,{items:t.filter(y=>y.id!==n?.id),value:p,onChange:m})]}),(0,we.jsxs)(Ko,{children:[(0,we.jsxs)("span",{className:"muted mr-auto flex items-center gap-2",children:[(0,we.jsx)(_r,{}),S("create.permissions")]}),(0,we.jsx)(de,{type:"button",variant:"outline",onClick:s,children:S("common.cancel")}),(0,we.jsx)(de,{disabled:u,children:n?S("common.save"):g?S("create.createPage"):S("common.create")})]})]})]})})}var Qt=N(te(),1);var re=N(ke(),1),TO=R.object({items:R.array(R.object({id:R.string(),title:R.string().nullable().optional(),versions:R.array(R.object({id:R.string(),version:R.number().optional(),fileName:R.string().nullable().optional()}))})),total:R.number()});function pk({root:e,items:t,parentId:a,editors:r,onClose:o,onDone:n,run:s,busy:i}){Yt();let l=(0,Qt.useRef)(null),[u,d]=(0,Qt.useState)("local"),[c,f]=(0,Qt.useState)(a),[h,v]=(0,Qt.useState)([]),[x,w]=(0,Qt.useState)(""),[p,m]=(0,Qt.useState)([]),[g,y]=(0,Qt.useState)({}),[C,I]=(0,Qt.useState)(""),[k,b]=po(""),[T,A]=(0,Qt.useState)(1),[D,E]=(0,Qt.useState)(0),[z,O]=(0,Qt.useState)(!1);return(0,Qt.useEffect)(()=>{if(u!=="artifacts")return;let _=!0;return O(!0),b(""),pt("artifact.list",{page:T}).then(B=>{let j=TO.parse(B);_&&(m(j.items),E(j.total))}).catch(B=>_&&b(kr(B))).finally(()=>_&&O(!1)),()=>{_=!1}},[u,T]),(0,re.jsx)(xr,{open:!0,onOpenChange:_=>{_||o()},children:(0,re.jsxs)(yr,{className:"space-dialog materials-dialog",children:[(0,re.jsxs)(wr,{children:[(0,re.jsx)(Cr,{children:S("materials.title")}),(0,re.jsx)(Sr,{children:S("materials.description")})]}),(0,re.jsxs)(jc,{value:u,onValueChange:d,children:[(0,re.jsxs)(Vc,{"aria-label":S("materials.source"),children:[(0,re.jsx)(Ci,{value:"local",children:S("materials.local")}),(0,re.jsx)(Ci,{value:"artifacts",children:S("materials.assistantArtifacts")})]}),(0,re.jsxs)(Si,{value:"local",children:[(0,re.jsxs)("div",{className:"upload-area",children:[(0,re.jsx)(gs,{}),(0,re.jsx)("strong",{children:S("materials.chooseFiles")}),(0,re.jsx)("span",{children:S("materials.fileLimit")}),(0,re.jsx)(de,{variant:"outline",type:"button",onClick:()=>l.current?.click(),children:S("materials.chooseFiles")}),(0,re.jsx)(Ya,{ref:l,className:"hidden",type:"file",multiple:!0,onChange:_=>v(Array.from(_.target.files??[]))})]}),h.map(_=>(0,re.jsxs)("p",{children:[_.name," ",(0,re.jsx)("span",{className:"muted",children:S("materials.fileSize",{size:Fe.number(Math.ceil(_.size/1024))})})]},_.name)),r.length>0&&(0,re.jsxs)("div",{className:"form-field",children:[(0,re.jsx)(oo,{htmlFor:"import-editor",children:S("materials.editor")}),(0,re.jsxs)(jn,{value:x||"original",onValueChange:_=>w(_==="original"?"":_),children:[(0,re.jsx)(qn,{id:"import-editor",className:"w-full",children:(0,re.jsx)(Vn,{})}),(0,re.jsxs)(Wn,{position:"popper",children:[(0,re.jsx)(no,{value:"original",children:S("materials.keepOriginal")}),r.map(_=>(0,re.jsx)(no,{value:_.key,children:S("materials.importWith",{editor:_.title})},_.key))]})]})]})]}),(0,re.jsxs)(Si,{value:"artifacts",children:[(0,re.jsxs)("div",{className:"search-field",children:[(0,re.jsx)(xa,{}),(0,re.jsx)(Ya,{"aria-label":S("materials.search"),placeholder:S("materials.search"),value:C,onChange:_=>I(_.target.value)})]}),k&&(0,re.jsx)("p",{role:"alert",children:k}),z&&(0,re.jsx)("p",{role:"status",children:S("materials.loading")}),(0,re.jsxs)("div",{className:"artifact-list",children:[p.filter(_=>(_.title??"").toLowerCase().includes(C.toLowerCase())).map(_=>(0,re.jsxs)("div",{className:`artifact-option ${g[_.id]?"checked":""}`,children:[(0,re.jsx)(zc,{"aria-label":S("materials.chooseArtifact",{title:_.title??S("materials.untitled")}),disabled:!_.versions.length,checked:!!g[_.id],onCheckedChange:B=>y(j=>{let W={...j};return B===!0?W[_.id]=_.versions[0].id:delete W[_.id],W})}),(0,re.jsx)(Jt,{}),(0,re.jsxs)("span",{children:[(0,re.jsx)("strong",{children:_.title??S("materials.untitled")}),(0,re.jsx)("small",{children:_.versions[0]?.fileName??S("materials.noFileVersion")})]}),(0,re.jsxs)(jn,{disabled:!_.versions.length,value:g[_.id]??_.versions[0]?.id??"",onValueChange:B=>y(j=>({...j,[_.id]:B})),children:[(0,re.jsx)(qn,{"aria-label":S("materials.artifactVersion",{title:_.title??S("materials.untitled")}),children:(0,re.jsx)(Vn,{placeholder:S("materials.noVersion")})}),(0,re.jsx)(Wn,{position:"popper",children:_.versions.map((B,j)=>(0,re.jsx)(no,{value:B.id,children:S("common.version",{version:B.version??_.versions.length-j})},B.id))})]})]},_.id)),!z&&!k&&!p.length&&(0,re.jsx)("p",{className:"empty-message",children:S("materials.empty")})]}),D>40&&(0,re.jsxs)("div",{className:"row",children:[(0,re.jsx)(de,{variant:"outline",disabled:T===1,onClick:()=>A(T-1),children:S("common.previousPage")}),(0,re.jsx)("span",{children:S("common.pageNumber",{page:T})}),(0,re.jsx)(de,{variant:"outline",disabled:T*40>=D,onClick:()=>A(T+1),children:S("common.nextPage")})]}),(0,re.jsxs)("p",{className:"muted inline-note",children:[(0,re.jsx)(Dr,{}),S("materials.versionNote")]})]})]}),(0,re.jsx)(kg,{items:t,value:c,onChange:f}),(0,re.jsxs)(Ko,{children:[(0,re.jsx)("span",{className:"muted mr-auto",children:S("materials.selected",{count:u==="local"?h.length:Object.keys(g).length})}),(0,re.jsx)(de,{variant:"outline",onClick:o,children:S("common.cancel")}),(0,re.jsx)(de,{disabled:i||!(u==="local"?h.length:Object.keys(g).length),onClick:()=>{s(async()=>{if(u==="local")for(let _ of h)await ak({spaceId:e.id,parentId:c||null,...x?{editorKey:x}:{}},_,x?"editor.import":"file.upload");else for(let[_,B]of Object.entries(g))await pt("artifact.collect",{spaceId:e.id,parentId:c||null,artifactId:_,versionId:B});await n(),o()})},children:S("materials.add")})]})]})})}var _i=N(te(),1);var MO=N(ke(),1);var wt=N(ke(),1);var DO=R.object({knowledgebaseId:R.string().nullable(),items:R.array(R.object({itemId:R.string(),title:R.string(),status:R.string(),error:R.string().nullable(),document:R.object({status:R.string().nullable().optional()}).nullable()}))});function mk({root:e,canWrite:t,canManage:a,run:r,busy:o}){Yt();let[n,s]=(0,_i.useState)(null),[i,l]=po(""),u=(0,_i.useCallback)(async()=>s(DO.parse(await pt("knowledge.status",{spaceId:e.id}))),[e.id]);return(0,_i.useEffect)(()=>{u().catch(d=>l(kr(d)))},[u]),(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)("p",{className:"muted",children:S("knowledge.description")}),i&&(0,wt.jsx)("p",{role:"alert",children:i}),n?.knowledgebaseId?(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)("p",{children:S("knowledge.linked")}),(0,wt.jsxs)(de,{variant:"outline",disabled:!t||o,onClick:()=>{r(async()=>{await pt("knowledge.refresh",{spaceId:e.id}),await u()})},children:[(0,wt.jsx)(Ar,{}),S("knowledge.sync")]}),(0,wt.jsx)(de,{variant:"ghost",onClick:()=>{r(u)},children:S("knowledge.refresh")})]}):(0,wt.jsx)(de,{disabled:!a||o,onClick:()=>{r(async()=>{await pt("knowledge.enable",{spaceId:e.id}),await u()})},children:S("knowledge.enable")}),n?.items.map(d=>(0,wt.jsxs)("div",{className:"index-item",children:[(0,wt.jsx)("strong",{children:d.title}),(0,wt.jsx)("small",{children:d.document?.status??d.status}),d.error&&(0,wt.jsx)("p",{role:"status",children:d.error})]},d.itemId))]})}var L=N(ke(),1),hk=({kind:e})=>e==="folder"?(0,L.jsx)(or,{}):(0,L.jsx)(Jt,{});function _O(){Yt();let e=(0,He.useRef)(null),[t,a]=(0,He.useState)(null),[r,o]=(0,He.useState)([]),[n,s]=(0,He.useState)(null),[i,l]=(0,He.useState)(!1),[u,d]=(0,He.useState)(null),[c,f]=(0,He.useState)(null),[h,v]=(0,He.useState)("all"),[x,w]=(0,He.useState)(""),[p,m]=(0,He.useState)(!1),[g,y]=(0,He.useState)({canWrite:!1,canManage:!1}),[C,I]=(0,He.useState)(!1),[k,b]=(0,He.useState)(!0),[T,A]=(0,He.useState)([]),[D,E]=(0,He.useState)(!0),[z,O]=po(""),[_,B]=(0,He.useState)(!1),[j,W]=(0,He.useState)(0),[ee,P]=(0,He.useState)(null),[se,ie]=(0,He.useState)(null),H=M=>{window.setTimeout(()=>ie(M),0)},{canWrite:ve,canManage:Se}=g,fe=async M=>{B(!0),O("");try{await M()}catch(ye){O(kr(ye))}finally{B(!1)}},Ae=(0,He.useCallback)(async(M=!1)=>{b(!0);try{let ye=await tk({selectionId:"root",parameters:{trash:M}});if(R.object({meta:R.object({requiresProject:R.literal(!0)})}).safeParse(ye).success)return I(!0),a(null),o([]),!1;let Tt=nk.parse(ye).meta;return I(!1),a(Tt.root),o(Tt.items),y(Tt),m(M),!0}finally{b(!1)}},[]),K=async()=>{await Ae(p)};(0,He.useEffect)(()=>ek(M=>{l(R.object({parameters:R.object({presentation:R.literal("navigation")})}).safeParse(M).success),d(null),E(!0),O(""),P(null),Ae().then(async ye=>{ye&&A(R.array(R.object({key:R.string(),title:R.string()})).parse(await pt("editor.list",{})))}).catch(ye=>O(kr(ye)))}),[Ae]),(0,He.useEffect)(()=>{if(t)return Lg({key:"spaces",context:{spaceId:t.id,itemId:u?.id,filePath:u?.filePath,title:u?.title,kind:u?.kind,saved:D}}).catch(()=>{}),()=>{Lg({key:"spaces",clear:!0}).catch(()=>{})}},[t?.id,u?.id,D]);function oe(M){if(!D){O(Fe.message("navigation.waitForSave"));return}if(M?.editorKey&&!M.deleted){fe(async()=>{try{await ok(M.id,"spaces")}catch(ye){throw d(M),ye}});return}M?.kind==="folder"?(f(M.id),d(null),P(null)):(d(M),W(ye=>ye+1))}function Je(M,ye=null){D&&(d(null),f(ye),v(M),P(null),p&&fe(()=>Ae(!1)))}let De=r.filter(M=>(!c||M.parentId===c)&&(h==="all"||(h==="page"?M.kind==="page":M.kind!=="page"&&M.kind!=="folder"))&&(M.title+" "+(M.filePath??"")).toLowerCase().includes(x.toLowerCase())).sort((M,ye)=>(ye.updatedAt??"").localeCompare(M.updatedAt??"")),Oe=p?S("navigation.trash"):c?r.find(M=>M.id===c)?.title??S("kind.folder"):h==="page"?S("kind.page"):h==="files"?S("navigation.files"):S("navigation.all");return(0,L.jsxs)("div",{className:`app ${i?"compact-navigation":""}`,children:[z&&(0,L.jsxs)("div",{className:"notice",role:"alert",children:[(0,L.jsx)("span",{children:z}),(0,L.jsx)(de,{variant:"ghost",size:"icon","aria-label":S("common.dismiss"),onClick:()=>O(""),children:(0,L.jsx)(Or,{})})]}),_&&(0,L.jsx)("div",{className:"progress-message",role:"status",children:S("common.processing")}),C?(0,L.jsxs)("main",{className:"project-empty",children:[(0,L.jsx)(or,{}),(0,L.jsx)("h1",{children:S("project.choose")}),(0,L.jsx)("p",{children:S("project.chooseDescription")}),(0,L.jsx)("p",{className:"muted",children:S("project.sharing")}),(0,L.jsxs)(de,{variant:"outline",onClick:()=>{fe(()=>Ae())},children:[(0,L.jsx)(Ar,{}),S("common.reload")]})]}):(0,L.jsxs)("div",{className:"body",children:[(0,L.jsxs)("aside",{className:"tree","aria-label":S("navigation.label"),children:[(0,L.jsxs)("div",{className:"space-name",children:[(0,L.jsx)("h2",{children:S("space.title")}),(0,L.jsx)(de,{variant:"ghost",size:"icon","aria-label":S("navigation.search"),onClick:()=>document.getElementById("space-search")?.focus(),children:(0,L.jsx)(xa,{})})]}),(0,L.jsxs)("p",{className:"space-subtitle",children:[t?.title??S("common.opening"),S("space.sharedSuffix")]}),i&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ya,{"aria-label":S("navigation.findDocument"),placeholder:S("navigation.findDocument"),value:x,onChange:M=>w(M.target.value)}),(0,L.jsx)("div",{className:"compact-documents",children:De.filter(M=>M.kind==="page").map(M=>(0,L.jsxs)(de,{type:"button",variant:"ghost",className:"nav-item",title:M.filePath??M.title,onClick:()=>oe(M),children:[(0,L.jsx)(Jt,{}),(0,L.jsx)("span",{className:"truncate",children:M.title})]},M.id))})]}),(0,L.jsx)("nav",{children:[["all",S("navigation.all")],["page",S("kind.page")],["files",S("navigation.files")]].map(([M,ye])=>(0,L.jsxs)(de,{type:"button",variant:!u&&!c&&!p&&h===M?"secondary":"ghost",className:!u&&!c&&!p&&h===M?"nav-item selected":"nav-item",onClick:()=>Je(M),disabled:!D,children:[M==="all"?(0,L.jsx)(an,{}):M==="page"?(0,L.jsx)(Jt,{}):(0,L.jsx)(or,{}),ye]},M))}),(0,L.jsx)("p",{className:"nav-label",children:S("kind.folder")}),(0,L.jsx)("div",{className:"folder-tree",children:r.filter(M=>M.kind==="folder"&&!M.deleted).sort((M,ye)=>(M.filePath??M.title).localeCompare(ye.filePath??ye.title)).map(M=>(0,L.jsxs)(He.default.Fragment,{children:[(0,L.jsxs)(de,{type:"button",variant:c===M.id&&!u?"secondary":"ghost",className:`nav-item ${c===M.id&&!u?"selected":""}`,title:M.filePath??M.title,style:{paddingLeft:`calc(var(--spacing) * ${3+Math.min(4,(M.filePath?.split("/").length??1)-1)*4.5})`},onClick:()=>Je("all",M.id),disabled:!D,children:[(0,L.jsx)(or,{}),(0,L.jsx)("span",{className:"truncate",children:M.title})]}),u&&u.parentId===M.id&&(0,L.jsxs)(de,{type:"button",variant:"secondary",className:"nav-item selected nested",onClick:()=>oe(u),children:[(0,L.jsx)(Jt,{}),u.title]})]},M.id))}),(0,L.jsxs)("div",{className:"nav-bottom",children:[(0,L.jsxs)(de,{type:"button",variant:"ghost",className:`nav-item ${ee==="knowledge"?"selected":""}`,onClick:()=>P("knowledge"),children:[(0,L.jsx)(xa,{}),S("knowledge.title")]}),Se&&(0,L.jsxs)(de,{type:"button",variant:"ghost",className:`nav-item ${p?"selected":""}`,disabled:!D,onClick:()=>{fe(async()=>{d(null),f(null),P(null),await Ae(!p)})},children:[(0,L.jsx)(hs,{}),S("navigation.trash")]})]})]}),(0,L.jsx)("main",{className:`workspace ${u?"document-workspace":""}`,children:u?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("header",{className:"document-bar",children:[(0,L.jsx)(de,{variant:"ghost",size:"icon","aria-label":S("navigation.back"),onClick:()=>oe(null),children:(0,L.jsx)(fs,{})}),(0,L.jsx)("span",{className:"breadcrumb",children:u.filePath?.split("/").slice(0,-1).join(" / ")||S("navigation.all")}),(0,L.jsx)("span",{className:"save-state",children:D?ve?S("editor.saved"):S("editor.readOnly"):S("editor.saving")}),(0,L.jsxs)(Bc,{modal:!1,children:[(0,L.jsx)(Uc,{asChild:!0,children:(0,L.jsx)(de,{variant:"outline",size:"icon","aria-label":S("document.actions"),children:(0,L.jsx)(rr,{})})}),(0,L.jsxs)(Hc,{align:"end",children:[ve&&(0,L.jsx)(va,{disabled:!D,onSelect:()=>{s(u),H("edit")},children:S("document.renameMove")}),(0,L.jsx)(va,{onSelect:()=>H("access"),children:S("access.title")}),Se&&(0,L.jsx)(va,{disabled:!D,onSelect:()=>{fe(async()=>{await pt("item.edit",{itemId:u.id,expectedVersion:u.version,deleted:!p}),oe(null),await K()})},children:p?S("trash.restore"):S("trash.move")})]})]})]}),(0,L.jsxs)("article",{className:"document-canvas",children:[(0,L.jsx)("h1",{children:u.title}),(0,L.jsxs)("p",{className:"document-meta",children:[au(u.updatedAt),S("document.projectFileSuffix")]}),p?(0,L.jsx)("p",{className:"empty-message",children:S("trash.documentNotice")}):(0,L.jsxs)(L.Fragment,{children:[u.editorKey&&(0,L.jsxs)("div",{className:"file-preview",children:[(0,L.jsx)(Jt,{}),(0,L.jsx)("p",{children:S("document.editorUnavailable")}),(0,L.jsx)(de,{variant:"outline",onClick:()=>oe(u),children:S("document.reopenEditor")})]}),!u.editorKey&&(0,L.jsxs)("div",{className:"file-preview",children:[(0,L.jsx)(hk,{kind:u.kind}),(0,L.jsx)("p",{children:u.filePath??u.title}),(0,L.jsx)("p",{className:"muted",children:S("document.originalFormat")})]}),(0,L.jsx)("div",{className:"document-download",children:(0,L.jsxs)(ck,{fileKey:`item:${u.id}`,onError:M=>O(kr(M)),children:[(0,L.jsx)(ms,{}),S("document.download")]})})]})]})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("header",{className:"library-header",children:[(0,L.jsxs)("div",{children:[(0,L.jsx)("h1",{children:Oe}),(0,L.jsx)("p",{children:S("library.description")})]}),(0,L.jsxs)("div",{className:"library-actions",children:[(0,L.jsxs)(Eb,{className:"library-search",children:[(0,L.jsx)(Ob,{children:(0,L.jsx)(xa,{})}),(0,L.jsx)(Nb,{id:"space-search","aria-label":S("library.search"),placeholder:S("library.search"),value:x,onChange:M=>w(M.target.value)})]}),(0,L.jsxs)(de,{variant:"outline",onClick:()=>ie("access"),children:[(0,L.jsx)(_r,{}),S("access.title")]}),ve&&!p&&(0,L.jsxs)(Bc,{modal:!1,children:[(0,L.jsx)(Uc,{asChild:!0,children:(0,L.jsxs)(de,{ref:e,children:[(0,L.jsx)(go,{}),S("library.new"),(0,L.jsx)(Mr,{})]})}),(0,L.jsxs)(Hc,{align:"end",children:[(0,L.jsx)(va,{onSelect:()=>H("page"),children:S("kind.page")}),(0,L.jsx)(va,{onSelect:()=>H("folder"),children:S("kind.folder")}),T.map(M=>(0,L.jsx)(va,{onSelect:()=>H(M.key),children:M.title},M.key)),(0,L.jsx)(Fb,{}),(0,L.jsx)(va,{onSelect:()=>H("materials"),children:S("materials.title")}),(0,L.jsx)(va,{onSelect:()=>H("source"),children:S("source.title")})]})]})]})]}),(0,L.jsxs)("div",{className:"list-toolbar",children:[(0,L.jsx)("span",{children:S("library.recent")}),(0,L.jsx)(de,{variant:"ghost",size:"icon","aria-label":S("library.refresh"),disabled:_||k,onClick:()=>{fe(K)},children:(0,L.jsx)(Ar,{})})]}),k?(0,L.jsx)("div",{className:"empty-message",role:"status",children:S("library.loading")}):(0,L.jsxs)("div",{className:"table-scroll",children:[(0,L.jsxs)(zb,{className:"library-table",children:[(0,L.jsx)(Bb,{children:(0,L.jsxs)(xg,{children:[(0,L.jsx)(yi,{children:S("common.name")}),(0,L.jsx)(yi,{children:S("library.type")}),(0,L.jsx)(yi,{children:S("library.source")}),(0,L.jsx)(yi,{children:S("library.updated")}),(0,L.jsx)(yi,{children:(0,L.jsx)("span",{className:"sr-only",children:S("library.actions")})})]})}),(0,L.jsx)(Ub,{children:De.map(M=>(0,L.jsxs)(xg,{children:[(0,L.jsx)(wi,{children:(0,L.jsxs)(de,{type:"button",variant:"ghost",className:"file-title",onClick:()=>oe(M),children:[(0,L.jsx)("span",{className:`file-icon ${M.kind}`,children:(0,L.jsx)(hk,{kind:M.kind})}),(0,L.jsxs)("span",{children:[(0,L.jsx)("strong",{children:M.title}),(0,L.jsx)("small",{children:M.parentPageId&&r.some(ye=>ye.id===M.parentPageId&&!ye.deleted)?S("library.subpage",{title:r.find(ye=>ye.id===M.parentPageId)?.title??""}):M.filePath?.split("/").slice(0,-1).join(" / ")||S("folder.root")})]})]})}),(0,L.jsx)(wi,{children:ik(M.kind)}),(0,L.jsx)(wi,{children:M.importOrigin?S("source.copyType"):M.kind==="page"?S("library.spacePage"):M.kind==="artifact"?S("materials.assistantArtifacts"):S("library.projectFile")}),(0,L.jsx)(wi,{children:au(M.updatedAt)}),(0,L.jsx)(wi,{children:(0,L.jsxs)(Bc,{modal:!1,children:[(0,L.jsx)(Uc,{asChild:!0,children:(0,L.jsx)(de,{variant:"ghost",size:"icon","aria-label":S("library.moreActions",{title:M.title}),children:(0,L.jsx)(rr,{})})}),(0,L.jsxs)(Hc,{align:"end",children:[(0,L.jsx)(va,{onSelect:()=>oe(M),children:S("common.open")}),M.importOrigin&&(0,L.jsx)(va,{onSelect:()=>{s(M),H("origin")},children:S("source.viewOrigin")}),ve&&!p&&(0,L.jsx)(va,{onSelect:()=>{s(M),H("edit")},children:S("document.renameMove")}),Se&&(0,L.jsx)(va,{onSelect:()=>{fe(async()=>{await pt("item.edit",{itemId:M.id,expectedVersion:M.version,deleted:!p}),await K()})},children:p?S("trash.restore"):S("trash.move")})]})]})})]},M.id))})]}),!De.length&&(0,L.jsxs)("div",{className:"empty-message",children:[(0,L.jsx)(Jt,{}),(0,L.jsx)("h2",{children:x?S("library.noResults"):p?S("trash.empty"):S("library.empty")}),(0,L.jsx)("p",{children:x?S("library.searchHint"):S("library.createHint")}),ve&&!p&&!x&&(0,L.jsxs)(de,{onClick:()=>ie("page"),children:[(0,L.jsx)(go,{}),S("create.page")]})]})]}),(0,L.jsxs)("p",{className:"library-footnote",children:[(0,L.jsx)(Dr,{}),S("library.storageNote")]})]})}),ee==="knowledge"&&(0,L.jsxs)("aside",{className:"panel","aria-label":S("knowledge.title"),children:[(0,L.jsxs)("header",{children:[(0,L.jsx)("h2",{children:S("knowledge.title")}),(0,L.jsx)(de,{variant:"ghost",size:"icon","aria-label":S("common.closePanel"),onClick:()=>P(null),children:(0,L.jsx)(Or,{})})]}),t&&(0,L.jsx)(mk,{root:t,canWrite:ve,canManage:Se,run:fe,busy:_})]})]}),t&&se&&(se==="page"||se==="folder"||se==="edit"||T.some(M=>M.key===se))&&(0,L.jsx)(fk,{root:t,items:r,initialParent:c??"",kind:se,editors:T,editing:se==="edit"?n??void 0:void 0,onClose:()=>ie(null),onDone:async M=>{await K(),oe(M)},run:fe,busy:_}),t&&se==="materials"&&(0,L.jsx)(pk,{root:t,items:r,parentId:c??"",editors:T,onClose:()=>ie(null),onDone:K,run:fe,busy:_}),t&&se==="source"&&(0,L.jsx)(lk,{spaceId:t.id,parentId:c,destination:S("source.destination",{space:t.title,folder:r.find(M=>M.id===c)?.title??S("folder.root")}),onClose:()=>ie(null),onDone:K,returnFocus:()=>e.current?.focus()}),se==="origin"&&n?.importOrigin&&(0,L.jsx)(xr,{open:!0,onOpenChange:()=>ie(null),children:(0,L.jsxs)(yr,{className:"space-dialog",children:[(0,L.jsxs)(wr,{children:[(0,L.jsx)(Cr,{children:S("source.originTitle")}),(0,L.jsx)(Sr,{children:S("source.copyDescription")})]}),(0,L.jsx)("p",{children:S("source.originRevision",{provider:n.importOrigin.provider,revision:n.importOrigin.revision})}),(0,L.jsx)("p",{children:S("source.importedAt",{date:au(n.importOrigin.importedAt)})}),(0,L.jsx)("p",{className:"break-all text-sm",children:S("source.id",{id:n.importOrigin.documentId})}),n.importOrigin.warnings.map(M=>(0,L.jsx)("p",{children:M},M)),n.importOrigin.url&&(0,L.jsx)("a",{className:"underline",href:n.importOrigin.url,target:"_blank",rel:"noopener noreferrer",children:S("source.openPlatform")}),(0,L.jsx)(de,{onClick:()=>ie(null),children:S("common.close")})]})}),se==="access"&&(0,L.jsx)(xr,{open:!0,onOpenChange:()=>ie(null),children:(0,L.jsxs)(yr,{className:"space-dialog capability-dialog",children:[(0,L.jsxs)(wr,{children:[(0,L.jsx)(Cr,{children:S("space.title")}),(0,L.jsx)(Sr,{children:S("access.description")})]}),(0,L.jsxs)("section",{children:[(0,L.jsx)("h2",{children:S("access.entry")}),(0,L.jsxs)("p",{className:"row",children:[(0,L.jsx)(an,{}),S("common.workbench")," ",(0,L.jsx)("span",{className:"muted",children:"/"}),S("access.views"),(0,L.jsx)("span",{className:"muted",children:"/"}),S("space.title")]}),(0,L.jsx)("p",{className:"muted",children:S("access.entryDescription")})]}),(0,L.jsxs)("section",{children:[(0,L.jsx)("h2",{children:S("access.title")}),(0,L.jsxs)("p",{className:"row",children:[(0,L.jsx)(_r,{}),(0,L.jsx)("strong",{children:S("access.shared")})]}),(0,L.jsx)("p",{children:S("access.roles")}),(0,L.jsx)("p",{className:"muted",children:S("access.projectPermissions")})]}),(0,L.jsxs)("section",{children:[(0,L.jsx)("h2",{children:S("access.capabilities")}),(0,L.jsxs)("ul",{className:"capability-list",children:[(0,L.jsxs)("li",{children:[(0,L.jsx)(Jt,{}),(0,L.jsx)("strong",{children:S("access.pages")}),(0,L.jsx)("span",{children:S("access.pagesDescription")})]}),(0,L.jsxs)("li",{children:[(0,L.jsx)(Er,{}),(0,L.jsx)("strong",{children:S("access.ai")}),(0,L.jsx)("span",{children:S("access.aiDescription")})]}),(0,L.jsxs)("li",{children:[(0,L.jsx)(or,{}),(0,L.jsx)("strong",{children:S("navigation.files")}),(0,L.jsx)("span",{children:S("access.filesDescription")})]}),(0,L.jsxs)("li",{children:[(0,L.jsx)(xa,{}),(0,L.jsx)("strong",{children:S("knowledge.title")}),(0,L.jsx)("span",{children:S("access.searchDescription")})]})]}),(0,L.jsx)("p",{className:"muted text-sm",children:S("access.sheetDescription")})]}),(0,L.jsxs)(Ko,{children:[(0,L.jsxs)("span",{className:"muted",children:[(0,L.jsx)(Dr,{}),S("library.storageNote")]}),(0,L.jsx)(de,{onClick:()=>ie(null),children:S("common.done")})]})]})})]})}(0,gk.createRoot)(document.getElementById("root")).render((0,L.jsx)(iv,{i18n:Fe,children:(0,L.jsx)(_O,{})}));})();
167
+ `).slice(0,6).map((b,R)=>b.startsWith("## ")?(0,we.jsx)("h4",{children:b.slice(3)},R):(0,we.jsx)("p",{children:b},R))]}),(0,we.jsx)("h3",{children:y.title}),(0,we.jsx)("p",{children:y.description})]},y.title))})}),(0,we.jsx)(Wi,{value:"blank",children:(0,we.jsx)("p",{className:"muted",children:C("create.blankDescription")})})]}),(0,we.jsxs)("form",{className:"create-form",onSubmit:y=>{y.preventDefault(),l(async()=>{let L=o.find(R=>R.key===r),b=n?await Ee("item.edit",{itemId:n.id,expectedVersion:n.version,title:x,parentId:m||null}):await Ee(L?"editor.create":"item.create",{spaceId:e.id,parentId:m||null,title:x,...L?{editorKey:L.key}:{kind:r,...g?{content:h?"":c[d].content}:{}}});await i(To.parse(b)),s()})},children:[(0,we.jsxs)("div",{className:"form-columns",children:[(0,we.jsxs)(wt,{children:[g?C("create.pageName"):C("common.name"),(0,we.jsx)(qt,{required:!0,autoFocus:!0,maxLength:200,value:x,onChange:y=>w(y.target.value),placeholder:C("create.namePlaceholder")})]}),(0,we.jsx)(ks,{items:t.filter(y=>y.id!==n?.id),value:m,onChange:p})]}),(0,we.jsxs)(Ot,{children:[(0,we.jsxs)("span",{className:"muted mr-auto flex items-center gap-2",children:[(0,we.jsx)(eo,{}),C("create.permissions")]}),(0,we.jsx)(G,{type:"button",variant:"outline",onClick:s,children:C("common.cancel")}),(0,we.jsx)(G,{disabled:u,children:n?C("common.save"):g?C("create.createPage"):C("common.create")})]})]})]})})}var Mo=F(ee(),1);var xe=F(fe(),1);function nv({implementation:e,implementations:t,items:a,initialParent:r,onClose:o,onDone:n,run:s,busy:i}){let l=Rf(),u=t.filter(_=>_.typeId===e.typeId),c=_=>`${_.providerKey}/${_.implementationKey}`,[d,f]=(0,Mo.useState)(c(e)),[h,v]=(0,Mo.useState)("blank"),x=u.find(_=>c(_)===d)??e,[w,m]=(0,Mo.useState)("create"),[p,g]=(0,Mo.useState)(""),[y,L]=(0,Mo.useState)(r??""),[b,R]=(0,Mo.useState)(""),[k,M]=(0,Mo.useState)(()=>crypto.randomUUID()),[E,O]=(0,Mo.useState)(null),T=()=>{M(crypto.randomUUID()),O(null)};return(0,xe.jsx)(mt,{open:!0,onOpenChange:_=>{!_&&!i&&o()},children:(0,xe.jsxs)(ht,{children:[(0,xe.jsxs)(gt,{children:[(0,xe.jsx)(vt,{children:C("catalog.create",{type:l(x.title)})}),(0,xe.jsx)(xt,{children:C("catalog.permissions")})]}),(0,xe.jsxs)("form",{className:"grid gap-4",onSubmit:_=>{_.preventDefault(),s(async()=>{let A=E;A||(A=kf.parse(await Ee("catalog.create",{providerKey:x.providerKey,implementationKey:x.implementationKey,requestId:k,title:b,parentId:y||null,...h!=="blank"?{templateId:h}:{}})).contentId,O(A)),await n(),w==="assistant"?(await Tu({key:"spaces.creation",context:{contentId:A,title:b,typeId:x.typeId}}),await Rs(A),await t0(C("catalog.generatePrompt",{title:b,contentId:A,prompt:p}),k)):await Rs(A),o()})},children:[(0,xe.jsxs)("div",{children:[(0,xe.jsx)(wt,{htmlFor:"resource-title",children:C("common.name")}),(0,xe.jsx)(qt,{id:"resource-title",disabled:i,required:!0,maxLength:160,value:b,onChange:_=>{T(),R(_.target.value)}})]}),u.length>1&&(0,xe.jsxs)("div",{children:[(0,xe.jsx)(wt,{children:C("catalog.implementation")}),(0,xe.jsxs)(ba,{disabled:i,value:d,onValueChange:_=>{T(),f(_),v("blank")},children:[(0,xe.jsx)(Ra,{"aria-label":C("catalog.implementation"),children:(0,xe.jsx)(ka,{})}),(0,xe.jsx)(Pa,{children:u.map(_=>(0,xe.jsx)(Pt,{value:c(_),children:l(_.implementationTitle)},c(_)))})]})]}),(0,xe.jsxs)("div",{children:[(0,xe.jsx)(wt,{children:C("catalog.startFrom")}),(0,xe.jsxs)(ba,{disabled:i,value:h,onValueChange:_=>{T(),v(_)},children:[(0,xe.jsx)(Ra,{"aria-label":C("catalog.startFrom"),children:(0,xe.jsx)(ka,{})}),(0,xe.jsxs)(Pa,{children:[(0,xe.jsx)(Pt,{value:"blank",children:C("catalog.blank")}),x.templates?.map(_=>(0,xe.jsx)(Pt,{value:_.id,children:l(_.title)},_.id))]})]}),x.templates?.find(_=>_.id===h)?.description&&(0,xe.jsx)("p",{children:l(x.templates.find(_=>_.id===h).description)})]}),(0,xe.jsx)(ks,{disabled:i,items:a,value:y,onChange:_=>{T(),L(_)}}),(0,xe.jsxs)("div",{children:[(0,xe.jsx)(wt,{children:C("catalog.creationMode")}),(0,xe.jsxs)(ba,{disabled:i,value:w,onValueChange:m,children:[(0,xe.jsx)(Ra,{"aria-label":C("catalog.creationMode"),children:(0,xe.jsx)(ka,{})}),(0,xe.jsxs)(Pa,{children:[(0,xe.jsx)(Pt,{value:"create",children:C("catalog.editMyself")}),(0,xe.jsx)(Pt,{value:"assistant",children:C("catalog.withAssistant")})]})]})]}),w==="assistant"&&(0,xe.jsxs)("div",{children:[(0,xe.jsx)(wt,{htmlFor:"creation-brief",children:C("catalog.brief")}),(0,xe.jsx)(Qg,{id:"creation-brief",disabled:i,required:!0,maxLength:4e3,value:p,onChange:_=>g(_.target.value)}),(0,xe.jsx)("p",{children:C("catalog.assistantNotice")})]}),(0,xe.jsxs)(Ot,{children:[(0,xe.jsx)(G,{type:"button",variant:"outline",disabled:i,onClick:o,children:C("common.cancel")}),(0,xe.jsx)(G,{disabled:i||!b.trim()||w==="assistant"&&!p.trim(),children:w==="assistant"?C("catalog.generate"):C("common.create")})]})]})]})})}var je=F(fe(),1),Pf=I.object({en_US:I.string(),zh_Hans:I.string().optional(),zh_Hant:I.string().optional()}),l0=I.object({typeId:I.string(),title:Pf,providerKey:I.string(),implementationKey:I.string(),implementationTitle:Pf,templates:I.array(I.object({id:I.string(),title:Pf,description:Pf.optional()})).optional()}),kf=I.object({contentId:I.string(),sourceSync:To.shape.sourceSync,preview:To.shape.preview,availability:To.shape.availability,parentId:I.string().nullable().optional(),placementVersion:I.number().optional(),canWrite:I.boolean(),title:I.string(),typeId:I.string(),revision:I.string(),updatedAt:I.string(),deleted:I.boolean(),defaultEditorKey:I.string(),allowedActions:I.array(I.string()),compatibleEditors:To.shape.compatibleEditors}),sv=I.object({items:I.array(kf),hasMore:I.boolean()});function Rf(){return it(),e=>Be.label({...e})}function iv(e){return{id:e.contentId,sourceSync:e.sourceSync,preview:e.preview,availability:e.availability,title:e.title,kind:"resource",version:e.placementVersion??0,parentId:e.parentId??null,canWrite:e.canWrite,editorKey:e.defaultEditorKey,updatedAt:e.updatedAt,deleted:e.deleted,resourceTypeId:e.typeId,resourceRevision:e.revision,allowedActions:e.allowedActions,compatibleEditors:e.compatibleEditors}}var Rs=(e,t)=>tl(e,"platform.content.catalog",t);function lv({item:e,duplicate:t=!1,onClose:a,onDone:r,run:o,busy:n}){let[s,i]=(0,Df.useState)(t?C("catalog.copyTitle",{title:e.title}):e.title),[l]=(0,Df.useState)(()=>crypto.randomUUID());return(0,je.jsx)(mt,{open:!0,onOpenChange:u=>{!u&&!n&&a()},children:(0,je.jsxs)(ht,{children:[(0,je.jsxs)(gt,{children:[(0,je.jsx)(vt,{children:t?C("catalog.duplicate"):C("catalog.rename")}),(0,je.jsx)(xt,{children:C("catalog.permissions")})]}),(0,je.jsxs)("form",{onSubmit:u=>{u.preventDefault(),o(async()=>{let c=await Ee(t?"catalog.duplicate":"catalog.rename",{contentId:e.id,expectedRevision:e.resourceRevision,title:s,...t?{requestId:l,parentId:e.parentId??null}:{}});await r(),a(),t&&await Rs(kf.parse(c).contentId)})},children:[(0,je.jsx)(wt,{htmlFor:"rename-resource",children:C("common.name")}),(0,je.jsx)(qt,{id:"rename-resource",required:!0,maxLength:200,value:s,onChange:u=>i(u.target.value)}),(0,je.jsxs)(Ot,{className:"mt-4",children:[(0,je.jsx)(G,{type:"button",variant:"outline",disabled:n,onClick:a,children:C("common.cancel")}),(0,je.jsx)(G,{disabled:n||!s.trim(),children:C("common.save")})]})]})]})})}function u0({item:e,operation:t,onClose:a,onDone:r,run:o,busy:n}){return(0,je.jsx)(mt,{open:!0,onOpenChange:s=>{!s&&!n&&a()},children:(0,je.jsxs)(ht,{children:[(0,je.jsxs)(gt,{children:[(0,je.jsx)(vt,{children:t==="trash"?C("trash.move"):C("trash.restore")}),(0,je.jsx)(xt,{children:t==="trash"?C("catalog.recycleDescription",{title:e.title}):C("catalog.restoreDescription",{title:e.title})})]}),(0,je.jsxs)(Ot,{children:[(0,je.jsx)(G,{variant:"outline",disabled:n,onClick:a,children:C("common.cancel")}),(0,je.jsx)(G,{variant:t==="trash"?"destructive":"default",disabled:n,onClick:()=>{o(async()=>{await Ee("catalog.lifecycle",{contentId:e.id,expectedRevision:e.resourceRevision,action:t}),await r(),a()})},children:t==="trash"?C("trash.move"):C("trash.restore")})]})]})})}function d0({item:e,items:t,onClose:a,onDone:r,run:o,busy:n}){let[s,i]=(0,Df.useState)(e.parentId??"");return(0,je.jsx)(mt,{open:!0,onOpenChange:l=>{!l&&!n&&a()},children:(0,je.jsxs)(ht,{children:[(0,je.jsxs)(gt,{children:[(0,je.jsx)(vt,{children:C("catalog.move")}),(0,je.jsx)(xt,{children:C("catalog.moveDescription")})]}),(0,je.jsx)(ks,{items:t,value:s,onChange:i}),(0,je.jsxs)(Ot,{children:[(0,je.jsx)(G,{variant:"outline",disabled:n,onClick:a,children:C("common.cancel")}),(0,je.jsx)(G,{disabled:n,onClick:()=>{o(async()=>{await Ee("catalog.move",{contentId:e.id,parentId:s||null,expectedVersion:e.version}),await r(),a()})},children:C("common.save")})]})]})})}var Nt=F(ee(),1);var ce=F(fe(),1),MN=I.object({items:I.array(I.object({bindingId:I.string(),provider:I.string(),available:I.boolean(),status:I.string(),label:I.union([I.string(),I.record(I.string())]),scope:I.object({type:I.enum(["workspace","project"])})}))}),_N=I.object({items:I.array(I.object({id:I.string(),title:I.string(),url:I.string().nullable()})),nextCursor:I.string().nullable()}),AN=I.object({id:I.string(),title:I.string(),url:I.string().nullable(),revision:I.string(),contentHash:I.string(),provider:I.string(),format:I.literal("text/plain"),content:I.string(),warnings:I.array(I.string())}),Tf=e=>{let t=e instanceof Error?e.message:"";return/unsupported_locator/u.test(t)?Be.message("source.error.locator"):/unsupported_document_type/u.test(t)?Be.message("source.error.type"):/source_access_denied/u.test(t)?Be.message("source.error.access"):/provider_rejected|connection_required|request_failed/u.test(t)?Be.message("source.error.connection"):/source_changed/u.test(t)?Be.message("source.error.changed"):/too_large/u.test(t)?Be.message("source.error.size"):Lr(e)};function c0({spaceId:e,parentId:t,destination:a,onClose:r,onDone:o,returnFocus:n}){it();let s=j=>{let Re=C("source.connectionLabel",{provider:Be.label(j.label,j.provider),scope:j.scope.type==="project"?C("source.projectScope"):C("source.workspaceScope")});return j.available?Re:C("source.disconnected",{label:Re})},[i,l]=(0,Nt.useState)([]),[u,c]=(0,Nt.useState)(""),[d,f]=(0,Nt.useState)(""),[h,v]=(0,Nt.useState)(""),[x,w]=(0,Nt.useState)(""),[m,p]=(0,Nt.useState)([]),[g,y]=(0,Nt.useState)(null),[L,b]=(0,Nt.useState)(!1),[R,k]=(0,Nt.useState)(null),[M,E]=(0,Nt.useState)(!1),[O,T]=(0,Nt.useState)(!0),[_,A]=yn(""),[N,z]=(0,Nt.useState)(!1),H=(0,Nt.useRef)(crypto.randomUUID()),V=(0,Nt.useRef)(!0);async function ae(){T(!0),A("");try{let j=MN.parse(await Ee("source.list",{}));V.current&&(l(j.items),c(j.items.find(Re=>Re.available)?.bindingId??""),z(!0))}catch(j){V.current&&A(Tf(j))}finally{V.current&&T(!1)}}(0,Nt.useEffect)(()=>(V.current=!0,ae(),()=>{V.current=!1}),[]);function D(){k(null),E(!1),H.current=crypto.randomUUID()}async function ge(j=!1){T(!0),A(""),D();try{let Re=j?h:d,Pe=_N.parse(await Ee("source.search",{bindingId:u,query:Re,...j&&g?{cursor:g}:{},pageSize:25}));V.current&&(p(Se=>j?[...new Map([...Se,...Pe.items].map(qe=>[qe.id,qe])).values()]:Pe.items),y(Pe.nextCursor),v(Re),b(!0))}catch(Re){A(Tf(Re))}finally{T(!1)}}async function ve(j){w(j),D(),T(!0),A("");try{let Re=AN.parse(await Ee("source.preview",{bindingId:u,locator:j}));V.current&&k(Re)}catch(Re){A(Tf(Re))}finally{T(!1)}}return(0,ce.jsx)(mt,{open:!0,onOpenChange:j=>{!j&&!O&&r()},children:(0,ce.jsxs)(ht,{className:"space-dialog max-h-[85vh] overflow-y-auto",onCloseAutoFocus:j=>{j.preventDefault(),n()},children:[(0,ce.jsxs)(gt,{children:[(0,ce.jsx)(vt,{children:C("source.title")}),(0,ce.jsx)(xt,{children:C("source.description")})]}),_&&(0,ce.jsx)("p",{role:"alert",children:_}),!N&&!O&&(0,ce.jsx)(G,{variant:"outline",onClick:()=>{ae()},children:C("source.retryConnections")}),N&&!i.length?(0,ce.jsxs)("div",{children:[(0,ce.jsx)("p",{children:C("source.noConnections")}),(0,ce.jsx)("p",{className:"muted",children:C("source.setupHint")}),(0,ce.jsx)(G,{variant:"outline",disabled:O,onClick:()=>{ae()},children:C("source.recheck")})]}):(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsxs)("div",{className:"form-field",children:[(0,ce.jsx)(wt,{htmlFor:"document-source",children:C("source.provider")}),(0,ce.jsxs)(ba,{value:u,disabled:O,onValueChange:j=>{c(j),p([]),y(null),b(!1),w(""),D()},children:[(0,ce.jsx)(Ra,{id:"document-source",className:"w-full",children:(0,ce.jsx)(ka,{placeholder:C("source.chooseConnection")})}),(0,ce.jsx)(Pa,{position:"popper",children:i.map(j=>(0,ce.jsx)(Pt,{value:j.bindingId,disabled:!j.available,children:s(j)},j.bindingId))})]})]}),(0,ce.jsx)(G,{variant:"outline",disabled:O,onClick:()=>{D(),p([]),y(null),b(!1),ae()},children:C("source.recheckConnections")}),(0,ce.jsx)("p",{className:"muted text-sm",children:C("source.searchHint")}),(0,ce.jsxs)("form",{className:"flex gap-2",onSubmit:j=>{j.preventDefault(),ge()},children:[(0,ce.jsx)(qt,{"aria-label":C("source.searchLabel"),value:d,maxLength:200,onChange:j=>f(j.target.value),placeholder:C("source.searchPlaceholder"),disabled:O}),(0,ce.jsx)(G,{disabled:O||!u,children:C("source.search")})]}),(0,ce.jsxs)("div",{className:"flex gap-2",children:[(0,ce.jsx)(qt,{"aria-label":C("source.linkLabel"),value:x,onChange:j=>{w(j.target.value),D()},placeholder:C("source.linkPlaceholder"),disabled:O}),(0,ce.jsx)(G,{variant:"outline",disabled:O||!u||!x.trim(),onClick:()=>{ve(x.trim())},children:C("common.preview")})]}),!!m.length&&(0,ce.jsx)("ul",{className:"max-h-48 overflow-y-auto",children:m.map(j=>(0,ce.jsx)("li",{children:(0,ce.jsx)(G,{className:"max-w-full justify-start truncate",variant:"ghost",disabled:O,onClick:()=>{ve(j.url??j.id)},children:j.title})},j.id))}),L&&!m.length&&(0,ce.jsx)("p",{className:"muted",children:C("source.emptyPage")}),g&&(0,ce.jsx)(G,{variant:"outline",disabled:O,onClick:()=>{ge(!0)},children:C("common.loadMore")}),R&&(0,ce.jsxs)("section",{className:"space-y-3",children:[(0,ce.jsx)("h3",{children:R.title}),(0,ce.jsx)("p",{className:"muted text-sm",children:C("source.previewMeta",{revision:R.revision,destination:a})}),R.url&&(0,ce.jsx)("a",{href:R.url,target:"_blank",rel:"noopener noreferrer",className:"underline",children:C("source.openOriginal")}),R.warnings.map(j=>(0,ce.jsx)("p",{role:"note",children:j},j)),(0,ce.jsx)("pre",{className:"max-h-56 overflow-auto whitespace-pre-wrap rounded border p-3 text-sm",children:R.content||C("source.emptyText")}),(0,ce.jsxs)("div",{className:"confirmation-field",children:[(0,ce.jsx)(hf,{id:"confirm-source-import",disabled:O,checked:M,onCheckedChange:j=>E(j===!0)}),(0,ce.jsx)(wt,{htmlFor:"confirm-source-import",children:C("source.confirmation")})]})]})]}),(0,ce.jsxs)(Ot,{children:[(0,ce.jsx)(G,{variant:"outline",disabled:O,onClick:r,children:C("common.cancel")}),(0,ce.jsx)(G,{disabled:O||!R||!M,onClick:()=>{R&&(T(!0),A(""),Ee("source.import",{bindingId:u,locator:x,spaceId:e,parentId:t,requestId:H.current,expectedRevision:R.revision,expectedHash:R.contentHash,confirmed:!0}).then(async()=>{await o(),r()}).catch(j=>A(Tf(j))).finally(()=>T(!1)))},children:O?C("common.processing"):C("source.import")})]})]})})}var Ce=F(ee(),1),x0=F(p0(),1);var dv=F(ee(),1);var _u=F(fe(),1);function m0({fileKey:e,children:t,disabled:a,onError:r}){it();let[o,n]=(0,dv.useState)(!1),[s,i]=(0,dv.useState)(null);async function l(){n(!0);try{i({key:e,...await e0(e)})}catch(u){r(u)}finally{n(!1)}}return(0,_u.jsxs)("span",{className:"inline-flex flex-wrap items-center gap-2",children:[(0,_u.jsx)(G,{variant:"outline",disabled:a||o,onClick:()=>{l()},children:o?C("download.preparing"):t}),s?.key===e&&(0,_u.jsx)("a",{className:"text-sm underline underline-offset-4",href:s.url,download:s.fileName,rel:"noopener",children:C("download.saveFile")})]})}var ha=F(ee(),1);var oe=F(fe(),1),EN=I.object({items:I.array(I.object({id:I.string(),title:I.string().nullable().optional(),versions:I.array(I.object({id:I.string(),version:I.number().optional(),fileName:I.string().nullable().optional()}))})),total:I.number()});function h0({root:e,items:t,parentId:a,editors:r,onClose:o,onDone:n,run:s,busy:i}){it();let l=(0,ha.useRef)(null),[u,c]=(0,ha.useState)("local"),[d,f]=(0,ha.useState)(a),[h,v]=(0,ha.useState)([]),[x,w]=(0,ha.useState)(""),[m,p]=(0,ha.useState)([]),[g,y]=(0,ha.useState)({}),[L,b]=(0,ha.useState)(""),[R,k]=yn(""),[M,E]=(0,ha.useState)(1),[O,T]=(0,ha.useState)(0),[_,A]=(0,ha.useState)(!1);return(0,ha.useEffect)(()=>{if(u!=="artifacts")return;let N=!0;return A(!0),k(""),Ee("artifact.list",{page:M}).then(z=>{let H=EN.parse(z);N&&(p(H.items),T(H.total))}).catch(z=>N&&k(Lr(z))).finally(()=>N&&A(!1)),()=>{N=!1}},[u,M]),(0,oe.jsx)(mt,{open:!0,onOpenChange:N=>{N||o()},children:(0,oe.jsxs)(ht,{className:"space-dialog materials-dialog",children:[(0,oe.jsxs)(gt,{children:[(0,oe.jsx)(vt,{children:C("materials.title")}),(0,oe.jsx)(xt,{children:C("materials.description")})]}),(0,oe.jsxs)(yf,{value:u,onValueChange:c,children:[(0,oe.jsxs)(wf,{"aria-label":C("materials.source"),children:[(0,oe.jsx)(qi,{value:"local",children:C("materials.local")}),(0,oe.jsx)(qi,{value:"artifacts",children:C("materials.assistantArtifacts")})]}),(0,oe.jsxs)(Wi,{value:"local",children:[(0,oe.jsxs)("div",{className:"upload-area",children:[(0,oe.jsx)(Bs,{}),(0,oe.jsx)("strong",{children:C("materials.chooseFiles")}),(0,oe.jsx)("span",{children:C("materials.fileLimit")}),(0,oe.jsx)(G,{variant:"outline",type:"button",onClick:()=>l.current?.click(),children:C("materials.chooseFiles")}),(0,oe.jsx)(qt,{ref:l,className:"hidden",type:"file",multiple:!0,onChange:N=>v(Array.from(N.target.files??[]))})]}),h.map(N=>(0,oe.jsxs)("p",{children:[N.name," ",(0,oe.jsx)("span",{className:"muted",children:C("materials.fileSize",{size:Be.number(Math.ceil(N.size/1024))})})]},N.name)),r.length>0&&(0,oe.jsxs)("div",{className:"form-field",children:[(0,oe.jsx)(wt,{htmlFor:"import-editor",children:C("materials.editor")}),(0,oe.jsxs)(ba,{value:x||"original",onValueChange:N=>w(N==="original"?"":N),children:[(0,oe.jsx)(Ra,{id:"import-editor",className:"w-full",children:(0,oe.jsx)(ka,{})}),(0,oe.jsxs)(Pa,{position:"popper",children:[(0,oe.jsx)(Pt,{value:"original",children:C("materials.keepOriginal")}),r.map(N=>(0,oe.jsx)(Pt,{value:N.key,children:C("materials.importWith",{editor:N.title})},N.key))]})]})]})]}),(0,oe.jsxs)(Wi,{value:"artifacts",children:[(0,oe.jsxs)("div",{className:"search-field",children:[(0,oe.jsx)(Ba,{}),(0,oe.jsx)(qt,{"aria-label":C("materials.search"),placeholder:C("materials.search"),value:L,onChange:N=>b(N.target.value)})]}),R&&(0,oe.jsx)("p",{role:"alert",children:R}),_&&(0,oe.jsx)("p",{role:"status",children:C("materials.loading")}),(0,oe.jsxs)("div",{className:"artifact-list",children:[m.filter(N=>(N.title??"").toLowerCase().includes(L.toLowerCase())).map(N=>(0,oe.jsxs)("div",{className:`artifact-option ${g[N.id]?"checked":""}`,children:[(0,oe.jsx)(hf,{"aria-label":C("materials.chooseArtifact",{title:N.title??C("materials.untitled")}),disabled:!N.versions.length,checked:!!g[N.id],onCheckedChange:z=>y(H=>{let V={...H};return z===!0?V[N.id]=N.versions[0].id:delete V[N.id],V})}),(0,oe.jsx)(ga,{}),(0,oe.jsxs)("span",{children:[(0,oe.jsx)("strong",{children:N.title??C("materials.untitled")}),(0,oe.jsx)("small",{children:N.versions[0]?.fileName??C("materials.noFileVersion")})]}),(0,oe.jsxs)(ba,{disabled:!N.versions.length,value:g[N.id]??N.versions[0]?.id??"",onValueChange:z=>y(H=>({...H,[N.id]:z})),children:[(0,oe.jsx)(Ra,{"aria-label":C("materials.artifactVersion",{title:N.title??C("materials.untitled")}),children:(0,oe.jsx)(ka,{placeholder:C("materials.noVersion")})}),(0,oe.jsx)(Pa,{position:"popper",children:N.versions.map((z,H)=>(0,oe.jsx)(Pt,{value:z.id,children:C("common.version",{version:z.version??N.versions.length-H})},z.id))})]})]},N.id)),!_&&!R&&!m.length&&(0,oe.jsx)("p",{className:"empty-message",children:C("materials.empty")})]}),O>40&&(0,oe.jsxs)("div",{className:"row",children:[(0,oe.jsx)(G,{variant:"outline",disabled:M===1,onClick:()=>E(M-1),children:C("common.previousPage")}),(0,oe.jsx)("span",{children:C("common.pageNumber",{page:M})}),(0,oe.jsx)(G,{variant:"outline",disabled:M*40>=O,onClick:()=>E(M+1),children:C("common.nextPage")})]}),(0,oe.jsxs)("p",{className:"muted inline-note",children:[(0,oe.jsx)(Jr,{}),C("materials.versionNote")]})]})]}),(0,oe.jsx)(ks,{items:t,value:d,onChange:f}),(0,oe.jsxs)(Ot,{children:[(0,oe.jsx)("span",{className:"muted mr-auto",children:C("materials.selected",{count:u==="local"?h.length:Object.keys(g).length})}),(0,oe.jsx)(G,{variant:"outline",onClick:o,children:C("common.cancel")}),(0,oe.jsx)(G,{disabled:i||!(u==="local"?h.length:Object.keys(g).length),onClick:()=>{s(async()=>{if(u==="local")for(let N of h)await Jk({spaceId:e.id,parentId:d||null,...x?{editorKey:x}:{}},N,x?"editor.import":"file.upload");else for(let[N,z]of Object.entries(g))await Ee("artifact.collect",{spaceId:e.id,parentId:d||null,artifactId:N,versionId:z});await n(),o()})},children:C("materials.add")})]})]})})}var cv=F(ee(),1);var Gr=F(fe(),1),ON=I.array(I.object({itemId:I.string(),contentId:I.string().optional(),title:I.string(),text:I.string(),anchor:I.object({kind:I.string(),id:I.string()}).optional()}));function g0({spaceId:e,run:t,busy:a}){it();let[r,o]=(0,cv.useState)(""),[n,s]=(0,cv.useState)(null);return(0,Gr.jsxs)("div",{className:"grid gap-2",children:[(0,Gr.jsxs)("form",{className:"flex gap-2",onSubmit:i=>{i.preventDefault(),t(async()=>s(ON.parse(await Ee("knowledge.search",{spaceId:e,query:r}))))},children:[(0,Gr.jsx)(qt,{"aria-label":C("knowledge.searchQuery"),placeholder:C("knowledge.searchQuery"),value:r,onChange:i=>o(i.target.value),required:!0,maxLength:200}),(0,Gr.jsx)(G,{disabled:a,children:C("knowledge.searchAction")})]}),n?.length===0&&(0,Gr.jsx)("p",{children:C("knowledge.noSources")}),n?.map((i,l)=>(0,Gr.jsxs)("div",{className:"grid gap-1",children:[(0,Gr.jsx)(G,{variant:"link",className:"justify-start",onClick:()=>{t(async()=>{await tl(i.contentId??i.itemId,i.contentId?"platform.content.catalog":"spaces")})},children:i.title}),(0,Gr.jsx)("p",{children:i.text.slice(0,360)})]},`${i.itemId}:${l}`))]})}var ol=F(ee(),1);var NN=F(fe(),1);var Dt=F(fe(),1);var FN=I.object({knowledgebaseId:I.string().nullable(),items:I.array(I.object({itemId:I.string(),title:I.string(),status:I.string(),error:I.string().nullable(),document:I.object({status:I.string().nullable().optional()}).nullable()}))}),zN={pending:"knowledge.pending",processing:"knowledge.processing",ready:"knowledge.ready",failed:"knowledge.failed"},BN=e=>C(zN[e]??"knowledge.pending");function v0({root:e,canWrite:t,canManage:a,run:r,busy:o}){it();let[n,s]=(0,ol.useState)(null),[i,l]=yn(""),u=(0,ol.useCallback)(async()=>s(FN.parse(await Ee("knowledge.status",{spaceId:e.id}))),[e.id]);return(0,ol.useEffect)(()=>{u().catch(c=>l(Lr(c)))},[u]),(0,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsx)("p",{className:"muted",children:C("knowledge.description")}),i&&(0,Dt.jsx)("p",{role:"alert",children:i}),n?.knowledgebaseId?(0,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsx)("p",{children:C("knowledge.linked")}),(0,Dt.jsxs)(G,{variant:"outline",disabled:!t||o,onClick:()=>{r(async()=>{await Ee("knowledge.refresh",{spaceId:e.id}),await u()})},children:[(0,Dt.jsx)(to,{}),C("knowledge.sync")]}),(0,Dt.jsx)(G,{variant:"ghost",onClick:()=>{r(u)},children:C("knowledge.refresh")})]}):(0,Dt.jsx)(G,{disabled:!a||o,onClick:()=>{r(async()=>{await Ee("knowledge.enable",{spaceId:e.id}),await u()})},children:C("knowledge.enable")}),n?.knowledgebaseId&&(0,Dt.jsx)(g0,{spaceId:e.id,run:r,busy:o}),n?.items.map(c=>(0,Dt.jsxs)("div",{className:"index-item",children:[(0,Dt.jsx)("strong",{children:c.title}),(0,Dt.jsx)("small",{children:BN(c.status)}),c.error&&(0,Dt.jsx)("p",{role:"status",children:C("knowledge.failureNote")})]},c.itemId))]})}var S=F(fe(),1),Mf=({kind:e})=>e==="folder"?(0,S.jsx)(Rr,{}):(0,S.jsx)(ga,{});function UN(){it();let e=Rf(),[t,a]=(0,Ce.useState)([]),[r,o]=(0,Ce.useState)([]),[n,s]=(0,Ce.useState)(!1),[i,l]=(0,Ce.useState)(null),[u,c]=(0,Ce.useState)(null),[d,f]=(0,Ce.useState)(null),[h,v]=(0,Ce.useState)(null),[x,w]=(0,Ce.useState)("list"),[m,p]=(0,Ce.useState)(null),g=(0,Ce.useRef)(null),[y,L]=(0,Ce.useState)(null),[b,R]=(0,Ce.useState)([]),[k,M]=(0,Ce.useState)(null),[E,O]=(0,Ce.useState)(!1),[T,_]=(0,Ce.useState)(null),[A,N]=(0,Ce.useState)(null),[z,H]=(0,Ce.useState)("all"),[V,ae]=(0,Ce.useState)(""),[D,ge]=(0,Ce.useState)(!1),[ve,j]=(0,Ce.useState)({canWrite:!1,canManage:!1}),[Re,Pe]=(0,Ce.useState)(!1),[Se,qe]=(0,Ce.useState)(!0),[J,ue]=(0,Ce.useState)([]),[He,Fe]=(0,Ce.useState)(!0),[ze,Oe]=yn(""),[We,ra]=(0,Ce.useState)(!1),[Au,nl]=(0,Ce.useState)(0),[Ps,fv]=(0,Ce.useState)(null),[pv,mv]=(0,Ce.useState)(null),[hv,Ds]=(0,Ce.useState)(null),[er,Ir]=(0,Ce.useState)(null),$r=P=>{window.setTimeout(()=>Ir(P),0)},{canWrite:Ts,canManage:Eu}=ve,Ct=async P=>{ra(!0),Oe("");try{await P()}catch(ie){Oe(Lr(ie))}finally{ra(!1)}},Ms=(0,Ce.useCallback)(async(P=!1)=>{qe(!0);try{let ie=await Yk({selectionId:"root",parameters:{trash:P}});if(I.object({meta:I.object({requiresProject:I.literal(!0)})}).safeParse(ie).success)return Pe(!0),L(null),R([]),o([]),a([]),!1;let Ma=o0.parse(ie).meta;return Pe(!1),L(Ma.root),R(Ma.items),j(Ma),ge(P),a(I.array(l0).parse(await Ee("catalog.types",{}))),!0}finally{qe(!1)}},[]),tr=async()=>{await Ms(D)},_s=(0,Ce.useRef)(0),gv={...A?{parentId:A}:{},deleted:D,search:V,...["all","page","files"].includes(z)?{}:{typeId:z}};(0,Ce.useEffect)(()=>{let P=++_s.current;if(o([]),s(!1),!y||["page","files"].includes(z))return;let ie=window.setTimeout(()=>{Ee("catalog.list",gv).then(Ma=>{if(P!==_s.current)return;let Nu=sv.parse(Ma);o(Nu.items.map(iv)),s(Nu.hasMore)}).catch(Ma=>{P===_s.current&&Oe(Lr(Ma))})},V?200:0);return()=>{window.clearTimeout(ie),_s.current++}},[y,A,z,V,D]),(0,Ce.useEffect)(()=>Qk(P=>{O(I.object({parameters:I.object({presentation:I.literal("navigation")})}).safeParse(P).success),_(null),Fe(!0),Oe(""),Ds(null),Ms().then(async ie=>{ie&&ue(I.array(I.object({key:I.string(),title:I.string()})).parse(await Ee("editor.list",{})))}).catch(ie=>Oe(Lr(ie)))}),[Ms]),(0,Ce.useEffect)(()=>{if(y)return Tu({key:"spaces",context:{spaceId:y.id,itemId:T?.id,filePath:T?.filePath,title:T?.title,kind:T?.kind,saved:He}}).catch(()=>{}),()=>{Tu({key:"spaces",clear:!0}).catch(()=>{})}},[y?.id,T?.id,He]);function Kr(P){if(P?.availability==="provider-unavailable"){fv(P);return}if(!He){Oe(Be.message("navigation.waitForSave"));return}if(P?.editorKey&&!P.deleted){Ct(async()=>{try{await(P.kind==="resource"?Rs(P.id):tl(P.id,"spaces"))}catch(ie){throw _(P),ie}});return}P?.kind==="folder"?(N(P.id),_(null),Ds(null)):(_(P),nl(ie=>ie+1))}function vv(P,ie=null){He&&(_(null),N(ie),H(P),Ds(null),D&&Ct(()=>Ms(!1)))}let Ou=[...b,...r].filter(P=>(!A||P.parentId===A)&&(z==="all"||(z==="page"?P.kind==="page":z==="files"?["file","artifact"].includes(P.kind??""):P.resourceTypeId===z))&&(P.title+" "+(P.filePath??"")).toLowerCase().includes(V.toLowerCase())).sort((P,ie)=>(ie.updatedAt??"").localeCompare(P.updatedAt??"")),xv=t.find(P=>P.typeId===z)?.title,y0=xv?e(xv):D?C("navigation.trash"):A?b.find(P=>P.id===A)?.title??C("kind.folder"):z==="page"?C("kind.page"):z==="files"?C("navigation.files"):C("navigation.all"),yv=P=>(0,S.jsxs)(gf,{modal:!1,children:[(0,S.jsx)(vf,{asChild:!0,children:(0,S.jsx)(G,{variant:"ghost",size:"icon","aria-label":C("library.moreActions",{title:P.title}),children:(0,S.jsx)(kr,{})})}),(0,S.jsxs)(xf,{align:"end",children:[!P.deleted&&(0,S.jsx)(yt,{onSelect:()=>Kr(P),children:C("common.open")}),P.kind==="resource"&&(P.compatibleEditors?.length??0)>1&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Ak,{children:C("catalog.openWith")}),(0,S.jsx)(yt,{onSelect:()=>window.setTimeout(()=>mv(P),0),children:C("catalog.editorDefaults")}),P.compatibleEditors?.map(ie=>(0,S.jsx)(yt,{onSelect:()=>{Ct(()=>Rs(P.id,ie.key).then(()=>{}))},children:ie.title},ie.key)),(0,S.jsx)(Yg,{})]}),P.kind==="resource"&&["trash","restore"].filter(ie=>P.allowedActions?.includes(ie)).map(ie=>(0,S.jsx)(yt,{onSelect:()=>window.setTimeout(()=>l({item:P,operation:ie}),0),children:ie==="trash"?C("trash.move"):C("trash.restore")},ie)),P.kind==="resource"&&!P.deleted&&P.canWrite&&(0,S.jsx)(yt,{onSelect:()=>window.setTimeout(()=>c(P),0),children:C("catalog.move")}),P.kind==="resource"&&P.allowedActions?.includes("rename")&&(0,S.jsx)(yt,{onSelect:()=>window.setTimeout(()=>f(P),0),children:C("catalog.rename")}),P.kind==="resource"&&P.allowedActions?.includes("duplicate")&&(0,S.jsx)(yt,{onSelect:()=>window.setTimeout(()=>v(P),0),children:C("catalog.duplicate")}),P.importOrigin&&(0,S.jsx)(yt,{onSelect:()=>{M(P),$r("origin")},children:C("source.viewOrigin")}),P.kind!=="resource"&&Ts&&!D&&(0,S.jsx)(yt,{onSelect:()=>{M(P),$r("edit")},children:C("document.renameMove")}),P.kind!=="resource"&&Eu&&(0,S.jsx)(yt,{onSelect:()=>{Ct(async()=>{await Ee("item.edit",{itemId:P.id,expectedVersion:P.version,deleted:!D}),await tr()})},children:D?C("trash.restore"):C("trash.move")})]})]}),wv=P=>(0,S.jsxs)("div",{className:"flex flex-wrap gap-2",title:P.sourceSync?.revision?C("catalog.sourceRevision",{revision:P.sourceSync.revision}):void 0,children:[(0,S.jsx)(Zg,{variant:"outline",children:P.canWrite===!1?C("catalog.readOnly"):C("catalog.projectAccess")}),P.sourceSync&&(0,S.jsx)(Zg,{variant:P.sourceSync.status==="failed"?"destructive":"secondary",children:C({synced:"catalog.synced",pending:"catalog.pending",failed:"catalog.failed"}[P.sourceSync.status])})]});return(0,S.jsxs)("div",{className:`app ${E?"compact-navigation":""}`,children:[ze&&(0,S.jsxs)("div",{className:"notice",role:"alert",children:[(0,S.jsx)("span",{children:ze}),(0,S.jsx)(G,{variant:"ghost",size:"icon","aria-label":C("common.dismiss"),onClick:()=>Oe(""),children:(0,S.jsx)(ro,{})})]}),We&&(0,S.jsx)("div",{className:"progress-message",role:"status",children:C("common.processing")}),Re?(0,S.jsxs)("main",{className:"project-empty",children:[(0,S.jsx)(Rr,{}),(0,S.jsx)("h1",{children:C("project.choose")}),(0,S.jsx)("p",{children:C("project.chooseDescription")}),(0,S.jsx)("p",{className:"muted",children:C("project.sharing")}),(0,S.jsxs)(G,{variant:"outline",onClick:()=>{Ct(()=>Ms())},children:[(0,S.jsx)(to,{}),C("common.reload")]})]}):(0,S.jsxs)("div",{className:"body",children:[(0,S.jsxs)("aside",{className:"tree","aria-label":C("navigation.label"),children:[(0,S.jsxs)("div",{className:"space-name",children:[(0,S.jsx)("h2",{children:C("space.title")}),(0,S.jsx)(G,{variant:"ghost",size:"icon","aria-label":C("navigation.search"),onClick:()=>document.getElementById("space-search")?.focus(),children:(0,S.jsx)(Ba,{})})]}),(0,S.jsxs)("p",{className:"space-subtitle",children:[y?.title??C("common.opening"),C("space.sharedSuffix")]}),E&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(qt,{"aria-label":C("navigation.findDocument"),placeholder:C("navigation.findDocument"),value:V,onChange:P=>ae(P.target.value)}),(0,S.jsx)("div",{className:"compact-documents",children:Ou.filter(P=>P.kind==="page").map(P=>(0,S.jsxs)(G,{type:"button",variant:"ghost",className:"nav-item",title:P.filePath??P.title,onClick:()=>Kr(P),children:[(0,S.jsx)(ga,{}),(0,S.jsx)("span",{className:"truncate",children:P.title})]},P.id))})]}),(0,S.jsx)("nav",{children:[["all",C("navigation.all")],["page",C("kind.page")],["files",C("navigation.files")],...Array.from(new Map(t.map(P=>[P.typeId,[P.typeId,e(P.title)]])).values())].map(([P,ie])=>(0,S.jsxs)(G,{type:"button",variant:!T&&!A&&!D&&z===P?"secondary":"ghost",className:!T&&!A&&!D&&z===P?"nav-item selected":"nav-item",onClick:()=>vv(P),disabled:!He,children:[P==="all"?(0,S.jsx)(Ln,{}):P==="page"?(0,S.jsx)(ga,{}):(0,S.jsx)(Rr,{}),ie]},P))}),(0,S.jsx)("p",{className:"nav-label",children:C("kind.folder")}),(0,S.jsx)("div",{className:"folder-tree",children:b.filter(P=>P.kind==="folder"&&!P.deleted).sort((P,ie)=>(P.filePath??P.title).localeCompare(ie.filePath??ie.title)).map(P=>(0,S.jsxs)(Ce.default.Fragment,{children:[(0,S.jsxs)(G,{type:"button",variant:A===P.id&&!T?"secondary":"ghost",className:`nav-item ${A===P.id&&!T?"selected":""}`,title:P.filePath??P.title,style:{paddingLeft:`calc(var(--spacing) * ${3+Math.min(4,(P.filePath?.split("/").length??1)-1)*4.5})`},onClick:()=>vv("all",P.id),disabled:!He,children:[(0,S.jsx)(Rr,{}),(0,S.jsx)("span",{className:"truncate",children:P.title})]}),T&&T.parentId===P.id&&(0,S.jsxs)(G,{type:"button",variant:"secondary",className:"nav-item selected nested",onClick:()=>Kr(T),children:[(0,S.jsx)(ga,{}),T.title]})]},P.id))}),(0,S.jsxs)("div",{className:"nav-bottom",children:[(0,S.jsxs)(G,{type:"button",variant:"ghost",className:`nav-item ${hv==="knowledge"?"selected":""}`,onClick:()=>Ds("knowledge"),children:[(0,S.jsx)(Ba,{}),C("knowledge.title")]}),Eu&&(0,S.jsxs)(G,{type:"button",variant:"ghost",className:`nav-item ${D?"selected":""}`,disabled:!He,onClick:()=>{Ct(async()=>{_(null),N(null),Ds(null),await Ms(!D)})},children:[(0,S.jsx)(zs,{}),C("navigation.trash")]})]})]}),(0,S.jsx)("main",{className:`workspace ${T?"document-workspace":""}`,children:T?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)("header",{className:"document-bar",children:[(0,S.jsx)(G,{variant:"ghost",size:"icon","aria-label":C("navigation.back"),onClick:()=>Kr(null),children:(0,S.jsx)(Os,{})}),(0,S.jsx)("span",{className:"breadcrumb",children:T.filePath?.split("/").slice(0,-1).join(" / ")||C("navigation.all")}),(0,S.jsx)("span",{className:"save-state",children:He?Ts?C("editor.saved"):C("editor.readOnly"):C("editor.saving")}),(0,S.jsxs)(gf,{modal:!1,children:[(0,S.jsx)(vf,{asChild:!0,children:(0,S.jsx)(G,{variant:"outline",size:"icon","aria-label":C("document.actions"),children:(0,S.jsx)(kr,{})})}),(0,S.jsxs)(xf,{align:"end",children:[T.kind!=="resource"&&Ts&&(0,S.jsx)(yt,{disabled:!He,onSelect:()=>{M(T),$r("edit")},children:C("document.renameMove")}),(0,S.jsx)(yt,{onSelect:()=>$r("access"),children:C("access.title")}),T.kind!=="resource"&&Eu&&(0,S.jsx)(yt,{disabled:!He,onSelect:()=>{Ct(async()=>{await Ee("item.edit",{itemId:T.id,expectedVersion:T.version,deleted:!D}),Kr(null),await tr()})},children:D?C("trash.restore"):C("trash.move")})]})]})]}),(0,S.jsxs)("article",{className:"document-canvas",children:[(0,S.jsx)("h1",{children:T.title}),(0,S.jsxs)("p",{className:"document-meta",children:[rl(T.updatedAt),C("document.projectFileSuffix")]}),D?(0,S.jsx)("p",{className:"empty-message",children:C("trash.documentNotice")}):(0,S.jsxs)(S.Fragment,{children:[T.editorKey&&(0,S.jsxs)("div",{className:"file-preview",children:[(0,S.jsx)(ga,{}),(0,S.jsx)("p",{children:C("document.editorUnavailable")}),(0,S.jsx)(G,{variant:"outline",onClick:()=>Kr(T),children:C("document.reopenEditor")})]}),!T.editorKey&&(0,S.jsxs)("div",{className:"file-preview",children:[(0,S.jsx)(Mf,{kind:T.kind}),(0,S.jsx)("p",{children:T.filePath??T.title}),(0,S.jsx)("p",{className:"muted",children:C("document.originalFormat")})]}),T.kind!=="resource"&&(0,S.jsx)("div",{className:"document-download",children:(0,S.jsxs)(m0,{fileKey:`item:${T.id}`,onError:P=>Oe(Lr(P)),children:[(0,S.jsx)(Fs,{}),C("document.download")]})})]})]})]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)("header",{className:"library-header",children:[(0,S.jsxs)("div",{children:[(0,S.jsx)("h1",{children:y0}),(0,S.jsx)("p",{children:C("library.description")})]}),(0,S.jsxs)("div",{className:"library-actions",children:[(0,S.jsxs)(Tk,{className:"library-search",children:[(0,S.jsx)(Mk,{children:(0,S.jsx)(Ba,{})}),(0,S.jsx)(_k,{id:"space-search","aria-label":C("library.search"),placeholder:C("library.search"),value:V,onChange:P=>ae(P.target.value)})]}),(0,S.jsxs)(G,{variant:"outline",onClick:()=>Ir("access"),children:[(0,S.jsx)(eo,{}),C("access.title")]}),Ts&&!D&&(0,S.jsxs)(gf,{modal:!1,children:[(0,S.jsx)(vf,{asChild:!0,children:(0,S.jsxs)(G,{ref:g,children:[(0,S.jsx)(Oo,{}),C("library.new"),(0,S.jsx)(Yr,{})]})}),(0,S.jsxs)(xf,{align:"end",className:"min-w-64",children:[(0,S.jsx)(yt,{onSelect:()=>$r("page"),children:C("kind.page")}),(0,S.jsx)(yt,{onSelect:()=>$r("folder"),children:C("kind.folder")}),t.filter((P,ie,Ma)=>Ma.findIndex(Nu=>Nu.typeId===P.typeId)===ie).map(P=>(0,S.jsxs)(yt,{onSelect:()=>window.setTimeout(()=>p(P),0),children:[e(P.title),e(P.title)!==e(P.implementationTitle)&&(0,S.jsxs)(S.Fragment,{children:[" \xB7 ",e(P.implementationTitle)]})]},`${P.providerKey}/${P.implementationKey}`)),J.map(P=>(0,S.jsx)(yt,{onSelect:()=>$r(P.key),children:P.title},P.key)),(0,S.jsx)(Yg,{}),(0,S.jsx)(yt,{onSelect:()=>$r("materials"),children:C("materials.title")}),(0,S.jsx)(yt,{onSelect:()=>$r("source"),children:C("source.title")})]})]})]})]}),(0,S.jsxs)("div",{className:"list-toolbar",children:[(0,S.jsx)("span",{children:C("library.recent")}),(0,S.jsxs)("div",{className:"flex items-center gap-2",children:[(0,S.jsx)(G,{variant:x==="list"?"secondary":"ghost","aria-pressed":x==="list",onClick:()=>w("list"),children:C("library.listView")}),(0,S.jsx)(G,{variant:x==="grid"?"secondary":"ghost","aria-pressed":x==="grid",onClick:()=>w("grid"),children:C("library.gridView")}),(0,S.jsx)(G,{variant:"ghost",size:"icon","aria-label":C("library.refresh"),disabled:We||Se,onClick:()=>{Ct(tr)},children:(0,S.jsx)(to,{})})]})]}),Se?(0,S.jsx)("div",{className:"empty-message",role:"status",children:C("library.loading")}):(0,S.jsxs)("div",{className:"table-scroll",children:[x==="grid"?(0,S.jsx)("div",{className:"grid gap-4 p-1",style:{gridTemplateColumns:"repeat(auto-fill, minmax(min(100%, 16rem), 1fr))"},children:Ou.map(P=>(0,S.jsxs)(kk,{children:[(0,S.jsx)(Rk,{children:(0,S.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,S.jsxs)(G,{variant:"ghost",className:"min-w-0",onClick:()=>Kr(P),children:[(0,S.jsx)(Mf,{kind:P.kind}),(0,S.jsx)("span",{className:"truncate",children:P.title})]}),yv(P)]})}),(0,S.jsxs)(Pk,{children:[(0,S.jsx)("div",{className:"aspect-video overflow-hidden","aria-label":C("catalog.outlinePreview"),children:P.preview&&P.preview.revision===P.resourceRevision?(0,S.jsx)("ol",{children:P.preview.lines.map((ie,Ma)=>(0,S.jsx)("li",{className:"truncate",children:ie},Ma))}):(0,S.jsx)(Mf,{kind:P.kind})}),wv(P)]}),(0,S.jsx)(Dk,{children:rl(P.updatedAt)})]},P.id))}):(0,S.jsxs)(Ek,{className:"library-table",children:[(0,S.jsx)(Ok,{children:(0,S.jsxs)(Jg,{children:[(0,S.jsx)(ls,{children:C("common.name")}),(0,S.jsx)(ls,{children:C("library.type")}),(0,S.jsx)(ls,{children:C("library.source")}),(0,S.jsx)(ls,{children:C("library.updated")}),(0,S.jsx)(ls,{children:C("library.state")}),(0,S.jsx)(ls,{children:(0,S.jsx)("span",{className:"sr-only",children:C("library.actions")})})]})}),(0,S.jsx)(Nk,{children:Ou.map(P=>(0,S.jsxs)(Jg,{children:[(0,S.jsx)(us,{children:(0,S.jsxs)(G,{type:"button",variant:"ghost",className:"file-title",onClick:()=>Kr(P),children:[(0,S.jsx)("span",{className:`file-icon ${P.kind}`,children:(0,S.jsx)(Mf,{kind:P.kind})}),(0,S.jsxs)("span",{children:[(0,S.jsx)("strong",{children:P.title}),(0,S.jsx)("small",{children:P.parentPageId&&b.some(ie=>ie.id===P.parentPageId&&!ie.deleted)?C("library.subpage",{title:b.find(ie=>ie.id===P.parentPageId)?.title??""}):(P.kind==="resource"?b.find(ie=>ie.id===P.parentId)?.filePath??b.find(ie=>ie.id===P.parentId)?.title:P.filePath?.split("/").slice(0,-1).join(" / "))||C("folder.root")})]})]})}),(0,S.jsx)(us,{children:P.resourceTypeId?e(t.find(ie=>ie.typeId===P.resourceTypeId)?.title??{en_US:P.resourceTypeId,zh_Hans:P.resourceTypeId}):s0(P.kind)}),(0,S.jsx)(us,{children:P.kind==="resource"?C("catalog.resource"):P.importOrigin?C("source.copyType"):P.kind==="page"?C("library.spacePage"):P.kind==="artifact"?C("materials.assistantArtifacts"):C("library.projectFile")}),(0,S.jsx)(us,{children:rl(P.updatedAt)}),(0,S.jsx)(us,{children:wv(P)}),(0,S.jsx)(us,{children:yv(P)})]},P.id))})]}),!Ou.length&&(0,S.jsxs)("div",{className:"empty-message",children:[(0,S.jsx)(ga,{}),(0,S.jsx)("h2",{children:V?C("library.noResults"):D?C("trash.empty"):C("library.empty")}),(0,S.jsx)("p",{children:V?C("library.searchHint"):C("library.createHint")}),Ts&&!D&&!V&&(0,S.jsxs)(G,{onClick:()=>Ir("page"),children:[(0,S.jsx)(Oo,{}),C("create.page")]})]})]}),n&&(0,S.jsx)(G,{variant:"outline",disabled:We,onClick:()=>{Ct(async()=>{let P=_s.current,ie=sv.parse(await Ee("catalog.list",{...gv,offset:r.length}));P===_s.current&&(o(Ma=>[...Ma,...ie.items.map(iv)]),s(ie.hasMore))})},children:C("catalog.more")}),(0,S.jsxs)("p",{className:"library-footnote",children:[(0,S.jsx)(Jr,{}),C("library.storageNote")]})]})}),hv==="knowledge"&&(0,S.jsxs)("aside",{className:"panel","aria-label":C("knowledge.title"),children:[(0,S.jsxs)("header",{children:[(0,S.jsx)("h2",{children:C("knowledge.title")}),(0,S.jsx)(G,{variant:"ghost",size:"icon","aria-label":C("common.closePanel"),onClick:()=>Ds(null),children:(0,S.jsx)(ro,{})})]}),y&&(0,S.jsx)(v0,{root:y,canWrite:Ts,canManage:Eu,run:Ct,busy:We})]})]}),Ps&&(0,S.jsx)(a0,{item:Ps,onClose:()=>fv(null),run:Ct,busy:We}),pv&&(0,S.jsx)(r0,{item:pv,onClose:()=>mv(null),run:Ct,busy:We}),i&&(0,S.jsx)(u0,{...i,busy:We,run:Ct,onClose:()=>l(null),onDone:tr}),u&&(0,S.jsx)(d0,{item:u,items:b,onClose:()=>c(null),onDone:tr,run:Ct,busy:We}),h&&(0,S.jsx)(lv,{item:h,duplicate:!0,busy:We,run:Ct,onClose:()=>v(null),onDone:tr}),d&&(0,S.jsx)(lv,{item:d,busy:We,run:Ct,onClose:()=>f(null),onDone:tr}),m&&(0,S.jsx)(nv,{implementations:t,items:b,initialParent:A,implementation:m,onClose:()=>p(null),onDone:tr,run:Ct,busy:We}),y&&er&&(er==="page"||er==="folder"||er==="edit"||J.some(P=>P.key===er))&&(0,S.jsx)(i0,{root:y,items:b,initialParent:A??"",kind:er,editors:J,editing:er==="edit"?k??void 0:void 0,onClose:()=>Ir(null),onDone:async P=>{await tr(),Kr(P)},run:Ct,busy:We}),y&&er==="materials"&&(0,S.jsx)(h0,{root:y,items:b,parentId:A??"",editors:J,onClose:()=>Ir(null),onDone:tr,run:Ct,busy:We}),y&&er==="source"&&(0,S.jsx)(c0,{spaceId:y.id,parentId:A,destination:C("source.destination",{space:y.title,folder:b.find(P=>P.id===A)?.title??C("folder.root")}),onClose:()=>Ir(null),onDone:tr,returnFocus:()=>g.current?.focus()}),er==="origin"&&k?.importOrigin&&(0,S.jsx)(mt,{open:!0,onOpenChange:()=>Ir(null),children:(0,S.jsxs)(ht,{className:"space-dialog",children:[(0,S.jsxs)(gt,{children:[(0,S.jsx)(vt,{children:C("source.originTitle")}),(0,S.jsx)(xt,{children:C("source.copyDescription")})]}),(0,S.jsx)("p",{children:C("source.originRevision",{provider:k.importOrigin.provider,revision:k.importOrigin.revision})}),(0,S.jsx)("p",{children:C("source.importedAt",{date:rl(k.importOrigin.importedAt)})}),(0,S.jsx)("p",{className:"break-all text-sm",children:C("source.id",{id:k.importOrigin.documentId})}),k.importOrigin.warnings.map(P=>(0,S.jsx)("p",{children:P},P)),k.importOrigin.url&&(0,S.jsx)("a",{className:"underline",href:k.importOrigin.url,target:"_blank",rel:"noopener noreferrer",children:C("source.openPlatform")}),(0,S.jsx)(G,{onClick:()=>Ir(null),children:C("common.close")})]})}),er==="access"&&(0,S.jsx)(mt,{open:!0,onOpenChange:()=>Ir(null),children:(0,S.jsxs)(ht,{className:"space-dialog capability-dialog",children:[(0,S.jsxs)(gt,{children:[(0,S.jsx)(vt,{children:C("space.title")}),(0,S.jsx)(xt,{children:C("access.description")})]}),(0,S.jsxs)("section",{children:[(0,S.jsx)("h2",{children:C("access.entry")}),(0,S.jsxs)("p",{className:"row",children:[(0,S.jsx)(Ln,{}),C("common.workbench")," ",(0,S.jsx)("span",{className:"muted",children:"/"}),C("access.views"),(0,S.jsx)("span",{className:"muted",children:"/"}),C("space.title")]}),(0,S.jsx)("p",{className:"muted",children:C("access.entryDescription")})]}),(0,S.jsxs)("section",{children:[(0,S.jsx)("h2",{children:C("access.title")}),(0,S.jsxs)("p",{className:"row",children:[(0,S.jsx)(eo,{}),(0,S.jsx)("strong",{children:C("access.shared")})]}),(0,S.jsx)("p",{children:C("access.roles")}),(0,S.jsx)("p",{className:"muted",children:C("access.projectPermissions")})]}),(0,S.jsxs)("section",{children:[(0,S.jsx)("h2",{children:C("access.capabilities")}),(0,S.jsxs)("ul",{className:"capability-list",children:[(0,S.jsxs)("li",{children:[(0,S.jsx)(ga,{}),(0,S.jsx)("strong",{children:C("access.pages")}),(0,S.jsx)("span",{children:C("access.pagesDescription")})]}),(0,S.jsxs)("li",{children:[(0,S.jsx)(ao,{}),(0,S.jsx)("strong",{children:C("access.ai")}),(0,S.jsx)("span",{children:C("access.aiDescription")})]}),(0,S.jsxs)("li",{children:[(0,S.jsx)(Rr,{}),(0,S.jsx)("strong",{children:C("navigation.files")}),(0,S.jsx)("span",{children:C("access.filesDescription")})]}),(0,S.jsxs)("li",{children:[(0,S.jsx)(Ba,{}),(0,S.jsx)("strong",{children:C("knowledge.title")}),(0,S.jsx)("span",{children:C("access.searchDescription")})]})]}),(0,S.jsx)("p",{className:"muted text-sm",children:C("access.sheetDescription")})]}),(0,S.jsxs)(Ot,{children:[(0,S.jsxs)("span",{className:"muted",children:[(0,S.jsx)(Jr,{}),C("library.storageNote")]}),(0,S.jsx)(G,{onClick:()=>Ir(null),children:C("common.done")})]})]})})]})}(0,x0.createRoot)(document.getElementById("root")).render((0,S.jsx)(qb,{i18n:Be,children:(0,S.jsx)(UN,{})}));})();