offcode 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cli.js +2 -2
- package/dist/web/assets/index-DCYvZg7a.js +150 -0
- package/dist/web/assets/index-gSBueMfH.css +1 -0
- package/dist/web/index.html +2 -2
- package/package.json +3 -2
- package/dist/web/assets/index-7tyR3Zsa.js +0 -147
- package/dist/web/assets/index-oer4U46K.css +0 -1
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
var rx=Object.defineProperty;var hg=t=>{throw TypeError(t)};var ox=(t,r,o)=>r in t?rx(t,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[r]=o;var Ie=(t,r,o)=>ox(t,typeof r!="symbol"?r+"":r,o),sx=(t,r,o)=>r.has(t)||hg("Cannot "+o);var gg=(t,r,o)=>r.has(t)?hg("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,o);var Ji=(t,r,o)=>(sx(t,r,"access private method"),o);function ix(t,r){for(var o=0;o<r.length;o++){const i=r[o];if(typeof i!="string"&&!Array.isArray(i)){for(const l in i)if(l!=="default"&&!(l in t)){const u=Object.getOwnPropertyDescriptor(i,l);u&&Object.defineProperty(t,l,u.get?u:{enumerable:!0,get:()=>i[l]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const u of l)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&i(f)}).observe(document,{childList:!0,subtree:!0});function o(l){const u={};return l.integrity&&(u.integrity=l.integrity),l.referrerPolicy&&(u.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?u.credentials="include":l.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(l){if(l.ep)return;l.ep=!0;const u=o(l);fetch(l.href,u)}})();function lx(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var of={exports:{}},el={},sf={exports:{}},st={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var mg;function ax(){if(mg)return st;mg=1;var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.iterator;function x(I){return I===null||typeof I!="object"?null:(I=v&&I[v]||I["@@iterator"],typeof I=="function"?I:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,E={};function b(I,F,q){this.props=I,this.context=F,this.refs=E,this.updater=q||R}b.prototype.isReactComponent={},b.prototype.setState=function(I,F){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,F,"setState")},b.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function C(){}C.prototype=b.prototype;function S(I,F,q){this.props=I,this.context=F,this.refs=E,this.updater=q||R}var P=S.prototype=new C;P.constructor=S,w(P,b.prototype),P.isPureReactComponent=!0;var T=Array.isArray,A=Object.prototype.hasOwnProperty,O={current:null},D={key:!0,ref:!0,__self:!0,__source:!0};function j(I,F,q){var K,re={},J=null,ne=null;if(F!=null)for(K in F.ref!==void 0&&(ne=F.ref),F.key!==void 0&&(J=""+F.key),F)A.call(F,K)&&!D.hasOwnProperty(K)&&(re[K]=F[K]);var ae=arguments.length-2;if(ae===1)re.children=q;else if(1<ae){for(var le=Array(ae),me=0;me<ae;me++)le[me]=arguments[me+2];re.children=le}if(I&&I.defaultProps)for(K in ae=I.defaultProps,ae)re[K]===void 0&&(re[K]=ae[K]);return{$$typeof:t,type:I,key:J,ref:ne,props:re,_owner:O.current}}function z(I,F){return{$$typeof:t,type:I.type,key:F,ref:I.ref,props:I.props,_owner:I._owner}}function N(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function G(I){var F={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(q){return F[q]})}var X=/\/+/g;function W(I,F){return typeof I=="object"&&I!==null&&I.key!=null?G(""+I.key):F.toString(36)}function Y(I,F,q,K,re){var J=typeof I;(J==="undefined"||J==="boolean")&&(I=null);var ne=!1;if(I===null)ne=!0;else switch(J){case"string":case"number":ne=!0;break;case"object":switch(I.$$typeof){case t:case r:ne=!0}}if(ne)return ne=I,re=re(ne),I=K===""?"."+W(ne,0):K,T(re)?(q="",I!=null&&(q=I.replace(X,"$&/")+"/"),Y(re,F,q,"",function(me){return me})):re!=null&&(N(re)&&(re=z(re,q+(!re.key||ne&&ne.key===re.key?"":(""+re.key).replace(X,"$&/")+"/")+I)),F.push(re)),1;if(ne=0,K=K===""?".":K+":",T(I))for(var ae=0;ae<I.length;ae++){J=I[ae];var le=K+W(J,ae);ne+=Y(J,F,q,le,re)}else if(le=x(I),typeof le=="function")for(I=le.call(I),ae=0;!(J=I.next()).done;)J=J.value,le=K+W(J,ae++),ne+=Y(J,F,q,le,re);else if(J==="object")throw F=String(I),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.");return ne}function L(I,F,q){if(I==null)return I;var K=[],re=0;return Y(I,K,"","",function(J){return F.call(q,J,re++)}),K}function Q(I){if(I._status===-1){var F=I._result;F=F(),F.then(function(q){(I._status===0||I._status===-1)&&(I._status=1,I._result=q)},function(q){(I._status===0||I._status===-1)&&(I._status=2,I._result=q)}),I._status===-1&&(I._status=0,I._result=F)}if(I._status===1)return I._result.default;throw I._result}var ie={current:null},$={transition:null},H={ReactCurrentDispatcher:ie,ReactCurrentBatchConfig:$,ReactCurrentOwner:O};function B(){throw Error("act(...) is not supported in production builds of React.")}return st.Children={map:L,forEach:function(I,F,q){L(I,function(){F.apply(this,arguments)},q)},count:function(I){var F=0;return L(I,function(){F++}),F},toArray:function(I){return L(I,function(F){return F})||[]},only:function(I){if(!N(I))throw Error("React.Children.only expected to receive a single React element child.");return I}},st.Component=b,st.Fragment=o,st.Profiler=l,st.PureComponent=S,st.StrictMode=i,st.Suspense=h,st.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,st.act=B,st.cloneElement=function(I,F,q){if(I==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+I+".");var K=w({},I.props),re=I.key,J=I.ref,ne=I._owner;if(F!=null){if(F.ref!==void 0&&(J=F.ref,ne=O.current),F.key!==void 0&&(re=""+F.key),I.type&&I.type.defaultProps)var ae=I.type.defaultProps;for(le in F)A.call(F,le)&&!D.hasOwnProperty(le)&&(K[le]=F[le]===void 0&&ae!==void 0?ae[le]:F[le])}var le=arguments.length-2;if(le===1)K.children=q;else if(1<le){ae=Array(le);for(var me=0;me<le;me++)ae[me]=arguments[me+2];K.children=ae}return{$$typeof:t,type:I.type,key:re,ref:J,props:K,_owner:ne}},st.createContext=function(I){return I={$$typeof:f,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},I.Provider={$$typeof:u,_context:I},I.Consumer=I},st.createElement=j,st.createFactory=function(I){var F=j.bind(null,I);return F.type=I,F},st.createRef=function(){return{current:null}},st.forwardRef=function(I){return{$$typeof:d,render:I}},st.isValidElement=N,st.lazy=function(I){return{$$typeof:m,_payload:{_status:-1,_result:I},_init:Q}},st.memo=function(I,F){return{$$typeof:g,type:I,compare:F===void 0?null:F}},st.startTransition=function(I){var F=$.transition;$.transition={};try{I()}finally{$.transition=F}},st.unstable_act=B,st.useCallback=function(I,F){return ie.current.useCallback(I,F)},st.useContext=function(I){return ie.current.useContext(I)},st.useDebugValue=function(){},st.useDeferredValue=function(I){return ie.current.useDeferredValue(I)},st.useEffect=function(I,F){return ie.current.useEffect(I,F)},st.useId=function(){return ie.current.useId()},st.useImperativeHandle=function(I,F,q){return ie.current.useImperativeHandle(I,F,q)},st.useInsertionEffect=function(I,F){return ie.current.useInsertionEffect(I,F)},st.useLayoutEffect=function(I,F){return ie.current.useLayoutEffect(I,F)},st.useMemo=function(I,F){return ie.current.useMemo(I,F)},st.useReducer=function(I,F,q){return ie.current.useReducer(I,F,q)},st.useRef=function(I){return ie.current.useRef(I)},st.useState=function(I){return ie.current.useState(I)},st.useSyncExternalStore=function(I,F,q){return ie.current.useSyncExternalStore(I,F,q)},st.useTransition=function(){return ie.current.useTransition()},st.version="18.3.1",st}var yg;function ml(){return yg||(yg=1,sf.exports=ax()),sf.exports}/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var vg;function ux(){if(vg)return el;vg=1;var t=ml(),r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function f(d,h,g){var m,v={},x=null,R=null;g!==void 0&&(x=""+g),h.key!==void 0&&(x=""+h.key),h.ref!==void 0&&(R=h.ref);for(m in h)i.call(h,m)&&!u.hasOwnProperty(m)&&(v[m]=h[m]);if(d&&d.defaultProps)for(m in h=d.defaultProps,h)v[m]===void 0&&(v[m]=h[m]);return{$$typeof:r,type:d,key:x,ref:R,props:v,_owner:l.current}}return el.Fragment=o,el.jsx=f,el.jsxs=f,el}var xg;function cx(){return xg||(xg=1,of.exports=ux()),of.exports}var _=cx(),y=ml();const go=lx(y),fx=ix({__proto__:null,default:go},[y]);var xa={},lf={exports:{}},Kn={},af={exports:{}},uf={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var wg;function dx(){return wg||(wg=1,(function(t){function r($,H){var B=$.length;$.push(H);e:for(;0<B;){var I=B-1>>>1,F=$[I];if(0<l(F,H))$[I]=H,$[B]=F,B=I;else break e}}function o($){return $.length===0?null:$[0]}function i($){if($.length===0)return null;var H=$[0],B=$.pop();if(B!==H){$[0]=B;e:for(var I=0,F=$.length,q=F>>>1;I<q;){var K=2*(I+1)-1,re=$[K],J=K+1,ne=$[J];if(0>l(re,B))J<F&&0>l(ne,re)?($[I]=ne,$[J]=B,I=J):($[I]=re,$[K]=B,I=K);else if(J<F&&0>l(ne,B))$[I]=ne,$[J]=B,I=J;else break e}}return H}function l($,H){var B=$.sortIndex-H.sortIndex;return B!==0?B:$.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var f=Date,d=f.now();t.unstable_now=function(){return f.now()-d}}var h=[],g=[],m=1,v=null,x=3,R=!1,w=!1,E=!1,b=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P($){for(var H=o(g);H!==null;){if(H.callback===null)i(g);else if(H.startTime<=$)i(g),H.sortIndex=H.expirationTime,r(h,H);else break;H=o(g)}}function T($){if(E=!1,P($),!w)if(o(h)!==null)w=!0,Q(A);else{var H=o(g);H!==null&&ie(T,H.startTime-$)}}function A($,H){w=!1,E&&(E=!1,C(j),j=-1),R=!0;var B=x;try{for(P(H),v=o(h);v!==null&&(!(v.expirationTime>H)||$&&!G());){var I=v.callback;if(typeof I=="function"){v.callback=null,x=v.priorityLevel;var F=I(v.expirationTime<=H);H=t.unstable_now(),typeof F=="function"?v.callback=F:v===o(h)&&i(h),P(H)}else i(h);v=o(h)}if(v!==null)var q=!0;else{var K=o(g);K!==null&&ie(T,K.startTime-H),q=!1}return q}finally{v=null,x=B,R=!1}}var O=!1,D=null,j=-1,z=5,N=-1;function G(){return!(t.unstable_now()-N<z)}function X(){if(D!==null){var $=t.unstable_now();N=$;var H=!0;try{H=D(!0,$)}finally{H?W():(O=!1,D=null)}}else O=!1}var W;if(typeof S=="function")W=function(){S(X)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,L=Y.port2;Y.port1.onmessage=X,W=function(){L.postMessage(null)}}else W=function(){b(X,0)};function Q($){D=$,O||(O=!0,W())}function ie($,H){j=b(function(){$(t.unstable_now())},H)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function($){$.callback=null},t.unstable_continueExecution=function(){w||R||(w=!0,Q(A))},t.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<$?Math.floor(1e3/$):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_getFirstCallbackNode=function(){return o(h)},t.unstable_next=function($){switch(x){case 1:case 2:case 3:var H=3;break;default:H=x}var B=x;x=H;try{return $()}finally{x=B}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function($,H){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var B=x;x=$;try{return H()}finally{x=B}},t.unstable_scheduleCallback=function($,H,B){var I=t.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?I+B:I):B=I,$){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=B+F,$={id:m++,callback:H,priorityLevel:$,startTime:B,expirationTime:F,sortIndex:-1},B>I?($.sortIndex=B,r(g,$),o(h)===null&&$===o(g)&&(E?(C(j),j=-1):E=!0,ie(T,B-I))):($.sortIndex=F,r(h,$),w||R||(w=!0,Q(A))),$},t.unstable_shouldYield=G,t.unstable_wrapCallback=function($){var H=x;return function(){var B=x;x=H;try{return $.apply(this,arguments)}finally{x=B}}}})(uf)),uf}var kg;function px(){return kg||(kg=1,af.exports=dx()),af.exports}/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.min.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var bg;function hx(){if(bg)return Kn;bg=1;var t=ml(),r=px();function o(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,s=1;s<arguments.length;s++)n+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,l={};function u(e,n){f(e,n),f(e+"Capture",n)}function f(e,n){for(l[e]=n,e=0;e<n.length;e++)i.add(n[e])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,g=/^[: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]*$/,m={},v={};function x(e){return h.call(v,e)?!0:h.call(m,e)?!1:g.test(e)?v[e]=!0:(m[e]=!0,!1)}function R(e,n,s,a){if(s!==null&&s.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return a?!1:s!==null?!s.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function w(e,n,s,a){if(n===null||typeof n>"u"||R(e,n,s,a))return!0;if(a)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 E(e,n,s,a,c,p,k){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=a,this.attributeNamespace=c,this.mustUseProperty=s,this.propertyName=e,this.type=n,this.sanitizeURL=p,this.removeEmptyString=k}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){b[e]=new E(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];b[n]=new E(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){b[e]=new E(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){b[e]=new E(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){b[e]=new E(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){b[e]=new E(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){b[e]=new E(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){b[e]=new E(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){b[e]=new E(e,5,!1,e.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function S(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(C,S);b[n]=new E(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(C,S);b[n]=new E(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(C,S);b[n]=new E(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){b[e]=new E(e,1,!1,e.toLowerCase(),null,!1,!1)}),b.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){b[e]=new E(e,1,!1,e.toLowerCase(),null,!0,!0)});function P(e,n,s,a){var c=b.hasOwnProperty(n)?b[n]:null;(c!==null?c.type!==0:a||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(w(n,s,c,a)&&(s=null),a||c===null?x(n)&&(s===null?e.removeAttribute(n):e.setAttribute(n,""+s)):c.mustUseProperty?e[c.propertyName]=s===null?c.type===3?!1:"":s:(n=c.attributeName,a=c.attributeNamespace,s===null?e.removeAttribute(n):(c=c.type,s=c===3||c===4&&s===!0?"":""+s,a?e.setAttributeNS(a,n,s):e.setAttribute(n,s))))}var T=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,A=Symbol.for("react.element"),O=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),N=Symbol.for("react.provider"),G=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),ie=Symbol.for("react.offscreen"),$=Symbol.iterator;function H(e){return e===null||typeof e!="object"?null:(e=$&&e[$]||e["@@iterator"],typeof e=="function"?e:null)}var B=Object.assign,I;function F(e){if(I===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);I=n&&n[1]||""}return`
|
|
34
|
-
`+I+e}var q=!1;function K(e,n){if(!e||q)return"";q=!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(oe){var a=oe}Reflect.construct(e,[],n)}else{try{n.call()}catch(oe){a=oe}e.call(n.prototype)}else{try{throw Error()}catch(oe){a=oe}e()}}catch(oe){if(oe&&a&&typeof oe.stack=="string"){for(var c=oe.stack.split(`
|
|
35
|
-
`),p=a.stack.split(`
|
|
36
|
-
`),k=c.length-1,M=p.length-1;1<=k&&0<=M&&c[k]!==p[M];)M--;for(;1<=k&&0<=M;k--,M--)if(c[k]!==p[M]){if(k!==1||M!==1)do if(k--,M--,0>M||c[k]!==p[M]){var V=`
|
|
37
|
-
`+c[k].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=k&&0<=M);break}}}finally{q=!1,Error.prepareStackTrace=s}return(e=e?e.displayName||e.name:"")?F(e):""}function re(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=K(e.type,!1),e;case 11:return e=K(e.type.render,!1),e;case 1:return e=K(e.type,!0),e;default:return""}}function J(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case D:return"Fragment";case O:return"Portal";case z:return"Profiler";case j:return"StrictMode";case W:return"Suspense";case Y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case G:return(e.displayName||"Context")+".Consumer";case N:return(e._context.displayName||"Context")+".Provider";case X:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case L:return n=e.displayName||null,n!==null?n:J(e.type)||"Memo";case Q:n=e._payload,e=e._init;try{return J(e(n))}catch{}}return null}function ne(e){var n=e.type;switch(e.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 e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return J(n);case 8:return n===j?"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 ae(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function le(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function me(e){var n=le(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),a=""+e[n];if(!e.hasOwnProperty(n)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var c=s.get,p=s.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return c.call(this)},set:function(k){a=""+k,p.call(this,k)}}),Object.defineProperty(e,n,{enumerable:s.enumerable}),{getValue:function(){return a},setValue:function(k){a=""+k},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Ce(e){e._valueTracker||(e._valueTracker=me(e))}function be(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var s=n.getValue(),a="";return e&&(a=le(e)?e.checked?"true":"false":e.value),e=a,e!==s?(n.setValue(e),!0):!1}function Ae(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function we(e,n){var s=n.checked;return B({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??e._wrapperState.initialChecked})}function Se(e,n){var s=n.defaultValue==null?"":n.defaultValue,a=n.checked!=null?n.checked:n.defaultChecked;s=ae(n.value!=null?n.value:s),e._wrapperState={initialChecked:a,initialValue:s,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function ze(e,n){n=n.checked,n!=null&&P(e,"checked",n,!1)}function Ve(e,n){ze(e,n);var s=ae(n.value),a=n.type;if(s!=null)a==="number"?(s===0&&e.value===""||e.value!=s)&&(e.value=""+s):e.value!==""+s&&(e.value=""+s);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Te(e,n.type,s):n.hasOwnProperty("defaultValue")&&Te(e,n.type,ae(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function qe(e,n,s){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var a=n.type;if(!(a!=="submit"&&a!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,s||n===e.value||(e.value=n),e.defaultValue=n}s=e.name,s!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,s!==""&&(e.name=s)}function Te(e,n,s){(n!=="number"||Ae(e.ownerDocument)!==e)&&(s==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+s&&(e.defaultValue=""+s))}var Fe=Array.isArray;function ge(e,n,s,a){if(e=e.options,n){n={};for(var c=0;c<s.length;c++)n["$"+s[c]]=!0;for(s=0;s<e.length;s++)c=n.hasOwnProperty("$"+e[s].value),e[s].selected!==c&&(e[s].selected=c),c&&a&&(e[s].defaultSelected=!0)}else{for(s=""+ae(s),n=null,c=0;c<e.length;c++){if(e[c].value===s){e[c].selected=!0,a&&(e[c].defaultSelected=!0);return}n!==null||e[c].disabled||(n=e[c])}n!==null&&(n.selected=!0)}}function We(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(o(91));return B({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function lt(e,n){var s=n.value;if(s==null){if(s=n.children,n=n.defaultValue,s!=null){if(n!=null)throw Error(o(92));if(Fe(s)){if(1<s.length)throw Error(o(93));s=s[0]}n=s}n==null&&(n=""),s=n}e._wrapperState={initialValue:ae(s)}}function ft(e,n){var s=ae(n.value),a=ae(n.defaultValue);s!=null&&(s=""+s,s!==e.value&&(e.value=s),n.defaultValue==null&&e.defaultValue!==s&&(e.defaultValue=s)),a!=null&&(e.defaultValue=""+a)}function se(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function fe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Me(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?fe(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var he,Le=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,s,a,c){MSApp.execUnsafeLocalFunction(function(){return e(n,s,a,c)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(he=he||document.createElement("div"),he.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=he.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Ke(e,n){if(n){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=n;return}}e.textContent=n}var et={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},rt=["Webkit","ms","Moz","O"];Object.keys(et).forEach(function(e){rt.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),et[n]=et[e]})});function Ft(e,n,s){return n==null||typeof n=="boolean"||n===""?"":s||typeof n!="number"||n===0||et.hasOwnProperty(e)&&et[e]?(""+n).trim():n+"px"}function Lt(e,n){e=e.style;for(var s in n)if(n.hasOwnProperty(s)){var a=s.indexOf("--")===0,c=Ft(s,n[s],a);s==="float"&&(s="cssFloat"),a?e.setProperty(s,c):e[s]=c}}var _n=B({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 Jt(e,n){if(n){if(_n[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(o(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(o(61))}if(n.style!=null&&typeof n.style!="object")throw Error(o(62))}}function en(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xt=null;function qt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cn=null,St=null,sn=null;function xt(e){if(e=zi(e)){if(typeof Cn!="function")throw Error(o(280));var n=e.stateNode;n&&(n=Nl(n),Cn(e.stateNode,e.type,n))}}function tn(e){St?sn?sn.push(e):sn=[e]:St=e}function Tn(){if(St){var e=St,n=sn;if(sn=St=null,xt(e),n)for(e=0;e<n.length;e++)xt(n[e])}}function Gn(e,n){return e(n)}function Qe(){}var Ct=!1;function Nt(e,n,s){if(Ct)return e(n,s);Ct=!0;try{return Gn(e,n,s)}finally{Ct=!1,(St!==null||sn!==null)&&(Qe(),Tn())}}function gt(e,n){var s=e.stateNode;if(s===null)return null;var a=Nl(s);if(a===null)return null;s=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(o(231,n,typeof s));return s}var Bt=!1;if(d)try{var Tt={};Object.defineProperty(Tt,"passive",{get:function(){Bt=!0}}),window.addEventListener("test",Tt,Tt),window.removeEventListener("test",Tt,Tt)}catch{Bt=!1}function Ye(e,n,s,a,c,p,k,M,V){var oe=Array.prototype.slice.call(arguments,3);try{n.apply(s,oe)}catch(de){this.onError(de)}}var ot=!1,Ht=null,At=!1,It=null,Xn={onError:function(e){ot=!0,Ht=e}};function wn(e,n,s,a,c,p,k,M,V){ot=!1,Ht=null,Ye.apply(Xn,arguments)}function In(e,n,s,a,c,p,k,M,V){if(wn.apply(this,arguments),ot){if(ot){var oe=Ht;ot=!1,Ht=null}else throw Error(o(198));At||(At=!0,It=oe)}}function ln(e){var n=e,s=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(s=n.return),e=n.return;while(e)}return n.tag===3?s:null}function lr(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function Dn(e){if(ln(e)!==e)throw Error(o(188))}function es(e){var n=e.alternate;if(!n){if(n=ln(e),n===null)throw Error(o(188));return n!==e?null:e}for(var s=e,a=n;;){var c=s.return;if(c===null)break;var p=c.alternate;if(p===null){if(a=c.return,a!==null){s=a;continue}break}if(c.child===p.child){for(p=c.child;p;){if(p===s)return Dn(c),e;if(p===a)return Dn(c),n;p=p.sibling}throw Error(o(188))}if(s.return!==a.return)s=c,a=p;else{for(var k=!1,M=c.child;M;){if(M===s){k=!0,s=c,a=p;break}if(M===a){k=!0,a=c,s=p;break}M=M.sibling}if(!k){for(M=p.child;M;){if(M===s){k=!0,s=p,a=c;break}if(M===a){k=!0,a=p,s=c;break}M=M.sibling}if(!k)throw Error(o(189))}}if(s.alternate!==a)throw Error(o(190))}if(s.tag!==3)throw Error(o(188));return s.stateNode.current===s?e:n}function Xr(e){return e=es(e),e!==null?Or(e):null}function Or(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=Or(e);if(n!==null)return n;e=e.sibling}return null}var wr=r.unstable_scheduleCallback,Os=r.unstable_cancelCallback,Ms=r.unstable_shouldYield,Ls=r.unstable_requestPaint,mt=r.unstable_now,kr=r.unstable_getCurrentPriorityLevel,wo=r.unstable_ImmediatePriority,Fn=r.unstable_UserBlockingPriority,Mr=r.unstable_NormalPriority,Rl=r.unstable_LowPriority,qr=r.unstable_IdlePriority,ts=null,Pn=null;function Ns(e){if(Pn&&typeof Pn.onCommitFiberRoot=="function")try{Pn.onCommitFiberRoot(ts,e,void 0,(e.current.flags&128)===128)}catch{}}var gn=Math.clz32?Math.clz32:Mu,Au=Math.log,Ou=Math.LN2;function Mu(e){return e>>>=0,e===0?32:31-(Au(e)/Ou|0)|0}var ko=64,Ri=4194304;function te(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ue(e,n){var s=e.pendingLanes;if(s===0)return 0;var a=0,c=e.suspendedLanes,p=e.pingedLanes,k=s&268435455;if(k!==0){var M=k&~c;M!==0?a=te(M):(p&=k,p!==0&&(a=te(p)))}else k=s&~c,k!==0?a=te(k):p!==0&&(a=te(p));if(a===0)return 0;if(n!==0&&n!==a&&(n&c)===0&&(c=a&-a,p=n&-n,c>=p||c===16&&(p&4194240)!==0))return n;if((a&4)!==0&&(a|=s&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=a;0<n;)s=31-gn(n),c=1<<s,a|=e[s],n&=~c;return a}function ye(e,n){switch(e){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 je(e,n){for(var s=e.suspendedLanes,a=e.pingedLanes,c=e.expirationTimes,p=e.pendingLanes;0<p;){var k=31-gn(p),M=1<<k,V=c[k];V===-1?((M&s)===0||(M&a)!==0)&&(c[k]=ye(M,n)):V<=n&&(e.expiredLanes|=M),p&=~M}}function Ze(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ge(){var e=ko;return ko<<=1,(ko&4194240)===0&&(ko=64),e}function it(e){for(var n=[],s=0;31>s;s++)n.push(e);return n}function Rt(e,n,s){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-gn(n),e[n]=s}function yt(e,n){var s=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0<s;){var c=31-gn(s),p=1<<c;n[c]=0,a[c]=-1,e[c]=-1,s&=~p}}function Be(e,n){var s=e.entangledLanes|=n;for(e=e.entanglements;s;){var a=31-gn(s),c=1<<a;c&n|e[a]&n&&(e[a]|=n),s&=~c}}var Re=0;function at(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Ut,Zt,Kt,br,qn,Lr=!1,bo=[],ar=null,zn=null,ur=null,So=new Map,an=new Map,Yt=[],ns="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 Ei(e,n){switch(e){case"focusin":case"focusout":ar=null;break;case"dragenter":case"dragleave":zn=null;break;case"mouseover":case"mouseout":ur=null;break;case"pointerover":case"pointerout":So.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":an.delete(n.pointerId)}}function Zn(e,n,s,a,c,p){return e===null||e.nativeEvent!==p?(e={blockedOn:n,domEventName:s,eventSystemFlags:a,nativeEvent:p,targetContainers:[c]},n!==null&&(n=zi(n),n!==null&&Zt(n)),e):(e.eventSystemFlags|=a,n=e.targetContainers,c!==null&&n.indexOf(c)===-1&&n.push(c),e)}function Ci(e,n,s,a,c){switch(n){case"focusin":return ar=Zn(ar,e,n,s,a,c),!0;case"dragenter":return zn=Zn(zn,e,n,s,a,c),!0;case"mouseover":return ur=Zn(ur,e,n,s,a,c),!0;case"pointerover":var p=c.pointerId;return So.set(p,Zn(So.get(p)||null,e,n,s,a,c)),!0;case"gotpointercapture":return p=c.pointerId,an.set(p,Zn(an.get(p)||null,e,n,s,a,c)),!0}return!1}function Qn(e){var n=os(e.target);if(n!==null){var s=ln(n);if(s!==null){if(n=s.tag,n===13){if(n=lr(s),n!==null){e.blockedOn=n,qn(e.priority,function(){Kt(s)});return}}else if(n===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Jn(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var s=ht(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(s===null){s=e.nativeEvent;var a=new s.constructor(s.type,s);Xt=a,s.target.dispatchEvent(a),Xt=null}else return n=zi(s),n!==null&&Zt(n),e.blockedOn=s,!1;n.shift()}return!0}function Zr(e,n,s){Jn(e)&&s.delete(n)}function El(){Lr=!1,ar!==null&&Jn(ar)&&(ar=null),zn!==null&&Jn(zn)&&(zn=null),ur!==null&&Jn(ur)&&(ur=null),So.forEach(Zr),an.forEach(Zr)}function kn(e,n){e.blockedOn===n&&(e.blockedOn=null,Lr||(Lr=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,El)))}function Qr(e){function n(c){return kn(c,e)}if(0<bo.length){kn(bo[0],e);for(var s=1;s<bo.length;s++){var a=bo[s];a.blockedOn===e&&(a.blockedOn=null)}}for(ar!==null&&kn(ar,e),zn!==null&&kn(zn,e),ur!==null&&kn(ur,e),So.forEach(n),an.forEach(n),s=0;s<Yt.length;s++)a=Yt[s],a.blockedOn===e&&(a.blockedOn=null);for(;0<Yt.length&&(s=Yt[0],s.blockedOn===null);)Qn(s),s.blockedOn===null&&Yt.shift()}var Nr=T.ReactCurrentBatchConfig,Ro=!0;function jn(e,n,s,a){var c=Re,p=Nr.transition;Nr.transition=null;try{Re=1,rs(e,n,s,a)}finally{Re=c,Nr.transition=p}}function _s(e,n,s,a){var c=Re,p=Nr.transition;Nr.transition=null;try{Re=4,rs(e,n,s,a)}finally{Re=c,Nr.transition=p}}function rs(e,n,s,a){if(Ro){var c=ht(e,n,s,a);if(c===null)Gu(e,n,a,Eo,s),Ei(e,a);else if(Ci(c,e,n,s,a))a.stopPropagation();else if(Ei(e,a),n&4&&-1<ns.indexOf(e)){for(;c!==null;){var p=zi(c);if(p!==null&&Ut(p),p=ht(e,n,s,a),p===null&&Gu(e,n,a,Eo,s),p===c)break;c=p}c!==null&&a.stopPropagation()}else Gu(e,n,a,null,s)}}var Eo=null;function ht(e,n,s,a){if(Eo=null,e=qt(a),e=os(e),e!==null)if(n=ln(e),n===null)e=null;else if(s=n.tag,s===13){if(e=lr(n),e!==null)return e;e=null}else if(s===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return Eo=e,null}function $n(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(kr()){case wo:return 1;case Fn:return 4;case Mr:case Rl:return 16;case qr:return 536870912;default:return 16}default:return 16}}var un=null,er=null,Jr=null;function Ds(){if(Jr)return Jr;var e,n=er,s=n.length,a,c="value"in un?un.value:un.textContent,p=c.length;for(e=0;e<s&&n[e]===c[e];e++);var k=s-e;for(a=1;a<=k&&n[s-a]===c[p-a];a++);return Jr=c.slice(e,1<a?1-a:void 0)}function cr(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Co(){return!0}function np(){return!1}function tr(e){function n(s,a,c,p,k){this._reactName=s,this._targetInst=c,this.type=a,this.nativeEvent=p,this.target=k,this.currentTarget=null;for(var M in e)e.hasOwnProperty(M)&&(s=e[M],this[M]=s?s(p):p[M]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Co:np,this.isPropagationStopped=np,this}return B(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=Co)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Co)},persist:function(){},isPersistent:Co}),n}var Fs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Lu=tr(Fs),Ti=B({},Fs,{view:0,detail:0}),A1=tr(Ti),Nu,_u,Ii,Cl=B({},Ti,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ii&&(Ii&&e.type==="mousemove"?(Nu=e.screenX-Ii.screenX,_u=e.screenY-Ii.screenY):_u=Nu=0,Ii=e),Nu)},movementY:function(e){return"movementY"in e?e.movementY:_u}}),rp=tr(Cl),O1=B({},Cl,{dataTransfer:0}),M1=tr(O1),L1=B({},Ti,{relatedTarget:0}),Du=tr(L1),N1=B({},Fs,{animationName:0,elapsedTime:0,pseudoElement:0}),_1=tr(N1),D1=B({},Fs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),F1=tr(D1),z1=B({},Fs,{data:0}),op=tr(z1),j1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$1={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"},V1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function B1(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=V1[e])?!!n[e]:!1}function Fu(){return B1}var H1=B({},Ti,{key:function(e){if(e.key){var n=j1[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=cr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fu,charCode:function(e){return e.type==="keypress"?cr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?cr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),U1=tr(H1),W1=B({},Cl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sp=tr(W1),K1=B({},Ti,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fu}),Y1=tr(K1),G1=B({},Fs,{propertyName:0,elapsedTime:0,pseudoElement:0}),X1=tr(G1),q1=B({},Cl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Z1=tr(q1),Q1=[9,13,27,32],zu=d&&"CompositionEvent"in window,Pi=null;d&&"documentMode"in document&&(Pi=document.documentMode);var J1=d&&"TextEvent"in window&&!Pi,ip=d&&(!zu||Pi&&8<Pi&&11>=Pi),lp=" ",ap=!1;function up(e,n){switch(e){case"keyup":return Q1.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zs=!1;function e2(e,n){switch(e){case"compositionend":return cp(n);case"keypress":return n.which!==32?null:(ap=!0,lp);case"textInput":return e=n.data,e===lp&&ap?null:e;default:return null}}function t2(e,n){if(zs)return e==="compositionend"||!zu&&up(e,n)?(e=Ds(),Jr=er=un=null,zs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return ip&&n.locale!=="ko"?null:n.data;default:return null}}var n2={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 fp(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!n2[e.type]:n==="textarea"}function dp(e,n,s,a){tn(a),n=Ol(n,"onChange"),0<n.length&&(s=new Lu("onChange","change",null,s,a),e.push({event:s,listeners:n}))}var Ai=null,Oi=null;function r2(e){Ap(e,0)}function Tl(e){var n=Hs(e);if(be(n))return e}function o2(e,n){if(e==="change")return n}var pp=!1;if(d){var ju;if(d){var $u="oninput"in document;if(!$u){var hp=document.createElement("div");hp.setAttribute("oninput","return;"),$u=typeof hp.oninput=="function"}ju=$u}else ju=!1;pp=ju&&(!document.documentMode||9<document.documentMode)}function gp(){Ai&&(Ai.detachEvent("onpropertychange",mp),Oi=Ai=null)}function mp(e){if(e.propertyName==="value"&&Tl(Oi)){var n=[];dp(n,Oi,e,qt(e)),Nt(r2,n)}}function s2(e,n,s){e==="focusin"?(gp(),Ai=n,Oi=s,Ai.attachEvent("onpropertychange",mp)):e==="focusout"&&gp()}function i2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Tl(Oi)}function l2(e,n){if(e==="click")return Tl(n)}function a2(e,n){if(e==="input"||e==="change")return Tl(n)}function u2(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Sr=typeof Object.is=="function"?Object.is:u2;function Mi(e,n){if(Sr(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var s=Object.keys(e),a=Object.keys(n);if(s.length!==a.length)return!1;for(a=0;a<s.length;a++){var c=s[a];if(!h.call(n,c)||!Sr(e[c],n[c]))return!1}return!0}function yp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function vp(e,n){var s=yp(e);e=0;for(var a;s;){if(s.nodeType===3){if(a=e+s.textContent.length,e<=n&&a>=n)return{node:s,offset:n-e};e=a}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=yp(s)}}function xp(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?xp(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function wp(){for(var e=window,n=Ae();n instanceof e.HTMLIFrameElement;){try{var s=typeof n.contentWindow.location.href=="string"}catch{s=!1}if(s)e=n.contentWindow;else break;n=Ae(e.document)}return n}function Vu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function c2(e){var n=wp(),s=e.focusedElem,a=e.selectionRange;if(n!==s&&s&&s.ownerDocument&&xp(s.ownerDocument.documentElement,s)){if(a!==null&&Vu(s)){if(n=a.start,e=a.end,e===void 0&&(e=n),"selectionStart"in s)s.selectionStart=n,s.selectionEnd=Math.min(e,s.value.length);else if(e=(n=s.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var c=s.textContent.length,p=Math.min(a.start,c);a=a.end===void 0?p:Math.min(a.end,c),!e.extend&&p>a&&(c=a,a=p,p=c),c=vp(s,p);var k=vp(s,a);c&&k&&(e.rangeCount!==1||e.anchorNode!==c.node||e.anchorOffset!==c.offset||e.focusNode!==k.node||e.focusOffset!==k.offset)&&(n=n.createRange(),n.setStart(c.node,c.offset),e.removeAllRanges(),p>a?(e.addRange(n),e.extend(k.node,k.offset)):(n.setEnd(k.node,k.offset),e.addRange(n)))}}for(n=[],e=s;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<n.length;s++)e=n[s],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var f2=d&&"documentMode"in document&&11>=document.documentMode,js=null,Bu=null,Li=null,Hu=!1;function kp(e,n,s){var a=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Hu||js==null||js!==Ae(a)||(a=js,"selectionStart"in a&&Vu(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Li&&Mi(Li,a)||(Li=a,a=Ol(Bu,"onSelect"),0<a.length&&(n=new Lu("onSelect","select",null,n,s),e.push({event:n,listeners:a}),n.target=js)))}function Il(e,n){var s={};return s[e.toLowerCase()]=n.toLowerCase(),s["Webkit"+e]="webkit"+n,s["Moz"+e]="moz"+n,s}var $s={animationend:Il("Animation","AnimationEnd"),animationiteration:Il("Animation","AnimationIteration"),animationstart:Il("Animation","AnimationStart"),transitionend:Il("Transition","TransitionEnd")},Uu={},bp={};d&&(bp=document.createElement("div").style,"AnimationEvent"in window||(delete $s.animationend.animation,delete $s.animationiteration.animation,delete $s.animationstart.animation),"TransitionEvent"in window||delete $s.transitionend.transition);function Pl(e){if(Uu[e])return Uu[e];if(!$s[e])return e;var n=$s[e],s;for(s in n)if(n.hasOwnProperty(s)&&s in bp)return Uu[e]=n[s];return e}var Sp=Pl("animationend"),Rp=Pl("animationiteration"),Ep=Pl("animationstart"),Cp=Pl("transitionend"),Tp=new Map,Ip="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 To(e,n){Tp.set(e,n),u(n,[e])}for(var Wu=0;Wu<Ip.length;Wu++){var Ku=Ip[Wu],d2=Ku.toLowerCase(),p2=Ku[0].toUpperCase()+Ku.slice(1);To(d2,"on"+p2)}To(Sp,"onAnimationEnd"),To(Rp,"onAnimationIteration"),To(Ep,"onAnimationStart"),To("dblclick","onDoubleClick"),To("focusin","onFocus"),To("focusout","onBlur"),To(Cp,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ni="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(" "),h2=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ni));function Pp(e,n,s){var a=e.type||"unknown-event";e.currentTarget=s,In(a,n,void 0,e),e.currentTarget=null}function Ap(e,n){n=(n&4)!==0;for(var s=0;s<e.length;s++){var a=e[s],c=a.event;a=a.listeners;e:{var p=void 0;if(n)for(var k=a.length-1;0<=k;k--){var M=a[k],V=M.instance,oe=M.currentTarget;if(M=M.listener,V!==p&&c.isPropagationStopped())break e;Pp(c,M,oe),p=V}else for(k=0;k<a.length;k++){if(M=a[k],V=M.instance,oe=M.currentTarget,M=M.listener,V!==p&&c.isPropagationStopped())break e;Pp(c,M,oe),p=V}}}if(At)throw e=It,At=!1,It=null,e}function Ot(e,n){var s=n[ec];s===void 0&&(s=n[ec]=new Set);var a=e+"__bubble";s.has(a)||(Op(n,e,2,!1),s.add(a))}function Yu(e,n,s){var a=0;n&&(a|=4),Op(s,e,a,n)}var Al="_reactListening"+Math.random().toString(36).slice(2);function _i(e){if(!e[Al]){e[Al]=!0,i.forEach(function(s){s!=="selectionchange"&&(h2.has(s)||Yu(s,!1,e),Yu(s,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Al]||(n[Al]=!0,Yu("selectionchange",!1,n))}}function Op(e,n,s,a){switch($n(n)){case 1:var c=jn;break;case 4:c=_s;break;default:c=rs}s=c.bind(null,n,s,e),c=void 0,!Bt||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(c=!0),a?c!==void 0?e.addEventListener(n,s,{capture:!0,passive:c}):e.addEventListener(n,s,!0):c!==void 0?e.addEventListener(n,s,{passive:c}):e.addEventListener(n,s,!1)}function Gu(e,n,s,a,c){var p=a;if((n&1)===0&&(n&2)===0&&a!==null)e:for(;;){if(a===null)return;var k=a.tag;if(k===3||k===4){var M=a.stateNode.containerInfo;if(M===c||M.nodeType===8&&M.parentNode===c)break;if(k===4)for(k=a.return;k!==null;){var V=k.tag;if((V===3||V===4)&&(V=k.stateNode.containerInfo,V===c||V.nodeType===8&&V.parentNode===c))return;k=k.return}for(;M!==null;){if(k=os(M),k===null)return;if(V=k.tag,V===5||V===6){a=p=k;continue e}M=M.parentNode}}a=a.return}Nt(function(){var oe=p,de=qt(s),pe=[];e:{var ce=Tp.get(e);if(ce!==void 0){var Ee=Lu,Oe=e;switch(e){case"keypress":if(cr(s)===0)break e;case"keydown":case"keyup":Ee=U1;break;case"focusin":Oe="focus",Ee=Du;break;case"focusout":Oe="blur",Ee=Du;break;case"beforeblur":case"afterblur":Ee=Du;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=rp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ee=M1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ee=Y1;break;case Sp:case Rp:case Ep:Ee=_1;break;case Cp:Ee=X1;break;case"scroll":Ee=A1;break;case"wheel":Ee=Z1;break;case"copy":case"cut":case"paste":Ee=F1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ee=sp}var Ne=(n&4)!==0,Gt=!Ne&&e==="scroll",Z=Ne?ce!==null?ce+"Capture":null:ce;Ne=[];for(var U=oe,ee;U!==null;){ee=U;var ve=ee.stateNode;if(ee.tag===5&&ve!==null&&(ee=ve,Z!==null&&(ve=gt(U,Z),ve!=null&&Ne.push(Di(U,ve,ee)))),Gt)break;U=U.return}0<Ne.length&&(ce=new Ee(ce,Oe,null,s,de),pe.push({event:ce,listeners:Ne}))}}if((n&7)===0){e:{if(ce=e==="mouseover"||e==="pointerover",Ee=e==="mouseout"||e==="pointerout",ce&&s!==Xt&&(Oe=s.relatedTarget||s.fromElement)&&(os(Oe)||Oe[eo]))break e;if((Ee||ce)&&(ce=de.window===de?de:(ce=de.ownerDocument)?ce.defaultView||ce.parentWindow:window,Ee?(Oe=s.relatedTarget||s.toElement,Ee=oe,Oe=Oe?os(Oe):null,Oe!==null&&(Gt=ln(Oe),Oe!==Gt||Oe.tag!==5&&Oe.tag!==6)&&(Oe=null)):(Ee=null,Oe=oe),Ee!==Oe)){if(Ne=rp,ve="onMouseLeave",Z="onMouseEnter",U="mouse",(e==="pointerout"||e==="pointerover")&&(Ne=sp,ve="onPointerLeave",Z="onPointerEnter",U="pointer"),Gt=Ee==null?ce:Hs(Ee),ee=Oe==null?ce:Hs(Oe),ce=new Ne(ve,U+"leave",Ee,s,de),ce.target=Gt,ce.relatedTarget=ee,ve=null,os(de)===oe&&(Ne=new Ne(Z,U+"enter",Oe,s,de),Ne.target=ee,Ne.relatedTarget=Gt,ve=Ne),Gt=ve,Ee&&Oe)t:{for(Ne=Ee,Z=Oe,U=0,ee=Ne;ee;ee=Vs(ee))U++;for(ee=0,ve=Z;ve;ve=Vs(ve))ee++;for(;0<U-ee;)Ne=Vs(Ne),U--;for(;0<ee-U;)Z=Vs(Z),ee--;for(;U--;){if(Ne===Z||Z!==null&&Ne===Z.alternate)break t;Ne=Vs(Ne),Z=Vs(Z)}Ne=null}else Ne=null;Ee!==null&&Mp(pe,ce,Ee,Ne,!1),Oe!==null&&Gt!==null&&Mp(pe,Gt,Oe,Ne,!0)}}e:{if(ce=oe?Hs(oe):window,Ee=ce.nodeName&&ce.nodeName.toLowerCase(),Ee==="select"||Ee==="input"&&ce.type==="file")var _e=o2;else if(fp(ce))if(pp)_e=a2;else{_e=i2;var He=s2}else(Ee=ce.nodeName)&&Ee.toLowerCase()==="input"&&(ce.type==="checkbox"||ce.type==="radio")&&(_e=l2);if(_e&&(_e=_e(e,oe))){dp(pe,_e,s,de);break e}He&&He(e,ce,oe),e==="focusout"&&(He=ce._wrapperState)&&He.controlled&&ce.type==="number"&&Te(ce,"number",ce.value)}switch(He=oe?Hs(oe):window,e){case"focusin":(fp(He)||He.contentEditable==="true")&&(js=He,Bu=oe,Li=null);break;case"focusout":Li=Bu=js=null;break;case"mousedown":Hu=!0;break;case"contextmenu":case"mouseup":case"dragend":Hu=!1,kp(pe,s,de);break;case"selectionchange":if(f2)break;case"keydown":case"keyup":kp(pe,s,de)}var Ue;if(zu)e:{switch(e){case"compositionstart":var Xe="onCompositionStart";break e;case"compositionend":Xe="onCompositionEnd";break e;case"compositionupdate":Xe="onCompositionUpdate";break e}Xe=void 0}else zs?up(e,s)&&(Xe="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(Xe="onCompositionStart");Xe&&(ip&&s.locale!=="ko"&&(zs||Xe!=="onCompositionStart"?Xe==="onCompositionEnd"&&zs&&(Ue=Ds()):(un=de,er="value"in un?un.value:un.textContent,zs=!0)),He=Ol(oe,Xe),0<He.length&&(Xe=new op(Xe,e,null,s,de),pe.push({event:Xe,listeners:He}),Ue?Xe.data=Ue:(Ue=cp(s),Ue!==null&&(Xe.data=Ue)))),(Ue=J1?e2(e,s):t2(e,s))&&(oe=Ol(oe,"onBeforeInput"),0<oe.length&&(de=new op("onBeforeInput","beforeinput",null,s,de),pe.push({event:de,listeners:oe}),de.data=Ue))}Ap(pe,n)})}function Di(e,n,s){return{instance:e,listener:n,currentTarget:s}}function Ol(e,n){for(var s=n+"Capture",a=[];e!==null;){var c=e,p=c.stateNode;c.tag===5&&p!==null&&(c=p,p=gt(e,s),p!=null&&a.unshift(Di(e,p,c)),p=gt(e,n),p!=null&&a.push(Di(e,p,c))),e=e.return}return a}function Vs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Mp(e,n,s,a,c){for(var p=n._reactName,k=[];s!==null&&s!==a;){var M=s,V=M.alternate,oe=M.stateNode;if(V!==null&&V===a)break;M.tag===5&&oe!==null&&(M=oe,c?(V=gt(s,p),V!=null&&k.unshift(Di(s,V,M))):c||(V=gt(s,p),V!=null&&k.push(Di(s,V,M)))),s=s.return}k.length!==0&&e.push({event:n,listeners:k})}var g2=/\r\n?/g,m2=/\u0000|\uFFFD/g;function Lp(e){return(typeof e=="string"?e:""+e).replace(g2,`
|
|
38
|
-
`).replace(m2,"")}function Ml(e,n,s){if(n=Lp(n),Lp(e)!==n&&s)throw Error(o(425))}function Ll(){}var Xu=null,qu=null;function Zu(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Qu=typeof setTimeout=="function"?setTimeout:void 0,y2=typeof clearTimeout=="function"?clearTimeout:void 0,Np=typeof Promise=="function"?Promise:void 0,v2=typeof queueMicrotask=="function"?queueMicrotask:typeof Np<"u"?function(e){return Np.resolve(null).then(e).catch(x2)}:Qu;function x2(e){setTimeout(function(){throw e})}function Ju(e,n){var s=n,a=0;do{var c=s.nextSibling;if(e.removeChild(s),c&&c.nodeType===8)if(s=c.data,s==="/$"){if(a===0){e.removeChild(c),Qr(n);return}a--}else s!=="$"&&s!=="$?"&&s!=="$!"||a++;s=c}while(s);Qr(n)}function Io(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function _p(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"){if(n===0)return e;n--}else s==="/$"&&n++}e=e.previousSibling}return null}var Bs=Math.random().toString(36).slice(2),_r="__reactFiber$"+Bs,Fi="__reactProps$"+Bs,eo="__reactContainer$"+Bs,ec="__reactEvents$"+Bs,w2="__reactListeners$"+Bs,k2="__reactHandles$"+Bs;function os(e){var n=e[_r];if(n)return n;for(var s=e.parentNode;s;){if(n=s[eo]||s[_r]){if(s=n.alternate,n.child!==null||s!==null&&s.child!==null)for(e=_p(e);e!==null;){if(s=e[_r])return s;e=_p(e)}return n}e=s,s=e.parentNode}return null}function zi(e){return e=e[_r]||e[eo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Hs(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function Nl(e){return e[Fi]||null}var tc=[],Us=-1;function Po(e){return{current:e}}function Mt(e){0>Us||(e.current=tc[Us],tc[Us]=null,Us--)}function Pt(e,n){Us++,tc[Us]=e.current,e.current=n}var Ao={},bn=Po(Ao),Vn=Po(!1),ss=Ao;function Ws(e,n){var s=e.type.contextTypes;if(!s)return Ao;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===n)return a.__reactInternalMemoizedMaskedChildContext;var c={},p;for(p in s)c[p]=n[p];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=c),c}function Bn(e){return e=e.childContextTypes,e!=null}function _l(){Mt(Vn),Mt(bn)}function Dp(e,n,s){if(bn.current!==Ao)throw Error(o(168));Pt(bn,n),Pt(Vn,s)}function Fp(e,n,s){var a=e.stateNode;if(n=n.childContextTypes,typeof a.getChildContext!="function")return s;a=a.getChildContext();for(var c in a)if(!(c in n))throw Error(o(108,ne(e)||"Unknown",c));return B({},s,a)}function Dl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ao,ss=bn.current,Pt(bn,e),Pt(Vn,Vn.current),!0}function zp(e,n,s){var a=e.stateNode;if(!a)throw Error(o(169));s?(e=Fp(e,n,ss),a.__reactInternalMemoizedMergedChildContext=e,Mt(Vn),Mt(bn),Pt(bn,e)):Mt(Vn),Pt(Vn,s)}var to=null,Fl=!1,nc=!1;function jp(e){to===null?to=[e]:to.push(e)}function b2(e){Fl=!0,jp(e)}function Oo(){if(!nc&&to!==null){nc=!0;var e=0,n=Re;try{var s=to;for(Re=1;e<s.length;e++){var a=s[e];do a=a(!0);while(a!==null)}to=null,Fl=!1}catch(c){throw to!==null&&(to=to.slice(e+1)),wr(wo,Oo),c}finally{Re=n,nc=!1}}return null}var Ks=[],Ys=0,zl=null,jl=0,fr=[],dr=0,is=null,no=1,ro="";function ls(e,n){Ks[Ys++]=jl,Ks[Ys++]=zl,zl=e,jl=n}function $p(e,n,s){fr[dr++]=no,fr[dr++]=ro,fr[dr++]=is,is=e;var a=no;e=ro;var c=32-gn(a)-1;a&=~(1<<c),s+=1;var p=32-gn(n)+c;if(30<p){var k=c-c%5;p=(a&(1<<k)-1).toString(32),a>>=k,c-=k,no=1<<32-gn(n)+c|s<<c|a,ro=p+e}else no=1<<p|s<<c|a,ro=e}function rc(e){e.return!==null&&(ls(e,1),$p(e,1,0))}function oc(e){for(;e===zl;)zl=Ks[--Ys],Ks[Ys]=null,jl=Ks[--Ys],Ks[Ys]=null;for(;e===is;)is=fr[--dr],fr[dr]=null,ro=fr[--dr],fr[dr]=null,no=fr[--dr],fr[dr]=null}var nr=null,rr=null,_t=!1,Rr=null;function Vp(e,n){var s=mr(5,null,null,0);s.elementType="DELETED",s.stateNode=n,s.return=e,n=e.deletions,n===null?(e.deletions=[s],e.flags|=16):n.push(s)}function Bp(e,n){switch(e.tag){case 5:var s=e.type;return n=n.nodeType!==1||s.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,nr=e,rr=Io(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,nr=e,rr=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(s=is!==null?{id:no,overflow:ro}:null,e.memoizedState={dehydrated:n,treeContext:s,retryLane:1073741824},s=mr(18,null,null,0),s.stateNode=n,s.return=e,e.child=s,nr=e,rr=null,!0):!1;default:return!1}}function sc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ic(e){if(_t){var n=rr;if(n){var s=n;if(!Bp(e,n)){if(sc(e))throw Error(o(418));n=Io(s.nextSibling);var a=nr;n&&Bp(e,n)?Vp(a,s):(e.flags=e.flags&-4097|2,_t=!1,nr=e)}}else{if(sc(e))throw Error(o(418));e.flags=e.flags&-4097|2,_t=!1,nr=e}}}function Hp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;nr=e}function $l(e){if(e!==nr)return!1;if(!_t)return Hp(e),_t=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!Zu(e.type,e.memoizedProps)),n&&(n=rr)){if(sc(e))throw Up(),Error(o(418));for(;n;)Vp(e,n),n=Io(n.nextSibling)}if(Hp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"){if(n===0){rr=Io(e.nextSibling);break e}n--}else s!=="$"&&s!=="$!"&&s!=="$?"||n++}e=e.nextSibling}rr=null}}else rr=nr?Io(e.stateNode.nextSibling):null;return!0}function Up(){for(var e=rr;e;)e=Io(e.nextSibling)}function Gs(){rr=nr=null,_t=!1}function lc(e){Rr===null?Rr=[e]:Rr.push(e)}var S2=T.ReactCurrentBatchConfig;function ji(e,n,s){if(e=s.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(o(309));var a=s.stateNode}if(!a)throw Error(o(147,e));var c=a,p=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===p?n.ref:(n=function(k){var M=c.refs;k===null?delete M[p]:M[p]=k},n._stringRef=p,n)}if(typeof e!="string")throw Error(o(284));if(!s._owner)throw Error(o(290,e))}return e}function Vl(e,n){throw e=Object.prototype.toString.call(n),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function Wp(e){var n=e._init;return n(e._payload)}function Kp(e){function n(Z,U){if(e){var ee=Z.deletions;ee===null?(Z.deletions=[U],Z.flags|=16):ee.push(U)}}function s(Z,U){if(!e)return null;for(;U!==null;)n(Z,U),U=U.sibling;return null}function a(Z,U){for(Z=new Map;U!==null;)U.key!==null?Z.set(U.key,U):Z.set(U.index,U),U=U.sibling;return Z}function c(Z,U){return Z=jo(Z,U),Z.index=0,Z.sibling=null,Z}function p(Z,U,ee){return Z.index=ee,e?(ee=Z.alternate,ee!==null?(ee=ee.index,ee<U?(Z.flags|=2,U):ee):(Z.flags|=2,U)):(Z.flags|=1048576,U)}function k(Z){return e&&Z.alternate===null&&(Z.flags|=2),Z}function M(Z,U,ee,ve){return U===null||U.tag!==6?(U=Qc(ee,Z.mode,ve),U.return=Z,U):(U=c(U,ee),U.return=Z,U)}function V(Z,U,ee,ve){var _e=ee.type;return _e===D?de(Z,U,ee.props.children,ve,ee.key):U!==null&&(U.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===Q&&Wp(_e)===U.type)?(ve=c(U,ee.props),ve.ref=ji(Z,U,ee),ve.return=Z,ve):(ve=fa(ee.type,ee.key,ee.props,null,Z.mode,ve),ve.ref=ji(Z,U,ee),ve.return=Z,ve)}function oe(Z,U,ee,ve){return U===null||U.tag!==4||U.stateNode.containerInfo!==ee.containerInfo||U.stateNode.implementation!==ee.implementation?(U=Jc(ee,Z.mode,ve),U.return=Z,U):(U=c(U,ee.children||[]),U.return=Z,U)}function de(Z,U,ee,ve,_e){return U===null||U.tag!==7?(U=gs(ee,Z.mode,ve,_e),U.return=Z,U):(U=c(U,ee),U.return=Z,U)}function pe(Z,U,ee){if(typeof U=="string"&&U!==""||typeof U=="number")return U=Qc(""+U,Z.mode,ee),U.return=Z,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case A:return ee=fa(U.type,U.key,U.props,null,Z.mode,ee),ee.ref=ji(Z,null,U),ee.return=Z,ee;case O:return U=Jc(U,Z.mode,ee),U.return=Z,U;case Q:var ve=U._init;return pe(Z,ve(U._payload),ee)}if(Fe(U)||H(U))return U=gs(U,Z.mode,ee,null),U.return=Z,U;Vl(Z,U)}return null}function ce(Z,U,ee,ve){var _e=U!==null?U.key:null;if(typeof ee=="string"&&ee!==""||typeof ee=="number")return _e!==null?null:M(Z,U,""+ee,ve);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case A:return ee.key===_e?V(Z,U,ee,ve):null;case O:return ee.key===_e?oe(Z,U,ee,ve):null;case Q:return _e=ee._init,ce(Z,U,_e(ee._payload),ve)}if(Fe(ee)||H(ee))return _e!==null?null:de(Z,U,ee,ve,null);Vl(Z,ee)}return null}function Ee(Z,U,ee,ve,_e){if(typeof ve=="string"&&ve!==""||typeof ve=="number")return Z=Z.get(ee)||null,M(U,Z,""+ve,_e);if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case A:return Z=Z.get(ve.key===null?ee:ve.key)||null,V(U,Z,ve,_e);case O:return Z=Z.get(ve.key===null?ee:ve.key)||null,oe(U,Z,ve,_e);case Q:var He=ve._init;return Ee(Z,U,ee,He(ve._payload),_e)}if(Fe(ve)||H(ve))return Z=Z.get(ee)||null,de(U,Z,ve,_e,null);Vl(U,ve)}return null}function Oe(Z,U,ee,ve){for(var _e=null,He=null,Ue=U,Xe=U=0,dn=null;Ue!==null&&Xe<ee.length;Xe++){Ue.index>Xe?(dn=Ue,Ue=null):dn=Ue.sibling;var pt=ce(Z,Ue,ee[Xe],ve);if(pt===null){Ue===null&&(Ue=dn);break}e&&Ue&&pt.alternate===null&&n(Z,Ue),U=p(pt,U,Xe),He===null?_e=pt:He.sibling=pt,He=pt,Ue=dn}if(Xe===ee.length)return s(Z,Ue),_t&&ls(Z,Xe),_e;if(Ue===null){for(;Xe<ee.length;Xe++)Ue=pe(Z,ee[Xe],ve),Ue!==null&&(U=p(Ue,U,Xe),He===null?_e=Ue:He.sibling=Ue,He=Ue);return _t&&ls(Z,Xe),_e}for(Ue=a(Z,Ue);Xe<ee.length;Xe++)dn=Ee(Ue,Z,Xe,ee[Xe],ve),dn!==null&&(e&&dn.alternate!==null&&Ue.delete(dn.key===null?Xe:dn.key),U=p(dn,U,Xe),He===null?_e=dn:He.sibling=dn,He=dn);return e&&Ue.forEach(function($o){return n(Z,$o)}),_t&&ls(Z,Xe),_e}function Ne(Z,U,ee,ve){var _e=H(ee);if(typeof _e!="function")throw Error(o(150));if(ee=_e.call(ee),ee==null)throw Error(o(151));for(var He=_e=null,Ue=U,Xe=U=0,dn=null,pt=ee.next();Ue!==null&&!pt.done;Xe++,pt=ee.next()){Ue.index>Xe?(dn=Ue,Ue=null):dn=Ue.sibling;var $o=ce(Z,Ue,pt.value,ve);if($o===null){Ue===null&&(Ue=dn);break}e&&Ue&&$o.alternate===null&&n(Z,Ue),U=p($o,U,Xe),He===null?_e=$o:He.sibling=$o,He=$o,Ue=dn}if(pt.done)return s(Z,Ue),_t&&ls(Z,Xe),_e;if(Ue===null){for(;!pt.done;Xe++,pt=ee.next())pt=pe(Z,pt.value,ve),pt!==null&&(U=p(pt,U,Xe),He===null?_e=pt:He.sibling=pt,He=pt);return _t&&ls(Z,Xe),_e}for(Ue=a(Z,Ue);!pt.done;Xe++,pt=ee.next())pt=Ee(Ue,Z,Xe,pt.value,ve),pt!==null&&(e&&pt.alternate!==null&&Ue.delete(pt.key===null?Xe:pt.key),U=p(pt,U,Xe),He===null?_e=pt:He.sibling=pt,He=pt);return e&&Ue.forEach(function(nx){return n(Z,nx)}),_t&&ls(Z,Xe),_e}function Gt(Z,U,ee,ve){if(typeof ee=="object"&&ee!==null&&ee.type===D&&ee.key===null&&(ee=ee.props.children),typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case A:e:{for(var _e=ee.key,He=U;He!==null;){if(He.key===_e){if(_e=ee.type,_e===D){if(He.tag===7){s(Z,He.sibling),U=c(He,ee.props.children),U.return=Z,Z=U;break e}}else if(He.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===Q&&Wp(_e)===He.type){s(Z,He.sibling),U=c(He,ee.props),U.ref=ji(Z,He,ee),U.return=Z,Z=U;break e}s(Z,He);break}else n(Z,He);He=He.sibling}ee.type===D?(U=gs(ee.props.children,Z.mode,ve,ee.key),U.return=Z,Z=U):(ve=fa(ee.type,ee.key,ee.props,null,Z.mode,ve),ve.ref=ji(Z,U,ee),ve.return=Z,Z=ve)}return k(Z);case O:e:{for(He=ee.key;U!==null;){if(U.key===He)if(U.tag===4&&U.stateNode.containerInfo===ee.containerInfo&&U.stateNode.implementation===ee.implementation){s(Z,U.sibling),U=c(U,ee.children||[]),U.return=Z,Z=U;break e}else{s(Z,U);break}else n(Z,U);U=U.sibling}U=Jc(ee,Z.mode,ve),U.return=Z,Z=U}return k(Z);case Q:return He=ee._init,Gt(Z,U,He(ee._payload),ve)}if(Fe(ee))return Oe(Z,U,ee,ve);if(H(ee))return Ne(Z,U,ee,ve);Vl(Z,ee)}return typeof ee=="string"&&ee!==""||typeof ee=="number"?(ee=""+ee,U!==null&&U.tag===6?(s(Z,U.sibling),U=c(U,ee),U.return=Z,Z=U):(s(Z,U),U=Qc(ee,Z.mode,ve),U.return=Z,Z=U),k(Z)):s(Z,U)}return Gt}var Xs=Kp(!0),Yp=Kp(!1),Bl=Po(null),Hl=null,qs=null,ac=null;function uc(){ac=qs=Hl=null}function cc(e){var n=Bl.current;Mt(Bl),e._currentValue=n}function fc(e,n,s){for(;e!==null;){var a=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,a!==null&&(a.childLanes|=n)):a!==null&&(a.childLanes&n)!==n&&(a.childLanes|=n),e===s)break;e=e.return}}function Zs(e,n){Hl=e,ac=qs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(Hn=!0),e.firstContext=null)}function pr(e){var n=e._currentValue;if(ac!==e)if(e={context:e,memoizedValue:n,next:null},qs===null){if(Hl===null)throw Error(o(308));qs=e,Hl.dependencies={lanes:0,firstContext:e}}else qs=qs.next=e;return n}var as=null;function dc(e){as===null?as=[e]:as.push(e)}function Gp(e,n,s,a){var c=n.interleaved;return c===null?(s.next=s,dc(n)):(s.next=c.next,c.next=s),n.interleaved=s,oo(e,a)}function oo(e,n){e.lanes|=n;var s=e.alternate;for(s!==null&&(s.lanes|=n),s=e,e=e.return;e!==null;)e.childLanes|=n,s=e.alternate,s!==null&&(s.childLanes|=n),s=e,e=e.return;return s.tag===3?s.stateNode:null}var Mo=!1;function pc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xp(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function so(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Lo(e,n,s){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(dt&2)!==0){var c=a.pending;return c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n,oo(e,s)}return c=a.interleaved,c===null?(n.next=n,dc(a)):(n.next=c.next,c.next=n),a.interleaved=n,oo(e,s)}function Ul(e,n,s){if(n=n.updateQueue,n!==null&&(n=n.shared,(s&4194240)!==0)){var a=n.lanes;a&=e.pendingLanes,s|=a,n.lanes=s,Be(e,s)}}function qp(e,n){var s=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,s===a)){var c=null,p=null;if(s=s.firstBaseUpdate,s!==null){do{var k={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};p===null?c=p=k:p=p.next=k,s=s.next}while(s!==null);p===null?c=p=n:p=p.next=n}else c=p=n;s={baseState:a.baseState,firstBaseUpdate:c,lastBaseUpdate:p,shared:a.shared,effects:a.effects},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=n:e.next=n,s.lastBaseUpdate=n}function Wl(e,n,s,a){var c=e.updateQueue;Mo=!1;var p=c.firstBaseUpdate,k=c.lastBaseUpdate,M=c.shared.pending;if(M!==null){c.shared.pending=null;var V=M,oe=V.next;V.next=null,k===null?p=oe:k.next=oe,k=V;var de=e.alternate;de!==null&&(de=de.updateQueue,M=de.lastBaseUpdate,M!==k&&(M===null?de.firstBaseUpdate=oe:M.next=oe,de.lastBaseUpdate=V))}if(p!==null){var pe=c.baseState;k=0,de=oe=V=null,M=p;do{var ce=M.lane,Ee=M.eventTime;if((a&ce)===ce){de!==null&&(de=de.next={eventTime:Ee,lane:0,tag:M.tag,payload:M.payload,callback:M.callback,next:null});e:{var Oe=e,Ne=M;switch(ce=n,Ee=s,Ne.tag){case 1:if(Oe=Ne.payload,typeof Oe=="function"){pe=Oe.call(Ee,pe,ce);break e}pe=Oe;break e;case 3:Oe.flags=Oe.flags&-65537|128;case 0:if(Oe=Ne.payload,ce=typeof Oe=="function"?Oe.call(Ee,pe,ce):Oe,ce==null)break e;pe=B({},pe,ce);break e;case 2:Mo=!0}}M.callback!==null&&M.lane!==0&&(e.flags|=64,ce=c.effects,ce===null?c.effects=[M]:ce.push(M))}else Ee={eventTime:Ee,lane:ce,tag:M.tag,payload:M.payload,callback:M.callback,next:null},de===null?(oe=de=Ee,V=pe):de=de.next=Ee,k|=ce;if(M=M.next,M===null){if(M=c.shared.pending,M===null)break;ce=M,M=ce.next,ce.next=null,c.lastBaseUpdate=ce,c.shared.pending=null}}while(!0);if(de===null&&(V=pe),c.baseState=V,c.firstBaseUpdate=oe,c.lastBaseUpdate=de,n=c.shared.interleaved,n!==null){c=n;do k|=c.lane,c=c.next;while(c!==n)}else p===null&&(c.shared.lanes=0);fs|=k,e.lanes=k,e.memoizedState=pe}}function Zp(e,n,s){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var a=e[n],c=a.callback;if(c!==null){if(a.callback=null,a=s,typeof c!="function")throw Error(o(191,c));c.call(a)}}}var $i={},Dr=Po($i),Vi=Po($i),Bi=Po($i);function us(e){if(e===$i)throw Error(o(174));return e}function hc(e,n){switch(Pt(Bi,n),Pt(Vi,e),Pt(Dr,$i),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Me(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Me(n,e)}Mt(Dr),Pt(Dr,n)}function Qs(){Mt(Dr),Mt(Vi),Mt(Bi)}function Qp(e){us(Bi.current);var n=us(Dr.current),s=Me(n,e.type);n!==s&&(Pt(Vi,e),Pt(Dr,s))}function gc(e){Vi.current===e&&(Mt(Dr),Mt(Vi))}var zt=Po(0);function Kl(e){for(var n=e;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===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var mc=[];function yc(){for(var e=0;e<mc.length;e++)mc[e]._workInProgressVersionPrimary=null;mc.length=0}var Yl=T.ReactCurrentDispatcher,vc=T.ReactCurrentBatchConfig,cs=0,jt=null,nn=null,cn=null,Gl=!1,Hi=!1,Ui=0,R2=0;function Sn(){throw Error(o(321))}function xc(e,n){if(n===null)return!1;for(var s=0;s<n.length&&s<e.length;s++)if(!Sr(e[s],n[s]))return!1;return!0}function wc(e,n,s,a,c,p){if(cs=p,jt=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,Yl.current=e===null||e.memoizedState===null?I2:P2,e=s(a,c),Hi){p=0;do{if(Hi=!1,Ui=0,25<=p)throw Error(o(301));p+=1,cn=nn=null,n.updateQueue=null,Yl.current=A2,e=s(a,c)}while(Hi)}if(Yl.current=Zl,n=nn!==null&&nn.next!==null,cs=0,cn=nn=jt=null,Gl=!1,n)throw Error(o(300));return e}function kc(){var e=Ui!==0;return Ui=0,e}function Fr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return cn===null?jt.memoizedState=cn=e:cn=cn.next=e,cn}function hr(){if(nn===null){var e=jt.alternate;e=e!==null?e.memoizedState:null}else e=nn.next;var n=cn===null?jt.memoizedState:cn.next;if(n!==null)cn=n,nn=e;else{if(e===null)throw Error(o(310));nn=e,e={memoizedState:nn.memoizedState,baseState:nn.baseState,baseQueue:nn.baseQueue,queue:nn.queue,next:null},cn===null?jt.memoizedState=cn=e:cn=cn.next=e}return cn}function Wi(e,n){return typeof n=="function"?n(e):n}function bc(e){var n=hr(),s=n.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=e;var a=nn,c=a.baseQueue,p=s.pending;if(p!==null){if(c!==null){var k=c.next;c.next=p.next,p.next=k}a.baseQueue=c=p,s.pending=null}if(c!==null){p=c.next,a=a.baseState;var M=k=null,V=null,oe=p;do{var de=oe.lane;if((cs&de)===de)V!==null&&(V=V.next={lane:0,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null}),a=oe.hasEagerState?oe.eagerState:e(a,oe.action);else{var pe={lane:de,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null};V===null?(M=V=pe,k=a):V=V.next=pe,jt.lanes|=de,fs|=de}oe=oe.next}while(oe!==null&&oe!==p);V===null?k=a:V.next=M,Sr(a,n.memoizedState)||(Hn=!0),n.memoizedState=a,n.baseState=k,n.baseQueue=V,s.lastRenderedState=a}if(e=s.interleaved,e!==null){c=e;do p=c.lane,jt.lanes|=p,fs|=p,c=c.next;while(c!==e)}else c===null&&(s.lanes=0);return[n.memoizedState,s.dispatch]}function Sc(e){var n=hr(),s=n.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=e;var a=s.dispatch,c=s.pending,p=n.memoizedState;if(c!==null){s.pending=null;var k=c=c.next;do p=e(p,k.action),k=k.next;while(k!==c);Sr(p,n.memoizedState)||(Hn=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),s.lastRenderedState=p}return[p,a]}function Jp(){}function eh(e,n){var s=jt,a=hr(),c=n(),p=!Sr(a.memoizedState,c);if(p&&(a.memoizedState=c,Hn=!0),a=a.queue,Rc(rh.bind(null,s,a,e),[e]),a.getSnapshot!==n||p||cn!==null&&cn.memoizedState.tag&1){if(s.flags|=2048,Ki(9,nh.bind(null,s,a,c,n),void 0,null),fn===null)throw Error(o(349));(cs&30)!==0||th(s,n,c)}return c}function th(e,n,s){e.flags|=16384,e={getSnapshot:n,value:s},n=jt.updateQueue,n===null?(n={lastEffect:null,stores:null},jt.updateQueue=n,n.stores=[e]):(s=n.stores,s===null?n.stores=[e]:s.push(e))}function nh(e,n,s,a){n.value=s,n.getSnapshot=a,oh(n)&&sh(e)}function rh(e,n,s){return s(function(){oh(n)&&sh(e)})}function oh(e){var n=e.getSnapshot;e=e.value;try{var s=n();return!Sr(e,s)}catch{return!0}}function sh(e){var n=oo(e,1);n!==null&&Ir(n,e,1,-1)}function ih(e){var n=Fr();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Wi,lastRenderedState:e},n.queue=e,e=e.dispatch=T2.bind(null,jt,e),[n.memoizedState,e]}function Ki(e,n,s,a){return e={tag:e,create:n,destroy:s,deps:a,next:null},n=jt.updateQueue,n===null?(n={lastEffect:null,stores:null},jt.updateQueue=n,n.lastEffect=e.next=e):(s=n.lastEffect,s===null?n.lastEffect=e.next=e:(a=s.next,s.next=e,e.next=a,n.lastEffect=e)),e}function lh(){return hr().memoizedState}function Xl(e,n,s,a){var c=Fr();jt.flags|=e,c.memoizedState=Ki(1|n,s,void 0,a===void 0?null:a)}function ql(e,n,s,a){var c=hr();a=a===void 0?null:a;var p=void 0;if(nn!==null){var k=nn.memoizedState;if(p=k.destroy,a!==null&&xc(a,k.deps)){c.memoizedState=Ki(n,s,p,a);return}}jt.flags|=e,c.memoizedState=Ki(1|n,s,p,a)}function ah(e,n){return Xl(8390656,8,e,n)}function Rc(e,n){return ql(2048,8,e,n)}function uh(e,n){return ql(4,2,e,n)}function ch(e,n){return ql(4,4,e,n)}function fh(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function dh(e,n,s){return s=s!=null?s.concat([e]):null,ql(4,4,fh.bind(null,n,e),s)}function Ec(){}function ph(e,n){var s=hr();n=n===void 0?null:n;var a=s.memoizedState;return a!==null&&n!==null&&xc(n,a[1])?a[0]:(s.memoizedState=[e,n],e)}function hh(e,n){var s=hr();n=n===void 0?null:n;var a=s.memoizedState;return a!==null&&n!==null&&xc(n,a[1])?a[0]:(e=e(),s.memoizedState=[e,n],e)}function gh(e,n,s){return(cs&21)===0?(e.baseState&&(e.baseState=!1,Hn=!0),e.memoizedState=s):(Sr(s,n)||(s=Ge(),jt.lanes|=s,fs|=s,e.baseState=!0),n)}function E2(e,n){var s=Re;Re=s!==0&&4>s?s:4,e(!0);var a=vc.transition;vc.transition={};try{e(!1),n()}finally{Re=s,vc.transition=a}}function mh(){return hr().memoizedState}function C2(e,n,s){var a=Fo(e);if(s={lane:a,action:s,hasEagerState:!1,eagerState:null,next:null},yh(e))vh(n,s);else if(s=Gp(e,n,s,a),s!==null){var c=On();Ir(s,e,a,c),xh(s,n,a)}}function T2(e,n,s){var a=Fo(e),c={lane:a,action:s,hasEagerState:!1,eagerState:null,next:null};if(yh(e))vh(n,c);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var k=n.lastRenderedState,M=p(k,s);if(c.hasEagerState=!0,c.eagerState=M,Sr(M,k)){var V=n.interleaved;V===null?(c.next=c,dc(n)):(c.next=V.next,V.next=c),n.interleaved=c;return}}catch{}finally{}s=Gp(e,n,c,a),s!==null&&(c=On(),Ir(s,e,a,c),xh(s,n,a))}}function yh(e){var n=e.alternate;return e===jt||n!==null&&n===jt}function vh(e,n){Hi=Gl=!0;var s=e.pending;s===null?n.next=n:(n.next=s.next,s.next=n),e.pending=n}function xh(e,n,s){if((s&4194240)!==0){var a=n.lanes;a&=e.pendingLanes,s|=a,n.lanes=s,Be(e,s)}}var Zl={readContext:pr,useCallback:Sn,useContext:Sn,useEffect:Sn,useImperativeHandle:Sn,useInsertionEffect:Sn,useLayoutEffect:Sn,useMemo:Sn,useReducer:Sn,useRef:Sn,useState:Sn,useDebugValue:Sn,useDeferredValue:Sn,useTransition:Sn,useMutableSource:Sn,useSyncExternalStore:Sn,useId:Sn,unstable_isNewReconciler:!1},I2={readContext:pr,useCallback:function(e,n){return Fr().memoizedState=[e,n===void 0?null:n],e},useContext:pr,useEffect:ah,useImperativeHandle:function(e,n,s){return s=s!=null?s.concat([e]):null,Xl(4194308,4,fh.bind(null,n,e),s)},useLayoutEffect:function(e,n){return Xl(4194308,4,e,n)},useInsertionEffect:function(e,n){return Xl(4,2,e,n)},useMemo:function(e,n){var s=Fr();return n=n===void 0?null:n,e=e(),s.memoizedState=[e,n],e},useReducer:function(e,n,s){var a=Fr();return n=s!==void 0?s(n):n,a.memoizedState=a.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=C2.bind(null,jt,e),[a.memoizedState,e]},useRef:function(e){var n=Fr();return e={current:e},n.memoizedState=e},useState:ih,useDebugValue:Ec,useDeferredValue:function(e){return Fr().memoizedState=e},useTransition:function(){var e=ih(!1),n=e[0];return e=E2.bind(null,e[1]),Fr().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,s){var a=jt,c=Fr();if(_t){if(s===void 0)throw Error(o(407));s=s()}else{if(s=n(),fn===null)throw Error(o(349));(cs&30)!==0||th(a,n,s)}c.memoizedState=s;var p={value:s,getSnapshot:n};return c.queue=p,ah(rh.bind(null,a,p,e),[e]),a.flags|=2048,Ki(9,nh.bind(null,a,p,s,n),void 0,null),s},useId:function(){var e=Fr(),n=fn.identifierPrefix;if(_t){var s=ro,a=no;s=(a&~(1<<32-gn(a)-1)).toString(32)+s,n=":"+n+"R"+s,s=Ui++,0<s&&(n+="H"+s.toString(32)),n+=":"}else s=R2++,n=":"+n+"r"+s.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},P2={readContext:pr,useCallback:ph,useContext:pr,useEffect:Rc,useImperativeHandle:dh,useInsertionEffect:uh,useLayoutEffect:ch,useMemo:hh,useReducer:bc,useRef:lh,useState:function(){return bc(Wi)},useDebugValue:Ec,useDeferredValue:function(e){var n=hr();return gh(n,nn.memoizedState,e)},useTransition:function(){var e=bc(Wi)[0],n=hr().memoizedState;return[e,n]},useMutableSource:Jp,useSyncExternalStore:eh,useId:mh,unstable_isNewReconciler:!1},A2={readContext:pr,useCallback:ph,useContext:pr,useEffect:Rc,useImperativeHandle:dh,useInsertionEffect:uh,useLayoutEffect:ch,useMemo:hh,useReducer:Sc,useRef:lh,useState:function(){return Sc(Wi)},useDebugValue:Ec,useDeferredValue:function(e){var n=hr();return nn===null?n.memoizedState=e:gh(n,nn.memoizedState,e)},useTransition:function(){var e=Sc(Wi)[0],n=hr().memoizedState;return[e,n]},useMutableSource:Jp,useSyncExternalStore:eh,useId:mh,unstable_isNewReconciler:!1};function Er(e,n){if(e&&e.defaultProps){n=B({},n),e=e.defaultProps;for(var s in e)n[s]===void 0&&(n[s]=e[s]);return n}return n}function Cc(e,n,s,a){n=e.memoizedState,s=s(a,n),s=s==null?n:B({},n,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var Ql={isMounted:function(e){return(e=e._reactInternals)?ln(e)===e:!1},enqueueSetState:function(e,n,s){e=e._reactInternals;var a=On(),c=Fo(e),p=so(a,c);p.payload=n,s!=null&&(p.callback=s),n=Lo(e,p,c),n!==null&&(Ir(n,e,c,a),Ul(n,e,c))},enqueueReplaceState:function(e,n,s){e=e._reactInternals;var a=On(),c=Fo(e),p=so(a,c);p.tag=1,p.payload=n,s!=null&&(p.callback=s),n=Lo(e,p,c),n!==null&&(Ir(n,e,c,a),Ul(n,e,c))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var s=On(),a=Fo(e),c=so(s,a);c.tag=2,n!=null&&(c.callback=n),n=Lo(e,c,a),n!==null&&(Ir(n,e,a,s),Ul(n,e,a))}};function wh(e,n,s,a,c,p,k){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,p,k):n.prototype&&n.prototype.isPureReactComponent?!Mi(s,a)||!Mi(c,p):!0}function kh(e,n,s){var a=!1,c=Ao,p=n.contextType;return typeof p=="object"&&p!==null?p=pr(p):(c=Bn(n)?ss:bn.current,a=n.contextTypes,p=(a=a!=null)?Ws(e,c):Ao),n=new n(s,p),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Ql,e.stateNode=n,n._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=c,e.__reactInternalMemoizedMaskedChildContext=p),n}function bh(e,n,s,a){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(s,a),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(s,a),n.state!==e&&Ql.enqueueReplaceState(n,n.state,null)}function Tc(e,n,s,a){var c=e.stateNode;c.props=s,c.state=e.memoizedState,c.refs={},pc(e);var p=n.contextType;typeof p=="object"&&p!==null?c.context=pr(p):(p=Bn(n)?ss:bn.current,c.context=Ws(e,p)),c.state=e.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(Cc(e,n,p,s),c.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(n=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),n!==c.state&&Ql.enqueueReplaceState(c,c.state,null),Wl(e,s,c,a),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308)}function Js(e,n){try{var s="",a=n;do s+=re(a),a=a.return;while(a);var c=s}catch(p){c=`
|
|
39
|
-
Error generating stack: `+p.message+`
|
|
40
|
-
`+p.stack}return{value:e,source:n,stack:c,digest:null}}function Ic(e,n,s){return{value:e,source:null,stack:s??null,digest:n??null}}function Pc(e,n){try{console.error(n.value)}catch(s){setTimeout(function(){throw s})}}var O2=typeof WeakMap=="function"?WeakMap:Map;function Sh(e,n,s){s=so(-1,s),s.tag=3,s.payload={element:null};var a=n.value;return s.callback=function(){sa||(sa=!0,Uc=a),Pc(e,n)},s}function Rh(e,n,s){s=so(-1,s),s.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var c=n.value;s.payload=function(){return a(c)},s.callback=function(){Pc(e,n)}}var p=e.stateNode;return p!==null&&typeof p.componentDidCatch=="function"&&(s.callback=function(){Pc(e,n),typeof a!="function"&&(_o===null?_o=new Set([this]):_o.add(this));var k=n.stack;this.componentDidCatch(n.value,{componentStack:k!==null?k:""})}),s}function Eh(e,n,s){var a=e.pingCache;if(a===null){a=e.pingCache=new O2;var c=new Set;a.set(n,c)}else c=a.get(n),c===void 0&&(c=new Set,a.set(n,c));c.has(s)||(c.add(s),e=W2.bind(null,e,n,s),n.then(e,e))}function Ch(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function Th(e,n,s,a,c){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(n=so(-1,1),n.tag=2,Lo(s,n,1))),s.lanes|=1),e):(e.flags|=65536,e.lanes=c,e)}var M2=T.ReactCurrentOwner,Hn=!1;function An(e,n,s,a){n.child=e===null?Yp(n,null,s,a):Xs(n,e.child,s,a)}function Ih(e,n,s,a,c){s=s.render;var p=n.ref;return Zs(n,c),a=wc(e,n,s,a,p,c),s=kc(),e!==null&&!Hn?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~c,io(e,n,c)):(_t&&s&&rc(n),n.flags|=1,An(e,n,a,c),n.child)}function Ph(e,n,s,a,c){if(e===null){var p=s.type;return typeof p=="function"&&!Zc(p)&&p.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(n.tag=15,n.type=p,Ah(e,n,p,a,c)):(e=fa(s.type,null,a,n,n.mode,c),e.ref=n.ref,e.return=n,n.child=e)}if(p=e.child,(e.lanes&c)===0){var k=p.memoizedProps;if(s=s.compare,s=s!==null?s:Mi,s(k,a)&&e.ref===n.ref)return io(e,n,c)}return n.flags|=1,e=jo(p,a),e.ref=n.ref,e.return=n,n.child=e}function Ah(e,n,s,a,c){if(e!==null){var p=e.memoizedProps;if(Mi(p,a)&&e.ref===n.ref)if(Hn=!1,n.pendingProps=a=p,(e.lanes&c)!==0)(e.flags&131072)!==0&&(Hn=!0);else return n.lanes=e.lanes,io(e,n,c)}return Ac(e,n,s,a,c)}function Oh(e,n,s){var a=n.pendingProps,c=a.children,p=e!==null?e.memoizedState:null;if(a.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pt(ti,or),or|=s;else{if((s&1073741824)===0)return e=p!==null?p.baseLanes|s:s,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,Pt(ti,or),or|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=p!==null?p.baseLanes:s,Pt(ti,or),or|=a}else p!==null?(a=p.baseLanes|s,n.memoizedState=null):a=s,Pt(ti,or),or|=a;return An(e,n,c,s),n.child}function Mh(e,n){var s=n.ref;(e===null&&s!==null||e!==null&&e.ref!==s)&&(n.flags|=512,n.flags|=2097152)}function Ac(e,n,s,a,c){var p=Bn(s)?ss:bn.current;return p=Ws(n,p),Zs(n,c),s=wc(e,n,s,a,p,c),a=kc(),e!==null&&!Hn?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~c,io(e,n,c)):(_t&&a&&rc(n),n.flags|=1,An(e,n,s,c),n.child)}function Lh(e,n,s,a,c){if(Bn(s)){var p=!0;Dl(n)}else p=!1;if(Zs(n,c),n.stateNode===null)ea(e,n),kh(n,s,a),Tc(n,s,a,c),a=!0;else if(e===null){var k=n.stateNode,M=n.memoizedProps;k.props=M;var V=k.context,oe=s.contextType;typeof oe=="object"&&oe!==null?oe=pr(oe):(oe=Bn(s)?ss:bn.current,oe=Ws(n,oe));var de=s.getDerivedStateFromProps,pe=typeof de=="function"||typeof k.getSnapshotBeforeUpdate=="function";pe||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(M!==a||V!==oe)&&bh(n,k,a,oe),Mo=!1;var ce=n.memoizedState;k.state=ce,Wl(n,a,k,c),V=n.memoizedState,M!==a||ce!==V||Vn.current||Mo?(typeof de=="function"&&(Cc(n,s,de,a),V=n.memoizedState),(M=Mo||wh(n,s,M,a,ce,V,oe))?(pe||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(n.flags|=4194308)):(typeof k.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=a,n.memoizedState=V),k.props=a,k.state=V,k.context=oe,a=M):(typeof k.componentDidMount=="function"&&(n.flags|=4194308),a=!1)}else{k=n.stateNode,Xp(e,n),M=n.memoizedProps,oe=n.type===n.elementType?M:Er(n.type,M),k.props=oe,pe=n.pendingProps,ce=k.context,V=s.contextType,typeof V=="object"&&V!==null?V=pr(V):(V=Bn(s)?ss:bn.current,V=Ws(n,V));var Ee=s.getDerivedStateFromProps;(de=typeof Ee=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(M!==pe||ce!==V)&&bh(n,k,a,V),Mo=!1,ce=n.memoizedState,k.state=ce,Wl(n,a,k,c);var Oe=n.memoizedState;M!==pe||ce!==Oe||Vn.current||Mo?(typeof Ee=="function"&&(Cc(n,s,Ee,a),Oe=n.memoizedState),(oe=Mo||wh(n,s,oe,a,ce,Oe,V)||!1)?(de||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(a,Oe,V),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(a,Oe,V)),typeof k.componentDidUpdate=="function"&&(n.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof k.componentDidUpdate!="function"||M===e.memoizedProps&&ce===e.memoizedState||(n.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||M===e.memoizedProps&&ce===e.memoizedState||(n.flags|=1024),n.memoizedProps=a,n.memoizedState=Oe),k.props=a,k.state=Oe,k.context=V,a=oe):(typeof k.componentDidUpdate!="function"||M===e.memoizedProps&&ce===e.memoizedState||(n.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||M===e.memoizedProps&&ce===e.memoizedState||(n.flags|=1024),a=!1)}return Oc(e,n,s,a,p,c)}function Oc(e,n,s,a,c,p){Mh(e,n);var k=(n.flags&128)!==0;if(!a&&!k)return c&&zp(n,s,!1),io(e,n,p);a=n.stateNode,M2.current=n;var M=k&&typeof s.getDerivedStateFromError!="function"?null:a.render();return n.flags|=1,e!==null&&k?(n.child=Xs(n,e.child,null,p),n.child=Xs(n,null,M,p)):An(e,n,M,p),n.memoizedState=a.state,c&&zp(n,s,!0),n.child}function Nh(e){var n=e.stateNode;n.pendingContext?Dp(e,n.pendingContext,n.pendingContext!==n.context):n.context&&Dp(e,n.context,!1),hc(e,n.containerInfo)}function _h(e,n,s,a,c){return Gs(),lc(c),n.flags|=256,An(e,n,s,a),n.child}var Mc={dehydrated:null,treeContext:null,retryLane:0};function Lc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Dh(e,n,s){var a=n.pendingProps,c=zt.current,p=!1,k=(n.flags&128)!==0,M;if((M=k)||(M=e!==null&&e.memoizedState===null?!1:(c&2)!==0),M?(p=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(c|=1),Pt(zt,c&1),e===null)return ic(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(k=a.children,e=a.fallback,p?(a=n.mode,p=n.child,k={mode:"hidden",children:k},(a&1)===0&&p!==null?(p.childLanes=0,p.pendingProps=k):p=da(k,a,0,null),e=gs(e,a,s,null),p.return=n,e.return=n,p.sibling=e,n.child=p,n.child.memoizedState=Lc(s),n.memoizedState=Mc,e):Nc(n,k));if(c=e.memoizedState,c!==null&&(M=c.dehydrated,M!==null))return L2(e,n,k,a,M,c,s);if(p){p=a.fallback,k=n.mode,c=e.child,M=c.sibling;var V={mode:"hidden",children:a.children};return(k&1)===0&&n.child!==c?(a=n.child,a.childLanes=0,a.pendingProps=V,n.deletions=null):(a=jo(c,V),a.subtreeFlags=c.subtreeFlags&14680064),M!==null?p=jo(M,p):(p=gs(p,k,s,null),p.flags|=2),p.return=n,a.return=n,a.sibling=p,n.child=a,a=p,p=n.child,k=e.child.memoizedState,k=k===null?Lc(s):{baseLanes:k.baseLanes|s,cachePool:null,transitions:k.transitions},p.memoizedState=k,p.childLanes=e.childLanes&~s,n.memoizedState=Mc,a}return p=e.child,e=p.sibling,a=jo(p,{mode:"visible",children:a.children}),(n.mode&1)===0&&(a.lanes=s),a.return=n,a.sibling=null,e!==null&&(s=n.deletions,s===null?(n.deletions=[e],n.flags|=16):s.push(e)),n.child=a,n.memoizedState=null,a}function Nc(e,n){return n=da({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function Jl(e,n,s,a){return a!==null&&lc(a),Xs(n,e.child,null,s),e=Nc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function L2(e,n,s,a,c,p,k){if(s)return n.flags&256?(n.flags&=-257,a=Ic(Error(o(422))),Jl(e,n,k,a)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(p=a.fallback,c=n.mode,a=da({mode:"visible",children:a.children},c,0,null),p=gs(p,c,k,null),p.flags|=2,a.return=n,p.return=n,a.sibling=p,n.child=a,(n.mode&1)!==0&&Xs(n,e.child,null,k),n.child.memoizedState=Lc(k),n.memoizedState=Mc,p);if((n.mode&1)===0)return Jl(e,n,k,null);if(c.data==="$!"){if(a=c.nextSibling&&c.nextSibling.dataset,a)var M=a.dgst;return a=M,p=Error(o(419)),a=Ic(p,a,void 0),Jl(e,n,k,a)}if(M=(k&e.childLanes)!==0,Hn||M){if(a=fn,a!==null){switch(k&-k){case 4:c=2;break;case 16:c=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:c=32;break;case 536870912:c=268435456;break;default:c=0}c=(c&(a.suspendedLanes|k))!==0?0:c,c!==0&&c!==p.retryLane&&(p.retryLane=c,oo(e,c),Ir(a,e,c,-1))}return qc(),a=Ic(Error(o(421))),Jl(e,n,k,a)}return c.data==="$?"?(n.flags|=128,n.child=e.child,n=K2.bind(null,e),c._reactRetry=n,null):(e=p.treeContext,rr=Io(c.nextSibling),nr=n,_t=!0,Rr=null,e!==null&&(fr[dr++]=no,fr[dr++]=ro,fr[dr++]=is,no=e.id,ro=e.overflow,is=n),n=Nc(n,a.children),n.flags|=4096,n)}function Fh(e,n,s){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n),fc(e.return,n,s)}function _c(e,n,s,a,c){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:a,tail:s,tailMode:c}:(p.isBackwards=n,p.rendering=null,p.renderingStartTime=0,p.last=a,p.tail=s,p.tailMode=c)}function zh(e,n,s){var a=n.pendingProps,c=a.revealOrder,p=a.tail;if(An(e,n,a.children,s),a=zt.current,(a&2)!==0)a=a&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Fh(e,s,n);else if(e.tag===19)Fh(e,s,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(Pt(zt,a),(n.mode&1)===0)n.memoizedState=null;else switch(c){case"forwards":for(s=n.child,c=null;s!==null;)e=s.alternate,e!==null&&Kl(e)===null&&(c=s),s=s.sibling;s=c,s===null?(c=n.child,n.child=null):(c=s.sibling,s.sibling=null),_c(n,!1,c,s,p);break;case"backwards":for(s=null,c=n.child,n.child=null;c!==null;){if(e=c.alternate,e!==null&&Kl(e)===null){n.child=c;break}e=c.sibling,c.sibling=s,s=c,c=e}_c(n,!0,s,null,p);break;case"together":_c(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function ea(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function io(e,n,s){if(e!==null&&(n.dependencies=e.dependencies),fs|=n.lanes,(s&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(o(153));if(n.child!==null){for(e=n.child,s=jo(e,e.pendingProps),n.child=s,s.return=n;e.sibling!==null;)e=e.sibling,s=s.sibling=jo(e,e.pendingProps),s.return=n;s.sibling=null}return n.child}function N2(e,n,s){switch(n.tag){case 3:Nh(n),Gs();break;case 5:Qp(n);break;case 1:Bn(n.type)&&Dl(n);break;case 4:hc(n,n.stateNode.containerInfo);break;case 10:var a=n.type._context,c=n.memoizedProps.value;Pt(Bl,a._currentValue),a._currentValue=c;break;case 13:if(a=n.memoizedState,a!==null)return a.dehydrated!==null?(Pt(zt,zt.current&1),n.flags|=128,null):(s&n.child.childLanes)!==0?Dh(e,n,s):(Pt(zt,zt.current&1),e=io(e,n,s),e!==null?e.sibling:null);Pt(zt,zt.current&1);break;case 19:if(a=(s&n.childLanes)!==0,(e.flags&128)!==0){if(a)return zh(e,n,s);n.flags|=128}if(c=n.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Pt(zt,zt.current),a)break;return null;case 22:case 23:return n.lanes=0,Oh(e,n,s)}return io(e,n,s)}var jh,Dc,$h,Vh;jh=function(e,n){for(var s=n.child;s!==null;){if(s.tag===5||s.tag===6)e.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}},Dc=function(){},$h=function(e,n,s,a){var c=e.memoizedProps;if(c!==a){e=n.stateNode,us(Dr.current);var p=null;switch(s){case"input":c=we(e,c),a=we(e,a),p=[];break;case"select":c=B({},c,{value:void 0}),a=B({},a,{value:void 0}),p=[];break;case"textarea":c=We(e,c),a=We(e,a),p=[];break;default:typeof c.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=Ll)}Jt(s,a);var k;s=null;for(oe in c)if(!a.hasOwnProperty(oe)&&c.hasOwnProperty(oe)&&c[oe]!=null)if(oe==="style"){var M=c[oe];for(k in M)M.hasOwnProperty(k)&&(s||(s={}),s[k]="")}else oe!=="dangerouslySetInnerHTML"&&oe!=="children"&&oe!=="suppressContentEditableWarning"&&oe!=="suppressHydrationWarning"&&oe!=="autoFocus"&&(l.hasOwnProperty(oe)?p||(p=[]):(p=p||[]).push(oe,null));for(oe in a){var V=a[oe];if(M=c!=null?c[oe]:void 0,a.hasOwnProperty(oe)&&V!==M&&(V!=null||M!=null))if(oe==="style")if(M){for(k in M)!M.hasOwnProperty(k)||V&&V.hasOwnProperty(k)||(s||(s={}),s[k]="");for(k in V)V.hasOwnProperty(k)&&M[k]!==V[k]&&(s||(s={}),s[k]=V[k])}else s||(p||(p=[]),p.push(oe,s)),s=V;else oe==="dangerouslySetInnerHTML"?(V=V?V.__html:void 0,M=M?M.__html:void 0,V!=null&&M!==V&&(p=p||[]).push(oe,V)):oe==="children"?typeof V!="string"&&typeof V!="number"||(p=p||[]).push(oe,""+V):oe!=="suppressContentEditableWarning"&&oe!=="suppressHydrationWarning"&&(l.hasOwnProperty(oe)?(V!=null&&oe==="onScroll"&&Ot("scroll",e),p||M===V||(p=[])):(p=p||[]).push(oe,V))}s&&(p=p||[]).push("style",s);var oe=p;(n.updateQueue=oe)&&(n.flags|=4)}},Vh=function(e,n,s,a){s!==a&&(n.flags|=4)};function Yi(e,n){if(!_t)switch(e.tailMode){case"hidden":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var a=null;s!==null;)s.alternate!==null&&(a=s),s=s.sibling;a===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Rn(e){var n=e.alternate!==null&&e.alternate.child===e.child,s=0,a=0;if(n)for(var c=e.child;c!==null;)s|=c.lanes|c.childLanes,a|=c.subtreeFlags&14680064,a|=c.flags&14680064,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)s|=c.lanes|c.childLanes,a|=c.subtreeFlags,a|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=a,e.childLanes=s,n}function _2(e,n,s){var a=n.pendingProps;switch(oc(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rn(n),null;case 1:return Bn(n.type)&&_l(),Rn(n),null;case 3:return a=n.stateNode,Qs(),Mt(Vn),Mt(bn),yc(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&($l(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Rr!==null&&(Yc(Rr),Rr=null))),Dc(e,n),Rn(n),null;case 5:gc(n);var c=us(Bi.current);if(s=n.type,e!==null&&n.stateNode!=null)$h(e,n,s,a,c),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!a){if(n.stateNode===null)throw Error(o(166));return Rn(n),null}if(e=us(Dr.current),$l(n)){a=n.stateNode,s=n.type;var p=n.memoizedProps;switch(a[_r]=n,a[Fi]=p,e=(n.mode&1)!==0,s){case"dialog":Ot("cancel",a),Ot("close",a);break;case"iframe":case"object":case"embed":Ot("load",a);break;case"video":case"audio":for(c=0;c<Ni.length;c++)Ot(Ni[c],a);break;case"source":Ot("error",a);break;case"img":case"image":case"link":Ot("error",a),Ot("load",a);break;case"details":Ot("toggle",a);break;case"input":Se(a,p),Ot("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!p.multiple},Ot("invalid",a);break;case"textarea":lt(a,p),Ot("invalid",a)}Jt(s,p),c=null;for(var k in p)if(p.hasOwnProperty(k)){var M=p[k];k==="children"?typeof M=="string"?a.textContent!==M&&(p.suppressHydrationWarning!==!0&&Ml(a.textContent,M,e),c=["children",M]):typeof M=="number"&&a.textContent!==""+M&&(p.suppressHydrationWarning!==!0&&Ml(a.textContent,M,e),c=["children",""+M]):l.hasOwnProperty(k)&&M!=null&&k==="onScroll"&&Ot("scroll",a)}switch(s){case"input":Ce(a),qe(a,p,!0);break;case"textarea":Ce(a),se(a);break;case"select":case"option":break;default:typeof p.onClick=="function"&&(a.onclick=Ll)}a=c,n.updateQueue=a,a!==null&&(n.flags|=4)}else{k=c.nodeType===9?c:c.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=fe(s)),e==="http://www.w3.org/1999/xhtml"?s==="script"?(e=k.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=k.createElement(s,{is:a.is}):(e=k.createElement(s),s==="select"&&(k=e,a.multiple?k.multiple=!0:a.size&&(k.size=a.size))):e=k.createElementNS(e,s),e[_r]=n,e[Fi]=a,jh(e,n,!1,!1),n.stateNode=e;e:{switch(k=en(s,a),s){case"dialog":Ot("cancel",e),Ot("close",e),c=a;break;case"iframe":case"object":case"embed":Ot("load",e),c=a;break;case"video":case"audio":for(c=0;c<Ni.length;c++)Ot(Ni[c],e);c=a;break;case"source":Ot("error",e),c=a;break;case"img":case"image":case"link":Ot("error",e),Ot("load",e),c=a;break;case"details":Ot("toggle",e),c=a;break;case"input":Se(e,a),c=we(e,a),Ot("invalid",e);break;case"option":c=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},c=B({},a,{value:void 0}),Ot("invalid",e);break;case"textarea":lt(e,a),c=We(e,a),Ot("invalid",e);break;default:c=a}Jt(s,c),M=c;for(p in M)if(M.hasOwnProperty(p)){var V=M[p];p==="style"?Lt(e,V):p==="dangerouslySetInnerHTML"?(V=V?V.__html:void 0,V!=null&&Le(e,V)):p==="children"?typeof V=="string"?(s!=="textarea"||V!=="")&&Ke(e,V):typeof V=="number"&&Ke(e,""+V):p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&p!=="autoFocus"&&(l.hasOwnProperty(p)?V!=null&&p==="onScroll"&&Ot("scroll",e):V!=null&&P(e,p,V,k))}switch(s){case"input":Ce(e),qe(e,a,!1);break;case"textarea":Ce(e),se(e);break;case"option":a.value!=null&&e.setAttribute("value",""+ae(a.value));break;case"select":e.multiple=!!a.multiple,p=a.value,p!=null?ge(e,!!a.multiple,p,!1):a.defaultValue!=null&&ge(e,!!a.multiple,a.defaultValue,!0);break;default:typeof c.onClick=="function"&&(e.onclick=Ll)}switch(s){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return Rn(n),null;case 6:if(e&&n.stateNode!=null)Vh(e,n,e.memoizedProps,a);else{if(typeof a!="string"&&n.stateNode===null)throw Error(o(166));if(s=us(Bi.current),us(Dr.current),$l(n)){if(a=n.stateNode,s=n.memoizedProps,a[_r]=n,(p=a.nodeValue!==s)&&(e=nr,e!==null))switch(e.tag){case 3:Ml(a.nodeValue,s,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ml(a.nodeValue,s,(e.mode&1)!==0)}p&&(n.flags|=4)}else a=(s.nodeType===9?s:s.ownerDocument).createTextNode(a),a[_r]=n,n.stateNode=a}return Rn(n),null;case 13:if(Mt(zt),a=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(_t&&rr!==null&&(n.mode&1)!==0&&(n.flags&128)===0)Up(),Gs(),n.flags|=98560,p=!1;else if(p=$l(n),a!==null&&a.dehydrated!==null){if(e===null){if(!p)throw Error(o(318));if(p=n.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(o(317));p[_r]=n}else Gs(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Rn(n),p=!1}else Rr!==null&&(Yc(Rr),Rr=null),p=!0;if(!p)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=s,n):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(zt.current&1)!==0?rn===0&&(rn=3):qc())),n.updateQueue!==null&&(n.flags|=4),Rn(n),null);case 4:return Qs(),Dc(e,n),e===null&&_i(n.stateNode.containerInfo),Rn(n),null;case 10:return cc(n.type._context),Rn(n),null;case 17:return Bn(n.type)&&_l(),Rn(n),null;case 19:if(Mt(zt),p=n.memoizedState,p===null)return Rn(n),null;if(a=(n.flags&128)!==0,k=p.rendering,k===null)if(a)Yi(p,!1);else{if(rn!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(k=Kl(e),k!==null){for(n.flags|=128,Yi(p,!1),a=k.updateQueue,a!==null&&(n.updateQueue=a,n.flags|=4),n.subtreeFlags=0,a=s,s=n.child;s!==null;)p=s,e=a,p.flags&=14680066,k=p.alternate,k===null?(p.childLanes=0,p.lanes=e,p.child=null,p.subtreeFlags=0,p.memoizedProps=null,p.memoizedState=null,p.updateQueue=null,p.dependencies=null,p.stateNode=null):(p.childLanes=k.childLanes,p.lanes=k.lanes,p.child=k.child,p.subtreeFlags=0,p.deletions=null,p.memoizedProps=k.memoizedProps,p.memoizedState=k.memoizedState,p.updateQueue=k.updateQueue,p.type=k.type,e=k.dependencies,p.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),s=s.sibling;return Pt(zt,zt.current&1|2),n.child}e=e.sibling}p.tail!==null&&mt()>ni&&(n.flags|=128,a=!0,Yi(p,!1),n.lanes=4194304)}else{if(!a)if(e=Kl(k),e!==null){if(n.flags|=128,a=!0,s=e.updateQueue,s!==null&&(n.updateQueue=s,n.flags|=4),Yi(p,!0),p.tail===null&&p.tailMode==="hidden"&&!k.alternate&&!_t)return Rn(n),null}else 2*mt()-p.renderingStartTime>ni&&s!==1073741824&&(n.flags|=128,a=!0,Yi(p,!1),n.lanes=4194304);p.isBackwards?(k.sibling=n.child,n.child=k):(s=p.last,s!==null?s.sibling=k:n.child=k,p.last=k)}return p.tail!==null?(n=p.tail,p.rendering=n,p.tail=n.sibling,p.renderingStartTime=mt(),n.sibling=null,s=zt.current,Pt(zt,a?s&1|2:s&1),n):(Rn(n),null);case 22:case 23:return Xc(),a=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(n.flags|=8192),a&&(n.mode&1)!==0?(or&1073741824)!==0&&(Rn(n),n.subtreeFlags&6&&(n.flags|=8192)):Rn(n),null;case 24:return null;case 25:return null}throw Error(o(156,n.tag))}function D2(e,n){switch(oc(n),n.tag){case 1:return Bn(n.type)&&_l(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Qs(),Mt(Vn),Mt(bn),yc(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return gc(n),null;case 13:if(Mt(zt),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(o(340));Gs()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Mt(zt),null;case 4:return Qs(),null;case 10:return cc(n.type._context),null;case 22:case 23:return Xc(),null;case 24:return null;default:return null}}var ta=!1,En=!1,F2=typeof WeakSet=="function"?WeakSet:Set,Pe=null;function ei(e,n){var s=e.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(a){Wt(e,n,a)}else s.current=null}function Fc(e,n,s){try{s()}catch(a){Wt(e,n,a)}}var Bh=!1;function z2(e,n){if(Xu=Ro,e=wp(),Vu(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var a=s.getSelection&&s.getSelection();if(a&&a.rangeCount!==0){s=a.anchorNode;var c=a.anchorOffset,p=a.focusNode;a=a.focusOffset;try{s.nodeType,p.nodeType}catch{s=null;break e}var k=0,M=-1,V=-1,oe=0,de=0,pe=e,ce=null;t:for(;;){for(var Ee;pe!==s||c!==0&&pe.nodeType!==3||(M=k+c),pe!==p||a!==0&&pe.nodeType!==3||(V=k+a),pe.nodeType===3&&(k+=pe.nodeValue.length),(Ee=pe.firstChild)!==null;)ce=pe,pe=Ee;for(;;){if(pe===e)break t;if(ce===s&&++oe===c&&(M=k),ce===p&&++de===a&&(V=k),(Ee=pe.nextSibling)!==null)break;pe=ce,ce=pe.parentNode}pe=Ee}s=M===-1||V===-1?null:{start:M,end:V}}else s=null}s=s||{start:0,end:0}}else s=null;for(qu={focusedElem:e,selectionRange:s},Ro=!1,Pe=n;Pe!==null;)if(n=Pe,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,Pe=e;else for(;Pe!==null;){n=Pe;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 Ne=Oe.memoizedProps,Gt=Oe.memoizedState,Z=n.stateNode,U=Z.getSnapshotBeforeUpdate(n.elementType===n.type?Ne:Er(n.type,Ne),Gt);Z.__reactInternalSnapshotBeforeUpdate=U}break;case 3:var ee=n.stateNode.containerInfo;ee.nodeType===1?ee.textContent="":ee.nodeType===9&&ee.documentElement&&ee.removeChild(ee.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(ve){Wt(n,n.return,ve)}if(e=n.sibling,e!==null){e.return=n.return,Pe=e;break}Pe=n.return}return Oe=Bh,Bh=!1,Oe}function Gi(e,n,s){var a=n.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var c=a=a.next;do{if((c.tag&e)===e){var p=c.destroy;c.destroy=void 0,p!==void 0&&Fc(n,s,p)}c=c.next}while(c!==a)}}function na(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&e)===e){var a=s.create;s.destroy=a()}s=s.next}while(s!==n)}}function zc(e){var n=e.ref;if(n!==null){var s=e.stateNode;switch(e.tag){case 5:e=s;break;default:e=s}typeof n=="function"?n(e):n.current=e}}function Hh(e){var n=e.alternate;n!==null&&(e.alternate=null,Hh(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[_r],delete n[Fi],delete n[ec],delete n[w2],delete n[k2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Uh(e){return e.tag===5||e.tag===3||e.tag===4}function Wh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Uh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jc(e,n,s){var a=e.tag;if(a===5||a===6)e=e.stateNode,n?s.nodeType===8?s.parentNode.insertBefore(e,n):s.insertBefore(e,n):(s.nodeType===8?(n=s.parentNode,n.insertBefore(e,s)):(n=s,n.appendChild(e)),s=s._reactRootContainer,s!=null||n.onclick!==null||(n.onclick=Ll));else if(a!==4&&(e=e.child,e!==null))for(jc(e,n,s),e=e.sibling;e!==null;)jc(e,n,s),e=e.sibling}function $c(e,n,s){var a=e.tag;if(a===5||a===6)e=e.stateNode,n?s.insertBefore(e,n):s.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for($c(e,n,s),e=e.sibling;e!==null;)$c(e,n,s),e=e.sibling}var mn=null,Cr=!1;function No(e,n,s){for(s=s.child;s!==null;)Kh(e,n,s),s=s.sibling}function Kh(e,n,s){if(Pn&&typeof Pn.onCommitFiberUnmount=="function")try{Pn.onCommitFiberUnmount(ts,s)}catch{}switch(s.tag){case 5:En||ei(s,n);case 6:var a=mn,c=Cr;mn=null,No(e,n,s),mn=a,Cr=c,mn!==null&&(Cr?(e=mn,s=s.stateNode,e.nodeType===8?e.parentNode.removeChild(s):e.removeChild(s)):mn.removeChild(s.stateNode));break;case 18:mn!==null&&(Cr?(e=mn,s=s.stateNode,e.nodeType===8?Ju(e.parentNode,s):e.nodeType===1&&Ju(e,s),Qr(e)):Ju(mn,s.stateNode));break;case 4:a=mn,c=Cr,mn=s.stateNode.containerInfo,Cr=!0,No(e,n,s),mn=a,Cr=c;break;case 0:case 11:case 14:case 15:if(!En&&(a=s.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){c=a=a.next;do{var p=c,k=p.destroy;p=p.tag,k!==void 0&&((p&2)!==0||(p&4)!==0)&&Fc(s,n,k),c=c.next}while(c!==a)}No(e,n,s);break;case 1:if(!En&&(ei(s,n),a=s.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=s.memoizedProps,a.state=s.memoizedState,a.componentWillUnmount()}catch(M){Wt(s,n,M)}No(e,n,s);break;case 21:No(e,n,s);break;case 22:s.mode&1?(En=(a=En)||s.memoizedState!==null,No(e,n,s),En=a):No(e,n,s);break;default:No(e,n,s)}}function Yh(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new F2),n.forEach(function(a){var c=Y2.bind(null,e,a);s.has(a)||(s.add(a),a.then(c,c))})}}function Tr(e,n){var s=n.deletions;if(s!==null)for(var a=0;a<s.length;a++){var c=s[a];try{var p=e,k=n,M=k;e:for(;M!==null;){switch(M.tag){case 5:mn=M.stateNode,Cr=!1;break e;case 3:mn=M.stateNode.containerInfo,Cr=!0;break e;case 4:mn=M.stateNode.containerInfo,Cr=!0;break e}M=M.return}if(mn===null)throw Error(o(160));Kh(p,k,c),mn=null,Cr=!1;var V=c.alternate;V!==null&&(V.return=null),c.return=null}catch(oe){Wt(c,n,oe)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)Gh(n,e),n=n.sibling}function Gh(e,n){var s=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Tr(n,e),zr(e),a&4){try{Gi(3,e,e.return),na(3,e)}catch(Ne){Wt(e,e.return,Ne)}try{Gi(5,e,e.return)}catch(Ne){Wt(e,e.return,Ne)}}break;case 1:Tr(n,e),zr(e),a&512&&s!==null&&ei(s,s.return);break;case 5:if(Tr(n,e),zr(e),a&512&&s!==null&&ei(s,s.return),e.flags&32){var c=e.stateNode;try{Ke(c,"")}catch(Ne){Wt(e,e.return,Ne)}}if(a&4&&(c=e.stateNode,c!=null)){var p=e.memoizedProps,k=s!==null?s.memoizedProps:p,M=e.type,V=e.updateQueue;if(e.updateQueue=null,V!==null)try{M==="input"&&p.type==="radio"&&p.name!=null&&ze(c,p),en(M,k);var oe=en(M,p);for(k=0;k<V.length;k+=2){var de=V[k],pe=V[k+1];de==="style"?Lt(c,pe):de==="dangerouslySetInnerHTML"?Le(c,pe):de==="children"?Ke(c,pe):P(c,de,pe,oe)}switch(M){case"input":Ve(c,p);break;case"textarea":ft(c,p);break;case"select":var ce=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!p.multiple;var Ee=p.value;Ee!=null?ge(c,!!p.multiple,Ee,!1):ce!==!!p.multiple&&(p.defaultValue!=null?ge(c,!!p.multiple,p.defaultValue,!0):ge(c,!!p.multiple,p.multiple?[]:"",!1))}c[Fi]=p}catch(Ne){Wt(e,e.return,Ne)}}break;case 6:if(Tr(n,e),zr(e),a&4){if(e.stateNode===null)throw Error(o(162));c=e.stateNode,p=e.memoizedProps;try{c.nodeValue=p}catch(Ne){Wt(e,e.return,Ne)}}break;case 3:if(Tr(n,e),zr(e),a&4&&s!==null&&s.memoizedState.isDehydrated)try{Qr(n.containerInfo)}catch(Ne){Wt(e,e.return,Ne)}break;case 4:Tr(n,e),zr(e);break;case 13:Tr(n,e),zr(e),c=e.child,c.flags&8192&&(p=c.memoizedState!==null,c.stateNode.isHidden=p,!p||c.alternate!==null&&c.alternate.memoizedState!==null||(Hc=mt())),a&4&&Yh(e);break;case 22:if(de=s!==null&&s.memoizedState!==null,e.mode&1?(En=(oe=En)||de,Tr(n,e),En=oe):Tr(n,e),zr(e),a&8192){if(oe=e.memoizedState!==null,(e.stateNode.isHidden=oe)&&!de&&(e.mode&1)!==0)for(Pe=e,de=e.child;de!==null;){for(pe=Pe=de;Pe!==null;){switch(ce=Pe,Ee=ce.child,ce.tag){case 0:case 11:case 14:case 15:Gi(4,ce,ce.return);break;case 1:ei(ce,ce.return);var Oe=ce.stateNode;if(typeof Oe.componentWillUnmount=="function"){a=ce,s=ce.return;try{n=a,Oe.props=n.memoizedProps,Oe.state=n.memoizedState,Oe.componentWillUnmount()}catch(Ne){Wt(a,s,Ne)}}break;case 5:ei(ce,ce.return);break;case 22:if(ce.memoizedState!==null){Zh(pe);continue}}Ee!==null?(Ee.return=ce,Pe=Ee):Zh(pe)}de=de.sibling}e:for(de=null,pe=e;;){if(pe.tag===5){if(de===null){de=pe;try{c=pe.stateNode,oe?(p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none"):(M=pe.stateNode,V=pe.memoizedProps.style,k=V!=null&&V.hasOwnProperty("display")?V.display:null,M.style.display=Ft("display",k))}catch(Ne){Wt(e,e.return,Ne)}}}else if(pe.tag===6){if(de===null)try{pe.stateNode.nodeValue=oe?"":pe.memoizedProps}catch(Ne){Wt(e,e.return,Ne)}}else if((pe.tag!==22&&pe.tag!==23||pe.memoizedState===null||pe===e)&&pe.child!==null){pe.child.return=pe,pe=pe.child;continue}if(pe===e)break e;for(;pe.sibling===null;){if(pe.return===null||pe.return===e)break e;de===pe&&(de=null),pe=pe.return}de===pe&&(de=null),pe.sibling.return=pe.return,pe=pe.sibling}}break;case 19:Tr(n,e),zr(e),a&4&&Yh(e);break;case 21:break;default:Tr(n,e),zr(e)}}function zr(e){var n=e.flags;if(n&2){try{e:{for(var s=e.return;s!==null;){if(Uh(s)){var a=s;break e}s=s.return}throw Error(o(160))}switch(a.tag){case 5:var c=a.stateNode;a.flags&32&&(Ke(c,""),a.flags&=-33);var p=Wh(e);$c(e,p,c);break;case 3:case 4:var k=a.stateNode.containerInfo,M=Wh(e);jc(e,M,k);break;default:throw Error(o(161))}}catch(V){Wt(e,e.return,V)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function j2(e,n,s){Pe=e,Xh(e)}function Xh(e,n,s){for(var a=(e.mode&1)!==0;Pe!==null;){var c=Pe,p=c.child;if(c.tag===22&&a){var k=c.memoizedState!==null||ta;if(!k){var M=c.alternate,V=M!==null&&M.memoizedState!==null||En;M=ta;var oe=En;if(ta=k,(En=V)&&!oe)for(Pe=c;Pe!==null;)k=Pe,V=k.child,k.tag===22&&k.memoizedState!==null?Qh(c):V!==null?(V.return=k,Pe=V):Qh(c);for(;p!==null;)Pe=p,Xh(p),p=p.sibling;Pe=c,ta=M,En=oe}qh(e)}else(c.subtreeFlags&8772)!==0&&p!==null?(p.return=c,Pe=p):qh(e)}}function qh(e){for(;Pe!==null;){var n=Pe;if((n.flags&8772)!==0){var s=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:En||na(5,n);break;case 1:var a=n.stateNode;if(n.flags&4&&!En)if(s===null)a.componentDidMount();else{var c=n.elementType===n.type?s.memoizedProps:Er(n.type,s.memoizedProps);a.componentDidUpdate(c,s.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var p=n.updateQueue;p!==null&&Zp(n,p,a);break;case 3:var k=n.updateQueue;if(k!==null){if(s=null,n.child!==null)switch(n.child.tag){case 5:s=n.child.stateNode;break;case 1:s=n.child.stateNode}Zp(n,k,s)}break;case 5:var M=n.stateNode;if(s===null&&n.flags&4){s=M;var V=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":V.autoFocus&&s.focus();break;case"img":V.src&&(s.src=V.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var oe=n.alternate;if(oe!==null){var de=oe.memoizedState;if(de!==null){var pe=de.dehydrated;pe!==null&&Qr(pe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}En||n.flags&512&&zc(n)}catch(ce){Wt(n,n.return,ce)}}if(n===e){Pe=null;break}if(s=n.sibling,s!==null){s.return=n.return,Pe=s;break}Pe=n.return}}function Zh(e){for(;Pe!==null;){var n=Pe;if(n===e){Pe=null;break}var s=n.sibling;if(s!==null){s.return=n.return,Pe=s;break}Pe=n.return}}function Qh(e){for(;Pe!==null;){var n=Pe;try{switch(n.tag){case 0:case 11:case 15:var s=n.return;try{na(4,n)}catch(V){Wt(n,s,V)}break;case 1:var a=n.stateNode;if(typeof a.componentDidMount=="function"){var c=n.return;try{a.componentDidMount()}catch(V){Wt(n,c,V)}}var p=n.return;try{zc(n)}catch(V){Wt(n,p,V)}break;case 5:var k=n.return;try{zc(n)}catch(V){Wt(n,k,V)}}}catch(V){Wt(n,n.return,V)}if(n===e){Pe=null;break}var M=n.sibling;if(M!==null){M.return=n.return,Pe=M;break}Pe=n.return}}var $2=Math.ceil,ra=T.ReactCurrentDispatcher,Vc=T.ReactCurrentOwner,gr=T.ReactCurrentBatchConfig,dt=0,fn=null,Qt=null,yn=0,or=0,ti=Po(0),rn=0,Xi=null,fs=0,oa=0,Bc=0,qi=null,Un=null,Hc=0,ni=1/0,lo=null,sa=!1,Uc=null,_o=null,ia=!1,Do=null,la=0,Zi=0,Wc=null,aa=-1,ua=0;function On(){return(dt&6)!==0?mt():aa!==-1?aa:aa=mt()}function Fo(e){return(e.mode&1)===0?1:(dt&2)!==0&&yn!==0?yn&-yn:S2.transition!==null?(ua===0&&(ua=Ge()),ua):(e=Re,e!==0||(e=window.event,e=e===void 0?16:$n(e.type)),e)}function Ir(e,n,s,a){if(50<Zi)throw Zi=0,Wc=null,Error(o(185));Rt(e,s,a),((dt&2)===0||e!==fn)&&(e===fn&&((dt&2)===0&&(oa|=s),rn===4&&zo(e,yn)),Wn(e,a),s===1&&dt===0&&(n.mode&1)===0&&(ni=mt()+500,Fl&&Oo()))}function Wn(e,n){var s=e.callbackNode;je(e,n);var a=ue(e,e===fn?yn:0);if(a===0)s!==null&&Os(s),e.callbackNode=null,e.callbackPriority=0;else if(n=a&-a,e.callbackPriority!==n){if(s!=null&&Os(s),n===1)e.tag===0?b2(eg.bind(null,e)):jp(eg.bind(null,e)),v2(function(){(dt&6)===0&&Oo()}),s=null;else{switch(at(a)){case 1:s=wo;break;case 4:s=Fn;break;case 16:s=Mr;break;case 536870912:s=qr;break;default:s=Mr}s=ag(s,Jh.bind(null,e))}e.callbackPriority=n,e.callbackNode=s}}function Jh(e,n){if(aa=-1,ua=0,(dt&6)!==0)throw Error(o(327));var s=e.callbackNode;if(ri()&&e.callbackNode!==s)return null;var a=ue(e,e===fn?yn:0);if(a===0)return null;if((a&30)!==0||(a&e.expiredLanes)!==0||n)n=ca(e,a);else{n=a;var c=dt;dt|=2;var p=ng();(fn!==e||yn!==n)&&(lo=null,ni=mt()+500,ps(e,n));do try{H2();break}catch(M){tg(e,M)}while(!0);uc(),ra.current=p,dt=c,Qt!==null?n=0:(fn=null,yn=0,n=rn)}if(n!==0){if(n===2&&(c=Ze(e),c!==0&&(a=c,n=Kc(e,c))),n===1)throw s=Xi,ps(e,0),zo(e,a),Wn(e,mt()),s;if(n===6)zo(e,a);else{if(c=e.current.alternate,(a&30)===0&&!V2(c)&&(n=ca(e,a),n===2&&(p=Ze(e),p!==0&&(a=p,n=Kc(e,p))),n===1))throw s=Xi,ps(e,0),zo(e,a),Wn(e,mt()),s;switch(e.finishedWork=c,e.finishedLanes=a,n){case 0:case 1:throw Error(o(345));case 2:hs(e,Un,lo);break;case 3:if(zo(e,a),(a&130023424)===a&&(n=Hc+500-mt(),10<n)){if(ue(e,0)!==0)break;if(c=e.suspendedLanes,(c&a)!==a){On(),e.pingedLanes|=e.suspendedLanes&c;break}e.timeoutHandle=Qu(hs.bind(null,e,Un,lo),n);break}hs(e,Un,lo);break;case 4:if(zo(e,a),(a&4194240)===a)break;for(n=e.eventTimes,c=-1;0<a;){var k=31-gn(a);p=1<<k,k=n[k],k>c&&(c=k),a&=~p}if(a=c,a=mt()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*$2(a/1960))-a,10<a){e.timeoutHandle=Qu(hs.bind(null,e,Un,lo),a);break}hs(e,Un,lo);break;case 5:hs(e,Un,lo);break;default:throw Error(o(329))}}}return Wn(e,mt()),e.callbackNode===s?Jh.bind(null,e):null}function Kc(e,n){var s=qi;return e.current.memoizedState.isDehydrated&&(ps(e,n).flags|=256),e=ca(e,n),e!==2&&(n=Un,Un=s,n!==null&&Yc(n)),e}function Yc(e){Un===null?Un=e:Un.push.apply(Un,e)}function V2(e){for(var n=e;;){if(n.flags&16384){var s=n.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var a=0;a<s.length;a++){var c=s[a],p=c.getSnapshot;c=c.value;try{if(!Sr(p(),c))return!1}catch{return!1}}}if(s=n.child,n.subtreeFlags&16384&&s!==null)s.return=n,n=s;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function zo(e,n){for(n&=~Bc,n&=~oa,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var s=31-gn(n),a=1<<s;e[s]=-1,n&=~a}}function eg(e){if((dt&6)!==0)throw Error(o(327));ri();var n=ue(e,0);if((n&1)===0)return Wn(e,mt()),null;var s=ca(e,n);if(e.tag!==0&&s===2){var a=Ze(e);a!==0&&(n=a,s=Kc(e,a))}if(s===1)throw s=Xi,ps(e,0),zo(e,n),Wn(e,mt()),s;if(s===6)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,hs(e,Un,lo),Wn(e,mt()),null}function Gc(e,n){var s=dt;dt|=1;try{return e(n)}finally{dt=s,dt===0&&(ni=mt()+500,Fl&&Oo())}}function ds(e){Do!==null&&Do.tag===0&&(dt&6)===0&&ri();var n=dt;dt|=1;var s=gr.transition,a=Re;try{if(gr.transition=null,Re=1,e)return e()}finally{Re=a,gr.transition=s,dt=n,(dt&6)===0&&Oo()}}function Xc(){or=ti.current,Mt(ti)}function ps(e,n){e.finishedWork=null,e.finishedLanes=0;var s=e.timeoutHandle;if(s!==-1&&(e.timeoutHandle=-1,y2(s)),Qt!==null)for(s=Qt.return;s!==null;){var a=s;switch(oc(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&_l();break;case 3:Qs(),Mt(Vn),Mt(bn),yc();break;case 5:gc(a);break;case 4:Qs();break;case 13:Mt(zt);break;case 19:Mt(zt);break;case 10:cc(a.type._context);break;case 22:case 23:Xc()}s=s.return}if(fn=e,Qt=e=jo(e.current,null),yn=or=n,rn=0,Xi=null,Bc=oa=fs=0,Un=qi=null,as!==null){for(n=0;n<as.length;n++)if(s=as[n],a=s.interleaved,a!==null){s.interleaved=null;var c=a.next,p=s.pending;if(p!==null){var k=p.next;p.next=c,a.next=k}s.pending=a}as=null}return e}function tg(e,n){do{var s=Qt;try{if(uc(),Yl.current=Zl,Gl){for(var a=jt.memoizedState;a!==null;){var c=a.queue;c!==null&&(c.pending=null),a=a.next}Gl=!1}if(cs=0,cn=nn=jt=null,Hi=!1,Ui=0,Vc.current=null,s===null||s.return===null){rn=1,Xi=n,Qt=null;break}e:{var p=e,k=s.return,M=s,V=n;if(n=yn,M.flags|=32768,V!==null&&typeof V=="object"&&typeof V.then=="function"){var oe=V,de=M,pe=de.tag;if((de.mode&1)===0&&(pe===0||pe===11||pe===15)){var ce=de.alternate;ce?(de.updateQueue=ce.updateQueue,de.memoizedState=ce.memoizedState,de.lanes=ce.lanes):(de.updateQueue=null,de.memoizedState=null)}var Ee=Ch(k);if(Ee!==null){Ee.flags&=-257,Th(Ee,k,M,p,n),Ee.mode&1&&Eh(p,oe,n),n=Ee,V=oe;var Oe=n.updateQueue;if(Oe===null){var Ne=new Set;Ne.add(V),n.updateQueue=Ne}else Oe.add(V);break e}else{if((n&1)===0){Eh(p,oe,n),qc();break e}V=Error(o(426))}}else if(_t&&M.mode&1){var Gt=Ch(k);if(Gt!==null){(Gt.flags&65536)===0&&(Gt.flags|=256),Th(Gt,k,M,p,n),lc(Js(V,M));break e}}p=V=Js(V,M),rn!==4&&(rn=2),qi===null?qi=[p]:qi.push(p),p=k;do{switch(p.tag){case 3:p.flags|=65536,n&=-n,p.lanes|=n;var Z=Sh(p,V,n);qp(p,Z);break e;case 1:M=V;var U=p.type,ee=p.stateNode;if((p.flags&128)===0&&(typeof U.getDerivedStateFromError=="function"||ee!==null&&typeof ee.componentDidCatch=="function"&&(_o===null||!_o.has(ee)))){p.flags|=65536,n&=-n,p.lanes|=n;var ve=Rh(p,M,n);qp(p,ve);break e}}p=p.return}while(p!==null)}og(s)}catch(_e){n=_e,Qt===s&&s!==null&&(Qt=s=s.return);continue}break}while(!0)}function ng(){var e=ra.current;return ra.current=Zl,e===null?Zl:e}function qc(){(rn===0||rn===3||rn===2)&&(rn=4),fn===null||(fs&268435455)===0&&(oa&268435455)===0||zo(fn,yn)}function ca(e,n){var s=dt;dt|=2;var a=ng();(fn!==e||yn!==n)&&(lo=null,ps(e,n));do try{B2();break}catch(c){tg(e,c)}while(!0);if(uc(),dt=s,ra.current=a,Qt!==null)throw Error(o(261));return fn=null,yn=0,rn}function B2(){for(;Qt!==null;)rg(Qt)}function H2(){for(;Qt!==null&&!Ms();)rg(Qt)}function rg(e){var n=lg(e.alternate,e,or);e.memoizedProps=e.pendingProps,n===null?og(e):Qt=n,Vc.current=null}function og(e){var n=e;do{var s=n.alternate;if(e=n.return,(n.flags&32768)===0){if(s=_2(s,n,or),s!==null){Qt=s;return}}else{if(s=D2(s,n),s!==null){s.flags&=32767,Qt=s;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{rn=6,Qt=null;return}}if(n=n.sibling,n!==null){Qt=n;return}Qt=n=e}while(n!==null);rn===0&&(rn=5)}function hs(e,n,s){var a=Re,c=gr.transition;try{gr.transition=null,Re=1,U2(e,n,s,a)}finally{gr.transition=c,Re=a}return null}function U2(e,n,s,a){do ri();while(Do!==null);if((dt&6)!==0)throw Error(o(327));s=e.finishedWork;var c=e.finishedLanes;if(s===null)return null;if(e.finishedWork=null,e.finishedLanes=0,s===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var p=s.lanes|s.childLanes;if(yt(e,p),e===fn&&(Qt=fn=null,yn=0),(s.subtreeFlags&2064)===0&&(s.flags&2064)===0||ia||(ia=!0,ag(Mr,function(){return ri(),null})),p=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||p){p=gr.transition,gr.transition=null;var k=Re;Re=1;var M=dt;dt|=4,Vc.current=null,z2(e,s),Gh(s,e),c2(qu),Ro=!!Xu,qu=Xu=null,e.current=s,j2(s),Ls(),dt=M,Re=k,gr.transition=p}else e.current=s;if(ia&&(ia=!1,Do=e,la=c),p=e.pendingLanes,p===0&&(_o=null),Ns(s.stateNode),Wn(e,mt()),n!==null)for(a=e.onRecoverableError,s=0;s<n.length;s++)c=n[s],a(c.value,{componentStack:c.stack,digest:c.digest});if(sa)throw sa=!1,e=Uc,Uc=null,e;return(la&1)!==0&&e.tag!==0&&ri(),p=e.pendingLanes,(p&1)!==0?e===Wc?Zi++:(Zi=0,Wc=e):Zi=0,Oo(),null}function ri(){if(Do!==null){var e=at(la),n=gr.transition,s=Re;try{if(gr.transition=null,Re=16>e?16:e,Do===null)var a=!1;else{if(e=Do,Do=null,la=0,(dt&6)!==0)throw Error(o(331));var c=dt;for(dt|=4,Pe=e.current;Pe!==null;){var p=Pe,k=p.child;if((Pe.flags&16)!==0){var M=p.deletions;if(M!==null){for(var V=0;V<M.length;V++){var oe=M[V];for(Pe=oe;Pe!==null;){var de=Pe;switch(de.tag){case 0:case 11:case 15:Gi(8,de,p)}var pe=de.child;if(pe!==null)pe.return=de,Pe=pe;else for(;Pe!==null;){de=Pe;var ce=de.sibling,Ee=de.return;if(Hh(de),de===oe){Pe=null;break}if(ce!==null){ce.return=Ee,Pe=ce;break}Pe=Ee}}}var Oe=p.alternate;if(Oe!==null){var Ne=Oe.child;if(Ne!==null){Oe.child=null;do{var Gt=Ne.sibling;Ne.sibling=null,Ne=Gt}while(Ne!==null)}}Pe=p}}if((p.subtreeFlags&2064)!==0&&k!==null)k.return=p,Pe=k;else e:for(;Pe!==null;){if(p=Pe,(p.flags&2048)!==0)switch(p.tag){case 0:case 11:case 15:Gi(9,p,p.return)}var Z=p.sibling;if(Z!==null){Z.return=p.return,Pe=Z;break e}Pe=p.return}}var U=e.current;for(Pe=U;Pe!==null;){k=Pe;var ee=k.child;if((k.subtreeFlags&2064)!==0&&ee!==null)ee.return=k,Pe=ee;else e:for(k=U;Pe!==null;){if(M=Pe,(M.flags&2048)!==0)try{switch(M.tag){case 0:case 11:case 15:na(9,M)}}catch(_e){Wt(M,M.return,_e)}if(M===k){Pe=null;break e}var ve=M.sibling;if(ve!==null){ve.return=M.return,Pe=ve;break e}Pe=M.return}}if(dt=c,Oo(),Pn&&typeof Pn.onPostCommitFiberRoot=="function")try{Pn.onPostCommitFiberRoot(ts,e)}catch{}a=!0}return a}finally{Re=s,gr.transition=n}}return!1}function sg(e,n,s){n=Js(s,n),n=Sh(e,n,1),e=Lo(e,n,1),n=On(),e!==null&&(Rt(e,1,n),Wn(e,n))}function Wt(e,n,s){if(e.tag===3)sg(e,e,s);else for(;n!==null;){if(n.tag===3){sg(n,e,s);break}else if(n.tag===1){var a=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(_o===null||!_o.has(a))){e=Js(s,e),e=Rh(n,e,1),n=Lo(n,e,1),e=On(),n!==null&&(Rt(n,1,e),Wn(n,e));break}}n=n.return}}function W2(e,n,s){var a=e.pingCache;a!==null&&a.delete(n),n=On(),e.pingedLanes|=e.suspendedLanes&s,fn===e&&(yn&s)===s&&(rn===4||rn===3&&(yn&130023424)===yn&&500>mt()-Hc?ps(e,0):Bc|=s),Wn(e,n)}function ig(e,n){n===0&&((e.mode&1)===0?n=1:(n=Ri,Ri<<=1,(Ri&130023424)===0&&(Ri=4194304)));var s=On();e=oo(e,n),e!==null&&(Rt(e,n,s),Wn(e,s))}function K2(e){var n=e.memoizedState,s=0;n!==null&&(s=n.retryLane),ig(e,s)}function Y2(e,n){var s=0;switch(e.tag){case 13:var a=e.stateNode,c=e.memoizedState;c!==null&&(s=c.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(o(314))}a!==null&&a.delete(n),ig(e,s)}var lg;lg=function(e,n,s){if(e!==null)if(e.memoizedProps!==n.pendingProps||Vn.current)Hn=!0;else{if((e.lanes&s)===0&&(n.flags&128)===0)return Hn=!1,N2(e,n,s);Hn=(e.flags&131072)!==0}else Hn=!1,_t&&(n.flags&1048576)!==0&&$p(n,jl,n.index);switch(n.lanes=0,n.tag){case 2:var a=n.type;ea(e,n),e=n.pendingProps;var c=Ws(n,bn.current);Zs(n,s),c=wc(null,n,a,e,c,s);var p=kc();return n.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,Bn(a)?(p=!0,Dl(n)):p=!1,n.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,pc(n),c.updater=Ql,n.stateNode=c,c._reactInternals=n,Tc(n,a,e,s),n=Oc(null,n,a,!0,p,s)):(n.tag=0,_t&&p&&rc(n),An(null,n,c,s),n=n.child),n;case 16:a=n.elementType;e:{switch(ea(e,n),e=n.pendingProps,c=a._init,a=c(a._payload),n.type=a,c=n.tag=X2(a),e=Er(a,e),c){case 0:n=Ac(null,n,a,e,s);break e;case 1:n=Lh(null,n,a,e,s);break e;case 11:n=Ih(null,n,a,e,s);break e;case 14:n=Ph(null,n,a,Er(a.type,e),s);break e}throw Error(o(306,a,""))}return n;case 0:return a=n.type,c=n.pendingProps,c=n.elementType===a?c:Er(a,c),Ac(e,n,a,c,s);case 1:return a=n.type,c=n.pendingProps,c=n.elementType===a?c:Er(a,c),Lh(e,n,a,c,s);case 3:e:{if(Nh(n),e===null)throw Error(o(387));a=n.pendingProps,p=n.memoizedState,c=p.element,Xp(e,n),Wl(n,a,null,s);var k=n.memoizedState;if(a=k.element,p.isDehydrated)if(p={element:a,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){c=Js(Error(o(423)),n),n=_h(e,n,a,s,c);break e}else if(a!==c){c=Js(Error(o(424)),n),n=_h(e,n,a,s,c);break e}else for(rr=Io(n.stateNode.containerInfo.firstChild),nr=n,_t=!0,Rr=null,s=Yp(n,null,a,s),n.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(Gs(),a===c){n=io(e,n,s);break e}An(e,n,a,s)}n=n.child}return n;case 5:return Qp(n),e===null&&ic(n),a=n.type,c=n.pendingProps,p=e!==null?e.memoizedProps:null,k=c.children,Zu(a,c)?k=null:p!==null&&Zu(a,p)&&(n.flags|=32),Mh(e,n),An(e,n,k,s),n.child;case 6:return e===null&&ic(n),null;case 13:return Dh(e,n,s);case 4:return hc(n,n.stateNode.containerInfo),a=n.pendingProps,e===null?n.child=Xs(n,null,a,s):An(e,n,a,s),n.child;case 11:return a=n.type,c=n.pendingProps,c=n.elementType===a?c:Er(a,c),Ih(e,n,a,c,s);case 7:return An(e,n,n.pendingProps,s),n.child;case 8:return An(e,n,n.pendingProps.children,s),n.child;case 12:return An(e,n,n.pendingProps.children,s),n.child;case 10:e:{if(a=n.type._context,c=n.pendingProps,p=n.memoizedProps,k=c.value,Pt(Bl,a._currentValue),a._currentValue=k,p!==null)if(Sr(p.value,k)){if(p.children===c.children&&!Vn.current){n=io(e,n,s);break e}}else for(p=n.child,p!==null&&(p.return=n);p!==null;){var M=p.dependencies;if(M!==null){k=p.child;for(var V=M.firstContext;V!==null;){if(V.context===a){if(p.tag===1){V=so(-1,s&-s),V.tag=2;var oe=p.updateQueue;if(oe!==null){oe=oe.shared;var de=oe.pending;de===null?V.next=V:(V.next=de.next,de.next=V),oe.pending=V}}p.lanes|=s,V=p.alternate,V!==null&&(V.lanes|=s),fc(p.return,s,n),M.lanes|=s;break}V=V.next}}else if(p.tag===10)k=p.type===n.type?null:p.child;else if(p.tag===18){if(k=p.return,k===null)throw Error(o(341));k.lanes|=s,M=k.alternate,M!==null&&(M.lanes|=s),fc(k,s,n),k=p.sibling}else k=p.child;if(k!==null)k.return=p;else for(k=p;k!==null;){if(k===n){k=null;break}if(p=k.sibling,p!==null){p.return=k.return,k=p;break}k=k.return}p=k}An(e,n,c.children,s),n=n.child}return n;case 9:return c=n.type,a=n.pendingProps.children,Zs(n,s),c=pr(c),a=a(c),n.flags|=1,An(e,n,a,s),n.child;case 14:return a=n.type,c=Er(a,n.pendingProps),c=Er(a.type,c),Ph(e,n,a,c,s);case 15:return Ah(e,n,n.type,n.pendingProps,s);case 17:return a=n.type,c=n.pendingProps,c=n.elementType===a?c:Er(a,c),ea(e,n),n.tag=1,Bn(a)?(e=!0,Dl(n)):e=!1,Zs(n,s),kh(n,a,c),Tc(n,a,c,s),Oc(null,n,a,!0,e,s);case 19:return zh(e,n,s);case 22:return Oh(e,n,s)}throw Error(o(156,n.tag))};function ag(e,n){return wr(e,n)}function G2(e,n,s,a){this.tag=e,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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mr(e,n,s,a){return new G2(e,n,s,a)}function Zc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function X2(e){if(typeof e=="function")return Zc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===X)return 11;if(e===L)return 14}return 2}function jo(e,n){var s=e.alternate;return s===null?(s=mr(e.tag,n,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=n,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&14680064,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,n=e.dependencies,s.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s}function fa(e,n,s,a,c,p){var k=2;if(a=e,typeof e=="function")Zc(e)&&(k=1);else if(typeof e=="string")k=5;else e:switch(e){case D:return gs(s.children,c,p,n);case j:k=8,c|=8;break;case z:return e=mr(12,s,n,c|2),e.elementType=z,e.lanes=p,e;case W:return e=mr(13,s,n,c),e.elementType=W,e.lanes=p,e;case Y:return e=mr(19,s,n,c),e.elementType=Y,e.lanes=p,e;case ie:return da(s,c,p,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case N:k=10;break e;case G:k=9;break e;case X:k=11;break e;case L:k=14;break e;case Q:k=16,a=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return n=mr(k,s,n,c),n.elementType=e,n.type=a,n.lanes=p,n}function gs(e,n,s,a){return e=mr(7,e,a,n),e.lanes=s,e}function da(e,n,s,a){return e=mr(22,e,a,n),e.elementType=ie,e.lanes=s,e.stateNode={isHidden:!1},e}function Qc(e,n,s){return e=mr(6,e,null,n),e.lanes=s,e}function Jc(e,n,s){return n=mr(4,e.children!==null?e.children:[],e.key,n),n.lanes=s,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function q2(e,n,s,a,c){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=it(0),this.expirationTimes=it(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=it(0),this.identifierPrefix=a,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function ef(e,n,s,a,c,p,k,M,V){return e=new q2(e,n,s,M,V),n===1?(n=1,p===!0&&(n|=8)):n=0,p=mr(3,null,null,n),e.current=p,p.stateNode=e,p.memoizedState={element:a,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},pc(p),e}function Z2(e,n,s){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O,key:a==null?null:""+a,children:e,containerInfo:n,implementation:s}}function ug(e){if(!e)return Ao;e=e._reactInternals;e:{if(ln(e)!==e||e.tag!==1)throw Error(o(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(Bn(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(o(171))}if(e.tag===1){var s=e.type;if(Bn(s))return Fp(e,s,n)}return n}function cg(e,n,s,a,c,p,k,M,V){return e=ef(s,a,!0,e,c,p,k,M,V),e.context=ug(null),s=e.current,a=On(),c=Fo(s),p=so(a,c),p.callback=n??null,Lo(s,p,c),e.current.lanes=c,Rt(e,c,a),Wn(e,a),e}function pa(e,n,s,a){var c=n.current,p=On(),k=Fo(c);return s=ug(s),n.context===null?n.context=s:n.pendingContext=s,n=so(p,k),n.payload={element:e},a=a===void 0?null:a,a!==null&&(n.callback=a),e=Lo(c,n,k),e!==null&&(Ir(e,c,k,p),Ul(e,c,k)),k}function ha(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function fg(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<n?s:n}}function tf(e,n){fg(e,n),(e=e.alternate)&&fg(e,n)}function Q2(){return null}var dg=typeof reportError=="function"?reportError:function(e){console.error(e)};function nf(e){this._internalRoot=e}ga.prototype.render=nf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(o(409));pa(e,n,null,null)},ga.prototype.unmount=nf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;ds(function(){pa(null,e,null,null)}),n[eo]=null}};function ga(e){this._internalRoot=e}ga.prototype.unstable_scheduleHydration=function(e){if(e){var n=br();e={blockedOn:null,target:e,priority:n};for(var s=0;s<Yt.length&&n!==0&&n<Yt[s].priority;s++);Yt.splice(s,0,e),s===0&&Qn(e)}};function rf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ma(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function pg(){}function J2(e,n,s,a,c){if(c){if(typeof a=="function"){var p=a;a=function(){var oe=ha(k);p.call(oe)}}var k=cg(n,a,e,0,null,!1,!1,"",pg);return e._reactRootContainer=k,e[eo]=k.current,_i(e.nodeType===8?e.parentNode:e),ds(),k}for(;c=e.lastChild;)e.removeChild(c);if(typeof a=="function"){var M=a;a=function(){var oe=ha(V);M.call(oe)}}var V=ef(e,0,!1,null,null,!1,!1,"",pg);return e._reactRootContainer=V,e[eo]=V.current,_i(e.nodeType===8?e.parentNode:e),ds(function(){pa(n,V,s,a)}),V}function ya(e,n,s,a,c){var p=s._reactRootContainer;if(p){var k=p;if(typeof c=="function"){var M=c;c=function(){var V=ha(k);M.call(V)}}pa(n,k,e,c)}else k=J2(s,n,e,c,a);return ha(k)}Ut=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var s=te(n.pendingLanes);s!==0&&(Be(n,s|1),Wn(n,mt()),(dt&6)===0&&(ni=mt()+500,Oo()))}break;case 13:ds(function(){var a=oo(e,1);if(a!==null){var c=On();Ir(a,e,1,c)}}),tf(e,1)}},Zt=function(e){if(e.tag===13){var n=oo(e,134217728);if(n!==null){var s=On();Ir(n,e,134217728,s)}tf(e,134217728)}},Kt=function(e){if(e.tag===13){var n=Fo(e),s=oo(e,n);if(s!==null){var a=On();Ir(s,e,n,a)}tf(e,n)}},br=function(){return Re},qn=function(e,n){var s=Re;try{return Re=e,n()}finally{Re=s}},Cn=function(e,n,s){switch(n){case"input":if(Ve(e,s),n=s.name,s.type==="radio"&&n!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<s.length;n++){var a=s[n];if(a!==e&&a.form===e.form){var c=Nl(a);if(!c)throw Error(o(90));be(a),Ve(a,c)}}}break;case"textarea":ft(e,s);break;case"select":n=s.value,n!=null&&ge(e,!!s.multiple,n,!1)}},Gn=Gc,Qe=ds;var ex={usingClientEntryPoint:!1,Events:[zi,Hs,Nl,tn,Tn,Gc]},Qi={findFiberByHostInstance:os,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},tx={bundleType:Qi.bundleType,version:Qi.version,rendererPackageName:Qi.rendererPackageName,rendererConfig:Qi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Xr(e),e===null?null:e.stateNode},findFiberByHostInstance:Qi.findFiberByHostInstance||Q2,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 va=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!va.isDisabled&&va.supportsFiber)try{ts=va.inject(tx),Pn=va}catch{}}return Kn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ex,Kn.createPortal=function(e,n){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!rf(n))throw Error(o(200));return Z2(e,n,null,s)},Kn.createRoot=function(e,n){if(!rf(e))throw Error(o(299));var s=!1,a="",c=dg;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(c=n.onRecoverableError)),n=ef(e,1,!1,null,null,s,!1,a,c),e[eo]=n.current,_i(e.nodeType===8?e.parentNode:e),new nf(n)},Kn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=Xr(n),e=e===null?null:e.stateNode,e},Kn.flushSync=function(e){return ds(e)},Kn.hydrate=function(e,n,s){if(!ma(n))throw Error(o(200));return ya(null,e,n,!0,s)},Kn.hydrateRoot=function(e,n,s){if(!rf(e))throw Error(o(405));var a=s!=null&&s.hydratedSources||null,c=!1,p="",k=dg;if(s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(p=s.identifierPrefix),s.onRecoverableError!==void 0&&(k=s.onRecoverableError)),n=cg(n,null,e,1,s??null,c,!1,p,k),e[eo]=n.current,_i(e),a)for(e=0;e<a.length;e++)s=a[e],c=s._getVersion,c=c(s._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[s,c]:n.mutableSourceEagerHydrationData.push(s,c);return new ga(n)},Kn.render=function(e,n,s){if(!ma(n))throw Error(o(200));return ya(null,e,n,!1,s)},Kn.unmountComponentAtNode=function(e){if(!ma(e))throw Error(o(40));return e._reactRootContainer?(ds(function(){ya(null,null,e,!1,function(){e._reactRootContainer=null,e[eo]=null})}),!0):!1},Kn.unstable_batchedUpdates=Gc,Kn.unstable_renderSubtreeIntoContainer=function(e,n,s,a){if(!ma(s))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return ya(e,n,s,!1,a)},Kn.version="18.3.1-next-f1338f8080-20240426",Kn}var Sg;function a0(){if(Sg)return lf.exports;Sg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),lf.exports=hx(),lf.exports}var Rg;function gx(){if(Rg)return xa;Rg=1;var t=a0();return xa.createRoot=t.createRoot,xa.hydrateRoot=t.hydrateRoot,xa}var mx=gx();function rd(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ps=rd();function u0(t){Ps=t}var ks={exec:()=>null};function ms(t){let r=[];return o=>{let i=Math.max(0,Math.min(3,o-1)),l=r[i];return l||(l=t(i),r[i]=l),l}}function Je(t,r=""){let o=typeof t=="string"?t:t.source,i={replace:(l,u)=>{let f=typeof u=="string"?u:u.source;return f=f.replace(on.caret,"$1"),o=o.replace(l,f),i},getRegex:()=>new RegExp(o,r)};return i}var c0=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),on={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,listInterruptsParagraph:/^ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+)[ \t]*)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,blockquoteMarkerWhitespace:/^( {0,3}>)([ \t]+)/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\][ \t]+\S/,listReplaceTask:/^\[[ xX]\][ \t]+/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/,numericCharacterReferenceOrAmpersand:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:ms(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:ms(t=>new RegExp(`^ {0,${t}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:ms(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:ms(t=>new RegExp(`^ {0,${t}}#{1,6}(?:\\s|$)`)),pedanticHeadingBeginRegex:ms(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:ms(t=>new RegExp(`^ {0,${t}}(?:</?(?:${vl})(?: +|$|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`,"i")),blockquoteBeginRegex:ms(t=>new RegExp(`^ {0,${t}}>`)),nestedContainerMarkers:/^(?: {0,3}(?:(?:[*+-]|\d{1,9}[.)])[ \t]+|>[ \t]?))+/},yx=/^(?:[ \t]*(?:\n|$))+/,vx=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,xx=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}(?:(?=`)\1`*|(?=~)\1~*) *(?=\n|$)|$)/,yl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,wx=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,od=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,f0=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+)[ \t]*(?:\n+|$)/,d0=Je(f0).replace(/bull/g,od).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),kx=Je(f0).replace(/bull/g,od).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),sd=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,bx=/^[^\n]+/,id=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\\n]|\n(?![ \t]*\n))+/,Sx=Je(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",id).replace("title",/(?:"(?:\\[\s\S]|[^"\\])*"|'(?:\\[\s\S]|[^'\\\n]|\n(?!\n))*'|\((?:\\[\s\S]|[^()\\])*\))/).getRegex(),Rx=Je(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,od).getRegex(),vl="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ld=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ex=Je("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?:[ \\t]+|\\n|/?>|$)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!(?:script|pre|style|textarea)(?![a-z0-9-]))([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ld).replace("tag",vl).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),p0=t=>Je(sd).replace("hr",yl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html"," {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",vl).getRegex(),Cx=p0(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Tx=p0(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Ix=Je(/^( {0,3}> ?(?:(?![ \t]*(?:\n|$))(paragraph)|[^\n]*)(?:\n|$))+/).replace("paragraph",Tx).getRegex(),ad={blockquote:Ix,code:vx,def:Sx,fences:xx,heading:wx,hr:yl,html:Ex,lheading:d0,list:Rx,newline:yx,paragraph:Cx,table:ks,text:bx},Eg=Je("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",yl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html"," {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",vl).getRegex(),Px={...ad,lheading:kx,table:Eg,paragraph:Je(sd).replace("hr",yl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Eg).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html"," {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",vl).getRegex()},Ax={...ad,html:Je(`^ *(?:comment(?: *\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1>(?: *\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?>(?: *\\n{2,}|\\s*$))`).replace("comment",ld).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ks,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Je(sd).replace("hr",yl).replace("heading",` *#{1,6} *[^
|
|
41
|
-
]`).replace("lheading",d0).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ox=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Mx=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,h0=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,Lx=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Kr=/[\p{P}\p{S}]/u,ki=/[\s\p{P}\p{S}]/u,xl=/[^\s\p{P}\p{S}]/u,Nx=Je(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ki).getRegex(),_x=/[\p{Pi}\p{Ps}"']/u,g0=/(?!~)[\p{P}\p{S}]/u,Dx=/(?!~)[\s\p{P}\p{S}]/u,Fx=/(?:[^\s\p{P}\p{S}]|~)/u,zx=Je(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",c0?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),m0=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,jx=Je(m0,"u").replace(/punct/g,Kr).getRegex(),$x=Je(m0,"u").replace(/punct/g,g0).getRegex(),Vx=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Bx=Je(Vx,"u").replace(/openQuote/g,_x).replace(/punct/g,Kr).getRegex(),y0="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Hx=Je(y0,"gu").replace(/notPunctSpace/g,xl).replace(/punctSpace/g,ki).replace(/punct/g,Kr).getRegex(),Ux=Je(y0,"gu").replace(/notPunctSpace/g,Fx).replace(/punctSpace/g,Dx).replace(/punct/g,g0).getRegex(),Wx="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Kx=Je(Wx,"gu").replace(/notPunctSpace/g,xl).replace(/punctSpace/g,ki).replace(/punct/g,Kr).getRegex(),Yx=Je("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,xl).replace(/punctSpace/g,ki).replace(/punct/g,Kr).getRegex(),Gx="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Xx=Je(Gx,"gu").replace(/notPunctSpace/g,xl).replace(/punctSpace/g,ki).replace(/punct/g,Kr).getRegex(),qx=Je(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Kr).getRegex(),Zx="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Qx=Je(Zx,"gu").replace(/notPunctSpace/g,xl).replace(/punctSpace/g,ki).replace(/punct/g,Kr).getRegex(),Jx=Je(/\\(punct)/,"gu").replace(/punct/g,Kr).getRegex(),ew=Je(/(`+)(?:[^`]|[^`][\s\S]*?[^`])\1(?!`)|`+|\\(punct)/,"gu").replace(/punct/g,Kr).getRegex(),tw=Je(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),nw=Je(ld).replace("(?:-->|$)","-->").getRegex(),rw=Je("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",nw).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),v0=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,Ga=Je(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",v0).getRegex(),ow=Je(/^!?\[(label)\]\([ \t\n]*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?[ \t\n]*\)/).replace("label",Ga).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\[\s\S]|[^"\\])*"|'(?:\\[\s\S]|[^'\\])*'|\((?:\\[\s\S]|[^)\\])*\)/).getRegex(),sw=Je(/^!?\[(label)\]\[(ref)\]/).replace("label",Ga).replace("ref",id).getRegex(),iw=Je(/^!?\[(ref)\](?:\[\])?/).replace("ref",id).getRegex(),Cg=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,lw=Je(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",v0).getRegex(),aw=Je("reflink|nolink(?!\\()","g").replace("reflink",Je(/^!?\[(label)\]\[(ref)\]/).replace("label",lw).replace("ref",Cg).getRegex()).replace("nolink",Je(/^!?\[(ref)\](?:\[\])?/).replace("ref",Cg).getRegex()).getRegex(),Tg=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,uw=/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/,cw=Je(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,uw).getRegex(),ud={_backpedal:ks,anyPunctuation:Jx,anyPunctuationOutsideCode:ew,autolink:tw,blockSkip:zx,br:h0,code:Mx,del:ks,delLDelim:ks,delRDelim:ks,emStrongLDelim:jx,emStrongRDelimAst:Hx,emStrongRDelimUnd:Yx,escape:Ox,link:ow,nolink:iw,punctuation:Nx,reflink:sw,reflinkSearch:aw,tag:rw,text:Lx,url:ks},fw={...ud,emStrongLDelim:Bx,emStrongRDelimAst:Kx,emStrongRDelimUnd:Xx,link:Je(/^!?\[(label)\]\((.*?)\)/).replace("label",Ga).getRegex(),reflink:Je(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ga).getRegex()},Of={...ud,emStrongRDelimAst:Ux,emStrongLDelim:$x,delLDelim:qx,delRDelim:Qx,url:Je(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("emailProtocol",cw).replace("protocol",Tg).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Je(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|wwwStart|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace("protocol",Tg).replace(/emailProtocol/g,/(?:mailto|xmpp):/).replace("wwwStart",c0?"(?<![^\\s*_~(])www\\.":"www\\.").getRegex()},dw={...Of,br:Je(h0).replace("{2,}","*").getRegex(),text:Je(Of.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},wa={normal:ad,gfm:Px,pedantic:Ax},tl={normal:ud,gfm:Of,breaks:dw,pedantic:fw},pw={"&":"&","<":"<",">":">",'"':""","'":"'"},Ig=t=>pw[t];function sr(t,r){if(r){if(on.escapeTest.test(t))return t.replace(on.escapeReplace,Ig)}else if(on.escapeTestNoEncode.test(t))return t.replace(on.escapeReplaceNoEncode,Ig);return t}function hw(t){return on.numericCharacterReference.test(t)?t.replace(on.numericCharacterReferenceOrAmpersand,(r,o,i)=>{if(o===void 0&&i===void 0)return"&";let l=o===void 0?Number.parseInt(i,16):Number.parseInt(o,10);return l===0||l>1114111||l>=55296&&l<=57343?"�":l===38?"&":String.fromCodePoint(l)}):t}function Pg(t){try{t=encodeURI(t).replace(on.percentDecode,"%")}catch{return null}return t}function Ag(t,r){var u;let o=t.replace(on.findPipe,(f,d,h)=>{let g=!1,m=d;for(;--m>=0&&h[m]==="\\";)g=!g;return g?"|":" |"}),i=o.split(on.splitPipe),l=0;if(i[0].trim()||i.shift(),i.length>0&&!((u=i.at(-1))!=null&&u.trim())&&i.pop(),r)if(i.length>r)i.splice(r);else for(;i.length<r;)i.push("");for(;l<i.length;l++)i[l]=i[l].trim().replace(on.slashPipe,"|");return i}function ao(t,r,o){let i=t.length;if(i===0)return"";let l=0;for(;l<i&&t.charAt(i-l-1)===r;)l++;return t.slice(0,i-l)}function Og(t){let r=t.split(`
|
|
42
|
-
`),o=r.length-1;for(;o>=0&&on.blankLine.test(r[o]);)o--;return r.length-o<=2?t:r.slice(0,o+1).join(`
|
|
43
|
-
`)}function Xa(t){return t.trim().replace(on.multipleSpaceGlobal," ").toLowerCase().toUpperCase().toLowerCase()}function Mg(t,r){if(t.indexOf(r[0])===-1&&t.indexOf(r[1])===-1)return-1;let o=0;for(let i=0;i<t.length;i++)if(t[i]==="\\")i++;else if(t[i]===r[0])o++;else if(t[i]===r[1]&&(o--,o<0))return i;return o>0?-2:-1}var pi=new WeakMap;function cd(t){let r={"*":-1,_:-1},o=-1,i=t.length;for(let l=0;l<i;l++){let u=t[l];if(u!=="*"&&u!=="_"&&u!=="~")continue;let f=l===0?`
|
|
44
|
-
`:t[l-1],d=l+1;for(;d<i&&t[d]===u;)d++;f!==" "&&f!==" "&&f!==`
|
|
45
|
-
`&&f!=="\r"&&f!=="\f"&&(u==="~"?o=l:r[u]=l),l=d-1}return{maskedSrc:t,lastPossibleEmStrongCloserIndex:r,lastPossibleDelCloserIndex:o}}function gw(t,r){let o=cd(r),i=pi.get(t);i?i.push(o):pi.set(t,[o])}function mw(t){let r=pi.get(t);r&&(r.pop(),r.length===0&&pi.delete(t))}function yw(t,r,o){var l;let i=(l=pi.get(t))==null?void 0:l.at(-1);return i&&i.maskedSrc===r?i.lastPossibleEmStrongCloserIndex[o]:cd(r).lastPossibleEmStrongCloserIndex[o]}function vw(t,r){var i;let o=(i=pi.get(t))==null?void 0:i.at(-1);return o&&o.maskedSrc===r?o.lastPossibleDelCloserIndex:cd(r).lastPossibleDelCloserIndex}function ka(t,r=0){let o=r,i="";for(let l of t)if(l===" "){let u=4-o%4;i+=" ".repeat(u),o+=u}else i+=l,o++;return i}function Lg(t,r,o,i,l){let u=r.href,f=r.title||null,d=t[1].replace(l.other.outputLinkReplace,"$1"),h=t[0].charAt(0)==="!",g=i.state.inLink,m=i.state.linkEmitted,v=i.state.inRawBlock;i.state.inLink=!0,i.state.linkEmitted=!1;let x=i.inlineTokens(d),R=i.state.linkEmitted;if(i.state.linkEmitted=m,i.state.inLink=g,!h){if(R){i.state.inRawBlock=v;return}i.state.linkEmitted=!0}return{type:h?"image":"link",raw:o,href:u,title:f,text:d,tokens:x}}function xw(t,r,o){let i=t.match(o.other.indentCodeCompensation);if(i===null)return r;let l=i[1];return r.split(`
|
|
46
|
-
`).map(u=>{let f=u.match(o.other.beginningSpace);if(f===null)return u;let[d]=f;return u.slice(Math.min(d.length,l.length))}).join(`
|
|
47
|
-
`)}function Ng(t,r,o,i){if(!r.includes("<"))return!1;for(let l=0;l<r.length;l++){if(r[l]==="\\"){l++;continue}if(r[l]==="`"){let d=i.inline.code.exec(r.slice(l));if(d){l+=d[0].length-1;continue}}if(r[l]!=="<")continue;let u=t.slice(o+l),f=i.inline.tag.exec(u)||i.inline.autolink.exec(u);if(f){if(f[0].length>r.length-l)return!0;l+=f[0].length-1}}return!1}var ii=class{constructor(t){Ie(this,"options");Ie(this,"rules");Ie(this,"lexer");this.options=t||Ps}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let o=this.options.pedantic?r[0]:Og(r[0]),i=o.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:o,codeBlockStyle:"indented",text:i}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let o=r[0],i=xw(o,r[3]||"",this.rules);return{type:"code",raw:o,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:i}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let o=r[2].trim();if(this.rules.other.endingHash.test(o)){let i=ao(o,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceTabChar.test(i))&&(o=i.trim())}return{type:"heading",raw:ao(r[0],`
|
|
48
|
-
`),depth:r[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:ao(r[0],`
|
|
49
|
-
`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let o=ao(r[0],`
|
|
50
|
-
`).split(`
|
|
51
|
-
`),i="",l="",u=[];for(;o.length>0;){let f=!1,d=[],h;for(h=0;h<o.length;h++)if(this.rules.other.blockquoteStart.test(o[h]))d.push(o[h]),f=!0;else if(!f)d.push(o[h]);else break;o=o.slice(h);let g=d.join(`
|
|
52
|
-
`),m=g.replace(this.rules.other.blockquoteMarkerWhitespace,(R,w,E)=>w+ka(E,w.length)).replace(this.rules.other.blockquoteSetextReplace,`
|
|
53
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
|
|
54
|
-
${g}`:g,l=l?`${l}
|
|
55
|
-
${m}`:m;let v=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(m,u,!0),this.lexer.state.top=v,o.length===0)break;let x=u.at(-1);if((x==null?void 0:x.type)==="code"||(x==null?void 0:x.type)==="heading"||(x==null?void 0:x.type)==="hr"||(x==null?void 0:x.type)==="html"||(x==null?void 0:x.type)==="table")break;if((x==null?void 0:x.type)==="blockquote"){let R=x,w=o.join(`
|
|
56
|
-
`),E=R.raw+`
|
|
57
|
-
`+w.replace(this.rules.other.blockquoteSetextReplace2,""),b=this.blockquote(E);u[u.length-1]=b;let C=E.substring(b.raw.length).replace(/^\n/,""),S=C?C.split(`
|
|
58
|
-
`).length:0,P=S?o.slice(0,-S):o;if(P.length>0&&(i=`${i}
|
|
59
|
-
${P.join(`
|
|
60
|
-
`)}`),l=l.substring(0,l.length-R.text.length)+b.text,o=o.slice(P.length),o.length>0&&this.rules.other.blockquoteStart.test(o[0]))continue;break}else if((x==null?void 0:x.type)==="list"){let R=x,w=R.raw+`
|
|
61
|
-
`+o.join(`
|
|
62
|
-
`),E=this.list(w);u[u.length-1]=E;let b=E.raw.length>R.raw.length?w.slice(R.raw.length+1,E.raw.length).split(`
|
|
63
|
-
`).length:0;if(b>0){let C=o.slice(0,b).join(`
|
|
64
|
-
`);i=`${i}
|
|
65
|
-
${C}`,l=`${l}
|
|
66
|
-
${C}`}o=o.slice(b);continue}}return{type:"blockquote",raw:i,tokens:u,text:l}}}list(t){var o;let r=this.rules.block.list.exec(t);if(r){if(!this.options.pedantic&&((o=this.lexer.state.lastToken)==null?void 0:o.type)==="text"&&!this.rules.other.listInterruptsParagraph.test(t))return;let i=t,l=()=>i.length-t.length,u=r[1].trim(),f=u.length>1,d={type:"list",raw:"",ordered:f,start:f?+u.slice(0,-1):"",loose:!1,items:[]};u=f?`\\d{1,9}\\${u.slice(-1)}`:`\\${u}`,this.options.pedantic&&(u=f?u:"[*+-]");let h=this.rules.other.listItemRegex(u),g=!1;for(;t;){let v=!1,x="";if(!(r=h.exec(t))||this.rules.block.hr.test(t))break;let R=l();t=t.substring(r[0].length);let w=r[2].split(`
|
|
67
|
-
`,1)[0],E=r[1].length,b=this.options.pedantic?ka(w,E):w.replace(this.rules.other.leadingSpaceTab,A=>ka(A,E)),C=t.split(`
|
|
68
|
-
`,1)[0],S=!b.trim(),P=0;if(this.options.pedantic?(P=2,x=b.trimStart()):S?P=E+1:(P=b.search(this.rules.other.nonSpaceChar),P=P>4?1:P,x=b.slice(P),P+=E),S&&this.rules.other.blankLine.test(C)&&(t=t.substring(C.length+1),v=!0),!v){let A=this.rules.other.nextBulletRegex(P),O=this.rules.other.hrRegex(P),D=this.rules.other.fencesBeginRegex(P),j=this.options.pedantic?this.rules.other.pedanticHeadingBeginRegex(P):this.rules.other.headingBeginRegex(P),z=this.rules.other.htmlBeginRegex(P),N=this.rules.other.blockquoteBeginRegex(P),G=!1;for(;t;){let X=t.split(`
|
|
69
|
-
`,1)[0],W;if(C=X,this.options.pedantic?(C=C.replace(this.rules.other.listReplaceNesting," "),W=C):W=C.replace(this.rules.other.leadingSpaceTab,Y=>ka(Y)),D.test(C)||j.test(C)||z.test(C)||N.test(C)||A.test(C)||O.test(C))break;if(W.search(this.rules.other.nonSpaceChar)>=P||!C.trim())x+=`
|
|
70
|
-
`+W.slice(P),G=!1;else{if(S||b.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||D.test(b)||j.test(b)||z.test(b)||O.test(b))break;if(!this.options.pedantic&&!G){let L=b.replace(this.rules.other.nestedContainerMarkers,"");if(this.rules.block.fences.test(L)||this.rules.block.heading.test(L)||this.rules.block.hr.test(L))break}let Y=!this.options.pedantic&&/^ {0,3}(?:=+|-+) *$/.test(C)&&this.rules.block.lheading.test(`${b}
|
|
71
|
-
${C}`)?` ${W.replace(/^ {0,3}/,"")}`:C;x+=`
|
|
72
|
-
`+Y,G=!0}S=!C.trim(),t=t.substring(X.length+1),b=W.slice(P)}}let T=i.slice(R,l());d.loose||(g?d.loose=!0:this.rules.other.doubleBlankLine.test(T)&&(g=!0)),d.items.push({type:"list_item",raw:T,task:!!this.options.gfm&&this.rules.other.listIsTask.test(x),loose:!1,text:x,tokens:[]})}let m=d.items.at(-1);if(m)m.raw=m.raw.trimEnd(),m.text=m.text.trimEnd();else return;d.raw=i.slice(0,l()).trimEnd();for(let v of d.items)if(this.lexer.state.top=!1,v.tokens=this.lexer.blockTokens(v.text,[]),!d.loose){let x=v.tokens.filter(w=>w.type==="space"),R=x.length>0&&x.some(w=>this.rules.other.anyLine.test(w.raw));d.loose=R}for(let v of d.items){let x=v.tokens[0];if(v.task&&((x==null?void 0:x.type)==="text"||(x==null?void 0:x.type)==="paragraph")){v.text=v.text.replace(this.rules.other.listReplaceTask,""),x.raw=x.raw.replace(this.rules.other.listReplaceTask,""),x.text=x.text.replace(this.rules.other.listReplaceTask,"");for(let w=this.lexer.inlineQueue.length-1;w>=0;w--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[w].src)){this.lexer.inlineQueue[w].src=this.lexer.inlineQueue[w].src.replace(this.rules.other.listReplaceTask,"");break}let R=this.rules.other.listTaskCheckbox.exec(v.raw);if(R){let w={type:"checkbox",raw:R[0]+" ",checked:R[0]!=="[ ]"};v.checked=w.checked,d.loose?v.tokens[0]&&["paragraph","text"].includes(v.tokens[0].type)&&"tokens"in v.tokens[0]&&v.tokens[0].tokens?(v.tokens[0].raw=w.raw+v.tokens[0].raw,v.tokens[0].text=w.raw+v.tokens[0].text,v.tokens[0].tokens.unshift(w)):v.tokens.unshift({type:"paragraph",raw:w.raw,text:w.raw,tokens:[w]}):v.tokens.unshift(w)}}else v.task&&(v.task=!1)}if(d.loose)for(let v of d.items){v.loose=!0;for(let x of v.tokens)x.type==="text"&&(x.type="paragraph")}return d}}html(t){let r=this.rules.block.html.exec(t);if(r){let o=Og(r[0]);return{type:"html",block:!0,raw:o,pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:o}}}def(t){let r=this.rules.block.def.exec(t);if(r){if(!this.rules.other.startAngleBracket.test(r[2])&&Mg(r[2],"()")!==-1)return;let o=Xa(r[1]),i=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",l=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:o,raw:ao(r[0],`
|
|
73
|
-
`),href:i,title:l}}}table(t){var f;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let o=Ag(r[1]),i=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),l=(f=r[3])!=null&&f.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
74
|
-
`):[],u={type:"table",raw:ao(r[0],`
|
|
75
|
-
`),header:[],align:[],rows:[]};if(o.length===i.length){for(let d of i)this.rules.other.tableAlignRight.test(d)?u.align.push("right"):this.rules.other.tableAlignCenter.test(d)?u.align.push("center"):this.rules.other.tableAlignLeft.test(d)?u.align.push("left"):u.align.push(null);for(let d=0;d<o.length;d++)u.header.push({text:o[d],tokens:this.lexer.inline(o[d]),header:!0,align:u.align[d]});for(let d of l)u.rows.push(Ag(d,u.header.length).map((h,g)=>({text:h,tokens:this.lexer.inline(h),header:!1,align:u.align[g]})));return u}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r){let o=r[1].trim();return{type:"heading",raw:ao(r[0],`
|
|
76
|
-
`),depth:r[2].charAt(0)==="="?1:2,text:o,tokens:this.lexer.inline(o)}}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let o=r[1].charAt(r[1].length-1)===`
|
|
77
|
-
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:o,tokens:this.lexer.inline(o)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){if(this.lexer.state.linkParenPossible===!1)return;let r=this.rules.inline.link.exec(t);if(r){let o=r[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&Ng(t,r[1],o,this.rules))return;let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let d=ao(i.slice(0,-1),"\\");if((i.length-d.length)%2===0)return}else{let d=Mg(r[2],"()");if(d===-2)return;if(d>-1){let h=(r[0].indexOf("!")===0?5:4)+r[1].length+d;r[2]=r[2].substring(0,d),r[0]=r[0].substring(0,h).trim(),r[3]=""}}let l=ao(r[0].slice(0,-1),"\\");if((r[0].length-l.length)%2===0)return;let u=r[2],f="";if(this.options.pedantic){let d=this.rules.other.pedanticHrefTitle.exec(u);d&&(u=d[1],f=d[3])}else f=r[3]?r[3].slice(1,-1):"";return u=u.trim(),this.rules.other.startAngleBracket.test(u)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?u=u.slice(1):u=u.slice(1,-1)),Lg(r,{href:u&&u.replace(this.rules.inline.anyPunctuation,"$1"),title:f&&f.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let o;if((o=this.rules.inline.reflink.exec(t))||(o=this.rules.inline.nolink.exec(t))){let i=o[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&Ng(t,o[1],i,this.rules))return;let l=r[Xa(o[2]||o[1])];if(!l){let u=o[0].charAt(0);return{type:"text",raw:u,text:u}}return Lg(o,l,o[0],this.lexer,this.rules)}}emStrong(t,r,o=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||!i[1]&&!i[2]&&!i[3]&&!i[4])return;let l=i[0][0],u=o===l,f=r.length-t.length,d=f;for(;!this.options.pedantic&&d>0&&r[d-1]===l;)d--;let h=[...r.slice(Math.max(0,d-2),d)].at(-1)??"",g=h==="*"||h==="_"||!!this.rules.inline.punctuation.exec(h);d<f&&(o=h);let m=d<f?g:o==="*"||o==="_"||!!this.rules.inline.punctuation.exec(o);if(i[4]&&o.match(this.rules.other.unicodeAlphaNumeric))return;let v=i[1]||i[3]||"";if(!v||!o||m){let x=[...i[0]].length-1,R,w,E=x,b=0,C=f-d+x,S=!this.options.pedantic&&!!h.trim()&&(!!v||l==="*"&&!g);if(l!=="*"&&l!=="_")return;let P=l==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd,T=yw(this,r,l),A=r.length-t.length+x;if(T<A)return;r=r.slice(-1*t.length+x);let O=T-A;for(P.lastIndex=0;(i=P.exec(r))!==null&&!(i.index>O);){if(R=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!R)continue;if(w=[...R].length,i[3]||i[4]){E+=w;continue}else if(i[5]||i[6]||S){if(u&&(i[5]||i[6]))break;if(C%3&&!((C+w)%3)){b+=w;continue}}if(E-=w,E>0)continue;w=Math.min(w,w+E+b);let D=[...i[0]][0].length,j=t.slice(0,x+i.index+D+w);if(Math.min(x,w)%2){let N=j.slice(1,-1);return{type:"em",raw:j,text:N,tokens:this.lexer.inlineTokens(N)}}let z=j.slice(2,-2);return{type:"strong",raw:j,text:z,tokens:this.lexer.inlineTokens(z)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let o=r[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(o),l=this.rules.other.startingSpaceChar.test(o)&&this.rules.other.endingSpaceChar.test(o);return i&&l&&(o=o.substring(1,o.length-1)),{type:"codespan",raw:r[0],text:o}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t,r,o=""){let i=this.rules.inline.delLDelim.exec(t);if(i&&(!i[1]||!o||this.rules.inline.punctuation.exec(o))){let l=[...i[0]].length-1,u,f,d=l,h=this.rules.inline.delRDelim,g=vw(this,r),m=r.length-t.length+l;if(g<m)return;r=r.slice(-1*t.length+l);let v=g-m;for(h.lastIndex=0;(i=h.exec(r))!==null&&!(i.index>v);){if(u=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!u||(f=[...u].length,f!==l))continue;if(i[3]||i[4]){d+=f;continue}if(d-=f,d>0)continue;f=Math.min(f,f+d);let x=[...i[0]][0].length,R=t.slice(0,l+i.index+x+f),w=R.slice(l,-l);return{type:"del",raw:R,text:w,tokens:this.lexer.inlineTokens(w)}}}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let o,i;return r[2]==="@"?(o=r[1],i="mailto:"+o):(o=r[1],i=o),{type:"link",raw:r[0],text:o,href:i,autolink:!0,tokens:[{type:"text",raw:o,text:o}]}}}url(t){var o;let r;if(r=this.rules.inline.url.exec(t)){let i,l;if(r[2]==="@")i=r[0],l="mailto:"+i;else{let u;do u=r[0],r[0]=((o=this.rules.inline._backpedal.exec(r[0]))==null?void 0:o[0])??"";while(u!==r[0]);i=r[0],r[1]==="www."?l="http://"+r[0]:l=r[0]}return{type:"link",raw:r[0],text:i,href:l,autolink:!0,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let o=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:o?r[0]:hw(r[0]),escaped:o}}}},Wr,x0,w0,k0,b0,Rs,Pr=(Rs=class{constructor(r){gg(this,Wr);Ie(this,"tokens");Ie(this,"options");Ie(this,"state");Ie(this,"inlineQueue");Ie(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=r||Ps,this.options.tokenizer=this.options.tokenizer||new ii,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,linkParenPossible:!0,top:!0};let o={other:on,block:wa.normal,inline:tl.normal};this.options.pedantic?(o.block=wa.pedantic,o.inline=tl.pedantic):this.options.gfm&&(o.block=wa.gfm,this.options.breaks?o.inline=tl.breaks:o.inline=tl.gfm),this.tokenizer.rules=o}static get rules(){return{block:wa,inline:tl}}static lex(r,o){return new Rs(o).lex(r)}static lexInline(r,o){return new Rs(o).inlineTokens(r)}lex(r){r=r.replace(on.carriageReturn,`
|
|
78
|
-
`),this.blockTokens(r,this.tokens);for(let o=0;o<this.inlineQueue.length;o++){let i=this.inlineQueue[o];this.state.inRawBlock=!1,this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(r,o=[],i=!1){var f,d,h;this.tokenizer.lexer=this;let l=this.state.lastToken;this.options.pedantic&&(r=r.replace(on.tabCharGlobal," ").replace(on.spaceLine,""));let u=1/0;for(;r;){if(r.length<u)u=r.length;else{this.infiniteLoopError(r.charCodeAt(0));break}this.state.lastToken=o.at(-1);let g;if((d=(f=this.options.extensions)==null?void 0:f.block)!=null&&d.some(v=>(g=v.call({lexer:this},r,o))?(r=r.substring(g.raw.length),o.push(g),!0):!1))continue;if(g=this.tokenizer.space(r)){r=r.substring(g.raw.length);let v=o.at(-1);g.raw.length===1&&v!==void 0?v.raw+=`
|
|
79
|
-
`:o.push(g);continue}if(g=this.tokenizer.code(r)){r=r.substring(g.raw.length);let v=o.at(-1);(v==null?void 0:v.type)==="paragraph"||(v==null?void 0:v.type)==="text"?(v.raw+=(v.raw.endsWith(`
|
|
80
|
-
`)?"":`
|
|
81
|
-
`)+g.raw,v.text+=`
|
|
82
|
-
`+g.text,this.inlineQueue.at(-1).src=v.text):o.push(g);continue}if(g=this.tokenizer.fences(r)){r=r.substring(g.raw.length),o.push(g);continue}if(g=this.tokenizer.heading(r)){r=r.substring(g.raw.length),o.push(g);continue}if(g=this.tokenizer.hr(r)){r=r.substring(g.raw.length),o.push(g);continue}if(g=this.tokenizer.blockquote(r)){r=r.substring(g.raw.length),o.push(g);continue}if(g=this.tokenizer.list(r)){r=r.substring(g.raw.length),o.push(g);continue}if(g=this.tokenizer.html(r)){r=r.substring(g.raw.length),o.push(g);continue}if(g=this.tokenizer.def(r)){r=r.substring(g.raw.length);let v=o.at(-1);(v==null?void 0:v.type)==="paragraph"||(v==null?void 0:v.type)==="text"?(v.raw+=(v.raw.endsWith(`
|
|
83
|
-
`)?"":`
|
|
84
|
-
`)+g.raw,v.text+=`
|
|
85
|
-
`+g.raw,this.inlineQueue.at(-1).src=v.text):(this.tokens.links[g.tag]||(this.tokens.links[g.tag]={href:g.href,title:g.title}),o.push(g));continue}if(g=this.tokenizer.table(r)){r=r.substring(g.raw.length),o.push(g);continue}if(g=this.tokenizer.lheading(r)){r=r.substring(g.raw.length),o.push(g);continue}let m=r;if((h=this.options.extensions)!=null&&h.startBlock){let v=1/0,x=r.slice(1),R;this.options.extensions.startBlock.forEach(w=>{R=w.call({lexer:this},x),typeof R=="number"&&R>=0&&(v=Math.min(v,R))}),v<1/0&&v>=0&&(m=r.substring(0,v+1))}if(this.state.top&&(g=this.tokenizer.paragraph(m))){let v=o.at(-1);i&&(v==null?void 0:v.type)==="paragraph"?(v.raw+=(v.raw.endsWith(`
|
|
86
|
-
`)?"":`
|
|
87
|
-
`)+g.raw,v.text+=`
|
|
88
|
-
`+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=v.text):o.push(g),i=m.length!==r.length,r=r.substring(g.raw.length);continue}if(g=this.tokenizer.text(r)){r=r.substring(g.raw.length);let v=o.at(-1);(v==null?void 0:v.type)==="text"?(v.raw+=(v.raw.endsWith(`
|
|
89
|
-
`)?"":`
|
|
90
|
-
`)+g.raw,v.text+=`
|
|
91
|
-
`+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=v.text):o.push(g);continue}if(r){this.infiniteLoopError(r.charCodeAt(0));break}}return this.state.top=!0,this.state.lastToken=l,o}inline(r,o=[]){return this.inlineQueue.push({src:r,tokens:o}),o}linkInText(r){if(!r.includes("["))return!1;let o=this.tokenizer.rules.inline.link;for(let i of r.matchAll(this.tokenizer.rules.inline.blockSkip))if(o.test(i[0])&&r.charAt(i.index-1)!=="!")return!0;for(let i of r.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let l=i[0],u=l.lastIndexOf("[");if(!(l.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,Xa(l.slice(u+1,-1))))&&!(u>1&&this.linkInText(l.slice(1,u-1))))return!0}return!1}inlineTokens(r,o=[]){this.tokenizer.lexer=this;let i=this.state.linkParenPossible;this.state.linkParenPossible=i&&r.includes(")");try{return Ji(this,Wr,x0).call(this,r,o)}finally{this.state.linkParenPossible=i}}infiniteLoopError(r){let o="Infinite loop on byte: "+r;if(this.options.silent)console.error(o);else throw new Error(o)}},Wr=new WeakSet,x0=function(r,o){var l;let i=r.includes("*")||r.includes("_")||r.includes("~")||(l=this.options.hooks)!=null&&l.emStrongMask||this.tokenizer.emStrong!==ii.prototype.emStrong||this.tokenizer.del!==ii.prototype.del?Ji(this,Wr,b0).call(this,r):r;gw(this.tokenizer,i);try{return Ji(this,Wr,w0).call(this,r,i,o)}finally{mw(this.tokenizer)}},w0=function(r,o,i){var d,h,g;let l=!1,u="",f=1/0;for(;r;){if(r.length<f)f=r.length;else{this.infiniteLoopError(r.charCodeAt(0));break}l||(u=""),l=!1;let m;if((h=(d=this.options.extensions)==null?void 0:d.inline)!=null&&h.some(x=>(m=x.call({lexer:this},r,i))?(r=r.substring(m.raw.length),i.push(m),!0):!1))continue;if(m=this.tokenizer.escape(r)){r=r.substring(m.raw.length),i.push(m);continue}if(m=this.tokenizer.tag(r)){r=r.substring(m.raw.length),i.push(m);continue}if(m=this.tokenizer.link(r)){r=r.substring(m.raw.length),i.push(m);continue}if(m=this.tokenizer.reflink(r,this.tokens.links)){r=r.substring(m.raw.length);let x=i.at(-1);m.type==="text"&&(x==null?void 0:x.type)==="text"?(x.raw+=m.raw,x.text+=m.text):i.push(m);continue}if(m=this.tokenizer.emStrong(r,o,u)){r=r.substring(m.raw.length),i.push(m);continue}if(m=this.tokenizer.codespan(r)){r=r.substring(m.raw.length),i.push(m);continue}if(m=this.tokenizer.br(r)){r=r.substring(m.raw.length),i.push(m);continue}if(m=this.tokenizer.del(r,o,u)){r=r.substring(m.raw.length),i.push(m);continue}if(m=this.tokenizer.autolink(r)){r=r.substring(m.raw.length),i.push(m);continue}if(!this.state.inLink&&(m=this.tokenizer.url(r))){r=r.substring(m.raw.length),i.push(m);continue}let v=r;if((g=this.options.extensions)!=null&&g.startInline){let x=1/0,R=r.slice(1),w;this.options.extensions.startInline.forEach(E=>{w=E.call({lexer:this},R),typeof w=="number"&&w>=0&&(x=Math.min(x,w))}),x<1/0&&x>=0&&(v=r.substring(0,x+1))}if(m=this.tokenizer.inlineText(v)){r=r.substring(m.raw.length),m.raw.slice(-1)!=="_"&&(u=m.raw.slice(-1)),l=!0;let x=i.at(-1);(x==null?void 0:x.type)==="text"?(x.raw+=m.raw,x.text+=m.text):i.push(m);continue}if(r){this.infiniteLoopError(r.charCodeAt(0));break}}return i},k0=function(r){let{blockSkip:o,tag:i,autolink:l}=this.tokenizer.rules.inline,u="",f=0,d;for(o.lastIndex=0;d=o.exec(r);){let h=d.index+(d[2]?d[2].length:0),g=d.index+d[0].length;if(r.charAt(h)==="<"){let m=r.slice(h),v=i.exec(m)||l.exec(m);if(!v){o.lastIndex=h+1;continue}g=h+v[0].length,o.lastIndex=g}u+=r.slice(f,h)+"["+"a".repeat(g-h-2)+"]",f=g}return u+r.slice(f)},b0=function(r){var i,l;let o=r;if(this.tokens.links&&r.includes("[")){let u=this.tokenizer.rules.inline.reflinkSearch,f=d=>{let h=d.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,Xa(d.slice(h+1,-1))))return d;if(h>1&&d.charAt(0)!=="!"){let g=d.slice(1,h-1);if(this.linkInText(g))return"["+g.replace(u,f)+"]["+"a".repeat(d.length-h-2)+"]"}return"["+"a".repeat(d.length-2)+"]"};o=o.replace(u,f)}return o=o.replace(this.tokenizer.rules.inline.anyPunctuationOutsideCode,(u,f,d)=>d?"+".repeat(u.length):f?f+u.slice(f.length,-f.length).replace(/`/g,"+")+f:u),o=Ji(this,Wr,k0).call(this,o),o=((l=(i=this.options.hooks)==null?void 0:i.emStrongMask)==null?void 0:l.call({lexer:this},o))??o,o},Rs),qa=class{constructor(t){Ie(this,"options");Ie(this,"parser");this.options=t||Ps}space(t){return""}code({text:t,lang:r,escaped:o}){var u;let i=(u=(r||"").match(on.notSpaceStart))==null?void 0:u[0],l=t?t.replace(on.endingNewline,"")+`
|
|
92
|
-
`:"";return i?'<pre><code class="language-'+sr(i)+'">'+(o?l:sr(l,!0))+`</code></pre>
|
|
93
|
-
`:"<pre><code>"+(o?l:sr(l,!0))+`</code></pre>
|
|
94
|
-
`}blockquote({tokens:t}){return`<blockquote>
|
|
95
|
-
${this.parser.parse(t)}</blockquote>
|
|
96
|
-
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
|
|
97
|
-
`}hr(t){return`<hr>
|
|
98
|
-
`}list(t){let r=t.ordered,o=t.start,i="";for(let f=0;f<t.items.length;f++){let d=t.items[f];i+=this.listitem(d)}let l=r?"ol":"ul",u=r&&o!==1?' start="'+o+'"':"";return"<"+l+u+`>
|
|
99
|
-
`+i+"</"+l+`>
|
|
100
|
-
`}listitem(t){return`<li>${this.parser.parse(t.tokens)}</li>
|
|
101
|
-
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
102
|
-
`}table(t){let r="",o="";for(let l=0;l<t.header.length;l++)o+=this.tablecell(t.header[l]);r+=this.tablerow({text:o});let i="";for(let l=0;l<t.rows.length;l++){let u=t.rows[l];o="";for(let f=0;f<u.length;f++)o+=this.tablecell(u[f]);i+=this.tablerow({text:o})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
|
|
103
|
-
<thead>
|
|
104
|
-
`+r+`</thead>
|
|
105
|
-
`+i+`</table>
|
|
106
|
-
`}tablerow({text:t}){return`<tr>
|
|
107
|
-
${t}</tr>
|
|
108
|
-
`}tablecell(t){let r=this.parser.parseInline(t.tokens),o=t.header?"th":"td";return(t.align?`<${o} align="${t.align}">`:`<${o}>`)+r+`</${o}>
|
|
109
|
-
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${sr(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,text:o,tokens:i,autolink:l}){let u=l?sr(o,!0):this.parser.parseInline(i),f=Pg(t);if(f===null)return u;t=sr(f,l);let d='<a href="'+t+'"';return r&&(d+=' title="'+sr(r)+'"'),d+=">"+u+"</a>",d}image({href:t,title:r,text:o,tokens:i}){i&&(o=this.parser.parseInline(i,this.parser.textRenderer));let l=Pg(t);if(l===null)return sr(o);t=l;let u=`<img src="${sr(t)}" alt="${sr(o)}"`;return r&&(u+=` title="${sr(r)}"`),u+=">",u}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:sr(t.text)}},fd=class{constructor(){Ie(this,"parser")}strong({text:t,tokens:r}){return r?this.parser.parseInline(r,this):t}em({text:t,tokens:r}){return r?this.parser.parseInline(r,this):t}codespan({text:t}){return t}del({text:t,tokens:r}){return r?this.parser.parseInline(r,this):t}html({text:t}){return t}text({text:t}){return t}link({text:t,tokens:r}){return r?this.parser.parseInline(r,this):t}image({text:t,tokens:r}){return r?this.parser.parseInline(r,this):t}br(){return`
|
|
110
|
-
`}checkbox({raw:t}){return t}},Ar=class Mf{constructor(r){Ie(this,"options");Ie(this,"renderer");Ie(this,"textRenderer");this.options=r||Ps,this.options.renderer=this.options.renderer||new qa,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new fd,this.textRenderer.parser=this}static parse(r,o){return new Mf(o).parse(r)}static parseInline(r,o){return new Mf(o).parseInline(r)}parse(r){var i,l;this.renderer.parser=this;let o="";for(let u=0;u<r.length;u++){let f=r[u];if((l=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&l[f.type]){let h=f,g=this.options.extensions.renderers[h.type].call({parser:this},h);if(g!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(h.type)){o+=g===!1?"":g??"";continue}}let d=f;switch(d.type){case"space":{o+=this.renderer.space(d);break}case"hr":{o+=this.renderer.hr(d);break}case"heading":{o+=this.renderer.heading(d);break}case"code":{o+=this.renderer.code(d);break}case"table":{o+=this.renderer.table(d);break}case"blockquote":{o+=this.renderer.blockquote(d);break}case"list":{o+=this.renderer.list(d);break}case"checkbox":{o+=this.renderer.checkbox(d);break}case"html":{o+=this.renderer.html(d);break}case"def":{o+=this.renderer.def(d);break}case"paragraph":{o+=this.renderer.paragraph(d);break}case"text":{o+=this.renderer.text(d);break}default:{let h='Token with "'+d.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return o}parseInline(r,o=this.renderer){var l,u;this.renderer.parser=this;let i="";for(let f=0;f<r.length;f++){let d=r[f];if((u=(l=this.options.extensions)==null?void 0:l.renderers)!=null&&u[d.type]){let g=this.options.extensions.renderers[d.type].call({parser:this},d);if(g!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(d.type)){i+=g===!1?"":g??"";continue}}let h=d;switch(h.type){case"escape":{i+=o.text(h);break}case"html":{i+=o.html(h);break}case"link":{i+=o.link(h);break}case"image":{i+=o.image(h);break}case"checkbox":{i+=o.checkbox(h);break}case"strong":{i+=o.strong(h);break}case"em":{i+=o.em(h);break}case"codespan":{i+=o.codespan(h);break}case"br":{i+=o.br(h);break}case"del":{i+=o.del(h);break}case"text":{i+=o.text(h);break}default:{let g='Token with "'+h.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return i}},Va,sl=(Va=class{constructor(t){Ie(this,"options");Ie(this,"block");this.options=t||Ps}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(t=this.block){return t?Pr.lex:Pr.lexInline}provideParser(t=this.block){return t?Ar.parse:Ar.parseInline}},Ie(Va,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Ie(Va,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Va);function Vo(t,r){if(Array.isArray(r))for(let o=0;o<r.length;o++)t.push(r[o]);else t.push(r)}var ww=class{constructor(...t){Ie(this,"defaults",rd());Ie(this,"options",this.setOptions);Ie(this,"parse",this.parseMarkdown(!0));Ie(this,"parseInline",this.parseMarkdown(!1));Ie(this,"Parser",Ar);Ie(this,"Renderer",qa);Ie(this,"TextRenderer",fd);Ie(this,"Lexer",Pr);Ie(this,"Tokenizer",ii);Ie(this,"Hooks",sl);this.use(...t)}walkTokens(t,r){var i,l;let o=[];for(let u of t)switch(Vo(o,r.call(this,u)),u.type){case"table":{let f=u;for(let d of f.header)Vo(o,this.walkTokens(d.tokens,r));for(let d of f.rows)for(let h of d)Vo(o,this.walkTokens(h.tokens,r));break}case"list":{let f=u;Vo(o,this.walkTokens(f.items,r));break}default:{let f=u;(l=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&l[f.type]?this.defaults.extensions.childTokens[f.type].forEach(d=>{let h=f[d].flat(1/0);Vo(o,this.walkTokens(h,r))}):f.tokens&&Vo(o,this.walkTokens(f.tokens,r))}}return o}use(...t){let r=this.defaults.extensions||{renderers:Object.create(null),childTokens:Object.create(null)};return t.forEach(o=>{let i={...o};if(i.async=this.defaults.async||i.async||!1,o.extensions&&(o.extensions.forEach(l=>{if(!l.name)throw new Error("extension name required");if("renderer"in l){let u=r.renderers[l.name];u?r.renderers[l.name]=function(...f){let d=l.renderer.apply(this,f);return d===!1&&(d=u.apply(this,f)),d}:r.renderers[l.name]=l.renderer}if("tokenizer"in l){if(!l.level||l.level!=="block"&&l.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let u=r[l.level];u?u.unshift(l.tokenizer):r[l.level]=[l.tokenizer],l.start&&(l.level==="block"?r.startBlock?r.startBlock.push(l.start):r.startBlock=[l.start]:l.level==="inline"&&(r.startInline?r.startInline.push(l.start):r.startInline=[l.start]))}"childTokens"in l&&l.childTokens&&(r.childTokens[l.name]=l.childTokens)}),i.extensions=r),o.renderer){let l=this.defaults.renderer||new qa(this.defaults);for(let u in o.renderer){if(!(u in l))throw new Error(`renderer '${u}' does not exist`);if(["options","parser"].includes(u))continue;let f=u,d=o.renderer[f],h=l[f];l[f]=(...g)=>{let m=d.apply(l,g);return m===!1&&(m=h.apply(l,g)),m===!1?"":m??""}}i.renderer=l}if(o.tokenizer){let l=this.defaults.tokenizer||new ii(this.defaults);for(let u in o.tokenizer){if(!(u in l))throw new Error(`tokenizer '${u}' does not exist`);if(["options","rules","lexer"].includes(u))continue;let f=u,d=o.tokenizer[f],h=l[f];l[f]=(...g)=>{let m=d.apply(l,g);return m===!1&&(m=h.apply(l,g)),m}}i.tokenizer=l}if(o.hooks){let l=this.defaults.hooks||new sl;for(let u in o.hooks){if(!(u in l))throw new Error(`hook '${u}' does not exist`);if(["options","block"].includes(u))continue;let f=u,d=o.hooks[f],h=l[f];sl.passThroughHooks.has(u)?l[f]=g=>{if(l.options.async&&sl.passThroughHooksRespectAsync.has(u))return(async()=>{let v=await d.call(l,g);return h.call(l,v)})();let m=d.call(l,g);return h.call(l,m)}:l[f]=(...g)=>{if(l.options.async)return(async()=>{let v=await d.apply(l,g);return v===!1&&(v=await h.apply(l,g)),v})();let m=d.apply(l,g);return m===!1&&(m=h.apply(l,g)),m}}i.hooks=l}if(o.walkTokens){let l=this.defaults.walkTokens,u=o.walkTokens;i.walkTokens=function(f){let d=[];return Vo(d,u.call(this,f)),l&&Vo(d,l.call(this,f)),d}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Pr.lex(t,r??this.defaults)}parser(t,r){return Ar.parse(t,r??this.defaults)}parseMarkdown(t){return(r,o)=>{let i={...o},l={...this.defaults,...i},u=this.onError(!!l.silent,!!l.async);if(this.defaults.async===!0&&i.async===!1)return u(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return u(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(l.hooks&&(l.hooks.options=l,l.hooks.block=t),l.async)return(async()=>{let f=l.hooks?await l.hooks.preprocess(r):r,d=await(l.hooks?await l.hooks.provideLexer(t):t?Pr.lex:Pr.lexInline)(f,l),h=l.hooks?await l.hooks.processAllTokens(d):d;l.walkTokens&&await Promise.all(this.walkTokens(h,l.walkTokens));let g=await(l.hooks?await l.hooks.provideParser(t):t?Ar.parse:Ar.parseInline)(h,l);return l.hooks?await l.hooks.postprocess(g):g})().catch(u);try{l.hooks&&(r=l.hooks.preprocess(r));let f=(l.hooks?l.hooks.provideLexer(t):t?Pr.lex:Pr.lexInline)(r,l);l.hooks&&(f=l.hooks.processAllTokens(f)),l.walkTokens&&this.walkTokens(f,l.walkTokens);let d=(l.hooks?l.hooks.provideParser(t):t?Ar.parse:Ar.parseInline)(f,l);return l.hooks&&(d=l.hooks.postprocess(d)),d}catch(f){return u(f)}}}onError(t,r){return o=>{if(o.message+=`
|
|
111
|
-
Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+sr(o.message+"",!0)+"</pre>";return r?Promise.resolve(i):i}if(r)return Promise.reject(o);throw o}}},Es=new ww;function kt(t,r){return Es.parse(t,r)}kt.options=kt.setOptions=function(t){return Es.setOptions(t),kt.defaults=Es.defaults,u0(kt.defaults),kt};kt.getDefaults=rd;kt.defaults=Ps;function kw(...t){return Es.use(...t),kt.defaults=Es.defaults,u0(kt.defaults),kt}kt.use=kw;kt.walkTokens=function(t,r){return Es.walkTokens(t,r)};kt.parseInline=Es.parseInline;kt.Parser=Ar;kt.parser=Ar.parse;kt.Renderer=qa;kt.TextRenderer=fd;kt.Lexer=Pr;kt.lexer=Pr.lex;kt.Tokenizer=ii;kt.Hooks=sl;kt.parse=kt;kt.options;kt.setOptions;kt.walkTokens;kt.parseInline;Ar.parse;Pr.lex;const S0=48,Yr=(t,r=0)=>{const o=new Int32Array(t.length);for(let i=0;i<t.length;i++)o[i]=t.charCodeAt(i)-S0-r;return o},cu=t=>{const r=new Int32Array(t.length+1);for(let o=0;o<t.length;o++)r[o+1]=r[o]+t[o];return r},Wo=t=>{const r=new Int32Array(t.length);let o=0;for(let i=0;i<t.length;i++){const l=t.charCodeAt(i)-S0;o+=l>>>1^-(l&1),r[i]=o}return r},bw=384,Sw=[],ws=cu(Yr("E0500002005282000000002000150000020021820000011200000003022202000300004200120000200420001200021200301200010400162000010000220021010:2192001200220012000220012000200200200400010200040000000000400200108200110100000022010313000162002000020020012020080213000228200000000082000000000120002000120020020040101020300130001001010")),Rw=cu(Yr(":11111111211111119311546544411119731869:671397415686432441111111111161114151214313433415:78311132233313187211117221449443411141111151152226611131111112212518142224214215421421542142424242516171151615616347111111111197911327451111111111111111111113134714133513411111311111111111111111111112444411111342312715245411117:3")),Ew="@containerabcdefghinlmoprstunderlineviawzccentlignnimatespectuto-colsrowsaglorightnessckdrop-sisbcontrastfiltergrayscalehue-rotateinvertopacityslurrightnessaturateepia-coniclinearpositionradialsizeockurrderttom-belrstxyespacing-xyaretoursorlnt-umnsendspantartainentrasteividerop-shadowurationcorationlay-xyasendillexontromlter-featuresstretchapr-xyayscaleidow-colsrowsue-rotatedentlinesetvert-beringsxyeshadoweiadingftnest-clamp-imageabein-lrstxyskx--b-coniclpositionrsizet-x-y-fromto-fromto-inearfromto-fromto-adialfromto-fromtofromtofromtofromtoblockhinlinew-screenesblockhinlinewbjectpacityrutlinederigin-offsetbelrstxyesrspective-originaceholderioghtng-offsettateundedw-xyz-belrstlreseslr-endspantartaturatecepiahizekewpace-taleroll-xyz-barmpbelrstxyesbelrstxyes-thumbrackadowrink-xyxyartrokeabextora-shadowpckingnsformitionlate-xyz-offsetill-changeoom",Cw=(()=>{const t=ws.length-1,r=new Int32Array(t);for(let l=t-1;l>=0;l--){let u=1,f=l+1;for(let d=ws[l];d<ws[l+1];d++)u+=r[f],f+=r[f];r[l]=u}const o=new Int32Array(ws[t]);let i=0;for(let l=0;l<t;l++){let u=l+1;for(let f=ws[l];f<ws[l+1];f++)o[i++]=u,u+=r[u]}return o})(),Tw=Yr("02000000000000900<=0?000B000F00F00ŏI0J0LNPRTVX0000]_a00000000000000000000000rst0000000zŏ00000000000
ŏ0000000ŏ00000000000000000000000000000000000000000000000000000000000000Ë000000000000000000000Þ000000000000000000ð0000000ø0ùúûüýþÿĀāĂ㥹Ć000000000000000000000000000000000000000000ħ0ĨĪ00000000000000000000ļĽ00000Ŭ000000",1),Iw=cu(Yr("123333359346463635126536711576")),Pw=Yr("93203242332583253248325D>E?F@03263243255B:032523853:0325B:8GA032542H<C=12727B:0328432553;D>E?3257D>032585:0325B:;0328B:032"),Aw=Yr("012113445661666666789111:5;;;;;;;;444;;;:62999<1161=62>>?61:21@ABCD4446996:64E:::;:?::64:F114GHHIHHHHIHH1HH1HH1HHHHHH::EEJ4444::EE4444441691;644444114244444:;K6666555555555555555999666664444444444444444444444226?6:66644L9M?D:111::::6DE199"),Ow=Wo("020200202020020020020020020020200200200200200200200002020202001003040106000200200200200200200200200200200200200200200200200200200200200200200200200200200200020020020020020020002020200202002002002002002002002002002020002002020020200220200200200200200200200200200200020020020000200020002000200200200020020020002000200200200020020202002020202000200200020022000200200020020002002000200220002002000200W0Z00020020002002020002002000200g0j0002002000200200020020002002000200200020020002000200002000002002002002002000200020000200002002002002002002002020020020200200200200200200200200202020020020020020020020020002002002020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020002002002002002002000200200200200200200200200200020202020002000200020002002002002000020200200"),Mw=(()=>{const t=new Int32Array(319).fill(-1),r=Wo("02422242:222222242224222242442222222422222244442242226224222426222422442462222422622222222626222462242622422622422424242422222222422222222242422222222222222222622442224222222222222224424442262222222222222222222226224222424242422224422422422222"),o=Wo("02222222222222222222202222222222222222222222221422222222222222222222222222222222222Y\\222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222221422222222222222222222222222222222222222Ŀł222222222222222222");for(let i=0;i<r.length;i++)t[r[i]]=o[i];return t})(),Lw="container |break-after- all auto avoid avoid-page column left page right|break-before- all auto avoid avoid-page column left page right|break-inside-a uto void void-column void-page|box-decoration- clone slice|box- border content| contents flow-root hidden table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group| not-sr-only sr-only|float- end left none right start|clear- both end left none right start|isolat e ion-auto|overflow- auto clip hidden scroll visible|overflow-x- auto clip hidden scroll visible|overflow-y- auto clip hidden scroll visible|overscroll- auto contain none|overscroll-x- auto contain none|overscroll-y- auto contain none| absolute fixed relative static sticky| collapse invisible visible|justify- around baseline between center center-safe end end-safe evenly normal start stretch|justify-items- center center-safe end end-safe normal start stretch|justify-self- auto center center-safe end end-safe start stretch|items- baseline baseline-last center center-safe end end-safe start stretch|self- auto baseline baseline-last center center-safe end end-safe start stretch|place-content- around baseline between center center-safe end end-safe evenly start stretch|place-items- baseline center center-safe end end-safe start stretch|place-self- auto center center-safe end end-safe start stretch| antialiased subpixel-antialiased| italic not-italic|normal-nums |ordinal |slashed-zero | lining-nums oldstyle-nums| proportional-nums tabular-nums| diagonal-fractions stacked-fractions| no-underline overline| capitalize lowercase normal-case uppercase|truncate |whitespace- break-spaces normal nowrap pre pre-line pre-wrap|break- all keep normal words|wrap- anywhere break-word normal|hyphens- auto manual none|mix-blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay plus-darker plus-lighter saturation screen soft-light|table- auto fixed|caption- bottom top|backface- hidden visible|appearance- auto none|scheme- dark light light-dark normal only-dark only-light|field-sizing- content fixed|pointer-events- auto none|resize -none -x -y|snap- align-none center end start|snap- always normal|snap- both none x y|snap- mandatory proximity|touch- auto manipulation none|touch-pan- left right x|touch-pan- down up y|touch-pinch-zoom |select- all auto none text|forced-color-adjust- auto none| normal size| baseline bottom middle sub super text-bottom text-top top| bounce none ping pulse spin| auto square video| auto fr max min px|none | auto full px| fixed local scroll|clip- border content padding text|origin- border content padding| bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| no-repeat repeat repeat-round repeat-space repeat-x repeat-y| auto contain cover| gradient-to-b gradient-to-bl gradient-to-br gradient-to-l gradient-to-r gradient-to-t gradient-to-tl gradient-to-tr none|blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay saturation screen soft-light|to- b bl br l r t tl tr| auto dvh fit full lh lvh max min px screen svh| dashed dotted double hidden none solid| collapse separate|px |auto |full | content none strict| inline-size size|layout |paint |style | around baseline between center center-safe end end-safe evenly normal start stretch| alias all-scroll auto cell col-resize context-menu copy crosshair default e-resize ew-resize grab grabbing help move n-resize ne-resize nesw-resize no-drop none not-allowed ns-resize nw-resize nwse-resize pointer progress row-resize s-resize se-resize sw-resize text vertical-text w-resize wait zoom-in zoom-out| dashed dotted double solid wavy| auto from-font|reverse |initial | in in-out initial linear out| col col-reverse row row-reverse| nowrap wrap wrap-reverse| auto initial none| black bold extrabold extralight light medium normal semibold thin| condensed expanded extra-condensed extra-expanded normal semi-condensed semi-expanded ultra-condensed ultra-expanded|flow- col col-dense dense row row-dense| none subgrid| auto dvh dvw fit full lh lvh lvw max min px screen svh svw| block flex grid table| auto dvw fit full lvw max min px screen svw| loose none normal px relaxed snug tight|through |item | inside outside| decimal disc none| auto px| clip-border clip-content clip-fill clip-padding clip-stroke clip-view no-clip| add exclude intersect subtract| alpha luminance match|origin- border content fill padding stroke view|type- alpha luminance| circle ellipse| closest-corner closest-side farthest-corner farthest-side|at- bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| dvh fit full lh lvh max min none px screen svh| auto dvh dvw fit full lh lvh lvw max min none px screen svh svw| dvw fit full lvw max min none px screen svw| auto dvh dvw fit full lvh lvw max min none prose px svh svw| auto dvh dvw fit full lvh lvw max min none px screen svh svw| contain cover fill none scale-down| first last none| distant dramatic midrange near none normal|inset | full none|3d | auto smooth|gutter- auto both stable| auto none thin| inner none| auto dvh dvw fit full lvh lvw max min px svh svw|base | center end justify left right start| clip ellipsis| balance nowrap pretty wrap| normal tight tighter wide wider widest| cpu gpu none| 3d flat| all colors none opacity shadow transform| discrete normal| full px| auto dvh dvw fit full lvh lvw max min px screen svh svw| auto contents scroll transform".split("|").map(t=>{const r=t.split(" "),o=r.shift();for(let i=0;i<r.length;i++)r[i]=o+r[i];return r}),_g=Wo("0000000000000000000000000000000000000000000000000000000000000262242:6@200000006:240B428:4422400002046044222426220026642642462026224222824220022400000000\\00N222422242222222224062242222222422226264222422222222222222442804222422222222222222222222220<4<0204260002444020204224422"),Nw=Wo("ɠ222222222222222222222222222222222222222222222222222222222222˕4222226>ʶ22ʷʺʷ2ʸʷ42ʴ2ʓ22>621422ɶ222ɹɼɷɺɷɺ22ɱ42222ɨ2ɧ26622ɘɓ244ƸƵ222]d24242ǖǓƚÄȫ2263ȨȥȨ2222222ǣ222222222222222222ǂƽ2ƾƵ2222222422222ƜƑ22222222222222222222144Ŧţ22Ţş222222222222222222222ĸ2ı68ĦģĦɡŰ4Ġ«®ĝ822ĔđĔ2ē2222622"),_w=Wo("02222222222222222222222222222222222222222222222222222222222222222202022222222222EH2200IL021042222Y\\222IL0cf2e10j2222U00X202[^2y0000120|{~22
:22|22222222222G000qOVI00000}2>40000B00000I¨©000¬00000000000000021M®00°000000000000000000000222HGHa1º222¿2À2222ÉÌ000°2±"),R0=new Int32Array(995),E0=new Int32Array(995),C0=new Int32Array(995);let Lf="";const Nf=new Int32Array(1038);{const t=new Map;let r=0,o=0;for(let i=0;i<_g.length;i++)for(const l of Lw[_w[i]]){let u=t.get(l);u===void 0&&(u=r++,t.set(l,u),Nf[u*2]=Lf.length,Nf[u*2+1]=l.length,Lf+=l),R0[o]=_g[i],E0[o]=Nw[i],C0[o]=u,o++}}const Dw=Wo("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"),Fw=cu(Yr("1::24444432:442:44:44>222222:44:4421322511111311111114")),zw=Wo("24A;33N=C@H4A;33N=C@<27;83:;8393NQ:3NQʰ222ˉºŴŽ2R2=18cƴÅŇ=cĞÛC1ƈǝȈ:ħ25=11D3A@4=<1;1DEr25;11B3?<6;:371BCn9@7=<8192>2E121@9@EHE@9>2T25511<398454131<=V25511<398454131<=ƧNž2Đå242L222290000f22500ɛ000ǘ222"),jw=Yr("ij"),$w=Yr(""),Vw=Yr("1");var Bw={GROUP_COUNT:bw,customValidatorNames:Sw,edgeStart:ws,labelStart:Rw,labelText:Ew,edgeTarget:Cw,nodeGroup:Tw,nodeVlist:Mw,vlistPat:Iw,vlistOps:Pw,vlistRef:Aw,vlistGroup:Ow,litAnchor:R0,litGroup:E0,litPool:C0,poolOffsets:Nf,poolText:Lf,adjGid:Dw,adjStart:Fw,adjTgt:zw,patGid:jw,patTgt:$w,postfixLookupGroups:Vw,orderSensitiveModifiers:"* ** after backdrop before details-content file first-letter first-line marker placeholder selection"};const Hw="line"in new Error,jr=-1,ys=-1,cf=(t,r,o)=>{let i=2166136261;for(let l=r;l<o;l++)i=Math.imul(i^t.charCodeAt(l),16777619);return i},Ba=(t,r,o)=>{const i=o-r;let l=Math.imul(i,2654435761)^t.charCodeAt(r);if(i>3){const u=i>>2,f=i>>1;l=Math.imul(l^t.charCodeAt(r+1)<<8^t.charCodeAt(r+2)<<16^t.charCodeAt(r+u),2246822507),l=Math.imul(l^t.charCodeAt(r+f)<<8^t.charCodeAt(r+f+u)<<16^t.charCodeAt(o-3),3266489909),l^=t.charCodeAt(o-2)<<8^t.charCodeAt(o-1)<<16;for(let d=r+3,h=o-4;d<r+8&&d<h;d++,h--)l=Math.imul(l^t.charCodeAt(d)^t.charCodeAt(h)<<8,16777619)}return l^l>>>15|0},Uw=(t,r,o={})=>{const{GROUP_COUNT:i,edgeStart:l,labelStart:u,labelText:f,edgeTarget:d,nodeGroup:h,nodeVlist:g,vlistPat:m,vlistOps:v,vlistRef:x,vlistGroup:R,litAnchor:w,litGroup:E,litPool:b,poolOffsets:C,poolText:S,adjGid:P,adjStart:T,adjTgt:A,patGid:O,patTgt:D,postfixLookupGroups:j,customValidatorNames:z,orderSensitiveModifiers:N}=t,G=new Int32Array(i).fill(-1);for(let te=0;te<P.length;te++)G[P[te]]=te;let X=0;for(let te=0;te+1<T.length;te++){const ue=T[te+1]-T[te];ue>X&&(X=ue)}let W=32;for(;W<2*(1+X+O.length);)W<<=1;const Y=new Int32Array(x.length+1);for(let te=0;te<x.length;te++)Y[te+1]=Y[te]+m[x[te]+1]-m[x[te]];const L=new Uint8Array(i);for(let te=0;te<j.length;te++)L[j[te]]=1;const Q=l.length-1,ie=new Uint8Array(Q);let $=0,H=!0;for(let te=0;te<w.length;te++){ie[w[te]]=1;const ue=C[b[te]*2+1];ue>$&&($=ue);const ye=S.charCodeAt(C[b[te]*2]);(ye===91||ye===40)&&(H=!1)}let B=1;for(;B<w.length*2;)B<<=1;const I=new Int32Array(B).fill(-1);for(let te=0;te<w.length;te++){const ue=C[b[te]*2];let ye=(cf(S,ue,ue+C[b[te]*2+1])^Math.imul(w[te],2654435761)|0)&B-1;for(;I[ye]!==-1;)ye=ye+1&B-1;I[ye]=te}const F=(te,ue,ye,je)=>{let Ze=(cf(ue,ye,je)^Math.imul(te,2654435761)|0)&B-1;const Ge=je-ye;for(;;){const it=I[Ze];if(it===-1)return-1;if(w[it]===te&&C[b[it]*2+1]===Ge){const Rt=C[b[it]*2];let yt=!0;for(let Be=0;Be<Ge;Be++)if(S.charCodeAt(Rt+Be)!==ue.charCodeAt(ye+Be)){yt=!1;break}if(yt)return E[it]}Ze=Ze+1&B-1}},q=o.cacheSize??8192,K=o.prefix??t.prefix??"",re=K===""?"":K+":",J=re.length,ne=(z??[]).map(te=>{throw new Error("cn: missing validator "+te)}),ae=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,le=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,me=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ce=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;let be=0,Ae=-1,we=-1,Se=-1,ze=-1;const Ve=te=>te>=97&&te<=122||te>=65&&te<=90||te>=48&&te<=57||te===95,qe=te=>/\s/.test(String.fromCharCode(te)),Te=(te,ue,ye)=>{if(be=0,Ae=-1,ye-ue<3)return;const je=te.charCodeAt(ue),Ze=te.charCodeAt(ye-1);if(je===91&&Ze===93)be=1;else if(je===40&&Ze===41)be=2;else return;Se=ue+1,ze=ye-1;let Ge=ue+1;if(Ve(te.charCodeAt(Ge))){for(Ge++;Ge<ye-1;){const it=te.charCodeAt(Ge);if(!Ve(it)&&it!==45)break;Ge++}Ge<ye-2&&te.charCodeAt(Ge)===58&&(Ae=ue+1,we=Ge,Se=Ge+1)}},Fe=(te,ue,ye,je)=>{if(ye-ue!==je.length)return!1;for(let Ze=0;Ze<je.length;Ze++)if(te.charCodeAt(ue+Ze)!==je.charCodeAt(Ze))return!1;return!0},ge=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,We=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lt=te=>!!te&&!Number.isNaN(Number(te)),ft=(te,ue,ye)=>{if(ye-ue<11||!Fe(te,ue,ue+10,"@container"))return!1;if(te.charCodeAt(ue+10)===47)return ye-ue>=12;const je=te.charCodeAt(ue+11);return je===115&&ye-ue>=17&&Fe(te,ue+10,ue+16,"-size/")||je===110&&ye-ue>=19&&Fe(te,ue+10,ue+18,"-normal/")},se=[1,1,1,1,1,1,1,1,2,2,2,2,2,2,2],fe="length|number|number weight|family-name|position percentage|length size bg-size|image url|shadow|length|family-name|position percentage|length size bg-size|image url|shadow|number weight".split("|").map(te=>te.split(" ")),Me=[2,3,1,0,0,0,4,5,0,0,0,0,0,1,1],he=(te,ue,ye,je)=>{if(te>=10){if(te>=25)return ne[te-25](ue.slice(ye,je));const Ze=te-10;if(be!==se[Ze])return!1;if(Ae>=0){for(const Ge of fe[Ze])if(Fe(ue,Ae,we,Ge))return!0;return!1}switch(Me[Ze]){case 0:return!1;case 1:return!0;case 2:{const Ge=ue.slice(Se,ze);return ae.test(Ge)&&!le.test(Ge)}case 3:return lt(ue.slice(Se,ze));case 4:return Ce.test(ue.slice(Se,ze));default:return me.test(ue.slice(Se,ze))}}switch(te){case 0:return!0;case 1:return be===0;case 2:return be===1;case 3:return be===2;case 4:return ge.test(ue.slice(ye,je));case 5:return lt(ue.slice(ye,je));case 6:{const Ze=ue.slice(ye,je);return!!Ze&&Number.isInteger(Number(Ze))}case 7:return je>ye&&ue.charCodeAt(je-1)===37&<(ue.slice(ye,je-1));case 8:return We.test(ue.slice(ye,je));default:return ft(ue,ye,je)}},Le=new Set(typeof N=="string"?N.split(" "):N),Ke=(te,ue,ye,je,Ze,Ge)=>{const it=cf(ue,ye,je)^(Ze?2654435769:0)|0;let Rt=te.get(it);if(Rt!==void 0)e:for(let Re=0;Re<Rt.length;Re++){const at=Rt[Re];if(!(at.imp!==Ze||at.k.length!==je-ye)){for(let Ut=0;Ut<at.k.length;Ut++)if(at.k.charCodeAt(Ut)!==ue.charCodeAt(ye+Ut))continue e;return at.id}}else te.set(it,Rt=[]);const yt=ue.slice(ye,je),Be=Ge(yt);return Rt.push({k:yt,imp:Ze,id:Be}),Be};let et=new Map,rt=new Map,Ft=2;const Lt=4096,_n=(te,ue)=>{const ye=[];let je=0,Ze=0,Ge=0;for(let Be=0;Be<te.length;Be++){const Re=te.charCodeAt(Be);je===0&&Ze===0&&Re===58?(ye.push(te.slice(Ge,Be)),Ge=Be+1):Re===91?je++:Re===93?je--:Re===40?Ze++:Re===41&&Ze--}ye.push(te.slice(Ge));let it=ye[0];if(ye.length>1){const Be=[];let Re=[];for(const at of ye)at.charCodeAt(0)===91||Le.has(at)?(Re.length&&(Be.push(...Re.sort()),Re=[]),Be.push(at)):Re.push(at);Re.length&&Be.push(...Re.sort()),it=Be.join(":")}const Rt=ue?it+" !":it;let yt=rt.get(Rt);return yt===void 0&&rt.set(Rt,yt=Ft++),yt};let Jt=new Map,en=i;const Xt=i+4096,qt=()=>en++,Cn=2097152,St=8192,sn=new Int32Array(St),xt=new Array(St).fill(null),tn=new Int32Array(St),Tn=new Int32Array(St),Gn=new Uint8Array(St);let Qe=0;const Ct=(te,ue,ye,je,Ze,Ge,it,Rt)=>{let yt=te;if(xt[te]!==null)if(xt[te|1]===null)yt=te|1;else if((Qe++&3)===0)yt=te|Qe>>2&1;else return;xt[yt]=ue.slice(ye,je),sn[yt]=Ze,tn[yt]=Ge,Tn[yt]=it,Gn[yt]=Rt},Nt=()=>xt.fill(null);let gt=256,Bt=[new Int32Array(gt),new Int32Array(gt),new Int32Array(gt),new Int32Array(gt)],[Tt,Ye,ot,Ht]=Bt,At=new Uint8Array(gt),It=new Uint8Array(gt);const Xn=()=>{gt*=2,Bt=Bt.map(ue=>{const ye=new Int32Array(gt);return ye.set(ue),ye}),[Tt,Ye,ot,Ht]=Bt;const te=new Uint8Array(gt);te.set(At),At=te,It=new Uint8Array(gt)};let wn=64,In=new Int32Array(wn),ln=new Int32Array(wn);const lr=new Int32Array(i);let Dn=2048,es=21,Xr=new Float64Array(Dn),Or=new Int32Array(Dn),wr=0;const Os=(te,ue)=>{if(te===0&&ue<i)return lr[ue]===wr?1:(lr[ue]=wr,0);const ye=te*2097152+ue+1;let je=Math.imul(ye,2654435761)>>>es;for(;Or[je]===wr;){if(Xr[je]===ye)return 1;je=je+1&Dn-1}return Xr[je]=ye,Or[je]=wr,0},Ms=(te,ue,ye,je,Ze)=>{if(ye-ue>=2&&te.charCodeAt(ue)===91&&te.charCodeAt(ye-1)===93){let Ge=-1;for(let it=ue+1;it<ye-1;it++)if(te.charCodeAt(it)===58){Ge=it;break}return Ge===-1||Ge===ue+1?jr:Ke(Jt,te,ue+1,Ge,0,qt)}if(je>=0&&h[je]>=0)return h[je];for(let Ge=Ze-1;Ge>=0;Ge--){const it=ln[Ge];if(it>ye)continue;const Rt=In[Ge],yt=ye-it;if(ie[Rt]===1&&yt>0&&yt<=$){const Kt=te.charCodeAt(it);if(H===!1||Kt!==91&&Kt!==40){const br=F(Rt,te,it,ye);if(br>=0)return br}}const Be=g[Rt];if(Be<0)continue;const Re=x[Be],at=m[Re],Ut=m[Re+1];if(at===Ut)continue;Te(te,it,ye);const Zt=Y[Be]-at;for(let Kt=at;Kt<Ut;Kt++)if(he(v[Kt],te,it,ye))return R[Zt+Kt]}return jr},Ls=te=>{const ue=te.length;let ye=0,je=0,Ze=!1;(Ft>Lt||et.size>Lt)&&(et=new Map,rt=new Map,Ft=2,Nt()),en>Xt&&(Jt=new Map,en=i,Nt());let Ge=0;for(;Ge<ue;){let Be=te.charCodeAt(Ge);if(Be===32||Be>=9&&Be<=13||Be>=160&&qe(Be)){Be!==32&&(Ze=!0),Ge++;continue}const Re=Ge;let at=0;for(;Ge<ue;){if(Be=te.charCodeAt(Ge),Be<=32){if(Be===32)break;if(Be>=9&&Be<=13){Ze=!0;break}}else if(Be>=160&&qe(Be)){Ze=!0;break}at=Math.imul(at^Be,16777619),Ge++}const Ut=Ge,Zt=Ut-Re;ye===gt&&Xn();const Kt=ye++;Tt[Kt]=Re,Ye[Kt]=Ut,je+=Zt,at^=Math.imul(Zt,2654435761);const br=at^at>>>15|0,qn=br&8190;{let ht=-1;if(sn[qn]===br&&xt[qn]!==null&&xt[qn].length===Zt?ht=qn:sn[qn|1]===br&&xt[qn|1]!==null&&xt[qn|1].length===Zt&&(ht=qn|1),ht>=0){const $n=xt[ht];let un=!0;for(let er=0;er<Zt;er++)if($n.charCodeAt(er)!==te.charCodeAt(Re+er)){un=!1;break}if(un){ot[Kt]=tn[ht],Ht[Kt]=Tn[ht],At[Kt]=Gn[ht];continue}}}let Lr=Re;if(J!==0){if(Ut-Re<=J||!te.startsWith(re,Re)){ot[Kt]=jr,Ct(qn,te,Re,Ut,br,jr,0,0);continue}Lr=Re+J}let bo=0,ar=0,zn=-1,ur=-1;for(let ht=Lr;ht<Ut;ht++){const $n=te.charCodeAt(ht);if(bo===0&&ar===0){if($n===58){zn=ht;continue}if($n===47){ur=ht;continue}}$n===91?bo++:$n===93?bo--:$n===40?ar++:$n===41&&ar--}const So=zn>=Lr?zn+1:Lr;let an=So,Yt=Ut,ns=!1,Ei=0;Yt>an&&te.charCodeAt(Yt-1)===33?(ns=!0,Yt--):Yt>an&&te.charCodeAt(an)===33&&(ns=!0,an++,Ei=1);let Zn=-1;ur>So&&(Zn=ur+Ei,Zn>=Yt&&(Zn=-1));let Ci=an;Yt-an>1&&te.charCodeAt(an)===45&&(Ci=an+1);let Qn=0,Jn=0,Zr=0,El=-1,kn=0;(g[0]>=0||ie[0]===1)&&(In[0]=0,ln[0]=Ci,kn=1);let Qr=ys,Nr=0;for(let ht=Ci;ht<Yt;ht++)if(ht===Zn&&(Qr=Jn<Zr?ys:Qn,Nr=kn),Qn!==ys){const $n=te.charCodeAt(ht);let un=-1;if(Jn<Zr)f.charCodeAt(Jn)===$n?(Jn++,Jn===Zr&&(un=Qn=El)):Qn=ys;else{const er=l[Qn],Jr=l[Qn+1];let Ds=ys;for(let cr=er;cr<Jr;cr++){const Co=u[cr];if(f.charCodeAt(Co)===$n){u[cr+1]-Co===1?un=Ds=d[cr]:(Jn=Co+1,Zr=u[cr+1],El=d[cr],Ds=Qn);break}}Qn=Ds}if(un>=0&&(g[un]>=0||ie[un]===1)&&ht+1<Yt&&te.charCodeAt(ht+1)===45){if(kn===wn){wn*=2;const er=new Int32Array(wn);er.set(In),In=er;const Jr=new Int32Array(wn);Jr.set(ln),ln=Jr}In[kn]=un,ln[kn]=ht+2,kn++}}Zn===Yt&&(Qr=Jn<Zr?ys:Qn,Nr=kn);const Ro=Jn<Zr?ys:Qn;let jn,_s=!1;if(Zn>=0)if(_s=!0,jn=Ms(te,an,Zn,Qr,Nr),jn!==jr&&jn<i&&L[jn]){const ht=Ms(te,an,Yt,Ro,kn);ht!==jr&&ht!==jn&&(jn=ht,_s=!1)}else jn===jr&&(jn=Ms(te,an,Yt,Ro,kn),_s=!1);else jn=Ms(te,an,Yt,Ro,kn);let rs=0,Eo=0;jn===jr?ot[Kt]=jr:(Eo=_s?1:0,rs=Lr>=zn?ns?1:0:Ke(et,te,Lr,zn,ns?1:0,ht=>_n(ht,ns)),ot[Kt]=jn,At[Kt]=Eo,Ht[Kt]=rs),Ct(qn,te,Re,Ut,br,jn,rs,Eo)}if(ye===0)return"";if(ye===1)return Tt[0]===0&&Ye[0]===ue?te:te.slice(Tt[0],Ye[0]);if(ye*W>Dn){for(;ye*W>Dn;)Dn<<=1,es--;Xr=new Float64Array(Dn),Or=new Int32Array(Dn)}if(Ft>=Cn||en>=Cn)throw new Error("cn: too many distinct classes in one merge");wr=wr+1|0,wr===0&&(lr.fill(0),Or.fill(0),wr=1);let it=!1;for(let Be=ye-1;Be>=0;Be--){const Re=ot[Be];if(Re===jr){It[Be]=1;continue}const at=Ht[Be];if(Os(at,Re)===1){It[Be]=0,it=!0;continue}if(It[Be]=1,Re<i){const Ut=G[Re];if(Ut>=0)for(let Zt=T[Ut];Zt<T[Ut+1];Zt++)Os(at,A[Zt]);if(At[Be]&1)for(let Zt=0;Zt<O.length;Zt++)O[Zt]===Re&&Os(at,D[Zt])}}if(!it&&!Ze&&ue===je+ye-1)return te;let Rt="",yt=0;for(;yt<ye;){if(!It[yt]){yt++;continue}const Be=Tt[yt];let Re=Ye[yt],at=yt+1;for(;at<ye&&It[at]&&Tt[at]===Re+1&&te.charCodeAt(Re)===32;)Re=Ye[at],at++;Rt.length>0&&(Rt+=" "),Rt+=te.slice(Be,Re),yt=at}return Rt},mt=16384,kr=new Int32Array(mt*2);let wo=0,Fn=1,Mr=Object.create(null),Rl=Object.create(null),qr=new Map,ts=new Map,Pn=0,Ns=0;const gn=()=>{wo^=mt,Fn=Fn+1|0,Ns=0},Au=te=>{let ue=Mr[te];if(ue!==void 0)return ue;const ye=Ba(te,0,te.length),je=(ye&16383)+wo,Ze=kr[je]===(ye^Fn)||kr[je^mt]===(ye^Fn-1);return Ze&&(ue=Rl[te],ue!==void 0)?(Mr[te]=ue,ue):(ue=Ls(te),Ze?(Mr[te]=ue,++Pn>q&&(Pn=0,Rl=Mr,Mr=Object.create(null),gn())):(kr[je]=ye^Fn,++Ns>mt&&gn()),ue)},Ou=te=>{let ue=qr.get(te);if(ue!==void 0)return ue;const ye=Ba(te,0,te.length),je=(ye&16383)+wo,Ze=kr[je]===(ye^Fn)||kr[je^mt]===(ye^Fn-1);return Ze&&(ue=ts.get(te),ue!==void 0)?(qr.set(te,ue),ue):(ue=Ls(te),Ze?(qr.set(te,ue),++Pn>q&&(Pn=0,ts=qr,qr=new Map,gn())):(kr[je]=ye^Fn,++Ns>mt&&gn()),ue)},Mu=te=>{const ue=Ba(te,0,te.length),ye=(ue&16383)+wo;return kr[ye]===(ue^Fn)||kr[ye^mt]===(ue^Fn-1)?!0:(kr[ye]=ue^Fn,++Ns>mt&&gn(),!1)},ko=q===0?Ls:Hw?te=>{const ue=qr.get(te);return ue!==void 0?ue:Ou(te)}:Au;return{merge:function(){return arguments.length===1&&typeof arguments[0]=="string"?ko(arguments[0]):ko(Kw.apply(null,arguments))},mergeString:ko,seenBefore:q===0?()=>!1:Mu,mergeUncached:Ls}},Za=(t,r)=>{if(!t)return"";if(typeof t=="string")return t;let o="";if(typeof t.length=="number"&&(!r||Array.isArray(t))){const i=t;for(let l=0;l<i.length;l++){const u=i[l];if(!u)continue;const f=typeof u=="string"?u:Za(u,r);f&&(o&&(o+=" "),o+=f)}return o}if(r){if(typeof t=="number")return""+t;if(typeof t=="object")for(const i in t)t[i]&&(o&&(o+=" "),o+=i)}return o},Ww=(t,r)=>{let o="";for(let i=0;i<t.length;i++){const l=t[i];if(!l)continue;const u=typeof l=="string"?l:Za(l,r);u&&(o&&(o+=" "),o+=u)}return o},Kw=function(){return Ww(arguments,!1)},Yw=256,Dg=16,Gw=1024,ff=4096,Xw=(t,r)=>{const o=r===void 0?()=>!0:r.seenBefore,i=r===void 0?t:r.mergeUncached;let l=new Map,u=new Map,f=0,d=null,h=null,g=[],m=[],v=0;const x=(C,S,P)=>{h===null&&(h=new Array(ff).fill(""),g=new Array(ff).fill(""),m=new Array(ff).fill(""));const T=Ba(C,0,C.length)&4094;if(h[T]===C&&g[T]===S)return m[T];if(h[T|1]===C&&g[T|1]===S)return m[T|1];const A=t(P?S+" "+C:C),O=h[T]===""?T:T|(h[T|1]===""?1:v++&1);return h[O]=C,g[O]=S,m[O]=A,A},R=(C,S,P,T)=>{let A=0;if(S){if(S!==C.a0)return!1;A=1}if(P){if(P!==(A===0?C.a0:C.a1))return!1;A++}if(T){if(T!==(A===0?C.a0:A===1?C.a1:C.a2))return!1;A++}return A===C.t},w=(C,S)=>{const P=C.a;let T=0;for(let A=0;A<S.length;A++){const O=S[A];if(O){if(O!==P[T])return!1;T++}}return T===C.t},E=(C,S)=>{const P=C.length,T=d===null?null:d.n;if(!S){if(T!==null&&w(T,C))return d=T,T.r;if(d!==null&&d!==T&&w(d,C))return d.r}let A="",O=-1,D=0,j=!1;for(let G=0;G<P;G++){let X=C[G];if(X){if(typeof X!="string"){if(X=C[G]=Za(X,!0),!X)continue;j=!0}O<0&&(A=X,O=G),D++}}if(D===0)return"";if(D===1)return t(A);if(j){if(T!==null&&w(T,C))return d=T,T.r;if(d!==null&&d!==T&&w(d,C))return d.r}let z=l.get(A);z===void 0&&(z=u.get(A),z!==void 0&&l.set(A,z));let N=null;if(z!==void 0){if(z.skip>0){z.skip--,d=null;let X=A;for(let W=O+1;W<P;W++){const Y=C[W];Y&&(X+=" "+Y)}return x(X,"",!1)}const G=z.e;e:for(let X=0;X<G.length;X++){const W=G[X];if(W.t!==D)continue;const Y=W.a;let L=1;for(let Q=O+1;Q<P;Q++){const ie=C[Q];if(ie&&ie!==Y[L++])continue e}N=W;break}N!==null&&(z.miss=0)}if(N===null){let G=A;const X=[A];for(let Y=O+1;Y<P;Y++){const L=C[Y];L&&(G+=" "+L,X.push(L))}if(!o(G))return i(G);N={r:t(G),t:X.length,a0:X[0],a1:X[1],a2:X[2]??"",a:X,n:null},z===void 0?l.set(A,z={e:[],miss:0,skip:0,at:0}):++z.miss>Dg&&(z.miss=Dg,z.skip=Gw,z.e.length=0,z.at=0);const W=z.e;W.length<Yw?W.push(N):(W[z.at]=N,z.at=z.at+1&255),++f>1e3&&(f=0,u=l,l=new Map)}return d!==null&&d!==N&&(d.n=N),d=N,N.r},b=C=>Array.isArray(C)?E(C.slice(),!1):t(Za(C,!0));return function(C,S,P){const T=arguments.length;if((T|1)===3){const D=d;if(D!==null){const j=D.n;if(j!==null&&R(j,C,S,P))return d=j,j.r;if(D!==j&&R(D,C,S,P))return D.r}if(T===2&&typeof S=="string"&&S!==""){const j=l.get(C);if(j!==void 0&&j.skip>0)return j.skip--,d=null,x(S,C,!0)}return E([C,S,P],!0)}if(T===1)return typeof C=="string"?t(C):b(C);const A=d;if(A!==null){const D=A.n;if(D!==null){const j=D.a;let z=0,N=!0;for(let G=0;G<T;G++){const X=arguments[G];if(X){if(X!==j[z]){N=!1;break}z++}}if(N&&z===D.t)return d=D,D.r}if(A!==D){const j=A.a;let z=0,N=!0;for(let G=0;G<T;G++){const X=arguments[G];if(X){if(X!==j[z]){N=!1;break}z++}}if(N&&z===A.t)return A.r}}const O=[];for(let D=0;D<T;D++)O.push(arguments[D]);return E(O,!0)}},Fg=Uw(Bw),De=Xw(Fg.mergeString,Fg);function vn(t,r,o){const i=t[r];return i!==void 0?i:(console.warn(`[kumo] Unknown variant "${r}". Expected one of: ${Object.keys(t).join(", ")}. Falling back to "${o}".`),t[o])}const qw=Symbol.for("react.lazy");function Zw(t){return typeof t=="object"&&t!==null&&t.$$typeof===qw}function Qw(t){return typeof t=="object"&&t!==null&&typeof t.then=="function"}function T0(t){if(!Zw(t))return t;let r;try{r=go.Children.toArray(t)[0]}catch(o){if(Qw(o))throw o;return t}return go.isValidElement(r)?r:t}const Jw="inline-flex w-fit flex-none shrink-0 items-center justify-self-start gap-1 rounded-full px-2 py-0.5 text-xs/4 font-medium whitespace-nowrap [a:hover_&]:ring [a:hover_&]:ring-current",_f={variant:{primary:{classes:"bg-kumo-badge-inverted text-kumo-badge-inverted",description:"Primary badge"},secondary:{classes:"bg-kumo-fill text-kumo-badge-neutral-subtle",description:"Secondary badge"},error:{classes:"bg-kumo-danger-tint text-kumo-danger",description:"Error badge"},warning:{classes:"bg-kumo-warning-tint text-kumo-warning",description:"Warning badge"},success:{classes:"bg-kumo-success-tint text-kumo-success",description:"Success badge"},destructive:{classes:"bg-kumo-badge-red text-white",description:"Deprecated. Use red instead."},info:{classes:"bg-kumo-info-tint text-kumo-info",description:"Info badge"},beta:{classes:"border border-dashed border-kumo-brand bg-transparent text-kumo-link",description:"Indicates beta or experimental features"},outline:{classes:"border border-kumo-fill bg-kumo-base text-kumo-default",description:"Bordered badge with base background"},red:{classes:"bg-kumo-badge-red text-white",description:"Red badge"},green:{classes:"bg-kumo-badge-green text-white",description:"Green badge"},neutral:{classes:"bg-kumo-badge-neutral text-white",description:"Neutral badge"},orange:{classes:"bg-kumo-badge-orange text-black",description:"Orange badge"},purple:{classes:"bg-kumo-badge-purple text-white",description:"Purple badge"},teal:{classes:"bg-kumo-badge-teal text-white",description:"Teal badge"},"teal-subtle":{classes:"bg-kumo-badge-teal-subtle text-kumo-badge-teal-subtle",description:"Subtle teal badge"},blue:{classes:"bg-kumo-badge-blue text-white",description:"Blue badge"}},appearance:{filled:{classes:"",description:"Filled badge with background color (default)"},dot:{classes:"gap-1.5 bg-transparent text-kumo-default ring ring-kumo-hairline",description:"Outlined badge with a colored circle dot indicating status"}},dotColor:{none:{classes:"",description:"No dot indicator (used when appearance is not dot, or variant has no dot color)"},success:{classes:"bg-kumo-success",description:"Green dot for success status"},warning:{classes:"bg-kumo-badge-orange",description:"Orange dot for warning status"},error:{classes:"bg-kumo-badge-red",description:"Red dot for error status"},neutral:{classes:"bg-kumo-badge-neutral",description:"Neutral dot for informational status"}}},bs={variant:"primary",appearance:"filled",dotColor:"none"};function ek({variant:t=bs.variant,appearance:r=bs.appearance}={}){const o=vn(_f.variant,t,bs.variant).classes,i=vn(_f.appearance,r,bs.appearance).classes;return De(Jw,r==="dot"?"":o,i)}const tk=t=>{const r=T0(t);if(!r)return null;const o=r,i=go.isValidElement(r)?r:_.jsx(o,{});return _.jsx("span",{className:"flex h-lh w-3 shrink-0 items-center justify-center [&>svg]:size-3",children:i})};function df({variant:t=bs.variant,appearance:r=bs.appearance,className:o,icon:i,children:l}){const u=r==="dot"?vn(_f.dotColor,t,bs.dotColor).classes:"";return _.jsxs("span",{"data-kumo-component":"Badge",className:De(ek({variant:t,appearance:r}),i&&"pl-1.5",o),children:[u?_.jsx("span",{"aria-hidden":"true",className:De("size-1.75 shrink-0 rounded-full",u)}):null,tk(i),l]})}const nk=y.forwardRef(function({to:r,href:o,...i},l){return _.jsx("a",{ref:l,href:o??r??void 0,...i})}),rk=y.createContext(nk);function I0(){return y.useContext(rk)}const zg={};function hn(t,r){const o=y.useRef(zg);return o.current===zg&&(o.current=t(r)),o}function Cs(t,r,o,i){const l=hn(P0).current;return sk(l,t,r,o,i)&&A0(l,[t,r,o,i]),l.callback}function ok(t){const r=hn(P0).current;return ik(r,t)&&A0(r,t),r.callback}function P0(){return{callback:null,cleanup:null,refs:[]}}function sk(t,r,o,i,l){return t.refs[0]!==r||t.refs[1]!==o||t.refs[2]!==i||t.refs[3]!==l}function ik(t,r){return t.refs.length!==r.length||t.refs.some((o,i)=>o!==r[i])}function A0(t,r){if(t.refs=r,r.every(o=>o==null)){t.callback=null;return}t.callback=o=>{if(t.cleanup&&(t.cleanup(),t.cleanup=null),o!=null){const i=Array(r.length).fill(null);for(let l=0;l<r.length;l+=1){const u=r[l];if(u!=null)switch(typeof u){case"function":{const f=u(o);typeof f=="function"&&(i[l]=f);break}case"object":u.current=o}}t.cleanup=()=>{for(let l=0;l<r.length;l+=1){const u=r[l];if(u!=null)switch(typeof u){case"function":{const f=i[l];typeof f=="function"?f():u(null);break}case"object":u.current=null}}}}}}const lk=parseInt(y.version,10);function fu(t){return lk>=t}function jg(t){if(!y.isValidElement(t))return null;const r=t,o=r.props;return(fu(19)?o==null?void 0:o.ref:r.ref)??null}function Df(t,r){if(t&&!r)return t;if(!t&&r)return r;if(t||r)return{...t,...r}}let Ff;Ff=new Set;function O0(t,r){return function(...i){{const l=i.join(" "),u=`${r}: ${l}`,f=`${t}:${u}`;Ff.has(f)||(Ff.add(f),t==="warn"?console.warn(u):console.error(u))}}}const ak=O0("warn","Base UI");function Dt(){}const Ko=Object.freeze([]),Vt=Object.freeze({});function uk(t,r){const o={};for(const i in t){const l=t[i];if(r!=null&&r.hasOwnProperty(i)){const u=r[i](l);u!=null&&Object.assign(o,u);continue}l===!0?o[`data-${i.toLowerCase()}`]="":l&&(o[`data-${i.toLowerCase()}`]=l.toString())}return o}function ck(t,r){return typeof t=="function"?t(r):t}function fk(t,r){return typeof t=="function"?t(r):t}const M0={};function Hr(t,r,o,i,l){if(!o&&!i&&!l&&!t)return Qa(r);let u=Qa(t);return r&&(u=il(u,r)),o&&(u=il(u,o)),i&&(u=il(u,i)),l&&(u=il(u,l)),u}function dk(t){if(t.length===0)return M0;if(t.length===1)return Qa(t[0]);let r=Qa(t[0]);for(let o=1;o<t.length;o+=1)r=il(r,t[o]);return r}function Qa(t){return N0(t)?{...t(M0)}:pk(t)}function il(t,r){return N0(r)?r(t):hk(t,r)}function pk(t){const r={...t};for(const o in r){const i=r[o];L0(o,i)&&(r[o]=_0(i))}return r}function hk(t,r){if(!r)return t;for(const o in r){const i=r[o];switch(o){case"style":t[o]=Df(t.style,i);break;case"className":t[o]=D0(t.className,i);break;default:L0(o,i)?t[o]=gk(t[o],i):t[o]=i}}return t}function L0(t,r){const o=t.charCodeAt(0),i=t.charCodeAt(1),l=t.charCodeAt(2);return o===111&&i===110&&l>=65&&l<=90&&(typeof r=="function"||typeof r>"u")}function N0(t){return typeof t=="function"}function gk(t,r){return r?t?(...o)=>{const i=o[0];if(F0(i)){const u=i;Ja(u);const f=r(...o);return u.baseUIHandlerPrevented||t==null||t(...o),f}const l=r(...o);return t==null||t(...o),l}:_0(r):t}function _0(t){return t&&((...r)=>{const o=r[0];return F0(o)&&Ja(o),t(...r)})}function Ja(t){return t.preventBaseUIHandler=()=>{t.baseUIHandlerPrevented=!0},t}function D0(t,r){return r?t?r+" "+t:r:t}function F0(t){return t!=null&&typeof t=="object"&&"nativeEvent"in t}function Et(t,r,o={}){let i=r.render;o.enabled!==!1&&(i=kk(i));const l=mk(r,o,i);if(o.enabled===!1)return null;const u=o.state??Vt;return bk(t,i,l,u)}function mk(t,r,o){const{className:i,style:l}=t,{state:u=Vt,ref:f,props:d,stateAttributesMapping:h,enabled:g=!0}=r,m=g?ck(i,u):void 0,v=g?fk(l,u):void 0,x=g?uk(u,h):Vt,R=g&&d?yk(d):void 0,w=g?Df(x,R)??{}:Vt;return typeof document<"u"&&(g?Array.isArray(f)?w.ref=ok([w.ref,jg(o),...f]):w.ref=Cs(w.ref,jg(o),f):Cs(null,null)),g?(m!==void 0&&(w.className=D0(w.className,m)),v!==void 0&&(w.style=Df(w.style,v)),w):Vt}function yk(t){return Array.isArray(t)?dk(t):Hr(void 0,t)}const vk=Symbol.for("react.lazy"),xk=/^[A-Z][A-Za-z0-9$]*$/,wk=/[a-z]/;function kk(t){if((t==null?void 0:t.$$typeof)!==vk)return t;const r=y.Children.toArray(t)[0];return y.isValidElement(r)?r:t}function bk(t,r,o,i){if(r){if(typeof r=="function")return Sk(r),r(o,i);const l=Hr(o,r.props);if(l.ref=o.ref,!y.isValidElement(r))throw new Error(["Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.","A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.","https://base-ui.com/r/invalid-render-prop"].join(`
|
|
112
|
-
`));return y.cloneElement(r,l)}return Rk(t,o)}function Sk(t){const r=t.name;r.length!==0&&xk.test(r)&&wk.test(r)&&ak(`The \`render\` prop received a function named \`${r}\` that starts with an uppercase letter.`,"This usually means a React component was passed directly as `render={Component}`.","Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.","If this is an intentional render callback, rename it to start with a lowercase letter.","Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.","https://base-ui.com/r/invalid-render-prop")}function Rk(t,r){return t==="button"?y.createElement("button",{type:"button",...r,key:r.key}):t==="img"?y.createElement("img",{alt:"",...r,key:r.key}):y.createElement(t,r)}function z0(t){return Et(t.defaultTagName??"div",t,t)}const j0=t=>_.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"link-external-icon",...t,children:[_.jsx("path",{d:"M9 4H8.8C7.11984 4 6.27976 4 5.63803 4.32698C5.07354 4.6146 4.6146 5.07354 4.32698 5.63803C4 6.27976 4 7.11984 4 8.8V15.2C4 16.8802 4 17.7202 4.32698 18.362C4.6146 18.9265 5.07354 19.3854 5.63803 19.673C6.27976 20 7.11984 20 8.8 20H15.2C16.8802 20 17.7202 20 18.362 19.673C18.9265 19.3854 19.3854 18.9265 19.673 18.362C20 17.7202 20 16.8802 20 15.2V15"}),_.jsx("path",{d:"M14 4H20M20 4V10M20 4L11 13"})]});j0.displayName="Link.ExternalIcon";const Ek={variant:{inline:{classes:"text-kumo-link underline underline-offset-[0.15em] decoration-[0.0625em] link-current transition-colors",description:"Inline text link that flows with content"},current:{classes:"text-current underline underline-offset-[0.15em] decoration-[0.0625em] link-current transition-colors",description:"Link that inherits color from parent text"},plain:{classes:"text-kumo-link hover:text-kumo-link/70 transition-colors",description:"Link without underline decoration"}}},$g={variant:"inline"};function Ck({variant:t=$g.variant}={}){return De(vn(Ek.variant,t,$g.variant).classes)}const $0=y.forwardRef(function({className:r,variant:o="inline",render:i,...l},u){const f=I0();y.useEffect(()=>{"to"in l&&l.to!==void 0&&console.warn(`[kumo] Link: The \`to\` prop is deprecated. Use \`href\` instead.
|
|
113
|
-
|
|
114
|
-
If your app uses a client-side router, configure a LinkProvider that
|
|
115
|
-
maps \`href\` to your router's navigation prop. See:
|
|
116
|
-
https://kumo.cfops.it/utilities/link-provider
|
|
117
|
-
|
|
118
|
-
Migration example:
|
|
119
|
-
Before: <Link to="/page">…</Link>
|
|
120
|
-
After: <Link href="/page">…</Link>`)},[]);const d={"data-kumo-component":"Link",className:De(Ck({variant:o}),"group/link inline-flex items-center gap-[0.1875em] has-[>[data-kumo-component=Badge]]:rounded-full")};return z0({render:i??_.jsx(f,{}),ref:u,props:Hr(d,l,{className:r})})});$0.displayName="Link";const Tk=Object.assign($0,{ExternalIcon:j0}),Ik={size:{sm:{value:16,description:"Small loader for inline use"},base:{value:24,description:"Default loader size"},lg:{value:32,description:"Large loader for prominent loading states"}}},zf={size:"base"};function Pk({size:t=zf.size}={}){return typeof t=="number"?t:vn(Ik.size,t,zf.size).value}const V0=({className:t,size:r=zf.size,"aria-label":o="Loading"})=>{const i=Pk({size:r});return _.jsxs("svg",{width:i,height:i,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",className:t,role:"status","aria-label":o,children:[_.jsxs("circle",{cx:"12",cy:"12",r:"9.5",fill:"none",strokeWidth:"2",strokeLinecap:"round",children:[_.jsx("animateTransform",{attributeName:"transform",type:"rotate",from:"0 12 12",to:"360 12 12",dur:"2s",repeatCount:"indefinite"}),_.jsx("animate",{attributeName:"stroke-dasharray",values:"0 150;42 150;42 150",keyTimes:"0;0.5;1",dur:"1.5s",repeatCount:"indefinite"}),_.jsx("animate",{attributeName:"stroke-dashoffset",values:"0;-16;-59",keyTimes:"0;0.5;1",dur:"1.5s",repeatCount:"indefinite"})]}),_.jsx("circle",{cx:"12",cy:"12",r:"9.5",fill:"none",opacity:.1,strokeWidth:"2",strokeLinecap:"round"})]})},Ak=y.createContext(null);function B0(){return y.useContext(Ak)}const Ok=()=>{},ke=typeof document<"u"?y.useLayoutEffect:Ok,Ln={...fx};var Qo=a0();function du(){return typeof window<"u"}function xn(t){return dd(t)?(t.nodeName||"").toLowerCase():"#document"}function bt(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function mo(t){var r;return(r=(dd(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function dd(t){return du()?t instanceof Node||t instanceof bt(t).Node:!1}function ct(t){return du()?t instanceof Element||t instanceof bt(t).Element:!1}function vt(t){return du()?t instanceof HTMLElement||t instanceof bt(t).HTMLElement:!1}function Yo(t){return!du()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof bt(t).ShadowRoot}function wl(t){const{overflow:r,overflowX:o,overflowY:i,display:l}=Yn(t);return/auto|scroll|overlay|hidden|clip/.test(r+i+o)&&l!=="inline"&&l!=="contents"}function Mk(t){return/^(table|td|th)$/.test(xn(t))}function pu(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const Lk=/transform|translate|scale|rotate|perspective|filter/,Nk=/paint|layout|strict|content/,vs=t=>!!t&&t!=="none";let pf;function pd(t){const r=ct(t)?Yn(t):t;return vs(r.transform)||vs(r.translate)||vs(r.scale)||vs(r.rotate)||vs(r.perspective)||!hd()&&(vs(r.backdropFilter)||vs(r.filter))||Lk.test(r.willChange||"")||Nk.test(r.contain||"")}function _k(t){let r=Ur(t);for(;vt(r)&&!fo(r);){if(pd(r))return r;if(pu(r))return null;r=Ur(r)}return null}function hd(){return pf==null&&(pf=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),pf}function fo(t){return/^(html|body|#document)$/.test(xn(t))}function Yn(t){return bt(t).getComputedStyle(t)}function hu(t){return ct(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ur(t){if(xn(t)==="html")return t;const r=t.assignedSlot||t.parentNode||Yo(t)&&t.host||mo(t);return Yo(r)?r.host:r}function H0(t){const r=Ur(t);return fo(r)?(t.ownerDocument||t).body:vt(r)&&wl(r)?r:H0(r)}function fl(t,r,o){var i;r===void 0&&(r=[]),o===void 0&&(o=!0);const l=H0(t),u=l===((i=t.ownerDocument)==null?void 0:i.body),f=bt(l);if(u){const d=jf(f);return r.concat(f,f.visualViewport||[],wl(l)?l:[],d&&o?fl(d):[])}else return r.concat(l,fl(l,[],o))}function jf(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}const hi=Math.min,po=Math.max,gi=Math.round,ba=Math.floor,ho=t=>({x:t,y:t}),Dk={left:"right",right:"left",bottom:"top",top:"bottom"};function U0(t,r,o){return po(t,hi(r,o))}function Go(t,r){return typeof t=="function"?t(r):t}function ir(t){return t.split("-")[0]}function Vr(t){return t.split("-")[1]}function gd(t){return t==="x"?"y":"x"}function md(t){return t==="y"?"height":"width"}function xr(t){const r=t[0];return r==="t"||r==="b"?"y":"x"}function yd(t){return gd(xr(t))}function Fk(t,r,o){o===void 0&&(o=!1);const i=Vr(t),l=yd(t),u=md(l);let f=l==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return r.reference[u]>r.floating[u]&&(f=eu(f)),[f,eu(f)]}function zk(t){const r=eu(t);return[$f(t),r,$f(r)]}function $f(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Vg=["left","right"],Bg=["right","left"],jk=["top","bottom"],$k=["bottom","top"];function Vk(t,r,o){switch(t){case"top":case"bottom":return o?r?Bg:Vg:r?Vg:Bg;case"left":case"right":return r?jk:$k;default:return[]}}function Bk(t,r,o,i){const l=Vr(t);let u=Vk(ir(t),o==="start",i);return l&&(u=u.map(f=>f+"-"+l),r&&(u=u.concat(u.map($f)))),u}function eu(t){const r=ir(t);return Dk[r]+t.slice(r.length)}function Hk(t){var r,o,i,l;return{top:(r=t.top)!=null?r:0,right:(o=t.right)!=null?o:0,bottom:(i=t.bottom)!=null?i:0,left:(l=t.left)!=null?l:0}}function W0(t){return typeof t!="number"?Hk(t):{top:t,right:t,bottom:t,left:t}}function dl(t){const{x:r,y:o,width:i,height:l}=t;return{width:i,height:l,top:o,left:r,right:r+i,bottom:o+l,x:r,y:o}}function Hg(t,r,o){let{reference:i,floating:l}=t;const u=xr(r),f=yd(r),d=md(f),h=ir(r),g=u==="y",m=i.x+i.width/2-l.width/2,v=i.y+i.height/2-l.height/2,x=i[d]/2-l[d]/2;let R;switch(h){case"top":R={x:m,y:i.y-l.height};break;case"bottom":R={x:m,y:i.y+i.height};break;case"right":R={x:i.x+i.width,y:v};break;case"left":R={x:i.x-l.width,y:v};break;default:R={x:i.x,y:i.y}}const w=Vr(r);return w&&(R[f]+=x*(w==="end"?1:-1)*(o&&g?-1:1)),R}async function Uk(t,r){var o;r===void 0&&(r={});const{x:i,y:l,platform:u,rects:f,elements:d,strategy:h}=t,{boundary:g="clippingAncestors",rootBoundary:m="viewport",elementContext:v="floating",altBoundary:x=!1,padding:R=0}=Go(r,t),w=W0(R),E=d[x?v==="floating"?"reference":"floating":v],b=dl(await u.getClippingRect({element:(o=await(u.isElement==null?void 0:u.isElement(E)))==null||o?E:E.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(d.floating)),boundary:g,rootBoundary:m,strategy:h})),C=v==="floating"?{x:i,y:l,width:f.floating.width,height:f.floating.height}:f.reference,S=await(u.getOffsetParent==null?void 0:u.getOffsetParent(d.floating)),P=await(u.isElement==null?void 0:u.isElement(S))&&await(u.getScale==null?void 0:u.getScale(S))||{x:1,y:1},T=dl(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:C,offsetParent:S,strategy:h}):C);return{top:(b.top-T.top+w.top)/P.y,bottom:(T.bottom-b.bottom+w.bottom)/P.y,left:(b.left-T.left+w.left)/P.x,right:(T.right-b.right+w.right)/P.x}}const Wk=50,Kk=async(t,r,o)=>{const{placement:i="bottom",strategy:l="absolute",middleware:u=[],platform:f}=o,d=f.detectOverflow?f:{...f,detectOverflow:Uk},h=await(f.isRTL==null?void 0:f.isRTL(r));let g=await f.getElementRects({reference:t,floating:r,strategy:l}),{x:m,y:v}=Hg(g,i,h),x=i,R=0;const w={};for(let E=0;E<u.length;E++){const b=u[E];if(!b)continue;const{name:C,fn:S}=b,{x:P,y:T,data:A,reset:O}=await S({x:m,y:v,initialPlacement:i,placement:x,strategy:l,middlewareData:w,rects:g,platform:d,elements:{reference:t,floating:r}});m=P??m,v=T??v,w[C]={...w[C],...A},O&&R<Wk&&(R++,typeof O=="object"&&(O.placement&&(x=O.placement),O.rects&&(g=O.rects===!0?await f.getElementRects({reference:t,floating:r,strategy:l}):O.rects),{x:m,y:v}=Hg(g,x,h)),E=-1)}return{x:m,y:v,placement:x,strategy:l,middlewareData:w}},Yk=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(r){var o,i;const{placement:l,middlewareData:u,rects:f,initialPlacement:d,platform:h,elements:g}=r,{mainAxis:m=!0,crossAxis:v=!0,fallbackPlacements:x,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:E=!0,...b}=Go(t,r);if((o=u.arrow)!=null&&o.alignmentOffset)return{};const C=ir(l),S=xr(d),P=ir(d)===d,T=await(h.isRTL==null?void 0:h.isRTL(g.floating)),A=x||(P||!E?[eu(d)]:zk(d)),O=w!=="none";!x&&O&&A.push(...Bk(d,E,w,T));const D=[d,...A],j=await h.detectOverflow(r,b),z=[];let N=((i=u.flip)==null?void 0:i.overflows)||[];if(m&&z.push(j[C]),v){const Y=Fk(l,f,T);z.push(j[Y[0]],j[Y[1]])}if(N=[...N,{placement:l,overflows:z}],!z.every(Y=>Y<=0)){var G,X;const Y=(((G=u.flip)==null?void 0:G.index)||0)+1,L=D[Y];if(L&&(!(v==="alignment"&&S!==xr(L))||N.every(ie=>xr(ie.placement)===S?ie.overflows[0]>0:!0)))return{data:{index:Y,overflows:N},reset:{placement:L}};let Q=(X=N.filter(ie=>ie.overflows[0]<=0).sort((ie,$)=>ie.overflows[1]-$.overflows[1])[0])==null?void 0:X.placement;if(!Q)switch(R){case"bestFit":{var W;const ie=(W=N.filter($=>{if(O){const H=xr($.placement);return H===S||H==="y"}return!0}).map($=>[$.placement,$.overflows.filter(H=>H>0).reduce((H,B)=>H+B,0)]).sort(($,H)=>$[1]-H[1])[0])==null?void 0:W[0];ie&&(Q=ie);break}case"initialPlacement":Q=d}if(l!==Q)return{reset:{placement:Q}}}return{}}}},K0=new Set(["left","top"]);async function Gk(t,r){const{placement:o,platform:i,elements:l}=t,u=await(i.isRTL==null?void 0:i.isRTL(l.floating)),f=ir(o),d=Vr(o),h=xr(o)==="y",g=K0.has(f)?-1:1,m=u&&h?-1:1,v=Go(r,t);let{mainAxis:x,crossAxis:R,alignmentAxis:w}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return d&&typeof w=="number"&&(R=d==="end"?w*-1:w),h?{x:R*m,y:x*g}:{x:x*g,y:R*m}}const Xk=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(r){var o,i;const{x:l,y:u,placement:f,middlewareData:d}=r,h=await Gk(r,t);return f===((o=d.offset)==null?void 0:o.placement)&&(i=d.arrow)!=null&&i.alignmentOffset?{}:{x:l+h.x,y:u+h.y,data:{...h,placement:f}}}}},qk=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(r){const{x:o,y:i,placement:l,platform:u}=r,{mainAxis:f=!0,crossAxis:d=!1,limiter:h={fn:S=>{let{x:P,y:T}=S;return{x:P,y:T}}},...g}=Go(t,r),m={x:o,y:i},v=await u.detectOverflow(r,g),x=xr(l),R=gd(x);let w=m[R],E=m[x];const b=(S,P)=>U0(P+v[S==="y"?"top":"left"],P,P-v[S==="y"?"bottom":"right"]);f&&(w=b(R,w)),d&&(E=b(x,E));const C=h.fn({...r,[R]:w,[x]:E});return{...C,data:{x:C.x-o,y:C.y-i,enabled:{[R]:f,[x]:d}}}}}},Zk=function(t){return t===void 0&&(t={}),{options:t,fn(r){var o,i;const{x:l,y:u,placement:f,rects:d,middlewareData:h}=r,{offset:g=0,mainAxis:m=!0,crossAxis:v=!0}=Go(t,r),x={x:l,y:u},R=xr(f),w=gd(R);let E=x[w],b=x[R];const C=Go(g,r),S=typeof C=="number"?{mainAxis:C,crossAxis:0}:{mainAxis:(o=C.mainAxis)!=null?o:0,crossAxis:(i=C.crossAxis)!=null?i:0};if(m){const A=w==="y"?"height":"width",O=d.reference[w]-d.floating[A]+S.mainAxis,D=d.reference[w]+d.reference[A]-S.mainAxis;E<O?E=O:E>D&&(E=D)}if(v){var P,T;const A=w==="y"?"width":"height",O=K0.has(ir(f)),D=d.reference[R]-d.floating[A]+(O&&((P=h.offset)==null?void 0:P[R])||0)+(O?0:S.crossAxis),j=d.reference[R]+d.reference[A]+(O?0:((T=h.offset)==null?void 0:T[R])||0)-(O?S.crossAxis:0);b<D?b=D:b>j&&(b=j)}return{[w]:E,[R]:b}}}},Qk=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(r){const{placement:o,rects:i,platform:l,elements:u}=r,{apply:f=()=>{},...d}=Go(t,r),h=await l.detectOverflow(r,d),g=ir(o),m=Vr(o),v=xr(o)==="y",{width:x,height:R}=i.floating;let w,E;g==="top"||g==="bottom"?(w=g,E=m===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(E=g,w=m==="end"?"top":"bottom");const b=R-h.top-h.bottom,C=x-h.left-h.right,S=hi(R-h[w],b),P=hi(x-h[E],C),T=r.middlewareData.shift,A=!T;let O=S,D=P;T!=null&&T.enabled.x&&(D=C),T!=null&&T.enabled.y&&(O=b),A&&!m&&(v?D=x-2*po(h.left,h.right):O=R-2*po(h.top,h.bottom)),await f({...r,availableWidth:D,availableHeight:O});const j=await l.getDimensions(u.floating);return x!==j.width||R!==j.height?{reset:{rects:!0}}:{}}}};function Y0(t){const r=Yn(t);let o=parseFloat(r.width)||0,i=parseFloat(r.height)||0;const l=vt(t),u=l?t.offsetWidth:o,f=l?t.offsetHeight:i,d=gi(o)!==u||gi(i)!==f;return d&&(o=u,i=f),{width:o,height:i,$:d}}function vd(t){return ct(t)?t:t.contextElement}function li(t){const r=vd(t);if(!vt(r))return ho(1);const o=r.getBoundingClientRect(),{width:i,height:l,$:u}=Y0(r);let f=(u?gi(o.width):o.width)/i,d=(u?gi(o.height):o.height)/l;return(!f||!Number.isFinite(f))&&(f=1),(!d||!Number.isFinite(d))&&(d=1),{x:f,y:d}}const Jk=ho(0);function G0(t){const r=bt(t);return!hd()||!r.visualViewport?Jk:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function eb(t,r,o){return r===void 0&&(r=!1),!!o&&r&&o===bt(t)}function Ts(t,r,o,i){r===void 0&&(r=!1),o===void 0&&(o=!1);const l=t.getBoundingClientRect(),u=vd(t);let f=ho(1);r&&(i?ct(i)&&(f=li(i)):f=li(t));const d=eb(u,o,i)?G0(u):ho(0);let h=(l.left+d.x)/f.x,g=(l.top+d.y)/f.y,m=l.width/f.x,v=l.height/f.y;if(u&&i){const x=bt(u),R=ct(i)?bt(i):i;let w=x,E=jf(w);for(;E&&R!==w;){const b=li(E),C=E.getBoundingClientRect(),S=Yn(E),P=C.left+(E.clientLeft+parseFloat(S.paddingLeft))*b.x,T=C.top+(E.clientTop+parseFloat(S.paddingTop))*b.y;h*=b.x,g*=b.y,m*=b.x,v*=b.y,h+=P,g+=T,w=bt(E),E=jf(w)}}return dl({width:m,height:v,x:h,y:g})}function gu(t,r){const o=hu(t).scrollLeft;return r?r.left+o:Ts(mo(t)).left+o}function X0(t,r){const o=t.getBoundingClientRect();return{x:o.left+r.scrollLeft-gu(t,o),y:o.top+r.scrollTop}}function tb(t){let{elements:r,rect:o,offsetParent:i,strategy:l}=t;const u=l==="fixed",f=mo(i),d=r?pu(r.floating):!1;if(i===f||d&&u)return o;let h={scrollLeft:0,scrollTop:0},g=ho(1);const m=ho(0),v=vt(i);if((v||!u)&&((xn(i)!=="body"||wl(f))&&(h=hu(i)),v)){const R=Ts(i);g=li(i),m.x=R.x+i.clientLeft,m.y=R.y+i.clientTop}const x=f&&!v&&!u?X0(f,h):ho(0);return{width:o.width*g.x,height:o.height*g.y,x:o.x*g.x-h.scrollLeft*g.x+m.x+x.x,y:o.y*g.y-h.scrollTop*g.y+m.y+x.y}}function nb(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function rb(t){const r=hu(t),o=t.ownerDocument.body,i=po(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=po(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let u=-r.scrollLeft+gu(t);const f=-r.scrollTop;return Yn(o).direction==="rtl"&&(u+=po(t.clientWidth,o.clientWidth)-i),{width:i,height:l,x:u,y:f}}const ob=25;function sb(t,r,o){o===void 0&&(o="viewport");const i=o==="layoutViewport",l=bt(t),u=mo(t),f=l.visualViewport;let d=u.clientWidth,h=u.clientHeight,g=0,m=0;if(f){const v=!hd()||r==="fixed";i?v||(g=-f.offsetLeft,m=-f.offsetTop):(d=f.width,h=f.height,v&&(g=f.offsetLeft,m=f.offsetTop))}if(gu(u)<=0){const v=u.ownerDocument,x=v.body,R=getComputedStyle(x),w=v.compatMode==="CSS1Compat"&&parseFloat(R.marginLeft)+parseFloat(R.marginRight)||0,E=Math.abs(u.clientWidth-x.clientWidth-w),b=getComputedStyle(u).scrollbarGutter==="stable both-edges"?E/2:E;b<=ob&&(d-=b)}return{width:d,height:h,x:g,y:m}}function ib(t,r){const o=Ts(t,!0,r==="fixed"),i=o.top+t.clientTop,l=o.left+t.clientLeft,u=li(t);return{width:t.clientWidth*u.x,height:t.clientHeight*u.y,x:l*u.x,y:i*u.y}}function Ug(t,r,o){let i;if(r==="viewport"||r==="layoutViewport")i=sb(t,o,r);else if(r==="document")i=rb(mo(t));else if(ct(r))i=ib(r,o);else{const l=G0(t);i={x:r.x-l.x,y:r.y-l.y,width:r.width,height:r.height}}return dl(i)}function lb(t,r){const o=r.get(t);if(o)return o;let i=fl(t,[],!1).filter(d=>ct(d)&&xn(d)!=="body"),l=null;const u=Yn(t).position==="fixed";let f=u?Ur(t):t;for(;ct(f)&&!fo(f);){const d=Yn(f),h=pd(f),g=l?l.position:u?"fixed":"";!h&&(g==="fixed"||g==="absolute"&&d.position==="static")?i=i.filter(m=>m!==f):l=d,f=Ur(f)}return r.set(t,i),i}function ab(t){let{element:r,boundary:o,rootBoundary:i,strategy:l}=t;const u=[...o==="clippingAncestors"?pu(r)?[]:lb(r,this._c):[].concat(o),i],f=Ug(r,u[0],l);let d=f.top,h=f.right,g=f.bottom,m=f.left;for(let v=1;v<u.length;v++){const x=Ug(r,u[v],l);d=po(x.top,d),h=hi(x.right,h),g=hi(x.bottom,g),m=po(x.left,m)}return{width:h-m,height:g-d,x:m,y:d}}function ub(t){const{width:r,height:o}=Y0(t);return{width:r,height:o}}function cb(t,r,o){const i=vt(r),l=mo(r),u=o==="fixed",f=Ts(t,!0,u,r);let d={scrollLeft:0,scrollTop:0};const h=ho(0);if((i||!u)&&((xn(r)!=="body"||wl(l))&&(d=hu(r)),i)){const m=Ts(r,!0,u,r);h.x=m.x+r.clientLeft,h.y=m.y+r.clientTop}!i&&l&&(h.x=gu(l));const g=l&&!i&&!u?X0(l,d):ho(0);return{x:f.left+d.scrollLeft-h.x-g.x,y:f.top+d.scrollTop-h.y-g.y,width:f.width,height:f.height}}function hf(t){return Yn(t).position==="static"}function Wg(t,r){if(!vt(t)||Yn(t).position==="fixed")return null;if(r)return r(t);let o=t.offsetParent;return mo(t)===o&&(o=o.ownerDocument.body),o}function q0(t,r){const o=bt(t);if(pu(t))return o;if(!vt(t)){let l=Ur(t);for(;l&&!fo(l);){if(ct(l)&&!hf(l))return l;l=Ur(l)}return o}let i=Wg(t,r);for(;i&&Mk(i)&&hf(i);)i=Wg(i,r);return i&&fo(i)&&hf(i)&&!pd(i)?o:i||_k(t)||o}const fb=async function(t){const r=this.getOffsetParent||q0,o=this.getDimensions,i=await o(t.floating);return{reference:cb(t.reference,await r(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function db(t){return Yn(t).direction==="rtl"}const Z0={convertOffsetParentRelativeRectToViewportRelativeRect:tb,getDocumentElement:mo,getClippingRect:ab,getOffsetParent:q0,getElementRects:fb,getClientRects:nb,getDimensions:ub,getScale:li,isElement:ct,isRTL:db};function Q0(t,r){return t.x===r.x&&t.y===r.y&&t.width===r.width&&t.height===r.height}function pb(t,r,o){let i=null,l;const u=mo(t);function f(){var m;clearTimeout(l),(m=i)==null||m.disconnect(),i=null}function d(m,v){m===void 0&&(m=!1),v===void 0&&(v=1),f();const x=t.getBoundingClientRect(),{left:R,top:w,width:E,height:b}=x;if(m||r(),!E||!b)return;const C=ba(w),S=ba(u.clientWidth-(R+E)),P=ba(u.clientHeight-(w+b)),T=ba(R),A={rootMargin:-C+"px "+-S+"px "+-P+"px "+-T+"px",threshold:po(0,hi(1,v))||1};let O=!0;function D(j){const z=j[0].intersectionRatio;if(!Q0(x,t.getBoundingClientRect()))return d();if(z!==v){if(!O)return d();z?d(!1,z):l=setTimeout(()=>{d(!1,1e-7)},1e3)}O=!1}try{i=new IntersectionObserver(D,{...A,root:u.ownerDocument})}catch{i=new IntersectionObserver(D,A)}i.observe(t)}const h=bt(t),g=()=>d(o);return h.addEventListener("resize",g),d(!0),()=>{h.removeEventListener("resize",g),f()}}function Kg(t,r,o,i){i===void 0&&(i={});const{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=i,g=vd(t),m=l||u?[...g?fl(g):[],...r?fl(r):[]]:[];m.forEach(C=>{l&&C.addEventListener("scroll",o),u&&C.addEventListener("resize",o)});const v=g&&d?pb(g,o,u):null;let x=-1,R=null;f&&(R=new ResizeObserver(C=>{let[S]=C;S&&S.target===g&&R&&r&&(R.unobserve(r),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var P;(P=R)==null||P.observe(r)})),o()}),g&&!h&&R.observe(g),r&&R.observe(r));let w,E=h?Ts(t):null;h&&b();function b(){const C=Ts(t);E&&!Q0(E,C)&&o(),E=C,w=requestAnimationFrame(b)}return o(),()=>{var C;m.forEach(S=>{l&&S.removeEventListener("scroll",o),u&&S.removeEventListener("resize",o)}),v==null||v(),(C=R)==null||C.disconnect(),R=null,h&&cancelAnimationFrame(w)}}const hb=Xk,gb=qk,mb=Yk,yb=Qk,vb=Zk,xb=(t,r,o)=>{const i=new Map,l=o??{},u={...Z0,...l.platform,_c:i};return Kk(t,r,{...l,platform:u})};var Ha=typeof document<"u"?y.useLayoutEffect:function(){};function tu(t,r){if(t===r)return!0;if(typeof t!=typeof r)return!1;if(typeof t=="function"&&t.toString()===r.toString())return!0;let o,i,l;if(t&&r&&typeof t=="object"){if(Array.isArray(t)){if(o=t.length,o!==r.length)return!1;for(i=o;i--!==0;)if(!tu(t[i],r[i]))return!1;return!0}if(l=Object.keys(t),o=l.length,o!==Object.keys(r).length)return!1;for(i=o;i--!==0;)if(!{}.hasOwnProperty.call(r,l[i]))return!1;for(i=o;i--!==0;){const u=l[i];if(!(u==="_owner"&&t.$$typeof)&&!tu(t[u],r[u]))return!1}return!0}return t!==t&&r!==r}function J0(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Yg(t,r){const o=J0(t);return Math.round(r*o)/o}function gf(t){const r=y.useRef(t);return Ha(()=>{r.current=t}),r}function wb(t){t===void 0&&(t={});const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l,elements:{reference:u,floating:f}={},transform:d=!0,whileElementsMounted:h,open:g}=t,[m,v]=y.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[x,R]=y.useState(i);tu(x,i)||R(i);const[w,E]=y.useState(null),[b,C]=y.useState(null),S=y.useCallback($=>{$!==O.current&&(O.current=$,E($))},[]),P=y.useCallback($=>{$!==D.current&&(D.current=$,C($))},[]),T=u||w,A=f||b,O=y.useRef(null),D=y.useRef(null),j=y.useRef(m),z=h!=null,N=gf(h),G=gf(l),X=gf(g),W=y.useCallback(()=>{if(!O.current||!D.current)return;const $={placement:r,strategy:o,middleware:x};G.current&&($.platform=G.current),xb(O.current,D.current,$).then(H=>{const B={...H,isPositioned:X.current!==!1};Y.current&&!tu(j.current,B)&&(j.current=B,Qo.flushSync(()=>{v(B)}))})},[x,r,o,G,X]);Ha(()=>{g===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,v($=>({...$,isPositioned:!1})))},[g]);const Y=y.useRef(!1);Ha(()=>(Y.current=!0,()=>{Y.current=!1}),[]),Ha(()=>{if(T&&(O.current=T),A&&(D.current=A),T&&A){if(N.current)return N.current(T,A,W);W()}},[T,A,W,N,z]);const L=y.useMemo(()=>({reference:O,floating:D,setReference:S,setFloating:P}),[S,P]),Q=y.useMemo(()=>({reference:T,floating:A}),[T,A]),ie=y.useMemo(()=>{const $={position:o,left:0,top:0};if(!Q.floating)return $;const H=Yg(Q.floating,m.x),B=Yg(Q.floating,m.y);return d?{...$,transform:"translate("+H+"px, "+B+"px)",...J0(Q.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:H,top:B}},[o,d,Q.floating,m.x,m.y]);return y.useMemo(()=>({...m,update:W,refs:L,elements:Q,floatingStyles:ie}),[m,W,L,Q,ie])}const kb=(t,r)=>{const o=hb(t);return{name:o.name,fn:o.fn,options:[t,r]}},bb=(t,r)=>{const o=gb(t);return{name:o.name,fn:o.fn,options:[t,r]}},Sb=(t,r)=>({fn:vb(t).fn,options:[t,r]}),Rb=(t,r)=>{const o=mb(t);return{name:o.name,fn:o.fn,options:[t,r]}},Eb=(t,r)=>{const o=yb(t);return{name:o.name,fn:o.fn,options:[t,r]}};function Cb(){if(typeof navigator>"u")return{userAgent:"",platform:"",maxTouchPoints:0};{const t=navigator.userAgentData;if(t&&Array.isArray(t.brands))return{userAgent:t.brands.map(({brand:r,version:o})=>`${r}/${o}`).join(" "),platform:t.platform??navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}return{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}const{userAgent:Tb,platform:Ib,maxTouchPoints:Pb}=Cb(),mu=Tb.toLowerCase(),pl=Ib.toLowerCase(),yu=/^i(os$|p)/.test(pl)||pl==="macintel"&&Pb>1,Gg="android",Vf=pl===Gg||mu.includes(Gg),ey=!yu&&pl.startsWith("mac");pl.startsWith("win");const Ab=ey||yu,xd=/jsdom|happydom/.test(mu);function $r(t){t.preventDefault(),t.stopPropagation()}function Ob(t){return"nativeEvent"in t}function mi(t){return t.pointerType===""&&t.isTrusted?!0:Vf&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function wd(t){return xd?!1:!Vf&&t.width===0&&t.height===0||t.type==="pointerdown"&&t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"&&(Vf||t.buttons===0)||t.width<1&&t.height<1&&t.pressure===0&&t.detail===0&&t.pointerType==="touch"}function Uo(t,r){const o=["mouse","pen"];return r||o.push("",void 0),o.includes(t)}function Mb(t){const r=t.type;return r==="click"||r==="mousedown"||r==="keydown"||r==="keyup"}function Mn(t){var o;let r=t.activeElement;for(;((o=r==null?void 0:r.shadowRoot)==null?void 0:o.activeElement)!=null;)r=r.shadowRoot.activeElement;return r}function $e(t,r){var i;if(!t||!r)return!1;const o=(i=r.getRootNode)==null?void 0:i.call(r);if(t.contains(r))return!0;if(o&&Yo(o)){let l=r;for(;l;){if(t===l)return!0;l=l.parentNode||l.host}}return!1}function yi(t,r){let o=t;for(;o;){if(ct(o)&&o.matches(r))return o;o=o.assignedSlot??o.parentNode??(Yo(o)?o.host:null)}return null}function pn(t){return"composedPath"in t?t.composedPath()[0]??t.target:t.target}const Lb="data-base-ui-focusable",Nb="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",ty="ArrowLeft",ny="ArrowRight",_b="ArrowUp",Db="ArrowDown",ry="data-starting-style",Fb="data-ending-style",zb={[ry]:""},jb={[Fb]:""},vu={transitionStatus(t){return t==="starting"?zb:t==="ending"?jb:null}},$b="data-open",Vb="data-closed",Bb="data-anchor-hidden",oy="data-popup-open",Hb="data-pressed",Ub={[oy]:""},Wb={[oy]:"",[Hb]:""},Kb={[$b]:""},Yb={[Vb]:""},Gb={[Bb]:""},sy={open(t){return t?Ub:null}},Xb={open(t){return t?Wb:null}},xu={open(t){return t?Kb:Yb},anchorHidden(t){return t?Gb:null}},qb={...xu,...vu},Bf="data-trigger-disabled";function nu(t,r){if(!ct(t))return!1;const o=t;if(r.hasElement(o))return!o.hasAttribute(Bf);for(const[,i]of r.entries())if($e(i,o))return!i.hasAttribute(Bf);return!1}function mf(t,r){if(r==null)return!1;if("composedPath"in t)return t.composedPath().includes(r);const o=t;return o.target!=null&&r.contains(o.target)}function Zb(t){return t.matches("html,body")}function kl(t){return vt(t)&&t.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function Qb(t){return yi(t,`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Nb}`)!=null}function Hf(t){return t?t.getAttribute("role")==="combobox"&&kl(t):!1}function Jb(t){if(!t||xd)return!0;try{return t.matches(":focus-visible")}catch{return!0}}function ru(t){return t?t.hasAttribute("data-base-ui-focusable")?t:t.querySelector("[data-base-ui-focusable]")||t:null}function ut(t){return(t==null?void 0:t.ownerDocument)||document}function ai(t,r){return r<0||r>=t.length}function Ua(t,r){return ui(t.current,{disabledIndices:r})}function Uf(t,r){return ui(t.current,{decrement:!0,startingIndex:t.current.length,disabledIndices:r})}function eS(t,r,o){const{decrement:i,loopFocus:l,allowEscape:u,disabledIndices:f,minIndex:d,maxIndex:h}=o,g=()=>ui(t,{startingIndex:r,decrement:i,disabledIndices:f});let m,v=!1;if(!l)m=i?Math.max(d,g()):Math.min(h,g());else if(i?r<=d:r>=h){const x=i?-1:t.length;u&&r!==x?m=-1:(m=i?h:d,v=!0)}else m=g();return{index:ai(t,m)?-1:m,wrapped:v}}function ui(t,{startingIndex:r=-1,decrement:o=!1,disabledIndices:i,amount:l=1}={}){let u=r;do u+=o?-l:l;while(u>=0&&u<=t.length-1&&ci(t,u,i));return u}function ci(t,r,o){if(typeof o=="function"?o(r):(o==null?void 0:o.includes(r))??!1)return!0;const i=t[r];return i?!wu(i)||i.matches(":disabled")?!0:!o&&(i.hasAttribute("disabled")||i.getAttribute("aria-disabled")==="true"):!1}function tS(t){return t.visibility==="hidden"||t.visibility==="collapse"}function wu(t,r=t?Yn(t):null){return!t||!t.isConnected||!r||tS(r)?!1:typeof t.checkVisibility=="function"?t.checkVisibility():r.display!=="none"&&r.display!=="contents"}const nS='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function rS(t){const r=t.assignedSlot;if(r)return r;if(t.parentElement)return t.parentElement;const o=t.getRootNode();return Yo(o)?o.host:null}function Wf(t){for(const r of Array.from(t.children))if(xn(r)==="summary")return r;return null}function oS(t,r){const o=Wf(r);return!!o&&(t===o||$e(o,t))}function iy(t){const r=t?xn(t):"";return t!=null&&t.matches(nS)&&(r!=="summary"||t.parentElement!=null&&xn(t.parentElement)==="details"&&Wf(t.parentElement)===t)&&(r!=="details"||Wf(t)==null)&&(r!=="input"||t.type!=="hidden")}function ly(t){if(!iy(t)||!t.isConnected||t.matches(":disabled"))return!1;for(let r=t;r;r=rS(r)){const o=r!==t,i=xn(r)==="slot";if(r.hasAttribute("inert")||o&&xn(r)==="details"&&!r.open&&!oS(t,r)||r.hasAttribute("hidden")||!i&&!sS(r,o))return!1}return!0}function sS(t,r){const o=Yn(t);return r?o.display!=="none":wu(t,o)}function ay(t){const r=t.tabIndex;if(r<0){const o=xn(t);if(o==="details"||o==="audio"||o==="video"||vt(t)&&t.isContentEditable)return 0}return r}function yf(t){if(xn(t)!=="input")return null;const r=t;return r.type==="radio"&&r.name!==""?r:null}function iS(t,r){const o=yf(t);if(!o)return!0;const i=r.find(l=>{const u=yf(l);return(u==null?void 0:u.name)===o.name&&u.form===o.form&&u.checked});return i?i===o:r.find(l=>{const u=yf(l);return(u==null?void 0:u.name)===o.name&&u.form===o.form})===o}function uy(t){if(vt(t)&&xn(t)==="slot"){const r=t.assignedElements({flatten:!0});if(r.length>0)return r}return vt(t)&&t.shadowRoot?Array.from(t.shadowRoot.children):Array.from(t.children)}function cy(t,r){uy(t).forEach(o=>{iy(o)&&r.push(o),cy(o,r)})}function fy(t,r,o){uy(t).forEach(i=>{vt(i)&&i.matches(r)&&o.push(i),fy(i,r,o)})}function kd(t){return ly(t)&&ay(t)>=0}function dy(t){const r=[];return cy(t,r),r.filter(ly)}function ku(t){const r=dy(t);return r.filter(o=>ay(o)>=0&&iS(o,r))}function py(t,r){const o=ku(t),i=o.length;if(i===0)return;const l=Mn(ut(t)),u=o.indexOf(l);return o[u===-1?r===1?0:i-1:u+r]}function hy(t){return py(ut(t).body,1)||t}function gy(t){return py(ut(t).body,-1)||t}function ul(t,r){const o=r||t.currentTarget,i=t.relatedTarget;return!i||!$e(o,i)}function lS(t){ku(t).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function Xg(t){const r=[];fy(t,"[data-tabindex]",r),r.forEach(o=>{const i=o.dataset.tabindex;delete o.dataset.tabindex,i?o.setAttribute("tabindex",i):o.removeAttribute("tabindex")})}var l0;const yo=typeof CSS<"u"&&!!((l0=CSS.supports)!=null&&l0.call(CSS,"-webkit-backdrop-filter:none"));!yo&&mu.includes("firefox");!yo&&mu.includes("chrom");function nt(t,r,o,i){let l=!1,u=!1;const f=i??Vt;return{reason:t,event:r??new Event("base-ui"),cancel(){l=!0},allowPropagation(){u=!0},get isCanceled(){return l},get isPropagationAllowed(){return u},trigger:o,...f}}const Xo="none",bd="trigger-press",yr="trigger-hover",vf="trigger-focus",aS="outside-press",xf="item-press",my="focus-out",uS="escape-key",qg="list-navigation",cS="cancel-open",yy="disabled",Zg="missing",Qg="initial",vy="imperative-action",fS="window-resize";function tt(t,r,o,i){return t.addEventListener(r,o,i),()=>{t.removeEventListener(r,o,i)}}function Br(...t){return()=>{for(let r=0;r<t.length;r+=1){const o=t[r];o&&o()}}}const wf=Ln.useInsertionEffect,dS=wf&&wf!==Ln.useLayoutEffect?wf:t=>t();function xe(t){const r=hn(pS).current;return r.next=t,dS(r.effect),r.trampoline}function pS(){const t={next:void 0,callback:hS,trampoline:(...r)=>{var o;return(o=t.callback)==null?void 0:o.call(t,...r)},effect:()=>{t.callback=t.next}};return t}function hS(){throw new Error("Base UI: Cannot call an event handler while rendering.")}const xy={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},wy={...xy,position:"fixed",margin:0,top:0,left:0},gS={...xy,position:"absolute"};function Sd(){const[,t]=y.useState({});return y.useCallback(()=>{t({})},[])}let Jg=0;function mS(t,r="mui"){const o=y.useRef(void 0),i=Sd(),l=t??o.current;return y.useEffect(()=>{o.current==null&&(Jg+=1,o.current=`${r}-${Jg}`,t==null&&i())},[t,r,i]),l}const em=Ln.useId;function bu(t,r){if(em!==void 0){const o=em();return t??(r?`${r}-${o}`:o)}return mS(t,r)}function yS(){const t=new Map;return{emit(r,o){var i;(i=t.get(r))==null||i.forEach(l=>l(o))},on(r,o){t.has(r)||t.set(r,new Set),t.get(r).add(o)},off(r,o){var i;(i=t.get(r))==null||i.delete(o)}}}const ky=y.createContext(null);ky.displayName="FloatingNodeContext";const by=y.createContext(null);by.displayName="FloatingTreeContext";const Su=()=>{var t;return((t=y.useContext(ky))==null?void 0:t.id)||null},bi=t=>{const r=y.useContext(by);return t??r};var kf={exports:{}},bf={};/**
|
|
121
|
-
* @license React
|
|
122
|
-
* use-sync-external-store-shim.production.js
|
|
123
|
-
*
|
|
124
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
125
|
-
*
|
|
126
|
-
* This source code is licensed under the MIT license found in the
|
|
127
|
-
* LICENSE file in the root directory of this source tree.
|
|
128
|
-
*/var tm;function vS(){if(tm)return bf;tm=1;var t=ml();function r(v,x){return v===x&&(v!==0||1/v===1/x)||v!==v&&x!==x}var o=typeof Object.is=="function"?Object.is:r,i=t.useState,l=t.useEffect,u=t.useLayoutEffect,f=t.useDebugValue;function d(v,x){var R=x(),w=i({inst:{value:R,getSnapshot:x}}),E=w[0].inst,b=w[1];return u(function(){E.value=R,E.getSnapshot=x,h(E)&&b({inst:E})},[v,R,x]),l(function(){return h(E)&&b({inst:E}),v(function(){h(E)&&b({inst:E})})},[v]),f(R),R}function h(v){var x=v.getSnapshot;v=v.value;try{var R=x();return!o(v,R)}catch{return!0}}function g(v,x){return x()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:d;return bf.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:m,bf}var nm;function Sy(){return nm||(nm=1,kf.exports=vS()),kf.exports}var Ru=Sy(),Sf={exports:{}},Rf={};/**
|
|
129
|
-
* @license React
|
|
130
|
-
* use-sync-external-store-shim/with-selector.production.js
|
|
131
|
-
*
|
|
132
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
133
|
-
*
|
|
134
|
-
* This source code is licensed under the MIT license found in the
|
|
135
|
-
* LICENSE file in the root directory of this source tree.
|
|
136
|
-
*/var rm;function xS(){if(rm)return Rf;rm=1;var t=ml(),r=Sy();function o(g,m){return g===m&&(g!==0||1/g===1/m)||g!==g&&m!==m}var i=typeof Object.is=="function"?Object.is:o,l=r.useSyncExternalStore,u=t.useRef,f=t.useEffect,d=t.useMemo,h=t.useDebugValue;return Rf.useSyncExternalStoreWithSelector=function(g,m,v,x,R){var w=u(null);if(w.current===null){var E={hasValue:!1,value:null};w.current=E}else E=w.current;w=d(function(){function C(O){if(!S){if(S=!0,P=O,O=x(O),R!==void 0&&E.hasValue){var D=E.value;if(R(D,O))return T=D}return T=O}if(D=T,i(P,O))return D;var j=x(O);return R!==void 0&&R(D,j)?(P=O,D):(P=O,T=j)}var S=!1,P,T,A=v===void 0?null:v;return[function(){return C(m())},A===null?void 0:function(){return C(A())}]},[m,v,x,R]);var b=l(g,w[0],w[1]);return f(function(){E.hasValue=!0,E.value=b},[b]),h(b),b},Rf}var om;function wS(){return om||(om=1,Sf.exports=xS()),Sf.exports}var kS=wS();const Kf=[];let Yf;function bS(){return Yf}function SS(t){Kf.push(t)}function Ry(t){const r=(o,i)=>{const l=hn(ES).current;let u;try{Yf=l;for(const f of Kf)f.before(l);u=t(o,i);for(const f of Kf)f.after(l);l.didInitialize=!0}finally{Yf=void 0}return u};return r.displayName=t.displayName||t.name,r}function RS(t){return y.forwardRef(Ry(t))}function ES(){return{didInitialize:!1}}const CS=Ab,hl=y.forwardRef(function(r,o){const[i,l]=y.useState();ke(()=>{CS&&yo&&l("button")},[]);const u={tabIndex:0,role:i};return _.jsx("span",{...r,ref:o,style:wy,"aria-hidden":i?void 0:!0,...u,"data-base-ui-focus-guard":""})});hl.displayName="FocusGuard";function fi(t){return`data-base-ui-${t}`}const TS={style:{transition:"none"}},IS={fallbackAxisSide:"none"},PS={fallbackAxisSide:"end"},AS={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Rd=y.createContext(null);Rd.displayName="PortalContext";const Ey=()=>y.useContext(Rd),OS=fi("portal");function Cy(t={}){var E;const{ref:r,container:o,componentProps:i=Vt,elementProps:l}=t,u=bu(),f=(E=Ey())==null?void 0:E.portalNode,[d,h]=y.useState(null),[g,m]=y.useState(null),v=xe(b=>{b!==null&&m(b)}),x=y.useRef(null);ke(()=>{if(o===null){x.current&&(x.current=null,m(null),h(null));return}const b=(o&&(dd(o)?o:o.current))??f??document.body;if(b==null){x.current&&(x.current=null,m(null),h(null));return}x.current!==b&&(x.current=b,m(null),h(b))},[o,f]);const R=Et("div",i,{ref:[r,v],props:[{id:u,[OS]:""},l]}),w=d&&R?Qo.createPortal(R,d):null;return{node:g,nodeId:y.isValidElement(R)?R.props.id:void 0,subtree:w}}const Ty=y.forwardRef(function(r,o){const{render:i,className:l,style:u,children:f,container:d,portalOwnerRole:h,...g}=r,{node:m,nodeId:v,subtree:x}=Cy({container:d,ref:o,componentProps:r,elementProps:g}),R=y.useRef(null),w=y.useRef(null),E=y.useRef(null),b=y.useRef(null),[C,S]=y.useState(null),P=y.useRef(!1),T=C==null?void 0:C.modal,A=C==null?void 0:C.open,O=!!C&&!C.modal&&C.open&&!!m;y.useEffect(()=>{if(!m||T)return;function j(z){m&&z.relatedTarget&&ul(z)&&(z.type==="focusin"?P.current&&(Xg(m),P.current=!1):(lS(m),P.current=!0))}return Br(tt(m,"focusin",j,!0),tt(m,"focusout",j,!0))},[m,T]),ke(()=>{!m||A!==!0||!P.current||(Xg(m),P.current=!1)},[A,m]);const D=y.useMemo(()=>({beforeOutsideRef:R,afterOutsideRef:w,beforeInsideRef:E,afterInsideRef:b,portalNode:m,setFocusManagerState:S}),[m]);return _.jsxs(y.Fragment,{children:[x,_.jsxs(Rd.Provider,{value:D,children:[O&&m&&_.jsx(hl,{"data-type":"outside",ref:R,onFocus:j=>{var z,N;if(ul(j,m))(z=E.current)==null||z.focus();else{const G=C?C.domReference:null;(N=gy(G))==null||N.focus()}}}),O&&m&&_.jsx("span",{role:h,"aria-owns":v,style:AS}),m&&Qo.createPortal(f,m),O&&m&&_.jsx(hl,{"data-type":"outside",ref:w,onFocus:j=>{var z,N;if(ul(j,m))(z=b.current)==null||z.focus();else{const G=C?C.domReference:null;(N=hy(G))==null||N.focus(),C!=null&&C.closeOnFocusOut&&(C==null||C.onOpenChange(!1,nt("focus-out",j.nativeEvent)))}}})]})]})});Ty.displayName="FloatingPortal";let di;function MS(t){di??(di=new WeakMap);let r=di.get(t);return r||(r=new WeakMap,di.set(t,r)),r}var Iy=class{constructor(){Ie(this,"idMap",new Map)}add(t,r){{const o=MS(this),i=o.get(r);if(i!==void 0&&i!==t)throw new Error("Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.");const l=this.idMap.get(t);l!==void 0&&l!==r&&o.delete(l),o.set(r,t)}this.idMap.set(t,r)}delete(t){var r;{const o=this.idMap.get(t);o!==void 0&&((r=di==null?void 0:di.get(this))==null||r.delete(o))}this.idMap.delete(t)}hasElement(t){for(const r of this.idMap.values())if(r===t)return!0;return!1}hasMatchingElement(t){for(const r of this.idMap.values())if(t(r))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}};const LS=fu(19)?_S:DS;function Py(t,r,o,i,l){return LS(t,r,o,i,l)}function NS(t,r,o,i,l){const u=y.useCallback(()=>r(t.getSnapshot(),o,i,l),[t,r,o,i,l]);return Ru.useSyncExternalStore(t.subscribe,u,u)}SS({before(t){t.syncIndex=0,t.didInitialize||(t.syncTick=1,t.syncHooks=[],t.didChangeStore=!0,t.getSnapshot=()=>{let r=!1;for(let o=0;o<t.syncHooks.length;o+=1){const i=t.syncHooks[o],l=i.selector(i.store.state,i.a1,i.a2,i.a3);Object.is(i.value,l)||(r=!0,i.value=l)}return r&&(t.syncTick+=1),t.syncTick})},after(t){t.syncHooks.length>0&&(t.didChangeStore&&(t.didChangeStore=!1,t.subscribe=r=>{const o=new Set;for(const l of t.syncHooks)o.add(l.store);const i=[];for(const l of o)i.push(l.subscribe(r));return()=>{for(const l of i)l()}}),Ru.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getSnapshot))}});function _S(t,r,o,i,l){const u=bS();if(!u)return NS(t,r,o,i,l);const f=u.syncIndex;u.syncIndex+=1;let d;return u.didInitialize?(d=u.syncHooks[f],(d.store!==t||d.selector!==r||!Object.is(d.a1,o)||!Object.is(d.a2,i)||!Object.is(d.a3,l))&&(d.store!==t&&(u.didChangeStore=!0),d.store=t,d.selector=r,d.a1=o,d.a2=i,d.a3=l,d.value=r(t.getSnapshot(),o,i,l))):(d={store:t,selector:r,a1:o,a2:i,a3:l,value:r(t.getSnapshot(),o,i,l)},u.syncHooks.push(d)),d.value}function DS(t,r,o,i,l){return kS.useSyncExternalStoreWithSelector(t.subscribe,t.getSnapshot,t.getSnapshot,u=>r(u,o,i,l))}var FS=class{constructor(t){Ie(this,"subscribe",t=>(this.listeners.add(t),()=>{this.listeners.delete(t)}));Ie(this,"getSnapshot",()=>this.state);this.state=t,this.listeners=new Set,this.updateTick=0}static create(t){return new this(t)}setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const r=this.updateTick;for(const o of this.listeners){if(r!==this.updateTick)return;o(t)}}update(t){for(const r in t)if(!Object.is(this.state[r],t[r])){this.setState({...this.state,...t});return}}set(t,r){Object.is(this.state[t],r)||this.setState({...this.state,[t]:r})}notifyAll(){const t={...this.state};this.setState(t)}use(t,r,o,i){return Py(this,t,r,o,i)}},Ed=class extends FS{constructor(t,r={},o){super(t),this.context=r,this.selectors=o}useSyncedValue(t,r){y.useDebugValue(t);const o=this;ke(()=>{o.state[t]!==r&&o.set(t,r)},[o,t,r])}useSyncedValueWithCleanup(t,r){const o=this;ke(()=>(o.state[t]!==r&&o.set(t,r),()=>{o.set(t,void 0)}),[o,t,r])}useSyncedValues(t){const r=this;{y.useDebugValue(t,u=>Object.keys(u));const i=y.useRef(Object.keys(t)).current,l=Object.keys(t);(i.length!==l.length||i.some((u,f)=>u!==l[f]))&&console.error("ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.")}const o=Object.values(t);ke(()=>{r.update(t)},[r,...o])}useControlledProp(t,r){y.useDebugValue(t);const o=this,i=r!==void 0;ke(()=>{i&&!Object.is(o.state[t],r)&&o.setState({...o.state,[t]:r})},[o,t,r,i]);{const l=this.controlledValues??(this.controlledValues=new Map);l.has(t)||l.set(t,i);const u=l.get(t);u!==void 0&&u!==i&&console.error(`A component is changing the ${u?"":"un"}controlled state of ${t.toString()} to be ${u?"un":""}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`)}}select(t,r,o,i){const l=this.selectors[t];return l(this.state,r,o,i)}useState(t,r,o,i){return y.useDebugValue(t),Py(this,this.selectors[t],r,o,i)}useContextCallback(t,r){y.useDebugValue(t);const o=xe(r??Dt);this.context[t]=o}useStateSetter(t){const r=y.useRef(void 0);return r.current===void 0&&(r.current=o=>{this.set(t,o)}),r.current}observe(t,r){let o;typeof t=="function"?o=t:o=this.selectors[t];let i=o(this.state);return r(i,i,this),this.subscribe(l=>{const u=o(l);if(!Object.is(i,u)){const f=i;i=u,r(u,f,this)}})}};const zS={open:t=>t.open,transitionStatus:t=>t.transitionStatus,domReferenceElement:t=>t.domReferenceElement,referenceElement:t=>t.positionReference??t.referenceElement,floatingElement:t=>t.floatingElement,floatingId:t=>t.floatingId};var Ay=class extends Ed{constructor(r){const{syncOnly:o,nested:i,onOpenChange:l,triggerElements:u,...f}=r;super({...f,positionReference:f.referenceElement,domReferenceElement:f.referenceElement},{onOpenChange:l,dataRef:{current:{}},events:yS(),nested:i,triggerElements:u},zS);Ie(this,"syncOpenEvent",(r,o)=>{(!r||!this.state.open||o!=null&&Mb(o))&&(this.context.dataRef.current.openEvent=r?o:void 0)});Ie(this,"dispatchOpenChange",(r,o)=>{this.syncOpenEvent(r,o.event);const i={open:r,reason:o.reason,nativeEvent:o.event,nested:this.context.nested,triggerElement:o.trigger};this.context.events.emit("openchange",i)});Ie(this,"setOpen",(r,o)=>{var i,l,u,f;if(this.syncOnly){(l=(i=this.context).onOpenChange)==null||l.call(i,r,o);return}this.dispatchOpenChange(r,o),(f=(u=this.context).onOpenChange)==null||f.call(u,r,o)});this.syncOnly=o}};function Cd(t){y.useEffect(t,Ko)}const nl=0;var qo=class Oy{constructor(){Ie(this,"currentId",nl);Ie(this,"clear",()=>{this.currentId!==nl&&(clearTimeout(this.currentId),this.currentId=nl)});Ie(this,"disposeEffect",()=>this.clear)}static create(){return new Oy}start(r,o){this.clear(),this.currentId=setTimeout(()=>{this.currentId=nl,o()},r)}isStarted(){return this.currentId!==nl}};function Nn(){const t=hn(qo.create).current;return Cd(t.disposeEffect),t}function $t(t){const r=hn(jS,t).current;return r.next=t,ke(r.effect),r}function jS(t){const r={current:t,next:t,effect:()=>{r.current=r.next}};return r}const Sa=null;let sm=globalThis.requestAnimationFrame;var $S=class{constructor(){Ie(this,"callbacks",[]);Ie(this,"callbacksCount",0);Ie(this,"nextId",1);Ie(this,"startId",1);Ie(this,"isScheduled",!1);Ie(this,"tick",t=>{var i;this.isScheduled=!1;const r=this.callbacks,o=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,o>0)for(let l=0;l<r.length;l+=1)(i=r[l])==null||i.call(r,t)})}request(t){const r=this.nextId;this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1;const o=sm!==requestAnimationFrame&&(sm=requestAnimationFrame,!0);return(!this.isScheduled||o)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),r}cancel(t){const r=t-this.startId;r<0||r>=this.callbacks.length||this.callbacks[r]!==null&&(this.callbacks[r]=null,this.callbacksCount-=1)}};let Ra=new $S;var Bo=class My{constructor(){Ie(this,"currentId",Sa);Ie(this,"cancel",()=>{this.currentId!==Sa&&(Ra.cancel(this.currentId),this.currentId=Sa)});Ie(this,"disposeEffect",()=>this.cancel)}static create(){return new My}static request(r){return Ra.request(r)}static cancel(r){return Ra.cancel(r)}request(r){this.cancel(),this.currentId=Ra.request(()=>{this.currentId=Sa,r()})}};function vi(){const t=hn(Bo.create).current;return Cd(t.disposeEffect),t}function im(t,r){return t.getAnimations(r).filter(o=>{var l;const i=(l=o.effect)==null?void 0:l.getTiming();return(i==null?void 0:i.duration)!==1/0&&(i==null?void 0:i.iterations)!==1/0})}function co(t){return t==null?t:"current"in t?t.current:t}let Ea=null;function VS(t){if(!Ea){const r=[];Ea=r,queueMicrotask(()=>{Ea=null,Qo.flushSync(()=>{for(const o of r)o()})})}Ea.push(t)}function BS(t,r=!1,o=!1){const i=vi();return xe((l,u=null)=>{i.cancel();const f=co(t);if(f==null)return;const d=f,h=()=>{if(!o){Qo.flushSync(l);return}VS(()=>{u!=null&&u.aborted||l()})};if(typeof d.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){l();return}function g(){Promise.all(im(d).map(m=>m.finished.then(Dt))).then(()=>{u!=null&&u.aborted||h()},()=>{if(!(u!=null&&u.aborted)){if(im(d).some(m=>m.pending||m.playState!=="finished")){g();return}h()}})}if(r){const m=ry;if(!d.hasAttribute(m)){i.request(g);return}const v=new MutationObserver(()=>{d.hasAttribute(m)||(v.disconnect(),g())});v.observe(d,{attributes:!0,attributeFilter:[m]}),u==null||u.addEventListener("abort",()=>v.disconnect(),{once:!0});return}i.request(g)})}function bl(t){const{enabled:r=!0,open:o,ref:i,batch:l=!1,onComplete:u}=t,f=xe(u),d=BS(i,o,l);y.useEffect(()=>{if(!r)return;const h=new AbortController;return d(f,h.signal),()=>{h.abort()}},[r,o,f,d])}function Td(t,r=!1,o=!1,i=!1){const[l,u]=y.useState(t&&r?"idle":void 0),[f,d]=y.useState(t&&!i);return t&&!f&&(d(!0),u("starting")),!t&&f&&l!=="ending"&&!o&&u("ending"),!t&&!f&&l==="ending"&&u(void 0),ke(()=>{if(!t&&f&&l!=="ending"&&o){const h=Bo.request(()=>{u("ending")});return()=>{Bo.cancel(h)}}},[t,f,l,o]),ke(()=>{if(!t||r||l===void 0)return;const h=Bo.request(()=>{u(void 0)});return()=>{Bo.cancel(h)}},[r,t,l]),ke(()=>{if(!t||!r)return;t&&f&&l!=="idle"&&u("starting");const h=Bo.request(()=>{u("idle")});return()=>{Bo.cancel(h)}},[r,t,f,l]),{mounted:f,setMounted:d,transitionStatus:l}}function Zo(t,r,o=!0){return t.filter(i=>i.parentId===r).flatMap(i=>{var l;return[...!o||(l=i.context)!=null&&l.open?[i]:[],...Zo(t,i.id,o)]})}function lm(t,r){var l;let o=[],i=(l=t.find(u=>u.id===r))==null?void 0:l.parentId;for(;i;){const u=t.find(f=>f.id===i);i=u==null?void 0:u.parentId,u&&(o=o.concat(u))}return o}function HS(){return!1}function US(t){return{escapeKey:typeof t=="boolean"?t:(t==null?void 0:t.escapeKey)??!1,outsidePress:typeof t=="boolean"?t:(t==null?void 0:t.outsidePress)??!0}}function Ly(t,r={}){const{enabled:o=!0,escapeKey:i=!0,outsidePress:l=!0,outsidePressEvent:u="sloppy",referencePress:f=HS,bubbles:d,externalTree:h}=r,g=t.useState("open"),m=t.useState("floatingElement"),{dataRef:v,events:x}=t.context,R=bi(h),w=xe(typeof l=="function"?l:()=>!1),E=typeof l=="function"?w:l,b=E!==!1,C=xe(()=>u),{escapeKey:S,outsidePress:P}=US(d),T=y.useRef(!1),A=y.useRef(!1),O=y.useRef(!1),D=y.useRef(!1),j=y.useRef(!1),z=y.useRef(""),N=y.useRef(null),G=Nn(),X=Nn(),W=Nn(),Y=xe(()=>{X.clear(),v.current.insideReactTree=!1}),L=xe(K=>{var J;const re=(J=v.current.floatingContext)==null?void 0:J.nodeId;return(R?Zo(R.nodesRef.current,re):[]).some(ne=>{var ae;return((ae=ne.context)==null?void 0:ae.open)&&!ne.context.dataRef.current[K]})}),Q=xe(K=>mf(K,t.select("floatingElement"))||mf(K,t.select("domReferenceElement"))),ie=xe(K=>{f()&&t.setOpen(!1,nt(bd,K.nativeEvent))}),$=xe(K=>{if(!g||!o||!i||K.key!=="Escape")return;const re=Ob(K)?K.nativeEvent:K;if(j.current||re.isComposing||!S&&L("__escapeKeyBubbles"))return;const J=nt(uS,re);t.setOpen(!1,J),J.isCanceled||K.preventDefault(),!S&&!J.isPropagationAllowed&&K.stopPropagation()}),H=xe(()=>{v.current.insideReactTree=!0,X.start(0,Y)}),B=xe(K=>{if(!g||!o||K.button!==0)return;const re=pn(K.nativeEvent);$e(t.select("floatingElement"),re)&&(T.current||(T.current=!0,A.current=!1))}),I=xe(K=>{!g||!o||(K.defaultPrevented||K.nativeEvent.defaultPrevented)&&T.current&&(A.current=!0)});y.useEffect(()=>{function K(re){re.open||(D.current=!1)}return x.on("openchange",K),()=>{x.off("openchange",K)}},[x]),y.useEffect(()=>Y,[Y]),y.useEffect(()=>{if(!g||!o)return g||(D.current=!1,j.current=!1,z.current="",N.current=null),Y;v.current.__escapeKeyBubbles=S,v.current.__outsidePressBubbles=P;const K=new qo,re=ut(m);function J(){W.clear(),j.current=!0}function ne(){j.current=!0,W.start(yo?5:0,()=>{j.current=!1})}function ae(){O.current=!0,K.start(0,()=>{O.current=!1})}function le(){T.current=!1,A.current=!1}function me(){const se=z.current,fe=se==="pen"||!se?"mouse":se,Me=C(),he=typeof Me=="function"?Me():Me;return typeof he=="string"?he:he[fe]}function Ce(se){const fe=me();return fe==="intentional"&&se.type!=="click"||fe==="sloppy"&&se.type==="click"}function be(se){var he;const fe=(he=v.current.floatingContext)==null?void 0:he.nodeId,Me=R&&Zo(R.nodesRef.current,fe).some(Le=>{var Ke;return mf(se,(Ke=Le.context)==null?void 0:Ke.elements.floating)});return Q(se)||Me}function Ae(se){if(Ce(se)){se.type!=="click"&&!Q(se)&&(K.clear(),O.current=!1),Y();return}if(v.current.insideReactTree){Y();return}const fe=pn(se),Me=`[${fi("inert")}]`,he=ct(fe)?fe.getRootNode():null,Le=Array.from((Yo(he)?he:ut(t.select("floatingElement"))).querySelectorAll(Me)),Ke=t.context.triggerElements;if(fe&&(Ke.hasElement(fe)||Ke.hasMatchingElement(rt=>$e(rt,fe))))return;let et=ct(fe)?fe:null;for(;et&&!fo(et);){const rt=Ur(et);if(fo(rt)||!ct(rt))break;et=rt}if(!(Le.length&&ct(fe)&&!Zb(fe)&&!$e(fe,t.select("floatingElement"))&&Le.every(rt=>!$e(et,rt)))){if(vt(fe)&&!("touches"in se)){const rt=fo(fe),Ft=Yn(fe),Lt=/auto|scroll/,_n=rt||Lt.test(Ft.overflowX),Jt=rt||Lt.test(Ft.overflowY),en=_n&&fe.clientWidth>0&&fe.scrollWidth>fe.clientWidth,Xt=Jt&&fe.clientHeight>0&&fe.scrollHeight>fe.clientHeight,qt=Ft.direction==="rtl",Cn=Xt&&(qt?se.offsetX<=fe.offsetWidth-fe.clientWidth:se.offsetX>fe.clientWidth),St=en&&se.offsetY>fe.clientHeight;if(Cn||St)return}if(!be(se)){if(me()==="intentional"){if(se.detail!==0&&!mi(se)&&!D.current)return;if(O.current){K.clear(),O.current=!1;return}}typeof E=="function"&&!E(se)||L("__outsidePressBubbles")||(t.setOpen(!1,nt(aS,se)),Y())}}}function we(se){me()!=="sloppy"||se.pointerType==="touch"||!t.select("open")||!o||Q(se)||Ae(se)}function Se(se){if(me()!=="sloppy"||!t.select("open")||!o||Q(se))return;const fe=se.touches[0];fe&&(N.current={startTime:Date.now(),startX:fe.clientX,startY:fe.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},G.start(1e3,()=>{N.current&&(N.current.dismissOnTouchEnd=!1,N.current.dismissOnMouseDown=!1)}))}function ze(se,fe){const Me=pn(se);if(!Me)return;const he=tt(Me,se.type,()=>{fe(se),he()})}function Ve(se){z.current="touch",ze(se,Se)}function qe(se){G.clear(),se.type==="pointerdown"&&(se.button===0&&(D.current=!0),z.current=se.pointerType),!(se.type==="mousedown"&&N.current&&!N.current.dismissOnMouseDown)&&ze(se,fe=>{fe.type==="pointerdown"?we(fe):Ae(fe)})}function Te(se){if(se.type==="pointercancel"&&(D.current=!1),!T.current)return;const fe=A.current;if(le(),me()==="intentional"){if(se.type==="pointercancel"){fe&&ae();return}if(!be(se)){if(fe){ae();return}typeof E=="function"&&!E(se)||(K.clear(),O.current=!0,Y())}}}function Fe(se){if(me()!=="sloppy"||!N.current||Q(se))return;const fe=se.touches[0];if(!fe)return;const Me=Math.abs(fe.clientX-N.current.startX),he=Math.abs(fe.clientY-N.current.startY),Le=Math.sqrt(Me*Me+he*he);Le>5&&(N.current.dismissOnTouchEnd=!0),Le>10&&(Ae(se),G.clear(),N.current=null)}function ge(se){ze(se,Fe)}function We(se){me()!=="sloppy"||!N.current||Q(se)||(N.current.dismissOnTouchEnd&&Ae(se),G.clear(),N.current=null)}function lt(se){ze(se,We)}const ft=Br(i&&Br(tt(re,"keydown",$),tt(re,"compositionstart",J),tt(re,"compositionend",ne)),b&&Br(tt(re,"click",qe,!0),tt(re,"pointerdown",qe,!0),tt(re,"pointerup",Te,!0),tt(re,"pointercancel",Te,!0),tt(re,"mousedown",qe,!0),tt(re,"mouseup",Te,!0),tt(re,"touchstart",Ve,{capture:!0,passive:!0}),tt(re,"touchmove",ge,{capture:!0,passive:!0}),tt(re,"touchend",lt,{capture:!0,passive:!0})));return()=>{ft(),K.clear(),le(),O.current=!1}},[v,m,i,b,E,g,o,S,P,$,Y,C,L,Q,R,t,G,W]);const F=y.useMemo(()=>({onKeyDown:$,onPointerDown:ie,onClick:ie}),[$,ie]),q=y.useMemo(()=>({onKeyDown:$,onPointerDown:I,onMouseDown:I,onClickCapture:H,onMouseDownCapture(K){H(),B(K)},onPointerDownCapture(K){H(),B(K)},onMouseUpCapture:H,onTouchEndCapture:H,onTouchMoveCapture:H}),[$,H,B,I]);return y.useMemo(()=>o?{reference:F,floating:q,trigger:F}:{},[o,F,q])}function WS(t){const{popupStore:r,treatPopupAsFloatingElement:o=!1,floatingRootContext:i,floatingId:l,nested:u,onOpenChange:f}=t,d=r.useState("open"),h=r.useState("activeTriggerElement"),g=r.useState(o?"popupElement":"positionerElement"),m=f;return r.useSyncedValue("floatingId",l),ke(()=>{const v={open:d,floatingId:l,referenceElement:h,floatingElement:g};ct(h)&&(v.domReferenceElement=h),i.state.positionReference===i.state.referenceElement&&(v.positionReference=h),i.update(v)},[d,l,h,g,i]),i.context.onOpenChange=m,i.context.nested=u,i}function Ny(t){const{open:r,ref:o,preventUnmountOnClose:i,setPreventUnmountOnClose:l,onUnmount:u,animateInitialOpen:f}=t,d=xe(l),{mounted:h,setMounted:g,transitionStatus:m}=Td(r,!1,!1,f),v=r?!1:i;ke(()=>{r&&d(!1)},[r,d]);const x=y.useRef(h),R=y.useRef(!1),w=Sd(),E=()=>{x.current=!1,g(!1),u()};ke(()=>{x.current=h,R.current&&(R.current=!1,!r&&h&&E())});const b=xe(()=>{if(x.current){if(r){R.current=!0,w();return}E()}});return bl({enabled:h&&!r&&!v,open:r,ref:o,onComplete(){r||b()}}),{mounted:h,transitionStatus:m,preventUnmountingOnClose:v,forceUnmount:b}}const _y={tabIndex:-1,[Lb]:""};function KS(t,r=!1){const o=bu(),i=Su()!=null,l=hn(()=>t(o,i)).current;return WS({popupStore:l,treatPopupAsFloatingElement:r,floatingRootContext:l.state.floatingRootContext,floatingId:o,nested:i,onOpenChange:l.setOpen}),l}function YS({handle:t,store:r}){return ke(()=>t.attachStore(r),[t,r]),null}function am(t){const r=t.context.triggerElements.size;t.select("open")&&t.state.triggerCount!==r&&t.set("triggerCount",r)}function GS(t,r){const o=y.useRef(null);return xe(i=>{const l=o.current;if(l!==null){if(l.element===i&&l.store===r&&l.id===t)return;o.current=null;const u=l.store;u.context.triggerElements.getById(l.id)===l.element&&(u.context.triggerElements.delete(l.id),am(u))}i!==null&&t!==void 0&&(o.current={store:r,id:t,element:i},r.context.triggerElements.add(t,i),am(r))})}function XS(t,r,o,i=!1){let l=t.preventUnmountingOnClose;r?l=!1:i&&(l=!0);const u=(o==null?void 0:o.id)??null;let f=t.activeTriggerId,d=t.activeTriggerElement;return(u||r)&&(f=u,d=o??null),{open:r,preventUnmountingOnClose:l,activeTriggerId:f,activeTriggerElement:d,openedWithoutTrigger:r?o==null:t.openedWithoutTrigger}}function Dy(t){let r=!1;return t.preventUnmountOnClose=()=>{r=!0},()=>r}function qS(t,r,o,i={}){var m,v,x;const l=o.reason,u=l===yr,f=r&&l==="trigger-focus",d=!r&&(l==="trigger-press"||l==="escape-key"),h=Dy(o);if((v=(m=t.context).onOpenChange)==null||v.call(m,r,o),o.isCanceled)return;(x=i.onBeforeDispatch)==null||x.call(i),t.state.floatingRootContext.dispatchOpenChange(r,o);const g=()=>{const R=XS(t.state,r,o.trigger,h()),w={...i.extraState,...R};f?w.instantType="focus":d?w.instantType="dismiss":u&&(w.instantType=void 0),t.update(w)};u?Qo.flushSync(g):g()}function ZS(t,r,o,i){const l=o.useState("isMountedByTrigger",t),u=GS(t,o),f=xe(h=>{const g=o.select("open"),m=o.select("activeTriggerId");if(m===t){const v={activeTriggerElement:h,...g?i:null};o.update(v);return}if(m==null&&g&&!o.state.openedWithoutTrigger){const v={activeTriggerId:t??null,activeTriggerElement:h,...i};o.update(v)}}),d=xe(h=>{u(h),h&&f(h)});return ke(()=>(d(r.current),()=>d(null)),[d,r,o,t]),ke(()=>{if(l){const h={activeTriggerElement:r.current,...i};o.update(h)}},[l,o,r,...Object.values(i)]),{registerTrigger:d,isMountedByThisTrigger:l}}function QS(t,r={}){const{closeOnActiveTriggerUnmount:o=!1}=r,i=y.useRef(null),l=t.useState("open"),u=t.useState("triggerCount"),f=t.useState("activeTriggerId"),d=t.useState("activeTriggerElement");ke(()=>{if(!l){i.current=null,t.state.triggerCount!==0&&t.set("triggerCount",0),t.state.openedWithoutTrigger&&t.set("openedWithoutTrigger",!1);return}const h=t.context.triggerElements.size,g={};t.state.triggerCount!==h&&(g.triggerCount=h);const m=t.select("activeTriggerId");let v=null;if(m){const x=t.context.triggerElements.getById(m);if(x)i.current=m,x!==t.state.activeTriggerElement&&(g.activeTriggerElement=x);else{for(const[R,w]of t.context.triggerElements.entries())if(w===t.state.activeTriggerElement){g.activeTriggerId=R,g.activeTriggerElement=w,i.current=R;break}g.activeTriggerId===void 0&&(i.current===m?v=m:i.current=null)}}else i.current=null;if(!v&&!m&&!t.state.openedWithoutTrigger&&h===1){const x=t.context.triggerElements.entries().next();if(!x.done){const[R,w]=x.value;g.activeTriggerId=R,g.activeTriggerElement=w,i.current=R}}(g.triggerCount!==void 0||g.activeTriggerId!==void 0||g.activeTriggerElement!==void 0)&&t.update(g),v&&o&&queueMicrotask(()=>{if(t.select("open")&&t.select("activeTriggerId")===v&&!t.context.triggerElements.getById(v)){const x=nt(Xo);t.setOpen(!1,x),x.isCanceled||t.update({activeTriggerId:null,activeTriggerElement:null})}})},[l,t,u,f,d,o])}function JS(t,r,o,i){const{mounted:l,transitionStatus:u,forceUnmount:f}=Ny({open:t,ref:r.context.popupRef,preventUnmountOnClose:r.useState("preventUnmountingOnClose"),setPreventUnmountOnClose:d=>r.set("preventUnmountingOnClose",d),animateInitialOpen:i,onUnmount(){var d,h;r.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),(h=(d=r.context).onOpenChangeComplete)==null||h.call(d,!1)}});return hn(()=>(r.set("mounted",l),null)),r.useSyncedValues({mounted:l,transitionStatus:u}),{forceUnmount:f,transitionStatus:u}}function eR(t,r){t.useSyncedValues(r),ke(()=>()=>{t.update({activeTriggerProps:Vt,inactiveTriggerProps:Vt,popupProps:Vt})},[t])}function tR(t,r){return r!=null&&!Uo(r)?0:typeof t=="function"?t():t}function gl(t,r,o){const i=tR(t,o);return typeof i=="number"?i:i==null?void 0:i[r]}function um(t){return typeof t=="function"?t():t}function Fy(t,r){return r||t==="click"||t==="mousedown"}function nR(t){return(t==null?void 0:t.includes("mouse"))&&t!=="mousedown"}var rR=class zy{constructor(){Ie(this,"pointerType");Ie(this,"interactedInside",!1);Ie(this,"handler");Ie(this,"blockMouseMove",!0);Ie(this,"performedPointerEventsMutation",!1);Ie(this,"pointerEventsScopeElement",null);Ie(this,"pointerEventsReferenceElement",null);Ie(this,"pointerEventsFloatingElement",null);Ie(this,"restTimeoutPending",!1);Ie(this,"openChangeTimeout",new qo);Ie(this,"restTimeout",new qo);Ie(this,"handleCloseOptions");Ie(this,"dispose",()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()});Ie(this,"disposeEffect",()=>this.dispose)}static create(){return new zy}};const ou=new WeakMap;function su(t){var o,i,l;if(!t.performedPointerEventsMutation)return;const r=t.pointerEventsScopeElement;r&&ou.get(r)===t&&((o=t.pointerEventsScopeElement)==null||o.style.removeProperty("pointer-events"),(i=t.pointerEventsReferenceElement)==null||i.style.removeProperty("pointer-events"),(l=t.pointerEventsFloatingElement)==null||l.style.removeProperty("pointer-events"),ou.delete(r)),t.performedPointerEventsMutation=!1,t.pointerEventsScopeElement=null,t.pointerEventsReferenceElement=null,t.pointerEventsFloatingElement=null}function jy(t,r){const{scopeElement:o,referenceElement:i,floatingElement:l}=r,u=ou.get(o);u&&u!==t&&su(u),su(t),t.performedPointerEventsMutation=!0,t.pointerEventsScopeElement=o,t.pointerEventsReferenceElement=i,t.pointerEventsFloatingElement=l,ou.set(o,t),o.style.pointerEvents="none",i.style.pointerEvents="auto",l.style.pointerEvents="auto"}function Id(t){const r=t.context.dataRef.current,o=hn(()=>r.hoverInteractionState??rR.create()).current;return r.hoverInteractionState||(r.hoverInteractionState=o),Cd(r.hoverInteractionState.disposeEffect),r.hoverInteractionState}function oR(t,r={}){const{enabled:o=!0,closeDelay:i=0,nodeId:l}=r,u=t.useState("open"),f=t.useState("floatingElement"),d=t.useState("domReferenceElement"),{dataRef:h}=t.context,g=bi(),m=Su(),v=Id(t),x=Nn(),R=xe(()=>{var b;return Fy((b=h.current.openEvent)==null?void 0:b.type,v.interactedInside)}),w=xe(()=>{var b;return nR((b=h.current.openEvent)==null?void 0:b.type)}),E=xe(()=>{su(v)});ke(()=>{u||(v.pointerType=void 0,v.restTimeoutPending=!1,v.interactedInside=!1,E())},[u,v,E]),y.useEffect(()=>E,[E]),ke(()=>{var b,C,S,P,T;if(o&&u&&(b=v.handleCloseOptions)!=null&&b.blockPointerEvents&&w()&&ct(d)&&f){const A=d,O=f,D=ut(f),j=(S=(C=g==null?void 0:g.nodesRef.current.find(X=>X.id===m))==null?void 0:C.context)==null?void 0:S.elements.floating;j&&(j.style.pointerEvents="");const z=v.pointerEventsScopeElement!==O?v.pointerEventsScopeElement:null,N=j!==O?j:null,G=((T=(P=v.handleCloseOptions)==null?void 0:P.getScope)==null?void 0:T.call(P))??z??N??yi(A,"[data-rootownerid]")??D.body;return jy(v,{scopeElement:G,referenceElement:A,floatingElement:O}),()=>{E()}}},[o,u,d,f,v,w,g,m,E]),y.useEffect(()=>{if(!o)return;function b(){return!!(g&&m&&Zo(g.nodesRef.current,m).length>0)}function C(D){const j=gl(i,"close",v.pointerType),z=()=>{t.setOpen(!1,nt(yr,D)),g==null||g.events.emit("floating.closed",D)};j?v.openChangeTimeout.start(j,z):(v.openChangeTimeout.clear(),z())}function S(D){const j=pn(D);if(!Qb(j)){v.interactedInside=!1;return}v.interactedInside=yi(j,"[aria-haspopup]")!=null}function P(){v.openChangeTimeout.clear(),x.clear(),g==null||g.events.off("floating.closed",A),E()}function T(D){var N;if(b()&&g){g.events.on("floating.closed",A);return}if(nu(D.relatedTarget,t.context.triggerElements))return;const j=((N=h.current.floatingContext)==null?void 0:N.nodeId)??l,z=D.relatedTarget;if(!(g&&j&&ct(z)&&Zo(g.nodesRef.current,j,!1).some(G=>{var X;return $e((X=G.context)==null?void 0:X.elements.floating,z)}))){if(v.handler){v.handler(D);return}E(),w()&&!R()&&C(D)}}function A(D){!g||!m||b()||x.start(0,()=>{g.events.off("floating.closed",A),t.setOpen(!1,nt(yr,D)),g.events.emit("floating.closed",D)})}const O=f;return Br(O&&tt(O,"mouseenter",P),O&&tt(O,"mouseleave",T),O&&tt(O,"pointerdown",S,!0),()=>{g==null||g.events.off("floating.closed",A)})},[o,f,t,h,i,l,w,R,E,v,g,m,x])}const sR={current:null};function iR(t,r={}){const{enabled:o=!0,delay:i=0,handleClose:l=null,mouseOnly:u=!1,restMs:f=0,move:d=!0,triggerElementRef:h=sR,externalTree:g,isActiveTrigger:m=!0,getHandleCloseContext:v,isClosing:x,shouldOpen:R,guardStaleOpen:w=!1}=r,{dataRef:E,events:b}=t.context,C=bi(g),S=Id(t),P=y.useRef(!1),T=$t(l),A=$t(i),O=$t(f),D=$t(o),j=$t(R),z=$t(x),N=xe(()=>{var L;return Fy((L=E.current.openEvent)==null?void 0:L.type,S.interactedInside)}),G=xe(()=>{var L;return((L=j.current)==null?void 0:L.call(j))!==!1}),X=xe((L,Q,ie)=>{const $=t.context.triggerElements;if($.hasElement(Q))return!L||!$e(L,Q);if(!ct(ie))return!1;const H=ie;return $.hasMatchingElement(B=>$e(B,H))&&(!L||!$e(L,H))}),W=xe(()=>{S.handler&&(ut(t.select("domReferenceElement")).removeEventListener("mousemove",S.handler),S.handler=void 0)}),Y=xe(()=>{su(S)});return m&&(S.handleCloseOptions=l==null?void 0:l.__options),y.useEffect(()=>W,[W]),y.useEffect(()=>{if(!o)return;function L(Q){Q.open?P.current=!1:(P.current=Q.reason===yr,W(),S.openChangeTimeout.clear(),S.restTimeout.clear(),S.blockMouseMove=!0,S.restTimeoutPending=!1)}return b.on("openchange",L),()=>{b.off("openchange",L)}},[o,b,S,W]),y.useEffect(()=>{if(!o)return;function L(I,F=!0){const q=gl(A.current,"close",S.pointerType);q?S.openChangeTimeout.start(q,()=>{t.setOpen(!1,nt(yr,I)),C==null||C.events.emit("floating.closed",I)}):F&&(S.openChangeTimeout.clear(),t.setOpen(!1,nt(yr,I)),C==null||C.events.emit("floating.closed",I))}const Q=h.current??(m?t.select("domReferenceElement"):null);if(!ct(Q))return;function ie(I){var ze;if(S.openChangeTimeout.clear(),S.blockMouseMove=!1,u&&!Uo(S.pointerType))return;const F=um(O.current),q=gl(A.current,"open",S.pointerType),K=pn(I),re=I.currentTarget??null,J=t.select("domReferenceElement");let ne=re;if(ct(K)&&!t.context.triggerElements.hasElement(K)){for(const Ve of t.context.triggerElements.elements())if($e(Ve,K)){ne=Ve;break}}ct(re)&&ct(J)&&!t.context.triggerElements.hasElement(re)&&$e(re,J)&&(ne=J);const ae=ne==null?!1:X(J,ne,K),le=t.select("open"),me=((ze=z.current)==null?void 0:ze.call(z))??t.select("transitionStatus")==="ending",Ce=!le&&me&&P.current,be=!ae&&ct(ne)&&ct(J)&&$e(J,ne)&&Ce,Ae=F>0&&!q,we=ae&&(le||Ce)||be,Se=!le||ae;if(we){G()&&t.setOpen(!0,nt(yr,I,ne));return}Ae||(q?S.openChangeTimeout.start(q,()=>{Se&&G()&&t.setOpen(!0,nt(yr,I,ne))}):Se&&G()&&t.setOpen(!0,nt(yr,I,ne)))}function $(I){if(N()){Y();return}W();const F=t.select("domReferenceElement"),q=ut(F);S.restTimeout.clear(),S.restTimeoutPending=!1;const K=E.current.floatingContext??(v==null?void 0:v());if(!nu(I.relatedTarget,t.context.triggerElements)){if(T.current&&K){t.select("open")||S.openChangeTimeout.clear();const re=h.current;S.handler=T.current({...K,tree:C,x:I.clientX,y:I.clientY,onClose(){Y(),W(),D.current&&!N()&&re===t.select("domReferenceElement")&&L(I,!0)}}),q.addEventListener("mousemove",S.handler),S.handler(I);return}(S.pointerType!=="touch"||!$e(t.select("floatingElement"),I.relatedTarget))&&L(I)}}function H(I){$e(Q,I.relatedTarget)||(S.openChangeTimeout.clear(),S.restTimeout.clear(),S.restTimeoutPending=!1)}const B=w?tt(Q,"mouseout",H):void 0;return d?Br(tt(Q,"mousemove",ie,{once:!0}),tt(Q,"mouseenter",ie),tt(Q,"mouseleave",$),B):Br(tt(Q,"mouseenter",ie),tt(Q,"mouseleave",$),B)},[W,Y,E,A,t,o,T,S,m,X,N,u,d,O,h,C,D,v,z,G,w]),y.useMemo(()=>{if(!o)return;function L(Q){S.pointerType=Q.pointerType}return{onPointerDown:L,onPointerEnter:L,onMouseMove(Q){var K,re,J;const{nativeEvent:ie}=Q,$=Q.currentTarget,H=t.select("domReferenceElement"),B=t.select("open"),I=X(H,$,Q.target);if(u&&!Uo(S.pointerType))return;if(B&&I&&((K=S.handleCloseOptions)!=null&&K.blockPointerEvents)){const ne=t.select("floatingElement");if(ne){const ae=((J=(re=S.handleCloseOptions)==null?void 0:re.getScope)==null?void 0:J.call(re))??$.ownerDocument.body;jy(S,{scopeElement:ae,referenceElement:$,floatingElement:ne})}}const F=um(O.current);if(B&&!I||F===0||!I&&S.restTimeoutPending&&Q.movementX**2+Q.movementY**2<2)return;S.restTimeout.clear();function q(){if(S.restTimeoutPending=!1,N())return;const ne=t.select("open");!S.blockMouseMove&&(!ne||I)&&G()&&t.setOpen(!0,nt(yr,ie,$))}S.pointerType==="touch"?Qo.flushSync(()=>{q()}):I&&B?q():(S.restTimeoutPending=!0,S.restTimeout.start(F,q))}}},[o,S,N,X,u,t,O,G])}const cm=.1,lR=cm*cm,wt=.5;function Ca(t,r,o,i,l,u){return i>=r!=u>=r&&t<=(l-o)*(r-i)/(u-i)+o}function Ta(t,r,o,i,l,u,f,d,h,g){let m=!1;return Ca(t,r,o,i,l,u)&&(m=!m),Ca(t,r,l,u,f,d)&&(m=!m),Ca(t,r,f,d,h,g)&&(m=!m),Ca(t,r,h,g,o,i)&&(m=!m),m}function aR(t,r,o){return t>=o.x&&t<=o.x+o.width&&r>=o.y&&r<=o.y+o.height}function Ia(t,r,o,i,l,u){return t>=Math.min(o,l)&&t<=Math.max(o,l)&&r>=Math.min(i,u)&&r<=Math.max(i,u)}function uR(t={}){const{blockPointerEvents:r=!1}=t,o=new qo,i=({x:l,y:u,placement:f,elements:d,onClose:h,nodeId:g,tree:m})=>{const v=f==null?void 0:f.split("-")[0];let x=!1,R=null,w=null,E=typeof performance<"u"?performance.now():0;function b(S,P){const T=performance.now(),A=T-E;if(R===null||w===null||A===0)return R=S,w=P,E=T,!1;const O=S-R,D=P-w,j=O*O+D*D,z=A*A*lR;return R=S,w=P,E=T,j<z}function C(){o.clear(),h()}return function(P){o.clear();const T=d.domReference,A=d.floating;if(!T||!A||v==null||l==null||u==null)return;const{clientX:O,clientY:D}=P,j=pn(P),z=P.type==="mouseleave",N=$e(A,j),G=$e(T,j);if(N&&(x=!0,!z))return;if(G&&(x=!1,!z)){x=!0;return}if(z&&ct(P.relatedTarget)&&$e(A,P.relatedTarget))return;function X(){return!!(m&&Zo(m.nodesRef.current,g).length>0)}function W(){X()||C()}if(X())return;const Y=T.getBoundingClientRect(),L=A.getBoundingClientRect(),Q=l>L.right-L.width/2,ie=u>L.bottom-L.height/2,$=L.width>Y.width,H=L.height>Y.height,B=($?Y:L).left,I=($?Y:L).right,F=(H?Y:L).top,q=(H?Y:L).bottom;if(v==="top"&&u>=Y.bottom-1||v==="bottom"&&u<=Y.top+1||v==="left"&&l>=Y.right-1||v==="right"&&l<=Y.left+1){W();return}let K=!1;switch(v){case"top":K=Ia(O,D,B,Y.top+1,I,L.bottom-1);break;case"bottom":K=Ia(O,D,B,L.top+1,I,Y.bottom-1);break;case"left":K=Ia(O,D,L.right-1,q,Y.left+1,F);break;case"right":K=Ia(O,D,Y.right-1,q,L.left+1,F)}if(K)return;if(x&&!aR(O,D,Y)){W();return}if(!z&&b(O,D)){W();return}let re=!1;switch(v){case"top":{const J=$?wt/2:wt*4,ne=$||Q?l+J:l-J,ae=$?l-J:Q?l+J:l-J,le=u+wt+1,me=Q||$?L.bottom-wt:L.top,Ce=Q?$?L.bottom-wt:L.top:L.bottom-wt;re=Ta(O,D,ne,le,ae,le,L.left,me,L.right,Ce);break}case"bottom":{const J=$?wt/2:wt*4,ne=$||Q?l+J:l-J,ae=$?l-J:Q?l+J:l-J,le=u-wt,me=Q||$?L.top+wt:L.bottom,Ce=Q?$?L.top+wt:L.bottom:L.top+wt;re=Ta(O,D,ne,le,ae,le,L.left,me,L.right,Ce);break}case"left":{const J=H?wt/2:wt*4,ne=H||ie?u+J:u-J,ae=H?u-J:ie?u+J:u-J,le=l+wt+1,me=ie||H?L.right-wt:L.left,Ce=ie?H?L.right-wt:L.left:L.right-wt;re=Ta(O,D,me,L.top,Ce,L.bottom,le,ne,le,ae);break}case"right":{const J=H?wt/2:wt*4,ne=H||ie?u+J:u-J,ae=H?u-J:ie?u+J:u-J,le=l-wt,me=ie||H?L.left+wt:L.right,Ce=ie?H?L.left+wt:L.right:L.left+wt;re=Ta(O,D,le,ne,le,ae,me,L.top,Ce,L.bottom);break}}re?x||o.start(40,W):W()}};return i.__options={...t,blockPointerEvents:r},i}function cR(t,r,o=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new Ay({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:t,floatingId:r,syncOnly:!0,nested:o,onOpenChange:void 0}),floatingId:r,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Vt,inactiveTriggerProps:Vt,popupProps:Vt}}const cl=t=>t.triggerIdProp??t.activeTriggerId,iu=t=>t.openProp??t.open,fm=t=>{var r;return(((r=t.popupElement)==null?void 0:r.id)??t.floatingId)||void 0};function $y(t,r){return r!==void 0&&iu(t)&&cl(t)===r}function fR(t,r){return $y(t,r)?!0:r!==void 0&&iu(t)&&cl(t)==null&&!t.openedWithoutTrigger&&t.triggerCount===1}const dR={open:iu,mounted:t=>t.mounted,transitionStatus:t=>iu(t)&&!t.mounted?"starting":t.transitionStatus,floatingRootContext:t=>t.floatingRootContext,triggerCount:t=>t.triggerCount,preventUnmountingOnClose:t=>t.preventUnmountingOnClose,payload:t=>t.payload,activeTriggerId:cl,activeTriggerElement:t=>t.mounted?t.activeTriggerElement:null,popupId:fm,isTriggerActive:(t,r)=>r!==void 0&&cl(t)===r,isOpenedByTrigger:(t,r)=>$y(t,r),isMountedByTrigger:(t,r)=>r!==void 0&&cl(t)===r&&t.mounted,triggerProps:(t,r)=>r?t.activeTriggerProps:t.inactiveTriggerProps,triggerPopupId:(t,r)=>fR(t,r)?fm(t):void 0,popupProps:t=>t.popupProps,popupElement:t=>t.popupElement,positionerElement:t=>t.positionerElement};function pR(t){const r=y.useCallback(i=>t===void 0?Dt:t.subscribeStore(i),[t]),o=y.useCallback(()=>t===void 0?void 0:t.store,[t]);return Ru.useSyncExternalStore(r,o,()=>t==null?void 0:t.serverStore)}const Ef=ey&&yo;function hR(t,r={}){const{enabled:o=!0,delay:i}=r,{events:l,dataRef:u}=t.context,f=y.useRef(!1),d=y.useRef(null),h=y.useRef(!0),g=Nn();y.useEffect(()=>{const v=t.select("domReferenceElement");if(!o)return;const x=bt(v);function R(){const b=t.select("domReferenceElement");!t.select("open")&&vt(b)&&b===Mn(ut(b))&&(f.current=!0,d.current=b)}function w(){h.current=!0}function E(){h.current=!1}return Br(tt(x,"blur",R),Ef&&tt(x,"keydown",w,!0),Ef&&tt(x,"pointerdown",E,!0))},[t,o]),y.useEffect(()=>{if(!o)return;function v(x){if(x.reason==="trigger-press"||x.reason==="escape-key"){const R=t.select("domReferenceElement");ct(R)&&(d.current=R,f.current=!0)}}return l.on("openchange",v),()=>{l.off("openchange",v)}},[l,o,t]);const m=y.useMemo(()=>{function v(){f.current=!1,d.current=null}return{onMouseLeave(){v()},onFocus(x){const R=x.currentTarget;if(f.current){if(d.current===R)return;v()}const w=pn(x.nativeEvent);if(ct(w)){if(Ef&&!x.relatedTarget){if(!h.current&&!kl(w))return}else if(!Jb(w))return}const E=nu(x.relatedTarget,t.context.triggerElements),{nativeEvent:b,currentTarget:C}=x;if(t.select("open")&&E||!i){t.setOpen(!0,nt(vf,b,C));return}g.start(i,()=>{f.current||t.setOpen(!0,nt(vf,b,C))})},onBlur(x){v();const R=x.relatedTarget,w=x.nativeEvent,E=ct(R)&&R.hasAttribute(fi("focus-guard"))&&R.getAttribute("data-type")==="outside";g.start(0,()=>{var S;const b=t.select("domReferenceElement"),C=Mn(ut(b));!R&&C===b||$e((S=u.current.floatingContext)==null?void 0:S.refs.floating.current,C)||$e(b,C)||E||nu(R??C,t.context.triggerElements)||t.setOpen(!1,nt(vf,w))})}}},[u,i,t,g]);return y.useMemo(()=>o?{reference:m,trigger:m}:{},[o,m])}function Jo(t){return bu(t,"base-ui")}const Vy=y.forwardRef(function(r,o){const{children:i,container:l,className:u,render:f,style:d,...h}=r,{node:g,subtree:m}=Cy({container:l,ref:o,componentProps:r,elementProps:h});return!m&&!g?null:_.jsxs(y.Fragment,{children:[m,g&&Qo.createPortal(i,g)]})});Vy.displayName="FloatingPortalLite";const By=y.createContext(void 0);By.displayName="DirectionContext";function Pd(){var t;return((t=y.useContext(By))==null?void 0:t.direction)??"ltr"}function gR(t){const{nodeId:r,externalTree:o,rootContext:i}=t,l=i.useState("referenceElement"),u=i.useState("floatingElement"),f=i.useState("domReferenceElement"),d=i.useState("open"),h=i.useState("floatingId"),[g,m]=y.useState(null),v=y.useRef(null),x=bi(o),R=y.useMemo(()=>({reference:l,floating:u,domReference:f}),[l,u,f]),w=wb({...t,elements:{...R,...g&&{reference:g}}}),E=y.useCallback(P=>{const T=ct(P)?{getBoundingClientRect:()=>P.getBoundingClientRect(),getClientRects:()=>P.getClientRects(),contextElement:P}:P;m(T),w.refs.setReference(T)},[w.refs]),b=y.useMemo(()=>({...w.refs,setPositionReference:E,domReference:v}),[w.refs,E]),C=y.useMemo(()=>({...w.elements,domReference:f}),[w.elements,f]),S=y.useMemo(()=>({...w,dataRef:i.context.dataRef,open:d,onOpenChange:i.setOpen,events:i.context.events,floatingId:h,refs:b,elements:C,nodeId:r,rootStore:i}),[w,b,C,r,i,d,h]);return ke(()=>{f&&(v.current=f)},[f]),ke(()=>{i.context.dataRef.current.floatingContext=S;const P=x==null?void 0:x.nodesRef.current.find(T=>T.id===r);P&&(P.context=S)}),y.useMemo(()=>({...w,context:S,refs:b,elements:C,rootStore:i}),[w,b,C,S,i])}const mR=t=>({name:"arrow",options:t,async fn(r){const{x:o,y:i,placement:l,rects:u,platform:f,elements:d,middlewareData:h}=r,{element:g,padding:m=0}=Go(t,r)||{};if(g==null)return{};const v=W0(m),x={x:o,y:i},R=yd(l),w=md(R),E=await f.getDimensions(g),b=R==="y",C=b?"top":"left",S=b?"bottom":"right",P=b?"clientHeight":"clientWidth",T=u.reference[w]+u.reference[R]-x[R]-u.floating[w],A=x[R]-u.reference[R],O=d.floating[P]||u.floating[w],D=T/2-A/2,j=O/2-E[w]/2-1,z=Math.min(v[C],j),N=Math.min(v[S],j),G=z,X=O-E[w]-N,W=O/2-E[w]/2+D,Y=U0(G,W,X),L=!h.arrow&&Vr(l)!=null&&W!==Y&&u.reference[w]/2-(W<G?z:N)-E[w]/2<0,Q=L?W<G?W-G:W-X:0;return{[R]:x[R]+Q,data:{[R]:Y,centerOffset:W-Y-Q,...L&&{alignmentOffset:Q}},reset:L}}}),yR=(t,r)=>{const{name:o,fn:i}=mR(t);return{name:o,fn:i,options:[t,r]}},vR={name:"hide",async fn(t){const{width:r,height:o,x:i,y:l}=t.rects.reference,u=r===0&&o===0&&i===0&&l===0,f=await t.platform.detectOverflow(t,{elementContext:"reference"});return{data:{referenceHidden:f.top-o>=0||f.right-r>=0||f.bottom-o>=0||f.left-r>=0||u}}}},xR={sideX:"left",sideY:"top"},wR="--available-width",kR="--available-height",bR="--anchor-width",SR="--anchor-height",RR="--transform-origin",dm=wR,pm=kR;function Hy(t,r,o){const i=t==="inline-start"||t==="inline-end";return{top:"top",right:i?o?"inline-start":"inline-end":"right",bottom:"bottom",left:i?o?"inline-end":"inline-start":"left"}[r]}function hm(t,r,o){const{rects:i,placement:l}=t;return{side:Hy(r,ir(l),o),align:Vr(l)||"center",anchor:{width:i.reference.width,height:i.reference.height},positioner:{width:i.floating.width,height:i.floating.height}}}function Uy(t){return ER(t,gR)}function ER(t,r){var Tn,Gn;const{anchor:o,positionMethod:i="absolute",side:l="bottom",sideOffset:u=0,align:f="center",alignOffset:d=0,collisionBoundary:h,collisionPadding:g=5,sticky:m=!1,arrowPadding:v=5,disableAnchorTracking:x=!1,inline:R,keepMounted:w=!1,floatingRootContext:E,mounted:b,collisionAvoidance:C,shift:S,nodeId:P,adaptiveOrigin:T,lazyFlip:A=!1,externalTree:O}=t,D=C.side||"flip",j=C.align||"flip",z=C.fallbackAxisSide||"end",N=(S==null?void 0:S.crossAxis)??!1,G=S==null?void 0:S.rootBoundary,X=typeof o=="function"?o:void 0,W=xe(X),Y=X?W:o,L=$t(o),Q=$t(b),ie=Pd()==="rtl",[$,H]=y.useState(null);!b&&$!==null&&H(null);const B=A==="placement",I=$?ir($):null,F=$&&B?Vr($)||"center":null,q=I||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":ie?"left":"right","inline-start":ie?"right":"left"}[l],K=F||f,re=K==="center"?q:`${q}-${K}`;let J=g;typeof J=="number"?J={top:J,right:J,bottom:J,left:J}:J&&(J={top:J.top||0,right:J.right||0,bottom:J.bottom||0,left:J.left||0});const ne=1,ae=l==="bottom"?ne:0,le=l==="top"?ne:0,me=l==="right"?ne:0,Ce=l==="left"?ne:0,be={boundary:h==="clipping-ancestors"?"clippingAncestors":h,padding:J},Ae=y.useRef(null),we=$t(u),Se=$t(d),ze=typeof u!="function"?u:0,Ve=typeof d!="function"?d:0,qe=[];R&&qe.push(R),qe.push(kb(Qe=>{const Ct=hm(Qe,l,ie),Nt=typeof we.current=="function"?we.current(Ct):we.current,gt=typeof Se.current=="function"?Se.current(Ct):Se.current;return{mainAxis:Nt,crossAxis:gt,alignmentAxis:gt}},[ze,Ve,ie,l]));const Te=j==="none"&&D!=="shift",Fe=!Te&&(m||N||D==="shift"),ge=D==="none"?null:Rb({...be,padding:{top:J.top+ne+ae,right:J.right+ne+Ce,bottom:J.bottom+ne+le,left:J.left+ne+me},mainAxis:!N&&D==="flip",crossAxis:j==="flip"?"alignment":!1,fallbackAxisSideDirection:z}),We=Te?null:bb({...be,rootBoundary:G,mainAxis:j!=="none",crossAxis:Fe,limiter:m||N?void 0:Sb(Qe=>{if(!Ae.current)return{};const{width:Ct,height:Nt}=Ae.current.getBoundingClientRect(),gt=xr(ir(Qe.placement)),Bt=gt==="y"?Ct:Nt,Tt=gt==="y"?J.left+J.right:J.top+J.bottom;return{offset:Bt/2+Tt/2}})},[be,m,N,G,J,j]);D==="shift"||j==="shift"||K==="center"?qe.push(We,ge):qe.push(ge,We),qe.push(Eb({...be,apply({elements:{floating:Qe},availableWidth:Ct,availableHeight:Nt,rects:gt}){if(!Q.current)return;const Bt=Qe.style;Bt.setProperty(dm,`${Ct}px`),Bt.setProperty(pm,`${Nt}px`);const Tt=bt(Qe).devicePixelRatio||1,{x:Ye,y:ot,width:Ht,height:At}=gt.reference,It=(Math.round((Ye+Ht)*Tt)-Math.round(Ye*Tt))/Tt,Xn=(Math.round((ot+At)*Tt)-Math.round(ot*Tt))/Tt;Bt.setProperty(bR,`${It}px`),Bt.setProperty(SR,`${Xn}px`)}}),yR(Qe=>({element:Ae.current||ut(Qe.elements.floating).createElement("div"),padding:Ae.current?v:0}),[v]),{name:"transformOrigin",fn(Qe){var ln,lr,Dn,es,Xr,Or;const{elements:{floating:Ct},middlewareData:Nt,placement:gt,platform:Bt,rects:Tt,y:Ye}=Qe,ot=ir(gt),Ht=Vr(gt),At=xr(ot)==="y",It=Ae.current,Xn=typeof u=="function"?u(hm(Qe,l,ie)):u;let wn;!It&&Ht&&Math.abs(At?((ln=Nt.shift)==null?void 0:ln.x)||0:((lr=Nt.shift)==null?void 0:lr.y)||0)<=1?wn=Ht==="start"===(At&&((Dn=Bt.isRTL)==null?void 0:Dn.call(Bt,Ct))===!0)?"100%":"0%":wn=`${(At?((es=Nt.arrow)==null?void 0:es.x)||0:((Xr=Nt.arrow)==null?void 0:Xr.y)||0)+(At?(It==null?void 0:It.clientWidth)||0:(It==null?void 0:It.clientHeight)||0)/2}px`;let In=ot==="top"||ot==="left"?`calc(100% + ${Xn}px)`:`${-Xn}px`;return Fe&&At&&Math.abs(((Or=Nt.shift)==null?void 0:Or.y)||0)>Xn&&(In=`${Tt.reference.y+Tt.reference.height/2-Ye}px`),Ct.style.setProperty(RR,At?`${wn} ${In}`:`${In} ${wn}`),{}}},vR,T),ke(()=>{!b&&E&&E.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[b,E]);const lt=y.useMemo(()=>({ancestorScroll:!x,elementResize:!x&&typeof ResizeObserver<"u",layoutShift:!x&&typeof IntersectionObserver<"u"}),[x]),{refs:ft,elements:se,x:fe,y:Me,middlewareData:he,update:Le,placement:Ke,context:et,isPositioned:rt,floatingStyles:Ft}=r({rootContext:E,open:w?b:void 0,placement:re,middleware:qe,strategy:i,whileElementsMounted:w?void 0:(...Qe)=>Kg(...Qe,lt),nodeId:P,externalTree:O}),{sideX:Lt,sideY:_n}=he.adaptiveOrigin||xR,Jt=rt?i:"fixed",en=y.useMemo(()=>{let Qe;return rt?T?Qe={position:Jt,[Lt]:fe,[_n]:Me}:Qe={...Ft,position:Jt}:Qe={position:Jt,top:0,left:0},Qe[dm]="100vw",Qe[pm]="100vh",rt||(Qe.opacity=0),Qe},[T,Jt,Lt,fe,_n,Me,Ft,rt]),Xt=y.useRef(null);ke(()=>{if(!b)return;const Qe=L.current,Ct=typeof Qe=="function"?Qe():Qe,Nt=(gm(Ct)?Ct.current:Ct)||null;Nt!==Xt.current&&(ft.setPositionReference(Nt),Xt.current=Nt)},[b,ft,Y,L]),y.useEffect(()=>{if(!b)return;const Qe=L.current;typeof Qe!="function"&&gm(Qe)&&Qe.current!==Xt.current&&(ft.setPositionReference(Qe.current),Xt.current=Qe.current)},[b,ft,Y,L]),y.useEffect(()=>{if(w&&b&&se.reference&&se.floating)return Kg(se.reference,se.floating,Le,lt)},[w,b,se,Le,lt]);const qt=ir(Ke),Cn=Hy(l,qt,ie),St=Vr(Ke)||"center",sn=!!((Tn=he.hide)!=null&&Tn.referenceHidden);ke(()=>{A&&b&&rt&&(qt!==q||B&&St!==K)&&H(Ke)},[A,B,b,rt,Ke,qt,St,q,K]);const xt=y.useMemo(()=>{var Qe,Ct;return{position:"absolute",top:(Qe=he.arrow)==null?void 0:Qe.y,left:(Ct=he.arrow)==null?void 0:Ct.x}},[he.arrow]),tn=((Gn=he.arrow)==null?void 0:Gn.centerOffset)!==0;return y.useMemo(()=>({positionerStyles:en,arrowStyles:xt,arrowRef:Ae,arrowUncentered:tn,side:Cn,align:St,physicalSide:qt,anchorHidden:sn,refs:ft,context:et,isPositioned:rt,update:Le}),[en,xt,Ae,tn,Cn,St,qt,sn,ft,et,rt,Le])}function gm(t){return t!=null&&"current"in t}function Ad(t){return t==="starting"?TS:Vt}function Wy(t,r,{styles:o,transitionStatus:i,props:l,refs:u,hidden:f,inert:d=!1}){const h={...o};return d&&(h.pointerEvents="none"),Et("div",t,{state:r,ref:u,props:[{role:"presentation",hidden:f,style:h},Ad(i),l],stateAttributesMapping:xu})}const Od=y.createContext(void 0);Od.displayName="TooltipRootContext";function Sl(t){const r=y.useContext(Od);if(r===void 0&&!t)throw new Error("Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>.");return r}const Ky=y.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new qo,currentIdRef:{current:null},currentContextRef:{current:null}});Ky.displayName="FloatingDelayGroupContext";function CR(t,r){t.current=r.current}function TR(t,r={open:!1}){const{open:o}=r,i=t.useState("floatingId"),{currentIdRef:l,delayRef:u,timeoutMs:f,initialDelayRef:d,currentContextRef:h,hasProvider:g,timeout:m}=y.useContext(Ky),[v,x]=y.useState(!1),R=y.useRef(o);return ke(()=>{R.current=o},[o]),ke(()=>{function w(){var E;(E=h.current)==null||E.setIsInstantPhase(!1),l.current=null,h.current=null,u.current=d.current,m.clear()}if(l.current&&!o&&l.current===i){if(x(!1),f){const E=i;return m.start(f,()=>{t.select("open")||l.current&&l.current!==E||w()}),()=>{(R.current||l.current!==E)&&m.clear()}}w()}},[o,i,l,u,f,d,h,m,t]),ke(()=>{if(!o)return;const w=h.current,E=l.current;m.clear(),h.current={onOpenChange:t.setOpen,setIsInstantPhase:x},l.current=i,u.current={open:0,close:gl(d.current,"close")},E!==null&&E!==i?(x(!0),w==null||w.setIsInstantPhase(!0),w==null||w.onOpenChange(!1,nt(Xo))):(x(!1),w==null||w.setIsInstantPhase(!1))},[o,i,t,l,u,d,h,m]),ke(()=>()=>{if(l.current===i){if(h.current=null,!R.current)return;l.current=null,CR(u,d),m.clear()}},[h,l,u,i,d,m]),y.useMemo(()=>({activeIdRef:l,hasProvider:g,delayRef:u,isInstantPhase:v}),[l,g,u,v])}function IR(t,r){let o=null,i=null,l=!1;return{contextElement:t||void 0,getBoundingClientRect(){var R;const u=(t==null?void 0:t.getBoundingClientRect())||{width:0,height:0,x:0,y:0},f=r.axis==="x"||r.axis==="both",d=r.axis==="y"||r.axis==="both",h=["mouseenter","mousemove"].includes(((R=r.dataRef.current.openEvent)==null?void 0:R.type)||"")&&r.pointerType!=="touch",g=r.axis==="y"?u.width:0,m=r.axis==="x"?u.height:0;let v=u.x,x=u.y;return o==null&&r.x&&f&&(o=u.x-r.x),i==null&&r.y&&d&&(i=u.y-r.y),v-=o||0,x-=i||0,(!l||h)&&(v=f&&r.x!=null?r.x:v,x=d&&r.y!=null?r.y:x),l=!0,{width:g,height:m,x:v,y:x,top:x,right:v+g,bottom:x+m,left:v}}}}function mm(t){return t!=null&&t.clientX!=null}function PR(t,r={}){const{enabled:o=!0,axis:i="both"}=r,l=t.useState("open"),u=t.useState("floatingElement"),f=t.useState("domReferenceElement"),d=t.context.dataRef,h=y.useRef(!1),g=y.useRef(null),[m,v]=y.useState(),[x,R]=y.useState([]),w=xe(P=>{t.set("positionReference",P)}),E=xe((P,T,A)=>{h.current||d.current.openEvent&&!mm(d.current.openEvent)||t.set("positionReference",IR(A??f,{x:P,y:T,axis:i,dataRef:d,pointerType:m}))}),b=xe(P=>{l?g.current||(E(P.clientX,P.clientY,P.currentTarget),R([])):E(P.clientX,P.clientY,P.currentTarget)}),C=Uo(m)?u:l;y.useEffect(()=>{if(!o){w(f);return}if(!C)return;function P(){var O;(O=g.current)==null||O.call(g),g.current=null}const T=bt(u);function A(O){const D=pn(O);$e(u,D)?P():E(O.clientX,O.clientY)}return!d.current.openEvent||mm(d.current.openEvent)?g.current=tt(T,"mousemove",A):w(f),P},[C,o,u,d,f,t,E,w,x]),y.useEffect(()=>()=>{t.set("positionReference",null)},[t]),y.useEffect(()=>{o&&!u&&(h.current=!1)},[o,u]),y.useEffect(()=>{!o&&l&&(h.current=!0)},[o,l]);const S=y.useMemo(()=>{function P(T){v(T.pointerType)}return{onPointerDown:P,onPointerEnter:P,onMouseMove:b,onMouseEnter:b}},[b]);return y.useMemo(()=>o?{reference:S,trigger:S}:{},[o,S])}const AR={...dR,disabled:t=>t.disabled,instantType:t=>t.instantType,isInstantPhase:t=>t.isInstantPhase,trackCursorAxis:t=>t.trackCursorAxis,disableHoverablePopup:t=>t.disableHoverablePopup,lastOpenChangeReason:t=>t.openChangeReason,closeOnClick:t=>t.closeOnClick,appliedTriggerProps:(t,r)=>r?t.activeTriggerProps:void 0,closeDelay:t=>t.closeDelay,adaptiveOrigin:t=>t.adaptiveOrigin};var OR=class extends Ed{constructor(r,o,i){const l=new Iy;super(MR(r,l,o,i),LR(l),AR);Ie(this,"setOpen",(r,o)=>{qS(this,r,o,{extraState:{openChangeReason:o.reason}})})}cancelPendingOpen(r){this.state.floatingRootContext.dispatchOpenChange(!1,nt(bd,r))}};function MR(t,r,o,i=!1){return{...cR(r,o,i),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...t}}function LR(t){return{popupRef:y.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:t}}const Yy=Ry(function(r){const{disabled:o=!1,defaultOpen:i=!1,open:l,disableHoverablePopup:u=!1,trackCursorAxis:f="none",actionsRef:d,onOpenChange:h,onOpenChangeComplete:g,handle:m,triggerId:v,defaultTriggerId:x=null,children:R}=r,w=KS((G,X)=>new OR({open:i,openProp:l,activeTriggerId:x,triggerIdProp:v},G,X));w.useControlledProp("openProp",l),w.useControlledProp("triggerIdProp",v),w.useContextCallback("onOpenChange",h),w.useContextCallback("onOpenChangeComplete",g);const E=w.useState("open"),b=!o&&E,C=w.useState("activeTriggerId"),S=w.useState("mounted"),P=w.useState("payload");w.useSyncedValues({trackCursorAxis:f,disableHoverablePopup:u,disabled:o}),QS(w,{closeOnActiveTriggerUnmount:!0});const{forceUnmount:T,transitionStatus:A}=JS(b,w),O=w.useState("isInstantPhase"),D=w.useState("instantType"),j=w.useState("lastOpenChangeReason"),z=y.useRef(null);ke(()=>{E&&o&&w.setOpen(!1,nt(yy))},[E,o,w]),ke(()=>{A==="ending"&&j==="none"||A!=="ending"&&O?(D!=="delay"&&(z.current=D),w.set("instantType","delay")):z.current!==null&&(w.set("instantType",z.current),z.current=null)},[A,O,j,D,w]),ke(()=>{b&&C==null&&w.set("payload",void 0)},[w,C,b]),y.useImperativeHandle(d,()=>({unmount:T,close:()=>w.setOpen(!1,nt(vy))}),[T,w]);const N=b||S||!o&&f!=="none";return _.jsxs(Od.Provider,{value:w,children:[m&&_.jsx(YS,{handle:m,store:w}),N&&_.jsx(NR,{store:w,disabled:o,trackCursorAxis:f}),typeof R=="function"?R({payload:P}):R]})});Yy.displayName="TooltipRoot";function NR({store:t,disabled:r,trackCursorAxis:o}){const i=t.useState("floatingRootContext"),l=Ly(i,{enabled:!r,referencePress:()=>t.select("closeOnClick")}),u=PR(i,{enabled:!r&&o!=="none",axis:o==="none"?void 0:o}),f=y.useMemo(()=>Hr(u.reference,l.reference),[u.reference,l.reference]);return eR(t,{activeTriggerProps:f,inactiveTriggerProps:f,popupProps:l.floating??Vt}),null}const Gy=y.createContext(void 0);Gy.displayName="TooltipProviderContext";function _R(){return y.useContext(Gy)}const ym="data-base-ui-tooltip-trigger";function vm(t){const r=pn(t);return ct(r)?r:null}const Xy=RS(function(r,o){const{render:i,className:l,style:u,handle:f,payload:d,disabled:h,delay:g,closeOnClick:m=!0,closeDelay:v,id:x,...R}=r,w=Sl(!0),E=pR(f)??w;if(!E)throw new Error("Base UI: <Tooltip.Trigger> must be either used within a <Tooltip.Root> component or provided with a handle.");const b=Jo(x),C=E.useState("isTriggerActive",b),S=E.useState("isOpenedByTrigger",b),P=E.useState("floatingRootContext"),T=y.useRef(null),A=v??0,{registerTrigger:O,isMountedByThisTrigger:D}=ZS(b,T,E,{payload:d,closeOnClick:m,closeDelay:A}),j=_R(),{activeIdRef:z,delayRef:N,isInstantPhase:G,hasProvider:X}=TR(P,{open:S}),W=Id(P);E.useSyncedValue("isInstantPhase",G);const Y=E.useState("disabled"),L=h??Y,Q=$t(L),ie=E.useState("trackCursorAxis"),$=E.useState("disableHoverablePopup"),H=y.useRef(!1),B=Nn(),I=y.useRef(void 0);function F(){return X&&z.current!=null?0:g??j??600}function q(le){const me=T.current;if(!me||!le)return!1;const Ce=yi(le,`[${ym}]`);return Ce!==null&&Ce!==me&&$e(me,Ce)}function K(le){const me=q(le);return H.current=me,me&&(W.openChangeTimeout.clear(),W.restTimeout.clear(),W.restTimeoutPending=!1,B.clear()),me}const re=iR(P,{enabled:!L,mouseOnly:!0,move:!1,handleClose:!$&&ie!=="both"?uR():null,restMs:F,delay(){return v==null&&X?{close:gl(N.current,"close")}:{close:A}},triggerElementRef:T,isActiveTrigger:C,isClosing:()=>E.select("transitionStatus")==="ending",shouldOpen(){return!H.current}}),J=hR(P,{enabled:!L}).reference,ne=le=>{const me=H.current,Ce=vm(le),be=K(Ce),Ae=T.current,we=Ae&&Ce&&$e(Ae,Ce);if(be&&E.select("open")&&E.select("lastOpenChangeReason")==="trigger-hover"){E.setOpen(!1,nt(yr,le));return}if(me&&!be&&we&&!Q.current&&!E.select("open")&&Ae&&Uo(I.current)){const Se=()=>{!H.current&&!Q.current&&!E.select("open")&&E.setOpen(!0,nt(yr,le,Ae))},ze=F();ze===0?(B.clear(),Se()):B.start(ze,Se)}},ae=E.useState("appliedTriggerProps",D||ie!=="none");return Et("button",r,{state:{open:S},ref:[o,O,T],props:[re,J,ae,{onMouseOver(le){ne(le.nativeEvent)},onFocus(le){q(vm(le.nativeEvent))&&le.preventBaseUIHandler()},onMouseLeave(){H.current=!1,B.clear(),I.current=void 0},onPointerEnter(le){I.current=le.pointerType},onPointerDown(le){I.current=le.pointerType,E.set("closeOnClick",m),m&&!E.select("open")&&E.cancelPendingOpen(le.nativeEvent)},onClick(le){m&&!E.select("open")&&E.cancelPendingOpen(le.nativeEvent)},id:b,[Bf]:L?"":void 0,[ym]:L?void 0:""},R],stateAttributesMapping:sy})});Xy.displayName="TooltipTrigger";const Md=y.createContext(void 0);Md.displayName="TooltipPortalContext";function DR(){const t=y.useContext(Md);if(t===void 0)throw new Error("Base UI: <Tooltip.Portal> is missing.");return t}const qy=y.forwardRef(function(r,o){const{keepMounted:i=!1,...l}=r;return Sl().useState("mounted")||i?_.jsx(Md.Provider,{value:i,children:_.jsx(Vy,{ref:o,...l})}):null});qy.displayName="TooltipPortal";const Ld=y.createContext(void 0);Ld.displayName="TooltipPositionerContext";function Zy(){const t=y.useContext(Ld);if(t===void 0)throw new Error("Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>.");return t}const Qy=y.forwardRef(function(r,o){const{render:i,className:l,anchor:u,positionMethod:f="absolute",side:d="top",align:h="center",sideOffset:g=0,alignOffset:m=0,collisionBoundary:v="clipping-ancestors",collisionPadding:x=5,arrowPadding:R=5,sticky:w=!1,disableAnchorTracking:E=!1,collisionAvoidance:b=PS,style:C,...S}=r,P=Sl(),T=DR(),A=P.useState("open"),O=P.useState("mounted"),D=P.useState("trackCursorAxis"),j=P.useState("disableHoverablePopup"),z=P.useState("floatingRootContext"),N=P.useState("instantType"),G=P.useState("transitionStatus"),X=P.useState("adaptiveOrigin"),W=Uy({anchor:u,positionMethod:f,floatingRootContext:z,mounted:O,side:d,sideOffset:g,align:h,alignOffset:m,collisionBoundary:v,collisionPadding:x,sticky:w,arrowPadding:R,disableAnchorTracking:E,keepMounted:T,collisionAvoidance:b,adaptiveOrigin:X}),Y=y.useMemo(()=>({open:A,side:W.side,align:W.align,anchorHidden:W.anchorHidden,instant:D!=="none"?"tracking-cursor":N}),[A,W.side,W.align,W.anchorHidden,D,N]),L=Wy(r,Y,{styles:W.positionerStyles,transitionStatus:G,props:S,refs:[o,P.useStateSetter("positionerElement")],hidden:!O,inert:!A||D==="both"||j});return _.jsx(Ld.Provider,{value:W,children:L})});Qy.displayName="TooltipPositioner";const Jy=y.forwardRef(function(r,o){const{render:i,className:l,style:u,...f}=r,d=Sl(),{side:h,align:g}=Zy(),m=d.useState("open"),v=d.useState("instantType"),x=d.useState("transitionStatus"),R=d.useState("popupProps"),w=d.useState("floatingRootContext"),E=d.useState("disabled"),b=d.useState("closeDelay");bl({open:m,ref:d.context.popupRef,onComplete(){var S,P;m&&((P=(S=d.context).onOpenChangeComplete)==null||P.call(S,!0))}}),oR(w,{enabled:!E,closeDelay:b});const C=d.useStateSetter("popupElement");return Et("div",r,{state:{open:m,side:h,align:g,instant:v,transitionStatus:x},ref:[o,d.context.popupRef,C],props:[_y,R,Ad(x),f],stateAttributesMapping:qb})});Jy.displayName="TooltipPopup";const ev=y.forwardRef(function(r,o){const{render:i,className:l,style:u,...f}=r,d=Sl(),{arrowRef:h,side:g,align:m,arrowUncentered:v,arrowStyles:x}=Zy(),R={open:d.useState("open"),side:g,align:m,uncentered:v,instant:d.useState("instantType")};return Et("div",r,{state:R,ref:[o,h],props:[{style:x,"aria-hidden":!0},f],stateAttributesMapping:xu})});ev.displayName="TooltipArrow";function lu({content:t,children:r,align:o,asChild:i,render:l,side:u,className:f,container:d,closeDelay:h,delay:g,...m}){const v=B0(),x=d??v??void 0,R=l??(i?r:void 0),w=R!==void 0,E=!w&&m.disabled?-1:void 0;return _.jsxs(Yy,{...m,children:[_.jsx(Xy,{closeDelay:h,delay:g,className:De(!w&&"m-0 inline-flex h-auto min-h-0 items-center border-none bg-transparent p-0 shadow-none","cursor-default",f),render:R,tabIndex:E,children:i?void 0:r}),_.jsx(qy,{container:x,children:_.jsx(Qy,{align:o,side:u,sideOffset:10,className:"max-w-[var(--available-width)]",children:_.jsxs(Jy,{className:De("flex origin-[var(--transform-origin)] flex-col rounded-md bg-kumo-base px-2.5 py-1.5 text-sm text-kumo-default","shadow-md outline outline-kumo-line","transition-[transform,scale,opacity] duration-150","data-[starting-style]:scale-90 data-[starting-style]:opacity-0","data-[ending-style]:scale-90 data-[ending-style]:opacity-0","data-[instant]:duration-0","kumo-tooltip-popup"),children:[_.jsx(ev,{className:De("flex","data-[side=bottom]:top-[-8px]","data-[side=left]:right-[-13px] data-[side=left]:rotate-90","data-[side=right]:left-[-13px] data-[side=right]:-rotate-90","data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180"),children:_.jsx(FR,{})}),t]})})})]})}function FR(t){return _.jsxs("svg",{width:"20",height:"10",viewBox:"0 0 20 10",fill:"none",...t,children:[_.jsx("path",{d:"M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z",className:"fill-kumo-base"}),_.jsx("path",{d:"M8.99542 1.85876C9.75604 1.17425 10.9106 1.17422 11.6713 1.85878L16.5281 6.22989C17.0789 6.72568 17.7938 7.00001 18.5349 7.00001L15.89 7L11.0023 2.60207C10.622 2.2598 10.0447 2.2598 9.66436 2.60207L4.77734 7L2.13171 7.00001C2.87284 7.00001 3.58774 6.72568 4.13861 6.22989L8.99542 1.85876Z",className:"fill-kumo-arrow-edge"}),_.jsx("path",{d:"M10.3333 3.34539L5.47654 7.71648C4.55842 8.54279 3.36693 9 2.13172 9H0V8H2.13172C3.11989 8 4.07308 7.63423 4.80758 6.97318L9.66437 2.60207C10.0447 2.25979 10.622 2.2598 11.0023 2.60207L15.8591 6.97318C16.5936 7.63423 17.5468 8 18.5349 8H20V9H18.5349C17.2998 9 16.1083 8.54278 15.1901 7.71648L10.3333 3.34539Z",className:"fill-kumo-arrow-stroke"})]})}const zR=new Map([["bold",y.createElement(y.Fragment,null,y.createElement("path",{d:"M184.49,167.51a12,12,0,0,1,0,17l-48,48a12,12,0,0,1-17,0l-48-48a12,12,0,0,1,17-17L128,207l39.51-39.52A12,12,0,0,1,184.49,167.51Zm-96-79L128,49l39.51,39.52a12,12,0,0,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,0,0,17,17Z"}))],["duotone",y.createElement(y.Fragment,null,y.createElement("path",{d:"M80,176h96l-48,48ZM128,32,80,80h96Z",opacity:"0.2"}),y.createElement("path",{d:"M176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Zm-48,44.69L99.31,184h57.38ZM80,88h96a8,8,0,0,0,5.66-13.66l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,80,88Zm48-44.69L156.69,72H99.31Z"}))],["fill",y.createElement(y.Fragment,null,y.createElement("path",{d:"M72.61,83.06a8,8,0,0,1,1.73-8.72l48-48a8,8,0,0,1,11.32,0l48,48A8,8,0,0,1,176,88H80A8,8,0,0,1,72.61,83.06ZM176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Z"}))],["light",y.createElement(y.Fragment,null,y.createElement("path",{d:"M180.24,171.76a6,6,0,0,1,0,8.48l-48,48a6,6,0,0,1-8.48,0l-48-48a6,6,0,0,1,8.48-8.48L128,215.51l43.76-43.75A6,6,0,0,1,180.24,171.76Zm-96-87.52L128,40.49l43.76,43.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48Z"}))],["regular",y.createElement(y.Fragment,null,y.createElement("path",{d:"M181.66,170.34a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-48-48a8,8,0,0,1,11.32-11.32L128,212.69l42.34-42.35A8,8,0,0,1,181.66,170.34Zm-96-84.68L128,43.31l42.34,42.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,85.66Z"}))],["thin",y.createElement(y.Fragment,null,y.createElement("path",{d:"M178.83,173.17a4,4,0,0,1,0,5.66l-48,48a4,4,0,0,1-5.66,0l-48-48a4,4,0,0,1,5.66-5.66L128,218.34l45.17-45.17A4,4,0,0,1,178.83,173.17Zm-96-90.34L128,37.66l45.17,45.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66Z"}))]]),jR=new Map([["bold",y.createElement(y.Fragment,null,y.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",y.createElement(y.Fragment,null,y.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),y.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",y.createElement(y.Fragment,null,y.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",y.createElement(y.Fragment,null,y.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",y.createElement(y.Fragment,null,y.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",y.createElement(y.Fragment,null,y.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),$R=new Map([["bold",y.createElement(y.Fragment,null,y.createElement("path",{d:"M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"}))],["duotone",y.createElement(y.Fragment,null,y.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),y.createElement("path",{d:"M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"}))],["fill",y.createElement(y.Fragment,null,y.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"}))],["light",y.createElement(y.Fragment,null,y.createElement("path",{d:"M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",y.createElement(y.Fragment,null,y.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"}))],["thin",y.createElement(y.Fragment,null,y.createElement("path",{d:"M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),VR=y.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),Eu=y.forwardRef((t,r)=>{const{alt:o,color:i,size:l,weight:u,mirrored:f,children:d,weights:h,...g}=t,{color:m="currentColor",size:v,weight:x="regular",mirrored:R=!1,...w}=y.useContext(VR);return y.createElement("svg",{ref:r,xmlns:"http://www.w3.org/2000/svg",width:l??v,height:l??v,fill:i??m,viewBox:"0 0 256 256",transform:f||R?"scale(-1, 1)":void 0,...w,...g},!!o&&y.createElement("title",null,o),d,h.get(u??x))});Eu.displayName="IconBase";const tv=y.forwardRef((t,r)=>y.createElement(Eu,{ref:r,...t,weights:zR}));tv.displayName="CaretUpDownIcon";const nv=y.forwardRef((t,r)=>y.createElement(Eu,{ref:r,...t,weights:jR}));nv.displayName="CheckIcon";const rv=y.forwardRef((t,r)=>y.createElement(Eu,{ref:r,...t,weights:$R}));rv.displayName="InfoIcon";const BR=rv,Pa={shape:{base:{classes:"",description:"Default rectangular button shape"},square:{classes:"items-center justify-center p-0",description:"Square button for icon-only actions"},circle:{classes:"items-center justify-center p-0 rounded-full",description:"Circular button for icon-only actions"}},size:{xs:{classes:"h-5 gap-1 rounded-sm px-1.5 text-xs",description:"Extra small button for compact UIs"},sm:{classes:"h-6.5 gap-1 rounded-md px-2 text-xs",description:"Small button for secondary actions"},base:{classes:"h-9 gap-1.5 rounded-lg px-3 text-base leading-5",description:"Default button size"},lg:{classes:"h-10 gap-2 rounded-lg px-4 text-base leading-5",description:"Large button for primary CTAs"}},compactSize:{xs:{classes:"size-3.5"},sm:{classes:"size-6.5"},base:{classes:"size-9"},lg:{classes:"size-10"}},variant:{primary:{classes:"relative overflow-hidden bg-(--kumo-button-emphasis-bg) !text-white ring ring-(--kumo-button-emphasis-ring) focus:ring-(--kumo-button-emphasis-ring) focus-visible:ring-(--kumo-button-emphasis-ring) active:ring-(--kumo-button-emphasis-ring) disabled:opacity-50",description:"High-emphasis button for primary actions"},secondary:{classes:"bg-kumo-base !text-kumo-default ring not-disabled:hover:bg-kumo-tint disabled:bg-kumo-base/50 disabled:!text-kumo-default/70 ring-kumo-line data-[state=open]:bg-kumo-base",description:"Default button style for most actions"},ghost:{classes:"text-kumo-default hover:bg-kumo-tint shadow-none",description:"Minimal button with no background"},destructive:{classes:"relative overflow-hidden bg-(--kumo-button-emphasis-bg) !text-white ring ring-(--kumo-button-emphasis-ring) focus:ring-(--kumo-button-emphasis-ring) focus-visible:ring-(--kumo-button-emphasis-ring) active:ring-(--kumo-button-emphasis-ring) disabled:opacity-50",description:"Danger button for destructive actions like delete"},"secondary-destructive":{classes:"bg-kumo-base !text-kumo-danger ring not-disabled:hover:!text-kumo-danger not-disabled:hover:ring-kumo-danger/30 disabled:bg-kumo-base/50 disabled:!text-kumo-danger/70 ring-kumo-line data-[state=open]:bg-kumo-base",description:"Secondary button with destructive text for less prominent dangerous actions"},outline:{classes:"bg-transparent text-kumo-default ring ring-kumo-line transition-colors not-disabled:hover:text-kumo-strong not-disabled:hover:ring-kumo-focus/25",description:"Bordered button with transparent background"}}},xs={shape:"base",size:"base",variant:"secondary"};function Nd({variant:t=xs.variant,size:r=xs.size,shape:o=xs.shape}={}){const i=o==="square"||o==="circle";return De("group flex w-max shrink-0 items-center font-medium select-none","border-0 shadow-xs","focus:ring-kumo-focus/50 focus:outline-hidden focus-visible:ring-2 focus-visible:ring-kumo-brand","cursor-pointer","disabled:cursor-not-allowed disabled:text-kumo-subtle",vn(Pa.size,r,xs.size).classes,vn(Pa.shape,o,xs.shape).classes,i&&vn(Pa.compactSize,r,xs.size).classes,vn(Pa.variant,t,xs.variant).classes)}const HR={xs:"pl-1",sm:"pl-1.5",base:"pl-2.5",lg:"pl-3.5"},ov=(t,r,o,i)=>{const l=go.Children.toArray(i).some(u=>u!=="");if(!(t!=="base"||!l||o==null))return HR[r]},sv=t=>{const r=T0(t);return r?go.isValidElement(r)?r:_.jsx(r,{}):null},iv=t=>{if(t==="primary")return"var(--color-kumo-brand)";if(t==="destructive")return"var(--color-kumo-danger)"},lv=t=>{const r=iv(t);if(r)return{"--kumo-button-emphasis-ring":`color-mix(in oklch, ${r}, black 10%)`,"--kumo-button-emphasis-bg":`color-mix(in oklch, ${r}, white 30%)`,"--kumo-button-emphasis-gradient-start":`color-mix(in oklch, ${r}, white 15%)`,"--kumo-button-emphasis-gradient-end":r}},UR=new Set(["href","target","rel","download","hrefLang","media","ping","referrerPolicy","linksExternal"]),WR=t=>{const r={...t};for(const o of Object.keys(r))(o.startsWith("on")||UR.has(o))&&delete r[o];return r},av=(t,r,o)=>{const i=o!=null?_.jsx("span",{className:"contents",children:o}):null;return iv(t)?_.jsxs(_.Fragment,{children:[_.jsx("span",{"aria-hidden":"true",className:"absolute inset-0 rounded-[inherit] bg-linear-to-b from-(--kumo-button-emphasis-gradient-start) to-(--kumo-button-emphasis-gradient-end) shadow-[inset_0_1px_0_0_var(--kumo-button-emphasis-bg)] group-hover:from-(--kumo-button-emphasis-bg)"}),_.jsxs("span",{className:"relative flex items-center gap-1.5",children:[r,i]})]}):_.jsxs(_.Fragment,{children:[r,i]})},KR=t=>{if(typeof t=="string")return t;if(typeof t=="number")return String(t)},xi=go.forwardRef(({children:t,className:r,disabled:o,loading:i,shape:l="base",size:u="base",variant:f="secondary",icon:d,style:h,title:g,...m},v)=>{const{type:x,...R}=m,w=lv(f),E=KR(g),b={...R,...!go.Children.count(t)&&!R["aria-label"]&&!R["aria-labelledby"]&&E&&{"aria-label":E}},C=i?_.jsx(V0,{size:u==="lg"?16:14}):sv(d),S=_.jsx("button",{ref:v,"data-kumo-component":"Button",className:De(Nd({variant:f,size:u,shape:l}),ov(l,u,C,t),o&&"cursor-not-allowed opacity-50",r),disabled:i||o,style:w?{...w,...h}:h,type:x??"button",...b,children:av(f,C,t)});return g&&(o||i)?_.jsx(lu,{content:g,render:_.jsx("span",{className:"inline-flex"}),children:S}):g?_.jsx(lu,{content:g,render:S}):S});xi.displayName="Button";const uv=go.forwardRef(({children:t,className:r,disabled:o=!1,external:i,href:l,shape:u="base",size:f="base",variant:d="ghost",icon:h,style:g,title:m,...v},x)=>{const R=I0(),w=lv(d),E=i?{target:"_blank",rel:"noopener noreferrer"}:{};if(o)return _.jsx(xi,{...WR(v),className:De("select-text",r),"data-kumo-component":"LinkButton",disabled:!0,icon:h,shape:u,size:f,style:g,title:m,variant:d,children:t});const b=sv(h),C=_.jsx(R,{ref:x,"data-kumo-component":"LinkButton",className:De(Nd({variant:d,size:f,shape:u}),ov(u,f,b,t),"flex items-center no-underline! select-text",r),href:l,style:w?{...w,...g}:g,to:typeof l=="string"?l:void 0,...E,...v,children:av(d,b,t)});return m?_.jsx(lu,{content:m,render:C}):C});uv.displayName="LinkButton";const Gf=y.createContext({variant:"default",size:"sm"}),YR={default:{accent:"var(--color-kumo-info)",secondary:"text-inherit ring-kumo-info/50 fill-kumo-info hover:!text-inherit hover:!ring-kumo-info/50 hover:bg-kumo-info/10",ghost:"text-inherit fill-kumo-info hover:bg-kumo-info/10"},alert:{accent:"var(--color-kumo-warning)",secondary:"text-inherit ring-kumo-warning/50 fill-kumo-warning hover:!text-inherit hover:!ring-kumo-warning/50 hover:bg-kumo-warning/10",ghost:"text-inherit fill-kumo-warning hover:bg-kumo-warning/10"},error:{accent:"var(--color-kumo-danger)",secondary:"text-inherit ring-kumo-danger/50 fill-kumo-danger hover:!text-inherit hover:!ring-kumo-danger/50 hover:bg-kumo-danger/10",ghost:"text-inherit fill-kumo-danger hover:bg-kumo-danger/10"},secondary:{accent:"var(--color-neutral-700, oklch(37.1% 0 0))",secondary:"text-inherit ring-kumo-focus/20 fill-kumo-subtle hover:!text-inherit hover:!ring-kumo-focus/20 hover:bg-kumo-contrast/10",ghost:"text-inherit fill-kumo-subtle hover:bg-kumo-contrast/10"}};function GR(t){return{"--kumo-button-emphasis-ring":`color-mix(in oklch, ${t}, black 10%)`,"--kumo-button-emphasis-bg":`color-mix(in oklch, ${t}, white 30%)`,"--kumo-button-emphasis-gradient-start":`color-mix(in oklch, ${t}, white 15%)`,"--kumo-button-emphasis-gradient-end":t}}const cv=y.forwardRef(function(r,o){const i=y.useContext(Gf),l=r.variant??"primary",u=YR[i.variant],f={variant:l==="secondary"?"outline":l,size:i.size,className:De(l!=="primary"&&u[l],r.className),style:l==="primary"?{...GR(u.accent),...r.style}:r.style};return r.href!==void 0?_.jsx(uv,{ref:o,...r,...f}):_.jsx(xi,{ref:o,...r,...f})});cv.displayName="Banner.Action";const XR="flex w-full",Xf={variant:{default:{classes:"bg-kumo-info-tint text-kumo-info",iconClasses:"fill-kumo-info",description:"Informational banner for general messages"},alert:{classes:"bg-kumo-warning-tint text-kumo-warning",iconClasses:"fill-kumo-warning",description:"Warning banner for cautionary messages"},error:{classes:"bg-kumo-danger-tint text-kumo-danger",iconClasses:"fill-kumo-danger",description:"Error banner for critical issues"},secondary:{classes:"bg-kumo-contrast/5 text-kumo-default/70",iconClasses:"fill-kumo-interact",description:"Neutral banner for secondary messages"}},size:{base:{classes:"items-start gap-3 rounded-lg px-4 py-3 text-base",description:"Default banner size"},sm:{classes:"items-center gap-2 rounded-md px-3 py-2 text-sm",description:"Compact banner for dialogs and tight spaces"}}},Ss={variant:"default",size:"base"},qR={base:{row:"gap-3",icon:"h-[1.375em]",description:"text-sm",action:"sm"},sm:{row:"gap-2",icon:"h-[1.25em]",description:"text-sm",action:"xs"}};function xm({variant:t=Ss.variant,size:r=Ss.size}={}){const o=vn(Xf.variant,t,Ss.variant),i=vn(Xf.size,r,Ss.size);return De(XR,o.classes,i.classes)}const fv=y.forwardRef(function({icon:r,title:o,description:i,action:l,children:u,text:f,variant:d=Ss.variant,size:h=Ss.size,className:g,...m},v){const x=vn(Xf.variant,d,Ss.variant),R=qR[h],w=h==="sm",E=w&&y.isValidElement(l)&&l.type===Tk;if(o||i)return _.jsx(Gf.Provider,{value:{variant:d,size:R.action},children:_.jsxs("div",{ref:v,className:De(xm({variant:d,size:h}),g),...m,children:[r&&_.jsx("span",{className:De("flex shrink-0 items-center",R.icon,x.iconClasses),children:r}),_.jsxs("div",{className:De("flex min-w-0 flex-1 items-center justify-between",R.row,!o&&"pt-px"),children:[w?_.jsxs("div",{className:"flex min-w-0 flex-wrap items-baseline gap-x-1.5",children:[o&&_.jsxs("span",{className:"leading-snug font-medium",children:[o,!i&&E&&_.jsx("span",{className:"ml-1.5 [&_[data-kumo-component=Link]]:inline",children:l})]}),i&&_.jsxs("span",{className:De(R.description,"leading-snug"),children:[i,E&&_.jsx("span",{className:"ml-1.5 [&_[data-kumo-component=Link]]:inline",children:l})]})]}):_.jsxs("div",{className:"flex flex-col gap-0.5",children:[o&&_.jsx("p",{className:"leading-snug font-medium",children:o}),i&&_.jsx("div",{className:De(R.description,"leading-snug"),children:y.isValidElement(i)?i:_.jsx("p",{children:i})})]}),!E&&l!=null&&_.jsx("div",{className:"flex shrink-0 items-center gap-2",children:l})]})]})});const b=u??f,C=y.isValidElement(b)?b:_.jsx("p",{children:b});return _.jsx(Gf.Provider,{value:{variant:d,size:R.action},children:_.jsxs("div",{ref:v,className:De(xm({variant:d,size:h}),g),...m,children:[r&&_.jsx("span",{className:De("shrink-0",x.iconClasses),children:r}),C]})})});fv.displayName="Banner";const wm=Object.assign(fv,{Action:cv}),ZR={label:{optional:"(optional)",tooltip:"More information"},layerDialog:{close:"Close",cancel:"Cancel"}},QR=y.createContext(ZR);function JR(){return y.useContext(QR)}function eE(t={}){return De("m-0 text-base font-medium text-kumo-default")}function km(){return De("inline-flex items-center gap-1")}function _d({children:t,showOptional:r=!1,optionalLabel:o,tooltip:i,tooltipAriaLabel:l,className:u,htmlFor:f,asContent:d=!1}){const{label:h}=JR(),g=o===void 0?h.optional:o,m=l??h.tooltip,v=_.jsxs(_.Fragment,{children:[t,r&&_.jsx("span",{className:"font-normal text-kumo-subtle",children:g}),i&&_.jsx(lu,{content:i,render:_.jsx(xi,{variant:"ghost",size:"xs",shape:"square","aria-label":m,children:_.jsx(BR,{className:"size-4"})})})]});return d?_.jsx("span",{className:De(km(),u),children:v}):_.jsx("label",{htmlFor:f,className:De(eE(),km(),u),children:v})}_d.displayName="Label";const dv=y.createContext(void 0);dv.displayName="FieldsetRootContext";function tE(t=!1){const r=y.useContext(dv);if(!r&&!t)throw new Error("Base UI: FieldsetRootContext is missing. Fieldset parts must be placed within <Fieldset.Root>.");return r}function nE(t,r){const o=Jo(t);return ke(()=>(r(o),()=>{r(i=>i===o?void 0:i)}),[o,r]),o}const rE="data-valid",oE="data-invalid",Cu={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},sE={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},iE={disabled:!1,...sE},As={valid(t){return t===null?null:t?{[rE]:""}:{[oE]:""}}},lE={invalid:void 0,name:void 0,validityData:{state:Cu,errors:[],error:"",value:"",initialValue:null},setValidityData:Dt,disabled:void 0,setTouched:Dt,setDirty:Dt,setFilled:Dt,setFocused:Dt,focusOwnerRef:{current:void 0},validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:iE,registerFieldControl:Dt,validation:{getValidationProps:(t,r=Vt)=>r,inputRef:{current:null},registeredInputs:new Map,registerInput:Dt,getInputControl:()=>null,commit:async()=>{},change:Dt}},Dd=y.createContext(lE);Dd.displayName="FieldRootContext";function vo(t=!0){const r=y.useContext(Dd);if(r.setValidityData===Dt&&!t)throw new Error("Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.");return r}const Fd=y.createContext({controlId:void 0,registerControlId:Dt,resetControlId:Dt,labelId:void 0,setLabelId:Dt,messageIds:[],setMessageIds:Dt,getDescriptionProps:t=>t});Fd.displayName="LabelableContext";function xo(){return y.useContext(Fd)}const pv=y.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:Dt,validationMode:"onSubmit",submitCountRef:{current:0}});pv.displayName="FormContext";function Si(){return y.useContext(pv)}function hv(t={}){const{id:r,fallbackControlId:o,native:i=!1,setLabelId:l,focusControl:u}=t,{controlId:f,setLabelId:d}=xo(),h=xe(R=>{d(R),l==null||l(R)}),g=nE(r,h),m=f??o;function v(R){if(u){u(R,m);return}if(!m)return;const w=aE(R.currentTarget,m);vt(w)&&uE(w)}function x(R){const w=pn(R.nativeEvent);yi(w,"button,input,select,textarea")||(!R.defaultPrevented&&R.detail>1&&R.preventDefault(),!i&&v(R))}return i?{id:g,htmlFor:m,onMouseDown:x}:{id:g,onClick:x,onPointerDown(R){R.preventDefault()}}}function aE(t,r){let o=t.getRootNode();for(;Yo(o);){const i=o.getElementById(r);if(i)return i;o=o.host.getRootNode()}return ut(t).getElementById(r)}function uE(t){t.focus({focusVisible:!0})}function qf(t,r){return{...t,state:{...t.state,valid:!r&&t.state.valid}}}const Cf=Object.keys(Cu);function cE(t,r){return t.matches(":disabled")?!1:!r||t.form===r?!0:t.form===null&&!t.hasAttribute("form")}function bm(t,r){let o=null;for(const i of t.keys())if(cE(i,r)){if(!i.validity.valid)return i;o??(o=i)}return o}function Sm(t){return{...Cu,valid:!t,customError:t}}function Tf(t){return t&&t.validationMessage?[t.validationMessage]:[]}function fE(t){const{elementRef:r,formRef:o}=Si(),{setValidityData:i,validate:l,validityData:u,validationDebounceTime:f,invalid:d,markedDirtyRef:h,state:g,shouldValidateOnChange:m,validationMode:v,registeredFieldIdRef:x}=t,{controlId:R,getDescriptionProps:w}=xo(),E=Nn(),b=y.useRef(null),C=hn(()=>new Map).current,S=y.useRef(0),P=y.useRef(null),T=y.useCallback((z,N)=>(C.set(z,N),()=>{C.delete(z)}),[C]),A=xe(()=>{var N;const z=bm(C,r.current);return z&&((N=C.get(z))==null?void 0:N.controlRef.current)||null}),O=xe(async(z,N=!1)=>{S.current+=1;const G=S.current;function X(K,re=d){const J=x.current??R;if(J==null)return;const ne=o.current.fields.get(J);if(!ne)return;const ae=qf(K,re);o.current.fields.set(J,{...ne,validityData:ae})}function W(K,re){const J=K.valid===!1?re:[];return{value:z,state:K,error:J[0]??"",errors:J,initialValue:u.initialValue}}function Y(K,re){const J=K.validity.customError?K.validationMessage:"",ne=re.replace(/\r\n?/g,`
|
|
137
|
-
`);K.setCustomValidity(ne),P.current=[K,ne,J]}function L(){const K=P.current;P.current=null,K&&(!K[0].willValidate||K[0].validationMessage===K[1])&&K[0].setCustomValidity(K[2])}function Q(K,re,J){const ne=W(K,re);X(ne,J),i(ne)}function ie(K){const re=Cf.reduce((ne,ae)=>(ne[ae]=K.validity[ae],ne),{});let J=!1;for(const ne of Cf)if(ne!=="valid"){if(ne==="valueMissing"&&re[ne])J=!0;else if(re[ne])return re}return J&&!h.current&&(re.valid=!0,re.valueMissing=!1),re}function $(){return C.size>0?bm(C,r.current):b.current}let H=$();function B(){return H=$(),H!=null&&H.willValidate?ie(H):Sm(!1)}if(N){if(g.valid!==!1||!H)return;if(!H.validity.valueMissing){L();const K=$(),re=K!=null&&K.validity.customError?Tf(K):[];Q(Sm(re.length>0),re,!1);return}for(const K of Cf)if(K!=="valid"&&K!=="valueMissing"&&K!=="customError"&&H.validity[K])return}E.clear(),L();let I=B(),F=Tf(H);const q=m();if(F.length===0||q){const K=Array.from(o.current.fields.values()).reduce((ne,ae)=>(ae.name&&(ne[ae.name]=ae.getValue()),ne),{}),re=l(z,K);let J;if(typeof re=="object"&&re!==null&&"then"in re){if(I.valid===!1?Q(I,F):(v==="onSubmit"||!u.state.customError)&&(I.valid=null,Q(I,F)),J=await re,G!==S.current)return;I=B()}else J=re;F=J?[].concat(J).filter(Boolean):[],F.length>0?(I.valid=!1,I.customError=!0,H!=null&&H.willValidate&&Y(H,F.join(`
|
|
138
|
-
`))):F=Tf(H)}Q(I,F)}),D=xe((z,N=!1)=>{if(E.clear(),S.current+=1,N)return;const G=m();G&&z!==""&&f?E.start(f,()=>{O(z)}):O(z,!G)}),j=y.useCallback((z,N={})=>Hr(w(N),g.valid===!1&&!g.disabled&&!z?{"aria-invalid":!0}:Vt),[w,g.disabled,g.valid]);return y.useMemo(()=>({getValidationProps:j,inputRef:b,registeredInputs:C,registerInput:T,getInputControl:A,commit:O,change:D}),[j,C,T,A,O,D])}const wi=O0("error","Base UI"),gv=y.createContext({disabled:!1});gv.displayName="FieldItemContext";function mv(){return y.useContext(gv)}const yv=function(r){const o=Jo(),[i,l]=y.useState(o),[u,f]=y.useState(),[d,h]=y.useState([]),g=i===void 0?o:i,m=hn(()=>new Map),{messageIds:v}=xo(),x=xe((b,C)=>{const S=m.current;C===void 0?S.delete(b):S.set(b,C),l(P=>{if(S.size===0)return P;let T;for(const A of S.values()){if(A===P)return P;T===void 0&&(T=A)}return T})}),R=xe(()=>{m.current.size===0&&l(o)}),w=y.useCallback(b=>{const C=b["aria-describedby"]?b["aria-describedby"].split(" "):[];return C.push(...v,...d),{...b,"aria-describedby":Array.from(new Set(C)).join(" ")||void 0}},[v,d]),E=y.useMemo(()=>({controlId:g,registerControlId:x,resetControlId:R,labelId:u,setLabelId:f,messageIds:d,setMessageIds:h,getDescriptionProps:w}),[g,x,R,u,f,d,h,w]);return _.jsx(Fd.Provider,{value:E,children:r.children})};yv.displayName="LabelableProvider";function dE(t){const{change:r,commit:o,invalid:i,markedDirtyRef:l,name:u,setRegisteredFieldName:f,registeredFieldIdRef:d,setValidityData:h,validityData:g}=t,{formRef:m}=Si(),v=y.useRef(null),x=y.useRef(null),R=y.useRef(!1),w=xe(()=>{const T=x.current;if(T)return T.getValue?T.getValue():T.value});function E(T){return T.value===void 0?w():T.value}const b=xe(()=>{const T=x.current;if(l.current=!0,!T){o(g.value);return}o(E(T))});function C(){const T=x.current;!T||!T.id||m.current.fields.set(T.id,{getValue:w,name:u??T.name,controlRef:T.controlRef,validityData:qf(g,i),validate:b})}function S(T=(A=>(A=x.current)==null?void 0:A.id)()){T&&m.current.fields.delete(T)}function P(T){if(R.current)return;R.current=!0;const A=E(T);h(O=>O.initialValue===A?O:{...O,initialValue:A})}return ke(()=>{const T=x.current;!T||!T.id||(f(u?void 0:T.name),m.current.fields.set(T.id,{getValue:w,name:u??T.name,controlRef:T.controlRef,validityData:qf(g,i),validate:b}))},[m,w,i,u,f,b,g]),ke(()=>{const T=m.current.fields;return()=>{var O;const A=(O=x.current)==null?void 0:O.id;A&&T.delete(A)}},[m]),[b,xe((T,A)=>{var j;if(!A){v.current===T&&(v.current=null,r(void 0,!0),S(),x.current=null,f(void 0),d.current=void 0);return}const O=(j=x.current)==null?void 0:j.id,D=v.current;D&&D!==T&&r(void 0,!0),v.current=T,x.current=A,u||f(A.name),d.current=A.id,O&&O!==A.id&&S(O),P(A),C()})]}const vv=y.forwardRef(function(r,o){var Ve;const{errors:i,validationMode:l,submitCountRef:u}=Si(),{render:f,className:d,validate:h,validationDebounceTime:g=0,validationMode:m=l,name:v,disabled:x=!1,invalid:R,dirty:w,touched:E,actionsRef:b,style:C,...S}=r,P=(Ve=tE(!0))==null?void 0:Ve.disabled,T=xe(h||(()=>null)),A=P||x,[O,D]=y.useState(!1),[j,z]=y.useState(!1),[N,G]=y.useState(!1),[X,W]=y.useState(!1),Y=y.useRef(void 0),L=w??j,Q=E??O,ie=y.useRef(L),$=y.useRef(void 0),[H,B]=y.useState(),I=v??H;ke(()=>{w!==void 0&&(ie.current=w)},[w]);const F=xe(qe=>{w===void 0&&(qe&&(ie.current=!0),z(qe))}),q=xe(qe=>{E===void 0&&D(qe)}),K=xe(()=>m==="onChange"||m==="onSubmit"&&u.current>0),re=I&&Object.hasOwn(i,I)?i[I]:null,J=!!(Array.isArray(re)?re.length:re),ne=R===!0||J,[ae,le]=y.useState({state:Cu,error:"",errors:[],value:null,initialValue:null}),me=!ne&&(A?null:ae.state.valid),Ce=y.useMemo(()=>({disabled:A,touched:Q,dirty:L,valid:me,filled:N,focused:X}),[A,Q,L,me,N,X]),be=fE({setValidityData:le,validate:T,validityData:ae,validationDebounceTime:g,invalid:ne,markedDirtyRef:ie,state:Ce,shouldValidateOnChange:K,validationMode:m,registeredFieldIdRef:$}),[Ae,we]=dE({change:be.change,commit:be.commit,invalid:ne,markedDirtyRef:ie,name:v,setRegisteredFieldName:B,registeredFieldIdRef:$,setValidityData:le,validityData:ae});y.useImperativeHandle(b,()=>({validate:Ae}),[Ae]);const Se=y.useMemo(()=>({invalid:ne,name:I,validityData:ae,setValidityData:le,disabled:A,setTouched:q,setDirty:F,setFilled:G,setFocused:W,focusOwnerRef:Y,validationMode:m,shouldValidateOnChange:K,state:Ce,registerFieldControl:we,validation:be}),[ne,I,ae,A,q,F,G,W,m,K,Ce,we,be]),ze=Et("div",r,{ref:o,state:Ce,props:S,stateAttributesMapping:As});return _.jsx(Dd.Provider,{value:Se,children:ze})});vv.displayName="FieldRootInner";const xv=y.forwardRef(function(r,o){return _.jsx(yv,{children:_.jsx(vv,{...r,ref:o})})});xv.displayName="FieldRoot";const wv=y.forwardRef(function(r,o){const{render:i,className:l,style:u,id:f,nativeLabel:d=!0,...h}=r,g=vo(!1),m=mv(),{labelId:v}=xo(),x={...g.state,disabled:g.disabled||m.disabled},R=y.useRef(null),w=hv({id:v??f,native:d});return y.useEffect(()=>{var b,C;if(!R.current)return;const E=R.current.tagName==="LABEL";if(d){if(!E){const S=((b=Ln.captureOwnerStack)==null?void 0:b.call(Ln))||"";wi(`<Field.Label> expected a <label> element because the \`nativeLabel\` prop is true. Rendering a non-<label> disables native label association, so \`htmlFor\` will not work. Use a real <label> in the \`render\` prop, or set \`nativeLabel\` to \`false\`.${S}`)}}else if(E){const S=((C=Ln.captureOwnerStack)==null?void 0:C.call(Ln))||"";wi(`<Field.Label> expected a non-<label> element because the \`nativeLabel\` prop is false. Rendering a <label> assumes native label behavior while Base UI treats it as non-native, which can cause unexpected pointer behavior. Use a non-<label> in the \`render\` prop, or set \`nativeLabel\` to \`true\`.${S}`)}},[d]),Et("label",r,{ref:[o,R],state:x,props:[w,h],stateAttributesMapping:As})});wv.displayName="FieldLabel";function zd(t={}){const{id:r,enabled:o=!0}=t,{controlId:i,registerControlId:l,resetControlId:u}=xo(),f=Jo(),d=hn(()=>Symbol()),h=y.useRef(!1),g=y.useRef(!1),m=xe(()=>{!h.current||l===Dt||(h.current=!1,l(d.current,void 0))});return ke(()=>{if(!o||l===Dt){m();return}let v;if(r!==void 0)g.current=!0,v=r;else if(g.current)v=f;else{u();return}if(v===void 0){m();return}h.current=!0,l(d.current,v)},[r,o,l,u,f,d,m]),ke(()=>m,[m]),(o?i:void 0)??r??f}function kv(t,r,o,i,l=!0,u){const{registerFieldControl:f}=vo(),d=hn(()=>Symbol());ke(()=>{const h=d.current;if(!l){f(h,void 0);return}f(h,{controlRef:t,getValue:i,id:r,name:u,value:o})},[t,l,i,r,u,f,d,o]),ke(()=>{const h=d.current;return()=>{f(h,void 0)}},[f,d])}function jd(t,r){const o=y.useRef(t),i=xe(r);ke(()=>{o.current!==t&&i(o.current),o.current=t},[t,i])}function Zf({controlled:t,default:r,name:o,state:i="value"}){const{current:l}=y.useRef(t!==void 0),[u,f]=y.useState(()=>r),d=l&&t!==void 0?t:u;{y.useEffect(()=>{l!==(t!==void 0)&&wi([`A component is changing the ${l?"":"un"}controlled ${i} state of ${o} to be ${l?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
139
|
-
`))},[i,o,t]);const{current:h}=y.useRef(r);y.useEffect(()=>{!l&&Rm(h)!==Rm(r)&&wi([`A component is changing the default ${i} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join(`
|
|
140
|
-
`))},[r])}return[d,y.useCallback(h=>{l||f(h)},[])]}function Rm(t){let r=0;const o=new WeakMap;try{return JSON.stringify(t,function(l,u){if(!(l==="_owner"&&this!=null&&typeof this=="object"&&"$$typeof"in this)){if(typeof u=="bigint")return`__bigint__:${u}`;if(u!==null&&typeof u=="object"){const f=o.get(u);if(f!==void 0)return`__object__:${f}`;o.set(u,r),r+=1}return u}})??`__top__:${typeof t}`}catch{return"__unserializable__"}}function pE(t,r,o=Object.is){const{length:i}=t;if(i!==r.length)return!1;for(let l=0;l<i;l+=1)if(!o(t[l],r[l]))return!1;return!0}function bv(t,r,o){const{setFocused:i,focusOwnerRef:l}=vo(),u=xe(f=>{(f?!t:l.current===u)&&(l.current=f&&u,i(f))});return ke(()=>{var d;const f=r.current;return((d=f==null?void 0:f.getRootNode())==null?void 0:d.activeElement)===f&&u(!0),()=>u(!1)},[t,r,u]),u}const $d=y.createContext(void 0);$d.displayName="CompositeRootContext";function Vd(t=!1){const r=y.useContext($d);if(r===void 0&&!t)throw new Error("Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.");return r}function If(t,r,{detail:o=0,pointerType:i=""}={}){t.dispatchEvent(new(bt(t)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:o,pointerType:i,shiftKey:r.shiftKey,ctrlKey:r.ctrlKey,altKey:r.altKey,metaKey:r.metaKey}))}function hE(t){const{focusableWhenDisabled:r,disabled:o,composite:i=!1,tabIndex:l=0,isNativeButton:u}=t,f=i&&r!==!1,d=i&&r===!1;return{props:y.useMemo(()=>{const h={onKeyDown(g){o&&r&&g.key!=="Tab"&&g.preventDefault()}};return i||(h.tabIndex=l,!u&&o&&(h.tabIndex=r?l:-1)),(u&&(r||f)||!u&&o)&&(h["aria-disabled"]=o),u&&(!r||d)&&(h.disabled=o),h},[i,o,r,f,d,u,l])}}function Bd(t={}){const{disabled:r=!1,focusableWhenDisabled:o,tabIndex:i=0,native:l=!0,composite:u}=t,f=y.useRef(null),d=Vd(!0),h=u??d!==void 0,{props:g}=hE({focusableWhenDisabled:o,disabled:r,composite:h,tabIndex:i,isNativeButton:l});y.useEffect(()=>{var x,R;if(!f.current)return;const v=Aa(f.current);if(l){if(!v){const w=((x=Ln.captureOwnerStack)==null?void 0:x.call(Ln))||"";wi(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${w}`)}}else if(v){const w=((R=Ln.captureOwnerStack)==null?void 0:R.call(Ln))||"";wi(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${w}`)}},[l]);const m=y.useCallback(()=>{const v=f.current;Aa(v)&&h&&r&&g.disabled===void 0&&v.disabled&&(v.disabled=!1)},[r,g.disabled,h]);return ke(m,[m]),{getButtonProps:y.useCallback((v={})=>{const{onClick:x,onMouseDown:R,onKeyUp:w,onKeyDown:E,onPointerDown:b,...C}=v;return Hr({onClick(S){if(r){S.preventDefault();return}x==null||x(S)},onMouseDown(S){r||R==null||R(S)},onKeyDown(S){if(r||(Ja(S),E==null||E(S),S.baseUIHandlerPrevented))return;const P=S.target===S.currentTarget,T=S.currentTarget,A=Aa(T),O=!l&&gE(T),D=P&&(l?A:!O),j=S.key==="Enter",z=S.key===" ",N=T.getAttribute("role"),G=(N==null?void 0:N.startsWith("menuitem"))||N==="option"||N==="gridcell";if(P&&h&&z){if(S.defaultPrevented&&G)return;S.preventDefault(),(!l||A)&&(S.preventBaseUIHandler(),If(T,S));return}if(!D||l||!z&&!j){P&&O&&z&&S.preventDefault();return}S.defaultPrevented||(S.preventDefault(),j&&(S.preventBaseUIHandler(),If(T,S)))},onKeyUp(S){if(!r){if(Ja(S),w==null||w(S),S.target===S.currentTarget&&l&&h&&Aa(S.currentTarget)&&S.key===" "){S.preventDefault();return}S.baseUIHandlerPrevented||S.target===S.currentTarget&&!l&&!h&&!S.defaultPrevented&&S.key===" "&&(S.preventBaseUIHandler(),If(S.currentTarget,S))}},onPointerDown(S){if(r){S.preventDefault();return}b==null||b(S)}},l?{type:"button"}:{role:"button"},g,C)},[r,g,h,l]),buttonRef:xe(v=>{f.current=v,m()})}}function Aa(t){return vt(t)&&t.tagName==="BUTTON"}function gE(t){return vt(t)&&t.tagName==="A"&&!!t.href}function mE(t){const{open:r=!1,onOpenChange:o,elements:i={}}=t,l=bu(),u=Su()!=null;{const d=i.reference;d&&!ct(d)&&console.error("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `context.setPositionReference()`","instead.")}const f=hn(()=>new Ay({open:r,transitionStatus:void 0,onOpenChange:o,referenceElement:i.reference??null,floatingElement:i.floating??null,triggerElements:new Iy,floatingId:l,syncOnly:!1,nested:u})).current;return ke(()=>{const d={open:r,floatingId:l};i.reference!==void 0&&(d.referenceElement=i.reference,d.domReferenceElement=ct(i.reference)?i.reference:null),i.floating!==void 0&&(d.floatingElement=i.floating),f.update(d)},[r,l,i.reference,i.floating,f]),f.context.onOpenChange=o,f.context.nested=u,f}function yE(t){return fu(19)?t:t?"true":void 0}function ll(t,r=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(t,o))}function vE(t,r){const o=(r??bt(t).getComputedStyle(t)).transform;let i=0,l=0,u=1;if(o&&o!=="none"){const f=o.match(/matrix(?:3d)?\(([^)]+)\)/);if(f){const d=f[1].split(", ").map(parseFloat);d.length===6?(i=d[4],l=d[5],u=Math.sqrt(d[0]*d[0]+d[1]*d[1])):d.length===16&&(i=d[12],l=d[13],u=d[0])}}return{x:i,y:l,scale:u}}const xE={...As,...vu},Sv=y.forwardRef(function(r,o){const{render:i,id:l,className:u,match:f,style:d,...h}=r,g=Jo(l),{validityData:m,state:v,name:x}=vo(!1),{setMessageIds:R}=xo(),{errors:w}=Si(),E=x&&Object.hasOwn(w,x)?w[x]:null,b=!!(Array.isArray(E)?E.length:E),C=typeof f=="string";let S=!1;f===!0?S=!0:v.disabled?S=!1:C?S=!!m.state[f]:S=b||m.state.valid===!1;const{mounted:P,transitionStatus:T,setMounted:A}=Td(S);ke(()=>{if(!(!S||!g))return R(Q=>Q.concat(g)),()=>{R(Q=>Q.filter(ie=>ie!==g))}},[S,g,R]);const O=y.useRef(null),[D,j]=y.useState(null),[z,N]=y.useState(null);let G=m.error;!C&&b?G=E:m.errors.length>1&&(G=m.errors);let X=G;Array.isArray(G)&&(X=G.length>1?_.jsx("ul",{children:G.map(Q=>_.jsx("li",{children:Q},Q))}):G[0]);const W=Array.isArray(G)?JSON.stringify(G):G;S&&W!==z&&(N(W),j(X)),bl({open:S,ref:O,onComplete(){S||A(!1)}});const Y={...v,transitionStatus:T},L=Et("div",r,{ref:[o,O],state:Y,props:[{id:g,children:S?X:D},h],stateAttributesMapping:xE,enabled:P});return P?L:null});Sv.displayName="FieldError";const Rv=y.forwardRef(function(r,o){const{render:i,id:l,className:u,style:f,...d}=r,h=Jo(l),g=vo(!1),m=mv(),{setMessageIds:v}=xo(),x={...g.state,disabled:g.disabled||m.disabled};return ke(()=>{if(h)return v(R=>R.concat(h)),()=>{v(R=>R.filter(w=>w!==h))}},[h,v]),Et("p",r,{ref:o,state:x,props:[{id:h},d],stateAttributesMapping:As})});Rv.displayName="FieldDescription";function wE(t){if(t)return typeof t=="string"?{message:t,match:!0}:t}function kE({controlFirst:t=!1}={}){return De("grid gap-2","has-[input[type=checkbox]]:grid-cols-[auto_1fr] has-[input[type=checkbox]]:items-center","has-[[role=switch]]:grid-cols-[auto_1fr] has-[[role=switch]]:items-center",t&&["has-[input[type=checkbox]]:flex has-[input[type=checkbox]]:flex-row-reverse has-[input[type=checkbox]]:flex-wrap has-[input[type=checkbox]]:items-center","has-[[role=switch]]:flex has-[[role=switch]]:flex-row-reverse has-[[role=switch]]:flex-wrap has-[[role=switch]]:items-center","[&>label]:flex-1"])}function Em(t){return t==null||typeof t=="boolean"||t===""}function Ev({children:t,label:r,required:o,labelTooltip:i,error:l,description:u,controlFirst:f=!1,hideLabel:d=!1}){const h=o===!1,g=!Em(r)||h||!Em(i);return _.jsxs(xv,{className:kE({controlFirst:f}),children:[!d&&g&&_.jsx(wv,{className:"m-0 text-base font-medium text-kumo-default select-none",children:_.jsx(_d,{showOptional:h,tooltip:i,asContent:!0,children:r})}),t,l?_.jsx(Sv,{className:De("text-sm leading-snug text-kumo-danger","col-span-full"),match:l.match,children:l.message}):u&&_.jsx(Rv,{className:De("text-sm leading-snug text-kumo-subtle","col-span-full"),children:u})]})}const Cv=y.forwardRef(function(r,o){const{render:i,className:l,id:u,name:f,value:d,disabled:h=!1,onValueChange:g,defaultValue:m,autoFocus:v=!1,style:x,...R}=r,{state:w,name:E,disabled:b,setTouched:C,setDirty:S,validityData:P,setFilled:T,validationMode:A,validation:O}=vo(),{clearErrors:D,elementRef:j,submitCountRef:z}=Si(),N=b||h,G=E??f,X={...w,disabled:N},{labelId:W}=xo(),Y=zd({id:u}),L=d!==void 0,Q=d==null?void 0:String(d),ie=xe(()=>{var I;return(I=O.inputRef.current)==null?void 0:I.value});kv(O.inputRef,Y,Q,ie,!N,f),ke(()=>{var F;const I=Q??((F=O.inputRef.current)==null?void 0:F.value);I!==void 0&&T(I!=="")},[Q,m,O.inputRef,T]),jd(Q,()=>{Q!==void 0&&(D(G),S(Q!==(P.initialValue??"")),O.change(Q))});const $=y.useRef(null),H=bv(N,$),B=Nn();return Et("input",r,{ref:[o,$],state:X,props:[{id:Y,disabled:N,name:G,ref:O.inputRef,"aria-labelledby":W,autoFocus:v,...L?{value:d}:{defaultValue:m},onChange(I){const F=I.currentTarget.value,q=nt(Xo,I.nativeEvent);g==null||g(F,q),!L&&(S(F!==(P.initialValue??"")),T(F!==""),!I.nativeEvent.defaultPrevented&&!q.isCanceled&&(D(G),O.change(F)))},onFocus(){H(!0)},onBlur(I){if(C(!0),H(!1),A==="onBlur"){const F=I.currentTarget.value;O.commit(F),L&&queueMicrotask(()=>{var K;const q=(K=O.inputRef.current)==null?void 0:K.value;q!==void 0&&q!==F&&q!==(P.initialValue??"")&&O.commit(q)})}},onKeyDown(I){if(I.currentTarget.tagName==="INPUT"&&I.key==="Enter"){C(!0);const F=I.currentTarget.value,q=I.currentTarget.form;if(q&&q===j.current&&!I.defaultPrevented){const K=I.currentTarget,re=z.current;B.start(0,()=>{z.current===re&&O.commit(K.value)})}else O.commit(F)}}},R,I=>O.getValidationProps(N,I)],stateAttributesMapping:As})});Cv.displayName="FieldControl";const Tv=y.forwardRef(function(r,o){return _.jsx(Cv,{ref:o,...r})});Tv.displayName="Input";const Cm={size:{xs:{classes:"h-5 gap-1 rounded-sm px-1.5 text-xs",description:"Extra small input for compact UIs"},sm:{classes:"h-6.5 gap-1 rounded-md px-2 text-xs",description:"Small input for secondary fields"},base:{classes:"h-9 gap-1.5 rounded-lg px-3 text-base",description:"Default input size"},lg:{classes:"h-10 gap-2 rounded-lg px-4 text-base",description:"Large input for prominent fields"}},variant:{default:{classes:"focus:ring-kumo-focus/50 focus:ring-[1.5px]",description:"Default input appearance"},error:{classes:"!ring-kumo-danger focus:ring-kumo-danger/50 focus:ring-[1.5px]",description:"Error state for validation failures"}}},Oa={size:"base",variant:"default"};function bE({variant:t=Oa.variant,size:r=Oa.size,parentFocusIndicator:o=!1,focusIndicator:i=!1}={}){return De("border-0 bg-kumo-control text-kumo-default ring ring-kumo-line outline-none focus:outline-hidden","kumo-input-placeholder disabled:text-kumo-inactive",vn(Cm.size,r,Oa.size).classes,vn(Cm.variant,t,Oa.variant).classes,o&&"has-focus-visible:outline-hidden",o&&(t==="error"?"focus-within:ring-[1.5px] focus-within:ring-kumo-danger/50":"focus-within:ring-[1.5px] focus-within:ring-kumo-focus/50"),i&&(t==="error"?"focus:ring-[1.5px] focus:ring-kumo-danger/50":"focus:ring-[1.5px] focus:ring-kumo-focus/50"))}const Iv=y.forwardRef((t,r)=>{const{className:o,size:i="base",variant:l,label:u,labelTooltip:f,description:d,error:h,passwordManagerIgnore:g=!1,...m}=t;l==="error"&&console.warn('[Kumo Input]: variant="error" is deprecated. Error styling is now automatically applied when the `error` prop is truthy. Simply remove the variant prop and pass an error message instead.');const v=l??(h?"error":"default"),{required:x}=m;{const w=!!u,E=!!m["aria-label"],b=!!m["aria-labelledby"];!w&&!E&&!b&&console.warn(`[Kumo Input]: Input must have an accessible name. Provide either:
|
|
141
|
-
- label prop: <Input label='Email' />
|
|
142
|
-
- aria-label: <Input aria-label='Email address' />
|
|
143
|
-
- aria-labelledby for custom label association`)}const R=_.jsx(Tv,{ref:r,className:De(bE({size:i,variant:v,focusIndicator:!0}),g&&"keeper-ignore",o),...g?{"data-1p-ignore":"true","data-bwignore":"true","data-form-type":"other","data-lpignore":"true"}:{},...m});return u||h||d?_.jsx(Ev,{label:u,required:x,labelTooltip:f,description:d,error:wE(h),children:R}):R});Iv.displayName="Input";const Wa={variant:{heading:{classes:"text-lg font-semibold",description:"Heading text (16px by default, 20px at large size)"},heading1:{classes:"text-3xl font-semibold",description:"Deprecated large heading for page titles; use heading instead"},heading2:{classes:"text-2xl font-semibold",description:"Deprecated medium heading for section titles; use heading instead"},heading3:{classes:"text-lg font-semibold",description:"Deprecated small heading for subsections; use heading instead"},body:{classes:"text-kumo-default",description:"Default body text"},secondary:{classes:"text-kumo-subtle",description:"Muted text for secondary information"},success:{classes:"text-kumo-link",description:"Success state text"},error:{classes:"text-kumo-danger",description:"Error state text"},mono:{classes:"font-mono",description:"Monospace text for code"},"mono-secondary":{classes:"font-mono text-kumo-subtle",description:"Muted monospace text"}},size:{xs:{classes:"text-xs/[inherit]",description:"Extra small text"},sm:{classes:"text-sm/[inherit]",description:"Small text"},base:{classes:"text-base/[inherit]",description:"Default text size"},lg:{classes:"text-lg/[inherit]",description:"Large text"}}},Pv={variant:"body",size:"base"},SE=["heading1","heading2","heading3"];function Av(t){return SE.includes(t)}function RE(t,r){return t==="heading"?r==="lg"?"text-xl":"":Av(t)?"":["mono","mono-secondary"].includes(t)?r==="lg"?Wa.size.base.classes:Wa.size.sm.classes:vn(Wa.size,r,Pv.size).classes}function EE({variant:t="body",bold:r=!1,size:o="base",truncate:i=!1,children:l,DANGEROUS_className:u,DANGEROUS_style:f,as:d,...h},g){const m=["body","secondary","success","error"].includes(t),v=y.useMemo(()=>d||(["mono","mono-secondary"].includes(t)||t==="heading"||Av(t)?"span":"p"),[t,d]);return _.jsx(v,{ref:g,className:De("text-kumo-default",vn(Wa.variant,t,Pv.variant).classes,RE(t,o),m&&r?"font-medium":"",i&&"min-w-0 truncate",u),style:f,...h,children:l})}const uo=y.forwardRef(EE);let Ma=0;function Ka(t,r={}){const{preventScroll:o=!1,sync:i=!1,shouldFocus:l}=r;cancelAnimationFrame(Ma);function u(){l&&!l()||t==null||t.focus({preventScroll:o})}if(i)return u(),Dt;const f=requestAnimationFrame(u);return Ma=f,()=>{Ma===f&&(cancelAnimationFrame(f),Ma=0)}}const Tm="data-base-ui-inert";let rl=new WeakMap,La=new WeakSet,ol=new WeakMap,Pf=0;function Ov(t){return t?Yo(t)?t.host:Ov(t.parentNode):null}const Im=(t,r)=>r.map(o=>{if(t.contains(o))return o;const i=Ov(o);return t.contains(i)?i:null}).filter(o=>o!=null),Pm=t=>{const r=new Set;return t.forEach(o=>{let i=o;for(;i&&!r.has(i);)r.add(i),i=i.parentNode}),r},Am=(t,r,o)=>{const i=[],l=u=>{!u||o.has(u)||Array.from(u.children).forEach(f=>{xn(f)!=="script"&&(r.has(f)?l(f):i.push(f))})};return l(t),i};function CE(t,r,o,{mark:i=!0}){const l=Im(r,t),u=i?Am(r,Pm(l),new Set(l)):[],f=[],d=[];if(o){const h=Im(r,Array.from(r.querySelectorAll("[aria-live]"))),g=l.concat(h);Am(r,Pm(g),new Set(g)).forEach(m=>{const v=m.getAttribute("aria-hidden"),x=v!==null&&v!=="false",R=(rl.get(m)||0)+1;rl.set(m,R),f.push(m),R===1&&x&&La.add(m),x||m.setAttribute("aria-hidden","true")})}return i&&u.forEach(h=>{const g=(ol.get(h)||0)+1;ol.set(h,g),d.push(h),g===1&&h.setAttribute(Tm,"")}),Pf+=1,()=>{f.forEach(h=>{const g=(rl.get(h)||0)-1;rl.set(h,g),g||(La.has(h)||h.removeAttribute("aria-hidden"),La.delete(h))}),i&&d.forEach(h=>{const g=(ol.get(h)||0)-1;ol.set(h,g),g||h.removeAttribute(Tm)}),Pf-=1,Pf||(rl=new WeakMap,La=new WeakSet,ol=new WeakMap)}}function Om(t,r={}){const{ariaHidden:o=!1,mark:i=!0}=r,l=ut(t[0]).body;return CE(t,l,o,{mark:i})}function TE(t,r){const o=bt(pn(t));return t instanceof o.KeyboardEvent?"keyboard":t instanceof o.FocusEvent?r||"keyboard":"pointerType"in t?t.pointerType||(mi(t)?"keyboard":r||"mouse"):"touches"in t?"touch":t instanceof o.MouseEvent?r||(t.detail===0?"keyboard":"mouse"):""}const IE=20;let Ho=[];function Hd(){Ho=Ho.filter(t=>{var r;return(r=t.deref())==null?void 0:r.isConnected})}function Mm(t){Hd(),t&&xn(t)!=="body"&&(Ho.push(new WeakRef(t)),Ho.length>IE&&(Ho=Ho.slice(-20)))}function Lm(){var t;return Hd(),(t=Ho[Ho.length-1])==null?void 0:t.deref()}function PE(t){return t?kd(t)?t:ku(t)[0]||t:null}function Nm(t){var i;if(t.hasAttribute("tabindex")&&!t.hasAttribute("data-tabindex")||!((i=t.getAttribute("role"))!=null&&i.includes("dialog")))return;const r=dy(t).filter(l=>{const u=l.getAttribute("data-tabindex")||"";return kd(l)||l.hasAttribute("data-tabindex")&&!u.startsWith("-")}),o=t.getAttribute("tabindex");r.length===0?o!=="0"&&(t.setAttribute("tabindex","0"),t.setAttribute("data-tabindex","0")):(o!=="-1"||t.hasAttribute("data-tabindex")&&t.getAttribute("data-tabindex")!=="-1")&&(t.setAttribute("tabindex","-1"),t.setAttribute("data-tabindex","-1"))}function AE(t){const{context:r,children:o,disabled:i=!1,initialFocus:l=!0,returnFocus:u=!0,explicitReturnFocus:f,restoreFocus:d=!1,modal:h=!0,closeOnFocusOut:g=!0,openInteractionType:m="",nextFocusableElement:v,previousFocusableElement:x,beforeContentFocusGuardRef:R,externalTree:w,getInsideElements:E}=t,b=r.useState("open"),C=r.useState("domReferenceElement"),S=r.useState("floatingElement"),{events:P,dataRef:T}=r.context,A=xe(()=>{var we;return(we=T.current.floatingContext)==null?void 0:we.nodeId}),O=l===!1,D=Hf(C)&&O,j=$t(l),z=$t(u),N=$t(f),G=$t(m),X=$t(b),W=bi(w),Y=Ey(),L=y.useRef(!1),Q=y.useRef(!1),ie=y.useRef(!1),$=y.useRef(null),H=y.useRef(""),B=y.useRef(""),I=y.useRef(null),F=y.useRef(null),q=Cs(I,R,Y==null?void 0:Y.beforeInsideRef),K=Cs(F,Y==null?void 0:Y.afterInsideRef),re=Nn(),J=Nn(),ne=vi(),ae=Y!=null,le=ru(S),me=xe((we=le)=>we?ku(we):[]),Ce=xe(()=>(E==null?void 0:E().filter(we=>we!=null))??[]);y.useEffect(()=>{if(i||!h)return;function we(ze){ze.key==="Tab"&&$e(le,Mn(ut(le)))&&me().length===0&&!D&&$r(ze)}const Se=ut(le);return tt(Se,"keydown",we)},[i,le,h,D,me]),y.useEffect(()=>{if(i||!b)return;const we=ut(le);function Se(){ie.current=!1}function ze(qe){const Te=pn(qe),Fe=Ce(),ge=$e(S,Te)||$e(C,Te)||$e(Y==null?void 0:Y.portalNode,Te)||Fe.some(We=>We===Te||$e(We,Te));ie.current=!ge,B.current=qe.pointerType||"keyboard",yi(Te,"[data-base-ui-click-trigger]")&&(Q.current=!0,J.start(0,()=>{Q.current=!1}))}function Ve(){B.current="keyboard"}return Br(tt(we,"pointerdown",ze,!0),tt(we,"pointerup",Se,!0),tt(we,"pointercancel",Se,!0),tt(we,"keydown",Ve,!0),Se)},[i,S,C,le,b,Y,J,Ce]),y.useEffect(()=>{if(i||!g)return;const we=ut(le);function Se(){Q.current=!0,J.start(0,()=>{Q.current=!1})}function ze(Fe){const ge=pn(Fe);kd(ge)&&($.current=ge)}function Ve(Fe){const ge=Fe.relatedTarget,We=Fe.currentTarget,lt=pn(Fe);h&&ge==null&<!=null&&$e(S,lt)&&Mm(lt),queueMicrotask(()=>{const ft=A(),se=r.context.triggerElements,fe=Ce(),Me=(ge==null?void 0:ge.hasAttribute(fi("focus-guard")))&&[I.current,F.current,Y==null?void 0:Y.beforeInsideRef.current,Y==null?void 0:Y.afterInsideRef.current,Y==null?void 0:Y.beforeOutsideRef.current,Y==null?void 0:Y.afterOutsideRef.current,co(x),co(v)].includes(ge),he=!($e(C,ge)||$e(S,ge)||$e(ge,S)||$e(Y==null?void 0:Y.portalNode,ge)||fe.some(Le=>Le===ge||$e(Le,ge))||se.hasMatchingElement(Le=>$e(Le,ge))||Me||W&&(Zo(W.nodesRef.current,ft).find(Le=>{var Ke,et;return $e((Ke=Le.context)==null?void 0:Ke.elements.floating,ge)||$e((et=Le.context)==null?void 0:et.elements.domReference,ge)})||lm(W.nodesRef.current,ft).find(Le=>{var Ke,et,rt;return[(Ke=Le.context)==null?void 0:Ke.elements.floating,ru((et=Le.context)==null?void 0:et.elements.floating)].includes(ge)||((rt=Le.context)==null?void 0:rt.elements.domReference)===ge})));if(We===C&&le&&Nm(le),d&&We!==C&&!wu(lt)&&Mn(we)===we.body){if(vt(le)&&(le.focus(),d==="popup")){ne.request(()=>{le.focus()});return}const Le=me(),Ke=$.current,et=(Ke&&Le.includes(Ke)?Ke:null)||Le[Le.length-1]||le;vt(et)&&et.focus()}if(T.current.insideReactTree){T.current.insideReactTree=!1;return}(D||!h)&&ge&&he&&!Q.current&&(D||ge!==Lm())&&(L.current=!0,r.setOpen(!1,nt(my,Fe)))})}function qe(){ie.current||(T.current.insideReactTree=!0,re.start(0,()=>{T.current.insideReactTree=!1}))}const Te=vt(C)?C:null;if(!(!S&&!Te))return Br(Te&&tt(Te,"focusout",Ve),Te&&tt(Te,"pointerdown",Se),S&&tt(S,"focusin",ze),S&&tt(S,"focusout",Ve),S&&Y&&tt(S,"focusout",qe,!0))},[i,C,S,le,h,W,Y,r,g,d,me,D,A,T,re,J,ne,v,x,Ce]),y.useEffect(()=>{var qe,Te,Fe;if(i||!S||!b)return;const we=Array.from(((qe=Y==null?void 0:Y.portalNode)==null?void 0:qe.querySelectorAll(`[${fi("portal")}]`))||[]),Se=(Fe=(Te=(W?lm(W.nodesRef.current,A()):[]).find(ge=>{var We;return Hf(((We=ge.context)==null?void 0:We.elements.domReference)||null)}))==null?void 0:Te.context)==null?void 0:Fe.elements.domReference,ze=Om([S,...we,I.current,F.current,Y==null?void 0:Y.beforeOutsideRef.current,Y==null?void 0:Y.afterOutsideRef.current,...Ce(),Se,co(x),co(v),D?C:null].filter(ge=>ge!=null),{ariaHidden:h||D,mark:!1}),Ve=Om([S,...we].filter(ge=>ge!=null));return()=>{Ve(),ze()}},[b,i,C,S,h,Y,D,W,A,v,x,Ce]),ke(()=>{if(!b||i||!vt(le))return;H.current="",B.current="";const we=ut(le),Se=Mn(we);queueMicrotask(()=>{const ze=j.current,Ve=typeof ze=="function"?ze(G.current||""):ze;if(Ve===void 0||Ve===!1||$e(le,Se))return;let qe=null;const Te=()=>(qe==null&&(qe=me(le)),qe[0]||le);let Fe;Ve===!0||Ve===null?Fe=Te():Fe=co(Ve),Fe=Fe||Te();const ge=$e(le,Mn(we)),We=T.current.openEvent,lt=(We==null?void 0:We.type)==="mousedown"&&mi(We);Ka(Fe,{sync:lt,preventScroll:Fe===le,shouldFocus(){if(!X.current)return!1;if(ge)return!0;const ft=Mn(we);return!(ft!==Fe&&$e(le,ft))}})})},[i,b,le,me,j,G,X,T]);const be=y.useRef(null);ke(()=>{if(i||!le){be.current=null;return}be.current&&(be.current.cancelled=!0,be.current=null);const we=ut(le),Se=Mn(we),ze=G.current==null;Mm(Se);function Ve(Te){var Fe;if(Te.open||(H.current=TE(Te.nativeEvent,B.current)),(Te.reason==="focus-out"&&((Fe=Te.triggerElement)!=null&&Fe.hasAttribute(fi("focus-guard")))||Te.reason==="trigger-hover"&&Te.nativeEvent.type==="mouseleave")&&(L.current=!0),Te.reason==="outside-press")if(Te.nested)L.current=!1;else if(mi(Te.nativeEvent)||wd(Te.nativeEvent))L.current=!1;else{let ge=!1;ut(le).createElement("div").focus({get preventScroll(){return ge=!0,!1}}),ge?L.current=!1:L.current=!0}}P.on("openchange",Ve);function qe(Te){const Fe=z.current;let ge=typeof Fe=="function"?Fe(Te):Fe;if(ge===void 0||ge===!1)return null;ge===null&&(ge=!0);const We=C!=null&&C.isConnected?C:null,lt=Se!=null&&Se.isConnected&&xn(Se)!=="body"?Se:null;let ft=ze?lt||We:We||lt;return ft||(ft=Lm()||null),typeof ge=="boolean"?ft:co(ge)||ft||null}return()=>{P.off("openchange",Ve);const Te=Mn(we),Fe=Ce(),ge=$e(S,Te)||Fe.some(fe=>fe===Te||$e(fe,Te))||W&&Zo(W.nodesRef.current,A(),!1).some(fe=>{var Me;return $e((Me=fe.context)==null?void 0:Me.elements.floating,Te)}),We=z.current,lt=H.current,ft=qe(lt),se={cancelled:!1};be.current=se,queueMicrotask(()=>{be.current===se&&(be.current=null);const fe=PE(ft),Me=N.current??typeof We!="boolean";if(!se.cancelled&&We&&!L.current&&vt(fe)&&(!(!Me&&fe!==Te&&Te!==we.body)||ge)){const he={preventScroll:!0};lt==="keyboard"&&(he.focusVisible=!0),fe.focus(he)}L.current=!1})}},[i,S,le,z,N,G,P,W,C,A,Ce]),ke(()=>{if(!yo||b||!S)return;const we=Mn(ut(S));!vt(we)||!kl(we)||$e(S,we)&&we.blur()},[b,S]),ke(()=>{if(!(i||!Y))return Y.setFocusManagerState({modal:h,closeOnFocusOut:g,open:b,onOpenChange:r.setOpen,domReference:C}),()=>{Y.setFocusManagerState(null)}},[i,Y,h,b,r,g,C]),ke(()=>{if(!(i||!le))return Nm(le),()=>{queueMicrotask(Hd)}},[i,le]);const Ae=!i&&(h?!D:!0)&&(ae||h);return _.jsxs(y.Fragment,{children:[Ae&&_.jsx(hl,{"data-type":"inside",ref:q,onFocus:we=>{var Se,ze;if(h){const Ve=me();Ka(Ve[Ve.length-1])}else Y!=null&&Y.portalNode&&(L.current=!1,ul(we,Y.portalNode)?(Se=hy(C))==null||Se.focus():(ze=co(x??Y.beforeOutsideRef))==null||ze.focus())}}),o,Ae&&_.jsx(hl,{"data-type":"inside",ref:K,onFocus:we=>{var Se,ze;h?Ka(me()[0]):Y!=null&&Y.portalNode&&(g&&(L.current=!0),ul(we,Y.portalNode)?(Se=gy(C))==null||Se.focus():(ze=co(v??Y.afterOutsideRef))==null||ze.focus())}})]})}function OE(t){const r=y.useRef(""),o=y.useCallback(i=>{i.defaultPrevented||(r.current=i.pointerType,t(i,i.pointerType))},[t]);return{onClick:y.useCallback(i=>{if(i.detail===0){t(i,"keyboard");return}"pointerType"in i?t(i,i.pointerType):t(i,r.current),r.current=""},[t]),onPointerDown:o}}function ME(t,r){const{onClick:o,onPointerDown:i}=OE(xe((l,u)=>{(typeof t=="function"?t():t)||r(u||(yu?"touch":""))}));return y.useMemo(()=>({onClick:o,onPointerDown:i}),[o,i])}function LE(t){const[r,o]=y.useState(null),i=ME(t,o);return jd(t,l=>{l&&!t&&o(null)}),y.useMemo(()=>({openMethod:r,triggerProps:i}),[r,i])}const Mv=y.forwardRef(function(r,o){const{cutout:i,...l}=r;let u;if(i){const f=i.getBoundingClientRect();u=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${f.left}px ${f.top}px,${f.left}px ${f.bottom}px,${f.right}px ${f.bottom}px,${f.right}px ${f.top}px,${f.left}px ${f.top}px)`}return _.jsx("div",{ref:o,role:"presentation","data-base-ui-inert":"",...l,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:u}})});Mv.displayName="InternalBackdrop";let _m={},Dm={},Fm="";function Tu(t,r){return wl(t)?t:r}function zm(t,r,o){return/hidden|clip/.test(t.getComputedStyle(Tu(r,o)).overflowY)}function NE(t){if(typeof document>"u")return!1;const r=ut(t);return bt(r).innerWidth-r.documentElement.clientWidth>0}function _E(t){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const r=ut(t),o=r.documentElement,i=r.body,l=Tu(o,i),u=l.style.overflowY,f=o.style.scrollbarGutter;o.style.scrollbarGutter="stable",l.style.overflowY="scroll";const d=l.offsetWidth;l.style.overflowY="hidden";const h=l.offsetWidth;return l.style.overflowY=u,o.style.scrollbarGutter=f,d===h}function DE(t){const r=ut(t),o=r.documentElement,i=r.body,l=Tu(o,i),u={overflowY:l.style.overflowY,overflowX:l.style.overflowX};return Object.assign(l.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(l.style,u)}}function FE(t){var R;const r=ut(t),o=r.documentElement,i=r.body,l=bt(o);let u=0,f=0,d=!1;const h=Bo.create();if(yo&&(((R=l.visualViewport)==null?void 0:R.scale)??1)!==1)return()=>{};function g(){const w=l.getComputedStyle(o),E=l.getComputedStyle(i),b=(w.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";u=o.scrollTop,f=o.scrollLeft,_m={scrollbarGutter:o.style.scrollbarGutter,overflowY:o.style.overflowY,overflowX:o.style.overflowX},Fm=o.style.scrollBehavior,Dm={position:i.style.position,height:i.style.height,width:i.style.width,boxSizing:i.style.boxSizing,overflowY:i.style.overflowY,overflowX:i.style.overflowX,scrollBehavior:i.style.scrollBehavior};const C=o.scrollHeight>o.clientHeight,S=o.scrollWidth>o.clientWidth,P=w.overflowY==="scroll"||E.overflowY==="scroll",T=w.overflowX==="scroll"||E.overflowX==="scroll",A=Math.max(0,l.innerWidth-i.clientWidth),O=Math.max(0,l.innerHeight-i.clientHeight),D=parseFloat(E.marginTop)+parseFloat(E.marginBottom),j=parseFloat(E.marginLeft)+parseFloat(E.marginRight),z=Tu(o,i);if(d=_E(t),d){o.style.scrollbarGutter=b,z.style.overflowY="hidden",z.style.overflowX="hidden";return}Object.assign(o.style,{scrollbarGutter:b,overflowY:"hidden",overflowX:"hidden"}),(C||P)&&(o.style.overflowY="scroll"),(S||T)&&(o.style.overflowX="scroll"),Object.assign(i.style,{position:"relative",height:D||O?`calc(100dvh - ${D+O}px)`:"100dvh",width:j||A?`calc(100vw - ${j+A}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),i.scrollTop=u,i.scrollLeft=f,o.setAttribute("data-base-ui-scroll-locked",""),o.style.scrollBehavior="unset"}function m(){Object.assign(o.style,_m),Object.assign(i.style,Dm),d||(o.scrollTop=u,o.scrollLeft=f,o.removeAttribute("data-base-ui-scroll-locked"),o.style.scrollBehavior=Fm)}function v(){m(),h.request(g)}g();const x=tt(l,"resize",v);return()=>{h.cancel(),m(),typeof l.removeEventListener=="function"&&x()}}var zE=class{constructor(){Ie(this,"lockCount",0);Ie(this,"restore",null);Ie(this,"timeoutLock",qo.create());Ie(this,"timeoutUnlock",qo.create());Ie(this,"release",()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)});Ie(this,"unlock",()=>{var t;this.lockCount===0&&this.restore&&((t=this.restore)==null||t.call(this),this.restore=null)})}acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}lock(t){if(this.lockCount===0||this.restore!==null)return;const r=ut(t),o=r.documentElement,i=r.body,l=bt(o);if(zm(l,o,i)){const f=new l.MutationObserver(()=>{zm(l,o,i)||(f.disconnect(),this.restore=null,this.lock(t))}),d={attributes:!0};f.observe(o,d),f.observe(i,d),this.restore=()=>f.disconnect();return}const u=yu||!NE(t);this.restore=u?DE(t):FE(t)}};const jE=new zE;function $E(t=!0,r=null){ke(()=>{if(t)return jE.acquire(r)},[t,r])}function VE(t,r={}){const{enabled:o=!0,event:i="click",toggle:l=!0,ignoreMouse:u=!1,stickIfOpen:f=!0,touchOpenDelay:d=0,reason:h=bd}=r,g=t.context.dataRef,m=y.useRef(void 0),v=vi(),x=Nn(),R=y.useMemo(()=>{function w(b,C,S,P){const T=nt(h,C,S);b&&P==="touch"&&d>0?x.start(d,()=>{t.setOpen(!0,T)}):t.setOpen(b,T)}function E(b,C,S){const P=g.current.openEvent,T=t.select("domReferenceElement")!==C;return b&&T||!b||!l?!0:P&&(typeof f=="function"?f():f)?!S(P.type):!1}return{onPointerDown(b){m.current=Uo(b.pointerType,!0)&&wd(b.nativeEvent)?"virtual":b.pointerType},onMouseDown(b){const C=m.current,S=b.nativeEvent,P=t.select("open");if(b.button!==0||i==="click"||Uo(C,!0)&&u)return;const T=E(P,b.currentTarget,j=>j==="click"||j==="mousedown"),A=pn(S),O=kl(A);if(O||C==="virtual"){w(T,S,O?A:b.currentTarget,C);return}const D=b.currentTarget;v.request(()=>{w(T,S,D,C)})},onClick(b){if(i==="mousedown-only")return;const C=m.current;if(i==="mousedown"&&C){m.current=void 0;return}Uo(C,!0)&&u||w(E(t.select("open"),b.currentTarget,S=>S==="click"||S==="mousedown"||S==="keydown"||S==="keyup"),b.nativeEvent,b.currentTarget,C)},onKeyDown(){m.current=void 0}}},[g,i,u,h,t,f,l,v,x,d]);return y.useMemo(()=>o?{reference:R}:Vt,[o,R])}function jm(t){return yo&&t.movementX===0&&t.movementY===0}function Iu(t,r,o){switch(t){case"vertical":return r;case"horizontal":return o;default:return r||o}}function Na(t,r){return Iu(r,t==="ArrowUp"||t==="ArrowDown",t==="ArrowLeft"||t==="ArrowRight")}function Af(t,r,o){return Iu(r,t==="ArrowDown",o?t==="ArrowLeft":t==="ArrowRight")||t==="Enter"||t===" "||t===""}function BE(t,r,o){return Iu(r,o?t===ty:t===ny,t===Db)}function HE(t,r,o,i){const l=o?t===ny:t===ty,u=t===_b;return r==="both"||r==="horizontal"&&i?t==="Escape":Iu(r,l,u)}function UE(t,r){const{listRef:o,activeIndex:i,onNavigate:l=()=>{},enabled:u=!0,selectedIndex:f=null,allowEscape:d=!1,loopFocus:h=!1,nested:g=!1,rtl:m=!1,virtual:v=!1,focusItemOnOpen:x="auto",focusItemOnHover:R=!0,openOnArrowKeyDown:w=!0,disabledIndices:E=void 0,orientation:b="vertical",triggerOrientation:C=b,parentOrientation:S,id:P,resetOnPointerLeave:T=!0,externalTree:A,nestedReturnFocusRef:O,grid:D}=r,j=D!=null;d&&(h||console.warn("`useListNavigation` looping must be enabled to allow escaping."),v||console.warn("`useListNavigation` must be virtual to allow escaping.")),b==="vertical"&&j&&console.warn("In grid list navigation mode, the `orientation` should",'be either "horizontal" or "both".');const z=t.useState("open"),N=t.useState("floatingElement"),G=t.useState("domReferenceElement"),X=t.context.dataRef,W=ru(N),Y=Hf(G),L=$t(W),Q=Su(),ie=bi(A),$=y.useRef(x),H=y.useRef(f??-1),B=y.useRef(null),I=y.useRef(!0),F=xe(se=>{l(H.current===-1?null:H.current,se)}),q=y.useRef(!!N),K=y.useRef(z),re=y.useRef(!1),J=y.useRef(!1),ne=y.useRef(null),ae=$t(E),le=$t(z),me=$t(f),Ce=$t(T),be=vi(),Ae=vi(),we=xe(()=>{be.cancel();function se(he){v||(ne.current=Ka(he,{sync:re.current,preventScroll:!0}))}const fe=o.current[H.current],Me=J.current;fe&&se(fe),(re.current?he=>he():he=>be.request(he))(()=>{var Le;const he=o.current[H.current]||fe;he&&(fe||se(he),Fe&&(Me||!I.current)&&((Le=he.scrollIntoView)==null||Le.call(he,{block:"nearest",inline:"nearest"})))})});ke(()=>{X.current.orientation=b},[X,b]),ke(()=>{z||(B.current=null),(!z||x!=="auto")&&($.current=x)},[z,x]),ke(()=>{u&&(z&&N?(H.current=f??-1,$.current&&f!=null&&(J.current=!0,F())):q.current&&(H.current=-1,F()))},[u,z,N,f,F]),ke(()=>{if(u){if(!z){re.current=!1;return}if(N)if(i==null){if(re.current=!1,me.current!=null)return;if(q.current&&(H.current=-1,we()),(!K.current||!q.current)&&$.current&&(B.current!=null||$.current===!0&&B.current==null)){let se=0;const fe=()=>{o.current[0]==null?(se<2&&(se?Me=>Ae.request(Me):queueMicrotask)(fe),se+=1):(H.current=B.current==null||Af(B.current,C,m)||g?Ua(o):Uf(o),B.current=null,F())};fe()}}else ai(o.current,i)||(H.current=i,we(),J.current=!1)}},[u,z,N,i,me,g,o,C,m,F,we,Ae]),ke(()=>{var Le,Ke;if(!u||N||!ie||v||!q.current)return;const se=ie.nodesRef.current,fe=(Ke=(Le=se.find(et=>et.id===Q))==null?void 0:Le.context)==null?void 0:Ke.elements.floating,Me=Mn(ut(G??fe??null)),he=se.some(et=>et.context&&$e(et.context.elements.floating,Me));fe&&!he&&I.current&&fe.focus({preventScroll:!0})},[u,N,G,ie,Q,v]),ke(()=>{K.current=z,q.current=!!N});const Se=i!=null,ze=xe(se=>{if(!le.current)return;const fe=o.current.indexOf(se.currentTarget);fe!==-1&&(H.current!==fe||i!==fe)&&(H.current=fe,F(se))}),Ve=xe(()=>{var se,fe,Me;return S??((Me=(fe=(se=ie==null?void 0:ie.nodesRef.current.find(he=>he.id===Q))==null?void 0:se.context)==null?void 0:fe.dataRef)==null?void 0:Me.current.orientation)}),qe=xe(()=>Ua(o,ae.current)),Te=xe(se=>{if(I.current=!1,re.current=!0,se.which===229||!le.current&&se.currentTarget===L.current)return;if(g&&HE(se.key,b,m,j)){Na(se.key,Ve())||$r(se),t.setOpen(!1,nt(qg,se.nativeEvent));const Le=(O==null?void 0:O.current)??G;vt(Le)&&Le.focus();return}i!=null&&i!==H.current&&!ai(o.current,i)&&(H.current=i);const fe=H.current,Me=Ua(o,E),he=Uf(o,E);if(Y||(se.key==="Home"&&($r(se),H.current=Me,F(se)),se.key==="End"&&($r(se),H.current=he,F(se))),D!=null){const Le=D(se,H.current,o,b,h,m,E,Me,he);if(Le!=null&&Le!==H.current&&(H.current=Le,F(se)),b==="both")return}if(Na(se.key,b)){$r(se);const Le=Mn(se.currentTarget.ownerDocument);if(z&&!v&&$e(se.currentTarget,Le)&&!o.current.some(rt=>rt!=null&&$e(rt,Le))){H.current=Af(se.key,b,m)?Me:he,F(se),i===H.current&&we();return}const{index:Ke,wrapped:et}=eS(o.current,fe,{decrement:!Af(se.key,b,m),loopFocus:h,allowEscape:d,disabledIndices:E,minIndex:Me,maxIndex:he});et&&(re.current=!1),H.current=Ke,F(se)}}),Fe=y.useMemo(()=>({onFocus(se){re.current=!0,ze(se)},onClick({currentTarget:se}){v||se.focus({preventScroll:!0})},onMouseMove(se){jm(se)||(re.current=!0,J.current=!1,R&&ze(se))},onPointerLeave(se){var Me;if(!le.current||!I.current||se.pointerType==="touch")return;re.current=!0;const fe=se.relatedTarget;if(!(!R||o.current.includes(fe))&&Ce.current&&((Me=ne.current)==null||Me.call(ne),ne.current=null,H.current=-1,F(se),!v)){const he=L.current,Le=Mn(ut(he));he&&$e(he,Le)&&he.focus({preventScroll:!0})}}}),[ze,le,L,R,o,F,Ce,v]),ge=y.useMemo(()=>v&&z&&Se&&{"aria-activedescendant":`${P}-${i}`},[v,z,Se,P,i]),We=y.useMemo(()=>({...Y?{}:ge,onKeyDown(se){if(se.key==="Tab"&&se.shiftKey&&z&&!v){const fe=pn(se.nativeEvent);if(fe&&!$e(L.current,fe))return;$r(se);const Me=nt(my,se.nativeEvent);t.setOpen(!1,Me);const he=(O==null?void 0:O.current)??G;!Me.isCanceled&&vt(he)&&he.focus();return}Te(se)},onPointerMove(se){jm(se)||(I.current=!0)}}),[ge,Te,L,Y,t,z,v,G,O]),lt=y.useMemo(()=>{function se(he){t.setOpen(!0,nt(qg,he.nativeEvent,he.currentTarget))}function fe(he){x==="auto"&&mi(he.nativeEvent)&&($.current=!v)}function Me(he){$.current=x,x==="auto"&&wd(he.nativeEvent)&&($.current=!0)}return{onKeyDown(he){var Lt;const Le=t.select("open");I.current=!1;const Ke=he.key.startsWith("Arrow"),et=BE(he.key,Ve(),m),rt=Na(he.key,Le?b:C),Ft=(g?et:rt)||he.key==="Enter"||he.key.trim()==="";if(v&&Le&&(!g||kl(he.currentTarget)))return Te(he);if(!(!Le&&!w&&Ke)){if(Ft){const _n=Na(he.key,Ve());B.current=g&&_n?null:he.key}if(g){et&&($r(he),Le?(H.current=qe(),F(he),v&&((Lt=L.current)==null||Lt.focus())):se(he));return}rt&&(me.current!=null&&(H.current=me.current),$r(he),!Le&&w?se(he):Te(he),Le&&F(he))}},onFocus(he){he.target===he.currentTarget&&t.select("open")&&!v&&(H.current=-1,F(he))},onPointerDown:Me,onPointerEnter:Me,onMouseDown:fe,onClick:fe}},[Te,x,qe,g,F,t,w,b,C,Ve,m,me,v,L]),ft=y.useMemo(()=>({...ge,...lt}),[ge,lt]);return y.useMemo(()=>u?{reference:ft,floating:We,item:Fe,trigger:lt}:{},[u,ft,We,lt,Fe])}function WE(t){const r=y.useRef(!0);r.current&&(r.current=!1,t())}const Lv=(t,r)=>Object.is(t,r);function Is(t,r,o){return t==null||r==null?Object.is(t,r):o(t,r)}function KE(t,r,o){return Array.isArray(t)&&Array.isArray(r)?!pE(t,r,(i,l)=>Is(i,l,o)):t!==r}function Qf(t,r,o){return t?t.some(i=>i===void 0?!1:Is(r,i,o)):!1}function Ya(t,r,o){return t?t.findIndex(i=>i===void 0?!1:Is(i,r,o)):-1}function YE(t,r){if(r!==Lv)return i=>Qf(t,i,r);const o=new Set(t);return o.delete(void 0),i=>o.has(i)&&(i!==0||t.some(l=>Object.is(i,l)))}function Nv(t,r,o,i){const l=i&&Array.isArray(r)?t.findIndex(YE(r,o)):Ya(t,r,o);return l===-1?null:l}function GE(t,r,o,i,l,u){return Qf(i,r,l)?u!=null&&t>u&&Qf(i,o[u],l)?u:t:t===u?Nv(o,i,l,!0):u}function XE(t,r,o){return t.filter(i=>!Is(r,i,o))}function Jf(t){if(t==null)return"";if(typeof t=="string")return t;try{return JSON.stringify(t)}catch{return String(t)}}function qE(t){return typeof t=="object"&&t!=null&&Array.isArray(t.items)}function _v(t){return qE(t==null?void 0:t[0])}function ZE(t){return _v(t)?t.flatMap(r=>r.items):t}function QE(t){if(!Array.isArray(t))return t!=null&&"null"in t;const r=t;if(_v(r)){for(const o of r)for(const i of o.items)if(i&&i.value==null&&i.label!=null)return!0;return!1}for(const o of r)if(o&&o.value==null&&o.label!=null)return!0;return!1}function Dv(t,r){if(r&&t!=null)return r(t)??"";if(t&&typeof t=="object"){if("label"in t&&t.label!=null)return String(t.label);if("value"in t)return String(t.value)}return Jf(t)}function si(t,r){return r&&t!=null?r(t)??"":t&&typeof t=="object"&&"value"in t&&"label"in t?Jf(t.value):Jf(t)}function Fv(t,r,o){function i(){return Dv(t,o)}if(o&&t!=null)return o(t);if(t&&typeof t=="object"&&"label"in t&&t.label!=null)return t.label;if(r&&!Array.isArray(r))return(Object.hasOwn(r,t)?r[t]:void 0)??i();if(Array.isArray(r)){const l=ZE(r);if(t==null||typeof t!="object"){const u=l.find(f=>f.value===t);return u&&u.label!=null?u.label:i()}if("value"in t){const u=l.find(f=>f&&f.value===t.value);if(u&&u.label!=null)return u.label}}return i()}function JE(t,r,o){return t.reduce((i,l,u)=>(u>0&&i.push(", "),i.push(_.jsx(y.Fragment,{children:Fv(l,r,o)},u)),i),[])}const Ud=y.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});Ud.displayName="CompositeListContext";function eC(){return y.useContext(Ud)}function Wd(t){const{children:r,elementsRef:o,labelsRef:i,onMapChange:l}=t,u=xe(l),[,f]=y.useState(0),d=hn(nC).current,h=hn(tC).current,g=y.useRef(0),m=y.useRef(!0),v=y.useRef(null),x=y.useRef(null),R=xe(()=>{m.current||(m.current=!0,f(A=>A+1))}),w=xe((A,O)=>{h.set(A,O),R()}),E=xe(A=>{h.delete(A),R()}),b=xe(A=>{const O=new Map;return o.current.length=0,i&&(i.current.length=0),A.forEach(D=>{var j,z;O.set(D.element,{...D.registration.metadata??{},index:D.index}),o.current[D.index]=D.element,i&&(i.current[D.index]=D.registration.label!==void 0?D.registration.label:((z=(j=D.registration.textRef)==null?void 0:j.current)==null?void 0:z.textContent)??D.element.textContent)}),g.current=o.current.length,O});function C(A){var j;if((j=x.current)==null||j.disconnect(),x.current=null,typeof MutationObserver!="function"||A.length<2)return;const O=new MutationObserver(z=>{if(!sC(z))return;let N=null;for(const G of A)if(G.isConnected){if(N&&zv(N,G)>0){O.disconnect(),R();return}N=G}});x.current=O;const D=new Set;for(let z=1;z<A.length;z+=1){const N=oC(A[z-1],A[z]);N&&D.add(N)}D.forEach(z=>O.observe(z,{childList:!0}))}const S=xe(()=>{const[A,O]=rC(h),D=b(A),j=v.current,z=!j||j.length!==A.length||A.some((N,G)=>{const X=j[G];return N.index!==X.index||N.element!==X.element||N.registration.index!==X.registration.index||N.registration.metadata!==X.registration.metadata});C(O),v.current=A,m.current=!1,z&&(d.forEach(N=>N(D)),u(D))});ke(()=>(!m.current&&v.current&&b(v.current),()=>{o.current=[],i&&(i.current=[])}),[o,i,b]),ke(()=>{m.current&&S()}),ke(()=>()=>{var A;(A=x.current)==null||A.disconnect(),m.current=!0},[]);const P=xe(A=>(d.add(A),()=>{d.delete(A)})),T=y.useMemo(()=>({register:w,unregister:E,subscribeMapChange:P,nextIndexRef:g}),[w,E,P,g]);return _.jsx(Ud.Provider,{value:T,children:r})}function tC(){return new Map}function nC(){return new Set}function rC(t){const r=new Set,o=[],i=[];t.forEach((u,f)=>{if(!f.isConnected)return;const d=u.index,h={index:d??-1,element:f,registration:u};d===null?i.push(h):d>=0&&(r.add(d),o.push(h))});let l=0;return i.sort((u,f)=>zv(u.element,f.element)),i.forEach(u=>{for(;r.has(l);)l+=1;u.index=l,o.push(u),l+=1}),r.size>0&&o.sort((u,f)=>u.index-f.index),[o,i.map(u=>u.element)]}function oC(t,r){let o=t.parentElement;for(;o&&!o.contains(r);)o=o.parentElement;return o}function sC(t){for(const r of t)for(let o=0;o<r.removedNodes.length;o+=1)if(r.removedNodes[o].isConnected)return!0;return!1}function zv(t,r){return t.nextElementSibling===r?-1:r.nextElementSibling===t?1:t.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function jv(t={}){const{guess:r,label:o,metadata:i,textRef:l,index:u}=t,{register:f,unregister:d,subscribeMapChange:h,nextIndexRef:g}=eC(),m=y.useRef(-1),[v,x]=y.useState(u==null&&r?()=>{if(m.current===-1){const b=g.current;g.current+=1,m.current=b}return m.current}:-1),R=u??v,w=y.useRef(null),E=y.useCallback(b=>{const C=w.current;C&&d(C),w.current=b,b&&f(b,{metadata:i??null,index:u??null,label:o,textRef:l})},[u,f,d,i,o,l]);return ke(()=>{if(u==null)return h(b=>{var S;const C=w.current?(S=b.get(w.current))==null?void 0:S.index:null;C!=null&&x(C)})},[u,h]),{ref:E,index:R}}function iC(t,r){const{listRef:o,elementsRef:i,activeIndex:l,onMatch:u,disabledIndices:f,onTyping:d,enabled:h=!0,resetMs:g=750,selectedIndex:m=null}=r,v=xe(d),x=t.useState("open"),R=Nn(),w=y.useRef(""),E=y.useRef(m??l??-1),b=y.useRef(null),C=xe(T=>{function A(X){return i==null?void 0:i.current[X]}function O(X){const W=A(X);return W&&!wu(W)||W!=null&&W.matches(":disabled")?!1:f==null||!ci(Ko,X,f)}function D(X,W,Y=0){var ie;if(X.length===0)return-1;const L=(Y%X.length+X.length)%X.length,Q=W.toLowerCase();for(let $=0;$<X.length;$+=1){const H=(L+$)%X.length;if(!(!((ie=X[H])!=null&&ie.toLowerCase().startsWith(Q))||!O(H)))return H}return-1}const j=o.current;if(w.current.length>0&&T.key===" "&&($r(T),v==null||v(!0)),w.current.length>0&&w.current[0]!==" "&&D(j,w.current)===-1&&T.key!==" "&&(v==null||v(!1)),j==null||T.key.length!==1||T.ctrlKey||T.metaKey||T.altKey)return;x&&T.key!==" "&&($r(T),v==null||v(!0));const z=w.current==="";z&&(E.current=m??l??-1),j.every((X,W)=>{var Y,L;return X&&O(W)?((Y=X[0])==null?void 0:Y.toLowerCase())!==((L=X[1])==null?void 0:L.toLowerCase()):!0})&&w.current===T.key&&(w.current="",E.current=b.current),w.current+=T.key,R.start(g,()=>{w.current="",E.current=b.current,v==null||v(!1)});const N=((z?m??l??-1:E.current)??0)+1,G=D(j,w.current,N);G!==-1?(u==null||u(G,T),b.current=G):T.key!==" "&&(w.current="",v==null||v(!1))}),S=xe(T=>{const A=T.relatedTarget,O=t.select("domReferenceElement"),D=t.select("floatingElement");$e(O,A)||$e(D,A)||(R.clear(),w.current="",E.current=b.current,v==null||v(!1))});ke(()=>{!x&&m!==null||(R.clear(),b.current=null,w.current!==""&&(w.current="",v==null||v(!1)))},[x,m,R,v]);const P=y.useMemo(()=>({onKeyDown:C,onBlur:S}),[C,S]);return y.useMemo(()=>h?{reference:P,floating:P}:{},[h,P])}function lC(t){return t==null?void 0:`${t}-label`}function aC(t,r){return t??r}const _a=5;function uC(t,r){const o=cC(r);return t.clientX>=o.left-_a&&t.clientX<=o.right+_a&&t.clientY>=o.top-_a&&t.clientY<=o.bottom+_a}function cC(t){const r=t.getBoundingClientRect(),o=bt(t);if(xd)return r;const i=o.getComputedStyle(t,"::before"),l=o.getComputedStyle(t,"::after");if(!(i.content!=="none"||l.content!=="none"))return r;const u=parseFloat(i.width)||0,f=parseFloat(i.height)||0,d=parseFloat(l.width)||0,h=parseFloat(l.height)||0,g=Math.max(r.width,u,d),m=Math.max(r.height,f,h),v=g-r.width,x=m-r.height;return{left:r.left-v/2,right:r.right+v/2,top:r.top-x/2,bottom:r.bottom+x/2}}const $v=y.memo(y.forwardRef(function(r,o){const{render:i,className:l,style:u,keepMounted:f,selected:d,...h}=r,g=y.useRef(null),{transitionStatus:m,setMounted:v}=Td(d),x=Et("span",r,{ref:[o,g],state:{selected:d,transitionStatus:m},props:[{"aria-hidden":!0,children:"✔️"},h],stateAttributesMapping:vu});return bl({batch:!0,enabled:!d,open:d,ref:g,onComplete(){d||v(!1)}}),x}));$v.displayName="ItemIndicator";const fC=20;function dC(t,r,o,i){const[l,u]=y.useState(!1);ke(()=>{if(!t||!r||o==null){u(!1);return}const f=ut(o).documentElement.clientWidth,d=o.offsetWidth;u(f>0&&d>0&&d>=f-fC)},[t,r,o]),$E(t&&(!r||l),i)}const Vv=y.createContext(void 0);Vv.displayName="ToolbarRootContext";function pC(t){return y.useContext(Vv)}function Bv(t){return t==null||t.hasAttribute("disabled")||t.getAttribute("aria-disabled")==="true"}const Hv="ArrowUp",Uv="ArrowDown",ed="ArrowLeft",td="ArrowRight",hC="Home",Wv=new Set([Hv,Uv,ed,td,hC,"End"]),gC="Shift",mC=[gC,"Control","Alt","Meta"];function yC(t){return vt(t)&&t.tagName==="INPUT"}function $m(t){return!!(yC(t)&&t.selectionStart!=null||vt(t)&&t.tagName==="TEXTAREA")}function Vm(t,r,o,i){if(!t||!r||!r.scrollTo)return;let l=t.scrollLeft,u=t.scrollTop;const f=t.clientWidth<t.scrollWidth,d=t.clientHeight<t.scrollHeight;if(f&&i!=="vertical"){const h=Bm(t,r,"left"),g=Da(t),m=Da(r);o==="ltr"&&(h+r.offsetWidth+m.scrollMarginRight>t.scrollLeft+t.clientWidth-g.scrollPaddingRight?l=h+r.offsetWidth+m.scrollMarginRight-t.clientWidth+g.scrollPaddingRight:h-m.scrollMarginLeft<t.scrollLeft+g.scrollPaddingLeft&&(l=h-m.scrollMarginLeft-g.scrollPaddingLeft)),o==="rtl"&&(h-m.scrollMarginLeft<t.scrollLeft+g.scrollPaddingLeft?l=h-m.scrollMarginLeft-g.scrollPaddingLeft:h+r.offsetWidth+m.scrollMarginRight>t.scrollLeft+t.clientWidth-g.scrollPaddingRight&&(l=h+r.offsetWidth+m.scrollMarginRight-t.clientWidth+g.scrollPaddingRight))}if(d&&i!=="horizontal"){const h=Bm(t,r,"top"),g=Da(t),m=Da(r);h-m.scrollMarginTop<t.scrollTop+g.scrollPaddingTop?u=h-m.scrollMarginTop-g.scrollPaddingTop:h+r.offsetHeight+m.scrollMarginBottom>t.scrollTop+t.clientHeight-g.scrollPaddingBottom&&(u=h+r.offsetHeight+m.scrollMarginBottom-t.clientHeight+g.scrollPaddingBottom)}t.scrollTo({left:l,top:u,behavior:"auto"})}function Bm(t,r,o){const i=o==="left"?"offsetLeft":"offsetTop";let l=0;for(;r.offsetParent&&(l+=r[i],r.offsetParent!==t);)r=r.offsetParent;return l}function Da(t){const r=getComputedStyle(t);return{scrollMarginTop:parseFloat(r.scrollMarginTop)||0,scrollMarginRight:parseFloat(r.scrollMarginRight)||0,scrollMarginBottom:parseFloat(r.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(r.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(r.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(r.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(r.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(r.scrollPaddingLeft)||0}}const vC="data-composite-item-active";function xC(t){const{loopFocus:r=!0,orientation:o="both",grid:i,onLoop:l,direction:u,highlightedIndex:f,onHighlightedIndexChange:d,rootRef:h,enableHomeAndEndKeys:g=!1,stopEventPropagation:m,disabledIndices:v,modifierKeys:x=Ko}=t,[R,w]=y.useState(0),E=i!=null,b=y.useRef(null),C=Cs(b,h),S=y.useRef([]),P=y.useRef(!1),T=y.useRef(null),A=f??R,O=xe((N,G=!1)=>{if(T.current=S.current[N]??null,(d??w)(N),G){const X=S.current[N];Vm(b.current,X,u,o)}}),D=xe(N=>{var Y;if(N.size===0)return;if(P.current){const L=S.current,Q=L.indexOf(T.current);if(Q===-1){const ie=L[A];!ie||ci(L,A,v)?O(wC(L,v)):T.current=ie}else Q!==A&&O(Q);return}P.current=!0;const G=Array.from(N.keys()),X=G.find(L=>L==null?void 0:L.hasAttribute("data-composite-item-active"))??null,W=X?((Y=N.get(X))==null?void 0:Y.index)??-1:-1;if(W!==-1)O(W);else if(ci(G,A,v)){const L=ui(G,{disabledIndices:v});ai(G,L)||O(L)}Vm(b.current,X,u,o)});ke(()=>{if(v==null||f!=null||!P.current)return;const N=S.current;if(ci(N,A,v)){const G=ui(N,{disabledIndices:v});ai(N,G)||O(G)}},[v,f,A,S,O]);const j=xe((N,G,X)=>l?l(N,G,X,S):X),z=xe(N=>{const G=N.key==="Home"||N.key==="End";if(!Wv.has(N.key)||!g&&G||kC(N,x)||!b.current)return;const X=u==="rtl",W=X?ed:td,Y=X?td:ed,L=o==="vertical"?Uv:W,Q=o==="vertical"?Hv:Y,ie=pn(N.nativeEvent);if(ie!=null&&$m(ie)&&!Bv(ie)){const q=ie.selectionStart,K=ie.selectionEnd,re=ie.value;if(q==null||N.shiftKey||q!==K||N.key!==Q&&q<re.length||N.key!==L&&q>0)return}let $=A;const H=Ua(S,v),B=Uf(S,v);i!=null&&($=i({disabledIndices:v,elementsRef:S,event:N,highlightedIndex:A,loopFocus:r,maxIndex:B,minIndex:H,onLoop:j,orientation:o,rtl:X}));const I=o!=="vertical"&&N.key===W||o!=="horizontal"&&N.key==="ArrowDown",F=o!=="vertical"&&N.key===Y||o!=="horizontal"&&N.key==="ArrowUp";g&&(N.key==="Home"?$=H:N.key==="End"&&($=B)),$===A&&(I||F)&&(r&&$===B&&I?($=H,l&&($=l(N,A,$,S))):r&&$===H&&F?($=B,l&&($=l(N,A,$,S))):$=ui(S.current,{startingIndex:$,decrement:F,disabledIndices:v})),$!==A&&!ai(S.current,$)&&(m&&N.stopPropagation(),(E||G||I||F)&&N.preventDefault(),O($,!0),queueMicrotask(()=>{var q;(q=S.current[$])==null||q.focus()}))});return{props:{ref:C,onFocus(N){const G=b.current,X=pn(N.nativeEvent);!G||X==null||!$m(X)||X.setSelectionRange(0,X.value.length)},onKeyDown:z},highlightedIndex:A,onHighlightedIndexChange:O,elementsRef:S,onMapChange:D,relayKeyboardEvent:z}}function wC(t,r){let o=-1;for(let i=0;i<t.length;i+=1){const l=t[i];if(!(!l||ci(t,i,r))){if(l.hasAttribute("data-composite-item-active"))return i;o===-1&&(o=i)}}return Math.max(o,0)}function kC(t,r){for(const o of mC)if(!r.includes(o)&&t.getModifierState(o))return!0;return!1}function bC(t){const{render:r,className:o,style:i,refs:l=Ko,props:u=Ko,state:f=Vt,stateAttributesMapping:d,highlightedIndex:h,onHighlightedIndexChange:g,orientation:m,grid:v,loopFocus:x,onLoop:R,enableHomeAndEndKeys:w,onMapChange:E,stopEventPropagation:b=!0,rootRef:C,disabledIndices:S,modifierKeys:P,highlightItemOnHover:T=!1,tag:A="div",...O}=t,{props:D,highlightedIndex:j,onHighlightedIndexChange:z,elementsRef:N,onMapChange:G,relayKeyboardEvent:X}=xC({grid:v,loopFocus:x,onLoop:R,orientation:m,highlightedIndex:h,onHighlightedIndexChange:g,rootRef:C,stopEventPropagation:b,enableHomeAndEndKeys:w,direction:Pd(),disabledIndices:S,modifierKeys:P}),W=Et(A,t,{state:f,ref:l,props:[D,...u,O],stateAttributesMapping:d}),Y=y.useMemo(()=>({highlightedIndex:j,onHighlightedIndexChange:z,highlightItemOnHover:T,relayKeyboardEvent:X}),[j,z,T,X]);return _.jsx($d.Provider,{value:Y,children:_.jsx(Wd,{elementsRef:N,onMapChange:L=>{E==null||E(L),G(L)},children:W})})}function SC(t={}){const{highlightItemOnHover:r,highlightedIndex:o,onHighlightedIndexChange:i}=Vd(),{ref:l,index:u}=jv(t),f=o===u,d=y.useRef(null),h=Cs(l,d);return{compositeProps:{tabIndex:f?0:-1,onFocus(){i(u)},onMouseMove(){const g=d.current;if(!r||!g)return;const m=g.hasAttribute("disabled")||g.ariaDisabled==="true";!f&&!m&&g.focus()}},compositeRef:h,index:u}}const RC="overflow-hidden rounded-lg bg-kumo-base shadow-xs ring ring-kumo-line",EC="flex w-full flex-col overflow-hidden rounded-lg bg-kumo-elevated text-base ring ring-kumo-hairline",CC="-my-2 flex shrink-0 items-center gap-2 bg-kumo-elevated p-4 text-base font-medium text-kumo-subtle",TC="relative flex shrink-0 flex-col gap-2 overflow-hidden rounded-lg bg-kumo-base p-4 pr-3 text-inherit no-underline ring ring-kumo-fill";function IC(t={}){return De(RC)}function Kv(t){return y.Children.toArray(t).some(r=>y.isValidElement(r)?r.type===Yd||r.type===Kd?!0:r.type===y.Fragment?Kv(r.props.children):!1:!1)}const Yv=y.forwardRef(function({children:r,className:o,render:i,...l},u){const f=Kv(r),d={className:De(f?EC:IC(),o)};return z0({defaultTagName:"div",render:i,ref:u,props:Hr(d,l,{children:r})})});function Kd({children:t,className:r,...o}){return _.jsx("div",{className:De(CC,r),...o,children:t})}function Yd({children:t,className:r,...o}){return _.jsx("div",{className:De(TC,r),...o,children:t})}Yv.displayName="LayerCard";Kd.displayName="LayerCard.Secondary";Yd.displayName="LayerCard.Primary";const PC=Object.assign(Yv,{Primary:Yd,Secondary:Kd}),AC={variant:{default:{classes:"skeleton-line",description:"Flat grey bar with a sliding shimmer"},sketch:{classes:"relative h-2 w-(--skeleton-width)",description:"Wireframe-style bar: rounded fill with a sliding shimmer, a 1px outline, and construction strokes that overshoot each corner by 4px"}}},Hm={variant:"default"},Fa="absolute bg-kumo-fill",OC=(t,r)=>Math.floor(Math.random()*(r-t+1)+t),Um=(t,r)=>(Math.random()*(r-t)+t).toFixed(2),MC=({variant:t=Hm.variant,minWidth:r=30,maxWidth:o=100,minDuration:i=1.3,maxDuration:l=1.7,minDelay:u=0,maxDelay:f=.5,blockHeight:d,className:h})=>{const{width:g,duration:m,delay:v}=y.useMemo(()=>({width:OC(r,o),duration:Um(i,l),delay:Um(u,f)}),[r,o,i,l,u,f]),x={"--skeleton-width":`${g}%`,"--shimmer-duration":`${m}s`,"--shimmer-delay":`${v}s`},R=vn(AC.variant,t,Hm.variant).classes,w=t==="sketch"?_.jsxs("div",{className:De(R,h),style:x,"data-variant":"sketch",children:[_.jsx("div",{className:"absolute inset-0 overflow-hidden rounded-lg bg-kumo-recessed",children:_.jsx("div",{className:"absolute inset-0 animate-[shimmer_var(--shimmer-duration,1.5s)_var(--shimmer-delay,0s)_infinite_ease-in-out] bg-linear-to-r from-transparent via-kumo-contrast/8 to-transparent motion-reduce:animate-none"})}),_.jsx("div",{className:De(Fa,"-inset-x-1 top-0 h-px")}),_.jsx("div",{className:De(Fa,"-inset-x-1 bottom-0 h-px")}),_.jsx("div",{className:De(Fa,"-inset-y-1 left-0 w-px")}),_.jsx("div",{className:De(Fa,"-inset-y-1 right-0 w-px")}),_.jsx("div",{className:"absolute inset-0 rounded-lg border border-kumo-interact"})]}):_.jsx("div",{className:De(R,h),style:x});if(d!==void 0){const E=typeof d=="number"?`${d}px`:d;return _.jsx("div",{className:"flex items-center",style:{height:E},children:w})}return w};function LC(t){const[r,o]=y.useState({current:t,previous:null});return Object.is(t,r.current)||o({current:t,previous:r.current}),r.previous}const Gv=y.forwardRef(function(r,o){const{className:i,render:l,orientation:u="horizontal",style:f,...d}=r;return Et("div",r,{state:{orientation:u},ref:o,props:[{role:"presentation"},d]})});Gv.displayName="ListboxSeparator";function Xv(t,r){return Math.max(0,t-r)}function NC(t,r){if(r<=0)return 0;const o=ll(t,0,r),i=o,l=r-o,u=i<=1,f=l<=1;return u&&f?i<=l?0:r:u?0:f?r:o}const za="base-ui-disable-scrollbar",au={className:za,getElement(t){return _.jsx("style",{nonce:t,href:za,precedence:"base-ui:low",children:`.${za}{scrollbar-width:none}.${za}::-webkit-scrollbar{display:none}`})}};au.getElement.displayName="styleDisableScrollbar.getElement";const qv=y.createContext(void 0);qv.displayName="CSPContext";const _C={disableStyleElements:!1};function Zv(){return y.useContext(qv)??_C}const Gd=y.createContext(void 0);Gd.displayName="SelectRootContext";const Xd=y.createContext(void 0);Xd.displayName="SelectFloatingContext";function Gr(){const t=y.useContext(Gd);if(t===void 0)throw new Error("Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>.");return t}function Qv(){const t=y.useContext(Xd);if(t===void 0)throw new Error("Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>.");return t}const DC={id:t=>t.id,labelId:t=>t.labelId,modal:t=>t.modal,multiple:t=>t.multiple,disabled:t=>t.disabled,readOnly:t=>t.readOnly,required:t=>t.required,highlightItemOnHover:t=>t.highlightItemOnHover,items:t=>t.items,itemToStringLabel:t=>t.itemToStringLabel,isItemEqualToValue:t=>t.isItemEqualToValue,value:t=>t.value,hasSelectedValue:t=>{const{value:r,multiple:o,itemToStringValue:i}=t;return r==null?!1:o&&Array.isArray(r)?r.length>0:si(r,i)!==""},hasNullItemLabel:(t,r)=>r?QE(t.items):!1,open:t=>t.open,mounted:t=>t.mounted,forceMount:t=>t.forceMount,transitionStatus:t=>t.transitionStatus,openMethod:t=>t.openMethod,activeIndex:t=>t.activeIndex,selectedIndex:t=>t.selectedIndex,isActive:(t,r)=>t.activeIndex===r,isSelected:(t,r)=>{const o=t.isItemEqualToValue,i=t.value;return t.multiple?Array.isArray(i)&&i.some(l=>Is(r,l,o)):Is(r,i,o)},isSelectedByFocus:(t,r)=>t.selectedIndex===r,popupProps:t=>t.popupProps,triggerProps:t=>t.triggerProps,itemRoot:t=>t.itemRoot,triggerElement:t=>t.triggerElement,positionerElement:t=>t.positionerElement,listElement:t=>t.listElement,popupSide:t=>t.popupSide,scrollUpArrowVisible:t=>t.scrollUpArrowVisible,scrollDownArrowVisible:t=>t.scrollDownArrowVisible,hasScrollArrows:t=>t.hasScrollArrows};function FC(t){const{id:r,value:o,defaultValue:i=null,onValueChange:l,open:u,defaultOpen:f=!1,onOpenChange:d,name:h,form:g,autoComplete:m,disabled:v=!1,readOnly:x=!1,required:R=!1,modal:w=!0,actionsRef:E,inputRef:b,onOpenChangeComplete:C,items:S,multiple:P=!1,itemToStringLabel:T,itemToStringValue:A,isItemEqualToValue:O=Lv,highlightItemOnHover:D=!0,children:j}=t,{clearErrors:z}=Si(),{setDirty:N,setTouched:G,setFocused:X,validityData:W,setFilled:Y,name:L,disabled:Q,validation:ie,validationMode:$}=vo(),H=zd({id:r}),B=Q||v,I=L??h,[F,q]=Zf({controlled:o,default:P?i??Ko:i,name:"Select",state:"value"}),[K,re]=Zf({controlled:u,default:f,name:"Select",state:"open"}),J=y.useRef([]),ne=y.useRef([]),ae=y.useRef(null),le=y.useRef(null),me=y.useRef(0),Ce=y.useRef(null),be=y.useRef([]),Ae=y.useRef(!1),we=y.useRef(null),Se=y.useRef(null),ze=y.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),Ve=y.useRef(!1),qe=y.useRef(F),{openMethod:Te,triggerProps:Fe}=LE(K),ge=hn(()=>new Ed({id:H,labelId:void 0,modal:w,multiple:P,disabled:B,readOnly:x,required:R,highlightItemOnHover:D,itemToStringLabel:T,itemToStringValue:A,isItemEqualToValue:O,value:F,open:K,mounted:K,transitionStatus:void 0,items:S,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:Vt,triggerProps:Vt,itemRoot:{props:Vt,multiple:P,disabled:B,readOnly:x,isItemEqualToValue:O},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1},{setValue:Dt,setOpen:Dt,handleScrollArrowVisibility:Dt,onOpenChangeComplete:Dt,listRef:J,popupRef:ae,scrollHandlerRef:le,scrollArrowsMountedCountRef:me,valueRef:Ce,valuesRef:be,labelsRef:ne,typingRef:Ae,selectionRef:ze,firstItemTextRef:we,selectedItemTextRef:Se,alignItemWithTriggerActiveRef:Ve,initialValueRef:qe},DC)).current,[We,lt]=y.useState(!1),{mounted:ft,transitionStatus:se,forceUnmount:fe}=Ny({open:K,ref:ae,preventUnmountOnClose:We,setPreventUnmountOnClose:lt,onUnmount(){ge.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),C==null||C(!1)}}),Me=ge.useState("activeIndex"),he=ge.useState("selectedIndex"),Le=ge.useState("triggerElement"),Ke=ge.useState("positionerElement"),et=LC(Te),rt=Te??et,Ft=y.useMemo(()=>P?"":si(F,A),[P,F,A]),Lt=y.useMemo(()=>P&&Array.isArray(F)?F.map(Ye=>si(Ye,A)):si(F,A),[P,F,A]),_n=$t(Le),Jt=xe(()=>Lt);kv(_n,H,F,Jt,!B,h);const en=P?Array.isArray(F)&&F.length>0:F!=null&&Ft!=="";ke(()=>{Y(en)},[en,Y]),ke(function(){const ot=Nv(be.current,F,O,P);ot===null&&(Se.current=null),!K&&ge.set("selectedIndex",ot)},[P,K,F,O,ge]),jd(F,()=>{z(I),N(KE(F,W.initialValue,O)),ie.change(F)});const Xt=xe((Ye,ot)=>{const Ht=ot,At=Dy(Ht);d==null||d(Ye,Ht),!ot.isCanceled&&(Ye||lt(At()),re(Ye),!Ye&&(ot.reason==="focus-out"||ot.reason==="outside-press")&&(G(!0),X(!1),$==="onBlur"&&ie.commit(F)))});y.useImperativeHandle(E,()=>({unmount:fe,close:()=>{ge.state.open&&Xt(!1,nt(vy))}}),[fe,Xt,ge]);const qt=xe((Ye,ot)=>{l==null||l(Ye,ot),!ot.isCanceled&&q(Ye)}),Cn=xe(Ye=>{const ot=Xv(Ye.scrollHeight,Ye.clientHeight),Ht=NC(Ye.scrollTop,ot),At=Ht>0,It=Ht<ot;ge.set("scrollUpArrowVisible",At),ge.set("scrollDownArrowVisible",It)}),St=mE({open:K,onOpenChange:Xt,elements:{reference:Le,floating:Ke}}),sn=VE(St,{enabled:!B,event:"mousedown"}),xt=Ly(St),tn=UE(St,{enabled:!B,listRef:J,activeIndex:Me,selectedIndex:he,disabledIndices:Ko,onNavigate(Ye){Ye===null&&!K||ge.set("activeIndex",Ye)},focusItemOnHover:D}),Tn=iC(St,{enabled:!B&&(K||!x&&!P),listRef:ne,activeIndex:Me,selectedIndex:he,disabledIndices:Ye=>Bv(J.current[Ye]),onMatch(Ye){K?ge.set("activeIndex",Ye):qt(be.current[Ye],nt(Xo))},onTyping(Ye){Ae.current=Ye}}),Gn=y.useMemo(()=>Hr(Tn.reference,tn.reference,xt.reference,sn.reference,Fe),[sn.reference,Tn.reference,tn.reference,xt.reference,Fe]),Qe=y.useMemo(()=>Hr(_y,Tn.floating,tn.floating,xt.floating),[Tn.floating,tn.floating,xt.floating]),Ct=tn.item??Vt,Nt=y.useMemo(()=>({props:Ct,multiple:P,disabled:B,readOnly:x,isItemEqualToValue:O}),[Ct,P,B,x,O]);ge.useContextCallback("setValue",qt),ge.useContextCallback("setOpen",Xt),ge.useContextCallback("handleScrollArrowVisibility",Cn),ge.useContextCallback("onOpenChangeComplete",C),WE(()=>{ge.update({popupProps:Qe,triggerProps:Gn,itemRoot:Nt})}),ge.useSyncedValues({id:H,modal:w,multiple:P,disabled:B,readOnly:x,required:R,highlightItemOnHover:D,value:F,open:K,mounted:ft,transitionStatus:se,popupProps:Qe,triggerProps:Gn,itemRoot:Nt,items:S,itemToStringLabel:T,itemToStringValue:A,isItemEqualToValue:O,openMethod:rt});const gt=Cs(b,ie.inputRef),Bt=P?void 0:I,Tt=y.useMemo(()=>!P||!Array.isArray(F)||!I?null:F.map(Ye=>{const ot=si(Ye,A);return _.jsx("input",{type:"hidden",form:g,name:I,value:ot,disabled:B},ot)}),[P,F,g,I,A,B]);return _.jsxs(Gd.Provider,{value:ge,children:[_.jsx(Xd.Provider,{value:St,children:j}),_.jsx("input",{...ie.getValidationProps(B,{onFocus(){var Ye;(Ye=ge.state.triggerElement)==null||Ye.focus({focusVisible:!0})},onChange(Ye){if(Ye.nativeEvent.defaultPrevented||B||x)return;const ot=Ye.currentTarget.value,Ht=nt(Xo,Ye.nativeEvent);function At(){if(P)return;const It=ot.toLowerCase();let Xn=be.current.findIndex(In=>si(In,A).toLowerCase()===It||Dv(In,T).toLowerCase()===It);Xn===-1&&(Xn=be.current.findIndex((In,ln)=>{const lr=ne.current[ln];return lr!=null&&lr.toLowerCase()===It}));const wn=be.current[Xn];wn!=null&&qt(wn,Ht)}ge.set("forceMount",!0),queueMicrotask(At)}}),id:H&&Bt==null?`${H}-hidden-input`:void 0,form:g,name:Bt,autoComplete:m,value:Ft,disabled:B,required:R&&!(P&&en),readOnly:x,ref:gt,style:I?gS:wy,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),Tt]})}const Jv=y.forwardRef(function(r,o){const{render:i,className:l,style:u,...f}=r,d=f;delete d.id;const h=vo(),g=Gr(),m=g.useState("triggerElement"),v=g.useState("id"),x=lC(v),R=hv({id:x,fallbackControlId:(m==null?void 0:m.id)??v,setLabelId(w){const E=typeof w=="function"?w(g.state.labelId):w;g.set("labelId",E)}});return Et("div",r,{ref:o,state:h.state,props:[R,f],stateAttributesMapping:As})});Jv.displayName="SelectLabel";const zC="data-popup-side",jC=400,$C={...Xb,...As,popupSide:t=>t?{[zC]:t}:null,value:()=>null},e1=y.forwardRef(function(r,o){var me;const{render:i,className:l,id:u,disabled:f=!1,nativeButton:d=!0,style:h,...g}=r,{setTouched:m,validationMode:v,validation:x,state:R,disabled:w}=vo(),{labelId:E}=xo(),b=Gr(),C=b.useState("readOnly"),S=b.useState("required"),P=b.useState("disabled"),T=w||P||f,A=b.useState("open"),O=b.useState("mounted"),D=b.useState("value"),j=b.useState("triggerProps"),z=b.useState("positionerElement"),N=b.useState("listElement"),G=b.useState("popupSide"),X=b.useState("id"),W=b.useState("labelId"),Y=b.useState("hasSelectedValue"),L=O&&z?G:null,Q=u??X,ie=aC(E,W);zd({id:u});const $=$t(z),H=y.useRef(null),B=bv(T,H),{getButtonProps:I,buttonRef:F}=Bd({disabled:T,native:d}),q=b.useStateSetter("triggerElement"),K=Nn(),re=Nn(),J=Nn();y.useEffect(()=>{if(A)return J.start(jC,()=>{b.context.selectionRef.current.allowUnselectedMouseUp=!0,b.context.selectionRef.current.allowSelectedMouseUp=!0}),()=>{J.clear()};b.context.selectionRef.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},re.clear()},[A,b,re,J]);const ne=Hr(j,{id:Q,role:"combobox","aria-expanded":A,"aria-haspopup":"listbox","aria-controls":A?(N==null?void 0:N.id)??((me=ru(z))==null?void 0:me.id):void 0,"aria-labelledby":ie,"aria-readonly":C||void 0,"aria-required":S||void 0,tabIndex:T?-1:0,onFocus(Ce){B(!0),A&&b.context.alignItemWithTriggerActiveRef.current&&b.context.setOpen(!1,nt(Xo,Ce.nativeEvent)),K.start(0,()=>{b.set("forceMount",!0)})},onBlur(Ce){$e(z,Ce.relatedTarget)||(m(!0),B(!1),v==="onBlur"&&x.commit(D))},onMouseDown(Ce){if(A)return;const be=ut(Ce.currentTarget);function Ae(we){if(!H.current)return;const Se=we.target;$e(H.current,Se)||$e($.current,Se)||uC(we,H.current)||b.context.setOpen(!1,nt(cS,we))}re.start(0,()=>{be.addEventListener("mouseup",Ae,{once:!0})})}},g,I),ae=x.getValidationProps(T,ne);ae.role="combobox";const le={...R,open:A,disabled:T,value:D,readOnly:C,popupSide:L,placeholder:!Y};return Et("button",r,{ref:[o,H,F,q],state:le,stateAttributesMapping:$C,props:ae})});e1.displayName="SelectTrigger";const VC={value:()=>null},t1=y.forwardRef(function(r,o){const{className:i,render:l,children:u,placeholder:f,style:d,...h}=r,g=Gr(),m=g.useState("value"),v=g.useState("items"),x=g.useState("itemToStringLabel"),R=g.useState("hasSelectedValue"),w=!R&&f!=null&&u==null,E=g.useState("hasNullItemLabel",w),b={value:m,placeholder:!R};let C=null;return typeof u=="function"?C=u(m):u!=null?C=u:w&&!E?C=f:Array.isArray(m)?C=JE(m,v,x):C=Fv(m,v,x),Et("span",r,{state:b,ref:[o,g.context.valueRef],props:[{children:C},h],stateAttributesMapping:VC})});t1.displayName="SelectValue";const n1=y.forwardRef(function(r,o){const{render:i,className:l,style:u,...f}=r,d={open:Gr().useState("open")};return Et("span",r,{state:d,ref:o,props:[{"aria-hidden":!0,children:"▼"},f],stateAttributesMapping:sy})});n1.displayName="SelectIcon";const r1=y.forwardRef(function(r,o){const i=Gr(),l=i.useState("mounted"),u=i.useState("forceMount");return l||u?_.jsx(Ty,{ref:o,...r}):null});r1.displayName="SelectPortal";const qd=y.createContext(void 0);qd.displayName="SelectPositionerContext";function o1(){const t=y.useContext(qd);if(!t)throw new Error("Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>.");return t}function uu(t,r){t&&Object.assign(t.style,r)}const s1={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"},BC={position:"fixed"},i1=y.forwardRef(function(r,o){const{anchor:i,className:l,render:u,positionMethod:f,side:d,align:h,sideOffset:g,alignOffset:m,collisionBoundary:v="clipping-ancestors",collisionPadding:x,arrowPadding:R,sticky:w,disableAnchorTracking:E,alignItemWithTrigger:b=!0,collisionAvoidance:C=IS,style:S,...P}=r,T=Gr(),A=Qv(),O=T.useState("open"),D=T.useState("mounted"),j=T.useState("modal"),z=T.useState("value"),N=T.useState("openMethod"),G=T.useState("positionerElement"),X=T.useState("triggerElement"),W=T.useState("isItemEqualToValue"),Y=T.useState("transitionStatus"),L=y.useRef(null),Q=y.useRef(null),[ie,$]=y.useState(b),H=D&&ie&&N!=="touch";!D&&ie!==b&&$(b),y.useImperativeHandle(T.context.alignItemWithTriggerActiveRef,()=>H),dC((H||j)&&O,N==="touch",G,X);const B=Uy({anchor:i,floatingRootContext:A,positionMethod:f,mounted:D,side:d,sideOffset:g,align:h,alignOffset:m,arrowPadding:R,collisionBoundary:v,collisionPadding:x,sticky:w,disableAnchorTracking:E??H,collisionAvoidance:C,keepMounted:!0}),I=H?"none":B.side,F=H?BC:B.positionerStyles,q={open:O,side:I,align:B.align,anchorHidden:B.anchorHidden};ke(()=>{T.set("popupSide",B.side)},[T,B.side]);const K=T.useStateSetter("positionerElement"),re=Wy(r,q,{styles:F,transitionStatus:Y,props:P,refs:[o,K],hidden:!D,inert:!O}),J=y.useRef(0),ne=xe(le=>{if(T.context.valuesRef.current.length===0)return;const me=J.current;J.current=le.size;const Ce=nt(Xo);if(me!==0&&!T.state.multiple&&z!==null&&Ya(T.context.valuesRef.current,z,W)===-1){const be=T.context.initialValueRef.current,Ae=be!=null&&Ya(T.context.valuesRef.current,be,W)!==-1?be:null;T.context.setValue(Ae,Ce),Ae===null&&(T.set("selectedIndex",null),T.context.selectedItemTextRef.current=null)}if(me!==0&&T.state.multiple&&Array.isArray(z)){const be=z.filter(Ae=>Ya(T.context.valuesRef.current,Ae,W)!==-1);be.length!==z.length&&(T.context.setValue(be,Ce),be.length===0&&(T.set("selectedIndex",null),T.context.selectedItemTextRef.current=null))}if(O&&H){T.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});const be={height:""};uu(G,be),uu(T.context.popupRef.current,be)}}),ae=y.useMemo(()=>({...B,side:I,alignItemWithTriggerActive:H,setControlledAlignItemWithTrigger:$,scrollUpArrowRef:L,scrollDownArrowRef:Q}),[B,I,H,$]);return _.jsx(Wd,{elementsRef:T.context.listRef,labelsRef:T.context.labelsRef,onMapChange:ne,children:_.jsxs(qd.Provider,{value:ae,children:[D&&j&&_.jsx(Mv,{inert:yE(!O),cutout:X}),re]})})});i1.displayName="SelectPositioner";const Wm="--transform-origin",HC={...xu,...vu},l1=y.forwardRef(function(r,o){const{render:i,className:l,style:u,finalFocus:f,...d}=r,h=Gr(),g=h.useState("multiple"),m=h.useState("readOnly"),v=h.useState("highlightItemOnHover"),x=Qv(),{side:R,align:w,alignItemWithTriggerActive:E,isPositioned:b,setControlledAlignItemWithTrigger:C}=o1(),S=pC()!=null,P=Pd(),{nonce:T,disableStyleElements:A}=Zv(),O=h.useState("id"),D=h.useState("open"),j=h.useState("openMethod"),z=h.useState("mounted"),N=h.useState("popupProps"),G=h.useState("transitionStatus"),X=h.useState("triggerElement"),W=h.useState("positionerElement"),Y=h.useState("listElement"),L=y.useRef(!1),Q=y.useRef(!1),ie=y.useRef({}),$=vi(),H=xe(q=>{if(!W||!h.context.popupRef.current||!Q.current)return;const K=W.style.top==="0px",re=W.style.bottom==="0px";if(L.current||!E||!K&&!re){h.context.handleScrollArrowVisibility(q);return}const J=Ym(W),ne=al(W.getBoundingClientRect().height,"y",J),ae=ut(W),le=bt(W),me=le.getComputedStyle(W),Ce=parseFloat(me.marginTop),be=parseFloat(me.marginBottom),Ae=Km(le.getComputedStyle(h.context.popupRef.current)),we=Math.min(ae.documentElement.clientHeight-Ce-be,Ae),Se=q.scrollTop,ze=ja(q);let Ve=null;const qe=We=>{W.style.height=`${We}px`},Te=K?ze-Se:Se,Fe=Math.min(ne+Te,we);if(Te<=1){const We=ll(Te,0,we-ne);We>0&&qe(ne+We),q.scrollTop=K?ze:0,we-(ne+We)<=1&&(L.current=!0),h.context.handleScrollArrowVisibility(q);return}we-Fe>1?Ve=K?1/0:0:re&&Se<ze&&(Ve=Se-(Te-(ne+Te-we)));const ge=Math.ceil(Fe);if(ge!==0&&qe(ge),Ve!=null){const We=ll(Ve,0,ja(q));Math.abs(q.scrollTop-We)>1&&(q.scrollTop=We)}ge>=we-1&&(L.current=!0),h.context.handleScrollArrowVisibility(q)});y.useImperativeHandle(h.context.scrollHandlerRef,()=>H,[H]),bl({open:D,ref:h.context.popupRef,onComplete(){D&&h.context.onOpenChangeComplete(!0)}});const B={open:D,transitionStatus:G,side:R,align:w};ke(()=>{!W||!h.context.popupRef.current||Object.keys(ie.current).length||(ie.current={top:W.style.top||"0",left:W.style.left||"0",right:W.style.right,height:W.style.height,bottom:W.style.bottom,minHeight:W.style.minHeight,maxHeight:W.style.maxHeight,marginTop:W.style.marginTop,marginBottom:W.style.marginBottom})},[h,W]),ke(()=>{D||E||(Q.current=!1,L.current=!1,uu(W,ie.current))},[D,E,W]),ke(()=>{var re,J;const q=h.context.popupRef.current;if(!D||!X||!W||!q||E&&!b||h.state.transitionStatus==="ending")return;if(Q.current=!0,q.style.removeProperty(Wm),!E){$.request(()=>h.context.handleScrollArrowVisibility(Y||q));return}const K=UC(q);try{let ne=h.context.selectedItemTextRef.current;ne!=null&&ne.isConnected||(ne=!h.select("hasSelectedValue")&&((re=h.context.firstItemTextRef.current)!=null&&re.isConnected)?h.context.firstItemTextRef.current:null);const ae=h.context.valueRef.current,le=bt(W),me=le.getComputedStyle(W),Ce=le.getComputedStyle(q),be=ut(X),Ae=Ym(X),we=$a(X.getBoundingClientRect(),Ae),Se=$a(W.getBoundingClientRect(),Ae),ze=we.height,Ve=Y||q,qe=Ve.scrollHeight,Te=parseFloat(Ce.borderBottomWidth),Fe=parseFloat(me.marginTop)||10,ge=parseFloat(me.marginBottom)||10,We=parseFloat(me.minHeight)||100,lt=Km(Ce),ft=5,se=5,fe=20,Me=be.documentElement.clientHeight-Fe-ge,he=be.documentElement.clientWidth,Le=Me-we.bottom+ze;let Ke,et=P==="rtl"?we.right-Se.width:we.left,rt=0;if(ne&&ae){const xt=$a(ae.getBoundingClientRect(),Ae);Ke=$a(ne.getBoundingClientRect(),Ae),et=Se.left+(P==="rtl"?xt.right-Ke.right:xt.left-Ke.left);const tn=xt.top-we.top+xt.height/2;rt=Ke.top-Se.top+Ke.height/2-tn}const Ft=Le+rt+ge+Te;let Lt=Math.min(Me,Ft);const _n=Me-Fe-ge,Jt=Ft-Lt,en=he-se;W.style.left=`${ll(et,ft,en-Se.width)}px`,W.style.height=`${Lt}px`,W.style.maxHeight="none",W.style.marginTop=`${Fe}px`,W.style.marginBottom=`${ge}px`,q.style.height="100%";const Xt=ja(Ve),qt=Jt>=Xt-1;qt&&(Lt=Math.min(Me,Se.height)-(Jt-Xt));const Cn=we.top<fe||we.bottom>Me-fe||Math.ceil(Lt)+1<Math.min(qe,We),St=(((J=le.visualViewport)==null?void 0:J.scale)??1)!==1&&yo;if(Cn||St){uu(W,ie.current),C(!1);return}const sn=Math.max(We,Lt);if(qt){const xt=Math.max(0,Me-Ft);W.style.top=Se.height>=_n?"0":`${xt}px`,W.style.height=`${Lt}px`,Ve.scrollTop=ja(Ve)}else W.style.bottom="0",Ve.scrollTop=Jt;if(Ke){const xt=Se.top,tn=Se.height,Tn=Ke.top+Ke.height/2,Gn=ll(tn>0?(Tn-xt)/tn*100:50,0,100);q.style.setProperty(Wm,`50% ${Gn}%`)}(sn===Me||Lt>=lt)&&(L.current=!0),h.context.handleScrollArrowVisibility(Ve),v&&h.state.selectedIndex===null&&h.state.activeIndex===null&&h.context.listRef.current[0]!=null&&h.set("activeIndex",0)}finally{K()}},[h,D,W,X,E,C,$,Y,v,P,b]),y.useEffect(()=>{if(!E||!W||!D)return;const q=bt(W);function K(re){h.context.setOpen(!1,nt(fS,re))}return tt(q,"resize",K)},[h,E,W,D]);const I={...Y?{role:"presentation"}:{role:"listbox","aria-multiselectable":g||void 0,"aria-readonly":m||void 0,id:`${O}-list`},onKeyDown(q){S&&Wv.has(q.key)&&q.stopPropagation()},onScroll(q){Y||H(q.currentTarget)},...E&&{style:Y?{height:"100%"}:s1},className:!Y&&E?au.className:void 0},F=Et("div",r,{ref:[o,h.context.popupRef],state:B,stateAttributesMapping:HC,props:[N,I,Ad(G),d]});return _.jsxs(y.Fragment,{children:[!A&&au.getElement(T),_.jsx(AE,{context:x,modal:!1,disabled:!z,openInteractionType:j,returnFocus:f,restoreFocus:!0,children:F})]})});l1.displayName="SelectPopup";function Km(t){const r=t.maxHeight;return r.endsWith("px")&&parseFloat(r)||1/0}function ja(t){return Xv(t.scrollHeight,t.clientHeight)}function Ym(t){return Z0.getScale(t)}function al(t,r,o){return t/o[r]}function $a(t,r){return dl({x:al(t.x,"x",r),y:al(t.y,"y",r),width:al(t.width,"x",r),height:al(t.height,"y",r)})}const Gm=[["transform","none"],["scale","1"],["translate","0 0"]];function UC(t){const{style:r}=t,o={};for(const[i,l]of Gm)o[i]=r.getPropertyValue(i),r.setProperty(i,l,"important");return()=>{for(const[i]of Gm){const l=o[i];l?r.setProperty(i,l):r.removeProperty(i)}}}const a1=y.forwardRef(function(r,o){const{render:i,className:l,style:u,...f}=r,d=Gr(),h=d.useState("multiple"),g=d.useState("readOnly"),{alignItemWithTriggerActive:m}=o1(),v=d.useState("hasScrollArrows"),x=d.useState("openMethod"),R={id:`${d.useState("id")}-list`,role:"listbox","aria-multiselectable":h||void 0,"aria-readonly":g||void 0,onScroll(E){var b,C;(C=(b=d.context.scrollHandlerRef).current)==null||C.call(b,E.currentTarget)},...m&&{style:s1},className:v&&x!=="touch"?au.className:void 0},w=d.useStateSetter("listElement");return Et("div",r,{ref:[o,w],props:[R,f]})});a1.displayName="SelectList";const Zd=y.createContext(void 0);Zd.displayName="SelectItemContext";function u1(){const t=y.useContext(Zd);if(!t)throw new Error("Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>.");return t}const c1=y.memo(y.forwardRef(function(r,o){const{render:i,className:l,style:u,value:f=null,label:d,disabled:h=!1,nativeButton:g=!1,...m}=r,v=y.useRef(null),x=jv({guess:!0,label:d,textRef:v}),R=Gr(),{props:w,multiple:E,disabled:b,readOnly:C,isItemEqualToValue:S}=R.useState("itemRoot"),P=b||h,T=R.useState("isActive",x.index),A=R.useState("open"),O=R.useState("isSelected",f),D=R.useState("isSelectedByFocus",x.index),j=x.index,z=y.useRef(null);ke(()=>{const B=R.context.valuesRef.current;return B[j]=f,()=>{delete B[j]}},[j,f,R]),ke(()=>{const B=R.state.value,I=R.state.selectedIndex;let F=I,q;E&&Array.isArray(B)?(F=GE(j,f,R.context.valuesRef.current,B,S,I),q=F===j,j===I&&!q&&(R.context.selectedItemTextRef.current=null)):(q=B!==void 0&&Is(f,B,S),q&&(F=j)),R.set("selectedIndex",F),q&&v.current&&(R.context.selectedItemTextRef.current=v.current)},[j,E,S,R,f]);const N=y.useRef("mouse"),G=y.useRef(!1),{getButtonProps:X,buttonRef:W}=Bd({disabled:P,focusableWhenDisabled:!0,native:g,composite:!0}),Y={disabled:P,selected:O,highlighted:T};function L(B){if(b||C)return;const I=R.state.value;if(E){const F=Array.isArray(I)?I:[],q=O?XE(F,f,S):[...F,f];R.context.setValue(q,nt(xf,B))}else R.context.setValue(f,nt(xf,B)),R.context.setOpen(!1,nt(xf,B))}function Q(){R.context.selectionRef.current.dragY=0}const ie={role:"option","aria-selected":O,tabIndex:A&&T?0:-1,onKeyDown(B){R.set("activeIndex",j),B.key===" "&&R.context.typingRef.current&&B.preventDefault()},onClick(B){const I=N.current!=="touch",F=B.nativeEvent.pointerType,q=I&&mi(B.nativeEvent)&&(F!==void 0||T),K=I&&!q&&!G.current;G.current=!1,!(P||K)&&L(B.nativeEvent)},onPointerEnter(B){N.current=B.pointerType},onPointerMove(B){if(B.pointerType==="mouse"&&B.buttons===1){const I=R.context.selectionRef.current;I.dragY+=B.movementY,I.dragY**2>=64&&(I.allowUnselectedMouseUp=!0)}},onPointerDown(B){N.current=B.pointerType,G.current=!0,Q()},onMouseUp(){var F;if(Q(),P||N.current==="touch"||G.current)return;const B=!R.context.selectionRef.current.allowSelectedMouseUp&&O,I=!R.context.selectionRef.current.allowUnselectedMouseUp&&!O;B||I||(G.current=!0,(F=z.current)==null||F.click(),G.current=!1)}},$=Et("div",r,{ref:[W,o,x.ref,z],state:Y,props:[w,ie,m,X]}),H=y.useMemo(()=>({selected:O,index:j,textRef:v,selectedByFocus:D}),[O,j,v,D]);return _.jsx(Zd.Provider,{value:H,children:$})}));c1.displayName="SelectItem";const f1=y.forwardRef(function(r,o){const{selected:i}=u1();return r.keepMounted||i?_.jsx($v,{...r,selected:i,ref:o}):null});f1.displayName="SelectItemIndicator";const d1=y.memo(y.forwardRef(function(r,o){const{index:i,textRef:l,selectedByFocus:u}=u1(),f=Gr(),{render:d,className:h,style:g,...m}=r,v=y.useCallback(x=>{x&&(i===0&&(f.context.firstItemTextRef.current=x),u&&(f.context.selectedItemTextRef.current=x))},[f,i,u]);return Et("div",r,{ref:[v,o,l],props:m})}));d1.displayName="SelectItemText";const Qd=y.createContext(void 0);Qd.displayName="SelectGroupContext";function WC(){const t=y.useContext(Qd);if(t===void 0)throw new Error("Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>.");return t}const p1=y.forwardRef(function(r,o){const{render:i,className:l,style:u,...f}=r,[d,h]=y.useState(),g=y.useMemo(()=>({labelId:d,setLabelId:h}),[d,h]),m=Et("div",r,{ref:o,props:[{role:"group","aria-labelledby":d},f]});return _.jsx(Qd.Provider,{value:g,children:m})});p1.displayName="SelectGroup";const h1=y.forwardRef(function(r,o){const{render:i,className:l,style:u,id:f,...d}=r,{setLabelId:h}=WC(),g=Jo(f);return ke(()=>(h(g),()=>{h(m=>m===g?void 0:m)}),[g,h]),Et("div",r,{ref:o,props:[{id:g,"aria-hidden":!0},d]})});h1.displayName="SelectGroupLabel";const KC=Gv,g1={size:"base"};function YC({size:t=g1.size}={}){return De(Nd({size:t}),"bg-kumo-control disabled:bg-kumo-control/50 data-[state=open]:bg-kumo-control","justify-between font-normal","focus:opacity-100 focus:ring-kumo-focus/50 focus-visible:ring-inset *:in-focus:opacity-100")}const Xm={xs:{iconSize:12,className:"text-kumo-subtle"},sm:{iconSize:14,className:"text-kumo-subtle"},base:{iconSize:16,className:"text-kumo-subtle"},lg:{iconSize:18,className:"text-kumo-subtle"}};function m1(t){if(t==null||typeof t!="object"||Array.isArray(t)||"$$typeof"in t||t instanceof Promise)return!1;const r=t;return"label"in r&&r.label!==void 0}function y1(t){return Array.isArray(t)?t:Object.entries(t).map(([r,o])=>({value:r,label:m1(o)?o.label:o}))}function GC(t){const r=y1(t),o=new Map;if(!Array.isArray(t))for(const[i,l]of Object.entries(t))m1(l)&&o.set(i,{disabled:l.disabled});return r.filter(i=>i.value!==null).map((i,l)=>{const u=typeof i.value=="string"?i.value:`option-${l}`,f=typeof i.value=="string"?o.get(i.value):void 0;return _.jsx(v1,{value:i.value,disabled:f==null?void 0:f.disabled,children:i.label},u)})}function vr({children:t,className:r,render:o,renderValue:i,label:l,hideLabel:u,placeholder:f,loading:d,size:h=g1.size,labelTooltip:g,description:m,error:v,required:x,container:R,side:w="bottom",sideOffset:E=4,align:b="start",alignOffset:C,alignItemWithTrigger:S=!1,anchor:P,arrowPadding:T,positionMethod:A,collisionAvoidance:O,collisionBoundary:D,collisionPadding:j,sticky:z,disableAnchorTracking:N,...G}){const X=y.useId(),W=B0(),Y=R??W??void 0,L=G,Q=L["aria-label"],ie=L["aria-labelledby"];u!==void 0&&console.warn('[Kumo Select]: `hideLabel` is deprecated. For hidden labels, use `aria-label` instead of `label` + `hideLabel={true}`.\n Migration:\n - For visible labels: <Select label="Country" /> (hideLabel no longer needed)\n - For hidden labels: <Select aria-label="Select a country" /> (remove label and hideLabel)');const $=l&&u!==!0,H=ie??(l&&!$?X:void 0),B=Q??(!l&&!H?f:void 0),I=$&&Q===void 0&&ie===void 0?{}:{"aria-labelledby":H},F=G.items?y1(G.items):void 0,q=t||(G.items?GC(G.items):null),K=i?Ce=>{const be=f!=null?_.jsx("span",{className:"text-kumo-placeholder",children:f}):null;if(Ce==null||Ce==="")return be;const Ae=i(Ce);return Ae??be}:void 0,{items:re,...J}=G,ne=l?_.jsx(Jv,{className:"m-0 text-base font-medium text-kumo-default select-none",children:_.jsx(_d,{showOptional:x===!1,tooltip:u?void 0:g,asContent:!0,children:l})}):null,ae=_.jsxs(e1,{"data-kumo-component":"Select","data-kumo-part":"trigger",render:o,className:De(YC({size:h}),G.disabled&&"cursor-not-allowed opacity-50",v&&"!ring-kumo-danger focus:ring-[1.5px] focus:ring-kumo-danger/50",r),"aria-label":B,...I,children:[d?_.jsx(MC,{className:"w-32"}):_.jsx(t1,{placeholder:f,className:"min-w-0 truncate data-[placeholder]:text-kumo-placeholder",children:K}),_.jsx(n1,{className:De("flex shrink-0 items-center",Xm[h].className),children:_.jsx(tv,{size:Xm[h].iconSize,className:"fill-current"})})]}),le=_.jsxs(FC,{...J,items:F,disabled:d||G.disabled,required:x,children:[ne,ae,_.jsx(r1,{container:Y,children:_.jsx(i1,{side:w,sideOffset:E,align:b,alignOffset:C,alignItemWithTrigger:S,anchor:P,arrowPadding:T,positionMethod:A,collisionAvoidance:O,collisionBoundary:D,collisionPadding:j,sticky:z,disableAnchorTracking:N,children:_.jsx(l1,{className:De("flex flex-col","max-h-[var(--available-height)] bg-kumo-base text-kumo-default","rounded-lg shadow-lg ring ring-kumo-line","max-w-(--available-width) min-w-(--anchor-width) py-1.5"),children:_.jsx(a1,{className:De("min-h-0 flex-1 scroll-pt-2 scroll-pb-2 overflow-y-auto overscroll-none"),children:q})})})})]});if($)return _.jsx(Ev,{label:l,required:x,labelTooltip:g,description:m,error:v?typeof v=="string"?{message:v,match:!0}:v:void 0,hideLabel:!0,children:le});const me=v?typeof v=="string"?{message:v}:v:void 0;return _.jsxs("div",{className:"grid gap-2",children:[l&&_.jsx("span",{id:X,className:"sr-only",children:l}),le,me?_.jsx("span",{className:"text-sm text-kumo-danger",children:me.message}):m&&_.jsx("span",{className:"text-sm leading-snug text-kumo-subtle",children:m})]})}function v1({children:t,value:r,disabled:o,className:i}){return _.jsxs(c1,{"data-kumo-component":"Select","data-kumo-part":"option",value:r,disabled:o,className:De("group mx-1.5 flex cursor-pointer items-center justify-between gap-2 rounded px-2 py-1.5 text-base outline-none focus-visible:outline-hidden","focus-visible:z-50 focus-visible:ring-2 focus-visible:ring-kumo-brand focus-visible:ring-inset","data-highlighted:bg-kumo-tint","data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",i),children:[_.jsx(d1,{children:t}),_.jsx(f1,{children:_.jsx(nv,{})})]})}const x1=y.forwardRef(({children:t,className:r},o)=>_.jsx(p1,{ref:o,className:De(r),children:t}));x1.displayName="Select.Group";const w1=y.forwardRef(({children:t,className:r},o)=>_.jsx(h1,{ref:o,className:De("px-3.5 py-1.5 text-sm font-semibold text-kumo-subtle",r),children:t}));w1.displayName="Select.GroupLabel";const k1=y.forwardRef(({className:t},r)=>_.jsx(KC,{ref:r,className:De("my-1 h-px bg-kumo-hairline",t)}));k1.displayName="Select.Separator";vr.Option=v1;vr.Group=x1;vr.GroupLabel=w1;vr.Separator=k1;vr.Option.displayName="Select.Option";const b1=function({color:r="primary",className:o,render:i,as:l,...u}){const f=i??(l?y.createElement(l):void 0);return _.jsx(PC,{className:De("overflow-visible rounded-none",o),render:f,...u,"data-surface-color":r,"data-deprecated":"surface"})};b1.displayName="Surface";function qm(t){const r=Yn(t);let o=parseFloat(r.width)||0,i=parseFloat(r.height)||0;const l=vt(t),u=l?t.offsetWidth:o,f=l?t.offsetHeight:i;return(gi(o)!==u||gi(i)!==f)&&(o=u,i=f),{width:o,height:i}}const XC=()=>()=>{},qC=()=>!0,ZC=()=>!1;function QC(){return Ru.useSyncExternalStore(XC,qC,ZC)}function JC(){const[t,r]=y.useState(!1);return y.useEffect(()=>{r(!0)},[]),t}const eT=fu(18)?QC:JC;function tT(){return!eT()}function nT(t){const{script:r}=t,{nonce:o}=Zv();return tT()?_.jsx("script",{nonce:o,dangerouslySetInnerHTML:{__html:r},suppressHydrationWarning:!0}):null}const Jd=y.createContext(void 0);Jd.displayName="TabsRootContext";function ep(){const t=y.useContext(Jd);if(t===void 0)throw new Error("Base UI: TabsRootContext is missing. Tabs parts must be placed within <Tabs.Root>.");return t}const rT="data-activation-direction",Pu={tabActivationDirection:t=>({[rT]:t})},S1=y.forwardRef(function(r,o){const{className:i,defaultValue:l=0,onValueChange:u,orientation:f="horizontal",render:d,value:h,style:g,...m}=r,v=r.defaultValue!==void 0,x=y.useRef([]),[R,w]=y.useState(()=>new Map),[E,b]=Zf({controlled:h,default:l,name:"Tabs",state:"value"}),C=h!==void 0,[S,P]=y.useState(()=>new Map),T=y.useRef(void 0),A=y.useCallback(ne=>nd(S,ne),[S]),[O,D]=y.useState(()=>({previousValue:E,tabActivationDirection:"none"})),{previousValue:j,tabActivationDirection:z}=O;let N=z,G=!1;j!==E&&(N=Zm(j,E,f,S),G=j!=null&&E!=null&&A(E)==null);const X=G?j:E,W=j!==X||z!==N;ke(()=>{W&&D({previousValue:X,tabActivationDirection:N})},[X,W,N]);const Y=xe((ne,ae)=>{ae.activationDirection=Zm(E,ne,f,S),u==null||u(ne,ae),!ae.isCanceled&&b(()=>ne)}),L=xe((ne,ae)=>{u==null||u(ne,nt(ae,void 0,void 0,{activationDirection:"none"}))}),Q=xe((ne,ae)=>(w(le=>{const me=new Map(le);return me.set(ne,ae),me}),()=>{w(le=>{if(le.get(ne)!==ae)return le;const me=new Map(le);return me.delete(ne),me})})),ie=y.useCallback(ne=>R.get(ne),[R]),$=y.useCallback(ne=>{for(const ae of S.values())if(ne===ae.value)return ae.id},[S]),H=y.useMemo(()=>({getTabElementBySelectedValue:A,getTabIdByPanelValue:$,getTabPanelIdByValue:ie,onValueChange:Y,orientation:f,registerMountedTabPanel:Q,setTabMap:P,tabActivationDirection:N,value:E}),[A,$,ie,Y,f,Q,P,N,E]),B=y.useMemo(()=>{for(const ne of S.values())if(ne.value===E)return ne},[S,E]),I=y.useMemo(()=>{for(const ne of S.values())if(!ne.disabled)return ne.value},[S]),F=y.useRef(!v),q=y.useRef(l),K=y.useRef(v),re=y.useRef(!1);ke(()=>{var Ce;if(C)return;function ne(be,Ae){b(()=>be),D({previousValue:be,tabActivationDirection:"none"}),L(be,Ae),F.current=!1}if(S.size===0){re.current&&E!==null&&!((Ce=T.current)!=null&&Ce.isConnected)&&ne(null,Zg);return}re.current=!0,T.current=S.keys().next().value;const ae=B==null?void 0:B.disabled,le=B==null&&E!==null;if(!ae&&E===q.current&&(K.current=!1),K.current&&ae&&E===q.current)return;const me=F.current;if(ae||le){const be=I??null;if(E===be){F.current=!1;return}let Ae=Zg;me?Ae=Qg:ae&&(Ae=yy),ne(be,Ae);return}me&&B!=null&&(L(E,Qg),F.current=!1)},[I,C,L,B,b,S,E]);const J=Et("div",r,{state:{orientation:f,tabActivationDirection:N},ref:o,props:m,stateAttributesMapping:Pu});return _.jsx(Jd.Provider,{value:H,children:_.jsx(Wd,{elementsRef:x,children:J})})});S1.displayName="TabsRoot";function nd(t,r){for(const[o,i]of t.entries())if(r===i.value)return o;return null}function Zm(t,r,o,i){if(t==null||r==null)return"none";const[l,u,f]=o==="horizontal"?["left","left","right"]:["top","up","down"],d=nd(i,t),h=nd(i,r);if(d==null||h==null)return d!==h&&(typeof t=="number"||typeof t=="string")&&typeof t==typeof r?r>t?f:u:"none";const g=d.getBoundingClientRect()[l],m=h.getBoundingClientRect()[l];return m<g?u:m>g?f:"none"}const tp=y.createContext(void 0);tp.displayName="TabsListContext";function R1(){const t=y.useContext(tp);if(t===void 0)throw new Error("Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>.");return t}const E1=y.forwardRef(function(r,o){const{className:i,disabled:l=!1,render:u,value:f,id:d,nativeButton:h=!0,style:g,...m}=r,{value:v,getTabPanelIdByValue:x,onValueChange:R,orientation:w,tabActivationDirection:E}=ep(),{activateOnFocus:b,registerTabResizeObserverElement:C,tabsListElement:S}=R1(),{highlightedIndex:P,onHighlightedIndexChange:T}=Vd(),A=Jo(d),O=y.useMemo(()=>({disabled:l,id:A,value:f}),[l,A,f]),{compositeProps:D,compositeRef:j,index:z}=SC({metadata:O}),N=f===v,G=y.useRef(!1),X=y.useRef(null),W=xe(q=>{var K;(K=X.current)==null||K.call(X),X.current=q?C(q):null});ke(()=>{if(G.current){G.current=!1;return}if(!(N&&z>-1&&P!==z))return;const q=S;if(q!=null){const K=Mn(ut(q));if(K&&$e(q,K))return}l||T(z)},[N,z,P,T,l,S]);const{getButtonProps:Y,buttonRef:L}=Bd({disabled:l,native:h,focusableWhenDisabled:!0}),Q=x(f),ie=y.useRef(!1),$=y.useRef(!1);function H(q){R(f,nt(Xo,q.nativeEvent,void 0,{activationDirection:"none"}))}function B(q){N||l||H(q)}function I(q){N||l||b&&(!ie.current||$.current)&&H(q)}function F(q){if(N||l)return;ie.current=!0,$.current=q.button===0;const K=ut(q.currentTarget);function re(){ie.current=!1,$.current=!1,K.removeEventListener("pointerup",re),K.removeEventListener("pointercancel",re)}K.addEventListener("pointerup",re),K.addEventListener("pointercancel",re)}return Et("button",r,{state:{disabled:l,active:N,orientation:w,tabActivationDirection:E},ref:[o,L,j,W],props:[D,{role:"tab","aria-controls":Q,"aria-selected":N,id:A,onClick:B,onFocus:I,onPointerDown:F,[vC]:N?"":void 0,onKeyDownCapture(){G.current=!0}},m,Y],stateAttributesMapping:Pu})});E1.displayName="TabsTab";const oT="--active-tab-left",sT="--active-tab-right",iT="--active-tab-top",lT="--active-tab-bottom",aT="--active-tab-width",uT="--active-tab-height";var Qm;const cT={...Pu,activeTabPosition:()=>null,activeTabSize:()=>null},Jm=2,C1=y.forwardRef(function(r,o){const{className:i,render:l,renderBeforeHydration:u=!1,style:f,...d}=r,{getTabElementBySelectedValue:h,orientation:g,tabActivationDirection:m,value:v}=ep(),{tabsListElement:x,registerIndicatorUpdateListener:R}=R1(),w=Sd();y.useEffect(()=>R(w),[R,w]);let E=0,b=0,C=0,S=0,P=0,T=0,A=!1;if(v!=null&&x!=null){const N=h(v);if(N!=null){A=!0;const{width:G,height:X}=qm(N),{width:W,height:Y}=qm(x),L=N.getBoundingClientRect(),Q=x.getBoundingClientRect(),ie=W>0?Q.width/W:1,$=Y>0?Q.height/Y:1,H=fT(N,x);E=H.left,C=H.top;const B=(L.left-Q.left)/ie+x.scrollLeft-x.clientLeft,I=(L.top-Q.top)/$+x.scrollTop-x.clientTop,F=dT(N);Math.abs(B-F.x-E)<=Jm&&Math.abs(I-F.y-C)<=Jm&&(E=B,C=I),P=G,T=X,b=x.scrollWidth-E-P,S=x.scrollHeight-C-T}}const O=A?{left:E,right:b,top:C,bottom:S}:null,D=A?{width:P,height:T}:null,j=A?{[oT]:`${E}px`,[sT]:`${b}px`,[iT]:`${C}px`,[lT]:`${S}px`,[aT]:`${P}px`,[uT]:`${T}px`}:void 0,z=Et("span",r,{state:{orientation:g,activeTabPosition:O,activeTabSize:D,tabActivationDirection:m},ref:o,props:[{role:"presentation",style:j,hidden:!(A&&P>0&&T>0)},d,{suppressHydrationWarning:!0}],stateAttributesMapping:cT});return v==null?null:_.jsxs(y.Fragment,{children:[z,u&&(Qm||(Qm=_.jsx(nT,{script:""})))]})});C1.displayName="TabsIndicator";function fT(t,r){const o=e0(t),i=e0(r);let l=o.left-i.left-r.clientLeft,u=o.top-i.top-r.clientTop,f=Ur(t);for(;vt(f)&&f!==r&&!fo(f);)l-=f.scrollLeft,u-=f.scrollTop,f=Ur(f);return{left:l,top:u}}function e0(t){let r=0,o=0,i=t;for(;i!=null;){r+=i.offsetLeft,o+=i.offsetTop;const l=i.offsetParent;l!=null&&(r+=l.clientLeft,o+=l.clientTop),i=l}return{left:r,top:o}}function dT(t){const r=bt(t).getComputedStyle(t),{x:o,y:i}=vE(t,r);let l=o,u=i;const{translate:f}=r;if(f&&f!=="none"){const d=f.split(" ");l+=t0(d[0],t.offsetWidth),u+=t0(d[1],t.offsetHeight)}return{x:l,y:u}}function t0(t,r){if(!t)return 0;const o=parseFloat(t);return Number.isFinite(o)?t.endsWith("%")?o/100*r:o:0}const T1=y.forwardRef(function(r,o){const{activateOnFocus:i=!1,className:l,loopFocus:u=!0,render:f,style:d,...h}=r,{orientation:g,setTabMap:m,tabActivationDirection:v}=ep(),[x,R]=y.useState(0),[w,E]=y.useState(null),b=y.useRef(new Set),C=y.useRef(new Set),S=y.useRef(null);ke(()=>{if(typeof ResizeObserver>"u")return;const j=new ResizeObserver(()=>{b.current.forEach(z=>{z()})});return S.current=j,w&&j.observe(w),C.current.forEach(z=>{j.observe(z)}),()=>{j.disconnect(),S.current=null}},[w]);const P=xe(j=>(b.current.add(j),()=>{b.current.delete(j)})),T=xe(j=>{var z;return C.current.add(j),(z=S.current)==null||z.observe(j),()=>{var N;C.current.delete(j),(N=S.current)==null||N.unobserve(j)}}),A={orientation:g,tabActivationDirection:v},O={"aria-orientation":g==="vertical"?"vertical":void 0,role:"tablist"},D=y.useMemo(()=>({activateOnFocus:i,registerIndicatorUpdateListener:P,registerTabResizeObserverElement:T,tabsListElement:w}),[i,P,T,w]);return _.jsx(tp.Provider,{value:D,children:_.jsx(bC,{render:f,className:l,style:d,state:A,refs:[o,E],props:[O,h],stateAttributesMapping:Pu,highlightedIndex:x,enableHomeAndEndKeys:!0,loopFocus:u,orientation:g,onHighlightedIndexChange:R,onMapChange:m,disabledIndices:Ko})})});T1.displayName="TabsList";const n0={variant:"segmented",size:"base"},pT={scrollStart:"Scroll tabs left",scrollEnd:"Scroll tabs right"};function hT({tabs:t,value:r,selectedValue:o,onValueChange:i,activateOnFocus:l,className:u,listClassName:f,indicatorClassName:d,labels:h,variant:g=n0.variant,size:m=n0.size}){var j;const v=t??[];if(v.length===0)return null;const x=(j=v[0])==null?void 0:j.value,R=r!==void 0,w={value:R?r:void 0,defaultValue:R?void 0:o??x},E=g==="segmented",b=g==="underline",C=m==="sm",S={...pT,...h},{ref:P,isOverflowing:T,canScrollStart:A,canScrollEnd:O}=yT(!0,v.map(z=>z.value).join("|")),D=mT(P,T);return _.jsxs(S1,{...w,className:De("relative isolate min-w-0 font-medium",E&&(C?"rounded-md":"rounded-lg")+" ring ring-kumo-hairline/70",u),onValueChange:z=>{i==null||i(String(z))},children:[E&&_.jsx("div",{className:De("absolute inset-x-0 top-1/2 z-0 -translate-y-1/2 rounded-lg bg-kumo-recessed",C?"h-6.5":"h-9")}),_.jsxs(T1,{ref:P,activateOnFocus:l,"data-overflowing":T?"":void 0,"data-overflow-start":A?"":void 0,"data-overflow-end":O?"":void 0,...D(),className:De("kumo-tabs-list relative flex min-w-0 shrink scroll-px-(--scroll-fade-width) items-stretch overflow-x-auto overflow-y-hidden [--scroll-fade-width:3rem]",E&&"rounded-lg bg-kumo-recessed px-0.5",E&&(C?"h-6.5 rounded-md":"h-9"),T&&"cursor-grab active:cursor-grabbing",b&&"gap-4 border-b border-kumo-hairline pb-2",b&&(C?"h-6.5":"h-7.5"),f),children:[v.map(z=>_.jsx(E1,{"data-kumo-component":"Tabs","data-kumo-part":"tab",value:z.value,render:z.render,nativeButton:z.nativeButton,onClick:N=>{N.currentTarget.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},className:De("relative z-2 flex items-center rounded bg-transparent whitespace-nowrap focus:ring-kumo-focus/50 focus:outline-hidden focus-visible:ring-2 focus-visible:ring-kumo-brand","forced-colors:focus-visible:-outline-offset-2",T?"cursor-grab active:cursor-grabbing":"cursor-pointer",C?"text-xs":"text-base",E&&"my-0.5 text-kumo-subtle hover:text-kumo-default focus-visible:ring-inset aria-selected:text-kumo-default",E&&(C?"rounded-sm px-2":"rounded-md px-2.5"),b&&"text-kumo-subtle hover:bg-kumo-tint hover:text-kumo-default aria-selected:font-medium aria-selected:text-kumo-default aria-selected:hover:bg-kumo-tint",b&&(C?"px-1.5 py-2.5":"px-2 py-3"),z.className),children:z.label},z.value)),_.jsx(C1,{render:z=>_.jsx("div",{...z,className:De("absolute left-0 z-1","w-(--active-tab-width) translate-x-(--active-tab-left) transition-all duration-200",E&&De("top-(--active-tab-top) h-(--active-tab-height) bg-kumo-base shadow-sm ring ring-kumo-line",C?"rounded":"rounded-md"),b&&"bottom-0 h-0.5 bg-kumo-brand",d)})})]}),E&&_.jsxs(_.Fragment,{children:[_.jsx(r0,{side:"start",visible:A,variant:g,size:m,label:S.scrollStart,onClick:()=>o0(P,"start")}),_.jsx(r0,{side:"end",visible:O,variant:g,size:m,label:S.scrollEnd,onClick:()=>o0(P,"end")})]})]})}function r0({side:t,visible:r,variant:o,size:i,label:l,onClick:u}){const f=t==="start",d=o==="segmented";return _.jsx("button",{type:"button","data-kumo-component":"Tabs","data-kumo-part":"overflow-control","data-side":t,"aria-label":l,"aria-hidden":!r,tabIndex:r?0:-1,onClick:u,className:De("absolute inset-y-0 z-3 flex items-center border-0 bg-transparent p-0 transition-opacity duration-150 focus:outline-hidden focus-visible:[&>span]:ring-2 focus-visible:[&>span]:ring-kumo-brand",f?"left-0 justify-start bg-linear-to-r":"right-0 justify-end bg-linear-to-l",r?"pointer-events-auto opacity-100":"pointer-events-none opacity-0",d?"from-kumo-recessed via-kumo-recessed/95 to-transparent":"from-kumo-base via-kumo-base/95 to-transparent",d&&(i==="sm"?"w-8 rounded-md":"w-10 rounded-lg"),!d&&"w-8"),children:_.jsx("span",{className:De("flex items-center justify-center text-kumo-subtle transition-colors hover:text-kumo-default",i==="sm"?"size-5":"size-6",d?i==="sm"?"rounded-sm":"rounded-md":"rounded",f?"ml-1":"mr-1"),children:_.jsx("svg",{viewBox:"0 0 16 16",fill:"none",className:"size-3.5","aria-hidden":"true",children:_.jsx("path",{d:f?"M9.25 4.25L5.75 8L9.25 11.75":"M6.75 4.25L10.25 8L6.75 11.75",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})})})}function o0(t,r){const o=t.current;if(!o)return;const i=Array.from(o.querySelectorAll('[data-kumo-part="tab"]')),l=gT(o.clientWidth,i);o.scrollBy({left:r==="start"?-l:l,behavior:"smooth"})}function gT(t,r){let o=0;for(const i of r){const l=i.offsetWidth;if(o+l>t)return o||t;o+=l}return Math.max(80,Math.floor(t*.8))}function mT(t,r){const o=y.useRef(null),i=y.useRef(!1);return()=>({onPointerDownCapture:l=>{const u=t.current;!u||!r||l.pointerType!=="mouse"||l.button!==0||(o.current={pointerId:l.pointerId,startX:l.clientX,scrollLeft:u.scrollLeft,dragging:!1},i.current=!1)},onPointerMoveCapture:l=>{const u=t.current,f=o.current;if(!u||!r||!f||f.pointerId!==l.pointerId)return;const d=l.clientX-f.startX;if(!f.dragging){if(Math.abs(d)<=3)return;f.dragging=!0,i.current=!0,u.setPointerCapture(l.pointerId)}l.preventDefault(),u.scrollLeft=f.scrollLeft-d},onPointerUpCapture:l=>{const u=t.current,f=o.current;!u||!f||f.pointerId!==l.pointerId||(o.current=null,u.hasPointerCapture(l.pointerId)&&u.releasePointerCapture(l.pointerId),i.current&&window.setTimeout(()=>{i.current=!1},0))},onPointerCancelCapture:l=>{const u=t.current,f=o.current;!u||!f||f.pointerId!==l.pointerId||(o.current=null,u.hasPointerCapture(l.pointerId)&&u.releasePointerCapture(l.pointerId))},onClickCapture:l=>{i.current&&(l.preventDefault(),l.stopPropagation(),i.current=!1)}})}function yT(t,r){const o=y.useRef(null),[i,l]=y.useState({isOverflowing:!1,canScrollStart:!1,canScrollEnd:!1});return y.useLayoutEffect(()=>{const u=o.current;u&&l(f=>s0(u,f))},[t,r]),y.useEffect(()=>{const u=o.current;if(!u)return;const f=()=>{l(g=>s0(u,g))},d=new ResizeObserver(f);d.observe(u);const h=new MutationObserver(f);return h.observe(u,{childList:!0,characterData:!0,subtree:!0}),u.addEventListener("scroll",f,{passive:!0}),f(),()=>{d.disconnect(),h.disconnect(),u.removeEventListener("scroll",f)}},[t]),{ref:o,...i}}function s0(t,r){const o=Math.max(0,t.scrollWidth-t.clientWidth),i=Math.min(Math.max(0,t.scrollLeft),o),l={isOverflowing:o>1,canScrollStart:i>1,canScrollEnd:o-i>1};return r.isOverflowing===l.isOverflowing&&r.canScrollStart===l.canScrollStart&&r.canScrollEnd===l.canScrollEnd?r:l}const i0={Easy:"success",Medium:"warning",Hard:"error"},vT=[["go","Go"],["python","Python"],["cpp","C++"]],oi=(t,r)=>fetch(t,r?{method:"POST",body:JSON.stringify(r)}:void 0).then(o=>o.json());function xT({text:t}){const r=y.useMemo(()=>kt.parse(t||"",{gfm:!0,breaks:!1}),[t]);return _.jsx("div",{className:"md text-kumo-default",dangerouslySetInnerHTML:{__html:r}})}function wT({r:t}){if(!t)return null;if(t.verdict==="AC")return _.jsx(wm,{variant:"default",title:"Accepted",description:`${t.passed}/${t.total} tests passed in ${t.ms} ms`});const r=t.fail;return _.jsx(wm,{variant:"error",title:`${t.verdict}${t.total?` ${t.passed}/${t.total}`:""}`,description:_.jsxs("div",{className:"font-mono text-xs whitespace-pre-wrap break-all",children:[t.message,r&&_.jsxs(_.Fragment,{children:[`test ${r.i+1}
|
|
144
|
-
input: ${r.input}
|
|
145
|
-
`,r.expected!==void 0&&`expected: ${JSON.stringify(r.expected).slice(0,400)}
|
|
146
|
-
`,r.got!==void 0&&r.got!==null&&`got: ${JSON.stringify(r.got).slice(0,400)}
|
|
147
|
-
`,r.error]})]})})}function kT(){const[t,r]=y.useState(""),[o,i]=y.useState("All"),[l,u]=y.useState(""),[f,d]=y.useState({total:0,items:[]}),[h,g]=y.useState({categories:[],progress:{}}),[m,v]=y.useState(null),[x,R]=y.useState("description"),[w,E]=y.useState("go"),[b,C]=y.useState(""),[S,P]=y.useState(null),[T,A]=y.useState(!1),[O,D]=y.useState(""),j=y.useRef({});y.useEffect(()=>{oi("/api/meta").then(g)},[]),y.useEffect(()=>{const L=setTimeout(()=>{const Q=new URLSearchParams({q:t,difficulty:o,category:l});oi("/api/problems?"+Q).then(d)},150);return()=>clearTimeout(L)},[t,o,l]);const z=y.useCallback(L=>{oi("/api/problem/"+L).then(Q=>{v(Q),R("description"),P(null),D("")})},[]);y.useEffect(()=>{if(!m)return;const L=`${m.slug}:${w}`;C(j.current[L]??m.starter[w]??""),P(null)},[m,w]);const N=L=>{C(L),m&&(j.current[`${m.slug}:${w}`]=L)},G=L=>{if(L.key==="Tab"){L.preventDefault();const Q=L.target,ie=Q.selectionStart;N(b.slice(0,ie)+" "+b.slice(Q.selectionEnd)),requestAnimationFrame(()=>{Q.selectionStart=Q.selectionEnd=ie+1})}(L.ctrlKey||L.metaKey)&&L.key==="Enter"&&X()};async function X(){if(m){A(!0),P(null);try{const L=await oi("/api/judge",{slug:m.slug,lang:w,code:b});P(L),L.verdict==="AC"&&oi("/api/meta").then(g)}finally{A(!1)}}}async function W(){const L=await oi("/api/scaffold",{slug:m.slug,lang:w});D(L.error||`${L.created?"created":"exists"}: ${L.file}`)}const Y=Object.keys(h.progress).length;return _.jsxs("div",{className:"flex h-full flex-col bg-kumo-canvas text-kumo-default",children:[_.jsxs("header",{className:"flex items-center justify-between border-b border-kumo-line px-4 py-2",children:[_.jsxs("div",{className:"flex items-baseline gap-2",children:[_.jsx(uo,{variant:"heading3",children:"offcode"}),_.jsx(uo,{variant:"secondary",size:"sm",children:"by Limon Das"})]}),_.jsxs(uo,{variant:"secondary",size:"sm",children:[f.total," problems · ",Y," solved"]})]}),_.jsxs("div",{className:"grid min-h-0 flex-1 grid-cols-[360px_1fr] max-md:grid-cols-1",children:[_.jsxs("aside",{className:"flex min-h-0 flex-col border-r border-kumo-line",children:[_.jsxs("div",{className:"flex flex-col gap-2 border-b border-kumo-line p-3",children:[_.jsx(Iv,{"aria-label":"Search",placeholder:"Search title, number, category",value:t,onChange:L=>r(L.target.value)}),_.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[_.jsx(vr,{label:"Difficulty",value:o,onValueChange:i,children:["All","Easy","Medium","Hard"].map(L=>_.jsx(vr.Option,{value:L,children:L},L))}),_.jsxs(vr,{label:"Category",value:l,onValueChange:u,children:[_.jsx(vr.Option,{value:"",children:"All topics"}),h.categories.map(L=>_.jsx(vr.Option,{value:L,children:L},L))]})]})]}),_.jsx("div",{className:"min-h-0 flex-1 overflow-auto",children:f.items.map(L=>_.jsxs("button",{onClick:()=>z(L.slug),className:`flex w-full items-center gap-3 border-b border-kumo-line px-3 py-2 text-left hover:bg-kumo-tint ${(m==null?void 0:m.slug)===L.slug?"bg-kumo-tint":""}`,children:[_.jsx("span",{className:"w-9 shrink-0 text-kumo-subtle text-sm",children:L.label}),_.jsx("span",{className:"min-w-0 flex-1 truncate text-sm",children:L.title}),h.progress[L.slug]&&_.jsx("span",{className:"text-kumo-success text-sm",children:"✓"}),_.jsx(df,{variant:i0[L.difficulty],children:L.difficulty})]},L.slug))})]}),_.jsx("main",{className:"min-h-0 overflow-hidden",children:m?_.jsxs("div",{className:"grid h-full grid-cols-2 max-xl:grid-cols-1 max-xl:grid-rows-2",children:[_.jsxs("section",{className:"flex min-h-0 flex-col border-r border-kumo-line",children:[_.jsxs("div",{className:"flex flex-col gap-2 p-4 pb-2",children:[_.jsxs(uo,{variant:"heading2",children:[m.id,". ",m.title]}),_.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx(df,{variant:i0[m.difficulty],children:m.difficulty}),_.jsx(df,{variant:"outline",children:m.category})]}),_.jsx(hT,{variant:"underline",value:x,onValueChange:R,tabs:[{value:"description",label:"Description"},{value:"hints",label:"Hints"},{value:"solution",label:"Solution"}]})]}),_.jsx("div",{className:"min-h-0 flex-1 overflow-auto px-4 pb-6",children:_.jsx(xT,{text:m.md[x]})})]}),_.jsxs("section",{className:"flex min-h-0 flex-col gap-2 p-4",children:[_.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx("div",{className:"w-32",children:_.jsx(vr,{label:"Language",value:w,onValueChange:E,children:vT.map(([L,Q])=>_.jsx(vr.Option,{value:L,children:Q},L))})}),_.jsx("div",{className:"flex-1"}),_.jsx(xi,{variant:"secondary",onClick:W,children:"Save to ./offcode"}),_.jsx(xi,{variant:"primary",onClick:X,disabled:T||!m.judge,children:T?"Running":"Run"})]}),_.jsx(b1,{className:"min-h-0 flex-1 overflow-hidden rounded-lg",children:_.jsx("textarea",{className:"code h-full w-full bg-transparent p-3 text-kumo-default outline-none",spellCheck:!1,value:b,onChange:L=>N(L.target.value),onKeyDown:G})}),O&&_.jsx(uo,{variant:"secondary",size:"xs",children:O}),!m.judge&&_.jsx(uo,{variant:"secondary",size:"xs",children:"No judge for this problem (design, interactive or graph)."}),w==="cpp"&&_.jsx(uo,{variant:"secondary",size:"xs",children:"C++ judge not built yet. Use Go or Python."}),T&&_.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx(V0,{}),_.jsx(uo,{variant:"secondary",size:"sm",children:"Judging"})]}),_.jsx("div",{className:"max-h-56 overflow-auto",children:_.jsx(wT,{r:S})})]})]}):_.jsx("div",{className:"flex h-full items-center justify-center",children:_.jsx(uo,{variant:"secondary",children:"Pick a problem"})})})]})]})}const I1=window.matchMedia("(prefers-color-scheme: dark)"),P1=()=>document.documentElement.setAttribute("data-mode",I1.matches?"dark":"light");P1();I1.addEventListener("change",P1);mx.createRoot(document.getElementById("root")).render(_.jsx(kT,{}));
|