PageSourceSearch

https://thatrizzer-balajisoni.hf.space/assets/@ui-core-DKdciH1Z.js

js thatrizzer-balajisoni.hf.space collected 2026-10-03 17:26:37 UTC 399,147 bytes, 69 lines download raw bytes

vendor: 10,700 bytes, line 1
1function Sg(e,o){for(var r=0;r<o.length;r++){const i=o[r];if(typeof i!="string"&&!Array.isArray(i)){for(const l in i)if(l!=="default"&&!(l in e)){const a=Object.getOwnPropertyDescriptor(i,l);a&&Object.defineProperty(e,l,a.get?a:{enumerable:!0,get:()=>i[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var IM=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Iu={exports:{}},Yo={},Ou={exports:{}},Pe={};var wh;function t0(){if(wh)return Pe;wh=1;var e=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.iterator;function w(k){return k===null||typeof k!="object"?null:(k=y&&k[y]||k["@@iterator"],typeof k=="function"?k:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,S={};function P(k,V,ce){this.props=k,this.context=V,this.refs=S,this.updater=ce||x}P.prototype.isReactComponent={},P.prototype.setState=function(k,V){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,V,"setState")},P.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function _(){}_.prototype=P.prototype;function M(k,V,ce){this.props=k,this.context=V,this.refs=S,this.updater=ce||x}var O=M.prototype=new _;O.constructor=M,R(O,P.prototype),O.isPureReactComponent=!0;var N=Array.isArray,L=Object.prototype.hasOwnProperty,H={current:null},$={key:!0,ref:!0,__self:!0,__source:!0};function Y(k,V,ce){var de,xe={},Ce=null,q=null;if(V!=null)for(de in V.ref!==void 0&&(q=V.ref),V.key!==void 0&&(Ce=""+V.key),V)L.call(V,de)&&!$.hasOwnProperty(de)&&(xe[de]=V[de]);var ue=arguments.length-2;if(ue===1)xe.children=ce;else if(1<ue){for(var Re=Array(ue),Ee=0;Ee<ue;Ee++)Re[Ee]=arguments[Ee+2];xe.children=Re}if(k&&k.defaultProps)for(de in ue=k.defaultProps,ue)xe[de]===void 0&&(xe[de]=ue[de]);return{$$typeof:e,type:k,key:Ce,ref:q,props:xe,_owner:H.current}}function Z(k,V){return{$$typeof:e,type:k.type,key:V,ref:k.ref,props:k.props,_owner:k._owner}}function J(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function ae(k){var V={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(ce){return V[ce]})}var me=/\/+/g;function he(k,V){return typeof k=="object"&&k!==null&&k.key!=null?ae(""+k.key):V.toString(36)}function X(k,V,ce,de,xe){var Ce=typeof k;(Ce==="undefined"||Ce==="boolean")&&(k=null);var q=!1;if(k===null)q=!0;else switch(Ce){case"string":case"number":q=!0;break;case"object":switch(k.$$typeof){case e:case o:q=!0}}if(q)return q=k,xe=xe(q),k=de===""?"."+he(q,0):de,N(xe)?(ce="",k!=null&&(ce=k.replace(me,"$&/")+"/"),X(xe,V,ce,"",function(Ee){return Ee})):xe!=null&&(J(xe)&&(xe=Z(xe,ce+(!xe.key||q&&q.key===xe.key?"":(""+xe.key).replace(me,"$&/")+"/")+k)),V.push(xe)),1;if(q=0,de=de===""?".":de+":",N(k))for(var ue=0;ue<k.length;ue++){Ce=k[ue];var Re=de+he(Ce,ue);q+=X(Ce,V,ce,Re,xe)}else if(Re=w(k),typeof Re=="function")for(k=Re.call(k),ue=0;!(Ce=k.next()).done;)Ce=Ce.value,Re=de+he(Ce,ue++),q+=X(Ce,V,ce,Re,xe);else if(Ce==="object")throw V=String(k),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.");return q}function ve(k,V,ce){if(k==null)return k;var de=[],xe=0;return X(k,de,"","",function(Ce){return V.call(ce,Ce,xe++)}),de}function ne(k){if(k._status===-1){var V=k._result;V=V(),V.then(function(ce){(k._status===0||k._status===-1)&&(k._status=1,k._result=ce)},function(ce){(k._status===0||k._status===-1)&&(k._status=2,k._result=ce)}),k._status===-1&&(k._status=0,k._result=V)}if(k._status===1)return k._result.default;throw k._result}var se={current:null},j={transition:null},z={ReactCurrentDispatcher:se,ReactCurrentBatchConfig:j,ReactCurrentOwner:H};function K(){throw Error("act(...) is not supported in production builds of React.")}return Pe.Children={map:ve,forEach:function(k,V,ce){ve(k,function(){V.apply(this,arguments)},ce)},count:function(k){var V=0;return ve(k,function(){V++}),V},toArray:function(k){return ve(k,function(V){return V})||[]},only:function(k){if(!J(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},Pe.Component=P,Pe.Fragment=r,Pe.Profiler=l,Pe.PureComponent=M,Pe.StrictMode=i,Pe.Suspense=p,Pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,Pe.act=K,Pe.cloneElement=function(k,V,ce){if(k==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+k+".");var de=R({},k.props),xe=k.key,Ce=k.ref,q=k._owner;if(V!=null){if(V.ref!==void 0&&(Ce=V.ref,q=H.current),V.key!==void 0&&(xe=""+V.key),k.type&&k.type.defaultProps)var ue=k.type.defaultProps;for(Re in V)L.call(V,Re)&&!$.hasOwnProperty(Re)&&(de[Re]=V[Re]===void 0&&ue!==void 0?ue[Re]:V[Re])}var Re=arguments.length-2;if(Re===1)de.children=ce;else if(1<Re){ue=Array(Re);for(var Ee=0;Ee<Re;Ee++)ue[Ee]=arguments[Ee+2];de.children=ue}return{$$typeof:e,type:k.type,key:xe,ref:Ce,props:de,_owner:q}},Pe.createContext=function(k){return k={$$typeof:c,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},k.Provider={$$typeof:a,_context:k},k.Consumer=k},Pe.createElement=Y,Pe.createFactory=function(k){var V=Y.bind(null,k);return V.type=k,V},Pe.createRef=function(){return{current:null}},Pe.forwardRef=function(k){return{$$typeof:d,render:k}},Pe.isValidElement=J,Pe.lazy=function(k){return{$$typeof:v,_payload:{_status:-1,_result:k},_init:ne}},Pe.memo=function(k,V){return{$$typeof:m,type:k,compare:V===void 0?null:V}},Pe.startTransition=function(k){var V=j.transition;j.transition={};try{k()}finally{j.transition=V}},Pe.unstable_act=K,Pe.useCallback=function(k,V){return se.current.useCallback(k,V)},Pe.useContext=function(k){return se.current.useContext(k)},Pe.useDebugValue=function(){},Pe.useDeferredValue=function(k){return se.current.useDeferredValue(k)},Pe.useEffect=function(k,V){return se.current.useEffect(k,V)},Pe.useId=function(){return se.current.useId()},Pe.useImperativeHandle=function(k,V,ce){return se.current.useImperativeHandle(k,V,ce)},Pe.useInsertionEffect=function(k,V){return se.current.useInsertionEffect(k,V)},Pe.useLayoutEffect=function(k,V){return se.current.useLayoutEffect(k,V)},Pe.useMemo=function(k,V){return se.current.useMemo(k,V)},Pe.useReducer=function(k,V,ce){return se.current.useReducer(k,V,ce)},Pe.useRef=function(k){return se.current.useRef(k)},Pe.useState=function(k){return se.current.useState(k)},Pe.useSyncExternalStore=function(k,V,ce){return se.current.useSyncExternalStore(k,V,ce)},Pe.useTransition=function(){return se.current.useTransition()},Pe.version="18.3.1",Pe}var Sh;function nl(){return Sh||(Sh=1,Ou.exports=t0()),Ou.exports}var Ch;function n0(){if(Ch)return Yo;Ch=1;var e=nl(),o=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(d,p,m){var v,y={},w=null,x=null;m!==void 0&&(w=""+m),p.key!==void 0&&(w=""+p.key),p.ref!==void 0&&(x=p.ref);for(v in p)i.call(p,v)&&!a.hasOwnProperty(v)&&(y[v]=p[v]);if(d&&d.defaultProps)for(v in p=d.defaultProps,p)y[v]===void 0&&(y[v]=p[v]);return{$$typeof:o,type:d,key:w,ref:x,props:y,_owner:l.current}}return Yo.Fragment=r,Yo.jsx=c,Yo.jsxs=c,Yo}var xh;function r0(){return xh||(xh=1,Iu.exports=n0()),Iu.exports}var E=r0(),g=nl();const bn=Cg(g),xg=Sg({__proto__:null,default:bn},[g]);var Au={exports:{}},pt={},ku={exports:{}},Du={};var Rh;function o0(){return Rh||(Rh=1,(function(e){function o(j,z){var K=j.length;j.push(z);e:for(;0<K;){var k=K-1>>>1,V=j[k];if(0<l(V,z))j[k]=z,j[K]=V,K=k;else break e}}function r(j){return j.length===0?null:j[0]}function i(j){if(j.length===0)return null;var z=j[0],K=j.pop();if(K!==z){j[0]=K;e:for(var k=0,V=j.length,ce=V>>>1;k<ce;){var de=2*(k+1)-1,xe=j[de],Ce=de+1,q=j[Ce];if(0>l(xe,K))Ce<V&&0>l(q,xe)?(j[k]=q,j[Ce]=K,k=Ce):(j[k]=xe,j[de]=K,k=de);else if(Ce<V&&0>l(q,K))j[k]=q,j[Ce]=K,k=Ce;else break e}}return z}function l(j,z){var K=j.sortIndex-z.sortIndex;return K!==0?K:j.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var p=[],m=[],v=1,y=null,w=3,x=!1,R=!1,S=!1,P=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function O(j){for(var z=r(m);z!==null;){if(z.callback===null)i(m);else if(z.startTime<=j)i(m),z.sortIndex=z.expirationTime,o(p,z);else break;z=r(m)}}function N(j){if(S=!1,O(j),!R)if(r(p)!==null)R=!0,ne(L);else{var z=r(m);z!==null&&se(N,z.startTime-j)}}function L(j,z){R=!1,S&&(S=!1,_(Y),Y=-1),x=!0;var K=w;try{for(O(z),y=r(p);y!==null&&(!(y.expirationTime>z)||j&&!ae());){var k=y.callback;if(typeof k=="function"){y.callback=null,w=y.priorityLevel;var V=k(y.expirationTime<=z);z=e.unstable_now(),typeof V=="function"?y.callback=V:y===r(p)&&i(p),O(z)}else i(p);y=r(p)}if(y!==null)var ce=!0;else{var de=r(m);de!==null&&se(N,de.startTime-z),ce=!1}return ce}finally{y=null,w=K,x=!1}}var H=!1,$=null,Y=-1,Z=5,J=-1;function ae(){return!(e.unstable_now()-J<Z)}function me(){if($!==null){var j=e.unstable_now();J=j;var z=!0;try{z=$(!0,j)}finally{z?he():(H=!1,$=null)}}else H=!1}var he;if(typeof M=="function")he=function(){M(me)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,ve=X.port2;X.port1.onmessage=me,he=function(){ve.postMessage(null)}}else he=function(){P(me,0)};function ne(j){$=j,H||(H=!0,he())}function se(j,z){Y=P(function(){j(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null}
vendor: 49,282 bytes, lines 1-6
1,e.unstable_continueExecution=function(){R||x||(R=!0,ne(L))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return w},e.unstable_getFirstCallbackNode=function(){return r(p)},e.unstable_next=function(j){switch(w){case 1:case 2:case 3:var z=3;break;default:z=w}var K=w;w=z;try{return j()}finally{w=K}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,z){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var K=w;w=j;try{return z()}finally{w=K}},e.unstable_scheduleCallback=function(j,z,K){var k=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?k+K:k):K=k,j){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=K+V,j={id:v++,callback:z,priorityLevel:j,startTime:K,expirationTime:V,sortIndex:-1},K>k?(j.sortIndex=K,o(m,j),r(p)===null&&j===r(m)&&(S?(_(Y),Y=-1):S=!0,se(N,K-k))):(j.sortIndex=V,o(p,j),R||x||(R=!0,ne(L))),j},e.unstable_shouldYield=ae,e.unstable_wrapCallback=function(j){var z=w;return function(){var K=w;w=z;try{return j.apply(this,arguments)}finally{w=K}}}})(Du)),Du}var Eh;function i0(){return Eh||(Eh=1,ku.exports=o0()),ku.exports}var Ph;function s0(){if(Ph)return pt;Ph=1;var e=nl(),o=i0();function r(t){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+t,s=1;s<arguments.length;s++)n+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,l={};function a(t,n){c(t,n),c(t+"Capture",n)}function c(t,n){for(l[t]=n,t=0;t<n.length;t++)i.add(n[t])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,m=/^[: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]*$/,v={},y={};function w(t){return p.call(y,t)?!0:p.call(v,t)?!1:m.test(t)?y[t]=!0:(v[t]=!0,!1)}function x(t,n,s,u){if(s!==null&&s.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return u?!1:s!==null?!s.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function R(t,n,s,u){if(n===null||typeof n>"u"||x(t,n,s,u))return!0;if(u)return!1;if(s!==null)switch(s.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function S(t,n,s,u,f,h,C){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=u,this.attributeNamespace=f,this.mustUseProperty=s,this.propertyName=t,this.type=n,this.sanitizeURL=h,this.removeEmptyString=C}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){P[t]=new S(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var n=t[0];P[n]=new S(n,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){P[t]=new S(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){P[t]=new S(t,2,!1,t,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(t){P[t]=new S(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){P[t]=new S(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){P[t]=new S(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){P[t]=new S(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){P[t]=new S(t,5,!1,t.toLowerCase(),null,!1,!1)});var _=/[\-:]([a-z])/g;function M(t){return t[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(t){var n=t.replace(_,M);P[n]=new S(n,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var n=t.replace(_,M);P[n]=new S(n,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var n=t.replace(_,M);P[n]=new S(n,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){P[t]=new S(t,1,!1,t.toLowerCase(),null,!1,!1)}),P.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){P[t]=new S(t,1,!1,t.toLowerCase(),null,!0,!0)});function O(t,n,s,u){var f=P.hasOwnProperty(n)?P[n]:null;(f!==null?f.type!==0:u||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(R(n,s,f,u)&&(s=null),u||f===null?w(n)&&(s===null?t.removeAttribute(n):t.setAttribute(n,""+s)):f.mustUseProperty?t[f.propertyName]=s===null?f.type===3?!1:"":s:(n=f.attributeName,u=f.attributeNamespace,s===null?t.removeAttribute(n):(f=f.type,s=f===3||f===4&&s===!0?"":""+s,u?t.setAttributeNS(u,n,s):t.setAttribute(n,s))))}var N=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,L=Symbol.for("react.element"),H=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),J=Symbol.for("react.provider"),ae=Symbol.for("react.context"),me=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),ve=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),se=Symbol.for("react.offscreen"),j=Symbol.iterator;function z(t){return t===null||typeof t!="object"?null:(t=j&&t[j]||t["@@iterator"],typeof t=="function"?t:null)}var K=Object.assign,k;function V(t){if(k===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);k=n&&n[1]||""}return`
2`+k+t}var ce=!1;function de(t,n){if(!t||ce)return"";ce=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(b){var u=b}Reflect.construct(t,[],n)}else{try{n.call()}catch(b){u=b}t.call(n.prototype)}else{try{throw Error()}catch(b){u=b}t()}}catch(b){if(b&&u&&typeof b.stack=="string"){for(var f=b.stack.split(`
3`),h=u.stack.split(`
4`),C=f.length-1,T=h.length-1;1<=C&&0<=T&&f[C]!==h[T];)T--;for(;1<=C&&0<=T;C--,T--)if(f[C]!==h[T]){if(C!==1||T!==1)do if(C--,T--,0>T||f[C]!==h[T]){var I=`
5`+f[C].replace(" at new "," at ");return t.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",t.displayName)),I}while(1<=C&&0<=T);break}}}finally{ce=!1,Error.prepareStackTrace=s}return(t=t?t.displayName||t.name:"")?V(t):""}function xe(t){switch(t.tag){case 5:return V(t.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return t=de(t.type,!1),t;case 11:return t=de(t.type.render,!1),t;case 1:return t=de(t.type,!0),t;default:return""}}function Ce(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case $:return"Fragment";case H:return"Portal";case Z:return"Profiler";case Y:return"StrictMode";case he:return"Suspense";case X:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case ae:return(t.displayName||"Context")+".Consumer";case J:return(t._context.displayName||"Context")+".Provider";case me:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ve:return n=t.displayName||null,n!==null?n:Ce(t.type)||"Memo";case ne:n=t._payload,t=t._init;try{return Ce(t(n))}catch{}}return null}function q(t){var n=t.type;switch(t.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=n.render,t=t.displayName||t.name||"",n.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ce(n);case 8:return n===Y?"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 n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function ue(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Re(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Ee(t){var n=Re(t)?"checked":"value",s=Object.getOwnPropertyDescriptor(t.constructor.prototype,n),u=""+t[n];if(!t.hasOwnProperty(n)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var f=s.get,h=s.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return f.call(this)},set:function(C){u=""+C,h.call(this,C)}}),Object.defineProperty(t,n,{enumerable:s.enumerable}),{getValue:function(){return u},setValue:function(C){u=""+C},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function Me(t){t._valueTracker||(t._valueTracker=Ee(t))}function Ne(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var s=n.getValue(),u="";return t&&(u=Re(t)?t.checked?"true":"false":t.value),t=u,t!==s?(n.setValue(t),!0):!1}function Xe(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function kt(t,n){var s=n.checked;return K({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??t._wrapperState.initialChecked})}function vr(t,n){var s=n.defaultValue==null?"":n.defaultValue,u=n.checked!=null?n.checked:n.defaultChecked;s=ue(n.value!=null?n.value:s),t._wrapperState={initialChecked:u,initialValue:s,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function yr(t,n){n=n.checked,n!=null&&O(t,"checked",n,!1)}function qn(t,n){yr(t,n);var s=ue(n.value),u=n.type;if(s!=null)u==="number"?(s===0&&t.value===""||t.value!=s)&&(t.value=""+s):t.value!==""+s&&(t.value=""+s);else if(u==="submit"||u==="reset"){t.removeAttribute("value");return}n.hasOwnProperty("value")?jl(t,n.type,s):n.hasOwnProperty("defaultValue")&&jl(t,n.type,ue(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(t.defaultChecked=!!n.defaultChecked)}function Td(t,n,s){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var u=n.type;if(!(u!=="submit"&&u!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+t._wrapperState.initialValue,s||n===t.value||(t.value=n),t.defaultValue=n}s=t.name,s!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,s!==""&&(t.name=s)}function jl(t,n,s){(n!=="number"||Xe(t.ownerDocument)!==t)&&(s==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+s&&(t.defaultValue=""+s))}var co=Array.isArray;function wr(t,n,s,u){if(t=t.options,n){n={};for(var f=0;f<s.length;f++)n["$"+s[f]]=!0;for(s=0;s<t.length;s++)f=n.hasOwnProperty("$"+t[s].value),t[s].selected!==f&&(t[s].selected=f),f&&u&&(t[s].defaultSelected=!0)}else{for(s=""+ue(s),n=null,f=0;f<t.length;f++){if(t[f].value===s){t[f].selected=!0,u&&(t[f].defaultSelected=!0);return}n!==null||t[f].disabled||(n=t[f])}n!==null&&(n.selected=!0)}}function $l(t,n){if(n.dangerouslySetInnerHTML!=null)throw Error(r(91));return K({},n,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Md(t,n){var s=n.value;if(s==null){if(s=n.children,n=n.defaultValue,s!=null){if(n!=null)throw Error(r(92));if(co(s)){if(1<s.length)throw Error(r(93));s=s[0]}n=s}n==null&&(n=""),s=n}t._wrapperState={initialValue:ue(s)}}function Id(t,n){var s=ue(n.value),u=ue(n.defaultValue);s!=null&&(s=""+s,s!==t.value&&(t.value=s),n.defaultValue==null&&t.defaultValue!==s&&(t.defaultValue=s)),u!=null&&(t.defaultValue=""+u)}function Od(t){var n=t.textContent;n===t._wrapperState.initialValue&&n!==""&&n!==null&&(t.value=n)}function Ad(t){switch(t){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 zl(t,n){return t==null||t==="http://www.w3.org/1999/xhtml"?Ad(n):t==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var yi,kd=(function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,s,u,f){MSApp.execUnsafeLocalFunction(function(){return t(n,s,u,f)})}:t})(function(t,n){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=n;else{for(yi=yi||document.createElement("div"),yi.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=yi.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;n.firstChild;)t.appendChild(n.firstChild)}});function fo(t,n){if(n){var s=t.firstChild;if(s&&s===t.lastChild&&s.nodeType===3){s.nodeValue=n;return}}t.textContent=n}var po={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},iS=["Webkit","ms","Moz","O"];Object.keys(po).forEach(function(t){iS.forEach(function(n){n=n+t.charAt(0).toUpperCase()+t.substring(1),po[n]=po[t]})});function Dd(t,n,s){return n==null||typeof n=="boolean"||n===""?"":s||typeof n!="number"||n===0||po.hasOwnProperty(t)&&po[t]?(""+n).trim():n+"px"}function Nd(t,n){t=t.style;for(var s in n)if(n.hasOwnProperty(s)){var u=s.indexOf("--")===0,f=Dd(s,n[s],u);s==="float"&&(s="cssFloat"),u?t.setProperty(s,f):t[s]=f}}var sS=K({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 Vl(t,n){if(n){if(sS[t]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(r(137,t));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(r(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(r(61))}if(n.style!=null&&typeof n.style!="object")throw Error(r(62))}}function Hl(t,n){if(t.indexOf("-")===-1)return typeof n.is=="string";switch(t){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 Bl=null;function Ul(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Wl=null,Sr=null,Cr=null;function Fd(t){if(t=Fo(t)){if(typeof Wl!="function")throw Error(r(280));var n=t.stateNode;n&&(n=Vi(n),Wl(t.stateNode,t.type,n))}}function bd(t){Sr?Cr?Cr.push(t):Cr=[t]:Sr=t}function Ld(){if(Sr){var t=Sr,n=Cr;if(Cr=Sr=null,Fd(t),n)for(t=0;t<n.length;t++)Fd(n[t])}}function jd(t,n){return t(n)}function $d(){}var Gl=!1;function zd(t,n,s){if(Gl)return t(n,s);Gl=!0;try{return jd(t,n,s)}finally{Gl=!1,(Sr!==null||Cr!==null)&&($d(),Ld())}}function ho(t,n){var s=t.stateNode;if(s===null)return null;var u=Vi(s);if(u===null)return null;s=u[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(t=t.type,u=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!u;break e;default:t=!1}if(t)return null;if(s&&typeof s!="function")throw Error(r(231,n,typeof s));return s}var Kl=!1;if(d)try{var go={};Object.defineProperty(go,"passive",{get:function(){Kl=!0}}),window.addEventListener("test",go,go),window.removeEventListener("test",go,go)}catch{Kl=!1}function lS(t,n,s,u,f,h,C,T,I){var b=Array.prototype.slice.call(arguments,3);try{n.apply(s,b)}catch(W){this.onError(W)}}var mo=!1,wi=null,Si=!1,Ql=null,aS={onError:function(t){mo=!0,wi=t}};function uS(t,n,s,u,f,h,C,T,I){mo=!1,wi=null,lS.apply(aS,arguments)}function cS(t,n,s,u,f,h,C,T,I){if(uS.apply(this,arguments),mo){if(mo){var b=wi;mo=!1,wi=null}else throw Error(r(198));Si||(Si=!0,Ql=b)}}function Yn(t){var n=t,s=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(s=n.return),t=n.return;while(t)}return n.tag===3?s:null}function Vd(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function Hd(t){if(Yn(t)!==t)throw Error(r(188))}function dS(t){var n=t.alternate;if(!n){if(n=Yn(t),n===null)throw Error(r(188));return n!==t?null:t}for(var s=t,u=n;;){var f=s.return;if(f===null)break;var h=f.alternate;if(h===null){if(u=f.return,u!==null){s=u;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===s)return Hd(f),t;if(h===u)return Hd(f),n;h=h.sibling}throw Error(r(188))}if(s.return!==u.return)s=f,u=h;else{for(var C=!1,T=f.child;T;){if(T===s){C=!0,s=f,u=h;break}if(T===u){C=!0,u=f,s=h;break}T=T.sibling}if(!C){for(T=h.child;T;){if(T===s){C=!0,s=h,u=f;break}if(T===u){C=!0,u=h,s=f;break}T=T.sibling}if(!C)throw Error(r(189))}}if(s.alternate!==u)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?t:n}function Bd(t){return t=dS(t),t!==null?Ud(t):null}function Ud(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var n=Ud(t);if(n!==null)return n;t=t.sibling}return null}var Wd=o.unstable_scheduleCallback,Gd=o.unstable_cancelCallback,fS=o.unstable_shouldYield,pS=o.unstable_requestPaint,ze=o.unstable_now,hS=o.unstable_getCurrentPriorityLevel,ql=o.unstable_ImmediatePriority,Kd=o.unstable_UserBlockingPriority,Ci=o.unstable_NormalPriority,gS=o.unstable_LowPriority,Qd=o.unstable_IdlePriority,xi=null,Gt=null;function mS(t){if(Gt&&typeof Gt.onCommitFiberRoot=="function")try{Gt.onCommitFiberRoot(xi,t,void 0,(t.current.flags&128)===128)}catch{}}var Dt=Math.clz32?Math.clz32:wS,vS=Math.log,yS=Math.LN2;function wS(t){return t>>>=0,t===0?32:31-(vS(t)/yS|0)|0}var Ri=64,Ei=4194304;function vo(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Pi(t,n){var s=t.pendingLanes;if(s===0)return 0;var u=0,f=t.suspendedLanes,h=t.pingedLanes,C=s&268435455;if(C!==0){var T=C&~f;T!==0?u=vo(T):(h&=C,h!==0&&(u=vo(h)))}else C=s&~f,C!==0?u=vo(C):h!==0&&(u=vo(h));if(u===0)return 0;if(n!==0&&n!==u&&(n&f)===0&&(f=u&-u,h=n&-n,f>=h||f===16&&(h&4194240)!==0))return n;if((u&4)!==0&&(u|=s&16),n=t.entangledLanes,n!==0)for(t=t.entanglements,n&=u;0<n;)s=31-Dt(n),f=1<<s,u|=t[s],n&=~f;return u}function SS(t,n){switch(t){case 1:case 2:case 4:return n+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 n+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 CS(t,n){for(var s=t.suspendedLanes,u=t.pingedLanes,f=t.expirationTimes,h=t.pendingLanes;0<h;){var C=31-Dt(h),T=1<<C,I=f[C];I===-1?((T&s)===0||(T&u)!==0)&&(f[C]=SS(T,n)):I<=n&&(t.expiredLanes|=T),h&=~T}}function Yl(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function qd(){var t=Ri;return Ri<<=1,(Ri&4194240)===0&&(Ri=64),t}function Xl(t){for(var n=[],s=0;31>s;s++)n.push(t);return n}function yo(t,n,s){t.pendingLanes|=n,n!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,n=31-Dt(n),t[n]=s}function xS(t,n){var s=t.pendingLanes&~n;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=n,t.mutableReadLanes&=n,t.entangledLanes&=n,n=t.entanglements;var u=t.eventTimes;for(t=t.expirationTimes;0<s;){var f=31-Dt(s),h=1<<f;n[f]=0,u[f]=-1,t[f]=-1,s&=~h}}function Zl(t,n){var s=t.entangledLanes|=n;for(t=t.entanglements;s;){var u=31-Dt(s),f=1<<u;f&n|t[u]&n&&(t[u]|=n),s&=~f}}var Ie=0;function Yd(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var Xd,Jl,Zd,Jd,ef,ea=!1,_i=[],vn=null,yn=null,wn=null,wo=new Map,So=new Map,Sn=[],RS="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 tf(t,n){switch(t){case"focusin":case"focusout":vn=null;break;case"dragenter":case"dragleave":yn=null;break;case"mouseover":case"mouseout":wn=null;break;case"pointerover":case"pointerout":wo.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":So.delete(n.pointerId)}}function Co(t,n,s,u,f,h){return t===null||t.nativeEvent!==h?(t={blockedOn:n,domEventName:s,eventSystemFlags:u,nativeEvent:h,targetContainers:[f]},n!==null&&(n=Fo(n),n!==null&&Jl(n)),t):(t.eventSystemFlags|=u,n=t.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),t)}function ES(t,n,s,u,f){switch(n){case"focusin":return vn=Co(vn,t,n,s,u,f),!0;case"dragenter":return yn=Co(yn,t,n,s,u,f),!0;case"mouseover":return wn=Co(wn,t,n,s,u,f),!0;case"pointerover":var h=f.pointerId;return wo.set(h,Co(wo.get(h)||null,t,n,s,u,f)),!0;case"gotpointercapture":return h=f.pointerId,So.set(h,Co(So.get(h)||null,t,n,s,u,f)),!0}return!1}function nf(t){var n=Xn(t.target);if(n!==null){var s=Yn(n);if(s!==null){if(n=s.tag,n===13){if(n=Vd(s),n!==null){t.blockedOn=n,ef(t.priority,function(){Zd(s)});return}}else if(n===3&&s.stateNode.current.memoizedState.isDehydrated){t.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ti(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var s=na(t.domEventName,t.eventSystemFlags,n[0],t.nativeEvent);if(s===null){s=t.nativeEvent;var u=new s.constructor(s.type,s);Bl=u,s.target.dispatchEvent(u),Bl=null}else return n=Fo(s),n!==null&&Jl(n),t.blockedOn=s,!1;n.shift()}return!0}function rf(t,n,s){Ti(t)&&s.delete(n)}function PS(){ea=!1,vn!==null&&Ti(vn)&&(vn=null),yn!==null&&Ti(yn)&&(yn=null),wn!==null&&Ti(wn)&&(wn=null),wo.forEach(rf),So.forEach(rf)}function xo(t,n){t.blockedOn===n&&(t.blockedOn=null,ea||(ea=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,PS)))}function Ro(t){function n(f){return xo(f,t)}if(0<_i.length){xo(_i[0],t);for(var s=1;s<_i.length;s++){var u=_i[s];u.blockedOn===t&&(u.blockedOn=null)}}for(vn!==null&&xo(vn,t),yn!==null&&xo(yn,t),wn!==null&&xo(wn,t),wo.forEach(n),So.forEach(n),s=0;s<Sn.length;s++)u=Sn[s],u.blockedOn===t&&(u.blockedOn=null);for(;0<Sn.length&&(s=Sn[0],s.blockedOn===null);)nf(s),s.blockedOn===null&&Sn.shift()}var xr=N.ReactCurrentBatchConfig,Mi=!0;function _S(t,n,s,u){var f=Ie,h=xr.transition;xr.transition=null;try{Ie=1,ta(t,n,s,u)}finally{Ie=f,xr.transition=h}}function TS(t,n,s,u){var f=Ie,h=xr.transition;xr.transition=null;try{Ie=4,ta(t,n,s,u)}finally{Ie=f,xr.transition=h}}function ta(t,n,s,u){if(Mi){var f=na(t,n,s,u);if(f===null)wa(t,n,u,Ii,s),tf(t,u);else if(ES(f,t,n,s,u))u.stopPropagation();else if(tf(t,u),n&4&&-1<RS.indexOf(t)){for(;f!==null;){var h=Fo(f);if(h!==null&&Xd(h),h=na(t,n,s,u),h===null&&wa(t,n,u,Ii,s),h===f)break;f=h}f!==null&&u.stopPropagation()}else wa(t,n,u,null,s)}}var Ii=null;function na(t,n,s,u){if(Ii=null,t=Ul(u),t=Xn(t),t!==null)if(n=Yn(t),n===null)t=null;else if(s=n.tag,s===13){if(t=Vd(n),t!==null)return t;t=null}else if(s===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null);return Ii=t,null}function of(t){switch(t){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(hS()){case ql:return 1;case Kd:return 4;case Ci:case gS:return 16;case Qd:return 536870912;default:return 16}default:return 16}}var Cn=null,ra=null,Oi=null;function sf(){if(Oi)return Oi;var t,n=ra,s=n.length,u,f="value"in Cn?Cn.value:Cn.textContent,h=f.length;for(t=0;t<s&&n[t]===f[t];t++);var C=s-t;for(u=1;u<=C&&n[s-u]===f[h-u];u++);return Oi=f.slice(t,1<u?1-u:void 0)}function Ai(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function ki(){return!0}function lf(){return!1}function gt(t){function n(s,u,f,h,C){this._reactName=s,this._targetInst=f,this.type=u,this.nativeEvent=h,this.target=C,this.currentTarget=null;for(var T in t)t.hasOwnProperty(T)&&(s=t[T],this[T]=s?s(h):h[T]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?ki:lf,this.isPropagationStopped=lf,this}return K(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=ki)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=ki)},persist:function(){},isPersistent:ki}),n}var Rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},oa=gt(Rr),Eo=K({},Rr,{view:0,detail:0}),MS=gt(Eo),ia,sa,Po,Di=K({},Eo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:aa,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Po&&(Po&&t.type==="mousemove"?(ia=t.screenX-Po.screenX,sa=t.screenY-Po.screenY):sa=ia=0,Po=t),ia)},movementY:function(t){return"movementY"in t?t.movementY:sa}}),af=gt(Di),IS=K({},Di,{dataTransfer:0}),OS=gt(IS),AS=K({},Eo,{relatedTarget:0}),la=gt(AS),kS=K({},Rr,{animationName:0,elapsedTime:0,pseudoElement:0}),DS=gt(kS),NS=K({},Rr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),FS=gt(NS),bS=K({},Rr,{data:0}),uf=gt(bS),LS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jS={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"},$S={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zS(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=$S[t])?!!n[t]:!1}function aa(){return zS}var VS=K({},Eo,{key:function(t){if(t.key){var n=LS[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=Ai(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?jS[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:aa,charCode:function(t){return t.type==="keypress"?Ai(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ai(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),HS=gt(VS),BS=K({},Di,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cf=gt(BS),US=K({},Eo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:aa}),WS=gt(US),GS=K({},Rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),KS=gt(GS),QS=K({},Di,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),qS=gt(QS),YS=[9,13,27,32],ua=d&&"CompositionEvent"in window,_o=null;d&&"documentMode"in document&&(_o=document.documentMode);var XS=d&&"TextEvent"in window&&!_o,df=d&&(!ua||_o&&8<_o&&11>=_o),ff=" ",pf=!1;function hf(t,n){switch(t){case"keyup":return YS.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Er=!1;function ZS(t,n){switch(t){case"compositionend":return gf(n);case"keypress":return n.which!==32?null:(pf=!0,ff);case"textInput":return t=n.data,t===ff&&pf?null:t;default:return null}}function JS(t,n){if(Er)return t==="compositionend"||!ua&&hf(t,n)?(t=sf(),Oi=ra=Cn=null,Er=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return df&&n.locale!=="ko"?null:n.data;default:return null}}var eC={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 mf(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!eC[t.type]:n==="textarea"}function vf(t,n,s,u){bd(u),n=ji(n,"onChange"),0<n.length&&(s=new oa("onChange","change",null,s,u),t.push({event:s,listeners:n}))}var To=null,Mo=null;function tC(t){Ff(t,0)}function Ni(t){var n=Ir(t);if(Ne(n))return t}function nC(t,n){if(t==="change")return n}var yf=!1;if(d){var ca;if(d){var da="oninput"in document;if(!da){var wf=document.createElement("div");wf.setAttribute("oninput","return;"),da=typeof wf.oninput=="function"}ca=da}else ca=!1;yf=ca&&(!document.documentMode||9<document.documentMode)}function Sf(){To&&(To.detachEvent("onpropertychange",Cf),Mo=To=null)}function Cf(t){if(t.propertyName==="value"&&Ni(Mo)){var n=[];vf(n,Mo,t,Ul(t)),zd(tC,n)}}function rC(t,n,s){t==="focusin"?(Sf(),To=n,Mo=s,To.attachEvent("onpropertychange",Cf)):t==="focusout"&&Sf()}function oC(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ni(Mo)}function iC(t,n){if(t==="click")return Ni(n)}function sC(t,n){if(t==="input"||t==="change")return Ni(n)}function lC(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var Nt=typeof Object.is=="function"?Object.is:lC;function Io(t,n){if(Nt(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var s=Object.keys(t),u=Object.keys(n);if(s.length!==u.length)return!1;for(u=0;u<s.length;u++){var f=s[u];if(!p.call(n,f)||!Nt(t[f],n[f]))return!1}return!0}function xf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Rf(t,n){var s=xf(t);t=0;for(var u;s;){if(s.nodeType===3){if(u=t+s.textContent.length,t<=n&&u>=n)return{node:s,offset:n-t};t=u}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=xf(s)}}function Ef(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?Ef(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function Pf(){for(var t=window,n=Xe();n instanceof t.HTMLIFrameElement;){try{var s=typeof n.contentWindow.location.href=="string"}catch{s=!1}if(s)t=n.contentWindow;else break;n=Xe(t.document)}return n}function fa(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}function aC(t){var n=Pf(),s=t.focusedElem,u=t.selectionRange;if(n!==s&&s&&s.ownerDocument&&Ef(s.ownerDocument.documentElement,s)){if(u!==null&&fa(s)){if(n=u.start,t=u.end,t===void 0&&(t=n),"selectionStart"in s)s.selectionStart=n,s.selectionEnd=Math.min(t,s.value.length);else if(t=(n=s.ownerDocument||document)&&n.defaultView||window,t.getSelection){t=t.getSelection();var f=s.textContent.length,h=Math.min(u.start,f);u=u.end===void 0?h:Math.min(u.end,f),!t.extend&&h>u&&(f=u,u=h,h=f),f=Rf(s,h);var C=Rf(s,u);f&&C&&(t.rangeCount!==1||t.anchorNode!==f.node||t.anchorOffset!==f.offset||t.focusNode!==C.node||t.focusOffset!==C.offset)&&(n=n.createRange(),n.setStart(f.node,f.offset),t.removeAllRanges(),h>u?(t.addRange(n),t.extend(C.node,C.offset)):(n.setEnd(C.node,C.offset),t.addRange(n)))}}for(n=[],t=s;t=t.parentNode;)t.nodeType===1&&n.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<n.length;s++)t=n[s],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var uC=d&&"documentMode"in document&&11>=document.documentMode,Pr=null,pa=null,Oo=null,ha=!1;function _f(t,n,s){var u=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;ha||Pr==null||Pr!==Xe(u)||(u=Pr,"selectionStart"in u&&fa(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Oo&&Io(Oo,u)||(Oo=u,u=ji(pa,"onSelect"),0<u.length&&(n=new oa("onSelect","select",null,n,s),t.push({event:n,listeners:u}),n.target=Pr)))}function Fi(t,n){var s={};return s[t.toLowerCase()]=n.toLowerCase(),s["Webkit"+t]="webkit"+n,s["Moz"+t]="moz"+n,s}var _r={animationend:Fi("Animation","AnimationEnd"),animationiteration:Fi("Animation","AnimationIteration"),animationstart:Fi("Animation","AnimationStart"),transitionend:Fi("Transition","TransitionEnd")},ga={},Tf={};d&&(Tf=document.createElement("div").style,"AnimationEvent"in window||(delete _r.animationend.animation,delete _r.animationiteration.animation,delete _r.animationstart.animation),"TransitionEvent"in window||delete _r.transitionend.transition);function bi(t){if(ga[t])return ga[t];if(!_r[t])return t;var n=_r[t],s;for(s in n)if(n.hasOwnProperty(s)&&s in Tf)return ga[t]=n[s];return t}var Mf=bi("animationend"),If=bi("animationiteration"),Of=bi("animationstart"),Af=bi("transitionend"),kf=new Map,Df="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 xn(t,n){kf.set(t,n),a(n,[t])}for(var ma=0;ma<Df.length;ma++){var va=Df[ma],cC=va.toLowerCase(),dC=va[0].toUpperCase()+va.slice(1);xn(cC,"on"+dC)}xn(Mf,"onAnimationEnd"),xn(If,"onAnimationIteration"),xn(Of,"onAnimationStart"),xn("dblclick","onDoubleClick"),xn("focusin","onFocus"),xn("focusout","onBlur"),xn(Af,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ao="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(" "),fC=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ao));function Nf(t,n,s){var u=t.type||"unknown-event";t.currentTarget=s,cS(u,n,void 0,t),t.currentTarget=null}function Ff(t,n){n=(n&4)!==0;for(var s=0;s<t.length;s++){var u=t[s],f=u.event;u=u.listeners;e:{var h=void 0;if(n)for(var C=u.length-1;0<=C;C--){var T=u[C],I=T.instance,b=T.currentTarget;if(T=T.listener,I!==h&&f.isPropagationStopped())break e;Nf(f,T,b),h=I}else for(C=0;C<u.length;C++){if(T=u[C],I=T.instance,b=T.currentTarget,T=T.listener,I!==h&&f.isPropagationStopped())break e;Nf(f,T,b),h=I}}}if(Si)throw t=Ql,Si=!1,Ql=null,t}function Ae(t,n){var s=n[Pa];s===void 0&&(s=n[Pa]=new Set);var u=t+"__bubble";s.has(u)||(bf(n,t,2,!1),s.add(u))}function ya(t,n,s){var u=0;n&&(u|=4),bf(s,t,u,n)}var Li="_reactListening"+Math.random().toString(36).slice(2);function ko(t){if(!t[Li]){t[Li]=!0,i.forEach(function(s){s!=="selectionchange"&&(fC.has(s)||ya(s,!1,t),ya(s,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[Li]||(n[Li]=!0,ya("selectionchange",!1,n))}}function bf(t,n,s,u){switch(of(n)){case 1:var f=_S;break;case 4:f=TS;break;default:f=ta}s=f.bind(null,n,s,t),f=void 0,!Kl||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),u?f!==void 0?t.addEventListener(n,s,{capture:!0,passive:f}):t.addEventListener(n,s,!0):f!==void 0?t.addEventListener(n,s,{passive:f}):t.addEventListener(n,s,!1)}function wa(t,n,s,u,f){var h=u;if((n&1)===0&&(n&2)===0&&u!==null)e:for(;;){if(u===null)return;var C=u.tag;if(C===3||C===4){var T=u.stateNode.containerInfo;if(T===f||T.nodeType===8&&T.parentNode===f)break;if(C===4)for(C=u.return;C!==null;){var I=C.tag;if((I===3||I===4)&&(I=C.stateNode.containerInfo,I===f||I.nodeType===8&&I.parentNode===f))return;C=C.return}for(;T!==null;){if(C=Xn(T),C===null)return;if(I=C.tag,I===5||I===6){u=h=C;continue e}T=T.parentNode}}u=u.return}zd(function(){var b=h,W=Ul(s),G=[];e:{var U=kf.get(t);if(U!==void 0){var ee=oa,oe=t;switch(t){case"keypress":if(Ai(s)===0)break e;case"keydown":case"keyup":ee=HS;break;case"focusin":oe="focus",ee=la;break;case"focusout":oe="blur",ee=la;break;case"beforeblur":case"afterblur":ee=la;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=af;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=OS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=WS;break;case Mf:case If:case Of:ee=DS;break;case Af:ee=KS;break;case"scroll":ee=MS;break;case"wheel":ee=qS;break;case"copy":case"cut":case"paste":ee=FS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=cf}var ie=(n&4)!==0,Ve=!ie&&t==="scroll",D=ie?U!==null?U+"Capture":null:U;ie=[];for(var A=b,F;A!==null;){F=A;var Q=F.stateNode;if(F.tag===5&&Q!==null&&(F=Q,D!==null&&(Q=ho(A,D),Q!=null&&ie.push(Do(A,Q,F)))),Ve)break;A=A.return}0<ie.length&&(U=new ee(U,oe,null,s,W),G.push({event:U,listeners:ie}))}}if((n&7)===0){e:{if(U=t==="mouseover"||t==="pointerover",ee=t==="mouseout"||t==="pointerout",U&&s!==Bl&&(oe=s.relatedTarget||s.fromElement)&&(Xn(oe)||oe[on]))break e;if((ee||U)&&(U=W.window===W?W:(U=W.ownerDocument)?U.defaultView||U.parentWindow:window,ee?(oe=s.relatedTarget||s.toElement,ee=b,oe=oe?Xn(oe):null,oe!==null&&(Ve=Yn(oe),oe!==Ve||oe.tag!==5&&oe.tag!==6)&&(oe=null)):(ee=null,oe=b),ee!==oe)){if(ie=af,Q="onMouseLeave",D="onMouseEnter",A="mouse",(t==="pointerout"||t==="pointerover")&&(ie=cf,Q="onPointerLeave",D="onPointerEnter",A="pointer"),Ve=ee==null?U:Ir(ee),F=oe==null?U:Ir(oe),U=new ie(Q,A+"leave",ee,s,W),U.target=Ve,U.relatedTarget=F,Q=null,Xn(W)===b&&(ie=new ie(D,A+"enter",oe,s,W),ie.target=F,ie.relatedTarget=Ve,Q=ie),Ve=Q,ee&&oe)t:{for(ie=ee,D=oe,A=0,F=ie;F;F=Tr(F))A++;for(F=0,Q=D;Q;Q=Tr(Q))F++;for(;0<A-F;)ie=Tr(ie),A--;for(;0<F-A;)D=Tr(D),F--;for(;A--;){if(ie===D||D!==null&&ie===D.alternate)break t;ie=Tr(ie),D=Tr(D)}ie=null}else ie=null;ee!==null&&Lf(G,U,ee,ie,!1),oe!==null&&Ve!==null&&Lf(G,Ve,oe,ie,!0)}}e:{if(U=b?Ir(b):window,ee=U.nodeName&&U.nodeName.toLowerCase(),ee==="select"||ee==="input"&&U.type==="file")var le=nC;else if(mf(U))if(yf)le=sC;else{le=oC;var fe=rC}else(ee=U.nodeName)&&ee.toLowerCase()==="input"&&(U.type==="checkbox"||U.type==="radio")&&(le=iC);if(le&&(le=le(t,b))){vf(G,le,s,W);break e}fe&&fe(t,U,b),t==="focusout"&&(fe=U._wrapperState)&&fe.controlled&&U.type==="number"&&jl(U,"number",U.value)}switch(fe=b?Ir(b):window,t){case"focusin":(mf(fe)||fe.contentEditable==="true")&&(Pr=fe,pa=b,Oo=null);break;case"focusout":Oo=pa=Pr=null;break;case"mousedown":ha=!0;break;case"contextmenu":case"mouseup":case"dragend":ha=!1,_f(G,s,W);break;case"selectionchange":if(uC)break;case"keydown":case"keyup":_f(G,s,W)}var pe;if(ua)e:{switch(t){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else Er?hf(t,s)&&(Se="onCompositionEnd"):t==="keydown"&&s.keyCode===229&&(Se="onCompositionStart");Se&&(df&&s.locale!=="ko"&&(Er||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&Er&&(pe=sf()):(Cn=W,ra="value"in Cn?Cn.value:Cn.textContent,Er=!0)),fe=ji(b,Se),0<fe.length&&(Se=new uf(Se,t,null,s,W),G.push({event:Se,listeners:fe}),pe?Se.data=pe:(pe=gf(s),pe!==null&&(Se.data=pe)))),(pe=XS?ZS(t,s):JS(t,s))&&(b=ji(b,"onBeforeInput"),0<b.length&&(W=new uf("onBeforeInput","beforeinput",null,s,W),G.push({event:W,listeners:b}),W.data=pe))}Ff(G,n)})}function Do(t,n,s){return{instance:t,listener:n,currentTarget:s}}function ji(t,n){for(var s=n+"Capture",u=[];t!==null;){var f=t,h=f.stateNode;f.tag===5&&h!==null&&(f=h,h=ho(t,s),h!=null&&u.unshift(Do(t,h,f)),h=ho(t,n),h!=null&&u.push(Do(t,h,f))),t=t.return}return u}function Tr(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Lf(t,n,s,u,f){for(var h=n._reactName,C=[];s!==null&&s!==u;){var T=s,I=T.alternate,b=T.stateNode;if(I!==null&&I===u)break;T.tag===5&&b!==null&&(T=b,f?(I=ho(s,h),I!=null&&C.unshift(Do(s,I,T))):f||(I=ho(s,h),I!=null&&C.push(Do(s,I,T)))),s=s.return}C.length!==0&&t.push({event:n,listeners:C})}var pC=/\r\n?/g,hC=/\u0000|\uFFFD/g;function jf(t){return(typeof t=="string"?t:""+t).replace(pC,`
6`).replace(hC,"")}function $i(t,n,s){if(n=jf(n),jf(t)!==n&&s)throw Error(r(425))}function zi(){}var Sa=null,Ca=null;function xa(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Ra=typeof setTimeout=="function"?setTimeout:void 0,gC=typeof clearTimeout=="function"?clearTimeout:void 0,$f=typeof Promise=="function"?Promise:void 0,mC=typeof queueMicrotask=="function"?queueMicrotask:typeof $f<"u"?function(t){return $f.resolve(null).then(t).catch(vC)}:Ra;function vC(t){setTimeout(function(){throw t})}function Ea(t,n){var s=n,u=0;do{var f=s.nextSibling;if(t.removeChild(s),f&&f.nodeType===8)if(s=f.data,s==="/$"){if(u===0){t.removeChild(f),Ro(n);return}u--}else s!=="$"&&s!=="$?"&&s!=="$!"||u++;s=f}while(s);Ro(n)}function Rn(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return t}function zf(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var s=t.data;if(s==="$"||s==="$!"||s==="$?"){if(n===0)return t;n--}else s==="/$"&&n++}t=t.previousSibling}return null}var Mr=Math.random().toString(36).slice(2),Kt="__reactFiber$"+Mr,No="__reactProps$"+Mr,on="__reactContainer$"+Mr,Pa="__reactEvents$"+Mr,yC="__reactListeners$"+Mr,wC="__reactHandles$"+Mr;function Xn(t){var n=t[Kt];if(n)return n;for(var s=t.parentNode;s;){if(n=s[on]||s[Kt]){if(s=n.alternate,n.child!==null||s!==null&&s.child!==null)for(t=zf(t);t!==null;){if(s=t[Kt])return s;t=zf(t)}return n}t=s,s=t.parentNode}return null}function Fo(t){return t=t[Kt]||t[on],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Ir(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(r(33))}function Vi(t){return t[No]||null}var _a=[],Or=-1;function En(t){return{current:t}}function ke(t){0>Or||(t.current=_a[Or],_a[Or]=null,Or--)}function Oe(t,n){Or++,_a[Or]=t.current,t.current=n}var Pn={},et=En(Pn),at=En(!1),Zn=Pn;function Ar(t,n){var s=t.type.contextTypes;if(!s)return Pn;var u=t.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===n)return u.__reactInternalMemoizedMaskedChildContext;var f={},h;for(h in s)f[h]=n[h];return u&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=n,t.__reactInternalMemoizedMaskedChildContext=f),f}function ut(t){return t=t.childContextTypes,t!=null}function Hi(){ke(at),ke(et)}function Vf(t,n,s){if(et.current!==Pn)throw Error(r(168));Oe(et,n),Oe(at,s)}function Hf(t,n,s){var u=t.stateNode;if(n=n.childContextTypes,typeof u.getChildContext!="function")return s;u=u.getChildContext();for(var f in u)if(!(f in n))throw Error(r(108,q(t)||"Unknown",f));return K({},s,u)}function Bi(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Pn,Zn=et.current,Oe(et,t),Oe(at,at.current),!0}function Bf(t,n,s){var u=t.stateNode;if(!u)throw Error(r(169));s?(t=Hf(t,n,Zn),u.__reactInternalMemoizedMergedChildContext=t,ke(at),ke(et),Oe(et,t)):ke(at),Oe(at,s)}var sn=null,Ui=!1,Ta=!1;function Uf(t){sn===null?sn=[t]:sn.push(t)}function SC(t){Ui=!0,Uf(t)}function _n(){if(!Ta&&sn!==null){Ta=!0;var t=0,n=Ie;try{var s=sn;for(Ie=1;t<s.length;t++){var u=s[t];do u=u(!0);while(u!==null)}sn=null,Ui=!1}catch(f){throw sn!==null&&(sn=sn.slice(t+1)),Wd(ql,_n),f}finally{Ie=n,Ta=!1}}return null}var kr=[],Dr=0,Wi=null,Gi=0,Rt=[],Et=0,Jn=null,ln=1,an="";
vendor: 4,986 bytes, line 6
6function er(t,n){kr[Dr++]=Gi,kr[Dr++]=Wi,Wi=t,Gi=n}function Wf(t,n,s){Rt[Et++]=ln,Rt[Et++]=an,Rt[Et++]=Jn,Jn=t;var u=ln;t=an;var f=32-Dt(u)-1;u&=~(1<<f),s+=1;var h=32-Dt(n)+f;if(30<h){var C=f-f%5;h=(u&(1<<C)-1).toString(32),u>>=C,f-=C,ln=1<<32-Dt(n)+f|s<<f|u,an=h+t}else ln=1<<h|s<<f|u,an=t}function Ma(t){t.return!==null&&(er(t,1),Wf(t,1,0))}function Ia(t){for(;t===Wi;)Wi=kr[--Dr],kr[Dr]=null,Gi=kr[--Dr],kr[Dr]=null;for(;t===Jn;)Jn=Rt[--Et],Rt[Et]=null,an=Rt[--Et],Rt[Et]=null,ln=Rt[--Et],Rt[Et]=null}var mt=null,vt=null,De=!1,Ft=null;function Gf(t,n){var s=Mt(5,null,null,0);s.elementType="DELETED",s.stateNode=n,s.return=t,n=t.deletions,n===null?(t.deletions=[s],t.flags|=16):n.push(s)}function Kf(t,n){switch(t.tag){case 5:var s=t.type;return n=n.nodeType!==1||s.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(t.stateNode=n,mt=t,vt=Rn(n.firstChild),!0):!1;case 6:return n=t.pendingProps===""||n.nodeType!==3?null:n,n!==null?(t.stateNode=n,mt=t,vt=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(s=Jn!==null?{id:ln,overflow:an}:null,t.memoizedState={dehydrated:n,treeContext:s,retryLane:1073741824},s=Mt(18,null,null,0),s.stateNode=n,s.return=t,t.child=s,mt=t,vt=null,!0):!1;default:return!1}}function Oa(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Aa(t){if(De){var n=vt;if(n){var s=n;if(!Kf(t,n)){if(Oa(t))throw Error(r(418));n=Rn(s.nextSibling);var u=mt;n&&Kf(t,n)?Gf(u,s):(t.flags=t.flags&-4097|2,De=!1,mt=t)}}else{if(Oa(t))throw Error(r(418));t.flags=t.flags&-4097|2,De=!1,mt=t}}}function Qf(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;mt=t}function Ki(t){if(t!==mt)return!1;if(!De)return Qf(t),De=!0,!1;var n;if((n=t.tag!==3)&&!(n=t.tag!==5)&&(n=t.type,n=n!=="head"&&n!=="body"&&!xa(t.type,t.memoizedProps)),n&&(n=vt)){if(Oa(t))throw qf(),Error(r(418));for(;n;)Gf(t,n),n=Rn(n.nextSibling)}if(Qf(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));e:{for(t=t.nextSibling,n=0;t;){if(t.nodeType===8){var s=t.data;if(s==="/$"){if(n===0){vt=Rn(t.nextSibling);break e}n--}else s!=="$"&&s!=="$!"&&s!=="$?"||n++}t=t.nextSibling}vt=null}}else vt=mt?Rn(t.stateNode.nextSibling):null;return!0}function qf(){for(var t=vt;t;)t=Rn(t.nextSibling)}function Nr(){vt=mt=null,De=!1}function ka(t){Ft===null?Ft=[t]:Ft.push(t)}var CC=N.ReactCurrentBatchConfig;function bo(t,n,s){if(t=s.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(r(309));var u=s.stateNode}if(!u)throw Error(r(147,t));var f=u,h=""+t;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===h?n.ref:(n=function(C){var T=f.refs;C===null?delete T[h]:T[h]=C},n._stringRef=h,n)}if(typeof t!="string")throw Error(r(284));if(!s._owner)throw Error(r(290,t))}return t}function Qi(t,n){throw t=Object.prototype.toString.call(n),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t))}function Yf(t){var n=t._init;return n(t._payload)}function Xf(t){function n(D,A){if(t){var F=D.deletions;F===null?(D.deletions=[A],D.flags|=16):F.push(A)}}function s(D,A){if(!t)return null;for(;A!==null;)n(D,A),A=A.sibling;return null}function u(D,A){for(D=new Map;A!==null;)A.key!==null?D.set(A.key,A):D.set(A.index,A),A=A.sibling;return D}function f(D,A){return D=Nn(D,A),D.index=0,D.sibling=null,D}function h(D,A,F){return D.index=F,t?(F=D.alternate,F!==null?(F=F.index,F<A?(D.flags|=2,A):F):(D.flags|=2,A)):(D.flags|=1048576,A)}function C(D){return t&&D.alternate===null&&(D.flags|=2),D}function T(D,A,F,Q){return A===null||A.tag!==6?(A=Ru(F,D.mode,Q),A.return=D,A):(A=f(A,F),A.return=D,A)}function I(D,A,F,Q){var le=F.type;return le===$?W(D,A,F.props.children,Q,F.key):A!==null&&(A.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===ne&&Yf(le)===A.type)?(Q=f(A,F.props),Q.ref=bo(D,A,F),Q.return=D,Q):(Q=ys(F.type,F.key,F.props,null,D.mode,Q),Q.ref=bo(D,A,F),Q.return=D,Q)}function b(D,A,F,Q){return A===null||A.tag!==4||A.stateNode.containerInfo!==F.containerInfo||A.stateNode.implementation!==F.implementation?(A=Eu(F,D.mode,Q),A.return=D,A):(A=f(A,F.children||[]),A.return=D,A)}function W(D,A,F,Q,le){return A===null||A.tag!==7?(A=ar(F,D.mode,Q,le),A.return=D,A):(A=f(A,F),A.return=D,A)}function G(D,A,F){if(typeof A=="string"&&A!==""||typeof A=="number")return A=Ru(""+A,D.mode,F),A.return=D,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case L:return F=ys(A.type,A.key,A.props,null,D.mode,F),F.ref=bo(D,null,A),F.return=D,F;case H:return A=Eu(A,D.mode,F),A.return=D,A;case ne:var Q=A._init;return G(D,Q(A._payload),F)}if(co(A)||z(A))return A=ar(A,D.mode,F,null),A.return=D,A;Qi(D,A)}return null}function U(D,A,F,Q){var le=A!==null?A.key:null;if(typeof F=="string"&&F!==""||typeof F=="number")return le!==null?null:T(D,A,""+F,Q);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case L:return F.key===le?I(D,A,F,Q):null;case H:return F.key===le?b(D,A,F,Q):null;case ne:return le=F._init,U(D,A,le(F._payload),Q)}
vendor: 7,392 bytes, line 6
6if(co(F)||z(F))return le!==null?null:W(D,A,F,Q,null);Qi(D,F)}return null}function ee(D,A,F,Q,le){if(typeof Q=="string"&&Q!==""||typeof Q=="number")return D=D.get(F)||null,T(A,D,""+Q,le);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case L:return D=D.get(Q.key===null?F:Q.key)||null,I(A,D,Q,le);case H:return D=D.get(Q.key===null?F:Q.key)||null,b(A,D,Q,le);case ne:var fe=Q._init;return ee(D,A,F,fe(Q._payload),le)}if(co(Q)||z(Q))return D=D.get(F)||null,W(A,D,Q,le,null);Qi(A,Q)}return null}function oe(D,A,F,Q){for(var le=null,fe=null,pe=A,Se=A=0,Ye=null;pe!==null&&Se<F.length;Se++){pe.index>Se?(Ye=pe,pe=null):Ye=pe.sibling;var Te=U(D,pe,F[Se],Q);if(Te===null){pe===null&&(pe=Ye);break}t&&pe&&Te.alternate===null&&n(D,pe),A=h(Te,A,Se),fe===null?le=Te:fe.sibling=Te,fe=Te,pe=Ye}if(Se===F.length)return s(D,pe),De&&er(D,Se),le;if(pe===null){for(;Se<F.length;Se++)pe=G(D,F[Se],Q),pe!==null&&(A=h(pe,A,Se),fe===null?le=pe:fe.sibling=pe,fe=pe);return De&&er(D,Se),le}for(pe=u(D,pe);Se<F.length;Se++)Ye=ee(pe,D,Se,F[Se],Q),Ye!==null&&(t&&Ye.alternate!==null&&pe.delete(Ye.key===null?Se:Ye.key),A=h(Ye,A,Se),fe===null?le=Ye:fe.sibling=Ye,fe=Ye);return t&&pe.forEach(function(Fn){return n(D,Fn)}),De&&er(D,Se),le}function ie(D,A,F,Q){var le=z(F);if(typeof le!="function")throw Error(r(150));if(F=le.call(F),F==null)throw Error(r(151));for(var fe=le=null,pe=A,Se=A=0,Ye=null,Te=F.next();pe!==null&&!Te.done;Se++,Te=F.next()){pe.index>Se?(Ye=pe,pe=null):Ye=pe.sibling;var Fn=U(D,pe,Te.value,Q);if(Fn===null){pe===null&&(pe=Ye);break}t&&pe&&Fn.alternate===null&&n(D,pe),A=h(Fn,A,Se),fe===null?le=Fn:fe.sibling=Fn,fe=Fn,pe=Ye}if(Te.done)return s(D,pe),De&&er(D,Se),le;if(pe===null){for(;!Te.done;Se++,Te=F.next())Te=G(D,Te.value,Q),Te!==null&&(A=h(Te,A,Se),fe===null?le=Te:fe.sibling=Te,fe=Te);return De&&er(D,Se),le}for(pe=u(D,pe);!Te.done;Se++,Te=F.next())Te=ee(pe,D,Se,Te.value,Q),Te!==null&&(t&&Te.alternate!==null&&pe.delete(Te.key===null?Se:Te.key),A=h(Te,A,Se),fe===null?le=Te:fe.sibling=Te,fe=Te);return t&&pe.forEach(function(e0){return n(D,e0)}),De&&er(D,Se),le}function Ve(D,A,F,Q){if(typeof F=="object"&&F!==null&&F.type===$&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case L:e:{for(var le=F.key,fe=A;fe!==null;){if(fe.key===le){if(le=F.type,le===$){if(fe.tag===7){s(D,fe.sibling),A=f(fe,F.props.children),A.return=D,D=A;break e}}else if(fe.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===ne&&Yf(le)===fe.type){s(D,fe.sibling),A=f(fe,F.props),A.ref=bo(D,fe,F),A.return=D,D=A;break e}s(D,fe);break}else n(D,fe);fe=fe.sibling}F.type===$?(A=ar(F.props.children,D.mode,Q,F.key),A.return=D,D=A):(Q=ys(F.type,F.key,F.props,null,D.mode,Q),Q.ref=bo(D,A,F),Q.return=D,D=Q)}return C(D);case H:e:{for(fe=F.key;A!==null;){if(A.key===fe)if(A.tag===4&&A.stateNode.containerInfo===F.containerInfo&&A.stateNode.implementation===F.implementation){s(D,A.sibling),A=f(A,F.children||[]),A.return=D,D=A;break e}else{s(D,A);break}else n(D,A);A=A.sibling}A=Eu(F,D.mode,Q),A.return=D,D=A}return C(D);case ne:return fe=F._init,Ve(D,A,fe(F._payload),Q)}if(co(F))return oe(D,A,F,Q);if(z(F))return ie(D,A,F,Q);Qi(D,F)}return typeof F=="string"&&F!==""||typeof F=="number"?(F=""+F,A!==null&&A.tag===6?(s(D,A.sibling),A=f(A,F),A.return=D,D=A):(s(D,A),A=Ru(F,D.mode,Q),A.return=D,D=A),C(D)):s(D,A)}return Ve}var Fr=Xf(!0),Zf=Xf(!1),qi=En(null),Yi=null,br=null,Da=null;function Na(){Da=br=Yi=null}function Fa(t){var n=qi.current;ke(qi),t._currentValue=n}function ba(t,n,s){for(;t!==null;){var u=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,u!==null&&(u.childLanes|=n)):u!==null&&(u.childLanes&n)!==n&&(u.childLanes|=n),t===s)break;t=t.return}}function Lr(t,n){Yi=t,Da=br=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&n)!==0&&(ct=!0),t.firstContext=null)}function Pt(t){var n=t._currentValue;if(Da!==t)if(t={context:t,memoizedValue:n,next:null},br===null){if(Yi===null)throw Error(r(308));br=t,Yi.dependencies={lanes:0,firstContext:t}}else br=br.next=t;return n}var tr=null;function La(t){tr===null?tr=[t]:tr.push(t)}function Jf(t,n,s,u){var f=n.interleaved;return f===null?(s.next=s,La(n)):(s.next=f.next,f.next=s),n.interleaved=s,un(t,u)}function un(t,n){t.lanes|=n;var s=t.alternate;for(s!==null&&(s.lanes|=n),s=t,t=t.return;t!==null;)t.childLanes|=n,s=t.alternate,s!==null&&(s.childLanes|=n),s=t,t=t.return;return s.tag===3?s.stateNode:null}var Tn=!1;function ja(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ep(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function cn(t,n){return{eventTime:t,lane:n,tag:0,payload:null,callback:null,next:null}}function Mn(t,n,s){var u=t.updateQueue;if(u===null)return null;if(u=u.shared,(_e&2)!==0){var f=u.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),u.pending=n,un(t,s)}return f=u.interleaved,f===null?(n.next=n,La(u)):(n.next=f.next,f.next=n),u.interleaved=n,un(t,s)}function Xi(t,n,s){if(n=n.updateQueue,n!==null&&(n=n.shared,(s&4194240)!==0)){var u=n.lanes;u&=t.pendingLanes,s|=u,n.lanes=s,Zl(t,s)}}function tp(t,n){var s=t.updateQueue,u=t.alternate;if(u!==null&&(u=u.updateQueue,s===u)){var f=null,h=null;if(s=s.firstBaseUpdate,s!==null){do{var C={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};h===null?f=h=C:h=h.next=C,s=s.next}while(s!==null);h===null?f=h=n:h=h.next=n}else f=h=n;s={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:u.shared,effects:u.effects},t.updateQueue=s;return}t=s.lastBaseUpdate,t===null?s.firstBaseUpdate=n:t.next=n,s.lastBaseUpdate=n}function Zi(t,n,s,u){var f=t.updateQueue;Tn=!1;var h=f.firstBaseUpdate,C=f.lastBaseUpdate,T=f.shared.pending;if(T!==null){f.shared.pending=null;var I=T,b=I.next;I.next=null,C===null?h=b:C.next=b,C=I;var W=t.alternate;W!==null&&(W=W.updateQueue,T=W.lastBaseUpdate,T!==C&&(T===null?W.firstBaseUpdate=b:T.next=b,W.lastBaseUpdate=I))}if(h!==null){var G=f.baseState;C=0,W=b=I=null,T=h;do{var U=T.lane,ee=T.eventTime;if((u&U)===U){W!==null&&(W=W.next={eventTime:ee,lane:0,tag:T.tag,payload:T.payload,callback:T.callback,next:null});e:{var oe=t,ie=T;switch(U=n,ee=s,ie.tag){case 1:if(oe=ie.payload,typeof oe=="function"){G=oe.call(ee,G,U);break e}G=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=ie.payload,U=typeof oe=="function"?oe.call(ee,G,U):oe,U==null)break e;G=K({},G,U);break e;case 2:Tn=!0}}T.callback!==null&&T.lane!==0&&(t.flags|=64,U=f.effects,U===null?f.effects=[T]:U.push(T))}else ee={eventTime:ee,lane:U,tag:T.tag,payload:T.payload,callback:T.callback,next:null},W===null?(b=W=ee,I=G):W=W.next=ee,C|=U;if(T=T.next,T===null){if(T=f.shared.pending,T===null)break;U=T,T=U.next,U.next=null,f.lastBaseUpdate=U,f.shared.pending=null}}while(!0);if(W===null&&(I=G),f.baseState=I,f.firstBaseUpdate=b,f.lastBaseUpdate=W,n=f.shared.interleaved,n!==null){f=n;do C|=f.lane,f=f.next;while(f!==n)}else h===null&&(f.shared.lanes=0);or|=C,t.lanes=C,t.memoizedState=G}}function np(t,n,s){if(t=n.effects,n.effects=null,t!==null)for(n=0;n<t.length;n++){var u=t[n],f=u.callback;if(f!==null){if(u.callback=null,u=s,typeof f!="function")throw Error(r(191,f));f.call(u)}}}var Lo={},Qt=En(Lo),jo=En(Lo),$o=En(Lo);
vendor: 5,903 bytes, line 6
6function nr(t){if(t===Lo)throw Error(r(174));return t}function $a(t,n){switch(Oe($o,n),Oe(jo,t),Oe(Qt,Lo),t=n.nodeType,t){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:zl(null,"");break;default:t=t===8?n.parentNode:n,n=t.namespaceURI||null,t=t.tagName,n=zl(n,t)}ke(Qt),Oe(Qt,n)}function jr(){ke(Qt),ke(jo),ke($o)}function rp(t){nr($o.current);var n=nr(Qt.current),s=zl(n,t.type);n!==s&&(Oe(jo,t),Oe(Qt,s))}function za(t){jo.current===t&&(ke(Qt),ke(jo))}var Fe=En(0);function Ji(t){for(var n=t;n!==null;){if(n.tag===13){var s=n.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Va=[];function Ha(){for(var t=0;t<Va.length;t++)Va[t]._workInProgressVersionPrimary=null;Va.length=0}var es=N.ReactCurrentDispatcher,Ba=N.ReactCurrentBatchConfig,rr=0,be=null,Ge=null,Qe=null,ts=!1,zo=!1,Vo=0,xC=0;function tt(){throw Error(r(321))}function Ua(t,n){if(n===null)return!1;for(var s=0;s<n.length&&s<t.length;s++)if(!Nt(t[s],n[s]))return!1;return!0}function Wa(t,n,s,u,f,h){if(rr=h,be=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,es.current=t===null||t.memoizedState===null?_C:TC,t=s(u,f),zo){h=0;do{if(zo=!1,Vo=0,25<=h)throw Error(r(301));h+=1,Qe=Ge=null,n.updateQueue=null,es.current=MC,t=s(u,f)}while(zo)}if(es.current=os,n=Ge!==null&&Ge.next!==null,rr=0,Qe=Ge=be=null,ts=!1,n)throw Error(r(300));return t}function Ga(){var t=Vo!==0;return Vo=0,t}function qt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?be.memoizedState=Qe=t:Qe=Qe.next=t,Qe}function _t(){if(Ge===null){var t=be.alternate;t=t!==null?t.memoizedState:null}else t=Ge.next;var n=Qe===null?be.memoizedState:Qe.next;if(n!==null)Qe=n,Ge=t;else{if(t===null)throw Error(r(310));Ge=t,t={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},Qe===null?be.memoizedState=Qe=t:Qe=Qe.next=t}return Qe}function Ho(t,n){return typeof n=="function"?n(t):n}function Ka(t){var n=_t(),s=n.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=t;var u=Ge,f=u.baseQueue,h=s.pending;if(h!==null){if(f!==null){var C=f.next;f.next=h.next,h.next=C}u.baseQueue=f=h,s.pending=null}if(f!==null){h=f.next,u=u.baseState;var T=C=null,I=null,b=h;do{var W=b.lane;if((rr&W)===W)I!==null&&(I=I.next={lane:0,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null}),u=b.hasEagerState?b.eagerState:t(u,b.action);else{var G={lane:W,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null};I===null?(T=I=G,C=u):I=I.next=G,be.lanes|=W,or|=W}b=b.next}while(b!==null&&b!==h);I===null?C=u:I.next=T,Nt(u,n.memoizedState)||(ct=!0),n.memoizedState=u,n.baseState=C,n.baseQueue=I,s.lastRenderedState=u}if(t=s.interleaved,t!==null){f=t;do h=f.lane,be.lanes|=h,or|=h,f=f.next;while(f!==t)}else f===null&&(s.lanes=0);return[n.memoizedState,s.dispatch]}function Qa(t){var n=_t(),s=n.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=t;var u=s.dispatch,f=s.pending,h=n.memoizedState;if(f!==null){s.pending=null;var C=f=f.next;do h=t(h,C.action),C=C.next;while(C!==f);Nt(h,n.memoizedState)||(ct=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),s.lastRenderedState=h}return[h,u]}function op(){}function ip(t,n){var s=be,u=_t(),f=n(),h=!Nt(u.memoizedState,f);if(h&&(u.memoizedState=f,ct=!0),u=u.queue,qa(ap.bind(null,s,u,t),[t]),u.getSnapshot!==n||h||Qe!==null&&Qe.memoizedState.tag&1){if(s.flags|=2048,Bo(9,lp.bind(null,s,u,f,n),void 0,null),qe===null)throw Error(r(349));(rr&30)!==0||sp(s,n,f)}return f}function sp(t,n,s){t.flags|=16384,t={getSnapshot:n,value:s},n=be.updateQueue,n===null?(n={lastEffect:null,stores:null},be.updateQueue=n,n.stores=[t]):(s=n.stores,s===null?n.stores=[t]:s.push(t))}function lp(t,n,s,u){n.value=s,n.getSnapshot=u,up(n)&&cp(t)}function ap(t,n,s){return s(function(){up(n)&&cp(t)})}function up(t){var n=t.getSnapshot;t=t.value;try{var s=n();return!Nt(t,s)}catch{return!0}}function cp(t){var n=un(t,1);n!==null&&$t(n,t,1,-1)}function dp(t){var n=qt();return typeof t=="function"&&(t=t()),n.memoizedState=n.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ho,lastRenderedState:t},n.queue=t,t=t.dispatch=PC.bind(null,be,t),[n.memoizedState,t]}function Bo(t,n,s,u){return t={tag:t,create:n,destroy:s,deps:u,next:null},n=be.updateQueue,n===null?(n={lastEffect:null,stores:null},be.updateQueue=n,n.lastEffect=t.next=t):(s=n.lastEffect,s===null?n.lastEffect=t.next=t:(u=s.next,s.next=t,t.next=u,n.lastEffect=t)),t}function fp(){return _t().memoizedState}function ns(t,n,s,u){var f=qt();be.flags|=t,f.memoizedState=Bo(1|n,s,void 0,u===void 0?null:u)}function rs(t,n,s,u){var f=_t();u=u===void 0?null:u;var h=void 0;if(Ge!==null){var C=Ge.memoizedState;if(h=C.destroy,u!==null&&Ua(u,C.deps)){f.memoizedState=Bo(n,s,h,u);return}}be.flags|=t,f.memoizedState=Bo(1|n,s,h,u)}function pp(t,n){return ns(8390656,8,t,n)}function qa(t,n){return rs(2048,8,t,n)}function hp(t,n){return rs(4,2,t,n)}function gp(t,n){return rs(4,4,t,n)}function mp(t,n){if(typeof n=="function")return t=t(),n(t),function(){n(null)};if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function vp(t,n,s){return s=s!=null?s.concat([t]):null,rs(4,4,mp.bind(null,n,t),s)}function Ya(){}function yp(t,n){var s=_t();n=n===void 0?null:n;var u=s.memoizedState;return u!==null&&n!==null&&Ua(n,u[1])?u[0]:(s.memoizedState=[t,n],t)}function wp(t,n){var s=_t();n=n===void 0?null:n;var u=s.memoizedState;return u!==null&&n!==null&&Ua(n,u[1])?u[0]:(t=t(),s.memoizedState=[t,n],t)}function Sp(t,n,s){return(rr&21)===0?(t.baseState&&(t.baseState=!1,
vendor: 4,917 bytes, line 6
6ct=!0),t.memoizedState=s):(Nt(s,n)||(s=qd(),be.lanes|=s,or|=s,t.baseState=!0),n)}function RC(t,n){var s=Ie;Ie=s!==0&&4>s?s:4,t(!0);var u=Ba.transition;Ba.transition={};try{t(!1),n()}finally{Ie=s,Ba.transition=u}}function Cp(){return _t().memoizedState}function EC(t,n,s){var u=kn(t);if(s={lane:u,action:s,hasEagerState:!1,eagerState:null,next:null},xp(t))Rp(n,s);else if(s=Jf(t,n,s,u),s!==null){var f=st();$t(s,t,u,f),Ep(s,n,u)}}function PC(t,n,s){var u=kn(t),f={lane:u,action:s,hasEagerState:!1,eagerState:null,next:null};if(xp(t))Rp(n,f);else{var h=t.alternate;if(t.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var C=n.lastRenderedState,T=h(C,s);if(f.hasEagerState=!0,f.eagerState=T,Nt(T,C)){var I=n.interleaved;I===null?(f.next=f,La(n)):(f.next=I.next,I.next=f),n.interleaved=f;return}}catch{}s=Jf(t,n,f,u),s!==null&&(f=st(),$t(s,t,u,f),Ep(s,n,u))}}function xp(t){var n=t.alternate;return t===be||n!==null&&n===be}function Rp(t,n){zo=ts=!0;var s=t.pending;s===null?n.next=n:(n.next=s.next,s.next=n),t.pending=n}function Ep(t,n,s){if((s&4194240)!==0){var u=n.lanes;u&=t.pendingLanes,s|=u,n.lanes=s,Zl(t,s)}}var os={readContext:Pt,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useInsertionEffect:tt,useLayoutEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useMutableSource:tt,useSyncExternalStore:tt,useId:tt,unstable_isNewReconciler:!1},_C={readContext:Pt,useCallback:function(t,n){return qt().memoizedState=[t,n===void 0?null:n],t},useContext:Pt,useEffect:pp,useImperativeHandle:function(t,n,s){return s=s!=null?s.concat([t]):null,ns(4194308,4,mp.bind(null,n,t),s)},useLayoutEffect:function(t,n){return ns(4194308,4,t,n)},useInsertionEffect:function(t,n){return ns(4,2,t,n)},useMemo:function(t,n){var s=qt();return n=n===void 0?null:n,t=t(),s.memoizedState=[t,n],t},useReducer:function(t,n,s){var u=qt();return n=s!==void 0?s(n):n,u.memoizedState=u.baseState=n,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},u.queue=t,t=t.dispatch=EC.bind(null,be,t),[u.memoizedState,t]},useRef:function(t){var n=qt();return t={current:t},n.memoizedState=t},useState:dp,useDebugValue:Ya,useDeferredValue:function(t){return qt().memoizedState=t},useTransition:function(){var t=dp(!1),n=t[0];return t=RC.bind(null,t[1]),qt().memoizedState=t,[n,t]},useMutableSource:function(){},useSyncExternalStore:function(t,n,s){var u=be,f=qt();if(De){if(s===void 0)throw Error(r(407));s=s()}else{if(s=n(),qe===null)throw Error(r(349));(rr&30)!==0||sp(u,n,s)}f.memoizedState=s;var h={value:s,getSnapshot:n};return f.queue=h,pp(ap.bind(null,u,h,t),[t]),u.flags|=2048,Bo(9,lp.bind(null,u,h,s,n),void 0,null),s},useId:function(){var t=qt(),n=qe.identifierPrefix;if(De){var s=an,u=ln;s=(u&~(1<<32-Dt(u)-1)).toString(32)+s,n=":"+n+"R"+s,s=Vo++,0<s&&(n+="H"+s.toString(32)),n+=":"}else s=xC++,n=":"+n+"r"+s.toString(32)+":";return t.memoizedState=n},unstable_isNewReconciler:!1},TC={readContext:Pt,useCallback:yp,useContext:Pt,useEffect:qa,useImperativeHandle:vp,useInsertionEffect:hp,useLayoutEffect:gp,useMemo:wp,useReducer:Ka,useRef:fp,useState:function(){return Ka(Ho)},useDebugValue:Ya,useDeferredValue:function(t){var n=_t();return Sp(n,Ge.memoizedState,t)},useTransition:function(){var t=Ka(Ho)[0],n=_t().memoizedState;return[t,n]},useMutableSource:op,useSyncExternalStore:ip,useId:Cp,unstable_isNewReconciler:!1},MC={readContext:Pt,useCallback:yp,useContext:Pt,useEffect:qa,useImperativeHandle:vp,useInsertionEffect:hp,useLayoutEffect:gp,useMemo:wp,useReducer:Qa,useRef:fp,useState:function(){return Qa(Ho)},useDebugValue:Ya,useDeferredValue:function(t){var n=_t();return Ge===null?n.memoizedState=t:Sp(n,Ge.memoizedState,t)},useTransition:function(){var t=Qa(Ho)[0],n=_t().memoizedState;return[t,n]},useMutableSource:op,useSyncExternalStore:ip,useId:Cp,unstable_isNewReconciler:!1};function bt(t,n){if(t&&t.defaultProps){n=K({},n),t=t.defaultProps;for(var s in t)n[s]===void 0&&(n[s]=t[s]);return n}return n}function Xa(t,n,s,u){n=t.memoizedState,s=s(u,n),s=s==null?n:K({},n,s),t.memoizedState=s,t.lanes===0&&(t.updateQueue.baseState=s)}var is={isMounted:function(t){return(t=t._reactInternals)?Yn(t)===t:!1},enqueueSetState:function(t,n,s){t=t._reactInternals;var u=st(),f=kn(t),h=cn(u,f);h.payload=n,s!=null&&(h.callback=s),n=Mn(t,h,f),n!==null&&($t(n,t,f,u),Xi(n,t,f))},enqueueReplaceState:function(t,n,s){t=t._reactInternals;var u=st(),f=kn(t),h=cn(u,f);h.tag=1,h.payload=n,s!=null&&(h.callback=s),n=Mn(t,h,f),n!==null&&($t(n,t,f,u),Xi(n,t,f))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var s=st(),u=kn(t),f=cn(s,u);f.tag=2,n!=null&&(f.callback=n),n=Mn(t,f,u),n!==null&&($t(n,t,u,s),Xi(n,t,u))}};function Pp(t,n,s,u,f,h,C){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(u,h,C):n.prototype&&n.prototype.isPureReactComponent?!I
vendor: 2,771 bytes, lines 6-8
6o(s,u)||!Io(f,h):!0}function _p(t,n,s){var u=!1,f=Pn,h=n.contextType;return typeof h=="object"&&h!==null?h=Pt(h):(f=ut(n)?Zn:et.current,u=n.contextTypes,h=(u=u!=null)?Ar(t,f):Pn),n=new n(s,h),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=is,t.stateNode=n,n._reactInternals=t,u&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=f,t.__reactInternalMemoizedMaskedChildContext=h),n}function Tp(t,n,s,u){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(s,u),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(s,u),n.state!==t&&is.enqueueReplaceState(n,n.state,null)}function Za(t,n,s,u){var f=t.stateNode;f.props=s,f.state=t.memoizedState,f.refs={},ja(t);var h=n.contextType;typeof h=="object"&&h!==null?f.context=Pt(h):(h=ut(n)?Zn:et.current,f.context=Ar(t,h)),f.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Xa(t,n,h,s),f.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(n=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),n!==f.state&&is.enqueueReplaceState(f,f.state,null),Zi(t,s,f,u),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308)}function $r(t,n){try{var s="",u=n;do s+=xe(u),u=u.return;while(u);var f=s}catch(h){f=`
7Error generating stack: `+h.message+`
8`+h.stack}return{value:t,source:n,stack:f,digest:null}}function Ja(t,n,s){return{value:t,source:null,stack:s??null,digest:n??null}}function eu(t,n){try{console.error(n.value)}catch(s){setTimeout(function(){throw s})}}var IC=typeof WeakMap=="function"?WeakMap:Map;function Mp(t,n,s){s=cn(-1,s),s.tag=3,s.payload={element:null};var u=n.value;return s.callback=function(){fs||(fs=!0,gu=u),eu(t,n)},s}function Ip(t,n,s){s=cn(-1,s),s.tag=3;var u=t.type.getDerivedStateFromError;if(typeof u=="function"){var f=n.value;s.payload=function(){return u(f)},s.callback=function(){eu(t,n)}}var h=t.stateNode;return h!==null&&typeof h.componentDidCatch=="function"&&(s.callback=function(){eu(t,n),typeof u!="function"&&(On===null?On=new Set([this]):On.add(this));var C=n.stack;this.componentDidCatch(n.value,{componentStack:C!==null?C:""})}),s}function Op(t,n,s){var u=t.pingCache;if(u===null){u=t.pingCache=new IC;var f=new Set;u.set(n,f)}else f=u.get(n),f===void 0&&(f=new Set,u.set(n,f));f.has(s)||(f.add(s),t=BC.bind(null,t,n,s),n.then(t,t))}function Ap(t){do{var n;if((n=t.tag===13)&&(n=t.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return t;t=t.return}while(t!==null);return null}
vendor: 10,476 bytes, line 8
8function kp(t,n,s,u,f){return(t.mode&1)===0?(t===n?t.flags|=65536:(t.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(n=cn(-1,1),n.tag=2,Mn(s,n,1))),s.lanes|=1),t):(t.flags|=65536,t.lanes=f,t)}var OC=N.ReactCurrentOwner,ct=!1;function it(t,n,s,u){n.child=t===null?Zf(n,null,s,u):Fr(n,t.child,s,u)}function Dp(t,n,s,u,f){s=s.render;var h=n.ref;return Lr(n,f),u=Wa(t,n,s,u,h,f),s=Ga(),t!==null&&!ct?(n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~f,dn(t,n,f)):(De&&s&&Ma(n),n.flags|=1,it(t,n,u,f),n.child)}function Np(t,n,s,u,f){if(t===null){var h=s.type;return typeof h=="function"&&!xu(h)&&h.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(n.tag=15,n.type=h,Fp(t,n,h,u,f)):(t=ys(s.type,null,u,n,n.mode,f),t.ref=n.ref,t.return=n,n.child=t)}if(h=t.child,(t.lanes&f)===0){var C=h.memoizedProps;if(s=s.compare,s=s!==null?s:Io,s(C,u)&&t.ref===n.ref)return dn(t,n,f)}return n.flags|=1,t=Nn(h,u),t.ref=n.ref,t.return=n,n.child=t}function Fp(t,n,s,u,f){if(t!==null){var h=t.memoizedProps;if(Io(h,u)&&t.ref===n.ref)if(ct=!1,n.pendingProps=u=h,(t.lanes&f)!==0)(t.flags&131072)!==0&&(ct=!0);else return n.lanes=t.lanes,dn(t,n,f)}return tu(t,n,s,u,f)}function bp(t,n,s){var u=n.pendingProps,f=u.children,h=t!==null?t.memoizedState:null;if(u.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oe(Vr,yt),yt|=s;else{if((s&1073741824)===0)return t=h!==null?h.baseLanes|s:s,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:t,cachePool:null,transitions:null},n.updateQueue=null,Oe(Vr,yt),yt|=t,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=h!==null?h.baseLanes:s,Oe(Vr,yt),yt|=u}else h!==null?(u=h.baseLanes|s,n.memoizedState=null):u=s,Oe(Vr,yt),yt|=u;return it(t,n,f,s),n.child}function Lp(t,n){var s=n.ref;(t===null&&s!==null||t!==null&&t.ref!==s)&&(n.flags|=512,n.flags|=2097152)}function tu(t,n,s,u,f){var h=ut(s)?Zn:et.current;return h=Ar(n,h),Lr(n,f),s=Wa(t,n,s,u,h,f),u=Ga(),t!==null&&!ct?(n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~f,dn(t,n,f)):(De&&u&&Ma(n),n.flags|=1,it(t,n,s,f),n.child)}function jp(t,n,s,u,f){if(ut(s)){var h=!0;Bi(n)}else h=!1;if(Lr(n,f),n.stateNode===null)ls(t,n),_p(n,s,u),Za(n,s,u,f),u=!0;else if(t===null){var C=n.stateNode,T=n.memoizedProps;C.props=T;var I=C.context,b=s.contextType;typeof b=="object"&&b!==null?b=Pt(b):(b=ut(s)?Zn:et.current,b=Ar(n,b));var W=s.getDerivedStateFromProps,G=typeof W=="function"||typeof C.getSnapshotBeforeUpdate=="function";G||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(T!==u||I!==b)&&Tp(n,C,u,b),Tn=!1;var U=n.memoizedState;C.state=U,Zi(n,u,C,f),I=n.memoizedState,T!==u||U!==I||at.current||Tn?(typeof W=="function"&&(Xa(n,s,W,u),I=n.memoizedState),(T=Tn||Pp(n,s,T,u,U,I,b))?(G||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount=="function"&&(n.flags|=4194308)):(typeof C.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=u,n.memoizedState=I),C.props=u,C.state=I,C.context=b,u=T):(typeof C.componentDidMount=="function"&&(n.flags|=4194308),u=!1)}else{C=n.stateNode,ep(t,n),T=n.memoizedProps,b=n.type===n.elementType?T:bt(n.type,T),C.props=b,G=n.pendingProps,U=C.context,I=s.contextType,typeof I=="object"&&I!==null?I=Pt(I):(I=ut(s)?Zn:et.current,I=Ar(n,I));var ee=s.getDerivedStateFromProps;(W=typeof ee=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(T!==G||U!==I)&&Tp(n,C,u,I),Tn=!1,U=n.memoizedState,C.state=U,Zi(n,u,C,f);var oe=n.memoizedState;T!==G||U!==oe||at.current||Tn?(typeof ee=="function"&&(Xa(n,s,ee,u),oe=n.memoizedState),(b=Tn||Pp(n,s,b,u,U,oe,I)||!1)?(W||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(u,oe,I),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(u,oe,I)),typeof C.componentDidUpdate=="function"&&(n.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof C.componentDidUpdate!="function"||T===t.memoizedProps&&U===t.memoizedState||(n.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||T===t.memoizedProps&&U===t.memoizedState||(n.flags|=1024),n.memoizedProps=u,n.memoizedState=oe),C.props=u,C.state=oe,C.context=I,u=b):(typeof C.componentDidUpdate!="function"||T===t.memoizedProps&&U===t.memoizedState||(n.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||T===t.memoizedProps&&U===t.memoizedState||(n.flags|=1024),u=!1)}return nu(t,n,s,u,h,f)}function nu(t,n,s,u,f,h){Lp(t,n);var C=(n.flags&128)!==0;if(!u&&!C)return f&&Bf(n,s,!1),dn(t,n,h);u=n.stateNode,OC.current=n;var T=C&&typeof s.getDerivedStateFromError!="function"?null:u.render();return n.flags|=1,t!==null&&C?(n.child=Fr(n,t.child,null,h),n.child=Fr(n,null,T,h)):it(t,n,T,h),n.memoizedState=u.state,f&&Bf(n,s,!0),n.child}function $p(t){var n=t.stateNode;n.pendingContext?Vf(t,n.pendingContext,n.pendingContext!==n.context):n.context&&Vf(t,n.context,!1),$a(t,n.containerInfo)}function zp(t,n,s,u,f){return Nr(),ka(f),n.flags|=256,it(t,n,s,u),n.child}var ru={dehydrated:null,treeContext:null,retryLane:0};function ou(t){return{baseLanes:t,cachePool:null,transitions:null}}function Vp(t,n,s){var u=n.pendingProps,f=Fe.current,h=!1,C=(n.flags&128)!==0,T;if((T=C)||(T=t!==null&&t.memoizedState===null?!1:(f&2)!==0),T?(h=!0,n.flags&=-129):(t===null||t.memoizedState!==null)&&(f|=1),Oe(Fe,f&1),t===null)return Aa(n),t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((n.mode&1)===0?n.lanes=1:t.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(C=u.children,t=u.fallback,h?(u=n.mode,h=n.child,C={mode:"hidden",children:C},(u&1)===0&&h!==null?(h.childLanes=0,h.pendingProps=C):h=ws(C,u,0,null),t=ar(t,u,s,null),h.return=n,t.return=n,h.sibling=t,n.child=h,n.child.memoizedState=ou(s),n.memoizedState=ru,t):iu(n,C));if(f=t.memoizedState,f!==null&&(T=f.dehydrated,T!==null))return AC(t,n,C,u,T,f,s);if(h){h=u.fallback,C=n.mode,f=t.child,T=f.sibling;var I={mode:"hidden",children:u.children};return(C&1)===0&&n.child!==f?(u=n.child,u.childLanes=0,u.pendingProps=I,n.deletions=null):(u=Nn(f,I),u.subtreeFlags=f.subtreeFlags&14680064),T!==null?h=Nn(T,h):(h=ar(h,C,s,null),h.flags|=2),h.return=n,u.return=n,u.sibling=h,n.child=u,u=h,h=n.child,C=t.child.memoizedState,C=C===null?ou(s):{baseLanes:C.baseLanes|s,cachePool:null,transitions:C.transitions},h.memoizedState=C,h.childLanes=t.childLanes&~s,n.memoizedState=ru,u}return h=t.child,t=h.sibling,u=Nn(h,{mode:"visible",children:u.children}),(n.mode&1)===0&&(u.lanes=s),u.return=n,u.sibling=null,t!==null&&(s=n.deletions,s===null?(n.deletions=[t],n.flags|=16):s.push(t)),n.child=u,n.memoizedState=null,u}function iu(t,n){return n=ws({mode:"visible",children:n},t.mode,0,null),n.return=t,t.child=n}function ss(t,n,s,u){return u!==null&&ka(u),Fr(n,t.child,null,s),t=iu(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function AC(t,n,s,u,f,h,C){if(s)return n.flags&256?(n.flags&=-257,u=Ja(Error(r(422))),ss(t,n,C,u)):n.memoizedState!==null?(n.child=t.child,n.flags|=128,null):(h=u.fallback,f=n.mode,u=ws({mode:"visible",children:u.children},f,0,null),h=ar(h,f,C,null),h.flags|=2,u.return=n,h.return=n,u.sibling=h,n.child=u,(n.mode&1)!==0&&Fr(n,t.child,null,C),n.child.memoizedState=ou(C),n.memoizedState=ru,h);if((n.mode&1)===0)return ss(t,n,C,null);if(f.data==="$!"){if(u=f.nextSibling&&f.nextSibling.dataset,u)var T=u.dgst;return u=T,h=Error(r(419)),u=Ja(h,u,void 0),ss(t,n,C,u)}if(T=(C&t.childLanes)!==0,ct||T){if(u=qe,u!==null){switch(C&-C){case 4:f=2;break;case 16:f=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:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(u.suspendedLanes|C))!==0?0:f,f!==0&&f!==h.retryLane&&(h.retryLane=f,un(t,f),$t(u,t,f,-1))}return Cu(),u=Ja(Error(r(421))),ss(t,n,C,u)}return f.data==="$?"?(n.flags|=128,n.child=t.child,n=UC.bind(null,t),f._reactRetry=n,null):(t=h.treeContext,vt=Rn(f.nextSibling),mt=n,De=!0,Ft=null,t!==null&&(Rt[Et++]=ln,Rt[Et++]=an,Rt[Et++]=Jn,ln=t.id,an=t.overflow,Jn=n),n=iu(n,u.children),n.flags|=4096,n)}function Hp(t,n,s){t.lanes|=n;var u=t.alternate;u!==null&&(u.lanes|=n),ba(t.return,n,s)}function su(t,n,s,u,f){var h=t.memoizedState;h===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:u,tail:s,tailMode:f}:(h.isBackwards=n,h.rendering=null,h.renderingStartTime=0,h.last=u,h.tail=s,h.tailMode=f)}function Bp(t,n,s){var u=n.pendingProps,f=u.revealOrder,h=u.tail;if(it(t,n,u.children,s),u=Fe.current,(u&2)!==0)u=u&1|2,n.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Hp(t,s,n);else if(t.tag===19)Hp(t,s,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}u&=1}if(Oe(Fe,u),(n.mode&1)===0)n.memoizedState=null;else switch(f){case"forwards":for(s=n.child,f=null;s!==null;)t=s.alternate,t!==null&&Ji(t)===null&&(f=s),s=s.sibling;s=f,s===null?(f=n.child,n.child=null):(f=s.sibling,s.sibling=null),su(n,!1,f,s,h);break;case"backwards":for(s=null,f=n.child,n.child=null;f!==null;){if(t=f.alternate,t!==null&&Ji(t)===null){n.child=f;break}t=f.sibling,f.sibling=s,s=f,f=t}su(n,!0,s,null,h);break;case"together":su(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function ls(t,n){(n.mode&1)===0&&t!==null&&(t.alternate=null,n.alternate=null,n.flags|=2)}function dn(t,n,s){if(t!==null&&(n.dependencies=t.dependencies),or|=n.lanes,(s&n.childLanes)===0)return null;if(t!==null&&n.child!==t.child)throw Error(r(153));if(n.child!==null){for(t=n.child,s=Nn(t,t.pendingProps),n.child=s,s.return=n;t.sibling!==null;)t=t.sibling,s=s.sibling=Nn(t,t.pendingProps),s.return=n;s.sibling=null}return n.child}function kC(t,n,s){switch(n.tag){case 3:$p(n),Nr();break;case 5:rp(n);break;case 1:ut(n.type)&&Bi(n);break;case 4:$a(n,n.stateNode.containerInfo);break;
vendor: 4,687 bytes, line 8
8case 10:var u=n.type._context,f=n.memoizedProps.value;Oe(qi,u._currentValue),u._currentValue=f;break;case 13:if(u=n.memoizedState,u!==null)return u.dehydrated!==null?(Oe(Fe,Fe.current&1),n.flags|=128,null):(s&n.child.childLanes)!==0?Vp(t,n,s):(Oe(Fe,Fe.current&1),t=dn(t,n,s),t!==null?t.sibling:null);Oe(Fe,Fe.current&1);break;case 19:if(u=(s&n.childLanes)!==0,(t.flags&128)!==0){if(u)return Bp(t,n,s);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Oe(Fe,Fe.current),u)break;return null;case 22:case 23:return n.lanes=0,bp(t,n,s)}return dn(t,n,s)}var Up,lu,Wp,Gp;Up=function(t,n){for(var s=n.child;s!==null;){if(s.tag===5||s.tag===6)t.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===n)break;for(;s.sibling===null;){if(s.return===null||s.return===n)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},lu=function(){},Wp=function(t,n,s,u){var f=t.memoizedProps;if(f!==u){t=n.stateNode,nr(Qt.current);var h=null;switch(s){case"input":f=kt(t,f),u=kt(t,u),h=[];break;case"select":f=K({},f,{value:void 0}),u=K({},u,{value:void 0}),h=[];break;case"textarea":f=$l(t,f),u=$l(t,u),h=[];break;default:typeof f.onClick!="function"&&typeof u.onClick=="function"&&(t.onclick=zi)}Vl(s,u);var C;s=null;for(b in f)if(!u.hasOwnProperty(b)&&f.hasOwnProperty(b)&&f[b]!=null)if(b==="style"){var T=f[b];for(C in T)T.hasOwnProperty(C)&&(s||(s={}),s[C]="")}else b!=="dangerouslySetInnerHTML"&&b!=="children"&&b!=="suppressContentEditableWarning"&&b!=="suppressHydrationWarning"&&b!=="autoFocus"&&(l.hasOwnProperty(b)?h||(h=[]):(h=h||[]).push(b,null));for(b in u){var I=u[b];if(T=f?.[b],u.hasOwnProperty(b)&&I!==T&&(I!=null||T!=null))if(b==="style")if(T){for(C in T)!T.hasOwnProperty(C)||I&&I.hasOwnProperty(C)||(s||(s={}),s[C]="");for(C in I)I.hasOwnProperty(C)&&T[C]!==I[C]&&(s||(s={}),s[C]=I[C])}else s||(h||(h=[]),h.push(b,s)),s=I;else b==="dangerouslySetInnerHTML"?(I=I?I.__html:void 0,T=T?T.__html:void 0,I!=null&&T!==I&&(h=h||[]).push(b,I)):b==="children"?typeof I!="string"&&typeof I!="number"||(h=h||[]).push(b,""+I):b!=="suppressContentEditableWarning"&&b!=="suppressHydrationWarning"&&(l.hasOwnProperty(b)?(I!=null&&b==="onScroll"&&Ae("scroll",t),h||T===I||(h=[])):(h=h||[]).push(b,I))}s&&(h=h||[]).push("style",s);var b=h;(n.updateQueue=b)&&(n.flags|=4)}},Gp=function(t,n,s,u){s!==u&&(n.flags|=4)};function Uo(t,n){if(!De)switch(t.tailMode){case"hidden":n=t.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t.tail=null:s.sibling=null;break;case"collapsed":s=t.tail;for(var u=null;s!==null;)s.alternate!==null&&(u=s),s=s.sibling;u===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:u.sibling=null}}function nt(t){var n=t.alternate!==null&&t.alternate.child===t.child,s=0,u=0;if(n)for(var f=t.child;f!==null;)s|=f.lanes|f.childLanes,u|=f.subtreeFlags&14680064,u|=f.flags&14680064,f.return=t,f=f.sibling;else for(f=t.child;f!==null;)s|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=t,f=f.sibling;return t.subtreeFlags|=u,t.childLanes=s,n}function DC(t,n,s){var u=n.pendingProps;switch(Ia(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return nt(n),null;case 1:return ut(n.type)&&Hi(),nt(n),null;case 3:return u=n.stateNode,jr(),ke(at),ke(et),Ha(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(t===null||t.child===null)&&(Ki(n)?n.flags|=4:t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Ft!==null&&(yu(Ft),Ft=null))),lu(t,n),nt(n),null;case 5:za(n);var f=nr($o.current);if(s=n.type,t!==null&&n.stateNode!=null)Wp(t,n,s,u,f),t.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!u){if(n.stateNode===null)throw Error(r(166));return nt(n),null}if(t=nr(Qt.current),Ki(n)){u=n.stateNode,s=n.type;var h=n.memoizedProps;switch(u[Kt]=n,u[No]=h,t=(n.mode&1)!==0,s){case"dialog":Ae("cancel",u),Ae("close",u);break;case"iframe":case"object":case"embed":Ae("load",u);break;case"video":case"audio":for(f=0;f<Ao.length;f++)Ae(Ao[f],u);break;case"source":Ae("error",u);break;case"img":case"image":case"link":Ae("error",u),Ae("load",u);break;case"details":Ae("toggle",u);break;case"input":vr(u,h),Ae("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!h.multiple},Ae("invalid",u);break;case"textarea":Md(u,h),Ae("invalid",u)}Vl(s,h),f=null;for(var C in h)if(h.hasOwnProperty(C)){var T=h[C];C==="children"?typeof T=="string"?u.textContent!==T&&(h.suppressHydrationWarning!==!0&&$i(u.textContent,T,t),f=["children",T]):typeof T=="number"&&u.textContent!==""+T&&(h.suppressHydrationWarning!==!0&&$i(u.textContent,T,t),f=["children",""+T]):l.hasOwnProperty(C)&&T!=null&&
vendor: 6,985 bytes, line 8
8C==="onScroll"&&Ae("scroll",u)}switch(s){case"input":Me(u),Td(u,h,!0);break;case"textarea":Me(u),Od(u);break;case"select":case"option":break;default:typeof h.onClick=="function"&&(u.onclick=zi)}u=f,n.updateQueue=u,u!==null&&(n.flags|=4)}else{C=f.nodeType===9?f:f.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Ad(s)),t==="http://www.w3.org/1999/xhtml"?s==="script"?(t=C.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof u.is=="string"?t=C.createElement(s,{is:u.is}):(t=C.createElement(s),s==="select"&&(C=t,u.multiple?C.multiple=!0:u.size&&(C.size=u.size))):t=C.createElementNS(t,s),t[Kt]=n,t[No]=u,Up(t,n,!1,!1),n.stateNode=t;e:{switch(C=Hl(s,u),s){case"dialog":Ae("cancel",t),Ae("close",t),f=u;break;case"iframe":case"object":case"embed":Ae("load",t),f=u;break;case"video":case"audio":for(f=0;f<Ao.length;f++)Ae(Ao[f],t);f=u;break;case"source":Ae("error",t),f=u;break;case"img":case"image":case"link":Ae("error",t),Ae("load",t),f=u;break;case"details":Ae("toggle",t),f=u;break;case"input":vr(t,u),f=kt(t,u),Ae("invalid",t);break;case"option":f=u;break;case"select":t._wrapperState={wasMultiple:!!u.multiple},f=K({},u,{value:void 0}),Ae("invalid",t);break;case"textarea":Md(t,u),f=$l(t,u),Ae("invalid",t);break;default:f=u}Vl(s,f),T=f;for(h in T)if(T.hasOwnProperty(h)){var I=T[h];h==="style"?Nd(t,I):h==="dangerouslySetInnerHTML"?(I=I?I.__html:void 0,I!=null&&kd(t,I)):h==="children"?typeof I=="string"?(s!=="textarea"||I!=="")&&fo(t,I):typeof I=="number"&&fo(t,""+I):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(l.hasOwnProperty(h)?I!=null&&h==="onScroll"&&Ae("scroll",t):I!=null&&O(t,h,I,C))}switch(s){case"input":Me(t),Td(t,u,!1);break;case"textarea":Me(t),Od(t);break;case"option":u.value!=null&&t.setAttribute("value",""+ue(u.value));break;case"select":t.multiple=!!u.multiple,h=u.value,h!=null?wr(t,!!u.multiple,h,!1):u.defaultValue!=null&&wr(t,!!u.multiple,u.defaultValue,!0);break;default:typeof f.onClick=="function"&&(t.onclick=zi)}switch(s){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return nt(n),null;case 6:if(t&&n.stateNode!=null)Gp(t,n,t.memoizedProps,u);else{if(typeof u!="string"&&n.stateNode===null)throw Error(r(166));if(s=nr($o.current),nr(Qt.current),Ki(n)){if(u=n.stateNode,s=n.memoizedProps,u[Kt]=n,(h=u.nodeValue!==s)&&(t=mt,t!==null))switch(t.tag){case 3:$i(u.nodeValue,s,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&$i(u.nodeValue,s,(t.mode&1)!==0)}h&&(n.flags|=4)}else u=(s.nodeType===9?s:s.ownerDocument).createTextNode(u),u[Kt]=n,n.stateNode=u}return nt(n),null;case 13:if(ke(Fe),u=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(De&&vt!==null&&(n.mode&1)!==0&&(n.flags&128)===0)qf(),Nr(),n.flags|=98560,h=!1;else if(h=Ki(n),u!==null&&u.dehydrated!==null){if(t===null){if(!h)throw Error(r(318));if(h=n.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(r(317));h[Kt]=n}else Nr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;nt(n),h=!1}else Ft!==null&&(yu(Ft),Ft=null),h=!0;if(!h)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=s,n):(u=u!==null,u!==(t!==null&&t.memoizedState!==null)&&u&&(n.child.flags|=8192,(n.mode&1)!==0&&(t===null||(Fe.current&1)!==0?Ke===0&&(Ke=3):Cu())),n.updateQueue!==null&&(n.flags|=4),nt(n),null);case 4:return jr(),lu(t,n),t===null&&ko(n.stateNode.containerInfo),nt(n),null;case 10:return Fa(n.type._context),nt(n),null;case 17:return ut(n.type)&&Hi(),nt(n),null;case 19:if(ke(Fe),h=n.memoizedState,h===null)return nt(n),null;if(u=(n.flags&128)!==0,C=h.rendering,C===null)if(u)Uo(h,!1);else{if(Ke!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(C=Ji(t),C!==null){for(n.flags|=128,Uo(h,!1),u=C.updateQueue,u!==null&&(n.updateQueue=u,n.flags|=4),n.subtreeFlags=0,u=s,s=n.child;s!==null;)h=s,t=u,h.flags&=14680066,C=h.alternate,C===null?(h.childLanes=0,h.lanes=t,h.child=null,h.subtreeFlags=0,h.memoizedProps=null,h.memoizedState=null,h.updateQueue=null,h.dependencies=null,h.stateNode=null):(h.childLanes=C.childLanes,h.lanes=C.lanes,h.child=C.child,h.subtreeFlags=0,h.deletions=null,h.memoizedProps=C.memoizedProps,h.memoizedState=C.memoizedState,h.updateQueue=C.updateQueue,h.type=C.type,t=C.dependencies,h.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),s=s.sibling;return Oe(Fe,Fe.current&1|2),n.child}t=t.sibling}h.tail!==null&&ze()>Hr&&(n.flags|=128,u=!0,Uo(h,!1),n.lanes=4194304)}else{if(!u)if(t=Ji(C),t!==null){if(n.flags|=128,u=!0,s=t.updateQueue,s!==null&&(n.updateQueue=s,n.flags|=4),Uo(h,!0),h.tail===null&&h.tailMode==="hidden"&&!C.alternate&&!De)return nt(n),null}else 2*ze()-h.renderingStartTime>Hr&&s!==1073741824&&(n.flags|=128,u=!0,Uo(h,!1),n.lanes=4194304);h.isBackwards?(C.sibling=n.child,n.child=C):(s=h.last,s!==null?s.sibling=C:n.child=C,h.last=C)}return h.tail!==null?(n=h.tail,h.rendering=n,h.tail=n.sibling,h.renderingStartTime=ze(),n.sibling=null,s=Fe.current,Oe(Fe,u?s&1|2:s&1),n):(nt(n),null);case 22:case 23:return Su(),u=n.memoizedState!==null,t!==null&&t.memoizedState!==null!==u&&(n.flags|=8192),u&&(n.mode&1)!==0?(yt&1073741824)!==0&&(nt(n),n.subtreeFlags&6&&(n.flags|=8192)):nt(n),null;case 24:return null;case 25:return null}throw Error(r(156,n.tag))}function NC(t,n){switch(Ia(n),n.tag){case 1:return ut(n.type)&&Hi(),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return jr(),ke(at),ke(et),Ha(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 5:return za(n),null;case 13:if(ke(Fe),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(r(340));Nr()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return ke(Fe),null;case 4:return jr(),null;case 10:return Fa(n.type._context),null;case 22:case 23:return Su(),null;case 24:return null;default:return null}}var as=!1,rt=!1,FC=typeof WeakSet=="function"?WeakSet:Set,re=null;function zr(t,n){var s=t.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(u){Le(t,n,u)}else s.current=null}function au(t,n,s){try{s()}catch(u){Le(t,n,u)}}var Kp=!1;function bC(t,n){if(Sa=Mi,t=Pf(),fa(t)){if("selectionStart"in t)var s={start:t.selectionStart,end:t.selectionEnd};else e:{s=(s=t.ownerDocument)&&s.defaultView||window;var u=s.getSelection&&s.getSelection();if(u&&u.rangeCount!==0){s=u.anchorNode;var f=u.anchorOffset,h=u.focusNode;u=u.focusOffset;try{s.nodeType,h.nodeType}catch{s=null;break e}var C=0,T=-1,I=-1,b=0,W=0,G=t,U=null;t:for(;;){for(var ee;G!==s||f!==0&&G.nodeType!==3||(T=C+f),G!==h||u!==0&&G.nodeType!==3||(I=C+u),G.nodeType===3&&(C+=G.nodeValue.length),(ee=G.firstChild)!==null;)U=G,G=ee;for(;;){if(G===t)break t;if(U===s&&++b===f&&(T=C),U===h&&++W===u&&(I=C),(ee=G.nextSibling)!==null)break;G=U,U=G.parentNode}G=ee}s=T===-1||I===-1?null:{start:T,end:I}}else s=null}s=s||{start:0,end:0}}else s=null;
vendor: 5,158 bytes, line 8
8for(Ca={focusedElem:t,selectionRange:s},Mi=!1,re=n;re!==null;)if(n=re,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,re=t;else for(;re!==null;){n=re;try{var oe=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(oe!==null){var ie=oe.memoizedProps,Ve=oe.memoizedState,D=n.stateNode,A=D.getSnapshotBeforeUpdate(n.elementType===n.type?ie:bt(n.type,ie),Ve);D.__reactInternalSnapshotBeforeUpdate=A}break;case 3:var F=n.stateNode.containerInfo;F.nodeType===1?F.textContent="":F.nodeType===9&&F.documentElement&&F.removeChild(F.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Q){Le(n,n.return,Q)}if(t=n.sibling,t!==null){t.return=n.return,re=t;break}re=n.return}return oe=Kp,Kp=!1,oe}function Wo(t,n,s){var u=n.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var f=u=u.next;do{if((f.tag&t)===t){var h=f.destroy;f.destroy=void 0,h!==void 0&&au(n,s,h)}f=f.next}while(f!==u)}}function us(t,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&t)===t){var u=s.create;s.destroy=u()}s=s.next}while(s!==n)}}function uu(t){var n=t.ref;if(n!==null){var s=t.stateNode;t.tag,t=s,typeof n=="function"?n(t):n.current=t}}function Qp(t){var n=t.alternate;n!==null&&(t.alternate=null,Qp(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&(delete n[Kt],delete n[No],delete n[Pa],delete n[yC],delete n[wC])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function qp(t){return t.tag===5||t.tag===3||t.tag===4}function Yp(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||qp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function cu(t,n,s){var u=t.tag;if(u===5||u===6)t=t.stateNode,n?s.nodeType===8?s.parentNode.insertBefore(t,n):s.insertBefore(t,n):(s.nodeType===8?(n=s.parentNode,n.insertBefore(t,s)):(n=s,n.appendChild(t)),s=s._reactRootContainer,s!=null||n.onclick!==null||(n.onclick=zi));else if(u!==4&&(t=t.child,t!==null))for(cu(t,n,s),t=t.sibling;t!==null;)cu(t,n,s),t=t.sibling}function du(t,n,s){var u=t.tag;if(u===5||u===6)t=t.stateNode,n?s.insertBefore(t,n):s.appendChild(t);else if(u!==4&&(t=t.child,t!==null))for(du(t,n,s),t=t.sibling;t!==null;)du(t,n,s),t=t.sibling}var Ze=null,Lt=!1;function In(t,n,s){for(s=s.child;s!==null;)Xp(t,n,s),s=s.sibling}function Xp(t,n,s){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(xi,s)}catch{}switch(s.tag){case 5:rt||zr(s,n);case 6:var u=Ze,f=Lt;Ze=null,In(t,n,s),Ze=u,Lt=f,Ze!==null&&(Lt?(t=Ze,s=s.stateNode,t.nodeType===8?t.parentNode.removeChild(s):t.removeChild(s)):Ze.removeChild(s.stateNode));break;case 18:Ze!==null&&(Lt?(t=Ze,s=s.stateNode,t.nodeType===8?Ea(t.parentNode,s):t.nodeType===1&&Ea(t,s),Ro(t)):Ea(Ze,s.stateNode));break;case 4:u=Ze,f=Lt,Ze=s.stateNode.containerInfo,Lt=!0,In(t,n,s),Ze=u,Lt=f;break;case 0:case 11:case 14:case 15:if(!rt&&(u=s.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){f=u=u.next;do{var h=f,C=h.destroy;h=h.tag,C!==void 0&&((h&2)!==0||(h&4)!==0)&&au(s,n,C),f=f.next}while(f!==u)}In(t,n,s);break;case 1:if(!rt&&(zr(s,n),u=s.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=s.memoizedProps,u.state=s.memoizedState,u.componentWillUnmount()}catch(T){Le(s,n,T)}In(t,n,s);break;case 21:In(t,n,s);break;case 22:s.mode&1?(rt=(u=rt)||s.memoizedState!==null,In(t,n,s),rt=u):In(t,n,s);break;default:In(t,n,s)}}function Zp(t){var n=t.updateQueue;if(n!==null){t.updateQueue=null;var s=t.stateNode;s===null&&(s=t.stateNode=new FC),n.forEach(function(u){var f=WC.bind(null,t,u);s.has(u)||(s.add(u),u.then(f,f))})}}function jt(t,n){var s=n.deletions;if(s!==null)for(var u=0;u<s.length;u++){var f=s[u];try{var h=t,C=n,T=C;e:for(;T!==null;){switch(T.tag){case 5:Ze=T.stateNode,Lt=!1;break e;case 3:Ze=T.stateNode.containerInfo,Lt=!0;break e;case 4:Ze=T.stateNode.containerInfo,Lt=!0;break e}T=T.return}if(Ze===null)throw Error(r(160));Xp(h,C,f),Ze=null,Lt=!1;var I=f.alternate;I!==null&&(I.return=null),f.return=null}catch(b){Le(f,n,b)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)Jp(n,t),n=n.sibling}function Jp(t,n){var s=t.alternate,u=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(jt(n,t),Yt(t),u&4){try{Wo(3,t,t.return),us(3,t)}catch(ie){Le(t,t.return,ie)}try{Wo(5,t,t.return)}catch(ie){Le(t,t.return,ie)}}break;case 1:jt(n,t),Yt(t),u&512&&s!==null&&zr(s,s.return);break;case 5:if(jt(n,t),Yt(t),u&512&&s!==null&&zr(s,s.return),t.flags&32){var f=t.stateNode;try{fo(f,"")}catch(ie){Le(t,t.return,ie)}}if(u&4&&(f=t.stateNode,f!=null)){var h=t.memoizedProps,C=s!==null?s.memoizedProps:h,T=t.type,I=t.updateQueue;if(t.updateQueue=null,I!==null)try{T==="input"&&h.type==="radio"&&h.name!=null&&yr(f,h),Hl(T,C);var b=Hl(T,h);for(C=0;C<I.length;C+=2){var W=I[C],G=I[C+1];W==="style"?Nd(f,G):W==="dangerouslySetInnerHTML"?kd(f,G):W==="children"?fo(f,G):O(f,W,G,b)}switch(T){case"input":qn(f,h);break;
vendor: 11,301 bytes, line 8
8case"textarea":Id(f,h);break;case"select":var U=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!h.multiple;var ee=h.value;ee!=null?wr(f,!!h.multiple,ee,!1):U!==!!h.multiple&&(h.defaultValue!=null?wr(f,!!h.multiple,h.defaultValue,!0):wr(f,!!h.multiple,h.multiple?[]:"",!1))}f[No]=h}catch(ie){Le(t,t.return,ie)}}break;case 6:if(jt(n,t),Yt(t),u&4){if(t.stateNode===null)throw Error(r(162));f=t.stateNode,h=t.memoizedProps;try{f.nodeValue=h}catch(ie){Le(t,t.return,ie)}}break;case 3:if(jt(n,t),Yt(t),u&4&&s!==null&&s.memoizedState.isDehydrated)try{Ro(n.containerInfo)}catch(ie){Le(t,t.return,ie)}break;case 4:jt(n,t),Yt(t);break;case 13:jt(n,t),Yt(t),f=t.child,f.flags&8192&&(h=f.memoizedState!==null,f.stateNode.isHidden=h,!h||f.alternate!==null&&f.alternate.memoizedState!==null||(hu=ze())),u&4&&Zp(t);break;case 22:if(W=s!==null&&s.memoizedState!==null,t.mode&1?(rt=(b=rt)||W,jt(n,t),rt=b):jt(n,t),Yt(t),u&8192){if(b=t.memoizedState!==null,(t.stateNode.isHidden=b)&&!W&&(t.mode&1)!==0)for(re=t,W=t.child;W!==null;){for(G=re=W;re!==null;){switch(U=re,ee=U.child,U.tag){case 0:case 11:case 14:case 15:Wo(4,U,U.return);break;case 1:zr(U,U.return);var oe=U.stateNode;if(typeof oe.componentWillUnmount=="function"){u=U,s=U.return;try{n=u,oe.props=n.memoizedProps,oe.state=n.memoizedState,oe.componentWillUnmount()}catch(ie){Le(u,s,ie)}}break;case 5:zr(U,U.return);break;case 22:if(U.memoizedState!==null){nh(G);continue}}ee!==null?(ee.return=U,re=ee):nh(G)}W=W.sibling}e:for(W=null,G=t;;){if(G.tag===5){if(W===null){W=G;try{f=G.stateNode,b?(h=f.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none"):(T=G.stateNode,I=G.memoizedProps.style,C=I!=null&&I.hasOwnProperty("display")?I.display:null,T.style.display=Dd("display",C))}catch(ie){Le(t,t.return,ie)}}}else if(G.tag===6){if(W===null)try{G.stateNode.nodeValue=b?"":G.memoizedProps}catch(ie){Le(t,t.return,ie)}}else if((G.tag!==22&&G.tag!==23||G.memoizedState===null||G===t)&&G.child!==null){G.child.return=G,G=G.child;continue}if(G===t)break e;for(;G.sibling===null;){if(G.return===null||G.return===t)break e;W===G&&(W=null),G=G.return}W===G&&(W=null),G.sibling.return=G.return,G=G.sibling}}break;case 19:jt(n,t),Yt(t),u&4&&Zp(t);break;case 21:break;default:jt(n,t),Yt(t)}}function Yt(t){var n=t.flags;if(n&2){try{e:{for(var s=t.return;s!==null;){if(qp(s)){var u=s;break e}s=s.return}throw Error(r(160))}switch(u.tag){case 5:var f=u.stateNode;u.flags&32&&(fo(f,""),u.flags&=-33);var h=Yp(t);du(t,h,f);break;case 3:case 4:var C=u.stateNode.containerInfo,T=Yp(t);cu(t,T,C);break;default:throw Error(r(161))}}catch(I){Le(t,t.return,I)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function LC(t,n,s){re=t,eh(t)}function eh(t,n,s){for(var u=(t.mode&1)!==0;re!==null;){var f=re,h=f.child;if(f.tag===22&&u){var C=f.memoizedState!==null||as;if(!C){var T=f.alternate,I=T!==null&&T.memoizedState!==null||rt;T=as;var b=rt;if(as=C,(rt=I)&&!b)for(re=f;re!==null;)C=re,I=C.child,C.tag===22&&C.memoizedState!==null?rh(f):I!==null?(I.return=C,re=I):rh(f);for(;h!==null;)re=h,eh(h),h=h.sibling;re=f,as=T,rt=b}th(t)}else(f.subtreeFlags&8772)!==0&&h!==null?(h.return=f,re=h):th(t)}}function th(t){for(;re!==null;){var n=re;if((n.flags&8772)!==0){var s=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:rt||us(5,n);break;case 1:var u=n.stateNode;if(n.flags&4&&!rt)if(s===null)u.componentDidMount();else{var f=n.elementType===n.type?s.memoizedProps:bt(n.type,s.memoizedProps);u.componentDidUpdate(f,s.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var h=n.updateQueue;h!==null&&np(n,h,u);break;case 3:var C=n.updateQueue;if(C!==null){if(s=null,n.child!==null)switch(n.child.tag){case 5:s=n.child.stateNode;break;case 1:s=n.child.stateNode}np(n,C,s)}break;case 5:var T=n.stateNode;if(s===null&&n.flags&4){s=T;var I=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":I.autoFocus&&s.focus();break;case"img":I.src&&(s.src=I.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var b=n.alternate;if(b!==null){var W=b.memoizedState;if(W!==null){var G=W.dehydrated;G!==null&&Ro(G)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}rt||n.flags&512&&uu(n)}catch(U){Le(n,n.return,U)}}if(n===t){re=null;break}if(s=n.sibling,s!==null){s.return=n.return,re=s;break}re=n.return}}function nh(t){for(;re!==null;){var n=re;if(n===t){re=null;break}var s=n.sibling;if(s!==null){s.return=n.return,re=s;break}re=n.return}}function rh(t){for(;re!==null;){var n=re;try{switch(n.tag){case 0:case 11:case 15:var s=n.return;try{us(4,n)}catch(I){Le(n,s,I)}break;case 1:var u=n.stateNode;if(typeof u.componentDidMount=="function"){var f=n.return;try{u.componentDidMount()}catch(I){Le(n,f,I)}}var h=n.return;try{uu(n)}catch(I){Le(n,h,I)}break;case 5:var C=n.return;try{uu(n)}catch(I){Le(n,C,I)}}}catch(I){Le(n,n.return,I)}if(n===t){re=null;break}var T=n.sibling;if(T!==null){T.return=n.return,re=T;break}re=n.return}}var jC=Math.ceil,cs=N.ReactCurrentDispatcher,fu=N.ReactCurrentOwner,Tt=N.ReactCurrentBatchConfig,_e=0,qe=null,Ue=null,Je=0,yt=0,Vr=En(0),Ke=0,Go=null,or=0,ds=0,pu=0,Ko=null,dt=null,hu=0,Hr=1/0,fn=null,fs=!1,gu=null,On=null,ps=!1,An=null,hs=0,Qo=0,mu=null,gs=-1,ms=0;function st(){return(_e&6)!==0?ze():gs!==-1?gs:gs=ze()}function kn(t){return(t.mode&1)===0?1:(_e&2)!==0&&Je!==0?Je&-Je:CC.transition!==null?(ms===0&&(ms=qd()),ms):(t=Ie,t!==0||(t=window.event,t=t===void 0?16:of(t.type)),t)}function $t(t,n,s,u){if(50<Qo)throw Qo=0,mu=null,Error(r(185));yo(t,s,u),((_e&2)===0||t!==qe)&&(t===qe&&((_e&2)===0&&(ds|=s),Ke===4&&Dn(t,Je)),ft(t,u),s===1&&_e===0&&(n.mode&1)===0&&(Hr=ze()+500,Ui&&_n()))}function ft(t,n){var s=t.callbackNode;CS(t,n);var u=Pi(t,t===qe?Je:0);if(u===0)s!==null&&Gd(s),t.callbackNode=null,t.callbackPriority=0;else if(n=u&-u,t.callbackPriority!==n){if(s!=null&&Gd(s),n===1)t.tag===0?SC(ih.bind(null,t)):Uf(ih.bind(null,t)),mC(function(){(_e&6)===0&&_n()}),s=null;else{switch(Yd(u)){case 1:s=ql;break;case 4:s=Kd;break;case 16:s=Ci;break;case 536870912:s=Qd;break;default:s=Ci}s=ph(s,oh.bind(null,t))}t.callbackPriority=n,t.callbackNode=s}}function oh(t,n){if(gs=-1,ms=0,(_e&6)!==0)throw Error(r(327));var s=t.callbackNode;if(Br()&&t.callbackNode!==s)return null;var u=Pi(t,t===qe?Je:0);if(u===0)return null;if((u&30)!==0||(u&t.expiredLanes)!==0||n)n=vs(t,u);else{n=u;var f=_e;_e|=2;var h=lh();(qe!==t||Je!==n)&&(fn=null,Hr=ze()+500,sr(t,n));do try{VC();break}catch(T){sh(t,T)}while(!0);Na(),cs.current=h,_e=f,Ue!==null?n=0:(qe=null,Je=0,n=Ke)}if(n!==0){if(n===2&&(f=Yl(t),f!==0&&(u=f,n=vu(t,f))),n===1)throw s=Go,sr(t,0),Dn(t,u),ft(t,ze()),s;if(n===6)Dn(t,u);else{if(f=t.current.alternate,(u&30)===0&&!$C(f)&&(n=vs(t,u),n===2&&(h=Yl(t),h!==0&&(u=h,n=vu(t,h))),n===1))throw s=Go,sr(t,0),Dn(t,u),ft(t,ze()),s;switch(t.finishedWork=f,t.finishedLanes=u,n){case 0:case 1:throw Error(r(345));case 2:lr(t,dt,fn);break;case 3:if(Dn(t,u),(u&130023424)===u&&(n=hu+500-ze(),10<n)){if(Pi(t,0)!==0)break;if(f=t.suspendedLanes,(f&u)!==u){st(),t.pingedLanes|=t.suspendedLanes&f;break}t.timeoutHandle=Ra(lr.bind(null,t,dt,fn),n);break}lr(t,dt,fn);break;case 4:if(Dn(t,u),(u&4194240)===u)break;for(n=t.eventTimes,f=-1;0<u;){var C=31-Dt(u);h=1<<C,C=n[C],C>f&&(f=C),u&=~h}if(u=f,u=ze()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*jC(u/1960))-u,10<u){t.timeoutHandle=Ra(lr.bind(null,t,dt,fn),u);break}lr(t,dt,fn);break;case 5:lr(t,dt,fn);break;default:throw Error(r(329))}}}return ft(t,ze()),t.callbackNode===s?oh.bind(null,t):null}function vu(t,n){var s=Ko;return t.current.memoizedState.isDehydrated&&(sr(t,n).flags|=256),t=vs(t,n),t!==2&&(n=dt,dt=s,n!==null&&yu(n)),t}function yu(t){dt===null?dt=t:dt.push.apply(dt,t)}function $C(t){for(var n=t;;){if(n.flags&16384){var s=n.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var u=0;u<s.length;u++){var f=s[u],h=f.getSnapshot;f=f.value;try{if(!Nt(h(),f))return!1}catch{return!1}}}if(s=n.child,n.subtreeFlags&16384&&s!==null)s.return=n,n=s;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Dn(t,n){for(n&=~pu,n&=~ds,t.suspendedLanes|=n,t.pingedLanes&=~n,t=t.expirationTimes;0<n;){var s=31-Dt(n),u=1<<s;t[s]=-1,n&=~u}}function ih(t){if((_e&6)!==0)throw Error(r(327));Br();var n=Pi(t,0);if((n&1)===0)return ft(t,ze()),null;var s=vs(t,n);if(t.tag!==0&&s===2){var u=Yl(t);u!==0&&(n=u,s=vu(t,u))}if(s===1)throw s=Go,sr(t,0),Dn(t,n),ft(t,ze()),s;if(s===6)throw Error(r(345));return t.finishedWork=t.current.alternate,t.finishedLanes=n,lr(t,dt,fn),ft(t,ze()),null}function wu(t,n){var s=_e;_e|=1;try{return t(n)}finally{_e=s,_e===0&&(Hr=ze()+500,Ui&&_n())}}function ir(t){An!==null&&An.tag===0&&(_e&6)===0&&Br();var n=_e;_e|=1;var s=Tt.transition,u=Ie;try{if(Tt.transition=null,Ie=1,t)return t()}finally{Ie=u,Tt.transition=s,_e=n,(_e&6)===0&&_n()}}function Su(){yt=Vr.current,ke(Vr)}function sr(t,n){t.finishedWork=null,t.finishedLanes=0;var s=t.timeoutHandle;if(s!==-1&&(t.timeoutHandle=-1,gC(s)),Ue!==null)for(s=Ue.return;s!==null;){var u=s;switch(Ia(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&Hi();break;case 3:jr(),ke(at),ke(et),Ha();break;case 5:za(u);break;case 4:jr();break;case 13:ke(Fe);break;case 19:ke(Fe);break;case 10:Fa(u.type._context);break;case 22:case 23:Su()}s=s.return}if(qe=t,Ue=t=Nn(t.current,null),Je=yt=n,Ke=0,Go=null,pu=ds=or=0,dt=Ko=null,tr!==null){for(n=0;n<tr.length;n++)if(s=tr[n],u=s.interleaved,u!==null){s.interleaved=null;var f=u.next,h=s.pending;if(h!==null){var C=h.next;h.next=f,u.next=C}s.pending=u}tr=null}return t}function sh(t,n){do{var s=Ue;try{if(Na(),es.current=os,ts){for(var u=be.memoizedState;u!==null;){var f=u.queue;f!==null&&(f.pending=null),u=u.next}ts=!1}if(rr=0,Qe=Ge=be=null,zo=!1,Vo=0,fu.current=null,s===null||s.return===null){Ke=1,Go=n,Ue=null;break}e:{var h=t,C=s.return,T=s,I=n;if(n=Je,T.flags|=32768,I!==null&&typeof I=="object"&&typeof I.then=="function"){var b=I,W=T,G=W.tag;if((W.mode&1)===0&&(G===0||G===11||G===15)){var U=W.alternate;U?(W.updateQueue=U.updateQueue,W.memoizedState=U.memoizedState,W.lanes=U.lanes):(W.updateQueue=null,W.memoizedState=null)}var ee=Ap(C);if(ee!==null){ee.flags&=-257,kp(ee,C,T,h,n),ee.mode&1&&Op(h,b,n),n=ee,I=b;var oe=n.updateQueue;if(oe===null){var ie=new Set;ie.add(I),n.updateQueue=ie}else oe.add(I);break e}else{if((n&1)===0){Op(h,b,n),Cu();break e}I=Error(r(426))}}else if(De&&T.mode&1){var Ve=Ap(C);if(Ve!==null){(Ve.flags&65536)===0&&(Ve.flags|=256),kp(Ve,C,T,h,n),ka($r(I,T));break e}}h=I=$r(I,T),Ke!==4&&(Ke=2),Ko===null?Ko=[h]:Ko.push(h),h=C;do{switch(h.tag){case 3:h.flags|=65536,n&=-n,h.lanes|=n;var D=Mp(h,I,n);tp(h,D);break e;case 1:T=I;var A=h.type,F=h.stateNode;if((h.flags&128)===0&&(typeof A.getDerivedStateFromError=="function"||F!==null&&typeof F.componentDidCatch=="function"&&(On===null||!On.has(F)))){h.flags|=65536,n&=-n,h.lanes|=n;var Q=Ip(h,T,n);tp(h,Q);break e}}h=h.return}while(h!==null)}uh(s)}catch(le){n=le,Ue===s&&s!==null&&(Ue=s=s.return);continue}break}while(!0)}function lh(){var t=cs.current;return cs.current=os,t===null?os:t}function Cu(){(Ke===0||Ke===3||Ke===2)&&(Ke=4),qe===null||(or&268435455)===0&&(ds&268435455)===0||Dn(qe,Je)}function vs(t,n){var s=_e;_e|=2;var u=lh();
vendor: 4,580 bytes, line 8
8(qe!==t||Je!==n)&&(fn=null,sr(t,n));do try{zC();break}catch(f){sh(t,f)}while(!0);if(Na(),_e=s,cs.current=u,Ue!==null)throw Error(r(261));return qe=null,Je=0,Ke}function zC(){for(;Ue!==null;)ah(Ue)}function VC(){for(;Ue!==null&&!fS();)ah(Ue)}function ah(t){var n=fh(t.alternate,t,yt);t.memoizedProps=t.pendingProps,n===null?uh(t):Ue=n,fu.current=null}function uh(t){var n=t;do{var s=n.alternate;if(t=n.return,(n.flags&32768)===0){if(s=DC(s,n,yt),s!==null){Ue=s;return}}else{if(s=NC(s,n),s!==null){s.flags&=32767,Ue=s;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Ke=6,Ue=null;return}}if(n=n.sibling,n!==null){Ue=n;return}Ue=n=t}while(n!==null);Ke===0&&(Ke=5)}function lr(t,n,s){var u=Ie,f=Tt.transition;try{Tt.transition=null,Ie=1,HC(t,n,s,u)}finally{Tt.transition=f,Ie=u}return null}function HC(t,n,s,u){do Br();while(An!==null);if((_e&6)!==0)throw Error(r(327));s=t.finishedWork;var f=t.finishedLanes;if(s===null)return null;if(t.finishedWork=null,t.finishedLanes=0,s===t.current)throw Error(r(177));t.callbackNode=null,t.callbackPriority=0;var h=s.lanes|s.childLanes;if(xS(t,h),t===qe&&(Ue=qe=null,Je=0),(s.subtreeFlags&2064)===0&&(s.flags&2064)===0||ps||(ps=!0,ph(Ci,function(){return Br(),null})),h=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||h){h=Tt.transition,Tt.transition=null;var C=Ie;Ie=1;var T=_e;_e|=4,fu.current=null,bC(t,s),Jp(s,t),aC(Ca),Mi=!!Sa,Ca=Sa=null,t.current=s,LC(s),pS(),_e=T,Ie=C,Tt.transition=h}else t.current=s;if(ps&&(ps=!1,An=t,hs=f),h=t.pendingLanes,h===0&&(On=null),mS(s.stateNode),ft(t,ze()),n!==null)for(u=t.onRecoverableError,s=0;s<n.length;s++)f=n[s],u(f.value,{componentStack:f.stack,digest:f.digest});if(fs)throw fs=!1,t=gu,gu=null,t;return(hs&1)!==0&&t.tag!==0&&Br(),h=t.pendingLanes,(h&1)!==0?t===mu?Qo++:(Qo=0,mu=t):Qo=0,_n(),null}function Br(){if(An!==null){var t=Yd(hs),n=Tt.transition,s=Ie;try{if(Tt.transition=null,Ie=16>t?16:t,An===null)var u=!1;else{if(t=An,An=null,hs=0,(_e&6)!==0)throw Error(r(331));var f=_e;for(_e|=4,re=t.current;re!==null;){var h=re,C=h.child;if((re.flags&16)!==0){var T=h.deletions;if(T!==null){for(var I=0;I<T.length;I++){var b=T[I];for(re=b;re!==null;){var W=re;switch(W.tag){case 0:case 11:case 15:Wo(8,W,h)}var G=W.child;if(G!==null)G.return=W,re=G;else for(;re!==null;){W=re;var U=W.sibling,ee=W.return;if(Qp(W),W===b){re=null;break}if(U!==null){U.return=ee,re=U;break}re=ee}}}var oe=h.alternate;if(oe!==null){var ie=oe.child;if(ie!==null){oe.child=null;do{var Ve=ie.sibling;ie.sibling=null,ie=Ve}while(ie!==null)}}re=h}}if((h.subtreeFlags&2064)!==0&&C!==null)C.return=h,re=C;else e:for(;re!==null;){if(h=re,(h.flags&2048)!==0)switch(h.tag){case 0:case 11:case 15:Wo(9,h,h.return)}var D=h.sibling;if(D!==null){D.return=h.return,re=D;break e}re=h.return}}var A=t.current;for(re=A;re!==null;){C=re;var F=C.child;if((C.subtreeFlags&2064)!==0&&F!==null)F.return=C,re=F;else e:for(C=A;re!==null;){if(T=re,(T.flags&2048)!==0)try{switch(T.tag){case 0:case 11:case 15:us(9,T)}}catch(le){Le(T,T.return,le)}if(T===C){re=null;break e}var Q=T.sibling;if(Q!==null){Q.return=T.return,re=Q;break e}re=T.return}}if(_e=f,_n(),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(xi,t)}catch{}u=!0}return u}finally{Ie=s,Tt.transition=n}}return!1}function ch(t,n,s){n=$r(s,n),n=Mp(t,n,1),t=Mn(t,n,1),n=st(),t!==null&&(yo(t,1,n),ft(t,n))}function Le(t,n,s){if(t.tag===3)ch(t,t,s);else for(;n!==null;){if(n.tag===3){ch(n,t,s);break}else if(n.tag===1){var u=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(On===null||!On.has(u))){t=$r(s,t),t=Ip(n,t,1),n=Mn(n,t,1),t=st(),n!==null&&(yo(n,1,t),ft(n,t));break}}n=n.return}}function BC(t,n,s){var u=t.pingCache;u!==null&&u.delete(n),n=st(),t.pingedLanes|=t.suspendedLanes&s,qe===t&&(Je&s)===s&&(Ke===4||Ke===3&&(Je&130023424)===Je&&500>ze()-hu?sr(t,0):pu|=s),ft(t,n)}function dh(t,n){n===0&&((t.mode&1)===0?n=1:(n=Ei,Ei<<=1,(Ei&130023424)===0&&(Ei=4194304)));var s=st();t=un(t,n),t!==null&&(yo(t,n,s),ft(t,s))}function UC(t){var n=t.memoizedState,s=0;n!==null&&(s=n.retryLane),dh(t,s)}function WC(t,n){var s=0;switch(t.tag){case 13:var u=t.stateNode,f=t.memoizedState;f!==null&&(s=f.retryLane);break;case 19:u=t.stateNode;break;default:throw Error(r(314))}u!==null&&u.delete(n),dh(t,s)}var fh;fh=function(t,n,s){if(t!==null)if(t.memoizedProps!==n.pendingProps||at.current)ct=!0;else{if((t.lanes&s)===0&&(n.flags&128)===0)return ct=!1,kC(t,n,s);ct=(t.flags&131072)!==0}else ct=!1,De&&(n.flags&1048576)!==0&&Wf(n,Gi,n.index);switch(n.lanes=0,n.tag){case 2:var u=n.type;
vendor: 4,518 bytes, line 8
8ls(t,n),t=n.pendingProps;var f=Ar(n,et.current);Lr(n,s),f=Wa(null,n,u,t,f,s);var h=Ga();return n.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,ut(u)?(h=!0,Bi(n)):h=!1,n.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,ja(n),f.updater=is,n.stateNode=f,f._reactInternals=n,Za(n,u,t,s),n=nu(null,n,u,!0,h,s)):(n.tag=0,De&&h&&Ma(n),it(null,n,f,s),n=n.child),n;case 16:u=n.elementType;e:{switch(ls(t,n),t=n.pendingProps,f=u._init,u=f(u._payload),n.type=u,f=n.tag=KC(u),t=bt(u,t),f){case 0:n=tu(null,n,u,t,s);break e;case 1:n=jp(null,n,u,t,s);break e;case 11:n=Dp(null,n,u,t,s);break e;case 14:n=Np(null,n,u,bt(u.type,t),s);break e}throw Error(r(306,u,""))}return n;case 0:return u=n.type,f=n.pendingProps,f=n.elementType===u?f:bt(u,f),tu(t,n,u,f,s);case 1:return u=n.type,f=n.pendingProps,f=n.elementType===u?f:bt(u,f),jp(t,n,u,f,s);case 3:e:{if($p(n),t===null)throw Error(r(387));u=n.pendingProps,h=n.memoizedState,f=h.element,ep(t,n),Zi(n,u,null,s);var C=n.memoizedState;if(u=C.element,h.isDehydrated)if(h={element:u,isDehydrated:!1,cache:C.cache,pendingSuspenseBoundaries:C.pendingSuspenseBoundaries,transitions:C.transitions},n.updateQueue.baseState=h,n.memoizedState=h,n.flags&256){f=$r(Error(r(423)),n),n=zp(t,n,u,s,f);break e}else if(u!==f){f=$r(Error(r(424)),n),n=zp(t,n,u,s,f);break e}else for(vt=Rn(n.stateNode.containerInfo.firstChild),mt=n,De=!0,Ft=null,s=Zf(n,null,u,s),n.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(Nr(),u===f){n=dn(t,n,s);break e}it(t,n,u,s)}n=n.child}return n;case 5:return rp(n),t===null&&Aa(n),u=n.type,f=n.pendingProps,h=t!==null?t.memoizedProps:null,C=f.children,xa(u,f)?C=null:h!==null&&xa(u,h)&&(n.flags|=32),Lp(t,n),it(t,n,C,s),n.child;case 6:return t===null&&Aa(n),null;case 13:return Vp(t,n,s);case 4:return $a(n,n.stateNode.containerInfo),u=n.pendingProps,t===null?n.child=Fr(n,null,u,s):it(t,n,u,s),n.child;case 11:return u=n.type,f=n.pendingProps,f=n.elementType===u?f:bt(u,f),Dp(t,n,u,f,s);case 7:return it(t,n,n.pendingProps,s),n.child;case 8:return it(t,n,n.pendingProps.children,s),n.child;case 12:return it(t,n,n.pendingProps.children,s),n.child;case 10:e:{if(u=n.type._context,f=n.pendingProps,h=n.memoizedProps,C=f.value,Oe(qi,u._currentValue),u._currentValue=C,h!==null)if(Nt(h.value,C)){if(h.children===f.children&&!at.current){n=dn(t,n,s);break e}}else for(h=n.child,h!==null&&(h.return=n);h!==null;){var T=h.dependencies;if(T!==null){C=h.child;for(var I=T.firstContext;I!==null;){if(I.context===u){if(h.tag===1){I=cn(-1,s&-s),I.tag=2;var b=h.updateQueue;if(b!==null){b=b.shared;var W=b.pending;W===null?I.next=I:(I.next=W.next,W.next=I),b.pending=I}}h.lanes|=s,I=h.alternate,I!==null&&(I.lanes|=s),ba(h.return,s,n),T.lanes|=s;break}I=I.next}}else if(h.tag===10)C=h.type===n.type?null:h.child;else if(h.tag===18){if(C=h.return,C===null)throw Error(r(341));C.lanes|=s,T=C.alternate,T!==null&&(T.lanes|=s),ba(C,s,n),C=h.sibling}else C=h.child;if(C!==null)C.return=h;else for(C=h;C!==null;){if(C===n){C=null;break}if(h=C.sibling,h!==null){h.return=C.return,C=h;break}C=C.return}h=C}it(t,n,f.children,s),n=n.child}return n;case 9:return f=n.type,u=n.pendingProps.children,Lr(n,s),f=Pt(f),u=u(f),n.flags|=1,it(t,n,u,s),n.child;case 14:return u=n.type,f=bt(u,n.pendingProps),f=bt(u.type,f),Np(t,n,u,f,s);case 15:return Fp(t,n,n.type,n.pendingProps,s);case 17:return u=n.type,f=n.pendingProps,f=n.elementType===u?f:bt(u,f),ls(t,n),n.tag=1,ut(u)?(t=!0,Bi(n)):t=!1,Lr(n,s),_p(n,u,f),Za(n,u,f,s),nu(null,n,u,!0,t,s);case 19:return Bp(t,n,s);case 22:return bp(t,n,s)}throw Error(r(156,n.tag))};function ph(t,n){return Wd(t,n)}function GC(t,n,s,u){this.tag=t,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(t,n,s,u){return new GC(t,n,s,u)}function xu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function KC(t){if(typeof t=="function")return xu(t)?1:0;if(t!=null){if(t=t.$$typeof,t===me)return 11;if(t===ve)return 14}return 2}function Nn(t,n){var s=t.alternate;return s===null?(s=Mt(t.tag,n,t.key,t.mode),s.elementType=t.elementType,s.type=t.type,s.stateNode=t.stateNode,s.alternate=t,t.alternate=s):(s.pendingProps=n,s.type=t.type,s.flags=0,s.subtreeFlags=0,s.deleti
vendor: 5,037 bytes, line 8
8ons=null),s.flags=t.flags&14680064,s.childLanes=t.childLanes,s.lanes=t.lanes,s.child=t.child,s.memoizedProps=t.memoizedProps,s.memoizedState=t.memoizedState,s.updateQueue=t.updateQueue,n=t.dependencies,s.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},s.sibling=t.sibling,s.index=t.index,s.ref=t.ref,s}function ys(t,n,s,u,f,h){var C=2;if(u=t,typeof t=="function")xu(t)&&(C=1);else if(typeof t=="string")C=5;else e:switch(t){case $:return ar(s.children,f,h,n);case Y:C=8,f|=8;break;case Z:return t=Mt(12,s,n,f|2),t.elementType=Z,t.lanes=h,t;case he:return t=Mt(13,s,n,f),t.elementType=he,t.lanes=h,t;case X:return t=Mt(19,s,n,f),t.elementType=X,t.lanes=h,t;case se:return ws(s,f,h,n);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case J:C=10;break e;case ae:C=9;break e;case me:C=11;break e;case ve:C=14;break e;case ne:C=16,u=null;break e}throw Error(r(130,t==null?t:typeof t,""))}return n=Mt(C,s,n,f),n.elementType=t,n.type=u,n.lanes=h,n}function ar(t,n,s,u){return t=Mt(7,t,u,n),t.lanes=s,t}function ws(t,n,s,u){return t=Mt(22,t,u,n),t.elementType=se,t.lanes=s,t.stateNode={isHidden:!1},t}function Ru(t,n,s){return t=Mt(6,t,null,n),t.lanes=s,t}function Eu(t,n,s){return n=Mt(4,t.children!==null?t.children:[],t.key,n),n.lanes=s,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}function QC(t,n,s,u,f){this.tag=n,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xl(0),this.expirationTimes=Xl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xl(0),this.identifierPrefix=u,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function Pu(t,n,s,u,f,h,C,T,I){return t=new QC(t,n,s,T,I),n===1?(n=1,h===!0&&(n|=8)):n=0,h=Mt(3,null,null,n),t.current=h,h.stateNode=t,h.memoizedState={element:u,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},ja(h),t}function qC(t,n,s){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:H,key:u==null?null:""+u,children:t,containerInfo:n,implementation:s}}function hh(t){if(!t)return Pn;t=t._reactInternals;e:{if(Yn(t)!==t||t.tag!==1)throw Error(r(170));var n=t;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(ut(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(r(171))}if(t.tag===1){var s=t.type;if(ut(s))return Hf(t,s,n)}return n}function gh(t,n,s,u,f,h,C,T,I){return t=Pu(s,u,!0,t,f,h,C,T,I),t.context=hh(null),s=t.current,u=st(),f=kn(s),h=cn(u,f),h.callback=n??null,Mn(s,h,f),t.current.lanes=f,yo(t,f,u),ft(t,u),t}function Ss(t,n,s,u){var f=n.current,h=st(),C=kn(f);return s=hh(s),n.context===null?n.context=s:n.pendingContext=s,n=cn(h,C),n.payload={element:t},u=u===void 0?null:u,u!==null&&(n.callback=u),t=Mn(f,n,C),t!==null&&($t(t,f,C,h),Xi(t,f,C)),C}function Cs(t){return t=t.current,t.child?(t.child.tag===5,t.child.stateNode):null}function mh(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var s=t.retryLane;t.retryLane=s!==0&&s<n?s:n}}function _u(t,n){mh(t,n),(t=t.alternate)&&mh(t,n)}function YC(){return null}var vh=typeof reportError=="function"?reportError:function(t){console.error(t)};function Tu(t){this._internalRoot=t}xs.prototype.render=Tu.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(r(409));Ss(t,n,null,null)},xs.prototype.unmount=Tu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;ir(function(){Ss(null,t,null,null)}),n[on]=null}};function xs(t){this._internalRoot=t}xs.prototype.unstable_scheduleHydration=function(t){if(t){var n=Jd();t={blockedOn:null,target:t,priority:n};for(var s=0;s<Sn.length&&n!==0&&n<Sn[s].priority;s++);Sn.splice(s,0,t),s===0&&nf(t)}};function Mu(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Rs(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function yh(){}function XC(t,n,s,u,f){if(f){if(typeof u=="function"){var h=u;u=function(){var b=Cs(C);h.call(b)}}var C=gh(n,u,t,0,null,!1,!1,"",yh);return t._reactRootContainer=C,t[on]=C.current,ko(t.nodeType===8?t.parentNode:t),ir(),C}for(;f=t.lastChild;)t.removeChild(f);if(typeof u=="function"){var T=u;u=function(){var b=Cs(I);T.call(b)}}var I=Pu(t,0,!1,null,null,!1,!1,"",yh);return t._reactRootContainer=I,t[on]=I.current,ko(t.nodeType===8?t.parentNode:t),ir(function(){Ss(n,I,s,u)}),I}function Es(t,n,s,u,f){var h=s._reactRootContainer;if(h){var C=h;if(typeof f=="function"){var T=f;f=function(){var I=Cs(C);T.call(I)}}Ss(n,C,t,f)}else C=XC(s,n,t,f,u);return Cs(C)}Xd=function(t){switch(t.tag){case 3:var n=t.stateNode;if(n.current.memoizedState.isDehydrated){var s=vo(n.pendingLanes);
8s!==0&&(Zl(n,s|1),ft(n,ze()),(_e&6)===0&&(Hr=ze()+500,_n()))}break;case 13:ir(function(){var u=un(t,1);if(u!==null){var f=st();$t(u,t,1,f)}}),_u(t,1)}},Jl=function(t){if(t.tag===13){var n=un(t,134217728);if(n!==null){var s=st();$t(n,t,134217728,s)}_u(t,134217728)}},Zd=function(t){if(t.tag===13){var n=kn(t),s=un(t,n);if(s!==null){var u=st();$t(s,t,n,u)}_u(t,n)}},Jd=function(){return Ie},ef=function(t,n){var s=Ie;try{return Ie=t,n()}finally{Ie=s}},Wl=function(t,n,s){switch(n){case"input":if(qn(t,s),n=s.name,s.type==="radio"&&n!=null){for(s=t;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<s.length;n++){var u=s[n];if(u!==t&&u.form===t.form){var f=Vi(u);if(!f)throw Error(r(90));Ne(u),qn(u,f)}}}break;case"textarea":Id(t,s);break;case"select":n=s.value,n!=null&&wr(t,!!s.multiple,n,!1)}},jd=wu,$d=ir;var ZC={usingClientEntryPoint:!1,Events:[Fo,Ir,Vi,bd,Ld,wu]},qo={findFiberByHostInstance:Xn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},JC={bundleType:qo.bundleType,version:qo.version,rendererPackageName:qo.rendererPackageName,rendererConfig:qo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:N.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Bd(t),t===null?null:t.stateNode},findFiberByHostInstance:qo.findFiberByHostInstance||YC,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ps=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ps.isDisabled&&Ps.supportsFiber)try{xi=Ps.inject(JC),Gt=Ps}catch{}}return pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ZC,pt.createPortal=function(t,n){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Mu(n))throw Error(r(200));return qC(t,n,null,s)},pt.createRoot=function(t,n){if(!Mu(t))throw Error(r(299));var s=!1,u="",f=vh;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(f=n.onRecoverableError)),n=Pu(t,1,!1,null,null,s,!1,u,f),t[on]=n.current,ko(t.nodeType===8?t.parentNode:t),new Tu(n)},pt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=Bd(n),t=t===null?null:t.stateNode,t},pt.flushSync=function(t){return ir(t)},pt.hydrate=function(t,n,s){if(!Rs(n))throw Error(r(200));return Es(null,t,n,!0,s)},pt.hydrateRoot=function(t,n,s){if(!Mu(t))throw Error(r(405));var u=s!=null&&s.hydratedSources||null,f=!1,h="",C=vh;if(s!=null&&(s.unstable_strictMode===!0&&(f=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onRecoverableError!==void 0&&(C=s.onRecoverableError)),n=gh(n,null,t,1,s??null,f,!1,h,C),t[on]=n.current,ko(t),u)for(t=0;t<u.length;t++)s=u[t],f=s._getVersion,f=f(s._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[s,f]:n.mutableSourceEagerHydrationData.push(s,f);return new xs(n)},pt.render=function(t,n,s){if(!Rs(n))throw Error(r(200));return Es(null,t,n,!1,s)},pt.unmountComponentAtNode=function(t){if(!Rs(t))throw Error(r(40));return t._reactRootContainer?(ir(function(){Es(null,null,t,!1,function(){t._reactRootContainer=null,t[on]=null})}),!0):!1},pt.unstable_batchedUpdates=wu,pt.unstable_renderSubtreeIntoContainer=function(t,n,s,u){if(!Rs(s))throw Error(r(200));if(t==null||t._reactInternals===void 0)throw Error(r(38));return Es(t,n,s,!1,u)},pt.version="18.3.1-next-f1338f8080-20240426",pt}var _h;function l0(){if(_h)return Au.exports;_h=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(o){console.error(o)}}return e(),Au.exports=s0(),Au.exports}var no=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ur=typeof window>"u"||"Deno"in globalThis;function It(){}function a0(e,o){return typeof e=="function"?e(o):e}function nc(e){return typeof e=="number"&&e>=0&&e!==1/0}function Rg(e,o){return Math.max(e+(o||0)-Date.now(),0)}function Qr(e,o){return typeof e=="function"?e(o):e}function Vt(e,o){return typeof e=="function"?e(o):e}function Th(e,o){const{type:r="all",exact:i,fetchStatus:l,predicate:a,queryKey:c,stale:d}=e;if(c){if(i){if(o.queryHash!==kc(c,o.options))return!1}else if(!ti(o.queryKey,c))return!1}if(r!=="all"){const p=o.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof d=="boolean"&&o.isStale()!==d||l&&l!==o.state.fetchStatus||a&&!a(o))}function Mh(e,o){const{exact:r,status:i,predicate:l,mutationKey:a}=e;if(a){if(!o.options.mutationKey)return!1;if(r){if(cr(o.options.mutationKey)!==cr(a))return!1}else if(!ti(o.options.mutationKey,a))return!1}return!(i&&o.state.status!==i||l&&!l(o))}function kc(e,o){return(o?.queryKeyHashFn||cr)(e)}function cr(e){return JSON.stringify(e,(o,r)=>rc(r)?Object.keys(r).sort().reduce((i,l)=>(i[l]=r[l],i),{}):r)}function ti(e,o){return e===o?!0:typeof e!=typeof o?!1:e&&o&&typeof e=="object"&&typeof o=="object"?Object.keys(o).every(r=>ti(e[r],o[r])):!1}function Dc(e,o){if(e===o)return e;const r=Ih(e)&&Ih(o);if(r||rc(e)&&rc(o)){const i=r?e:Object.keys(e),l=i.length,a=r?o:Object.keys(o),c=a.length,d=r?[]:{};let p=0;for(let m=0;m<c;m++){const v=r?m:a[m];(!r&&i.includes(v)||r)&&e[v]===void 0&&o[v]===void 0?(d[v]=void 0,p++):(d[v]=Dc(e[v],o[v]),d[v]===e[v]&&e[v]!==void 0&&p++)}return l===c&&p===l?e:d}return o}function zs(e,o){if(!o||Object.keys(e).length!==Object.keys(o).length)return!1;for(const r in e)if(e[r]!==o[r])return!1;return!0}function Ih(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function rc(e){if(!Oh(e))return!1;const o=e.constructor;if(o===void 0)return!0;const r=o.prototype;return!(!Oh(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Oh(e){return Object.prototype.toString.call(e)==="[object Object]"}function u0(e){return new Promise(o=>{setTimeout(o,e)})}function oc(e,o,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,o):r.structuralSharing!==!1?Dc(e,o):o}function c0(e,o,r=0){const i=[...e,o];return r&&i.length>r?i.slice(1):i}function d0(e,o,r=0){const i=[o,...e];return r&&i.length>r?i.slice(0,-1):i}var Nc=Symbol();function Eg(e,o){return!e.queryFn&&o?.initialPromise?()=>o.initialPromise:!e.queryFn||e.queryFn===Nc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var f0=class extends no{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!ur&&window.addEventListener){const o=()=>e();return window.addEventListener("visibilitychange",o,!1),()=>{window.removeEventListener("visibilitychange",o)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(o=>{typeof o=="boolean"?this.setFocused(o):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();
vendor: 12,809 bytes, line 8
8this.listeners.forEach(o=>{o(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Fc=new f0,p0=class extends no{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!ur&&window.addEventListener){const o=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",o,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",o),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#t}},Vs=new p0;function ic(){let e,o;const r=new Promise((l,a)=>{e=l,o=a});r.status="pending",r.catch(()=>{});function i(l){Object.assign(r,l),delete r.resolve,delete r.reject}return r.resolve=l=>{i({status:"fulfilled",value:l}),e(l)},r.reject=l=>{i({status:"rejected",reason:l}),o(l)},r}function h0(e){return Math.min(1e3*2**e,3e4)}function Pg(e){return(e??"online")==="online"?Vs.isOnline():!0}var _g=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Nu(e){return e instanceof _g}function Tg(e){let o=!1,r=0,i=!1,l;const a=ic(),c=S=>{i||(w(new _g(S)),e.abort?.())},d=()=>{o=!0},p=()=>{o=!1},m=()=>Fc.isFocused()&&(e.networkMode==="always"||Vs.isOnline())&&e.canRun(),v=()=>Pg(e.networkMode)&&e.canRun(),y=S=>{i||(i=!0,e.onSuccess?.(S),l?.(),a.resolve(S))},w=S=>{i||(i=!0,e.onError?.(S),l?.(),a.reject(S))},x=()=>new Promise(S=>{l=P=>{(i||m())&&S(P)},e.onPause?.()}).then(()=>{l=void 0,i||e.onContinue?.()}),R=()=>{if(i)return;let S;const P=r===0?e.initialPromise:void 0;try{S=P??e.fn()}catch(_){S=Promise.reject(_)}Promise.resolve(S).then(y).catch(_=>{if(i)return;const M=e.retry??(ur?0:3),O=e.retryDelay??h0,N=typeof O=="function"?O(r,_):O,L=M===!0||typeof M=="number"&&r<M||typeof M=="function"&&M(r,_);if(o||!L){w(_);return}r++,e.onFail?.(r,_),u0(N).then(()=>m()?void 0:x()).then(()=>{o?w(_):R()})})};return{promise:a,cancel:c,continue:()=>(l?.(),a),cancelRetry:d,continueRetry:p,canStart:v,start:()=>(v()?R():x().then(R),a)}}var g0=e=>setTimeout(e,0);function m0(){let e=[],o=0,r=d=>{d()},i=d=>{d()},l=g0;const a=d=>{o?e.push(d):l(()=>{r(d)})},c=()=>{const d=e;e=[],d.length&&l(()=>{i(()=>{d.forEach(p=>{r(p)})})})};return{batch:d=>{let p;o++;try{p=d()}finally{o--,o||c()}return p},batchCalls:d=>(...p)=>{a(()=>{d(...p)})},schedule:a,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{i=d},setScheduler:d=>{l=d}}}var We=m0(),Mg=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),nc(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ur?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},v0=class extends Mg{#t;#e;#n;#r;#o;#s;#l;constructor(e){super(),this.#l=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=y0(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(e){this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,o){const r=oc(this.state.data,e,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:o?.updatedAt,manual:o?.manual}),r}setState(e,o){this.#i({type:"setState",state:e,setStateOptions:o})}cancel(e){const o=this.#o?.promise;return this.#o?.cancel(e),o?o.then(It).catch(It):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Vt(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Nc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!Rg(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(o=>o.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){this.observers.find(o=>o.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(o=>o!==e),this.observers.length||(this.#o&&(this.#l?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(e,o){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&o?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(p=>p.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#l=!0,r.signal)})},l=()=>{const d=Eg(this.options,o),p={client:this.#r,queryKey:this.queryKey,meta:this.meta};return i(p),this.#l=!1,this.options.persister?this.options.persister(d,p,this):d(p)},a={fetchOptions:o,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:l};i(a),this.options.behavior?.onFetch(a,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#i({type:"fetch",meta:a.fetchOptions?.meta});const c=d=>{Nu(d)&&d.silent||this.#i({type:"error",error:d}),Nu(d)||(this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this)),this.scheduleGc()};return this.#o=Tg({initialPromise:o?.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{if(d===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(p){c(p);return}this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),this.scheduleGc()},onError:c,onFail:(d,p)=>{this.#i({type:"failed",failureCount:d,error:p})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}),this.#o.start()}#i(e){const o=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Ig(r.data,this.options),fetchMeta:e.meta??null};case"success":return{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return Nu(i)&&i.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=o(this.state),We.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function Ig(e,o){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Pg(o.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function y0(e){const o=typeof e.initialData=="function"?e.initialData():e.initialData,r=o!==void 0,i=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:o,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var w0=class extends no{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,o,r){const i=o.queryKey,l=o.queryHash??kc(i,o);let a=this.get(l);return a||(a=new v0({client:e,queryKey:i,queryHash:l,options:e.defaultQueryOptions(o),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const o=this.#t.get(e.queryHash);o&&(e.destroy(),o===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){We.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const o={exact:!0,...e};return this.getAll().find(r=>Th(o,r))}findAll(e={}){const o=this.getAll();return Object.keys(e).length>0?o.filter(r=>Th(e,r)):o}notify(e){We.batch(()=>{this.listeners.forEach(o=>{o(e)})})}onFocus(){We.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){We.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},S0=class extends Mg{#t;#e;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||Og(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(o=>o!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){this.#n=Tg({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(i,l)=>{this.#r({type:"failed",failureCount:i,error:l})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const o=this.state.status==="pending",r=!this.#n.canStart();try{if(!o){this.#r({type:"pending",variables:e,isPaused:r}),await this.#e.config.onMutate?.(e,this);const l=await this.options.onMutate?.(e);l!==this.state.context&&this.#r({type:"pending",context:l,variables:e,isPaused:r})}const i=await this.#n.start();return await this.#e.config.onSuccess?.(i,e,this.state.context,this),await this.options.onSuccess?.(i,e,this.state.context),await this.#e.config.onSettled?.(i,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(i,null,e,this.state.context),this.#r({type:"success",data:i}),i}catch(i){try{throw await this.#e.config.onError?.(i,e,this.state.context,this),await this.options.onError?.(i,e,this.state.context),await this.#e.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,i,e,this.state.context),i}finally{this.#r({type:"error",error:i})}}finally{this.#e.runNext(this)}}#r(e){const o=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=o(this.state),We.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function Og(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var C0=class extends no{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,o,r){const i=new S0({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(o),state:r});return this.add(i),i}add(e){this.#t.add(e);const o=_s(e);
vendor: 8,655 bytes, line 8
8if(typeof o=="string"){const r=this.#e.get(o);r?r.push(e):this.#e.set(o,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const o=_s(e);if(typeof o=="string"){const r=this.#e.get(o);if(r)if(r.length>1){const i=r.indexOf(e);i!==-1&&r.splice(i,1)}else r[0]===e&&this.#e.delete(o)}}this.notify({type:"removed",mutation:e})}canRun(e){const o=_s(e);if(typeof o=="string"){const i=this.#e.get(o)?.find(l=>l.state.status==="pending");return!i||i===e}else return!0}runNext(e){const o=_s(e);return typeof o=="string"?this.#e.get(o)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){We.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const o={exact:!0,...e};return this.getAll().find(r=>Mh(o,r))}findAll(e={}){return this.getAll().filter(o=>Mh(e,o))}notify(e){We.batch(()=>{this.listeners.forEach(o=>{o(e)})})}resumePausedMutations(){const e=this.getAll().filter(o=>o.state.isPaused);return We.batch(()=>Promise.all(e.map(o=>o.continue().catch(It))))}};function _s(e){return e.options.scope?.id}function Hs(e){return{onFetch:(o,r)=>{const i=o.options,l=o.fetchOptions?.meta?.fetchMore?.direction,a=o.state.data?.pages||[],c=o.state.data?.pageParams||[];let d={pages:[],pageParams:[]},p=0;const m=async()=>{let v=!1;const y=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(o.signal.aborted?v=!0:o.signal.addEventListener("abort",()=>{v=!0}),o.signal)})},w=Eg(o.options,o.fetchOptions),x=async(R,S,P)=>{if(v)return Promise.reject();if(S==null&&R.pages.length)return Promise.resolve(R);const _={client:o.client,queryKey:o.queryKey,pageParam:S,direction:P?"backward":"forward",meta:o.options.meta};y(_);const M=await w(_),{maxPages:O}=o.options,N=P?d0:c0;return{pages:N(R.pages,M,O),pageParams:N(R.pageParams,S,O)}};if(l&&a.length){const R=l==="backward",S=R?Ag:sc,P={pages:a,pageParams:c},_=S(i,P);d=await x(P,_,R)}else{const R=e??a.length;do{const S=p===0?c[0]??i.initialPageParam:sc(i,d);if(p>0&&S==null)break;d=await x(d,S),p++}while(p<R)}return d};o.options.persister?o.fetchFn=()=>o.options.persister?.(m,{client:o.client,queryKey:o.queryKey,meta:o.options.meta,signal:o.signal},r):o.fetchFn=m}}}function sc(e,{pages:o,pageParams:r}){const i=o.length-1;return o.length>0?e.getNextPageParam(o[i],o,r[i],r):void 0}function Ag(e,{pages:o,pageParams:r}){return o.length>0?e.getPreviousPageParam?.(o[0],o,r[0],r):void 0}function x0(e,o){return o?sc(e,o)!=null:!1}function R0(e,o){return!o||!e.getPreviousPageParam?!1:Ag(e,o)!=null}var OM=class{#t;#e;#n;#r;#o;#s;#l;#i;constructor(e={}){this.#t=e.queryCache||new w0,this.#e=e.mutationCache||new C0,this.#n=e.defaultOptions||{},this.#r=new Map,this.#o=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#l=Fc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=Vs.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#l?.(),this.#l=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const o=this.defaultQueryOptions({queryKey:e});return this.#t.get(o.queryHash)?.state.data}ensureQueryData(e){const o=this.defaultQueryOptions(e),r=this.#t.build(this,o),i=r.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Qr(o.staleTime,r))&&this.prefetchQuery(o),Promise.resolve(i))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:o,state:r})=>{const i=r.data;return[o,i]})}setQueryData(e,o,r){const i=this.defaultQueryOptions({queryKey:e}),a=this.#t.get(i.queryHash)?.state.data,c=a0(o,a);if(c!==void 0)return this.#t.build(this,i).setData(c,{...r,manual:!0})}setQueriesData(e,o,r){return We.batch(()=>this.#t.findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,o,r)]))}getQueryState(e){const o=this.defaultQueryOptions({queryKey:e});return this.#t.get(o.queryHash)?.state}removeQueries(e){const o=this.#t;We.batch(()=>{o.findAll(e).forEach(r=>{o.remove(r)})})}resetQueries(e,o){const r=this.#t;return We.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},o)))}cancelQueries(e,o={}){const r={revert:!0,...o},i=We.batch(()=>this.#t.findAll(e).map(l=>l.cancel(r)));return Promise.all(i).then(It).catch(It)}invalidateQueries(e,o={}){return We.batch(()=>(this.#t.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},o)))}refetchQueries(e,o={}){const r={...o,cancelRefetch:o.cancelRefetch??!0},i=We.batch(()=>this.#t.findAll(e).filter(l=>!l.isDisabled()).map(l=>{let a=l.fetch(void 0,r);return r.throwOnError||(a=a.catch(It)),l.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(i).then(It)}fetchQuery(e){const o=this.defaultQueryOptions(e);o.retry===void 0&&(o.retry=!1);const r=this.#t.build(this,o);return r.isStaleByTime(Qr(o.staleTime,r))?r.fetch(o):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(It).catch(It)}fetchInfiniteQuery(e){return e.behavior=Hs(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(It).catch(It)}ensureInfiniteQueryData(e){return e.behavior=Hs(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Vs.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,o){this.#r.set(cr(e),{queryKey:e,defaultOptions:o})}getQueryDefaults(e){const o=[...this.#r.values()],r={};return o.forEach(i=>{ti(e,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(e,o){this.#o.set(cr(e),{mutationKey:e,defaultOptions:o})}getMutationDefaults(e){const o=[...this.#o.values()],r={};return o.forEach(i=>{ti(e,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const o={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return o.queryHash||(o.queryHash=kc(o.queryKey,o)),o.refetchOnReconnect===void 0&&(o.refetchOnReconnect=o.networkMode!=="always"),o.throwOnError===void 0&&(o.throwOnError=!!o.suspense),!o.networkMode&&o.persister&&(o.networkMode="offlineFirst"),o.queryFn===Nc&&(o.enabled=!1),o}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},kg=class extends no{constructor(e,o){super(),this.options=o,this.#t=e,this.#i=null,this.#l=ic(),this.options.experimental_prefetchInRender||this.#l.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(o)}#t;#e=void 0;#n=void 0;#r=void 0;#o;#s;#l;#i;#g;#f;#p;#u;#c;#a;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Ah(this.#e,this.options)?this.#d():this.updateResult(),this.#w())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return lc(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return lc(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#C(),this.#e.removeObserver(this)}setOptions(e){const o=this.options,r=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Vt(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#x(),this.#e.setOptions(this.options),o._defaulted&&!zs(this.options,o)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const i=this.hasListeners();i&&kh(this.#e,r,this.options,o)&&this.#d(),this.updateResult(),i&&(this.#e!==r||Vt(this.options.enabled,this.#e)!==Vt(o.enabled,this.#e)||Qr(this.options.staleTime,this.#e)!==Qr(o.staleTime,this.#e))&&this.#m();const l=this.#v();i&&(this.#e!==r||Vt(this.options.enabled,this.#e)!==Vt(o.enabled,this.#e)||l!==this.#a)&&this.#y(l)}getOptimisticResult(e){const o=this.#t.getQueryCache().build(this.#t,e),r=this.createResult(o,e);return P0(this,r)&&(this.#r=r,this.#s=this.options,this.#o=this.#e.state),r}getCurrentResult(){return this.#r}trackResult(e,o){const r={};return Object.keys(e).forEach(i=>
vendor: 4,106 bytes, line 8
8{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),o?.(i),e[i])})}),r}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const o=this.#t.defaultQueryOptions(e),r=this.#t.getQueryCache().build(this.#t,o);return r.fetch().then(()=>this.createResult(r,o))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#x();let o=this.#e.fetch(this.options,e);return e?.throwOnError||(o=o.catch(It)),o}#m(){this.#S();const e=Qr(this.options.staleTime,this.#e);if(ur||this.#r.isStale||!nc(e))return;const r=Rg(this.#r.dataUpdatedAt,e)+1;this.#u=setTimeout(()=>{this.#r.isStale||this.updateResult()},r)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(e){this.#C(),this.#a=e,!(ur||Vt(this.options.enabled,this.#e)===!1||!nc(this.#a)||this.#a===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||Fc.isFocused())&&this.#d()},this.#a))}#w(){this.#m(),this.#y(this.#v())}#S(){this.#u&&(clearTimeout(this.#u),this.#u=void 0)}#C(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(e,o){const r=this.#e,i=this.options,l=this.#r,a=this.#o,c=this.#s,p=e!==r?e.state:this.#n,{state:m}=e;let v={...m},y=!1,w;if(o._optimisticResults){const $=this.hasListeners(),Y=!$&&Ah(e,o),Z=$&&kh(e,r,o,i);(Y||Z)&&(v={...v,...Ig(m.data,e.options)}),o._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:x,errorUpdatedAt:R,status:S}=v;if(o.select&&v.data!==void 0)if(l&&v.data===a?.data&&o.select===this.#g)w=this.#f;else try{this.#g=o.select,w=o.select(v.data),w=oc(l?.data,w,o),this.#f=w,this.#i=null}catch($){this.#i=$}else w=v.data;if(o.placeholderData!==void 0&&w===void 0&&S==="pending"){let $;if(l?.isPlaceholderData&&o.placeholderData===c?.placeholderData)$=l.data;else if($=typeof o.placeholderData=="function"?o.placeholderData(this.#p?.state.data,this.#p):o.placeholderData,o.select&&$!==void 0)try{$=o.select($),this.#i=null}catch(Y){this.#i=Y}$!==void 0&&(S="success",w=oc(l?.data,$,o),y=!0)}this.#i&&(x=this.#i,w=this.#f,R=Date.now(),S="error");const P=v.fetchStatus==="fetching",_=S==="pending",M=S==="error",O=_&&P,N=w!==void 0,H={status:S,fetchStatus:v.fetchStatus,isPending:_,isSuccess:S==="success",isError:M,isInitialLoading:O,isLoading:O,data:w,dataUpdatedAt:v.dataUpdatedAt,error:x,errorUpdatedAt:R,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>p.dataUpdateCount||v.errorUpdateCount>p.errorUpdateCount,isFetching:P,isRefetching:P&&!_,isLoadingError:M&&!N,isPaused:v.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:M&&N,isStale:bc(e,o),refetch:this.refetch,promise:this.#l};if(this.options.experimental_prefetchInRender){const $=J=>{H.status==="error"?J.reject(H.error):H.data!==void 0&&J.resolve(H.data)},Y=()=>{const J=this.#l=H.promise=ic();$(J)},Z=this.#l;switch(Z.status){case"pending":e.queryHash===r.queryHash&&$(Z);break;case"fulfilled":(H.status==="error"||H.data!==Z.value)&&Y();break;case"rejected":(H.status!=="error"||H.error!==Z.reason)&&Y();break}}return H}updateResult(){const e=this.#r,o=this.createResult(this.#e,this.options);if(this.#o=this.#e.state,this.#s=this.options,this.#o.data!==void 0&&(this.#p=this.#e),zs(o,e))return;this.#r=o;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!this.#h.size)return!0;const a=new Set(l??this.#h);return this.options.throwOnError&&a.add("error"),Object.keys(this.#r).some(c=>{const d=c;return this.#r[d]!==e[d]&&a.has(d)})};this.#R({listeners:r()})}#x(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const o=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(o?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#w()}#R(e){We.batch(()=>
8{e.listeners&&this.listeners.forEach(o=>{o(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function E0(e,o){return Vt(o.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&o.retryOnMount===!1)}function Ah(e,o){return E0(e,o)||e.state.data!==void 0&&lc(e,o,o.refetchOnMount)}function lc(e,o,r){if(Vt(o.enabled,e)!==!1){const i=typeof r=="function"?r(e):r;return i==="always"||i!==!1&&bc(e,o)}return!1}function kh(e,o,r,i){return(e!==o||Vt(i.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&bc(e,r)}function bc(e,o){return Vt(o.enabled,e)!==!1&&e.isStaleByTime(Qr(o.staleTime,e))}function P0(e,o){return!zs(e.getCurrentResult(),o)}var _0=class extends kg{constructor(e,o){super(e,o)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:Hs()})}getOptimisticResult(e){return e.behavior=Hs(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,o){const{state:r}=e,i=super.createResult(e,o),{isFetching:l,isRefetching:a,isError:c,isRefetchError:d}=i,p=r.fetchMeta?.fetchMore?.direction,m=c&&p==="forward",v=l&&p==="forward",y=c&&p==="backward",w=l&&p==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:x0(o,r.data),hasPreviousPage:R0(o,r.data),isFetchNextPageError:m,isFetchingNextPage:v,isFetchPreviousPageError:y,isFetchingPreviousPage:w,isRefetchError:d&&!m&&!y,isRefetching:a&&!v&&!w}}},T0=class extends no{#t;#e=void 0;#n;#r;constructor(o,r){super(),this.#t=o,this.setOptions(r),this.bindMethods(),this.#o()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(o){const r=this.options;this.options=this.#t.defaultMutationOptions(o),zs(this.options,r)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),r?.mutationKey&&this.options.mutationKey&&cr(r.mutationKey)!==cr(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(o){this.#o(),this.#s(o)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#o(),this.#s()}mutate(o,r){return this.#r=r,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(o)}#o(){const o=this.#n?.state??Og();this.#e={...o,isPending:o.status==="pending",isSuccess:o.status==="success",isError:o.status==="error",isIdle:o.status==="idle",mutate:this.mutate,reset:this.reset}}#s(o){We.batch(()=>{if(this.#r&&this.hasListeners()){const r=this.#e.variables,i=this.#e.context;o?.type==="success"?(this.#r.onSuccess?.(o.data,r,i),this.#r.onSettled?.(o.data,null,r,i)):o?.type==="error"&&(this.#r.onError?.(o.error,r,i),this.#r.onSettled?.(void 0,o.error,r,i))}this.listeners.forEach(r=>{r(this.#e)})})}},Dg=g.createContext(void 0),rl=e=>{const o=g.useContext(Dg);if(e)return e;if(!o)throw new Error("No QueryClient set, use QueryClientProvider to set one");return o},kM=({client:e,children:o})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),E.jsx(Dg.Provider,{value:e,children:o})),Ng=g.createContext(!1),M0=()=>g.useContext(Ng);Ng.Provider;function I0(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var O0=g.createContext(I0()),A0=()=>g.useContext(O0);function Fg(e,o){return typeof e=="function"?e(...o):!!e}function ac(){}var k0=(e,o)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(o.isReset()||(e.retryOnMount=!1))},D0=e=>{g.useEffect(()=>{e.clearReset()},[e])},N0=({result:e,errorResetBoundary:o,throwOnError:r,query:i,suspense:l})=>e.isError&&!o.isReset()&&!e.isFetching&&i&&(l&&e.data===void 0||Fg(r,[e.error,i])),F0=e=>{const o=e.staleTime;e.suspense&&(e.staleTime=typeof o=="function"?(...r)=>Math.max(o(...r),1e3):Math.max(o??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},b0=(e,o)=>e.isLoading&&e.isFetching&&!o,L0=(e,o)=>e?.suspense&&o.isPending,Dh=(e,o,r)=>o.fetchOptimistic(e).catch(()=>{r.clearReset()});function bg(e,o,r){const i=rl(r),l=M0(),a=A0(),c=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(c),c._optimisticResults=l?"isRestoring":"optimistic",F0(c),k0(c,a),D0(a);const d=!i.getQueryCache().get(c.queryHash),[p]=g.useState(()=>new o(i,c)),m=p.getOptimisticResult(c),v=!l&&e.subscribed!==!1;if(g.useSyncExternalStore(g.useCallback(y=>{const w=v?p.subscribe(We.batchCalls(y)):ac;return p.updateResult(),w},[p,v]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),g.useEffect(()=>{p.setOptions(c)},[c,p]),L0(c,m))throw Dh(c,p,a);if(N0({result:m,errorResetBoundary:a,throwOnError:c.throwOnError,query:i.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw m.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(c,m),c.experimental_prefetchInRender&&!ur&&b0(m,l)&&(d?Dh(c,p,a):i.getQueryCache().get(c.queryHash)?.promise)?.catch(ac).finally(()=>{p.updateResult()}),c.notifyOnChangeProps?m:p.trackResult(m)}function DM(e,o){return bg(e,kg,o)}function NM(e){return e}function FM(e){return e}function bM(e,o){const r=rl(o);return j0({filters:{...e,status:"pending"}},r).length}function Nh(e,o){return e.findAll(o.filters).map(r=>o.select?o.select(r):r.state)}function j0(e={},o){const r=rl(o).getMutationCache(),i=g.useRef(e),l=g.useRef(null);return l.current||(l.current=Nh(r,e)),g.useEffect(()=>{i.current=e}),g.useSyncExternalStore(g.useCallback(a=>r.subscribe(()=>{const c=Dc(l.current,Nh(r,i.current));l.current!==c&&(l.current=c,We.schedule(a))}),[r]),()=>l.current,()=>l.current)}function LM(e,o){const r=rl(o),[i]=g.useState(()=>new T0(r,e));g.useEffect(()=>{i.setOptions(e)},[i,e]);const l=g.useSyncExternalStore(g.useCallback(c=>i.subscribe(We.batchCalls(c)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),a=g.useCallback((c,d)=>{i.mutate(c,d).catch(ac)},[i]);if(l.error&&Fg(i.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:a,mutateAsync:l.mutate}}function jM(e,o){return bg(e,_0,o)}function Fh(e,o){if(typeof e=="function")return e(o);e!=null&&(e.current=o)}function ol(...e){return o=>{let r=!1;const i=e.map(l=>{const a=Fh(l,o);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let l=0;l<i.length;l++){const a=i[l];typeof a=="function"?a():Fh(e[l],null)}}}}function ge(...e){return g.useCallback(ol(...e),e)}function zn(e){const o=$0(e),r=g.forwardRef((i,l)=>{const{children:a,...c}=i,d=g.Children.toArray(a),p=d.find(z0);if(p){const m=p.props.children,v=d.map(y=>y===p?g.Children.count(m)>1?g.Children.only(null):g.isValidElement(m)?m.props.children:null:y);return E.jsx(o,{...c,ref:l,children:g.isValidElement(m)?g.cloneElement(m,void 0,v):null})}return E.jsx(o,{...c,ref:l,children:a})});return r.displayName=`${e}.Slot`,r}var $M=zn("Slot");function $0(e){const o=g.forwardRef((r,i)=>{const{children:l,...a}=r;if(g.isValidElement(l)){const c=H0(l),d=V0(a,l.props);return l.type!==g.Fragment&&(d.ref=i?ol(i,c):c),g.cloneElement(l,d)}return g.Children.count(l)>1?g.Children.only(null):null});return o.displayName=`${e}.SlotClone`,o}var Lg=Symbol("radix.slottable");function Lc(e){const o=({children:r})=>E.jsx(E.Fragment,{children:r});return o.displayName=`${e}.Slottable`,o.__radixId=Lg,o}var zM=Lc("Slottable");function z0(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Lg}function V0(e,o){const r={...o};for(const i in o){const l=e[i],a=o[i];/^on[A-Z]/.test(i)?l&&a?r[i]=(...d)=>{const p=a(...d);return l(...d),p}:l&&(r[i]=l):i==="style"?r[i]={...l,...a}
vendor: 16,483 bytes, line 8
8:i==="className"&&(r[i]=[l,a].filter(Boolean).join(" "))}return{...e,...r}}function H0(e){let o=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=o&&"isReactWarning"in o&&o.isReactWarning;return r?e.ref:(o=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=o&&"isReactWarning"in o&&o.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function B0(e,o){const r=g.createContext(o),i=a=>{const{children:c,...d}=a,p=g.useMemo(()=>d,Object.values(d));return E.jsx(r.Provider,{value:p,children:c})};i.displayName=e+"Provider";function l(a){const c=g.useContext(r);if(c)return c;if(o!==void 0)return o;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[i,l]}function He(e,o=[]){let r=[];function i(a,c){const d=g.createContext(c),p=r.length;r=[...r,c];const m=y=>{const{scope:w,children:x,...R}=y,S=w?.[e]?.[p]||d,P=g.useMemo(()=>R,Object.values(R));return E.jsx(S.Provider,{value:P,children:x})};m.displayName=a+"Provider";function v(y,w){const x=w?.[e]?.[p]||d,R=g.useContext(x);if(R)return R;if(c!==void 0)return c;throw new Error(`\`${y}\` must be used within \`${a}\``)}return[m,v]}const l=()=>{const a=r.map(c=>g.createContext(c));return function(d){const p=d?.[e]||a;return g.useMemo(()=>({[`__scope${e}`]:{...d,[e]:p}}),[d,p])}};return l.scopeName=e,[i,U0(l,...o)]}function U0(...e){const o=e[0];if(e.length===1)return o;const r=()=>{const i=e.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(a){const c=i.reduce((d,{useScope:p,scopeName:m})=>{const y=p(a)[`__scope${m}`];return{...d,...y}},{});return g.useMemo(()=>({[`__scope${o.scopeName}`]:c}),[c])}};return r.scopeName=o.scopeName,r}function je(e){const o=g.useRef(e);return g.useEffect(()=>{o.current=e}),g.useMemo(()=>(...r)=>o.current?.(...r),[])}var $e=globalThis?.document?g.useLayoutEffect:()=>{},Un=l0();const jg=Cg(Un),VM=Sg({__proto__:null,default:jg},[Un]);var W0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],te=W0.reduce((e,o)=>{const r=zn(`Primitive.${o}`),i=g.forwardRef((l,a)=>{const{asChild:c,...d}=l,p=c?r:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(p,{...d,ref:a})});return i.displayName=`Primitive.${o}`,{...e,[o]:i}},{});function jc(e,o){e&&Un.flushSync(()=>e.dispatchEvent(o))}var Fu={exports:{}},bu={};var bh;function G0(){if(bh)return bu;bh=1;var e=nl();function o(y,w){return y===w&&(y!==0||1/y===1/w)||y!==y&&w!==w}var r=typeof Object.is=="function"?Object.is:o,i=e.useState,l=e.useEffect,a=e.useLayoutEffect,c=e.useDebugValue;function d(y,w){var x=w(),R=i({inst:{value:x,getSnapshot:w}}),S=R[0].inst,P=R[1];return a(function(){S.value=x,S.getSnapshot=w,p(S)&&P({inst:S})},[y,x,w]),l(function(){return p(S)&&P({inst:S}),y(function(){p(S)&&P({inst:S})})},[y]),c(x),x}function p(y){var w=y.getSnapshot;y=y.value;try{var x=w();return!r(y,x)}catch{return!0}}function m(y,w){return w()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:d;return bu.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:v,bu}var Lh;function K0(){return Lh||(Lh=1,Fu.exports=G0()),Fu.exports}var Q0=K0();function q0(){return Q0.useSyncExternalStore(Y0,()=>!0,()=>!1)}function Y0(){return()=>{}}var $c="Avatar",[X0]=He($c),[Z0,$g]=X0($c),zg=g.forwardRef((e,o)=>{const{__scopeAvatar:r,...i}=e,[l,a]=g.useState("idle");return E.jsx(Z0,{scope:r,imageLoadingStatus:l,onImageLoadingStatusChange:a,children:E.jsx(te.span,{...i,ref:o})})});zg.displayName=$c;var Vg="AvatarImage",Hg=g.forwardRef((e,o)=>{const{__scopeAvatar:r,src:i,onLoadingStatusChange:l=()=>{},...a}=e,c=$g(Vg,r),d=J0(i,a),p=je(m=>{l(m),c.onImageLoadingStatusChange(m)});return $e(()=>{d!=="idle"&&p(d)},[d,p]),d==="loaded"?E.jsx(te.img,{...a,ref:o,src:i}):null});Hg.displayName=Vg;var Bg="AvatarFallback",Ug=g.forwardRef((e,o)=>{const{__scopeAvatar:r,delayMs:i,...l}=e,a=$g(Bg,r),[c,d]=g.useState(i===void 0);return g.useEffect(()=>{if(i!==void 0){const p=window.setTimeout(()=>d(!0),i);return()=>window.clearTimeout(p)}},[i]),c&&a.imageLoadingStatus!=="loaded"?E.jsx(te.span,{...l,ref:o}):null});Ug.displayName=Bg;function jh(e,o){return e?o?(e.src!==o&&(e.src=o),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function J0(e,{referrerPolicy:o,crossOrigin:r}){const i=q0(),l=g.useRef(null),a=i?(l.current||(l.current=new window.Image),l.current):null,[c,d]=g.useState(()=>jh(a,e));return $e(()=>{d(jh(a,e))},[a,e]),$e(()=>{const p=y=>()=>{d(y)};if(!a)return;const m=p("loaded"),v=p("error");return a.addEventListener("load",m),a.addEventListener("error",v),o&&(a.referrerPolicy=o),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",m),a.removeEventListener("error",v)}},[a,r,o]),c}var HM=zg,BM=Hg,UM=Ug;function B(e,o,{checkForDefaultPrevented:r=!0}={}){return function(l){if(e?.(l),r===!1||!l.defaultPrevented)return o?.(l)}}var ex=xg[" useInsertionEffect ".trim().toString()]||$e;function ht({prop:e,defaultProp:o,onChange:r=()=>{},caller:i}){const[l,a,c]=tx({defaultProp:o,onChange:r}),d=e!==void 0,p=d?e:l;{const v=g.useRef(e!==void 0);g.useEffect(()=>{const y=v.current;y!==d&&console.warn(`${i} is changing from ${y?"controlled":"uncontrolled"} to ${d?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),v.current=d},[d,i])}const m=g.useCallback(v=>{if(d){const y=nx(v)?v(e):v;y!==e&&c.current?.(y)}else a(v)},[d,e,a,c]);return[p,m]}function tx({defaultProp:e,onChange:o}){const[r,i]=g.useState(e),l=g.useRef(r),a=g.useRef(o);return ex(()=>{a.current=o},[o]),g.useEffect(()=>{l.current!==r&&(a.current?.(r),l.current=r)},[r,l]),[r,i,a]}function nx(e){return typeof e=="function"}function il(e){const o=e+"CollectionProvider",[r,i]=He(o),[l,a]=r(o,{collectionRef:{current:null},itemMap:new Map}),c=S=>{const{scope:P,children:_}=S,M=bn.useRef(null),O=bn.useRef(new Map).current;return E.jsx(l,{scope:P,itemMap:O,collectionRef:M,children:_})};c.displayName=o;const d=e+"CollectionSlot",p=zn(d),m=bn.forwardRef((S,P)=>{const{scope:_,children:M}=S,O=a(d,_),N=ge(P,O.collectionRef);return E.jsx(p,{ref:N,children:M})});m.displayName=d;const v=e+"CollectionItemSlot",y="data-radix-collection-item",w=zn(v),x=bn.forwardRef((S,P)=>{const{scope:_,children:M,...O}=S,N=bn.useRef(null),L=ge(P,N),H=a(v,_);return bn.useEffect(()=>(H.itemMap.set(N,{ref:N,...O}),()=>{H.itemMap.delete(N)})),E.jsx(w,{[y]:"",ref:L,children:M})});x.displayName=v;function R(S){const P=a(e+"CollectionConsumer",S);return bn.useCallback(()=>{const M=P.collectionRef.current;if(!M)return[];const O=Array.from(M.querySelectorAll(`[${y}]`));return Array.from(P.itemMap.values()).sort((H,$)=>O.indexOf(H.ref.current)-O.indexOf($.ref.current))},[P.collectionRef,P.itemMap])}return[{Provider:c,Slot:m,ItemSlot:x},R,i]}var rx=g.createContext(void 0);function ro(e){const o=g.useContext(rx);return e||o||"ltr"}function ox(e,o=globalThis?.document){const r=je(e);g.useEffect(()=>{const i=l=>{l.key==="Escape"&&r(l)};return o.addEventListener("keydown",i,{capture:!0}),()=>o.removeEventListener("keydown",i,{capture:!0})},[r,o])}var ix="DismissableLayer",uc="dismissableLayer.update",sx="dismissableLayer.pointerDownOutside",lx="dismissableLayer.focusOutside",$h,Wg=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Wn=g.forwardRef((e,o)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:a,onInteractOutside:c,onDismiss:d,...p}=e,m=g.useContext(Wg),[v,y]=g.useState(null),w=v?.ownerDocument??globalThis?.document,[,x]=g.useState({}),R=ge(o,$=>y($)),S=Array.from(m.layers),[P]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),_=S.indexOf(P),M=v?S.indexOf(v):-1,O=m.layersWithOutsidePointerEventsDisabled.size>0,N=M>=_,L=ux($=>{const Y=$.target,Z=[...m.branches].some(J=>J.contains(Y));!N||Z||(l?.($),c?.($),$.defaultPrevented||d?.())},w),H=cx($=>{const Y=$.target;[...m.branches].some(J=>J.contains(Y))||(a?.($),c?.($),$.defaultPrevented||d?.())},w);return ox($=>{M===m.layers.size-1&&(i?.($),!$.defaultPrevented&&d&&($.preventDefault(),d()))},w),g.useEffect(()=>{if(v)return r&&(m.layersWithOutsidePointerEventsDisabled.size===0&&($h=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(v)),m.layers.add(v),zh(),()=>{r&&m.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=$h)}},[v,w,r,m]),g.useEffect(()=>()=>{v&&(m.layers.delete(v),m.layersWithOutsidePointerEventsDisabled.delete(v),zh())},[v,m]),g.useEffect(()=>{const $=()=>x({});return document.addEventListener(uc,$),()=>document.removeEventListener(uc,$)},[]),E.jsx(te.div,{...p,ref:R,style:{pointerEvents:O?N?"auto":"none":void 0,...e.style},onFocusCapture:B(e.onFocusCapture,H.onFocusCapture),onBlurCapture:B(e.onBlurCapture,H.onBlurCapture),onPointerDownCapture:B(e.onPointerDownCapture,L.onPointerDownCapture)})});Wn.displayName=ix;var ax="DismissableLayerBranch",Gg=g.forwardRef((e,o)=>{const r=g.useContext(Wg),i=g.useRef(null),l=ge(o,i);return g.useEffect(()=>{const a=i.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),E.jsx(te.div,{...e,ref:l})});Gg.displayName=ax;function ux(e,o=globalThis?.document){const r=je(e),i=g.useRef(!1),l=g.useRef(()=>{});return g.useEffect(()=>{const a=d=>{if(d.target&&!i.current){let p=function(){Kg(sx,r,m,{discrete:!0})};const m={originalEvent:d};d.pointerType==="touch"?(o.removeEventListener("click",l.current),l.current=p,o.addEventListener("click",l.current,{once:!0})):p()}else o.removeEventListener("click",l.current);i.current=!1},c=window.setTimeout(()=>{o.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),o.removeEventListener("pointerdown",a),o.removeEventListener("click",l.current)}},[o,r]),{onPointerDownCapture:()=>i.current=!0}}function cx(e,o=globalThis?.document){const r=je(e),i=g.useRef(!1);return g.useEffect(()=>{const l=a=>{a.target&&!i.current&&Kg(lx,r,{originalEvent:a},{discrete:!1})};return o.addEventListener("focusin",l),()=>o.removeEventListener("focusin",l)},[o,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function zh(){const e=new CustomEvent(uc);document.dispatchEvent(e)}function Kg(e,o,r,{discrete:i}){const l=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});o&&l.addEventListener(e,o,{once:!0}),i?jc(l,a):l.dispatchEvent(a)}var dx=Wn,fx=Gg,Lu=0;function sl(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Vh()),document.body.insertAdjacentElement("beforeend",e[1]??Vh()),Lu++,()=>{Lu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Lu--}},[])}function Vh(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ju="focusScope.autoFocusOnMount",$u="focusScope.autoFocusOnUnmount",Hh={bubbles:!1,cancelable:!0},px="FocusScope",li=g.forwardRef((e,o)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:l,onUnmountAutoFocus:a,...c}=e,[d,p]=g.useState(null),m=je(l),v=je(a),y=g.useRef(null),w=ge(o,S=>p(S)),x=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(i){let S=function(O){if(x.paused||!d)return;const N=O.target;d.contains(N)?y.current=N:Ln(y.current,{select:!0})},P=function(O){if(x.paused||!d)return;const N=O.relatedTarget;N!==null&&(d.contains(N)||Ln(y.current,{select:!0}))},_=function(O){if(document.activeElement===document.body)for(const L of O)L.removedNodes.length>0&&Ln(d)};document.addEventListener("focusin",S),document.addEventListener("focusout",P);const M=new MutationObserver(_);return d&&M.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",P),M.disconnect()}}},[i,d,x.paused]),g.useEffect(()=>{if(d){Uh.add(x);const S=document.activeElement;if(!d.contains(S)){const _=new CustomEvent(ju,Hh);d.addEventListener(ju,m),d.dispatchEvent(_),_.defaultPrevented||(hx(wx(Qg(d)),{select:!0}),document.activeElement===S&&Ln(d))}return()=>{d.removeEventListener(ju,m),setTimeout(()=>{const _=new CustomEvent($u,Hh);d.addEventListener($u,v),d.dispatchEvent(_),_.defaultPrevented||Ln(S??document.body,{select:!0}),d.removeEventListener($u,v),Uh.remove(x)},0)}}},[d,m,v,x]);const R=g.useCallback(S=>{if(!r&&!i||x.paused)return;const P=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,_=document.activeElement;if(P&&_){const M=S.currentTarget,[O,N]=gx(M);O&&N?!S.shiftKey&&_===N?(S.preventDefault(),r&&Ln(O,{select:!0})):S.shiftKey&&_===O&&(S.preventDefault(),r&&Ln(N,{select:!0})):_===M&&S.preventDefault()}},[r,i,x.paused]);return E.jsx(te.div,{tabIndex:-1,...c,ref:w,onKeyDown:R})});li.displayName=px;function hx(e,{select:o=!1}={}){const r=document.activeElement;for(const i of e)if(Ln(i,{select:o}),document.activeElement!==r)return}function gx(e){const o=Qg(e),r=Bh(o,e),i=Bh(o.reverse(),e);return[r,i]}function Qg(e){const o=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const l=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||l?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)o.push(r.currentNode);return o}function Bh(e,o){for(const r of e)if(!mx(r,{upTo:o}))return r}function mx(e,{upTo:o}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(o!==void 0&&e===o)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function vx(e){return e instanceof HTMLInputElement&&"select"in e}function Ln(e,{select:o=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&vx(e)&&o&&e.select()}}var Uh=yx();function yx(){let e=[];return{add(o){const r=e[0];o!==r&&r?.pause(),e=Wh(e,o),e.unshift(o)},remove(o){e=Wh(e,o),e[0]?.resume()}}}function Wh(e,o){const r=[...e],i=r.indexOf(o);return i!==-1&&r.splice(i,1),r}function wx(e){return e.filter(o=>o.tagName!=="A")}var Sx=xg[" useId ".trim().toString()]||(()=>{}),Cx=0;function St(e){const[o,r]=g.useState(Sx());return $e(()=>{r(i=>i??String(Cx++))},[e]),e||(o?`radix-${o}`:"")}const xx=["top","right","bottom","left"],Vn=Math.min,wt=Math.max,Bs=Math.round,Ts=Math.floor,Jt=e=>({x:e,y:e}),Rx={left:"right",right:"left",bottom:"top",top:"bottom"},Ex={start:"end",end:"start"};function cc(e,o,r){return wt(e,Vn(o,r))}function hn(e,o){return typeof e=="function"?e(o):e}function gn(e){return e.split("-")[0]}function oo(e){return e.split("-")[1]}function zc(e){return e==="x"?"y":"x"}function Vc(e){return e==="y"?"height":"width"}const Px=new Set(["top","bottom"]);function Zt(e){return Px.has(gn(e))?"y":"x"}function Hc(e){return zc(Zt(e))}function _x(e,o,r){r===void 0&&(r=!1);const i=oo(e),l=Hc(e),a=Vc(l);let c=l==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[a]>o.floating[a]&&(c=Us(c)),[c,Us(c)]}function Tx(e){const o=Us(e);return[dc(e),o,dc(o)]}function dc(e){return e.replace(/start|end/g,o=>Ex[o])}const Gh=["left","right"],Kh=["right","left"],Mx=["top","bottom"],Ix=["bottom","top"];function Ox(e,o,r){switch(e){case"top":case"bottom":return r?o?Kh:Gh:o?Gh:Kh;case"left":case"right":return o?Mx:Ix;default:return[]}}function Ax(e,o,r,i){const l=oo(e);let a=Ox(gn(e),r==="start",i);return l&&(a=a.map(c=>c+"-"+l),o&&(a=a.concat(a.map(dc)))),a}function Us(e){return e.replace(/left|right|bottom|top/g,o=>Rx[o])}function kx(e){return{top:0,right:0,bottom:0,left:0,...e}}function qg(e){return typeof e!="number"?kx(e):{top:e,right:e,bottom:e,left:e}}function Ws(e){const{x:o,y:r,width:i,height:l}=e;return{width:i,height:l,top:r,left:o,right:o+i,bottom:r+l,x:o,y:r}}function Qh(e,o,r){let{reference:i,floating:l}=e;const a=Zt(o),c=Hc(o),d=Vc(c),p=gn(o),m=a==="y",v=i.x+i.width/2-l.width/2,y=i.y+i.height/2-l.height/2,w=i[d]/2-l[d]/2;let x;switch(p){case"top":x={x:v,y:i.y-l.height};break;case"bottom":x={x:v,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y};break;case"left":x={x:i.x-l.width,y};break;default:x={x:i.x,y:i.y}}switch(oo(o)){case"start":x[c]-=w*(r&&m?-1:1);break;case"end":x[c]+=w*(r&&m?-1:1);break}return x}const Dx=async(e,o,r)=>{const{placement:i="bottom",strategy:l="absolute",middleware:a=[],platform:c}
vendor: 9,983 bytes, line 8
8=r,d=a.filter(Boolean),p=await(c.isRTL==null?void 0:c.isRTL(o));let m=await c.getElementRects({reference:e,floating:o,strategy:l}),{x:v,y}=Qh(m,i,p),w=i,x={},R=0;for(let S=0;S<d.length;S++){const{name:P,fn:_}=d[S],{x:M,y:O,data:N,reset:L}=await _({x:v,y,initialPlacement:i,placement:w,strategy:l,middlewareData:x,rects:m,platform:c,elements:{reference:e,floating:o}});v=M??v,y=O??y,x={...x,[P]:{...x[P],...N}},L&&R<=50&&(R++,typeof L=="object"&&(L.placement&&(w=L.placement),L.rects&&(m=L.rects===!0?await c.getElementRects({reference:e,floating:o,strategy:l}):L.rects),{x:v,y}=Qh(m,w,p)),S=-1)}return{x:v,y,placement:w,strategy:l,middlewareData:x}};async function ni(e,o){var r;o===void 0&&(o={});const{x:i,y:l,platform:a,rects:c,elements:d,strategy:p}=e,{boundary:m="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:w=!1,padding:x=0}=hn(o,e),R=qg(x),P=d[w?y==="floating"?"reference":"floating":y],_=Ws(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(P)))==null||r?P:P.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(d.floating)),boundary:m,rootBoundary:v,strategy:p})),M=y==="floating"?{x:i,y:l,width:c.floating.width,height:c.floating.height}:c.reference,O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d.floating)),N=await(a.isElement==null?void 0:a.isElement(O))?await(a.getScale==null?void 0:a.getScale(O))||{x:1,y:1}:{x:1,y:1},L=Ws(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:M,offsetParent:O,strategy:p}):M);return{top:(_.top-L.top+R.top)/N.y,bottom:(L.bottom-_.bottom+R.bottom)/N.y,left:(_.left-L.left+R.left)/N.x,right:(L.right-_.right+R.right)/N.x}}const Nx=e=>({name:"arrow",options:e,async fn(o){const{x:r,y:i,placement:l,rects:a,platform:c,elements:d,middlewareData:p}=o,{element:m,padding:v=0}=hn(e,o)||{};if(m==null)return{};const y=qg(v),w={x:r,y:i},x=Hc(l),R=Vc(x),S=await c.getDimensions(m),P=x==="y",_=P?"top":"left",M=P?"bottom":"right",O=P?"clientHeight":"clientWidth",N=a.reference[R]+a.reference[x]-w[x]-a.floating[R],L=w[x]-a.reference[x],H=await(c.getOffsetParent==null?void 0:c.getOffsetParent(m));let $=H?H[O]:0;(!$||!await(c.isElement==null?void 0:c.isElement(H)))&&($=d.floating[O]||a.floating[R]);const Y=N/2-L/2,Z=$/2-S[R]/2-1,J=Vn(y[_],Z),ae=Vn(y[M],Z),me=J,he=$-S[R]-ae,X=$/2-S[R]/2+Y,ve=cc(me,X,he),ne=!p.arrow&&oo(l)!=null&&X!==ve&&a.reference[R]/2-(X<me?J:ae)-S[R]/2<0,se=ne?X<me?X-me:X-he:0;return{[x]:w[x]+se,data:{[x]:ve,centerOffset:X-ve-se,...ne&&{alignmentOffset:se}},reset:ne}}}),Fx=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(o){var r,i;const{placement:l,middlewareData:a,rects:c,initialPlacement:d,platform:p,elements:m}=o,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:w,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:S=!0,...P}=hn(e,o);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const _=gn(l),M=Zt(d),O=gn(d)===d,N=await(p.isRTL==null?void 0:p.isRTL(m.floating)),L=w||(O||!S?[Us(d)]:Tx(d)),H=R!=="none";!w&&H&&L.push(...Ax(d,S,R,N));const $=[d,...L],Y=await ni(o,P),Z=[];let J=((i=a.flip)==null?void 0:i.overflows)||[];if(v&&Z.push(Y[_]),y){const X=_x(l,c,N);Z.push(Y[X[0]],Y[X[1]])}if(J=[...J,{placement:l,overflows:Z}],!Z.every(X=>X<=0)){var ae,me;const X=(((ae=a.flip)==null?void 0:ae.index)||0)+1,ve=$[X];if(ve&&(!(y==="alignment"?M!==Zt(ve):!1)||J.every(j=>Zt(j.placement)===M?j.overflows[0]>0:!0)))return{data:{index:X,overflows:J},reset:{placement:ve}};let ne=(me=J.filter(se=>se.overflows[0]<=0).sort((se,j)=>se.overflows[1]-j.overflows[1])[0])==null?void 0:me.placement;if(!ne)switch(x){case"bestFit":{var he;const se=(he=J.filter(j=>{if(H){const z=Zt(j.placement);return z===M||z==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(z=>z>0).reduce((z,K)=>z+K,0)]).sort((j,z)=>j[1]-z[1])[0])==null?void 0:he[0];se&&(ne=se);break}case"initialPlacement":ne=d;break}if(l!==ne)return{reset:{placement:ne}}}return{}}}};function qh(e,o){return{top:e.top-o.height,right:e.right-o.width,bottom:e.bottom-o.height,left:e.left-o.width}}function Yh(e){return xx.some(o=>e[o]>=0)}const bx=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(o){const{rects:r}=o,{strategy:i="referenceHidden",...l}=hn(e,o);switch(i){case"referenceHidden":{const a=await ni(o,{...l,elementContext:"reference"}),c=qh(a,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Yh(c)}}}case"escaped":{const a=await ni(o,{...l,altBoundary:!0}),c=qh(a,r.floating);return{data:{escapedOffsets:c,escaped:Yh(c)}}}default:return{}}}}},Yg=new Set(["left","top"]);async function Lx(e,o){const{placement:r,platform:i,elements:l}=e,a=await(i.isRTL==null?void 0:i.isRTL(l.floating)),c=gn(r),d=oo(r),p=Zt(r)==="y",m=Yg.has(c)?-1:1,v=a&&p?-1:1,y=hn(o,e);let{mainAxis:w,crossAxis:x,alignmentAxis:R}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return d&&typeof R=="number"&&(x=d==="end"?R*-1:R),p?{x:x*v,y:w*m}:{x:w*m,y:x*v}}const jx=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(o){var r,i;const{x:l,y:a,placement:c,middlewareData:d}=o,p=await Lx(o,e);return c===((r=d.offset)==null?void 0:r.placement)&&(i=d.arrow)!=null&&i.alignmentOffset?{}:{x:l+p.x,y:a+p.y,data:{...p,placement:c}}}}},$x=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){const{x:r,y:i,placement:l}=o,{mainAxis:a=!0,crossAxis:c=!1,limiter:d={fn:P=>{let{x:_,y:M}=P;return{x:_,y:M}}},...p}=hn(e,o),m={x:r,y:i},v=await ni(o,p),y=Zt(gn(l)),w=zc(y);let x=m[w],R=m[y];if(a){const P=w==="y"?"top":"left",_=w==="y"?"bottom":"right",M=x+v[P],O=x-v[_];x=cc(M,x,O)}if(c){const P=y==="y"?"top":"left",_=y==="y"?"bottom":"right",M=R+v[P],O=R-v[_];R=cc(M,R,O)}const S=d.fn({...o,[w]:x,[y]:R});return{...S,data:{x:S.x-r,y:S.y-i,enabled:{[w]:a,[y]:c}}}}}},zx=function(e){return e===void 0&&(e={}),{options:e,fn(o){const{x:r,y:i,placement:l,rects:a,middlewareData:c}=o,{offset:d=0,mainAxis:p=!0,crossAxis:m=!0}=hn(e,o),v={x:r,y:i},y=Zt(l),w=zc(y);let x=v[w],R=v[y];const S=hn(d,o),P=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(p){const O=w==="y"?"height":"width",N=a.reference[w]-a.floating[O]+P.mainAxis,L=a.reference[w]+a.reference[O]-P.mainAxis;x<N?x=N:x>L&&(x=L)}if(m){var _,M;const O=w==="y"?"width":"height",N=Yg.has(gn(l)),L=a.reference[y]-a.floating[O]+(N&&((_=c.offset)==null?void 0:_[y])||0)+(N?0:P.crossAxis),H=a.reference[y]+a.reference[O]+(N?0:((M=c.offset)==null?void 0:M[y])||0)-(N?P.crossAxis:0);R<L?R=L:R>H&&(R=H)}return{[w]:x,[y]:R}}}},Vx=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(o){var r,i;const{placement:l,rects:a,platform:c,elements:d}=o,{apply:p=()=>{},...m}=hn(e,o),v=await ni(o,m),y=gn(l),w=oo(l),x=Zt(l)==="y",{width:R,height:S}=a.floating;let P,_;y==="top"||y==="bottom"?(P=y,_=w===(await(c.isRTL==null?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(_=y,P=w==="end"?"top":"bottom");const M=S-v.top-v.bottom,O=R-v.left-v.right,N=Vn(S-v[P],M),L=Vn(R-v[_],O),H=!o.middlewareData.shift;let $=N,Y=L;if((r=o.middlewareData.shift)!=null&&r.enabled.x&&(Y=O),(i=o.middlewareData.shift)!=null&&i.enabled.y&&($=M),H&&!w){const J=wt(v.left,0),ae=wt(v.right,0),me=wt(v.top,0),he=wt(v.bottom,0);x?Y=R-2*(J!==0||ae!==0?J+ae:wt(v.left,v.right)):$=S-2*(me!==0||he!==0?me+he:wt(v.top,v.bottom))}await p({...o,availableWidth:Y,availableHeight:$});const Z=await c.getDimensions(d.floating);return R!==Z.width||S!==Z.height?{reset:{rects:!0}}:{}}}};function ll(){return typeof window<"u"}function io(e){return Xg(e)?(e.nodeName||"").toLowerCase():"#document"}function Ct(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function tn(e){var o;return(o=(Xg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function Xg(e){return ll()?e instanceof Node||e instanceof Ct(e).Node:!1}function Bt(e){return ll()?e instanceof Element||e instanceof Ct(e).Element:!1}function en(e){return ll()?e instanceof HTMLElement||e instanceof Ct(e).HTMLElement:!1}function Xh(e){return!ll()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ct(e).ShadowRoot}const Hx=new Set(["inline","contents"]);function ai(e){const{overflow:o,overflowX:r,overflowY:i,display:l}=Ut(e);return/auto|scroll|overlay|hidden|clip/.test(o+i+r)&&!Hx.has(l)}const Bx=new Set(["table","td","th"]);function Ux(e){return Bx.has(io(e))}const Wx=[":popover-open",":modal"];function al(e){return Wx.some(o=>{try{return e.matches(o)}catch{return!1}})}const Gx=["transform","translate","scale","rotate","perspective"],Kx=["transform","translate","scale","rotate","perspective","filter"],Qx=["paint","layout","strict","content"];function Bc(e){const o=Uc(),r=Bt(e)?Ut(e):e;return Gx.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!o&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!o&&(r.filter?r.filter!=="none":!1)||Kx.some(i=>(r.willChange||"").includes(i))||Qx.some(i=>(r.contain||"").includes(i))}function qx(e){let o=Hn(e);for(;en(o)&&!Zr(o);){if(Bc(o))return o;if(al(o))return null;o=Hn(o)}return null}function Uc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Yx=new Set(["html","body","#document"]);function Zr(e){return Yx.has(io(e))}function Ut(e){return Ct(e).getComputedStyle(e)}function ul(e){return Bt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Hn(e){if(io(e)==="html")return e;const o=e.assignedSlot||e.parentNode||Xh(e)&&e.host||tn(e);return Xh(o)?o.host:o}function Zg(e){const o=Hn(e);return Zr(o)?e.ownerDocument?e.ownerDocument.body:e.body:en(o)&&ai(o)?o:Zg(o)}function ri(e,o,r){var i;o===void 0&&(o=[]),r===void 0&&(r=!0);const l=Zg(e),a=l===((i=e.ownerDocument)==null?void 0:i.body),c=Ct(l);if(a){const d=fc(c);
vendor: 14,038 bytes, line 8
8return o.concat(c,c.visualViewport||[],ai(l)?l:[],d&&r?ri(d):[])}return o.concat(l,ri(l,[],r))}function fc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Jg(e){const o=Ut(e);let r=parseFloat(o.width)||0,i=parseFloat(o.height)||0;const l=en(e),a=l?e.offsetWidth:r,c=l?e.offsetHeight:i,d=Bs(r)!==a||Bs(i)!==c;return d&&(r=a,i=c),{width:r,height:i,$:d}}function Wc(e){return Bt(e)?e:e.contextElement}function qr(e){const o=Wc(e);if(!en(o))return Jt(1);const r=o.getBoundingClientRect(),{width:i,height:l,$:a}=Jg(o);let c=(a?Bs(r.width):r.width)/i,d=(a?Bs(r.height):r.height)/l;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}const Xx=Jt(0);function em(e){const o=Ct(e);return!Uc()||!o.visualViewport?Xx:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function Zx(e,o,r){return o===void 0&&(o=!1),!r||o&&r!==Ct(e)?!1:o}function dr(e,o,r,i){o===void 0&&(o=!1),r===void 0&&(r=!1);const l=e.getBoundingClientRect(),a=Wc(e);let c=Jt(1);o&&(i?Bt(i)&&(c=qr(i)):c=qr(e));const d=Zx(a,r,i)?em(a):Jt(0);let p=(l.left+d.x)/c.x,m=(l.top+d.y)/c.y,v=l.width/c.x,y=l.height/c.y;if(a){const w=Ct(a),x=i&&Bt(i)?Ct(i):i;let R=w,S=fc(R);for(;S&&i&&x!==R;){const P=qr(S),_=S.getBoundingClientRect(),M=Ut(S),O=_.left+(S.clientLeft+parseFloat(M.paddingLeft))*P.x,N=_.top+(S.clientTop+parseFloat(M.paddingTop))*P.y;p*=P.x,m*=P.y,v*=P.x,y*=P.y,p+=O,m+=N,R=Ct(S),S=fc(R)}}return Ws({width:v,height:y,x:p,y:m})}function cl(e,o){const r=ul(e).scrollLeft;return o?o.left+r:dr(tn(e)).left+r}function tm(e,o){const r=e.getBoundingClientRect(),i=r.left+o.scrollLeft-cl(e,r),l=r.top+o.scrollTop;return{x:i,y:l}}function Jx(e){let{elements:o,rect:r,offsetParent:i,strategy:l}=e;const a=l==="fixed",c=tn(i),d=o?al(o.floating):!1;if(i===c||d&&a)return r;let p={scrollLeft:0,scrollTop:0},m=Jt(1);const v=Jt(0),y=en(i);if((y||!y&&!a)&&((io(i)!=="body"||ai(c))&&(p=ul(i)),en(i))){const x=dr(i);m=qr(i),v.x=x.x+i.clientLeft,v.y=x.y+i.clientTop}const w=c&&!y&&!a?tm(c,p):Jt(0);return{width:r.width*m.x,height:r.height*m.y,x:r.x*m.x-p.scrollLeft*m.x+v.x+w.x,y:r.y*m.y-p.scrollTop*m.y+v.y+w.y}}function eR(e){return Array.from(e.getClientRects())}function tR(e){const o=tn(e),r=ul(e),i=e.ownerDocument.body,l=wt(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),a=wt(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight);let c=-r.scrollLeft+cl(e);const d=-r.scrollTop;return Ut(i).direction==="rtl"&&(c+=wt(o.clientWidth,i.clientWidth)-l),{width:l,height:a,x:c,y:d}}const Zh=25;function nR(e,o){const r=Ct(e),i=tn(e),l=r.visualViewport;let a=i.clientWidth,c=i.clientHeight,d=0,p=0;if(l){a=l.width,c=l.height;const v=Uc();(!v||v&&o==="fixed")&&(d=l.offsetLeft,p=l.offsetTop)}const m=cl(i);if(m<=0){const v=i.ownerDocument,y=v.body,w=getComputedStyle(y),x=v.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,R=Math.abs(i.clientWidth-y.clientWidth-x);R<=Zh&&(a-=R)}else m<=Zh&&(a+=m);return{width:a,height:c,x:d,y:p}}const rR=new Set(["absolute","fixed"]);function oR(e,o){const r=dr(e,!0,o==="fixed"),i=r.top+e.clientTop,l=r.left+e.clientLeft,a=en(e)?qr(e):Jt(1),c=e.clientWidth*a.x,d=e.clientHeight*a.y,p=l*a.x,m=i*a.y;return{width:c,height:d,x:p,y:m}}function Jh(e,o,r){let i;if(o==="viewport")i=nR(e,r);else if(o==="document")i=tR(tn(e));else if(Bt(o))i=oR(o,r);else{const l=em(e);i={x:o.x-l.x,y:o.y-l.y,width:o.width,height:o.height}}return Ws(i)}function nm(e,o){const r=Hn(e);return r===o||!Bt(r)||Zr(r)?!1:Ut(r).position==="fixed"||nm(r,o)}function iR(e,o){const r=o.get(e);if(r)return r;let i=ri(e,[],!1).filter(d=>Bt(d)&&io(d)!=="body"),l=null;const a=Ut(e).position==="fixed";let c=a?Hn(e):e;for(;Bt(c)&&!Zr(c);){const d=Ut(c),p=Bc(c);!p&&d.position==="fixed"&&(l=null),(a?!p&&!l:!p&&d.position==="static"&&!!l&&rR.has(l.position)||ai(c)&&!p&&nm(e,c))?i=i.filter(v=>v!==c):l=d,c=Hn(c)}return o.set(e,i),i}function sR(e){let{element:o,boundary:r,rootBoundary:i,strategy:l}=e;const c=[...r==="clippingAncestors"?al(o)?[]:iR(o,this._c):[].concat(r),i],d=c[0],p=c.reduce((m,v)=>{const y=Jh(o,v,l);return m.top=wt(y.top,m.top),m.right=Vn(y.right,m.right),m.bottom=Vn(y.bottom,m.bottom),m.left=wt(y.left,m.left),m},Jh(o,d,l));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function lR(e){const{width:o,height:r}=Jg(e);return{width:o,height:r}}function aR(e,o,r){const i=en(o),l=tn(o),a=r==="fixed",c=dr(e,!0,a,o);let d={scrollLeft:0,scrollTop:0};const p=Jt(0);function m(){p.x=cl(l)}if(i||!i&&!a)if((io(o)!=="body"||ai(l))&&(d=ul(o)),i){const x=dr(o,!0,a,o);p.x=x.x+o.clientLeft,p.y=x.y+o.clientTop}else l&&m();a&&!i&&l&&m();const v=l&&!i&&!a?tm(l,d):Jt(0),y=c.left+d.scrollLeft-p.x-v.x,w=c.top+d.scrollTop-p.y-v.y;return{x:y,y:w,width:c.width,height:c.height}}function zu(e){return Ut(e).position==="static"}function eg(e,o){if(!en(e)||Ut(e).position==="fixed")return null;if(o)return o(e);let r=e.offsetParent;return tn(e)===r&&(r=r.ownerDocument.body),r}function rm(e,o){const r=Ct(e);if(al(e))return r;if(!en(e)){let l=Hn(e);for(;l&&!Zr(l);){if(Bt(l)&&!zu(l))return l;l=Hn(l)}return r}let i=eg(e,o);for(;i&&Ux(i)&&zu(i);)i=eg(i,o);return i&&Zr(i)&&zu(i)&&!Bc(i)?r:i||qx(e)||r}const uR=async function(e){const o=this.getOffsetParent||rm,r=this.getDimensions,i=await r(e.floating);return{reference:aR(e.reference,await o(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function cR(e){return Ut(e).direction==="rtl"}const dR={convertOffsetParentRelativeRectToViewportRelativeRect:Jx,getDocumentElement:tn,getClippingRect:sR,getOffsetParent:rm,getElementRects:uR,getClientRects:eR,getDimensions:lR,getScale:qr,isElement:Bt,isRTL:cR};function om(e,o){return e.x===o.x&&e.y===o.y&&e.width===o.width&&e.height===o.height}function fR(e,o){let r=null,i;const l=tn(e);function a(){var d;clearTimeout(i),(d=r)==null||d.disconnect(),r=null}function c(d,p){d===void 0&&(d=!1),p===void 0&&(p=1),a();const m=e.getBoundingClientRect(),{left:v,top:y,width:w,height:x}=m;if(d||o(),!w||!x)return;const R=Ts(y),S=Ts(l.clientWidth-(v+w)),P=Ts(l.clientHeight-(y+x)),_=Ts(v),O={rootMargin:-R+"px "+-S+"px "+-P+"px "+-_+"px",threshold:wt(0,Vn(1,p))||1};let N=!0;function L(H){const $=H[0].intersectionRatio;if($!==p){if(!N)return c();$?c(!1,$):i=setTimeout(()=>{c(!1,1e-7)},1e3)}$===1&&!om(m,e.getBoundingClientRect())&&c(),N=!1}try{r=new IntersectionObserver(L,{...O,root:l.ownerDocument})}catch{r=new IntersectionObserver(L,O)}r.observe(e)}return c(!0),a}function pR(e,o,r,i){i===void 0&&(i={});const{ancestorScroll:l=!0,ancestorResize:a=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,m=Wc(e),v=l||a?[...m?ri(m):[],...ri(o)]:[];v.forEach(_=>{l&&_.addEventListener("scroll",r,{passive:!0}),a&&_.addEventListener("resize",r)});const y=m&&d?fR(m,r):null;let w=-1,x=null;c&&(x=new ResizeObserver(_=>{let[M]=_;M&&M.target===m&&x&&(x.unobserve(o),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var O;(O=x)==null||O.observe(o)})),r()}),m&&!p&&x.observe(m),x.observe(o));let R,S=p?dr(e):null;p&&P();function P(){const _=dr(e);S&&!om(S,_)&&r(),S=_,R=requestAnimationFrame(P)}return r(),()=>{var _;v.forEach(M=>{l&&M.removeEventListener("scroll",r),a&&M.removeEventListener("resize",r)}),y?.(),(_=x)==null||_.disconnect(),x=null,p&&cancelAnimationFrame(R)}}const hR=jx,gR=$x,mR=Fx,vR=Vx,yR=bx,tg=Nx,wR=zx,SR=(e,o,r)=>{const i=new Map,l={platform:dR,...r},a={...l.platform,_c:i};return Dx(e,o,{...l,platform:a})};var CR=typeof document<"u",xR=function(){},Ls=CR?g.useLayoutEffect:xR;function Gs(e,o){if(e===o)return!0;if(typeof e!=typeof o)return!1;if(typeof e=="function"&&e.toString()===o.toString())return!0;let r,i,l;if(e&&o&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==o.length)return!1;for(i=r;i--!==0;)if(!Gs(e[i],o[i]))return!1;return!0}if(l=Object.keys(e),r=l.length,r!==Object.keys(o).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(o,l[i]))return!1;for(i=r;i--!==0;){const a=l[i];if(!(a==="_owner"&&e.$$typeof)&&!Gs(e[a],o[a]))return!1}return!0}return e!==e&&o!==o}function im(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ng(e,o){const r=im(e);return Math.round(o*r)/r}function Vu(e){const o=g.useRef(e);return Ls(()=>{o.current=e}),o}function RR(e){e===void 0&&(e={});const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l,elements:{reference:a,floating:c}={},transform:d=!0,whileElementsMounted:p,open:m}=e,[v,y]=g.useState({x:0,y:0,strategy:r,placement:o,middlewareData:{},isPositioned:!1}),[w,x]=g.useState(i);Gs(w,i)||x(i);const[R,S]=g.useState(null),[P,_]=g.useState(null),M=g.useCallback(j=>{j!==H.current&&(H.current=j,S(j))},[]),O=g.useCallback(j=>{j!==$.current&&($.current=j,_(j))},[]),N=a||R,L=c||P,H=g.useRef(null),$=g.useRef(null),Y=g.useRef(v),Z=p!=null,J=Vu(p),ae=Vu(l),me=Vu(m),he=g.useCallback(()=>{if(!H.current||!$.current)return;const j={placement:o,strategy:r,middleware:w};ae.current&&(j.platform=ae.current),SR(H.current,$.current,j).then(z=>{const K={...z,isPositioned:me.current!==!1};X.current&&!Gs(Y.current,K)&&(Y.current=K,Un.flushSync(()=>{y(K)}))})},[w,o,r,ae,me]);Ls(()=>{m===!1&&Y.current.isPositioned&&(Y.current.isPositioned=!1,y(j=>({...j,isPositioned:!1})))},[m]);const X=g.useRef(!1);Ls(()=>(X.current=!0,()=>{X.current=!1}),[]),Ls(()=>{if(N&&(H.current=N),L&&($.current=L),N&&L){if(J.current)return J.current(N,L,he);he()}},[N,L,he,J,Z]);const ve=g.useMemo(()=>({reference:H,floating:$,setReference:M,setFloating:O}),[M,O]),ne=g.useMemo(()=>({reference:N,floating:L}),[N,L]),se=g.useMemo(()=>{const j={position:r,left:0,top:0};if(!ne.floating)return j;const z=ng(ne.floating,v.x),K=ng(ne.floating,v.y);return d?{...j,transform:"translate("+z+"px, "+K+"px)",...im(ne.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:z,top:K}},[r,d,ne.floating,v.x,v.y]);return g.useMemo(()=>({...v,update:he,refs:ve,elements:ne,floatingStyles:se}),[v,he,ve,ne,se])}const ER=e=>{function o(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:i,padding:l}=typeof e=="function"?e(r):e;return i&&o(i)?i.current!=null?tg({element:i.current,padding:l}).fn(r):{}:i?tg({element:i,padding:l}).fn(r):{}}}},PR=(e,o)=>({...hR(e),options:[e,o]}),_R=(e,o)=>({...gR(e),options:[e,o]}),TR=(e,o)=>({...wR(e),options:[e,o]}),MR=(e,o)=>({...mR(e),options:[e,o]}),IR=(e,o)=>({...vR(e),options:[e,o]}),OR=(e,o)=>({...yR(e),options:[e,o]}),AR=(e,o)=>({...ER(e),options:[e,o]});var kR="Arrow",sm=g.forwardRef((e,o)=>{const{children:r,width:i=10,height:l=5,...a}=e;return E.jsx(te.svg,{...a,ref:o,width:i,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:E.jsx("polygon",{points:"0,0 30,0 15,10"})})});sm.displayName=kR;var DR=sm;function dl(e){const[o,r]=g.useState(void 0);return $e(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const a=l[0];let c,d;if("borderBoxSize"in a){const p=a.borderBoxSize,m=Array.isArray(p)?p[0]:p;c=m.inlineSize,d=m.blockSize}else c=e.offsetWidth,d=e.offsetHeight;r({width:c,height:d})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else r(void 0)},[e]),o}var Gc="Popper",[lm,nn]=He(Gc),[NR,am]=lm(Gc),um=e=>{const{__scopePopper:o,children:r}=e,[i,l]=g.useState(null);return E.jsx(NR,{scope:o,anchor:i,onAnchorChange:l,children:r})};um.displayName=Gc;var cm="PopperAnchor",dm=g.forwardRef((e,o)=>{const{__scopePopper:r,virtualRef:i,...l}=e,a=am(cm,r),c=g.useRef(null),d=ge(o,c),p=g.useRef(null);return g.useEffect(()=>{const m=p.current;p.current=i?.current||c.current,m!==p.current&&a.onAnchorChange(p.current)}),i?null:E.jsx(te.div,{...l,ref:d})});dm.displayName=cm;var Kc="PopperContent",[FR,bR]=lm(Kc),fm=g.forwardRef((e,o)=>{const{__scopePopper:r,side:i="bottom",sideOffset:l=0,align:a="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:p=!0,collisionBoundary:m=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:w=!1,updatePositionStrategy:x="optimized",onPlaced:R,...S}=e,P=am(Kc,r),[_,M]=g.useState(null),O=ge(o,q=>M(q)),[N,L]=g.useState(null),H=dl(N),$=H?.width??0,Y=H?.height??0,Z=i+(a!=="center"?"-"+a:""),J=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},ae=Array.isArray(m)?m:[m],me=ae.length>0,he={padding:J,boundary:ae.filter(jR),altBoundary:me},{refs:X,floatingStyles:ve,placement:ne,isPositioned:se,middlewareData:j}=RR({strategy:"fixed",placement:Z,whileElementsMounted:(...q)=>pR(...q,{animationFrame:x==="always"}),elements:{reference:P.anchor},middleware:[PR({mainAxis:l+Y,alignmentAxis:c}),p&&_R({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?TR():void 0,...he}),p&&MR({...he}),IR({...he,apply:({elements:q,rects:ue,availableWidth:Re,availableHeight:Ee})=>{const{width:Me,height:Ne}=ue.reference,Xe=q.floating.style;Xe.setProperty("--radix-popper-available-width",`${Re}px`),Xe.setProperty("--radix-popper-available-height",`${Ee}px`),Xe.setProperty("--radix-popper-anchor-width",`${Me}px`),Xe.setProperty("--radix-popper-anchor-height",`${Ne}px`)}}),N&&AR({element:N,padding:d}),$R({arrowWidth:$,arrowHeight:Y}),w&&OR({strategy:"referenceHidden",...he})]}),[z,K]=gm(ne),k=je(R);$e(()=>{se&&k?.()},[se,k]);const V=j.arrow?.x,ce=j.arrow?.y,de=j.arrow?.centerOffset!==0,[xe,Ce]=g.useState();return $e(()=>{_&&Ce(window.getComputedStyle(_).zIndex)},[_]),E.jsx("div",{ref:X.setFloating,"data-radix-popper-content-wrapper":"",style:{...ve,transform:se?ve.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:xe,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(" "),...j.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:E.jsx(FR,{scope:r,placedSide:z,onArrowChange:L,arrowX:V,arrowY:ce,shouldHideArrow:de,children:E.jsx(te.div,{"data-side":z,"data-align":K,...S,ref:O,style:{...S.style,animation:se?void 0:"none"}})})})});fm.displayName=Kc;var pm="PopperArrow",LR={top:"bottom",right:"left",bottom:"top",left:"r
8ight"},hm=g.forwardRef(function(o,r){const{__scopePopper:i,...l}=o,a=bR(pm,i),c=LR[a.placedSide];return E.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:E.jsx(DR,{...l,ref:r,style:{...l.style,display:"block"}})})});hm.displayName=pm;function jR(e){return e!==null}var $R=e=>({name:"transformOrigin",options:e,fn(o){const{placement:r,rects:i,middlewareData:l}=o,c=l.arrow?.centerOffset!==0,d=c?0:e.arrowWidth,p=c?0:e.arrowHeight,[m,v]=gm(r),y={start:"0%",center:"50%",end:"100%"}[v],w=(l.arrow?.x??0)+d/2,x=(l.arrow?.y??0)+p/2;let R="",S="";return m==="bottom"?(R=c?y:`${w}px`,S=`${-p}px`):m==="top"?(R=c?y:`${w}px`,S=`${i.floating.height+p}px`):m==="right"?(R=`${-p}px`,S=c?y:`${x}px`):m==="left"&&(R=`${i.floating.width+p}px`,S=c?y:`${x}px`),{data:{x:R,y:S}}}});function gm(e){const[o,r="center"]=e.split("-");return[o,r]}var ui=um,so=dm,ci=fm,di=hm,zR="Portal",lo=g.forwardRef((e,o)=>{const{container:r,...i}=e,[l,a]=g.useState(!1);$e(()=>a(!0),[]);const c=r||l&&globalThis?.document?.body;return c?jg.createPortal(E.jsx(te.div,{...i,ref:o}),c):null});lo.displayName=zR;function VR(e,o){return g.useReducer((r,i)=>o[r][i]??r,e)}var Be=e=>{const{present:o,children:r}=e,i=HR(o),l=typeof r=="function"?r({present:i.isPresent}):g.Children.only(r),a=ge(i.ref,BR(l));return typeof r=="function"||i.isPresent?g.cloneElement(l,{ref:a}):null};Be.displayName="Presence";function HR(e){const[o,r]=g.useState(),i=g.useRef(null),l=g.useRef(e),a=g.useRef("none"),c=e?"mounted":"unmounted",[d,p]=VR(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const m=Ms(i.current);a.current=d==="mounted"?m:"none"},[d]),$e(()=>{const m=i.current,v=l.current;if(v!==e){const w=a.current,x=Ms(m);e?p("MOUNT"):x==="none"||m?.display==="none"?p("UNMOUNT"):p(v&&w!==x?"ANIMATION_OUT":"UNMOUNT"),l.current=e}},[e,p]),$e(()=>{if(o){let m;const v=o.ownerDocument.defaultView??window,y=x=>{const S=Ms(i.current).includes(CSS.escape(x.animationName));if(x.target===o&&S&&(p("ANIMATION_END"),!l.current)){const P=o.style.animationFillMode;o.style.animationFillMode="forwards",m=v.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=P)})}},w=x=>{x.target===o&&(a.current=Ms(i.current))};return o.addEventListener("animationstart",w),o.addEventListener("animationcancel",y),o.addEventListener("animationend",y),()=>{v.clearTimeout(m),o.removeEventListener("animationstart",w),o.removeEventListener("animationcancel",y),o.removeEventListener("animationend",y)}}else p("ANIMATION_END")},[o,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:g.useCallback(m=>{i.current=m?getComputedStyle(m):null,r(m)},[])}}function Ms(e){return e?.animationName||"none"}function BR(e){let o=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=o&&"isReactWarning"in o&&o.isReactWarning;return r?e.ref:(o=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=o&&"isReactWarning"in o&&o.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Hu="rovingFocusGroup.onEntryFocus",UR={bubbles:!1,cancelable:!0},fi="RovingFocusGroup",[pc,mm,WR]=il(fi),[GR,ao]=He(fi,[WR]),[KR,QR]=GR(fi),vm=g.forwardRef((e,o)=>E.jsx(pc.Provider,{scope:e.__scopeRovingFocusGroup,children:E.jsx(pc.Slot,{scope:e.__scopeRovingFocusGroup,children:E.jsx(qR,{...e,ref:o})})}));vm.displayName=fi;var qR=g.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:l=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:p,onEntryFocus:m,preventScrollOnEntryFocus:v=!1,...y}=e,w=g.useRef(null),x=ge(o,w),R=ro(a),[S,P]=ht({prop:c,defaultProp:d??null,onChange:p,caller:fi}),[_,M]=g.useState(!1),O=je(m),N=mm(r),L=g.useRef(!1),[H,$]=g.useState(0);return g.useEffect(()=>{const Y=w.current;if(Y)return Y.addEventListener(Hu,O),()=>Y.removeEventListener(Hu,O)},[O]),E.jsx(KR,{scope:r,orientation:i,dir:R,loop:l,currentTabStopId:S,onItemFocus:g.useCallback(Y=>P(Y),[P]),onItemShiftTab:g.useCallback(()=>M(!0),[]),onFocusableItemAdd:g.useCallback(()=>$(Y=>Y+1),[]),onFocusableItemRemove:g.useCallback(()=>$(Y=>Y-1),[]),children:E.jsx(te.div,{tabIndex:_||H===0?-1:0,"data-orientation":i,...y,ref:x,style:{outline:"none",...e.style},onMouseDown:B(e.onMouseDown,()=>{L.current=!0}),onFocus:B(e.onFocus,Y=>{const Z=!L.current;if(Y.target===Y.currentTarget&&Z&&!_){const J=new CustomEvent(Hu,UR);if(Y.currentTarget.dispatchEvent(J),!J.defaultPrevented){const ae=N().filter(ne=>ne.focusable),me=ae.find(ne=>ne.active),he=ae.find(ne=>
vendor: 26,019 bytes, lines 8-48
8ne.id===S),ve=[me,he,...ae].filter(Boolean).map(ne=>ne.ref.current);Sm(ve,v)}}L.current=!1}),onBlur:B(e.onBlur,()=>M(!1))})})}),ym="RovingFocusGroupItem",wm=g.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:l=!1,tabStopId:a,children:c,...d}=e,p=St(),m=a||p,v=QR(ym,r),y=v.currentTabStopId===m,w=mm(r),{onFocusableItemAdd:x,onFocusableItemRemove:R,currentTabStopId:S}=v;return g.useEffect(()=>{if(i)return x(),()=>R()},[i,x,R]),E.jsx(pc.ItemSlot,{scope:r,id:m,focusable:i,active:l,children:E.jsx(te.span,{tabIndex:y?0:-1,"data-orientation":v.orientation,...d,ref:o,onMouseDown:B(e.onMouseDown,P=>{i?v.onItemFocus(m):P.preventDefault()}),onFocus:B(e.onFocus,()=>v.onItemFocus(m)),onKeyDown:B(e.onKeyDown,P=>{if(P.key==="Tab"&&P.shiftKey){v.onItemShiftTab();return}if(P.target!==P.currentTarget)return;const _=ZR(P,v.orientation,v.dir);if(_!==void 0){if(P.metaKey||P.ctrlKey||P.altKey||P.shiftKey)return;P.preventDefault();let O=w().filter(N=>N.focusable).map(N=>N.ref.current);if(_==="last")O.reverse();else if(_==="prev"||_==="next"){_==="prev"&&O.reverse();const N=O.indexOf(P.currentTarget);O=v.loop?JR(O,N+1):O.slice(N+1)}setTimeout(()=>Sm(O))}}),children:typeof c=="function"?c({isCurrentTabStop:y,hasTabStop:S!=null}):c})})});wm.displayName=ym;var YR={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function XR(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ZR(e,o,r){const i=XR(e.key,r);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return YR[i]}function Sm(e,o=!1){const r=document.activeElement;for(const i of e)if(i===r||(i.focus({preventScroll:o}),document.activeElement!==r))return}function JR(e,o){return e.map((r,i)=>e[(o+i)%e.length])}var Qc=vm,qc=wm,eE=function(e){if(typeof document>"u")return null;var o=Array.isArray(e)?e[0]:e;return o.ownerDocument.body},Ur=new WeakMap,Is=new WeakMap,Os={},Bu=0,Cm=function(e){return e&&(e.host||Cm(e.parentNode))},tE=function(e,o){return o.map(function(r){if(e.contains(r))return r;var i=Cm(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},nE=function(e,o,r,i){var l=tE(o,Array.isArray(e)?e:[e]);Os[r]||(Os[r]=new WeakMap);var a=Os[r],c=[],d=new Set,p=new Set(l),m=function(y){!y||d.has(y)||(d.add(y),m(y.parentNode))};l.forEach(m);var v=function(y){!y||p.has(y)||Array.prototype.forEach.call(y.children,function(w){if(d.has(w))v(w);else try{var x=w.getAttribute(i),R=x!==null&&x!=="false",S=(Ur.get(w)||0)+1,P=(a.get(w)||0)+1;Ur.set(w,S),a.set(w,P),c.push(w),S===1&&R&&Is.set(w,!0),P===1&&w.setAttribute(r,"true"),R||w.setAttribute(i,"true")}catch(_){console.error("aria-hidden: cannot operate on ",w,_)}})};return v(o),d.clear(),Bu++,function(){c.forEach(function(y){var w=Ur.get(y)-1,x=a.get(y)-1;Ur.set(y,w),a.set(y,x),w||(Is.has(y)||y.removeAttribute(i),Is.delete(y)),x||y.removeAttribute(r)}),Bu--,Bu||(Ur=new WeakMap,Ur=new WeakMap,Is=new WeakMap,Os={})}},fl=function(e,o,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),l=eE(e);return l?(i.push.apply(i,Array.from(l.querySelectorAll("[aria-live], script"))),nE(i,l,r,"aria-hidden")):function(){return null}},Xt=function(){return Xt=Object.assign||function(o){for(var r,i=1,l=arguments.length;i<l;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(o[a]=r[a])}return o},Xt.apply(this,arguments)};function xm(e,o){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&o.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(e);l<i.length;l++)o.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(e,i[l])&&(r[i[l]]=e[i[l]]);return r}function rE(e,o,r){if(r||arguments.length===2)for(var i=0,l=o.length,a;i<l;i++)(a||!(i in o))&&(a||(a=Array.prototype.slice.call(o,0,i)),a[i]=o[i]);return e.concat(a||Array.prototype.slice.call(o))}var js="right-scroll-bar-position",$s="width-before-scroll-bar",oE="with-scroll-bars-hidden",iE="--removed-body-scroll-bar-size";function Uu(e,o){return typeof e=="function"?e(o):e&&(e.current=o),e}function sE(e,o){var r=g.useState(function(){return{value:e,callback:o,facade:{get current(){return r.value},set current(i){var l=r.value;l!==i&&(r.value=i,r.callback(i,l))}}}})[0];return r.callback=o,r.facade}var lE=typeof window<"u"?g.useLayoutEffect:g.useEffect,rg=new WeakMap;function aE(e,o){var r=sE(null,function(i){return e.forEach(function(l){return Uu(l,i)})});return lE(function(){var i=rg.get(r);if(i){var l=new Set(i),a=new Set(e),c=r.current;l.forEach(function(d){a.has(d)||Uu(d,null)}),a.forEach(function(d){l.has(d)||Uu(d,c)})}rg.set(r,e)},[e]),r}function uE(e){return e}function cE(e,o){o===void 0&&(o=uE);var r=[],i=!1,l={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=o(a,i);return r.push(c),function(){r=r.filter(function(d){return d!==c})}},assignSyncMedium:function(a){for(i=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(d){return a(d)},filter:function(){return r}}},assignMedium:function(a){i=!0;var c=[];if(r.length){var d=r;r=[],d.forEach(a),c=r}var p=function(){var v=c;c=[],v.forEach(a)},m=function(){return Promise.resolve().then(p)};m(),r={push:function(v){c.push(v),m()},filter:function(v){return c=c.filter(v),r}}}};return l}function dE(e){e===void 0&&(e={});var o=cE(null);return o.options=Xt({async:!0,ssr:!1},e),o}var Rm=function(e){var o=e.sideCar,r=xm(e,["sideCar"]);if(!o)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=o.read();if(!i)throw new Error("Sidecar medium not found");return g.createElement(i,Xt({},r))};Rm.isSideCarExport=!0;function fE(e,o){return e.useMedium(o),Rm}var Em=dE(),Wu=function(){},pl=g.forwardRef(function(e,o){var r=g.useRef(null),i=g.useState({onScrollCapture:Wu,onWheelCapture:Wu,onTouchMoveCapture:Wu}),l=i[0],a=i[1],c=e.forwardProps,d=e.children,p=e.className,m=e.removeScrollBar,v=e.enabled,y=e.shards,w=e.sideCar,x=e.noRelative,R=e.noIsolation,S=e.inert,P=e.allowPinchZoom,_=e.as,M=_===void 0?"div":_,O=e.gapMode,N=xm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=w,H=aE([r,o]),$=Xt(Xt({},N),l);return g.createElement(g.Fragment,null,v&&g.createElement(L,{sideCar:Em,removeScrollBar:m,shards:y,noRelative:x,noIsolation:R,inert:S,setCallbacks:a,allowPinchZoom:!!P,lockRef:r,gapMode:O}),c?g.cloneElement(g.Children.only(d),Xt(Xt({},$),{ref:H})):g.createElement(M,Xt({},$,{className:p,ref:H}),d))});pl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};pl.classNames={fullWidth:$s,zeroRight:js};var pE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function hE(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var o=pE();return o&&e.setAttribute("nonce",o),e}function gE(e,o){e.styleSheet?e.styleSheet.cssText=o:e.appendChild(document.createTextNode(o))}function mE(e){var o=document.head||document.getElementsByTagName("head")[0];o.appendChild(e)}var vE=function(){var e=0,o=null;return{add:function(r){e==0&&(o=hE())&&(gE(o,r),mE(o)),e++},remove:function(){e--,!e&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null)}}},yE=function(){var e=vE();return function(o,r){g.useEffect(function(){return e.add(o),function(){e.remove()}},[o&&r])}},Pm=function(){var e=yE(),o=function(r){var i=r.styles,l=r.dynamic;return e(i,l),null};return o},wE={left:0,top:0,right:0,gap:0},Gu=function(e){return parseInt(e||"",10)||0},SE=function(e){var o=window.getComputedStyle(document.body),r=o[e==="padding"?"paddingLeft":"marginLeft"],i=o[e==="padding"?"paddingTop":"marginTop"],l=o[e==="padding"?"paddingRight":"marginRight"];return[Gu(r),Gu(i),Gu(l)]},CE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return wE;var o=SE(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:o[0],top:o[1],right:o[2],gap:Math.max(0,i-r+o[2]-o[0])}},xE=Pm(),Yr="data-scroll-locked",RE=function(e,o,r,i){var l=e.left,a=e.top,c=e.right,d=e.gap;return r===void 0&&(r="margin"),`
9  .`.concat(oE,` {
10   overflow: hidden `).concat(i,`;
11   padding-right: `).concat(d,"px ").concat(i,`;
12  }
13  body[`).concat(Yr,`] {
14    overflow: hidden `).concat(i,`;
15    overscroll-behavior: contain;
16    `).concat([o&&"position: relative ".concat(i,";"),r==="margin"&&`
17    padding-left: `.concat(l,`px;
18    padding-top: `).concat(a,`px;
19    padding-right: `).concat(c,`px;
20    margin-left:0;
21    margin-top:0;
22    margin-right: `).concat(d,"px ").concat(i,`;
23    `),r==="padding"&&"padding-right: ".concat(d,"px ").concat(i,";")].filter(Boolean).join(""),`
24  }
25  
26  .`).concat(js,` {
27    right: `).concat(d,"px ").concat(i,`;
28  }
29  
30  .`).concat($s,` {
31    margin-right: `).concat(d,"px ").concat(i,`;
32  }
33  
34  .`).concat(js," .").concat(js,` {
35    right: 0 `).concat(i,`;
36  }
37  
38  .`).concat($s," .").concat($s,` {
39    margin-right: 0 `).concat(i,`;
40  }
41  
42  body[`).concat(Yr,`] {
43    `).concat(iE,": ").concat(d,`px;
44  }
45`)},og=function(){var e=parseInt(document.body.getAttribute(Yr)||"0",10);return isFinite(e)?e:0},EE=function(){g.useEffect(function(){return document.body.setAttribute(Yr,(og()+1).toString()),function(){var e=og()-1;e<=0?document.body.removeAttribute(Yr):document.body.setAttribute(Yr,e.toString())}},[])},PE=function(e){var o=e.noRelative,r=e.noImportant,i=e.gapMode,l=i===void 0?"margin":i;EE();var a=g.useMemo(function(){return CE(l)},[l]);return g.createElement(xE,{styles:RE(a,!o,l,r?"":"!important")})},hc=!1;if(typeof window<"u")try{var As=Object.defineProperty({},"passive",{get:function(){return hc=!0,!0}});window.addEventListener("test",As,As),window.removeEventListener("test",As,As)}catch{hc=!1}var Wr=hc?{passive:!1}:!1,_E=function(e){return e.tagName==="TEXTAREA"},_m=function(e,o){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[o]!=="hidden"&&!(r.overflowY===r.overflowX&&!_E(e)&&r[o]==="visible")},TE=function(e){return _m(e,"overflowY")},ME=function(e){return _m(e,"overflowX")},ig=function(e,o){var r=o.ownerDocument,i=o;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var l=Tm(e,i);if(l){var a=Mm(e,i),c=a[1],d=a[2];if(c>d)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},IE=function(e){var o=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[o,r,i]},OE=function(e){var o=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[o,r,i]},Tm=function(e,o){return e==="v"?TE(o):ME(o)},Mm=function(e,o){return e==="v"?IE(o):OE(o)},AE=function(e,o){return e==="h"&&o==="rtl"?-1:1},kE=function(e,o,r,i,l){var a=AE(e,window.getComputedStyle(o).direction),c=a*i,d=r.target,p=o.contains(d),m=!1,v=c>0,y=0,w=0;do{if(!d)break;var x=Mm(e,d),R=x[0],S=x[1],P=x[2],_=S-P-a*R;(R||_)&&Tm(e,d)&&(y+=_,w+=R);var M=d.parentNode;d=M&&M.nodeType===Node.DOCUMENT_FRAGMENT_NODE?M.host:M}while(!p&&d!==document.body||p&&(o.contains(d)||o===d));return(v&&Math.abs(y)<1||!v&&Math.abs(w)<1)&&(m=!0),m},ks=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sg=function(e){return[e.deltaX,e.deltaY]},lg=function(e){return e&&"current"in e?e.current:e},DE=function(e,o){return e[0]===o[0]&&e[1]===o[1]},NE=function(e){return`
46  .block-interactivity-`.concat(e,` {pointer-events: none;}
47  .allow-interactivity-`).concat(e,` {pointer-events: all;}
48`)},FE=0,Gr=[];function bE(e){var o=g.useRef([]),r=g.useRef([0,0]),i=g.useRef(),l=g.useState(FE++)[0],a=g.useState(Pm)[0],c=g.useRef(e);g.useEffect(function(){c.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(l));var S=rE([e.lockRef.current],(e.shards||[]).map(lg),!0).filter(Boolean);return S.forEach(function(P){return P.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),S.forEach(function(P){return P.classList.remove("allow-interactivity-".concat(l))})}}},[e.inert,e.lockRef.current,e.shards]);var d=g.useCallback(function(S,P){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!c.current.allowPinchZoom;var _=ks(S),M=r.current,O="deltaX"in S?S.deltaX:M[0]-_[0],N="deltaY"in S?S.deltaY:M[1]-_[1],L,H=S.target,$=Math.abs(O)>Math.abs(N)?"h":"v";if("touches"in S&&$==="h"&&H.type==="range")return!1;var Y=ig($,H);if(!Y)return!0;if(Y?L=$:(L=$==="v"?"h":"v",Y=ig($,H)),!Y)return!1;if(!i.current&&"changedTouches"in S&&(O||N)&&(i.current=L),!L)return!0;var Z=i.current||L;return kE(Z,P,S,Z==="h"?O:N)},[]),p=g.useCallback(function(S){var P=S;if(!(!Gr.length||Gr[Gr.length-1]!==a)){var _="deltaY"in P?sg(P):ks(P),M=o.current.filter(function(L){return L.name===P.type&&(L.target===P.target||P.target===L.shadowParent)&&DE(L.delta,_)})[0];if(M&&M.should){P.cancelable&&P.preventDefault();return}if(!M){var O=(c.current.shards||[]).map(lg).filter(Boolean).filter(function(L){return L.contains(P.target)}),N=O.length>0?d(P,O[0]):!c.current.noIsolation;N&&P.cancelable&&P.preventDefault()}}},[]),m=g.useCallback(function(S,P,_,M){var O={name:S,delta:P,target:_,should:M,shadowParent:LE(_)};o.current.push(O),setTimeout(function(){o.current=o.current.filter(function(N){return N!==O})},1)},[]),v=g.useCallback(function(S){r.current=ks(S),i.current=void 0},[]),y=g.useCallback(function(S){m(S.type,sg(S),S.target,d(S,e.lockRef.current))},[]),w=g.useCallback(function(S){m(S.type,ks(S),S.target,d(S,e.lockRef.current))},[]);g.useEffect(function(){return Gr.push(a),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:w}),document.addEventListener("wheel",p,Wr),document.addEventListener("touchmove",p,Wr),document.addEventListener("touchstart",v,Wr),function(){Gr=Gr.filter(function(S){return S!==a}),document.removeEventListener("wheel",p,Wr),document.removeEventListener("touchmove",p,Wr),document.removeEventListener("touchstart",v,Wr)}},[]);var x=e.removeScrollBar,R=e.inert;return g.createElement(g.Fragment,null,R?g.createElement(a,{styles:NE(l)}):null,x?g.createElement(PE,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function LE(e){for(var o=null;e!==null;)e instanceof ShadowRoot&&(o=e.host,e=e.host),e=e.parentNode;return o}const jE=fE(Em,bE);var pi=g.forwardRef(function(e,o){return g.createElement(pl,Xt({},e,{ref:o,sideCar:jE}))});pi.classNames=pl.classNames;var gc=["Enter"," "],$E=["ArrowDown","PageUp","Home"],Im=["ArrowUp","PageDown","End"],zE=[...$E,...Im],VE={ltr:[...gc,"ArrowRight"],rtl:[...gc,"ArrowLeft"]},HE={ltr:["ArrowLeft"],rtl:["ArrowRight"]},hi="Menu",[oi,BE,UE]=il(hi),[gr,Om]=He(hi,[UE,nn,ao]),hl=nn(),Am=ao(),[WE,mr]=gr(hi),[GE,gi]=gr(hi),km=e=>{const{__scopeMenu:o,open:r=!1,children:i,dir:l,onOpenChange:a,modal:c=!0}=e,d=hl(o),[p,m]=g.useState(null),v=g.useRef(!1),y=je(a),w=ro(l);return g.useEffect(()=>{const x=()=>{v.current=!0,document.addEventListener("pointerdown",R,{capture:!0,once:!0}),document.addEventListener("pointermove",R,{capture:!0,once:!0})},R=()=>v.current=!1;return document.addEventListener("keydown",x,{capture:!0}),()=>{document.removeEventListener("keydown",x,{capture:!0}),document.removeEventListener("pointerdown",R,{capture:!0}),document.removeEventListener("pointermove",R,{capture:!0})}},[]),E.jsx(ui,{...d,children:E.jsx(WE,{scope:o,open:r,onOpenChange:y,content:p,onContentChange:m,children:E.jsx(GE,{scope:o,onClose:g.useCallback(()=>y(!1),[y]),isUsingKeyboardRef:v,dir:w,modal:c,children:i})})})};km.displayName=hi;var KE="MenuAnchor",Yc=g.forwardRef((e,o)=>{const{__scopeMenu:r,...i}=e,l=hl(r);return E.jsx(so,{...l,...i,ref:o})});Yc.displayName=KE;var Xc="MenuPortal",[QE,Dm]=gr(Xc,{forceMount:void 0}),Nm=e=>{const{__scopeMenu:o,forceMount:r,children:i,container:l}=e,a=mr(Xc,o);return E.jsx(QE,{scope:o,forceMount:r,children:E.jsx(Be,{present:r||a.open,children:E.jsx(lo,{asChild:!0,container:l,children:i})})})};Nm.displayName=Xc;var Ot="MenuContent",[qE,Zc]=gr(Ot),Fm=g.forwardRef((e,o)=>{const r=Dm(Ot,e.__scopeMenu),{forceMount:i=r.forceMount,...l}=e,a=mr(Ot,e.__scopeMenu),c=gi(Ot,e.__scopeMenu);return E.jsx(oi.Provider,{scope:e.__scopeMenu,children:E.jsx(Be,{present:i||a.open,children:E.jsx(oi.Slot,{scope:e.__scopeMenu,children:c.modal?E.jsx(YE,{...l,ref:o}):E.jsx(XE,{...l,ref:o})})})})}),YE=g.forwardRef((e,o)=>{const r=mr(Ot,e.__scopeMenu),i=g.useRef(null),l=ge(o,i);return g.useEffect(()=>{const a=i.current;if(a)return fl(a)},[]),E.jsx(Jc,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:B(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),XE=g.forwardRef((e,o)=>{const r=mr(Ot,e.__scopeMenu);return E.jsx(Jc,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),ZE=zn("MenuContent.ScrollLock"),Jc=g.forwardRef((e,o)=>{const{__scopeMenu:r,loop:i=!1,trapFocus:l,onOpenAutoFocus:a,onCloseAutoFocus:c,disableOutsidePointerEvents:d,onEntryFocus:p,onEscapeKeyDown:m,onPointerDownOutside:v,onFocusOutside:y,onInteractOutside:w,onDismiss:x,disableOutsideScroll:R,...S}=e,P=mr(Ot,r),_=gi(Ot,r),M=hl(r),O=Am(r),N=BE(r),[L,H]=g.useState(null),$=g.useRef(null),Y=ge(o,$,P.onContentChange),Z=g.useRef(0),J=g.useRef(""),ae=g.useRef(0),me=g.useRef(null),he=g.useRef("right"),X=g.useRef(0),ve=R?pi:g.Fragment,ne=R?{as:ZE,allowPinchZoom:!0}:void 0,se=z=>{const K=J.current+z,k=N().filter(q=>!q.disabled),V=document.activeElement,ce=k.find(q=>q.ref.current===V)?.textValue,de=k.map(q=>q.textValue),xe=cP(de,K,ce),Ce=k.find(q=>q.textValue===xe)?.ref.current;(function q(ue){J.current=ue,window.clearTimeout(Z.current),ue!==""&&(Z.current=window.setTimeout(()=>q(""),1e3))})(K),Ce&&setTimeout(()=>Ce.focus())};g.useEffect(()=>()=>window.clearTimeout(Z.current),[]),sl();const j=g.useCallback(z=>he.current===me.current?.side&&fP(z,me.current?.area),[]);return E.jsx(qE,{scope:r,searchRef:J,onItemEnter:g.useCallback(z=>{j(z)&&z.preventDefault()},[j]),onItemLeave:g.useCallback(z=>{j(z)||($.current?.focus(),H(null))},[j]),onTriggerLeave:g.useCallback(z=>{j(z)&&z.preventDefault()},[j]),pointerGraceTimerRef:ae,onPointerGraceIntentChange:g.useCallback(z=>{me.current=z},[]),children:E.jsx(ve,{...ne,children:E.jsx(li,{asChild:!0,trapped:l,onMountAutoFocus:B(a,z=>{z.preventDefault(),$.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:E.jsx(Wn,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:m,onPointerDownOutside:v,onFocusOutside:y,onInteractOutside:w,onDismiss:x,children:E.jsx(Qc,{asChild:!0,...O,dir:_.dir,orientation:"vertical",loop:i,currentTabStopId:L,onCurrentTabStopIdChange:H,onEntryFocus:B(p,z=>{_.isUsingKeyboardRef.current||z.preventDefault()}),preventScrollOnEntryFocus:!0,children:E.jsx(ci,{role:"menu","aria-orientation":"vertical","data-state":Xm(P.open),"data-radix-menu-content":"",dir:_.dir,...M,...S,ref:Y,style:{outline:"none",...S.style},onKeyDown:B(S.onKeyDown,z=>{const k=z.target.closest("[data-radix-menu-content]")===z.currentTarget,V=z.ctrlKey||z.altKey||z.metaKey,ce=z.key.length===1;k&&(z.key==="Tab"&&z.preventDefault(),!V&&ce&&se(z.key));const de=$.current;if(z.target!==de||!zE.includes(z.key))return;z.preventDefault();const Ce=N().filter(q=>!q.disabled).map(q=>q.ref.current);Im.includes(z.key)&&Ce.reverse(),aP(Ce)}),onBlur:B(e.onBlur,z=>{z.currentTarget.contains(z.target)||(window.clearTimeout(Z.current),J.current="")}),onPointerMove:B(e.onPointerMove,ii(z=>{const K=z.target,k=X.current!==z.clientX;if(z.currentTarget.contains(K)&&k){const V=z.clientX>X.current?"right":"left";he.current=V,X.current=z.clientX}}))})})})})})})});Fm.displayName=Ot;var JE="MenuGroup",ed=g.forwardRef((e,o)=>{const{__scopeMenu:r,...i}=e;return E.jsx(te.div,{role:"group",...i,ref:o})});ed.displayName=JE;var eP="MenuLabel",bm=g.forwardRef((e,o)=>{const{__scopeMenu:r,...i}=e;return E.jsx(te.div,{...i,ref:o})});bm.displayName=eP;var Ks="MenuItem",ag="menu.itemSelect",gl=g.forwardRef((e,o)=>{const{disabled:r=!1,onSelect:i,...l}=e,a=g.useRef(null),c=gi(Ks,e.__scopeMenu),d=Zc(Ks,e.__scopeMenu),p=ge(o,a),m=g.useRef(!1),v=()=>{const y=a.current;if(!r&&y){const w=new CustomEvent(ag,{bubbles:!0,cancelable:!0});y.addEventListener(ag,x=>i?.(x),{once:!0}),jc(y,w),w.defaultPrevented?m.current=!1:c.onClose()}};return E.jsx(Lm,{...l,ref:p,disabled:r,onClick:B(e.onClick,v),onPointerDown:y=>{e.onPointerDown?.(y),m.current=!0},onPointerUp:B(e.onPointerUp,y=>{m.current||y.currentTarget?.click()}),onKeyDown:B(e.onKeyDown,y=>{const w=d.searchRef.current!=="";r||w&&y.key===" "||gc.includes(y.key)&&(y.currentTarget.click(),y.preventDefault())})})});gl.displayName=Ks;var Lm=g.forwardRef((e,o)=>{const{__scopeMenu:r,disabled:i=!1,textValue:l,...a}=e,c=Zc(Ks,r),d=Am(r),p=g.useRef(null),m=ge(o,p),[v,y]=g.useState(!1),[w,x]=g.useState("");return g.useEffect(()=>{const R=p.current;R&&x((R.textContent??"").trim())},[a.children]),E.jsx(oi.ItemSlot,{scope:r,disabled:i,textValue:l??w,children:E.jsx(qc,{asChild:!0,...d,focusable:!i,children:E.jsx(te.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...a,ref:m,onPointerMove:B(e.onPointerMove,ii(R=>{i?c.onItemLeave(R):(c.onItemEnter(R),R.defaultPrevented||R.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:B(e.onPointerLeave,ii(R=>c.onItemLeave(R))),onFocus:B(e.onFocus,()=>y(!0)),onBlur:B(e.onBlur,()=>y(!1))})})})}),tP="MenuCheckboxItem",jm=g.forwardRef((e,o)=>{const{checked:r=!1,onCheckedChange:i,...l}=e;return E.jsx(Bm,{scope:e.__scopeMenu,checked:r,children:E.jsx(gl,{role:"menuitemcheckbox","aria-checked":Qs(r)?"mixed":r,...l,ref:o,"data-state":nd(r),onSelect:B(l.onSelect,()=>i?.(Qs(r)?!0:!r),{checkForDefaultPrevented:!1})})})});jm.displayName=tP;var $m="MenuRadioGroup",[nP,rP]=gr($m,{value:void 0,onValueChange:()=>{}}),zm=g.forwardRef((e,o)=>{const{value:r,onValueChange:i,...l}=e,a=je(i);return E.jsx(nP,{scope:e.__scopeMenu,value:r,onValueChange:a,children:E.jsx(ed,{...l,ref:o})})});zm.displayName=$m;var Vm="MenuRadioItem",Hm=g.forwardRef((e,o)=>{const{value:r,...i}=e,l=rP(Vm,e.__scopeMenu),a=r===l.value;return E.jsx(Bm,{scope:e.__scopeMenu,checked:a,children:E.jsx(gl,{role:"menuitemradio","aria-checked":a,...i,ref:o,"data-state":nd(a),onSelect:B(i.onSelect,()=>l.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});Hm.displayName=Vm;var td="MenuItemIndicator",[Bm,oP]=gr(td,{checked:!1}),Um=g.forwardRef((e,o)=>{const{__scopeMenu:r,forceMount:i,...l}=e,a=oP(td,r);return E.jsx(Be,{present:i||Qs(a.checked)||a.checked===!0,children:E.jsx(te.span,{...l,ref:o,"data-state":nd(a.checked)})})});Um.displayName=td;var iP="MenuSeparator",Wm=g.forwardRef((e,o)=>{const{__scopeMenu:r,...i}=e;return E.jsx(te.div,{role:"separator","aria-orientation":"horizontal",...i,ref:o})});Wm.displayName=iP;var sP="MenuArrow",Gm=g.forwardRef((e,o)=>{const{__scopeMenu:r,...i}=e,l=hl(r);return E.jsx(di,{...l,...i,ref:o})});Gm.displayName=sP;var lP="MenuSub",[WM,Km]=gr(lP),Zo="MenuSubTrigger",Qm=g.forwardRef((e,o)=>{const r=mr(Zo,e.__scopeMenu),i=gi(Zo,e.__scopeMenu),l=Km(Zo,e.__scopeMenu),a=Zc(Zo,e.__scopeMenu),c=g.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:p}=a,m={__scopeMenu:e.__scopeMenu},v=g.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return g.useEffect(()=>v,[v]),g.useEffect(()=>{const y=d.current;return()=>{window.clearTimeout(y),p(null)}},[d,p]),E.jsx(Yc,{asChild:!0,...m,children:E.jsx(Lm,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":l.contentId,"data-state":Xm(r.open),...e,ref:ol(o,l.onTriggerChange),onClick:y=>{e.onClick?.(y),!(e.disabled||y.defaultPrevented)&&(y.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:B(e.onPointerMove,ii(y=>{a.onItemEnter(y),!y.defaultPrevented&&!e.disabled&&!r.open&&!c.current&&(a.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{r.onOpenChange(!0),v()},100))})),onPointerLeave:B(e.onPointerLeave,ii(y=>{v();const w=r.content?.getBoundingClientRect();if(w){const x=r.content?.dataset.side,R=x==="right",S=R?-5:5,P=w[R?"left":"right"],_=w[R?"right":"left"];a.onPointerGraceIntentChange({area:[{x:y.clientX+S,y:y.clientY},{x:P,y:w.top},{x:_,y:w.top},{x:_,y:w.bottom},{x:P,y:w.bottom}],side:x}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(y),y.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:B(e.onKeyDown,y=>{const w=a.searchRef.current!=="";e.disabled||w&&y.key===" "||VE[i.dir].includes(y.key)&&(r.onOpenChange(!0),r.content?.focus(),y.preventDefault())})})})});Qm.displayName=Zo;var qm="MenuSubContent",Ym=g.forwardRef((e,o)=>{const r=Dm(Ot,e.__scopeMenu),{forceMount:i=r.forceMount,...l}=e,a=mr(Ot,e.__scopeMenu),c=gi(Ot,e.__scopeMenu),d=Km(qm,e.__scopeMenu),p=g.useRef(null),m=ge(o,p);return E.jsx(oi.Provider,{scope:e.__scopeMenu,children:E.jsx(Be,{present:i||a.open,children:E.jsx(oi.Slot,{scope:e.__scopeMenu,children:E.jsx(Jc,{id:d.contentId,"aria-labelledby":d.triggerId,...l,ref:m,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:v=>{c.isUsingKeyboardRef.current&&p.current?.focus(),v.preventDefault()},onCloseAutoFocus:v=>v.preventDefault(),onFocusOutside:B(e.onFocusOutside,v=>{v.target!==d.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:B(e.onEscapeKeyDown,v=>{c.onClose(),v.preventDefault()}),onKeyDown:B(e.onKeyDown,v=>{const y=v.currentTarget.contains(v.target),w=HE[c.dir].includes(v.key);y&&w&&(a.onOpenChange(!1),d.trigger?.focus(),v.preventDefault())})})})})})});Ym.displayName=qm;function Xm(e){return e?"open":"closed"}function Qs(e){return e==="indeterminate"}
48function nd(e){return Qs(e)?"indeterminate":e?"checked":"unchecked"}function aP(e){const o=document.activeElement;for(const r of e)if(r===o||(r.focus(),document.activeElement!==o))return}function uP(e,o){return e.map((r,i)=>e[(o+i)%e.length])}function cP(e,o,r){const l=o.length>1&&Array.from(o).every(m=>m===o[0])?o[0]:o,a=r?e.indexOf(r):-1;let c=uP(e,Math.max(a,0));l.length===1&&(c=c.filter(m=>m!==r));const p=c.find(m=>m.toLowerCase().startsWith(l.toLowerCase()));return p!==r?p:void 0}function dP(e,o){const{x:r,y:i}=e;let l=!1;for(let a=0,c=o.length-1;a<o.length;c=a++){const d=o[a],p=o[c],m=d.x,v=d.y,y=p.x,w=p.y;v>i!=w>i&&r<(y-m)*(i-v)/(w-v)+m&&(l=!l)}return l}function fP(e,o){if(!o)return!1;const r={x:e.clientX,y:e.clientY};return dP(r,o)}function ii(e){return o=>o.pointerType==="mouse"?e(o):void 0}var pP=km,hP=Yc,gP=Nm,mP=Fm,vP=ed,yP=bm,wP=gl,SP=jm,CP=zm,xP=Hm,RP=Um,EP=Wm,PP=Gm,_P=Qm,TP=Ym,ml="DropdownMenu",[MP]=He(ml,[Om]),lt=Om(),[IP,Zm]=MP(ml),Jm=e=>{const{__scopeDropdownMenu:o,children:r,dir:i,open:l,defaultOpen:a,onOpenChange:c,modal:d=!0}=e,p=lt(o),m=g.useRef(null),[v,y]=ht({prop:l,defaultProp:a??!1,onChange:c,caller:ml});return E.jsx(IP,{scope:o,triggerId:St(),triggerRef:m,contentId:St(),open:v,onOpenChange:y,onOpenToggle:g.useCallback(()=>y(w=>!w),[y]),modal:d,children:E.jsx(pP,{...p,open:v,onOpenChange:y,dir:i,modal:d,children:r})})};Jm.displayName=ml;var ev="DropdownMenuTrigger",tv=g.forwardRef((e,o)=>{const{__scopeDropdownMenu:r,disabled:i=!1,...l}=e,a=Zm(ev,r),c=lt(r);return E.jsx(hP,{asChild:!0,...c,children:E.jsx(te.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...l,ref:ol(o,a.triggerRef),onPointerDown:B(e.onPointerDown,d=>{!i&&d.button===0&&d.ctrlKey===!1&&(a.onOpenToggle(),a.open||d.preventDefault())}),onKeyDown:B(e.onKeyDown,d=>{i||(["Enter"," "].includes(d.key)&&a.onOpenToggle(),d.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(d.key)&&d.preventDefault())})})})});tv.displayName=ev;var OP="DropdownMenuPortal",nv=e=>{const{__scopeDropdownMenu:o,...r}=e,i=lt(o);return E.jsx(gP,{...i,...r})};nv.displayName=OP;var rv="DropdownMenuContent",ov=g.forwardRef((e,o)=>{const{__scopeDropdownMenu:r,...i}=e,l=Zm(rv,r),a=lt(r),c=g.useRef(!1);return E.jsx(mP,{id:l.contentId,"aria-labelledby":l.triggerId,...a,...i,ref:o,onCloseAutoFocus:B(e.onCloseAutoFocus,d=>{c.current||l.triggerRef.current?.focus(),c.current=!1,d.preventDefault()}),onInteractOutside:B(e.onInteractOutside,d=>{const p=d.detail.originalEvent,m=p.button===0&&p.ctrlKey===!0,v=p.button===2||m;(!l.modal||v)&&(c.current=!0)}),style:{...e.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)"}})});ov.displayName=rv;var AP="DropdownMenuGroup",kP=g.forwardRef((e,o)=>{const{__scopeDropdownMenu:r,...i}=e,l=lt(r);return E.jsx(vP,{...l,...i,ref:o})});kP.displayName=AP;var DP="DropdownMenuLabel",iv=g.forwardRef((e,o)=>{const{__scopeDropdownMenu:r,...i}=e,l=lt(r);return E.jsx(yP,{...l,...i,ref:o})});iv.displayName=DP;var NP="DropdownMenuItem",sv=g.forwardRef((e,o)=>{const{__scopeDropdownMenu:r,...i}=e,l=lt(r);return E.jsx(wP,{...l,...i,ref:o})});sv.displayName=NP;var FP="DropdownMenuCheckboxItem",lv=g.forwardRef((e,o)=>{const{__scopeDropdownMenu:r,...i}=e,l=lt(r);return E.jsx(SP,{...l,...i,ref:o})});lv.displayName=FP;var bP="DropdownMenuRadioGroup",LP=g.forwardRef((e,o)=>{const{__scopeDropdownMenu:r,...i}=e,l=lt(r);return E.jsx(CP,{...l,...i,ref:o})});LP.displayName=bP;var jP="DropdownMenuRadioItem",av=g.forwardRef((e,o)=>{const{__scopeDropdownMenu:r,...i}=e,l=lt(r);return E.jsx(xP,{...l,...i,ref:o})});av.displayName=jP;var $P="DropdownMenuItemIndicator",uv=g.forwardRef((e,o)=>{const{__scopeDropdownMenu:r,...i}=e,l=lt(r);return E.jsx(RP,{...l,...i,ref:o})});uv.displayName=$P;var zP="DropdownMenuSeparator",cv=g.forwardRef((e,o)=>{const{__scopeDropdownMenu:r,...i}=e,l=lt(r);return E.jsx(EP,{...l,...i,ref:o})});cv.displayName=zP;var VP="DropdownMenuArrow",HP=g.forwardRef((e,o)=>{const{__scopeDropdownMenu:r,...i}=e,l=lt(r);return E.jsx(PP,{...l,...i,ref:o})});HP.displayName=VP;var BP="DropdownMenuSubTrigger",dv=g.forwardRef((e,o)=>{const{__scopeDropdownMenu:r,...i}=e,l=lt(r);return E.jsx(_P,{...l,...i,ref:o})});dv.displayName=BP;var UP="DropdownMenuSubContent",fv=g.forwardRef((e,o)=>{const{__scopeDropdownMenu:r,...i}=e,l=lt(r);return E.jsx(TP,{...l,...i,ref:o,style:{...e.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)"}})});fv.displayName=UP;var GM=Jm,KM=tv,QM=nv,qM=ov,YM=iv,XM=sv,ZM=lv,JM=av,eI=uv,tI=cv,nI=dv,rI=fv;function jn(e,o){return typeof e=="function"?e(o):e}function xt(e,o){return r=>{o.setState(i=>({...i,[e]:jn(r,i[e])}))}}function vl(e){return e instanceof Function}function WP(e){return Array.isArray(e)&&e.every(o=>typeof o=="number")}function GP(e,o){const r=[],i=l=>{l.forEach(a=>{r.push(a);const c=o(a);c!=null&&c.length&&i(c)})};return i(e),r}function ye(e,o,r){let i=[],l;return a=>{let c;r.key&&r.debug&&(c=Date.now());const d=e(a);if(!(d.length!==i.length||d.some((v,y)=>i[y]!==v)))return l;i=d;let m;if(r.key&&r.debug&&(m=Date.now()),l=o(...d),r==null||r.onChange==null||r.onChange(l),r.key&&r.debug&&r!=null&&r.debug()){const v=Math.round((Date.now()-c)*100)/100,y=Math.round((Date.now()-m)*100)/100,w=y/16,x=(R,S)=>{for(R=String(R);R.length<S;)R=" "+R;return R};console.info(`%c⏱ ${x(y,5)} /${x(v,5)} ms`,`
49            font-size: .6rem;
50            font-weight: bold;
51            color: hsl(${Math.max(0,Math.min(120-120*w,120))}deg 100% 31%);`,r?.key)}return l}}function we(e,o,r,i){return{debug:()=>{var l;return(l=e?.debugAll)!=null?l:e[o]},key:!1,onChange:i}}function KP(e,o,r,i){const l=()=>{var c;return(c=a.getValue())!=null?c:e.options.renderFallbackValue},a={id:`${o.id}_${r.id}`,row:o,column:r,getValue:()=>
vendor: 48,480 bytes, line 51
51o.getValue(i),renderValue:l,getContext:ye(()=>[e,r,o,a],(c,d,p,m)=>({table:c,column:d,row:p,cell:m,getValue:m.getValue,renderValue:m.renderValue}),we(e.options,"debugCells"))};return e._features.forEach(c=>{c.createCell==null||c.createCell(a,r,o,e)},{}),a}function QP(e,o,r,i){var l,a;const d={...e._getDefaultColumnDef(),...o},p=d.accessorKey;let m=(l=(a=d.id)!=null?a:p?typeof String.prototype.replaceAll=="function"?p.replaceAll(".","_"):p.replace(/\./g,"_"):void 0)!=null?l:typeof d.header=="string"?d.header:void 0,v;if(d.accessorFn?v=d.accessorFn:p&&(p.includes(".")?v=w=>{let x=w;for(const S of p.split(".")){var R;x=(R=x)==null?void 0:R[S]}return x}:v=w=>w[d.accessorKey]),!m)throw new Error;let y={id:`${String(m)}`,accessorFn:v,parent:i,depth:r,columnDef:d,columns:[],getFlatColumns:ye(()=>[!0],()=>{var w;return[y,...(w=y.columns)==null?void 0:w.flatMap(x=>x.getFlatColumns())]},we(e.options,"debugColumns")),getLeafColumns:ye(()=>[e._getOrderColumnsFn()],w=>{var x;if((x=y.columns)!=null&&x.length){let R=y.columns.flatMap(S=>S.getLeafColumns());return w(R)}return[y]},we(e.options,"debugColumns"))};for(const w of e._features)w.createColumn==null||w.createColumn(y,e);return y}const ot="debugHeaders";function ug(e,o,r){var i;let a={id:(i=r.id)!=null?i:o.id,column:o,index:r.index,isPlaceholder:!!r.isPlaceholder,placeholderId:r.placeholderId,depth:r.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const c=[],d=p=>{p.subHeaders&&p.subHeaders.length&&p.subHeaders.map(d),c.push(p)};return d(a),c},getContext:()=>({table:e,header:a,column:o})};return e._features.forEach(c=>{c.createHeader==null||c.createHeader(a,e)}),a}const qP={createTable:e=>{e.getHeaderGroups=ye(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(o,r,i,l)=>{var a,c;const d=(a=i?.map(y=>r.find(w=>w.id===y)).filter(Boolean))!=null?a:[],p=(c=l?.map(y=>r.find(w=>w.id===y)).filter(Boolean))!=null?c:[],m=r.filter(y=>!(i!=null&&i.includes(y.id))&&!(l!=null&&l.includes(y.id)));return Ds(o,[...d,...m,...p],e)},we(e.options,ot)),e.getCenterHeaderGroups=ye(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(o,r,i,l)=>(r=r.filter(a=>!(i!=null&&i.includes(a.id))&&!(l!=null&&l.includes(a.id))),Ds(o,r,e,"center")),we(e.options,ot)),e.getLeftHeaderGroups=ye(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(o,r,i)=>{var l;const a=(l=i?.map(c=>r.find(d=>d.id===c)).filter(Boolean))!=null?l:[];return Ds(o,a,e,"left")},we(e.options,ot)),e.getRightHeaderGroups=ye(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(o,r,i)=>{var l;const a=(l=i?.map(c=>r.find(d=>d.id===c)).filter(Boolean))!=null?l:[];return Ds(o,a,e,"right")},we(e.options,ot)),e.getFooterGroups=ye(()=>[e.getHeaderGroups()],o=>[...o].reverse(),we(e.options,ot)),e.getLeftFooterGroups=ye(()=>[e.getLeftHeaderGroups()],o=>[...o].reverse(),we(e.options,ot)),e.getCenterFooterGroups=ye(()=>[e.getCenterHeaderGroups()],o=>[...o].reverse(),we(e.options,ot)),e.getRightFooterGroups=ye(()=>[e.getRightHeaderGroups()],o=>[...o].reverse(),we(e.options,ot)),e.getFlatHeaders=ye(()=>[e.getHeaderGroups()],o=>o.map(r=>r.headers).flat(),we(e.options,ot)),e.getLeftFlatHeaders=ye(()=>[e.getLeftHeaderGroups()],o=>o.map(r=>r.headers).flat(),we(e.options,ot)),e.getCenterFlatHeaders=ye(()=>[e.getCenterHeaderGroups()],o=>o.map(r=>r.headers).flat(),we(e.options,ot)),e.getRightFlatHeaders=ye(()=>[e.getRightHeaderGroups()],o=>o.map(r=>r.headers).flat(),we(e.options,ot)),e.getCenterLeafHeaders=ye(()=>[e.getCenterFlatHeaders()],o=>o.filter(r=>{var i;return!((i=r.subHeaders)!=null&&i.length)}),we(e.options,ot)),e.getLeftLeafHeaders=ye(()=>[e.getLeftFlatHeaders()],o=>o.filter(r=>{var i;return!((i=r.subHeaders)!=null&&i.length)}),we(e.options,ot)),e.getRightLeafHeaders=ye(()=>[e.getRightFlatHeaders()],o=>o.filter(r=>{var i;return!((i=r.subHeaders)!=null&&i.length)}),we(e.options,ot)),e.getLeafHeaders=ye(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(o,r,i)=>{var l,a,c,d,p,m;return[...(l=(a=o[0])==null?void 0:a.headers)!=null?l:[],...(c=(d=r[0])==null?void 0:d.headers)!=null?c:[],...(p=(m=i[0])==null?void 0:m.headers)!=null?p:[]].map(v=>v.getLeafHeaders()).flat()},we(e.options,ot))}};function Ds(e,o,r,i){var l,a;let c=0;const d=function(w,x){x===void 0&&(x=1),c=Math.max(c,x),w.filter(R=>R.getIsVisible()).forEach(R=>{var S;(S=R.columns)!=null&&S.length&&d(R.columns,x+1)},0)};d(e);let p=[];const m=(w,x)=>{const R={depth:x,id:[i,`${x}`].filter(Boolean).join("_"),headers:[]},S=[];w.forEach(P=>{const _=[...S].reverse()[0],M=P.column.depth===R.depth;let O,N=!1;if(M&&P.column.parent?O=P.column.parent:(O=P.column,N=!0),_&&_?.column===O)_.subHeaders.push(P);else{const L=ug(r,O,{id:[i,x,O.id,P?.id].filter(Boolean).join("_"),isPlaceholder:N,placeholderId:N?`${S.filter(H=>H.column===O).length}`:void 0,depth:x,index:S.length});L.subHeaders.push(P),S.push(L)}R.headers.push(P),P.headerGroup=R}),p.push(R),x>0&&m(S,x-1)},v=o.map((w,x)=>ug(r,w,{depth:c,index:x}));m(v,c-1),p.reverse();const y=w=>w.filter(R=>R.column.getIsVisible()).map(R=>{let S=0,P=0,_=[0];R.subHeaders&&R.subHeaders.length?(_=[],y(R.subHeaders).forEach(O=>{let{colSpan:N,rowSpan:L}=O;S+=N,_.push(L)})):S=1;const M=Math.min(..._);return P=P+M,R.colSpan=S,R.rowSpan=P,{colSpan:S,rowSpan:P}});return y((l=(a=p[0])==null?void 0:a.headers)!=null?l:[]),p}const YP=(e,o,r,i,l,a,c)=>{let d={id:o,index:i,original:r,depth:l,parentId:c,_valuesCache:{},_uniqueValuesCache:{},getValue:p=>{if(d._valuesCache.hasOwnProperty(p))return d._valuesCache[p];const m=e.getColumn(p);if(m!=null&&m.accessorFn)return d._valuesCache[p]=m.accessorFn(d.original,i),d._valuesCache[p]},getUniqueValues:p=>{if(d._uniqueValuesCache.hasOwnProperty(p))return d._uniqueValuesCache[p];const m=e.getColumn(p);if(m!=null&&m.accessorFn)return m.columnDef.getUniqueValues?(d._uniqueValuesCache[p]=m.columnDef.getUniqueValues(d.original,i),d._uniqueValuesCache[p]):(d._uniqueValuesCache[p]=[d.getValue(p)],d._uniqueValuesCache[p])},renderValue:p=>{var m;return(m=d.getValue(p))!=null?m:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>GP(d.subRows,p=>p.subRows),getParentRow:()=>d.parentId?e.getRow(d.parentId,!0):void 0,getParentRows:()=>{let p=[],m=d;for(;;){const v=m.getParentRow();if(!v)break;p.push(v),m=v}return p.reverse()},getAllCells:ye(()=>[e.getAllLeafColumns()],p=>p.map(m=>KP(e,d,m,m.id)),we(e.options,"debugRows")),_getAllCellsByColumnId:ye(()=>[d.getAllCells()],p=>p.reduce((m,v)=>(m[v.column.id]=v,m),{}),we(e.options,"debugRows"))};for(let p=0;p<e._features.length;p++){const m=e._features[p];m==null||m.createRow==null||m.createRow(d,e)}return d},XP={createColumn:(e,o)=>{e._getFacetedRowModel=o.options.getFacetedRowModel&&o.options.getFacetedRowModel(o,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():o.getPreFilteredRowModel(),e._getFacetedUniqueValues=o.options.getFacetedUniqueValues&&o.options.getFacetedUniqueValues(o,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=o.options.getFacetedMinMaxValues&&o.options.getFacetedMinMaxValues(o,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},pv=(e,o,r)=>{var i,l;const a=r==null||(i=r.toString())==null?void 0:i.toLowerCase();return!!(!((l=e.getValue(o))==null||(l=l.toString())==null||(l=l.toLowerCase())==null)&&l.includes(a))};pv.autoRemove=e=>Ht(e);const hv=(e,o,r)=>{var i;return!!(!((i=e.getValue(o))==null||(i=i.toString())==null)&&i.includes(r))};hv.autoRemove=e=>Ht(e);const gv=(e,o,r)=>{var i;return((i=e.getValue(o))==null||(i=i.toString())==null?void 0:i.toLowerCase())===r?.toLowerCase()};gv.autoRemove=e=>Ht(e);const mv=(e,o,r)=>{var i;return(i=e.getValue(o))==null?void 0:i.includes(r)};mv.autoRemove=e=>Ht(e);const vv=(e,o,r)=>!r.some(i=>{var l;return!((l=e.getValue(o))!=null&&l.includes(i))});vv.autoRemove=e=>Ht(e)||!(e!=null&&e.length);const yv=(e,o,r)=>r.some(i=>{var l;return(l=e.getValue(o))==null?void 0:l.includes(i)});yv.autoRemove=e=>Ht(e)||!(e!=null&&e.length);const wv=(e,o,r)=>e.getValue(o)===r;wv.autoRemove=e=>Ht(e);const Sv=(e,o,r)=>e.getValue(o)==r;Sv.autoRemove=e=>Ht(e);const rd=(e,o,r)=>{let[i,l]=r;const a=e.getValue(o);return a>=i&&a<=l};rd.resolveFilterValue=e=>{let[o,r]=e,i=typeof o!="number"?parseFloat(o):o,l=typeof r!="number"?parseFloat(r):r,a=o===null||Number.isNaN(i)?-1/0:i,c=r===null||Number.isNaN(l)?1/0:l;if(a>c){const d=a;a=c,c=d}return[a,c]};rd.autoRemove=e=>Ht(e)||Ht(e[0])&&Ht(e[1]);const pn={includesString:pv,includesStringSensitive:hv,equalsString:gv,arrIncludes:mv,arrIncludesAll:vv,arrIncludesSome:yv,equals:wv,weakEquals:Sv,inNumberRange:rd};function Ht(e){return e==null||e===""}const ZP={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:xt("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,o)=>{e.getAutoFilterFn=()=>{const r=o.getCoreRowModel().flatRows[0],i=r?.getValue(e.id);return typeof i=="string"?pn.includesString:typeof i=="number"?pn.inNumberRange:typeof i=="boolean"||i!==null&&typeof i=="object"?pn.equals:Array.isArray(i)?pn.arrIncludes:pn.weakEquals},e.getFilterFn=()=>{var r,i;return vl(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(r=(i=o.options.filterFns)==null?void 0:i[e.columnDef.filterFn])!=null?r:pn[e.columnDef.filterFn]},e.getCanFilter=()=>{var r,i,l;return((r=e.columnDef.enableColumnFilter)!=null?r:!0)&&((i=o.options.enableColumnFilters)!=null?i:!0)&&((l=o.options.enableFilters)!=null?l:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var r;return(r=o.getState().columnFilters)==null||(r=r.find(i=>i.id===e.id))==null?void 0:r.value},e.getFilterIndex=()=>{var r,i;return(r=(i=o.getState().columnFilters)==null?void 0:i.findIndex(l=>l.id===e.id))!=null?r:-1},e.setFilterValue=r=>{o.setColumnFilters(i=>{const l=e.getFilterFn(),a=i?.find(v=>v.id===e.id),c=jn(r,a?a.value:void 0);if(cg(l,c,e)){var d;return(d=i?.filter(v=>v.id!==e.id))!=null?d:[]}const p={id:e.id,value:c};if(a){var m;return(m=i?.map(v=>v.id===e.id?p:v))!=null?m:[]}return i!=null&&i.length?[...i,p]:[p]})}},createRow:(e,o)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=o=>{const r=e.getAllLeafColumns(),i=l=>{var a;return(a=jn(o,l))==null?void 0:a.filter(c=>{const d=r.find(p=>p.id===c.id);if(d){const p=d.getFilterFn();if(cg(p,c.value,d))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(i)},e.resetColumnFilters=o=>{var r,i;e.setColumnFilters(o?[]:(r=(i=e.initialState)==null?void 0:i.columnFilters)!=null?r:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function cg(e,o,r){return(e&&e.autoRemove?e.autoRemove(o,r):!1)||typeof o>"u"||typeof o=="string"&&!o}const JP=(e,o,r)=>r.reduce((i,l)=>{const a=l.getValue(e);return i+(typeof a=="number"?a:0)},0),e_=(e,o,r)=>{let i;return r.forEach(l=>{const a=l.getValue(e);a!=null&&(i>a||i===void 0&&a>=a)&&(i=a)}),i},t_=(e,o,r)=>{let i;return r.forEach(l=>{const a=l.getValue(e);a!=null&&(i<a||i===void 0&&a>=a)&&(i=a)}),i},n_=(e,o,r)=>{let i,l;return r.forEach(a=>{const c=a.getValue(e);c!=null&&(i===void 0?c>=c&&(i=l=c):(i>c&&(i=c),l<c&&(l=c)))}),[i,l]},r_=(e,o)=>{let r=0,i=0;if(o.forEach(l=>{let a=l.getValue(e);a!=null&&(a=+a)>=a&&(++r,i+=a)}),r)return i/r},o_=(e,o)=>{if(!o.length)return;const r=o.map(a=>a.getValue(e));if(!WP(r))return;if(r.length===1)return r[0];const i=Math.floor(r.length/2),l=r.sort((a,c)=>a-c);return r.length%2!==0?l[i]:(l[i-1]+l[i])/2},i_=(e,o)=>Array.from(new Set(o.map(r=>r.getValue(e))).values()),s_=(e,o)=>new Set(o.map(r=>r.getValue(e))).size,l_=(e,o)=>o.length,Ku={sum:JP,min:e_,max:t_,extent:n_,mean:r_,median:o_,unique:i_,uniqueCount:s_,count:l_},a_={getDefaultColumnDef:()=>({aggregatedCell:e=>{var o,r;return(o=(r=e.getValue())==null||r.toString==null?void 0:r.toString())!=null?o:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:xt("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,o)=>{e.toggleGrouping=()=>{o.setGrouping(r=>r!=null&&r.includes(e.id)?r.filter(i=>i!==e.id):[...r??[],e.id])},e.getCanGroup=()=>{var r,i;return((r=e.columnDef.enableGrouping)!=null?r:!0)&&((i=o.options.enableGrouping)!=null?i:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var r;return(r=o.getState().grouping)==null?void 0:r.includes(e.id)},e.getGroupedIndex=()=>{var r;return(r=o.getState().grouping)==null?void 0:r.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const r=e.getCanGroup();return()=>{r&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const r=o.getCoreRowModel().flatRows[0],i=r?.getValue(e.id);if(typeof i=="number")return Ku.sum;if(Object.prototype.toString.call(i)==="[object Date]")return Ku.extent},e.getAggregationFn=()=>{var r,i;if(!e)throw new Error;return vl(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(r=(i=o.options.aggregationFns)==null?void 0:i[e.columnDef.aggregationFn])!=null?r:Ku[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=o=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(o),e.resetGrouping=o=>{var r,i;e.setGrouping(o?[]:(r=(i=e.initialState)==null?void 0:i.grouping)!=null?r:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,o)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=r=>{if(e._groupingValuesCache.hasOwnProperty(r))return e._groupingValuesCache[r];const i=o.getColumn(r);return i!=null&&i.columnDef.getGroupingValue?(e._groupingValuesCache[r]=i.columnDef.getGroupingValue(e.original),e._groupingValuesCache[r]):e.getValue(r)},e._groupingValuesCache={}},createCell:(e,o,r,i)=>{e.getIsGrouped=()=>o.getIsGrouped()&&o.id===r.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&o.getIsGrouped(),e.getIsAggregated=()=>{var l;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((l=r.subRows)!=null&&l.length)}}};function u_(e,o,r){if(!(o!=null&&o.length)||!r)return e;const i=e.filter(a=>!o.includes(a.id));return r==="remove"?i:[...o.map(a=>e.find(c=>c.id===a)).filter(Boolean),...i]}const c_={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:xt("columnOrder",e)}),createColumn:(e,o)=>{e.getIndex=ye(r=>[ei(o,r)],r=>r.findIndex(i=>i.id===e.id),we(o.options,"debugColumns")),e.getIsFirstColumn=r=>{var i;return((i=ei(o,r)[0])==null?void 0:i.id)===e.id},e.getIsLastColumn=r=>{var i;const l=ei(o,r);return((i=l[l.length-1])==null?void 0:i.id)===e.id}},createTable:e=>{e.setColumnOrder=o=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(o),e.resetColumnOrder=o=>{var r;e.setColumnOrder(o?[]:(r=e.initialState.columnOrder)!=null?r:[])},e._getOrderColumnsFn=ye(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(o,r,i)=>l=>{let a=[];if(!(o!=null&&o.length))a=l;else{const c=[...o],d=[...l];for(;d.length&&c.length;){const p=c.shift(),m=d.findIndex(v=>v.id===p);m>-1&&a.push(d.splice(m,1)[0])}a=[...a,...d]}return u_(a,r,i)},we(e.options,"debugTable"))}},Qu=()=>({left:[],right:[]}),d_={getInitialState:e=>({columnPinning:Qu(),...e}),getDefaultOptions:e=>({onColumnPinningChange:xt("columnPinning",e)}),createColumn:(e,o)=>{e.pin=r=>{const i=e.getLeafColumns().map(l=>l.id).filter(Boolean);o.setColumnPinning(l=>{var a,c;if(r==="right"){var d,p;return{left:((d=l?.left)!=null?d:[]).filter(y=>!(i!=null&&i.includes(y))),right:[...((p=l?.right)!=null?p:[]).filter(y=>!(i!=null&&i.includes(y))),...i]}}if(r==="left"){var m,v;return{left:[...((m=l?.left)!=null?m:[]).filter(y=>!(i!=null&&i.includes(y))),...i],right:((v=l?.right)!=null?v:[]).filter(y=>!(i!=null&&i.includes(y)))}}return{left:((a=l?.left)!=null?a:[]).filter(y=>!(i!=null&&i.includes(y))),right:((c=l?.right)!=null?c:[]).filter(y=>!(i!=null&&i.includes(y)))}})},e.getCanPin=()=>e.getLeafColumns().some(i=>{var l,a,c;return((l=i.columnDef.enablePinning)!=null?l:!0)&&((a=(c=o.options.enableColumnPinning)!=null?c:o.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const r=e.getLeafColumns().map(d=>d.id),{left:i,right:l}=o.getState().columnPinning,a=r.some(d=>i?.includes(d)),c=r.some(d=>l?.includes(d));return a?"left":c?"right":!1},e.getPinnedIndex=()=>{var r,i;const l=e.getIsPinned();return l?(r=(i=o.getState().columnPinning)==null||(i=i[l])==null?void 0:i.indexOf(e.id))!=null?r:-1:0}},createRow:(e,o)=>{e.getCenterVisibleCells=ye(()=>[e._getAllVisibleCells(),o.getState().columnPinning.left,o.getState().columnPinning.right],(r,i,l)=>{const a=[...i??[],...l??[]];return r.filter(c=>!a.includes(c.column.id))},we(o.options,"debugRows")),e.getLeftVisibleCells=ye(()=>[e._getAllVisibleCells(),o.getState().columnPinning.left],(r,i)=>(i??[]).map(a=>r.find(c=>c.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),we(o.options,"debugRows")),e.getRightVisibleCells=ye(()=>[e._getAllVisibleCells(),o.getState().columnPinning.right],(r,i)=>(i??[]).map(a=>r.find(c=>c.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),we(o.options,"debugRows"))},createTable:e=>{e.setColumnPinning=o=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(o),e.resetColumnPinning=o=>{var r,i;return e.setColumnPinning(o?Qu():(r=(i=e.initialState)==null?void 0:i.columnPinning)!=null?r:Qu())},e.getIsSomeColumnsPinned=o=>{var r;const i=e.getState().columnPinning;if(!o){var l,a;return!!((l=i.left)!=null&&l.length||(a=i.right)!=null&&a.length)}return!!((r=i[o])!=null&&r.length)},e.getLeftLeafColumns=ye(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(o,r)=>(r??[]).map(i=>o.find(l=>l.id===i)).filter(Boolean),we(e.options,"debugColumns")),e.getRightLeafColumns=ye(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(o,r)=>(r??[]).map(i=>o.find(l=>l.id===i)).filter(Boolean),we(e.options,"debugColumns")),e.getCenterLeafColumns=ye(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(o,r,i)=>{const l=[...r??[],...i??[]];return o.filter(a=>!l.includes(a.id))},we(e.options,"debugColumns"))}};function f_(e){return e||(typeof document<"u"?document:null)}const Ns={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},qu=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),p_={getDefaultColumnDef:()=>Ns,getInitialState:e=>({columnSizing:{},columnSizingInfo:qu(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:xt("columnSizing",e),onColumnSizingInfoChange:xt("columnSizingInfo",e)}),createColumn:(e,o)=>{e.getSize=()=>{var r,i,l;const a=o.getState().columnSizing[e.id];return Math.min(Math.max((r=e.columnDef.minSize)!=null?r:Ns.minSize,(i=a??e.columnDef.size)!=null?i:Ns.size),(l=e.columnDef.maxSize)!=null?l:Ns.maxSize)},e.getStart=ye(r=>[r,ei(o,r),o.getState().columnSizing],(r,i)=>i.slice(0,e.getIndex(r)).reduce((l,a)=>l+a.getSize(),0),we(o.options,"debugColumns")),e.getAfter=ye(r=>[r,ei(o,r),o.getState().columnSizing],(r,i)=>i.slice(e.getIndex(r)+1).reduce((l,a)=>l+a.getSize(),0),we(o.options,"debugColumns")),e.resetSize=()=>{o.setColumnSizing(r=>{let{[e.id]:i,...l}=r;return l})},e.getCanResize=()=>{var r,i;return((r=e.columnDef.enableResizing)!=null?r:!0)&&((i=o.options.enableColumnResizing)!=null?i:!0)},e.getIsResizing=()=>o.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,o)=>{e.getSize=()=>{let r=0;const i=l=>{if(l.subHeaders.length)l.subHeaders.forEach(i);else{var a;r+=(a=l.column.getSize())!=null?a:0}};return i(e),r},e.getStart=()=>{if(e.index>0){const r=e.headerGroup.headers[e.index-1];return r.getStart()+r.getSize()}return 0},e.getResizeHandler=r=>{const i=o.getColumn(e.column.id),l=i?.getCanResize();return a=>{if(!i||!l||(a.persist==null||a.persist(),Yu(a)&&a.touches&&a.touches.length>1))return;const c=e.getSize(),d=e?e.getLeafHeaders().map(_=>[_.column.id,_.column.getSize()]):[[i.id,i.getSize()]],p=Yu(a)?Math.round(a.touches[0].clientX):a.clientX,m={},v=(_,M)=>{typeof M=="number"&&(o.setColumnSizingInfo(O=>{var N,L;const H=o.options.columnResizeDirection==="rtl"?-1:1,$=(M-((N=O?.startOffset)!=null?N:0))*H,Y=Math.max($/((L=O?.startSize)!=null?L:0),-.999999);return O.columnSizingStart.forEach(Z=>{let[J,ae]=Z;m[J]=Math.round(Math.max(ae+ae*Y,0)*100)/100}),{...O,deltaOffset:$,deltaPercentage:Y}}),(o.options.columnResizeMode==="onChange"||_==="end")&&o.setColumnSizing(O=>({...O,...m})))},y=_=>v("move",_),w=_=>{v("end",_),o.setColumnSizingInfo(M=>({...M,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},x=f_(r),R={moveHandler:_=>y(_.clientX),upHandler:_=>{x?.removeEventListener("mousemove",R.moveHandler),x?.removeEventListener("mouseup",R.upHandler),w(_.clientX)}},S={moveHandler:_=>(_.cancelable&&(_.preventDefault(),_.stopPropagation()),y(_.touches[0].clientX),!1),upHandler:_=>{var M;x?.removeEventListener("touchmove",S.moveHandler),x?.removeEventListener("touchend",S.upHandler),_.cancelable&&(_.preventDefault(),_.stopPropagation()),w((M=_.touches[0])==null?void 0:M.clientX)}},P=h_()?{passive:!1}:!1;Yu(a)?(x?.addEventListener("touchmove",S.moveHandler,P),x?.addEventListener("touchend",S.upHandler,P)):(x?.addEventListener("mousemove",R.moveHandler,P),x?.addEventListener("mouseup",R.upHandler,P)),o.setColumnSizingInfo(_=>({..._,startOffset:p,startSize:c,deltaOffset:0,deltaPercentage:0,columnSizingStart:d,isResizingColumn:i.id}))}}},createTable:e=>{e.setColumnSizing=o=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(o),e.setColumnSizingInfo=o=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(o),e.resetColumnSizing=o=>{var r;e.setColumnSizing(o?{}:(r=e.initialState.columnSizing)!=null?r:{})},e.resetHeaderSizeInfo=o=>{var r;e.setColumnSizingInfo(o?qu():(r=e.initialState.columnSizingInfo)!=null?r:qu())},e.getTotalSize=()=>{var o,r;return(o=(r=e.getHeaderGroups()[0])==null?void 0:r.headers.reduce((i,l)=>i+l.getSize(),0))!=null?o:0},e.getLeftTotalSize=()=>{var o,r;return(o=(r=e.getLeftHeaderGroups()[0])==null?void 0:r.headers.reduce((i,l)=>i+l.getSize(),0))!=null?o:0},e.getCenterTotalSize=()=>{var o,r;return(o=(r=e.getCenterHeaderGroups()[0])==null?void 0:r.headers.reduce((i,l)=>i+l.getSize(),0))!=null?o:0},e.getRightTotalSize=()=>{var o,r;return(o=(r=e.getRightHeaderGroups()[0])==null?void 0:r.headers.reduce((i,l)=>i+l.getSize(),0))!=null?o:0}}};let Fs=null;function h_(){if(typeof Fs=="boolean")return Fs;let e=!1;try{const o={get passive(){return e=!0,!1}},r=()=>{};window.addEventListener("test",r,o),window.removeEventListener("test",r)}catch{e=!1}return Fs=e,Fs}function Yu(e){return e.type==="touchstart"}const g_={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:xt("columnVisibility",e)}),createColumn:(e,o)=>{e.toggleVisibility=r=>{e.getCanHide()&&o.setColumnVisibility(i=>({...i,[e.id]:r??!e.getIsVisible()}))},e.getIsVisible=()=>{var r,i;const l=e.columns;return(r=l.length?l.some(a=>a.getIsVisible()):(i=o.getState().columnVisibility)==null?void 0:i[e.id])!=null?r:!0},e.getCanHide=()=>{var r,i;return((r=e.columnDef.enableHiding)!=null?r:!0)&&((i=o.options.enableHiding)!=null?i:!0)},e.getToggleVisibilityHandler=()=>r=>{e.toggleVisibility==null||e.toggleVisibility(r.target.checked)}},createRow:(e,o)=>{e._getAllVisibleCells=ye(()=>[e.getAllCells(),o.getState().columnVisibility],r=>r.filter(i=>i.column.getIsVisible()),we(o.options,"debugRows")),e.getVisibleCells=ye(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(r,i,l)=>[...r,...i,...l],we(o.options,"debugRows"))},createTable:e=>{const o=(r,i)=>ye(()=>[i(),i().filter(l=>l.getIsVisible()).map(l=>l.id).join("_")],l=>l.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),we(e.options,"debugColumns"));e.getVisibleFlatColumns=o("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=o("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=o("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=o("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=o("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=r=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(r),e.resetColumnVisibility=r=>{var i;e.setColumnVisibility(r?{}:(i=e.initialState.columnVisibility)!=null?i:{})},e.toggleAllColumnsVisible=r=>{var i;r=(i=r)!=null?i:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((l,a)=>({...l,[a.id]:r||!(a.getCanHide!=null&&a.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(r=>!(r.getIsVisible!=null&&r.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(r=>r.getIsVisible==null?void 0:r.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>r=>{var i;e.toggleAllColumnsVisible((i=r.target)==null?void 0:i.checked)}}};function ei(e,o){return o?o==="center"?e.getCenterVisibleLeafColumns():o==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const m_={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},v_={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:xt("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:o=>{var r;const i=(r=e.getCoreRowModel().flatRows[0])==null||(r=r._getAllCellsByColumnId()[o.id])==null?void 0:r.getValue();return typeof i=="string"||typeof i=="number"}}),createColumn:(e,o)=>{e.getCanGlobalFilter=()=>{var r,i,l,a;return((r=e.columnDef.enableGlobalFilter)!=null?r:!0)&&((i=o.options.enableGlobalFilter)!=null?i:!0)&&((l=o.options.enableFilters)!=null?l:!0)&&((a=o.options.getColumnCanGlobalFilter==null?void 0:o.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>pn.includesString,e.getGlobalFilterFn=()=>{var o,r;const{globalFilterFn:i}=e.options;return vl(i)?i:i==="auto"?e.getGlobalAutoFilterFn():(o=(r=e.options.filterFns)==null?void 0:r[i])!=null?o:pn[i]},e.setGlobalFilter=o=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(o)},e.resetGlobalFilter=o=>{e.setGlobalFilter(o?void 0:e.initialState.globalFilter)}}},y_={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:xt("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let o=!1,r=!1;e._autoResetExpanded=()=>{var i,l;if(!o){e._queue(()=>{o=!0});return}if((i=(l=e.options.autoResetAll)!=null?l:e.options.autoResetExpanded)!=null?i:!e.options.manualExpanding){if(r)return;r=!0,e._queue(()=>{e.resetExpanded(),r=!1})}},e.setExpanded=i=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(i),e.toggleAllRowsExpanded=i=>{i??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=i=>{var l,a;e.setExpanded(i?{}:(l=(a=e.initialState)==null?void 0:a.expanded)!=null?l:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(i=>i.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>i=>{i.persist==null||i.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const i=e.getState().expanded;return i===!0||Object.values(i).some(Boolean)},e.getIsAllRowsExpanded=()=>{const i=e.getState().expanded;return typeof i=="boolean"?i===!0:!(!Object.keys(i).length||e.getRowModel().flatRows.some(l=>!l.getIsExpanded()))},e.getExpandedDepth=()=>{let i=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{const c=a.split(".");i=Math.max(i,c.length)}),i},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,o)=>{e.toggleExpanded=r=>{o.setExpanded(i=>{var l;const a=i===!0?!0:!!(i!=null&&i[e.id]);let c={};if(i===!0?Object.keys(o.getRowModel().rowsById).forEach(d=>{c[d]=!0}):c=i,r=(l=r)!=null?l:!a,!a&&r)return{...c,[e.id]:!0};if(a&&!r){const{[e.id]:d,...p}=c;return p}return i})},e.getIsExpanded=()=>{var r;const i=o.getState().expanded;return!!((r=o.options.getIsRowExpanded==null?void 0:o.options.getIsRowExpanded(e))!=null?r:i===!0||i?.[e.id])},e.getCanExpand=()=>{var r,i,l;return(r=o.options.getRowCanExpand==null?void 0:o.options.getRowCanExpand(e))!=null?r:((i=o.options.enableExpanding)!=null?i:!0)&&!!((l=e.subRows)!=null&&l.length)},e.getIsAllParentsExpanded=()=>{let r=!0,i=e;for(;r&&i.parentId;)i=o.getRow(i.parentId,!0),r=i.getIsExpanded();return r},e.getToggleExpandedHandler=()=>{const r=e.getCanExpand();return()=>{r&&e.toggleExpanded()}}}},mc=0,vc=10,Xu=()=>({pageIndex:mc,pageSize:vc}),w_={getInitialState:e=>({...e,pagination:{...Xu(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:xt("pagination",e)}),createTable:e=>{let o=!1,r=!1;e._autoResetPageIndex=()=>{var i,l;if(!o){e._queue(()=>{o=!0});return}if((i=(l=e.options.autoResetAll)!=null?l:e.options.autoResetPageIndex)!=null?i:!e.options.manualPagination){if(r)return;r=!0,e._queue(()=>{e.resetPageIndex(),r=!1})}},e.setPagination=i=>{const l=a=>jn(i,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(l)},e.resetPagination=i=>{var l;e.setPagination(i?Xu():(l=e.initialState.pagination)!=null?l:Xu())},e.setPageIndex=i=>{e.setPagination(l=>{let a=jn(i,l.pageIndex);const c=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,c)),{...l,pageIndex:a}})},e.resetPageIndex=i=>{var l,a;e.setPageIndex(i?mc:(l=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?l:mc)},e.resetPageSize=i=>{var l,a;e.setPageSize(i?vc:(l=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?l:vc)},e.setPageSize=i=>{e.setPagination(l=>{const a=Math.max(1,jn(i,l.pageSize)),c=l.pageSize*l.pageIndex,d=Math.floor(c/a);return{...l,pageIndex:d,pageSize:a}})},e.setPageCount=i=>e.setPagination(l=>{var a;let c=jn(i,(a=e.options.pageCount)!=null?a:-1);return typeof c=="number"&&(c=Math.max(-1,c)),{...l,pageCount:c}}),e.getPageOptions=ye(()=>[e.getPageCount()],i=>{let l=[];return i&&i>0&&(l=[...new Array(i)].fill(null).map((a,c)=>c)),l},we(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:i}=e.getState().pagination,l=e.getPageCount();return l===-1?!0:l===0?!1:i<l-1},e.previousPage=()=>e.setPageIndex(i=>i-1),e.nextPage=()=>e.setPageIndex(i=>i+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var i;return(i=e.options.pageCount)!=null?i:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var i;return(i=e.options.rowCount)!=null?i:e.getPrePaginationRowModel().rows.length}}},Zu=()=>({top:[],bottom:[]}),S_={getInitialState:e=>({rowPinning:Zu(),...e}),getDefaultOptions:e=>({onRowPinningChange:xt("rowPinning",e)}),createRow:(e,o)=>{e.pin=(r,i,l)=>{const a=i?e.getLeafRows().map(p=>{let{id:m}=p;return m}):[],c=l?e.getParentRows().map(p=>{let{id:m}=p;return m}):[],d=new Set([...c,e.id,...a]);o.setRowPinning(p=>{var m,v;if(r==="bottom"){var y,w;return{top:((y=p?.top)!=null?y:[]).filter(S=>!(d!=null&&d.has(S))),bottom:[...((w=p?.bottom)!=null?w:[]).filter(S=>!(d!=null&&d.has(S))),...Array.from(d)]}}if(r==="top"){var x,R;return{top:[...((x=p?.top)!=null?x:[]).filter(S=>!(d!=null&&d.has(S))),...Array.from(d)],bottom:((R=p?.bottom)!=null?R:[]).filter(S=>!(d!=null&&d.has(S)))}}return{top:((m=p?.top)!=null?m:[]).filter(S=>!(d!=null&&d.has(S))),bottom:((v=p?.bottom)!=null?v:[]).filter(S=>!(d!=null&&d.has(S)))}})},e.getCanPin=()=>{var r;const{enableRowPinning:i,enablePinning:l}=o.options;return typeof i=="function"?i(e):(r=i??l)!=null?r:!0},e.getIsPinned=()=>{const r=[e.id],{top:i,bottom:l}=o.getState().rowPinning,a=r.some(d=>i?.includes(d)),c=r.some(d=>l?.includes(d));return a?"top":c?"bottom":!1},e.getPinnedIndex=()=>{var r,i;const l=e.getIsPinned();if(!l)return-1;const a=(r=l==="top"?o.getTopRows():o.getBottomRows())==null?void 0:r.map(c=>{let{id:d}=c;return d});return(i=a?.indexOf(e.id))!=null?i:-1}},createTable:e=>{e.setRowPinning=o=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(o),e.resetRowPinning=o=>{var r,i;return e.setRowPinning(o?Zu():(r=(i=e.initialState)==null?void 0:i.rowPinning)!=null?r:Zu())},e.getIsSomeRowsPinned=o=>{var r;const i=e.getState().rowPinning;if(!o){var l,a;return!!((l=i.top)!=null&&l.length||(a=i.bottom)!=null&&a.length)}return!!((r=i[o])!=null&&r.length)},e._getPinnedRows=(o,r,i)=>{var l;return((l=e.options.keepPinnedRows)==null||l?(r??[]).map(c=>{const d=e.getRow(c,!0);return d.getIsAllParentsExpanded()?d:null}):(r??[]).map(c=>o.find(d=>d.id===c))).filter(Boolean).map(c=>({...c,position:i}))},e.getTopRows=ye(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(o,r)=>e._getPinnedRows(o,r,"top"),we(e.options,"debugRows")),e.getBottomRows=ye(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(o,r)=>e._getPinnedRows(o,r,"bottom"),we(e.options,"debugRows")),e.getCenterRows=ye(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(o,r,i)=>{const l=new Set([...r??[],...i??[]]);return o.filter(a=>!l.has(a.id))},we(e.options,"debugRows"))}},C_={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:xt("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=o=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(o),e.resetRowSelection=o=>{var r;return e.setRowSelection(o?{}:(r=e.initialState.rowSelection)!=null?r:{})},e.toggleAllRowsSelected=o=>{e.setRowSelection(r=>{o=typeof o<"u"?o:!e.getIsAllRowsSelected();const i={...r},l=e.getPreGroupedRowModel().flatRows;return o?l.forEach(a=>{a.getCanSelect()&&(i[a.id]=!0)}):l.forEach(a=>{delete i[a.id]}),i})},e.toggleAllPageRowsSelected=o=>e.setRowSelection(r=>{const i=typeof o<"u"?o:!e.getIsAllPageRowsSelected(),l={...r};return e.getRowModel().rows.forEach(a=>{yc(l,a.id,i,!0,e)}),l}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=ye(()=>[e.getState().rowSelection,e.getCoreRowModel()],(o,r)=>Object.keys(o).length?Ju(e,r):{rows:[],flatRows:[],rowsById:{}},we(e.options,"debugTable")),e.getFilteredSelectedRowModel=ye(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(o,r)=>Object.keys(o).length?Ju(e,r):{rows:[],flatRows:[],rowsById:{}},we(e.options,"debugTable")),e.getGroupedSelectedRowModel=ye(()=>[e.getState().rowSelection,e.getSortedRowModel()],(o,r)=>Object.keys(o).length?Ju(e,r):{rows:[],flatRows:[],rowsById:{}},we(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const o=e.getFilteredRowModel().flatRows,{rowSelection:r}=e.getState();let i=!!(o.length&&Object.keys(r).length);return i&&o.some(l=>l.getCanSelect()&&!r[l.id])&&(i=!1),i},e.getIsAllPageRowsSelected=()=>{const o=e.getPaginationRowModel().flatRows.filter(l=>l.getCanSelect()),{rowSelection:r}=e.getState();let i=!!o.length;return i&&o.some(l=>!r[l.id])&&(i=!1),i},e.getIsSomeRowsSelected=()=>{var o;const r=Object.keys((o=e.getState().rowSelection)!=null?o:{}).length;return r>0&&r<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const o=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:o.filter(r=>r.getCanSelect()).some(r=>r.getIsSelected()||r.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>o=>{e.toggleAllRowsSelected(o.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>o=>{e.toggleAllPageRowsSelected(o.target.checked)}},createRow:(e,o)=>{e.toggleSelected=(r,i)=>{const l=e.getIsSelected();o.setRowSelection(a=>{var c;if(r=typeof r<"u"?r:!l,e.getCanSelect()&&l===r)return a;const d={...a};return yc(d,e.id,r,(c=i?.selectChildren)!=null?c:!0,o),d})},e.getIsSelected=()=>{const{rowSelection:r}=o.getState();return od(e,r)},e.getIsSomeSelected=()=>{const{rowSelection:r}=o.getState();return wc(e,r)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:r}=o.getState();return wc(e,r)==="all"},e.getCanSelect=()=>{var r;return typeof o.options.enableRowSelection=="function"?o.options.enableRowSelection(e):(r=o.options.enableRowSelection)!=null?r:!0},e.getCanSelectSubRows=()=>{var r;return typeof o.options.enableSubRowSelection=="function"?o.options.enableSubRowSelection(e):(r=o.options.enableSubRowSelection)!=null?r:!0},e.getCanMultiSelect=()=>{var r;return typeof o.options.enableMultiRowSelection=="function"?o.options.enableMultiRowSelection(e):(r=o.options.enableMultiRowSelection)!=null?r:!0},e.getToggleSelectedHandler=()=>{const r=e.getCanSelect();return i=>{var l;r&&e.toggleSelected((l=i.target)==null?void 0:l.checked)}}}},yc=(e,o,r,i,l)=>{var a;const c=l.getRow(o,!0);r?(c.getCanMultiSelect()||Object.keys(e).forEach(d=>delete e[d]),c.getCanSelect()&&(e[o]=!0)):delete e[o],i&&(a=c.subRows)!=null&&a.length&&c.getCanSelectSubRows()&&c.subRows.forEach(d=>yc(e,d.id,r,i,l))};function Ju(e,o){const r=e.getState().rowSelection,i=[],l={},a=function(c,d){return c.map(p=>{var m;const v=od(p,r);if(v&&(i.push(p),l[p.id]=p),(m=p.subRows)!=null&&m.length&&(p={...p,subRows:a(p.subRows)}),v)return p}).filter(Boolean)};return{rows:a(o.rows),flatRows:i,rowsById:l}}function od(e,o){var r;return(r=o[e.id])!=null?r:!1}function wc(e,o,r){var i;if(!((i=e.subRows)!=null&&i.length))return!1;let l=!0,a=!1;return e.subRows.forEach(c=>{if(!(a&&!l)&&(c.getCanSelect()&&(od(c,o)?a=!0:l=!1),c.subRows&&c.subRows.length)){const d=wc(c,o);d==="all"?a=!0:(d==="some"&&(a=!0),l=!1)}}),l?"all":a?"some":!1}const Sc=/([0-9]+)/gm,x_=(e,o,r)=>Cv(Bn(e.getValue(r)).toLowerCase(),Bn(o.getValue(r)).toLowerCase()),R_=(e,o,r)=>Cv(Bn(e.getValue(r)),Bn(o.getValue(r))),E_=(e,o,r)=>id(Bn(e.getValue(r)).toLowerCase(),Bn(o.getValue(r)).toLowerCase()),P_=(e,o,r)=>id(Bn(e.getValue(r)),Bn(o.getValue(r))),__=(e,o,r)=>{const i=e.getValue(r),l=o.getValue(r);return i>l?1:i<l?-1:0},T_=(e,o,r)=>id(e.getValue(r),o.getValue(r));function id(e,o){return e===o?0:e>o?1:-1}function Bn(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Cv(e,o){const r=e.split(Sc).filter(Boolean),i=o.split(Sc).filter(Boolean);for(;r.length&&i.length;){const l=r.shift(),a=i.shift(),c=parseInt(l,10),d=parseInt(a,10),p=[c,d].sort();if(isNaN(p[0])){if(l>a)return 1;if(a>l)return-1;continue}if(isNaN(p[1]))return isNaN(c)?-1:1;if(c>d)return 1;if(d>c)return-1}return r.length-i.length}const Xo={alphanumeric:x_,alphanumericCaseSensitive:R_,text:E_,textCaseSensitive:P_,datetime:__,basic:T_},M_={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:xt("sorting",e),isMultiSortEvent:o=>o.shiftKey}),createColumn:(e,o)=>{e.getAutoSortingFn=()=>{const r=o.getFilteredRowModel().flatRows.slice(10);let i=!1;for(const l of r){const a=l?.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return Xo.datetime;if(typeof a=="string"&&(i=!0,a.split(Sc).length>1))return Xo.alphanumeric}return i?Xo.text:Xo.basic},e.getAutoSortDir=()=>{const r=o.getFilteredRowModel().flatRows[0];return typeof r?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var r,i;if(!e)throw new Error;return vl(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(r=(i=o.options.sortingFns)==null?void 0:i[e.columnDef.sortingFn])!=null?r:Xo[e.columnDef.sortingFn]},e.toggleSorting=(r,i)=>{const l=e.getNextSortingOrder(),a=typeof r<"u"&&r!==null;o.setSorting(c=>{const d=c?.find(x=>x.id===e.id),p=c?.findIndex(x=>x.id===e.id);let m=[],v,y=a?r:l==="desc";if(c!=null&&c.length&&e.getCanMultiSort()&&i?d?v="toggle":v="add":c!=null&&c.length&&p!==c.length-1?v="replace":d?v="toggle":v="replace",v==="toggle"&&(a||l||(v="remove")),v==="add"){var w;m=[...c,{id:e.id,desc:y}],m.splice(0,m.length-((w=o.options.maxMultiSortColCount)!=null?w:Number.MAX_SAFE_INTEGER))}else v==="toggle"?m=c.map(x=>x.id===e.id?{...x,desc:y}:x):v==="remove"?m=c.filter(x=>x.id!==e.id):m=[{id:e.id,desc:y}];return m})},e.getFirstSortDir=()=>{var r,i;return((r=(i=e.columnDef.sortDescFirst)!=null?i:o.options.sortDescFirst)!=null?r:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=r=>{var i,l;const a=e.getFirstSortDir(),c=e.getIsSorted();return c?c!==a&&((i=o.options.enableSortingRemoval)==null||i)&&(!(r&&(l=o.options.enableMultiRemove)!=null)||l)?!1:c==="desc"?"asc":"desc":a},e.getCanSort=()=>{var r,i;return((r=e.columnDef.enableSorting)!=null?r:!0)&&((i=o.options.enableSorting)!=null?i:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var r,i;return(r=(i=e.columnDef.enableMultiSort)!=null?i:o.options.enableMultiSort)!=null?r:!!e.accessorFn},e.getIsSorted=()=>{var r;const i=(r=o.getState().sorting)==null?void 0:r.find(l=>l.id===e.id);return i?i.desc?"desc":"asc":!1},e.getSortIndex=()=>{var r,i;return(r=(i=o.getState().sorting)==null?void 0:i.findIndex(l=>l.id===e.id))!=null?r:-1},e.clearSorting=()=>{o.setSorting(r=>r!=null&&r.length?r.filter(i=>i.id!==e.id):[])},e.getToggleSortingHandler=()=>{const r=e.getCanSort();return i=>{r&&(i.persist==null||i.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?o.options.isMultiSortEvent==null?void 0:o.options.isMultiSortEvent(i):!1))}}},createTable:e=>{e.setSorting=o=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(o),e.resetSorting=o=>{var r,i;e.setSorting(o?[]:(r=(i=e.initialState)==null?void 0:i.sorting)!=null?r:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},I_=[qP,g_,c_,d_,XP,ZP,m_,v_,M_,a_,y_,w_,S_,C_,p_];function O_(e){var o,r;const i=[...I_,...(o=e._features)!=null?o:[]];let l={_features:i};const a=l._features.reduce((w,x)=>Object.assign(w,x.getDefaultOptions==null?void 0:x.getDefaultOptions(l)),{}),c=w=>l.options.mergeOptions?l.options.mergeOptions(a,w):{...a,...w};let p={...{},...(r=e.initialState)!=null?r:{}};l._features.forEach(w=>{var x;p=(x=w.getInitialState==null?void 0:w.getInitialState(p))!=null?x:p});const m=[];let v=!1;const y={_features:i,options:{...a,...e},initialState:p,_queue:w=>{m.push(w),v||(v=!0,Promise.resolve().then(()=>{for(;m.length;)m.shift()();v=!1}).catch(x=>setTimeout(()=>{throw x})))},reset:()=>{l.setState(l.initialState)},setOptions:w=>{const x=jn(w,l.options);l.options=c(x)},getState:()=>l.options.state,setState:w=>{l.options.onStateChange==null||l.options.onStateChange(w)},_getRowId:(w,x,R)=>{var S;return(S=l.options.getRowId==null?void 0:l.options.getRowId(w,x,R))!=null?S:`${R?[R.id,x].join("."):x}`},getCoreRowModel:()=>(l._getCoreRowModel||(l._getCoreRowModel=l.options.getCoreRowModel(l)),l._getCoreRowModel()),getRowModel:()=>l.getPaginationRowModel(),getRow:(w,x)=>{let R=(x?l.getPrePaginationRowModel():l.getRowModel()).rowsById[w];if(!R&&(R=l.getCoreRowModel().rowsById[w],!R))throw new Error;return R},_getDefaultColumnDef:ye(()=>[l.options.defaultColumn],w=>{var x;return w=(x=w)!=null?x:{},{header:R=>{const S=R.header.column.columnDef;return S.accessorKey?S.accessorKey:S.accessorFn?S.id:null},cell:R=>{var S,P;return(S=(P=R.renderValue())==null||P.toString==null?void 0:P.toString())!=null?S:null},...l._features.reduce((R,S)=>Object.assign(R,S.getDefaultColumnDef==null?void 0:S.getDefaultColumnDef()),{}),...w}},we(e,"debugColumns")),_getColumnDefs:()=>l.options.columns,getAllColumns:ye(()=>[l._getColumnDefs()],w=>{const x=function(R,S,P){return P===void 0&&(P=0),R.map(_=>{const M=QP(l,_,P,S),O=_;return M.columns=O.columns?x(O.columns,M,P+1):[],M})};return x(w)},we(e,"debugColumns")),getAllFlatColumns:ye(()=>[l.getAllColumns()],w=>w.flatMap(x=>x.getFlatColumns()),we(e,"debugColumns")),_getAllFlatColumnsById:ye(()=>[l.getAllFlatColumns()],w=>w.reduce((x,R)=>(x[R.id]=R,x),{}),we(e,"debugColumns")),getAllLeafColumns:ye(()=>[l.getAllColumns(),l._getOrderColumnsFn()],(w,x)=>{let R=w.flatMap(S=>S.getLeafColumns());return x(R)},we(e,"debugColumns")),getColumn:w=>l._getAllFlatColumnsById()[w]};Object.assign(l,y);for(let w=0;w<l._features.length;w++){const x=l._features[w];x==null||x.createTable==null||x.createTable(l)}return l}function oI(){return e=>ye(()=>[e.options.data],o=>{const r={rows:[],flatRows:[],rowsById:{}},i=function(l,a,c){a===void 0&&(a=0);const d=[];for(let m=0;m<l.length;m++){const v=YP(e,e._getRowId(l[m],m,c),l[m],m,a,void 0,c?.id);if(r.flatRows.push(v),r.rowsById[v.id]=v,d.push(v),e.options.getSubRows){var p;v.originalSubRows=e.options.getSubRows(l[m],m),(p=v.originalSubRows)!=null&&p.length&&(v.subRows=i(v.originalSubRows,a+1,v))}}return d};return r.rows=i(o),r},we(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function iI(){return e=>ye(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(o,r,i)=>!r.rows.length||o!==!0&&!Object.keys(o??{}).length||!i?r:A_(r),we(e.options,"debugTable"))}function A_(e){const o=[],r=i=>{var l;o.push(i),(l=i.subRows)!=null&&l.length&&i.getIsExpanded()&&i.subRows.forEach(r)};return e.rows.forEach(r),{rows:o,flatRows:e.flatRows,rowsById:e.rowsById}}function sI(e,o){return e?k_(e)?g.createElement(e,o):e:null}function k_(e){return D_(e)||typeof e=="function"||N_(e)}function D_(e){return typeof e=="function"&&(()=>{const o=Object.getPrototypeOf(e);return o.prototype&&o.prototype.isReactComponent})()}function N_(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function lI(e){const o={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=g.useState(()=>({current:O_(o)})),[i,l]=g.useState(()=>r.current.initialState);return r.current.setOptions(a=>({...a,...e,state:{...i,...e.state},onStateChange:c=>{l(c),e.onStateChange==null||e.onStateChange(c)}})),r.current}var yl="Dialog",[xv,Rv]=He(yl),[F_,Wt]=xv(yl),Ev=e=>{const{__scopeDialog:o,children:r,open:i,defaultOpen:l,onOpenChange:a,modal:c=!0}=e,d=g.useRef(null),p=g.useRef(null),[m,v]=ht({prop:i,defaultProp:l??!1,onChange:a,caller:yl});return E.jsx(F_,{scope:o,triggerRef:d,contentRef:p,contentId:St(),titleId:St(),descriptionId:St(),open:m,onOpenChange:v,onOpenToggle:g.useCallback(()=>v(y=>!y),[v]),modal:c,children:r})};
vendor: 15,804 bytes, lines 51-55
51Ev.displayName=yl;var Pv="DialogTrigger",_v=g.forwardRef((e,o)=>{const{__scopeDialog:r,...i}=e,l=Wt(Pv,r),a=ge(o,l.triggerRef);return E.jsx(te.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":ad(l.open),...i,ref:a,onClick:B(e.onClick,l.onOpenToggle)})});_v.displayName=Pv;var sd="DialogPortal",[b_,Tv]=xv(sd,{forceMount:void 0}),Mv=e=>{const{__scopeDialog:o,forceMount:r,children:i,container:l}=e,a=Wt(sd,o);return E.jsx(b_,{scope:o,forceMount:r,children:g.Children.map(i,c=>E.jsx(Be,{present:r||a.open,children:E.jsx(lo,{asChild:!0,container:l,children:c})}))})};Mv.displayName=sd;var qs="DialogOverlay",Iv=g.forwardRef((e,o)=>{const r=Tv(qs,e.__scopeDialog),{forceMount:i=r.forceMount,...l}=e,a=Wt(qs,e.__scopeDialog);return a.modal?E.jsx(Be,{present:i||a.open,children:E.jsx(j_,{...l,ref:o})}):null});Iv.displayName=qs;var L_=zn("DialogOverlay.RemoveScroll"),j_=g.forwardRef((e,o)=>{const{__scopeDialog:r,...i}=e,l=Wt(qs,r);return E.jsx(pi,{as:L_,allowPinchZoom:!0,shards:[l.contentRef],children:E.jsx(te.div,{"data-state":ad(l.open),...i,ref:o,style:{pointerEvents:"auto",...i.style}})})}),fr="DialogContent",Ov=g.forwardRef((e,o)=>{const r=Tv(fr,e.__scopeDialog),{forceMount:i=r.forceMount,...l}=e,a=Wt(fr,e.__scopeDialog);return E.jsx(Be,{present:i||a.open,children:a.modal?E.jsx($_,{...l,ref:o}):E.jsx(z_,{...l,ref:o})})});Ov.displayName=fr;var $_=g.forwardRef((e,o)=>{const r=Wt(fr,e.__scopeDialog),i=g.useRef(null),l=ge(o,r.contentRef,i);return g.useEffect(()=>{const a=i.current;if(a)return fl(a)},[]),E.jsx(Av,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:B(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:B(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0;(c.button===2||d)&&a.preventDefault()}),onFocusOutside:B(e.onFocusOutside,a=>a.preventDefault())})}),z_=g.forwardRef((e,o)=>{const r=Wt(fr,e.__scopeDialog),i=g.useRef(!1),l=g.useRef(!1);return E.jsx(Av,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(i.current||r.triggerRef.current?.focus(),a.preventDefault()),i.current=!1,l.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(i.current=!0,a.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&l.current&&a.preventDefault()}})}),Av=g.forwardRef((e,o)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:a,...c}=e,d=Wt(fr,r),p=g.useRef(null),m=ge(o,p);return sl(),E.jsxs(E.Fragment,{children:[E.jsx(li,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:l,onUnmountAutoFocus:a,children:E.jsx(Wn,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":ad(d.open),...c,ref:m,onDismiss:()=>d.onOpenChange(!1)})}),E.jsxs(E.Fragment,{children:[E.jsx(H_,{titleId:d.titleId}),E.jsx(U_,{contentRef:p,descriptionId:d.descriptionId})]})]})}),ld="DialogTitle",kv=g.forwardRef((e,o)=>{const{__scopeDialog:r,...i}=e,l=Wt(ld,r);return E.jsx(te.h2,{id:l.titleId,...i,ref:o})});kv.displayName=ld;var Dv="DialogDescription",Nv=g.forwardRef((e,o)=>{const{__scopeDialog:r,...i}=e,l=Wt(Dv,r);return E.jsx(te.p,{id:l.descriptionId,...i,ref:o})});Nv.displayName=Dv;var Fv="DialogClose",bv=g.forwardRef((e,o)=>{const{__scopeDialog:r,...i}=e,l=Wt(Fv,r);return E.jsx(te.button,{type:"button",...i,ref:o,onClick:B(e.onClick,()=>l.onOpenChange(!1))})});bv.displayName=Fv;function ad(e){return e?"open":"closed"}var Lv="DialogTitleWarning",[V_,jv]=B0(Lv,{contentName:fr,titleName:ld,docsSlug:"dialog"}),H_=({titleId:e})=>{const o=jv(Lv),r=`\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
52
53If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.
54
55For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},B_="DialogDescriptionWarning",U_=({contentRef:e,descriptionId:o})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${jv(B_).contentName}}.`;return g.useEffect(()=>{const l=e.current?.getAttribute("aria-describedby");o&&l&&(document.getElementById(o)||console.warn(i))},[i,e,o]),null},W_=Ev,G_=_v,K_=Mv,Q_=Iv,q_=Ov,Y_=kv,X_=Nv,$v=bv,wl="Tabs",[Z_]=He(wl,[ao]),zv=ao(),[J_,ud]=Z_(wl),Vv=g.forwardRef((e,o)=>{const{__scopeTabs:r,value:i,onValueChange:l,defaultValue:a,orientation:c="horizontal",dir:d,activationMode:p="automatic",...m}=e,v=ro(d),[y,w]=ht({prop:i,onChange:l,defaultProp:a??"",caller:wl});return E.jsx(J_,{scope:r,baseId:St(),value:y,onValueChange:w,orientation:c,dir:v,activationMode:p,children:E.jsx(te.div,{dir:v,"data-orientation":c,...m,ref:o})})});Vv.displayName=wl;var Hv="TabsList",Bv=g.forwardRef((e,o)=>{const{__scopeTabs:r,loop:i=!0,...l}=e,a=ud(Hv,r),c=zv(r);return E.jsx(Qc,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:i,children:E.jsx(te.div,{role:"tablist","aria-orientation":a.orientation,...l,ref:o})})});Bv.displayName=Hv;var Uv="TabsTrigger",Wv=g.forwardRef((e,o)=>{const{__scopeTabs:r,value:i,disabled:l=!1,...a}=e,c=ud(Uv,r),d=zv(r),p=Qv(c.baseId,i),m=qv(c.baseId,i),v=i===c.value;return E.jsx(qc,{asChild:!0,...d,focusable:!l,active:v,children:E.jsx(te.button,{type:"button",role:"tab","aria-selected":v,"aria-controls":m,"data-state":v?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:p,...a,ref:o,onMouseDown:B(e.onMouseDown,y=>{!l&&y.button===0&&y.ctrlKey===!1?c.onValueChange(i):y.preventDefault()}),onKeyDown:B(e.onKeyDown,y=>{[" ","Enter"].includes(y.key)&&c.onValueChange(i)}),onFocus:B(e.onFocus,()=>{const y=c.activationMode!=="manual";!v&&!l&&y&&c.onValueChange(i)})})})});Wv.displayName=Uv;var Gv="TabsContent",Kv=g.forwardRef((e,o)=>{const{__scopeTabs:r,value:i,forceMount:l,children:a,...c}=e,d=ud(Gv,r),p=Qv(d.baseId,i),m=qv(d.baseId,i),v=i===d.value,y=g.useRef(v);return g.useEffect(()=>{const w=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(w)},[]),E.jsx(Be,{present:l||v,children:({present:w})=>E.jsx(te.div,{"data-state":v?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":p,hidden:!w,id:m,tabIndex:0,...c,ref:o,style:{...e.style,animationDuration:y.current?"0s":void 0},children:w&&a})})});Kv.displayName=Gv;function Qv(e,o){return`${e}-trigger-${o}`}function qv(e,o){return`${e}-content-${o}`}var aI=Vv,uI=Bv,cI=Wv,dI=Kv,Sl="Collapsible",[e1]=He(Sl),[t1,cd]=e1(Sl),Yv=g.forwardRef((e,o)=>{const{__scopeCollapsible:r,open:i,defaultOpen:l,disabled:a,onOpenChange:c,...d}=e,[p,m]=ht({prop:i,defaultProp:l??!1,onChange:c,caller:Sl});return E.jsx(t1,{scope:r,disabled:a,contentId:St(),open:p,onOpenToggle:g.useCallback(()=>m(v=>!v),[m]),children:E.jsx(te.div,{"data-state":fd(p),"data-disabled":a?"":void 0,...d,ref:o})})});Yv.displayName=Sl;var Xv="CollapsibleTrigger",Zv=g.forwardRef((e,o)=>{const{__scopeCollapsible:r,...i}=e,l=cd(Xv,r);return E.jsx(te.button,{type:"button","aria-controls":l.contentId,"aria-expanded":l.open||!1,"data-state":fd(l.open),"data-disabled":l.disabled?"":void 0,disabled:l.disabled,...i,ref:o,onClick:B(e.onClick,l.onOpenToggle)})});Zv.displayName=Xv;var dd="CollapsibleContent",Jv=g.forwardRef((e,o)=>{const{forceMount:r,...i}=e,l=cd(dd,e.__scopeCollapsible);return E.jsx(Be,{present:r||l.open,children:({present:a})=>E.jsx(n1,{...i,ref:o,present:a})})});Jv.displayName=dd;var n1=g.forwardRef((e,o)=>{const{__scopeCollapsible:r,present:i,children:l,...a}=e,c=cd(dd,r),[d,p]=g.useState(i),m=g.useRef(null),v=ge(o,m),y=g.useRef(0),w=y.current,x=g.useRef(0),R=x.current,S=c.open||d,P=g.useRef(S),_=g.useRef(void 0);return g.useEffect(()=>{const M=requestAnimationFrame(()=>P.current=!1);return()=>cancelAnimationFrame(M)},[]),$e(()=>{const M=m.current;if(M){_.current=_.current||{transitionDuration:M.style.transitionDuration,animationName:M.style.animationName},M.style.transitionDuration="0s",M.style.animationName="none";const O=M.getBoundingClientRect();y.current=O.height,x.current=O.width,P.current||(M.style.transitionDuration=_.current.transitionDuration,M.style.animationName=_.current.animationName),p(i)}},[c.open,i]),E.jsx(te.div,{"data-state":fd(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!S,...a,ref:v,style:{"--radix-collapsible-content-height":w?`${w}px`:void 0,"--radix-collapsible-content-width":R?`${R}px`:void 0,...e.style},children:S&&l})});function fd(e){return e?"open":"closed"}var fI=Yv,pI=Zv,hI=Jv,ey=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"}),r1="VisuallyHidden",Cl=g.forwardRef((e,o)=>E.jsx(te.span,{...e,ref:o,style:{...ey,...e.style}}));Cl.displayName=r1;var o1=Cl,[xl]=He("Tooltip",[nn]),Rl=nn(),ty="TooltipProvider",i1=700,Cc="tooltip.open",[s1,pd]=xl(ty),ny=e=>{const{__scopeTooltip:o,delayDuration:r=i1,skipDelayDuration:i=300,disableHoverableContent:l=!1,children:a}=e,c=g.useRef(!0),d=g.useRef(!1),p=g.useRef(0);return g.useEffect(()=>{const m=p.current;return()=>window.clearTimeout(m)},[]),E.jsx(s1,{scope:o,isOpenDelayedRef:c,delayDuration:r,onOpen:g.useCallback(()=>{window.clearTimeout(p.current),c.current=!1},[]),onClose:g.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>c.current=!0,i)},[i]),isPointerInTransitRef:d,onPointerInTransitChange:g.useCallback(m=>{d.current=m},[]),disableHoverableContent:l,children:a})};ny.displayName=ty;var si="Tooltip",[l1,El]=xl(si),ry=e=>{const{__scopeTooltip:o,children:r,open:i,defaultOpen:l,onOpenChange:a,disableHoverableContent:c,delayDuration:d}=e,p=pd(si,e.__scopeTooltip),m=Rl(o),[v,y]=g.useState(null),w=St(),x=g.useRef(0),R=c??p.disableHoverableContent,S=d??p.delayDuration,P=g.useRef(!1),[_,M]=ht({prop:i,defaultProp:l??!1,onChange:$=>{$?(p.onOpen(),document.dispatchEvent(new CustomEvent(Cc))):p.onClose(),a?.($)},caller:si}),O=g.useMemo(()=>_?P.current?"delayed-open":"instant-open":"closed",[_]),N=g.useCallback(()=>{window.clearTimeout(x.current),x.current=0,P.current=!1,M(!0)},[M]),L=g.useCallback(()=>{window.clearTimeout(x.current),x.current=0,M(!1)},[M]),H=g.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{P.current=!0,M(!0),x.current=0},S)},[S,M]);return g.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),E.jsx(ui,{...m,children:E.jsx(l1,{scope:o,contentId:w,open:_,stateAttribute:O,trigger:v,onTriggerChange:y,onTriggerEnter:g.useCallback(()=>{p.isOpenDelayedRef.current?H():N()},[p.isOpenDelayedRef,H,N]),onTriggerLeave:g.useCallback(()=>{R?L():(window.clearTimeout(x.current),x.current=0)},[L,R]),onOpen:N,onClose:L,disableHoverableContent:R,children:r})})};ry.displayName=si;var xc="TooltipTrigger",oy=g.forwardRef((e,o)=>{const{__scopeTooltip:r,...i}=e,l=El(xc,r),a=pd(xc,r),c=Rl(r),d=g.useRef(null),p=ge(o,d,l.onTriggerChange),m=g.useRef(!1),v=g.useRef(!1),y=g.useCallback(()=>m.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),E.jsx(so,{asChild:!0,...c,children:E.jsx(te.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...i,ref:p,onPointerMove:B(e.onPointerMove,w=>{w.pointerType!=="touch"&&!v.current&&!a.isPointerInTransitRef.current&&(l.onTriggerEnter(),v.current=!0)}),onPointerLeave:B(e.onPointerLeave,()=>{l.onTriggerLeave(),v.current=!1}),onPointerDown:B(e.onPointerDown,()=>{l.open&&l.onClose(),m.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:B(e.onFocus,()=>{m.current||l.onOpen()}),onBlur:B(e.onBlur,l.onClose),onClick:B(e.onClick,l.onClose)})})});oy.displayName=xc;var a1="TooltipPortal",[gI,u1]=xl(a1,{forceMount:void 0}),Jr="TooltipContent",iy=g.forwardRef((e,o)=>{const r=u1(Jr,e.__scopeTooltip),{forceMount:i=r.forceMount,side:l="top",...a}=e,c=El(Jr,e.__scopeTooltip);return E.jsx(Be,{present:i||c.open,children:c.disableHoverableContent?E.jsx(sy,{side:l,...a,ref:o}):E.jsx(c1,{side:l,...a,ref:o})})}),c1=g.forwardRef((e,o)=>{const r=El(Jr,e.__scopeTooltip),i=pd(Jr,e.__scopeTooltip),l=g.useRef(null),a=ge(o,l),[c,d]=g.useState(null),{trigger:p,onClose:m}=r,v=l.current,{onPointerInTransitChange:y}=i,w=g.useCallback(()=>{d(null),y(!1)},[y]),x=g.useCallback((R,S)=>{const P=R.currentTarget,_={x:R.clientX,y:R.clientY},M=g1(_,P.getBoundingClientRect()),O=m1(_,M),N=v1(S.getBoundingClientRect()),L=w1([...O,...N]);d(L),y(!0)},[y]);return g.useEffect(()=>()=>w(),[w]),g.useEffect(()=>{if(p&&v){const R=P=>x(P,v),S=P=>x(P,p);return p.addEventListener("pointerleave",R),v.addEventListener("pointerleave",S),()=>{p.removeEventListener("pointerleave",R),v.removeEventListener("pointerleave",S)}}},[p,v,x,w]),g.useEffect(()=>{if(c){const R=S=>{const P=S.target,_={x:S.clientX,y:S.clientY},M=p?.contains(P)||v?.contains(P),O=!y1(_,c);M?w():O&&(w(),m())};return document.addEventListener("pointermove",R),()=>document.removeEventListener("pointermove",R)}},[p,v,c,m,w]),E.jsx(sy,{...e,ref:a})}),[d1,f1]=xl(si,{isInside:!1}),p1=Lc("TooltipContent"),sy=g.forwardRef((e,o)=>{const{__scopeTooltip:r,children:i,"aria-label":l,onEscapeKeyDown:a,onPointerDownOutside:c,...d}=e,p=El(Jr,r),m=Rl(r),{onClose:v}=p;return g.useEffect(()=>(document.addEventListener(Cc,v),()=>document.removeEventListener(Cc,v)),[v]),g.useEffect(()=>{if(p.trigger){const y=w=>{w.target?.contains(p.trigger)&&v()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[p.trigger,v]),E.jsx(Wn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:y=>y.preventDefault(),onDismiss:v,children:E.jsxs(ci,{"data-state":p.stateAttribute,...m,...d,ref:o,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[E.jsx(p1,{children:i}),E.jsx(d1,{scope:r,isInside:!0,children:E.jsx(o1,{id:p.contentId,role:"tooltip",children:l||i})})]})})});iy.displayName=Jr;var ly="TooltipArrow",h1=g.forwardRef((e,o)=>{const{__scopeTooltip:r,...i}=e,l=Rl(r);return f1(ly,r).isInside?null:E.jsx(di,{...l,...i,ref:o})});h1.displayName=ly;function g1(e,o){const r=Math.abs(o.top-e.y),i=Math.abs(o.bottom-e.y),l=Math.abs(o.right-e.x),a=Math.abs(o.left-e.x);switch(Math.min(r,i,l,a)){case a:return"left";case l:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function m1(e,o,r=5){const i=[];switch(o){case"top":i.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":i.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":i.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":i.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return i}function v1(e){const{top:o,right:r,bottom:i,left:l}=e;return[{x:l,y:o},{x:r,y:o},{x:r,y:i},{x:l,y:i}]}function y1(e,o){const{x:r,y:i}=e;let l=!1;for(let a=0,c=o.length-1;a<o.length;c=a++){const d=o[a],p=o[c],m=d.x,v=d.y,y=p.x,w=p.y;v>i!=w>i&&r<(y-m)*(i-v)/(w-v)+m&&(l=!l)}return l}function w1(e){const o=e.slice();return o.sort((r,i)=>r.x<i.x?-1:r.x>i.x?1:r.y<i.y?-1:r.y>i.y?1:0),S1(o)}function S1(e){if(e.length<=1)return e.slice();const o=[];for(let i=0;i<e.length;i++){const l=e[i];for(;o.length>=2;){const a=o[o.length-1],c=o[o.length-2];if((a.x-c.x)*(l.y-c.y)>
55=(a.y-c.y)*(l.x-c.x))o.pop();else break}o.push(l)}o.pop();const r=[];for(let i=e.length-1;i>=0;i--){const l=e[i];for(;r.length>=2;){const a=r[r.length-1],c=r[r.length-2];if((a.x-c.x)*(l.y-c.y)>=(a.y-c.y)*(l.x-c.x))r.pop();else break}r.push(l)}return r.pop(),o.length===1&&r.length===1&&o[0].x===r[0].x&&o[0].y===r[0].y?o:o.concat(r)}var mI=ny,vI=ry,yI=oy,wI=iy;function Pl(e){const o=g.useRef({value:e,previous:e});return g.useMemo(()=>(o.current.value!==e&&(o.current.previous=o.current.value,o.current.value=e),o.current.previous),[e])}var _l="Checkbox",[C1]=He(_l),[x1,hd]=C1(_l);function R1(e){const{__scopeCheckbox:o,checked:r,children:i,defaultChecked:l,disabled:a,form:c,name:d,onCheckedChange:p,required:m,value:v="on",internal_do_not_use_render:y}=e,[w,x]=ht({prop:r,defaultProp:l??!1,onChange:p,caller:_l}),[R,S]=g.useState(null),[P,_]=g.useState(null),M=g.useRef(!1),O=R?!!c||!!R.closest("form"):!0,N={checked:w,disabled:a,setChecked:x,control:R,setControl:S,name:d,form:c,value:v,hasConsumerStoppedPropagationRef:M,required:m,defaultChecked:$n(l)?!1:l,isFormControl:O,bubbleInput:P,setBubbleInput:_};return E.jsx(x1,{scope:o,...N,children:_1(y)?y(N):i})}var ay="CheckboxTrigger",uy=g.forwardRef(({__scopeCheckbox:e,onKeyDown:o,onClick:r,...i},l)=>{const{control:a,value:c,disabled:d,checked:p,required:m,setControl:v,setChecked:y,hasConsumerStoppedPropagationRef:w,isFormControl:x,bubbleInput:R}=hd(ay,e),S=ge(l,v),P=g.useRef(p);return g.useEffect(()=>{const _=a?.form;if(_){const M=()=>y(P.current);return _.addEventListener("reset",M),()=>_.removeEventListener("reset",M)}},[a,y]),E.jsx(te.button,{type:"button",role:"checkbox","aria-checked":$n(p)?"mixed":p,"aria-required":m,"data-state":py(p),"data-disabled":d?"":void 0,disabled:d,value:c,...i,ref:S,onKeyDown:B(o,_=>{_.key==="Enter"&&_.preventDefault()}),onClick:B(r,_=>{y(M=>$n(M)?!0:!M),R&&x&&(w.current=_.isPropagationStopped(),w.current||_.stopPropagation())})})});uy.displayName=ay;var E1=g.forwardRef((e,o)=>{const{__scopeCheckbox:r,name:i,checked:l,defaultChecked:a,required:c,disabled:d,value:p,onCheckedChange:m,form:v,...y}=e;return E.jsx(R1,{__scopeCheckbox:r,checked:l,defaultChecked:a,disabled:d,required:c,onCheckedChange:m,name:i,form:v,value:p,internal_do_not_use_render:({isFormControl:w})=>E.jsxs(E.Fragment,{children:[E.jsx(uy,{...y,ref:o,__scopeCheckbox:r}),w&&E.jsx(fy,{__scopeCheckbox:r})]})})});E1.displayName=_l;var cy="CheckboxIndicator",P1=g.forwardRef((e,o)=>{const{__scopeCheckbox:r,forceMount:i,...l}=e,a=hd(cy,r);return E.jsx(Be,{present:i||$n(a.checked)||a.checked===!0,children:E.jsx(te.span,{"data-state":py(a.checked),"data-disabled":a.disabled?"":void 0,...l,ref:o,style:{pointerEvents:"none",...e.style}})})});P1.displayName=cy;var dy="CheckboxBubbleInput",fy=g.forwardRef(({__scopeCheckbox:e,...o},r)=>{const{control:i,hasConsumerStoppedPropagationRef:l,checked:a,defaultChecked:c,required:d,disabled:p,name:m,value:v,form:y,bubbleInput:w,setBubbleInput:x}=hd(dy,e),R=ge(r,x),S=Pl(a),P=dl(i);g.useEffect(()=>{const M=w;if(!M)return;const O=window.HTMLInputElement.prototype,L=Object.getOwnPropertyDescriptor(O,"checked").set,H=!l.current;if(S!==a&&L){const $=new Event("click",{bubbles:H});M.indeterminate=$n(a),L.call(M,$n(a)?!1:a),M.dispatchEvent($)}},[w,S,a,l]);const _=g.useRef($n(a)?!1:a);return E.jsx(te.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??_.current,required:d,disabled:p,name:m,value:v,form:y,...o,tabIndex:-1,ref:R,style:{...o.style,...P,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});fy.displayName=dy;function _1(e){return typeof e=="function"}function $n(e){return e==="indeterminate"}function py(e){return $n(e)?"indeterminate":e?"checked":"unchecked"}var gd="ToastProvider",[md,T1,M1]=il("Toast"),[hy]=He("Toast",[M1]),[I1,Tl]=hy(gd),gy=e=>{const{__scopeToast:o,label:r="Notification",duration:i=5e3,swipeDirection:l="right",swipeThreshold:a=50,children:c}=e,[d,p]=g.useState(null),[m,v]=g.useState(0),y=g.useRef(!1),w=g.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${gd}\`. Expected non-empty \`string\`.`),E.jsx(md.Provider,{scope:o,children:E.jsx(I1,{scope:o,label:r,duration:i,swipeDirection:l,swipeThreshold:a,toastCount:m,viewport:d,onViewportChange:p,onToastAdd:g.useCallback(()=>v(x=>x+1),[]),onToastRemove:g.useCallback(()=>v(x=>x-1),[]),isFocusedToastEscapeKeyDownRef:y,isClosePausedRef:w,children:c})})};gy.displayName=gd;var my="ToastViewport",O1=["F8"],Rc="toast.viewportPause",Ec="toast.viewportResume",vy=g.forwardRef((e,o)=>{const{__scopeToast:r,hotkey:i=O1,label:l="Notifications ({hotkey})",...a}=e,c=Tl(my,r),d=T1(r),p=g.useRef(null),m=g.useRef(null),v=g.useRef(null),y=g.useRef(null),w=ge(o,y,c.onViewportChange),x=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=c.toastCount>0;g.useEffect(()=>{const P=_=>{i.length!==0&&i.every(O=>_[O]||_.code===O)&&y.current?.focus()};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[i]),g.useEffect(()=>{const P=p.current,_=y.current;if(R&&P&&_){const M=()=>
55{if(!c.isClosePausedRef.current){const H=new CustomEvent(Rc);_.dispatchEvent(H),c.isClosePausedRef.current=!0}},O=()=>{if(c.isClosePausedRef.current){const H=new CustomEvent(Ec);_.dispatchEvent(H),c.isClosePausedRef.current=!1}},N=H=>{!P.contains(H.relatedTarget)&&O()},L=()=>{P.contains(document.activeElement)||O()};return P.addEventListener("focusin",M),P.addEventListener("focusout",N),P.addEventListener("pointermove",M),P.addEventListener("pointerleave",L),window.addEventListener("blur",M),window.addEventListener("focus",O),()=>{P.removeEventListener("focusin",M),P.removeEventListener("focusout",N),P.removeEventListener("pointermove",M),P.removeEventListener("pointerleave",L),window.removeEventListener("blur",M),window.removeEventListener("focus",O)}}},[R,c.isClosePausedRef]);const S=g.useCallback(({tabbingDirection:P})=>{const M=d().map(O=>{const N=O.ref.current,L=[N,...B1(N)];return P==="forwards"?L:L.reverse()});return(P==="forwards"?M.reverse():M).flat()},[d]);return g.useEffect(()=>{const P=y.current;if(P){const _=M=>{const O=M.altKey||M.ctrlKey||M.metaKey;if(M.key==="Tab"&&!O){const L=document.activeElement,H=M.shiftKey;if(M.target===P&&H){m.current?.focus();return}const Z=S({tabbingDirection:H?"backwards":"forwards"}),J=Z.findIndex(ae=>ae===L);ec(Z.slice(J+1))?M.preventDefault():H?m.current?.focus():v.current?.focus()}};return P.addEventListener("keydown",_),()=>P.removeEventListener("keydown",_)}},[d,S]),E.jsxs(fx,{ref:p,role:"region","aria-label":l.replace("{hotkey}",x),tabIndex:-1,style:{pointerEvents:R?void 0:"none"},children:[R&&E.jsx(Pc,{ref:m,onFocusFromOutsideViewport:()=>{const P=S({tabbingDirection:"forwards"});ec(P)}}),E.jsx(md.Slot,{scope:r,children:E.jsx(te.ol,{tabIndex:-1,...a,ref:w})}),R&&E.jsx(Pc,{ref:v,onFocusFromOutsideViewport:()=>{const P=S({tabbingDirection:"backwards"});ec(P)}})]})});vy.displayName=my;var yy="ToastFocusProxy",Pc=g.forwardRef((e,o)=>{const{__scopeToast:r,onFocusFromOutsideViewport:i,...l}=e,a=Tl(yy,r);return E.jsx(Cl,{tabIndex:0,...l,ref:o,style:{position:"fixed"},onFocus:c=>{const d=c.relatedTarget;!a.viewport?.contains(d)&&i()}})});Pc.displayName=yy;var mi="Toast",A1="toast.swipeStart",k1="toast.swipeMove",D1="toast.swipeCancel",N1="toast.swipeEnd",wy=g.forwardRef((e,o)=>{const{forceMount:r,open:i,defaultOpen:l,onOpenChange:a,...c}=e,[d,p]=ht({prop:i,defaultProp:l??!0,onChange:a,caller:mi});return E.jsx(Be,{present:r||d,children:E.jsx(L1,{open:d,...c,ref:o,onClose:()=>p(!1),onPause:je(e.onPause),onResume:je(e.onResume),onSwipeStart:B(e.onSwipeStart,m=>{m.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:B(e.onSwipeMove,m=>{const{x:v,y}=m.detail.delta;m.currentTarget.setAttribute("data-swipe","move"),m.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${v}px`),m.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${y}px`)}),onSwipeCancel:B(e.onSwipeCancel,m=>{m.currentTarget.setAttribute("data-swipe","cancel"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),m.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),m.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:B(e.onSwipeEnd,m=>{const{x:v,y}=m.detail.delta;m.currentTarget.setAttribute("data-swipe","end"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),m.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${v}px`),m.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${y}px`),p(!1)})})})});wy.displayName=mi;var[F1,b1]=hy(mi,{onClose(){}}),L1=g.forwardRef((e,o)=>{const{__scopeToast:r,type:i="foreground",duration:l,open:a,onClose:c,onEscapeKeyDown:d,onPause:p,onResume:m,onSwipeStart:v,onSwipeMove:y,onSwipeCancel:w,onSwipeEnd:x,...R}=e,S=Tl(mi,r),[P,_]=g.useState(null),M=ge(o,X=>_(X)),O=g.useRef(null),N=g.useRef(null),L=l||S.duration,H=g.useRef(0),$=g.useRef(L),Y=g.useRef(0),{onToastAdd:Z,onToastRemove:J}=S,ae=je(()=>{P?.contains(document.activeElement)&&S.viewport?.focus(),c()}),me=g.useCallback(X=>
55{!X||X===1/0||(window.clearTimeout(Y.current),H.current=new Date().getTime(),Y.current=window.setTimeout(ae,X))},[ae]);g.useEffect(()=>{const X=S.viewport;if(X){const ve=()=>{me($.current),m?.()},ne=()=>{const se=new Date().getTime()-H.current;$.current=$.current-se,window.clearTimeout(Y.current),p?.()};return X.addEventListener(Rc,ne),X.addEventListener(Ec,ve),()=>{X.removeEventListener(Rc,ne),X.removeEventListener(Ec,ve)}}},[S.viewport,L,p,m,me]),g.useEffect(()=>{a&&!S.isClosePausedRef.current&&me(L)},[a,L,S.isClosePausedRef,me]),g.useEffect(()=>(Z(),()=>J()),[Z,J]);const he=g.useMemo(()=>P?_y(P):null,[P]);return S.viewport?E.jsxs(E.Fragment,{children:[he&&E.jsx(j1,{__scopeToast:r,role:"status","aria-live":i==="foreground"?"assertive":"polite",children:he}),E.jsx(F1,{scope:r,onClose:ae,children:Un.createPortal(E.jsx(md.ItemSlot,{scope:r,children:E.jsx(dx,{asChild:!0,onEscapeKeyDown:B(d,()=>{S.isFocusedToastEscapeKeyDownRef.current||ae(),S.isFocusedToastEscapeKeyDownRef.current=!1}),children:E.jsx(te.li,{tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":S.swipeDirection,...R,ref:M,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:B(e.onKeyDown,X=>{X.key==="Escape"&&(d?.(X.nativeEvent),X.nativeEvent.defaultPrevented||(S.isFocusedToastEscapeKeyDownRef.current=!0,ae()))}),onPointerDown:B(e.onPointerDown,X=>{X.button===0&&(O.current={x:X.clientX,y:X.clientY})}),onPointerMove:B(e.onPointerMove,X=>{if(!O.current)return;const ve=X.clientX-O.current.x,ne=X.clientY-O.current.y,se=!!N.current,j=["left","right"].includes(S.swipeDirection),z=["left","up"].includes(S.swipeDirection)?Math.min:Math.max,K=j?z(0,ve):0,k=j?0:z(0,ne),V=X.pointerType==="touch"?10:2,ce={x:K,y:k},de={originalEvent:X,delta:ce};se?(N.current=ce,bs(k1,y,de,{discrete:!1})):dg(ce,S.swipeDirection,V)?(N.current=ce,bs(A1,v,de,{discrete:!1}),X.target.setPointerCapture(X.pointerId)):(Math.abs(ve)>V||Math.abs(ne)>V)&&(O.current=null)}),onPointerUp:B(e.onPointerUp,X=>{const ve=N.current,ne=X.target;if(ne.hasPointerCapture(X.pointerId)&&ne.releasePointerCapture(X.pointerId),N.current=null,O.current=null,ve){const se=X.currentTarget,j={originalEvent:X,delta:ve};dg(ve,S.swipeDirection,S.swipeThreshold)?bs(N1,x,j,{discrete:!0}):bs(D1,w,j,{discrete:!0}),se.addEventListener("click",z=>z.preventDefault(),{once:!0})}})})})}),S.viewport)})]}):null}),j1=e=>{const{__scopeToast:o,children:r,...i}=e,l=Tl(mi,o),[a,c]=g.useState(!1),[d,p]=g.useState(!1);return V1(()=>c(!0)),g.useEffect(()=>{const m=window.setTimeout(()=>p(!0),1e3);return()=>window.clearTimeout(m)},[]),d?null:E.jsx(lo,{asChild:!0,children:E.jsx(Cl,{...i,children:a&&E.jsxs(E.Fragment,{children:[l.label," ",r]})})})},$1="ToastTitle",Sy=g.forwardRef((e,o)=>{const{__scopeToast:r,...i}=e;return E.jsx(te.div,{...i,ref:o})});Sy.displayName=$1;var z1="ToastDescription",Cy=g.forwardRef((e,o)=>{const{__scopeToast:r,...i}=e;return E.jsx(te.div,{...i,ref:o})});Cy.displayName=z1;var xy="ToastAction",Ry=g.forwardRef((e,o)=>{const{altText:r,...i}=e;return r.trim()?E.jsx(Py,{altText:r,asChild:!0,children:E.jsx(vd,{...i,ref:o})}):(console.error(`Invalid prop \`altText\` supplied to \`${xy}\`. Expected non-empty \`string\`.`),null)});Ry.displayName=xy;var Ey="ToastClose",vd=g.forwardRef((e,o)=>{const{__scopeToast:r,...i}=e,l=b1(Ey,r);return E.jsx(Py,{asChild:!0,children:E.jsx(te.button,{type:"button",...i,ref:o,onClick:B(e.onClick,l.onClose)})})});vd.displayName=Ey;var Py=g.forwardRef((e,o)=>{const{__scopeToast:r,altText:i,...l}=e;return E.jsx(te.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":i||void 0,...l,ref:o})});function _y(e){const o=[];return Array.from(e.childNodes).forEach(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent&&o.push(i.textContent),H1(i)){const l=i.ariaHidden||i.hidden||i.style.display==="none",a=i.dataset.radixToastAnnounceExclude==="";if(!l)if(a){const c=i.dataset.radixToastAnnounceAlt;c&&o.push(c)}else o.push(..._y(i))}}),o}function bs(e,o,r,{discrete:i}){const l=r.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});o&&l.addEventListener(e,o,{once:!0}),i?jc(l,a):l.dispatchEvent(a)}var dg=(e,o,r=0)=>{const i=Math.abs(e.x),l=Math.abs(e.y),a=i>l;return o==="left"||o==="right"?a&&i>r:!a&&l>r};function V1(e=()=>{}){const o=je(e);$e(()=>{let r=0,i=0;return r=window.requestAnimationFrame(()=>i=window.requestAnimationFrame(o)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(i)}},[o])}
55function H1(e){return e.nodeType===e.ELEMENT_NODE}function B1(e){const o=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const l=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||l?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)o.push(r.currentNode);return o}function ec(e){const o=document.activeElement;return e.some(r=>r===o?!0:(r.focus(),document.activeElement!==o))}var SI=gy,CI=vy,xI=wy,RI=Sy,EI=Cy,PI=Ry,_I=vd,yd="Progress",wd=100,[U1]=He(yd),[W1,G1]=U1(yd),Ty=g.forwardRef((e,o)=>{const{__scopeProgress:r,value:i=null,max:l,getValueLabel:a=K1,...c}=e;(l||l===0)&&!fg(l)&&console.error(Q1(`${l}`,"Progress"));const d=fg(l)?l:wd;i!==null&&!pg(i,d)&&console.error(q1(`${i}`,"Progress"));const p=pg(i,d)?i:null,m=Ys(p)?a(p,d):void 0;return E.jsx(W1,{scope:r,value:p,max:d,children:E.jsx(te.div,{"aria-valuemax":d,"aria-valuemin":0,"aria-valuenow":Ys(p)?p:void 0,"aria-valuetext":m,role:"progressbar","data-state":Oy(p,d),"data-value":p??void 0,"data-max":d,...c,ref:o})})});Ty.displayName=yd;var My="ProgressIndicator",Iy=g.forwardRef((e,o)=>{const{__scopeProgress:r,...i}=e,l=G1(My,r);return E.jsx(te.div,{"data-state":Oy(l.value,l.max),"data-value":l.value??void 0,"data-max":l.max,...i,ref:o})});Iy.displayName=My;function K1(e,o){return`${Math.round(e/o*100)}%`}function Oy(e,o){return e==null?"indeterminate":e===o?"complete":"loading"}function Ys(e){return typeof e=="number"}function fg(e){return Ys(e)&&!isNaN(e)&&e>0}function pg(e,o){return Ys(e)&&!isNaN(e)&&e<=o&&e>=0}function Q1(e,o){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${o}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${wd}\`.`}function q1(e,o){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${o}\`. The \`value\` prop must be:
56  - a positive number
57  - less than the value passed to \`max\` (or ${wd} if no \`max\` prop is set)
58  - \`null\` or \`undefined\` if the progress is indeterminate.
59
60Defaulting to \`null\`.`}var TI=Ty,MI=Iy;function _c(e,[o,r]){return Math.min(r,Math.max(o,e))}var Y1=[" ","Enter","ArrowUp","ArrowDown"],X1=[" ","Enter"],pr="Select",[Ml,Il,Z1]=il(pr),[uo]=He(pr,[Z1,nn]),Ol=nn(),[J1,Gn]=uo(pr),[eT,tT]=uo(pr),Ay=e=>{const{__scopeSelect:o,children:r,open:i,defaultOpen:l,onOpenChange:a,value:c,defaultValue:d,onValueChange:p,dir:m,name:v,autoComplete:y,disabled:w,required:x,form:R}=e,S=Ol(o),[P,_]=g.useState(null),[M,O]=g.useState(null),[N,L]=g.useState(!1),H=ro(m),[$,Y]=ht({prop:i,defaultProp:l??!1,onChange:a,caller:pr}),[Z,J]=ht({prop:c,defaultProp:d,onChange:p,caller:pr}),ae=g.useRef(null),me=P?R||!!P.closest("form"):!0,[he,X]=g.useState(new Set),ve=Array.from(he).map(ne=>ne.props.value).join(";");return E.jsx(ui,{...S,children:E.jsxs(J1,{required:x,scope:o,trigger:P,onTriggerChange:_,valueNode:M,onValueNodeChange:O,valueNodeHasChildren:N,onValueNodeHasChildrenChange:L,contentId:St(),value:Z,onValueChange:J,open:$,onOpenChange:Y,dir:H,triggerPointerDownPosRef:ae,disabled:w,children:[E.jsx(Ml.Provider,{scope:o,children:E.jsx(eT,{scope:e.__scopeSelect,onNativeOptionAdd:g.useCallback(ne=>{X(se=>new Set(se).add(ne))},[]),onNativeOptionRemove:g.useCallback(ne=>{X(se=>{const j=new Set(se);return j.delete(ne),j})},[]),children:r})}),me?E.jsxs(Zy,{"aria-hidden":!0,required:x,tabIndex:-1,name:v,autoComplete:y,value:Z,onChange:ne=>J(ne.target.value),disabled:w,form:R,children:[Z===void 0?E.jsx("option",{value:""}):null,Array.from(he)]},ve):null]})})};Ay.displayName=pr;var ky="SelectTrigger",Dy=g.forwardRef((e,o)=>{const{__scopeSelect:r,disabled:i=!1,...l}=e,a=Ol(r),c=Gn(ky,r),d=c.disabled||i,p=ge(o,c.onTriggerChange),m=Il(r),v=g.useRef("touch"),[y,w,x]=ew(S=>{const P=m().filter(O=>!O.disabled),_=P.find(O=>O.value===c.value),M=tw(P,S,_);M!==void 0&&c.onValueChange(M.value)}),R=S=>{d||(c.onOpenChange(!0),x()),S&&(c.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return E.jsx(so,{asChild:!0,...a,children:E.jsx(te.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":Jy(c.value)?"":void 0,...l,ref:p,onClick:B(l.onClick,S=>
vendor: 16,081 bytes, line 60
60{S.currentTarget.focus(),v.current!=="mouse"&&R(S)}),onPointerDown:B(l.onPointerDown,S=>{v.current=S.pointerType;const P=S.target;P.hasPointerCapture(S.pointerId)&&P.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(R(S),S.preventDefault())}),onKeyDown:B(l.onKeyDown,S=>{const P=y.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&w(S.key),!(P&&S.key===" ")&&Y1.includes(S.key)&&(R(),S.preventDefault())})})})});Dy.displayName=ky;var Ny="SelectValue",Fy=g.forwardRef((e,o)=>{const{__scopeSelect:r,className:i,style:l,children:a,placeholder:c="",...d}=e,p=Gn(Ny,r),{onValueNodeHasChildrenChange:m}=p,v=a!==void 0,y=ge(o,p.onValueNodeChange);return $e(()=>{m(v)},[m,v]),E.jsx(te.span,{...d,ref:y,style:{pointerEvents:"none"},children:Jy(p.value)?E.jsx(E.Fragment,{children:c}):a})});Fy.displayName=Ny;var nT="SelectIcon",by=g.forwardRef((e,o)=>{const{__scopeSelect:r,children:i,...l}=e;return E.jsx(te.span,{"aria-hidden":!0,...l,ref:o,children:i||"▼"})});by.displayName=nT;var rT="SelectPortal",Ly=e=>E.jsx(lo,{asChild:!0,...e});Ly.displayName=rT;var hr="SelectContent",jy=g.forwardRef((e,o)=>{const r=Gn(hr,e.__scopeSelect),[i,l]=g.useState();if($e(()=>{l(new DocumentFragment)},[]),!r.open){const a=i;return a?Un.createPortal(E.jsx($y,{scope:e.__scopeSelect,children:E.jsx(Ml.Slot,{scope:e.__scopeSelect,children:E.jsx("div",{children:e.children})})}),a):null}return E.jsx(zy,{...e,ref:o})});jy.displayName=hr;var zt=10,[$y,Kn]=uo(hr),oT="SelectContentImpl",iT=zn("SelectContent.RemoveScroll"),zy=g.forwardRef((e,o)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:a,onPointerDownOutside:c,side:d,sideOffset:p,align:m,alignOffset:v,arrowPadding:y,collisionBoundary:w,collisionPadding:x,sticky:R,hideWhenDetached:S,avoidCollisions:P,..._}=e,M=Gn(hr,r),[O,N]=g.useState(null),[L,H]=g.useState(null),$=ge(o,q=>N(q)),[Y,Z]=g.useState(null),[J,ae]=g.useState(null),me=Il(r),[he,X]=g.useState(!1),ve=g.useRef(!1);g.useEffect(()=>{if(O)return fl(O)},[O]),sl();const ne=g.useCallback(q=>{const[ue,...Re]=me().map(Ne=>Ne.ref.current),[Ee]=Re.slice(-1),Me=document.activeElement;for(const Ne of q)if(Ne===Me||(Ne?.scrollIntoView({block:"nearest"}),Ne===ue&&L&&(L.scrollTop=0),Ne===Ee&&L&&(L.scrollTop=L.scrollHeight),Ne?.focus(),document.activeElement!==Me))return},[me,L]),se=g.useCallback(()=>ne([Y,O]),[ne,Y,O]);g.useEffect(()=>{he&&se()},[he,se]);const{onOpenChange:j,triggerPointerDownPosRef:z}=M;g.useEffect(()=>{if(O){let q={x:0,y:0};const ue=Ee=>{q={x:Math.abs(Math.round(Ee.pageX)-(z.current?.x??0)),y:Math.abs(Math.round(Ee.pageY)-(z.current?.y??0))}},Re=Ee=>{q.x<=10&&q.y<=10?Ee.preventDefault():O.contains(Ee.target)||j(!1),document.removeEventListener("pointermove",ue),z.current=null};return z.current!==null&&(document.addEventListener("pointermove",ue),document.addEventListener("pointerup",Re,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ue),document.removeEventListener("pointerup",Re,{capture:!0})}}},[O,j,z]),g.useEffect(()=>{const q=()=>j(!1);return window.addEventListener("blur",q),window.addEventListener("resize",q),()=>{window.removeEventListener("blur",q),window.removeEventListener("resize",q)}},[j]);const[K,k]=ew(q=>{const ue=me().filter(Me=>!Me.disabled),Re=ue.find(Me=>Me.ref.current===document.activeElement),Ee=tw(ue,q,Re);Ee&&setTimeout(()=>Ee.ref.current.focus())}),V=g.useCallback((q,ue,Re)=>{const Ee=!ve.current&&!Re;(M.value!==void 0&&M.value===ue||Ee)&&(Z(q),Ee&&(ve.current=!0))},[M.value]),ce=g.useCallback(()=>O?.focus(),[O]),de=g.useCallback((q,ue,Re)=>{const Ee=!ve.current&&!Re;(M.value!==void 0&&M.value===ue||Ee)&&ae(q)},[M.value]),xe=i==="popper"?Tc:Vy,Ce=xe===Tc?{side:d,sideOffset:p,align:m,alignOffset:v,arrowPadding:y,collisionBoundary:w,collisionPadding:x,sticky:R,hideWhenDetached:S,avoidCollisions:P}:{};return E.jsx($y,{scope:r,content:O,viewport:L,onViewportChange:H,itemRefCallback:V,selectedItem:Y,onItemLeave:ce,itemTextRefCallback:de,focusSelectedItem:se,selectedItemText:J,position:i,isPositioned:he,searchRef:K,children:E.jsx(pi,{as:iT,allowPinchZoom:!0,children:E.jsx(li,{asChild:!0,trapped:M.open,onMountAutoFocus:q=>{q.preventDefault()},onUnmountAutoFocus:B(l,q=>{M.trigger?.focus({preventScroll:!0}),q.preventDefault()}),children:E.jsx(Wn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:q=>q.preventDefault(),onDismiss:()=>M.onOpenChange(!1),children:E.jsx(xe,{role:"listbox",id:M.contentId,"data-state":M.open?"open":"closed",dir:M.dir,onContextMenu:q=>q.preventDefault(),..._,...Ce,onPlaced:()=>X(!0),ref:$,style:{display:"flex",flexDirection:"column",outline:"none",..._.style},onKeyDown:B(_.onKeyDown,q=>{const ue=q.ctrlKey||q.altKey||q.metaKey;if(q.key==="Tab"&&q.preventDefault(),!ue&&q.key.length===1&&k(q.key),["ArrowUp","ArrowDown","Home","End"].includes(q.key)){let Ee=me().filter(Me=>!Me.disabled).map(Me=>Me.ref.current);if(["ArrowUp","End"].includes(q.key)&&(Ee=Ee.slice().reverse()),["ArrowUp","ArrowDown"].includes(q.key)){const Me=q.target,Ne=Ee.indexOf(Me);Ee=Ee.slice(Ne+1)}setTimeout(()=>ne(Ee)),q.preventDefault()}})})})})})})});zy.displayName=oT;var sT="SelectItemAlignedPosition",Vy=g.forwardRef((e,o)=>{const{__scopeSelect:r,onPlaced:i,...l}=e,a=Gn(hr,r),c=Kn(hr,r),[d,p]=g.useState(null),[m,v]=g.useState(null),y=ge(o,$=>v($)),w=Il(r),x=g.useRef(!1),R=g.useRef(!0),{viewport:S,selectedItem:P,selectedItemText:_,focusSelectedItem:M}=c,O=g.useCallback(()=>{if(a.trigger&&a.valueNode&&d&&m&&S&&P&&_){const $=a.trigger.getBoundingClientRect(),Y=m.getBoundingClientRect(),Z=a.valueNode.getBoundingClientRect(),J=_.getBoundingClientRect();if(a.dir!=="rtl"){const Me=J.left-Y.left,Ne=Z.left-Me,Xe=$.left-Ne,kt=$.width+Xe,vr=Math.max(kt,Y.width),yr=window.innerWidth-zt,qn=_c(Ne,[zt,Math.max(zt,yr-vr)]);d.style.minWidth=kt+"px",d.style.left=qn+"px"}else{const Me=Y.right-J.right,Ne=window.innerWidth-Z.right-Me,Xe=window.innerWidth-$.right-Ne,kt=$.width+Xe,vr=Math.max(kt,Y.width),yr=window.innerWidth-zt,qn=_c(Ne,[zt,Math.max(zt,yr-vr)]);d.style.minWidth=kt+"px",d.style.right=qn+"px"}const ae=w(),me=window.innerHeight-zt*2,he=S.scrollHeight,X=window.getComputedStyle(m),ve=parseInt(X.borderTopWidth,10),ne=parseInt(X.paddingTop,10),se=parseInt(X.borderBottomWidth,10),j=parseInt(X.paddingBottom,10),z=ve+ne+he+j+se,K=Math.min(P.offsetHeight*5,z),k=window.getComputedStyle(S),V=parseInt(k.paddingTop,10),ce=parseInt(k.paddingBottom,10),de=$.top+$.height/2-zt,xe=me-de,Ce=P.offsetHeight/2,q=P.offsetTop+Ce,ue=ve+ne+q,Re=z-ue;if(ue<=de){const Me=ae.length>0&&P===ae[ae.length-1].ref.current;d.style.bottom="0px";const Ne=m.clientHeight-S.offsetTop-S.offsetHeight,Xe=Math.max(xe,Ce+(Me?ce:0)+Ne+se),kt=ue+Xe;d.style.height=kt+"px"}else{const Me=ae.length>0&&P===ae[0].ref.current;d.style.top="0px";const Xe=Math.max(de,ve+S.offsetTop+(Me?V:0)+Ce)+Re;d.style.height=Xe+"px",S.scrollTop=ue-de+S.offsetTop}d.style.margin=`${zt}px 0`,d.style.minHeight=K+"px",d.style.maxHeight=me+"px",i?.(),requestAnimationFrame(()=>x.current=!0)}},[w,a.trigger,a.valueNode,d,m,S,P,_,a.dir,i]);$e(()=>O(),[O]);const[N,L]=g.useState();$e(()=>{m&&L(window.getComputedStyle(m).zIndex)},[m]);const H=g.useCallback($=>{$&&R.current===!0&&(O(),M?.(),R.current=!1)},[O,M]);return E.jsx(aT,{scope:r,contentWrapper:d,shouldExpandOnScrollRef:x,onScrollButtonChange:H,children:E.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:E.jsx(te.div,{...l,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});Vy.displayName=sT;var lT="SelectPopperPosition",Tc=g.forwardRef((e,o)=>{const{__scopeSelect:r,align:i="start",collisionPadding:l=zt,...a}=e,c=Ol(r);return E.jsx(ci,{...c,...a,ref:o,align:i,collisionPadding:l,style:{boxSizing:"border-box",...a.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)"}})});Tc.displayName=lT;var[aT,Sd]=uo(hr,{}),Mc="SelectViewport",Hy=g.forwardRef((e,o)=>{const{__scopeSelect:r,nonce:i,...l}=e,a=Kn(Mc,r),c=Sd(Mc,r),d=ge(o,a.onViewportChange),p=g.useRef(0);return E.jsxs(E.Fragment,{children:[E.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:i}),E.jsx(Ml.Slot,{scope:r,children:E.jsx(te.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:B(l.onScroll,m=>{const v=m.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:w}=c;if(w?.current&&y){const x=Math.abs(p.current-v.scrollTop);if(x>0){const R=window.innerHeight-zt*2,S=parseFloat(y.style.minHeight),P=parseFloat(y.style.height),_=Math.max(S,P);if(_<R){const M=_+x,O=Math.min(R,M),N=M-O;y.style.height=O+"px",y.style.bottom==="0px"&&(v.scrollTop=N>0?N:0,y.style.justifyContent="flex-end")}}}p.current=v.scrollTop})})})]})});Hy.displayName=Mc;var By="SelectGroup",[uT,cT]=uo(By),dT=g.forwardRef((e,o)=>{const{__scopeSelect:r,...i}=e,l=St();return E.jsx(uT,{scope:r,id:l,children:E.jsx(te.div,{role:"group","aria-labelledby":l,...i,ref:o})})});dT.displayName=By;var Uy="SelectLabel",Wy=g.forwardRef((e,o)=>{const{__scopeSelect:r,...i}=e,l=cT(Uy,r);return E.jsx(te.div,{id:l.id,...i,ref:o})});Wy.displayName=Uy;var Xs="SelectItem",[fT,Gy]=uo(Xs),Ky=g.forwardRef((e,o)=>{const{__scopeSelect:r,value:i,disabled:l=!1,textValue:a,...c}=e,d=Gn(Xs,r),p=Kn(Xs,r),m=d.value===i,[v,y]=g.useState(a??""),[w,x]=g.useState(!1),R=ge(o,M=>p.itemRefCallback?.(M,i,l)),S=St(),P=g.useRef("touch"),_=()=>{l||(d.onValueChange(i),d.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return E.jsx(fT,{scope:r,value:i,disabled:l,textId:S,isSelected:m,onItemTextChange:g.useCallback(M=>{y(O=>O||(M?.textContent??"").trim())},[]),children:E.jsx(Ml.ItemSlot,{scope:r,value:i,disabled:l,textValue:v,children:E.jsx(te.div,{role:"option","aria-labelledby":S,"data-highlighted":w?"":void 0,"aria-selected":m&&w,"data-state":m?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...c,ref:R,onFocus:B(c.onFocus,()=>x(!0)),onBlur:B(c.onBlur,()=>x(!1)),onClick:B(c.onClick,()=>{P.current!=="mouse"&&_()}),onPointerUp:B(c.onPointerUp,()=>{P.current==="mouse"&&_()}),onPointerDown:B(c.onPointerDown,M=>{P.current=M.pointerType}),onPointerMove:B(c.onPointerMove,M=>{P.current=M.pointerType,l?p.onItemLeave?.():P.current==="mouse"&&M.currentTarget.focus({preventScroll:!0})}),onPointerLeave:B(c.onPointerLeave,M=>{M.currentTarget===document.activeElement&&p.onItemLeave?.()}),onKeyDown:B(c.onKeyDown,M=>{p.searchRef?.current!==""&&M.key===" "||(X1.includes(M.key)&&_(),M.key===" "&&M.preventDefault())})})})})});Ky.displayName=Xs;var Jo="SelectItemText",Qy=g.forwardRef((e,o)=>{const{__scopeSelect:r,className:i,style:l,...a}=e,c=Gn(Jo,r),d=Kn(Jo,r),p=Gy(Jo,r),m=tT(Jo,r),[v,y]=g.useState(null),w=ge(o,_=>y(_),p.onItemTextChange,_=>d.itemTextRefCallback?.(_,p.value,p.disabled)),x=v?.textContent,R=g.useMemo(()=>E.jsx("option",{value:p.value,disabled:p.disabled,children:x},p.value),[p.disabled,p.value,x]),{onNativeOptionAdd:S,onNativeOptionRemove:P}=m;return $e(()=>(S(R),()=>P(R)),[S,P,R]),E.jsxs(E.Fragment,{children:[E.jsx(te.span,{id:p.textId,...a,ref:w}),p.isSelected&&c.valueNode&&!c.valueNodeHasChildren?Un.createPortal(a.children,c.valueNode):null]})});Qy.displayName=Jo;var qy="SelectItemIndicator",pT=g.forwardRef((e,o)=>{const{__scopeSelect:r,...i}=e;return Gy(qy,r).isSelected?E.jsx(te.span,{"aria-hidden":!0,...i,ref:o}):null});pT.displayName=qy;var Ic="SelectScrollUpButton",hT=g.forwardRef((e,o)=>{const r=Kn(Ic,e.__scopeSelect),i=Sd(Ic,e.__scopeSelect),[l,a]=g.useState(!1),c=ge(o,i.onScrollButtonChange);return $e(()=>{if(r.viewport&&r.isPositioned){let d=function(){const m=p.scrollTop>0;a(m)};const p=r.viewport;return d(),p.addEventListener("scroll",d),()=>p.removeEventListener("scroll",d)}},[r.viewport,r.isPositioned]),l?E.jsx(Yy,{...e,ref:c,onAutoScroll:()=>{const{viewport:d,selectedItem:p}=r;d&&p&&(d.scrollTop=d.scrollTop-p.offsetHeight)}}):null});hT.displayName=Ic;var Oc="SelectScrollDownButton",gT=g.forwardRef((e,o)=>{const r=Kn(Oc,e.__scopeSelect),i=Sd(Oc,e.__scopeSelect),[l,a]=g.useState(!1),c=ge(o,i.onScrollButtonChange);return $e(()=>{if(r.viewport&&r.isPositioned){let d=function(){const m=p.scrollHeight-p.clientHeight,v=Math.ceil(p.scrollTop)<m;a(v)};const p=r.viewport;return d(),p.addEventListener("scroll",d),()=>p.removeEventListener("scroll",d)}},[r.viewport,r.isPositioned]),l?E.jsx(Yy,{...e,ref:c,onAutoScroll:()=>{const{viewport:d,selectedItem:p}=r;d&&p&&(d.scrollTop=d.scrollTop+p.offsetHeight)}}):null});gT.displayName=Oc;var Yy=g.forwardRef((e,o)=>{const{__scopeSelect:r,onAutoScroll:i,...l}=e,a=Kn("SelectScrollButton",r),c=g.useRef(null),d=Il(r),p=g.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return g.useEffect(()=>()=>p(),[p]),$e(()=>{d().find(v=>v.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[d]),E.jsx(te.div,{"aria-hidden":!0,...l,ref:o,style:{flexShrink:0,...l.style},onPointerDown:B(l.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(i,50))}),onPointerMove:B(l.onPointerMove,()=>{a.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(i,50))}),onPointerLeave:B(l.onPointerLeave,()=>{p()})})}),mT="SelectSeparator",Xy=g.forwardRef((e,o)=>{const{__scopeSelect:r,...i}=e;return E.jsx(te.div,{"aria-hidden":!0,...i,ref:o})});Xy.displayName=mT;var Ac="SelectArrow",vT=g.forwardRef((e,o)=>{const{__scopeSelect:r,...i}=e,l=Ol(r),a=Gn(Ac,r),c=Kn(Ac,r);return a.open&&c.position==="popper"?E.jsx(di,{...l,...i,ref:o}):null});vT.displayName=Ac;var yT="SelectBubbleInput",Zy=g.forwardRef(({__scopeSelect:e,value:o,...r},i)=>{const l=g.useRef(null),a=ge(i,l),c=Pl(o);return g.useEffect(()=>{const d=l.current;if(!d)return;const p=window.HTMLSelectElement.prototype,v=Object.getOwnPropertyDescriptor(p,"value").set;if(c!==o&&v){const y=new Event("change",{bubbles:!0});v.call(d,o),d.dispatchEvent(y)}},[c,o]),E.jsx(te.select,{...r,style:{...ey,...r.style},ref:a,defaultValue:o})});Zy.displayName=yT;function Jy(e){return e===""||e===void 0}function ew(e){const o=je(e),r=g.useRef(""),i=g.useRef(0),l=g.useCallback(c=>{const d=r.current+c;o(d),(function p(m){r.current=m,window.clearTimeout(i.current),m!==""&&(i.current=window.setTimeout(()=>p(""),1e3))})(d)},[o]),a=g.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,l,a]}function tw(e,o,r){const l=o.length>1&&Array.from(o).every(m=>m===o[0])?o[0]:o,a=r?e.indexOf(r):-1;let c=wT(e,Math.max(a,0));l.length===1&&(c=c.filter(m=>m!==r));const p=c.find(m=>m.textValue.toLowerCase().startsWith(l.toLowerCase()));return p!==r?p:void 0}function wT(e,o){return e.map((r,i)=>e[(o+i)%e.length])}var II=Ay,OI=Dy,AI=Fy,kI=by,DI=Ly,NI=jy,FI=Hy,bI=Wy,LI=Ky,jI=Qy,$I=Xy,Al="Switch",[ST]=He(Al),[CT,xT]=ST(Al),nw=g.forwardRef((e,o)=>{const{__scopeSwitch:r,name:i,checked:l,defaultChecked:a,required:c,disabled:d,value:p="on",onCheckedChange:m,form:v,...y}=e,[w,x]=g.useState(null),R=ge(o,O=>x(O)),S=g.useRef(!1),P=w?v||!!w.closest("form"):!0,[_,M]=ht({prop:l,defaultProp:a??!1,onChange:m,caller:Al});return E.jsxs(CT,{scope:r,checked:_,disabled:d,children:[E.jsx(te.button,{type:"button",role:"switch","aria-checked":_,"aria-required":c,"data-state":sw(_),"data-disabled":d?"":void 0,disabled:d,value:p,...y,ref:R,onClick:B(e.onClick,O=>{M(N=>
vendor: 4,148 bytes, lines 60-66
60!N),P&&(S.current=O.isPropagationStopped(),S.current||O.stopPropagation())})}),P&&E.jsx(iw,{control:w,bubbles:!S.current,name:i,value:p,checked:_,required:c,disabled:d,form:v,style:{transform:"translateX(-100%)"}})]})});nw.displayName=Al;var rw="SwitchThumb",ow=g.forwardRef((e,o)=>{const{__scopeSwitch:r,...i}=e,l=xT(rw,r);return E.jsx(te.span,{"data-state":sw(l.checked),"data-disabled":l.disabled?"":void 0,...i,ref:o})});ow.displayName=rw;var RT="SwitchBubbleInput",iw=g.forwardRef(({__scopeSwitch:e,control:o,checked:r,bubbles:i=!0,...l},a)=>{const c=g.useRef(null),d=ge(c,a),p=Pl(r),m=dl(o);return g.useEffect(()=>{const v=c.current;if(!v)return;const y=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(y,"checked").set;if(p!==r&&x){const R=new Event("click",{bubbles:i});x.call(v,r),v.dispatchEvent(R)}},[p,r,i]),E.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...l,tabIndex:-1,ref:d,style:{...l.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});iw.displayName=RT;function sw(e){return e?"checked":"unchecked"}var zI=nw,VI=ow,lw="AlertDialog",[ET]=He(lw,[Rv]),mn=Rv(),aw=e=>{const{__scopeAlertDialog:o,...r}=e,i=mn(o);return E.jsx(W_,{...i,...r,modal:!0})};aw.displayName=lw;var PT="AlertDialogTrigger",uw=g.forwardRef((e,o)=>{const{__scopeAlertDialog:r,...i}=e,l=mn(r);return E.jsx(G_,{...l,...i,ref:o})});uw.displayName=PT;var _T="AlertDialogPortal",cw=e=>{const{__scopeAlertDialog:o,...r}=e,i=mn(o);return E.jsx(K_,{...i,...r})};cw.displayName=_T;var TT="AlertDialogOverlay",dw=g.forwardRef((e,o)=>{const{__scopeAlertDialog:r,...i}=e,l=mn(r);return E.jsx(Q_,{...l,...i,ref:o})});dw.displayName=TT;var Xr="AlertDialogContent",[MT,IT]=ET(Xr),OT=Lc("AlertDialogContent"),fw=g.forwardRef((e,o)=>{const{__scopeAlertDialog:r,children:i,...l}=e,a=mn(r),c=g.useRef(null),d=ge(o,c),p=g.useRef(null);return E.jsx(V_,{contentName:Xr,titleName:pw,docsSlug:"alert-dialog",children:E.jsx(MT,{scope:r,cancelRef:p,children:E.jsxs(q_,{role:"alertdialog",...a,...l,ref:d,onOpenAutoFocus:B(l.onOpenAutoFocus,m=>{m.preventDefault(),p.current?.focus({preventScroll:!0})}),onPointerDownOutside:m=>m.preventDefault(),onInteractOutside:m=>m.preventDefault(),children:[E.jsx(OT,{children:i}),E.jsx(kT,{contentRef:c})]})})})});fw.displayName=Xr;var pw="AlertDialogTitle",hw=g.forwardRef((e,o)=>{const{__scopeAlertDialog:r,...i}=e,l=mn(r);return E.jsx(Y_,{...l,...i,ref:o})});hw.displayName=pw;var gw="AlertDialogDescription",mw=g.forwardRef((e,o)=>{const{__scopeAlertDialog:r,...i}=e,l=mn(r);return E.jsx(X_,{...l,...i,ref:o})});mw.displayName=gw;var AT="AlertDialogAction",vw=g.forwardRef((e,o)=>{const{__scopeAlertDialog:r,...i}=e,l=mn(r);return E.jsx($v,{...l,...i,ref:o})});vw.displayName=AT;var yw="AlertDialogCancel",ww=g.forwardRef((e,o)=>{const{__scopeAlertDialog:r,...i}=e,{cancelRef:l}=IT(yw,r),a=mn(r),c=ge(o,l);return E.jsx($v,{...a,...i,ref:c})});ww.displayName=yw;var kT=({contentRef:e})=>{const o=`\`${Xr}\` requires a description for the component to be accessible for screen reader users.
61
62You can add a description to the \`${Xr}\` by passing a \`${gw}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
63
64Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Xr}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
65
66For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return g.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(o)},[o,e]),null},HI=aw,BI=uw,UI=cw,WI=dw,GI=fw,KI=vw,QI=ww,qI=hw,YI=mw;function DT(e,o){return g.useReducer((r,i)=>o[r][i]??r,e)}var Cd="ScrollArea",[Sw]=He(Cd),[NT,At]=Sw(Cd),Cw=g.forwardRef((e,o)=>{const{__scopeScrollArea:r,type:i="hover",dir:l,scrollHideDelay:a=600,...c}=e,[d,p]=g.useState(null),[m,v]=g.useState(null),[y,w]=g.useState(null),[x,R]=g.useState(null),[S,P]=g.useState(null),[_,M
vendor: 10,300 bytes, line 66
66]=g.useState(0),[O,N]=g.useState(0),[L,H]=g.useState(!1),[$,Y]=g.useState(!1),Z=ge(o,ae=>p(ae)),J=ro(l);return E.jsx(NT,{scope:r,type:i,dir:J,scrollHideDelay:a,scrollArea:d,viewport:m,onViewportChange:v,content:y,onContentChange:w,scrollbarX:x,onScrollbarXChange:R,scrollbarXEnabled:L,onScrollbarXEnabledChange:H,scrollbarY:S,onScrollbarYChange:P,scrollbarYEnabled:$,onScrollbarYEnabledChange:Y,onCornerWidthChange:M,onCornerHeightChange:N,children:E.jsx(te.div,{dir:J,...c,ref:Z,style:{position:"relative","--radix-scroll-area-corner-width":_+"px","--radix-scroll-area-corner-height":O+"px",...e.style}})})});Cw.displayName=Cd;var xw="ScrollAreaViewport",Rw=g.forwardRef((e,o)=>{const{__scopeScrollArea:r,children:i,nonce:l,...a}=e,c=At(xw,r),d=g.useRef(null),p=ge(o,d,c.onViewportChange);return E.jsxs(E.Fragment,{children:[E.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),E.jsx(te.div,{"data-radix-scroll-area-viewport":"",...a,ref:p,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:E.jsx("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});Rw.displayName=xw;var rn="ScrollAreaScrollbar",FT=g.forwardRef((e,o)=>{const{forceMount:r,...i}=e,l=At(rn,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:c}=l,d=e.orientation==="horizontal";return g.useEffect(()=>(d?a(!0):c(!0),()=>{d?a(!1):c(!1)}),[d,a,c]),l.type==="hover"?E.jsx(bT,{...i,ref:o,forceMount:r}):l.type==="scroll"?E.jsx(LT,{...i,ref:o,forceMount:r}):l.type==="auto"?E.jsx(Ew,{...i,ref:o,forceMount:r}):l.type==="always"?E.jsx(xd,{...i,ref:o}):null});FT.displayName=rn;var bT=g.forwardRef((e,o)=>{const{forceMount:r,...i}=e,l=At(rn,e.__scopeScrollArea),[a,c]=g.useState(!1);return g.useEffect(()=>{const d=l.scrollArea;let p=0;if(d){const m=()=>{window.clearTimeout(p),c(!0)},v=()=>{p=window.setTimeout(()=>c(!1),l.scrollHideDelay)};return d.addEventListener("pointerenter",m),d.addEventListener("pointerleave",v),()=>{window.clearTimeout(p),d.removeEventListener("pointerenter",m),d.removeEventListener("pointerleave",v)}}},[l.scrollArea,l.scrollHideDelay]),E.jsx(Be,{present:r||a,children:E.jsx(Ew,{"data-state":a?"visible":"hidden",...i,ref:o})})}),LT=g.forwardRef((e,o)=>{const{forceMount:r,...i}=e,l=At(rn,e.__scopeScrollArea),a=e.orientation==="horizontal",c=Dl(()=>p("SCROLL_END"),100),[d,p]=DT("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return g.useEffect(()=>{if(d==="idle"){const m=window.setTimeout(()=>p("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(m)}},[d,l.scrollHideDelay,p]),g.useEffect(()=>{const m=l.viewport,v=a?"scrollLeft":"scrollTop";if(m){let y=m[v];const w=()=>{const x=m[v];y!==x&&(p("SCROLL"),c()),y=x};return m.addEventListener("scroll",w),()=>m.removeEventListener("scroll",w)}},[l.viewport,a,p,c]),E.jsx(Be,{present:r||d!=="hidden",children:E.jsx(xd,{"data-state":d==="hidden"?"hidden":"visible",...i,ref:o,onPointerEnter:B(e.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:B(e.onPointerLeave,()=>p("POINTER_LEAVE"))})})}),Ew=g.forwardRef((e,o)=>{const r=At(rn,e.__scopeScrollArea),{forceMount:i,...l}=e,[a,c]=g.useState(!1),d=e.orientation==="horizontal",p=Dl(()=>{if(r.viewport){const m=r.viewport.offsetWidth<r.viewport.scrollWidth,v=r.viewport.offsetHeight<r.viewport.scrollHeight;c(d?m:v)}},10);return eo(r.viewport,p),eo(r.content,p),E.jsx(Be,{present:i||a,children:E.jsx(xd,{"data-state":a?"visible":"hidden",...l,ref:o})})}),xd=g.forwardRef((e,o)=>{const{orientation:r="vertical",...i}=e,l=At(rn,e.__scopeScrollArea),a=g.useRef(null),c=g.useRef(0),[d,p]=g.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),m=Mw(d.viewport,d.content),v={...i,sizes:d,onSizesChange:p,hasThumb:m>0&&m<1,onThumbChange:w=>a.current=w,onThumbPointerUp:()=>c.current=0,onThumbPointerDown:w=>c.current=w};function y(w,x){return UT(w,c.current,d,x)}return r==="horizontal"?E.jsx(jT,{...v,ref:o,onThumbPositionChange:()=>{if(l.viewport&&a.current){const w=l.viewport.scrollLeft,x=hg(w,d,l.dir);a.current.style.transform=`translate3d(${x}px, 0, 0)`}},onWheelScroll:w=>{l.viewport&&(l.viewport.scrollLeft=w)},onDragScroll:w=>{l.viewport&&(l.viewport.scrollLeft=y(w,l.dir))}}):r==="vertical"?E.jsx($T,{...v,ref:o,onThumbPositionChange:()=>{if(l.viewport&&a.current){const w=l.viewport.scrollTop,x=hg(w,d);a.current.style.transform=`translate3d(0, ${x}px, 0)`}},onWheelScroll:w=>{l.viewport&&(l.viewport.scrollTop=w)},onDragScroll:w=>{l.viewport&&(l.viewport.scrollTop=y(w))}}):null}),jT=g.forwardRef((e,o)=>{const{sizes:r,onSizesChange:i,...l}=e,a=At(rn,e.__scopeScrollArea),[c,d]=g.useState(),p=g.useRef(null),m=ge(o,p,a.onScrollbarXChange);return g.useEffect(()=>{p.current&&d(getComputedStyle(p.current))},[p]),E.jsx(_w,{"data-orientation":"horizontal",...l,ref:m,sizes:r,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":kl(r)+"px",...e.style},onThumbPointerDown:v=>e.onThumbPointerDown(v.x),onDragScroll:v=>e.onDragScroll(v.x),onWheelScroll:(v,y)=>{if(a.viewport){const w=a.viewport.scrollLeft+v.deltaX;e.onWheelScroll(w),Ow(w,y)&&v.preventDefault()}},onResize:()=>{p.current&&a.viewport&&c&&i({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:p.current.clientWidth,paddingStart:Js(c.paddingLeft),paddingEnd:Js(c.paddingRight)}})}})}),$T=g.forwardRef((e,o)=>{const{sizes:r,onSizesChange:i,...l}=e,a=At(rn,e.__scopeScrollArea),[c,d]=g.useState(),p=g.useRef(null),m=ge(o,p,a.onScrollbarYChange);return g.useEffect(()=>{p.current&&d(getComputedStyle(p.current))},[p]),E.jsx(_w,{"data-orientation":"vertical",...l,ref:m,sizes:r,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":kl(r)+"px",...e.style},onThumbPointerDown:v=>e.onThumbPointerDown(v.y),onDragScroll:v=>e.onDragScroll(v.y),onWheelScroll:(v,y)=>{if(a.viewport){const w=a.viewport.scrollTop+v.deltaY;e.onWheelScroll(w),Ow(w,y)&&v.preventDefault()}},onResize:()=>{p.current&&a.viewport&&c&&i({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:p.current.clientHeight,paddingStart:Js(c.paddingTop),paddingEnd:Js(c.paddingBottom)}})}})}),[zT,Pw]=Sw(rn),_w=g.forwardRef((e,o)=>{const{__scopeScrollArea:r,sizes:i,hasThumb:l,onThumbChange:a,onThumbPointerUp:c,onThumbPointerDown:d,onThumbPositionChange:p,onDragScroll:m,onWheelScroll:v,onResize:y,...w}=e,x=At(rn,r),[R,S]=g.useState(null),P=ge(o,Z=>S(Z)),_=g.useRef(null),M=g.useRef(""),O=x.viewport,N=i.content-i.viewport,L=je(v),H=je(p),$=Dl(y,10);function Y(Z){if(_.current){const J=Z.clientX-_.current.left,ae=Z.clientY-_.current.top;m({x:J,y:ae})}}return g.useEffect(()=>{const Z=J=>{const ae=J.target;R?.contains(ae)&&L(J,N)};return document.addEventListener("wheel",Z,{passive:!1}),()=>document.removeEventListener("wheel",Z,{passive:!1})},[O,R,N,L]),g.useEffect(H,[i,H]),eo(R,$),eo(x.content,$),E.jsx(zT,{scope:r,scrollbar:R,hasThumb:l,onThumbChange:je(a),onThumbPointerUp:je(c),onThumbPositionChange:H,onThumbPointerDown:je(d),children:E.jsx(te.div,{...w,ref:P,style:{position:"absolute",...w.style},onPointerDown:B(e.onPointerDown,Z=>{Z.button===0&&(Z.target.setPointerCapture(Z.pointerId),_.current=R.getBoundingClientRect(),M.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",x.viewport&&(x.viewport.style.scrollBehavior="auto"),Y(Z))}),onPointerMove:B(e.onPointerMove,Y),onPointerUp:B(e.onPointerUp,Z=>{const J=Z.target;J.hasPointerCapture(Z.pointerId)&&J.releasePointerCapture(Z.pointerId),document.body.style.webkitUserSelect=M.current,x.viewport&&(x.viewport.style.scrollBehavior=""),_.current=null})})})}),Zs="ScrollAreaThumb",VT=g.forwardRef((e,o)=>{const{forceMount:r,...i}=e,l=Pw(Zs,e.__scopeScrollArea);return E.jsx(Be,{present:r||l.hasThumb,children:E.jsx(HT,{ref:o,...i})})}),HT=g.forwardRef((e,o)=>{const{__scopeScrollArea:r,style:i,...l}=e,a=At(Zs,r),c=Pw(Zs,r),{onThumbPositionChange:d}=c,p=ge(o,y=>c.onThumbChange(y)),m=g.useRef(void 0),v=Dl(()=>{m.current&&(m.current(),m.current=void 0)},100);return g.useEffect(()=>{const y=a.viewport;if(y){const w=()=>{if(v(),!m.current){const x=WT(y,d);m.current=x,d()}};return d(),y.addEventListener("scroll",w),()=>y.removeEventListener("scroll",w)}},[a.viewport,v,d]),E.jsx(te.div,{"data-state":c.hasThumb?"visible":"hidden",...l,ref:p,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:B(e.onPointerDownCapture,y=>{const x=y.target.getBoundingClientRect(),R=y.clientX-x.left,S=y.clientY-x.top;c.onThumbPointerDown({x:R,y:S})}),onPointerUp:B(e.onPointerUp,c.onThumbPointerUp)})});VT.displayName=Zs;var Rd="ScrollAreaCorner",Tw=g.forwardRef((e,o)=>{const r=At(Rd,e.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&i?E.jsx(BT,{...e,ref:o}):null});Tw.displayName=Rd;var BT=g.forwardRef((e,o)=>{const{__scopeScrollArea:r,...i}=e,l=At(Rd,r),[a,c]=g.useState(0),[d,p]=g.useState(0),m=!!(a&&d);return eo(l.scrollbarX,()=>{const v=l.scrollbarX?.offsetHeight||0;l.onCornerHeightChange(v),p(v)}),eo(l.scrollbarY,()=>{const v=l.scrollbarY?.offsetWidth||0;l.onCornerWidthChange(v),c(v)}),m?E.jsx(te.div,{...i,ref:o,style:{width:a,height:d,position:"absolute",right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Js(e){return e?parseInt(e,10):0}function Mw(e,o){const r=e/o;return isNaN(r)?0:r}function kl(e){const o=Mw(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=(e.scrollbar.size-r)*o;return Math.max(i,18)}function UT(e,o,r,i="ltr"){const l=kl(r),a=l/2,c=o||a,d=l-c,p=r.scrollbar.paddingStart+c,m=r.scrollbar.size-r.scrollbar.paddingEnd-d,v=r.content-r.viewport,y=i==="ltr"?[0,v]:[v*-1,0];return Iw([p,m],y)(e)}
66function hg(e,o,r="ltr"){const i=kl(o),l=o.scrollbar.paddingStart+o.scrollbar.paddingEnd,a=o.scrollbar.size-l,c=o.content-o.viewport,d=a-i,p=r==="ltr"?[0,c]:[c*-1,0],m=_c(e,p);return Iw([0,c],[0,d])(m)}function Iw(e,o){return r=>{if(e[0]===e[1]||o[0]===o[1])return o[0];const i=(o[1]-o[0])/(e[1]-e[0]);return o[0]+i*(r-e[0])}}function Ow(e,o){return e>0&&e<o}var WT=(e,o=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},i=0;return(function l(){const a={left:e.scrollLeft,top:e.scrollTop},c=r.left!==a.left,d=r.top!==a.top;(c||d)&&o(),r=a,i=window.requestAnimationFrame(l)})(),()=>window.cancelAnimationFrame(i)};function Dl(e,o){const r=je(e),i=g.useRef(0);return g.useEffect(()=>()=>window.clearTimeout(i.current),[]),g.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(r,o)},[r,o])}function eo(e,o){const r=je(o);$e(()=>{let i=0;if(e){const l=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return l.observe(e),()=>{window.cancelAnimationFrame(i),l.unobserve(e)}}},[e,r])}var XI=Cw,ZI=Rw,JI=Tw,tc,Nl="HoverCard",[Aw]=He(Nl,[nn]),Fl=nn(),[GT,Ed]=Aw(Nl),kw=e=>{const{__scopeHoverCard:o,children:r,open:i,defaultOpen:l,onOpenChange:a,openDelay:c=700,closeDelay:d=300}=e,p=Fl(o),m=g.useRef(0),v=g.useRef(0),y=g.useRef(!1),w=g.useRef(!1),[x,R]=ht({prop:i,defaultProp:l??!1,onChange:a,caller:Nl}),S=g.useCallback(()=>{clearTimeout(v.current),m.current=window.setTimeout(()=>R(!0),c)},[c,R]),P=g.useCallback(()=>{clearTimeout(m.current),!y.current&&!w.current&&(v.current=window.setTimeout(()=>R(!1),d))},[d,R]),_=g.useCallback(()=>R(!1),[R]);return g.useEffect(()=>()=>{clearTimeout(m.current),clearTimeout(v.current)},[]),E.jsx(GT,{scope:o,open:x,onOpenChange:R,onOpen:S,onClose:P,onDismiss:_,hasSelectionRef:y,isPointerDownOnContentRef:w,children:E.jsx(ui,{...p,children:r})})};kw.displayName=Nl;var Dw="HoverCardTrigger",Nw=g.forwardRef((e,o)=>{const{__scopeHoverCard:r,...i}=e,l=Ed(Dw,r),a=Fl(r);return E.jsx(so,{asChild:!0,...a,children:E.jsx(te.a,{"data-state":l.open?"open":"closed",...i,ref:o,onPointerEnter:B(e.onPointerEnter,tl(l.onOpen)),onPointerLeave:B(e.onPointerLeave,tl(l.onClose)),onFocus:B(e.onFocus,l.onOpen),onBlur:B(e.onBlur,l.onClose),onTouchStart:B(e.onTouchStart,c=>c.preventDefault())})})});Nw.displayName=Dw;var KT="HoverCardPortal",[eO,QT]=Aw(KT,{forceMount:void 0}),el="HoverCardContent",Fw=g.forwardRef((e,o)=>{const r=QT(el,e.__scopeHoverCard),{forceMount:i=r.forceMount,...l}=e,a=Ed(el,e.__scopeHoverCard);return E.jsx(Be,{present:i||a.open,children:E.jsx(qT,{"data-state":a.open?"open":"closed",...l,onPointerEnter:B(e.onPointerEnter,tl(a.onOpen)),onPointerLeave:B(e.onPointerLeave,tl(a.onClose)),ref:o})})});Fw.displayName=el;var qT=g.forwardRef((e,o)=>{const{__scopeHoverCard:r,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:a,onInteractOutside:c,...d}=e,p=Ed(el,r),m=Fl(r),v=g.useRef(null),y=ge(o,v),[w,x]=g.useState(!1);return g.useEffect(()=>{if(w){const R=document.body;return tc=R.style.userSelect||R.style.webkitUserSelect,R.style.userSelect="none",R.style.webkitUserSelect="none",()=>{R.style.userSelect=tc,R.style.webkitUserSelect=tc}}},[w]),g.useEffect(()=>{if(v.current){const R=()=>{x(!1),p.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(p.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",R),()=>{document.removeEventListener("pointerup",R),p.hasSelectionRef.current=!1,p.isPointerDownOnContentRef.current=!1}}},[p.isPointerDownOnContentRef,p.hasSelectionRef]),g.useEffect(()=>{v.current&&ZT(v.current).forEach(S=>S.setAttribute("tabindex","-1"))}),E.jsx(Wn,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:c,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:B(a,R=>{R.preventDefault()}),onDismiss:p.onDismiss,children:E.jsx(ci,{...m,...d,onPointerDown:B(d.onPointerDown,R=>{R.currentTarget.contains(R.target)&&x(!0),p.hasSelectionRef.current=!1,p.isPointerDownOnContentRef.current=!0}),ref:y,style:{...d.style,userSelect:w?"text":void 0,WebkitUserSelect:w?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),YT="HoverCardArrow",XT=g.forwardRef((e,o)=>{const{__scopeHoverCard:r,...i}=e,l=Fl(r);return E.jsx(di,{...l,...i,ref:o})});
vendor: 6,254 bytes, line 66
66XT.displayName=YT;function tl(e){return o=>o.pointerType==="touch"?void 0:e()}function ZT(e){const o=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;r.nextNode();)o.push(r.currentNode);return o}var tO=kw,nO=Nw,rO=Fw,Pd="Radio",[JT,bw]=He(Pd),[eM,tM]=JT(Pd),Lw=g.forwardRef((e,o)=>{const{__scopeRadio:r,name:i,checked:l=!1,required:a,disabled:c,value:d="on",onCheck:p,form:m,...v}=e,[y,w]=g.useState(null),x=ge(o,P=>w(P)),R=g.useRef(!1),S=y?m||!!y.closest("form"):!0;return E.jsxs(eM,{scope:r,checked:l,disabled:c,children:[E.jsx(te.button,{type:"button",role:"radio","aria-checked":l,"data-state":Vw(l),"data-disabled":c?"":void 0,disabled:c,value:d,...v,ref:x,onClick:B(e.onClick,P=>{l||p?.(),S&&(R.current=P.isPropagationStopped(),R.current||P.stopPropagation())})}),S&&E.jsx(zw,{control:y,bubbles:!R.current,name:i,value:d,checked:l,required:a,disabled:c,form:m,style:{transform:"translateX(-100%)"}})]})});Lw.displayName=Pd;var jw="RadioIndicator",$w=g.forwardRef((e,o)=>{const{__scopeRadio:r,forceMount:i,...l}=e,a=tM(jw,r);return E.jsx(Be,{present:i||a.checked,children:E.jsx(te.span,{"data-state":Vw(a.checked),"data-disabled":a.disabled?"":void 0,...l,ref:o})})});$w.displayName=jw;var nM="RadioBubbleInput",zw=g.forwardRef(({__scopeRadio:e,control:o,checked:r,bubbles:i=!0,...l},a)=>{const c=g.useRef(null),d=ge(c,a),p=Pl(r),m=dl(o);return g.useEffect(()=>{const v=c.current;if(!v)return;const y=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(y,"checked").set;if(p!==r&&x){const R=new Event("click",{bubbles:i});x.call(v,r),v.dispatchEvent(R)}},[p,r,i]),E.jsx(te.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...l,tabIndex:-1,ref:d,style:{...l.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});zw.displayName=nM;function Vw(e){return e?"checked":"unchecked"}var rM=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],bl="RadioGroup",[oM]=He(bl,[ao,bw]),Hw=ao(),Bw=bw(),[iM,sM]=oM(bl),Uw=g.forwardRef((e,o)=>{const{__scopeRadioGroup:r,name:i,defaultValue:l,value:a,required:c=!1,disabled:d=!1,orientation:p,dir:m,loop:v=!0,onValueChange:y,...w}=e,x=Hw(r),R=ro(m),[S,P]=ht({prop:a,defaultProp:l??null,onChange:y,caller:bl});return E.jsx(iM,{scope:r,name:i,required:c,disabled:d,value:S,onValueChange:P,children:E.jsx(Qc,{asChild:!0,...x,orientation:p,dir:R,loop:v,children:E.jsx(te.div,{role:"radiogroup","aria-required":c,"aria-orientation":p,"data-disabled":d?"":void 0,dir:R,...w,ref:o})})})});Uw.displayName=bl;var Ww="RadioGroupItem",Gw=g.forwardRef((e,o)=>{const{__scopeRadioGroup:r,disabled:i,...l}=e,a=sM(Ww,r),c=a.disabled||i,d=Hw(r),p=Bw(r),m=g.useRef(null),v=ge(o,m),y=a.value===l.value,w=g.useRef(!1);return g.useEffect(()=>{const x=S=>{rM.includes(S.key)&&(w.current=!0)},R=()=>w.current=!1;return document.addEventListener("keydown",x),document.addEventListener("keyup",R),()=>{document.removeEventListener("keydown",x),document.removeEventListener("keyup",R)}},[]),E.jsx(qc,{asChild:!0,...d,focusable:!c,active:y,children:E.jsx(Lw,{disabled:c,required:a.required,checked:y,...p,...l,name:a.name,ref:v,onCheck:()=>a.onValueChange(l.value),onKeyDown:B(x=>{x.key==="Enter"&&x.preventDefault()}),onFocus:B(l.onFocus,()=>{w.current&&m.current?.click()})})})});Gw.displayName=Ww;var lM="RadioGroupIndicator",Kw=g.forwardRef((e,o)=>{const{__scopeRadioGroup:r,...i}=e,l=Bw(r);return E.jsx($w,{...l,...i,ref:o})});Kw.displayName=lM;var oO=Uw,iO=Gw,sO=Kw,Ll="Popover",[Qw]=He(Ll,[nn]),vi=nn(),[aM,Qn]=Qw(Ll),qw=e=>{const{__scopePopover:o,children:r,open:i,defaultOpen:l,onOpenChange:a,modal:c=!1}=e,d=vi(o),p=g.useRef(null),[m,v]=g.useState(!1),[y,w]=ht({prop:i,defaultProp:l??!1,onChange:a,caller:Ll});return E.jsx(ui,{...d,children:E.jsx(aM,{scope:o,contentId:St(),triggerRef:p,open:y,onOpenChange:w,onOpenToggle:g.useCallback(()=>w(x=>!x),[w]),hasCustomAnchor:m,onCustomAnchorAdd:g.useCallback(()=>v(!0),[]),onCustomAnchorRemove:g.useCallback(()=>v(!1),[]),modal:c,children:r})})};qw.displayName=Ll;var Yw="PopoverAnchor",uM=g.forwardRef((e,o)=>{const{__scopePopover:r,...i}=e,l=Qn(Yw,r),a=vi(r),{onCustomAnchorAdd:c,onCustomAnchorRemove:d}=l;return g.useEffect(()=>(c(),()=>d()),[c,d]),E.jsx(so,{...a,...i,ref:o})});uM.displayName=Yw;var Xw="PopoverTrigger",Zw=g.forwardRef((e,o)=>{const{__scopePopover:r,...i}=e,l=Qn(Xw,r),a=vi(r),c=ge(o,l.triggerRef),d=E.jsx(te.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":rS(l.open),...i,ref:c,onClick:B(e.onClick,l.onOpenToggle)});return l.hasCustomAnchor?d:E.jsx(so,{asChild:!0,...a,children:d})});Zw.displayName=Xw;var _d="PopoverPortal",[cM,dM]=Qw(_d,{forceMount:void 0}),Jw=e=>{const{__scopePopover:o,forceMount:r,children:i,container:l}=e,a=Qn(_d,o);return E.jsx(cM,{scope:o,forceMount:r,children:E.jsx(Be,{present:r||a.open,children:E.jsx(lo,{asChild:!0,container:l,children:i})})})};Jw.displayName=_d;var to="PopoverContent",eS=g.forwardRef((e,o)=>{const r=dM(to,e.__scopePopover),{forceMount:i=r.forceMount,...l}=e,a=Qn(to,e.__scopePopover);return E.jsx(Be,{present:i||a.open,children:a.modal?E.jsx(pM,{...l,ref:o}):E.jsx(hM,{...l,ref:o})})});eS.displayName=to;var fM=zn("PopoverContent.RemoveScroll"),pM=g.forwardRef((e,o)=>{const r=Qn(to,e.__scopePopover),i=g.useRef(null),l=ge(o,i),a=g.useRef(!1);return g.useEffect(()=>{const c=i.current;if(c)return fl(c)},[]),E.jsx(pi,{as:fM,allowPinchZoom:!0,children:E.jsx(tS,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:B(e.onCloseAutoFocus,c=>{c.preventDefault(),a.current||r.triggerRef.current?.focus()}),onPointerDownOutside:B(e.onPointerDownOutside,c=>{const d=c.detail.originalEvent,p=d.button===0&&d.ctrlKey===!0,m=d.button===2||p;a.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:B(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),hM=g.forwardRef((e,o)=>{const r=Qn(to,e.__scopePopover),i=g.useRef(!1),l=g.useRef(!1);return E.jsx(tS,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(i.current||r.triggerRef.current?.focus(),a.preventDefault()),i.current=!1,l.current=!1},onInteractOutside:a=>
66{e.onInteractOutside?.(a),a.defaultPrevented||(i.current=!0,a.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&l.current&&a.preventDefault()}})}),tS=g.forwardRef((e,o)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:v,...y}=e,w=Qn(to,r),x=vi(r);return sl(),E.jsx(li,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:l,onUnmountAutoFocus:a,children:E.jsx(Wn,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:v,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:m,onDismiss:()=>w.onOpenChange(!1),children:E.jsx(ci,{"data-state":rS(w.open),role:"dialog",id:w.contentId,...x,...y,ref:o,style:{...y.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),nS="PopoverClose",gM=g.forwardRef((e,o)=>{const{__scopePopover:r,...i}=e,l=Qn(nS,r);return E.jsx(te.button,{type:"button",...i,ref:o,onClick:B(e.onClick,()=>l.onOpenChange(!1))})});gM.displayName=nS;var mM="PopoverArrow",vM=g.forwardRef((e,o)=>{const{__scopePopover:r,...i}=e,l=vi(r);return E.jsx(di,{...l,...i,ref:o})});vM.displayName=mM;function rS(e){return e?"open":"closed"}var lO=qw,aO=Zw,uO=Jw,cO=eS;function Kr(e,o,r){let i=r.initialDeps??[],l,a=!0;function c(){var d,p,m;let v;r.key&&((d=r.debug)!=null&&d.call(r))&&(v=Date.now());const y=e();if(!(y.length!==i.length||y.some((R,S)=>i[S]!==R)))return l;i=y;let x;if(r.key&&((p=r.debug)!=null&&p.call(r))&&(x=Date.now()),l=o(...y),r.key&&((m=r.debug)!=null&&m.call(r))){const R=Math.round((Date.now()-v)*100)/100,S=Math.round((Date.now()-x)*100)/100,P=S/16,_=(M,O)=>{for(M=String(M);M.length<O;)M=" "+M;return M};console.info(`%c⏱ ${_(S,5)} /${_(R,5)} ms`,`
67            font-size: .6rem;
68            font-weight: bold;
69            color: hsl(${Math.max(0,Math.min(120-120*P,120))}deg 100% 31%);`,r?.key)}return r?.onChange&&!(a&&r.skipInitialOnChange)&&r.onChange(l),a=!1,l}return c.updateDeps=d=>{i=d},c}function gg(e,o){if(e===void 0)throw new Error("Unexpected undefined");return e}const yM=(e,o)=>Math.abs(e-o)<1.01,wM=(e,o,r)=>{let i;return function(...l){e.clearTimeout(i),i=e.setTimeout(()=>o.apply(this,l),r)}},mg=e=>{const{offsetWidth:o,offsetHeight:r}=e;return{width:o,height:r}},SM=e=>e,CM=e=>{const o=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),i=[];for(let l=o;l<=r;l++)i.push(l);return i},xM=(e,o)=>{const r=e.scrollElement;if(!r)return;const i=e.targetWindow;if(!i)return;const l=c=>{const{width:d,height:p}=c;o({width:Math.round(d),height:Math.round(p)})};if(l(mg(r)),!i.ResizeObserver)return()=>{};const a=new i.ResizeObserver(c=>{const d=()=>{const p=c[0];if(p?.borderBoxSize){const m=p.borderBoxSize[0];if(m){l({width:m.inlineSize,height:m.blockSize});return}}l(mg(r))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(d):d()});return a.observe(r,{box:"border-box"}),()=>{a.unobserve(r)}},vg={passive:!0},yg=typeof window>"u"?!0:"onscrollend"in window,RM=(e,o)=>{const r=e.scrollElement;if(!r)return;const i=e.targetWindow;if(!i)return;let l=0;const a=e.options.useScrollendEvent&&yg?()=>{}:wM(i,()=>{o(l,!1)},e.options.isScrollingResetDelay),c=v=>()=>{const{horizontal:y,isRtl:w}=e.options;l=y?r.scrollLeft*(w&&-1||1):r.scrollTop,a(),o(l,v)},d=c(!0),p=c(!1);r.addEventListener("scroll",d,vg);const m=e.options.useScrollendEvent&&yg;return m&&r.addEventListener("scrollend",p,vg),()=>{r.removeEventListener("scroll",d),m&&r.removeEventListener("scrollend",p)}},EM=(e,o,r)=>{if(o?.borderBoxSize){const i=o.borderBoxSize[0];if(i)return Math.round(i[r.options.horizontal?"inlineSize":"blockSize"])}return e[r.options.horizontal?"offsetWidth":"offsetHeight"]}
vendor: 3,077 bytes, line 69
69,PM=(e,{adjustments:o=0,behavior:r},i)=>{var l,a;const c=e+o;(a=(l=i.scrollElement)==null?void 0:l.scrollTo)==null||a.call(l,{[i.options.horizontal?"left":"top"]:c,behavior:r})};class _M{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.currentScrollToIndex=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let r=null;const i=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(l=>{l.forEach(a=>{const c=()=>{this._measureElement(a.target,a)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()})}));return{disconnect:()=>{var l;(l=i())==null||l.disconnect(),r=null},observe:l=>{var a;return(a=i())==null?void 0:a.observe(l,{box:"border-box"})},unobserve:l=>{var a;return(a=i())==null?void 0:a.unobserve(l)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([i,l])=>{typeof l>"u"&&delete r[i]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:SM,rangeExtractor:CM,onChange:()=>{},measureElement:EM,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...r}},this.notify=r=>{var i,l;(l=(i=this.options).onChange)==null||l.call(i,this,r)},this.maybeNotify=Kr(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i){this.maybeNotify();return}this.scrollElement=i,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this.elementsCache.forEach(l=>{this.observer.observe(l)}),this.unsubs.push(this.options.observeElementRect(this,l=>{this.scrollRect=l,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(l,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<l?"forward":"backward":null,this.scrollOffset=l,this.isScrolling=a,this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}}
69,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,i)=>{const l=new Map,a=new Map;for(let c=i-1;c>=0;c--){const d=r[c];if(l.has(d.lane))continue;const p=a.get(d.lane);if(p==null||d.end>p.end?a.set(d.lane,d):d.end<p.end&&l.set(d.lane,!0),l.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((c,d)=>c.end===d.end?c.index-d.index:c.end-d.end)[0]:void 0},this.getMeasurementOptions=Kr(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(r,i,l,a,c,d)=>(this.prevLanes!==void 0&&this.prevLanes!==d&&(this.lanesChangedFlag=!0),this.prevLanes=d,this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:i,scrollMargin:l,getItemKey:a,enabled:c,lanes:d}),{key:!1}),this.getMeasurements=Kr(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:i,scrollMargin:l,getItemKey:a,enabled:c,lanes:d},p)=>{if(!c)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>r)for(const w of this.laneAssignments.keys())w>=r&&this.laneAssignments.delete(w);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(w=>{this.itemSizeCache.set(w.key,w.size)}));const m=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===r&&(this.lanesSettling=!1);const v=this.measurementsCache.slice(0,m),y=new Array(d).fill(void 0);for(let w=0;w<m;w++){const x=v[w];x&&(y[x.lane]=w)}for(let w=m;w<r;w++){const x=a(w),R=this.laneAssignments.get(w);let S,P;if(R!==void 0&&this.options.lanes>1){S=R;const N=y[S],L=N!==void 0?v[N]:void 0;P=L?L.end+this.options.gap:i+l}else{const N=this.options.lanes===1?v[w-1]:this.getFurthestMeasurement(v,w);P=N?N.end+this.options.gap:i+l,S=N?N.lane:w%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(w,S)}const _=p.get(x),M=typeof _=="number"?_:this.options.estimateSize(w),O=P+M;v[w]={index:w,start:P,size:M,end:O,key:x,lane:S},y[S]=w}return this.measurementsCache=v,v},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Kr(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(r,i,l,a)=>this.range=r.length>0&&i>0?TM({measurements:r,outerSize:i,scrollOffset:l,lanes:a}):null,{key:!1,debug:()=>this.options.debug}
vendor: 1,605 bytes, line 69
69),this.getVirtualIndexes=Kr(()=>{let r=null,i=null;const l=this.calculateRange();return l&&(r=l.startIndex,i=l.endIndex),this.maybeNotify.updateDeps([this.isScrolling,r,i]),[this.options.rangeExtractor,this.options.overscan,this.options.count,r,i]},(r,i,l,a,c)=>a===null||c===null?[]:r({startIndex:a,endIndex:c,overscan:i,count:l}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=r=>{const i=this.options.indexAttribute,l=r.getAttribute(i);return l?parseInt(l,10):(console.warn(`Missing attribute name '${i}={index}' on measured element.`),-1)},this._measureElement=(r,i)=>{const l=this.indexFromElement(r),a=this.measurementsCache[l];if(!a)return;const c=a.key,d=this.elementsCache.get(c);d!==r&&(d&&this.observer.unobserve(d),this.observer.observe(r),this.elementsCache.set(c,r)),r.isConnected&&this.resizeItem(l,this.options.measureElement(r,i,this))},this.resizeItem=(r,i)=>{const l=this.measurementsCache[r];if(!l)return;const a=this.itemSizeCache.get(l.key)??l.size,c=i-a;c!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(l,c,this):l.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=c,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(l.index),this.itemSizeCache=new Map(this.itemSizeCache.set(l.key,i)),this.notify(!1))},this.measureElement=r=>{if(!r){this.elementsCache.forEach((i,l)=>{i.isConnected||(this.observer.unobserve(i),this.elementsCache.delete(l))});return}this._measureElement(r,void 0)},this.getVirtualItems=Kr(()=>
69[this.getVirtualIndexes(),this.getMeasurements()],(r,i)=>{const l=[];for(let a=0,c=r.length;a<c;a++){const d=r[a],p=i[d];l.push(p)}return l},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=r=>{const i=this.getMeasurements();if(i.length!==0)return gg(i[oS(0,i.length-1,l=>gg(i[l]).start,r)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const r=this.scrollElement.document.documentElement;return this.options.horizontal?r.scrollWidth-this.scrollElement.innerWidth:r.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(r,i,l=0)=>{if(!this.scrollElement)return 0;const a=this.getSize(),c=this.getScrollOffset();i==="auto"&&(i=r>=c+a?"end":"start"),i==="center"?r+=(l-a)/2:i==="end"&&(r-=a);const d=this.getMaxScrollOffset();return Math.max(Math.min(d,r),0)},this.getOffsetForIndex=(r,i="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const l=this.measurementsCache[r];if(!l)return;const a=this.getSize(),c=this.getScrollOffset();if(i==="auto")if(l.end>=c+a-this.options.scrollPaddingEnd)i="end";else if(l.start<=c+this.options.scrollPaddingStart)i="start";else return[c,i];if(i==="end"&&r===this.options.count-1)return[this.getMaxScrollOffset(),i];const d=i==="end"?l.end+this.options.scrollPaddingEnd:l.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(d,i,l.size),i]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(r,{align:i="start",behavior:l}={})=>{l==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(r,i),{adjustments:void 0,behavior:l})},this.scrollToIndex=(r,{align:i="auto",behavior:l}={})=>{l==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),r=Math.max(0,Math.min(r,this.options.count-1)),this.currentScrollToIndex=r;let a=0;const c=10,d=m=>{if(!this.targetWindow)return;const v=this.getOffsetForIndex(r,m);if(!v){console.warn("Failed to get offset for index:",r);return}const[y,w]=v;this._scrollToOffset(y,{adjustments:void 0,behavior:l}),this.targetWindow.requestAnimationFrame(()=>{const x=()=>{if(this.currentScrollToIndex!==r)return;const R=this.getScrollOffset(),S=this.getOffsetForIndex(r,w);if(!S){console.warn("Failed to get offset for index:",r);return}yM(S[0],R)||p(w)};this.isDynamicMode()?this.targetWindow.requestAnimationFrame(x):x()})},p=m=>{this.targetWindow&&this.currentScrollToIndex===r&&(a++,a<c?this.targetWindow.requestAnimationFrame(()=>d(m)):console.warn(`Failed to scroll to index ${r} after ${c} attempts.`))};d(i)},this.scrollBy=(r,{behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+r,{adjustments:void 0,behavior:i})},this.getTotalSize=()=>{var r;const i=this.getMeasurements();let l;if(i.length===0)l=this.options.paddingStart;else if(this.options.lanes===1)l=((r=i[i.length-1])==null?void 0:r.end)??0;else{const a=Array(this.options.lanes).fill(null);let c=i.length-1;for(;c>=0&&a.some(d=>d===null);){const d=i[c];a[d.lane]===null&&(a[d.lane]=d.end),c--}l=Math.max(...a.filter(d=>d!==null))}return Math.max(l-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(r,{adjustments:i,behavior:l})=>{this.options.scrollToFn(r,{behavior:l,adjustments:i},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(o)}}const oS=(e,o,r,i)=>{for(;e<=o;){const l=(e+o)/2|0,a=r(l);if(a<i)e=l+1;else if(a>i)o=l-1;else return l}return e>0?e-1:0};function TM({measurements:e,outerSize:o,scrollOffset:r,lanes:i}){const l=e.length-1,a=p=>e[p].start;if(e.length<=i)return{startIndex:0,endIndex:l};let c=oS(0,l,a,r),d=c;if(i===1)for(;d<l&&e[d].end<r+o;)d++;else if(i>1){const p=Array(i).fill(0);for(;d<l&&p.some(v=>v<r+o);){const v=e[d];p[v.lane]=v.end,d++}const m=Array(i).fill(r+o);for(;c>=0&&m.some(v=>v>=r);){const v=e[c];m[v.lane]=v.start,c--}c=Math.max(0,c-c%i),d=Math.min(l,d+(i-1-d%i))}return{startIndex:c,endIndex:d}}const wg=typeof document<"u"?g.useLayoutEffect:g.useEffect;function MM({useFlushSync:e=!0,...o}){const r=g.useReducer(()=>({}),{})[1],i={...o,onChange:(a,c)=>{var d;
69e&&c?Un.flushSync(r):r(),(d=o.onChange)==null||d.call(o,a,c)}},[l]=g.useState(()=>new _M(i));return l.setOptions(i),wg(()=>l._didMount(),[]),wg(()=>l._willUpdate()),l}function dO(e){return MM({observeElementRect:xM,observeElementOffset:RM,scrollToFn:PM,...e})}export{LI as $,E1 as A,P1 as B,q_ as C,X_ as D,xI as E,UM as F,PI as G,_I as H,BM as I,RI as J,EI as K,YM as L,TI as M,MI as N,Q_ as O,te as P,OI as Q,xg as R,$M as S,Y_ as T,kI as U,CI as V,bn as W,DI as X,NI as Y,FI as Z,bI as _,VM as a,jI as a0,$I as a1,zI as a2,VI as a3,WI as a4,UI as a5,GI as a6,qI as a7,YI as a8,XI as a9,AI as aA,iI as aB,oI as aC,BI as aD,lO as aE,aO as aF,tO as aG,nO as aH,SI as aI,E as aJ,NM as aK,FM as aL,DM as aM,LM as aN,OM as aO,w0 as aP,rl as aQ,kM as aR,Vv as aS,Bv as aT,Wv as aU,pI as aV,hI as aW,dO as aX,jM as aY,bM as aZ,Kv as a_,ZI as aa,JI as ab,FT as ac,VT as ad,rO as ae,oO as af,iO as ag,sO as ah,uO as ai,cO as aj,QI as ak,G_ as al,Zv as am,Jv as an,lI as ao,sI as ap,HI as aq,GM as ar,KM as as,$v as at,aI as au,mI as av,vI as aw,yI as ax,KI as ay,II as az,nl as b,IM as c,l0 as d,W_ as e,K_ as f,Cg as g,ol as h,HM as i,nI as j,rI as k,QM as l,qM as m,XM as n,zM as o,ZM as p,eI as q,g as r,JM as s,tI as t,St as u,uI as v,cI as w,dI as x,fI as y,wI as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.