@drivardxrm/pptb-customapi-events-manager 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1277 @@
1
+ (function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ee(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var te=/\/+/g;function ne(e,t){return typeof e==`object`&&e&&e.key!=null?ee(``+e.key):t.toString(36)}function re(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ie(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ie(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ne(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(te,`$&/`)+`/`),ie(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(te,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ne(a,u),c+=ie(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ne(a,u++),c+=ie(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ie(re(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function k(e,t,n){if(e==null)return e;var r=[],i=0;return ie(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ae(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var oe=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},se={map:k,forEach:function(e,t,n){k(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return k(e,function(){t++}),t},toArray:function(e){return k(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=se,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ae}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,oe)}catch(e){oe(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.6`})),f=s(((e,t)=>{t.exports=d()})),p=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&ne(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ne(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var ee=new MessageChannel,te=ee.port2;ee.port1.onmessage=D,O=function(){te.postMessage(null)}}else O=function(){_(D,0)};function ne(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ne(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),m=s(((e,t)=>{t.exports=p()})),h=s((e=>{var t=f();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.6`})),g=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()})),_=s((e=>{var t=m(),n=f(),r=g();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,h=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),ee=Symbol.for(`react.activity`),te=Symbol.for(`react.memo_cache_sentinel`),ne=Symbol.iterator;function re(e){return typeof e!=`object`||!e?null:(e=ne&&e[ne]||e[`@@iterator`],typeof e==`function`?e:null)}var ie=Symbol.for(`react.client.reference`);function k(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ie?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case ee:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?k(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return k(e(t))}catch{}}return null}var ae=Array.isArray,oe=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},le=[],ue=-1;function de(e){return{current:e}}function fe(e){0>ue||(e.current=le[ue],le[ue]=null,ue--)}function pe(e,t){ue++,le[ue]=e.current,e.current=t}var me=de(null),he=de(null),ge=de(null),_e=de(null);function ve(e,t){switch(pe(ge,t),pe(he,e),pe(me,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ef(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ef(t),e=tf(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}fe(me),pe(me,e)}function ye(){fe(me),fe(he),fe(ge)}function be(e){e.memoizedState!==null&&pe(_e,e);var t=me.current,n=tf(t,e.type);t!==n&&(pe(he,e),pe(me,n))}function xe(e){he.current===e&&(fe(me),fe(he)),_e.current===e&&(fe(_e),dp._currentValue=ce)}var Se,Ce;function we(e){if(Se===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Se=t&&t[1]||``,Ce=-1<e.stack.indexOf(`
2
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
3
+ `+Se+e+Ce}var Te=!1;function Ee(e,t){if(!e||Te)return``;Te=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
4
+ `),l=s.split(`
5
+ `);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
6
+ `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Te=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?we(n):``}function De(e,t){switch(e.tag){case 26:case 27:case 5:return we(e.type);case 16:return we(`Lazy`);case 13:return e.child!==t&&t!==null?we(`Suspense Fallback`):we(`Suspense`);case 19:return we(`SuspenseList`);case 0:case 15:return Ee(e.type,!1);case 11:return Ee(e.type.render,!1);case 1:return Ee(e.type,!0);case 31:return we(`Activity`);default:return``}}function Oe(e){try{var t=``,n=null;do t+=De(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
7
+ Error generating stack: `+e.message+`
8
+ `+e.stack}}var ke=Object.prototype.hasOwnProperty,Ae=t.unstable_scheduleCallback,je=t.unstable_cancelCallback,Me=t.unstable_shouldYield,Ne=t.unstable_requestPaint,Pe=t.unstable_now,Fe=t.unstable_getCurrentPriorityLevel,Ie=t.unstable_ImmediatePriority,Le=t.unstable_UserBlockingPriority,Re=t.unstable_NormalPriority,ze=t.unstable_LowPriority,Be=t.unstable_IdlePriority,Ve=t.log,He=t.unstable_setDisableYieldValue,Ue=null,We=null;function Ge(e){if(typeof Ve==`function`&&He(e),We&&typeof We.setStrictMode==`function`)try{We.setStrictMode(Ue,e)}catch{}}var Ke=Math.clz32?Math.clz32:Je,A=Math.log,qe=Math.LN2;function Je(e){return e>>>=0,e===0?32:31-(A(e)/qe|0)|0}var Ye=256,Xe=262144,Ze=4194304;function Qe(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $e(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Qe(n))):i=Qe(o):i=Qe(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Qe(n))):i=Qe(o)):i=Qe(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function et(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function tt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function nt(){var e=Ze;return Ze<<=1,!(Ze&62914560)&&(Ze=4194304),e}function rt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function it(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function at(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ke(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&ot(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function ot(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ke(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function st(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ke(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ct(e,t){var n=t&-t;return n=n&42?1:lt(n),(n&(e.suspendedLanes|t))===0?n:0}function lt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ut(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function dt(){var e=se.p;return e===0?(e=window.event,e===void 0?32:Dp(e.type)):e}function ft(e,t){var n=se.p;try{return se.p=e,t()}finally{se.p=n}}var pt=Math.random().toString(36).slice(2),mt=`__reactFiber$`+pt,ht=`__reactProps$`+pt,gt=`__reactContainer$`+pt,_t=`__reactEvents$`+pt,vt=`__reactListeners$`+pt,yt=`__reactHandles$`+pt,j=`__reactResources$`+pt,bt=`__reactMarker$`+pt;function xt(e){delete e[mt],delete e[ht],delete e[_t],delete e[vt],delete e[yt]}function St(e){var t=e[mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gt]||n[mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=wf(e);e!==null;){if(n=e[mt])return n;e=wf(e)}return t}e=n,n=e.parentNode}return null}function Ct(e){if(e=e[mt]||e[gt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function wt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Tt(e){var t=e[j];return t||=e[j]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Et(e){e[bt]=!0}var Dt=new Set,Ot={};function kt(e,t){At(e,t),At(e+`Capture`,t)}function At(e,t){for(Ot[e]=t,e=0;e<t.length;e++)Dt.add(t[e])}var jt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Mt={},Nt={};function Pt(e){return ke.call(Nt,e)?!0:ke.call(Mt,e)?!1:jt.test(e)?Nt[e]=!0:(Mt[e]=!0,!1)}function Ft(e,t,n){if(Pt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function It(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Lt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Rt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function zt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Bt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vt(e){if(!e._valueTracker){var t=zt(e)?`checked`:`value`;e._valueTracker=Bt(e,t,``+e[t])}}function Ht(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=zt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Ut(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Wt=/[\n"\\]/g;function Gt(e){return e.replace(Wt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Kt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Rt(t)):e.value!==``+Rt(t)&&(e.value=``+Rt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Jt(e,o,Rt(n)):Jt(e,o,Rt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Rt(s):e.removeAttribute(`name`)}function qt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Vt(e);return}n=n==null?``:``+Rt(n),t=t==null?n:``+Rt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Vt(e)}function Jt(e,t,n){t===`number`&&Ut(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Yt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Rt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Xt(e,t,n){if(t!=null&&(t=``+Rt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Rt(n)}function Zt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ae(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Rt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Vt(e)}function Qt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $t=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function en(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||$t.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function tn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&en(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&en(e,o,t[o])}function nn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var rn=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),an=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function on(e){return an.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function sn(){}var cn=null;function ln(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var un=null,dn=null;function fn(e){var t=Ct(e);if(t&&(e=t.stateNode)){var n=e[ht]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Kt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Gt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[ht]||null;if(!a)throw Error(i(90));Kt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Ht(r)}break a;case`textarea`:Xt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Yt(e,!!n.multiple,t,!1)}}}var pn=!1;function mn(e,t,n){if(pn)return e(t,n);pn=!0;try{return e(t)}finally{if(pn=!1,(un!==null||dn!==null)&&(ju(),un&&(t=un,e=dn,dn=un=null,fn(t),e)))for(t=0;t<e.length;t++)fn(e[t])}}function hn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ht]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var gn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),_n=!1;if(gn)try{var vn={};Object.defineProperty(vn,`passive`,{get:function(){_n=!0}}),window.addEventListener(`test`,vn,vn),window.removeEventListener(`test`,vn,vn)}catch{_n=!1}var yn=null,bn=null,xn=null;function Sn(){if(xn)return xn;var e,t=bn,n=t.length,r,i=`value`in yn?yn.value:yn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return xn=i.slice(e,1<r?1-r:void 0)}function Cn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function wn(){return!0}function Tn(){return!1}function En(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?wn:Tn,this.isPropagationStopped=Tn,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=wn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=wn)},persist:function(){},isPersistent:wn}),t}var Dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},On=En(Dn),kn=p({},Dn,{view:0,detail:0}),An=En(kn),jn,Mn,Nn,Pn=p({},kn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gn,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!==Nn&&(Nn&&e.type===`mousemove`?(jn=e.screenX-Nn.screenX,Mn=e.screenY-Nn.screenY):Mn=jn=0,Nn=e),jn)},movementY:function(e){return`movementY`in e?e.movementY:Mn}}),Fn=En(Pn),In=En(p({},Pn,{dataTransfer:0})),Ln=En(p({},kn,{relatedTarget:0})),Rn=En(p({},Dn,{animationName:0,elapsedTime:0,pseudoElement:0})),zn=En(p({},Dn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Bn=En(p({},Dn,{data:0})),Vn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Hn={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`},Un={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Wn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Un[e])?!!t[e]:!1}function Gn(){return Wn}var Kn=En(p({},kn,{key:function(e){if(e.key){var t=Vn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Cn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Hn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gn,charCode:function(e){return e.type===`keypress`?Cn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Cn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),qn=En(p({},Pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Jn=En(p({},kn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gn})),Yn=En(p({},Dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Xn=En(p({},Pn,{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})),Zn=En(p({},Dn,{newState:0,oldState:0})),Qn=[9,13,27,32],$n=gn&&`CompositionEvent`in window,er=null;gn&&`documentMode`in document&&(er=document.documentMode);var tr=gn&&`TextEvent`in window&&!er,nr=gn&&(!$n||er&&8<er&&11>=er),rr=` `,ir=!1;function ar(e,t){switch(e){case`keyup`:return Qn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function or(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var sr=!1;function cr(e,t){switch(e){case`compositionend`:return or(t);case`keypress`:return t.which===32?(ir=!0,rr):null;case`textInput`:return e=t.data,e===rr&&ir?null:e;default:return null}}function lr(e,t){if(sr)return e===`compositionend`||!$n&&ar(e,t)?(e=Sn(),xn=bn=yn=null,sr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return nr&&t.locale!==`ko`?null:t.data;default:return null}}var ur={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 dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!ur[e.type]:t===`textarea`}function fr(e,t,n,r){un?dn?dn.push(r):dn=[r]:un=r,t=Rd(t,`onChange`),0<t.length&&(n=new On(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var pr=null,mr=null;function hr(e){jd(e,0)}function gr(e){if(Ht(wt(e)))return e}function _r(e,t){if(e===`change`)return t}var vr=!1;if(gn){var yr;if(gn){var br=`oninput`in document;if(!br){var xr=document.createElement(`div`);xr.setAttribute(`oninput`,`return;`),br=typeof xr.oninput==`function`}yr=br}else yr=!1;vr=yr&&(!document.documentMode||9<document.documentMode)}function Sr(){pr&&(pr.detachEvent(`onpropertychange`,Cr),mr=pr=null)}function Cr(e){if(e.propertyName===`value`&&gr(mr)){var t=[];fr(t,mr,e,ln(e)),mn(hr,t)}}function wr(e,t,n){e===`focusin`?(Sr(),pr=t,mr=n,pr.attachEvent(`onpropertychange`,Cr)):e===`focusout`&&Sr()}function Tr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return gr(mr)}function Er(e,t){if(e===`click`)return gr(t)}function Dr(e,t){if(e===`input`||e===`change`)return gr(t)}function Or(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var kr=typeof Object.is==`function`?Object.is:Or;function Ar(e,t){if(kr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ke.call(t,i)||!kr(e[i],t[i]))return!1}return!0}function jr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function M(e,t){var n=jr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=jr(n)}}function Mr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ut(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ut(e.document)}return t}function Pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var N=gn&&`documentMode`in document&&11>=document.documentMode,Fr=null,Ir=null,Lr=null,Rr=!1;function zr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rr||Fr==null||Fr!==Ut(r)||(r=Fr,`selectionStart`in r&&Pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Lr&&Ar(Lr,r)||(Lr=r,r=Rd(Ir,`onSelect`),0<r.length&&(t=new On(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Fr)))}function Br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var P={animationend:Br(`Animation`,`AnimationEnd`),animationiteration:Br(`Animation`,`AnimationIteration`),animationstart:Br(`Animation`,`AnimationStart`),transitionrun:Br(`Transition`,`TransitionRun`),transitionstart:Br(`Transition`,`TransitionStart`),transitioncancel:Br(`Transition`,`TransitionCancel`),transitionend:Br(`Transition`,`TransitionEnd`)},Vr={},Hr={};gn&&(Hr=document.createElement(`div`).style,`AnimationEvent`in window||(delete P.animationend.animation,delete P.animationiteration.animation,delete P.animationstart.animation),`TransitionEvent`in window||delete P.transitionend.transition);function Ur(e){if(Vr[e])return Vr[e];if(!P[e])return e;var t=P[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Hr)return Vr[e]=t[n];return e}var Wr=Ur(`animationend`),Gr=Ur(`animationiteration`),Kr=Ur(`animationstart`),qr=Ur(`transitionrun`),Jr=Ur(`transitionstart`),Yr=Ur(`transitioncancel`),Xr=Ur(`transitionend`),Zr=new Map,Qr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Qr.push(`scrollEnd`);function $r(e,t){Zr.set(e,t),kt(t,[e])}var ei=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ti=[],ni=0,ri=0;function ii(){for(var e=ni,t=ri=ni=0;t<e;){var n=ti[t];ti[t++]=null;var r=ti[t];ti[t++]=null;var i=ti[t];ti[t++]=null;var a=ti[t];if(ti[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ci(n,i,a)}}function ai(e,t,n,r){ti[ni++]=e,ti[ni++]=t,ti[ni++]=n,ti[ni++]=r,ri|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function oi(e,t,n,r){return ai(e,t,n,r),li(e)}function si(e,t){return ai(e,null,null,t),li(e)}function ci(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ke(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function li(e){if(50<Cu)throw Cu=0,wu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ui={};function di(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fi(e,t,n,r){return new di(e,t,n,r)}function pi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mi(e,t){var n=e.alternate;return n===null?(n=fi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function hi(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function gi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)pi(e)&&(s=1);else if(typeof e==`string`)s=np(e,n,me.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case ee:return e=fi(31,n,t,a),e.elementType=ee,e.lanes=o,e;case y:return _i(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=fi(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=fi(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=fi(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=fi(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function _i(e,t,n,r){return e=fi(7,e,r,t),e.lanes=n,e}function vi(e,t,n){return e=fi(6,e,null,t),e.lanes=n,e}function yi(e){var t=fi(18,null,null,0);return t.stateNode=e,t}function bi(e,t,n){return t=fi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var xi=new WeakMap;function Si(e,t){if(typeof e==`object`&&e){var n=xi.get(e);return n===void 0?(t={value:e,source:t,stack:Oe(t)},xi.set(e,t),t):n}return{value:e,source:t,stack:Oe(t)}}var Ci=[],wi=0,Ti=null,Ei=0,Di=[],Oi=0,ki=null,Ai=1,ji=``;function Mi(e,t){Ci[wi++]=Ei,Ci[wi++]=Ti,Ti=e,Ei=t}function Ni(e,t,n){Di[Oi++]=Ai,Di[Oi++]=ji,Di[Oi++]=ki,ki=e;var r=Ai;e=ji;var i=32-Ke(r)-1;r&=~(1<<i),n+=1;var a=32-Ke(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ai=1<<32-Ke(t)+i|n<<i|r,ji=a+e}else Ai=1<<a|n<<i|r,ji=e}function Pi(e){e.return!==null&&(Mi(e,1),Ni(e,1,0))}function Fi(e){for(;e===Ti;)Ti=Ci[--wi],Ci[wi]=null,Ei=Ci[--wi],Ci[wi]=null;for(;e===ki;)ki=Di[--Oi],Di[Oi]=null,ji=Di[--Oi],Di[Oi]=null,Ai=Di[--Oi],Di[Oi]=null}function Ii(e,t){Di[Oi++]=Ai,Di[Oi++]=ji,Di[Oi++]=ki,Ai=t.id,ji=t.overflow,ki=e}var Li=null,Ri=null,zi=!1,Bi=null,Vi=!1,Hi=Error(i(519));function Ui(e){throw Yi(Si(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Hi}function Wi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[mt]=e,t[ht]=r,n){case`dialog`:Md(`cancel`,t),Md(`close`,t);break;case`iframe`:case`object`:case`embed`:Md(`load`,t);break;case`video`:case`audio`:for(n=0;n<kd.length;n++)Md(kd[n],t);break;case`source`:Md(`error`,t);break;case`img`:case`image`:case`link`:Md(`error`,t),Md(`load`,t);break;case`details`:Md(`toggle`,t);break;case`input`:Md(`invalid`,t),qt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Md(`invalid`,t);break;case`textarea`:Md(`invalid`,t),Zt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Wd(t.textContent,n)?(r.popover!=null&&(Md(`beforetoggle`,t),Md(`toggle`,t)),r.onScroll!=null&&Md(`scroll`,t),r.onScrollEnd!=null&&Md(`scrollend`,t),r.onClick!=null&&(t.onclick=sn),t=!0):t=!1,t||Ui(e,!0)}function Gi(e){for(Li=e.return;Li;)switch(Li.tag){case 5:case 31:case 13:Vi=!1;return;case 27:case 3:Vi=!0;return;default:Li=Li.return}}function Ki(e){if(e!==Li)return!1;if(!zi)return Gi(e),zi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||nf(e.type,e.memoizedProps)),n=!n),n&&Ri&&Ui(e),Gi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ri=Cf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ri=Cf(e)}else t===27?(t=Ri,df(e.type)?(e=Sf,Sf=null,Ri=e):Ri=t):Ri=Li?xf(e.stateNode.nextSibling):null;return!0}function qi(){Ri=Li=null,zi=!1}function Ji(){var e=Bi;return e!==null&&(lu===null?lu=e:lu.push.apply(lu,e),Bi=null),e}function Yi(e){Bi===null?Bi=[e]:Bi.push(e)}var Xi=de(null),Zi=null,Qi=null;function $i(e,t,n){pe(Xi,t._currentValue),t._currentValue=n}function ea(e){e._currentValue=Xi.current,fe(Xi)}function ta(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function na(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ta(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ta(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function ra(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;kr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===_e.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[dp]:e.push(dp))}a=a.return}e!==null&&na(t,e,n,r),t.flags|=262144}function ia(e){for(e=e.firstContext;e!==null;){if(!kr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function aa(e){Zi=e,Qi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function oa(e){return ca(Zi,e)}function sa(e,t){return Zi===null&&aa(e),ca(e,t)}function ca(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Qi===null){if(e===null)throw Error(i(308));Qi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Qi=Qi.next=t;return n}var la=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ua=t.unstable_scheduleCallback,da=t.unstable_NormalPriority,fa={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pa(){return{controller:new la,data:new Map,refCount:0}}function ma(e){e.refCount--,e.refCount===0&&ua(da,function(){e.controller.abort()})}var ha=null,F=0,ga=0,_a=null;function va(e,t){if(ha===null){var n=ha=[];F=0,ga=Cd(),_a={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return F++,t.then(ya,ya),t}function ya(){if(--F===0&&ha!==null){_a!==null&&(_a.status=`fulfilled`);var e=ha;ha=null,ga=0,_a=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ba(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var xa=oe.S;oe.S=function(e,t){fu=Pe(),typeof t==`object`&&t&&typeof t.then==`function`&&va(e,t),xa!==null&&xa(e,t)};var Sa=de(null);function Ca(){var e=Sa.current;return e===null?ql.pooledCache:e}function wa(e,t){t===null?pe(Sa,Sa.current):pe(Sa,t.pool)}function Ta(){var e=Ca();return e===null?null:{parent:fa._currentValue,pool:e}}var Ea=Error(i(460)),Da=Error(i(474)),Oa=Error(i(542)),ka={then:function(){}};function Aa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ja(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(sn,sn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Fa(e),e;default:if(typeof t.status==`string`)t.then(sn,sn);else{if(e=ql,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Fa(e),e}throw Na=t,Ea}}function Ma(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Na=e,Ea):e}}var Na=null;function Pa(){if(Na===null)throw Error(i(459));var e=Na;return Na=null,e}function Fa(e){if(e===Ea||e===Oa)throw Error(i(483))}var Ia=null,La=0;function Ra(e){var t=La;return La+=1,Ia===null&&(Ia=[]),ja(Ia,e,t)}function za(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ba(e,t){throw t.$$typeof===h?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Va(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=mi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=vi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&Ma(i)===t.type)?(t=a(t,n.props),za(t,n),t.return=e,t):(t=gi(n.type,n.key,n.props,null,e.mode,r),za(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=bi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=_i(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=vi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=gi(t.type,t.key,t.props,null,e.mode,n),za(n,t),n.return=e,n;case v:return t=bi(t,e.mode,n),t.return=e,t;case O:return t=Ma(t),f(e,t,n)}if(ae(t)||re(t))return t=_i(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ra(t),n);if(t.$$typeof===C)return f(e,sa(e,t),n);Ba(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=Ma(n),p(e,t,n,r)}if(ae(n)||re(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ra(n),r);if(n.$$typeof===C)return p(e,t,sa(e,n),r);Ba(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=Ma(r),m(e,t,n,r,i)}if(ae(r)||re(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ra(r),i);if(r.$$typeof===C)return m(e,t,n,sa(t,r),i);Ba(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),zi&&Mi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return zi&&Mi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),zi&&Mi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),zi&&Mi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return zi&&Mi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),zi&&Mi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&Ma(l)===r.type){n(e,r.sibling),c=a(r,o.props),za(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=_i(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=gi(o.type,o.key,o.props,null,e.mode,c),za(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=bi(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=Ma(o),b(e,r,o,c)}if(ae(o))return h(e,r,o,c);if(re(o)){if(l=re(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ra(o),c);if(o.$$typeof===C)return b(e,r,sa(e,o),c);Ba(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=vi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{La=0;var i=b(e,t,n,r);return Ia=null,i}catch(t){if(t===Ea||t===Oa)throw t;var a=fi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ha=Va(!0),Ua=Va(!1),Wa=!1;function Ga(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ka(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function qa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ja(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Kl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=li(e),ci(e,null,n),t}return ai(e,r,t,n),li(e)}function Ya(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,st(e,n)}}function Xa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Za=!1;function Qa(){if(Za){var e=_a;if(e!==null)throw e}}function $a(e,t,n,r){Za=!1;var i=e.updateQueue;Wa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,m=f!==s.lane;if(m?(Yl&f)===f:(r&f)===f){f!==0&&f===ga&&(Za=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=p({},d,f);break a;case 2:Wa=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),ru|=o,e.lanes=o,e.memoizedState=d}}function eo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function to(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)eo(n[e],t)}var no=de(null),ro=de(0);function io(e,t){e=tu,pe(ro,e),pe(no,t),tu=e|t.baseLanes}function ao(){pe(ro,tu),pe(no,no.current)}function I(){tu=ro.current,fe(no),fe(ro)}var oo=de(null),so=null;function co(e){var t=e.alternate;pe(mo,mo.current&1),pe(oo,e),so===null&&(t===null||no.current!==null||t.memoizedState!==null)&&(so=e)}function lo(e){pe(mo,mo.current),pe(oo,e),so===null&&(so=e)}function uo(e){e.tag===22?(pe(mo,mo.current),pe(oo,e),so===null&&(so=e)):fo(e)}function fo(){pe(mo,mo.current),pe(oo,oo.current)}function po(e){fe(oo),so===e&&(so=null),fe(mo)}var mo=de(0);function ho(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||vf(n)||yf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var go=0,_o=null,vo=null,yo=null,bo=!1,xo=!1,So=!1,Co=0,wo=0,To=null,Eo=0;function Do(){throw Error(i(321))}function Oo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!kr(e[n],t[n]))return!1;return!0}function ko(e,t,n,r,i,a){return go=a,_o=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oe.H=e===null||e.memoizedState===null?Gs:Ks,So=!1,a=n(r,i),So=!1,xo&&(a=jo(t,n,r,i)),Ao(e),a}function Ao(e){oe.H=Ws;var t=vo!==null&&vo.next!==null;if(go=0,yo=vo=_o=null,bo=!1,wo=0,To=null,t)throw Error(i(300));e===null||lc||(e=e.dependencies,e!==null&&ia(e)&&(lc=!0))}function jo(e,t,n,r){_o=e;var a=0;do{if(xo&&(To=null),wo=0,xo=!1,25<=a)throw Error(i(301));if(a+=1,yo=vo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}oe.H=qs,o=t(n,r)}while(xo);return o}function Mo(){var e=oe.H,t=e.useState()[0];return t=typeof t.then==`function`?zo(t):t,e=e.useState()[0],(vo===null?null:vo.memoizedState)!==e&&(_o.flags|=1024),t}function No(){var e=Co!==0;return Co=0,e}function Po(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Fo(e){if(bo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}bo=!1}go=0,yo=vo=_o=null,xo=!1,wo=Co=0,To=null}function Io(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yo===null?_o.memoizedState=yo=e:yo=yo.next=e,yo}function Lo(){if(vo===null){var e=_o.alternate;e=e===null?null:e.memoizedState}else e=vo.next;var t=yo===null?_o.memoizedState:yo.next;if(t!==null)yo=t,vo=e;else{if(e===null)throw _o.alternate===null?Error(i(467)):Error(i(310));vo=e,e={memoizedState:vo.memoizedState,baseState:vo.baseState,baseQueue:vo.baseQueue,queue:vo.queue,next:null},yo===null?_o.memoizedState=yo=e:yo=yo.next=e}return yo}function Ro(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function zo(e){var t=wo;return wo+=1,To===null&&(To=[]),e=ja(To,e,t),t=_o,(yo===null?t.memoizedState:yo.next)===null&&(t=t.alternate,oe.H=t===null||t.memoizedState===null?Gs:Ks),e}function Bo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return zo(e);if(e.$$typeof===C)return oa(e)}throw Error(i(438,String(e)))}function Vo(e){var t=null,n=_o.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=_o.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Ro(),_o.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=te;return t.index++,n}function Ho(e,t){return typeof t==`function`?t(e):t}function Uo(e){return Wo(Lo(),vo,e)}function Wo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(go&f)===f:(Yl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ga&&(d=!0);else if((go&p)===p){u=u.next,p===ga&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,_o.lanes|=p,ru|=p;f=u.action,So&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,_o.lanes|=f,ru|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!kr(o,e.memoizedState)&&(lc=!0,d&&(n=_a,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Go(e){var t=Lo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);kr(o,t.memoizedState)||(lc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ko(e,t,n){var r=_o,a=Lo(),o=zi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!kr((vo||a).memoizedState,n);if(s&&(a.memoizedState=n,lc=!0),a=a.queue,gs(Yo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||yo!==null&&yo.memoizedState.tag&1){if(r.flags|=2048,fs(9,{destroy:void 0},Jo.bind(null,r,a,n,t),null),ql===null)throw Error(i(349));o||go&127||qo(r,t,n)}return n}function qo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=_o.updateQueue,t===null?(t=Ro(),_o.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Jo(e,t,n,r){t.value=n,t.getSnapshot=r,Xo(t)&&Zo(e)}function Yo(e,t,n){return n(function(){Xo(t)&&Zo(e)})}function Xo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!kr(e,n)}catch{return!0}}function Zo(e){var t=si(e,2);t!==null&&Eu(t,e,2)}function Qo(e){var t=Io();if(typeof e==`function`){var n=e;if(e=n(),So){Ge(!0);try{n()}finally{Ge(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ho,lastRenderedState:e},t}function $o(e,t,n,r){return e.baseState=n,Wo(e,vo,typeof r==`function`?r:Ho)}function es(e,t,n,r,a){if(Vs(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};oe.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,ts(t,o)):(o.next=n.next,t.pending=n.next=o)}}function ts(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=oe.T,o={};oe.T=o;try{var s=n(i,r),c=oe.S;c!==null&&c(o,s),ns(e,t,s)}catch(n){is(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),oe.T=a}}else try{a=n(i,r),ns(e,t,a)}catch(n){is(e,t,n)}}function ns(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){rs(e,t,n)},function(n){return is(e,t,n)}):rs(e,t,n)}function rs(e,t,n){t.status=`fulfilled`,t.value=n,as(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ts(e,n)))}function is(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,as(t),t=t.next;while(t!==r)}e.action=null}function as(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function os(e,t){return t}function ss(e,t){if(zi){var n=ql.formState;if(n!==null){a:{var r=_o;if(zi){if(Ri){b:{for(var i=Ri,a=Vi;i.nodeType!==8;){if(!a){i=null;break b}if(i=xf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ri=xf(i.nextSibling),r=i.data===`F!`;break a}}Ui(r)}r=!1}r&&(t=n[0])}}return n=Io(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:os,lastRenderedState:t},n.queue=r,n=Rs.bind(null,_o,r),r.dispatch=n,r=Qo(!1),a=Bs.bind(null,_o,!1,r.queue),r=Io(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=es.bind(null,_o,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function cs(e){return ls(Lo(),vo,e)}function ls(e,t,n){if(t=Wo(e,t,os)[0],e=Uo(Ho)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=zo(t)}catch(e){throw e===Ea?Oa:e}else r=t;t=Lo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(_o.flags|=2048,fs(9,{destroy:void 0},us.bind(null,i,n),null)),[r,a,e]}function us(e,t){e.action=t}function ds(e){var t=Lo(),n=vo;if(n!==null)return ls(t,n,e);Lo(),t=t.memoizedState,n=Lo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function fs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=_o.updateQueue,t===null&&(t=Ro(),_o.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ps(){return Lo().memoizedState}function ms(e,t,n,r){var i=Io();_o.flags|=e,i.memoizedState=fs(1|t,{destroy:void 0},n,r===void 0?null:r)}function L(e,t,n,r){var i=Lo();r=r===void 0?null:r;var a=i.memoizedState.inst;vo!==null&&r!==null&&Oo(r,vo.memoizedState.deps)?i.memoizedState=fs(t,a,n,r):(_o.flags|=e,i.memoizedState=fs(1|t,a,n,r))}function hs(e,t){ms(8390656,8,e,t)}function gs(e,t){L(2048,8,e,t)}function _s(e){_o.flags|=4;var t=_o.updateQueue;if(t===null)t=Ro(),_o.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function vs(e){var t=Lo().memoizedState;return _s({ref:t,nextImpl:e}),function(){if(Kl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ys(e,t){return L(4,2,e,t)}function bs(e,t){return L(4,4,e,t)}function xs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ss(e,t,n){n=n==null?null:n.concat([e]),L(4,4,xs.bind(null,t,e),n)}function Cs(){}function ws(e,t){var n=Lo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Oo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ts(e,t){var n=Lo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Oo(t,r[1]))return r[0];if(r=e(),So){Ge(!0);try{e()}finally{Ge(!1)}}return n.memoizedState=[r,t],r}function Es(e,t,n){return n===void 0||go&1073741824&&!(Yl&261930)?e.memoizedState=t:(e.memoizedState=n,e=Tu(),_o.lanes|=e,ru|=e,n)}function Ds(e,t,n,r){return kr(n,t)?n:no.current===null?!(go&42)||go&1073741824&&!(Yl&261930)?(lc=!0,e.memoizedState=n):(e=Tu(),_o.lanes|=e,ru|=e,t):(e=Es(e,n,r),kr(e,t)||(lc=!0),e)}function Os(e,t,n,r,i){var a=se.p;se.p=a!==0&&8>a?a:8;var o=oe.T,s={};oe.T=s,Bs(e,!1,t,n);try{var c=i(),l=oe.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?zs(e,t,ba(c,r),z(e)):zs(e,t,r,z(e))}catch(n){zs(e,t,{then:function(){},status:`rejected`,reason:n},z())}finally{se.p=a,o!==null&&s.types!==null&&(o.types=s.types),oe.T=o}}function ks(){}function As(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=js(e).queue;Os(e,a,t,ce,n===null?ks:function(){return Ms(e),n(r)})}function js(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ho,lastRenderedState:ce},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ho,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ms(e){var t=js(e);t.next===null&&(t=e.alternate.memoizedState),zs(e,t.next.queue,{},z())}function Ns(){return oa(dp)}function Ps(){return Lo().memoizedState}function Fs(){return Lo().memoizedState}function Is(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=z();e=qa(n);var r=Ja(t,e,n);r!==null&&(Eu(r,t,n),Ya(r,t,n)),t={cache:pa()},e.payload=t;return}t=t.return}}function Ls(e,t,n){var r=z();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Vs(e)?Hs(t,n):(n=oi(e,t,n,r),n!==null&&(Eu(n,e,r),Us(n,t,r)))}function Rs(e,t,n){zs(e,t,n,z())}function zs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Vs(e))Hs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,kr(s,o))return ai(e,t,i,0),ql===null&&ii(),!1}catch{}if(n=oi(e,t,i,r),n!==null)return Eu(n,e,r),Us(n,t,r),!0}return!1}function Bs(e,t,n,r){if(r={lane:2,revertLane:Cd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Vs(e)){if(t)throw Error(i(479))}else t=oi(e,n,r,2),t!==null&&Eu(t,e,2)}function Vs(e){var t=e.alternate;return e===_o||t!==null&&t===_o}function Hs(e,t){xo=bo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Us(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,st(e,n)}}var Ws={readContext:oa,use:Bo,useCallback:Do,useContext:Do,useEffect:Do,useImperativeHandle:Do,useLayoutEffect:Do,useInsertionEffect:Do,useMemo:Do,useReducer:Do,useRef:Do,useState:Do,useDebugValue:Do,useDeferredValue:Do,useTransition:Do,useSyncExternalStore:Do,useId:Do,useHostTransitionStatus:Do,useFormState:Do,useActionState:Do,useOptimistic:Do,useMemoCache:Do,useCacheRefresh:Do};Ws.useEffectEvent=Do;var Gs={readContext:oa,use:Bo,useCallback:function(e,t){return Io().memoizedState=[e,t===void 0?null:t],e},useContext:oa,useEffect:hs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ms(4194308,4,xs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ms(4194308,4,e,t)},useInsertionEffect:function(e,t){ms(4,2,e,t)},useMemo:function(e,t){var n=Io();t=t===void 0?null:t;var r=e();if(So){Ge(!0);try{e()}finally{Ge(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Io();if(n!==void 0){var i=n(t);if(So){Ge(!0);try{n(t)}finally{Ge(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ls.bind(null,_o,e),[r.memoizedState,e]},useRef:function(e){var t=Io();return e={current:e},t.memoizedState=e},useState:function(e){e=Qo(e);var t=e.queue,n=Rs.bind(null,_o,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Cs,useDeferredValue:function(e,t){return Es(Io(),e,t)},useTransition:function(){var e=Qo(!1);return e=Os.bind(null,_o,e.queue,!0,!1),Io().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=_o,a=Io();if(zi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),ql===null)throw Error(i(349));Yl&127||qo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,hs(Yo.bind(null,r,o,e),[e]),r.flags|=2048,fs(9,{destroy:void 0},Jo.bind(null,r,o,n,t),null),n},useId:function(){var e=Io(),t=ql.identifierPrefix;if(zi){var n=ji,r=Ai;n=(r&~(1<<32-Ke(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Co++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Eo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ns,useFormState:ss,useActionState:ss,useOptimistic:function(e){var t=Io();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Bs.bind(null,_o,!0,n),n.dispatch=t,[e,t]},useMemoCache:Vo,useCacheRefresh:function(){return Io().memoizedState=Is.bind(null,_o)},useEffectEvent:function(e){var t=Io(),n={impl:e};return t.memoizedState=n,function(){if(Kl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Ks={readContext:oa,use:Bo,useCallback:ws,useContext:oa,useEffect:gs,useImperativeHandle:Ss,useInsertionEffect:ys,useLayoutEffect:bs,useMemo:Ts,useReducer:Uo,useRef:ps,useState:function(){return Uo(Ho)},useDebugValue:Cs,useDeferredValue:function(e,t){return Ds(Lo(),vo.memoizedState,e,t)},useTransition:function(){var e=Uo(Ho)[0],t=Lo().memoizedState;return[typeof e==`boolean`?e:zo(e),t]},useSyncExternalStore:Ko,useId:Ps,useHostTransitionStatus:Ns,useFormState:cs,useActionState:cs,useOptimistic:function(e,t){return $o(Lo(),vo,e,t)},useMemoCache:Vo,useCacheRefresh:Fs};Ks.useEffectEvent=vs;var qs={readContext:oa,use:Bo,useCallback:ws,useContext:oa,useEffect:gs,useImperativeHandle:Ss,useInsertionEffect:ys,useLayoutEffect:bs,useMemo:Ts,useReducer:Go,useRef:ps,useState:function(){return Go(Ho)},useDebugValue:Cs,useDeferredValue:function(e,t){var n=Lo();return vo===null?Es(n,e,t):Ds(n,vo.memoizedState,e,t)},useTransition:function(){var e=Go(Ho)[0],t=Lo().memoizedState;return[typeof e==`boolean`?e:zo(e),t]},useSyncExternalStore:Ko,useId:Ps,useHostTransitionStatus:Ns,useFormState:ds,useActionState:ds,useOptimistic:function(e,t){var n=Lo();return vo===null?(n.baseState=e,[e,n.queue.dispatch]):$o(n,vo,e,t)},useMemoCache:Vo,useCacheRefresh:Fs};qs.useEffectEvent=vs;function Js(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:p({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ys={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=z(),i=qa(r);i.payload=t,n!=null&&(i.callback=n),t=Ja(e,i,r),t!==null&&(Eu(t,e,r),Ya(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=z(),i=qa(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ja(e,i,r),t!==null&&(Eu(t,e,r),Ya(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=z(),r=qa(n);r.tag=2,t!=null&&(r.callback=t),t=Ja(e,r,n),t!==null&&(Eu(t,e,n),Ya(t,e,n))}};function Xs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Ar(n,r)||!Ar(i,a):!0}function Zs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ys.enqueueReplaceState(t,t.state,null)}function Qs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=p({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function $s(e){ei(e)}function ec(e){console.error(e)}function tc(e){ei(e)}function nc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function rc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function ic(e,t,n){return n=qa(n),n.tag=3,n.payload={element:null},n.callback=function(){nc(e,t)},n}function ac(e){return e=qa(e),e.tag=3,e}function oc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){rc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){rc(t,n,r),typeof i!=`function`&&(hu===null?hu=new Set([this]):hu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function sc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ra(t,n,a,!0),n=oo.current,n!==null){switch(n.tag){case 31:case 13:return so===null?Ru():n.alternate===null&&nu===0&&(nu=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ka?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),rd(e,r,a)),!1;case 22:return n.flags|=65536,r===ka?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),rd(e,r,a)),!1}throw Error(i(435,n.tag))}return rd(e,r,a),Ru(),!1}if(zi)return t=oo.current,t===null?(r!==Hi&&(t=Error(i(423),{cause:r}),Yi(Si(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Si(r,n),a=ic(e.stateNode,r,a),Xa(e,a),nu!==4&&(nu=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Hi&&(e=Error(i(422),{cause:r}),Yi(Si(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Si(o,n),cu===null?cu=[o]:cu.push(o),nu!==4&&(nu=2),t===null)return!0;r=Si(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=ic(n.stateNode,r,e),Xa(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(hu===null||!hu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=ac(a),oc(a,e,n,r),Xa(n,a),!1}n=n.return}while(n!==null);return!1}var cc=Error(i(461)),lc=!1;function uc(e,t,n,r){t.child=e===null?Ua(t,null,n,r):Ha(t,e.child,n,r)}function dc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return aa(t),r=ko(e,t,n,o,a,i),s=No(),e!==null&&!lc?(Po(e,t,i),Fc(e,t,i)):(zi&&s&&Pi(t),t.flags|=1,uc(e,t,r,i),t.child)}function fc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!pi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,pc(e,t,a,r,i)):(e=gi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Ic(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Ar:n,n(o,r)&&e.ref===t.ref)return Fc(e,t,i)}return t.flags|=1,e=mi(a,r),e.ref=t.ref,e.return=t,t.child=e}function pc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Ar(a,r)&&e.ref===t.ref)if(lc=!1,t.pendingProps=r=a,Ic(e,i))e.flags&131072&&(lc=!0);else return t.lanes=e.lanes,Fc(e,t,i)}return xc(e,t,n,r,i)}function mc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return gc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&wa(t,a===null?null:a.cachePool),a===null?ao():io(t,a),uo(t);else return r=t.lanes=536870912,gc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&wa(t,null),ao(),fo(t)):(wa(t,a.cachePool),io(t,a),fo(t),t.memoizedState=null);return uc(e,t,i,n),t.child}function hc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function gc(e,t,n,r,i){var a=Ca();return a=a===null?null:{parent:fa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&wa(t,null),ao(),uo(t),e!==null&&ra(e,t,r,!0),t.childLanes=i,null}function _c(e,t){return t=Ac({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function vc(e,t,n){return Ha(t,e.child,null,n),e=_c(t,t.pendingProps),e.flags|=2,po(t),t.memoizedState=null,e}function yc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(zi){if(r.mode===`hidden`)return e=_c(t,r),t.lanes=536870912,hc(null,e);if(lo(t),(e=Ri)?(e=_f(e,Vi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ki===null?null:{id:Ai,overflow:ji},retryLane:536870912,hydrationErrors:null},n=yi(e),n.return=t,t.child=n,Li=t,Ri=null)):e=null,e===null)throw Ui(t);return t.lanes=536870912,null}return _c(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(lo(t),a)if(t.flags&256)t.flags&=-257,t=vc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(lc||ra(e,t,n,!1),a=(n&e.childLanes)!==0,lc||a){if(r=ql,r!==null&&(s=ct(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,si(e,s),Eu(r,e,s),cc;Ru(),t=vc(e,t,n)}else e=o.treeContext,Ri=xf(s.nextSibling),Li=t,zi=!0,Bi=null,Vi=!1,e!==null&&Ii(t,e),t=_c(t,r),t.flags|=4096;return t}return e=mi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function bc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function xc(e,t,n,r,i){return aa(t),n=ko(e,t,n,r,void 0,i),r=No(),e!==null&&!lc?(Po(e,t,i),Fc(e,t,i)):(zi&&r&&Pi(t),t.flags|=1,uc(e,t,n,i),t.child)}function Sc(e,t,n,r,i,a){return aa(t),t.updateQueue=null,n=jo(t,r,n,i),Ao(e),r=No(),e!==null&&!lc?(Po(e,t,a),Fc(e,t,a)):(zi&&r&&Pi(t),t.flags|=1,uc(e,t,n,a),t.child)}function Cc(e,t,n,r,i){if(aa(t),t.stateNode===null){var a=ui,o=n.contextType;typeof o==`object`&&o&&(a=oa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ys,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ga(t),o=n.contextType,a.context=typeof o==`object`&&o?oa(o):ui,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Js(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ys.enqueueReplaceState(a,a.state,null),$a(t,r,a,i),Qa(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Qs(n,s);a.props=c;var l=a.context,u=n.contextType;o=ui,typeof u==`object`&&u&&(o=oa(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Zs(t,a,r,o),Wa=!1;var f=t.memoizedState;a.state=f,$a(t,r,a,i),Qa(),l=t.memoizedState,s||f!==l||Wa?(typeof d==`function`&&(Js(t,n,d,r),l=t.memoizedState),(c=Wa||Xs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ka(e,t),o=t.memoizedProps,u=Qs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ui,typeof l==`object`&&l&&(c=oa(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Zs(t,a,r,c),Wa=!1,f=t.memoizedState,a.state=f,$a(t,r,a,i),Qa();var p=t.memoizedState;o!==d||f!==p||Wa||e!==null&&e.dependencies!==null&&ia(e.dependencies)?(typeof s==`function`&&(Js(t,n,s,r),p=t.memoizedState),(u=Wa||Xs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ia(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,bc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ha(t,e.child,null,i),t.child=Ha(t,null,n,i)):uc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Fc(e,t,i),e}function wc(e,t,n,r){return qi(),t.flags|=256,uc(e,t,n,r),t.child}var Tc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ec(e){return{baseLanes:e,cachePool:Ta()}}function Dc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=ou),e}function Oc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(mo.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(zi){if(a?co(t):fo(t),(e=Ri)?(e=_f(e,Vi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ki===null?null:{id:Ai,overflow:ji},retryLane:536870912,hydrationErrors:null},n=yi(e),n.return=t,t.child=n,Li=t,Ri=null)):e=null,e===null)throw Ui(t);return yf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(fo(t),a=t.mode,c=Ac({mode:`hidden`,children:c},a),r=_i(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Ec(n),r.childLanes=Dc(e,s,n),t.memoizedState=Tc,hc(null,r)):(co(t),kc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(co(t),t.flags&=-257,t=jc(e,t,n)):t.memoizedState===null?(fo(t),c=r.fallback,a=t.mode,r=Ac({mode:`visible`,children:r.children},a),c=_i(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ha(t,e.child,null,n),r=t.child,r.memoizedState=Ec(n),r.childLanes=Dc(e,s,n),t.memoizedState=Tc,t=hc(null,r)):(fo(t),t.child=e.child,t.flags|=128,t=null);else if(co(t),yf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Yi({value:r,source:null,stack:null}),t=jc(e,t,n)}else if(lc||ra(e,t,n,!1),s=(n&e.childLanes)!==0,lc||s){if(s=ql,s!==null&&(r=ct(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,si(e,r),Eu(s,e,r),cc;vf(c)||Ru(),t=jc(e,t,n)}else vf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ri=xf(c.nextSibling),Li=t,zi=!0,Bi=null,Vi=!1,e!==null&&Ii(t,e),t=kc(t,r.children),t.flags|=4096);return t}return a?(fo(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=mi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=_i(c,a,n,null),c.flags|=2):c=mi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,hc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Ec(n):(a=c.cachePool,a===null?a=Ta():(l=fa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=Dc(e,s,n),t.memoizedState=Tc,hc(e.child,r)):(co(t),n=e.child,e=n.sibling,n=mi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function kc(e,t){return t=Ac({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Ac(e,t){return e=fi(22,e,null,t),e.lanes=0,e}function jc(e,t,n){return Ha(t,e.child,null,n),e=kc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Mc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ta(e.return,t,n)}function Nc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Pc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=mo.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,pe(mo,o),uc(e,t,r,n),r=zi?Ei:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Mc(e,n,t);else if(e.tag===19)Mc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ho(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Nc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ho(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Nc(t,!0,n,null,a,r);break;case`together`:Nc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Fc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ru|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ra(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=mi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=mi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ic(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&ia(e))):!0}function Lc(e,t,n){switch(t.tag){case 3:ve(t,t.stateNode.containerInfo),$i(t,fa,e.memoizedState.cache),qi();break;case 27:case 5:be(t);break;case 4:ve(t,t.stateNode.containerInfo);break;case 10:$i(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,lo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(co(t),e=Fc(e,t,n),e===null?null:e.sibling):Oc(e,t,n):(co(t),t.flags|=128,null);co(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(ra(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Pc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),pe(mo,mo.current),r)break;return null;case 22:return t.lanes=0,mc(e,t,n,t.pendingProps);case 24:$i(t,fa,e.memoizedState.cache)}return Fc(e,t,n)}function Rc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)lc=!0;else{if(!Ic(e,n)&&!(t.flags&128))return lc=!1,Lc(e,t,n);lc=!!(e.flags&131072)}else lc=!1,zi&&t.flags&1048576&&Ni(t,Ei,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ma(t.elementType),t.type=e,typeof e==`function`)pi(e)?(r=Qs(e,r),t.tag=1,t=Cc(null,t,e,r,n)):(t.tag=0,t=xc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=dc(null,t,e,r,n);break a}else if(a===D){t.tag=14,t=fc(null,t,e,r,n);break a}}throw t=k(e)||e,Error(i(306,t,``))}}return t;case 0:return xc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Qs(r,t.pendingProps),Cc(e,t,r,a,n);case 3:a:{if(ve(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ka(e,t),$a(t,r,null,n);var s=t.memoizedState;if(r=s.cache,$i(t,fa,r),r!==o.cache&&na(t,[fa],n,!0),Qa(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=wc(e,t,r,n);break a}else if(r!==a){a=Si(Error(i(424)),t),Yi(a),t=wc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ri=xf(e.firstChild),Li=t,zi=!0,Bi=null,Vi=!0,n=Ua(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(qi(),r===a){t=Fc(e,t,n);break a}uc(e,t,r,n)}t=t.child}return t;case 26:return bc(e,t),e===null?(n=Hf(t.type,null,t.pendingProps,null))?t.memoizedState=n:zi||(n=t.type,e=t.pendingProps,r=$d(ge.current).createElement(n),r[mt]=t,r[ht]=e,qd(r,n,e),Et(r),t.stateNode=r):t.memoizedState=Hf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return be(t),e===null&&zi&&(r=t.stateNode=Tf(t.type,t.pendingProps,ge.current),Li=t,Vi=!0,a=Ri,df(t.type)?(Sf=a,Ri=xf(r.firstChild)):Ri=a),uc(e,t,t.pendingProps.children,n),bc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&zi&&((a=r=Ri)&&(r=hf(r,t.type,t.pendingProps,Vi),r===null?a=!1:(t.stateNode=r,Li=t,Ri=xf(r.firstChild),Vi=!1,a=!0)),a||Ui(t)),be(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,nf(a,o)?r=null:s!==null&&nf(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=ko(e,t,Mo,null,null,n),dp._currentValue=a),bc(e,t),uc(e,t,r,n),t.child;case 6:return e===null&&zi&&((e=n=Ri)&&(n=gf(n,t.pendingProps,Vi),n===null?e=!1:(t.stateNode=n,Li=t,Ri=null,e=!0)),e||Ui(t)),null;case 13:return Oc(e,t,n);case 4:return ve(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ha(t,null,r,n):uc(e,t,r,n),t.child;case 11:return dc(e,t,t.type,t.pendingProps,n);case 7:return uc(e,t,t.pendingProps,n),t.child;case 8:return uc(e,t,t.pendingProps.children,n),t.child;case 12:return uc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,$i(t,t.type,r.value),uc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,aa(t),a=oa(a),r=r(a),t.flags|=1,uc(e,t,r,n),t.child;case 14:return fc(e,t,t.type,t.pendingProps,n);case 15:return pc(e,t,t.type,t.pendingProps,n);case 19:return Pc(e,t,n);case 31:return yc(e,t,n);case 22:return mc(e,t,n,t.pendingProps);case 24:return aa(t),r=oa(fa),e===null?(a=Ca(),a===null&&(a=ql,o=pa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ga(t),$i(t,fa,a)):((e.lanes&n)!==0&&(Ka(e,t),$a(t,null,null,n),Qa()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,$i(t,fa,r),r!==a.cache&&na(t,[fa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),$i(t,fa,r))),uc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function zc(e){e.flags|=4}function Bc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Fu())e.flags|=8192;else throw Na=ka,Da}else e.flags&=-16777217}function Vc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!rp(t))if(Fu())e.flags|=8192;else throw Na=ka,Da}function Hc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:nt(),e.lanes|=t,su|=t)}function Uc(e,t){if(!zi)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Wc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gc(e,t,n){var r=t.pendingProps;switch(Fi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wc(t),null;case 1:return Wc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ea(fa),ye(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ki(t)?zc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ji())),Wc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(zc(t),o===null?(Wc(t),Bc(t,a,null,r,n)):(Wc(t),Vc(t,o))):o?o===e.memoizedState?(Wc(t),t.flags&=-16777217):(zc(t),Wc(t),Vc(t,o)):(e=e.memoizedProps,e!==r&&zc(t),Wc(t),Bc(t,a,e,r,n)),null;case 27:if(xe(t),n=ge.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&zc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Wc(t),null}e=me.current,Ki(t)?Wi(t,e):(e=Tf(a,r,n),t.stateNode=e,zc(t))}return Wc(t),null;case 5:if(xe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&zc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Wc(t),null}if(o=me.current,Ki(t))Wi(t,o);else{var s=$d(ge.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[mt]=t,o[ht]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(qd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&zc(t)}}return Wc(t),Bc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&zc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ge.current,Ki(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Li,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[mt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Wd(e.nodeValue,n)),e||Ui(t,!0)}else e=$d(e).createTextNode(r),e[mt]=t,t.stateNode=e}return Wc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ki(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[mt]=t}else qi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Wc(t),e=!1}else n=Ji(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(po(t),t):(po(t),null);if(t.flags&128)throw Error(i(558))}return Wc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ki(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[mt]=t}else qi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Wc(t),a=!1}else a=Ji(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(po(t),t):(po(t),null)}return po(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Hc(t,t.updateQueue),Wc(t),null);case 4:return ye(),e===null&&Pd(t.stateNode.containerInfo),Wc(t),null;case 10:return ea(t.type),Wc(t),null;case 19:if(fe(mo),r=t.memoizedState,r===null)return Wc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Uc(r,!1);else{if(nu!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ho(e),o!==null){for(t.flags|=128,Uc(r,!1),e=o.updateQueue,t.updateQueue=e,Hc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)hi(n,e),n=n.sibling;return pe(mo,mo.current&1|2),zi&&Mi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Pe()>pu&&(t.flags|=128,a=!0,Uc(r,!1),t.lanes=4194304)}else{if(!a)if(e=ho(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Hc(t,e),Uc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!zi)return Wc(t),null}else 2*Pe()-r.renderingStartTime>pu&&n!==536870912&&(t.flags|=128,a=!0,Uc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Wc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Pe(),e.sibling=null,n=mo.current,pe(mo,a?n&1|2:n&1),zi&&Mi(t,r.treeForkCount),e);case 22:case 23:return po(t),I(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Wc(t),t.subtreeFlags&6&&(t.flags|=8192)):Wc(t),n=t.updateQueue,n!==null&&Hc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&fe(Sa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ea(fa),Wc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Kc(e,t){switch(Fi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ea(fa),ye(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xe(t),null;case 31:if(t.memoizedState!==null){if(po(t),t.alternate===null)throw Error(i(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(po(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(mo),null;case 4:return ye(),null;case 10:return ea(t.type),null;case 22:case 23:return po(t),I(),e!==null&&fe(Sa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ea(fa),null;case 25:return null;default:return null}}function qc(e,t){switch(Fi(t),t.tag){case 3:ea(fa),ye();break;case 26:case 27:case 5:xe(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&po(t);break;case 13:po(t);break;case 19:fe(mo);break;case 10:ea(t.type);break;case 22:case 23:po(t),I(),e!==null&&fe(Sa);break;case 24:ea(fa)}}function Jc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){nd(t,t.return,e)}}function Yc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){nd(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){nd(t,t.return,e)}}function Xc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{to(t,n)}catch(t){nd(e,e.return,t)}}}function Zc(e,t,n){n.props=Qs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){nd(e,t,n)}}function Qc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){nd(e,t,n)}}function $c(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){nd(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){nd(e,t,n)}else n.current=null}function el(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){nd(e,e.return,t)}}function tl(e,t,n){try{var r=e.stateNode;Jd(r,e.type,n,t),r[ht]=t}catch(t){nd(e,e.return,t)}}function nl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&df(e.type)||e.tag===4}function rl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||nl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&df(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function il(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=sn));else if(r!==4&&(r===27&&df(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(il(e,t,n),e=e.sibling;e!==null;)il(e,t,n),e=e.sibling}function al(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&df(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(al(e,t,n),e=e.sibling;e!==null;)al(e,t,n),e=e.sibling}function ol(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);qd(t,r,n),t[mt]=e,t[ht]=n}catch(t){nd(e,e.return,t)}}var sl=!1,cl=!1,ll=!1,ul=typeof WeakSet==`function`?WeakSet:Set,dl=null;function fl(e,t){if(e=e.containerInfo,Zd=bp,e=Nr(e),Pr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Qd={focusedElem:e,selectionRange:n},bp=!1,dl=t;dl!==null;)if(t=dl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,dl=e;else for(;dl!==null;){switch(t=dl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Qs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){nd(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)mf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:mf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,dl=e;break}dl=t.return}}function pl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Dl(e,n),r&4&&Jc(5,n);break;case 1:if(Dl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){nd(n,n.return,e)}else{var i=Qs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){nd(n,n.return,e)}}r&64&&Xc(n),r&512&&Qc(n,n.return);break;case 3:if(Dl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{to(e,t)}catch(e){nd(n,n.return,e)}}break;case 27:t===null&&r&4&&ol(n);case 26:case 5:Dl(e,n),t===null&&r&4&&el(n),r&512&&Qc(n,n.return);break;case 12:Dl(e,n);break;case 31:Dl(e,n),r&4&&vl(e,n);break;case 13:Dl(e,n),r&4&&yl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=od.bind(null,n),bf(e,n))));break;case 22:if(r=n.memoizedState!==null||sl,!r){t=t!==null&&t.memoizedState!==null||cl,i=sl;var a=cl;sl=r,(cl=t)&&!a?kl(e,n,(n.subtreeFlags&8772)!=0):Dl(e,n),sl=i,cl=a}break;case 30:break;default:Dl(e,n)}}function R(e){var t=e.alternate;t!==null&&(e.alternate=null,R(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&xt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ml=null,hl=!1;function gl(e,t,n){for(n=n.child;n!==null;)_l(e,t,n),n=n.sibling}function _l(e,t,n){if(We&&typeof We.onCommitFiberUnmount==`function`)try{We.onCommitFiberUnmount(Ue,n)}catch{}switch(n.tag){case 26:cl||$c(n,t),gl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:cl||$c(n,t);var r=ml,i=hl;df(n.type)&&(ml=n.stateNode,hl=!1),gl(e,t,n),Ef(n.stateNode),ml=r,hl=i;break;case 5:cl||$c(n,t);case 6:if(r=ml,i=hl,ml=null,gl(e,t,n),ml=r,hl=i,ml!==null)if(hl)try{(ml.nodeType===9?ml.body:ml.nodeName===`HTML`?ml.ownerDocument.body:ml).removeChild(n.stateNode)}catch(e){nd(n,t,e)}else try{ml.removeChild(n.stateNode)}catch(e){nd(n,t,e)}break;case 18:ml!==null&&(hl?(e=ml,ff(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Kp(e)):ff(ml,n.stateNode));break;case 4:r=ml,i=hl,ml=n.stateNode.containerInfo,hl=!0,gl(e,t,n),ml=r,hl=i;break;case 0:case 11:case 14:case 15:Yc(2,n,t),cl||Yc(4,n,t),gl(e,t,n);break;case 1:cl||($c(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Zc(n,t,r)),gl(e,t,n);break;case 21:gl(e,t,n);break;case 22:cl=(r=cl)||n.memoizedState!==null,gl(e,t,n),cl=r;break;default:gl(e,t,n)}}function vl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Kp(e)}catch(e){nd(t,t.return,e)}}}function yl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Kp(e)}catch(e){nd(t,t.return,e)}}function bl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ul),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ul),t;default:throw Error(i(435,e.tag))}}function xl(e,t){var n=bl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=sd.bind(null,e,t);t.then(r,r)}})}function Sl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(df(c.type)){ml=c.stateNode,hl=!1;break a}break;case 5:ml=c.stateNode,hl=!1;break a;case 3:case 4:ml=c.stateNode.containerInfo,hl=!0;break a}c=c.return}if(ml===null)throw Error(i(160));_l(o,s,a),ml=null,hl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wl(t,e),t=t.sibling}var Cl=null;function wl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Sl(t,e),Tl(e),r&4&&(Yc(3,e,e.return),Jc(3,e),Yc(5,e,e.return));break;case 1:Sl(t,e),Tl(e),r&512&&(cl||n===null||$c(n,n.return)),r&64&&sl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=Cl;if(Sl(t,e),Tl(e),r&512&&(cl||n===null||$c(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[bt]||o[mt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),qd(o,r,n),o[mt]=e,Et(o),r=o;break a;case`link`:var s=ep(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),qd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=ep(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),qd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[mt]=e,Et(o),r=o}e.stateNode=r}else tp(a,e.type,e.stateNode);else e.stateNode=Yf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&tl(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?tp(a,e.type,e.stateNode):Yf(a,r,e.memoizedProps))}break;case 27:Sl(t,e),Tl(e),r&512&&(cl||n===null||$c(n,n.return)),n!==null&&r&4&&tl(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Sl(t,e),Tl(e),r&512&&(cl||n===null||$c(n,n.return)),e.flags&32){a=e.stateNode;try{Qt(a,``)}catch(t){nd(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,tl(e,a,n===null?a:n.memoizedProps)),r&1024&&(ll=!0);break;case 6:if(Sl(t,e),Tl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){nd(e,e.return,t)}}break;case 3:if($f=null,a=Cl,Cl=kf(t.containerInfo),Sl(t,e),Cl=a,Tl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Kp(t.containerInfo)}catch(t){nd(e,e.return,t)}ll&&(ll=!1,El(e));break;case 4:r=Cl,Cl=kf(e.stateNode.containerInfo),Sl(t,e),Tl(e),Cl=r;break;case 12:Sl(t,e),Tl(e);break;case 31:Sl(t,e),Tl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,xl(e,r)));break;case 13:Sl(t,e),Tl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(du=Pe()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,xl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=sl,d=cl;if(sl=u||a,cl=d||l,Sl(t,e),cl=d,sl=u,Tl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||sl||cl||Ol(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){nd(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){nd(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?pf(m,!0):pf(l.stateNode,!1)}catch(e){nd(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,xl(e,n))));break;case 19:Sl(t,e),Tl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,xl(e,r)));break;case 30:break;case 21:break;default:Sl(t,e),Tl(e)}}function Tl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(nl(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;al(e,rl(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Qt(o,``),n.flags&=-33),al(e,rl(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;il(e,rl(e),s);break;default:throw Error(i(161))}}catch(t){nd(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function El(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;El(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Dl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)pl(e,t.alternate,t),t=t.sibling}function Ol(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Yc(4,t,t.return),Ol(t);break;case 1:$c(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Zc(t,t.return,n),Ol(t);break;case 27:Ef(t.stateNode);case 26:case 5:$c(t,t.return),Ol(t);break;case 22:t.memoizedState===null&&Ol(t);break;case 30:Ol(t);break;default:Ol(t)}e=e.sibling}}function kl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:kl(i,a,n),Jc(4,a);break;case 1:if(kl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){nd(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)eo(c[i],s)}catch(e){nd(r,r.return,e)}}n&&o&64&&Xc(a),Qc(a,a.return);break;case 27:ol(a);case 26:case 5:kl(i,a,n),n&&r===null&&o&4&&el(a),Qc(a,a.return);break;case 12:kl(i,a,n);break;case 31:kl(i,a,n),n&&o&4&&vl(i,a);break;case 13:kl(i,a,n),n&&o&4&&yl(i,a);break;case 22:a.memoizedState===null&&kl(i,a,n),Qc(a,a.return);break;case 30:break;default:kl(i,a,n)}t=t.sibling}}function Al(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ma(n))}function jl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ma(e))}function Ml(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Nl(e,t,n,r),t=t.sibling}function Nl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ml(e,t,n,r),i&2048&&Jc(9,t);break;case 1:Ml(e,t,n,r);break;case 3:Ml(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ma(e)));break;case 12:if(i&2048){Ml(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){nd(t,t.return,e)}}else Ml(e,t,n,r);break;case 31:Ml(e,t,n,r);break;case 13:Ml(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Ml(e,t,n,r):(a._visibility|=2,Pl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Ml(e,t,n,r):Fl(e,t),i&2048&&Al(o,t);break;case 24:Ml(e,t,n,r),i&2048&&jl(t.alternate,t);break;default:Ml(e,t,n,r)}}function Pl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Pl(a,o,s,c,i),Jc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Pl(a,o,s,c,i)):u._visibility&2?Pl(a,o,s,c,i):Fl(a,o),i&&l&2048&&Al(o.alternate,o);break;case 24:Pl(a,o,s,c,i),i&&l&2048&&jl(o.alternate,o);break;default:Pl(a,o,s,c,i)}t=t.sibling}}function Fl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Fl(n,r),i&2048&&Al(r.alternate,r);break;case 24:Fl(n,r),i&2048&&jl(r.alternate,r);break;default:Fl(n,r)}t=t.sibling}}var Il=8192;function Ll(e,t,n){if(e.subtreeFlags&Il)for(e=e.child;e!==null;)Rl(e,t,n),e=e.sibling}function Rl(e,t,n){switch(e.tag){case 26:Ll(e,t,n),e.flags&Il&&e.memoizedState!==null&&ip(n,Cl,e.memoizedState,e.memoizedProps);break;case 5:Ll(e,t,n);break;case 3:case 4:var r=Cl;Cl=kf(e.stateNode.containerInfo),Ll(e,t,n),Cl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Il,Il=16777216,Ll(e,t,n),Il=r):Ll(e,t,n));break;default:Ll(e,t,n)}}function zl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Bl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];dl=r,Ul(r,e)}zl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Vl(e),e=e.sibling}function Vl(e){switch(e.tag){case 0:case 11:case 15:Bl(e),e.flags&2048&&Yc(9,e,e.return);break;case 3:Bl(e);break;case 12:Bl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Hl(e)):Bl(e);break;default:Bl(e)}}function Hl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];dl=r,Ul(r,e)}zl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Yc(8,t,t.return),Hl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Hl(t));break;default:Hl(t)}e=e.sibling}}function Ul(e,t){for(;dl!==null;){var n=dl;switch(n.tag){case 0:case 11:case 15:Yc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ma(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,dl=r;else a:for(n=e;dl!==null;){r=dl;var i=r.sibling,a=r.return;if(R(r),r===n){dl=null;break a}if(i!==null){i.return=a,dl=i;break a}dl=a}}}var Wl={getCacheForType:function(e){var t=oa(fa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return oa(fa).controller.signal}},Gl=typeof WeakMap==`function`?WeakMap:Map,Kl=0,ql=null,Jl=null,Yl=0,Xl=0,Zl=null,Ql=!1,$l=!1,eu=!1,tu=0,nu=0,ru=0,iu=0,au=0,ou=0,su=0,cu=null,lu=null,uu=!1,du=0,fu=0,pu=1/0,mu=null,hu=null,gu=0,_u=null,vu=null,yu=0,bu=0,xu=null,Su=null,Cu=0,wu=null;function z(){return Kl&2&&Yl!==0?Yl&-Yl:oe.T===null?dt():Cd()}function Tu(){if(ou===0)if(!(Yl&536870912)||zi){var e=Xe;Xe<<=1,!(Xe&3932160)&&(Xe=262144),ou=e}else ou=536870912;return e=oo.current,e!==null&&(e.flags|=32),ou}function Eu(e,t,n){(e===ql&&(Xl===2||Xl===9)||e.cancelPendingCommit!==null)&&(Nu(e,0),Au(e,Yl,ou,!1)),it(e,n),(!(Kl&2)||e!==ql)&&(e===ql&&(!(Kl&2)&&(iu|=n),nu===4&&Au(e,Yl,ou,!1)),hd(e))}function Du(e,t,n){if(Kl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||et(e,t),a=r?Vu(e,t):zu(e,t,!0),o=r;do{if(a===0){$l&&!r&&Au(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!ku(n)){a=zu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=cu;var l=c.current.memoizedState.isDehydrated;if(l&&(Nu(c,s).flags|=256),s=zu(c,s,!1),s!==2){if(eu&&!l){c.errorRecoveryDisabledLanes|=o,iu|=o,a=4;break a}o=lu,lu=a,o!==null&&(lu===null?lu=o:lu.push.apply(lu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Nu(e,0),Au(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Au(r,t,ou,!Ql);break a;case 2:lu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=du+300-Pe(),10<a)){if(Au(r,t,ou,!Ql),$e(r,0,!0)!==0)break a;yu=t,r.timeoutHandle=of(Ou.bind(null,r,n,lu,mu,uu,t,ou,iu,su,Ql,o,`Throttled`,-0,0),a);break a}Ou(r,n,lu,mu,uu,t,ou,iu,su,Ql,o,null,-0,0)}}break}while(1);hd(e)}function Ou(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:sn},Rl(t,a,d);var m=(a&62914560)===a?du-Pe():(a&4194048)===a?fu-Pe():0;if(m=op(d,m),m!==null){yu=a,e.cancelPendingCommit=m(Ju.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Au(e,a,o,!l);return}}Ju(e,t,a,n,r,i,o,s,c)}function ku(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!kr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Au(e,t,n,r){t&=~au,t&=~iu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ke(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&ot(e,n,t)}function ju(){return Kl&6?!0:(gd(0,!1),!1)}function Mu(){if(Jl!==null){if(Xl===0)var e=Jl.return;else e=Jl,Qi=Zi=null,Fo(e),Ia=null,La=0,e=Jl;for(;e!==null;)qc(e.alternate,e),e=e.return;Jl=null}}function Nu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,sf(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),yu=0,Mu(),ql=e,Jl=n=mi(e.current,null),Yl=t,Xl=0,Zl=null,Ql=!1,$l=et(e,t),eu=!1,su=ou=au=iu=ru=nu=0,lu=cu=null,uu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ke(r),a=1<<i;t|=e[i],r&=~a}return tu=t,ii(),n}function Pu(e,t){_o=null,oe.H=Ws,t===Ea||t===Oa?(t=Pa(),Xl=3):t===Da?(t=Pa(),Xl=4):Xl=t===cc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Zl=t,Jl===null&&(nu=1,nc(e,Si(t,e.current)))}function Fu(){var e=oo.current;return e===null?!0:(Yl&4194048)===Yl?so===null:(Yl&62914560)===Yl||Yl&536870912?e===so:!1}function Iu(){var e=oe.H;return oe.H=Ws,e===null?Ws:e}function Lu(){var e=oe.A;return oe.A=Wl,e}function Ru(){nu=4,Ql||(Yl&4194048)!==Yl&&oo.current!==null||($l=!0),!(ru&134217727)&&!(iu&134217727)||ql===null||Au(ql,Yl,ou,!1)}function zu(e,t,n){var r=Kl;Kl|=2;var i=Iu(),a=Lu();(ql!==e||Yl!==t)&&(mu=null,Nu(e,t)),t=!1;var o=nu;a:do try{if(Xl!==0&&Jl!==null){var s=Jl,c=Zl;switch(Xl){case 8:Mu(),o=6;break a;case 3:case 2:case 9:case 6:oo.current===null&&(t=!0);var l=Xl;if(Xl=0,Zl=null,Gu(e,s,c,l),n&&$l){o=0;break a}break;default:l=Xl,Xl=0,Zl=null,Gu(e,s,c,l)}}Bu(),o=nu;break}catch(t){Pu(e,t)}while(1);return t&&e.shellSuspendCounter++,Qi=Zi=null,Kl=r,oe.H=i,oe.A=a,Jl===null&&(ql=null,Yl=0,ii()),o}function Bu(){for(;Jl!==null;)Uu(Jl)}function Vu(e,t){var n=Kl;Kl|=2;var r=Iu(),a=Lu();ql!==e||Yl!==t?(mu=null,pu=Pe()+500,Nu(e,t)):$l=et(e,t);a:do try{if(Xl!==0&&Jl!==null){t=Jl;var o=Zl;b:switch(Xl){case 1:Xl=0,Zl=null,Gu(e,t,o,1);break;case 2:case 9:if(Aa(o)){Xl=0,Zl=null,Wu(t);break}t=function(){Xl!==2&&Xl!==9||ql!==e||(Xl=7),hd(e)},o.then(t,t);break a;case 3:Xl=7;break a;case 4:Xl=5;break a;case 7:Aa(o)?(Xl=0,Zl=null,Wu(t)):(Xl=0,Zl=null,Gu(e,t,o,7));break;case 5:var s=null;switch(Jl.tag){case 26:s=Jl.memoizedState;case 5:case 27:var c=Jl;if(s?rp(s):c.stateNode.complete){Xl=0,Zl=null;var l=c.sibling;if(l!==null)Jl=l;else{var u=c.return;u===null?Jl=null:(Jl=u,Ku(u))}break b}}Xl=0,Zl=null,Gu(e,t,o,5);break;case 6:Xl=0,Zl=null,Gu(e,t,o,6);break;case 8:Mu(),nu=6;break a;default:throw Error(i(462))}}Hu();break}catch(t){Pu(e,t)}while(1);return Qi=Zi=null,oe.H=r,oe.A=a,Kl=n,Jl===null?(ql=null,Yl=0,ii(),nu):0}function Hu(){for(;Jl!==null&&!Me();)Uu(Jl)}function Uu(e){var t=Rc(e.alternate,e,tu);e.memoizedProps=e.pendingProps,t===null?Ku(e):Jl=t}function Wu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Sc(n,t,t.pendingProps,t.type,void 0,Yl);break;case 11:t=Sc(n,t,t.pendingProps,t.type.render,t.ref,Yl);break;case 5:Fo(t);default:qc(n,t),t=Jl=hi(t,tu),t=Rc(n,t,tu)}e.memoizedProps=e.pendingProps,t===null?Ku(e):Jl=t}function Gu(e,t,n,r){Qi=Zi=null,Fo(t),Ia=null,La=0;var i=t.return;try{if(sc(e,i,t,n,Yl)){nu=1,nc(e,Si(n,e.current)),Jl=null;return}}catch(t){if(i!==null)throw Jl=i,t;nu=1,nc(e,Si(n,e.current)),Jl=null;return}t.flags&32768?(zi||r===1?e=!0:$l||Yl&536870912?e=!1:(Ql=e=!0,(r===2||r===9||r===3||r===6)&&(r=oo.current,r!==null&&r.tag===13&&(r.flags|=16384))),qu(t,e)):Ku(t)}function Ku(e){var t=e;do{if(t.flags&32768){qu(t,Ql);return}e=t.return;var n=Gc(t.alternate,t,tu);if(n!==null){Jl=n;return}if(t=t.sibling,t!==null){Jl=t;return}Jl=t=e}while(t!==null);nu===0&&(nu=5)}function qu(e,t){do{var n=Kc(e.alternate,e);if(n!==null){n.flags&=32767,Jl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Jl=e;return}Jl=e=n}while(e!==null);nu=6,Jl=null}function Ju(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do $u();while(gu!==0);if(Kl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=ri,at(e,n,o,s,c,l),e===ql&&(Jl=ql=null,Yl=0),vu=t,_u=e,yu=n,bu=o,xu=a,Su=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,cd(Re,function(){return ed(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=oe.T,oe.T=null,a=se.p,se.p=2,s=Kl,Kl|=4;try{fl(e,t,n)}finally{Kl=s,se.p=a,oe.T=r}}gu=1,Yu(),Xu(),Zu()}}function Yu(){if(gu===1){gu=0;var e=_u,t=vu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=oe.T,oe.T=null;var r=se.p;se.p=2;var i=Kl;Kl|=4;try{wl(t,e);var a=Qd,o=Nr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Mr(s.ownerDocument.documentElement,s)){if(c!==null&&Pr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=M(s,h),v=M(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}bp=!!Zd,Qd=Zd=null}finally{Kl=i,se.p=r,oe.T=n}}e.current=t,gu=2}}function Xu(){if(gu===2){gu=0;var e=_u,t=vu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=oe.T,oe.T=null;var r=se.p;se.p=2;var i=Kl;Kl|=4;try{pl(e,t.alternate,t)}finally{Kl=i,se.p=r,oe.T=n}}gu=3}}function Zu(){if(gu===4||gu===3){gu=0,Ne();var e=_u,t=vu,n=yu,r=Su;t.subtreeFlags&10256||t.flags&10256?gu=5:(gu=0,vu=_u=null,Qu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(hu=null),ut(n),t=t.stateNode,We&&typeof We.onCommitFiberRoot==`function`)try{We.onCommitFiberRoot(Ue,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=oe.T,i=se.p,se.p=2,oe.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{oe.T=t,se.p=i}}yu&3&&$u(),hd(e),i=e.pendingLanes,n&261930&&i&42?e===wu?Cu++:(Cu=0,wu=e):Cu=0,gd(0,!1)}}function Qu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ma(t)))}function $u(){return Yu(),Xu(),Zu(),ed()}function ed(){if(gu!==5)return!1;var e=_u,t=bu;bu=0;var n=ut(yu),r=oe.T,a=se.p;try{se.p=32>n?32:n,oe.T=null,n=xu,xu=null;var o=_u,s=yu;if(gu=0,vu=_u=null,yu=0,Kl&6)throw Error(i(331));var c=Kl;if(Kl|=4,Vl(o.current),Nl(o,o.current,s,n),Kl=c,gd(0,!1),We&&typeof We.onPostCommitFiberRoot==`function`)try{We.onPostCommitFiberRoot(Ue,o)}catch{}return!0}finally{se.p=a,oe.T=r,Qu(e,t)}}function td(e,t,n){t=Si(n,t),t=ic(e.stateNode,t,2),e=Ja(e,t,2),e!==null&&(it(e,2),hd(e))}function nd(e,t,n){if(e.tag===3)td(e,e,n);else for(;t!==null;){if(t.tag===3){td(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(hu===null||!hu.has(r))){e=Si(n,e),n=ac(2),r=Ja(t,n,2),r!==null&&(oc(n,r,t,e),it(r,2),hd(r));break}}t=t.return}}function rd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Gl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(eu=!0,i.add(n),e=id.bind(null,e,t,n),t.then(e,e))}function id(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ql===e&&(Yl&n)===n&&(nu===4||nu===3&&(Yl&62914560)===Yl&&300>Pe()-du?!(Kl&2)&&Nu(e,0):au|=n,su===Yl&&(su=0)),hd(e)}function ad(e,t){t===0&&(t=nt()),e=si(e,t),e!==null&&(it(e,t),hd(e))}function od(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ad(e,n)}function sd(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),ad(e,n)}function cd(e,t){return Ae(e,t)}var ld=null,ud=null,dd=!1,fd=!1,pd=!1,md=0;function hd(e){e!==ud&&e.next===null&&(ud===null?ld=ud=e:ud=ud.next=e),fd=!0,dd||(dd=!0,Sd())}function gd(e,t){if(!pd&&fd){pd=!0;do for(var n=!1,r=ld;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ke(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,xd(r,a))}else a=Yl,a=$e(r,r===ql?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||et(r,a)||(n=!0,xd(r,a));r=r.next}while(n);pd=!1}}function _d(){vd()}function vd(){fd=dd=!1;var e=0;md!==0&&af()&&(e=md);for(var t=Pe(),n=null,r=ld;r!==null;){var i=r.next,a=yd(r,t);a===0?(r.next=null,n===null?ld=i:n.next=i,i===null&&(ud=n)):(n=r,(e!==0||a&3)&&(fd=!0)),r=i}gu!==0&&gu!==5||gd(e,!1),md!==0&&(md=0)}function yd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ke(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=tt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=ql,n=Yl,n=$e(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Xl===2||Xl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&je(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||et(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&je(r),ut(n)){case 2:case 8:n=Le;break;case 32:n=Re;break;case 268435456:n=Be;break;default:n=Re}return r=bd.bind(null,e),n=Ae(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&je(r),e.callbackPriority=2,e.callbackNode=null,2}function bd(e,t){if(gu!==0&&gu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if($u()&&e.callbackNode!==n)return null;var r=Yl;return r=$e(e,e===ql?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Du(e,r,t),yd(e,Pe()),e.callbackNode!=null&&e.callbackNode===n?bd.bind(null,e):null)}function xd(e,t){if($u())return null;Du(e,t,!0)}function Sd(){lf(function(){Kl&6?Ae(Ie,_d):vd()})}function Cd(){if(md===0){var e=ga;e===0&&(e=Ye,Ye<<=1,!(Ye&261888)&&(Ye=256)),md=e}return md}function wd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:on(``+e)}function Td(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Ed(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=wd((i[ht]||null).action),o=r.submitter;o&&(t=(t=o[ht]||null)?wd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new On(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(md!==0){var e=o?Td(i,o):new FormData(i);As(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?Td(i,o):new FormData(i),As(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Dd=0;Dd<Qr.length;Dd++){var Od=Qr[Dd];$r(Od.toLowerCase(),`on`+(Od[0].toUpperCase()+Od.slice(1)))}$r(Wr,`onAnimationEnd`),$r(Gr,`onAnimationIteration`),$r(Kr,`onAnimationStart`),$r(`dblclick`,`onDoubleClick`),$r(`focusin`,`onFocus`),$r(`focusout`,`onBlur`),$r(qr,`onTransitionRun`),$r(Jr,`onTransitionStart`),$r(Yr,`onTransitionCancel`),$r(Xr,`onTransitionEnd`),At(`onMouseEnter`,[`mouseout`,`mouseover`]),At(`onMouseLeave`,[`mouseout`,`mouseover`]),At(`onPointerEnter`,[`pointerout`,`pointerover`]),At(`onPointerLeave`,[`pointerout`,`pointerover`]),kt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),kt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),kt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),kt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),kt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),kt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var kd=`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(` `),Ad=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(kd));function jd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ei(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ei(e)}i.currentTarget=null,a=c}}}}function Md(e,t){var n=t[_t];n===void 0&&(n=t[_t]=new Set);var r=e+`__bubble`;n.has(r)||(Fd(t,e,2,!1),n.add(r))}function Nd(e,t,n){var r=0;t&&(r|=4),Fd(n,e,r,t)}var B=`_reactListening`+Math.random().toString(36).slice(2);function Pd(e){if(!e[B]){e[B]=!0,Dt.forEach(function(t){t!==`selectionchange`&&(Ad.has(t)||Nd(t,!1,e),Nd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[B]||(t[B]=!0,Nd(`selectionchange`,!1,t))}}function Fd(e,t,n,r){switch(Dp(t)){case 2:var i=xp;break;case 8:i=Sp;break;default:i=Cp}n=i.bind(null,t,n,e),i=void 0,!_n||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Id(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=St(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}mn(function(){var r=a,i=ln(n),s=[];a:{var c=Zr.get(e);if(c!==void 0){var l=On,u=e;switch(e){case`keypress`:if(Cn(n)===0)break a;case`keydown`:case`keyup`:l=Kn;break;case`focusin`:u=`focus`,l=Ln;break;case`focusout`:u=`blur`,l=Ln;break;case`beforeblur`:case`afterblur`:l=Ln;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Fn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=In;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Jn;break;case Wr:case Gr:case Kr:l=Rn;break;case Xr:l=Yn;break;case`scroll`:case`scrollend`:l=An;break;case`wheel`:l=Xn;break;case`copy`:case`cut`:case`paste`:l=zn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=qn;break;case`toggle`:case`beforetoggle`:l=Zn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=hn(m,p),g!=null&&d.push(Ld(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==cn&&(u=n.relatedTarget||n.fromElement)&&(St(u)||u[gt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?St(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Fn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=qn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:wt(l),h=u==null?c:wt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,St(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=zd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Bd(s,c,l,d,!1),u!==null&&f!==null&&Bd(s,f,u,d,!0)}}a:{if(c=r?wt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=_r;else if(dr(c))if(vr)v=Dr;else{v=Tr;var y=wr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&nn(r.elementType)&&(v=_r):v=Er;if(v&&=v(e,r)){fr(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Jt(c,`number`,c.value)}switch(y=r?wt(r):window,e){case`focusin`:(dr(y)||y.contentEditable===`true`)&&(Fr=y,Ir=r,Lr=null);break;case`focusout`:Lr=Ir=Fr=null;break;case`mousedown`:Rr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Rr=!1,zr(s,n,i);break;case`selectionchange`:if(N)break;case`keydown`:case`keyup`:zr(s,n,i)}var b;if($n)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else sr?ar(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(nr&&n.locale!==`ko`&&(sr||x!==`onCompositionStart`?x===`onCompositionEnd`&&sr&&(b=Sn()):(yn=i,bn=`value`in yn?yn.value:yn.textContent,sr=!0)),y=Rd(r,x),0<y.length&&(x=new Bn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=or(n),b!==null&&(x.data=b)))),(b=tr?cr(e,n):lr(e,n))&&(x=Rd(r,`onBeforeInput`),0<x.length&&(y=new Bn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),Ed(s,e,r,n,i)}jd(s,t)})}function Ld(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Rd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=hn(e,n),i!=null&&r.unshift(Ld(e,i,a)),i=hn(e,t),i!=null&&r.push(Ld(e,i,a))),e.tag===3)return r;e=e.return}return[]}function zd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Bd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=hn(n,a),l!=null&&o.unshift(Ld(n,l,c))):i||(l=hn(n,a),l!=null&&o.push(Ld(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Vd=/\r\n?/g,Hd=/\u0000|\uFFFD/g;function Ud(e){return(typeof e==`string`?e:``+e).replace(Vd,`
9
+ `).replace(Hd,``)}function Wd(e,t){return t=Ud(t),Ud(e)===t}function Gd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Qt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Qt(e,``+r);break;case`className`:It(e,`class`,r);break;case`tabIndex`:It(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:It(e,n,r);break;case`style`:tn(e,r,o);break;case`data`:if(t!==`object`){It(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=on(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Gd(e,t,`name`,a.name,a,null),Gd(e,t,`formEncType`,a.formEncType,a,null),Gd(e,t,`formMethod`,a.formMethod,a,null),Gd(e,t,`formTarget`,a.formTarget,a,null)):(Gd(e,t,`encType`,a.encType,a,null),Gd(e,t,`method`,a.method,a,null),Gd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=on(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=sn);break;case`onScroll`:r!=null&&Md(`scroll`,e);break;case`onScrollEnd`:r!=null&&Md(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=on(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Md(`beforetoggle`,e),Md(`toggle`,e),Ft(e,`popover`,r);break;case`xlinkActuate`:Lt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Lt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Lt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Lt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Lt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Lt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Lt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Lt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Lt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Ft(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=rn.get(n)||n,Ft(e,n,r))}}function Kd(e,t,n,r,a,o){switch(n){case`style`:tn(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Qt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Qt(e,``+r);break;case`onScroll`:r!=null&&Md(`scroll`,e);break;case`onScrollEnd`:r!=null&&Md(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=sn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!Ot.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[ht]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Ft(e,n,r)}}}function qd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Md(`error`,e),Md(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Gd(e,t,o,s,n,null)}}a&&Gd(e,t,`srcSet`,n.srcSet,n,null),r&&Gd(e,t,`src`,n.src,n,null);return;case`input`:Md(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Gd(e,t,r,d,n,null)}}qt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Md(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Gd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Yt(e,!!r,n,!0):Yt(e,!!r,t,!1);return;case`textarea`:for(s in Md(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Gd(e,t,s,c,n,null)}Zt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Gd(e,t,l,r,n,null)}return;case`dialog`:Md(`beforetoggle`,e),Md(`toggle`,e),Md(`cancel`,e),Md(`close`,e);break;case`iframe`:case`object`:Md(`load`,e);break;case`video`:case`audio`:for(r=0;r<kd.length;r++)Md(kd[r],e);break;case`image`:Md(`error`,e),Md(`load`,e);break;case`details`:Md(`toggle`,e);break;case`embed`:case`source`:case`link`:Md(`error`,e),Md(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Gd(e,t,u,r,n,null)}return;default:if(nn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Kd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Gd(e,t,c,r,n,null))}function Jd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Gd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Gd(e,t,p,m,r,f)}}Kt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Gd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Gd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Yt(e,!!n,n?[]:``,!1):Yt(e,!!n,t,!0)):Yt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Gd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Gd(e,t,s,a,r,o)}Xt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Gd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Gd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Gd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Gd(e,t,u,p,r,m)}return;default:if(nn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Kd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Kd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Gd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Gd(e,t,f,p,r,m)}function Yd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Xd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Yd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Yd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Zd=null,Qd=null;function $d(e){return e.nodeType===9?e:e.ownerDocument}function ef(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function tf(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function nf(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var rf=null;function af(){var e=window.event;return e&&e.type===`popstate`?e===rf?!1:(rf=e,!0):(rf=null,!1)}var of=typeof setTimeout==`function`?setTimeout:void 0,sf=typeof clearTimeout==`function`?clearTimeout:void 0,cf=typeof Promise==`function`?Promise:void 0,lf=typeof queueMicrotask==`function`?queueMicrotask:cf===void 0?of:function(e){return cf.resolve(null).then(e).catch(uf)};function uf(e){setTimeout(function(){throw e})}function df(e){return e===`head`}function ff(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Kp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Ef(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Ef(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[bt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Ef(e.ownerDocument.body);n=i}while(n);Kp(t)}function pf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function mf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:mf(n),xt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function hf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[bt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=xf(e.nextSibling),e===null)break}return null}function gf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=xf(e.nextSibling),e===null))return null;return e}function _f(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=xf(e.nextSibling),e===null))return null;return e}function vf(e){return e.data===`$?`||e.data===`$~`}function yf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function bf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function xf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var Sf=null;function Cf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return xf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function wf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function Tf(e,t,n){switch(t=$d(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Ef(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);xt(e)}var Df=new Map,Of=new Set;function kf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Af=se.d;se.d={f:jf,r:Mf,D:Ff,C:If,L:Lf,m:Rf,X:Bf,S:zf,M:Vf};function jf(){var e=Af.f(),t=ju();return e||t}function Mf(e){var t=Ct(e);t!==null&&t.tag===5&&t.type===`form`?Ms(t):Af.r(e)}var Nf=typeof document>`u`?null:document;function Pf(e,t,n){var r=Nf;if(r&&typeof t==`string`&&t){var i=Gt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Of.has(i)||(Of.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),qd(t,`link`,e),Et(t),r.head.appendChild(t)))}}function Ff(e){Af.D(e),Pf(`dns-prefetch`,e,null)}function If(e,t){Af.C(e,t),Pf(`preconnect`,e,t)}function Lf(e,t,n){Af.L(e,t,n);var r=Nf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Gt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Gt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Gt(n.imageSizes)+`"]`)):i+=`[href="`+Gt(e)+`"]`;var a=i;switch(t){case`style`:a=Uf(e);break;case`script`:a=qf(e)}Df.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Df.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Wf(a))||t===`script`&&r.querySelector(Jf(a))||(t=r.createElement(`link`),qd(t,`link`,e),Et(t),r.head.appendChild(t)))}}function Rf(e,t){Af.m(e,t);var n=Nf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Gt(r)+`"][href="`+Gt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=qf(e)}if(!Df.has(a)&&(e=p({rel:`modulepreload`,href:e},t),Df.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Jf(a)))return}r=n.createElement(`link`),qd(r,`link`,e),Et(r),n.head.appendChild(r)}}}function zf(e,t,n){Af.S(e,t,n);var r=Nf;if(r&&e){var i=Tt(r).hoistableStyles,a=Uf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Wf(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Df.get(a))&&Zf(e,n);var c=o=r.createElement(`link`);Et(c),qd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Xf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Bf(e,t){Af.X(e,t);var n=Nf;if(n&&e){var r=Tt(n).hoistableScripts,i=qf(e),a=r.get(i);a||(a=n.querySelector(Jf(i)),a||(e=p({src:e,async:!0},t),(t=Df.get(i))&&Qf(e,t),a=n.createElement(`script`),Et(a),qd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Vf(e,t){Af.M(e,t);var n=Nf;if(n&&e){var r=Tt(n).hoistableScripts,i=qf(e),a=r.get(i);a||(a=n.querySelector(Jf(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=Df.get(i))&&Qf(e,t),a=n.createElement(`script`),Et(a),qd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Hf(e,t,n,r){var a=(a=ge.current)?kf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Uf(n.href),n=Tt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Uf(n.href);var o=Tt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Wf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Df.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Df.set(e,n),o||Kf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=qf(n),n=Tt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Uf(e){return`href="`+Gt(e)+`"`}function Wf(e){return`link[rel="stylesheet"][`+e+`]`}function Gf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Kf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),qd(t,`link`,n),Et(t),e.head.appendChild(t))}function qf(e){return`[src="`+Gt(e)+`"]`}function Jf(e){return`script[async]`+e}function Yf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Gt(n.href)+`"]`);if(r)return t.instance=r,Et(r),r;var a=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Et(r),qd(r,`style`,a),Xf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Uf(n.href);var o=e.querySelector(Wf(a));if(o)return t.state.loading|=4,t.instance=o,Et(o),o;r=Gf(n),(a=Df.get(a))&&Zf(r,a),o=(e.ownerDocument||e).createElement(`link`),Et(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),qd(o,`link`,r),t.state.loading|=4,Xf(o,n.precedence,e),t.instance=o;case`script`:return o=qf(n.src),(a=e.querySelector(Jf(o)))?(t.instance=a,Et(a),a):(r=n,(a=Df.get(o))&&(r=p({},n),Qf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Et(a),qd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Xf(r,n.precedence,e));return t.instance}function Xf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Qf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var $f=null;function ep(e,t,n){if($f===null){var r=new Map,i=$f=new Map;i.set(n,r)}else i=$f,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[bt]||a[mt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function tp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function np(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function rp(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function ip(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Uf(r.href),a=t.querySelector(Wf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=sp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Et(a);return}a=t.ownerDocument||t,r=Gf(r),(i=Df.get(i))&&Zf(r,i),a=a.createElement(`link`),Et(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),qd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=sp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var ap=0;function op(e,t){return e.stylesheets&&e.count===0&&lp(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&lp(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&ap===0&&(ap=62500*Xd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&lp(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>ap?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function sp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var cp=null;function lp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,cp=new Map,t.forEach(up,e),cp=null,sp.call(e))}function up(e,t){if(!(t.state.loading&4)){var n=cp.get(e);if(n)var r=n.get(null);else{n=new Map,cp.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=sp.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var dp={$$typeof:C,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function fp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=rt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rt(0),this.hiddenUpdates=rt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function pp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new fp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=fi(3,null,null,t),e.current=a,a.stateNode=e,t=pa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ga(a),e}function mp(e){return e?(e=ui,e):ui}function hp(e,t,n,r,i,a){i=mp(i),r.context===null?r.context=i:r.pendingContext=i,r=qa(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ja(e,r,t),n!==null&&(Eu(n,e,t),Ya(n,e,t))}function gp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function _p(e,t){gp(e,t),(e=e.alternate)&&gp(e,t)}function vp(e){if(e.tag===13||e.tag===31){var t=si(e,67108864);t!==null&&Eu(t,e,67108864),_p(e,67108864)}}function yp(e){if(e.tag===13||e.tag===31){var t=z();t=lt(t);var n=si(e,t);n!==null&&Eu(n,e,t),_p(e,t)}}var bp=!0;function xp(e,t,n,r){var i=oe.T;oe.T=null;var a=se.p;try{se.p=2,Cp(e,t,n,r)}finally{se.p=a,oe.T=i}}function Sp(e,t,n,r){var i=oe.T;oe.T=null;var a=se.p;try{se.p=8,Cp(e,t,n,r)}finally{se.p=a,oe.T=i}}function Cp(e,t,n,r){if(bp){var i=wp(r);if(i===null)Id(e,t,r,Tp,n),Ip(e,r);else if(Rp(i,e,t,n,r))r.stopPropagation();else if(Ip(e,r),t&4&&-1<Fp.indexOf(e)){for(;i!==null;){var a=Ct(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Qe(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ke(o);s.entanglements[1]|=c,o&=~c}hd(a),!(Kl&6)&&(pu=Pe()+500,gd(0,!1))}}break;case 31:case 13:s=si(a,2),s!==null&&Eu(s,a,2),ju(),_p(a,2)}if(a=wp(r),a===null&&Id(e,t,r,Tp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Id(e,t,r,null,n)}}function wp(e){return e=ln(e),Ep(e)}var Tp=null;function Ep(e){if(Tp=null,e=St(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Tp=e,null}function Dp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Fe()){case Ie:return 2;case Le:return 8;case Re:case ze:return 32;case Be:return 268435456;default:return 32}default:return 32}}var Op=!1,kp=null,Ap=null,jp=null,Mp=new Map,Np=new Map,Pp=[],Fp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Ip(e,t){switch(e){case`focusin`:case`focusout`:kp=null;break;case`dragenter`:case`dragleave`:Ap=null;break;case`mouseover`:case`mouseout`:jp=null;break;case`pointerover`:case`pointerout`:Mp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Np.delete(t.pointerId)}}function Lp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Ct(t),t!==null&&vp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Rp(e,t,n,r,i){switch(t){case`focusin`:return kp=Lp(kp,e,t,n,r,i),!0;case`dragenter`:return Ap=Lp(Ap,e,t,n,r,i),!0;case`mouseover`:return jp=Lp(jp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Mp.set(a,Lp(Mp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Np.set(a,Lp(Np.get(a)||null,e,t,n,r,i)),!0}return!1}function zp(e){var t=St(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,ft(e.priority,function(){yp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,ft(e.priority,function(){yp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Bp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);cn=r,n.target.dispatchEvent(r),cn=null}else return t=Ct(n),t!==null&&vp(t),e.blockedOn=n,!1;t.shift()}return!0}function Vp(e,t,n){Bp(e)&&n.delete(t)}function Hp(){Op=!1,kp!==null&&Bp(kp)&&(kp=null),Ap!==null&&Bp(Ap)&&(Ap=null),jp!==null&&Bp(jp)&&(jp=null),Mp.forEach(Vp),Np.forEach(Vp)}function Up(e,n){e.blockedOn===n&&(e.blockedOn=null,Op||(Op=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Hp)))}var Wp=null;function Gp(e){Wp!==e&&(Wp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Wp===e&&(Wp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Ep(r||n)===null)continue;break}var a=Ct(n);a!==null&&(e.splice(t,3),t-=3,As(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Kp(e){function t(t){return Up(t,e)}kp!==null&&Up(kp,e),Ap!==null&&Up(Ap,e),jp!==null&&Up(jp,e),Mp.forEach(t),Np.forEach(t);for(var n=0;n<Pp.length;n++){var r=Pp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Pp.length&&(n=Pp[0],n.blockedOn===null);)zp(n),n.blockedOn===null&&Pp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[ht]||null;if(typeof a==`function`)o||Gp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[ht]||null)s=o.formAction;else if(Ep(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Gp(n)}}}function qp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Jp(e){this._internalRoot=e}Yp.prototype.render=Jp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;hp(n,z(),e,t,null,null)},Yp.prototype.unmount=Jp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hp(e.current,2,null,e,null,null),ju(),t[gt]=null}};function Yp(e){this._internalRoot=e}Yp.prototype.unstable_scheduleHydration=function(e){if(e){var t=dt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Pp.length&&t!==0&&t<Pp[n].priority;n++);Pp.splice(n,0,e),n===0&&zp(e)}};var Xp=n.version;if(Xp!==`19.2.6`)throw Error(i(527,Xp,`19.2.6`));se.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Zp={bundleType:0,version:`19.2.6`,rendererPackageName:`react-dom`,currentDispatcherRef:oe,reconcilerVersion:`19.2.6`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Qp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qp.isDisabled&&Qp.supportsFiber)try{Ue=Qp.inject(Zp),We=Qp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=$s,s=ec,c=tc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=pp(e,1,!1,null,null,n,r,null,o,s,c,qp),e[gt]=t.current,Pd(e),new Jp(t)}})),v=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=_()})),y=[`Top`,`Right`,`Bottom`,`Left`];function b(e,t,...n){let[r,i=r,a=r,o=i]=n,s=[r,i,a,o],c={};for(let n=0;n<s.length;n+=1)if(s[n]||s[n]===0){let r=e+y[n]+t;c[r]=s[n]}return c}function x(...e){return b(`border`,`Width`,...e)}function S(...e){return b(`border`,`Style`,...e)}function C(...e){return b(`border`,`Color`,...e)}var w=[`none`,`hidden`,`dotted`,`dashed`,`solid`,`double`,`groove`,`ridge`,`inset`,`outset`];function T(e){return w.includes(e)}function E(...e){return T(e[0])?{...S(e[0]),...e[1]&&x(e[1]),...e[2]&&C(e[2])}:{...x(e[0]),...e[1]&&S(e[1]),...e[2]&&C(e[2])}}function D(...e){return T(e[0])?{borderLeftStyle:e[0],...e[1]&&{borderLeftWidth:e[1]},...e[2]&&{borderLeftColor:e[2]}}:{borderLeftWidth:e[0],...e[1]&&{borderLeftStyle:e[1]},...e[2]&&{borderLeftColor:e[2]}}}function O(...e){return T(e[0])?{borderBottomStyle:e[0],...e[1]&&{borderBottomWidth:e[1]},...e[2]&&{borderBottomColor:e[2]}}:{borderBottomWidth:e[0],...e[1]&&{borderBottomStyle:e[1]},...e[2]&&{borderBottomColor:e[2]}}}function ee(...e){return T(e[0])?{borderRightStyle:e[0],...e[1]&&{borderRightWidth:e[1]},...e[2]&&{borderRightColor:e[2]}}:{borderRightWidth:e[0],...e[1]&&{borderRightStyle:e[1]},...e[2]&&{borderRightColor:e[2]}}}function te(...e){return T(e[0])?{borderTopStyle:e[0],...e[1]&&{borderTopWidth:e[1]},...e[2]&&{borderTopColor:e[2]}}:{borderTopWidth:e[0],...e[1]&&{borderTopStyle:e[1]},...e[2]&&{borderTopColor:e[2]}}}function ne(e,t=e,n=e,r=t){return{borderBottomRightRadius:n,borderBottomLeftRadius:r,borderTopRightRadius:t,borderTopLeftRadius:e}}var re=e=>typeof e==`string`&&/(\d+(\w+|%))/.test(e),ie=e=>typeof e==`number`&&!Number.isNaN(e),k=e=>e===`initial`,ae=e=>e===`auto`,oe=e=>e===`none`,se=[`content`,`fit-content`,`max-content`,`min-content`],ce=e=>se.some(t=>e===t)||re(e);function le(...e){let t=e.length===1,n=e.length===2,r=e.length===3;if(t){let[t]=e;if(k(t))return{flexGrow:0,flexShrink:1,flexBasis:`auto`};if(ae(t))return{flexGrow:1,flexShrink:1,flexBasis:`auto`};if(oe(t))return{flexGrow:0,flexShrink:0,flexBasis:`auto`};if(ie(t))return{flexGrow:t,flexShrink:1,flexBasis:0};if(ce(t))return{flexGrow:1,flexShrink:1,flexBasis:t}}if(n){let[t,n]=e;if(ie(n))return{flexGrow:t,flexShrink:n,flexBasis:0};if(ce(n))return{flexGrow:t,flexShrink:1,flexBasis:n}}if(r){let[t,n,r]=e;if(ie(t)&&ie(n)&&(ae(r)||ce(r)))return{flexGrow:t,flexShrink:n,flexBasis:r}}return{}}function ue(e,t=e){return{columnGap:e,rowGap:t}}var de=/var\(.*\)/gi;function fe(e){return e===void 0||typeof e==`number`||typeof e==`string`&&!de.test(e)}var pe=/^[a-zA-Z0-9\-_\\#;]+$/,me=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|^\d.*/;function he(e){return e!==void 0&&typeof e==`string`&&pe.test(e)&&!me.test(e)}function ge(...e){if(e.some(e=>!fe(e)))return{};let t=e[0]===void 0?`auto`:e[0],n=e[1]===void 0?he(t)?t:`auto`:e[1];return{gridRowStart:t,gridColumnStart:n,gridRowEnd:e[2]===void 0?he(t)?t:`auto`:e[2],gridColumnEnd:e[3]===void 0?he(n)?n:`auto`:e[3]}}function _e(...e){return b(`margin`,``,...e)}function ve(e,t=e){return{marginBlockStart:e,marginBlockEnd:t}}function ye(e,t=e){return{marginInlineStart:e,marginInlineEnd:t}}function be(...e){return b(`padding`,``,...e)}function xe(e,t=e){return{paddingBlockStart:e,paddingBlockEnd:t}}function Se(e,t=e){return{paddingInlineStart:e,paddingInlineEnd:t}}function Ce(e,t=e){return{overflowX:e,overflowY:t}}function we(...e){let[t,n=t,r=t,i=n]=e;return{top:t,right:n,bottom:r,left:i}}function Te(e,t,n){return{outlineWidth:e,...t&&{outlineStyle:t},...n&&{outlineColor:n}}}function Ee(...e){return Oe(e)?{transitionDelay:e[0],transitionDuration:e[0],transitionProperty:e[0],transitionTimingFunction:e[0]}:ke(e).reduce((e,[t,n=`0s`,r=`0s`,i=`ease`],a)=>(a===0?(e.transitionProperty=t,e.transitionDuration=n,e.transitionDelay=r,e.transitionTimingFunction=i):(e.transitionProperty+=`, ${t}`,e.transitionDuration+=`, ${n}`,e.transitionDelay+=`, ${r}`,e.transitionTimingFunction+=`, ${i}`),e),{})}var De=[`-moz-initial`,`inherit`,`initial`,`revert`,`unset`];function Oe(e){return e.length===1&&De.includes(e[0])}function ke(e){return e.length===1&&Array.isArray(e[0])?e[0]:[e]}function Ae(e,...t){if(t.length===0)return Me(e)?{textDecorationStyle:e}:{textDecorationLine:e};let[n,r,i]=t;return{textDecorationLine:e,...n&&{textDecorationStyle:n},...r&&{textDecorationColor:r},...i&&{textDecorationThickness:i}}}var je=[`dashed`,`dotted`,`double`,`solid`,`wavy`];function Me(e){return je.includes(e)}var Ne=typeof window>`u`?global:window,Pe=`@griffel/`;function Fe(e,t){return Ne[Symbol.for(Pe+e)]||(Ne[Symbol.for(Pe+e)]=t),Ne[Symbol.for(Pe+e)]}var Ie=Fe(`DEFINITION_LOOKUP_TABLE`,{}),Le=`data-make-styles-bucket`,Re=`data-priority`,ze={all:1,borderColor:1,borderStyle:1,borderWidth:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1},Be=`DO_NOT_USE_DIRECTLY: @griffel/reset-value`;function Ve(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function He(e){let t=e.length;if(t===7)return e;for(let n=t;n<7;n++)e+=`0`;return e}function Ue(e,t,n=[]){return`___`+He(Ve(e+t))}function We(e,t){let n=``,r=``;for(let i in e){let a=e[i];if(a===0){r+=i+` `;continue}let o=Array.isArray(a),s=t===`rtl`?(o?a[1]:a)+` `:(o?a[0]:a)+` `;n+=s,r+=s}return[n.slice(0,-1),r.slice(0,-1)]}function Ge(e,t){let n={};for(let r in e){let[i,a]=We(e[r],t);if(a===``){n[r]=``;continue}let o=Ue(a,t),s=o+(i===``?``:` `+i);Ie[o]=[e[r],t],n[r]=s}return n}var Ke={};function A(){let e=null,t=``,n=``,r=Array(arguments.length);for(let e=0;e<arguments.length;e++){let i=arguments[e];if(typeof i==`string`&&i!==``){let a=i.indexOf(`___`);if(a===-1)t+=i+` `;else{let o=i.substr(a,10);a>0&&(t+=i.slice(0,a)),n+=o,r[e]=o}}}if(n===``)return t.slice(0,-1);let i=Ke[n];if(i!==void 0)return t+i;let a=[];for(let t=0;t<arguments.length;t++){let n=r[t];if(n){let t=Ie[n];t&&(a.push(t[0]),e=t[1])}}let o=Object.assign.apply(Object,[{}].concat(a)),[s,c]=We(o,e),l=Ue(c,e,r),u=l+` `+s;return Ke[n]=u,Ie[l]=[o,e],t+u}function qe(e){return Array.isArray(e)?e:[e]}function Je(e,t,n,r){let i=[];if(r[Le]=t,r[Re]=String(n),e)for(let t in r)e.setAttribute(t,r[t]);function a(t){return e?.sheet?e.sheet.insertRule(t,e.sheet.cssRules.length):i.push(t)}return{elementAttributes:r,insertRule:a,element:e,bucketName:t,cssRules(){return e?.sheet?Array.from(e.sheet.cssRules).map(e=>e.cssText):i}}}var Ye=[`r`,`d`,`l`,`v`,`w`,`f`,`i`,`h`,`a`,`s`,`k`,`t`,`m`,`c`].reduce((e,t,n)=>(e[t]=n,e),{});function Xe(e,t,n){return(e===`m`?e+t:e)+n}function Ze(e,t,n,r,i={}){let a=e===`m`,o=i.m??`0`,s=i.p??0,c=Xe(e,o,s);if(!r.stylesheets[c]){let l=t&&t.createElement(`style`),u=Je(l,e,s,{...r.styleElementAttributes,...a&&{media:o}});r.stylesheets[c]=u,t?.head&&l&&t.head.insertBefore(l,$e(t,n,e,r,i))}return r.stylesheets[c]}function Qe(e,t,n){return t+(n.m??``)===e.getAttribute(Le)+(e.media??``)}function $e(e,t,n,r,i={}){let a=Ye[n],o=i.m??``,s=i.p??0,c=e=>a-Ye[e.getAttribute(Le)],l=e.head.querySelectorAll(`[${Le}]`);if(n===`m`){let t=e.head.querySelectorAll(`[${Le}="${n}"]`);t.length&&(l=t,c=e=>r.compareMediaQueries(o,e.media))}let u=e=>Qe(e,n,i)?s-Number(e.getAttribute(`data-priority`)):c(e),d=l.length,f=d-1;for(;f>=0;){let e=l.item(f);if(u(e)>0)return e.nextSibling;f--}return d>0?l.item(0):t?t.nextSibling:null}`${[`-moz-placeholder`,`-moz-focus-inner`,`-moz-focusring`,`-ms-input-placeholder`,`-moz-read-write`,`-moz-read-only`].join(`|`)}`;function et(e,t){try{e.insertRule(t)}catch{}}var tt=0,nt=(e,t)=>e<t?-1:+(e>t);function rt(e=typeof document>`u`?void 0:document,t={}){let{classNameHashSalt:n,unstable_filterCSSRule:r,insertionPoint:i,styleElementAttributes:a,compareMediaQueries:o=nt}=t,s={classNameHashSalt:n,insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(a),compareMediaQueries:o,id:`d${tt++}`,insertCSSRules(t){for(let n in t){let a=t[n];for(let t=0,o=a.length;t<o;t++){let[o,c]=qe(a[t]),l=Ze(n,e,i||null,s,c);s.insertionCache[o]||(s.insertionCache[o]=n,r?r(o)&&et(l,o):et(l,o))}}}};return s}var it=()=>{let e={};return function(t,n){e[t.id]===void 0&&(t.insertCSSRules(n),e[t.id]=!0)}};function at(e){return e.reduce(function(e,t){var n=t[0],r=t[1];return e[n]=r,e[r]=n,e},{})}function ot(e){return typeof e==`boolean`}function st(e){return typeof e==`function`}function ct(e){return typeof e==`number`}function lt(e){return e==null}function ut(e){return e&&typeof e==`object`}function dt(e){return typeof e==`string`}function ft(e,t){return e.indexOf(t)!==-1}function pt(e){return parseFloat(e)===0?e:e[0]===`-`?e.slice(1):`-`+e}function mt(e,t,n,r){return t+pt(n)+r}function ht(e){var t=e.indexOf(`.`);if(t===-1)e=100-parseFloat(e)+`%`;else{var n=e.length-t-2;e=100-parseFloat(e),e=e.toFixed(n)+`%`}return e}function gt(e){return e.replace(/ +/g,` `).split(` `).map(function(e){return e.trim()}).filter(Boolean).reduce(function(e,t){var n=e.list,r=e.state,i=(t.match(/\(/g)||[]).length,a=(t.match(/\)/g)||[]).length;return r.parensDepth>0?n[n.length-1]=n[n.length-1]+` `+t:n.push(t),r.parensDepth+=i-a,{list:n,state:r}},{list:[],state:{parensDepth:0}}).list}function _t(e){var t=gt(e);if(t.length<=3||t.length>4)return e;var n=t[0],r=t[1],i=t[2];return[n,t[3],i,r].join(` `)}function vt(e){return!ot(e)&&!lt(e)}function yt(e){for(var t=[],n=0,r=0,i=!1;r<e.length;)!i&&e[r]===`,`?(t.push(e.substring(n,r).trim()),r++,n=r):e[r]===`(`?(i=!0,r++):(e[r]===`)`&&(i=!1),r++);return n!=r&&t.push(e.substring(n,r+1)),t}var j={padding:function(e){var t=e.value;return ct(t)?t:_t(t)},textShadow:function(e){var t=e.value;return yt(t).map(function(e){return e.replace(/(^|\s)(-*)([.|\d]+)/,function(e,t,n,r){if(r===`0`)return e;var i=n===``?`-`:``;return``+t+i+r})}).join(`,`)},borderColor:function(e){var t=e.value;return _t(t)},borderRadius:function(e){var t=e.value;if(ct(t))return t;if(ft(t,`/`)){var n=t.split(`/`),r=n[0],i=n[1],a=j.borderRadius({value:r.trim()}),o=j.borderRadius({value:i.trim()});return a+` / `+o}var s=gt(t);switch(s.length){case 2:return s.reverse().join(` `);case 4:var c=s[0],l=s[1],u=s[2];return[l,c,s[3],u].join(` `);default:return t}},background:function(e){var t=e.value,n=e.valuesToConvert,r=e.isRtl,i=e.bgImgDirectionRegex,a=e.bgPosDirectionRegex;if(ct(t))return t;var o=t.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,``).trim();return t=t.replace(o,j.backgroundPosition({value:o,valuesToConvert:n,isRtl:r,bgPosDirectionRegex:a})),j.backgroundImage({value:t,valuesToConvert:n,bgImgDirectionRegex:i})},backgroundImage:function(e){var t=e.value,n=e.valuesToConvert,r=e.bgImgDirectionRegex;return!ft(t,`url(`)&&!ft(t,`linear-gradient(`)?t:t.replace(r,function(e,t,r){return e.replace(r,n[r])})},backgroundPosition:function(e){var t=e.value,n=e.valuesToConvert,r=e.isRtl,i=e.bgPosDirectionRegex;return t.replace(r?/^((-|\d|\.)+%)/:null,function(e,t){return ht(t)}).replace(i,function(e){return n[e]})},backgroundPositionX:function(e){var t=e.value,n=e.valuesToConvert,r=e.isRtl,i=e.bgPosDirectionRegex;return ct(t)?t:j.backgroundPosition({value:t,valuesToConvert:n,isRtl:r,bgPosDirectionRegex:i})},transition:function(e){var t=e.value,n=e.propertiesToConvert;return t.split(/,\s*/g).map(function(e){var t=e.split(` `);return t[0]=n[t[0]]||t[0],t.join(` `)}).join(`, `)},transitionProperty:function(e){var t=e.value,n=e.propertiesToConvert;return t.split(/,\s*/g).map(function(e){return n[e]||e}).join(`, `)},transform:function(e){var t=e.value,n=`[^\\u0020-\\u007e]`,r=`(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])`,i=`((?:-?`+(`(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|`+(`-?`+(`(?:[_a-z]|`+n+`|`+r+`)`)+(`(?:[_a-z0-9-]|`+n+`|`+r+`)`)+`*`)+`)?`)+`)|(?:inherit|auto))`,a=RegExp(`(translateX\\s*\\(\\s*)`+i+`(\\s*\\))`,`gi`),o=RegExp(`(translate\\s*\\(\\s*)`+i+`((?:\\s*,\\s*`+i+`){0,1}\\s*\\))`,`gi`),s=RegExp(`(translate3d\\s*\\(\\s*)`+i+`((?:\\s*,\\s*`+i+`){0,2}\\s*\\))`,`gi`),c=RegExp(`(rotate[ZY]?\\s*\\(\\s*)`+i+`(\\s*\\))`,`gi`);return t.replace(a,mt).replace(o,mt).replace(s,mt).replace(c,mt)}};j.objectPosition=j.backgroundPosition,j.margin=j.padding,j.borderWidth=j.padding,j.boxShadow=j.textShadow,j.webkitBoxShadow=j.boxShadow,j.mozBoxShadow=j.boxShadow,j.WebkitBoxShadow=j.boxShadow,j.MozBoxShadow=j.boxShadow,j.borderStyle=j.borderColor,j.webkitTransform=j.transform,j.mozTransform=j.transform,j.WebkitTransform=j.transform,j.MozTransform=j.transform,j.transformOrigin=j.backgroundPosition,j.webkitTransformOrigin=j.transformOrigin,j.mozTransformOrigin=j.transformOrigin,j.WebkitTransformOrigin=j.transformOrigin,j.MozTransformOrigin=j.transformOrigin,j.webkitTransition=j.transition,j.mozTransition=j.transition,j.WebkitTransition=j.transition,j.MozTransition=j.transition,j.webkitTransitionProperty=j.transitionProperty,j.mozTransitionProperty=j.transitionProperty,j.WebkitTransitionProperty=j.transitionProperty,j.MozTransitionProperty=j.transitionProperty,j[`text-shadow`]=j.textShadow,j[`border-color`]=j.borderColor,j[`border-radius`]=j.borderRadius,j[`background-image`]=j.backgroundImage,j[`background-position`]=j.backgroundPosition,j[`background-position-x`]=j.backgroundPositionX,j[`object-position`]=j.objectPosition,j[`border-width`]=j.padding,j[`box-shadow`]=j.textShadow,j[`-webkit-box-shadow`]=j.textShadow,j[`-moz-box-shadow`]=j.textShadow,j[`border-style`]=j.borderColor,j[`-webkit-transform`]=j.transform,j[`-moz-transform`]=j.transform,j[`transform-origin`]=j.transformOrigin,j[`-webkit-transform-origin`]=j.transformOrigin,j[`-moz-transform-origin`]=j.transformOrigin,j[`-webkit-transition`]=j.transition,j[`-moz-transition`]=j.transition,j[`transition-property`]=j.transitionProperty,j[`-webkit-transition-property`]=j.transitionProperty,j[`-moz-transition-property`]=j.transitionProperty;var bt=at([[`paddingLeft`,`paddingRight`],[`marginLeft`,`marginRight`],[`left`,`right`],[`borderLeft`,`borderRight`],[`borderLeftColor`,`borderRightColor`],[`borderLeftStyle`,`borderRightStyle`],[`borderLeftWidth`,`borderRightWidth`],[`borderTopLeftRadius`,`borderTopRightRadius`],[`borderBottomLeftRadius`,`borderBottomRightRadius`],[`padding-left`,`padding-right`],[`margin-left`,`margin-right`],[`border-left`,`border-right`],[`border-left-color`,`border-right-color`],[`border-left-style`,`border-right-style`],[`border-left-width`,`border-right-width`],[`border-top-left-radius`,`border-top-right-radius`],[`border-bottom-left-radius`,`border-bottom-right-radius`]]),xt=[`content`],St=at([[`ltr`,`rtl`],[`left`,`right`],[`w-resize`,`e-resize`],[`sw-resize`,`se-resize`],[`nw-resize`,`ne-resize`]]),Ct=RegExp(`(^|\\W|_)((ltr)|(rtl)|(left)|(right))(\\W|_|$)`,`g`),wt=RegExp(`(left)|(right)`);function Tt(e){return Object.keys(e).reduce(function(t,n){var r=e[n];if(dt(r)&&(r=r.trim()),ft(xt,n))return t[n]=r,t;var i=Et(n,r),a=i.key;return t[a]=i.value,t},Array.isArray(e)?[]:{})}function Et(e,t){var n=/\/\*\s?@noflip\s?\*\//.test(t),r=n?e:Dt(e);return{key:r,value:n?t:Ot(r,t)}}function Dt(e){return bt[e]||e}function Ot(e,t){if(!vt(t))return t;if(ut(t))return Tt(t);var n=ct(t),r=st(t),i=n||r?t:t.replace(/ !important.*?$/,``),a=!n&&i.length!==t.length,o=j[e],s=o?o({value:i,valuesToConvert:St,propertiesToConvert:bt,isRtl:!0,bgImgDirectionRegex:Ct,bgPosDirectionRegex:wt}):St[i]||i;return a?s+` !important`:s}var kt=`-moz-`,At=`-webkit-`,jt=`comm`,Mt=`rule`,Nt=`decl`,Pt=`@media`,Ft=`@import`,It=`@supports`,Lt=`@namespace`,Rt=`@keyframes`,zt=`@layer`,Bt=Math.abs,Vt=String.fromCharCode,Ht=Object.assign;function Ut(e,t){return Jt(e,0)^45?(((t<<2^Jt(e,0))<<2^Jt(e,1))<<2^Jt(e,2))<<2^Jt(e,3):0}function Wt(e){return e.trim()}function Gt(e,t){return(e=t.exec(e))?e[0]:e}function Kt(e,t,n){return e.replace(t,n)}function qt(e,t){return e.indexOf(t)}function Jt(e,t){return e.charCodeAt(t)|0}function Yt(e,t,n){return e.slice(t,n)}function Xt(e){return e.length}function Zt(e){return e.length}function Qt(e,t){return t.push(e),e}function $t(e,t){return e.map(t).join(``)}var en=1,tn=1,nn=0,rn=0,an=0,on=``;function sn(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:en,column:tn,length:o,return:``,siblings:s}}function cn(e,t){return Ht(sn(``,null,null,``,null,null,0,e.siblings),e,{length:-e.length},t)}function ln(){return an}function un(){return an=rn>0?Jt(on,--rn):0,tn--,an===10&&(tn=1,en--),an}function dn(){return an=rn<nn?Jt(on,rn++):0,tn++,an===10&&(tn=1,en++),an}function fn(){return Jt(on,rn)}function pn(){return rn}function mn(e,t){return Yt(on,e,t)}function hn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function gn(e){return en=tn=1,nn=Xt(on=e),rn=0,[]}function _n(e){return on=``,e}function vn(e){return Wt(mn(rn-1,Cn(e===91?e+2:e===40?e+1:e)))}function yn(e){return _n(xn(gn(e)))}function bn(e){for(;(an=fn())&&an<33;)dn();return hn(e)>2||hn(an)>3?``:` `}function xn(e){for(;dn();)switch(hn(an)){case 0:Qt(Tn(rn-1),e);break;case 2:Qt(vn(an),e);break;default:Qt(Vt(an),e)}return e}function Sn(e,t){for(;--t&&dn()&&!(an<48||an>102||an>57&&an<65||an>70&&an<97););return mn(e,pn()+(t<6&&fn()==32&&dn()==32))}function Cn(e){for(;dn();)switch(an){case e:return rn;case 34:case 39:e!==34&&e!==39&&Cn(an);break;case 40:e===41&&Cn(e);break;case 92:dn();break}return rn}function wn(e,t){for(;dn()&&e+an!==57&&!(e+an===84&&fn()===47););return`/*`+mn(t,rn-1)+`*`+Vt(e===47?e:dn())}function Tn(e){for(;!hn(fn());)dn();return mn(e,rn)}function En(e){return _n(Dn(``,null,null,null,[``],e=gn(e),0,[0],e))}function Dn(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=0,b=``,x=i,S=a,C=r,w=b;g;)switch(m=y,y=dn()){case 40:m!=108&&Jt(w,d-1)==58?(v++,w+=`(`):w+=vn(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=vn(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=Vt(y);break}w+=bn(m);break;case 92:w+=Sn(pn()-1,7);continue;case 47:switch(fn()){case 42:case 47:Qt(kn(wn(dn(),pn()),t,n,c),c),(hn(m||1)==5||hn(fn()||1)==5)&&Xt(w)&&Yt(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=Xt(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=Vt(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=Kt(w,/\f/g,``)),p>0&&(Xt(w)-d||h===0)&&Qt(p>32?An(w+`;`,r,n,d-1,c):An(Kt(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(Qt(C=On(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123)if(u===0)Dn(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(Jt(w,3)===110)break;case 108:if(Jt(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Dn(e,C,C,r&&Qt(On(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):Dn(w,C,C,C,[``],S,0,s,S)}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+Xt(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&un()==125)continue}switch(w+=Vt(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(Xt(w)-1)*_,_=1;break;case 64:fn()===45&&(w+=vn(dn())),f=fn(),u=d=Xt(b=w+=Tn(pn())),y++;break;case 45:m===45&&Xt(w)==2&&(h=0)}}return a}function On(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=Zt(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=Yt(e,f+1,f=Bt(g=o[h])),b=e;v<m;++v)(b=Wt(g>0?p[v]+` `+y:Kt(y,/&\f/g,p[v])))&&(c[_++]=b);return sn(e,t,n,i===0?Mt:s,c,l,u,d)}function kn(e,t,n,r){return sn(e,t,n,jt,Vt(ln()),Yt(e,2,-2),0,r)}function An(e,t,n,r,i){return sn(e,t,n,Nt,Yt(e,0,r),Yt(e,r+1,-1),r,i)}function jn(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function Mn(e,t,n,r){switch(e.type){case zt:if(e.children.length)break;case Ft:case Lt:case Nt:return e.return=e.return||e.value;case jt:return``;case Rt:return e.return=e.value+`{`+jn(e.children,r)+`}`;case Mt:if(!Xt(e.value=e.props.join(`,`)))return``}return Xt(n=jn(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Nn(e){var t=Zt(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Pn(e){return function(t){t.root||(t=t.return)&&e(t)}}var Fn=e=>{switch(e.type){case Mt:if(typeof e.props==`string`)return;e.props=e.props.map(e=>e.indexOf(`:global(`)===-1?e:yn(e).reduce((e,t,n,r)=>{if(t===``)return e;if(t===`:`&&r[n+1]===`global`){let t=r[n+2].slice(1,-1)+` `;return e.unshift(t),r[n+1]=``,r[n+2]=``,e}return e.push(t),e},[]).join(``))}};function In(e,t,n){switch(Ut(e,t)){case 5103:return At+`print-`+e+e;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return At+e+e;case 4215:if(Jt(e,9)===102||Jt(e,t+1)===116)return At+e+e;break;case 4789:return kt+e+e;case 5349:case 4246:case 6968:return At+e+kt+e+e;case 6187:if(!Gt(e,/grab/))return Kt(Kt(Kt(e,/(zoom-|grab)/,At+`$1`),/(image-set)/,At+`$1`),e,``)+e;case 5495:case 3959:return Kt(e,/(image-set\([^]*)/,At+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return Kt(e,/(.+)-inline(.+)/,At+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Xt(e)-1-t>6)switch(Jt(e,t+1)){case 102:if(Jt(e,t+3)===108)return Kt(e,/(.+:)(.+)-([^]+)/,`$1`+At+`$2-$3$1`+kt+(Jt(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~qt(e,`stretch`)?In(Kt(e,`stretch`,`fill-available`),t,n)+e:e}break}return e}function Ln(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Nt:e.return=In(e.value,e.length,n);return;case Mt:if(e.length)return $t(e.props,function(t){switch(Gt(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return jn([cn(e,{props:[Kt(t,/:(read-\w+)/,`:`+kt+`$1`)]})],r);case`::placeholder`:return jn([cn(e,{props:[Kt(t,/:(plac\w+)/,`:`+At+`input-$1`)]}),cn(e,{props:[Kt(t,/:(plac\w+)/,`:`+kt+`$1`)]})],r)}return``})}}function Rn(e){switch(e.type){case`@container`:case Pt:case It:case zt:return!0}return!1}var zn=e=>{Rn(e)&&Array.isArray(e.children)&&e.children.sort((e,t)=>e.props[0]>t.props[0]?1:-1)};function Bn(){}function Vn(e,t){let n=[];return jn(En(e),Nn([Fn,t?zn:Bn,Ln,Mn,Pn(e=>n.push(e))])),n}var Hn=/[A-Z]/g,Un=/^ms-/,Wn={};function Gn(e){return`-`+e.toLowerCase()}function Kn(e){if(Object.prototype.hasOwnProperty.call(Wn,e))return Wn[e];if(e.substr(0,2)===`--`)return e;let t=e.replace(Hn,Gn);return Wn[e]=Un.test(t)?`-`+t:t}function qn(e){return e.charAt(0)===`&`?e.slice(1):e}var Jn=/,( *[^ &])/g;function Yn(e){return`&`+qn(e.replace(Jn,`,&$1`))}function Xn(e,t){return t.reduceRight((e,t)=>`${Yn(t)} { ${e} }`,e)}function Zn(e,t){let{className:n,selectors:r,property:i,rtlClassName:a,rtlProperty:o,rtlValue:s,value:c}=e,{container:l,layer:u,media:d,scope:f,supports:p}=t,m=`.${n}`,h=Xn(Array.isArray(c)?`${c.map(e=>`${Kn(i)}: ${e}`).join(`;`)};`:`${Kn(i)}: ${c};`,r),g=f?`@scope (${m}) ${f} { :scope{${h}} }`:`${m}{${h}}`;if(o&&a){let e=`.${a}`,t=Xn(Array.isArray(s)?`${s.map(e=>`${Kn(o)}: ${e}`).join(`;`)};`:`${Kn(o)}: ${s};`,r);g+=f?`@scope (${e}) ${f} { :scope{${t}} }`:`${e}{${t}}`}return d&&(g=`@media ${d} { ${g} }`),u&&(g=`@layer ${u} { ${g} }`),p&&(g=`@supports ${p} { ${g} }`),l&&(g=`@container ${l} { ${g} }`),Vn(g,!0)}function Qn(e){let t=``;for(let n in e){let r=e[n];if(typeof r==`string`||typeof r==`number`){t+=Kn(n)+`:`+r+`;`;continue}if(Array.isArray(r))for(let e of r)t+=Kn(n)+`:`+e+`;`}return t}function $n(e){let t=``;for(let n in e)t+=`${n}{${Qn(e[n])}}`;return t}function er(e,t){let n=`@keyframes ${e} {${t}}`,r=[];return jn(En(n),Nn([Mn,Ln,Pn(e=>r.push(e))])),r}var tr={"us-w":`w`,"us-v":`i`,nk:`l`,si:`v`,cu:`f`,ve:`h`,ti:`a`};function nr(e,t){if(t.media)return`m`;if(t.layer||t.supports)return`t`;if(t.container)return`c`;if(e.length>0){let t=e[0].trim();if(t.charCodeAt(0)===58)return tr[t.slice(4,8)]||tr[t.slice(3,5)]||`d`}return`d`}var rr={animation:[-1,[`animationDelay`,`animationDirection`,`animationDuration`,`animationFillMode`,`animationIterationCount`,`animationName`,`animationPlayState`,`animationTimeline`,`animationTimingFunction`]],animationRange:[-1,[`animationRangeEnd`,`animationRangeStart`]],background:[-2,[`backgroundAttachment`,`backgroundClip`,`backgroundColor`,`backgroundImage`,`backgroundOrigin`,`backgroundPosition`,`backgroundPositionX`,`backgroundPositionY`,`backgroundRepeat`,`backgroundSize`]],backgroundPosition:[-1,[`backgroundPositionX`,`backgroundPositionY`]],border:[-2,[`borderBottom`,`borderBottomColor`,`borderBottomStyle`,`borderBottomWidth`,`borderLeft`,`borderLeftColor`,`borderLeftStyle`,`borderLeftWidth`,`borderRight`,`borderRightColor`,`borderRightStyle`,`borderRightWidth`,`borderTop`,`borderTopColor`,`borderTopStyle`,`borderTopWidth`]],borderBottom:[-1,[`borderBottomColor`,`borderBottomStyle`,`borderBottomWidth`]],borderImage:[-1,[`borderImageOutset`,`borderImageRepeat`,`borderImageSlice`,`borderImageSource`,`borderImageWidth`]],borderLeft:[-1,[`borderLeftColor`,`borderLeftStyle`,`borderLeftWidth`]],borderRadius:[-1,[`borderBottomLeftRadius`,`borderBottomRightRadius`,`borderTopLeftRadius`,`borderTopRightRadius`]],borderRight:[-1,[`borderRightColor`,`borderRightStyle`,`borderRightWidth`]],borderTop:[-1,[`borderTopColor`,`borderTopStyle`,`borderTopWidth`]],caret:[-1,[`caretColor`,`caretShape`]],columnRule:[-1,[`columnRuleColor`,`columnRuleStyle`,`columnRuleWidth`]],columns:[-1,[`columnCount`,`columnWidth`]],containIntrinsicSize:[-1,[`containIntrinsicHeight`,`containIntrinsicWidth`]],container:[-1,[`containerName`,`containerType`]],flex:[-1,[`flexBasis`,`flexGrow`,`flexShrink`]],flexFlow:[-1,[`flexDirection`,`flexWrap`]],font:[-1,[`fontFamily`,`fontSize`,`fontStretch`,`fontStyle`,`fontVariant`,`fontWeight`,`lineHeight`]],gap:[-1,[`columnGap`,`rowGap`]],grid:[-1,[`columnGap`,`gridAutoColumns`,`gridAutoFlow`,`gridAutoRows`,`gridColumnGap`,`gridRowGap`,`gridTemplateAreas`,`gridTemplateColumns`,`gridTemplateRows`,`rowGap`]],gridArea:[-1,[`gridColumnEnd`,`gridColumnStart`,`gridRowEnd`,`gridRowStart`]],gridColumn:[-1,[`gridColumnEnd`,`gridColumnStart`]],gridRow:[-1,[`gridRowEnd`,`gridRowStart`]],gridTemplate:[-1,[`gridTemplateAreas`,`gridTemplateColumns`,`gridTemplateRows`]],inset:[-1,[`bottom`,`left`,`right`,`top`]],insetBlock:[-1,[`insetBlockEnd`,`insetBlockStart`]],insetInline:[-1,[`insetInlineEnd`,`insetInlineStart`]],listStyle:[-1,[`listStyleImage`,`listStylePosition`,`listStyleType`]],margin:[-1,[`marginBottom`,`marginLeft`,`marginRight`,`marginTop`]],marginBlock:[-1,[`marginBlockEnd`,`marginBlockStart`]],marginInline:[-1,[`marginInlineEnd`,`marginInlineStart`]],mask:[-1,[`maskClip`,`maskComposite`,`maskImage`,`maskMode`,`maskOrigin`,`maskPosition`,`maskRepeat`,`maskSize`]],maskBorder:[-1,[`maskBorderMode`,`maskBorderOutset`,`maskBorderRepeat`,`maskBorderSlice`,`maskBorderSource`,`maskBorderWidth`]],offset:[-1,[`offsetAnchor`,`offsetDistance`,`offsetPath`,`offsetPosition`,`offsetRotate`]],outline:[-1,[`outlineColor`,`outlineStyle`,`outlineWidth`]],overflow:[-1,[`overflowX`,`overflowY`]],overscrollBehavior:[-1,[`overscrollBehaviorX`,`overscrollBehaviorY`]],padding:[-1,[`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`]],paddingBlock:[-1,[`paddingBlockEnd`,`paddingBlockStart`]],paddingInline:[-1,[`paddingInlineEnd`,`paddingInlineStart`]],placeContent:[-1,[`alignContent`,`justifyContent`]],placeItems:[-1,[`alignItems`,`justifyItems`]],placeSelf:[-1,[`alignSelf`,`justifySelf`]],positionTry:[-1,[`positionTryFallbacks`,`positionTryOrder`]],scrollMargin:[-1,[`scrollMarginBottom`,`scrollMarginLeft`,`scrollMarginRight`,`scrollMarginTop`]],scrollMarginBlock:[-1,[`scrollMarginBlockEnd`,`scrollMarginBlockStart`]],scrollMarginInline:[-1,[`scrollMarginInlineEnd`,`scrollMarginInlineStart`]],scrollPadding:[-1,[`scrollPaddingBottom`,`scrollPaddingLeft`,`scrollPaddingRight`,`scrollPaddingTop`]],scrollPaddingBlock:[-1,[`scrollPaddingBlockEnd`,`scrollPaddingBlockStart`]],scrollPaddingInline:[-1,[`scrollPaddingInlineEnd`,`scrollPaddingInlineStart`]],scrollTimeline:[-1,[`scrollTimelineAxis`,`scrollTimelineName`]],textDecoration:[-1,[`textDecorationColor`,`textDecorationLine`,`textDecorationStyle`,`textDecorationThickness`]],textEmphasis:[-1,[`textEmphasisColor`,`textEmphasisStyle`]],textWrap:[-1,[`textWrapMode`,`textWrapStyle`]],transition:[-1,[`transitionBehavior`,`transitionDelay`,`transitionDuration`,`transitionProperty`,`transitionTimingFunction`]],viewTimeline:[-1,[`viewTimelineAxis`,`viewTimelineName`]]};function ir(e,t){return e.length===0?t:`${e} and ${t}`}function ar(e,t){return e&&t+e}function or(e){return ar(e.container,`c`)+ar(e.media,`m`)+ar(e.layer,`l`)+ar(e.supports,`s`)+ar(e.scope,`o`)}function sr(e,t,n){let r=Ve(e+or(n)+t),i=r.charCodeAt(0);return i>=48&&i<=57?String.fromCharCode(i+17)+r.slice(1):r}function cr({property:e,selector:t,salt:n,value:r},i){return`f`+Ve(n+t+or(i)+e+r.trim())}function lr(e){return e.substring(0,10)===`@container`}function ur(e){return e.substr(0,6)===`@layer`}function dr(e){return e.substr(0,6)===`@media`}var fr=/^(:|\[|>|&)/;function pr(e){return fr.test(e)}function mr(e){return typeof e==`object`&&!!e&&Array.isArray(e)===!1}function hr(e){return e===Be}function gr(e){return e.substring(0,6)===`@scope`}function _r(e){return e.substr(0,9)===`@supports`}function vr(e){return e.replace(/>\s+/g,`>`)}function yr(e,t){[`@griffel/react: You are using unsupported shorthand CSS property "${e}". Please check your "makeStyles" calls, there *should not* be following:`,` `.repeat(2)+`makeStyles({`,` `.repeat(4)+`[slot]: { ${e}: "${t}" }`,` `.repeat(2)+`})`,``,`Learn why CSS shorthands are not supported: https://aka.ms/griffel-css-shorthands`].join(`
10
+ `)}function br(e){return rr[e]}function xr(e){return e?.[0]??0}function Sr(e,t,n,r){e[t]=r?[n,r]:n}function Cr(e,t){return t.length>0?[e,Object.fromEntries(t)]:e}function wr(e,t,n,r,i,a){let o=[];a!==0&&o.push([`p`,a]),t===`m`&&i&&o.push([`m`,i]),e[t]??(e[t]=[]),n&&e[t].push(Cr(n,o)),r&&e[t].push(Cr(r,o))}function Tr(e,t=``,n=[],r={container:``,layer:``,media:``,supports:``,scope:``},i={},a={},o){for(let s in e){if(ze.hasOwnProperty(s)){yr(s,e[s]);continue}let c=e[s];if(c!=null){if(hr(c)){Sr(i,sr(vr(n.join(``)),s,r),0,void 0);continue}if(typeof c==`string`||typeof c==`number`){let e=vr(n.join(``)),l=br(s);if(l){let e=l[1];Tr(Object.fromEntries(e.map(e=>[e,Be])),t,n,r,i,a)}let u=sr(e,s,r),d=cr({value:c.toString(),salt:t,selector:e,property:s},r),f=o&&{key:s,value:o}||Et(s,c),p=f.key!==s||f.value!==c,m=p?cr({value:f.value.toString(),property:f.key,salt:t,selector:e},r):void 0,h=p?{rtlClassName:m,rtlProperty:f.key,rtlValue:f.value}:void 0,g=nr(n,r),[_,v]=Zn({className:d,selectors:n,property:s,value:c,...h},r);Sr(i,u,d,m),wr(a,g,_,v,r.media,xr(l))}else if(s===`animationName`){let e=Array.isArray(c)?c:[c],o=[],s=[];for(let t of e){let e=$n(t),n=$n(Tt(t)),i=`f`+Ve(e),c,l=er(i,e),u=[];e===n?c=i:(c=`f`+Ve(n),u=er(c,n));for(let e=0;e<l.length;e++)wr(a,`k`,l[e],u[e],r.media,0);o.push(i),s.push(c)}Tr({animationName:o.join(`, `)},t,n,r,i,a,s.join(`, `))}else if(Array.isArray(c)){if(c.length===0)continue;let e=vr(n.join(``)),o=br(s);if(o){let e=o[1];Tr(Object.fromEntries(e.map(e=>[e,Be])),t,n,r,i,a)}let l=sr(e,s,r),u=cr({value:c.map(e=>(e??``).toString()).join(`;`),salt:t,selector:e,property:s},r),d=c.map(e=>Et(s,e));if(d.some(e=>e.key!==d[0].key))continue;let f=d[0].key!==s||d.some((e,t)=>e.value!==c[t]),p=f?cr({value:d.map(e=>(e?.value??``).toString()).join(`;`),salt:t,property:d[0].key,selector:e},r):void 0,m=f?{rtlClassName:p,rtlProperty:d[0].key,rtlValue:d.map(e=>e.value)}:void 0,h=nr(n,r),[g,_]=Zn({className:u,selectors:n,property:s,value:c,...m},r);Sr(i,l,u,p),wr(a,h,g,_,r.media,xr(o))}else if(mr(c)){if(pr(s))Tr(c,t,n.concat(qn(s)),r,i,a);else if(dr(s)){let e=ir(r.media,s.slice(6).trim());Tr(c,t,n,{...r,media:e},i,a)}else if(ur(s)){let e=(r.layer?`${r.layer}.`:``)+s.slice(6).trim();Tr(c,t,n,{...r,layer:e},i,a)}else if(_r(s)){let e=ir(r.supports,s.slice(9).trim());Tr(c,t,n,{...r,supports:e},i,a)}else if(lr(s)){let e=s.slice(10).trim();Tr(c,t,n,{...r,container:e},i,a)}else if(gr(s)){if(r.scope)continue;let e=s.slice(6).trim();if(e===``||!e.startsWith(`to `))continue;Tr(c,t,n,{...r,scope:e},i,a)}}}}return[i,a]}function Er(e,t=``){let n={},r={};for(let i in e){let a=e[i],[o,s]=Tr(a,t);n[i]=o,Object.keys(s).forEach(e=>{r[e]=(r[e]||[]).concat(s[e])})}return[n,r]}function Dr(e,t=it){let n=t(),r=null,i=null,a=null,o=null;function s(t){let{dir:s,renderer:c}=t;r===null&&([r,i]=Er(e,c.classNameHashSalt));let l=s===`ltr`;return l?a===null&&(a=Ge(r,s)):o===null&&(o=Ge(r,s)),n(c,i),l?a:o}return s}function Or(e,t,n=it){let r=n(),i=null,a=null;function o(n){let{dir:o,renderer:s}=n,c=o===`ltr`;return c?i===null&&(i=Ge(e,o)):a===null&&(a=Ge(e,o)),r(s,t),c?i:a}return o}function kr(e,t,n,r=it){let i=r();function a(r){let{dir:a,renderer:o}=r,s=a===`ltr`?e:t||e;return i(o,Array.isArray(n)?{r:n}:n),s}return a}var Ar={border:E,borderLeft:D,borderBottom:O,borderRight:ee,borderTop:te,borderColor:C,borderStyle:S,borderRadius:ne,borderWidth:x,flex:le,gap:ue,gridArea:ge,margin:_e,marginBlock:ve,marginInline:ye,padding:be,paddingBlock:xe,paddingInline:Se,overflow:Ce,inset:we,outline:Te,transition:Ee,textDecoration:Ae};function jr(){return typeof window<`u`&&!!(window.document&&window.document.createElement)}var M=u(f(),1),Mr=M.useInsertionEffect?M.useInsertionEffect:void 0,Nr=()=>{let e={};return function(t,n){if(Mr&&jr()){Mr(()=>{t.insertCSSRules(n)},[t,n]);return}e[t.id]===void 0&&(t.insertCSSRules(n),e[t.id]=!0)}},Pr=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),N=u(s(((e,t)=>{t.exports=Pr()}))(),1),Fr=(0,M.createContext)(rt());function Ir(){return(0,M.useContext)(Fr)}var Lr=(0,M.createContext)(`ltr`),Rr=({children:e,dir:t})=>(0,N.jsx)(Lr.Provider,{value:t,children:e});function zr(){return(0,M.useContext)(Lr)}function Br(e){let t=Dr(e,Nr);return function(){return t({dir:zr(),renderer:Ir()})}}function P(e,t){let n=Or(e,t,Nr);return function(){return n({dir:zr(),renderer:Ir()})}}function Vr(e,t,n){let r=kr(e,t,n,Nr);return function(){return r({dir:zr(),renderer:Ir()})}}var Hr={"<":`\\3C `,">":`\\3E `};function Ur(e){return e.replace(/[<>]/g,e=>Hr[e])}function Wr(e,t){return t?`${e} { ${Ur(Object.keys(t).reduce((e,n)=>`${e}--${n}: ${t[n]}; `,``))} }`:`${e} {}`}var Gr=Symbol.for(`fui.slotRenderFunction`),Kr=Symbol.for(`fui.slotElementType`),qr=Symbol.for(`fui.slotClassNameProp`);function Jr(e,t){let{defaultProps:n,elementType:r}=t,i=Xr(e),a={...n,...i,[Kr]:r,[qr]:i?.className||n?.className};return i&&typeof i.children==`function`&&(a[Gr]=i.children,a.children=n?.children),a}function Yr(e,t){if(!(e===null||e===void 0&&!t.renderByDefault))return Jr(e,t)}function Xr(e){return typeof e==`string`||typeof e==`number`||Zr(e)||M.isValidElement(e)?{children:e}:e}var Zr=e=>typeof e==`object`&&!!e&&Symbol.iterator in e;function Qr(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&!M.isValidElement(e)}function $r(e){return!!e?.hasOwnProperty(Kr)}var ei=(...e)=>{let t={};for(let n of e){let e=Array.isArray(n)?n:Object.keys(n);for(let n of e)t[n]=1}return t},ti=ei(`onAuxClick.onAnimationEnd.onAnimationStart.onCopy.onCut.onPaste.onCompositionEnd.onCompositionStart.onCompositionUpdate.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onInput.onSubmit.onLoad.onError.onKeyDown.onKeyDownCapture.onKeyPress.onKeyUp.onAbort.onCanPlay.onCanPlayThrough.onDurationChange.onEmptied.onEncrypted.onEnded.onLoadedData.onLoadedMetadata.onLoadStart.onPause.onPlay.onPlaying.onProgress.onRateChange.onSeeked.onSeeking.onStalled.onSuspend.onTimeUpdate.onVolumeChange.onWaiting.onClick.onClickCapture.onContextMenu.onDoubleClick.onDrag.onDragEnd.onDragEnter.onDragExit.onDragLeave.onDragOver.onDragStart.onDrop.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onMouseUpCapture.onSelect.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onScroll.onWheel.onPointerCancel.onPointerDown.onPointerEnter.onPointerLeave.onPointerMove.onPointerOut.onPointerOver.onPointerUp.onGotPointerCapture.onLostPointerCapture`.split(`.`)),ni=ei(ei([`accessKey`,`children`,`className`,`contentEditable`,`dir`,`draggable`,`hidden`,`htmlFor`,`id`,`lang`,`popover`,`focusgroup`,`focusgroupstart`,`ref`,`role`,`style`,`tabIndex`,`title`,`translate`,`spellCheck`,`name`]),ti,ei([`itemID`,`itemProp`,`itemRef`,`itemScope`,`itemType`])),ri=ei(ni,[`form`]),ii=ei(ni,[`height`,`loop`,`muted`,`preload`,`src`,`width`]),ai=ei(ii,[`poster`]),oi=ei(ni,[`start`]),si=ei(ni,[`value`]),ci=ei(ni,[`download`,`href`,`hrefLang`,`media`,`referrerPolicy`,`rel`,`target`,`type`]),li=ei(ni,[`dateTime`]),ui=ei(ni,[`autoFocus`,`disabled`,`form`,`formAction`,`formEncType`,`formMethod`,`formNoValidate`,`formTarget`,`popoverTarget`,`popoverTargetAction`,`type`,`value`]),di=ei(ui,`accept.alt.autoCorrect.autoCapitalize.autoComplete.checked.dirname.form.height.inputMode.list.max.maxLength.min.minLength.multiple.pattern.placeholder.readOnly.required.src.step.size.type.value.width`.split(`.`)),fi=ei(ui,[`autoCapitalize`,`cols`,`dirname`,`form`,`maxLength`,`placeholder`,`readOnly`,`required`,`rows`,`wrap`]),pi=ei(ui,[`form`,`multiple`,`required`]),mi=ei(ni,[`selected`,`value`]),hi=ei(ni,[`cellPadding`,`cellSpacing`]),gi=ni,_i=ei(ni,[`colSpan`,`rowSpan`,`scope`]),vi=ei(ni,[`colSpan`,`headers`,`rowSpan`,`scope`]),yi=ei(ni,[`span`]),bi=ei(ni,[`span`]),xi=ei(ni,[`disabled`,`form`]),Si=ei(ni,[`acceptCharset`,`action`,`encType`,`encType`,`method`,`noValidate`,`target`]),Ci=ei(ni,[`allow`,`allowFullScreen`,`allowPaymentRequest`,`allowTransparency`,`csp`,`height`,`importance`,`referrerPolicy`,`sandbox`,`src`,`srcDoc`,`width`]),wi=ei(ni,[`alt`,`crossOrigin`,`height`,`src`,`srcSet`,`useMap`,`width`]),Ti=ei(ni,[`open`,`onCancel`,`onClose`]);function Ei(e,t,n){let r=Array.isArray(t),i={},a=Object.keys(e);for(let o of a)(!r&&t[o]||r&&t.indexOf(o)>=0||o.indexOf(`data-`)===0||o.indexOf(`aria-`)===0)&&(!n||n?.indexOf(o)===-1)&&(i[o]=e[o]);return i}var Di={label:ri,audio:ii,video:ai,ol:oi,li:si,a:ci,button:ui,input:di,textarea:fi,select:pi,option:mi,table:hi,tr:gi,th:_i,td:vi,colGroup:yi,col:bi,fieldset:xi,form:Si,iframe:Ci,img:wi,time:li,dialog:Ti};function Oi(e,t,n){let r=e&&Di[e]||ni;return r.as=1,Ei(t,r,n)}var ki=({primarySlotTagName:e,props:t,excludedPropNames:n})=>({root:{style:t.style,className:t.className},primary:Oi(e,t,[...n||[],`style`,`className`])}),Ai=(e,t,n)=>Oi(t.as??e,t,n);function ji(e,t){let n=M.useRef(void 0),r=M.useCallback((r,i)=>(n.current!==void 0&&t(n.current),n.current=e(r,i),n.current),[t,e]),i=M.useCallback(()=>{n.current!==void 0&&(t(n.current),n.current=void 0)},[t]);return M.useEffect(()=>i,[i]),[r,i]}var Mi=M.createContext(void 0),Ni=Mi.Provider,Pi=M.createContext(void 0),Fi=``,Ii=Pi.Provider;function Li(){return M.useContext(Pi)??Fi}var Ri=M.createContext(void 0),zi={},Bi=Ri.Provider;function Vi(){return M.useContext(Ri)??zi}var Hi=M.createContext(void 0),Ui={targetDocument:typeof document==`object`?document:void 0,dir:`ltr`},Wi=Hi.Provider;function Gi(){return M.useContext(Hi)??Ui}var Ki=M.createContext(void 0),qi=Ki.Provider;function Ji(){return M.useContext(Ki)??{}}var Yi=M.createContext(void 0),Xi=()=>{},Zi=Yi.Provider,Qi=e=>M.useContext(Yi)?.[e]??Xi,$i=M.createContext(void 0);$i.Provider;function ea(){return M.useContext($i)}var ta=M.createContext(void 0);ta.Provider;function na(){return M.useContext(ta)??{announce:()=>void 0}}var ra=e=>(e(0),0),ia=e=>e;function aa(){let{targetDocument:e}=Gi(),t=e?.defaultView;return ji(t?t.requestAnimationFrame:ra,t?t.cancelAnimationFrame:ia)}function oa(e){return typeof e==`function`}var sa=e=>{"use no memo";let[t,n]=M.useState(()=>e.defaultState===void 0?e.initialState:ca(e.defaultState)?e.defaultState():e.defaultState),r=M.useRef(e.state);M.useEffect(()=>{r.current=e.state},[e.state]);let i=M.useCallback(e=>{oa(e)&&e(r.current)},[]);return la(e.state)?[e.state,i]:[t,n]};function ca(e){return typeof e==`function`}var la=e=>{"use no memo";let[t]=M.useState(()=>e!==void 0);return t};function ua(){return typeof window<`u`&&!!(window.document&&window.document.createElement)}var da={current:0},fa=M.createContext(void 0);function pa(){return M.useContext(fa)??da}function ma(){let e=pa()!==da,[t,n]=M.useState(e);return ua()&&e&&M.useLayoutEffect(()=>{n(!1)},[]),t}var ha=ua()?M.useLayoutEffect:M.useEffect,F=e=>{let t=M.useRef(()=>{throw Error(`Cannot call an event handler while rendering`)});return ha(()=>{t.current=e},[e]),M.useCallback((...e)=>{let n=t.current;return n(...e)},[t])};function ga(){let e=M.useRef(!0);return M.useEffect(()=>{e.current&&=!1},[]),e.current}function _a(){return M.useReducer(e=>e+1,0)[1]}var va=M.createContext(void 0);va.Provider;function ya(){return M.useContext(va)||``}function ba(e=`fui-`,t){"use no memo";let n=pa(),r=ya(),i=M.useId;if(i){let n=i(),a=M.useMemo(()=>n.replace(/:/g,``),[n]);return t||`${r}${e}${a}`}return M.useMemo(()=>t||`${r}${e}${++n.current}`,[r,e,t,n])}function xa(...e){"use no memo";let t=M.useCallback(n=>{t.current=n;for(let t of e)typeof t==`function`?t(n):t&&(t.current=n)},[...e]);return t}var Sa=(e,t)=>!!e?.contains(t),Ca=e=>{let{targetDocument:t}=Gi(),n=t?.defaultView,{refs:r,callback:i,element:a,disabled:o,disabledFocusOnIframe:s,contains:c=Sa}=e,l=M.useRef(void 0);Ea({element:a,disabled:s||o,callback:i,refs:r,contains:c});let u=M.useRef(!1),d=F(e=>{if(u.current){u.current=!1;return}let t=e.composedPath()[0];r.every(e=>!c(e.current||null,t))&&!o&&i(e)}),f=F(e=>{u.current=r.some(t=>c(t.current||null,e.target))});M.useEffect(()=>{if(o)return;let e=wa(n),t=t=>{if(t===e){e=void 0;return}d(t)};return a?.addEventListener(`click`,t,!0),a?.addEventListener(`touchstart`,t,!0),a?.addEventListener(`contextmenu`,t,!0),a?.addEventListener(`mousedown`,f,!0),l.current=n?.setTimeout(()=>{e=void 0},1),()=>{a?.removeEventListener(`click`,t,!0),a?.removeEventListener(`touchstart`,t,!0),a?.removeEventListener(`contextmenu`,t,!0),a?.removeEventListener(`mousedown`,f,!0),n?.clearTimeout(l.current),e=void 0}},[d,a,o,f,n])},wa=e=>{if(e)return typeof e.window==`object`&&e.window===e?e.event:e.ownerDocument?.defaultView?.event??void 0},Ta=`fuiframefocus`,Ea=e=>{let{disabled:t,element:n,callback:r,contains:i=Sa,pollDuration:a=100,refs:o}=e,s=M.useRef(void 0),c=F(e=>{o.every(t=>!i(t.current||null,e.target))&&!t&&r(e)});M.useEffect(()=>{if(!t)return n?.addEventListener(Ta,c,!0),()=>{n?.removeEventListener(Ta,c,!0)}},[n,t,c]),M.useEffect(()=>{if(!t)return s.current=n?.defaultView?.setInterval(()=>{let e=n?.activeElement;if(e?.tagName===`IFRAME`||e?.tagName===`WEBVIEW`){let t=new CustomEvent(Ta,{bubbles:!0});e.dispatchEvent(t)}},a),()=>{var e;n==null||(e=n.defaultView)==null||e.clearInterval(s.current)}},[n,t,a])},Da=e=>{let{refs:t,callback:n,element:r,disabled:i,contains:a}=e,o=F(e=>{let r=a||((e,t)=>!!e?.contains(t)),o=e.composedPath()[0];t.every(e=>!r(e.current||null,o))&&!i&&n(e)});M.useEffect(()=>{if(!i)return r?.addEventListener(`wheel`,o),r?.addEventListener(`touchmove`,o),()=>{r?.removeEventListener(`wheel`,o),r?.removeEventListener(`touchmove`,o)}},[o,r,i])},Oa=e=>-1,ka=e=>void 0;function Aa(){let{targetDocument:e}=Gi(),t=e?.defaultView;return ji(t?t.setTimeout:Oa,t?t.clearTimeout:ka)}var ja=!0;function Ma(e){if(e)return ja?e.props.ref:e.ref}var Na=(e,t)=>{if(t===`rtl`)switch(e){case`ArrowLeft`:return`ArrowRight`;case`ArrowRight`:return`ArrowLeft`}return e};function Pa(e,t){return(...n)=>{e?.(...n),t?.(...n)}}function Fa(e,t){let n=e;return!!(n!=null&&n.ownerDocument?.defaultView&&n instanceof n.ownerDocument.defaultView[t?.constructorName??`HTMLElement`])}function Ia(e){if(!Fa(e))return!1;let{tagName:t}=e;switch(t){case`BUTTON`:case`A`:case`INPUT`:case`TEXTAREA`:return!0}return e.isContentEditable}function La(e){return!!e.type.isFluentTriggerComponent}function Ra(e,t){return typeof e==`function`?e(t):e?za(e,t):e||null}function za(e,t){if(!M.isValidElement(e)||e.type===M.Fragment)throw Error(`A trigger element must be a single element for this component. Please ensure that you're not using React Fragments.`);if(La(e)){let n=za(e.props.children,t);return M.cloneElement(e,void 0,n)}else return M.cloneElement(e,t)}function Ba(e){return M.isValidElement(e)?La(e)?Ba(e.props.children):e:null}function Va(e){return e.type.startsWith(`touch`)}function Ha(e){return e.type.startsWith(`mouse`)||[`click`,`contextmenu`,`dblclick`].indexOf(e.type)>-1}function Ua(e){return Ha(e)?{clientX:e.clientX,clientY:e.clientY}:Va(e)?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:{clientX:0,clientY:0}}function Wa(e){return e instanceof Set?e:new Set(e)}function Ga(e){let[t,n]=sa({initialState:new Set,defaultState:M.useMemo(()=>e.defaultSelectedItems&&Wa(e.defaultSelectedItems),[e.defaultSelectedItems]),state:M.useMemo(()=>e.selectedItems&&Wa(e.selectedItems),[e.selectedItems])});return[t,(t,r)=>{var i;(i=e.onSelectionChange)==null||i.call(e,t,{selectedItems:r}),n(r)}]}function Ka(e){let[t,n]=Ga(e);return[t,{deselectItem:e=>n(e,new Set),selectItem:(e,t)=>n(e,new Set([t])),toggleAllItems:()=>{},toggleItem:(e,t)=>n(e,new Set([t])),clearItems:e=>n(e,new Set),isSelected:e=>t.has(e)??!1}]}function qa(e){let[t,n]=Ga(e);return[t,{toggleItem:(e,r)=>{let i=new Set(t);t.has(r)?i.delete(r):i.add(r),n(e,i)},selectItem:(e,r)=>{let i=new Set(t);i.add(r),n(e,i)},deselectItem:(e,r)=>{let i=new Set(t);i.delete(r),n(e,i)},clearItems:e=>{n(e,new Set)},isSelected:e=>t.has(e),toggleAllItems:(e,r)=>{let i=r.every(e=>t.has(e)),a=new Set(t);i?a.clear():r.forEach(e=>a.add(e)),n(e,a)}}]}function Ja(e){"use no memo";return e.selectionMode===`multiselect`?qa(e):Ka(e)}function Ya(e){return e&&!!e._virtual}function Xa(e){return Ya(e)&&e._virtual.parent||null}function Za(e,t={}){if(!e)return null;if(!t.skipVirtual){let t=Xa(e);if(t)return t}let n=e.parentNode;return n&&n.nodeType===11?n.host:n}function Qa(e,t){if(!e||!t)return!1;if(e===t)return!0;{let n=new WeakSet;for(;t;){let r=Za(t,{skipVirtual:n.has(t)});if(n.add(t),r===e)return!0;t=r}}return!1}function $a(e,t){e&&Object.assign(e,{_virtual:{parent:t}})}function eo(e,t){return{...t,[Kr]:e}}function to(e,t){return function(n,r,i,a,o){return $r(r)?t(eo(n,r),null,i,a,o):$r(n)?t(n,r,i,a,o):e(n,r,i,a,o)}}function no(e){let{as:t,[qr]:n,[Kr]:r,[Gr]:i,...a}=e,o=a,s=typeof r==`string`?t??r:r;return typeof s!=`string`&&t&&(o.as=t),{elementType:s,props:o,renderFunction:i}}var ro=N,io=(e,t,n)=>{let{elementType:r,renderFunction:i,props:a}=no(e),o={...a,...t};return i?ro.jsx(M.Fragment,{children:i(r,o)},n):ro.jsx(r,o,n)},ao=(e,t,n)=>{let{elementType:r,renderFunction:i,props:a}=no(e),o={...a,...t};return i?ro.jsx(M.Fragment,{children:i(r,{...o,children:ro.jsxs(M.Fragment,{children:o.children},void 0)})},n):ro.jsxs(r,o,n)},I=to(ro.jsx,io),oo=to(ro.jsxs,ao),so=M.createContext(void 0),co={},lo=so.Provider,uo=()=>M.useContext(so)??co,fo=(e,t)=>I(Wi,{value:t.provider,children:I(Ni,{value:t.theme,children:I(Ii,{value:t.themeClassName,children:I(Zi,{value:t.customStyleHooks_unstable,children:I(Bi,{value:t.tooltip,children:I(Rr,{dir:t.textDirection,children:I(lo,{value:t.iconDirection,children:I(qi,{value:t.overrides_unstable,children:oo(e.root,{children:[ua()?null:I(`style`,{dangerouslySetInnerHTML:{__html:e.serverStyleProps.cssRule},...e.serverStyleProps.attributes}),e.root.children]})})})})})})})})}),po=`data-tabster`,mo=`data-tabster-dummy`,ho=`:is(${[`a[href]`,`button`,`input`,`select`,`textarea`,`*[tabindex]`,`*[contenteditable]`,`details > summary`,`audio[controls]`,`video[controls]`].join(`, `)}):not(:disabled)`,go={EscapeGroupper:1,Restorer:2,Deloser:3},_o={Invisible:0,PartiallyVisible:1,Visible:2},vo={Source:0,Target:1},yo={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},bo={ArrowUp:1,ArrowDown:2,ArrowLeft:3,ArrowRight:4,PageUp:5,PageDown:6,Home:7,End:8},xo={Unlimited:0,Limited:1,LimitedTrapFocus:2},So={Enter:1,Escape:2},Co={Auto:0,Inside:1,Outside:2};function wo(e,t){return e.storageEntry(t)?.tabster}function To(e,t,n){let r=n||e._noop?void 0:t.getAttribute(po),i=e.storageEntry(t),a;if(r)if(r!==i?.attr?.string)try{let e=JSON.parse(r);if(typeof e!=`object`)throw Error(`Value is not a JSON object, got '${r}'.`);a={string:r,object:e}}catch{}else return;else if(!i)return;i||=e.storageEntry(t,!0),i.tabster||={};let o=i.tabster||{},s=i.attr?.object||{},c=a?.object||{};for(let n of Object.keys(s))if(!c[n]){if(n===`root`){let t=o[n];t&&e.root.onRoot(t,!0)}switch(n){case`deloser`:case`root`:case`groupper`:case`modalizer`:case`restorer`:case`mover`:let r=o[n];r&&(r.dispose(),delete o[n]);break;case`observed`:delete o[n],e.observedElement&&e.observedElement.onObservedElementUpdate(t);break;case`focusable`:case`outline`:case`uncontrolled`:case`sys`:delete o[n];break}}for(let n of Object.keys(c)){let r=c.sys;switch(n){case`root`:o.root?o.root.setProps(c.root):o.root=e.root.createRoot(t,c.root,r),e.root.onRoot(o.root);break;case`focusable`:o.focusable=c.focusable;break;case`observed`:e.observedElement&&(o.observed=c.observed,e.observedElement.onObservedElementUpdate(t));break;case`uncontrolled`:o.uncontrolled=c.uncontrolled;break;case`outline`:e.outline&&(o.outline=c.outline);break;case`sys`:o.sys=c.sys;break;default:{let i=e.attrHandlers.get(n);i&&(o[n]=i(t,o[n],c[n],s?.[n],r))}}}a?i.attr=a:(Object.keys(o).length===0&&(delete i.tabster,delete i.attr),e.storageEntry(t,!1))}var Eo=(e,t,n)=>{e.addEventListener(t,n,!0)},Do=(e,t,n)=>{e.removeEventListener(t,n,!0)},Oo=`keyborg:focusin`,ko=`keyborg:focusout`,Ao=0,jo=1,Mo=2,No=3;function Po(e){let t=e.HTMLElement,n=t.prototype.focus,r=!1;return t.prototype.focus=function(){r=!0},e.document.createElement(`button`).focus(),t.prototype.focus=n,r}var Fo=!1;function Io(e){let t=e.focus;t.__keyborgNativeFocus?t.__keyborgNativeFocus.call(e):e.focus()}function Lo(e){let t=e,n=t.document,r=t.HTMLElement.prototype;Fo||=Po(t);let i=r.focus;if(i.__keyborgNativeFocus)return;r.focus=u;let a=new Set,o=e=>{let t=e.target;if(!t)return;let n=new CustomEvent(ko,{cancelable:!0,bubbles:!0,composed:!0,detail:{originalEvent:e}});t.dispatchEvent(n)},s=e=>{let t=e.target;if(!t)return;let n=e.composedPath()[0],r=new Set;for(;n;)n.nodeType===Node.DOCUMENT_FRAGMENT_NODE?(r.add(n),n=n.host):n=n.parentNode;for(let e of a){let t=e.deref();(!t||!r.has(t))&&(a.delete(e),t&&(Do(t,`focusin`,s),Do(t,`focusout`,o)))}c(t,e.relatedTarget||void 0)},c=(e,t,n)=>{let r=e.shadowRoot;if(r){for(let e of a)if(e.deref()===r)return;Eo(r,`focusin`,s),Eo(r,`focusout`,o),a.add(new WeakRef(r));return}let i={relatedTarget:t,originalEvent:n},c=new CustomEvent(Oo,{cancelable:!0,bubbles:!0,composed:!0,detail:i});c.details=i,(Fo||l[No])&&(i.isFocusedProgrammatically=e===l[No]?.deref(),l[No]=void 0),e.dispatchEvent(c)},l=[s,o,a];t.__keyborgData=l,Eo(n,`focusin`,s),Eo(n,`focusout`,o);function u(){let e=t.__keyborgData;return e&&(e[No]=new WeakRef(this)),i.apply(this,arguments)}let d=n.activeElement;for(;d&&d.shadowRoot;)c(d),d=d.shadowRoot.activeElement;u.__keyborgNativeFocus=i}function Ro(e){let t=e,n=t.HTMLElement.prototype,r=n.focus.__keyborgNativeFocus,i=t.__keyborgData;if(i){let e=t.document;Do(e,`focusin`,i[Ao]),Do(e,`focusout`,i[jo]);for(let e of i[Mo]){let t=e.deref();t&&(Do(t,`focusin`,i[Ao]),Do(t,`focusout`,i[jo]))}i[Mo].clear(),delete t.__keyborgData}r&&(n.focus=r)}var zo=500,Bo=0;function Vo(e,t){let n=e,r=!1,i,a,o,s;t&&(t.triggerKeys?.length&&(o=new Set(t.triggerKeys)),t.dismissKeys?.length&&(s=new Set(t.dismissKeys)));let c=()=>{let e=n?.__keyborg?.refs;if(e)for(let t of Object.keys(e))e[t]._cb.forEach(e=>e(r))},l=e=>{r!==e&&(r=e,c())},u=e=>{if(e.key===`Tab`)return!0;let t=n?.document.activeElement,r=!o||o.has(e.keyCode),i=t&&(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable);return r&&!i},d=e=>!!s?.has(e.keyCode),f=()=>{let e=n;if(!e)return;a&&=(e.clearTimeout(a),void 0);let t=e.document.activeElement;a=e.setTimeout(()=>{a=void 0;let n=e.document.activeElement;t&&n&&t===n&&l(!1)},zo)},p=e=>{if(i||r)return;let t=e.detail;t.relatedTarget&&(t.isFocusedProgrammatically||t.isFocusedProgrammatically===void 0||l(!0))},m=()=>{n&&(i&&n.clearTimeout(i),i=n.setTimeout(()=>{i=void 0},1e3)),l(!1)},h=e=>{e.buttons===0||e.clientX===0&&e.clientY===0&&e.screenX===0&&e.screenY===0||m()},g=e=>{r?d(e)&&f():u(e)&&l(!0)},_=e.document;return Eo(_,Oo,p),Eo(_,`mousedown`,h),Eo(e,`keydown`,g),Eo(_,`touchstart`,m),Eo(_,`touchend`,m),Eo(_,`touchcancel`,m),Lo(e),{dispose:()=>{if(!n)return;i&&=(n.clearTimeout(i),void 0),a&&=(n.clearTimeout(a),void 0),Ro(n);let e=n.document;Do(e,Oo,p),Do(e,`mousedown`,h),Do(n,`keydown`,g),Do(e,`touchstart`,m),Do(e,`touchend`,m),Do(e,`touchcancel`,m),n=void 0},get isNavigatingWithKeyboard(){return r},set isNavigatingWithKeyboard(e){l(e)}}}function Ho(e,t){let n=e,r=`k`+ ++Bo,i=n,a,o=[],s=n.__keyborg;a=s?s.core:Vo(n,t);let c={isNavigatingWithKeyboard(){return!!a?.isNavigatingWithKeyboard},subscribe(e){o.push(e)},unsubscribe(e){let t=o.indexOf(e);t>=0&&o.splice(t,1)},setVal(e){a&&(a.isNavigatingWithKeyboard=e)},_cb:o,dispose(){let e=i?.__keyborg;e?.refs[r]&&(delete e.refs[r],Object.keys(e.refs).length===0&&(e.core.dispose(),delete i.__keyborg)),o.length=0,a=void 0,i=void 0}};return s?s.refs[r]=c:n.__keyborg={core:a,refs:{[r]:c}},c}function Uo(e){e.dispose()}var Wo=`tabster:focusin`,Go=`tabster:focusout`,Ko=`tabster:movefocus`,qo=`tabster:modalizer:active`,Jo=`tabster:modalizer:inactive`,Yo=`tabster:mover:state`,Xo=`tabster:mover:movefocus`,Zo=`tabster:mover:memorized-element`,Qo=`tabster:groupper:movefocus`,$o=`tabster:restorer:restore-focus`,es=`tabster:root:focus`,ts=`tabster:root:blur`,ns=typeof CustomEvent<`u`?CustomEvent:function(){},rs=class extends ns{details;constructor(e,t){super(e,{bubbles:!0,cancelable:!0,composed:!0,detail:t}),this.details=t}},is=class extends rs{constructor(e){super(Wo,e)}},as=class extends rs{constructor(e){super(Go,e)}},os=class extends rs{constructor(e){super(Ko,e)}},ss=class extends rs{constructor(e){super(Yo,e)}},cs=class extends rs{constructor(e){super(Xo,e)}},ls=class extends rs{constructor(e){super(Qo,e)}},us=class extends rs{constructor(e){super(qo,e)}},ds=class extends rs{constructor(e){super(Jo,e)}},fs=class extends rs{constructor(){super($o)}},ps=class extends rs{constructor(e){super(es,e)}},ms=class extends rs{constructor(e){super(ts,e)}},L={createMutationObserver:e=>new MutationObserver(e),createTreeWalker:(e,t,n,r)=>e.createTreeWalker(t,n,r),getParentNode:e=>e?e.parentNode:null,getParentElement:e=>e?e.parentElement:null,nodeContains:(e,t)=>!!(t&&e?.contains(t)),getActiveElement:e=>e.activeElement,querySelector:(e,t)=>e.querySelector(t),querySelectorAll:(e,t)=>Array.prototype.slice.call(e.querySelectorAll(t),0),getElementById:(e,t)=>e.getElementById(t),getFirstChild:e=>e?.firstChild||null,getLastChild:e=>e?.lastChild||null,getNextSibling:e=>e?.nextSibling||null,getPreviousSibling:e=>e?.previousSibling||null,getFirstElementChild:e=>e?.firstElementChild||null,getLastElementChild:e=>e?.lastElementChild||null,getNextElementSibling:e=>e?.nextElementSibling||null,getPreviousElementSibling:e=>e?.previousElementSibling||null,appendChild:(e,t)=>e.appendChild(t),insertBefore:(e,t,n)=>e.insertBefore(t,n),getSelection:e=>e.ownerDocument?.getSelection()||null,getElementsByName:(e,t)=>e.ownerDocument.getElementsByName(t)};function hs(e){for(let t of Object.keys(e))L[t]=e[t]}var gs=0;function _s(e){let t=e(),n=t.__tabsterInstanceContext;return n||(n={elementByUId:{},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0},t.__tabsterInstanceContext=n),n}function vs(e){let t=e.__tabsterInstanceContext;t&&(t.elementByUId={},t.containerBoundingRectCache={},t.containerBoundingRectCacheTimer&&e.clearTimeout(t.containerBoundingRectCacheTimer),delete e.__tabsterInstanceContext)}function ys(e){return!!e.querySelector(ho)}var bs=class{_ref;_data;constructor(e,t){this._ref=new WeakRef(e),this._data=t}get(){let e=this._ref,t;return e&&(t=e.deref(),t||delete this._ref),t}getData(){return this._data}};function xs(e,t,n){if(t.nodeType===Node.ELEMENT_NODE)return L.createTreeWalker(e,t,NodeFilter.SHOW_ELEMENT,{acceptNode:n})}function Ss(e,t){let n=t.__tabsterCacheId,r=_s(e),i=n?r.containerBoundingRectCache[n]:void 0;if(i)return i.rect;let a=t.ownerDocument&&t.ownerDocument.documentElement;if(!a)return new DOMRect;let o=0,s=0,c=a.clientWidth,l=a.clientHeight;if(t!==a){let e=t.getBoundingClientRect();o=Math.max(o,e.left),s=Math.max(s,e.top),c=Math.min(c,e.right),l=Math.min(l,e.bottom)}let u=new DOMRect(o<c?o:-1,s<l?s:-1,o<c?c-o:0,s<l?l-s:0);return n||(n=`r-`+ ++r.lastContainerBoundingRectCacheId,t.__tabsterCacheId=n),r.containerBoundingRectCache[n]={rect:u,element:t},r.containerBoundingRectCacheTimer||=window.setTimeout(()=>{r.containerBoundingRectCacheTimer=void 0;for(let e of Object.keys(r.containerBoundingRectCache))delete r.containerBoundingRectCache[e].element.__tabsterCacheId;r.containerBoundingRectCache={}},50),u}function Cs(e,t,n){let r=Ts(t);if(!r)return!1;let i=Ss(e,r),a=t.getBoundingClientRect(),o=a.height*(1-n),s=Math.max(0,i.top-a.top)+Math.max(0,a.bottom-i.bottom);return s===0||s<=o}function ws(e,t,n){let r=Ts(t);if(r){let i=Ss(e,r),a=t.getBoundingClientRect();n?r.scrollTop+=a.top-i.top:r.scrollTop+=a.bottom-i.bottom}}function Ts(e){let t=e.ownerDocument;if(t){for(let t=L.getParentElement(e);t;t=L.getParentElement(t))if(t.scrollWidth>t.clientWidth||t.scrollHeight>t.clientHeight)return t;return t.documentElement}return null}function Es(e){e.__shouldIgnoreFocus=!0}function Ds(e){return!!e.__shouldIgnoreFocus}function Os(e){let t=new Uint32Array(4);e.crypto.getRandomValues(t);let n=[];for(let e=0;e<t.length;e++)n.push(t[e].toString(36));return n.push(`|`),n.push((++gs).toString(36)),n.push(`|`),n.push(Date.now().toString(36)),n.join(``)}function ks(e,t){let n=_s(e),r=t.__tabsterElementUID;return r||=t.__tabsterElementUID=Os(e()),!n.elementByUId[r]&&js(t.ownerDocument,t)&&(n.elementByUId[r]=new bs(t)),r}function As(e,t){let n=_s(e);for(let e of Object.keys(n.elementByUId)){let r=n.elementByUId[e],i=r&&r.get();i&&t&&!L.nodeContains(t,i)||delete n.elementByUId[e]}}function js(e,t){return L.nodeContains(e?.body,t)}function Ms(e,t){return typeof e.matches==`function`&&e.matches(t)}var Ns=0,Ps=class{_tabster;_element;_props;id;constructor(e,t,n){this._tabster=e,this._element=new bs(t),this._props={...n},this.id=`i`+ ++Ns}getElement(){return this._element.get()}getProps(){return this._props}setProps(e){this._props={...e}}};function Fs(e){let t=null;for(let n=L.getLastElementChild(e);n;n=L.getLastElementChild(n))t=n;return t||void 0}function Is(e,t){let n=e,r=null;for(;n&&!r;)r=t?L.getPreviousElementSibling(n):L.getNextElementSibling(n),n=L.getParentElement(n);return r||void 0}function Ls(e,t,n,r){let i=e.storageEntry(t,!0),a=!1;if(!i.aug){if(r===void 0)return a;i.aug={}}if(r===void 0){if(n in i.aug){let e=i.aug[n];delete i.aug[n],e===null?t.removeAttribute(n):t.setAttribute(n,e),a=!0}}else{let e;n in i.aug||(e=t.getAttribute(n)),e!==void 0&&e!==r&&(i.aug[n]=e,r===null?t.removeAttribute(n):t.setAttribute(n,r),a=!0)}return r===void 0&&Object.keys(i.aug).length===0&&(delete i.aug,e.storageEntry(t,!1)),a}function Rs(e){let t=e.ownerDocument,n=t.defaultView?.getComputedStyle(e);return e.offsetParent===null&&t.body!==e&&n?.position!==`fixed`||n?.visibility===`hidden`||n?.position===`fixed`&&(n.display===`none`||e.parentElement?.offsetParent===null&&t.body!==e.parentElement)}function zs(e){return e.tagName===`INPUT`&&!!e.name&&e.type===`radio`}function Bs(e){if(!zs(e))return;let t=e.name,n=Array.from(L.getElementsByName(e,t)),r;return n=n.filter(e=>zs(e)?(e.checked&&(r=e),!0):!1),{name:t,buttons:new Set(n),checked:r}}var Vs=100,Hs=class{_isPhantom;_fixedTarget;_disposeTimer;_clearDisposeTimeout;input;useDefaultAction;isFirst;isOutside;onFocusIn;onFocusOut;constructor(e,t,n,r,i){let a=e(),o=a.document.createElement(`i`);o.tabIndex=0,o.setAttribute(`role`,`none`),o.setAttribute(mo,``),o.setAttribute(`aria-hidden`,`true`);let s=o.style;s.position=`fixed`,s.width=s.height=`1px`,s.opacity=`0.001`,s.zIndex=`-1`,s.setProperty(`content-visibility`,`hidden`),Es(o),this.input=o,this.isFirst=n.isFirst,this.isOutside=t,this._isPhantom=n.isPhantom??!1,this._fixedTarget=i,o.addEventListener(`focusin`,this._focusIn),o.addEventListener(`focusout`,this._focusOut),o.__tabsterDummyContainer=r,this._isPhantom&&(this._disposeTimer=a.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(a.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){this._clearDisposeTimeout&&this._clearDisposeTimeout();let e=this.input;e&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,e.removeEventListener(`focusin`,this._focusIn),e.removeEventListener(`focusout`,this._focusOut),delete e.__tabsterDummyContainer,L.getParentNode(e)?.removeChild(e))}setTopLeft(e,t){let n=this.input?.style;n&&(n.top=`${e}px`,n.left=`${t}px`)}_isBackward(e,t,n){return e&&!n?!this.isFirst:!!(n&&t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)}_focusIn=e=>{if(this._fixedTarget){let e=this._fixedTarget.get();e&&Io(e);return}let t=this.input;if(this.onFocusIn&&t){let n=e.relatedTarget;this.onFocusIn(this,this._isBackward(!0,t,n),n)}};_focusOut=e=>{if(this._fixedTarget)return;this.useDefaultAction=!1;let t=this.input;if(this.onFocusOut&&t){let n=e.relatedTarget;this.onFocusOut(this,this._isBackward(!1,t,n),n)}}},Us={Root:1,Modalizer:2,Mover:3,Groupper:4},Ws=class{_instance;_onFocusIn;_onFocusOut;_element;constructor(e,t,n,r,i,a){this._element=t,this._instance=new Ks(e,t,this,n,r,i,a)}_setHandlers(e,t){this._onFocusIn=e,this._onFocusOut=t}moveOut(e){this._instance?.moveOut(e)}moveOutWithDefaultAction(e,t){this._instance?.moveOutWithDefaultAction(e,t)}getHandler(e){return e?this._onFocusIn:this._onFocusOut}setTabbable(e){this._instance?.setTabbable(this,e)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(e,t,n,r,i){let a=new Hs(e.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(a){let o,s;if(t.tagName===`BODY`)o=t,s=n&&r||!n&&!r?L.getFirstElementChild(t):null;else{n&&(!r||r&&!e.focusable.isFocusable(t,!1,!0,!0))?(o=t,s=r?t.firstElementChild:null):(o=L.getParentElement(t),s=n&&r||!n&&!r?t:L.getNextElementSibling(t));let i,a;do i=n&&r||!n&&!r?L.getPreviousElementSibling(s):s,a=qs(i),a===t?s=n&&r||!n&&!r?i:L.getNextElementSibling(i):a=null;while(a)}o?.dispatchEvent(new os({by:`root`,owner:o,next:null,relatedEvent:i}))&&(L.insertBefore(o,a,s),Io(a))}}static addPhantomDummyWithTarget(e,t,n,r){let i=new Hs(e.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new bs(r)).input;if(i){let e,r;ys(t)&&!n?(e=t,r=L.getFirstElementChild(t)):(e=L.getParentElement(t),r=n?t:L.getNextElementSibling(t)),e&&L.insertBefore(e,i,r)}}},Gs=class{_win;_updateQueue=new Set;_updateTimer;_lastUpdateQueueTime=0;_changedParents=new WeakSet;_updateDummyInputsTimer;_dummyElements=[];_dummyCallbacks=new WeakMap;constructor(e){this._win=e}add(e,t){!this._dummyCallbacks.has(e)&&this._win&&(this._dummyElements.push(new bs(e)),this._dummyCallbacks.set(e,t),this.domChanged=this._domChanged)}remove(e){this._dummyElements=this._dummyElements.filter(t=>{let n=t.get();return n&&n!==e}),this._dummyCallbacks.delete(e),this._dummyElements.length===0&&delete this.domChanged}dispose(){let e=this._win?.();this._updateTimer&&(e?.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(e?.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}_domChanged=e=>{this._changedParents.has(e)||(this._changedParents.add(e),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=this._win?.().setTimeout(()=>{delete this._updateDummyInputsTimer;for(let e of this._dummyElements){let t=e.get();if(t){let e=this._dummyCallbacks.get(t);if(e){let n=L.getParentNode(t);(!n||this._changedParents.has(n))&&e()}}}this._changedParents=new WeakSet},Vs)))};updatePositions(e){this._win&&(this._updateQueue.add(e),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){this._updateTimer||=this._win?.().setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+Vs<=Date.now()){let e=new Map,t=[];for(let n of this._updateQueue)t.push(n(e));this._updateQueue.clear();for(let e of t)e();e.clear()}else this._scheduledUpdatePositions()},Vs)}},Ks=class{_tabster;_addTimer;_getWindow;_wrappers=[];_element;_isOutside=!1;_firstDummy;_lastDummy;_transformElements=new Set;_callForDefaultAction;constructor(e,t,n,r,i,a,o){let s=t.get();if(!s)throw Error(`No element`);this._tabster=e,this._getWindow=e.getWindow,this._callForDefaultAction=o;let c=s.__tabsterDummy;if((c||this)._wrappers.push({manager:n,priority:r,tabbable:!0}),c)return c;s.__tabsterDummy=this;let l=i?.dummyInputsPosition,u=s.tagName;this._isOutside=l?l===Co.Outside:(a||u===`UL`||u===`OL`||u===`TABLE`)&&!(u===`LI`||u===`TD`||u===`TH`),this._firstDummy=new Hs(this._getWindow,this._isOutside,{isFirst:!0},t),this._lastDummy=new Hs(this._getWindow,this._isOutside,{isFirst:!1},t);let d=this._firstDummy.input;d&&e._dummyObserver.add(d,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=t,this._addDummyInputs()}dispose(e,t){if((this._wrappers=this._wrappers.filter(n=>n.manager!==e&&!t)).length===0){delete(this._element?.get()).__tabsterDummy;for(let e of this._transformElements)e.removeEventListener(`scroll`,this._addTransformOffsets);this._transformElements.clear();let e=this._getWindow();this._addTimer&&(e.clearTimeout(this._addTimer),delete this._addTimer);let t=this._firstDummy?.input;t&&this._tabster._dummyObserver.remove(t),this._firstDummy?.dispose(),this._lastDummy?.dispose()}}_onFocus(e,t,n,r){let i=this._getCurrent();i&&(!t.useDefaultAction||this._callForDefaultAction)&&i.manager.getHandler(e)?.(t,n,r)}_onFocusIn=(e,t,n)=>{this._onFocus(!0,e,t,n)};_onFocusOut=(e,t,n)=>{this._onFocus(!1,e,t,n)};moveOut=e=>{let t=this._firstDummy,n=this._lastDummy;if(t&&n){this._ensurePosition();let r=t.input,i=n.input,a=this._element?.get();if(r&&i&&a){let t;e?(r.tabIndex=0,t=r):(i.tabIndex=0,t=i),t&&Io(t)}}};moveOutWithDefaultAction=(e,t)=>{let n=this._firstDummy,r=this._lastDummy;if(n&&r){this._ensurePosition();let i=n.input,a=r.input,o=this._element?.get();if(i&&a&&o){let s;e?!n.isOutside&&this._tabster.focusable.isFocusable(o,!0,!0,!0)?s=o:(n.useDefaultAction=!0,i.tabIndex=0,s=i):(r.useDefaultAction=!0,a.tabIndex=0,s=a),s&&o.dispatchEvent(new os({by:`root`,owner:o,next:null,relatedEvent:t}))&&Io(s)}}};setTabbable=(e,t)=>{for(let n of this._wrappers)if(n.manager===e){n.tabbable=t;break}let n=this._getCurrent();if(n){let e=n.tabbable?0:-1,t=this._firstDummy?.input;t&&(t.tabIndex=e),t=this._lastDummy?.input,t&&(t.tabIndex=e)}};_getCurrent(){return this._wrappers.sort((e,t)=>e.tabbable===t.tabbable?e.priority-t.priority:e.tabbable?-1:1),this._wrappers[0]}_addDummyInputs=()=>{this._addTimer||=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0)};_ensurePosition(){let e=this._element?.get(),t=this._firstDummy?.input,n=this._lastDummy?.input;if(!(!e||!t||!n))if(this._isOutside){let r=L.getParentNode(e);if(r){let i=L.getNextSibling(e);i!==n&&L.insertBefore(r,n,i),L.getPreviousElementSibling(e)!==t&&L.insertBefore(r,t,e)}}else{L.getLastElementChild(e)!==n&&L.appendChild(e,n);let r=L.getFirstElementChild(e);r&&r!==t&&r.parentNode&&L.insertBefore(r.parentNode,t,r)}}_addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)};_computeTransformOffsets=e=>{let t=this._firstDummy?.input||this._lastDummy?.input,n=this._transformElements,r=new Set,i=0,a=0,o=this._getWindow();for(let s=t;s&&s.nodeType===Node.ELEMENT_NODE;s=L.getParentElement(s)){let t=e.get(s);if(t===void 0){let n=o.getComputedStyle(s).transform;n&&n!==`none`&&(t={scrollTop:s.scrollTop,scrollLeft:s.scrollLeft}),e.set(s,t||null)}t&&(r.add(s),n.has(s)||s.addEventListener(`scroll`,this._addTransformOffsets),i+=t.scrollTop,a+=t.scrollLeft)}for(let e of n)r.has(e)||e.removeEventListener(`scroll`,this._addTransformOffsets);return this._transformElements=r,()=>{this._firstDummy?.setTopLeft(i,a),this._lastDummy?.setTopLeft(i,a)}}};function qs(e){return e?.__tabsterDummyContainer?.get()||null}function Js(e,t){let n=JSON.stringify(e);return t===!0?n:{[po]:n}}function Ys(e,t){for(let n of Object.keys(t)){let r=t[n];r?e[n]=r:delete e[n]}}function Xs(e,t,n){let r;if(n){let t=e.getAttribute(po);if(t)try{r=JSON.parse(t)}catch{}}r||={},Ys(r,t),Object.keys(r).length>0?e.setAttribute(po,Js(r,!0)):e.removeAttribute(po)}var Zs=class extends Ws{_tabster;_setFocused;constructor(e,t,n,r){super(e,t,Us.Root,r,void 0,!0),this._setHandlers(this._onDummyInputFocus),this._tabster=e,this._setFocused=n}_onDummyInputFocus=e=>{if(e.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);let t=this._element.get();if(t){this._setFocused(!0);let n=this._tabster.focusedElement.getFirstOrLastTabbable(e.isFirst,{container:t,ignoreAccessibility:!0});if(n){Io(n);return}}e.input?.blur()}}},Qs=class extends Ps{uid;_dummyManager;_sys;_isFocused=!1;_setFocusedTimer;_onDispose;constructor(e,t,n,r,i){super(e,t,r),this._onDispose=n;let a=e.getWindow;this.uid=ks(a,t),this._sys=i,(e.controlTab||e.rootDummyInputs)&&this.addDummyInputs();let o=a().document;o.addEventListener(Oo,this._onFocusIn),o.addEventListener(ko,this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||=new Zs(this._tabster,this._element,this._setFocused,this._sys)}dispose(){this._onDispose(this);let e=this._tabster.getWindow(),t=e.document;t.removeEventListener(Oo,this._onFocusIn),t.removeEventListener(ko,this._onFocusOut),this._setFocusedTimer&&(e.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._dummyManager?.dispose(),this._remove()}moveOutWithDefaultAction(e,t){let n=this._dummyManager;if(n)n.moveOutWithDefaultAction(e,t);else{let n=this.getElement();n&&Zs.moveWithPhantomDummy(this._tabster,n,!0,e,t)}}_setFocused=e=>{if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===e)return;let t=this._element.get();t&&(e?(this._isFocused=!0,this._dummyManager?.setTabbable(!1),t.dispatchEvent(new ps({element:t}))):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{delete this._setFocusedTimer,this._isFocused=!1,this._dummyManager?.setTabbable(!0),t.dispatchEvent(new ms({element:t}))},0))};_onFocusIn=e=>{let t=this._tabster.getParent,n=this._element.get(),r=e.composedPath()[0];do{if(r===n){this._setFocused(!0);return}r&&=t(r)}while(r)};_onFocusOut=()=>{this._setFocused(!1)};_add(){}_remove(){}},$s=class{_tabster;_win;_autoRoot;_autoRootWaiting=!1;_roots={};_forceDummy=!1;rootById={};constructor(e,t){this._tabster=e,this._win=e.getWindow,this._autoRoot=t,e.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootCreate=()=>{let e=this._win().document,t=e.body;if(t){this._autoRootUnwait(e);let n=this._autoRoot;if(n)return Xs(t,{root:n},!0),To(this._tabster,t),wo(this._tabster,t)?.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,e.addEventListener(`readystatechange`,this._autoRootCreate))};_autoRootUnwait(e){e.removeEventListener(`readystatechange`,this._autoRootCreate),this._autoRootWaiting=!1}dispose(){let e=this._win();this._autoRootUnwait(e.document),delete this._autoRoot,Object.keys(this._roots).forEach(e=>{this._roots[e]&&(this._roots[e].dispose(),delete this._roots[e])}),this.rootById={}}createRoot(e,t,n){let r=new Qs(this._tabster,e,this._onRootDispose,t,n);return this._roots[r.id]=r,this._forceDummy&&r.addDummyInputs(),r}addDummyInputs(){this._forceDummy=!0;let e=this._roots;for(let t of Object.keys(e))e[t].addDummyInputs()}static getRootByUId(e,t){let n=e().__tabsterInstance;return n&&n.root.rootById[t]}static getTabsterContext(e,t,n={}){if(!t.ownerDocument)return;let{checkRtl:r,referenceElement:i}=n,a=e.getParent;e.drainInitQueue();let o,s,c,l,u=!1,d,f,p,m,h=i||t,g={};for(;h&&(!o||r);){let n=wo(e,h);if(r&&p===void 0){let e=h.dir;e&&(p=e.toLowerCase()===`rtl`)}if(!n){h=a(h);continue}let i=h.tagName;(n.uncontrolled||i===`IFRAME`||i===`WEBVIEW`)&&e.focusable.isVisible(h)&&(m=h),!l&&n.focusable?.excludeFromMover&&!c&&(u=!0);let _=n.modalizer,v=n.groupper,y=n.mover;!s&&_&&(s=_),!c&&v&&(!s||_)&&(s?(!v.isActive()&&v.getProps().tabbability&&s.userId!==e.modalizer?.activeId&&(s=void 0,c=v),f=v):c=v),!l&&y&&(!s||_)&&(!v||h!==t)&&h.contains(t)&&(l=y,d=!!c&&c!==v),n.root&&(o=n.root),n.focusable?.ignoreKeydown&&Object.assign(g,n.focusable.ignoreKeydown),h=a(h)}if(!o){let n=e.root;n._autoRoot&&t.ownerDocument?.body&&(o=n._autoRootCreate())}return c&&!l&&(d=!0),o?{root:o,modalizer:s,groupper:c,mover:l,groupperBeforeMover:d,modalizerInGroupper:f,rtl:r?!!p:void 0,uncontrolled:m,excludedFromMover:u,ignoreKeydown:e=>!!g[e.key]}:void 0}static getRoot(e,t){let n=e.getParent;for(let r=t;r;r=n(r)){let t=wo(e,r)?.root;if(t)return t}}onRoot(e,t){t?delete this.rootById[e.uid]:this.rootById[e.uid]=e}_onRootDispose=e=>{delete this._roots[e.id]}},ec=class{_tabster;constructor(e){this._tabster=e}dispose(){}getProps(e){let t=wo(this._tabster,e);return t&&t.focusable||{}}isFocusable(e,t,n,r){return Ms(e,ho)&&(t||e.tabIndex!==-1)?(n||this.isVisible(e))&&(r||this.isAccessible(e)):!1}isVisible(e){if(!e.ownerDocument||e.nodeType!==Node.ELEMENT_NODE||Rs(e))return!1;let t=e.ownerDocument.body.getBoundingClientRect();return!(t.width===0&&t.height===0)}isAccessible(e){for(let t=e;t;t=L.getParentElement(t)){let e=wo(this._tabster,t);if(this._isHidden(t)||!e?.focusable?.ignoreAriaDisabled&&this._isDisabled(t))return!1}return!0}_isDisabled(e){return e.hasAttribute(`disabled`)}_isHidden(e){let t=e.getAttribute(`aria-hidden`);return!!(t&&t.toLowerCase()===`true`&&!this._tabster.modalizer?.isAugmented(e))}findFirst(e,t){return this.findElement({...e},t)}findLast(e,t){return this.findElement({isBackward:!0,...e},t)}findNext(e,t){return this.findElement({...e},t)}findPrev(e,t){return this.findElement({...e,isBackward:!0},t)}findDefault(e,t){return this.findElement({...e,acceptCondition:t=>this.isFocusable(t,e.includeProgrammaticallyFocusable)&&!!this.getProps(t).isDefault},t)||null}findAll(e){return this._findElements(!0,e)||[]}findElement(e,t){let n=this._findElements(!1,e,t);return n&&n[0]}_findElements(e,t,n){let{container:r,currentElement:i=null,includeProgrammaticallyFocusable:a,useActiveModalizer:o,ignoreAccessibility:s,modalizerId:c,isBackward:l,onElement:u}=t;n||={};let d=[],{acceptCondition:f}=t,p=!!f;if(!r)return null;f||=e=>this.isFocusable(e,a,!1,s);let m={container:r,modalizerUserId:c===void 0&&o?this._tabster.modalizer?.activeId:c||$s.getTabsterContext(this._tabster,r)?.modalizer?.userId,from:i||r,isBackward:l,isFindAll:e,acceptCondition:f,hasCustomCondition:p,includeProgrammaticallyFocusable:a,ignoreAccessibility:s,cachedGrouppers:{},cachedRadioGroups:{}},h=xs(r.ownerDocument,r,e=>this._acceptElement(e,m));if(!h)return null;let g=t=>{let r=m.foundElement??m.foundBackward;return r&&d.push(r),e?r&&(m.found=!1,delete m.foundElement,delete m.foundBackward,delete m.fromCtx,m.from=r,u&&!u(r))?!1:!!(r||t):(r&&n&&(n.uncontrolled=$s.getTabsterContext(this._tabster,r)?.uncontrolled),!!(t&&!r))};if(i||(n.outOfDOMOrder=!0),i&&L.nodeContains(r,i))h.currentNode=i;else if(l){let e=Fs(r);if(!e)return null;if(this._acceptElement(e,m)===NodeFilter.FILTER_ACCEPT&&!g(!0))return m.skippedFocusable&&(n.outOfDOMOrder=!0),d;h.currentNode=e}do l?h.previousNode():h.nextNode();while(g());return m.skippedFocusable&&(n.outOfDOMOrder=!0),d.length?d:null}_acceptElement(e,t){if(t.found)return NodeFilter.FILTER_ACCEPT;let n=t.foundBackward;if(n&&(e===n||!L.nodeContains(n,e)))return t.found=!0,t.foundElement=n,NodeFilter.FILTER_ACCEPT;let r=t.container;if(e===r)return NodeFilter.FILTER_SKIP;if(!L.nodeContains(r,e)||qs(e)||L.nodeContains(t.rejectElementsFrom,e))return NodeFilter.FILTER_REJECT;let i=t.currentCtx=$s.getTabsterContext(this._tabster,e);if(!i)return NodeFilter.FILTER_SKIP;if(Ds(e))return this.isFocusable(e,void 0,!0,!0)&&(t.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!t.hasCustomCondition&&(e.tagName===`IFRAME`||e.tagName===`WEBVIEW`))return this.isVisible(e)&&i.modalizer?.userId===this._tabster.modalizer?.activeId?(t.found=!0,t.rejectElementsFrom=t.foundElement=e,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!t.ignoreAccessibility&&!this.isAccessible(e))return this.isFocusable(e,!1,!0,!0)&&(t.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let a,o=t.fromCtx;o||=t.fromCtx=$s.getTabsterContext(this._tabster,t.from);let s=o?.mover,c=i.groupper,l=i.mover;if(a=this._tabster.modalizer?.acceptElement(e,t),a!==void 0&&(t.skippedFocusable=!0),a===void 0&&(c||l||s)){let n=c?.getElement(),i=s?.getElement(),o=l?.getElement();if(o&&L.nodeContains(i,o)&&L.nodeContains(r,i)&&(!n||!l||L.nodeContains(i,n))&&(l=s,o=i),n){if(n===r||!L.nodeContains(r,n))c=void 0;else if(!L.nodeContains(n,e))return NodeFilter.FILTER_REJECT}if(o){if(!L.nodeContains(r,o))l=void 0;else if(!L.nodeContains(o,e))return NodeFilter.FILTER_REJECT}c&&l&&(o&&n&&!L.nodeContains(n,o)?l=void 0:c=void 0),c&&(a=c.acceptElement(e,t)),l&&(a=l.acceptElement(e,t))}if(a===void 0&&(a=t.acceptCondition(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,a===NodeFilter.FILTER_SKIP&&this.isFocusable(e,!1,!0,!0)&&(t.skippedFocusable=!0)),a===NodeFilter.FILTER_ACCEPT&&!t.found){if(!t.isFindAll&&zs(e)&&!e.checked){let n=e.name,r=t.cachedRadioGroups[n];if(r||(r=Bs(e),r&&(t.cachedRadioGroups[n]=r)),r?.checked&&r.checked!==e)return NodeFilter.FILTER_SKIP}t.isBackward?(t.foundBackward=e,a=NodeFilter.FILTER_SKIP):(t.found=!0,t.foundElement=e)}return a}},tc={Tab:`Tab`,Enter:`Enter`,Escape:`Escape`,Space:` `,PageUp:`PageUp`,PageDown:`PageDown`,End:`End`,Home:`Home`,ArrowLeft:`ArrowLeft`,ArrowUp:`ArrowUp`,ArrowRight:`ArrowRight`,ArrowDown:`ArrowDown`},nc=class{_val;_callbacks=[];dispose(){this._callbacks=[],delete this._val}subscribe(e){let t=this._callbacks;t.indexOf(e)<0&&t.push(e)}subscribeFirst(e){let t=this._callbacks,n=t.indexOf(e);n>=0&&t.splice(n,1),t.unshift(e)}unsubscribe(e){let t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}setVal(e,t){this._val!==e&&(this._val=e,this._callCallbacks(e,t))}getVal(){return this._val}trigger(e,t){this._callCallbacks(e,t)}_callCallbacks(e,t){this._callbacks.forEach(n=>n(e,t))}};function rc(e,t){let n=e.getParent,r=t;do{let t=wo(e,r)?.uncontrolled;if(t&&e.uncontrolled.isUncontrolledCompletely(r,!!t.completely))return r;r=n(r)}while(r)}var ic={[go.Restorer]:0,[go.Deloser]:1,[go.EscapeGroupper]:2},ac=class e extends nc{static _lastResetElement;static _isTabbingTimer;static isTabbing=!1;_tabster;_win;_nextVal;_lastVal;_asyncFocus;constructor(e,t){super(),this._tabster=e,this._win=t,e.queueInit(this._init)}_init=()=>{let e=this._win(),t=e.document;t.addEventListener(Oo,this._onFocusIn,!0),t.addEventListener(ko,this._onFocusOut,!0),e.addEventListener(`keydown`,this._onKeyDown,!0);let n=L.getActiveElement(t);n&&n!==t.body&&this._setFocusedElement(n),this.subscribe(this._onChanged)};dispose(){super.dispose();let t=this._win(),n=t.document;n.removeEventListener(Oo,this._onFocusIn,!0),n.removeEventListener(ko,this._onFocusOut,!0),t.removeEventListener(`keydown`,this._onKeyDown,!0),this.unsubscribe(this._onChanged);let r=this._asyncFocus;r&&(t.clearTimeout(r.timeout),delete this._asyncFocus),delete e._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(t,n){let r=e._lastResetElement,i=r&&r.get();i&&L.nodeContains(n,i)&&delete e._lastResetElement,i=t._nextVal?.element?.get(),i&&L.nodeContains(n,i)&&delete t._nextVal,r=t._lastVal,i=r&&r.get(),i&&L.nodeContains(n,i)&&delete t._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){let e=this._lastVal?.get();return(!e||e&&!js(e.ownerDocument,e))&&(this._lastVal=e=void 0),e}focus(e,t,n,r){return this._tabster.focusable.isFocusable(e,t,!1,n)?(e.focus({preventScroll:r}),!0):!1}focusDefault(e){let t=this._tabster.focusable.findDefault({container:e});return t?(this._tabster.focusedElement.focus(t),!0):!1}getFirstOrLastTabbable(t,n){let{container:r,ignoreAccessibility:i}=n,a;if(r){let n=$s.getTabsterContext(this._tabster,r);n&&(a=e.findNextTabbable(this._tabster,n,r,void 0,void 0,!t,i)?.element)}return a&&!L.nodeContains(r,a)&&(a=void 0),a||void 0}_focusFirstOrLast(e,t){let n=this.getFirstOrLastTabbable(e,t);return n?(this.focus(n,!1,!0),!0):!1}focusFirst(e){return this._focusFirstOrLast(!0,e)}focusLast(e){return this._focusFirstOrLast(!1,e)}resetFocus(t){if(!this._tabster.focusable.isVisible(t))return!1;if(this._tabster.focusable.isFocusable(t,!0,!0,!0))this.focus(t);else{let n=t.getAttribute(`tabindex`),r=t.getAttribute(`aria-hidden`);t.tabIndex=-1,t.setAttribute(`aria-hidden`,`true`),e._lastResetElement=new bs(t),this.focus(t,!0,!0),this._setOrRemoveAttribute(t,`tabindex`,n),this._setOrRemoveAttribute(t,`aria-hidden`,r)}return!0}requestAsyncFocus(e,t,n){let r=this._tabster.getWindow(),i=this._asyncFocus;if(i){if(ic[e]>ic[i.source])return;r.clearTimeout(i.timeout)}this._asyncFocus={source:e,callback:t,timeout:r.setTimeout(()=>{this._asyncFocus=void 0,t()},n)}}cancelAsyncFocus(e){let t=this._asyncFocus;t?.source===e&&(this._tabster.getWindow().clearTimeout(t.timeout),this._asyncFocus=void 0)}_setOrRemoveAttribute(e,t,n){n===null?e.removeAttribute(t):e.setAttribute(t,n)}_setFocusedElement(t,n,r){if(this._tabster._noop)return;let i={relatedTarget:n};if(t){let n=e._lastResetElement?.get();if(e._lastResetElement=void 0,n===t||Ds(t))return;i.isFocusedProgrammatically=r;let a=$s.getTabsterContext(this._tabster,t)?.modalizer?.userId;a&&(i.modalizerId=a)}let a=this._nextVal={element:t?new bs(t):void 0,detail:i};t&&t!==this._val&&this._validateFocusedElement(t),this._nextVal===a&&this.setVal(t,i),this._nextVal=void 0}setVal(e,t){super.setVal(e,t),e&&(this._lastVal=new bs(e))}_onFocusIn=e=>{let t=e.composedPath()[0];t&&this._setFocusedElement(t,e.detail.relatedTarget,e.detail.isFocusedProgrammatically)};_onFocusOut=e=>{this._setFocusedElement(void 0,e.detail?.originalEvent.relatedTarget)};static findNextTabbable(t,n,r,i,a,o,s){let c=r||n.root.getElement();if(!c)return null;let l=null,u=e._isTabbingTimer,d=t.getWindow();u&&d.clearTimeout(u),e.isTabbing=!0,e._isTabbingTimer=d.setTimeout(()=>{delete e._isTabbingTimer,e.isTabbing=!1},0);let f=n.modalizer,p=n.groupper,m=n.mover,h=n=>{if(l=n.findNextTabbable(i,a,o,s),i&&!l?.element){let a=n!==f&&L.getParentElement(n.getElement());if(a){let c=$s.getTabsterContext(t,i,{referenceElement:a});if(c){let i=n.getElement(),u=o?i:i&&Fs(i)||i;u&&(l=e.findNextTabbable(t,c,r,u,a,o,s),l&&(l.outOfDOMOrder=!0))}}}};if(p&&m)h(n.groupperBeforeMover?p:m);else if(p)h(p);else if(m)h(m);else if(f)h(f);else{let e={container:c,currentElement:i,referenceElement:a,ignoreAccessibility:s,useActiveModalizer:!0},n={};l={element:t.focusable[o?`findPrev`:`findNext`](e,n),outOfDOMOrder:n.outOfDOMOrder,uncontrolled:n.uncontrolled}}return l}_validateFocusedElement=e=>{};_onKeyDown=t=>{if(t.key!==tc.Tab||t.ctrlKey)return;let n=this.getVal();if(!n||!n.ownerDocument||n.contentEditable===`true`)return;let r=this._tabster,i=r.controlTab,a=$s.getTabsterContext(r,n);if(!a||a.ignoreKeydown(t))return;let o=t.shiftKey,s=e.findNextTabbable(r,a,void 0,n,void 0,o,!0),c=a.root.getElement();if(!c)return;let l=s?.element,u=rc(r,n);if(l){let e=s.uncontrolled;if(a.uncontrolled||L.nodeContains(e,n)){if(!s.outOfDOMOrder&&e===a.uncontrolled||u&&!L.nodeContains(u,l))return;Ws.addPhantomDummyWithTarget(r,n,o,l);return}if(e&&r.focusable.isVisible(e)||l.tagName===`IFRAME`&&r.focusable.isVisible(l)){c.dispatchEvent(new os({by:`root`,owner:c,next:l,relatedEvent:t}))&&Ws.moveWithPhantomDummy(r,e??l,!1,o,t);return}(i||s?.outOfDOMOrder)&&c.dispatchEvent(new os({by:`root`,owner:c,next:l,relatedEvent:t}))&&(t.preventDefault(),t.stopImmediatePropagation(),Io(l))}else !u&&c.dispatchEvent(new os({by:`root`,owner:c,next:null,relatedEvent:t}))&&a.root.moveOutWithDefaultAction(o,t)};_onChanged=(e,t)=>{if(e)e.dispatchEvent(new is(t));else{let e=this._lastVal?.get();if(e){let n={...t},r=$s.getTabsterContext(this._tabster,e)?.modalizer?.userId;r&&(n.modalizerId=r),e.dispatchEvent(new as(n))}}}},oc=class extends nc{_keyborg;constructor(e){super(),this._keyborg=Ho(e()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),Uo(this._keyborg),delete this._keyborg)}_onChange=e=>{this.setVal(e,void 0)};setNavigatingWithKeyboard(e){this._keyborg?.setVal(e)}isNavigatingWithKeyboard(){return!!this._keyborg?.isNavigatingWithKeyboard()}};function sc(e,t,n,r){if(typeof MutationObserver>`u`)return()=>{};let i=t.getWindow,a,o=e=>{let r=new Set;for(let i of e){let e=i.target,a=i.removedNodes,o=i.addedNodes;if(i.type===`attributes`)i.attributeName===`data-tabster`&&(r.has(e)||n(t,e));else{for(let n=0;n<a.length;n++){let i=a[n];r.add(i),s(i,!0),t._dummyObserver.domChanged?.(e)}for(let n=0;n<o.length;n++)s(o[n]),t._dummyObserver.domChanged?.(e)}}r.clear(),t.modalizer?.hiddenUpdate()};function s(t,n){a||=_s(i).elementByUId,c(t,n);let r=xs(e,t,e=>c(e,n));if(r)for(;r.nextNode(););}function c(e,r){if(!e.getAttribute)return NodeFilter.FILTER_SKIP;let i=e.__tabsterElementUID;return i&&a&&(r?delete a[i]:a[i]??=new bs(e)),(wo(t,e)||e.hasAttribute(`data-tabster`))&&n(t,e,r),NodeFilter.FILTER_SKIP}let l=L.createMutationObserver(o);return r&&s(i().document.body),l.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[po]}),()=>{l.disconnect()}}var cc=class{_isUncontrolledCompletely;constructor(e){this._isUncontrolledCompletely=e}isUncontrolledCompletely(e,t){let n=this._isUncontrolledCompletely?.(e,t);return n===void 0?t:n}},lc=0,uc=`aria-hidden`,dc=class extends Ws{constructor(e,t,n){super(t,e,Us.Modalizer,n),this._setHandlers((n,r)=>{let i=e.get(),a=i&&$s.getRoot(t,i)?.getElement(),o=n.input,s;if(a&&o){let e=qs(o),n=$s.getTabsterContext(t,e||o);n&&(s=ac.findNextTabbable(t,n,a,o,void 0,r,!0)?.element),s&&Io(s)}})}},fc=class extends Ps{userId;_isActive;_wasFocused=0;_onDispose;_activeElements;dummyManager;constructor(e,t,n,r,i,a){super(e,t,r),this.userId=r.id,this._onDispose=n,this._activeElements=a,e.controlTab||(this.dummyManager=new dc(this._element,e,i))}makeActive(e){if(this._isActive!==e){this._isActive=e;let t=this.getElement();if(t){let n=this._activeElements,r=n.map(e=>e.get()).indexOf(t);e?r<0&&n.push(new bs(t)):r>=0&&n.splice(r,1)}this._dispatchEvent(e)}}focused(e){return e||(this._wasFocused=++lc),this._wasFocused}setProps(e){e.id&&(this.userId=e.id),this._props={...e}}dispose(){this.makeActive(!1),this._onDispose(this),this.dummyManager?.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(e){return L.nodeContains(this.getElement(),e)}findNextTabbable(e,t,n,r){if(!this.getElement())return null;let i=this._tabster,a=null,o=!1,s,c=e&&$s.getRoot(i,e)?.getElement();if(c){let l={container:c,currentElement:e,referenceElement:t,ignoreAccessibility:r,useActiveModalizer:!0},u={};a=i.focusable[n?`findPrev`:`findNext`](l,u),!a&&this._props.isTrapped&&i.modalizer?.activeId?(a=i.focusable[n?`findLast`:`findFirst`]({container:c,ignoreAccessibility:r,useActiveModalizer:!0},u),a===null&&(a=e),o=!0):o=!!u.outOfDOMOrder,s=u.uncontrolled}return{element:a,uncontrolled:s,outOfDOMOrder:o}}_dispatchEvent(e,t){let n=this.getElement(),r=!1;if(n){let i=t?this._activeElements.map(e=>e.get()):[n];for(let t of i)if(t){let i={id:this.userId,element:n},a=e?new us(i):new ds(i);t.dispatchEvent(a),a.defaultPrevented&&(r=!0)}}return r}_remove(){}},pc=class{_tabster;_win;_restoreModalizerFocusTimer;_modalizers;_parts;_augMap;_aug;_hiddenUpdateTimer;_alwaysAccessibleSelector;_accessibleCheck;_activationHistory;activeId;currentIsOthersAccessible;activeElements;constructor(e,t,n){this._tabster=e,this._win=e.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=t,this._accessibleCheck=n,this._activationHistory=[],this.activeElements=[],e.controlTab||e.root.addDummyInputs(),this._win().addEventListener(`keydown`,this._onKeyDown,!0),e.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){let e=this._win();e.removeEventListener(`keydown`,this._onKeyDown,!0),Object.keys(this._modalizers).forEach(e=>{this._modalizers[e]&&(this._modalizers[e].dispose(),delete this._modalizers[e])}),e.clearTimeout(this._restoreModalizerFocusTimer),e.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(e,t,n){let r=new fc(this._tabster,e,this._onModalizerDispose,t,n,this.activeElements),i=r.id,a=t.id;this._modalizers[i]=r;let o=this._parts[a];o||=this._parts[a]={},o[i]=r;let s=this._tabster.focusedElement.getFocusedElement()??null;return e!==s&&L.nodeContains(e,s)&&(a===this.activeId?r.makeActive(!0):this.setActive(r)),r}_onModalizerDispose=e=>{let t=e.id,n=e.userId,r=this._parts[n];if(delete this._modalizers[t],r&&(delete r[t],Object.keys(r).length===0)){delete this._parts[n];let e=this._activationHistory,t=[],r;for(let i=e.length;i--;){let a=e[i];a!==n&&a!==r&&(r=a,(a||t.length>0)&&t.unshift(a))}if(this._activationHistory=t,this.activeId===n){let e=t[0],n=e?Object.values(this._parts[e])[0]:void 0;this.setActive(n)}}};_onKeyDown=e=>{if(e.key!==tc.Escape)return;let t=this._tabster,n=t.focusedElement.getFocusedElement();if(n){let r=$s.getTabsterContext(t,n),i=r?.modalizer;if(r&&!r.groupper&&i?.isActive()&&!r.ignoreKeydown(e)){let n=i.userId;if(n){let r=this._parts[n];if(r){let n=Object.keys(r).map(e=>{let n=r[e],i=n.getElement(),a;return i&&(a=wo(t,i)?.groupper),n&&i&&a?{el:i,focusedSince:n.focused(!0)}:{focusedSince:0}}).filter(e=>e.focusedSince>0).sort((e,t)=>e.focusedSince>t.focusedSince?-1:+(e.focusedSince<t.focusedSince));if(n.length){let r=n[0].el;r&&t.groupper?.handleKeyPress(r,e,!0)}}}}}};isAugmented(e){return this._augMap.has(e)}hiddenUpdate(){this._hiddenUpdateTimer||=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250)}setActive(e){let t=e?.userId,n=this.activeId;if(n===t)return;if(this.activeId=t,n){let e=this._parts[n];if(e)for(let t of Object.keys(e))e[t].makeActive(!1)}if(t){let e=this._parts[t];if(e)for(let t of Object.keys(e))e[t].makeActive(!0)}this.currentIsOthersAccessible=e?.getProps().isOthersAccessible,this.hiddenUpdate();let r=this._activationHistory;r[0]!==t&&(t!==void 0||r.length>0)&&r.unshift(t)}focus(e,t,n){let r=this._tabster,i=$s.getTabsterContext(r,e)?.modalizer;if(i){this.setActive(i);let e=i.getProps(),a=i.getElement();if(a){if(t===void 0&&(t=e.isNoFocusFirst),!t&&r.keyboardNavigation.isNavigatingWithKeyboard()&&r.focusedElement.focusFirst({container:a})||(n===void 0&&(n=e.isNoFocusDefault),!n&&r.focusedElement.focusDefault(a)))return!0;r.focusedElement.resetFocus(a)}}return!1}activate(e){let t=e?$s.getTabsterContext(this._tabster,e)?.modalizer:void 0;return!e||t?(this.setActive(t),!0):!1}acceptElement(e,t){let n=t.modalizerUserId,r=t.currentCtx?.modalizer;if(n)for(let t of this.activeElements){let n=t.get();if(n&&(L.nodeContains(e,n)||n===e))return NodeFilter.FILTER_SKIP}let i=n===r?.userId||!n&&r?.getProps().isAlwaysAccessible?void 0:NodeFilter.FILTER_SKIP;return i!==void 0&&(t.skippedFocusable=!0),i}_hiddenUpdate(){let e=this._tabster,t=e.getWindow().document.body,n=this.activeId,r=this._parts,i=[],a=[],o=this._alwaysAccessibleSelector,s=o?Array.from(L.querySelectorAll(t,o)):[],c=[];for(let e of Object.keys(r)){let t=r[e];for(let r of Object.keys(t)){let o=t[r],l=o.getElement(),u=o.getProps().isAlwaysAccessible;l&&(e===n?(c.push(l),this.currentIsOthersAccessible||i.push(l)):u?s.push(l):a.push(l))}}let l=this._augMap,u=i.length>0?[...i,...s]:void 0,d=[],f=new WeakMap,p=(t,n)=>{let r=t.tagName;if(r===`SCRIPT`||r===`STYLE`)return;let i=!1;l.has(t)?n?i=!0:(l.delete(t),Ls(e,t,uc)):n&&!this._accessibleCheck?.(t,c)&&Ls(e,t,uc,`true`)&&(l.set(t,!0),i=!0),i&&(d.push(new bs(t)),f.set(t,!0))},m=t=>{for(let n=L.getFirstElementChild(t);n;n=L.getNextElementSibling(n)){let t=!1,r=!1,i=!1;if(u){let a=e.getParent(n);for(let e of u){if(n===e){t=!0;break}if(L.nodeContains(n,e)){r=!0;break}else L.nodeContains(e,a)&&(i=!0)}r||n.__tabsterElementFlags?.noDirectAriaHidden?m(n):!t&&!i&&p(n,!0)}else p(n,!1)}};u||s.forEach(e=>p(e,!1)),a.forEach(e=>p(e,!0)),t&&m(t),this._aug?.map(e=>e.get()).forEach(e=>{e&&!f.get(e)&&p(e,!1)}),this._aug=d,this._augMap=f}_onFocus=(e,t)=>{let n=this._tabster,r=e&&$s.getTabsterContext(n,e);if(!r||!e)return;let i=this._augMap;for(let t=e;t;t=L.getParentElement(t))i.has(t)&&(i.delete(t),Ls(n,t,uc));let a=r.modalizer,o=wo(n,e),s=o?.modalizer;if(s&&(s.focused(),s.userId===this.activeId&&o.groupper)){let t=n.getParent(e),r=t&&$s.getTabsterContext(n,t)?.modalizer;if(r)a=r;else{this.setActive(void 0);return}}if(a?.focused(),a?.userId===this.activeId){this.currentIsOthersAccessible=a?.getProps().isOthersAccessible;return}if(t.isFocusedProgrammatically||this.currentIsOthersAccessible||a?.getProps().isAlwaysAccessible)this.setActive(a);else{let t=this._win();t.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=t.setTimeout(()=>this._restoreModalizerFocus(e),100)}};_restoreModalizerFocus(e){let t=e?.ownerDocument;if(!e||!t)return;let n=this._tabster.focusedElement.getFocusedElement(),r=n&&$s.getTabsterContext(this._tabster,n)?.modalizer;if(!n||n&&r?.userId===this.activeId)return;let i=this._tabster,a=$s.getTabsterContext(i,e),o=a?.modalizer,s=this.activeId;if(!o&&!s||o&&s===o.userId)return;let c=a?.root.getElement();if(c){let t=i.focusable.findFirst({container:c,useActiveModalizer:!0});if(t){if(e.compareDocumentPosition(t)&document.DOCUMENT_POSITION_PRECEDING&&(t=i.focusable.findLast({container:c,useActiveModalizer:!0}),!t))throw Error(`Something went wrong.`);i.focusedElement.focus(t);return}}e.blur()}};function mc(e,t,n){let r=e.core;if(!r.modalizer){let e=new pc(r,t,n);r.modalizer=e,r.attrHandlers.set(`modalizer`,(t,n,r,i,a)=>n?r.id&&i?.id!==r.id?(n.dispose(),e.createModalizer(t,r,a)):(n.setProps(r),n):e.createModalizer(t,r,a))}return r.modalizer}var hc=[`input`,`textarea`,`*[contenteditable]`].join(`, `),gc=class extends Ws{_tabster;_getMemorized;constructor(e,t,n,r){super(t,e,Us.Mover,r),this._tabster=t,this._getMemorized=n,this._setHandlers(this._onFocusDummyInput)}_onFocusDummyInput=e=>{let t=this._element.get(),n=e.input;if(t&&n){let r=$s.getTabsterContext(this._tabster,t),i;r&&(i=ac.findNextTabbable(this._tabster,r,void 0,n,void 0,!e.isFirst,!0)?.element);let a=this._getMemorized()?.get();a&&this._tabster.focusable.isFocusable(a)&&(i=a),i&&Io(i)}}},_c=1,vc=2,yc=3,bc=class extends Ps{_unobserve;_intersectionObserver;_setCurrentTimer;_current;_prevCurrent;_visible={};_fullyVisible;_win;_onDispose;_allElements;_updateQueue;_updateTimer;visibilityTolerance;dummyManager;constructor(e,t,n,r,i){super(e,t,r),this._win=e.getWindow,this.visibilityTolerance=r.visibilityTolerance??.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=n,e.controlTab||(this.dummyManager=new gc(this._element,e,()=>r.memorizeCurrent?this._current:void 0,i))}dispose(){this._onDispose(this),this._intersectionObserver&&(this._intersectionObserver.disconnect(),delete this._intersectionObserver),delete this._current,delete this._fullyVisible,delete this._allElements,delete this._updateQueue,this._unobserve&&(this._unobserve(),delete this._unobserve);let e=this._win();this._setCurrentTimer&&(e.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(e.clearTimeout(this._updateTimer),delete this._updateTimer),this.dummyManager?.dispose(),delete this.dummyManager}setCurrent(e){e?this._current=new bs(e):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{delete this._setCurrentTimer;let e=[];this._current!==this._prevCurrent&&(e.push(this._current),e.push(this._prevCurrent),this._prevCurrent=this._current);for(let t of e){let e=t?.get();if(e&&this._allElements?.get(e)===this){let t=this._props;if(e&&(t.visibilityAware!==void 0||t.trackState)){let t=this.getState(e);t&&e.dispatchEvent(new ss(t))}}}}))}getCurrent(){return this._current?.get()||null}findNextTabbable(e,t,n,r){let i=this.getElement(),a=i&&qs(e)===i;if(!i)return null;let o=null,s=!1,c;if(this._props.tabbable||a||e&&!L.nodeContains(i,e)){let a={currentElement:e,referenceElement:t,container:i,ignoreAccessibility:r,useActiveModalizer:!0},l={};o=this._tabster.focusable[n?`findPrev`:`findNext`](a,l),s=!!l.outOfDOMOrder,c=l.uncontrolled}return{element:o,uncontrolled:c,outOfDOMOrder:s}}acceptElement(e,t){if(!ac.isTabbing)return t.currentCtx?.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;let{memorizeCurrent:n,visibilityAware:r,hasDefault:i=!0}=this._props,a=this.getElement();if(a&&(n||r||i)&&(!L.nodeContains(a,t.from)||qs(t.from)===a)){let e;if(n){let n=this._current?.get();n&&t.acceptCondition(n)&&(e=n)}if(!e&&i&&(e=this._tabster.focusable.findDefault({container:a,useActiveModalizer:!0})),!e&&r&&(e=this._tabster.focusable.findElement({container:a,useActiveModalizer:!0,isBackward:t.isBackward,acceptCondition:e=>{let n=ks(this._win,e),i=this._visible[n];return a!==e&&!!this._allElements?.get(e)&&t.acceptCondition(e)&&(i===_o.Visible||i===_o.PartiallyVisible&&(r===_o.PartiallyVisible||!this._fullyVisible))}})),e)return t.found=!0,t.foundElement=e,t.rejectElementsFrom=a,t.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_onIntersection=e=>{for(let t of e){let e=t.target,n=ks(this._win,e),r,i=this._fullyVisible;if(t.intersectionRatio>=.25?(r=t.intersectionRatio>=.75?_o.Visible:_o.PartiallyVisible,r===_o.Visible&&(i=n)):r=_o.Invisible,this._visible[n]!==r){r===void 0?(delete this._visible[n],i===n&&delete this._fullyVisible):(this._visible[n]=r,this._fullyVisible=i);let t=this.getState(e);t&&e.dispatchEvent(new ss(t))}}};_observeState(){let e=this.getElement();if(this._unobserve||!e||typeof MutationObserver>`u`)return;let t=this._win(),n=this._allElements=new WeakMap,r=this._tabster.focusable,i=this._updateQueue=[],a=L.createMutationObserver(e=>{for(let t of e){let e=t.target,n=t.removedNodes,r=t.addedNodes;if(t.type===`attributes`)t.attributeName===`tabindex`&&i.push({element:e,type:vc});else{for(let e=0;e<n.length;e++)i.push({element:n[e],type:yc});for(let e=0;e<r.length;e++)i.push({element:r[e],type:_c})}}u()}),o=(e,t)=>{let r=n.get(e);r&&t&&(this._intersectionObserver?.unobserve(e),n.delete(e)),!r&&!t&&(n.set(e,this),this._intersectionObserver?.observe(e))},s=e=>{let t=r.isFocusable(e);n.get(e)?t||o(e,!0):t&&o(e)},c=e=>{let{mover:n}=d(e);if(n&&n!==this)if(n.getElement()===e&&r.isFocusable(e))o(e);else return;let i=xs(t.document,e,e=>{let{mover:t,groupper:n}=d(e);if(t&&t!==this)return NodeFilter.FILTER_REJECT;let i=n?.getFirst(!0);return n&&n.getElement()!==e&&i&&i!==e?NodeFilter.FILTER_REJECT:(r.isFocusable(e)&&o(e),NodeFilter.FILTER_SKIP)});if(i)for(i.currentNode=e;i.nextNode(););},l=e=>{n.get(e)&&o(e,!0);for(let t=L.getFirstElementChild(e);t;t=L.getNextElementSibling(t))l(t)},u=()=>{!this._updateTimer&&i.length&&(this._updateTimer=t.setTimeout(()=>{delete this._updateTimer;for(let{element:e,type:t}of i)switch(t){case vc:s(e);break;case _c:c(e);break;case yc:l(e);break}i=this._updateQueue=[]},0))},d=e=>{let t={};for(let n=e;n;n=L.getParentElement(n)){let e=wo(this._tabster,n);if(e&&(e.groupper&&!t.groupper&&(t.groupper=e.groupper),e.mover)){t.mover=e.mover;break}}return t};i.push({element:e,type:_c}),u(),a.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`tabindex`]}),this._unobserve=()=>{a.disconnect()}}getState(e){let t=ks(this._win,e);if(t in this._visible){let n=this._visible[t]||_o.Invisible;return{isCurrent:this._current?this._current.get()===e:void 0,visibility:n}}}};function xc(e,t,n,r,i,a,o,s){let c=n<i?i-n:o<e?e-o:0,l=r<a?a-r:s<t?t-s:0;return c===0?l:l===0?c:Math.sqrt(c*c+l*l)}var Sc=class{_tabster;_win;_movers;_ignoredInputTimer;_ignoredInputResolve;constructor(e,t){this._tabster=e,this._win=t,this._movers={},e.queueInit(this._init)}_init=()=>{let e=this._win();e.addEventListener(`keydown`,this._onKeyDown,!0),e.addEventListener(Xo,this._onMoveFocus),e.addEventListener(Zo,this._onMemorizedElement),this._tabster.focusedElement.subscribe(this._onFocus)};dispose(){let e=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),this._ignoredInputResolve?.(!1),this._ignoredInputTimer&&(e.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),e.removeEventListener(`keydown`,this._onKeyDown,!0),e.removeEventListener(Xo,this._onMoveFocus),e.removeEventListener(Zo,this._onMemorizedElement),Object.keys(this._movers).forEach(e=>{this._movers[e]&&(this._movers[e].dispose(),delete this._movers[e])})}createMover(e,t,n){let r=new bc(this._tabster,e,this._onMoverDispose,t,n);return this._movers[r.id]=r,r}_onMoverDispose=e=>{delete this._movers[e.id]};_onFocus=e=>{let t=e,n=e;for(let r=L.getParentElement(e);r;r=L.getParentElement(r)){let e=wo(this._tabster,r)?.mover;e&&(e.setCurrent(n),t=void 0),!t&&this._tabster.focusable.isFocusable(r)&&(t=n=r)}};moveFocus(e,t){return this._moveFocus(e,t)}_moveFocus(e,t,n){let r=this._tabster,i=$s.getTabsterContext(r,e,{checkRtl:!0});if(!i||!i.mover||i.excludedFromMover||n&&i.ignoreKeydown(n))return null;let a=i.mover,o=a.getElement();if(i.groupperBeforeMover){let e=i.groupper;if(e&&!e.isActive(!0)){for(let t=L.getParentElement(e.getElement());t&&t!==o;t=L.getParentElement(t))if(wo(r,t)?.groupper?.isActive(!0))return null}else return null}if(!o)return null;let s=r.focusable,c=a.getProps(),l=c.direction||yo.Both,u=l===yo.Both,d=u||l===yo.Vertical,f=u||l===yo.Horizontal,p=l===yo.GridLinear,m=p||l===yo.Grid,h=c.cyclic,g,_,v,y=0,b=0;if(m&&(v=e.getBoundingClientRect(),y=Math.ceil(v.left),b=Math.floor(v.right)),i.rtl&&(t===bo.ArrowRight?t=bo.ArrowLeft:t===bo.ArrowLeft&&(t=bo.ArrowRight)),t===bo.ArrowDown&&d||t===bo.ArrowRight&&(f||m))if(g=s.findNext({currentElement:e,container:o,useActiveModalizer:!0}),g&&m){let e=Math.ceil(g.getBoundingClientRect().left);!p&&b>e&&(g=void 0)}else !g&&h&&(g=s.findFirst({container:o,useActiveModalizer:!0}));else if(t===bo.ArrowUp&&d||t===bo.ArrowLeft&&(f||m))if(g=s.findPrev({currentElement:e,container:o,useActiveModalizer:!0}),g&&m){let e=Math.floor(g.getBoundingClientRect().right);!p&&e>y&&(g=void 0)}else !g&&h&&(g=s.findLast({container:o,useActiveModalizer:!0}));else if(t===bo.Home)m?s.findElement({container:o,currentElement:e,useActiveModalizer:!0,isBackward:!0,acceptCondition:t=>{if(!s.isFocusable(t))return!1;let n=Math.ceil(t.getBoundingClientRect().left??0);return t!==e&&y<=n?!0:(g=t,!1)}}):g=s.findFirst({container:o,useActiveModalizer:!0});else if(t===bo.End)m?s.findElement({container:o,currentElement:e,useActiveModalizer:!0,acceptCondition:t=>{if(!s.isFocusable(t))return!1;let n=Math.ceil(t.getBoundingClientRect().left??0);return t!==e&&y>=n?!0:(g=t,!1)}}):g=s.findLast({container:o,useActiveModalizer:!0});else if(t===bo.PageUp){if(s.findElement({currentElement:e,container:o,useActiveModalizer:!0,isBackward:!0,acceptCondition:e=>s.isFocusable(e)?Cs(this._win,e,a.visibilityTolerance)?(g=e,!1):!0:!1}),m&&g){let e=Math.ceil(g.getBoundingClientRect().left);s.findElement({currentElement:g,container:o,useActiveModalizer:!0,acceptCondition:t=>{if(!s.isFocusable(t))return!1;let n=Math.ceil(t.getBoundingClientRect().left);return y<n||e>=n?!0:(g=t,!1)}})}_=!1}else if(t===bo.PageDown){if(s.findElement({currentElement:e,container:o,useActiveModalizer:!0,acceptCondition:e=>s.isFocusable(e)?Cs(this._win,e,a.visibilityTolerance)?(g=e,!1):!0:!1}),m&&g){let e=Math.ceil(g.getBoundingClientRect().left);s.findElement({currentElement:g,container:o,useActiveModalizer:!0,isBackward:!0,acceptCondition:t=>{if(!s.isFocusable(t))return!1;let n=Math.ceil(t.getBoundingClientRect().left);return y>n||e<=n?!0:(g=t,!1)}})}_=!0}else if(m){let n=t===bo.ArrowUp,r=y,i=Math.ceil(v.top),a=b,c=Math.floor(v.bottom),l,u,d=0;s.findAll({container:o,currentElement:e,isBackward:n,onElement:e=>{let t=e.getBoundingClientRect(),o=Math.ceil(t.left),s=Math.ceil(t.top),f=Math.floor(t.right),p=Math.floor(t.bottom);if(n&&i<p||!n&&c>s)return!0;let m=Math.ceil(Math.min(a,f))-Math.floor(Math.max(r,o)),h=Math.ceil(Math.min(a-r,f-o));if(m>0&&h>=m){let t=m/h;t>d&&(l=e,d=t)}else if(d===0){let t=xc(r,i,a,c,o,s,f,p);(u===void 0||t<u)&&(u=t,l=e)}else if(d>0)return!1;return!0}}),g=l}return g&&(!n||n&&o.dispatchEvent(new os({by:`mover`,owner:o,next:g,relatedEvent:n})))?(_!==void 0&&ws(this._win,g,_),n&&(n.preventDefault(),n.stopImmediatePropagation()),Io(g),g):null}_onKeyDown=async e=>{if(this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),this._ignoredInputResolve?.(!1),e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)return;let t=e.key,n;if(t===tc.ArrowDown?n=bo.ArrowDown:t===tc.ArrowRight?n=bo.ArrowRight:t===tc.ArrowUp?n=bo.ArrowUp:t===tc.ArrowLeft?n=bo.ArrowLeft:t===tc.PageDown?n=bo.PageDown:t===tc.PageUp?n=bo.PageUp:t===tc.Home?n=bo.Home:t===tc.End&&(n=bo.End),!n)return;let r=this._tabster.focusedElement.getFocusedElement();!r||await this._isIgnoredInput(r,t)||this._moveFocus(r,n,e)};_onMoveFocus=e=>{let t=e.composedPath()[0],n=e.detail?.key;t&&n!==void 0&&!e.defaultPrevented&&(this._moveFocus(t,n),e.stopImmediatePropagation())};_onMemorizedElement=e=>{let t=e.composedPath()[0],n=e.detail?.memorizedElement;if(t){let r=$s.getTabsterContext(this._tabster,t)?.mover;r&&(n&&!L.nodeContains(r.getElement(),n)&&(n=void 0),r.setCurrent(n),e.stopImmediatePropagation())}};async _isIgnoredInput(e,t){if(e.getAttribute(`aria-expanded`)===`true`&&(e.hasAttribute(`aria-activedescendant`)||e.getAttribute(`role`)===`combobox`))return!0;if(Ms(e,hc)){let n=0,r=0,i=0,a;if(e.tagName===`INPUT`||e.tagName===`TEXTAREA`){let a=e.type;if(i=(e.value||``).length,a===`email`||a===`number`){if(i){let n=L.getSelection(e);if(n){let e=n.toString().length,r=t===tc.ArrowLeft||t===tc.ArrowUp;if(n.modify(`extend`,r?`backward`:`forward`,`character`),e!==n.toString().length)return n.modify(`extend`,r?`forward`:`backward`,`character`),!0;i=0}}}else{let t=e.selectionStart;if(t===null)return a===`hidden`;n=t||0,r=e.selectionEnd||0}}else e.contentEditable===`true`&&(a=new Promise(t=>{this._ignoredInputResolve=e=>{delete this._ignoredInputResolve,t(e)};let a=this._win();this._ignoredInputTimer&&a.clearTimeout(this._ignoredInputTimer);let{anchorNode:o,focusNode:s,anchorOffset:c,focusOffset:l}=L.getSelection(e)||{};this._ignoredInputTimer=a.setTimeout(()=>{delete this._ignoredInputTimer;let{anchorNode:t,focusNode:a,anchorOffset:u,focusOffset:d}=L.getSelection(e)||{};if(t!==o||a!==s||u!==c||d!==l){this._ignoredInputResolve?.(!1);return}if(n=u||0,r=d||0,i=e.textContent?.length||0,t&&a&&L.nodeContains(e,t)&&L.nodeContains(e,a)&&t!==e){let i=!1,o=e=>{if(e===t)i=!0;else if(e===a)return!0;let s=e.textContent;if(s&&!L.getFirstChild(e)){let e=s.length;i?a!==t&&(r+=e):(n+=e,r+=e)}let c=!1;for(let t=L.getFirstChild(e);t&&!c;t=t.nextSibling)c=o(t);return c};o(e)}this._ignoredInputResolve?.(!0)},0)}));if(a&&!await a||n!==r||n>0&&(t===tc.ArrowLeft||t===tc.ArrowUp||t===tc.Home)||n<i&&(t===tc.ArrowRight||t===tc.ArrowDown||t===tc.End))return!0}return!1}};function Cc(e){let t=e.core;if(!t.mover){let e=new Sc(t,t.getWindow);t.mover=e,t.attrHandlers.set(`mover`,(t,n,r,i,a)=>n?(n.setProps(r),n):e.createMover(t,r,a))}return t.mover}var wc=class extends Ws{constructor(e,t,n,r){super(n,e,Us.Groupper,r,!0),this._setHandlers((r,i,a)=>{let o=e.get(),s=r.input;if(o&&s){let e=$s.getTabsterContext(n,s);if(e){let c;c=t.findNextTabbable(a||void 0,void 0,i,!0)?.element,c||=ac.findNextTabbable(n,e,void 0,r.isOutside?s:Is(o,!i),void 0,i,!0)?.element,c&&Io(c)}}})}},Tc=class extends Ps{_shouldTabInside=!1;_first;_onDispose;dummyManager;constructor(e,t,n,r,i){super(e,t,r),this.makeTabbable(!1),this._onDispose=n,e.controlTab||(this.dummyManager=new wc(this._element,this,e,i))}dispose(){this._onDispose(this),this._element.get(),this.dummyManager?.dispose(),delete this.dummyManager,delete this._first}findNextTabbable(e,t,n,r){let i=this.getElement();if(!i)return null;let a=qs(e)===i;if(!this._shouldTabInside&&e&&L.nodeContains(i,e)&&!a)return{element:void 0,outOfDOMOrder:!0};let o=this.getFirst(!0);if(!e||!L.nodeContains(i,e)||a)return{element:o,outOfDOMOrder:!0};let s=this._tabster,c=null,l=!1,u;if(this._shouldTabInside&&o){let a={container:i,currentElement:e,referenceElement:t,ignoreAccessibility:r,useActiveModalizer:!0},o={};c=s.focusable[n?`findPrev`:`findNext`](a,o),l=!!o.outOfDOMOrder,!c&&this._props.tabbability===xo.LimitedTrapFocus&&(c=s.focusable[n?`findLast`:`findFirst`]({container:i,ignoreAccessibility:r,useActiveModalizer:!0},o),l=!0),u=o.uncontrolled}return{element:c,uncontrolled:u,outOfDOMOrder:l}}makeTabbable(e){this._shouldTabInside=e||!this._props.tabbability}isActive(e){let t=this.getElement()||null,n=!0;for(let e=L.getParentElement(t);e;e=L.getParentElement(e)){let t=wo(this._tabster,e)?.groupper;t&&(t._shouldTabInside||(n=!1))}let r=n?this._props.tabbability?this._shouldTabInside:!1:void 0;if(r&&e){let e=this._tabster.focusedElement.getFocusedElement();e&&(r=e!==this.getFirst(!0))}return r}getFirst(e){let t=this.getElement(),n;if(t){if(e&&this._tabster.focusable.isFocusable(t))return t;n=this._first?.get(),n||(n=this._tabster.focusable.findFirst({container:t,useActiveModalizer:!0})||void 0,n&&this.setFirst(n))}return n}setFirst(e){e?this._first=new bs(e):delete this._first}acceptElement(e,t){let n=t.cachedGrouppers,r=L.getParentElement(this.getElement()),i=r&&$s.getTabsterContext(this._tabster,r),a=i?.groupper,o=i?.groupperBeforeMover?a:void 0,s,c=e=>{let t=n[e.id],r;return t?r=t.isActive:(r=this.isActive(!0),t=n[e.id]={isActive:r}),r};if(o&&(s=o.getElement(),!c(o)&&s&&t.container!==s&&L.nodeContains(t.container,s)))return t.skippedFocusable=!0,NodeFilter.FILTER_REJECT;let l=c(this),u=this.getElement();if(u&&l!==!0){if(u===e&&a&&(s||=a.getElement(),s&&!c(a)&&L.nodeContains(t.container,s)&&s!==t.container)||u!==e&&L.nodeContains(u,e))return t.skippedFocusable=!0,NodeFilter.FILTER_REJECT;let r=n[this.id],i;if(i=`first`in r?r.first:r.first=this.getFirst(!0),i&&t.acceptCondition(i))return t.rejectElementsFrom=u,t.skippedFocusable=!0,i===t.from?NodeFilter.FILTER_REJECT:(t.found=!0,t.foundElement=i,NodeFilter.FILTER_ACCEPT)}}},Ec=class{_tabster;_updateTimer;_win;_current={};_grouppers={};constructor(e,t){this._tabster=e,this._win=t,e.queueInit(this._init)}_init=()=>{let e=this._win();this._tabster.focusedElement.subscribeFirst(this._onFocus);let t=e.document,n=L.getActiveElement(t);n&&this._onFocus(n),t.addEventListener(`mousedown`,this._onMouseDown,!0),e.addEventListener(`keydown`,this._onKeyDown,!0),e.addEventListener(Qo,this._onMoveFocus)};dispose(){let e=this._win();this._tabster.focusedElement.cancelAsyncFocus(go.EscapeGroupper),this._current={},this._updateTimer&&(e.clearTimeout(this._updateTimer),delete this._updateTimer),this._tabster.focusedElement.unsubscribe(this._onFocus),e.document.removeEventListener(`mousedown`,this._onMouseDown,!0),e.removeEventListener(`keydown`,this._onKeyDown,!0),e.removeEventListener(Qo,this._onMoveFocus),Object.keys(this._grouppers).forEach(e=>{this._grouppers[e]&&(this._grouppers[e].dispose(),delete this._grouppers[e])})}createGroupper(e,t,n){let r=this._tabster,i=new Tc(r,e,this._onGroupperDispose,t,n);this._grouppers[i.id]=i;let a=r.focusedElement.getFocusedElement();return a&&L.nodeContains(e,a)&&!this._updateTimer&&(this._updateTimer=this._win().setTimeout(()=>{delete this._updateTimer,a===r.focusedElement.getFocusedElement()&&this._updateCurrent(a)},0)),i}forgetCurrentGrouppers(){this._current={}}_onGroupperDispose=e=>{delete this._grouppers[e.id]};_onFocus=e=>{e&&this._updateCurrent(e)};_onMouseDown=e=>{let t=e.target;for(;t&&!this._tabster.focusable.isFocusable(t);)t=this._tabster.getParent(t);t&&this._updateCurrent(t)};_updateCurrent(e){this._updateTimer&&(this._win().clearTimeout(this._updateTimer),delete this._updateTimer);let t=this._tabster,n={};for(let r=t.getParent(e);r;r=t.getParent(r)){let i=wo(t,r)?.groupper;if(i){n[i.id]=!0,this._current[i.id]=i;let t=i.isActive()||e!==r&&(!i.getProps().delegated||i.getFirst(!1)!==e);i.makeTabbable(t)}}for(let e of Object.keys(this._current)){let t=this._current[e];t.id in n||(t.makeTabbable(!1),t.setFirst(void 0),delete this._current[e])}}_onKeyDown=e=>{if(e.key!==tc.Enter&&e.key!==tc.Escape||e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)return;let t=this._tabster.focusedElement.getFocusedElement();t&&this.handleKeyPress(t,e)};_onMoveFocus=e=>{let t=e.composedPath()[0],n=e.detail?.action;t&&n!==void 0&&!e.defaultPrevented&&(n===So.Enter?this._enterGroupper(t):this._escapeGroupper(t),e.stopImmediatePropagation())};_enterGroupper(e,t){let n=this._tabster,r=$s.getTabsterContext(n,e),i=r?.groupper||r?.modalizerInGroupper,a=i?.getElement();if(i&&a&&(e===a||i.getProps().delegated&&e===i.getFirst(!1))){let r=n.focusable.findNext({container:a,currentElement:e,useActiveModalizer:!0});if(r&&(!t||t&&a.dispatchEvent(new os({by:`groupper`,owner:a,next:r,relatedEvent:t}))))return t&&(t.preventDefault(),t.stopImmediatePropagation()),r.focus(),r}return null}_escapeGroupper(e,t,n){let r=this._tabster,i=$s.getTabsterContext(r,e),a=i?.groupper||i?.modalizerInGroupper,o=a?.getElement();if(a&&o&&L.nodeContains(o,e)){let i;if(e!==o||n)i=a.getFirst(!0);else{let e=L.getParentElement(o);a=(e?$s.getTabsterContext(r,e):void 0)?.groupper,i=a?.getFirst(!0)}if(i&&(!t||t&&o.dispatchEvent(new os({by:`groupper`,owner:o,next:i,relatedEvent:t}))))return a&&a.makeTabbable(!1),i.focus(),i}return null}moveFocus(e,t){return t===So.Enter?this._enterGroupper(e):this._escapeGroupper(e)}handleKeyPress(e,t,n){let r=this._tabster,i=$s.getTabsterContext(r,e);if(i&&(i?.groupper||i?.modalizerInGroupper)){if(r.focusedElement.cancelAsyncFocus(go.EscapeGroupper),i.ignoreKeydown(t))return;if(t.key===tc.Enter)this._enterGroupper(e,t);else if(t.key===tc.Escape){let i=r.focusedElement.getFocusedElement();r.focusedElement.requestAsyncFocus(go.EscapeGroupper,()=>{i!==r.focusedElement.getFocusedElement()&&(n&&!i||!n)||this._escapeGroupper(e,t,n)},0)}}}};function Dc(e){let t=e.core;if(!t.groupper){let e=new Ec(t,t.getWindow);t.groupper=e,t.attrHandlers.set(`groupper`,(t,n,r,i,a)=>n?(n.setProps(r),n):e.createGroupper(t,r,a))}return t.groupper}var Oc=class extends Ps{_hasFocus=!1;constructor(e,t,n){if(super(e,t,n),this._props.type===vo.Source){let e=this._element?.get();e?.addEventListener(`focusout`,this._onFocusOut),e?.addEventListener(`focusin`,this._onFocusIn),this._hasFocus=L.nodeContains(e,e&&L.getActiveElement(e.ownerDocument))}}dispose(){if(this._props.type===vo.Source){let e=this._element?.get();e?.removeEventListener(`focusout`,this._onFocusOut),e?.removeEventListener(`focusin`,this._onFocusIn),this._hasFocus&&this._tabster.getWindow().document.body.dispatchEvent(new fs)}}_onFocusOut=e=>{let t=this._element?.get();t&&e.relatedTarget===null&&t.dispatchEvent(new fs),t&&!L.nodeContains(t,e.relatedTarget)&&(this._hasFocus=!1)};_onFocusIn=()=>{this._hasFocus=!0}},kc=class e{static DEPTH=10;_stack=[];_getWindow;constructor(e){this._getWindow=e}push(t){this._stack[this._stack.length-1]?.get()!==t&&(this._stack.length>e.DEPTH&&this._stack.shift(),this._stack.push(new bs(t)))}pop(e=()=>!0){let t=this._getWindow().document;for(let n=this._stack.length-1;n>=0;n--){let n=this._stack.pop()?.get();if(n&&L.nodeContains(t.body,L.getParentElement(n))&&e(n))return n}}},Ac=class{_tabster;_history;_keyboardNavState;_focusedElementState;_getWindow;constructor(e){this._tabster=e,this._getWindow=e.getWindow,this._getWindow().addEventListener($o,this._onRestoreFocus),this._history=new kc(this._getWindow),this._keyboardNavState=e.keyboardNavigation,this._focusedElementState=e.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){let e=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),this._focusedElementState.cancelAsyncFocus(go.Restorer),e.removeEventListener($o,this._onRestoreFocus)}_onRestoreFocus=e=>{this._focusedElementState.cancelAsyncFocus(go.Restorer);let t=e.composedPath()[0];if(t){let e=wo(this._tabster,t)?.restorer?.getProps().id;this._focusedElementState.requestAsyncFocus(go.Restorer,()=>this._restoreFocus(t,e),0)}};_onFocusIn=e=>{e&&wo(this._tabster,e)?.restorer?.getProps().type===vo.Target&&this._history.push(e)};_restoreFocus=(e,t)=>{let n=this._getWindow().document;if(L.getActiveElement(n)!==n.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&L.nodeContains(n.body,e))return;let r=e=>{let t=wo(this._tabster,e)?.restorer?.getProps();return t?t.id:null};this._history.pop(e=>t===r(e))?.focus()};createRestorer(e,t){let n=new Oc(this._tabster,e,t);return t.type===vo.Target&&L.getActiveElement(e.ownerDocument)===e&&this._history.push(e),n}};function jc(e){let t=e.core;if(!t.restorer){let e=new Ac(t);t.restorer=e,t.attrHandlers.set(`restorer`,(t,n,r)=>n?(n.setProps(r),n):e.createRestorer(t,r))}return t.restorer}var Mc=class{keyboardNavigation;focusedElement;focusable;root;uncontrolled;core;constructor(e){this.keyboardNavigation=e.keyboardNavigation,this.focusedElement=e.focusedElement,this.focusable=e.focusable,this.root=e.root,this.uncontrolled=e.uncontrolled,this.core=e}},Nc=class{_storage;_unobserve;_win;_forgetMemorizedTimer;_forgetMemorizedElements=[];_wrappers=new Set;_initTimer;_initQueue=[];_version=`8.8.0`;_noop=!1;controlTab;rootDummyInputs;attrHandlers=new Map;keyboardNavigation;focusedElement;focusable;root;uncontrolled;internal;_dummyObserver;groupper;mover;outline;deloser;modalizer;observedElement;crossOrigin;restorer;getParent;constructor(e,t){this._storage=new WeakMap,this._win=e;let n=this.getWindow;t?.DOMAPI&&hs({...t.DOMAPI}),this.keyboardNavigation=new oc(n),this.focusedElement=new ac(this,n),this.focusable=new ec(this),this.root=new $s(this,t?.autoRoot),this.uncontrolled=new cc(t?.checkUncontrolledCompletely||t?.checkUncontrolledTrappingFocus),this.controlTab=t?.controlTab??!0,this.rootDummyInputs=!!t?.rootDummyInputs,this._dummyObserver=new Gs(n),this.getParent=t?.getParent??L.getParentNode,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:e=>{if(!this._unobserve){let t=n().document;this._unobserve=sc(t,this,To,e)}}},this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(e){e&&(this.getParent=e.getParent??this.getParent)}createTabster(e,t){let n=new Mc(this);return e||this._wrappers.add(n),this._mergeProps(t),n}disposeTabster(e,t){t?this._wrappers.clear():this._wrappers.delete(e),this._wrappers.size===0&&this.dispose()}dispose(){this.internal.stopObserver();let e=this._win;e?.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],e&&this._forgetMemorizedTimer&&(e.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),this.outline?.dispose(),this.crossOrigin?.dispose(),this.deloser?.dispose(),this.groupper?.dispose(),this.mover?.dispose(),this.modalizer?.dispose(),this.observedElement?.dispose(),this.restorer?.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),this.attrHandlers.clear(),As(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),e&&(vs(e),delete e.__tabsterInstance,delete this._win)}storageEntry(e,t){let n=this._storage,r=n.get(e);return r?t===!1&&Object.keys(r).length===0&&n.delete(e):t===!0&&(r={},n.set(e,r)),r}getWindow=()=>{if(!this._win)throw Error(`Using disposed Tabster.`);return this._win};forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let e=this._forgetMemorizedElements.shift();e;e=this._forgetMemorizedElements.shift())As(this.getWindow,e),ac.forgetMemorized(this.focusedElement,e)},0)))}queueInit(e){this._win&&(this._initQueue.push(e),this._initTimer||=this._win?.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0))}drainInitQueue(){if(!this._win)return;let e=this._initQueue;this._initQueue=[],e.forEach(e=>e())}};function Pc(e,t){let n=Ic(e);return n?n.createTabster(!1,t):(n=new Nc(e,t),e.__tabsterInstance=n,n.createTabster())}function Fc(e,t){e.core.disposeTabster(e,t)}function Ic(e){return e.__tabsterInstance}var Lc=e=>e;function Rc(e){let t=e?.defaultView||void 0,n=t?.__tabsterShadowDOMAPI;if(t)return Pc(t,{autoRoot:{},controlTab:!1,getParent:Za,checkUncontrolledCompletely:e=>e.firstElementChild?.hasAttribute(`data-is-focus-trap-zone-bumper`)===!0||void 0,DOMAPI:n})}function zc(e=Lc){let{targetDocument:t}=Gi(),n=M.useRef(null);return ha(()=>{let r=Rc(t);if(r)return n.current=e(r),()=>{Fc(r),n.current=null}},[t,e]),n}var Bc=e=>{zc();let t=Js(e,!0);return M.useMemo(()=>({[po]:t}),[t])},Vc=(e={})=>{let{circular:t,axis:n,memorizeCurrent:r=!0,tabbable:i,ignoreDefaultKeydown:a,unstable_hasDefault:o}=e;return zc(Cc),Bc({mover:{cyclic:!!t,direction:Hc(n??`vertical`),memorizeCurrent:r,tabbable:i,hasDefault:o},...a&&{focusable:{ignoreKeydown:a}}})};function Hc(e){switch(e){case`horizontal`:return yo.Horizontal;case`grid`:return yo.Grid;case`grid-linear`:return yo.GridLinear;case`both`:return yo.Both;default:return yo.Vertical}}var Uc=e=>(zc(Dc),Bc({groupper:{tabbability:Wc(e?.tabBehavior)},focusable:{ignoreKeydown:e?.ignoreDefaultKeydown}})),Wc=e=>{switch(e){case`unlimited`:return xo.Unlimited;case`limited`:return xo.Limited;case`limited-trap-focus`:return xo.LimitedTrapFocus;default:return}},Gc=()=>{let e=zc(),{targetDocument:t}=Gi();return{findAllFocusable:M.useCallback((t,n)=>t&&e.current?.focusable.findAll({container:t,acceptCondition:n})||[],[e]),findFirstFocusable:M.useCallback(t=>t&&e.current?.focusable.findFirst({container:t}),[e]),findLastFocusable:M.useCallback(t=>t&&e.current?.focusable.findLast({container:t}),[e]),findNextFocusable:M.useCallback((n,r={})=>{if(!e.current||!t||!n)return null;let{container:i=t.body}=r;return e.current.focusable.findNext({currentElement:n,container:i})},[e,t]),findPrevFocusable:M.useCallback((n,r={})=>{if(!e.current||!t||!n)return null;let{container:i=t.body}=r;return e.current.focusable.findPrev({currentElement:n,container:i})},[e,t])}},Kc=`data-fui-focus-visible`,qc=`data-fui-focus-within`;function Jc(e,t){if(Yc(e))return()=>void 0;let n={current:void 0},r=Ho(t);function i(e){r.isNavigatingWithKeyboard()&&Fa(e)&&(n.current=e,e.setAttribute(Kc,``))}function a(){n.current&&=(n.current.removeAttribute(Kc),void 0)}r.subscribe(e=>{e?i(t.document.activeElement):a()});let o=e=>{a();let t=e.composedPath()[0];i(t)},s=t=>{(!t.relatedTarget||Fa(t.relatedTarget)&&!e.contains(t.relatedTarget))&&a()};return e.addEventListener(Oo,o),e.addEventListener(`focusout`,s),e.focusVisible=!0,e.contains(t.document.activeElement)&&i(t.document.activeElement),()=>{a(),e.removeEventListener(Oo,o),e.removeEventListener(`focusout`,s),e.focusVisible=void 0,Uo(r)}}function Yc(e){return e?e.focusVisible?!0:Yc(e?.parentElement):!1}function Xc(e={}){let t=Gi(),n=M.useRef(null),r=e.targetDocument??t.targetDocument;return M.useEffect(()=>{if(r?.defaultView&&n.current)return Jc(n.current,r.defaultView)},[n,r]),n}function Zc(e,t){let n=Ho(t);n.subscribe(t=>{t||$c(e)});let r=t=>{n.isNavigatingWithKeyboard()&&el(t.target)&&Qc(e)},i=t=>{(!t.relatedTarget||el(t.relatedTarget)&&!e.contains(t.relatedTarget))&&$c(e)};return e.addEventListener(Oo,r),e.addEventListener(`focusout`,i),()=>{e.removeEventListener(Oo,r),e.removeEventListener(`focusout`,i),Uo(n)}}function Qc(e){e.setAttribute(qc,``)}function $c(e){e.removeAttribute(qc)}function el(e){return e?!!(e&&typeof e==`object`&&`classList`in e&&`contains`in e):!1}function tl(){let{targetDocument:e}=Gi(),t=M.useRef(null);return M.useEffect(()=>{if(e?.defaultView&&t.current)return Zc(t.current,e.defaultView)},[t,e]),t}function nl(){let{targetDocument:e}=Gi(),t=M.useRef(null);return M.useEffect(()=>{let n=e?.defaultView;if(n){let e=Ho(n);return t.current=e,()=>{Uo(e),t.current=null}}},[e]),t}function rl(e){let t=nl(),n=F(e);M.useEffect(()=>{let e=t.current;if(e){let t=e=>{n(e)};return e.subscribe(t),t(e.isNavigatingWithKeyboard()),()=>{e.unsubscribe(t)}}},[t,n])}var il=`data-tabster-never-hide`,al=e=>e.hasAttribute(il);function ol(e){mc(e,void 0,al),jc(e)}var sl=(e={})=>{let{trapFocus:t,alwaysFocusable:n,legacyTrapFocus:r}=e;zc(ol);let i=ba(`modal-`,e.id);return{modalAttributes:Bc({restorer:{type:vo.Source},...t&&{modalizer:{id:i,isOthersAccessible:!t,isAlwaysAccessible:n,isTrapped:r&&t}}}),triggerAttributes:Bc({restorer:{type:vo.Target}})}},cl=(...e)=>{"use no memo";let t=e.reduce((e,t)=>(t?.[`data-tabster`]&&e.push(t[po]),e),[]);return M.useMemo(()=>({[po]:t.length>0?t.reduce(ll):void 0}),t)},ll=(e,t)=>JSON.stringify(Object.assign(ul(e),ul(t))),ul=e=>{try{return JSON.parse(e)}catch{return{}}};function dl(){let e=nl();return M.useCallback(()=>e.current?.isNavigatingWithKeyboard()??!1,[e])}function fl(){let e=nl();return M.useCallback(t=>{var n;(n=e.current)==null||n.setVal(t)},[e])}function pl(e){let{targetDocument:t}=Gi(),n=F(e);M.useEffect(()=>{let e=Rc(t);if(e)return e.focusedElement.subscribe(n),()=>{e.focusedElement.unsubscribe(n),Fc(e)}},[n,t])}var R={2:`#050505`,4:`#0a0a0a`,6:`#0f0f0f`,8:`#141414`,10:`#1a1a1a`,12:`#1f1f1f`,14:`#242424`,16:`#292929`,18:`#2e2e2e`,20:`#333333`,22:`#383838`,24:`#3d3d3d`,26:`#424242`,28:`#474747`,30:`#4d4d4d`,32:`#525252`,34:`#575757`,36:`#5c5c5c`,38:`#616161`,40:`#666666`,42:`#6b6b6b`,44:`#707070`,46:`#757575`,48:`#7a7a7a`,50:`#808080`,52:`#858585`,54:`#8a8a8a`,56:`#8f8f8f`,58:`#949494`,60:`#999999`,62:`#9e9e9e`,64:`#a3a3a3`,66:`#a8a8a8`,68:`#adadad`,70:`#b3b3b3`,72:`#b8b8b8`,74:`#bdbdbd`,76:`#c2c2c2`,78:`#c7c7c7`,80:`#cccccc`,82:`#d1d1d1`,84:`#d6d6d6`,86:`#dbdbdb`,88:`#e0e0e0`,90:`#e6e6e6`,92:`#ebebeb`,94:`#f0f0f0`,96:`#f5f5f5`,98:`#fafafa`,99:`#fcfcfc`},ml={5:`rgba(255, 255, 255, 0.05)`,10:`rgba(255, 255, 255, 0.1)`,20:`rgba(255, 255, 255, 0.2)`,30:`rgba(255, 255, 255, 0.3)`,40:`rgba(255, 255, 255, 0.4)`,50:`rgba(255, 255, 255, 0.5)`,60:`rgba(255, 255, 255, 0.6)`,70:`rgba(255, 255, 255, 0.7)`,80:`rgba(255, 255, 255, 0.8)`,90:`rgba(255, 255, 255, 0.9)`},hl={5:`rgba(0, 0, 0, 0.05)`,10:`rgba(0, 0, 0, 0.1)`,20:`rgba(0, 0, 0, 0.2)`,30:`rgba(0, 0, 0, 0.3)`,40:`rgba(0, 0, 0, 0.4)`,50:`rgba(0, 0, 0, 0.5)`,60:`rgba(0, 0, 0, 0.6)`,70:`rgba(0, 0, 0, 0.7)`,80:`rgba(0, 0, 0, 0.8)`,90:`rgba(0, 0, 0, 0.9)`},gl={5:`rgba(26, 26, 26, 0.05)`,10:`rgba(26, 26, 26, 0.1)`,20:`rgba(26, 26, 26, 0.2)`,30:`rgba(26, 26, 26, 0.3)`,40:`rgba(26, 26, 26, 0.4)`,50:`rgba(26, 26, 26, 0.5)`,60:`rgba(26, 26, 26, 0.6)`,70:`rgba(26, 26, 26, 0.7)`,80:`rgba(26, 26, 26, 0.8)`,90:`rgba(26, 26, 26, 0.9)`},_l={5:`rgba(31, 31, 31, 0.05)`,10:`rgba(31, 31, 31, 0.1)`,20:`rgba(31, 31, 31, 0.2)`,30:`rgba(31, 31, 31, 0.3)`,40:`rgba(31, 31, 31, 0.4)`,50:`rgba(31, 31, 31, 0.5)`,60:`rgba(31, 31, 31, 0.6)`,70:`rgba(31, 31, 31, 0.7)`,80:`rgba(31, 31, 31, 0.8)`,90:`rgba(31, 31, 31, 0.9)`},vl={5:`rgba(36, 36, 36, 0.05)`,10:`rgba(36, 36, 36, 0.1)`,20:`rgba(36, 36, 36, 0.2)`,30:`rgba(36, 36, 36, 0.3)`,40:`rgba(36, 36, 36, 0.4)`,50:`rgba(36, 36, 36, 0.5)`,60:`rgba(36, 36, 36, 0.6)`,70:`rgba(36, 36, 36, 0.7)`,80:`rgba(36, 36, 36, 0.8)`,90:`rgba(36, 36, 36, 0.9)`},yl=`#ffffff`,bl=`#000000`,xl={shade50:`#130204`,shade40:`#230308`,shade30:`#420610`,shade20:`#590815`,shade10:`#690a19`,primary:`#750b1c`,tint10:`#861b2c`,tint20:`#962f3f`,tint30:`#ac4f5e`,tint40:`#d69ca5`,tint50:`#e9c7cd`,tint60:`#f9f0f2`},Sl={shade50:`#200205`,shade40:`#3b0509`,shade30:`#6e0811`,shade20:`#960b18`,shade10:`#b10e1c`,primary:`#c50f1f`,tint10:`#cc2635`,tint20:`#d33f4c`,tint30:`#dc626d`,tint40:`#eeacb2`,tint50:`#f6d1d5`,tint60:`#fdf3f4`},Cl={shade50:`#210809`,shade40:`#3f1011`,shade30:`#751d1f`,shade20:`#9f282b`,shade10:`#bc2f32`,primary:`#d13438`,tint10:`#d7494c`,tint20:`#dc5e62`,tint30:`#e37d80`,tint40:`#f1bbbc`,tint50:`#f8dadb`,tint60:`#fdf6f6`},wl={shade50:`#230900`,shade40:`#411200`,shade30:`#7a2101`,shade20:`#a62d01`,shade10:`#c43501`,primary:`#da3b01`,tint10:`#de501c`,tint20:`#e36537`,tint30:`#e9835e`,tint40:`#f4bfab`,tint50:`#f9dcd1`,tint60:`#fdf6f3`},Tl={shade50:`#200d03`,shade40:`#3d1805`,shade30:`#712d09`,shade20:`#9a3d0c`,shade10:`#b6480e`,primary:`#ca5010`,tint10:`#d06228`,tint20:`#d77440`,tint30:`#df8e64`,tint40:`#efc4ad`,tint50:`#f7dfd2`,tint60:`#fdf7f4`},El={shade50:`#271002`,shade40:`#4a1e04`,shade30:`#8a3707`,shade20:`#bc4b09`,shade10:`#de590b`,primary:`#f7630c`,tint10:`#f87528`,tint20:`#f98845`,tint30:`#faa06b`,tint40:`#fdcfb4`,tint50:`#fee5d7`,tint60:`#fff9f5`},Dl={shade50:`#291600`,shade40:`#4d2a00`,shade30:`#8f4e00`,shade20:`#c26a00`,shade10:`#e67e00`,primary:`#ff8c00`,tint10:`#ff9a1f`,tint20:`#ffa83d`,tint30:`#ffba66`,tint40:`#ffddb3`,tint50:`#ffedd6`,tint60:`#fffaf5`},Ol={shade50:`#251a00`,shade40:`#463100`,shade30:`#835b00`,shade20:`#b27c00`,shade10:`#d39300`,primary:`#eaa300`,tint10:`#edad1c`,tint20:`#efb839`,tint30:`#f2c661`,tint40:`#f9e2ae`,tint50:`#fcefd3`,tint60:`#fefbf4`},kl={shade50:`#282400`,shade40:`#4c4400`,shade30:`#817400`,shade20:`#c0ad00`,shade10:`#e4cc00`,primary:`#fde300`,tint10:`#fde61e`,tint20:`#fdea3d`,tint30:`#feee66`,tint40:`#fef7b2`,tint50:`#fffad6`,tint60:`#fffef5`},Al={shade50:`#1f1900`,shade40:`#3a2f00`,shade30:`#6c5700`,shade20:`#937700`,shade10:`#ae8c00`,primary:`#c19c00`,tint10:`#c8a718`,tint20:`#d0b232`,tint30:`#dac157`,tint40:`#ecdfa5`,tint50:`#f5eece`,tint60:`#fdfbf2`},jl={shade50:`#181202`,shade40:`#2e2103`,shade30:`#553e06`,shade20:`#745408`,shade10:`#89640a`,primary:`#986f0b`,tint10:`#a47d1e`,tint20:`#b18c34`,tint30:`#c1a256`,tint40:`#e0cea2`,tint50:`#efe4cb`,tint60:`#fbf8f2`},Ml={shade50:`#170e07`,shade40:`#2b1a0e`,shade30:`#50301a`,shade20:`#6c4123`,shade10:`#804d29`,primary:`#8e562e`,tint10:`#9c663f`,tint20:`#a97652`,tint30:`#bb8f6f`,tint40:`#ddc3b0`,tint50:`#edded3`,tint60:`#faf7f4`},Nl={shade50:`#0c1501`,shade40:`#162702`,shade30:`#294903`,shade20:`#376304`,shade10:`#427505`,primary:`#498205`,tint10:`#599116`,tint20:`#6ba02b`,tint30:`#85b44c`,tint40:`#bdd99b`,tint50:`#dbebc7`,tint60:`#f6faf0`},Pl={shade50:`#002111`,shade40:`#003d20`,shade30:`#00723b`,shade20:`#009b51`,shade10:`#00b85f`,primary:`#00cc6a`,tint10:`#19d279`,tint20:`#34d889`,tint30:`#5ae0a0`,tint40:`#a8f0cd`,tint50:`#cff7e4`,tint60:`#f3fdf8`},Fl={shade50:`#031a02`,shade40:`#063004`,shade30:`#0b5a08`,shade20:`#0e7a0b`,shade10:`#11910d`,primary:`#13a10e`,tint10:`#27ac22`,tint20:`#3db838`,tint30:`#5ec75a`,tint40:`#a7e3a5`,tint50:`#cef0cd`,tint60:`#f2fbf2`},Il={shade50:`#031403`,shade40:`#052505`,shade30:`#094509`,shade20:`#0c5e0c`,shade10:`#0e700e`,primary:`#107c10`,tint10:`#218c21`,tint20:`#359b35`,tint30:`#54b054`,tint40:`#9fd89f`,tint50:`#c9eac9`,tint60:`#f1faf1`},Ll={shade50:`#021102`,shade40:`#032003`,shade30:`#063b06`,shade20:`#085108`,shade10:`#0a5f0a`,primary:`#0b6a0b`,tint10:`#1a7c1a`,tint20:`#2d8e2d`,tint30:`#4da64d`,tint40:`#9ad29a`,tint50:`#c6e7c6`,tint60:`#f0f9f0`},Rl={shade50:`#001d1f`,shade40:`#00373a`,shade30:`#00666d`,shade20:`#008b94`,shade10:`#00a5af`,primary:`#00b7c3`,tint10:`#18bfca`,tint20:`#32c8d1`,tint30:`#58d3db`,tint40:`#a6e9ed`,tint50:`#cef3f5`,tint60:`#f2fcfd`},zl={shade50:`#001516`,shade40:`#012728`,shade30:`#02494c`,shade20:`#026467`,shade10:`#037679`,primary:`#038387`,tint10:`#159195`,tint20:`#2aa0a4`,tint30:`#4cb4b7`,tint40:`#9bd9db`,tint50:`#c7ebec`,tint60:`#f0fafa`},Bl={shade50:`#000f12`,shade40:`#001b22`,shade30:`#00333f`,shade20:`#004555`,shade10:`#005265`,primary:`#005b70`,tint10:`#0f6c81`,tint20:`#237d92`,tint30:`#4496a9`,tint40:`#94c8d4`,tint50:`#c3e1e8`,tint60:`#eff7f9`},Vl={shade50:`#001322`,shade40:`#002440`,shade30:`#004377`,shade20:`#005ba1`,shade10:`#006cbf`,primary:`#0078d4`,tint10:`#1a86d9`,tint20:`#3595de`,tint30:`#5caae5`,tint40:`#a9d3f2`,tint50:`#d0e7f8`,tint60:`#f3f9fd`},Hl={shade50:`#000c16`,shade40:`#00172a`,shade30:`#002c4e`,shade20:`#003b6a`,shade10:`#00467e`,primary:`#004e8c`,tint10:`#125e9a`,tint20:`#286fa8`,tint30:`#4a89ba`,tint40:`#9abfdc`,tint50:`#c7dced`,tint60:`#f0f6fa`},Ul={shade50:`#0d1126`,shade40:`#182047`,shade30:`#2c3c85`,shade20:`#3c51b4`,shade10:`#4760d5`,primary:`#4f6bed`,tint10:`#637cef`,tint20:`#778df1`,tint30:`#93a4f4`,tint40:`#c8d1fa`,tint50:`#e1e6fc`,tint60:`#f7f9fe`},Wl={shade50:`#00061d`,shade40:`#000c36`,shade30:`#001665`,shade20:`#001e89`,shade10:`#0023a2`,primary:`#0027b4`,tint10:`#173bbd`,tint20:`#3050c6`,tint30:`#546fd2`,tint40:`#a3b2e8`,tint50:`#ccd5f3`,tint60:`#f2f4fc`},Gl={shade50:`#120f25`,shade40:`#221d46`,shade30:`#3f3682`,shade20:`#5649b0`,shade10:`#6656d1`,primary:`#7160e8`,tint10:`#8172eb`,tint20:`#9184ee`,tint30:`#a79cf1`,tint40:`#d2ccf8`,tint50:`#e7e4fb`,tint60:`#f9f8fe`},Kl={shade50:`#0f0717`,shade40:`#1c0e2b`,shade30:`#341a51`,shade20:`#46236e`,shade10:`#532982`,primary:`#5c2e91`,tint10:`#6b3f9e`,tint20:`#7c52ab`,tint30:`#9470bd`,tint40:`#c6b1de`,tint50:`#e0d3ed`,tint60:`#f7f4fb`},ql={shade50:`#160418`,shade40:`#29072e`,shade30:`#4c0d55`,shade20:`#671174`,shade10:`#7a1589`,primary:`#881798`,tint10:`#952aa4`,tint20:`#a33fb1`,tint30:`#b55fc1`,tint40:`#d9a7e0`,tint50:`#eaceef`,tint60:`#faf2fb`},Jl={shade50:`#1f091d`,shade40:`#3a1136`,shade30:`#6d2064`,shade20:`#932b88`,shade10:`#af33a1`,primary:`#c239b3`,tint10:`#c94cbc`,tint20:`#d161c4`,tint30:`#da7ed0`,tint40:`#edbbe7`,tint50:`#f5daf2`,tint60:`#fdf5fc`},Yl={shade50:`#1c0b1f`,shade40:`#35153a`,shade30:`#63276d`,shade20:`#863593`,shade10:`#9f3faf`,primary:`#b146c2`,tint10:`#ba58c9`,tint20:`#c36bd1`,tint30:`#cf87da`,tint40:`#e6bfed`,tint50:`#f2dcf5`,tint60:`#fcf6fd`},Xl={shade50:`#24091b`,shade40:`#441232`,shade30:`#80215d`,shade20:`#ad2d7e`,shade10:`#cd3595`,primary:`#e43ba6`,tint10:`#e750b0`,tint20:`#ea66ba`,tint30:`#ef85c8`,tint40:`#f7c0e3`,tint50:`#fbddf0`,tint60:`#fef6fb`},Zl={shade50:`#1f0013`,shade40:`#390024`,shade30:`#6b0043`,shade20:`#91005a`,shade10:`#ac006b`,primary:`#bf0077`,tint10:`#c71885`,tint20:`#ce3293`,tint30:`#d957a8`,tint40:`#eca5d1`,tint50:`#f5cee6`,tint60:`#fcf2f9`},Ql={shade50:`#13000c`,shade40:`#240017`,shade30:`#43002b`,shade20:`#5a003b`,shade10:`#6b0045`,primary:`#77004d`,tint10:`#87105d`,tint20:`#98246f`,tint30:`#ad4589`,tint40:`#d696c0`,tint50:`#e9c4dc`,tint60:`#faf0f6`},$l={shade50:`#141313`,shade40:`#252323`,shade30:`#444241`,shade20:`#5d5958`,shade10:`#6e6968`,primary:`#7a7574`,tint10:`#8a8584`,tint20:`#9a9594`,tint30:`#afabaa`,tint40:`#d7d4d4`,tint50:`#eae8e8`,tint60:`#faf9f9`},eu={shade50:`#0f0e0e`,shade40:`#1c1b1a`,shade30:`#343231`,shade20:`#474443`,shade10:`#54514f`,primary:`#5d5a58`,tint10:`#706d6b`,tint20:`#84817e`,tint30:`#9e9b99`,tint40:`#cecccb`,tint50:`#e5e4e3`,tint60:`#f8f8f8`},tu={shade50:`#111314`,shade40:`#1f2426`,shade30:`#3b4447`,shade20:`#505c60`,shade10:`#5f6d71`,primary:`#69797e`,tint10:`#79898d`,tint20:`#89989d`,tint30:`#a0adb2`,tint40:`#cdd6d8`,tint50:`#e4e9ea`,tint60:`#f8f9fa`},nu={shade50:`#090a0b`,shade40:`#111315`,shade30:`#202427`,shade20:`#2b3135`,shade10:`#333a3f`,primary:`#394146`,tint10:`#4d565c`,tint20:`#626c72`,tint30:`#808a90`,tint40:`#bcc3c7`,tint50:`#dbdfe1`,tint60:`#f6f7f8`},ru={red:Cl,green:Il,darkOrange:wl,yellow:kl,berry:Jl,lightGreen:Fl,marigold:Ol},iu={darkRed:xl,cranberry:Sl,pumpkin:Tl,peach:Dl,gold:Al,brass:jl,brown:Ml,forest:Nl,seafoam:Pl,darkGreen:Ll,lightTeal:Rl,teal:zl,steel:Bl,blue:Vl,royalBlue:Hl,cornflower:Ul,navy:Wl,lavender:Gl,purple:Kl,grape:ql,lilac:Yl,pink:Xl,magenta:Zl,plum:Ql,beige:$l,mink:eu,platinum:tu,anchor:nu},au={cranberry:Sl,green:Il,orange:El},ou=[`red`,`green`,`darkOrange`,`yellow`,`berry`,`lightGreen`,`marigold`],su=`darkRed.cranberry.pumpkin.peach.gold.brass.brown.forest.seafoam.darkGreen.lightTeal.teal.steel.blue.royalBlue.cornflower.navy.lavender.purple.grape.lilac.pink.magenta.plum.beige.mink.platinum.anchor`.split(`.`),cu={success:`green`,warning:`orange`,danger:`cranberry`},lu=ou.reduce((e,t)=>{let n=t.slice(0,1).toUpperCase()+t.slice(1),r={[`colorPalette${n}Background1`]:ru[t].tint60,[`colorPalette${n}Background2`]:ru[t].tint40,[`colorPalette${n}Background3`]:ru[t].primary,[`colorPalette${n}Foreground1`]:ru[t].shade10,[`colorPalette${n}Foreground2`]:ru[t].shade30,[`colorPalette${n}Foreground3`]:ru[t].primary,[`colorPalette${n}BorderActive`]:ru[t].primary,[`colorPalette${n}Border1`]:ru[t].tint40,[`colorPalette${n}Border2`]:ru[t].primary};return Object.assign(e,r)},{});lu.colorPaletteYellowForeground1=ru.yellow.shade30,lu.colorPaletteRedForegroundInverted=ru.red.tint20,lu.colorPaletteGreenForegroundInverted=ru.green.tint20,lu.colorPaletteYellowForegroundInverted=ru.yellow.tint40;var uu=su.reduce((e,t)=>{let n=t.slice(0,1).toUpperCase()+t.slice(1),r={[`colorPalette${n}Background2`]:iu[t].tint40,[`colorPalette${n}Foreground2`]:iu[t].shade30,[`colorPalette${n}BorderActive`]:iu[t].primary};return Object.assign(e,r)},{}),du={...lu,...uu},fu=Object.entries(cu).reduce((e,[t,n])=>{let r=t.slice(0,1).toUpperCase()+t.slice(1),i={[`colorStatus${r}Background1`]:au[n].tint60,[`colorStatus${r}Background2`]:au[n].tint40,[`colorStatus${r}Background3`]:au[n].primary,[`colorStatus${r}Foreground1`]:au[n].shade10,[`colorStatus${r}Foreground2`]:au[n].shade30,[`colorStatus${r}Foreground3`]:au[n].primary,[`colorStatus${r}ForegroundInverted`]:au[n].tint30,[`colorStatus${r}BorderActive`]:au[n].primary,[`colorStatus${r}Border1`]:au[n].tint40,[`colorStatus${r}Border2`]:au[n].primary};return Object.assign(e,i)},{});fu.colorStatusDangerBackground3Hover=au[cu.danger].shade10,fu.colorStatusDangerBackground3Pressed=au[cu.danger].shade20,fu.colorStatusWarningForeground1=au[cu.warning].shade20,fu.colorStatusWarningForeground3=au[cu.warning].shade20,fu.colorStatusWarningBorder2=au[cu.warning].shade20;var pu=e=>({colorNeutralForeground1:R[14],colorNeutralForeground1Hover:R[14],colorNeutralForeground1Pressed:R[14],colorNeutralForeground1Selected:R[14],colorNeutralForeground2:R[26],colorNeutralForeground2Hover:R[14],colorNeutralForeground2Pressed:R[14],colorNeutralForeground2Selected:R[14],colorNeutralForeground2BrandHover:e[80],colorNeutralForeground2BrandPressed:e[70],colorNeutralForeground2BrandSelected:e[80],colorNeutralForeground3:R[38],colorNeutralForeground3Hover:R[26],colorNeutralForeground3Pressed:R[26],colorNeutralForeground3Selected:R[26],colorNeutralForeground3BrandHover:e[80],colorNeutralForeground3BrandPressed:e[70],colorNeutralForeground3BrandSelected:e[80],colorNeutralForeground4:R[44],colorNeutralForeground5:R[38],colorNeutralForeground5Hover:R[14],colorNeutralForeground5Pressed:R[14],colorNeutralForeground5Selected:R[14],colorNeutralForegroundDisabled:R[74],colorNeutralForegroundInvertedDisabled:ml[40],colorBrandForegroundLink:e[70],colorBrandForegroundLinkHover:e[60],colorBrandForegroundLinkPressed:e[40],colorBrandForegroundLinkSelected:e[70],colorNeutralForeground2Link:R[26],colorNeutralForeground2LinkHover:R[14],colorNeutralForeground2LinkPressed:R[14],colorNeutralForeground2LinkSelected:R[14],colorCompoundBrandForeground1:e[80],colorCompoundBrandForeground1Hover:e[70],colorCompoundBrandForeground1Pressed:e[60],colorBrandForeground1:e[80],colorBrandForeground2:e[70],colorBrandForeground2Hover:e[60],colorBrandForeground2Pressed:e[30],colorNeutralForeground1Static:R[14],colorNeutralForegroundStaticInverted:yl,colorNeutralForegroundInverted:yl,colorNeutralForegroundInvertedHover:yl,colorNeutralForegroundInvertedPressed:yl,colorNeutralForegroundInvertedSelected:yl,colorNeutralForegroundInverted2:yl,colorNeutralForegroundOnBrand:yl,colorNeutralForegroundInvertedLink:yl,colorNeutralForegroundInvertedLinkHover:yl,colorNeutralForegroundInvertedLinkPressed:yl,colorNeutralForegroundInvertedLinkSelected:yl,colorBrandForegroundInverted:e[100],colorBrandForegroundInvertedHover:e[110],colorBrandForegroundInvertedPressed:e[100],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:yl,colorNeutralBackground1Hover:R[96],colorNeutralBackground1Pressed:R[88],colorNeutralBackground1Selected:R[92],colorNeutralBackground2:R[98],colorNeutralBackground2Hover:R[94],colorNeutralBackground2Pressed:R[86],colorNeutralBackground2Selected:R[90],colorNeutralBackground3:R[96],colorNeutralBackground3Hover:R[92],colorNeutralBackground3Pressed:R[84],colorNeutralBackground3Selected:R[88],colorNeutralBackground4:R[94],colorNeutralBackground4Hover:R[98],colorNeutralBackground4Pressed:R[96],colorNeutralBackground4Selected:yl,colorNeutralBackground5:R[92],colorNeutralBackground5Hover:R[96],colorNeutralBackground5Pressed:R[94],colorNeutralBackground5Selected:R[98],colorNeutralBackground6:R[90],colorNeutralBackground7:`#00000000`,colorNeutralBackground7Hover:R[92],colorNeutralBackground7Pressed:R[84],colorNeutralBackground7Selected:`#00000000`,colorNeutralBackground8:R[99],colorNeutralBackgroundInverted:R[16],colorNeutralBackgroundInvertedHover:R[24],colorNeutralBackgroundInvertedPressed:R[12],colorNeutralBackgroundInvertedSelected:R[22],colorNeutralBackgroundStatic:R[20],colorNeutralBackgroundAlpha:ml[50],colorNeutralBackgroundAlpha2:ml[80],colorSubtleBackground:`transparent`,colorSubtleBackgroundHover:R[96],colorSubtleBackgroundPressed:R[88],colorSubtleBackgroundSelected:R[92],colorSubtleBackgroundLightAlphaHover:ml[70],colorSubtleBackgroundLightAlphaPressed:ml[50],colorSubtleBackgroundLightAlphaSelected:`transparent`,colorSubtleBackgroundInverted:`transparent`,colorSubtleBackgroundInvertedHover:hl[10],colorSubtleBackgroundInvertedPressed:hl[30],colorSubtleBackgroundInvertedSelected:hl[20],colorTransparentBackground:`transparent`,colorTransparentBackgroundHover:`transparent`,colorTransparentBackgroundPressed:`transparent`,colorTransparentBackgroundSelected:`transparent`,colorNeutralBackgroundDisabled:R[94],colorNeutralBackgroundDisabled2:yl,colorNeutralBackgroundInvertedDisabled:ml[10],colorNeutralStencil1:R[90],colorNeutralStencil2:R[98],colorNeutralStencil1Alpha:hl[10],colorNeutralStencil2Alpha:hl[5],colorBackgroundOverlay:hl[40],colorScrollbarOverlay:hl[50],colorBrandBackground:e[80],colorBrandBackgroundHover:e[70],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[80],colorCompoundBrandBackgroundHover:e[70],colorCompoundBrandBackgroundPressed:e[60],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[160],colorBrandBackground2Hover:e[150],colorBrandBackground2Pressed:e[130],colorBrandBackground3Static:e[60],colorBrandBackground4Static:e[40],colorBrandBackgroundInverted:yl,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:R[98],colorNeutralCardBackgroundHover:yl,colorNeutralCardBackgroundPressed:R[96],colorNeutralCardBackgroundSelected:R[92],colorNeutralCardBackgroundDisabled:R[94],colorNeutralStrokeAccessible:R[38],colorNeutralStrokeAccessibleHover:R[34],colorNeutralStrokeAccessiblePressed:R[30],colorNeutralStrokeAccessibleSelected:e[80],colorNeutralStroke1:R[82],colorNeutralStroke1Hover:R[78],colorNeutralStroke1Pressed:R[70],colorNeutralStroke1Selected:R[74],colorNeutralStroke2:R[88],colorNeutralStroke3:R[94],colorNeutralStroke4:R[92],colorNeutralStroke4Hover:R[88],colorNeutralStroke4Pressed:R[84],colorNeutralStroke4Selected:R[92],colorNeutralStrokeSubtle:R[88],colorNeutralStrokeOnBrand:yl,colorNeutralStrokeOnBrand2:yl,colorNeutralStrokeOnBrand2Hover:yl,colorNeutralStrokeOnBrand2Pressed:yl,colorNeutralStrokeOnBrand2Selected:yl,colorBrandStroke1:e[80],colorBrandStroke2:e[140],colorBrandStroke2Hover:e[120],colorBrandStroke2Pressed:e[80],colorBrandStroke2Contrast:e[140],colorCompoundBrandStroke:e[80],colorCompoundBrandStrokeHover:e[70],colorCompoundBrandStrokePressed:e[60],colorNeutralStrokeDisabled:R[88],colorNeutralStrokeDisabled2:R[92],colorNeutralStrokeInvertedDisabled:ml[40],colorTransparentStroke:`transparent`,colorTransparentStrokeInteractive:`transparent`,colorTransparentStrokeDisabled:`transparent`,colorNeutralStrokeAlpha:hl[5],colorNeutralStrokeAlpha2:ml[20],colorStrokeFocus1:yl,colorStrokeFocus2:bl,colorNeutralShadowAmbient:`rgba(0,0,0,0.12)`,colorNeutralShadowKey:`rgba(0,0,0,0.14)`,colorNeutralShadowAmbientLighter:`rgba(0,0,0,0.06)`,colorNeutralShadowKeyLighter:`rgba(0,0,0,0.07)`,colorNeutralShadowAmbientDarker:`rgba(0,0,0,0.20)`,colorNeutralShadowKeyDarker:`rgba(0,0,0,0.24)`,colorBrandShadowAmbient:`rgba(0,0,0,0.30)`,colorBrandShadowKey:`rgba(0,0,0,0.25)`}),mu={borderRadiusNone:`0`,borderRadiusSmall:`2px`,borderRadiusMedium:`4px`,borderRadiusLarge:`6px`,borderRadiusXLarge:`8px`,borderRadius2XLarge:`12px`,borderRadius3XLarge:`16px`,borderRadius4XLarge:`24px`,borderRadius5XLarge:`32px`,borderRadius6XLarge:`40px`,borderRadiusCircular:`10000px`},hu={curveAccelerateMax:`cubic-bezier(0.9,0.1,1,0.2)`,curveAccelerateMid:`cubic-bezier(1,0,1,1)`,curveAccelerateMin:`cubic-bezier(0.8,0,0.78,1)`,curveDecelerateMax:`cubic-bezier(0.1,0.9,0.2,1)`,curveDecelerateMid:`cubic-bezier(0,0,0,1)`,curveDecelerateMin:`cubic-bezier(0.33,0,0.1,1)`,curveEasyEaseMax:`cubic-bezier(0.8,0,0.2,1)`,curveEasyEase:`cubic-bezier(0.33,0,0.67,1)`,curveLinear:`cubic-bezier(0,0,1,1)`},gu={durationUltraFast:`50ms`,durationFaster:`100ms`,durationFast:`150ms`,durationNormal:`200ms`,durationGentle:`250ms`,durationSlow:`300ms`,durationSlower:`400ms`,durationUltraSlow:`500ms`},_u={fontSizeBase100:`10px`,fontSizeBase200:`12px`,fontSizeBase300:`14px`,fontSizeBase400:`16px`,fontSizeBase500:`20px`,fontSizeBase600:`24px`,fontSizeHero700:`28px`,fontSizeHero800:`32px`,fontSizeHero900:`40px`,fontSizeHero1000:`68px`},vu={lineHeightBase100:`14px`,lineHeightBase200:`16px`,lineHeightBase300:`20px`,lineHeightBase400:`22px`,lineHeightBase500:`28px`,lineHeightBase600:`32px`,lineHeightHero700:`36px`,lineHeightHero800:`40px`,lineHeightHero900:`52px`,lineHeightHero1000:`92px`},yu={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},bu={fontFamilyBase:`'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif`,fontFamilyMonospace:`Consolas, 'Courier New', Courier, monospace`,fontFamilyNumeric:`Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif`},xu={none:`0`,xxs:`2px`,xs:`4px`,sNudge:`6px`,s:`8px`,mNudge:`10px`,m:`12px`,l:`16px`,xl:`20px`,xxl:`24px`,xxxl:`32px`},Su={spacingHorizontalNone:xu.none,spacingHorizontalXXS:xu.xxs,spacingHorizontalXS:xu.xs,spacingHorizontalSNudge:xu.sNudge,spacingHorizontalS:xu.s,spacingHorizontalMNudge:xu.mNudge,spacingHorizontalM:xu.m,spacingHorizontalL:xu.l,spacingHorizontalXL:xu.xl,spacingHorizontalXXL:xu.xxl,spacingHorizontalXXXL:xu.xxxl},Cu={spacingVerticalNone:xu.none,spacingVerticalXXS:xu.xxs,spacingVerticalXS:xu.xs,spacingVerticalSNudge:xu.sNudge,spacingVerticalS:xu.s,spacingVerticalMNudge:xu.mNudge,spacingVerticalM:xu.m,spacingVerticalL:xu.l,spacingVerticalXL:xu.xl,spacingVerticalXXL:xu.xxl,spacingVerticalXXXL:xu.xxxl},wu={strokeWidthThin:`1px`,strokeWidthThick:`2px`,strokeWidthThicker:`3px`,strokeWidthThickest:`4px`},z={colorNeutralForeground1:`var(--colorNeutralForeground1)`,colorNeutralForeground1Hover:`var(--colorNeutralForeground1Hover)`,colorNeutralForeground1Pressed:`var(--colorNeutralForeground1Pressed)`,colorNeutralForeground1Selected:`var(--colorNeutralForeground1Selected)`,colorNeutralForeground2:`var(--colorNeutralForeground2)`,colorNeutralForeground2Hover:`var(--colorNeutralForeground2Hover)`,colorNeutralForeground2Pressed:`var(--colorNeutralForeground2Pressed)`,colorNeutralForeground2Selected:`var(--colorNeutralForeground2Selected)`,colorNeutralForeground2BrandHover:`var(--colorNeutralForeground2BrandHover)`,colorNeutralForeground2BrandPressed:`var(--colorNeutralForeground2BrandPressed)`,colorNeutralForeground2BrandSelected:`var(--colorNeutralForeground2BrandSelected)`,colorNeutralForeground3:`var(--colorNeutralForeground3)`,colorNeutralForeground3Hover:`var(--colorNeutralForeground3Hover)`,colorNeutralForeground3Pressed:`var(--colorNeutralForeground3Pressed)`,colorNeutralForeground3Selected:`var(--colorNeutralForeground3Selected)`,colorNeutralForeground3BrandHover:`var(--colorNeutralForeground3BrandHover)`,colorNeutralForeground3BrandPressed:`var(--colorNeutralForeground3BrandPressed)`,colorNeutralForeground3BrandSelected:`var(--colorNeutralForeground3BrandSelected)`,colorNeutralForeground4:`var(--colorNeutralForeground4)`,colorNeutralForeground5:`var(--colorNeutralForeground5)`,colorNeutralForeground5Hover:`var(--colorNeutralForeground5Hover)`,colorNeutralForeground5Pressed:`var(--colorNeutralForeground5Pressed)`,colorNeutralForeground5Selected:`var(--colorNeutralForeground5Selected)`,colorNeutralForegroundDisabled:`var(--colorNeutralForegroundDisabled)`,colorBrandForegroundLink:`var(--colorBrandForegroundLink)`,colorBrandForegroundLinkHover:`var(--colorBrandForegroundLinkHover)`,colorBrandForegroundLinkPressed:`var(--colorBrandForegroundLinkPressed)`,colorBrandForegroundLinkSelected:`var(--colorBrandForegroundLinkSelected)`,colorNeutralForeground2Link:`var(--colorNeutralForeground2Link)`,colorNeutralForeground2LinkHover:`var(--colorNeutralForeground2LinkHover)`,colorNeutralForeground2LinkPressed:`var(--colorNeutralForeground2LinkPressed)`,colorNeutralForeground2LinkSelected:`var(--colorNeutralForeground2LinkSelected)`,colorCompoundBrandForeground1:`var(--colorCompoundBrandForeground1)`,colorCompoundBrandForeground1Hover:`var(--colorCompoundBrandForeground1Hover)`,colorCompoundBrandForeground1Pressed:`var(--colorCompoundBrandForeground1Pressed)`,colorNeutralForegroundOnBrand:`var(--colorNeutralForegroundOnBrand)`,colorNeutralForegroundInverted:`var(--colorNeutralForegroundInverted)`,colorNeutralForegroundInvertedHover:`var(--colorNeutralForegroundInvertedHover)`,colorNeutralForegroundInvertedPressed:`var(--colorNeutralForegroundInvertedPressed)`,colorNeutralForegroundInvertedSelected:`var(--colorNeutralForegroundInvertedSelected)`,colorNeutralForegroundInverted2:`var(--colorNeutralForegroundInverted2)`,colorNeutralForegroundStaticInverted:`var(--colorNeutralForegroundStaticInverted)`,colorNeutralForegroundInvertedLink:`var(--colorNeutralForegroundInvertedLink)`,colorNeutralForegroundInvertedLinkHover:`var(--colorNeutralForegroundInvertedLinkHover)`,colorNeutralForegroundInvertedLinkPressed:`var(--colorNeutralForegroundInvertedLinkPressed)`,colorNeutralForegroundInvertedLinkSelected:`var(--colorNeutralForegroundInvertedLinkSelected)`,colorNeutralForegroundInvertedDisabled:`var(--colorNeutralForegroundInvertedDisabled)`,colorBrandForeground1:`var(--colorBrandForeground1)`,colorBrandForeground2:`var(--colorBrandForeground2)`,colorBrandForeground2Hover:`var(--colorBrandForeground2Hover)`,colorBrandForeground2Pressed:`var(--colorBrandForeground2Pressed)`,colorNeutralForeground1Static:`var(--colorNeutralForeground1Static)`,colorBrandForegroundInverted:`var(--colorBrandForegroundInverted)`,colorBrandForegroundInvertedHover:`var(--colorBrandForegroundInvertedHover)`,colorBrandForegroundInvertedPressed:`var(--colorBrandForegroundInvertedPressed)`,colorBrandForegroundOnLight:`var(--colorBrandForegroundOnLight)`,colorBrandForegroundOnLightHover:`var(--colorBrandForegroundOnLightHover)`,colorBrandForegroundOnLightPressed:`var(--colorBrandForegroundOnLightPressed)`,colorBrandForegroundOnLightSelected:`var(--colorBrandForegroundOnLightSelected)`,colorNeutralBackground1:`var(--colorNeutralBackground1)`,colorNeutralBackground1Hover:`var(--colorNeutralBackground1Hover)`,colorNeutralBackground1Pressed:`var(--colorNeutralBackground1Pressed)`,colorNeutralBackground1Selected:`var(--colorNeutralBackground1Selected)`,colorNeutralBackground2:`var(--colorNeutralBackground2)`,colorNeutralBackground2Hover:`var(--colorNeutralBackground2Hover)`,colorNeutralBackground2Pressed:`var(--colorNeutralBackground2Pressed)`,colorNeutralBackground2Selected:`var(--colorNeutralBackground2Selected)`,colorNeutralBackground3:`var(--colorNeutralBackground3)`,colorNeutralBackground3Hover:`var(--colorNeutralBackground3Hover)`,colorNeutralBackground3Pressed:`var(--colorNeutralBackground3Pressed)`,colorNeutralBackground3Selected:`var(--colorNeutralBackground3Selected)`,colorNeutralBackground4:`var(--colorNeutralBackground4)`,colorNeutralBackground4Hover:`var(--colorNeutralBackground4Hover)`,colorNeutralBackground4Pressed:`var(--colorNeutralBackground4Pressed)`,colorNeutralBackground4Selected:`var(--colorNeutralBackground4Selected)`,colorNeutralBackground5:`var(--colorNeutralBackground5)`,colorNeutralBackground5Hover:`var(--colorNeutralBackground5Hover)`,colorNeutralBackground5Pressed:`var(--colorNeutralBackground5Pressed)`,colorNeutralBackground5Selected:`var(--colorNeutralBackground5Selected)`,colorNeutralBackground6:`var(--colorNeutralBackground6)`,colorNeutralBackground7:`var(--colorNeutralBackground7)`,colorNeutralBackground7Hover:`var(--colorNeutralBackground7Hover)`,colorNeutralBackground7Pressed:`var(--colorNeutralBackground7Pressed)`,colorNeutralBackground7Selected:`var(--colorNeutralBackground7Selected)`,colorNeutralBackground8:`var(--colorNeutralBackground8)`,colorNeutralBackgroundInverted:`var(--colorNeutralBackgroundInverted)`,colorNeutralBackgroundInvertedHover:`var(--colorNeutralBackgroundInvertedHover)`,colorNeutralBackgroundInvertedPressed:`var(--colorNeutralBackgroundInvertedPressed)`,colorNeutralBackgroundInvertedSelected:`var(--colorNeutralBackgroundInvertedSelected)`,colorNeutralBackgroundStatic:`var(--colorNeutralBackgroundStatic)`,colorNeutralBackgroundAlpha:`var(--colorNeutralBackgroundAlpha)`,colorNeutralBackgroundAlpha2:`var(--colorNeutralBackgroundAlpha2)`,colorSubtleBackground:`var(--colorSubtleBackground)`,colorSubtleBackgroundHover:`var(--colorSubtleBackgroundHover)`,colorSubtleBackgroundPressed:`var(--colorSubtleBackgroundPressed)`,colorSubtleBackgroundSelected:`var(--colorSubtleBackgroundSelected)`,colorSubtleBackgroundLightAlphaHover:`var(--colorSubtleBackgroundLightAlphaHover)`,colorSubtleBackgroundLightAlphaPressed:`var(--colorSubtleBackgroundLightAlphaPressed)`,colorSubtleBackgroundLightAlphaSelected:`var(--colorSubtleBackgroundLightAlphaSelected)`,colorSubtleBackgroundInverted:`var(--colorSubtleBackgroundInverted)`,colorSubtleBackgroundInvertedHover:`var(--colorSubtleBackgroundInvertedHover)`,colorSubtleBackgroundInvertedPressed:`var(--colorSubtleBackgroundInvertedPressed)`,colorSubtleBackgroundInvertedSelected:`var(--colorSubtleBackgroundInvertedSelected)`,colorTransparentBackground:`var(--colorTransparentBackground)`,colorTransparentBackgroundHover:`var(--colorTransparentBackgroundHover)`,colorTransparentBackgroundPressed:`var(--colorTransparentBackgroundPressed)`,colorTransparentBackgroundSelected:`var(--colorTransparentBackgroundSelected)`,colorNeutralBackgroundDisabled:`var(--colorNeutralBackgroundDisabled)`,colorNeutralBackgroundDisabled2:`var(--colorNeutralBackgroundDisabled2)`,colorNeutralBackgroundInvertedDisabled:`var(--colorNeutralBackgroundInvertedDisabled)`,colorNeutralStencil1:`var(--colorNeutralStencil1)`,colorNeutralStencil2:`var(--colorNeutralStencil2)`,colorNeutralStencil1Alpha:`var(--colorNeutralStencil1Alpha)`,colorNeutralStencil2Alpha:`var(--colorNeutralStencil2Alpha)`,colorBackgroundOverlay:`var(--colorBackgroundOverlay)`,colorScrollbarOverlay:`var(--colorScrollbarOverlay)`,colorBrandBackground:`var(--colorBrandBackground)`,colorBrandBackgroundHover:`var(--colorBrandBackgroundHover)`,colorBrandBackgroundPressed:`var(--colorBrandBackgroundPressed)`,colorBrandBackgroundSelected:`var(--colorBrandBackgroundSelected)`,colorCompoundBrandBackground:`var(--colorCompoundBrandBackground)`,colorCompoundBrandBackgroundHover:`var(--colorCompoundBrandBackgroundHover)`,colorCompoundBrandBackgroundPressed:`var(--colorCompoundBrandBackgroundPressed)`,colorBrandBackgroundStatic:`var(--colorBrandBackgroundStatic)`,colorBrandBackground2:`var(--colorBrandBackground2)`,colorBrandBackground2Hover:`var(--colorBrandBackground2Hover)`,colorBrandBackground2Pressed:`var(--colorBrandBackground2Pressed)`,colorBrandBackground3Static:`var(--colorBrandBackground3Static)`,colorBrandBackground4Static:`var(--colorBrandBackground4Static)`,colorBrandBackgroundInverted:`var(--colorBrandBackgroundInverted)`,colorBrandBackgroundInvertedHover:`var(--colorBrandBackgroundInvertedHover)`,colorBrandBackgroundInvertedPressed:`var(--colorBrandBackgroundInvertedPressed)`,colorBrandBackgroundInvertedSelected:`var(--colorBrandBackgroundInvertedSelected)`,colorNeutralCardBackground:`var(--colorNeutralCardBackground)`,colorNeutralCardBackgroundHover:`var(--colorNeutralCardBackgroundHover)`,colorNeutralCardBackgroundPressed:`var(--colorNeutralCardBackgroundPressed)`,colorNeutralCardBackgroundSelected:`var(--colorNeutralCardBackgroundSelected)`,colorNeutralCardBackgroundDisabled:`var(--colorNeutralCardBackgroundDisabled)`,colorNeutralStrokeAccessible:`var(--colorNeutralStrokeAccessible)`,colorNeutralStrokeAccessibleHover:`var(--colorNeutralStrokeAccessibleHover)`,colorNeutralStrokeAccessiblePressed:`var(--colorNeutralStrokeAccessiblePressed)`,colorNeutralStrokeAccessibleSelected:`var(--colorNeutralStrokeAccessibleSelected)`,colorNeutralStroke1:`var(--colorNeutralStroke1)`,colorNeutralStroke1Hover:`var(--colorNeutralStroke1Hover)`,colorNeutralStroke1Pressed:`var(--colorNeutralStroke1Pressed)`,colorNeutralStroke1Selected:`var(--colorNeutralStroke1Selected)`,colorNeutralStroke2:`var(--colorNeutralStroke2)`,colorNeutralStroke3:`var(--colorNeutralStroke3)`,colorNeutralStroke4:`var(--colorNeutralStroke4)`,colorNeutralStroke4Hover:`var(--colorNeutralStroke4Hover)`,colorNeutralStroke4Pressed:`var(--colorNeutralStroke4Pressed)`,colorNeutralStroke4Selected:`var(--colorNeutralStroke4Selected)`,colorNeutralStrokeSubtle:`var(--colorNeutralStrokeSubtle)`,colorNeutralStrokeOnBrand:`var(--colorNeutralStrokeOnBrand)`,colorNeutralStrokeOnBrand2:`var(--colorNeutralStrokeOnBrand2)`,colorNeutralStrokeOnBrand2Hover:`var(--colorNeutralStrokeOnBrand2Hover)`,colorNeutralStrokeOnBrand2Pressed:`var(--colorNeutralStrokeOnBrand2Pressed)`,colorNeutralStrokeOnBrand2Selected:`var(--colorNeutralStrokeOnBrand2Selected)`,colorBrandStroke1:`var(--colorBrandStroke1)`,colorBrandStroke2:`var(--colorBrandStroke2)`,colorBrandStroke2Hover:`var(--colorBrandStroke2Hover)`,colorBrandStroke2Pressed:`var(--colorBrandStroke2Pressed)`,colorBrandStroke2Contrast:`var(--colorBrandStroke2Contrast)`,colorCompoundBrandStroke:`var(--colorCompoundBrandStroke)`,colorCompoundBrandStrokeHover:`var(--colorCompoundBrandStrokeHover)`,colorCompoundBrandStrokePressed:`var(--colorCompoundBrandStrokePressed)`,colorNeutralStrokeDisabled:`var(--colorNeutralStrokeDisabled)`,colorNeutralStrokeDisabled2:`var(--colorNeutralStrokeDisabled2)`,colorNeutralStrokeInvertedDisabled:`var(--colorNeutralStrokeInvertedDisabled)`,colorTransparentStroke:`var(--colorTransparentStroke)`,colorTransparentStrokeInteractive:`var(--colorTransparentStrokeInteractive)`,colorTransparentStrokeDisabled:`var(--colorTransparentStrokeDisabled)`,colorNeutralStrokeAlpha:`var(--colorNeutralStrokeAlpha)`,colorNeutralStrokeAlpha2:`var(--colorNeutralStrokeAlpha2)`,colorStrokeFocus1:`var(--colorStrokeFocus1)`,colorStrokeFocus2:`var(--colorStrokeFocus2)`,colorNeutralShadowAmbient:`var(--colorNeutralShadowAmbient)`,colorNeutralShadowKey:`var(--colorNeutralShadowKey)`,colorNeutralShadowAmbientLighter:`var(--colorNeutralShadowAmbientLighter)`,colorNeutralShadowKeyLighter:`var(--colorNeutralShadowKeyLighter)`,colorNeutralShadowAmbientDarker:`var(--colorNeutralShadowAmbientDarker)`,colorNeutralShadowKeyDarker:`var(--colorNeutralShadowKeyDarker)`,colorBrandShadowAmbient:`var(--colorBrandShadowAmbient)`,colorBrandShadowKey:`var(--colorBrandShadowKey)`,colorPaletteRedBackground1:`var(--colorPaletteRedBackground1)`,colorPaletteRedBackground2:`var(--colorPaletteRedBackground2)`,colorPaletteRedBackground3:`var(--colorPaletteRedBackground3)`,colorPaletteRedBorderActive:`var(--colorPaletteRedBorderActive)`,colorPaletteRedBorder1:`var(--colorPaletteRedBorder1)`,colorPaletteRedBorder2:`var(--colorPaletteRedBorder2)`,colorPaletteRedForeground1:`var(--colorPaletteRedForeground1)`,colorPaletteRedForeground2:`var(--colorPaletteRedForeground2)`,colorPaletteRedForeground3:`var(--colorPaletteRedForeground3)`,colorPaletteRedForegroundInverted:`var(--colorPaletteRedForegroundInverted)`,colorPaletteGreenBackground1:`var(--colorPaletteGreenBackground1)`,colorPaletteGreenBackground2:`var(--colorPaletteGreenBackground2)`,colorPaletteGreenBackground3:`var(--colorPaletteGreenBackground3)`,colorPaletteGreenBorderActive:`var(--colorPaletteGreenBorderActive)`,colorPaletteGreenBorder1:`var(--colorPaletteGreenBorder1)`,colorPaletteGreenBorder2:`var(--colorPaletteGreenBorder2)`,colorPaletteGreenForeground1:`var(--colorPaletteGreenForeground1)`,colorPaletteGreenForeground2:`var(--colorPaletteGreenForeground2)`,colorPaletteGreenForeground3:`var(--colorPaletteGreenForeground3)`,colorPaletteGreenForegroundInverted:`var(--colorPaletteGreenForegroundInverted)`,colorPaletteDarkOrangeBackground1:`var(--colorPaletteDarkOrangeBackground1)`,colorPaletteDarkOrangeBackground2:`var(--colorPaletteDarkOrangeBackground2)`,colorPaletteDarkOrangeBackground3:`var(--colorPaletteDarkOrangeBackground3)`,colorPaletteDarkOrangeBorderActive:`var(--colorPaletteDarkOrangeBorderActive)`,colorPaletteDarkOrangeBorder1:`var(--colorPaletteDarkOrangeBorder1)`,colorPaletteDarkOrangeBorder2:`var(--colorPaletteDarkOrangeBorder2)`,colorPaletteDarkOrangeForeground1:`var(--colorPaletteDarkOrangeForeground1)`,colorPaletteDarkOrangeForeground2:`var(--colorPaletteDarkOrangeForeground2)`,colorPaletteDarkOrangeForeground3:`var(--colorPaletteDarkOrangeForeground3)`,colorPaletteYellowBackground1:`var(--colorPaletteYellowBackground1)`,colorPaletteYellowBackground2:`var(--colorPaletteYellowBackground2)`,colorPaletteYellowBackground3:`var(--colorPaletteYellowBackground3)`,colorPaletteYellowBorderActive:`var(--colorPaletteYellowBorderActive)`,colorPaletteYellowBorder1:`var(--colorPaletteYellowBorder1)`,colorPaletteYellowBorder2:`var(--colorPaletteYellowBorder2)`,colorPaletteYellowForeground1:`var(--colorPaletteYellowForeground1)`,colorPaletteYellowForeground2:`var(--colorPaletteYellowForeground2)`,colorPaletteYellowForeground3:`var(--colorPaletteYellowForeground3)`,colorPaletteYellowForegroundInverted:`var(--colorPaletteYellowForegroundInverted)`,colorPaletteBerryBackground1:`var(--colorPaletteBerryBackground1)`,colorPaletteBerryBackground2:`var(--colorPaletteBerryBackground2)`,colorPaletteBerryBackground3:`var(--colorPaletteBerryBackground3)`,colorPaletteBerryBorderActive:`var(--colorPaletteBerryBorderActive)`,colorPaletteBerryBorder1:`var(--colorPaletteBerryBorder1)`,colorPaletteBerryBorder2:`var(--colorPaletteBerryBorder2)`,colorPaletteBerryForeground1:`var(--colorPaletteBerryForeground1)`,colorPaletteBerryForeground2:`var(--colorPaletteBerryForeground2)`,colorPaletteBerryForeground3:`var(--colorPaletteBerryForeground3)`,colorPaletteMarigoldBackground1:`var(--colorPaletteMarigoldBackground1)`,colorPaletteMarigoldBackground2:`var(--colorPaletteMarigoldBackground2)`,colorPaletteMarigoldBackground3:`var(--colorPaletteMarigoldBackground3)`,colorPaletteMarigoldBorderActive:`var(--colorPaletteMarigoldBorderActive)`,colorPaletteMarigoldBorder1:`var(--colorPaletteMarigoldBorder1)`,colorPaletteMarigoldBorder2:`var(--colorPaletteMarigoldBorder2)`,colorPaletteMarigoldForeground1:`var(--colorPaletteMarigoldForeground1)`,colorPaletteMarigoldForeground2:`var(--colorPaletteMarigoldForeground2)`,colorPaletteMarigoldForeground3:`var(--colorPaletteMarigoldForeground3)`,colorPaletteLightGreenBackground1:`var(--colorPaletteLightGreenBackground1)`,colorPaletteLightGreenBackground2:`var(--colorPaletteLightGreenBackground2)`,colorPaletteLightGreenBackground3:`var(--colorPaletteLightGreenBackground3)`,colorPaletteLightGreenBorderActive:`var(--colorPaletteLightGreenBorderActive)`,colorPaletteLightGreenBorder1:`var(--colorPaletteLightGreenBorder1)`,colorPaletteLightGreenBorder2:`var(--colorPaletteLightGreenBorder2)`,colorPaletteLightGreenForeground1:`var(--colorPaletteLightGreenForeground1)`,colorPaletteLightGreenForeground2:`var(--colorPaletteLightGreenForeground2)`,colorPaletteLightGreenForeground3:`var(--colorPaletteLightGreenForeground3)`,colorPaletteAnchorBackground2:`var(--colorPaletteAnchorBackground2)`,colorPaletteAnchorBorderActive:`var(--colorPaletteAnchorBorderActive)`,colorPaletteAnchorForeground2:`var(--colorPaletteAnchorForeground2)`,colorPaletteBeigeBackground2:`var(--colorPaletteBeigeBackground2)`,colorPaletteBeigeBorderActive:`var(--colorPaletteBeigeBorderActive)`,colorPaletteBeigeForeground2:`var(--colorPaletteBeigeForeground2)`,colorPaletteBlueBackground2:`var(--colorPaletteBlueBackground2)`,colorPaletteBlueBorderActive:`var(--colorPaletteBlueBorderActive)`,colorPaletteBlueForeground2:`var(--colorPaletteBlueForeground2)`,colorPaletteBrassBackground2:`var(--colorPaletteBrassBackground2)`,colorPaletteBrassBorderActive:`var(--colorPaletteBrassBorderActive)`,colorPaletteBrassForeground2:`var(--colorPaletteBrassForeground2)`,colorPaletteBrownBackground2:`var(--colorPaletteBrownBackground2)`,colorPaletteBrownBorderActive:`var(--colorPaletteBrownBorderActive)`,colorPaletteBrownForeground2:`var(--colorPaletteBrownForeground2)`,colorPaletteCornflowerBackground2:`var(--colorPaletteCornflowerBackground2)`,colorPaletteCornflowerBorderActive:`var(--colorPaletteCornflowerBorderActive)`,colorPaletteCornflowerForeground2:`var(--colorPaletteCornflowerForeground2)`,colorPaletteCranberryBackground2:`var(--colorPaletteCranberryBackground2)`,colorPaletteCranberryBorderActive:`var(--colorPaletteCranberryBorderActive)`,colorPaletteCranberryForeground2:`var(--colorPaletteCranberryForeground2)`,colorPaletteDarkGreenBackground2:`var(--colorPaletteDarkGreenBackground2)`,colorPaletteDarkGreenBorderActive:`var(--colorPaletteDarkGreenBorderActive)`,colorPaletteDarkGreenForeground2:`var(--colorPaletteDarkGreenForeground2)`,colorPaletteDarkRedBackground2:`var(--colorPaletteDarkRedBackground2)`,colorPaletteDarkRedBorderActive:`var(--colorPaletteDarkRedBorderActive)`,colorPaletteDarkRedForeground2:`var(--colorPaletteDarkRedForeground2)`,colorPaletteForestBackground2:`var(--colorPaletteForestBackground2)`,colorPaletteForestBorderActive:`var(--colorPaletteForestBorderActive)`,colorPaletteForestForeground2:`var(--colorPaletteForestForeground2)`,colorPaletteGoldBackground2:`var(--colorPaletteGoldBackground2)`,colorPaletteGoldBorderActive:`var(--colorPaletteGoldBorderActive)`,colorPaletteGoldForeground2:`var(--colorPaletteGoldForeground2)`,colorPaletteGrapeBackground2:`var(--colorPaletteGrapeBackground2)`,colorPaletteGrapeBorderActive:`var(--colorPaletteGrapeBorderActive)`,colorPaletteGrapeForeground2:`var(--colorPaletteGrapeForeground2)`,colorPaletteLavenderBackground2:`var(--colorPaletteLavenderBackground2)`,colorPaletteLavenderBorderActive:`var(--colorPaletteLavenderBorderActive)`,colorPaletteLavenderForeground2:`var(--colorPaletteLavenderForeground2)`,colorPaletteLightTealBackground2:`var(--colorPaletteLightTealBackground2)`,colorPaletteLightTealBorderActive:`var(--colorPaletteLightTealBorderActive)`,colorPaletteLightTealForeground2:`var(--colorPaletteLightTealForeground2)`,colorPaletteLilacBackground2:`var(--colorPaletteLilacBackground2)`,colorPaletteLilacBorderActive:`var(--colorPaletteLilacBorderActive)`,colorPaletteLilacForeground2:`var(--colorPaletteLilacForeground2)`,colorPaletteMagentaBackground2:`var(--colorPaletteMagentaBackground2)`,colorPaletteMagentaBorderActive:`var(--colorPaletteMagentaBorderActive)`,colorPaletteMagentaForeground2:`var(--colorPaletteMagentaForeground2)`,colorPaletteMinkBackground2:`var(--colorPaletteMinkBackground2)`,colorPaletteMinkBorderActive:`var(--colorPaletteMinkBorderActive)`,colorPaletteMinkForeground2:`var(--colorPaletteMinkForeground2)`,colorPaletteNavyBackground2:`var(--colorPaletteNavyBackground2)`,colorPaletteNavyBorderActive:`var(--colorPaletteNavyBorderActive)`,colorPaletteNavyForeground2:`var(--colorPaletteNavyForeground2)`,colorPalettePeachBackground2:`var(--colorPalettePeachBackground2)`,colorPalettePeachBorderActive:`var(--colorPalettePeachBorderActive)`,colorPalettePeachForeground2:`var(--colorPalettePeachForeground2)`,colorPalettePinkBackground2:`var(--colorPalettePinkBackground2)`,colorPalettePinkBorderActive:`var(--colorPalettePinkBorderActive)`,colorPalettePinkForeground2:`var(--colorPalettePinkForeground2)`,colorPalettePlatinumBackground2:`var(--colorPalettePlatinumBackground2)`,colorPalettePlatinumBorderActive:`var(--colorPalettePlatinumBorderActive)`,colorPalettePlatinumForeground2:`var(--colorPalettePlatinumForeground2)`,colorPalettePlumBackground2:`var(--colorPalettePlumBackground2)`,colorPalettePlumBorderActive:`var(--colorPalettePlumBorderActive)`,colorPalettePlumForeground2:`var(--colorPalettePlumForeground2)`,colorPalettePumpkinBackground2:`var(--colorPalettePumpkinBackground2)`,colorPalettePumpkinBorderActive:`var(--colorPalettePumpkinBorderActive)`,colorPalettePumpkinForeground2:`var(--colorPalettePumpkinForeground2)`,colorPalettePurpleBackground2:`var(--colorPalettePurpleBackground2)`,colorPalettePurpleBorderActive:`var(--colorPalettePurpleBorderActive)`,colorPalettePurpleForeground2:`var(--colorPalettePurpleForeground2)`,colorPaletteRoyalBlueBackground2:`var(--colorPaletteRoyalBlueBackground2)`,colorPaletteRoyalBlueBorderActive:`var(--colorPaletteRoyalBlueBorderActive)`,colorPaletteRoyalBlueForeground2:`var(--colorPaletteRoyalBlueForeground2)`,colorPaletteSeafoamBackground2:`var(--colorPaletteSeafoamBackground2)`,colorPaletteSeafoamBorderActive:`var(--colorPaletteSeafoamBorderActive)`,colorPaletteSeafoamForeground2:`var(--colorPaletteSeafoamForeground2)`,colorPaletteSteelBackground2:`var(--colorPaletteSteelBackground2)`,colorPaletteSteelBorderActive:`var(--colorPaletteSteelBorderActive)`,colorPaletteSteelForeground2:`var(--colorPaletteSteelForeground2)`,colorPaletteTealBackground2:`var(--colorPaletteTealBackground2)`,colorPaletteTealBorderActive:`var(--colorPaletteTealBorderActive)`,colorPaletteTealForeground2:`var(--colorPaletteTealForeground2)`,colorStatusSuccessBackground1:`var(--colorStatusSuccessBackground1)`,colorStatusSuccessBackground2:`var(--colorStatusSuccessBackground2)`,colorStatusSuccessBackground3:`var(--colorStatusSuccessBackground3)`,colorStatusSuccessForeground1:`var(--colorStatusSuccessForeground1)`,colorStatusSuccessForeground2:`var(--colorStatusSuccessForeground2)`,colorStatusSuccessForeground3:`var(--colorStatusSuccessForeground3)`,colorStatusSuccessForegroundInverted:`var(--colorStatusSuccessForegroundInverted)`,colorStatusSuccessBorderActive:`var(--colorStatusSuccessBorderActive)`,colorStatusSuccessBorder1:`var(--colorStatusSuccessBorder1)`,colorStatusSuccessBorder2:`var(--colorStatusSuccessBorder2)`,colorStatusWarningBackground1:`var(--colorStatusWarningBackground1)`,colorStatusWarningBackground2:`var(--colorStatusWarningBackground2)`,colorStatusWarningBackground3:`var(--colorStatusWarningBackground3)`,colorStatusWarningForeground1:`var(--colorStatusWarningForeground1)`,colorStatusWarningForeground2:`var(--colorStatusWarningForeground2)`,colorStatusWarningForeground3:`var(--colorStatusWarningForeground3)`,colorStatusWarningForegroundInverted:`var(--colorStatusWarningForegroundInverted)`,colorStatusWarningBorderActive:`var(--colorStatusWarningBorderActive)`,colorStatusWarningBorder1:`var(--colorStatusWarningBorder1)`,colorStatusWarningBorder2:`var(--colorStatusWarningBorder2)`,colorStatusDangerBackground1:`var(--colorStatusDangerBackground1)`,colorStatusDangerBackground2:`var(--colorStatusDangerBackground2)`,colorStatusDangerBackground3:`var(--colorStatusDangerBackground3)`,colorStatusDangerBackground3Hover:`var(--colorStatusDangerBackground3Hover)`,colorStatusDangerBackground3Pressed:`var(--colorStatusDangerBackground3Pressed)`,colorStatusDangerForeground1:`var(--colorStatusDangerForeground1)`,colorStatusDangerForeground2:`var(--colorStatusDangerForeground2)`,colorStatusDangerForeground3:`var(--colorStatusDangerForeground3)`,colorStatusDangerForegroundInverted:`var(--colorStatusDangerForegroundInverted)`,colorStatusDangerBorderActive:`var(--colorStatusDangerBorderActive)`,colorStatusDangerBorder1:`var(--colorStatusDangerBorder1)`,colorStatusDangerBorder2:`var(--colorStatusDangerBorder2)`,borderRadiusNone:`var(--borderRadiusNone)`,borderRadiusSmall:`var(--borderRadiusSmall)`,borderRadiusMedium:`var(--borderRadiusMedium)`,borderRadiusLarge:`var(--borderRadiusLarge)`,borderRadiusXLarge:`var(--borderRadiusXLarge)`,borderRadius2XLarge:`var(--borderRadius2XLarge)`,borderRadius3XLarge:`var(--borderRadius3XLarge)`,borderRadius4XLarge:`var(--borderRadius4XLarge)`,borderRadius5XLarge:`var(--borderRadius5XLarge)`,borderRadius6XLarge:`var(--borderRadius6XLarge)`,borderRadiusCircular:`var(--borderRadiusCircular)`,fontFamilyBase:`var(--fontFamilyBase)`,fontFamilyMonospace:`var(--fontFamilyMonospace)`,fontFamilyNumeric:`var(--fontFamilyNumeric)`,fontSizeBase100:`var(--fontSizeBase100)`,fontSizeBase200:`var(--fontSizeBase200)`,fontSizeBase300:`var(--fontSizeBase300)`,fontSizeBase400:`var(--fontSizeBase400)`,fontSizeBase500:`var(--fontSizeBase500)`,fontSizeBase600:`var(--fontSizeBase600)`,fontSizeHero700:`var(--fontSizeHero700)`,fontSizeHero800:`var(--fontSizeHero800)`,fontSizeHero900:`var(--fontSizeHero900)`,fontSizeHero1000:`var(--fontSizeHero1000)`,fontWeightRegular:`var(--fontWeightRegular)`,fontWeightMedium:`var(--fontWeightMedium)`,fontWeightSemibold:`var(--fontWeightSemibold)`,fontWeightBold:`var(--fontWeightBold)`,lineHeightBase100:`var(--lineHeightBase100)`,lineHeightBase200:`var(--lineHeightBase200)`,lineHeightBase300:`var(--lineHeightBase300)`,lineHeightBase400:`var(--lineHeightBase400)`,lineHeightBase500:`var(--lineHeightBase500)`,lineHeightBase600:`var(--lineHeightBase600)`,lineHeightHero700:`var(--lineHeightHero700)`,lineHeightHero800:`var(--lineHeightHero800)`,lineHeightHero900:`var(--lineHeightHero900)`,lineHeightHero1000:`var(--lineHeightHero1000)`,shadow2:`var(--shadow2)`,shadow4:`var(--shadow4)`,shadow8:`var(--shadow8)`,shadow16:`var(--shadow16)`,shadow28:`var(--shadow28)`,shadow64:`var(--shadow64)`,shadow2Brand:`var(--shadow2Brand)`,shadow4Brand:`var(--shadow4Brand)`,shadow8Brand:`var(--shadow8Brand)`,shadow16Brand:`var(--shadow16Brand)`,shadow28Brand:`var(--shadow28Brand)`,shadow64Brand:`var(--shadow64Brand)`,strokeWidthThin:`var(--strokeWidthThin)`,strokeWidthThick:`var(--strokeWidthThick)`,strokeWidthThicker:`var(--strokeWidthThicker)`,strokeWidthThickest:`var(--strokeWidthThickest)`,spacingHorizontalNone:`var(--spacingHorizontalNone)`,spacingHorizontalXXS:`var(--spacingHorizontalXXS)`,spacingHorizontalXS:`var(--spacingHorizontalXS)`,spacingHorizontalSNudge:`var(--spacingHorizontalSNudge)`,spacingHorizontalS:`var(--spacingHorizontalS)`,spacingHorizontalMNudge:`var(--spacingHorizontalMNudge)`,spacingHorizontalM:`var(--spacingHorizontalM)`,spacingHorizontalL:`var(--spacingHorizontalL)`,spacingHorizontalXL:`var(--spacingHorizontalXL)`,spacingHorizontalXXL:`var(--spacingHorizontalXXL)`,spacingHorizontalXXXL:`var(--spacingHorizontalXXXL)`,spacingVerticalNone:`var(--spacingVerticalNone)`,spacingVerticalXXS:`var(--spacingVerticalXXS)`,spacingVerticalXS:`var(--spacingVerticalXS)`,spacingVerticalSNudge:`var(--spacingVerticalSNudge)`,spacingVerticalS:`var(--spacingVerticalS)`,spacingVerticalMNudge:`var(--spacingVerticalMNudge)`,spacingVerticalM:`var(--spacingVerticalM)`,spacingVerticalL:`var(--spacingVerticalL)`,spacingVerticalXL:`var(--spacingVerticalXL)`,spacingVerticalXXL:`var(--spacingVerticalXXL)`,spacingVerticalXXXL:`var(--spacingVerticalXXXL)`,durationUltraFast:`var(--durationUltraFast)`,durationFaster:`var(--durationFaster)`,durationFast:`var(--durationFast)`,durationNormal:`var(--durationNormal)`,durationGentle:`var(--durationGentle)`,durationSlow:`var(--durationSlow)`,durationSlower:`var(--durationSlower)`,durationUltraSlow:`var(--durationUltraSlow)`,curveAccelerateMax:`var(--curveAccelerateMax)`,curveAccelerateMid:`var(--curveAccelerateMid)`,curveAccelerateMin:`var(--curveAccelerateMin)`,curveDecelerateMax:`var(--curveDecelerateMax)`,curveDecelerateMid:`var(--curveDecelerateMid)`,curveDecelerateMin:`var(--curveDecelerateMin)`,curveEasyEaseMax:`var(--curveEasyEaseMax)`,curveEasyEase:`var(--curveEasyEase)`,curveLinear:`var(--curveLinear)`,zIndexBackground:`var(--zIndexBackground, 0)`,zIndexContent:`var(--zIndexContent, 1)`,zIndexOverlay:`var(--zIndexOverlay, 1000)`,zIndexPopup:`var(--zIndexPopup, 2000)`,zIndexMessages:`var(--zIndexMessages, 3000)`,zIndexFloating:`var(--zIndexFloating, 4000)`,zIndexPriority:`var(--zIndexPriority, 5000)`,zIndexDebug:`var(--zIndexDebug, 6000)`};function Tu(e,t,n=``){return{[`shadow2${n}`]:`0 0 2px ${e}, 0 1px 2px ${t}`,[`shadow4${n}`]:`0 0 2px ${e}, 0 2px 4px ${t}`,[`shadow8${n}`]:`0 0 2px ${e}, 0 4px 8px ${t}`,[`shadow16${n}`]:`0 0 2px ${e}, 0 8px 16px ${t}`,[`shadow28${n}`]:`0 0 8px ${e}, 0 14px 28px ${t}`,[`shadow64${n}`]:`0 0 8px ${e}, 0 32px 64px ${t}`}}var Eu=e=>{let t=pu(e);return{...mu,..._u,...vu,...bu,...yu,...wu,...Su,...Cu,...gu,...hu,...t,...du,...fu,...Tu(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...Tu(t.colorBrandShadowAmbient,t.colorBrandShadowKey,`Brand`)}},Du={10:`#061724`,20:`#082338`,30:`#0a2e4a`,40:`#0c3b5e`,50:`#0e4775`,60:`#0f548c`,70:`#115ea3`,80:`#0f6cbd`,90:`#2886de`,100:`#479ef5`,110:`#62abf5`,120:`#77b7f7`,130:`#96c6fa`,140:`#b4d6fa`,150:`#cfe4fa`,160:`#ebf3fc`},Ou=ou.reduce((e,t)=>{let n=t.slice(0,1).toUpperCase()+t.slice(1),r={[`colorPalette${n}Background1`]:ru[t].shade40,[`colorPalette${n}Background2`]:ru[t].shade30,[`colorPalette${n}Background3`]:ru[t].primary,[`colorPalette${n}Foreground1`]:ru[t].tint30,[`colorPalette${n}Foreground2`]:ru[t].tint40,[`colorPalette${n}Foreground3`]:ru[t].tint20,[`colorPalette${n}BorderActive`]:ru[t].tint30,[`colorPalette${n}Border1`]:ru[t].primary,[`colorPalette${n}Border2`]:ru[t].tint20};return Object.assign(e,r)},{});Ou.colorPaletteRedForeground3=ru.red.tint30,Ou.colorPaletteRedBorder2=ru.red.tint30,Ou.colorPaletteGreenForeground3=ru.green.tint40,Ou.colorPaletteGreenBorder2=ru.green.tint40,Ou.colorPaletteDarkOrangeForeground3=ru.darkOrange.tint30,Ou.colorPaletteDarkOrangeBorder2=ru.darkOrange.tint30,Ou.colorPaletteRedForegroundInverted=ru.red.primary,Ou.colorPaletteGreenForegroundInverted=ru.green.primary,Ou.colorPaletteYellowForegroundInverted=ru.yellow.shade30;var ku=su.reduce((e,t)=>{let n=t.slice(0,1).toUpperCase()+t.slice(1),r={[`colorPalette${n}Background2`]:iu[t].shade30,[`colorPalette${n}Foreground2`]:iu[t].tint40,[`colorPalette${n}BorderActive`]:iu[t].tint30};return Object.assign(e,r)},{});ku.colorPaletteDarkRedBackground2=iu.darkRed.shade20,ku.colorPalettePlumBackground2=iu.plum.shade20;var Au={...Ou,...ku},ju=Object.entries(cu).reduce((e,[t,n])=>{let r=t.slice(0,1).toUpperCase()+t.slice(1),i={[`colorStatus${r}Background1`]:au[n].shade40,[`colorStatus${r}Background2`]:au[n].shade30,[`colorStatus${r}Background3`]:au[n].primary,[`colorStatus${r}Foreground1`]:au[n].tint30,[`colorStatus${r}Foreground2`]:au[n].tint40,[`colorStatus${r}Foreground3`]:au[n].tint20,[`colorStatus${r}BorderActive`]:au[n].tint30,[`colorStatus${r}ForegroundInverted`]:au[n].shade10,[`colorStatus${r}Border1`]:au[n].primary,[`colorStatus${r}Border2`]:au[n].tint20};return Object.assign(e,i)},{});ju.colorStatusDangerBackground3Hover=au[cu.danger].shade10,ju.colorStatusDangerBackground3Pressed=au[cu.danger].shade20,ju.colorStatusDangerForeground3=au[cu.danger].tint40,ju.colorStatusDangerBorder2=au[cu.danger].tint30,ju.colorStatusSuccessForeground3=au[cu.success].tint40,ju.colorStatusSuccessBorder2=au[cu.success].tint40,ju.colorStatusWarningForegroundInverted=au[cu.warning].shade20;var Mu=Eu(Du),Nu=e=>({colorNeutralForeground1:yl,colorNeutralForeground1Hover:yl,colorNeutralForeground1Pressed:yl,colorNeutralForeground1Selected:yl,colorNeutralForeground2:R[84],colorNeutralForeground2Hover:yl,colorNeutralForeground2Pressed:yl,colorNeutralForeground2Selected:yl,colorNeutralForeground2BrandHover:e[100],colorNeutralForeground2BrandPressed:e[90],colorNeutralForeground2BrandSelected:e[100],colorNeutralForeground3:R[68],colorNeutralForeground3Hover:R[84],colorNeutralForeground3Pressed:R[84],colorNeutralForeground3Selected:R[84],colorNeutralForeground3BrandHover:e[100],colorNeutralForeground3BrandPressed:e[90],colorNeutralForeground3BrandSelected:e[100],colorNeutralForeground4:R[60],colorNeutralForeground5:R[68],colorNeutralForeground5Hover:yl,colorNeutralForeground5Pressed:yl,colorNeutralForeground5Selected:yl,colorNeutralForegroundDisabled:R[36],colorNeutralForegroundInvertedDisabled:ml[40],colorBrandForegroundLink:e[100],colorBrandForegroundLinkHover:e[110],colorBrandForegroundLinkPressed:e[90],colorBrandForegroundLinkSelected:e[100],colorNeutralForeground2Link:R[84],colorNeutralForeground2LinkHover:yl,colorNeutralForeground2LinkPressed:yl,colorNeutralForeground2LinkSelected:yl,colorCompoundBrandForeground1:e[100],colorCompoundBrandForeground1Hover:e[110],colorCompoundBrandForeground1Pressed:e[90],colorBrandForeground1:e[100],colorBrandForeground2:e[110],colorBrandForeground2Hover:e[130],colorBrandForeground2Pressed:e[160],colorNeutralForeground1Static:R[14],colorNeutralForegroundStaticInverted:yl,colorNeutralForegroundInverted:R[14],colorNeutralForegroundInvertedHover:R[14],colorNeutralForegroundInvertedPressed:R[14],colorNeutralForegroundInvertedSelected:R[14],colorNeutralForegroundInverted2:R[14],colorNeutralForegroundOnBrand:yl,colorNeutralForegroundInvertedLink:yl,colorNeutralForegroundInvertedLinkHover:yl,colorNeutralForegroundInvertedLinkPressed:yl,colorNeutralForegroundInvertedLinkSelected:yl,colorBrandForegroundInverted:e[80],colorBrandForegroundInvertedHover:e[70],colorBrandForegroundInvertedPressed:e[60],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:R[16],colorNeutralBackground1Hover:R[24],colorNeutralBackground1Pressed:R[12],colorNeutralBackground1Selected:R[22],colorNeutralBackground2:R[12],colorNeutralBackground2Hover:R[20],colorNeutralBackground2Pressed:R[8],colorNeutralBackground2Selected:R[18],colorNeutralBackground3:R[8],colorNeutralBackground3Hover:R[16],colorNeutralBackground3Pressed:R[4],colorNeutralBackground3Selected:R[14],colorNeutralBackground4:R[4],colorNeutralBackground4Hover:R[12],colorNeutralBackground4Pressed:bl,colorNeutralBackground4Selected:R[10],colorNeutralBackground5:bl,colorNeutralBackground5Hover:R[8],colorNeutralBackground5Pressed:R[2],colorNeutralBackground5Selected:R[6],colorNeutralBackground6:R[20],colorNeutralBackground7:`#00000000`,colorNeutralBackground7Hover:R[10],colorNeutralBackground7Pressed:R[4],colorNeutralBackground7Selected:`#00000000`,colorNeutralBackground8:R[16],colorNeutralBackgroundInverted:yl,colorNeutralBackgroundInvertedHover:R[96],colorNeutralBackgroundInvertedPressed:R[88],colorNeutralBackgroundInvertedSelected:R[92],colorNeutralBackgroundStatic:R[24],colorNeutralBackgroundAlpha:gl[50],colorNeutralBackgroundAlpha2:_l[70],colorSubtleBackground:`transparent`,colorSubtleBackgroundHover:R[22],colorSubtleBackgroundPressed:R[18],colorSubtleBackgroundSelected:R[20],colorSubtleBackgroundLightAlphaHover:vl[80],colorSubtleBackgroundLightAlphaPressed:vl[50],colorSubtleBackgroundLightAlphaSelected:`transparent`,colorSubtleBackgroundInverted:`transparent`,colorSubtleBackgroundInvertedHover:hl[10],colorSubtleBackgroundInvertedPressed:hl[30],colorSubtleBackgroundInvertedSelected:hl[20],colorTransparentBackground:`transparent`,colorTransparentBackgroundHover:`transparent`,colorTransparentBackgroundPressed:`transparent`,colorTransparentBackgroundSelected:`transparent`,colorNeutralBackgroundDisabled:R[8],colorNeutralBackgroundDisabled2:R[16],colorNeutralBackgroundInvertedDisabled:ml[10],colorNeutralStencil1:R[34],colorNeutralStencil2:R[20],colorNeutralStencil1Alpha:ml[10],colorNeutralStencil2Alpha:ml[5],colorBackgroundOverlay:hl[50],colorScrollbarOverlay:ml[60],colorBrandBackground:e[70],colorBrandBackgroundHover:e[80],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[100],colorCompoundBrandBackgroundHover:e[110],colorCompoundBrandBackgroundPressed:e[90],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[20],colorBrandBackground2Hover:e[40],colorBrandBackground2Pressed:e[10],colorBrandBackground3Static:e[60],colorBrandBackground4Static:e[40],colorBrandBackgroundInverted:yl,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:R[20],colorNeutralCardBackgroundHover:R[24],colorNeutralCardBackgroundPressed:R[18],colorNeutralCardBackgroundSelected:R[22],colorNeutralCardBackgroundDisabled:R[8],colorNeutralStrokeAccessible:R[68],colorNeutralStrokeAccessibleHover:R[74],colorNeutralStrokeAccessiblePressed:R[70],colorNeutralStrokeAccessibleSelected:e[100],colorNeutralStroke1:R[40],colorNeutralStroke1Hover:R[46],colorNeutralStroke1Pressed:R[42],colorNeutralStroke1Selected:R[44],colorNeutralStroke2:R[32],colorNeutralStroke3:R[24],colorNeutralStroke4:R[24],colorNeutralStroke4Hover:R[18],colorNeutralStroke4Pressed:R[14],colorNeutralStroke4Selected:R[24],colorNeutralStrokeSubtle:R[4],colorNeutralStrokeOnBrand:R[16],colorNeutralStrokeOnBrand2:yl,colorNeutralStrokeOnBrand2Hover:yl,colorNeutralStrokeOnBrand2Pressed:yl,colorNeutralStrokeOnBrand2Selected:yl,colorBrandStroke1:e[100],colorBrandStroke2:e[50],colorBrandStroke2Hover:e[50],colorBrandStroke2Pressed:e[30],colorBrandStroke2Contrast:e[50],colorCompoundBrandStroke:e[100],colorCompoundBrandStrokeHover:e[110],colorCompoundBrandStrokePressed:e[90],colorNeutralStrokeDisabled:R[26],colorNeutralStrokeDisabled2:R[24],colorNeutralStrokeInvertedDisabled:ml[40],colorTransparentStroke:`transparent`,colorTransparentStrokeInteractive:`transparent`,colorTransparentStrokeDisabled:`transparent`,colorNeutralStrokeAlpha:ml[10],colorNeutralStrokeAlpha2:ml[20],colorStrokeFocus1:bl,colorStrokeFocus2:yl,colorNeutralShadowAmbient:`rgba(0,0,0,0.24)`,colorNeutralShadowKey:`rgba(0,0,0,0.28)`,colorNeutralShadowAmbientLighter:`rgba(0,0,0,0.12)`,colorNeutralShadowKeyLighter:`rgba(0,0,0,0.14)`,colorNeutralShadowAmbientDarker:`rgba(0,0,0,0.40)`,colorNeutralShadowKeyDarker:`rgba(0,0,0,0.48)`,colorBrandShadowAmbient:`rgba(0,0,0,0.30)`,colorBrandShadowKey:`rgba(0,0,0,0.25)`}),Pu=(e=>{let t=Nu(e);return{...mu,..._u,...vu,...bu,...yu,...wu,...Su,...Cu,...gu,...hu,...t,...Au,...ju,...Tu(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...Tu(t.colorBrandShadowAmbient,t.colorBrandShadowKey,`Brand`)}})(Du),Fu={root:`fui-FluentProvider`},Iu=Or({root:{sj55zd:`f19n0e5`,De3pzq:`fxugw4r`,fsow6f:[`f1o700av`,`fes3tcz`],Bahqtrf:`fk6fouc`,Be2twd7:`fkhj508`,Bhrd7zp:`figsok6`,Bg96gwp:`f1i3iumi`}},{d:[`.f19n0e5{color:var(--colorNeutralForeground1);}`,`.fxugw4r{background-color:var(--colorNeutralBackground1);}`,`.f1o700av{text-align:left;}`,`.fes3tcz{text-align:right;}`,`.fk6fouc{font-family:var(--fontFamilyBase);}`,`.fkhj508{font-size:var(--fontSizeBase300);}`,`.figsok6{font-weight:var(--fontWeightRegular);}`,`.f1i3iumi{line-height:var(--lineHeightBase300);}`]}),Lu=e=>{"use no memo";let t=Ir(),n=Iu({dir:e.dir,renderer:t});return e.root.className=A(Fu.root,e.themeClassName,n.root,e.root.className),e},Ru=M.useInsertionEffect?M.useInsertionEffect:ha,zu=(e,t)=>{if(!e?.head)return;let n=e.createElement(`style`);return Object.keys(t).forEach(e=>{n.setAttribute(e,t[e])}),e.head.appendChild(n),n},Bu=(e,t)=>{let n=e.sheet;n&&(n.cssRules.length>0&&n.deleteRule(0),n.insertRule(t,0))},Vu=e=>{"use no memo";let{targetDocument:t,theme:n,rendererAttributes:r}=e,i=M.useRef(void 0),a=ba(Fu.root),o=r,s=M.useMemo(()=>Wr(`.${a}`,n),[n,a]);return Hu(t,a),Ru(()=>{let e=t?.getElementById(a);return e?i.current=e:(i.current=zu(t,{...o,id:a}),i.current&&Bu(i.current,s)),()=>{var e;(e=i.current)==null||e.remove()}},[a,t,s,o]),{styleTagId:a,rule:s}};function Hu(e,t){M.useState(()=>{if(!e)return;let n=e.getElementById(t);n&&e.head.append(n)})}var Uu={},Wu={},Gu=(e,t)=>{"use no memo";let n=Gi(),r=qu(),i=Ji(),a=M.useContext(Yi)||Uu,{applyStylesToPortals:o=!0,customStyleHooks_unstable:s,dir:c=n.dir,targetDocument:l=n.targetDocument,theme:u,overrides_unstable:d={}}=e,f=Ku(r,u),p=Ku(i,d),m=Ku(a,s),h=Ir(),{styleTagId:g,rule:_}=Vu({theme:f,targetDocument:l,rendererAttributes:h.styleElementAttributes??Wu});return{applyStylesToPortals:o,customStyleHooks_unstable:m,dir:c,targetDocument:l,theme:f,overrides_unstable:p,themeClassName:g,components:{root:`div`},root:Jr(Ai(`div`,{...e,dir:c,ref:xa(t,Xc({targetDocument:l}))}),{elementType:`div`}),serverStyleProps:{cssRule:_,attributes:{...h.styleElementAttributes,id:g}}}};function Ku(e,t){return e&&t?{...e,...t}:e||t}function qu(){return M.useContext(Mi)}function Ju(e){let{applyStylesToPortals:t,customStyleHooks_unstable:n,dir:r,root:i,targetDocument:a,theme:o,themeClassName:s,overrides_unstable:c}=e,l=M.useMemo(()=>({dir:r,targetDocument:a}),[r,a]),[u]=M.useState(()=>({}));return{customStyleHooks_unstable:n,overrides_unstable:c,provider:l,textDirection:r,iconDirection:M.useMemo(()=>({textDirection:r}),[r]),tooltip:u,theme:o,themeClassName:t?i.className:s}}var Yu=M.forwardRef((e,t)=>{let n=Gu(e,t);return Lu(n),fo(n,Ju(n))});Yu.displayName=`FluentProvider`;var Xu=m(),Zu=e=>t=>{let n=M.useRef(t.value),r=M.useRef(null);return r.current||={value:n,listeners:[]},ha(()=>{n.current=t.value,(0,Xu.unstable_runWithPriority)(Xu.unstable_NormalPriority,()=>{r.current.listeners.forEach(e=>{e(t.value)})})},[t.value]),M.createElement(e,{value:r.current},t.children)},Qu=e=>{let t=M.createContext({value:{current:e},listeners:[],isDefault:!0});return t.Provider=Zu(t.Provider),delete t.Consumer,t},$u=(e,t)=>{let{value:n,listeners:r}=M.useContext(e),i=t(n.current),[,a]=M.useReducer(e=>e+1,0),o=M.useRef(t),s=M.useRef(i);return ha(()=>{o.current=t,s.current=i}),ha(()=>{let e=e=>{try{let t=o.current(e);Object.is(s.current,t)||a()}catch{}};return r.push(e),e(n.current),()=>{let t=r.indexOf(e);t!==-1&&r.splice(t,1)}},[r,n]),i};function ed(e){return!M.useContext(e).isDefault}var td=`Shift`,nd=`Enter`,rd=`ArrowDown`,id=`ArrowLeft`,ad=`ArrowRight`,od=`ArrowUp`,sd=`Home`,cd=`PageDown`,ld=`PageUp`,ud=`Backspace`,dd=`Escape`;function fd(e,t){let{disabled:n,disabledFocusable:r=!1,"aria-disabled":i,onClick:a,onKeyDown:o,onKeyUp:s,...c}=t??{},l=typeof i==`string`?i===`true`:i,u=n||r||l,d=F(e=>{u?(e.preventDefault(),e.stopPropagation()):a?.(e)}),f=F(e=>{if(o?.(e),e.isDefaultPrevented())return;let t=e.key;if(u&&(t===`Enter`||t===` `)){e.preventDefault(),e.stopPropagation();return}if(t===` `){e.preventDefault();return}else t===`Enter`&&(e.preventDefault(),e.currentTarget.click())}),p=F(e=>{if(s?.(e),e.isDefaultPrevented())return;let t=e.key;if(u&&(t===`Enter`||t===` `)){e.preventDefault(),e.stopPropagation();return}t===` `&&(e.preventDefault(),e.currentTarget.click())});if(e===`button`||e===void 0)return{...c,disabled:n&&!r,"aria-disabled":r?!0:l,onClick:r?void 0:d,onKeyUp:r?void 0:s,onKeyDown:r?void 0:o};{let t=!!c.href,i=t?void 0:`button`;!i&&u&&(i=`link`);let a={role:i,tabIndex:r||!t&&!n?0:void 0,...c,onClick:d,onKeyUp:p,onKeyDown:f,"aria-disabled":u};return e===`a`&&u&&(a.href=void 0),a}}var pd=()=>void 0,md={controller:{active:pd,blur:pd,find:pd,first:pd,focus:pd,focusLastActive:pd,scrollActiveIntoView:pd,last:pd,next:pd,prev:pd,showAttributes:pd,hideAttributes:pd,showFocusVisibleAttributes:pd,hideFocusVisibleAttributes:pd}},hd=M.createContext(void 0),gd=hd.Provider,_d=()=>M.useContext(hd)??md,vd=()=>!!M.useContext(hd);function yd(e){let{matchOption:t}=e,{targetDocument:n}=Gi(),r=M.useRef(null),i=M.useRef(null),a=M.useCallback(e=>Fa(e)&&t(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,[t]),o=M.useCallback(e=>{e&&n?(i.current=e,r.current=n.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,a)):(i.current=null,r.current=null)},[n,a]);return{optionWalker:M.useMemo(()=>({first:()=>!r.current||!i.current?null:(r.current.currentNode=i.current,r.current.firstChild()),last:()=>!r.current||!i.current?null:(r.current.currentNode=i.current,r.current.lastChild()),next:()=>r.current?r.current.nextNode():null,prev:()=>r.current?r.current.previousNode():null,find:(e,t)=>{if(!r.current||!i.current)return null;let a=t?n?.getElementById(t):null;r.current.currentNode=a??i.current;let o=r.current.currentNode;for(;o&&!e(o.id);)o=r.current.nextNode();return o},setCurrent:e=>{r.current&&(r.current.currentNode=e)}}),[n]),listboxCallbackRef:o}}var bd=`data-activedescendant`,xd=`data-activedescendant-focusvisible`,Sd=e=>{if(!e)return;let t=Cd(e.parentElement);if(!t)return;let{offsetHeight:n}=e,r=wd(e,t),{scrollMarginTop:i,scrollMarginBottom:a}=Td(e),{offsetHeight:o,scrollTop:s}=t,c=r-i<s,l=r+n+a>s+o;c?t.scrollTo(0,r-i-2):l&&t.scrollTo(0,r+n+a-o+2)},Cd=e=>e?e.scrollHeight>e.offsetHeight?e:Cd(e.parentElement):null,wd=(e,t)=>!e||e===t?0:e.contains(t)?t.offsetTop*-1:e.offsetTop+wd(e.offsetParent,t),Td=e=>{let t=e.ownerDocument?.defaultView;if(!t)return{scrollMarginTop:0,scrollMarginBottom:0};let n=t.getComputedStyle(e);return{scrollMarginTop:Ed(n.scrollMarginTop)??Ed(n.scrollMarginBlockStart),scrollMarginBottom:Ed(n.scrollMarginBottom)??Ed(n.scrollMarginBlockEnd)}},Ed=e=>e?parseInt(e,10):0,Dd=e=>new CustomEvent(`activedescendantchange`,{bubbles:!0,cancelable:!1,composed:!0,detail:e});function Od(e){let{imperativeRef:t,matchOption:n}=e,r=M.useRef(!1),i=M.useRef(!0),a=M.useRef(null),o=M.useRef(null),s=M.useRef(null),c=M.useRef(!0),l=M.useCallback(()=>{var e;(e=s.current)==null||e.removeAttribute(`aria-activedescendant`)},[]),u=M.useCallback(e=>{if(e&&(a.current=e),c.current&&a.current){var t;(t=s.current)==null||t.setAttribute(`aria-activedescendant`,a.current)}},[]);rl(e=>{r.current=e;let t=h();t&&(e&&i.current?t.setAttribute(xd,``):t.removeAttribute(xd))});let d=F(n),f=M.useRef(null),{optionWalker:p,listboxCallbackRef:m}=yd({matchOption:d}),h=M.useCallback(()=>f.current?.querySelector(`#${a.current}`),[f]),g=M.useCallback(e=>{i.current=e;let t=h();t&&(e&&r.current?t.setAttribute(xd,``):t.removeAttribute(xd))},[h]),_=M.useCallback(()=>{let e=h();return e&&(e.removeAttribute(bd),e.removeAttribute(xd)),l(),o.current=a.current,a.current=null,e?.id??null},[h,l]),v=M.useCallback(e=>{if(!e)return;let t=_();Sd(e),u(e.id),e.setAttribute(bd,``),r.current&&i.current&&e.setAttribute(xd,``);let n=Dd({id:e.id,previousId:t});e.dispatchEvent(n)},[_,u]),y=M.useMemo(()=>({first:({passive:e}={})=>{let t=p.first();return e||v(t),t?.id},last:({passive:e}={})=>{let t=p.last();return e||v(t),t?.id},next:({passive:e}={})=>{let t=h();if(!t)return;p.setCurrent(t);let n=p.next();return e||v(n),n?.id},prev:({passive:e}={})=>{let t=h();if(!t)return;p.setCurrent(t);let n=p.prev();return e||v(n),n?.id},blur:()=>{_()},active:()=>h()?.id,focus:e=>{if(!f.current)return;let t=f.current.querySelector(`#${e}`);t&&v(t)},focusLastActive:()=>{if(!f.current||!o.current)return;let e=f.current.querySelector(`#${o.current}`);if(e)return v(e),!0},find(e,{passive:t,startFrom:n}={}){let r=p.find(e,n);return t||v(r),r?.id},scrollActiveIntoView:()=>{if(!f.current)return;let e=h();e&&Sd(e)},showAttributes(){c.current=!0,u()},hideAttributes(){c.current=!1,l()},showFocusVisibleAttributes(){g(!0)},hideFocusVisibleAttributes(){g(!1)}}),[p,f,u,l,v,_,h,g]);return M.useImperativeHandle(t,()=>y),{listboxRef:xa(f,m),activeParentRef:s,controller:y}}var kd=P({root:{mc9l5x:`f1w7gpdv`,Bg96gwp:`fez10in`},rtl:{Bz10aip:`f13rod7r`}},{d:[`.f1w7gpdv{display:inline;}`,`.fez10in{line-height:0;}`,`.f13rod7r{transform:scaleX(-1);}`]}),Ad=(e,t)=>{let{filled:n,title:r,primaryFill:i=`currentColor`,...a}=e,o={...a,fill:i},s=kd(),c=uo();return o.className=A(s.root,t?.flipInRtl&&c?.textDirection===`rtl`&&s.rtl,o.className),r&&(o[`aria-label`]=r),!o[`aria-label`]&&!o[`aria-labelledby`]?o[`aria-hidden`]=!0:o.role=`img`,o},jd=P({root:{B8gzw0y:`f1dd5bof`}},{m:[[`@media (forced-colors: active){.f1dd5bof{forced-color-adjust:auto;}}`,{m:`(forced-colors: active)`}]]}),Md=`fui-Icon`,Nd=(e,t)=>{let[n,r,...i]=e;return M.createElement(n,{...r,key:t},...i.map(Nd))},B=(e,t,n,r)=>{let i=t===`1em`?`20`:t,a=typeof n!=`string`&&(r?.color||Array.isArray(n[0]))?n.map(Nd):void 0,o=M.forwardRef((e,o)=>{let s=jd(),c=Ad(e,{flipInRtl:r?.flipInRtl}),l={...c,className:A(Md,c.className,s.root),ref:o,width:t,height:t,viewBox:`0 0 ${i} ${i}`,xmlns:`http://www.w3.org/2000/svg`};return typeof n==`string`?M.createElement(`svg`,{...l,dangerouslySetInnerHTML:{__html:n}}):a?M.createElement(`svg`,l,...a):M.createElement(`svg`,l,...n.map(e=>M.createElement(`path`,{d:e,fill:l.fill})))});return o.displayName=e,o},Pd=B(`CalendarMonthRegular`,`1em`,[`M14.5 3A2.5 2.5 0 0 1 17 5.5v9a2.5 2.5 0 0 1-2.5 2.5h-9A2.5 2.5 0 0 1 3 14.5v-9A2.5 2.5 0 0 1 5.5 3h9Zm0 1h-9C4.67 4 4 4.67 4 5.5v9c0 .83.67 1.5 1.5 1.5h9c.83 0 1.5-.67 1.5-1.5v-9c0-.83-.67-1.5-1.5-1.5ZM7 11a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm3 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2ZM7 7a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm3 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm3 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z`]),Fd=B(`TableRegular`,`1em`,[`M17 5.5A2.5 2.5 0 0 0 14.5 3h-9A2.5 2.5 0 0 0 3 5.5v9A2.5 2.5 0 0 0 5.5 17h9a2.5 2.5 0 0 0 2.5-2.5v-9Zm-13 9V13h3v3H5.36A1.5 1.5 0 0 1 4 14.5Zm8-1.5v3H8v-3h4Zm2.5 3H13v-3h3V14.64A1.5 1.5 0 0 1 14.5 16ZM12 8v4H8V8h4Zm1 0h3v4h-3V8Zm-1-4v3H8V4h4Zm1 0H14.64A1.5 1.5 0 0 1 16 5.5V7h-3V4ZM7 4v3H4V5.36A1.5 1.5 0 0 1 5.5 4H7Zm0 4v4H4V8h3Z`]),Id=B(`CodeRegular`,`1em`,[`M12.97 3.68a.5.5 0 0 0-.94-.36l-5 13a.5.5 0 1 0 .94.36l5-13ZM5.83 6.12c.2.18.23.5.05.7L3.16 10l2.72 3.17a.5.5 0 0 1-.76.66l-3-3.5a.5.5 0 0 1 0-.66l3-3.5a.5.5 0 0 1 .7-.05Zm8.34 8.26a.5.5 0 0 1-.05-.7l2.72-3.18-2.72-3.17a.5.5 0 1 1 .76-.66l3 3.5a.5.5 0 0 1 0 .66l-3 3.5a.5.5 0 0 1-.7.05Z`]),Ld=B(`GlobeRegular`,`1em`,[`M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm0-15c.66 0 1.4.59 2.02 1.9.22.47.4 1.01.56 1.6H7.42c.15-.59.34-1.13.56-1.6C8.59 3.6 9.34 3 10 3ZM7.07 4.49c-.27.59-.5 1.27-.68 2.01H3.94A7.02 7.02 0 0 1 7.7 3.38c-.24.33-.45.7-.64 1.1ZM6.2 7.5a15.97 15.97 0 0 0 0 5H3.46a6.98 6.98 0 0 1 0-5h2.73Zm.2 6c.17.74.4 1.42.68 2.01.19.4.4.78.64 1.1a7.02 7.02 0 0 1-3.77-3.11h2.45Zm1.03 0h5.16a9.25 9.25 0 0 1-.56 1.6C11.41 16.4 10.66 17 10 17c-.66 0-1.4-.59-2.02-1.9-.22-.47-.4-1.01-.56-1.6Zm5.37-1H7.21a14.87 14.87 0 0 1 0-5h5.58a14.86 14.86 0 0 1 0 5Zm.82 1h2.45a7.02 7.02 0 0 1-3.77 3.12c.24-.33.45-.7.64-1.1.27-.6.5-1.28.68-2.02Zm2.93-1h-2.73a15.97 15.97 0 0 0 0-5h2.73a6.98 6.98 0 0 1 0 5Zm-4.25-9.12a7.02 7.02 0 0 1 3.77 3.12h-2.45a10.5 10.5 0 0 0-.68-2.01c-.19-.4-.4-.78-.64-1.1Z`]),Rd=B(`OpenRegular`,`1em`,[`M6 4a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2v-2.5a.5.5 0 0 1 1 0V14a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h2.5a.5.5 0 0 1 0 1H6Zm5-.5c0-.28.22-.5.5-.5h5c.28 0 .5.22.5.5v5a.5.5 0 0 1-1 0V4.7l-4.15 4.15a.5.5 0 0 1-.7-.7L15.29 4H11.5a.5.5 0 0 1-.5-.5Z`]),zd=B(`PlugConnectedRegular`,`1em`,[`M17.85 2.85a.5.5 0 0 0-.7-.7L14.48 4.8a4.04 4.04 0 0 0-5.33.34l-.3.3a1.49 1.49 0 0 0 0 2.1l3.6 3.6c.58.59 1.52.59 2.1 0l.3-.3a4.04 4.04 0 0 0 .34-5.33l2.66-2.67Zm-4 7.6c-.2.19-.5.19-.7 0l-3.6-3.6c-.19-.2-.19-.5 0-.7l.3-.3a3.04 3.04 0 0 1 4.3 4.3l-.3.3Zm-6.3-1.6a1.49 1.49 0 0 0-2.1 0l-.3.3a4.04 4.04 0 0 0-.34 5.33l-2.66 2.67a.5.5 0 0 0 .7.7l2.67-2.66a4.04 4.04 0 0 0 5.33-.34l.3-.3c.59-.58.59-1.52 0-2.1l-3.6-3.6Zm-1.4.7c.2-.19.5-.19.7 0l3.6 3.6c.19.2.19.5 0 .7l-.3.3a3.04 3.04 0 1 1-4.3-4.3l.3-.3Z`]),Bd=B(`PlugConnectedCheckmarkRegular`,`1em`,[`M17.85 2.85a.5.5 0 0 0-.7-.7L14.48 4.8a4.04 4.04 0 0 0-5.33.34l-.3.3a1.49 1.49 0 0 0 0 2.1l2.46 2.47c.28-.2.58-.38.9-.52L9.55 6.85c-.19-.2-.19-.5 0-.7l.3-.3a3.04 3.04 0 0 1 5.01 3.16c.35.02.68.08 1 .16.37-1.23.15-2.6-.67-3.65l2.66-2.67Zm-10.3 6 2.47 2.46c-.2.28-.38.58-.52.9L6.85 9.55c-.2-.19-.5-.19-.7 0l-.3.3a3.04 3.04 0 0 0 3.16 5.01c.02.35.08.68.16 1-1.23.37-2.6.15-3.65-.67l-2.67 2.66a.5.5 0 0 1-.7-.7l2.66-2.67a4.04 4.04 0 0 1 .34-5.33l.3-.3a1.49 1.49 0 0 1 2.1 0ZM19 14.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Zm-2.15-1.85a.5.5 0 0 0-.7 0l-2.65 2.64-.65-.64a.5.5 0 0 0-.7.7l1 1c.2.2.5.2.7 0l3-3a.5.5 0 0 0 0-.7Z`]),Vd=B(`PlugDisconnectedRegular`,`1em`,[`M17.85 2.15c.2.2.2.5 0 .7L16.2 4.52a4.04 4.04 0 0 1-.34 5.33l-.3.3-.3.31c-.42.41-1.08.41-1.5 0L9.55 6.24a1.05 1.05 0 0 1 0-1.48l.6-.61a4.04 4.04 0 0 1 5.34-.34l1.67-1.66c.2-.2.5-.2.7 0Zm-2.71 2.7a3.04 3.04 0 0 0-4.29 0l-.3.3c-.19.2-.19.5 0 .7l3.6 3.6c.2.19.5.19.7 0l.3-.3a3.04 3.04 0 0 0 0-4.29l-.01-.01Zm-5.79 3.8c.2.2.2.5 0 .7L7.71 11 9 12.3l1.65-1.65a.5.5 0 0 1 .7.7L9.71 13l.44.45c.59.58.59 1.52 0 2.1l-.3.3a4.04 4.04 0 0 1-5.33.34l-1.67 1.66a.5.5 0 0 1-.7-.7l1.66-1.67a4.04 4.04 0 0 1 .34-5.33l.3-.3a1.49 1.49 0 0 1 2.1 0l.45.44 1.65-1.64c.2-.2.5-.2.7 0Zm-4.5 6.5a3.04 3.04 0 0 0 4.3 0l.3-.3c.19-.2.19-.5 0-.7l-3.6-3.6c-.2-.19-.5-.19-.7 0l-.3.3a3.04 3.04 0 0 0 0 4.3Z`]),Hd=B(`WarningFilled`,`1em`,[`M7.37 3.56a3 3 0 0 1 5.26 0l5.5 10A3 3 0 0 1 15.5 18h-11a3 3 0 0 1-2.63-4.44l5.5-10ZM10 12.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0-6.25a.5.5 0 0 0-.5.5v4a.5.5 0 0 0 1 0V7a.5.5 0 0 0-.5-.5Z`]),Ud=B(`InfoFilled`,`1em`,[`M18 10a8 8 0 1 0-16 0 8 8 0 0 0 16 0ZM9.5 8.91a.5.5 0 0 1 1 0V13.6a.5.5 0 0 1-1 0V8.9Zm-.25-2.16a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Z`]),Wd=B(`AddRegular`,`1em`,[`M10 2.5c.28 0 .5.22.5.5v6.5H17a.5.5 0 0 1 0 1h-6.5V17a.5.5 0 0 1-1 0v-6.5H3a.5.5 0 0 1 0-1h6.5V3c0-.28.22-.5.5-.5Z`]),Gd=B(`AddCircleColor`,`1em`,[[`path`,{d:`M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z`,fill:`url(#ic_fluent_add_circle_20_color__a)`}],[`path`,{d:`M6 10c0-.28.22-.5.5-.5h3v-3a.5.5 0 0 1 1 0v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3A.5.5 0 0 1 6 10Z`,fill:`url(#ic_fluent_add_circle_20_color__b)`}],[`defs`,null,[`linearGradient`,{id:`ic_fluent_add_circle_20_color__a`,x1:`2.57`,y1:`5`,x2:`13.61`,y2:`16.47`,gradientUnits:`userSpaceOnUse`},[`stop`,{stopColor:`#52D17C`}],[`stop`,{offset:`1`,stopColor:`#22918B`}]],[`linearGradient`,{id:`ic_fluent_add_circle_20_color__b`,x1:`7.5`,y1:`6.82`,x2:`9.95`,y2:`15.48`,gradientUnits:`userSpaceOnUse`},[`stop`,{stopColor:`#fff`}],[`stop`,{offset:`1`,stopColor:`#E3FFD9`}]]]],{color:!0}),Kd=B(`AddSquareRegular`,`1em`,[`M6 3a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3H6ZM4 6c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm6.5.5a.5.5 0 0 0-1 0v3h-3a.5.5 0 0 0 0 1h3v3a.5.5 0 1 0 1 0v-3h3a.5.5 0 1 0 0-1h-3v-3Z`]),qd=B(`BugFilled`,`1em`,[`M9 2.5a.5.5 0 0 0-1 0V3c0 .4.12.77.32 1.08A3 3 0 0 0 6 7h-.5A1.5 1.5 0 0 1 4 5.5v-2a.5.5 0 0 0-1 0v2A2.5 2.5 0 0 0 5.5 8H6v1.5H2.5a.5.5 0 0 0 0 1H6V12h-.5A2.5 2.5 0 0 0 3 14.5v2a.5.5 0 0 0 1 0v-2c0-.83.67-1.5 1.5-1.5H6a4 4 0 0 0 8 0h.5c.83 0 1.5.67 1.5 1.5v2a.5.5 0 0 0 1 0v-2a2.5 2.5 0 0 0-2.5-2.5H14v-1.5h3.5a.5.5 0 0 0 0-1H14V8h.5A2.5 2.5 0 0 0 17 5.5v-2a.5.5 0 0 0-1 0v2c0 .83-.67 1.5-1.5 1.5H14a3 3 0 0 0-2.32-2.92A2 2 0 0 0 12 3v-.5a.5.5 0 0 0-1 0V3a1 1 0 1 1-2 0v-.5Z`]),Jd=B(`BugRegular`,`1em`,[`M9 2.5a.5.5 0 0 0-1 0V3c0 .4.12.77.32 1.08A3 3 0 0 0 6 7h-.5A1.5 1.5 0 0 1 4 5.5v-2a.5.5 0 0 0-1 0v2A2.5 2.5 0 0 0 5.5 8H6v1.5H2.5a.5.5 0 0 0 0 1H6V12h-.5A2.5 2.5 0 0 0 3 14.5v2a.5.5 0 0 0 1 0v-2c0-.83.67-1.5 1.5-1.5H6a4 4 0 0 0 8 0h.5c.83 0 1.5.67 1.5 1.5v2a.5.5 0 0 0 1 0v-2a2.5 2.5 0 0 0-2.5-2.5H14v-1.5h3.5a.5.5 0 0 0 0-1H14V8h.5A2.5 2.5 0 0 0 17 5.5v-2a.5.5 0 0 0-1 0v2c0 .83-.67 1.5-1.5 1.5H14a3 3 0 0 0-2.32-2.92A2 2 0 0 0 12 3v-.5a.5.5 0 0 0-1 0V3a1 1 0 1 1-2 0v-.5ZM13 7v6a3 3 0 1 1-6 0V7c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2Z`]),Yd=B(`PlayRegular`,`1em`,[`M17.22 8.69a1.5 1.5 0 0 1 0 2.62l-10 5.5A1.5 1.5 0 0 1 5 15.5v-11A1.5 1.5 0 0 1 7.22 3.2l10 5.5Zm-.48 1.75a.5.5 0 0 0 0-.88l-10-5.5A.5.5 0 0 0 6 4.5v11c0 .38.4.62.74.44l10-5.5Z`]),Xd=B(`FormRegular`,`1em`,[`M5.5 5a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1h-9Zm1 6a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm0-1a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1ZM8 13.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm-1 0a.5.5 0 1 0-1 0 .5.5 0 0 0 1 0Zm2-4c0-.28.22-.5.5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5Zm.5 3.5a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5ZM6 3a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3H6ZM4 6c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Z`]),Zd=B(`EyeRegular`,`1em`,[`M3.26 11.6A6.97 6.97 0 0 1 10 6c3.2 0 6.06 2.33 6.74 5.6a.5.5 0 0 0 .98-.2A7.97 7.97 0 0 0 10 5a7.97 7.97 0 0 0-7.72 6.4.5.5 0 0 0 .98.2ZM10 8a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7Zm-2.5 3.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0Z`]),Qd=B(`CircleFilled`,`1em`,[`M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z`]),$d=B(`MathFormulaFilled`,`1em`,[`M8.91 3.54c.3-.04.48-.03.62 0 .14.02.28.08.48.2a.75.75 0 1 0 .78-1.28c-.3-.18-.6-.32-.97-.4a3.3 3.3 0 0 0-1.13 0h-.01c-.8.13-1.43.55-1.86 1.16a4.23 4.23 0 0 0-.67 2.18v.03a8.55 8.55 0 0 1-.02.36c0 .22-.02.52-.04.87v.09H4.8a.75.75 0 0 0 0 1.5H6a864.51 864.51 0 0 1-.35 5.49c-.1 1.28-.22 2.14-1.03 2.61-.4.23-1.01.21-1.68-.12a.75.75 0 1 0-.68 1.34c.93.46 2.11.65 3.11.08 1.54-.9 1.68-2.55 1.77-3.67v-.12c.07-.77.23-3.46.36-5.61h1.8a.75.75 0 1 0 0-1.5H7.58l.07-1.32c.04-.6.2-1.05.4-1.35.2-.28.47-.47.86-.54Zm7.87 6.74a.75.75 0 0 0-1.06-1.06l-2.58 2.58a36.22 36.22 0 0 1-.76-1.36l-.07-.11c-.15-.25-.38-.61-.66-.87a1.6 1.6 0 0 0-.74-.4 1.55 1.55 0 0 0-1.1.18l-.03.02c-.08.06-.18.13-.28.23l-.13.15-.02.03-.17.19a.75.75 0 0 0 1.14.98l.17-.2.02-.03.07-.07.01-.01.04.03a7.8 7.8 0 0 1 .47.66c.12.24.49.9.94 1.67l-2.82 2.83a.75.75 0 1 0 1.06 1.06l2.66-2.66a38.47 38.47 0 0 1 .87 1.54c.13.22.35.6.64.87.18.17.42.34.73.42a1.6 1.6 0 0 0 1.06-.1c.35-.17.57-.4.8-.77a.75.75 0 0 0-1.28-.79.95.95 0 0 1-.13.18l-.03.02-.03.01-.03-.01a.38.38 0 0 1-.06-.05 6.01 6.01 0 0 1-.36-.52l-.06-.1c-.12-.23-.53-.96-1.02-1.8l2.74-2.74Zm-6.18.24Zm0 0Z`]),ef=B(`MathFormulaRegular`,`1em`,[`M9.68 3.09c-.18-.04-.4-.04-.7 0-.52.08-.87.33-1.12.68-.26.37-.41.87-.46 1.45 0 .2-.04.87-.09 1.78H9.5a.5.5 0 0 1 0 1H7.26c-.13 2.25-.3 5.15-.36 5.94v.07c-.05.57-.11 1.25-.31 1.88-.21.67-.6 1.3-1.33 1.74-1.02.63-2.13.34-2.98-.08a.5.5 0 1 1 .44-.9c.75.38 1.44.49 2.02.13v-.01c.47-.27.73-.68.9-1.18.16-.52.2-1.1.26-1.7v-.03c.06-.8.23-3.64.36-5.86H4.5a.5.5 0 1 1 0-1h1.81a75.96 75.96 0 0 0 .1-1.84c.05-.7.24-1.4.63-1.96.4-.57 1-.97 1.78-1.1.4-.05.73-.05 1.05.01.33.06.6.2.89.36a.5.5 0 0 1-.52.86c-.22-.13-.39-.2-.56-.24Zm7.17 6.06c.2.2.2.5 0 .7l-3.22 3.22a162.5 162.5 0 0 0 1.4 2.47l.04.07c.06.12.11.2.15.25.06.09.12.15.25.22.21.03.28-.01.3-.03a3.56 3.56 0 0 0 .23-.27l.1-.13a.5.5 0 0 1 .8.6l-.06.08c-.11.16-.28.39-.5.54-.31.22-.69.27-1.14.17a1.69 1.69 0 0 1-.79-.6c-.08-.1-.14-.22-.2-.33l-.05-.08-.19-.32-1.07-1.9-3.05 3.04a.5.5 0 0 1-.7-.7l3.24-3.25a149.94 149.94 0 0 0-1.47-2.57 1.14 1.14 0 0 0-.32-.32c-.07-.02-.12-.01-.21.04-.12.08-.25.21-.39.4a.5.5 0 1 1-.8-.6c.16-.2.38-.47.66-.65a1.21 1.21 0 0 1 1.16-.1c.3.16.53.4.7.63a131.74 131.74 0 0 1 1.4 2.44l3.03-3.02c.2-.2.5-.2.7 0Z`]),tf=B(`EditRegular`,`1em`,[`M17.18 2.93a2.97 2.97 0 0 0-4.26-.06l-9.37 9.38c-.33.33-.56.74-.66 1.2l-.88 3.94a.5.5 0 0 0 .6.6l3.93-.87c.46-.1.9-.34 1.23-.68l9.36-9.36a2.97 2.97 0 0 0 .05-4.15Zm-3.55.65a1.97 1.97 0 1 1 2.8 2.8l-.68.66-2.8-2.79.68-.67Zm-1.38 1.38 2.8 2.8-7.99 7.97c-.2.2-.46.35-.74.41l-3.16.7.7-3.18c.07-.27.2-.51.4-.7l8-8Z`]),nf=B(`EditLineHorizontal3Regular`,`1em`,[`M12.92 2.87a2.97 2.97 0 0 1 4.2 4.21l-9.35 9.36c-.34.34-.77.57-1.23.68l-3.93.87a.5.5 0 0 1-.6-.6l.88-3.95c.1-.45.33-.86.66-1.2l9.37-9.37Zm3.54.75a1.97 1.97 0 0 0-2.83-.04l-.67.67 2.8 2.8.66-.68c.76-.75.77-1.98.04-2.75Zm-1.42 4.13-2.79-2.8-8 8c-.19.2-.32.44-.38.7l-.71 3.2 3.16-.71c.28-.06.54-.2.74-.4l7.98-7.99ZM2.5 3h8.88l-1 1H2.5a.5.5 0 0 1 0-1Zm0 3h5.88l-1 1H2.5a.5.5 0 0 1 0-1Zm0 3h2.88l-1 1H2.5a.5.5 0 0 1 0-1Z`]),rf=B(`FlashFlowFilled`,`1em`,[`M7.21 2c-.47 0-.89.31-1.02.77l-2.25 7.87c-.2.68.32 1.36 1.02 1.36h1.27l-1.17 4.68c-.26 1.05 1.04 1.78 1.8 1l4.81-4.92-.25-.76h-.18a3 3 0 1 1 .59-3A2.5 2.5 0 0 1 14 10.37l1.52-1.55c.65-.68.19-1.82-.76-1.82h-2.56l1.26-3.6c.23-.69-.28-1.4-1-1.4H7.2Zm10.72 13.77A2.01 2.01 0 0 0 19 14a2 2 0 0 0-3.73-1h-1.05a.5.5 0 0 1-.47-.34l-.55-1.63A1.5 1.5 0 0 0 11.78 10H11a2 2 0 1 0-.27 1h1.05c.21 0 .4.14.47.34l.55 1.63V13a1.5 1.5 0 0 0 1.42 1H15a2 2 0 0 0 2.93 1.77Zm-.44-.9a1 1 0 0 1-1.49-.86V14a1 1 0 0 1 2-.01V14a1 1 0 0 1-.51.87ZM10 10a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z`]),af=B(`FlashFlowRegular`,`1em`,[`M6.2 2.77C6.31 2.31 6.73 2 7.2 2h5.25c.73 0 1.24.71 1.01 1.4L12.2 7h2.56c.95 0 1.4 1.14.77 1.81L14 10.38a2.5 2.5 0 0 0-.63-.79l1.44-1.46a.06.06 0 0 0 .01-.03v-.05a.08.08 0 0 0-.03-.03L14.77 8H11.5a.5.5 0 0 1-.47-.67l1.5-4.25a.06.06 0 0 0-.07-.08H7.21a.06.06 0 0 0-.06.05L4.9 10.92c0 .04.02.08.06.08h1.21a3 3 0 0 0 1 1.38l-1.14 4.54v.04l.03.03.04.01h.01l.03-.02 4.2-4.3c.34-.17.65-.4.9-.68h.18l.25.76-4.81 4.91c-.76.79-2.06.06-1.8-1L6.23 12H4.96c-.7 0-1.21-.68-1.02-1.36L6.2 2.77Zm12.52 12.25A2.01 2.01 0 0 1 17 16a2 2 0 0 1-2-2h-.78a1.5 1.5 0 0 1-1.41-1l-.01-.03-.55-1.63a.5.5 0 0 0-.47-.34h-1.05a2 2 0 1 1 .27-1h.78c.64 0 1.22.41 1.42 1.03l.55 1.63c.06.2.26.34.47.34h1.05a2 2 0 1 1 3.45 2.02ZM17 15a1 1 0 0 0 1-1v-.05a1 1 0 0 0-2 .05v.02a1 1 0 0 0 1 .98Zm-8-4a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z`]),of=B(`LockClosedRegular`,`1em`,[`M10 1a4 4 0 0 1 4 4v2.05a2.5 2.5 0 0 1 2 2.45v6a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 4 15.5v-6c0-1.2.86-2.22 2-2.45V5a4 4 0 0 1 4-4ZM6.5 8C5.67 8 5 8.67 5 9.5v6c0 .83.67 1.5 1.5 1.5h7c.83 0 1.5-.67 1.5-1.5v-6c0-.83-.67-1.5-1.5-1.5h-7Zm3.5 3.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2ZM10 2a3 3 0 0 0-3 3v2h6V5a3 3 0 0 0-3-3Z`]),sf=B(`LockOpenRegular`,`1em`,[`M15 1a4 4 0 0 1 4 4v.5a.5.5 0 0 1-1 0V5a3 3 0 1 0-6 0v2h1.5A2.5 2.5 0 0 1 16 9.5v6a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 4 15.5v-6A2.5 2.5 0 0 1 6.5 7H11V5a4 4 0 0 1 4-4ZM6.5 8C5.67 8 5 8.67 5 9.5v6c0 .83.67 1.5 1.5 1.5h7c.83 0 1.5-.67 1.5-1.5v-6c0-.83-.67-1.5-1.5-1.5h-7Zm3.5 3.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z`]),cf=B(`ArrowDownRegular`,`1em`,[`M16.87 10.84a.5.5 0 1 0-.74-.68l-5.63 6.17V2.5a.5.5 0 0 0-1 0v13.83l-5.63-6.17a.5.5 0 0 0-.74.68l6.31 6.91a.75.75 0 0 0 1.11 0l6.32-6.91Z`]),lf=B(`ArrowDownloadRegular`,`1em`,[`M15.5 17a.5.5 0 0 1 .09 1H4.5a.5.5 0 0 1-.09-1H15.5ZM10 2a.5.5 0 0 1 .5.41V14.3l3.64-3.65a.5.5 0 0 1 .64-.06l.07.06c.17.17.2.44.06.63l-.06.07-4.5 4.5a.5.5 0 0 1-.25.14L10 16a.5.5 0 0 1-.4-.2l-4.46-4.45a.5.5 0 0 1 .64-.76l.07.06 3.65 3.64V2.5c0-.27.22-.5.5-.5Z`]),uf=B(`ArrowFlowDiagonalUpRightFilled`,`1em`,[`M10.5 4a.5.5 0 0 0 0 1h3.8l-6.56 6.55a3 3 0 1 0 .7.7L15 5.72V9.5a.5.5 0 0 0 1 0v-5a.5.5 0 0 0-.5-.5h-5Z`],{flipInRtl:!0}),df=B(`ArrowFlowDiagonalUpRightRegular`,`1em`,[`M10.5 4a.5.5 0 0 0 0 1h3.8l-6.56 6.55a3 3 0 1 0 .7.7L15 5.72V9.5a.5.5 0 0 0 1 0v-5a.5.5 0 0 0-.5-.5h-5ZM4 14a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z`],{flipInRtl:!0}),ff=B(`ArrowForwardDownLightningRegular`,`1em`,[`M13.61 4.32 16.3 7h-4.55C8.8 6.9 7 5.27 7 3a.5.5 0 0 0-1 0v.2C6.12 6.03 8.48 8 12 8h4.3l-2.69 2.68-.06.07a.5.5 0 0 0 .77.64l3.55-3.55.05-.07.04-.08.02-.06.02-.09v-.06.02a.5.5 0 0 0-.01-.1v-.03l-.03-.06-.03-.06-.05-.07-3.56-3.57-.07-.06a.5.5 0 0 0-.64.77ZM2.51 16h1.74l-.59 2.36c-.12.48.46.83.83.49l4.87-4.55a.75.75 0 0 0-.51-1.3h-1.1l.78-2.34a.5.5 0 0 0-.47-.66H4.59a.5.5 0 0 0-.47.3l-2.08 5c-.14.34.1.7.46.7Z`],{flipInRtl:!0}),pf=B(`ArrowRepeatAllRegular`,`1em`,[`M16.5 6.67a.5.5 0 0 1 .3.1l.08.07.01.02A5 5 0 0 1 13.22 15L13 15H6.7l1.65 1.65c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06-2.5-2.5a.5.5 0 0 1-.06-.63l.06-.07 2.5-2.5a.5.5 0 0 1 .76.63l-.06.07L6.72 14h.14L7 14h6a4 4 0 0 0 3.11-6.52.5.5 0 0 1 .39-.81Zm-4.85-4.02a.5.5 0 0 1 .63-.06l.07.06 2.5 2.5.06.07a.5.5 0 0 1 0 .56l-.06.07-2.5 2.5-.07.06a.5.5 0 0 1-.56 0l-.07-.06-.06-.07a.5.5 0 0 1 0-.56l.06-.07L13.28 6h-.14L13 6H7a4 4 0 0 0-3.1 6.52c.06.09.1.2.1.31a.5.5 0 0 1-.9.3A4.99 4.99 0 0 1 6.77 5h6.52l-1.65-1.65-.06-.07a.5.5 0 0 1 .06-.63Z`],{flipInRtl:!0}),mf=B(`ArrowSyncRegular`,`1em`,[`M11.41 3.64a.5.5 0 0 0 0-.71L9.3.8a.5.5 0 0 0-.7.7l1 1a7.5 7.5 0 0 0-4.08 13.5.5.5 0 0 0 .6-.8A6.5 6.5 0 0 1 10.14 3.5L8.59 5.04a.5.5 0 0 0 .7.7l2.12-2.11ZM8.6 16.36a.5.5 0 0 0 0 .71l2.12 2.12a.5.5 0 0 0 .7-.7l-1-1a7.5 7.5 0 0 0 4.07-13.5.5.5 0 1 0-.59.8A6.5 6.5 0 0 1 9.86 16.5l1.55-1.55a.5.5 0 1 0-.7-.7l-2.12 2.11Z`],{flipInRtl:!0}),hf=B(`ArrowUpRegular`,`1em`,[`M3.13 9.16a.5.5 0 1 0 .74.68L9.5 3.67V17.5a.5.5 0 1 0 1 0V3.67l5.63 6.17a.5.5 0 0 0 .74-.68l-6.32-6.92a.75.75 0 0 0-1.1 0L3.13 9.16Z`],{flipInRtl:!0}),gf=B(`ArrowUploadRegular`,`1em`,[`M15 3a.5.5 0 0 0 .09-.99H4a.5.5 0 0 0-.09.98L4 3h11ZM9.5 18a.5.5 0 0 0 .5-.41V5.7l3.64 3.65c.17.18.44.2.64.06l.07-.06a.5.5 0 0 0 .06-.63l-.06-.07-4.5-4.5A.5.5 0 0 0 9.6 4h-.1a.5.5 0 0 0-.4.19L4.64 8.65a.5.5 0 0 0 .64.76l.07-.06L9 5.71V17.5c0 .28.22.5.5.5Z`]),_f=B(`TextBulletListTreeRegular`,`1em`,[`M3 5.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm3-1c0-.28.22-.5.5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5Zm0 5c0-.28.22-.5.5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5Zm4.5 4.5a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7Zm-2.5.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-5-4a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z`]),vf=B(`CheckmarkFilled`,`1em`,[`M7.03 13.9 3.56 10a.75.75 0 0 0-1.12 1l4 4.5c.29.32.79.34 1.09.03l10.5-10.5a.75.75 0 0 0-1.06-1.06l-9.94 9.94Z`]),yf=B(`CheckmarkCircleFilled`,`1em`,[`M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm3.36 5.65a.5.5 0 0 0-.64-.06l-.07.06L9 11.3 7.35 9.65l-.07-.06a.5.5 0 0 0-.7.7l.07.07 2 2 .07.06c.17.11.4.11.56 0l.07-.06 4-4 .07-.08a.5.5 0 0 0-.06-.63Z`]),bf=B(`ChevronDownRegular`,`1em`,[`M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z`]),xf=B(`ChevronRightRegular`,`1em`,[`M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z`]),Sf=B(`SquareRegular`,`1em`,[`M3 6a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6Zm3-2a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H6Z`]),Cf=B(`SquareMultipleRegular`,`1em`,[`M6.09 4H5.05A2.5 2.5 0 0 1 7.5 2H14a4 4 0 0 1 4 4v6.5a2.5 2.5 0 0 1-2 2.45v-1.04c.58-.2 1-.76 1-1.41V6a3 3 0 0 0-3-3H7.5c-.65 0-1.2.42-1.41 1ZM4.5 5A2.5 2.5 0 0 0 2 7.5v8A2.5 2.5 0 0 0 4.5 18h8a2.5 2.5 0 0 0 2.5-2.5v-8A2.5 2.5 0 0 0 12.5 5h-8ZM3 7.5C3 6.67 3.67 6 4.5 6h8c.83 0 1.5.67 1.5 1.5v8c0 .83-.67 1.5-1.5 1.5h-8A1.5 1.5 0 0 1 3 15.5v-8Z`]),wf=B(`ClipboardBulletListFilled`,`1em`,[`M7.09 3H5.5C4.67 3 4 3.67 4 4.5v12c0 .83.67 1.5 1.5 1.5h9c.83 0 1.5-.67 1.5-1.5v-12c0-.83-.67-1.5-1.5-1.5h-1.59c-.2-.58-.76-1-1.41-1h-3c-.65 0-1.2.42-1.41 1ZM8.5 3h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1ZM9 8.5c0-.28.22-.5.5-.5H13a.5.5 0 0 1 0 1H9.5a.5.5 0 0 1-.5-.5Zm0 3c0-.28.22-.5.5-.5H13a.5.5 0 0 1 0 1H9.5a.5.5 0 0 1-.5-.5Zm0 3c0-.28.22-.5.5-.5H13a.5.5 0 0 1 0 1H9.5a.5.5 0 0 1-.5-.5Zm-1-6a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm0 3a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm-.75 3.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5Z`],{flipInRtl:!0}),Tf=B(`ClipboardBulletListRegular`,`1em`,[`M9 8.5c0-.28.22-.5.5-.5H13a.5.5 0 0 1 0 1H9.5a.5.5 0 0 1-.5-.5Zm0 3c0-.28.22-.5.5-.5H13a.5.5 0 0 1 0 1H9.5a.5.5 0 0 1-.5-.5Zm0 3c0-.28.22-.5.5-.5H13a.5.5 0 0 1 0 1H9.5a.5.5 0 0 1-.5-.5Zm-1-6a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm0 3a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm-.75 3.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM7.09 3c.2-.58.76-1 1.41-1h3c.65 0 1.2.42 1.41 1h1.59c.83 0 1.5.67 1.5 1.5v12c0 .83-.67 1.5-1.5 1.5h-9A1.5 1.5 0 0 1 4 16.5v-12C4 3.67 4.67 3 5.5 3h1.59ZM8.5 3a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3ZM7.09 4H5.5a.5.5 0 0 0-.5.5v12c0 .28.22.5.5.5h9a.5.5 0 0 0 .5-.5v-12a.5.5 0 0 0-.5-.5h-1.59c-.2.58-.76 1-1.41 1h-3a1.5 1.5 0 0 1-1.41-1Z`],{flipInRtl:!0}),Ef=B(`DeleteRegular`,`1em`,[`M8.5 4h3a1.5 1.5 0 0 0-3 0Zm-1 0a2.5 2.5 0 0 1 5 0h5a.5.5 0 0 1 0 1h-1.05l-1.2 10.34A3 3 0 0 1 12.27 18H7.73a3 3 0 0 1-2.98-2.66L3.55 5H2.5a.5.5 0 0 1 0-1h5ZM5.74 15.23A2 2 0 0 0 7.73 17h4.54a2 2 0 0 0 1.99-1.77L15.44 5H4.56l1.18 10.23ZM8.5 7.5c.28 0 .5.22.5.5v6a.5.5 0 0 1-1 0V8c0-.28.22-.5.5-.5ZM12 8a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V8Z`]),Df=B(`DeveloperBoardLightningFilled`,`1em`,[`M8 2.5a.5.5 0 0 0-1 0V4h-.5A2.5 2.5 0 0 0 4 6.5V7H2.5a.5.5 0 0 0 0 1H4v1.5H2.5a.5.5 0 0 0 0 1H4V12H2.5a.5.5 0 0 0 0 1H4v.5A2.5 2.5 0 0 0 6.5 16H7v1.5a.5.5 0 0 0 1 0V16h1.5v1.5a.5.5 0 0 0 1 0V16H12v1.5a.5.5 0 0 0 1 0V16h.5a2.5 2.5 0 0 0 2.5-2.5V13h1.5a.5.5 0 0 0 0-1H16v-1.5h1.5a.5.5 0 0 0 0-1H16V8h1.5a.5.5 0 0 0 0-1H16v-.5A2.5 2.5 0 0 0 13.5 4H13V2.5a.5.5 0 0 0-1 0V4h-1.5V2.5a.5.5 0 0 0-1 0V4H8V2.5Zm2.99 5.04L10.57 9h1.53c.34 0 .52.4.3.66l-2.65 3.19c-.3.35-.86.05-.73-.4L9.46 11H7.9a.4.4 0 0 1-.3-.66l2.66-3.19c.3-.34.85-.05.73.39Z`]),Of=B(`DeveloperBoardLightningRegular`,`1em`,[`M10.99 7.54 10.57 9h1.53c.34 0 .52.4.3.66l-2.65 3.19c-.3.35-.86.05-.73-.4L9.46 11H7.9a.4.4 0 0 1-.3-.66l2.66-3.19c.3-.34.85-.05.73.39ZM8 2.5a.5.5 0 0 0-1 0V4h-.5A2.5 2.5 0 0 0 4 6.5V7H2.5a.5.5 0 0 0 0 1H4v1.5H2.5a.5.5 0 0 0 0 1H4V12H2.5a.5.5 0 0 0 0 1H4v.5A2.5 2.5 0 0 0 6.5 16H7v1.5a.5.5 0 0 0 1 0V16h1.5v1.5a.5.5 0 0 0 1 0V16H12v1.5a.5.5 0 0 0 1 0V16h.5a2.5 2.5 0 0 0 2.5-2.5V13h1.5a.5.5 0 0 0 0-1H16v-1.5h1.5a.5.5 0 0 0 0-1H16V8h1.5a.5.5 0 0 0 0-1H16v-.5A2.5 2.5 0 0 0 13.5 4H13V2.5a.5.5 0 0 0-1 0V4h-1.5V2.5a.5.5 0 0 0-1 0V4H8V2.5ZM13.5 5c.83 0 1.5.67 1.5 1.5v7c0 .83-.67 1.5-1.5 1.5h-7A1.5 1.5 0 0 1 5 13.5v-7C5 5.67 5.67 5 6.5 5h7Z`]),kf=B(`FilterFilled`,`1em`,[`M12.25 13.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5h4.5Zm2-4.25a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5h8.5Zm2-4.25a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1 0-1.5h12.5Z`]),Af=B(`DiamondDismissFilled`,`1em`,[`M7.88 1.88a3 3 0 0 1 4.24 0l6 6a3 3 0 0 1 0 4.24l-6 6a3 3 0 0 1-4.24 0l-6-6a3 3 0 0 1 0-4.24l6-6ZM13.1 6.9a.5.5 0 0 0-.7 0L10 9.3 7.6 6.9a.5.5 0 0 0-.7.7L9.3 10l-2.4 2.4a.5.5 0 0 0 .7.7l2.4-2.4 2.4 2.4a.5.5 0 0 0 .7-.7L10.7 10l2.4-2.4a.5.5 0 0 0 0-.7Z`]),jf=B(`DismissRegular`,`1em`,[`m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z`]),Mf=B(`DismissCircleColor`,`1em`,[[`path`,{d:`M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Z`,fill:`url(#ic_fluent_dismiss_circle_20_color__a)`}],[`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M7.15 7.15c.2-.2.5-.2.7 0L10 9.29l2.15-2.14a.5.5 0 0 1 .7.7L10.71 10l2.14 2.15a.5.5 0 0 1-.7.7L10 10.71l-2.15 2.14a.5.5 0 0 1-.7-.7L9.29 10 7.15 7.85a.5.5 0 0 1 0-.7Z`,fill:`url(#ic_fluent_dismiss_circle_20_color__b)`}],[`defs`,null,[`linearGradient`,{id:`ic_fluent_dismiss_circle_20_color__a`,x1:`4.5`,y1:`3`,x2:`15`,y2:`18.5`,gradientUnits:`userSpaceOnUse`},[`stop`,{stopColor:`#F83F54`}],[`stop`,{offset:`1`,stopColor:`#CA2134`}]],[`linearGradient`,{id:`ic_fluent_dismiss_circle_20_color__b`,x1:`7.35`,y1:`10.27`,x2:`10.47`,y2:`13.51`,gradientUnits:`userSpaceOnUse`},[`stop`,{stopColor:`#FDFDFD`}],[`stop`,{offset:`1`,stopColor:`#FECBE6`}]]]],{color:!0}),Nf=B(`DismissCircleFilled`,`1em`,[`M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16ZM7.8 7.11a.5.5 0 0 0-.63.06l-.06.07a.5.5 0 0 0 .06.64L9.3 10l-2.12 2.12-.06.07a.5.5 0 0 0 .06.64l.07.06c.2.13.47.11.64-.06L10 10.7l2.12 2.12.07.06c.2.13.46.11.64-.06l.06-.07a.5.5 0 0 0-.06-.64L10.7 10l2.12-2.12.06-.07a.5.5 0 0 0-.06-.64l-.07-.06a.5.5 0 0 0-.64.06L10 9.3 7.88 7.17l-.07-.06Z`]),Pf=B(`DismissSquareRegular`,`1em`,[`M7.15 7.15c.2-.2.5-.2.7 0L10 9.29l2.15-2.14a.5.5 0 0 1 .7.7L10.71 10l2.14 2.15a.5.5 0 0 1-.7.7L10 10.71l-2.15 2.14a.5.5 0 0 1-.7-.7L9.29 10 7.15 7.85a.5.5 0 0 1 0-.7ZM3 6a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6Zm3-2a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H6Z`]),Ff=B(`FolderRegular`,`1em`,[`M4.5 3A2.5 2.5 0 0 0 2 5.5v9A2.5 2.5 0 0 0 4.5 17h11a2.5 2.5 0 0 0 2.5-2.5v-7A2.5 2.5 0 0 0 15.5 5H9.7L8.23 3.51A1.75 1.75 0 0 0 6.98 3H4.5ZM3 5.5C3 4.67 3.67 4 4.5 4h2.48c.2 0 .4.08.53.22L8.8 5.5 7.44 6.85a.5.5 0 0 1-.35.15H3V5.5ZM3 8h4.09c.4 0 .78-.16 1.06-.44L9.7 6h5.79c.83 0 1.5.67 1.5 1.5v7c0 .83-.67 1.5-1.5 1.5h-11A1.5 1.5 0 0 1 3 14.5V8Z`]),If=B(`FolderOpenRegular`,`1em`,[`M3 5.5v6.6l1.5-2.6A3 3 0 0 1 7.1 8H15v-.5c0-.83-.67-1.5-1.5-1.5h-4a.5.5 0 0 1-.35-.15l-1.71-1.7A.5.5 0 0 0 7.09 4H4.5C3.67 4 3 4.67 3 5.5Zm1.28 10.48.22.02h9.4a2 2 0 0 0 1.73-1l2.17-3.75A1.5 1.5 0 0 0 16.5 9H7.1a2 2 0 0 0-1.73 1L3.2 13.75a1.5 1.5 0 0 0 1.08 2.23ZM2 14.46V5.5A2.5 2.5 0 0 1 4.5 3h2.59c.4 0 .78.16 1.06.44L9.7 5h3.79A2.5 2.5 0 0 1 16 7.5V8h.5a2.5 2.5 0 0 1 2.16 3.75L16.5 15.5a3 3 0 0 1-2.6 1.5H4.5a2.54 2.54 0 0 1-1.62-.6A2.5 2.5 0 0 1 2 14.46Z`],{flipInRtl:!0}),Lf=B(`SelectAllOffFilled`,`1em`,[`M3 6a3 3 0 0 1 3-3h6a3 3 0 0 1 3 3v6a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6Zm4.99 11a3 3 0 0 1-2.24-1h6.74a3.5 3.5 0 0 0 3.5-3.5V5.77A3 3 0 0 1 17 8v4.5a4.5 4.5 0 0 1-4.5 4.5h-4.5Z`]),Rf=B(`SelectAllOffRegular`,`1em`,[`M6 3a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3H6ZM4 6c0-1.1.9-2 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm3.99 11a3 3 0 0 1-2.24-1h6.74a3.5 3.5 0 0 0 3.5-3.5V5.77A3 3 0 0 1 17 8v4.5a4.5 4.5 0 0 1-4.5 4.5h-4.5Z`]),zf=B(`Settings24Filled`,`24`,[`M12.01 2.25c.74 0 1.47.1 2.18.25.32.07.55.33.59.65l.17 1.53a1.38 1.38 0 0 0 1.92 1.11l1.4-.61c.3-.13.64-.06.85.17a9.8 9.8 0 0 1 2.2 3.8c.1.3 0 .63-.26.82l-1.25.92a1.38 1.38 0 0 0 0 2.22l1.25.92c.26.19.36.52.27.82a9.8 9.8 0 0 1-2.2 3.8.75.75 0 0 1-.85.17l-1.4-.62a1.38 1.38 0 0 0-1.93 1.12l-.17 1.52a.75.75 0 0 1-.58.65 9.52 9.52 0 0 1-4.4 0 .75.75 0 0 1-.57-.65l-.17-1.52a1.38 1.38 0 0 0-1.93-1.11l-1.4.62a.75.75 0 0 1-.85-.18 9.8 9.8 0 0 1-2.2-3.8c-.1-.3 0-.63.26-.82l1.25-.92a1.38 1.38 0 0 0 0-2.22l-1.24-.92a.75.75 0 0 1-.28-.82 9.8 9.8 0 0 1 2.2-3.8c.23-.23.57-.3.86-.17l1.4.62c.4.17.86.15 1.25-.08.38-.22.63-.6.68-1.04l.17-1.53a.75.75 0 0 1 .58-.65c.72-.16 1.45-.24 2.2-.25ZM12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z`]),Bf=B(`Settings24Regular`,`24`,[`M12.01 2.25c.74 0 1.47.1 2.18.25.32.07.55.33.59.65l.17 1.53a1.38 1.38 0 0 0 1.92 1.11l1.4-.61c.3-.13.64-.06.85.17a9.8 9.8 0 0 1 2.2 3.8c.1.3 0 .63-.26.82l-1.25.92a1.38 1.38 0 0 0 0 2.22l1.25.92c.26.19.36.52.27.82a9.8 9.8 0 0 1-2.2 3.8.75.75 0 0 1-.85.17l-1.4-.62a1.38 1.38 0 0 0-1.93 1.12l-.17 1.52a.75.75 0 0 1-.58.65 9.52 9.52 0 0 1-4.4 0 .75.75 0 0 1-.57-.65l-.17-1.52a1.38 1.38 0 0 0-1.93-1.11l-1.4.62a.75.75 0 0 1-.85-.18 9.8 9.8 0 0 1-2.2-3.8c-.1-.3 0-.63.26-.82l1.25-.92a1.38 1.38 0 0 0 0-2.22l-1.24-.92a.75.75 0 0 1-.28-.82 9.8 9.8 0 0 1 2.2-3.8c.23-.23.57-.3.86-.17l1.4.62c.4.17.86.15 1.25-.08.38-.22.63-.6.68-1.04l.17-1.53a.75.75 0 0 1 .58-.65c.72-.16 1.45-.24 2.2-.25Zm0 1.5c-.45 0-.9.04-1.35.12l-.11.97a2.89 2.89 0 0 1-4.03 2.33l-.9-.4A8.3 8.3 0 0 0 4.29 9.1l.8.59a2.88 2.88 0 0 1 0 4.64l-.8.59a8.3 8.3 0 0 0 1.35 2.32l.9-.4a2.88 2.88 0 0 1 4.02 2.32l.1.99c.9.15 1.8.15 2.7 0l.1-.99a2.88 2.88 0 0 1 4.02-2.32l.9.4a8.3 8.3 0 0 0 1.35-2.32l-.8-.59a2.88 2.88 0 0 1 0-4.64l.8-.59a8.3 8.3 0 0 0-1.35-2.32l-.9.4a2.88 2.88 0 0 1-4.02-2.32l-.1-.98c-.45-.08-.9-.11-1.34-.12ZM12 8.25a3.75 3.75 0 1 1 0 7.5 3.75 3.75 0 0 1 0-7.5Zm0 1.5a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Z`]),Vf=B(`Warning12Filled`,`12`,[`M4.28 1.97a2 2 0 0 1 3.43 0l3 5A2 2 0 0 1 9 10H3A2 2 0 0 1 1.3 6.98l3-5ZM6 6.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM6 3.5a.5.5 0 0 0-.5.5v1.5a.5.5 0 0 0 1 0V4a.5.5 0 0 0-.5-.5Z`]),Hf=B(`Save24Regular`,`24`,[`M3 5.75A2.75 2.75 0 0 1 5.75 3h9.96c.87 0 1.7.34 2.3.95L20.05 6c.6.6.95 1.43.95 2.3v9.96A2.75 2.75 0 0 1 18.25 21H5.75A2.75 2.75 0 0 1 3 18.25V5.75ZM5.75 4.5c-.69 0-1.25.56-1.25 1.25v12.5c0 .69.56 1.25 1.25 1.25H6v-5.25C6 13.01 7 12 8.25 12h7.5c1.24 0 2.25 1 2.25 2.25v5.25h.25c.69 0 1.25-.56 1.25-1.25V8.29c0-.47-.18-.91-.51-1.24L16.95 5c-.26-.26-.6-.43-.95-.49v2.73c0 1.24-1 2.25-2.25 2.25h-4.5C8.01 9.5 7 8.5 7 7.25V4.5H5.75Zm10.75 15v-5.25a.75.75 0 0 0-.75-.75h-7.5a.75.75 0 0 0-.75.75v5.25h9Zm-8-15v2.75c0 .41.34.75.75.75h4.5c.41 0 .75-.34.75-.75V4.5h-6Z`]),Uf=B(`WeatherMoon24Regular`,`24`,[`M20.03 17a10 10 0 0 1-16.9.68.75.75 0 0 1 .36-1.13c3.77-1.35 5.79-2.91 6.96-5.15 1.23-2.35 1.55-4.93.69-8.46A.75.75 0 0 1 11.9 2 10 10 0 0 1 20.03 17Zm-8.25-4.9c-1.25 2.39-3.31 4.1-6.82 5.5a8.49 8.49 0 0 0 13.77-1.35 8.5 8.5 0 0 0-5.9-12.63c.64 3.39.22 6.05-1.05 8.48Z`]),Wf=B(`WeatherSunny24Regular`,`24`,[`M12 2c.41 0 .75.34.75.75v1.5a.75.75 0 0 1-1.5 0v-1.5c0-.41.34-.75.75-.75Zm0 15a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0-1.5a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7Zm9.25-2.75a.75.75 0 0 0 0-1.5h-1.5a.75.75 0 0 0 0 1.5h1.5ZM12 19c.41 0 .75.34.75.75v1.5a.75.75 0 0 1-1.5 0v-1.5c0-.41.34-.75.75-.75Zm-7.75-6.25a.75.75 0 0 0 0-1.5h-1.5a.75.75 0 0 0 0 1.5h1.5Zm-.03-8.53c.3-.3.77-.3 1.06 0l1.5 1.5a.75.75 0 0 1-1.06 1.06l-1.5-1.5a.75.75 0 0 1 0-1.06Zm1.06 15.56a.75.75 0 1 1-1.06-1.06l1.5-1.5a.75.75 0 1 1 1.06 1.06l-1.5 1.5Zm14.5-15.56a.75.75 0 0 0-1.06 0l-1.5 1.5a.75.75 0 0 0 1.06 1.06l1.5-1.5c.3-.3.3-.77 0-1.06Zm-1.06 15.56a.75.75 0 1 0 1.06-1.06l-1.5-1.5a.75.75 0 1 0-1.06 1.06l1.5 1.5Z`]),Gf=B(`Play24Regular`,`24`,[`M7.6 4.61a.75.75 0 0 0-1.1.66v13.46c0 .56.6.93 1.1.65l12.37-6.72a.75.75 0 0 0 0-1.32L7.61 4.61ZM5 5.27c0-1.7 1.83-2.79 3.33-1.97l12.36 6.72a2.25 2.25 0 0 1 0 3.96L8.33 20.7A2.25 2.25 0 0 1 5 18.73V5.27Z`]),Kf=B(`Edit20Regular`,`20`,[`M17.18 2.93a2.97 2.97 0 0 0-4.26-.06l-9.37 9.38c-.33.33-.56.74-.66 1.2l-.88 3.94a.5.5 0 0 0 .6.6l3.93-.87c.46-.1.9-.34 1.23-.68l9.36-9.36a2.97 2.97 0 0 0 .05-4.15Zm-3.55.65a1.97 1.97 0 1 1 2.8 2.8l-.68.66-2.8-2.79.68-.67Zm-1.38 1.38 2.8 2.8-7.99 7.97c-.2.2-.46.35-.74.41l-3.16.7.7-3.18c.07-.27.2-.51.4-.7l8-8Z`]),qf=B(`Edit24Regular`,`24`,[`M20.95 3.05a3.58 3.58 0 0 0-5.06 0L3.94 15c-.4.4-.7.92-.82 1.48l-1.1 4.6a.75.75 0 0 0 .9.9l4.6-1.1A3.1 3.1 0 0 0 9 20.07L20.95 8.11a3.58 3.58 0 0 0 0-5.06Zm-4 1.06a2.08 2.08 0 1 1 2.94 2.94l-.89.89L16.06 5l.9-.9ZM15 6.06 17.94 9l-10 10a1.6 1.6 0 0 1-.76.43l-3.42.8.82-3.4c.06-.3.21-.56.42-.77l10-10Z`]),Jf=B(`LockClosed16Filled`,`16`,[`M8 1a3 3 0 0 1 3 3v2a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2V4a3 3 0 0 1 3-3Zm0 8.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM8 2a2 2 0 0 0-2 2v2h4V4a2 2 0 0 0-2-2Z`]),Yf=B(`LockClosed16Regular`,`16`,[`M8 1a3 3 0 0 1 3 3v2a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2V4a3 3 0 0 1 3-3ZM5 7a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H5Zm3 2.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2ZM8 2a2 2 0 0 0-2 2v2h4V4a2 2 0 0 0-2-2Z`]),Xf=B(`LockOpen16Filled`,`16`,[`M12 1a3 3 0 0 1 3 3v.5a.5.5 0 0 1-1 0V4a2 2 0 1 0-4 0v2h1a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h4V4a3 3 0 0 1 3-3ZM8 9.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z`]),Zf=B(`LockOpen16Regular`,`16`,[`M12 1a3 3 0 0 1 3 3v.5a.5.5 0 0 1-1 0V4a2 2 0 1 0-4 0v2h1a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h4V4a3 3 0 0 1 3-3ZM5 7a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H5Zm3 2.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z`]),Qf=B(`Navigation20Filled`,`20`,[`M2 4.75c0-.41.34-.75.75-.75h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 4.75Zm0 5c0-.41.34-.75.75-.75h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 9.75ZM2.75 14a.75.75 0 0 0 0 1.5h14.5a.75.75 0 0 0 0-1.5H2.75Z`]),$f=B(`ArrowReset24Regular`,`24`,[`M6.78 2.72c.3.3.3.77 0 1.06L4.56 6h8.69a7.75 7.75 0 1 1-7.75 7.75.75.75 0 0 1 1.5 0 6.25 6.25 0 1 0 6.25-6.25H4.56l2.22 2.22a.75.75 0 1 1-1.06 1.06l-3.5-3.5a.75.75 0 0 1 0-1.06l3.5-3.5c.3-.3.77-.3 1.06 0Z`],{flipInRtl:!0}),ep=B(`TextDescription16Regular`,`16`,[`M1.5 3a.5.5 0 0 0 0 1h13a.5.5 0 0 0 0-1h-13Zm0 3a.5.5 0 0 0 0 1h13a.5.5 0 0 0 0-1h-13ZM1 9.5c0-.28.22-.5.5-.5h13a.5.5 0 0 1 0 1h-13a.5.5 0 0 1-.5-.5Zm.5 2.5a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1h-9Z`],{flipInRtl:!0}),tp=B(`Key16Regular`,`16`,[`M11 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z`,`M7.5 12v-.5h1A.5.5 0 0 0 9 11v-1h1a4 4 0 1 0-3.84-2.87L2.3 11a1 1 0 0 0-.29.7V13a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-.5h1a.5.5 0 0 0 .5-.5ZM7 6a3 3 0 1 1 3 3H8.5a.5.5 0 0 0-.5.5v1H7a.5.5 0 0 0-.5.5v.5h-1a.5.5 0 0 0-.5.5v1H3v-1.3l4.09-4.08a.5.5 0 0 0 .11-.54A3 3 0 0 1 7 6Z`]),np=B(`Checkmark12Filled`,`12`,[`M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z`]),rp=B(`Checkmark16Filled`,`16`,[`M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 0 1 4.9 12L2.22 9.28a.75.75 0 1 1 1.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 0 1 1.06.04Z`]),ip=B(`Checkmark24Regular`,`24`,[`M4.53 12.97a.75.75 0 0 0-1.06 1.06l4.5 4.5c.3.3.77.3 1.06 0l11-11a.75.75 0 0 0-1.06-1.06L8.5 16.94l-3.97-3.97Z`]),ap=B(`CheckmarkCircle12Filled`,`12`,[`M1 6a5 5 0 1 1 10 0A5 5 0 0 1 1 6Zm7.35-.9a.5.5 0 1 0-.7-.7L5.5 6.54 4.35 5.4a.5.5 0 1 0-.7.7l1.5 1.5c.2.2.5.2.7 0l2.5-2.5Z`]),op=B(`ChevronDown16Regular`,`16`,[`M3.15 5.65c.2-.2.5-.2.7 0L8 9.79l4.15-4.14a.5.5 0 0 1 .7.7l-4.5 4.5a.5.5 0 0 1-.7 0l-4.5-4.5a.5.5 0 0 1 0-.7Z`]),sp=B(`ChevronDown20Regular`,`20`,[`M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z`]),cp=B(`ChevronRight12Regular`,`12`,[`M4.65 2.15a.5.5 0 0 0 0 .7L7.79 6 4.65 9.15a.5.5 0 1 0 .7.7l3.5-3.5a.5.5 0 0 0 0-.7l-3.5-3.5a.5.5 0 0 0-.7 0Z`]),lp=B(`ChevronRight16Regular`,`16`,[`M5.65 3.15a.5.5 0 0 0 0 .7L9.79 8l-4.14 4.15a.5.5 0 0 0 .7.7l4.5-4.5a.5.5 0 0 0 0-.7l-4.5-4.5a.5.5 0 0 0-.7 0Z`]),up=B(`Square12Filled`,`12`,[`M2 4c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4Z`]),dp=B(`Square16Filled`,`16`,[`M2 4.5A2.5 2.5 0 0 1 4.5 2h7A2.5 2.5 0 0 1 14 4.5v7a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 11.5v-7Z`]),fp=B(`Delete24Regular`,`24`,[`M10 5h4a2 2 0 1 0-4 0ZM8.5 5a3.5 3.5 0 1 1 7 0h5.75a.75.75 0 0 1 0 1.5h-1.32l-1.17 12.11A3.75 3.75 0 0 1 15.03 22H8.97a3.75 3.75 0 0 1-3.73-3.39L4.07 6.5H2.75a.75.75 0 0 1 0-1.5H8.5Zm2 4.75a.75.75 0 0 0-1.5 0v7.5a.75.75 0 0 0 1.5 0v-7.5ZM14.25 9c.41 0 .75.34.75.75v7.5a.75.75 0 0 1-1.5 0v-7.5c0-.41.34-.75.75-.75Zm-7.52 9.47a2.25 2.25 0 0 0 2.24 2.03h6.06c1.15 0 2.12-.88 2.24-2.03L18.42 6.5H5.58l1.15 11.97Z`]),pp=B(`DiamondDismiss12Filled`,`12`,[`M4.59 1.09a2 2 0 0 1 2.82 0l3.5 3.5a2 2 0 0 1 0 2.82l-3.5 3.5a2 2 0 0 1-2.82 0l-3.5-3.5a2 2 0 0 1 0-2.83l3.5-3.5Zm3.26 3.06a.5.5 0 0 0-.7 0L6 5.29 4.85 4.15a.5.5 0 0 0-.7.7L5.29 6 4.15 7.15a.5.5 0 0 0 .7.7L6 6.71l1.15 1.14a.5.5 0 1 0 .7-.7L6.71 6l1.14-1.15a.5.5 0 0 0 0-.7Z`]),mp=B(`Dismiss20Regular`,`20`,[`m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z`]),hp=B(`Dismiss24Regular`,`24`,[`m4.4 4.55.07-.08a.75.75 0 0 1 .98-.07l.08.07L12 10.94l6.47-6.47a.75.75 0 1 1 1.06 1.06L13.06 12l6.47 6.47c.27.27.3.68.07.98l-.07.08a.75.75 0 0 1-.98.07l-.08-.07L12 13.06l-6.47 6.47a.75.75 0 0 1-1.06-1.06L10.94 12 4.47 5.53a.75.75 0 0 1-.07-.98l.07-.08-.07.08Z`]),gp={durationUltraFast:50,durationFaster:100,durationFast:150,durationNormal:200,durationGentle:250,durationSlow:300,durationSlower:400,durationUltraSlow:500},_p={curveAccelerateMax:`cubic-bezier(0.9,0.1,1,0.2)`,curveAccelerateMid:`cubic-bezier(1,0,1,1)`,curveAccelerateMin:`cubic-bezier(0.8,0,0.78,1)`,curveDecelerateMax:`cubic-bezier(0.1,0.9,0.2,1)`,curveDecelerateMid:`cubic-bezier(0,0,0,1)`,curveDecelerateMin:`cubic-bezier(0.33,0,0.1,1)`,curveEasyEaseMax:`cubic-bezier(0.8,0,0.2,1)`,curveEasyEase:`cubic-bezier(0.33,0,0.67,1)`,curveLinear:`cubic-bezier(0,0,1,1)`},vp={...gp,..._p};function yp(e){if(e.playState===`running`){if(e.overallProgress!==void 0){let t=e.overallProgress??0;return t>0&&t<1}let t=Number(e.currentTime??0),n=Number(e.effect?.getTiming().duration??0);return t>0&&t<n}return!1}var bp={fill:`forwards`},xp={duration:1};function Sp(e){return{set playbackRate(t){e.forEach(e=>{e.playbackRate=t})},setMotionEndCallbacks(t,n){let r=e.map(e=>new Promise((t,n)=>{e.onfinish=()=>t(),e.oncancel=()=>n()}));Promise.all(r).then(()=>{t()}).catch(()=>{n()})},isRunning(){return e.some(e=>yp(e))},dispose:()=>{e.length=0},cancel:()=>{e.forEach(e=>{e.cancel()})},pause:()=>{e.forEach(e=>{e.pause()})},play:()=>{e.forEach(e=>{e.play()})},finish:()=>{e.forEach(e=>{e.finish()})},reverse:()=>{e.forEach(e=>{e.reverse()})}}}function Cp(){let e=typeof window<`u`&&typeof window.Animation?.prototype.persist==`function`;return M.useCallback((t,n,r)=>{let i=Array.isArray(n)?n:[n],{isReducedMotion:a}=r;return Sp(i.map(n=>{let{keyframes:r,reducedMotion:i=xp,...o}=n,{keyframes:s=r,...c}=i,l=a?s:r,u={...bp,...o,...a&&c};try{let n=t.animate(l,u);if(e)n?.persist();else{let e=l[l.length-1];Object.assign(t.style??{},e)}return n}catch{return null}}).filter(e=>!!e))},[e])}function wp(){"use no memo";return Cp()}function Tp(e){let t=M.useRef(void 0);return M.useImperativeHandle(e,()=>({setPlayState:e=>{if(e===`running`){var n;(n=t.current)==null||n.play()}if(e===`paused`){var r;(r=t.current)==null||r.pause()}},setPlaybackRate:e=>{t.current&&(t.current.playbackRate=e)}})),t}var Ep=`screen and (prefers-reduced-motion: reduce)`;function Dp(){let{targetDocument:e}=Gi(),t=e?.defaultView??null,n=M.useRef(!1),r=M.useCallback(()=>n.current,[]);return ha(()=>{if(t===null||typeof t.matchMedia!=`function`)return;let e=t.matchMedia(Ep);e.matches&&(n.current=!0);let r=e=>{n.current=e.matches};return e.addEventListener(`change`,r),()=>{e.removeEventListener(`change`,r)}},[t]),r}var Op=[`@fluentui/react-motion: Invalid child element.`,`
11
+ `,`Motion factories require a single child element to be passed. `,`That element element should support ref forwarding i.e. it should be either an intrinsic element (e.g. div) or a component that uses React.forwardRef().`].join(``);function kp(e,t=!0){let n=M.useRef(null);M.useEffect(()=>{},[t]);try{let t=M.Children.only(e);if(M.isValidElement(t))return[M.cloneElement(t,{ref:xa(n,Ma(t))}),n]}catch{}throw Error(Op)}var Ap=M.createContext(void 0);Ap.Provider;var jp=()=>M.useContext(Ap)??`default`,Mp=Symbol(`MOTION_DEFINITION`);function Np(e){return Object.assign(t=>{"use no memo";let{children:n,imperativeRef:r,onMotionFinish:i,onMotionStart:a,onMotionCancel:o,replayKey:s,...c}=t,l=c,[u,d]=kp(n),f=Tp(r),p=M.useRef(!0),m=jp()===`skip`,h=M.useRef({skipMotions:m,params:l}),g=wp(),_=Dp(),v=F(()=>{a?.(null)}),y=F(()=>{i?.(null)}),b=F(()=>{o?.(null)}),x=M.useCallback(e=>{v(),e.setMotionEndCallbacks(y,b),h.current.skipMotions&&e.finish()},[v,y,b]);return ha(()=>{h.current={skipMotions:m,params:l}}),ha(()=>{let t=d.current;if(t){let n=g(t,typeof e==`function`?e({element:t,...h.current.params}):e,{isReducedMotion:_()});return f.current=n,x(n),()=>{n.cancel()}}},[g,d,f,_,x]),ha(()=>{if(p.current)return;let e=f.current;e&&(e.cancel(),e.play(),x(e))},[s]),ha(()=>(p.current=!1,()=>{p.current=!0}),[]),u},{[Mp]:typeof e==`function`?e:()=>e})}var Pp=M.createContext(void 0);Pp.Provider;function Fp(e=!1,t=!1){let n=M.useRef(t?e:!0),r=_a(),i=M.useCallback(e=>{n.current!==e&&(n.current=e,r())},[r]);return M.useEffect(()=>{e&&(n.current=e)}),[e||n.current,i]}var Ip=Symbol(`PRESENCE_MOTION_DEFINITION`),Lp=Symbol.for(`interruptablePresence`);function Rp(e){return Object.assign(t=>{"use no memo";let n={...M.useContext(Pp),...t},r=jp()===`skip`,{appear:i,children:a,imperativeRef:o,onExit:s,onMotionFinish:c,onMotionStart:l,onMotionCancel:u,visible:d,unmountOnExit:f,...p}=n,m=p,[h,g]=Fp(d,f),[_,v]=kp(a,h),y=Tp(o),b=M.useRef({appear:i,params:m,skipMotions:r}),x=wp(),S=ga(),C=Dp(),w=F(e=>{l?.(null,{direction:e})}),T=F(e=>{c?.(null,{direction:e}),e===`exit`&&f&&(g(!1),s?.())}),E=F(e=>{u?.(null,{direction:e})});return ha(()=>{b.current={appear:i,params:m,skipMotions:r}}),ha(()=>{let t=v.current;if(!t)return;let n;function r(){n&&(a&&n.isRunning()||(n.cancel(),y.current=void 0))}let i=typeof e==`function`?e({element:t,...b.current.params}):e,a=i[Lp];if(a&&(n=y.current,n&&n.isRunning()))return n.reverse(),r;let o=d?i.enter:i.exit,s=d?`enter`:`exit`,c=!b.current.appear&&S,l=b.current.skipMotions;return c||w(s),n=x(t,o,{isReducedMotion:C()}),c?(n.finish(),r):(y.current=n,n.setMotionEndCallbacks(()=>T(s),()=>E(s)),l&&n.finish(),r)},[x,v,y,C,T,w,E,d]),M.useEffect(()=>{if(f&&!h){var e;(e=y.current)==null||e.dispose()}},[y,f,h]),h?_:null},{[Ip]:typeof e==`function`?e:()=>e},{In:Np(typeof e==`function`?(...t)=>e(...t).enter:e.enter),Out:Np(typeof e==`function`?(...t)=>e(...t).exit:e.exit)})}function zp(e,t){return n=>e({...t,...n})}function Bp(e,t){let n=e[Ip];return Rp(zp(n,t))}function Vp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hp(e,t){function n(n){return n in t?t[n]:e[n]}let r={},i=[];for(let n in e){if(n in t){i.length&&(r[n]=i,i=[]);continue}i.push(n)}let a={};for(let e in t){if(r[e])for(let t of r[e])a[t]=n(t);a[e]=n(e)}for(let e of i)a[e]=n(e);return a}function Up(e,t){let n=Hp(e,t);return Object.entries(n).forEach(([r,i])=>{let a=r in e;if(r in t){if(a){n[r]={...i};return}n[r]={...i,appear:!0,visible:!0};return}n[r]={...i,visible:!1}}),n}function Wp(e){let t={};return e&&M.Children.toArray(e).forEach(e=>{M.isValidElement(e)&&(t[e.key??``]={appear:!1,element:e,visible:!0,unmountOnExit:!0})}),t}var Gp=e=>{let{appear:t,childKey:n,onExit:r,visible:i,unmountOnExit:a}=e,o=M.useMemo(()=>({appear:t,visible:i,onExit:()=>r(n),unmountOnExit:a}),[t,n,r,i,a]);return M.createElement(Pp.Provider,{value:o},e.children)},Kp=class extends M.Component{static getDerivedStateFromProps(e,{childMapping:t,firstRender:n}){let r=Wp(e.children);return{childMapping:n?r:Up(t,r),firstRender:!1}}componentDidMount(){this.mounted=!0}componentWillUnmount(){this.mounted=!1}render(){return M.createElement(M.Fragment,null,Object.entries(this.state.childMapping).map(([e,t])=>M.createElement(Gp,{...t,childKey:e,key:e,onExit:this.handleExit},t.element)))}constructor(e,t){super(e,t),Vp(this,`mounted`,!1),Vp(this,`handleExit`,e=>{e in Wp(this.props.children)||this.mounted&&this.setState(t=>{let n={...t.childMapping};return delete n[e],{childMapping:n}})}),this.state={childMapping:{},firstRender:!0}}},qp=M.createContext(void 0);function Jp(){return M.useContext(qp)}var Yp=M.forwardRef((e,t)=>M.createElement(qp.Provider,{value:t},e.children));Yp.displayName=`MotionRefForwarder`;var Xp=e=>M.createElement(qp.Provider,{value:void 0},e.children);Xp.displayName=`MotionRefForwarderReset`;function Zp(e,t){let{as:n,children:r,...i}=e??{};if(e===null){let e=!t.defaultProps.visible&&t.defaultProps.unmountOnExit,n=(t,n)=>e?null:M.createElement(M.Fragment,null,n.children);return{[Gr]:n,[Kr]:t.elementType}}let a={...t.defaultProps,...i,[Kr]:t.elementType};return typeof r==`function`&&(a[Gr]=r),a}var Qp=(e,t)=>({sizeName:e===`horizontal`?`maxWidth`:`maxHeight`,overflowName:e===`horizontal`?`overflowX`:`overflowY`,toSize:`${e===`horizontal`?t.scrollWidth:t.scrollHeight}px`}),$p=({orientation:e,duration:t,easing:n,element:r,outSize:i=`0`,delay:a=0})=>{let{sizeName:o,overflowName:s,toSize:c}=Qp(e,r);return{keyframes:[{[o]:i,[s]:`hidden`},{[o]:c,offset:.9999,[s]:`hidden`},{[o]:`unset`,[s]:`unset`}],duration:t,easing:n,delay:a,fill:`both`}},em=({orientation:e,duration:t,easing:n,element:r,delay:i=0,outSize:a=`0`})=>{let{sizeName:o,overflowName:s,toSize:c}=Qp(e,r);return{keyframes:[{[o]:c,[s]:`hidden`},{[o]:a,[s]:`hidden`}],duration:t,easing:n,delay:i,fill:`both`}},tm=e=>e===`horizontal`?{paddingStart:`paddingInlineStart`,paddingEnd:`paddingInlineEnd`,marginStart:`marginInlineStart`,marginEnd:`marginInlineEnd`}:{paddingStart:`paddingBlockStart`,paddingEnd:`paddingBlockEnd`,marginStart:`marginBlockStart`,marginEnd:`marginBlockEnd`},nm=({direction:e,orientation:t,duration:n,easing:r,delay:i=0})=>{let{paddingStart:a,paddingEnd:o,marginStart:s,marginEnd:c}=tm(t),l=e===`enter`?0:1;return{keyframes:[{[a]:`0`,[o]:`0`,[s]:`0`,[c]:`0`,offset:l}],duration:n,easing:r,delay:i,fill:`both`}},rm=({direction:e,duration:t,easing:n=vp.curveLinear,delay:r=0,outOpacity:i=0,inOpacity:a=1})=>{let o=[{opacity:i},{opacity:a}];return e===`exit`&&o.reverse(),{keyframes:o,duration:t,easing:n,delay:r,fill:`both`}},im=Rp(({element:e,duration:t=vp.durationNormal,exitDuration:n=t,sizeDuration:r=t,opacityDuration:i=r,exitSizeDuration:a=n,exitOpacityDuration:o=a,easing:s=vp.curveEasyEaseMax,delay:c=0,exitEasing:l=s,exitDelay:u=c,staggerDelay:d=0,exitStaggerDelay:f=d,animateOpacity:p=!0,orientation:m=`vertical`,outSize:h=`0px`})=>{let g=[$p({orientation:m,duration:r,easing:s,element:e,outSize:h,delay:c}),nm({direction:`enter`,orientation:m,duration:r,easing:s,delay:c})];p&&g.push(rm({direction:`enter`,duration:i,easing:s,delay:c+d}));let _=[];return p&&_.push(rm({direction:`exit`,duration:o,easing:l,delay:u})),_.push(em({orientation:m,duration:a,easing:l,element:e,delay:u+f,outSize:h}),nm({direction:`exit`,orientation:m,duration:a,easing:l,delay:u+f})),{enter:g,exit:_}});Bp(im,{duration:vp.durationFast}),Bp(im,{duration:vp.durationSlower}),Bp(im,{sizeDuration:vp.durationNormal,opacityDuration:vp.durationSlower,staggerDelay:vp.durationNormal,exitSizeDuration:vp.durationNormal,exitOpacityDuration:vp.durationSlower,exitStaggerDelay:vp.durationSlower,easing:vp.curveEasyEase,exitEasing:vp.curveEasyEase});var am=Rp(({duration:e=vp.durationNormal,easing:t=vp.curveEasyEase,delay:n=0,exitDuration:r=e,exitEasing:i=t,exitDelay:a=n,outOpacity:o=0,inOpacity:s=1})=>({enter:rm({direction:`enter`,duration:e,easing:t,delay:n,outOpacity:o,inOpacity:s}),exit:rm({direction:`exit`,duration:r,easing:i,delay:a,outOpacity:o,inOpacity:s})}));Bp(am,{duration:vp.durationFast});var om=Bp(am,{duration:vp.durationGentle}),sm=({direction:e,duration:t,easing:n=vp.curveLinear,delay:r=0,outScale:i=.9,inScale:a=1})=>{let o=[{scale:i},{scale:a}];return e===`exit`&&o.reverse(),{keyframes:o,duration:t,easing:n,delay:r}},cm=Rp(({duration:e=vp.durationGentle,easing:t=vp.curveDecelerateMax,delay:n=0,exitDuration:r=vp.durationNormal,exitEasing:i=vp.curveAccelerateMax,exitDelay:a=n,outScale:o=.9,inScale:s=1,animateOpacity:c=!0})=>{let l=[sm({direction:`enter`,duration:e,easing:t,delay:n,outScale:o,inScale:s})],u=[sm({direction:`exit`,duration:r,easing:i,delay:a,outScale:o,inScale:s})];return c&&(l.push(rm({direction:`enter`,duration:e,easing:t,delay:n})),u.push(rm({direction:`exit`,duration:r,easing:i,delay:a}))),{enter:l,exit:u}});Bp(cm,{duration:vp.durationNormal,exitDuration:vp.durationFast}),Bp(cm,{duration:vp.durationSlow,exitDuration:vp.durationGentle});var lm=({direction:e,duration:t,easing:n=vp.curveLinear,delay:r=0,outX:i=`0px`,outY:a=`0px`,inX:o=`0px`,inY:s=`0px`})=>{let c=[{translate:`${i} ${a}`},{translate:`${o} ${s}`}];return e===`exit`&&c.reverse(),{keyframes:c,duration:t,easing:n,delay:r}},um=(e,t)=>{let{shape:n=`circular`,size:r=`medium`,appearance:i=`filled`,color:a=`brand`,...o}=e;return{...dm(o,t),shape:n,size:r,appearance:i,color:a}},dm=(e,t)=>{let{iconPosition:n=`before`}=e;return{iconPosition:n,components:{root:`div`,icon:`span`},root:Jr(Ai(`div`,{ref:t,...e}),{elementType:`div`}),icon:Yr(e.icon,{elementType:`span`})}},fm={root:`fui-Badge`,icon:`fui-Badge__icon`};z.spacingHorizontalXXS;var pm=Vr(`r1iycov`,`r115jdol`,[`.r1iycov{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;min-width:20px;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}`,`.r1iycov::after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}`,`.r115jdol{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;min-width:20px;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}`,`.r115jdol::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}`]),mm=P({fontSmallToTiny:{Bahqtrf:`fk6fouc`,Be2twd7:`f13mqy1h`,Bhrd7zp:`fl43uef`,Bg96gwp:`fcpl73t`},tiny:{a9b677:`f16dn6v3`,Bqenvij:`f3mu39s`,Be2twd7:`f130uwy9`,Bg96gwp:`fod1mrr`,Bf4jedk:`f18p0k4z`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f19jm9xf`},"extra-small":{a9b677:`fpd43o0`,Bqenvij:`f30q22z`,Be2twd7:`f1tccstq`,Bg96gwp:`f1y3arg5`,Bf4jedk:`f18p0k4z`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f19jm9xf`},small:{Bf4jedk:`fq2vo04`,Bqenvij:`fd461yt`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`fupdldz`},medium:{},large:{Bf4jedk:`f17fgpbq`,Bqenvij:`frvgh55`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f1996nqw`},"extra-large":{Bf4jedk:`fwbmr0d`,Bqenvij:`f1d2rq10`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`fty64o7`},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`f1fabniw`},rounded:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`ft85np5`},roundedSmallToTiny:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`fq9zq91`},circular:{},borderGhost:{ap17g6:`f10ludwy`},filled:{},"filled-brand":{De3pzq:`ffp7eso`,sj55zd:`f1phragk`},"filled-danger":{De3pzq:`fdl5y0r`,sj55zd:`f1phragk`},"filled-important":{De3pzq:`f1c73kur`,sj55zd:`fr0bkrk`},"filled-informative":{De3pzq:`f3vzo32`,sj55zd:`f11d4kpn`},"filled-severe":{De3pzq:`f1s438gw`,sj55zd:`f1phragk`},"filled-subtle":{De3pzq:`fxugw4r`,sj55zd:`f19n0e5`},"filled-success":{De3pzq:`flxk52p`,sj55zd:`f1phragk`},"filled-warning":{De3pzq:`ffq97bm`,sj55zd:`ff5vbop`},ghost:{},"ghost-brand":{sj55zd:`f16muhyy`},"ghost-danger":{sj55zd:`f1whyuy6`},"ghost-important":{sj55zd:`f19n0e5`},"ghost-informative":{sj55zd:`f11d4kpn`},"ghost-severe":{sj55zd:`f1l8vj45`},"ghost-subtle":{sj55zd:`fonrgv7`},"ghost-success":{sj55zd:`f1m7fhi8`},"ghost-warning":{sj55zd:`fpti2h4`},outline:{g2u3we:`f23ftbb`,h3c5rm:[`f1gkuv52`,`f1p1bl80`],B9xav0g:`fioka3i`,zhjwy3:[`f1p1bl80`,`f1gkuv52`]},"outline-brand":{sj55zd:`f16muhyy`},"outline-danger":{sj55zd:`f1whyuy6`,g2u3we:`fyqpifd`,h3c5rm:[`f3ukxca`,`f1k7dugc`],B9xav0g:`f1njxb2b`,zhjwy3:[`f1k7dugc`,`f3ukxca`]},"outline-important":{sj55zd:`f11d4kpn`,g2u3we:`fq0vr37`,h3c5rm:[`f1byw159`,`f11cr0be`],B9xav0g:`f1c1zstj`,zhjwy3:[`f11cr0be`,`f1byw159`]},"outline-informative":{sj55zd:`f11d4kpn`,g2u3we:`f68mrw8`,h3c5rm:[`f7pw515`,`fw35ms5`],B9xav0g:`frpde29`,zhjwy3:[`fw35ms5`,`f7pw515`]},"outline-severe":{sj55zd:`f1l8vj45`},"outline-subtle":{sj55zd:`fonrgv7`},"outline-success":{sj55zd:`f1m7fhi8`,g2u3we:`f1mmhl11`,h3c5rm:[`f1tjpp2f`,`f1ocn5n7`],B9xav0g:`f1gjv25d`,zhjwy3:[`f1ocn5n7`,`f1tjpp2f`]},"outline-warning":{sj55zd:`fpti2h4`},tint:{},"tint-brand":{De3pzq:`f16xkysk`,sj55zd:`faj9fo0`,g2u3we:`f161y7kd`,h3c5rm:[`f1c8dzaj`,`f1sl6hi9`],B9xav0g:`f1619yhw`,zhjwy3:[`f1sl6hi9`,`f1c8dzaj`]},"tint-danger":{De3pzq:`ff0poqj`,sj55zd:`f1hcrxcs`,g2u3we:`f1oqjm8o`,h3c5rm:[`fkgrb8g`,`frb5wm0`],B9xav0g:`f1iai1ph`,zhjwy3:[`frb5wm0`,`fkgrb8g`]},"tint-important":{De3pzq:`f945g0u`,sj55zd:`fr0bkrk`,g2u3we:`fghlq4f`,h3c5rm:[`f1gn591s`,`fjscplz`],B9xav0g:`fb073pr`,zhjwy3:[`fjscplz`,`f1gn591s`]},"tint-informative":{De3pzq:`f1ctqxl6`,sj55zd:`f11d4kpn`,g2u3we:`f68mrw8`,h3c5rm:[`f7pw515`,`fw35ms5`],B9xav0g:`frpde29`,zhjwy3:[`fw35ms5`,`f7pw515`]},"tint-severe":{De3pzq:`f1xzsg4`,sj55zd:`f1k5f75o`,g2u3we:`fxy9dsj`,h3c5rm:[`f54u6j2`,`fcm23ze`],B9xav0g:`f4vf0uq`,zhjwy3:[`fcm23ze`,`f54u6j2`]},"tint-subtle":{De3pzq:`fxugw4r`,sj55zd:`f11d4kpn`,g2u3we:`f68mrw8`,h3c5rm:[`f7pw515`,`fw35ms5`],B9xav0g:`frpde29`,zhjwy3:[`fw35ms5`,`f7pw515`]},"tint-success":{De3pzq:`f2vsrz6`,sj55zd:`ffmvakt`,g2u3we:`fdmic9h`,h3c5rm:[`f196y6m`,`fetptd8`],B9xav0g:`f1pev5xq`,zhjwy3:[`fetptd8`,`f196y6m`]},"tint-warning":{De3pzq:`f10s6hli`,sj55zd:`f42v8de`,g2u3we:`fn9i3n`,h3c5rm:[`f1aw8cx4`,`f51if14`],B9xav0g:`fvq8iai`,zhjwy3:[`f51if14`,`f1aw8cx4`]}},{d:[`.fk6fouc{font-family:var(--fontFamilyBase);}`,`.f13mqy1h{font-size:var(--fontSizeBase100);}`,`.fl43uef{font-weight:var(--fontWeightSemibold);}`,`.fcpl73t{line-height:var(--lineHeightBase100);}`,`.f16dn6v3{width:6px;}`,`.f3mu39s{height:6px;}`,`.f130uwy9{font-size:4px;}`,`.fod1mrr{line-height:4px;}`,`.f18p0k4z{min-width:unset;}`,[`.f19jm9xf{padding:unset;}`,{p:-1}],`.fpd43o0{width:10px;}`,`.f30q22z{height:10px;}`,`.f1tccstq{font-size:6px;}`,`.f1y3arg5{line-height:6px;}`,[`.f19jm9xf{padding:unset;}`,{p:-1}],`.fq2vo04{min-width:16px;}`,`.fd461yt{height:16px;}`,[`.fupdldz{padding:0 calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}`,{p:-1}],`.f17fgpbq{min-width:24px;}`,`.frvgh55{height:24px;}`,[`.f1996nqw{padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}`,{p:-1}],`.fwbmr0d{min-width:32px;}`,`.f1d2rq10{height:32px;}`,[`.fty64o7{padding:0 calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}`,{p:-1}],[`.f1fabniw{border-radius:var(--borderRadiusNone);}`,{p:-1}],[`.ft85np5{border-radius:var(--borderRadiusMedium);}`,{p:-1}],[`.fq9zq91{border-radius:var(--borderRadiusSmall);}`,{p:-1}],`.f10ludwy::after{display:none;}`,`.ffp7eso{background-color:var(--colorBrandBackground);}`,`.f1phragk{color:var(--colorNeutralForegroundOnBrand);}`,`.fdl5y0r{background-color:var(--colorPaletteRedBackground3);}`,`.f1c73kur{background-color:var(--colorNeutralForeground1);}`,`.fr0bkrk{color:var(--colorNeutralBackground1);}`,`.f3vzo32{background-color:var(--colorNeutralBackground5);}`,`.f11d4kpn{color:var(--colorNeutralForeground3);}`,`.f1s438gw{background-color:var(--colorPaletteDarkOrangeBackground3);}`,`.fxugw4r{background-color:var(--colorNeutralBackground1);}`,`.f19n0e5{color:var(--colorNeutralForeground1);}`,`.flxk52p{background-color:var(--colorPaletteGreenBackground3);}`,`.ffq97bm{background-color:var(--colorPaletteYellowBackground3);}`,`.ff5vbop{color:var(--colorNeutralForeground1Static);}`,`.f16muhyy{color:var(--colorBrandForeground1);}`,`.f1whyuy6{color:var(--colorPaletteRedForeground3);}`,`.f1l8vj45{color:var(--colorPaletteDarkOrangeForeground3);}`,`.fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}`,`.f1m7fhi8{color:var(--colorPaletteGreenForeground3);}`,`.fpti2h4{color:var(--colorPaletteYellowForeground2);}`,`.f23ftbb{border-top-color:currentColor;}`,`.f1gkuv52{border-right-color:currentColor;}`,`.f1p1bl80{border-left-color:currentColor;}`,`.fioka3i{border-bottom-color:currentColor;}`,`.fyqpifd{border-top-color:var(--colorPaletteRedBorder2);}`,`.f3ukxca{border-right-color:var(--colorPaletteRedBorder2);}`,`.f1k7dugc{border-left-color:var(--colorPaletteRedBorder2);}`,`.f1njxb2b{border-bottom-color:var(--colorPaletteRedBorder2);}`,`.fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}`,`.f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}`,`.f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}`,`.f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}`,`.f68mrw8{border-top-color:var(--colorNeutralStroke2);}`,`.f7pw515{border-right-color:var(--colorNeutralStroke2);}`,`.fw35ms5{border-left-color:var(--colorNeutralStroke2);}`,`.frpde29{border-bottom-color:var(--colorNeutralStroke2);}`,`.f1mmhl11{border-top-color:var(--colorPaletteGreenBorder2);}`,`.f1tjpp2f{border-right-color:var(--colorPaletteGreenBorder2);}`,`.f1ocn5n7{border-left-color:var(--colorPaletteGreenBorder2);}`,`.f1gjv25d{border-bottom-color:var(--colorPaletteGreenBorder2);}`,`.f16xkysk{background-color:var(--colorBrandBackground2);}`,`.faj9fo0{color:var(--colorBrandForeground2);}`,`.f161y7kd{border-top-color:var(--colorBrandStroke2);}`,`.f1c8dzaj{border-right-color:var(--colorBrandStroke2);}`,`.f1sl6hi9{border-left-color:var(--colorBrandStroke2);}`,`.f1619yhw{border-bottom-color:var(--colorBrandStroke2);}`,`.ff0poqj{background-color:var(--colorPaletteRedBackground1);}`,`.f1hcrxcs{color:var(--colorPaletteRedForeground1);}`,`.f1oqjm8o{border-top-color:var(--colorPaletteRedBorder1);}`,`.fkgrb8g{border-right-color:var(--colorPaletteRedBorder1);}`,`.frb5wm0{border-left-color:var(--colorPaletteRedBorder1);}`,`.f1iai1ph{border-bottom-color:var(--colorPaletteRedBorder1);}`,`.f945g0u{background-color:var(--colorNeutralForeground3);}`,`.fghlq4f{border-top-color:var(--colorTransparentStroke);}`,`.f1gn591s{border-right-color:var(--colorTransparentStroke);}`,`.fjscplz{border-left-color:var(--colorTransparentStroke);}`,`.fb073pr{border-bottom-color:var(--colorTransparentStroke);}`,`.f1ctqxl6{background-color:var(--colorNeutralBackground4);}`,`.f1xzsg4{background-color:var(--colorPaletteDarkOrangeBackground1);}`,`.f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}`,`.fxy9dsj{border-top-color:var(--colorPaletteDarkOrangeBorder1);}`,`.f54u6j2{border-right-color:var(--colorPaletteDarkOrangeBorder1);}`,`.fcm23ze{border-left-color:var(--colorPaletteDarkOrangeBorder1);}`,`.f4vf0uq{border-bottom-color:var(--colorPaletteDarkOrangeBorder1);}`,`.f2vsrz6{background-color:var(--colorPaletteGreenBackground1);}`,`.ffmvakt{color:var(--colorPaletteGreenForeground1);}`,`.fdmic9h{border-top-color:var(--colorPaletteGreenBorder1);}`,`.f196y6m{border-right-color:var(--colorPaletteGreenBorder1);}`,`.fetptd8{border-left-color:var(--colorPaletteGreenBorder1);}`,`.f1pev5xq{border-bottom-color:var(--colorPaletteGreenBorder1);}`,`.f10s6hli{background-color:var(--colorPaletteYellowBackground1);}`,`.f42v8de{color:var(--colorPaletteYellowForeground1);}`,`.fn9i3n{border-top-color:var(--colorPaletteYellowBorder1);}`,`.f1aw8cx4{border-right-color:var(--colorPaletteYellowBorder1);}`,`.f51if14{border-left-color:var(--colorPaletteYellowBorder1);}`,`.fvq8iai{border-bottom-color:var(--colorPaletteYellowBorder1);}`]}),hm=Vr(`rttl5z0`,null,[`.rttl5z0{display:flex;line-height:1;margin:0 calc(-1 * var(--spacingHorizontalXXS));font-size:12px;}`]),gm=P({beforeText:{t21cq0:[`f1t8l4o1`,`f11juvx6`]},afterText:{Frg6f3:[`f11juvx6`,`f1t8l4o1`]},beforeTextXL:{t21cq0:[`f1rs9grm`,`f1kwmkpi`]},afterTextXL:{Frg6f3:[`f1kwmkpi`,`f1rs9grm`]},tiny:{Be2twd7:`f1tccstq`},"extra-small":{Be2twd7:`fnmn6fi`},small:{Be2twd7:`f1ugzwwg`},medium:{},large:{Be2twd7:`f4ybsrx`},"extra-large":{Be2twd7:`fe5j1ua`}},{d:[`.f1t8l4o1{margin-right:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}`,`.f11juvx6{margin-left:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}`,`.f1rs9grm{margin-right:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}`,`.f1kwmkpi{margin-left:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}`,`.f1tccstq{font-size:6px;}`,`.fnmn6fi{font-size:10px;}`,`.f1ugzwwg{font-size:12px;}`,`.f4ybsrx{font-size:16px;}`,`.fe5j1ua{font-size:20px;}`]}),_m=e=>{"use no memo";let t=pm(),n=mm(),r=e.size===`small`||e.size===`extra-small`||e.size===`tiny`;e.root.className=A(fm.root,t,r&&n.fontSmallToTiny,n[e.size],n[e.shape],e.shape===`rounded`&&r&&n.roundedSmallToTiny,e.appearance===`ghost`&&n.borderGhost,n[e.appearance],n[`${e.appearance}-${e.color}`],e.root.className);let i=hm(),a=gm();if(e.icon){let t;M.Children.toArray(e.root.children).length>0&&(t=e.size===`extra-large`?e.iconPosition===`after`?a.afterTextXL:a.beforeTextXL:e.iconPosition===`after`?a.afterText:a.beforeText),e.icon.className=A(fm.icon,i,t,a[e.size],e.icon.className)}return e},vm=e=>oo(e.root,{children:[e.iconPosition===`before`&&e.icon&&I(e.icon,{}),e.root.children,e.iconPosition===`after`&&e.icon&&I(e.icon,{})]}),ym=M.forwardRef((e,t)=>{let n=um(e,t);return _m(n),Qi(`useBadgeStyles_unstable`)(n),vm(n)});ym.displayName=`Badge`;var bm=M.createContext(void 0).Provider,xm=`data-popper-is-intersecting`,Sm=`data-popper-escaped`,Cm=`data-popper-reference-hidden`,wm=`data-popper-placement`,Tm=`fui-positioningend`,Em=({options:e})=>e,Dm=M.createContext(void 0);Dm.Provider;var Om=()=>M.useContext(Dm)??Em,km=[`top`,`right`,`bottom`,`left`],Am=Math.min,jm=Math.max,Mm=Math.round,Nm=e=>({x:e,y:e}),Pm={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Fm(e,t,n){return jm(e,Am(t,n))}function Im(e,t){return typeof e==`function`?e(t):e}function Lm(e){return e.split(`-`)[0]}function Rm(e){return e.split(`-`)[1]}function zm(e){return e===`x`?`y`:`x`}function Bm(e){return e===`y`?`height`:`width`}function Vm(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Hm(e){return zm(Vm(e))}function Um(e,t,n){n===void 0&&(n=!1);let r=Rm(e),i=Hm(e),a=Bm(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Qm(o)),[o,Qm(o)]}function Wm(e){let t=Qm(e);return[Gm(e),t,Gm(t)]}function Gm(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Km=[`left`,`right`],qm=[`right`,`left`],Jm=[`top`,`bottom`],Ym=[`bottom`,`top`];function Xm(e,t,n){switch(e){case`top`:case`bottom`:return n?t?qm:Km:t?Km:qm;case`left`:case`right`:return t?Jm:Ym;default:return[]}}function Zm(e,t,n,r){let i=Rm(e),a=Xm(Lm(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Gm)))),a}function Qm(e){let t=Lm(e);return Pm[t]+e.slice(t.length)}function $m(e){return{top:0,right:0,bottom:0,left:0,...e}}function eh(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:$m(e)}function th(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function nh(e,t,n){let{reference:r,floating:i}=e,a=Vm(t),o=Hm(t),s=Bm(o),c=Lm(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Rm(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function rh(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Im(t,e),p=eh(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=th(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=th(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var ih=50,ah=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:rh},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=nh(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<ih&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=nh(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},oh=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Im(e,t)||{};if(l==null)return{};let d=eh(u),f={x:n,y:r},p=Hm(i),m=Bm(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Am(d[_],T),D=Am(d[v],T),O=E,ee=C-h[m]-D,te=C/2-h[m]/2+w,ne=Fm(O,te,ee),re=!c.arrow&&Rm(i)!=null&&te!==ne&&a.reference[m]/2-(te<O?E:D)-h[m]/2<0,ie=re?te<O?te-O:te-ee:0;return{[p]:f[p]+ie,data:{[p]:ne,centerOffset:te-ne-ie,...re&&{alignmentOffset:ie}},reset:re}}}),sh=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Im(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Lm(r),_=Vm(o),v=Lm(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Qm(o)]:Wm(o)),x=p!==`none`;!d&&x&&b.push(...Zm(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Um(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Vm(t))||T.every(e=>Vm(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Vm(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function ch(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function lh(e){return km.some(t=>e[t]>=0)}var uh=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Im(e,t);switch(i){case`referenceHidden`:{let e=ch(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:lh(e)}}}case`escaped`:{let e=ch(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:lh(e)}}}default:return{}}}}},dh=new Set([`left`,`top`]);async function fh(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Lm(n),s=Rm(n),c=Vm(n)===`y`,l=dh.has(o)?-1:1,u=a&&c?-1:1,d=Im(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var ph=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await fh(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},mh=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Im(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Vm(Lm(i)),p=zm(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Fm(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Fm(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},hh=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Im(e,t),u={x:n,y:r},d=Vm(i),f=zm(d),p=u[f],m=u[d],h=Im(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=dh.has(Lm(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},gh=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Im(e,t),u=await o.detectOverflow(t,l),d=Lm(i),f=Rm(i),p=Vm(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Am(h-u[g],v),x=Am(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=jm(u.left,0),t=jm(u.right,0),n=jm(u.top,0),r=jm(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:jm(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:jm(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function _h(){return typeof window<`u`}function vh(e){return xh(e)?(e.nodeName||``).toLowerCase():`#document`}function yh(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function bh(e){return((xh(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function xh(e){return _h()?e instanceof Node||e instanceof yh(e).Node:!1}function Sh(e){return _h()?e instanceof Element||e instanceof yh(e).Element:!1}function Ch(e){return _h()?e instanceof HTMLElement||e instanceof yh(e).HTMLElement:!1}function wh(e){return!_h()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof yh(e).ShadowRoot}function Th(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Ih(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Eh(e){return/^(table|td|th)$/.test(vh(e))}function Dh(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Oh=/transform|translate|scale|rotate|perspective|filter/,kh=/paint|layout|strict|content/,Ah=e=>!!e&&e!==`none`,jh;function Mh(e){let t=Sh(e)?Ih(e):e;return Ah(t.transform)||Ah(t.translate)||Ah(t.scale)||Ah(t.rotate)||Ah(t.perspective)||!Ph()&&(Ah(t.backdropFilter)||Ah(t.filter))||Oh.test(t.willChange||``)||kh.test(t.contain||``)}function Nh(e){let t=Rh(e);for(;Ch(t)&&!Fh(t);){if(Mh(t))return t;if(Dh(t))return null;t=Rh(t)}return null}function Ph(){return jh??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),jh}function Fh(e){return/^(html|body|#document)$/.test(vh(e))}function Ih(e){return yh(e).getComputedStyle(e)}function Lh(e){return Sh(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rh(e){if(vh(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||wh(e)&&e.host||bh(e);return wh(t)?t.host:t}function zh(e){let t=Rh(e);return Fh(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ch(t)&&Th(t)?t:zh(t)}function Bh(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=zh(e),i=r===e.ownerDocument?.body,a=yh(r);if(i){let e=Vh(a);return t.concat(a,a.visualViewport||[],Th(r)?r:[],e&&n?Bh(e):[])}else return t.concat(r,Bh(r,[],n))}function Vh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hh(e){let t=Ih(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Ch(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Mm(n)!==a||Mm(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Uh(e){return Sh(e)?e:e.contextElement}function Wh(e){let t=Uh(e);if(!Ch(t))return Nm(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Hh(t),o=(a?Mm(n.width):n.width)/r,s=(a?Mm(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Gh=Nm(0);function Kh(e){let t=yh(e);return!Ph()||!t.visualViewport?Gh:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function qh(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==yh(e)?!1:t}function Jh(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Uh(e),o=Nm(1);t&&(r?Sh(r)&&(o=Wh(r)):o=Wh(e));let s=qh(a,n,r)?Kh(a):Nm(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=yh(a),t=r&&Sh(r)?yh(r):r,n=e,i=Vh(n);for(;i&&r&&t!==n;){let e=Wh(i),t=i.getBoundingClientRect(),r=Ih(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=yh(i),i=Vh(n)}}return th({width:u,height:d,x:c,y:l})}function Yh(e,t){let n=Lh(e).scrollLeft;return t?t.left+n:Jh(bh(e)).left+n}function Xh(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Yh(e,n),y:n.top+t.scrollTop}}function Zh(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=bh(r),s=t?Dh(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Nm(1),u=Nm(0),d=Ch(r);if((d||!d&&!a)&&((vh(r)!==`body`||Th(o))&&(c=Lh(r)),d)){let e=Jh(r);l=Wh(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Xh(o,c):Nm(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Qh(e){return Array.from(e.getClientRects())}function $h(e){let t=bh(e),n=Lh(e),r=e.ownerDocument.body,i=jm(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=jm(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Yh(e),s=-n.scrollTop;return Ih(r).direction===`rtl`&&(o+=jm(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var eg=25;function tg(e,t){let n=yh(e),r=bh(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Ph();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Yh(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=eg&&(a-=o)}else l<=eg&&(a+=l);return{width:a,height:o,x:s,y:c}}function ng(e,t){let n=Jh(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ch(e)?Wh(e):Nm(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function rg(e,t,n){let r;if(t===`viewport`)r=tg(e,n);else if(t===`document`)r=$h(bh(e));else if(Sh(t))r=ng(t,n);else{let n=Kh(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return th(r)}function ig(e,t){let n=Rh(e);return n===t||!Sh(n)||Fh(n)?!1:Ih(n).position===`fixed`||ig(n,t)}function ag(e,t){let n=t.get(e);if(n)return n;let r=Bh(e,[],!1).filter(e=>Sh(e)&&vh(e)!==`body`),i=null,a=Ih(e).position===`fixed`,o=a?Rh(e):e;for(;Sh(o)&&!Fh(o);){let t=Ih(o),n=Mh(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Th(o)&&!n&&ig(e,o))?r=r.filter(e=>e!==o):i=t,o=Rh(o)}return t.set(e,r),r}function og(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Dh(t)?[]:ag(t,this._c):[].concat(n),r],o=rg(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=rg(t,a[e],i);s=jm(n.top,s),c=Am(n.right,c),l=Am(n.bottom,l),u=jm(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function sg(e){let{width:t,height:n}=Hh(e);return{width:t,height:n}}function cg(e,t,n){let r=Ch(t),i=bh(t),a=n===`fixed`,o=Jh(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Nm(0);function l(){c.x=Yh(i)}if(r||!r&&!a)if((vh(t)!==`body`||Th(i))&&(s=Lh(t)),r){let e=Jh(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Xh(i,s):Nm(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function lg(e){return Ih(e).position===`static`}function ug(e,t){if(!Ch(e)||Ih(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return bh(e)===n&&(n=n.ownerDocument.body),n}function dg(e,t){let n=yh(e);if(Dh(e))return n;if(!Ch(e)){let t=Rh(e);for(;t&&!Fh(t);){if(Sh(t)&&!lg(t))return t;t=Rh(t)}return n}let r=ug(e,t);for(;r&&Eh(r)&&lg(r);)r=ug(r,t);return r&&Fh(r)&&lg(r)&&!Mh(r)?n:r||Nh(e)||n}var fg=async function(e){let t=this.getOffsetParent||dg,n=this.getDimensions,r=await n(e.floating);return{reference:cg(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function pg(e){return Ih(e).direction===`rtl`}var mg={convertOffsetParentRelativeRectToViewportRelativeRect:Zh,getDocumentElement:bh,getClippingRect:og,getOffsetParent:dg,getElementRects:fg,getClientRects:Qh,getDimensions:sg,getScale:Wh,isElement:Sh,isRTL:pg},hg=rh,gg=ph,_g=mh,vg=sh,yg=gh,bg=uh,xg=oh,Sg=hh,Cg=(e,t,n)=>{let r=new Map,i={platform:mg,...n},a={...i.platform,_c:r};return ah(e,t,{...i,platform:a})};function wg(e){let t=e.split(`-`);return{side:t[0],alignment:t[1]}}var Tg=e=>e.nodeName===`HTML`?e:e.parentNode||e.host,Eg=e=>{if(e.nodeType!==1)return{};let t=e.ownerDocument?.defaultView;return t?t.getComputedStyle(e,null):{}},Dg=e=>{let t=e&&Tg(e);if(!t)return document.body;switch(t.nodeName){case`HTML`:case`BODY`:return t.ownerDocument.body;case`#document`:return t.body}let{overflow:n,overflowX:r,overflowY:i}=Eg(t);return/(auto|scroll|overlay)/.test(n+i+r)?t:Dg(t)},Og=e=>{let t=Dg(e);return t?t!==t.ownerDocument?.body:!1};function kg(e,t){if(t===`window`)return e?.ownerDocument.documentElement;if(t===`clippingParents`)return`clippingAncestors`;if(t===`scrollParent`){let t=Dg(e);return t.nodeName===`BODY`&&(t=e?.ownerDocument.documentElement),t}return t}function Ag(e,t){return typeof e==`number`||typeof e==`object`&&e?jg(e,t):typeof e==`function`?n=>jg(e(n),t):{mainAxis:t}}var jg=(e,t)=>typeof e==`number`?{mainAxis:e+t}:{...e,mainAxis:(e.mainAxis??0)+t};function Mg(e,t){if(typeof e==`number`)return e;let{start:n,end:r,...i}=e,a=i,o=t?`end`:`start`,s=t?`start`:`end`;return e[o]&&(a.left=e[o]),e[s]&&(a.right=e[s]),a}var Ng=e=>({above:`top`,below:`bottom`,before:e?`right`:`left`,after:e?`left`:`right`}),Pg=()=>({start:`start`,end:`end`,top:`start`,bottom:`end`,center:void 0}),Fg=(e,t)=>{let n=e===`above`||e===`below`,r=t===`top`||t===`bottom`;return n&&r||!n&&!r},Ig=(e,t,n)=>{let r=Fg(t,e)?`center`:e,i=t&&Ng(n)[t],a=r&&Pg()[r];return i&&a?`${i}-${a}`:i},Lg=()=>({top:`above`,bottom:`below`,right:`after`,left:`before`}),Rg=e=>e===`above`||e===`below`?{start:`start`,end:`end`}:{start:`top`,end:`bottom`},zg=e=>{let{side:t,alignment:n}=wg(e),r=Lg()[t];return{position:r,alignment:n&&Rg(r)[n]}},Bg={above:{position:`above`,align:`center`},"above-start":{position:`above`,align:`start`},"above-end":{position:`above`,align:`end`},below:{position:`below`,align:`center`},"below-start":{position:`below`,align:`start`},"below-end":{position:`below`,align:`end`},before:{position:`before`,align:`center`},"before-top":{position:`before`,align:`top`},"before-bottom":{position:`before`,align:`bottom`},after:{position:`after`,align:`center`},"after-top":{position:`after`,align:`top`},"after-bottom":{position:`after`,align:`bottom`}};function Vg(e){return e==null?{}:typeof e==`string`?Bg[e]:e}function Hg(e,t,n){let r=M.useRef(!0),[i]=M.useState(()=>({value:e,callback:t,facade:{get current(){return i.value},set current(e){let t=i.value;if(t!==e){if(i.value=e,n&&r.current)return;i.callback(e,t)}}}}));return ha(()=>{r.current=!1},[]),i.callback=t,i.facade}function Ug(e){let t;return()=>(t||=new Promise(n=>{Promise.resolve().then(()=>{t=void 0,n(e())})}),t)}function Wg(e){let{arrow:t,middlewareData:n}=e;if(!n.arrow||!t)return;let{x:r,y:i}=n.arrow;Object.assign(t.style,{left:r==null?``:`${r}px`,top:i==null?``:`${i}px`})}function Gg(e){let{container:t,placement:n,middlewareData:r,strategy:i,lowPPI:a,coordinates:o,useTransform:s=!0}=e;if(!t)return;t.setAttribute(wm,n),t.removeAttribute(xm),r.intersectionObserver.intersecting&&t.setAttribute(xm,``),t.removeAttribute(Sm),r.hide?.escaped&&t.setAttribute(Sm,``),t.removeAttribute(Cm),r.hide?.referenceHidden&&t.setAttribute(Cm,``);let c=t.ownerDocument.defaultView?.devicePixelRatio||1,l=Math.round(o.x*c)/c,u=Math.round(o.y*c)/c;if(Object.assign(t.style,{position:i}),s){Object.assign(t.style,{transform:a?`translate(${l}px, ${u}px)`:`translate3d(${l}px, ${u}px, 0)`});return}Object.assign(t.style,{left:`${l}px`,top:`${u}px`})}var Kg=e=>{switch(e){case`always`:case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case`width-always`:case`width`:return{applyMaxWidth:!0,applyMaxHeight:!1};case`height-always`:case`height`:return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}};function qg(e){let t=[],n=e;for(;n;){let r=Dg(n);if(e.ownerDocument.body===r){t.push(r);break}if(r.nodeName===`BODY`&&r!==e.ownerDocument.body)break;t.push(r),n=r}return t}function Jg(e,t){return new e.ResizeObserver(t)}function Yg(e){let t=!1,{container:n,target:r,arrow:i,strategy:a,middleware:o,placement:s,useTransform:c=!0,disableUpdateOnResize:l=!1}=e,u=n.ownerDocument.defaultView;if(!r||!n||!u)return{updatePosition:()=>void 0,dispose:()=>void 0};let d=l?null:Jg(u,e=>{e.every(e=>e.contentRect.width>0&&e.contentRect.height>0)&&h()}),f=!0,p=new Set;Object.assign(n.style,{position:`fixed`,left:0,top:0,margin:0});let m=()=>{t||(f&&=(qg(n).forEach(e=>p.add(e)),Fa(r)&&qg(r).forEach(e=>p.add(e)),p.forEach(e=>{e.addEventListener(`scroll`,h,{passive:!0})}),d?.observe(n),Fa(r)&&d?.observe(r),!1),Object.assign(n.style,{position:a}),Cg(r,n,{placement:s,middleware:o,strategy:a}).then(({x:e,y:r,middlewareData:o,placement:s})=>{t||(Wg({arrow:i,middlewareData:o}),Gg({container:n,middlewareData:o,placement:s,coordinates:{x:e,y:r},lowPPI:(u?.devicePixelRatio||1)<=1,strategy:a,useTransform:c}),n.dispatchEvent(new CustomEvent(Tm,{detail:{placement:s}})))}).catch(e=>{}))},h=Ug(()=>m());return u&&(u.addEventListener(`scroll`,h,{passive:!0}),u.addEventListener(`resize`,h)),h(),{updatePosition:h,dispose:()=>{t=!0,u&&(u.removeEventListener(`scroll`,h),u.removeEventListener(`resize`,h)),p.forEach(e=>{e.removeEventListener(`scroll`,h)}),p.clear(),d?.disconnect()}}}function Xg(){return{name:`coverTarget`,fn:e=>{let{placement:t,rects:n,x:r,y:i}=e,a=wg(t).side,o={x:r,y:i};switch(a){case`bottom`:o.y-=n.reference.height;break;case`top`:o.y+=n.reference.height;break;case`left`:o.x+=n.reference.width;break;case`right`:o.x-=n.reference.width;break}return o}}}function Zg(e){let{hasScrollableElement:t,flipBoundary:n,container:r,fallbackPositions:i=[],isRtl:a}=e,o=i.reduce((e,t)=>{let{position:n,align:r}=Vg(t),i=Ig(r,n,a);return i&&e.push(i),e},[]);return vg({...t&&{boundary:`clippingAncestors`},...n&&{altBoundary:!0,boundary:kg(r,n)},fallbackStrategy:`bestFit`,...o.length&&{fallbackPlacements:o}})}function Qg(){return{name:`intersectionObserver`,fn:async e=>{let t=e.rects.floating,n=await hg(e,{altBoundary:!0}),r=n.top<t.height&&n.top>0,i=n.bottom<t.height&&n.bottom>0;return{data:{intersecting:r||i}}}}}var $g=e=>({name:`resetMaxSize`,fn({middlewareData:t,elements:n}){if(t.resetMaxSize?.maxSizeAlreadyReset)return{};let{applyMaxWidth:r,applyMaxHeight:i}=e;return r&&(n.floating.style.removeProperty(`box-sizing`),n.floating.style.removeProperty(`max-width`),n.floating.style.removeProperty(`width`)),i&&(n.floating.style.removeProperty(`box-sizing`),n.floating.style.removeProperty(`max-height`),n.floating.style.removeProperty(`height`)),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function e_(e,t){let{container:n,overflowBoundary:r,overflowBoundaryPadding:i,isRtl:a}=t;return yg({...i&&{padding:Mg(i,a)},...r&&{altBoundary:!0,boundary:kg(n,r)},apply({availableHeight:t,availableWidth:n,elements:r,rects:i}){let a=(e,t,n)=>{if(e&&(r.floating.style.setProperty(`box-sizing`,`border-box`),r.floating.style.setProperty(`max-${t}`,`${n}px`),i.floating[t]>n)){r.floating.style.setProperty(t,`${n}px`);let e=t===`width`?`x`:`y`;r.floating.style.getPropertyValue(`overflow-${e}`)||r.floating.style.setProperty(`overflow-${e}`,`auto`)}},{applyMaxWidth:o,applyMaxHeight:s}=e;a(o,`width`,n),a(s,`height`,t)}})}function t_(e){return!e||typeof e==`number`||typeof e==`object`?e:({rects:{floating:t,reference:n},placement:r})=>{let{position:i,alignment:a}=zg(r);return e({positionedRect:t,targetRect:n,position:i,alignment:a})}}function n_(e){return gg(t_(e))}function r_(e){let{hasScrollableElement:t,shiftToCoverTarget:n,disableTether:r,overflowBoundary:i,container:a,overflowBoundaryPadding:o,isRtl:s}=e;return _g({...t&&{boundary:`clippingAncestors`},...n&&{crossAxis:!0,limiter:Sg({crossAxis:!0,mainAxis:!1})},...r&&{crossAxis:r===`all`,limiter:Sg({crossAxis:r!==`all`,mainAxis:!1})},...o&&{padding:Mg(o,s)},...i&&{altBoundary:!0,boundary:kg(a,i)}})}var i_=`--fui-match-target-size`;function a_(){return{name:`matchTargetSize`,fn:async e=>{let{rects:{reference:t,floating:n},elements:{floating:r},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:i=!1}={}}}=e;if(t.width===n.width||i)return{};let{width:a}=t;return r.style.setProperty(i_,`${a}px`),r.style.width||(r.style.width=`var(${i_})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function o_(e,t){let{align:n,arrowPadding:r,autoSize:i,coverTarget:a,disableUpdateOnResize:o,flipBoundary:s,offset:c,overflowBoundary:l,pinned:u,position:d,unstable_disableTether:f,strategy:p,overflowBoundaryPadding:m,fallbackPositions:h,useTransform:g,matchTargetSize:_,shiftToCoverTarget:v}=t;return M.useCallback((t,y)=>e({container:t,arrow:y,options:{autoSize:i,disableUpdateOnResize:o,matchTargetSize:_,offset:c,strategy:p,coverTarget:a,flipBoundary:s,overflowBoundary:l,useTransform:g,overflowBoundaryPadding:m,pinned:u,arrowPadding:r,align:n,fallbackPositions:h,shiftToCoverTarget:v,position:d,unstable_disableTether:f}}),[i,o,_,c,p,a,s,l,g,m,u,r,n,h,v,d,f,e])}function s_(e){let{dir:t,targetDocument:n}=Gi(),r=t===`rtl`,i=o_(Om(),e),{positionFixed:a}=e;return M.useCallback((e,t)=>{let n=Og(e),{autoSize:o,disableUpdateOnResize:s,matchTargetSize:c,offset:l,coverTarget:u,flipBoundary:d,overflowBoundary:f,useTransform:p,overflowBoundaryPadding:m,pinned:h,position:g,arrowPadding:_,strategy:v,align:y,fallbackPositions:b,shiftToCoverTarget:x,unstable_disableTether:S}=i(e,t),C=Kg(o),w=[C&&$g(C),c&&a_(),l&&n_(l),u&&Xg(),!h&&Zg({container:e,flipBoundary:d,hasScrollableElement:n,isRtl:r,fallbackPositions:b}),r_({container:e,hasScrollableElement:n,overflowBoundary:f,disableTether:S,overflowBoundaryPadding:m,isRtl:r,shiftToCoverTarget:x}),C&&e_(C,{container:e,overflowBoundary:f,overflowBoundaryPadding:m,isRtl:r}),Qg(),t&&xg({element:t,padding:_}),bg({strategy:`referenceHidden`}),bg({strategy:`escaped`}),!1].filter(Boolean);return{placement:Ig(y,g,r),middleware:w,strategy:v??a?`fixed`:`absolute`,disableUpdateOnResize:s,useTransform:p}},[i,r,n,a])}function c_(e){"use no memo";let t=M.useRef(null),n=M.useRef(null),r=M.useRef(null),i=M.useRef(null),a=M.useRef(null),{enabled:o=!0}=e,s=s_(e),c=M.useCallback(()=>{t.current&&t.current.dispose(),t.current=null;let e=r.current??n.current;o&&ua()&&e&&i.current&&(t.current=Yg({container:i.current,target:e,arrow:a.current,...s(i.current,a.current)}))},[o,s]),l=F(e=>{r.current=e,c()});M.useImperativeHandle(e.positioningRef,()=>({updatePosition:()=>t.current?.updatePosition(),setTarget:t=>{e.target,l(t)}}),[e.target,l]),ha(()=>{l(e.target??null)},[e.target,l]),ha(()=>{c()},[c]);let u=Hg(null,e=>{n.current!==e&&(n.current=e,c())}),d=F(t=>e.onPositioningEnd?.call(e,t));return{targetRef:u,containerRef:Hg(null,e=>{if(i.current!==e){var t;(t=i.current)==null||t.removeEventListener(`fui-positioningend`,d),e?.addEventListener(`fui-positioningend`,d),i.current=e,c()}}),arrowRef:Hg(null,e=>{a.current!==e&&(a.current=e,c())})}}function l_(e){return Fa(e)?{element:e}:typeof e==`object`?e===null?{element:null}:e:{}}var u_=P({root:{qhf8xq:`f1euv43f`,Bhzewxz:`f15twtuk`,oyh7mz:[`f1vgc2s3`,`f1e31b4d`],j35jbq:[`f1e31b4d`,`f1vgc2s3`],Bj3rh1h:`f494woh`}},{d:[`.f1euv43f{position:absolute;}`,`.f15twtuk{top:0;}`,`.f1vgc2s3{left:0;}`,`.f1e31b4d{right:0;}`,`.f494woh{z-index:1000000;}`]}),d_=M.useInsertionEffect,f_=e=>{"use no memo";let{className:t,dir:n,focusVisibleRef:r,targetNode:i}=e,a=M.useMemo(()=>{if(i===void 0||e.disabled)return null;let t=i.ownerDocument.createElement(`div`);return i.appendChild(t),t},[i,e.disabled]);return M.useMemo(()=>{a&&(a.className=t,a.setAttribute(`dir`,n),a.setAttribute(`data-portal-node`,`true`),r.current=a)},[t,n,a,r]),M.useEffect(()=>()=>{a?.remove()},[a]),a},p_=()=>{let e;function t(t,n){return e||(n&&(e=t.ownerDocument.createElement(`div`),t.appendChild(e)),e)}function n(){e&&=(e.remove(),void 0)}return{get:t,dispose:n}},m_=d_?e=>{"use no memo";let{className:t,dir:n,focusVisibleRef:r,targetNode:i}=e,[a]=M.useState(p_),o=M.useMemo(()=>i===void 0||e.disabled?null:new Proxy({},{get(e,t){if(t===`nodeType`)return 1;if(t===`remove`){let e=a.get(i,!1);return e&&e.childNodes.length===0&&a.dispose(),()=>{}}let n=a.get(i,!0),r=n?n[t]:void 0;return typeof r==`function`?r.bind(n):r},set(e,t,n){let r=t===`_virtual`||t===`focusVisible`,o=r?a.get(i,!1):a.get(i,!0);return r&&!o?!0:o?(Object.assign(o,{[t]:n}),!0):!1}}),[a,i,e.disabled]);return d_(()=>{if(!o)return;let e=t.split(` `).filter(Boolean);return o.classList.add(...e),o.setAttribute(`dir`,n),o.setAttribute(`data-portal-node`,`true`),r.current=o,()=>{o.classList.remove(...e),o.removeAttribute(`dir`)}},[t,n,o,r]),M.useEffect(()=>()=>{o?.remove()},[o]),o}:f_,h_=e=>{"use no memo";let{targetDocument:t,dir:n}=Gi(),r=ea(),i=Xc(),a=u_(),o=Li();return m_({dir:n,disabled:e.disabled,focusVisibleRef:i,className:A(o,a.root,e.className),targetNode:r??t?.body})},g_=e=>{let{element:t,className:n}=l_(e.mountNode),r=M.useRef(null),i=h_({disabled:!!t,className:n}),a=t??i,o={children:e.children,mountNode:a,virtualParentRootRef:r};return M.useEffect(()=>{if(!a)return;let e=r.current,t=a.contains(e);if(e&&!t)return $a(a,e),()=>{$a(a,void 0)}},[r,a]),o},__=u(g()),v_=e=>M.createElement(`span`,{hidden:!0,ref:e.virtualParentRootRef},e.mountNode&&__.createPortal(M.createElement(M.Fragment,null,e.children,M.createElement(`span`,{hidden:!0})),e.mountNode)),y_=e=>v_(g_(e));y_.displayName=`Portal`;var b_=e=>-1,x_=e=>void 0;function S_(e){let{targetDocument:t}=Gi(),n=t?.defaultView,r=n?n.setTimeout:b_,i=n?n.clearTimeout:x_,a=M.useRef(void 0),o=M.useCallback((e,t)=>(a.current!==void 0&&i(a.current),a.current=r(e,t??0),a.current),[i,r]),s=M.useCallback(()=>{a.current!==void 0&&(i(a.current),a.current=void 0)},[i]);return M.useEffect(()=>{let t=e.current;return()=>{(!t||!t.isConnected)&&s()}},[s,e]),[o,s]}var C_=e=>{"use no memo";let t=Vi(),n=ma(),{targetDocument:r}=Gi(),[i,a]=sa({state:e.visible,initialState:!1}),{children:o,content:s,withArrow:c=!1,positioning:l=`above`,onVisibleChange:u,relationship:d,showDelay:f=250,hideDelay:p=250,mountNode:m}=e,h={withArrow:c,positioning:l,showDelay:f,hideDelay:p,relationship:d,visible:i,shouldRenderTooltip:i,mountNode:m,components:{content:`div`},content:Jr(s,{defaultProps:{role:`tooltip`},elementType:`div`})};h.content.id=ba(`tooltip-`,h.content.id);let g={enabled:h.visible,arrowPadding:8,position:`above`,align:`center`,offset:4,...Vg(h.positioning)};h.withArrow&&(g.offset=Ag(g.offset,6));let{targetRef:_,containerRef:v,arrowRef:y}=c_(g),[b,x]=S_(v),S=M.useCallback((e,t)=>{x(),a(n=>(t.visible!==n&&u?.(e,t),t.visible))},[x,a,u]);h.content.ref=xa(h.content.ref,v),h.arrowRef=y,ha(()=>{if(i){var e;let n={hide:e=>S(void 0,{visible:!1,documentKeyboardEvent:e})};(e=t.visibleTooltip)==null||e.hide(),t.visibleTooltip=n;let i=e=>{e.key===`Escape`&&!e.defaultPrevented&&(n.hide(e),e.preventDefault())};r?.addEventListener(`keydown`,i,{capture:!0});let a=()=>{r?.visibilityState===`hidden`&&n.hide()};return r?.addEventListener(`visibilitychange`,a),()=>{t.visibleTooltip===n&&(t.visibleTooltip=void 0),r?.removeEventListener(`keydown`,i,{capture:!0}),r?.removeEventListener(`visibilitychange`,a)}}},[t,r,i,S]);let C=M.useRef(!1),w=M.useCallback(e=>{if(e.type===`focus`&&C.current){C.current=!1;return}b(()=>{S(e,{visible:!0})},t.visibleTooltip?0:h.showDelay),e.persist()},[b,S,h.showDelay,t]),T=dl(),[E]=M.useState(()=>{let e=e=>{e.detail?.isFocusedProgrammatically&&!T()&&(C.current=!0)},t=null;return n=>{t?.removeEventListener(`keyborg:focusin`,e),n?.addEventListener(`keyborg:focusin`,e),t=n}}),D=M.useCallback(e=>{let t=h.hideDelay;e.type===`blur`&&(t=0,C.current=r?.activeElement===e.target),b(()=>{S(e,{visible:!1})},t),e.persist()},[b,S,h.hideDelay,r]);h.content.onPointerEnter=Pa(h.content.onPointerEnter,x),h.content.onPointerLeave=Pa(h.content.onPointerLeave,D),h.content.onFocus=Pa(h.content.onFocus,x),h.content.onBlur=Pa(h.content.onBlur,D);let O=Ba(o),ee={},te=O?.props?.[`aria-haspopup`]&&(O?.props?.[`aria-expanded`]===!0||O?.props?.[`aria-expanded`]===`true`);return d===`label`?typeof h.content.children==`string`?ee[`aria-label`]=h.content.children:(ee[`aria-labelledby`]=h.content.id,h.shouldRenderTooltip=!0):d===`description`&&(ee[`aria-describedby`]=h.content.id,h.shouldRenderTooltip=!0),(n||te)&&(h.shouldRenderTooltip=!1),h.children=Ra(o,{...ee,...O?.props,ref:xa(Ma(O),E,g.target===void 0?_:void 0),onPointerEnter:F(Pa(O?.props?.onPointerEnter,w)),onPointerLeave:F(Pa(O?.props?.onPointerLeave,D)),onFocus:F(Pa(O?.props?.onFocus,w)),onBlur:F(Pa(O?.props?.onBlur,D))}),h},w_=e=>{"use no memo";let{appearance:t=`normal`,...n}=e;return{appearance:t,...C_(n)}},T_=e=>oo(M.Fragment,{children:[e.children,e.shouldRenderTooltip&&I(y_,{mountNode:e.mountNode,children:oo(e.content,{children:[e.withArrow&&I(`div`,{ref:e.arrowRef,className:e.arrowClassName}),e.content.children]})})]}),E_={content:`fui-Tooltip__content`},D_=P({root:{mc9l5x:`fjseox`,B7ck84d:`f1ewtqcl`,B2u0y6b:`f132xexn`,Bceei9c:`f158kwzp`,Bahqtrf:`fk6fouc`,Be2twd7:`fy9rknc`,Bg96gwp:`fwrc4pm`,Btd35i7:`fokg9q4`,Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`ft85np5`,Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:`f9ggezi`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f1bzqsji`,De3pzq:`fxugw4r`,sj55zd:`f19n0e5`,Bhu2qc9:`fxeb0a7`},visible:{mc9l5x:`ftgm304`},inverted:{De3pzq:`fg3r6xk`,sj55zd:`fonrgv7`},arrow:{B7ck84d:`f1ewtqcl`,qhf8xq:`f1euv43f`,Bj3rh1h:`f1bsuimh`,rhnwrx:`f1s3jn22`,Bdy53xb:`fv40uqz`,De3pzq:`f1u2r49w`,B2eet1l:`fqhgnl`,Beyfa6y:`f17bz04i`,Bz10aip:`f36o3x3`,Bqenvij:`fzofk8q`,a9b677:`f1wbx1ie`,Ftih45:`f1wl9k8s`,Br0sdwz:`f1aocrix`,cmx5o7:`f1ljr5q2`,susq4k:0,Biibvgv:0,Bicfajf:0,qehafq:0,Brs5u8j:`f155f1qt`,Ccq8qp:`f9mhzq7`,Baz25je:`fr6rhvx`,Bcgcnre:0,Bqjgrrk:0,qa3bma:0,y0oebl:0,Biqmznv:0,Bm6vgfq:0,Bbv0w2i:0,uvfttm:0,eqrjj:0,Bk5zm6e:0,m598lv:0,B4f6apu:0,ydt019:0,Bq4z7u6:0,Bdkvgpv:0,B0qfbqy:0,kj8mxx:`f1kc0wz4`,r59vdv:`fgq90dz`,Bkw5xw4:`fq0y47f`,hl6cv3:`f1pwrbz6`,aea9ga:`f1hxxcvm`,yayu3t:`fw8rgyo`,Bhsv975:`f1wnzycx`,rhl9o9:`f1730wal`,B7gxrvb:`f1fy4ixr`,B6q6orb:`fobkauc`,B0lu1f8:`f16bqv1l`}},{d:[`.fjseox{display:none;}`,`.f1ewtqcl{box-sizing:border-box;}`,`.f132xexn{max-width:240px;}`,`.f158kwzp{cursor:default;}`,`.fk6fouc{font-family:var(--fontFamilyBase);}`,`.fy9rknc{font-size:var(--fontSizeBase200);}`,`.fwrc4pm{line-height:var(--lineHeightBase200);}`,`.fokg9q4{overflow-wrap:break-word;}`,[`.ft85np5{border-radius:var(--borderRadiusMedium);}`,{p:-1}],[`.f9ggezi{border:1px solid var(--colorTransparentStroke);}`,{p:-2}],[`.f1bzqsji{padding:4px 11px 6px 11px;}`,{p:-1}],`.fxugw4r{background-color:var(--colorNeutralBackground1);}`,`.f19n0e5{color:var(--colorNeutralForeground1);}`,`.fxeb0a7{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 4px 8px var(--colorNeutralShadowKey));}`,`.ftgm304{display:block;}`,`.fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}`,`.fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}`,`.f1euv43f{position:absolute;}`,`.f1bsuimh{z-index:-1;}`,`.f1s3jn22{--fui-positioning-arrow-height:8.484px;}`,`.fv40uqz{--fui-positioning-arrow-offset:-4.242px;}`,`.f1u2r49w{background-color:inherit;}`,`.fqhgnl{background-clip:content-box;}`,`.f17bz04i{border-bottom-left-radius:var(--borderRadiusSmall);}`,`.f36o3x3{transform:rotate(var(--fui-positioning-arrow-angle));}`,`.fzofk8q{height:var(--fui-positioning-arrow-height);}`,`.f1wbx1ie{width:var(--fui-positioning-arrow-height);}`,`.f1wl9k8s::before{content:"";}`,`.f1aocrix::before{display:block;}`,`.f1ljr5q2::before{background-color:inherit;}`,[`.f155f1qt::before{margin:-1px;}`,{p:-1}],`.f9mhzq7::before{width:100%;}`,`.fr6rhvx::before{height:100%;}`,[`.f1kc0wz4::before{border:1px solid var(--colorTransparentStroke);}`,{p:-2}],`.fgq90dz::before{border-bottom-left-radius:var(--borderRadiusSmall);}`,`.fq0y47f::before{clip-path:polygon(0% 0%, 100% 100%, 0% 100%);}`,`[data-popper-placement^="top"] .f1pwrbz6{bottom:var(--fui-positioning-arrow-offset);}`,`[data-popper-placement^="top"] .f1hxxcvm{--fui-positioning-arrow-angle:-45deg;}`,`[data-popper-placement^="right"] .fw8rgyo{left:var(--fui-positioning-arrow-offset);}`,`[data-popper-placement^="right"] .f1wnzycx{--fui-positioning-arrow-angle:45deg;}`,`[data-popper-placement^="bottom"] .f1730wal{top:var(--fui-positioning-arrow-offset);}`,`[data-popper-placement^="bottom"] .f1fy4ixr{--fui-positioning-arrow-angle:135deg;}`,`[data-popper-placement^="left"] .fobkauc{right:var(--fui-positioning-arrow-offset);}`,`[data-popper-placement^="left"] .f16bqv1l{--fui-positioning-arrow-angle:225deg;}`]}),O_=e=>{"use no memo";let t=D_();return e.content.className=A(E_.content,t.root,e.appearance===`inverted`&&t.inverted,e.visible&&t.visible,e.content.className),e.arrowClassName=t.arrow,e},k_=e=>{let t=w_(e);return O_(t),Qi(`useTooltipStyles_unstable`)(t),T_(t)};k_.displayName=`Tooltip`,k_.isFluentTriggerComponent=!0;var A_=e=>{let{iconOnly:t,iconPosition:n}=e;return oo(e.root,{children:[n!==`after`&&e.icon&&I(e.icon,{}),!t&&e.root.children,n===`after`&&e.icon&&I(e.icon,{})]})},j_=M.createContext(void 0),M_={},N_=j_.Provider,P_=()=>M.useContext(j_)??M_,F_=(e,t)=>{let{size:n}=P_(),{appearance:r=`secondary`,shape:i=`rounded`,size:a=n??`medium`,...o}=e;return{appearance:r,shape:i,size:a,...I_(o,t)}},I_=(e,t)=>{let{icon:n,iconPosition:r=`before`,...i}=e,a=Yr(n,{elementType:`span`});return{disabled:e.disabled??!1,disabledFocusable:e.disabledFocusable??!1,iconPosition:r,iconOnly:!!(a?.children&&!e.children),components:{root:`button`,icon:`span`},root:Jr(fd(i.as,i),{elementType:`button`,defaultProps:{ref:t,type:e.as===`a`?void 0:`button`}}),icon:a}},L_={root:`fui-Button`,icon:`fui-Button__icon`};`${z.strokeWidthThin}`;var R_=Vr(`r1f29ykk`,null,{r:[`.r1f29ykk{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}`,`.r1f29ykk:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}`,`.r1f29ykk:hover:active,.r1f29ykk:active:focus-visible{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}`,`.r1f29ykk[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}`],s:[`@media screen and (prefers-reduced-motion: reduce){.r1f29ykk{transition-duration:0.01ms;}}`,`@media (forced-colors: active){.r1f29ykk:focus{border-color:ButtonText;}.r1f29ykk:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1f29ykk:hover:active,.r1f29ykk:active:focus-visible{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}`,`@supports (-moz-appearance:button){.r1f29ykk[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}`]}),z_=Vr(`rywnvv2`,null,[`.rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}`]),B_=P({outline:{De3pzq:`f1c21dwh`,Jwef8y:`fjxutwb`,Bpjbzib:`fkoldzo`},primary:{De3pzq:`ffp7eso`,g2u3we:`f1p3nwhy`,h3c5rm:[`f11589ue`,`f1pdflbu`],B9xav0g:`f1q5o8ev`,zhjwy3:[`f1pdflbu`,`f11589ue`],sj55zd:`f1phragk`,Jwef8y:`f15wkkf3`,Bgoe8wy:`f1s2uweq`,Bwzppfd:[`fr80ssc`,`fecsdlb`],oetu4i:`f1ukrpxl`,gg5e9n:[`fecsdlb`,`fr80ssc`],Bi91k9c:`f1rq72xc`,Bpjbzib:`f1ksv2xa`,im15vp:`fhvnf4x`,Hjvxdg:[`fb6swo4`,`f232fm2`],Gpfmf1:`f1klyf7k`,ustxxc:[`f232fm2`,`fb6swo4`],Brsut9c:`f1d6mv4x`,By8wz76:`f1nz3ub2`,Bcq6wej:`fag2qd2`,Jcjdmf:[`fmvhcg7`,`f14bpyus`],sc4o1m:`f1o3dhpw`,Bosien3:[`f14bpyus`,`fmvhcg7`],B7iucu3:`fqc85l4`,B8gzw0y:`f1h3a8gf`,Bbkh6qg:`fkiggi6`,F230oe:`f8gmj8i`,Bdw8ktp:[`f1ap8nzx`,`fjag8bx`],Bj1xduy:`f1igan7k`,Bhh2cfd:[`fjag8bx`,`f1ap8nzx`],Bahaeuw:`f1v3eptx`,Bv2bamp:`f1ysmecq`,vxuvv6:`faulsx`,Bli9q98:[`f79t15f`,`f8qmx7k`],Bx2tt8t:`fbtzoaq`,yad0b3:[`f8qmx7k`,`f79t15f`],j2fop7:`fd4bjan`},secondary:{},subtle:{De3pzq:`fhovq9v`,g2u3we:`f1p3nwhy`,h3c5rm:[`f11589ue`,`f1pdflbu`],B9xav0g:`f1q5o8ev`,zhjwy3:[`f1pdflbu`,`f11589ue`],sj55zd:`fkfq4zb`,Jwef8y:`f1t94bn6`,Bgoe8wy:`f1s2uweq`,Bwzppfd:[`fr80ssc`,`fecsdlb`],oetu4i:`f1ukrpxl`,gg5e9n:[`fecsdlb`,`fr80ssc`],Bi91k9c:`fnwyq0v`,Bk3fhr4:`ft1hn21`,Bmfj8id:`fuxngvv`,Bbdnnc7:`fy5bs14`,Bpjbzib:`f1q1yqic`,im15vp:`fhvnf4x`,Hjvxdg:[`fb6swo4`,`f232fm2`],Gpfmf1:`f1klyf7k`,ustxxc:[`f232fm2`,`fb6swo4`],Brsut9c:`fwga7ee`,Bqou3pl:`f1nhwcv0`,Bsnehw8:`f1gm6xmp`,wsxvnf:`f1xxsver`,Bahaeuw:`f1v3eptx`,Buhizc3:`fivsta0`,j2fop7:`fd4bjan`,Bqabnb4:`f3m6zum`},transparent:{De3pzq:`f1c21dwh`,g2u3we:`f1p3nwhy`,h3c5rm:[`f11589ue`,`f1pdflbu`],B9xav0g:`f1q5o8ev`,zhjwy3:[`f1pdflbu`,`f11589ue`],sj55zd:`fkfq4zb`,Jwef8y:`fjxutwb`,Bgoe8wy:`f1s2uweq`,Bwzppfd:[`fr80ssc`,`fecsdlb`],oetu4i:`f1ukrpxl`,gg5e9n:[`fecsdlb`,`fr80ssc`],Bi91k9c:`f139oj5f`,Bk3fhr4:`ft1hn21`,Bmfj8id:`fuxngvv`,Bpjbzib:`fkoldzo`,im15vp:`fhvnf4x`,Hjvxdg:[`fb6swo4`,`f232fm2`],Gpfmf1:`f1klyf7k`,ustxxc:[`f232fm2`,`fb6swo4`],Brsut9c:`f1l983o9`,Bqou3pl:`f1nhwcv0`,Bsnehw8:`f1gm6xmp`,Bbkh6qg:`fxoo9op`,Bahaeuw:`f1v3eptx`,Bv2bamp:`f1i0gk12`,j2fop7:`fd4bjan`},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`f44lkw9`},rounded:{},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`f1fabniw`},small:{Bf4jedk:`fh7ncta`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`fneth5b`,Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`ft85np5`,Be2twd7:`fy9rknc`,Bhrd7zp:`figsok6`,Bg96gwp:`fwrc4pm`},smallWithIcon:{Byoj8tv:`f1brlhvm`,z8tnut:`f1sl3k7w`},medium:{},large:{Bf4jedk:`f14es27b`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f4db1ww`,Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`ft85np5`,Be2twd7:`fod5ikn`,Bhrd7zp:`fl43uef`,Bg96gwp:`faaz57k`},largeWithIcon:{Byoj8tv:`fy7v416`,z8tnut:`f1a1bwwz`}},{d:[`.f1c21dwh{background-color:var(--colorTransparentBackground);}`,`.ffp7eso{background-color:var(--colorBrandBackground);}`,`.f1p3nwhy{border-top-color:transparent;}`,`.f11589ue{border-right-color:transparent;}`,`.f1pdflbu{border-left-color:transparent;}`,`.f1q5o8ev{border-bottom-color:transparent;}`,`.f1phragk{color:var(--colorNeutralForegroundOnBrand);}`,`.fhovq9v{background-color:var(--colorSubtleBackground);}`,`.fkfq4zb{color:var(--colorNeutralForeground2);}`,[`.f44lkw9{border-radius:var(--borderRadiusCircular);}`,{p:-1}],[`.f1fabniw{border-radius:var(--borderRadiusNone);}`,{p:-1}],`.fh7ncta{min-width:64px;}`,[`.fneth5b{padding:3px var(--spacingHorizontalS);}`,{p:-1}],[`.ft85np5{border-radius:var(--borderRadiusMedium);}`,{p:-1}],`.fy9rknc{font-size:var(--fontSizeBase200);}`,`.figsok6{font-weight:var(--fontWeightRegular);}`,`.fwrc4pm{line-height:var(--lineHeightBase200);}`,`.f1brlhvm{padding-bottom:1px;}`,`.f1sl3k7w{padding-top:1px;}`,`.f14es27b{min-width:96px;}`,[`.f4db1ww{padding:8px var(--spacingHorizontalL);}`,{p:-1}],[`.ft85np5{border-radius:var(--borderRadiusMedium);}`,{p:-1}],`.fod5ikn{font-size:var(--fontSizeBase400);}`,`.fl43uef{font-weight:var(--fontWeightSemibold);}`,`.faaz57k{line-height:var(--lineHeightBase400);}`,`.fy7v416{padding-bottom:7px;}`,`.f1a1bwwz{padding-top:7px;}`],h:[`.fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}`,`.fkoldzo:hover:active,.fkoldzo:active:focus-visible{background-color:var(--colorTransparentBackgroundPressed);}`,`.f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}`,`.f1s2uweq:hover{border-top-color:transparent;}`,`.fr80ssc:hover{border-right-color:transparent;}`,`.fecsdlb:hover{border-left-color:transparent;}`,`.f1ukrpxl:hover{border-bottom-color:transparent;}`,`.f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}`,`.f1ksv2xa:hover:active,.f1ksv2xa:active:focus-visible{background-color:var(--colorBrandBackgroundPressed);}`,`.fhvnf4x:hover:active,.fhvnf4x:active:focus-visible{border-top-color:transparent;}`,`.fb6swo4:hover:active,.fb6swo4:active:focus-visible{border-right-color:transparent;}`,`.f232fm2:hover:active,.f232fm2:active:focus-visible{border-left-color:transparent;}`,`.f1klyf7k:hover:active,.f1klyf7k:active:focus-visible{border-bottom-color:transparent;}`,`.f1d6mv4x:hover:active,.f1d6mv4x:active:focus-visible{color:var(--colorNeutralForegroundOnBrand);}`,`.f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}`,`.fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}`,`.ft1hn21:hover .fui-Icon-filled{display:inline;}`,`.fuxngvv:hover .fui-Icon-regular{display:none;}`,`.fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}`,`.f1q1yqic:hover:active,.f1q1yqic:active:focus-visible{background-color:var(--colorSubtleBackgroundPressed);}`,`.fwga7ee:hover:active,.fwga7ee:active:focus-visible{color:var(--colorNeutralForeground2Pressed);}`,`.f1nhwcv0:hover:active .fui-Icon-filled,.f1nhwcv0:active:focus-visible .fui-Icon-filled{display:inline;}`,`.f1gm6xmp:hover:active .fui-Icon-regular,.f1gm6xmp:active:focus-visible .fui-Icon-regular{display:none;}`,`.f1xxsver:hover:active .fui-Button__icon,.f1xxsver:active:focus-visible .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}`,`.f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}`,`.f1l983o9:hover:active,.f1l983o9:active:focus-visible{color:var(--colorNeutralForeground2BrandPressed);}`],m:[[`@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fag2qd2{border-top-color:HighlightText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f14bpyus{border-left-color:HighlightText;}.fmvhcg7{border-right-color:HighlightText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1o3dhpw{border-bottom-color:HighlightText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fqc85l4{color:HighlightText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fkiggi6:hover{background-color:HighlightText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f8gmj8i:hover{border-top-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1ap8nzx:hover{border-right-color:Highlight;}.fjag8bx:hover{border-left-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1igan7k:hover{border-bottom-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1v3eptx:hover{color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1ysmecq:hover:active,.f1ysmecq:active:focus-visible{background-color:HighlightText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.faulsx:hover:active,.faulsx:active:focus-visible{border-top-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f79t15f:hover:active,.f79t15f:active:focus-visible{border-right-color:Highlight;}.f8qmx7k:hover:active,.f8qmx7k:active:focus-visible{border-left-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fbtzoaq:hover:active,.fbtzoaq:active:focus-visible{border-bottom-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fd4bjan:hover:active,.fd4bjan:active:focus-visible{color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fivsta0:hover .fui-Button__icon{color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f3m6zum:hover:active .fui-Button__icon,.f3m6zum:active:focus-visible .fui-Button__icon{color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fxoo9op:hover{background-color:var(--colorTransparentBackground);}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1i0gk12:hover:active,.f1i0gk12:active:focus-visible{background-color:var(--colorTransparentBackground);}}`,{m:`(forced-colors: active)`}]]}),V_=P({base:{De3pzq:`f1bg9a2p`,g2u3we:`f1jj8ep1`,h3c5rm:[`f15xbau`,`fy0fskl`],B9xav0g:`f4ikngz`,zhjwy3:[`fy0fskl`,`f15xbau`],sj55zd:`f1s2aq7o`,Bceei9c:`fdrzuqr`,Bfinmwp:`f15x8b5r`,Jwef8y:`f1falr9n`,Bgoe8wy:`f12mpcsy`,Bwzppfd:[`f1gwvigk`,`f18rmfxp`],oetu4i:`f1jnshp0`,gg5e9n:[`f18rmfxp`,`f1gwvigk`],Bi91k9c:`fvgxktp`,eoavqd:`fphbwmw`,Bk3fhr4:`f19vpps7`,Bmfj8id:`fv5swzo`,Bbdnnc7:`f1al02dq`,Bpjbzib:`f1jct5ie`,im15vp:`f13txml0`,Hjvxdg:[`f1ncddno`,`f1axfvow`],Gpfmf1:`f1z04ada`,ustxxc:[`f1axfvow`,`f1ncddno`],Brsut9c:`f1uhomfy`,Bses4qk:`fy9mucy`,Bqou3pl:`f1g9va8i`,Bsnehw8:`fwgvudy`,wsxvnf:`fom6jww`},highContrast:{By8wz76:`f14ptb23`,Bcq6wej:`f9dbb4x`,Jcjdmf:[`f3qs60o`,`f5u9ap2`],sc4o1m:`fwd1oij`,Bosien3:[`f5u9ap2`,`f3qs60o`],B7iucu3:`f1cyfu5x`,Grqk0h:`f127ot8j`,h3ptyc:`f19etb0b`,Buw724y:[`f4f984j`,`fw441p0`],Buk7464:`f3d22hf`,Hwei09:[`fw441p0`,`f4f984j`],Bbkh6qg:`fj8k9ua`,F230oe:`fifrq0d`,Bdw8ktp:[`f196mwp7`,`fnekfq`],Bj1xduy:`f1l6uprw`,Bhh2cfd:[`fnekfq`,`f196mwp7`],Bahaeuw:`fa9u7a5`,Buhizc3:`f1m71e0y`,Bv2bamp:`fw24f3`,vxuvv6:`f1nznrny`,Bli9q98:[`fq8nxuu`,`f1ao3jkc`],Bx2tt8t:`ftoixeo`,yad0b3:[`f1ao3jkc`,`fq8nxuu`],j2fop7:`fpmuzpx`,Bqabnb4:`f168odog`},outline:{De3pzq:`f1c21dwh`,Jwef8y:`f9ql6rf`,Bpjbzib:`f9r0db0`},primary:{g2u3we:`f1p3nwhy`,h3c5rm:[`f11589ue`,`f1pdflbu`],B9xav0g:`f1q5o8ev`,zhjwy3:[`f1pdflbu`,`f11589ue`],Bgoe8wy:`f1s2uweq`,Bwzppfd:[`fr80ssc`,`fecsdlb`],oetu4i:`f1ukrpxl`,gg5e9n:[`fecsdlb`,`fr80ssc`],im15vp:`fhvnf4x`,Hjvxdg:[`fb6swo4`,`f232fm2`],Gpfmf1:`f1klyf7k`,ustxxc:[`f232fm2`,`fb6swo4`]},secondary:{},subtle:{De3pzq:`f1c21dwh`,g2u3we:`f1p3nwhy`,h3c5rm:[`f11589ue`,`f1pdflbu`],B9xav0g:`f1q5o8ev`,zhjwy3:[`f1pdflbu`,`f11589ue`],Jwef8y:`f9ql6rf`,Bgoe8wy:`f1s2uweq`,Bwzppfd:[`fr80ssc`,`fecsdlb`],oetu4i:`f1ukrpxl`,gg5e9n:[`fecsdlb`,`fr80ssc`],Bpjbzib:`f9r0db0`,im15vp:`fhvnf4x`,Hjvxdg:[`fb6swo4`,`f232fm2`],Gpfmf1:`f1klyf7k`,ustxxc:[`f232fm2`,`fb6swo4`]},transparent:{De3pzq:`f1c21dwh`,g2u3we:`f1p3nwhy`,h3c5rm:[`f11589ue`,`f1pdflbu`],B9xav0g:`f1q5o8ev`,zhjwy3:[`f1pdflbu`,`f11589ue`],Jwef8y:`f9ql6rf`,Bgoe8wy:`f1s2uweq`,Bwzppfd:[`fr80ssc`,`fecsdlb`],oetu4i:`f1ukrpxl`,gg5e9n:[`fecsdlb`,`fr80ssc`],Bpjbzib:`f9r0db0`,im15vp:`fhvnf4x`,Hjvxdg:[`fb6swo4`,`f232fm2`],Gpfmf1:`f1klyf7k`,ustxxc:[`f232fm2`,`fb6swo4`]}},{d:[`.f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}`,`.f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}`,`.f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}`,`.fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}`,`.f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}`,`.f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}`,`.fdrzuqr{cursor:not-allowed;}`,`.f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}`,`.f1c21dwh{background-color:var(--colorTransparentBackground);}`,`.f1p3nwhy{border-top-color:transparent;}`,`.f11589ue{border-right-color:transparent;}`,`.f1pdflbu{border-left-color:transparent;}`,`.f1q5o8ev{border-bottom-color:transparent;}`],h:[`.f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}`,`.f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}`,`.f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}`,`.f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}`,`.f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}`,`.fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}`,`.fphbwmw:hover{cursor:not-allowed;}`,`.f19vpps7:hover .fui-Icon-filled{display:none;}`,`.fv5swzo:hover .fui-Icon-regular{display:inline;}`,`.f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}`,`.f1jct5ie:hover:active,.f1jct5ie:active:focus-visible{background-color:var(--colorNeutralBackgroundDisabled);}`,`.f13txml0:hover:active,.f13txml0:active:focus-visible{border-top-color:var(--colorNeutralStrokeDisabled);}`,`.f1ncddno:hover:active,.f1ncddno:active:focus-visible{border-right-color:var(--colorNeutralStrokeDisabled);}`,`.f1axfvow:hover:active,.f1axfvow:active:focus-visible{border-left-color:var(--colorNeutralStrokeDisabled);}`,`.f1z04ada:hover:active,.f1z04ada:active:focus-visible{border-bottom-color:var(--colorNeutralStrokeDisabled);}`,`.f1uhomfy:hover:active,.f1uhomfy:active:focus-visible{color:var(--colorNeutralForegroundDisabled);}`,`.fy9mucy:hover:active,.fy9mucy:active:focus-visible{cursor:not-allowed;}`,`.f1g9va8i:hover:active .fui-Icon-filled,.f1g9va8i:active:focus-visible .fui-Icon-filled{display:none;}`,`.fwgvudy:hover:active .fui-Icon-regular,.fwgvudy:active:focus-visible .fui-Icon-regular{display:inline;}`,`.fom6jww:hover:active .fui-Button__icon,.fom6jww:active:focus-visible .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}`,`.f9ql6rf:hover{background-color:var(--colorTransparentBackground);}`,`.f9r0db0:hover:active,.f9r0db0:active:focus-visible{background-color:var(--colorTransparentBackground);}`,`.f1s2uweq:hover{border-top-color:transparent;}`,`.fr80ssc:hover{border-right-color:transparent;}`,`.fecsdlb:hover{border-left-color:transparent;}`,`.f1ukrpxl:hover{border-bottom-color:transparent;}`,`.fhvnf4x:hover:active,.fhvnf4x:active:focus-visible{border-top-color:transparent;}`,`.fb6swo4:hover:active,.fb6swo4:active:focus-visible{border-right-color:transparent;}`,`.f232fm2:hover:active,.f232fm2:active:focus-visible{border-left-color:transparent;}`,`.f1klyf7k:hover:active,.f1klyf7k:active:focus-visible{border-bottom-color:transparent;}`],m:[[`@media (forced-colors: active){.f14ptb23{background-color:ButtonFace;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f127ot8j .fui-Button__icon{color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f19etb0b:focus{border-top-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f4f984j:focus{border-right-color:GrayText;}.fw441p0:focus{border-left-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f3d22hf:focus{border-bottom-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fj8k9ua:hover{background-color:ButtonFace;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fifrq0d:hover{border-top-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f196mwp7:hover{border-right-color:GrayText;}.fnekfq:hover{border-left-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1l6uprw:hover{border-bottom-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fa9u7a5:hover{color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1m71e0y:hover .fui-Button__icon{color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fw24f3:hover:active,.fw24f3:active:focus-visible{background-color:ButtonFace;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1nznrny:hover:active,.f1nznrny:active:focus-visible{border-top-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1ao3jkc:hover:active,.f1ao3jkc:active:focus-visible{border-left-color:GrayText;}.fq8nxuu:hover:active,.fq8nxuu:active:focus-visible{border-right-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.ftoixeo:hover:active,.ftoixeo:active:focus-visible{border-bottom-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fpmuzpx:hover:active,.fpmuzpx:active:focus-visible{color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f168odog:hover:active .fui-Button__icon,.f168odog:active:focus-visible .fui-Button__icon{color:GrayText;}}`,{m:`(forced-colors: active)`}]]}),H_=P({circular:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:`f1062rbf`},rounded:{},square:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:`fj0ryk1`},primary:{B8q5s1w:`f17t0x8g`,Bci5o5g:[`f194v5ow`,`fk7jm04`],n8qw10:`f1qgg65p`,Bdrgwmp:[`fk7jm04`,`f194v5ow`],j6ew2k:[`fhgccpy`,`fjo7pq6`],he4mth:`f32wu9k`,Byr4aka:`fu5nqqq`,lks7q5:[`f13prjl2`,`f1nl83rv`],Bnan3qt:`f1czftr5`,k1dn9:[`f1nl83rv`,`f13prjl2`],Bqsb82s:[`fixhny3`,`f18mfu3r`],jg1oma:`feygou5`},small:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:`fazmxh`},medium:{},large:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:`f1b6alqh`}},{d:[[`.f1062rbf[data-fui-focus-visible]{border-radius:var(--borderRadiusCircular);}`,{p:-1}],[`.fj0ryk1[data-fui-focus-visible]{border-radius:var(--borderRadiusNone);}`,{p:-1}],`.f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}`,`.f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}`,`.fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}`,`.f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}`,`.fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}`,`.fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}`,`.f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}`,`.fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}`,`.f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}`,`.f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}`,`.f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}`,[`.fazmxh[data-fui-focus-visible]{border-radius:var(--borderRadiusSmall);}`,{p:-1}],[`.f1b6alqh[data-fui-focus-visible]{border-radius:var(--borderRadiusLarge);}`,{p:-1}]],t:[`@supports (-moz-appearance:button){.f18mfu3r[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fixhny3[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}`,`@supports (-moz-appearance:button){.feygou5[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}`]}),U_=P({small:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`fu97m5z`,Bf4jedk:`f17fgpbq`,B2u0y6b:`f1jt17bm`},medium:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f18ktai2`,Bf4jedk:`fwbmr0d`,B2u0y6b:`f44c6la`},large:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f1hbd1aw`,Bf4jedk:`f12clzc2`,B2u0y6b:`fjy1crr`}},{d:[[`.fu97m5z{padding:1px;}`,{p:-1}],`.f17fgpbq{min-width:24px;}`,`.f1jt17bm{max-width:24px;}`,[`.f18ktai2{padding:5px;}`,{p:-1}],`.fwbmr0d{min-width:32px;}`,`.f44c6la{max-width:32px;}`,[`.f1hbd1aw{padding:7px;}`,{p:-1}],`.f12clzc2{min-width:40px;}`,`.fjy1crr{max-width:40px;}`]}),W_=P({small:{Be2twd7:`fe5j1ua`,Bqenvij:`fjamq6b`,a9b677:`f64fuq3`,Bqrlyyl:`fbaiahx`},medium:{},large:{Be2twd7:`f1rt2boy`,Bqenvij:`frvgh55`,a9b677:`fq4mcun`,Bqrlyyl:`f1exjqw5`},before:{t21cq0:[`f1nizpg2`,`f1a695kz`]},after:{Frg6f3:[`f1a695kz`,`f1nizpg2`]}},{d:[`.fe5j1ua{font-size:20px;}`,`.fjamq6b{height:20px;}`,`.f64fuq3{width:20px;}`,`.fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}`,`.f1rt2boy{font-size:24px;}`,`.frvgh55{height:24px;}`,`.fq4mcun{width:24px;}`,`.f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}`,`.f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}`,`.f1a695kz{margin-left:var(--fui-Button__icon--spacing);}`]}),G_=e=>{"use no memo";let t=R_(),n=z_(),r=B_(),i=V_(),a=H_(),o=U_(),s=W_(),{appearance:c,disabled:l,disabledFocusable:u,icon:d,iconOnly:f,iconPosition:p,shape:m,size:h}=e;return e.root.className=A(L_.root,t,c&&r[c],r[h],d&&h===`small`&&r.smallWithIcon,d&&h===`large`&&r.largeWithIcon,r[m],(l||u)&&i.base,(l||u)&&i.highContrast,c&&(l||u)&&i[c],c===`primary`&&a.primary,a[h],a[m],f&&o[h],e.root.className),e.icon&&(e.icon.className=A(L_.icon,n,!!e.root.children&&s[p],s[h],e.icon.className)),e},K_=M.forwardRef((e,t)=>{let n=F_(e,t);return G_(n),Qi(`useButtonStyles_unstable`)(n),A_(n)});K_.displayName=`Button`;function q_(e,t){let{checked:n,defaultChecked:r,disabled:i,disabledFocusable:a,isAccessible:o=!1}=e,{onClick:s,role:c}=t.root,[l,u]=sa({state:n,defaultState:r,initialState:!1}),d=c===`menuitemcheckbox`||c===`checkbox`,f=M.useCallback(e=>{if(!i&&!a){if(e.defaultPrevented)return;u(!l)}},[l,i,a,u]);return{...t,checked:l,isAccessible:o,root:{...t.root,[d?`aria-checked`:`aria-pressed`]:l,onClick:F(Pa(s,f))}}}var J_=(e,t)=>{let{checked:n=!1,defaultChecked:r=!1,isAccessible:i=!1,...a}=e;return q_(e,F_(a,t))},Y_={root:`fui-ToggleButton`,icon:`fui-ToggleButton__icon`},X_=P({base:{De3pzq:`f1nfm20t`,g2u3we:`fj3muxo`,h3c5rm:[`f1akhkt`,`f1lxtadh`],B9xav0g:`f1aperda`,zhjwy3:[`f1lxtadh`,`f1akhkt`],sj55zd:`f14nttnl`,B4j52fo:`f192inf7`,Bekrc4i:[`f5tn483`,`f1ojsxk5`],Bn0qgzm:`f1vxd6vx`,ibv6hh:[`f1ojsxk5`,`f5tn483`],D0sxk3:`fxoiby5`,t6yez3:`f15q0o9g`,Jwef8y:`f1knas48`,Bgoe8wy:`fvcxoqz`,Bwzppfd:[`f1ub3y4t`,`f1m52nbi`],oetu4i:`f1xlaoq0`,gg5e9n:[`f1m52nbi`,`f1ub3y4t`],Bi91k9c:`feu1g3u`,Bpjbzib:`f128kf1x`,im15vp:`f1a38rnh`,Hjvxdg:[`f1wvuwkr`,`fbu0tau`],Gpfmf1:`f132k7zb`,ustxxc:[`fbu0tau`,`f1wvuwkr`],Brsut9c:`fggfoek`},highContrast:{By8wz76:`f1nz3ub2`,Bcq6wej:`fjq791v`,Jcjdmf:[`fkq2p2y`,`f1sehlss`],sc4o1m:`f11odvng`,Bosien3:[`f1sehlss`,`fkq2p2y`],B7iucu3:`fqc85l4`,B8gzw0y:`f1h3a8gf`,Bbkh6qg:`fkiggi6`,F230oe:`f8gmj8i`,Bdw8ktp:[`f1ap8nzx`,`fjag8bx`],Bj1xduy:`f1igan7k`,Bhh2cfd:[`fjag8bx`,`f1ap8nzx`],Bahaeuw:`f1v3eptx`,Bv2bamp:`f1ysmecq`,vxuvv6:`faulsx`,Bli9q98:[`f79t15f`,`f8qmx7k`],Bx2tt8t:`fbtzoaq`,yad0b3:[`f8qmx7k`,`f79t15f`],j2fop7:`fd4bjan`,B6rz4yo:0,Buk7464:0,Bqg8rp8:0,pjr8j7:0,Bgs2klq:0,Hwei09:0,Bi9aqk7:0,Fihjvf:0,nhyz0p:0,Buw724y:0,Bn7qjfh:0,B0u7xl9:0,md97jv:0,h3ptyc:0,s1kvfj:0,kogrdj:0,dqx2i2:`fdmpsdn`,o0nolc:`fgjsukj`},outline:{De3pzq:`f1q9pm1r`,g2u3we:`fj3muxo`,h3c5rm:[`f1akhkt`,`f1lxtadh`],B9xav0g:`f1aperda`,zhjwy3:[`f1lxtadh`,`f1akhkt`],B4j52fo:`fgx37oo`,Bekrc4i:[`f130t4y6`,`f1efpmoh`],Bn0qgzm:`fv51ejd`,ibv6hh:[`f1efpmoh`,`f130t4y6`],Jwef8y:`fjxutwb`,Bpjbzib:`fkoldzo`,B8q5s1w:`fcaw57c`,Bci5o5g:[`fpwd27e`,`f1999bjr`],n8qw10:`f1hi52o4`,Bdrgwmp:[`f1999bjr`,`fpwd27e`]},primary:{De3pzq:`f8w4g0q`,g2u3we:`f1p3nwhy`,h3c5rm:[`f11589ue`,`f1pdflbu`],B9xav0g:`f1q5o8ev`,zhjwy3:[`f1pdflbu`,`f11589ue`],sj55zd:`f1phragk`,Jwef8y:`f15wkkf3`,Bgoe8wy:`f1s2uweq`,Bwzppfd:[`fr80ssc`,`fecsdlb`],oetu4i:`f1ukrpxl`,gg5e9n:[`fecsdlb`,`fr80ssc`],Bi91k9c:`f1rq72xc`,Bpjbzib:`f1ksv2xa`,im15vp:`fhvnf4x`,Hjvxdg:[`fb6swo4`,`f232fm2`],Gpfmf1:`f1klyf7k`,ustxxc:[`f232fm2`,`fb6swo4`],Brsut9c:`f1d6mv4x`},secondary:{},subtle:{De3pzq:`fq5gl1p`,g2u3we:`f1p3nwhy`,h3c5rm:[`f11589ue`,`f1pdflbu`],B9xav0g:`f1q5o8ev`,zhjwy3:[`f1pdflbu`,`f11589ue`],sj55zd:`f1eryozh`,Jwef8y:`f1t94bn6`,Bgoe8wy:`f1s2uweq`,Bwzppfd:[`fr80ssc`,`fecsdlb`],oetu4i:`f1ukrpxl`,gg5e9n:[`fecsdlb`,`fr80ssc`],Bi91k9c:`fnwyq0v`,Bpjbzib:`f1q1yqic`,im15vp:`fhvnf4x`,Hjvxdg:[`fb6swo4`,`f232fm2`],Gpfmf1:`f1klyf7k`,ustxxc:[`f232fm2`,`fb6swo4`],Brsut9c:`fwga7ee`},transparent:{De3pzq:`f1q9pm1r`,g2u3we:`f1p3nwhy`,h3c5rm:[`f11589ue`,`f1pdflbu`],B9xav0g:`f1q5o8ev`,zhjwy3:[`f1pdflbu`,`f11589ue`],sj55zd:`f1qj7y59`,Jwef8y:`fjxutwb`,Bgoe8wy:`f1s2uweq`,Bwzppfd:[`fr80ssc`,`fecsdlb`],oetu4i:`f1ukrpxl`,gg5e9n:[`fecsdlb`,`fr80ssc`],Bi91k9c:`f139oj5f`,Bpjbzib:`fkoldzo`,im15vp:`fhvnf4x`,Hjvxdg:[`fb6swo4`,`f232fm2`],Gpfmf1:`f1klyf7k`,ustxxc:[`f232fm2`,`fb6swo4`],Brsut9c:`f1l983o9`}},{d:`.f1nfm20t{background-color:var(--colorNeutralBackground1Selected);},.fj3muxo{border-top-color:var(--colorNeutralStroke1);},.f1akhkt{border-right-color:var(--colorNeutralStroke1);},.f1lxtadh{border-left-color:var(--colorNeutralStroke1);},.f1aperda{border-bottom-color:var(--colorNeutralStroke1);},.f14nttnl{color:var(--colorNeutralForeground1Selected);},.f192inf7{border-top-width:var(--strokeWidthThin);},.f5tn483{border-right-width:var(--strokeWidthThin);},.f1ojsxk5{border-left-width:var(--strokeWidthThin);},.f1vxd6vx{border-bottom-width:var(--strokeWidthThin);},.fxoiby5 .fui-Icon-filled{display:inline;},.f15q0o9g .fui-Icon-regular{display:none;},.f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);},.fgx37oo{border-top-width:var(--strokeWidthThicker);},.f130t4y6{border-right-width:var(--strokeWidthThicker);},.f1efpmoh{border-left-width:var(--strokeWidthThicker);},.fv51ejd{border-bottom-width:var(--strokeWidthThicker);},.fcaw57c[data-fui-focus-visible]{border-top-color:var(--colorNeutralStroke1);},.fpwd27e[data-fui-focus-visible]{border-right-color:var(--colorNeutralStroke1);},.f1999bjr[data-fui-focus-visible]{border-left-color:var(--colorNeutralStroke1);},.f1hi52o4[data-fui-focus-visible]{border-bottom-color:var(--colorNeutralStroke1);},.f8w4g0q{background-color:var(--colorBrandBackgroundSelected);},.f1p3nwhy{border-top-color:transparent;},.f11589ue{border-right-color:transparent;},.f1pdflbu{border-left-color:transparent;},.f1q5o8ev{border-bottom-color:transparent;},.f1phragk{color:var(--colorNeutralForegroundOnBrand);},.fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);},.f1eryozh{color:var(--colorNeutralForeground2Selected);},.f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}`.split(`,`),h:`.f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);} .fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);} .f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);} .f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);} .f1xlaoq0:hover{border-bottom-color:var(--colorNeutralStroke1Hover);} .feu1g3u:hover{color:var(--colorNeutralForeground1Hover);} .f128kf1x:hover:active,.f128kf1x:active:focus-visible{background-color:var(--colorNeutralBackground1Pressed);} .f1a38rnh:hover:active,.f1a38rnh:active:focus-visible{border-top-color:var(--colorNeutralStroke1Pressed);} .f1wvuwkr:hover:active,.f1wvuwkr:active:focus-visible{border-right-color:var(--colorNeutralStroke1Pressed);} .fbu0tau:hover:active,.fbu0tau:active:focus-visible{border-left-color:var(--colorNeutralStroke1Pressed);} .f132k7zb:hover:active,.f132k7zb:active:focus-visible{border-bottom-color:var(--colorNeutralStroke1Pressed);} .fggfoek:hover:active,.fggfoek:active:focus-visible{color:var(--colorNeutralForeground1Pressed);} .fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);} .fkoldzo:hover:active,.fkoldzo:active:focus-visible{background-color:var(--colorTransparentBackgroundPressed);} .f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);} .f1s2uweq:hover{border-top-color:transparent;} .fr80ssc:hover{border-right-color:transparent;} .fecsdlb:hover{border-left-color:transparent;} .f1ukrpxl:hover{border-bottom-color:transparent;} .f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);} .f1ksv2xa:hover:active,.f1ksv2xa:active:focus-visible{background-color:var(--colorBrandBackgroundPressed);} .fhvnf4x:hover:active,.fhvnf4x:active:focus-visible{border-top-color:transparent;} .fb6swo4:hover:active,.fb6swo4:active:focus-visible{border-right-color:transparent;} .f232fm2:hover:active,.f232fm2:active:focus-visible{border-left-color:transparent;} .f1klyf7k:hover:active,.f1klyf7k:active:focus-visible{border-bottom-color:transparent;} .f1d6mv4x:hover:active,.f1d6mv4x:active:focus-visible{color:var(--colorNeutralForegroundOnBrand);} .f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);} .fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);} .f1q1yqic:hover:active,.f1q1yqic:active:focus-visible{background-color:var(--colorSubtleBackgroundPressed);} .fwga7ee:hover:active,.fwga7ee:active:focus-visible{color:var(--colorNeutralForeground2Pressed);} .f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);} .f1l983o9:hover:active,.f1l983o9:active:focus-visible{color:var(--colorNeutralForeground2BrandPressed);}`.split(` `),m:[[`@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fjq791v{border-top-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1sehlss{border-left-color:Highlight;}.fkq2p2y{border-right-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f11odvng{border-bottom-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fqc85l4{color:HighlightText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fkiggi6:hover{background-color:HighlightText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f8gmj8i:hover{border-top-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1ap8nzx:hover{border-right-color:Highlight;}.fjag8bx:hover{border-left-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1igan7k:hover{border-bottom-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1v3eptx:hover{color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1ysmecq:hover:active,.f1ysmecq:active:focus-visible{background-color:HighlightText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.faulsx:hover:active,.faulsx:active:focus-visible{border-top-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f79t15f:hover:active,.f79t15f:active:focus-visible{border-right-color:Highlight;}.f8qmx7k:hover:active,.f8qmx7k:active:focus-visible{border-left-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fbtzoaq:hover:active,.fbtzoaq:active:focus-visible{border-bottom-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fd4bjan:hover:active,.fd4bjan:active:focus-visible{color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fdmpsdn:focus{border:1px solid HighlightText;}}`,{p:-2,m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fgjsukj:focus{outline-color:Highlight;}}`,{m:`(forced-colors: active)`}]]}),Z_=P({base:{De3pzq:`ffp7eso`,g2u3we:`f1p3nwhy`,h3c5rm:[`f11589ue`,`f1pdflbu`],B9xav0g:`f1q5o8ev`,zhjwy3:[`f1pdflbu`,`f11589ue`],sj55zd:`f1phragk`,Jwef8y:`f15wkkf3`,Bgoe8wy:`f1s2uweq`,Bwzppfd:[`fr80ssc`,`fecsdlb`],oetu4i:`f1ukrpxl`,gg5e9n:[`fecsdlb`,`fr80ssc`],Bi91k9c:`f1rq72xc`,Bpjbzib:`f1ksv2xa`,im15vp:`fhvnf4x`,Hjvxdg:[`fb6swo4`,`f232fm2`],Gpfmf1:`f1klyf7k`,ustxxc:[`f232fm2`,`fb6swo4`],Brsut9c:`f1d6mv4x`},outline:{B4j52fo:`f192inf7`,Bekrc4i:[`f5tn483`,`f1ojsxk5`],Bn0qgzm:`f1vxd6vx`,ibv6hh:[`f1ojsxk5`,`f5tn483`]},primary:{Bw0xxkn:0,oeaueh:0,Bpd4iqm:0,Befb4lg:`f12rpxh0`,Dhobit:`f10okvgz`,Bfpq7zp:0,g9k6zt:0,Bn4voq9:0,giviqs:`f40way`,Bpkdmpa:`ftbw7yw`},subtle:{ysa4qo:`f17xzaca`},transparent:{},secondary:{}},{d:[`.ffp7eso{background-color:var(--colorBrandBackground);}`,`.f1p3nwhy{border-top-color:transparent;}`,`.f11589ue{border-right-color:transparent;}`,`.f1pdflbu{border-left-color:transparent;}`,`.f1q5o8ev{border-bottom-color:transparent;}`,`.f1phragk{color:var(--colorNeutralForegroundOnBrand);}`,`.f192inf7{border-top-width:var(--strokeWidthThin);}`,`.f5tn483{border-right-width:var(--strokeWidthThin);}`,`.f1ojsxk5{border-left-width:var(--strokeWidthThin);}`,`.f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}`,[`.f12rpxh0{outline:var(--strokeWidthThin) solid var(--colorNeutralForegroundOnBrand);}`,{p:-1}],`.f10okvgz{outline-offset:calc(var(--strokeWidthThicker) * -1);}`,[`.f40way[data-fui-focus-visible]{outline:var(--strokeWidthThin) solid var(--colorNeutralForegroundOnBrand);}`,{p:-1}],`.ftbw7yw[data-fui-focus-visible]{outline-offset:calc(var(--strokeWidthThickest) * -1);}`],h:[`.f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}`,`.f1s2uweq:hover{border-top-color:transparent;}`,`.fr80ssc:hover{border-right-color:transparent;}`,`.fecsdlb:hover{border-left-color:transparent;}`,`.f1ukrpxl:hover{border-bottom-color:transparent;}`,`.f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}`,`.f1ksv2xa:hover:active,.f1ksv2xa:active:focus-visible{background-color:var(--colorBrandBackgroundPressed);}`,`.fhvnf4x:hover:active,.fhvnf4x:active:focus-visible{border-top-color:transparent;}`,`.fb6swo4:hover:active,.fb6swo4:active:focus-visible{border-right-color:transparent;}`,`.f232fm2:hover:active,.f232fm2:active:focus-visible{border-left-color:transparent;}`,`.f1klyf7k:hover:active,.f1klyf7k:active:focus-visible{border-bottom-color:transparent;}`,`.f1d6mv4x:hover:active,.f1d6mv4x:active:focus-visible{color:var(--colorNeutralForegroundOnBrand);}`,`.f17xzaca:hover .fui-ToggleButton__icon{color:var(--colorNeutralForegroundOnBrand);}`]}),Q_=P({base:{De3pzq:`f1bg9a2p`,g2u3we:`f1jj8ep1`,h3c5rm:[`f15xbau`,`fy0fskl`],B9xav0g:`f4ikngz`,zhjwy3:[`fy0fskl`,`f15xbau`],sj55zd:`f1s2aq7o`,Jwef8y:`f1falr9n`,Bgoe8wy:`f12mpcsy`,Bwzppfd:[`f1gwvigk`,`f18rmfxp`],oetu4i:`f1jnshp0`,gg5e9n:[`f18rmfxp`,`f1gwvigk`],Bi91k9c:`fvgxktp`,Bpjbzib:`f1jct5ie`,im15vp:`f13txml0`,Hjvxdg:[`f1ncddno`,`f1axfvow`],Gpfmf1:`f1z04ada`,ustxxc:[`f1axfvow`,`f1ncddno`],Brsut9c:`f1uhomfy`},outline:{},primary:{g2u3we:`f1p3nwhy`,h3c5rm:[`f11589ue`,`f1pdflbu`],B9xav0g:`f1q5o8ev`,zhjwy3:[`f1pdflbu`,`f11589ue`],Bgoe8wy:`f1s2uweq`,Bwzppfd:[`fr80ssc`,`fecsdlb`],oetu4i:`f1ukrpxl`,gg5e9n:[`fecsdlb`,`fr80ssc`],im15vp:`fhvnf4x`,Hjvxdg:[`fb6swo4`,`f232fm2`],Gpfmf1:`f1klyf7k`,ustxxc:[`f232fm2`,`fb6swo4`]},secondary:{},subtle:{De3pzq:`f1c21dwh`,g2u3we:`f1p3nwhy`,h3c5rm:[`f11589ue`,`f1pdflbu`],B9xav0g:`f1q5o8ev`,zhjwy3:[`f1pdflbu`,`f11589ue`],Jwef8y:`fjxutwb`,Bgoe8wy:`f1s2uweq`,Bwzppfd:[`fr80ssc`,`fecsdlb`],oetu4i:`f1ukrpxl`,gg5e9n:[`fecsdlb`,`fr80ssc`],Bpjbzib:`fkoldzo`,im15vp:`fhvnf4x`,Hjvxdg:[`fb6swo4`,`f232fm2`],Gpfmf1:`f1klyf7k`,ustxxc:[`f232fm2`,`fb6swo4`]},transparent:{De3pzq:`f1c21dwh`,g2u3we:`f1p3nwhy`,h3c5rm:[`f11589ue`,`f1pdflbu`],B9xav0g:`f1q5o8ev`,zhjwy3:[`f1pdflbu`,`f11589ue`],Jwef8y:`fjxutwb`,Bgoe8wy:`f1s2uweq`,Bwzppfd:[`fr80ssc`,`fecsdlb`],oetu4i:`f1ukrpxl`,gg5e9n:[`fecsdlb`,`fr80ssc`],Bpjbzib:`fkoldzo`,im15vp:`fhvnf4x`,Hjvxdg:[`fb6swo4`,`f232fm2`],Gpfmf1:`f1klyf7k`,ustxxc:[`f232fm2`,`fb6swo4`]}},{d:[`.f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}`,`.f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}`,`.f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}`,`.fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}`,`.f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}`,`.f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}`,`.f1p3nwhy{border-top-color:transparent;}`,`.f11589ue{border-right-color:transparent;}`,`.f1pdflbu{border-left-color:transparent;}`,`.f1q5o8ev{border-bottom-color:transparent;}`,`.f1c21dwh{background-color:var(--colorTransparentBackground);}`],h:[`.f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}`,`.f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}`,`.f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}`,`.f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}`,`.f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}`,`.fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}`,`.f1jct5ie:hover:active,.f1jct5ie:active:focus-visible{background-color:var(--colorNeutralBackgroundDisabled);}`,`.f13txml0:hover:active,.f13txml0:active:focus-visible{border-top-color:var(--colorNeutralStrokeDisabled);}`,`.f1ncddno:hover:active,.f1ncddno:active:focus-visible{border-right-color:var(--colorNeutralStrokeDisabled);}`,`.f1axfvow:hover:active,.f1axfvow:active:focus-visible{border-left-color:var(--colorNeutralStrokeDisabled);}`,`.f1z04ada:hover:active,.f1z04ada:active:focus-visible{border-bottom-color:var(--colorNeutralStrokeDisabled);}`,`.f1uhomfy:hover:active,.f1uhomfy:active:focus-visible{color:var(--colorNeutralForegroundDisabled);}`,`.f1s2uweq:hover{border-top-color:transparent;}`,`.fr80ssc:hover{border-right-color:transparent;}`,`.fecsdlb:hover{border-left-color:transparent;}`,`.f1ukrpxl:hover{border-bottom-color:transparent;}`,`.fhvnf4x:hover:active,.fhvnf4x:active:focus-visible{border-top-color:transparent;}`,`.fb6swo4:hover:active,.fb6swo4:active:focus-visible{border-right-color:transparent;}`,`.f232fm2:hover:active,.f232fm2:active:focus-visible{border-left-color:transparent;}`,`.f1klyf7k:hover:active,.f1klyf7k:active:focus-visible{border-bottom-color:transparent;}`,`.fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}`,`.fkoldzo:hover:active,.fkoldzo:active:focus-visible{background-color:var(--colorTransparentBackgroundPressed);}`]}),$_=P({subtleOrTransparent:{sj55zd:`f1qj7y59`},highContrast:{B8gzw0y:`f1dd5bof`}},{d:[`.f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}`],m:[[`@media (forced-colors: active){.f1dd5bof{forced-color-adjust:auto;}}`,{m:`(forced-colors: active)`}]]}),ev=P({base:{By8wz76:`f14ptb23`,Bcq6wej:`fd7znuh`,Jcjdmf:[`f1wh4a04`,`f15h7fac`],sc4o1m:`f1f064oi`,Bosien3:[`f15h7fac`,`f1wh4a04`],B7iucu3:`f3ggph1`,B8gzw0y:`f1dd5bof`},disabled:{Bcq6wej:`f9dbb4x`,Jcjdmf:[`f3qs60o`,`f5u9ap2`],sc4o1m:`fwd1oij`,Bosien3:[`f5u9ap2`,`f3qs60o`],B7iucu3:`f1cyfu5x`,h3ptyc:`f19etb0b`,Buw724y:[`f4f984j`,`fw441p0`],Buk7464:`f3d22hf`,Hwei09:[`fw441p0`,`f4f984j`]}},{m:[[`@media (forced-colors: active){.f14ptb23{background-color:ButtonFace;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fd7znuh{border-top-color:ButtonBorder;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f15h7fac{border-left-color:ButtonBorder;}.f1wh4a04{border-right-color:ButtonBorder;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1f064oi{border-bottom-color:ButtonBorder;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f3ggph1{color:ButtonText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1dd5bof{forced-color-adjust:auto;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f19etb0b:focus{border-top-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f4f984j:focus{border-right-color:GrayText;}.fw441p0:focus{border-left-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f3d22hf:focus{border-bottom-color:GrayText;}}`,{m:`(forced-colors: active)`}]]}),tv=e=>{"use no memo";let t=X_(),n=Z_(),r=Q_(),i=$_(),a=ev(),{appearance:o,checked:s,disabled:c,disabledFocusable:l,isAccessible:u}=e;return e.root.className=A(Y_.root,o===`primary`&&a.base,o===`primary`&&(c||l)&&a.disabled,s&&t.base,s&&t.highContrast,o&&s&&t[o],u&&s&&n.base,u&&o&&s&&n[o],(c||l)&&r.base,o&&(c||l)&&r[o],e.root.className),e.icon&&(e.icon.className=A(Y_.icon,s&&!u&&(o===`subtle`||o===`transparent`)&&i.subtleOrTransparent,i.highContrast,e.icon.className)),G_(e),e},nv=M.forwardRef((e,t)=>{let n=J_(e,t);return tv(n),Qi(`useToggleButtonStyles_unstable`)(n),A_(n)});nv.displayName=`ToggleButton`;var rv=M.createContext(void 0),iv=rv.Provider,av=()=>M.useContext(rv),ov=e=>{let{generatedControlId:t,orientation:n,required:r,size:i,validationState:a}=e,o=e.label?.htmlFor,s=e.label?.id,c=e.validationMessage?.id,l=e.hint?.id;return{field:M.useMemo(()=>({generatedControlId:t,hintId:l,labelFor:o,labelId:s,orientation:n,required:r,size:i,validationMessageId:c,validationState:a}),[t,l,o,s,n,r,i,c,a])}};function sv(e,t){return cv(av(),e,t)}function cv(e,t,n){if(!e)return t;t={...t};let{generatedControlId:r,hintId:i,labelFor:a,labelId:o,required:s,validationMessageId:c,validationState:l}=e;if(r){var u;(u=t).id??(u.id=r)}if(o&&(!n?.supportsLabelFor||a!==t.id)){var d,f;(d=t)[f=`aria-labelledby`]??(d[f]=o)}if((c||i)&&(t[`aria-describedby`]=[c,i,t?.[`aria-describedby`]].filter(Boolean).join(` `)),l===`error`){var p,m;(p=t)[m=`aria-invalid`]??(p[m]=!0)}if(s)if(n?.supportsRequired){var h;(h=t).required??(h.required=!0)}else{var g,_;(g=t)[_=`aria-required`]??(g[_]=!0)}if(n?.supportsSize){var v;(v=t).size??(v.size=e.size)}return t}var lv=(e,t)=>{let{children:n}=e;return typeof n==`function`&&(n=n(cv(t.field)||{})),I(iv,{value:t?.field,children:oo(e.root,{children:[e.label&&I(e.label,{}),n,e.validationMessage&&oo(e.validationMessage,{children:[e.validationMessageIcon&&I(e.validationMessageIcon,{}),e.validationMessage.children]}),e.hint&&I(e.hint,{})]})})},uv=(e,t)=>{let{weight:n=`regular`,size:r=`medium`,...i}=e;return{weight:n,size:r,...dv(i,t)}},dv=(e,t)=>{let{disabled:n=!1,required:r=!1,...i}=e;return{disabled:n,required:Yr(r===!0?`*`:r||void 0,{defaultProps:{"aria-hidden":`true`},elementType:`span`}),components:{root:`label`,required:`span`},root:Jr(Ai(`label`,{ref:t,...i}),{elementType:`label`})}},fv=e=>oo(e.root,{children:[e.root.children,e.required&&I(e.required,{})]}),pv={root:`fui-Label`,required:`fui-Label__required`},mv=P({root:{Bahqtrf:`fk6fouc`,sj55zd:`f19n0e5`},disabled:{sj55zd:`f1s2aq7o`,B7iucu3:`f1cyfu5x`},required:{sj55zd:`f1whyuy6`,uwmqm3:[`fruq291`,`f7x41pl`]},small:{Be2twd7:`fy9rknc`,Bg96gwp:`fwrc4pm`},medium:{Be2twd7:`fkhj508`,Bg96gwp:`f1i3iumi`},large:{Be2twd7:`fod5ikn`,Bg96gwp:`faaz57k`,Bhrd7zp:`fl43uef`},semibold:{Bhrd7zp:`fl43uef`}},{d:[`.fk6fouc{font-family:var(--fontFamilyBase);}`,`.f19n0e5{color:var(--colorNeutralForeground1);}`,`.f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}`,`.f1whyuy6{color:var(--colorPaletteRedForeground3);}`,`.fruq291{padding-left:var(--spacingHorizontalXS);}`,`.f7x41pl{padding-right:var(--spacingHorizontalXS);}`,`.fy9rknc{font-size:var(--fontSizeBase200);}`,`.fwrc4pm{line-height:var(--lineHeightBase200);}`,`.fkhj508{font-size:var(--fontSizeBase300);}`,`.f1i3iumi{line-height:var(--lineHeightBase300);}`,`.fod5ikn{font-size:var(--fontSizeBase400);}`,`.faaz57k{line-height:var(--lineHeightBase400);}`,`.fl43uef{font-weight:var(--fontWeightSemibold);}`],m:[[`@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}`,{m:`(forced-colors: active)`}]]}),hv=e=>{"use no memo";let t=mv();return e.root.className=A(pv.root,t.root,e.disabled&&t.disabled,t[e.size],e.weight===`semibold`&&t.semibold,e.root.className),e.required&&(e.required.className=A(pv.required,t.required,e.disabled&&t.disabled,e.required.className)),e},gv=M.forwardRef((e,t)=>{let n=uv(e,t);return hv(n),Qi(`useLabelStyles_unstable`)(n),fv(n)});gv.displayName=`Label`;var _v=(e,t)=>{let{children:n,required:r=!1,validationState:i=e.validationMessage?`error`:`none`}=e,a=ba(`field-`),o=a+`__control`,s=Jr(Ai(`div`,{...e,ref:t},[`children`]),{elementType:`div`}),c=Yr(e.label,{defaultProps:{htmlFor:o,id:a+`__label`,required:r},elementType:`label`}),l=Yr(e.validationMessage,{defaultProps:{id:a+`__validationMessage`,role:i===`error`||i===`warning`?`alert`:void 0},elementType:`div`}),u=Yr(e.hint,{defaultProps:{id:a+`__hint`},elementType:`div`});return{children:n,generatedControlId:o,required:r,validationState:i,components:{root:`div`,label:`label`,validationMessage:`div`,validationMessageIcon:`span`,hint:`div`},root:s,label:c,validationMessageIcon:Yr(e.validationMessageIcon,{renderByDefault:!1,elementType:`span`}),validationMessage:l,hint:u}},vv={error:M.createElement(pp,null),warning:M.createElement(Vf,null),success:M.createElement(ap,null),none:void 0},yv=(e,t)=>{let{orientation:n=`vertical`,size:r=`medium`,...i}=e,a=_v(i,t),o=vv[a.validationState];return{...a,components:{...a.components,label:gv},label:Yr(e.label,{defaultProps:{size:r,...a.label},elementType:gv}),validationMessageIcon:Yr(e.validationMessageIcon,{renderByDefault:!!o,defaultProps:{children:o},elementType:`span`}),orientation:n,size:r}},bv={root:`fui-Field`,label:`fui-Field__label`,validationMessage:`fui-Field__validationMessage`,validationMessageIcon:`fui-Field__validationMessageIcon`,hint:`fui-Field__hint`},xv=P({base:{mc9l5x:`f13qh94s`},horizontal:{Budl1dq:`f2wwaib`,wkccdc:`f1645dqt`},horizontalNoLabel:{uwmqm3:[`f15jqgz8`,`fggqkej`],Budl1dq:`f1c2z91y`}},{d:[`.f13qh94s{display:grid;}`,`.f2wwaib{grid-template-columns:33% 1fr;}`,`.f1645dqt{grid-template-rows:auto auto auto 1fr;}`,`.f15jqgz8{padding-left:33%;}`,`.fggqkej{padding-right:33%;}`,`.f1c2z91y{grid-template-columns:1fr;}`]}),Sv=P({base:{B2u0y6b:`f6nezus`,Bxyxcbc:`f1iqmcbn`},vertical:{z8tnut:`fclwglc`,Byoj8tv:`fywfov9`,jrapky:`fyacil5`},verticalLarge:{z8tnut:`f1sl3k7w`,Byoj8tv:`f1brlhvm`,jrapky:`f8l5zjj`},horizontal:{z8tnut:`fp2oml8`,Byoj8tv:`f1tdddsa`,t21cq0:[`fkujibs`,`f199hnxi`],Ijaq50:`f16hsg94`,nk6f5a:`f1nzqi2z`},horizontalSmall:{z8tnut:`f1ywm7hm`,Byoj8tv:`f14wxoun`},horizontalLarge:{z8tnut:`f1hqyr95`,Byoj8tv:`fm4hlj0`}},{d:[`.f6nezus{max-width:max-content;}`,`.f1iqmcbn{max-height:max-content;}`,`.fclwglc{padding-top:var(--spacingVerticalXXS);}`,`.fywfov9{padding-bottom:var(--spacingVerticalXXS);}`,`.fyacil5{margin-bottom:var(--spacingVerticalXXS);}`,`.f1sl3k7w{padding-top:1px;}`,`.f1brlhvm{padding-bottom:1px;}`,`.f8l5zjj{margin-bottom:var(--spacingVerticalXS);}`,`.fp2oml8{padding-top:var(--spacingVerticalSNudge);}`,`.f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}`,`.fkujibs{margin-right:var(--spacingHorizontalM);}`,`.f199hnxi{margin-left:var(--spacingHorizontalM);}`,`.f16hsg94{grid-row-start:1;}`,`.f1nzqi2z{grid-row-end:-1;}`,`.f1ywm7hm{padding-top:var(--spacingVerticalXS);}`,`.f14wxoun{padding-bottom:var(--spacingVerticalXS);}`,`.f1hqyr95{padding-top:9px;}`,`.fm4hlj0{padding-bottom:9px;}`]}),Cv=Vr(`r5c4z9l`,null,[`.r5c4z9l{margin-top:var(--spacingVerticalXXS);color:var(--colorNeutralForeground3);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}`]),wv=P({error:{sj55zd:`f1hcrxcs`},withIcon:{uwmqm3:[`frawy03`,`fg4c52`]}},{d:[`.f1hcrxcs{color:var(--colorPaletteRedForeground1);}`,`.frawy03{padding-left:calc(12px + var(--spacingHorizontalXS));}`,`.fg4c52{padding-right:calc(12px + var(--spacingHorizontalXS));}`]}),Tv=Vr(`ra7h1uk`,`r1rh6bd7`,[`.ra7h1uk{display:inline-block;font-size:12px;margin-left:calc(-12px - var(--spacingHorizontalXS));margin-right:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}`,`.r1rh6bd7{display:inline-block;font-size:12px;margin-right:calc(-12px - var(--spacingHorizontalXS));margin-left:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}`]),Ev=P({error:{sj55zd:`f1hcrxcs`},warning:{sj55zd:`f1k5f75o`},success:{sj55zd:`ffmvakt`}},{d:[`.f1hcrxcs{color:var(--colorPaletteRedForeground1);}`,`.f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}`,`.ffmvakt{color:var(--colorPaletteGreenForeground1);}`]}),Dv=e=>{"use no memo";let{validationState:t,size:n}=e,r=e.orientation===`horizontal`,i=xv();e.root.className=A(bv.root,i.base,r&&i.horizontal,r&&!e.label&&i.horizontalNoLabel,e.root.className);let a=Sv();e.label&&(e.label.className=A(bv.label,a.base,r&&a.horizontal,r&&n===`small`&&a.horizontalSmall,r&&n===`large`&&a.horizontalLarge,!r&&a.vertical,!r&&n===`large`&&a.verticalLarge,e.label.className));let o=Tv(),s=Ev();e.validationMessageIcon&&(e.validationMessageIcon.className=A(bv.validationMessageIcon,o,t!==`none`&&s[t],e.validationMessageIcon.className));let c=Cv(),l=wv();return e.validationMessage&&(e.validationMessage.className=A(bv.validationMessage,c,t===`error`&&l.error,!!e.validationMessageIcon&&l.withIcon,e.validationMessage.className)),e.hint&&(e.hint.className=A(bv.hint,c,e.hint.className)),e},V=M.forwardRef((e,t)=>{let n=yv(e,t);return Dv(n),Qi(`useFieldStyles_unstable`)(n),lv(n,ov(n))});V.displayName=`Field`;var Ov=(e,t)=>{"use no memo";e=sv(e,{supportsLabelFor:!0,supportsRequired:!0});let{shape:n=`square`,size:r=`medium`,...i}=e,a=kv(i,t),o=a.checked===`mixed`,s;if(o?s=n===`circular`?M.createElement(Qd,null):r===`large`?M.createElement(dp,null):M.createElement(up,null):a.checked&&(s=r===`large`?M.createElement(rp,null):M.createElement(np,null)),a.indicator){var c;(c=a.indicator).children??(c.children=s)}return{shape:n,size:r,...a,components:{...a.components,label:gv},label:Yr(e.label,{defaultProps:{...a.label,size:`medium`},elementType:gv})}},kv=(e,t)=>{"use no memo";let{disabled:n=!1,required:r,labelPosition:i=`after`,onChange:a}=e,[o,s]=sa({defaultState:e.defaultChecked,state:e.checked,initialState:!1}),c=ki({props:e,primarySlotTagName:`input`,excludedPropNames:[`checked`,`defaultChecked`,`onChange`]}),l=o===`mixed`,u=ba(`checkbox-`,c.primary.id),d={checked:o,disabled:n,labelPosition:i,components:{root:`span`,input:`input`,indicator:`div`,label:`label`},root:Jr(e.root,{defaultProps:{ref:tl(),...c.root},elementType:`span`}),input:Jr(e.input,{defaultProps:{type:`checkbox`,id:u,ref:t,checked:o===!0,...c.primary},elementType:`input`}),label:Yr(e.label,{defaultProps:{htmlFor:u,disabled:n,required:r},elementType:`label`}),indicator:Yr(e.indicator,{renderByDefault:!0,defaultProps:{"aria-hidden":!0},elementType:`div`})};d.input.onChange=Pa(d.input.onChange,e=>{let t=e.currentTarget.indeterminate?`mixed`:e.currentTarget.checked;a?.(e,{checked:t}),s(t)});let f=xa(d.input.ref);return d.input.ref=f,ha(()=>{f.current&&(f.current.indeterminate=l)},[f,l]),d},Av=e=>oo(e.root,{children:[I(e.input,{}),e.labelPosition===`before`&&e.label&&I(e.label,{}),e.indicator&&I(e.indicator,{}),e.labelPosition===`after`&&e.label&&I(e.label,{})]}),jv={root:`fui-Checkbox`,label:`fui-Checkbox__label`,input:`fui-Checkbox__input`,indicator:`fui-Checkbox__indicator`},Mv=Vr(`r1nzur1d`,`r128arqq`,{r:[`.r1nzur1d{position:relative;display:inline-flex;cursor:pointer;max-width:fit-content;vertical-align:middle;color:var(--colorNeutralForeground3);}`,`.r1nzur1d:focus{outline-style:none;}`,`.r1nzur1d:focus-visible{outline-style:none;}`,`.r1nzur1d[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}`,`.r1nzur1d[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}`,`.r128arqq{position:relative;display:inline-flex;cursor:pointer;max-width:fit-content;vertical-align:middle;color:var(--colorNeutralForeground3);}`,`.r128arqq:focus{outline-style:none;}`,`.r128arqq:focus-visible{outline-style:none;}`,`.r128arqq[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}`,`.r128arqq[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}`],s:[`@media (forced-colors: active){.r1nzur1d[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}`,`@media (forced-colors: active){.r128arqq[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}`]}),Nv=P({unchecked:{Bi91k9c:`f3p8bqa`,pv5h1i:`fium13f`,lj723h:`f1r2dosr`,Hnthvo:`f1729es6`},checked:{sj55zd:`f19n0e5`,wkncrt:`f35ds98`,zxk7z7:`f12mnkne`,Hmsnfy:`fei9a8h`,e6czan:`fix56y3`,pv5h1i:`f1bcv2js`,qbydtz:`f7dr4go`,Hnthvo:`f1r5cpua`},mixed:{sj55zd:`f19n0e5`,Hmsnfy:`f1l27tf0`,zxk7z7:`fcilktj`,pv5h1i:`f1lphd54`,Bunfa6h:`f1obkvq7`,Hnthvo:`f2gmbuh`,B15ykmv:`f1oy4fa1`},disabled:{Bceei9c:`f158kwzp`,sj55zd:`f1s2aq7o`,Hmsnfy:`f1w7mfl5`,zxk7z7:`fcoafq6`,B7iucu3:`f1cyfu5x`,Bptavk6:`f1lwde8o`}},{h:[`.f3p8bqa:hover{color:var(--colorNeutralForeground2);}`,`.fium13f:hover{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessibleHover);}`,`.fix56y3:hover{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundHover);}`,`.f1bcv2js:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundHover);}`,`.f1lphd54:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokeHover);}`,`.f1obkvq7:hover{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Hover);}`],a:[`.f1r2dosr:active{color:var(--colorNeutralForeground1);}`,`.f1729es6:active{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessiblePressed);}`,`.f7dr4go:active{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundPressed);}`,`.f1r5cpua:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundPressed);}`,`.f2gmbuh:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokePressed);}`,`.f1oy4fa1:active{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Pressed);}`],d:[`.f19n0e5{color:var(--colorNeutralForeground1);}`,`.f35ds98{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackground);}`,`.f12mnkne{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundInverted);}`,`.fei9a8h{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackground);}`,`.f1l27tf0{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStroke);}`,`.fcilktj{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1);}`,`.f158kwzp{cursor:default;}`,`.f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}`,`.f1w7mfl5{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeDisabled);}`,`.fcoafq6{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundDisabled);}`],m:[[`@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1lwde8o{--fui-Checkbox__indicator--color:GrayText;}}`,{m:`(forced-colors: active)`}]]}),Pv=Vr(`ruo9svu`,null,[`.ruo9svu{box-sizing:border-box;cursor:inherit;height:100%;margin:0;opacity:0;position:absolute;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));}`]),Fv=P({before:{j35jbq:[`f1e31b4d`,`f1vgc2s3`]},after:{oyh7mz:[`f1vgc2s3`,`f1e31b4d`]},large:{a9b677:`f1mq5jt6`}},{d:[`.f1e31b4d{right:0;}`,`.f1vgc2s3{left:0;}`,`.f1mq5jt6{width:calc(20px + 2 * var(--spacingHorizontalS));}`]}),Iv=Vr(`rl7ci6d`,null,[`.rl7ci6d{align-self:flex-start;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--fui-Checkbox__indicator--color);background-color:var(--fui-Checkbox__indicator--backgroundColor);border-color:var(--fui-Checkbox__indicator--borderColor, var(--colorNeutralStrokeAccessible));border-style:solid;border-width:var(--strokeWidthThin);border-radius:var(--borderRadiusSmall);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;font-size:12px;height:16px;width:16px;}`]),Lv=P({large:{Be2twd7:`f4ybsrx`,Bqenvij:`fjamq6b`,a9b677:`f64fuq3`},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`f44lkw9`}},{d:[`.f4ybsrx{font-size:16px;}`,`.fjamq6b{height:20px;}`,`.f64fuq3{width:20px;}`,[`.f44lkw9{border-radius:var(--borderRadiusCircular);}`,{p:-1}]]}),Rv=P({base:{qb2dma:`f7nlbp4`,sj55zd:`f1ym3bx4`,Bceei9c:`fpo1scq`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f1f5q0n8`},before:{z189sj:[`f7x41pl`,`fruq291`]},after:{uwmqm3:[`fruq291`,`f7x41pl`]},medium:{B6of3ja:`fjzwpt6`,jrapky:`fh6j2fo`},large:{B6of3ja:`f1xlvstr`,jrapky:`f49ad5g`}},{d:[`.f7nlbp4{align-self:center;}`,`.f1ym3bx4{color:inherit;}`,`.fpo1scq{cursor:inherit;}`,[`.f1f5q0n8{padding:var(--spacingVerticalS) var(--spacingHorizontalS);}`,{p:-1}],`.f7x41pl{padding-right:var(--spacingHorizontalXS);}`,`.fruq291{padding-left:var(--spacingHorizontalXS);}`,`.fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}`,`.fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}`,`.f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}`,`.f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}`]}),zv=e=>{"use no memo";let{checked:t,disabled:n,labelPosition:r,shape:i,size:a}=e,o=Mv(),s=Nv();e.root.className=A(jv.root,o,n?s.disabled:t===`mixed`?s.mixed:t?s.checked:s.unchecked,e.root.className);let c=Pv(),l=Fv();e.input.className=A(jv.input,c,a===`large`&&l.large,l[r],e.input.className);let u=Iv(),d=Lv();e.indicator&&(e.indicator.className=A(jv.indicator,u,a===`large`&&d.large,i===`circular`&&d.circular,e.indicator.className));let f=Rv();return e.label&&(e.label.className=A(jv.label,f.base,f[a],f[r],e.label.className)),e},Bv=M.forwardRef((e,t)=>{let n=Ov(e,t);return zv(n),Qi(`useCheckboxStyles_unstable`)(n),Av(n)});Bv.displayName=`Checkbox`;var Vv=Qu({activeOption:void 0,appearance:`outline`,focusVisible:!1,open:!1,registerOption(){return()=>void 0},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:`medium`});Vv.Provider;var Hv={activeOption:void 0,focusVisible:!1,multiselect:!1,getOptionById(){},getOptionsMatchingValue(){return[]},registerOption(){return()=>void 0},selectedOptions:[],onOptionClick(){},onActiveDescendantChange(){},selectOption(){},setActiveOption(){}},Uv=Qu(void 0),Wv=e=>$u(Uv,(t=Hv)=>e(t)),Gv=Uv.Provider;function Kv(e){let{appearance:t,open:n,getOptionById:r,getOptionsMatchingValue:i,registerOption:a,selectedOptions:o,selectOption:s,setOpen:c,size:l,activeDescendantController:u,onOptionClick:d,onActiveDescendantChange:f}=e,p={activeOption:void 0,appearance:t,focusVisible:!1,open:n,registerOption:a,selectedOptions:o,selectOption:s,setActiveOption:()=>null,setOpen:c,size:l},m={activeOption:void 0,focusVisible:!1,getOptionById:r,getOptionsMatchingValue:i,registerOption:a,selectedOptions:o,selectOption:s,setActiveOption:()=>null,onOptionClick:d,onActiveDescendantChange:f};return{combobox:p,activeDescendant:M.useMemo(()=>({controller:u}),[u]),listbox:m}}function qv(e){let t=ed(Uv),{getOptionById:n,getOptionsMatchingValue:r,multiselect:i,registerOption:a,selectedOptions:o,selectOption:s,activeDescendantController:c}=e,l=Wv(e=>e.registerOption),u=Wv(e=>e.onOptionClick),d=Wv(e=>e.onActiveDescendantChange);return{listbox:{activeOption:void 0,focusVisible:!1,getOptionById:n,getOptionsMatchingValue:r,multiselect:i,registerOption:t?l:a,selectedOptions:o,selectOption:s,setActiveOption:()=>void 0,onOptionClick:u,onActiveDescendantChange:d},activeDescendant:M.useMemo(()=>({controller:c}),[c])}}function Jv(e,t={}){let{open:n=!0,multiselect:r=!1}=t,i=e.key,{altKey:a,ctrlKey:o,key:s,metaKey:c}=e;return s.length===1&&i!==` `&&!a&&!o&&!c?`Type`:n?i===`ArrowUp`&&a||i===`Enter`||!r&&i===` `?`CloseSelect`:r&&i===` `?`Select`:i===`Escape`?`Close`:i===`ArrowDown`?`Next`:i===`ArrowUp`?`Previous`:i===`Home`?`First`:i===`End`?`Last`:i===`PageUp`?`PageUp`:i===`PageDown`?`PageDown`:i===`Tab`?`Tab`:`None`:i===`ArrowDown`||i===`ArrowUp`||i===`Enter`||i===` `?`Open`:`None`}var Yv=()=>{let e=M.useRef(new Map),t=M.useMemo(()=>({getCount:()=>e.current.size,getOptionAtIndex:()=>void 0,getIndexOfId:()=>-1,getOptionById:t=>e.current.get(t),getOptionsMatchingText:t=>Array.from(e.current.values()).filter(({text:e})=>t(e)),getOptionsMatchingValue:t=>{let n=[];for(let r of e.current.values())t(r.value)&&n.push(r);return n}}),[]),n=M.useCallback(t=>(e.current.set(t.id,t),()=>e.current.delete(t.id)),[]);return{...t,options:Array.from(e.current.values()),registerOption:n}},Xv=e=>{let{defaultSelectedOptions:t,multiselect:n,onOptionSelect:r}=e,[i,a]=sa({state:e.selectedOptions,defaultState:t,initialState:[]});return{clearSelection:e=>{a([]),r?.(e,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:M.useCallback((e,t)=>{if(t.disabled)return;let o=[t.value];if(n){let e=i.findIndex(e=>e===t.value);o=e>-1?[...i.slice(0,e),...i.slice(e+1)]:[...i,t.value]}a(o),r?.(e,{optionValue:t.value,optionText:t.text,selectedOptions:o})},[r,n,i,a]),selectedOptions:i}};function Zv(e){return e.role===`option`||e.role===`menuitemcheckbox`}var Qv={activeOption:void 0,focusVisible:!1,setActiveOption:()=>null},$v=(e,t)=>{"use no memo";let{multiselect:n,disableAutoFocus:r=!1}=e,i=Yv(),{listboxRef:a,activeParentRef:o,controller:s}=Od({matchOption:Zv}),c=ed(Uv),l=Wv(e=>e.onActiveDescendantChange),u=Wv(e=>e.getOptionById),d=Wv(e=>e.getOptionsMatchingValue),f=c?u:i.getOptionById,p=c?d:i.getOptionsMatchingValue,m=M.useMemo(()=>{let e=null,t=e=>{l?.(e)};return n=>{if(!n){e?.removeEventListener(`activedescendantchange`,t);return}e=n,e.addEventListener(`activedescendantchange`,t)}},[l]),[h,g]=M.useState(!1);rl(g);let _=_d(),v=vd(),y=v?_.controller:s,{clearSelection:b,selectedOptions:x,selectOption:S}=Xv(e),C=e=>{let t=Jv(e,{open:!0}),n=y.active(),r=n?f(n):null;switch(t){case`First`:case`Last`:case`Next`:case`Previous`:case`PageDown`:case`PageUp`:case`CloseSelect`:case`Select`:e.preventDefault();break}switch(t){case`Next`:r?y.next():y.first();break;case`Previous`:r?y.prev():y.first();break;case`PageUp`:case`First`:y.first();break;case`PageDown`:case`Last`:y.last();break;case`Select`:case`CloseSelect`:r&&S(e,r);break}},w=Wv(e=>e.selectedOptions),T=Wv(e=>e.selectOption),E=c?{selectedOptions:w,selectOption:T,...Qv}:{selectedOptions:x,selectOption:S,...Qv};M.useEffect(()=>{if(!v){if(y.hideFocusVisibleAttributes(),!r)if(!n&&E.selectedOptions.length>0){let e=p(e=>e===E.selectedOptions[0]).pop();e?.id&&y.focus(e.id)}else y.first();return()=>{y.blur()}}},[]);let D=M.useCallback(()=>{v||(y.showFocusVisibleAttributes(),h&&y.scrollActiveIntoView())},[y,v,h]),O=M.useCallback(()=>{v||y.hideFocusVisibleAttributes()},[y,v]),ee={components:{root:`div`},root:Jr(Ai(`div`,{ref:xa(t,o,a,m),role:n?`menu`:`listbox`,tabIndex:0,...e}),{elementType:`div`}),standalone:!c,multiselect:n,clearSelection:b,activeDescendantController:y,onActiveDescendantChange:l,...i,...E};return ee.root.onKeyDown=F(Pa(ee.root.onKeyDown,C)),ee.root.onFocus=F(Pa(ee.root.onFocus,D)),ee.root.onBlur=F(Pa(ee.root.onBlur,O)),ee},ey=(e,t)=>I(gd,{value:t.activeDescendant,children:I(Uv.Provider,{value:t.listbox,children:I(e.root,{})})}),ty={root:`fui-Listbox`},ny=P({root:{De3pzq:`fxugw4r`,B7ck84d:`f1ewtqcl`,mc9l5x:`f22iagw`,Beiy3e4:`f1vx9l62`,Bf4jedk:`f3hsy1e`,Bmxbyg5:`f5zp4f`,Bw0xxkn:0,oeaueh:0,Bpd4iqm:0,Befb4lg:`f1iepc6i`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f1t35pdg`,Belr9w4:`fiut8dr`}},{d:[`.fxugw4r{background-color:var(--colorNeutralBackground1);}`,`.f1ewtqcl{box-sizing:border-box;}`,`.f22iagw{display:flex;}`,`.f1vx9l62{flex-direction:column;}`,`.f3hsy1e{min-width:160px;}`,`.f5zp4f{overflow-y:auto;}`,[`.f1iepc6i{outline:1px solid var(--colorTransparentStroke);}`,{p:-1}],[`.f1t35pdg{padding:var(--spacingHorizontalXS);}`,{p:-1}],`.fiut8dr{row-gap:var(--spacingHorizontalXXS);}`]}),ry=e=>{"use no memo";let t=ny();return e.root.className=A(ty.root,t.root,e.root.className),e},iy=M.forwardRef((e,t)=>{let n=$v(e,t),r=qv(n);return ry(n),Qi(`useListboxStyles_unstable`)(n),ey(n,r)});iy.displayName=`Listbox`;function ay(e,t){if(e!==void 0)return e;let n=``,r=!1;return M.Children.forEach(t,e=>{typeof e==`string`?n+=e:r=!0}),r&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),n}var oy=(e,t)=>{"use no memo";let n=sy(e,t),r=M.createElement(vf,null);if(n.multiselect&&(r=n.selected?M.createElement(np,null):``),n.checkIcon){var i;(i=n.checkIcon).children??(i.children=r)}return n},sy=(e,t)=>{let{children:n,disabled:r,text:i,value:a}=e,o=M.useRef(null),s=ay(i,n),c=a??s,l=ba(`fluent-option`,e.id),u=M.useMemo(()=>({id:l,disabled:r,text:s,value:c}),[l,r,s,c]),{controller:d}=_d(),f=Wv(e=>e.multiselect),p=Wv(e=>e.registerOption),m=Wv(e=>{let t=e.selectedOptions;return c!==void 0&&t.find(e=>e===c)!==void 0}),h=Wv(e=>e.selectOption),g=Wv(e=>e.onOptionClick),_=t=>{var n;if(r){t.preventDefault();return}d.focus(l),h(t,u),g(t),(n=e.onClick)==null||n.call(e,t)};M.useEffect(()=>{if(l&&o.current)return p(u,o.current)},[l,u,p]);let v=f?{role:`menuitemcheckbox`,"aria-checked":m}:{role:`option`,"aria-selected":m};return{components:{root:`div`,checkIcon:`span`},root:Jr(Ai(`div`,{ref:xa(t,o),"aria-disabled":r?`true`:void 0,id:l,...v,...e,onClick:_}),{elementType:`div`}),checkIcon:Yr(e.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":`true`},elementType:`span`}),disabled:r,multiselect:f,selected:m,focusVisible:!1,active:!1}},cy=e=>oo(e.root,{children:[e.checkIcon&&I(e.checkIcon,{}),e.root.children]}),ly={root:`fui-Option`,checkIcon:`fui-Option__checkIcon`},uy=P({root:{Bt984gj:`f122n59`,Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`ft85np5`,sj55zd:`f19n0e5`,i8kkvl:`f1ufnopg`,Bceei9c:`f1k6fduh`,mc9l5x:`f22iagw`,Bahqtrf:`fk6fouc`,Be2twd7:`fkhj508`,Bg96gwp:`f1i3iumi`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`fm5eomj`,qhf8xq:`f10pi13n`},interactive:{Jwef8y:`f1knas48`,Bi91k9c:`feu1g3u`,zqbkvg:`fo79ri9`,h82x05:[`f1osiabc`,`f1e8le25`],cqj998:`f1yusjty`,j3hlsh:[`f1e8le25`,`f1osiabc`],ecr2s2:`fb40n2d`,lj723h:`f1g4hkjv`,Btxx2vb:`f1lnr2zp`,sltcwy:[`f1ogfk9z`,`f1g7j8ec`],dnwvvm:`fiuf46r`,Blyvkvs:[`f1g7j8ec`,`f1ogfk9z`]},active:{Bowz1zl:`f11vrvdw`,oxogb1:`f17hxjb7`,Ix2sn8:`f1dha69c`,q7v32p:`f1lm7500`,B7cbj04:0,Bewtojm:0,b50fsz:0,B1wzb3v:0,Bqwk70n:0,B37u8z8:0,avt0cx:0,f0sref:0,B9fkznv:0,Be3o27t:0,Bertapg:0,B53xpsf:0,Bsv72rj:0,B39dzdd:0,Btq9bd3:0,Bqfxd14:0,atup0s:`fo7xqb`,Fffuxt:0,Bttcd12:0,Beitzug:0,Bqougee:0,B86i8pi:`f1kurthe`,Bhijsxg:`fwq15dy`,kktds4:`f1pb3wry`,Bmau3bo:[`ftjv2f4`,`f1flhb1f`],npektv:[`f1flhb1f`,`ftjv2f4`]},disabled:{sj55zd:`f1s2aq7o`,Bceei9c:`f158kwzp`,B7iucu3:`f1cyfu5x`},selected:{},checkIcon:{Bnnss6s:`fi64zpg`,Be2twd7:`fod5ikn`,Frg6f3:[`f18b9hdq`,`fn6qj8t`],t21cq0:[`f1xk557c`,`f1h9en5y`],Bcdw1i0:`fd7fpy0`,Bo70h7d:`fvc9v3g`},selectedCheck:{Bcdw1i0:`f1022m68`},multiselectCheck:{Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:`f1l3cf7o`,Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`fq9zq91`,B7ck84d:`f1ewtqcl`,mc9l5x:`f22iagw`,Bt984gj:`f122n59`,Brf1p80:`f4d9j23`,Bkfmm31:`f1w9h62z`,Be2twd7:`f1ugzwwg`,Bqenvij:`fd461yt`,a9b677:`fjw5fx7`,Bcdw1i0:`f1022m68`},selectedMultiselectCheck:{De3pzq:`ftywsgz`,sj55zd:`fqpbvvt`,g2u3we:`f3xi7mh`,h3c5rm:[`ftovhe4`,`f1wczvin`],B9xav0g:`f68vbr6`,zhjwy3:[`f1wczvin`,`ftovhe4`]},checkDisabled:{sj55zd:`f1s2aq7o`,B7iucu3:`f1cyfu5x`},multiselectCheckDisabled:{g2u3we:`f1r1t4y1`,h3c5rm:[`fmj8ijw`,`figx54m`],B9xav0g:`f360ss8`,zhjwy3:[`figx54m`,`fmj8ijw`]}},{d:[`.f122n59{align-items:center;}`,[`.ft85np5{border-radius:var(--borderRadiusMedium);}`,{p:-1}],`.f19n0e5{color:var(--colorNeutralForeground1);}`,`.f1ufnopg{column-gap:var(--spacingHorizontalXS);}`,`.f1k6fduh{cursor:pointer;}`,`.f22iagw{display:flex;}`,`.fk6fouc{font-family:var(--fontFamilyBase);}`,`.fkhj508{font-size:var(--fontSizeBase300);}`,`.f1i3iumi{line-height:var(--lineHeightBase300);}`,[`.fm5eomj{padding:var(--spacingVerticalSNudge) var(--spacingHorizontalS);}`,{p:-1}],`.f10pi13n{position:relative;}`,`.f11vrvdw[data-activedescendant-focusvisible]::after{content:"";}`,`.f17hxjb7[data-activedescendant-focusvisible]::after{position:absolute;}`,`.f1dha69c[data-activedescendant-focusvisible]::after{pointer-events:none;}`,`.f1lm7500[data-activedescendant-focusvisible]::after{z-index:1;}`,[`.fo7xqb[data-activedescendant-focusvisible]::after{border:2px solid var(--colorStrokeFocus2);}`,{p:-2}],[`.f1kurthe[data-activedescendant-focusvisible]::after{border-radius:var(--borderRadiusMedium);}`,{p:-1}],`.fwq15dy[data-activedescendant-focusvisible]::after{top:-2px;}`,`.f1pb3wry[data-activedescendant-focusvisible]::after{bottom:-2px;}`,`.ftjv2f4[data-activedescendant-focusvisible]::after{left:-2px;}`,`.f1flhb1f[data-activedescendant-focusvisible]::after{right:-2px;}`,`.f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}`,`.f158kwzp{cursor:default;}`,`.fi64zpg{flex-shrink:0;}`,`.fod5ikn{font-size:var(--fontSizeBase400);}`,`.f18b9hdq{margin-left:calc(var(--spacingHorizontalXXS) * -1);}`,`.fn6qj8t{margin-right:calc(var(--spacingHorizontalXXS) * -1);}`,`.f1xk557c{margin-right:var(--spacingHorizontalXXS);}`,`.f1h9en5y{margin-left:var(--spacingHorizontalXXS);}`,`.fd7fpy0{visibility:hidden;}`,`.fvc9v3g svg{display:block;}`,`.f1022m68{visibility:visible;}`,[`.f1l3cf7o{border:var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);}`,{p:-2}],[`.fq9zq91{border-radius:var(--borderRadiusSmall);}`,{p:-1}],`.f1ewtqcl{box-sizing:border-box;}`,`.f4d9j23{justify-content:center;}`,`.f1w9h62z{fill:currentColor;}`,`.f1ugzwwg{font-size:12px;}`,`.fd461yt{height:16px;}`,`.fjw5fx7{width:16px;}`,`.ftywsgz{background-color:var(--colorCompoundBrandBackground);}`,`.fqpbvvt{color:var(--colorNeutralForegroundInverted);}`,`.f3xi7mh{border-top-color:var(--colorCompoundBrandBackground);}`,`.ftovhe4{border-right-color:var(--colorCompoundBrandBackground);}`,`.f1wczvin{border-left-color:var(--colorCompoundBrandBackground);}`,`.f68vbr6{border-bottom-color:var(--colorCompoundBrandBackground);}`,`.f1r1t4y1{border-top-color:var(--colorNeutralForegroundDisabled);}`,`.fmj8ijw{border-right-color:var(--colorNeutralForegroundDisabled);}`,`.figx54m{border-left-color:var(--colorNeutralForegroundDisabled);}`,`.f360ss8{border-bottom-color:var(--colorNeutralForegroundDisabled);}`],h:[`.f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}`,`.feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}`,`.fo79ri9:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}`,`.f1osiabc:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}`,`.f1e8le25:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}`,`.f1yusjty:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}`],a:[`.fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}`,`.f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}`,`.f1lnr2zp:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}`,`.f1ogfk9z:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}`,`.f1g7j8ec:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}`,`.fiuf46r:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}`],m:[[`@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}`,{m:`(forced-colors: active)`}]]}),dy=e=>{"use no memo";let{disabled:t,multiselect:n,selected:r}=e,i=uy();return e.root.className=A(ly.root,i.root,!t&&i.interactive,i.active,t&&i.disabled,r&&i.selected,e.root.className),e.checkIcon&&(e.checkIcon.className=A(ly.checkIcon,i.checkIcon,n&&i.multiselectCheck,r&&i.selectedCheck,r&&n&&i.selectedMultiselectCheck,t&&i.checkDisabled,t&&n&&i.multiselectCheckDisabled,e.checkIcon.className)),e},fy=M.forwardRef((e,t)=>{let n=oy(e,t);return dy(n),Qi(`useOptionStyles_unstable`)(n),cy(n)});fy.displayName=`Option`;var py=e=>{"use no memo";let{appearance:t=`outline`,disableAutoFocus:n,children:r,clearable:i=!1,editable:a=!1,inlinePopup:o=!1,mountNode:s=void 0,multiselect:c,onOpenChange:l,size:u=`medium`,activeDescendantController:d,freeform:f=!1,disabled:p=!1,onActiveOptionChange:m=null}=e,h=Yv(),{getOptionsMatchingValue:g}=h,{getOptionById:_}=h,v=M.useCallback(()=>{let e=d.active();return e?_(e):void 0},[d,_]),y=v(),b=M.useCallback(e=>{let t;typeof e==`function`&&(t=e(v())),t?d.focus(t.id):d.blur()},[d,v]),[x,S]=M.useState(!1),[C,w]=M.useState(!1),T=M.useRef(!1),E=ga(),[D,O]=sa({state:e.value,initialState:void 0}),{selectedOptions:ee,selectOption:te,clearSelection:ne}=Xv(e),re=M.useCallback((e,t)=>{__.unstable_batchedUpdates(()=>{O(void 0),te(e,t)})},[O,te]),ie=M.useMemo(()=>{if(D!==void 0)return D;if(E&&e.defaultValue!==void 0)return e.defaultValue;let t=g(e=>ee.includes(e)).map(e=>e.text);return c?a?``:t.join(`, `):t[0]},[D,a,g,c,ee]),[k,ae]=sa({state:e.open,defaultState:e.defaultOpen,initialState:!1}),oe=M.useCallback((e,t)=>{p||(l?.(e,{open:t}),__.unstable_batchedUpdates(()=>{!t&&!f&&O(void 0),ae(t)}))},[l,ae,O,f,p]);M.useEffect(()=>{if(k){if(!c&&ee.length>0){let e=g(e=>e===ee[0]).pop();e?.id&&d.focus(e.id)}}else d.blur()},[k,d]),M.useEffect(()=>{k&&!n&&!d.active()&&d.first()},[k,r,n,d,_]);let se=F(e=>{let t=e.detail.previousId?h.getOptionById(e.detail.previousId):null,n=h.getOptionById(e.detail.id);m?.(e,{event:e,type:`change`,previousOption:t,nextOption:n})});return{...h,freeform:f,disabled:p,selectOption:re,clearSelection:ne,selectedOptions:ee,activeOption:y,appearance:t,clearable:i,focusVisible:x,ignoreNextBlur:T,inlinePopup:o,mountNode:s,open:k,hasFocus:C,setActiveOption:b,setFocusVisible:S,setHasFocus:w,setOpen:oe,setValue:O,size:u,value:ie,multiselect:c,onOptionClick:F(e=>{c||oe(e,!1)}),onActiveDescendantChange:se}};function my(e){let{positioning:t}=e,{targetRef:n,containerRef:r}=c_({position:`below`,align:`start`,offset:{crossAxis:0,mainAxis:2},fallbackPositions:[`above`,`after`,`after-top`,`before`,`before-top`],matchTargetSize:`width`,autoSize:!0,...Vg(t)});return[r,n]}function hy(e,t,n){let{state:{multiselect:r},triggerRef:i,defaultProps:a}=n,o=ba(`fluent-listbox`,Qr(e)?e.id:void 0),s=Yr(e,{renderByDefault:!0,elementType:iy,defaultProps:{id:o,multiselect:r,tabIndex:void 0,...a}}),c=sv({id:o},{supportsLabelFor:!0});s&&!s[`aria-label`]&&!s[`aria-labelledby`]&&c[`aria-labelledby`]&&(s[`aria-labelledby`]=c[`aria-labelledby`]);let l=F(Pa(e=>{e.preventDefault()},s?.onMouseDown)),u=F(Pa(e=>{var t;e.preventDefault(),(t=i.current)==null||t.focus()},s?.onClick)),d=xa(s?.ref,t);return s&&(s.ref=d,s.onMouseDown=l,s.onClick=u),s}function gy(e,t,n){let{state:{open:r,setOpen:i,setHasFocus:a},defaultProps:o,elementType:s,activeDescendantController:c}=n,l=Jr(e,{defaultProps:{type:`text`,"aria-expanded":r,role:`combobox`,...typeof o==`object`&&o},elementType:s});return l.ref=xa(M.useRef(null),l.ref,t),l.onBlur=Pa(e=>{i(e,!1),a(!1)},l.onBlur),l.onFocus=Pa(e=>{e.target===e.currentTarget&&a(!0)},l.onFocus),l.onClick=Pa(e=>{i(e,!r)},l.onClick),l.onKeyDown=Pa(_y({activeDescendantController:c,...n.state}),l.onKeyDown),l}function _y(e){let{activeDescendantController:t,getOptionById:n,setOpen:r,selectOption:i,multiselect:a,open:o}=e,s=M.useCallback(()=>{let e=t.active();return e?n(e):void 0},[t,n]),c=()=>{t.first()},l=()=>{t.last()},u=e=>{e?t.next():t.first()},d=e=>{e?t.prev():t.first()},f=()=>{for(let e=0;e<10;e++)t.prev()},p=()=>{for(let e=0;e<10;e++)t.next()},m=fl();return F(e=>{let t=Jv(e,{open:o,multiselect:a}),n=s();switch(t){case`First`:case`Last`:case`Next`:case`Previous`:case`PageDown`:case`PageUp`:case`Open`:case`Close`:case`CloseSelect`:case`Select`:e.preventDefault();break}switch(m(!0),t){case`First`:c();break;case`Last`:l();break;case`Next`:u(n);break;case`Previous`:d(n);break;case`PageDown`:p();break;case`PageUp`:f();break;case`Open`:r(e,!0);break;case`Close`:e.stopPropagation(),r(e,!1);break;case`CloseSelect`:!a&&!n?.disabled&&r(e,!1);case`Select`:n&&i(e,n);break;case`Tab`:!a&&n&&i(e,n);break}})}function vy(e,t,n){"use no memo";let{state:{open:r,value:i,selectOption:a,setValue:o,multiselect:s,selectedOptions:c,clearSelection:l,getOptionById:u,setOpen:d},freeform:f,defaultProps:p,activeDescendantController:m}=n,h=e=>{if(!r&&!f){let t=m.active(),n=t?u(t):null;i&&n&&i.trim().toLowerCase()===n?.text.toLowerCase()&&a(e,n),o(void 0)}},g=e=>{let t=e?.trim().toLowerCase();if(!t||t.length===0){m.blur();return}let n=e=>e.toLowerCase().indexOf(t)===0,r=m.find(e=>{let t=u(e);return!!t&&n(t.text)});if(!r){m.blur();return}return u(r)},_=e=>{let t=e.target.value;o(t);let n=g(t);!s&&c.length===1&&(t.length<1||!n)&&l(e)},v=gy(e,t,{state:n.state,defaultProps:p,elementType:`input`,activeDescendantController:m});v.onChange=Pa(v.onChange,_),v.onBlur=Pa(v.onBlur,h);let[y,b]=M.useState(!1),x=M.useRef(!1),S=v.onKeyDown;return v.onKeyDown=F(t=>{!r&&Jv(t)===`Type`&&d(t,!0),t.key===`ArrowLeft`||t.key===`ArrowRight`?b(!0):b(!1);let n=Jv(t,{open:r,multiselect:s});if(n===`Type`?x.current=!0:(n===`Open`&&t.key!==` `||n===`Next`||n===`Previous`||n===`First`||n===`Last`||n===`PageUp`||n===`PageDown`)&&(x.current=!1),(x.current||!r)&&t.key===` `){var i;e==null||(i=e.onKeyDown)==null||i.call(e,t);return}S?.(t)}),y&&(v[`aria-activedescendant`]=void 0),v}function yy(e,t,n){"use no memo";let{state:{open:r,setOpen:i,getOptionById:a},defaultProps:o,activeDescendantController:s}=n,c=M.useRef(``),[l,u]=Aa(),d=(e,t={startFromNext:!1})=>{let{startFromNext:n}=t,r=s.active();return s.find(t=>{let n=a(t);return!!n&&e(n.text)},{startFrom:n?s.next({passive:!0}):r})||s.find(t=>{let n=a(t);return!!n&&e(n.text)})},f=()=>{d(e=>e.toLocaleLowerCase().indexOf(c.current)===0,{startFromNext:c.current.length===1})||by(c.current)&&d(e=>e.toLocaleLowerCase().indexOf(c.current[0])===0,{startFromNext:!0})||s.blur()},p=e=>{u(),Jv(e)===`Type`&&(c.current+=e.key.toLowerCase(),l(()=>{c.current=``},500),r&&f(),!r&&i(e,!0))},m=gy(e,t,{state:n.state,defaultProps:o,elementType:`button`,activeDescendantController:s});return m.onKeyDown=Pa(p,m.onKeyDown),m}function by(e){for(let t=1;t<e.length;t++)if(e[t]!==e[t-1])return!1;return!0}var xy=(e,t)=>{"use no memo";e=sv(e,{supportsLabelFor:!0});let{listboxRef:n,activeParentRef:r,controller:i}=Od({matchOption:Zv}),a=py({...e,activeDescendantController:i,freeform:!1}),{appearance:o,size:s,freeform:c,...l}=a,{clearable:u,clearSelection:d,disabled:f,hasFocus:p,multiselect:m,open:h,selectedOptions:g,setOpen:_}=l,{primary:v,root:y}=ki({props:e,primarySlotTagName:`button`,excludedPropNames:[`children`]}),[b,x]=my(e),S=M.useRef(null),C=hy(e.listbox,xa(b,n),{state:a,triggerRef:S,defaultProps:{children:e.children}}),{targetDocument:w}=Gi();Ca({element:w,callback:e=>_(e,!1),refs:[S,b,x],disabled:!h});let T=yy(e.button??{},xa(S,r,t),{state:a,defaultProps:{type:`button`,tabIndex:v.disabled?void 0:0,children:l.value||e.placeholder,"aria-controls":h?C?.id:void 0,...v},activeDescendantController:i}),E=Jr(e.root,{defaultProps:{"aria-owns":!e.inlinePopup&&h?C?.id:void 0,children:e.children,...y},elementType:`div`});E.ref=xa(E.ref,x);let D=g.length>0&&!f&&u&&!m,O={components:{root:`div`,button:`button`,clearButton:`button`,expandIcon:`span`,listbox:iy},root:E,button:T,listbox:h||p?C:void 0,clearButton:Yr(e.clearButton,{defaultProps:{"aria-label":`Clear selection`,tabIndex:D?0:void 0,type:`button`},elementType:`button`,renderByDefault:!0}),expandIcon:Yr(e.expandIcon,{renderByDefault:!0,elementType:`span`}),placeholderVisible:!l.value&&!!e.placeholder,showClearButton:D,activeDescendantController:i,...l},ee=F(Pa(O.clearButton?.onClick,e=>{var t;d(e),(t=S.current)==null||t.focus()}));return O.clearButton&&(O.clearButton.onClick=ee),m&&(O.clearButton=void 0),O},Sy=(e,t)=>{"use no memo";let{appearance:n=`outline`,size:r=`medium`,...i}=e,a=xy(i,t);if(a.clearButton){var o;(o=a.clearButton).children??(o.children=M.createElement(jf,null))}if(a.expandIcon){var s;(s=a.expandIcon).children??(s.children=M.createElement(bf,null))}return{...a,appearance:n,size:r}},Cy=(e,t)=>I(e.root,{children:I(gd,{value:t.activeDescendant,children:I(Uv.Provider,{value:t.listbox,children:oo(Vv.Provider,{value:t.combobox,children:[oo(e.button,{children:[e.button.children,e.expandIcon&&I(e.expandIcon,{})]}),e.clearButton&&I(e.clearButton,{}),e.listbox&&(e.inlinePopup?I(e.listbox,{}):I(y_,{mountNode:e.mountNode,children:I(e.listbox,{})}))]})})})}),wy={root:`fui-Dropdown`,button:`fui-Dropdown__button`,clearButton:`fui-Dropdown__clearButton`,expandIcon:`fui-Dropdown__expandIcon`,listbox:`fui-Dropdown__listbox`},Ty=P({root:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`ft85np5`,B7ck84d:`f1ewtqcl`,mc9l5x:`ftuwxu6`,Bf4jedk:`f1exfvgq`,qhf8xq:`f10pi13n`,ha4doy:`fmrv4ls`,Bbr2w1p:`f14a1fxs`,Bduesf4:`f3e99gv`,Bpq79vn:`fhljsf7`,li1rpt:`f1gw3sf2`,Bsft5z2:`f13zj6fq`,E3zdtr:`f1mdlcz9`,Eqx8gd:[`f1a7op3`,`f1cjjd47`],By385i5:`f1gboi2j`,B1piin3:[`f1cjjd47`,`f1a7op3`],Dlnsje:`ffyw7fx`,d9w3h3:[`f1kp91vd`,`f1ibwz09`],B3778ie:[`f1ibwz09`,`f1kp91vd`],B1q35kw:0,Bw17bha:0,Bcgy8vk:0,Bjuhk93:`f1mnjydx`,Gjdm7m:`f13evtba`,b1kco5:`f1yk9hq`,Ba2ppi3:`fhwpy7i`,F2fol1:`f14ee0xe`,lck23g:`f1xhbsuh`,wi16st:`fsrmcvb`,ywj3b2:`f1t3k7v9`,umuwi5:`fjw5xc1`,Blcqepd:`f1xdyd5c`,nplu4u:`fatpbeo`,Bioka5o:`fb7uyps`,Bnupc0a:`fx04xgm`,bing71:`f1c7in40`,Bercvud:`f1ibeo51`,Br277j9:`f18qfb8s`,Btis473:`f1m082s7`},listbox:{B7ck84d:`f1ewtqcl`,E5pizo:`f1hg901r`,Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`ft85np5`,Bxyxcbc:`fmmk62d`},listboxCollapsed:{mc9l5x:`fjseox`},inlineListbox:{Bj3rh1h:`f19g0ac`},button:{Bt984gj:`f122n59`,De3pzq:`f1c21dwh`,Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:`f3bhgqh`,B7ck84d:`f1ewtqcl`,sj55zd:`f19n0e5`,i8kkvl:`f14mj54c`,Bceei9c:`f1k6fduh`,mc9l5x:`f13qh94s`,Bahqtrf:`fk6fouc`,Budl1dq:`f12nh0o2`,Brf1p80:`f1869bpl`,fsow6f:[`f1o700av`,`fes3tcz`],a9b677:`fly5x3f`,Brovlpu:`ftqa4ok`},placeholder:{sj55zd:`fxc4j92`},small:{Bahqtrf:`fk6fouc`,Be2twd7:`fy9rknc`,Bhrd7zp:`figsok6`,Bg96gwp:`fwrc4pm`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:[`fye6m5k`,`f3cq2dl`]},medium:{Bahqtrf:`fk6fouc`,Be2twd7:`fkhj508`,Bhrd7zp:`figsok6`,Bg96gwp:`f1i3iumi`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:[`f14ev680`,`f58uxzw`]},large:{i8kkvl:`f1rjii52`,Bahqtrf:`fk6fouc`,Be2twd7:`fod5ikn`,Bhrd7zp:`figsok6`,Bg96gwp:`faaz57k`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:[`f139mn7i`,`f1v3q0m`]},outline:{De3pzq:`fxugw4r`,Bgfg5da:0,B9xav0g:`f1c1zstj`,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:`fhz96rm`},outlineInteractive:{Bgoe8wy:`fvcxoqz`,Bwzppfd:[`f1ub3y4t`,`f1m52nbi`],oetu4i:`f1l4zc64`,gg5e9n:[`f1m52nbi`,`f1ub3y4t`],B6oc9vd:`fvs00aa`,ak43y8:[`f1assf6x`,`f4ruux4`],wmxk5l:`f1z0osm6`,B50zh58:[`f4ruux4`,`f1assf6x`],Bvq3b66:`f1b473iu`,Brahy3i:[`f381qr8`,`ft4skwv`],zoxjo1:`f1qzcrsd`,an54nd:[`ft4skwv`,`f381qr8`]},underline:{De3pzq:`f1c21dwh`,B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:`f9ez7ne`,Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`fokr779`},"filled-lighter":{De3pzq:`fxugw4r`,Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:`fs2rfia`},"filled-darker":{De3pzq:`f16xq7d1`,Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:`fs2rfia`},invalid:{tvckwq:`fs4k3qj`,gk2u95:[`fcee079`,`fmyw78r`],hhx65j:`f1fgmyf4`,Bxowmz0:[`fmyw78r`,`fcee079`]},invalidUnderline:{hhx65j:`f1fgmyf4`},disabled:{Bceei9c:`fdrzuqr`,De3pzq:`f1c21dwh`,g2u3we:`f1jj8ep1`,h3c5rm:[`f15xbau`,`fy0fskl`],B9xav0g:`f4ikngz`,zhjwy3:[`fy0fskl`,`f15xbau`],Bcq6wej:`f9dbb4x`,Jcjdmf:[`f3qs60o`,`f5u9ap2`],sc4o1m:`fwd1oij`,Bosien3:[`f5u9ap2`,`f3qs60o`]},disabledText:{sj55zd:`f1s2aq7o`,Bceei9c:`fdrzuqr`},hidden:{mc9l5x:`fjseox`}},{d:[[`.ft85np5{border-radius:var(--borderRadiusMedium);}`,{p:-1}],`.f1ewtqcl{box-sizing:border-box;}`,`.ftuwxu6{display:inline-flex;}`,`.f1exfvgq{min-width:250px;}`,`.f10pi13n{position:relative;}`,`.fmrv4ls{vertical-align:middle;}`,`.f1gw3sf2::after{box-sizing:border-box;}`,`.f13zj6fq::after{content:"";}`,`.f1mdlcz9::after{position:absolute;}`,`.f1a7op3::after{left:-1px;}`,`.f1cjjd47::after{right:-1px;}`,`.f1gboi2j::after{bottom:-1px;}`,`.ffyw7fx::after{height:max(var(--strokeWidthThick), var(--borderRadiusMedium));}`,`.f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}`,`.f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}`,[`.f1mnjydx::after{border-bottom:var(--strokeWidthThick) solid var(--colorCompoundBrandStroke);}`,{p:-1}],`.f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}`,`.f1yk9hq::after{transform:scaleX(0);}`,`.fhwpy7i::after{transition-property:transform;}`,`.f14ee0xe::after{transition-duration:var(--durationUltraFast);}`,`.f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}`,`.f1hg901r{box-shadow:var(--shadow16);}`,[`.ft85np5{border-radius:var(--borderRadiusMedium);}`,{p:-1}],`.fmmk62d{max-height:80vh;}`,`.fjseox{display:none;}`,`.f19g0ac{z-index:1;}`,`.f122n59{align-items:center;}`,`.f1c21dwh{background-color:var(--colorTransparentBackground);}`,[`.f3bhgqh{border:none;}`,{p:-2}],`.f19n0e5{color:var(--colorNeutralForeground1);}`,`.f14mj54c{column-gap:var(--spacingHorizontalXXS);}`,`.f1k6fduh{cursor:pointer;}`,`.f13qh94s{display:grid;}`,`.fk6fouc{font-family:var(--fontFamilyBase);}`,`.f12nh0o2{grid-template-columns:[content] 1fr [icon] auto [end];}`,`.f1869bpl{justify-content:space-between;}`,`.f1o700av{text-align:left;}`,`.fes3tcz{text-align:right;}`,`.fly5x3f{width:100%;}`,`.fxc4j92{color:var(--colorNeutralForeground4);}`,`.fy9rknc{font-size:var(--fontSizeBase200);}`,`.figsok6{font-weight:var(--fontWeightRegular);}`,`.fwrc4pm{line-height:var(--lineHeightBase200);}`,[`.fye6m5k{padding:3px var(--spacingHorizontalSNudge) 3px calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}`,{p:-1}],[`.f3cq2dl{padding:3px calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS)) 3px var(--spacingHorizontalSNudge);}`,{p:-1}],`.fkhj508{font-size:var(--fontSizeBase300);}`,`.f1i3iumi{line-height:var(--lineHeightBase300);}`,[`.f14ev680{padding:5px var(--spacingHorizontalMNudge) 5px calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}`,{p:-1}],[`.f58uxzw{padding:5px calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS)) 5px var(--spacingHorizontalMNudge);}`,{p:-1}],`.f1rjii52{column-gap:var(--spacingHorizontalSNudge);}`,`.fod5ikn{font-size:var(--fontSizeBase400);}`,`.faaz57k{line-height:var(--lineHeightBase400);}`,[`.f139mn7i{padding:7px var(--spacingHorizontalM) 7px calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}`,{p:-1}],[`.f1v3q0m{padding:7px calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge)) 7px var(--spacingHorizontalM);}`,{p:-1}],`.fxugw4r{background-color:var(--colorNeutralBackground1);}`,[`.fhz96rm{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);}`,{p:-2}],`.f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}`,[`.f9ez7ne{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);}`,{p:-1}],[`.fokr779{border-radius:0;}`,{p:-1}],[`.fs2rfia{border:var(--strokeWidthThin) solid transparent;}`,{p:-2}],`.f16xq7d1{background-color:var(--colorNeutralBackground3);}`,[`.fs2rfia{border:var(--strokeWidthThin) solid transparent;}`,{p:-2}],`.fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}`,`.fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}`,`.fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}`,`.f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}`,`.fdrzuqr{cursor:not-allowed;}`,`.f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}`,`.f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}`,`.fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}`,`.f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}`,`.f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}`],w:[`.f14a1fxs:focus-within{outline-width:2px;}`,`.f3e99gv:focus-within{outline-style:solid;}`,`.fhljsf7:focus-within{outline-color:transparent;}`,`.fjw5xc1:focus-within::after{transform:scaleX(1);}`,`.f1xdyd5c:focus-within::after{transition-property:transform;}`,`.fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}`,`.fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}`,`.f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}`,`.f1b473iu:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}`,`.f381qr8:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}`,`.ft4skwv:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}`,`.f1qzcrsd:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}`],m:[[`@media screen and (prefers-reduced-motion: reduce){.fsrmcvb::after{transition-duration:0.01ms;}}`,{m:`screen and (prefers-reduced-motion: reduce)`}],[`@media screen and (prefers-reduced-motion: reduce){.f1t3k7v9::after{transition-delay:0.01ms;}}`,{m:`screen and (prefers-reduced-motion: reduce)`}],[`@media screen and (prefers-reduced-motion: reduce){.fx04xgm:focus-within::after{transition-duration:0.01ms;}}`,{m:`screen and (prefers-reduced-motion: reduce)`}],[`@media screen and (prefers-reduced-motion: reduce){.f1c7in40:focus-within::after{transition-delay:0.01ms;}}`,{m:`screen and (prefers-reduced-motion: reduce)`}],[`@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}`,{m:`(forced-colors: active)`}]],t:[`@supports selector(:has(*)){.f18qfb8s:has(.fui-Dropdown__clearButton:focus)::after{border-bottom-color:initial;}}`,`@supports selector(:has(*)){.f1m082s7:has(.fui-Dropdown__clearButton:focus)::after{transform:scaleX(0);}}`],f:[`.ftqa4ok:focus{outline-style:none;}`],h:[`.fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}`,`.f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}`,`.f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}`,`.f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}`],a:[`.fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}`,`.f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}`,`.f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}`,`.f1z0osm6:active{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}`]}),Ey=P({icon:{B7ck84d:`f1ewtqcl`,sj55zd:`fxkbij4`,mc9l5x:`ftgm304`,Be2twd7:`f1pp30po`,Br312pm:`f12w6cgp`,Bw0ie65:`f8bv1bt`,Bo70h7d:`fvc9v3g`},small:{Be2twd7:`f4ybsrx`,Frg6f3:[`f1h9en5y`,`f1xk557c`]},medium:{Be2twd7:`fe5j1ua`,Frg6f3:[`f1h9en5y`,`f1xk557c`]},large:{Be2twd7:`f1rt2boy`,Frg6f3:[`f1t5qyk5`,`f1ikr372`]},disabled:{sj55zd:`f1s2aq7o`}},{d:[`.f1ewtqcl{box-sizing:border-box;}`,`.fxkbij4{color:var(--colorNeutralStrokeAccessible);}`,`.ftgm304{display:block;}`,`.f1pp30po{font-size:var(--fontSizeBase500);}`,`.f12w6cgp{grid-column-start:icon;}`,`.f8bv1bt{grid-column-end:end;}`,`.fvc9v3g svg{display:block;}`,`.f4ybsrx{font-size:16px;}`,`.f1h9en5y{margin-left:var(--spacingHorizontalXXS);}`,`.f1xk557c{margin-right:var(--spacingHorizontalXXS);}`,`.fe5j1ua{font-size:20px;}`,`.f1rt2boy{font-size:24px;}`,`.f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}`,`.f1ikr372{margin-right:var(--spacingHorizontalSNudge);}`,`.f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}`]}),Dy=Vr(`rticfuj`,`r1vp6jef`,{r:[`.rticfuj{align-self:center;background-color:var(--colorTransparentBackground);border:none;cursor:pointer;height:fit-content;margin:0;margin-right:var(--spacingHorizontalMNudge);padding:0;position:relative;}`,`.rticfuj:focus{outline-style:none;}`,`.rticfuj:focus-visible{outline-style:none;}`,`.rticfuj[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}`,`.rticfuj[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}`,`.r1vp6jef{align-self:center;background-color:var(--colorTransparentBackground);border:none;cursor:pointer;height:fit-content;margin:0;margin-left:var(--spacingHorizontalMNudge);padding:0;position:relative;}`,`.r1vp6jef:focus{outline-style:none;}`,`.r1vp6jef:focus-visible{outline-style:none;}`,`.r1vp6jef[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}`,`.r1vp6jef[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}`],s:[`@media (forced-colors: active){.rticfuj[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}`,`@media (forced-colors: active){.r1vp6jef[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}`]}),Oy=e=>{"use no memo";let{appearance:t,open:n,placeholderVisible:r,showClearButton:i,size:a}=e,o=`${e.button[`aria-invalid`]}`==`true`,s=e.button.disabled,c=Ty(),l=Ey(),u=Dy();return e.root.className=A(wy.root,c.root,c[t],!s&&t===`outline`&&c.outlineInteractive,o&&t!==`underline`&&c.invalid,o&&t===`underline`&&c.invalidUnderline,s&&c.disabled,e.root.className),e.button.className=A(wy.button,c.button,c[a],r&&c.placeholder,s&&c.disabledText,e.button.className),e.listbox&&(e.listbox.className=A(wy.listbox,c.listbox,e.inlinePopup&&c.inlineListbox,!n&&c.listboxCollapsed,e.listbox.className)),e.expandIcon&&(e.expandIcon.className=A(wy.expandIcon,l.icon,l[a],s&&l.disabled,i&&c.hidden,e.expandIcon.className)),e.clearButton&&(e.clearButton.className=A(wy.clearButton,u,l.icon,l[a],s&&l.disabled,!i&&c.hidden,e.clearButton.className)),e},ky=M.forwardRef((e,t)=>{let n=Sy(e,t),r=Kv(n);return Oy(n),Qi(`useDropdownStyles_unstable`)(n),Cy(n,r)});ky.displayName=`Dropdown`;var Ay=e=>I(e.root,{children:e.root.children!==void 0&&I(e.wrapper,{children:e.root.children})}),jy=(e,t)=>{let{alignContent:n=`center`,appearance:r=`default`,inset:i=!1,...a}=e;return{alignContent:n,appearance:r,inset:i,...My(a,t)}},My=(e,t)=>{let{vertical:n=!1,wrapper:r,...i}=e,a=ba(`divider-`);return{vertical:n,components:{root:`div`,wrapper:`div`},root:Jr({role:`separator`,"aria-orientation":n?`vertical`:`horizontal`,"aria-labelledby":e.children?a:void 0,ref:t,...i},{elementType:`div`}),wrapper:Jr(r,{defaultProps:{id:a,children:e.children},elementType:`div`})}},Ny={root:`fui-Divider`,wrapper:`fui-Divider__wrapper`},Py=P({base:{Bt984gj:`f122n59`,B7ck84d:`f1ewtqcl`,mc9l5x:`f22iagw`,Beiy3e4:`f1063pyq`,Bh6795r:`fqerorx`,qhf8xq:`f10pi13n`,Bahqtrf:`fk6fouc`,Be2twd7:`fy9rknc`,Bhrd7zp:`figsok6`,Bg96gwp:`fwrc4pm`,fsow6f:`f17mccla`,Bcvre1j:`fyl8oag`,Br0sdwz:`f16vkdww`,Bn78ew0:`fhsnbul`,li1rpt:`f1gw3sf2`,ap17g6:`f1ly5f7u`,B771hl4:`f1s3tz6t`},childless:{susq4k:`f1kyqvp9`,Bicfajf:[`fzynn9s`,`f1z0ukd1`],jwcpgy:[`fekrn8e`,`ftdg338`],B4rk6o:`fesgyo`},start:{Bsft5z2:`f13zj6fq`},center:{Ftih45:`f1wl9k8s`,Bsft5z2:`f13zj6fq`},end:{Ftih45:`f1wl9k8s`},brand:{sj55zd:`f16muhyy`,Bq4z7u6:`fcbuu2a`,Bk5zm6e:[`f1wdw2dr`,`f1ttio3w`],Bqjgrrk:`f1582fpk`,Bm6vgfq:[`f1ttio3w`,`f1wdw2dr`],B0n5ga8:`f1ahrvm8`,s924m2:[`f1cd3wbc`,`f17hbk9y`],B1q35kw:`fvrapl0`,Gp14am:[`f17hbk9y`,`f1cd3wbc`]},default:{sj55zd:`fkfq4zb`,Bq4z7u6:`f1vccso1`,Bk5zm6e:[`f1geml7w`,`fjml6kk`],Bqjgrrk:`f1r7kh1m`,Bm6vgfq:[`fjml6kk`,`f1geml7w`],B0n5ga8:`f16j7guv`,s924m2:[`fx01ahm`,`fj1a37q`],B1q35kw:`fl8d8yv`,Gp14am:[`fj1a37q`,`fx01ahm`]},subtle:{sj55zd:`f11d4kpn`,Bq4z7u6:`f5g06un`,Bk5zm6e:[`f13sxdku`,`f1n015lb`],Bqjgrrk:`f1x6bl8t`,Bm6vgfq:[`f1n015lb`,`f13sxdku`],B0n5ga8:`fvod1wy`,s924m2:[`fwslg65`,`flk0e17`],B1q35kw:`f103fvts`,Gp14am:[`flk0e17`,`fwslg65`]},strong:{sj55zd:`f19n0e5`,Bq4z7u6:`f10tv6oz`,Bk5zm6e:[`f16xp3sf`,`f1seuxxq`],Bqjgrrk:`fwrmqbx`,Bm6vgfq:[`f1seuxxq`,`f16xp3sf`],B0n5ga8:`ft83z1f`,s924m2:[`f1g4150c`,`f192dr6e`],B1q35kw:`f1qnawh6`,Gp14am:[`f192dr6e`,`f1g4150c`]}},{d:`.f122n59{align-items:center;},.f1ewtqcl{box-sizing:border-box;},.f22iagw{display:flex;},.f1063pyq{flex-direction:row;},.fqerorx{flex-grow:1;},.f10pi13n{position:relative;},.fk6fouc{font-family:var(--fontFamilyBase);},.fy9rknc{font-size:var(--fontSizeBase200);},.figsok6{font-weight:var(--fontWeightRegular);},.fwrc4pm{line-height:var(--lineHeightBase200);},.f17mccla{text-align:center;},.fyl8oag::before{box-sizing:border-box;},.f16vkdww::before{display:flex;},.fhsnbul::before{flex-grow:1;},.f1gw3sf2::after{box-sizing:border-box;},.f1ly5f7u::after{display:flex;},.f1s3tz6t::after{flex-grow:1;},.f1kyqvp9::before{margin-bottom:0;},.fzynn9s::before{margin-right:0;},.f1z0ukd1::before{margin-left:0;},.fekrn8e::after{margin-left:0;},.ftdg338::after{margin-right:0;},.fesgyo::after{margin-top:0;},.f13zj6fq::after{content:"";},.f1wl9k8s::before{content:"";},.f16muhyy{color:var(--colorBrandForeground1);},.fcbuu2a::before{border-top-color:var(--colorBrandStroke1);},.f1wdw2dr::before{border-right-color:var(--colorBrandStroke1);},.f1ttio3w::before{border-left-color:var(--colorBrandStroke1);},.f1582fpk::before{border-bottom-color:var(--colorBrandStroke1);},.f1ahrvm8::after{border-top-color:var(--colorBrandStroke1);},.f1cd3wbc::after{border-right-color:var(--colorBrandStroke1);},.f17hbk9y::after{border-left-color:var(--colorBrandStroke1);},.fvrapl0::after{border-bottom-color:var(--colorBrandStroke1);},.fkfq4zb{color:var(--colorNeutralForeground2);},.f1vccso1::before{border-top-color:var(--colorNeutralStroke2);},.f1geml7w::before{border-right-color:var(--colorNeutralStroke2);},.fjml6kk::before{border-left-color:var(--colorNeutralStroke2);},.f1r7kh1m::before{border-bottom-color:var(--colorNeutralStroke2);},.f16j7guv::after{border-top-color:var(--colorNeutralStroke2);},.fx01ahm::after{border-right-color:var(--colorNeutralStroke2);},.fj1a37q::after{border-left-color:var(--colorNeutralStroke2);},.fl8d8yv::after{border-bottom-color:var(--colorNeutralStroke2);},.f11d4kpn{color:var(--colorNeutralForeground3);},.f5g06un::before{border-top-color:var(--colorNeutralStroke3);},.f13sxdku::before{border-right-color:var(--colorNeutralStroke3);},.f1n015lb::before{border-left-color:var(--colorNeutralStroke3);},.f1x6bl8t::before{border-bottom-color:var(--colorNeutralStroke3);},.fvod1wy::after{border-top-color:var(--colorNeutralStroke3);},.fwslg65::after{border-right-color:var(--colorNeutralStroke3);},.flk0e17::after{border-left-color:var(--colorNeutralStroke3);},.f103fvts::after{border-bottom-color:var(--colorNeutralStroke3);},.f19n0e5{color:var(--colorNeutralForeground1);},.f10tv6oz::before{border-top-color:var(--colorNeutralStroke1);},.f16xp3sf::before{border-right-color:var(--colorNeutralStroke1);},.f1seuxxq::before{border-left-color:var(--colorNeutralStroke1);},.fwrmqbx::before{border-bottom-color:var(--colorNeutralStroke1);},.ft83z1f::after{border-top-color:var(--colorNeutralStroke1);},.f1g4150c::after{border-right-color:var(--colorNeutralStroke1);},.f192dr6e::after{border-left-color:var(--colorNeutralStroke1);},.f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}`.split(`,`)}),Fy=P({base:{a9b677:`fly5x3f`,Bdkvgpv:`f163fonl`,B0qfbqy:`f51yk4v`,pbipgd:`f13rof3u`,Bm2nyyq:`f8rth92`,xrcqlc:`f6czdpx`,i5u598:`f1iyka9k`},inset:{uwmqm3:[`fjlbh76`,`f11qrl6u`],z189sj:[`f11qrl6u`,`fjlbh76`]},start:{fsow6f:[`f1o700av`,`fes3tcz`],Ftih45:`f1wl9k8s`,Bicfajf:[`f1ojjlep`,`fk1kexq`],Bxwl2t9:`f1he2m4d`,jwcpgy:[`f12w1bnb`,`f1558wlj`]},center:{fsow6f:`f17mccla`,Bicfajf:[`f1ojjlep`,`fk1kexq`],jwcpgy:[`f12w1bnb`,`f1558wlj`]},end:{fsow6f:[`fes3tcz`,`f1o700av`],Bicfajf:[`f1ojjlep`,`fk1kexq`],Bsft5z2:`f13zj6fq`,jwcpgy:[`f12w1bnb`,`f1558wlj`],Iy66sp:`f1ayce8x`}},{d:[`.fly5x3f{width:100%;}`,`.f163fonl::before{border-top-style:solid;}`,`.f51yk4v::before{border-top-width:var(--strokeWidthThin);}`,`.f13rof3u::before{min-width:8px;}`,`.f8rth92::after{border-top-style:solid;}`,`.f6czdpx::after{border-top-width:var(--strokeWidthThin);}`,`.f1iyka9k::after{min-width:8px;}`,`.fjlbh76{padding-left:12px;}`,`.f11qrl6u{padding-right:12px;}`,`.f1o700av{text-align:left;}`,`.fes3tcz{text-align:right;}`,`.f1wl9k8s::before{content:"";}`,`.f1ojjlep::before{margin-right:12px;}`,`.fk1kexq::before{margin-left:12px;}`,`.f1he2m4d::before{max-width:8px;}`,`.f12w1bnb::after{margin-left:12px;}`,`.f1558wlj::after{margin-right:12px;}`,`.f17mccla{text-align:center;}`,`.f13zj6fq::after{content:"";}`,`.f1ayce8x::after{max-width:8px;}`]}),Iy=P({base:{Beiy3e4:`f1vx9l62`,sshi5w:`f16gbxbe`,m598lv:[`f1yq6w5o`,`f1jpmc5p`],B4f6apu:[`f9sc749`,`f1x8pvcy`],zkzzav:`fhkwbjy`,Barhvk9:[`flthirb`,`ftkbnf5`],Ihftqj:[`f13hvwk3`,`f1en4csx`],Bde111x:`f19onpk6`},inset:{B6of3ja:`f1xdg43u`,jrapky:`f1jlhsmd`},withChildren:{sshi5w:`f1tjaq3g`},start:{Ftih45:`f1wl9k8s`,susq4k:`fg2pwug`,Bbdr6tz:`fkjtzyi`,B4rk6o:`f8vk40g`},center:{susq4k:`fg2pwug`,B4rk6o:`f8vk40g`},end:{susq4k:`fg2pwug`,Bsft5z2:`f13zj6fq`,B4rk6o:`f8vk40g`,gn64ia:`fqg5mu5`}},{d:[`.f1vx9l62{flex-direction:column;}`,`.f16gbxbe{min-height:20px;}`,`.f1yq6w5o::before{border-right-style:solid;}`,`.f1jpmc5p::before{border-left-style:solid;}`,`.f9sc749::before{border-right-width:var(--strokeWidthThin);}`,`.f1x8pvcy::before{border-left-width:var(--strokeWidthThin);}`,`.fhkwbjy::before{min-height:8px;}`,`.flthirb::after{border-right-style:solid;}`,`.ftkbnf5::after{border-left-style:solid;}`,`.f13hvwk3::after{border-right-width:var(--strokeWidthThin);}`,`.f1en4csx::after{border-left-width:var(--strokeWidthThin);}`,`.f19onpk6::after{min-height:8px;}`,`.f1xdg43u{margin-top:12px;}`,`.f1jlhsmd{margin-bottom:12px;}`,`.f1tjaq3g{min-height:84px;}`,`.f1wl9k8s::before{content:"";}`,`.fg2pwug::before{margin-bottom:12px;}`,`.fkjtzyi::before{max-height:8px;}`,`.f8vk40g::after{margin-top:12px;}`,`.f13zj6fq::after{content:"";}`,`.fqg5mu5::after{max-height:8px;}`]}),Ly=e=>{"use no memo";let t=Py(),n=Fy(),r=Iy(),{alignContent:i,appearance:a,inset:o,vertical:s}=e;return e.root.className=A(Ny.root,t.base,t[i],a&&t[a],!s&&n.base,!s&&o&&n.inset,!s&&n[i],s&&r.base,s&&o&&r.inset,s&&r[i],s&&e.root.children!==void 0&&r.withChildren,e.root.children===void 0&&t.childless,e.root.className),e.wrapper&&(e.wrapper.className=A(Ny.wrapper,e.wrapper.className)),e},Ry=M.forwardRef((e,t)=>{let n=jy(e,t);return Ly(n),Qi(`useDividerStyles_unstable`)(n),Ay(n)});Ry.displayName=`Divider`;var zy=(e,t)=>{e=sv(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});let n=Ji(),{size:r=`medium`,appearance:i=n.inputDefaultAppearance??`outline`,...a}=e;return{size:r,appearance:i,...By(a,t)}},By=(e,t)=>{let{onChange:n}=e,[r,i]=sa({state:e.value,defaultState:e.defaultValue,initialState:``}),a=ki({props:e,primarySlotTagName:`input`,excludedPropNames:[`onChange`,`value`,`defaultValue`]}),o={components:{root:`span`,input:`input`,contentBefore:`span`,contentAfter:`span`},input:Jr(e.input,{defaultProps:{type:`text`,ref:t,...a.primary},elementType:`input`}),contentAfter:Yr(e.contentAfter,{elementType:`span`}),contentBefore:Yr(e.contentBefore,{elementType:`span`}),root:Jr(e.root,{defaultProps:a.root,elementType:`span`})};return o.input.value=r,o.input.onChange=F(e=>{let t=e.target.value;n?.(e,{value:t}),i(t)}),o},Vy=e=>oo(e.root,{children:[e.contentBefore&&I(e.contentBefore,{}),I(e.input,{}),e.contentAfter&&I(e.contentAfter,{})]}),Hy={root:`fui-Input`,input:`fui-Input__input`,contentBefore:`fui-Input__contentBefore`,contentAfter:`fui-Input__contentAfter`};z.spacingHorizontalSNudge,z.spacingHorizontalMNudge,z.spacingHorizontalM,z.spacingHorizontalXXS,z.spacingHorizontalXXS,z.spacingHorizontalSNudge,z.spacingHorizontalS,z.spacingHorizontalM,`${z.spacingHorizontalM}${z.spacingHorizontalSNudge}`;var Uy=Vr(`r1oeeo9n`,`r9sxh5`,{r:[`.r1oeeo9n{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;vertical-align:middle;min-height:32px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}`,`.r1oeeo9n::after{box-sizing:border-box;content:"";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}`,`.r1oeeo9n:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}`,`.r1oeeo9n:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}`,`.r1oeeo9n:focus-within{outline:2px solid transparent;}`,`.r9sxh5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;vertical-align:middle;min-height:32px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}`,`.r9sxh5::after{box-sizing:border-box;content:"";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}`,`.r9sxh5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}`,`.r9sxh5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}`,`.r9sxh5:focus-within{outline:2px solid transparent;}`],s:[`@media screen and (prefers-reduced-motion: reduce){.r1oeeo9n::after{transition-duration:0.01ms;transition-delay:0.01ms;}}`,`@media screen and (prefers-reduced-motion: reduce){.r1oeeo9n:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}`,`@media screen and (prefers-reduced-motion: reduce){.r9sxh5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}`,`@media screen and (prefers-reduced-motion: reduce){.r9sxh5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}`]}),Wy=P({small:{sshi5w:`f1pha7fy`,Bahqtrf:`fk6fouc`,Be2twd7:`fy9rknc`,Bhrd7zp:`figsok6`,Bg96gwp:`fwrc4pm`},medium:{},large:{sshi5w:`f1w5jphr`,Bahqtrf:`fk6fouc`,Be2twd7:`fod5ikn`,Bhrd7zp:`figsok6`,Bg96gwp:`faaz57k`,i8kkvl:0,Belr9w4:0,rmohyg:`f1eyhf9v`},outline:{},outlineInteractive:{Bgoe8wy:`fvcxoqz`,Bwzppfd:[`f1ub3y4t`,`f1m52nbi`],oetu4i:`f1l4zc64`,gg5e9n:[`f1m52nbi`,`f1ub3y4t`],Drbcw7:`f8vnjqi`,udz0bu:[`fz1etlk`,`f1hc16gm`],Be8ivqh:`f1klwx88`,ofdepl:[`f1hc16gm`,`fz1etlk`]},underline:{De3pzq:`f1c21dwh`,Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`fokr779`,icvyot:`f1ern45e`,vrafjx:[`f1n71otn`,`f1deefiw`],wvpqe5:[`f1deefiw`,`f1n71otn`],Eqx8gd:[`f1n6gb5g`,`f15yvnhg`],B1piin3:[`f15yvnhg`,`f1n6gb5g`]},underlineInteractive:{oetu4i:`f1l4zc64`,Be8ivqh:`f1klwx88`,d9w3h3:0,B3778ie:0,B4j8arr:0,Bl18szs:0,Blrzh8d:`f2ale1x`},filled:{g2u3we:`fghlq4f`,h3c5rm:[`f1gn591s`,`fjscplz`],B9xav0g:`fb073pr`,zhjwy3:[`fjscplz`,`f1gn591s`]},filledInteractive:{q7v0qe:`ftmjh5b`,kmh5ft:[`f17blpuu`,`fsrcdbj`],nagaa4:`f1tpwn32`,B1yhkcb:[`fsrcdbj`,`f17blpuu`]},invalid:{tvckwq:`fs4k3qj`,gk2u95:[`fcee079`,`fmyw78r`],hhx65j:`f1fgmyf4`,Bxowmz0:[`fmyw78r`,`fcee079`]},"filled-darker":{De3pzq:`f16xq7d1`},"filled-lighter":{De3pzq:`fxugw4r`},"filled-darker-shadow":{De3pzq:`f16xq7d1`,E5pizo:`fyed02w`},"filled-lighter-shadow":{De3pzq:`fxugw4r`,E5pizo:`fyed02w`},disabled:{Bceei9c:`fdrzuqr`,De3pzq:`f1c21dwh`,g2u3we:`f1jj8ep1`,h3c5rm:[`f15xbau`,`fy0fskl`],B9xav0g:`f4ikngz`,zhjwy3:[`fy0fskl`,`f15xbau`],Bcq6wej:`f9dbb4x`,Jcjdmf:[`f3qs60o`,`f5u9ap2`],sc4o1m:`fwd1oij`,Bosien3:[`f5u9ap2`,`f3qs60o`],Bsft5z2:`fhr9occ`,Bduesf4:`f99w1ws`},smallWithContentBefore:{uwmqm3:[`fk8j09s`,`fdw0yi8`]},smallWithContentAfter:{z189sj:[`fdw0yi8`,`fk8j09s`]},mediumWithContentBefore:{uwmqm3:[`f1ng84yb`,`f11gcy0p`]},mediumWithContentAfter:{z189sj:[`f11gcy0p`,`f1ng84yb`]},largeWithContentBefore:{uwmqm3:[`f1uw59to`,`fw5db7e`]},largeWithContentAfter:{z189sj:[`fw5db7e`,`f1uw59to`]}},{d:[`.f1pha7fy{min-height:24px;}`,`.fk6fouc{font-family:var(--fontFamilyBase);}`,`.fy9rknc{font-size:var(--fontSizeBase200);}`,`.figsok6{font-weight:var(--fontWeightRegular);}`,`.fwrc4pm{line-height:var(--lineHeightBase200);}`,`.f1w5jphr{min-height:40px;}`,`.fod5ikn{font-size:var(--fontSizeBase400);}`,`.faaz57k{line-height:var(--lineHeightBase400);}`,[`.f1eyhf9v{gap:var(--spacingHorizontalSNudge);}`,{p:-1}],`.f1c21dwh{background-color:var(--colorTransparentBackground);}`,[`.fokr779{border-radius:0;}`,{p:-1}],`.f1ern45e{border-top-style:none;}`,`.f1n71otn{border-right-style:none;}`,`.f1deefiw{border-left-style:none;}`,`.f1n6gb5g::after{left:0;}`,`.f15yvnhg::after{right:0;}`,[`.f2ale1x::after{border-radius:0;}`,{p:-1}],`.fghlq4f{border-top-color:var(--colorTransparentStroke);}`,`.f1gn591s{border-right-color:var(--colorTransparentStroke);}`,`.fjscplz{border-left-color:var(--colorTransparentStroke);}`,`.fb073pr{border-bottom-color:var(--colorTransparentStroke);}`,`.fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}`,`.fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}`,`.fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}`,`.f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}`,`.f16xq7d1{background-color:var(--colorNeutralBackground3);}`,`.fxugw4r{background-color:var(--colorNeutralBackground1);}`,`.fyed02w{box-shadow:var(--shadow2);}`,`.fdrzuqr{cursor:not-allowed;}`,`.f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}`,`.f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}`,`.fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}`,`.f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}`,`.fhr9occ::after{content:unset;}`,`.fk8j09s{padding-left:var(--spacingHorizontalSNudge);}`,`.fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}`,`.f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}`,`.f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}`,`.f1uw59to{padding-left:var(--spacingHorizontalM);}`,`.fw5db7e{padding-right:var(--spacingHorizontalM);}`],h:[`.fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}`,`.f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}`,`.f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}`,`.f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}`,`.ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}`,`.f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}`,`.fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}`,`.f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}`],a:[`.f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}`,`.fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}`,`.f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}`,`.f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}`],m:[[`@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}`,{m:`(forced-colors: active)`}]],w:[`.f99w1ws:focus-within{outline-style:none;}`]}),Gy=Vr(`r12stul0`,null,[`.r12stul0{align-self:stretch;box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalM);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}`,`.r12stul0::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}`,`.r12stul0::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}`,`.r12stul0::placeholder{color:var(--colorNeutralForeground4);opacity:1;}`]),Ky=P({small:{uwmqm3:[`f1f5gg8d`,`f1vdfbxk`],z189sj:[`f1vdfbxk`,`f1f5gg8d`]},medium:{},large:{uwmqm3:[`fnphzt9`,`flt1dlf`],z189sj:[`flt1dlf`,`fnphzt9`]},smallWithContentBefore:{uwmqm3:[`fgiv446`,`ffczdla`]},smallWithContentAfter:{z189sj:[`ffczdla`,`fgiv446`]},mediumWithContentBefore:{uwmqm3:[`fgiv446`,`ffczdla`]},mediumWithContentAfter:{z189sj:[`ffczdla`,`fgiv446`]},largeWithContentBefore:{uwmqm3:[`fk8j09s`,`fdw0yi8`]},largeWithContentAfter:{z189sj:[`fdw0yi8`,`fk8j09s`]},disabled:{sj55zd:`f1s2aq7o`,De3pzq:`f1c21dwh`,Bceei9c:`fdrzuqr`,yvdlaj:`fahhnxm`}},{d:[`.f1f5gg8d{padding-left:var(--spacingHorizontalS);}`,`.f1vdfbxk{padding-right:var(--spacingHorizontalS);}`,`.fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}`,`.flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}`,`.fgiv446{padding-left:var(--spacingHorizontalXXS);}`,`.ffczdla{padding-right:var(--spacingHorizontalXXS);}`,`.fk8j09s{padding-left:var(--spacingHorizontalSNudge);}`,`.fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}`,`.f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}`,`.f1c21dwh{background-color:var(--colorTransparentBackground);}`,`.fdrzuqr{cursor:not-allowed;}`,`.fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}`,`.fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}`]}),qy=Vr(`r1572tok`,null,[`.r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}`,`.r1572tok>svg{font-size:20px;}`]),Jy=P({disabled:{sj55zd:`f1s2aq7o`},small:{Duoase:`f3qv9w`},medium:{},large:{Duoase:`f16u2scb`}},{d:[`.f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}`,`.f3qv9w>svg{font-size:16px;}`,`.f16u2scb>svg{font-size:24px;}`]}),Yy=e=>{"use no memo";let{size:t,appearance:n}=e,r=e.input.disabled,i=`${e.input[`aria-invalid`]}`==`true`,a=n.startsWith(`filled`),o=Wy(),s=Ky(),c=Jy();e.root.className=A(Hy.root,Uy(),o[t],e.contentBefore&&o[`${t}WithContentBefore`],e.contentAfter&&o[`${t}WithContentAfter`],o[n],!r&&n===`outline`&&o.outlineInteractive,!r&&n===`underline`&&o.underlineInteractive,!r&&a&&o.filledInteractive,a&&o.filled,!r&&i&&o.invalid,r&&o.disabled,e.root.className),e.input.className=A(Hy.input,Gy(),s[t],e.contentBefore&&s[`${t}WithContentBefore`],e.contentAfter&&s[`${t}WithContentAfter`],r&&s.disabled,e.input.className);let l=[qy(),r&&c.disabled,c[t]];return e.contentBefore&&(e.contentBefore.className=A(Hy.contentBefore,...l,e.contentBefore.className)),e.contentAfter&&(e.contentAfter.className=A(Hy.contentAfter,...l,e.contentAfter.className)),e},H=M.forwardRef((e,t)=>{let n=zy(e,t);return Yy(n),Qi(`useInputStyles_unstable`)(n),Vy(n)});H.displayName=`Input`;var Xy=e=>I(e.root,{}),Zy=(e,t)=>{let{bordered:n=!1,block:r=!1,fit:i=`default`,shadow:a=!1,shape:o=`square`,...s}=e;return{bordered:n,block:r,fit:i,shadow:a,shape:o,...Qy(s,t)}},Qy=(e,t)=>({components:{root:`img`},root:Jr(Ai(`img`,{ref:t,...e}),{elementType:`img`})}),$y={root:`fui-Image`},eb=P({base:{g2u3we:`fj3muxo`,h3c5rm:[`f1akhkt`,`f1lxtadh`],B9xav0g:`f1aperda`,zhjwy3:[`f1lxtadh`,`f1akhkt`],Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`f1fabniw`,B7ck84d:`f1ewtqcl`,mc9l5x:`f14t3ns0`},bordered:{icvyot:`fzkkow9`,vrafjx:[`fcdblym`,`fjik90z`],oivjwe:`fg706s2`,wvpqe5:[`fjik90z`,`fcdblym`],B4j52fo:`f192inf7`,Bekrc4i:[`f5tn483`,`f1ojsxk5`],Bn0qgzm:`f1vxd6vx`,ibv6hh:[`f1ojsxk5`,`f5tn483`]},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`f44lkw9`},rounded:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`ft85np5`},square:{},shadow:{E5pizo:`f1whvlc6`},center:{st4lth:`f1plgu50`,Ermj5k:`f14xojzb`},contain:{st4lth:`f1kle4es`,Ermj5k:`f14xojzb`},default:{},cover:{st4lth:`f1ps3kmd`,Ermj5k:`f14xojzb`},none:{st4lth:`f1plgu50`,Ermj5k:[`f13uwng7`,`fjmyj0p`]},fitFill:{Bqenvij:`f1l02sjl`,a9b677:`fly5x3f`},block:{a9b677:`fly5x3f`}},{d:[`.fj3muxo{border-top-color:var(--colorNeutralStroke1);}`,`.f1akhkt{border-right-color:var(--colorNeutralStroke1);}`,`.f1lxtadh{border-left-color:var(--colorNeutralStroke1);}`,`.f1aperda{border-bottom-color:var(--colorNeutralStroke1);}`,[`.f1fabniw{border-radius:var(--borderRadiusNone);}`,{p:-1}],`.f1ewtqcl{box-sizing:border-box;}`,`.f14t3ns0{display:inline-block;}`,`.fzkkow9{border-top-style:solid;}`,`.fcdblym{border-right-style:solid;}`,`.fjik90z{border-left-style:solid;}`,`.fg706s2{border-bottom-style:solid;}`,`.f192inf7{border-top-width:var(--strokeWidthThin);}`,`.f5tn483{border-right-width:var(--strokeWidthThin);}`,`.f1ojsxk5{border-left-width:var(--strokeWidthThin);}`,`.f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}`,[`.f44lkw9{border-radius:var(--borderRadiusCircular);}`,{p:-1}],[`.ft85np5{border-radius:var(--borderRadiusMedium);}`,{p:-1}],`.f1whvlc6{box-shadow:var(--shadow4);}`,`.f1plgu50{object-fit:none;}`,`.f14xojzb{object-position:center;}`,`.f1kle4es{object-fit:contain;}`,`.f1ps3kmd{object-fit:cover;}`,`.f13uwng7{object-position:left top;}`,`.fjmyj0p{object-position:right top;}`,`.f1l02sjl{height:100%;}`,`.fly5x3f{width:100%;}`]}),tb=e=>{"use no memo";let t=eb(),{height:n,width:r}=e.root,i=n!=null||r!=null,a=e.fit!==`default`&&!i;return e.root.className=A($y.root,t.base,e.block&&t.block,e.bordered&&t.bordered,e.shadow&&t.shadow,t[e.fit],a&&t.fitFill,t[e.shape],e.root.className),e},nb=M.forwardRef((e,t)=>{let n=Zy(e,t);return tb(n),Qi(`useImageStyles_unstable`)(n),Xy(n)});nb.displayName=`Image`;var rb=M.createContext(void 0).Provider,ib=M.createContext(void 0),ab={};ib.Provider;var ob=()=>M.useContext(ib)||ab,sb=e=>oo(e.root,{children:[I(e.input,{}),I(e.indicator,{}),e.label&&I(e.label,{})]}),cb=(e,t)=>{let n=lb(e,t);return{...n,components:{...n.components,label:gv},label:Yr(e.label,{defaultProps:{...n.label},elementType:gv})}},lb=(e,t)=>{let n=ob(),{name:r=n.name,checked:i=n.value===void 0?void 0:n.value===e.value,defaultChecked:a=n.defaultValue===void 0?void 0:n.defaultValue===e.value,labelPosition:o=n.layout===`horizontal-stacked`?`below`:`after`,disabled:s=n.disabled,required:c=n.required,"aria-describedby":l=n[`aria-describedby`],onChange:u}=e,d=ki({props:e,primarySlotTagName:`input`,excludedPropNames:[`checked`,`defaultChecked`,`onChange`]}),f=Jr(e.root,{defaultProps:{ref:tl(),...d.root},elementType:`span`}),p=Jr(e.input,{defaultProps:{ref:t,type:`radio`,id:ba(`radio-`,d.primary.id),name:r,checked:i,defaultChecked:a,disabled:s,required:c,"aria-describedby":l,...d.primary},elementType:`input`});return p.onChange=Pa(p.onChange,e=>u?.(e,{value:e.currentTarget.value})),{labelPosition:o,components:{root:`span`,input:`input`,label:`label`,indicator:`div`},root:f,input:p,label:Yr(e.label,{defaultProps:{htmlFor:p.id,disabled:p.disabled},elementType:`label`}),indicator:Jr(e.indicator,{defaultProps:{"aria-hidden":!0},elementType:`div`})}},ub={root:`fui-Radio`,indicator:`fui-Radio__indicator`,input:`fui-Radio__input`,label:`fui-Radio__label`},db=Vr(`r1siqwd8`,`rmnplyc`,{r:[`.r1siqwd8{display:inline-flex;position:relative;}`,`.r1siqwd8:focus{outline-style:none;}`,`.r1siqwd8:focus-visible{outline-style:none;}`,`.r1siqwd8[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}`,`.r1siqwd8[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}`,`.rmnplyc{display:inline-flex;position:relative;}`,`.rmnplyc:focus{outline-style:none;}`,`.rmnplyc:focus-visible{outline-style:none;}`,`.rmnplyc[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}`,`.rmnplyc[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}`],s:[`@media (forced-colors: active){.r1siqwd8[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}`,`@media (forced-colors: active){.rmnplyc[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}`]}),fb=P({vertical:{Beiy3e4:`f1vx9l62`,Bt984gj:`f122n59`}},{d:[`.f1vx9l62{flex-direction:column;}`,`.f122n59{align-items:center;}`]}),pb=Vr(`rg1upok`,`rzwdzb4`,{r:`.rg1upok{position:absolute;left:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;},.rg1upok:enabled{cursor:pointer;},.rg1upok:enabled~.fui-Radio__label{cursor:pointer;},.rg1upok:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);},.rg1upok:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);},.rg1upok:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);},.rg1upok:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);},.rg1upok:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);},.rg1upok:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);},.rg1upok:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);},.rg1upok:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);},.rg1upok:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);},.rg1upok:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);},.rg1upok:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;},.rg1upok:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);},.rzwdzb4{position:absolute;right:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;},.rzwdzb4:enabled{cursor:pointer;},.rzwdzb4:enabled~.fui-Radio__label{cursor:pointer;},.rzwdzb4:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);},.rzwdzb4:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);},.rzwdzb4:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);},.rzwdzb4:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);},.rzwdzb4:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);},.rzwdzb4:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);},.rzwdzb4:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);},.rzwdzb4:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);},.rzwdzb4:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);},.rzwdzb4:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);},.rzwdzb4:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;},.rzwdzb4:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}`.split(`,`),s:[`@media (forced-colors: active){.rg1upok:enabled:not(:checked)~.fui-Radio__indicator{border-color:ButtonBorder;}}`,`@media (forced-colors: active){.rg1upok:enabled:checked~.fui-Radio__indicator{border-color:Highlight;color:Highlight;}.rg1upok:enabled:checked~.fui-Radio__indicator::after{background-color:Highlight;}}`,`@media (forced-colors: active){.rg1upok:disabled~.fui-Radio__label{color:GrayText;}}`,`@media (forced-colors: active){.rg1upok:disabled~.fui-Radio__indicator{border-color:GrayText;color:GrayText;}.rg1upok:disabled~.fui-Radio__indicator::after{background-color:GrayText;}}`,`@media (forced-colors: active){.rzwdzb4:enabled:not(:checked)~.fui-Radio__indicator{border-color:ButtonBorder;}}`,`@media (forced-colors: active){.rzwdzb4:enabled:checked~.fui-Radio__indicator{border-color:Highlight;color:Highlight;}.rzwdzb4:enabled:checked~.fui-Radio__indicator::after{background-color:Highlight;}}`,`@media (forced-colors: active){.rzwdzb4:disabled~.fui-Radio__label{color:GrayText;}}`,`@media (forced-colors: active){.rzwdzb4:disabled~.fui-Radio__indicator{border-color:GrayText;color:GrayText;}.rzwdzb4:disabled~.fui-Radio__indicator::after{background-color:GrayText;}}`]}),mb=P({below:{a9b677:`fly5x3f`,Bqenvij:`f1je6zif`},defaultIndicator:{Blbys7f:`f9ma1gx`},customIndicator:{Bj53wkj:`f12zxao0`}},{d:[`.fly5x3f{width:100%;}`,`.f1je6zif{height:calc(16px + 2 * var(--spacingVerticalS));}`,`.f9ma1gx:checked~.fui-Radio__indicator::after{content:"";}`,`.f12zxao0:not(:checked)~.fui-Radio__indicator>*{opacity:0;}`]}),hb=Vr(`rwtekvw`,null,[`.rwtekvw{position:relative;width:16px;height:16px;font-size:12px;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border:var(--strokeWidthThin) solid;border-radius:var(--borderRadiusCircular);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;}`,`.rwtekvw::after{position:absolute;width:16px;height:16px;border-radius:var(--borderRadiusCircular);transform:scale(0.625);background-color:currentColor;}`]),gb=P({base:{qb2dma:`f7nlbp4`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f1f5q0n8`},after:{uwmqm3:[`fruq291`,`f7x41pl`],B6of3ja:`fjzwpt6`,jrapky:`fh6j2fo`},below:{z8tnut:`f1ywm7hm`,fsow6f:`f17mccla`}},{d:[`.f7nlbp4{align-self:center;}`,[`.f1f5q0n8{padding:var(--spacingVerticalS) var(--spacingHorizontalS);}`,{p:-1}],`.fruq291{padding-left:var(--spacingHorizontalXS);}`,`.f7x41pl{padding-right:var(--spacingHorizontalXS);}`,`.fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}`,`.fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}`,`.f1ywm7hm{padding-top:var(--spacingVerticalXS);}`,`.f17mccla{text-align:center;}`]}),_b=e=>{"use no memo";let{labelPosition:t}=e,n=db(),r=fb();e.root.className=A(ub.root,n,t===`below`&&r.vertical,e.root.className);let i=pb(),a=mb();e.input.className=A(ub.input,i,t===`below`&&a.below,e.indicator.children?a.customIndicator:a.defaultIndicator,e.input.className);let o=hb();e.indicator.className=A(ub.indicator,o,e.indicator.className);let s=gb();return e.label&&(e.label.className=A(ub.label,s.base,s[t],e.label.className)),e},vb=M.forwardRef((e,t)=>{let n=cb(e,t);return _b(n),Qi(`useRadioStyles_unstable`)(n),sb(n)});vb.displayName=`Radio`;var yb=M.createContext(void 0),bb={};yb.Provider;var xb=()=>M.useContext(yb)??bb,Sb=(e,t)=>{let{size:n}=xb(),{appearance:r=`primary`,size:i=n??`medium`,...a}=e,o=Cb(a,t);return{...o,appearance:r,size:i,components:{...o.components,label:gv},label:Yr(e.label,{defaultProps:o.label,elementType:gv})}},Cb=(e,t)=>{let{delay:n=0,labelPosition:r=`after`}=e,i=ba(`spinner`),{role:a=`progressbar`,...o}=e,s=Jr(Ai(`div`,{ref:t,role:a,...o}),{elementType:`div`}),[c,l]=M.useState(!1),[u,d]=Aa();M.useEffect(()=>{if(!(n<=0))return u(()=>{l(!0)},n),()=>{d()}},[u,d,n]);let f=Yr(e.label,{defaultProps:{id:i},renderByDefault:!1,elementType:`label`}),p=Yr(e.spinner,{renderByDefault:!0,elementType:`span`});return f&&s&&!s[`aria-labelledby`]&&(s[`aria-labelledby`]=f.id),{delay:n,labelPosition:r,shouldRenderSpinner:!n||c,components:{root:`div`,spinner:`span`,spinnerTail:`span`,label:`label`},root:s,spinner:p,spinnerTail:Jr(e.spinnerTail,{elementType:`span`}),label:f}},wb=e=>{let{labelPosition:t,shouldRenderSpinner:n}=e;return oo(e.root,{children:[e.label&&n&&(t===`above`||t===`before`)&&I(e.label,{}),e.spinner&&n&&I(e.spinner,{children:e.spinnerTail&&I(e.spinnerTail,{})}),e.label&&n&&(t===`below`||t===`after`)&&I(e.label,{})]})},Tb={root:`fui-Spinner`,spinner:`fui-Spinner__spinner`,spinnerTail:`fui-Spinner__spinnerTail`,label:`fui-Spinner__label`},Eb=Vr(`rpp59a7`,null,[`.rpp59a7{display:flex;align-items:center;justify-content:center;line-height:0;gap:8px;overflow:hidden;min-width:min-content;}`]),Db=P({vertical:{Beiy3e4:`f1vx9l62`}},{d:[`.f1vx9l62{flex-direction:column;}`]}),Ob=Vr(`rvgcg50`,`r15nd2jo`,{r:[`.rvgcg50{position:relative;flex-shrink:0;-webkit-mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);background-color:var(--colorBrandStroke2Contrast);color:var(--colorBrandStroke1);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:rb7n1on;}`,`@keyframes rb7n1on{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}`,`.r15nd2jo{position:relative;flex-shrink:0;-webkit-mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);background-color:var(--colorBrandStroke2Contrast);color:var(--colorBrandStroke1);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:r1gx3jof;}`,`@keyframes r1gx3jof{0%{transform:rotate(0deg);}100%{transform:rotate(-360deg);}}`],s:[`@media screen and (forced-colors: active){.rvgcg50{background-color:HighlightText;color:Highlight;forced-color-adjust:none;}}`,`@media screen and (prefers-reduced-motion: reduce){.rvgcg50{animation-duration:1.8s;}}`,`@media screen and (forced-colors: active){.r15nd2jo{background-color:HighlightText;color:Highlight;forced-color-adjust:none;}}`,`@media screen and (prefers-reduced-motion: reduce){.r15nd2jo{animation-duration:1.8s;}}`]}),kb=Vr(`rxov3xa`,`r1o544mv`,{r:[`.rxov3xa{position:absolute;display:block;width:100%;height:100%;-webkit-mask-image:conic-gradient(transparent 105deg, white 105deg);mask-image:conic-gradient(transparent 105deg, white 105deg);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:var(--curveEasyEase);animation-name:r15mim6k;}`,`.rxov3xa::before,.rxov3xa::after{content:"";position:absolute;display:block;width:100%;height:100%;animation:inherit;background-image:conic-gradient(currentcolor 135deg, transparent 135deg);}`,`@keyframes r15mim6k{0%{transform:rotate(-135deg);}50%{transform:rotate(0deg);}100%{transform:rotate(225deg);}}`,`.rxov3xa::before{animation-name:r18vhmn8;}`,`@keyframes r18vhmn8{0%{transform:rotate(0deg);}50%{transform:rotate(105deg);}100%{transform:rotate(0deg);}}`,`.rxov3xa::after{animation-name:rkgrvoi;}`,`@keyframes rkgrvoi{0%{transform:rotate(0deg);}50%{transform:rotate(225deg);}100%{transform:rotate(0deg);}}`,`.r1o544mv{position:absolute;display:block;width:100%;height:100%;-webkit-mask-image:conic-gradient(transparent 105deg, white 105deg);mask-image:conic-gradient(transparent 105deg, white 105deg);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:var(--curveEasyEase);animation-name:r109gmi5;}`,`.r1o544mv::before,.r1o544mv::after{content:"";position:absolute;display:block;width:100%;height:100%;animation:inherit;background-image:conic-gradient(currentcolor 135deg, transparent 135deg);}`,`@keyframes r109gmi5{0%{transform:rotate(135deg);}50%{transform:rotate(0deg);}100%{transform:rotate(-225deg);}}`,`.r1o544mv::before{animation-name:r17whflh;}`,`@keyframes r17whflh{0%{transform:rotate(0deg);}50%{transform:rotate(-105deg);}100%{transform:rotate(0deg);}}`,`.r1o544mv::after{animation-name:re4odhl;}`,`@keyframes re4odhl{0%{transform:rotate(0deg);}50%{transform:rotate(-225deg);}100%{transform:rotate(0deg);}}`],s:[`@media screen and (prefers-reduced-motion: reduce){.rxov3xa{animation-iteration-count:0;background-image:conic-gradient(transparent 120deg, currentcolor 360deg);}.rxov3xa::before,.rxov3xa::after{content:none;}}`,`@media screen and (prefers-reduced-motion: reduce){.r1o544mv{animation-iteration-count:0;background-image:conic-gradient(transparent 120deg, currentcolor 360deg);}.r1o544mv::before,.r1o544mv::after{content:none;}}`]}),Ab=P({inverted:{De3pzq:`fr407j0`,sj55zd:`f1f7voed`},rtlTail:{btxmck:`f179dep3`,gb5jj2:`fbz9ihp`,Bdya8wy:`f1pme1qz`},"extra-tiny":{Bqenvij:`fd461yt`,a9b677:`fjw5fx7`,qmp6fs:`f1v3ph3m`},tiny:{Bqenvij:`fjamq6b`,a9b677:`f64fuq3`,qmp6fs:`f1v3ph3m`},"extra-small":{Bqenvij:`frvgh55`,a9b677:`fq4mcun`,qmp6fs:`f1v3ph3m`},small:{Bqenvij:`fxldao9`,a9b677:`f1w9dchk`,qmp6fs:`f1v3ph3m`},medium:{Bqenvij:`f1d2rq10`,a9b677:`f1szoe96`,qmp6fs:`fb52u90`},large:{Bqenvij:`f8ljn23`,a9b677:`fpdz1er`,qmp6fs:`fb52u90`},"extra-large":{Bqenvij:`fbhnoac`,a9b677:`feqmc2u`,qmp6fs:`fb52u90`},huge:{Bqenvij:`f1ft4266`,a9b677:`fksc0bp`,qmp6fs:`fa3u9ii`}},{d:[`.fr407j0{background-color:var(--colorNeutralStrokeAlpha2);}`,`.f1f7voed{color:var(--colorNeutralStrokeOnBrand2);}`,`.f179dep3{-webkit-mask-image:conic-gradient(white 255deg, transparent 255deg);mask-image:conic-gradient(white 255deg, transparent 255deg);}`,`.fbz9ihp::before,.fbz9ihp::after{background-image:conic-gradient(transparent 225deg, currentcolor 225deg);}`,`.fd461yt{height:16px;}`,`.fjw5fx7{width:16px;}`,`.f1v3ph3m{--fui-Spinner--strokeWidth:var(--strokeWidthThick);}`,`.fjamq6b{height:20px;}`,`.f64fuq3{width:20px;}`,`.frvgh55{height:24px;}`,`.fq4mcun{width:24px;}`,`.fxldao9{height:28px;}`,`.f1w9dchk{width:28px;}`,`.f1d2rq10{height:32px;}`,`.f1szoe96{width:32px;}`,`.fb52u90{--fui-Spinner--strokeWidth:var(--strokeWidthThicker);}`,`.f8ljn23{height:36px;}`,`.fpdz1er{width:36px;}`,`.fbhnoac{height:40px;}`,`.feqmc2u{width:40px;}`,`.f1ft4266{height:44px;}`,`.fksc0bp{width:44px;}`,`.fa3u9ii{--fui-Spinner--strokeWidth:var(--strokeWidthThickest);}`],m:[[`@media screen and (prefers-reduced-motion: reduce){.f1pme1qz{background-image:conic-gradient(currentcolor 0deg, transparent 240deg);}}`,{m:`screen and (prefers-reduced-motion: reduce)`}]]}),jb=P({inverted:{sj55zd:`fonrgv7`},"extra-tiny":{Bahqtrf:`fk6fouc`,Be2twd7:`fkhj508`,Bhrd7zp:`figsok6`,Bg96gwp:`f1i3iumi`},tiny:{Bahqtrf:`fk6fouc`,Be2twd7:`fkhj508`,Bhrd7zp:`figsok6`,Bg96gwp:`f1i3iumi`},"extra-small":{Bahqtrf:`fk6fouc`,Be2twd7:`fkhj508`,Bhrd7zp:`figsok6`,Bg96gwp:`f1i3iumi`},small:{Bahqtrf:`fk6fouc`,Be2twd7:`fkhj508`,Bhrd7zp:`figsok6`,Bg96gwp:`f1i3iumi`},medium:{Bahqtrf:`fk6fouc`,Be2twd7:`fod5ikn`,Bhrd7zp:`fl43uef`,Bg96gwp:`faaz57k`},large:{Bahqtrf:`fk6fouc`,Be2twd7:`fod5ikn`,Bhrd7zp:`fl43uef`,Bg96gwp:`faaz57k`},"extra-large":{Bahqtrf:`fk6fouc`,Be2twd7:`fod5ikn`,Bhrd7zp:`fl43uef`,Bg96gwp:`faaz57k`},huge:{Bahqtrf:`fk6fouc`,Be2twd7:`f1pp30po`,Bhrd7zp:`fl43uef`,Bg96gwp:`f106mvju`}},{d:[`.fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}`,`.fk6fouc{font-family:var(--fontFamilyBase);}`,`.fkhj508{font-size:var(--fontSizeBase300);}`,`.figsok6{font-weight:var(--fontWeightRegular);}`,`.f1i3iumi{line-height:var(--lineHeightBase300);}`,`.fod5ikn{font-size:var(--fontSizeBase400);}`,`.fl43uef{font-weight:var(--fontWeightSemibold);}`,`.faaz57k{line-height:var(--lineHeightBase400);}`,`.f1pp30po{font-size:var(--fontSizeBase500);}`,`.f106mvju{line-height:var(--lineHeightBase500);}`]}),Mb=e=>{"use no memo";let{labelPosition:t,size:n,appearance:r}=e,{dir:i}=Gi(),a=Eb(),o=Db(),s=Ob(),c=Ab(),l=kb(),u=jb();return e.root.className=A(Tb.root,a,(t===`above`||t===`below`)&&o.vertical,e.root.className),e.spinner&&(e.spinner.className=A(Tb.spinner,s,c[n],r===`inverted`&&c.inverted,e.spinner.className)),e.spinnerTail&&(e.spinnerTail.className=A(Tb.spinnerTail,l,i===`rtl`&&c.rtlTail,e.spinnerTail.className)),e.label&&(e.label.className=A(Tb.label,u[n],r===`inverted`&&u.inverted,e.label.className)),e},Nb=M.forwardRef((e,t)=>{let n=Sb(e,t);return Mb(n),Qi(`useSpinnerStyles_unstable`)(n),wb(n)});Nb.displayName=`Spinner`;var Pb=(e,t)=>{var n;let{size:r=`medium`,...i}=e,a=Fb(i,t);return(n=a.indicator).children??(n.children=M.createElement(Qd,null)),{...a,components:{...a.components,label:gv},size:r,label:Yr(e.label,{defaultProps:{size:`medium`,...a.label},elementType:gv})}},Fb=(e,t)=>{e=sv(e,{supportsLabelFor:!0,supportsRequired:!0});let{checked:n,defaultChecked:r,disabled:i,disabledFocusable:a=!1,labelPosition:o=`after`,onChange:s,required:c}=e,l=ki({props:e,primarySlotTagName:`input`,excludedPropNames:[`checked`,`defaultChecked`,`onChange`,`disabledFocusable`]}),u=ba(`switch-`,l.primary.id),d=Jr(e.root,{defaultProps:{ref:tl(),...l.root},elementType:`div`}),f=Jr(e.indicator,{defaultProps:{"aria-hidden":!0},elementType:`div`}),p=Jr(e.input,{defaultProps:{checked:n,defaultChecked:r,id:u,ref:t,role:`switch`,type:`checkbox`,...l.primary,disabled:i&&!a,...a&&{"aria-disabled":!0}},elementType:`input`});return p.onChange=Pa(p.onChange,e=>s?.(e,{checked:e.currentTarget.checked})),p.onClick=Pa(p.onClick,e=>{a&&e.preventDefault()}),p.onKeyDown=Pa(p.onKeyDown,e=>{a&&(e.key===` `||e.key===`Enter`)&&e.preventDefault()}),{disabledFocusable:a,labelPosition:o,components:{root:`div`,indicator:`div`,input:`input`,label:`label`},root:d,indicator:f,input:p,label:Yr(e.label,{defaultProps:{disabled:i||a,htmlFor:u,required:c},elementType:`label`})}},Ib=e=>{let{labelPosition:t}=e;return oo(e.root,{children:[I(e.input,{}),t!==`after`&&e.label&&I(e.label,{}),I(e.indicator,{}),t===`after`&&e.label&&I(e.label,{})]})},Lb={root:`fui-Switch`,indicator:`fui-Switch__indicator`,input:`fui-Switch__input`,label:`fui-Switch__label`};Lb.root;var Rb=2;20-Rb,16-Rb;var zb=Vr(`r2i81i2`,`rofhmb8`,{r:[`.r2i81i2{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}`,`.r2i81i2:focus{outline-style:none;}`,`.r2i81i2:focus-visible{outline-style:none;}`,`.r2i81i2[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}`,`.r2i81i2[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}`,`.rofhmb8{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}`,`.rofhmb8:focus{outline-style:none;}`,`.rofhmb8:focus-visible{outline-style:none;}`,`.rofhmb8[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}`,`.rofhmb8[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}`],s:[`@media (forced-colors: active){.r2i81i2[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}`,`@media (forced-colors: active){.rofhmb8[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}`]}),Bb=P({vertical:{Beiy3e4:`f1vx9l62`}},{d:[`.f1vx9l62{flex-direction:column;}`]}),Vb=Vr(`r1c3hft5`,null,{r:[`.r1c3hft5{border-radius:var(--borderRadiusCircular);border:1px solid;line-height:0;box-sizing:border-box;fill:currentColor;flex-shrink:0;font-size:18px;height:20px;margin:var(--spacingVerticalS) var(--spacingHorizontalS);pointer-events:none;transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:background,border,color;width:40px;}`,`.r1c3hft5>*{transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:transform;}`],s:[`@media screen and (prefers-reduced-motion: reduce){.r1c3hft5{transition-duration:0.01ms;}}`,`@media (forced-colors: active){.r1c3hft5{color:CanvasText;}.r1c3hft5>i{forced-color-adjust:none;}}`,`@media screen and (prefers-reduced-motion: reduce){.r1c3hft5>*{transition-duration:0.01ms;}}`]}),Hb=P({labelAbove:{B6of3ja:`f1hu3pq6`},sizeSmall:{Be2twd7:`fses1vf`,Bqenvij:`fd461yt`,a9b677:`f1szoe96`}},{d:[`.f1hu3pq6{margin-top:0;}`,`.fses1vf{font-size:14px;}`,`.fd461yt{height:16px;}`,`.f1szoe96{width:32px;}`]}),Ub=Vr(`r12ojtgy`,`rhc0e9x`,{r:[`.r12ojtgy{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}`,`.r12ojtgy:checked~.fui-Switch__indicator>*{transform:translateX(20px);}`,`.r12ojtgy:disabled,.r12ojtgy[aria-disabled="true"]{cursor:default;}`,`.r12ojtgy:disabled~.fui-Switch__indicator,.r12ojtgy[aria-disabled="true"]~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}`,`.r12ojtgy:disabled~.fui-Switch__label,.r12ojtgy[aria-disabled="true"]~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}`,`.r12ojtgy:enabled:not(:checked):not([aria-disabled="true"])~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}`,`.r12ojtgy:enabled:not(:checked):not([aria-disabled="true"])~.fui-Switch__label{color:var(--colorNeutralForeground1);}`,`.r12ojtgy:enabled:not(:checked):not([aria-disabled="true"]):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}`,`.r12ojtgy:enabled:not(:checked):not([aria-disabled="true"]):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}`,`.r12ojtgy:enabled:checked:not([aria-disabled="true"])~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}`,`.r12ojtgy:enabled:checked:not([aria-disabled="true"]):hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}`,`.r12ojtgy:enabled:checked:not([aria-disabled="true"]):hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}`,`.r12ojtgy:disabled:not(:checked)~.fui-Switch__indicator,.r12ojtgy[aria-disabled="true"]:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}`,`.r12ojtgy:disabled:checked~.fui-Switch__indicator,.r12ojtgy[aria-disabled="true"]:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}`,`.rhc0e9x{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}`,`.rhc0e9x:checked~.fui-Switch__indicator>*{transform:translateX(-20px);}`,`.rhc0e9x:disabled,.rhc0e9x[aria-disabled="true"]{cursor:default;}`,`.rhc0e9x:disabled~.fui-Switch__indicator,.rhc0e9x[aria-disabled="true"]~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}`,`.rhc0e9x:disabled~.fui-Switch__label,.rhc0e9x[aria-disabled="true"]~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}`,`.rhc0e9x:enabled:not(:checked):not([aria-disabled="true"])~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}`,`.rhc0e9x:enabled:not(:checked):not([aria-disabled="true"])~.fui-Switch__label{color:var(--colorNeutralForeground1);}`,`.rhc0e9x:enabled:not(:checked):not([aria-disabled="true"]):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}`,`.rhc0e9x:enabled:not(:checked):not([aria-disabled="true"]):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}`,`.rhc0e9x:enabled:checked:not([aria-disabled="true"])~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}`,`.rhc0e9x:enabled:checked:not([aria-disabled="true"]):hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}`,`.rhc0e9x:enabled:checked:not([aria-disabled="true"]):hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}`,`.rhc0e9x:disabled:not(:checked)~.fui-Switch__indicator,.rhc0e9x[aria-disabled="true"]:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}`,`.rhc0e9x:disabled:checked~.fui-Switch__indicator,.rhc0e9x[aria-disabled="true"]:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}`],s:[`@media (forced-colors: active){.r12ojtgy:disabled~.fui-Switch__indicator,.r12ojtgy[aria-disabled="true"]~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.r12ojtgy:disabled~.fui-Switch__label,.r12ojtgy[aria-disabled="true"]~.fui-Switch__label{color:GrayText;}.r12ojtgy:hover{color:CanvasText;}.r12ojtgy:hover:active{color:CanvasText;}.r12ojtgy:enabled:checked:not([aria-disabled="true"]):hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.r12ojtgy:enabled:checked:not([aria-disabled="true"]):hover:active~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.r12ojtgy:enabled:checked:not([aria-disabled="true"])~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}`,`@media (forced-colors: active){.rhc0e9x:disabled~.fui-Switch__indicator,.rhc0e9x[aria-disabled="true"]~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.rhc0e9x:disabled~.fui-Switch__label,.rhc0e9x[aria-disabled="true"]~.fui-Switch__label{color:GrayText;}.rhc0e9x:hover{color:CanvasText;}.rhc0e9x:hover:active{color:CanvasText;}.rhc0e9x:enabled:checked:not([aria-disabled="true"]):hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.rhc0e9x:enabled:checked:not([aria-disabled="true"]):hover:active~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.rhc0e9x:enabled:checked:not([aria-disabled="true"])~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}`]}),Wb=P({before:{j35jbq:[`f1e31b4d`,`f1vgc2s3`],Bhzewxz:`f15twtuk`},after:{oyh7mz:[`f1vgc2s3`,`f1e31b4d`],Bhzewxz:`f15twtuk`},above:{B5kzvoi:`f1yab3r1`,Bqenvij:`f1aar7gd`,a9b677:`fly5x3f`},sizeSmall:{a9b677:`f83td6f`,oedwrj:[`f1t5zc5r`,`fmy58zi`]}},{d:[`.f1e31b4d{right:0;}`,`.f1vgc2s3{left:0;}`,`.f15twtuk{top:0;}`,`.f1yab3r1{bottom:0;}`,`.f1aar7gd{height:calc(20px + var(--spacingVerticalS));}`,`.fly5x3f{width:100%;}`,`.f83td6f{width:calc(32px + 2 * var(--spacingHorizontalS));}`,`.f1t5zc5r:checked~.fui-Switch__indicator>*{transform:translateX(16px);}`,`.fmy58zi:checked~.fui-Switch__indicator>*{transform:translateX(-16px);}`]}),Gb=P({base:{Bceei9c:`f1k6fduh`,jrapky:`f49ad5g`,B6of3ja:`f1xlvstr`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f1f5q0n8`},sizeSmall:{Be2twd7:`fy9rknc`,Bg96gwp:`fwrc4pm`,jrapky:`f1suqah5`,B6of3ja:`f26bnac`},above:{z8tnut:`f1ywm7hm`,Byoj8tv:`f14wxoun`,a9b677:`fly5x3f`},after:{uwmqm3:[`fruq291`,`f7x41pl`]},before:{z189sj:[`f7x41pl`,`fruq291`]}},{d:[`.f1k6fduh{cursor:pointer;}`,`.f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}`,`.f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}`,[`.f1f5q0n8{padding:var(--spacingVerticalS) var(--spacingHorizontalS);}`,{p:-1}],`.fy9rknc{font-size:var(--fontSizeBase200);}`,`.fwrc4pm{line-height:var(--lineHeightBase200);}`,`.f1suqah5{margin-bottom:calc((16px - var(--lineHeightBase200)) / 2);}`,`.f26bnac{margin-top:calc((16px - var(--lineHeightBase200)) / 2);}`,`.f1ywm7hm{padding-top:var(--spacingVerticalXS);}`,`.f14wxoun{padding-bottom:var(--spacingVerticalXS);}`,`.fly5x3f{width:100%;}`,`.fruq291{padding-left:var(--spacingHorizontalXS);}`,`.f7x41pl{padding-right:var(--spacingHorizontalXS);}`]}),Kb=e=>{"use no memo";let t=zb(),n=Bb(),r=Vb(),i=Hb(),a=Ub(),o=Wb(),s=Gb(),{label:c,labelPosition:l,size:u}=e;return e.root.className=A(Lb.root,t,l===`above`&&n.vertical,e.root.className),e.indicator.className=A(Lb.indicator,r,c&&l===`above`&&i.labelAbove,u===`small`&&i.sizeSmall,e.indicator.className),e.input.className=A(Lb.input,a,c&&o[l],u===`small`&&o.sizeSmall,e.input.className),e.label&&(e.label.className=A(Lb.label,s.base,s[l],u===`small`&&s.sizeSmall,e.label.className)),e},qb=M.forwardRef((e,t)=>{let n=Pb(e,t);return Kb(n),Qi(`useSwitchStyles_unstable`)(n),Ib(n)});qb.displayName=`Switch`;var Jb=(e,t)=>{let{wrap:n,truncate:r,block:i,italic:a,underline:o,strikethrough:s,size:c,font:l,weight:u,align:d}=e;return{align:d??`start`,block:i??!1,font:l??`base`,italic:a??!1,size:c??300,strikethrough:s??!1,truncate:r??!1,underline:o??!1,weight:u??`regular`,wrap:n??!0,components:{root:`span`},root:Jr(Ai(`span`,{ref:t,...e}),{elementType:`span`})}},Yb=e=>I(e.root,{}),Xb={root:`fui-Text`},Zb=P({root:{Bahqtrf:`fk6fouc`,Be2twd7:`fkhj508`,Bg96gwp:`f1i3iumi`,Bhrd7zp:`figsok6`,fsow6f:`fpgzoln`,mc9l5x:`f1w7gpdv`,Huce71:`f6juhto`,B68tc82:0,Bmxbyg5:0,Bpg54ce:`f1gl81tg`,ygn44y:`f2jf649`},nowrap:{Huce71:`fz5stix`,B68tc82:0,Bmxbyg5:0,Bpg54ce:`f1a3p1vp`},truncate:{ygn44y:`f1cmbuwj`},block:{mc9l5x:`ftgm304`},italic:{B80ckks:`f1j4dglz`},underline:{w71qe1:`f13mvf36`},strikethrough:{w71qe1:`fv5q2k7`},strikethroughUnderline:{w71qe1:`f1drk4o6`},base100:{Be2twd7:`f13mqy1h`,Bg96gwp:`fcpl73t`},base200:{Be2twd7:`fy9rknc`,Bg96gwp:`fwrc4pm`},base400:{Be2twd7:`fod5ikn`,Bg96gwp:`faaz57k`},base500:{Be2twd7:`f1pp30po`,Bg96gwp:`f106mvju`},base600:{Be2twd7:`f1x0m3f5`,Bg96gwp:`fb86gi6`},hero700:{Be2twd7:`fojgt09`,Bg96gwp:`fcen8rp`},hero800:{Be2twd7:`fccw675`,Bg96gwp:`f1ebx5kk`},hero900:{Be2twd7:`f15afnhw`,Bg96gwp:`fr3w3wp`},hero1000:{Be2twd7:`fpyltcb`,Bg96gwp:`f1ivgwrt`},monospace:{Bahqtrf:`f1fedwem`},numeric:{Bahqtrf:`f1uq0ln5`},weightMedium:{Bhrd7zp:`fdj6btp`},weightSemibold:{Bhrd7zp:`fl43uef`},weightBold:{Bhrd7zp:`flh3ekv`},alignCenter:{fsow6f:`f17mccla`},alignEnd:{fsow6f:`f12ymhq5`},alignJustify:{fsow6f:`f1j59e10`}},{d:[`.fk6fouc{font-family:var(--fontFamilyBase);}`,`.fkhj508{font-size:var(--fontSizeBase300);}`,`.f1i3iumi{line-height:var(--lineHeightBase300);}`,`.figsok6{font-weight:var(--fontWeightRegular);}`,`.fpgzoln{text-align:start;}`,`.f1w7gpdv{display:inline;}`,`.f6juhto{white-space:normal;}`,[`.f1gl81tg{overflow:visible;}`,{p:-1}],`.f2jf649{text-overflow:clip;}`,`.fz5stix{white-space:nowrap;}`,[`.f1a3p1vp{overflow:hidden;}`,{p:-1}],`.f1cmbuwj{text-overflow:ellipsis;}`,`.ftgm304{display:block;}`,`.f1j4dglz{font-style:italic;}`,`.f13mvf36{text-decoration-line:underline;}`,`.fv5q2k7{text-decoration-line:line-through;}`,`.f1drk4o6{text-decoration-line:line-through underline;}`,`.f13mqy1h{font-size:var(--fontSizeBase100);}`,`.fcpl73t{line-height:var(--lineHeightBase100);}`,`.fy9rknc{font-size:var(--fontSizeBase200);}`,`.fwrc4pm{line-height:var(--lineHeightBase200);}`,`.fod5ikn{font-size:var(--fontSizeBase400);}`,`.faaz57k{line-height:var(--lineHeightBase400);}`,`.f1pp30po{font-size:var(--fontSizeBase500);}`,`.f106mvju{line-height:var(--lineHeightBase500);}`,`.f1x0m3f5{font-size:var(--fontSizeBase600);}`,`.fb86gi6{line-height:var(--lineHeightBase600);}`,`.fojgt09{font-size:var(--fontSizeHero700);}`,`.fcen8rp{line-height:var(--lineHeightHero700);}`,`.fccw675{font-size:var(--fontSizeHero800);}`,`.f1ebx5kk{line-height:var(--lineHeightHero800);}`,`.f15afnhw{font-size:var(--fontSizeHero900);}`,`.fr3w3wp{line-height:var(--lineHeightHero900);}`,`.fpyltcb{font-size:var(--fontSizeHero1000);}`,`.f1ivgwrt{line-height:var(--lineHeightHero1000);}`,`.f1fedwem{font-family:var(--fontFamilyMonospace);}`,`.f1uq0ln5{font-family:var(--fontFamilyNumeric);}`,`.fdj6btp{font-weight:var(--fontWeightMedium);}`,`.fl43uef{font-weight:var(--fontWeightSemibold);}`,`.flh3ekv{font-weight:var(--fontWeightBold);}`,`.f17mccla{text-align:center;}`,`.f12ymhq5{text-align:end;}`,`.f1j59e10{text-align:justify;}`]}),Qb=e=>{"use no memo";let t=Zb();return e.root.className=A(Xb.root,t.root,e.wrap===!1&&t.nowrap,e.truncate&&t.truncate,e.block&&t.block,e.italic&&t.italic,e.underline&&t.underline,e.strikethrough&&t.strikethrough,e.underline&&e.strikethrough&&t.strikethroughUnderline,e.size===100&&t.base100,e.size===200&&t.base200,e.size===400&&t.base400,e.size===500&&t.base500,e.size===600&&t.base600,e.size===700&&t.hero700,e.size===800&&t.hero800,e.size===900&&t.hero900,e.size===1e3&&t.hero1000,e.font===`monospace`&&t.monospace,e.font===`numeric`&&t.numeric,e.weight===`medium`&&t.weightMedium,e.weight===`semibold`&&t.weightSemibold,e.weight===`bold`&&t.weightBold,e.align===`center`&&t.alignCenter,e.align===`end`&&t.alignEnd,e.align===`justify`&&t.alignJustify,e.root.className),e},$b=M.forwardRef((e,t)=>{let n=Jb(e,t);return Qb(n),Qi(`useTextStyles_unstable`)(n),Yb(n)});$b.displayName=`Text`;var ex=e=>I(e.root,{children:I(e.textarea,{})}),tx=(e,t)=>{let n=Ji(),{size:r=`medium`,appearance:i=n.inputDefaultAppearance??`outline`,...a}=e;return{...nx(a,t),size:r,appearance:i}},nx=(e,t)=>{e=sv(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});let{resize:n=`none`,onChange:r}=e,[i,a]=sa({state:e.value,defaultState:e.defaultValue,initialState:void 0}),o=ki({props:e,primarySlotTagName:`textarea`,excludedPropNames:[`onChange`,`value`,`defaultValue`]}),s={resize:n,components:{root:`span`,textarea:`textarea`},textarea:Jr(e.textarea,{defaultProps:{ref:t,...o.primary},elementType:`textarea`}),root:Jr(e.root,{defaultProps:o.root,elementType:`span`})};return s.textarea.value=i,s.textarea.onChange=F(e=>{let t=e.target.value;r?.(e,{value:t}),a(t)}),s},rx={root:`fui-Textarea`,textarea:`fui-Textarea__textarea`},ix=P({base:{mc9l5x:`ftuwxu6`,B7ck84d:`f1ewtqcl`,qhf8xq:`f10pi13n`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f1yiegib`,jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:`f1s184ao`,Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`ft85np5`,ha4doy:`f12kltsn`},disabled:{De3pzq:`f1c21dwh`,Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:`ff3nzm7`,Bcq6wej:`f9dbb4x`,Jcjdmf:[`f3qs60o`,`f5u9ap2`],sc4o1m:`fwd1oij`,Bosien3:[`f5u9ap2`,`f3qs60o`]},interactive:{li1rpt:`f1gw3sf2`,Bsft5z2:`f13zj6fq`,E3zdtr:`f1mdlcz9`,Eqx8gd:[`f1a7op3`,`f1cjjd47`],By385i5:`f1gboi2j`,B1piin3:[`f1cjjd47`,`f1a7op3`],Dlnsje:`ffyw7fx`,d9w3h3:[`f1kp91vd`,`f1ibwz09`],B3778ie:[`f1ibwz09`,`f1kp91vd`],B1q35kw:0,Bw17bha:0,Bcgy8vk:0,Bjuhk93:`f1mnjydx`,Gjdm7m:`fj2g8qd`,b1kco5:`f1yk9hq`,Ba2ppi3:`fhwpy7i`,F2fol1:`f14ee0xe`,lck23g:`f1xhbsuh`,wi16st:`fsrmcvb`,ywj3b2:`f1t3k7v9`,umuwi5:`fjw5xc1`,Blcqepd:`f1xdyd5c`,nplu4u:`fatpbeo`,Bioka5o:`fb7uyps`,Bnupc0a:`fx04xgm`,bing71:`f1c7in40`,Bercvud:`f1ibeo51`,Bbr2w1p:`f1vnc8sk`,Bduesf4:`f3e99gv`,Bpq79vn:`fhljsf7`},filled:{Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:`f88035w`,q7v0qe:`ftmjh5b`,kmh5ft:[`f17blpuu`,`fsrcdbj`],nagaa4:`f1tpwn32`,B1yhkcb:[`fsrcdbj`,`f17blpuu`]},"filled-darker":{De3pzq:`f16xq7d1`},"filled-lighter":{De3pzq:`fxugw4r`},"filled-darker-shadow":{De3pzq:`f16xq7d1`,Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:`f1gmd7mu`,E5pizo:`fyed02w`},"filled-lighter-shadow":{De3pzq:`fxugw4r`,Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:`f1gmd7mu`,E5pizo:`fyed02w`},outline:{De3pzq:`fxugw4r`,Bgfg5da:0,B9xav0g:`f1c1zstj`,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:`fhz96rm`},outlineInteractive:{kzujx5:0,oetu4i:`f1l4zc64`,gvrnp0:0,xv9156:0,jek2p4:0,gg5e9n:0,Beu9t3s:0,dt87k2:0,Bt1vbvt:0,Bwzppfd:0,Bop6t4b:0,B2zwrfe:0,Bwp2tzp:0,Bgoe8wy:0,Bf40cpq:0,ckks6v:0,Baalond:`f9mts5e`,v2iqwr:0,wmxk5l:`f1z0osm6`,Bj33j0h:0,Bs0cc2w:0,qwjtx1:0,B50zh58:0,f7epvg:0,e1hlit:0,B7mkhst:0,ak43y8:0,Bbcopvn:0,Bvecx4l:0,lwioe0:0,B6oc9vd:0,e2sjt0:0,uqwnxt:0,asj8p9:`f1acnei2`,Br8fjdy:0,zoxjo1:`f1so894s`,Bt3ojkv:0,B7pmvfx:0,Bfht2n1:0,an54nd:0,t1ykpo:0,Belqbek:0,bbt1vd:0,Brahy3i:0,r7b1zc:0,rexu52:0,ovtnii:0,Bvq3b66:0,Bawrxx6:0,Bbs6y8j:0,B2qpgjt:`f19ezbcq`},invalid:{tvckwq:`fs4k3qj`,gk2u95:[`fcee079`,`fmyw78r`],hhx65j:`f1fgmyf4`,Bxowmz0:[`fmyw78r`,`fcee079`]}},{d:[`.ftuwxu6{display:inline-flex;}`,`.f1ewtqcl{box-sizing:border-box;}`,`.f10pi13n{position:relative;}`,[`.f1yiegib{padding:0 0 var(--strokeWidthThick) 0;}`,{p:-1}],[`.f1s184ao{margin:0;}`,{p:-1}],[`.ft85np5{border-radius:var(--borderRadiusMedium);}`,{p:-1}],`.f12kltsn{vertical-align:top;}`,`.f1c21dwh{background-color:var(--colorTransparentBackground);}`,[`.ff3nzm7{border:var(--strokeWidthThin) solid var(--colorNeutralStrokeDisabled);}`,{p:-2}],`.f1gw3sf2::after{box-sizing:border-box;}`,`.f13zj6fq::after{content:"";}`,`.f1mdlcz9::after{position:absolute;}`,`.f1a7op3::after{left:-1px;}`,`.f1cjjd47::after{right:-1px;}`,`.f1gboi2j::after{bottom:-1px;}`,`.ffyw7fx::after{height:max(var(--strokeWidthThick), var(--borderRadiusMedium));}`,`.f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}`,`.f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}`,[`.f1mnjydx::after{border-bottom:var(--strokeWidthThick) solid var(--colorCompoundBrandStroke);}`,{p:-1}],`.fj2g8qd::after{clip-path:inset(calc(100% - var(--strokeWidthThick)) 0 0 0);}`,`.f1yk9hq::after{transform:scaleX(0);}`,`.fhwpy7i::after{transition-property:transform;}`,`.f14ee0xe::after{transition-duration:var(--durationUltraFast);}`,`.f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}`,[`.f88035w{border:var(--strokeWidthThin) solid var(--colorTransparentStroke);}`,{p:-2}],`.f16xq7d1{background-color:var(--colorNeutralBackground3);}`,`.fxugw4r{background-color:var(--colorNeutralBackground1);}`,[`.f1gmd7mu{border:var(--strokeWidthThin) solid var(--colorTransparentStrokeInteractive);}`,{p:-2}],`.fyed02w{box-shadow:var(--shadow2);}`,[`.f1gmd7mu{border:var(--strokeWidthThin) solid var(--colorTransparentStrokeInteractive);}`,{p:-2}],[`.fhz96rm{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);}`,{p:-2}],`.f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}`,`.fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}`,`.fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}`,`.fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}`,`.f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}`],m:[[`@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media screen and (prefers-reduced-motion: reduce){.fsrmcvb::after{transition-duration:0.01ms;}}`,{m:`screen and (prefers-reduced-motion: reduce)`}],[`@media screen and (prefers-reduced-motion: reduce){.f1t3k7v9::after{transition-delay:0.01ms;}}`,{m:`screen and (prefers-reduced-motion: reduce)`}],[`@media screen and (prefers-reduced-motion: reduce){.fx04xgm:focus-within::after{transition-duration:0.01ms;}}`,{m:`screen and (prefers-reduced-motion: reduce)`}],[`@media screen and (prefers-reduced-motion: reduce){.f1c7in40:focus-within::after{transition-delay:0.01ms;}}`,{m:`screen and (prefers-reduced-motion: reduce)`}]],w:[`.fjw5xc1:focus-within::after{transform:scaleX(1);}`,`.f1xdyd5c:focus-within::after{transition-property:transform;}`,`.fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}`,`.fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}`,`.f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}`,`.f1vnc8sk:focus-within{outline-width:var(--strokeWidthThick);}`,`.f3e99gv:focus-within{outline-style:solid;}`,`.fhljsf7:focus-within{outline-color:transparent;}`,[`.f19ezbcq:focus-within{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1Pressed);}`,{p:-2}],`.f1so894s:focus-within{border-bottom-color:var(--colorCompoundBrandStroke);}`],h:[`.ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}`,`.f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}`,`.fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}`,`.f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}`,[`.f9mts5e:hover{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1Hover);}`,{p:-2}],`.f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}`],a:[[`.f1acnei2:active{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1Pressed);}`,{p:-2}],`.f1z0osm6:active{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}`]}),ax=P({base:{icvyot:`f1ern45e`,vrafjx:[`f1n71otn`,`f1deefiw`],oivjwe:`f1h8hb77`,wvpqe5:[`f1deefiw`,`f1n71otn`],jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:`f1s184ao`,De3pzq:`f3rmtva`,B7ck84d:`f1ewtqcl`,sj55zd:`f19n0e5`,Bh6795r:`fqerorx`,Bahqtrf:`fk6fouc`,Bqenvij:`f1l02sjl`,yvdlaj:`fwyc1cq`,B3o7kgh:`f13ta7ih`,oeaueh:`f1s6fcnf`},disabled:{sj55zd:`f1s2aq7o`,Bceei9c:`fdrzuqr`,yvdlaj:`fahhnxm`},small:{sshi5w:`f1w5jphr`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f1pnffij`,Bxyxcbc:`f192z54u`,Bahqtrf:`fk6fouc`,Be2twd7:`fy9rknc`,Bhrd7zp:`figsok6`,Bg96gwp:`fwrc4pm`},medium:{sshi5w:`fvmd9f`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f1ww82xo`,Bxyxcbc:`f1if7ixc`,Bahqtrf:`fk6fouc`,Be2twd7:`fkhj508`,Bhrd7zp:`figsok6`,Bg96gwp:`f1i3iumi`},large:{sshi5w:`f1kfson`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f15hvtkj`,Bxyxcbc:`f3kip1f`,Bahqtrf:`fk6fouc`,Be2twd7:`fod5ikn`,Bhrd7zp:`figsok6`,Bg96gwp:`faaz57k`}},{d:[`.f1ern45e{border-top-style:none;}`,`.f1n71otn{border-right-style:none;}`,`.f1deefiw{border-left-style:none;}`,`.f1h8hb77{border-bottom-style:none;}`,[`.f1s184ao{margin:0;}`,{p:-1}],`.f3rmtva{background-color:transparent;}`,`.f1ewtqcl{box-sizing:border-box;}`,`.f19n0e5{color:var(--colorNeutralForeground1);}`,`.fqerorx{flex-grow:1;}`,`.fk6fouc{font-family:var(--fontFamilyBase);}`,`.f1l02sjl{height:100%;}`,`.fwyc1cq::-webkit-input-placeholder{color:var(--colorNeutralForeground4);}`,`.fwyc1cq::-moz-placeholder{color:var(--colorNeutralForeground4);}`,`.f13ta7ih::-webkit-input-placeholder{opacity:1;}`,`.f13ta7ih::-moz-placeholder{opacity:1;}`,`.f1s6fcnf{outline-style:none;}`,`.f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}`,`.fdrzuqr{cursor:not-allowed;}`,`.fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}`,`.fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}`,`.f1w5jphr{min-height:40px;}`,[`.f1pnffij{padding:var(--spacingVerticalXS) calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}`,{p:-1}],`.f192z54u{max-height:200px;}`,`.fy9rknc{font-size:var(--fontSizeBase200);}`,`.figsok6{font-weight:var(--fontWeightRegular);}`,`.fwrc4pm{line-height:var(--lineHeightBase200);}`,`.fvmd9f{min-height:52px;}`,[`.f1ww82xo{padding:var(--spacingVerticalSNudge) calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}`,{p:-1}],`.f1if7ixc{max-height:260px;}`,`.fkhj508{font-size:var(--fontSizeBase300);}`,`.f1i3iumi{line-height:var(--lineHeightBase300);}`,`.f1kfson{min-height:64px;}`,[`.f15hvtkj{padding:var(--spacingVerticalS) calc(var(--spacingHorizontalM) + var(--spacingHorizontalXXS));}`,{p:-1}],`.f3kip1f{max-height:320px;}`,`.fod5ikn{font-size:var(--fontSizeBase400);}`,`.faaz57k{line-height:var(--lineHeightBase400);}`]}),ox=P({none:{B3rzk8w:`f1o1s39h`},both:{B3rzk8w:`f1pxm0xe`},horizontal:{B3rzk8w:`fq6nmtn`},vertical:{B3rzk8w:`f1f5ktr4`}},{d:[`.f1o1s39h{resize:none;}`,`.f1pxm0xe{resize:both;}`,`.fq6nmtn{resize:horizontal;}`,`.f1f5ktr4{resize:vertical;}`]}),sx=e=>{"use no memo";let{size:t,appearance:n,resize:r}=e,i=e.textarea.disabled,a=`${e.textarea[`aria-invalid`]}`==`true`,o=n.startsWith(`filled`),s=ix();e.root.className=A(rx.root,s.base,i&&s.disabled,!i&&o&&s.filled,!i&&s[n],!i&&s.interactive,!i&&n===`outline`&&s.outlineInteractive,!i&&a&&s.invalid,e.root.className);let c=ax(),l=ox();return e.textarea.className=A(rx.textarea,c.base,c[t],l[r],i&&c.disabled,e.textarea.className),e},cx=M.forwardRef((e,t)=>{let n=tx(e,t);return sx(n),Qi(`useTextareaStyles_unstable`)(n),ex(n)});cx.displayName=`Textarea`;var lx=Vr(`r6pzz3z`,null,[`.r6pzz3z{overflow-y:hidden;overflow-y:clip;scrollbar-gutter:stable;}`]),ux=Vr(`r144vlu9`,null,[`.r144vlu9{overflow-y:hidden;}`]);function dx(){let e=lx(),t=ux(),{targetDocument:n}=Gi();return{disableBodyScroll:M.useCallback(()=>{n&&Math.floor(n.body.getBoundingClientRect().height)>(n.defaultView?.innerHeight??0)&&(n.documentElement.classList.add(e),n.body.classList.add(t))},[n,e,t]),enableBodyScroll:M.useCallback(()=>{n&&(n.documentElement.classList.remove(e),n.body.classList.remove(t))},[n,e,t])}}function fx(e,t){let{findFirstFocusable:n}=Gc(),{targetDocument:r}=Gi(),i=M.useRef(null);return M.useEffect(()=>{if(!e)return;let t=i.current&&n(i.current);if(t)t.focus();else{var r;(r=i.current)==null||r.focus()}},[n,e,t,r]),i}var px={open:!1,inertTrapFocus:!1,modalType:`modal`,isNestedDialog:!1,unmountOnClose:!0,dialogRef:{current:null},requestOpenChange(){}},mx=Qu(void 0),hx=mx.Provider,gx=e=>$u(mx,(t=px)=>e(t)),_x=!1,vx=M.createContext(void 0),yx=vx.Provider,bx=()=>M.useContext(vx)??_x,xx=M.createContext(void 0),Sx=xx.Provider,Cx=()=>M.useContext(xx),wx=Bp(cm,{outScale:.85,easing:vp.curveDecelerateMid,duration:vp.durationGentle,exitEasing:vp.curveAccelerateMin,exitDuration:vp.durationGentle}),Tx=e=>{let{children:t,modalType:n=`modal`,onOpenChange:r,inertTrapFocus:i=!1,unmountOnClose:a=!0}=e,o=ba(`dialog-title-`),[s,c]=Ex(t),[l,u]=sa({state:e.open,defaultState:e.defaultOpen,initialState:!1}),d=F(e=>{r?.(e.event,e),e.event.isDefaultPrevented()||u(e.open)}),f=fx(l,n),{modalAttributes:p,triggerAttributes:m}=sl({trapFocus:n!==`non-modal`,legacyTrapFocus:!i}),h=ed(mx);return{components:{surfaceMotion:wx},inertTrapFocus:i,open:l,modalType:n,content:c,trigger:s,requestOpenChange:d,dialogTitleId:o,isNestedDialog:h,unmountOnClose:a,dialogRef:f,modalAttributes:p,triggerAttributes:m,surfaceMotion:Zp(e.surfaceMotion,{elementType:wx,defaultProps:{visible:l,appear:a,unmountOnExit:a}})}};function Ex(e){let t=M.Children.toArray(e);switch(t.length){case 2:return t;case 1:return[void 0,t[0]];default:return[void 0,void 0]}}var Dx=(e,t)=>I(hx,{value:t.dialog,children:oo(yx,{value:t.dialogSurface,children:[e.trigger,e.content&&I(e.surfaceMotion,{children:I(Yp,{children:e.content})})]})});function Ox(e){let{modalType:t,open:n,dialogRef:r,dialogTitleId:i,isNestedDialog:a,inertTrapFocus:o,requestOpenChange:s,modalAttributes:c,triggerAttributes:l,unmountOnClose:u}=e;return{dialog:M.useMemo(()=>({open:n,modalType:t,dialogRef:r,dialogTitleId:i,isNestedDialog:a,inertTrapFocus:o,modalAttributes:c,triggerAttributes:l,unmountOnClose:u,requestOpenChange:s}),[n,t,r,i,a,o,c,l,u,s]),dialogSurface:!1}}var kx=M.memo(e=>{let t=Tx(e);return Dx(t,Ox(t))});kx.displayName=`Dialog`;var Ax=e=>{let t=bx(),{children:n,disableButtonEnhancement:r=!1,action:i=t?`close`:`open`}=e,a=Ba(n),o=gx(e=>e.requestOpenChange),{triggerAttributes:s}=sl(),c=F(e=>{var t,n;a==null||(t=(n=a.props).onClick)==null||t.call(n,e),e.isDefaultPrevented()||o({event:e,type:`triggerClick`,open:i===`open`})}),l={...a?.props,ref:Ma(a),onClick:c,...s},u=fd(a?.type===`button`||a?.type===`a`?a.type:`div`,{...l,type:`button`});return{children:Ra(n,r?l:u)}},jx=e=>e.children,Mx=e=>jx(Ax(e));Mx.displayName=`DialogTrigger`,Mx.isFluentTriggerComponent=!0;var Nx=(e,t)=>{let{position:n=`end`,fluid:r=!1}=e;return{components:{root:`div`},root:Jr(Ai(`div`,{ref:t,...e}),{elementType:`div`}),position:n,fluid:r}},Px=e=>I(e.root,{}),Fx={root:`fui-DialogActions`},Ix=Vr(`rhfpeu0`,null,{r:[`.rhfpeu0{gap:8px;height:fit-content;box-sizing:border-box;display:flex;grid-row-start:3;grid-row-end:3;}`],s:[`@media screen and (max-width: 480px){.rhfpeu0{flex-direction:column;justify-self:stretch;}}`]}),Lx=P({gridPositionEnd:{Bdqf98w:`f1a7i8kp`,Br312pm:`fd46tj4`,Bw0ie65:`fsyjsko`,Btsd7tp:`f1n00o3b`,ufxxby:`f1mvsp37`,Bq5p579:`flbz1vp`},gridPositionStart:{Bdqf98w:`fsxvdwy`,Br312pm:`fwpfdsa`,Bw0ie65:`f1e2fz10`,Ew0qkd:`f119phc2`,ufxxby:`f1j719yo`,Bq5p579:`flbz1vp`},fluidStart:{Bw0ie65:`fsyjsko`},fluidEnd:{Br312pm:`fwpfdsa`}},{d:[`.f1a7i8kp{justify-self:end;}`,`.fd46tj4{grid-column-start:2;}`,`.fsyjsko{grid-column-end:4;}`,`.fsxvdwy{justify-self:start;}`,`.fwpfdsa{grid-column-start:1;}`,`.f1e2fz10{grid-column-end:2;}`],m:[[`@media screen and (max-width: 480px){.f1n00o3b{grid-column-start:1;}}`,{m:`screen and (max-width: 480px)`}],[`@media screen and (max-width: 480px){.f1mvsp37{grid-row-start:4;}}`,{m:`screen and (max-width: 480px)`}],[`@media screen and (max-width: 480px){.flbz1vp{grid-row-end:auto;}}`,{m:`screen and (max-width: 480px)`}],[`@media screen and (max-width: 480px){.f119phc2{grid-column-end:4;}}`,{m:`screen and (max-width: 480px)`}],[`@media screen and (max-width: 480px){.f1j719yo{grid-row-start:3;}}`,{m:`screen and (max-width: 480px)`}]]}),Rx=e=>{"use no memo";let t=Ix(),n=Lx();return e.root.className=A(Fx.root,t,e.position===`start`&&n.gridPositionStart,e.position===`end`&&n.gridPositionEnd,e.fluid&&e.position===`start`&&n.fluidStart,e.fluid&&e.position===`end`&&n.fluidEnd,e.root.className),e},zx=M.forwardRef((e,t)=>{let n=Nx(e,t);return Rx(n),Qi(`useDialogActionsStyles_unstable`)(n),Px(n)});zx.displayName=`DialogActions`;var Bx=(e,t)=>({components:{root:`div`},root:Jr(Ai(e.as??`div`,{ref:t,...e}),{elementType:`div`})}),Vx=e=>I(e.root,{}),Hx={root:`fui-DialogBody`},Ux=Vr(`rhwx3p8`,null,{r:[`.rhwx3p8{overflow:unset;gap:8px;display:grid;max-height:calc(100vh - 2 * 24px);max-height:calc(100dvh - 2 * 24px);box-sizing:border-box;grid-template-rows:auto 1fr;grid-template-columns:1fr 1fr auto;}`],s:[`@media screen and (max-width: 480px){.rhwx3p8{max-width:100vw;grid-template-rows:auto 1fr auto;}}`,`@media screen and (max-height: 359px){.rhwx3p8{max-height:unset;}}`]}),Wx=e=>{"use no memo";let t=Ux();return e.root.className=A(Hx.root,t,e.root.className),e},Gx=M.forwardRef((e,t)=>{let n=Bx(e,t);return Wx(n),Qi(`useDialogBodyStyles_unstable`)(n),Vx(n)});Gx.displayName=`DialogBody`;var Kx={root:`fui-DialogTitle`,action:`fui-DialogTitle__action`},qx=Vr(`rxjm636`,null,[`.rxjm636{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}`]),Jx=P({rootWithoutAction:{Bw0ie65:`fsyjsko`}},{d:[`.fsyjsko{grid-column-end:4;}`]}),Yx=Vr(`r13kcrze`,null,[`.r13kcrze{grid-row-start:1;grid-row-end:1;grid-column-start:3;justify-self:end;align-self:start;}`]),Xx=Vr(`r2avt6e`,`roj2bbc`,{r:[`.r2avt6e{overflow:visible;padding:0;border-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}`,`.r2avt6e:focus{outline-style:none;}`,`.r2avt6e:focus-visible{outline-style:none;}`,`.r2avt6e[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}`,`.r2avt6e[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}`,`.roj2bbc{overflow:visible;padding:0;border-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}`,`.roj2bbc:focus{outline-style:none;}`,`.roj2bbc:focus-visible{outline-style:none;}`,`.roj2bbc[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}`,`.roj2bbc[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}`],s:[`@media (forced-colors: active){.r2avt6e[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}`,`@media (forced-colors: active){.roj2bbc[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}`]}),Zx=e=>{"use no memo";let t=qx(),n=Yx(),r=Jx();return e.root.className=A(Kx.root,t,!e.action&&r.rootWithoutAction,e.root.className),e.action&&(e.action.className=A(Kx.action,n,e.action.className)),e},Qx=(e,t)=>{let{action:n}=e,r=gx(e=>e.modalType),i=Xx();return{components:{root:`h2`,action:`div`},root:Jr(Ai(`h2`,{ref:t,id:gx(e=>e.dialogTitleId),...e}),{elementType:`h2`}),action:Yr(n,{renderByDefault:r===`non-modal`,defaultProps:{children:M.createElement(Mx,{disableButtonEnhancement:!0,action:`close`},M.createElement(`button`,{type:`button`,className:i,"aria-label":`close`},M.createElement(mp,null)))},elementType:`div`})}},$x=e=>oo(M.Fragment,{children:[I(e.root,{children:e.root.children}),e.action&&I(e.action,{})]}),eS=M.forwardRef((e,t)=>{let n=Qx(e,t);return Zx(n),Qi(`useDialogTitleStyles_unstable`)(n),$x(n)});eS.displayName=`DialogTitle`;var tS=om,nS=(e,t)=>{let n=Jp(),r=gx(e=>e.modalType),i=gx(e=>e.isNestedDialog),a=Cx()??i,o=gx(e=>e.modalAttributes),s=gx(e=>e.dialogRef),c=gx(e=>e.requestOpenChange),l=gx(e=>e.dialogTitleId),u=gx(e=>e.open),d=gx(e=>e.unmountOnClose),f=F(t=>{if(Qr(e.backdrop)){var n,i;(n=(i=e.backdrop).onClick)==null||n.call(i,t)}r===`modal`&&!t.isDefaultPrevented()&&c({event:t,open:!1,type:`backdropClick`})}),p=F(t=>{var n;(n=e.onKeyDown)==null||n.call(e,t),t.key===`Escape`&&!t.isDefaultPrevented()&&(c({event:t,open:!1,type:`escapeKeyDown`}),t.preventDefault())}),m=Yr(e.backdrop,{renderByDefault:r!==`non-modal`,defaultProps:{"aria-hidden":`true`},elementType:`div`}),h=m?.appearance;m&&(m.onClick=f,delete m.appearance);let{disableBodyScroll:g,enableBodyScroll:_}=dx();return ha(()=>{if(!u){_();return}if(!(i||r===`non-modal`))return g(),()=>_()},[u,r,i,g,_]),{components:{backdrop:`div`,root:`div`,backdropMotion:tS},open:u,backdrop:m,isNestedDialog:i,treatBackdropAsNested:a,backdropAppearance:h,unmountOnClose:d,mountNode:e.mountNode,root:Jr(Ai(`div`,{tabIndex:-1,role:r===`alert`?`alertdialog`:`dialog`,"aria-modal":r!==`non-modal`,"aria-labelledby":e[`aria-label`]?void 0:l,"aria-hidden":!d&&!u?!0:void 0,...e,...o,onKeyDown:p,ref:xa(t,n,s)}),{elementType:`div`}),backdropMotion:Zp(e.backdropMotion,{elementType:tS,defaultProps:{appear:d,visible:u}}),transitionStatus:void 0}},rS=(e,t)=>oo(y_,{mountNode:e.mountNode,children:[e.backdrop&&e.backdropMotion&&I(e.backdropMotion,{children:I(e.backdrop,{})}),I(Xp,{children:I(yx,{value:t.dialogSurface,children:I(e.root,{})})})]}),iS={root:`fui-DialogSurface`,backdrop:`fui-DialogSurface__backdrop`},aS=Vr(`r1u3t6p6`,`r5coedp`,{r:[`.r1u3t6p6{inset:0;padding:24px;margin:auto;border-style:none;overflow:unset;border:1px solid var(--colorTransparentStroke);border-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;max-height:100dvh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);box-shadow:var(--shadow64);}`,`.r1u3t6p6:focus{outline-style:none;}`,`.r1u3t6p6:focus-visible{outline-style:none;}`,`.r1u3t6p6[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}`,`.r1u3t6p6[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}`,`.r5coedp{inset:0;padding:24px;margin:auto;border-style:none;overflow:unset;border:1px solid var(--colorTransparentStroke);border-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;max-height:100dvh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);box-shadow:var(--shadow64);}`,`.r5coedp:focus{outline-style:none;}`,`.r5coedp:focus-visible{outline-style:none;}`,`.r5coedp[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}`,`.r5coedp[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}`],s:[`@media (forced-colors: active){.r1u3t6p6[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}`,`@media screen and (max-width: 480px){.r1u3t6p6{max-width:100vw;}}`,`@media screen and (max-height: 359px){.r1u3t6p6{overflow-y:auto;padding-right:calc(24px - 4px);border-right-width:4px;border-top-width:4px;border-bottom-width:4px;}}`,`@media (forced-colors: active){.r5coedp[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}`,`@media screen and (max-width: 480px){.r5coedp{max-width:100vw;}}`,`@media screen and (max-height: 359px){.r5coedp{overflow-y:auto;padding-left:calc(24px - 4px);border-left-width:4px;border-top-width:4px;border-bottom-width:4px;}}`]}),oS=Vr(`r1e18s3l`,null,[`.r1e18s3l{inset:0px;background-color:var(--colorBackgroundOverlay);position:fixed;}`]),sS=P({nestedDialogBackdrop:{De3pzq:`f1c21dwh`},dialogHidden:{Bkecrkj:`f1aehjj5`}},{d:[`.f1c21dwh{background-color:var(--colorTransparentBackground);}`,`.f1aehjj5{pointer-events:none;}`]}),cS=e=>{"use no memo";let{root:t,backdrop:n,open:r,unmountOnClose:i,treatBackdropAsNested:a,backdropAppearance:o}=e,s=aS(),c=oS(),l=sS(),u=o?o===`transparent`:a,d=!i&&!r;return t.className=A(iS.root,s,d&&l.dialogHidden,t.className),n&&(n.className=A(iS.backdrop,c,d&&l.dialogHidden,u&&l.nestedDialogBackdrop,n.className)),e};function lS(e){return{dialogSurface:!0}}var uS=M.forwardRef((e,t)=>{let n=nS(e,t),r=lS(n);return cS(n),Qi(`useDialogSurfaceStyles_unstable`)(n),rS(n,r)});uS.displayName=`DialogSurface`;var dS=(e,t)=>({components:{root:`div`},root:Jr(Ai(e.as??`div`,{ref:t,...e}),{elementType:`div`})}),fS=e=>I(e.root,{}),pS={root:`fui-DialogContent`},mS=Vr(`r1v5zwsm`,null,{r:[`.r1v5zwsm{padding:var(--strokeWidthThick);margin:calc(var(--strokeWidthThick) * -1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);overflow-y:auto;min-height:32px;box-sizing:border-box;grid-row-start:2;grid-row-end:2;grid-column-start:1;grid-column-end:4;}`],s:[`@media screen and (max-height: 359px){.r1v5zwsm{overflow-y:unset;}}`]}),hS=e=>{"use no memo";let t=mS();return e.root.className=A(pS.root,t,e.root.className),e},gS=M.forwardRef((e,t)=>{let n=dS(e,t);return hS(n),Qi(`useDialogContentStyles_unstable`)(n),fS(n)});gS.displayName=`DialogContent`;var _S=()=>void 0,vS={allRowsSelected:!1,clearRows:_S,deselectRow:_S,isRowSelected:()=>!1,selectRow:_S,selectedRows:new Set,someRowsSelected:!1,toggleAllRows:_S,toggleRow:_S,selectionMode:`multiselect`};function yS(e){"use no memo";return t=>bS(t,e)}function bS(e,t){let{items:n,getRowId:r}=e,{selectionMode:i,defaultSelectedItems:a,selectedItems:o,onSelectionChange:s}=t,[c,l]=Ja({selectionMode:i,defaultSelectedItems:a,selectedItems:o,onSelectionChange:s}),u=M.useMemo(()=>{let e=new Set;for(let t=0;t<n.length;t++)e.add(r?.(n[t])??t);return e},[n,r]),d=M.useMemo(()=>{if(i===`single`){let e=Array.from(c)[0];return u.has(e)}if(c.size<u.size||u.size===0)return!1;let e=!0;return u.forEach(t=>{c.has(t)||(e=!1)}),e},[u,c,i]),f=M.useMemo(()=>{if(c.size<=0)return!1;let e=!1;return u.forEach(t=>{c.has(t)&&(e=!0)}),e},[u,c]),p=F(e=>{l.toggleAllItems(e,n.map((e,t)=>r?.(e)??t))}),m=F((e,t)=>l.toggleItem(e,t)),h=F((e,t)=>l.deselectItem(e,t)),g=F((e,t)=>l.selectItem(e,t)),_=e=>l.isSelected(e),v=F(e=>l.clearItems(e));return{...e,selection:{selectionMode:i,someRowsSelected:f,allRowsSelected:d,selectedRows:c,toggleRow:m,toggleAllRows:p,clearRows:v,deselectRow:h,selectRow:g,isRowSelected:_}}}var xS=()=>void 0,SS={getSortDirection:()=>`ascending`,setColumnSort:xS,sort:e=>[...e],sortColumn:void 0,sortDirection:`ascending`,toggleColumnSort:xS};function CS(e){"use no memo";return t=>wS(t,e)}function wS(e,t){let{columns:n}=e,{sortState:r,defaultSortState:i,onSortChange:a=xS}=t,[o,s]=sa({initialState:{sortDirection:`ascending`,sortColumn:void 0},defaultState:i,state:r}),{sortColumn:c,sortDirection:l}=o,u=F(a),d=M.useCallback((e,t)=>{s(n=>{let r={...n,sortColumn:t};return n.sortColumn===t?r.sortDirection=n.sortDirection===`ascending`?`descending`:`ascending`:r.sortDirection=`ascending`,u?.(e,r),r})},[u,s]),f=(e,t,n)=>{let r={sortColumn:t,sortDirection:n};u?.(e,r),s(r)},p=M.useCallback(e=>e.slice().sort((e,t)=>{let r=n.find(e=>e.columnId===c);if(!r?.compare)return 0;let i=l===`ascending`?1:-1;return r.compare(e.item,t.item)*i}),[n,c,l]),m=e=>c===e?l:void 0;return{...e,sort:{sort:p,sortColumn:c,sortDirection:l,setColumnSort:f,toggleColumnSort:d,getSortDirection:m}}}var TS=(e,t)=>{let n=F(t=>{var n;(n=e.onClick)==null||n.call(e,t),t.stopPropagation()});return{components:{root:`div`},root:Jr(Ai(`div`,{ref:t,...e,onClick:n}),{elementType:`div`})}},ES=e=>I(e.root,{}),DS={root:`fui-TableResizeHandle`},OS=P({root:{qhf8xq:`f1euv43f`,j35jbq:[`f1e31b4d`,`f1vgc2s3`],Bhzewxz:`f15twtuk`,B5kzvoi:`f1yab3r1`,a9b677:`fjw5fx7`,jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:`fg06o1j`,Bceei9c:`fc3en1c`,abs64n:`fk73vx1`,Bmy1vo4:`f13u1uyl`,B3o57yi:`fezquic`,Bj3rh1h:`f19g0ac`,B3cna0y:`f1tkae59`,Brovlpu:`ftqa4ok`,B7zu5sd:`f15pjodv`,Bsft5z2:`f1rcdj94`,ap17g6:`f2gz7yw`,a2br6o:`ff2ryt5`,E3zdtr:`f1mdlcz9`,Eqx8gd:[`f10awi5f`,`f1nzedbg`],bn5sak:`frwkxtg`,By385i5:`fo72kxq`,Bjyk6c5:`fdlpgxj`}},{d:[`.f1euv43f{position:absolute;}`,`.f1e31b4d{right:0;}`,`.f1vgc2s3{left:0;}`,`.f15twtuk{top:0;}`,`.f1yab3r1{bottom:0;}`,`.fjw5fx7{width:16px;}`,[`.fg06o1j{margin:0 -8px;}`,{p:-1}],`.fc3en1c{cursor:col-resize;}`,`.fk73vx1{opacity:0;}`,`.f13u1uyl{transition-property:opacity;}`,`.fezquic{transition-duration:.2s;}`,`.f19g0ac{z-index:1;}`,`.f1rcdj94::after{content:" ";}`,`.f2gz7yw::after{display:block;}`,`.ff2ryt5::after{width:1px;}`,`.f1mdlcz9::after{position:absolute;}`,`.f10awi5f::after{left:50%;}`,`.f1nzedbg::after{right:50%;}`,`.frwkxtg::after{top:0;}`,`.fo72kxq::after{bottom:0;}`,`.fdlpgxj::after{background-color:var(--colorNeutralStroke1);}`],f:[`.f1tkae59:focus{opacity:1;}`,`.ftqa4ok:focus{outline-style:none;}`],h:[`.f15pjodv:hover{opacity:1;}`]}),kS=e=>{"use no memo";let t=OS();return e.root.className=A(DS.root,t.root,e.root.className),e},AS=M.forwardRef((e,t)=>{let n=TS(e,t);return kS(n),Qi(`useTableResizeHandleStyles_unstable`)(n),ES(n)});AS.displayName=`TableResizeHandle`;function jS(){let[e,t]=M.useState(0),n=M.useRef(void 0),r=M.useRef(null),{targetDocument:i}=Gi(),a=M.useCallback(()=>{t(n.current?.getBoundingClientRect().width||0)},[]),o=M.useCallback(e=>{if(i&&(!e&&r.current&&n.current&&r.current.unobserve(n.current),n.current=void 0,e?.parentElement)){var t;n.current=e.parentElement,a(),(t=r.current)==null||t.observe(n.current)}},[i,a]);return M.useEffect(()=>{if(r.current=MS(i,a),!(!n.current||!r.current))return r.current.observe(n.current),()=>{var e;(e=r.current)==null||e.disconnect()}},[a,i]),{width:e,measureElementRef:o}}function MS(e,t){return e!=null&&e.defaultView?.ResizeObserver?new e.defaultView.ResizeObserver(t):null}function NS(e){let t=M.useRef(0),n=M.useRef(0),r=M.useRef(void 0),[i,a]=M.useState(!1),{targetDocument:o}=Gi(),{getColumnWidth:s,setColumnWidth:c}=e,l=M.useCallback(e=>{let{clientX:i}=Ua(e),a=i-t.current;n.current+=a,r.current&&c(e,{columnId:r.current,width:n.current}),t.current=i},[c]),[u]=aa(),d=M.useCallback(e=>{u(()=>l(e))},[u,l]),f=M.useCallback(e=>{Ha(e)&&(o?.removeEventListener(`mouseup`,f),o?.removeEventListener(`mousemove`,d)),Va(e)&&(o?.removeEventListener(`touchend`,f),o?.removeEventListener(`touchmove`,d)),a(!1)},[d,o]);return{getOnMouseDown:M.useCallback(e=>i=>{if(n.current=s(e),t.current=Ua(i).clientX,r.current=e,Ha(i)){if(i.target!==i.currentTarget||i.button!==0)return;o?.addEventListener(`mouseup`,f),o?.addEventListener(`mousemove`,d),a(!0)}Va(i)&&(o?.addEventListener(`touchend`,f),o?.addEventListener(`touchmove`,d),a(!0))},[s,d,f,o]),dragging:i}}var PS=150,FS=100;function IS(e,t=[],n={}){let r=!1,i=new Map(t.map(e=>[e.columnId,e])),a=e.map(e=>{let t=i.get(e.columnId);if(t){let{idealWidth:i=t.idealWidth,minWidth:a=t.minWidth,padding:o=t.padding}=n[e.columnId]??{};return i!==t.idealWidth||a!==t.minWidth||o!==t.padding?(r=!0,{...t,idealWidth:i,width:i,minWidth:a,padding:o}):t}let{defaultWidth:a,idealWidth:o=PS,minWidth:s=FS,padding:c}=n[e.columnId]??{};return r=!0,{columnId:e.columnId,width:Math.max(a??o,s),minWidth:s,idealWidth:Math.max(a??o,s),padding:c??16}});if(a.length!==t.length||r){let e=a.find(e=>e.width>e.idealWidth);e&&(e.width=e.idealWidth),r=!0}return r?a:t}function LS(e,t){return e.find(e=>e.columnId===t)}function RS(e,t){return e[t]}function zS(e){return e.reduce((e,t)=>e+t.width+t.padding,0)}function BS(e,t){return LS(e,t)?.width??0}function VS(e,t,n,r){let i=LS(e,t);if(!i||i?.[n]===r)return e;let a={...i,[n]:r};return e.reduce((e,t)=>t.columnId===a.columnId?[...e,a]:[...e,t],[])}function HS(e,t){let n=e,r=zS(n);if(r<t){let e=t-r,i=0;for(;i<n.length&&e>0;){let t=RS(n,i);if(!t)break;let r=Math.min(t.idealWidth-t.width,e);if(n=VS(n,t.columnId,`width`,t.width+r),e-=r,i===n.length-1&&e!==0){let t=RS(n,i);t&&(n=VS(n,t.columnId,`width`,t.width+e))}i++}}else if(r>=t){let e=r-t,i=n.length-1;for(;i>=0&&e>0;){let t=RS(n,i);if(!t){i--;continue}if(t.width>t.minWidth){let r=Math.min(t.width-t.minWidth,e);e-=r,n=VS(n,t.columnId,`width`,t.width-r)}i--}}return n}var US=e=>(t,n)=>{switch(n.type){case`CONTAINER_WIDTH_UPDATED`:return{...t,containerWidth:n.containerWidth,columnWidthState:e?HS(t.columnWidthState,n.containerWidth):t.columnWidthState};case`COLUMNS_UPDATED`:let r=IS(n.columns,t.columnWidthState,t.columnSizingOptions);return{...t,columns:n.columns,columnWidthState:e?HS(r,t.containerWidth):r};case`COLUMN_SIZING_OPTIONS_UPDATED`:let i=IS(t.columns,t.columnWidthState,n.columnSizingOptions);return{...t,columnSizingOptions:n.columnSizingOptions,columnWidthState:e?HS(i,t.containerWidth):i};case`SET_COLUMN_WIDTH`:let{columnId:a,width:o}=n,{containerWidth:s}=t,c=LS(t.columnWidthState,a),l=[...t.columnWidthState];return c?(l=VS(l,a,`width`,o),l=VS(l,a,`idealWidth`,o),e&&(l=HS(l,s)),{...t,columnWidthState:l}):t}};function WS(e,t,n={}){let{onColumnResize:r,columnSizingOptions:i,autoFitColumns:a=!0}=n,o=M.useMemo(()=>US(a),[a]),[s,c]=M.useReducer(o,{columns:e,containerWidth:0,columnWidthState:IS(e,void 0,i),columnSizingOptions:i});ha(()=>{c({type:`CONTAINER_WIDTH_UPDATED`,containerWidth:t})},[t]),ha(()=>{c({type:`COLUMNS_UPDATED`,columns:e})},[e]),ha(()=>{c({type:`COLUMN_SIZING_OPTIONS_UPDATED`,columnSizingOptions:i})},[i]);let l=F((e,t)=>{let{width:n}=t,{columnId:i}=t,a=LS(s.columnWidthState,i);a&&(n=Math.max(a.minWidth||0,n),r&&r(e,{columnId:i,width:n}),c({type:`SET_COLUMN_WIDTH`,columnId:i,width:n}))});return{getColumnById:M.useCallback(e=>LS(s.columnWidthState,e),[s.columnWidthState]),getColumns:M.useCallback(()=>s.columnWidthState,[s.columnWidthState]),getColumnWidth:M.useCallback(e=>BS(s.columnWidthState,e),[s.columnWidthState]),setColumnWidth:l}}var GS=20,KS=td,qS=1/4;function JS(e){let[t,n]=M.useState(),r=M.useRef(void 0),{findPrevFocusable:i}=Gc(),a=M.useRef(e);M.useEffect(()=>{a.current=e},[e]);let[o]=M.useState(()=>new Map),s=F(e=>{if(!t)return;let n=a.current.getColumnWidth(t),r=e.getModifierState(KS),i=()=>{e.preventDefault(),e.stopPropagation()};switch(e.key){case id:i(),a.current.setColumnWidth(e.nativeEvent,{columnId:t,width:n-(r?GS*qS:GS)});return;case ad:i(),a.current.setColumnWidth(e.nativeEvent,{columnId:t,width:n+(r?GS*qS:GS)});return;case` `:case nd:case dd:var s,c;i(),(c=o.get(t))==null||(s=c.current)==null||s.blur();break}}),c=M.useCallback(e=>{var t;n(e),(t=r.current)==null||t.call(r,e,!0);let i=o.get(e)?.current;i&&(i.setAttribute(`tabindex`,`-1`),i.tabIndex=-1,i.focus())},[o]),l=M.useCallback(()=>{var e;if(!t)return;(e=r.current)==null||e.call(r,t,!1);let a=o.get(t)?.current;if(a){var s;(s=i(a))==null||s.focus(),a.removeAttribute(`tabindex`)}n(void 0)},[t,i,o]),u=(e,i)=>{r.current=i,t?e&&t!==e?(c(e),n(e)):l():c(e)},d=M.useCallback(e=>{let t=o.get(e)||M.createRef();return o.set(e,t),t},[o]),f=Bc({focusable:{ignoreKeydown:{ArrowLeft:!0,ArrowRight:!0}}});return{toggleInteractiveMode:u,columnId:t,getKeyboardResizingProps:M.useCallback((e,n)=>({onKeyDown:s,onBlur:l,ref:d(e),role:`separator`,"aria-label":`Resize column`,"aria-valuetext":`${n} pixels`,"aria-hidden":e!==t,tabIndex:e===t?0:void 0,...f}),[t,l,d,s,f])}}var YS={getColumnWidths:()=>[],getOnMouseDown:()=>()=>null,setColumnWidth:()=>null,getTableProps:()=>({}),getTableHeaderCellProps:()=>({style:{},columnId:``}),getTableCellProps:()=>({style:{},columnId:``}),enableKeyboardMode:()=>()=>null};function XS(e){"use no memo";return t=>QS(t,{autoFitColumns:!0,...e})}function ZS(e,t){let n=e.width;return{width:n,minWidth:n,maxWidth:n,...t?{pointerEvents:`none`}:{}}}function QS(e,t={}){let{columns:n}=e,{width:r,measureElementRef:i}=jS(),a=WS(n,r+(t?.containerWidthOffset||0),t),o=NS(a),{toggleInteractiveMode:s,getKeyboardResizingProps:c}=JS(a),{autoFitColumns:l}=t,u=M.useCallback((e,t)=>n=>{n.preventDefault(),n.nativeEvent.stopPropagation(),s(e,t)},[s]),{getColumnById:d,setColumnWidth:f,getColumns:p}=a,{getOnMouseDown:m,dragging:h}=o;return{...e,tableRef:i,columnSizing_unstable:{getOnMouseDown:m,setColumnWidth:(e,t)=>f(void 0,{columnId:e,width:t}),getColumnWidths:p,getTableProps:(e={})=>({...e,style:{minWidth:`fit-content`,...e.style||{}}}),getTableHeaderCellProps:M.useCallback(e=>{let t=d(e),r=n[n.length-1]?.columnId===e&&l?null:M.createElement(AS,{onMouseDown:m(e),onTouchStart:m(e),...c(e,t?.width||0)});return t?{style:ZS(t,h),aside:r}:{}},[d,n,h,c,m,l]),getTableCellProps:M.useCallback(e=>{let t=d(e);return t?{style:ZS(t)}:{}},[d]),enableKeyboardMode:u}}}var $S=e=>e,eC={selection:vS,sort:SS,getRows:()=>[],getRowId:()=>``,items:[],columns:[],columnSizing_unstable:YS,tableRef:M.createRef()};function tC(e,t=[]){let{items:n,getRowId:r,columns:i}=e,a={getRowId:r,items:n,columns:i,getRows:M.useCallback((e=$S)=>n.map((t,n)=>e({item:t,rowId:r?.(t)??n})),[n,r]),selection:vS,sort:SS,columnSizing_unstable:YS,tableRef:M.createRef()};return t.reduce((e,t)=>t(e),a)}var nC=()=>0,rC=()=>null,iC=()=>null;function aC(e){let{columnId:t,renderCell:n=rC,renderHeaderCell:r=iC,compare:i=nC}=e;return{columnId:t,renderCell:n,renderHeaderCell:r,compare:i}}function oC(){let e=Vc({axis:`horizontal`}),t=Vc({axis:`grid`}),n=Uc({tabBehavior:`limited-trap-focus`}),{findFirstFocusable:r}=Gc(),{targetDocument:i}=Gi(),a=cl(e,n);return{onTableKeyDown:M.useCallback(e=>{if(!i)return;let t=i.activeElement;if(!t||!e.currentTarget.contains(t))return;let n=t.getAttribute(`role`);if(e.key===`ArrowRight`&&n===`row`&&Fa(t)){var a;(a=r(t))==null||a.focus()}if(n===`row`)return;let o=(()=>{let e=Fa(t)?t:null;for(;e;){let t=e.getAttribute(`role`);if(t===`cell`||t===`gridcell`)return!0;e=e.parentElement}return!1})();if(e.key===`ArrowLeft`&&o){t.dispatchEvent(new ls({action:So.Escape}));return}(e.key===`ArrowDown`||e.key===`ArrowUp`)&&o&&(t.dispatchEvent(new ls({action:So.Escape})),t=i.activeElement,t&&t.dispatchEvent(new cs({key:bo[e.key]})))},[i,r]),tableTabsterAttribute:t,tableRowTabsterAttribute:a}}var sC=M.createContext(void 0),cC={size:`medium`,noNativeElements:!1,sortable:!1},lC=sC.Provider,uC=()=>M.useContext(sC)??cC,dC=(e,t)=>{let{noNativeElements:n,size:r}=uC(),i=e.as??n?`div`:`td`;return{components:{root:i},root:Jr(Ai(i,{ref:t,role:i===`div`?`cell`:void 0,...e}),{elementType:i}),noNativeElements:n,size:r}},fC=e=>I(e.root,{}),pC={root:`fui-TableCell`},mC=P({root:{mc9l5x:`f15pt5es`,ha4doy:`fmrv4ls`},medium:{Bqenvij:`f1ft4266`},small:{Bqenvij:`fbsu25e`},"extra-small":{Bqenvij:`frvgh55`}},{d:[`.f15pt5es{display:table-cell;}`,`.fmrv4ls{vertical-align:middle;}`,`.f1ft4266{height:44px;}`,`.fbsu25e{height:34px;}`,`.frvgh55{height:24px;}`]}),hC=P({root:{mc9l5x:`f22iagw`,Bf4jedk:`f10tiqix`,Bt984gj:`f122n59`,xawz:0,Bh6795r:0,Bnnss6s:0,fkmc3a:`f1izfyrr`},medium:{sshi5w:`f5pgtk9`},small:{sshi5w:`fcep9tg`},"extra-small":{sshi5w:`f1pha7fy`}},{d:[`.f22iagw{display:flex;}`,`.f10tiqix{min-width:0px;}`,`.f122n59{align-items:center;}`,[`.f1izfyrr{flex:1 1 0px;}`,{p:-1}],`.f5pgtk9{min-height:44px;}`,`.fcep9tg{min-height:34px;}`,`.f1pha7fy{min-height:24px;}`]}),gC=P({root:{qhf8xq:`f10pi13n`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f3gpkru`,Bfpq7zp:0,g9k6zt:0,Bn4voq9:0,giviqs:`f1dxfoyt`,Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:`f2krc9w`}},{d:[`.f10pi13n{position:relative;}`,[`.f3gpkru{padding:0px var(--spacingHorizontalS);}`,{p:-1}],[`.f1dxfoyt[data-fui-focus-visible]{outline:2px solid var(--colorStrokeFocus2);}`,{p:-1}],[`.f2krc9w[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);}`,{p:-1}]]}),_C=e=>{"use no memo";let t=gC(),n={table:mC(),flex:hC()};return e.root.className=A(pC.root,t.root,e.noNativeElements?n.flex.root:n.table.root,e.noNativeElements?n.flex[e.size]:n.table[e.size],e.root.className),e},vC=M.createContext(void 0),yC=``,bC=vC.Provider,xC=()=>M.useContext(vC)===yC,SC=(e,t)=>{let{noNativeElements:n,size:r}=uC(),i=e.as??n?`div`:`tr`,a=Xc(),o=tl(),s=xC();return{components:{root:i},root:Jr(Ai(i,{ref:xa(t,a,o),role:i===`div`?`row`:void 0,...e}),{elementType:i}),size:r,noNativeElements:n,appearance:e.appearance??`none`,isHeaderRow:s}},CC={root:`fui-TableSelectionCell`,checkboxIndicator:`fui-TableSelectionCell__checkboxIndicator`,radioIndicator:`fui-TableSelectionCell__radioIndicator`},wC=P({root:{mc9l5x:`f15pt5es`,a9b677:`fksc0bp`}},{d:[`.f15pt5es{display:table-cell;}`,`.fksc0bp{width:44px;}`]}),TC=P({root:{mc9l5x:`f22iagw`,xawz:0,Bh6795r:0,Bnnss6s:0,fkmc3a:`f1izfyrr`,Bf4jedk:`fvrlu0f`,B2u0y6b:`f1c71y05`,Brf1p80:`f4d9j23`}},{d:[`.f22iagw{display:flex;}`,[`.f1izfyrr{flex:1 1 0px;}`,{p:-1}],`.fvrlu0f{min-width:44px;}`,`.f1c71y05{max-width:44px;}`,`.f4d9j23{justify-content:center;}`]}),EC=P({root:{fsow6f:`f17mccla`,Huce71:`fz5stix`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f1mk8lai`,Bfpq7zp:0,g9k6zt:0,Bn4voq9:0,giviqs:`f1dxfoyt`,Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:`f2krc9w`},radioIndicator:{mc9l5x:`f22iagw`,Bh6795r:`fqerorx`,Bt984gj:`f122n59`,Brf1p80:`f4d9j23`},subtle:{abs64n:`fk73vx1`,B8a84jv:`f1y7ij6c`},hidden:{abs64n:`fk73vx1`}},{d:[`.f17mccla{text-align:center;}`,`.fz5stix{white-space:nowrap;}`,[`.f1mk8lai{padding:0;}`,{p:-1}],[`.f1dxfoyt[data-fui-focus-visible]{outline:2px solid var(--colorStrokeFocus2);}`,{p:-1}],[`.f2krc9w[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);}`,{p:-1}],`.f22iagw{display:flex;}`,`.fqerorx{flex-grow:1;}`,`.f122n59{align-items:center;}`,`.f4d9j23{justify-content:center;}`,`.fk73vx1{opacity:0;}`,`.f1y7ij6c[data-fui-focus-within]:focus-within{opacity:1;}`]}),DC=e=>{"use no memo";let t=EC(),n={table:wC(),flex:TC()};return e.root.className=A(CC.root,t.root,e.noNativeElements?n.flex.root:n.table.root,e.subtle&&e.checked===!1&&t.subtle,e.hidden&&t.hidden,e.root.className),e.checkboxIndicator&&(e.checkboxIndicator.className=A(CC.checkboxIndicator,e.checkboxIndicator.className)),e.radioIndicator&&(e.radioIndicator.className=A(CC.radioIndicator,t.radioIndicator,e.radioIndicator.className)),e},OC={root:`fui-TableRow`},kC=P({root:{mc9l5x:`f1u0rzck`}},{d:[`.f1u0rzck{display:table-row;}`]}),AC=P({root:{mc9l5x:`f22iagw`,Bt984gj:`f122n59`}},{d:[`.f22iagw{display:flex;}`,`.f122n59{align-items:center;}`]}),jC=P({root:{sj55zd:`f19n0e5`,B7ck84d:`f1ewtqcl`,Bconypa:`f1jazu75`,B6guboy:`f1xeqee6`,Bfpq7zp:0,g9k6zt:0,Bn4voq9:0,giviqs:`f1dxfoyt`,Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:`f2krc9w`},rootInteractive:{B6guboy:`f1xeqee6`,ecr2s2:`f1wfn5kd`,lj723h:`f1g4hkjv`,B43xm9u:`f15ngxrw`,i921ia:`fjbbrdp`,Jwef8y:`f1t94bn6`,Bi91k9c:`feu1g3u`,Bpt6rm4:`f1uorfem`,ff6mpl:`fw60kww`,Bahaeuw:`f1v3eptx`,F230oe:`f8gmj8i`,Bdw8ktp:[`f1ap8nzx`,`fjag8bx`],Bj1xduy:`f1igan7k`,Bhh2cfd:[`fjag8bx`,`f1ap8nzx`]},medium:{B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:`f1facbz3`},small:{B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:`f1facbz3`},"extra-small":{Be2twd7:`fy9rknc`},brand:{De3pzq:`f16xkysk`,g2u3we:`f1bh3yvw`,h3c5rm:[`fmi79ni`,`f11fozsx`],B9xav0g:`fnzw4c6`,zhjwy3:[`f11fozsx`,`fmi79ni`],ecr2s2:`f7tkmfy`,lj723h:`f1r2dosr`,wmvzou:0,sc4o1m:0,wymq9i:0,u9orzk:0,puiv5t:0,Bosien3:0,b2z72d:0,Beulxaw:0,B57pkaw:0,Jcjdmf:0,B8qgbzl:0,Bbmb0sr:0,B14q8qp:0,Bcq6wej:0,Byz1pjr:0,kr9cjb:0,Ff9ifp:`f1msmgpi`,Bmclvqj:0,psczho:0,B0tx59b:0,sk7i8k:0,zlwzm7:`fbo0xvd`,Bkp2nk:`fjuvmhu`,gy0h4g:`f1kvufhq`},neutral:{wmvzou:0,sc4o1m:0,wymq9i:0,u9orzk:0,puiv5t:0,Bosien3:0,b2z72d:0,Beulxaw:0,B57pkaw:0,Jcjdmf:0,B8qgbzl:0,Bbmb0sr:0,B14q8qp:0,Bcq6wej:0,Byz1pjr:0,kr9cjb:0,Ff9ifp:`f1msmgpi`,Bmclvqj:0,psczho:0,B0tx59b:0,sk7i8k:0,zlwzm7:`fbo0xvd`,Bkp2nk:`fjuvmhu`,gy0h4g:`f1kvufhq`,De3pzq:`fq5gl1p`,sj55zd:`f1cgsbmv`,ecr2s2:`fa9o754`,g2u3we:`frmsihh`,h3c5rm:[`frttxa5`,`f11o2r7f`],B9xav0g:`fem5et0`,zhjwy3:[`f11o2r7f`,`frttxa5`]},none:{}},{d:[`.f19n0e5{color:var(--colorNeutralForeground1);}`,`.f1ewtqcl{box-sizing:border-box;}`,`.f1jazu75[data-fui-focus-within]:focus-within .fui-TableSelectionCell{opacity:1;}`,`.f1xeqee6[data-fui-focus-within]:focus-within .fui-TableCellActions{opacity:1;}`,[`.f1dxfoyt[data-fui-focus-visible]{outline:2px solid var(--colorStrokeFocus2);}`,{p:-1}],[`.f2krc9w[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);}`,{p:-1}],[`.f1facbz3{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStroke2);}`,{p:-1}],[`.f1facbz3{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStroke2);}`,{p:-1}],`.fy9rknc{font-size:var(--fontSizeBase200);}`,`.f16xkysk{background-color:var(--colorBrandBackground2);}`,`.f1bh3yvw{border-top-color:var(--colorTransparentStrokeInteractive);}`,`.fmi79ni{border-right-color:var(--colorTransparentStrokeInteractive);}`,`.f11fozsx{border-left-color:var(--colorTransparentStrokeInteractive);}`,`.fnzw4c6{border-bottom-color:var(--colorTransparentStrokeInteractive);}`,`.fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}`,`.f1cgsbmv{color:var(--colorNeutralForeground1Hover);}`,`.frmsihh{border-top-color:var(--colorNeutralStrokeOnBrand);}`,`.frttxa5{border-right-color:var(--colorNeutralStrokeOnBrand);}`,`.f11o2r7f{border-left-color:var(--colorNeutralStrokeOnBrand);}`,`.fem5et0{border-bottom-color:var(--colorNeutralStrokeOnBrand);}`],a:[`.f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}`,`.f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}`,`.f15ngxrw:active .fui-TableCellActions{opacity:1;}`,`.fjbbrdp:active .fui-TableSelectionCell{opacity:1;}`,`.f7tkmfy:active{background-color:var(--colorBrandBackground2);}`,`.f1r2dosr:active{color:var(--colorNeutralForeground1);}`,`.fa9o754:active{background-color:var(--colorSubtleBackgroundSelected);}`],h:[`.f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}`,`.feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}`,`.f1uorfem:hover .fui-TableCellActions{opacity:1;}`,`.fw60kww:hover .fui-TableSelectionCell{opacity:1;}`],m:[[`@media (forced-colors: active){.f1v3eptx:hover{color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f8gmj8i:hover{border-top-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1ap8nzx:hover{border-right-color:Highlight;}.fjag8bx:hover{border-left-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1igan7k:hover{border-bottom-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1msmgpi{border:2px solid transparent;}}`,{p:-2,m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fbo0xvd{border-radius:var(--borderRadiusMedium);}}`,{p:-1,m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fjuvmhu{box-sizing:border-box;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1kvufhq:focus-visible{outline-offset:-4px;}}`,{m:`(forced-colors: active)`}]]}),MC=e=>{"use no memo";let t=jC(),n={table:kC(),flex:AC()};return e.root.className=A(OC.root,t.root,!e.isHeaderRow&&t.rootInteractive,t[e.size],e.noNativeElements?n.flex.root:n.table.root,t[e.appearance],e.root.className),e},NC=(e,t)=>{let{noNativeElements:n}=uC(),r=e.as??n?`div`:`tbody`;return{components:{root:r},root:Jr(Ai(r,{ref:t,role:r===`div`?`rowgroup`:void 0,...e}),{elementType:r}),noNativeElements:n}},PC=P({root:{mc9l5x:`f1tp1avn`}},{d:[`.f1tp1avn{display:table-row-group;}`]}),FC=P({root:{mc9l5x:`ftgm304`}},{d:[`.ftgm304{display:block;}`]}),IC=`fui-TableBody`,LC=e=>{"use no memo";let t={table:PC(),flex:FC()};return e.root.className=A(IC,e.noNativeElements?t.flex.root:t.table.root,e.root.className),e},RC=(e,t)=>{let n=e.as??e.noNativeElements?`div`:`table`;return{components:{root:n},root:Jr(Ai(n,{ref:t,role:n===`div`?`table`:void 0,...e}),{elementType:n}),size:e.size??`medium`,noNativeElements:e.noNativeElements??!1,sortable:e.sortable??!1}},zC=(e,t)=>I(lC,{value:t.table,children:I(e.root,{})}),BC=`fui-Table`,VC=P({root:{mc9l5x:`f1w4nmp0`,ha4doy:`fmrv4ls`,a9b677:`fly5x3f`,B73mfa3:`f14m3nip`}},{d:[`.f1w4nmp0{display:table;}`,`.fmrv4ls{vertical-align:middle;}`,`.fly5x3f{width:100%;}`,`.f14m3nip{table-layout:fixed;}`]}),HC=P({root:{mc9l5x:`ftgm304`}},{d:[`.ftgm304{display:block;}`]}),UC=P({root:{po53p8:`fgkb47j`,De3pzq:`fhovq9v`}},{d:[`.fgkb47j{border-collapse:collapse;}`,`.fhovq9v{background-color:var(--colorSubtleBackground);}`]}),WC=e=>{"use no memo";let t=UC(),n={table:VC(),flex:HC()};return e.root.className=A(BC,t.root,e.noNativeElements?n.flex.root:n.table.root,e.root.className),e};function GC(e){let{size:t,noNativeElements:n,sortable:r}=e;return{table:M.useMemo(()=>({noNativeElements:n,size:t,sortable:r}),[n,t,r])}}var KC=(e,t)=>{let{noNativeElements:n}=uC(),r=e.as??n?`div`:`thead`;return{components:{root:r},root:Jr(Ai(r,{ref:t,role:r===`div`?`rowgroup`:void 0,...e}),{elementType:r}),noNativeElements:n}},qC=e=>I(bC,{value:``,children:I(e.root,{})}),JC=`fui-TableHeader`,YC=P({root:{mc9l5x:`ftgm304`}},{d:[`.ftgm304{display:block;}`]}),XC=P({root:{mc9l5x:`f1tp1avn`}},{d:[`.f1tp1avn{display:table-row-group;}`]}),ZC=e=>{"use no memo";let t={table:XC(),flex:YC()};return e.root.className=A(JC,e.noNativeElements?t.flex.root:t.table.root,e.root.className),e},QC={ascending:M.createElement(hf,{fontSize:12}),descending:M.createElement(cf,{fontSize:12})},$C=(e,t)=>{let{noNativeElements:n,sortable:r}=uC(),{sortable:i=r}=e,a=e.as??n?`div`:`th`,o=Jr(e.button,{elementType:`div`,defaultProps:{as:`div`}}),s=fd(o.as,o);return{components:{root:a,button:`div`,sortIcon:`span`,aside:`span`},root:Jr(Ai(a,{ref:xa(t,tl()),role:a===`div`?`columnheader`:void 0,"aria-sort":i?e.sortDirection??`none`:void 0,...e}),{elementType:a}),aside:Yr(e.aside,{elementType:`span`}),sortIcon:Yr(e.sortIcon,{renderByDefault:!!e.sortDirection,defaultProps:{children:e.sortDirection?QC[e.sortDirection]:void 0},elementType:`span`}),button:i?s:o,sortable:i,noNativeElements:n}},ew=e=>oo(e.root,{children:[oo(e.button,{children:[e.root.children,e.sortIcon&&I(e.sortIcon,{})]}),e.aside&&I(e.aside,{})]}),tw={root:`fui-TableHeaderCell`,button:`fui-TableHeaderCell__button`,sortIcon:`fui-TableHeaderCell__sortIcon`,aside:`fui-TableHeaderCell__aside`},nw=P({root:{mc9l5x:`f15pt5es`,ha4doy:`fmrv4ls`}},{d:[`.f15pt5es{display:table-cell;}`,`.fmrv4ls{vertical-align:middle;}`]}),rw=P({root:{mc9l5x:`f22iagw`,xawz:0,Bh6795r:0,Bnnss6s:0,fkmc3a:`f1izfyrr`,Bf4jedk:`f10tiqix`}},{d:[`.f22iagw{display:flex;}`,[`.f1izfyrr{flex:1 1 0px;}`,{p:-1}],`.f10tiqix{min-width:0px;}`]}),iw=P({root:{Bhrd7zp:`figsok6`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f3gpkru`,robkg1:0,Bmvh20x:0,B3nxjsc:0,Bmkhcsx:`f14ym4q2`,B8osjzx:0,pehzd3:0,Blsv9te:0,u7xebq:0,Bsvwmf7:`f1euou18`,qhf8xq:`f10pi13n`},rootInteractive:{Bi91k9c:`feu1g3u`,Jwef8y:`f1t94bn6`,lj723h:`f1g4hkjv`,ecr2s2:`f1wfn5kd`},resetButton:{B3rzk8w:`fq6nmtn`,B7ck84d:`f1e4lqlz`,De3pzq:`f1u2r49w`,sj55zd:`f1ym3bx4`,Bahqtrf:`f1mo0ibp`,Be2twd7:`fjoy568`,Bg96gwp:`fytdu2e`,B68tc82:0,Bmxbyg5:0,Bpg54ce:`f1gl81tg`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f1mk8lai`,Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:`f3bhgqh`,fsow6f:`fgusgyc`},button:{qhf8xq:`f10pi13n`,a9b677:`fly5x3f`,mc9l5x:`f22iagw`,Bh6795r:0,Bqenvij:`f1l02sjl`,Bt984gj:`f122n59`,i8kkvl:0,Belr9w4:0,rmohyg:`fkln5zr`,sshi5w:`f1nxs5xn`,xawz:0,Bnnss6s:0,fkmc3a:`f1izfyrr`,oeaueh:`f1s6fcnf`},sortable:{Bceei9c:`f1k6fduh`},sortIcon:{mc9l5x:`f22iagw`,Bt984gj:`f122n59`,z8tnut:`fclwglc`},resizeHandle:{}},{d:[`.figsok6{font-weight:var(--fontWeightRegular);}`,[`.f3gpkru{padding:0px var(--spacingHorizontalS);}`,{p:-1}],[`.f14ym4q2[data-fui-focus-within]:focus-within{outline:2px solid var(--colorStrokeFocus2);}`,{p:-1}],[`.f1euou18[data-fui-focus-within]:focus-within{border-radius:var(--borderRadiusMedium);}`,{p:-1}],`.f10pi13n{position:relative;}`,`.fq6nmtn{resize:horizontal;}`,`.f1e4lqlz{box-sizing:content-box;}`,`.f1u2r49w{background-color:inherit;}`,`.f1ym3bx4{color:inherit;}`,`.f1mo0ibp{font-family:inherit;}`,`.fjoy568{font-size:inherit;}`,`.fytdu2e{line-height:normal;}`,[`.f1gl81tg{overflow:visible;}`,{p:-1}],[`.f1mk8lai{padding:0;}`,{p:-1}],[`.f3bhgqh{border:none;}`,{p:-2}],`.fgusgyc{text-align:unset;}`,`.fly5x3f{width:100%;}`,`.f22iagw{display:flex;}`,`.fqerorx{flex-grow:1;}`,`.f1l02sjl{height:100%;}`,`.f122n59{align-items:center;}`,[`.fkln5zr{gap:var(--spacingHorizontalXS);}`,{p:-1}],`.f1nxs5xn{min-height:32px;}`,[`.f1izfyrr{flex:1 1 0px;}`,{p:-1}],`.f1s6fcnf{outline-style:none;}`,`.f1k6fduh{cursor:pointer;}`,`.fclwglc{padding-top:var(--spacingVerticalXXS);}`],h:[`.feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}`,`.f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}`],a:[`.f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}`,`.f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}`]}),aw=e=>{"use no memo";let t=iw(),n={table:nw(),flex:rw()};return e.root.className=A(tw.root,t.root,e.sortable&&t.rootInteractive,e.noNativeElements?n.flex.root:n.table.root,e.root.className),e.button.className=A(tw.button,t.resetButton,t.button,e.sortable&&t.sortable,e.button.className),e.sortIcon&&(e.sortIcon.className=A(tw.sortIcon,t.sortIcon,e.sortIcon.className)),e.aside&&(e.aside.className=A(tw.aside,t.resizeHandle,e.aside.className)),e},ow=M.createContext(void 0),sw=()=>M.useContext(ow)??``,cw=ow.Provider,lw=M.createContext(void 0),uw=()=>M.useContext(lw)??``,dw=lw.Provider,fw=(e,t)=>{let n=dC(e,xa(t,tl())),{noNativeElements:r}=uC(),{type:i=`checkbox`,checked:a=!1,subtle:o=!1,hidden:s=!1,invisible:c=!1}=e;return{...n,components:{...n.components,checkboxIndicator:Bv,radioIndicator:vb},checkboxIndicator:Yr(e.checkboxIndicator,{renderByDefault:i===`checkbox`,defaultProps:{checked:e.checked},elementType:Bv}),radioIndicator:Yr(e.radioIndicator,{renderByDefault:i===`radio`&&!c,defaultProps:{checked:!!a,input:{name:ba(`table-selection-radio`)}},elementType:vb}),type:i,checked:a,noNativeElements:r,subtle:o,hidden:c||s}},pw=e=>oo(e.root,{children:[e.type===`checkbox`&&e.checkboxIndicator&&I(e.checkboxIndicator,{}),e.type===`radio`&&e.radioIndicator&&I(e.radioIndicator,{})]}),mw={medium:32,small:24,"extra-small":20},hw=(e,t)=>{let{size:n}=uC();return{components:{root:`div`,main:`span`,description:`span`,content:`div`,media:`span`},root:Jr(Ai(`div`,{ref:t,...e},[`content`]),{elementType:`div`}),appearance:e.appearance,truncate:e.truncate,main:Yr(e.main,{renderByDefault:!0,elementType:`span`}),media:Yr(e.media,{elementType:`span`}),description:Yr(e.description,{elementType:`span`}),content:Yr(e.content,{renderByDefault:!!e.description||!!e.children,elementType:`div`}),avatarSize:mw[n],size:n}},gw=(e,t)=>oo(e.root,{children:[e.media&&I(bm,{value:t.avatar,children:I(e.media,{})}),e.content&&oo(e.content,{children:[e.main&&I(e.main,{children:e.root.children}),e.description&&I(e.description,{})]})]}),_w={root:`fui-TableCellLayout`,media:`fui-TableCellLayout__media`,main:`fui-TableCellLayout__main`,description:`fui-TableCellLayout__description`,content:`fui-TableCellLayout__content`},vw=P({root:{mc9l5x:`f22iagw`,Bt984gj:`f122n59`,i8kkvl:0,Belr9w4:0,rmohyg:`faqewft`,xawz:0,Bh6795r:0,Bnnss6s:0,fkmc3a:`f1izfyrr`},rootTruncate:{B68tc82:`f1p9o1ba`},content:{mc9l5x:`f22iagw`,Beiy3e4:`f1vx9l62`},contentTruncate:{B68tc82:`f1p9o1ba`},media:{mc9l5x:`f22iagw`,Bt984gj:`f122n59`},mediaExtraSmall:{Be2twd7:`f4ybsrx`},mediaSmallAndMedium:{Be2twd7:`fe5j1ua`},mediaPrimary:{Be2twd7:`f1rt2boy`},mainPrimary:{Bhrd7zp:`fl43uef`},mainTruncate:{B68tc82:`f1p9o1ba`,Huce71:`fz5stix`,ygn44y:`f1cmbuwj`},description:{sj55zd:`fkfq4zb`,Bahqtrf:`fk6fouc`,Be2twd7:`fy9rknc`,Bhrd7zp:`figsok6`,Bg96gwp:`fwrc4pm`}},{d:[`.f22iagw{display:flex;}`,`.f122n59{align-items:center;}`,[`.faqewft{gap:var(--spacingHorizontalS);}`,{p:-1}],[`.f1izfyrr{flex:1 1 0px;}`,{p:-1}],`.f1p9o1ba{overflow-x:hidden;}`,`.f1vx9l62{flex-direction:column;}`,`.f4ybsrx{font-size:16px;}`,`.fe5j1ua{font-size:20px;}`,`.f1rt2boy{font-size:24px;}`,`.fl43uef{font-weight:var(--fontWeightSemibold);}`,`.fz5stix{white-space:nowrap;}`,`.f1cmbuwj{text-overflow:ellipsis;}`,`.fkfq4zb{color:var(--colorNeutralForeground2);}`,`.fk6fouc{font-family:var(--fontFamilyBase);}`,`.fy9rknc{font-size:var(--fontSizeBase200);}`,`.figsok6{font-weight:var(--fontWeightRegular);}`,`.fwrc4pm{line-height:var(--lineHeightBase200);}`]}),yw=e=>{"use no memo";let t=vw(),{truncate:n}=e;e.root.className=A(_w.root,t.root,n&&t.rootTruncate,e.root.className);let r=e.appearance===`primary`;if(e.media){let n={small:t.mediaSmallAndMedium,medium:t.mediaSmallAndMedium,"extra-small":t.mediaExtraSmall};e.media.className=A(_w.media,t.media,n[e.size],r&&t.mediaPrimary,e.media.className)}return e.main&&(e.main.className=A(_w.main,n&&t.mainTruncate,r&&t.mainPrimary,e.main.className)),e.description&&(e.description.className=A(_w.description,t.description,e.description.className)),e.content&&(e.content.className=A(_w.content,t.content,n&&t.contentTruncate,e.content.className)),e};function bw(e){let{avatarSize:t}=e;return{avatar:M.useMemo(()=>({size:t}),[t])}}var xw=M.forwardRef((e,t)=>{let n=hw(e,t);return yw(n),Qi(`useTableCellLayoutStyles_unstable`)(n),gw(n,bw(n))});xw.displayName=`TableCellLayout`;var Sw=Qu(void 0),Cw={...eC,subtleSelection:!1,selectableRows:!1,selectionAppearance:`brand`,focusMode:`none`,compositeRowTabsterAttribute:{}},ww=Sw.Provider,Tw=e=>$u(Sw,(t=Cw)=>e(t)),Ew=(e,t)=>{let{focusMode:n=`cell`}=e,r=sw(),i=Tw(e=>(e.focusMode===`cell`||e.focusMode===`composite`)&&n!==`none`),a=Tw(e=>e.resizableColumns),o=Tw(e=>e.columnSizing_unstable.getTableCellProps),s=Uc({tabBehavior:`limited-trap-focus`});return dC({as:`div`,role:`gridcell`,...n===`group`&&s,tabIndex:i?0:void 0,...a?o(r):{},...e},t)},Dw=e=>fC(e),Ow={root:`fui-DataGridCell`},kw=e=>{"use no memo";return _C(e),e.root.className=A(Ow.root,e.root.className),e},Aw=M.forwardRef((e,t)=>{let n=Ew(e,t);return kw(n),Qi(`useDataGridCellStyles_unstable`)(n),Dw(n)});Aw.displayName=`DataGridCell`;var jw=(e,t)=>{let n=xC(),r=uw(),i=Tw(e=>e.subtleSelection),a=Tw(e=>n&&e.selection.selectionMode===`multiselect`?e.selection.allRowsSelected?!0:e.selection.someRowsSelected?`mixed`:!1:e.selection.isRowSelected(r)),o=Tw(e=>e.selection.toggleAllRows),s=Tw(e=>e.selection.selectionMode===`multiselect`?`checkbox`:`radio`),c=F(t=>{var r;n&&o(t),(r=e.onClick)==null||r.call(e,t)});return fw({as:`div`,role:`gridcell`,checked:a,type:s,invisible:n&&s===`radio`,"aria-selected":a===`mixed`?void 0:a,subtle:i,radioIndicator:n?null:void 0,...e,onClick:c},t)},Mw=e=>pw(e),Nw={root:`fui-DataGridSelectionCell`,checkboxIndicator:`fui-DataGridSelectionCell__checkboxIndicator`,radioIndicator:`fui-DataGridSelectionCell__radioIndicator`},Pw=e=>{"use no memo";return DC(e),e.root.className=A(Nw.root,e.root.className),e.checkboxIndicator&&(e.checkboxIndicator.className=A(Nw.checkboxIndicator,e.checkboxIndicator.className)),e.radioIndicator&&(e.radioIndicator.className=A(Nw.radioIndicator,e.radioIndicator.className)),e},Fw=M.forwardRef((e,t)=>{let n=jw(e,t);return Pw(n),Qi(`useDataGridSelectionCellStyles_unstable`)(n),Mw(n)});Fw.displayName=`DataGridSelectionCell`;var Iw=(e,t)=>{let n=uw(),r=xC(),i=Tw(e=>e.columns),a=Tw(e=>e.selectableRows),o=Tw(e=>e.selection.isRowSelected(n)),s=Tw(e=>e.focusMode),c=Tw(e=>e.compositeRowTabsterAttribute),l=s===`row_unstable`||s===`composite`,u=Tw(e=>!r&&a&&e.selection.isRowSelected(n)?e.selectionAppearance:`none`),d=Tw(e=>e.selection.toggleRow),f=F(t=>{var i;a&&!r&&d(t,n),(i=e.onClick)==null||i.call(e,t)}),p=F(t=>{var i;a&&!r&&t.key===` `&&!Ia(t.target)&&(t.preventDefault(),d(t,n)),(i=e.onKeyDown)==null||i.call(e,t)}),m=SC({appearance:u,"aria-selected":a?o:void 0,tabIndex:l&&!r?0:void 0,...s===`composite`&&!r&&c,...e,onClick:f,onKeyDown:p,children:null,as:`div`},t);return{...m,components:{...m.components,selectionCell:Fw},selectionCell:Yr(e.selectionCell,{renderByDefault:a,elementType:Fw}),renderCell:e.children,columnDefs:i,dataGridContextValue:Lw()}};function Lw(){let e=M.useRef(Cw);return Tw(t=>(e.current=t,null)),e.current}var Rw=e=>oo(e.root,{children:[e.selectionCell&&I(e.selectionCell,{}),e.columnDefs.map(t=>I(cw,{value:t.columnId,children:e.renderCell(t,e.dataGridContextValue)},t.columnId))]}),zw={root:`fui-DataGridRow`,selectionCell:`fui-DataGridRow__selectionCell`},Bw=P({subtleSelection:{Bconypa:`f1jazu75`,ff6mpl:`fw60kww`}},{d:[`.f1jazu75[data-fui-focus-within]:focus-within .fui-TableSelectionCell{opacity:1;}`],h:[`.fw60kww:hover .fui-TableSelectionCell{opacity:1;}`]}),Vw=e=>{"use no memo";let t=Tw(e=>e.subtleSelection),n=Bw();return MC(e),e.root.className=A(zw.root,e.root.className,t&&n.subtleSelection),e.selectionCell&&(e.selectionCell.className=A(zw.selectionCell,e.selectionCell.className)),e},Hw=M.forwardRef((e,t)=>{let n=Iw(e,t);return Vw(n),Qi(`useDataGridRowStyles_unstable`)(n),Rw(n)});Hw.displayName=`DataGridRow`;var Uw=(e,t)=>{let{sortable:n}=uC(),r=Tw(e=>e.getRows),i=Tw(e=>e.sort.sort),a=n?i(r()):r();return{...NC({...e,children:null,as:`div`},t),rows:a,renderRow:e.children}},Ww=e=>I(e.root,{children:e.rows.map(t=>I(dw,{value:t.rowId,children:e.renderRow(t)},t.rowId))}),Gw={root:`fui-DataGridBody`},Kw=e=>{"use no memo";return LC(e),e.root.className=A(Gw.root,e.root.className),e},qw=M.forwardRef((e,t)=>{let n=Uw(e,t);return Kw(n),Qi(`useDataGridBodyStyles_unstable`)(n),Ww(n)});qw.displayName=`DataGridBody`;var Jw=(e,t)=>{let{items:n,columns:r,focusMode:i=`cell`,selectionMode:a,onSortChange:o,onSelectionChange:s,defaultSortState:c,sortState:l,selectedItems:u,defaultSelectedItems:d,subtleSelection:f=!1,selectionAppearance:p=`brand`,getRowId:m,resizableColumns:h,columnSizingOptions:g,onColumnResize:_,containerWidthOffset:v,resizableColumnsOptions:y={}}=e,b=v??(a?-44:0),x=Vc({axis:`grid`}),{onTableKeyDown:S,tableTabsterAttribute:C,tableRowTabsterAttribute:w}=oC(),T=tC({items:n,columns:r,getRowId:m},[CS({defaultSortState:c,sortState:l,onSortChange:o}),yS({defaultSelectedItems:d,selectedItems:u,onSelectionChange:s,selectionMode:a??`multiselect`}),XS({onColumnResize:_,columnSizingOptions:g,containerWidthOffset:b,autoFitColumns:y.autoFitColumns??!0})]),E=M.useRef(null),{findFirstFocusable:D,findLastFocusable:O}=Gc(),ee=F(t=>{var n;if((n=e.onKeyDown)==null||n.call(e,t),i===`composite`&&S(t),!(!E.current||!t.ctrlKey||t.defaultPrevented)){if(t.key===`Home`){let e=E.current.querySelector(`[role="row"]`);if(e){var r;(r=D(e))==null||r.focus()}}if(t.key===`End`){let e=E.current.querySelectorAll(`[role="row"]`);if(e.length){var a;(a=O(e.item(e.length-1)))==null||a.focus()}}}});return{...RC({role:`grid`,as:`div`,noNativeElements:!0,...i===`cell`&&x,...i===`composite`&&C,...e,onKeyDown:ee,...h?T.columnSizing_unstable.getTableProps(e):{}},xa(t,T.tableRef,E)),focusMode:i,tableState:T,selectableRows:!!a,subtleSelection:f,selectionAppearance:p,resizableColumns:h,compositeRowTabsterAttribute:w}},Yw=(e,t)=>M.createElement(ww,{value:t.dataGrid},zC(e,t)),Xw={root:`fui-DataGrid`},Zw=e=>{"use no memo";return WC(e),e.root.className=A(Xw.root,e.root.className),e};function Qw(e){let t=GC(e),{tableState:n,focusMode:r,selectableRows:i,subtleSelection:a,selectionAppearance:o,resizableColumns:s,compositeRowTabsterAttribute:c}=e,l=M.useMemo(()=>({...n,focusMode:r,selectableRows:i,subtleSelection:a,selectionAppearance:o,resizableColumns:s,compositeRowTabsterAttribute:c}),[n,r,i,a,o,s,c]);return{...t,dataGrid:l}}var $w=M.forwardRef((e,t)=>{let n=Jw(e,t);return Zw(n),Qi(`useDataGridStyles_unstable`)(n),Yw(n,Qw(n))});$w.displayName=`DataGrid`;var eT=(e,t)=>KC({...e,as:`div`},t),tT=e=>qC(e),nT={root:`fui-DataGridHeader`},rT=e=>{"use no memo";return ZC(e),e.root.className=A(nT.root,e.root.className),e},iT=M.forwardRef((e,t)=>{let n=eT(e,t);return rT(n),Qi(`useDataGridHeaderStyles_unstable`)(n),tT(n)});iT.displayName=`DataGridHeader`;function aT(e){return e.compare.length>0}var oT=(e,t)=>{let n=sw(),{sortable:r}=uC(),i=Tw(e=>e.sort.toggleColumnSort),a=Tw(e=>{let t=!!e.columns.find(e=>e.columnId===n&&aT(e));return r?t:!1}),o=Tw(e=>a?e.sort.getSortDirection(n):void 0),s=Tw(e=>e.resizableColumns),c=Tw(e=>e.columnSizing_unstable.getTableHeaderCellProps),{focusMode:l=a?`none`:`cell`}=e,u=Uc({tabBehavior:`limited-trap-focus`}),d=F(t=>{var r;a&&i(t,n),(r=e.onClick)==null||r.call(e,t)});return $C({sortable:a,sortDirection:o,as:`div`,tabIndex:l===`none`?void 0:0,...l===`group`&&u,...s?c(n):{},...e,onClick:d},t)},sT=e=>ew(e),cT={root:`fui-DataGridHeaderCell`,button:`fui-DataGridHeaderCell__button`,sortIcon:`fui-DataGridHeaderCell__sortIcon`,aside:`fui-DataGridHeaderCell__aside`},lT=e=>{"use no memo";return aw(e),e.root.className=A(cT.root,e.root.className),e.button&&(e.button.className=A(cT.button,e.button.className)),e.sortIcon&&(e.sortIcon.className=A(cT.sortIcon,e.sortIcon.className)),e.aside&&(e.aside.className=A(cT.aside,e.aside.className)),e},uT=M.forwardRef((e,t)=>{let n=oT(e,t);return lT(n),Qi(`useDataGridHeaderCellStyles_unstable`)(n),sT(n)});uT.displayName=`DataGridHeaderCell`;var dT=(e,{referenceLabel:t,referenceId:n})=>{let{checkbox:r={},onSelectionChange:i,floatingAction:a,onClick:o,onKeyDown:s,disabled:c,shouldRestrictTriggerAction:l}=e,u=M.useRef(null),[d,f]=sa({state:e.selected,defaultState:e.defaultSelected,initialState:!1}),p=[e.selected,e.defaultSelected,i].some(e=>e!==void 0),[m,h]=M.useState(!1),g=M.useCallback(e=>{if(c||u.current!==e.target&&l?.(e))return;let t=!d;f(t),i&&i(e,{selected:t})},[c,i,d,f,l]),_=M.useCallback(e=>{[`Enter`].includes(e.key)&&(e.preventDefault(),g(e))},[g]),v=M.useMemo(()=>{if(!p||a)return;let e={};return n?e[`aria-labelledby`]=n:t&&(e[`aria-label`]=t),Yr(r,{defaultProps:{ref:u,type:`checkbox`,checked:d,disabled:c,onChange:e=>g(e),onFocus:()=>h(!0),onBlur:()=>h(!1),...e},elementType:`input`})},[r,c,a,d,p,g,n,t]),y=M.useMemo(()=>{if(a)return Yr(a,{defaultProps:{ref:u},elementType:`div`})},[a]);return{selected:d,selectable:p,selectFocused:m,selectableCardProps:M.useMemo(()=>p?{onClick:Pa(o,g),onKeyDown:Pa(s,_)}:null,[p,g,o,s,_]),checkboxSlot:v,floatingActionSlot:y}},fT=M.createContext(void 0),pT={selectableA11yProps:{referenceId:void 0,setReferenceId(){},referenceLabel:void 0,setReferenceLabel(){}}},mT=fT.Provider,hT=()=>M.useContext(fT)??pT,gT={off:void 0,"no-tab":`limited-trap-focus`,"tab-exit":`limited`,"tab-only":`unlimited`},_T=[`onClick`,`onDoubleClick`,`onMouseUp`,`onMouseDown`,`onPointerUp`,`onPointerDown`,`onTouchStart`,`onTouchEnd`,`onDragStart`,`onDragEnd`],vT=e=>e.disabled?!1:_T.some(t=>e[t]!==void 0),yT=(e,t)=>{let{appearance:n=`filled`,orientation:r=`vertical`,size:i=`medium`,...a}=e,{disabled:o=!1,focusMode:s}=e,c=tl(),l=xa(c,t),{findAllFocusable:u}=Gc(),d=M.useCallback(e=>{if(!c.current)return!1;let t=u(c.current),n=e.target;return t.some(e=>e.contains(n))},[u,c]),f=vT(e),p=s??(f?`no-tab`:`off`),m=Uc({tabBehavior:gT[p]}),h=bT({shouldRestrictTriggerAction:d,...a},l);return!o&&!h.selectable&&p!==`off`&&Object.assign(h.root,m,{tabIndex:0}),{...h,appearance:n,orientation:r,size:i}},bT=(e,t)=>{let{disabled:n=!1,...r}=e,[i,a]=M.useState(pT.selectableA11yProps.referenceId),[o,s]=M.useState(pT.selectableA11yProps.referenceId),{selectable:c,selected:l,selectableCardProps:u,selectFocused:d,checkboxSlot:f,floatingActionSlot:p}=dT(e,{referenceId:i,referenceLabel:o}),m=vT(e),h={...r,...u};return n&&(h={...r,"aria-disabled":!0,onClick:void 0}),{interactive:m,selectable:c,selectFocused:d,selected:l,disabled:n,selectableA11yProps:{setReferenceId:a,referenceId:i,referenceLabel:o,setReferenceLabel:s},components:{root:`div`,floatingAction:`div`,checkbox:`input`},root:Jr(Ai(`div`,{ref:t,role:`group`,...h}),{elementType:`div`}),floatingAction:p,checkbox:f}},xT=(e,t)=>I(e.root,{children:oo(mT,{value:t,children:[e.checkbox?I(e.checkbox,{}):null,e.floatingAction?I(e.floatingAction,{}):null,e.root.children]})}),ST={root:`fui-CardHeader`,image:`fui-CardHeader__image`,header:`fui-CardHeader__header`,description:`fui-CardHeader__description`,action:`fui-CardHeader__action`},CT=P({root:{Bkc6ea2:`fkufhic`,Bt984gj:`f122n59`},image:{mc9l5x:`ftuwxu6`,t21cq0:[`fql5097`,`f6yss9k`]},header:{mc9l5x:`f22iagw`},description:{mc9l5x:`f22iagw`},action:{Frg6f3:[`f6yss9k`,`fql5097`],rjrqlh:`fs9eatd`,Boue1pl:[`fxoo9ru`,`f1g0ekvh`],Bhz1vi0:`f1m6zfxz`,etxrgc:[`f1g0ekvh`,`fxoo9ru`],Bdua9ef:`f1sret3r`,cbfxhg:`fs4gbcv`}},{d:[`.fkufhic{--fui-CardHeader--gap:12px;}`,`.f122n59{align-items:center;}`,`.ftuwxu6{display:inline-flex;}`,`.fql5097{margin-right:var(--fui-CardHeader--gap);}`,`.f6yss9k{margin-left:var(--fui-CardHeader--gap);}`,`.f22iagw{display:flex;}`],m:[[`@media (forced-colors: active){.fs9eatd .fui-Button,.fs9eatd .fui-Link{border-top-color:currentColor;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1g0ekvh .fui-Button,.f1g0ekvh .fui-Link{border-left-color:currentColor;}.fxoo9ru .fui-Button,.fxoo9ru .fui-Link{border-right-color:currentColor;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1m6zfxz .fui-Button,.f1m6zfxz .fui-Link{border-bottom-color:currentColor;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1sret3r .fui-Button,.f1sret3r .fui-Link{color:currentColor;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fs4gbcv .fui-Button,.fs4gbcv .fui-Link{outline-color:currentColor;}}`,{m:`(forced-colors: active)`}]]}),wT=P({root:{mc9l5x:`f13qh94s`,t4k1zu:`f8a668j`},image:{Br312pm:`fwpfdsa`,Ijaq50:`fldnz9j`},header:{Br312pm:`fd46tj4`,Ijaq50:`f16hsg94`},description:{Br312pm:`fd46tj4`,Ijaq50:`faunodf`},action:{Br312pm:`fis13di`,Ijaq50:`fldnz9j`}},{d:[`.f13qh94s{display:grid;}`,`.f8a668j{grid-auto-columns:min-content 1fr min-content;}`,`.fwpfdsa{grid-column-start:1;}`,`.fldnz9j{grid-row-start:span 2;}`,`.fd46tj4{grid-column-start:2;}`,`.f16hsg94{grid-row-start:1;}`,`.faunodf{grid-row-start:2;}`,`.fis13di{grid-column-start:3;}`]}),TT=P({root:{mc9l5x:`f22iagw`},header:{Bh6795r:`fqerorx`},image:{},description:{},action:{}},{d:[`.f22iagw{display:flex;}`,`.fqerorx{flex-grow:1;}`]}),ET=e=>{"use no memo";let t=CT(),n=wT(),r=TT(),i=e.description?n:r,a=n=>A(ST[n],t[n],i[n],e[n]?.className);return e.root.className=a(`root`),e.image&&(e.image.className=a(`image`)),e.header&&(e.header.className=a(`header`)),e.description&&(e.description.className=a(`description`)),e.action&&(e.action.className=a(`action`)),e},DT={root:`fui-Card`,floatingAction:`fui-Card__floatingAction`,checkbox:`fui-Card__checkbox`};`${{cardSizeVar:`--fui-Card--size`,cardBorderRadiusVar:`--fui-Card--border-radius`}.cardBorderRadiusVar}`,z.strokeWidthThick;var OT=Vr(`rfxo2k2`,`rgle7w9`,[`.rfxo2k2{overflow:hidden;border-radius:var(--fui-Card--border-radius);padding:var(--fui-Card--size);gap:var(--fui-Card--size);display:flex;position:relative;box-sizing:border-box;color:var(--colorNeutralForeground1);}`,`.rfxo2k2::after{position:absolute;top:0;left:0;right:0;bottom:0;content:"";pointer-events:none;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-radius:var(--fui-Card--border-radius);}`,`.rfxo2k2>.fui-CardHeader,.rfxo2k2>.fui-CardFooter{flex-shrink:0;}`,`.rgle7w9{overflow:hidden;border-radius:var(--fui-Card--border-radius);padding:var(--fui-Card--size);gap:var(--fui-Card--size);display:flex;position:relative;box-sizing:border-box;color:var(--colorNeutralForeground1);}`,`.rgle7w9::after{position:absolute;top:0;right:0;left:0;bottom:0;content:"";pointer-events:none;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-radius:var(--fui-Card--border-radius);}`,`.rgle7w9>.fui-CardHeader,.rgle7w9>.fui-CardFooter{flex-shrink:0;}`]);z.colorNeutralForegroundDisabled,z.colorNeutralBackgroundDisabled,z.shadow2,{...Ar.borderColor(z.colorNeutralStrokeDisabled)},`${z.zIndexContent}`,{...Ar.borderColor(z.colorNeutralStrokeDisabled)};var kT=P({focused:{Brovlpu:`ftqa4ok`,B486eqv:`f2hkw1w`,B8q5s1w:`f8hki3x`,Bci5o5g:[`f1d2448m`,`ffh67wi`],n8qw10:`f1bjia2o`,Bdrgwmp:[`ffh67wi`,`f1d2448m`],Bqhya38:`f1j6vpng`,Bwxa6fj:[`f1pniga2`,`f1ffjurs`],Bdhvstf:`f987i1v`,B7zbvrb:[`f1ffjurs`,`f1pniga2`],Bm4h7ae:`f15bsgw9`,B7ys5i9:`f14e48fq`,Busjfv9:`f18yb2kv`,Bhk32uz:`fd6o370`,f6g5ot:0,Boxcth7:0,Bhdgwq3:0,hgwjuy:0,Bshpdp8:0,Bsom6fd:0,Blkhhs4:0,Bonggc9:0,Ddfuxk:0,i03rao:0,kclons:0,clg4pj:0,Bpqj9nj:0,B6dhp37:0,Bf4ptjt:0,Bqtpl0w:0,i4rwgc:`fpqizxz`,Dah5zi:0,B1tsrr9:0,qqdqy8:0,Bkh64rk:0,e3fwne:`fnd8nzh`,J0r882:`f15fr7a0`,Bule8hv:[`fwsq40z`,`fy0y4wt`],Bjwuhne:`f34ld9f`,Ghsupd:[`fy0y4wt`,`fwsq40z`]},selectableFocused:{Brovlpu:`ftqa4ok`,B486eqv:`f2hkw1w`,Bssx7fj:`f1b1k54r`,uh7if5:[`f4ne723`,`fqqcjud`],clntm0:`fh7aioi`,Dlk2r6:[`fqqcjud`,`f4ne723`],h6p2u:`f1ufm4qn`,I6qiy5:[`f1qnwcb4`,`fgrk5zm`],yzno9d:`fi52z01`,By0wis0:[`fgrk5zm`,`f1qnwcb4`],B2j2mmj:`ffht0p2`,wigs8:`f1p0ul1q`,pbfy6t:`f1c901ms`,B0v4ure:`f1alokd7`,Byrf0fs:0,Bsiemmq:0,Bwckmig:0,skfxo0:0,Iidy0u:0,B98u21t:0,Bvwlmkc:0,jo1ztg:0,Ba1iezr:0,Blmvk6g:0,B24cy0v:0,Bil7v7r:0,Br3gin4:0,nr063g:0,ghq09:0,Bbgo44z:0,Bseh09z:`f1i978nd`,az1dzo:0,Ba3ybja:0,B6352mv:0,vppk2z:0,Biaj6j7:`f1nh8hsq`,B2pnrqr:`f1amxum7`,B29w5g4:[`f1cec8w7`,`f554mv0`],Bhhzhcn:`f1sj6kbr`,Bec0n69:[`f554mv0`,`f1cec8w7`]},orientationHorizontal:{Beiy3e4:`f1063pyq`,Bt984gj:`f122n59`,Binpb3b:`ftrw7vg`,qrt8p2:`f18opajm`,k6ws3r:[`f13002it`,`fqo182t`],Btcwela:[`f18yna97`,`f1kd6wh7`],Fer9m8:`f4i4759`},orientationVertical:{Beiy3e4:`f1vx9l62`,B5nvv7i:[`f14k419y`,`f1fgo9fz`],Baxg94k:[`f1fgo9fz`,`f14k419y`],tn21ii:`fvqmfsm`,B0ud6bj:`f3am6yf`,Bgdo4j:`f1r5wgso`},sizeSmall:{B7balbw:`f1pi9uxy`,B1h88n7:`f1h1zgly`},sizeMedium:{B7balbw:`frsmuga`,B1h88n7:`fuldkky`},sizeLarge:{B7balbw:`f1qua4xo`,B1h88n7:`fimkt6v`},interactive:{rhjd8f:`f1epqm3e`},filled:{De3pzq:`fxugw4r`,E5pizo:`f1whvlc6`,B0n5ga8:`f16gxe2i`,s924m2:[`fpgykix`,`fzybk4o`],B1q35kw:`f1osi826`,Gp14am:[`fzybk4o`,`fpgykix`]},filledInteractive:{Bceei9c:`f1k6fduh`,De3pzq:`fxugw4r`,E5pizo:`f1whvlc6`,B0n5ga8:`f16gxe2i`,s924m2:[`fpgykix`,`fzybk4o`],B1q35kw:`f1osi826`,Gp14am:[`fzybk4o`,`fpgykix`],Bi91k9c:`feu1g3u`,Jwef8y:`f1knas48`,Bvxd0ez:`f1m145df`,ecr2s2:`fb40n2d`},filledInteractiveSelected:{De3pzq:`f1nfm20t`,B0n5ga8:`f16eln5f`,s924m2:[`fa2okxs`,`fg4zq3l`],B1q35kw:`ff6932p`,Gp14am:[`fg4zq3l`,`fa2okxs`],Bi91k9c:`fx9teim`,Jwef8y:`f1kz6goq`},filledAlternative:{De3pzq:`f1dmdbja`,E5pizo:`f1whvlc6`,B0n5ga8:`f16gxe2i`,s924m2:[`fpgykix`,`fzybk4o`],B1q35kw:`f1osi826`,Gp14am:[`fzybk4o`,`fpgykix`]},filledAlternativeInteractive:{Bceei9c:`f1k6fduh`,De3pzq:`f1dmdbja`,E5pizo:`f1whvlc6`,B0n5ga8:`f16gxe2i`,s924m2:[`fpgykix`,`fzybk4o`],B1q35kw:`f1osi826`,Gp14am:[`fzybk4o`,`fpgykix`],Bi91k9c:`fnwyq0v`,Jwef8y:`f1uvynv3`,Bvxd0ez:`f1m145df`,ecr2s2:`f1yhgkbh`},filledAlternativeInteractiveSelected:{De3pzq:`fjxa0vh`,B0n5ga8:`f16eln5f`,s924m2:[`fa2okxs`,`fg4zq3l`],B1q35kw:`ff6932p`,Gp14am:[`fg4zq3l`,`fa2okxs`],Bi91k9c:`f1luvkty`,Jwef8y:`fehi0vp`},outline:{De3pzq:`f1c21dwh`,E5pizo:`f1couhl3`,B0n5ga8:`ft83z1f`,s924m2:[`f1g4150c`,`f192dr6e`],B1q35kw:`f1qnawh6`,Gp14am:[`f192dr6e`,`f1g4150c`]},outlineInteractive:{Bceei9c:`f1k6fduh`,De3pzq:`f1c21dwh`,E5pizo:`f1couhl3`,B0n5ga8:`ft83z1f`,s924m2:[`f1g4150c`,`f192dr6e`],B1q35kw:`f1qnawh6`,Gp14am:[`f192dr6e`,`f1g4150c`],Bi91k9c:`feu1g3u`,Jwef8y:`fjxutwb`,Be0v6ae:`f1llr77y`,B5kxglz:[`fzk0khw`,`fjj8tog`],B3pwyw6:`fb1u8ub`,Bymgtzf:[`fjj8tog`,`fzk0khw`],ecr2s2:`fophhak`,dmfk:`f1uohb70`,B4ofi8:[`f1jm7v1n`,`f1bus3rq`],jgq6uv:`f1fbu7rr`,Baxewws:[`f1bus3rq`,`f1jm7v1n`]},outlineInteractiveSelected:{De3pzq:`f1q9pm1r`,B0n5ga8:`f16eln5f`,s924m2:[`fa2okxs`,`fg4zq3l`],B1q35kw:`ff6932p`,Gp14am:[`fg4zq3l`,`fa2okxs`],Bi91k9c:`fx9teim`,Jwef8y:`fg59vm4`},outlineDisabled:{De3pzq:`f1c21dwh`,E5pizo:`f1couhl3`,g2u3we:`f1jj8ep1`,h3c5rm:[`f15xbau`,`fy0fskl`],B9xav0g:`f4ikngz`,zhjwy3:[`fy0fskl`,`f15xbau`],ezxybo:`f1ls5moo`,wc7uws:`f1qiza15`,B0n5ga8:`f13dj02`,s924m2:[`f9wngki`,`f17v59j0`],B1q35kw:`f1vxzwsp`,Gp14am:[`f17v59j0`,`f9wngki`]},subtle:{De3pzq:`fhovq9v`,E5pizo:`f1couhl3`,B0n5ga8:`f16gxe2i`,s924m2:[`fpgykix`,`fzybk4o`],B1q35kw:`f1osi826`,Gp14am:[`fzybk4o`,`fpgykix`]},subtleInteractive:{Bceei9c:`f1k6fduh`,De3pzq:`fhovq9v`,E5pizo:`f1couhl3`,B0n5ga8:`f16gxe2i`,s924m2:[`fpgykix`,`fzybk4o`],B1q35kw:`f1osi826`,Gp14am:[`fzybk4o`,`fpgykix`],Bi91k9c:`feu1g3u`,Jwef8y:`f1t94bn6`,ecr2s2:`f1wfn5kd`},subtleInteractiveSelected:{De3pzq:`fq5gl1p`,B0n5ga8:`f16eln5f`,s924m2:[`fa2okxs`,`fg4zq3l`],B1q35kw:`ff6932p`,Gp14am:[`fg4zq3l`,`fa2okxs`],Bi91k9c:`fx9teim`,Jwef8y:`f1uqaxdt`},highContrastSelected:{B8gzw0y:`f1h3a8gf`,By8wz76:`f1nz3ub2`,B7iucu3:`fqc85l4`,Boo9lyk:`f1ucc5z8`,sga51p:`fyj59f4`,qj1yg9:[`f19v95gn`,`f1n69f6i`],B8acmzm:`f16q7dot`,Gezqo6:[`f1n69f6i`,`f19v95gn`]},highContrastInteractive:{waf3gn:`f1quqgnd`,B96h8j5:`f193utb4`,Bpd3jnq:`f1io67iv`,uhbujs:`f3n01jk`,sga51p:`fyj59f4`,qj1yg9:[`f19v95gn`,`f1n69f6i`],B8acmzm:`f16q7dot`,Gezqo6:[`f1n69f6i`,`f19v95gn`]},select:{qhf8xq:`f1euv43f`,Bhzewxz:`fqclxi7`,j35jbq:[`fiv86kb`,`f36uhnt`],Bj3rh1h:`fom9my7`},hiddenCheckbox:{B68tc82:0,Bmxbyg5:0,Bpg54ce:`f1a3p1vp`,a9b677:`frkrog8`,Bqenvij:`f1mpe4l3`,qhf8xq:`f1euv43f`,Bh84pgu:`fmf1zke`,Bgl5zvf:`f1wch0ki`,Huce71:`fz5stix`},disabled:{Bceei9c:`fdrzuqr`,famaaq:`f1xqy1su`,sj55zd:`f1s2aq7o`,De3pzq:`f1bg9a2p`,E5pizo:`fyed02w`,g2u3we:`f1jj8ep1`,h3c5rm:[`f15xbau`,`fy0fskl`],B9xav0g:`f4ikngz`,zhjwy3:[`fy0fskl`,`f15xbau`],Ftih45:`f1wl9k8s`,Brfgrao:`f1j7ml58`,lawp4y:0,Fbdkly:0,mdwyqc:0,Bciustq:0,gc50h5:`f13vvzas`,Ehzi8l:`f198lalb`,B0n5ga8:`f13dj02`,s924m2:[`f9wngki`,`f17v59j0`],B1q35kw:`f1vxzwsp`,Gp14am:[`f17v59j0`,`f9wngki`],Bikrtoi:`f11og98d`,G8qf51:`f1rg3h4v`,Brxh4y7:`fbm2y3b`,ezxybo:`f4yodeu`,wc7uws:`fcwfbwp`,gp3uxg:`f1repx37`,Fohawp:[`f1ybi8ct`,`f1h4eg6q`],Bxulg6k:`f18mejnb`,vcjq4m:[`f1h4eg6q`,`f1ybi8ct`],Bsqkqe9:`f1nift3m`,fskg1g:`f1wu3i8x`,iwiei9:0,Effecx:0,Bkt1b9m:0,jfmxvr:0,orauir:`f6v4vfa`,B2yd9ot:`folrdqs`,Fn9tzk:`f168z5yf`,Bv0wker:[`fpor7gj`,`fzextn6`],Bp2dl5b:`f1yaw79v`,pzn0iz:[`fzextn6`,`fpor7gj`]}},{f:[`.ftqa4ok:focus{outline-style:none;}`],i:[`.f2hkw1w:focus-visible{outline-style:none;}`],d:[`.f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}`,`.f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}`,`.ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}`,`.f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}`,`.f15bsgw9[data-fui-focus-visible]::after{content:"";}`,`.f14e48fq[data-fui-focus-visible]::after{position:absolute;}`,`.f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}`,`.fd6o370[data-fui-focus-visible]::after{z-index:1;}`,[`.fpqizxz[data-fui-focus-visible]::after{border:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}`,{p:-2}],[`.fnd8nzh[data-fui-focus-visible]::after{border-radius:var(--fui-Card--border-radius);}`,{p:-1}],`.f15fr7a0[data-fui-focus-visible]::after{top:calc(0px - var(--strokeWidthThick) - -2px);}`,`.fwsq40z[data-fui-focus-visible]::after{right:calc(0px - var(--strokeWidthThick) - -2px);}`,`.fy0y4wt[data-fui-focus-visible]::after{left:calc(0px - var(--strokeWidthThick) - -2px);}`,`.f34ld9f[data-fui-focus-visible]::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}`,`.f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}`,`.f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}`,`.fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}`,`.fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}`,`.ffht0p2[data-fui-focus-within]:focus-within::after{content:"";}`,`.f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}`,`.f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}`,`.f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}`,[`.f1i978nd[data-fui-focus-within]:focus-within::after{border:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}`,{p:-2}],[`.f1nh8hsq[data-fui-focus-within]:focus-within::after{border-radius:var(--fui-Card--border-radius);}`,{p:-1}],`.f1amxum7[data-fui-focus-within]:focus-within::after{top:calc(0px - var(--strokeWidthThick) - -2px);}`,`.f1cec8w7[data-fui-focus-within]:focus-within::after{right:calc(0px - var(--strokeWidthThick) - -2px);}`,`.f554mv0[data-fui-focus-within]:focus-within::after{left:calc(0px - var(--strokeWidthThick) - -2px);}`,`.f1sj6kbr[data-fui-focus-within]:focus-within::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}`,`.f1063pyq{flex-direction:row;}`,`.f122n59{align-items:center;}`,`.ftrw7vg>.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}`,`.f18opajm>.fui-CardPreview{margin-bottom:calc(var(--fui-Card--size) * -1);}`,`.f13002it>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-left:calc(var(--fui-Card--size) * -1);}`,`.fqo182t>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-right:calc(var(--fui-Card--size) * -1);}`,`.f18yna97>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-right:calc(var(--fui-Card--size) * -1);}`,`.f1kd6wh7>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-left:calc(var(--fui-Card--size) * -1);}`,`.f4i4759>.fui-CardHeader:last-of-type,.f4i4759>.fui-CardFooter:last-of-type{flex-grow:1;}`,`.f1vx9l62{flex-direction:column;}`,`.f14k419y>.fui-CardPreview{margin-left:calc(var(--fui-Card--size) * -1);}`,`.f1fgo9fz>.fui-CardPreview{margin-right:calc(var(--fui-Card--size) * -1);}`,`.fvqmfsm>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-top:calc(var(--fui-Card--size) * -1);}`,`.f3am6yf>.fui-Card__floatingAction+.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}`,`.f1r5wgso>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-bottom:calc(var(--fui-Card--size) * -1);}`,`.f1pi9uxy{--fui-Card--size:8px;}`,`.f1h1zgly{--fui-Card--border-radius:var(--borderRadiusSmall);}`,`.frsmuga{--fui-Card--size:12px;}`,`.fuldkky{--fui-Card--border-radius:var(--borderRadiusMedium);}`,`.f1qua4xo{--fui-Card--size:16px;}`,`.fimkt6v{--fui-Card--border-radius:var(--borderRadiusLarge);}`,`.f1epqm3e .fui-Text{color:currentColor;}`,`.fxugw4r{background-color:var(--colorNeutralBackground1);}`,`.f1whvlc6{box-shadow:var(--shadow4);}`,`.f16gxe2i::after{border-top-color:var(--colorTransparentStroke);}`,`.fpgykix::after{border-right-color:var(--colorTransparentStroke);}`,`.fzybk4o::after{border-left-color:var(--colorTransparentStroke);}`,`.f1osi826::after{border-bottom-color:var(--colorTransparentStroke);}`,`.f1k6fduh{cursor:pointer;}`,`.f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}`,`.f16eln5f::after{border-top-color:var(--colorNeutralStroke1Selected);}`,`.fa2okxs::after{border-right-color:var(--colorNeutralStroke1Selected);}`,`.fg4zq3l::after{border-left-color:var(--colorNeutralStroke1Selected);}`,`.ff6932p::after{border-bottom-color:var(--colorNeutralStroke1Selected);}`,`.f1dmdbja{background-color:var(--colorNeutralBackground2);}`,`.fjxa0vh{background-color:var(--colorNeutralBackground2Selected);}`,`.f1c21dwh{background-color:var(--colorTransparentBackground);}`,`.f1couhl3{box-shadow:none;}`,`.ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}`,`.f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}`,`.f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}`,`.f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}`,`.f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}`,`.f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}`,`.f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}`,`.fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}`,`.f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}`,`.f13dj02::after{border-top-color:var(--colorNeutralStrokeDisabled);}`,`.f9wngki::after{border-right-color:var(--colorNeutralStrokeDisabled);}`,`.f17v59j0::after{border-left-color:var(--colorNeutralStrokeDisabled);}`,`.f1vxzwsp::after{border-bottom-color:var(--colorNeutralStrokeDisabled);}`,`.fhovq9v{background-color:var(--colorSubtleBackground);}`,`.fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}`,`.f1euv43f{position:absolute;}`,`.fqclxi7{top:4px;}`,`.fiv86kb{right:4px;}`,`.f36uhnt{left:4px;}`,`.fom9my7{z-index:var(--zIndexContent, 1);}`,[`.f1a3p1vp{overflow:hidden;}`,{p:-1}],`.frkrog8{width:1px;}`,`.f1mpe4l3{height:1px;}`,`.fmf1zke{clip:rect(0 0 0 0);}`,`.f1wch0ki{clip-path:inset(50%);}`,`.fz5stix{white-space:nowrap;}`,`.fdrzuqr{cursor:not-allowed;}`,`.f1xqy1su{-webkit-user-select:none;-moz-user-select:none;user-select:none;}`,`.f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}`,`.f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}`,`.fyed02w{box-shadow:var(--shadow2);}`,`.f1wl9k8s::before{content:"";}`,`.f1j7ml58::before{position:absolute;}`,[`.f13vvzas::before{inset:0;}`,{p:-1}],`.f198lalb::before{z-index:calc(var(--zIndexContent, 1) + 1);}`],m:[[`@media (forced-colors: active){.f1j6vpng[data-fui-focus-visible]::after{border-top-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1ffjurs[data-fui-focus-visible]::after{border-left-color:Highlight;}.f1pniga2[data-fui-focus-visible]::after{border-right-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f987i1v[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1ufm4qn[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1qnwcb4[data-fui-focus-within]:focus-within::after{border-right-color:Highlight;}.fgrk5zm[data-fui-focus-within]:focus-within::after{border-left-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fi52z01[data-fui-focus-within]:focus-within::after{border-bottom-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fqc85l4{color:HighlightText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1ucc5z8 .fui-CardPreview,.f1ucc5z8 .fui-CardFooter{forced-color-adjust:auto;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fyj59f4::after{border-top-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f19v95gn::after{border-right-color:Highlight;}.f1n69f6i::after{border-left-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f16q7dot::after{border-bottom-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1quqgnd:hover,.f1quqgnd :active{forced-color-adjust:none;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f193utb4:hover,.f193utb4 :active{background-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1io67iv:hover,.f1io67iv :active{color:HighlightText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f3n01jk:hover .fui-CardPreview,.f3n01jk :active .fui-CardPreview,.f3n01jk:hover .fui-CardFooter,.f3n01jk :active .fui-CardFooter{forced-color-adjust:auto;}}`,{m:`(forced-colors: active)`}]],h:[`.feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}`,`.f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}`,`.f1m145df:hover{box-shadow:var(--shadow8);}`,`.fx9teim:hover{color:var(--colorNeutralForeground1Selected);}`,`.f1kz6goq:hover{background-color:var(--colorNeutralBackground1Selected);}`,`.fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}`,`.f1uvynv3:hover{background-color:var(--colorNeutralBackground2Hover);}`,`.f1luvkty:hover{color:var(--colorNeutralForeground2Selected);}`,`.fehi0vp:hover{background-color:var(--colorNeutralBackground2Selected);}`,`.fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}`,`.f1llr77y:hover::after{border-top-color:var(--colorNeutralStroke1Hover);}`,`.fzk0khw:hover::after{border-right-color:var(--colorNeutralStroke1Hover);}`,`.fjj8tog:hover::after{border-left-color:var(--colorNeutralStroke1Hover);}`,`.fb1u8ub:hover::after{border-bottom-color:var(--colorNeutralStroke1Hover);}`,`.fg59vm4:hover{background-color:var(--colorTransparentBackgroundSelected);}`,`.f1ls5moo:hover,.f1ls5moo:active{background-color:var(--colorTransparentBackground);}`,`.f1qiza15:hover,.f1qiza15:active{box-shadow:none;}`,`.f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}`,`.f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}`,`.f11og98d:hover,.f11og98d:active{cursor:not-allowed;}`,`.f1rg3h4v:hover,.f1rg3h4v:active{-webkit-user-select:none;-moz-user-select:none;user-select:none;}`,`.fbm2y3b:hover,.fbm2y3b:active{color:var(--colorNeutralForegroundDisabled);}`,`.f4yodeu:hover,.f4yodeu:active{background-color:var(--colorNeutralBackgroundDisabled);}`,`.fcwfbwp:hover,.fcwfbwp:active{box-shadow:var(--shadow2);}`,`.f1repx37:hover,.f1repx37:active{border-top-color:var(--colorNeutralStrokeDisabled);}`,`.f1ybi8ct:hover,.f1ybi8ct:active{border-right-color:var(--colorNeutralStrokeDisabled);}`,`.f1h4eg6q:hover,.f1h4eg6q:active{border-left-color:var(--colorNeutralStrokeDisabled);}`,`.f18mejnb:hover,.f18mejnb:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}`,`.f1nift3m:hover::before,.f1nift3m:active::before{content:"";}`,`.f1wu3i8x:hover::before,.f1wu3i8x:active::before{position:absolute;}`,[`.f6v4vfa:hover::before,.f6v4vfa:active::before{inset:0;}`,{p:-1}],`.folrdqs:hover::before,.folrdqs:active::before{z-index:calc(var(--zIndexContent, 1) + 1);}`,`.f168z5yf:hover::after,.f168z5yf:active::after{border-top-color:var(--colorNeutralStrokeDisabled);}`,`.fpor7gj:hover::after,.fpor7gj:active::after{border-right-color:var(--colorNeutralStrokeDisabled);}`,`.fzextn6:hover::after,.fzextn6:active::after{border-left-color:var(--colorNeutralStrokeDisabled);}`,`.f1yaw79v:hover::after,.f1yaw79v:active::after{border-bottom-color:var(--colorNeutralStrokeDisabled);}`],a:[`.fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}`,`.f1yhgkbh:active{background-color:var(--colorNeutralBackground2Pressed);}`,`.fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}`,`.f1uohb70:active::after{border-top-color:var(--colorNeutralStroke1Pressed);}`,`.f1jm7v1n:active::after{border-right-color:var(--colorNeutralStroke1Pressed);}`,`.f1bus3rq:active::after{border-left-color:var(--colorNeutralStroke1Pressed);}`,`.f1fbu7rr:active::after{border-bottom-color:var(--colorNeutralStroke1Pressed);}`,`.f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}`]}),AT=e=>{"use no memo";let t=OT(),n=kT(),r={horizontal:n.orientationHorizontal,vertical:n.orientationVertical},i={small:n.sizeSmall,medium:n.sizeMedium,large:n.sizeLarge},a={filled:n.filled,"filled-alternative":n.filledAlternative,outline:n.outline,subtle:n.subtle},o={filled:n.filledInteractiveSelected,"filled-alternative":n.filledAlternativeInteractiveSelected,outline:n.outlineInteractiveSelected,subtle:n.subtleInteractiveSelected},s={filled:n.filledInteractive,"filled-alternative":n.filledAlternativeInteractive,outline:n.outlineInteractive,subtle:n.subtleInteractive},c=!e.disabled&&(e.interactive||e.selectable),l=M.useMemo(()=>e.disabled?``:e.selectable?e.selectFocused?n.selectableFocused:``:n.focused,[e.disabled,e.selectFocused,e.selectable,n.focused,n.selectableFocused]);return e.root.className=A(DT.root,t,r[e.orientation],i[e.size],a[e.appearance],c&&n.interactive,c&&s[e.appearance],e.selected&&o[e.appearance],l,c&&n.highContrastInteractive,e.selected&&n.highContrastSelected,e.disabled&&n.disabled,e.disabled&&e.appearance===`outline`&&n.outlineDisabled,e.root.className),e.floatingAction&&(e.floatingAction.className=A(DT.floatingAction,n.select,e.floatingAction.className)),e.checkbox&&(e.checkbox.className=A(DT.checkbox,n.hiddenCheckbox,e.checkbox.className)),e};function jT({selectableA11yProps:e}){return{selectableA11yProps:e}}var MT=M.forwardRef((e,t)=>{let n=yT(e,t),r=jT(n);return AT(n),Qi(`useCardStyles_unstable`)(n),xT(n,r)});MT.displayName=`Card`;function NT(e){function t(e){return M.isValidElement(e)&&!!e.props.id}return M.Children.toArray(e).find(t)}function PT(e,t,n){return e||(t?.props.id?t.props.id:n)}var FT=(e,t)=>IT(e,t),IT=(e,t)=>{let{image:n,header:r,description:i,action:a}=e,{selectableA11yProps:{referenceId:o,setReferenceId:s}}=hT(),c=M.useRef(null),l=M.useRef(!1),u=ba(`fui-CardHeader__header`,o),d=Yr(r,{renderByDefault:!0,defaultProps:{ref:c,id:l.current?void 0:o},elementType:`div`});return M.useEffect(()=>{let e=l.current?void 0:c.current?.id,t=NT(d?.children);l.current=!!t,s(PT(e,t,u))},[u,r,d,s]),{components:{root:`div`,image:`div`,header:`div`,description:`div`,action:`div`},root:Jr(Ai(`div`,{ref:t,...e}),{elementType:`div`}),image:Yr(n,{elementType:`div`}),header:d,description:Yr(i,{elementType:`div`}),action:Yr(a,{elementType:`div`})}},LT=e=>oo(e.root,{children:[e.image&&I(e.image,{}),e.header&&I(e.header,{}),e.description&&I(e.description,{}),e.action&&I(e.action,{})]}),RT=M.forwardRef((e,t)=>{let n=FT(e,t);return ET(n),Qi(`useCardHeaderStyles_unstable`)(n),LT(n)});RT.displayName=`CardHeader`;var zT=Symbol(`#internalSet`),BT=zT,VT=class e{static dangerouslyGetInternalSet(e){return e[zT]}static copy(t){return new e(new Set(t[zT]))}static from(e){return e===void 0?this.empty:e instanceof this?e:new this(new Set(e))}static[Symbol.hasInstance](e){return!!(typeof e==`object`&&e&&zT in e)}add(t){if(this.has(t))return this;let n=e.copy(this);return n[zT].add(t),n}delete(t){if(!this.has(t))return this;let n=e.copy(this);return n[zT].delete(t),n}has(e){return this[zT].has(e)}[Symbol.iterator](){return this[zT].values()}constructor(e){Vp(this,`size`,void 0),Vp(this,BT,void 0),this[zT]=e,this.size=this[zT].size}};Vp(VT,`empty`,new VT(new Set));function HT(e){return sa({state:M.useMemo(()=>e.openItems&&VT.from(e.openItems),[e.openItems]),defaultState:e.defaultOpenItems&&(()=>VT.from(e.defaultOpenItems)),initialState:VT.empty})}function UT(e,t){return e.open?t.add(e.value):t.delete(e.value)}var WT=Symbol(`#internalMap`),GT=WT,KT=class e{static dangerouslyGetInternalMap(e){return e[WT]}static copy(e){return this.from(e[WT])}static from(e,t){if(e===void 0)return this.empty;if(!t)return e instanceof this?e:new this(new Map(e));let n=new Map;for(let r of e)n.set(...t(r));return new this(n)}static[Symbol.hasInstance](e){return!!(typeof e==`object`&&e&&WT in e)}delete(t){if(!this.has(t))return this;let n=e.copy(this);return n[WT].delete(t),n}get(e){return this[WT].get(e)}has(e){return this[WT].has(e)}set(t,n){if(this.get(t)===n)return this;let r=e.copy(this);return r[WT].set(t,n),r}[Symbol.iterator](){return this[WT].entries()}constructor(e){Vp(this,`size`,void 0),Vp(this,GT,void 0),this[WT]=e,this.size=this[WT].size}};Vp(KT,`empty`,new KT(new Map));var qT=e=>Array.isArray(e)?e:[e,!0],JT=e=>KT.from(e,qT);function YT(e){return M.useMemo(()=>JT(e.checkedItems),[e.checkedItems])}function XT(e,t){return e.selectionMode===`single`?KT.from([[e.value,e.checked]]):e.selectionMode===`multiselect`?t.set(e.value,e.checked):t}var ZT={level:0,contextType:`subtree`},QT=M.createContext(void 0),$T=()=>M.useContext(QT)??ZT,eE=`--fluent-TreeItem--level`,tE={ArrowLeft:id,ArrowRight:ad,Enter:nd,Click:`Click`,ExpandIconClick:`ExpandIconClick`,End:`End`,Home:sd,ArrowUp:od,ArrowDown:rd,TypeAhead:`TypeAhead`,Change:`Change`};function nE(e,t){let{appearance:n=`subtle`,size:r=`medium`,selectionMode:i=`none`}=e,a=M.useMemo(()=>VT.from(e.openItems),[e.openItems]),o=M.useMemo(()=>JT(e.checkedItems),[e.checkedItems]),s=t=>{var n;(n=e.onOpenChange)==null||n.call(e,t.event,{...t,openItems:VT.dangerouslyGetInternalSet(UT(t,a))})},c=t=>{var n;i!==`none`&&((n=e.onCheckedChange)==null||n.call(e,t.event,{...t,selectionMode:i,checkedItems:KT.dangerouslyGetInternalMap(o)}))},l=t=>{var n;let r=!1;switch((n=e.onNavigation)==null||n.call(e,t.event,{...t,preventScroll:()=>{r=!0},isScrollPrevented:()=>r}),t.type){case tE.ArrowDown:case tE.ArrowUp:case tE.Home:case tE.End:t.event.preventDefault()}},u=F(e=>{switch(e.requestType){case`navigate`:return l(e);case`open`:return s(e);case`selection`:return c(e)}});return{components:{root:`div`,collapseMotion:im},contextType:`root`,selectionMode:i,navigationMode:e.navigationMode??`tree`,open:!0,appearance:n,size:r,level:1,openItems:a,checkedItems:o,requestTreeResponse:u,forceUpdateRovingTabIndex:()=>{},root:Jr(Ai(`div`,{ref:t,role:`tree`,"aria-multiselectable":i===`multiselect`?!0:void 0,...e}),{elementType:`div`}),collapseMotion:void 0}}var rE={level:0,contextType:`root`,treeType:`nested`,selectionMode:`none`,openItems:VT.empty,checkedItems:KT.empty,requestTreeResponse:iE,forceUpdateRovingTabIndex:iE,appearance:`subtle`,size:`medium`,navigationMode:`tree`};function iE(){}var aE=Qu(void 0),oE=e=>$u(aE,(t=rE)=>e(t)),sE={value:`__fuiHeadlessTreeRoot`,selectionRef:M.createRef(),layoutRef:M.createRef(),treeItemRef:M.createRef(),subtreeRef:M.createRef(),actionsRef:M.createRef(),expandIconRef:M.createRef(),isActionsVisible:!1,isAsideVisible:!1,itemType:`leaf`,open:!1,checked:!1},cE=Qu(void 0),{Provider:lE}=cE,uE=e=>$u(cE,(t=sE)=>e(t));function dE(e,t){let n=uE(e=>e.subtreeRef),{level:r}=$T(),i=uE(e=>e.open);return{contextType:`subtree`,open:i,components:{root:`div`,collapseMotion:im},level:r+1,root:Jr(Ai(`div`,{ref:xa(t,n),role:`group`,...e}),{elementType:`div`}),collapseMotion:Zp(e.collapseMotion,{elementType:im,defaultProps:{visible:i,unmountOnExit:!0}})}}function fE(e,t){let n=t.toLowerCase(),r=e=>e.textContent?.trim().charAt(0).toLowerCase()===n?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,i=e.nextElement(r);return i||=(e.currentElement=e.root,e.nextElement(r)),i}var pE=e=>{let t=e.parentElement;for(;t&&t.getAttribute(`role`)!==`tree`;)t=t.parentElement;return t};function mE(){let e=M.useRef(null),t=M.useRef(null),{targetDocument:n}=Gi();pl(e=>{if(e?.getAttribute(`role`)===`treeitem`&&t.current&&t.current.root.contains(e)){let n=pE(e);if(t.current.root!==n)return;i(e)}});let r=M.useCallback(n=>{t.current=n,n.currentElement=n.root;let r=n.firstChild(e=>e.tabIndex===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP);if(n.currentElement=n.root,r??=n.firstChild(),!r)return;r.tabIndex=0,e.current=r;let i=null;for(;(i=n.nextElement())&&i!==r;)i.tabIndex=-1},[]),i=M.useCallback((t,n)=>{e.current&&=(e.current.tabIndex=-1,t.tabIndex=0,t.focus(n),t)},[]);return{rove:i,initialize:r,forceUpdate:M.useCallback(()=>{(e.current===null||!n?.body.contains(e.current))&&t.current&&r(t.current)},[n,r])}}function hE(e,t,n=()=>NodeFilter.FILTER_ACCEPT){let r,i=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){if(!Fa(e))return NodeFilter.FILTER_REJECT;let t=n(e);return t===NodeFilter.FILTER_ACCEPT?r?.(e)??t:t}});return{get root(){return i.root},get currentElement(){return i.currentNode},set currentElement(e){i.currentNode=e},firstChild:e=>{r=e;let t=i.firstChild();return r=void 0,t},lastChild:e=>{r=e;let t=i.lastChild();return r=void 0,t},nextElement:e=>{r=e;let t=i.nextNode();return r=void 0,t},nextSibling:e=>{r=e;let t=i.nextSibling();return r=void 0,t},parentElement:e=>{r=e;let t=i.parentNode();return r=void 0,t},previousElement:e=>{r=e;let t=i.previousNode();return r=void 0,t},previousSibling:e=>{r=e;let t=i.previousSibling();return r=void 0,t}}}var gE=e=>e.getAttribute(`role`)===`treeitem`?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP;function _E(){let{targetDocument:e}=Gi(),t=M.useRef(void 0);return{walkerRef:t,rootRef:M.useCallback(n=>{t.current=e&&n?hE(n,e,gE):void 0},[e])}}var vE=M.memo(()=>{let e=uE(e=>e.open),{dir:t}=Gi(),n=e?90:t===`rtl`?180:0;return M.createElement(cp,{style:{...yE[n],transition:`transform ${gp.durationNormal}ms ${_p.curveEasyEaseMax}`}})});vE.displayName=`TreeItemChevron`;var yE={90:{transform:`rotate(90deg)`},0:{transform:`rotate(0deg)`},180:{transform:`rotate(180deg)`}},bE=(e,t)=>{"use no memo";let{main:n,iconAfter:r,iconBefore:i}=e,a=uE(e=>e.layoutRef),o=oE(e=>e.selectionMode),s=oE(e=>e.navigationMode??`tree`),[c,l]=Qr(e.actions)?[e.actions.visible,e.actions.onVisibilityChange]:[void 0,void 0],[u,d]=sa({state:c,initialState:!1}),f=uE(e=>e.selectionRef),p=uE(e=>e.expandIconRef),m=uE(e=>e.actionsRef),h=M.useRef(null),g=uE(e=>e.treeItemRef),_=uE(e=>e.subtreeRef),v=uE(e=>e.checked),y=uE(e=>e.itemType===`branch`),b=M.useCallback(e=>{if(!(_.current&&Qa(_.current,e.target))){if(l?.(e,{visible:!0,event:e,type:e.type}),e.defaultPrevented)return;d(!0)}},[_,d,l]),{targetDocument:x}=Gi(),S=dl(),C=M.useCallback(e=>{let t=()=>!!(h.current&&Qa(h.current,e.relatedTarget)),n=()=>!!(g.current&&Qa(g.current,e.relatedTarget)),r=()=>!!h.current?.contains(e.target);if(t()){if(l?.(e,{visible:!0,event:e,type:e.type}),e.defaultPrevented)return;d(!0);return}r()&&n()||e.type===`mouseout`&&S()&&(x?.activeElement===g.current||Qa(h.current,x?.activeElement))||(l?.(e,{visible:!1,event:e,type:e.type}),!e.defaultPrevented&&d(!1))},[d,l,g,S,x]),w=Yr(e.expandIcon,{renderByDefault:y,defaultProps:{children:M.createElement(vE,null),"aria-hidden":!0},elementType:`div`}),T=xa(w?.ref,p);w&&(w.ref=T);let E=Vc({circular:s===`tree`,axis:`horizontal`}),D=u?Yr(e.actions,{defaultProps:{...E,role:`toolbar`},elementType:`div`}):void 0;D==null||delete D.visible,D==null||delete D.onVisibilityChange;let O=xa(D?.ref,m,h),ee=F(t=>{if(Qr(e.actions)){var n,r;(n=(r=e.actions).onBlur)==null||n.call(r,t)}let i=!!Qa(t.currentTarget,t.relatedTarget);l?.(t,{visible:i,event:t,type:t.type}),d(i)});D&&(D.ref=O,D.onBlur=ee);let te=!!e.actions;return M.useEffect(()=>{if(g.current&&te){let e=g.current,t=b,n=C,r=b,i=C;return e.addEventListener(`mouseover`,t),e.addEventListener(`mouseout`,n),e.addEventListener(`focus`,r),e.addEventListener(`blur`,i),()=>{e.removeEventListener(`mouseover`,t),e.removeEventListener(`mouseout`,n),e.removeEventListener(`focus`,r),e.removeEventListener(`blur`,i)}}},[te,g,b,C]),{components:{root:`div`,expandIcon:`div`,iconBefore:`div`,main:`div`,iconAfter:`div`,actions:`div`,aside:`div`,selector:o===`multiselect`?Bv:vb},buttonContextValue:{size:`small`},root:Jr(Ai(`div`,{...e,ref:xa(t,a)}),{elementType:`div`}),iconBefore:Yr(i,{elementType:`div`}),main:Jr(n,{elementType:`div`}),iconAfter:Yr(r,{elementType:`div`}),aside:u?void 0:Yr(e.aside,{elementType:`div`}),actions:D,expandIcon:w,selector:Yr(e.selector,{renderByDefault:o!==`none`,defaultProps:{checked:v,tabIndex:-1,"aria-hidden":!0,ref:f},elementType:o===`multiselect`?Bv:vb})}},xE=e=>oo(e.root,{children:[e.expandIcon&&I(e.expandIcon,{}),e.selector&&I(e.selector,{}),e.iconBefore&&I(e.iconBefore,{}),I(e.main,{children:e.root.children}),e.iconAfter&&I(e.iconAfter,{}),oo(N_,{value:e.buttonContextValue,children:[e.actions&&I(e.actions,{}),e.aside&&I(e.aside,{})]})]}),SE={root:`fui-TreeItemLayout`,iconBefore:`fui-TreeItemLayout__iconBefore`,main:`fui-TreeItemLayout__main`,iconAfter:`fui-TreeItemLayout__iconAfter`,expandIcon:`fui-TreeItemLayout__expandIcon`,aside:`fui-TreeItemLayout__aside`,actions:`fui-TreeItemLayout__actions`,selector:`fui-TreeItemLayout__selector`},CE=Vr(`ryb8khq`,null,[`.ryb8khq{display:flex;align-items:center;min-height:32px;box-sizing:border-box;grid-area:layout;}`,`.ryb8khq:hover{color:var(--colorNeutralForeground2Hover);background-color:var(--colorSubtleBackgroundHover);}`,`.ryb8khq:hover .fui-TreeItemLayout__expandIcon{color:var(--colorNeutralForeground3Hover);}`,`.ryb8khq:active{color:var(--colorNeutralForeground2Pressed);background-color:var(--colorSubtleBackgroundPressed);}`,`.ryb8khq:active .fui-TreeItemLayout__expandIcon{color:var(--colorNeutralForeground3Pressed);}`]),wE=P({leaf:{uwmqm3:[`f1k1erfc`,`faevyjx`]},branch:{uwmqm3:[`fo100m9`,`f6yw3pu`]},medium:{Bahqtrf:`fk6fouc`,Be2twd7:`fkhj508`,Bhrd7zp:`figsok6`,Bg96gwp:`f1i3iumi`},small:{sshi5w:`f1pha7fy`,Bahqtrf:`fk6fouc`,Be2twd7:`fy9rknc`,Bhrd7zp:`figsok6`,Bg96gwp:`fwrc4pm`},subtle:{},"subtle-alpha":{Jwef8y:`f146ro5n`,ecr2s2:`fkam630`},transparent:{De3pzq:`f1c21dwh`,Jwef8y:`fjxutwb`,ecr2s2:`fophhak`}},{d:[`.f1k1erfc{padding-left:calc(var(--fluent-TreeItem--level, 1) * var(--spacingHorizontalXXL));}`,`.faevyjx{padding-right:calc(var(--fluent-TreeItem--level, 1) * var(--spacingHorizontalXXL));}`,`.fo100m9{padding-left:calc((var(--fluent-TreeItem--level, 1) - 1) * var(--spacingHorizontalXXL));}`,`.f6yw3pu{padding-right:calc((var(--fluent-TreeItem--level, 1) - 1) * var(--spacingHorizontalXXL));}`,`.fk6fouc{font-family:var(--fontFamilyBase);}`,`.fkhj508{font-size:var(--fontSizeBase300);}`,`.figsok6{font-weight:var(--fontWeightRegular);}`,`.f1i3iumi{line-height:var(--lineHeightBase300);}`,`.f1pha7fy{min-height:24px;}`,`.fy9rknc{font-size:var(--fontSizeBase200);}`,`.fwrc4pm{line-height:var(--lineHeightBase200);}`,`.f1c21dwh{background-color:var(--colorTransparentBackground);}`],h:[`.f146ro5n:hover{background-color:var(--colorSubtleBackgroundLightAlphaHover);}`,`.fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}`],a:[`.fkam630:active{background-color:var(--colorSubtleBackgroundLightAlphaPressed);}`,`.fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}`]}),TE=Vr(`rzvs2in`,`r17h8a29`,[`.rzvs2in{display:flex;margin-left:auto;position:relative;z-index:1;grid-area:aside;padding:0 var(--spacingHorizontalS);}`,`.r17h8a29{display:flex;margin-right:auto;position:relative;z-index:1;grid-area:aside;padding:0 var(--spacingHorizontalS);}`]),EE=Vr(`r1825u21`,`rezy0yk`,[`.r1825u21{display:flex;margin-left:auto;align-items:center;z-index:0;grid-area:aside;padding:0 var(--spacingHorizontalM);gap:var(--spacingHorizontalXS);}`,`.rezy0yk{display:flex;margin-right:auto;align-items:center;z-index:0;grid-area:aside;padding:0 var(--spacingHorizontalM);gap:var(--spacingHorizontalXS);}`]),DE=Vr(`rh4pu5o`,null,[`.rh4pu5o{display:flex;align-items:center;justify-content:center;min-width:24px;box-sizing:border-box;color:var(--colorNeutralForeground3);flex:0 0 auto;padding:var(--spacingVerticalXS) 0;}`]),OE=Vr(`rklbe47`,null,[`.rklbe47{padding:0 var(--spacingHorizontalXXS);}`]),kE=Vr(`rphzgg1`,null,[`.rphzgg1{display:flex;align-items:center;color:var(--colorNeutralForeground2);line-height:var(--lineHeightBase500);font-size:var(--fontSizeBase500);}`]),AE=P({medium:{z189sj:[`f7x41pl`,`fruq291`]},small:{z189sj:[`ffczdla`,`fgiv446`]}},{d:[`.f7x41pl{padding-right:var(--spacingHorizontalXS);}`,`.fruq291{padding-left:var(--spacingHorizontalXS);}`,`.ffczdla{padding-right:var(--spacingHorizontalXXS);}`,`.fgiv446{padding-left:var(--spacingHorizontalXXS);}`]}),jE=P({medium:{uwmqm3:[`fruq291`,`f7x41pl`]},small:{uwmqm3:[`fgiv446`,`ffczdla`]}},{d:[`.fruq291{padding-left:var(--spacingHorizontalXS);}`,`.f7x41pl{padding-right:var(--spacingHorizontalXS);}`,`.fgiv446{padding-left:var(--spacingHorizontalXXS);}`,`.ffczdla{padding-right:var(--spacingHorizontalXXS);}`]}),ME=e=>{"use no memo";let{main:t,iconAfter:n,iconBefore:r,expandIcon:i,root:a,aside:o,actions:s,selector:c}=e,l=wE(),u=CE(),d=TE(),f=EE(),p=OE(),m=DE(),h=kE(),g=AE(),_=jE(),v=oE(e=>e.size),y=oE(e=>e.appearance),b=uE(e=>e.itemType);return a.className=A(SE.root,u,l[y],l[v],l[b],a.className),t.className=A(SE.main,p,t.className),i&&(i.className=A(SE.expandIcon,m,i.className)),r&&(r.className=A(SE.iconBefore,h,g[v],r.className)),n&&(n.className=A(SE.iconAfter,h,_[v],n.className)),s&&(s.className=A(SE.actions,d,s.className)),o&&(o.className=A(SE.aside,f,o.className)),c&&(c.className=A(SE.selector,c.className)),e},NE=M.forwardRef((e,t)=>{let n=bE(e,t);return ME(n),Qi(`useTreeItemLayoutStyles_unstable`)(n),xE(n)});NE.displayName=`TreeItemLayout`;function PE(e=`tree`){"use no memo";let{rove:t,initialize:n,forceUpdate:r}=mE(),{findFirstFocusable:i}=Gc(),{walkerRef:a,rootRef:o}=_E(),s=M.useCallback(e=>{e&&a.current&&n(a.current)},[a,n]),c=t=>{if(!a.current)return null;switch(t.type){case tE.Click:return t.target;case tE.TypeAhead:return a.current.currentElement=t.target,fE(a.current,t.event.key);case tE.ArrowLeft:{let n=IE(t.target);return e===`treegrid`&&n?.contains(t.target.ownerDocument.activeElement)?t.target:(a.current.currentElement=t.target,a.current.parentElement())}case tE.ArrowRight:if(e===`treegrid`){let e=IE(t.target);if(e){var n;(n=i(e))==null||n.focus()}return null}return a.current.currentElement=t.target,a.current.firstChild();case tE.End:return a.current.currentElement=a.current.root,FE(a.current);case tE.Home:return a.current.currentElement=a.current.root,a.current.firstChild();case tE.ArrowDown:return a.current.currentElement=t.target,a.current.nextElement();case tE.ArrowUp:return a.current.currentElement=t.target,a.current.previousElement()}};function l(e,n){let r=c(e);return r&&t(r,n),r}return{navigate:l,treeRef:xa(o,s),forceUpdateRovingTabIndex:r}}function FE(e){let t=null,n=null;for(;n=e.lastChild();)t=n;return t}var IE=e=>e.querySelector(`:scope > .${SE.root} > .${SE.actions}`),LE=(e,t)=>{"use no memo";return M.useContext(QT)===void 0?RE(e,t):zE(e,t)};function RE(e,t){"use no memo";let[n,r]=HT(e),i=YT(e),a=PE(e.navigationMode);return Object.assign(nE({...e,openItems:n,checkedItems:i,onOpenChange:F((t,i)=>{var a;let o=UT(i,n);(a=e.onOpenChange)==null||a.call(e,t,{...i,openItems:VT.dangerouslyGetInternalSet(o)}),r(o)}),onNavigation:F((t,n)=>{var r;(r=e.onNavigation)==null||r.call(e,t,n),t.isDefaultPrevented()||a.navigate(n,{preventScroll:n.isScrollPrevented()})}),onCheckedChange:F((t,n)=>{var r;let a=XT(n,i);(r=e.onCheckedChange)==null||r.call(e,t,{...n,checkedItems:KT.dangerouslyGetInternalMap(a)})})},xa(t,a.treeRef)),{treeType:`nested`,forceUpdateRovingTabIndex:a.forceUpdateRovingTabIndex})}function zE(e,t){"use no memo";return dE(e,t)}function BE(e){"use no memo";if(e.contextType===`root`){let{openItems:t,level:n,contextType:r,treeType:i,checkedItems:a,selectionMode:o,navigationMode:s,appearance:c,size:l,requestTreeResponse:u,forceUpdateRovingTabIndex:d}=e;return{tree:M.useMemo(()=>({treeType:i,size:l,openItems:t,appearance:c,checkedItems:a,selectionMode:o,navigationMode:s,contextType:r,level:n,requestTreeResponse:u,forceUpdateRovingTabIndex:d}),[i,l,t,c,a,o,s,r,n,u,d])}}return{tree:M.useMemo(()=>({level:e.level,contextType:`subtree`}),[e.level])}}var VE={root:`fui-Tree`},HE=Vr(`rnv2ez3`,null,[`.rnv2ez3{display:flex;flex-direction:column;row-gap:var(--spacingVerticalXXS);}`]),UE=P({subtree:{z8tnut:`fclwglc`}},{d:[`.fclwglc{padding-top:var(--spacingVerticalXXS);}`]}),WE=e=>{"use no memo";let t=HE(),n=UE(),r=e.level>1;return e.root.className=A(VE.root,t,r&&n.subtree,e.root.className),e},GE={level:1,contextType:`subtree`},KE=e=>e.value.contextType===`subtree`?M.createElement(QT.Provider,{value:e.value},e.children):M.createElement(aE.Provider,{value:e.value},M.createElement(QT.Provider,{value:GE},e.children));KE.displayName=`TreeProvider`;var qE=(e,t)=>I(KE,{value:t.tree,children:e.collapseMotion?I(e.collapseMotion,{children:I(e.root,{})}):I(e.root,{})}),JE=M.forwardRef((e,t)=>{let n=LE(e,t),r=BE(n);return WE(n),Qi(`useTreeStyles_unstable`)(n),qE(n,r)});JE.displayName=`Tree`;var YE=`data-fui-tree-item-value`;function XE(e,t){"use no memo";oE(e=>e.treeType);let n=oE(e=>e.requestTreeResponse),r=oE(e=>e.navigationMode??`tree`),i=oE(e=>e.forceUpdateRovingTabIndex),{level:a}=$T(),o=uE(t=>e.parentValue??t.value),s=ba(`fuiTreeItemValue-`),c=e.value??s,{onClick:l,onKeyDown:u,onChange:d,as:f=`div`,itemType:p=`leaf`,"aria-level":m=a,"aria-selected":h,"aria-expanded":g,..._}=e,v=M.useRef(null),y=M.useRef(null),b=M.useRef(null),x=M.useRef(null),S=M.useRef(null),C=M.useRef(null);M.useEffect(()=>{i?.();let e=C.current;return()=>{e&&e.tabIndex===0&&i?.()}},[i]);let w=oE(t=>e.open??t.openItems.has(c)),T=()=>p===`branch`?!w:w,E=oE(e=>e.selectionMode),D=oE(e=>e.checkedItems.get(c)??!1),O=F(t=>{let r=()=>v.current&&Qa(v.current,t.target),i=()=>x.current&&Qa(x.current,t.target),a=()=>S.current?.contains(t.target),s=y.current?.contains(t.target);r()||i()||a()||(s||l?.(t),!t.isDefaultPrevented()&&__.unstable_batchedUpdates(()=>{let r={event:t,value:c,open:T(),target:t.currentTarget,type:s?tE.ExpandIconClick:tE.Click};if(p!==`leaf`){var i;(i=e.onOpenChange)==null||i.call(e,t,r),n({...r,itemType:p,requestType:`open`})}n({...r,itemType:p,parentValue:o,requestType:`navigate`,type:tE.Click})}))}),ee=F(t=>{if(u?.(t),t.isDefaultPrevented()||!C.current)return;let i=t.currentTarget===t.target,a=v.current&&v.current.contains(t.target);switch(t.key){case` `:if(!i)return;if(E!==`none`){var s;(s=S.current)==null||s.click(),t.preventDefault()}return;case tE.Enter:return i?t.currentTarget.click():void 0;case tE.End:case tE.Home:case tE.ArrowUp:return!i&&!a?void 0:n({requestType:`navigate`,event:t,value:c,itemType:p,parentValue:o,type:t.key,target:t.currentTarget});case tE.ArrowDown:return!i&&!a||a&&(!Fa(t.target)||t.target.hasAttribute(`aria-haspopup`))?void 0:n({requestType:`navigate`,event:t,value:c,itemType:p,parentValue:o,type:t.key,target:t.currentTarget});case tE.ArrowLeft:{if(t.altKey)return;let s={value:c,event:t,open:T(),type:t.key,itemType:p,parentValue:o,target:t.currentTarget};if(a&&r===`treegrid`){n({...s,requestType:`navigate`});return}if(!i||m===1&&!w)return;if(w){var l;(l=e.onOpenChange)==null||l.call(e,t,s)}n({...s,requestType:w?`open`:`navigate`});return}case tE.ArrowRight:{if(!i||t.altKey)return;let r={value:c,event:t,open:T(),type:t.key,target:t.currentTarget};if(p===`branch`&&!w){var d;(d=e.onOpenChange)==null||d.call(e,t,r),n({...r,itemType:p,requestType:`open`})}else n({...r,itemType:p,parentValue:o,requestType:`navigate`});return}}i&&t.key.length===1&&t.key.match(/\w/)&&!t.altKey&&!t.ctrlKey&&!t.metaKey&&n({requestType:`navigate`,event:t,target:t.currentTarget,value:c,itemType:p,type:tE.TypeAhead,parentValue:o})}),te=F(e=>{d?.(e),!e.isDefaultPrevented()&&(x.current&&Qa(x.current,e.target)||n({requestType:`selection`,event:e,value:c,itemType:p,type:`Change`,target:e.currentTarget,checked:D===`mixed`?!0:!D}))});return{value:c,open:w,checked:D,subtreeRef:x,layoutRef:b,selectionRef:S,expandIconRef:y,treeItemRef:C,actionsRef:v,itemType:p,level:m,components:{root:`div`},isAsideVisible:!1,isActionsVisible:!1,root:Jr(Ai(f,{tabIndex:-1,[YE]:c,role:`treeitem`,..._,ref:xa(t,C),"aria-level":m,"aria-checked":E===`multiselect`?D:void 0,"aria-selected":h===void 0?E===`single`?!!D:void 0:h,"aria-expanded":g===void 0?p===`branch`?w:void 0:g,onClick:O,onKeyDown:ee,onChange:te}),{elementType:`div`})}}var ZE=(e,t)=>I(e.root,{children:I(lE,{value:t.treeItem,children:e.root.children})}),QE={root:`fui-TreeItem`},$E=Vr(`r15xhw3a`,`r2f6k57`,[`.r15xhw3a{position:relative;cursor:pointer;display:flex;flex-direction:column;box-sizing:border-box;background-color:var(--colorSubtleBackground);color:var(--colorNeutralForeground2);padding-right:var(--spacingHorizontalNone);}`,`.r15xhw3a:focus{outline-style:none;}`,`.r15xhw3a:focus-visible{outline-style:none;}`,`.r15xhw3a[data-fui-focus-visible]>.fui-TreeItemLayout,.r15xhw3a[data-fui-focus-visible]>.fui-TreeItemPersonaLayout{border-radius:var(--borderRadiusMedium);outline-color:var(--colorStrokeFocus2);outline-radius:var(--borderRadiusMedium);outline-width:2px;outline-style:solid;}`,`.r2f6k57{position:relative;cursor:pointer;display:flex;flex-direction:column;box-sizing:border-box;background-color:var(--colorSubtleBackground);color:var(--colorNeutralForeground2);padding-left:var(--spacingHorizontalNone);}`,`.r2f6k57:focus{outline-style:none;}`,`.r2f6k57:focus-visible{outline-style:none;}`,`.r2f6k57[data-fui-focus-visible]>.fui-TreeItemLayout,.r2f6k57[data-fui-focus-visible]>.fui-TreeItemPersonaLayout{border-radius:var(--borderRadiusMedium);outline-color:var(--colorStrokeFocus2);outline-radius:var(--borderRadiusMedium);outline-width:2px;outline-style:solid;}`]),eD=P({level1:{iytv0q:`f10bgyvd`},level2:{iytv0q:`f1h0rod3`},level3:{iytv0q:`fgoqafk`},level4:{iytv0q:`f75dvuh`},level5:{iytv0q:`fqk7yw6`},level6:{iytv0q:`f1r3z17b`},level7:{iytv0q:`f1hrpd1h`},level8:{iytv0q:`f1iy65d0`},level9:{iytv0q:`ftg42e5`},level10:{iytv0q:`fyat3t`}},{d:[`.f10bgyvd{--fluent-TreeItem--level:1;}`,`.f1h0rod3{--fluent-TreeItem--level:2;}`,`.fgoqafk{--fluent-TreeItem--level:3;}`,`.f75dvuh{--fluent-TreeItem--level:4;}`,`.fqk7yw6{--fluent-TreeItem--level:5;}`,`.f1r3z17b{--fluent-TreeItem--level:6;}`,`.f1hrpd1h{--fluent-TreeItem--level:7;}`,`.f1iy65d0{--fluent-TreeItem--level:8;}`,`.ftg42e5{--fluent-TreeItem--level:9;}`,`.fyat3t{--fluent-TreeItem--level:10;}`]}),tD=e=>{"use no memo";let t=$E(),n=eD(),{level:r}=e;return e.root.className=A(QE.root,t,nD(r)&&n[`level${r}`],e.root.className),nD(r)||(e.root.style={[eE]:r,...e.root.style}),e};function nD(e){return e>=1&&e<=10}function rD(e){let{value:t,itemType:n,layoutRef:r,subtreeRef:i,open:a,expandIconRef:o,actionsRef:s,treeItemRef:c,isActionsVisible:l,isAsideVisible:u,selectionRef:d,checked:f}=e;return{treeItem:M.useMemo(()=>({value:t,checked:f,itemType:n,layoutRef:r,subtreeRef:i,open:a,selectionRef:d,isActionsVisible:l,isAsideVisible:u,actionsRef:s,treeItemRef:c,expandIconRef:o}),[t,f,n,r,i,a,d,l,u,s,c,o])}}var iD=M.forwardRef((e,t)=>{let n=XE(e,t);return tD(n),Qi(`useTreeItemStyles_unstable`)(n),ZE(n,rD(n))});iD.displayName=`TreeItem`;var aD=M.createContext(void 0),oD={handleTagDismiss:()=>({}),size:`medium`,role:`toolbar`,handleTagSelect:void 0},sD=aD.Provider,cD=()=>M.useContext(aD)??oD,lD={medium:28,small:20,"extra-small":16},uD={rounded:`square`,circular:`circular`},dD=(e,t)=>{let{handleTagDismiss:n,disabled:r,dismissible:i,role:a}=cD(),o=ba(`fui-Tag`,e.id),{disabled:s=!1,dismissible:c=i??!1,selected:l,value:u=o}=e,d=F(t=>{var r;(r=e.onClick)==null||r.call(e,t),t.defaultPrevented||n?.(t,{value:u})}),f=F(t=>{var r;e==null||(r=e.onKeyDown)==null||r.call(e,t),!t.defaultPrevented&&(t.key===`Delete`||t.key===`Backspace`)&&n?.(t,{value:u})}),p=c?`button`:`span`,m=a===`listbox`?`aria-selected`:`aria-pressed`,h=typeof l==`boolean`||a===`listbox`;return{disabled:r?!0:s,dismissible:c,selected:!!l,components:{root:p,media:`span`,icon:`span`,primaryText:`span`,secondaryText:`span`,dismissIcon:`span`},root:Jr(Ai(p,{ref:t,role:a===`listbox`?`option`:void 0,[m]:h?l:void 0,...e,disabled:r?!0:s,id:o,...c&&{onClick:d,onKeyDown:f}}),{defaultProps:{type:p===`button`?`button`:void 0},elementType:p}),media:Yr(e.media,{elementType:`span`}),icon:Yr(e.icon,{elementType:`span`}),primaryText:Yr(e.primaryText,{renderByDefault:!0,defaultProps:{children:e.children},elementType:`span`}),secondaryText:Yr(e.secondaryText,{elementType:`span`}),dismissIcon:Yr(e.dismissIcon,{renderByDefault:c,elementType:`span`})}},fD=(e,t)=>{let{size:n,appearance:r}=cD(),{appearance:i=r??`filled`,shape:a=`rounded`,size:o=n}=e,s=dD(e,t);if(s.dismissIcon){var c;(c=s.dismissIcon).children??(c.children=M.createElement(jf,null))}return{...s,appearance:i,avatarShape:uD[a],avatarSize:lD[o],shape:a,size:o}},pD=(e,t)=>oo(e.root,{children:[e.media&&I(bm,{value:t.avatar,children:I(e.media,{})}),e.icon&&I(e.icon,{}),e.primaryText&&I(e.primaryText,{}),e.secondaryText&&I(e.secondaryText,{}),e.dismissIcon&&e.dismissible&&I(e.dismissIcon,{})]}),mD={root:`fui-Tag`,media:`fui-Tag__media`,icon:`fui-Tag__icon`,primaryText:`fui-Tag__primaryText`,secondaryText:`fui-Tag__secondaryText`,dismissIcon:`fui-Tag__dismissIcon`};`${z.strokeWidthThin}${z.colorTransparentStroke}`;var hD=Vr(`r18f5o0q`,`r1u2q8zc`,{r:[`.r18f5o0q{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusMedium);}`,`.r18f5o0q[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}`,`.r1u2q8zc{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusMedium);}`,`.r1u2q8zc[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}`],s:[`@media (forced-colors: active){.r18f5o0q{position:relative;}.r18f5o0q::before{content:"";border-top:var(--strokeWidthThin) solid;position:absolute;inset:-1px;border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);}}`,`@media (forced-colors: active){.r1u2q8zc{position:relative;}.r1u2q8zc::before{content:"";border-top:var(--strokeWidthThin) solid;position:absolute;inset:-1px;border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);}}`]}),gD=Vr(`r1mko7zc`,`r1wx1e29`,{r:[`.r1mko7zc{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusCircular);}`,`.r1mko7zc[data-fui-focus-visible]{border-radius:var(--borderRadiusCircular);outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}`,`.r1wx1e29{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusCircular);}`,`.r1wx1e29[data-fui-focus-visible]{border-radius:var(--borderRadiusCircular);outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}`],s:[`@media (forced-colors: active){.r1mko7zc{position:relative;}.r1mko7zc::before{content:"";border-top:var(--strokeWidthThin) solid;border-left:var(--strokeWidthThin) solid;border-right:var(--strokeWidthThin) solid;position:absolute;inset:-1px;border-radius:var(--borderRadiusCircular);}}`,`@media (forced-colors: active){.r1wx1e29{position:relative;}.r1wx1e29::before{content:"";border-top:var(--strokeWidthThin) solid;border-right:var(--strokeWidthThin) solid;border-left:var(--strokeWidthThin) solid;position:absolute;inset:-1px;border-radius:var(--borderRadiusCircular);}}`]}),_D=P({filled:{De3pzq:`f16xq7d1`,sj55zd:`fkfq4zb`},outline:{De3pzq:`fhovq9v`,sj55zd:`fkfq4zb`,g2u3we:`fj3muxo`,h3c5rm:[`f1akhkt`,`f1lxtadh`],B9xav0g:`f1aperda`,zhjwy3:[`f1lxtadh`,`f1akhkt`]},brand:{De3pzq:`f16xkysk`,sj55zd:`faj9fo0`},selected:{De3pzq:`ffp7eso`,sj55zd:`f1phragk`,g2u3we:`fk9qgl1`,h3c5rm:[`f1vfbj5f`,`f1qpacp7`],B9xav0g:`fdf0ba2`,zhjwy3:[`f1qpacp7`,`f1vfbj5f`],B8gzw0y:`f1h3a8gf`,By8wz76:`f1nz3ub2`,B7iucu3:`fqc85l4`},medium:{Bqenvij:`f1d2rq10`},small:{Bqenvij:`frvgh55`},"extra-small":{qhf8xq:`f10pi13n`,Bqenvij:`fjamq6b`,Ie5t1m:`fru8nlv`,G6hvz8:`f5nasji`,wgw0td:`f45hpys`,Bbwa3xj:[`f1sbfcjn`,`f1le4i14`],m3mfg4:`fq6y7a1`,B9s7hj8:`f1jr4pq3`,B9e1dac:`f1tfer7m`}},{d:[`.f16xq7d1{background-color:var(--colorNeutralBackground3);}`,`.fkfq4zb{color:var(--colorNeutralForeground2);}`,`.fhovq9v{background-color:var(--colorSubtleBackground);}`,`.fj3muxo{border-top-color:var(--colorNeutralStroke1);}`,`.f1akhkt{border-right-color:var(--colorNeutralStroke1);}`,`.f1lxtadh{border-left-color:var(--colorNeutralStroke1);}`,`.f1aperda{border-bottom-color:var(--colorNeutralStroke1);}`,`.f16xkysk{background-color:var(--colorBrandBackground2);}`,`.faj9fo0{color:var(--colorBrandForeground2);}`,`.ffp7eso{background-color:var(--colorBrandBackground);}`,`.f1phragk{color:var(--colorNeutralForegroundOnBrand);}`,`.fk9qgl1{border-top-color:var(--colorBrandStroke1);}`,`.f1vfbj5f{border-right-color:var(--colorBrandStroke1);}`,`.f1qpacp7{border-left-color:var(--colorBrandStroke1);}`,`.fdf0ba2{border-bottom-color:var(--colorBrandStroke1);}`,`.f1d2rq10{height:32px;}`,`.frvgh55{height:24px;}`,`.f10pi13n{position:relative;}`,`.fjamq6b{height:20px;}`],m:[[`@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fqc85l4{color:HighlightText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: none){.fru8nlv:before,.fru8nlv:after{content:"";}}`,{m:`(forced-colors: none)`}],[`@media (forced-colors: none){.f5nasji:before,.f5nasji:after{position:absolute;}}`,{m:`(forced-colors: none)`}],[`@media (forced-colors: none){.f45hpys:before,.f45hpys:after{height:2px;}}`,{m:`(forced-colors: none)`}],[`@media (forced-colors: none){.f1le4i14:before,.f1le4i14:after{right:0;}.f1sbfcjn:before,.f1sbfcjn:after{left:0;}}`,{m:`(forced-colors: none)`}],[`@media (forced-colors: none){.fq6y7a1:before,.fq6y7a1:after{width:100%;}}`,{m:`(forced-colors: none)`}],[`@media (forced-colors: none){.f1jr4pq3:before{bottom:100%;}}`,{m:`(forced-colors: none)`}],[`@media (forced-colors: none){.f1tfer7m:after{top:100%;}}`,{m:`(forced-colors: none)`}]]}),vD=P({filled:{Bceei9c:`fdrzuqr`,De3pzq:`f1bg9a2p`,sj55zd:`f1s2aq7o`,g2u3we:`fgig46g`,h3c5rm:[`f1mxt3zg`,`fziff3p`],B9xav0g:`f250w3l`,zhjwy3:[`fziff3p`,`f1mxt3zg`]},outline:{Bceei9c:`fdrzuqr`,De3pzq:`fhovq9v`,sj55zd:`f1s2aq7o`,g2u3we:`f1jj8ep1`,h3c5rm:[`f15xbau`,`fy0fskl`],B9xav0g:`f4ikngz`,zhjwy3:[`fy0fskl`,`f15xbau`]},brand:{Bceei9c:`fdrzuqr`,De3pzq:`f1bg9a2p`,sj55zd:`f1s2aq7o`,g2u3we:`fgig46g`,h3c5rm:[`f1mxt3zg`,`fziff3p`],B9xav0g:`f250w3l`,zhjwy3:[`fziff3p`,`f1mxt3zg`]}},{d:[`.fdrzuqr{cursor:not-allowed;}`,`.f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}`,`.f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}`,`.fgig46g{border-top-color:var(--colorTransparentStrokeDisabled);}`,`.f1mxt3zg{border-right-color:var(--colorTransparentStrokeDisabled);}`,`.fziff3p{border-left-color:var(--colorTransparentStrokeDisabled);}`,`.f250w3l{border-bottom-color:var(--colorTransparentStrokeDisabled);}`,`.fhovq9v{background-color:var(--colorSubtleBackground);}`,`.f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}`,`.f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}`,`.fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}`,`.f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}`]}),yD=P({medium:{uwmqm3:[`f1rtp3s9`,`f18k1jr3`]},small:{uwmqm3:[`f15vdbe4`,`fwiuce9`]},"extra-small":{uwmqm3:[`f15vdbe4`,`fwiuce9`]}},{d:[`.f1rtp3s9{padding-left:7px;}`,`.f18k1jr3{padding-right:7px;}`,`.f15vdbe4{padding-left:5px;}`,`.fwiuce9{padding-right:5px;}`]}),bD=P({medium:{z189sj:[`f18k1jr3`,`f1rtp3s9`]},small:{z189sj:[`fwiuce9`,`f15vdbe4`]},"extra-small":{z189sj:[`fwiuce9`,`f15vdbe4`]}},{d:[`.f18k1jr3{padding-right:7px;}`,`.f1rtp3s9{padding-left:7px;}`,`.fwiuce9{padding-right:5px;}`,`.f15vdbe4{padding-left:5px;}`]}),xD=P({base:{Bw0ie65:0,Br312pm:0,nk6f5a:0,Ijaq50:0,Bq1tomu:`fujjg13`,mc9l5x:`f22iagw`,B7ck84d:`f1e4lqlz`},medium:{uwmqm3:[`f1rtp3s9`,`f18k1jr3`],z189sj:[`f7x41pl`,`fruq291`],a9b677:`f64fuq3`,Be2twd7:`fe5j1ua`},small:{uwmqm3:[`f15vdbe4`,`fwiuce9`],z189sj:[`ffczdla`,`fgiv446`],a9b677:`fjw5fx7`,Be2twd7:`f4ybsrx`},"extra-small":{uwmqm3:[`f15vdbe4`,`fwiuce9`],z189sj:[`ffczdla`,`fgiv446`],a9b677:`frx94fk`,Be2twd7:`f1ugzwwg`}},{d:[[`.fujjg13{grid-area:media;}`,{p:-1}],`.f22iagw{display:flex;}`,`.f1e4lqlz{box-sizing:content-box;}`,`.f1rtp3s9{padding-left:7px;}`,`.f18k1jr3{padding-right:7px;}`,`.f7x41pl{padding-right:var(--spacingHorizontalXS);}`,`.fruq291{padding-left:var(--spacingHorizontalXS);}`,`.f64fuq3{width:20px;}`,`.fe5j1ua{font-size:20px;}`,`.f15vdbe4{padding-left:5px;}`,`.fwiuce9{padding-right:5px;}`,`.ffczdla{padding-right:var(--spacingHorizontalXXS);}`,`.fgiv446{padding-left:var(--spacingHorizontalXXS);}`,`.fjw5fx7{width:16px;}`,`.f4ybsrx{font-size:16px;}`,`.frx94fk{width:12px;}`,`.f1ugzwwg{font-size:12px;}`]}),SD=P({base:{Bw0ie65:0,Br312pm:0,nk6f5a:0,Ijaq50:0,Bq1tomu:`fujjg13`,mc9l5x:`f22iagw`,uwmqm3:[`f10xn8zz`,`f136y8j8`]},medium:{z189sj:[`f1vdfbxk`,`f1f5gg8d`]},small:{z189sj:[`fdw0yi8`,`fk8j09s`]},"extra-small":{z189sj:[`fdw0yi8`,`fk8j09s`]}},{d:[[`.fujjg13{grid-area:media;}`,{p:-1}],`.f22iagw{display:flex;}`,`.f10xn8zz{padding-left:1px;}`,`.f136y8j8{padding-right:1px;}`,`.f1vdfbxk{padding-right:var(--spacingHorizontalS);}`,`.f1f5gg8d{padding-left:var(--spacingHorizontalS);}`,`.fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}`,`.fk8j09s{padding-left:var(--spacingHorizontalSNudge);}`]}),CD=P({base:{Bw0ie65:0,Br312pm:0,nk6f5a:0,Ijaq50:0,Bq1tomu:`f1k1gsvr`,mc9l5x:`f22iagw`,Bahaeuw:`f1v3eptx`,Boo3t63:`f1rfz71x`},medium:{uwmqm3:[`fruq291`,`f7x41pl`],z189sj:[`f18k1jr3`,`f1rtp3s9`],Be2twd7:`fe5j1ua`},small:{uwmqm3:[`fgiv446`,`ffczdla`],z189sj:[`fwiuce9`,`f15vdbe4`],Be2twd7:`f4ybsrx`},"extra-small":{uwmqm3:[`fgiv446`,`ffczdla`],z189sj:[`fwiuce9`,`f15vdbe4`],Be2twd7:`f1ugzwwg`},filled:{eoavqd:`f8491dx`,Bi91k9c:`f3ymbdj`,lj723h:`fryz5bw`},outline:{eoavqd:`f8491dx`,Bi91k9c:`f3ymbdj`,lj723h:`fryz5bw`},brand:{eoavqd:`f8491dx`,Bi91k9c:`f3ymbdj`,lj723h:`fryz5bw`},selected:{Bi91k9c:`f1rq72xc`,lj723h:`f18otbis`}},{d:[[`.f1k1gsvr{grid-area:dismissIcon;}`,{p:-1}],`.f22iagw{display:flex;}`,`.fruq291{padding-left:var(--spacingHorizontalXS);}`,`.f7x41pl{padding-right:var(--spacingHorizontalXS);}`,`.f18k1jr3{padding-right:7px;}`,`.f1rtp3s9{padding-left:7px;}`,`.fe5j1ua{font-size:20px;}`,`.fgiv446{padding-left:var(--spacingHorizontalXXS);}`,`.ffczdla{padding-right:var(--spacingHorizontalXXS);}`,`.fwiuce9{padding-right:5px;}`,`.f15vdbe4{padding-left:5px;}`,`.f4ybsrx{font-size:16px;}`,`.f1ugzwwg{font-size:12px;}`],m:[[`@media (forced-colors: active){.f1v3eptx:hover{color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1rfz71x:active{color:Highlight;}}`,{m:`(forced-colors: active)`}]],h:[`.f8491dx:hover{cursor:pointer;}`,`.f3ymbdj:hover{color:var(--colorCompoundBrandForeground1Hover);}`,`.f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}`],a:[`.fryz5bw:active{color:var(--colorCompoundBrandForeground1Pressed);}`,`.f18otbis:active{color:var(--colorNeutralForegroundOnBrand);}`]}),wD=P({base:{Huce71:`fz5stix`,uwmqm3:[`fgiv446`,`ffczdla`],z189sj:[`ffczdla`,`fgiv446`]},medium:{Bahqtrf:`fk6fouc`,Be2twd7:`fkhj508`,Bhrd7zp:`figsok6`,Bg96gwp:`f1i3iumi`},small:{Bahqtrf:`fk6fouc`,Be2twd7:`fy9rknc`,Bhrd7zp:`figsok6`,Bg96gwp:`fwrc4pm`},"extra-small":{Bahqtrf:`fk6fouc`,Be2twd7:`fy9rknc`,Bhrd7zp:`figsok6`,Bg96gwp:`fwrc4pm`},withoutSecondaryText:{Br312pm:`faqcfhe`,Ijaq50:`f1q3ipgb`,nk6f5a:`fc0ab3q`,Byoj8tv:`f1g03r3y`},withSecondaryText:{Bw0ie65:0,Br312pm:0,nk6f5a:0,Ijaq50:0,Bq1tomu:`f1ebragv`,Bahqtrf:`fk6fouc`,Be2twd7:`fy9rknc`,Bhrd7zp:`figsok6`,Bg96gwp:`fwrc4pm`,B6of3ja:`f1ryq6si`}},{d:[`.fz5stix{white-space:nowrap;}`,`.fgiv446{padding-left:var(--spacingHorizontalXXS);}`,`.ffczdla{padding-right:var(--spacingHorizontalXXS);}`,`.fk6fouc{font-family:var(--fontFamilyBase);}`,`.fkhj508{font-size:var(--fontSizeBase300);}`,`.figsok6{font-weight:var(--fontWeightRegular);}`,`.f1i3iumi{line-height:var(--lineHeightBase300);}`,`.fy9rknc{font-size:var(--fontSizeBase200);}`,`.fwrc4pm{line-height:var(--lineHeightBase200);}`,`.faqcfhe{grid-column-start:primary;}`,`.f1q3ipgb{grid-row-start:primary;}`,`.fc0ab3q{grid-row-end:secondary;}`,`.f1g03r3y{padding-bottom:var(--spacingHorizontalXXS);}`,[`.f1ebragv{grid-area:primary;}`,{p:-1}],`.f1ryq6si{margin-top:-2px;}`]}),TD=Vr(`r7hv1ps`,`rnrslm9`,[`.r7hv1ps{grid-area:secondary;padding-left:var(--spacingHorizontalXXS);padding-right:var(--spacingHorizontalXXS);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);white-space:nowrap;}`,`.rnrslm9{grid-area:secondary;padding-right:var(--spacingHorizontalXXS);padding-left:var(--spacingHorizontalXXS);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);white-space:nowrap;}`]),ED=e=>{"use no memo";let t=hD(),n=gD(),r=_D(),i=vD(),a=yD(),o=bD(),s=xD(),c=SD(),l=CD(),u=wD(),d=TD(),{disabled:f,shape:p,size:m,appearance:h,selected:g}=e;return e.root.className=A(mD.root,p===`rounded`?t:n,f?i[h]:r[h],g&&!f&&r.selected,r[m],!e.media&&!e.icon&&a[m],!e.dismissIcon&&o[m],e.root.className),e.media&&(e.media.className=A(mD.media,c.base,c[m],e.media.className)),e.icon&&(e.icon.className=A(mD.icon,s.base,s[m],e.icon.className)),e.primaryText&&(e.primaryText.className=A(mD.primaryText,u.base,u[m],e.secondaryText?u.withSecondaryText:u.withoutSecondaryText,e.primaryText.className)),e.secondaryText&&(e.secondaryText.className=A(mD.secondaryText,d,e.secondaryText.className)),e.dismissIcon&&(e.dismissIcon.className=A(mD.dismissIcon,l.base,l[m],!f&&l[h],g&&!f&&l.selected,e.dismissIcon.className)),e};function DD(e){let{avatarSize:t,avatarShape:n}=e;return{avatar:M.useMemo(()=>({size:t,shape:n}),[n,t])}}var OD=M.forwardRef((e,t)=>{let n=fD(e,t);return ED(n),Qi(`useTagStyles_unstable`)(n),pD(n,DD(n))});OD.displayName=`Tag`;var kD={root:`fui-InteractionTagSecondary`},AD=(e,t)=>{let{onDismiss:n,disabled:r=!1,defaultSelectedValues:i,dismissible:a=!1,role:o=`toolbar`,onTagSelect:s,selectedValues:c,...l}=e,[u,d]=sa({defaultState:i,state:c,initialState:[]}),f=F((e,t)=>{n?.(e,t)}),p=F(Pa(s,(e,t)=>{u.includes(t.value)?d(u.filter(e=>e!==t.value)):d([...u,t.value])}));return{handleTagDismiss:f,handleTagSelect:s?p:void 0,selectedValues:u,role:o,disabled:r,dismissible:a,components:{root:`div`},root:Jr(Ai(`div`,{ref:t,role:o,"aria-disabled":r,...l}),{elementType:`div`})}},jD=(e,t)=>{let{size:n=`medium`,appearance:r=`filled`}=e,{targetDocument:i}=Gi(),{findNextFocusable:a,findPrevFocusable:o}=Gc(),s=Vc({circular:!0,axis:`both`,memorizeCurrent:!0}),c=M.useRef(null),l=xa(t,c),u=F((t,n)=>{var r;(r=e.onDismiss)==null||r.call(e,t,n);let s=c.current,l=i?.activeElement;if(s?.contains(l)){let e=a(l,{container:s});if(e){e.focus();return}l?.className.includes(kD.root)?o(l.parentElement,{container:s})?.focus():o(l,{container:s})?.focus()}});return{...AD({...s,...e,onDismiss:u},l),size:n,appearance:r}},MD=(e,t)=>I(sD,{value:t.tagGroup,children:I(e.root,{})}),ND={root:`fui-TagGroup`},PD=P({base:{mc9l5x:`ftuwxu6`},medium:{i8kkvl:`fsnqrgy`},small:{i8kkvl:`f1rjii52`},"extra-small":{i8kkvl:`f1ufnopg`}},{d:[`.ftuwxu6{display:inline-flex;}`,`.fsnqrgy{column-gap:var(--spacingHorizontalS);}`,`.f1rjii52{column-gap:var(--spacingHorizontalSNudge);}`,`.f1ufnopg{column-gap:var(--spacingHorizontalXS);}`]}),FD=e=>{"use no memo";let t=PD(),{size:n}=e;return e.root.className=A(ND.root,t.base,t[n],e.root.className),e};function ID(e){let{handleTagDismiss:t,handleTagSelect:n,selectedValues:r,size:i,disabled:a,appearance:o,dismissible:s,role:c}=e;return{tagGroup:M.useMemo(()=>({handleTagDismiss:t,handleTagSelect:n,selectedValues:r,size:i,disabled:a,appearance:o,dismissible:s,role:c}),[t,n,r,i,a,o,s,c])}}function LD(e){switch(e){case`info`:return M.createElement(Ud,null);case`warning`:return M.createElement(Hd,null);case`error`:return M.createElement(Af,null);case`success`:return M.createElement(yf,null);default:return null}}function RD(e=!1){let{targetDocument:t}=Gi(),n=M.useReducer(()=>({}),{})[1],r=M.useRef(!1),i=M.useRef(null),a=M.useRef(-1),o=M.useCallback(e=>{var t;let i=e[0],o=(i==null||(t=i.borderBoxSize)==null?void 0:t[0]?.inlineSize)??i?.target.getBoundingClientRect().width;if(o===void 0||!i)return;let{target:s}=i;if(!Fa(s))return;let c;r.current?a.current<o&&(c=!1):o<s.scrollWidth&&(c=!0),a.current=o,c!==void 0&&r.current!==c&&(r.current=c,n())},[n]),s=M.useCallback(n=>{var r;if(!e||!n||!t?.defaultView)return;(r=i.current)==null||r.disconnect();let a=new t.defaultView.ResizeObserver(o);i.current=a,a.observe(n,{box:`border-box`})},[t,o,e]);return M.useEffect(()=>()=>{var e;(e=i.current)==null||e.disconnect()},[]),{ref:s,reflowing:r.current}}var zD=M.createContext(void 0),BD={className:``,nodeRef:M.createRef()};zD.Provider;var VD=()=>M.useContext(zD)??BD,HD=(e,t)=>{let{layout:n=`auto`,intent:r=`info`,politeness:i}=e,a=i??r===`info`?`polite`:`assertive`,o=n===`auto`,{ref:s,reflowing:c}=RD(o),l=o?c?`multiline`:`singleline`:n,{className:u,nodeRef:d}=VD(),f=Jp(),p=M.useRef(null),m=M.useRef(null),{announce:h}=na(),g=ba();return M.useEffect(()=>{h([m.current?.textContent,p.current?.textContent].filter(Boolean).join(`,`),{polite:a===`polite`,alert:a===`assertive`})},[m,p,h,a]),{components:{root:`div`,icon:`div`,bottomReflowSpacer:`div`},root:Jr(Ai(`div`,{ref:xa(t,s,d,f),role:`group`,"aria-labelledby":g,...e}),{elementType:`div`}),icon:Yr(e.icon,{renderByDefault:!0,elementType:`div`}),bottomReflowSpacer:Yr(e.bottomReflowSpacer,{renderByDefault:l===`multiline`,elementType:`div`}),layout:l,intent:r,transitionClassName:u,actionsRef:p,bodyRef:m,titleId:g}},UD=(e,t)=>{let{shape:n=`rounded`,...r}=e,i=HD(r,t);return{...i,shape:n,icon:Yr(e.icon,{defaultProps:{children:LD(i.intent)},renderByDefault:!0,elementType:`div`})}},WD=M.createContext(void 0),GD={titleId:``,layout:`singleline`,actionsRef:M.createRef(),bodyRef:M.createRef()},KD=WD.Provider,qD=()=>M.useContext(WD)??GD,JD=(e,t)=>I(KD,{value:t.messageBar,children:oo(e.root,{children:[e.icon&&I(e.icon,{}),e.root.children,e.bottomReflowSpacer&&I(e.bottomReflowSpacer,{})]})}),YD={root:`fui-MessageBar`,icon:`fui-MessageBar__icon`,bottomReflowSpacer:`fui-MessageBar__bottomReflowSpacer`},XD=Vr(`r2oyxsj`,`r1wuyrhw`,[`.r2oyxsj{white-space:nowrap;display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr;grid-template-areas:"icon body secondaryActions actions";padding-left:var(--spacingHorizontalM);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);border-radius:var(--borderRadiusMedium);align-items:center;min-height:36px;box-sizing:border-box;background-color:var(--colorNeutralBackground3);}`,`.r1wuyrhw{white-space:nowrap;display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr;grid-template-areas:"icon body secondaryActions actions";padding-right:var(--spacingHorizontalM);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);border-radius:var(--borderRadiusMedium);align-items:center;min-height:36px;box-sizing:border-box;background-color:var(--colorNeutralBackground3);}`]),ZD=Vr(`r1df1z33`,`rivnfjc`,[`.r1df1z33{grid-area:icon;font-size:var(--fontSizeBase500);margin-right:var(--spacingHorizontalS);color:var(--colorNeutralForeground3);display:flex;align-items:center;}`,`.rivnfjc{grid-area:icon;font-size:var(--fontSizeBase500);margin-left:var(--spacingHorizontalS);color:var(--colorNeutralForeground3);display:flex;align-items:center;}`]),QD=Vr(`r1vx593n`,null,[`.r1vx593n{margin-bottom:var(--spacingVerticalS);grid-area:secondaryActions;}`]),$D=P({rootMultiline:{Huce71:`f6juhto`,Bt984gj:`f1s2louj`,z8tnut:`f1ngh7ph`,Budl1dq:`f17g0uqy`,zoa1oz:`f1w7oly7`},secondaryActionsMultiline:{Brf1p80:`f1e8xxv9`,B6of3ja:`f1gaxbfw`,jrapky:`fqcjy3b`,t21cq0:[`fibjyge`,`f9yszdx`]},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`fokr779`}},{d:[`.f6juhto{white-space:normal;}`,`.f1s2louj{align-items:start;}`,`.f1ngh7ph{padding-top:var(--spacingVerticalMNudge);}`,`.f17g0uqy{grid-template-columns:auto 1fr auto;}`,`.f1w7oly7{grid-template-areas:"icon body actions" "secondaryActions secondaryActions secondaryActions";}`,`.f1e8xxv9{justify-content:end;}`,`.f1gaxbfw{margin-top:var(--spacingVerticalMNudge);}`,`.fqcjy3b{margin-bottom:var(--spacingVerticalS);}`,`.fibjyge{margin-right:0px;}`,`.f9yszdx{margin-left:0px;}`,[`.fokr779{border-radius:0;}`,{p:-1}]]}),eO=P({info:{},error:{sj55zd:`f1ca9wz`},warning:{sj55zd:`f14a4cve`},success:{sj55zd:`f36rra6`}},{d:[`.f1ca9wz{color:var(--colorStatusDangerForeground1);}`,`.f14a4cve{color:var(--colorStatusWarningForeground3);}`,`.f36rra6{color:var(--colorStatusSuccessForeground1);}`]}),tO=P({info:{},error:{De3pzq:`f1eon7jj`,g2u3we:`f1f8dvr7`,h3c5rm:[`f1g1ijmo`,`f1nxacbt`],B9xav0g:`fo25q1j`,zhjwy3:[`f1nxacbt`,`f1g1ijmo`]},warning:{De3pzq:`f13ftzij`,g2u3we:`frd1ypx`,h3c5rm:[`f1gyjrma`,`f18qd5xz`],B9xav0g:`fqyqtrt`,zhjwy3:[`f18qd5xz`,`f1gyjrma`]},success:{De3pzq:`f64thcm`,g2u3we:`f1b4u7v`,h3c5rm:[`f1nyd2b1`,`f70v3om`],B9xav0g:`fk173vo`,zhjwy3:[`f70v3om`,`f1nyd2b1`]}},{d:[`.f1eon7jj{background-color:var(--colorStatusDangerBackground1);}`,`.f1f8dvr7{border-top-color:var(--colorStatusDangerBorder1);}`,`.f1g1ijmo{border-right-color:var(--colorStatusDangerBorder1);}`,`.f1nxacbt{border-left-color:var(--colorStatusDangerBorder1);}`,`.fo25q1j{border-bottom-color:var(--colorStatusDangerBorder1);}`,`.f13ftzij{background-color:var(--colorStatusWarningBackground1);}`,`.frd1ypx{border-top-color:var(--colorStatusWarningBorder1);}`,`.f1gyjrma{border-right-color:var(--colorStatusWarningBorder1);}`,`.f18qd5xz{border-left-color:var(--colorStatusWarningBorder1);}`,`.fqyqtrt{border-bottom-color:var(--colorStatusWarningBorder1);}`,`.f64thcm{background-color:var(--colorStatusSuccessBackground1);}`,`.f1b4u7v{border-top-color:var(--colorStatusSuccessBorder1);}`,`.f1nyd2b1{border-right-color:var(--colorStatusSuccessBorder1);}`,`.f70v3om{border-left-color:var(--colorStatusSuccessBorder1);}`,`.fk173vo{border-bottom-color:var(--colorStatusSuccessBorder1);}`]}),nO=e=>{"use no memo";let t=XD(),n=ZD(),r=eO(),i=tO(),a=QD(),o=$D();return e.root.className=A(YD.root,t,e.layout===`multiline`&&o.rootMultiline,e.shape===`square`&&o.square,i[e.intent],e.root.className),e.icon&&(e.icon.className=A(YD.icon,n,r[e.intent],e.icon.className)),e.bottomReflowSpacer&&(e.bottomReflowSpacer.className=A(YD.bottomReflowSpacer,a)),e};function rO(e){let{layout:t,actionsRef:n,bodyRef:r,titleId:i}=e;return{messageBar:M.useMemo(()=>({layout:t,actionsRef:n,bodyRef:r,titleId:i}),[t,n,r,i])}}var iO=M.forwardRef((e,t)=>{let n=UD(e,t);return nO(n),Qi(`useMessageBarStyles_unstable`)(n),JD(n,rO(n))});iO.displayName=`MessageBar`;var aO=(e,t)=>{let{titleId:n}=qD();return{components:{root:`span`},root:Jr(Ai(`span`,{ref:t,id:n,...e}),{elementType:`span`})}},oO=e=>I(e.root,{}),sO={root:`fui-MessageBarTitle`},cO=Vr(`r168xkm9`,null,[`.r168xkm9{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);}`,`.r168xkm9::after{content:" ";}`]),lO=e=>{"use no memo";let t=cO();return e.root.className=A(sO.root,t,e.root.className),e},uO=M.forwardRef((e,t)=>{let n=aO(e,t);return lO(n),Qi(`useMessageBarTitleStyles_unstable`)(n),oO(n)});uO.displayName=`MessageBarTitle`;var dO=(e,t)=>{let{layout:n=`singleline`,actionsRef:r}=qD();return{components:{root:`div`,containerAction:`div`},containerAction:Yr(e.containerAction,{renderByDefault:!1,elementType:`div`}),root:Jr(Ai(`div`,{ref:xa(t,r),...e}),{elementType:`div`}),layout:n,hasActions:!!e.children}},fO=(e,t)=>oo(N_,{value:t.button,children:[e.layout===`multiline`&&e.containerAction&&I(e.containerAction,{},`containerAction`),I(e.root,{}),e.layout!==`multiline`&&e.containerAction&&I(e.containerAction,{},`containerAction`)]}),pO={root:`fui-MessageBarActions`,containerAction:`fui-MessageBarActions__containerAction`},mO=Vr(`r1t4x98y`,`r15utzv5`,[`.r1t4x98y{grid-area:secondaryActions;display:flex;column-gap:var(--spacingHorizontalM);padding-right:var(--spacingHorizontalM);}`,`.r15utzv5{grid-area:secondaryActions;display:flex;column-gap:var(--spacingHorizontalM);padding-left:var(--spacingHorizontalM);}`]),hO=Vr(`rgzw8nq`,`r13ur29z`,[`.rgzw8nq{grid-area:actions;padding-right:var(--spacingHorizontalM);}`,`.r13ur29z{grid-area:actions;padding-left:var(--spacingHorizontalM);}`]),gO=P({root:{Brf1p80:`f1e8xxv9`,B6of3ja:`f1gaxbfw`,jrapky:`fqcjy3b`,t21cq0:[`fibjyge`,`f9yszdx`],z189sj:[`f1p3vkop`,`f8cewkv`]},noActions:{mc9l5x:`fjseox`}},{d:[`.f1e8xxv9{justify-content:end;}`,`.f1gaxbfw{margin-top:var(--spacingVerticalMNudge);}`,`.fqcjy3b{margin-bottom:var(--spacingVerticalS);}`,`.fibjyge{margin-right:0px;}`,`.f9yszdx{margin-left:0px;}`,`.f1p3vkop{padding-right:var(--spacingVerticalM);}`,`.f8cewkv{padding-left:var(--spacingVerticalM);}`,`.fjseox{display:none;}`]}),_O=e=>{"use no memo";let t=mO(),n=hO(),r=gO();return e.root.className=A(pO.root,t,e.layout===`multiline`&&r.root,!e.hasActions&&r.noActions,e.root.className),e.containerAction&&(e.containerAction.className=A(pO.containerAction,n,e.containerAction.className)),e};function vO(){return{button:M.useMemo(()=>({size:`small`}),[])}}var yO=M.forwardRef((e,t)=>{let n=dO(e,t);return _O(n),Qi(`useMessageBarActionsStyles_unstable`)(n),fO(n,vO())});yO.displayName=`MessageBarActions`;var bO=(e,t)=>{let{bodyRef:n}=qD();return{components:{root:`div`},root:Jr(Ai(`div`,{ref:xa(t,n),...e}),{elementType:`div`})}},xO=(e,t)=>I(rb,{value:t.link,children:I(e.root,{})}),SO={root:`fui-MessageBarBody`},CO=Vr(`rtatq2b`,`re2rary`,[`.rtatq2b{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);grid-area:body;padding-right:var(--spacingHorizontalM);}`,`.re2rary{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);grid-area:body;padding-left:var(--spacingHorizontalM);}`]),wO=e=>{"use no memo";let t=CO();return e.root.className=A(SO.root,t,e.root.className),e};function TO(e){return{link:M.useMemo(()=>({inline:!0}),[])}}var EO=M.forwardRef((e,t)=>{let n=bO(e,t),r=TO(n);return wO(n),Qi(`useMessageBarBodyStyles_unstable`)(n),xO(n,r)});EO.displayName=`MessageBarBody`;var DO=(e,t)=>{let n=M.Children.map(e.children??[],e=>M.isValidElement(e)&&e.type!==M.Fragment?e:null).filter(Boolean);return{components:{root:`div`},root:Jr(Ai(`div`,{ref:t,...e}),{elementType:`div`}),children:n,animate:e.animate??`exit-only`,enterStyles:``,exitStyles:``}},OO=Rp(({animate:e})=>{let t=vp.durationGentle;return{enter:e===`both`?[rm({direction:`enter`,duration:t}),lm({direction:`enter`,outY:`-100%`,duration:t})]:[],exit:rm({direction:`exit`,duration:t})}}),kO=e=>I(e.root,{children:I(Kp,{children:e.children.map(t=>I(OO,{animate:e.animate,unmountOnExit:!0,children:I(Yp,{children:t})},t.key))})}),AO={root:`fui-MessageBarGroup`},jO=e=>{"use no memo";return e.root.className=A(AO.root,e.root.className),e},MO=M.forwardRef((e,t)=>{let n=DO(e,t);return jO(n),Qi(`useMessageBarGroupStyles_unstable`)(n),kO(n)});MO.displayName=`MessageBarGroup`;var NO={scrollState:`none`,setScrollState:()=>({})},PO=M.createContext(void 0),FO=PO.Provider,IO=()=>M.useContext(PO)??NO,LO=()=>{let[e,t]=M.useState(`none`);return{setScrollState:t,scrollState:e}},RO={drawerSizeVar:`--fui-Drawer--size`};`${RO.drawerSizeVar}`,z.colorNeutralBackground1,z.colorNeutralForeground1;var zO=P({start:{h3c5rm:0,vrafjx:0,Bekrc4i:0,u1mtju:[`f1xteiwb`,`fsqykmd`],oyh7mz:[`f1vgc2s3`,`f1e31b4d`],j35jbq:[`fvfyk4`,`frppm18`]},end:{zhjwy3:0,wvpqe5:0,ibv6hh:0,B4g9neb:[`fsqykmd`,`f1xteiwb`],j35jbq:[`f1e31b4d`,`f1vgc2s3`],oyh7mz:[`frppm18`,`fvfyk4`]},bottom:{B5kzvoi:`f1yab3r1`,Bhzewxz:`f198g47y`},small:{Bjr0ffy:`f1exhnwo`},medium:{Bjr0ffy:`fqofjzu`},large:{Bjr0ffy:`fce6y3m`},full:{Bjr0ffy:`fsdmzs6`}},{d:[[`.f1xteiwb{border-right:var(--strokeWidthThin) solid var(--colorTransparentStroke);}`,{p:-1}],[`.fsqykmd{border-left:var(--strokeWidthThin) solid var(--colorTransparentStroke);}`,{p:-1}],`.f1vgc2s3{left:0;}`,`.f1e31b4d{right:0;}`,`.fvfyk4{right:auto;}`,`.frppm18{left:auto;}`,[`.fsqykmd{border-left:var(--strokeWidthThin) solid var(--colorTransparentStroke);}`,{p:-1}],[`.f1xteiwb{border-right:var(--strokeWidthThin) solid var(--colorTransparentStroke);}`,{p:-1}],`.f1yab3r1{bottom:0;}`,`.f198g47y{top:auto;}`,`.f1exhnwo{--fui-Drawer--size:320px;}`,`.fqofjzu{--fui-Drawer--size:592px;}`,`.fce6y3m{--fui-Drawer--size:940px;}`,`.fsdmzs6{--fui-Drawer--size:100vw;}`]}),BO=P({small:{Bjr0ffy:`f1exhnwo`},medium:{Bjr0ffy:`fqofjzu`},large:{Bjr0ffy:`fce6y3m`},full:{Bjr0ffy:`f1rat34m`}},{d:[`.f1exhnwo{--fui-Drawer--size:320px;}`,`.fqofjzu{--fui-Drawer--size:592px;}`,`.fce6y3m{--fui-Drawer--size:940px;}`,`.f1rat34m{--fui-Drawer--size:100%;}`]}),VO=({position:e,size:t})=>{let n=zO(),r=BO();return A(n[e],e===`bottom`&&r[t],e!==`bottom`&&n[t])},HO={small:vp.durationGentle,medium:vp.durationSlow,large:vp.durationSlower,full:vp.durationUltraSlow};function UO(e,t,n){let r=`translate3d(var(${t}), 0, 0)`,i=`translate3d(calc(var(${t}) * -1), 0, 0)`,a=`translate3d(0, var(${t}), 0)`;return e===`start`?n===`ltr`?i:r:e===`end`?n===`ltr`?r:i:e===`bottom`?a:`translate3d(0, 0, 0)`}var WO=Rp(({position:e,size:t,dir:n})=>{let r=[{transform:UO(e,RO.drawerSizeVar,n),opacity:0},{transform:`translate3d(0, 0, 0)`,opacity:1}],i=HO[t];return{enter:{keyframes:r,duration:i,easing:vp.curveDecelerateMid},exit:{keyframes:[...r].reverse(),duration:i,easing:vp.curveAccelerateMin}}}),GO=Rp(({position:e,size:t,dir:n})=>{let r=[{transform:UO(e,RO.drawerSizeVar,n),boxShadow:`0px ${z.colorTransparentBackground}`,opacity:0},{transform:`translate3d(0, 0, 0)`,boxShadow:z.shadow64,opacity:1}],i=HO[t];return{enter:{keyframes:r,duration:i,easing:vp.curveDecelerateMid},exit:{keyframes:[...r].reverse(),duration:i,easing:vp.curveAccelerateMin}}}),KO=Rp(({size:e})=>{let t=HO[e],n=vp.curveLinear;return{enter:rm({direction:`enter`,duration:t,easing:n}),exit:rm({direction:`exit`,duration:t,easing:n})}});function qO(e){let{open:t=!1,size:n=`small`,position:r=`start`,unmountOnClose:i=!0}=e;return{size:n,position:r,open:t,unmountOnClose:i}}var JO=Vr(`rl76ifk`,null,[`.rl76ifk{inset:0px;position:fixed;background-color:var(--colorBackgroundOverlay);}`]),YO=P({nested:{De3pzq:`f1c21dwh`},drawerHidden:{Bkecrkj:`f1aehjj5`}},{d:[`.f1c21dwh{background-color:var(--colorTransparentBackground);}`,`.f1aehjj5{pointer-events:none;}`]}),XO=e=>{"use no memo";let{treatBackdropAsNested:t,backdrop:n,open:r,unmountOnClose:i}=e,a=JO(),o=YO(),s=!i&&!r;return n&&(n.className=A(a,t&&o.nested,s&&o.drawerHidden,n.className)),e},ZO=M.forwardRef((e,t)=>{let n=nS({...e,as:e.as},t),r=lS(n);return XO(n),Qi(`useOverlayDrawerSurfaceStyles_unstable`)(n),rS(n,r)});ZO.displayName=`OverlayDrawerSurface`;function QO(e,t,n){return e===null?null:{...e,children:(r,i)=>e?.children?e.children(t,{...i,...n}):M.createElement(t,{...i,...n},i.children)}}var $O={active:!0,canRender:!0,ref:M.createRef(),type:`idle`},ek=(e,t)=>{let{open:n,size:r,position:i,unmountOnClose:a}=qO(e),{modalType:o=`modal`,inertTrapFocus:s,onOpenChange:c,backdropMotion:l,surfaceMotion:u,mountNode:d}=e,{dir:f,targetDocument:p}=Gi(),{element:m}=l_(d),h=!!(m&&p?.body!==m),g=Xr(e.backdrop),_=o!==`non-modal`&&g!==null,v=Jr({...e,ref:t,unmountOnClose:a,backdrop:_?{...g}:null,backdropMotion:QO(l,KO,{size:r})},{elementType:ZO}),y=Jr({open:n,onOpenChange:c,inertTrapFocus:s,modalType:o,unmountOnClose:a,surfaceMotion:QO(u,GO,{position:i,size:r,dir:f}),children:null},{elementType:kx});return{components:{root:ZO,dialog:kx},root:v,dialog:y,open:n,size:r,position:i,hasMountNodeElement:h,unmountOnClose:a,mountNode:d,motion:$O}},tk=(e,t)=>I(FO,{value:t,children:I(Sx,{value:!1,children:I(e.dialog,{children:I(e.root,{})})})}),nk={root:`fui-OverlayDrawer`,backdrop:`fui-OverlayDrawer__backdrop`},rk=Vr(`r7dfyj8`,`rmx02j7`,{r:[`.r7dfyj8{overflow:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;}`,`.r7dfyj8:focus{outline-style:none;}`,`.r7dfyj8:focus-visible{outline-style:none;}`,`.r7dfyj8[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}`,`.r7dfyj8[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}`,`.rmx02j7{overflow:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;}`,`.rmx02j7:focus{outline-style:none;}`,`.rmx02j7:focus-visible{outline-style:none;}`,`.rmx02j7[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}`,`.rmx02j7[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}`],s:[`@media (forced-colors: active){.r7dfyj8[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}`,`@media (forced-colors: active){.rmx02j7[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}`]}),ik=P({start:{},end:{},bottom:{Bhzewxz:`f198g47y`,Bqenvij:`fub80nq`,a9b677:`fr97h3j`},absolute:{qhf8xq:`f1euv43f`}},{d:[`.f198g47y{top:auto;}`,`.fub80nq{height:var(--fui-Drawer--size);}`,`.fr97h3j{width:100vw;}`,`.f1euv43f{position:absolute;}`]}),ak=e=>{"use no memo";let t=VO(e),n=rk(),r=ik(),i=e.hasMountNodeElement&&r.absolute,a=e.root.backdrop;return e.root.className=A(nk.root,t,n,r[e.position],i,e.root.className),a&&(a.className=A(nk.backdrop,i,a.className)),e},ok=M.forwardRef((e,t)=>{let n=ek(e,t),r=LO();return ak(n),Qi(`useDrawerOverlayStyles_unstable`)(n),Qi(`useOverlayDrawerStyles_unstable`)(n),tk(n,r)});ok.displayName=`OverlayDrawer`;var sk={active:!0,canRender:!0,ref:M.createRef(),type:`idle`},ck=(e,t)=>{let{size:n,position:r,open:i,unmountOnClose:a}=qO(e),{separator:o=!1,surfaceMotion:s,...c}=e,{dir:l}=Gi(),[u,d]=M.useState(i?`enter`:`exit`),f=lk(c,t);return{...f,components:{...f.components,surfaceMotion:WO},size:n,separator:o,animationDirection:u,surfaceMotion:Zp(s,{elementType:WO,defaultProps:{position:r,size:n,dir:l,visible:i,appear:a,unmountOnExit:a,onMotionFinish:(e,{direction:t})=>d(t),onMotionStart:(e,{direction:t})=>{t===`enter`&&d(`enter`)}}}),motion:sk}},lk=(e,t)=>{let{position:n,open:r,unmountOnClose:i}=qO(e);return{components:{root:`div`},root:Jr(Ai(`div`,{...e,ref:t,"aria-hidden":!i&&!r?!0:void 0}),{elementType:`div`}),open:r,position:n,unmountOnClose:i}},uk=(e,t)=>I(FO,{value:t,children:e.surfaceMotion?I(e.surfaceMotion,{children:I(e.root,{})}):I(e.root,{})}),dk={root:`fui-InlineDrawer`},fk=Vr(`rkjj3x6`,null,[`.rkjj3x6{overflow:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:relative;}`]);`${z.colorNeutralBackground3}`;var pk=P({separatorStart:{h3c5rm:0,vrafjx:0,Bekrc4i:0,u1mtju:[`f1cxmi7i`,`f1j970fk`]},separatorEnd:{zhjwy3:0,wvpqe5:0,ibv6hh:0,B4g9neb:[`f1j970fk`,`f1cxmi7i`]},separatorBottom:{g2u3we:0,icvyot:0,B4j52fo:0,i8vvqc:`f1n3kblk`},start:{},end:{},bottom:{a9b677:`fly5x3f`,Bqenvij:`fub80nq`},animationExitStart:{a9b677:`f3tsq5r`,Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:`f3bhgqh`},animationExitEnd:{a9b677:`f3tsq5r`,Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:`f3bhgqh`},animationExitBottom:{Bqenvij:`fniina8`,Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:`f3bhgqh`}},{d:[[`.f1cxmi7i{border-right:1px solid var(--colorNeutralBackground3);}`,{p:-1}],[`.f1j970fk{border-left:1px solid var(--colorNeutralBackground3);}`,{p:-1}],[`.f1j970fk{border-left:1px solid var(--colorNeutralBackground3);}`,{p:-1}],[`.f1cxmi7i{border-right:1px solid var(--colorNeutralBackground3);}`,{p:-1}],[`.f1n3kblk{border-top:1px solid var(--colorNeutralBackground3);}`,{p:-1}],`.fly5x3f{width:100%;}`,`.fub80nq{height:var(--fui-Drawer--size);}`,`.f3tsq5r{width:0;}`,[`.f3bhgqh{border:none;}`,{p:-2}],[`.f3bhgqh{border:none;}`,{p:-2}],`.fniina8{height:0;}`,[`.f3bhgqh{border:none;}`,{p:-2}]]});function mk(e,t){if(e.separator)switch(e.position){case`start`:return t.separatorStart;case`end`:return t.separatorEnd;case`bottom`:return t.separatorBottom;default:return}}function hk(e,t){switch(e.position){case`start`:return t.animationExitStart;case`end`:return t.animationExitEnd;case`bottom`:return t.animationExitBottom;default:return}}var gk=e=>{"use no memo";let t=fk(),n=VO(e),r=pk();return e.root.className=A(dk.root,t,n,mk(e,r),r[e.position],e.animationDirection===`exit`&&hk(e,r),e.root.className),e},_k=M.forwardRef((e,t)=>{let n=ck(e,t),r=LO();return gk(n),Qi(`useDrawerInlineStyles_unstable`)(n),Qi(`useInlineDrawerStyles_unstable`)(n),uk(n,r)});_k.displayName=`InlineDrawer`;var vk=(e,t)=>{let n=e.type===`inline`?_k:ok,r=Jr({ref:t,...e},{elementType:n});return{components:{root:n},root:r}},yk=(e,t)=>I(FO,{value:t,children:I(e.root,{})}),bk={root:`fui-Drawer`},xk=e=>{"use no memo";return e.root.className=A(bk.root,e.root.className),e},Sk=M.forwardRef((e,t)=>{let n=vk(e,t),r=LO();return xk(n),Qi(`useDrawerStyles_unstable`)(n),yk(n,r)});Sk.displayName=`Drawer`;var Ck=({scrollTop:e,scrollHeight:t,clientHeight:n})=>t<=n?`none`:e===0?`top`:e+n===t?`bottom`:`middle`,wk=(e,t)=>{let{targetDocument:n}=Gi(),r=n?.defaultView,{setScrollState:i}=IO(),a=M.useRef(null),o=xa(t,a),[s,c]=aa(),[l,u]=aa(),d=M.useCallback(()=>{a.current&&i(Ck(a.current))},[i]),f=M.useCallback(()=>{c(),s(d)},[c,s,d]);return ha(d,[e.children,d]),ha(()=>{if(!a.current||!r?.ResizeObserver)return;let e=new r.ResizeObserver(()=>l(d));return e.observe(a.current),()=>{e.disconnect(),u()}},[l,u,d,r]),{components:{root:`div`},root:Jr(Ai(`div`,{ref:o,...e,onScroll:Pa(e.onScroll,f)}),{elementType:`div`})}},Tk=e=>I(e.root,{}),Ek={root:`fui-DrawerBody`},Dk=Vr(`ri6rvx7`,null,[`.ri6rvx7{padding:0 var(--spacingHorizontalXXL);flex:1;align-self:stretch;position:relative;z-index:1;overflow:auto;}`,`.ri6rvx7:last-child{padding-bottom:calc(var(--spacingHorizontalXXL) + 1px);}`,`.ri6rvx7:first-child{padding-top:calc(var(--spacingHorizontalXXL) + 1px);}`]),Ok=e=>{"use no memo";let t=Dk();return e.root.className=A(Ek.root,t,e.root.className),e},kk=(e,t)=>{let{scrollState:n}=IO();return{components:{root:`header`},root:Jr(Ai(`header`,{ref:t,role:`none`,...e}),{elementType:`header`}),scrollState:n}},Ak=e=>I(e.root,{}),jk={root:`fui-DrawerHeader`},Mk=Vr(`r3ovn4i`,null,[`.r3ovn4i{width:100%;max-width:100%;padding:var(--spacingVerticalXXL) var(--spacingHorizontalXXL) var(--spacingVerticalS);gap:var(--spacingHorizontalS);align-self:stretch;display:flex;flex-direction:column;box-sizing:border-box;position:relative;z-index:2;}`]),Nk=P({separator:{Dlnsje:`fxnjyrl`,E3zdtr:`f1mdlcz9`,B1piin3:[`f15yvnhg`,`f1n6gb5g`],Eqx8gd:[`f1n6gb5g`,`f15yvnhg`],Bp15pi3:`f1564nw5`,Bjyk6c5:`fdlpgxj`,F2fol1:`f15cmg8x`,Ba2ppi3:`f3f8dgl`,B1dyfl9:`fjvo4va`,Bsft5z2:`f13zj6fq`,By385i5:`fo72kxq`},separatorVisible:{Bp15pi3:`fjsqi2x`}},{d:[`.fxnjyrl::after{height:1px;}`,`.f1mdlcz9::after{position:absolute;}`,`.f15yvnhg::after{right:0;}`,`.f1n6gb5g::after{left:0;}`,`.f1564nw5::after{opacity:0;}`,`.fdlpgxj::after{background-color:var(--colorNeutralStroke1);}`,`.f15cmg8x::after{transition-duration:var(--durationNormal);}`,`.f3f8dgl::after{transition-property:opacity;}`,`.fjvo4va::after{transition-timing-function:var(--curveEasyEase);}`,`.f13zj6fq::after{content:"";}`,`.fo72kxq::after{bottom:0;}`,`.fjsqi2x::after{opacity:1;}`]}),Pk=e=>{"use no memo";let t=Mk(),n=Nk();return e.root.className=A(jk.root,t,e.scrollState!==`none`&&n.separator,[`middle`,`bottom`].includes(e.scrollState)&&n.separatorVisible,e.root.className),e},Fk=[`above`,`after`,`after-top`,`before`,`before-top`],Ik=e=>{let t=ba(`picker-listbox`),n=M.useRef(null),r=M.useRef(null),i=M.useRef(null),{positioning:a,size:o=`medium`,inline:s=!1,noPopover:c=!1,disableAutoFocus:l}=e,{targetRef:u,containerRef:d}=c_({position:`below`,align:`start`,offset:{crossAxis:0,mainAxis:2},fallbackPositions:Fk,matchTargetSize:`width`,...Vg(a)}),{controller:f,activeParentRef:p,listboxRef:m}=Od({matchOption:e=>e.classList.contains(ly.root)}),h=py({...e,onOptionSelect:F((t,n)=>e.onOptionSelect?.call(e,t,{selectedOptions:n.selectedOptions,value:n.optionValue,type:t.type,event:t})),onOpenChange:F((t,n)=>e.onOpenChange?.call(e,t,{...n,type:t.type,event:t})),activeDescendantController:f,disableAutoFocus:l,editable:!0,multiselect:!0,size:`medium`}),{trigger:g,popover:_}=Lk(e.children,c);return{activeDescendantController:f,components:{},trigger:g,popover:h.open||h.hasFocus?_:void 0,popoverId:t,noPopover:c,disabled:h.disabled,triggerRef:xa(n,p),popoverRef:xa(m,d),secondaryActionRef:r,tagPickerGroupRef:i,targetRef:u,size:o,inline:s,open:h.open,mountNode:h.mountNode,onOptionClick:F(e=>{h.onOptionClick(e),h.setOpen(e,!1)}),appearance:h.appearance,clearSelection:h.clearSelection,getOptionById:h.getOptionById,getOptionsMatchingValue:h.getOptionsMatchingValue,registerOption:h.registerOption,selectedOptions:h.selectedOptions,selectOption:F((t,n)=>{if(h.selectedOptions.includes(n.value)&&!Qa(i.current,t.target)){var r;(r=e.onOptionSelect)==null||r.call(e,t,{selectedOptions:h.selectedOptions,value:n.value,type:t.type,event:t});return}h.selectOption(t,n)}),setHasFocus:h.setHasFocus,setOpen:h.setOpen,setValue:h.setValue,value:h.value}},Lk=(e,t)=>{let n=M.Children.toArray(e);if(t)return{trigger:n[0]};let r,i;return n.length===2?(r=n[0],i=n[1]):n.length===1&&(i=n[0]),{trigger:r,popover:i}},Rk={triggerRef:M.createRef(),popoverRef:M.createRef(),targetRef:M.createRef(),tagPickerGroupRef:M.createRef(),secondaryActionRef:M.createRef(),open:!1,clearSelection:()=>null,getOptionById:()=>void 0,selectedOptions:[],selectOption:()=>null,setHasFocus:()=>null,setOpen:()=>null,setValue:()=>null,value:void 0,popoverId:``,size:`medium`,appearance:`outline`,disabled:!1},zk=Qu(void 0),Bk=zk.Provider,Vk=e=>$u(zk,(t=Rk)=>e(t)),Hk=(e,t)=>M.createElement(Bk,{value:t.picker},M.createElement(gd,{value:t.activeDescendant},M.createElement(Gv,{value:t.listbox},e.trigger,e.popover&&(e.inline?e.popover:M.createElement(y_,{mountNode:e.mountNode},e.popover)))));function Uk(e){let{onOptionClick:t,registerOption:n,selectedOptions:r,selectOption:i,value:a,triggerRef:o,secondaryActionRef:s,tagPickerGroupRef:c,targetRef:l,size:u,setValue:d,setOpen:f,setHasFocus:p,popoverRef:m,appearance:h,clearSelection:g,getOptionById:_,getOptionsMatchingValue:v,open:y,popoverId:b,disabled:x,noPopover:S}=e;return{activeDescendant:M.useMemo(()=>({controller:e.activeDescendantController}),[e.activeDescendantController]),listbox:{onOptionClick:t,registerOption:n,getOptionById:_,getOptionsMatchingValue:v,selectedOptions:r,selectOption:i,focusVisible:!1,setActiveOption:Wk},picker:{value:a,triggerRef:o,targetRef:l,secondaryActionRef:s,tagPickerGroupRef:c,size:u,setValue:d,setOpen:f,setHasFocus:p,selectOption:i,popoverRef:m,selectedOptions:r,appearance:h,clearSelection:g,getOptionById:_,open:y,popoverId:b,disabled:x,noPopover:S}}}var Wk=()=>{},Gk=M.memo(e=>{let t=Ik(e);return Hk(t,Uk(t))});Gk.displayName=`TagPicker`;var Kk={width:`--fluent-TagPickerInput__width`};`${Kk.width}`;var qk=(e,t)=>{let n=sv(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0}),{controller:r}=_d(),i=Vk(e=>e.size),a=Vk(e=>e.disabled),o=Vk(e=>e.tagPickerGroupRef),s=Vk(e=>e.triggerRef),c=Vk(e=>e.selectedOptions),l=Vk(e=>e.setValue),u=Vk(e=>e.setOpen),d=Vk(e=>e.setHasFocus),f=Vk(e=>e.clearSelection),p=Vk(e=>e.open),m=Vk(e=>e.noPopover?void 0:e.popoverId),h=Vk(e=>e.selectOption),g=Vk(e=>e.getOptionById),_=Vk(e=>e.value);ha(()=>{s.current&&Jk(s.current)},[c,s]),ha(()=>{if(s.current){let e=s.current,t=()=>Jk(e);return e.addEventListener(`input`,t),()=>{e.removeEventListener(`input`,t)}}},[s]);let{value:v=_,disabled:y=a}=n,{findLastFocusable:b}=Gc(),x=M.useRef(!1);return{components:{root:`input`},root:vy({type:`text`,value:v??``,"aria-controls":p?m:void 0,disabled:y,...Ai(`input`,n),onKeyDown:F(e=>{var t;if((t=n.onKeyDown)==null||t.call(n,e),(e.key===`ArrowLeft`||e.key===`Backspace`)&&e.currentTarget.selectionStart===0&&e.currentTarget.selectionEnd===0&&o.current){var r;(r=b(o.current))==null||r.focus()}else e.key===` `?p&&!x.current&&u(e,!1):e.key===`Enter`&&(p?__.unstable_batchedUpdates(()=>{l(void 0),u(e,!1)}):u(e,!0));x.current=e.key.length===1&&e.code!==` `&&!e.altKey&&!e.ctrlKey&&!e.metaKey})},xa(s,t),{activeDescendantController:r,freeform:!1,state:{clearSelection:f,getOptionById:g,open:p,selectedOptions:c,selectOption:h,setHasFocus:d,setOpen:u,setValue:l,multiselect:!0,value:n.value}}),disabled:y,size:i}},Jk=e=>{e.style.removeProperty(Kk.width),e.scrollWidth>e.offsetWidth+1?e.style.setProperty(Kk.width,`100%`):e.style.removeProperty(Kk.width)},Yk=e=>I(e.root,{}),Xk={root:`fui-TagPickerInput`},Zk=Vr(`r1hdk6fw`,null,[`.r1hdk6fw{background-color:var(--colorTransparentBackground);color:var(--colorNeutralForeground1);font-family:var(--fontFamilyBase);box-sizing:border-box;border:none;min-width:24px;max-width:100%;width:var(--fluent-TagPickerInput__width, 0);flex-grow:1;}`,`.r1hdk6fw:focus{outline-style:none;}`,`.r1hdk6fw::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}`,`.r1hdk6fw::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}`,`.r1hdk6fw::placeholder{color:var(--colorNeutralForeground4);opacity:1;}`,`.r1hdk6fw::after{visibility:hidden;white-space:pre-wrap;}`]),Qk=P({medium:{Bahqtrf:`fk6fouc`,Be2twd7:`fkhj508`,Bhrd7zp:`figsok6`,Bg96gwp:`f1i3iumi`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`fa2pw7h`},large:{Bahqtrf:`fk6fouc`,Be2twd7:`fkhj508`,Bhrd7zp:`figsok6`,Bg96gwp:`f1i3iumi`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`ft37c3`},"extra-large":{Bahqtrf:`fk6fouc`,Be2twd7:`fkhj508`,Bhrd7zp:`figsok6`,Bg96gwp:`f1i3iumi`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f3abo53`},disabled:{sj55zd:`f1s2aq7o`,De3pzq:`f1c21dwh`,Bceei9c:`fdrzuqr`,yvdlaj:`fahhnxm`}},{d:[`.fk6fouc{font-family:var(--fontFamilyBase);}`,`.fkhj508{font-size:var(--fontSizeBase300);}`,`.figsok6{font-weight:var(--fontWeightRegular);}`,`.f1i3iumi{line-height:var(--lineHeightBase300);}`,[`.fa2pw7h{padding:var(--spacingVerticalSNudge) 0 var(--spacingVerticalSNudge) 0;}`,{p:-1}],[`.ft37c3{padding:var(--spacingVerticalMNudge) 0 var(--spacingVerticalMNudge) 0;}`,{p:-1}],[`.f3abo53{padding:var(--spacingVerticalM) 0 var(--spacingVerticalM) 0;}`,{p:-1}],`.f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}`,`.f1c21dwh{background-color:var(--colorTransparentBackground);}`,`.fdrzuqr{cursor:not-allowed;}`,`.fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}`,`.fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}`]}),$k=e=>{"use no memo";let t=Zk(),n=Qk();return e.root.className=A(Xk.root,t,n[e.size],e.disabled&&n.disabled,e.root.className),e},eA=M.forwardRef((e,t)=>{let n=qk(e,t);return $k(n),Qi(`useTagPickerInputStyles_unstable`)(n),Yk(n)});eA.displayName=`TagPickerInput`;var tA=(e,t)=>{let n=Vk(e=>e.triggerRef),r=Vk(e=>e.popoverRef),i=Vk(e=>e.popoverId);return{open:Vk(e=>e.open),components:{root:iy},root:Jr({...hy(e,xa(r,t),{state:{multiselect:!0},triggerRef:n,defaultProps:{id:i}}),role:`listbox`},{elementType:iy})}},nA=e=>I(e.root,{}),rA={root:`fui-TagPickerList`},iA=P({root:{E5pizo:`f1hg901r`,Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`ft85np5`,Bxyxcbc:`fmmk62d`,B7ck84d:`f1ewtqcl`},collapsed:{mc9l5x:`fjseox`}},{d:[`.f1hg901r{box-shadow:var(--shadow16);}`,[`.ft85np5{border-radius:var(--borderRadiusMedium);}`,{p:-1}],`.fmmk62d{max-height:80vh;}`,`.f1ewtqcl{box-sizing:border-box;}`,`.fjseox{display:none;}`]}),aA=e=>{"use no memo";let t=iA();return e.root.className=A(rA.root,t.root,!e.open&&t.collapsed,e.root.className),e},oA=M.forwardRef((e,t)=>{let n=tA(e,t);return aA(n),Qi(`useTagPickerListStyles_unstable`)(n),nA(n)});oA.displayName=`TagPickerList`;var sA=e=>{let{targetDocument:t}=Gi(),[n]=M.useState(()=>{let n=t?.defaultView?.ResizeObserver;if(n)return new n(e)});return M.useCallback(e=>{e?n?.observe(e):n?.disconnect()},[n])},cA={root:`fui-TagPickerControl`,expandIcon:`fui-TagPickerControl__expandIcon`,secondaryAction:`fui-TagPickerControl__secondaryAction`,aside:`fui-TagPickerControl__aside`},lA=P({root:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`ft85np5`,z189sj:[`f1d8q41i`,`f8lqu5g`],uwmqm3:[`f1uw59to`,`fw5db7e`],Bt984gj:`f122n59`,i8kkvl:`f14mj54c`,B7ck84d:`f1ewtqcl`,mc9l5x:`f22iagw`,Bf4jedk:`f1exfvgq`,qhf8xq:`f10pi13n`,Eh141a:`fni485r`,Bbr2w1p:`f14a1fxs`,Bduesf4:`f3e99gv`,Bpq79vn:`fhljsf7`,li1rpt:`f1gw3sf2`,Bsft5z2:`f13zj6fq`,E3zdtr:`f1mdlcz9`,Eqx8gd:[`f1a7op3`,`f1cjjd47`],By385i5:`f1gboi2j`,B1piin3:[`f1cjjd47`,`f1a7op3`],Dlnsje:`f145g4dw`,d9w3h3:[`f1kp91vd`,`f1ibwz09`],B3778ie:[`f1ibwz09`,`f1kp91vd`],B1q35kw:0,Bw17bha:0,Bcgy8vk:0,Bjuhk93:`f1mnjydx`,Gjdm7m:`f13evtba`,b1kco5:`f1yk9hq`,Ba2ppi3:`fhwpy7i`,F2fol1:`f14ee0xe`,lck23g:`f1xhbsuh`,wi16st:`fsrmcvb`,ywj3b2:`f1t3k7v9`,umuwi5:`fjw5xc1`,Blcqepd:`f1xdyd5c`,nplu4u:`fatpbeo`,Bioka5o:`fb7uyps`,Bnupc0a:`fx04xgm`,bing71:`f1c7in40`,Bercvud:`f1ibeo51`},listbox:{E5pizo:`f1hg901r`,Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`ft85np5`,Bxyxcbc:`fmmk62d`,B7ck84d:`f1ewtqcl`},listboxCollapsed:{mc9l5x:`fjseox`},medium:{sshi5w:`f1nxs5xn`},large:{sshi5w:`f1w5jphr`},"extra-large":{sshi5w:`f5pgtk9`},outline:{De3pzq:`fxugw4r`,Bgfg5da:0,B9xav0g:`f1c1zstj`,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:`fhz96rm`},outlineInteractive:{Bgoe8wy:`fvcxoqz`,Bwzppfd:[`f1ub3y4t`,`f1m52nbi`],oetu4i:`f1l4zc64`,gg5e9n:[`f1m52nbi`,`f1ub3y4t`],B6oc9vd:`fvs00aa`,ak43y8:[`f1assf6x`,`f4ruux4`],wmxk5l:`f1z0osm6`,B50zh58:[`f4ruux4`,`f1assf6x`],Bvq3b66:`f1b473iu`,Brahy3i:[`f381qr8`,`ft4skwv`],zoxjo1:`f1qzcrsd`,an54nd:[`ft4skwv`,`f381qr8`]},underline:{De3pzq:`f1c21dwh`,B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:`f9ez7ne`,Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`fokr779`},"filled-lighter":{De3pzq:`fxugw4r`,Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:`f88035w`},"filled-darker":{De3pzq:`f16xq7d1`,Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:`f88035w`},invalid:{tvckwq:`fs4k3qj`,gk2u95:[`fcee079`,`fmyw78r`],hhx65j:`f1fgmyf4`,Bxowmz0:[`fmyw78r`,`fcee079`]},invalidUnderline:{hhx65j:`f1fgmyf4`},disabled:{Bceei9c:`fdrzuqr`,De3pzq:`f1c21dwh`,g2u3we:`f1jj8ep1`,h3c5rm:[`f15xbau`,`fy0fskl`],B9xav0g:`f4ikngz`,zhjwy3:[`fy0fskl`,`f15xbau`],Bcq6wej:`f9dbb4x`,Jcjdmf:[`f3qs60o`,`f5u9ap2`],sc4o1m:`fwd1oij`,Bosien3:[`f5u9ap2`,`f3qs60o`]}},{d:[[`.ft85np5{border-radius:var(--borderRadiusMedium);}`,{p:-1}],`.f1d8q41i{padding-right:calc(var(--spacingHorizontalM) + var(--fui-TagPickerControl-aside-width, 0px));}`,`.f8lqu5g{padding-left:calc(var(--spacingHorizontalM) + var(--fui-TagPickerControl-aside-width, 0px));}`,`.f1uw59to{padding-left:var(--spacingHorizontalM);}`,`.fw5db7e{padding-right:var(--spacingHorizontalM);}`,`.f122n59{align-items:center;}`,`.f14mj54c{column-gap:var(--spacingHorizontalXXS);}`,`.f1ewtqcl{box-sizing:border-box;}`,`.f22iagw{display:flex;}`,`.f1exfvgq{min-width:250px;}`,`.f10pi13n{position:relative;}`,`.fni485r{flex-wrap:wrap;}`,`.f1gw3sf2::after{box-sizing:border-box;}`,`.f13zj6fq::after{content:"";}`,`.f1mdlcz9::after{position:absolute;}`,`.f1a7op3::after{left:-1px;}`,`.f1cjjd47::after{right:-1px;}`,`.f1gboi2j::after{bottom:-1px;}`,`.f145g4dw::after{height:max(2px, var(--borderRadiusMedium));}`,`.f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}`,`.f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}`,[`.f1mnjydx::after{border-bottom:var(--strokeWidthThick) solid var(--colorCompoundBrandStroke);}`,{p:-1}],`.f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}`,`.f1yk9hq::after{transform:scaleX(0);}`,`.fhwpy7i::after{transition-property:transform;}`,`.f14ee0xe::after{transition-duration:var(--durationUltraFast);}`,`.f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}`,`.f1hg901r{box-shadow:var(--shadow16);}`,[`.ft85np5{border-radius:var(--borderRadiusMedium);}`,{p:-1}],`.fmmk62d{max-height:80vh;}`,`.fjseox{display:none;}`,`.f1nxs5xn{min-height:32px;}`,`.f1w5jphr{min-height:40px;}`,`.f5pgtk9{min-height:44px;}`,`.fxugw4r{background-color:var(--colorNeutralBackground1);}`,[`.fhz96rm{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);}`,{p:-2}],`.f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}`,`.f1c21dwh{background-color:var(--colorTransparentBackground);}`,[`.f9ez7ne{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);}`,{p:-1}],[`.fokr779{border-radius:0;}`,{p:-1}],[`.f88035w{border:var(--strokeWidthThin) solid var(--colorTransparentStroke);}`,{p:-2}],`.f16xq7d1{background-color:var(--colorNeutralBackground3);}`,[`.f88035w{border:var(--strokeWidthThin) solid var(--colorTransparentStroke);}`,{p:-2}],`.fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}`,`.fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}`,`.fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}`,`.f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}`,`.fdrzuqr{cursor:not-allowed;}`,`.f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}`,`.f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}`,`.fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}`,`.f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}`],w:[`.f14a1fxs:focus-within{outline-width:2px;}`,`.f3e99gv:focus-within{outline-style:solid;}`,`.fhljsf7:focus-within{outline-color:transparent;}`,`.fjw5xc1:focus-within::after{transform:scaleX(1);}`,`.f1xdyd5c:focus-within::after{transition-property:transform;}`,`.fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}`,`.fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}`,`.f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}`,`.f1b473iu:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}`,`.f381qr8:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}`,`.ft4skwv:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}`,`.f1qzcrsd:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}`],m:[[`@media screen and (prefers-reduced-motion: reduce){.fsrmcvb::after{transition-duration:0.01ms;}}`,{m:`screen and (prefers-reduced-motion: reduce)`}],[`@media screen and (prefers-reduced-motion: reduce){.f1t3k7v9::after{transition-delay:0.01ms;}}`,{m:`screen and (prefers-reduced-motion: reduce)`}],[`@media screen and (prefers-reduced-motion: reduce){.fx04xgm:focus-within::after{transition-duration:0.01ms;}}`,{m:`screen and (prefers-reduced-motion: reduce)`}],[`@media screen and (prefers-reduced-motion: reduce){.f1c7in40:focus-within::after{transition-delay:0.01ms;}}`,{m:`screen and (prefers-reduced-motion: reduce)`}],[`@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}`,{m:`(forced-colors: active)`}]],h:[`.fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}`,`.f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}`,`.f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}`,`.f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}`],a:[`.fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}`,`.f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}`,`.f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}`,`.f1z0osm6:active{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}`]}),uA=P({root:{mc9l5x:`f22iagw`,qhf8xq:`f1euv43f`,Bhzewxz:`f15twtuk`,j35jbq:[`f8b87gs`,`fedtrts`],Bqenvij:`f1l02sjl`,Bceei9c:`f113hnb5`},medium:{sshi5w:`f1nxs5xn`},large:{sshi5w:`f1w5jphr`},"extra-large":{sshi5w:`f5pgtk9`}},{d:[`.f22iagw{display:flex;}`,`.f1euv43f{position:absolute;}`,`.f15twtuk{top:0;}`,`.f8b87gs{right:var(--spacingHorizontalM);}`,`.fedtrts{left:var(--spacingHorizontalM);}`,`.f1l02sjl{height:100%;}`,`.f113hnb5{cursor:text;}`,`.f1nxs5xn{min-height:32px;}`,`.f1w5jphr{min-height:40px;}`,`.f5pgtk9{min-height:44px;}`]}),dA=P({icon:{B7ck84d:`f1ewtqcl`,sj55zd:`fxkbij4`,Bceei9c:`f1k6fduh`,mc9l5x:`f22iagw`,Brf1p80:`f4d9j23`,Bt984gj:`f122n59`,qb2dma:`fjgzulp`,Be2twd7:`f1pp30po`,Bo70h7d:`fvc9v3g`},medium:{Be2twd7:`f4ybsrx`,Frg6f3:[`f1h9en5y`,`f1xk557c`],sshi5w:`f1nxs5xn`},large:{Be2twd7:`fe5j1ua`,Frg6f3:[`f1h9en5y`,`f1xk557c`],sshi5w:`f1w5jphr`},"extra-large":{Be2twd7:`f1rt2boy`,Frg6f3:[`f1t5qyk5`,`f1ikr372`],sshi5w:`f5pgtk9`},disabled:{sj55zd:`f1s2aq7o`,Bceei9c:`fdrzuqr`}},{d:[`.f1ewtqcl{box-sizing:border-box;}`,`.fxkbij4{color:var(--colorNeutralStrokeAccessible);}`,`.f1k6fduh{cursor:pointer;}`,`.f22iagw{display:flex;}`,`.f4d9j23{justify-content:center;}`,`.f122n59{align-items:center;}`,`.fjgzulp{align-self:flex-start;}`,`.f1pp30po{font-size:var(--fontSizeBase500);}`,`.fvc9v3g svg{display:block;}`,`.f4ybsrx{font-size:16px;}`,`.f1h9en5y{margin-left:var(--spacingHorizontalXXS);}`,`.f1xk557c{margin-right:var(--spacingHorizontalXXS);}`,`.f1nxs5xn{min-height:32px;}`,`.fe5j1ua{font-size:20px;}`,`.f1w5jphr{min-height:40px;}`,`.f1rt2boy{font-size:24px;}`,`.f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}`,`.f1ikr372{margin-right:var(--spacingHorizontalSNudge);}`,`.f5pgtk9{min-height:44px;}`,`.f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}`,`.fdrzuqr{cursor:not-allowed;}`]}),fA=P({root:{mc9l5x:`f22iagw`}},{d:[`.f22iagw{display:flex;}`]}),pA=e=>{"use no memo";let t=lA(),n=dA(),r=uA(),i=fA();return e.root.className=A(cA.root,t.root,t[e.size],t[e.appearance],!e.disabled&&e.appearance===`outline`&&t.outlineInteractive,e.invalid&&e.appearance!==`underline`&&t.invalid,e.invalid&&e.appearance===`underline`&&t.invalidUnderline,e.disabled&&t.disabled,e.root.className),e.aside&&(e.aside.className=A(cA.aside,r.root,r[e.size],e.aside.className)),e.expandIcon&&(e.expandIcon.className=A(cA.expandIcon,n.icon,n[e.size],e.disabled&&n.disabled,e.expandIcon.className)),e.secondaryAction&&(e.secondaryAction.className=A(cA.secondaryAction,i.root,e.secondaryAction.className)),e};function mA(e){let{tagPickerId:t,state:n}=e,{targetDocument:r}=Gi(),i=Vk(e=>e.triggerRef),a=M.useRef(null),o=!!n.expandIcon,{"aria-label":s,"aria-labelledby":c,id:l}=n.expandIcon||{},u=M.useCallback((e,n)=>{let r,i,a;if(o){let o=s||c,u=`Open`;o||(n?(r=u,a=l??`${t}-chevron`,i=`${a} ${n}`):r=e?`${u} ${e}`:u)}return{expandAriaLabel:r,expandAriaLabelledBy:i,expandId:a}},[s,c,l,o,t]),d=M.useCallback(()=>{let{expandAriaLabel:e,expandAriaLabelledBy:t,expandId:n}=u(i.current?.getAttribute(`aria-label`),i.current?.getAttribute(`aria-labelledby`));if(t){var r;(r=a.current)==null||r.setAttribute(`aria-labelledby`,t)}if(e){var o;(o=a.current)==null||o.setAttribute(`aria-label`,e)}if(n){var s;(s=a.current)==null||s.setAttribute(`id`,n)}},[u,i]);return M.useEffect(()=>{let e=s||c;if(!r?.defaultView||!i.current||!o||e)return;let t=r.defaultView;d();let n=new t.MutationObserver(d);return n.observe(i.current,{attributes:!0,attributeFilter:[`aria-label`,`aria-labelledby`]}),()=>n.disconnect()},[u,d,s,c,o,t,i,r]),a}var hA=(e,t)=>{let n=Vk(e=>e.targetRef),r=Vk(e=>e.triggerRef),i=Vk(e=>e.tagPickerGroupRef),a=Vk(e=>e.open),o=Vk(e=>e.popoverId),s=Vk(e=>e.setOpen),c=Vk(e=>e.secondaryActionRef),l=Vk(e=>e.size),u=Vk(e=>e.appearance),d=Vk(e=>e.disabled),f=av()?.validationState===`error`,p=Vk(e=>e.noPopover??!1),{targetDocument:m}=Gi(),h=ba(`tagPicker-`),g=M.useRef(null),_=M.useRef(null),v=M.useRef(null),y=M.useRef(null),b=Yr(e.secondaryAction,{elementType:`span`}),x=xa(c,b?.ref);b&&(b.ref=x);let S=Yr(e.expandIcon,{renderByDefault:!p,defaultProps:{"aria-expanded":a,"aria-disabled":d?`true`:void 0,children:M.createElement(bf,null),role:`button`},elementType:`span`}),C=xa(S?.ref,v);S&&(S.ref=C);let w=sA(([e])=>{let t=m?.defaultView;t&&(g.current=t.requestAnimationFrame(()=>{var t;(t=_.current)==null||t.style.setProperty(`--fui-TagPickerControl-aside-width`,`${e.contentRect.width}px`)}))}),T=Yr(void 0,{elementType:`span`,renderByDefault:!!(b||S),defaultProps:{ref:w}}),E=xa(y,T?.ref);T&&(T.ref=E);let D=F(e=>{if(!e.isDefaultPrevented()&&(Qa(v.current,e.target)||e.target===_.current||e.target===i.current||e.target===y.current)){var t;e.preventDefault(),s(e,!a),(t=r.current)==null||t.focus()}}),O={components:{root:`div`,expandIcon:`span`,secondaryAction:`span`,aside:`span`},root:Jr(Ai(`div`,{ref:xa(t,n,_),"aria-owns":a&&!p?o:void 0,...e,onMouseDown:D}),{elementType:`div`}),aside:T,expandIcon:S,secondaryAction:b,size:l,appearance:u,disabled:d,invalid:f},ee=mA({tagPickerId:h,state:O}),te=xa(S?.ref,ee);return O.expandIcon&&(O.expandIcon.ref=te),M.useEffect(()=>{g.current&&m?.defaultView&&m.defaultView.cancelAnimationFrame(g.current)},[m]),O},gA=e=>oo(e.root,{children:[e.root.children,e.aside&&oo(e.aside,{children:[e.secondaryAction&&I(e.secondaryAction,{}),e.expandIcon&&I(e.expandIcon,{})]})]}),_A=M.forwardRef((e,t)=>{let n=hA(e,t);return pA(n),Qi(`useTagPickerControlStyles_unstable`)(n),gA(n)});_A.displayName=`TagPickerControl`;var vA=(e,t)=>{let n=oy(e,t);return{components:{...n.components,media:`div`,secondaryContent:`span`},media:Yr(e.media,{elementType:`div`}),secondaryContent:Yr(e.secondaryContent,{elementType:`span`}),root:Jr({...n.root,role:`option`,"aria-checked":e[`aria-checked`]},{elementType:`div`})}},yA=e=>oo(e.root,{children:[e.media&&I(e.media,{}),e.root.children,e.secondaryContent&&I(e.secondaryContent,{})]}),bA={root:`fui-TagPickerOption`,media:`fui-TagPickerOption__media`,secondaryContent:`fui-TagPickerOption__secondaryContent`},xA=Vr(`r70qvj9`,null,[`.r70qvj9{display:flex;align-items:center;}`]),SA=P({secondaryContent:{mc9l5x:`f13qh94s`,Budl1dq:`fjxzuw`}},{d:[`.f13qh94s{display:grid;}`,`.fjxzuw{grid-template-columns:auto 1fr;}`]}),CA=Vr(`r131qrbm`,null,[`.r131qrbm{grid-column-start:2;grid-row-start:2;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}`]),wA=Vr(`rrip69g`,null,[`.rrip69g{grid-row-start:span 2;}`]),TA=e=>{"use no memo";let t=xA(),n=SA(),r=CA(),i=wA();return e.root.className=A(bA.root,t,e.secondaryContent&&n.secondaryContent,e.root.className),dy({...e,active:!1,disabled:!1,focusVisible:!1,checkIcon:void 0,selected:!1}),e.media&&(e.media.className=A(bA.media,i,e.media.className)),e.secondaryContent&&(e.secondaryContent.className=A(bA.secondaryContent,r,e.secondaryContent.className)),e},EA=M.forwardRef((e,t)=>{let n=vA(e,t);return TA(n),Qi(`useTagPickerOptionStyles_unstable`)(n),yA(n)});EA.displayName=`TagPickerOption`;function DA(e){switch(e){case`medium`:return`extra-small`;case`large`:return`small`;case`extra-large`:return`medium`;default:return`extra-small`}}function OA(e){switch(e){case`extra-small`:return`medium`;case`small`:return`large`;case`medium`:return`extra-large`;default:return`medium`}}function kA(e){switch(e){case`filled-darker`:return`outline`;default:return`filled`}}var AA=(e,t)=>{let n=Vk(e=>e.selectedOptions.length>0),r=Vk(e=>e.selectedOptions.length===1),i=Vk(e=>e.triggerRef),a=Vk(e=>e.tagPickerGroupRef),o=Vk(e=>e.selectOption),s=Vk(e=>DA(e.size)),c=Vk(e=>e.appearance),l=Vk(e=>e.disabled),u=Vc({circular:!1,axis:`both`,memorizeCurrent:!0});return{...jD({role:`listbox`,disabled:l,...e,...u,size:s,appearance:kA(c),dismissible:!0,onKeyDown:F(t=>{var n;if((n=e.onKeyDown)==null||n.call(e,t),Fa(t.target)&&t.key===`ArrowRight`){var r;(r=i.current)==null||r.focus()}}),onDismiss:F((e,t)=>{if(o(e,{value:t.value,id:`ERROR_DO_NOT_USE`,text:`ERROR_DO_NOT_USE`}),r&&!e.isDefaultPrevented()){var n;(n=i.current)==null||n.focus()}})},xa(t,a)),hasSelectedOptions:n}};function jA(e,t){return e.hasSelectedOptions?MD(e,t):null}var MA={root:`fui-TagPickerGroup`},NA=P({root:{Eh141a:`fni485r`,B7ck84d:`f1ewtqcl`,Bceei9c:`f113hnb5`},medium:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`fa2pw7h`,i8kkvl:0,Belr9w4:0,rmohyg:`fkln5zr`},large:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`fc0zr7g`,i8kkvl:0,Belr9w4:0,rmohyg:`f1eyhf9v`},"extra-large":{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`fc0zr7g`,i8kkvl:0,Belr9w4:0,rmohyg:`f1eyhf9v`}},{d:[`.fni485r{flex-wrap:wrap;}`,`.f1ewtqcl{box-sizing:border-box;}`,`.f113hnb5{cursor:text;}`,[`.fa2pw7h{padding:var(--spacingVerticalSNudge) 0 var(--spacingVerticalSNudge) 0;}`,{p:-1}],[`.fkln5zr{gap:var(--spacingHorizontalXS);}`,{p:-1}],[`.fc0zr7g{padding:var(--spacingVerticalS) 0 var(--spacingVerticalS) 0;}`,{p:-1}],[`.f1eyhf9v{gap:var(--spacingHorizontalSNudge);}`,{p:-1}],[`.fc0zr7g{padding:var(--spacingVerticalS) 0 var(--spacingVerticalS) 0;}`,{p:-1}],[`.f1eyhf9v{gap:var(--spacingHorizontalSNudge);}`,{p:-1}]]}),PA=e=>{"use no memo";FD(e);let t=NA();return e.root.className=A(MA.root,t[OA(e.size)],t.root,e.root.className),e},FA=M.forwardRef((e,t)=>{let n=AA(e,t);return PA(n),Qi(`useTagPickerGroupStyles_unstable`)(n),jA(n,ID(n))});FA.displayName=`TagPickerGroup`;function IA(e){return M.createElement(EA,{value:e,key:e},e)}function LA({filter:e,noOptionsElement:t,renderOption:n=IA,query:r,options:i}){let a=M.useCallback(e=>{let t=r.trim();return t===``?!0:e.toLowerCase().includes(t.toLowerCase())},[r]),o=e??a,s=M.useMemo(()=>i.reduce((e,t,r)=>(o(t,r)&&e.push(n(t)),e),[]),[i,n,o]);return s.length===0?[t.key?t:M.cloneElement(t,{key:`no-options`})]:s}function RA({defaultOpenCategories:e,multiple:t}){if(e!==void 0)return Array.isArray(e)?t?e:[e[0]]:[e]}var zA=(e,t,n)=>n?t.includes(e)?t.filter(t=>t!==e):[...t,e]:t[0]===e?[]:[e],BA=(e,t)=>{let{density:n=`medium`}=e;return{...VA(e,t),density:n,tabbable:!1}},VA=(e,t)=>{let{onNavItemSelect:n,onNavCategoryItemToggle:r,multiple:i=!0,openCategories:a,selectedCategoryValue:o,selectedValue:s,defaultOpenCategories:c,defaultSelectedValue:l,defaultSelectedCategoryValue:u}=e,d=M.useRef(null),[f,p]=sa({state:a,defaultState:RA({defaultOpenCategories:c,multiple:i}),initialState:[]}),[m,h]=sa({state:o,defaultState:u,initialState:void 0}),[g,_]=sa({state:s,defaultState:l,initialState:void 0}),v=M.useRef(void 0),y=M.useRef(void 0),b=M.useRef(void 0),x=M.useRef(void 0);v.current!==g&&(y.current=v.current,v.current=g),b.current!==m&&(x.current=b.current,b.current=m);let S=F((e,t)=>{_(t.value),h(t.categoryValue?t.categoryValue:``),n?.(e,t)}),C=F((e,t)=>{if(t.categoryValue!==void 0){let n=zA(t.categoryValue,f??[],i);r?.(e,t),p(n)}}),w=M.useRef({}),T=M.useCallback(e=>{w.current[JSON.stringify(e.value)]=e},[]),E=M.useCallback(e=>{delete w.current[JSON.stringify(e.value)]},[]),D=M.useCallback(()=>({selectedValue:v.current,previousSelectedValue:y.current,selectedCategoryValue:b.current,previousSelectedCategoryValue:x.current,registeredNavItems:w.current}),[]);return{components:{root:`div`},root:Jr(Ai(`div`,{ref:xa(t,d),...e}),{elementType:`div`}),openCategories:f,selectedValue:g,selectedCategoryValue:m,onRegister:T,onUnregister:E,onSelect:S,getRegisteredNavItems:D,onRequestNavCategoryItemToggle:C,multiple:i}},HA={selectedValue:void 0,selectedCategoryValue:void 0,onRegister:()=>{},onUnregister:()=>{},onSelect:()=>{},getRegisteredNavItems:()=>({registeredNavItems:{}}),onRequestNavCategoryItemToggle(){},openCategories:[],multiple:!0,density:`medium`,tabbable:!1},UA=M.createContext(void 0),WA=UA.Provider,GA=()=>M.useContext(UA)||HA;function KA(e){let{selectedValue:t,selectedCategoryValue:n,onRegister:r,onUnregister:i,onSelect:a,getRegisteredNavItems:o,onRequestNavCategoryItemToggle:s,openCategories:c,multiple:l,density:u,onNavItemSelect:d,tabbable:f}=e;return{nav:M.useMemo(()=>({selectedValue:t,selectedCategoryValue:n,onSelect:a,onRegister:r,onUnregister:i,getRegisteredNavItems:o,onRequestNavCategoryItemToggle:s,openCategories:c,multiple:l,density:u,onNavItemSelect:d,tabbable:f}),[t,n,a,r,i,o,s,c,l,u,d,f])}}z.colorNeutralBackground4,z.colorNeutralBackground4Hover,z.colorNeutralBackground4Pressed,z.durationFaster,z.curveLinear,z.durationFaster,z.curveLinear;var qA=Vr(`rdi7s9k`,`r94071`,[`.rdi7s9k{display:flex;text-transform:none;position:relative;justify-content:start;align-items:flex-start;text-align:left;gap:var(--spacingVerticalL);padding:var(--spacingVerticalMNudge) var(--spacingHorizontalS) var(--spacingVerticalMNudge) var(--spacingHorizontalMNudge);background-color:var(--colorNeutralBackground4);border-radius:var(--borderRadiusMedium);color:var(--colorNeutralForeground2);text-decoration-line:none;border:none;box-sizing:border-box;cursor:pointer;transition-duration:var(--durationFaster);transition-timing-function:var(--curveLinear);transition-property:background;width:100%;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);}`,`.rdi7s9k:hover{background-color:var(--colorNeutralBackground4Hover);}`,`.rdi7s9k:focus-visible{outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);outline-offset:calc(var(--strokeWidthThick) * -1);}`,`.r94071{display:flex;text-transform:none;position:relative;justify-content:start;align-items:flex-start;text-align:right;gap:var(--spacingVerticalL);padding:var(--spacingVerticalMNudge) var(--spacingHorizontalMNudge) var(--spacingVerticalMNudge) var(--spacingHorizontalS);background-color:var(--colorNeutralBackground4);border-radius:var(--borderRadiusMedium);color:var(--colorNeutralForeground2);text-decoration-line:none;border:none;box-sizing:border-box;cursor:pointer;transition-duration:var(--durationFaster);transition-timing-function:var(--curveLinear);transition-property:background;width:100%;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);}`,`.r94071:hover{background-color:var(--colorNeutralBackground4Hover);}`,`.r94071:focus-visible{outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);outline-offset:calc(var(--strokeWidthThick) * -1);}`]),JA=P({root:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:[`f1434i56`,`f1jkyjtc`]}},{d:[[`.f1434i56{padding:var(--spacingVerticalXS) var(--spacingHorizontalS) var(--spacingVerticalXS) var(--spacingHorizontalMNudge);}`,{p:-1}],[`.f1jkyjtc{padding:var(--spacingVerticalXS) var(--spacingHorizontalMNudge) var(--spacingVerticalXS) var(--spacingHorizontalS);}`,{p:-1}]]}),YA=P({selected:{Bahqtrf:`fk6fouc`,Be2twd7:`fkhj508`,Bhrd7zp:`fl43uef`,Bg96gwp:`f1i3iumi`}},{d:[`.fk6fouc{font-family:var(--fontFamilyBase);}`,`.fkhj508{font-size:var(--fontSizeBase300);}`,`.fl43uef{font-weight:var(--fontWeightSemibold);}`,`.f1i3iumi{line-height:var(--lineHeightBase300);}`]}),XA=P({base:{E3zdtr:`f1mdlcz9`,xr36ep:`fpil94b`,B67388b:`f90z1up`,Bitv4sc:`f2ic3ny`,Br128sd:`f1xz7mvd`,rjyhj6:`f3i5gj0`,Bjyk6c5:`fi4v1pz`,Dlnsje:`f1tvrmnx`,a2br6o:`f1p1ggug`,d9w3h3:0,B3778ie:0,B4j8arr:0,Bl18szs:0,Blrzh8d:`f3b9emi`,Bsft5z2:`f13zj6fq`,vikyaa:0,Brlscjf:0,vvp1qr:0,t65l24:`f1ak99p5`,rc3c53:`fmnu42u`}},{d:[`.f1mdlcz9::after{position:absolute;}`,`.fpil94b::after{animation-duration:var(--durationFaster);}`,`.f90z1up::after{animation-fill-mode:both;}`,`.f2ic3ny::after{animation-timing-function:var(--curveLinear);}`,`.f1xz7mvd::after{animation-name:f1ayorr4;}`,`.f3i5gj0::after{-webkit-margin-start:-16px;margin-inline-start:-16px;}`,`.fi4v1pz::after{background-color:var(--colorCompoundBrandForeground1);}`,`.f1tvrmnx::after{height:20px;}`,`.f1p1ggug::after{width:4px;}`,[`.f3b9emi::after{border-radius:var(--borderRadiusCircular);}`,{p:-1}],`.f13zj6fq::after{content:"";}`],k:[`@keyframes f1ayorr4{0%{background:transparent;}100%{background:var(--colorCompoundBrandForeground1);}}`],m:[[`@media (forced-colors: active){.f1ak99p5::after{outline:solid 2px var(--colorTransparentStroke);}}`,{p:-1,m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fmnu42u::after{outline-offset:-2px;}}`,{m:`(forced-colors: active)`}]]}),ZA=P({base:{mc9l5x:`f13qh94s`,zoa1oz:`fngvled`,sshi5w:`f16gbxbe`,Bf4jedk:`f11u7vat`,Bt984gj:`f1w4ww9t`,Brf1p80:`f4d9j23`,B68tc82:0,Bmxbyg5:0,Bpg54ce:`f1a3p1vp`,B9gejnh:0,yr4pdu:0,Bvkmzld:0,mqdk8l:0,Gbjhqp:`f1uiug86`,obb2bi:`fwrh02z`,D0sxk3:`f16u1re`,Esdz9e:0,Bqil8sh:0,Bbom3er:0,djjtid:0,mz70lj:`f1jsjwoh`,t6yez3:`f8bsbmo`},selected:{C9vb3z:`f5rs5gh`,ux3ctl:`f1ioc1t6`,Ba906uv:`fey0lwf`,D0sxk3:`fxoiby5`,hndn0g:`fnh0dvc`,cw2nnk:`fp7jrvw`,Bkztwl0:`fdt4y6x`,H8nmoi:`fvl64og`,ipgedg:`ffh1t26`}},{d:[`.f13qh94s{display:grid;}`,`.fngvled{grid-template-areas:overlay-area;}`,`.f16gbxbe{min-height:20px;}`,`.f11u7vat{min-width:20px;}`,`.f1w4ww9t{align-items:top;}`,`.f4d9j23{justify-content:center;}`,[`.f1a3p1vp{overflow:hidden;}`,{p:-1}],[`.f1uiug86 .fui-Icon-filled{grid-area:overlay-area;}`,{p:-1}],`.fwrh02z .fui-Icon-filled{color:transparent;}`,`.f16u1re .fui-Icon-filled{display:none;}`,[`.f1jsjwoh .fui-Icon-regular{grid-area:overlay-area;}`,{p:-1}],`.f8bsbmo .fui-Icon-regular{display:inline;}`,`.f5rs5gh .fui-Icon-filled{animation-duration:var(--durationFaster);}`,`.f1ioc1t6 .fui-Icon-filled{animation-fill-mode:both;}`,`.fey0lwf .fui-Icon-filled{animation-timing-function:var(--curveLinear);}`,`.fxoiby5 .fui-Icon-filled{display:inline;}`,`.fnh0dvc .fui-Icon-filled{animation-name:f9t3kp0;}`,`.fp7jrvw .fui-Icon-regular{animation-duration:var(--durationFaster);}`,`.fdt4y6x .fui-Icon-regular{animation-fill-mode:both;}`,`.fvl64og .fui-Icon-regular{animation-timing-function:var(--curveLinear);}`,`.ffh1t26 .fui-Icon-regular{animation-name:fvunsy5;}`],k:[`@keyframes f9t3kp0{0%{opacity:0;color:transparent;}100%{opacity:1;color:var(--colorNeutralForeground2BrandSelected);}}`,`@keyframes fvunsy5{0%{opacity:1;color:var(--colorNeutralForeground2);}100%{opacity:0;color:transparent;}}`]}),QA=(e,t)=>{let{density:n=`medium`}=GA();return{...$A(e,t),density:n}},$A=(e,t)=>{let{onClick:n,value:r,icon:i,as:a,href:o}=e,{selectedValue:s,onRegister:c,onUnregister:l,onSelect:u}=GA(),d=a||(o?`a`:`button`),f=s===r,p=M.useRef(null),m=F(e=>{n?.(e),!e.defaultPrevented&&Fa(e.target)&&u(e,{type:`click`,event:e,value:r})}),h=Jr(Ai(d,fd(d,{"aria-current":f?`page`:`false`,...e})),{elementType:d,defaultProps:{ref:t,type:d}});return h.onClick=m,M.useEffect(()=>(c({value:r,ref:p}),()=>{l({value:r,ref:p})}),[c,l,p,r]),{components:{root:d,icon:`span`},root:h,icon:Yr(i,{elementType:`span`}),selected:f,value:r}},ej=e=>oo(e.root,{children:[e.icon&&I(e.icon,{}),e.root.children]}),tj={root:`fui-NavItem`,icon:`fui-NavItem__icon`},nj=e=>{"use no memo";let t=qA(),n=JA(),r=YA(),i=XA(),a=ZA(),{selected:o,density:s}=e;return e.root.className=A(tj.root,t,s===`small`&&n.root,o&&i.base,o&&r.selected,e.root.className),e.icon&&(e.icon.className=A(tj.icon,a.base,o&&a.selected,e.icon.className)),e},rj=M.forwardRef((e,t)=>{let n=QA(e,t);return nj(n),Qi(`useNavItemStyles_unstable`)(n),ej(n)});rj.displayName=`NavItem`;var ij=(e,t)=>{let{size:n=void 0,tabbable:r=!1}=e;return{...BA(e,t),size:n,tabbable:r,components:{root:Sk},root:Jr({ref:t,role:`navigation`,...e},{elementType:Sk})}},aj=(e,t)=>I(WA,{value:t.nav,children:I(e.root,{})}),oj={root:`fui-NavDrawer`},sj=P({root:{De3pzq:`f1ctqxl6`,Bt984gj:`f3gca8`},defaultWidth:{a9b677:`f12j6lm0`}},{d:[`.f1ctqxl6{background-color:var(--colorNeutralBackground4);}`,`.f3gca8{align-items:unset;}`,`.f12j6lm0{width:260px;}`]}),cj=e=>{"use no memo";let{size:t}=e,n=sj();return e.root.className=A(oj.root,n.root,!t&&n.defaultWidth,e.root.className),e},lj=M.forwardRef((e,t)=>{let n=ij(e,t),r=KA(n);return cj(n),Qi(`useNavDrawerStyles_unstable`)(n),aj(n,r)});lj.displayName=`NavDrawer`;var uj={root:`fui-NavDrawerHeader`},dj=P({root:{jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:`f1r2n0t9`,B1hrpyx:`f80d8h0`,Dbcxam:0,rjzwhg:0,Bblux5w:`fesrmp8`}},{d:[[`.f1r2n0t9{margin:unset;}`,{p:-1}],`.f80d8h0{-webkit-padding-start:14px;padding-inline-start:14px;}`,[`.fesrmp8{padding-block:5px;}`,{p:-1}]]}),fj=e=>{"use no memo";Pk(e);let t=dj();return e.root.className=A(uj.root,t.root,e.root.className),e},pj=(e,t)=>kk(e,t),mj=M.forwardRef((e,t)=>{let n=pj(e,t);return fj(n),Qi(`useNavDrawerHeaderStyles_unstable`)(n),Ak(n)});mj.displayName=`NavDrawerHeader`;var hj=(e,t)=>{let{tabbable:n}=GA();return wk({...Vc({axis:`vertical`,circular:!0,tabbable:n}),...e},t)},gj={root:`fui-NavDrawerBody`},_j=P({root:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:[`fif7vu7`,`f1htewbf`],Bt984gj:`f3gca8`,mc9l5x:`f22iagw`,Beiy3e4:`f1vx9l62`,Belr9w4:`f1j0q4x9`}},{d:[[`.fif7vu7{padding:0 var(--spacingHorizontalXS) 0 var(--spacingHorizontalMNudge);}`,{p:-1}],[`.f1htewbf{padding:0 var(--spacingHorizontalMNudge) 0 var(--spacingHorizontalXS);}`,{p:-1}],`.f3gca8{align-items:unset;}`,`.f22iagw{display:flex;}`,`.f1vx9l62{flex-direction:column;}`,`.f1j0q4x9{row-gap:var(--spacingVerticalXXS);}`]}),vj=e=>{"use no memo";Ok(e);let t=_j();return e.root.className=A(gj.root,t.root,e.root.className),e},yj=M.forwardRef((e,t)=>{let n=hj(e,t);return vj(n),Qi(`useNavDrawerBodyStyles_unstable`)(n),Tk(n)});yj.displayName=`NavDrawerBody`;var bj=(e,t)=>F_({icon:M.createElement(Qf,null),appearance:`transparent`,...e},t),xj={root:`fui-Hamburger`,icon:`fui-Hamburger__icon`},Sj=P({root:{w71qe1:`f1iuv45f`,De3pzq:`f1ctqxl6`,Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:`f3bhgqh`,Jwef8y:`f11oyicx`,ecr2s2:`f9fof1w`}},{d:[`.f1iuv45f{text-decoration-line:none;}`,`.f1ctqxl6{background-color:var(--colorNeutralBackground4);}`,[`.f3bhgqh{border:none;}`,{p:-2}]],h:[`.f11oyicx:hover{background-color:var(--colorNeutralBackground4Hover);}`],a:[`.f9fof1w:active{background-color:var(--colorNeutralBackground4Pressed);}`]}),Cj=e=>{"use no memo";G_(e);let t=Sj();return e.root.className=A(xj.root,t.root,e.root.className),e.icon&&(e.icon.className=A(xj.icon,e.icon.className)),e},wj=M.forwardRef((e,t)=>{let n=bj(e,t);return Cj(n),Qi(`useHamburgerStyles_unstable`)(n),A_(n)});wj.displayName=`Hamburger`;var Tj=(e,t)=>{let{density:n=`medium`}=GA();return{...Ej(e,t),density:n}},Ej=(e,t)=>{let{icon:n,as:r,href:i}=e,a=r||(i?`a`:`button`),o=Jr(Ai(a,fd(a,{...e})),{elementType:a,defaultProps:{ref:t,type:a}});return{components:{root:a,icon:`span`},root:o,icon:Yr(n,{elementType:`span`})}},Dj=e=>oo(e.root,{children:[e.icon&&I(e.icon,{}),e.root.children]}),Oj={root:`fui-AppItem`,icon:`fui-AppItem__icon`},kj=P({root:{Bokbzmb:`f1x6gvzo`,Jyy4pa:`f1djyvue`,B1u1w3b:`feysv1g`,a9b677:`f1jd6clc`,Bt984gj:`f122n59`,i8kkvl:0,Belr9w4:0,rmohyg:`f1ga9sj3`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:[`f1fdqhks`,`fnlwq4f`],Bahqtrf:`fk6fouc`,Be2twd7:`fod5ikn`,Bhrd7zp:`fl43uef`,Bg96gwp:`faaz57k`},small:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:[`f1m1l4b8`,`f1yxbtnt`],i8kkvl:0,Belr9w4:0,rmohyg:`f1let0xu`},absentIconRootAdjustment:{B1hrpyx:`ft8721j`}},{d:[[`.feysv1g{margin-inline:4px;}`,{p:-1}],`.f1jd6clc{width:revert;}`,`.f122n59{align-items:center;}`,[`.f1ga9sj3{gap:10px;}`,{p:-1}],`.f1djyvue{-webkit-margin-start:-6px;margin-inline-start:-6px;}`,`.f1x6gvzo{-webkit-margin-end:0px;margin-inline-end:0px;}`,[`.f1fdqhks{padding:var(--spacingVerticalS) var(--spacingHorizontalS) var(--spacingVerticalS) var(--spacingHorizontalMNudge);}`,{p:-1}],[`.fnlwq4f{padding:var(--spacingVerticalS) var(--spacingHorizontalMNudge) var(--spacingVerticalS) var(--spacingHorizontalS);}`,{p:-1}],`.fk6fouc{font-family:var(--fontFamilyBase);}`,`.fod5ikn{font-size:var(--fontSizeBase400);}`,`.fl43uef{font-weight:var(--fontWeightSemibold);}`,`.faaz57k{line-height:var(--lineHeightBase400);}`,[`.f1m1l4b8{padding:var(--spacingVerticalS) var(--spacingHorizontalS) var(--spacingVerticalS) 14px;}`,{p:-1}],[`.f1yxbtnt{padding:var(--spacingVerticalS) 14px var(--spacingVerticalS) var(--spacingHorizontalS);}`,{p:-1}],[`.f1let0xu{gap:14px;}`,{p:-1}],`.ft8721j{-webkit-padding-start:16px;padding-inline-start:16px;}`]}),Aj=e=>{"use no memo";let t=qA(),n=ZA(),r=kj(),{density:i,icon:a}=e;return e.root.className=A(t,Oj.root,r.root,i===`small`&&r.small,!a&&r.absentIconRootAdjustment,e.root.className),e.icon&&(e.icon.className=A(Oj.icon,n.base,e.icon.className)),e},jj=M.forwardRef((e,t)=>{let n=Tj(e,t);return Aj(n),Qi(`useAppItemStyles_unstable`)(n),Dj(n)});jj.displayName=`AppItem`;var Mj=v(),Nj=Br({container:{display:`flex`,gap:z.spacingHorizontalM,height:`100vh`,overflow:`hidden`},appWrapper:{display:`flex`,gap:z.spacingHorizontalM,height:`100%`,width:`100%`,borderRadius:z.borderRadiusMedium,overflow:`hidden`},content:{flex:1,overflowY:`auto`,height:`100%`,minHeight:0,paddingBottom:z.spacingVerticalXXL},sticky:{position:`sticky`,top:`0`,zIndex:1e3,backgroundColor:z.colorNeutralBackground1},nav:{minWidth:`200px`,height:`100%`,display:`flex`,flexDirection:`column`,"& .fui-NavDrawer":{flex:1,"--fui-NavDrawer-width":`280px`,width:`var(--fui-NavDrawer-width)`,minWidth:`var(--fui-NavDrawer-width)`},'& .fui-NavItem[data-selected="false"] .fui-NavItem__icon svg[data-slot="filled"]':{display:`none`},'& .fui-NavItem[data-selected="true"] .fui-NavItem__icon svg[data-slot="regular"]':{display:`none`}},navCollapsed:{width:`72px`,minWidth:`72px`,"& .fui-NavDrawer":{"--fui-NavDrawer-width":`72px`,width:`72px`,minWidth:`72px`}},navIcon:{fontSize:`24px`},navIconSelected:{fontSize:`24px`,color:z.colorBrandForeground1},themeSwitcher:{display:`flex`,alignItems:`center`,gap:z.spacingHorizontalS,padding:z.spacingHorizontalM,paddingLeft:z.spacingHorizontalL,marginTop:`auto`,borderTop:`1px solid ${z.colorNeutralStroke2}`},themeSwitcherCollapsed:{justifyContent:`center`,paddingLeft:z.spacingHorizontalM},flexColumn:{display:`flex`,flexDirection:`column`,gap:z.spacingVerticalS},flexColumnM:{display:`flex`,flexDirection:`column`,gap:z.spacingVerticalM},flexRow:{display:`flex`,gap:z.spacingHorizontalS},flexRowCentered:{display:`flex`,alignItems:`center`,gap:z.spacingHorizontalS},flexRowSpaceBetween:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,gap:z.spacingHorizontalM},toggleGroup:{display:`flex`,gap:z.spacingHorizontalXS},messageBarContainer:{display:`flex`,alignItems:`center`,gap:z.spacingHorizontalS,width:`100%`},messageBarGroup:{padding:z.spacingHorizontalSNudge,display:`flex`,flexDirection:`column`,marginTop:`5px`,gap:`5px`,overflow:`auto`,flex:1},connectionTag:{marginLeft:`auto`,marginRight:z.spacingHorizontalM,marginTop:z.spacingHorizontalSNudge,flexShrink:0},card:{width:`100%`,maxWidth:`1200px`,marginTop:z.spacingVerticalM,display:`flex`,flexDirection:`column`,overflow:`hidden`},cardBody:{flex:1,minHeight:0,display:`flex`,height:`100%`},cardHeaderContainer:{display:`flex`,flexDirection:`column`,gap:z.spacingVerticalS},cardHeaderRow:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,gap:z.spacingHorizontalM},headerBadgeGroup:{display:`flex`,alignItems:`center`,gap:z.spacingHorizontalS},headerActionGroup:{display:`flex`,gap:z.spacingHorizontalXS,flexWrap:`nowrap`,alignItems:`center`},headerActionButton:{whiteSpace:`nowrap`},lockedSection:{pointerEvents:`none`,opacity:.5,filter:`blur(1px)`,userSelect:`none`},selectorGrid:{display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:z.spacingHorizontalL,alignItems:`start`},selectorColumn:{display:`flex`,flexDirection:`column`,gap:z.spacingVerticalS},subtleBorderedBox:{border:`${z.strokeWidthThin} solid ${z.colorNeutralStroke2}`,borderRadius:z.borderRadiusMedium,padding:z.spacingHorizontalM},filterSubsection:{display:`flex`,flexDirection:`column`,gap:z.spacingVerticalXS,paddingLeft:z.spacingHorizontalM},filterSubsectionLabel:{fontWeight:z.fontWeightSemibold,fontSize:z.fontSizeBase200,color:z.colorNeutralForeground2},filterToggleButton:{width:`100%`,justifyContent:`flex-start`},formGrid:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(300px, 1fr))`,gap:z.spacingVerticalS,padding:z.spacingVerticalXS,flex:1,minHeight:0,height:`100%`,alignContent:`start`},formGridBig:{display:`grid`,gridTemplateColumns:`minmax(340px, 1fr) minmax(420px, 1fr)`,gap:z.spacingVerticalS,padding:z.spacingVerticalXS,alignItems:`start`},formSection:{display:`flex`,flexDirection:`column`,gap:z.spacingVerticalS,flex:1,minHeight:0},fullWidth:{gridColumn:`1 / -1`},twoColumn:{gridColumn:`span 2`},switchColumn:{display:`flex`,flexDirection:`column`,gap:z.spacingVerticalXS,gridColumn:`1 / -1`,alignItems:`flex-start`},switchRow:{display:`flex`,alignItems:`center`},fieldLabelWithToggle:{display:`flex`,alignItems:`center`,gap:z.spacingHorizontalS,flexWrap:`wrap`,minHeight:`32px`},fieldLabelStandard:{display:`inline-flex`,alignItems:`center`,gap:z.spacingHorizontalXS,minHeight:`32px`},fieldLabelClickable:{display:`inline-flex`,alignItems:`center`,gap:z.spacingHorizontalXS,minHeight:`32px`,cursor:`pointer`,"&:hover":{color:z.colorBrandForeground1}},disabledInput:{backgroundColor:z.colorNeutralBackground6},label:{display:`inline-flex`,alignItems:`center`,gap:z.spacingHorizontalXS},semiBoldLabel:{fontWeight:z.fontWeightSemibold},readOnlySwitchLabel:{display:`inline-flex`,alignItems:`center`,gap:z.spacingHorizontalXS},hintText:{margin:0,fontSize:z.fontSizeBase200,color:z.colorNeutralForeground3},hintTextItalic:{display:`flex`,alignItems:`center`,gap:z.spacingHorizontalXS,fontSize:z.fontSizeBase200,fontStyle:`italic`,color:z.colorNeutralForeground3},headingNoMargin:{margin:0},headingActionRow:{display:`flex`,alignItems:`center`,gap:z.spacingHorizontalS,flexWrap:`wrap`},required:{color:z.colorPaletteRedForeground1},badgeContainer:{display:`flex`,gap:z.spacingHorizontalS,flexWrap:`wrap`,marginTop:z.spacingVerticalXS},tag:{border:`none`},tagSelected:{backgroundColor:z.colorNeutralBackground1Selected},tagDisabled:{opacity:1,color:z.colorNeutralForeground1},tagOverflow:{whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},tagOverflowLink:{maxWidth:`100%`,display:`inline-block`},tagpicker:{height:`32px`},tagPickerControl:{minWidth:`200px`,paddingLeft:`3px`,height:`32px`},tagPickerControlDisabled:{backgroundColor:z.colorNeutralBackground3,color:z.colorNeutralForeground1,border:`none`},tagPickerControlEmpty:{paddingLeft:`10px`},tagPickerGroup:{padding:0},tagPickerGroupVisible:{display:`block`},tagPickerGroupHidden:{display:`none`},tagPickerInput:{padding:0},tagPickerOption:{display:`flex`,alignItems:`center`},clearButton:{paddingLeft:0,paddingRight:0,minWidth:`10px`},readOnlySwitch:{pointerEvents:`none`,opacity:1,columnGap:z.spacingHorizontalXS,"& span":{opacity:1}},splitContainer:{minHeight:`400px`,display:`flex`},splitPaneContent:{flex:`1 1 50%`,paddingLeft:z.spacingVerticalM,paddingRight:z.spacingVerticalM},testerContainer:{display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:z.spacingHorizontalS,minHeight:`300px`},testerPanel:{display:`flex`,flexDirection:`column`,minHeight:0,padding:`0 !important`},testerPanelHeader:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,padding:`${z.spacingVerticalS} ${z.spacingHorizontalM}`},testerPanelContent:{flex:1,overflowY:`auto`,overflowX:`hidden`,padding:z.spacingHorizontalM,wordBreak:`break-all`},testerFormSection:{display:`flex`,flexDirection:`column`,gap:z.spacingVerticalS},dialogSurface:{maxWidth:`600px`},dialogContentColumn:{display:`flex`,flexDirection:`column`,gap:z.spacingVerticalL},dialogSection:{display:`flex`,flexDirection:`column`,gap:z.spacingVerticalS},catalogPathContainer:{display:`flex`,alignItems:`center`,gap:z.spacingHorizontalS},summaryRow:{display:`flex`,gap:z.spacingHorizontalS},summaryLabel:{minWidth:`150px`},summaryValue:{wordBreak:`break-word`},dialogChoiceList:{display:`flex`,flexDirection:`column`,gap:z.spacingVerticalS},dialogChoiceButton:{width:`100%`,justifyContent:`flex-start`,height:`auto`,padding:`${z.spacingVerticalS} ${z.spacingHorizontalM}`},dialogChoiceContent:{display:`flex`,flexDirection:`column`,alignItems:`flex-start`,gap:z.spacingVerticalXXS,textAlign:`left`},dialogChoiceTitle:{fontWeight:z.fontWeightSemibold},dialogChoiceMeta:{fontSize:z.fontSizeBase200,color:z.colorNeutralForeground2},dialogChoicePath:{display:`flex`,alignItems:`center`,gap:z.spacingHorizontalXS,flexWrap:`wrap`,fontSize:z.fontSizeBase200,color:z.colorNeutralForeground3},infoBox:{padding:z.spacingVerticalS,backgroundColor:z.colorNeutralBackground3,borderRadius:z.borderRadiusMedium,textAlign:`center`,color:z.colorNeutralForeground3},successBox:{padding:z.spacingVerticalS,backgroundColor:z.colorPaletteGreenBackground1,borderLeft:`4px solid ${z.colorPaletteGreenBorder1}`,borderRadius:z.borderRadiusMedium},errorBox:{padding:z.spacingVerticalS,backgroundColor:z.colorPaletteRedBackground1,borderLeft:`4px solid ${z.colorPaletteRedBorder1}`,borderRadius:z.borderRadiusMedium},loadingContainer:{padding:z.spacingVerticalS,display:`flex`,alignItems:`center`,gap:z.spacingHorizontalM},errorContainer:{padding:z.spacingVerticalM,backgroundColor:z.colorPaletteRedBackground1,borderLeft:`4px solid ${z.colorPaletteRedBorder1}`,borderRadius:z.borderRadiusMedium},errorTitle:{margin:0,fontWeight:z.fontWeightSemibold},errorMessage:{margin:`${z.spacingVerticalS} 0 0 0`},eventLogContainer:{backgroundColor:`#1e1e1e`,color:`#d4d4d4`,padding:z.spacingVerticalM,borderRadius:z.borderRadiusMedium,fontFamily:`'Consolas', 'Monaco', 'Courier New', monospace`,fontSize:`13px`,maxHeight:`300px`,overflowY:`auto`,minHeight:`50px`},eventLogEntry:{padding:z.spacingVerticalS,margin:`${z.spacingVerticalXS} 0`,borderRadius:z.borderRadiusSmall},eventLogTimestamp:{color:`#858585`,fontSize:`11px`,marginRight:`10px`},eventLogEmpty:{color:`#666`,fontStyle:`italic`},deleteButton:{backgroundColor:z.colorPaletteRedBackground3,":hover":{backgroundColor:z.colorPaletteRedBackground3}},dataGridMinWidth:{minWidth:`550px`},listContainer:{width:`450px`,overflow:`auto`},elementVisible:{visibility:`visible`},elementHidden:{visibility:`hidden`,display:`none`},optionLabel:{display:`inline-flex`,alignItems:`center`,gap:z.spacingHorizontalSNudge},icon12:{fontSize:`12px`},icon24:{fontSize:`24px`},icon32:{fontSize:`32px`},jsonViewerWrapper:{overflow:`auto`,wordBreak:`break-all`}}),Pj=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},Fj=(e=>e?Pj(e):Pj),Ij=e=>e;function Lj(e,t=Ij){let n=M.useSyncExternalStore(e.subscribe,M.useCallback(()=>t(e.getState()),[e,t]),M.useCallback(()=>t(e.getInitialState()),[e,t]));return M.useDebugValue(n),n}var Rj=e=>{let t=Fj(e),n=e=>Lj(t,e);return Object.assign(n,t),n},zj=(e=>e?Rj(e):Rj),Bj=[];for(let e=0;e<256;++e)Bj.push((e+256).toString(16).slice(1));function Vj(e,t=0){return(Bj[e[t+0]]+Bj[e[t+1]]+Bj[e[t+2]]+Bj[e[t+3]]+`-`+Bj[e[t+4]]+Bj[e[t+5]]+`-`+Bj[e[t+6]]+Bj[e[t+7]]+`-`+Bj[e[t+8]]+Bj[e[t+9]]+`-`+Bj[e[t+10]]+Bj[e[t+11]]+Bj[e[t+12]]+Bj[e[t+13]]+Bj[e[t+14]]+Bj[e[t+15]]).toLowerCase()}var Hj,Uj=new Uint8Array(16);function Wj(){if(!Hj){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);Hj=crypto.getRandomValues.bind(crypto)}return Hj(Uj)}var Gj={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Kj(e,t,n){e||={};let r=e.random??e.rng?.()??Wj();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return Vj(r)}function qj(e,t,n){return Gj.randomUUID&&!t&&!e?Gj.randomUUID():Kj(e,t,n)}var Jj=Symbol.for(`immer-nothing`),Yj=Symbol.for(`immer-draftable`),Xj=Symbol.for(`immer-state`);function Zj(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Qj=Object,$j=Qj.getPrototypeOf,eM=`constructor`,tM=`prototype`,nM=`configurable`,rM=`enumerable`,iM=`writable`,aM=`value`,oM=e=>!!e&&!!e[Xj];function sM(e){return e?uM(e)||_M(e)||!!e[Yj]||!!e[eM]?.[Yj]||vM(e)||yM(e):!1}var cM=Qj[tM][eM].toString(),lM=new WeakMap;function uM(e){if(!e||!bM(e))return!1;let t=$j(e);if(t===null||t===Qj[tM])return!0;let n=Qj.hasOwnProperty.call(t,eM)&&t[eM];if(n===Object)return!0;if(!xM(n))return!1;let r=lM.get(n);return r===void 0&&(r=Function.toString.call(n),lM.set(n,r)),r===cM}function dM(e,t,n=!0){fM(e)===0?(n?Reflect.ownKeys(e):Qj.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function fM(e){let t=e[Xj];return t?t.type_:_M(e)?1:vM(e)?2:yM(e)?3:0}var pM=(e,t,n=fM(e))=>n===2?e.has(t):Qj[tM].hasOwnProperty.call(e,t),mM=(e,t,n=fM(e))=>n===2?e.get(t):e[t],hM=(e,t,n,r=fM(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function gM(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var _M=Array.isArray,vM=e=>e instanceof Map,yM=e=>e instanceof Set,bM=e=>typeof e==`object`,xM=e=>typeof e==`function`,SM=e=>typeof e==`boolean`;function CM(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var wM=e=>e.copy_||e.base_,TM=e=>e.modified_?e.copy_:e.base_;function EM(e,t){if(vM(e))return new Map(e);if(yM(e))return new Set(e);if(_M(e))return Array[tM].slice.call(e);let n=uM(e);if(t===!0||t===`class_only`&&!n){let t=Qj.getOwnPropertyDescriptors(e);delete t[Xj];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[iM]===!1&&(a[iM]=!0,a[nM]=!0),(a.get||a.set)&&(t[i]={[nM]:!0,[iM]:!0,[rM]:a[rM],[aM]:e[i]})}return Qj.create($j(e),t)}else{let t=$j(e);if(t!==null&&n)return{...e};let r=Qj.create(t);return Qj.assign(r,e)}}function DM(e,t=!1){return AM(e)||oM(e)||!sM(e)?e:(fM(e)>1&&Qj.defineProperties(e,{set:kM,add:kM,clear:kM,delete:kM}),Qj.freeze(e),t&&dM(e,(e,t)=>{DM(t,!0)},!1),e)}function OM(){Zj(2)}var kM={[aM]:OM};function AM(e){return e===null||!bM(e)?!0:Qj.isFrozen(e)}var jM=`MapSet`,MM=`Patches`,NM=`ArrayMethods`,PM={};function FM(e){let t=PM[e];return t||Zj(0,e),t}var IM=e=>!!PM[e],LM,RM=()=>LM,zM=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:IM(jM)?FM(jM):void 0,arrayMethodsPlugin_:IM(NM)?FM(NM):void 0});function BM(e,t){t&&(e.patchPlugin_=FM(MM),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function VM(e){HM(e),e.drafts_.forEach(WM),e.drafts_=null}function HM(e){e===LM&&(LM=e.parent_)}var UM=e=>LM=zM(LM,e);function WM(e){let t=e[Xj];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function GM(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[Xj].modified_&&(VM(t),Zj(4)),sM(e)&&(e=KM(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[Xj].base_,e,t)}else e=KM(t,n);return qM(t,e,!0),VM(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===Jj?void 0:e}function KM(e,t){if(AM(t))return t;let n=t[Xj];if(!n)return tN(t,e.handledSet_,e);if(!YM(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);$M(n,e)}return n.copy_}function qM(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&DM(t,n)}function JM(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var YM=(e,t)=>e.scope_===t,XM=[];function ZM(e,t,n,r){let i=wM(e),a=e.type_;if(r!==void 0&&mM(i,r,a)===t){hM(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;dM(i,(e,n)=>{if(oM(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??XM;for(let e of o)hM(i,e,n,a)}function QM(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!YM(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=TM(i);ZM(e,i.draft_??i,a,n),$M(i,r)})}function $M(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}JM(e)}}function eN(e,t,n){let{scope_:r}=e;if(oM(n)){let i=n[Xj];YM(i,r)&&i.callbacks_.push(function(){lN(e),ZM(e,n,TM(i),t)})}else sM(n)&&e.callbacks_.push(function(){let i=wM(e);e.type_===3?i.has(n)&&tN(n,r.handledSet_,r):mM(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&tN(mM(e.copy_,t,e.type_),r.handledSet_,r)})}function tN(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||oM(e)||t.has(e)||!sM(e)||AM(e)?e:(t.add(e),dM(e,(r,i)=>{if(oM(i)){let t=i[Xj];YM(t,n)&&(hM(e,r,TM(t),e.type_),JM(t))}else sM(i)&&tN(i,t,n)}),e)}function nN(e,t){let n=_M(e),r={type_:+!!n,scope_:t?t.scope_:RM(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=rN;n&&(i=[r],a=iN);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var rN={get(e,t){if(t===Xj)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=wM(e);if(!pM(i,t,e.type_))return oN(e,i,t);let a=i[t];if(e.finalized_||!sM(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&CM(t))return a;if(a===aN(e.base_,t)){lN(e);let n=e.type_===1?+t:t,r=dN(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in wM(e)},ownKeys(e){return Reflect.ownKeys(wM(e))},set(e,t,n){let r=sN(wM(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=aN(wM(e),t),i=r?.[Xj];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(gM(n,r)&&(n!==void 0||pM(e.base_,t,e.type_)))return!0;lN(e),cN(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),eN(e,t,n),!0)},deleteProperty(e,t){return lN(e),aN(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),cN(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=wM(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[iM]:!0,[nM]:e.type_!==1||t!==`length`,[rM]:r[rM],[aM]:n[t]}},defineProperty(){Zj(11)},getPrototypeOf(e){return $j(e.base_)},setPrototypeOf(){Zj(12)}},iN={};for(let e in rN){let t=rN[e];iN[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}iN.deleteProperty=function(e,t){return iN.set.call(this,e,t,void 0)},iN.set=function(e,t,n){return rN.set.call(this,e[0],t,n,e[0])};function aN(e,t){let n=e[Xj];return(n?wM(n):e)[t]}function oN(e,t,n){let r=sN(t,n);return r?aM in r?r[aM]:r.get?.call(e.draft_):void 0}function sN(e,t){if(!(t in e))return;let n=$j(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=$j(n)}}function cN(e){e.modified_||(e.modified_=!0,e.parent_&&cN(e.parent_))}function lN(e){e.copy_||=(e.assigned_=new Map,EM(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var uN=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(xM(e)&&!xM(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}xM(t)||Zj(6),n!==void 0&&!xM(n)&&Zj(7);let r;if(sM(e)){let i=UM(this),a=dN(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?VM(i):HM(i)}return BM(i,n),GM(r,i)}else if(!e||!bM(e)){if(r=t(e),r===void 0&&(r=e),r===Jj&&(r=void 0),this.autoFreeze_&&DM(r,!0),n){let t=[],i=[];FM(MM).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else Zj(1,e)},this.produceWithPatches=(e,t)=>{if(xM(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},SM(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),SM(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),SM(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){sM(e)||Zj(8),oM(e)&&(e=fN(e));let t=UM(this),n=dN(t,e,void 0);return n[Xj].isManual_=!0,HM(t),n}finishDraft(e,t){let n=e&&e[Xj];(!n||!n.isManual_)&&Zj(9);let{scope_:r}=n;return BM(r,t),GM(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=FM(MM).applyPatches_;return oM(e)?r(e,t):this.produce(e,e=>r(e,t))}};function dN(e,t,n,r){let[i,a]=vM(t)?FM(jM).proxyMap_(t,n):yM(t)?FM(jM).proxySet_(t,n):nN(t,n);return(n?.scope_??RM()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?QM(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function fN(e){return oM(e)||Zj(10,e),pN(e)}function pN(e){if(!sM(e)||AM(e))return e;let t=e[Xj],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=EM(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=EM(e,!0);return dM(n,(e,t)=>{hM(n,e,pN(t))},r),t&&(t.finalized_=!1),n}var mN=new uN().produce,hN={defaultPublisherId:null,requestParameterDefaultName:`{customapiname}-In-{uniquename}`,responsePropertyDefaultName:`{customapiname}-Out-{uniquename}`,customApiSelectionInit:`all`,businessEventSelectionInit:`all`,showDebug:!1,showCustomApiDetailsTreeView:!1};async function gN(e){return vN(await window.toolboxAPI.settings.getAll(),e)}var _N=(e,t,n)=>{let r=`${t}_${n}`;return r in e?e[r]:null};function vN(e,t){let n=(e,t)=>e===`managed`||e===`unmanaged`||e===`all`?e:t;return{defaultPublisherId:_N(e,`defaultPublisherId`,t)??hN.defaultPublisherId,requestParameterDefaultName:e.requestParameterDefaultName??hN.requestParameterDefaultName,responsePropertyDefaultName:e.responsePropertyDefaultName??hN.responsePropertyDefaultName,customApiSelectionInit:n(e.customApiSelectionInit,hN.customApiSelectionInit),businessEventSelectionInit:n(e.businessEventSelectionInit,hN.businessEventSelectionInit),showDebug:typeof e.showDebug==`boolean`?e.showDebug:e.showDebug===`true`?!0:hN.showDebug,showCustomApiDetailsTreeView:typeof e.showCustomApiDetailsTreeView==`boolean`?e.showCustomApiDetailsTreeView:e.showCustomApiDetailsTreeView===`true`?!0:hN.showCustomApiDetailsTreeView}}async function yN(e,t,n){let r=e;e===`defaultPublisherId`&&(r=`defaultPublisherId_${n}`),await window.toolboxAPI.settings.set(r,t)}var bN=(e,t)=>t===`customapi`?e===`customapi`||e===`customapitester`:e===`businessevent`,U=zj((e,t)=>({connection:null,isLoadingConnection:!0,instanceId:qj(),logs:[],globalMessages:{},selectedSolutionId:null,selectedCustomApiId:null,selectedCatalogId:null,selectedRequestParameterId:null,selectedResponsePropertyId:null,selectedPublisherId:null,pendingBusinessEventAssignmentId:null,pendingBusinessEventCatalogId:null,currentCustomApiSelectionInit:hN.customApiSelectionInit,currentBusinessEventSelectionInit:hN.businessEventSelectionInit,pendingManagedFilterHandoff:null,selectedNavItem:`customapi`,editingComponent:`none`,theme:`light`,initTheme:async()=>{e({theme:await window.toolboxAPI.utils.getCurrentTheme()})},toggleTheme:()=>e(e=>({theme:e.theme===`light`?`dark`:`light`})),setConnection:n=>{let r=t().connection?.id,i=n?.id,a=t().addLog;r===i?e({connection:n}):(e({connection:n,selectedSolutionId:null,selectedCustomApiId:null,selectedCatalogId:null,selectedRequestParameterId:null,selectedResponsePropertyId:null,selectedPublisherId:null,pendingBusinessEventAssignmentId:null,pendingBusinessEventCatalogId:null,currentCustomApiSelectionInit:hN.customApiSelectionInit,currentBusinessEventSelectionInit:hN.businessEventSelectionInit,pendingManagedFilterHandoff:null}),n?a(`Connected to ${n.name} (${n.url})`,`info`):a(`No active connection detected`,`warning`))},setIsLoadingConnection:t=>e({isLoadingConnection:t}),refreshConnection:async()=>{try{e({isLoadingConnection:!0});let t=await window.toolboxAPI.connections.getActiveConnection();!t||!t.id?e({connection:null}):e({connection:t})}catch{e({connection:null})}finally{e({isLoadingConnection:!1})}},setSelectedSolutionId:t=>e({selectedSolutionId:t}),setSelectedCustomApiId:t=>e({selectedCustomApiId:t}),setSelectedCatalogId:t=>e({selectedCatalogId:t}),setSelectedRequestParameterId:t=>e(e=>e.selectedRequestParameterId===t?e:{selectedRequestParameterId:t}),setSelectedResponsePropertyId:t=>e(e=>e.selectedResponsePropertyId===t?e:{selectedResponsePropertyId:t}),setSelectedPublisherId:t=>e({selectedPublisherId:t}),setPendingBusinessEventAssignmentId:t=>e(e=>e.pendingBusinessEventAssignmentId===t?e:{pendingBusinessEventAssignmentId:t}),setPendingBusinessEventCatalogId:t=>e(e=>e.pendingBusinessEventCatalogId===t?e:{pendingBusinessEventCatalogId:t}),setCurrentCustomApiSelectionInit:t=>e(e=>e.currentCustomApiSelectionInit===t?e:{currentCustomApiSelectionInit:t}),setCurrentBusinessEventSelectionInit:t=>e(e=>e.currentBusinessEventSelectionInit===t?e:{currentBusinessEventSelectionInit:t}),setPendingManagedFilterHandoff:t=>e(e=>e.pendingManagedFilterHandoff?.target===t?.target&&e.pendingManagedFilterHandoff?.value===t?.value?e:{pendingManagedFilterHandoff:t}),setSelectedNavItem:t=>e(e=>({selectedNavItem:t,editingComponent:`none`,pendingBusinessEventAssignmentId:t===`businessevent`?e.pendingBusinessEventAssignmentId:null,pendingBusinessEventCatalogId:t===`businessevent`?e.pendingBusinessEventCatalogId:null,pendingManagedFilterHandoff:e.pendingManagedFilterHandoff&&bN(t,e.pendingManagedFilterHandoff.target)?e.pendingManagedFilterHandoff:null})),setEditingComponent:t=>e(e=>e.editingComponent===t?e:{editingComponent:t}),addLog:(t,n=`info`)=>{let r={timestamp:new Date,message:t,type:n};e(e=>({logs:[r,...e.logs].slice(0,1e3)})),console.log(`[${n.toUpperCase()}] ${t}`)},clearLogs:()=>e({logs:[]}),setGlobalMessage:(t,n)=>e(mN(e=>{n===null?delete e.globalMessages[t]:e.globalMessages[t]=n})),clearGlobalMessage:t=>e(e=>{if(!(t in e.globalMessages))return e;let n={...e.globalMessages};return delete n[t],{...e,globalMessages:n}}),clearAllGlobalMessages:()=>e({globalMessages:{}})})),xN=e=>{switch(e){case`error`:return{borderColor:`#dc3545`,backgroundColor:`#3d2d2e`};case`success`:return{borderColor:`#28a745`,backgroundColor:`#2d3d2e`};case`warning`:return{borderColor:`#ffc107`,backgroundColor:`#3d3d2e`};default:return{borderColor:`#667eea`,backgroundColor:`#2d2d30`}}},SN=()=>{let e=Nj(),{logs:t,clearLogs:n}=U();return(0,N.jsxs)(MT,{className:e.card,children:[(0,N.jsx)(RT,{header:(0,N.jsx)(`h3`,{children:`📋 Event Log`}),action:(0,N.jsx)(K_,{appearance:`secondary`,icon:(0,N.jsx)(fp,{}),onClick:n,children:`Clear Log`})}),(0,N.jsx)(Ry,{}),(0,N.jsx)(`div`,{className:e.eventLogContainer,children:t.length===0?(0,N.jsx)(`div`,{className:e.eventLogEmpty,children:`No logs yet...`}):t.map((t,n)=>{let r=xN(t.type);return(0,N.jsxs)(`div`,{className:e.eventLogEntry,style:{borderLeft:`3px solid ${r.borderColor}`,backgroundColor:r.backgroundColor},children:[(0,N.jsxs)(`span`,{className:e.eventLogTimestamp,children:[`[`,t.timestamp.toLocaleTimeString(),`]`]}),(0,N.jsx)(`span`,{children:t.message})]},n)})})]})},CN=()=>{let{refreshConnection:e}=U();(0,M.useEffect)(()=>{e()},[])},wN=()=>{let e=U(e=>e.addLog),t=U(e=>e.refreshConnection);(0,M.useEffect)(()=>(window.toolboxAPI.events.on((n,r)=>{switch(console.log(`📡 useToolboxEvents: Event received:`,n,r),r.event){case`connection:updated`:case`connection:created`:case`connection:deleted`:console.log(`Connection event detected, refreshing connection...`),e(`Toolbox Event: ${JSON.stringify(r)}`,`info`),t();break;default:console.log(`Unhandled event: ${r.event}`,r.data);break}}),()=>{}),[])},TN=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},EN=new class extends TN{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},DN={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ON=new class{#e=DN;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function kN(e){setTimeout(e,0)}var AN=typeof window>`u`||`Deno`in globalThis;function jN(){}function MN(e,t){return typeof e==`function`?e(t):e}function NN(e){return typeof e==`number`&&e>=0&&e!==1/0}function PN(e,t){return Math.max(e+(t||0)-Date.now(),0)}function FN(e,t){return typeof e==`function`?e(t):e}function IN(e,t){return typeof e==`function`?e(t):e}function LN(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==zN(o,t.options))return!1}else if(!VN(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function RN(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(BN(t.options.mutationKey)!==BN(a))return!1}else if(!VN(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function zN(e,t){return(t?.queryKeyHashFn||BN)(e)}function BN(e){return JSON.stringify(e,(e,t)=>KN(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function VN(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>VN(e[n],t[n])):!1}var HN=Object.prototype.hasOwnProperty;function UN(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=GN(e)&&GN(t);if(!r&&!(KN(e)&&KN(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:HN.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=UN(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function WN(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function GN(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function KN(e){if(!qN(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!qN(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function qN(e){return Object.prototype.toString.call(e)===`[object Object]`}function JN(e){return new Promise(t=>{ON.setTimeout(t,e)})}function YN(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:UN(e,t)}function XN(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function ZN(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var QN=Symbol();function $N(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===QN?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function eP(e,t){return typeof e==`function`?e(...t):!!e}function tP(e,t,n){let r=!1,i;return Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var nP=(()=>{let e=()=>AN;return{isServer(){return e()},setIsServer(t){e=t}}})();function rP(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var iP=kN;function aP(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=iP,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var oP=aP(),sP=new class extends TN{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function cP(e){return Math.min(1e3*2**e,3e4)}function lP(e){return(e??`online`)===`online`?sP.isOnline():!0}var uP=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function dP(e){let t=!1,n=0,r,i=rP(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new uP(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>EN.isFocused()&&(e.networkMode===`always`||sP.isOnline())&&e.canRun(),u=()=>lP(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(nP.isServer()?0:3),o=e.retryDelay??cP,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),JN(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var fP=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),NN(this.gcTime)&&(this.#e=ON.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(nP.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(ON.clearTimeout(this.#e),this.#e=void 0)}};function pP(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{tP(e,()=>t.signal,()=>n=!0)},u=$N(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?ZN:XN;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?hP:mP,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:mP(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function mP(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function hP(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var gP=class extends fP{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=yP(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=yP(this.options);e.data!==void 0&&(this.setState(vP(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=YN(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(jN).catch(jN):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>IN(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===QN||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>FN(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!PN(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=$N(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?pP(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=dP({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof uP&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof uP){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,..._P(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...vP(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}})(this.state),oP.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function _P(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:lP(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function vP(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function yP(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var bP=class extends TN{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=rP(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),SP(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return CP(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return CP(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof IN(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!WN(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&wP(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||IN(this.options.enabled,this.#t)!==IN(t.enabled,this.#t)||FN(this.options.staleTime,this.#t)!==FN(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||IN(this.options.enabled,this.#t)!==IN(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return EP(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(jN)),t}#g(){this.#b();let e=FN(this.options.staleTime,this.#t);if(nP.isServer()||this.#r.isStale||!NN(e))return;let t=PN(this.#r.dataUpdatedAt,e)+1;this.#d=ON.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(nP.isServer()||IN(this.options.enabled,this.#t)===!1||!NN(this.#p)||this.#p===0)&&(this.#f=ON.setInterval(()=>{(this.options.refetchIntervalInBackground||EN.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(ON.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(ON.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&SP(e,t),o=i&&wP(e,n,t,r);(a||o)&&(l={...l,..._P(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=YN(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=YN(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:TP(e,t),refetch:this.refetch,promise:this.#o,isEnabled:IN(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{i(this.#o=x.promise=rP())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a();break}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!WN(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){oP.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function xP(e,t){return IN(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&IN(t.retryOnMount,e)===!1)}function SP(e,t){return xP(e,t)||e.state.data!==void 0&&CP(e,t,t.refetchOnMount)}function CP(e,t,n){if(IN(t.enabled,e)!==!1&&FN(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&TP(e,t)}return!1}function wP(e,t,n,r){return(e!==t||IN(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&TP(e,n)}function TP(e,t){return IN(t.enabled,e)!==!1&&e.isStaleByTime(FN(t.staleTime,e))}function EP(e,t){return!WN(e.getCurrentResult(),t)}var DP=class extends fP{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||OP(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=dP({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}})(this.state),oP.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function OP(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var kP=class extends TN{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new DP({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=AP(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=AP(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=AP(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=AP(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){oP.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>RN(t,e))}findAll(e={}){return this.getAll().filter(t=>RN(e,t))}notify(e){oP.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return oP.batch(()=>Promise.all(e.map(e=>e.continue().catch(jN))))}};function AP(e){return e.options.scope?.id}var jP=class extends TN{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),WN(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&BN(t.mutationKey)!==BN(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??OP();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){oP.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},MP=class extends TN{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??zN(r,t),a=this.get(i);return a||(a=new gP({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){oP.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>LN(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>LN(e,t)):t}notify(e){oP.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){oP.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){oP.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},NP=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new MP,this.#t=e.mutationCache||new kP,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=EN.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=sP.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(FN(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=MN(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return oP.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;oP.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return oP.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=oP.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(jN).catch(jN)}invalidateQueries(e,t={}){return oP.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=oP.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(jN)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(jN)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(FN(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(jN).catch(jN)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(jN).catch(jN)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return sP.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(BN(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{VN(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(BN(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{VN(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=zN(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===QN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},PP=M.createContext(void 0),FP=e=>{let t=M.useContext(PP);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},IP=({client:e,children:t})=>(M.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,N.jsx)(PP.Provider,{value:e,children:t})),LP=M.createContext(!1),RP=()=>M.useContext(LP);LP.Provider;function zP(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var BP=M.createContext(zP()),VP=()=>M.useContext(BP),HP=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?eP(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},UP=e=>{M.useEffect(()=>{e.clearReset()},[e])},WP=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||eP(n,[e.error,r])),GP=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},KP=(e,t)=>e.isLoading&&e.isFetching&&!t,qP=(e,t)=>e?.suspense&&t.isPending,JP=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function YP(e,t,n){let r=RP(),i=VP(),a=FP(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,GP(o),HP(o,i,s),UP(i);let l=!a.getQueryCache().get(o.queryHash),[u]=M.useState(()=>new t(a,o)),d=u.getOptimisticResult(o),f=!r&&c;if(M.useSyncExternalStore(M.useCallback(e=>{let t=f?u.subscribe(oP.batchCalls(e)):jN;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),M.useEffect(()=>{u.setOptions(o)},[o,u]),qP(o,d))throw JP(o,u,i);if(WP({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw d.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!nP.isServer()&&KP(d,r)&&(l?JP(o,u,i):s?.promise)?.catch(jN).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?d:u.trackResult(d)}function XP(e,t){return YP(e,bP,t)}function ZP(e,t){let n=FP(t),[r]=M.useState(()=>new jP(n,e));M.useEffect(()=>{r.setOptions(e)},[r,e]);let i=M.useSyncExternalStore(M.useCallback(e=>r.subscribe(oP.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=M.useCallback((e,t)=>{r.mutate(e,t).catch(jN)},[r]);if(i.error&&eP(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var QP=class{componenttype;getOdataLookupTemplate(e){return e?`${this.entityCollectionName}(${e})`:null}async deleteRecord(e){return await window.dataverseAPI.delete(this.entityName,e),{deleted:!0}}async addToSolution(e,t){if(!this.componenttype)throw Error(`Component type is not defined for this entity service.`);await window.dataverseAPI.execute({operationName:`AddSolutionComponent`,operationType:`action`,parameters:{ComponentId:e,ComponentType:this.componenttype,SolutionUniqueName:t,AddRequiredComponents:!1,DoNotIncludeSubcomponents:!1,IncludedComponentSettingsValues:null}})}},$P={_plugintypeid_value:[`PluginTypeId`,new class extends QP{entityName=`plugintype`;entityCollectionName=`plugintypes`}]},eF={0:`None`,1:`AsyncOnly`,2:`SyncandAsync`},tF={0:(0,M.createElement)(Pf),1:(0,M.createElement)(ff),2:(0,M.createElement)(pf)},nF=()=>Object.entries(eF).map(([e,t])=>({id:Number(e).toString(),displayText:t,image:tF[e]??null})),rF={0:(0,M.createElement)(Ld),1:(0,M.createElement)(Sf),2:(0,M.createElement)(Cf)},iF={0:`Global`,1:`Entity`,2:`EntityCollection`},aF=()=>Object.entries(iF).map(([e,t])=>({id:Number(e).toString(),displayText:t,image:rF[e]??null})),oF={uniquename:``,name:``,displayname:``,description:``,allowedcustomprocessingsteptype:0,bindingtype:0,boundentitylogicalname:``,workflowsdkstepenabled:!1,isfunction:!1,executeprivilegename:``,_plugintypeid_value:``,isprivate:!1},sF=e=>e?.trim?.()||null,cF=(e,t={})=>{let n={},r=new Set(t.skipKeys??[]);return Object.keys(e).forEach(i=>{if(r.has(i))return;let a=e[i],o=i;if(typeof a==`string`){let e=sF(a);if(t.lookupKeys&&t.lookupKeys[i]){let n=t.lookupKeys[i][1];o=`${t.lookupKeys[i][0]}@odata.bind`,e=n.getOdataLookupTemplate(e)}n[o]=e}else n[o]=a}),n},lF=(e,t,n={})=>{let r={},i=new Set(n.skipKeys??[]);return Object.keys(t).forEach(a=>{if(i.has(a))return;let o=t[a];if(o===e[a])return;let s=a;if(typeof o==`string`){let e=sF(o);if(n.lookupKeys&&n.lookupKeys[a]){let t=n.lookupKeys[a][1];s=`${n.lookupKeys[a][0]}@odata.bind`,e=t.getOdataLookupTemplate(e)}r[s]=e}else r[s]=o}),r},uF=class extends QP{entityName=`customapi`;entityCollectionName=`customapis`;componenttype=10020;async fetchAllCustomApi(){return(await window.dataverseAPI.queryData(this.entityCollectionName)).value}async fetchSolutionCustomApi(e){return(await window.dataverseAPI.fetchXmlQuery(`
12
+ <fetch>
13
+ <entity name='customapi'>
14
+ <link-entity name='solutioncomponent' from='objectid' to='customapiid' link-type='inner' alias='sc'>
15
+ <filter>
16
+ <condition attribute='solutionid' operator='eq' value='${e}' />
17
+ </filter>
18
+ </link-entity>
19
+ </entity>
20
+ </fetch>
21
+ `)).value}async createCustomApi(e,t){let n=cF(e,{lookupKeys:$P}),r=await window.dataverseAPI.create(this.entityName,n);return t&&r.id&&await this.addToSolution(r.id,t),{created:!0,payload:n,id:r.id}}async updateCustomApi(e,t){let n=lF(e,t,{lookupKeys:$P});return Object.keys(n).length===0?{updated:!1,payload:n}:(await window.dataverseAPI.update(this.entityName,e.customapiid,n),{updated:!0,payload:n})}},dF=new uF,fF=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.key=t,e.defineQueryKeys=o;function t(e){return(...t)=>t.length===0?()=>e():e(...t)}var n={},r=new Set;function i(e){let t={};for(let n in e){let r=e[n];typeof r==`function`?t[n]=r:r&&typeof r==`object`&&(t[n]=i(r))}return t}function a(e,t){for(let[r,i]of Object.entries(t)){let t=`${e}.${r}`;typeof i==`function`?n[t]=i:i&&typeof i==`object`&&a(t,i)}}function o(e,t){if(r.has(e))return i(t);r.add(e);let n=i(t);return a(e,n),n}}))(),pF=(0,fF.defineQueryKeys)(`keys`,{appsettings:(0,fF.key)((e,t)=>[`appsettings`,t,e]),customapis:(0,fF.key)((e,t,n)=>[`customapis`,t,e,n]),catalogs:(0,fF.key)((e,t,n)=>[`catalogs`,t,e,n]),catalogChildren:(0,fF.key)((e,t,n)=>[`catalogchildren`,n,t,e]),catalogassignments:(0,fF.key)((e,t,n)=>[`catalogassignments`,t,e,n]),catalogassignmentsByCatalog:(0,fF.key)((e,t,n)=>[`catalogassignmentsbycatalog`,n,t,e]),requestparameters:(0,fF.key)((e,t,n)=>[`customapirequestparameters`,n,t,e]),responseproperties:(0,fF.key)((e,t,n)=>[`customapiresponseproperties`,n,t,e]),plugintypes:(0,fF.key)((e,t)=>[`plugintypes`,t,e]),privileges:(0,fF.key)((e,t)=>[`privileges`,t,e]),publishers:(0,fF.key)((e,t)=>[`publishers`,t,e]),solutions:(0,fF.key)((e,t)=>[`solutions`,t,e]),solutioncomponents:(0,fF.key)((e,t)=>[`solutioncomponents`,t,e]),entities:(0,fF.key)((e,t)=>[`entities`,t,e]),workflows:(0,fF.key)((e,t)=>[`workflows`,t,e]),fxexpressions:(0,fF.key)((e,t)=>[`fxexpressions`,t,e]),metadata:(0,fF.key)((e,t,n)=>[`metadata`,n,t,e]),entityRecords:(0,fF.key)((e,t,n)=>[`entityRecords`,n,t,e]),entityAttributes:(0,fF.key)((e,t,n)=>[`entityAttributes`,n,t,e]),optionSetValues:(0,fF.key)((e,t,n,r)=>[`optionSetValues`,r,n,e,t]),fxexpression:(0,fF.key)((e,t,n)=>[`fxexpression`,n,t,e])}),mF=e=>window.toolboxAPI.utils.showNotification(e),hF=e=>{let{connection:t,isLoadingConnection:n,instanceId:r}=U(),i=e??``,{data:a,status:o,error:s,isFetching:c}=XP({queryKey:pF.customapis(t?.id??``,r,i),queryFn:async()=>i===``?await dF.fetchAllCustomApi():await dF.fetchSolutionCustomApi(i),enabled:!!t&&!n,staleTime:1/0});return{customapis:a||[],status:o,error:s,isFetching:c}},gF=()=>{let{selectedSolutionId:e}=U();return hF(e)},_F=()=>hF(null),vF=()=>{let e=FP(),{addLog:t}=U(),{connection:n,instanceId:r,selectedSolutionId:i}=U();return ZP({mutationFn:async({next:e,solutionUniqueName:n})=>{try{let r=await dF.createCustomApi(e,n);return t(`Custom API '${e.uniquename}' created successfully${n?` in solution '${n}'`:``}`,`success`),mF({title:`Custom API Created`,body:`'${e.uniquename}' created successfully`,type:`success`,duration:3e3}),r}catch(e){throw console.error(`Error creating Custom API`,e),t(`Failed to create Custom API. ${e}`,`error`),mF({title:`Creation Failed`,body:`Failed to create Custom API. ${e}`,type:`error`,duration:5e3}),e}},onSuccess:()=>{e.invalidateQueries({queryKey:pF.customapis(n?.id??``,r,i??``)}),i&&e.invalidateQueries({queryKey:pF.customapis(n?.id??``,r,``)})}})},yF=()=>{let e=FP(),{addLog:t}=U(),{connection:n,instanceId:r,selectedSolutionId:i}=U();return ZP({mutationFn:async({current:e,next:n})=>{try{let r=await dF.updateCustomApi(e,n);return r.updated?(t(`Custom API '${e.uniquename}' updated successfully`,`success`),mF({title:`Custom API Updated`,body:`'${e.uniquename}' updated successfully`,type:`success`,duration:3e3}),r):(t(`No changes to save`,`warning`),mF({title:`No Changes`,body:`No changes to save`,type:`warning`,duration:3e3}),r)}catch(e){throw console.error(`Error saving Custom API`,e),t(`Failed to save Custom API changes. ${e}`,`error`),mF({title:`Update Failed`,body:`Failed to save Custom API changes. ${e}`,type:`error`,duration:5e3}),e}},onSuccess:()=>{e.invalidateQueries({queryKey:pF.customapis(n?.id??``,r,i??``)}),i&&e.invalidateQueries({queryKey:pF.customapis(n?.id??``,r,``)})}})},bF=()=>{let e=FP(),{addLog:t}=U(),{connection:n,instanceId:r,selectedSolutionId:i}=U();return ZP({mutationFn:async({customApi:e})=>{try{let n=await dF.deleteRecord(e.customapiid);return t(`Custom API '${e.uniquename}' deleted successfully`,`success`),mF({title:`Custom API Deleted`,body:`'${e.uniquename}' deleted successfully`,type:`success`,duration:3e3}),n}catch(e){throw console.error(`Error deleting Custom API`,e),t(`Failed to delete Custom API. ${e}`,`error`),mF({title:`Deletion Failed`,body:`Failed to delete Custom API. ${e}`,type:`error`,duration:5e3}),e}},onSuccess:()=>{e.invalidateQueries({queryKey:pF.customapis(n?.id??``,r,i??``)}),i&&e.invalidateQueries({queryKey:pF.customapis(n?.id??``,r,``)})}})},xF=(e,t=15)=>{let[n,r]=(0,M.useState)([]),i=(0,M.useCallback)(e=>{if(!e.current)return 0;let t=e.current.style.minWidth;e.current.style.minWidth=`0px`;let n=e.current.getBoundingClientRect().width;return e.current.style.minWidth=t,n},[]),a=(0,M.useCallback)(()=>{let n=e.map(e=>{if(!e.length)return 0;let n=e.reduce((e,t)=>{let n=i(t);return n>e?n:e},0);return n?Math.ceil(n+t):0});r(e=>e.length===n.length&&e.every((e,t)=>e===n[t])?e:n)},[i,t,e]);return(0,M.useLayoutEffect)(()=>{a()},[a]),(0,M.useEffect)(()=>(window.addEventListener(`resize`,a),()=>{window.removeEventListener(`resize`,a)}),[a]),n},SF=({api:e})=>{let t=Nj(),n=(0,M.useRef)(null),r=(0,M.useRef)(null),i=(0,M.useRef)(null),[a,o]=xF((0,M.useMemo)(()=>[[n,r],[i]],[])),s=a?{minWidth:`${a}px`}:void 0,c=o?{minWidth:`${o}px`}:void 0;return(0,N.jsxs)(`div`,{className:t.formGrid,children:[(0,N.jsx)(`div`,{className:t.formSection,children:(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:t.fieldLabelStandard,children:[`Unique Name `,(0,N.jsx)(Yf,{})]}),children:(0,N.jsx)(H,{value:e.uniquename||``,readOnly:!0,appearance:`filled-darker`})})}),(0,N.jsx)(`div`,{className:t.formSection,children:(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:t.fieldLabelStandard,children:`Name`}),children:(0,N.jsx)(H,{value:e.name||``,readOnly:!0,appearance:`filled-darker`})})}),(0,N.jsx)(`div`,{className:t.formSection,children:(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:t.fieldLabelStandard,children:`Display Name`}),children:(0,N.jsx)(H,{value:e.displayname||``,readOnly:!0,appearance:`filled-darker`})})}),(0,N.jsx)(`div`,{className:A(t.formSection,t.fullWidth),children:(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:t.fieldLabelStandard,children:`Description`}),children:(0,N.jsx)(cx,{value:e.description||``,readOnly:!0,spellCheck:!1,appearance:`filled-darker`,resize:`vertical`,rows:2})})}),(0,N.jsx)(`div`,{className:t.formSection,children:(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:t.fieldLabelStandard,children:[`Allowed Custom Processing Step Type `,(0,N.jsx)(Yf,{})]}),children:(0,N.jsx)(H,{contentBefore:tF[e.allowedcustomprocessingsteptype],value:eF[e.allowedcustomprocessingsteptype],readOnly:!0,appearance:`filled-darker`})})}),(0,N.jsx)(`div`,{className:t.formSection,children:(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:t.fieldLabelStandard,children:[`Binding Type `,(0,N.jsx)(Yf,{})]}),children:(0,N.jsx)(H,{contentBefore:rF[e.bindingtype],value:iF[e.bindingtype],readOnly:!0,appearance:`filled-darker`})})}),(e.bindingtype===1||e.bindingtype===2)&&(0,N.jsx)(`div`,{className:t.formSection,children:(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:t.fieldLabelStandard,children:[`Bound Entity Logical Name `,(0,N.jsx)(Yf,{})]}),children:(0,N.jsx)(H,{value:e.boundentitylogicalname||``,readOnly:!0,appearance:`filled-darker`})})}),(0,N.jsx)(`div`,{className:A(t.formSection,t.twoColumn),children:(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:t.fieldLabelStandard,children:`Plugin Type`}),children:(0,N.jsx)(H,{value:e[`_plugintypeid_value@OData.Community.Display.V1.FormattedValue`],readOnly:!0,appearance:`filled-darker`})})}),(0,N.jsx)(`div`,{className:t.formSection,children:(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:t.fieldLabelStandard,children:`Execute Privilege Name`}),children:(0,N.jsx)(H,{value:e.executeprivilegename||``,readOnly:!0,appearance:`filled-darker`})})}),(0,N.jsx)(`div`,{className:t.formSection,children:(0,N.jsxs)(`div`,{className:t.switchColumn,children:[(0,N.jsx)(k_,{content:e.isfunction?`True`:`False`,relationship:`description`,positioning:`above-end`,children:(0,N.jsx)(`div`,{className:t.switchRow,children:(0,N.jsx)(qb,{checked:e.isfunction,"aria-disabled":!0,tabIndex:-1,className:t.readOnlySwitch,label:(0,N.jsxs)(`span`,{ref:n,className:t.readOnlySwitchLabel,style:s,children:[(0,N.jsx)(`span`,{children:`Is Function`}),(0,N.jsx)(Yf,{})]}),labelPosition:`before`})})}),(0,N.jsx)(k_,{content:e.workflowsdkstepenabled?`True`:`False`,relationship:`description`,positioning:`above-end`,children:(0,N.jsx)(`div`,{className:t.switchRow,children:(0,N.jsx)(qb,{checked:e.workflowsdkstepenabled,"aria-disabled":!0,tabIndex:-1,className:t.readOnlySwitch,label:(0,N.jsxs)(`span`,{ref:r,className:t.readOnlySwitchLabel,style:s,children:[(0,N.jsx)(`span`,{children:`Workflow SDK Step Enabled`}),(0,N.jsx)(Yf,{})]}),labelPosition:`before`})})})]})}),(0,N.jsx)(`div`,{className:t.formSection,children:(0,N.jsx)(`div`,{className:t.switchColumn,children:(0,N.jsx)(k_,{content:e.isprivate?`True`:`False`,relationship:`description`,positioning:`above-end`,children:(0,N.jsx)(`div`,{className:t.switchRow,children:(0,N.jsx)(qb,{checked:e.isprivate,"aria-disabled":!0,tabIndex:-1,className:t.readOnlySwitch,label:(0,N.jsx)(`span`,{ref:i,className:t.readOnlySwitchLabel,style:c,children:`Is Private`}),labelPosition:`before`})})})})})]})},CF=({items:e,initialValue:t,isDisabled:n,onSelect:r})=>{let[i,a]=(0,M.useState)(``),[o,s]=(0,M.useState)(!1),[c,l]=(0,M.useState)(!1),[u,d]=(0,M.useState)(t),f=Nj(),p=(0,M.useRef)(null),m=(0,M.useRef)(r);(0,M.useEffect)(()=>{m.current=r});let h=(0,M.useMemo)(()=>new Map(e.map(e=>[e.id,e])),[e]);(0,M.useEffect)(()=>{d(e=>e===t?e:t)},[t]),(0,M.useEffect)(()=>{if(!u){p.current=null;return}if(e.length===0||h.has(u)){p.current=null;return}p.current!==u&&(p.current=u,d(e=>e===u?void 0:e),m.current?.(null,void 0))},[e.length,h,u]);let g=u?h.get(u):void 0,_=(0,M.useMemo)(()=>u?[u]:[],[u]),v=()=>{a(``),l(!1)},y=e=>{l(e.target.value!=``),a(e.target.value)},b=e=>{d(void 0),m.current?.(null,void 0)},x=(e,t)=>{if(t.value===`no-matches`){a(``),l(!1);return}if(t.value===void 0||t.value===`-1`)d(void 0),m.current?.(null,void 0);else{d(t.value);let e=h.get(t.value);m.current?.(t.value,e)}a(``),l(!1)},S=LA({query:i,options:e.map(e=>e.id),noOptionsElement:(0,N.jsx)(EA,{value:`no-matches`,children:`'**no match**'`}),renderOption:e=>(0,N.jsx)(EA,{className:A(f.tagPickerOption,e===u?f.tagSelected:``),media:h.get(e)?.image?(0,M.cloneElement)(h.get(e).image,{className:f.icon24}):null,text:h.get(e)?.displayText??``,value:e,children:h.get(e)?.displayText},e),filter:e=>h.get(e)?.displayText.toLowerCase().includes(i.toLowerCase())??!1});return(0,N.jsx)(`div`,{className:f.tagpicker,children:(0,N.jsxs)(Gk,{onOptionSelect:x,selectedOptions:_,appearance:`filled-darker`,disabled:n,children:[(0,N.jsxs)(_A,{className:A(f.tagPickerControl,u?``:f.tagPickerControlEmpty,n?f.tagPickerControlDisabled:``),onMouseEnter:()=>{s(!0)},onMouseLeave:()=>{s(!1)},expandIcon:(0,N.jsx)(sp,{className:o?f.elementVisible:f.elementHidden}),secondaryAction:u?(0,N.jsx)(K_,{className:A(f.clearButton,o?f.elementVisible:f.elementHidden),appearance:`transparent`,size:`small`,shape:`rounded`,onClick:b,icon:(0,N.jsx)(jf,{})}):null,children:[u&&(0,N.jsx)(FA,{className:A(f.tagPickerGroup,c?f.tagPickerGroupHidden:f.tagPickerGroupVisible),children:(0,N.jsx)(OD,{className:A(f.tag,n?f.tagDisabled:``),shape:`rounded`,size:`medium`,appearance:`outline`,media:g?.image?(0,M.cloneElement)(g.image,{className:f.icon24}):null,value:u,title:g?.displayText,dismissible:!1,primaryText:{className:f.tagOverflow},color:`brand`,children:g?.displayText},u)}),(0,N.jsx)(eA,{className:f.tagPickerInput,value:i,onChange:y,onBlur:v,clearable:!0})]}),(0,N.jsx)(oA,{children:S})]})})},wF=()=>{let e=U(e=>e.connection),t=U(e=>e.isLoadingConnection),n=U(e=>e.instanceId),{data:r,status:i,error:a,isFetching:o}=XP({queryKey:pF.privileges(e?.id??``,n),queryFn:async()=>window.dataverseAPI.queryData(`privileges?$select=privilegeid,name`),enabled:!!e&&!t,staleTime:1/0});return{privileges:r?.value||[],status:i,error:a,isFetching:o}},TF=()=>{let e=U(e=>e.connection),t=U(e=>e.isLoadingConnection),n=U(e=>e.instanceId),{data:r,status:i,error:a,isFetching:o}=XP({queryKey:pF.plugintypes(e?.id??``,n),queryFn:async()=>{let e=window.dataverseAPI.queryData(`plugintypes?$select=plugintypeid,typename,ismanaged`);return console.log(`Fetched plugintypes:`,e),e},enabled:!!e&&!t,staleTime:1/0});return{plugintypes:r?.value||[],status:i,error:a,isFetching:o}},EF=({api:e,editedData:t,onChange:n})=>{let r=Nj(),i=wF(),a=TF(),o=(0,M.useRef)(null),s=(0,M.useRef)(null),c=(0,M.useRef)(null),[l,u]=xF((0,M.useMemo)(()=>[[o,s],[c]],[])),d=l?{minWidth:`${l}px`}:void 0,f=u?{minWidth:`${u}px`}:void 0,p=e=>{n(t=>mN(t,t=>e(t)))};return(0,N.jsxs)(`div`,{className:r.formGrid,children:[(0,N.jsx)(`div`,{className:r.formSection,children:(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:r.fieldLabelStandard,children:[`Unique Name `,(0,N.jsx)(Yf,{})]}),children:(0,N.jsx)(H,{appearance:`filled-darker`,value:e.uniquename||``,readOnly:!0,className:r.disabledInput})})}),(0,N.jsx)(`div`,{className:r.formSection,children:(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:r.fieldLabelStandard,children:(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Name`})}),children:(0,N.jsx)(H,{appearance:`filled-darker`,value:t.name??``,onChange:e=>p(t=>{t.name=e.target.value||``})})})}),(0,N.jsx)(`div`,{className:r.formSection,children:(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:r.fieldLabelStandard,children:(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Display Name`})}),children:(0,N.jsx)(H,{appearance:`filled-darker`,value:t.displayname??``,onChange:e=>p(t=>{t.displayname=e.target.value||``})})})}),(0,N.jsx)(`div`,{className:A(r.formSection,r.fullWidth),children:(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:r.fieldLabelStandard,children:(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Description`})}),children:(0,N.jsx)(cx,{appearance:`filled-darker`,spellCheck:!1,value:t.description??``,onChange:e=>p(t=>{t.description=e.target.value||``}),resize:`vertical`,rows:2})})}),(0,N.jsx)(`div`,{className:r.formSection,children:(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:r.fieldLabelStandard,children:[`Allowed Custom Processing Step Type `,(0,N.jsx)(Yf,{})]}),children:(0,N.jsx)(H,{appearance:`filled-darker`,contentBefore:tF[e.allowedcustomprocessingsteptype],value:eF[e.allowedcustomprocessingsteptype],readOnly:!0,className:r.disabledInput})})}),(0,N.jsx)(`div`,{className:r.formSection,children:(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:r.fieldLabelStandard,children:[`Binding Type `,(0,N.jsx)(Yf,{})]}),children:(0,N.jsx)(H,{appearance:`filled-darker`,contentBefore:rF[e.bindingtype],value:iF[e.bindingtype],readOnly:!0,className:r.disabledInput})})}),(e.bindingtype===1||e.bindingtype===2)&&(0,N.jsx)(`div`,{className:r.formSection,children:(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:r.fieldLabelStandard,children:[`Bound Entity Logical Name `,(0,N.jsx)(Yf,{})]}),children:(0,N.jsx)(H,{appearance:`filled-darker`,value:e.boundentitylogicalname||``,readOnly:!0,className:r.disabledInput})})}),(0,N.jsx)(`div`,{className:A(r.formSection,r.twoColumn),children:(0,N.jsxs)(V,{label:(0,N.jsx)(`span`,{className:r.fieldLabelStandard,children:(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Plugin Type`})}),children:[a.isFetching&&(0,N.jsx)(H,{value:`Loading plugintypes...`,readOnly:!0,appearance:`filled-darker`}),a.error&&(0,N.jsx)(H,{value:`Error loading privileges: ${a.error.message}`,readOnly:!0}),!a.isFetching&&a.plugintypes&&(0,N.jsx)(CF,{items:a.plugintypes.map(e=>({id:e.plugintypeid,displayText:e.typename||``,image:e.ismanaged?(0,N.jsx)(Yf,{}):(0,N.jsx)(Zf,{})})).sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)),initialValue:t._plugintypeid_value,isDisabled:!1,onSelect:e=>p(t=>{t._plugintypeid_value=e||``})})]})}),(0,N.jsx)(`div`,{className:r.formSection,children:(0,N.jsxs)(V,{label:(0,N.jsx)(`span`,{className:r.fieldLabelStandard,children:(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Execute Privilege Name`})}),children:[i.isFetching&&(0,N.jsx)(H,{value:`Loading privileges...`,readOnly:!0,appearance:`filled-darker`}),i.error&&(0,N.jsx)(H,{value:`Error loading privileges: ${i.error.message}`,readOnly:!0}),!i.isFetching&&i.privileges&&(0,N.jsx)(CF,{items:i.privileges.map(e=>({id:e.privilegeid,displayText:e.name||``})).sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)),initialValue:i.privileges?.find(e=>e.name===t.executeprivilegename)?.privilegeid,isDisabled:!1,onSelect:e=>{let t=i.privileges?.find(t=>t.privilegeid===e);p(e=>{e.executeprivilegename=t?.name||``})}})]})}),(0,N.jsx)(`div`,{className:r.formSection,children:(0,N.jsxs)(`div`,{className:r.switchColumn,children:[(0,N.jsx)(k_,{content:e.isfunction?`True`:`False`,relationship:`description`,positioning:`above-end`,children:(0,N.jsx)(`div`,{className:r.switchRow,children:(0,N.jsx)(qb,{checked:e.isfunction,"aria-disabled":!0,tabIndex:-1,className:r.readOnlySwitch,label:(0,N.jsxs)(`span`,{ref:o,className:r.readOnlySwitchLabel,style:d,children:[(0,N.jsx)(`span`,{children:`Is Function`}),(0,N.jsx)(Yf,{})]}),labelPosition:`before`})})}),(0,N.jsx)(k_,{content:e.workflowsdkstepenabled?`True`:`False`,relationship:`description`,positioning:`above-end`,children:(0,N.jsx)(`div`,{className:r.switchRow,children:(0,N.jsx)(qb,{checked:e.workflowsdkstepenabled,"aria-disabled":!0,tabIndex:-1,className:r.readOnlySwitch,label:(0,N.jsxs)(`span`,{ref:s,className:r.readOnlySwitchLabel,style:d,children:[(0,N.jsx)(`span`,{children:`Workflow SDK Step Enabled`}),(0,N.jsx)(Yf,{})]}),labelPosition:`before`})})})]})}),(0,N.jsx)(`div`,{className:r.formSection,children:(0,N.jsx)(`div`,{className:r.switchColumn,children:(0,N.jsx)(k_,{content:t.isprivate?`True`:`False`,relationship:`description`,positioning:`above-end`,children:(0,N.jsx)(`div`,{className:r.switchRow,children:(0,N.jsx)(qb,{checked:t.isprivate,onChange:(e,t)=>p(e=>{e.isprivate=t.checked}),tabIndex:-1,label:(0,N.jsx)(`span`,{ref:c,className:A(r.readOnlySwitchLabel,r.semiBoldLabel),style:f,children:`Is Private`}),labelPosition:`before`})})})})})]})},DF=({value:e,onChange:t,size:n=`small`,disabled:r=!1})=>{let i=Nj(),a=[{key:`all`,label:`All`,iconSelected:(0,N.jsx)(Lf,{}),iconUnselected:(0,N.jsx)(Rf,{})},{key:`unmanaged`,label:`Unmanaged`,iconSelected:(0,N.jsx)(Xf,{}),iconUnselected:(0,N.jsx)(Zf,{})},{key:`managed`,label:`Managed`,iconSelected:(0,N.jsx)(Jf,{}),iconUnselected:(0,N.jsx)(Yf,{})}];return(0,N.jsx)(`div`,{className:i.toggleGroup,children:a.map(i=>{let a=e===i.key;return(0,N.jsx)(nv,{appearance:a?`primary`:`secondary`,size:n,shape:`circular`,icon:a?i.iconSelected:i.iconUnselected,checked:a,onClick:()=>t(i.key),title:i.label,disabled:r,children:i.label},i.key)})})},OF=()=>{let e=U(e=>e.connection),t=U(e=>e.isLoadingConnection),n=U(e=>e.instanceId),{data:r,status:i,error:a,isFetching:o}=XP({queryKey:pF.publishers(e?.id??``,n),queryFn:async()=>window.dataverseAPI.queryData(`publishers?$select=publisherid,uniquename,friendlyname,customizationprefix`),enabled:!!e&&!t,staleTime:1/0});return{publishers:r?.value||[],status:i,error:a,isFetching:o}},kF=()=>{let{instanceId:e,connection:t}=U(),{data:n,status:r,error:i,isFetching:a}=XP({queryKey:pF.appsettings(t?.id??``,e),queryFn:()=>gN(t.id),enabled:!!t,staleTime:1/0});return{appsettings:n,status:r,error:i,isFetching:a}},AF=()=>{let{instanceId:e,connection:t}=U(),n=FP();return ZP({mutationFn:async({current:e,next:n})=>{let r=Object.keys(n).filter(t=>e[t]!==n[t]);return r.length===0?e:(await Promise.all(r.map(e=>yN(e,n[e],t.id))),{...e,...n})},onSuccess:r=>{n.setQueryData(pF.appsettings(t?.id??``,e),r)},onSettled:()=>{n.invalidateQueries({queryKey:pF.appsettings(t?.id??``,e)})}})},jF=e=>e?.trim().toLowerCase()??``,MF=(e,t,n)=>{let r=jF(t);return r?e.some(e=>jF(n(e))===r):!1},NF=()=>{let e=U(e=>e.connection),t=U(e=>e.isLoadingConnection),n=U(e=>e.instanceId),{data:r,status:i,error:a,isFetching:o}=XP({queryKey:pF.entities(e?.id??``,n),queryFn:async()=>window.dataverseAPI.queryData(`entities?$select=entityid,logicalname`),enabled:!!e&&!t,staleTime:1/0});return{entities:r?.value||[],status:i,error:a,isFetching:o}},PF=({createData:e,onChange:t,onValidationChange:n})=>{let r=Nj(),i=wF(),a=TF(),o=OF(),{customapis:s}=_F(),{selectedPublisherId:c,setSelectedPublisherId:l}=U(),u=kF(),d=NF(),[f,p]=(0,M.useState)(`unmanaged`),[m,h]=(0,M.useState)(!c),g=(0,M.useRef)(null),_=(0,M.useRef)(null),v=(0,M.useRef)(null),[y,b]=xF((0,M.useMemo)(()=>[[g,_],[v]],[])),x=y?{minWidth:`${y}px`}:void 0,S=b?{minWidth:`${b}px`}:void 0,C=(0,M.useMemo)(()=>c?!e.uniquename||e.uniquename.trim()===``||!e.name||e.name.trim()===``||!e.displayname||e.displayname.trim()===``||!e.description||e.description.trim()===``||e.allowedcustomprocessingsteptype===null||e.bindingtype===null||(e.bindingtype===1||e.bindingtype===2)&&(!e.boundentitylogicalname||e.boundentitylogicalname.trim()===``)?{isValid:!1,message:`Please fill all required fields.`}:MF(s,e.uniquename,e=>e.uniquename)?{isValid:!1,message:`Custom API named '${e.uniquename}' already exist.`}:{isValid:!0}:{isValid:!1,message:`Select a publisher for the custom api.`},[s,e,c]);(0,M.useEffect)(()=>{n?.(C)},[C.isValid,C.message,n]);let w=e=>{t(t=>mN(t,t=>e(t)))},T=(0,M.useMemo)(()=>{if(!e.uniquename)return``;let t=e.uniquename.split(`_`);return t.length>1?t[1]??``:``},[e.uniquename]);(0,M.useEffect)(()=>{!u.isFetching&&u.appsettings?.defaultPublisherId&&l(u.appsettings.defaultPublisherId)},[u.isFetching,u.appsettings?.defaultPublisherId,l]),(0,M.useEffect)(()=>{c&&h(!1)},[c]);let E=(0,M.useMemo)(()=>!c||!o.publishers?``:o.publishers.find(e=>e.publisherid===c)?.customizationprefix||``,[c,o.publishers]),D=(0,M.useMemo)(()=>{if(!c||!o.publishers)return``;let e=o.publishers.find(e=>e.publisherid===c);return e?`${e.friendlyname} (${e.customizationprefix})`:``},[c,o.publishers]);return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`div`,{className:r.formGrid,children:[!m&&c&&(0,N.jsx)(`div`,{className:r.formSection,onClick:()=>h(!0),style:{cursor:`pointer`},children:(0,N.jsxs)(`span`,{className:r.fieldLabelClickable,children:[(0,N.jsx)(lp,{}),(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Publisher:`}),(0,N.jsx)($b,{children:D})]})}),(m||!c)&&(0,N.jsx)(`div`,{className:A(r.formSection,r.twoColumn),children:(0,N.jsxs)(V,{label:c?(0,N.jsxs)(`span`,{className:r.fieldLabelClickable,onClick:()=>h(!1),style:{cursor:`pointer`},children:[(0,N.jsx)(op,{}),(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Publisher`})]}):`Publisher`,required:!0,children:[o.isFetching&&(0,N.jsx)(H,{value:`Loading publishers...`,readOnly:!0,appearance:`filled-darker`}),o.error&&(0,N.jsx)(H,{value:`Error loading publishers: ${o.error.message}`,readOnly:!0,appearance:`filled-darker`}),!o.isFetching&&o.publishers&&(0,N.jsx)(CF,{items:o.publishers.map(e=>({id:e.publisherid,displayText:`${e.friendlyname} (${e.customizationprefix})`||``})).sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)),initialValue:c||``,onSelect:e=>{l(e||``),e&&h(!1)}})]})})]}),E!==``&&(0,N.jsxs)(`div`,{className:r.formGrid,children:[(0,N.jsx)(`div`,{className:r.formSection,children:(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:r.fieldLabelStandard,children:[(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Unique Name`}),(0,N.jsx)(Yf,{})]}),required:!0,children:(0,N.jsx)(H,{appearance:`filled-darker`,contentBefore:(0,N.jsx)($b,{size:400,children:`${E}_`}),value:T,onChange:e=>{let t=e.target.value??``;w(e=>{let n=e.uniquename?.split(`_`)[1]??``;t!==n&&(e.uniquename=`${E}_${t}`,(!e.displayname||e.displayname===n)&&(e.displayname=t),(!e.name||e.name===n)&&(e.name=t),(!e.description||e.description===n)&&(e.description=t))})}})})}),(0,N.jsx)(`div`,{className:r.formSection,children:(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:r.fieldLabelStandard,children:(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Name`})}),required:!0,children:(0,N.jsx)(H,{appearance:`filled-darker`,value:e.name??``,onChange:e=>{w(t=>{t.name=e.target.value||``})}})})}),(0,N.jsx)(`div`,{className:r.formSection,children:(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:r.fieldLabelStandard,children:(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Display Name`})}),required:!0,children:(0,N.jsx)(H,{appearance:`filled-darker`,value:e.displayname??``,onChange:e=>{w(t=>{t.displayname=e.target.value||``})}})})}),(0,N.jsx)(`div`,{className:A(r.formSection,r.fullWidth),children:(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:r.fieldLabelStandard,children:(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Description`})}),required:!0,children:(0,N.jsx)(cx,{appearance:`filled-darker`,spellCheck:!1,value:e.description??``,onChange:e=>{w(t=>{t.description=e.target.value||``})},resize:`vertical`,rows:2})})}),(0,N.jsx)(`div`,{className:r.formSection,children:(0,N.jsx)(V,{label:(0,N.jsxs)(`div`,{className:r.fieldLabelStandard,children:[(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Allowed Custom Processing Step Type`}),(0,N.jsx)(Yf,{})]}),required:!0,children:(0,N.jsx)(CF,{items:nF().sort((e,t)=>(e.id||``).localeCompare(t.id||``)),initialValue:e.allowedcustomprocessingsteptype?.toString(),isDisabled:!1,onSelect:e=>{let t=e===null?null:Number(e);w(e=>{e.allowedcustomprocessingsteptype=t})}})})}),(0,N.jsx)(`div`,{className:r.formSection,children:(0,N.jsx)(V,{label:(0,N.jsxs)(`div`,{className:r.fieldLabelStandard,children:[(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Binding Type`}),(0,N.jsx)(Yf,{})]}),required:!0,children:(0,N.jsx)(CF,{items:aF().sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)),initialValue:e.bindingtype?.toString(),isDisabled:!1,onSelect:e=>{let t=e===null?null:Number(e);w(e=>{e.bindingtype=t,t!==1&&(e.boundentitylogicalname=``)})}})})}),(e.bindingtype===1||e.bindingtype===2)&&(0,N.jsx)(`div`,{className:r.formSection,children:(0,N.jsxs)(V,{label:(0,N.jsxs)(`div`,{className:r.fieldLabelStandard,children:[(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Bound Entity Logical Name`}),(0,N.jsx)(Yf,{})]}),required:!0,children:[d.isFetching&&(0,N.jsx)(H,{value:`Loading entities...`,readOnly:!0,appearance:`filled-darker`}),d.error&&(0,N.jsx)(H,{value:`Error loading entities: ${d.error.message}`,readOnly:!0,appearance:`filled-darker`}),!d.isFetching&&d.entities&&(0,N.jsx)(CF,{items:d.entities.map(e=>({id:e.entityid,displayText:e.logicalname||``})).sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)),isDisabled:!1,onSelect:e=>{let t=d.entities?.find(t=>t.entityid===e);w(e=>{e.boundentitylogicalname=t?.logicalname||``})}})]})}),(0,N.jsx)(`div`,{className:A(r.formSection,r.twoColumn),children:(0,N.jsxs)(V,{label:(0,N.jsxs)(`div`,{className:r.fieldLabelWithToggle,children:[(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Plugin Type`}),(0,N.jsx)(DF,{value:f,onChange:p})]}),children:[a.isFetching&&(0,N.jsx)(H,{value:`Loading plugintypes...`,readOnly:!0,appearance:`filled-darker`}),a.error&&(0,N.jsx)(H,{value:`Error loading privileges: ${a.error.message}`,readOnly:!0,appearance:`filled-darker`}),!a.isFetching&&a.plugintypes&&(0,N.jsx)(CF,{items:a.plugintypes.filter(e=>f===`all`||e.ismanaged&&f===`managed`||!e.ismanaged&&f===`unmanaged`).map(e=>({id:e.plugintypeid,displayText:e.typename||``,image:e.ismanaged?(0,N.jsx)(of,{}):(0,N.jsx)(sf,{})})).sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)),initialValue:e._plugintypeid_value,isDisabled:!1,onSelect:e=>{w(t=>{t._plugintypeid_value=e||``})}})]})}),(0,N.jsx)(`div`,{className:r.formSection,children:(0,N.jsxs)(V,{label:(0,N.jsx)(`div`,{className:r.fieldLabelStandard,children:(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Execute Privilege Name`})}),children:[i.isFetching&&(0,N.jsx)(H,{value:`Loading privileges...`,readOnly:!0,appearance:`filled-darker`}),i.error&&(0,N.jsx)(H,{value:`Error loading privileges: ${i.error.message}`,readOnly:!0,appearance:`filled-darker`}),!i.isFetching&&i.privileges&&(0,N.jsx)(CF,{items:i.privileges.map(e=>({id:e.privilegeid,displayText:e.name||``})).sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)),isDisabled:!1,onSelect:e=>{let t=i.privileges?.find(t=>t.privilegeid===e);w(e=>{e.executeprivilegename=t?.name||``})}})]})}),(0,N.jsx)(`div`,{className:r.formSection,children:(0,N.jsxs)(`div`,{className:r.switchColumn,children:[(0,N.jsx)(k_,{content:e.isfunction?`True`:`False`,relationship:`description`,positioning:`above-end`,children:(0,N.jsx)(`div`,{className:r.switchRow,children:(0,N.jsx)(qb,{checked:e.isfunction,onChange:(e,t)=>{w(e=>{e.isfunction=t.checked})},tabIndex:-1,label:(0,N.jsxs)(`span`,{ref:g,className:r.readOnlySwitchLabel,style:x,children:[(0,N.jsx)(`span`,{children:`Is Function`}),(0,N.jsx)(Yf,{})]}),labelPosition:`before`})})}),(0,N.jsx)(k_,{content:e.workflowsdkstepenabled?`True`:`False`,relationship:`description`,positioning:`above-end`,children:(0,N.jsx)(`div`,{className:r.switchRow,children:(0,N.jsx)(qb,{checked:e.workflowsdkstepenabled,onChange:(e,t)=>{w(e=>{e.workflowsdkstepenabled=t.checked})},tabIndex:-1,label:(0,N.jsxs)(`span`,{ref:_,className:r.readOnlySwitchLabel,style:x,children:[(0,N.jsx)(`span`,{children:`Workflow SDK Step Enabled`}),(0,N.jsx)(Yf,{})]}),labelPosition:`before`})})})]})}),(0,N.jsx)(`div`,{className:r.formSection,children:(0,N.jsx)(`div`,{className:r.switchColumn,children:(0,N.jsx)(k_,{content:e.isprivate?`True`:`False`,relationship:`description`,positioning:`above-end`,children:(0,N.jsx)(`div`,{className:r.switchRow,children:(0,N.jsx)(qb,{checked:e.isprivate,onChange:(e,t)=>{w(e=>{e.isprivate=t.checked})},tabIndex:-1,label:(0,N.jsx)(`span`,{ref:v,className:A(r.readOnlySwitchLabel,r.semiBoldLabel),style:S,children:`Is Private`}),labelPosition:`before`})})})})})]})]})},FF=()=>{let e=U(e=>e.connection),t=U(e=>e.isLoadingConnection),n=U(e=>e.instanceId),{data:r,status:i,error:a,isFetching:o}=XP({queryKey:pF.solutions(e?.id??``,n),queryFn:async()=>{let e=window.dataverseAPI.getSolutions([`solutionid`,`uniquename`,`friendlyname`,`version`,`ismanaged`]);return console.log(`Fetched solutions:`,e),e},enabled:!!e&&!t,staleTime:1/0});return{solutions:r?.value||[],status:i,error:a,isFetching:o}},IF=({open:e,createData:t,isSaving:n,onConfirm:r,onCancel:i})=>{let a=Nj(),{solutions:o,isFetching:s}=FF(),{selectedSolutionId:c}=U(),[l,u]=(0,M.useState)(null),d=(0,M.useMemo)(()=>o.filter(e=>!e.ismanaged),[o]),f=(0,M.useMemo)(()=>d.map(e=>({id:e.solutionid,displayText:`${e.friendlyname} (${e.uniquename})`,image:(0,N.jsx)(Zf,{})})).sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)),[d]);return(0,M.useEffect)(()=>{e&&u(d.some(e=>e.solutionid===c)?c:null)},[e,c,d]),(0,N.jsx)(kx,{open:e,modalType:`modal`,children:(0,N.jsx)(uS,{className:a.dialogSurface,children:(0,N.jsxs)(Gx,{children:[(0,N.jsx)(eS,{children:`Confirm Custom API Creation`}),(0,N.jsx)(gS,{children:(0,N.jsxs)(`div`,{className:a.dialogContentColumn,children:[(0,N.jsxs)(`div`,{className:a.dialogSection,children:[(0,N.jsx)(gv,{weight:`semibold`,size:`large`,children:`Summary`}),(0,N.jsx)(Ry,{}),(0,N.jsxs)(`div`,{className:a.formGrid,children:[(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Unique Name:`}),(0,N.jsx)(`span`,{children:t.uniquename||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Display Name:`}),(0,N.jsx)(`span`,{children:t.displayname||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Name:`}),(0,N.jsx)(`span`,{children:t.name||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Description:`}),(0,N.jsx)(`span`,{className:a.summaryValue,children:t.description||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Processing Step Type:`}),(0,N.jsx)(`span`,{children:t.allowedcustomprocessingsteptype===null?`Not set`:eF[t.allowedcustomprocessingsteptype]||`Unknown`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Binding Type:`}),(0,N.jsx)(`span`,{children:t.bindingtype===null?`Not set`:iF[t.bindingtype]||`Unknown`})]}),t.bindingtype===1&&(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Bound Entity:`}),(0,N.jsx)(`span`,{children:t.boundentitylogicalname||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Is Function:`}),(0,N.jsx)(`span`,{children:t.isfunction?`Yes`:`No`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Is Private:`}),(0,N.jsx)(`span`,{children:t.isprivate?`Yes`:`No`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Workflow Enabled:`}),(0,N.jsx)(`span`,{children:t.workflowsdkstepenabled?`Yes`:`No`})]})]})]}),(0,N.jsx)(Ry,{}),(0,N.jsxs)(`div`,{className:a.dialogSection,children:[(0,N.jsx)(gv,{weight:`semibold`,size:`large`,children:`Add to Solution (Optional)`}),(0,N.jsx)(`p`,{className:a.hintText,children:`Select an unmanaged solution to add the Custom API to. If no solution is selected, the Custom API will be created in the default solution.`}),s?(0,N.jsx)(Nb,{size:`small`,label:`Loading solutions...`}):(0,N.jsx)(CF,{items:f,initialValue:l??void 0,onSelect:e=>{u(e)}})]})]})}),(0,N.jsxs)(zx,{children:[(0,N.jsx)(K_,{appearance:`secondary`,icon:(0,N.jsx)(hp,{}),onClick:i,disabled:n,children:`Cancel`}),(0,N.jsx)(K_,{appearance:`primary`,icon:n?(0,N.jsx)(Nb,{size:`tiny`}):(0,N.jsx)(ip,{}),onClick:()=>{r(d.find(e=>e.solutionid===l)?.uniquename??null)},disabled:n,children:n?`Creating...`:`Confirm`})]})]})})})},LF={_customapiid_value:[`CustomAPIId`,new uF]},RF={0:`Boolean`,1:`DateTime`,2:`Decimal`,3:`Entity`,4:`EntityCollection`,5:`EntityReference`,6:`Float`,7:`Integer`,8:`Money`,9:`Picklist`,10:`String`,11:`StringArray`,12:`Guid`},zF=()=>Object.entries(RF).map(([e,t])=>({id:Number(e).toString(),displayText:t,image:null})),BF=e=>({uniquename:``,name:``,displayname:``,description:``,logicalentityname:``,isoptional:!1,type:10,_customapiid_value:e}),VF={_customapiid_value:[`CustomAPIId`,new uF]},HF={0:`Boolean`,1:`DateTime`,2:`Decimal`,3:`Entity`,4:`EntityCollection`,5:`EntityReference`,6:`Float`,7:`Integer`,8:`Money`,9:`Picklist`,10:`String`,11:`StringArray`,12:`Guid`},UF=()=>Object.entries(HF).map(([e,t])=>({id:Number(e).toString(),displayText:t,image:null})),WF=e=>({uniquename:``,name:``,displayname:``,description:``,logicalentityname:``,type:10,_customapiid_value:e}),GF=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAC6UlEQVR4nO1WS2tTQRQeUepjoZjMpK0WRClVROzeiiu3Iihd2tLeMzdYKeIv0HajgjURX1ubRsWWFERowZqck1RERXRhFFH3LnxWQW19RCZtNb1NMlN64414Pzire8853zdz5pthzIcPHxWBkJQrDPavQfgCPIYvwGv4AryGL8Br+AL+JjjgeSdhXXCJ51jVoHVwqQAcMSYPNMaO4jJWTQh0310tAJ8YCHi25uD4WlaNCHWMb+JAr0uSB3zHIdNUURLid0Oc5ECvuKTHQmJcSDzAWrM1unxup3ep3Pnk6VtI4m4tgdZsjQBqUz1Vb8WhsN4CBBQ7ePSithO3aUVA2iqS36XLC1mZ7RzoZTkOixIwE+9NxqDQmUwcJ2jjFgE4oevvhgA1Xk8bjtxZaeJMJo5Tbz9YpQ63SW9mgsbukeXKKeo6MkLI9A4BdLWIFR7X1VE1TByHA550nhcB2CPCyeZ1h8aC0zVyS4zIl25CFxyOMhUIZ7YuqihjTJ2pPOG5i2Mzt7GhHVcIwOcOESOz39W54BL7dXWUuwQ7k5v/5NGog/woqxRCkNo7by4t2sclnuBAX4XEe1oBgPfV7gmg06Iztd85Om7sallwiTcdTacKduSyVoCkKwVm8N2x+mcrSj5PIJxsFoA/Sty0Pdp8oN4S76NP9TbyipIPADZwoJiQWOKpQG1aAXa6vcxFOVQL6Y2uE5/2aTzGJX0p69NWqkUrwEq1aO6YSQF4Rj0OXROg7gW1ulxStlzzkHWrViugC+t0zxUu6bBaNNcEzCFg404h6YaQ+NM5w8Y1JH4sQvx20KI9i76wTKF8X201B/w8s/UPjXMlPZodFw4UU4845hXyIwHUyyVdNM1R/+bdqAvrXCcUjQ/nCsP1BpXmE/UFuIuoL8BjRBfKJxJPTDiTqiYGhj/oFQ8kEp4TjZeMIa2AU/3DTZF44k0Vrv7bvtj1RqO567s0uD4ST1yrhnGKTHMYMibvw8d/hl+D60BKC2IscwAAAABJRU5ErkJggg==`,KF=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAADI0lEQVR4nO1YTWgTURB+tlgUS8Xmvayo4A9Si0o9iBe9eiqIYMlJUezOS7Ui6MljS/XgwZoIooig1kbB1BTEg0pNZprSIlJQpP7rUUSoWKviT1sjm9A0WbN5WU3NBveDOSTZmfd9M++9mSxjLly4mDVwwEOGsXKER6dtQtKkAJwSMtbEygkeSZu4pM9CUsIwLumrkP2bWTnAu3dgFQd8N00+LQJolEO8jjkZSw70eYTE52byM5XA19q+QS9zIpYdHprPAQetyKcN8L62684C5ii0JSo40HUl+Rm7yXzhSuYUCEkBG+SnLcCcDDNhVm4QroASwxVQargCioGF+wcWcYhtFH7yCaAjQuI5DtQngM4XW4CQGBKShgVQmEs8zoH8XolbjdmKscScgklzSWe5pAdC4rjFKPDD48f6Ygvw+LHeiJ276eG4wcngphQggDryd1DsnK0tJIBO5p+jqEMZxJgWU/N7rmmSJoROO2ZNQHOsiUuczLk20DfRiosL3UYX8mWCA93SILqOFQlaM643YuZdU9JFWwGFxJ+Kck4IwFOiFav/ZgQXEtuFxO/K4a8lusFW8ORtk314pyyEPPU0R9fYJZ88tJKeWVT4k+lzn934jOvUmEEy7NXjDUJi1CJDH4yqFRo7GQtoLFdVucTTxj87LqknLUCnRtsCjLtXAD42DrTWgivSi0NsuwB8kWOPvmT+4bnKsL6RKg70Kof/7dqW+NrpxzToX5m6TPCJrT6QCaOZCElHzd8v34PzONAZMwkP9O9UxRRAu3/LOpA/97N4zOq3wg9ZnkMqJF3NziJ2qQXgFVNfabd8thWrDQ5/LEBJRo9tMR22hyofDvgo08erxxtYqeDV72qmbL5R+XCgt5k+NfpQLSsVag/eq8muAH5R+Zi7vFbKVyypRpQ96Kl8ku9LM0cM30gVKxl84Upzs1O5mDs8a0tUFJVTMNSbyLSiBv8XfIKugOIi6AooMYJ2+QRCkY9mJ8dYd++YWnF3JFJyoiFL61EKONHVWxcIRUYdmP33nZdvrC5o33VeCi8NhCLXnLCdAikOPQWTd+HiP8MvuBk91UNZNC0AAAAASUVORK5CYII=`,qF=Br({treeContainer:{padding:z.spacingVerticalS},parameterItem:{display:`flex`,alignItems:`center`,gap:z.spacingHorizontalS},typeLabel:{color:z.colorNeutralForeground3,fontSize:z.fontSizeBase200},optionalBadge:{marginLeft:z.spacingHorizontalXS},subtleText:{color:z.colorNeutralForeground3},treeItemContent:{display:`flex`,alignItems:`center`,gap:z.spacingHorizontalS},sectionHeader:{fontWeight:z.fontWeightSemibold},lockIcon:{color:z.colorNeutralForeground3,fontSize:`12px`,marginLeft:z.spacingHorizontalXXS},booleanValue:{display:`inline-flex`,alignItems:`center`,gap:z.spacingHorizontalXXS}}),JF=({value:e})=>(0,N.jsxs)(`span`,{className:qF().booleanValue,children:[e?(0,N.jsx)(yf,{primaryFill:z.colorPaletteGreenForeground1}):(0,N.jsx)(Nf,{primaryFill:z.colorNeutralForeground3}),(0,N.jsx)(`span`,{style:{color:e?z.colorPaletteGreenForeground1:z.colorNeutralForeground3},children:e?`Yes`:`No`})]}),YF=()=>(0,N.jsx)(k_,{content:`Cannot be changed after creation`,relationship:`label`,children:(0,N.jsx)(of,{className:qF().lockIcon})}),XF=({api:e,requestParameters:t,responseProperties:n,onEdit:r,onDelete:i,onCreateRequestParameter:a,onCreateResponseProperty:o,onEditRequestParameter:s,onEditResponseProperty:c})=>{let l=qF(),u=eF[e.allowedcustomprocessingsteptype]||`Unknown`,d=e[`_plugintypeid_value@OData.Community.Display.V1.FormattedValue`]||`None`;return(0,N.jsx)(`div`,{className:l.treeContainer,children:(0,N.jsx)(JE,{"aria-label":`Custom API Tree View`,defaultOpenItems:[`api-root`,`api-details`,`parameters-section`,`properties-section`],children:(0,N.jsxs)(iD,{itemType:`branch`,value:`api-root`,children:[(0,N.jsx)(NE,{iconBefore:(0,N.jsx)(Df,{primaryFill:z.colorBrandForeground1}),actions:(0,N.jsxs)(N.Fragment,{children:[!e.ismanaged&&(0,N.jsx)(K_,{"aria-label":`Edit`,appearance:`subtle`,icon:(0,N.jsx)(Kf,{}),onClick:e=>{e.stopPropagation(),r?.()}}),!e.ismanaged&&!e._fxexpressionid_value&&(0,N.jsx)(K_,{"aria-label":`Delete`,appearance:`subtle`,icon:(0,N.jsx)(Nf,{}),onClick:e=>{e.stopPropagation(),i?.()}})]}),children:(0,N.jsxs)(`span`,{className:l.sectionHeader,children:[`Custom API: `,e.displayname||e.uniquename]})}),(0,N.jsxs)(JE,{children:[(0,N.jsxs)(iD,{itemType:`branch`,value:`api-details`,children:[(0,N.jsx)(NE,{children:`Details`}),(0,N.jsxs)(JE,{children:[(0,N.jsx)(iD,{itemType:`leaf`,value:`unique-name`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Unique Name:`}),(0,N.jsx)(`span`,{className:l.subtleText,children:e.uniquename}),(0,N.jsx)(YF,{})]})})}),(0,N.jsx)(iD,{itemType:`leaf`,value:`name`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Name:`}),(0,N.jsx)(`span`,{className:l.subtleText,children:e.name||`—`})]})})}),(0,N.jsx)(iD,{itemType:`leaf`,value:`display-name`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Display Name:`}),(0,N.jsx)(`span`,{className:l.subtleText,children:e.displayname||`—`})]})})}),(0,N.jsx)(iD,{itemType:`leaf`,value:`description`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Description:`}),(0,N.jsx)(`span`,{className:l.subtleText,children:e.description||`—`})]})})}),(0,N.jsx)(iD,{itemType:`leaf`,value:`allowed-processing-step-type`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Allowed Processing Step Type:`}),(0,N.jsx)(`span`,{className:l.subtleText,children:u}),(0,N.jsx)(YF,{})]})})}),(0,N.jsx)(iD,{itemType:`leaf`,value:`binding`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Binding Type:`}),(0,N.jsx)(`span`,{className:l.subtleText,children:iF[e.bindingtype]}),(0,N.jsx)(YF,{})]})})}),(e.bindingtype===1||e.bindingtype===2)&&e.boundentitylogicalname&&(0,N.jsx)(iD,{itemType:`leaf`,value:`binding`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Bound Entity Logical Name:`}),(0,N.jsx)(`span`,{className:l.subtleText,children:e.boundentitylogicalname}),(0,N.jsx)(YF,{})]})})}),(0,N.jsx)(iD,{itemType:`leaf`,value:`plugin`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Plugin:`}),(0,N.jsx)(`span`,{className:l.subtleText,children:d})]})})}),(0,N.jsx)(iD,{itemType:`leaf`,value:`execute-privilege`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Execute Privilege Name:`}),(0,N.jsx)(`span`,{className:l.subtleText,children:e.executeprivilegename||`—`})]})})}),(0,N.jsx)(iD,{itemType:`leaf`,value:`is-function`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Is Function:`}),(0,N.jsx)(JF,{value:e.isfunction}),(0,N.jsx)(YF,{})]})})}),(0,N.jsx)(iD,{itemType:`leaf`,value:`is-private`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Is Private:`}),(0,N.jsx)(JF,{value:e.isprivate})]})})}),(0,N.jsx)(iD,{itemType:`leaf`,value:`workflow-enabled`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Workflow SDK Step Enabled:`}),(0,N.jsx)(JF,{value:e.workflowsdkstepenabled}),(0,N.jsx)(YF,{})]})})}),(0,N.jsx)(iD,{itemType:`leaf`,value:`is-managed`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Is Managed:`}),(0,N.jsx)(JF,{value:e.ismanaged}),(0,N.jsx)(YF,{})]})})})]})]}),(0,N.jsxs)(iD,{itemType:`branch`,value:`parameters-section`,children:[(0,N.jsx)(NE,{iconBefore:(0,N.jsx)(nb,{alt:`Request Parameters`,src:GF,height:24,width:24}),actions:!e.ismanaged&&!e._fxexpressionid_value?(0,N.jsx)(K_,{"aria-label":`Add Request Parameter`,appearance:`subtle`,size:`small`,icon:(0,N.jsx)(Wd,{}),onClick:e=>{e.stopPropagation(),a?.()}}):void 0,children:(0,N.jsxs)(`span`,{className:l.sectionHeader,children:[`Request Parameters (`,t.length,`)`]})}),(0,N.jsx)(JE,{children:t.length===0?(0,N.jsx)(iD,{itemType:`leaf`,value:`no-params`,children:(0,N.jsx)(NE,{children:(0,N.jsx)(`span`,{className:l.subtleText,children:`No request parameters`})})}):t.map(e=>(0,N.jsxs)(iD,{itemType:`branch`,value:`param-${e.customapirequestparameterid}`,children:[(0,N.jsx)(NE,{actions:e.ismanaged?void 0:(0,N.jsx)(K_,{"aria-label":`Edit Request Parameter ${e.displayname||e.uniquename}`,appearance:`subtle`,size:`small`,icon:(0,N.jsx)(Kf,{}),onClick:t=>{t.stopPropagation(),s?.(e.customapirequestparameterid)}}),children:(0,N.jsxs)(`span`,{className:l.parameterItem,children:[(0,N.jsx)(`span`,{children:e.displayname||e.uniquename}),(0,N.jsxs)(`span`,{className:l.typeLabel,children:[`(`,RF[e.type]||`Unknown`,`)`]}),e.isoptional&&(0,N.jsx)(ym,{appearance:`outline`,size:`small`,className:l.optionalBadge,children:`Optional`})]})}),(0,N.jsxs)(JE,{children:[(0,N.jsx)(iD,{itemType:`leaf`,value:`param-${e.customapirequestparameterid}-uniquename`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Unique Name:`}),(0,N.jsx)(`span`,{className:l.subtleText,children:e.uniquename}),(0,N.jsx)(YF,{})]})})}),(0,N.jsx)(iD,{itemType:`leaf`,value:`param-${e.customapirequestparameterid}-name`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Name:`}),(0,N.jsx)(`span`,{className:l.subtleText,children:e.name||`—`})]})})}),(0,N.jsx)(iD,{itemType:`leaf`,value:`param-${e.customapirequestparameterid}-name`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Display Name:`}),(0,N.jsx)(`span`,{className:l.subtleText,children:e.displayname||`—`})]})})}),(0,N.jsx)(iD,{itemType:`leaf`,value:`param-${e.customapirequestparameterid}-desc`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Description:`}),(0,N.jsx)(`span`,{className:l.subtleText,children:e.description||`—`})]})})}),(0,N.jsx)(iD,{itemType:`leaf`,value:`param-${e.customapirequestparameterid}-type`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Type:`}),(0,N.jsx)(`span`,{className:l.subtleText,children:RF[e.type]||`Unknown`}),(0,N.jsx)(YF,{})]})})}),(RF[e.type]===`Entity`||RF[e.type]===`EntityReference`)&&(0,N.jsx)(iD,{itemType:`leaf`,value:`param-${e.customapirequestparameterid}-entity`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Logical Entity Name:`}),(0,N.jsx)(`span`,{className:l.subtleText,children:e.logicalentityname||`expando`}),(0,N.jsx)(YF,{})]})})}),(0,N.jsx)(iD,{itemType:`leaf`,value:`param-${e.customapirequestparameterid}-optional`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Is Optional:`}),(0,N.jsx)(JF,{value:e.isoptional}),(0,N.jsx)(YF,{})]})})}),(0,N.jsx)(iD,{itemType:`leaf`,value:`param-${e.customapirequestparameterid}-managed`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Is Managed:`}),(0,N.jsx)(JF,{value:e.ismanaged}),(0,N.jsx)(YF,{})]})})})]})]},e.customapirequestparameterid))})]}),(0,N.jsxs)(iD,{itemType:`branch`,value:`properties-section`,children:[(0,N.jsx)(NE,{iconBefore:(0,N.jsx)(nb,{alt:`Response Properties`,src:KF,height:24,width:24}),actions:!e.ismanaged&&!e._fxexpressionid_value?(0,N.jsx)(K_,{"aria-label":`Add Response Property`,appearance:`subtle`,size:`small`,icon:(0,N.jsx)(Wd,{}),onClick:e=>{e.stopPropagation(),o?.()}}):void 0,children:(0,N.jsxs)(`span`,{className:l.sectionHeader,children:[`Response Properties (`,n.length,`)`]})}),(0,N.jsx)(JE,{children:n.length===0?(0,N.jsx)(iD,{itemType:`leaf`,value:`no-props`,children:(0,N.jsx)(NE,{children:(0,N.jsx)(`span`,{className:l.subtleText,children:`No response properties`})})}):n.map(e=>(0,N.jsxs)(iD,{itemType:`branch`,value:`prop-${e.customapiresponsepropertyid}`,children:[(0,N.jsx)(NE,{actions:e.ismanaged?void 0:(0,N.jsx)(K_,{"aria-label":`Edit Response Property ${e.displayname||e.uniquename}`,appearance:`subtle`,size:`small`,icon:(0,N.jsx)(Kf,{}),onClick:t=>{t.stopPropagation(),c?.(e.customapiresponsepropertyid)}}),children:(0,N.jsxs)(`span`,{className:l.parameterItem,children:[(0,N.jsx)(`span`,{children:e.displayname||e.uniquename}),(0,N.jsxs)(`span`,{className:l.typeLabel,children:[`(`,HF[e.type]||`Unknown`,`)`]})]})}),(0,N.jsxs)(JE,{children:[(0,N.jsx)(iD,{itemType:`leaf`,value:`prop-${e.customapiresponsepropertyid}-uniquename`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Unique Name:`}),(0,N.jsx)(`span`,{className:l.subtleText,children:e.uniquename}),(0,N.jsx)(YF,{})]})})}),(0,N.jsx)(iD,{itemType:`leaf`,value:`prop-${e.customapiresponsepropertyid}-name`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Name:`}),(0,N.jsx)(`span`,{className:l.subtleText,children:e.name||`—`})]})})}),(0,N.jsx)(iD,{itemType:`leaf`,value:`prop-${e.customapiresponsepropertyid}-name`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Display Name:`}),(0,N.jsx)(`span`,{className:l.subtleText,children:e.displayname||`—`})]})})}),(0,N.jsx)(iD,{itemType:`leaf`,value:`prop-${e.customapiresponsepropertyid}-desc`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Description:`}),(0,N.jsx)(`span`,{className:l.subtleText,children:e.description||`—`})]})})}),(0,N.jsx)(iD,{itemType:`leaf`,value:`prop-${e.customapiresponsepropertyid}-type`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Type:`}),(0,N.jsx)(`span`,{className:l.subtleText,children:HF[e.type]||`Unknown`}),(0,N.jsx)(YF,{})]})})}),(HF[e.type]===`Entity`||HF[e.type]===`EntityReference`)&&(0,N.jsx)(iD,{itemType:`leaf`,value:`prop-${e.customapiresponsepropertyid}-entity`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Logical Entity Name:`}),(0,N.jsx)(`span`,{className:l.subtleText,children:e.logicalentityname||`expando`}),(0,N.jsx)(YF,{})]})})}),(0,N.jsx)(iD,{itemType:`leaf`,value:`prop-${e.customapiresponsepropertyid}-managed`,children:(0,N.jsx)(NE,{children:(0,N.jsxs)(`span`,{className:l.treeItemContent,children:[(0,N.jsx)(`span`,{children:`Is Managed:`}),(0,N.jsx)(JF,{value:e.ismanaged}),(0,N.jsx)(YF,{})]})})})]})]},e.customapiresponsepropertyid))})]})]})]})})})},ZF=({requestParameters:e})=>{let t=Nj(),{setSelectedRequestParameterId:n,selectedRequestParameterId:r}=U(),[i,a]=(0,M.useState)(()=>new Set),o=(e,t)=>{a(e=>e.size===t.selectedItems.size&&Array.from(e).every(e=>t.selectedItems.has(e))?e:t.selectedItems)};(0,M.useEffect)(()=>{let[e]=Array.from(i);n(e??null)},[i,n]),(0,M.useEffect)(()=>{a(t=>!r||!e.some(e=>e.customapirequestparameterid===r)?t.size?new Set:t:t.size===1&&t.has(r)?t:new Set([r]))},[e,r]);let s=[aC({columnId:`uniquename`,compare:(e,t)=>e.name.localeCompare(t.name),renderHeaderCell:()=>`Unique Name`,renderCell:e=>(0,N.jsx)(xw,{children:e.uniquename})}),aC({columnId:`type`,compare:(e,t)=>RF[e.type].localeCompare(RF[t.type]),renderHeaderCell:()=>`Type`,renderCell:e=>(0,N.jsx)(xw,{children:RF[e.type]})}),aC({columnId:`isoptional`,compare:(e,t)=>e.isoptional===t.isoptional?0:e.isoptional?1:-1,renderHeaderCell:()=>`Is Optional`,renderCell:e=>(0,N.jsx)(xw,{children:e.isoptional?`Yes`:`No`})})];return(0,N.jsx)(`div`,{className:t.listContainer,children:(0,N.jsxs)($w,{items:e.sort((e,t)=>e.uniquename.localeCompare(t.uniquename)),columns:s,selectionMode:`single`,selectedItems:i,sortable:!0,onSelectionChange:o,getRowId:e=>e.customapirequestparameterid,resizableColumns:!0,columnSizingOptions:{name:{defaultWidth:250,minWidth:250,idealWidth:250},isoptional:{minWidth:80,defaultWidth:80},type:{minWidth:120,defaultWidth:120}},children:[(0,N.jsx)(iT,{children:(0,N.jsx)(Hw,{children:({renderHeaderCell:e})=>(0,N.jsx)(uT,{children:e()})})}),(0,N.jsx)(qw,{children:({item:e,rowId:t})=>(0,N.jsx)(Hw,{selectionCell:{radioIndicator:{"aria-label":`Select row`}},children:({renderCell:t})=>(0,N.jsx)(Aw,{children:t(e)})},t)})]})})},QF=new class extends QP{entityName=`customapirequestparameter`;entityCollectionName=`customapirequestparameters`;componenttype=10021;async createCustomApiRequestParameter(e,t){let n=cF(e,{lookupKeys:LF}),r=await window.dataverseAPI.create(this.entityName,n);return t&&r.id&&await this.addToSolution(r.id,t),{created:!0,payload:n,id:r.id}}async updateCustomApiRequestParameter(e,t){let n=lF(e,t);return Object.keys(n).length===0?{updated:!1,payload:n}:(await window.dataverseAPI.update(this.entityName,e.customapirequestparameterid,n),{updated:!0,payload:n})}},$F=()=>{let{connection:e,isLoadingConnection:t,instanceId:n,selectedCustomApiId:r}=U(),{data:i,status:a,error:o,isFetching:s}=XP({queryKey:pF.requestparameters(r??``,e?.id??``,n),queryFn:async()=>window.dataverseAPI.queryData(`customapirequestparameters?$filter=_customapiid_value eq ${r}`),enabled:!!e&&!t,staleTime:1/0});return{requestParameters:i?.value||[],status:a,error:o,isFetching:s}},eI=()=>{let e=FP(),{connection:t,addLog:n,instanceId:r,selectedCustomApiId:i}=U();return ZP({mutationFn:async({next:e,solutionUniqueName:t})=>{try{let r=await QF.createCustomApiRequestParameter(e,t);return n(`Custom API Request Parameter '${e.uniquename}' created successfully`,`success`),mF({title:`Request Parameter Created`,body:`'${e.uniquename}' created successfully`,type:`success`,duration:3e3}),r}catch(e){throw console.error(`Error creating Custom API Request Parameter`,e),n(`Failed to create Custom API Request Parameter. ${e}`,`error`),mF({title:`Creation Failed`,body:`Failed to create Request Parameter. ${e}`,type:`error`,duration:5e3}),e}},onSuccess:()=>{e.invalidateQueries({queryKey:pF.requestparameters(i??``,t?.id??``,r)})}})},tI=()=>{let e=FP(),{connection:t,addLog:n,instanceId:r,selectedCustomApiId:i}=U();return ZP({mutationFn:async({current:e,next:t})=>{try{let r=await QF.updateCustomApiRequestParameter(e,t);return r.updated?(n(`Custom API Request Parameter '${e.uniquename}' updated successfully`,`success`),mF({title:`Request Parameter Updated`,body:`'${e.uniquename}' updated successfully`,type:`success`,duration:3e3}),r):(n(`No changes to save`,`warning`),mF({title:`No Changes`,body:`No changes to save`,type:`warning`,duration:3e3}),r)}catch(e){throw console.error(`Error saving Custom API`,e),n(`Failed to save Custom API Request Parameter changes. ${e}`,`error`),mF({title:`Update Failed`,body:`Failed to save Request Parameter changes. ${e}`,type:`error`,duration:5e3}),e}},onSuccess:()=>{e.invalidateQueries({queryKey:pF.requestparameters(i??``,t?.id??``,r)})}})},nI=()=>{let e=FP(),{addLog:t}=U(),{connection:n,instanceId:r,selectedCustomApiId:i}=U();return ZP({mutationFn:async({requestParameter:e})=>{try{let n=await QF.deleteRecord(e.customapirequestparameterid);return t(`Request Parameter '${e.uniquename}' deleted successfully`,`success`),mF({title:`Request Parameter Deleted`,body:`'${e.uniquename}' deleted successfully`,type:`success`,duration:3e3}),n}catch(e){throw console.error(`Error deleting Request Parameter`,e),t(`Failed to delete Request Parameter. ${e}`,`error`),mF({title:`Deletion Failed`,body:`Failed to delete Request Parameter. ${e}`,type:`error`,duration:5e3}),e}},onSuccess:()=>{e.invalidateQueries({queryKey:pF.requestparameters(i??``,n?.id??``,r)})}})},rI=({parameter:e})=>{let t=Nj(),n=(0,M.useRef)(null),r=(0,M.useRef)(null),[i]=xF((0,M.useMemo)(()=>[[n,r]],[])),a=i?{minWidth:`${i}px`}:void 0;return(0,N.jsx)(`div`,{className:t.formGrid,children:(0,N.jsxs)(`div`,{className:t.formSection,children:[(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:t.fieldLabelStandard,children:[`Unique Name `,(0,N.jsx)(Yf,{})]}),children:(0,N.jsx)(H,{value:e.uniquename||``,readOnly:!0,appearance:`filled-darker`})}),(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:t.fieldLabelStandard,children:`Name`}),children:(0,N.jsx)(H,{value:e.name||``,readOnly:!0,appearance:`filled-darker`})}),(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:t.fieldLabelStandard,children:`Display Name`}),children:(0,N.jsx)(H,{value:e.displayname||``,readOnly:!0,appearance:`filled-darker`})}),(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:t.fieldLabelStandard,children:`Description`}),children:(0,N.jsx)(cx,{value:e.description||``,readOnly:!0,spellCheck:!1,appearance:`filled-darker`,resize:`vertical`,rows:2})}),(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:t.fieldLabelStandard,children:[`Type `,(0,N.jsx)(Yf,{})]}),children:(0,N.jsx)(H,{value:RF[e.type],readOnly:!0,appearance:`filled-darker`})}),(RF[e.type]===`Entity`||RF[e.type]===`EntityReference`)&&(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:t.fieldLabelStandard,children:[`Logical Entity Name `,(0,N.jsx)(Yf,{})]}),children:(0,N.jsx)(H,{value:e.logicalentityname||`expando`,readOnly:!0,appearance:`filled-darker`})}),(0,N.jsx)(`div`,{className:t.switchColumn,children:(0,N.jsx)(k_,{content:e.isoptional?`True`:`False`,relationship:`description`,positioning:`above-end`,children:(0,N.jsx)(`div`,{className:t.switchRow,children:(0,N.jsx)(qb,{checked:e.isoptional,"aria-disabled":!0,tabIndex:-1,className:t.readOnlySwitch,label:(0,N.jsxs)(`span`,{ref:n,className:t.readOnlySwitchLabel,style:a,children:[(0,N.jsx)(`span`,{children:`Is Optional`}),(0,N.jsx)(Yf,{})]}),labelPosition:`before`})})})})]})})},iI=({parameter:e,editedData:t,onChange:n})=>{let r=Nj(),i=(0,M.useRef)(null),a=(0,M.useRef)(null),[o]=xF((0,M.useMemo)(()=>[[i,a]],[])),s=o?{minWidth:`${o}px`}:void 0,c=e=>{n(t=>mN(t,t=>e(t)))};return(0,N.jsx)(`div`,{className:r.formGrid,children:(0,N.jsxs)(`div`,{className:r.formSection,children:[(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:r.fieldLabelStandard,children:[`Unique Name `,(0,N.jsx)(Yf,{})]}),required:!0,children:(0,N.jsx)(H,{value:e.uniquename||``,readOnly:!0,className:r.disabledInput,appearance:`filled-darker`})}),(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:r.fieldLabelStandard,children:(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Name`})}),children:(0,N.jsx)(H,{value:t.name??``,onChange:e=>c(t=>{t.name=e.target.value??``}),appearance:`filled-darker`})}),(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:r.fieldLabelStandard,children:(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Display Name`})}),children:(0,N.jsx)(H,{value:t.displayname??``,onChange:e=>c(t=>{t.displayname=e.target.value??``}),appearance:`filled-darker`})}),(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:r.fieldLabelStandard,children:(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Description`})}),children:(0,N.jsx)(cx,{spellCheck:!1,value:t.description??``,onChange:e=>c(t=>{t.description=e.target.value??``}),resize:`vertical`,rows:2,appearance:`filled-darker`})}),(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:r.fieldLabelStandard,children:[`Type `,(0,N.jsx)(Yf,{})]}),children:(0,N.jsx)(H,{value:RF[e.type],readOnly:!0,appearance:`filled-darker`})}),(RF[e.type]===`Entity`||RF[e.type]===`EntityReference`)&&(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:r.fieldLabelStandard,children:[`Logical Entity Name `,(0,N.jsx)(Yf,{})]}),children:(0,N.jsx)(H,{value:e.logicalentityname||`expando`,readOnly:!0,appearance:`filled-darker`})}),(0,N.jsx)(`div`,{className:r.switchColumn,children:(0,N.jsx)(k_,{content:e.isoptional?`True`:`False`,relationship:`description`,positioning:`above-end`,children:(0,N.jsx)(`div`,{className:r.switchRow,children:(0,N.jsx)(qb,{checked:e.isoptional,"aria-disabled":!0,tabIndex:-1,className:r.readOnlySwitch,label:(0,N.jsxs)(`span`,{ref:i,className:r.readOnlySwitchLabel,style:s,children:[(0,N.jsx)(`span`,{children:`Is Optional`}),(0,N.jsx)(Yf,{})]}),labelPosition:`before`})})})})]})})},aI=({createData:e,onChange:t,onValidationChange:n})=>{let r=Nj(),i=(0,M.useRef)(null),a=(0,M.useRef)(null),o=(0,M.useRef)(null),s=(0,M.useRef)(!1),[c]=xF((0,M.useMemo)(()=>[[i,a]],[])),l=c?{minWidth:`${c}px`}:void 0,u=gF(),{requestParameters:d}=$F(),f=kF(),p=NF(),{selectedCustomApiId:m}=U(),h=(0,M.useMemo)(()=>zF().filter(e=>u.customapis?.find(e=>e.customapiid===m)?.isfunction?e.displayText!==`Entity`&&e.displayText!==`EntityReference`&&e.displayText!==`EntityCollection`:!0).slice().sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)),[m,u.customapis]),g=(0,M.useMemo)(()=>p.entities.map(e=>({id:e.entityid,displayText:e.logicalname||``,image:null})).sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)),[p.entities]),_=(0,M.useMemo)(()=>!e.uniquename||e.uniquename.trim()===``||e.type===null?{isValid:!1,message:`Please fill all required fields.`}:MF(d,e.uniquename,e=>e.uniquename)?{isValid:!1,message:`Request Parameter named '${e.uniquename}' already exist.`}:{isValid:!0},[e,d]);(0,M.useEffect)(()=>{n?.(_)},[_.isValid,_.message,n]),(0,M.useEffect)(()=>{if(s.current||!f.appsettings||!u.customapis)return;let e=window.setTimeout(()=>{o.current?.focus(),s.current=!0},0);return()=>window.clearTimeout(e)},[f.appsettings,u.customapis]);let v=e=>{t(t=>mN(t,t=>e(t)))},y=(0,M.useCallback)(e=>{let t=u.customapis?.find(e=>e.customapiid===m);return t&&f.appsettings?.requestParameterDefaultName?f.appsettings.requestParameterDefaultName.replace(`{customapiname}`,t.name??``).replace(`{uniquename}`,e):e},[m,u.customapis,f.appsettings]);return!f.appsettings||!u.customapis?(0,N.jsx)(N.Fragment,{children:`Loading...`}):(0,N.jsx)(`div`,{className:r.formGrid,children:(0,N.jsxs)(`div`,{className:r.formSection,children:[(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:r.fieldLabelStandard,children:[(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Unique Name`}),` `,(0,N.jsx)(Yf,{})]}),required:!0,children:(0,N.jsx)(H,{ref:o,appearance:`filled-darker`,value:e.uniquename??``,required:!0,onChange:t=>{let n=t.target.value??``,r=y(e.uniquename??``),i=y(n);v(e=>{let t=e.name??``,a=e.displayname??``;e.uniquename=n,(t===``||t===r)&&(e.name=i),(a===``||a===r)&&(e.displayname=i)})}})}),(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:r.fieldLabelStandard,children:(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Name`})}),children:(0,N.jsx)(H,{appearance:`filled-darker`,required:!0,value:e.name??``,onChange:e=>v(t=>{t.name=e.target.value??``})})}),(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:r.fieldLabelStandard,children:(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Display Name`})}),children:(0,N.jsx)(H,{appearance:`filled-darker`,required:!0,value:e.displayname??``,onChange:e=>v(t=>{t.displayname=e.target.value??``})})}),(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:r.fieldLabelStandard,children:(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Description`})}),children:(0,N.jsx)(cx,{appearance:`filled-darker`,spellCheck:!1,required:!0,value:e.description??``,onChange:e=>v(t=>{t.description=e.target.value??``}),resize:`vertical`,rows:2})}),(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:r.fieldLabelStandard,children:[`Type `,(0,N.jsx)(Yf,{})]}),required:!0,children:(0,N.jsx)(CF,{items:h,initialValue:e.type.toString(),isDisabled:!1,onSelect:e=>{let t=Number(e);v(e=>{e.type=t,e.logicalentityname.length>0&&RF[t]!==`Entity`&&RF[t]!==`EntityReference`&&(e.logicalentityname=``)})}})}),(RF[e.type]===`Entity`||RF[e.type]===`EntityReference`)&&(0,N.jsxs)(V,{label:(0,N.jsxs)(`span`,{className:r.fieldLabelStandard,children:[`Logical Entity Name `,(0,N.jsx)(Yf,{})]}),hint:(0,N.jsx)(N.Fragment,{children:`Leave blank for expando entity`}),children:[p.isFetching&&(0,N.jsx)(H,{value:`Loading entities...`,readOnly:!0,appearance:`filled-darker`}),p.error&&(0,N.jsx)(H,{value:`Error loading entities: ${p.error.message}`,readOnly:!0,appearance:`filled-darker`}),!p.isFetching&&p.entities&&(0,N.jsx)(CF,{items:g,isDisabled:!1,onSelect:e=>{let t=p.entities?.find(t=>t.entityid===e);v(e=>{e.logicalentityname=t?.logicalname||``})}})]}),(0,N.jsx)(`div`,{className:r.switchColumn,children:(0,N.jsx)(k_,{content:e.isoptional?`True`:`False`,relationship:`description`,positioning:`above-end`,children:(0,N.jsx)(`div`,{className:r.switchRow,children:(0,N.jsx)(qb,{checked:e.isoptional,onChange:(e,t)=>v(e=>{e.isoptional=t.checked}),tabIndex:-1,label:(0,N.jsxs)(`span`,{ref:i,className:r.readOnlySwitchLabel,style:l,children:[(0,N.jsx)(`span`,{children:`Is Optional`}),(0,N.jsx)(Yf,{})]}),labelPosition:`before`})})})})]})})},oI=({open:e,createData:t,isSaving:n,onConfirm:r,onCancel:i})=>{let a=Nj(),{solutions:o,isFetching:s}=FF(),{selectedSolutionId:c}=U(),[l,u]=(0,M.useState)(null),d=(0,M.useMemo)(()=>o.filter(e=>!e.ismanaged),[o]),f=(0,M.useMemo)(()=>d.map(e=>({id:e.solutionid,displayText:`${e.friendlyname} (${e.uniquename})`,image:(0,N.jsx)(Zf,{})})).sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)),[d]);return(0,M.useEffect)(()=>{e&&u(d.some(e=>e.solutionid===c)?c:null)},[e,c,d]),(0,N.jsx)(kx,{open:e,modalType:`modal`,children:(0,N.jsx)(uS,{className:a.dialogSurface,children:(0,N.jsxs)(Gx,{children:[(0,N.jsx)(eS,{children:`Confirm Request Parameter Creation`}),(0,N.jsx)(gS,{children:(0,N.jsxs)(`div`,{className:a.dialogContentColumn,children:[(0,N.jsxs)(`div`,{className:a.dialogSection,children:[(0,N.jsx)(gv,{weight:`semibold`,size:`large`,children:`Summary`}),(0,N.jsx)(Ry,{}),(0,N.jsxs)(`div`,{className:a.formGrid,children:[(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Unique Name:`}),(0,N.jsx)(`span`,{children:t.uniquename||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Display Name:`}),(0,N.jsx)(`span`,{children:t.displayname||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Name:`}),(0,N.jsx)(`span`,{children:t.name||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Description:`}),(0,N.jsx)(`span`,{className:a.summaryValue,children:t.description||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Type:`}),(0,N.jsx)(`span`,{children:t.type===null?`Not set`:RF[t.type]||`Unknown`})]}),(t.type===3||t.type===4)&&(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Bound Entity:`}),(0,N.jsx)(`span`,{children:t.logicalentityname||`expando`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Is Optional:`}),(0,N.jsx)(`span`,{children:t.isoptional?`Yes`:`No`})]})]})]}),(0,N.jsx)(Ry,{}),(0,N.jsxs)(`div`,{className:a.dialogSection,children:[(0,N.jsx)(gv,{weight:`semibold`,size:`large`,children:`Add to Solution (Optional)`}),(0,N.jsx)(`p`,{className:a.hintText,children:`Select an unmanaged solution to add the Request Parameter to. If no solution is selected, the Request Parameter will be created in the default solution.`}),s?(0,N.jsx)(Nb,{size:`small`,label:`Loading solutions...`}):(0,N.jsx)(CF,{items:f,initialValue:l??void 0,onSelect:e=>{u(e)}})]})]})}),(0,N.jsxs)(zx,{children:[(0,N.jsx)(K_,{appearance:`secondary`,icon:(0,N.jsx)(hp,{}),onClick:i,disabled:n,children:`Cancel`}),(0,N.jsx)(K_,{appearance:`primary`,icon:n?(0,N.jsx)(Nb,{size:`tiny`}):(0,N.jsx)(ip,{}),onClick:()=>{r(d.find(e=>e.solutionid===l)?.uniquename??null)},disabled:n,children:n?`Creating...`:`Confirm`})]})]})})})},sI=({open:e,requestParameter:t,isDeleting:n,onConfirm:r,onCancel:i})=>{let a=Nj();return t?(0,N.jsx)(kx,{open:e,modalType:`modal`,children:(0,N.jsx)(uS,{className:a.dialogSurface,children:(0,N.jsxs)(Gx,{children:[(0,N.jsx)(eS,{children:`Delete Request Parameter`}),(0,N.jsx)(gS,{children:(0,N.jsxs)(`div`,{className:a.dialogContentColumn,children:[(0,N.jsx)(iO,{intent:`warning`,children:(0,N.jsxs)(EO,{children:[(0,N.jsx)(uO,{children:`Warning`}),`This action cannot be undone. All associated request parameters and response properties will also be deleted.`]})}),(0,N.jsxs)(`div`,{className:a.dialogSection,children:[(0,N.jsx)(gv,{weight:`semibold`,size:`large`,children:`Request Parameter Details`}),(0,N.jsx)(Ry,{}),(0,N.jsxs)(`div`,{className:a.formGrid,children:[(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Unique Name:`}),(0,N.jsx)(`span`,{children:t.uniquename||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Display Name:`}),(0,N.jsx)(`span`,{children:t.displayname||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Name:`}),(0,N.jsx)(`span`,{children:t.name||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Description:`}),(0,N.jsx)(`span`,{className:a.summaryValue,children:t.description||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Type:`}),(0,N.jsx)(`span`,{children:t.type===null?`Not set`:RF[t.type]||`Unknown`})]}),(t.type===3||t.type===4)&&(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Bound Entity:`}),(0,N.jsx)(`span`,{children:t.logicalentityname||`expando`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Is Optional:`}),(0,N.jsx)(`span`,{children:t.isoptional?`Yes`:`No`})]})]})]})]})}),(0,N.jsxs)(zx,{children:[(0,N.jsx)(K_,{appearance:`secondary`,icon:(0,N.jsx)(hp,{}),onClick:i,disabled:n,children:`Cancel`}),(0,N.jsx)(K_,{appearance:`primary`,icon:n?(0,N.jsx)(Nb,{size:`tiny`}):(0,N.jsx)(fp,{}),onClick:r,disabled:n,className:n?void 0:a.deleteButton,children:n?`Deleting...`:`Delete`})]})]})})}):null},cI=({isManaged:e})=>(0,N.jsx)(ym,{appearance:`outline`,color:e?`informative`:`subtle`,shape:`rounded`,icon:e?(0,N.jsx)(Yf,{}):(0,N.jsx)(Zf,{}),size:`large`,children:e?`Managed`:`Unmanaged`}),lI=e=>{switch(e){case`edit`:return{label:`Edit`,color:`warning`,icon:(0,N.jsx)(nf,{})};case`create`:return{label:`Create`,color:`success`,icon:(0,N.jsx)(Kd,{})};default:return{label:`Read`,color:`informative`,icon:(0,N.jsx)(Zd,{})}}},uI=({mode:e,size:t=`large`})=>{let n=lI(e);return(0,N.jsx)(ym,{appearance:`tint`,color:n.color,shape:`rounded`,icon:n.icon,size:t,children:n.label})},dI=({creationRequestToken:e,onCreationRequestHandled:t,editRequestParameterId:n,onEditRequestHandled:r,onActionFinished:i})=>{let a=Nj(),{selectedCustomApiId:o,selectedRequestParameterId:s,setSelectedRequestParameterId:c,setGlobalMessage:l,clearGlobalMessage:u,setEditingComponent:d,editingComponent:f}=U(),p=f!==`none`&&f!==`requestparameter`,[m,h]=(0,M.useState)(`read`),[g,_]=(0,M.useState)(null),[v,y]=(0,M.useState)(null),{customapis:b}=gF(),{requestParameters:x}=$F(),S=tI(),C=eI(),w=nI(),[T,E]=(0,M.useState)(!1),[D,O]=(0,M.useState)(!1),[ee,te]=(0,M.useState)({isValid:!0}),ne=(0,M.useRef)(void 0),re=(0,M.useRef)(null),ie=b.find(e=>e.customapiid===o);(0,M.useEffect)(()=>{m===`create`&&!ee.isValid&&ee.message?l(`request-parameter-create-validation`,{intent:`warning`,title:ee.message,dismissable:!1}):u(`request-parameter-create-validation`)},[m,ee,l,u]),(0,M.useEffect)(()=>()=>{u(`request-parameter-create-validation`)},[u]);let k=x?.find(e=>e.customapirequestparameterid===s);(0,M.useEffect)(()=>{_(k||null)},[k]);let ae=()=>{c(null),y(BF(o)),h(`create`),d(`requestparameter`)};(0,M.useEffect)(()=>{!e||!o||e===ne.current||(ne.current=e,ae(),t?.())},[e,o,t]),(0,M.useEffect)(()=>{!n||!o||n===re.current||s===n||c(n)},[n,o,s,c]),(0,M.useEffect)(()=>{!n||!o||n===re.current||k?.customapirequestparameterid!==n||(re.current=n,c(n),_(k),h(`edit`),d(`requestparameter`),r?.())},[n,r,o,k,d,c]);let oe=()=>{k&&(_(k),h(`edit`),d(`requestparameter`))},se=e=>{y(t=>t&&e(t))},ce=(0,M.useCallback)(e=>{te(e)},[]),le=e=>{_(t=>t&&e(t))},ue=()=>{k&&_(k),h(`read`),d(`none`),i?.()},de=async()=>{if(m===`create`){E(!0);return}await me(null)&&i?.()},fe=async e=>{let t=await me(e);E(!1),t&&i?.()},pe=()=>{E(!1)},me=async e=>{try{if(m===`create`){if(k||!v)return!1;let t=await C.mutateAsync({next:v,solutionUniqueName:e??void 0});t.created&&t.id&&(c(t.id),y(BF(o)))}else if(m===`edit`){if(!k||!g)return!1;await S.mutateAsync({current:k,next:g})}return h(`read`),d(`none`),!0}catch(e){return console.error(`Error saving Request Parameter`,e),!1}},he=()=>{!k||k.ismanaged||O(!0)},ge=async()=>{if(k)try{await w.mutateAsync({requestParameter:k}),c(null),O(!1)}catch(e){console.error(`Error deleting Request Parameter`,e)}},_e=()=>{O(!1)},ve=m===`create`?(0,N.jsx)(aI,{createData:v,onChange:se,onValidationChange:ce}):m===`edit`&&k&&g?(0,N.jsx)(iI,{parameter:k,editedData:g,onChange:le}):m===`read`&&k?(0,N.jsx)(rI,{parameter:k}):(0,N.jsx)(N.Fragment,{}),ye=(0,N.jsxs)(`div`,{className:a.headerActionGroup,children:[(0,N.jsx)(M.Activity,{mode:m===`read`&&ie&&!ie.ismanaged&&!ie._fxexpressionid_value?`visible`:`hidden`,children:(0,N.jsx)(K_,{"aria-label":`New Request Parameter`,appearance:`secondary`,icon:(0,N.jsx)(Gd,{}),onClick:ae,className:a.headerActionButton,children:`New Request Parameter`})}),(0,N.jsx)(M.Activity,{mode:m===`read`&&k&&!k.ismanaged?`visible`:`hidden`,children:(0,N.jsx)(K_,{appearance:`secondary`,icon:(0,N.jsx)(qf,{}),onClick:oe,className:a.headerActionButton,children:`Edit`})}),(0,N.jsx)(M.Activity,{mode:m===`read`&&ie&&k&&!k.ismanaged&&!ie._fxexpressionid_value?`visible`:`hidden`,children:(0,N.jsx)(K_,{appearance:`secondary`,icon:(0,N.jsx)(Mf,{}),onClick:he,className:a.headerActionButton,children:`Delete`})}),(0,N.jsx)(M.Activity,{mode:m===`edit`||m===`create`?`visible`:`hidden`,children:(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(K_,{appearance:`primary`,icon:C.isPending||S.isPending?(0,N.jsx)(Nb,{size:`tiny`}):(0,N.jsx)(Hf,{}),disabled:C.isPending||S.isPending||m===`create`&&!ee.isValid,onClick:de,className:a.headerActionButton,children:C.isPending||S.isPending?`Saving...`:`Save`}),(0,N.jsx)(K_,{appearance:`secondary`,icon:(0,N.jsx)(hp,{}),disabled:C.isPending||S.isPending,onClick:ue,className:a.headerActionButton,children:`Cancel`})]})})]});return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(MT,{className:A(a.card,p&&a.lockedSection),children:[(0,N.jsx)(RT,{header:(0,N.jsx)(`div`,{className:a.cardHeaderContainer,children:(0,N.jsxs)(`div`,{className:a.cardHeaderRow,children:[(0,N.jsx)(nb,{alt:`Request Parameters`,src:GF,height:40,width:40}),(0,N.jsx)(`h3`,{className:a.headingNoMargin,children:`Request Parameters (Input)`}),(0,N.jsx)(uI,{mode:m}),k&&(0,N.jsx)(cI,{isManaged:k.ismanaged})]})}),action:(0,N.jsx)(N.Fragment,{children:ye})}),(0,N.jsx)(`div`,{className:a.cardBody,children:(0,N.jsxs)(`div`,{className:a.splitContainer,children:[(0,N.jsx)(`div`,{className:a.splitPaneContent,children:(0,N.jsx)(ZF,{requestParameters:x})}),(0,N.jsx)(Ry,{inset:!0,vertical:!0}),(0,N.jsx)(`div`,{className:a.splitPaneContent,children:ve})]})})]}),v&&(0,N.jsx)(oI,{open:T,createData:v,isSaving:C.isPending,onConfirm:fe,onCancel:pe}),(0,N.jsx)(sI,{open:D,requestParameter:k??null,isDeleting:w.isPending,onConfirm:ge,onCancel:_e})]})},fI={},pI={customapi:`Custom API`,entity:`Table`,workflow:`Custom Process Action`},mI={entity:(0,M.createElement)(Fd),customapi:(0,M.createElement)(zd),workflow:(0,M.createElement)(Yd)},hI=e=>e[`_object_value@Microsoft.Dynamics.CRM.lookuplogicalname`]||null,gI=e=>{let t=hI(e);return t?pI[t]??t:`Unknown`},_I=e=>{let t=hI(e);return t?mI[t]??null:null},vI={0:`Active`,1:`Inactive`},yI={name:``,_catalogid_value:``,_object_value:``},bI=class e extends QP{entityName=`catalog`;entityCollectionName=`catalogs`;componenttype=10017;static get CatalogLookups(){return{_parentcatalogid_value:[`ParentCatalogId`,new e]}}async fetchAllCatalogs(){return(await window.dataverseAPI.queryData(this.entityCollectionName)).value}async fetchSolutionCatalogs(e){return(await window.dataverseAPI.fetchXmlQuery(`
22
+ <fetch>
23
+ <entity name='${this.entityName}'>
24
+ <link-entity name='solutioncomponent' from='objectid' to='${this.entityName}id' link-type='inner' alias='sc'>
25
+ <filter>
26
+ <condition attribute='solutionid' operator='eq' value='${e}' />
27
+ </filter>
28
+ </link-entity>
29
+ </entity>
30
+ </fetch>
31
+ `)).value}async fetchCategoryChildren(e){return(await window.dataverseAPI.fetchXmlQuery(`
32
+ <fetch>
33
+ <entity name='${this.entityName}'>
34
+ <filter>
35
+ <condition attribute='parentcatalogid' operator='eq' value='${e}' />
36
+ </filter>
37
+ </entity>
38
+ </fetch>
39
+ `)).value}async createCatalog(t,n){let r=cF(t,{lookupKeys:e.CatalogLookups}),i=await window.dataverseAPI.create(this.entityName,r);return n&&i.id&&await this.addToSolution(i.id,n),{created:!0,payload:r,id:i.id}}async updateCatalog(t,n){let r=lF(t,n,{lookupKeys:e.CatalogLookups});return Object.keys(r).length===0?{updated:!1,payload:r}:(await window.dataverseAPI.update(this.entityName,t.catalogid,r),{updated:!0,payload:r})}},xI=new bI,SI=e=>{let{connection:t,isLoadingConnection:n,instanceId:r}=U(),i=e??``,{data:a,status:o,error:s,isFetching:c}=XP({queryKey:pF.catalogs(t?.id??``,r,i),queryFn:async()=>i===``?await xI.fetchAllCatalogs():await xI.fetchSolutionCatalogs(i),enabled:!!t&&!n,staleTime:1/0});return{catalogs:a||[],status:o,error:s,isFetching:c}},CI=()=>{let{selectedSolutionId:e}=U();return SI(e)},wI=()=>SI(null),TI=()=>{let{catalogs:e,status:t,error:n,isFetching:r}=CI();return{rootCatalogs:e.filter(e=>!e._parentcatalogid_value)||[],status:t,error:n,isFetching:r}},EI=()=>{let e=FP(),{addLog:t}=U(),{connection:n,instanceId:r,selectedSolutionId:i}=U();return ZP({mutationFn:async({next:e,solutionUniqueName:n})=>{try{let r=await xI.createCatalog(e,n);return t(`Catalog '${e.uniquename}' created successfully${n?` in solution '${n}'`:``}`,`success`),mF({title:`Catalog Created`,body:`'${e.uniquename}' created successfully`,type:`success`,duration:3e3}),r}catch(e){throw console.error(`Error creating Catalog`,e),t(`Failed to create Catalog. ${e}`,`error`),mF({title:`Creation Failed`,body:`Failed to create Catalog. ${e}`,type:`error`,duration:5e3}),e}},onSuccess:(t,a)=>{t.created&&(e.invalidateQueries({queryKey:pF.catalogs(n?.id??``,r,i??``)}),i&&e.invalidateQueries({queryKey:pF.catalogs(n?.id??``,r,``)}),a.solutionId!==void 0&&a.solutionId!==i&&e.invalidateQueries({queryKey:pF.catalogs(n?.id??``,r,a.solutionId??``)}),a.next._parentcatalogid_value&&e.invalidateQueries({queryKey:pF.catalogChildren(a.next._parentcatalogid_value,n?.id??``,r)}))}})},DI=()=>{let e=FP(),{addLog:t}=U(),{connection:n,instanceId:r,selectedSolutionId:i}=U();return ZP({mutationFn:async({current:e,next:n})=>{try{let r=await xI.updateCatalog(e,n);return r.updated?(t(`Catalog '${e.uniquename}' updated successfully`,`success`),mF({title:`Catalog Updated`,body:`'${e.uniquename}' updated successfully`,type:`success`,duration:3e3}),r):(t(`No changes to save`,`warning`),mF({title:`No Changes`,body:`No changes to save`,type:`warning`,duration:3e3}),r)}catch(e){throw console.error(`Error saving Catalog`,e),t(`Failed to save Catalog changes. ${e}`,`error`),mF({title:`Update Failed`,body:`Failed to save Catalog changes. ${e}`,type:`error`,duration:5e3}),e}},onSuccess:(t,a)=>{t.updated&&(e.invalidateQueries({queryKey:pF.catalogs(n?.id??``,r,i??``)}),i&&e.invalidateQueries({queryKey:pF.catalogs(n?.id??``,r,``)}),a.current._parentcatalogid_value&&e.invalidateQueries({queryKey:pF.catalogChildren(a.current._parentcatalogid_value,n?.id??``,r)}))}})},OI=()=>{let e=FP(),{addLog:t}=U(),{connection:n,instanceId:r,selectedSolutionId:i}=U();return ZP({mutationFn:async({catalog:e})=>{try{let n=await xI.deleteRecord(e.catalogid);return t(`Catalog '${e.uniquename}' deleted successfully`,`success`),mF({title:`Catalog Deleted`,body:`'${e.uniquename}' deleted successfully`,type:`success`,duration:3e3}),n}catch(e){throw console.error(`Error deleting Catalog`,e),t(`Failed to delete Catalog. ${e}`,`error`),mF({title:`Deletion Failed`,body:`Failed to delete Catalog. ${e}`,type:`error`,duration:5e3}),e}},onSuccess:(t,a)=>{t.deleted&&(e.invalidateQueries({queryKey:pF.catalogs(n?.id??``,r,i??``)}),i&&e.invalidateQueries({queryKey:pF.catalogs(n?.id??``,r,``)}),a.catalog._parentcatalogid_value&&e.invalidateQueries({queryKey:pF.catalogChildren(a.catalog._parentcatalogid_value,n?.id??``,r)}),e.invalidateQueries({queryKey:pF.catalogChildren(a.catalog.catalogid,n?.id??``,r)}))}})},kI=new class e extends QP{entityName=`catalogassignment`;entityCollectionName=`catalogassignments`;componenttype=10018;static get CatalogAssignmentLookups(){return{_catalogid_value:[`CatalogId`,new bI]}}async fetchAllCatalogAssignments(){return(await window.dataverseAPI.queryData(this.entityCollectionName)).value}async fetchSolutionAssignments(e){return(await window.dataverseAPI.fetchXmlQuery(`
40
+ <fetch>
41
+ <entity name='${this.entityName}'>
42
+ <link-entity name='solutioncomponent' from='objectid' to='${this.entityName}id' link-type='inner' alias='sc'>
43
+ <filter>
44
+ <condition attribute='solutionid' operator='eq' value='${e}' />
45
+ </filter>
46
+ </link-entity>
47
+ </entity>
48
+ </fetch>
49
+ `)).value}async fetchAssignmentsByCatalog(e){return(await window.dataverseAPI.fetchXmlQuery(`
50
+ <fetch>
51
+ <entity name='${this.entityName}'>
52
+ <filter>
53
+ <condition attribute='catalogid' operator='eq' value='${e}' />
54
+ </filter>
55
+ </entity>
56
+ </fetch>
57
+ `)).value}async createCatalogAssignment(t,n,r){let i=cF(t,{lookupKeys:e.CatalogAssignmentLookups,skipKeys:[`_object_value`]});if(t._object_value){let e=this.getCollectionName(n),r=this.getPolymorphicOdata(n);i[`${r}@odata.bind`]=`${e}(${t._object_value})`}let a=await window.dataverseAPI.create(this.entityName,i);return r&&a.id&&await this.addToSolution(a.id,r),{created:!0,payload:i,id:a.id}}async updateCatalogAssignment(e,t){let n=lF(e,t,{lookupKeys:fI});return Object.keys(n).length===0?{updated:!1,payload:n}:(await window.dataverseAPI.update(this.entityName,e.catalogassignmentid,n),{updated:!0,payload:n})}getCollectionName(e){return{customapi:`customapis`,workflow:`workflows`,entity:`entities`}[e]||`${e}s`}getPolymorphicOdata(e){return{customapi:`CustomAPIId`,workflow:`WorkflowId`,entity:`EntityId`}[e]}},AI=()=>{let{connection:e,isLoadingConnection:t,instanceId:n,selectedSolutionId:r}=U(),{data:i,status:a,error:o,isFetching:s}=XP({queryKey:pF.catalogassignments(e?.id??``,n,r??``),queryFn:async()=>await kI.fetchAllCatalogAssignments(),enabled:!!e&&!t,staleTime:1/0});return{catalogAssignments:i||[],allCatalogAssignments:i||[],status:a,error:o,isFetching:s}},jI=e=>{let{connection:t,isLoadingConnection:n,instanceId:r}=U(),{data:i,status:a,error:o,isFetching:s,refetch:c}=XP({queryKey:pF.catalogassignmentsByCatalog(e??``,t?.id??``,r),queryFn:async()=>e?await kI.fetchAssignmentsByCatalog(e):[],enabled:!!t&&!n&&!!e,staleTime:1/0});return{assignments:i||[],status:a,error:o,isFetching:s,refetch:c}},MI=e=>e?.displayname||e?.name||`Unknown Catalog`,NI=(e,t)=>{let n=t.get(e)??null;if(!n)return{category:null,rootCatalog:null};let r=n,i=n,a=new Set([n.catalogid]);for(;i._parentcatalogid_value;){let e=t.get(i._parentcatalogid_value);if(!e||a.has(e.catalogid))break;r=e,i=e,a.add(e.catalogid)}return{category:n,rootCatalog:r}},PI=(e,t)=>e&&t&&e.catalogid!==t.catalogid?`${MI(e)} → ${MI(t)}`:MI(t??e),FI=e=>{let{catalogAssignments:t,status:n,error:r,isFetching:i}=AI(),{catalogs:a,isFetching:o}=wI(),s=(0,M.useMemo)(()=>new Map(a.map(e=>[e.catalogid,e])),[a]);return{businessEventAssignments:(0,M.useMemo)(()=>e?t.filter(t=>t._object_value===e&&hI(t)===`customapi`).map(e=>{let{category:t,rootCatalog:n}=NI(e._catalogid_value,s);return{assignment:e,category:t,rootCatalog:n,assignmentLabel:e.name||e[`_object_value@OData.Community.Display.V1.FormattedValue`]||`Unnamed Assignment`,pathLabel:PI(n,t)}}).sort((e,t)=>{let n=e.pathLabel.localeCompare(t.pathLabel);return n===0?e.assignmentLabel.localeCompare(t.assignmentLabel):n}):[],[t,s,e]),status:n,error:r,isFetching:i||o}},II=()=>{let e=FP(),{addLog:t}=U(),{connection:n,instanceId:r,selectedSolutionId:i}=U();return ZP({mutationFn:async({next:e,objectEntityName:n,solutionUniqueName:r})=>{try{let i=await kI.createCatalogAssignment(e,n,r);return t(`Catalog Assignment '${e.name}' created successfully${r?` in solution '${r}'`:``}`,`success`),mF({title:`Assignment Created`,body:`'${e.name}' created successfully`,type:`success`,duration:3e3}),i}catch(e){throw console.error(`Error creating Catalog Assignment`,e),t(`Failed to create Catalog Assignment. ${e}`,`error`),mF({title:`Creation Failed`,body:`Failed to create Catalog Assignment. ${e}`,type:`error`,duration:5e3}),e}},onSuccess:(t,a)=>{t.created&&(e.invalidateQueries({queryKey:pF.catalogassignments(n?.id??``,r,i??``)}),a.next._catalogid_value&&e.invalidateQueries({queryKey:pF.catalogassignmentsByCatalog(a.next._catalogid_value,n?.id??``,r)}))}})},LI=()=>{let e=FP(),{addLog:t}=U(),{connection:n,instanceId:r,selectedSolutionId:i}=U();return ZP({mutationFn:async({current:e,next:n})=>{try{let r=await kI.updateCatalogAssignment(e,n);return r.updated?(t(`Catalog Assignment '${e.name}' updated successfully`,`success`),mF({title:`Assignment Updated`,body:`'${e.name}' updated successfully`,type:`success`,duration:3e3}),r):(t(`No changes to save`,`warning`),mF({title:`No Changes`,body:`No changes to save`,type:`warning`,duration:3e3}),r)}catch(e){throw console.error(`Error saving Catalog Assignment`,e),t(`Failed to save Catalog Assignment changes. ${e}`,`error`),mF({title:`Update Failed`,body:`Failed to save Catalog Assignment changes. ${e}`,type:`error`,duration:5e3}),e}},onSuccess:(t,a)=>{t.updated&&(e.invalidateQueries({queryKey:pF.catalogassignments(n?.id??``,r,i??``)}),a.current._catalogid_value&&e.invalidateQueries({queryKey:pF.catalogassignmentsByCatalog(a.current._catalogid_value,n?.id??``,r)}))}})},RI=()=>{let e=FP(),{addLog:t}=U(),{connection:n,instanceId:r,selectedSolutionId:i}=U();return ZP({mutationFn:async({assignment:e})=>{try{let n=await kI.deleteRecord(e.catalogassignmentid);return t(`Catalog Assignment '${e.name}' deleted successfully`,`success`),mF({title:`Assignment Deleted`,body:`'${e.name}' deleted successfully`,type:`success`,duration:3e3}),n}catch(e){throw console.error(`Error deleting Catalog Assignment`,e),t(`Failed to delete Catalog Assignment. ${e}`,`error`),mF({title:`Deletion Failed`,body:`Failed to delete Catalog Assignment. ${e}`,type:`error`,duration:5e3}),e}},onSuccess:(t,a)=>{t.deleted&&(e.invalidateQueries({queryKey:pF.catalogassignments(n?.id??``,r,i??``)}),a.assignment._catalogid_value&&e.invalidateQueries({queryKey:pF.catalogassignmentsByCatalog(a.assignment._catalogid_value,n?.id??``,r)}))}})},zI=()=>{let e=Nj(),{connection:t,addLog:n,setSelectedSolutionId:r,setSelectedCustomApiId:i,selectedSolutionId:a,selectedCustomApiId:o,editingComponent:s,selectedNavItem:c,pendingManagedFilterHandoff:l,setPendingManagedFilterHandoff:u,setCurrentCustomApiSelectionInit:d}=U(),f=FF(),p=gF(),m=AI(),{appsettings:h}=kF(),g=s!==`none`,[_,v]=(0,M.useState)(!0),[y,b]=(0,M.useState)(hN.customApiSelectionInit),[x,S]=(0,M.useState)(`all`),[C,w]=(0,M.useState)(!1),[T,E]=(0,M.useState)(!1),D=(0,M.useRef)(!1);(0,M.useEffect)(()=>{(o||s===`customapi`)&&v(!1)},[o,s]),(0,M.useEffect)(()=>{D.current=!1,b(hN.customApiSelectionInit)},[t?.id]),(0,M.useEffect)(()=>{D.current||b(h?.customApiSelectionInit??hN.customApiSelectionInit)},[h?.customApiSelectionInit,t?.id]),(0,M.useEffect)(()=>{!l||l.target!==`customapi`||c!==`customapi`&&c!==`customapitester`||(D.current=!0,b(l.value),u(null))},[l,c,u]),(0,M.useEffect)(()=>{d(y)},[y,d]);let O=e=>{D.current=!0,b(e)},ee=new Set(m.catalogAssignments.filter(e=>e._object_value).map(e=>e._object_value)),te=+!!a+(y===`all`?0:1)+ +!!C+ +!!T,ne=f.solutions?.filter(e=>x===`all`||e.ismanaged&&x===`managed`||!e.ismanaged&&x===`unmanaged`)??[],re=(0,M.useMemo)(()=>{let e=[];if(a){let t=f.solutions?.find(e=>e.solutionid===a);t&&e.push((0,N.jsxs)(ym,{appearance:`outline`,size:`small`,children:[t.ismanaged?(0,N.jsx)(of,{}):(0,N.jsx)(sf,{}),` `,t.friendlyname]},`solution`))}return y!==`all`&&e.push((0,N.jsxs)(ym,{appearance:`outline`,size:`small`,children:[y===`managed`?(0,N.jsx)(of,{}):(0,N.jsx)(sf,{}),` `,y===`managed`?`Managed`:`Unmanaged`,` APIs`]},`customapi-managed`)),C&&e.push((0,N.jsxs)(ym,{appearance:`filled`,color:`informative`,size:`small`,children:[(0,N.jsx)($d,{}),` PowerFx`]},`powerfx`)),T&&e.push((0,N.jsxs)(ym,{appearance:`filled`,color:`informative`,size:`small`,children:[(0,N.jsx)(rf,{}),` Business Event`]},`businessevent`)),e},[a,y,C,T,f.solutions]),ie=p.customapis?.filter(e=>(y===`all`||e.ismanaged&&y===`managed`||!e.ismanaged&&y===`unmanaged`)&&(!C||e._fxexpressionid_value)&&(!T||ee.has(e.customapiid)))??[];return(0,N.jsx)(MT,{className:A(e.card,g&&e.lockedSection),children:(0,N.jsxs)(`div`,{className:e.selectorGrid,children:[(0,N.jsx)(`div`,{className:e.selectorColumn,children:(0,N.jsxs)(V,{label:(0,N.jsx)(`span`,{className:e.semiBoldLabel,children:`Selected Custom API`}),children:[p.isFetching&&(0,N.jsx)(H,{appearance:`filled-darker`,value:`Loading custom apis...`,readOnly:!0}),p.error&&(0,N.jsx)(H,{value:`Error loading custom apis: ${p.error.message}`,readOnly:!0,appearance:`filled-darker`}),!p.isFetching&&p.customapis&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(CF,{items:ie.map(e=>({id:e.customapiid,displayText:`${e.name} (${e.uniquename})`,image:e.ismanaged?(0,N.jsx)(of,{}):(0,N.jsx)(sf,{})})).sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)),initialValue:p.customapis.find(e=>e.customapiid===o)?.customapiid||``,onSelect:e=>{i(e),e?n(`Custom API selected: ${e}`,`info`):n(`Custom API selection cleared`,`warning`)}}),ie.length===0&&(0,N.jsx)($b,{className:e.hintTextItalic,children:`No Custom APIs match your filters.`})]})]})}),(0,N.jsxs)(`div`,{className:A(e.selectorColumn,e.subtleBorderedBox),children:[(0,N.jsxs)(K_,{appearance:`subtle`,icon:_?(0,N.jsx)(kf,{}):(0,N.jsx)(xf,{}),onClick:()=>v(!_),size:`small`,className:e.filterToggleButton,children:[`Filters `,te>0?`(${te})`:``]}),!_&&re.length>0&&(0,N.jsx)(`div`,{className:e.badgeContainer,children:re}),_&&(0,N.jsx)(`div`,{className:e.flexColumnM,children:(0,N.jsxs)(`div`,{className:e.filterSubsection,children:[(0,N.jsxs)(V,{label:(0,N.jsxs)(`div`,{className:e.fieldLabelWithToggle,children:[(0,N.jsx)(`span`,{className:e.semiBoldLabel,children:`Solution`}),(0,N.jsx)(DF,{value:x,onChange:S})]}),children:[f.isFetching&&(0,N.jsx)(H,{appearance:`filled-darker`,value:`Loading solutions...`,readOnly:!0}),f.error&&(0,N.jsx)(H,{appearance:`filled-darker`,value:`Error loading solutions: ${f.error.message}`,readOnly:!0}),!f.isFetching&&f.solutions&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(CF,{items:ne.map(e=>({id:e.solutionid,displayText:`${e.friendlyname} (${e.uniquename})`,image:e.ismanaged?(0,N.jsx)(of,{}):(0,N.jsx)(sf,{})})).sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)),initialValue:f.solutions.find(e=>e.solutionid===a)?.solutionid||``,onSelect:e=>{r(e),n(e?`Solution selected: ${e}`:`Solution selection cleared`,`info`)}}),ne.length===0&&(0,N.jsx)($b,{className:e.hintTextItalic,children:`No solutions match your filter.`})]})]}),(0,N.jsx)(V,{label:(0,N.jsx)(`div`,{className:e.fieldLabelWithToggle,children:(0,N.jsx)(`span`,{className:e.semiBoldLabel,children:`Custom API filters`})}),children:(0,N.jsxs)(`div`,{className:e.flexColumn,style:{alignItems:`flex-start`},children:[(0,N.jsx)(DF,{value:y,onChange:O}),(0,N.jsxs)(`div`,{className:e.flexRow,style:{gap:`8px`},children:[(0,N.jsx)(nv,{appearance:C?`primary`:`secondary`,size:`small`,shape:`circular`,icon:C?(0,N.jsx)($d,{}):(0,N.jsx)(ef,{}),checked:C,onClick:()=>w(!C),title:`PowerFx`,children:`PowerFx`}),(0,N.jsx)(nv,{appearance:T?`primary`:`secondary`,size:`small`,shape:`circular`,icon:T?(0,N.jsx)(rf,{}):(0,N.jsx)(af,{}),checked:T,onClick:()=>E(!T),title:`Business Event`,children:`Business Event`})]})]})})]})})]})]})})},BI=new class extends QP{entityName=`customapiresponseproperty`;entityCollectionName=`customapiresponseproperties`;componenttype=10022;async createCustomApiResponseProperty(e,t){let n=cF(e,{lookupKeys:VF}),r=await window.dataverseAPI.create(this.entityName,n);return t&&r.id&&await this.addToSolution(r.id,t),{created:!0,payload:n,id:r.id}}async updateCustomApiResponseProperty(e,t){let n=lF(e,t);return Object.keys(n).length===0?{updated:!1,payload:n}:(await window.dataverseAPI.update(this.entityName,e.customapiresponsepropertyid,n),{updated:!0,payload:n})}},VI=()=>{let{connection:e,isLoadingConnection:t,instanceId:n,selectedCustomApiId:r}=U(),{data:i,status:a,error:o,isFetching:s}=XP({queryKey:pF.responseproperties(r??``,e?.id??``,n),queryFn:async()=>window.dataverseAPI.queryData(`customapiresponseproperties?$filter=_customapiid_value eq ${r}`),enabled:!!e&&!t&&!!r,staleTime:1/0});return{responseProperties:i?.value||[],status:a,error:o,isFetching:s}},HI=()=>{let e=FP(),{connection:t,addLog:n,instanceId:r,selectedCustomApiId:i}=U();return ZP({mutationFn:async({next:e,solutionUniqueName:t})=>{try{let r=await BI.createCustomApiResponseProperty(e,t);return n(`Custom API Response Property '${e.uniquename}' created successfully`,`success`),mF({title:`Response Property Created`,body:`'${e.uniquename}' created successfully`,type:`success`,duration:3e3}),r}catch(e){throw console.error(`Error creating Custom API Response Property`,e),n(`Failed to create Custom API Response Property. ${e}`,`error`),mF({title:`Creation Failed`,body:`Failed to create Response Property. ${e}`,type:`error`,duration:5e3}),e}},onSuccess:()=>{e.invalidateQueries({queryKey:pF.responseproperties(i??``,t?.id??``,r)})}})},UI=()=>{let e=FP(),{connection:t,addLog:n,instanceId:r,selectedCustomApiId:i}=U();return ZP({mutationFn:async({current:e,next:t})=>{try{let r=await BI.updateCustomApiResponseProperty(e,t);return r.updated?(n(`Custom API Response Property '${e.uniquename}' updated successfully`,`success`),mF({title:`Response Property Updated`,body:`'${e.uniquename}' updated successfully`,type:`success`,duration:3e3}),r):(n(`No changes to save`,`warning`),mF({title:`No Changes`,body:`No changes to save`,type:`warning`,duration:3e3}),r)}catch(e){throw console.error(`Error saving Custom API Response Property`,e),n(`Failed to save Custom API Response Property changes. ${e}`,`error`),mF({title:`Update Failed`,body:`Failed to save Response Property changes. ${e}`,type:`error`,duration:5e3}),e}},onSuccess:()=>{e.invalidateQueries({queryKey:pF.responseproperties(i??``,t?.id??``,r)})}})},WI=()=>{let e=FP(),{addLog:t}=U(),{connection:n,instanceId:r,selectedCustomApiId:i}=U();return ZP({mutationFn:async({responseProperty:e})=>{try{let n=await BI.deleteRecord(e.customapiresponsepropertyid);return t(`Response Property '${e.uniquename}' deleted successfully`,`success`),mF({title:`Response Property Deleted`,body:`'${e.uniquename}' deleted successfully`,type:`success`,duration:3e3}),n}catch(e){throw console.error(`Error deleting Response Property`,e),t(`Failed to delete Response Property. ${e}`,`error`),mF({title:`Deletion Failed`,body:`Failed to delete Response Property. ${e}`,type:`error`,duration:5e3}),e}},onSuccess:()=>{e.invalidateQueries({queryKey:pF.responseproperties(i??``,n?.id??``,r)})}})},GI=({responseProperties:e})=>{let t=Nj(),{setSelectedResponsePropertyId:n,selectedResponsePropertyId:r}=U(),[i,a]=(0,M.useState)(()=>new Set),o=(e,t)=>{a(e=>e.size===t.selectedItems.size&&Array.from(e).every(e=>t.selectedItems.has(e))?e:t.selectedItems)};(0,M.useEffect)(()=>{let[e]=Array.from(i);n(e??null)},[i,n]),(0,M.useEffect)(()=>{a(t=>!r||!e.some(e=>e.customapiresponsepropertyid===r)?t.size?new Set:t:t.size===1&&t.has(r)?t:new Set([r]))},[e,r]);let s=[aC({columnId:`uniquename`,compare:(e,t)=>e.name.localeCompare(t.name),renderHeaderCell:()=>`Unique Name`,renderCell:e=>(0,N.jsx)(xw,{children:e.uniquename})}),aC({columnId:`type`,compare:(e,t)=>HF[e.type].localeCompare(HF[t.type]),renderHeaderCell:()=>`Type`,renderCell:e=>(0,N.jsx)(xw,{children:HF[e.type]})})];return(0,N.jsx)(`div`,{className:t.listContainer,children:(0,N.jsxs)($w,{items:e.sort((e,t)=>e.uniquename.localeCompare(t.uniquename)),columns:s,selectionMode:`single`,selectedItems:i,sortable:!0,onSelectionChange:o,getRowId:e=>e.customapiresponsepropertyid,resizableColumns:!0,columnSizingOptions:{name:{defaultWidth:250,minWidth:250,idealWidth:250},type:{minWidth:120,defaultWidth:120}},children:[(0,N.jsx)(iT,{children:(0,N.jsx)(Hw,{children:({renderHeaderCell:e})=>(0,N.jsx)(uT,{children:e()})})}),(0,N.jsx)(qw,{children:({item:e,rowId:t})=>(0,N.jsx)(Hw,{selectionCell:{radioIndicator:{"aria-label":`Select row`}},children:({renderCell:t})=>(0,N.jsx)(Aw,{children:t(e)})},t)})]})})},KI=({createData:e,onChange:t,onValidationChange:n})=>{let r=Nj(),i=(0,M.useRef)(null),a=(0,M.useRef)(!1),o=gF(),{responseProperties:s}=VI(),c=kF(),l=NF(),{selectedCustomApiId:u}=U(),d=(0,M.useMemo)(()=>UF().slice().sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)),[]),f=(0,M.useMemo)(()=>l.entities.map(e=>({id:e.entityid,displayText:e.logicalname||``,image:null})).sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)),[l.entities]),p=(0,M.useMemo)(()=>!e.uniquename||e.uniquename.trim()===``||e.type===null?{isValid:!1,message:`Please fill all required fields.`}:MF(s,e.uniquename,e=>e.uniquename)?{isValid:!1,message:`Response Property named '${e.uniquename}' already exist.`}:{isValid:!0},[e,s]);(0,M.useEffect)(()=>{n?.(p)},[p.isValid,p.message,n]),(0,M.useEffect)(()=>{if(a.current||!c.appsettings||!o.customapis)return;let e=window.setTimeout(()=>{i.current?.focus(),a.current=!0},0);return()=>window.clearTimeout(e)},[c.appsettings,o.customapis]);let m=e=>{t(t=>mN(t,t=>e(t)))},h=(0,M.useCallback)(e=>{let t=o.customapis?.find(e=>e.customapiid===u);return t&&c.appsettings?.responsePropertyDefaultName?c.appsettings.responsePropertyDefaultName.replace(`{customapiname}`,t.name??``).replace(`{uniquename}`,e):e},[u,o.customapis,c.appsettings]);return!c.appsettings||!o.customapis?(0,N.jsx)(N.Fragment,{children:`Loading...`}):(0,N.jsx)(`div`,{className:r.formGrid,children:(0,N.jsxs)(`div`,{className:r.formSection,children:[(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:r.fieldLabelStandard,children:[(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Unique Name`}),` `,(0,N.jsx)(Yf,{})]}),required:!0,children:(0,N.jsx)(H,{ref:i,value:e.uniquename??``,appearance:`filled-darker`,onChange:t=>{let n=t.target.value??``,r=h(e.uniquename??``),i=h(n);m(t=>{t.uniquename=n;let a=e.name??``;(a===``||a===r)&&(t.name=i);let o=e.displayname??``;(o===``||o===r)&&(t.displayname=i)})}})}),(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:r.fieldLabelStandard,children:(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Name`})}),children:(0,N.jsx)(H,{value:e.name??``,onChange:e=>m(t=>{t.name=e.target.value??``}),appearance:`filled-darker`})}),(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:r.fieldLabelStandard,children:(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Display Name`})}),children:(0,N.jsx)(H,{value:e.displayname??``,onChange:e=>m(t=>{t.displayname=e.target.value??``}),appearance:`filled-darker`})}),(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:r.fieldLabelStandard,children:(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Description`})}),children:(0,N.jsx)(cx,{spellCheck:!1,value:e.description??``,onChange:e=>m(t=>{t.description=e.target.value??``}),resize:`vertical`,rows:2,appearance:`filled-darker`})}),(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:r.fieldLabelStandard,children:[`Type `,(0,N.jsx)(Yf,{})]}),required:!0,children:(0,N.jsx)(CF,{items:d,initialValue:e.type.toString(),isDisabled:!1,onSelect:e=>{let t=Number(e);m(e=>{e.type=t,e.logicalentityname.length>0&&HF[t]!==`Entity`&&HF[t]!==`EntityReference`&&(e.logicalentityname=``)})}})}),(HF[e.type]===`Entity`||HF[e.type]===`EntityReference`)&&(0,N.jsxs)(V,{label:(0,N.jsxs)(`span`,{className:r.fieldLabelStandard,children:[`Logical Entity Name `,(0,N.jsx)(Yf,{})]}),hint:(0,N.jsx)(N.Fragment,{children:`Leave blank for expando entity`}),children:[l.isFetching&&(0,N.jsx)(H,{value:`Loading entities...`,readOnly:!0,appearance:`filled-darker`}),l.error&&(0,N.jsx)(H,{value:`Error loading entities: ${l.error.message}`,readOnly:!0,appearance:`filled-darker`}),!l.isFetching&&l.entities&&(0,N.jsx)(CF,{items:f,isDisabled:!1,onSelect:e=>{let t=l.entities?.find(t=>t.entityid===e);m(e=>{e.logicalentityname=t?.logicalname||``})}})]})]})})},qI=({property:e,editedData:t,onChange:n})=>{let r=Nj(),i=e=>{n(t=>mN(t,t=>e(t)))};return(0,N.jsx)(`div`,{className:r.formGrid,children:(0,N.jsxs)(`div`,{className:r.formSection,children:[(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:r.fieldLabelStandard,children:[`Unique Name `,(0,N.jsx)(Yf,{})]}),required:!0,children:(0,N.jsx)(H,{value:e.uniquename||``,readOnly:!0,appearance:`filled-darker`,className:r.disabledInput})}),(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:r.fieldLabelStandard,children:(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Name`})}),children:(0,N.jsx)(H,{value:t.name??``,onChange:e=>i(t=>{t.name=e.target.value??``}),appearance:`filled-darker`})}),(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:r.fieldLabelStandard,children:(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Display Name`})}),children:(0,N.jsx)(H,{value:t.displayname??``,onChange:e=>i(t=>{t.displayname=e.target.value??``}),appearance:`filled-darker`})}),(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:r.fieldLabelStandard,children:(0,N.jsx)(`span`,{className:r.semiBoldLabel,children:`Description`})}),children:(0,N.jsx)(cx,{spellCheck:!1,value:t.description??``,onChange:e=>i(t=>{t.description=e.target.value??``}),resize:`vertical`,rows:2,appearance:`filled-darker`})}),(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:r.fieldLabelStandard,children:[`Type `,(0,N.jsx)(Yf,{})]}),children:(0,N.jsx)(H,{value:HF[e.type],readOnly:!0,appearance:`filled-darker`})}),(HF[e.type]===`Entity`||HF[e.type]===`EntityReference`)&&(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:r.fieldLabelStandard,children:[`Logical Entity Name `,(0,N.jsx)(Yf,{})]}),children:(0,N.jsx)(H,{value:e.logicalentityname||`expando`,readOnly:!0,className:r.disabledInput,appearance:`filled-darker`})})]})})},JI=({property:e})=>{let t=Nj();return(0,N.jsx)(`div`,{className:t.formGrid,children:(0,N.jsxs)(`div`,{className:t.formSection,children:[(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:t.fieldLabelStandard,children:[`Unique Name `,(0,N.jsx)(Yf,{})]}),children:(0,N.jsx)(H,{value:e.uniquename||``,readOnly:!0,appearance:`filled-darker`})}),(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:t.fieldLabelStandard,children:`Name`}),children:(0,N.jsx)(H,{value:e.name||``,readOnly:!0,appearance:`filled-darker`})}),(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:t.fieldLabelStandard,children:`Display Name`}),children:(0,N.jsx)(H,{value:e.displayname||``,readOnly:!0,appearance:`filled-darker`})}),(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:t.fieldLabelStandard,children:`Description`}),children:(0,N.jsx)(cx,{value:e.description||``,readOnly:!0,spellCheck:!1,appearance:`filled-darker`,resize:`vertical`,rows:2})}),(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:t.fieldLabelStandard,children:[`Type `,(0,N.jsx)(Yf,{})]}),children:(0,N.jsx)(H,{value:HF[e.type],readOnly:!0,appearance:`filled-darker`})}),(HF[e.type]===`Entity`||HF[e.type]===`EntityReference`)&&(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:t.fieldLabelStandard,children:[`Logical Entity Name `,(0,N.jsx)(Yf,{})]}),children:(0,N.jsx)(H,{value:e.logicalentityname||`expando`,readOnly:!0,appearance:`filled-darker`})})]})})},YI=({open:e,createData:t,isSaving:n,onConfirm:r,onCancel:i})=>{let a=Nj(),{solutions:o,isFetching:s}=FF(),{selectedSolutionId:c}=U(),[l,u]=(0,M.useState)(null),d=(0,M.useRef)(!1),f=(0,M.useMemo)(()=>o.filter(e=>!e.ismanaged),[o]),p=(0,M.useMemo)(()=>f.map(e=>({id:e.solutionid,displayText:`${e.friendlyname} (${e.uniquename})`,image:(0,N.jsx)(Zf,{})})).sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)),[f]);return(0,M.useEffect)(()=>{e&&!d.current?u(f.some(e=>e.solutionid===c)?c:null):!e&&d.current&&u(null),d.current=e},[e,c,f]),(0,N.jsx)(kx,{open:e,modalType:`modal`,children:(0,N.jsx)(uS,{className:a.dialogSurface,children:(0,N.jsxs)(Gx,{children:[(0,N.jsx)(eS,{children:`Confirm Response Property Creation`}),(0,N.jsx)(gS,{children:(0,N.jsxs)(`div`,{className:a.dialogContentColumn,children:[(0,N.jsxs)(`div`,{className:a.dialogSection,children:[(0,N.jsx)(gv,{weight:`semibold`,size:`large`,children:`Summary`}),(0,N.jsx)(Ry,{}),(0,N.jsxs)(`div`,{className:a.formGrid,children:[(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Unique Name:`}),(0,N.jsx)(`span`,{children:t.uniquename||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Display Name:`}),(0,N.jsx)(`span`,{children:t.displayname||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Name:`}),(0,N.jsx)(`span`,{children:t.name||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Description:`}),(0,N.jsx)(`span`,{className:a.summaryValue,children:t.description||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Type:`}),(0,N.jsx)(`span`,{children:t.type===null?`Not set`:HF[t.type]||`Unknown`})]}),(t.type===3||t.type===4)&&(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Bound Entity:`}),(0,N.jsx)(`span`,{children:t.logicalentityname||`expando`})]})]})]}),(0,N.jsx)(Ry,{}),(0,N.jsxs)(`div`,{className:a.dialogSection,children:[(0,N.jsx)(gv,{weight:`semibold`,size:`large`,children:`Add to Solution (Optional)`}),(0,N.jsx)(`p`,{className:a.hintText,children:`Select an unmanaged solution to add the Response Property to. If no solution is selected, the Response Property will be created in the default solution.`}),s?(0,N.jsx)(Nb,{size:`small`,label:`Loading solutions...`}):(0,N.jsx)(CF,{items:p,initialValue:l??void 0,onSelect:e=>{u(e)}})]})]})}),(0,N.jsxs)(zx,{children:[(0,N.jsx)(K_,{appearance:`secondary`,icon:(0,N.jsx)(hp,{}),onClick:i,disabled:n,children:`Cancel`}),(0,N.jsx)(K_,{appearance:`primary`,icon:n?(0,N.jsx)(Nb,{size:`tiny`}):(0,N.jsx)(ip,{}),onClick:()=>{r(f.find(e=>e.solutionid===l)?.uniquename??null)},disabled:n,children:n?`Creating...`:`Confirm`})]})]})})})},XI=({open:e,responseProperty:t,isDeleting:n,onConfirm:r,onCancel:i})=>{let a=Nj();return t?(0,N.jsx)(kx,{open:e,modalType:`modal`,children:(0,N.jsx)(uS,{className:a.dialogSurface,children:(0,N.jsxs)(Gx,{children:[(0,N.jsx)(eS,{children:`Delete Response Property`}),(0,N.jsx)(gS,{children:(0,N.jsxs)(`div`,{className:a.dialogContentColumn,children:[(0,N.jsx)(iO,{intent:`warning`,children:(0,N.jsxs)(EO,{children:[(0,N.jsx)(uO,{children:`Warning`}),`This action cannot be undone.`]})}),(0,N.jsxs)(`div`,{className:a.dialogSection,children:[(0,N.jsx)(gv,{weight:`semibold`,size:`large`,children:`Response Property Details`}),(0,N.jsx)(Ry,{}),(0,N.jsxs)(`div`,{className:a.formGrid,children:[(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Unique Name:`}),(0,N.jsx)(`span`,{children:t.uniquename||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Display Name:`}),(0,N.jsx)(`span`,{children:t.displayname||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Name:`}),(0,N.jsx)(`span`,{children:t.name||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Description:`}),(0,N.jsx)(`span`,{className:a.summaryValue,children:t.description||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Type:`}),(0,N.jsx)(`span`,{children:t.type===null?`Not set`:HF[t.type]||`Unknown`})]}),(t.type===3||t.type===4)&&(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Bound Entity:`}),(0,N.jsx)(`span`,{children:t.logicalentityname||`expando`})]})]})]})]})}),(0,N.jsxs)(zx,{children:[(0,N.jsx)(K_,{appearance:`secondary`,icon:(0,N.jsx)(hp,{}),onClick:i,disabled:n,children:`Cancel`}),(0,N.jsx)(K_,{appearance:`primary`,icon:n?(0,N.jsx)(Nb,{size:`tiny`}):(0,N.jsx)(fp,{}),onClick:r,disabled:n,className:n?void 0:a.deleteButton,children:n?`Deleting...`:`Delete`})]})]})})}):null},ZI=({creationRequestToken:e,onCreationRequestHandled:t,editRequestPropertyId:n,onEditRequestHandled:r,onActionFinished:i})=>{let a=Nj(),{selectedCustomApiId:o,selectedResponsePropertyId:s,setSelectedResponsePropertyId:c,setGlobalMessage:l,clearGlobalMessage:u,editingComponent:d,setEditingComponent:f}=U(),p=d!==`none`&&d!==`responseproperty`,[m,h]=(0,M.useState)(`read`),[g,_]=(0,M.useState)(null),[v,y]=(0,M.useState)(null),{customapis:b}=gF(),{responseProperties:x}=VI(),S=UI(),C=HI(),w=WI(),[T,E]=(0,M.useState)(!1),[D,O]=(0,M.useState)(!1),[ee,te]=(0,M.useState)({isValid:!0}),ne=(0,M.useRef)(void 0),re=(0,M.useRef)(null),ie=b.find(e=>e.customapiid===o),k=(0,M.useMemo)(()=>x.slice(),[x]);(0,M.useEffect)(()=>{m===`create`&&!ee.isValid&&ee.message?l(`response-property-create-validation`,{intent:`warning`,title:ee.message,dismissable:!1}):u(`response-property-create-validation`)},[m,ee,l,u]),(0,M.useEffect)(()=>()=>{u(`response-property-create-validation`)},[u]);let ae=x?.find(e=>e.customapiresponsepropertyid===s);(0,M.useEffect)(()=>{_(ae||null)},[ae]);let oe=()=>{c(null),E(!1),te({isValid:!0}),y(WF(o)),h(`create`),f(`responseproperty`)};(0,M.useEffect)(()=>{!e||!o||e===ne.current||(ne.current=e,oe(),t?.())},[e,o,t]),(0,M.useEffect)(()=>{!n||!o||n===re.current||s===n||c(n)},[n,o,s,c]),(0,M.useEffect)(()=>{!n||!o||n===re.current||ae?.customapiresponsepropertyid!==n||(re.current=n,c(n),_(ae),h(`edit`),f(`responseproperty`),r?.())},[n,r,o,ae,f,c]);let se=()=>{ae&&(_(ae),h(`edit`),f(`responseproperty`))},ce=()=>{ae&&_(ae),h(`read`),f(`none`),i?.()},le=async()=>{if(m===`create`){E(!0);return}await fe(null)&&i?.()},ue=async e=>{let t=await fe(e);E(!1),t&&i?.()},de=()=>{E(!1)},fe=async e=>{try{if(m===`create`){if(ae||!v)return!1;let t=await C.mutateAsync({next:v,solutionUniqueName:e??void 0});t.created&&t.id&&(c(t.id),y(WF(o)))}else if(m===`edit`){if(!ae||!g)return!1;await S.mutateAsync({current:ae,next:g})}return h(`read`),f(`none`),!0}catch(e){return console.error(`Error saving Response Property`,e),!1}},pe=()=>{!ae||ae.ismanaged||O(!0)},me=async()=>{if(ae)try{await w.mutateAsync({responseProperty:ae}),c(null),O(!1)}catch(e){console.error(`Error deleting Response Property`,e)}},he=()=>{O(!1)},ge=e=>{y(t=>t&&e(t))},_e=(0,M.useCallback)(e=>{te(e)},[]),ve=m===`create`?(0,N.jsx)(KI,{createData:v,onChange:ge,onValidationChange:_e}):m===`edit`&&ae&&g?(0,N.jsx)(qI,{property:ae,editedData:g,onChange:e=>{_(t=>t&&e(t))}}):m===`read`&&ae?(0,N.jsx)(JI,{property:ae}):(0,N.jsx)(N.Fragment,{}),ye=(0,N.jsxs)(`div`,{className:a.headerActionGroup,children:[(0,N.jsx)(M.Activity,{mode:m===`read`&&ie&&!ie.ismanaged&&!ie._fxexpressionid_value?`visible`:`hidden`,children:(0,N.jsx)(K_,{"aria-label":`New Response Property`,appearance:`secondary`,icon:(0,N.jsx)(Gd,{}),onClick:oe,className:a.headerActionButton,children:`New Response Property`})}),(0,N.jsx)(M.Activity,{mode:m===`read`&&ae&&!ae.ismanaged?`visible`:`hidden`,children:(0,N.jsx)(K_,{appearance:`secondary`,icon:(0,N.jsx)(qf,{}),onClick:se,className:a.headerActionButton,children:`Edit`})}),(0,N.jsx)(M.Activity,{mode:m===`read`&&ie&&ae&&!ae.ismanaged&&!ie._fxexpressionid_value?`visible`:`hidden`,children:(0,N.jsx)(K_,{appearance:`secondary`,icon:(0,N.jsx)(Mf,{}),onClick:pe,className:a.headerActionButton,children:`Delete`})}),(0,N.jsx)(M.Activity,{mode:m===`edit`||m===`create`?`visible`:`hidden`,children:(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(K_,{appearance:`primary`,icon:C.isPending||S.isPending?(0,N.jsx)(Nb,{size:`tiny`}):(0,N.jsx)(Hf,{}),disabled:C.isPending||S.isPending||m===`create`&&!ee.isValid,onClick:le,className:a.headerActionButton,children:C.isPending||S.isPending?`Saving...`:`Save`}),(0,N.jsx)(K_,{appearance:`secondary`,icon:(0,N.jsx)(hp,{}),disabled:C.isPending||S.isPending,onClick:ce,className:a.headerActionButton,children:`Cancel`})]})})]});return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(MT,{className:A(a.card,p&&a.lockedSection),children:[(0,N.jsx)(RT,{header:(0,N.jsx)(`div`,{className:a.cardHeaderContainer,children:(0,N.jsxs)(`div`,{className:a.cardHeaderRow,children:[(0,N.jsx)(nb,{alt:`Response Properties`,src:KF,height:40,width:40}),(0,N.jsx)(`h3`,{className:a.headingNoMargin,children:`Response Properties (Output)`}),(0,N.jsx)(uI,{mode:m}),ae&&(0,N.jsx)(cI,{isManaged:ae.ismanaged})]})}),action:(0,N.jsx)(N.Fragment,{children:ye})}),(0,N.jsx)(`div`,{className:a.cardBody,children:(0,N.jsxs)(`div`,{className:a.splitContainer,children:[(0,N.jsx)(`div`,{className:a.splitPaneContent,children:(0,N.jsx)(GI,{responseProperties:k})}),(0,N.jsx)(Ry,{inset:!0,vertical:!0}),(0,N.jsx)(`div`,{className:a.splitPaneContent,children:ve})]})})]}),v&&(0,N.jsx)(YI,{open:T,createData:v,isSaving:C.isPending,onConfirm:ue,onCancel:de}),(0,N.jsx)(XI,{open:D,responseProperty:ae??null,isDeleting:w.isPending,onConfirm:me,onCancel:he})]})},QI=({open:e,customApi:t,isDeleting:n,onConfirm:r,onCancel:i})=>{let a=Nj();return t?(0,N.jsx)(kx,{open:e,modalType:`modal`,children:(0,N.jsx)(uS,{className:a.dialogSurface,children:(0,N.jsxs)(Gx,{children:[(0,N.jsx)(eS,{children:`Delete Custom API`}),(0,N.jsx)(gS,{children:(0,N.jsxs)(`div`,{className:a.dialogContentColumn,children:[(0,N.jsx)(iO,{intent:`warning`,children:(0,N.jsxs)(EO,{children:[(0,N.jsx)(uO,{children:`Warning`}),`This action cannot be undone. All associated request parameters and response properties will also be deleted.`]})}),(0,N.jsxs)(`div`,{className:a.dialogSection,children:[(0,N.jsx)(gv,{weight:`semibold`,size:`large`,children:`Custom API Details`}),(0,N.jsx)(Ry,{}),(0,N.jsxs)(`div`,{className:a.formGrid,children:[(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Unique Name:`}),(0,N.jsx)(`span`,{children:t.uniquename||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Display Name:`}),(0,N.jsx)(`span`,{children:t.displayname||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Name:`}),(0,N.jsx)(`span`,{children:t.name||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Description:`}),(0,N.jsx)(`span`,{className:a.summaryValue,children:t.description||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Processing Step Type:`}),(0,N.jsx)(`span`,{children:t.allowedcustomprocessingsteptype===null?`Not set`:eF[t.allowedcustomprocessingsteptype]||`Unknown`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Binding Type:`}),(0,N.jsx)(`span`,{children:t.bindingtype===null?`Not set`:iF[t.bindingtype]||`Unknown`})]}),t.bindingtype===1&&(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Bound Entity:`}),(0,N.jsx)(`span`,{children:t.boundentitylogicalname||`-`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Is Function:`}),(0,N.jsx)(`span`,{children:t.isfunction?`Yes`:`No`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Is Private:`}),(0,N.jsx)(`span`,{children:t.isprivate?`Yes`:`No`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Workflow Enabled:`}),(0,N.jsx)(`span`,{children:t.workflowsdkstepenabled?`Yes`:`No`})]}),(0,N.jsxs)(`div`,{className:a.summaryRow,children:[(0,N.jsx)(gv,{weight:`semibold`,className:a.summaryLabel,children:`Is Managed:`}),(0,N.jsx)(`span`,{children:t.ismanaged?`Yes`:`No`})]})]})]})]})}),(0,N.jsxs)(zx,{children:[(0,N.jsx)(K_,{appearance:`secondary`,icon:(0,N.jsx)(hp,{}),onClick:i,disabled:n,children:`Cancel`}),(0,N.jsx)(K_,{appearance:`primary`,icon:n?(0,N.jsx)(Nb,{size:`tiny`}):(0,N.jsx)(fp,{}),onClick:r,disabled:n,className:n?void 0:a.deleteButton,children:n?`Deleting...`:`Delete`})]})]})})}):null},$I=()=>(0,N.jsx)(ym,{appearance:`tint`,color:`brand`,shape:`rounded`,icon:(0,N.jsx)(ef,{}),size:`large`,children:`Power Fx`}),eL=({customApiId:e})=>{let t=Nj(),{businessEventAssignments:n,isFetching:r}=FI(e),{addLog:i,currentCustomApiSelectionInit:a,setPendingBusinessEventAssignmentId:o,setPendingManagedFilterHandoff:s,setSelectedCatalogId:c,setSelectedNavItem:l}=U(),[u,d]=(0,M.useState)(!1);if(!e||r||n.length===0)return null;let f=e=>{let t=e.rootCatalog?.catalogid||e.category?.catalogid||e.assignment._catalogid_value;o(e.assignment.catalogassignmentid),s({target:`businessevent`,value:a}),c(t),l(`businessevent`),i(`Opened Business Event '${e.pathLabel}' for Custom API`,`info`),d(!1)};return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(K_,{appearance:`secondary`,size:`small`,icon:(0,N.jsx)(af,{}),onClick:()=>{if(n.length===1){f(n[0]);return}d(!0)},className:t.headerActionButton,children:n.length===1?`Open Business Event`:`Open Business Event (${n.length})`}),(0,N.jsx)(kx,{open:u,onOpenChange:(e,t)=>d(t.open),children:(0,N.jsx)(uS,{className:t.dialogSurface,children:(0,N.jsxs)(Gx,{children:[(0,N.jsx)(eS,{children:`Choose Business Event`}),(0,N.jsxs)(gS,{className:t.dialogContentColumn,children:[(0,N.jsx)($b,{children:`This Custom API is assigned to multiple Business Events. Select the catalog you want to open.`}),(0,N.jsx)(`div`,{className:t.dialogChoiceList,children:n.map(e=>{let n=e.assignment.catalogassignmentid;return(0,N.jsx)(K_,{appearance:`subtle`,icon:(0,N.jsx)(Rd,{}),className:t.dialogChoiceButton,onClick:()=>f(e),children:(0,N.jsxs)(`div`,{className:t.dialogChoiceContent,children:[(0,N.jsx)(`span`,{className:t.dialogChoiceTitle,children:e.assignmentLabel}),(0,N.jsx)(`span`,{className:t.dialogChoiceMeta,children:e.assignment[`_catalogid_value@OData.Community.Display.V1.FormattedValue`]||`Business Event`}),(0,N.jsxs)(`span`,{className:t.dialogChoicePath,children:[(0,N.jsx)(Ff,{}),(0,N.jsx)(`span`,{children:e.rootCatalog?e.rootCatalog.displayname||e.rootCatalog.name:`Unknown Catalog`}),e.category&&e.rootCatalog?.catalogid!==e.category.catalogid&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(xf,{}),(0,N.jsx)(If,{}),(0,N.jsx)(`span`,{children:e.category.displayname||e.category.name})]})]})]})},n)})})]}),(0,N.jsx)(zx,{children:(0,N.jsx)(K_,{appearance:`secondary`,onClick:()=>d(!1),children:`Cancel`})})]})})})]})},tL=``+new URL(`powerfx-DZarVf0i.png`,document.currentScript&&document.currentScript.tagName.toUpperCase()===`SCRIPT`&&document.currentScript.src||document.baseURI).href,nL=e=>{let{connection:t,isLoadingConnection:n,instanceId:r}=U(),{data:i,status:a,error:o,isFetching:s}=XP({queryKey:pF.fxexpression(e??``,t?.id??``,r),queryFn:async()=>await window.dataverseAPI.retrieve(`fxexpression`,e),enabled:!!t&&!n&&!!e,staleTime:1/0});return{fxexpression:i??null,status:a,error:o,isFetching:s}};function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(null,arguments)}function rL(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var iL={},aL=(0,M.createContext)(iL),oL=(e,t)=>W({},e,t),sL=()=>(0,M.useContext)(aL),cL=(0,M.createContext)(()=>{});cL.displayName=`JVR.DispatchShowTools`;function lL(){return(0,M.useReducer)(oL,iL)}function uL(){return(0,M.useContext)(cL)}var dL=e=>{var t=e.initial,n=e.dispatch,r=e.children;return(0,N.jsx)(aL.Provider,{value:t,children:(0,N.jsx)(cL.Provider,{value:n,children:r})})};dL.displayName=`JVR.ShowTools`;var fL={},pL=(0,M.createContext)(fL),mL=(e,t)=>W({},e,t),hL=()=>(0,M.useContext)(pL),gL=(0,M.createContext)(()=>{});gL.displayName=`JVR.DispatchExpands`;function _L(){return(0,M.useReducer)(mL,fL)}function vL(){return(0,M.useContext)(gL)}var yL=e=>{var t=e.initial,n=e.dispatch,r=e.children;return(0,N.jsx)(pL.Provider,{value:t,children:(0,N.jsx)(gL.Provider,{value:n,children:r})})};yL.displayName=`JVR.Expands`;var bL={Str:{as:`span`,"data-type":`string`,style:{color:`var(--w-rjv-type-string-color, #cb4b16)`},className:`w-rjv-type`,children:`string`},Url:{as:`a`,style:{color:`var(--w-rjv-type-url-color, #0969da)`},"data-type":`url`,className:`w-rjv-type`,children:`url`},Undefined:{style:{color:`var(--w-rjv-type-undefined-color, #586e75)`},as:`span`,"data-type":`undefined`,className:`w-rjv-type`,children:`undefined`},Null:{style:{color:`var(--w-rjv-type-null-color, #d33682)`},as:`span`,"data-type":`null`,className:`w-rjv-type`,children:`null`},Map:{style:{color:`var(--w-rjv-type-map-color, #268bd2)`,marginRight:3},as:`span`,"data-type":`map`,className:`w-rjv-type`,children:`Map`},Nan:{style:{color:`var(--w-rjv-type-nan-color, #859900)`},as:`span`,"data-type":`nan`,className:`w-rjv-type`,children:`NaN`},Bigint:{style:{color:`var(--w-rjv-type-bigint-color, #268bd2)`},as:`span`,"data-type":`bigint`,className:`w-rjv-type`,children:`bigint`},Int:{style:{color:`var(--w-rjv-type-int-color, #268bd2)`},as:`span`,"data-type":`int`,className:`w-rjv-type`,children:`int`},Set:{style:{color:`var(--w-rjv-type-set-color, #268bd2)`,marginRight:3},as:`span`,"data-type":`set`,className:`w-rjv-type`,children:`Set`},Float:{style:{color:`var(--w-rjv-type-float-color, #859900)`},as:`span`,"data-type":`float`,className:`w-rjv-type`,children:`float`},True:{style:{color:`var(--w-rjv-type-boolean-color, #2aa198)`},as:`span`,"data-type":`bool`,className:`w-rjv-type`,children:`bool`},False:{style:{color:`var(--w-rjv-type-boolean-color, #2aa198)`},as:`span`,"data-type":`bool`,className:`w-rjv-type`,children:`bool`},Date:{style:{color:`var(--w-rjv-type-date-color, #268bd2)`},as:`span`,"data-type":`date`,className:`w-rjv-type`,children:`date`}},xL=(0,M.createContext)(bL),SL=(e,t)=>W({},e,t),CL=()=>(0,M.useContext)(xL),wL=(0,M.createContext)(()=>{});wL.displayName=`JVR.DispatchTypes`;function TL(){return(0,M.useReducer)(SL,bL)}function EL(){return(0,M.useContext)(wL)}function DL(e){var t=e.initial,n=e.dispatch,r=e.children;return(0,N.jsx)(xL.Provider,{value:t,children:(0,N.jsx)(wL.Provider,{value:n,children:r})})}DL.displayName=`JVR.Types`;var OL=[`style`];function kL(e){var t=e.style,n=rL(e,OL);return(0,N.jsx)(`svg`,W({viewBox:`0 0 24 24`,fill:`var(--w-rjv-arrow-color, currentColor)`,style:W({cursor:`pointer`,height:`1em`,width:`1em`,userSelect:`none`,display:`inline-flex`},t)},n,{children:(0,N.jsx)(`path`,{d:`M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z`})}))}kL.displayName=`JVR.TriangleArrow`;var AL={Arrow:{as:`span`,className:`w-rjv-arrow`,style:{transform:`rotate(0deg)`,transition:`all 0.3s`},children:(0,N.jsx)(kL,{})},Colon:{as:`span`,style:{color:`var(--w-rjv-colon-color, var(--w-rjv-color))`,marginLeft:0,marginRight:2},className:`w-rjv-colon`,children:`:`},Quote:{as:`span`,style:{color:`var(--w-rjv-quotes-color, #236a7c)`},className:`w-rjv-quotes`,children:`"`},ValueQuote:{as:`span`,style:{color:`var(--w-rjv-quotes-string-color, #cb4b16)`},className:`w-rjv-quotes`,children:`"`},BracketsLeft:{as:`span`,style:{color:`var(--w-rjv-brackets-color, #236a7c)`},className:`w-rjv-brackets-start`,children:`[`},BracketsRight:{as:`span`,style:{color:`var(--w-rjv-brackets-color, #236a7c)`},className:`w-rjv-brackets-end`,children:`]`},BraceLeft:{as:`span`,style:{color:`var(--w-rjv-curlybraces-color, #236a7c)`},className:`w-rjv-curlybraces-start`,children:`{`},BraceRight:{as:`span`,style:{color:`var(--w-rjv-curlybraces-color, #236a7c)`},className:`w-rjv-curlybraces-end`,children:`}`}},jL=(0,M.createContext)(AL),ML=(e,t)=>W({},e,t),NL=()=>(0,M.useContext)(jL),PL=(0,M.createContext)(()=>{});PL.displayName=`JVR.DispatchSymbols`;function FL(){return(0,M.useReducer)(ML,AL)}function IL(){return(0,M.useContext)(PL)}var LL=e=>{var t=e.initial,n=e.dispatch,r=e.children;return(0,N.jsx)(jL.Provider,{value:t,children:(0,N.jsx)(PL.Provider,{value:n,children:r})})};LL.displayName=`JVR.Symbols`;var RL={Copied:{className:`w-rjv-copied`,style:{height:`1em`,width:`1em`,cursor:`pointer`,verticalAlign:`middle`,marginLeft:5}},CountInfo:{as:`span`,className:`w-rjv-object-size`,style:{color:`var(--w-rjv-info-color, #0000004d)`,paddingLeft:8,fontStyle:`italic`}},CountInfoExtra:{as:`span`,className:`w-rjv-object-extra`,style:{paddingLeft:8}},Ellipsis:{as:`span`,style:{cursor:`pointer`,color:`var(--w-rjv-ellipsis-color, #cb4b16)`,userSelect:`none`},className:`w-rjv-ellipsis`,children:`...`},Row:{as:`div`,className:`w-rjv-line`},KeyName:{as:`span`,className:`w-rjv-object-key`}},zL=(0,M.createContext)(RL),BL=(e,t)=>W({},e,t),VL=()=>(0,M.useContext)(zL),HL=(0,M.createContext)(()=>{});HL.displayName=`JVR.DispatchSection`;function UL(){return(0,M.useReducer)(BL,RL)}function WL(){return(0,M.useContext)(HL)}var GL=e=>{var t=e.initial,n=e.dispatch,r=e.children;return(0,N.jsx)(zL.Provider,{value:t,children:(0,N.jsx)(HL.Provider,{value:n,children:r})})};GL.displayName=`JVR.Section`;var KL={objectSortKeys:!1,indentWidth:15},qL=(0,M.createContext)(KL);qL.displayName=`JVR.Context`;var JL=(0,M.createContext)(()=>{});JL.displayName=`JVR.DispatchContext`;function YL(e,t){return W({},e,t)}var XL=()=>(0,M.useContext)(qL),ZL=e=>{var t=e.children,n=e.initialState,r=e.initialTypes,i=(0,M.useReducer)(YL,Object.assign({},KL,n)),a=i[0],o=i[1],s=lL(),c=s[0],l=s[1],u=_L(),d=u[0],f=u[1],p=TL(),m=p[0],h=p[1],g=FL(),_=g[0],v=g[1],y=UL(),b=y[0],x=y[1];return(0,M.useEffect)(()=>o(W({},n)),[n]),(0,N.jsx)(qL.Provider,{value:a,children:(0,N.jsx)(JL.Provider,{value:o,children:(0,N.jsx)(dL,{initial:c,dispatch:l,children:(0,N.jsx)(yL,{initial:d,dispatch:f,children:(0,N.jsx)(DL,{initial:W({},m,r),dispatch:h,children:(0,N.jsx)(LL,{initial:_,dispatch:v,children:(0,N.jsx)(GL,{initial:b,dispatch:x,children:t})})})})})})})};ZL.displayName=`JVR.Provider`;function QL(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var $L=[`isNumber`,`value`,`parentValue`,`keyName`,`keys`],eR=[`as`,`render`],tR=[`as`,`render`],nR=[`as`,`render`],rR=[`as`,`style`,`render`],iR=[`as`,`render`],aR=[`as`,`render`],oR=[`as`,`render`],sR=[`as`,`render`],cR=e=>{var t=NL().Quote,n=t===void 0?{}:t,r=e.isNumber,i=e.value,a=e.parentValue,o=e.keyName,s=e.keys,c=rL(e,$L);if(r)return null;var l=n.as,u=n.render,d=rL(n,eR),f=l||`span`,p=W({},c,d);return typeof p.children==`string`&&(p.children=p.children.trim()||void 0),u&&typeof u==`function`&&u(p,{value:i,parentValue:a,keyName:o,keys:s||(o?[o]:[])})||(0,N.jsx)(f,W({},p))};cR.displayName=`JVR.Quote`;var lR=e=>{var t=NL().ValueQuote,n=t===void 0?{}:t,r=W({},(QL(e),e)),i=n.as,a=n.render,o=rL(n,tR),s=i||`span`,c=W({},r,o);return a&&typeof a==`function`&&a(c,{})||(0,N.jsx)(s,W({},c))};lR.displayName=`JVR.ValueQuote`;var uR=e=>{var t=e.value,n=e.parentValue,r=e.keyName,i=e.keys,a=NL().Colon,o=a===void 0?{}:a,s=o.as,c=o.render,l=rL(o,nR),u=s||`span`;return c&&typeof c==`function`&&c(l,{value:t,parentValue:n,keyName:r,keys:i||(r?[r]:[])})||(0,N.jsx)(u,W({},l))};uR.displayName=`JVR.Colon`;var dR=e=>{var t=NL().Arrow,n=t===void 0?{}:t,r=hL(),i=e.expandKey,a=e.style,o=e.value,s=e.parentValue,c=e.keyName,l=e.keys,u=!!r[i],d=n.as,f=n.style,p=n.render,m=rL(n,rR),h=d||`span`,g=p&&typeof p==`function`,_=W({},m,{"data-expanded":u,style:W({},f,a)});return g&&p(_,{value:o,parentValue:s,keyName:c,keys:l||(c?[c]:[])})||(0,N.jsx)(h,W({},m,{style:W({},f,a)}))};dR.displayName=`JVR.Arrow`;var fR=e=>{var t=e.isBrackets,n=e.value,r=e.parentValue,i=e.keyName,a=e.keys,o=NL(),s=o.BracketsLeft,c=s===void 0?{}:s,l=o.BraceLeft,u=l===void 0?{}:l,d={value:n,parentValue:r,keyName:i,keys:a||(i?[i]:[])};if(t){var f=c.as,p=c.render,m=rL(c,iR),h=f||`span`;return p&&typeof p==`function`&&p(m,d)||(0,N.jsx)(h,W({},m))}var g=u.as,_=u.render,v=rL(u,aR),y=g||`span`;return _&&typeof _==`function`&&_(v,d)||(0,N.jsx)(y,W({},v))};fR.displayName=`JVR.BracketsOpen`;var pR=e=>{var t=e.isBrackets,n=e.isVisiable,r=e.value,i=e.parentValue,a=e.keyName,o={value:r,parentValue:i,keyName:a,keys:e.keys||(a?[a]:[])};if(!n)return null;var s=NL(),c=s.BracketsRight,l=c===void 0?{}:c,u=s.BraceRight,d=u===void 0?{}:u;if(t){var f=l.as,p=l.render,m=rL(l,oR),h=f||`span`;return p&&typeof p==`function`&&p(m,o)||(0,N.jsx)(h,W({},m))}var g=d.as,_=d.render,v=rL(d,sR),y=g||`span`;return _&&typeof _==`function`&&_(v,o)||(0,N.jsx)(y,W({},v))};pR.displayName=`JVR.BracketsClose`;var mR=e=>{var t=e.keyName,n=e.value,r=e.expandKey,i=e.parentValue,a=e.level,o=e.keys,s=o===void 0?[]:o,c=hL(),l=XL(),u=l.collapsed,d=l.shouldExpandNodeInitially,f=typeof u==`boolean`?u:typeof u==`number`?a>u:!1,p=c[r]??(d?!1:f),m=d&&d(!p,{value:n,keys:s,level:a,keyName:t,parentValue:i});if(d&&u===!1){if(c[r]===void 0&&!m)return null}else if(c[r]===void 0&&m)return null;var h=Object.keys(n).length;if(p||h===0)return null;var g={paddingLeft:4},_={keyName:t,value:n,keys:s,parentValue:i},v=Array.isArray(n),y=n instanceof Set;return(0,N.jsx)(`div`,{style:g,children:(0,N.jsx)(pR,W({isBrackets:v||y},_,{isVisiable:!0}))})};mR.displayName=`JVR.NestedClose`;var hR=[`as`,`render`],gR=[`as`,`render`],_R=[`as`,`render`],vR=[`as`,`render`],yR=[`as`,`render`],bR=[`as`,`render`],xR=[`as`,`render`],SR=[`as`,`render`],CR=[`as`,`render`],wR=[`as`,`render`],TR=[`as`,`render`],ER=[`as`,`render`],DR=[`as`,`render`],OR=e=>{if(e===void 0)return`0n`;if(typeof e==`string`)try{e=BigInt(e)}catch{return`0n`}return e?e.toString()+`n`:`0n`},kR=e=>{var t=e.value,n=e.keyName,r=CL(),i=r.Set,a=i===void 0?{}:i,o=r.displayDataTypes;if(!(t instanceof Set)||!o)return null;var s=a.as,c=a.render,l=rL(a,hR);return c&&typeof c==`function`&&c(l,{type:`type`,value:t,keyName:n})||(0,N.jsx)(s||`span`,W({},l))};kR.displayName=`JVR.SetComp`;var AR=e=>{var t=e.value,n=e.keyName,r=CL(),i=r.Map,a=i===void 0?{}:i,o=r.displayDataTypes;if(!(t instanceof Map)||!o)return null;var s=a.as,c=a.render,l=rL(a,gR);return c&&typeof c==`function`&&c(l,{type:`type`,value:t,keyName:n})||(0,N.jsx)(s||`span`,W({},l))};AR.displayName=`JVR.MapComp`;var jR={opacity:.75,paddingRight:4},MR=e=>{var t=e.children,n=t===void 0?``:t,r=e.keyName,i=e.keys,a=CL(),o=a.Str,s=o===void 0?{}:o,c=a.displayDataTypes,l=XL(),u=l.shortenTextAfterLength,d=u===void 0?30:u,f=l.stringEllipsis,p=f===void 0?`...`:f,m=s.as,h=s.render,g=rL(s,_R),_=n,v=(0,M.useState)(d&&_.length>d),y=v[0],b=v[1];(0,M.useEffect)(()=>b(d&&_.length>d),[d]);var x=m||`span`,S=W({},jR,s.style||{});d>0&&(g.style=W({},g.style,{cursor:_.length<=d?`initial`:`pointer`}),_.length>d&&(g.onClick=()=>{b(!y)}));var C=y?``+_.slice(0,d)+p:_,w=h&&typeof h==`function`,T=w&&h(W({},g,{style:S}),{type:`type`,value:n,keyName:r,keys:i}),E=y?`w-rjv-value w-rjv-value-short`:`w-rjv-value`,D=w&&h(W({},g,{children:C,className:E}),{type:`value`,value:n,keyName:r,keys:i});return(0,N.jsxs)(M.Fragment,{children:[c&&(T||(0,N.jsx)(x,W({},g,{style:S}))),D||(0,N.jsxs)(M.Fragment,{children:[(0,N.jsx)(lR,{}),(0,N.jsx)(x,W({},g,{className:E,children:C})),(0,N.jsx)(lR,{})]})]})};MR.displayName=`JVR.TypeString`;var NR=e=>{var t=e.children,n=e.keyName,r=e.keys,i=CL(),a=i.True,o=a===void 0?{}:a,s=i.displayDataTypes,c=o.as,l=o.render,u=rL(o,vR),d=c||`span`,f=W({},jR,o.style||{}),p=l&&typeof l==`function`,m=p&&l(W({},u,{style:f}),{type:`type`,value:t,keyName:n,keys:r}),h=p&&l(W({},u,{children:t,className:`w-rjv-value`}),{type:`value`,value:t,keyName:n,keys:r});return(0,N.jsxs)(M.Fragment,{children:[s&&(m||(0,N.jsx)(d,W({},u,{style:f}))),h||(0,N.jsx)(d,W({},u,{className:`w-rjv-value`,children:t?.toString()}))]})};NR.displayName=`JVR.TypeTrue`;var PR=e=>{var t=e.children,n=e.keyName,r=e.keys,i=CL(),a=i.False,o=a===void 0?{}:a,s=i.displayDataTypes,c=o.as,l=o.render,u=rL(o,yR),d=c||`span`,f=W({},jR,o.style||{}),p=l&&typeof l==`function`,m=p&&l(W({},u,{style:f}),{type:`type`,value:t,keyName:n,keys:r}),h=p&&l(W({},u,{children:t,className:`w-rjv-value`}),{type:`value`,value:t,keyName:n,keys:r});return(0,N.jsxs)(M.Fragment,{children:[s&&(m||(0,N.jsx)(d,W({},u,{style:f}))),h||(0,N.jsx)(d,W({},u,{className:`w-rjv-value`,children:t?.toString()}))]})};PR.displayName=`JVR.TypeFalse`;var FR=e=>{var t=e.children,n=e.keyName,r=e.keys,i=CL(),a=i.Float,o=a===void 0?{}:a,s=i.displayDataTypes,c=o.as,l=o.render,u=rL(o,bR),d=c||`span`,f=W({},jR,o.style||{}),p=l&&typeof l==`function`,m=p&&l(W({},u,{style:f}),{type:`type`,value:t,keyName:n,keys:r}),h=p&&l(W({},u,{children:t,className:`w-rjv-value`}),{type:`value`,value:t,keyName:n,keys:r});return(0,N.jsxs)(M.Fragment,{children:[s&&(m||(0,N.jsx)(d,W({},u,{style:f}))),h||(0,N.jsx)(d,W({},u,{className:`w-rjv-value`,children:t?.toString()}))]})};FR.displayName=`JVR.TypeFloat`;var IR=e=>{var t=e.children,n=e.keyName,r=e.keys,i=CL(),a=i.Int,o=a===void 0?{}:a,s=i.displayDataTypes,c=o.as,l=o.render,u=rL(o,xR),d=c||`span`,f=W({},jR,o.style||{}),p=l&&typeof l==`function`,m=p&&l(W({},u,{style:f}),{type:`type`,value:t,keyName:n,keys:r}),h=p&&l(W({},u,{children:t,className:`w-rjv-value`}),{type:`value`,value:t,keyName:n,keys:r});return(0,N.jsxs)(M.Fragment,{children:[s&&(m||(0,N.jsx)(d,W({},u,{style:f}))),h||(0,N.jsx)(d,W({},u,{className:`w-rjv-value`,children:t?.toString()}))]})};IR.displayName=`JVR.TypeInt`;var LR=e=>{var t=e.children,n=e.keyName,r=e.keys,i=CL(),a=i.Bigint,o=a===void 0?{}:a,s=i.displayDataTypes,c=o.as,l=o.render,u=rL(o,SR),d=c||`span`,f=W({},jR,o.style||{}),p=l&&typeof l==`function`,m=p&&l(W({},u,{style:f}),{type:`type`,value:t,keyName:n,keys:r}),h=p&&l(W({},u,{children:t,className:`w-rjv-value`}),{type:`value`,value:t,keyName:n,keys:r});return(0,N.jsxs)(M.Fragment,{children:[s&&(m||(0,N.jsx)(d,W({},u,{style:f}))),h||(0,N.jsx)(d,W({},u,{className:`w-rjv-value`,children:OR(t?.toString())}))]})};LR.displayName=`JVR.TypeFloat`;var RR=e=>{var t=e.children,n=e.keyName,r=e.keys,i=CL(),a=i.Url,o=a===void 0?{}:a,s=i.displayDataTypes,c=o.as,l=o.render,u=rL(o,CR),d=c||`span`,f=W({},jR,o.style),p=l&&typeof l==`function`,m=p&&l(W({},u,{style:f}),{type:`type`,value:t,keyName:n,keys:r}),h=p&&l(W({},u,{children:t?.href,className:`w-rjv-value`}),{type:`value`,value:t,keyName:n,keys:r});return(0,N.jsxs)(M.Fragment,{children:[s&&(m||(0,N.jsx)(d,W({},u,{style:f}))),h||(0,N.jsxs)(`a`,W({href:t?.href,target:`_blank`},u,{className:`w-rjv-value`,children:[(0,N.jsx)(lR,{}),t?.href,(0,N.jsx)(lR,{})]}))]})};RR.displayName=`JVR.TypeUrl`;var zR=e=>{var t=e.children,n=e.keyName,r=e.keys,i=CL(),a=i.Date,o=a===void 0?{}:a,s=i.displayDataTypes,c=o.as,l=o.render,u=rL(o,wR),d=c||`span`,f=W({},jR,o.style||{}),p=l&&typeof l==`function`,m=p&&l(W({},u,{style:f}),{type:`type`,value:t,keyName:n,keys:r}),h=t instanceof Date?t.toLocaleString():t,g=p&&l(W({},u,{children:h,className:`w-rjv-value`}),{type:`value`,value:t,keyName:n,keys:r});return(0,N.jsxs)(M.Fragment,{children:[s&&(m||(0,N.jsx)(d,W({},u,{style:f}))),g||(0,N.jsx)(d,W({},u,{className:`w-rjv-value`,children:h}))]})};zR.displayName=`JVR.TypeDate`;var BR=e=>{var t=e.children,n=e.keyName,r=e.keys,i=CL(),a=i.Undefined,o=a===void 0?{}:a,s=i.displayDataTypes,c=o.as,l=o.render,u=rL(o,TR),d=c||`span`,f=W({},jR,o.style||{}),p=l&&typeof l==`function`,m=p&&l(W({},u,{style:f}),{type:`type`,value:t,keyName:n,keys:r}),h=p&&l(W({},u,{children:t,className:`w-rjv-value`}),{type:`value`,value:t,keyName:n,keys:r});return(0,N.jsxs)(M.Fragment,{children:[s&&(m||(0,N.jsx)(d,W({},u,{style:f}))),h||(0,N.jsx)(d,W({},u,{className:`w-rjv-value`,children:`undefined`}))]})};BR.displayName=`JVR.TypeUndefined`;var VR=e=>{var t=e.children,n=e.keyName,r=e.keys,i=CL(),a=i.Null,o=a===void 0?{}:a,s=i.displayDataTypes,c=o.as,l=o.render,u=rL(o,ER),d=c||`span`,f=W({},jR,o.style||{}),p=l&&typeof l==`function`,m=p&&l(W({},u,{style:f}),{type:`type`,value:t,keyName:n,keys:r}),h=p&&l(W({},u,{children:t,className:`w-rjv-value`}),{type:`value`,value:t,keyName:n,keys:r});return(0,N.jsxs)(M.Fragment,{children:[s&&(m||(0,N.jsx)(d,W({},u,{style:f}))),h||(0,N.jsx)(d,W({},u,{className:`w-rjv-value`,children:`null`}))]})};VR.displayName=`JVR.TypeNull`;var HR=e=>{var t=e.children,n=e.keyName,r=e.keys,i=CL(),a=i.Nan,o=a===void 0?{}:a,s=i.displayDataTypes,c=o.as,l=o.render,u=rL(o,DR),d=c||`span`,f=W({},jR,o.style||{}),p=l&&typeof l==`function`,m=p&&l(W({},u,{style:f}),{type:`type`,value:t,keyName:n,keys:r}),h=p&&l(W({},u,{children:t?.toString(),className:`w-rjv-value`}),{type:`value`,value:t,keyName:n,keys:r});return(0,N.jsxs)(M.Fragment,{children:[s&&(m||(0,N.jsx)(d,W({},u,{style:f}))),h||(0,N.jsx)(d,W({},u,{className:`w-rjv-value`,children:`NaN`}))]})};HR.displayName=`JVR.TypeNan`;var UR=e=>Number(e)===e&&e%1!=0||isNaN(e),WR=e=>{var t=e.value,n={keyName:e.keyName,keys:e.keys};return t instanceof URL?(0,N.jsx)(RR,W({},n,{children:t})):typeof t==`string`?(0,N.jsx)(MR,W({},n,{children:t})):t===!0?(0,N.jsx)(NR,W({},n,{children:t})):t===!1?(0,N.jsx)(PR,W({},n,{children:t})):t===null?(0,N.jsx)(VR,W({},n,{children:t})):t===void 0?(0,N.jsx)(BR,W({},n,{children:t})):t instanceof Date?(0,N.jsx)(zR,W({},n,{children:t})):typeof t==`number`&&isNaN(t)?(0,N.jsx)(HR,W({},n,{children:t})):typeof t==`number`&&UR(t)?(0,N.jsx)(FR,W({},n,{children:t})):typeof t==`bigint`?(0,N.jsx)(LR,W({},n,{children:t})):typeof t==`number`?(0,N.jsx)(IR,W({},n,{children:t})):null};WR.displayName=`JVR.Value`;function GR(e,t,n){var r=IL(),i=W({},e,t,{className:[e.className,t.className].filter(Boolean).join(` `),style:W({},e.style,t.style),children:t.children||e.children});(0,M.useEffect)(()=>r({[n]:i}),[t])}function KR(e,t,n){var r=EL(),i=W({},e,t,{className:[e.className,t.className].filter(Boolean).join(` `),style:W({},e.style,t.style),children:t.children||e.children});(0,M.useEffect)(()=>r({[n]:i}),[t])}function qR(e,t,n){var r=WL(),i=W({},e,t,{className:[e.className,t.className].filter(Boolean).join(` `),style:W({},e.style,t.style),children:t.children||e.children});(0,M.useEffect)(()=>r({[n]:i}),[t])}var JR=[`as`,`render`],YR=e=>{var t=VL().KeyName;return qR(t===void 0?{}:t,e,`KeyName`),null};YR.displayName=`JVR.KeyName`;var XR=e=>{var t=e.children,n=e.value,r=e.parentValue,i=e.keyName,a=e.keys,o={color:typeof t==`number`?`var(--w-rjv-key-number, #268bd2)`:`var(--w-rjv-key-string, #002b36)`},s=VL().KeyName,c=s===void 0?{}:s,l=c.as,u=c.render,d=rL(c,JR);d.style=W({},d.style,o);var f=l||`span`;return u&&typeof u==`function`&&u(W({},d,{children:t}),{value:n,parentValue:r,keyName:i,keys:a||(i?[i]:[])})||(0,N.jsx)(f,W({},d,{children:t}))};XR.displayName=`JVR.KeyNameComp`;var ZR=[`children`,`value`,`parentValue`,`keyName`,`keys`],QR=[`as`,`render`,`children`],$R=e=>{var t=VL().Row;return qR(t===void 0?{}:t,e,`Row`),null};$R.displayName=`JVR.Row`;var ez=e=>{var t=e.children,n=e.value,r=e.parentValue,i=e.keyName,a=e.keys,o=rL(e,ZR),s=VL().Row,c=s===void 0?{}:s,l=c.as,u=c.render;c.children;var d=rL(c,QR),f=l||`div`;return u&&typeof u==`function`&&u(W({},o,d,{children:t}),{value:n,keyName:i,parentValue:r,keys:a})||(0,N.jsx)(f,W({},o,d,{children:t}))};ez.displayName=`JVR.RowComp`;function tz(e){var t=(0,M.useRef)();return(0,M.useEffect)(()=>{t.current=e}),t.current}function nz(e){var t=e.value,n=e.highlightUpdates,r=e.highlightContainer,i=tz(t),a=(0,M.useMemo)(()=>{if(!n||i===void 0)return!1;if(typeof t!=typeof i)return!0;if(typeof t==`number`)return isNaN(t)&&isNaN(i)?!1:t!==i;if(Array.isArray(t)!==Array.isArray(i))return!0;if(typeof t==`object`||typeof t==`function`)return!1;if(t!==i)return!0},[n,t]);(0,M.useEffect)(()=>{r&&r.current&&a&&`animate`in r.current&&r.current.animate([{backgroundColor:`var(--w-rjv-update-color, #ebcb8b)`},{backgroundColor:``}],{duration:1e3,easing:`ease-in`})},[a,t,r])}var rz=[`keyName`,`value`,`parentValue`,`expandKey`,`keys`,`beforeCopy`],iz=[`as`,`render`],az=e=>{var t=e.keyName,n=e.value,r=e.parentValue,i=e.expandKey,a=e.keys,o=e.beforeCopy,s=rL(e,rz),c=XL(),l=c.onCopied,u=c.enableClipboard,d=c.beforeCopy,f=sL()[i],p=(0,M.useState)(!1),m=p[0],h=p[1],g=VL().Copied,_=g===void 0?{}:g,v=_?.beforeCopy;if(u===!1||!f)return null;var y={style:{display:`inline-flex`},fill:m?`var(--w-rjv-copied-success-color, #28a745)`:`var(--w-rjv-copied-color, currentColor)`,onClick:e=>{e.stopPropagation();var s=``;s=typeof n==`number`&&n===1/0?`Infinity`:typeof n==`number`&&isNaN(n)?`NaN`:typeof n==`bigint`?OR(n):n instanceof Date?n.toLocaleString():JSON.stringify(n,(e,t)=>typeof t==`bigint`?OR(t):t,2);var c=o||v||d;c&&typeof c==`function`&&(s=c(s,t,n,r,i,a)),l&&l(s,n),h(!0),(navigator.clipboard||{writeText(e){return new Promise((t,n)=>{var r=document.createElement(`textarea`);r.style.position=`absolute`,r.style.opacity=`0`,r.style.left=`-99999999px`,r.value=e,document.body.appendChild(r),r.select(),document.execCommand(`copy`)?t():n(),r.remove()})}}).writeText(s).then(()=>{var e=setTimeout(()=>{h(!1),clearTimeout(e)},3e3)}).catch(e=>{})}};_.as;var b=_.render,x=rL(_,iz),S=W({},x,s,y,{style:W({},x.style,s.style,y.style)});return b&&typeof b==`function`&&b(W({},S,{"data-copied":m}),{value:n,keyName:t,keys:a,parentValue:r})||(m?(0,N.jsx)(`svg`,W({viewBox:`0 0 32 36`},S,{children:(0,N.jsx)(`path`,{d:`M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z`})})):(0,N.jsx)(`svg`,W({viewBox:`0 0 32 36`},S,{children:(0,N.jsx)(`path`,{d:`M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z`})})))};az.displayName=`JVR.Copied`;function oz(){var e=(0,M.useRef)(null);return e.current===null&&(e.current=`custom-id-`+Math.random().toString(36).substr(2,9)),e.current}var sz=e=>{var t=e.keyName,n=e.value,r=e.expandKey,i=r===void 0?``:r,a=e.level,o=e.keys,s=o===void 0?[]:o,c=e.parentValue,l=hL(),u=XL(),d=u.objectSortKeys,f=u.indentWidth,p=u.collapsed,m=u.shouldExpandNodeInitially,h=typeof p==`boolean`?p:typeof p==`number`?a>p:!1,g=l[i]??(m?!1:h),_=m&&m(!g,{value:n,keys:s,level:a,keyName:t,parentValue:c});if(m&&p===!1){if(l[i]===void 0&&!_)return null}else if(l[i]===void 0&&_)return null;if(g)return null;var v=Array.isArray(n)?Object.entries(n).map(e=>[Number(e[0]),e[1]]):Object.entries(n);return d&&(v=d===!0?v.sort((e,t)=>{var n=e[0],r=t[0];return typeof n==`string`&&typeof r==`string`?n.localeCompare(r):0}):v.sort((e,t)=>{var n=e[0],r=e[1],i=t[0],a=t[1];return typeof n==`string`&&typeof i==`string`?d(n,i,r,a):0})),(0,N.jsx)(`div`,{className:`w-rjv-wrap`,style:{borderLeft:`var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)`,paddingLeft:f,marginLeft:6},children:v.map((e,t)=>{var r=e[0],i=e[1];return(0,N.jsx)(lz,{parentValue:n,keyName:r,keys:[...s,r],value:i,level:a},t)})})};sz.displayName=`JVR.KeyValues`;var cz=e=>{var t=e.keyName,n=e.parentValue,r=e.keys,i=e.value,a=XL().highlightUpdates,o=typeof t==`number`,s=(0,M.useRef)(null);nz({value:i,highlightUpdates:a,highlightContainer:s});var c={keyName:t,value:i,keys:r,parentValue:n};return(0,N.jsxs)(M.Fragment,{children:[(0,N.jsxs)(`span`,{ref:s,children:[(0,N.jsx)(cR,W({isNumber:o,"data-placement":`left`},c)),(0,N.jsx)(XR,W({},c,{children:t})),(0,N.jsx)(cR,W({isNumber:o,"data-placement":`right`},c))]}),(0,N.jsx)(uR,W({},c))]})};cz.displayName=`JVR.KayName`;var lz=e=>{var t=e.keyName,n=e.value,r=e.parentValue,i=e.level,a=i===void 0?0:i,o=e.keys,s=o===void 0?[]:o,c=uL(),l=oz(),u=Array.isArray(n),d=n instanceof Set,f=n instanceof Map,p=n instanceof Date,m=n instanceof URL;return n&&typeof n==`object`&&!u&&!d&&!f&&!p&&!m||u||d||f?(0,N.jsx)(Cz,{keyName:t,value:d?Array.from(n):f?Object.fromEntries(n):n,parentValue:r,initialValue:n,keys:s,level:a+1}):(0,N.jsxs)(ez,W({className:`w-rjv-line`,value:n,keyName:t,keys:s,parentValue:r},{onMouseEnter:()=>c({[l]:!0}),onMouseLeave:()=>c({[l]:!1})},{children:[(0,N.jsx)(cz,{keyName:t,value:n,keys:s,parentValue:r}),(0,N.jsx)(WR,{keyName:t,value:n,keys:s}),(0,N.jsx)(az,{keyName:t,value:n,keys:s,parentValue:r,expandKey:l})]}))};lz.displayName=`JVR.KeyValuesItem`;var uz=[`value`,`keyName`],dz=[`as`,`render`],fz=e=>{var t=VL().CountInfoExtra;return qR(t===void 0?{}:t,e,`CountInfoExtra`),null};fz.displayName=`JVR.CountInfoExtra`;var pz=e=>{var t=e.value,n=t===void 0?{}:t,r=e.keyName,i=rL(e,uz),a=VL().CountInfoExtra,o=a===void 0?{}:a,s=o.as,c=o.render,l=rL(o,dz);if(!c&&!l.children)return null;var u=s||`span`,d=c&&typeof c==`function`,f=W({},l,i);return d&&c(f,{value:n,keyName:r})||(0,N.jsx)(u,W({},f))};pz.displayName=`JVR.CountInfoExtraComps`;var mz=[`value`,`keyName`],hz=[`as`,`render`],gz=e=>{var t=VL().CountInfo;return qR(t===void 0?{}:t,e,`CountInfo`),null};gz.displayName=`JVR.CountInfo`;var _z=e=>{var t=e.value,n=t===void 0?{}:t,r=e.keyName,i=rL(e,mz),a=XL().displayObjectSize,o=VL().CountInfo,s=o===void 0?{}:o;if(!a)return null;var c=s.as,l=s.render,u=rL(s,hz),d=c||`span`;u.style=W({},u.style,e.style);var f=Object.keys(n).length;u.children||=f+` item`+(f===1?``:`s`);var p=W({},u,i);return l&&typeof l==`function`&&l(W({},p,{"data-length":f}),{value:n,keyName:r})||(0,N.jsx)(d,W({},p))};_z.displayName=`JVR.CountInfoComp`;var vz=[`as`,`render`],yz=e=>{var t=VL().Ellipsis;return qR(t===void 0?{}:t,e,`Ellipsis`),null};yz.displayName=`JVR.Ellipsis`;var bz=e=>{var t=e.isExpanded,n=e.value,r=e.keyName,i=VL().Ellipsis,a=i===void 0?{}:i,o=a.as,s=a.render,c=rL(a,vz),l=o||`span`;return s&&typeof s==`function`&&s(W({},c,{"data-expanded":t}),{value:n,keyName:r})||(!t||typeof n==`object`&&Object.keys(n).length==0?null:(0,N.jsx)(l,W({},c)))};bz.displayName=`JVR.EllipsisComp`;var xz=e=>{var t=e.keyName,n=e.expandKey,r=e.keys,i=r===void 0?[]:r,a=e.initialValue,o=e.value,s=e.parentValue,c=e.level,l=hL(),u=vL(),d=XL(),f=d.onExpand,p=d.collapsed,m=d.shouldExpandNodeInitially,h=typeof p==`boolean`?p:typeof p==`number`?c>p:!1,g=l[n]??(m?!1:h),_=m&&m(!g,{value:o,keys:i,level:c,keyName:t,parentValue:s});l[n]===void 0&&m&&(g=!_);var v=()=>{var e={expand:!g,value:o,keyid:n,keyName:t};f&&f(e),u({[n]:e.expand})},y={display:`inline-flex`,alignItems:`center`},b={transform:`rotate(`+(g?`-90`:`0`)+`deg)`,transition:`all 0.3s`},x=Object.keys(o).length,S=typeof o==`object`,C=Array.isArray(o),w=o instanceof Set,T=x!==0&&(C||w||S),E={style:y};T&&(E.onClick=v);var D={keyName:t,value:o,keys:i,parentValue:s};return(0,N.jsxs)(`span`,W({},E,{children:[T&&(0,N.jsx)(dR,W({style:b,expandKey:n},D)),(t||typeof t==`number`)&&(0,N.jsx)(cz,W({},D)),(0,N.jsx)(kR,{value:a,keyName:t}),(0,N.jsx)(AR,{value:a,keyName:t}),(0,N.jsx)(fR,W({isBrackets:C||w},D)),(0,N.jsx)(bz,{keyName:t,value:o,isExpanded:g}),(0,N.jsx)(pR,W({isVisiable:g||!T,isBrackets:C||w},D)),(0,N.jsx)(_z,{value:o,keyName:t}),(0,N.jsx)(pz,{value:o,keyName:t}),(0,N.jsx)(az,{keyName:t,value:o,expandKey:n,parentValue:s,keys:i})]}))};xz.displayName=`JVR.NestedOpen`;var Sz=[`className`,`children`,`parentValue`,`keyid`,`level`,`value`,`initialValue`,`keys`,`keyName`],Cz=(0,M.forwardRef)((e,t)=>{var n=e.className,r=n===void 0?``:n;e.children;var i=e.parentValue;e.keyid;var a=e.level,o=a===void 0?1:a,s=e.value,c=e.initialValue,l=e.keys,u=e.keyName,d=rL(e,Sz),f=uL(),p=oz();return(0,N.jsxs)(`div`,W({className:[r,`w-rjv-inner`].filter(Boolean).join(` `),ref:t},d,{onMouseEnter:()=>f({[p]:!0}),onMouseLeave:()=>f({[p]:!1})},{children:[(0,N.jsx)(xz,{expandKey:p,value:s,level:o,keys:l,parentValue:i,keyName:u,initialValue:c}),(0,N.jsx)(sz,{expandKey:p,value:s,level:o,keys:l,parentValue:i,keyName:u}),(0,N.jsx)(mR,{expandKey:p,value:s,level:o,keys:l,parentValue:i,keyName:u})]}))});Cz.displayName=`JVR.Container`;var wz=e=>{var t=NL().BraceLeft;return GR(t===void 0?{}:t,e,`BraceLeft`),null};wz.displayName=`JVR.BraceLeft`;var Tz=e=>{var t=NL().BraceRight;return GR(t===void 0?{}:t,e,`BraceRight`),null};Tz.displayName=`JVR.BraceRight`;var Ez=e=>{var t=NL().BracketsLeft;return GR(t===void 0?{}:t,e,`BracketsLeft`),null};Ez.displayName=`JVR.BracketsLeft`;var Dz=e=>{var t=NL().BracketsRight;return GR(t===void 0?{}:t,e,`BracketsRight`),null};Dz.displayName=`JVR.BracketsRight`;var Oz=e=>{var t=NL().Arrow;return GR(t===void 0?{}:t,e,`Arrow`),null};Oz.displayName=`JVR.Arrow`;var kz=e=>{var t=NL().Colon;return GR(t===void 0?{}:t,e,`Colon`),null};kz.displayName=`JVR.Colon`;var Az=e=>{var t=NL().Quote;return GR(t===void 0?{}:t,e,`Quote`),null};Az.displayName=`JVR.Quote`;var jz=e=>{var t=NL().ValueQuote;return GR(t===void 0?{}:t,e,`ValueQuote`),null};jz.displayName=`JVR.ValueQuote`;var Mz=e=>{var t=CL().Bigint;return KR(t===void 0?{}:t,e,`Bigint`),null};Mz.displayName=`JVR.Bigint`;var Nz=e=>{var t=CL().Date;return KR(t===void 0?{}:t,e,`Date`),null};Nz.displayName=`JVR.Date`;var Pz=e=>{var t=CL().False;return KR(t===void 0?{}:t,e,`False`),null};Pz.displayName=`JVR.False`;var Fz=e=>{var t=CL().Float;return KR(t===void 0?{}:t,e,`Float`),null};Fz.displayName=`JVR.Float`;var Iz=e=>{var t=CL().Int;return KR(t===void 0?{}:t,e,`Int`),null};Iz.displayName=`JVR.Int`;var Lz=e=>{var t=CL().Map;return KR(t===void 0?{}:t,e,`Map`),null};Lz.displayName=`JVR.Map`;var Rz=e=>{var t=CL().Nan;return KR(t===void 0?{}:t,e,`Nan`),null};Rz.displayName=`JVR.Nan`;var zz=e=>{var t=CL().Null;return KR(t===void 0?{}:t,e,`Null`),null};zz.displayName=`JVR.Null`;var Bz=e=>{var t=CL().Set;return KR(t===void 0?{}:t,e,`Set`),null};Bz.displayName=`JVR.Set`;var Vz=e=>{var t=CL().Str;return KR(t===void 0?{}:t,e,`Str`),null};Vz.displayName=`JVR.StringText`;var Hz=e=>{var t=CL().True;return KR(t===void 0?{}:t,e,`True`),null};Hz.displayName=`JVR.True`;var Uz=e=>{var t=CL().Undefined;return KR(t===void 0?{}:t,e,`Undefined`),null};Uz.displayName=`JVR.Undefined`;var Wz=e=>{var t=CL().Url;return KR(t===void 0?{}:t,e,`Url`),null};Wz.displayName=`JVR.Url`;var Gz=e=>{var t=VL().Copied;return qR(t===void 0?{}:t,e,`Copied`),null};Gz.displayName=`JVR.Copied`;var Kz=[`className`,`style`,`value`,`children`,`collapsed`,`shouldExpandNodeInitially`,`indentWidth`,`displayObjectSize`,`shortenTextAfterLength`,`stringEllipsis`,`highlightUpdates`,`enableClipboard`,`displayDataTypes`,`objectSortKeys`,`onExpand`,`onCopied`,`beforeCopy`],qz=(0,M.forwardRef)((e,t)=>{var n=e.className,r=n===void 0?``:n,i=e.style,a=e.value,o=e.children,s=e.collapsed,c=s===void 0?!1:s,l=e.shouldExpandNodeInitially,u=e.indentWidth,d=u===void 0?15:u,f=e.displayObjectSize,p=f===void 0?!0:f,m=e.shortenTextAfterLength,h=m===void 0?30:m,g=e.stringEllipsis,_=e.highlightUpdates,v=_===void 0?!0:_,y=e.enableClipboard,b=y===void 0?!0:y,x=e.displayDataTypes,S=x===void 0?!0:x,C=e.objectSortKeys,w=C===void 0?!1:C,T=e.onExpand,E=e.onCopied,D=e.beforeCopy,O=rL(e,Kz),ee=W({lineHeight:1.4,fontFamily:`var(--w-rjv-font-family, Menlo, monospace)`,color:`var(--w-rjv-color, #002b36)`,backgroundColor:`var(--w-rjv-background-color, #00000000)`,fontSize:13},i),te=[`w-json-view-container`,`w-rjv`,r].filter(Boolean).join(` `);return(0,N.jsxs)(ZL,{initialState:{value:a,objectSortKeys:w,indentWidth:d,shouldExpandNodeInitially:c===!1?l:void 0,displayObjectSize:p,collapsed:c,enableClipboard:b,shortenTextAfterLength:h,stringEllipsis:g,highlightUpdates:v,onCopied:E,onExpand:T,beforeCopy:D},initialTypes:{displayDataTypes:S},children:[(0,N.jsx)(Cz,W({value:a},O,{ref:t,className:te,style:ee})),o]})});qz.Bigint=Mz,qz.Date=Nz,qz.False=Pz,qz.Float=Fz,qz.Int=Iz,qz.Map=Lz,qz.Nan=Rz,qz.Null=zz,qz.Set=Bz,qz.String=Vz,qz.True=Hz,qz.Undefined=Uz,qz.Url=Wz,qz.ValueQuote=jz,qz.Arrow=Oz,qz.Colon=kz,qz.Quote=Az,qz.Ellipsis=yz,qz.BraceLeft=wz,qz.BraceRight=Tz,qz.BracketsLeft=Ez,qz.BracketsRight=Dz,qz.Copied=Gz,qz.CountInfo=gz,qz.CountInfoExtra=fz,qz.KeyName=YR,qz.Row=$R,qz.displayName=`JVR.JsonView`;var Jz={"--w-rjv-font-family":`monospace`,"--w-rjv-color":`#002b36`,"--w-rjv-key-string":`#002b36`,"--w-rjv-background-color":`#ffffff`,"--w-rjv-line-color":`#ebebeb`,"--w-rjv-arrow-color":`var(--w-rjv-color)`,"--w-rjv-edit-color":`var(--w-rjv-color)`,"--w-rjv-info-color":`#0000004d`,"--w-rjv-update-color":`#ebcb8b`,"--w-rjv-copied-color":`#002b36`,"--w-rjv-copied-success-color":`#28a745`,"--w-rjv-curlybraces-color":`#236a7c`,"--w-rjv-colon-color":`#002b36`,"--w-rjv-brackets-color":`#236a7c`,"--w-rjv-quotes-color":`var(--w-rjv-key-string)`,"--w-rjv-quotes-string-color":`var(--w-rjv-type-string-color)`,"--w-rjv-type-string-color":`#cb4b16`,"--w-rjv-type-int-color":`#268bd2`,"--w-rjv-type-float-color":`#859900`,"--w-rjv-type-bigint-color":`#268bd2`,"--w-rjv-type-boolean-color":`#2aa198`,"--w-rjv-type-date-color":`#586e75`,"--w-rjv-type-url-color":`#0969da`,"--w-rjv-type-null-color":`#d33682`,"--w-rjv-type-nan-color":`#859900`,"--w-rjv-type-undefined-color":`#586e75`},Yz={"--w-rjv-font-family":`monospace`,"--w-rjv-color":`#0184a6`,"--w-rjv-key-string":`#0184a6`,"--w-rjv-background-color":`#202020`,"--w-rjv-line-color":`#323232`,"--w-rjv-arrow-color":`var(--w-rjv-color)`,"--w-rjv-edit-color":`var(--w-rjv-color)`,"--w-rjv-info-color":`#656565`,"--w-rjv-update-color":`#ebcb8b`,"--w-rjv-copied-color":`#0184a6`,"--w-rjv-copied-success-color":`#28a745`,"--w-rjv-curlybraces-color":`#1896b6`,"--w-rjv-brackets-color":`#1896b6`,"--w-rjv-quotes-color":`var(--w-rjv-key-string)`,"--w-rjv-quotes-string-color":`var(--w-rjv-type-string-color)`,"--w-rjv-type-string-color":`#cb4b16`,"--w-rjv-type-int-color":`#268bd2`,"--w-rjv-type-float-color":`#859900`,"--w-rjv-type-bigint-color":`#268bd2`,"--w-rjv-type-boolean-color":`#2aa198`,"--w-rjv-type-date-color":`#586e75`,"--w-rjv-type-url-color":`#649bd8`,"--w-rjv-type-null-color":`#d33682`,"--w-rjv-type-nan-color":`#076678`,"--w-rjv-type-undefined-color":`#586e75`},Xz=({fxexpressionid:e})=>{let t=Nj(),{editingComponent:n,theme:r}=U(),i=n!==`none`,{fxexpression:a,isFetching:o}=nL(e),s=(0,M.useMemo)(()=>{if(!a?.context)return null;try{return JSON.parse(a.context)}catch{return{raw:a.context}}},[a?.context]);return(0,N.jsx)(N.Fragment,{children:(0,N.jsxs)(MT,{className:A(t.card,i&&t.lockedSection),children:[(0,N.jsx)(RT,{header:(0,N.jsx)(`div`,{className:t.cardHeaderContainer,children:(0,N.jsxs)(`div`,{className:t.cardHeaderRow,children:[(0,N.jsx)(nb,{alt:`PowerFx`,src:tL,height:40,width:40}),(0,N.jsx)(`h3`,{className:t.headingNoMargin,children:`PowerFx Function`})]})})}),(0,N.jsx)(`div`,{className:A(t.formSection,t.fullWidth),children:(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:t.fieldLabelStandard,children:`Expression`}),children:o?(0,N.jsx)(Nb,{size:`tiny`}):(0,N.jsx)(cx,{value:a?.expression??``,readOnly:!0,spellCheck:!1,appearance:`filled-darker`,resize:`vertical`,rows:4})})}),(0,N.jsx)(`div`,{className:t.formSection,children:(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:t.fieldLabelStandard,children:`Context`}),children:o?(0,N.jsx)(Nb,{size:`tiny`}):(0,N.jsx)(qz,{value:s,displayDataTypes:!1,collapsed:2,style:r===`light`?Jz:Yz,shortenTextAfterLength:0})})})]})})},Zz=e=>({name:e.name||``,displayname:e.displayname||``,description:e.description||``,executeprivilegename:e.executeprivilegename||``,_plugintypeid_value:e._plugintypeid_value||``,isprivate:e.isprivate}),Qz=()=>{let e=Nj(),{selectedCustomApiId:t,setSelectedCustomApiId:n,setSelectedRequestParameterId:r,setSelectedResponsePropertyId:i,setGlobalMessage:a,clearGlobalMessage:o,selectedNavItem:s,editingComponent:c,setEditingComponent:l}=U(),u=c!==`none`&&c!==`customapi`,{customapis:d}=gF(),f=yF(),p=vF(),m=bF(),{requestParameters:h}=$F(),{responseProperties:g}=VI(),{appsettings:_}=kF(),v=d.find(e=>e.customapiid===t),[y,b]=(0,M.useState)(`read`),[x,S]=(0,M.useState)(_?.showCustomApiDetailsTreeView??!1),[C,w]=(0,M.useState)(0),[T,E]=(0,M.useState)(0),[D,O]=(0,M.useState)(null),[ee,te]=(0,M.useState)(null),[ne,re]=(0,M.useState)(!1),[ie,k]=(0,M.useState)(!1),[ae,oe]=(0,M.useState)(!1),[se,ce]=(0,M.useState)(null),[le,ue]=(0,M.useState)(oF),[de,fe]=(0,M.useState)({isValid:!0}),[pe,me]=(0,M.useState)(!1),[he,ge]=(0,M.useState)(!1);(0,M.useEffect)(()=>{_?.showCustomApiDetailsTreeView!==void 0&&S(_.showCustomApiDetailsTreeView)},[_?.showCustomApiDetailsTreeView]);let _e=(0,M.useCallback)(()=>{w(0),E(0),O(null),te(null),k(!1),oe(!1)},[]);(0,M.useEffect)(()=>{x&&(_e(),r(null),i(null))},[_e,x,r,i]),(0,M.useEffect)(()=>{y===`create`&&!de.isValid&&de.message?a(`create-validation`,{intent:`warning`,title:de.message,dismissable:!1}):o(`create-validation`)},[y,de,a,o]),(0,M.useEffect)(()=>()=>{o(`create-validation`)},[o]),(0,M.useEffect)(()=>{s===`customapi`&&y===`read`&&!v?a(`no-customapi-selected`,{intent:`info`,title:`No Custom API selected. Select a Custom API below or create a new one.`,dismissable:!1,action:{label:`New Custom API`,icon:(0,N.jsx)(Gd,{}),onClick:ye}}):o(`no-customapi-selected`)},[s,y,v,a,o,n]),(0,M.useEffect)(()=>()=>{o(`no-customapi-selected`)},[o]),(0,M.useEffect)(()=>{v?._fxexpressionid_value?a(`powerfx-warning`,{intent:`warning`,title:`Warning! The selected Custom API is a Power Fx Function.`,body:`Limited operations are permitted. Use the Maker portal to add more Input/Output parameters or to modify the Power Fx Expression.`,dismissable:!1}):o(`powerfx-warning`)},[v,a,o]),(0,M.useEffect)(()=>()=>{o(`powerfx-warning`)},[o]),(0,M.useEffect)(()=>{v?(ce(Zz(v)),b(`read`)):ce(null)},[v]);let ve=(e=!1)=>{!v||v.ismanaged||(ce(Zz(v)),re(e),b(`edit`),l(`customapi`))},ye=()=>{n(null),ue(oF),re(!1),b(`create`),l(`customapi`)},be=()=>{y===`edit`&&v?ce(Zz(v)):y===`create`&&ue(oF),b(`read`),l(`none`),ne&&(re(!1),S(!0))},xe=async()=>{if(y===`create`){me(!0);return}await we(null)},Se=async e=>{await we(e),me(!1)},Ce=()=>{me(!1)},we=async e=>{try{if(y===`create`){if(v||!le)return;let t=await p.mutateAsync({next:le,solutionUniqueName:e??void 0});t.created&&t.id&&(n(t.id),ue(oF))}else if(y===`edit`){if(!v||!se)return;await f.mutateAsync({current:v,next:se})}b(`read`),l(`none`),ne&&(re(!1),S(!0))}catch(e){console.error(`Error saving Custom API`,e)}},Te=()=>{!v||v.ismanaged||ge(!0)},Ee=async()=>{if(v)try{await m.mutateAsync({customApi:v}),n(null),ge(!1)}catch(e){console.error(`Error deleting Custom API`,e)}},De=()=>{ge(!1)},Oe=(0,M.useCallback)(()=>{k(!0),S(!1),w(e=>e+1)},[]),ke=(0,M.useCallback)(()=>{oe(!0),S(!1),E(e=>e+1)},[]),Ae=(0,M.useCallback)(()=>{w(0)},[]),je=(0,M.useCallback)(()=>{E(0)},[]),Me=(0,M.useCallback)(e=>{i(null),k(!0),O(e),S(!1)},[i]),Ne=(0,M.useCallback)(e=>{r(null),oe(!0),te(e),S(!1)},[r]),Pe=(0,M.useCallback)(()=>{O(null)},[]),Fe=(0,M.useCallback)(()=>{te(null)},[]),Ie=(0,M.useCallback)(()=>{k(!1),S(!0)},[]),Le=(0,M.useCallback)(()=>{oe(!1),S(!0)},[]),Re=e=>{ce(t=>t&&e(t))},ze=e=>{ue(t=>e(t))},Be=y===`create`?`Create Custom API`:`Custom API Details`,Ve=y===`create`?(0,N.jsx)(`div`,{className:e.flexColumn,children:(0,N.jsxs)(`div`,{className:e.hintTextItalic,children:[(0,N.jsx)(Yf,{}),(0,N.jsx)(`span`,{children:`Some fields remain immutable after creation.`})]})}):(0,N.jsxs)(`div`,{className:e.flexColumn,children:[(0,N.jsxs)(`div`,{className:e.headingActionRow,children:[(0,N.jsx)(`h2`,{className:e.headingNoMargin,children:v?.displayname||v?.uniquename}),(0,N.jsx)(eL,{customApiId:v?.customapiid})]}),(0,N.jsxs)(`div`,{className:e.hintTextItalic,children:[(0,N.jsx)(Yf,{}),(0,N.jsx)(`span`,{children:`Fields that cannot be modified after creation`})]})]}),He=(0,N.jsxs)(`div`,{className:e.headerActionGroup,children:[(0,N.jsx)(M.Activity,{mode:y===`read`?`visible`:`hidden`,children:(0,N.jsx)(K_,{appearance:`secondary`,icon:(0,N.jsx)(Gd,{}),onClick:ye,className:e.headerActionButton,children:`New Custom API`})}),(0,N.jsx)(M.Activity,{mode:y===`read`&&v&&!v.ismanaged&&!x?`visible`:`hidden`,children:(0,N.jsx)(K_,{appearance:`secondary`,icon:(0,N.jsx)(qf,{}),onClick:()=>ve(),className:e.headerActionButton,children:`Edit`})}),(0,N.jsx)(M.Activity,{mode:y===`read`&&v&&!v.ismanaged&&!v._fxexpressionid_value?`visible`:`hidden`,children:(0,N.jsx)(K_,{appearance:`secondary`,icon:(0,N.jsx)(Mf,{}),onClick:Te,className:e.headerActionButton,children:`Delete`})}),(0,N.jsx)(M.Activity,{mode:y===`edit`||y===`create`?`visible`:`hidden`,children:(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(K_,{appearance:`primary`,icon:p.isPending||f.isPending?(0,N.jsx)(Nb,{size:`tiny`}):(0,N.jsx)(Hf,{}),disabled:p.isPending||f.isPending||y===`create`&&!de.isValid,onClick:xe,className:e.headerActionButton,children:p.isPending||f.isPending?`Saving...`:`Save`}),(0,N.jsx)(K_,{appearance:`secondary`,icon:(0,N.jsx)(hp,{}),disabled:p.isPending||f.isPending,onClick:be,className:e.headerActionButton,children:`Cancel`})]})})]}),Ue=y===`create`?(0,N.jsx)(PF,{createData:le,onChange:ze,onValidationChange:fe}):y===`edit`&&v&&se?(0,N.jsx)(EF,{api:v,editedData:se,onChange:Re}):y===`read`&&!v?(0,N.jsxs)(`div`,{className:e.infoBox,children:[(0,N.jsx)(`p`,{children:`No Custom API selected`}),(0,N.jsx)(`p`,{children:`Please select a Custom API above or create new one`})]}):y===`read`&&v&&x?(0,N.jsx)(XF,{api:v,requestParameters:h,responseProperties:g,onCreateRequestParameter:Oe,onCreateResponseProperty:ke,onEditRequestParameter:Me,onEditResponseProperty:Ne,onEdit:()=>{S(!1),ve(!0)},onDelete:()=>{Te()}}):(0,N.jsx)(SF,{api:v});return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(zI,{}),(0,N.jsxs)(MT,{className:e.card,children:[(0,N.jsxs)(`div`,{className:u?e.lockedSection:void 0,children:[(0,N.jsx)(RT,{header:(0,N.jsx)(`div`,{className:e.cardHeaderContainer,children:(0,N.jsxs)(`div`,{className:e.cardHeaderRow,children:[(0,N.jsx)(`h3`,{children:Be}),(0,N.jsxs)(`div`,{className:e.headerBadgeGroup,children:[(0,N.jsx)(uI,{mode:y}),v&&(0,N.jsx)(cI,{isManaged:v.ismanaged}),v?._fxexpressionid_value&&(0,N.jsx)($I,{}),y===`read`&&(0,N.jsx)(`div`,{children:(0,N.jsx)(k_,{content:`Toggle compact tree view`,relationship:`label`,children:(0,N.jsx)(qb,{checked:x,onChange:(e,t)=>{S(t.checked),t.checked&&(c===`requestparameter`||c===`responseproperty`)&&l(`none`)},label:x?(0,N.jsxs)(`div`,{className:e.flexRowCentered,children:[(0,N.jsx)(_f,{}),(0,N.jsx)(`span`,{children:`Tree View`})]}):(0,N.jsxs)(`div`,{className:e.flexRowCentered,children:[(0,N.jsx)(Xd,{}),(0,N.jsx)(`span`,{children:`Form View`})]}),labelPosition:`after`})})})]})]})}),description:Ve,action:He}),(0,N.jsx)(Ry,{}),Ue]}),v&&!x&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(dI,{creationRequestToken:C,onCreationRequestHandled:Ae,editRequestParameterId:D,onEditRequestHandled:Pe,onActionFinished:ie?Ie:void 0}),(0,N.jsx)(ZI,{creationRequestToken:T,onCreationRequestHandled:je,editRequestPropertyId:ee,onEditRequestHandled:Fe,onActionFinished:ae?Le:void 0}),v._fxexpressionid_value&&(0,N.jsx)(Xz,{fxexpressionid:v._fxexpressionid_value})]}),v&&v._fxexpressionid_value&&(0,N.jsx)(Xz,{fxexpressionid:v._fxexpressionid_value})]}),(0,N.jsx)(IF,{open:pe,createData:le,isSaving:p.isPending,onConfirm:Se,onCancel:Ce}),(0,N.jsx)(QI,{open:he,customApi:v??null,isDeleting:m.isPending,onConfirm:Ee,onCancel:De})]})},$z=e=>{let{connection:t,instanceId:n}=U(),{data:r,status:i,error:a,isFetching:o}=XP({queryKey:pF.metadata(e,t?.id??``,n),queryFn:()=>window.dataverseAPI.getEntityMetadata(e,!0),enabled:e!=null&&e!==``,staleTime:1/0});return{metadata:r,primaryid:r?.PrimaryIdAttribute,primaryname:r?.PrimaryNameAttribute,collectionname:r?.LogicalCollectionName,status:i,error:a,isFetching:o}},eB=e=>{let t=U(e=>e.connection),n=U(e=>e.isLoadingConnection),r=U(e=>e.instanceId),i=$z(e??``),a=i.metadata?.LogicalCollectionName,o=i.metadata?.PrimaryIdAttribute,s=i.metadata?.PrimaryNameAttribute,c=i.isFetching,{data:l,status:u,error:d,isFetching:f}=XP({queryKey:pF.entityRecords(e??``,t?.id??``,r),queryFn:async()=>{if(!a||!o)return{value:[]};let e=s?`$select=${o},${s}`:`$select=${o}`;return window.dataverseAPI.queryData(`${a}?${e}`)},enabled:!!t&&!n&&!!e&&!!a&&!!o,staleTime:1/0});return{records:(l?.value??[]).map(e=>{let t=o??`id`,n=s;return{id:e[t],name:n?e[n]??e[t]:e[t]}}),collectionname:a,primaryid:o,primaryname:s,status:u,error:d,isFetching:f||c}},tB=function(e){return e[e.Sunday=0]=`Sunday`,e[e.Monday=1]=`Monday`,e[e.Tuesday=2]=`Tuesday`,e[e.Wednesday=3]=`Wednesday`,e[e.Thursday=4]=`Thursday`,e[e.Friday=5]=`Friday`,e[e.Saturday=6]=`Saturday`,e}({}),nB=function(e){return e[e.January=0]=`January`,e[e.February=1]=`February`,e[e.March=2]=`March`,e[e.April=3]=`April`,e[e.May=4]=`May`,e[e.June=5]=`June`,e[e.July=6]=`July`,e[e.August=7]=`August`,e[e.September=8]=`September`,e[e.October=9]=`October`,e[e.November=10]=`November`,e[e.December=11]=`December`,e}({}),rB=function(e){return e[e.FirstDay=0]=`FirstDay`,e[e.FirstFullWeek=1]=`FirstFullWeek`,e[e.FirstFourDayWeek=2]=`FirstFourDayWeek`,e}({}),iB=function(e){return e[e.Day=0]=`Day`,e[e.Week=1]=`Week`,e[e.Month=2]=`Month`,e[e.WorkWeek=3]=`WorkWeek`,e}({}),aB={MillisecondsInOneDay:864e5,MillisecondsIn1Sec:1e3,MillisecondsIn1Min:6e4,MillisecondsIn30Mins:18e5,MillisecondsIn1Hour:36e5,MinutesInOneDay:1440,MinutesInOneHour:60,DaysInOneWeek:7,MonthInOneYear:12,HoursInOneDay:24,SecondsInOneMinute:60,OffsetTo24HourFormat:12,TimeFormatRegex:/^(\d\d?):(\d\d):?(\d\d)? ?([ap]m)?/i},oB=e=>e.getDate().toString(),sB=(e,t)=>t.months[e.getMonth()]+` `+e.getDate()+`, `+e.getFullYear(),cB=(e,t)=>t.months[e.getMonth()]+` `+e.getFullYear(),lB=(e,t)=>t.months[e.getMonth()],uB=e=>e.getFullYear().toString(),dB={months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`S`,`M`,`T`,`W`,`T`,`F`,`S`]},fB={formatDay:oB,formatMonth:lB,formatYear:uB,formatMonthDayYear:sB,formatMonthYear:cB},pB={...dB,goToToday:`Go to today`,weekNumberFormatString:`Week number {0}`,prevMonthAriaLabel:`Previous month`,nextMonthAriaLabel:`Next month`,prevYearAriaLabel:`Previous year`,nextYearAriaLabel:`Next year`,prevYearRangeAriaLabel:`Previous year range`,nextYearRangeAriaLabel:`Next year range`,closeButtonAriaLabel:`Close`,selectedDateFormatString:`Selected date {0}`,todayDateFormatString:`Today's date {0}`,monthPickerHeaderAriaLabel:`{0}, change year`,yearPickerHeaderAriaLabel:`{0}, change month`,dayMarkedAriaLabel:`marked`};function mB(e,t){let n=new Date(e.getTime());return n.setDate(n.getDate()+t),n}function hB(e,t){return mB(e,t*aB.DaysInOneWeek)}function gB(e,t){let n=new Date(e.getTime()),r=n.getMonth()+t;return n.setMonth(r),n.getMonth()!==(r%aB.MonthInOneYear+aB.MonthInOneYear)%aB.MonthInOneYear&&(n=mB(n,-n.getDate())),n}function _B(e,t){let n=new Date(e.getTime());return n.setFullYear(e.getFullYear()+t),n.getMonth()!==(e.getMonth()%aB.MonthInOneYear+aB.MonthInOneYear)%aB.MonthInOneYear&&(n=mB(n,-n.getDate())),n}function vB(e){return new Date(e.getFullYear(),e.getMonth(),1,0,0,0,0)}function yB(e){return new Date(e.getFullYear(),e.getMonth()+1,0,0,0,0,0)}function bB(e){return new Date(e.getFullYear(),0,1,0,0,0,0)}function xB(e){return new Date(e.getFullYear()+1,0,0,0,0,0,0)}function SB(e,t){return gB(e,t-e.getMonth())}function CB(e,t){return!e&&!t?!0:!e||!t?!1:e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function wB(e,t){return jB(e)-jB(t)}function TB(e,t,n,r,i=1){let a=[],o,s=null;switch(r||=[tB.Monday,tB.Tuesday,tB.Wednesday,tB.Thursday,tB.Friday],t){case iB.Day:[o,s]=[e,mB(e,i)],wB(o,s)>0&&([o,s]=[mB(s,1),mB(o,1)]);break;case iB.Week:case iB.WorkWeek:o=kB(AB(e),n),s=mB(o,aB.DaysInOneWeek);break;case iB.Month:o=new Date(e.getFullYear(),e.getMonth(),1),s=gB(o,1);break;default:throw Error(`Unexpected object: `+t)}let c=o;do t===iB.WorkWeek?r.indexOf(c.getDay())!==-1&&a.push(c):a.push(c),c=mB(c,1);while(!CB(c,s));return a}function EB(e,t){for(let n of t)if(CB(e,n))return!0;return!1}function DB(e,t,n,r){let i=r.getFullYear(),a=r.getMonth(),o=1,s=new Date(i,a,o),c=o+(t+aB.DaysInOneWeek-1)-PB(t,s.getDay()),l=new Date(i,a,c);o=l.getDate();let u=[];for(let r=0;r<e;r++)u.push(OB(l,t,n)),o+=aB.DaysInOneWeek,l=new Date(i,a,o);return u}function OB(e,t,n){switch(n){case rB.FirstFullWeek:return MB(e,t,aB.DaysInOneWeek);case rB.FirstFourDayWeek:return MB(e,t,4);default:return NB(e,t)}}function kB(e,t){let n=t-e.getDay();return n>0&&(n-=aB.DaysInOneWeek),mB(e,n)}function AB(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function jB(e){return e.getDate()+(e.getMonth()<<5)+(e.getFullYear()<<9)}function MB(e,t,n){let r=FB(e)-1,i=e.getDay()-r%aB.DaysInOneWeek,a=FB(new Date(e.getFullYear()-1,nB.December,31))-1,o=(t-i+2*aB.DaysInOneWeek)%aB.DaysInOneWeek;o!==0&&o>=n&&(o-=aB.DaysInOneWeek);let s=r-o;return s<0&&(i-=a%aB.DaysInOneWeek,o=(t-i+2*aB.DaysInOneWeek)%aB.DaysInOneWeek,o!==0&&o+1>=n&&(o-=aB.DaysInOneWeek),s=a-o),Math.floor(s/aB.DaysInOneWeek+1)}function NB(e,t){let n=FB(e)-1,r=(e.getDay()-n%aB.DaysInOneWeek-t+2*aB.DaysInOneWeek)%aB.DaysInOneWeek;return Math.floor((n+r)/aB.DaysInOneWeek+1)}function PB(e,t){return e!==tB.Sunday&&t<e?t+aB.DaysInOneWeek:t}function FB(e){let t=e.getMonth(),n=e.getFullYear(),r=0;for(let e=0;e<t;e++)r+=IB(e+1,n);return r+=e.getDate(),r}function IB(e,t){return new Date(t,e,0).getDate()}var LB=(e,t)=>{let{minDate:n}=t;return n?wB(n,e)>=1:!1},RB=(e,t)=>{let{maxDate:n}=t;return n?wB(e,n)>=1:!1},zB=(e,t)=>{let{restrictedDates:n,minDate:r,maxDate:i}=t;return!n&&!r&&!i?!1:n&&n.some(t=>CB(t,e))||LB(e,t)||RB(e,t)},BB=e=>{let{targetDate:t,initialDate:n,direction:r,...i}=e,a=t;if(!zB(t,i))return t;for(;wB(n,a)!==0&&zB(a,i)&&!RB(a,i)&&!LB(a,i);)a=mB(a,r);if(wB(n,a)!==0&&!zB(a,i))return a},VB=(e,t,n)=>{let r=[...e];return t&&(r=r.filter(e=>wB(e,t)>=0)),n&&(r=r.filter(e=>wB(e,n)<=0)),r},HB=(e,t,n)=>{let r=new Set(e),i=0;for(let a of e){let e=(a+1)%7;r.has(e)&&(!t||n!==e)||i++}return i<2},UB=(e,t,n)=>t&&e===iB.WorkWeek&&(!HB(t,!0,n)||t.length===0)?iB.Week:e,WB=e=>{let{selectedDate:t,dateRangeType:n,firstDayOfWeek:r,today:i,minDate:a,maxDate:o,weeksToShow:s,workWeekDays:c,daysToSelectInDayView:l,restrictedDates:u,markedDays:d}=e,f={minDate:a,maxDate:o,restrictedDates:u},p=i||new Date,m=e.navigatedDate?e.navigatedDate:p,h;h=s&&s<=4?new Date(m.getFullYear(),m.getMonth(),m.getDate()):new Date(m.getFullYear(),m.getMonth(),1);let g=[];for(;h.getDay()!==r;)h.setDate(h.getDate()-1);h=mB(h,-7);let _=!1,v=UB(n,c,r),y=[];t&&(y=TB(t,v,r,c,l),y=VB(y,a,o));let b=!0;for(let e=0;b;e++){let n=[];_=!0;for(let e=0;e<7;e++){let e=new Date(h.getTime()),r={key:h.toString(),date:h.getDate().toString(),originalDate:e,isInMonth:h.getMonth()===m.getMonth(),isToday:CB(p,h),isSelected:EB(h,y),isSingleSelected:y.length===1&&CB(h,t),isInBounds:!zB(h,f),isMarked:d?.some(t=>CB(e,t))||!1};n.push(r),r.isInMonth&&(_=!1),h.setDate(h.getDate()+1)}b=s?e<s+1:!_||e===0,g.push(n)}return g},GB=void 0;function KB(e,t){if(e){if(GB){GB=e;return}GB=e,t&&t.requestAnimationFrame(()=>{GB&&GB.focus(),GB=void 0})}}var qB=function(e){return e[e.Horizontal=0]=`Horizontal`,e[e.Vertical=1]=`Vertical`,e}({}),JB={topRightCornerDate:`fui-CalendarDayGrid__topRightCornerDate`,topLeftCornerDate:`fui-CalendarDayGrid__topLeftCornerDate`,bottomRightCornerDate:`fui-CalendarDayGrid__bottomRightCornerDate`,bottomLeftCornerDate:`fui-CalendarDayGrid__bottomLeftCornerDate`};function YB(e){let{dir:t}=Gi(),n=e=>{let t={},n=e.slice(1,e.length-1);return n.forEach((e,a)=>{e.forEach((e,o)=>{let s=n[a-1]&&n[a-1][o]&&i(n[a-1][o].originalDate,e.originalDate,n[a-1][o].isSelected,e.isSelected),c=n[a+1]&&n[a+1][o]&&i(n[a+1][o].originalDate,e.originalDate,n[a+1][o].isSelected,e.isSelected),l=n[a][o-1]&&i(n[a][o-1].originalDate,e.originalDate,n[a][o-1].isSelected,e.isSelected),u=n[a][o+1]&&i(n[a][o+1].originalDate,e.originalDate,n[a][o+1].isSelected,e.isSelected);t[a+`_`+o]=r(s,c,l,u)})}),t},r=(e,n,r,i)=>{let a=[],o=!e&&!r,s=!e&&!i,c=!n&&!r,l=!n&&!i;return o&&a.push(t===`rtl`?JB.topRightCornerDate:JB.topLeftCornerDate),s&&a.push(t===`rtl`?JB.topLeftCornerDate:JB.topRightCornerDate),c&&a.push(t===`rtl`?JB.bottomRightCornerDate:JB.bottomLeftCornerDate),l&&a.push(t===`rtl`?JB.bottomLeftCornerDate:JB.bottomRightCornerDate),A(...a)},i=(t,n,r,i)=>{let{dateRangeType:a,firstDayOfWeek:o,workWeekDays:s}=e,c=TB(t,a===iB.WorkWeek?iB.Week:a,o,s);return r===i?r&&i?!0:c.filter(e=>e.getTime()===n.getTime()).length>0:!1};return[n,r]}var XB={wrapper:`fui-CalendarDayGrid__wrapper`,table:`fui-CalendarDayGrid__table`,dayCell:`fui-CalendarDayGrid__dayCell`,daySelected:`fui-CalendarDayGrid__daySelected`,daySingleSelected:`fui-CalendarDayGrid__daySingleSelected`,weekRow:`fui-CalendarDayGrid__weekRow`,weekDayLabelCell:`fui-CalendarDayGrid__weekDayLabelCell`,weekNumberCell:`fui-CalendarDayGrid__weekNumberCell`,dayOutsideBounds:`fui-CalendarDayGrid__dayOutsideBounds`,dayOutsideNavigatedMonth:`fui-CalendarDayGrid__dayOutsideNavigatedMonth`,dayButton:`fui-CalendarDayGrid__dayButton`,dayIsToday:`fui-CalendarDayGrid__dayIsToday`,firstTransitionWeek:`fui-CalendarDayGrid__firstTransitionWeek`,lastTransitionWeek:`fui-CalendarDayGrid__lastTransitionWeek`,dayMarker:`fui-CalendarDayGrid__dayMarker`,dayTodayMarker:`fui-CalendarDayGrid__dayTodayMarker`},ZB={hoverStyle:`fui-CalendarDayGrid__hoverStyle`,pressedStyle:`fui-CalendarDayGrid__pressedStyle`},QB=P({base:{Byoj8tv:`f1fow5ox`}},{d:[`.f1fow5ox{padding-bottom:10px;}`]}),$B=P({base:{po53p8:`fgkb47j`,Bxjg3zr:`f16vktn6`,Be2twd7:`fjoy568`,B6of3ja:`fvjh0tl`,Byoj8tv:`f1fow5ox`,qhf8xq:`f10pi13n`,B73mfa3:`f14m3nip`,fsow6f:`f17mccla`,a9b677:`f4m2ahc`},showWeekNumbers:{a9b677:`fl524qk`}},{d:[`.fgkb47j{border-collapse:collapse;}`,`.f16vktn6{border-spacing:0;}`,`.fjoy568{font-size:inherit;}`,`.fvjh0tl{margin-top:4px;}`,`.f1fow5ox{padding-bottom:10px;}`,`.f10pi13n{position:relative;}`,`.f14m3nip{table-layout:fixed;}`,`.f17mccla{text-align:center;}`,`.f4m2ahc{width:196px;}`,`.fl524qk{width:226px;}`]}),eV=P({base:{sj55zd:`f19n0e5`,Bceei9c:`f1k6fduh`,Be2twd7:`fy9rknc`,Bhrd7zp:`figsok6`,jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:`f1s184ao`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`fqtknz5`,qhf8xq:`f10pi13n`,By8wz76:`ftx6bta`,B7iucu3:`fhs7xo9`,cvlxnx:`fp6dsbd`,Bweudez:`f4xgodq`,D35jaw:0,Ehvor9:0,B2d49eq:0,Bup3k99:`f13vaffi`,opggj9:`f1ndb8o`,Bcb90bd:`f1m5g7hf`,Bj67fi1:`f1lhgsq9`,B2gfgcj:`fdbuq6n`,Bg8e59q:`f1nsyjd2`,oie0zm:`fs9m20f`,mf9vuf:[`f4ozsz2`,`fd6br62`],Gyav41:`fqrwank`,tqq02e:[`fd6br62`,`f4ozsz2`],Bua87ti:`fl9wzut`},focusIndicator:{Brovlpu:`ftqa4ok`,B486eqv:`f2hkw1w`,B8q5s1w:`f8hki3x`,Bci5o5g:[`f1d2448m`,`ffh67wi`],n8qw10:`f1bjia2o`,Bdrgwmp:[`ffh67wi`,`f1d2448m`],Bqhya38:`f1j6vpng`,Bwxa6fj:[`f1pniga2`,`f1ffjurs`],Bdhvstf:`f987i1v`,B7zbvrb:[`f1ffjurs`,`f1pniga2`],Bm4h7ae:`f15bsgw9`,B7ys5i9:`f14e48fq`,Busjfv9:`f18yb2kv`,Bhk32uz:`fd6o370`,f6g5ot:0,Boxcth7:0,Bhdgwq3:0,hgwjuy:0,Bshpdp8:0,Bsom6fd:0,Blkhhs4:0,Bonggc9:0,Ddfuxk:0,i03rao:0,kclons:0,clg4pj:0,Bpqj9nj:0,B6dhp37:0,Bf4ptjt:0,Bqtpl0w:0,i4rwgc:`fpqizxz`,Dah5zi:0,B1tsrr9:0,qqdqy8:0,Bkh64rk:0,e3fwne:`f3znvyf`,J0r882:`fqkqgbk`,Bule8hv:[`f1as04kd`,`ft30ozv`],Bjwuhne:`f8pxvb2`,Ghsupd:[`ft30ozv`,`f1as04kd`]}},{d:[`.f19n0e5{color:var(--colorNeutralForeground1);}`,`.f1k6fduh{cursor:pointer;}`,`.fy9rknc{font-size:var(--fontSizeBase200);}`,`.figsok6{font-weight:var(--fontWeightRegular);}`,[`.f1s184ao{margin:0;}`,{p:-1}],[`.fqtknz5{padding:2px;}`,{p:-1}],`.f10pi13n{position:relative;}`,`.fp6dsbd.fui-CalendarDayGrid__hoverStyle{color:var(--colorNeutralForeground1Static);}`,`.f4xgodq.fui-CalendarDayGrid__hoverStyle{background-color:var(--colorBrandBackgroundInvertedHover);}`,`.f1lhgsq9.fui-CalendarDayGrid__pressedStyle{color:var(--colorNeutralForeground1Static);}`,`.fdbuq6n.fui-CalendarDayGrid__pressedStyle{background-color:var(--colorBrandBackgroundInvertedPressed);}`,`.f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}`,`.f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}`,`.ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}`,`.f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}`,`.f15bsgw9[data-fui-focus-visible]::after{content:"";}`,`.f14e48fq[data-fui-focus-visible]::after{position:absolute;}`,`.f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}`,`.fd6o370[data-fui-focus-visible]::after{z-index:1;}`,[`.fpqizxz[data-fui-focus-visible]::after{border:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}`,{p:-2}],[`.f3znvyf[data-fui-focus-visible]::after{border-radius:var(--borderRadiusMedium);}`,{p:-1}],`.fqkqgbk[data-fui-focus-visible]::after{top:calc(var(--strokeWidthThick) * -1);}`,`.f1as04kd[data-fui-focus-visible]::after{right:calc(var(--strokeWidthThick) * -1);}`,`.ft30ozv[data-fui-focus-visible]::after{left:calc(var(--strokeWidthThick) * -1);}`,`.f8pxvb2[data-fui-focus-visible]::after{bottom:calc(var(--strokeWidthThick) * -1);}`],m:[[`@media (forced-colors: active){.ftx6bta{background-color:Window;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fhs7xo9{color:WindowText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f13vaffi.fui-CalendarDayGrid__hoverStyle{outline:1px solid Highlight;}}`,{p:-1,m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1ndb8o.fui-CalendarDayGrid__hoverStyle{z-index:3;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1m5g7hf.fui-CalendarDayGrid__hoverStyle .fui-CalendarDayGrid__dayTodayMarker{background-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1nsyjd2.fui-CalendarDayGrid__pressedStyle{background-color:Window;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fs9m20f.fui-CalendarDayGrid__pressedStyle{border-top-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f4ozsz2.fui-CalendarDayGrid__pressedStyle{border-right-color:Highlight;}.fd6br62.fui-CalendarDayGrid__pressedStyle{border-left-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fqrwank.fui-CalendarDayGrid__pressedStyle{border-bottom-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fl9wzut.fui-CalendarDayGrid__pressedStyle{color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1j6vpng[data-fui-focus-visible]::after{border-top-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1ffjurs[data-fui-focus-visible]::after{border-left-color:Highlight;}.f1pniga2[data-fui-focus-visible]::after{border-right-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f987i1v[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}`,{m:`(forced-colors: active)`}]],f:[`.ftqa4ok:focus{outline-style:none;}`],i:[`.f2hkw1w:focus-visible{outline-style:none;}`]}),tV=P({base:{De3pzq:`f1vevd59`,sj55zd:`ff5vbop`,By8wz76:`f1nz3ub2`,Bcq6wej:`fjq791v`,Jcjdmf:[`fkq2p2y`,`f1sehlss`],sc4o1m:`f11odvng`,Bosien3:[`f1sehlss`,`fkq2p2y`],B7iucu3:`fqc85l4`,B8gzw0y:`f1h3a8gf`,a3nq4f:`f1chdfq9`,Bnf3alp:`fq0dbue`,pdtyat:`fb3dhiz`,z6f07v:`f1xnoze0`,Bec5aua:`f1mubwa3`}},{d:[`.f1vevd59{background-color:var(--colorBrandBackgroundInvertedSelected);}`,`.ff5vbop{color:var(--colorNeutralForeground1Static);}`],m:[[`@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fjq791v{border-top-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1sehlss{border-left-color:Highlight;}.fkq2p2y{border-right-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f11odvng{border-bottom-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fqc85l4{color:HighlightText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fb3dhiz:hover,.fb3dhiz.fui-CalendarDayGrid__hoverStyle,.fb3dhiz.fui-CalendarDayGrid__pressedStyle{background-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1xnoze0:hover,.f1xnoze0.fui-CalendarDayGrid__hoverStyle,.f1xnoze0.fui-CalendarDayGrid__pressedStyle{color:HighlightText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1mubwa3>.fui-CalendarDayGrid__dayMarker{background-color:Window;}}`,{m:`(forced-colors: active)`}]],h:[`.f1chdfq9:hover,.f1chdfq9.fui-CalendarDayGrid__hoverStyle,.f1chdfq9.fui-CalendarDayGrid__pressedStyle{color:var(--colorNeutralForeground1Static);}`,`.fq0dbue:hover,.fq0dbue.fui-CalendarDayGrid__hoverStyle,.fq0dbue.fui-CalendarDayGrid__pressedStyle{background-color:var(--colorBrandBackgroundInvertedSelected);}`]}),nV=P({base:{sj55zd:`ff5vbop`,Bec5aua:`f1mubwa3`,B2ns3jv:`fy35frb`,Bwxf4zv:0,Bp8cau8:0,Buy161k:0,Bpzqh5e:0,Fh6yq5:`f8kna22`,Bjnjwcd:0,Jh9m0u:0,k24jl4:0,yen2pv:0,isizv9:0,Fmkg4n:0,Bksmc0g:0,ydc5we:0,g36fg5:0,xn840g:0,Bvql7r5:0,Cmeexk:0,Brwjcd2:0,Buxuwzc:0,Bz06psx:0,B75pphk:0,Bkp00lz:`f11572cp`,B4k9tdm:`f8qifl1`,Ba18yr8:`f19flthw`,B5fqyig:[`fwk98tc`,`f3izcvc`],Bjrn8xn:`fi9jqiz`,Bkpapd2:[`f3izcvc`,`fwk98tc`],xrravj:`f12o3e7s`,z0dzun:`f1fjwm8e`}},{d:[`.ff5vbop{color:var(--colorNeutralForeground1Static);}`,`.fy35frb>.fui-CalendarDayGrid__dayButton{background-color:var(--colorBrandBackgroundInvertedSelected);}`,[`.f8kna22>.fui-CalendarDayGrid__dayButton{border-radius:var(--borderRadiusMedium);}`,{p:-1}],[`.f11572cp>.fui-CalendarDayGrid__dayButton{border:1px solid var(--colorBrandStroke1);}`,{p:-2}]],m:[[`@media (forced-colors: active){.f1mubwa3>.fui-CalendarDayGrid__dayMarker{background-color:Window;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f8qifl1>.fui-CalendarDayGrid__dayButton{background-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f19flthw>.fui-CalendarDayGrid__dayButton{border-top-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f3izcvc>.fui-CalendarDayGrid__dayButton{border-left-color:Highlight;}.fwk98tc>.fui-CalendarDayGrid__dayButton{border-right-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fi9jqiz>.fui-CalendarDayGrid__dayButton{border-bottom-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f12o3e7s>.fui-CalendarDayGrid__dayButton{color:HighlightText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1fjwm8e>.fui-CalendarDayGrid__dayButton{forced-color-adjust:none;}}`,{m:`(forced-colors: active)`}]]}),rV=P({base:{qhf8xq:`f10pi13n`,mlyf9c:`f1gazwyt`},animation:{vin17d:`f5f2jbu`,Bf5fcs:`fywypte`,Ezkn3b:`f1ee2ue`},horizontalBackward:{Bv12yb3:[`f1o9w3l8`,`f1kwjajc`]},horizontalForward:{Bv12yb3:[`f1kwjajc`,`f1o9w3l8`]},verticalBackward:{Bv12yb3:`fgl3yn7`},verticalForward:{Bv12yb3:`faiu5ye`}},{d:[`.f10pi13n{position:relative;}`,`.f5f2jbu{animation-duration:0.367s;}`,`.fywypte{animation-fill-mode:both;}`,`.f1ee2ue{animation-timing-function:cubic-bezier(.1,.9,.2,1);}`,`.f1o9w3l8{animation-name:f5j8bii,f2lgmc3;}`,`.f1kwjajc{animation-name:f5j8bii,fpktcv7;}`,`.fgl3yn7{animation-name:f5j8bii,f3bv9km;}`,`.faiu5ye{animation-name:f5j8bii,funtx0y;}`],w:[`.f1gazwyt:focus-within{z-index:1;}`],k:[`@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}`,`@keyframes f2lgmc3{from{pointer-events:none;transform:translate3d(-20px, 0, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}`,`@keyframes fpktcv7{from{pointer-events:none;transform:translate3d(20px, 0, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}`,`@keyframes f3bv9km{from{pointer-events:none;transform:translate3d(0, -20px, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}`,`@keyframes funtx0y{from{pointer-events:none;transform:translate3d(0, 20px, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}`]}),iV=P({base:{famaaq:`f1xqy1su`,vin17d:`fhsqnsn`,Bf5fcs:`fywypte`,Bv12yb3:`f1h7u52p`,Ezkn3b:`fjq4c94`}},{d:[`.f1xqy1su{-webkit-user-select:none;-moz-user-select:none;user-select:none;}`,`.fhsqnsn{animation-duration:0.267s;}`,`.fywypte{animation-fill-mode:both;}`,`.f1h7u52p{animation-name:f5j8bii;}`,`.fjq4c94{animation-timing-function:cubic-bezier(.1,.25,.75,.9);}`],k:[`@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}`]}),aV=P({base:{De3pzq:`f1c21dwh`,h3c5rm:0,vrafjx:0,Bekrc4i:0,u1mtju:[`fe2nn5g`,`f1rcbay7`],B7ck84d:`f1ewtqcl`,sj55zd:`fxc4j92`,Be2twd7:`fy9rknc`,Bhrd7zp:`figsok6`,Bqenvij:`fxldao9`,jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:`f1s184ao`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f1mk8lai`,a9b677:`f1w9dchk`}},{d:[`.f1c21dwh{background-color:var(--colorTransparentBackground);}`,[`.fe2nn5g{border-right:1px solid var(--colorNeutralStroke2);}`,{p:-1}],[`.f1rcbay7{border-left:1px solid var(--colorNeutralStroke2);}`,{p:-1}],`.f1ewtqcl{box-sizing:border-box;}`,`.fxc4j92{color:var(--colorNeutralForeground4);}`,`.fy9rknc{font-size:var(--fontSizeBase200);}`,`.figsok6{font-weight:var(--fontWeightRegular);}`,`.fxldao9{height:28px;}`,[`.f1s184ao{margin:0;}`,{p:-1}],[`.f1mk8lai{padding:0;}`,{p:-1}],`.f1w9dchk{width:28px;}`]}),oV=P({base:{x734em:`f1v4z6xg`,B0ssf13:`f1u9q7oh`,B8h8h5z:`f1a22lcc`,B7iucu3:`f1cyfu5x`}},{d:[`.f1v4z6xg,.f1v4z6xg:disabled,.f1v4z6xg button,.f1v4z6xg.fui-CalendarDayGrid__hoverStyle,.f1v4z6xg.fui-CalendarDayGrid__pressedStyle{background-color:var(--colorTransparentBackground);}`,`.f1u9q7oh,.f1u9q7oh:disabled,.f1u9q7oh button,.f1u9q7oh.fui-CalendarDayGrid__hoverStyle,.f1u9q7oh.fui-CalendarDayGrid__pressedStyle{color:var(--colorNeutralForegroundDisabled);}`,`.f1a22lcc,.f1a22lcc:disabled,.f1a22lcc button,.f1a22lcc.fui-CalendarDayGrid__hoverStyle,.f1a22lcc.fui-CalendarDayGrid__pressedStyle{pointer-events:none;}`],m:[[`@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}`,{m:`(forced-colors: active)`}]]}),sV=P({lightenDaysOutsideNavigatedMonth:{sj55zd:`fxc4j92`,Bhrd7zp:`figsok6`,B7iucu3:`f1cyfu5x`}},{d:[`.fxc4j92{color:var(--colorNeutralForeground4);}`,`.figsok6{font-weight:var(--fontWeightRegular);}`],m:[[`@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}`,{m:`(forced-colors: active)`}]]}),cV=P({base:{De3pzq:`f1c21dwh`,Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:`f3bhgqh`,sj55zd:`f1ym3bx4`,Bceei9c:`f1k6fduh`,Be2twd7:`fy9rknc`,Bhrd7zp:`ff5ikls`,Bqenvij:`frvgh55`,Bg96gwp:`f8xlz6g`,B68tc82:0,Bmxbyg5:0,Bpg54ce:`f1gl81tg`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f1mk8lai`,a9b677:`fq4mcun`,Bx0yju7:`f10y451g`,l98f4w:`f1dwpgx3`,Jwef8y:`f18a0fwf`,Btmb5he:0,gu71dq:0,B2zomw9:0,Fgk69s:0,Bw6eyry:`f1mhq3ai`,ecr2s2:`f7la2e8`}},{d:[`.f1c21dwh{background-color:var(--colorTransparentBackground);}`,[`.f3bhgqh{border:none;}`,{p:-2}],`.f1ym3bx4{color:inherit;}`,`.f1k6fduh{cursor:pointer;}`,`.fy9rknc{font-size:var(--fontSizeBase200);}`,`.ff5ikls{font-weight:inherit;}`,`.frvgh55{height:24px;}`,`.f8xlz6g{line-height:24px;}`,[`.f1gl81tg{overflow:visible;}`,{p:-1}],[`.f1mk8lai{padding:0;}`,{p:-1}],`.fq4mcun{width:24px;}`,`.f10y451gspan{height:inherit;}`,`.f1dwpgx3span{line-height:inherit;}`],h:[`.f18a0fwf:hover{background-color:var(--colorBrandBackgroundInvertedHover);}`,[`.f1mhq3ai:hover{border-radius:var(--borderRadiusMedium);}`,{p:-1}]],a:[`.f7la2e8:active{background-color:var(--colorBrandBackgroundInvertedPressed);}`]}),lV=P({base:{mc9l5x:`f22iagw`,Brf1p80:`f4d9j23`,Bt984gj:`f122n59`,sj55zd:`f1phragk`,Bhrd7zp:`fl43uef`,kof2un:`f1b5s8wn`,Bec5aua:`f1mubwa3`}},{d:[`.f22iagw{display:flex;}`,`.f4d9j23{justify-content:center;}`,`.f122n59{align-items:center;}`,`.f1phragk{color:var(--colorNeutralForegroundOnBrand);}`,`.fl43uef{font-weight:var(--fontWeightSemibold);}`,`.f1b5s8wn>.fui-CalendarDayGrid__dayMarker{background-color:var(--colorNeutralForegroundOnBrand);}`],m:[[`@media (forced-colors: active){.f1mubwa3>.fui-CalendarDayGrid__dayMarker{background-color:Window;}}`,{m:`(forced-colors: active)`}]]}),uV=P({base:{mc9l5x:`f22iagw`,Brf1p80:`f4d9j23`,Bt984gj:`f122n59`,De3pzq:`ffp7eso`,Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`f1qtlz2s`,a9b677:`f64fuq3`,Bqenvij:`fjamq6b`,Bg96gwp:`f1n95isl`,By8wz76:`fq1p4f3`,Bcq6wej:`fcwbuzc`,Jcjdmf:[`f1iyvy17`,`fu9dqmu`],sc4o1m:`fa5hmw6`,Bosien3:[`fu9dqmu`,`f1iyvy17`],B7iucu3:`fygpdla`,B8gzw0y:`f1h3a8gf`}},{d:[`.f22iagw{display:flex;}`,`.f4d9j23{justify-content:center;}`,`.f122n59{align-items:center;}`,`.ffp7eso{background-color:var(--colorBrandBackground);}`,[`.f1qtlz2s{border-radius:100%;}`,{p:-1}],`.f64fuq3{width:20px;}`,`.fjamq6b{height:20px;}`,`.f1n95isl{line-height:20px;}`],m:[[`@media (forced-colors: active){.fq1p4f3{background-color:WindowText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fcwbuzc{border-top-color:WindowText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1iyvy17{border-right-color:WindowText;}.fu9dqmu{border-left-color:WindowText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fa5hmw6{border-bottom-color:WindowText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fygpdla{color:Window;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}`,{m:`(forced-colors: active)`}]]}),dV=P({base:{Bqenvij:`fniina8`,abs64n:`fk73vx1`,B68tc82:0,Bmxbyg5:0,Bpg54ce:`f1a3p1vp`,qhf8xq:`f1euv43f`,a9b677:`f3tsq5r`},verticalForward:{vin17d:`f5f2jbu`,Bf5fcs:`fywypte`,Bv12yb3:`fupj2f5`,Ezkn3b:`f1ee2ue`}},{d:[`.fniina8{height:0;}`,`.fk73vx1{opacity:0;}`,[`.f1a3p1vp{overflow:hidden;}`,{p:-1}],`.f1euv43f{position:absolute;}`,`.f3tsq5r{width:0;}`,`.f5f2jbu{animation-duration:0.367s;}`,`.fywypte{animation-fill-mode:both;}`,`.fupj2f5{animation-name:f199e34v,f76svrd,f13agkrc;}`,`.f1ee2ue{animation-timing-function:cubic-bezier(.1,.9,.2,1);}`],k:[`@keyframes f199e34v{from{opacity:1;}to{opacity:0;visibility:hidden;}}`,`@keyframes f76svrd{from{transform:translate3d(0, 0, 0);}to{transform:translate3d(0, -20px, 0);}}`,`@keyframes f13agkrc{100%{height:0px;overflow:hidden;width:0px;}99.9%{height:28px;overflow:visible;width:100%;}0%{height:28px;overflow:visible;width:100%;}}`]}),fV=P({base:{Bqenvij:`fniina8`,B6of3ja:`flykjtj`,abs64n:`fk73vx1`,B68tc82:0,Bmxbyg5:0,Bpg54ce:`f1a3p1vp`,qhf8xq:`f1euv43f`,a9b677:`f3tsq5r`},verticalBackward:{vin17d:`f5f2jbu`,Bf5fcs:`fywypte`,Bv12yb3:`fifoktk`,Ezkn3b:`f1ee2ue`}},{d:[`.fniina8{height:0;}`,`.flykjtj{margin-top:-28px;}`,`.fk73vx1{opacity:0;}`,[`.f1a3p1vp{overflow:hidden;}`,{p:-1}],`.f1euv43f{position:absolute;}`,`.f3tsq5r{width:0;}`,`.f5f2jbu{animation-duration:0.367s;}`,`.fywypte{animation-fill-mode:both;}`,`.fifoktk{animation-name:f199e34v,f18895iq,f13agkrc;}`,`.f1ee2ue{animation-timing-function:cubic-bezier(.1,.9,.2,1);}`],k:[`@keyframes f199e34v{from{opacity:1;}to{opacity:0;visibility:hidden;}}`,`@keyframes f18895iq{from{transform:translate3d(0, 0, 0);}to{transform:translate3d(0, 20px, 0);}}`,`@keyframes f13agkrc{100%{height:0px;overflow:hidden;width:0px;}99.9%{height:28px;overflow:visible;width:100%;}0%{height:28px;overflow:visible;width:100%;}}`]}),pV=P({base:{De3pzq:`fnggedw`,Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`f1qtlz2s`,B5kzvoi:`f1oq0udb`,Bqenvij:`f6ywr7j`,oyh7mz:[`f1vgc2s3`,`f1e31b4d`],jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:`fcpdi13`,qhf8xq:`f1euv43f`,j35jbq:[`f1e31b4d`,`f1vgc2s3`],a9b677:`faro0ui`,By8wz76:`fq1p4f3`,B8gzw0y:`f1h3a8gf`}},{d:[`.fnggedw{background-color:var(--colorBrandForeground2);}`,[`.f1qtlz2s{border-radius:100%;}`,{p:-1}],`.f1oq0udb{bottom:1px;}`,`.f6ywr7j{height:4px;}`,`.f1vgc2s3{left:0;}`,`.f1e31b4d{right:0;}`,[`.fcpdi13{margin:auto;}`,{p:-1}],`.f1euv43f{position:absolute;}`,`.faro0ui{width:4px;}`],m:[[`@media (forced-colors: active){.fq1p4f3{background-color:WindowText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}`,{m:`(forced-colors: active)`}]]}),mV=P({corners:{Cy64m2:[`f1yxjewa`,`f5xfyye`],Bnn43bw:[`f1kpdnd7`,`fokqrni`],feanbc:[`f127emps`,`f1s6s1el`],B4268ip:[`f39vr2a`,`frpqyrn`]}},{d:[`.f1yxjewa.fui-CalendarDayGrid__topRightCornerDate{border-top-right-radius:var(--borderRadiusMedium);}`,`.f5xfyye.fui-CalendarDayGrid__topRightCornerDate{border-top-left-radius:var(--borderRadiusMedium);}`,`.f1kpdnd7.fui-CalendarDayGrid__topLeftCornerDate{border-top-left-radius:var(--borderRadiusMedium);}`,`.fokqrni.fui-CalendarDayGrid__topLeftCornerDate{border-top-right-radius:var(--borderRadiusMedium);}`,`.f127emps.fui-CalendarDayGrid__bottomRightCornerDate{border-bottom-right-radius:var(--borderRadiusMedium);}`,`.f1s6s1el.fui-CalendarDayGrid__bottomRightCornerDate{border-bottom-left-radius:var(--borderRadiusMedium);}`,`.f39vr2a.fui-CalendarDayGrid__bottomLeftCornerDate{border-bottom-left-radius:var(--borderRadiusMedium);}`,`.frpqyrn.fui-CalendarDayGrid__bottomLeftCornerDate{border-bottom-right-radius:var(--borderRadiusMedium);}`]}),hV=e=>{"use no memo";let t=QB(),n=$B(),r=eV(),i=tV(),a=nV(),o=rV(),s=iV(),c=aV(),l=oV(),u=sV(),d=cV(),f=lV(),p=dV(),m=fV(),h=pV(),g=mV(),_=uV(),{animateBackwards:v,animationDirection:y,lightenDaysOutsideNavigatedMonth:b,showWeekNumbers:x}=e;return{wrapper:A(XB.wrapper,t.base),table:A(XB.table,n.base,x&&n.showWeekNumbers),dayCell:A(XB.dayCell,r.base,r.focusIndicator,g.corners),daySelected:A(XB.daySelected,i.base),daySingleSelected:A(XB.daySingleSelected,a.base),weekRow:A(XB.weekRow,o.base,v!==void 0&&o.animation,v!==void 0&&(y===qB.Horizontal?v?o.horizontalBackward:o.horizontalForward:v?o.verticalBackward:o.verticalForward)),weekDayLabelCell:A(XB.weekDayLabelCell,s.base),weekNumberCell:A(XB.weekNumberCell,c.base),dayOutsideBounds:A(XB.dayOutsideBounds,l.base),dayOutsideNavigatedMonth:A(XB.dayOutsideNavigatedMonth,b&&u.lightenDaysOutsideNavigatedMonth),dayButton:A(XB.dayButton,d.base),dayIsToday:A(XB.dayIsToday,f.base),firstTransitionWeek:A(XB.firstTransitionWeek,p.base,v!==void 0&&y!==qB.Horizontal&&!v&&p.verticalForward),lastTransitionWeek:A(XB.lastTransitionWeek,m.base,v!==void 0&&y!==qB.Horizontal&&v&&m.verticalBackward),dayMarker:A(XB.dayMarker,h.base),dayTodayMarker:A(XB.dayTodayMarker,_.base)}},gV=e=>{let{showWeekNumbers:t,strings:n,firstDayOfWeek:r,allFocusable:i,weeksToShow:a,weeks:o,classNames:s}=e,c=n.shortDays.slice(),l=-1,u=o[1];for(let e=0;e<o[1].length;e++)if(u[e].originalDate.getDate()===1){l=e;break}if(a===1&&l>=0){let e=(l+r)%7;c[e]=n.shortMonths[o[1][l].originalDate.getMonth()]}return M.createElement(`tr`,null,t&&M.createElement(`th`,{className:s.dayCell}),c.map((e,t)=>{let a=(t+r)%7,o=n.days[a];return M.createElement(`th`,{className:A(s.dayCell,s.weekDayLabelCell),scope:`col`,key:c[a]+` `+t,title:o,"aria-label":o,tabIndex:i?0:void 0},c[a])}))},_V=e=>{"use no memo";let{navigatedDate:t,dateTimeFormatter:n,allFocusable:r,strings:i,activeDescendantId:a,navigatedDayRef:o,calculateRoundedStyles:s,weeks:c,classNames:l,day:u,dayIndex:d,weekIndex:f,weekCorners:p,ariaHidden:m,customDayCellRef:h,dateRangeType:g,daysToSelectInDayView:_,onSelectDate:v,restrictedDates:y,minDate:b,maxDate:x,onNavigateDate:S,getDayInfosInRangeOfDay:C,getRefsFromDayInfos:w}=e,T=p?.[f+`_`+d]??``,E=CB(t,u.originalDate),{dir:D}=Gi(),O=(e,t)=>{let n,r=1;if(e.key===`ArrowUp`?(n=hB(t,-1),r=-1):e.key===`ArrowDown`?n=hB(t,1):e.key===Na(`ArrowLeft`,D)?(n=mB(t,-1),r=-1):e.key===Na(`ArrowRight`,D)&&(n=mB(t,1)),!n)return;let i={initialDate:t,targetDate:n,direction:r,restrictedDates:y,minDate:b,maxDate:x},a=BB(i);a||=(i.direction=-r,BB(i)),!(c&&a&&c.slice(1,c.length-1).some(e=>e.some(e=>CB(e.originalDate,a))))&&a&&(S(a,!0),e.preventDefault())},ee=e=>{let t=C(u),n=w(t);n.forEach((e,r)=>{if(e&&(e.classList.add(ZB.hoverStyle),!t[r].isSelected&&g===iB.Day&&_&&_>1)){e.classList.remove(JB.bottomLeftCornerDate,JB.bottomRightCornerDate,JB.topLeftCornerDate,JB.topRightCornerDate);let t=s(!1,!1,r>0,r<n.length-1).trim();t&&e.classList.add(...t.trim().split(` `))}})},te=e=>{w(C(u)).forEach(e=>{e&&e.classList.add(ZB.pressedStyle)})},ne=e=>{w(C(u)).forEach(e=>{e&&e.classList.remove(ZB.pressedStyle)})},re=e=>{let t=C(u),n=w(t);n.forEach((e,r)=>{if(e&&(e.classList.remove(ZB.hoverStyle),e.classList.remove(ZB.pressedStyle),!t[r].isSelected&&g===iB.Day&&_&&_>1)){let t=s(!1,!1,r>0,r<n.length-1).trim();t&&e.classList.remove(...t.trim().split(` `))}})},ie=e=>{e.key===`Enter`?v?.(u.originalDate):O(e,u.originalDate)},k=u.originalDate.getDate()+`, `+i.months[u.originalDate.getMonth()]+`, `+u.originalDate.getFullYear();u.isMarked&&(k=k+`, `+i.dayMarkedAriaLabel);let ae=!m&&(r||(u.isInBounds?!0:void 0));return M.createElement(`td`,{className:A(l.dayCell,p&&T,u.isSelected&&!u.isSingleSelected&&l.daySelected,u.isSingleSelected&&l.daySingleSelected,!u.isInBounds&&l.dayOutsideBounds,!u.isInMonth&&l.dayOutsideNavigatedMonth),ref:e=>{h?.(e,u.originalDate,l),u.setRef(e),E&&(o.current=e)},"aria-disabled":!m&&!u.isInBounds,onClick:u.isInBounds&&!m?u.onSelected:void 0,onMouseOver:m?void 0:ee,onMouseDown:m?void 0:te,onMouseUp:m?void 0:ne,onMouseOut:m?void 0:re,onKeyDown:m?void 0:ie,role:`gridcell`,tabIndex:E||ae?0:void 0,"aria-current":u.isToday?`date`:void 0,"aria-selected":u.isInBounds?u.isSelected:void 0},M.createElement(`button`,{key:u.key+`button`,className:A(l.dayButton,u.isToday&&l.dayIsToday),"aria-label":k,id:E?a:void 0,disabled:!m&&!u.isInBounds,type:`button`,tabIndex:-1},M.createElement(`span`,{className:u.isToday?A(l.dayTodayMarker):void 0},n.formatDay(u.originalDate)),u.isMarked&&M.createElement(`div`,{"aria-hidden":`true`,className:l.dayMarker})))},vV=e=>{let{ariaHidden:t,classNames:n,week:r,weeks:i,weekIndex:a,rowClassName:o,ariaRole:s,showWeekNumbers:c,firstDayOfWeek:l,firstWeekOfYear:u,navigatedDate:d,strings:f}=e,p=c?DB(i.length,l,u,d):null,m=p?f.weekNumberFormatString&&f.weekNumberFormatString.replace(`{0}`,`${p[a]}`):``;return M.createElement(`tr`,{role:s,"aria-hidden":t,className:o,key:a+`_`+r[0].key},c&&p&&M.createElement(`th`,{className:n.weekNumberCell,key:a,title:m,"aria-label":m,scope:`row`},M.createElement(`span`,null,p[a])),r.map((t,n)=>M.createElement(_V,{...e,key:t.key,day:t,dayIndex:n})))};function yV(e,t,n){"use no memo";return M.useMemo(()=>{let r=WB(e),i=r[1][0].originalDate,a=r[r.length-1][6].originalDate,o=e.getMarkedDays?.call(e,i,a)||[],s=[];for(let e=0;e<r.length;e++){let i=[];for(let a=0;a<7;a++){let s=r[e][a],c={onSelected:()=>t(s.originalDate),setRef:n(s.key),...s,isMarked:s.isMarked||o?.some(e=>CB(s.originalDate,e))};i.push(c)}s.push(i)}return s},[e])}function bV(){let e=M.useRef({});return[e,t=>n=>{n===null?delete e.current[t]:e.current[t]=n}]}function xV(e){let t=M.useRef(void 0);M.useEffect(()=>{t.current=e[0][0].originalDate});let n=t.current;if(!(!n||n.getTime()===e[0][0].originalDate.getTime()))return!(n<=e[0][0].originalDate)}var SV=e=>{let t=M.useRef(null),n=ba(),r=t=>{var n,r;let{firstDayOfWeek:i,minDate:a,maxDate:o,workWeekDays:s,daysToSelectInDayView:c,restrictedDates:l}=e,u={minDate:a,maxDate:o,restrictedDates:l},d=TB(t,p,i,s,c);d=VB(d,a,o),d=d.filter(e=>!zB(e,u)),(n=e.onSelectDate)==null||n.call(e,t,d),(r=e.onNavigateDate)==null||r.call(e,t,!0)},[i,a]=bV(),o=yV(e,r,a),s=xV(o),[c,l]=YB(e);M.useImperativeHandle(e.componentRef,()=>({focus(){var e,n;(n=t.current)==null||(e=n.focus)==null||e.call(n)}}),[]);let u=t=>{let n=CV(e.dateRangeType,e.workWeekDays),r=TB(t.originalDate,n,e.firstDayOfWeek,e.workWeekDays,e.daysToSelectInDayView).map(e=>e.getTime());return o.reduce((e,t)=>e.concat(t.filter(e=>r.indexOf(e.originalDate.getTime())!==-1)),[])},d=e=>{let t=[];return t=e.map(e=>i.current[e.key]),t},{gridLabel:f,dateRangeType:p,showWeekNumbers:m,labelledBy:h,lightenDaysOutsideNavigatedMonth:g,animationDirection:_}=e,v=hV({animateBackwards:s,animationDirection:_,dateRangeType:p,lightenDaysOutsideNavigatedMonth:g===void 0?!0:g,showWeekNumbers:m}),y={weeks:o,navigatedDayRef:t,calculateRoundedStyles:l,activeDescendantId:n,classNames:v,weekCorners:c(o),getDayInfosInRangeOfDay:u,getRefsFromDayInfos:d},b=Vc({axis:`grid-linear`});return M.createElement(`table`,{className:A(v.table,e.className),"aria-multiselectable":`false`,"aria-label":f,"aria-labelledby":h,"aria-activedescendant":n,role:`grid`,...b},M.createElement(`tbody`,null,M.createElement(gV,{...e,classNames:v,weeks:o}),M.createElement(vV,{...e,...y,week:o[0],weekIndex:-1,rowClassName:v.firstTransitionWeek,"aria-role":`presentation`,ariaHidden:!0}),o.slice(1,o.length-1).map((t,n)=>M.createElement(vV,{...e,...y,key:n,week:t,weekIndex:n,rowClassName:v.weekRow})),M.createElement(vV,{...e,...y,week:o[o.length-1],weekIndex:-2,rowClassName:v.lastTransitionWeek,"aria-role":`presentation`,ariaHidden:!0})))};SV.displayName=`CalendarDayGrid`;function CV(e,t){if(t&&e===iB.WorkWeek){let e=t.slice().sort(),n=!0;for(let t=1;t<e.length;t++)if(e[t]!==e[t-1]+1){n=!1;break}if(!n||t.length===0)return iB.Week}return e}var wV={root:`fui-CalendarDay`,header:`fui-CalendarDay__header`,monthAndYear:`fui-CalendarDay__monthAndYear`,monthComponents:`fui-CalendarDay__monthComponents`,headerIconButton:`fui-CalendarDay__headerIconButton`,disabledStyle:`fui-CalendarDay__disabledStyle`},TV=P({base:{B7ck84d:`f1e4lqlz`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f1sy4kr4`,a9b677:`f4m2ahc`},normalize:{E5pizo:`f1couhl3`,B7ck84d:`f1ewtqcl`,jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:`f1s184ao`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f1mk8lai`},showWeekNumbers:{a9b677:`fl524qk`}},{d:[`.f1e4lqlz{box-sizing:content-box;}`,[`.f1sy4kr4{padding:12px;}`,{p:-1}],`.f4m2ahc{width:196px;}`,`.f1couhl3{box-shadow:none;}`,`.f1ewtqcl{box-sizing:border-box;}`,[`.f1s184ao{margin:0;}`,{p:-1}],[`.f1mk8lai{padding:0;}`,{p:-1}],`.fl524qk{width:226px;}`]}),EV=P({base:{mc9l5x:`ftuwxu6`,Bqenvij:`fxldao9`,Bg96gwp:`f1vzymgo`,qhf8xq:`f10pi13n`,a9b677:`fly5x3f`}},{d:[`.ftuwxu6{display:inline-flex;}`,`.fxldao9{height:28px;}`,`.f1vzymgo{line-height:44px;}`,`.f10pi13n{position:relative;}`,`.fly5x3f{width:100%;}`]}),DV=P({base:{Bt984gj:`f122n59`,De3pzq:`f1c21dwh`,icvyot:`f1ern45e`,vrafjx:[`f1n71otn`,`f1deefiw`],oivjwe:`f1h8hb77`,wvpqe5:[`f1deefiw`,`f1n71otn`],Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`ft85np5`,sj55zd:`f19n0e5`,mc9l5x:`f14t3ns0`,Bh6795r:`fqerorx`,Bahqtrf:`f1mo0ibp`,Be2twd7:`fkhj508`,Bhrd7zp:`fl43uef`,Bg96gwp:`f336tjw`,B68tc82:0,Bmxbyg5:0,Bpg54ce:`f1a3p1vp`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:[`f1td8mcv`,`f1udkdxo`],fsow6f:[`f1o700av`,`fes3tcz`],ygn44y:`f1cmbuwj`,Huce71:`fz5stix`},animation:{vin17d:`fhsqnsn`,Bf5fcs:`fywypte`,Bv12yb3:`f1h7u52p`,Ezkn3b:`fjq4c94`},headerIsClickable:{Jwef8y:`f18a0fwf`,Bi91k9c:`f3sdaeg`,eoavqd:`f8491dx`,pugfm4:0,ukgb2i:0,Dwtyhm:0,Biisq0s:`f15rpok4`,iro3zm:`f1wvkgvo`,B2d53fq:`f1wdoaqd`,c3iz72:`f13c0t7h`,mghro0:0,Bx68yb:0,syojd9:0,E5hylx:`fy2scak`}},{d:[`.f122n59{align-items:center;}`,`.f1c21dwh{background-color:var(--colorTransparentBackground);}`,`.f1ern45e{border-top-style:none;}`,`.f1n71otn{border-right-style:none;}`,`.f1deefiw{border-left-style:none;}`,`.f1h8hb77{border-bottom-style:none;}`,[`.ft85np5{border-radius:var(--borderRadiusMedium);}`,{p:-1}],`.f19n0e5{color:var(--colorNeutralForeground1);}`,`.f14t3ns0{display:inline-block;}`,`.fqerorx{flex-grow:1;}`,`.f1mo0ibp{font-family:inherit;}`,`.fkhj508{font-size:var(--fontSizeBase300);}`,`.fl43uef{font-weight:var(--fontWeightSemibold);}`,`.f336tjw{line-height:28px;}`,[`.f1a3p1vp{overflow:hidden;}`,{p:-1}],[`.f1td8mcv{padding:0 4px 0 10px;}`,{p:-1}],[`.f1udkdxo{padding:0 10px 0 4px;}`,{p:-1}],`.f1o700av{text-align:left;}`,`.fes3tcz{text-align:right;}`,`.f1cmbuwj{text-overflow:ellipsis;}`,`.fz5stix{white-space:nowrap;}`,`.fhsqnsn{animation-duration:0.267s;}`,`.fywypte{animation-fill-mode:both;}`,`.f1h7u52p{animation-name:f5j8bii;}`,`.fjq4c94{animation-timing-function:cubic-bezier(.1,.25,.75,.9);}`],k:[`@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}`],h:[`.f18a0fwf:hover{background-color:var(--colorBrandBackgroundInvertedHover);}`,`.f3sdaeg:hover{color:var(--colorBrandForegroundOnLightHover);}`,`.f8491dx:hover{cursor:pointer;}`,[`.f15rpok4:hover{outline:1px solid var(--colorTransparentStroke);}`,{p:-1}],`.f1wvkgvo:hover:active{background-color:var(--colorBrandBackgroundInvertedPressed);}`,`.f1wdoaqd:hover:active{color:var(--colorBrandForegroundOnLightPressed);}`,`.f13c0t7h:hover:active{cursor:pointer;}`,[`.fy2scak:hover:active{outline:1px solid var(--colorTransparentStroke);}`,{p:-1}]]}),OV=P({base:{qb2dma:`fpydfdc`,mc9l5x:`ftuwxu6`}},{d:[`.fpydfdc{align-self:flex-end;}`,`.ftuwxu6{display:inline-flex;}`]}),kV=P({base:{De3pzq:`f1c21dwh`,icvyot:`f1ern45e`,vrafjx:[`f1n71otn`,`f1deefiw`],oivjwe:`f1h8hb77`,wvpqe5:[`f1deefiw`,`f1n71otn`],Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`ft85np5`,sj55zd:`f11d4kpn`,mc9l5x:`ftgm304`,Bahqtrf:`f1mo0ibp`,Be2twd7:`fy9rknc`,Bqenvij:`fxldao9`,Bg96gwp:`f336tjw`,B68tc82:0,Bmxbyg5:0,Bpg54ce:`f1gl81tg`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f1mk8lai`,qhf8xq:`f10pi13n`,fsow6f:`f17mccla`,a9b677:`f1w9dchk`,Jwef8y:`f18a0fwf`,Bi91k9c:`f3sdaeg`,eoavqd:`f8491dx`,pugfm4:0,ukgb2i:0,Dwtyhm:0,Biisq0s:`f15rpok4`,iro3zm:`f1wvkgvo`,B2d53fq:`f1wdoaqd`}},{d:[`.f1c21dwh{background-color:var(--colorTransparentBackground);}`,`.f1ern45e{border-top-style:none;}`,`.f1n71otn{border-right-style:none;}`,`.f1deefiw{border-left-style:none;}`,`.f1h8hb77{border-bottom-style:none;}`,[`.ft85np5{border-radius:var(--borderRadiusMedium);}`,{p:-1}],`.f11d4kpn{color:var(--colorNeutralForeground3);}`,`.ftgm304{display:block;}`,`.f1mo0ibp{font-family:inherit;}`,`.fy9rknc{font-size:var(--fontSizeBase200);}`,`.fxldao9{height:28px;}`,`.f336tjw{line-height:28px;}`,[`.f1gl81tg{overflow:visible;}`,{p:-1}],[`.f1mk8lai{padding:0;}`,{p:-1}],`.f10pi13n{position:relative;}`,`.f17mccla{text-align:center;}`,`.f1w9dchk{width:28px;}`],h:[`.f18a0fwf:hover{background-color:var(--colorBrandBackgroundInvertedHover);}`,`.f3sdaeg:hover{color:var(--colorBrandForegroundOnLightHover);}`,`.f8491dx:hover{cursor:pointer;}`,[`.f15rpok4:hover{outline:1px solid var(--colorTransparentStroke);}`,{p:-1}],`.f1wvkgvo:hover:active{background-color:var(--colorBrandBackgroundInvertedPressed);}`,`.f1wdoaqd:hover:active{color:var(--colorBrandForegroundOnLightPressed);}`]}),AV=P({base:{Bg33ivm:`f1oelgmz`,t69wg0:`fhh1ekj`,Bnh7jwd:`fdb0nwj`}},{d:[`.f1oelgmz,.f1oelgmz:disabled,.f1oelgmz button{color:var(--colorNeutralForegroundDisabled);}`,`.fhh1ekj,.fhh1ekj:disabled,.fhh1ekj button{pointer-events:none;}`],m:[[`@media (forced-colors: active){.fdb0nwj,.fdb0nwj:disabled,.fdb0nwj button{color:GrayText;}}`,{m:`(forced-colors: active)`}]]}),jV=e=>{"use no memo";let t=TV(),n=EV(),r=DV(),i=OV(),a=kV(),o=AV(),{className:s,headerIsClickable:c,showWeekNumbers:l}=e;return{root:A(wV.root,t.normalize,t.base,l&&t.showWeekNumbers,s),header:A(wV.header,n.base),monthAndYear:A(wV.monthAndYear,r.base,r.animation,c&&r.headerIsClickable),monthComponents:A(wV.monthComponents,i.base),headerIconButton:A(wV.headerIconButton,a.base),disabledStyle:A(wV.disabledStyle,o.base)}},MV=e=>{let t=M.useRef(null);M.useImperativeHandle(e.componentRef,()=>({focus(){var e,n;(n=t.current)==null||(e=n.focus)==null||e.call(n)}}),[]);let{strings:n,gridLabel:r,navigatedDate:i,dateTimeFormatter:a,className:o,onHeaderSelect:s,showSixWeeksByDefault:c,minDate:l,maxDate:u,restrictedDates:d,onNavigateDate:f,showWeekNumbers:p,dateRangeType:m,animationDirection:h}=e,g=jV({className:o,headerIsClickable:!!s,showWeekNumbers:p,animationDirection:h}),_=a.formatMonthYear(i,n),v=s?`button`:`div`,y=n.yearPickerHeaderAriaLabel?n.yearPickerHeaderAriaLabel.replace(`{0}`,_):_,{...b}=e;return M.createElement(`div`,{className:g.root},M.createElement(`div`,{className:g.header},M.createElement(v,{"aria-label":s?y:void 0,className:g.monthAndYear,onClick:s,tabIndex:s?0:-1,onKeyDown:PV(s),type:`button`},M.createElement(`span`,{"aria-live":`polite`,"aria-atomic":`true`},_)),M.createElement(NV,{...e,classNames:g})),M.createElement(SV,{...b,gridLabel:`${_}, ${r}`,componentRef:t,strings:n,navigatedDate:i,weeksToShow:c?6:void 0,dateTimeFormatter:a,minDate:l,maxDate:u,restrictedDates:d,onNavigateDate:f,dateRangeType:m}))};MV.displayName=`CalendarDay`;var NV=e=>{let{minDate:t,maxDate:n,navigatedDate:r,navigationIcons:i,allFocusable:a,strings:o,showCloseButton:s,classNames:c,onNavigateDate:l,onDismiss:u}=e,d=()=>{l(gB(r,1),!1)},f=()=>{l(gB(r,-1),!1)},p=t?wB(t,vB(r))<0:!0,m=n?wB(yB(r),n)<0:!0;return M.createElement(`div`,{className:c.monthComponents},M.createElement(`button`,{className:A(c.headerIconButton,!p&&c.disabledStyle),tabIndex:p?void 0:a?0:-1,"aria-disabled":!p,onClick:p?f:void 0,onKeyDown:p?PV(f):void 0,title:o.prevMonthAriaLabel?o.prevMonthAriaLabel+` `+o.months[gB(r,-1).getMonth()]:void 0,type:`button`},i.upNavigation),M.createElement(`button`,{className:A(c.headerIconButton,!m&&c.disabledStyle),tabIndex:m?void 0:a?0:-1,"aria-disabled":!m,onClick:m?d:void 0,onKeyDown:m?PV(d):void 0,title:o.nextMonthAriaLabel?o.nextMonthAriaLabel+` `+o.months[gB(r,1).getMonth()]:void 0,type:`button`},i.downNavigation),s&&M.createElement(`button`,{className:c.headerIconButton,onClick:u,onKeyDown:PV(u),title:o.closeButtonAriaLabel,type:`button`},i.dismiss))};NV.displayName=`CalendarDayNavigationButtons`;var PV=e=>t=>{switch(t.key){case nd:e?.();break}},FV={root:`fui-CalendarPicker`,headerContainer:`fui-CalendarPicker__headerContainer`,currentItemButton:`fui-CalendarPicker__currentItemButton`,navigationButtonsContainer:`fui-CalendarPicker__navigationButtonsContainer`,navigationButton:`fui-CalendarPicker__navigationButton`,gridContainer:`fui-CalendarPicker__gridContainer`,buttonRow:`fui-CalendarPicker__buttonRow`,itemButton:`fui-CalendarPicker__itemButton`,current:`fui-CalendarPicker__current`,selected:`fui-CalendarPicker__selected`,disabled:`fui-CalendarPicker__disabled`},IV=P({base:{B7ck84d:`f1e4lqlz`,B68tc82:0,Bmxbyg5:0,Bpg54ce:`f1a3p1vp`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f1sy4kr4`,a9b677:`f4m2ahc`},normalize:{E5pizo:`f1couhl3`,B7ck84d:`f1ewtqcl`,jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:`f1s184ao`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f1mk8lai`}},{d:[`.f1e4lqlz{box-sizing:content-box;}`,[`.f1a3p1vp{overflow:hidden;}`,{p:-1}],[`.f1sy4kr4{padding:12px;}`,{p:-1}],`.f4m2ahc{width:196px;}`,`.f1couhl3{box-shadow:none;}`,`.f1ewtqcl{box-sizing:border-box;}`,[`.f1s184ao{margin:0;}`,{p:-1}],[`.f1mk8lai{padding:0;}`,{p:-1}]]}),LV=P({base:{mc9l5x:`f22iagw`}},{d:[`.f22iagw{display:flex;}`]}),RV=P({base:{De3pzq:`f1c21dwh`,icvyot:`f1ern45e`,vrafjx:[`f1n71otn`,`f1deefiw`],oivjwe:`f1h8hb77`,wvpqe5:[`f1deefiw`,`f1n71otn`],Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`ft85np5`,sj55zd:`f1ym3bx4`,Bh6795r:`fqerorx`,Bahqtrf:`f1mo0ibp`,Be2twd7:`fkhj508`,Bhrd7zp:`fl43uef`,B68tc82:0,Bmxbyg5:0,Bpg54ce:`f1gl81tg`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:[`f1td8mcv`,`f1udkdxo`],fsow6f:[`f1o700av`,`fes3tcz`]},animation:{vin17d:`fhsqnsn`,Bf5fcs:`fywypte`,Bv12yb3:`f1h7u52p`,Ezkn3b:`fjq4c94`},hasHeaderClickCallback:{Jwef8y:`f18a0fwf`,Bi91k9c:`f3sdaeg`,eoavqd:`f8491dx`,pugfm4:0,ukgb2i:0,Dwtyhm:0,Biisq0s:`f15rpok4`,iro3zm:`f1wvkgvo`,B2d53fq:`f1wdoaqd`,c3iz72:`f13c0t7h`,mghro0:0,Bx68yb:0,syojd9:0,E5hylx:`fy2scak`}},{d:[`.f1c21dwh{background-color:var(--colorTransparentBackground);}`,`.f1ern45e{border-top-style:none;}`,`.f1n71otn{border-right-style:none;}`,`.f1deefiw{border-left-style:none;}`,`.f1h8hb77{border-bottom-style:none;}`,[`.ft85np5{border-radius:var(--borderRadiusMedium);}`,{p:-1}],`.f1ym3bx4{color:inherit;}`,`.fqerorx{flex-grow:1;}`,`.f1mo0ibp{font-family:inherit;}`,`.fkhj508{font-size:var(--fontSizeBase300);}`,`.fl43uef{font-weight:var(--fontWeightSemibold);}`,[`.f1gl81tg{overflow:visible;}`,{p:-1}],[`.f1td8mcv{padding:0 4px 0 10px;}`,{p:-1}],[`.f1udkdxo{padding:0 10px 0 4px;}`,{p:-1}],`.f1o700av{text-align:left;}`,`.fes3tcz{text-align:right;}`,`.fhsqnsn{animation-duration:0.267s;}`,`.fywypte{animation-fill-mode:both;}`,`.f1h7u52p{animation-name:f5j8bii;}`,`.fjq4c94{animation-timing-function:cubic-bezier(.1,.25,.75,.9);}`],k:[`@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}`],h:[`.f18a0fwf:hover{background-color:var(--colorBrandBackgroundInvertedHover);}`,`.f3sdaeg:hover{color:var(--colorBrandForegroundOnLightHover);}`,`.f8491dx:hover{cursor:pointer;}`,[`.f15rpok4:hover{outline:1px solid var(--colorTransparentStroke);}`,{p:-1}],`.f1wvkgvo:hover:active{background-color:var(--colorBrandBackgroundInvertedPressed);}`,`.f1wdoaqd:hover:active{color:var(--colorBrandForegroundOnLightPressed);}`,`.f13c0t7h:hover:active{cursor:pointer;}`,[`.fy2scak:hover:active{outline:1px solid var(--colorTransparentStroke);}`,{p:-1}]]}),zV=P({base:{Bt984gj:`f122n59`,mc9l5x:`f22iagw`}},{d:[`.f122n59{align-items:center;}`,`.f22iagw{display:flex;}`]}),BV=P({base:{De3pzq:`f1c21dwh`,Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:`f3bhgqh`,Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`ft85np5`,sj55zd:`f19n0e5`,mc9l5x:`ftgm304`,Bahqtrf:`f1mo0ibp`,Be2twd7:`fy9rknc`,Bqenvij:`fxldao9`,Bg96gwp:`f336tjw`,sshi5w:`f1ysfysz`,Bf4jedk:`f107v6xj`,B68tc82:0,Bmxbyg5:0,Bpg54ce:`f1gl81tg`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f1mk8lai`,qhf8xq:`f10pi13n`,fsow6f:`f17mccla`,a9b677:`f1w9dchk`,Jwef8y:`f18a0fwf`,Bi91k9c:`f3sdaeg`,eoavqd:`f8491dx`,pugfm4:0,ukgb2i:0,Dwtyhm:0,Biisq0s:`f15rpok4`,iro3zm:`f1wvkgvo`,B2d53fq:`f1wdoaqd`}},{d:[`.f1c21dwh{background-color:var(--colorTransparentBackground);}`,[`.f3bhgqh{border:none;}`,{p:-2}],[`.ft85np5{border-radius:var(--borderRadiusMedium);}`,{p:-1}],`.f19n0e5{color:var(--colorNeutralForeground1);}`,`.ftgm304{display:block;}`,`.f1mo0ibp{font-family:inherit;}`,`.fy9rknc{font-size:var(--fontSizeBase200);}`,`.fxldao9{height:28px;}`,`.f336tjw{line-height:28px;}`,`.f1ysfysz{min-height:28px;}`,`.f107v6xj{min-width:28px;}`,[`.f1gl81tg{overflow:visible;}`,{p:-1}],[`.f1mk8lai{padding:0;}`,{p:-1}],`.f10pi13n{position:relative;}`,`.f17mccla{text-align:center;}`,`.f1w9dchk{width:28px;}`],h:[`.f18a0fwf:hover{background-color:var(--colorBrandBackgroundInvertedHover);}`,`.f3sdaeg:hover{color:var(--colorBrandForegroundOnLightHover);}`,`.f8491dx:hover{cursor:pointer;}`,[`.f15rpok4:hover{outline:1px solid var(--colorTransparentStroke);}`,{p:-1}],`.f1wvkgvo:hover:active{background-color:var(--colorBrandBackgroundInvertedPressed);}`,`.f1wdoaqd:hover:active{color:var(--colorBrandForegroundOnLightPressed);}`]}),VV=P({base:{B6of3ja:`fvjh0tl`}},{d:[`.fvjh0tl{margin-top:4px;}`]}),HV=P({base:{jrapky:`f15tpi3i`,sw9gdo:`f1gdbdba`},animation:{vin17d:`f5f2jbu`,Bf5fcs:`fywypte`,Ezkn3b:`f1ee2ue`},horizontalBackward:{Bv12yb3:[`f1o9w3l8`,`f1kwjajc`]},horizontalForward:{Bv12yb3:[`f1kwjajc`,`f1o9w3l8`]},verticalBackward:{Bv12yb3:`fgl3yn7`},verticalForward:{Bv12yb3:`faiu5ye`}},{d:[`.f15tpi3i{margin-bottom:16px;}`,`.f1gdbdba:last-of-type{margin-bottom:0;}`,`.f5f2jbu{animation-duration:0.367s;}`,`.fywypte{animation-fill-mode:both;}`,`.f1ee2ue{animation-timing-function:cubic-bezier(.1,.9,.2,1);}`,`.f1o9w3l8{animation-name:f5j8bii,f2lgmc3;}`,`.f1kwjajc{animation-name:f5j8bii,fpktcv7;}`,`.fgl3yn7{animation-name:f5j8bii,f3bv9km;}`,`.faiu5ye{animation-name:f5j8bii,funtx0y;}`],k:[`@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}`,`@keyframes f2lgmc3{from{pointer-events:none;transform:translate3d(-20px, 0, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}`,`@keyframes fpktcv7{from{pointer-events:none;transform:translate3d(20px, 0, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}`,`@keyframes f3bv9km{from{pointer-events:none;transform:translate3d(0, -20px, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}`,`@keyframes funtx0y{from{pointer-events:none;transform:translate3d(0, 20px, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}`]}),UV=P({base:{De3pzq:`f1c21dwh`,Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:`f3bhgqh`,Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:`ft85np5`,sj55zd:`f11d4kpn`,Bahqtrf:`f1mo0ibp`,Be2twd7:`fy9rknc`,Bqenvij:`fbhnoac`,Bg96gwp:`fc76cdq`,sshi5w:`f1w5jphr`,Bf4jedk:`f12clzc2`,jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:[`f1ytixos`,`fqk6p8t`],B68tc82:0,Bmxbyg5:0,Bpg54ce:`f1gl81tg`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f1mk8lai`,a9b677:`feqmc2u`,Btgfwho:[`f65zstl`,`f1yt3tqw`],xrote9:`flfbxit`,Bja5ulm:`ff5vbxt`,Jwef8y:`f18a0fwf`,Bi91k9c:`f1u69ym5`,eoavqd:`f8491dx`,pugfm4:0,ukgb2i:0,Dwtyhm:0,Biisq0s:`f15rpok4`,Bbkh6qg:`fse5cfe`,Bahaeuw:`f1d0gba8`,fmph8g:`fj239l`,Bv6y5q5:0,uq1ffc:0,Bokaozi:0,Bfrni1f:`f1szuehs`,iro3zm:`f1wvkgvo`,rxnm8d:`f1n99sc9`,Dcq74g:`fqfbdvs`,Bs60fxl:`f12gwge8`}},{d:[`.f1c21dwh{background-color:var(--colorTransparentBackground);}`,[`.f3bhgqh{border:none;}`,{p:-2}],[`.ft85np5{border-radius:var(--borderRadiusMedium);}`,{p:-1}],`.f11d4kpn{color:var(--colorNeutralForeground3);}`,`.f1mo0ibp{font-family:inherit;}`,`.fy9rknc{font-size:var(--fontSizeBase200);}`,`.fbhnoac{height:40px;}`,`.fc76cdq{line-height:40px;}`,`.f1w5jphr{min-height:40px;}`,`.f12clzc2{min-width:40px;}`,[`.f1ytixos{margin:0 12px 0 0;}`,{p:-1}],[`.fqk6p8t{margin:0 0 0 12px;}`,{p:-1}],[`.f1gl81tg{overflow:visible;}`,{p:-1}],[`.f1mk8lai{padding:0;}`,{p:-1}],`.feqmc2u{width:40px;}`,`.f65zstl:nth-child(4n + 4){margin-right:0;}`,`.f1yt3tqw:nth-child(4n + 4){margin-left:0;}`,`.flfbxit:nth-child(n + 9){margin-bottom:0;}`,`.ff5vbxt div{font-weight:var(--fontWeightRegular);}`],h:[`.f18a0fwf:hover{background-color:var(--colorBrandBackgroundInvertedHover);}`,`.f1u69ym5:hover{color:var(--colorNeutralForeground1Static);}`,`.f8491dx:hover{cursor:pointer;}`,[`.f15rpok4:hover{outline:1px solid var(--colorTransparentStroke);}`,{p:-1}],`.f1wvkgvo:hover:active{background-color:var(--colorBrandBackgroundInvertedPressed);}`],m:[[`@media (forced-colors: active){.fse5cfe:hover{background-color:Window;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1d0gba8:hover{color:WindowText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fj239l:hover{forced-color-adjust:none;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1szuehs:hover{outline:1px solid Highlight;}}`,{p:-1,m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1n99sc9:hover:active{background-color:Window;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fqfbdvs:hover:active{color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f12gwge8:hover:active{forced-color-adjust:none;}}`,{m:`(forced-colors: active)`}]]}),WV=P({highlightCurrent:{De3pzq:`ffp7eso`,sj55zd:`f1phragk`,Bhrd7zp:`fl43uef`,By8wz76:`fq1p4f3`,B7iucu3:`fygpdla`,B8gzw0y:`f1h3a8gf`,mk428o:`ffic4m0`,B1lrsqs:`f13lyc4l`,B1piyhd:`f1cnwl3o`,of3gr0:`f1w17wdy`,hvfrz3:`fx2qnub`}},{d:[`.ffp7eso{background-color:var(--colorBrandBackground);}`,`.f1phragk{color:var(--colorNeutralForegroundOnBrand);}`,`.fl43uef{font-weight:var(--fontWeightSemibold);}`],m:[[`@media (forced-colors: active){.fq1p4f3{background-color:WindowText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fygpdla{color:Window;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1cnwl3o:hover,.f1cnwl3o:hover:active{background-color:WindowText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1w17wdy:hover,.f1w17wdy:hover:active{color:Window;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fx2qnub:hover,.fx2qnub:hover:active{forced-color-adjust:none;}}`,{m:`(forced-colors: active)`}]],h:[`.ffic4m0:hover,.ffic4m0:hover:active{background-color:var(--colorBrandBackground);}`,`.f13lyc4l:hover,.f13lyc4l:hover:active{color:var(--colorNeutralForegroundOnBrand);}`]}),GV=P({highlightSelected:{De3pzq:`f1vevd59`,sj55zd:`ff5vbop`,Bhrd7zp:`fl43uef`,By8wz76:`f1nz3ub2`,B7iucu3:`fygpdla`,B8gzw0y:`f1h3a8gf`,Bja5ulm:`fospawf`,Jwef8y:`fbo057p`,Bi91k9c:`f1u69ym5`,Bbkh6qg:`f1tx4pjd`,Bahaeuw:`fn03n9l`,fmph8g:`fj239l`,iro3zm:`f1wvkgvo`}},{d:[`.f1vevd59{background-color:var(--colorBrandBackgroundInvertedSelected);}`,`.ff5vbop{color:var(--colorNeutralForeground1Static);}`,`.fl43uef{font-weight:var(--fontWeightSemibold);}`,`.fospawf div{font-weight:var(--fontWeightSemibold);}`],m:[[`@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fygpdla{color:Window;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1tx4pjd:hover{background-color:Highlight;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fn03n9l:hover{color:Window;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.fj239l:hover{forced-color-adjust:none;}}`,{m:`(forced-colors: active)`}]],h:[`.fbo057p:hover{background-color:var(--colorBrandBackgroundInvertedSelected);}`,`.f1u69ym5:hover{color:var(--colorNeutralForeground1Static);}`,`.f1wvkgvo:hover:active{background-color:var(--colorBrandBackgroundInvertedPressed);}`]}),KV=P({base:{Bg33ivm:`f1oelgmz`,t69wg0:`fhh1ekj`,B7iucu3:`f1cyfu5x`,B8gzw0y:`f1h3a8gf`}},{d:[`.f1oelgmz,.f1oelgmz:disabled,.f1oelgmz button{color:var(--colorNeutralForegroundDisabled);}`,`.fhh1ekj,.fhh1ekj:disabled,.fhh1ekj button{pointer-events:none;}`],m:[[`@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}`,{m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}`,{m:`(forced-colors: active)`}]]}),qV=e=>{"use no memo";let t=IV(),n=LV(),r=RV(),i=zV(),a=BV(),o=VV(),s=HV(),c=UV(),l=WV(),u=GV(),d=KV(),{animateBackwards:f,animationDirection:p,className:m,hasHeaderClickCallback:h,highlightCurrent:g,highlightSelected:_}=e;return{root:A(FV.root,t.normalize,t.base,m),headerContainer:A(FV.headerContainer,n.base),currentItemButton:A(FV.currentItemButton,r.base,f!==void 0&&r.animation,h&&r.hasHeaderClickCallback),navigationButtonsContainer:A(FV.navigationButtonsContainer,i.base),navigationButton:A(FV.navigationButton,a.base),gridContainer:A(FV.gridContainer,o.base),buttonRow:A(FV.buttonRow,s.base,s.animation,f!==void 0&&(p===qB.Horizontal?f?s.horizontalBackward:s.horizontalForward:f?s.verticalBackward:s.verticalForward)),itemButton:A(FV.itemButton,c.base),selected:A(FV.selected,_&&u.highlightSelected),current:A(FV.current,g&&l.highlightCurrent),disabled:A(FV.disabled,d.base)}},JV=e=>{"use no memo";return qV(e)},YV=12,XV=4,ZV={prevRangeAriaLabel:void 0,nextRangeAriaLabel:void 0},QV=e=>{let{className:t,highlightCurrentYear:n,highlightSelectedYear:r,year:i,selected:a,disabled:o,componentRef:s,onSelectYear:c,onRenderYear:l}=e,u=M.useRef(null);M.useImperativeHandle(s,()=>({focus(){var e,t;(t=u.current)==null||(e=t.focus)==null||e.call(t)}}),[]);let d=()=>{c?.(i)},f=e=>{e.key===`Enter`&&c?.(i)},p=JV({className:t,highlightCurrent:n,highlightSelected:r});return M.createElement(`button`,{className:A(p.itemButton,a&&p.selected,o&&p.disabled),type:`button`,role:`gridcell`,onClick:o?void 0:d,onKeyDown:o?void 0:f,disabled:o,"aria-selected":a,ref:u},l?.(i)??i)};QV.displayName=`CalendarYearGridCell`;var $V=e=>{let{className:t,fromYear:n,toYear:r,animationDirection:i,animateBackwards:a,minYear:o,maxYear:s,onSelectYear:c,selectedYear:l,componentRef:u}=e,d=M.useRef(null),f=M.useRef(null);M.useImperativeHandle(u,()=>({focus(){var e,t;(t=d.current||f.current)==null||(e=t.focus)==null||e.call(t)}}),[]);let p=t=>{let n=t===l,r=o!==void 0&&t<o||s!==void 0&&t>s,i=t===new Date().getFullYear();return M.createElement(QV,{...e,key:t,year:t,selected:n,current:i,disabled:r,onSelectYear:c,componentRef:n?d:i?f:void 0})},m=JV({className:t,animateBackwards:a,animationDirection:i}),h=t=>e.onRenderYear?.call(e,t)??t,g=`${h(n)} - ${h(r)}`,_=n,v=[];for(let e=0;e<(r-n+1)/XV;e++){v.push([]);for(let t=0;t<XV;t++)v[e].push(p(_)),_++}let y=Vc({axis:`grid`});return M.createElement(`div`,{...y,className:m.gridContainer,role:`grid`,"aria-label":g},v.map((e,t)=>M.createElement(`div`,{key:`yearPickerRow_`+t+`_`+n,role:`row`,className:m.buttonRow},e)))};$V.displayName=`CalendarYearGrid`;var eH={Previous:0,Next:1},tH=e=>{let{className:t,strings:n=ZV,direction:r,onSelectPrev:i,onSelectNext:a,fromYear:o,toYear:s,maxYear:c,minYear:l,navigationIcons:u}=e,d=JV({className:t}),f=r===eH.Previous?n.prevRangeAriaLabel:n.nextRangeAriaLabel,p=r===eH.Previous?-YV:YV,m={fromYear:o+p,toYear:s+p},h=f?typeof f==`string`?f:f(m):void 0,g=r===eH.Previous?l!==void 0&&o<l:c!==void 0&&e.fromYear+YV>c,_=()=>{r===eH.Previous?i?.():a?.()};return M.createElement(`button`,{className:A(d.navigationButton,g&&d.disabled),onClick:g?void 0:_,onKeyDown:g?void 0:e=>{e.key===`Enter`&&_()},type:`button`,title:h,disabled:g},r===eH.Previous?u.upNavigation:u.downNavigation)};tH.displayName=`CalendarYearNavArrow`;var nH=e=>{let{className:t}=e,n=JV({className:t});return M.createElement(`div`,{className:n.navigationButtonsContainer},M.createElement(tH,{...e,direction:eH.Previous}),M.createElement(tH,{...e,direction:eH.Next}))};nH.displayName=`CalendarYearNav`;var rH=e=>{let{className:t,fromYear:n,toYear:r,strings:i=ZV,animateBackwards:a,animationDirection:o}=e,s=()=>{var t;(t=e.onHeaderSelect)==null||t.call(e,!0)},c=e=>{(e.key===`Enter`||e.key===` `)&&s()},l=t=>e.onRenderYear?.call(e,t)??t,u=JV({className:t,hasHeaderClickCallback:!!e.onHeaderSelect,animateBackwards:a,animationDirection:o});if(e.onHeaderSelect){let t=i.rangeAriaLabel,a=i.headerAriaLabelFormatString,o=t?typeof t==`string`?t:t(e):void 0,d=a?a.replace(`{0}`,o??``):o;return M.createElement(`button`,{className:u.currentItemButton,onClick:s,onKeyDown:c,"aria-label":d,role:`button`,type:`button`},M.createElement(`span`,{"aria-live":`assertive`,"aria-atomic":`true`},l(n),` - `,l(r)))}return M.createElement(`div`,{className:u.current},l(n),` - `,l(r))};rH.displayName=`CalendarYearTitle`;var iH=e=>{let{className:t,animateBackwards:n,animationDirection:r,onRenderTitle:i}=e,a=JV({className:t,hasHeaderClickCallback:!!e.onHeaderSelect,animateBackwards:n,animationDirection:r});return M.createElement(`div`,{className:a.headerContainer},i?.(e)??M.createElement(rH,e),M.createElement(nH,e))};iH.displayName=`CalendarYearHeader`;function aH({selectedYear:e,navigatedYear:t}){let n=e||t||new Date().getFullYear(),r=Math.floor(n/10)*10,i=M.useRef(r);M.useRef(()=>{i.current=r});let a=i.current;if(!(!a||a===r))return a>r}function oH({selectedYear:e,navigatedYear:t,onNavigateDate:n}){let r=M.useMemo(()=>e||t||Math.floor(new Date().getFullYear()/10)*10,[t,e]),[i,a]=M.useState(r);return M.useEffect(()=>{a(r)},[r]),[i,i+YV-1,()=>{let e=i+YV;a(e),n?.(e)},()=>{let e=i-YV;a(e),n?.(e)}]}var sH=e=>{let t=aH(e),[n,r,i,a]=oH(e),o=M.useRef(null);M.useImperativeHandle(e.componentRef,()=>({focus(){var e,t;(t=o.current)==null||(e=t.focus)==null||e.call(t)}}));let{className:s}=e,c=JV({className:s});return M.createElement(`div`,{className:c.root},M.createElement(iH,{...e,fromYear:n,toYear:r,onSelectPrev:a,onSelectNext:i,animateBackwards:t}),M.createElement($V,{...e,fromYear:n,toYear:r,animateBackwards:t,componentRef:o}))};sH.displayName=`CalendarYear`;var cH=e=>{"use no memo";return qV(e)},lH=4;function uH({navigatedDate:e}){let t=e.getFullYear(),n=M.useRef(void 0);M.useEffect(()=>{n.current=t});let r=n.current;if(!(r===void 0||r===t))return r>t}function dH({componentRef:e}){let t=M.useRef(null),n=M.useRef(null),r=M.useRef(!1),i=M.useCallback(()=>{n.current?n.current.focus():t.current&&t.current.focus()},[]);return M.useImperativeHandle(e,()=>({focus:i}),[i]),M.useEffect(()=>{r.current&&=(i(),!1)}),[t,n,()=>{r.current=!0}]}var fH=e=>{let{allFocusable:t,animationDirection:n,className:r,componentRef:i,dateTimeFormatter:a=fB,highlightCurrentMonth:o,highlightSelectedMonth:s,maxDate:c,minDate:l,navigatedDate:u,navigationIcons:d,onHeaderSelect:f,onNavigateDate:p,selectedDate:m,strings:h,today:g=new Date,yearPickerHidden:_=!1}=e,[v,y,b]=dH({componentRef:i}),[x,S]=M.useState(!1),C=uH({navigatedDate:u}),w=e=>()=>D(e),T=()=>{p(_B(u,1),!1)},E=()=>{p(_B(u,-1),!1)},D=e=>{f?.(),p(SB(u,e),!0)},O=()=>{_?f?.():(b(),S(!0))},ee=e=>{if(b(),u.getFullYear()!==e){let t=new Date(u.getTime());t.setFullYear(e),c&&t>c?t=SB(t,c.getMonth()):l&&t<l&&(t=SB(t,l.getMonth())),p(t,!0)}S(!1)},te=e=>{b(),S(!1)},ne=a,re=l?wB(l,bB(u))<0:!0,ie=c?wB(xB(u),c)<0:!0,k=cH({className:r,hasHeaderClickCallback:!!f||!_,highlightCurrent:o,highlightSelected:s,animateBackwards:C,animationDirection:n}),ae=Vc({axis:`grid`});if(x){let[e,t]=pH({dateTimeFormatter:a,navigatedDate:u,strings:h});return M.createElement(sH,{key:`calendarYear`,minYear:l?l.getFullYear():void 0,maxYear:c?c.getFullYear():void 0,onSelectYear:ee,onHeaderSelect:te,selectedYear:m?m.getFullYear():u?u.getFullYear():void 0,navigatedYear:u.getFullYear(),navigationIcons:d,onRenderYear:e,strings:t,componentRef:y,highlightCurrentYear:o,highlightSelectedYear:s,animationDirection:n})}let oe=[];for(let e=0;e<h.shortMonths.length/lH;e++)oe.push(e);let se=ne.formatYear(u),ce=h.monthPickerHeaderAriaLabel?h.monthPickerHeaderAriaLabel.replace(`{0}`,se):se;return M.createElement(`div`,{className:k.root},M.createElement(`div`,{className:k.headerContainer},M.createElement(`button`,{className:k.currentItemButton,onClick:O,onKeyDown:hH(O),"aria-label":ce,tabIndex:f||!_?0:-1,type:`button`},M.createElement(`span`,{"aria-live":`polite`,"aria-atomic":`true`},se)),M.createElement(`div`,{className:k.navigationButtonsContainer},M.createElement(`button`,{className:A(k.navigationButton,!re&&k.disabled),"aria-disabled":!re,tabIndex:re?void 0:t?0:-1,onClick:re?E:void 0,onKeyDown:re?hH(E):void 0,title:h.prevYearAriaLabel?h.prevYearAriaLabel+` `+ne.formatYear(_B(u,-1)):void 0,type:`button`},d.upNavigation),M.createElement(`button`,{className:A(k.navigationButton,!ie&&k.disabled),"aria-disabled":!ie,tabIndex:ie?void 0:t?0:-1,onClick:ie?T:void 0,onKeyDown:ie?hH(T):void 0,title:h.nextYearAriaLabel?h.nextYearAriaLabel+` `+ne.formatYear(_B(u,1)):void 0,type:`button`},d.downNavigation))),M.createElement(`div`,{...ae,className:k.gridContainer,role:`grid`,"aria-label":se},oe.map(e=>{let n=h.shortMonths.slice(e*lH,(e+1)*lH);return M.createElement(`div`,{key:`monthRow_`+e+u.getFullYear(),role:`row`,className:k.buttonRow},n.map((n,r)=>{let i=e*lH+r,a=SB(u,i),d=u.getMonth()===i,f=m.getMonth()===i,p=m.getFullYear()===u.getFullYear(),_=(l?wB(l,yB(a))<1:!0)&&(c?wB(vB(a),c)<1:!0);return M.createElement(`button`,{ref:d?v:void 0,role:`gridcell`,className:A(k.itemButton,o&&mH(i,u.getFullYear(),g)&&k.current,s&&f&&p&&k.selected,!_&&k.disabled),disabled:!t&&!_,key:i,onClick:_?w(i):void 0,onKeyDown:_?hH(w(i)):void 0,"aria-label":ne.formatMonth(a,h),"aria-selected":d,tabIndex:_?0:-1,type:`button`},n)}))})))};fH.displayName=`CalendarMonth`;function pH({dateTimeFormatter:e,navigatedDate:t,strings:n}){let r=n=>{if(e){let r=new Date(t.getTime());return r.setFullYear(n),e.formatYear(r)}return String(n)},i=e=>`${r(e.fromYear)} - ${r(e.toYear)}`;return[r,{rangeAriaLabel:i,prevRangeAriaLabel:e=>n.prevYearRangeAriaLabel?`${n.prevYearRangeAriaLabel} ${i(e)}`:``,nextRangeAriaLabel:e=>n.nextYearRangeAriaLabel?`${n.nextYearRangeAriaLabel} ${i(e)}`:``,headerAriaLabelFormatString:n.monthPickerHeaderAriaLabel}]}function mH(e,t,n){return n.getFullYear()===t&&n.getMonth()===e}function hH(e){return t=>{switch(t.key){case nd:e();break}}}var gH={dismiss:M.createElement(jf,null),downNavigation:M.createElement(cf,null),upNavigation:M.createElement(hf,null)},_H={root:`fui-Calendar`,divider:`fui-Calendar__divider`,goTodayButton:`fui-Calendar__goTodayButton`,monthPickerWrapper:`fui-Calendar__monthPickerWrapper`,liveRegion:`fui-Calendar__liveRegion`},vH=P({base:{mc9l5x:`f22iagw`,a9b677:`f13dwy2t`},normalize:{E5pizo:`f1couhl3`,B7ck84d:`f1ewtqcl`,jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:`f1s184ao`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f1mk8lai`},monthPickerNotVisible:{Beiy3e4:`f1vx9l62`},dayAndMonthPickersVisible:{a9b677:`fcy5b15`},dayPickerVisibleAndWeekNumbersShown:{a9b677:`fhsg0in`},dayAndMonthPickersVisibleAndWeekNumbersShown:{a9b677:`fcarq7f`}},{d:[`.f22iagw{display:flex;}`,`.f13dwy2t{width:220px;}`,`.f1couhl3{box-shadow:none;}`,`.f1ewtqcl{box-sizing:border-box;}`,[`.f1s184ao{margin:0;}`,{p:-1}],[`.f1mk8lai{padding:0;}`,{p:-1}],`.f1vx9l62{flex-direction:column;}`,`.fcy5b15{width:440px;}`,`.fhsg0in{width:250px;}`,`.fcarq7f{width:470px;}`]}),yH=P({base:{h3c5rm:0,vrafjx:0,Bekrc4i:0,u1mtju:[`fe2nn5g`,`f1rcbay7`],Bhzewxz:`f15twtuk`}},{d:[[`.fe2nn5g{border-right:1px solid var(--colorNeutralStroke2);}`,{p:-1}],[`.f1rcbay7{border-left:1px solid var(--colorNeutralStroke2);}`,{p:-1}],`.f15twtuk{top:0;}`]}),bH=P({base:{mc9l5x:`f22iagw`,Beiy3e4:`f1vx9l62`}},{d:[`.f22iagw{display:flex;}`,`.f1vx9l62{flex-direction:column;}`]}),xH=P({base:{qb2dma:`fpydfdc`,De3pzq:`f1c21dwh`,icvyot:`f1ern45e`,vrafjx:[`f1n71otn`,`f1deefiw`],oivjwe:`f1h8hb77`,wvpqe5:[`f1deefiw`,`f1n71otn`],B5kzvoi:`f1yab3r1`,B7ck84d:`f1e4lqlz`,sj55zd:`f19n0e5`,Bahqtrf:`f1mo0ibp`,Be2twd7:`fy9rknc`,Bqenvij:`f1tvdnth`,Bg96gwp:`fpfng1i`,t21cq0:[`f17vyym1`,`fb5scp`],B6of3ja:`f4gg0ds`,B68tc82:0,Bmxbyg5:0,Bpg54ce:`f1gl81tg`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f1p2x7z2`,seuwu7:`fvy6vk6`,Jwef8y:`f9ql6rf`,Bi91k9c:`f1f1pb61`,eoavqd:`f8491dx`,Bv6y5q5:0,uq1ffc:0,Bokaozi:0,Bfrni1f:`f14aog0w`,Bkzqrjd:0,hu2duy:0,n9pfp1:0,dfw8yp:0,qugvs6:`f1fgm6o`,B2d53fq:`fc9d3oc`,Dyrjrp:`f1cqwcg4`,Be90el1:`fmjaa5u`}},{d:[`.fpydfdc{align-self:flex-end;}`,`.f1c21dwh{background-color:var(--colorTransparentBackground);}`,`.f1ern45e{border-top-style:none;}`,`.f1n71otn{border-right-style:none;}`,`.f1deefiw{border-left-style:none;}`,`.f1h8hb77{border-bottom-style:none;}`,`.f1yab3r1{bottom:0;}`,`.f1e4lqlz{box-sizing:content-box;}`,`.f19n0e5{color:var(--colorNeutralForeground1);}`,`.f1mo0ibp{font-family:inherit;}`,`.fy9rknc{font-size:var(--fontSizeBase200);}`,`.f1tvdnth{height:30px;}`,`.fpfng1i{line-height:30px;}`,`.f17vyym1{margin-right:16px;}`,`.fb5scp{margin-left:16px;}`,`.f4gg0ds{margin-top:3px;}`,[`.f1gl81tg{overflow:visible;}`,{p:-1}],[`.f1p2x7z2{padding:0 4px;}`,{p:-1}],`.fvy6vk6 div{font-size:var(--fontSizeBase200);}`,`.f1cqwcg4:disabled{color:var(--colorNeutralForegroundDisabled);}`,`.fmjaa5u:disabled{pointer-events:none;}`],h:[`.f9ql6rf:hover{background-color:var(--colorTransparentBackground);}`,`.f1f1pb61:hover{color:var(--colorBrandForeground1);}`,`.f8491dx:hover{cursor:pointer;}`,`.fc9d3oc:hover:active{color:var(--colorBrandForeground2);}`],m:[[`@media (forced-colors: active){.f14aog0w:hover{outline:var(--strokeWidthThin);}}`,{p:-1,m:`(forced-colors: active)`}],[`@media (forced-colors: active){.f1fgm6o:hover{border-radius:var(--borderRadiusSmall);}}`,{p:-1,m:`(forced-colors: active)`}]]}),SH=P({base:{Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:`f3bhgqh`,Bqenvij:`f1mpe4l3`,jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:`f1jlpb2r`,B68tc82:0,Bmxbyg5:0,Bpg54ce:`f1a3p1vp`,Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:`f1mk8lai`,qhf8xq:`f1euv43f`,a9b677:`frkrog8`}},{d:[[`.f3bhgqh{border:none;}`,{p:-2}],`.f1mpe4l3{height:1px;}`,[`.f1jlpb2r{margin:-1px;}`,{p:-1}],[`.f1a3p1vp{overflow:hidden;}`,{p:-1}],[`.f1mk8lai{padding:0;}`,{p:-1}],`.f1euv43f{position:absolute;}`,`.frkrog8{width:1px;}`]}),CH=e=>{"use no memo";let t=vH(),n=yH(),r=bH(),i=xH(),a=SH(),{className:o,isDayPickerVisible:s,isMonthPickerVisible:c,showWeekNumbers:l}=e;return{root:A(_H.root,t.base,t.normalize,!c&&t.monthPickerNotVisible,s&&c&&!l&&t.dayAndMonthPickersVisible,s&&!c&&l&&t.dayPickerVisibleAndWeekNumbersShown,s&&c&&l&&t.dayAndMonthPickersVisibleAndWeekNumbersShown,o),divider:A(_H.divider,n.base),monthPickerWrapper:A(_H.monthPickerWrapper,r.base),goTodayButton:A(_H.goTodayButton,i.base),liveRegion:A(_H.liveRegion,a.base)}},wH=440,TH=[tB.Monday,tB.Tuesday,tB.Wednesday,tB.Thursday,tB.Friday];function EH(e){let{value:t,today:n,onSelectDate:r}=e,i=M.useMemo(()=>n??new Date,[n]),[a,o]=sa({state:t,defaultState:t?void 0:i,initialState:i}),[s=i,c]=M.useState(t),[l=i,u]=M.useState(t),[d=i,f]=M.useState(t);return t&&d.valueOf()!==t.valueOf()&&(c(t),u(t),f(t)),[a,s,l,(e,t)=>{u(e),c(e),o(e),r?.(e,t)},e=>{u(e),c(e)},e=>{u(e)}]}function DH({isDayPickerVisible:e,isMonthPickerVisible:t,showMonthPickerAsOverlay:n}){let r=AH({isDayPickerVisible:e,showMonthPickerAsOverlay:n}),[i,a]=M.useState(()=>r?!1:t??!1),[o,s]=M.useState(()=>r?!0:e??!0);return[i,o,()=>{a(!i),s(!o)}]}function OH({componentRef:e},t,n){let r=M.useRef(null),i=M.useRef(null),a=M.useRef(!1),{targetDocument:o}=Gi(),s=o?.defaultView,c=M.useCallback(()=>{t&&r.current?KB(r.current,s):n&&i.current&&KB(i.current,s)},[t,n,s]);return M.useImperativeHandle(e,()=>({focus:c}),[c]),M.useEffect(()=>{a.current&&=(c(),!1)}),[r,i,()=>{a.current=!0}]}var kH=M.forwardRef((e,t)=>{let{allFocusable:n=!1,calendarDayProps:r,calendarMonthProps:i,className:a,componentRef:o,dateRangeType:s=iB.Day,dateTimeFormatter:c=fB,firstDayOfWeek:l=tB.Sunday,firstWeekOfYear:u=rB.FirstDay,highlightCurrentMonth:d=!1,highlightSelectedMonth:f=!1,id:p,isDayPickerVisible:m=!0,isMonthPickerVisible:h=!0,maxDate:g,minDate:_,onDismiss:v,onSelectDate:y,restrictedDates:b,showCloseButton:x=!1,showGoToToday:S=!0,showMonthPickerAsOverlay:C=!1,showSixWeeksByDefault:w=!1,showWeekNumbers:T=!1,strings:E=pB,today:D,value:O,workWeekDays:ee=TH}=e,te=M.useMemo(()=>D??new Date,[D]),[ne,re,ie,k,ae,oe]=EH({onSelectDate:y,value:O,today:te}),[se,ce,le]=DH({isDayPickerVisible:m,isMonthPickerVisible:h,showMonthPickerAsOverlay:C}),[ue,de,fe]=OH({componentRef:o},ce,se),pe=()=>{let e=S;return e&&te&&(e=re.getFullYear()!==te.getFullYear()||re.getMonth()!==te.getMonth()||ie.getFullYear()!==te.getFullYear()||ie.getMonth()!==te.getMonth()),S&&M.createElement(`button`,{className:Se.goTodayButton,onClick:ve,onKeyDown:ye(ve),type:`button`,disabled:!e},E.goToToday)},me=(e,t)=>{ae(e),t&&fe()},he=(e,t)=>{if(t&&fe(),!t){oe(e);return}xe&&k(e),ae(e)},ge=AH({isDayPickerVisible:m,showMonthPickerAsOverlay:C}),_e=ge?()=>{le(),fe()}:void 0,ve=()=>{ae(te),ge&&se&&le(),fe()},ye=e=>t=>{switch(t.key){case nd:case` `:e();break}},be=e=>{switch(e.key){case nd:e.preventDefault();break;case ud:e.preventDefault();break;case dd:e.stopPropagation(),v?.();break;case ld:e.ctrlKey?ae(_B(re,1)):ae(gB(re,1)),e.preventDefault();break;case cd:e.ctrlKey?ae(_B(re,-1)):ae(gB(re,-1)),e.preventDefault();break;default:break}},xe=!ge&&!ce,Se=CH({className:a,isDayPickerVisible:ce,isMonthPickerVisible:se,showWeekNumbers:T}),Ce=``,we=``;if(c&&E.todayDateFormatString&&(Ce=E.todayDateFormatString.replace(`{0}`,c.formatMonthDayYear(te,E))),c&&E.selectedDateFormatString&&ne){let e=xe?c.formatMonthYear:c.formatMonthDayYear;we=E.selectedDateFormatString.replace(`{0}`,e(ne,E))}let Te=we+`, `+Ce;return M.createElement(`div`,{id:p,ref:t,className:Se.root,onKeyDown:be},M.createElement(`div`,{className:Se.liveRegion,"aria-live":`polite`,"aria-atomic":`true`},M.createElement(`span`,null,we)),ce&&M.createElement(MV,{gridLabel:Te,selectedDate:ne??te,navigatedDate:re??te,today:te,onSelectDate:k,onNavigateDate:me,onDismiss:v,firstDayOfWeek:l,dateRangeType:s,strings:E,onHeaderSelect:_e,showWeekNumbers:T,firstWeekOfYear:u,dateTimeFormatter:c,showSixWeeksByDefault:w,minDate:_,maxDate:g,navigationIcons:gH,restrictedDates:b,workWeekDays:ee,componentRef:ue,showCloseButton:x,allFocusable:n,...r}),ce&&se&&M.createElement(`div`,{className:Se.divider}),se?M.createElement(`div`,{className:Se.monthPickerWrapper},M.createElement(fH,{navigatedDate:ie,selectedDate:re,strings:E,onNavigateDate:he,today:te,highlightCurrentMonth:d,highlightSelectedMonth:f,onHeaderSelect:_e,dateTimeFormatter:c,minDate:_,maxDate:g,componentRef:de,navigationIcons:gH,...i}),pe()):pe())});kH.displayName=`Calendar`;var AH=({isDayPickerVisible:e,showMonthPickerAsOverlay:t})=>{let{targetDocument:n}=Gi(),r=n?.defaultView;return t||e&&r&&r.innerWidth<=wH},jH={...pB,prevMonthAriaLabel:`Go to previous month`,nextMonthAriaLabel:`Go to next month`,prevYearAriaLabel:`Go to previous year`,nextYearAriaLabel:`Go to next year`,closeButtonAriaLabel:`Close date picker`},MH=e=>{let{inlinePopup:t}=e;return oo(M.Fragment,{children:[I(e.root,{}),e.popupSurface&&(t?I(e.popupSurface,{children:I(e.calendar,{})}):I(y_,{mountNode:e.mountNode,children:I(e.popupSurface,{children:I(e.calendar,{})})}))]})};function NH(e){let{positioning:t}=e,{targetRef:n,containerRef:r}=c_({position:`below`,align:`start`,...Vg(t)});return[n,r]}function PH(e,t,n){return!!t&&wB(t,e)>0||!!n&&wB(n,e)<0}function FH(){let e=M.useRef(null),t=M.useRef(!1);return[M.useCallback(()=>{var t,n;(n=e.current)==null||(t=n.focus)==null||t.call(n)},[]),e,t,M.useCallback(()=>{t.current=!0},[])]}function IH(e){"use no memo";let[t,n]=sa({initialState:!1,defaultState:e.defaultOpen,state:e.open}),r=M.useRef(!1);return M.useEffect(()=>{if(r.current&&!t){var n;(n=e.onOpenChange)==null||n.call(e,!1)}r.current=!0},[e.allowTextInput,t]),[t,n]}function LH({formatDate:e,onSelectDate:t,value:n}){let[r,i]=sa({initialState:null,state:n}),[a,o]=M.useState(()=>n&&e?e(n):``);return M.useEffect(()=>{o(n&&e?e(n):``)},[e,n]),[r,a,n=>{t?.(n),i(n),o(n&&e?e(n):``)},o]}var RH=e=>e?e.toDateString():``,zH=e=>{let t=Date.parse(e);return t?new Date(t):null},BH=(e,t)=>{"use no memo";let{allowTextInput:n=!1,allFocusable:r=!1,borderless:i=!1,dateTimeFormatter:a,defaultOpen:o=!1,disableAutoFocus:s=!0,firstDayOfWeek:c=tB.Sunday,firstWeekOfYear:l=rB.FirstDay,formatDate:u=RH,highlightCurrentMonth:d=!1,highlightSelectedMonth:f=!1,initialPickerDate:p,inlinePopup:m=!1,isMonthPickerVisible:h=!0,maxDate:g,minDate:_,mountNode:v,onOpenChange:y,onSelectDate:b,openOnClick:x=!0,onValidationResult:S,parseDateFromString:C=zH,showCloseButton:w=!1,showGoToToday:T=!0,showMonthPickerAsOverlay:E=!1,showWeekNumbers:D=!1,strings:O=jH,today:ee,underlined:te=!1,value:ne,...re}=e,ie=M.useMemo(()=>p??new Date,[p]),k=M.useRef(null),[ae,oe,se,ce]=FH(),[le,ue,de,fe]=LH({formatDate:u,onSelectDate:b,value:ne}),[pe,me]=IH(e),he=av()?.required??e.required,ge=ba(`datePicker-input`),_e=ba(`datePicker-popupSurface`),ve=M.useCallback((e=null)=>{let t;if(n)if(ue||e){if(le&&u&&u(e??le)===ue)return;e||=C(ue),!e||isNaN(e.getTime())?(de(le),t=`invalid-input`):PH(e,_,g)?t=`out-of-bounds`:de(e)}else he&&(t=`required-input`),b?.(e);else he&&!ue&&(t=`required-input`);S?.({error:t})},[n,u,ue,g,_,b,S,C,he,le,de]),ye=M.useCallback(t=>{y?.(t),me(t),!pe&&!e.disabled&&ae()},[ae,y,e.disabled,me]),be=M.useCallback(e=>{pe&&(ye(!1),ve(e),!n&&e&&de(e))},[n,pe,ye,de,ve]),xe=M.useCallback(()=>{pe||(ce(),ye(!0))},[pe,ce,ye]),Se=M.useCallback(e=>{ce(),be(e)},[be,ce]),Ce=M.useCallback((e,t)=>{let{value:r}=t;n&&(pe&&be(),fe(r))},[n,be,pe,fe]),we=M.useCallback(()=>{ve()},[ve]),Te=M.useCallback(t=>{switch(t.key){case nd:t.preventDefault(),t.stopPropagation(),pe?e.allowTextInput&&be():(ve(),xe());break;case dd:pe&&(t.stopPropagation(),t.preventDefault(),Se());break;case rd:t.preventDefault(),pe||xe();break;default:break}},[Se,be,pe,e.allowTextInput,xe,ve]),Ee=M.useCallback(()=>{s||n||(se.current||xe(),se.current=!1)},[n,s,se,xe]),De=M.useCallback(()=>{if((e.openOnClick||!e.disableAutoFocus)&&!pe&&!e.disabled){xe();return}n&&be()},[n,be,pe,e.disabled,e.disableAutoFocus,e.openOnClick,xe]),Oe=t=>{t.preventDefault(),t.stopPropagation(),!pe&&!e.disabled?xe():e.allowTextInput&&be()},ke=te?`underline`:i?`filled-lighter`:`outline`,[Ae,je]=NH(e),Me=Jr(e.root,{defaultProps:{ref:Ae},elementType:`span`});Me.ref=xa(Me.ref,Ae);let Ne=Jr(e.input,{elementType:`input`});Ne.ref=xa(Ne.ref,t,oe);let Pe=e[`aria-labelledby`],Fe=e.id??ge,Ie=M.useMemo(()=>({role:`button`,"aria-expanded":pe,"aria-labelledby":Pe??Fe}),[pe,Pe,Fe]),Le=Jr(e.contentAfter||{},{defaultProps:{children:M.createElement(Pd,null),...Ie},elementType:`span`});Le.onClick=F(Pa(Le.onClick,Oe));let Re=Jr(re,{defaultProps:{appearance:ke,"aria-controls":pe?_e:void 0,"aria-expanded":pe,"aria-haspopup":`dialog`,readOnly:!n,role:`combobox`,id:Fe},elementType:H});Re.root=Me,Re.input=Ne,Re.contentAfter=Le,Re.onChange=F(Pa(Re.onChange,Ce)),Re.onBlur=F(Pa(Re.onBlur,we)),Re.onKeyDown=F(Pa(Re.onKeyDown,Te)),Re.onFocus=F(Pa(Re.onFocus,Ee)),Re.onClick=F(Pa(Re.onClick,De));let{modalAttributes:ze}=sl({trapFocus:!0,alwaysFocusable:!0,legacyTrapFocus:!0}),Be=pe?Yr(e.popupSurface,{renderByDefault:!0,defaultProps:{"aria-label":`Calendar`,"aria-modal":!0,id:_e,role:`dialog`,ref:je,...ze},elementType:`div`}):void 0,{targetDocument:Ve}=Gi();Ca({element:Ve,callback:e=>be(),refs:[Ae,je],disabled:!pe}),Da({element:Ve,callback:e=>be(),refs:[Ae,je],disabled:!pe}),M.useEffect(()=>{pe&&!e.disabled&&k.current&&k.current.focus()},[s,pe,e.disabled]);let He=Jr(e.calendar,{defaultProps:{allFocusable:r,componentRef:k,dateTimeFormatter:a,firstDayOfWeek:c,firstWeekOfYear:l,highlightCurrentMonth:d,highlightSelectedMonth:f,isMonthPickerVisible:h,maxDate:g,minDate:_,showCloseButton:w,showGoToToday:T,showMonthPickerAsOverlay:E,showWeekNumbers:D,strings:O,today:ee,value:le||ie},elementType:kH});He.onDismiss=F(Pa(He.onDismiss,Se)),He.onSelectDate=F(Pa(He.onSelectDate,Se));let Ue={disabled:!!e.disabled,inlinePopup:m,components:{root:H,calendar:kH,popupSurface:`div`},calendar:He,mountNode:v,root:Re,popupSurface:Be};return Ue.root.value=ue,Ue},VH={root:`fui-DatePicker`,calendar:`fui-DatePicker__calendar`,popupSurface:`fui-DatePicker__popupSurface`},HH=P({base:{qhf8xq:`f10pi13n`,Bceei9c:`f1k6fduh`,xfaavh:`faxec97`},disabled:{Bceei9c:`f158kwzp`,xfaavh:`f19qwlmg`},inline:{Bj3rh1h:`f19g0ac`}},{d:[`.f10pi13n{position:relative;}`,`.f1k6fduh{cursor:pointer;}`,`.faxec97 input{cursor:pointer;}`,`.f158kwzp{cursor:default;}`,`.f19qwlmg input{cursor:default;}`,`.f19g0ac{z-index:1;}`]}),UH=Vr(`r1ytv1z8`,null,[`.r1ytv1z8{background-color:var(--colorNeutralBackground1);box-shadow:var(--shadow16);border-radius:var(--borderRadiusMedium);border-width:1px;border-style:solid;border-color:var(--colorTransparentStroke);display:inline-flex;color:var(--colorNeutralForeground1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);}`]),WH=e=>{"use no memo";let t=HH(),n=UH(),{disabled:r,inlinePopup:i}=e;return e.root.className=A(VH.root,t.base,r&&t.disabled,e.root.className),e.popupSurface&&(e.popupSurface.className=A(VH.popupSurface,n,e.popupSurface.className,i&&t.inline)),e.calendar.className=A(VH.calendar,e.calendar.className),e},GH=M.forwardRef((e,t)=>{let n=BH(e,t);return WH(n),MH(n)});GH.displayName=`DatePicker`;var KH=()=>`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e===`x`?t:t&3|8).toString(16)}),qH=({entityLogicalName:e,value:t,onChange:n})=>{let r=Nj(),{records:i,primaryid:a,isFetching:o}=eB(e),s=(0,M.useMemo)(()=>i.map(e=>({id:e.id,displayText:e.name,image:null})),[i]),c=t=>{n(t&&a?{entityLogicalName:e||`expando`,recordId:t,primaryIdAttribute:a}:null)},l=(0,M.useCallback)(e=>{n(e?{entityLogicalName:`expando`,recordId:e,primaryIdAttribute:`expandoid`,isExpando:!0}:null)},[n]),u=(0,M.useCallback)(()=>{l(KH())},[l]);return o?(0,N.jsxs)(`div`,{className:r.flexRowCentered,children:[(0,N.jsx)(Nb,{size:`tiny`}),(0,N.jsxs)(`span`,{children:[`Loading `,e,` records...`]})]}):e?(0,N.jsx)(CF,{items:s,initialValue:t?.recordId,onSelect:c,isDisabled:!e}):(0,N.jsxs)(`div`,{className:r.flexRowCentered,children:[(0,N.jsx)(H,{appearance:`filled-darker`,placeholder:`xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`,value:t?.recordId??``,onChange:e=>l(e.target.value),style:{flex:1}}),(0,N.jsx)(K_,{appearance:`subtle`,icon:(0,N.jsx)(mf,{}),onClick:u,title:`Generate GUID`,children:`Generate`})]})},JH=e=>{let t=U(e=>e.connection),n=U(e=>e.instanceId),{data:r,status:i,error:a,isFetching:o}=XP({queryKey:pF.entityAttributes(e??``,t?.id??``,n),queryFn:async()=>await window.dataverseAPI.getEntityRelatedMetadata(e,`Attributes`),enabled:!!t&&!!e,staleTime:1/0});return{attributes:[...(r?.value??[]).filter(e=>[`Virtual`,`EntityName`,`CalendarRules`,`PartyList`].includes(e.AttributeType)?!1:e.IsValidForCreate||e.IsValidForUpdate)].sort((e,t)=>{let n=e.DisplayName?.UserLocalizedLabel?.Label||e.LogicalName,r=t.DisplayName?.UserLocalizedLabel?.Label||t.LogicalName;return n.localeCompare(r)}),allAttributes:r?.value??[],status:i,error:a,isFetching:o}},YH=(e,t,n)=>{let r=U(e=>e.connection),i=U(e=>e.instanceId),{data:a,status:o,error:s,isFetching:c}=XP({queryKey:pF.optionSetValues(e??``,t??``,r?.id??``,i),queryFn:async()=>await window.dataverseAPI.queryData(`EntityDefinitions(LogicalName='${e}')/Attributes(LogicalName='${t}')/Microsoft.Dynamics.CRM.${n}AttributeMetadata?$select=LogicalName,DisplayName&$expand=OptionSet`),enabled:!!r&&!!e&&!!t,staleTime:1/0});return{options:n===`Boolean`?(()=>{let e=[];return a?.OptionSet?.FalseOption&&e.push(a.OptionSet.FalseOption),a?.OptionSet?.TrueOption&&e.push(a.OptionSet.TrueOption),e})():a?.OptionSet?.Options??[],optionSetName:a?.LogicalName??``,optionsetDisplayName:a?.DisplayName?.UserLocalizedLabel?.Label??``,status:o,error:s,isFetching:c}},XH=({entityLogicalName:e,attributeLogicalName:t,optionSetType:n,value:r,onChange:i})=>{let a=Nj(),{options:o,isFetching:s}=YH(e,t,n);if(s)return(0,N.jsx)(Nb,{size:`tiny`,label:`Loading options...`});let c=r?.toString();return(0,N.jsx)(ky,{appearance:`filled-darker`,placeholder:`Select value`,selectedOptions:c?[c]:[],value:o.find(e=>e.Value.toString()===c)?.Label?.UserLocalizedLabel?.Label??``,onOptionSelect:(e,t)=>{i(t.optionValue?parseInt(t.optionValue,10):void 0)},children:o.map(e=>{let t=e.Label?.UserLocalizedLabel?.Label??e.Value.toString();return(0,N.jsx)(fy,{value:e.Value.toString(),text:t,children:(0,N.jsxs)(`span`,{className:a.optionLabel,children:[e.Color&&(0,N.jsx)(Qd,{className:a.icon12,style:{color:e.Color}}),t]})},e.Value)})})},ZH=({open:e,entityLogicalName:t,initialData:n,onConfirm:r,onCancel:i})=>{let a=Nj(),{attributes:o,isFetching:s}=JH(t),{collectionname:c,primaryid:l,primaryname:u}=$z(t),d=(0,M.useMemo)(()=>[...o].sort((e,t)=>{if(e.LogicalName===l)return-1;if(t.LogicalName===l)return 1;if(e.LogicalName===u)return-1;if(t.LogicalName===u)return 1;let n=e.DisplayName?.UserLocalizedLabel?.Label||e.LogicalName,r=t.DisplayName?.UserLocalizedLabel?.Label||t.LogicalName;return n.localeCompare(r)}),[o,l,u]),[f,p]=(0,M.useState)(!1),[m,h]=(0,M.useState)(()=>{let e={};for(let[t,r]of Object.entries(n))if(t!==`@odata.type`)if(t.endsWith(`@odata.bind`)&&typeof r==`string`){let n=r.match(/^\/([^(]+)\(([^)]+)\)$/);if(n){let r=t.replace(`@odata.bind`,``);e[r]={entityLogicalName:``,recordId:n[2],primaryIdAttribute:``,collectionName:n[1]}}}else e[t]=r;return e}),g=(0,M.useCallback)((e,t)=>{h(n=>({...n,[e]:t}))},[]),_=(0,M.useCallback)(()=>{let e={"@odata.type":`Microsoft.Dynamics.CRM.${t}`};for(let[t,n]of Object.entries(m))if(!(n==null||n===``))if(typeof n==`object`&&`recordId`in n&&n.recordId){let r=n,i=o.find(e=>e.LogicalName===t);if(i?.Targets?.[0]){let n=r.collectionName||`${i.Targets[0]}s`;e[`${t}@odata.bind`]=`/${n}(${r.recordId})`}}else n instanceof Date?e[t]=n.toISOString():e[t]=n;r(e)},[m,t,o,r]),v=e=>e.DisplayName?.UserLocalizedLabel?.Label||e.LogicalName,y=e=>e.Description?.UserLocalizedLabel?.Label,b=(0,M.useCallback)(e=>{let n=m[e.LogicalName],r=t=>g(e.LogicalName,t);if(e.LogicalName===l)return f?(0,N.jsx)(H,{appearance:`filled-darker`,placeholder:`xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`,value:n??``,onChange:e=>r(e.target.value||void 0)}):(0,N.jsx)(qH,{entityLogicalName:t,value:n,onChange:e=>{r(e?e.recordId:null)}});switch(e.AttributeType){case`String`:return(0,N.jsx)(H,{appearance:`filled-darker`,value:n??``,onChange:e=>r(e.target.value||void 0),maxLength:e.MaxLength});case`Memo`:return(0,N.jsx)(cx,{appearance:`filled-darker`,value:n??``,onChange:e=>r(e.target.value||void 0),resize:`vertical`,rows:3});case`Integer`:case`BigInt`:return(0,N.jsx)(H,{appearance:`filled-darker`,type:`number`,value:n?.toString()??``,onChange:e=>{let t=e.target.value;r(t===``?void 0:parseInt(t,10))}});case`Decimal`:case`Double`:return(0,N.jsx)(H,{appearance:`filled-darker`,type:`number`,step:`any`,value:n?.toString()??``,onChange:e=>{let t=e.target.value;r(t===``?void 0:parseFloat(t))}});case`Money`:return(0,N.jsx)(H,{appearance:`filled-darker`,type:`number`,step:`0.01`,value:n?.toString()??``,onChange:e=>{let t=e.target.value;r(t===``?void 0:parseFloat(t))}});case`DateTime`:return(0,N.jsx)(GH,{appearance:`filled-darker`,value:n instanceof Date?n:n?new Date(n):null,onSelectDate:e=>r(e??void 0),placeholder:`Select a date...`});case`Boolean`:case`Picklist`:case`State`:case`Status`:return(0,N.jsx)(XH,{entityLogicalName:t,attributeLogicalName:e.LogicalName,optionSetType:e.AttributeType,value:n,onChange:e=>r(e)});case`Lookup`:case`Customer`:case`Owner`:let i=e.Targets?.[0];return(0,N.jsx)(qH,{entityLogicalName:i,value:n,onChange:e=>{r(e?{...e,collectionName:c}:null)}});default:return(0,N.jsx)(H,{appearance:`filled-darker`,value:n??``,onChange:e=>r(e.target.value||void 0)})}},[m,g,c,t,l,f]),x=(0,M.useMemo)(()=>({maxWidth:`700px`,maxHeight:`80vh`}),[]),S=(0,M.useMemo)(()=>({maxHeight:`60vh`,overflowY:`auto`}),[]);return(0,N.jsx)(kx,{open:e,modalType:`modal`,children:(0,N.jsx)(uS,{style:x,children:(0,N.jsxs)(Gx,{children:[(0,N.jsx)(eS,{children:(0,N.jsxs)(`span`,{className:a.flexRowCentered,children:[`Set Entity Data`,(0,N.jsx)(ym,{appearance:`outline`,size:`small`,color:`severe`,icon:(0,N.jsx)(Sf,{}),children:t})]})}),(0,N.jsx)(gS,{children:s?(0,N.jsxs)(`div`,{className:a.flexRowCentered,children:[(0,N.jsx)(Nb,{size:`small`}),(0,N.jsx)(`span`,{children:`Loading entity attributes...`})]}):(0,N.jsx)(`div`,{style:S,children:(0,N.jsxs)(`div`,{className:a.flexColumnM,children:[d.map(e=>(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:a.fieldLabelStandard,children:[(0,N.jsx)(`span`,{className:a.semiBoldLabel,children:v(e)}),e.LogicalName===l&&(0,N.jsx)(ym,{appearance:`filled`,size:`small`,color:`brand`,icon:(0,N.jsx)(tp,{}),children:`Primary ID`}),e.LogicalName===l&&(0,N.jsx)(qb,{checked:f,onChange:(e,t)=>p(t.checked),label:f?`Manual GUID`:`Pick record`,labelPosition:`after`}),e.LogicalName===u&&(0,N.jsx)(ym,{appearance:`filled`,size:`small`,color:`brand`,icon:(0,N.jsx)(ep,{}),children:`Primary Name`}),(0,N.jsx)(ym,{appearance:`outline`,size:`small`,color:`informative`,children:e.AttributeType})]}),hint:y(e)||e.LogicalName,children:b(e)},e.LogicalName)),d.length===0&&(0,N.jsx)(`div`,{className:a.infoBox,children:`No editable attributes found for this entity.`})]})})}),(0,N.jsxs)(zx,{children:[m&&Object.keys(m).length>1&&(0,N.jsxs)(ym,{appearance:`filled`,color:`success`,children:[Object.keys(m).length,` field(s) set`]}),(0,N.jsx)(K_,{appearance:`secondary`,icon:(0,N.jsx)(hp,{}),onClick:i,children:`Cancel`}),(0,N.jsx)(K_,{appearance:`primary`,icon:(0,N.jsx)(ip,{}),onClick:_,disabled:s,children:`OK`})]})]})})})},QH=({entityLogicalName:e,value:t,onChange:n})=>{let r=Nj(),[i,a]=(0,M.useState)(!1),o=(0,M.useCallback)(()=>{a(!0)},[]),s=(0,M.useCallback)(e=>{n(e),a(!1)},[n]),c=(0,M.useCallback)(()=>{a(!1)},[]),l=(0,M.useMemo)(()=>t?JSON.stringify(t,null,2):``,[t]);return e?(0,N.jsxs)(`div`,{className:r.flexColumn,children:[(0,N.jsxs)(`div`,{className:r.flexRowCentered,children:[(0,N.jsx)(K_,{appearance:`subtle`,icon:(0,N.jsx)(qf,{}),onClick:o,children:`Set Entity Data`}),t&&Object.keys(t).length>1&&(0,N.jsxs)(ym,{appearance:`filled`,color:`success`,children:[Object.keys(t).length-1,` field(s) set`]})]}),(0,N.jsx)(cx,{appearance:`filled-darker`,resize:`vertical`,rows:Math.min(Math.max((l.match(/\n/g)||[]).length+1,3),12),readOnly:!0,value:l,placeholder:`Click 'Set Entity Data' to configure...`}),(0,N.jsx)(ZH,{open:i,entityLogicalName:e,initialData:t??{},onConfirm:s,onCancel:c})]}):(0,N.jsxs)(`div`,{className:r.flexColumn,children:[(0,N.jsx)(ym,{appearance:`outline`,color:`warning`,children:`No entity type specified for this parameter`}),(0,N.jsx)(cx,{appearance:`filled-darker`,resize:`vertical`,rows:4,placeholder:`Enter JSON entity data manually...`,value:l,onChange:e=>{try{n(JSON.parse(e.target.value))}catch{}}})]})},$H=(e,t,n)=>{switch(RF[e.type]){case`Boolean`:return(0,N.jsxs)(ky,{appearance:`filled-darker`,placeholder:`Select value`,selectedOptions:t===!0?[`true`]:t===!1?[`false`]:[],value:t===!0?`True`:t===!1?`False`:``,onOptionSelect:(t,r)=>{r.optionValue===`true`?n(e.customapirequestparameterid,!0):r.optionValue===`false`?n(e.customapirequestparameterid,!1):n(e.customapirequestparameterid,null)},children:[(0,N.jsx)(fy,{value:`true`,children:`True`}),(0,N.jsx)(fy,{value:`false`,children:`False`})]});case`Integer`:case`Picklist`:return(0,N.jsx)(H,{appearance:`filled-darker`,type:`number`,value:t?.toString()??``,onChange:t=>{let r=t.target.value;n(e.customapirequestparameterid,r===``?void 0:parseInt(r,10))},required:!e.isoptional});case`Float`:case`Decimal`:case`Money`:return(0,N.jsx)(H,{appearance:`filled-darker`,type:`number`,step:`any`,value:t?.toString()??``,onChange:t=>{let r=t.target.value;n(e.customapirequestparameterid,r===``?void 0:parseFloat(r))},required:!e.isoptional});case`DateTime`:return(0,N.jsx)(GH,{appearance:`filled-darker`,value:t??null,onSelectDate:t=>n(e.customapirequestparameterid,t??void 0),placeholder:`Select a date...`});case`Guid`:return(0,N.jsx)(H,{appearance:`filled-darker`,placeholder:`xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`,value:t??``,onChange:t=>n(e.customapirequestparameterid,t.target.value||void 0),required:!e.isoptional});case`String`:return(0,N.jsx)(H,{appearance:`filled-darker`,value:t??``,onChange:t=>n(e.customapirequestparameterid,t.target.value||void 0),required:!e.isoptional});case`StringArray`:return(0,N.jsx)(cx,{appearance:`filled-darker`,spellCheck:!1,placeholder:`["value1", "value2"]`,value:t??``,onChange:t=>n(e.customapirequestparameterid,t.target.value||void 0),resize:`vertical`,rows:3});case`Entity`:return(0,N.jsx)(QH,{entityLogicalName:e.logicalentityname,value:t,onChange:t=>n(e.customapirequestparameterid,t)});case`EntityCollection`:return(0,N.jsx)(cx,{appearance:`filled-darker`,spellCheck:!1,placeholder:`[{ "@odata.type": "...", ... }]`,value:t??``,onChange:t=>n(e.customapirequestparameterid,t.target.value||void 0),resize:`vertical`,rows:4});case`EntityReference`:return(0,N.jsx)(qH,{entityLogicalName:e.logicalentityname,value:t,onChange:t=>n(e.customapirequestparameterid,t)});default:return(0,N.jsx)(H,{appearance:`filled-darker`,value:t??``,onChange:t=>n(e.customapirequestparameterid,t.target.value||void 0),required:!e.isoptional})}},eU=({isFetching:e,isFetchingBoundRecords:t,isBoundToEntity:n,boundEntityLogicalName:r,boundEntityRecords:i,boundRecordId:a,setBoundRecordId:o,sortedParameters:s,parameterValues:c,handleParameterChange:l,isExecuting:u,isExecuteDisabled:d,onExecute:f})=>{let p=Nj();return(0,N.jsxs)(MT,{className:p.testerPanel,children:[(0,N.jsx)(RT,{header:(0,N.jsxs)(`span`,{className:p.flexRowCentered,children:[(0,N.jsx)(gf,{}),` Request`]}),action:(0,N.jsx)(K_,{appearance:`primary`,icon:u?(0,N.jsx)(Nb,{size:`tiny`}):(0,N.jsx)(Gf,{}),onClick:f,disabled:u||d,children:u?`Executing...`:`Execute`})}),(0,N.jsx)(`div`,{className:p.testerPanelContent,children:e||t?(0,N.jsx)(`div`,{className:p.infoBox,children:`Loading...`}):!n&&s.length===0?(0,N.jsx)(`div`,{className:p.infoBox,children:`This Custom API has no request parameters.`}):(0,N.jsxs)(`div`,{className:p.testerFormSection,children:[n&&r&&(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:p.fieldLabelStandard,children:[(0,N.jsx)(`span`,{className:p.semiBoldLabel,children:`Target Record`}),(0,N.jsx)(ym,{appearance:`outline`,size:`small`,color:`severe`,icon:(0,N.jsx)(Sf,{}),children:r})]}),hint:`Select a ${r} record to execute this bound Custom API against`,required:!0,children:(0,N.jsx)(CF,{items:i.map(e=>({id:e.id,displayText:e.name})).sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)),initialValue:a??``,onSelect:e=>o(e)})}),s.map(e=>{let t=RF[e.type],n=t===`EntityReference`,r=t===`Entity`;return(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:p.fieldLabelStandard,children:[(0,N.jsx)(`span`,{className:p.semiBoldLabel,children:e.displayname||e.name}),(0,N.jsx)(ym,{appearance:`outline`,size:`small`,color:`informative`,children:t}),n&&(0,N.jsx)(ym,{appearance:`outline`,size:`small`,color:`severe`,icon:(0,N.jsx)(Sf,{}),children:e.logicalentityname||`expando`}),r&&e.logicalentityname&&(0,N.jsx)(ym,{appearance:`outline`,size:`small`,color:`severe`,icon:(0,N.jsx)(Sf,{}),children:e.logicalentityname})]}),hint:e.description,required:!e.isoptional,children:$H(e,c[e.customapirequestparameterid],l)},e.customapirequestparameterid)})]})})]})},tU=e=>e<1e3?`${Math.round(e)} ms`:`${(e/1e3).toFixed(1)} s`,nU=({executionResult:e,responseProperties:t})=>{let n=Nj(),r=(0,M.useMemo)(()=>[...t].sort((e,t)=>(e.displayname||e.name||``).localeCompare(t.displayname||t.name||``)),[t]),i=t=>{if(!e?.data||typeof e.data!=`object`)return``;let n=e.data[t];return n==null?``:typeof n==`object`?JSON.stringify(n,null,2):String(n)};return(0,N.jsxs)(MT,{className:n.testerPanel,children:[(0,N.jsx)(RT,{header:(0,N.jsxs)(`span`,{className:n.flexRowCentered,children:[(0,N.jsx)(lf,{}),` Response`]}),action:e?.success&&e.elapsedMs!==void 0?(0,N.jsx)(ym,{appearance:`outline`,size:`medium`,color:`success`,children:tU(e.elapsedMs)}):void 0}),(0,N.jsx)(`div`,{className:n.testerPanelContent,children:e?e.success?(0,N.jsxs)(N.Fragment,{children:[e.success&&r.length>0&&(0,N.jsx)(`div`,{className:n.testerFormSection,children:r.map(e=>{let t=HF[e.type],r=i(e.uniquename),a=t===`Entity`||t===`EntityCollection`||t===`StringArray`||t===`EntityReference`;return(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:n.fieldLabelStandard,children:[(0,N.jsx)(`span`,{className:n.semiBoldLabel,children:e.displayname||e.name}),(0,N.jsx)(ym,{appearance:`outline`,size:`small`,color:`informative`,children:t})]}),hint:e.description,children:a?(0,N.jsx)(cx,{appearance:`filled-darker`,spellCheck:!1,value:r,readOnly:!0,resize:`vertical`,rows:3}):(0,N.jsx)(H,{appearance:`filled-darker`,value:r,readOnly:!0})},e.customapiresponsepropertyid)})}),e.success&&r.length===0&&(0,N.jsx)(`div`,{className:n.infoBox,children:`This Custom API has no defined response properties.`})]}):(0,N.jsx)(`div`,{className:n.infoBox,children:`Execution failed. See the message above for details.`}):(0,N.jsx)(`div`,{className:n.infoBox,children:`Execute the Custom API to see the response`})})]})};function rU(e){let{customApi:t,instanceUrl:n,boundEntityCollectionName:r,boundRecordId:i}=e;if(!t||!n)return null;let a=`${n}api/data/v9.2`,o=t.bindingtype,s=o===1||o===2;return s&&(!t.boundentitylogicalname||o===1&&!i)?null:s?o===1?`${a}/${r}(${i})/Microsoft.Dynamics.CRM.${t.uniquename}`:`${a}/${r}/Microsoft.Dynamics.CRM.${t.uniquename}`:`${a}/${t.uniquename}`}function iU(e){let{requestParameters:t,parameterValues:n}=e,r=[];for(let e of t){let t=n[e.customapirequestparameterid];if(t==null||t===``)continue;let i=RF[e.type],a=e.uniquename,o;switch(i){case`Boolean`:o=t?`true`:`false`;break;case`String`:case`Guid`:o=`'${t}'`;break;case`DateTime`:o=t instanceof Date?t.toISOString():String(t);break;case`Integer`:case`Picklist`:case`Float`:case`Decimal`:case`Money`:o=String(t);break;default:continue}r.push(`${a}=${o}`)}return r.length>0?`(${r.join(`,`)})`:`()`}var aU=({customApi:e,requestParameters:t,parameterValues:n,boundEntityCollectionName:r,boundRecordId:i,requestPreview:a,executionResult:o})=>{let s=Nj(),{theme:c,connection:l}=U(),u=(0,M.useMemo)(()=>{if(!e||!l?.url)return null;let a=rU({customApi:e,instanceUrl:l.url,boundEntityCollectionName:r,boundRecordId:i});return a?e.isfunction?`${a}${iU({requestParameters:t,parameterValues:n})}`:a:null},[e,l?.url,t,n,r,i]);return(0,N.jsxs)(MT,{className:s.card,children:[(0,N.jsx)(RT,{header:(0,N.jsxs)(`span`,{className:s.flexRowCentered,children:[(0,N.jsx)(Id,{}),`OData Details`]})}),(0,N.jsx)(`div`,{className:s.testerPanelContent,children:(0,N.jsxs)(`div`,{className:s.testerFormSection,children:[u&&(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:s.fieldLabelStandard,children:[(0,N.jsx)(`span`,{className:s.semiBoldLabel,children:`Request URL`}),(0,N.jsx)(ym,{appearance:`filled`,size:`small`,color:e?.isfunction?`informative`:`severe`,children:e?.isfunction?`GET`:`POST`})]}),children:(0,N.jsx)(cx,{value:u,readOnly:!0,spellCheck:!1,appearance:`filled-darker`,rows:2,resize:`vertical`})}),e?.isfunction===!1&&a&&typeof a.parameters==`object`&&a.parameters!==null&&(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:s.semiBoldLabel,children:`Request Body`}),children:(0,N.jsx)(`div`,{className:s.jsonViewerWrapper,children:(0,N.jsx)(qz,{value:a.parameters,style:c===`dark`?Yz:Jz,displayDataTypes:!1,enableClipboard:!0})})}),o?.success&&o.data!==void 0&&(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:s.semiBoldLabel,children:`Response JSON`}),children:(0,N.jsx)(`div`,{className:s.jsonViewerWrapper,children:(0,N.jsx)(qz,{value:typeof o.data==`object`&&o.data!==null?o.data:{result:o.data},displayDataTypes:!1,collapsed:2,style:c===`dark`?Yz:Jz,shortenTextAfterLength:0,enableClipboard:!0})})}),(!o||!o.success)&&(0,N.jsx)(`div`,{className:s.infoBox,children:o?`Execution failed. See the response panel for details.`:`Execute the Custom API to see the OData response`})]})})]})},oU=()=>{let e=Nj(),{selectedCustomApiId:t,addLog:n,setGlobalMessage:r,clearGlobalMessage:i,selectedNavItem:a}=U(),{customapis:o}=gF(),{requestParameters:s,isFetching:c}=$F(),{responseProperties:l}=VI(),u=o.find(e=>e.customapiid===t),d=u?.bindingtype===1,f=u?.bindingtype===2,p=d||f?u?.boundentitylogicalname:null,m=$z(p??``),h=m.collectionname?String(m.collectionname):null,{records:g,isFetching:_}=eB(p),[v,y]=(0,M.useState)({}),[b,x]=(0,M.useState)(null),[S,C]=(0,M.useState)(!1),[w,T]=(0,M.useState)(null);(0,M.useEffect)(()=>{y({}),x(null),T(null)},[t]);let E=(0,M.useMemo)(()=>[...s].sort((e,t)=>e.isoptional===t.isoptional?(e.displayname||e.name||``).localeCompare(t.displayname||t.name||``):e.isoptional?1:-1),[s]),D=(0,M.useMemo)(()=>d&&!b?!0:s.some(e=>{if(e.isoptional)return!1;let t=v[e.customapirequestparameterid];return t==null||t===``}),[d,b,s,v]);(0,M.useEffect)(()=>{u&&D?r(`tester-required-fields`,{intent:`warning`,title:`Required Fields`,body:`Please provide all required parameters before testing.`,dismissable:!0}):i(`tester-required-fields`)},[u?.customapiid,D,r,i]),(0,M.useEffect)(()=>()=>i(`tester-required-fields`),[a,i]),(0,M.useEffect)(()=>{w&&T(null)},[v,b]);let O=(0,M.useMemo)(()=>{if(!u)return null;let e={};for(let t of s){let n=v[t.customapirequestparameterid];if(n==null||n===``)continue;let r=RF[t.type],i=t.uniquename;switch(r){case`Boolean`:case`Integer`:case`Float`:case`Decimal`:case`Money`:case`Picklist`:case`Guid`:case`String`:case`DateTime`:e[i]=n;break;case`StringArray`:if(typeof n==`string`)try{e[i]=JSON.parse(n)}catch{e[i]=n}break;case`Entity`:if(typeof n==`object`&&n)e[i]=n;else if(typeof n==`string`)try{e[i]=JSON.parse(n)}catch{e[i]=n}break;case`EntityCollection`:if(typeof n==`string`)try{e[i]=JSON.parse(n)}catch{e[i]=n}break;case`EntityReference`:{let t=n;t.recordId&&(t.isExpando||!t.entityLogicalName||t.entityLogicalName===`expando`?e[i]={"@odata.type":`Microsoft.Dynamics.CRM.expando`,expandoid:t.recordId}:t.primaryIdAttribute&&(e[i]={"@odata.type":`Microsoft.Dynamics.CRM.${t.entityLogicalName}`,[t.primaryIdAttribute]:t.recordId}));break}default:e[i]=n}}let t=u.isfunction?`function`:`action`,n={operationName:u.uniquename,operationType:t};return d&&p&&b&&(n.entityName=p,n.entityId=b),f&&p&&(n.entityName=p),Object.keys(e).length>0&&(n.parameters=e),n},[u,d,f,p,b,v,s]),ee=(e,t)=>{y(n=>({...n,[e]:t}))},te=()=>{let e={};for(let t of s){let n=v[t.customapirequestparameterid];if(n==null||n===``)continue;let r=RF[t.type],i=t.uniquename;switch(r){case`Boolean`:case`Integer`:case`Float`:case`Decimal`:case`Money`:case`Picklist`:case`Guid`:case`String`:case`DateTime`:e[i]=n;break;case`StringArray`:if(typeof n==`string`)try{e[i]=JSON.parse(n)}catch{e[i]=n}break;case`Entity`:if(typeof n==`object`&&n)e[i]=n;else if(typeof n==`string`)try{e[i]=JSON.parse(n)}catch{e[i]=n}break;case`EntityCollection`:if(typeof n==`string`)try{e[i]=JSON.parse(n)}catch{e[i]=n}break;case`EntityReference`:{let t=n;t.recordId&&(t.isExpando||!t.entityLogicalName||t.entityLogicalName===`expando`?e[i]={"@odata.type":`Microsoft.Dynamics.CRM.expando`,expandoid:t.recordId}:t.primaryIdAttribute&&(e[i]={"@odata.type":`Microsoft.Dynamics.CRM.${t.entityLogicalName}`,[t.primaryIdAttribute]:t.recordId}));break}default:e[i]=n}}return e};return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(zI,{}),u&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(MT,{className:e.card,children:(0,N.jsx)(RT,{header:(0,N.jsx)(`div`,{className:e.cardHeaderContainer,children:(0,N.jsxs)(`div`,{className:e.cardHeaderRow,children:[(0,N.jsx)(`h3`,{children:`Test Custom API`}),(0,N.jsxs)(`div`,{className:e.headerBadgeGroup,children:[u&&(0,N.jsx)(cI,{isManaged:u.ismanaged}),u?._fxexpressionid_value&&(0,N.jsx)($I,{})]})]})}),description:(0,N.jsxs)(`div`,{className:e.flexColumn,children:[(0,N.jsxs)(`div`,{className:e.headingActionRow,children:[(0,N.jsx)(`h2`,{className:e.headingNoMargin,children:u?.displayname||u?.uniquename}),(0,N.jsx)(eL,{customApiId:u?.customapiid})]}),u?.description&&(0,N.jsx)(`p`,{children:u.description})]})})}),(0,N.jsxs)(`div`,{className:e.testerContainer,children:[(0,N.jsx)(eU,{isFetching:c,isFetchingBoundRecords:_,isBoundToEntity:d,boundEntityLogicalName:p,boundEntityRecords:g,boundRecordId:b,setBoundRecordId:x,sortedParameters:E,parameterValues:v,handleParameterChange:ee,isExecuting:S,isExecuteDisabled:D,onExecute:async()=>{if(u){C(!0),T(null);try{let e=te(),t=u.isfunction?`function`:`action`,r={operationName:u.uniquename,operationType:t};d&&p&&b&&(r.entityName=p,r.entityId=b),f&&p&&(r.entityName=p),Object.keys(e).length>0&&(r.parameters=e),n(`Executing Custom API '${u.uniquename}'...`,`info`);let i=performance.now();T({success:!0,data:await window.dataverseAPI.execute(r),elapsedMs:performance.now()-i}),n(`Custom API '${u.uniquename}' executed successfully`,`success`),mF({title:`Execution Successful`,body:`Custom API '${u.uniquename}' executed successfully`,type:`success`,duration:3e3})}catch(e){let t=e instanceof Error?e.message:String(e);T({success:!1,error:t}),n(`Custom API '${u.uniquename}' execution failed: ${t}`,`error`),mF({title:`Execution Failed`,body:`Custom API '${u.uniquename}': ${t}`,type:`error`,duration:5e3})}finally{C(!1)}}}}),(0,N.jsx)(nU,{executionResult:w,responseProperties:l})]}),(0,N.jsx)(aU,{customApi:u,requestParameters:E,parameterValues:v,boundEntityCollectionName:h,boundRecordId:b,requestPreview:O,executionResult:w})]}),!u&&(0,N.jsx)(MT,{className:e.card,children:(0,N.jsxs)(`div`,{className:e.infoBox,children:[(0,N.jsx)(`p`,{children:`No Custom API selected`}),(0,N.jsx)(`p`,{children:`Please select a Custom API above to test it`})]})})]})},sU=()=>{let e=Nj(),{connection:t,isLoadingConnection:n,addLog:r,setSelectedSolutionId:i,setSelectedCatalogId:a,selectedSolutionId:o,selectedCatalogId:s,selectedNavItem:c,pendingManagedFilterHandoff:l,setPendingManagedFilterHandoff:u,setCurrentBusinessEventSelectionInit:d}=U(),f=FF(),p=TI(),{appsettings:m}=kF(),[h,g]=(0,M.useState)(!1),[_,v]=(0,M.useState)(`all`),[y,b]=(0,M.useState)(hN.businessEventSelectionInit),x=(0,M.useRef)(s),S=(0,M.useRef)(!1);(0,M.useEffect)(()=>{c===`businessevent`&&g(!0)},[c]),(0,M.useEffect)(()=>{s&&s!==x.current&&g(!1),x.current=s},[s]),(0,M.useEffect)(()=>{S.current=!1,b(hN.businessEventSelectionInit)},[t?.id]),(0,M.useEffect)(()=>{S.current||b(m?.businessEventSelectionInit??hN.businessEventSelectionInit)},[m?.businessEventSelectionInit,t?.id]),(0,M.useEffect)(()=>{!l||l.target!==`businessevent`||c===`businessevent`&&(S.current=!0,b(l.value),u(null))},[l,c,u]),(0,M.useEffect)(()=>{d(y)},[y,d]);let C=e=>{S.current=!0,b(e)},w=(0,M.useMemo)(()=>{let e=[];if(o){let t=f.solutions?.find(e=>e.solutionid===o);t&&e.push((0,N.jsxs)(ym,{appearance:`outline`,size:`small`,children:[t.ismanaged?(0,N.jsx)(of,{}):(0,N.jsx)(sf,{}),` `,t.friendlyname]},`solution`))}return y!==`all`&&e.push((0,N.jsxs)(ym,{appearance:`outline`,size:`small`,children:[y===`managed`?(0,N.jsx)(of,{}):(0,N.jsx)(sf,{}),` `,y===`managed`?`Managed`:`Unmanaged`,` Catalogs`]},`catalog-managed`)),e},[o,y,f.solutions]),T=w.length,E=f.solutions?.filter(e=>_===`all`||e.ismanaged&&_===`managed`||!e.ismanaged&&_===`unmanaged`)??[],D=p.rootCatalogs?.filter(e=>y===`all`||e.ismanaged&&y===`managed`||!e.ismanaged&&y===`unmanaged`)??[];return!n&&t?.isActive===!1?(0,N.jsxs)(MT,{className:e.card,children:[(0,N.jsx)(RT,{header:(0,N.jsx)(`h3`,{children:`Catalog Selector`})}),(0,N.jsxs)(`div`,{className:e.infoBox,children:[(0,N.jsx)(`p`,{children:`No connection`}),(0,N.jsx)(`p`,{children:`Please select a Connection`})]})]}):(0,N.jsx)(MT,{className:e.card,children:(0,N.jsxs)(`div`,{className:e.selectorGrid,children:[(0,N.jsx)(`div`,{className:e.selectorColumn,children:(0,N.jsxs)(V,{label:(0,N.jsx)(`span`,{className:e.semiBoldLabel,children:`Selected Catalog`}),children:[p.isFetching&&(0,N.jsx)(H,{appearance:`filled-darker`,value:`Loading catalogs...`,readOnly:!0}),p.error&&(0,N.jsx)(H,{value:`Error loading catalogs: ${p.error.message}`,readOnly:!0,appearance:`filled-darker`}),!p.isFetching&&p.rootCatalogs&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(CF,{items:D.map(e=>({id:e.catalogid,displayText:`${e.name} (${e.uniquename})`,image:e.ismanaged?(0,N.jsx)(of,{}):(0,N.jsx)(sf,{})})).sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)),initialValue:p.rootCatalogs.find(e=>e.catalogid===s)?.catalogid||``,onSelect:e=>{a(e),e?r(`Catalog selected: ${e}`,`info`):r(`Catalog selection cleared`,`warning`)}}),D.length===0&&(0,N.jsx)($b,{className:e.hintTextItalic,children:`No Catalogs match your filters.`})]})]})}),(0,N.jsxs)(`div`,{className:A(e.selectorColumn,e.subtleBorderedBox),children:[(0,N.jsxs)(K_,{appearance:`subtle`,icon:h?(0,N.jsx)(bf,{}):(0,N.jsx)(xf,{}),onClick:()=>g(!h),size:`small`,className:e.filterToggleButton,children:[`Filters `,T>0?`(${T})`:``]}),!h&&w.length>0&&(0,N.jsx)(`div`,{className:e.badgeContainer,children:w}),h&&(0,N.jsx)(`div`,{className:e.flexColumnM,children:(0,N.jsxs)(`div`,{className:e.filterSubsection,children:[(0,N.jsxs)(V,{label:(0,N.jsxs)(`div`,{className:e.fieldLabelWithToggle,children:[(0,N.jsx)(`span`,{className:e.semiBoldLabel,children:`Selected Solution`}),(0,N.jsx)(DF,{value:_,onChange:v})]}),children:[f.isFetching&&(0,N.jsx)(H,{appearance:`filled-darker`,value:`Loading solutions...`,readOnly:!0}),f.error&&(0,N.jsx)(H,{appearance:`filled-darker`,value:`Error loading solutions: ${f.error.message}`,readOnly:!0}),!f.isFetching&&f.solutions&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(CF,{items:E.map(e=>({id:e.solutionid,displayText:`${e.friendlyname} (${e.uniquename})`,image:e.ismanaged?(0,N.jsx)(of,{}):(0,N.jsx)(sf,{})})).sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)),initialValue:f.solutions.find(e=>e.solutionid===o)?.solutionid||``,onSelect:e=>{i(e),r(e?`Solution selected: ${e}`:`Solution selection cleared`,`info`)}}),E.length===0&&(0,N.jsx)($b,{className:e.hintTextItalic,children:`No solutions match your filter.`})]})]}),(0,N.jsx)(V,{label:(0,N.jsx)(`div`,{className:e.fieldLabelWithToggle,children:(0,N.jsx)(`span`,{className:e.semiBoldLabel,children:`Catalog Filters`})}),children:(0,N.jsx)(DF,{value:y,onChange:C})})]})})]})]})})},cU=({open:e,title:t,message:n,confirmLabel:r=`Confirm`,cancelLabel:i=`Cancel`,onConfirm:a,onCancel:o,isLoading:s=!1,intent:c=`info`})=>{let l=Nj();return(0,N.jsx)(kx,{open:e,onOpenChange:(e,t)=>!t.open&&o(),children:(0,N.jsx)(uS,{className:l.dialogSurface,children:(0,N.jsxs)(Gx,{children:[(0,N.jsx)(eS,{children:t}),(0,N.jsx)(gS,{className:l.dialogContentColumn,children:(0,N.jsx)(`p`,{children:n})}),(0,N.jsxs)(zx,{children:[(0,N.jsx)(K_,{appearance:`secondary`,onClick:o,disabled:s,children:i}),(0,N.jsx)(K_,{appearance:`primary`,onClick:a,disabled:s,className:c===`danger`?l.deleteButton:void 0,icon:s?(0,N.jsx)(Nb,{size:`tiny`}):void 0,children:s?`Processing...`:r})]})]})})})},lU=Br({treeContainer:{padding:z.spacingVerticalM,minHeight:`200px`,flex:1,minWidth:`280px`},treeItem:{marginBottom:z.spacingVerticalXS},treeItemContent:{display:`flex`,alignItems:`center`,gap:z.spacingHorizontalS,flex:1},itemName:{flex:1,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},itemActions:{display:`flex`,gap:z.spacingHorizontalXS,opacity:0,transition:`opacity 0.15s`},treeItemHover:{"&:hover":{"& .item-actions":{opacity:1}}},managedBadge:{marginLeft:z.spacingHorizontalXS},typeBadge:{marginLeft:z.spacingHorizontalXS},emptyState:{padding:z.spacingVerticalL,textAlign:`center`,color:z.colorNeutralForeground3},loadingContainer:{display:`flex`,alignItems:`center`,justifyContent:`center`,padding:z.spacingVerticalL},treeItemSelected:{backgroundColor:z.colorNeutralBackground1Selected,borderRadius:z.borderRadiusMedium},treeItemClickable:{cursor:`pointer`}}),uU=({onCreateCategory:e,onEditCatalog:t,onCreateAssignment:n,onEditAssignment:r,selectedItem:i,onSelectItem:a})=>{let o=lU(),{selectedCatalogId:s}=U(),{catalogs:c,isFetching:l}=CI(),u=OI(),d=RI(),[f,p]=(0,M.useState)(!1),[m,h]=(0,M.useState)(null),g=c.find(e=>e.catalogid===s),_=(e,t)=>{h({type:e,item:t}),p(!0)},v=async()=>{if(m)try{m.type===`catalog`?await u.mutateAsync({catalog:m.item}):await d.mutateAsync({assignment:m.item})}finally{p(!1),h(null)}},y=()=>{p(!1),h(null)},b=c.filter(e=>e._parentcatalogid_value===s).map(e=>e.catalogid),x=g?[g.catalogid,...b]:[];return l?(0,N.jsx)(`div`,{className:o.loadingContainer,children:(0,N.jsx)(Nb,{size:`small`,label:`Loading catalogs...`})}):g?(0,N.jsxs)(`div`,{className:o.treeContainer,children:[(0,N.jsx)(JE,{"aria-label":`Business Events Catalog Tree`,openItems:x,onOpenChange:(e,t)=>{},children:(0,N.jsx)(dU,{catalog:g,allCatalogs:c,onCreateCategory:e,onEditCatalog:t,onDeleteCatalog:e=>_(`catalog`,e),onCreateAssignment:n,onEditAssignment:r,onDeleteAssignment:e=>_(`assignment`,e),selectedItem:i,onSelectItem:a})}),(0,N.jsx)(cU,{open:f,title:`Delete ${m?.type===`catalog`?`Catalog`:`Assignment`}?`,message:m?`Are you sure you want to delete "${m.type,m.item.name}"? This action cannot be undone.`:``,confirmLabel:`Delete`,onConfirm:v,onCancel:y,isLoading:u.isPending||d.isPending,intent:`danger`})]}):(0,N.jsxs)(`div`,{className:o.emptyState,children:[(0,N.jsx)($b,{children:`Selected catalog not found.`}),(0,N.jsx)(`br`,{}),(0,N.jsx)($b,{size:200,children:`Select a different Catalog above.`})]})},dU=({catalog:e,allCatalogs:t,onCreateCategory:n,onEditCatalog:r,onDeleteCatalog:i,onCreateAssignment:a,onEditAssignment:o,onDeleteAssignment:s,selectedItem:c,onSelectItem:l})=>{let u=lU(),d=t.filter(t=>t._parentcatalogid_value===e.catalogid),f=c?.type===`catalog`&&c.item.catalogid===e.catalogid;return(0,N.jsxs)(iD,{itemType:d.length>0?`branch`:`leaf`,value:e.catalogid,children:[(0,N.jsx)(NE,{className:A(u.treeItem,u.treeItemHover,u.treeItemClickable,f&&u.treeItemSelected),iconBefore:(0,N.jsx)(Ff,{}),onClick:()=>{l({type:`catalog`,item:e,isCategory:!1})},actions:(0,N.jsx)(`div`,{className:A(u.itemActions,`item-actions`),children:!e.ismanaged&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(K_,{appearance:`subtle`,size:`small`,icon:(0,N.jsx)(Wd,{}),onClick:t=>{t.stopPropagation(),n(e)},title:`Add Category`}),(0,N.jsx)(K_,{appearance:`subtle`,size:`small`,icon:(0,N.jsx)(tf,{}),onClick:t=>{t.stopPropagation(),r(e)},title:`Edit`}),(0,N.jsx)(K_,{appearance:`subtle`,size:`small`,icon:(0,N.jsx)(Ef,{}),onClick:t=>{t.stopPropagation(),i(e)},title:`Delete`})]})}),children:(0,N.jsxs)(`div`,{className:u.treeItemContent,children:[(0,N.jsx)(`span`,{className:u.itemName,children:e.displayname||e.name}),e.ismanaged&&(0,N.jsx)(ym,{appearance:`outline`,size:`small`,className:u.managedBadge,icon:(0,N.jsx)(of,{}),children:`Managed`})]})}),d.length>0&&(0,N.jsx)(JE,{children:d.map(e=>(0,N.jsx)(fU,{catalog:e,onEditCatalog:r,onDeleteCatalog:i,onCreateAssignment:a,onEditAssignment:o,onDeleteAssignment:s,selectedItem:c,onSelectItem:l},e.catalogid))})]})},fU=({catalog:e,onEditCatalog:t,onDeleteCatalog:n,onCreateAssignment:r,onEditAssignment:i,onDeleteAssignment:a,selectedItem:o,onSelectItem:s})=>{let c=lU(),{assignments:l,isFetching:u}=jI(e.catalogid),d=o?.type===`catalog`&&o.item.catalogid===e.catalogid;return(0,M.useEffect)(()=>{if(o?.type===`assignment`){let e=l.find(e=>e.catalogassignmentid===o.item.catalogassignmentid);e&&e!==o.item&&s({type:`assignment`,item:e})}},[l,o,s]),(0,N.jsxs)(iD,{itemType:l.length>0||u?`branch`:`leaf`,value:e.catalogid,children:[(0,N.jsx)(NE,{className:A(c.treeItem,c.treeItemHover,c.treeItemClickable,d&&c.treeItemSelected),iconBefore:(0,N.jsx)(If,{}),onClick:()=>{s({type:`catalog`,item:e,isCategory:!0})},actions:(0,N.jsx)(`div`,{className:A(c.itemActions,`item-actions`),children:!e.ismanaged&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(K_,{appearance:`subtle`,size:`small`,icon:(0,N.jsx)(Wd,{}),onClick:t=>{t.stopPropagation(),r(e)},title:`Add Assignment`}),(0,N.jsx)(K_,{appearance:`subtle`,size:`small`,icon:(0,N.jsx)(tf,{}),onClick:n=>{n.stopPropagation(),t(e)},title:`Edit`}),(0,N.jsx)(K_,{appearance:`subtle`,size:`small`,icon:(0,N.jsx)(Ef,{}),onClick:t=>{t.stopPropagation(),n(e)},title:`Delete`})]})}),children:(0,N.jsxs)(`div`,{className:c.treeItemContent,children:[(0,N.jsx)(`span`,{className:c.itemName,children:e.displayname||e.name}),e.ismanaged&&(0,N.jsx)(ym,{appearance:`outline`,size:`small`,className:c.managedBadge,icon:(0,N.jsx)(of,{}),children:`Managed`})]})}),(l.length>0||u)&&(0,N.jsxs)(JE,{children:[u&&(0,N.jsx)(iD,{itemType:`leaf`,value:`${e.catalogid}-loading`,children:(0,N.jsx)(NE,{children:(0,N.jsx)(Nb,{size:`tiny`,label:`Loading assignments...`})})}),l.map(t=>(0,N.jsx)(pU,{assignment:t,parentCatalog:e,onEditAssignment:i,onDeleteAssignment:a,selectedItem:o,onSelectItem:s},t.catalogassignmentid))]})]})},pU=({assignment:e,parentCatalog:t,onEditAssignment:n,onDeleteAssignment:r,selectedItem:i,onSelectItem:a})=>{let o=lU(),s=_I(e),c=gI(e),l=i?.type===`assignment`&&i.item.catalogassignmentid===e.catalogassignmentid;return(0,N.jsx)(iD,{itemType:`leaf`,value:e.catalogassignmentid,children:(0,N.jsx)(NE,{className:A(o.treeItem,o.treeItemHover,o.treeItemClickable,l&&o.treeItemSelected),iconBefore:s||(0,N.jsx)(zd,{}),onClick:()=>{a({type:`assignment`,item:e})},actions:(0,N.jsx)(`div`,{className:A(o.itemActions,`item-actions`),children:!e.ismanaged&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(K_,{appearance:`subtle`,size:`small`,icon:(0,N.jsx)(tf,{}),onClick:r=>{r.stopPropagation(),n(e,t)},title:`Edit`}),(0,N.jsx)(K_,{appearance:`subtle`,size:`small`,icon:(0,N.jsx)(Ef,{}),onClick:t=>{t.stopPropagation(),r(e)},title:`Delete`})]})}),children:(0,N.jsxs)(`div`,{className:o.treeItemContent,children:[(0,N.jsx)(`span`,{className:o.itemName,children:e.name||e[`_object_value@OData.Community.Display.V1.FormattedValue`]||`Unnamed Assignment`}),(0,N.jsx)(ym,{appearance:`tint`,size:`small`,className:o.typeBadge,children:c}),e.ismanaged&&(0,N.jsx)(ym,{appearance:`outline`,size:`small`,className:o.managedBadge,icon:(0,N.jsx)(of,{}),children:`Managed`})]})})})},mU={uniquename:``,name:``,displayname:``,description:``,_parentcatalogid_value:``,_publisherid_value:``},hU=({open:e,mode:t,catalog:n,parentCatalog:r,onClose:i})=>{let a=Nj(),o=EI(),s=DI(),{catalogs:c}=wI(),l=OF(),{solutions:u,isFetching:d}=FF(),{selectedSolutionId:f,selectedPublisherId:p,setSelectedSolutionId:m,setSelectedCatalogId:h,setPendingBusinessEventCatalogId:g,setSelectedPublisherId:_}=U(),{appsettings:v}=kF(),y=t===`edit`,b=t===`create-category`,x=t===`create-root`,S=(0,M.useRef)(!1),C=(0,M.useRef)(!1),w=(0,M.useRef)(null),[T,E]=(0,M.useState)(mU),[D,O]=(0,M.useState)({name:``,displayname:``,description:``}),[ee,te]=(0,M.useState)(null),ne=v?.defaultPublisherId??``,[re,ie]=(0,M.useState)(!(ne||p)),k=(0,M.useMemo)(()=>u.filter(e=>!e.ismanaged),[u]),ae=(0,M.useMemo)(()=>k.map(e=>({id:e.solutionid,displayText:`${e.friendlyname} (${e.uniquename})`,image:(0,N.jsx)(Zf,{})})).sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)),[k]),oe=k.find(e=>e.solutionid===ee),se=T._publisherid_value,ce=e=>l.publishers?.find(t=>t.publisherid===e)?.customizationprefix||``,le=(0,M.useMemo)(()=>!y||!n?._parentcatalogid_value?null:c.find(e=>e.catalogid===n._parentcatalogid_value)??null,[c,n,y]),ue=(0,M.useMemo)(()=>!se||!l.publishers?``:l.publishers.find(e=>e.publisherid===se)?.customizationprefix||``,[se,l.publishers]),de=(0,M.useMemo)(()=>{if(!se||!l.publishers)return``;let e=l.publishers.find(e=>e.publisherid===se);return e?`${e.friendlyname} (${e.customizationprefix})`:``},[se,l.publishers]),fe=(0,M.useMemo)(()=>{if(!T.uniquename)return``;if(ue&&T.uniquename.startsWith(`${ue}_`))return T.uniquename.slice(ue.length+1);let e=T.uniquename.split(`_`);return e.length>1?e.slice(1).join(`_`):e[0]??``},[T.uniquename,ue]),pe=(0,M.useMemo)(()=>b&&r?r.displayname||r.name:y&&n?._parentcatalogid_value&&(le?.displayname||le?.name||n[`_parentcatalogid_value@OData.Community.Display.V1.FormattedValue`])||``,[n,le,b,y,r]),me=!!(pe&&(b||y&&n?._parentcatalogid_value));(0,M.useEffect)(()=>{if(!e){S.current=!1,C.current=!1;return}if(S.current)return;if(S.current=!0,y&&n){O({name:n.name||``,displayname:n.displayname||``,description:n.description||``});return}let t=ne||p||``;E({...mU,_parentcatalogid_value:b&&r?.catalogid||``,_publisherid_value:t}),C.current=!!ne,_(t||null),te(k.some(e=>e.solutionid===f)?f:null),y||setTimeout(()=>{w.current?.focus()},100)},[e,y,b,n,r,ne,k,p,f,_]),(0,M.useEffect)(()=>{!e||y||C.current||!ne||(C.current=!0,_(ne),E(e=>e._publisherid_value?e:{...e,_publisherid_value:ne}))},[ne,y,e,_]),(0,M.useEffect)(()=>{!e||y||ie(!se)},[se,y,e]);let he=(0,M.useMemo)(()=>{if(y){if(!D.name?.trim()||!D.displayname?.trim())return{isValid:!1,message:`Name and Display Name are required.`}}else{if(!se)return{isValid:!1,message:`Publisher is required.`};if(!T.uniquename?.trim()||!T.name?.trim()||!T.displayname?.trim())return{isValid:!1,message:`Unique Name, Name, and Display Name are required.`};if(MF(c,T.uniquename,e=>e.uniquename))return{isValid:!1,message:`Catalog with unique name '${T.uniquename}' already exists.`}}return{isValid:!0,message:``}},[se,c,y,T,D]),ge=async()=>{try{if(y&&n)await s.mutateAsync({current:n,next:D});else{let e={uniquename:T.uniquename,name:T.name,displayname:T.displayname,description:T.description,_parentcatalogid_value:T._parentcatalogid_value},t=await o.mutateAsync({next:e,solutionId:ee,solutionUniqueName:oe?.uniquename});if(t.created&&t.id){let e=r?._parentcatalogid_value||r?.catalogid||t.id;m(ee),h(e),g(t.id)}}i()}catch(e){console.error(`Error saving catalog:`,e)}},_e=o.isPending||s.isPending,ve=y?`Edit Catalog`:x?`Create Root Catalog`:`Create Category`;return(0,N.jsx)(kx,{open:e,onOpenChange:(e,t)=>!t.open&&i(),children:(0,N.jsx)(uS,{className:a.dialogSurface,children:(0,N.jsxs)(Gx,{children:[(0,N.jsx)(eS,{children:ve}),(0,N.jsxs)(gS,{className:a.dialogContentColumn,children:[me&&(0,N.jsxs)(`div`,{className:a.dialogSection,children:[(0,N.jsx)($b,{size:200,weight:`semibold`,children:`Parent Catalog`}),(0,N.jsx)($b,{children:pe})]}),!y&&(0,N.jsxs)(`div`,{className:a.formGrid,children:[!re&&se&&(0,N.jsx)(`div`,{className:a.formSection,onClick:()=>ie(!0),style:{cursor:`pointer`},children:(0,N.jsxs)(`span`,{className:a.fieldLabelClickable,children:[(0,N.jsx)(lp,{}),(0,N.jsx)(`span`,{className:a.semiBoldLabel,children:`Publisher:`}),(0,N.jsx)($b,{children:de})]})}),(re||!se)&&(0,N.jsx)(`div`,{className:A(a.formSection,a.twoColumn),children:(0,N.jsx)(V,{label:se?(0,N.jsxs)(`span`,{className:a.fieldLabelClickable,onClick:()=>ie(!1),style:{cursor:`pointer`},children:[(0,N.jsx)(op,{}),(0,N.jsx)(`span`,{className:a.semiBoldLabel,children:`Publisher`})]}):`Publisher`,required:!0,children:l.isFetching?(0,N.jsx)(H,{value:`Loading publishers...`,readOnly:!0,appearance:`filled-darker`}):(0,N.jsx)(CF,{items:l.publishers.map(e=>({id:e.publisherid,displayText:`${e.friendlyname} (${e.customizationprefix})`})).sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)),initialValue:se||``,onSelect:e=>{let t=e||``,n=ce(t);_(t||null),E(e=>{let r=ce(e._publisherid_value),i=r&&e.uniquename.startsWith(`${r}_`)?e.uniquename.slice(r.length+1):e.uniquename;return{...e,_publisherid_value:t,uniquename:n?i?`${n}_${i}`:``:i}}),t&&ie(!1)}})})})]}),!y&&ue!==``&&(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:a.semiBoldLabel,children:[`Unique Name `,(0,N.jsx)(`span`,{className:a.required,children:`*`})]}),children:(0,N.jsx)(H,{ref:w,appearance:`filled-darker`,contentBefore:(0,N.jsx)($b,{size:400,children:`${ue}_`}),value:fe,onChange:(e,t)=>{let n=t.value;E(e=>{let t=ue&&e.uniquename.startsWith(`${ue}_`)?e.uniquename.slice(ue.length+1):e.uniquename;return n===t?e:{...e,uniquename:`${ue}_${n}`,name:e.name.trim()===``||e.name===t?n:e.name,displayname:e.displayname.trim()===``||e.displayname===t?n:e.displayname,description:e.description.trim()===``||e.description===t?n:e.description}})}})}),y&&n&&(0,N.jsx)(`div`,{className:a.formGrid,children:(0,N.jsx)(`div`,{className:a.formSection,children:(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:a.fieldLabelStandard,children:[(0,N.jsx)(`span`,{className:a.semiBoldLabel,children:`Unique Name`}),(0,N.jsx)(Yf,{})]}),children:(0,N.jsx)(H,{appearance:`filled-darker`,value:n.uniquename||``,readOnly:!0,className:a.disabledInput})})})}),(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:a.semiBoldLabel,children:[`Name `,(0,N.jsx)(`span`,{className:a.required,children:`*`})]}),children:(0,N.jsx)(H,{appearance:`filled-darker`,value:y?D.name:T.name,onChange:(e,t)=>{y?O(e=>({...e,name:t.value})):E(e=>({...e,name:t.value}))}})}),(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:a.semiBoldLabel,children:[`Display Name `,(0,N.jsx)(`span`,{className:a.required,children:`*`})]}),children:(0,N.jsx)(H,{appearance:`filled-darker`,value:y?D.displayname:T.displayname,onChange:(e,t)=>{y?O(e=>({...e,displayname:t.value})):E(e=>({...e,displayname:t.value}))}})}),(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:a.semiBoldLabel,children:`Description`}),children:(0,N.jsx)(cx,{appearance:`filled-darker`,value:y?D.description:T.description,onChange:(e,t)=>{y?O(e=>({...e,description:t.value})):E(e=>({...e,description:t.value}))},rows:3})}),!y&&(0,N.jsxs)(`div`,{className:a.dialogSection,children:[(0,N.jsx)(gv,{weight:`semibold`,size:`large`,children:`Add to Solution (Optional)`}),(0,N.jsx)($b,{className:a.hintText,children:`Select an unmanaged solution to add the Business Event to. If no solution is selected, it will be created in the default solution.`}),(0,N.jsx)(Ry,{}),d?(0,N.jsx)(Nb,{size:`small`,label:`Loading solutions...`}):(0,N.jsx)(CF,{items:ae,initialValue:ee??void 0,onSelect:e=>te(e)})]}),!he.isValid&&(0,N.jsx)($b,{size:200,className:a.required,children:he.message})]}),(0,N.jsxs)(zx,{children:[(0,N.jsx)(K_,{appearance:`secondary`,onClick:i,disabled:_e,children:`Cancel`}),(0,N.jsx)(K_,{appearance:`primary`,onClick:ge,disabled:!he.isValid||_e,icon:_e?(0,N.jsx)(Nb,{size:`tiny`}):void 0,children:_e?`Saving...`:`Save`})]})]})})})},gU=()=>{let e=U(e=>e.connection),t=U(e=>e.isLoadingConnection),n=U(e=>e.instanceId),{data:r,status:i,error:a,isFetching:o}=XP({queryKey:pF.workflows(e?.id??``,n),queryFn:async()=>window.dataverseAPI.queryData(`workflows?$select=workflowid,name`),enabled:!!e&&!t,staleTime:1/0});return{entities:r?.value||[],status:i,error:a,isFetching:o}},_U=({open:e,assignment:t,parentCatalog:n,onClose:r})=>{let i=Nj(),a=II(),o=LI(),{allCatalogAssignments:s}=AI(),{catalogs:c}=CI(),{customapis:l,isFetching:u}=_F(),{entities:d,isFetching:f}=NF(),{entities:p,isFetching:m}=gU(),{solutions:h,isFetching:g}=FF(),{selectedSolutionId:_}=U(),v=n?c.find(e=>e.catalogid===n._parentcatalogid_value):null,y=!!t,[b,x]=(0,M.useState)(yI),[S,C]=(0,M.useState)({name:``}),[w,T]=(0,M.useState)(`customapi`),[E,D]=(0,M.useState)(null),O=(0,M.useMemo)(()=>h.filter(e=>!e.ismanaged),[h]),ee=(0,M.useMemo)(()=>O.map(e=>({id:e.solutionid,displayText:`${e.friendlyname} (${e.uniquename})`,image:(0,N.jsx)(Zf,{})})).sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)),[O]),te=O.find(e=>e.solutionid===E);(0,M.useEffect)(()=>{e&&(y&&t?(C({name:t.name||``}),T(hI(t)||`customapi`)):(x({...yI,_catalogid_value:n?.catalogid||``}),T(`customapi`),D(O.some(e=>e.solutionid===_)?_:null)))},[e,y,t,n,O,_]);let ne=(0,M.useMemo)(()=>{if(y){if(!S.name?.trim())return{isValid:!1,message:`Name is required.`}}else{if(!b.name?.trim())return{isValid:!1,message:`Name is required.`};if(!w)return{isValid:!1,message:`Assignment type is required.`};if(!b._object_value)return{isValid:!1,message:`Please select an object to assign.`};if(s.some(e=>e._catalogid_value===b._catalogid_value&&e._object_value===b._object_value&&hI(e)===w))return{isValid:!1,message:`This ${pI[w]??`object`} is already assigned to the selected catalog.`}}return{isValid:!0,message:``}},[s,y,b,S,w]),re=async()=>{try{y&&t?await o.mutateAsync({current:t,next:S}):await a.mutateAsync({next:b,objectEntityName:w,solutionUniqueName:te?.uniquename}),r()}catch(e){console.error(`Error saving assignment:`,e)}},ie=e=>mI[e]||null,k=(0,M.useMemo)(()=>w===`customapi`?l.filter(e=>!e.ismanaged).map(e=>({id:e.customapiid,displayText:`${e.displayname||e.name} (${e.uniquename})`,image:(0,N.jsx)(sf,{})})).sort((e,t)=>e.displayText.localeCompare(t.displayText)):w===`entity`?d.map(e=>({id:e.entityid,displayText:e.logicalname||``})).sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)):w===`workflow`?p.map(e=>({id:e.workflowid,displayText:e.name||``})).sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)):[],[l,d,w,p]),ae=a.isPending||o.isPending,oe=y?`Edit Assignment`:`Create Assignment`,se=e=>{if(!e){x(e=>({...e,_object_value:``}));return}let t=``;if(w===`customapi`){let n=l.find(t=>t.customapiid===e);t=n?.displayname||n?.name||``}else w===`entity`?t=d.find(t=>t.entityid===e)?.logicalname||``:w===`workflow`&&(t=p.find(t=>t.workflowid===e)?.name||``);x(n=>({...n,_object_value:e,name:n.name?.trim()?n.name:t}))};return(0,N.jsx)(kx,{open:e,onOpenChange:(e,t)=>!t.open&&r(),children:(0,N.jsx)(uS,{className:i.dialogSurface,children:(0,N.jsxs)(Gx,{children:[(0,N.jsx)(eS,{children:oe}),(0,N.jsxs)(gS,{className:i.dialogContentColumn,children:[n&&(0,N.jsx)(`div`,{className:i.dialogSection,children:(0,N.jsxs)(`div`,{className:i.catalogPathContainer,children:[(0,N.jsx)(Ff,{}),(0,N.jsx)($b,{children:v?.displayname||v?.name||`Unknown Catalog`}),(0,N.jsx)(xf,{}),(0,N.jsx)(If,{}),(0,N.jsx)($b,{children:n.displayname||n.name})]})}),(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:i.semiBoldLabel,children:[`Name `,(0,N.jsx)(`span`,{className:i.required,children:`*`})]}),children:(0,N.jsx)(H,{appearance:`filled-darker`,value:y?S.name:b.name,onChange:(e,t)=>{y?C(e=>({...e,name:t.value})):x(e=>({...e,name:t.value}))},placeholder:`Assignment name`})}),!y&&(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:i.semiBoldLabel,children:[`Type `,(0,N.jsx)(`span`,{className:i.required,children:`*`})]}),children:(0,N.jsx)(ky,{appearance:`filled-darker`,placeholder:`Select type`,selectedOptions:w?[w]:[],value:w?pI[w]||w:``,onOptionSelect:(e,t)=>{T(t.optionValue||`customapi`),x(e=>({...e,_object_value:``}))},children:Object.entries(pI).map(([e,t])=>(0,N.jsx)(fy,{value:e,text:t,children:(0,N.jsxs)(`span`,{className:i.optionLabel,children:[ie(e),t]})},e))})}),!y&&w&&(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:i.semiBoldLabel,children:[`Object `,(0,N.jsx)(`span`,{className:i.required,children:`*`})]}),children:w===`customapi`?u?(0,N.jsx)(H,{value:`Loading Custom APIs...`,readOnly:!0,appearance:`filled-darker`}):k.length===0?(0,N.jsx)($b,{className:i.hintTextItalic,children:`No unmanaged Custom APIs available`}):(0,N.jsx)(CF,{items:k,initialValue:b._object_value,onSelect:se}):w===`entity`?f?(0,N.jsx)(H,{value:`Loading Tables...`,readOnly:!0,appearance:`filled-darker`}):k.length===0?(0,N.jsx)($b,{className:i.hintTextItalic,children:`No Tables available`}):(0,N.jsx)(CF,{items:k,initialValue:b._object_value,onSelect:se}):w===`workflow`?m?(0,N.jsx)(H,{value:`Loading Custom Process Actions...`,readOnly:!0,appearance:`filled-darker`}):k.length===0?(0,N.jsx)($b,{className:i.hintTextItalic,children:`No Custom Process Actions available`}):(0,N.jsx)(CF,{items:k,initialValue:b._object_value,onSelect:se}):null}),!y&&(0,N.jsxs)(`div`,{className:i.dialogSection,children:[(0,N.jsx)(gv,{weight:`semibold`,size:`large`,children:`Add to Solution (Optional)`}),(0,N.jsx)($b,{className:i.hintText,children:`Select an unmanaged solution to add the assignment to. If no solution is selected, it will be created in the default solution.`}),(0,N.jsx)(Ry,{}),g?(0,N.jsx)(Nb,{size:`small`,label:`Loading solutions...`}):(0,N.jsx)(CF,{items:ee,initialValue:E??void 0,onSelect:e=>D(e)})]}),y&&t&&(0,N.jsxs)(`div`,{className:i.dialogSection,children:[(0,N.jsx)($b,{size:200,weight:`semibold`,children:`Assigned Object`}),(0,N.jsx)($b,{children:t[`_object_value@OData.Community.Display.V1.FormattedValue`]||t.objectname||`Unknown`}),(0,N.jsxs)($b,{size:200,className:i.hintText,children:[`Type: `,gI(t)]})]}),!ne.isValid&&(0,N.jsx)($b,{size:200,className:i.required,children:ne.message})]}),(0,N.jsxs)(zx,{children:[(0,N.jsx)(K_,{appearance:`secondary`,onClick:r,disabled:ae,children:`Cancel`}),(0,N.jsx)(K_,{appearance:`primary`,onClick:re,disabled:!ne.isValid||ae,icon:ae?(0,N.jsx)(Nb,{size:`tiny`}):void 0,children:ae?`Saving...`:`Save`})]})]})})})},vU=Br({panel:{flex:1,minWidth:`300px`,padding:z.spacingVerticalM,borderLeft:`1px solid ${z.colorNeutralStroke2}`,overflowY:`auto`},header:{display:`flex`,alignItems:`center`,gap:z.spacingHorizontalS,marginBottom:z.spacingVerticalM,paddingBottom:z.spacingVerticalS,borderBottom:`1px solid ${z.colorNeutralStroke2}`},headerIcon:{fontSize:`20px`,color:z.colorBrandForeground1},headerText:{fontWeight:z.fontWeightSemibold,fontSize:z.fontSizeBase400},typeBadge:{marginLeft:`auto`},emptyState:{display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,height:`100%`,color:z.colorNeutralForeground3,textAlign:`center`,padding:z.spacingVerticalXXL}}),yU=({selectedItem:e})=>{let t=vU();return e?e.type===`catalog`?(0,N.jsx)(`div`,{className:t.panel,children:(0,N.jsx)(bU,{catalog:e.item,isCategory:e.isCategory})}):(0,N.jsx)(`div`,{className:t.panel,children:(0,N.jsx)(xU,{assignment:e.item})}):(0,N.jsx)(`div`,{className:t.panel,children:(0,N.jsxs)(`div`,{className:t.emptyState,children:[(0,N.jsx)($b,{size:300,children:`Select an item from the tree`}),(0,N.jsx)($b,{size:200,children:`to view its details`})]})})},bU=({catalog:e,isCategory:t})=>{let n=Nj(),r=vU();return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`div`,{className:r.header,children:[t?(0,N.jsx)(If,{className:r.headerIcon}):(0,N.jsx)(Ff,{className:r.headerIcon}),(0,N.jsx)(`span`,{className:r.headerText,children:t?`Category`:`Root Catalog`}),e.ismanaged&&(0,N.jsx)(ym,{appearance:`outline`,size:`small`,className:r.typeBadge,icon:(0,N.jsx)(Yf,{}),children:`Managed`})]}),(0,N.jsxs)(`div`,{className:n.formGrid,children:[(0,N.jsx)(`div`,{className:n.formSection,children:(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:n.fieldLabelStandard,children:[`Unique Name `,(0,N.jsx)(Yf,{})]}),children:(0,N.jsx)(H,{value:e.uniquename||``,readOnly:!0,appearance:`filled-darker`})})}),(0,N.jsx)(`div`,{className:n.formSection,children:(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:n.fieldLabelStandard,children:`Name`}),children:(0,N.jsx)(H,{value:e.name||``,readOnly:!0,appearance:`filled-darker`})})}),(0,N.jsx)(`div`,{className:n.formSection,children:(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:n.fieldLabelStandard,children:`Display Name`}),children:(0,N.jsx)(H,{value:e.displayname||``,readOnly:!0,appearance:`filled-darker`})})}),(0,N.jsx)(`div`,{className:A(n.formSection,n.fullWidth),children:(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:n.fieldLabelStandard,children:`Description`}),children:(0,N.jsx)(cx,{value:e.description||``,readOnly:!0,spellCheck:!1,appearance:`filled-darker`,resize:`vertical`,rows:2})})}),t&&e[`_parentcatalogid_value@OData.Community.Display.V1.FormattedValue`]&&(0,N.jsx)(`div`,{className:n.formSection,children:(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:n.fieldLabelStandard,children:`Parent Catalog`}),children:(0,N.jsx)(H,{value:e[`_parentcatalogid_value@OData.Community.Display.V1.FormattedValue`]||``,readOnly:!0,appearance:`filled-darker`})})}),(0,N.jsx)(`div`,{className:n.formSection,children:(0,N.jsx)(`div`,{className:n.switchColumn,children:(0,N.jsx)(k_,{content:e.ismanaged?`True`:`False`,relationship:`description`,positioning:`above-end`,children:(0,N.jsx)(`div`,{className:n.switchRow,children:(0,N.jsx)(qb,{checked:e.ismanaged,"aria-disabled":!0,tabIndex:-1,className:n.readOnlySwitch,label:(0,N.jsxs)(`span`,{className:n.readOnlySwitchLabel,children:[(0,N.jsx)(`span`,{children:`Is Managed`}),(0,N.jsx)(Yf,{})]}),labelPosition:`before`})})})})})]})]})},xU=({assignment:e})=>{let t=Nj(),n=vU(),{currentBusinessEventSelectionInit:r,setPendingManagedFilterHandoff:i,setSelectedNavItem:a,setSelectedCustomApiId:o}=U(),s=_I(e),c=gI(e),l=hI(e)===`customapi`;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`div`,{className:n.header,children:[s,(0,N.jsx)(`span`,{className:n.headerText,children:`Assignment`}),l&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(K_,{appearance:`subtle`,size:`small`,icon:(0,N.jsx)(Rd,{}),onClick:()=>{e._object_value&&(i({target:`customapi`,value:r}),o(e._object_value),a(`customapi`))},children:`View Custom API`}),(0,N.jsx)(K_,{appearance:`subtle`,size:`small`,icon:(0,N.jsx)(Yd,{}),onClick:()=>{e._object_value&&(i({target:`customapi`,value:r}),o(e._object_value),a(`customapitester`))},children:`Test Custom API`})]}),(0,N.jsx)(ym,{appearance:`tint`,size:`small`,className:n.typeBadge,children:c}),e.ismanaged&&(0,N.jsx)(ym,{appearance:`outline`,size:`small`,icon:(0,N.jsx)(Yf,{}),children:`Managed`})]}),(0,N.jsxs)(`div`,{className:t.formGrid,children:[(0,N.jsx)(`div`,{className:t.formSection,children:(0,N.jsx)(V,{label:(0,N.jsx)(`span`,{className:t.fieldLabelStandard,children:`Name`}),children:(0,N.jsx)(H,{value:e.name||``,readOnly:!0,appearance:`filled-darker`})})}),(0,N.jsx)(`div`,{className:t.formSection,children:(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:t.fieldLabelStandard,children:[`Object Type `,(0,N.jsx)(Yf,{})]}),children:(0,N.jsx)(H,{contentBefore:s,value:c,readOnly:!0,appearance:`filled-darker`})})}),(0,N.jsx)(`div`,{className:A(t.formSection,t.fullWidth),children:(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:t.fieldLabelStandard,children:[`Object `,(0,N.jsx)(Yf,{})]}),children:(0,N.jsx)(H,{value:e[`_object_value@OData.Community.Display.V1.FormattedValue`]||e._object_value||``,readOnly:!0,appearance:`filled-darker`})})}),(0,N.jsx)(`div`,{className:t.formSection,children:(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:t.fieldLabelStandard,children:[`Catalog `,(0,N.jsx)(Yf,{})]}),children:(0,N.jsx)(H,{value:e[`_catalogid_value@OData.Community.Display.V1.FormattedValue`]||``,readOnly:!0,appearance:`filled-darker`})})}),(0,N.jsx)(`div`,{className:t.formSection,children:(0,N.jsx)(V,{label:(0,N.jsxs)(`span`,{className:t.fieldLabelStandard,children:[`Status `,(0,N.jsx)(Yf,{})]}),children:(0,N.jsx)(H,{value:vI[e.statecode]||``,readOnly:!0,appearance:`filled-darker`})})}),(0,N.jsx)(`div`,{className:t.formSection,children:(0,N.jsx)(`div`,{className:t.switchColumn,children:(0,N.jsx)(k_,{content:e.ismanaged?`True`:`False`,relationship:`description`,positioning:`above-end`,children:(0,N.jsx)(`div`,{className:t.switchRow,children:(0,N.jsx)(qb,{checked:e.ismanaged,"aria-disabled":!0,tabIndex:-1,className:t.readOnlySwitch,label:(0,N.jsxs)(`span`,{className:t.readOnlySwitchLabel,children:[(0,N.jsx)(`span`,{children:`Is Managed`}),(0,N.jsx)(Yf,{})]}),labelPosition:`before`})})})})})]})]})},SU=Br({contentLayout:{display:`flex`,flexDirection:`row`,gap:z.spacingHorizontalL,minHeight:`400px`,padding:z.spacingVerticalM},treeSection:{flex:`0 0 400px`,minWidth:`400px`,maxWidth:`500px`,overflowX:`hidden`,overflowY:`auto`},detailsSection:{flex:1,minWidth:`300px`,overflowY:`auto`}}),CU=()=>{let e=Nj(),t=SU(),{selectedCatalogId:n,selectedNavItem:r,pendingBusinessEventAssignmentId:i,pendingBusinessEventCatalogId:a,setGlobalMessage:o,setPendingBusinessEventAssignmentId:s,setPendingBusinessEventCatalogId:c,setSelectedCatalogId:l,clearGlobalMessage:u}=U(),{catalogs:d,isFetching:f}=CI(),{catalogAssignments:p,isFetching:m}=AI(),[h,g]=(0,M.useState)(null),[_,v]=(0,M.useState)(!1),[y,b]=(0,M.useState)(`create-root`),[x,S]=(0,M.useState)(null),[C,w]=(0,M.useState)(null),[T,E]=(0,M.useState)(!1),[D,O]=(0,M.useState)(null),[ee,te]=(0,M.useState)(null),ne=d.find(e=>e.catalogid===n);(0,M.useEffect)(()=>{g(null)},[n]),(0,M.useEffect)(()=>{if(h?.type===`catalog`){let e=d.find(e=>e.catalogid===h.item.catalogid);e&&e!==h.item&&g({type:`catalog`,item:e,isCategory:h.isCategory})}},[d,h]),(0,M.useEffect)(()=>{if(r!==`businessevent`||!a||f)return;let e=d.find(e=>e.catalogid===a);if(!e)return;let t=e._parentcatalogid_value||e.catalogid;if(n!==t){l(t);return}g({type:`catalog`,item:e,isCategory:!!e._parentcatalogid_value}),c(null)},[d,f,a,n,r,c,l]),(0,M.useEffect)(()=>{if(r!==`businessevent`||!i||f||m)return;let e=p.find(e=>e.catalogassignmentid===i);if(!e)return;let t=d.find(t=>t.catalogid===e._catalogid_value);if(!t)return;let a=t._parentcatalogid_value||t.catalogid;if(n!==a){l(a);return}g({type:`assignment`,item:e}),s(null)},[p,d,m,f,i,n,r,s,l]);let re=()=>{b(`create-root`),S(null),w(null),v(!0)},ie=e=>{b(`create-category`),S(null),w(e),v(!0)},k=e=>{b(`edit`),S(e),w(null),v(!0)},ae=()=>{v(!1),S(null),w(null)},oe=e=>{O(null),te(e),E(!0)},se=(e,t)=>{O(e),te(t),E(!0)},ce=()=>{E(!1),O(null),te(null)};(0,M.useEffect)(()=>{r===`businessevent`&&!n?o(`no-root-catalog-selected`,{intent:`info`,title:`No Root Catalog selected. Select a Root Catalog below or create a new one.`,dismissable:!1,action:{label:`New Root Catalog`,icon:(0,N.jsx)(Gd,{}),onClick:re}}):u(`no-root-catalog-selected`)},[n,r,o,u]),(0,M.useEffect)(()=>()=>{u(`businessevent-coming-soon`),u(`no-root-catalog-selected`)},[u]);let le=(0,N.jsx)(`div`,{className:e.headerActionGroup,children:(0,N.jsx)(K_,{appearance:`secondary`,icon:(0,N.jsx)(Gd,{}),onClick:re,className:e.headerActionButton,children:`New Root Catalog`})});return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(sU,{}),(0,N.jsxs)(MT,{className:e.card,children:[(0,N.jsx)(RT,{header:(0,N.jsx)(`div`,{className:e.cardHeaderContainer,children:(0,N.jsxs)(`div`,{className:e.cardHeaderRow,children:[(0,N.jsx)(`h3`,{children:`Business Events`}),(0,N.jsx)(`div`,{className:e.headerBadgeGroup,children:ne&&(0,N.jsxs)($b,{size:200,children:[`Selected: `,ne.displayname||ne.name]})})]})}),description:(0,N.jsx)(`div`,{className:e.flexColumn,children:(0,N.jsxs)(`div`,{className:e.hintTextItalic,children:[(0,N.jsx)(Ff,{}),(0,N.jsx)(`span`,{children:`Root Catalog`}),(0,N.jsx)(If,{}),(0,N.jsx)(`span`,{children:`Category`}),(0,N.jsx)(zd,{}),(0,N.jsx)(`span`,{children:`Assignment`})]})}),action:le}),(0,N.jsx)(Ry,{}),n?(0,N.jsxs)(`div`,{className:t.contentLayout,children:[(0,N.jsx)(`div`,{className:t.treeSection,children:(0,N.jsx)(uU,{onCreateCategory:ie,onEditCatalog:k,onCreateAssignment:oe,onEditAssignment:se,selectedItem:h,onSelectItem:g})}),(0,N.jsx)(`div`,{className:t.detailsSection,children:(0,N.jsx)(yU,{selectedItem:h})})]}):(0,N.jsxs)(`div`,{className:e.infoBox,children:[(0,N.jsx)(`p`,{children:`No Root Catalog selected`}),(0,N.jsx)(`p`,{children:`Select a Root Catalog below or create a new one.`})]})]}),(0,N.jsx)(hU,{open:_,mode:y,catalog:x,parentCatalog:C,onClose:ae}),(0,N.jsx)(_U,{open:T,assignment:D,parentCatalog:ee,onClose:ce})]})},wU=``+new URL(`logo_customapi-B2Ddz3mz.png`,document.currentScript&&document.currentScript.tagName.toUpperCase()===`SCRIPT`&&document.currentScript.src||document.baseURI).href,TU=()=>{let e=Nj(),{addLog:t}=U(),n=OF(),[r,i]=(0,M.useState)(null),[a,o]=(0,M.useState)(!1),s=kF(),{mutateAsync:c}=AF();(0,M.useEffect)(()=>{s.status===`success`&&s.appsettings&&i(s.appsettings)},[s.status,s.appsettings]);let l=()=>s.appsettings&&r&&(r.defaultPublisherId!==s.appsettings.defaultPublisherId||r.requestParameterDefaultName!==s.appsettings.requestParameterDefaultName||r.responsePropertyDefaultName!==s.appsettings.responsePropertyDefaultName||r.customApiSelectionInit!==s.appsettings.customApiSelectionInit||r.businessEventSelectionInit!==s.appsettings.businessEventSelectionInit||r.showDebug!==s.appsettings.showDebug||r.showCustomApiDetailsTreeView!==s.appsettings.showCustomApiDetailsTreeView),u=async()=>{o(!0);try{if(s.status!==`success`||!s.appsettings)return;await c({current:s.appsettings,next:r}),t(`Settings saved successfully`,`success`)}catch{t(`Failed to save some settings`,`error`)}finally{o(!1)}},d=()=>{i(s.appsettings),t(`Changes discarded`,`info`)};if(s.status===`pending`)return(0,N.jsxs)(MT,{className:e.card,children:[(0,N.jsx)(RT,{header:(0,N.jsx)(`h3`,{children:`⚙️ Settings`})}),(0,N.jsx)(Ry,{}),(0,N.jsxs)(`div`,{className:e.loadingContainer,children:[(0,N.jsx)(Nb,{size:`small`}),(0,N.jsx)(`span`,{children:`Loading settings...`})]})]});if(s.status===`error`)return(0,N.jsxs)(MT,{className:e.card,children:[(0,N.jsx)(RT,{header:(0,N.jsx)(`h3`,{children:`⚙️ Settings`})}),(0,N.jsx)(Ry,{}),(0,N.jsxs)(`div`,{className:e.errorContainer,children:[(0,N.jsx)(`p`,{className:e.errorTitle,children:`❌ Error loading settings`}),(0,N.jsx)(`p`,{className:e.errorMessage,children:s.error?.message})]})]});if(r)return(0,N.jsxs)(MT,{className:e.card,children:[(0,N.jsx)(RT,{header:(0,N.jsx)(`h3`,{children:`⚙️ Settings`}),description:`Configure default values and preferences`,action:(0,N.jsxs)(`div`,{className:e.flexRow,children:[(0,N.jsx)(K_,{appearance:`primary`,icon:a?(0,N.jsx)(Nb,{size:`tiny`}):(0,N.jsx)(Hf,{}),disabled:!l()||a,onClick:u,children:a?`Saving...`:`Save`}),(0,N.jsx)(K_,{appearance:`secondary`,icon:(0,N.jsx)($f,{}),disabled:!l()||a,onClick:d,children:`Reset`})]})}),(0,N.jsx)(Ry,{}),(0,N.jsxs)(`div`,{className:e.formGrid,children:[(0,N.jsx)(`div`,{className:e.formSection,children:(0,N.jsxs)(V,{label:`Default Publisher ID`,hint:`Default publisher for new Custom APIs (Connection scoped)`,children:[n.isFetching&&(0,N.jsx)(H,{value:`Loading publishers...`,readOnly:!0,appearance:`filled-darker`}),n.error&&(0,N.jsx)(H,{value:`Error loading publishers: ${n.error.message}`,readOnly:!0,appearance:`filled-darker`}),!n.isFetching&&n.publishers&&(0,N.jsx)(CF,{items:n.publishers.map(e=>({id:e.publisherid,displayText:`${e.friendlyname} (${e.customizationprefix})`||``})).sort((e,t)=>(e.displayText||``).localeCompare(t.displayText||``)),initialValue:s.appsettings?.defaultPublisherId??void 0,onSelect:e=>i({...r,defaultPublisherId:e})})]})}),(0,N.jsx)(`div`,{className:e.formSection,children:(0,N.jsx)(V,{label:`Request Parameter Default Name`,hint:`Template for new request parameter names`,children:(0,N.jsx)(H,{appearance:`filled-darker`,value:r.requestParameterDefaultName??void 0,onChange:e=>i({...r,requestParameterDefaultName:e.target.value||null})})})}),(0,N.jsx)(`div`,{className:e.formSection,children:(0,N.jsx)(V,{label:`Response Property Default Name`,hint:`Template for new response property names`,children:(0,N.jsx)(H,{appearance:`filled-darker`,value:r.responsePropertyDefaultName??void 0,onChange:e=>i({...r,responsePropertyDefaultName:e.target.value||null})})})}),(0,N.jsx)(`div`,{className:e.formSection,children:(0,N.jsx)(V,{label:`Custom API Selection Init`,hint:`Initial managed-state filter for the Custom API selector`,children:(0,N.jsx)(DF,{value:r.customApiSelectionInit,onChange:e=>i({...r,customApiSelectionInit:e})})})}),(0,N.jsx)(`div`,{className:e.formSection,children:(0,N.jsx)(V,{label:`Business Event Selection Init`,hint:`Initial managed-state filter for the Business Event selector`,children:(0,N.jsx)(DF,{value:r.businessEventSelectionInit,onChange:e=>i({...r,businessEventSelectionInit:e})})})}),(0,N.jsx)(`div`,{className:e.formSection,children:(0,N.jsx)(V,{label:`Show Debug Tools`,hint:`Toggle visibility of debug features within the app`,children:(0,N.jsx)(qb,{checked:r.showDebug,onChange:(e,t)=>i({...r,showDebug:t.checked}),label:r.showDebug?`Enabled`:`Disabled`})})}),(0,N.jsx)(`div`,{className:e.formSection,children:(0,N.jsx)(V,{label:`Show Custom API Details in Tree View`,hint:`Display Custom API details as a compact tree structure by default`,children:(0,N.jsx)(qb,{checked:r.showCustomApiDetailsTreeView,onChange:(e,t)=>i({...r,showCustomApiDetailsTreeView:t.checked}),label:r.showCustomApiDetailsTreeView?`Enabled`:`Disabled`})})})]})]})},EU=()=>{let e=Nj(),t=U(e=>e),{theme:n}=U();return(0,N.jsx)(N.Fragment,{children:(0,N.jsxs)(MT,{className:e.card,children:[(0,N.jsx)(RT,{header:`Zustand Store`}),(0,N.jsx)(qz,{value:t,displayDataTypes:!1,collapsed:2,style:n===`light`?Jz:Yz,shortenTextAfterLength:0})]})})},DU=({isCollapsed:e=!1})=>{let t=Nj(),{theme:n,toggleTheme:r}=U(),i=n===`dark`,a=(0,N.jsx)(qb,{checked:i,onChange:r,label:e?void 0:i?`Dark Mode`:`Light Mode`,labelPosition:`after`});return(0,N.jsxs)(`div`,{className:A(t.themeSwitcher,e&&t.themeSwitcherCollapsed),children:[i?(0,N.jsx)(Uf,{}):(0,N.jsx)(Wf,{}),e?(0,N.jsx)(k_,{content:i?`Dark Mode`:`Light Mode`,relationship:`label`,children:a}):a]})},OU=()=>{let e=Nj(),{appsettings:t}=kF(),{globalMessages:n,setGlobalMessage:r,clearGlobalMessage:i,setSelectedNavItem:a,connection:o}=U();(0,M.useEffect)(()=>{t&&t.defaultPublisherId===null?r(`publisher-warning`,{intent:`info`,title:`Default Publisher not set!`,body:`You can set a default publisher in the Settings page to simplify Custom API creation.`,action:{label:`Settings`,icon:(0,N.jsx)(zf,{}),onClick:()=>a(`settings`)},dismissable:!0}):i(`publisher-warning`)},[t?.defaultPublisherId,r,i,a]);let s=Object.entries(n);return(0,N.jsxs)(`div`,{className:e.messageBarContainer,children:[s.length>0&&(0,N.jsx)(MO,{className:e.messageBarGroup,children:s.map(([e,t])=>(0,N.jsxs)(iO,{intent:t.intent,children:[(0,N.jsxs)(EO,{children:[(0,N.jsx)(uO,{children:t.title}),t.body]}),(0,N.jsx)(yO,{containerAction:t.dismissable===!1?void 0:(0,N.jsx)(K_,{appearance:`transparent`,"aria-label":`Dismiss`,icon:(0,N.jsx)(jf,{}),onClick:()=>i(e)}),children:t.action&&(0,N.jsx)(K_,{icon:t.action.icon,onClick:t.action.onClick,children:t.action.label})})]},e))}),(0,N.jsx)(k_,{content:o?(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`div`,{children:o.name}),(0,N.jsx)(`div`,{children:o.url}),(0,N.jsx)(`div`,{children:o.environment})]}):`No active connection`,relationship:`description`,positioning:`below`,children:(0,N.jsx)(OD,{className:e.connectionTag,appearance:`outline`,icon:o?(0,N.jsx)(Bd,{}):(0,N.jsx)(Vd,{}),children:o?o.name:`Not connected`})})]})};function kU(){let e=Nj(),{instanceId:t,addLog:n,selectedNavItem:r,setSelectedNavItem:i,clearGlobalMessage:a}=U(),{appsettings:o}=kF(),[s,c]=(0,M.useState)(!1),l=[{value:`customapi`,icon:(0,N.jsx)(Of,{className:e.navIcon}),iconSelected:(0,N.jsx)(Df,{className:e.navIconSelected}),label:`Custom APIs`},{value:`customapitester`,icon:(0,N.jsx)(df,{className:e.navIcon}),iconSelected:(0,N.jsx)(uf,{className:e.navIconSelected}),label:`Custom API Tester`},{value:`businessevent`,icon:(0,N.jsx)(af,{className:e.navIcon}),iconSelected:(0,N.jsx)(rf,{className:e.navIconSelected}),label:`Business Events`},{value:`settings`,icon:(0,N.jsx)(Bf,{className:e.navIcon}),iconSelected:(0,N.jsx)(zf,{className:e.navIconSelected}),label:`Settings`},{value:`logs`,icon:(0,N.jsx)(Tf,{className:e.navIcon}),iconSelected:(0,N.jsx)(wf,{className:e.navIconSelected}),label:`Logs`},{value:`debug`,icon:(0,N.jsx)(Jd,{className:e.navIcon}),iconSelected:(0,N.jsx)(qd,{className:e.navIconSelected}),label:`Debug`,hidden:!o?.showDebug}];(0,M.useEffect)(()=>{if(r===`about`){i(`customapi`);return}!o?.showDebug&&r===`debug`&&i(`customapi`)},[o?.showDebug,r,i]),(0,M.useEffect)(()=>{a(`businessevent-coming-soon`)},[r,a]),wN(),CN(),(0,M.useEffect)(()=>{n(`Dataverse Custom API Manager initialized (Instance: ${t})`,`success`)},[n,t]);let u=(e,t)=>{i(t.value)},d=()=>{switch(r){case`customapi`:return(0,N.jsx)(N.Fragment,{children:(0,N.jsx)(Qz,{})});case`customapitester`:return(0,N.jsx)(oU,{});case`businessevent`:return(0,N.jsx)(CU,{});case`logs`:return(0,N.jsx)(SN,{});case`settings`:return(0,N.jsx)(TU,{});case`debug`:return o?.showDebug?(0,N.jsx)(EU,{}):null;default:return null}},f=(e,t)=>{let n=t?e.iconSelected:e.icon;return s?(0,N.jsx)(k_,{content:e.label,relationship:`label`,children:(0,N.jsx)(`span`,{onClick:t=>{u(t,{value:e.value})},children:n})}):(0,N.jsx)(`span`,{onClick:t=>{u(t,{value:e.value})},children:n})};return(0,N.jsxs)(`div`,{className:e.container,children:[(0,N.jsxs)(`div`,{className:A(e.nav,s&&e.navCollapsed),children:[(0,N.jsxs)(lj,{tabbable:!0,selectedValue:r,onNavItemSelect:u,type:`inline`,open:!0,className:A(e.nav,s&&e.navCollapsed),children:[(0,N.jsx)(mj,{children:(0,N.jsx)(k_,{content:s?`Expand menu`:`Collapse menu`,relationship:`label`,children:(0,N.jsx)(wj,{onClick:()=>c(e=>!e)})})}),(0,N.jsxs)(yj,{children:[(0,N.jsx)(jj,{icon:(0,N.jsx)(nb,{alt:`Custom API & Events Manager`,src:wU,height:40,width:40}),as:`a`,children:s?null:`Custom API & Events Manager`}),l.filter(e=>!e.hidden).map(e=>{let t=r===e.value;return(0,N.jsx)(rj,{value:e.value,icon:f(e,t),children:s?null:e.label},e.value)})]})]}),(0,N.jsx)(DU,{isCollapsed:s})]}),(0,N.jsxs)(`div`,{className:e.content,children:[(0,N.jsx)(`div`,{className:e.sticky,children:(0,N.jsx)(OU,{})}),d()]})]})}function AU(e){let t=String(e),n=t.length-1;return NG.context.id+(n?String.fromCharCode(96+n):``)+t}function jU(e){NG.context=e}function MU(){return{...NG.context,id:NG.getNextContextId(),count:0}}function NU(e,t){let n=JG,r=GG,i=e.length===0,a=t===void 0?r:t,o=i?UG:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>VU(()=>dW(o)));GG=o,JG=null;try{return iW(s,!0)}finally{JG=n,GG=r}}function PU(e,t){t=t?Object.assign({},RG,t):RG;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0};return[QU.bind(n),e=>(typeof e==`function`&&(e=X&&X.running&&X.sources.has(n)?e(n.tValue):e(n.value)),$U(n,e))]}function FU(e,t,n){let r=nW(e,t,!0,VG);KG&&X&&X.running?YG.push(r):eW(r)}function IU(e,t,n){let r=nW(e,t,!1,VG);KG&&X&&X.running?YG.push(r):eW(r)}function LU(e,t,n){BG=cW;let r=nW(e,t,!1,VG),i=eK&&XU(eK);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),XG?XG.push(r):eW(r)}function G(e,t,n){n=n?Object.assign({},RG,n):RG;let r=nW(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,KG&&X&&X.running?(r.tState=VG,YG.push(r)):eW(r),QU.bind(r)}function RU(e){return e&&typeof e==`object`&&`then`in e}function zU(e,t,n){let r,i,a;r=!0,i=e,a={};let o=null,s=WG,c=null,l=!1,u=!1,d=`initialValue`in a,f=typeof r==`function`&&G(r),p=new Set,[m,h]=(a.storage||PU)(a.initialValue),[g,_]=PU(void 0),[v,y]=PU(void 0,{equals:!1}),[b,x]=PU(d?`ready`:`unresolved`);NG.context&&(c=NG.getNextContextId(),a.ssrLoadFrom===`initial`?s=a.initialValue:NG.load&&NG.has(c)&&(s=NG.load(c)));function S(e,t,n,r){return o===e&&(o=null,r!==void 0&&(d=!0),(e===s||t===s)&&a.onHydrated&&queueMicrotask(()=>a.onHydrated(r,{value:t})),s=WG,X&&e&&l?(X.promises.delete(e),l=!1,iW(()=>{X.running=!0,C(t,n)},!1)):C(t,n)),t}function C(e,t){iW(()=>{t===void 0&&h(()=>e),x(t===void 0?d?`ready`:`unresolved`:`errored`),_(t);for(let e of p.keys())e.decrement();p.clear()},!1)}function w(){let e=eK&&XU(eK),t=m(),n=g();if(n!==void 0&&!o)throw n;return JG&&!JG.user&&e&&FU(()=>{v(),o&&(e.resolved&&X&&l?X.promises.add(o):p.has(e)||(e.increment(),p.add(e)))}),t}function T(e=!0){if(e!==!1&&u)return;u=!1;let t=f?f():r;if(l=X&&X.running,t==null||t===!1){S(o,VU(m));return}X&&o&&X.promises.delete(o);let n,a=s===WG?VU(()=>{try{return i(t,{value:m(),refetching:e})}catch(e){n=e}}):s;if(n!==void 0){S(o,void 0,pW(n),t);return}else if(!RU(a))return S(o,a,void 0,t),a;return o=a,`v`in a?(a.s===1?S(o,a.v,void 0,t):S(o,void 0,pW(a.v),t),a):(u=!0,queueMicrotask(()=>u=!1),iW(()=>{x(d?`refreshing`:`pending`),y()},!1),a.then(e=>S(a,e,void 0,t),e=>S(a,void 0,pW(e),t)))}Object.defineProperties(w,{state:{get:()=>b()},error:{get:()=>g()},loading:{get(){let e=b();return e===`pending`||e===`refreshing`}},latest:{get(){if(!d)return w();let e=g();if(e&&!o)throw e;return m()}}});let E=GG;return f?FU(()=>(E=GG,T(!1))):T(!1),[w,{refetch:e=>KU(E,()=>T(e)),mutate:h}]}function BU(e){return iW(e,!1)}function VU(e){if(!qG&&JG===null)return e();let t=JG;JG=null;try{return qG?qG.untrack(e):e()}finally{JG=t}}function HU(e,t,n){let r=Array.isArray(e),i,a=n&&n.defer;return n=>{let o;if(r){o=Array(e.length);for(let t=0;t<e.length;t++)o[t]=e[t]()}else o=e();if(a)return a=!1,n;let s=VU(()=>t(o,i,n));return i=o,s}}function UU(e){LU(()=>VU(e))}function WU(e){return GG===null||(GG.cleanups===null?GG.cleanups=[e]:GG.cleanups.push(e)),e}function GU(){return GG}function KU(e,t){let n=GG,r=JG;GG=e,JG=null;try{return iW(t,!0)}catch(e){hW(e)}finally{GG=n,JG=r}}function qU(e){if(X&&X.running)return e(),X.done;let t=JG,n=GG;return Promise.resolve().then(()=>{JG=t,GG=n;let r;return(KG||eK)&&(r=X||={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0},r.done||=new Promise(e=>r.resolve=e),r.running=!0),iW(e,!1),JG=GG=null,r?r.done:void 0})}function JU(){return[QG,qU]}function YU(e,t){let n=Symbol(`context`);return{id:n,Provider:_W(n),defaultValue:e}}function XU(e){let t;return GG&&GG.context&&(t=GG.context[e.id])!==void 0?t:e.defaultValue}function ZU(e){let t=G(e),n=G(()=>gW(t()));return n.toArray=()=>{let e=n();return Array.isArray(e)?e:e==null?[]:[e]},n}function QU(){let e=X&&X.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===VG)eW(this);else{let e=YG;YG=null,iW(()=>lW(this),!1),YG=e}if(JG){let e=this.observers?this.observers.length:0;JG.sources?(JG.sources.push(this),JG.sourceSlots.push(e)):(JG.sources=[this],JG.sourceSlots=[e]),this.observers?(this.observers.push(JG),this.observerSlots.push(JG.sources.length-1)):(this.observers=[JG],this.observerSlots=[JG.sources.length-1])}return e&&X.sources.has(this)?this.tValue:this.value}function $U(e,t,n){let r=X&&X.running&&X.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(X){let r=X.running;(r||!n&&X.sources.has(e))&&(X.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&iW(()=>{for(let t=0;t<e.observers.length;t+=1){let n=e.observers[t],r=X&&X.running;r&&X.disposed.has(n)||((r?!n.tState:!n.state)&&(n.pure?YG.push(n):XG.push(n),n.observers&&uW(n)),r?n.tState=VG:n.state=VG)}if(YG.length>1e6)throw YG=[],Error()},!1)}return t}function eW(e){if(!e.fn)return;dW(e);let t=ZG;tW(e,X&&X.running&&X.sources.has(e)?e.tValue:e.value,t),X&&!X.running&&X.sources.has(e)&&queueMicrotask(()=>{iW(()=>{X&&(X.running=!0),JG=GG=e,tW(e,e.tValue,t),JG=GG=null},!1)})}function tW(e,t,n){let r,i=GG,a=JG;JG=GG=e;try{r=e.fn(t)}catch(t){return e.pure&&(X&&X.running?(e.tState=VG,e.tOwned&&e.tOwned.forEach(dW),e.tOwned=void 0):(e.state=VG,e.owned&&e.owned.forEach(dW),e.owned=null)),e.updatedAt=n+1,hW(t)}finally{JG=a,GG=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&`observers`in e?$U(e,r,!0):X&&X.running&&e.pure?(X.sources.has(e)||(e.value=r),X.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function nW(e,t,n,r=VG,i){let a={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:GG,context:GG?GG.context:null,pure:n};if(X&&X.running&&(a.state=0,a.tState=r),GG===null||GG!==UG&&(X&&X.running&&GG.pure?GG.tOwned?GG.tOwned.push(a):GG.tOwned=[a]:GG.owned?GG.owned.push(a):GG.owned=[a]),qG&&a.fn){let e=a.fn,[t,n]=PU(void 0,{equals:!1}),r=qG.factory(e,n);WU(()=>r.dispose());let i,o=()=>qU(n).then(()=>{i&&=(i.dispose(),void 0)});a.fn=n=>(t(),X&&X.running?(i||=qG.factory(e,o),i.track(n)):r.track(n))}return a}function rW(e){let t=X&&X.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===HG)return lW(e);if(e.suspense&&VU(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<ZG);){if(t&&X.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e)}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let t=e,i=n[r+1];for(;(t=t.owner)&&t!==i;)if(X.disposed.has(t))return}if((t?e.tState:e.state)===VG)eW(e);else if((t?e.tState:e.state)===HG){let t=YG;YG=null,iW(()=>lW(e,n[0]),!1),YG=t}}}function iW(e,t){if(YG)return e();let n=!1;t||(YG=[]),XG?n=!0:XG=[],ZG++;try{let t=e();return aW(n),t}catch(e){n||(XG=null),YG=null,hW(e)}}function aW(e){if(YG&&=(KG&&X&&X.running?sW(YG):oW(YG),null),e)return;let t;if(X){if(!X.promises.size&&!X.queue.size){let e=X.sources,n=X.disposed;XG.push.apply(XG,X.effects),t=X.resolve;for(let e of XG)`tState`in e&&(e.state=e.tState),delete e.tState;X=null,iW(()=>{for(let e of n)dW(e);for(let t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;e<n;e++)dW(t.owned[e]);t.tOwned&&(t.owned=t.tOwned),delete t.tValue,delete t.tOwned,t.tState=0}$G(!1)},!1)}else if(X.running){X.running=!1,X.effects.push.apply(X.effects,XG),XG=null,$G(!0);return}}let n=XG;XG=null,n.length&&iW(()=>BG(n),!1),t&&t()}function oW(e){for(let t=0;t<e.length;t++)rW(e[t])}function sW(e){for(let t=0;t<e.length;t++){let n=e[t],r=X.queue;r.has(n)||(r.add(n),KG(()=>{r.delete(n),iW(()=>{X.running=!0,rW(n)},!1),X&&(X.running=!1)}))}}function cW(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:rW(r)}if(NG.context){if(NG.count){NG.effects||=[],NG.effects.push(...e.slice(0,n));return}jU()}for(NG.effects&&(NG.done||!NG.count)&&(e=[...NG.effects,...e],n+=NG.effects.length,delete NG.effects),t=0;t<n;t++)rW(e[t])}function lW(e,t){let n=X&&X.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){let i=e.sources[r];if(i.sources){let e=n?i.tState:i.state;e===VG?i!==t&&(!i.updatedAt||i.updatedAt<ZG)&&rW(i):e===HG&&lW(i,t)}}}function uW(e){let t=X&&X.running;for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=HG:r.state=HG,r.pure?YG.push(r):XG.push(r),r.observers&&uW(r))}}function dW(e){let t;if(e.sources)for(;e.sources.length;){let t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){let e=r.pop(),i=t.observerSlots.pop();n<r.length&&(e.sourceSlots[i]=n,r[n]=e,t.observerSlots[n]=i)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)dW(e.tOwned[t]);delete e.tOwned}if(X&&X.running&&e.pure)fW(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)dW(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}X&&X.running?e.tState=0:e.state=0}function fW(e,t){if(t||(e.tState=0,X.disposed.add(e)),e.owned)for(let t=0;t<e.owned.length;t++)fW(e.owned[t])}function pW(e){return e instanceof Error?e:Error(typeof e==`string`?e:`Unknown error`,{cause:e})}function mW(e,t,n){try{for(let n of t)n(e)}catch(e){hW(e,n&&n.owner||null)}}function hW(e,t=GG){let n=zG&&t&&t.context&&t.context[zG],r=pW(e);if(!n)throw r;XG?XG.push({fn(){mW(r,n,t)},state:VG}):mW(r,n,t)}function gW(e){if(typeof e==`function`&&!e.length)return gW(e());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=gW(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function _W(e,t){return function(t){let n;return IU(()=>n=VU(()=>(GG.context={...GG.context,[e]:t.value},ZU(()=>t.children))),void 0),n}}function vW(e){for(let t=0;t<e.length;t++)e[t]()}function yW(e,t,n={}){let r=[],i=[],a=[],o=0,s=t.length>1?[]:null;return WU(()=>vW(a)),()=>{let c=e()||[],l=c.length,u,d;return c[LG],VU(()=>{let e,t,p,m,h,g,_,v,y;if(l===0)o!==0&&(vW(a),a=[],r=[],i=[],o=0,s&&=[]),n.fallback&&(r=[tK],i[0]=NU(e=>(a[0]=e,n.fallback())),o=1);else if(o===0){for(i=Array(l),d=0;d<l;d++)r[d]=c[d],i[d]=NU(f);o=l}else{for(p=Array(l),m=Array(l),s&&(h=Array(l)),g=0,_=Math.min(o,l);g<_&&r[g]===c[g];g++);for(_=o-1,v=l-1;_>=g&&v>=g&&r[_]===c[v];_--,v--)p[v]=i[_],m[v]=a[_],s&&(h[v]=s[_]);for(e=new Map,t=Array(v+1),d=v;d>=g;d--)y=c[d],u=e.get(y),t[d]=u===void 0?-1:u,e.set(y,d);for(u=g;u<=_;u++)y=r[u],d=e.get(y),d!==void 0&&d!==-1?(p[d]=i[u],m[d]=a[u],s&&(h[d]=s[u]),d=t[d],e.set(y,d)):a[u]();for(d=g;d<l;d++)d in p?(i[d]=p[d],a[d]=m[d],s&&(s[d]=h[d],s[d](d))):i[d]=NU(f);i=i.slice(0,o=l),r=c.slice(0)}return i});function f(e){if(a[d]=e,s){let[e,n]=PU(d);return s[d]=n,t(c[d],e)}return t(c[d])}}}function bW(e,t,n={}){let r=[],i=[],a=[],o=[],s=0,c;return WU(()=>vW(a)),()=>{let l=e()||[],u=l.length;return l[LG],VU(()=>{if(u===0)return s!==0&&(vW(a),a=[],r=[],i=[],s=0,o=[]),n.fallback&&(r=[tK],i[0]=NU(e=>(a[0]=e,n.fallback())),s=1),i;for(r[0]===tK&&(a[0](),a=[],r=[],i=[],s=0),c=0;c<u;c++)c<r.length&&r[c]!==l[c]?o[c](()=>l[c]):c>=r.length&&(i[c]=NU(d));for(;c<r.length;c++)a[c]();return s=o.length=a.length=u,r=l.slice(0),i=i.slice(0,s)});function d(e){a[c]=e;let[n,r]=PU(l[c]);return o[c]=r,t(n,c)}}}function K(e,t){if(nK&&NG.context){let n=NG.context;jU(MU());let r=VU(()=>e(t||{}));return jU(n),r}return VU(()=>e(t||{}))}function xW(){return!0}function SW(e){return(e=typeof e==`function`?e():e)?e:{}}function CW(){for(let e=0,t=this.length;e<t;++e){let t=this[e]();if(t!==void 0)return t}}function wW(...e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];t||=!!r&&FG in r,e[n]=typeof r==`function`?(t=!0,G(r)):r}if(IG&&t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){let r=SW(e[n])[t];if(r!==void 0)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in SW(e[n]))return!0;return!1},keys(){let t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(SW(e[n])));return[...new Set(t)]}},rK);let n={},r=Object.create(null);for(let t=e.length-1;t>=0;t--){let i=e[t];if(!i)continue;let a=Object.getOwnPropertyNames(i);for(let e=a.length-1;e>=0;e--){let t=a[e];if(t===`__proto__`||t===`constructor`)continue;let o=Object.getOwnPropertyDescriptor(i,t);if(!r[t])r[t]=o.get?{enumerable:!0,configurable:!0,get:CW.bind(n[t]=[o.get.bind(i)])}:o.value===void 0?void 0:o;else{let e=n[t];e&&(o.get?e.push(o.get.bind(i)):o.value!==void 0&&e.push(()=>o.value))}}}let i={},a=Object.keys(r);for(let e=a.length-1;e>=0;e--){let t=a[e],n=r[t];n&&n.get?Object.defineProperty(i,t,n):i[t]=n?n.value:void 0}return i}function TW(e,...t){let n=t.length;if(IG&&FG in e){let r=n>1?t.flat():t[0],i=t.map(t=>new Proxy({get(n){return t.includes(n)?e[n]:void 0},has(n){return t.includes(n)&&n in e},keys(){return t.filter(t=>t in e)}},rK));return i.push(new Proxy({get(t){return r.includes(t)?void 0:e[t]},has(t){return r.includes(t)?!1:t in e},keys(){return Object.keys(e).filter(e=>!r.includes(e))}},rK)),i}let r=[];for(let e=0;e<=n;e++)r[e]={};for(let i of Object.getOwnPropertyNames(e)){let a=n;for(let e=0;e<t.length;e++)if(t[e].includes(i)){a=e;break}let o=Object.getOwnPropertyDescriptor(e,i);!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable?r[a][i]=o.value:Object.defineProperty(r[a],i,o)}return r}function EW(e){let t,n,r=r=>{let i=NG.context;if(i){let[r,a]=PU();NG.count||=0,NG.count++,(n||=e()).then(e=>{!NG.done&&jU(i),NG.count--,a(()=>e.default),jU()}),t=r}else if(!t){let[r]=zU(()=>(n||=e()).then(e=>e.default));t=r}let a;return G(()=>(a=t())?VU(()=>{if(!i||NG.done)return a(r);let e=NG.context;jU(i);let t=a(r);return jU(e),t}):``)};return r.preload=()=>n||((n=e()).then(e=>t=()=>e.default),n),r}function DW(){return NG.context?NG.getNextContextId():`cl-${iK++}`}function OW(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return G(yW(()=>e.each,e.children,t||void 0))}function kW(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return G(bW(()=>e.each,e.children,t||void 0))}function AW(e){let t=e.keyed,n=G(()=>e.when,void 0,void 0),r=t?n:G(n,void 0,{equals:(e,t)=>!e==!t});return G(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?VU(()=>a(t?i:()=>{if(!VU(r))throw aK(`Show`);return n()})):a}return e.fallback},void 0,void 0)}function jW(e){let t=ZU(()=>e.children),n=G(()=>{let e=t(),n=Array.isArray(e)?e:[e],r=()=>void 0;for(let e=0;e<n.length;e++){let t=e,i=n[e],a=r,o=G(()=>a()?void 0:i.when,void 0,void 0),s=i.keyed?o:G(o,void 0,{equals:(e,t)=>!e==!t});r=()=>a()||(s()?[t,o,i]:void 0)}return r});return G(()=>{let t=n()();if(!t)return e.fallback;let[r,i,a]=t,o=a.children;return typeof o==`function`&&o.length>0?VU(()=>o(a.keyed?i():()=>{if(VU(n)()?.[0]!==r)throw aK(`Match`);return i()})):o},void 0,void 0)}function MW(e){return e}function NW(e,t){let n=lK[e];return typeof n==`object`?n[t]?n.$:void 0:n}function PW(e,t,n){let r=n.length,i=t.length,a=r,o=0,s=0,c=t[i-1].nextSibling,l=null;for(;o<i||s<a;){if(t[o]===n[s]){o++,s++;continue}for(;t[i-1]===n[a-1];)i--,a--;if(i===o){let t=a<r?s?n[s-1].nextSibling:n[a-s]:c;for(;s<a;)e.insertBefore(n[s++],t)}else if(a===s)for(;o<i;)(!l||!l.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[a-1]&&n[s]===t[i-1]){let r=t[--i].nextSibling;e.insertBefore(n[s++],t[o++].nextSibling),e.insertBefore(n[--a],r),t[i]=n[a]}else{if(!l){l=new Map;let e=s;for(;e<a;)l.set(n[e],e++)}let r=l.get(t[o]);if(r!=null)if(s<r&&r<a){let c=o,u=1,d;for(;++c<i&&c<a&&!((d=l.get(t[c]))==null||d!==r+u);)u++;if(u>r-s){let i=t[o];for(;s<r;)e.insertBefore(n[s++],i)}else e.replaceChild(n[s++],t[o++])}else o++;else t[o++].remove()}}}function FW(e,t,n,r={}){let i;return NU(r=>{i=r,t===document?e():Y(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=``}}function IW(e,t,n,r){let i,a=()=>{let t=r?document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`template`):document.createElement(`template`);return t.innerHTML=e,n?t.content.firstChild.firstChild:r?t.firstChild:t.content.firstChild},o=t?()=>VU(()=>document.importNode(i||=a(),!0)):()=>(i||=a()).cloneNode(!0);return o.cloneNode=o,o}function LW(e,t=window.document){let n=t[mK]||(t[mK]=new Set);for(let r=0,i=e.length;r<i;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,$W))}}function RW(e=window.document){if(e[mK]){for(let t of e[mK].keys())e.removeEventListener(t,$W);delete e[mK]}}function q(e,t,n){YW(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function zW(e,t,n,r){YW(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function BW(e,t,n){YW(e)||(n?e.setAttribute(t,``):e.removeAttribute(t))}function J(e,t){YW(e)||(t==null?e.removeAttribute(`class`):e.className=t)}function VW(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){let r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n,typeof n!=`function`&&n)}function HW(e,t,n={}){let r=Object.keys(t||{}),i=Object.keys(n),a,o;for(a=0,o=i.length;a<o;a++){let r=i[a];!r||r===`undefined`||t[r]||(ZW(e,r,!1),delete n[r])}for(a=0,o=r.length;a<o;a++){let i=r[a],o=!!t[i];!i||i===`undefined`||n[i]===o||!o||(ZW(e,i,!0),n[i]=o)}return n}function UW(e,t,n){if(!t)return n?q(e,`style`):t;let r=e.style;if(typeof t==`string`)return r.cssText=t;typeof n==`string`&&(r.cssText=n=void 0),n||={},t||={};let i,a;for(a in n)t[a]??r.removeProperty(a),delete n[a];for(a in t)i=t[a],i!==n[a]&&(r.setProperty(a,i),n[a]=i);return n}function WW(e,t,n){n==null?e.style.removeProperty(t):e.style.setProperty(t,n)}function GW(e,t={},n,r){let i={};return r||IU(()=>i.children=eG(e,t.children,i.children)),IU(()=>typeof t.ref==`function`&&KW(t.ref,e)),IU(()=>qW(e,t,n,!0,i,!0)),i}function KW(e,t,n){return VU(()=>e(t,n))}function Y(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return eG(e,t,r,n);IU(r=>eG(e,t(),r,n),r)}function qW(e,t,n,r,i={},a=!1){t||={};for(let r in i)if(!(r in t)){if(r===`children`)continue;i[r]=QW(e,r,null,i[r],n,a,t)}for(let r in t){if(r===`children`)continue;let o=t[r];i[r]=QW(e,r,o,i[r],n,a,t)}}function JW(e){let t,n;return!YW()||!(t=NG.registry.get(n=iG()))?e():(NG.completed&&NG.completed.add(t),NG.registry.delete(n),t)}function YW(e){return!!NG.context&&!NG.done&&(!e||e.isConnected)}function XW(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function ZW(e,t,n){let r=t.trim().split(/\s+/);for(let t=0,i=r.length;t<i;t++)e.classList.toggle(r[t],n)}function QW(e,t,n,r,i,a,o){let s,c,l,u,d;if(t===`style`)return UW(e,n,r);if(t===`classList`)return HW(e,n,r);if(n===r)return r;if(t===`ref`)a||n(e);else if(t.slice(0,3)===`on:`){let i=t.slice(3);r&&e.removeEventListener(i,r,typeof r!=`function`&&r),n&&e.addEventListener(i,n,typeof n!=`function`&&n)}else if(t.slice(0,10)===`oncapture:`){let i=t.slice(10);r&&e.removeEventListener(i,r,!0),n&&e.addEventListener(i,n,!0)}else if(t.slice(0,2)===`on`){let i=t.slice(2).toLowerCase(),a=uK.has(i);if(!a&&r){let t=Array.isArray(r)?r[0]:r;e.removeEventListener(i,t)}(a||n)&&(VW(e,i,n,a),a&&LW([i]))}else if(t.slice(0,5)===`attr:`)q(e,t.slice(5),n);else if(t.slice(0,5)===`bool:`)BW(e,t.slice(5),n);else if((d=t.slice(0,5)===`prop:`)||(l=sK.has(t))||!i&&((u=NW(t,e.tagName))||(c=oK.has(t)))||(s=e.nodeName.includes(`-`)||`is`in o)){if(d)t=t.slice(5),c=!0;else if(YW(e))return n;t===`class`||t===`className`?J(e,n):s&&!c&&!l?e[XW(t)]=n:e[u||t]=n}else{let r=i&&t.indexOf(`:`)>-1&&fK[t.split(`:`)[0]];r?zW(e,r,t,n):q(e,cK[t]||t,n)}return n}function $W(e){if(NG.registry&&NG.events&&NG.events.find(([t,n])=>n===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,a=t=>Object.defineProperty(e,`target`,{configurable:!0,value:t}),o=()=>{let r=t[n];if(r&&!t.disabled){let i=t[`${n}Data`];if(i===void 0?r.call(t,e):r.call(t,i,e),e.cancelBubble)return}return t.host&&typeof t.host!=`string`&&!t.host._$host&&t.contains(e.target)&&a(t.host),!0},s=()=>{for(;o()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,`currentTarget`,{configurable:!0,get(){return t||document}}),NG.registry&&!NG.done&&(NG.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();a(n[0]);for(let e=0;e<n.length-2&&(t=n[e],o());e++){if(t._$host){t=t._$host,s();break}if(t.parentNode===i)break}}else s();a(r)}function eG(e,t,n,r,i){let a=YW(e);if(a){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){let r=n[e];r.nodeType===8&&r.data.slice(0,2)===`!$`?r.remove():t.push(r)}n=t}for(;typeof n==`function`;)n=n();if(t===n)return n;let o=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,o===`string`||o===`number`){if(a||o===`number`&&(t=t.toString(),t===n))return n;if(s){let i=n[0];i&&i.nodeType===3?i.data!==t&&(i.data=t):i=document.createTextNode(t),n=rG(e,n,r,i)}else n=n!==``&&typeof n==`string`?e.firstChild.data=t:e.textContent=t}else if(t==null||o===`boolean`){if(a)return n;n=rG(e,n,r)}else if(o===`function`)return IU(()=>{let i=t();for(;typeof i==`function`;)i=i();n=eG(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(tG(o,t,n,i))return IU(()=>n=eG(e,o,n,r,!0)),()=>n;if(a){if(!o.length)return n;if(r===void 0)return n=[...e.childNodes];let t=o[0];if(t.parentNode!==e)return n;let i=[t];for(;(t=t.nextSibling)!==r;)i.push(t);return n=i}if(o.length===0){if(n=rG(e,n,r),s)return n}else c?n.length===0?nG(e,o,r):PW(e,n,o):(n&&rG(e),nG(e,o));n=o}else if(t.nodeType){if(a&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=rG(e,n,r,t);rG(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function tG(e,t,n,r){let i=!1;for(let a=0,o=t.length;a<o;a++){let o=t[a],s=n&&n[e.length],c;if(!(o==null||o===!0||o===!1))if((c=typeof o)==`object`&&o.nodeType)e.push(o);else if(Array.isArray(o))i=tG(e,o,s)||i;else if(c===`function`)if(r){for(;typeof o==`function`;)o=o();i=tG(e,Array.isArray(o)?o:[o],Array.isArray(s)?s:[s])||i}else e.push(o),i=!0;else{let t=String(o);s&&s.nodeType===3&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return i}function nG(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function rG(e,t,n,r){if(n===void 0)return e.textContent=``;let i=r||document.createTextNode(``);if(t.length){let r=!1;for(let a=t.length-1;a>=0;a--){let o=t[a];if(i!==o){let t=o.parentNode===e;!r&&!a?t?e.replaceChild(i,o):e.insertBefore(i,n):t&&o.remove()}else r=!0}}else e.insertBefore(i,n);return[i]}function iG(){return NG.getNextContextId()}function aG(e,t=!1,n=void 0){return t?document.createElementNS(hK,e):document.createElement(e,{is:n})}function oG(e){let{useShadow:t}=e,n=document.createTextNode(``),r=()=>e.mount||document.body,i=GU(),a,o=!!NG.context;return LU(()=>{o&&(GU().user=o=!1),a||=KU(i,()=>G(()=>e.children));let s=r();if(s instanceof HTMLHeadElement){let[e,t]=PU(!1);NU(t=>Y(s,()=>e()?t():a(),null)),WU(()=>t(!0))}else{let r=aG(e.isSVG?`g`:`div`,e.isSVG),i=t&&r.attachShadow?r.attachShadow({mode:`open`}):r;Object.defineProperty(r,`_$host`,{get(){return n.parentNode},configurable:!0}),Y(i,a),s.appendChild(r),e.ref&&e.ref(r),WU(()=>s.removeChild(r))}},void 0,{render:!o}),n}function sG(e,t){let n=G(e);return G(()=>{let e=n();switch(typeof e){case`function`:return VU(()=>e(t));case`string`:let n=dK.has(e),r=NG.context?JW():aG(e,n,VU(()=>t.is));return GW(r,t,n),r}})}function cG(e){let[,t]=TW(e,[`component`]);return sG(()=>e.component,t)}function lG(e){if(`values`in Object)return Object.values(e);let t=[];for(let n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function uG(e,t){let n=lG(e);if(`find`in n)return n.find(t);let r=n;for(let e=0;e<r.length;e++){let n=r[e];if(t(n))return n}}function dG(e,t){Object.entries(e).forEach(([e,n])=>t(n,e))}function fG(e,t){return e.indexOf(t)!==-1}function pG(e,t){for(let n=0;n<e.length;n++){let r=e[n];if(t(r))return r}}function mG(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}function hG(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}function gG(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}function _G(e){if(fG(e,`__proto__`))throw Error(`__proto__ is not allowed as a property`);if(fG(e,`prototype`))throw Error(`prototype is not allowed as a property`);if(fG(e,`constructor`))throw Error(`constructor is not allowed as a property`)}function vG(e,t,n,r=[]){if(!e)return;let i=rq(n);if(!TK(e)){dG(e,(e,a)=>vG(e,t,n,[...r,...UK(a,i)]));return}let[a,o]=e;o&&dG(o,(e,a)=>{vG(e,t,n,[...r,...UK(a,i)])}),t(a,r)}function yG(e,t,n,r){return vG(t,(t,n)=>{e=nq(e,n,e=>$K(e,t,r))},n),e}function bG(e,t,n){let r=rq(n);function i(t,n){let i=tq(e,UK(n,r));t.map(e=>UK(e,r)).forEach(t=>{e=nq(e,t,()=>i)})}if(TK(t)){let[n,a]=t;n.forEach(t=>{e=nq(e,UK(t,r),()=>e)}),a&&dG(a,i)}else dG(t,i);return e}function xG(e,t,n){let r=n.get(e);r?r.push(t):n.set(e,[t])}function SG(e,t){let n={},r;return e.forEach(e=>{if(e.length<=1)return;t||(e=e.map(e=>e.map(String)).sort((e,t)=>e.length-t.length));let[i,...a]=e;i.length===0?r=a.map(HK):n[HK(i)]=a.map(HK)}),r?wK(n)?[r]:[r,n]:wK(n)?void 0:n}function CG(e){return Object.prototype.toString.call(e).slice(8,-1)}function wG(e){return CG(e)===`Array`}function TG(e){if(CG(e)!==`Object`)return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function EG(e,t,n,r,i){let a={}.propertyIsEnumerable.call(r,t)?`enumerable`:`nonenumerable`;a===`enumerable`&&(e[t]=n),i&&a===`nonenumerable`&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function DG(e,t={}){if(wG(e))return e.map(e=>DG(e,t));if(!TG(e))return e;let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((n,r)=>{if(r===`__proto__`||wG(t.props)&&!t.props.includes(r))return n;let i=e[r];return EG(n,r,DG(i,t),e,t.nonenumerable),n},{})}function OG(e){return e.state.fetchStatus===`fetching`?`fetching`:e.getObserversCount()?e.state.fetchStatus===`paused`?`paused`:e.isStale()?`stale`:`fresh`:`inactive`}function kG(e,t){return`${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function AG({queryState:e,observerCount:t,isStale:n}){return e.fetchStatus===`fetching`?`blue`:t?e.fetchStatus===`paused`?`purple`:n?`yellow`:`green`:`gray`}function jG({status:e,isPaused:t}){return t?`purple`:e===`error`?`red`:e===`pending`?`yellow`:e===`success`?`green`:`gray`}function MG(e){return e===`fresh`?`green`:e===`stale`?`yellow`:e===`paused`?`purple`:e===`inactive`?`gray`:`blue`}var NG,PG,FG,IG,LG,RG,zG,BG,VG,HG,UG,WG,GG,X,KG,qG,JG,YG,XG,ZG,QG,$G,eK,tK,nK,rK,iK,aK,oK,sK,cK,lK,uK,dK,fK,pK,mK,hK,gK,_K,vK,yK,bK,xK,SK,CK,wK,TK,EK,DK,OK,kK,AK,jK,MK,NK,PK,FK,IK,LK,RK,zK,BK,VK,HK,UK,WK,GK,KK,qK,JK,YK,XK,ZK,QK,$K,eq,tq,nq,rq,iq,aq,oq,sq,cq,lq,uq,dq,fq,pq,mq,hq,gq,_q,vq,yq,bq,xq,Sq,Cq,wq=o((()=>{NG={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return AU(this.context.count)},getNextContextId(){return AU(this.context.count++)}},PG=(e,t)=>e===t,FG=Symbol(`solid-proxy`),IG=typeof Proxy==`function`,LG=Symbol(`solid-track`),RG={equals:PG},zG=null,BG=oW,VG=1,HG=2,UG={owned:null,cleanups:null,context:null,owner:null},WG={},GG=null,X=null,KG=null,qG=null,JG=null,YG=null,XG=null,ZG=0,[QG,$G]=PU(!1),tK=Symbol(`fallback`),nK=!1,rK={get(e,t,n){return t===FG?n:e.get(t)},has(e,t){return t===FG?!0:e.has(t)},set:xW,deleteProperty:xW,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:xW,deleteProperty:xW}},ownKeys(e){return e.keys()}},iK=0,aK=e=>`Stale read from <${e}>.`,oK=new Set([`className`,`value`,`readOnly`,`noValidate`,`formNoValidate`,`isMap`,`noModule`,`playsInline`,`adAuctionHeaders`,`allowFullscreen`,`browsingTopics`,`defaultChecked`,`defaultMuted`,`defaultSelected`,`disablePictureInPicture`,`disableRemotePlayback`,`preservesPitch`,`shadowRootClonable`,`shadowRootCustomElementRegistry`,`shadowRootDelegatesFocus`,`shadowRootSerializable`,`sharedStorageWritable`,...`allowfullscreen.async.alpha.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.hidden.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.adauctionheaders.browsingtopics.credentialless.defaultchecked.defaultmuted.defaultselected.defer.disablepictureinpicture.disableremoteplayback.preservespitch.shadowrootclonable.shadowrootcustomelementregistry.shadowrootdelegatesfocus.shadowrootserializable.sharedstoragewritable`.split(`.`)]),sK=new Set([`innerHTML`,`textContent`,`innerText`,`children`]),cK=Object.assign(Object.create(null),{className:`class`,htmlFor:`for`}),lK=Object.assign(Object.create(null),{class:`className`,novalidate:{$:`noValidate`,FORM:1},formnovalidate:{$:`formNoValidate`,BUTTON:1,INPUT:1},ismap:{$:`isMap`,IMG:1},nomodule:{$:`noModule`,SCRIPT:1},playsinline:{$:`playsInline`,VIDEO:1},readonly:{$:`readOnly`,INPUT:1,TEXTAREA:1},adauctionheaders:{$:`adAuctionHeaders`,IFRAME:1},allowfullscreen:{$:`allowFullscreen`,IFRAME:1},browsingtopics:{$:`browsingTopics`,IMG:1},defaultchecked:{$:`defaultChecked`,INPUT:1},defaultmuted:{$:`defaultMuted`,AUDIO:1,VIDEO:1},defaultselected:{$:`defaultSelected`,OPTION:1},disablepictureinpicture:{$:`disablePictureInPicture`,VIDEO:1},disableremoteplayback:{$:`disableRemotePlayback`,AUDIO:1,VIDEO:1},preservespitch:{$:`preservesPitch`,AUDIO:1,VIDEO:1},shadowrootclonable:{$:`shadowRootClonable`,TEMPLATE:1},shadowrootdelegatesfocus:{$:`shadowRootDelegatesFocus`,TEMPLATE:1},shadowrootserializable:{$:`shadowRootSerializable`,TEMPLATE:1},sharedstoragewritable:{$:`sharedStorageWritable`,IFRAME:1,IMG:1}}),uK=new Set([`beforeinput`,`click`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`]),dK=new Set(`altGlyph.altGlyphDef.altGlyphItem.animate.animateColor.animateMotion.animateTransform.circle.clipPath.color-profile.cursor.defs.desc.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.font.font-face.font-face-format.font-face-name.font-face-src.font-face-uri.foreignObject.g.glyph.glyphRef.hkern.image.line.linearGradient.marker.mask.metadata.missing-glyph.mpath.path.pattern.polygon.polyline.radialGradient.rect.set.stop.svg.switch.symbol.text.textPath.tref.tspan.use.view.vkern`.split(`.`)),fK={xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`},pK=e=>G(()=>e()),mK=`_$DX_DELEGATE`,hK=`http://www.w3.org/2000/svg`,gK=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},_K=class{constructor(e){this.generateIdentifier=e,this.kv=new gK}register(e,t){this.kv.getByValue(e)||(t||=this.generateIdentifier(e),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},vK=class extends _K{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t==`object`?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}},yK=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return uG(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},bK=e=>Object.prototype.toString.call(e).slice(8,-1),xK=e=>e===void 0,SK=e=>e===null,CK=e=>typeof e!=`object`||!e||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,wK=e=>CK(e)&&Object.keys(e).length===0,TK=e=>Array.isArray(e),EK=e=>typeof e==`string`,DK=e=>typeof e==`number`&&!isNaN(e),OK=e=>typeof e==`boolean`,kK=e=>e instanceof RegExp,AK=e=>e instanceof Map,jK=e=>e instanceof Set,MK=e=>bK(e)===`Symbol`,NK=e=>e instanceof Date&&!isNaN(e.valueOf()),PK=e=>e instanceof Error,FK=e=>typeof e==`number`&&isNaN(e),IK=e=>OK(e)||SK(e)||xK(e)||DK(e)||EK(e)||MK(e),LK=e=>typeof e==`bigint`,RK=e=>e===1/0||e===-1/0,zK=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),BK=e=>e instanceof URL,VK=e=>e.replace(/\\/g,`\\\\`).replace(/\./g,`\\.`),HK=e=>e.map(String).map(VK).join(`.`),UK=(e,t)=>{let n=[],r=``;for(let i=0;i<e.length;i++){let a=e.charAt(i);if(!t&&a===`\\`){let t=e.charAt(i+1);if(t===`\\`){r+=`\\`,i++;continue}else if(t!==`.`)throw Error(`invalid path`)}if(a===`\\`&&e.charAt(i+1)===`.`){r+=`.`,i++;continue}if(a===`.`){n.push(r),r=``;continue}r+=a}let i=r;return n.push(i),n},WK=[mG(xK,`undefined`,()=>null,()=>void 0),mG(LK,`bigint`,e=>e.toString(),e=>typeof BigInt<`u`?BigInt(e):e),mG(NK,`Date`,e=>e.toISOString(),e=>new Date(e)),mG(PK,`Error`,(e,t)=>{let n={name:e.name,message:e.message};return`cause`in e&&(n.cause=e.cause),t.allowedErrorProps.forEach(t=>{n[t]=e[t]}),n},(e,t)=>{let n=Error(e.message,{cause:e.cause});return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(t=>{n[t]=e[t]}),n}),mG(kK,`regexp`,e=>``+e,e=>{let t=e.slice(1,e.lastIndexOf(`/`)),n=e.slice(e.lastIndexOf(`/`)+1);return new RegExp(t,n)}),mG(jK,`set`,e=>[...e.values()],e=>new Set(e)),mG(AK,`map`,e=>[...e.entries()],e=>new Map(e)),mG(e=>FK(e)||RK(e),`number`,e=>FK(e)?`NaN`:e>0?`Infinity`:`-Infinity`,Number),mG(e=>e===0&&1/e==-1/0,`number`,()=>`-0`,Number),mG(BK,`URL`,e=>e.toString(),e=>new URL(e))],GK=hG((e,t)=>MK(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>[`symbol`,t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{let r=n.symbolRegistry.getValue(t[1]);if(!r)throw Error(`Trying to deserialize unknown symbol`);return r}),KK=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),qK=hG(zK,e=>[`typed-array`,e.constructor.name],e=>[...e],(e,t)=>{let n=KK[t[1]];if(!n)throw Error(`Trying to deserialize unknown typed array`);return new n(e)}),JK=hG(gG,(e,t)=>[`class`,t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};let r={};return n.forEach(t=>{r[t]=e[t]}),r},(e,t,n)=>{let r=n.classRegistry.getValue(t[1]);if(!r)throw Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),YK=hG((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>[`custom`,t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{let r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw Error(`Trying to deserialize unknown custom value`);return r.deserialize(e)}),XK=[JK,GK,YK,qK],ZK=(e,t)=>{let n=pG(XK,n=>n.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};let r=pG(WK,n=>n.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},QK={},WK.forEach(e=>{QK[e.annotation]=e}),$K=(e,t,n)=>{if(TK(t))switch(t[0]){case`symbol`:return GK.untransform(e,t,n);case`class`:return JK.untransform(e,t,n);case`custom`:return YK.untransform(e,t,n);case`typed-array`:return qK.untransform(e,t,n);default:throw Error(`Unknown transformation: `+t)}else{let r=QK[t];if(!r)throw Error(`Unknown transformation: `+t);return r.untransform(e,n)}},eq=(e,t)=>{if(t>e.size)throw Error(`index out of bounds`);let n=e.keys();for(;t>0;)n.next(),t--;return n.next().value},tq=(e,t)=>{_G(t);for(let n=0;n<t.length;n++){let r=t[n];if(jK(e))e=eq(e,+r);else if(AK(e)){let i=+r,a=+t[++n]==0?`key`:`value`,o=eq(e,i);switch(a){case`key`:e=o;break;case`value`:e=e.get(o);break}}else e=e[r]}return e},nq=(e,t,n)=>{if(_G(t),t.length===0)return n(e);let r=e;for(let e=0;e<t.length-1;e++){let n=t[e];if(TK(r)){let e=+n;r=r[e]}else if(CK(r))r=r[n];else if(jK(r)){let e=+n;r=eq(r,e)}else if(AK(r)){if(e===t.length-2)break;let i=+n,a=+t[++e]==0?`key`:`value`,o=eq(r,i);switch(a){case`key`:r=o;break;case`value`:r=r.get(o);break}}}let i=t[t.length-1];if(TK(r)?r[+i]=n(r[+i]):CK(r)&&(r[i]=n(r[i])),jK(r)){let e=eq(r,+i),t=n(e);e!==t&&(r.delete(e),r.add(t))}if(AK(r)){let e=+t[t.length-2],a=eq(r,e);switch(+i==0?`key`:`value`){case`key`:{let e=n(a);r.set(e,r.get(a)),e!==a&&r.delete(a);break}case`value`:r.set(a,n(r.get(a)));break}}return e},rq=e=>e<1,iq=(e,t)=>CK(e)||TK(e)||AK(e)||jK(e)||PK(e)||gG(e,t),aq=(e,t,n,r,i=[],a=[],o=new Map)=>{let s=IK(e);if(!s){xG(e,i,t);let n=o.get(e);if(n)return r?{transformedValue:null}:n}if(!iq(e,n)){let t=ZK(e,n),r=t?{transformedValue:t.value,annotations:[t.type]}:{transformedValue:e};return s||o.set(e,r),r}if(fG(a,e))return{transformedValue:null};let c=ZK(e,n),l=c?.value??e,u=TK(l)?[]:{},d={};dG(l,(s,c)=>{if(c===`__proto__`||c===`constructor`||c===`prototype`)throw Error(`Detected property ${c}. This is a prototype pollution risk, please remove it from your object.`);let l=aq(s,t,n,r,[...i,c],[...a,e],o);u[c]=l.transformedValue,TK(l.annotations)?d[VK(c)]=l.annotations:CK(l.annotations)&&dG(l.annotations,(e,t)=>{d[VK(c)+`.`+t]=e})});let f=wK(d)?{transformedValue:u,annotations:c?[c.type]:void 0}:{transformedValue:u,annotations:c?[c.type,d]:d};return s||o.set(e,f),f},oq=class{constructor({dedupe:e=!1}={}){this.classRegistry=new vK,this.symbolRegistry=new _K(e=>e.description??``),this.customTransformerRegistry=new yK,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,n=aq(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});let i=SG(t,this.dedupe);return i&&(r.meta={...r.meta,referentialEqualities:i}),r.meta&&(r.meta.v=1),r}deserialize(e,t){let{json:n,meta:r}=e,i=t?.inPlace?n:DG(n);return r?.values&&(i=yG(i,r.values,r.v??0,this)),r?.referentialEqualities&&(i=bG(i,r.referentialEqualities,r.v??0)),i}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e),{inPlace:!0})}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}},oq.defaultInstance=new oq,oq.serialize=oq.defaultInstance.serialize.bind(oq.defaultInstance),oq.deserialize=oq.defaultInstance.deserialize.bind(oq.defaultInstance),oq.stringify=oq.defaultInstance.stringify.bind(oq.defaultInstance),oq.parse=oq.defaultInstance.parse.bind(oq.defaultInstance),oq.registerClass=oq.defaultInstance.registerClass.bind(oq.defaultInstance),oq.registerSymbol=oq.defaultInstance.registerSymbol.bind(oq.defaultInstance),oq.registerCustom=oq.defaultInstance.registerCustom.bind(oq.defaultInstance),oq.allowErrorProps=oq.defaultInstance.allowErrorProps.bind(oq.defaultInstance),sq=oq.serialize,oq.deserialize,cq=oq.stringify,oq.parse,oq.registerClass,oq.registerCustom,oq.registerSymbol,oq.allowErrorProps,lq=(e,t=!1)=>{let{json:n}=sq(e);return JSON.stringify(n,null,t?2:void 0)},uq=e=>e.state.fetchStatus===`idle`?e.getObserversCount()?e.isStale()?2:1:3:0,dq=(e,t)=>e.queryHash.localeCompare(t.queryHash),fq=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,pq=(e,t)=>uq(e)===uq(t)?fq(e,t):uq(e)>uq(t)?1:-1,mq={status:pq,"query hash":dq,"last updated":fq},hq=e=>e.state.isPaused?0:e.state.status===`error`?2:e.state.status===`pending`?1:3,gq=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,_q=(e,t)=>hq(e)===hq(t)?gq(e,t):hq(e)>hq(t)?1:-1,vq={status:_q,"last updated":gq},yq=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),bq=()=>{let[e,t]=PU(`dark`);return UU(()=>{let e=window.matchMedia(`(prefers-color-scheme: dark)`);t(e.matches?`dark`:`light`);let n=e=>{t(e.matches?`dark`:`light`)};e.addEventListener(`change`,n),WU(()=>e.removeEventListener(`change`,n))}),e},xq=(e,t,n)=>{if(t.length===0)return n;if(e instanceof Map){let r=new Map(e);if(t.length===1)return r.set(t[0],n),r;let[i,...a]=t;return r.set(i,xq(r.get(i),a,n)),r}if(e instanceof Set){let r=xq(Array.from(e),t,n);return new Set(r)}if(Array.isArray(e)){let r=[...e];if(t.length===1)return r[t[0]]=n,r;let[i,...a]=t;return r[i]=xq(r[i],a,n),r}if(e instanceof Object){let r={...e};if(t.length===1)return r[t[0]]=n,r;let[i,...a]=t;return r[i]=xq(r[i],a,n),r}return e},Sq=(e,t)=>{if(e instanceof Map){let n=new Map(e);if(t.length===1)return n.delete(t[0]),n;let[r,...i]=t;return n.set(r,Sq(n.get(r),i)),n}if(e instanceof Set){let n=Sq(Array.from(e),t);return new Set(n)}if(Array.isArray(e)){let n=[...e];if(t.length===1)return n.filter((e,n)=>n.toString()!==t[0]);let[r,...i]=t;return n[r]=Sq(n[r],i),n}if(e instanceof Object){let n={...e};if(t.length===1)return delete n[t[0]],n;let[r,...i]=t;return n[r]=Sq(n[r],i),n}return e},Cq=(e,t)=>{if(!e||document.querySelector(`#_goober`)||t?.querySelector(`#_goober`))return;let n=document.createElement(`style`),r=document.createTextNode(``);n.appendChild(r),n.id=`_goober`,n.setAttribute(`nonce`,e),t?t.appendChild(n):document.head.appendChild(n)}}));wq();var Tq=function(e,t,n){let r=Promise.resolve();function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function Eq(e){return(...t)=>{for(let n of e)n&&n(...t)}}function Dq(e,...t){return typeof e==`function`?e(...t):e}function Oq(e,t,n,r){let i=e.length,a=t.length,o=0;if(!a){for(;o<i;o++)n(e[o]);return}if(!i){for(;o<a;o++)r(t[o]);return}for(;o<a&&t[o]===e[o];o++);let s,c;t=t.slice(o),e=e.slice(o);for(s of t)e.includes(s)||r(s);for(c of e)t.includes(c)||n(c)}function kq(e){let[t,n]=PU(),r=e?.throw?(e,t)=>{throw n(e instanceof Error?e:Error(t)),e}:(e,t)=>{n(e instanceof Error?e:Error(t))},i=e?.api?Array.isArray(e.api)?e.api:[e.api]:[globalThis.localStorage].filter(Boolean),a=e?.prefix?`${e.prefix}.`:``,o=new Map,s=new Proxy({},{get(t,n){let s=o.get(n);s||(s=PU(void 0,{equals:!1}),o.set(n,s)),s[0]();let c=i.reduce((e,t)=>{if(e!==null||!t)return e;try{return t.getItem(`${a}${n}`)}catch(e){return r(e,`Error reading ${a}${n} from ${t.name}`),null}},null);return c!==null&&e?.deserializer?e.deserializer(c,n,e.options):c}});return e?.sync!==!1&&UU(()=>{let e=e=>{let t=!1;i.forEach(n=>{try{n!==e.storageArea&&e.key&&e.newValue!==n.getItem(e.key)&&(e.newValue?n.setItem(e.key,e.newValue):n.removeItem(e.key),t=!0)}catch(t){r(t,`Error synching api ${n.name} from storage event (${e.key}=${e.newValue})`)}}),t&&e.key&&o.get(e.key)?.[1]()};`addEventListener`in globalThis?(globalThis.addEventListener(`storage`,e),WU(()=>globalThis.removeEventListener(`storage`,e))):(i.forEach(t=>t.addEventListener?.(`storage`,e)),WU(()=>i.forEach(t=>t.removeEventListener?.(`storage`,e))))}),[s,(t,n,s)=>{let c=e?.serializer?e.serializer(n,t,s??e.options):n,l=`${a}${t}`;i.forEach(e=>{try{e.getItem(l)!==c&&e.setItem(l,c)}catch(n){r(n,`Error setting ${a}${t} to ${c} in ${e.name}`)}});let u=o.get(t);u&&u[1]()},{clear:()=>i.forEach(e=>{try{e.clear()}catch(t){r(t,`Error clearing ${e.name}`)}}),error:t,remove:e=>i.forEach(t=>{try{t.removeItem(`${a}${e}`)}catch(n){r(n,`Error removing ${a}${e} from ${t.name}`)}}),toJSON:()=>{let t={},n=(n,r)=>{if(!t.hasOwnProperty(n)){let i=r&&e?.deserializer?e.deserializer(r,n,e.options):r;i&&(t[n]=i)}};return i.forEach(e=>{if(typeof e.getAll==`function`){let t;try{t=e.getAll()}catch(t){r(t,`Error getting all values from in ${e.name}`)}for(let e of t)n(e,t[e])}else{let i=0,a;try{for(;a=e.key(i++);)t.hasOwnProperty(a)||n(a,e.getItem(a))}catch(t){r(t,`Error getting all values from ${e.name}`)}}}),t}}]}function Aq(){return XU(v$)}function jq(){return XU(C$)}function Mq(e){return e.replace(E$,e=>w$[e])}function Nq(e,t,n){if(n||={},n.threshold=n.threshold??D$.MATCHES,!n.accessors){let r=Pq(e,t,n);return{rankedValue:e,rank:r,accessorIndex:-1,accessorThreshold:n.threshold,passed:r>=n.threshold}}let r=zq(e,n.accessors),i={rankedValue:e,rank:D$.NO_MATCH,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<r.length;e++){let a=r[e],o=Pq(a.itemValue,t,n),{minRanking:s,maxRanking:c,threshold:l=n.threshold}=a.attributes;o<s&&o>=D$.MATCHES?o=s:o>c&&(o=c),o=Math.min(o,c),o>=l&&o>i.rank&&(i.rank=o,i.passed=!0,i.accessorIndex=e,i.accessorThreshold=l,i.rankedValue=a.itemValue)}return i}function Pq(e,t,n){return e=Lq(e,n),t=Lq(t,n),t.length>e.length?D$.NO_MATCH:e===t?D$.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?D$.EQUAL:e.startsWith(t)?D$.STARTS_WITH:e.includes(` ${t}`)?D$.WORD_STARTS_WITH:e.includes(t)?D$.CONTAINS:t.length===1?D$.NO_MATCH:Fq(e).includes(t)?D$.ACRONYM:Iq(e,t))}function Fq(e){let t=``;return e.split(` `).forEach(e=>{e.split(`-`).forEach(e=>{t+=e.substr(0,1)})}),t}function Iq(e,t){let n=0,r=0;function i(e,t,r){for(let i=r,a=t.length;i<a;i++)if(t[i]===e)return n+=1,i+1;return-1}function a(e){let r=1/e,i=n/t.length;return D$.MATCHES+i*r}let o=i(t[0],e,0);if(o<0)return D$.NO_MATCH;r=o;for(let n=1,a=t.length;n<a;n++){let a=t[n];if(r=i(a,e,r),!(r>-1))return D$.NO_MATCH}return a(r-o)}function Lq(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=Mq(e)),e}function Rq(e,t){let n=t;typeof t==`object`&&(n=t.accessor);let r=n(e);return r==null?[]:Array.isArray(r)?r:[String(r)]}function zq(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r],a=Bq(i),o=Rq(e,i);for(let e=0,t=o.length;e<t;e++)n.push({itemValue:o[e],attributes:a})}return n}function Bq(e){return typeof e==`function`?O$:{...O$,...e}}function Vq(e){let t=this||{},n=e.call?e(t.p):e;return L$(n.unshift?n.raw?R$(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,A$(t.target),t.g,t.o,t.k)}function Hq(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Hq(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Z(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Hq(e))&&(r&&(r+=` `),r+=t);return r}function Uq(e,t){let n=VU(e),{onChange:r}=t,i=new Set(t.appear?void 0:n),a=new WeakSet,[o,s]=PU([],{equals:!1}),[c]=JU(),l=e=>{s(t=>(t.push.apply(t,e),t));for(let t of e)a.delete(t)},u=(e,t,n)=>e.splice(n,0,t);return G(t=>{let n=o(),s=e();if(s[LG],VU(c))return c(),t;if(n.length){let e=t.filter(e=>!n.includes(e));return n.length=0,r({list:e,added:[],removed:[],unchanged:e,finishRemoved:l}),e}return VU(()=>{let e=new Set(s),n=s.slice(),o=[],c=[],d=[];for(let e of s)(i.has(e)?d:o).push(e);let f=!o.length;for(let r=0;r<t.length;r++){let i=t[r];e.has(i)||(a.has(i)||(c.push(i),a.add(i)),u(n,i,r)),f&&i!==n[r]&&(f=!1)}return!c.length&&f?t:(r({list:n,added:o,removed:c,unchanged:d,finishRemoved:l}),i=e,n)})},t.appear?[]:n.slice())}function Wq(...e){return Eq(e)}function Gq(e,t){if(t(e))return e;if(typeof e==`function`&&!e.length)return Gq(e(),t);if(Array.isArray(e)){let n=[];for(let r of e){let e=Gq(r,t);e&&(Array.isArray(e)?n.push.apply(n,e):n.push(e))}return n.length?n:null}return null}function Kq(e,t=z$,n=z$){let r=G(e),i=G(()=>Gq(r(),t));return i.toArray=()=>{let e=i();return Array.isArray(e)?e:e?[e]:[]},i}function qq(e){return G(()=>{let t=e.name||`s`;return{enterActive:(e.enterActiveClass||t+`-enter-active`).split(` `),enter:(e.enterClass||t+`-enter`).split(` `),enterTo:(e.enterToClass||t+`-enter-to`).split(` `),exitActive:(e.exitActiveClass||t+`-exit-active`).split(` `),exit:(e.exitClass||t+`-exit`).split(` `),exitTo:(e.exitToClass||t+`-exit-to`).split(` `),move:(e.moveClass||t+`-move`).split(` `)}})}function Jq(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function Yq(e,t,n,r){let{onBeforeEnter:i,onEnter:a,onAfterEnter:o}=t;i?.(n),n.classList.add(...e.enter),n.classList.add(...e.enterActive),queueMicrotask(()=>{if(!n.parentNode)return r?.();a?.(n,()=>s())}),Jq(()=>{n.classList.remove(...e.enter),n.classList.add(...e.enterTo),(!a||a.length<2)&&(n.addEventListener(`transitionend`,s),n.addEventListener(`animationend`,s))});function s(t){(!t||t.target===n)&&(n.removeEventListener(`transitionend`,s),n.removeEventListener(`animationend`,s),n.classList.remove(...e.enterActive),n.classList.remove(...e.enterTo),o?.(n))}}function Xq(e,t,n,r){let{onBeforeExit:i,onExit:a,onAfterExit:o}=t;if(!n.parentNode)return r?.();i?.(n),n.classList.add(...e.exit),n.classList.add(...e.exitActive),a?.(n,()=>s()),Jq(()=>{n.classList.remove(...e.exit),n.classList.add(...e.exitTo),(!a||a.length<2)&&(n.addEventListener(`transitionend`,s),n.addEventListener(`animationend`,s))});function s(t){(!t||t.target===n)&&(r?.(),n.removeEventListener(`transitionend`,s),n.removeEventListener(`animationend`,s),n.classList.remove(...e.exitActive),n.classList.remove(...e.exitTo),o?.(n))}}function Zq(e){for(let t of e)t.dispose()}function Qq(e,t,n,r={}){let i=new Map;return WU(()=>Zq(i.values())),()=>{let n=e()||[];return n[LG],VU(()=>{if(!n.length)return Zq(i.values()),i.clear(),r.fallback?[NU(e=>(i.set(V$,{dispose:e}),r.fallback()))]:[];let e=Array(n.length),o=i.get(V$);if(!i.size||o){o?.dispose(),i.delete(V$);for(let r=0;r<n.length;r++){let i=n[r],o=t(i,r);a(e,i,r,o)}return e}let s=new Set(i.keys());for(let r=0;r<n.length;r++){let o=n[r],c=t(o,r);s.delete(c);let l=i.get(c);l?(e[r]=l.mapped,l.setIndex?.(r),l.setItem(()=>o)):a(e,o,r,c)}for(let e of s)i.get(e)?.dispose(),i.delete(e);return e})};function a(e,t,r,a){NU(o=>{let[s,c]=PU(t),l={setItem:c,dispose:o};if(n.length>1){let[e,t]=PU(r);l.setIndex=t,l.mapped=n(s,e)}else l.mapped=n(s);i.set(a,l),e[r]=l.mapped})}}function $q(e){let{by:t}=e;return G(Qq(()=>e.each,typeof t==`function`?t:e=>e[t],e.children,`fallback`in e?{fallback:()=>e.fallback}:void 0))}function eJ(e,t,n,r){return e.addEventListener(t,n,r),t$(e.removeEventListener.bind(e,t,n,r))}function tJ(e,t,n,r){let i=()=>{e$(Q(e)).forEach(e=>{e&&e$(Q(t)).forEach(t=>eJ(e,t,n,r))})};typeof e==`function`?LU(i):IU(i)}function nJ(e,t){let n=new ResizeObserver(e);return WU(n.disconnect.bind(n)),{observe:e=>n.observe(e,t),unobserve:n.unobserve.bind(n)}}function rJ(e,t,n){let r=new WeakMap,{observe:i,unobserve:a}=nJ(e=>{for(let n of e){let{contentRect:e,target:i}=n,a=Math.round(e.width),o=Math.round(e.height),s=r.get(i);(!s||s.width!==a||s.height!==o)&&(t(e,i,n),r.set(i,{width:a,height:o}))}},n);LU(t=>{let n=$Q(e$(Q(e)));return Oq(n,t,i,a),n},[])}function iJ(e){let t={},n;for(;n=H$.exec(e);)t[n[1]]=n[2];return t}function aJ(e,t){if(typeof e==`string`){if(typeof t==`string`)return`${e};${t}`;e=iJ(e)}else typeof t==`string`&&(t=iJ(t));return{...e,...t}}function oJ(e,t,n=-1){return n in e?[...e.slice(0,n),t,...e.slice(n)]:[...e,t]}function sJ(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function cJ(e){return typeof e==`number`}function lJ(e){return Object.prototype.toString.call(e)===`[object String]`}function uJ(e){return typeof e==`function`}function dJ(e){return t=>`${e()}-${t}`}function fJ(e,t){return e?e===t||e.contains(t):!1}function pJ(e,t=!1){let{activeElement:n}=hJ(e);if(!n?.nodeName)return null;if(gJ(n)&&n.contentDocument)return pJ(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=hJ(n).getElementById(e);if(t)return t}}return n}function mJ(e){return hJ(e).defaultView||window}function hJ(e){return e?e.ownerDocument||e:document}function gJ(e){return e.tagName===`IFRAME`}function _J(e){return typeof window<`u`&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function vJ(){return _J(/^Mac/i)}function yJ(){return _J(/^iPhone/i)}function bJ(){return _J(/^iPad/i)||vJ()&&navigator.maxTouchPoints>1}function xJ(){return yJ()||bJ()}function SJ(){return vJ()||xJ()}function CJ(e,t){return t&&(uJ(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function wJ(e){return t=>{for(let n of e)CJ(t,n)}}function TJ(e){return vJ()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function EJ(e){if(e)if(DJ())e.focus({preventScroll:!0});else{let t=OJ(e);e.focus(),kJ(t)}}function DJ(){if(W$==null){W$=!1;try{document.createElement(`div`).focus({get preventScroll(){return W$=!0,!0}})}catch{}}return W$}function OJ(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function kJ(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function AJ(e,t){let n=Array.from(e.querySelectorAll(q$)).filter(jJ);return t&&jJ(e)&&n.unshift(e),n.forEach((e,t)=>{if(gJ(e)&&e.contentDocument){let r=e.contentDocument.body,i=AJ(r,!1);n.splice(t,1,...i)}}),n}function jJ(e){return MJ(e)&&!NJ(e)}function MJ(e){return e.matches(q$)&&PJ(e)}function NJ(e){return Number.parseInt(e.getAttribute(`tabindex`)||`0`,10)<0}function PJ(e,t){return e.nodeName!==`#comment`&&FJ(e)&&IJ(e,t)&&(!e.parentElement||PJ(e.parentElement,e))}function FJ(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,r=t!==`none`&&n!==`hidden`&&n!==`collapse`;if(r){if(!e.ownerDocument.defaultView)return r;let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:i}=t(e);r=n!==`none`&&i!==`hidden`&&i!==`collapse`}return r}function IJ(e,t){return!e.hasAttribute(`hidden`)&&(e.nodeName===`DETAILS`&&t&&t.nodeName!==`SUMMARY`?e.hasAttribute(`open`):!0)}function LJ(e,t,n){let r=t?.tabbable?J$:q$,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){return t?.from?.contains(e)?NodeFilter.FILTER_REJECT:e.matches(r)&&PJ(e)&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(i.currentNode=t.from),i}function RJ(e){let t=e;for(;t&&!zJ(t);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}function zJ(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function BJ(){}function VJ(e,t){let[n,r]=e,i=!1,a=t.length;for(let e=a,o=0,s=e-1;o<e;s=o++){let[a,c]=t[o],[l,u]=t[s],[,d]=t[s===0?e-1:s-1]||[0,0],f=(c-u)*(n-a)-(a-l)*(r-c);if(u<c){if(r>=u&&r<c){if(f===0)return!0;f>0&&(r===u?r>d&&(i=!i):i=!i)}}else if(c<u){if(r>c&&r<=u){if(f===0)return!0;f<0&&(r===u?r<d&&(i=!i):i=!i)}}else if(r===c&&(n>=l&&n<=a||n>=a&&n<=l))return!0}return i}function HJ(e,t){return wW(e,t)}function UJ(){if(typeof window>`u`)return;let e=e=>{if(!e.target)return;let n=Y$.get(e.target);n||(n=new Set,Y$.set(e.target,n),e.target.addEventListener(`transitioncancel`,t)),n.add(e.propertyName)},t=e=>{if(!e.target)return;let n=Y$.get(e.target);if(n&&(n.delete(e.propertyName),n.size===0&&(e.target.removeEventListener(`transitioncancel`,t),Y$.delete(e.target)),Y$.size===0)){for(let e of X$)e();X$.clear()}};document.body.addEventListener(`transitionrun`,e),document.body.addEventListener(`transitionend`,t)}function WJ(e,t){let n=GJ(e,t,`left`),r=GJ(e,t,`top`),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,s=e.scrollTop,c=o+e.offsetWidth,l=s+e.offsetHeight;n<=o?o=n:n+i>c&&(o+=n+i-c),r<=s?s=r:r+a>l&&(s+=r+a-l),e.scrollLeft=o,e.scrollTop=s}function GJ(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function KJ(e,t){if(document.contains(e)){let t=document.scrollingElement||document.documentElement;if(window.getComputedStyle(t).overflow!==`hidden`){let{left:t,top:n}=e.getBoundingClientRect();e?.scrollIntoView?.({block:`nearest`});let{left:r,top:i}=e.getBoundingClientRect();(Math.abs(t-r)>1||Math.abs(n-i)>1)&&e.scrollIntoView?.({block:`nearest`})}else{let n=RJ(e);for(;e&&n&&e!==t&&n!==t;)WJ(n,e),e=n,n=RJ(e)}}}function qJ(e,t){let[n,r]=PU(JJ(t?.()));return LU(()=>{r(e()?.tagName.toLowerCase()||JJ(t?.()))}),n}function JJ(e){return lJ(e)?e:void 0}function YJ(e){let[t,n]=TW(e,[`as`]);if(!t.as)throw Error("[kobalte]: Polymorphic is missing the required `as` prop.");return K(cG,wW(n,{get component(){return t.as}}))}function XJ(e){let t=e.tagName.toLowerCase();return t===`button`?!0:t===`input`&&e.type?e1.indexOf(e.type)!==-1:!1}function ZJ(e){let t,[n,r]=TW(HJ({type:`button`},e),[`ref`,`type`,`disabled`]),i=qJ(()=>t,()=>`button`),a=G(()=>{let e=i();return e==null?!1:XJ({tagName:e,type:n.type})}),o=G(()=>i()===`input`),s=G(()=>i()===`a`&&t?.getAttribute(`href`)!=null);return K(YJ,wW({as:`button`,ref(e){let r=Wq(e=>t=e,n.ref);typeof r==`function`&&r(e)},get type(){return a()||o()?n.type:void 0},get role(){return!a()&&!s()?`button`:void 0},get tabIndex(){return!a()&&!s()&&!n.disabled?0:void 0},get disabled(){return a()||o()?n.disabled:void 0},get"aria-disabled"(){return!a()&&!o()&&n.disabled?!0:void 0},get"data-disabled"(){return n.disabled?``:void 0}},r))}function QJ(e){let[t,n]=PU(e.defaultValue?.()),r=G(()=>e.value?.()!==void 0),i=G(()=>r()?e.value?.():t());return[i,t=>{VU(()=>{let a=Dq(t,i());return Object.is(a,i())||(r()||n(a),e.onChange?.(a)),a})}]}function $J(e){let[t,n]=QJ(e);return[()=>t()??!1,n]}function eY(e){let[t,n]=QJ(e);return[()=>t()??[],n]}function tY(e={}){let[t,n]=$J({value:()=>Q(e.isSelected),defaultValue:()=>!!Q(e.defaultIsSelected),onChange:t=>e.onSelectedChange?.(t)});return{isSelected:t,setIsSelected:t=>{!Q(e.isReadOnly)&&!Q(e.isDisabled)&&n(t)},toggle:()=>{!Q(e.isReadOnly)&&!Q(e.isDisabled)&&n(!t())}}}function nY(e){let t=e.startIndex??0,n=e.startLevel??0,r=[],i=t=>{if(t==null)return``;let n=e.getKey??`key`,r=lJ(n)?t[n]:n(t);return r==null?``:String(r)},a=t=>{if(t==null)return``;let n=e.getTextValue??`textValue`,r=lJ(n)?t[n]:n(t);return r==null?``:String(r)},o=t=>{if(t==null)return!1;let n=e.getDisabled??`disabled`;return(lJ(n)?t[n]:n(t))??!1},s=t=>{if(t!=null)return lJ(e.getSectionChildren)?t[e.getSectionChildren]:e.getSectionChildren?.(t)};for(let c of e.dataSource){if(lJ(c)||cJ(c)){r.push({type:`item`,rawValue:c,key:String(c),textValue:String(c),disabled:o(c),level:n,index:t}),t++;continue}if(s(c)!=null){r.push({type:`section`,rawValue:c,key:``,textValue:``,disabled:!1,level:n,index:t}),t++;let i=s(c)??[];if(i.length>0){let a=nY({dataSource:i,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:n+1});r.push(...a),t+=a.length}}else r.push({type:`item`,rawValue:c,key:i(c),textValue:a(c),disabled:o(c),level:n,index:t}),t++}return r}function rY(e,t=[]){return G(()=>{let n=nY({dataSource:Q(e.dataSource),getKey:Q(e.getKey),getTextValue:Q(e.getTextValue),getDisabled:Q(e.getDisabled),getSectionChildren:Q(e.getSectionChildren)});for(let e=0;e<t.length;e++)t[e]();return e.factory(n)})}function iY(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script??``;return n1.has(t)}let t=e.split(`-`)[0];return r1.has(t)}function aY(e){return iY(e)?`rtl`:`ltr`}function oY(){let e=typeof navigator<`u`&&(navigator.language||navigator.userLanguage)||`en-US`;return{locale:e,direction:aY(e)}}function sY(){i1=oY();for(let e of a1)e(i1)}function cY(){let[e,t]=PU(i1),n=G(()=>e());return UU(()=>{a1.size===0&&window.addEventListener(`languagechange`,sY),a1.add(t),WU(()=>{a1.delete(t),a1.size===0&&window.removeEventListener(`languagechange`,sY)})}),{locale:()=>n().locale,direction:()=>n().direction}}function lY(){let e=cY();return XU(o1)||e}function uY(e){let{locale:t}=lY(),n=G(()=>t()+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():``));return G(()=>{let r=n(),i;return s1.has(r)&&(i=s1.get(r)),i||(i=new Intl.Collator(t(),e),s1.set(r,i)),i})}function dY(e){let[t,n]=QJ(e);return[()=>t()??new c1,n]}function fY(e){return SJ()?e.altKey:e.ctrlKey}function pY(e){return vJ()?e.metaKey:e.ctrlKey}function mY(e){return new c1(e)}function hY(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function gY(e){let t=HJ({selectionMode:`none`,selectionBehavior:`toggle`},e),[n,r]=PU(!1),[i,a]=PU(),[o,s]=dY({value:G(()=>{let e=Q(t.selectedKeys);return e==null?e:mY(e)}),defaultValue:G(()=>{let e=Q(t.defaultSelectedKeys);return e==null?new c1:mY(e)}),onChange:e=>t.onSelectionChange?.(e)}),[c,l]=PU(Q(t.selectionBehavior));return LU(()=>{let e=o();Q(t.selectionBehavior)===`replace`&&c()===`toggle`&&typeof e==`object`&&e.size===0&&l(`replace`)}),LU(()=>{l(Q(t.selectionBehavior)??`toggle`)}),{selectionMode:()=>Q(t.selectionMode),disallowEmptySelection:()=>Q(t.disallowEmptySelection)??!1,selectionBehavior:c,setSelectionBehavior:l,isFocused:n,setFocused:r,focusedKey:i,setFocusedKey:a,selectedKeys:o,setSelectedKeys:e=>{(Q(t.allowDuplicateSelectionEvents)||!hY(e,o()))&&s(e)}}}function _Y(e){let[t,n]=PU(``),[r,i]=PU(-1);return{typeSelectHandlers:{onKeyDown:a=>{if(Q(e.isDisabled))return;let o=Q(e.keyboardDelegate),s=Q(e.selectionManager);if(!o.getKeyForSearch)return;let c=vY(a.key);if(!c||a.ctrlKey||a.metaKey)return;c===` `&&t().trim().length>0&&(a.preventDefault(),a.stopPropagation());let l=n(e=>e+c),u=o.getKeyForSearch(l,s.focusedKey())??o.getKeyForSearch(l);u==null&&yY(l)&&(l=l[0],u=o.getKeyForSearch(l,s.focusedKey())??o.getKeyForSearch(l)),u!=null&&(s.setFocusedKey(u),e.onTypeSelect?.(u)),clearTimeout(r()),i(window.setTimeout(()=>n(``),500))}}}}function vY(e){return e.length===1||!/^[A-Z]/i.test(e)?e:``}function yY(e){return e.split(``).every(t=>t===e[0])}function bY(e,t,n){let r=wW({selectOnFocus:()=>Q(e.selectionManager).selectionBehavior()===`replace`},e),i=()=>t(),{direction:a}=lY(),o={top:0,left:0};tJ(()=>Q(r.isVirtualized)?void 0:i(),`scroll`,()=>{let e=i();e&&(o={top:e.scrollTop,left:e.scrollLeft})});let{typeSelectHandlers:s}=_Y({isDisabled:()=>Q(r.disallowTypeAhead),keyboardDelegate:()=>Q(r.keyboardDelegate),selectionManager:()=>Q(r.selectionManager)}),c=()=>Q(r.orientation)??`vertical`,l=e=>{CJ(e,s.onKeyDown),e.altKey&&e.key===`Tab`&&e.preventDefault();let n=t();if(!n?.contains(e.target))return;let i=Q(r.selectionManager),o=Q(r.selectOnFocus),l=t=>{t!=null&&(i.setFocusedKey(t),e.shiftKey&&i.selectionMode()===`multiple`?i.extendSelection(t):o&&!fY(e)&&i.replaceSelection(t))},u=Q(r.keyboardDelegate),d=Q(r.shouldFocusWrap),f=i.focusedKey();switch(e.key){case c()===`vertical`?`ArrowDown`:`ArrowRight`:if(u.getKeyBelow){e.preventDefault();let t;t=f==null?u.getFirstKey?.():u.getKeyBelow(f),t==null&&d&&(t=u.getFirstKey?.(f)),l(t)}break;case c()===`vertical`?`ArrowUp`:`ArrowLeft`:if(u.getKeyAbove){e.preventDefault();let t;t=f==null?u.getLastKey?.():u.getKeyAbove(f),t==null&&d&&(t=u.getLastKey?.(f)),l(t)}break;case c()===`vertical`?`ArrowLeft`:`ArrowUp`:if(u.getKeyLeftOf){e.preventDefault();let t=a()===`rtl`,n;n=f==null?t?u.getFirstKey?.():u.getLastKey?.():u.getKeyLeftOf(f),l(n)}break;case c()===`vertical`?`ArrowRight`:`ArrowDown`:if(u.getKeyRightOf){e.preventDefault();let t=a()===`rtl`,n;n=f==null?t?u.getLastKey?.():u.getFirstKey?.():u.getKeyRightOf(f),l(n)}break;case`Home`:if(u.getFirstKey){e.preventDefault();let t=u.getFirstKey(f,pY(e));t!=null&&(i.setFocusedKey(t),pY(e)&&e.shiftKey&&i.selectionMode()===`multiple`?i.extendSelection(t):o&&i.replaceSelection(t))}break;case`End`:if(u.getLastKey){e.preventDefault();let t=u.getLastKey(f,pY(e));t!=null&&(i.setFocusedKey(t),pY(e)&&e.shiftKey&&i.selectionMode()===`multiple`?i.extendSelection(t):o&&i.replaceSelection(t))}break;case`PageDown`:u.getKeyPageBelow&&f!=null&&(e.preventDefault(),l(u.getKeyPageBelow(f)));break;case`PageUp`:u.getKeyPageAbove&&f!=null&&(e.preventDefault(),l(u.getKeyPageAbove(f)));break;case`a`:pY(e)&&i.selectionMode()===`multiple`&&Q(r.disallowSelectAll)!==!0&&(e.preventDefault(),i.selectAll());break;case`Escape`:e.defaultPrevented||(e.preventDefault(),Q(r.disallowEmptySelection)||i.clearSelection());break;case`Tab`:if(!Q(r.allowsTabNavigation)){if(e.shiftKey)n.focus();else{let e=LJ(n,{tabbable:!0}),t,r;do r=e.lastChild(),r&&(t=r);while(r);t&&!t.contains(document.activeElement)&&EJ(t)}break}}},u=e=>{let t=Q(r.selectionManager),n=Q(r.keyboardDelegate),a=Q(r.selectOnFocus);if(t.isFocused()){e.currentTarget.contains(e.target)||t.setFocused(!1);return}if(e.currentTarget.contains(e.target)){if(t.setFocused(!0),t.focusedKey()==null){let r=e=>{e!=null&&(t.setFocusedKey(e),a&&t.replaceSelection(e))},i=e.relatedTarget;i&&e.currentTarget.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING?r(t.lastSelectedKey()??n.getLastKey?.()):r(t.firstSelectedKey()??n.getFirstKey?.())}else if(!Q(r.isVirtualized)){let e=i();if(e){e.scrollTop=o.top,e.scrollLeft=o.left;let n=e.querySelector(`[data-key="${t.focusedKey()}"]`);n&&(EJ(n),WJ(e,n))}}}},d=e=>{let t=Q(r.selectionManager);e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},f=e=>{i()===e.target&&e.preventDefault()},p=()=>{let e=Q(r.autoFocus);if(!e)return;let n=Q(r.selectionManager),i=Q(r.keyboardDelegate),a;e===`first`&&(a=i.getFirstKey?.()),e===`last`&&(a=i.getLastKey?.());let o=n.selectedKeys();o.size&&(a=o.values().next().value),n.setFocused(!0),n.setFocusedKey(a);let s=t();s&&a==null&&!Q(r.shouldUseVirtualFocus)&&EJ(s)};return UU(()=>{r.deferAutoFocus?setTimeout(p,0):p()}),LU(HU([i,()=>Q(r.isVirtualized),()=>Q(r.selectionManager).focusedKey()],e=>{let[t,n,i]=e;if(n)i&&r.scrollToKey?.(i);else if(i&&t){let e=t.querySelector(`[data-key="${i}"]`);e&&WJ(t,e)}})),{tabIndex:G(()=>{if(!Q(r.shouldUseVirtualFocus))return Q(r.selectionManager).focusedKey()==null?0:-1}),onKeyDown:l,onMouseDown:f,onFocusIn:u,onFocusOut:d}}function xY(e,t){let n=()=>Q(e.selectionManager),r=()=>Q(e.key),i=()=>Q(e.shouldUseVirtualFocus),a=e=>{n().selectionMode()!==`none`&&(n().selectionMode()===`single`?n().isSelected(r())&&!n().disallowEmptySelection()?n().toggleSelection(r()):n().replaceSelection(r()):e?.shiftKey?n().extendSelection(r()):n().selectionBehavior()===`toggle`||pY(e)||`pointerType`in e&&e.pointerType===`touch`?n().toggleSelection(r()):n().replaceSelection(r()))},o=()=>n().isSelected(r()),s=()=>Q(e.disabled)||n().isDisabled(r()),c=()=>!s()&&n().canSelectItem(r()),l=null,u=t=>{c()&&(l=t.pointerType,t.pointerType===`mouse`&&t.button===0&&!Q(e.shouldSelectOnPressUp)&&a(t))},d=t=>{c()&&t.pointerType===`mouse`&&t.button===0&&Q(e.shouldSelectOnPressUp)&&Q(e.allowsDifferentPressOrigin)&&a(t)},f=t=>{c()&&(Q(e.shouldSelectOnPressUp)&&!Q(e.allowsDifferentPressOrigin)||l!==`mouse`)&&a(t)},p=e=>{!c()||![`Enter`,` `].includes(e.key)||(fY(e)?n().toggleSelection(r()):a(e))},m=e=>{s()&&e.preventDefault()},h=e=>{let a=t();i()||s()||!a||e.target===a&&n().setFocusedKey(r())},g=G(()=>{if(!(i()||s()))return r()===n().focusedKey()?0:-1}),_=G(()=>Q(e.virtualized)?void 0:r());return LU(HU([t,r,i,()=>n().focusedKey(),()=>n().isFocused()],([t,n,r,i,a])=>{t&&n===i&&a&&!r&&document.activeElement!==t&&(e.focus?e.focus():EJ(t))})),{isSelected:o,isDisabled:s,allowsSelection:c,tabIndex:g,dataKey:_,onPointerDown:u,onPointerUp:d,onClick:f,onKeyDown:p,onMouseDown:m,onFocus:h}}function SY(e){let t=gY(e),n=rY({dataSource:()=>Q(e.dataSource),getKey:()=>Q(e.getKey),getTextValue:()=>Q(e.getTextValue),getDisabled:()=>Q(e.getDisabled),getSectionChildren:()=>Q(e.getSectionChildren),factory:t=>e.filter?new u1(e.filter(t)):new u1(t)},[()=>e.filter]),r=new l1(n,t);return FU(()=>{let e=t.focusedKey();e!=null&&!n().getItem(e)&&t.setFocusedKey(void 0)}),{collection:n,selectionManager:()=>r}}function CY(){return XU(d1)}function wY(){let e=CY();if(e===void 0)throw Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function TY(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function EY(e,t){let n=t.ref();if(!n)return-1;let r=e.length;if(!r)return-1;for(;r--;){let t=e[r]?.ref();if(t&&TY(t,n))return r+1}return 0}function DY(e){let t=e.map((e,t)=>[t,e]),n=!1;return t.sort(([e,t],[r,i])=>{let a=t.ref(),o=i.ref();return a===o||!a||!o?0:TY(a,o)?(e>r&&(n=!0),-1):(e<r&&(n=!0),1)}),n?t.map(([e,t])=>t):e}function OY(e,t){let n=DY(e);e!==n&&t(n)}function kY(e){let t=e[0],n=e[e.length-1]?.ref(),r=t?.ref()?.parentElement;for(;r;){if(n&&r.contains(n))return r;r=r.parentElement}return hJ(r).body}function AY(e,t){LU(()=>{let n=setTimeout(()=>{OY(e(),t)});WU(()=>clearTimeout(n))})}function jY(e,t){if(typeof IntersectionObserver!=`function`){AY(e,t);return}let n=[];LU(()=>{let r=()=>{let r=!!n.length;n=e(),r&&OY(e(),t)},i=kY(e()),a=new IntersectionObserver(r,{root:i});for(let t of e()){let e=t.ref();e&&a.observe(e)}WU(()=>a.disconnect())})}function MY(e={}){let[t,n]=eY({value:()=>Q(e.items),onChange:t=>e.onItemsChange?.(t)});jY(t,n);let r=e=>(n(t=>oJ(t,e,EY(t,e))),()=>{n(t=>{let n=t.filter(t=>t.ref()!==e.ref());return t.length===n.length?t:n})});return{DomCollectionProvider:e=>K(d1.Provider,{value:{registerItem:r},get children(){return e.children}})}}function NY(e){let t=wY(),n=HJ({shouldRegisterItem:!0},e);LU(()=>{n.shouldRegisterItem&&WU(t.registerItem(n.getItem()))})}function PY(e,t,n){return m1(e,p1(t,n))}function FY(e,t){return typeof e==`function`?e(t):e}function IY(e){return e.split(`-`)[0]}function LY(e){return e.split(`-`)[1]}function RY(e){return e===`x`?`y`:`x`}function zY(e){return e===`y`?`height`:`width`}function BY(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function VY(e){return RY(BY(e))}function HY(e,t,n){n===void 0&&(n=!1);let r=LY(e),i=VY(e),a=zY(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=qY(o)),[o,qY(o)]}function UY(e){let t=qY(e);return[WY(e),t,WY(t)]}function WY(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}function GY(e,t,n){switch(e){case`top`:case`bottom`:return n?t?b1:y1:t?y1:b1;case`left`:case`right`:return t?x1:S1;default:return[]}}function KY(e,t,n,r){let i=LY(e),a=GY(IY(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(WY)))),a}function qY(e){let t=IY(e);return v1[t]+e.slice(t.length)}function JY(e){return{top:0,right:0,bottom:0,left:0,...e}}function YY(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:JY(e)}function XY(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ZY(e,t,n){let{reference:r,floating:i}=e,a=BY(t),o=VY(t),s=zY(o),c=IY(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(LY(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function QY(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=FY(t,e),p=YY(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=XY(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=XY(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}function $Y(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eX(e){return f1.some(t=>e[t]>=0)}async function tX(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=IY(n),s=LY(n),c=BY(n)===`y`,l=O1.has(o)?-1:1,u=a&&c?-1:1,d=FY(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}function nX(){return typeof window<`u`}function rX(e){return oX(e)?(e.nodeName||``).toLowerCase():`#document`}function iX(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function aX(e){return((oX(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function oX(e){return nX()?e instanceof Node||e instanceof iX(e).Node:!1}function sX(e){return nX()?e instanceof Element||e instanceof iX(e).Element:!1}function cX(e){return nX()?e instanceof HTMLElement||e instanceof iX(e).HTMLElement:!1}function lX(e){return!nX()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof iX(e).ShadowRoot}function uX(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=_X(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function dX(e){return/^(table|td|th)$/.test(rX(e))}function fX(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}function pX(e){let t=sX(e)?_X(e):e;return P1(t.transform)||P1(t.translate)||P1(t.scale)||P1(t.rotate)||P1(t.perspective)||!hX()&&(P1(t.backdropFilter)||P1(t.filter))||M1.test(t.willChange||``)||N1.test(t.contain||``)}function mX(e){let t=yX(e);for(;cX(t)&&!gX(t);){if(pX(t))return t;if(fX(t))return null;t=yX(t)}return null}function hX(){return F1??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),F1}function gX(e){return/^(html|body|#document)$/.test(rX(e))}function _X(e){return iX(e).getComputedStyle(e)}function vX(e){return sX(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yX(e){if(rX(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||lX(e)&&e.host||aX(e);return lX(t)?t.host:t}function bX(e){let t=yX(e);return gX(t)?e.ownerDocument?e.ownerDocument.body:e.body:cX(t)&&uX(t)?t:bX(t)}function xX(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=bX(e),i=r===e.ownerDocument?.body,a=iX(r);if(i){let e=SX(a);return t.concat(a,a.visualViewport||[],uX(r)?r:[],e&&n?xX(e):[])}else return t.concat(r,xX(r,[],n))}function SX(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function CX(e){let t=_X(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=cX(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=h1(n)!==a||h1(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function wX(e){return sX(e)?e:e.contextElement}function TX(e){let t=wX(e);if(!cX(t))return _1(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=CX(t),o=(a?h1(n.width):n.width)/r,s=(a?h1(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}function EX(e){let t=iX(e);return!hX()||!t.visualViewport?I1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function DX(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==iX(e)?!1:t}function OX(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=wX(e),o=_1(1);t&&(r?sX(r)&&(o=TX(r)):o=TX(e));let s=DX(a,n,r)?EX(a):_1(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=iX(a),t=r&&sX(r)?iX(r):r,n=e,i=SX(n);for(;i&&r&&t!==n;){let e=TX(i),t=i.getBoundingClientRect(),r=_X(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=iX(i),i=SX(n)}}return XY({width:u,height:d,x:c,y:l})}function kX(e,t){let n=vX(e).scrollLeft;return t?t.left+n:OX(aX(e)).left+n}function AX(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-kX(e,n),y:n.top+t.scrollTop}}function jX(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=aX(r),s=t?fX(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=_1(1),u=_1(0),d=cX(r);if((d||!d&&!a)&&((rX(r)!==`body`||uX(o))&&(c=vX(r)),d)){let e=OX(r);l=TX(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?AX(o,c):_1(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function MX(e){return Array.from(e.getClientRects())}function NX(e){let t=aX(e),n=vX(e),r=e.ownerDocument.body,i=m1(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=m1(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+kX(e),s=-n.scrollTop;return _X(r).direction===`rtl`&&(o+=m1(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function PX(e,t){let n=iX(e),r=aX(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=hX();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=kX(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=L1&&(a-=o)}else l<=L1&&(a+=l);return{width:a,height:o,x:s,y:c}}function FX(e,t){let n=OX(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=cX(e)?TX(e):_1(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function IX(e,t,n){let r;if(t===`viewport`)r=PX(e,n);else if(t===`document`)r=NX(aX(e));else if(sX(t))r=FX(t,n);else{let n=EX(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return XY(r)}function LX(e,t){let n=yX(e);return n===t||!sX(n)||gX(n)?!1:_X(n).position===`fixed`||LX(n,t)}function RX(e,t){let n=t.get(e);if(n)return n;let r=xX(e,[],!1).filter(e=>sX(e)&&rX(e)!==`body`),i=null,a=_X(e).position===`fixed`,o=a?yX(e):e;for(;sX(o)&&!gX(o);){let t=_X(o),n=pX(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||uX(o)&&!n&&LX(e,o))?r=r.filter(e=>e!==o):i=t,o=yX(o)}return t.set(e,r),r}function zX(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?fX(t)?[]:RX(t,this._c):[].concat(n),r],o=IX(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=IX(t,a[e],i);s=m1(n.top,s),c=p1(n.right,c),l=p1(n.bottom,l),u=m1(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function BX(e){let{width:t,height:n}=CX(e);return{width:t,height:n}}function VX(e,t,n){let r=cX(t),i=aX(t),a=n===`fixed`,o=OX(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=_1(0);function l(){c.x=kX(i)}if(r||!r&&!a)if((rX(t)!==`body`||uX(i))&&(s=vX(t)),r){let e=OX(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?AX(i,s):_1(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function HX(e){return _X(e).position===`static`}function UX(e,t){if(!cX(e)||_X(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return aX(e)===n&&(n=n.ownerDocument.body),n}function WX(e,t){let n=iX(e);if(fX(e))return n;if(!cX(e)){let t=yX(e);for(;t&&!gX(t);){if(sX(t)&&!HX(t))return t;t=yX(t)}return n}let r=UX(e,t);for(;r&&dX(r)&&HX(r);)r=UX(r,t);return r&&gX(r)&&HX(r)&&!pX(r)?n:r||mX(e)||n}function GX(e){return _X(e).direction===`rtl`}function KX(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qX(e,t){let n=null,r,i=aX(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=g1(d),h=g1(i.clientWidth-(u+f)),g=g1(i.clientHeight-(d+p)),_=g1(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:m1(0,p1(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!KX(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function JX(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=wX(e),u=i||a?[...l?xX(l):[],...t?xX(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?qX(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?OX(e):null;c&&g();function g(){let t=OX(e);h&&!KX(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}function YX(){let e=XU(q1);if(e===void 0)throw Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}function XX(e){let t=YX(),[n,r]=TW(HJ({size:Y1},e),[`ref`,`style`,`size`]),i=()=>t.currentPlacement().split(`-`)[0],a=ZX(t.contentRef),o=()=>a()?.getPropertyValue(`background-color`)||`none`,s=()=>a()?.getPropertyValue(`border-${i()}-color`)||`none`,c=()=>a()?.getPropertyValue(`border-${i()}-width`)||`0px`,l=()=>Number.parseInt(c())*2*(Y1/n.size),u=()=>`rotate(${Z1[i()]} ${X1} ${X1}) translate(0 2)`;return K(YJ,wW({as:`div`,ref(e){let r=Wq(t.setArrowRef,n.ref);typeof r==`function`&&r(e)},"aria-hidden":`true`,get style(){return aJ({position:`absolute`,"font-size":`${n.size}px`,width:`1em`,height:`1em`,"pointer-events":`none`,fill:o(),stroke:s(),"stroke-width":l()},n.style)}},r,{get children(){let e=J1(),t=e.firstChild;return IU(()=>q(t,`transform`,u())),e}}))}function ZX(e){let[t,n]=PU();return LU(()=>{let t=e();t&&n(mJ(t).getComputedStyle(t))}),t}function QX(e){let t=YX(),[n,r]=TW(e,[`ref`,`style`]);return K(YJ,wW({as:`div`,ref(e){let r=Wq(t.setPositionerRef,n.ref);typeof r==`function`&&r(e)},"data-popper-positioner":``,get style(){return aJ({position:`absolute`,top:0,left:0,"min-width":`max-content`},n.style)}},r))}function $X(e){let{x:t=0,y:n=0,width:r=0,height:i=0}=e??{};if(typeof DOMRect==`function`)return new DOMRect(t,n,r,i);let a={x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:n+i,left:t};return{...a,toJSON:()=>a}}function eZ(e,t){return{contextElement:e,getBoundingClientRect:()=>{let n=t(e);return n?$X(n):e?e.getBoundingClientRect():$X()}}}function tZ(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function nZ(e,t){let[n,r]=e.split(`-`),i=Q1[n];return r?n===`left`||n===`right`?`${i} ${r===`start`?`top`:`bottom`}`:r===`start`?`${i} ${t===`rtl`?`right`:`left`}`:`${i} ${t===`rtl`?`left`:`right`}`:`${i} center`}function rZ(e){let t=HJ({getAnchorRect:e=>e?.getBoundingClientRect(),placement:`bottom`,gutter:0,shift:0,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,hideWhenDetached:!1,detachedPadding:0,arrowPadding:4,overflowPadding:8},e),[n,r]=PU(),[i,a]=PU(),[o,s]=PU(t.placement),c=()=>eZ(t.anchorRef?.(),t.getAnchorRect),{direction:l}=lY();async function u(){let e=c(),r=n(),a=i();if(!e||!r)return;let o=(a?.clientHeight||0)/2,u=typeof t.gutter==`number`?t.gutter+o:t.gutter??o;r.style.setProperty(`--kb-popper-content-overflow-padding`,`${t.overflowPadding}px`),e.getBoundingClientRect();let d=[B1(({placement:e})=>({mainAxis:u,crossAxis:e.split(`-`)[1]?void 0:t.shift,alignmentAxis:t.shift}))];if(t.flip!==!1){let e=typeof t.flip==`string`?t.flip.split(` `):void 0;if(e!==void 0&&!e.every(tZ))throw Error("`flip` expects a spaced-delimited list of placements");d.push(H1({padding:t.overflowPadding,fallbackPlacements:e}))}(t.slide||t.overlap)&&d.push(V1({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),d.push(U1({padding:t.overflowPadding,apply({availableWidth:e,availableHeight:n,rects:i}){let a=Math.round(i.reference.width);e=Math.floor(e),n=Math.floor(n),r.style.setProperty(`--kb-popper-anchor-width`,`${a}px`),r.style.setProperty(`--kb-popper-content-available-width`,`${e}px`),r.style.setProperty(`--kb-popper-content-available-height`,`${n}px`),t.sameWidth&&(r.style.width=`${a}px`),t.fitViewport&&(r.style.maxWidth=`${e}px`,r.style.maxHeight=`${n}px`)}})),t.hideWhenDetached&&d.push(W1({padding:t.detachedPadding})),a&&d.push(G1({element:a,padding:t.arrowPadding}));let f=await K1(e,r,{placement:t.placement,strategy:`absolute`,middleware:d,platform:{...z1,isRTL:()=>l()===`rtl`}});if(s(f.placement),t.onCurrentPlacementChange?.(f.placement),!r)return;r.style.setProperty(`--kb-popper-content-transform-origin`,nZ(f.placement,l()));let p=Math.round(f.x),m=Math.round(f.y),h;if(t.hideWhenDetached&&(h=f.middlewareData.hide?.referenceHidden?`hidden`:`visible`),Object.assign(r.style,{top:`0`,left:`0`,transform:`translate3d(${p}px, ${m}px, 0)`,visibility:h}),a&&f.middlewareData.arrow){let{x:e,y:t}=f.middlewareData.arrow,n=f.placement.split(`-`)[0];Object.assign(a.style,{left:e==null?``:`${e}px`,top:t==null?``:`${t}px`,[n]:`100%`})}}LU(()=>{let e=c(),t=n();!e||!t||WU(JX(e,t,u,{elementResize:typeof ResizeObserver==`function`}))}),LU(()=>{let e=n(),r=t.contentRef?.();!e||!r||queueMicrotask(()=>{e.style.zIndex=getComputedStyle(r).zIndex})});let d={currentPlacement:o,contentRef:()=>t.contentRef?.(),setPositionerRef:r,setArrowRef:a};return K(q1.Provider,{value:d,get children(){return t.children}})}function iZ(e){return r0.findIndex(t=>t.node===e)}function aZ(e){return r0[iZ(e)]}function oZ(e){return r0[r0.length-1].node===e}function sZ(){return r0.filter(e=>e.isPointerBlocking)}function cZ(){return[...sZ()].slice(-1)[0]}function lZ(){return sZ().length>0}function uZ(e){let t=iZ(cZ()?.node);return iZ(e)<t}function dZ(e){r0.push(e)}function fZ(e){let t=iZ(e);t<0||r0.splice(t,1)}function pZ(){for(let{node:e}of r0)e.style.pointerEvents=uZ(e)?`none`:`auto`}function mZ(e){if(lZ()&&!n0){let t=hJ(e);t0=document.body.style.pointerEvents,t.body.style.pointerEvents=`none`,n0=!0}}function hZ(e){if(lZ())return;let t=hJ(e);t.body.style.pointerEvents=t0,t.body.style.length===0&&t.body.removeAttribute(`style`),n0=!1}function gZ(e,t){let n,r=BJ,i=()=>hJ(t()),a=t=>e.onPointerDownOutside?.(t),o=t=>e.onFocusOutside?.(t),s=t=>e.onInteractOutside?.(t),c=n=>{let r=n.target;return!(r instanceof Element)||r.closest(`[${e0}]`)||!fJ(i(),r)||fJ(t(),r)?!1:!e.shouldExcludeElement?.(r)},l=e=>{function n(){let n=t(),r=e.target;if(!n||!r||!c(e))return;let i=wJ([a,s]);r.addEventListener(a0,i,{once:!0});let o=new CustomEvent(a0,{bubbles:!1,cancelable:!0,detail:{originalEvent:e,isContextMenu:e.button===2||TJ(e)&&e.button===0}});r.dispatchEvent(o)}e.pointerType===`touch`?(i().removeEventListener(`click`,n),r=n,i().addEventListener(`click`,n,{once:!0})):n()},u=e=>{let n=t(),r=e.target;if(!n||!r||!c(e))return;let i=wJ([o,s]);r.addEventListener(o0,i,{once:!0});let a=new CustomEvent(o0,{bubbles:!1,cancelable:!0,detail:{originalEvent:e,isContextMenu:!1}});r.dispatchEvent(a)};LU(()=>{Q(e.isDisabled)||(n=window.setTimeout(()=>{i().addEventListener(`pointerdown`,l,!0)},0),i().addEventListener(`focusin`,u,!0),WU(()=>{window.clearTimeout(n),i().removeEventListener(`click`,r),i().removeEventListener(`pointerdown`,l,!0),i().removeEventListener(`focusin`,u,!0)}))})}function _Z(e){let t=t=>{t.key===U$.Escape&&e.onEscapeKeyDown?.(t)};LU(()=>{if(Q(e.isDisabled))return;let n=e.ownerDocument?.()??hJ();n.addEventListener(`keydown`,t),WU(()=>{n.removeEventListener(`keydown`,t)})})}function vZ(){return XU(s0)}function yZ(e){let t,n=vZ(),[r,i]=TW(e,[`ref`,`disableOutsidePointerEvents`,`excludedElements`,`onEscapeKeyDown`,`onPointerDownOutside`,`onFocusOutside`,`onInteractOutside`,`onDismiss`,`bypassTopMostLayerCheck`]),a=new Set([]),o=e=>{a.add(e);let t=n?.registerNestedLayer(e);return()=>{a.delete(e),t?.()}};gZ({shouldExcludeElement:e=>t?r.excludedElements?.some(t=>fJ(t(),e))||[...a].some(t=>fJ(t,e)):!1,onPointerDownOutside:e=>{!t||i0.isBelowPointerBlockingLayer(t)||!r.bypassTopMostLayerCheck&&!i0.isTopMostLayer(t)||(r.onPointerDownOutside?.(e),r.onInteractOutside?.(e),e.defaultPrevented||r.onDismiss?.())},onFocusOutside:e=>{r.onFocusOutside?.(e),r.onInteractOutside?.(e),e.defaultPrevented||r.onDismiss?.()}},()=>t),_Z({ownerDocument:()=>hJ(t),onEscapeKeyDown:e=>{!t||!i0.isTopMostLayer(t)||(r.onEscapeKeyDown?.(e),!e.defaultPrevented&&r.onDismiss&&(e.preventDefault(),r.onDismiss()))}}),UU(()=>{if(!t)return;i0.addLayer({node:t,isPointerBlocking:r.disableOutsidePointerEvents,dismiss:r.onDismiss});let e=n?.registerNestedLayer(t);i0.assignPointerEventToLayers(),i0.disableBodyPointerEvents(t),WU(()=>{t&&(i0.removeLayer(t),e?.(),i0.assignPointerEventToLayers(),i0.restoreBodyPointerEvents(t))})}),LU(HU([()=>t,()=>r.disableOutsidePointerEvents],([e,t])=>{if(!e)return;let n=i0.find(e);n&&n.isPointerBlocking!==t&&(n.isPointerBlocking=t,i0.assignPointerEventToLayers()),t&&i0.disableBodyPointerEvents(e),WU(()=>{i0.restoreBodyPointerEvents(e)})},{defer:!0}));let s={registerNestedLayer:o};return K(s0.Provider,{value:s,get children(){return K(YJ,wW({as:`div`,ref(e){let n=Wq(e=>t=e,r.ref);typeof n==`function`&&n(e)}},i))}})}function bZ(e={}){let[t,n]=$J({value:()=>Q(e.open),defaultValue:()=>!!Q(e.defaultOpen),onChange:t=>e.onOpenChange?.(t)}),r=()=>{n(!0)},i=()=>{n(!1)};return{isOpen:t,setIsOpen:n,open:r,close:i,toggle:()=>{t()?i():r()}}}function xZ(e){return t=>(e(t),()=>e(void 0))}function SZ(e){let t=HJ({id:`form-control-${DW()}`},e),[n,r]=PU(),[i,a]=PU(),[o,s]=PU(),[c,l]=PU();return{formControlContext:{name:()=>Q(t.name)??Q(t.id),dataset:G(()=>({"data-valid":Q(t.validationState)===`valid`?``:void 0,"data-invalid":Q(t.validationState)===`invalid`?``:void 0,"data-required":Q(t.required)?``:void 0,"data-disabled":Q(t.disabled)?``:void 0,"data-readonly":Q(t.readOnly)?``:void 0})),validationState:()=>Q(t.validationState),isRequired:()=>Q(t.required),isDisabled:()=>Q(t.disabled),isReadOnly:()=>Q(t.readOnly),labelId:n,fieldId:i,descriptionId:o,errorMessageId:c,getAriaLabelledBy:(e,t,r)=>{let i=r!=null||n()!=null;return[r,n(),i&&t!=null?e:void 0].filter(Boolean).join(` `)||void 0},getAriaDescribedBy:e=>[o(),c(),e].filter(Boolean).join(` `)||void 0,generateId:dJ(()=>Q(t.id)),registerLabel:xZ(r),registerField:xZ(a),registerDescription:xZ(s),registerErrorMessage:xZ(l)}}}function CZ(){let e=XU(f0);if(e===void 0)throw Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function wZ(e){let t=CZ(),n=HJ({id:t.generateId(`description`)},e);return LU(()=>WU(t.registerDescription(n.id))),K(YJ,wW({as:`div`},()=>t.dataset(),n))}function TZ(e){let t,n=CZ(),[r,i]=TW(HJ({id:n.generateId(`label`)},e),[`ref`]),a=qJ(()=>t,()=>`label`);return LU(()=>WU(n.registerLabel(i.id))),K(YJ,wW({as:`label`,ref(e){let n=Wq(e=>t=e,r.ref);typeof n==`function`&&n(e)},get for(){return pK(()=>a()===`label`)()?n.fieldId():void 0}},()=>n.dataset(),i))}function EZ(e,t){LU(HU(e,e=>{if(e==null)return;let n=DZ(e);n!=null&&(n.addEventListener(`reset`,t,{passive:!0}),WU(()=>{n.removeEventListener(`reset`,t)}))}))}function DZ(e){return OZ(e)?e.form:e.closest(`form`)}function OZ(e){return e.matches(`textarea, input, select, button`)}function kZ(e){let t=CZ(),[n,r]=TW(HJ({id:t.generateId(`error-message`)},e),[`forceMount`]),i=()=>t.validationState()===`invalid`;return LU(()=>{i()&&WU(t.registerErrorMessage(r.id))}),K(AW,{get when(){return n.forceMount||i()},get children(){return K(YJ,wW({as:`div`},()=>t.dataset(),r))}})}function AZ(e,t){let[n,r]=PU(!1),i={pause(){r(!0)},resume(){r(!1)}},a=null,o=t=>e.onMountAutoFocus?.(t),s=t=>e.onUnmountAutoFocus?.(t),c=()=>hJ(t()),l=()=>{let e=c().createElement(`span`);return e.setAttribute(`data-focus-trap`,``),e.tabIndex=0,Object.assign(e.style,Z$),e},u=()=>{let e=t();return e?AJ(e,!0).filter(e=>!e.hasAttribute(`data-focus-trap`)):[]},d=()=>{let e=u();return e.length>0?e[0]:null},f=()=>{let e=u();return e.length>0?e[e.length-1]:null},p=()=>{let e=t();if(!e)return!1;let n=pJ(e);return!n||fJ(e,n)?!1:MJ(n)};LU(()=>{let e=t();if(!e)return;g0.add(i);let n=pJ(e);if(!fJ(e,n)){let t=new CustomEvent(p0,h0);e.addEventListener(p0,o),e.dispatchEvent(t),t.defaultPrevented||setTimeout(()=>{EJ(d()),pJ(e)===n&&EJ(e)},0)}WU(()=>{e.removeEventListener(p0,o),setTimeout(()=>{let t=new CustomEvent(m0,h0);p()&&t.preventDefault(),e.addEventListener(m0,s),e.dispatchEvent(t),t.defaultPrevented||EJ(n??c().body),e.removeEventListener(m0,s),g0.remove(i)},0)})}),LU(()=>{let r=t();if(!r||!Q(e.trapFocus)||n())return;let i=e=>{let t=e.target;t?.closest(`[${e0}]`)||(fJ(r,t)?a=t:EJ(a))},o=e=>{let t=e.relatedTarget??pJ(r);t?.closest(`[${e0}]`)||fJ(r,t)||EJ(a)};c().addEventListener(`focusin`,i),c().addEventListener(`focusout`,o),WU(()=>{c().removeEventListener(`focusin`,i),c().removeEventListener(`focusout`,o)})}),LU(()=>{let r=t();if(!r||!Q(e.trapFocus)||n())return;let i=l();r.insertAdjacentElement(`afterbegin`,i);let a=l();r.insertAdjacentElement(`beforeend`,a);function o(e){let t=d(),n=f();e.relatedTarget===t?EJ(n):EJ(t)}i.addEventListener(`focusin`,o),a.addEventListener(`focusin`,o);let s=new MutationObserver(e=>{for(let t of e)t.previousSibling===a&&(a.remove(),r.insertAdjacentElement(`beforeend`,a)),t.nextSibling===i&&(i.remove(),r.insertAdjacentElement(`afterbegin`,i))});s.observe(r,{childList:!0,subtree:!1}),WU(()=>{i.removeEventListener(`focusin`,o),a.removeEventListener(`focusin`,o),i.remove(),a.remove(),s.disconnect()})})}function jZ(e){LU(()=>{Q(e.isDisabled)||WU(MZ(Q(e.targets),Q(e.root)))})}function MZ(e,t=document.body){let n=new Set(e),r=new Set,i=e=>{for(let t of e.querySelectorAll(`[${_0}], [${e0}]`))n.add(t);let t=e=>{if(n.has(e)||e.parentElement&&r.has(e.parentElement)&&e.parentElement.getAttribute(`role`)!==`row`)return NodeFilter.FILTER_REJECT;for(let t of n)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),o=t(e);if(o===NodeFilter.FILTER_ACCEPT&&a(e),o!==NodeFilter.FILTER_REJECT){let e=i.nextNode();for(;e!=null;)a(e),e=i.nextNode()}},a=e=>{let t=v0.get(e)??0;e.getAttribute(`aria-hidden`)===`true`&&t===0||(t===0&&e.setAttribute(`aria-hidden`,`true`),r.add(e),v0.set(e,t+1))};y0.length&&y0[y0.length-1].disconnect(),i(t);let o=new MutationObserver(e=>{for(let t of e)if(!(t.type!==`childList`||t.addedNodes.length===0)&&![...n,...r].some(e=>e.contains(t.target))){for(let e of t.removedNodes)e instanceof Element&&(n.delete(e),r.delete(e));for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&(e.dataset.liveAnnouncer===`true`||e.dataset.reactAriaTopLayer===`true`)?n.add(e):e instanceof Element&&i(e)}});o.observe(t,{childList:!0,subtree:!0});let s={observe(){o.observe(t,{childList:!0,subtree:!0})},disconnect(){o.disconnect()}};return y0.push(s),()=>{o.disconnect();for(let e of r){let t=v0.get(e);if(t==null)return;t===1?(e.removeAttribute(`aria-hidden`),v0.delete(e)):v0.set(e,t-1)}s===y0[y0.length-1]?(y0.pop(),y0.length&&y0[y0.length-1].observe()):y0.splice(y0.indexOf(s),1)}}function NZ(){let e=XU(I0);if(e===void 0)throw Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}function PZ(){let e=XU(L0);if(e===void 0)throw Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function FZ(e){let t=CZ(),n=NZ(),[r,i]=TW(HJ({id:`${t.generateId(`item`)}-${DW()}`},e),[`value`,`disabled`,`onPointerDown`]),[a,o]=PU(),[s,c]=PU(),[l,u]=PU(),[d,f]=PU(),[p,m]=PU(!1),h=G(()=>n.isDefaultValue(r.value)),g=G(()=>n.isSelectedValue(r.value)),_=G(()=>r.disabled||t.isDisabled()||!1),v=e=>{CJ(e,r.onPointerDown),p()&&e.preventDefault()},y=G(()=>({...t.dataset(),"data-disabled":_()?``:void 0,"data-checked":g()?``:void 0})),b={value:()=>r.value,dataset:y,isDefault:h,isSelected:g,isDisabled:_,inputId:a,labelId:s,descriptionId:l,inputRef:d,select:()=>n.setSelectedValue(r.value),generateId:dJ(()=>i.id),registerInput:xZ(o),registerLabel:xZ(c),registerDescription:xZ(u),setIsFocused:m,setInputRef:f};return K(L0.Provider,{value:b,get children(){return K(YJ,wW({as:`div`,role:`group`,onPointerDown:v},y,i))}})}function IZ(e){let t=PZ(),[n,r]=TW(HJ({id:t.generateId(`control`)},e),[`onClick`,`onKeyDown`]);return K(YJ,wW({as:`div`,onClick:e=>{CJ(e,n.onClick),t.select(),t.inputRef()?.focus()},onKeyDown:e=>{CJ(e,n.onKeyDown),e.key===U$.Space&&(t.select(),t.inputRef()?.focus())}},()=>t.dataset(),r))}function LZ(e){let t=PZ(),n=HJ({id:t.generateId(`description`)},e);return LU(()=>WU(t.registerDescription(n.id))),K(YJ,wW({as:`div`},()=>t.dataset(),n))}function RZ(e){let t=PZ(),[n,r]=TW(HJ({id:t.generateId(`indicator`)},e),[`ref`,`forceMount`]),[i,a]=PU(),{present:o}=u0({show:()=>n.forceMount||t.isSelected(),element:()=>i()??null});return K(AW,{get when(){return o()},get children(){return K(YJ,wW({as:`div`,ref(e){let t=Wq(a,n.ref);typeof t==`function`&&t(e)}},()=>t.dataset(),r))}})}function zZ(e){let t=CZ(),n=NZ(),r=PZ(),[i,a]=TW(HJ({id:r.generateId(`input`)},e),[`ref`,`style`,`aria-labelledby`,`aria-describedby`,`onChange`,`onFocus`,`onBlur`]),o=()=>[i[`aria-labelledby`],r.labelId(),i[`aria-labelledby`]!=null&&a[`aria-label`]!=null?a.id:void 0].filter(Boolean).join(` `)||void 0,s=()=>[i[`aria-describedby`],r.descriptionId(),n.ariaDescribedBy()].filter(Boolean).join(` `)||void 0,[c,l]=PU(!1);return LU(HU([()=>r.isSelected(),()=>r.value()],e=>{if(!e[0]&&e[1]===r.value())return;l(!0);let t=r.inputRef();t?.dispatchEvent(new Event(`input`,{bubbles:!0,cancelable:!0})),t?.dispatchEvent(new Event(`change`,{bubbles:!0,cancelable:!0}))},{defer:!0})),LU(()=>WU(r.registerInput(a.id))),K(YJ,wW({as:`input`,ref(e){let t=Wq(r.setInputRef,i.ref);typeof t==`function`&&t(e)},type:`radio`,get name(){return t.name()},get value(){return r.value()},get checked(){return r.isSelected()},get required(){return t.isRequired()},get disabled(){return r.isDisabled()},get readonly(){return t.isReadOnly()},get style(){return aJ({...Z$},i.style)},get"aria-labelledby"(){return o()},get"aria-describedby"(){return s()},onChange:e=>{if(CJ(e,i.onChange),e.stopPropagation(),!c()){n.setSelectedValue(r.value());let t=e.target;t.checked=r.isSelected()}l(!1)},onFocus:e=>{CJ(e,i.onFocus),r.setIsFocused(!0)},onBlur:e=>{CJ(e,i.onBlur),r.setIsFocused(!1)}},()=>r.dataset(),a))}function BZ(e){let t=PZ(),n=HJ({id:t.generateId(`label`)},e);return LU(()=>WU(t.registerLabel(n.id))),K(YJ,wW({as:`label`,get for(){return t.inputId()}},()=>t.dataset(),n))}function VZ(e){return K(TZ,wW({as:`span`},e))}function HZ(e){let t,[n,r,i]=TW(HJ({id:`radiogroup-${DW()}`,orientation:`vertical`},e),[`ref`,`value`,`defaultValue`,`onChange`,`orientation`,`aria-labelledby`,`aria-describedby`],d0),[a,o]=QJ({value:()=>n.value,defaultValue:()=>n.defaultValue,onChange:e=>n.onChange?.(e)}),{formControlContext:s}=SZ(r);EZ(()=>t,()=>o(n.defaultValue??``));let c=()=>s.getAriaLabelledBy(Q(r.id),i[`aria-label`],n[`aria-labelledby`]),l=()=>s.getAriaDescribedBy(n[`aria-describedby`]),u=t=>t===e.defaultValue,d=e=>e===a(),f={ariaDescribedBy:l,isDefaultValue:u,isSelectedValue:d,setSelectedValue:e=>{if(!(s.isReadOnly()||s.isDisabled())&&(o(e),t))for(let e of t.querySelectorAll(`[type='radio']`)){let t=e;t.checked=d(t.value)}}};return K(f0.Provider,{value:s,get children(){return K(I0.Provider,{value:f,get children(){return K(YJ,wW({as:`div`,ref(e){let r=Wq(e=>t=e,n.ref);typeof r==`function`&&r(e)},role:`radiogroup`,get id(){return Q(r.id)},get"aria-invalid"(){return s.validationState()===`invalid`||void 0},get"aria-required"(){return s.isRequired()||void 0},get"aria-disabled"(){return s.isDisabled()||void 0},get"aria-readonly"(){return s.isReadOnly()||void 0},get"aria-orientation"(){return n.orientation},get"aria-labelledby"(){return c()},get"aria-describedby"(){return l()}},()=>s.dataset(),i))}})}})}function UZ(e,t,n){let r=uY({usage:`search`,sensitivity:`base`});return bY({selectionManager:()=>Q(e.selectionManager),keyboardDelegate:G(()=>Q(e.keyboardDelegate)||new z0(e.collection,t,r)),autoFocus:()=>Q(e.autoFocus),deferAutoFocus:()=>Q(e.deferAutoFocus),shouldFocusWrap:()=>Q(e.shouldFocusWrap),disallowEmptySelection:()=>Q(e.disallowEmptySelection),selectOnFocus:()=>Q(e.selectOnFocus),disallowTypeAhead:()=>Q(e.disallowTypeAhead),shouldUseVirtualFocus:()=>Q(e.shouldUseVirtualFocus),allowsTabNavigation:()=>Q(e.allowsTabNavigation),isVirtualized:()=>Q(e.isVirtualized),scrollToKey:t=>Q(e.scrollToKey)?.(t),orientation:()=>Q(e.orientation)},t)}function WZ(){return XU(B0)}function GZ(){return XU(V0)}function KZ(){return XU(H0)}function qZ(){let e=KZ();if(e===void 0)throw Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}function JZ(){let e=XU(U0);if(e===void 0)throw Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}function YZ(){let e=XU(W0);if(e===void 0)throw Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function XZ(e){let t,n=YZ(),r=qZ(),[i,a]=TW(HJ({id:n.generateId(`item-${DW()}`)},e),[`ref`,`textValue`,`disabled`,`closeOnSelect`,`checked`,`indeterminate`,`onSelect`,`onPointerMove`,`onPointerLeave`,`onPointerDown`,`onPointerUp`,`onClick`,`onKeyDown`,`onMouseDown`,`onFocus`]),[o,s]=PU(),[c,l]=PU(),[u,d]=PU(),f=()=>r.listState().selectionManager(),p=()=>a.id,m=()=>f().focusedKey()===p(),h=()=>{i.onSelect?.(),i.closeOnSelect&&setTimeout(()=>{r.close(!0)})};NY({getItem:()=>({ref:()=>t,type:`item`,key:p(),textValue:i.textValue??u()?.textContent??t?.textContent??``,disabled:i.disabled??!1})});let g=xY({key:p,selectionManager:f,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>i.disabled},()=>t),_=e=>{CJ(e,i.onPointerMove),e.pointerType===`mouse`&&(i.disabled?r.onItemLeave(e):(r.onItemEnter(e),e.defaultPrevented||(EJ(e.currentTarget),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(p()))))},v=e=>{CJ(e,i.onPointerLeave),e.pointerType===`mouse`&&r.onItemLeave(e)},y=e=>{CJ(e,i.onPointerUp),!i.disabled&&e.button===0&&h()},b=e=>{if(CJ(e,i.onKeyDown),!e.repeat&&!i.disabled)switch(e.key){case`Enter`:case` `:h();break}},x=G(()=>{if(i.indeterminate)return`mixed`;if(i.checked!=null)return i.checked}),S=G(()=>({"data-indeterminate":i.indeterminate?``:void 0,"data-checked":i.checked&&!i.indeterminate?``:void 0,"data-disabled":i.disabled?``:void 0,"data-highlighted":m()?``:void 0})),C={isChecked:()=>i.checked,dataset:S,setLabelRef:d,generateId:dJ(()=>a.id),registerLabel:xZ(s),registerDescription:xZ(l)};return K(U0.Provider,{value:C,get children(){return K(YJ,wW({as:`div`,ref(e){let n=Wq(e=>t=e,i.ref);typeof n==`function`&&n(e)},get tabIndex(){return g.tabIndex()},get"aria-checked"(){return x()},get"aria-disabled"(){return i.disabled},get"aria-labelledby"(){return o()},get"aria-describedby"(){return c()},get"data-key"(){return g.dataKey()},get onPointerDown(){return wJ([i.onPointerDown,g.onPointerDown])},get onPointerUp(){return wJ([y,g.onPointerUp])},get onClick(){return wJ([i.onClick,g.onClick])},get onKeyDown(){return wJ([b,g.onKeyDown])},get onMouseDown(){return wJ([i.onMouseDown,g.onMouseDown])},get onFocus(){return wJ([i.onFocus,g.onFocus])},onPointerMove:_,onPointerLeave:v},S,a))}})}function ZZ(e){let[t,n]=TW(HJ({closeOnSelect:!1},e),[`checked`,`defaultChecked`,`onChange`,`onSelect`]),r=tY({isSelected:()=>t.checked,defaultIsSelected:()=>t.defaultChecked,onSelectedChange:e=>t.onChange?.(e),isDisabled:()=>n.disabled});return K(XZ,wW({role:`menuitemcheckbox`,get checked(){return r.isSelected()},onSelect:()=>{t.onSelect?.(),r.toggle()}},n))}function QZ(e){let t=YZ(),n=qZ(),r=WZ(),{direction:i}=lY(),[a,o]=TW(HJ({id:t.generateId(`trigger`)},e),[`ref`,`id`,`disabled`,`onPointerDown`,`onClick`,`onKeyDown`,`onMouseOver`,`onFocus`]),s=()=>t.value();r!==void 0&&(s=()=>t.value()??a.id,r.lastValue()===void 0&&r.setLastValue(s));let c=qJ(()=>n.triggerRef(),()=>`button`),l=G(()=>c()===`a`&&n.triggerRef()?.getAttribute(`href`)!=null);LU(HU(()=>r?.value(),e=>{l()&&e===s()&&n.triggerRef()?.focus()}));let u=()=>{r===void 0?n.toggle(!0):n.isOpen()?r.value()===s()&&r.closeMenu():(r.autoFocusMenu()||r.setAutoFocusMenu(!0),n.open(!1))};return LU(()=>WU(n.registerTriggerId(a.id))),K(ZJ,wW({ref(e){let t=Wq(n.setTriggerRef,a.ref);typeof t==`function`&&t(e)},get"data-kb-menu-value-trigger"(){return t.value()},get id(){return a.id},get disabled(){return a.disabled},"aria-haspopup":`true`,get"aria-expanded"(){return n.isOpen()},get"aria-controls"(){return pK(()=>!!n.isOpen())()?n.contentId():void 0},get"data-highlighted"(){return s()!==void 0&&r?.value()===s()?!0:void 0},get tabIndex(){return r===void 0?void 0:r.value()===s()||r.lastValue()===s()?0:-1},onPointerDown:e=>{CJ(e,a.onPointerDown),e.currentTarget.dataset.pointerType=e.pointerType,!a.disabled&&e.pointerType!==`touch`&&e.button===0&&u()},onMouseOver:e=>{CJ(e,a.onMouseOver),n.triggerRef()?.dataset.pointerType!==`touch`&&!a.disabled&&r!==void 0&&r.value()!==void 0&&r.setValue(s)},onClick:e=>{CJ(e,a.onClick),a.disabled||e.currentTarget.dataset.pointerType===`touch`&&u()},onKeyDown:e=>{if(CJ(e,a.onKeyDown),!a.disabled){if(l())switch(e.key){case`Enter`:case` `:return}switch(e.key){case`Enter`:case` `:case K0.first(t.orientation()):e.stopPropagation(),e.preventDefault(),KJ(e.currentTarget),n.open(`first`),r?.setAutoFocusMenu(!0),r?.setValue(s);break;case K0.last(t.orientation()):e.stopPropagation(),e.preventDefault(),n.open(`last`);break;case G0.next(i(),t.orientation()):if(r===void 0)break;e.stopPropagation(),e.preventDefault(),r.nextMenu();break;case G0.previous(i(),t.orientation()):if(r===void 0)break;e.stopPropagation(),e.preventDefault(),r.previousMenu();break}}},onFocus:e=>{CJ(e,a.onFocus),r!==void 0&&e.currentTarget.dataset.pointerType!==`touch`&&r.setValue(s)},role:r===void 0?void 0:`menuitem`},()=>n.dataset(),o))}function $Z(e){let t,n=YZ(),r=qZ(),i=WZ(),a=GZ(),{direction:o}=lY(),[s,c]=TW(HJ({id:n.generateId(`content-${DW()}`)},e),[`ref`,`id`,`style`,`onOpenAutoFocus`,`onCloseAutoFocus`,`onEscapeKeyDown`,`onFocusOutside`,`onPointerEnter`,`onPointerMove`,`onKeyDown`,`onMouseDown`,`onFocusIn`,`onFocusOut`]),l=0,u=()=>r.parentMenuContext()==null&&i===void 0&&n.isModal(),d=UZ({selectionManager:r.listState().selectionManager,collection:r.listState().collection,autoFocus:r.autoFocus,deferAutoFocus:!0,shouldFocusWrap:!0,disallowTypeAhead:()=>!r.listState().selectionManager().isFocused(),orientation:()=>n.orientation()===`horizontal`?`vertical`:`horizontal`},()=>t);AZ({trapFocus:()=>u()&&r.isOpen(),onMountAutoFocus:e=>{i===void 0&&s.onOpenAutoFocus?.(e)},onUnmountAutoFocus:s.onCloseAutoFocus},()=>t);let f=e=>{if(fJ(e.currentTarget,e.target)&&(e.key===`Tab`&&r.isOpen()&&e.preventDefault(),i!==void 0&&e.currentTarget.getAttribute(`aria-haspopup`)!==`true`))switch(e.key){case G0.next(o(),n.orientation()):e.stopPropagation(),e.preventDefault(),r.close(!0),i.setAutoFocusMenu(!0),i.nextMenu();break;case G0.previous(o(),n.orientation()):if(e.currentTarget.hasAttribute(`data-closed`))break;e.stopPropagation(),e.preventDefault(),r.close(!0),i.setAutoFocusMenu(!0),i.previousMenu();break}},p=e=>{s.onEscapeKeyDown?.(e),i?.setAutoFocusMenu(!1),r.close(!0)},m=e=>{s.onFocusOutside?.(e),n.isModal()&&e.preventDefault()},h=e=>{CJ(e,s.onPointerEnter),r.isOpen()&&(r.parentMenuContext()?.listState().selectionManager().setFocused(!1),r.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0))},g=e=>{if(CJ(e,s.onPointerMove),e.pointerType!==`mouse`)return;let t=e.target,n=l!==e.clientX;fJ(e.currentTarget,t)&&n&&(r.setPointerDir(e.clientX>l?`right`:`left`),l=e.clientX)};LU(()=>WU(r.registerContentId(s.id))),WU(()=>r.setContentRef(void 0));let _={ref:Wq(e=>{r.setContentRef(e),t=e},s.ref),role:`menu`,get id(){return s.id},get tabIndex(){return d.tabIndex()},get"aria-labelledby"(){return r.triggerId()},onKeyDown:wJ([s.onKeyDown,d.onKeyDown,f]),onMouseDown:wJ([s.onMouseDown,d.onMouseDown]),onFocusIn:wJ([s.onFocusIn,d.onFocusIn]),onFocusOut:wJ([s.onFocusOut,d.onFocusOut]),onPointerEnter:h,onPointerMove:g,get"data-orientation"(){return n.orientation()}};return K(AW,{get when(){return r.contentPresent()},get children(){return K(AW,{get when(){return a===void 0||r.parentMenuContext()!=null},get fallback(){return K(YJ,wW({as:`div`},()=>r.dataset(),_,c))},get children(){return K($1.Positioner,{get children(){return K(yZ,wW({get disableOutsidePointerEvents(){return pK(()=>!!u())()&&r.isOpen()},get excludedElements(){return[r.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return aJ({"--kb-menu-content-transform-origin":`var(--kb-popper-content-transform-origin)`,position:`relative`},s.style)},onEscapeKeyDown:p,onFocusOutside:m,get onDismiss(){return r.close}},()=>r.dataset(),_,c))}})}})}})}function eQ(e){let t,n=YZ(),r=qZ(),[i,a]=TW(e,[`ref`]);return P0({element:()=>t??null,enabled:()=>r.contentPresent()&&n.preventScroll()}),K($Z,wW({ref(e){let n=Wq(e=>{t=e},i.ref);typeof n==`function`&&n(e)}},a))}function tQ(){let e=XU(q0);if(e===void 0)throw Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function nQ(e){let t=HJ({id:YZ().generateId(`group-${DW()}`)},e),[n,r]=PU(),i={generateId:dJ(()=>t.id),registerLabelId:xZ(r)};return K(q0.Provider,{value:i,get children(){return K(YJ,wW({as:`div`,role:`group`,get"aria-labelledby"(){return n()}},t))}})}function rQ(e){let t=tQ(),[n,r]=TW(HJ({id:t.generateId(`label`)},e),[`id`]);return LU(()=>WU(t.registerLabelId(n.id))),K(YJ,wW({as:`span`,get id(){return n.id},"aria-hidden":`true`},r))}function iQ(e){let t=qZ();return K(YJ,wW({as:`span`,"aria-hidden":`true`},()=>t.dataset(),HJ({children:`▼`},e)))}function aQ(e){return K(XZ,wW({role:`menuitem`,closeOnSelect:!0},e))}function oQ(e){let t=JZ(),[n,r]=TW(HJ({id:t.generateId(`description`)},e),[`id`]);return LU(()=>WU(t.registerDescription(n.id))),K(YJ,wW({as:`div`,get id(){return n.id}},()=>t.dataset(),r))}function sQ(e){let t=JZ(),[n,r]=TW(HJ({id:t.generateId(`indicator`)},e),[`forceMount`]);return K(AW,{get when(){return n.forceMount||t.isChecked()},get children(){return K(YJ,wW({as:`div`},()=>t.dataset(),r))}})}function cQ(e){let t=JZ(),[n,r]=TW(HJ({id:t.generateId(`label`)},e),[`ref`,`id`]);return LU(()=>WU(t.registerLabel(n.id))),K(YJ,wW({as:`div`,ref(e){let r=Wq(t.setLabelRef,n.ref);typeof r==`function`&&r(e)},get id(){return n.id}},()=>t.dataset(),r))}function lQ(e){let t=qZ();return K(AW,{get when(){return t.contentPresent()},get children(){return K(oG,e)}})}function uQ(){let e=XU(J0);if(e===void 0)throw Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function dQ(e){let[t,n]=TW(HJ({id:YZ().generateId(`radiogroup-${DW()}`)},e),[`value`,`defaultValue`,`onChange`,`disabled`]),[r,i]=QJ({value:()=>t.value,defaultValue:()=>t.defaultValue,onChange:e=>t.onChange?.(e)});return K(J0.Provider,{value:{isDisabled:()=>t.disabled,isSelectedValue:e=>e===r(),setSelectedValue:e=>i(e)},get children(){return K(nQ,n)}})}function fQ(e){let t=uQ(),[n,r]=TW(HJ({closeOnSelect:!1},e),[`value`,`onSelect`]);return K(XZ,wW({role:`menuitemradio`,get checked(){return t.isSelectedValue(n.value)},onSelect:()=>{n.onSelect?.(),t.setSelectedValue(n.value)}},r))}function pQ(e,t,n){let r=e.split(`-`)[0],i=n.getBoundingClientRect(),a=[],o=t.clientX,s=t.clientY;switch(r){case`top`:a.push([o,s+5]),a.push([i.left,i.bottom]),a.push([i.left,i.top]),a.push([i.right,i.top]),a.push([i.right,i.bottom]);break;case`right`:a.push([o-5,s]),a.push([i.left,i.top]),a.push([i.right,i.top]),a.push([i.right,i.bottom]),a.push([i.left,i.bottom]);break;case`bottom`:a.push([o,s-5]),a.push([i.right,i.top]),a.push([i.right,i.bottom]),a.push([i.left,i.bottom]),a.push([i.left,i.top]);break;case`left`:a.push([o+5,s]),a.push([i.right,i.bottom]),a.push([i.left,i.bottom]),a.push([i.left,i.top]),a.push([i.right,i.top]);break}return a}function mQ(e,t){return t?VJ([e.clientX,e.clientY],t):!1}function hQ(e){let t=YZ(),n=CY(),r=KZ(),i=WZ(),a=GZ(),[o,s]=TW(HJ({placement:t.orientation()===`horizontal`?`bottom-start`:`right-start`},e),[`open`,`defaultOpen`,`onOpenChange`]),c=0,l=null,u=`right`,[d,f]=PU(),[p,m]=PU(),[h,g]=PU(),[_,v]=PU(),[y,b]=PU(!0),[x,S]=PU(s.placement),[C,w]=PU([]),[T,E]=PU([]),{DomCollectionProvider:D}=MY({items:T,onItemsChange:E}),O=bZ({open:()=>o.open,defaultOpen:()=>o.defaultOpen,onOpenChange:e=>o.onOpenChange?.(e)}),{present:ee}=u0({show:()=>t.forceMount()||O.isOpen(),element:()=>_()??null}),te=SY({selectionMode:`none`,dataSource:T}),ne=e=>{b(e),O.open()},re=(e=!1)=>{O.close(),e&&r&&r.close(!0)},ie=e=>{b(e),O.toggle()},k=()=>{let e=_();e&&(EJ(e),te.selectionManager().setFocused(!0),te.selectionManager().setFocusedKey(void 0))},ae=()=>{a==null?k():setTimeout(()=>k())},oe=e=>{w(t=>[...t,e]);let t=r?.registerNestedMenu(e);return()=>{w(t=>sJ(t,e)),t?.()}},se=e=>u===l?.side&&mQ(e,l?.area),ce=e=>{se(e)&&e.preventDefault()},le=e=>{se(e)||ae()},ue=e=>{se(e)&&e.preventDefault()};jZ({isDisabled:()=>!(r==null&&O.isOpen()&&t.isModal()),targets:()=>[_(),...C()].filter(Boolean)}),LU(()=>{let e=_();if(!e||!r)return;let t=r.registerNestedMenu(e);WU(()=>{t()})}),LU(()=>{r===void 0&&i?.registerMenu(t.value(),[_(),...C()])}),LU(()=>{r!==void 0||i===void 0||(i.value()===t.value()?(h()?.focus(),i.autoFocusMenu()&&ne(!0)):re())}),LU(()=>{r!==void 0||i===void 0||O.isOpen()&&i.setValue(t.value())}),WU(()=>{r===void 0&&i?.unregisterMenu(t.value())});let de={dataset:G(()=>({"data-expanded":O.isOpen()?``:void 0,"data-closed":O.isOpen()?void 0:``})),isOpen:O.isOpen,contentPresent:ee,nestedMenus:C,currentPlacement:x,pointerGraceTimeoutId:()=>c,autoFocus:y,listState:()=>te,parentMenuContext:()=>r,triggerRef:h,contentRef:_,triggerId:d,contentId:p,setTriggerRef:g,setContentRef:v,open:ne,close:re,toggle:ie,focusContent:ae,onItemEnter:ce,onItemLeave:le,onTriggerLeave:ue,setPointerDir:e=>u=e,setPointerGraceTimeoutId:e=>c=e,setPointerGraceIntent:e=>l=e,registerNestedMenu:oe,registerItemToParentDomCollection:n?.registerItem,registerTriggerId:xZ(f),registerContentId:xZ(m)};return K(D,{get children(){return K(H0.Provider,{value:de,get children(){return K(AW,{when:a===void 0,get fallback(){return s.children},get children(){return K($1,wW({anchorRef:h,contentRef:_,onCurrentPlacementChange:S},s))}})}})}})}function gQ(e){let{direction:t}=lY();return K(hQ,wW({get placement(){return t()===`rtl`?`left-start`:`right-start`},flip:!0},e))}function _Q(e){let t=qZ(),n=YZ(),[r,i]=TW(e,[`onFocusOutside`,`onKeyDown`]),{direction:a}=lY();return K($Z,wW({onOpenAutoFocus:e=>{e.preventDefault()},onCloseAutoFocus:e=>{e.preventDefault()},onFocusOutside:e=>{r.onFocusOutside?.(e);let n=e.target;fJ(t.triggerRef(),n)||t.close()},onKeyDown:e=>{CJ(e,r.onKeyDown);let i=fJ(e.currentTarget,e.target),o=Y0.close(a(),n.orientation()).includes(e.key),s=t.parentMenuContext()!=null;i&&o&&s&&(t.close(),EJ(t.triggerRef()))}},i))}function vQ(e){let t,n=YZ(),r=qZ(),[i,a]=TW(HJ({id:n.generateId(`sub-trigger-${DW()}`)},e),[`ref`,`id`,`textValue`,`disabled`,`onPointerMove`,`onPointerLeave`,`onPointerDown`,`onPointerUp`,`onClick`,`onKeyDown`,`onMouseDown`,`onFocus`]),o=null,s=()=>{o&&window.clearTimeout(o),o=null},{direction:c}=lY(),l=()=>i.id,u=()=>{let e=r.parentMenuContext();if(e==null)throw Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return e.listState().selectionManager()},d=()=>r.listState().collection(),f=()=>u().focusedKey()===l(),p=xY({key:l,selectionManager:u,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>i.disabled},()=>t),m=e=>{CJ(e,i.onClick),!r.isOpen()&&!i.disabled&&r.open(!0)},h=e=>{if(CJ(e,i.onPointerMove),e.pointerType!==`mouse`)return;let t=r.parentMenuContext();if(t?.onItemEnter(e),!e.defaultPrevented){if(i.disabled){t?.onItemLeave(e);return}!r.isOpen()&&!o&&(r.parentMenuContext()?.setPointerGraceIntent(null),o=window.setTimeout(()=>{r.open(!1),s()},100)),t?.onItemEnter(e),e.defaultPrevented||(r.listState().selectionManager().isFocused()&&(r.listState().selectionManager().setFocused(!1),r.listState().selectionManager().setFocusedKey(void 0)),EJ(e.currentTarget),t?.listState().selectionManager().setFocused(!0),t?.listState().selectionManager().setFocusedKey(l()))}},g=e=>{if(CJ(e,i.onPointerLeave),e.pointerType!==`mouse`)return;s();let t=r.parentMenuContext(),n=r.contentRef();if(n){t?.setPointerGraceIntent({area:pQ(r.currentPlacement(),e,n),side:r.currentPlacement().split(`-`)[0]}),window.clearTimeout(t?.pointerGraceTimeoutId());let i=window.setTimeout(()=>{t?.setPointerGraceIntent(null)},300);t?.setPointerGraceTimeoutId(i)}else{if(t?.onTriggerLeave(e),e.defaultPrevented)return;t?.setPointerGraceIntent(null)}t?.onItemLeave(e)},_=e=>{CJ(e,i.onKeyDown),!e.repeat&&(i.disabled||Z0.open(c(),n.orientation()).includes(e.key)&&(e.stopPropagation(),e.preventDefault(),u().setFocused(!1),u().setFocusedKey(void 0),r.isOpen()||r.open(`first`),r.focusContent(),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(d().getFirstKey())))};return LU(()=>{if(r.registerItemToParentDomCollection==null)throw Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");WU(r.registerItemToParentDomCollection({ref:()=>t,type:`item`,key:l(),textValue:i.textValue??t?.textContent??``,disabled:i.disabled??!1}))}),LU(HU(()=>r.parentMenuContext()?.pointerGraceTimeoutId(),e=>{WU(()=>{window.clearTimeout(e),r.parentMenuContext()?.setPointerGraceIntent(null)})})),LU(()=>WU(r.registerTriggerId(i.id))),WU(()=>{s()}),K(YJ,wW({as:`div`,ref(e){let n=Wq(e=>{r.setTriggerRef(e),t=e},i.ref);typeof n==`function`&&n(e)},get id(){return i.id},role:`menuitem`,get tabIndex(){return p.tabIndex()},"aria-haspopup":`true`,get"aria-expanded"(){return r.isOpen()},get"aria-controls"(){return pK(()=>!!r.isOpen())()?r.contentId():void 0},get"aria-disabled"(){return i.disabled},get"data-key"(){return p.dataKey()},get"data-highlighted"(){return f()?``:void 0},get"data-disabled"(){return i.disabled?``:void 0},get onPointerDown(){return wJ([i.onPointerDown,p.onPointerDown])},get onPointerUp(){return wJ([i.onPointerUp,p.onPointerUp])},get onClick(){return wJ([m,p.onClick])},get onKeyDown(){return wJ([_,p.onKeyDown])},get onMouseDown(){return wJ([i.onMouseDown,p.onMouseDown])},get onFocus(){return wJ([i.onFocus,p.onFocus])},onPointerMove:h,onPointerLeave:g},()=>r.dataset(),a))}function yQ(e){let t=WZ(),[n,r]=TW(HJ({id:`menu-${DW()}`,modal:!0},e),[`id`,`modal`,`preventScroll`,`forceMount`,`open`,`defaultOpen`,`onOpenChange`,`value`,`orientation`]),i=bZ({open:()=>n.open,defaultOpen:()=>n.defaultOpen,onOpenChange:e=>n.onOpenChange?.(e)}),a={isModal:()=>n.modal??!0,preventScroll:()=>n.preventScroll??a.isModal(),forceMount:()=>n.forceMount??!1,generateId:dJ(()=>n.id),value:()=>n.value,orientation:()=>n.orientation??t?.orientation()??`horizontal`};return K(W0.Provider,{value:a,get children(){return K(hQ,wW({get open(){return i.isOpen()},get onOpenChange(){return i.setIsOpen}},r))}})}function bQ(e){let t,[n,r]=TW(HJ({orientation:`horizontal`},e),[`ref`,`orientation`]),i=qJ(()=>t,()=>`hr`);return K(YJ,wW({as:`hr`,ref(e){let r=Wq(e=>t=e,n.ref);typeof r==`function`&&r(e)},get role(){return i()===`hr`?void 0:`separator`},get"aria-orientation"(){return n.orientation===`vertical`?`vertical`:void 0},get"data-orientation"(){return n.orientation}},r))}function xQ(e){let t=YZ(),n=qZ(),[r,i]=TW(e,[`onCloseAutoFocus`,`onInteractOutside`]),a=!1;return K(eQ,wW({onCloseAutoFocus:e=>{r.onCloseAutoFocus?.(e),a||EJ(n.triggerRef()),a=!1,e.preventDefault()},onInteractOutside:e=>{r.onInteractOutside?.(e),(!t.isModal()||e.detail.isContextMenu)&&(a=!0)}},i))}function SQ(e){return K(yQ,HJ({id:`dropdownmenu-${DW()}`},e))}function CQ(){return t2()}function wQ(){return n2()}function TQ(){return r2()}function EQ(){return i2()}function DQ(){return a2()}function OQ(){return o2()}function kQ(){return s2()}function AQ(){return c2()}function jQ(){return l2()}function MQ(){return u2()}function NQ(){return d2()}function PQ(){return f2()}function FQ(){return p2()}function IQ(){return m2()}function LQ(){return h2()}function RQ(){return g2()}function zQ(e){return(()=>{var t=_2(),n=t.firstChild;return IU(()=>q(n,`stroke`,e.theme===`dark`?`#12B76A`:`#027A48`)),t})()}function BQ(){return v2()}function VQ(){return y2()}function HQ(e){return[K(AW,{get when(){return e.checked},get children(){var t=_2(),n=t.firstChild;return IU(()=>q(n,`stroke`,e.theme===`dark`?`#9B8AFB`:`#6938EF`)),t}}),K(AW,{get when(){return!e.checked},get children(){var t=b2(),n=t.firstChild;return IU(()=>q(n,`stroke`,e.theme===`dark`?`#9B8AFB`:`#6938EF`)),t}})]}function UQ(){return x2()}function WQ(){return S2()}function GQ(){return C2()}function KQ(){return w2()}function qQ(){let e=DW();return(()=>{var t=T2(),n=t.firstChild,r=n.nextSibling,i=r.nextSibling,a=i.firstChild,o=i.nextSibling,s=o.firstChild,c=o.nextSibling,l=c.nextSibling,u=l.firstChild,d=l.nextSibling,f=d.firstChild,p=d.nextSibling,m=p.nextSibling,h=m.firstChild,g=m.nextSibling,_=g.firstChild,v=g.nextSibling,y=v.nextSibling,b=y.firstChild,x=y.nextSibling,S=x.firstChild,C=x.nextSibling,w=C.nextSibling,T=w.firstChild,E=w.nextSibling,D=E.firstChild,O=E.nextSibling,ee=O.nextSibling,te=ee.firstChild,ne=ee.nextSibling,re=ne.firstChild,ie=ne.nextSibling,k=ie.nextSibling,ae=k.firstChild,oe=k.nextSibling,se=oe.firstChild,ce=oe.nextSibling,le=ce.firstChild.nextSibling.nextSibling.nextSibling,ue=le.nextSibling,de=ce.nextSibling,fe=de.firstChild,pe=de.nextSibling,me=pe.firstChild,he=pe.nextSibling,ge=he.firstChild,_e=ge.nextSibling,ve=_e.nextSibling.firstChild,ye=ve.nextSibling,be=ye.nextSibling,xe=be.nextSibling,Se=xe.nextSibling,Ce=Se.nextSibling,we=Ce.nextSibling,Te=we.nextSibling,Ee=Te.nextSibling,De=Ee.nextSibling,Oe=De.nextSibling,ke=Oe.nextSibling,Ae=he.nextSibling,je=Ae.firstChild,Me=Ae.nextSibling,Ne=Me.firstChild,Pe=Me.nextSibling,Fe=Pe.firstChild,Ie=Fe.nextSibling,Le=Pe.nextSibling,Re=Le.firstChild,ze=Le.nextSibling,Be=ze.firstChild,Ve=ze.nextSibling,He=Ve.firstChild,Ue=He.nextSibling,We=Ue.nextSibling,Ge=We.nextSibling,Ke=Ge.nextSibling,A=Ke.nextSibling,qe=A.nextSibling,Je=qe.nextSibling,Ye=Je.nextSibling,Xe=Ye.nextSibling,Ze=Xe.nextSibling,Qe=Ze.nextSibling,$e=Qe.nextSibling,et=$e.nextSibling,tt=et.nextSibling,nt=tt.nextSibling,rt=nt.nextSibling,it=rt.nextSibling;return q(n,`id`,`a-${e}`),q(r,`fill`,`url(#a-${e})`),q(a,`id`,`am-${e}`),q(o,`id`,`b-${e}`),q(s,`filter`,`url(#am-${e})`),q(c,`mask`,`url(#b-${e})`),q(u,`id`,`ah-${e}`),q(d,`id`,`k-${e}`),q(f,`filter`,`url(#ah-${e})`),q(p,`mask`,`url(#k-${e})`),q(h,`id`,`ae-${e}`),q(g,`id`,`j-${e}`),q(_,`filter`,`url(#ae-${e})`),q(v,`mask`,`url(#j-${e})`),q(b,`id`,`ai-${e}`),q(x,`id`,`i-${e}`),q(S,`filter`,`url(#ai-${e})`),q(C,`mask`,`url(#i-${e})`),q(T,`id`,`aj-${e}`),q(E,`id`,`h-${e}`),q(D,`filter`,`url(#aj-${e})`),q(O,`mask`,`url(#h-${e})`),q(te,`id`,`ag-${e}`),q(ne,`id`,`g-${e}`),q(re,`filter`,`url(#ag-${e})`),q(ie,`mask`,`url(#g-${e})`),q(ae,`id`,`af-${e}`),q(oe,`id`,`f-${e}`),q(se,`filter`,`url(#af-${e})`),q(ce,`mask`,`url(#f-${e})`),q(le,`id`,`m-${e}`),q(ue,`fill`,`url(#m-${e})`),q(fe,`id`,`ak-${e}`),q(pe,`id`,`e-${e}`),q(me,`filter`,`url(#ak-${e})`),q(he,`mask`,`url(#e-${e})`),q(ge,`id`,`n-${e}`),q(_e,`fill`,`url(#n-${e})`),q(ve,`id`,`r-${e}`),q(ye,`fill`,`url(#r-${e})`),q(be,`id`,`s-${e}`),q(xe,`fill`,`url(#s-${e})`),q(Se,`id`,`q-${e}`),q(Ce,`fill`,`url(#q-${e})`),q(we,`id`,`p-${e}`),q(Te,`fill`,`url(#p-${e})`),q(Ee,`id`,`o-${e}`),q(De,`fill`,`url(#o-${e})`),q(Oe,`id`,`l-${e}`),q(ke,`fill`,`url(#l-${e})`),q(je,`id`,`al-${e}`),q(Me,`id`,`d-${e}`),q(Ne,`filter`,`url(#al-${e})`),q(Pe,`mask`,`url(#d-${e})`),q(Fe,`id`,`u-${e}`),q(Ie,`fill`,`url(#u-${e})`),q(Re,`id`,`ad-${e}`),q(ze,`id`,`c-${e}`),q(Be,`filter`,`url(#ad-${e})`),q(Ve,`mask`,`url(#c-${e})`),q(He,`id`,`t-${e}`),q(Ue,`fill`,`url(#t-${e})`),q(We,`id`,`v-${e}`),q(Ge,`stroke`,`url(#v-${e})`),q(Ke,`id`,`aa-${e}`),q(A,`stroke`,`url(#aa-${e})`),q(qe,`id`,`w-${e}`),q(Je,`stroke`,`url(#w-${e})`),q(Ye,`id`,`ac-${e}`),q(Xe,`stroke`,`url(#ac-${e})`),q(Ze,`id`,`ab-${e}`),q(Qe,`stroke`,`url(#ab-${e})`),q($e,`id`,`y-${e}`),q(et,`stroke`,`url(#y-${e})`),q(tt,`id`,`x-${e}`),q(nt,`stroke`,`url(#x-${e})`),q(rt,`id`,`z-${e}`),q(it,`stroke`,`url(#z-${e})`),t})()}function JQ(e,t){let n=0,r=[];for(;n<e.length;)r.push(e.slice(n,n+t)),n+=t;return r}function YQ(e){return Symbol.iterator in e}function XQ(e){let t=jq(),n=Aq().shadowDOMTarget?Vq.bind({target:Aq().shadowDOMTarget}):Vq,r=G(()=>t()===`dark`?G2(n):W2(n)),i=Aq().client,[a,o]=PU((e.defaultExpanded||[]).includes(e.label)),s=()=>o(e=>!e),[c,l]=PU([]),u=G(()=>Array.isArray(e.value)?e.value.map((e,t)=>({label:t.toString(),value:e})):e.value!==null&&typeof e.value==`object`&&YQ(e.value)&&typeof e.value[Symbol.iterator]==`function`?e.value instanceof Map?Array.from(e.value,([e,t])=>({label:e,value:t})):Array.from(e.value,(e,t)=>({label:t.toString(),value:e})):typeof e.value==`object`&&e.value!==null?Object.entries(e.value).map(([e,t])=>({label:e,value:t})):[]),d=G(()=>Array.isArray(e.value)?`array`:e.value!==null&&typeof e.value==`object`&&YQ(e.value)&&typeof e.value[Symbol.iterator]==`function`?`Iterable`:typeof e.value==`object`&&e.value!==null?`object`:typeof e.value),f=G(()=>JQ(u(),100)),p=e.dataPath??[],m=DW();return(()=>{var t=M2();return Y(t,K(AW,{get when(){return f().length},get children(){return[(()=>{var t=N2(),n=t.firstChild,i=n.firstChild,o=i.nextSibling,c=o.nextSibling.nextSibling,l=c.firstChild;return n.$$click=()=>s(),Y(n,K(R2,{get expanded(){return a()}}),i),Y(o,()=>e.label),Y(c,()=>String(d()).toLowerCase()===`iterable`?`(Iterable) `:``,l),Y(c,()=>u().length,l),Y(c,()=>u().length>1?`items`:`item`,null),Y(t,K(AW,{get when(){return e.editable},get children(){var t=M2();return Y(t,K(z2,{get value(){return e.value}}),null),Y(t,K(AW,{get when(){return pK(()=>!!e.itemsDeletable)()&&e.activeQuery!==void 0},get children(){return K(V2,{get activeQuery(){return e.activeQuery},dataPath:p})}}),null),Y(t,K(AW,{get when(){return pK(()=>d()===`array`)()&&e.activeQuery!==void 0},get children(){return K(B2,{get activeQuery(){return e.activeQuery},dataPath:p})}}),null),Y(t,K(AW,{get when(){return pK(()=>!!e.onEdit)()&&!sq(e.value).meta},get children(){var t=j2();return t.$$click=()=>{e.onEdit?.()},Y(t,K(RQ,{})),IU(()=>J(t,r().actionButton)),t}}),null),IU(()=>J(t,r().actions)),t}}),null),IU(e=>{var i=r().expanderButtonContainer,o=r().expanderButton,s=a()?`true`:`false`,l=r().info;return i!==e.e&&J(t,e.e=i),o!==e.t&&J(n,e.t=o),s!==e.a&&q(n,`aria-expanded`,e.a=s),l!==e.o&&J(c,e.o=l),e},{e:void 0,t:void 0,a:void 0,o:void 0}),t})(),K(AW,{get when(){return a()},get children(){return[K(AW,{get when(){return f().length===1},get children(){var t=M2();return Y(t,K($q,{get each(){return u()},by:e=>e.label,children:t=>K(XQ,{get defaultExpanded(){return e.defaultExpanded},get label(){return t().label},get value(){return t().value},get editable(){return e.editable},get dataPath(){return[...p,t().label]},get activeQuery(){return e.activeQuery},get itemsDeletable(){return d()===`array`||d()===`Iterable`||d()===`object`}})})),IU(()=>J(t,r().subEntry)),t}}),K(AW,{get when(){return f().length>1},get children(){var t=M2();return Y(t,K(kW,{get each(){return f()},children:(t,n)=>(()=>{var i=L2(),a=i.firstChild,o=a.firstChild,s=o.firstChild,u=s.nextSibling,d=u.nextSibling.nextSibling;return d.nextSibling,o.$$click=()=>l(e=>e.includes(n)?e.filter(e=>e!==n):[...e,n]),Y(o,K(R2,{get expanded(){return c().includes(n)}}),s),Y(o,n*100,u),Y(o,n*100+100-1,d),Y(a,K(AW,{get when(){return c().includes(n)},get children(){var n=M2();return Y(n,K($q,{get each(){return t()},by:e=>e.label,children:t=>K(XQ,{get defaultExpanded(){return e.defaultExpanded},get label(){return t().label},get value(){return t().value},get editable(){return e.editable},get dataPath(){return[...p,t().label]},get activeQuery(){return e.activeQuery}})})),IU(()=>J(n,r().subEntry)),n}}),null),IU(e=>{var t=r().entry,n=r().expanderButton;return t!==e.e&&J(a,e.e=t),n!==e.t&&J(o,e.t=n),e},{e:void 0,t:void 0}),i})()})),IU(()=>J(t,r().subEntry)),t}})]}})]}}),null),Y(t,K(AW,{get when(){return f().length===0},get children(){var t=I2(),n=t.firstChild,a=n.firstChild;return q(n,`for`,m),Y(n,()=>e.label,a),Y(t,K(AW,{get when(){return pK(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(d()===`string`||d()===`number`||d()===`boolean`)},get fallback(){return(()=>{var t=F2();return Y(t,()=>lq(e.value)),IU(()=>J(t,r().value)),t})()},get children(){return[K(AW,{get when(){return pK(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(d()===`string`||d()===`number`)},get children(){var t=P2();return t.addEventListener(`change`,t=>{let n=e.activeQuery.state.data,r=xq(n,p,d()===`number`?t.target.valueAsNumber:t.target.value);i.setQueryData(e.activeQuery.queryKey,r)}),q(t,`id`,m),IU(e=>{var n=d()===`number`?`number`:`text`,i=Z(r().value,r().editableInput);return n!==e.e&&q(t,`type`,e.e=n),i!==e.t&&J(t,e.t=i),e},{e:void 0,t:void 0}),IU(()=>t.value=e.value),t}}),K(AW,{get when(){return d()===`boolean`},get children(){var t=F2();return Y(t,K(H2,{get activeQuery(){return e.activeQuery},dataPath:p,get value(){return e.value}}),null),Y(t,()=>lq(e.value),null),IU(()=>J(t,Z(r().value,r().actions,r().editableInput))),t}})]}}),null),Y(t,K(AW,{get when(){return pK(()=>!!(e.editable&&e.itemsDeletable))()&&e.activeQuery!==void 0},get children(){return K(V2,{get activeQuery(){return e.activeQuery},dataPath:p})}}),null),IU(e=>{var i=r().row,a=r().label;return i!==e.e&&J(t,e.e=i),a!==e.t&&J(n,e.t=a),e},{e:void 0,t:void 0}),t}}),null),IU(()=>J(t,r().entry)),t})()}var ZQ,QQ,$Q,Q,e$,t$,n$,r$,i$,a$,o$,s$,c$,l$,u$,d$,f$,p$,m$,h$,g$,_$,v$,y$,b$,x$,S$,C$,w$,T$,E$,D$,O$,k$,A$,j$,M$,N$,P$,F$,I$,L$,R$,z$,B$,V$,H$,U$,W$,G$,K$,q$,J$,Y$,X$,Z$,Q$,$$,e1,t1,n1,r1,i1,a1,o1,s1,c1,l1,u1,d1,f1,p1,m1,h1,g1,_1,v1,y1,b1,x1,S1,C1,w1,T1,E1,D1,O1,k1,A1,j1,M1,N1,P1,F1,I1,L1,R1,z1,B1,V1,H1,U1,W1,G1,K1,q1,J1,Y1,X1,Z1,Q1,$1,e0,t0,n0,r0,i0,a0,o0,s0,c0,l0,u0,d0,f0,p0,m0,h0,g0,_0,v0,y0,b0,x0,S0,C0,w0,T0,E0,D0,O0,k0,A0,j0,M0,N0,P0,F0,I0,L0,R0,z0,B0,V0,H0,U0,W0,G0,K0,q0,J0,Y0,X0,Z0,Q0,$0,e2,$,t2,n2,r2,i2,a2,o2,s2,c2,l2,u2,d2,f2,p2,m2,h2,g2,_2,v2,y2,b2,x2,S2,C2,w2,T2,E2,D2,O2,k2,A2,j2,M2,N2,P2,F2,I2,L2,R2,z2,B2,V2,H2,U2,W2,G2,K2,q2,J2,Y2,X2,Z2,Q2,$2,e4,t4,n4,r4,i4,a4,o4,s4,c4,l4,u4,d4,f4,p4,m4,h4,g4,_4,v4,y4,b4,x4,S4,C4,w4,T4,E4,D4,O4,k4,A4,j4,M4,N4,P4,F4,I4,L4,R4,z4,B4,V4,H4,U4,W4,G4,K4,q4,J4,Y4,X4,Z4,Q4,$4,e3,t3,n3,r3,i3,a3,o3,s3=o((()=>{ZQ=!1,QQ=e=>e!=null,$Q=e=>e.filter(QQ),Q=e=>typeof e==`function`&&!e.length?e():e,e$=e=>Array.isArray(e)?e:e?[e]:[],t$=ZQ?e=>GU()?WU(e):e:WU,n$=kq,r$=e=>(typeof e.clear==`function`||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),i$=e=>{if(!e)return``;let t=``;for(let n in e){if(!e.hasOwnProperty(n))continue;let r=e[n];t+=r instanceof Date?`; ${n}=${r.toUTCString()}`:typeof r==`boolean`?`; ${n}`:`; ${n}=${r}`}return t},a$=r$({_cookies:[globalThis.document,`cookie`],getItem:e=>a$._cookies[0][a$._cookies[1]].match(`(^|;)\\s*`+e+`\\s*=\\s*([^;]+)`)?.pop()??null,setItem:(e,t,n)=>{let r=a$.getItem(e);a$._cookies[0][a$._cookies[1]]=`${e}=${t}${i$(n)}`;let i=Object.assign(new Event(`storage`),{key:e,oldValue:r,newValue:t,url:globalThis.document.URL,storageArea:a$});window.dispatchEvent(i)},removeItem:e=>{a$._cookies[0][a$._cookies[1]]=`${e}=deleted${i$({expires:new Date(0)})}`},key:e=>{let t=null,n=0;return a$._cookies[0][a$._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(r,i)=>(!t&&i&&n++===e&&(t=i),``)),t},get length(){let e=0;return a$._cookies[0][a$._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,t=>(e+=+!!t,``)),e}}),o$=1024,s$=796,c$=700,l$=`bottom-right`,u$=`bottom`,d$=!1,f$=500,p$=500,m$=500,h$=Object.keys(mq)[0],g$=1,_$=Object.keys(vq)[0],v$=YU({client:void 0,onlineManager:void 0,queryFlavor:``,version:``,shadowDOMTarget:void 0}),y$=class extends Error{},b$=YU(void 0),x$=e=>{let[t,n]=PU(null),r=()=>{let e=t();e!=null&&(e.close(),n(null))},i=(r,i)=>{if(t()!=null)return;let a=window.open(``,`TSQD-Devtools-Panel`,`width=${r},height=${i},popup`);if(!a)throw new y$(`Failed to open popup. Please allow popups for this site to view the devtools in picture-in-picture mode.`);a.document.head.innerHTML=``,a.document.body.innerHTML=``,RW(a.document),a.document.title=`TanStack Query Devtools`,a.document.body.style.margin=`0`,a.addEventListener(`pagehide`,()=>{e.setLocalStore(`pip_open`,`false`),n(null)}),[...(Aq().shadowDOMTarget||document).styleSheets].forEach(e=>{try{let t=[...e.cssRules].map(e=>e.cssText).join(``),n=document.createElement(`style`),r=e.ownerNode,i=``;r&&`id`in r&&(i=r.id),i&&n.setAttribute(`id`,i),n.textContent=t,a.document.head.appendChild(n)}catch{let t=document.createElement(`link`);if(e.href==null)return;t.rel=`stylesheet`,t.type=e.type,t.media=e.media.toString(),t.href=e.href,a.document.head.appendChild(t)}}),LW([`focusin`,`focusout`,`pointermove`,`keydown`,`pointerdown`,`pointerup`,`click`,`mousedown`,`input`],a.document),e.setLocalStore(`pip_open`,`true`),n(a)};LU(()=>{if((e.localStore.pip_open??`false`)===`true`&&!e.disabled)try{i(Number(window.innerWidth),Number(e.localStore.height||p$))}catch(t){if(t instanceof y$){e.setLocalStore(`pip_open`,`false`),e.setLocalStore(`open`,`false`);return}throw t}}),LU(()=>{let e=(Aq().shadowDOMTarget||document).querySelector(`#_goober`),n=t();if(e&&n){let t=new MutationObserver(()=>{let t=(Aq().shadowDOMTarget||n.document).querySelector(`#_goober`);t&&(t.textContent=e.textContent)});t.observe(e,{childList:!0,subtree:!0,characterDataOldValue:!0}),WU(()=>{t.disconnect()})}});let a=G(()=>({pipWindow:t(),requestPipWindow:i,closePipWindow:r,disabled:e.disabled??!1}));return K(b$.Provider,{value:a,get children(){return e.children}})},S$=()=>G(()=>{let e=XU(b$);if(!e)throw Error(`usePiPWindow must be used within a PiPProvider`);return e()}),C$=YU(()=>`dark`),w$={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,Ấ:`A`,Ắ:`A`,Ẳ:`A`,Ẵ:`A`,Ặ:`A`,Æ:`AE`,Ầ:`A`,Ằ:`A`,Ȃ:`A`,Ç:`C`,Ḉ:`C`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,Ế:`E`,Ḗ:`E`,Ề:`E`,Ḕ:`E`,Ḝ:`E`,Ȇ:`E`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,Ḯ:`I`,Ȋ:`I`,Ð:`D`,Ñ:`N`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,Ố:`O`,Ṍ:`O`,Ṓ:`O`,Ȏ:`O`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,Ý:`Y`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,ấ:`a`,ắ:`a`,ẳ:`a`,ẵ:`a`,ặ:`a`,æ:`ae`,ầ:`a`,ằ:`a`,ȃ:`a`,ç:`c`,ḉ:`c`,è:`e`,é:`e`,ê:`e`,ë:`e`,ế:`e`,ḗ:`e`,ề:`e`,ḕ:`e`,ḝ:`e`,ȇ:`e`,ì:`i`,í:`i`,î:`i`,ï:`i`,ḯ:`i`,ȋ:`i`,ð:`d`,ñ:`n`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,ố:`o`,ṍ:`o`,ṓ:`o`,ȏ:`o`,ù:`u`,ú:`u`,û:`u`,ü:`u`,ý:`y`,ÿ:`y`,Ā:`A`,ā:`a`,Ă:`A`,ă:`a`,Ą:`A`,ą:`a`,Ć:`C`,ć:`c`,Ĉ:`C`,ĉ:`c`,Ċ:`C`,ċ:`c`,Č:`C`,č:`c`,C̆:`C`,c̆:`c`,Ď:`D`,ď:`d`,Đ:`D`,đ:`d`,Ē:`E`,ē:`e`,Ĕ:`E`,ĕ:`e`,Ė:`E`,ė:`e`,Ę:`E`,ę:`e`,Ě:`E`,ě:`e`,Ĝ:`G`,Ǵ:`G`,ĝ:`g`,ǵ:`g`,Ğ:`G`,ğ:`g`,Ġ:`G`,ġ:`g`,Ģ:`G`,ģ:`g`,Ĥ:`H`,ĥ:`h`,Ħ:`H`,ħ:`h`,Ḫ:`H`,ḫ:`h`,Ĩ:`I`,ĩ:`i`,Ī:`I`,ī:`i`,Ĭ:`I`,ĭ:`i`,Į:`I`,į:`i`,İ:`I`,ı:`i`,IJ:`IJ`,ij:`ij`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,Ḱ:`K`,ḱ:`k`,K̆:`K`,k̆:`k`,Ĺ:`L`,ĺ:`l`,Ļ:`L`,ļ:`l`,Ľ:`L`,ľ:`l`,Ŀ:`L`,ŀ:`l`,Ł:`l`,ł:`l`,Ḿ:`M`,ḿ:`m`,M̆:`M`,m̆:`m`,Ń:`N`,ń:`n`,Ņ:`N`,ņ:`n`,Ň:`N`,ň:`n`,ʼn:`n`,N̆:`N`,n̆:`n`,Ō:`O`,ō:`o`,Ŏ:`O`,ŏ:`o`,Ő:`O`,ő:`o`,Œ:`OE`,œ:`oe`,P̆:`P`,p̆:`p`,Ŕ:`R`,ŕ:`r`,Ŗ:`R`,ŗ:`r`,Ř:`R`,ř:`r`,R̆:`R`,r̆:`r`,Ȓ:`R`,ȓ:`r`,Ś:`S`,ś:`s`,Ŝ:`S`,ŝ:`s`,Ş:`S`,Ș:`S`,ș:`s`,ş:`s`,Š:`S`,š:`s`,Ţ:`T`,ţ:`t`,ț:`t`,Ț:`T`,Ť:`T`,ť:`t`,Ŧ:`T`,ŧ:`t`,T̆:`T`,t̆:`t`,Ũ:`U`,ũ:`u`,Ū:`U`,ū:`u`,Ŭ:`U`,ŭ:`u`,Ů:`U`,ů:`u`,Ű:`U`,ű:`u`,Ų:`U`,ų:`u`,Ȗ:`U`,ȗ:`u`,V̆:`V`,v̆:`v`,Ŵ:`W`,ŵ:`w`,Ẃ:`W`,ẃ:`w`,X̆:`X`,x̆:`x`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Y̆:`Y`,y̆:`y`,Ź:`Z`,ź:`z`,Ż:`Z`,ż:`z`,Ž:`Z`,ž:`z`,ſ:`s`,ƒ:`f`,Ơ:`O`,ơ:`o`,Ư:`U`,ư:`u`,Ǎ:`A`,ǎ:`a`,Ǐ:`I`,ǐ:`i`,Ǒ:`O`,ǒ:`o`,Ǔ:`U`,ǔ:`u`,Ǖ:`U`,ǖ:`u`,Ǘ:`U`,ǘ:`u`,Ǚ:`U`,ǚ:`u`,Ǜ:`U`,ǜ:`u`,Ứ:`U`,ứ:`u`,Ṹ:`U`,ṹ:`u`,Ǻ:`A`,ǻ:`a`,Ǽ:`AE`,ǽ:`ae`,Ǿ:`O`,ǿ:`o`,Þ:`TH`,þ:`th`,Ṕ:`P`,ṕ:`p`,Ṥ:`S`,ṥ:`s`,X́:`X`,x́:`x`,Ѓ:`Г`,ѓ:`г`,Ќ:`К`,ќ:`к`,A̋:`A`,a̋:`a`,E̋:`E`,e̋:`e`,I̋:`I`,i̋:`i`,Ǹ:`N`,ǹ:`n`,Ồ:`O`,ồ:`o`,Ṑ:`O`,ṑ:`o`,Ừ:`U`,ừ:`u`,Ẁ:`W`,ẁ:`w`,Ỳ:`Y`,ỳ:`y`,Ȁ:`A`,ȁ:`a`,Ȅ:`E`,ȅ:`e`,Ȉ:`I`,ȉ:`i`,Ȍ:`O`,ȍ:`o`,Ȑ:`R`,ȑ:`r`,Ȕ:`U`,ȕ:`u`,B̌:`B`,b̌:`b`,Č̣:`C`,č̣:`c`,Ê̌:`E`,ê̌:`e`,F̌:`F`,f̌:`f`,Ǧ:`G`,ǧ:`g`,Ȟ:`H`,ȟ:`h`,J̌:`J`,ǰ:`j`,Ǩ:`K`,ǩ:`k`,M̌:`M`,m̌:`m`,P̌:`P`,p̌:`p`,Q̌:`Q`,q̌:`q`,Ř̩:`R`,ř̩:`r`,Ṧ:`S`,ṧ:`s`,V̌:`V`,v̌:`v`,W̌:`W`,w̌:`w`,X̌:`X`,x̌:`x`,Y̌:`Y`,y̌:`y`,A̧:`A`,a̧:`a`,B̧:`B`,b̧:`b`,Ḑ:`D`,ḑ:`d`,Ȩ:`E`,ȩ:`e`,Ɛ̧:`E`,ɛ̧:`e`,Ḩ:`H`,ḩ:`h`,I̧:`I`,i̧:`i`,Ɨ̧:`I`,ɨ̧:`i`,M̧:`M`,m̧:`m`,O̧:`O`,o̧:`o`,Q̧:`Q`,q̧:`q`,U̧:`U`,u̧:`u`,X̧:`X`,x̧:`x`,Z̧:`Z`,z̧:`z`},T$=Object.keys(w$).join(`|`),E$=new RegExp(T$,`g`),D$={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},O$={maxRanking:1/0,minRanking:-1/0},k$={data:``},A$=e=>{if(typeof window==`object`){let t=(e?e.querySelector(`#_goober`):window._goober)||Object.assign(document.createElement(`style`),{innerHTML:` `,id:`_goober`});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||k$},j$=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,M$=/\/\*[^]*?\*\/| +/g,N$=/\n+/g,P$=(e,t)=>{let n=``,r=``,i=``;for(let a in e){let o=e[a];a[0]==`@`?a[1]==`i`?n=a+` `+o+`;`:r+=a[1]==`f`?P$(o,a):a+`{`+P$(o,a[1]==`k`?``:t)+`}`:typeof o==`object`?r+=P$(o,t?t.replace(/([^,])+/g,e=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+` `+t:t)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,`-$&`).toLowerCase(),i+=P$.p?P$.p(a,o):a+`:`+o+`;`)}return n+(t&&i?t+`{`+i+`}`:i)+r},F$={},I$=e=>{if(typeof e==`object`){let t=``;for(let n in e)t+=n+I$(e[n]);return t}return e},L$=(e,t,n,r,i)=>{let a=I$(e),o=F$[a]||(F$[a]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return`go`+n})(a));if(!F$[o]){let t=a===e?(e=>{let t,n,r=[{}];for(;t=j$.exec(e.replace(M$,``));)t[4]?r.shift():t[3]?(n=t[3].replace(N$,` `).trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(N$,` `).trim();return r[0]})(e):e;F$[o]=P$(i?{[`@keyframes `+o]:t}:t,n?``:`.`+o)}let s=n&&F$.g?F$.g:null;return n&&(F$.g=F$[o]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):t.data.indexOf(e)===-1&&(t.data=n?e+t.data:t.data+e)})(F$[o],t,r,s),o},R$=(e,t,n)=>e.reduce((e,r,i)=>{let a=t[i];if(a&&a.call){let e=a(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?`.`+t:e&&typeof e==`object`?e.props?``:P$(e,``):!1===e?``:e}return e+r+(a??``)},``),Vq.bind({g:1}),Vq.bind({k:1}),z$=e=>e instanceof Element,B$=e=>{let t=qq(e);return Uq(Kq(()=>e.children).toArray,{appear:e.appear,onChange({added:n,removed:r,finishRemoved:i,list:a}){let o=t();for(let t of n)Yq(o,e,t);let s=[];for(let e of a)e.isConnected&&(e instanceof HTMLElement||e instanceof SVGElement)&&s.push({el:e,rect:e.getBoundingClientRect()});queueMicrotask(()=>{let e=[];for(let{el:t,rect:n}of s)if(t.isConnected){let r=t.getBoundingClientRect(),i=n.left-r.left,a=n.top-r.top;(i||a)&&(t.style.transform=`translate(${i}px, ${a}px)`,t.style.transitionDuration=`0s`,e.push(t))}document.body.offsetHeight;for(let t of e){let e=function(n){(n.target===t||/transform$/.test(n.propertyName))&&(t.removeEventListener(`transitionend`,e),t.classList.remove(...o.move))};t.classList.add(...o.move),t.style.transform=t.style.transitionDuration=``,t.addEventListener(`transitionend`,e)}});for(let t of r)Xq(o,e,t,()=>i([t]))}})},V$=Symbol(`fallback`),H$=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,U$=(e=>(e.Escape=`Escape`,e.Enter=`Enter`,e.Tab=`Tab`,e.Space=` `,e.ArrowDown=`ArrowDown`,e.ArrowLeft=`ArrowLeft`,e.ArrowRight=`ArrowRight`,e.ArrowUp=`ArrowUp`,e.End=`End`,e.Home=`Home`,e.PageDown=`PageDown`,e.PageUp=`PageUp`,e))(U$||{}),W$=null,G$=[`input:not([type='hidden']):not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`button:not([disabled])`,`a[href]`,`area[href]`,`[tabindex]`,`iframe`,`object`,`embed`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable='false'])`],K$=[...G$,`[tabindex]:not([tabindex="-1"]):not([disabled])`],q$=`${G$.join(`:not([hidden]),`)},[tabindex]:not([disabled]):not([hidden])`,J$=K$.join(`:not([hidden]):not([tabindex="-1"]),`),Y$=new Map,X$=new Set,typeof document<`u`&&(document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,UJ):UJ()),Z$={border:`0`,clip:`rect(0 0 0 0)`,"clip-path":`inset(50%)`,height:`1px`,margin:`0 -1px -1px 0`,overflow:`hidden`,padding:`0`,position:`absolute`,width:`1px`,"white-space":`nowrap`},Q$=Object.defineProperty,$$=(e,t)=>{for(var n in t)Q$(e,n,{get:t[n],enumerable:!0})},$$({},{Button:()=>t1,Root:()=>ZJ}),e1=[`button`,`color`,`file`,`image`,`reset`,`submit`],t1=ZJ,n1=new Set([`Avst`,`Arab`,`Armi`,`Syrc`,`Samr`,`Mand`,`Thaa`,`Mend`,`Nkoo`,`Adlm`,`Rohg`,`Hebr`]),r1=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]),i1=oY(),a1=new Set,o1=YU(),s1=new Map,c1=class e extends Set{anchorKey;currentKey;constructor(t,n,r){super(t),t instanceof e?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}},l1=class{collection;state;constructor(e,t){this.collection=e,this.state=t}selectionMode(){return this.state.selectionMode()}disallowEmptySelection(){return this.state.disallowEmptySelection()}selectionBehavior(){return this.state.selectionBehavior()}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}isFocused(){return this.state.isFocused()}setFocused(e){this.state.setFocused(e)}focusedKey(){return this.state.focusedKey()}setFocusedKey(e){(e==null||this.collection().getItem(e))&&this.state.setFocusedKey(e)}selectedKeys(){return this.state.selectedKeys()}isSelected(e){if(this.state.selectionMode()===`none`)return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys().has(t)}isEmpty(){return this.state.selectedKeys().size===0}isSelectAll(){if(this.isEmpty())return!1;let e=this.state.selectedKeys();return this.getAllSelectableKeys().every(t=>e.has(t))}firstSelectedKey(){let e;for(let t of this.state.selectedKeys()){let n=this.collection().getItem(t),r=n?.index!=null&&e?.index!=null&&n.index<e.index;(!e||r)&&(e=n)}return e?.key}lastSelectedKey(){let e;for(let t of this.state.selectedKeys()){let n=this.collection().getItem(t),r=n?.index!=null&&e?.index!=null&&n.index>e.index;(!e||r)&&(e=n)}return e?.key}extendSelection(e){if(this.selectionMode()===`none`)return;if(this.selectionMode()===`single`){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=this.state.selectedKeys(),r=n.anchorKey||t,i=new c1(n,r,t);for(let e of this.getKeyRange(r,n.currentKey||t))i.delete(e);for(let e of this.getKeyRange(t,r))this.canSelectItem(e)&&i.add(e);this.state.setSelectedKeys(i)}getKeyRange(e,t){let n=this.collection().getItem(e),r=this.collection().getItem(t);return n&&r?n.index!=null&&r.index!=null&&n.index<=r.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let n=[],r=e;for(;r!=null;){let e=this.collection().getItem(r);if(e&&e.type===`item`&&n.push(r),r===t)return n;r=this.collection().getKeyAfter(r)}return[]}getKey(e){let t=this.collection().getItem(e);return t?!t||t.type!==`item`?null:t.key:e}toggleSelection(e){if(this.selectionMode()===`none`)return;if(this.selectionMode()===`single`&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=new c1(this.state.selectedKeys());n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection()&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode()===`none`)return;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new c1([t],t,t):new c1;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode()===`none`)return;let t=new c1;for(let n of e){let e=this.getKey(n);if(e!=null&&(t.add(e),this.selectionMode()===`single`))break}this.state.setSelectedKeys(t)}selectAll(){this.selectionMode()===`multiple`&&this.state.setSelectedKeys(new Set(this.getAllSelectableKeys()))}clearSelection(){let e=this.state.selectedKeys();!this.disallowEmptySelection()&&e.size>0&&this.state.setSelectedKeys(new c1)}toggleSelectAll(){this.isSelectAll()?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode()!==`none`&&(this.selectionMode()===`single`?this.isSelected(e)&&!this.disallowEmptySelection()?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior()===`toggle`||t&&t.pointerType===`touch`?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys())return!0;let t=this.selectedKeys();if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){if(this.state.selectionMode()===`none`)return!1;let t=this.collection().getItem(e);return t!=null&&!t.disabled}isDisabled(e){let t=this.collection().getItem(e);return!t||t.disabled}getAllSelectableKeys(){let e=[];return(t=>{for(;t!=null;){if(this.canSelectItem(t)){let n=this.collection().getItem(t);if(!n)continue;n.type===`item`&&e.push(t)}t=this.collection().getKeyAfter(t)}})(this.collection().getFirstKey()),e}},u1=class{keyMap=new Map;iterable;firstKey;lastKey;constructor(e){this.iterable=e;for(let t of e)this.keyMap.set(t.key,t);if(this.keyMap.size===0)return;let t,n=0;for(let[e,r]of this.keyMap)t?(t.nextKey=e,r.prevKey=t.key):(this.firstKey=e,r.prevKey=void 0),r.type===`item`&&(r.index=n++),t=r,t.nextKey=void 0;this.lastKey=t.key}*[Symbol.iterator](){yield*this.iterable}getSize(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){return this.keyMap.get(e)?.prevKey}getKeyAfter(e){return this.keyMap.get(e)?.nextKey}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}},d1=YU(),f1=[`top`,`right`,`bottom`,`left`],p1=Math.min,m1=Math.max,h1=Math.round,g1=Math.floor,_1=e=>({x:e,y:e}),v1={left:`right`,right:`left`,bottom:`top`,top:`bottom`},y1=[`left`,`right`],b1=[`right`,`left`],x1=[`top`,`bottom`],S1=[`bottom`,`top`],C1=50,w1=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:QY},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ZY(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<C1&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=ZY(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},T1=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=FY(e,t)||{};if(l==null)return{};let d=YY(u),f={x:n,y:r},p=VY(i),m=zY(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=p1(d[_],T),D=p1(d[v],T),O=E,ee=C-h[m]-D,te=C/2-h[m]/2+w,ne=PY(O,te,ee),re=!c.arrow&&LY(i)!=null&&te!==ne&&a.reference[m]/2-(te<O?E:D)-h[m]/2<0,ie=re?te<O?te-O:te-ee:0;return{[p]:f[p]+ie,data:{[p]:ne,centerOffset:te-ne-ie,...re&&{alignmentOffset:ie}},reset:re}}}),E1=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=FY(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=IY(r),_=BY(o),v=IY(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[qY(o)]:UY(o)),x=p!==`none`;!d&&x&&b.push(...KY(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=HY(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==BY(t))||T.every(e=>BY(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=BY(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}},D1=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=FY(e,t);switch(i){case`referenceHidden`:{let e=$Y(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:eX(e)}}}case`escaped`:{let e=$Y(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:eX(e)}}}default:return{}}}}},O1=new Set([`left`,`top`]),k1=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await tX(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},A1=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=FY(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=BY(IY(i)),p=RY(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=PY(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=PY(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},j1=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=FY(e,t),u=await o.detectOverflow(t,l),d=IY(i),f=LY(i),p=BY(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=p1(h-u[g],v),x=p1(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=m1(u.left,0),t=m1(u.right,0),n=m1(u.top,0),r=m1(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:m1(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:m1(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}},M1=/transform|translate|scale|rotate|perspective|filter/,N1=/paint|layout|strict|content/,P1=e=>!!e&&e!==`none`,I1=_1(0),L1=25,R1=async function(e){let t=this.getOffsetParent||WX,n=this.getDimensions,r=await n(e.floating);return{reference:VX(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},z1={convertOffsetParentRelativeRectToViewportRelativeRect:jX,getDocumentElement:aX,getClippingRect:zX,getOffsetParent:WX,getElementRects:R1,getClientRects:MX,getDimensions:BX,getScale:TX,isElement:sX,isRTL:GX},B1=k1,V1=A1,H1=E1,U1=j1,W1=D1,G1=T1,K1=(e,t,n)=>{let r=new Map,i={platform:z1,...n},a={...i.platform,_c:r};return w1(e,t,{...i,platform:a})},q1=YU(),J1=IW(`<svg display="block" viewBox="0 0 30 30" style="transform:scale(1.02)"><g><path fill="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z"></path><path stroke="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z">`),Y1=30,X1=Y1/2,Z1={top:180,right:-90,bottom:0,left:90},Q1={top:`bottom`,right:`left`,bottom:`top`,left:`right`},$1=Object.assign(rZ,{Arrow:XX,Context:q1,usePopperContext:YX,Positioner:QX}),e0=`data-kb-top-layer`,n0=!1,r0=[],i0={layers:r0,isTopMostLayer:oZ,hasPointerBlockingLayer:lZ,isBelowPointerBlockingLayer:uZ,addLayer:dZ,removeLayer:fZ,indexOf:iZ,find:aZ,assignPointerEventToLayers:pZ,disableBodyPointerEvents:mZ,restoreBodyPointerEvents:hZ},a0=`interactOutside.pointerDownOutside`,o0=`interactOutside.focusOutside`,s0=YU(),c0=e=>typeof e==`function`?e():e,l0=e=>{let t=G(()=>{let t=c0(e.element);if(t)return getComputedStyle(t)}),n=()=>t()?.animationName??`none`,[r,i]=PU(c0(e.show)?`present`:`hidden`),a=`none`;return LU(r=>{let o=c0(e.show);return VU(()=>{if(r===o)return o;let e=a,s=n();o?i(`present`):s===`none`||t()?.display===`none`?i(`hidden`):i(r===!0&&e!==s?`hiding`:`hidden`)}),o}),LU(()=>{let t=c0(e.element);if(!t)return;let o=e=>{e.target===t&&(a=n())},s=e=>{let a=n().includes(e.animationName);e.target===t&&a&&r()===`hiding`&&i(`hidden`)};t.addEventListener(`animationstart`,o),t.addEventListener(`animationcancel`,s),t.addEventListener(`animationend`,s),WU(()=>{t.removeEventListener(`animationstart`,o),t.removeEventListener(`animationcancel`,s),t.removeEventListener(`animationend`,s)})}),{present:()=>r()===`present`||r()===`hiding`,state:r,setState:i}},u0=l0,d0=[`id`,`name`,`validationState`,`required`,`disabled`,`readOnly`],f0=YU(),p0=`focusScope.autoFocusOnMount`,m0=`focusScope.autoFocusOnUnmount`,h0={bubbles:!1,cancelable:!0},g0={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=sJ(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=sJ(this.stack,e),this.active()?.resume()}},_0=`data-live-announcer`,v0=new WeakMap,y0=[],b0=(e,t)=>{if(e.contains(t))return!0;let n=t;for(;n;){if(n===e)return!0;n=n._$host??n.parentElement}return!1},x0=new Map,S0=e=>{LU(()=>{let t=c0(e.style)??{},n=c0(e.properties)??[],r={};for(let n in t)r[n]=e.element.style[n];let i=x0.get(e.key);i?i.activeCount++:x0.set(e.key,{activeCount:1,originalStyles:r,properties:n.map(e=>e.key)}),Object.assign(e.element.style,e.style);for(let t of n)e.element.style.setProperty(t.key,t.value);WU(()=>{let t=x0.get(e.key);if(t){if(t.activeCount!==1){t.activeCount--;return}x0.delete(e.key);for(let[n,r]of Object.entries(t.originalStyles))e.element.style[n]=r;for(let n of t.properties)e.element.style.removeProperty(n);e.element.style.length===0&&e.element.removeAttribute(`style`),e.cleanup?.()}})})},C0=S0,w0=(e,t)=>{switch(t){case`x`:return[e.clientWidth,e.scrollLeft,e.scrollWidth];case`y`:return[e.clientHeight,e.scrollTop,e.scrollHeight]}},T0=(e,t)=>{let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY;return r===`auto`||r===`scroll`||e.tagName===`HTML`&&r===`visible`},E0=(e,t,n)=>{let r=t===`x`&&window.getComputedStyle(e).direction===`rtl`?-1:1,i=e,a=0,o=0,s=!1;do{let[e,c,l]=w0(i,t),u=l-e-r*c;(c!==0||u!==0)&&T0(i,t)&&(a+=u,o+=c),i===(n??document.documentElement)?s=!0:i=i._$host??i.parentElement}while(i&&!s);return[a,o]},[D0,O0]=PU([]),k0=e=>D0().indexOf(e)===D0().length-1,A0=e=>{let t=wW({element:null,enabled:!0,hideScrollbar:!0,preventScrollbarShift:!0,preventScrollbarShiftMode:`padding`,restoreScrollPosition:!0,allowPinchZoom:!1},e),n=DW(),r=[0,0],i=null,a=null;LU(()=>{c0(t.enabled)&&(O0(e=>[...e,n]),WU(()=>{O0(e=>e.filter(e=>e!==n))}))}),LU(()=>{if(!c0(t.enabled)||!c0(t.hideScrollbar))return;let{body:e}=document,n=window.innerWidth-e.offsetWidth;if(c0(t.preventScrollbarShift)){let r={overflow:`hidden`},i=[];n>0&&(c0(t.preventScrollbarShiftMode)===`padding`?r.paddingRight=`calc(${window.getComputedStyle(e).paddingRight} + ${n}px)`:r.marginRight=`calc(${window.getComputedStyle(e).marginRight} + ${n}px)`,i.push({key:`--scrollbar-width`,value:`${n}px`}));let a=window.scrollY,o=window.scrollX;C0({key:`prevent-scroll`,element:e,style:r,properties:i,cleanup:()=>{c0(t.restoreScrollPosition)&&n>0&&window.scrollTo(o,a)}})}else C0({key:`prevent-scroll`,element:e,style:{overflow:`hidden`}})}),LU(()=>{!k0(n)||!c0(t.enabled)||(document.addEventListener(`wheel`,s,{passive:!1}),document.addEventListener(`touchstart`,o,{passive:!1}),document.addEventListener(`touchmove`,c,{passive:!1}),WU(()=>{document.removeEventListener(`wheel`,s),document.removeEventListener(`touchstart`,o),document.removeEventListener(`touchmove`,c)}))});let o=e=>{r=M0(e),i=null,a=null},s=e=>{let n=e.target,r=c0(t.element),i=j0(e),a=Math.abs(i[0])>Math.abs(i[1])?`x`:`y`,o=N0(n,a,a===`x`?i[0]:i[1],r),s;s=r&&b0(r,n)?!o:!0,s&&e.cancelable&&e.preventDefault()},c=e=>{let n=c0(t.element),o=e.target,s;if(e.touches.length===2)s=!c0(t.allowPinchZoom);else{if(i==null||a===null){let t=M0(e).map((e,t)=>r[t]-e),n=Math.abs(t[0])>Math.abs(t[1])?`x`:`y`;i=n,a=n===`x`?t[0]:t[1]}if(o.type===`range`)s=!1;else{let e=N0(o,i,a,n);s=n&&b0(n,o)?!e:!0}}s&&e.cancelable&&e.preventDefault()}},j0=e=>[e.deltaX,e.deltaY],M0=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],N0=(e,t,n,r)=>{let[i,a]=E0(e,t,r!==null&&b0(r,e)?r:void 0);return!(n>0&&Math.abs(i)<=1||n<0&&Math.abs(a)<1)},P0=A0,F0={},$$(F0,{Description:()=>wZ,ErrorMessage:()=>kZ,Item:()=>FZ,ItemControl:()=>IZ,ItemDescription:()=>LZ,ItemIndicator:()=>RZ,ItemInput:()=>zZ,ItemLabel:()=>BZ,Label:()=>VZ,RadioGroup:()=>R0,Root:()=>HZ,useRadioGroupContext:()=>NZ}),I0=YU(),L0=YU(),R0=Object.assign(HZ,{Description:wZ,ErrorMessage:kZ,Item:FZ,ItemControl:IZ,ItemDescription:LZ,ItemIndicator:RZ,ItemInput:zZ,ItemLabel:BZ,Label:VZ}),z0=class{collection;ref;collator;constructor(e,t,n){this.collection=e,this.ref=t,this.collator=n}getKeyBelow(e){let t=this.collection().getKeyAfter(e);for(;t!=null;){let e=this.collection().getItem(t);if(e&&e.type===`item`&&!e.disabled)return t;t=this.collection().getKeyAfter(t)}}getKeyAbove(e){let t=this.collection().getKeyBefore(e);for(;t!=null;){let e=this.collection().getItem(t);if(e&&e.type===`item`&&!e.disabled)return t;t=this.collection().getKeyBefore(t)}}getFirstKey(){let e=this.collection().getFirstKey();for(;e!=null;){let t=this.collection().getItem(e);if(t&&t.type===`item`&&!t.disabled)return e;e=this.collection().getKeyAfter(e)}}getLastKey(){let e=this.collection().getLastKey();for(;e!=null;){let t=this.collection().getItem(e);if(t&&t.type===`item`&&!t.disabled)return e;e=this.collection().getKeyBefore(e)}}getItem(e){return this.ref?.()?.querySelector(`[data-key="${e}"]`)??null}getKeyPageAbove(e){let t=this.ref?.(),n=this.getItem(e);if(!t||!n)return;let r=Math.max(0,n.offsetTop+n.offsetHeight-t.offsetHeight),i=e;for(;i&&n&&n.offsetTop>r;)i=this.getKeyAbove(i),n=i==null?null:this.getItem(i);return i}getKeyPageBelow(e){let t=this.ref?.(),n=this.getItem(e);if(!t||!n)return;let r=Math.min(t.scrollHeight,n.offsetTop-n.offsetHeight+t.offsetHeight),i=e;for(;i&&n&&n.offsetTop<r;)i=this.getKeyBelow(i),n=i==null?null:this.getItem(i);return i}getKeyForSearch(e,t){let n=this.collator?.();if(!n)return;let r=t==null?this.getFirstKey():this.getKeyBelow(t);for(;r!=null;){let t=this.collection().getItem(r);if(t){let i=t.textValue.slice(0,e.length);if(t.textValue&&n.compare(i,e)===0)return r}r=this.getKeyBelow(r)}}},B0=YU(),V0=YU(),H0=YU(),U0=YU(),W0=YU(),G0={next:(e,t)=>e===`ltr`?t===`horizontal`?`ArrowRight`:`ArrowDown`:t===`horizontal`?`ArrowLeft`:`ArrowUp`,previous:(e,t)=>G0.next(e===`ltr`?`rtl`:`ltr`,t)},K0={first:e=>e===`horizontal`?`ArrowDown`:`ArrowRight`,last:e=>e===`horizontal`?`ArrowUp`:`ArrowLeft`},q0=YU(),J0=YU(),Y0={close:(e,t)=>e===`ltr`?[t===`horizontal`?`ArrowLeft`:`ArrowUp`]:[t===`horizontal`?`ArrowRight`:`ArrowDown`]},X0=[`Enter`,` `],Z0={open:(e,t)=>e===`ltr`?[...X0,t===`horizontal`?`ArrowRight`:`ArrowDown`]:[...X0,t===`horizontal`?`ArrowLeft`:`ArrowUp`]},$$({},{Root:()=>bQ,Separator:()=>Q0}),Q0=bQ,$0={},$$($0,{Arrow:()=>XX,CheckboxItem:()=>ZZ,Content:()=>xQ,DropdownMenu:()=>e2,Group:()=>nQ,GroupLabel:()=>rQ,Icon:()=>iQ,Item:()=>aQ,ItemDescription:()=>oQ,ItemIndicator:()=>sQ,ItemLabel:()=>cQ,Portal:()=>lQ,RadioGroup:()=>dQ,RadioItem:()=>fQ,Root:()=>SQ,Separator:()=>bQ,Sub:()=>gQ,SubContent:()=>_Q,SubTrigger:()=>vQ,Trigger:()=>QZ}),e2=Object.assign(SQ,{Arrow:XX,CheckboxItem:ZZ,Content:xQ,Group:nQ,GroupLabel:rQ,Icon:iQ,Item:aQ,ItemDescription:oQ,ItemIndicator:sQ,ItemLabel:cQ,Portal:lQ,RadioGroup:dQ,RadioItem:fQ,Separator:bQ,Sub:gQ,SubContent:_Q,SubTrigger:vQ,Trigger:QZ}),$={colors:{inherit:`inherit`,current:`currentColor`,transparent:`transparent`,black:`#000000`,white:`#ffffff`,neutral:{50:`#f9fafb`,100:`#f2f4f7`,200:`#eaecf0`,300:`#d0d5dd`,400:`#98a2b3`,500:`#667085`,600:`#475467`,700:`#344054`,800:`#1d2939`,900:`#101828`},darkGray:{50:`#525c7a`,100:`#49536e`,200:`#414962`,300:`#394056`,400:`#313749`,500:`#292e3d`,600:`#212530`,700:`#191c24`,800:`#111318`,900:`#0b0d10`},gray:{50:`#f9fafb`,100:`#f2f4f7`,200:`#eaecf0`,300:`#d0d5dd`,400:`#98a2b3`,500:`#667085`,600:`#475467`,700:`#344054`,800:`#1d2939`,900:`#101828`},blue:{25:`#F5FAFF`,50:`#EFF8FF`,100:`#D1E9FF`,200:`#B2DDFF`,300:`#84CAFF`,400:`#53B1FD`,500:`#2E90FA`,600:`#1570EF`,700:`#175CD3`,800:`#1849A9`,900:`#194185`},green:{25:`#F6FEF9`,50:`#ECFDF3`,100:`#D1FADF`,200:`#A6F4C5`,300:`#6CE9A6`,400:`#32D583`,500:`#12B76A`,600:`#039855`,700:`#027A48`,800:`#05603A`,900:`#054F31`},red:{50:`#fef2f2`,100:`#fee2e2`,200:`#fecaca`,300:`#fca5a5`,400:`#f87171`,500:`#ef4444`,600:`#dc2626`,700:`#b91c1c`,800:`#991b1b`,900:`#7f1d1d`,950:`#450a0a`},yellow:{25:`#FFFCF5`,50:`#FFFAEB`,100:`#FEF0C7`,200:`#FEDF89`,300:`#FEC84B`,400:`#FDB022`,500:`#F79009`,600:`#DC6803`,700:`#B54708`,800:`#93370D`,900:`#7A2E0E`},purple:{25:`#FAFAFF`,50:`#F4F3FF`,100:`#EBE9FE`,200:`#D9D6FE`,300:`#BDB4FE`,400:`#9B8AFB`,500:`#7A5AF8`,600:`#6938EF`,700:`#5925DC`,800:`#4A1FB8`,900:`#3E1C96`},teal:{25:`#F6FEFC`,50:`#F0FDF9`,100:`#CCFBEF`,200:`#99F6E0`,300:`#5FE9D0`,400:`#2ED3B7`,500:`#15B79E`,600:`#0E9384`,700:`#107569`,800:`#125D56`,900:`#134E48`},pink:{25:`#fdf2f8`,50:`#fce7f3`,100:`#fbcfe8`,200:`#f9a8d4`,300:`#f472b6`,400:`#ec4899`,500:`#db2777`,600:`#be185d`,700:`#9d174d`,800:`#831843`,900:`#500724`},cyan:{25:`#ecfeff`,50:`#cffafe`,100:`#a5f3fc`,200:`#67e8f9`,300:`#22d3ee`,400:`#06b6d4`,500:`#0891b2`,600:`#0e7490`,700:`#155e75`,800:`#164e63`,900:`#083344`}},alpha:{100:`ff`,90:`e5`,80:`cc`,70:`b3`,60:`99`,50:`80`,40:`66`,30:`4d`,20:`33`,10:`1a`,0:`00`},font:{size:{"2xs":`calc(var(--tsqd-font-size) * 0.625)`,xs:`calc(var(--tsqd-font-size) * 0.75)`,sm:`calc(var(--tsqd-font-size) * 0.875)`,md:`var(--tsqd-font-size)`,lg:`calc(var(--tsqd-font-size) * 1.125)`,xl:`calc(var(--tsqd-font-size) * 1.25)`,"2xl":`calc(var(--tsqd-font-size) * 1.5)`,"3xl":`calc(var(--tsqd-font-size) * 1.875)`,"4xl":`calc(var(--tsqd-font-size) * 2.25)`,"5xl":`calc(var(--tsqd-font-size) * 3)`,"6xl":`calc(var(--tsqd-font-size) * 3.75)`,"7xl":`calc(var(--tsqd-font-size) * 4.5)`,"8xl":`calc(var(--tsqd-font-size) * 6)`,"9xl":`calc(var(--tsqd-font-size) * 8)`},lineHeight:{xs:`calc(var(--tsqd-font-size) * 1)`,sm:`calc(var(--tsqd-font-size) * 1.25)`,md:`calc(var(--tsqd-font-size) * 1.5)`,lg:`calc(var(--tsqd-font-size) * 1.75)`,xl:`calc(var(--tsqd-font-size) * 2)`,"2xl":`calc(var(--tsqd-font-size) * 2.25)`,"3xl":`calc(var(--tsqd-font-size) * 2.5)`,"4xl":`calc(var(--tsqd-font-size) * 2.75)`,"5xl":`calc(var(--tsqd-font-size) * 3)`,"6xl":`calc(var(--tsqd-font-size) * 3.25)`,"7xl":`calc(var(--tsqd-font-size) * 3.5)`,"8xl":`calc(var(--tsqd-font-size) * 3.75)`,"9xl":`calc(var(--tsqd-font-size) * 4)`},weight:{thin:`100`,extralight:`200`,light:`300`,normal:`400`,medium:`500`,semibold:`600`,bold:`700`,extrabold:`800`,black:`900`}},breakpoints:{xs:`320px`,sm:`640px`,md:`768px`,lg:`1024px`,xl:`1280px`,"2xl":`1536px`},border:{radius:{none:`0px`,xs:`calc(var(--tsqd-font-size) * 0.125)`,sm:`calc(var(--tsqd-font-size) * 0.25)`,md:`calc(var(--tsqd-font-size) * 0.375)`,lg:`calc(var(--tsqd-font-size) * 0.5)`,xl:`calc(var(--tsqd-font-size) * 0.75)`,"2xl":`calc(var(--tsqd-font-size) * 1)`,"3xl":`calc(var(--tsqd-font-size) * 1.5)`,full:`9999px`}},size:{0:`0px`,.25:`calc(var(--tsqd-font-size) * 0.0625)`,.5:`calc(var(--tsqd-font-size) * 0.125)`,1:`calc(var(--tsqd-font-size) * 0.25)`,1.5:`calc(var(--tsqd-font-size) * 0.375)`,2:`calc(var(--tsqd-font-size) * 0.5)`,2.5:`calc(var(--tsqd-font-size) * 0.625)`,3:`calc(var(--tsqd-font-size) * 0.75)`,3.5:`calc(var(--tsqd-font-size) * 0.875)`,4:`calc(var(--tsqd-font-size) * 1)`,4.5:`calc(var(--tsqd-font-size) * 1.125)`,5:`calc(var(--tsqd-font-size) * 1.25)`,5.5:`calc(var(--tsqd-font-size) * 1.375)`,6:`calc(var(--tsqd-font-size) * 1.5)`,6.5:`calc(var(--tsqd-font-size) * 1.625)`,7:`calc(var(--tsqd-font-size) * 1.75)`,8:`calc(var(--tsqd-font-size) * 2)`,9:`calc(var(--tsqd-font-size) * 2.25)`,10:`calc(var(--tsqd-font-size) * 2.5)`,11:`calc(var(--tsqd-font-size) * 2.75)`,12:`calc(var(--tsqd-font-size) * 3)`,14:`calc(var(--tsqd-font-size) * 3.5)`,16:`calc(var(--tsqd-font-size) * 4)`,20:`calc(var(--tsqd-font-size) * 5)`,24:`calc(var(--tsqd-font-size) * 6)`,28:`calc(var(--tsqd-font-size) * 7)`,32:`calc(var(--tsqd-font-size) * 8)`,36:`calc(var(--tsqd-font-size) * 9)`,40:`calc(var(--tsqd-font-size) * 10)`,44:`calc(var(--tsqd-font-size) * 11)`,48:`calc(var(--tsqd-font-size) * 12)`,52:`calc(var(--tsqd-font-size) * 13)`,56:`calc(var(--tsqd-font-size) * 14)`,60:`calc(var(--tsqd-font-size) * 15)`,64:`calc(var(--tsqd-font-size) * 16)`,72:`calc(var(--tsqd-font-size) * 18)`,80:`calc(var(--tsqd-font-size) * 20)`,96:`calc(var(--tsqd-font-size) * 24)`},shadow:{xs:(e=`rgb(0 0 0 / 0.1)`)=>`0 1px 2px 0 rgb(0 0 0 / 0.05)`,sm:(e=`rgb(0 0 0 / 0.1)`)=>`0 1px 3px 0 ${e}, 0 1px 2px -1px ${e}`,md:(e=`rgb(0 0 0 / 0.1)`)=>`0 4px 6px -1px ${e}, 0 2px 4px -2px ${e}`,lg:(e=`rgb(0 0 0 / 0.1)`)=>`0 10px 15px -3px ${e}, 0 4px 6px -4px ${e}`,xl:(e=`rgb(0 0 0 / 0.1)`)=>`0 20px 25px -5px ${e}, 0 8px 10px -6px ${e}`,"2xl":(e=`rgb(0 0 0 / 0.25)`)=>`0 25px 50px -12px ${e}`,inner:(e=`rgb(0 0 0 / 0.05)`)=>`inset 0 2px 4px 0 ${e}`,none:()=>`none`},zIndices:{hide:-1,auto:`auto`,base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800}},t2=IW(`<svg width=14 height=14 viewBox="0 0 14 14"fill=none xmlns=http://www.w3.org/2000/svg><path d="M13 13L9.00007 9M10.3333 5.66667C10.3333 8.244 8.244 10.3333 5.66667 10.3333C3.08934 10.3333 1 8.244 1 5.66667C1 3.08934 3.08934 1 5.66667 1C8.244 1 10.3333 3.08934 10.3333 5.66667Z"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`),n2=IW(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 3H15M3 6H21M19 6L18.2987 16.5193C18.1935 18.0975 18.1409 18.8867 17.8 19.485C17.4999 20.0118 17.0472 20.4353 16.5017 20.6997C15.882 21 15.0911 21 13.5093 21H10.4907C8.90891 21 8.11803 21 7.49834 20.6997C6.95276 20.4353 6.50009 20.0118 6.19998 19.485C5.85911 18.8867 5.8065 18.0975 5.70129 16.5193L5 6M10 10.5V15.5M14 10.5V15.5"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`),r2=IW(`<svg width=10 height=6 viewBox="0 0 10 6"fill=none xmlns=http://www.w3.org/2000/svg><path d="M1 1L5 5L9 1"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`),i2=IW(`<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 13.3333V2.66667M8 2.66667L4 6.66667M8 2.66667L12 6.66667"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`),a2=IW(`<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`),o2=IW(`<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg style=transform:rotate(90deg)><path d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`),s2=IW(`<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg style=transform:rotate(-90deg)><path d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`),c2=IW(`<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2v2m0 16v2M4 12H2m4.314-5.686L4.9 4.9m12.786 1.414L19.1 4.9M6.314 17.69 4.9 19.104m12.786-1.414 1.414 1.414M22 12h-2m-3 0a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`),l2=IW(`<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M22 15.844a10.424 10.424 0 0 1-4.306.925c-5.779 0-10.463-4.684-10.463-10.462 0-1.536.33-2.994.925-4.307A10.464 10.464 0 0 0 2 11.538C2 17.316 6.684 22 12.462 22c4.243 0 7.896-2.526 9.538-6.156Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`),u2=IW(`<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 21h8m-4-4v4m-5.2-4h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 14.72 22 13.88 22 12.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v4.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 17 5.12 17 6.8 17Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`),d2=IW(`<svg stroke=currentColor fill=currentColor stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M0 0h24v24H0z"></path><path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3a4.237 4.237 0 00-6 0zm-4-4l2 2a7.074 7.074 0 0110 0l2-2C15.14 9.14 8.87 9.14 5 13z">`),f2=IW(`<svg stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M24 .01c0-.01 0-.01 0 0L0 0v24h24V.01zM0 0h24v24H0V0zm0 0h24v24H0V0z"></path><path d="M22.99 9C19.15 5.16 13.8 3.76 8.84 4.78l2.52 2.52c3.47-.17 6.99 1.05 9.63 3.7l2-2zm-4 4a9.793 9.793 0 00-4.49-2.56l3.53 3.53.96-.97zM2 3.05L5.07 6.1C3.6 6.82 2.22 7.78 1 9l1.99 2c1.24-1.24 2.67-2.16 4.2-2.77l2.24 2.24A9.684 9.684 0 005 13v.01L6.99 15a7.042 7.042 0 014.92-2.06L18.98 20l1.27-1.26L3.29 1.79 2 3.05zM9 17l3 3 3-3a4.237 4.237 0 00-6 0z">`),p2=IW(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.3951 19.3711L9.97955 20.6856C10.1533 21.0768 10.4368 21.4093 10.7958 21.6426C11.1547 21.8759 11.5737 22.0001 12.0018 22C12.4299 22.0001 12.8488 21.8759 13.2078 21.6426C13.5667 21.4093 13.8503 21.0768 14.024 20.6856L14.6084 19.3711C14.8165 18.9047 15.1664 18.5159 15.6084 18.26C16.0532 18.0034 16.5678 17.8941 17.0784 17.9478L18.5084 18.1C18.9341 18.145 19.3637 18.0656 19.7451 17.8713C20.1265 17.6771 20.4434 17.3763 20.6573 17.0056C20.8715 16.635 20.9735 16.2103 20.9511 15.7829C20.9286 15.3555 20.7825 14.9438 20.5307 14.5978L19.684 13.4344C19.3825 13.0171 19.2214 12.5148 19.224 12C19.2239 11.4866 19.3865 10.9864 19.6884 10.5711L20.5351 9.40778C20.787 9.06175 20.933 8.65007 20.9555 8.22267C20.978 7.79528 20.8759 7.37054 20.6618 7C20.4479 6.62923 20.131 6.32849 19.7496 6.13423C19.3681 5.93997 18.9386 5.86053 18.5129 5.90556L17.0829 6.05778C16.5722 6.11141 16.0577 6.00212 15.6129 5.74556C15.17 5.48825 14.82 5.09736 14.6129 4.62889L14.024 3.31444C13.8503 2.92317 13.5667 2.59072 13.2078 2.3574C12.8488 2.12408 12.4299 1.99993 12.0018 2C11.5737 1.99993 11.1547 2.12408 10.7958 2.3574C10.4368 2.59072 10.1533 2.92317 9.97955 3.31444L9.3951 4.62889C9.18803 5.09736 8.83798 5.48825 8.3951 5.74556C7.95032 6.00212 7.43577 6.11141 6.9251 6.05778L5.49066 5.90556C5.06499 5.86053 4.6354 5.93997 4.25397 6.13423C3.87255 6.32849 3.55567 6.62923 3.34177 7C3.12759 7.37054 3.02555 7.79528 3.04804 8.22267C3.07052 8.65007 3.21656 9.06175 3.46844 9.40778L4.3151 10.5711C4.61704 10.9864 4.77964 11.4866 4.77955 12C4.77964 12.5134 4.61704 13.0137 4.3151 13.4289L3.46844 14.5922C3.21656 14.9382 3.07052 15.3499 3.04804 15.7773C3.02555 16.2047 3.12759 16.6295 3.34177 17C3.55589 17.3706 3.8728 17.6712 4.25417 17.8654C4.63554 18.0596 5.06502 18.1392 5.49066 18.0944L6.92066 17.9422C7.43133 17.8886 7.94587 17.9979 8.39066 18.2544C8.83519 18.511 9.18687 18.902 9.3951 19.3711Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><path d="M12 15C13.6568 15 15 13.6569 15 12C15 10.3431 13.6568 9 12 9C10.3431 9 8.99998 10.3431 8.99998 12C8.99998 13.6569 10.3431 15 12 15Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`),m2=IW(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M16 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V8M11.5 12.5L17 7M17 7H12M17 7V12M6.2 21H8.8C9.9201 21 10.4802 21 10.908 20.782C11.2843 20.5903 11.5903 20.2843 11.782 19.908C12 19.4802 12 18.9201 12 17.8V15.2C12 14.0799 12 13.5198 11.782 13.092C11.5903 12.7157 11.2843 12.4097 10.908 12.218C10.4802 12 9.92011 12 8.8 12H6.2C5.0799 12 4.51984 12 4.09202 12.218C3.71569 12.4097 3.40973 12.7157 3.21799 13.092C3 13.5198 3 14.0799 3 15.2V17.8C3 18.9201 3 19.4802 3.21799 19.908C3.40973 20.2843 3.71569 20.5903 4.09202 20.782C4.51984 21 5.07989 21 6.2 21Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`),h2=IW(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path class=copier d="M8 8V5.2C8 4.0799 8 3.51984 8.21799 3.09202C8.40973 2.71569 8.71569 2.40973 9.09202 2.21799C9.51984 2 10.0799 2 11.2 2H18.8C19.9201 2 20.4802 2 20.908 2.21799C21.2843 2.40973 21.5903 2.71569 21.782 3.09202C22 3.51984 22 4.0799 22 5.2V12.8C22 13.9201 22 14.4802 21.782 14.908C21.5903 15.2843 21.2843 15.5903 20.908 15.782C20.4802 16 19.9201 16 18.8 16H16M5.2 22H12.8C13.9201 22 14.4802 22 14.908 21.782C15.2843 21.5903 15.5903 21.2843 15.782 20.908C16 20.4802 16 19.9201 16 18.8V11.2C16 10.0799 16 9.51984 15.782 9.09202C15.5903 8.71569 15.2843 8.40973 14.908 8.21799C14.4802 8 13.9201 8 12.8 8H5.2C4.0799 8 3.51984 8 3.09202 8.21799C2.71569 8.40973 2.40973 8.71569 2.21799 9.09202C2 9.51984 2 10.0799 2 11.2V18.8C2 19.9201 2 20.4802 2.21799 20.908C2.40973 21.2843 2.71569 21.5903 3.09202 21.782C3.51984 22 4.07989 22 5.2 22Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round stroke=currentColor>`),g2=IW(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M2.5 21.4998L8.04927 19.3655C8.40421 19.229 8.58168 19.1607 8.74772 19.0716C8.8952 18.9924 9.0358 18.901 9.16804 18.7984C9.31692 18.6829 9.45137 18.5484 9.72028 18.2795L21 6.99982C22.1046 5.89525 22.1046 4.10438 21 2.99981C19.8955 1.89525 18.1046 1.89524 17 2.99981L5.72028 14.2795C5.45138 14.5484 5.31692 14.6829 5.20139 14.8318C5.09877 14.964 5.0074 15.1046 4.92823 15.2521C4.83911 15.4181 4.77085 15.5956 4.63433 15.9506L2.5 21.4998ZM2.5 21.4998L4.55812 16.1488C4.7054 15.7659 4.77903 15.5744 4.90534 15.4867C5.01572 15.4101 5.1523 15.3811 5.2843 15.4063C5.43533 15.4351 5.58038 15.5802 5.87048 15.8703L8.12957 18.1294C8.41967 18.4195 8.56472 18.5645 8.59356 18.7155C8.61877 18.8475 8.58979 18.9841 8.51314 19.0945C8.42545 19.2208 8.23399 19.2944 7.85107 19.4417L2.5 21.4998Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`),_2=IW(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>`),v2=IW(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 9L15 15M15 9L9 15M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke=#F04438 stroke-width=2 stroke-linecap=round stroke-linejoin=round>`),y2=IW(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 xmlns=http://www.w3.org/2000/svg><rect class=list width=20 height=20 y=2 x=2 rx=2></rect><line class=list-item y1=7 y2=7 x1=6 x2=18></line><line class=list-item y2=12 y1=12 x1=6 x2=18></line><line class=list-item y1=17 y2=17 x1=6 x2=18>`),b2=IW(`<svg viewBox="0 0 24 24"height=20 width=20 fill=none xmlns=http://www.w3.org/2000/svg><path d="M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>`),x2=IW(`<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`),S2=IW(`<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2V6M12 18V22M6 12H2M22 12H18M19.0784 19.0784L16.25 16.25M19.0784 4.99994L16.25 7.82837M4.92157 19.0784L7.75 16.25M4.92157 4.99994L7.75 7.82837"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><animateTransform attributeName=transform attributeType=XML type=rotate from=0 to=360 dur=2s repeatCount=indefinite>`),C2=IW(`<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M15 9L9 15M9 9L15 15M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`),w2=IW(`<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.5 15V9M14.5 15V9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`),T2=IW(`<svg version=1.0 viewBox="0 0 633 633"><linearGradient x1=-666.45 x2=-666.45 y1=163.28 y2=163.99 gradientTransform="matrix(633 0 0 633 422177 -103358)"gradientUnits=userSpaceOnUse><stop stop-color=#6BDAFF offset=0></stop><stop stop-color=#F9FFB5 offset=.32></stop><stop stop-color=#FFA770 offset=.71></stop><stop stop-color=#FF7373 offset=1></stop></linearGradient><circle cx=316.5 cy=316.5 r=316.5></circle><defs><filter x=-137.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=316.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=316.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=316.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=272.2 y=308 width=176.9 height=129.3 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=272.2 y=308 width=176.9 height=129.3 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><line x1=436 x2=431 y1=403.2 y2=431.8 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=291 x2=280 y1=341.5 y2=403.5 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=332.9 x2=328.6 y1=384.1 y2=411.2 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><linearGradient x1=-670.75 x2=-671.59 y1=164.4 y2=164.49 gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)"gradientUnits=userSpaceOnUse><stop stop-color=#EE2700 offset=0></stop><stop stop-color=#FF008E offset=1></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z"clip-rule=evenodd fill-rule=evenodd></path><line x1=428.2 x2=429.1 y1=384.5 y2=378 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=395.2 x2=396.1 y1=379.5 y2=373 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=362.2 x2=363.1 y1=373.5 y2=367.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=324.2 x2=328.4 y1=351.3 y2=347.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=303.2 x2=307.4 y1=331.3 y2=327.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line></g><defs><filter x=73.2 y=113.8 width=280.6 height=317.4 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=73.2 y=113.8 width=280.6 height=317.4 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-672.16 x2=-672.16 y1=165.03 y2=166.03 gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)"gradientUnits=userSpaceOnUse><stop stop-color=#A17500 offset=0></stop><stop stop-color=#5D2100 offset=1></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6"clip-rule=evenodd fill-rule=evenodd></path><g stroke=#2F8A00><linearGradient x1=-660.23 x2=-660.23 y1=166.72 y2=167.72 gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-661.36 x2=-661.36 y1=164.18 y2=165.18 gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.79 x2=-656.79 y1=165.15 y2=166.15 gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-663.07 x2=-663.07 y1=165.44 y2=166.44 gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-662.57 x2=-662.57 y1=164.44 y2=165.44 gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.43 x2=-656.43 y1=163.86 y2=164.86 gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1"fill=none stroke-linecap=round stroke-width=8></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8"fill=none stroke-linecap=round stroke-width=8></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9"fill=none stroke-linecap=round stroke-width=8></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32"fill=none stroke-linecap=round stroke-width=8></path></g></g><defs><filter x=50.5 y=399 width=532 height=633 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=50.5 y=399 width=532 height=633 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-666.06 x2=-666.23 y1=163.36 y2=163.75 gradientTransform="matrix(532 0 0 633 354760 -102959)"gradientUnits=userSpaceOnUse><stop stop-color=#FFF400 offset=0></stop><stop stop-color=#3C8700 offset=1></stop></linearGradient><ellipse cx=316.5 cy=715.5 rx=266 ry=316.5></ellipse></g><defs><filter x=391 y=-24 width=288 height=283 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=391 y=-24 width=288 height=283 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-664.56 x2=-664.56 y1=163.79 y2=164.79 gradientTransform="matrix(227 0 0 227 151421 -37204)"gradientUnits=userSpaceOnUse><stop stop-color=#FFDF00 offset=0></stop><stop stop-color=#FF9D00 offset=1></stop></linearGradient><circle cx=565.5 cy=89.5 r=113.5></circle><linearGradient x1=-644.5 x2=-645.77 y1=342 y2=342 gradientTransform="matrix(30 0 0 1 19770 -253)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=427 x2=397 y1=89 y2=89 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-641.56 x2=-642.83 y1=196.02 y2=196.07 gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=430.5 x2=404 y1=55.5 y2=50 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-643.73 x2=-645 y1=185.83 y2=185.9 gradientTransform="matrix(29 0 0 8 19107 -1361)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=431 x2=402 y1=122 y2=130 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-638.94 x2=-640.22 y1=177.09 y2=177.39 gradientTransform="matrix(24 0 0 13 15783 -2145)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=442 x2=418 y1=153 y2=166 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-633.42 x2=-634.7 y1=172.41 y2=173.31 gradientTransform="matrix(20 0 0 19 13137 -3096)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=464 x2=444 y1=180 y2=199 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-619.05 x2=-619.52 y1=170.82 y2=171.82 gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=491.4 x2=477.5 y1=203 y2=225.9 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-578.5 x2=-578.63 y1=170.31 y2=171.31 gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=524.5 x2=517 y1=219.5 y2=244 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=666.5 x2=666.5 y1=170.31 y2=171.31 gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=564.5 x2=565 y1=228.5 y2=253 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12>`),E2=IW(`<span><svg width=16 height=16 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M6 12L10 8L6 4"stroke-width=2 stroke-linecap=round stroke-linejoin=round>`),D2=IW(`<button title="Copy object to clipboard">`),O2=IW(`<button title="Remove all items"aria-label="Remove all items">`),k2=IW(`<button title="Delete item"aria-label="Delete item">`),A2=IW(`<button title="Toggle value"aria-label="Toggle value">`),j2=IW(`<button title="Bulk Edit Data"aria-label="Bulk Edit Data">`),M2=IW(`<div>`),N2=IW(`<div><button> <span></span> <span> `),P2=IW(`<input>`),F2=IW(`<span>`),I2=IW(`<div><label>:`),L2=IW(`<div><div><button> [<!>...<!>]`),R2=e=>{let t=jq(),n=Aq().shadowDOMTarget?Vq.bind({target:Aq().shadowDOMTarget}):Vq,r=G(()=>t()===`dark`?G2(n):W2(n));return(()=>{var t=E2();return IU(()=>J(t,Z(r().expander,n`
58
+ transform: rotate(${e.expanded?90:0}deg);
59
+ `,e.expanded&&n`
60
+ & svg {
61
+ top: -1px;
62
+ }
63
+ `))),t})()},z2=e=>{let t=jq(),n=Aq().shadowDOMTarget?Vq.bind({target:Aq().shadowDOMTarget}):Vq,r=G(()=>t()===`dark`?G2(n):W2(n)),[i,a]=PU(`NoCopy`);return(()=>{var n=D2();return VW(n,`click`,i()===`NoCopy`?()=>{navigator.clipboard.writeText(cq(e.value)).then(()=>{a(`SuccessCopy`),setTimeout(()=>{a(`NoCopy`)},1500)},e=>{a(`ErrorCopy`),setTimeout(()=>{a(`NoCopy`)},1500)})}:void 0,!0),Y(n,K(jW,{get children(){return[K(MW,{get when(){return i()===`NoCopy`},get children(){return K(LQ,{})}}),K(MW,{get when(){return i()===`SuccessCopy`},get children(){return K(zQ,{get theme(){return t()}})}}),K(MW,{get when(){return i()===`ErrorCopy`},get children(){return K(BQ,{})}})]}})),IU(e=>{var t=r().actionButton,a=`${i()===`NoCopy`?`Copy object to clipboard`:i()===`SuccessCopy`?`Object copied to clipboard`:`Error copying object to clipboard`}`;return t!==e.e&&J(n,e.e=t),a!==e.t&&q(n,`aria-label`,e.t=a),e},{e:void 0,t:void 0}),n})()},B2=e=>{let t=jq(),n=Aq().shadowDOMTarget?Vq.bind({target:Aq().shadowDOMTarget}):Vq,r=G(()=>t()===`dark`?G2(n):W2(n)),i=Aq().client;return(()=>{var t=O2();return t.$$click=()=>{let t=e.activeQuery.state.data,n=xq(t,e.dataPath,[]);i.setQueryData(e.activeQuery.queryKey,n)},Y(t,K(VQ,{})),IU(()=>J(t,r().actionButton)),t})()},V2=e=>{let t=jq(),n=Aq().shadowDOMTarget?Vq.bind({target:Aq().shadowDOMTarget}):Vq,r=G(()=>t()===`dark`?G2(n):W2(n)),i=Aq().client;return(()=>{var t=k2();return t.$$click=()=>{let t=e.activeQuery.state.data,n=Sq(t,e.dataPath);i.setQueryData(e.activeQuery.queryKey,n)},Y(t,K(wQ,{})),IU(()=>J(t,Z(r().actionButton))),t})()},H2=e=>{let t=jq(),n=Aq().shadowDOMTarget?Vq.bind({target:Aq().shadowDOMTarget}):Vq,r=G(()=>t()===`dark`?G2(n):W2(n)),i=Aq().client;return(()=>{var a=A2();return a.$$click=()=>{let t=e.activeQuery.state.data,n=xq(t,e.dataPath,!e.value);i.setQueryData(e.activeQuery.queryKey,n)},Y(a,K(HQ,{get theme(){return t()},get checked(){return e.value}})),IU(()=>J(a,Z(r().actionButton,n`
64
+ width: ${$.size[3.5]};
65
+ height: ${$.size[3.5]};
66
+ `))),a})()},U2=(e,t)=>{let{colors:n,font:r,size:i,border:a}=$,o=(t,n)=>e===`light`?t:n;return{entry:t`
67
+ & * {
68
+ font-size: ${r.size.xs};
69
+ font-family:
70
+ ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
71
+ 'Liberation Mono', 'Courier New', monospace;
72
+ }
73
+ position: relative;
74
+ outline: none;
75
+ word-break: break-word;
76
+ `,subEntry:t`
77
+ margin: 0 0 0 0.5em;
78
+ padding-left: 0.75em;
79
+ border-left: 2px solid ${o(n.gray[300],n.darkGray[400])};
80
+ /* outline: 1px solid ${n.teal[400]}; */
81
+ `,expander:t`
82
+ & path {
83
+ stroke: ${n.gray[400]};
84
+ }
85
+ & svg {
86
+ width: ${i[3]};
87
+ height: ${i[3]};
88
+ }
89
+ display: inline-flex;
90
+ align-items: center;
91
+ transition: all 0.1s ease;
92
+ /* outline: 1px solid ${n.blue[400]}; */
93
+ `,expanderButtonContainer:t`
94
+ display: flex;
95
+ align-items: center;
96
+ line-height: ${i[4]};
97
+ min-height: ${i[4]};
98
+ gap: ${i[2]};
99
+ `,expanderButton:t`
100
+ cursor: pointer;
101
+ color: inherit;
102
+ font: inherit;
103
+ outline: inherit;
104
+ height: ${i[5]};
105
+ background: transparent;
106
+ border: none;
107
+ padding: 0;
108
+ display: inline-flex;
109
+ align-items: center;
110
+ gap: ${i[1]};
111
+ position: relative;
112
+ /* outline: 1px solid ${n.green[400]}; */
113
+
114
+ &:focus-visible {
115
+ border-radius: ${a.radius.xs};
116
+ outline: 2px solid ${n.blue[800]};
117
+ }
118
+
119
+ & svg {
120
+ position: relative;
121
+ left: 1px;
122
+ }
123
+ `,info:t`
124
+ color: ${o(n.gray[500],n.gray[500])};
125
+ font-size: ${r.size.xs};
126
+ margin-left: ${i[1]};
127
+ /* outline: 1px solid ${n.yellow[400]}; */
128
+ `,label:t`
129
+ color: ${o(n.gray[700],n.gray[300])};
130
+ white-space: nowrap;
131
+ `,value:t`
132
+ color: ${o(n.purple[600],n.purple[400])};
133
+ flex-grow: 1;
134
+ `,actions:t`
135
+ display: inline-flex;
136
+ gap: ${i[2]};
137
+ align-items: center;
138
+ `,row:t`
139
+ display: inline-flex;
140
+ gap: ${i[2]};
141
+ width: 100%;
142
+ margin: ${i[.25]} 0px;
143
+ line-height: ${i[4.5]};
144
+ align-items: center;
145
+ `,editableInput:t`
146
+ border: none;
147
+ padding: ${i[.5]} ${i[1]} ${i[.5]} ${i[1.5]};
148
+ flex-grow: 1;
149
+ border-radius: ${a.radius.xs};
150
+ background-color: ${o(n.gray[200],n.darkGray[500])};
151
+
152
+ &:hover {
153
+ background-color: ${o(n.gray[300],n.darkGray[600])};
154
+ }
155
+ `,actionButton:t`
156
+ background-color: transparent;
157
+ color: ${o(n.gray[500],n.gray[500])};
158
+ border: none;
159
+ display: inline-flex;
160
+ padding: 0px;
161
+ align-items: center;
162
+ justify-content: center;
163
+ cursor: pointer;
164
+ width: ${i[3]};
165
+ height: ${i[3]};
166
+ position: relative;
167
+ z-index: 1;
168
+
169
+ &:hover svg {
170
+ color: ${o(n.gray[600],n.gray[400])};
171
+ }
172
+
173
+ &:focus-visible {
174
+ border-radius: ${a.radius.xs};
175
+ outline: 2px solid ${n.blue[800]};
176
+ outline-offset: 2px;
177
+ }
178
+ `}},W2=e=>U2(`light`,e),G2=e=>U2(`dark`,e),LW([`click`]),K2=IW(`<div><div aria-hidden=true></div><button type=button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>`),q2=IW(`<div>`),J2=IW(`<div style=--tsqd-font-size:16px;max-height:100vh;height:100vh;width:100vw>`),Y2=IW(`<aside aria-label="Tanstack query devtools"><div role=separator aria-label="Resize devtools panel"tabindex=0></div><button aria-label="Close tanstack query devtools">`),X2=IW(`<select name=tsqd-queries-filter-sort aria-label="Sort queries by">`),Z2=IW(`<select name=tsqd-mutations-filter-sort aria-label="Sort mutations by">`),Q2=IW(`<span>Asc`),$2=IW(`<span>Desc`),e4=IW(`<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">`),t4=IW(`<div>Settings`),n4=IW(`<span>Position`),r4=IW(`<span>Top`),i4=IW(`<span>Bottom`),a4=IW(`<span>Left`),o4=IW(`<span>Right`),s4=IW(`<span>Theme`),c4=IW(`<span>Light`),l4=IW(`<span>Dark`),u4=IW(`<span>System`),d4=IW(`<span>Disabled Queries`),f4=IW(`<span>Show`),p4=IW(`<span>Hide`),m4=IW(`<div><div class=tsqd-queries-container>`),h4=IW(`<div><div class=tsqd-mutations-container>`),g4=IW(`<div><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div></div><div><div><div><input aria-label="Filter queries by query key"type=text placeholder=Filter name=tsqd-query-filter-input></div><div></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"></button><button>`),_4=IW(`<option>Sort by `),v4=IW(`<div class=tsqd-query-disabled-indicator aria-hidden=true>disabled`),y4=IW(`<div class=tsqd-query-static-indicator aria-hidden=true>static`),b4=IW(`<button><div></div><code class=tsqd-query-hash>`),x4=IW(`<div role=tooltip id=tsqd-status-tooltip>`),S4=IW(`<span>`),C4=IW(`<button><span aria-hidden=true></span><span>`),w4=IW(`<button><span aria-hidden=true></span> Error`),T4=IW(`<div><span aria-hidden=true></span>Trigger Error<select aria-label="Select error type to trigger"><option value disabled selected>`),E4=IW(`<div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer">`),D4=IW(`<form><textarea name=data aria-label="Edit query data as JSON"></textarea><div><span></span><div><button type=button>Cancel</button><button>Save`),O4=IW(`<div><div role=heading aria-level=2>Query Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span role=status aria-live=polite></span></div><div class=tsqd-query-details-observers-count><span>Observers:</span><span></span></div><div class=tsqd-query-details-last-updated><span>Last Updated:</span><span></span></div></div><div role=heading aria-level=2>Actions</div><div><button><span aria-hidden=true></span>Refetch</button><button><span aria-hidden=true></span>Invalidate</button><button><span aria-hidden=true></span>Reset</button><button><span aria-hidden=true></span>Remove</button><button><span aria-hidden=true></span> Loading</button></div><div role=heading aria-level=2>Data </div><div role=heading aria-level=2>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`),k4=IW(`<option>`),A4=IW(`<div><div role=heading aria-level=2>Mutation Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span role=status aria-live=polite></span></div><div class=tsqd-query-details-last-updated><span>Submitted At:</span><span></span></div></div><div role=heading aria-level=2>Variables Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div role=heading aria-level=2>Context Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div role=heading aria-level=2>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div role=heading aria-level=2>Mutations Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`),[j4,M4]=PU(null),[N4,P4]=PU(null),[F4,I4]=PU(0),[L4,R4]=PU(!1),z4=e=>{let t=jq(),n=Aq().shadowDOMTarget?Vq.bind({target:Aq().shadowDOMTarget}):Vq,r=G(()=>t()===`dark`?o3(n):a3(n)),i=G(()=>Aq().onlineManager);UU(()=>{let e=i().subscribe(e=>{R4(!e)});WU(()=>{e()})});let a=S$(),o=G(()=>Aq().buttonPosition||l$),s=G(()=>e.localStore.open===`true`?!0:e.localStore.open===`false`?!1:Aq().initialIsOpen||d$),c=G(()=>e.localStore.position||Aq().position||u$),l;LU(()=>{let t=l.parentElement,n=e.localStore.height||f$,r=e.localStore.width||m$,i=c();t.style.setProperty(`--tsqd-panel-height`,`${i===`top`?`-`:``}${n}px`),t.style.setProperty(`--tsqd-panel-width`,`${i===`left`?`-`:``}${r}px`)}),UU(()=>{let e=()=>{let e=l.parentElement,t=getComputedStyle(e).fontSize;e.style.setProperty(`--tsqd-font-size`,t)};e(),window.addEventListener(`focus`,e),WU(()=>{window.removeEventListener(`focus`,e)})});let u=G(()=>e.localStore.pip_open??`false`);return[K(AW,{get when(){return pK(()=>!!a().pipWindow)()&&u()==`true`},get children(){return K(oG,{get mount(){return a().pipWindow?.document.body},get children(){return K(B4,{get children(){return K(H4,e)}})}})}}),(()=>{var t=q2(),i=l;return typeof i==`function`?KW(i,t):l=t,Y(t,K(B$,{name:`tsqd-panel-transition`,get children(){return K(AW,{get when(){return pK(()=>!!(s()&&!a().pipWindow))()&&u()==`false`},get children(){return K(V4,{get localStore(){return e.localStore},get setLocalStore(){return e.setLocalStore}})}})}}),null),Y(t,K(B$,{name:`tsqd-button-transition`,get children(){return K(AW,{get when(){return!s()},get children(){var t=K2(),n=t.firstChild,i=n.nextSibling;return Y(n,K(qQ,{})),i.$$click=()=>e.setLocalStore(`open`,`true`),Y(i,K(qQ,{})),IU(()=>J(t,Z(r().devtoolsBtn,r()[`devtoolsBtn-position-${o()}`],`tsqd-open-btn-container`))),t}})}}),null),IU(()=>J(t,Z(n`
179
+ & .tsqd-panel-transition-exit-active,
180
+ & .tsqd-panel-transition-enter-active {
181
+ transition:
182
+ opacity 0.3s,
183
+ transform 0.3s;
184
+ }
185
+
186
+ & .tsqd-panel-transition-exit-to,
187
+ & .tsqd-panel-transition-enter {
188
+ ${c()===`top`||c()===`bottom`?`transform: translateY(var(--tsqd-panel-height));`:`transform: translateX(var(--tsqd-panel-width));`}
189
+ }
190
+
191
+ & .tsqd-button-transition-exit-active,
192
+ & .tsqd-button-transition-enter-active {
193
+ transition:
194
+ opacity 0.3s,
195
+ transform 0.3s;
196
+ opacity: 1;
197
+ }
198
+
199
+ & .tsqd-button-transition-exit-to,
200
+ & .tsqd-button-transition-enter {
201
+ transform: ${o()===`relative`?`none;`:o()===`top-left`?`translateX(-72px);`:o()===`top-right`?`translateX(72px);`:`translateY(72px);`};
202
+ opacity: 0;
203
+ }
204
+ `,`tsqd-transitions-container`))),t})()]},B4=e=>{let t=S$(),n=jq(),r=Aq().shadowDOMTarget?Vq.bind({target:Aq().shadowDOMTarget}):Vq,i=G(()=>n()===`dark`?o3(r):a3(r)),a=()=>{let{colors:e}=$,t=(e,t)=>n()===`dark`?t:e;return F4()<s$?r`
205
+ flex-direction: column;
206
+ background-color: ${t(e.gray[300],e.gray[600])};
207
+ `:r`
208
+ flex-direction: row;
209
+ background-color: ${t(e.gray[200],e.darkGray[900])};
210
+ `};return LU(()=>{let e=t().pipWindow,n=()=>{e&&I4(e.innerWidth)};e&&(e.addEventListener(`resize`,n),n()),WU(()=>{e&&e.removeEventListener(`resize`,n)})}),(()=>{var t=J2();return Y(t,()=>e.children),IU(()=>J(t,Z(i().panel,a(),{[r`
211
+ min-width: min-content;
212
+ `]:F4()<c$},`tsqd-main-panel`))),t})()},V4=e=>{let t=jq(),n=Aq().shadowDOMTarget?Vq.bind({target:Aq().shadowDOMTarget}):Vq,r=G(()=>t()===`dark`?o3(n):a3(n)),i;UU(()=>{i.focus()});let[a,o]=PU(!1),s=G(()=>e.localStore.position||Aq().position||u$),c=t=>{let n=t.currentTarget.parentElement;if(!n)return;o(!0);let{height:r,width:i}=n.getBoundingClientRect(),c=t.clientX,l=t.clientY,u=0,d=yq(3.5),f=yq(12),p=t=>{if(t.preventDefault(),s()===`left`||s()===`right`){let r=s()===`right`?c-t.clientX:t.clientX-c;u=Math.round(i+r),u<f&&(u=f),e.setLocalStore(`width`,String(Math.round(u)));let a=n.getBoundingClientRect().width;Number(e.localStore.width)<a&&e.setLocalStore(`width`,String(a))}else{let n=s()===`bottom`?l-t.clientY:t.clientY-l;u=Math.round(r+n),u<d&&(u=d,M4(null)),e.setLocalStore(`height`,String(Math.round(u)))}},m=()=>{a()&&o(!1),document.removeEventListener(`mousemove`,p,!1),document.removeEventListener(`mouseup`,m,!1)};document.addEventListener(`mousemove`,p,!1),document.addEventListener(`mouseup`,m,!1)},l;UU(()=>{rJ(l,({width:e},t)=>{t===l&&I4(e)})}),LU(()=>{let t=l.parentElement?.parentElement?.parentElement;if(!t)return;let n=kG(`padding`,e.localStore.position||u$),r=e.localStore.position===`left`||e.localStore.position===`right`,i=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:r,paddingRight:i})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:r,paddingRight:i}))(t.style);t.style[n]=`${r?e.localStore.width:e.localStore.height}px`,WU(()=>{Object.entries(i).forEach(([e,n])=>{t.style[e]=n})})});let u=()=>{let{colors:e}=$,r=(e,n)=>t()===`dark`?n:e;return F4()<s$?n`
213
+ flex-direction: column;
214
+ background-color: ${r(e.gray[300],e.gray[600])};
215
+ `:n`
216
+ flex-direction: row;
217
+ background-color: ${r(e.gray[200],e.darkGray[900])};
218
+ `};return(()=>{var t=Y2(),a=t.firstChild,o=a.nextSibling,d=l;typeof d==`function`?KW(d,t):l=t,a.$$keydown=t=>{let n=yq(3.5),r=yq(12);if(s()===`top`||s()===`bottom`){if(t.key===`ArrowUp`||t.key===`ArrowDown`){t.preventDefault();let r=Number(e.localStore.height||f$),i=s()===`bottom`?t.key===`ArrowUp`?10:-10:t.key===`ArrowDown`?10:-10,a=Math.max(n,r+i);e.setLocalStore(`height`,String(a))}}else if(t.key===`ArrowLeft`||t.key===`ArrowRight`){t.preventDefault();let n=Number(e.localStore.width||m$),i=s()===`right`?t.key===`ArrowLeft`?10:-10:t.key===`ArrowRight`?10:-10,a=Math.max(r,n+i);e.setLocalStore(`width`,String(a))}},a.$$mousedown=c,o.$$click=()=>e.setLocalStore(`open`,`false`);var f=i;return typeof f==`function`?KW(f,o):i=o,Y(o,K(TQ,{})),Y(t,K(H4,e),null),IU(i=>{var c=Z(r().panel,r()[`panel-position-${s()}`],u(),{[n`
219
+ min-width: min-content;
220
+ `]:F4()<c$&&(s()===`right`||s()===`left`)},`tsqd-main-panel`),l=s()===`bottom`||s()===`top`?`${e.localStore.height||f$}px`:`auto`,d=s()===`right`||s()===`left`?`${e.localStore.width||m$}px`:`auto`,f=s()===`top`||s()===`bottom`?`horizontal`:`vertical`,p=s()===`top`||s()===`bottom`?yq(3.5):yq(12),m=s()===`top`||s()===`bottom`?Number(e.localStore.height||f$):Number(e.localStore.width||m$),h=Z(r().dragHandle,r()[`dragHandle-position-${s()}`],`tsqd-drag-handle`),g=Z(r().closeBtn,r()[`closeBtn-position-${s()}`],`tsqd-minimize-btn`);return c!==i.e&&J(t,i.e=c),l!==i.t&&WW(t,`height`,i.t=l),d!==i.a&&WW(t,`width`,i.a=d),f!==i.o&&q(a,`aria-orientation`,i.o=f),p!==i.i&&q(a,`aria-valuemin`,i.i=p),m!==i.n&&q(a,`aria-valuenow`,i.n=m),h!==i.s&&J(a,i.s=h),g!==i.h&&J(o,i.h=g),i},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),t})()},H4=e=>{Z4(),e3();let t,n=jq(),r=Aq().shadowDOMTarget?Vq.bind({target:Aq().shadowDOMTarget}):Vq,i=G(()=>n()===`dark`?o3(r):a3(r)),a=S$(),[o,s]=PU(`queries`),c=G(()=>e.localStore.sort||h$),l=G(()=>Number(e.localStore.sortOrder)||g$),u=G(()=>e.localStore.mutationSort||_$),d=G(()=>Number(e.localStore.mutationSortOrder)||g$),f=G(()=>mq[c()]),p=G(()=>vq[u()]),m=G(()=>Aq().onlineManager),h=G(()=>Aq().client.getQueryCache()),g=G(()=>Aq().client.getMutationCache()),_=Q4(e=>e().getAll().length,!1),v=G(HU(()=>[_(),e.localStore.filter,c(),l(),e.localStore.hideDisabledQueries],()=>{let t=h().getAll(),n=e.localStore.filter?t.filter(t=>Nq(t.queryHash,e.localStore.filter||``).passed):[...t];return e.localStore.hideDisabledQueries===`true`&&(n=n.filter(e=>!e.isDisabled())),f()?n.sort((e,t)=>f()(e,t)*l()):n})),y=t3(e=>e().getAll().length,!1),b=G(HU(()=>[y(),e.localStore.mutationFilter,u(),d()],()=>{let t=g().getAll(),n=e.localStore.mutationFilter?t.filter(t=>Nq(`${t.options.mutationKey?JSON.stringify(t.options.mutationKey)+` - `:``}${new Date(t.state.submittedAt).toLocaleString()}`,e.localStore.mutationFilter||``).passed):[...t];return p()?n.sort((e,t)=>p()(e,t)*d()):n})),x=t=>{e.setLocalStore(`position`,t)},S=e=>{let n=getComputedStyle(t).getPropertyValue(`--tsqd-font-size`);e.style.setProperty(`--tsqd-font-size`,n)};return[(()=>{var n=g4(),f=n.firstChild,p=f.firstChild,_=p.firstChild,y=_.firstChild,C=y.nextSibling,w=C.firstChild,T=f.nextSibling,E=T.firstChild,D=E.firstChild,O=D.firstChild,ee=D.nextSibling,te=ee.nextSibling,ne=E.nextSibling,re=ne.firstChild,ie=re.nextSibling,k=t;return typeof k==`function`?KW(k,n):t=n,_.$$click=()=>{if(!a().pipWindow&&!e.showPanelViewOnly){e.setLocalStore(`open`,`false`);return}e.onClose&&e.onClose()},Y(C,()=>Aq().queryFlavor,w),Y(C,()=>Aq().version,null),Y(p,K(F0.Root,{get class(){return Z(i().viewToggle)},get value(){return o()},"aria-label":`Toggle between queries and mutations view`,onChange:e=>{s(e),M4(null),P4(null)},get children(){return[K(F0.Item,{value:`queries`,class:`tsqd-radio-toggle`,get children(){return[K(F0.ItemInput,{}),K(F0.ItemControl,{get children(){return K(F0.ItemIndicator,{})}}),K(F0.ItemLabel,{title:`Toggle Queries View`,children:`Queries`})]}}),K(F0.Item,{value:`mutations`,class:`tsqd-radio-toggle`,get children(){return[K(F0.ItemInput,{}),K(F0.ItemControl,{get children(){return K(F0.ItemIndicator,{})}}),K(F0.ItemLabel,{title:`Toggle Mutations View`,children:`Mutations`})]}})]}}),null),Y(f,K(AW,{get when(){return o()===`queries`},get children(){return K(G4,{})}}),null),Y(f,K(AW,{get when(){return o()===`mutations`},get children(){return K(K4,{})}}),null),Y(D,K(CQ,{}),O),O.$$input=t=>{o()===`queries`?e.setLocalStore(`filter`,t.currentTarget.value):e.setLocalStore(`mutationFilter`,t.currentTarget.value)},Y(ee,K(AW,{get when(){return o()===`queries`},get children(){var t=X2();return t.addEventListener(`change`,t=>{e.setLocalStore(`sort`,t.currentTarget.value)}),Y(t,()=>Object.keys(mq).map(e=>(()=>{var t=_4();return t.firstChild,t.value=e,Y(t,e,null),t})())),IU(()=>t.value=c()),t}}),null),Y(ee,K(AW,{get when(){return o()===`mutations`},get children(){var t=Z2();return t.addEventListener(`change`,t=>{e.setLocalStore(`mutationSort`,t.currentTarget.value)}),Y(t,()=>Object.keys(vq).map(e=>(()=>{var t=_4();return t.firstChild,t.value=e,Y(t,e,null),t})())),IU(()=>t.value=u()),t}}),null),Y(ee,K(TQ,{}),null),te.$$click=()=>{o()===`queries`?e.setLocalStore(`sortOrder`,String(l()*-1)):e.setLocalStore(`mutationSortOrder`,String(d()*-1))},Y(te,K(AW,{get when(){return(o()===`queries`?l():d())===1},get children(){return[Q2(),K(EQ,{})]}}),null),Y(te,K(AW,{get when(){return(o()===`queries`?l():d())===-1},get children(){return[$2(),K(DQ,{})]}}),null),re.$$click=()=>{o()===`queries`?(r3({type:`CLEAR_QUERY_CACHE`}),h().clear()):(r3({type:`CLEAR_MUTATION_CACHE`}),g().clear())},Y(re,K(wQ,{})),ie.$$click=()=>{m().setOnline(!m().isOnline())},Y(ie,(()=>{var e=pK(()=>!!L4());return()=>e()?K(PQ,{}):K(NQ,{})})()),Y(ne,K(AW,{get when(){return pK(()=>!a().pipWindow)()&&!a().disabled},get children(){var t=e4();return t.$$click=()=>{a().requestPipWindow(Number(window.innerWidth),Number(e.localStore.height??500))},Y(t,K(IQ,{})),IU(()=>J(t,Z(i().actionsBtn,`tsqd-actions-btn`,`tsqd-action-open-pip`))),t}}),null),Y(ne,K($0.Root,{gutter:4,get children(){return[K($0.Trigger,{get class(){return Z(i().actionsBtn,`tsqd-actions-btn`,`tsqd-action-settings`)},"aria-label":`Open settings menu`,title:`Open settings menu`,get children(){return K(FQ,{})}}),K($0.Portal,{ref:e=>S(e),get mount(){return pK(()=>!!a().pipWindow)()?a().pipWindow.document.body:document.body},get children(){return K($0.Content,{get class(){return Z(i().settingsMenu,`tsqd-settings-menu`)},get children(){return[(()=>{var e=t4();return IU(()=>J(e,Z(i().settingsMenuHeader,`tsqd-settings-menu-header`))),e})(),K(AW,{get when(){return!e.showPanelViewOnly},get children(){return K($0.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[K($0.SubTrigger,{get class(){return Z(i().settingsSubTrigger,`tsqd-settings-menu-sub-trigger`,`tsqd-settings-menu-sub-trigger-position`)},get children(){return[n4(),K(TQ,{})]}}),K($0.Portal,{ref:e=>S(e),get mount(){return pK(()=>!!a().pipWindow)()?a().pipWindow.document.body:document.body},get children(){return K($0.SubContent,{get class(){return Z(i().settingsMenu,`tsqd-settings-submenu`)},get children(){return K($0.RadioGroup,{"aria-label":`Position settings`,get value(){return e.localStore.position},onChange:e=>x(e),get children(){return[K($0.RadioItem,{value:`top`,get class(){return Z(i().settingsSubButton,`tsqd-settings-menu-position-btn`,`tsqd-settings-menu-position-btn-top`)},get children(){return[r4(),K(EQ,{})]}}),K($0.RadioItem,{value:`bottom`,get class(){return Z(i().settingsSubButton,`tsqd-settings-menu-position-btn`,`tsqd-settings-menu-position-btn-bottom`)},get children(){return[i4(),K(DQ,{})]}}),K($0.RadioItem,{value:`left`,get class(){return Z(i().settingsSubButton,`tsqd-settings-menu-position-btn`,`tsqd-settings-menu-position-btn-left`)},get children(){return[a4(),K(OQ,{})]}}),K($0.RadioItem,{value:`right`,get class(){return Z(i().settingsSubButton,`tsqd-settings-menu-position-btn`,`tsqd-settings-menu-position-btn-right`)},get children(){return[o4(),K(kQ,{})]}})]}})}})}})]}})}}),K($0.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[K($0.SubTrigger,{get class(){return Z(i().settingsSubTrigger,`tsqd-settings-menu-sub-trigger`,`tsqd-settings-menu-sub-trigger-position`)},get children(){return[s4(),K(TQ,{})]}}),K($0.Portal,{ref:e=>S(e),get mount(){return pK(()=>!!a().pipWindow)()?a().pipWindow.document.body:document.body},get children(){return K($0.SubContent,{get class(){return Z(i().settingsMenu,`tsqd-settings-submenu`)},get children(){return K($0.RadioGroup,{get value(){return e.localStore.theme_preference},onChange:t=>{e.setLocalStore(`theme_preference`,t)},"aria-label":`Theme preference`,get children(){return[K($0.RadioItem,{value:`light`,get class(){return Z(i().settingsSubButton,`tsqd-settings-menu-position-btn`,`tsqd-settings-menu-position-btn-top`)},get children(){return[c4(),K(AQ,{})]}}),K($0.RadioItem,{value:`dark`,get class(){return Z(i().settingsSubButton,`tsqd-settings-menu-position-btn`,`tsqd-settings-menu-position-btn-bottom`)},get children(){return[l4(),K(jQ,{})]}}),K($0.RadioItem,{value:`system`,get class(){return Z(i().settingsSubButton,`tsqd-settings-menu-position-btn`,`tsqd-settings-menu-position-btn-left`)},get children(){return[u4(),K(MQ,{})]}})]}})}})}})]}}),K($0.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[K($0.SubTrigger,{get class(){return Z(i().settingsSubTrigger,`tsqd-settings-menu-sub-trigger`,`tsqd-settings-menu-sub-trigger-disabled-queries`)},get children(){return[d4(),K(TQ,{})]}}),K($0.Portal,{ref:e=>S(e),get mount(){return pK(()=>!!a().pipWindow)()?a().pipWindow.document.body:document.body},get children(){return K($0.SubContent,{get class(){return Z(i().settingsMenu,`tsqd-settings-submenu`)},get children(){return K($0.RadioGroup,{get value(){return e.localStore.hideDisabledQueries},"aria-label":`Hide disabled queries setting`,onChange:t=>e.setLocalStore(`hideDisabledQueries`,t),get children(){return[K($0.RadioItem,{value:`false`,get class(){return Z(i().settingsSubButton,`tsqd-settings-menu-position-btn`,`tsqd-settings-menu-position-btn-show`)},get children(){return[f4(),K(AW,{get when(){return e.localStore.hideDisabledQueries!==`true`},get children(){return K(UQ,{})}})]}}),K($0.RadioItem,{value:`true`,get class(){return Z(i().settingsSubButton,`tsqd-settings-menu-position-btn`,`tsqd-settings-menu-position-btn-hide`)},get children(){return[p4(),K(AW,{get when(){return e.localStore.hideDisabledQueries===`true`},get children(){return K(UQ,{})}})]}})]}})}})}})]}})]}})}})]}}),null),Y(n,K(AW,{get when(){return o()===`queries`},get children(){var e=m4(),t=e.firstChild;return Y(t,K($q,{by:e=>e.queryHash,get each(){return v()},children:e=>K(U4,{get query(){return e()}})})),IU(()=>J(e,Z(i().overflowQueryContainer,`tsqd-queries-overflow-container`))),e}}),null),Y(n,K(AW,{get when(){return o()===`mutations`},get children(){var e=h4(),t=e.firstChild;return Y(t,K($q,{by:e=>e.mutationId,get each(){return b()},children:e=>K(W4,{get mutation(){return e()}})})),IU(()=>J(e,Z(i().overflowQueryContainer,`tsqd-mutations-overflow-container`))),e}}),null),IU(e=>{var t=Z(i().queriesContainer,F4()<s$&&(j4()||N4())&&r`
221
+ height: 50%;
222
+ max-height: 50%;
223
+ `,F4()<s$&&!(j4()||N4())&&r`
224
+ height: 100%;
225
+ max-height: 100%;
226
+ `,`tsqd-queries-container`),a=Z(i().row,`tsqd-header`),s=i().logoAndToggleContainer,c=Z(i().logo,`tsqd-text-logo-container`),u=Z(i().tanstackLogo,`tsqd-text-logo-tanstack`),m=Z(i().queryFlavorLogo,`tsqd-text-logo-query-flavor`),h=Z(i().row,`tsqd-filters-actions-container`),g=Z(i().filtersContainer,`tsqd-filters-container`),v=Z(i().filterInput,`tsqd-query-filter-textfield-container`),b=Z(`tsqd-query-filter-textfield`),x=Z(i().filterSelect,`tsqd-query-filter-sort-container`),S=`Sort order ${(o()===`queries`?l():d())===-1?`descending`:`ascending`}`,w=(o()===`queries`?l():d())===-1,k=Z(i().actionsContainer,`tsqd-actions-container`),ae=Z(i().actionsBtn,`tsqd-actions-btn`,`tsqd-action-clear-cache`),oe=`Clear ${o()} cache`,se=Z(i().actionsBtn,L4()&&i().actionsBtnOffline,`tsqd-actions-btn`,`tsqd-action-mock-offline-behavior`),ce=`${L4()?`Unset offline mocking behavior`:`Mock offline behavior`}`,le=L4(),ue=`${L4()?`Unset offline mocking behavior`:`Mock offline behavior`}`;return t!==e.e&&J(n,e.e=t),a!==e.t&&J(f,e.t=a),s!==e.a&&J(p,e.a=s),c!==e.o&&J(_,e.o=c),u!==e.i&&J(y,e.i=u),m!==e.n&&J(C,e.n=m),h!==e.s&&J(T,e.s=h),g!==e.h&&J(E,e.h=g),v!==e.r&&J(D,e.r=v),b!==e.d&&J(O,e.d=b),x!==e.l&&J(ee,e.l=x),S!==e.u&&q(te,`aria-label`,e.u=S),w!==e.c&&q(te,`aria-pressed`,e.c=w),k!==e.w&&J(ne,e.w=k),ae!==e.m&&J(re,e.m=ae),oe!==e.f&&q(re,`title`,e.f=oe),se!==e.y&&J(ie,e.y=se),ce!==e.g&&q(ie,`aria-label`,e.g=ce),le!==e.p&&q(ie,`aria-pressed`,e.p=le),ue!==e.b&&q(ie,`title`,e.b=ue),e},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0,g:void 0,p:void 0,b:void 0}),IU(()=>O.value=o()===`queries`?e.localStore.filter||``:e.localStore.mutationFilter||``),n})(),K(AW,{get when(){return pK(()=>o()===`queries`)()&&j4()},get children(){return K(J4,{})}}),K(AW,{get when(){return pK(()=>o()===`mutations`)()&&N4()},get children(){return K(Y4,{})}})]},U4=e=>{let t=jq(),n=Aq().shadowDOMTarget?Vq.bind({target:Aq().shadowDOMTarget}):Vq,r=G(()=>t()===`dark`?o3(n):a3(n)),{colors:i,alpha:a}=$,o=(e,n)=>t()===`dark`?n:e,s=Q4(t=>t().find({queryKey:e.query.queryKey})?.state,!0,t=>t.query.queryHash===e.query.queryHash),c=Q4(t=>t().find({queryKey:e.query.queryKey})?.isDisabled()??!1,!0,t=>t.query.queryHash===e.query.queryHash),l=Q4(t=>t().find({queryKey:e.query.queryKey})?.isStatic()??!1,!0,t=>t.query.queryHash===e.query.queryHash),u=Q4(t=>t().find({queryKey:e.query.queryKey})?.isStale()??!1,!0,t=>t.query.queryHash===e.query.queryHash),d=Q4(t=>t().find({queryKey:e.query.queryKey})?.getObserversCount()??0,!0,t=>t.query.queryHash===e.query.queryHash),f=G(()=>AG({queryState:s(),observerCount:d(),isStale:u()})),p=()=>f()===`gray`?n`
227
+ background-color: ${o(i[f()][200],i[f()][700])};
228
+ color: ${o(i[f()][700],i[f()][300])};
229
+ `:n`
230
+ background-color: ${o(i[f()][200]+a[80],i[f()][900])};
231
+ color: ${o(i[f()][800],i[f()][300])};
232
+ `;return K(AW,{get when(){return s()},get children(){var t=b4(),n=t.firstChild,i=n.nextSibling;return t.$$click=()=>M4(e.query.queryHash===j4()?null:e.query.queryHash),Y(n,d),Y(i,()=>e.query.queryHash),Y(t,K(AW,{get when(){return c()},get children(){return v4()}}),null),Y(t,K(AW,{get when(){return l()},get children(){return y4()}}),null),IU(i=>{var a=Z(r().queryRow,j4()===e.query.queryHash&&r().selectedQueryRow,`tsqd-query-row`),o=`Query key ${e.query.queryHash}${c()?`, disabled`:``}${l()?`, static`:``}`,s=Z(p(),`tsqd-query-observer-count`);return a!==i.e&&J(t,i.e=a),o!==i.t&&q(t,`aria-label`,i.t=o),s!==i.a&&J(n,i.a=s),i},{e:void 0,t:void 0,a:void 0}),t}})},W4=e=>{let t=jq(),n=Aq().shadowDOMTarget?Vq.bind({target:Aq().shadowDOMTarget}):Vq,r=G(()=>t()===`dark`?o3(n):a3(n)),{colors:i,alpha:a}=$,o=(e,n)=>t()===`dark`?n:e,s=t3(t=>t().getAll().find(t=>t.mutationId===e.mutation.mutationId)?.state),c=t3(t=>{let n=t().getAll().find(t=>t.mutationId===e.mutation.mutationId);return n?n.state.isPaused:!1}),l=t3(t=>{let n=t().getAll().find(t=>t.mutationId===e.mutation.mutationId);return n?n.state.status:`idle`}),u=G(()=>jG({isPaused:c(),status:l()})),d=()=>u()===`gray`?n`
233
+ background-color: ${o(i[u()][200],i[u()][700])};
234
+ color: ${o(i[u()][700],i[u()][300])};
235
+ `:n`
236
+ background-color: ${o(i[u()][200]+a[80],i[u()][900])};
237
+ color: ${o(i[u()][800],i[u()][300])};
238
+ `;return K(AW,{get when(){return s()},get children(){var t=b4(),n=t.firstChild,i=n.nextSibling;return t.$$click=()=>{P4(e.mutation.mutationId===N4()?null:e.mutation.mutationId)},Y(n,K(AW,{get when(){return u()===`purple`},get children(){return K(KQ,{})}}),null),Y(n,K(AW,{get when(){return u()===`green`},get children(){return K(UQ,{})}}),null),Y(n,K(AW,{get when(){return u()===`red`},get children(){return K(GQ,{})}}),null),Y(n,K(AW,{get when(){return u()===`yellow`},get children(){return K(WQ,{})}}),null),Y(i,K(AW,{get when(){return e.mutation.options.mutationKey},get children(){return[pK(()=>JSON.stringify(e.mutation.options.mutationKey)),` -`,` `]}}),null),Y(i,()=>new Date(e.mutation.state.submittedAt).toLocaleString(),null),IU(i=>{var a=Z(r().queryRow,N4()===e.mutation.mutationId&&r().selectedQueryRow,`tsqd-query-row`),o=`Mutation submitted at ${new Date(e.mutation.state.submittedAt).toLocaleString()}`,s=Z(d(),`tsqd-query-observer-count`);return a!==i.e&&J(t,i.e=a),o!==i.t&&q(t,`aria-label`,i.t=o),s!==i.a&&J(n,i.a=s),i},{e:void 0,t:void 0,a:void 0}),t}})},G4=()=>{let e=Q4(e=>e().getAll().filter(e=>OG(e)===`stale`).length),t=Q4(e=>e().getAll().filter(e=>OG(e)===`fresh`).length),n=Q4(e=>e().getAll().filter(e=>OG(e)===`fetching`).length),r=Q4(e=>e().getAll().filter(e=>OG(e)===`paused`).length),i=Q4(e=>e().getAll().filter(e=>OG(e)===`inactive`).length),a=jq(),o=Aq().shadowDOMTarget?Vq.bind({target:Aq().shadowDOMTarget}):Vq,s=G(()=>a()===`dark`?o3(o):a3(o));return(()=>{var a=q2();return Y(a,K(q4,{label:`Fresh`,color:`green`,get count(){return t()}}),null),Y(a,K(q4,{label:`Fetching`,color:`blue`,get count(){return n()}}),null),Y(a,K(q4,{label:`Paused`,color:`purple`,get count(){return r()}}),null),Y(a,K(q4,{label:`Stale`,color:`yellow`,get count(){return e()}}),null),Y(a,K(q4,{label:`Inactive`,color:`gray`,get count(){return i()}}),null),IU(()=>J(a,Z(s().queryStatusContainer,`tsqd-query-status-container`))),a})()},K4=()=>{let e=t3(e=>e().getAll().filter(e=>jG({isPaused:e.state.isPaused,status:e.state.status})===`green`).length),t=t3(e=>e().getAll().filter(e=>jG({isPaused:e.state.isPaused,status:e.state.status})===`yellow`).length),n=t3(e=>e().getAll().filter(e=>jG({isPaused:e.state.isPaused,status:e.state.status})===`purple`).length),r=t3(e=>e().getAll().filter(e=>jG({isPaused:e.state.isPaused,status:e.state.status})===`red`).length),i=jq(),a=Aq().shadowDOMTarget?Vq.bind({target:Aq().shadowDOMTarget}):Vq,o=G(()=>i()===`dark`?o3(a):a3(a));return(()=>{var i=q2();return Y(i,K(q4,{label:`Paused`,color:`purple`,get count(){return n()}}),null),Y(i,K(q4,{label:`Pending`,color:`yellow`,get count(){return t()}}),null),Y(i,K(q4,{label:`Success`,color:`green`,get count(){return e()}}),null),Y(i,K(q4,{label:`Error`,color:`red`,get count(){return r()}}),null),IU(()=>J(i,Z(o().queryStatusContainer,`tsqd-query-status-container`))),i})()},q4=e=>{let t=jq(),n=Aq().shadowDOMTarget?Vq.bind({target:Aq().shadowDOMTarget}):Vq,r=G(()=>t()===`dark`?o3(n):a3(n)),{colors:i,alpha:a}=$,o=(e,n)=>t()===`dark`?n:e,s,[c,l]=PU(!1),[u,d]=PU(!1),f=G(()=>!(j4()&&F4()<o$&&F4()>s$||F4()<s$));return(()=>{var t=C4(),p=t.firstChild,m=p.nextSibling,h=s;return typeof h==`function`?KW(h,t):s=t,t.addEventListener(`mouseleave`,()=>{l(!1),d(!1)}),t.addEventListener(`mouseenter`,()=>l(!0)),t.addEventListener(`blur`,()=>d(!1)),t.addEventListener(`focus`,()=>d(!0)),GW(t,wW({get disabled(){return f()},get"aria-label"(){return`${e.label}: ${e.count}`},get class(){return Z(r().queryStatusTag,!f()&&n`
239
+ cursor: pointer;
240
+ &:hover {
241
+ background: ${o(i.gray[200],i.darkGray[400])}${a[80]};
242
+ }
243
+ `,`tsqd-query-status-tag`,`tsqd-query-status-tag-${e.label.toLowerCase()}`)}},()=>c()||u()?{"aria-describedby":`tsqd-status-tooltip`}:{}),!1,!0),Y(t,K(AW,{get when(){return pK(()=>!f())()&&(c()||u())},get children(){var t=x4();return Y(t,()=>e.label),IU(()=>J(t,Z(r().statusTooltip,`tsqd-query-status-tooltip`))),t}}),p),Y(t,K(AW,{get when(){return f()},get children(){var t=S4();return Y(t,()=>e.label),IU(()=>J(t,Z(r().queryStatusTagLabel,`tsqd-query-status-tag-label`))),t}}),m),Y(m,()=>e.count),IU(t=>{var a=Z(n`
244
+ width: ${$.size[1.5]};
245
+ height: ${$.size[1.5]};
246
+ border-radius: ${$.border.radius.full};
247
+ background-color: ${$.colors[e.color][500]};
248
+ `,`tsqd-query-status-tag-dot`),s=Z(r().queryStatusCount,e.count>0&&e.color!==`gray`&&n`
249
+ background-color: ${o(i[e.color][100],i[e.color][900])};
250
+ color: ${o(i[e.color][700],i[e.color][300])};
251
+ `,`tsqd-query-status-tag-count`);return a!==t.e&&J(p,t.e=a),s!==t.t&&J(m,t.t=s),t},{e:void 0,t:void 0}),t})()},J4=()=>{let e=jq(),t=Aq().shadowDOMTarget?Vq.bind({target:Aq().shadowDOMTarget}):Vq,n=G(()=>e()===`dark`?o3(t):a3(t)),{colors:r}=$,i=(t,n)=>e()===`dark`?n:t,a=Aq().client,[o,s]=PU(!1),[c,l]=PU(`view`),[u,d]=PU(!1),f=G(()=>Aq().errorTypes||[]),p=Q4(e=>e().getAll().find(e=>e.queryHash===j4()),!1),m=Q4(e=>e().getAll().find(e=>e.queryHash===j4()),!1),h=Q4(e=>e().getAll().find(e=>e.queryHash===j4())?.state,!1),g=Q4(e=>e().getAll().find(e=>e.queryHash===j4())?.state.data,!1),_=Q4(e=>{let t=e().getAll().find(e=>e.queryHash===j4());return t?OG(t):`inactive`}),v=Q4(e=>{let t=e().getAll().find(e=>e.queryHash===j4());return t?t.state.status:`pending`}),y=Q4(e=>e().getAll().find(e=>e.queryHash===j4())?.getObserversCount()??0),b=G(()=>MG(_())),x=()=>{r3({type:`REFETCH`,queryHash:p()?.queryHash}),(p()?.fetch())?.catch(()=>{})},S=e=>{let t=p();if(!t)return;r3({type:`TRIGGER_ERROR`,queryHash:t.queryHash,metadata:{error:e?.name}});let n=e?.initializer(t)??Error(`Unknown error from devtools`),r=t.options;t.setState({data:void 0,status:`error`,error:n,fetchMeta:{...t.state.fetchMeta,__previousQueryOptions:r}})},C=()=>{let e=p();if(!e)return;r3({type:`RESTORE_LOADING`,queryHash:e.queryHash});let t=e.state,n=e.state.fetchMeta?e.state.fetchMeta.__previousQueryOptions:null;e.cancel({silent:!0}),e.setState({...t,fetchStatus:`idle`,fetchMeta:null}),n&&e.fetch(n)};LU(()=>{_()!==`fetching`&&s(!1)});let w=()=>b()===`gray`?t`
252
+ background-color: ${i(r[b()][200],r[b()][700])};
253
+ color: ${i(r[b()][700],r[b()][300])};
254
+ border-color: ${i(r[b()][400],r[b()][600])};
255
+ `:t`
256
+ background-color: ${i(r[b()][100],r[b()][900])};
257
+ color: ${i(r[b()][700],r[b()][300])};
258
+ border-color: ${i(r[b()][400],r[b()][600])};
259
+ `;return K(AW,{get when(){return pK(()=>!!p())()&&h()},get children(){var e=O4(),b=e.firstChild,T=b.nextSibling,E=T.firstChild,D=E.firstChild,O=D.firstChild,ee=D.nextSibling,te=E.nextSibling,ne=te.firstChild.nextSibling,re=te.nextSibling.firstChild.nextSibling,ie=T.nextSibling,k=ie.nextSibling,ae=k.firstChild,oe=ae.firstChild,se=ae.nextSibling,ce=se.firstChild,le=se.nextSibling,ue=le.firstChild,de=le.nextSibling,fe=de.firstChild,pe=de.nextSibling,me=pe.firstChild,he=me.nextSibling,ge=k.nextSibling;ge.firstChild;var _e=ge.nextSibling,ve=_e.nextSibling;return Y(O,()=>lq(p().queryKey,!0)),Y(ee,_),Y(ne,y),Y(re,()=>new Date(h().dataUpdatedAt).toLocaleTimeString()),ae.$$click=x,se.$$click=()=>{r3({type:`INVALIDATE`,queryHash:p()?.queryHash}),a.invalidateQueries({queryKey:p()?.queryKey,exact:!0})},le.$$click=()=>{r3({type:`RESET`,queryHash:p()?.queryHash}),a.resetQueries({queryKey:p()?.queryKey,exact:!0})},de.$$click=()=>{r3({type:`REMOVE`,queryHash:p()?.queryHash}),a.removeQueries({queryKey:p()?.queryKey,exact:!0}),M4(null)},pe.$$click=()=>{if(p()?.state.data===void 0)s(!0),C();else{let e=p();if(!e)return;r3({type:`TRIGGER_LOADING`,queryHash:e.queryHash});let t=e.options;e.fetch({...t,queryFn:()=>new Promise(()=>{}),gcTime:-1}),e.setState({data:void 0,status:`pending`,fetchMeta:{...e.state.fetchMeta,__previousQueryOptions:t}})}},Y(pe,()=>v()===`pending`?`Restore`:`Trigger`,he),Y(k,K(AW,{get when(){return f().length===0||v()===`error`},get children(){var e=w4(),n=e.firstChild,o=n.nextSibling;return e.$$click=()=>{p().state.error?(r3({type:`RESTORE_ERROR`,queryHash:p()?.queryHash}),a.resetQueries({queryKey:p()?.queryKey})):S()},Y(e,()=>v()===`error`?`Restore`:`Trigger`,o),IU(a=>{var o=Z(t`
260
+ color: ${i(r.red[500],r.red[400])};
261
+ `,`tsqd-query-details-actions-btn`,`tsqd-query-details-action-error`),s=v()===`pending`,c=t`
262
+ background-color: ${i(r.red[500],r.red[400])};
263
+ `;return o!==a.e&&J(e,a.e=o),s!==a.t&&(e.disabled=a.t=s),c!==a.a&&J(n,a.a=c),a},{e:void 0,t:void 0,a:void 0}),e}}),null),Y(k,K(AW,{get when(){return!(f().length===0||v()===`error`)},get children(){var e=T4(),r=e.firstChild,i=r.nextSibling.nextSibling;return i.firstChild,i.addEventListener(`change`,e=>{S(f().find(t=>t.name===e.currentTarget.value))}),Y(i,K(OW,{get each(){return f()},children:e=>(()=>{var t=k4();return Y(t,()=>e.name),IU(()=>t.value=e.name),t})()}),null),Y(e,K(TQ,{}),null),IU(a=>{var o=Z(n().actionsSelect,`tsqd-query-details-actions-btn`,`tsqd-query-details-action-error-multiple`),s=t`
264
+ background-color: ${$.colors.red[400]};
265
+ `,c=v()===`pending`;return o!==a.e&&J(e,a.e=o),s!==a.t&&J(r,a.t=s),c!==a.a&&(i.disabled=a.a=c),a},{e:void 0,t:void 0,a:void 0}),e}}),null),Y(ge,()=>c()===`view`?`Explorer`:`Editor`,null),Y(e,K(AW,{get when(){return c()===`view`},get children(){var e=E4();return Y(e,K(XQ,{label:`Data`,defaultExpanded:[`Data`],get value(){return g()},editable:!0,onEdit:()=>l(`edit`),get activeQuery(){return p()}})),IU(t=>WW(e,`padding`,$.size[2])),e}}),_e),Y(e,K(AW,{get when(){return c()===`edit`},get children(){var e=D4(),a=e.firstChild,o=a.nextSibling,s=o.firstChild,c=s.nextSibling,f=c.firstChild,m=f.nextSibling;return e.addEventListener(`submit`,e=>{e.preventDefault();let t=new FormData(e.currentTarget).get(`data`);try{let e=JSON.parse(t);p().setState({...p().state,data:e}),l(`view`)}catch{d(!0)}}),a.addEventListener(`focus`,()=>d(!1)),Y(s,()=>u()?`Invalid Value`:``),f.$$click=()=>l(`view`),IU(l=>{var d=Z(n().devtoolsEditForm,`tsqd-query-details-data-editor`),p=n().devtoolsEditTextarea,h=u(),g=n().devtoolsEditFormActions,_=n().devtoolsEditFormError,v=n().devtoolsEditFormActionContainer,y=Z(n().devtoolsEditFormAction,t`
266
+ color: ${i(r.gray[600],r.gray[300])};
267
+ `),b=Z(n().devtoolsEditFormAction,t`
268
+ color: ${i(r.blue[600],r.blue[400])};
269
+ `);return d!==l.e&&J(e,l.e=d),p!==l.t&&J(a,l.t=p),h!==l.a&&q(a,`data-error`,l.a=h),g!==l.o&&J(o,l.o=g),_!==l.i&&J(s,l.i=_),v!==l.n&&J(c,l.n=v),y!==l.s&&J(f,l.s=y),b!==l.h&&J(m,l.h=b),l},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),IU(()=>a.value=JSON.stringify(g(),null,2)),e}}),_e),Y(ve,K(XQ,{label:`Query`,defaultExpanded:[`Query`,`queryKey`],get value(){return m()}})),IU(a=>{var s=Z(n().detailsContainer,`tsqd-query-details-container`),c=Z(n().detailsHeader,`tsqd-query-details-header`),l=Z(n().detailsBody,`tsqd-query-details-summary-container`),u=Z(n().queryDetailsStatus,w()),d=Z(n().detailsHeader,`tsqd-query-details-header`),f=Z(n().actionsBody,`tsqd-query-details-actions-container`),p=Z(t`
270
+ color: ${i(r.blue[600],r.blue[400])};
271
+ `,`tsqd-query-details-actions-btn`,`tsqd-query-details-action-refetch`),m=_()===`fetching`,h=t`
272
+ background-color: ${i(r.blue[600],r.blue[400])};
273
+ `,g=Z(t`
274
+ color: ${i(r.yellow[600],r.yellow[400])};
275
+ `,`tsqd-query-details-actions-btn`,`tsqd-query-details-action-invalidate`),y=v()===`pending`,x=t`
276
+ background-color: ${i(r.yellow[600],r.yellow[400])};
277
+ `,S=Z(t`
278
+ color: ${i(r.gray[600],r.gray[300])};
279
+ `,`tsqd-query-details-actions-btn`,`tsqd-query-details-action-reset`),C=v()===`pending`,E=t`
280
+ background-color: ${i(r.gray[600],r.gray[400])};
281
+ `,D=Z(t`
282
+ color: ${i(r.pink[500],r.pink[400])};
283
+ `,`tsqd-query-details-actions-btn`,`tsqd-query-details-action-remove`),O=_()===`fetching`,te=t`
284
+ background-color: ${i(r.pink[500],r.pink[400])};
285
+ `,ne=Z(t`
286
+ color: ${i(r.cyan[500],r.cyan[400])};
287
+ `,`tsqd-query-details-actions-btn`,`tsqd-query-details-action-loading`),re=o(),he=t`
288
+ background-color: ${i(r.cyan[500],r.cyan[400])};
289
+ `,ye=Z(n().detailsHeader,`tsqd-query-details-header`),be=Z(n().detailsHeader,`tsqd-query-details-header`),xe=$.size[2];return s!==a.e&&J(e,a.e=s),c!==a.t&&J(b,a.t=c),l!==a.a&&J(T,a.a=l),u!==a.o&&J(ee,a.o=u),d!==a.i&&J(ie,a.i=d),f!==a.n&&J(k,a.n=f),p!==a.s&&J(ae,a.s=p),m!==a.h&&(ae.disabled=a.h=m),h!==a.r&&J(oe,a.r=h),g!==a.d&&J(se,a.d=g),y!==a.l&&(se.disabled=a.l=y),x!==a.u&&J(ce,a.u=x),S!==a.c&&J(le,a.c=S),C!==a.w&&(le.disabled=a.w=C),E!==a.m&&J(ue,a.m=E),D!==a.f&&J(de,a.f=D),O!==a.y&&(de.disabled=a.y=O),te!==a.g&&J(fe,a.g=te),ne!==a.p&&J(pe,a.p=ne),re!==a.b&&(pe.disabled=a.b=re),he!==a.T&&J(me,a.T=he),ye!==a.A&&J(ge,a.A=ye),be!==a.O&&J(_e,a.O=be),xe!==a.I&&WW(ve,`padding`,a.I=xe),a},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0,g:void 0,p:void 0,b:void 0,T:void 0,A:void 0,O:void 0,I:void 0}),e}})},Y4=()=>{let e=jq(),t=Aq().shadowDOMTarget?Vq.bind({target:Aq().shadowDOMTarget}):Vq,n=G(()=>e()===`dark`?o3(t):a3(t)),{colors:r}=$,i=(t,n)=>e()===`dark`?n:t,a=t3(e=>{let t=e().getAll().find(e=>e.mutationId===N4());return t?t.state.isPaused:!1}),o=t3(e=>{let t=e().getAll().find(e=>e.mutationId===N4());return t?t.state.status:`idle`}),s=G(()=>jG({isPaused:a(),status:o()})),c=t3(e=>e().getAll().find(e=>e.mutationId===N4()),!1),l=()=>s()===`gray`?t`
290
+ background-color: ${i(r[s()][200],r[s()][700])};
291
+ color: ${i(r[s()][700],r[s()][300])};
292
+ border-color: ${i(r[s()][400],r[s()][600])};
293
+ `:t`
294
+ background-color: ${i(r[s()][100],r[s()][900])};
295
+ color: ${i(r[s()][700],r[s()][300])};
296
+ border-color: ${i(r[s()][400],r[s()][600])};
297
+ `;return K(AW,{get when(){return c()},get children(){var e=A4(),t=e.firstChild,r=t.nextSibling,i=r.firstChild,a=i.firstChild,u=a.firstChild,d=a.nextSibling,f=i.nextSibling.firstChild.nextSibling,p=r.nextSibling,m=p.nextSibling,h=m.nextSibling,g=h.nextSibling,_=g.nextSibling,v=_.nextSibling,y=v.nextSibling,b=y.nextSibling;return Y(u,K(AW,{get when(){return c().options.mutationKey},fallback:`No mutationKey found`,get children(){return lq(c().options.mutationKey,!0)}})),Y(d,K(AW,{get when(){return s()===`purple`},children:`pending`}),null),Y(d,K(AW,{get when(){return s()!==`purple`},get children(){return o()}}),null),Y(f,()=>new Date(c().state.submittedAt).toLocaleTimeString()),Y(m,K(XQ,{label:`Variables`,defaultExpanded:[`Variables`],get value(){return c().state.variables}})),Y(g,K(XQ,{label:`Context`,defaultExpanded:[`Context`],get value(){return c().state.context}})),Y(v,K(XQ,{label:`Data`,defaultExpanded:[`Data`],get value(){return c().state.data}})),Y(b,K(XQ,{label:`Mutation`,defaultExpanded:[`Mutation`],get value(){return c()}})),IU(i=>{var a=Z(n().detailsContainer,`tsqd-query-details-container`),o=Z(n().detailsHeader,`tsqd-query-details-header`),s=Z(n().detailsBody,`tsqd-query-details-summary-container`),c=Z(n().queryDetailsStatus,l()),u=Z(n().detailsHeader,`tsqd-query-details-header`),f=$.size[2],x=Z(n().detailsHeader,`tsqd-query-details-header`),S=$.size[2],C=Z(n().detailsHeader,`tsqd-query-details-header`),w=$.size[2],T=Z(n().detailsHeader,`tsqd-query-details-header`),E=$.size[2];return a!==i.e&&J(e,i.e=a),o!==i.t&&J(t,i.t=o),s!==i.a&&J(r,i.a=s),c!==i.o&&J(d,i.o=c),u!==i.i&&J(p,i.i=u),f!==i.n&&WW(m,`padding`,i.n=f),x!==i.s&&J(h,i.s=x),S!==i.h&&WW(g,`padding`,i.h=S),C!==i.r&&J(_,i.r=C),w!==i.d&&WW(v,`padding`,i.d=w),T!==i.l&&J(y,i.l=T),E!==i.u&&WW(b,`padding`,i.u=E),i},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0}),e}})},X4=new Map,Z4=()=>{let e=G(()=>Aq().client.getQueryCache()),t=e().subscribe(t=>{BU(()=>{for(let[n,r]of X4.entries())r.shouldUpdate(t)&&r.setter(n(e))})});return WU(()=>{X4.clear(),t()}),t},Q4=(e,t=!0,n=()=>!0)=>{let r=G(()=>Aq().client.getQueryCache()),[i,a]=PU(e(r),t?void 0:{equals:!1});return LU(()=>{a(e(r))}),X4.set(e,{setter:a,shouldUpdate:n}),WU(()=>{X4.delete(e)}),i},$4=new Map,e3=()=>{let e=G(()=>Aq().client.getMutationCache()),t=e().subscribe(()=>{for(let[t,n]of $4.entries())queueMicrotask(()=>{n(t(e))})});return WU(()=>{$4.clear(),t()}),t},t3=(e,t=!0)=>{let n=G(()=>Aq().client.getMutationCache()),[r,i]=PU(e(n),t?void 0:{equals:!1});return LU(()=>{i(e(n))}),$4.set(e,i),WU(()=>{$4.delete(e)}),r},n3=`@tanstack/query-devtools-event`,r3=({type:e,queryHash:t,metadata:n})=>{let r=new CustomEvent(n3,{detail:{type:e,queryHash:t,metadata:n},bubbles:!0,cancelable:!0});window.dispatchEvent(r)},i3=(e,t)=>{let{colors:n,font:r,size:i,alpha:a,shadow:o,border:s}=$,c=(t,n)=>e===`light`?t:n;return{devtoolsBtn:t`
298
+ z-index: 100000;
299
+ position: fixed;
300
+ padding: 4px;
301
+ text-align: left;
302
+
303
+ display: flex;
304
+ align-items: center;
305
+ justify-content: center;
306
+ border-radius: 9999px;
307
+ box-shadow: ${o.md()};
308
+ overflow: hidden;
309
+
310
+ & div {
311
+ position: absolute;
312
+ top: -8px;
313
+ left: -8px;
314
+ right: -8px;
315
+ bottom: -8px;
316
+ border-radius: 9999px;
317
+
318
+ & svg {
319
+ position: absolute;
320
+ width: 100%;
321
+ height: 100%;
322
+ }
323
+ filter: blur(6px) saturate(1.2) contrast(1.1);
324
+ }
325
+
326
+ &:focus-within {
327
+ outline-offset: 2px;
328
+ outline: 3px solid ${n.green[600]};
329
+ }
330
+
331
+ & button {
332
+ position: relative;
333
+ z-index: 1;
334
+ padding: 0;
335
+ border-radius: 9999px;
336
+ background-color: transparent;
337
+ border: none;
338
+ height: 40px;
339
+ display: flex;
340
+ width: 40px;
341
+ overflow: hidden;
342
+ cursor: pointer;
343
+ outline: none;
344
+ & svg {
345
+ position: absolute;
346
+ width: 100%;
347
+ height: 100%;
348
+ }
349
+ }
350
+ `,panel:t`
351
+ position: fixed;
352
+ z-index: 9999;
353
+ display: flex;
354
+ gap: ${$.size[.5]};
355
+ & * {
356
+ box-sizing: border-box;
357
+ text-transform: none;
358
+ }
359
+
360
+ & *::-webkit-scrollbar {
361
+ width: 7px;
362
+ }
363
+
364
+ & *::-webkit-scrollbar-track {
365
+ background: transparent;
366
+ }
367
+
368
+ & *::-webkit-scrollbar-thumb {
369
+ background: ${c(n.gray[300],n.darkGray[200])};
370
+ }
371
+
372
+ & *::-webkit-scrollbar-thumb:hover {
373
+ background: ${c(n.gray[400],n.darkGray[300])};
374
+ }
375
+ `,parentPanel:t`
376
+ z-index: 9999;
377
+ display: flex;
378
+ height: 100%;
379
+ gap: ${$.size[.5]};
380
+ & * {
381
+ box-sizing: border-box;
382
+ text-transform: none;
383
+ }
384
+
385
+ & *::-webkit-scrollbar {
386
+ width: 7px;
387
+ }
388
+
389
+ & *::-webkit-scrollbar-track {
390
+ background: transparent;
391
+ }
392
+
393
+ & *::-webkit-scrollbar-thumb {
394
+ background: ${c(n.gray[300],n.darkGray[200])};
395
+ }
396
+
397
+ & *::-webkit-scrollbar-thumb:hover {
398
+ background: ${c(n.gray[400],n.darkGray[300])};
399
+ }
400
+ `,"devtoolsBtn-position-bottom-right":t`
401
+ bottom: 12px;
402
+ right: 12px;
403
+ `,"devtoolsBtn-position-bottom-left":t`
404
+ bottom: 12px;
405
+ left: 12px;
406
+ `,"devtoolsBtn-position-top-left":t`
407
+ top: 12px;
408
+ left: 12px;
409
+ `,"devtoolsBtn-position-top-right":t`
410
+ top: 12px;
411
+ right: 12px;
412
+ `,"devtoolsBtn-position-relative":t`
413
+ position: relative;
414
+ `,"panel-position-top":t`
415
+ top: 0;
416
+ right: 0;
417
+ left: 0;
418
+ max-height: 90%;
419
+ min-height: ${i[14]};
420
+ border-bottom: ${c(n.gray[400],n.darkGray[300])} 1px solid;
421
+ `,"panel-position-bottom":t`
422
+ bottom: 0;
423
+ right: 0;
424
+ left: 0;
425
+ max-height: 90%;
426
+ min-height: ${i[14]};
427
+ border-top: ${c(n.gray[400],n.darkGray[300])} 1px solid;
428
+ `,"panel-position-right":t`
429
+ bottom: 0;
430
+ right: 0;
431
+ top: 0;
432
+ border-left: ${c(n.gray[400],n.darkGray[300])} 1px solid;
433
+ max-width: 90%;
434
+ `,"panel-position-left":t`
435
+ bottom: 0;
436
+ left: 0;
437
+ top: 0;
438
+ border-right: ${c(n.gray[400],n.darkGray[300])} 1px solid;
439
+ max-width: 90%;
440
+ `,closeBtn:t`
441
+ position: absolute;
442
+ cursor: pointer;
443
+ z-index: 5;
444
+ display: flex;
445
+ align-items: center;
446
+ justify-content: center;
447
+ outline: none;
448
+ background-color: ${c(n.gray[50],n.darkGray[700])};
449
+ &:hover {
450
+ background-color: ${c(n.gray[200],n.darkGray[500])};
451
+ }
452
+ &:focus-visible {
453
+ outline: 2px solid ${n.blue[600]};
454
+ }
455
+ & svg {
456
+ color: ${c(n.gray[600],n.gray[400])};
457
+ width: ${i[2]};
458
+ height: ${i[2]};
459
+ }
460
+ `,"closeBtn-position-top":t`
461
+ bottom: 0;
462
+ right: ${i[2]};
463
+ transform: translate(0, 100%);
464
+ border-right: ${c(n.gray[400],n.darkGray[300])} 1px solid;
465
+ border-left: ${c(n.gray[400],n.darkGray[300])} 1px solid;
466
+ border-top: none;
467
+ border-bottom: ${c(n.gray[400],n.darkGray[300])} 1px solid;
468
+ border-radius: 0px 0px ${s.radius.sm} ${s.radius.sm};
469
+ padding: ${i[.5]} ${i[1.5]} ${i[1]} ${i[1.5]};
470
+
471
+ &::after {
472
+ content: ' ';
473
+ position: absolute;
474
+ bottom: 100%;
475
+ left: -${i[2.5]};
476
+ height: ${i[1.5]};
477
+ width: calc(100% + ${i[5]});
478
+ }
479
+
480
+ & svg {
481
+ transform: rotate(180deg);
482
+ }
483
+ `,"closeBtn-position-bottom":t`
484
+ top: 0;
485
+ right: ${i[2]};
486
+ transform: translate(0, -100%);
487
+ border-right: ${c(n.gray[400],n.darkGray[300])} 1px solid;
488
+ border-left: ${c(n.gray[400],n.darkGray[300])} 1px solid;
489
+ border-top: ${c(n.gray[400],n.darkGray[300])} 1px solid;
490
+ border-bottom: none;
491
+ border-radius: ${s.radius.sm} ${s.radius.sm} 0px 0px;
492
+ padding: ${i[1]} ${i[1.5]} ${i[.5]} ${i[1.5]};
493
+
494
+ &::after {
495
+ content: ' ';
496
+ position: absolute;
497
+ top: 100%;
498
+ left: -${i[2.5]};
499
+ height: ${i[1.5]};
500
+ width: calc(100% + ${i[5]});
501
+ }
502
+ `,"closeBtn-position-right":t`
503
+ bottom: ${i[2]};
504
+ left: 0;
505
+ transform: translate(-100%, 0);
506
+ border-right: none;
507
+ border-left: ${c(n.gray[400],n.darkGray[300])} 1px solid;
508
+ border-top: ${c(n.gray[400],n.darkGray[300])} 1px solid;
509
+ border-bottom: ${c(n.gray[400],n.darkGray[300])} 1px solid;
510
+ border-radius: ${s.radius.sm} 0px 0px ${s.radius.sm};
511
+ padding: ${i[1.5]} ${i[.5]} ${i[1.5]} ${i[1]};
512
+
513
+ &::after {
514
+ content: ' ';
515
+ position: absolute;
516
+ left: 100%;
517
+ height: calc(100% + ${i[5]});
518
+ width: ${i[1.5]};
519
+ }
520
+
521
+ & svg {
522
+ transform: rotate(-90deg);
523
+ }
524
+ `,"closeBtn-position-left":t`
525
+ bottom: ${i[2]};
526
+ right: 0;
527
+ transform: translate(100%, 0);
528
+ border-left: none;
529
+ border-right: ${c(n.gray[400],n.darkGray[300])} 1px solid;
530
+ border-top: ${c(n.gray[400],n.darkGray[300])} 1px solid;
531
+ border-bottom: ${c(n.gray[400],n.darkGray[300])} 1px solid;
532
+ border-radius: 0px ${s.radius.sm} ${s.radius.sm} 0px;
533
+ padding: ${i[1.5]} ${i[1]} ${i[1.5]} ${i[.5]};
534
+
535
+ &::after {
536
+ content: ' ';
537
+ position: absolute;
538
+ right: 100%;
539
+ height: calc(100% + ${i[5]});
540
+ width: ${i[1.5]};
541
+ }
542
+
543
+ & svg {
544
+ transform: rotate(90deg);
545
+ }
546
+ `,queriesContainer:t`
547
+ flex: 1 1 700px;
548
+ background-color: ${c(n.gray[50],n.darkGray[700])};
549
+ display: flex;
550
+ flex-direction: column;
551
+ & * {
552
+ font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
553
+ }
554
+ `,dragHandle:t`
555
+ position: absolute;
556
+ transition: background-color 0.125s ease;
557
+ &:hover {
558
+ background-color: ${n.purple[400]}${c(``,a[90])};
559
+ }
560
+ &:focus {
561
+ outline: none;
562
+ background-color: ${n.purple[400]}${c(``,a[90])};
563
+ }
564
+ &:focus-visible {
565
+ outline: 2px solid ${n.blue[800]};
566
+ outline-offset: -2px;
567
+ background-color: ${n.purple[400]}${c(``,a[90])};
568
+ }
569
+ z-index: 4;
570
+ `,"dragHandle-position-top":t`
571
+ bottom: 0;
572
+ width: 100%;
573
+ height: 3px;
574
+ cursor: ns-resize;
575
+ `,"dragHandle-position-bottom":t`
576
+ top: 0;
577
+ width: 100%;
578
+ height: 3px;
579
+ cursor: ns-resize;
580
+ `,"dragHandle-position-right":t`
581
+ left: 0;
582
+ width: 3px;
583
+ height: 100%;
584
+ cursor: ew-resize;
585
+ `,"dragHandle-position-left":t`
586
+ right: 0;
587
+ width: 3px;
588
+ height: 100%;
589
+ cursor: ew-resize;
590
+ `,row:t`
591
+ display: flex;
592
+ justify-content: space-between;
593
+ align-items: center;
594
+ padding: ${$.size[2]} ${$.size[2.5]};
595
+ gap: ${$.size[2.5]};
596
+ border-bottom: ${c(n.gray[300],n.darkGray[500])} 1px solid;
597
+ align-items: center;
598
+ & > button {
599
+ padding: 0;
600
+ background: transparent;
601
+ border: none;
602
+ display: flex;
603
+ gap: ${i[.5]};
604
+ flex-direction: column;
605
+ }
606
+ `,logoAndToggleContainer:t`
607
+ display: flex;
608
+ gap: ${$.size[3]};
609
+ align-items: center;
610
+ `,logo:t`
611
+ cursor: pointer;
612
+ display: flex;
613
+ flex-direction: column;
614
+ background-color: transparent;
615
+ border: none;
616
+ gap: ${$.size[.5]};
617
+ padding: 0px;
618
+ &:hover {
619
+ opacity: 0.7;
620
+ }
621
+ &:focus-visible {
622
+ outline-offset: 4px;
623
+ border-radius: ${s.radius.xs};
624
+ outline: 2px solid ${n.blue[800]};
625
+ }
626
+ `,tanstackLogo:t`
627
+ font-size: ${r.size.md};
628
+ font-weight: ${r.weight.bold};
629
+ line-height: ${r.lineHeight.xs};
630
+ white-space: nowrap;
631
+ color: ${c(n.gray[600],n.gray[300])};
632
+ `,queryFlavorLogo:t`
633
+ font-weight: ${r.weight.semibold};
634
+ font-size: ${r.size.xs};
635
+ background: linear-gradient(
636
+ to right,
637
+ ${c(`#ea4037, #ff9b11`,`#dd524b, #e9a03b`)}
638
+ );
639
+ background-clip: text;
640
+ -webkit-background-clip: text;
641
+ line-height: 1;
642
+ -webkit-text-fill-color: transparent;
643
+ white-space: nowrap;
644
+ `,queryStatusContainer:t`
645
+ display: flex;
646
+ gap: ${$.size[2]};
647
+ height: min-content;
648
+ `,queryStatusTag:t`
649
+ display: flex;
650
+ gap: ${$.size[1.5]};
651
+ box-sizing: border-box;
652
+ height: ${$.size[6.5]};
653
+ background: ${c(n.gray[50],n.darkGray[500])};
654
+ color: ${c(n.gray[700],n.gray[300])};
655
+ border-radius: ${$.border.radius.sm};
656
+ font-size: ${r.size.sm};
657
+ padding: ${$.size[1]};
658
+ padding-left: ${$.size[1.5]};
659
+ align-items: center;
660
+ font-weight: ${r.weight.medium};
661
+ border: ${c(`1px solid `+n.gray[300],`1px solid transparent`)};
662
+ user-select: none;
663
+ position: relative;
664
+ &:focus-visible {
665
+ outline-offset: 2px;
666
+ outline: 2px solid ${n.blue[800]};
667
+ }
668
+ `,queryStatusTagLabel:t`
669
+ font-size: ${r.size.xs};
670
+ `,queryStatusCount:t`
671
+ font-size: ${r.size.xs};
672
+ padding: 0 5px;
673
+ display: flex;
674
+ align-items: center;
675
+ justify-content: center;
676
+ color: ${c(n.gray[500],n.gray[400])};
677
+ background-color: ${c(n.gray[200],n.darkGray[300])};
678
+ border-radius: 2px;
679
+ font-variant-numeric: tabular-nums;
680
+ height: ${$.size[4.5]};
681
+ `,statusTooltip:t`
682
+ position: absolute;
683
+ z-index: 1;
684
+ background-color: ${c(n.gray[50],n.darkGray[500])};
685
+ top: 100%;
686
+ left: 50%;
687
+ transform: translate(-50%, calc(${$.size[2]}));
688
+ padding: ${$.size[.5]} ${$.size[2]};
689
+ border-radius: ${$.border.radius.sm};
690
+ font-size: ${r.size.xs};
691
+ border: 1px solid ${c(n.gray[400],n.gray[600])};
692
+ color: ${c(n.gray[600],n.gray[300])};
693
+
694
+ &::before {
695
+ top: 0px;
696
+ content: ' ';
697
+ display: block;
698
+ left: 50%;
699
+ transform: translate(-50%, -100%);
700
+ position: absolute;
701
+ border-color: transparent transparent
702
+ ${c(n.gray[400],n.gray[600])} transparent;
703
+ border-style: solid;
704
+ border-width: 7px;
705
+ /* transform: rotate(180deg); */
706
+ }
707
+
708
+ &::after {
709
+ top: 0px;
710
+ content: ' ';
711
+ display: block;
712
+ left: 50%;
713
+ transform: translate(-50%, calc(-100% + 2px));
714
+ position: absolute;
715
+ border-color: transparent transparent
716
+ ${c(n.gray[100],n.darkGray[500])} transparent;
717
+ border-style: solid;
718
+ border-width: 7px;
719
+ }
720
+ `,filtersContainer:t`
721
+ display: flex;
722
+ gap: ${$.size[2]};
723
+ & > button {
724
+ cursor: pointer;
725
+ padding: ${$.size[.5]} ${$.size[1.5]} ${$.size[.5]}
726
+ ${$.size[2]};
727
+ border-radius: ${$.border.radius.sm};
728
+ background-color: ${c(n.gray[100],n.darkGray[400])};
729
+ border: 1px solid ${c(n.gray[300],n.darkGray[200])};
730
+ color: ${c(n.gray[700],n.gray[300])};
731
+ font-size: ${r.size.xs};
732
+ display: flex;
733
+ align-items: center;
734
+ line-height: ${r.lineHeight.sm};
735
+ gap: ${$.size[1.5]};
736
+ max-width: 160px;
737
+ &:focus-visible {
738
+ outline-offset: 2px;
739
+ border-radius: ${s.radius.xs};
740
+ outline: 2px solid ${n.blue[800]};
741
+ }
742
+ & svg {
743
+ width: ${$.size[3]};
744
+ height: ${$.size[3]};
745
+ color: ${c(n.gray[500],n.gray[400])};
746
+ }
747
+ }
748
+ `,filterInput:t`
749
+ padding: ${i[.5]} ${i[2]};
750
+ border-radius: ${$.border.radius.sm};
751
+ background-color: ${c(n.gray[100],n.darkGray[400])};
752
+ display: flex;
753
+ box-sizing: content-box;
754
+ align-items: center;
755
+ gap: ${$.size[1.5]};
756
+ max-width: 160px;
757
+ min-width: 100px;
758
+ border: 1px solid ${c(n.gray[300],n.darkGray[200])};
759
+ height: min-content;
760
+ color: ${c(n.gray[600],n.gray[400])};
761
+ & > svg {
762
+ width: ${i[3]};
763
+ height: ${i[3]};
764
+ }
765
+ & input {
766
+ font-size: ${r.size.xs};
767
+ width: 100%;
768
+ background-color: ${c(n.gray[100],n.darkGray[400])};
769
+ border: none;
770
+ padding: 0;
771
+ line-height: ${r.lineHeight.sm};
772
+ color: ${c(n.gray[700],n.gray[300])};
773
+ &::placeholder {
774
+ color: ${c(n.gray[700],n.gray[300])};
775
+ }
776
+ &:focus {
777
+ outline: none;
778
+ }
779
+ }
780
+
781
+ &:focus-within {
782
+ outline-offset: 2px;
783
+ border-radius: ${s.radius.xs};
784
+ outline: 2px solid ${n.blue[800]};
785
+ }
786
+ `,filterSelect:t`
787
+ padding: ${$.size[.5]} ${$.size[2]};
788
+ border-radius: ${$.border.radius.sm};
789
+ background-color: ${c(n.gray[100],n.darkGray[400])};
790
+ display: flex;
791
+ align-items: center;
792
+ gap: ${$.size[1.5]};
793
+ box-sizing: content-box;
794
+ max-width: 160px;
795
+ border: 1px solid ${c(n.gray[300],n.darkGray[200])};
796
+ height: min-content;
797
+ & > svg {
798
+ color: ${c(n.gray[600],n.gray[400])};
799
+ width: ${$.size[2]};
800
+ height: ${$.size[2]};
801
+ }
802
+ & > select {
803
+ appearance: none;
804
+ color: ${c(n.gray[700],n.gray[300])};
805
+ min-width: 100px;
806
+ line-height: ${r.lineHeight.sm};
807
+ font-size: ${r.size.xs};
808
+ background-color: ${c(n.gray[100],n.darkGray[400])};
809
+ border: none;
810
+ &:focus {
811
+ outline: none;
812
+ }
813
+ }
814
+ &:focus-within {
815
+ outline-offset: 2px;
816
+ border-radius: ${s.radius.xs};
817
+ outline: 2px solid ${n.blue[800]};
818
+ }
819
+ `,actionsContainer:t`
820
+ display: flex;
821
+ gap: ${$.size[2]};
822
+ `,actionsBtn:t`
823
+ border-radius: ${$.border.radius.sm};
824
+ background-color: ${c(n.gray[100],n.darkGray[400])};
825
+ border: 1px solid ${c(n.gray[300],n.darkGray[200])};
826
+ width: ${$.size[6.5]};
827
+ height: ${$.size[6.5]};
828
+ justify-content: center;
829
+ display: flex;
830
+ align-items: center;
831
+ gap: ${$.size[1.5]};
832
+ max-width: 160px;
833
+ cursor: pointer;
834
+ padding: 0;
835
+ &:hover {
836
+ background-color: ${c(n.gray[200],n.darkGray[500])};
837
+ }
838
+ & svg {
839
+ color: ${c(n.gray[700],n.gray[300])};
840
+ width: ${$.size[3]};
841
+ height: ${$.size[3]};
842
+ }
843
+ &:focus-visible {
844
+ outline-offset: 2px;
845
+ border-radius: ${s.radius.xs};
846
+ outline: 2px solid ${n.blue[800]};
847
+ }
848
+ `,actionsBtnOffline:t`
849
+ & svg {
850
+ stroke: ${c(n.yellow[700],n.yellow[500])};
851
+ fill: ${c(n.yellow[700],n.yellow[500])};
852
+ }
853
+ `,overflowQueryContainer:t`
854
+ flex: 1;
855
+ overflow-y: auto;
856
+ & > div {
857
+ display: flex;
858
+ flex-direction: column;
859
+ }
860
+ `,queryRow:t`
861
+ display: flex;
862
+ align-items: center;
863
+ padding: 0;
864
+ border: none;
865
+ cursor: pointer;
866
+ color: ${c(n.gray[700],n.gray[300])};
867
+ background-color: ${c(n.gray[50],n.darkGray[700])};
868
+ line-height: 1;
869
+ &:focus {
870
+ outline: none;
871
+ }
872
+ &:focus-visible {
873
+ outline-offset: -2px;
874
+ border-radius: ${s.radius.xs};
875
+ outline: 2px solid ${n.blue[800]};
876
+ }
877
+ &:hover .tsqd-query-hash {
878
+ background-color: ${c(n.gray[200],n.darkGray[600])};
879
+ }
880
+
881
+ & .tsqd-query-observer-count {
882
+ padding: 0 ${$.size[1]};
883
+ user-select: none;
884
+ min-width: ${$.size[6.5]};
885
+ align-self: stretch;
886
+ display: flex;
887
+ align-items: center;
888
+ justify-content: center;
889
+ font-size: ${r.size.xs};
890
+ font-weight: ${r.weight.medium};
891
+ border-bottom-width: 1px;
892
+ border-bottom-style: solid;
893
+ border-bottom: 1px solid ${c(n.gray[300],n.darkGray[700])};
894
+ }
895
+ & .tsqd-query-hash {
896
+ user-select: text;
897
+ font-size: ${r.size.xs};
898
+ display: flex;
899
+ align-items: center;
900
+ min-height: ${$.size[6]};
901
+ flex: 1;
902
+ padding: ${$.size[1]} ${$.size[2]};
903
+ font-family:
904
+ ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
905
+ 'Liberation Mono', 'Courier New', monospace;
906
+ border-bottom: 1px solid ${c(n.gray[300],n.darkGray[400])};
907
+ text-align: left;
908
+ text-overflow: clip;
909
+ word-break: break-word;
910
+ }
911
+
912
+ & .tsqd-query-disabled-indicator {
913
+ align-self: stretch;
914
+ display: flex;
915
+ align-items: center;
916
+ padding: 0 ${$.size[2]};
917
+ color: ${c(n.gray[800],n.gray[300])};
918
+ background-color: ${c(n.gray[300],n.darkGray[600])};
919
+ border-bottom: 1px solid ${c(n.gray[300],n.darkGray[400])};
920
+ font-size: ${r.size.xs};
921
+ }
922
+
923
+ & .tsqd-query-static-indicator {
924
+ align-self: stretch;
925
+ display: flex;
926
+ align-items: center;
927
+ padding: 0 ${$.size[2]};
928
+ color: ${c(n.teal[800],n.teal[300])};
929
+ background-color: ${c(n.teal[100],n.teal[900])};
930
+ border-bottom: 1px solid ${c(n.teal[300],n.teal[700])};
931
+ font-size: ${r.size.xs};
932
+ }
933
+ `,selectedQueryRow:t`
934
+ background-color: ${c(n.gray[200],n.darkGray[500])};
935
+ `,detailsContainer:t`
936
+ flex: 1 1 700px;
937
+ background-color: ${c(n.gray[50],n.darkGray[700])};
938
+ color: ${c(n.gray[700],n.gray[300])};
939
+ font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
940
+ display: flex;
941
+ flex-direction: column;
942
+ overflow-y: auto;
943
+ display: flex;
944
+ text-align: left;
945
+ `,detailsHeader:t`
946
+ font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
947
+ position: sticky;
948
+ top: 0;
949
+ z-index: 2;
950
+ background-color: ${c(n.gray[200],n.darkGray[600])};
951
+ padding: ${$.size[1.5]} ${$.size[2]};
952
+ font-weight: ${r.weight.medium};
953
+ font-size: ${r.size.xs};
954
+ line-height: ${r.lineHeight.xs};
955
+ text-align: left;
956
+ `,detailsBody:t`
957
+ margin: ${$.size[1.5]} 0px ${$.size[2]} 0px;
958
+ & > div {
959
+ display: flex;
960
+ align-items: stretch;
961
+ padding: 0 ${$.size[2]};
962
+ line-height: ${r.lineHeight.sm};
963
+ justify-content: space-between;
964
+ & > span {
965
+ font-size: ${r.size.xs};
966
+ }
967
+ & > span:nth-child(2) {
968
+ font-variant-numeric: tabular-nums;
969
+ }
970
+ }
971
+
972
+ & > div:first-child {
973
+ margin-bottom: ${$.size[1.5]};
974
+ }
975
+
976
+ & code {
977
+ font-family:
978
+ ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
979
+ 'Liberation Mono', 'Courier New', monospace;
980
+ margin: 0;
981
+ font-size: ${r.size.xs};
982
+ line-height: ${r.lineHeight.xs};
983
+ max-width: 100%;
984
+ white-space: pre-wrap;
985
+ overflow-wrap: anywhere;
986
+ word-break: break-word;
987
+ }
988
+
989
+ & pre {
990
+ margin: 0;
991
+ display: flex;
992
+ align-items: center;
993
+ }
994
+ `,queryDetailsStatus:t`
995
+ border: 1px solid ${n.darkGray[200]};
996
+ border-radius: ${$.border.radius.sm};
997
+ font-weight: ${r.weight.medium};
998
+ padding: ${$.size[1]} ${$.size[2.5]};
999
+ `,actionsBody:t`
1000
+ flex-wrap: wrap;
1001
+ margin: ${$.size[2]} 0px ${$.size[2]} 0px;
1002
+ display: flex;
1003
+ gap: ${$.size[2]};
1004
+ padding: 0px ${$.size[2]};
1005
+ & > button {
1006
+ font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
1007
+ font-size: ${r.size.xs};
1008
+ padding: ${$.size[1]} ${$.size[2]};
1009
+ display: flex;
1010
+ border-radius: ${$.border.radius.sm};
1011
+ background-color: ${c(n.gray[100],n.darkGray[600])};
1012
+ border: 1px solid ${c(n.gray[300],n.darkGray[400])};
1013
+ align-items: center;
1014
+ gap: ${$.size[2]};
1015
+ font-weight: ${r.weight.medium};
1016
+ line-height: ${r.lineHeight.xs};
1017
+ cursor: pointer;
1018
+ &:focus-visible {
1019
+ outline-offset: 2px;
1020
+ border-radius: ${s.radius.xs};
1021
+ outline: 2px solid ${n.blue[800]};
1022
+ }
1023
+ &:hover {
1024
+ background-color: ${c(n.gray[200],n.darkGray[500])};
1025
+ }
1026
+
1027
+ &:disabled {
1028
+ opacity: 0.6;
1029
+ cursor: not-allowed;
1030
+ }
1031
+
1032
+ & > span {
1033
+ width: ${i[1.5]};
1034
+ height: ${i[1.5]};
1035
+ border-radius: ${$.border.radius.full};
1036
+ }
1037
+ }
1038
+ `,actionsSelect:t`
1039
+ font-size: ${r.size.xs};
1040
+ padding: ${$.size[.5]} ${$.size[2]};
1041
+ display: flex;
1042
+ border-radius: ${$.border.radius.sm};
1043
+ overflow: hidden;
1044
+ background-color: ${c(n.gray[100],n.darkGray[600])};
1045
+ border: 1px solid ${c(n.gray[300],n.darkGray[400])};
1046
+ align-items: center;
1047
+ gap: ${$.size[2]};
1048
+ font-weight: ${r.weight.medium};
1049
+ line-height: ${r.lineHeight.sm};
1050
+ color: ${c(n.red[500],n.red[400])};
1051
+ cursor: pointer;
1052
+ position: relative;
1053
+ &:hover {
1054
+ background-color: ${c(n.gray[200],n.darkGray[500])};
1055
+ }
1056
+ & > span {
1057
+ width: ${i[1.5]};
1058
+ height: ${i[1.5]};
1059
+ border-radius: ${$.border.radius.full};
1060
+ }
1061
+ &:focus-within {
1062
+ outline-offset: 2px;
1063
+ border-radius: ${s.radius.xs};
1064
+ outline: 2px solid ${n.blue[800]};
1065
+ }
1066
+ & select {
1067
+ position: absolute;
1068
+ top: 0;
1069
+ left: 0;
1070
+ width: 100%;
1071
+ height: 100%;
1072
+ appearance: none;
1073
+ background-color: transparent;
1074
+ border: none;
1075
+ color: transparent;
1076
+ outline: none;
1077
+ }
1078
+
1079
+ & svg path {
1080
+ stroke: ${$.colors.red[400]};
1081
+ }
1082
+ & svg {
1083
+ width: ${$.size[2]};
1084
+ height: ${$.size[2]};
1085
+ }
1086
+ `,settingsMenu:t`
1087
+ display: flex;
1088
+ & * {
1089
+ font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
1090
+ }
1091
+ flex-direction: column;
1092
+ gap: ${i[.5]};
1093
+ border-radius: ${$.border.radius.sm};
1094
+ border: 1px solid ${c(n.gray[300],n.gray[700])};
1095
+ background-color: ${c(n.gray[50],n.darkGray[600])};
1096
+ font-size: ${r.size.xs};
1097
+ color: ${c(n.gray[700],n.gray[300])};
1098
+ z-index: 99999;
1099
+ min-width: 120px;
1100
+ padding: ${i[.5]};
1101
+ `,settingsSubTrigger:t`
1102
+ display: flex;
1103
+ align-items: center;
1104
+ justify-content: space-between;
1105
+ border-radius: ${$.border.radius.xs};
1106
+ padding: ${$.size[1]} ${$.size[1]};
1107
+ cursor: pointer;
1108
+ background-color: transparent;
1109
+ border: none;
1110
+ color: ${c(n.gray[700],n.gray[300])};
1111
+ & svg {
1112
+ color: ${c(n.gray[600],n.gray[400])};
1113
+ transform: rotate(-90deg);
1114
+ width: ${$.size[2]};
1115
+ height: ${$.size[2]};
1116
+ }
1117
+ &:hover {
1118
+ background-color: ${c(n.gray[200],n.darkGray[500])};
1119
+ }
1120
+ &:focus-visible {
1121
+ outline-offset: 2px;
1122
+ outline: 2px solid ${n.blue[800]};
1123
+ }
1124
+ &.data-disabled {
1125
+ opacity: 0.6;
1126
+ cursor: not-allowed;
1127
+ }
1128
+ `,settingsMenuHeader:t`
1129
+ padding: ${$.size[1]} ${$.size[1]};
1130
+ font-weight: ${r.weight.medium};
1131
+ border-bottom: 1px solid ${c(n.gray[300],n.darkGray[400])};
1132
+ color: ${c(n.gray[500],n.gray[400])};
1133
+ font-size: ${r.size.xs};
1134
+ `,settingsSubButton:t`
1135
+ display: flex;
1136
+ align-items: center;
1137
+ justify-content: space-between;
1138
+ color: ${c(n.gray[700],n.gray[300])};
1139
+ font-size: ${r.size.xs};
1140
+ border-radius: ${$.border.radius.xs};
1141
+ padding: ${$.size[1]} ${$.size[1]};
1142
+ cursor: pointer;
1143
+ background-color: transparent;
1144
+ border: none;
1145
+ & svg {
1146
+ color: ${c(n.gray[600],n.gray[400])};
1147
+ }
1148
+ &:hover {
1149
+ background-color: ${c(n.gray[200],n.darkGray[500])};
1150
+ }
1151
+ &:focus-visible {
1152
+ outline-offset: 2px;
1153
+ outline: 2px solid ${n.blue[800]};
1154
+ }
1155
+ &[data-checked] {
1156
+ background-color: ${c(n.purple[100],n.purple[900])};
1157
+ color: ${c(n.purple[700],n.purple[300])};
1158
+ & svg {
1159
+ color: ${c(n.purple[700],n.purple[300])};
1160
+ }
1161
+ &:hover {
1162
+ background-color: ${c(n.purple[100],n.purple[900])};
1163
+ }
1164
+ }
1165
+ `,viewToggle:t`
1166
+ border-radius: ${$.border.radius.sm};
1167
+ background-color: ${c(n.gray[200],n.darkGray[600])};
1168
+ border: 1px solid ${c(n.gray[300],n.darkGray[200])};
1169
+ display: flex;
1170
+ padding: 0;
1171
+ font-size: ${r.size.xs};
1172
+ color: ${c(n.gray[700],n.gray[300])};
1173
+ overflow: hidden;
1174
+
1175
+ &:has(:focus-visible) {
1176
+ outline: 2px solid ${n.blue[800]};
1177
+ }
1178
+
1179
+ & .tsqd-radio-toggle {
1180
+ opacity: 0.5;
1181
+ display: flex;
1182
+ & label {
1183
+ display: flex;
1184
+ align-items: center;
1185
+ cursor: pointer;
1186
+ line-height: ${r.lineHeight.md};
1187
+ }
1188
+
1189
+ & label:hover {
1190
+ background-color: ${c(n.gray[100],n.darkGray[500])};
1191
+ }
1192
+ }
1193
+
1194
+ & > [data-checked] {
1195
+ opacity: 1;
1196
+ background-color: ${c(n.gray[100],n.darkGray[400])};
1197
+ & label:hover {
1198
+ background-color: ${c(n.gray[100],n.darkGray[400])};
1199
+ }
1200
+ }
1201
+
1202
+ & .tsqd-radio-toggle:first-child {
1203
+ & label {
1204
+ padding: 0 ${$.size[1.5]} 0 ${$.size[2]};
1205
+ }
1206
+ border-right: 1px solid ${c(n.gray[300],n.darkGray[200])};
1207
+ }
1208
+
1209
+ & .tsqd-radio-toggle:nth-child(2) {
1210
+ & label {
1211
+ padding: 0 ${$.size[2]} 0 ${$.size[1.5]};
1212
+ }
1213
+ }
1214
+ `,devtoolsEditForm:t`
1215
+ padding: ${i[2]};
1216
+ & > [data-error='true'] {
1217
+ outline: 2px solid ${c(n.red[200],n.red[800])};
1218
+ outline-offset: 2px;
1219
+ border-radius: ${s.radius.xs};
1220
+ }
1221
+ `,devtoolsEditTextarea:t`
1222
+ width: 100%;
1223
+ max-height: 500px;
1224
+ font-family: 'Fira Code', monospace;
1225
+ font-size: ${r.size.xs};
1226
+ border-radius: ${s.radius.sm};
1227
+ field-sizing: content;
1228
+ padding: ${i[2]};
1229
+ background-color: ${c(n.gray[100],n.darkGray[800])};
1230
+ color: ${c(n.gray[900],n.gray[100])};
1231
+ border: 1px solid ${c(n.gray[200],n.gray[700])};
1232
+ resize: none;
1233
+ &:focus {
1234
+ outline-offset: 2px;
1235
+ border-radius: ${s.radius.xs};
1236
+ outline: 2px solid ${c(n.blue[200],n.blue[800])};
1237
+ }
1238
+ `,devtoolsEditFormActions:t`
1239
+ display: flex;
1240
+ justify-content: space-between;
1241
+ gap: ${i[2]};
1242
+ align-items: center;
1243
+ padding-top: ${i[1]};
1244
+ font-size: ${r.size.xs};
1245
+ `,devtoolsEditFormError:t`
1246
+ color: ${c(n.red[700],n.red[500])};
1247
+ `,devtoolsEditFormActionContainer:t`
1248
+ display: flex;
1249
+ gap: ${i[2]};
1250
+ `,devtoolsEditFormAction:t`
1251
+ font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
1252
+ font-size: ${r.size.xs};
1253
+ padding: ${i[1]} ${$.size[2]};
1254
+ display: flex;
1255
+ border-radius: ${s.radius.sm};
1256
+ background-color: ${c(n.gray[100],n.darkGray[600])};
1257
+ border: 1px solid ${c(n.gray[300],n.darkGray[400])};
1258
+ align-items: center;
1259
+ gap: ${i[2]};
1260
+ font-weight: ${r.weight.medium};
1261
+ line-height: ${r.lineHeight.xs};
1262
+ cursor: pointer;
1263
+ &:focus-visible {
1264
+ outline-offset: 2px;
1265
+ border-radius: ${s.radius.xs};
1266
+ outline: 2px solid ${n.blue[800]};
1267
+ }
1268
+ &:hover {
1269
+ background-color: ${c(n.gray[200],n.darkGray[500])};
1270
+ }
1271
+
1272
+ &:disabled {
1273
+ opacity: 0.6;
1274
+ cursor: not-allowed;
1275
+ }
1276
+ `}},a3=e=>i3(`light`,e),o3=e=>i3(`dark`,e),LW([`click`,`mousedown`,`keydown`,`input`])})),c3=c({default:()=>u3}),l3,u3,d3=o((()=>{s3(),wq(),l3=e=>{let[t,n]=n$({prefix:`TanstackQueryDevtools`}),r=bq(),i=G(()=>{let n=e.theme||t.theme_preference||`system`;return n===`system`?r():n});return K(v$.Provider,{value:e,get children(){return K(x$,{localStore:t,setLocalStore:n,get children(){return K(C$.Provider,{value:i,get children(){return K(z4,{localStore:t,setLocalStore:n})}})}})}})},u3=l3}));wq();var f3=class{#e;#t;#n;#r;#i=!1;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m;constructor(e){let{client:t,queryFlavor:n,version:r,onlineManager:i,buttonPosition:a,position:o,initialIsOpen:s,errorTypes:c,styleNonce:l,shadowDOMTarget:u,hideDisabledQueries:d,theme:f}=e;this.#e=PU(t),this.#n=n,this.#r=r,this.#t=i,this.#a=l,this.#o=u,this.#s=PU(a),this.#c=PU(o),this.#l=PU(s),this.#u=PU(c),this.#d=PU(d),this.#p=PU(f)}setButtonPosition(e){this.#s[1](e)}setPosition(e){this.#c[1](e)}setInitialIsOpen(e){this.#l[1](e)}setErrorTypes(e){this.#u[1](e)}setClient(e){this.#e[1](e)}setTheme(e){this.#p[1](e)}mount(e){if(this.#i)throw Error(`Devtools is already mounted`);let t=FW(()=>{let e=this,[t]=this.#s,[n]=this.#c,[r]=this.#l,[i]=this.#u,[a]=this.#d,[o]=this.#e,[s]=this.#p,c;return this.#f?c=this.#f:(c=EW(()=>Tq(()=>Promise.resolve().then(()=>(d3(),c3)),void 0,{}.url)),this.#f=c),Cq(this.#a,this.#o),K(c,wW({get queryFlavor(){return e.#n},get version(){return e.#r},get onlineManager(){return e.#t},get shadowDOMTarget(){return e.#o}},{get client(){return o()},get buttonPosition(){return t()},get position(){return n()},get initialIsOpen(){return r()},get errorTypes(){return i()},get hideDisabledQueries(){return a()},get theme(){return s()}}))},e);this.#i=!0,this.#m=t}unmount(){if(!this.#i)throw Error(`Devtools is not mounted`);this.#m?.(),this.#i=!1}};function p3(e){let t=FP(e.client),n=M.useRef(null),{buttonPosition:r,position:i,initialIsOpen:a,errorTypes:o,styleNonce:s,shadowDOMTarget:c,hideDisabledQueries:l,theme:u}=e,[d]=M.useState(new f3({client:t,queryFlavor:`React Query`,version:`5`,onlineManager:sP,buttonPosition:r,position:i,initialIsOpen:a,errorTypes:o,styleNonce:s,shadowDOMTarget:c,hideDisabledQueries:l,theme:u}));return M.useEffect(()=>{d.setClient(t)},[t,d]),M.useEffect(()=>{r&&d.setButtonPosition(r)},[r,d]),M.useEffect(()=>{i&&d.setPosition(i)},[i,d]),M.useEffect(()=>{d.setInitialIsOpen(a||!1)},[a,d]),M.useEffect(()=>{d.setErrorTypes(o||[])},[o,d]),M.useEffect(()=>{d.setTheme(u)},[u,d]),M.useEffect(()=>(n.current&&d.mount(n.current),()=>{d.unmount()}),[d]),(0,N.jsx)(`div`,{dir:`ltr`,className:`tsqd-parent-container`,ref:n})}var m3=p3,h3=new NP({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),g3=()=>{let{appsettings:e}=kF();return e?.showDebug?(0,N.jsx)(m3,{initialIsOpen:!1}):null},_3=document.getElementById(`root`);_3&&!_3.hasAttribute(`data-reactroot-initialized`)?(_3.setAttribute(`data-reactroot-initialized`,`true`),(0,Mj.createRoot)(_3).render((0,N.jsx)(()=>{let{theme:e,initTheme:t}=U();return(0,M.useEffect)(()=>{t()},[]),(0,N.jsx)(M.StrictMode,{children:(0,N.jsxs)(IP,{client:h3,children:[(0,N.jsx)(Yu,{theme:e===`light`?Mu:Pu,children:(0,N.jsx)(kU,{})}),(0,N.jsx)(g3,{})]})})},{}))):_3||console.error(`Root element not found. Make sure the HTML contains <div id="root"></div>`)})();
1277
+ //# sourceMappingURL=index-CgrZyssv.js.map