@prozorro/prozorro-ui 0.0.5 → 0.0.7-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/assets/{Color-FRDS63T2-Bo-vvTV8.js → Color-FRDS63T2-D7DceWd3.js} +1 -1
- package/dist/app/assets/Colors-fhEnNkJK.css +1 -0
- package/dist/app/assets/Colors.stories-oSXYJENR.js +106 -0
- package/dist/app/assets/{DocsRenderer-LL677BLK-DxB60yOs.js → DocsRenderer-LL677BLK-CSnojeph.js} +9 -9
- package/dist/app/assets/Grid-B7NVrFKF.css +1 -0
- package/dist/app/assets/Grid.stories-Bs3kySs1.js +150 -0
- package/dist/app/assets/PzGrid-DES6s5R0.css +1 -0
- package/dist/app/assets/PzGrid.stories-DHYDe1eo.js +174 -0
- package/dist/app/assets/PzIcon-CyZkl7-f.css +1 -0
- package/dist/app/assets/PzIcon.stories-DnSfvny_.js +63 -0
- package/dist/app/assets/PzImage-BNrbMHP9.css +1 -0
- package/dist/app/assets/PzImage.stories-3xf5vq8I.js +57 -0
- package/dist/app/assets/PzText-B1cefxtz.js +1 -0
- package/dist/app/assets/PzText-DsC8c6AJ.css +1 -0
- package/dist/app/assets/PzText.stories-BFfwzgRO.js +133 -0
- package/dist/app/assets/Spacing-B5TnfKCB.css +1 -0
- package/dist/app/assets/Spacing.stories-DhCjLNK2.js +127 -0
- package/dist/app/assets/Typography-Bgal0fkk.css +1 -0
- package/dist/app/assets/Typography.stories-CSj6NWZS.js +47 -0
- package/dist/app/assets/{WithTooltip-65CFNBJE-Ty2foy7t.js → WithTooltip-65CFNBJE-CXtzAlgs.js} +1 -1
- package/dist/app/assets/formatter-EIJCOSYU-BiTxXm4h.js +1 -0
- package/dist/app/assets/{iframe-B_iz38fI.js → iframe-AHEBgGuT.js} +132 -132
- package/dist/app/assets/iframe-C7ls-B1-.css +1 -0
- package/dist/app/assets/{syntaxhighlighter-OH4MV7E3-Can2sBRZ.js → syntaxhighlighter-OH4MV7E3-C5g7sJvt.js} +1 -1
- package/dist/app/favicon.ico +0 -0
- package/dist/app/iframe.html +3 -3
- package/dist/app/index.html +6 -2
- package/dist/app/index.json +1 -1
- package/dist/app/project.json +1 -1
- package/dist/app/sb-addons/storybook-2/manager-bundle.js +3 -0
- package/dist/app/sb-manager/globals-runtime.js +1 -1
- package/dist/components/PzGrid/PzGrid.vue.d.ts +25 -0
- package/dist/components/PzGrid/PzGridItem.vue.d.ts +32 -0
- package/dist/components/PzGrid/configs.d.ts +2 -0
- package/dist/components/PzGrid/index.d.ts +3 -0
- package/dist/components/PzGrid/types.d.ts +26 -0
- package/dist/components/PzIcon/PzIcon.vue.d.ts +7 -0
- package/dist/components/PzIcon/configs.d.ts +2 -0
- package/dist/components/PzIcon/index.d.ts +2 -0
- package/dist/components/PzIcon/types.d.ts +9 -0
- package/dist/components/PzImage/PzImage.vue.d.ts +7 -0
- package/dist/components/PzImage/configs.d.ts +3 -0
- package/dist/components/PzImage/index.d.ts +2 -0
- package/dist/components/PzImage/types.d.ts +10 -0
- package/dist/components/PzText/configs.d.ts +2 -0
- package/dist/components/PzText/types.d.ts +1 -1
- package/dist/favicon.ico +0 -0
- package/dist/index.d.ts +3 -0
- package/dist/package.json +3 -2
- package/dist/prozorro-ui.cjs +1 -1
- package/dist/prozorro-ui.js +141 -16
- package/dist/style.css +1 -1
- package/package.json +3 -2
- package/src/styles/_colors.scss +90 -0
- package/src/styles/_grid.scss +69 -0
- package/src/styles/_reset.scss +2 -2
- package/src/styles/_spacing.scss +56 -0
- package/src/styles/abstract/_mixins.scss +17 -1
- package/src/styles/abstract/_typography.scss +33 -33
- package/src/styles/abstract/_variables.scss +145 -54
- package/src/styles/main.scss +3 -0
- package/src/styles/vendors/_google-material-icons.scss +6 -3
- package/dist/app/assets/PzText-H75Z6Lud.css +0 -1
- package/dist/app/assets/PzText.stories-pNLs8FlM.js +0 -239
- package/dist/app/assets/formatter-EIJCOSYU-oeR5mOii.js +0 -1
- package/dist/app/assets/iframe-CNIwQJJc.css +0 -1
package/dist/app/assets/{DocsRenderer-LL677BLK-DxB60yOs.js → DocsRenderer-LL677BLK-CSnojeph.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./syntaxhighlighter-OH4MV7E3-
|
|
2
|
-
var J6=Object.defineProperty;var e8=(e,t,r)=>t in e?J6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ln=(e,t,r)=>e8(e,typeof t!="symbol"?t+"":t,r);import{_ as Qn}from"./preload-helper-C1FmrZbK.js";import{
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./syntaxhighlighter-OH4MV7E3-C5g7sJvt.js","./iframe-AHEBgGuT.js","./preload-helper-C1FmrZbK.js","./iframe-C7ls-B1-.css","./formatter-EIJCOSYU-BiTxXm4h.js","./WithTooltip-65CFNBJE-CXtzAlgs.js","./Color-FRDS63T2-D7DceWd3.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var J6=Object.defineProperty;var e8=(e,t,r)=>t in e?J6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ln=(e,t,r)=>e8(e,typeof t!="symbol"?t+"":t,r);import{_ as Qn}from"./preload-helper-C1FmrZbK.js";import{j as Ov,k as t8,l as r8,s as n8,m as a8,p as l8,q as i8,u as o8,v as qp,x as zi,y as Dv,z as s8,A as u8,B as c8,C as d8,D as f8,E as p8,F as h8,G as g8,H as m8,I as y8,J as b8,K as v8,L as E8,M as S8,N as x8,O as $8,P as _8,Q as Rv,c as Ft,R as Yu,b as Kt,S as Dt,T as ko,U as Wp,V as _d,W as C8,X as T8,Y as Nv,Z as Xp}from"./iframe-AHEBgGuT.js";function w8(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const l=Object.getOwnPropertyDescriptor(n,a);l&&Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function A8(){}function O8(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function D8(e,t,r){return is(e,t,void 0,void 0,void 0,void 0,r)}function is(e,t,r,n,a,l,i){let o=i(e,t,r,n,a,l);if(o!==void 0)return o;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return bs(e,t,l,i)}return bs(e,t,l,i)}function bs(e,t,r,n){if(Object.is(e,t))return!0;let a=Ov(e),l=Ov(t);if(a===Rv&&(a=qp),l===Rv&&(l=qp),a!==l)return!1;switch(a){case o8:return e.toString()===t.toString();case i8:{let s=e.valueOf(),u=t.valueOf();return O8(s,u)}case l8:case a8:case n8:return Object.is(e.valueOf(),t.valueOf());case r8:return e.source===t.source&&e.flags===t.flags;case t8:return e===t}r=r??new Map;let i=r.get(e),o=r.get(t);if(i!=null&&o!=null)return i===t;r.set(e,t),r.set(t,e);try{switch(a){case _8:{if(e.size!==t.size)return!1;for(let[s,u]of e.entries())if(!t.has(s)||!is(u,t.get(s),s,e,t,r,n))return!1;return!0}case $8:{if(e.size!==t.size)return!1;let s=Array.from(e.values()),u=Array.from(t.values());for(let c=0;c<s.length;c++){let d=s[c],f=u.findIndex(p=>is(d,p,void 0,e,t,r,n));if(f===-1)return!1;u.splice(f,1)}return!0}case x8:case S8:case E8:case v8:case b8:case y8:case m8:case g8:case h8:case p8:case f8:case d8:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let s=0;s<e.length;s++)if(!is(e[s],t[s],s,e,t,r,n))return!1;return!0}case c8:return e.byteLength!==t.byteLength?!1:bs(new Uint8Array(e),new Uint8Array(t),r,n);case u8:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:bs(new Uint8Array(e),new Uint8Array(t),r,n);case s8:return e.name===t.name&&e.message===t.message;case qp:{if(!(bs(e.constructor,t.constructor,r,n)||zi(e)&&zi(t)))return!1;let s=[...Object.keys(e),...Dv(e)],u=[...Object.keys(t),...Dv(t)];if(s.length!==u.length)return!1;for(let c=0;c<s.length;c++){let d=s[c],f=e[d];if(!Object.hasOwn(t,d))return!1;let p=t[d];if(!is(f,p,d,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}function pn(e,t){return D8(e,t,A8)}function wy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ZC={exports:{}},ne={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react.production.js
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@ var J6=Object.defineProperty;var e8=(e,t,r)=>t in e?J6(e,t,{enumerable:!0,config
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var Ay=Symbol.for("react.transitional.element"),R8=Symbol.for("react.portal"),N8=Symbol.for("react.fragment"),L8=Symbol.for("react.strict_mode"),M8=Symbol.for("react.profiler"),F8=Symbol.for("react.consumer"),B8=Symbol.for("react.context"),P8=Symbol.for("react.forward_ref"),I8=Symbol.for("react.suspense"),k8=Symbol.for("react.memo"),QC=Symbol.for("react.lazy"),z8=Symbol.for("react.activity"),Lv=Symbol.iterator;function H8(e){return e===null||typeof e!="object"?null:(e=Lv&&e[Lv]||e["@@iterator"],typeof e=="function"?e:null)}var JC={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},eT=Object.assign,tT={};function yo(e,t,r){this.props=e,this.context=t,this.refs=tT,this.updater=r||JC}yo.prototype.isReactComponent={};yo.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")};yo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function rT(){}rT.prototype=yo.prototype;function Oy(e,t,r){this.props=e,this.context=t,this.refs=tT,this.updater=r||JC}var Dy=Oy.prototype=new rT;Dy.constructor=Oy;eT(Dy,yo.prototype);Dy.isPureReactComponent=!0;var Mv=Array.isArray;function sm(){}var Pe={H:null,A:null,T:null,S:null},nT=Object.prototype.hasOwnProperty;function Ry(e,t,r){var n=r.ref;return{$$typeof:Ay,type:e,key:t,ref:n!==void 0?n:null,props:r}}function U8(e,t){return Ry(e.type,t,e.props)}function Ny(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ay}function j8(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Fv=/\/+/g;function Zp(e,t){return typeof e=="object"&&e!==null&&e.key!=null?j8(""+e.key):t.toString(36)}function K8(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(sm,sm):(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 ii(e,t,r,n,a){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(l){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Ay:case R8:i=!0;break;case QC:return i=e._init,ii(i(e._payload),t,r,n,a)}}if(i)return a=a(e),i=n===""?"."+Zp(e,0):n,Mv(a)?(r="",i!=null&&(r=i.replace(Fv,"$&/")+"/"),ii(a,t,r,"",function(u){return u})):a!=null&&(Ny(a)&&(a=U8(a,r+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(Fv,"$&/")+"/")+i)),t.push(a)),1;i=0;var o=n===""?".":n+":";if(Mv(e))for(var s=0;s<e.length;s++)n=e[s],l=o+Zp(n,s),i+=ii(n,t,r,l,a);else if(s=H8(e),typeof s=="function")for(e=s.call(e),s=0;!(n=e.next()).done;)n=n.value,l=o+Zp(n,s++),i+=ii(n,t,r,l,a);else if(l==="object"){if(typeof e.then=="function")return ii(K8(e),t,r,n,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function qu(e,t,r){if(e==null)return e;var n=[],a=0;return ii(e,n,"","",function(l){return t.call(r,l,a++)}),n}function G8(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Bv=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!==null&&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)},V8={map:qu,forEach:function(e,t,r){qu(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return qu(e,function(){t++}),t},toArray:function(e){return qu(e,function(t){return t})||[]},only:function(e){if(!Ny(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ne.Activity=z8;ne.Children=V8;ne.Component=yo;ne.Fragment=N8;ne.Profiler=M8;ne.PureComponent=Oy;ne.StrictMode=L8;ne.Suspense=I8;ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Pe;ne.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Pe.H.useMemoCache(e)}};ne.cache=function(e){return function(){return e.apply(null,arguments)}};ne.cacheSignal=function(){return null};ne.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var n=eT({},e.props),a=e.key;if(t!=null)for(l in t.key!==void 0&&(a=""+t.key),t)!nT.call(t,l)||l==="key"||l==="__self"||l==="__source"||l==="ref"&&t.ref===void 0||(n[l]=t[l]);var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){for(var i=Array(l),o=0;o<l;o++)i[o]=arguments[o+2];n.children=i}return Ry(e.type,a,n)};ne.createContext=function(e){return e={$$typeof:B8,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:F8,_context:e},e};ne.createElement=function(e,t,r){var n,a={},l=null;if(t!=null)for(n in t.key!==void 0&&(l=""+t.key),t)nT.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(a[n]=t[n]);var i=arguments.length-2;if(i===1)a.children=r;else if(1<i){for(var o=Array(i),s=0;s<i;s++)o[s]=arguments[s+2];a.children=o}if(e&&e.defaultProps)for(n in i=e.defaultProps,i)a[n]===void 0&&(a[n]=i[n]);return Ry(e,l,a)};ne.createRef=function(){return{current:null}};ne.forwardRef=function(e){return{$$typeof:P8,render:e}};ne.isValidElement=Ny;ne.lazy=function(e){return{$$typeof:QC,_payload:{_status:-1,_result:e},_init:G8}};ne.memo=function(e,t){return{$$typeof:k8,type:e,compare:t===void 0?null:t}};ne.startTransition=function(e){var t=Pe.T,r={};Pe.T=r;try{var n=e(),a=Pe.S;a!==null&&a(r,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(sm,Bv)}catch(l){Bv(l)}finally{t!==null&&r.types!==null&&(t.types=r.types),Pe.T=t}};ne.unstable_useCacheRefresh=function(){return Pe.H.useCacheRefresh()};ne.use=function(e){return Pe.H.use(e)};ne.useActionState=function(e,t,r){return Pe.H.useActionState(e,t,r)};ne.useCallback=function(e,t){return Pe.H.useCallback(e,t)};ne.useContext=function(e){return Pe.H.useContext(e)};ne.useDebugValue=function(){};ne.useDeferredValue=function(e,t){return Pe.H.useDeferredValue(e,t)};ne.useEffect=function(e,t){return Pe.H.useEffect(e,t)};ne.useEffectEvent=function(e){return Pe.H.useEffectEvent(e)};ne.useId=function(){return Pe.H.useId()};ne.useImperativeHandle=function(e,t,r){return Pe.H.useImperativeHandle(e,t,r)};ne.useInsertionEffect=function(e,t){return Pe.H.useInsertionEffect(e,t)};ne.useLayoutEffect=function(e,t){return Pe.H.useLayoutEffect(e,t)};ne.useMemo=function(e,t){return Pe.H.useMemo(e,t)};ne.useOptimistic=function(e,t){return Pe.H.useOptimistic(e,t)};ne.useReducer=function(e,t,r){return Pe.H.useReducer(e,t,r)};ne.useRef=function(e){return Pe.H.useRef(e)};ne.useState=function(e){return Pe.H.useState(e)};ne.useSyncExternalStore=function(e,t,r){return Pe.H.useSyncExternalStore(e,t,r)};ne.useTransition=function(){return Pe.H.useTransition()};ne.version="19.2.
|
|
10
|
+
*/var Ay=Symbol.for("react.transitional.element"),R8=Symbol.for("react.portal"),N8=Symbol.for("react.fragment"),L8=Symbol.for("react.strict_mode"),M8=Symbol.for("react.profiler"),F8=Symbol.for("react.consumer"),B8=Symbol.for("react.context"),P8=Symbol.for("react.forward_ref"),I8=Symbol.for("react.suspense"),k8=Symbol.for("react.memo"),QC=Symbol.for("react.lazy"),z8=Symbol.for("react.activity"),Lv=Symbol.iterator;function H8(e){return e===null||typeof e!="object"?null:(e=Lv&&e[Lv]||e["@@iterator"],typeof e=="function"?e:null)}var JC={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},eT=Object.assign,tT={};function yo(e,t,r){this.props=e,this.context=t,this.refs=tT,this.updater=r||JC}yo.prototype.isReactComponent={};yo.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")};yo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function rT(){}rT.prototype=yo.prototype;function Oy(e,t,r){this.props=e,this.context=t,this.refs=tT,this.updater=r||JC}var Dy=Oy.prototype=new rT;Dy.constructor=Oy;eT(Dy,yo.prototype);Dy.isPureReactComponent=!0;var Mv=Array.isArray;function sm(){}var Pe={H:null,A:null,T:null,S:null},nT=Object.prototype.hasOwnProperty;function Ry(e,t,r){var n=r.ref;return{$$typeof:Ay,type:e,key:t,ref:n!==void 0?n:null,props:r}}function U8(e,t){return Ry(e.type,t,e.props)}function Ny(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ay}function j8(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Fv=/\/+/g;function Zp(e,t){return typeof e=="object"&&e!==null&&e.key!=null?j8(""+e.key):t.toString(36)}function K8(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(sm,sm):(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 ii(e,t,r,n,a){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(l){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Ay:case R8:i=!0;break;case QC:return i=e._init,ii(i(e._payload),t,r,n,a)}}if(i)return a=a(e),i=n===""?"."+Zp(e,0):n,Mv(a)?(r="",i!=null&&(r=i.replace(Fv,"$&/")+"/"),ii(a,t,r,"",function(u){return u})):a!=null&&(Ny(a)&&(a=U8(a,r+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(Fv,"$&/")+"/")+i)),t.push(a)),1;i=0;var o=n===""?".":n+":";if(Mv(e))for(var s=0;s<e.length;s++)n=e[s],l=o+Zp(n,s),i+=ii(n,t,r,l,a);else if(s=H8(e),typeof s=="function")for(e=s.call(e),s=0;!(n=e.next()).done;)n=n.value,l=o+Zp(n,s++),i+=ii(n,t,r,l,a);else if(l==="object"){if(typeof e.then=="function")return ii(K8(e),t,r,n,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function qu(e,t,r){if(e==null)return e;var n=[],a=0;return ii(e,n,"","",function(l){return t.call(r,l,a++)}),n}function G8(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Bv=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!==null&&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)},V8={map:qu,forEach:function(e,t,r){qu(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return qu(e,function(){t++}),t},toArray:function(e){return qu(e,function(t){return t})||[]},only:function(e){if(!Ny(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ne.Activity=z8;ne.Children=V8;ne.Component=yo;ne.Fragment=N8;ne.Profiler=M8;ne.PureComponent=Oy;ne.StrictMode=L8;ne.Suspense=I8;ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Pe;ne.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Pe.H.useMemoCache(e)}};ne.cache=function(e){return function(){return e.apply(null,arguments)}};ne.cacheSignal=function(){return null};ne.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var n=eT({},e.props),a=e.key;if(t!=null)for(l in t.key!==void 0&&(a=""+t.key),t)!nT.call(t,l)||l==="key"||l==="__self"||l==="__source"||l==="ref"&&t.ref===void 0||(n[l]=t[l]);var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){for(var i=Array(l),o=0;o<l;o++)i[o]=arguments[o+2];n.children=i}return Ry(e.type,a,n)};ne.createContext=function(e){return e={$$typeof:B8,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:F8,_context:e},e};ne.createElement=function(e,t,r){var n,a={},l=null;if(t!=null)for(n in t.key!==void 0&&(l=""+t.key),t)nT.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(a[n]=t[n]);var i=arguments.length-2;if(i===1)a.children=r;else if(1<i){for(var o=Array(i),s=0;s<i;s++)o[s]=arguments[s+2];a.children=o}if(e&&e.defaultProps)for(n in i=e.defaultProps,i)a[n]===void 0&&(a[n]=i[n]);return Ry(e,l,a)};ne.createRef=function(){return{current:null}};ne.forwardRef=function(e){return{$$typeof:P8,render:e}};ne.isValidElement=Ny;ne.lazy=function(e){return{$$typeof:QC,_payload:{_status:-1,_result:e},_init:G8}};ne.memo=function(e,t){return{$$typeof:k8,type:e,compare:t===void 0?null:t}};ne.startTransition=function(e){var t=Pe.T,r={};Pe.T=r;try{var n=e(),a=Pe.S;a!==null&&a(r,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(sm,Bv)}catch(l){Bv(l)}finally{t!==null&&r.types!==null&&(t.types=r.types),Pe.T=t}};ne.unstable_useCacheRefresh=function(){return Pe.H.useCacheRefresh()};ne.use=function(e){return Pe.H.use(e)};ne.useActionState=function(e,t,r){return Pe.H.useActionState(e,t,r)};ne.useCallback=function(e,t){return Pe.H.useCallback(e,t)};ne.useContext=function(e){return Pe.H.useContext(e)};ne.useDebugValue=function(){};ne.useDeferredValue=function(e,t){return Pe.H.useDeferredValue(e,t)};ne.useEffect=function(e,t){return Pe.H.useEffect(e,t)};ne.useEffectEvent=function(e){return Pe.H.useEffectEvent(e)};ne.useId=function(){return Pe.H.useId()};ne.useImperativeHandle=function(e,t,r){return Pe.H.useImperativeHandle(e,t,r)};ne.useInsertionEffect=function(e,t){return Pe.H.useInsertionEffect(e,t)};ne.useLayoutEffect=function(e,t){return Pe.H.useLayoutEffect(e,t)};ne.useMemo=function(e,t){return Pe.H.useMemo(e,t)};ne.useOptimistic=function(e,t){return Pe.H.useOptimistic(e,t)};ne.useReducer=function(e,t,r){return Pe.H.useReducer(e,t,r)};ne.useRef=function(e){return Pe.H.useRef(e)};ne.useState=function(e){return Pe.H.useState(e)};ne.useSyncExternalStore=function(e,t,r){return Pe.H.useSyncExternalStore(e,t,r)};ne.useTransition=function(){return Pe.H.useTransition()};ne.version="19.2.5";ZC.exports=ne;var g=ZC.exports;const m=wy(g),Y8=w8({__proto__:null,default:m},[g]);var aT={exports:{}},Lf={},lT={exports:{}},iT={};/**
|
|
11
11
|
* @license React
|
|
12
12
|
* scheduler.production.js
|
|
13
13
|
*
|
|
@@ -23,7 +23,7 @@ var J6=Object.defineProperty;var e8=(e,t,r)=>t in e?J6(e,t,{enumerable:!0,config
|
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the MIT license found in the
|
|
25
25
|
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var W8=g;function sT(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}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 ca(){}var jt={d:{f:ca,r:function(){throw Error(sT(522))},D:ca,C:ca,L:ca,m:ca,X:ca,S:ca,M:ca},p:0,findDOMNode:null},X8=Symbol.for("react.portal");function Z8(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:X8,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}var vs=W8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Mf(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=jt;Gt.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(sT(299));return Z8(e,t,null,r)};Gt.flushSync=function(e){var t=vs.T,r=jt.p;try{if(vs.T=null,jt.p=2,e)return e()}finally{vs.T=t,jt.p=r,jt.d.f()}};Gt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,jt.d.C(e,t))};Gt.prefetchDNS=function(e){typeof e=="string"&&jt.d.D(e)};Gt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var r=t.as,n=Mf(r,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,l=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;r==="style"?jt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:n,integrity:a,fetchPriority:l}):r==="script"&&jt.d.X(e,{crossOrigin:n,integrity:a,fetchPriority:l,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Gt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var r=Mf(t.as,t.crossOrigin);jt.d.M(e,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&jt.d.M(e)};Gt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var r=t.as,n=Mf(r,t.crossOrigin);jt.d.L(e,r,{crossOrigin:n,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})}};Gt.preloadModule=function(e,t){if(typeof e=="string")if(t){var r=Mf(t.as,t.crossOrigin);jt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else jt.d.m(e)};Gt.requestFormReset=function(e){jt.d.r(e)};Gt.unstable_batchedUpdates=function(e,t){return e(t)};Gt.useFormState=function(e,t,r){return vs.H.useFormState(e,t,r)};Gt.useFormStatus=function(){return vs.H.useHostTransitionStatus()};Gt.version="19.2.
|
|
26
|
+
*/var W8=g;function sT(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}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 ca(){}var jt={d:{f:ca,r:function(){throw Error(sT(522))},D:ca,C:ca,L:ca,m:ca,X:ca,S:ca,M:ca},p:0,findDOMNode:null},X8=Symbol.for("react.portal");function Z8(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:X8,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}var vs=W8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Mf(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=jt;Gt.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(sT(299));return Z8(e,t,null,r)};Gt.flushSync=function(e){var t=vs.T,r=jt.p;try{if(vs.T=null,jt.p=2,e)return e()}finally{vs.T=t,jt.p=r,jt.d.f()}};Gt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,jt.d.C(e,t))};Gt.prefetchDNS=function(e){typeof e=="string"&&jt.d.D(e)};Gt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var r=t.as,n=Mf(r,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,l=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;r==="style"?jt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:n,integrity:a,fetchPriority:l}):r==="script"&&jt.d.X(e,{crossOrigin:n,integrity:a,fetchPriority:l,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Gt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var r=Mf(t.as,t.crossOrigin);jt.d.M(e,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&jt.d.M(e)};Gt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var r=t.as,n=Mf(r,t.crossOrigin);jt.d.L(e,r,{crossOrigin:n,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})}};Gt.preloadModule=function(e,t){if(typeof e=="string")if(t){var r=Mf(t.as,t.crossOrigin);jt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else jt.d.m(e)};Gt.requestFormReset=function(e){jt.d.r(e)};Gt.unstable_batchedUpdates=function(e,t){return e(t)};Gt.useFormState=function(e,t,r){return vs.H.useFormState(e,t,r)};Gt.useFormStatus=function(){return vs.H.useHostTransitionStatus()};Gt.version="19.2.5";function uT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(uT)}catch(e){console.error(e)}}uT(),oT.exports=Gt;var bo=oT.exports;const cT=wy(bo);/**
|
|
27
27
|
* @license React
|
|
28
28
|
* react-dom-client.production.js
|
|
29
29
|
*
|
|
@@ -39,7 +39,7 @@ var J6=Object.defineProperty;var e8=(e,t,r)=>t in e?J6(e,t,{enumerable:!0,config
|
|
|
39
39
|
`+s[n].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=n&&0<=a);break}}}finally{Jp=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?sl(r):""}function n7(e,t){switch(e.tag){case 26:case 27:case 5:return sl(e.type);case 16:return sl("Lazy");case 13:return e.child!==t&&t!==null?sl("Suspense Fallback"):sl("Suspense");case 19:return sl("SuspenseList");case 0:case 15:return eh(e.type,!1);case 11:return eh(e.type.render,!1);case 1:return eh(e.type,!0);case 31:return sl("Activity");default:return""}}function zv(e){try{var t="",r=null;do t+=n7(e,r),r=e,e=e.return;while(e);return t}catch(n){return`
|
|
40
40
|
Error generating stack: `+n.message+`
|
|
41
41
|
`+n.stack}}var mm=Object.prototype.hasOwnProperty,Fy=pt.unstable_scheduleCallback,th=pt.unstable_cancelCallback,a7=pt.unstable_shouldYield,l7=pt.unstable_requestPaint,pr=pt.unstable_now,i7=pt.unstable_getCurrentPriorityLevel,bT=pt.unstable_ImmediatePriority,vT=pt.unstable_UserBlockingPriority,Ad=pt.unstable_NormalPriority,o7=pt.unstable_LowPriority,ET=pt.unstable_IdlePriority,s7=pt.log,u7=pt.unstable_setDisableYieldValue,yu=null,hr=null;function Ta(e){if(typeof s7=="function"&&u7(e),hr&&typeof hr.setStrictMode=="function")try{hr.setStrictMode(yu,e)}catch{}}var gr=Math.clz32?Math.clz32:f7,c7=Math.log,d7=Math.LN2;function f7(e){return e>>>=0,e===0?32:31-(c7(e)/d7|0)|0}var Xu=256,Zu=262144,Qu=4194304;function ul(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 Ff(e,t,r){var n=e.pendingLanes;if(n===0)return 0;var a=0,l=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var o=n&134217727;return o!==0?(n=o&~l,n!==0?a=ul(n):(i&=o,i!==0?a=ul(i):r||(r=o&~e,r!==0&&(a=ul(r))))):(o=n&~l,o!==0?a=ul(o):i!==0?a=ul(i):r||(r=n&~e,r!==0&&(a=ul(r)))),a===0?0:t!==0&&t!==a&&!(t&l)&&(l=a&-a,r=t&-t,l>=r||l===32&&(r&4194048)!==0)?t:a}function bu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function p7(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 ST(){var e=Qu;return Qu<<=1,!(Qu&62914560)&&(Qu=4194304),e}function rh(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function vu(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function h7(e,t,r,n,a,l){var i=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var o=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(r=i&~r;0<r;){var c=31-gr(r),d=1<<c;o[c]=0,s[c]=-1;var f=u[c];if(f!==null)for(u[c]=null,c=0;c<f.length;c++){var p=f[c];p!==null&&(p.lane&=-536870913)}r&=~d}n!==0&&xT(e,n,0),l!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=l&~(i&~t))}function xT(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-gr(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|r&261930}function $T(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-gr(r),a=1<<n;a&t|e[n]&t&&(e[n]|=t),r&=~a}}function _T(e,t){var r=t&-t;return r=r&42?1:By(r),r&(e.suspendedLanes|t)?0:r}function By(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 Py(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function CT(){var e=_e.p;return e!==0?e:(e=window.event,e===void 0?32:q2(e.type))}function Hv(e,t){var r=_e.p;try{return _e.p=e,t()}finally{_e.p=r}}var Ya=Math.random().toString(36).slice(2),$t="__reactFiber$"+Ya,rr="__reactProps$"+Ya,vo="__reactContainer$"+Ya,ym="__reactEvents$"+Ya,g7="__reactListeners$"+Ya,m7="__reactHandles$"+Ya,Uv="__reactResources$"+Ya,Eu="__reactMarker$"+Ya;function Iy(e){delete e[$t],delete e[rr],delete e[ym],delete e[g7],delete e[m7]}function hi(e){var t=e[$t];if(t)return t;for(var r=e.parentNode;r;){if(t=r[vo]||r[$t]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=WE(e);e!==null;){if(r=e[$t])return r;e=WE(e)}return t}e=r,r=e.parentNode}return null}function Eo(e){if(e=e[$t]||e[vo]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function us(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(j(33))}function Ai(e){var t=e[Uv];return t||(t=e[Uv]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function mt(e){e[Eu]=!0}var TT=new Set,wT={};function zl(e,t){Ui(e,t),Ui(e+"Capture",t)}function Ui(e,t){for(wT[e]=t,e=0;e<t.length;e++)TT.add(t[e])}var y7=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]*$"),jv={},Kv={};function b7(e){return mm.call(Kv,e)?!0:mm.call(jv,e)?!1:y7.test(e)?Kv[e]=!0:(jv[e]=!0,!1)}function Kc(e,t,r){if(b7(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function Ju(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function Dn(e,t,r,n){if(n===null)e.removeAttribute(r);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+n)}}function Ar(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function AT(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function v7(e,t,r){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){r=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bm(e){if(!e._valueTracker){var t=AT(e)?"checked":"value";e._valueTracker=v7(e,t,""+e[t])}}function OT(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=AT(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Od(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var E7=/[\n"\\]/g;function Nr(e){return e.replace(E7,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function vm(e,t,r,n,a,l,i,o){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ar(t)):e.value!==""+Ar(t)&&(e.value=""+Ar(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?Em(e,i,Ar(t)):r!=null?Em(e,i,Ar(r)):n!=null&&e.removeAttribute("value"),a==null&&l!=null&&(e.defaultChecked=!!l),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+Ar(o):e.removeAttribute("name")}function DT(e,t,r,n,a,l,i,o){if(l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.type=l),t!=null||r!=null){if(!(l!=="submit"&&l!=="reset"||t!=null)){bm(e);return}r=r!=null?""+Ar(r):"",t=t!=null?""+Ar(t):r,o||t===e.value||(e.value=t),e.defaultValue=t}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=o?e.checked:!!n,e.defaultChecked=!!n,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),bm(e)}function Em(e,t,r){t==="number"&&Od(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function Oi(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Ar(r),t=null,a=0;a<e.length;a++){if(e[a].value===r){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function RT(e,t,r){if(t!=null&&(t=""+Ar(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+Ar(r):""}function NT(e,t,r,n){if(t==null){if(n!=null){if(r!=null)throw Error(j(92));if(ss(n)){if(1<n.length)throw Error(j(93));n=n[0]}r=n}r==null&&(r=""),t=r}r=Ar(t),e.defaultValue=r,n=e.textContent,n===r&&n!==""&&n!==null&&(e.value=n),bm(e)}function ji(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var S7=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 Gv(e,t,r){var n=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,r):typeof r!="number"||r===0||S7.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function LT(e,t,r){if(t!=null&&typeof t!="object")throw Error(j(62));if(e=e.style,r!=null){for(var n in r)!r.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var a in t)n=t[a],t.hasOwnProperty(a)&&r[a]!==n&&Gv(e,a,n)}else for(var l in t)t.hasOwnProperty(l)&&Gv(e,l,t[l])}function ky(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 x7=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"]]),$7=/^[\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 Gc(e){return $7.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Vn(){}var Sm=null;function zy(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gi=null,Di=null;function Vv(e){var t=Eo(e);if(t&&(e=t.stateNode)){var r=e[rr]||null;e:switch(e=t.stateNode,t.type){case"input":if(vm(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+Nr(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var a=n[rr]||null;if(!a)throw Error(j(90));vm(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<r.length;t++)n=r[t],n.form===e.form&&OT(n)}break e;case"textarea":RT(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&Oi(e,!!r.multiple,t,!1)}}}var nh=!1;function MT(e,t,r){if(nh)return e(t,r);nh=!0;try{var n=e(t);return n}finally{if(nh=!1,(gi!==null||Di!==null)&&(Yf(),gi&&(t=gi,e=Di,Di=gi=null,Vv(t),e)))for(t=0;t<e.length;t++)Vv(e[t])}}function ks(e,t){var r=e.stateNode;if(r===null)return null;var n=r[rr]||null;if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(j(231,t,typeof r));return r}var Jn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xm=!1;if(Jn)try{var Ho={};Object.defineProperty(Ho,"passive",{get:function(){xm=!0}}),window.addEventListener("test",Ho,Ho),window.removeEventListener("test",Ho,Ho)}catch{xm=!1}var wa=null,Hy=null,Vc=null;function FT(){if(Vc)return Vc;var e,t=Hy,r=t.length,n,a="value"in wa?wa.value:wa.textContent,l=a.length;for(e=0;e<r&&t[e]===a[e];e++);var i=r-e;for(n=1;n<=i&&t[r-n]===a[l-n];n++);return Vc=a.slice(e,1<n?1-n:void 0)}function Yc(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 ec(){return!0}function Yv(){return!1}function lr(e){function t(r,n,a,l,i){this._reactName=r,this._targetInst=a,this.type=n,this.nativeEvent=l,this.target=i,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(r=e[o],this[o]=r?r(l):l[o]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?ec:Yv,this.isPropagationStopped=Yv,this}return Ie(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=ec)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=ec)},persist:function(){},isPersistent:ec}),t}var Hl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bf=lr(Hl),Su=Ie({},Hl,{view:0,detail:0}),_7=lr(Su),ah,lh,Uo,Pf=Ie({},Su,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Uy,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!==Uo&&(Uo&&e.type==="mousemove"?(ah=e.screenX-Uo.screenX,lh=e.screenY-Uo.screenY):lh=ah=0,Uo=e),ah)},movementY:function(e){return"movementY"in e?e.movementY:lh}}),qv=lr(Pf),C7=Ie({},Pf,{dataTransfer:0}),T7=lr(C7),w7=Ie({},Su,{relatedTarget:0}),ih=lr(w7),A7=Ie({},Hl,{animationName:0,elapsedTime:0,pseudoElement:0}),O7=lr(A7),D7=Ie({},Hl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),R7=lr(D7),N7=Ie({},Hl,{data:0}),Wv=lr(N7),L7={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},M7={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"},F7={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function B7(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=F7[e])?!!t[e]:!1}function Uy(){return B7}var P7=Ie({},Su,{key:function(e){if(e.key){var t=L7[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Yc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?M7[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Uy,charCode:function(e){return e.type==="keypress"?Yc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Yc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),I7=lr(P7),k7=Ie({},Pf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xv=lr(k7),z7=Ie({},Su,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Uy}),H7=lr(z7),U7=Ie({},Hl,{propertyName:0,elapsedTime:0,pseudoElement:0}),j7=lr(U7),K7=Ie({},Pf,{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}),G7=lr(K7),V7=Ie({},Hl,{newState:0,oldState:0}),Y7=lr(V7),q7=[9,13,27,32],jy=Jn&&"CompositionEvent"in window,Es=null;Jn&&"documentMode"in document&&(Es=document.documentMode);var W7=Jn&&"TextEvent"in window&&!Es,BT=Jn&&(!jy||Es&&8<Es&&11>=Es),Zv=" ",Qv=!1;function PT(e,t){switch(e){case"keyup":return q7.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function IT(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mi=!1;function X7(e,t){switch(e){case"compositionend":return IT(t);case"keypress":return t.which!==32?null:(Qv=!0,Zv);case"textInput":return e=t.data,e===Zv&&Qv?null:e;default:return null}}function Z7(e,t){if(mi)return e==="compositionend"||!jy&&PT(e,t)?(e=FT(),Vc=Hy=wa=null,mi=!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 BT&&t.locale!=="ko"?null:t.data;default:return null}}var Q7={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 Jv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Q7[e.type]:t==="textarea"}function kT(e,t,r,n){gi?Di?Di.push(n):Di=[n]:gi=n,t=Yd(t,"onChange"),0<t.length&&(r=new Bf("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Ss=null,zs=null;function J7(e){M2(e,0)}function If(e){var t=us(e);if(OT(t))return e}function eE(e,t){if(e==="change")return t}var zT=!1;if(Jn){var oh;if(Jn){var sh="oninput"in document;if(!sh){var tE=document.createElement("div");tE.setAttribute("oninput","return;"),sh=typeof tE.oninput=="function"}oh=sh}else oh=!1;zT=oh&&(!document.documentMode||9<document.documentMode)}function rE(){Ss&&(Ss.detachEvent("onpropertychange",HT),zs=Ss=null)}function HT(e){if(e.propertyName==="value"&&If(zs)){var t=[];kT(t,zs,e,zy(e)),MT(J7,t)}}function e9(e,t,r){e==="focusin"?(rE(),Ss=t,zs=r,Ss.attachEvent("onpropertychange",HT)):e==="focusout"&&rE()}function t9(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return If(zs)}function r9(e,t){if(e==="click")return If(t)}function n9(e,t){if(e==="input"||e==="change")return If(t)}function a9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var br=typeof Object.is=="function"?Object.is:a9;function Hs(e,t){if(br(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var a=r[n];if(!mm.call(t,a)||!br(e[a],t[a]))return!1}return!0}function nE(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function aE(e,t){var r=nE(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=nE(r)}}function UT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?UT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jT(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Od(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Od(e.document)}return t}function Ky(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 l9=Jn&&"documentMode"in document&&11>=document.documentMode,yi=null,$m=null,xs=null,_m=!1;function lE(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;_m||yi==null||yi!==Od(n)||(n=yi,"selectionStart"in n&&Ky(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),xs&&Hs(xs,n)||(xs=n,n=Yd($m,"onSelect"),0<n.length&&(t=new Bf("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=yi)))}function el(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var bi={animationend:el("Animation","AnimationEnd"),animationiteration:el("Animation","AnimationIteration"),animationstart:el("Animation","AnimationStart"),transitionrun:el("Transition","TransitionRun"),transitionstart:el("Transition","TransitionStart"),transitioncancel:el("Transition","TransitionCancel"),transitionend:el("Transition","TransitionEnd")},uh={},KT={};Jn&&(KT=document.createElement("div").style,"AnimationEvent"in window||(delete bi.animationend.animation,delete bi.animationiteration.animation,delete bi.animationstart.animation),"TransitionEvent"in window||delete bi.transitionend.transition);function Ul(e){if(uh[e])return uh[e];if(!bi[e])return e;var t=bi[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in KT)return uh[e]=t[r];return e}var GT=Ul("animationend"),VT=Ul("animationiteration"),YT=Ul("animationstart"),i9=Ul("transitionrun"),o9=Ul("transitionstart"),s9=Ul("transitioncancel"),qT=Ul("transitionend"),WT=new Map,Cm="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(" ");Cm.push("scrollEnd");function en(e,t){WT.set(e,t),zl(t,[e])}var Dd=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!==null&&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)},Tr=[],vi=0,Gy=0;function kf(){for(var e=vi,t=Gy=vi=0;t<e;){var r=Tr[t];Tr[t++]=null;var n=Tr[t];Tr[t++]=null;var a=Tr[t];Tr[t++]=null;var l=Tr[t];if(Tr[t++]=null,n!==null&&a!==null){var i=n.pending;i===null?a.next=a:(a.next=i.next,i.next=a),n.pending=a}l!==0&&XT(r,a,l)}}function zf(e,t,r,n){Tr[vi++]=e,Tr[vi++]=t,Tr[vi++]=r,Tr[vi++]=n,Gy|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Vy(e,t,r,n){return zf(e,t,r,n),Rd(e)}function jl(e,t){return zf(e,null,null,t),Rd(e)}function XT(e,t,r){e.lanes|=r;var n=e.alternate;n!==null&&(n.lanes|=r);for(var a=!1,l=e.return;l!==null;)l.childLanes|=r,n=l.alternate,n!==null&&(n.childLanes|=r),l.tag===22&&(e=l.stateNode,e===null||e._visibility&1||(a=!0)),e=l,l=l.return;return e.tag===3?(l=e.stateNode,a&&t!==null&&(a=31-gr(r),e=l.hiddenUpdates,n=e[a],n===null?e[a]=[t]:n.push(t),t.lane=r|536870912),l):null}function Rd(e){if(50<Rs)throw Rs=0,Vm=null,Error(j(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ei={};function u9(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dr(e,t,r,n){return new u9(e,t,r,n)}function Yy(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wn(e,t){var r=e.alternate;return r===null?(r=dr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function ZT(e,t){e.flags&=65011714;var r=e.alternate;return r===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=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function qc(e,t,r,n,a,l){var i=0;if(n=e,typeof e=="function")Yy(e)&&(i=1);else if(typeof e=="string")i=hN(e,r,xn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case fm:return e=dr(31,r,t,a),e.elementType=fm,e.lanes=l,e;case fi:return Sl(r.children,a,l,t);case mT:i=8,a|=24;break;case um:return e=dr(12,r,t,a|2),e.elementType=um,e.lanes=l,e;case cm:return e=dr(13,r,t,a),e.elementType=cm,e.lanes=l,e;case dm:return e=dr(19,r,t,a),e.elementType=dm,e.lanes=l,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Gn:i=10;break e;case yT:i=9;break e;case Ly:i=11;break e;case My:i=14;break e;case ga:i=16,n=null;break e}i=29,r=Error(j(130,e===null?"null":typeof e,"")),n=null}return t=dr(i,r,t,a),t.elementType=e,t.type=n,t.lanes=l,t}function Sl(e,t,r,n){return e=dr(7,e,n,t),e.lanes=r,e}function ch(e,t,r){return e=dr(6,e,null,t),e.lanes=r,e}function QT(e){var t=dr(18,null,null,0);return t.stateNode=e,t}function dh(e,t,r){return t=dr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var iE=new WeakMap;function Lr(e,t){if(typeof e=="object"&&e!==null){var r=iE.get(e);return r!==void 0?r:(t={value:e,source:t,stack:zv(t)},iE.set(e,t),t)}return{value:e,source:t,stack:zv(t)}}var Si=[],xi=0,Nd=null,Us=0,Or=[],Dr=0,Ha=null,hn=1,gn="";function Hn(e,t){Si[xi++]=Us,Si[xi++]=Nd,Nd=e,Us=t}function JT(e,t,r){Or[Dr++]=hn,Or[Dr++]=gn,Or[Dr++]=Ha,Ha=e;var n=hn;e=gn;var a=32-gr(n)-1;n&=~(1<<a),r+=1;var l=32-gr(t)+a;if(30<l){var i=a-a%5;l=(n&(1<<i)-1).toString(32),n>>=i,a-=i,hn=1<<32-gr(t)+a|r<<a|n,gn=l+e}else hn=1<<l|r<<a|n,gn=e}function qy(e){e.return!==null&&(Hn(e,1),JT(e,1,0))}function Wy(e){for(;e===Nd;)Nd=Si[--xi],Si[xi]=null,Us=Si[--xi],Si[xi]=null;for(;e===Ha;)Ha=Or[--Dr],Or[Dr]=null,gn=Or[--Dr],Or[Dr]=null,hn=Or[--Dr],Or[Dr]=null}function ew(e,t){Or[Dr++]=hn,Or[Dr++]=gn,Or[Dr++]=Ha,hn=t.id,gn=t.overflow,Ha=e}var _t=null,Be=null,ge=!1,La=null,Mr=!1,Tm=Error(j(519));function Ua(e){var t=Error(j(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw js(Lr(t,e)),Tm}function oE(e){var t=e.stateNode,r=e.type,n=e.memoizedProps;switch(t[$t]=e,t[rr]=n,r){case"dialog":ce("cancel",t),ce("close",t);break;case"iframe":case"object":case"embed":ce("load",t);break;case"video":case"audio":for(r=0;r<Ys.length;r++)ce(Ys[r],t);break;case"source":ce("error",t);break;case"img":case"image":case"link":ce("error",t),ce("load",t);break;case"details":ce("toggle",t);break;case"input":ce("invalid",t),DT(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":ce("invalid",t);break;case"textarea":ce("invalid",t),NT(t,n.value,n.defaultValue,n.children)}r=n.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||n.suppressHydrationWarning===!0||B2(t.textContent,r)?(n.popover!=null&&(ce("beforetoggle",t),ce("toggle",t)),n.onScroll!=null&&ce("scroll",t),n.onScrollEnd!=null&&ce("scrollend",t),n.onClick!=null&&(t.onclick=Vn),t=!0):t=!1,t||Ua(e,!0)}function sE(e){for(_t=e.return;_t;)switch(_t.tag){case 5:case 31:case 13:Mr=!1;return;case 27:case 3:Mr=!0;return;default:_t=_t.return}}function ei(e){if(e!==_t)return!1;if(!ge)return sE(e),ge=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||Zm(e.type,e.memoizedProps)),r=!r),r&&Be&&Ua(e),sE(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));Be=qE(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));Be=qE(e)}else t===27?(t=Be,qa(e.type)?(e=t0,t0=null,Be=e):Be=t):Be=_t?Pr(e.stateNode.nextSibling):null;return!0}function Ol(){Be=_t=null,ge=!1}function fh(){var e=La;return e!==null&&(Zt===null?Zt=e:Zt.push.apply(Zt,e),La=null),e}function js(e){La===null?La=[e]:La.push(e)}var wm=_n(null),Kl=null,Yn=null;function Sa(e,t,r){Le(wm,t._currentValue),t._currentValue=r}function Xn(e){e._currentValue=wm.current,yt(wm)}function Am(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Om(e,t,r,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var l=a.dependencies;if(l!==null){var i=a.child;l=l.firstContext;e:for(;l!==null;){var o=l;l=a;for(var s=0;s<t.length;s++)if(o.context===t[s]){l.lanes|=r,o=l.alternate,o!==null&&(o.lanes|=r),Am(l.return,r,e),n||(i=null);break e}l=o.next}}else if(a.tag===18){if(i=a.return,i===null)throw Error(j(341));i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),Am(i,r,e),i=null}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===e){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}}function So(e,t,r,n){e=null;for(var a=t,l=!1;a!==null;){if(!l){if(a.flags&524288)l=!0;else if(a.flags&262144)break}if(a.tag===10){var i=a.alternate;if(i===null)throw Error(j(387));if(i=i.memoizedProps,i!==null){var o=a.type;br(a.pendingProps.value,i.value)||(e!==null?e.push(o):e=[o])}}else if(a===Cd.current){if(i=a.alternate,i===null)throw Error(j(387));i.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Ws):e=[Ws])}a=a.return}e!==null&&Om(t,e,r,n),t.flags|=262144}function Ld(e){for(e=e.firstContext;e!==null;){if(!br(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Dl(e){Kl=e,Yn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ct(e){return tw(Kl,e)}function tc(e,t){return Kl===null&&Dl(e),tw(e,t)}function tw(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},Yn===null){if(e===null)throw Error(j(308));Yn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Yn=Yn.next=t;return r}var c9=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},d9=pt.unstable_scheduleCallback,f9=pt.unstable_NormalPriority,nt={$$typeof:Gn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Xy(){return{controller:new c9,data:new Map,refCount:0}}function xu(e){e.refCount--,e.refCount===0&&d9(f9,function(){e.controller.abort()})}var $s=null,Dm=0,Ki=0,Ri=null;function p9(e,t){if($s===null){var r=$s=[];Dm=0,Ki=Sb(),Ri={status:"pending",value:void 0,then:function(n){r.push(n)}}}return Dm++,t.then(uE,uE),t}function uE(){if(--Dm===0&&$s!==null){Ri!==null&&(Ri.status="fulfilled");var e=$s;$s=null,Ki=0,Ri=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function h9(e,t){var r=[],n={status:"pending",value:null,reason:null,then:function(a){r.push(a)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var a=0;a<r.length;a++)(0,r[a])(t)},function(a){for(n.status="rejected",n.reason=a,a=0;a<r.length;a++)(0,r[a])(void 0)}),n}var cE=te.S;te.S=function(e,t){g2=pr(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&p9(e,t),cE!==null&&cE(e,t)};var xl=_n(null);function Zy(){var e=xl.current;return e!==null?e:Re.pooledCache}function Wc(e,t){t===null?Le(xl,xl.current):Le(xl,t.pool)}function rw(){var e=Zy();return e===null?null:{parent:nt._currentValue,pool:e}}var xo=Error(j(460)),Qy=Error(j(474)),Hf=Error(j(542)),Md={then:function(){}};function dE(e){return e=e.status,e==="fulfilled"||e==="rejected"}function nw(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(Vn,Vn),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,pE(e),e;default:if(typeof t.status=="string")t.then(Vn,Vn);else{if(e=Re,e!==null&&100<e.shellSuspendCounter)throw Error(j(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=n}},function(n){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,pE(e),e}throw $l=t,xo}}function cl(e){try{var t=e._init;return t(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?($l=r,xo):r}}var $l=null;function fE(){if($l===null)throw Error(j(459));var e=$l;return $l=null,e}function pE(e){if(e===xo||e===Hf)throw Error(j(483))}var Ni=null,Ks=0;function rc(e){var t=Ks;return Ks+=1,Ni===null&&(Ni=[]),nw(Ni,e,t)}function jo(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function nc(e,t){throw t.$$typeof===e7?Error(j(525)):(e=Object.prototype.toString.call(t),Error(j(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function aw(e){function t(h,y){if(e){var E=h.deletions;E===null?(h.deletions=[y],h.flags|=16):E.push(y)}}function r(h,y){if(!e)return null;for(;y!==null;)t(h,y),y=y.sibling;return null}function n(h){for(var y=new Map;h!==null;)h.key!==null?y.set(h.key,h):y.set(h.index,h),h=h.sibling;return y}function a(h,y){return h=Wn(h,y),h.index=0,h.sibling=null,h}function l(h,y,E){return h.index=E,e?(E=h.alternate,E!==null?(E=E.index,E<y?(h.flags|=67108866,y):E):(h.flags|=67108866,y)):(h.flags|=1048576,y)}function i(h){return e&&h.alternate===null&&(h.flags|=67108866),h}function o(h,y,E,x){return y===null||y.tag!==6?(y=ch(E,h.mode,x),y.return=h,y):(y=a(y,E),y.return=h,y)}function s(h,y,E,x){var T=E.type;return T===fi?c(h,y,E.props.children,x,E.key):y!==null&&(y.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===ga&&cl(T)===y.type)?(y=a(y,E.props),jo(y,E),y.return=h,y):(y=qc(E.type,E.key,E.props,null,h.mode,x),jo(y,E),y.return=h,y)}function u(h,y,E,x){return y===null||y.tag!==4||y.stateNode.containerInfo!==E.containerInfo||y.stateNode.implementation!==E.implementation?(y=dh(E,h.mode,x),y.return=h,y):(y=a(y,E.children||[]),y.return=h,y)}function c(h,y,E,x,T){return y===null||y.tag!==7?(y=Sl(E,h.mode,x,T),y.return=h,y):(y=a(y,E),y.return=h,y)}function d(h,y,E){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=ch(""+y,h.mode,E),y.return=h,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Wu:return E=qc(y.type,y.key,y.props,null,h.mode,E),jo(E,y),E.return=h,E;case os:return y=dh(y,h.mode,E),y.return=h,y;case ga:return y=cl(y),d(h,y,E)}if(ss(y)||zo(y))return y=Sl(y,h.mode,E,null),y.return=h,y;if(typeof y.then=="function")return d(h,rc(y),E);if(y.$$typeof===Gn)return d(h,tc(h,y),E);nc(h,y)}return null}function f(h,y,E,x){var T=y!==null?y.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return T!==null?null:o(h,y,""+E,x);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Wu:return E.key===T?s(h,y,E,x):null;case os:return E.key===T?u(h,y,E,x):null;case ga:return E=cl(E),f(h,y,E,x)}if(ss(E)||zo(E))return T!==null?null:c(h,y,E,x,null);if(typeof E.then=="function")return f(h,y,rc(E),x);if(E.$$typeof===Gn)return f(h,y,tc(h,E),x);nc(h,E)}return null}function p(h,y,E,x,T){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return h=h.get(E)||null,o(y,h,""+x,T);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Wu:return h=h.get(x.key===null?E:x.key)||null,s(y,h,x,T);case os:return h=h.get(x.key===null?E:x.key)||null,u(y,h,x,T);case ga:return x=cl(x),p(h,y,E,x,T)}if(ss(x)||zo(x))return h=h.get(E)||null,c(y,h,x,T,null);if(typeof x.then=="function")return p(h,y,E,rc(x),T);if(x.$$typeof===Gn)return p(h,y,E,tc(y,x),T);nc(y,x)}return null}function b(h,y,E,x){for(var T=null,_=null,C=y,O=y=0,D=null;C!==null&&O<E.length;O++){C.index>O?(D=C,C=null):D=C.sibling;var L=f(h,C,E[O],x);if(L===null){C===null&&(C=D);break}e&&C&&L.alternate===null&&t(h,C),y=l(L,y,O),_===null?T=L:_.sibling=L,_=L,C=D}if(O===E.length)return r(h,C),ge&&Hn(h,O),T;if(C===null){for(;O<E.length;O++)C=d(h,E[O],x),C!==null&&(y=l(C,y,O),_===null?T=C:_.sibling=C,_=C);return ge&&Hn(h,O),T}for(C=n(C);O<E.length;O++)D=p(C,h,O,E[O],x),D!==null&&(e&&D.alternate!==null&&C.delete(D.key===null?O:D.key),y=l(D,y,O),_===null?T=D:_.sibling=D,_=D);return e&&C.forEach(function(w){return t(h,w)}),ge&&Hn(h,O),T}function v(h,y,E,x){if(E==null)throw Error(j(151));for(var T=null,_=null,C=y,O=y=0,D=null,L=E.next();C!==null&&!L.done;O++,L=E.next()){C.index>O?(D=C,C=null):D=C.sibling;var w=f(h,C,L.value,x);if(w===null){C===null&&(C=D);break}e&&C&&w.alternate===null&&t(h,C),y=l(w,y,O),_===null?T=w:_.sibling=w,_=w,C=D}if(L.done)return r(h,C),ge&&Hn(h,O),T;if(C===null){for(;!L.done;O++,L=E.next())L=d(h,L.value,x),L!==null&&(y=l(L,y,O),_===null?T=L:_.sibling=L,_=L);return ge&&Hn(h,O),T}for(C=n(C);!L.done;O++,L=E.next())L=p(C,h,O,L.value,x),L!==null&&(e&&L.alternate!==null&&C.delete(L.key===null?O:L.key),y=l(L,y,O),_===null?T=L:_.sibling=L,_=L);return e&&C.forEach(function(I){return t(h,I)}),ge&&Hn(h,O),T}function S(h,y,E,x){if(typeof E=="object"&&E!==null&&E.type===fi&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case Wu:e:{for(var T=E.key;y!==null;){if(y.key===T){if(T=E.type,T===fi){if(y.tag===7){r(h,y.sibling),x=a(y,E.props.children),x.return=h,h=x;break e}}else if(y.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===ga&&cl(T)===y.type){r(h,y.sibling),x=a(y,E.props),jo(x,E),x.return=h,h=x;break e}r(h,y);break}else t(h,y);y=y.sibling}E.type===fi?(x=Sl(E.props.children,h.mode,x,E.key),x.return=h,h=x):(x=qc(E.type,E.key,E.props,null,h.mode,x),jo(x,E),x.return=h,h=x)}return i(h);case os:e:{for(T=E.key;y!==null;){if(y.key===T)if(y.tag===4&&y.stateNode.containerInfo===E.containerInfo&&y.stateNode.implementation===E.implementation){r(h,y.sibling),x=a(y,E.children||[]),x.return=h,h=x;break e}else{r(h,y);break}else t(h,y);y=y.sibling}x=dh(E,h.mode,x),x.return=h,h=x}return i(h);case ga:return E=cl(E),S(h,y,E,x)}if(ss(E))return b(h,y,E,x);if(zo(E)){if(T=zo(E),typeof T!="function")throw Error(j(150));return E=T.call(E),v(h,y,E,x)}if(typeof E.then=="function")return S(h,y,rc(E),x);if(E.$$typeof===Gn)return S(h,y,tc(h,E),x);nc(h,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,y!==null&&y.tag===6?(r(h,y.sibling),x=a(y,E),x.return=h,h=x):(r(h,y),x=ch(E,h.mode,x),x.return=h,h=x),i(h)):r(h,y)}return function(h,y,E,x){try{Ks=0;var T=S(h,y,E,x);return Ni=null,T}catch(C){if(C===xo||C===Hf)throw C;var _=dr(29,C,null,h.mode);return _.lanes=x,_.return=h,_}finally{}}}var Rl=aw(!0),lw=aw(!1),ma=!1;function Jy(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Rm(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 Ma(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Fa(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,$e&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=Rd(e),XT(e,null,r),t}return zf(e,n,t,r),Rd(e)}function _s(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,$T(e,r)}}function ph(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,l=null;if(r=r.firstBaseUpdate,r!==null){do{var i={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};l===null?a=l=i:l=l.next=i,r=r.next}while(r!==null);l===null?a=l=t:l=l.next=t}else a=l=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:l,shared:n.shared,callbacks:n.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var Nm=!1;function Cs(){if(Nm){var e=Ri;if(e!==null)throw e}}function Ts(e,t,r,n){Nm=!1;var a=e.updateQueue;ma=!1;var l=a.firstBaseUpdate,i=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var s=o,u=s.next;s.next=null,i===null?l=u:i.next=u,i=s;var c=e.alternate;c!==null&&(c=c.updateQueue,o=c.lastBaseUpdate,o!==i&&(o===null?c.firstBaseUpdate=u:o.next=u,c.lastBaseUpdate=s))}if(l!==null){var d=a.baseState;i=0,c=u=s=null,o=l;do{var f=o.lane&-536870913,p=f!==o.lane;if(p?(fe&f)===f:(n&f)===f){f!==0&&f===Ki&&(Nm=!0),c!==null&&(c=c.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var b=e,v=o;f=t;var S=r;switch(v.tag){case 1:if(b=v.payload,typeof b=="function"){d=b.call(S,d,f);break e}d=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=v.payload,f=typeof b=="function"?b.call(S,d,f):b,f==null)break e;d=Ie({},d,f);break e;case 2:ma=!0}}f=o.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=a.callbacks,p===null?a.callbacks=[f]:p.push(f))}else p={lane:f,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(u=c=p,s=d):c=c.next=p,i|=f;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;p=o,o=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(!0);c===null&&(s=d),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=c,l===null&&(a.shared.lanes=0),Ka|=i,e.lanes=i,e.memoizedState=d}}function iw(e,t){if(typeof e!="function")throw Error(j(191,e));e.call(t)}function ow(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)iw(r[e],t)}var Gi=_n(null),Fd=_n(0);function hE(e,t){e=na,Le(Fd,e),Le(Gi,t),na=e|t.baseLanes}function Lm(){Le(Fd,na),Le(Gi,Gi.current)}function eb(){na=Fd.current,yt(Gi),yt(Fd)}var vr=_n(null),Br=null;function xa(e){var t=e.alternate;Le(Qe,Qe.current&1),Le(vr,e),Br===null&&(t===null||Gi.current!==null||t.memoizedState!==null)&&(Br=e)}function Mm(e){Le(Qe,Qe.current),Le(vr,e),Br===null&&(Br=e)}function sw(e){e.tag===22?(Le(Qe,Qe.current),Le(vr,e),Br===null&&(Br=e)):$a()}function $a(){Le(Qe,Qe.current),Le(vr,vr.current)}function cr(e){yt(vr),Br===e&&(Br=null),yt(Qe)}var Qe=_n(0);function Bd(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||Jm(r)||e0(r)))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 ea=0,ae=null,De=null,tt=null,Pd=!1,Li=!1,Nl=!1,Id=0,Gs=0,Mi=null,g9=0;function Ye(){throw Error(j(321))}function tb(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!br(e[r],t[r]))return!1;return!0}function rb(e,t,r,n,a,l){return ea=l,ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,te.H=e===null||e.memoizedState===null?kw:pb,Nl=!1,l=r(n,a),Nl=!1,Li&&(l=cw(t,r,n,a)),uw(e),l}function uw(e){te.H=Vs;var t=De!==null&&De.next!==null;if(ea=0,tt=De=ae=null,Pd=!1,Gs=0,Mi=null,t)throw Error(j(300));e===null||lt||(e=e.dependencies,e!==null&&Ld(e)&&(lt=!0))}function cw(e,t,r,n){ae=e;var a=0;do{if(Li&&(Mi=null),Gs=0,Li=!1,25<=a)throw Error(j(301));if(a+=1,tt=De=null,e.updateQueue!=null){var l=e.updateQueue;l.lastEffect=null,l.events=null,l.stores=null,l.memoCache!=null&&(l.memoCache.index=0)}te.H=zw,l=t(r,n)}while(Li);return l}function m9(){var e=te.H,t=e.useState()[0];return t=typeof t.then=="function"?$u(t):t,e=e.useState()[0],(De!==null?De.memoizedState:null)!==e&&(ae.flags|=1024),t}function nb(){var e=Id!==0;return Id=0,e}function ab(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function lb(e){if(Pd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Pd=!1}ea=0,tt=De=ae=null,Li=!1,Gs=Id=0,Mi=null}function Ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?ae.memoizedState=tt=e:tt=tt.next=e,tt}function Je(){if(De===null){var e=ae.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=tt===null?ae.memoizedState:tt.next;if(t!==null)tt=t,De=e;else{if(e===null)throw ae.alternate===null?Error(j(467)):Error(j(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},tt===null?ae.memoizedState=tt=e:tt=tt.next=e}return tt}function Uf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function $u(e){var t=Gs;return Gs+=1,Mi===null&&(Mi=[]),e=nw(Mi,e,t),t=ae,(tt===null?t.memoizedState:tt.next)===null&&(t=t.alternate,te.H=t===null||t.memoizedState===null?kw:pb),e}function jf(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return $u(e);if(e.$$typeof===Gn)return Ct(e)}throw Error(j(438,String(e)))}function ib(e){var t=null,r=ae.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var n=ae.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=Uf(),ae.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),n=0;n<e;n++)r[n]=t7;return t.index++,r}function ta(e,t){return typeof t=="function"?t(e):t}function Xc(e){var t=Je();return ob(t,De,e)}function ob(e,t,r){var n=e.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=r;var a=e.baseQueue,l=n.pending;if(l!==null){if(a!==null){var i=a.next;a.next=l.next,l.next=i}t.baseQueue=a=l,n.pending=null}if(l=e.baseState,a===null)e.memoizedState=l;else{t=a.next;var o=i=null,s=null,u=t,c=!1;do{var d=u.lane&-536870913;if(d!==u.lane?(fe&d)===d:(ea&d)===d){var f=u.revertLane;if(f===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===Ki&&(c=!0);else if((ea&f)===f){u=u.next,f===Ki&&(c=!0);continue}else d={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(o=s=d,i=l):s=s.next=d,ae.lanes|=f,Ka|=f;d=u.action,Nl&&r(l,d),l=u.hasEagerState?u.eagerState:r(l,d)}else f={lane:d,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(o=s=f,i=l):s=s.next=f,ae.lanes|=d,Ka|=d;u=u.next}while(u!==null&&u!==t);if(s===null?i=l:s.next=o,!br(l,e.memoizedState)&&(lt=!0,c&&(r=Ri,r!==null)))throw r;e.memoizedState=l,e.baseState=i,e.baseQueue=s,n.lastRenderedState=l}return a===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function hh(e){var t=Je(),r=t.queue;if(r===null)throw Error(j(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,l=t.memoizedState;if(a!==null){r.pending=null;var i=a=a.next;do l=e(l,i.action),i=i.next;while(i!==a);br(l,t.memoizedState)||(lt=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),r.lastRenderedState=l}return[l,n]}function dw(e,t,r){var n=ae,a=Je(),l=ge;if(l){if(r===void 0)throw Error(j(407));r=r()}else r=t();var i=!br((De||a).memoizedState,r);if(i&&(a.memoizedState=r,lt=!0),a=a.queue,sb(hw.bind(null,n,a,e),[e]),a.getSnapshot!==t||i||tt!==null&&tt.memoizedState.tag&1){if(n.flags|=2048,Vi(9,{destroy:void 0},pw.bind(null,n,a,r,t),null),Re===null)throw Error(j(349));l||ea&127||fw(n,t,r)}return r}function fw(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=ae.updateQueue,t===null?(t=Uf(),ae.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function pw(e,t,r,n){t.value=r,t.getSnapshot=n,gw(t)&&mw(e)}function hw(e,t,r){return r(function(){gw(t)&&mw(e)})}function gw(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!br(e,r)}catch{return!0}}function mw(e){var t=jl(e,2);t!==null&&tr(t,e,2)}function Fm(e){var t=Ht();if(typeof e=="function"){var r=e;if(e=r(),Nl){Ta(!0);try{r()}finally{Ta(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:e},t}function yw(e,t,r,n){return e.baseState=r,ob(e,De,typeof n=="function"?n:ta)}function y9(e,t,r,n,a){if(Gf(e))throw Error(j(485));if(e=t.action,e!==null){var l={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){l.listeners.push(i)}};te.T!==null?r(!0):l.isTransition=!1,n(l),r=t.pending,r===null?(l.next=t.pending=l,bw(t,l)):(l.next=r.next,t.pending=r.next=l)}}function bw(e,t){var r=t.action,n=t.payload,a=e.state;if(t.isTransition){var l=te.T,i={};te.T=i;try{var o=r(a,n),s=te.S;s!==null&&s(i,o),gE(e,t,o)}catch(u){Bm(e,t,u)}finally{l!==null&&i.types!==null&&(l.types=i.types),te.T=l}}else try{l=r(a,n),gE(e,t,l)}catch(u){Bm(e,t,u)}}function gE(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(n){mE(e,t,n)},function(n){return Bm(e,t,n)}):mE(e,t,r)}function mE(e,t,r){t.status="fulfilled",t.value=r,vw(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,bw(e,r)))}function Bm(e,t,r){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=r,vw(t),t=t.next;while(t!==n)}e.action=null}function vw(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ew(e,t){return t}function yE(e,t){if(ge){var r=Re.formState;if(r!==null){e:{var n=ae;if(ge){if(Be){t:{for(var a=Be,l=Mr;a.nodeType!==8;){if(!l){a=null;break t}if(a=Pr(a.nextSibling),a===null){a=null;break t}}l=a.data,a=l==="F!"||l==="F"?a:null}if(a){Be=Pr(a.nextSibling),n=a.data==="F!";break e}}Ua(n)}n=!1}n&&(t=r[0])}}return r=Ht(),r.memoizedState=r.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ew,lastRenderedState:t},r.queue=n,r=Bw.bind(null,ae,n),n.dispatch=r,n=Fm(!1),l=fb.bind(null,ae,!1,n.queue),n=Ht(),a={state:t,dispatch:null,action:e,pending:null},n.queue=a,r=y9.bind(null,ae,a,l,r),a.dispatch=r,n.memoizedState=e,[t,r,!1]}function bE(e){var t=Je();return Sw(t,De,e)}function Sw(e,t,r){if(t=ob(e,t,Ew)[0],e=Xc(ta)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=$u(t)}catch(i){throw i===xo?Hf:i}else n=t;t=Je();var a=t.queue,l=a.dispatch;return r!==t.memoizedState&&(ae.flags|=2048,Vi(9,{destroy:void 0},b9.bind(null,a,r),null)),[n,l,e]}function b9(e,t){e.action=t}function vE(e){var t=Je(),r=De;if(r!==null)return Sw(t,r,e);Je(),t=t.memoizedState,r=Je();var n=r.queue.dispatch;return r.memoizedState=e,[t,n,!1]}function Vi(e,t,r,n){return e={tag:e,create:r,deps:n,inst:t,next:null},t=ae.updateQueue,t===null&&(t=Uf(),ae.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function xw(){return Je().memoizedState}function Zc(e,t,r,n){var a=Ht();ae.flags|=e,a.memoizedState=Vi(1|t,{destroy:void 0},r,n===void 0?null:n)}function Kf(e,t,r,n){var a=Je();n=n===void 0?null:n;var l=a.memoizedState.inst;De!==null&&n!==null&&tb(n,De.memoizedState.deps)?a.memoizedState=Vi(t,l,r,n):(ae.flags|=e,a.memoizedState=Vi(1|t,l,r,n))}function EE(e,t){Zc(8390656,8,e,t)}function sb(e,t){Kf(2048,8,e,t)}function v9(e){ae.flags|=4;var t=ae.updateQueue;if(t===null)t=Uf(),ae.updateQueue=t,t.events=[e];else{var r=t.events;r===null?t.events=[e]:r.push(e)}}function $w(e){var t=Je().memoizedState;return v9({ref:t,nextImpl:e}),function(){if($e&2)throw Error(j(440));return t.impl.apply(void 0,arguments)}}function _w(e,t){return Kf(4,2,e,t)}function Cw(e,t){return Kf(4,4,e,t)}function Tw(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ww(e,t,r){r=r!=null?r.concat([e]):null,Kf(4,4,Tw.bind(null,t,e),r)}function ub(){}function Aw(e,t){var r=Je();t=t===void 0?null:t;var n=r.memoizedState;return t!==null&&tb(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Ow(e,t){var r=Je();t=t===void 0?null:t;var n=r.memoizedState;if(t!==null&&tb(t,n[1]))return n[0];if(n=e(),Nl){Ta(!0);try{e()}finally{Ta(!1)}}return r.memoizedState=[n,t],n}function cb(e,t,r){return r===void 0||ea&1073741824&&!(fe&261930)?e.memoizedState=t:(e.memoizedState=r,e=y2(),ae.lanes|=e,Ka|=e,r)}function Dw(e,t,r,n){return br(r,t)?r:Gi.current!==null?(e=cb(e,r,n),br(e,t)||(lt=!0),e):!(ea&42)||ea&1073741824&&!(fe&261930)?(lt=!0,e.memoizedState=r):(e=y2(),ae.lanes|=e,Ka|=e,t)}function Rw(e,t,r,n,a){var l=_e.p;_e.p=l!==0&&8>l?l:8;var i=te.T,o={};te.T=o,fb(e,!1,t,r);try{var s=a(),u=te.S;if(u!==null&&u(o,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=h9(s,n);ws(e,t,c,mr(e))}else ws(e,t,n,mr(e))}catch(d){ws(e,t,{then:function(){},status:"rejected",reason:d},mr())}finally{_e.p=l,i!==null&&o.types!==null&&(i.types=o.types),te.T=i}}function E9(){}function Pm(e,t,r,n){if(e.tag!==5)throw Error(j(476));var a=Nw(e).queue;Rw(e,a,t,El,r===null?E9:function(){return Lw(e),r(n)})}function Nw(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:El,baseState:El,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:El},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Lw(e){var t=Nw(e);t.next===null&&(t=e.alternate.memoizedState),ws(e,t.next.queue,{},mr())}function db(){return Ct(Ws)}function Mw(){return Je().memoizedState}function Fw(){return Je().memoizedState}function S9(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=mr();e=Ma(r);var n=Fa(t,e,r);n!==null&&(tr(n,t,r),_s(n,t,r)),t={cache:Xy()},e.payload=t;return}t=t.return}}function x9(e,t,r){var n=mr();r={lane:n,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Gf(e)?Pw(t,r):(r=Vy(e,t,r,n),r!==null&&(tr(r,e,n),Iw(r,t,n)))}function Bw(e,t,r){var n=mr();ws(e,t,r,n)}function ws(e,t,r,n){var a={lane:n,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Gf(e))Pw(t,a);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,o=l(i,r);if(a.hasEagerState=!0,a.eagerState=o,br(o,i))return zf(e,t,a,0),Re===null&&kf(),!1}catch{}finally{}if(r=Vy(e,t,a,n),r!==null)return tr(r,e,n),Iw(r,t,n),!0}return!1}function fb(e,t,r,n){if(n={lane:2,revertLane:Sb(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Gf(e)){if(t)throw Error(j(479))}else t=Vy(e,r,n,2),t!==null&&tr(t,e,2)}function Gf(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function Pw(e,t){Li=Pd=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Iw(e,t,r){if(r&4194048){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,$T(e,r)}}var Vs={readContext:Ct,use:jf,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};Vs.useEffectEvent=Ye;var kw={readContext:Ct,use:jf,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:EE,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,Zc(4194308,4,Tw.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Zc(4194308,4,e,t)},useInsertionEffect:function(e,t){Zc(4,2,e,t)},useMemo:function(e,t){var r=Ht();t=t===void 0?null:t;var n=e();if(Nl){Ta(!0);try{e()}finally{Ta(!1)}}return r.memoizedState=[n,t],n},useReducer:function(e,t,r){var n=Ht();if(r!==void 0){var a=r(t);if(Nl){Ta(!0);try{r(t)}finally{Ta(!1)}}}else a=t;return n.memoizedState=n.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},n.queue=e,e=e.dispatch=x9.bind(null,ae,e),[n.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:function(e){e=Fm(e);var t=e.queue,r=Bw.bind(null,ae,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:ub,useDeferredValue:function(e,t){var r=Ht();return cb(r,e,t)},useTransition:function(){var e=Fm(!1);return e=Rw.bind(null,ae,e.queue,!0,!1),Ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var n=ae,a=Ht();if(ge){if(r===void 0)throw Error(j(407));r=r()}else{if(r=t(),Re===null)throw Error(j(349));fe&127||fw(n,t,r)}a.memoizedState=r;var l={value:r,getSnapshot:t};return a.queue=l,EE(hw.bind(null,n,l,e),[e]),n.flags|=2048,Vi(9,{destroy:void 0},pw.bind(null,n,l,r,t),null),r},useId:function(){var e=Ht(),t=Re.identifierPrefix;if(ge){var r=gn,n=hn;r=(n&~(1<<32-gr(n)-1)).toString(32)+r,t="_"+t+"R_"+r,r=Id++,0<r&&(t+="H"+r.toString(32)),t+="_"}else r=g9++,t="_"+t+"r_"+r.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:db,useFormState:yE,useActionState:yE,useOptimistic:function(e){var t=Ht();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=fb.bind(null,ae,!0,r),r.dispatch=t,[e,t]},useMemoCache:ib,useCacheRefresh:function(){return Ht().memoizedState=S9.bind(null,ae)},useEffectEvent:function(e){var t=Ht(),r={impl:e};return t.memoizedState=r,function(){if($e&2)throw Error(j(440));return r.impl.apply(void 0,arguments)}}},pb={readContext:Ct,use:jf,useCallback:Aw,useContext:Ct,useEffect:sb,useImperativeHandle:ww,useInsertionEffect:_w,useLayoutEffect:Cw,useMemo:Ow,useReducer:Xc,useRef:xw,useState:function(){return Xc(ta)},useDebugValue:ub,useDeferredValue:function(e,t){var r=Je();return Dw(r,De.memoizedState,e,t)},useTransition:function(){var e=Xc(ta)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:$u(e),t]},useSyncExternalStore:dw,useId:Mw,useHostTransitionStatus:db,useFormState:bE,useActionState:bE,useOptimistic:function(e,t){var r=Je();return yw(r,De,e,t)},useMemoCache:ib,useCacheRefresh:Fw};pb.useEffectEvent=$w;var zw={readContext:Ct,use:jf,useCallback:Aw,useContext:Ct,useEffect:sb,useImperativeHandle:ww,useInsertionEffect:_w,useLayoutEffect:Cw,useMemo:Ow,useReducer:hh,useRef:xw,useState:function(){return hh(ta)},useDebugValue:ub,useDeferredValue:function(e,t){var r=Je();return De===null?cb(r,e,t):Dw(r,De.memoizedState,e,t)},useTransition:function(){var e=hh(ta)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:$u(e),t]},useSyncExternalStore:dw,useId:Mw,useHostTransitionStatus:db,useFormState:vE,useActionState:vE,useOptimistic:function(e,t){var r=Je();return De!==null?yw(r,De,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:ib,useCacheRefresh:Fw};zw.useEffectEvent=$w;function gh(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Ie({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Im={enqueueSetState:function(e,t,r){e=e._reactInternals;var n=mr(),a=Ma(n);a.payload=t,r!=null&&(a.callback=r),t=Fa(e,a,n),t!==null&&(tr(t,e,n),_s(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=mr(),a=Ma(n);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=Fa(e,a,n),t!==null&&(tr(t,e,n),_s(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=mr(),n=Ma(r);n.tag=2,t!=null&&(n.callback=t),t=Fa(e,n,r),t!==null&&(tr(t,e,r),_s(t,e,r))}};function SE(e,t,r,n,a,l,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,l,i):t.prototype&&t.prototype.isPureReactComponent?!Hs(r,n)||!Hs(a,l):!0}function xE(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Im.enqueueReplaceState(t,t.state,null)}function Ll(e,t){var r=t;if("ref"in t){r={};for(var n in t)n!=="ref"&&(r[n]=t[n])}if(e=e.defaultProps){r===t&&(r=Ie({},r));for(var a in e)r[a]===void 0&&(r[a]=e[a])}return r}function Hw(e){Dd(e)}function Uw(e){console.error(e)}function jw(e){Dd(e)}function kd(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function $E(e,t,r){try{var n=e.onCaughtError;n(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function km(e,t,r){return r=Ma(r),r.tag=3,r.payload={element:null},r.callback=function(){kd(e,t)},r}function Kw(e){return e=Ma(e),e.tag=3,e}function Gw(e,t,r,n){var a=r.type.getDerivedStateFromError;if(typeof a=="function"){var l=n.value;e.payload=function(){return a(l)},e.callback=function(){$E(t,r,n)}}var i=r.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){$E(t,r,n),typeof a!="function"&&(Ba===null?Ba=new Set([this]):Ba.add(this));var o=n.stack;this.componentDidCatch(n.value,{componentStack:o!==null?o:""})})}function $9(e,t,r,n,a){if(r.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=r.alternate,t!==null&&So(t,r,a,!0),r=vr.current,r!==null){switch(r.tag){case 31:case 13:return Br===null?Kd():r.alternate===null&&We===0&&(We=3),r.flags&=-257,r.flags|=65536,r.lanes=a,n===Md?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([n]):t.add(n),Th(e,n,a)),!1;case 22:return r.flags|=65536,n===Md?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([n]):r.add(n)),Th(e,n,a)),!1}throw Error(j(435,r.tag))}return Th(e,n,a),Kd(),!1}if(ge)return t=vr.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,n!==Tm&&(e=Error(j(422),{cause:n}),js(Lr(e,r)))):(n!==Tm&&(t=Error(j(423),{cause:n}),js(Lr(t,r))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,n=Lr(n,r),a=km(e.stateNode,n,a),ph(e,a),We!==4&&(We=2)),!1;var l=Error(j(520),{cause:n});if(l=Lr(l,r),Ds===null?Ds=[l]:Ds.push(l),We!==4&&(We=2),t===null)return!0;n=Lr(n,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=a&-a,r.lanes|=e,e=km(r.stateNode,n,e),ph(r,e),!1;case 1:if(t=r.type,l=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||l!==null&&typeof l.componentDidCatch=="function"&&(Ba===null||!Ba.has(l))))return r.flags|=65536,a&=-a,r.lanes|=a,a=Kw(a),Gw(a,e,r,n),ph(r,a),!1}r=r.return}while(r!==null);return!1}var hb=Error(j(461)),lt=!1;function Et(e,t,r,n){t.child=e===null?lw(t,null,r,n):Rl(t,e.child,r,n)}function _E(e,t,r,n,a){r=r.render;var l=t.ref;if("ref"in n){var i={};for(var o in n)o!=="ref"&&(i[o]=n[o])}else i=n;return Dl(t),n=rb(e,t,r,i,l,a),o=nb(),e!==null&&!lt?(ab(e,t,a),ra(e,t,a)):(ge&&o&&qy(t),t.flags|=1,Et(e,t,n,a),t.child)}function CE(e,t,r,n,a){if(e===null){var l=r.type;return typeof l=="function"&&!Yy(l)&&l.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=l,Vw(e,t,l,n,a)):(e=qc(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!gb(e,a)){var i=l.memoizedProps;if(r=r.compare,r=r!==null?r:Hs,r(i,n)&&e.ref===t.ref)return ra(e,t,a)}return t.flags|=1,e=Wn(l,n),e.ref=t.ref,e.return=t,t.child=e}function Vw(e,t,r,n,a){if(e!==null){var l=e.memoizedProps;if(Hs(l,n)&&e.ref===t.ref)if(lt=!1,t.pendingProps=n=l,gb(e,a))e.flags&131072&&(lt=!0);else return t.lanes=e.lanes,ra(e,t,a)}return zm(e,t,r,n,a)}function Yw(e,t,r,n){var a=n.children,l=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if(t.flags&128){if(l=l!==null?l.baseLanes|r:r,e!==null){for(n=t.child=e.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~l}else n=0,t.child=null;return TE(e,t,l,r,n)}if(r&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Wc(t,l!==null?l.cachePool:null),l!==null?hE(t,l):Lm(),sw(t);else return n=t.lanes=536870912,TE(e,t,l!==null?l.baseLanes|r:r,r,n)}else l!==null?(Wc(t,l.cachePool),hE(t,l),$a(),t.memoizedState=null):(e!==null&&Wc(t,null),Lm(),$a());return Et(e,t,a,r),t.child}function cs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function TE(e,t,r,n,a){var l=Zy();return l=l===null?null:{parent:nt._currentValue,pool:l},t.memoizedState={baseLanes:r,cachePool:l},e!==null&&Wc(t,null),Lm(),sw(t),e!==null&&So(e,t,n,!0),t.childLanes=a,null}function Qc(e,t){return t=zd({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function wE(e,t,r){return Rl(t,e.child,null,r),e=Qc(t,t.pendingProps),e.flags|=2,cr(t),t.memoizedState=null,e}function _9(e,t,r){var n=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ge){if(n.mode==="hidden")return e=Qc(t,n),t.lanes=536870912,cs(null,e);if(Mm(t),(e=Be)?(e=k2(e,Mr),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ha!==null?{id:hn,overflow:gn}:null,retryLane:536870912,hydrationErrors:null},r=QT(e),r.return=t,t.child=r,_t=t,Be=null)):e=null,e===null)throw Ua(t);return t.lanes=536870912,null}return Qc(t,n)}var l=e.memoizedState;if(l!==null){var i=l.dehydrated;if(Mm(t),a)if(t.flags&256)t.flags&=-257,t=wE(e,t,r);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(j(558));else if(lt||So(e,t,r,!1),a=(r&e.childLanes)!==0,lt||a){if(n=Re,n!==null&&(i=_T(n,r),i!==0&&i!==l.retryLane))throw l.retryLane=i,jl(e,i),tr(n,e,i),hb;Kd(),t=wE(e,t,r)}else e=l.treeContext,Be=Pr(i.nextSibling),_t=t,ge=!0,La=null,Mr=!1,e!==null&&ew(t,e),t=Qc(t,n),t.flags|=4096;return t}return e=Wn(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Jc(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(j(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function zm(e,t,r,n,a){return Dl(t),r=rb(e,t,r,n,void 0,a),n=nb(),e!==null&&!lt?(ab(e,t,a),ra(e,t,a)):(ge&&n&&qy(t),t.flags|=1,Et(e,t,r,a),t.child)}function AE(e,t,r,n,a,l){return Dl(t),t.updateQueue=null,r=cw(t,n,r,a),uw(e),n=nb(),e!==null&&!lt?(ab(e,t,l),ra(e,t,l)):(ge&&n&&qy(t),t.flags|=1,Et(e,t,r,l),t.child)}function OE(e,t,r,n,a){if(Dl(t),t.stateNode===null){var l=Ei,i=r.contextType;typeof i=="object"&&i!==null&&(l=Ct(i)),l=new r(n,l),t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=Im,t.stateNode=l,l._reactInternals=t,l=t.stateNode,l.props=n,l.state=t.memoizedState,l.refs={},Jy(t),i=r.contextType,l.context=typeof i=="object"&&i!==null?Ct(i):Ei,l.state=t.memoizedState,i=r.getDerivedStateFromProps,typeof i=="function"&&(gh(t,r,i,n),l.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(i=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),i!==l.state&&Im.enqueueReplaceState(l,l.state,null),Ts(t,n,l,a),Cs(),l.state=t.memoizedState),typeof l.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){l=t.stateNode;var o=t.memoizedProps,s=Ll(r,o);l.props=s;var u=l.context,c=r.contextType;i=Ei,typeof c=="object"&&c!==null&&(i=Ct(c));var d=r.getDerivedStateFromProps;c=typeof d=="function"||typeof l.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,c||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(o||u!==i)&&xE(t,l,n,i),ma=!1;var f=t.memoizedState;l.state=f,Ts(t,n,l,a),Cs(),u=t.memoizedState,o||f!==u||ma?(typeof d=="function"&&(gh(t,r,d,n),u=t.memoizedState),(s=ma||SE(t,r,s,n,f,u,i))?(c||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),l.props=n,l.state=u,l.context=i,n=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{l=t.stateNode,Rm(e,t),i=t.memoizedProps,c=Ll(r,i),l.props=c,d=t.pendingProps,f=l.context,u=r.contextType,s=Ei,typeof u=="object"&&u!==null&&(s=Ct(u)),o=r.getDerivedStateFromProps,(u=typeof o=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(i!==d||f!==s)&&xE(t,l,n,s),ma=!1,f=t.memoizedState,l.state=f,Ts(t,n,l,a),Cs();var p=t.memoizedState;i!==d||f!==p||ma||e!==null&&e.dependencies!==null&&Ld(e.dependencies)?(typeof o=="function"&&(gh(t,r,o,n),p=t.memoizedState),(c=ma||SE(t,r,c,n,f,p,s)||e!==null&&e.dependencies!==null&&Ld(e.dependencies))?(u||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(n,p,s),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(n,p,s)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),l.props=n,l.state=p,l.context=s,n=c):(typeof l.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return l=n,Jc(e,t),n=(t.flags&128)!==0,l||n?(l=t.stateNode,r=n&&typeof r.getDerivedStateFromError!="function"?null:l.render(),t.flags|=1,e!==null&&n?(t.child=Rl(t,e.child,null,a),t.child=Rl(t,null,r,a)):Et(e,t,r,a),t.memoizedState=l.state,e=t.child):e=ra(e,t,a),e}function DE(e,t,r,n){return Ol(),t.flags|=256,Et(e,t,r,n),t.child}var mh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yh(e){return{baseLanes:e,cachePool:rw()}}function bh(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=fr),e}function qw(e,t,r){var n=t.pendingProps,a=!1,l=(t.flags&128)!==0,i;if((i=l)||(i=e!==null&&e.memoizedState===null?!1:(Qe.current&2)!==0),i&&(a=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(ge){if(a?xa(t):$a(),(e=Be)?(e=k2(e,Mr),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ha!==null?{id:hn,overflow:gn}:null,retryLane:536870912,hydrationErrors:null},r=QT(e),r.return=t,t.child=r,_t=t,Be=null)):e=null,e===null)throw Ua(t);return e0(e)?t.lanes=32:t.lanes=536870912,null}var o=n.children;return n=n.fallback,a?($a(),a=t.mode,o=zd({mode:"hidden",children:o},a),n=Sl(n,a,r,null),o.return=t,n.return=t,o.sibling=n,t.child=o,n=t.child,n.memoizedState=yh(r),n.childLanes=bh(e,i,r),t.memoizedState=mh,cs(null,n)):(xa(t),Hm(t,o))}var s=e.memoizedState;if(s!==null&&(o=s.dehydrated,o!==null)){if(l)t.flags&256?(xa(t),t.flags&=-257,t=vh(e,t,r)):t.memoizedState!==null?($a(),t.child=e.child,t.flags|=128,t=null):($a(),o=n.fallback,a=t.mode,n=zd({mode:"visible",children:n.children},a),o=Sl(o,a,r,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,Rl(t,e.child,null,r),n=t.child,n.memoizedState=yh(r),n.childLanes=bh(e,i,r),t.memoizedState=mh,t=cs(null,n));else if(xa(t),e0(o)){if(i=o.nextSibling&&o.nextSibling.dataset,i)var u=i.dgst;i=u,n=Error(j(419)),n.stack="",n.digest=i,js({value:n,source:null,stack:null}),t=vh(e,t,r)}else if(lt||So(e,t,r,!1),i=(r&e.childLanes)!==0,lt||i){if(i=Re,i!==null&&(n=_T(i,r),n!==0&&n!==s.retryLane))throw s.retryLane=n,jl(e,n),tr(i,e,n),hb;Jm(o)||Kd(),t=vh(e,t,r)}else Jm(o)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,Be=Pr(o.nextSibling),_t=t,ge=!0,La=null,Mr=!1,e!==null&&ew(t,e),t=Hm(t,n.children),t.flags|=4096);return t}return a?($a(),o=n.fallback,a=t.mode,s=e.child,u=s.sibling,n=Wn(s,{mode:"hidden",children:n.children}),n.subtreeFlags=s.subtreeFlags&65011712,u!==null?o=Wn(u,o):(o=Sl(o,a,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,cs(null,n),n=t.child,o=e.child.memoizedState,o===null?o=yh(r):(a=o.cachePool,a!==null?(s=nt._currentValue,a=a.parent!==s?{parent:s,pool:s}:a):a=rw(),o={baseLanes:o.baseLanes|r,cachePool:a}),n.memoizedState=o,n.childLanes=bh(e,i,r),t.memoizedState=mh,cs(e.child,n)):(xa(t),r=e.child,e=r.sibling,r=Wn(r,{mode:"visible",children:n.children}),r.return=t,r.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=r,t.memoizedState=null,r)}function Hm(e,t){return t=zd({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function zd(e,t){return e=dr(22,e,null,t),e.lanes=0,e}function vh(e,t,r){return Rl(t,e.child,null,r),e=Hm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function RE(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Am(e.return,t,r)}function Eh(e,t,r,n,a,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a,treeForkCount:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=a,i.treeForkCount=l)}function Ww(e,t,r){var n=t.pendingProps,a=n.revealOrder,l=n.tail;n=n.children;var i=Qe.current,o=(i&2)!==0;if(o?(i=i&1|2,t.flags|=128):i&=1,Le(Qe,i),Et(e,t,n,r),n=ge?Us:0,!o&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&RE(e,r,t);else if(e.tag===19)RE(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&Bd(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),Eh(t,!1,a,r,l,n);break;case"backwards":case"unstable_legacy-backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Bd(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}Eh(t,!0,r,null,l,n);break;case"together":Eh(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function ra(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ka|=t.lanes,!(r&t.childLanes))if(e!==null){if(So(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,r=Wn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Wn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function gb(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Ld(e)))}function C9(e,t,r){switch(t.tag){case 3:Td(t,t.stateNode.containerInfo),Sa(t,nt,e.memoizedState.cache),Ol();break;case 27:case 5:gm(t);break;case 4:Td(t,t.stateNode.containerInfo);break;case 10:Sa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Mm(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(xa(t),t.flags|=128,null):r&t.child.childLanes?qw(e,t,r):(xa(t),e=ra(e,t,r),e!==null?e.sibling:null);xa(t);break;case 19:var a=(e.flags&128)!==0;if(n=(r&t.childLanes)!==0,n||(So(e,t,r,!1),n=(r&t.childLanes)!==0),a){if(n)return Ww(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Le(Qe,Qe.current),n)break;return null;case 22:return t.lanes=0,Yw(e,t,r,t.pendingProps);case 24:Sa(t,nt,e.memoizedState.cache)}return ra(e,t,r)}function Xw(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)lt=!0;else{if(!gb(e,r)&&!(t.flags&128))return lt=!1,C9(e,t,r);lt=!!(e.flags&131072)}else lt=!1,ge&&t.flags&1048576&&JT(t,Us,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=cl(t.elementType),t.type=e,typeof e=="function")Yy(e)?(n=Ll(e,n),t.tag=1,t=OE(null,t,e,n,r)):(t.tag=0,t=zm(null,t,e,n,r));else{if(e!=null){var a=e.$$typeof;if(a===Ly){t.tag=11,t=_E(null,t,e,n,r);break e}else if(a===My){t.tag=14,t=CE(null,t,e,n,r);break e}}throw t=pm(e)||e,Error(j(306,t,""))}}return t;case 0:return zm(e,t,t.type,t.pendingProps,r);case 1:return n=t.type,a=Ll(n,t.pendingProps),OE(e,t,n,a,r);case 3:e:{if(Td(t,t.stateNode.containerInfo),e===null)throw Error(j(387));n=t.pendingProps;var l=t.memoizedState;a=l.element,Rm(e,t),Ts(t,n,null,r);var i=t.memoizedState;if(n=i.cache,Sa(t,nt,n),n!==l.cache&&Om(t,[nt],r,!0),Cs(),n=i.element,l.isDehydrated)if(l={element:n,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){t=DE(e,t,n,r);break e}else if(n!==a){a=Lr(Error(j(424)),t),js(a),t=DE(e,t,n,r);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Be=Pr(e.firstChild),_t=t,ge=!0,La=null,Mr=!0,r=lw(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(Ol(),n===a){t=ra(e,t,r);break e}Et(e,t,n,r)}t=t.child}return t;case 26:return Jc(e,t),e===null?(r=ZE(t.type,null,t.pendingProps,null))?t.memoizedState=r:ge||(r=t.type,e=t.pendingProps,n=qd(Na.current).createElement(r),n[$t]=t,n[rr]=e,wt(n,r,e),mt(n),t.stateNode=n):t.memoizedState=ZE(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return gm(t),e===null&&ge&&(n=t.stateNode=z2(t.type,t.pendingProps,Na.current),_t=t,Mr=!0,a=Be,qa(t.type)?(t0=a,Be=Pr(n.firstChild)):Be=a),Et(e,t,t.pendingProps.children,r),Jc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ge&&((a=n=Be)&&(n=tN(n,t.type,t.pendingProps,Mr),n!==null?(t.stateNode=n,_t=t,Be=Pr(n.firstChild),Mr=!1,a=!0):a=!1),a||Ua(t)),gm(t),a=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,n=l.children,Zm(a,l)?n=null:i!==null&&Zm(a,i)&&(t.flags|=32),t.memoizedState!==null&&(a=rb(e,t,m9,null,null,r),Ws._currentValue=a),Jc(e,t),Et(e,t,n,r),t.child;case 6:return e===null&&ge&&((e=r=Be)&&(r=rN(r,t.pendingProps,Mr),r!==null?(t.stateNode=r,_t=t,Be=null,e=!0):e=!1),e||Ua(t)),null;case 13:return qw(e,t,r);case 4:return Td(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Rl(t,null,n,r):Et(e,t,n,r),t.child;case 11:return _E(e,t,t.type,t.pendingProps,r);case 7:return Et(e,t,t.pendingProps,r),t.child;case 8:return Et(e,t,t.pendingProps.children,r),t.child;case 12:return Et(e,t,t.pendingProps.children,r),t.child;case 10:return n=t.pendingProps,Sa(t,t.type,n.value),Et(e,t,n.children,r),t.child;case 9:return a=t.type._context,n=t.pendingProps.children,Dl(t),a=Ct(a),n=n(a),t.flags|=1,Et(e,t,n,r),t.child;case 14:return CE(e,t,t.type,t.pendingProps,r);case 15:return Vw(e,t,t.type,t.pendingProps,r);case 19:return Ww(e,t,r);case 31:return _9(e,t,r);case 22:return Yw(e,t,r,t.pendingProps);case 24:return Dl(t),n=Ct(nt),e===null?(a=Zy(),a===null&&(a=Re,l=Xy(),a.pooledCache=l,l.refCount++,l!==null&&(a.pooledCacheLanes|=r),a=l),t.memoizedState={parent:n,cache:a},Jy(t),Sa(t,nt,a)):(e.lanes&r&&(Rm(e,t),Ts(t,null,null,r),Cs()),a=e.memoizedState,l=t.memoizedState,a.parent!==n?(a={parent:n,cache:n},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Sa(t,nt,n)):(n=l.cache,Sa(t,nt,n),n!==a.cache&&Om(t,[nt],r,!0))),Et(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(j(156,t.tag))}function Rn(e){e.flags|=4}function Sh(e,t,r,n,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(E2())e.flags|=8192;else throw $l=Md,Qy}else e.flags&=-16777217}function NE(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!j2(t))if(E2())e.flags|=8192;else throw $l=Md,Qy}function ac(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ST():536870912,e.lanes|=t,Yi|=t)}function Ko(e,t){if(!ge)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Me(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function T9(e,t,r){var n=t.pendingProps;switch(Wy(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return Me(t),null;case 3:return r=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Xn(nt),Hi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ei(t)?Rn(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,fh())),Me(t),null;case 26:var a=t.type,l=t.memoizedState;return e===null?(Rn(t),l!==null?(Me(t),NE(t,l)):(Me(t),Sh(t,a,null,n,r))):l?l!==e.memoizedState?(Rn(t),Me(t),NE(t,l)):(Me(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Rn(t),Me(t),Sh(t,a,e,n,r)),null;case 27:if(wd(t),r=Na.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Rn(t);else{if(!n){if(t.stateNode===null)throw Error(j(166));return Me(t),null}e=xn.current,ei(t)?oE(t):(e=z2(a,n,r),t.stateNode=e,Rn(t))}return Me(t),null;case 5:if(wd(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Rn(t);else{if(!n){if(t.stateNode===null)throw Error(j(166));return Me(t),null}if(l=xn.current,ei(t))oE(t);else{var i=qd(Na.current);switch(l){case 1:l=i.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:l=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":l=i.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":l=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":l=i.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild);break;case"select":l=typeof n.is=="string"?i.createElement("select",{is:n.is}):i.createElement("select"),n.multiple?l.multiple=!0:n.size&&(l.size=n.size);break;default:l=typeof n.is=="string"?i.createElement(a,{is:n.is}):i.createElement(a)}}l[$t]=t,l[rr]=n;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)l.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=l;e:switch(wt(l,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Rn(t)}}return Me(t),Sh(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Rn(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(j(166));if(e=Na.current,ei(t)){if(e=t.stateNode,r=t.memoizedProps,n=null,a=_t,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[$t]=t,e=!!(e.nodeValue===r||n!==null&&n.suppressHydrationWarning===!0||B2(e.nodeValue,r)),e||Ua(t,!0)}else e=qd(e).createTextNode(n),e[$t]=t,t.stateNode=e}return Me(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(n=ei(t),r!==null){if(e===null){if(!n)throw Error(j(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(557));e[$t]=t}else Ol(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Me(t),e=!1}else r=fh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(cr(t),t):(cr(t),null);if(t.flags&128)throw Error(j(558))}return Me(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ei(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(j(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(j(317));a[$t]=t}else Ol(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Me(t),a=!1}else a=fh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(cr(t),t):(cr(t),null)}return cr(t),t.flags&128?(t.lanes=r,t):(r=n!==null,e=e!==null&&e.memoizedState!==null,r&&(n=t.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),l=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),l!==a&&(n.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),ac(t,t.updateQueue),Me(t),null);case 4:return Hi(),e===null&&xb(t.stateNode.containerInfo),Me(t),null;case 10:return Xn(t.type),Me(t),null;case 19:if(yt(Qe),n=t.memoizedState,n===null)return Me(t),null;if(a=(t.flags&128)!==0,l=n.rendering,l===null)if(a)Ko(n,!1);else{if(We!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Bd(e),l!==null){for(t.flags|=128,Ko(n,!1),e=l.updateQueue,t.updateQueue=e,ac(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)ZT(r,e),r=r.sibling;return Le(Qe,Qe.current&1|2),ge&&Hn(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&pr()>Ud&&(t.flags|=128,a=!0,Ko(n,!1),t.lanes=4194304)}else{if(!a)if(e=Bd(l),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,ac(t,e),Ko(n,!0),n.tail===null&&n.tailMode==="hidden"&&!l.alternate&&!ge)return Me(t),null}else 2*pr()-n.renderingStartTime>Ud&&r!==536870912&&(t.flags|=128,a=!0,Ko(n,!1),t.lanes=4194304);n.isBackwards?(l.sibling=t.child,t.child=l):(e=n.last,e!==null?e.sibling=l:t.child=l,n.last=l)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=pr(),e.sibling=null,r=Qe.current,Le(Qe,a?r&1|2:r&1),ge&&Hn(t,n.treeForkCount),e):(Me(t),null);case 22:case 23:return cr(t),eb(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?r&536870912&&!(t.flags&128)&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),r=t.updateQueue,r!==null&&ac(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==r&&(t.flags|=2048),e!==null&&yt(xl),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Xn(nt),Me(t),null;case 25:return null;case 30:return null}throw Error(j(156,t.tag))}function w9(e,t){switch(Wy(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xn(nt),Hi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return wd(t),null;case 31:if(t.memoizedState!==null){if(cr(t),t.alternate===null)throw Error(j(340));Ol()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(cr(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));Ol()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return yt(Qe),null;case 4:return Hi(),null;case 10:return Xn(t.type),null;case 22:case 23:return cr(t),eb(),e!==null&&yt(xl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Xn(nt),null;case 25:return null;default:return null}}function Zw(e,t){switch(Wy(t),t.tag){case 3:Xn(nt),Hi();break;case 26:case 27:case 5:wd(t);break;case 4:Hi();break;case 31:t.memoizedState!==null&&cr(t);break;case 13:cr(t);break;case 19:yt(Qe);break;case 10:Xn(t.type);break;case 22:case 23:cr(t),eb(),e!==null&&yt(xl);break;case 24:Xn(nt)}}function _u(e,t){try{var r=t.updateQueue,n=r!==null?r.lastEffect:null;if(n!==null){var a=n.next;r=a;do{if((r.tag&e)===e){n=void 0;var l=r.create,i=r.inst;n=l(),i.destroy=n}r=r.next}while(r!==a)}}catch(o){we(t,t.return,o)}}function ja(e,t,r){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var l=a.next;n=l;do{if((n.tag&e)===e){var i=n.inst,o=i.destroy;if(o!==void 0){i.destroy=void 0,a=t;var s=r,u=o;try{u()}catch(c){we(a,s,c)}}}n=n.next}while(n!==l)}}catch(c){we(t,t.return,c)}}function Qw(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{ow(t,r)}catch(n){we(e,e.return,n)}}}function Jw(e,t,r){r.props=Ll(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(n){we(e,t,n)}}function As(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof r=="function"?e.refCleanup=r(n):r.current=n}}catch(a){we(e,t,a)}}function mn(e,t){var r=e.ref,n=e.refCleanup;if(r!==null)if(typeof n=="function")try{n()}catch(a){we(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(a){we(e,t,a)}else r.current=null}function e2(e){var t=e.type,r=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&n.focus();break e;case"img":r.src?n.src=r.src:r.srcSet&&(n.srcset=r.srcSet)}}catch(a){we(e,e.return,a)}}function xh(e,t,r){try{var n=e.stateNode;W9(n,e.type,r,t),n[rr]=t}catch(a){we(e,e.return,a)}}function t2(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&qa(e.type)||e.tag===4}function $h(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||t2(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&&qa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Um(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Vn));else if(n!==4&&(n===27&&qa(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(Um(e,t,r),e=e.sibling;e!==null;)Um(e,t,r),e=e.sibling}function Hd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(n===27&&qa(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(Hd(e,t,r),e=e.sibling;e!==null;)Hd(e,t,r),e=e.sibling}function r2(e){var t=e.stateNode,r=e.memoizedProps;try{for(var n=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);wt(t,n,r),t[$t]=e,t[rr]=r}catch(l){we(e,e.return,l)}}var Un=!1,rt=!1,_h=!1,LE=typeof WeakSet=="function"?WeakSet:Set,gt=null;function A9(e,t){if(e=e.containerInfo,Wm=Qd,e=jT(e),Ky(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,l=n.focusNode;n=n.focusOffset;try{r.nodeType,l.nodeType}catch{r=null;break e}var i=0,o=-1,s=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==r||a!==0&&d.nodeType!==3||(o=i+a),d!==l||n!==0&&d.nodeType!==3||(s=i+n),d.nodeType===3&&(i+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===r&&++u===a&&(o=i),f===l&&++c===n&&(s=i),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}r=o===-1||s===-1?null:{start:o,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(Xm={focusedElem:e,selectionRange:r},Qd=!1,gt=t;gt!==null;)if(t=gt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,gt=e;else for(;gt!==null;){switch(t=gt,l=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)a=e[r],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&l!==null){e=void 0,r=t,a=l.memoizedProps,l=l.memoizedState,n=r.stateNode;try{var b=Ll(r.type,a);e=n.getSnapshotBeforeUpdate(b,l),n.__reactInternalSnapshotBeforeUpdate=e}catch(v){we(r,r.return,v)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)Qm(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Qm(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(j(163))}if(e=t.sibling,e!==null){e.return=t.return,gt=e;break}gt=t.return}}function n2(e,t,r){var n=r.flags;switch(r.tag){case 0:case 11:case 15:Ln(e,r),n&4&&_u(5,r);break;case 1:if(Ln(e,r),n&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(i){we(r,r.return,i)}else{var a=Ll(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){we(r,r.return,i)}}n&64&&Qw(r),n&512&&As(r,r.return);break;case 3:if(Ln(e,r),n&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{ow(e,t)}catch(i){we(r,r.return,i)}}break;case 27:t===null&&n&4&&r2(r);case 26:case 5:Ln(e,r),t===null&&n&4&&e2(r),n&512&&As(r,r.return);break;case 12:Ln(e,r);break;case 31:Ln(e,r),n&4&&i2(e,r);break;case 13:Ln(e,r),n&4&&o2(e,r),n&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=P9.bind(null,r),nN(e,r))));break;case 22:if(n=r.memoizedState!==null||Un,!n){t=t!==null&&t.memoizedState!==null||rt,a=Un;var l=rt;Un=n,(rt=t)&&!l?kn(e,r,(r.subtreeFlags&8772)!==0):Ln(e,r),Un=a,rt=l}break;case 30:break;default:Ln(e,r)}}function a2(e){var t=e.alternate;t!==null&&(e.alternate=null,a2(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Iy(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 He=null,Xt=!1;function Nn(e,t,r){for(r=r.child;r!==null;)l2(e,t,r),r=r.sibling}function l2(e,t,r){if(hr&&typeof hr.onCommitFiberUnmount=="function")try{hr.onCommitFiberUnmount(yu,r)}catch{}switch(r.tag){case 26:rt||mn(r,t),Nn(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:rt||mn(r,t);var n=He,a=Xt;qa(r.type)&&(He=r.stateNode,Xt=!1),Nn(e,t,r),Ns(r.stateNode),He=n,Xt=a;break;case 5:rt||mn(r,t);case 6:if(n=He,a=Xt,He=null,Nn(e,t,r),He=n,Xt=a,He!==null)if(Xt)try{(He.nodeType===9?He.body:He.nodeName==="HTML"?He.ownerDocument.body:He).removeChild(r.stateNode)}catch(l){we(r,t,l)}else try{He.removeChild(r.stateNode)}catch(l){we(r,t,l)}break;case 18:He!==null&&(Xt?(e=He,VE(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),Zi(e)):VE(He,r.stateNode));break;case 4:n=He,a=Xt,He=r.stateNode.containerInfo,Xt=!0,Nn(e,t,r),He=n,Xt=a;break;case 0:case 11:case 14:case 15:ja(2,r,t),rt||ja(4,r,t),Nn(e,t,r);break;case 1:rt||(mn(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"&&Jw(r,t,n)),Nn(e,t,r);break;case 21:Nn(e,t,r);break;case 22:rt=(n=rt)||r.memoizedState!==null,Nn(e,t,r),rt=n;break;default:Nn(e,t,r)}}function i2(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Zi(e)}catch(r){we(t,t.return,r)}}}function o2(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Zi(e)}catch(r){we(t,t.return,r)}}function O9(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new LE),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new LE),t;default:throw Error(j(435,e.tag))}}function lc(e,t){var r=O9(e);t.forEach(function(n){if(!r.has(n)){r.add(n);var a=I9.bind(null,e,n);n.then(a,a)}})}function Yt(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var a=r[n],l=e,i=t,o=i;e:for(;o!==null;){switch(o.tag){case 27:if(qa(o.type)){He=o.stateNode,Xt=!1;break e}break;case 5:He=o.stateNode,Xt=!1;break e;case 3:case 4:He=o.stateNode.containerInfo,Xt=!0;break e}o=o.return}if(He===null)throw Error(j(160));l2(l,i,a),He=null,Xt=!1,l=a.alternate,l!==null&&(l.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)s2(t,e),t=t.sibling}var Yr=null;function s2(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Yt(t,e),qt(e),n&4&&(ja(3,e,e.return),_u(3,e),ja(5,e,e.return));break;case 1:Yt(t,e),qt(e),n&512&&(rt||r===null||mn(r,r.return)),n&64&&Un&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?n:r.concat(n))));break;case 26:var a=Yr;if(Yt(t,e),qt(e),n&512&&(rt||r===null||mn(r,r.return)),n&4){var l=r!==null?r.memoizedState:null;if(n=e.memoizedState,r===null)if(n===null)if(e.stateNode===null){e:{n=e.type,r=e.memoizedProps,a=a.ownerDocument||a;t:switch(n){case"title":l=a.getElementsByTagName("title")[0],(!l||l[Eu]||l[$t]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=a.createElement(n),a.head.insertBefore(l,a.querySelector("head > title"))),wt(l,n,r),l[$t]=e,mt(l),n=l;break e;case"link":var i=JE("link","href",a).get(n+(r.href||""));if(i){for(var o=0;o<i.length;o++)if(l=i[o],l.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&l.getAttribute("rel")===(r.rel==null?null:r.rel)&&l.getAttribute("title")===(r.title==null?null:r.title)&&l.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){i.splice(o,1);break t}}l=a.createElement(n),wt(l,n,r),a.head.appendChild(l);break;case"meta":if(i=JE("meta","content",a).get(n+(r.content||""))){for(o=0;o<i.length;o++)if(l=i[o],l.getAttribute("content")===(r.content==null?null:""+r.content)&&l.getAttribute("name")===(r.name==null?null:r.name)&&l.getAttribute("property")===(r.property==null?null:r.property)&&l.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&l.getAttribute("charset")===(r.charSet==null?null:r.charSet)){i.splice(o,1);break t}}l=a.createElement(n),wt(l,n,r),a.head.appendChild(l);break;default:throw Error(j(468,n))}l[$t]=e,mt(l),n=l}e.stateNode=n}else eS(a,e.type,e.stateNode);else e.stateNode=QE(a,n,e.memoizedProps);else l!==n?(l===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):l.count--,n===null?eS(a,e.type,e.stateNode):QE(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&xh(e,e.memoizedProps,r.memoizedProps)}break;case 27:Yt(t,e),qt(e),n&512&&(rt||r===null||mn(r,r.return)),r!==null&&n&4&&xh(e,e.memoizedProps,r.memoizedProps);break;case 5:if(Yt(t,e),qt(e),n&512&&(rt||r===null||mn(r,r.return)),e.flags&32){a=e.stateNode;try{ji(a,"")}catch(b){we(e,e.return,b)}}n&4&&e.stateNode!=null&&(a=e.memoizedProps,xh(e,a,r!==null?r.memoizedProps:a)),n&1024&&(_h=!0);break;case 6:if(Yt(t,e),qt(e),n&4){if(e.stateNode===null)throw Error(j(162));n=e.memoizedProps,r=e.stateNode;try{r.nodeValue=n}catch(b){we(e,e.return,b)}}break;case 3:if(rd=null,a=Yr,Yr=Wd(t.containerInfo),Yt(t,e),Yr=a,qt(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Zi(t.containerInfo)}catch(b){we(e,e.return,b)}_h&&(_h=!1,u2(e));break;case 4:n=Yr,Yr=Wd(e.stateNode.containerInfo),Yt(t,e),qt(e),Yr=n;break;case 12:Yt(t,e),qt(e);break;case 31:Yt(t,e),qt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,lc(e,n)));break;case 13:Yt(t,e),qt(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(Vf=pr()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,lc(e,n)));break;case 22:a=e.memoizedState!==null;var s=r!==null&&r.memoizedState!==null,u=Un,c=rt;if(Un=u||a,rt=c||s,Yt(t,e),rt=c,Un=u,qt(e),n&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(r===null||s||Un||rt||dl(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){s=r=t;try{if(l=s.stateNode,a)i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{o=s.stateNode;var d=s.memoizedProps.style,f=d!=null&&d.hasOwnProperty("display")?d.display:null;o.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(b){we(s,s.return,b)}}}else if(t.tag===6){if(r===null){s=t;try{s.stateNode.nodeValue=a?"":s.memoizedProps}catch(b){we(s,s.return,b)}}}else if(t.tag===18){if(r===null){s=t;try{var p=s.stateNode;a?YE(p,!0):YE(s.stateNode,!1)}catch(b){we(s,s.return,b)}}}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 e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(r=n.retryQueue,r!==null&&(n.retryQueue=null,lc(e,r))));break;case 19:Yt(t,e),qt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,lc(e,n)));break;case 30:break;case 21:break;default:Yt(t,e),qt(e)}}function qt(e){var t=e.flags;if(t&2){try{for(var r,n=e.return;n!==null;){if(t2(n)){r=n;break}n=n.return}if(r==null)throw Error(j(160));switch(r.tag){case 27:var a=r.stateNode,l=$h(e);Hd(e,l,a);break;case 5:var i=r.stateNode;r.flags&32&&(ji(i,""),r.flags&=-33);var o=$h(e);Hd(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,u=$h(e);Um(e,u,s);break;default:throw Error(j(161))}}catch(c){we(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function u2(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;u2(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ln(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)n2(e,t.alternate,t),t=t.sibling}function dl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ja(4,t,t.return),dl(t);break;case 1:mn(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&Jw(t,t.return,r),dl(t);break;case 27:Ns(t.stateNode);case 26:case 5:mn(t,t.return),dl(t);break;case 22:t.memoizedState===null&&dl(t);break;case 30:dl(t);break;default:dl(t)}e=e.sibling}}function kn(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,a=e,l=t,i=l.flags;switch(l.tag){case 0:case 11:case 15:kn(a,l,r),_u(4,l);break;case 1:if(kn(a,l,r),n=l,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(u){we(n,n.return,u)}if(n=l,a=n.updateQueue,a!==null){var o=n.stateNode;try{var s=a.shared.hiddenCallbacks;if(s!==null)for(a.shared.hiddenCallbacks=null,a=0;a<s.length;a++)iw(s[a],o)}catch(u){we(n,n.return,u)}}r&&i&64&&Qw(l),As(l,l.return);break;case 27:r2(l);case 26:case 5:kn(a,l,r),r&&n===null&&i&4&&e2(l),As(l,l.return);break;case 12:kn(a,l,r);break;case 31:kn(a,l,r),r&&i&4&&i2(a,l);break;case 13:kn(a,l,r),r&&i&4&&o2(a,l);break;case 22:l.memoizedState===null&&kn(a,l,r),As(l,l.return);break;case 30:break;default:kn(a,l,r)}t=t.sibling}}function mb(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&xu(r))}function yb(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&xu(e))}function Gr(e,t,r,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)c2(e,t,r,n),t=t.sibling}function c2(e,t,r,n){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Gr(e,t,r,n),a&2048&&_u(9,t);break;case 1:Gr(e,t,r,n);break;case 3:Gr(e,t,r,n),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&xu(e)));break;case 12:if(a&2048){Gr(e,t,r,n),e=t.stateNode;try{var l=t.memoizedProps,i=l.id,o=l.onPostCommit;typeof o=="function"&&o(i,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(s){we(t,t.return,s)}}else Gr(e,t,r,n);break;case 31:Gr(e,t,r,n);break;case 13:Gr(e,t,r,n);break;case 23:break;case 22:l=t.stateNode,i=t.alternate,t.memoizedState!==null?l._visibility&2?Gr(e,t,r,n):Os(e,t):l._visibility&2?Gr(e,t,r,n):(l._visibility|=2,oi(e,t,r,n,(t.subtreeFlags&10256)!==0||!1)),a&2048&&mb(i,t);break;case 24:Gr(e,t,r,n),a&2048&&yb(t.alternate,t);break;default:Gr(e,t,r,n)}}function oi(e,t,r,n,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var l=e,i=t,o=r,s=n,u=i.flags;switch(i.tag){case 0:case 11:case 15:oi(l,i,o,s,a),_u(8,i);break;case 23:break;case 22:var c=i.stateNode;i.memoizedState!==null?c._visibility&2?oi(l,i,o,s,a):Os(l,i):(c._visibility|=2,oi(l,i,o,s,a)),a&&u&2048&&mb(i.alternate,i);break;case 24:oi(l,i,o,s,a),a&&u&2048&&yb(i.alternate,i);break;default:oi(l,i,o,s,a)}t=t.sibling}}function Os(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,n=t,a=n.flags;switch(n.tag){case 22:Os(r,n),a&2048&&mb(n.alternate,n);break;case 24:Os(r,n),a&2048&&yb(n.alternate,n);break;default:Os(r,n)}t=t.sibling}}var ds=8192;function ti(e,t,r){if(e.subtreeFlags&ds)for(e=e.child;e!==null;)d2(e,t,r),e=e.sibling}function d2(e,t,r){switch(e.tag){case 26:ti(e,t,r),e.flags&ds&&e.memoizedState!==null&&gN(r,Yr,e.memoizedState,e.memoizedProps);break;case 5:ti(e,t,r);break;case 3:case 4:var n=Yr;Yr=Wd(e.stateNode.containerInfo),ti(e,t,r),Yr=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=ds,ds=16777216,ti(e,t,r),ds=n):ti(e,t,r));break;default:ti(e,t,r)}}function f2(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 Go(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var r=0;r<t.length;r++){var n=t[r];gt=n,h2(n,e)}f2(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)p2(e),e=e.sibling}function p2(e){switch(e.tag){case 0:case 11:case 15:Go(e),e.flags&2048&&ja(9,e,e.return);break;case 3:Go(e);break;case 12:Go(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ed(e)):Go(e);break;default:Go(e)}}function ed(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var r=0;r<t.length;r++){var n=t[r];gt=n,h2(n,e)}f2(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ja(8,t,t.return),ed(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,ed(t));break;default:ed(t)}e=e.sibling}}function h2(e,t){for(;gt!==null;){var r=gt;switch(r.tag){case 0:case 11:case 15:ja(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var n=r.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:xu(r.memoizedState.cache)}if(n=r.child,n!==null)n.return=r,gt=n;else e:for(r=e;gt!==null;){n=gt;var a=n.sibling,l=n.return;if(a2(n),n===r){gt=null;break e}if(a!==null){a.return=l,gt=a;break e}gt=l}}}var D9={getCacheForType:function(e){var t=Ct(nt),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},cacheSignal:function(){return Ct(nt).controller.signal}},R9=typeof WeakMap=="function"?WeakMap:Map,$e=0,Re=null,de=null,fe=0,Te=0,ur=null,Aa=!1,$o=!1,bb=!1,na=0,We=0,Ka=0,_l=0,vb=0,fr=0,Yi=0,Ds=null,Zt=null,jm=!1,Vf=0,g2=0,Ud=1/0,jd=null,Ba=null,ft=0,Pa=null,qi=null,Zn=0,Km=0,Gm=null,m2=null,Rs=0,Vm=null;function mr(){return $e&2&&fe!==0?fe&-fe:te.T!==null?Sb():CT()}function y2(){if(fr===0)if(!(fe&536870912)||ge){var e=Zu;Zu<<=1,!(Zu&3932160)&&(Zu=262144),fr=e}else fr=536870912;return e=vr.current,e!==null&&(e.flags|=32),fr}function tr(e,t,r){(e===Re&&(Te===2||Te===9)||e.cancelPendingCommit!==null)&&(Wi(e,0),Oa(e,fe,fr,!1)),vu(e,r),(!($e&2)||e!==Re)&&(e===Re&&(!($e&2)&&(_l|=r),We===4&&Oa(e,fe,fr,!1)),Cn(e))}function b2(e,t,r){if($e&6)throw Error(j(327));var n=!r&&(t&127)===0&&(t&e.expiredLanes)===0||bu(e,t),a=n?M9(e,t):Ch(e,t,!0),l=n;do{if(a===0){$o&&!n&&Oa(e,t,0,!1);break}else{if(r=e.current.alternate,l&&!N9(r)){a=Ch(e,t,!1),l=!1;continue}if(a===2){if(l=t,e.errorRecoveryDisabledLanes&l)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var o=e;a=Ds;var s=o.current.memoizedState.isDehydrated;if(s&&(Wi(o,i).flags|=256),i=Ch(o,i,!1),i!==2){if(bb&&!s){o.errorRecoveryDisabledLanes|=l,_l|=l,a=4;break e}l=Zt,Zt=a,l!==null&&(Zt===null?Zt=l:Zt.push.apply(Zt,l))}a=i}if(l=!1,a!==2)continue}}if(a===1){Wi(e,0),Oa(e,t,0,!0);break}e:{switch(n=e,l=a,l){case 0:case 1:throw Error(j(345));case 4:if((t&4194048)!==t)break;case 6:Oa(n,t,fr,!Aa);break e;case 2:Zt=null;break;case 3:case 5:break;default:throw Error(j(329))}if((t&62914560)===t&&(a=Vf+300-pr(),10<a)){if(Oa(n,t,fr,!Aa),Ff(n,0,!0)!==0)break e;Zn=t,n.timeoutHandle=I2(ME.bind(null,n,r,Zt,jd,jm,t,fr,_l,Yi,Aa,l,"Throttled",-0,0),a);break e}ME(n,r,Zt,jd,jm,t,fr,_l,Yi,Aa,l,null,-0,0)}}break}while(!0);Cn(e)}function ME(e,t,r,n,a,l,i,o,s,u,c,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:Vn},d2(t,l,d);var b=(l&62914560)===l?Vf-pr():(l&4194048)===l?g2-pr():0;if(b=mN(d,b),b!==null){Zn=l,e.cancelPendingCommit=b(BE.bind(null,e,t,l,r,n,a,i,o,s,c,d,null,f,p)),Oa(e,l,i,!u);return}}BE(e,t,l,r,n,a,i,o,s)}function N9(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var n=0;n<r.length;n++){var a=r[n],l=a.getSnapshot;a=a.value;try{if(!br(l(),a))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 Oa(e,t,r,n){t&=~vb,t&=~_l,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var a=t;0<a;){var l=31-gr(a),i=1<<l;n[l]=-1,a&=~i}r!==0&&xT(e,r,t)}function Yf(){return $e&6?!0:(Cu(0),!1)}function Eb(){if(de!==null){if(Te===0)var e=de.return;else e=de,Yn=Kl=null,lb(e),Ni=null,Ks=0,e=de;for(;e!==null;)Zw(e.alternate,e),e=e.return;de=null}}function Wi(e,t){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,Q9(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),Zn=0,Eb(),Re=e,de=r=Wn(e.current,null),fe=t,Te=0,ur=null,Aa=!1,$o=bu(e,t),bb=!1,Yi=fr=vb=_l=Ka=We=0,Zt=Ds=null,jm=!1,t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-gr(n),l=1<<a;t|=e[a],n&=~l}return na=t,kf(),r}function v2(e,t){ae=null,te.H=Vs,t===xo||t===Hf?(t=fE(),Te=3):t===Qy?(t=fE(),Te=4):Te=t===hb?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ur=t,de===null&&(We=1,kd(e,Lr(t,e.current)))}function E2(){var e=vr.current;return e===null?!0:(fe&4194048)===fe?Br===null:(fe&62914560)===fe||fe&536870912?e===Br:!1}function S2(){var e=te.H;return te.H=Vs,e===null?Vs:e}function x2(){var e=te.A;return te.A=D9,e}function Kd(){We=4,Aa||(fe&4194048)!==fe&&vr.current!==null||($o=!0),!(Ka&134217727)&&!(_l&134217727)||Re===null||Oa(Re,fe,fr,!1)}function Ch(e,t,r){var n=$e;$e|=2;var a=S2(),l=x2();(Re!==e||fe!==t)&&(jd=null,Wi(e,t)),t=!1;var i=We;e:do try{if(Te!==0&&de!==null){var o=de,s=ur;switch(Te){case 8:Eb(),i=6;break e;case 3:case 2:case 9:case 6:vr.current===null&&(t=!0);var u=Te;if(Te=0,ur=null,$i(e,o,s,u),r&&$o){i=0;break e}break;default:u=Te,Te=0,ur=null,$i(e,o,s,u)}}L9(),i=We;break}catch(c){v2(e,c)}while(!0);return t&&e.shellSuspendCounter++,Yn=Kl=null,$e=n,te.H=a,te.A=l,de===null&&(Re=null,fe=0,kf()),i}function L9(){for(;de!==null;)$2(de)}function M9(e,t){var r=$e;$e|=2;var n=S2(),a=x2();Re!==e||fe!==t?(jd=null,Ud=pr()+500,Wi(e,t)):$o=bu(e,t);e:do try{if(Te!==0&&de!==null){t=de;var l=ur;t:switch(Te){case 1:Te=0,ur=null,$i(e,t,l,1);break;case 2:case 9:if(dE(l)){Te=0,ur=null,FE(t);break}t=function(){Te!==2&&Te!==9||Re!==e||(Te=7),Cn(e)},l.then(t,t);break e;case 3:Te=7;break e;case 4:Te=5;break e;case 7:dE(l)?(Te=0,ur=null,FE(t)):(Te=0,ur=null,$i(e,t,l,7));break;case 5:var i=null;switch(de.tag){case 26:i=de.memoizedState;case 5:case 27:var o=de;if(i?j2(i):o.stateNode.complete){Te=0,ur=null;var s=o.sibling;if(s!==null)de=s;else{var u=o.return;u!==null?(de=u,qf(u)):de=null}break t}}Te=0,ur=null,$i(e,t,l,5);break;case 6:Te=0,ur=null,$i(e,t,l,6);break;case 8:Eb(),We=6;break e;default:throw Error(j(462))}}F9();break}catch(c){v2(e,c)}while(!0);return Yn=Kl=null,te.H=n,te.A=a,$e=r,de!==null?0:(Re=null,fe=0,kf(),We)}function F9(){for(;de!==null&&!a7();)$2(de)}function $2(e){var t=Xw(e.alternate,e,na);e.memoizedProps=e.pendingProps,t===null?qf(e):de=t}function FE(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=AE(r,t,t.pendingProps,t.type,void 0,fe);break;case 11:t=AE(r,t,t.pendingProps,t.type.render,t.ref,fe);break;case 5:lb(t);default:Zw(r,t),t=de=ZT(t,na),t=Xw(r,t,na)}e.memoizedProps=e.pendingProps,t===null?qf(e):de=t}function $i(e,t,r,n){Yn=Kl=null,lb(t),Ni=null,Ks=0;var a=t.return;try{if($9(e,a,t,r,fe)){We=1,kd(e,Lr(r,e.current)),de=null;return}}catch(l){if(a!==null)throw de=a,l;We=1,kd(e,Lr(r,e.current)),de=null;return}t.flags&32768?(ge||n===1?e=!0:$o||fe&536870912?e=!1:(Aa=e=!0,(n===2||n===9||n===3||n===6)&&(n=vr.current,n!==null&&n.tag===13&&(n.flags|=16384))),_2(t,e)):qf(t)}function qf(e){var t=e;do{if(t.flags&32768){_2(t,Aa);return}e=t.return;var r=T9(t.alternate,t,na);if(r!==null){de=r;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);We===0&&(We=5)}function _2(e,t){do{var r=w9(e.alternate,e);if(r!==null){r.flags&=32767,de=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=r}while(e!==null);We=6,de=null}function BE(e,t,r,n,a,l,i,o,s){e.cancelPendingCommit=null;do Wf();while(ft!==0);if($e&6)throw Error(j(327));if(t!==null){if(t===e.current)throw Error(j(177));if(l=t.lanes|t.childLanes,l|=Gy,h7(e,r,l,i,o,s),e===Re&&(de=Re=null,fe=0),qi=t,Pa=e,Zn=r,Km=l,Gm=a,m2=n,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,k9(Ad,function(){return O2(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,t.subtreeFlags&13878||n){n=te.T,te.T=null,a=_e.p,_e.p=2,i=$e,$e|=4;try{A9(e,t,r)}finally{$e=i,_e.p=a,te.T=n}}ft=1,C2(),T2(),w2()}}function C2(){if(ft===1){ft=0;var e=Pa,t=qi,r=(t.flags&13878)!==0;if(t.subtreeFlags&13878||r){r=te.T,te.T=null;var n=_e.p;_e.p=2;var a=$e;$e|=4;try{s2(t,e);var l=Xm,i=jT(e.containerInfo),o=l.focusedElem,s=l.selectionRange;if(i!==o&&o&&o.ownerDocument&&UT(o.ownerDocument.documentElement,o)){if(s!==null&&Ky(o)){var u=s.start,c=s.end;if(c===void 0&&(c=u),"selectionStart"in o)o.selectionStart=u,o.selectionEnd=Math.min(c,o.value.length);else{var d=o.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),b=o.textContent.length,v=Math.min(s.start,b),S=s.end===void 0?v:Math.min(s.end,b);!p.extend&&v>S&&(i=S,S=v,v=i);var h=aE(o,v),y=aE(o,S);if(h&&y&&(p.rangeCount!==1||p.anchorNode!==h.node||p.anchorOffset!==h.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var E=d.createRange();E.setStart(h.node,h.offset),p.removeAllRanges(),v>S?(p.addRange(E),p.extend(y.node,y.offset)):(E.setEnd(y.node,y.offset),p.addRange(E))}}}}for(d=[],p=o;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<d.length;o++){var x=d[o];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}Qd=!!Wm,Xm=Wm=null}finally{$e=a,_e.p=n,te.T=r}}e.current=t,ft=2}}function T2(){if(ft===2){ft=0;var e=Pa,t=qi,r=(t.flags&8772)!==0;if(t.subtreeFlags&8772||r){r=te.T,te.T=null;var n=_e.p;_e.p=2;var a=$e;$e|=4;try{n2(e,t.alternate,t)}finally{$e=a,_e.p=n,te.T=r}}ft=3}}function w2(){if(ft===4||ft===3){ft=0,l7();var e=Pa,t=qi,r=Zn,n=m2;t.subtreeFlags&10256||t.flags&10256?ft=5:(ft=0,qi=Pa=null,A2(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Ba=null),Py(r),t=t.stateNode,hr&&typeof hr.onCommitFiberRoot=="function")try{hr.onCommitFiberRoot(yu,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=te.T,a=_e.p,_e.p=2,te.T=null;try{for(var l=e.onRecoverableError,i=0;i<n.length;i++){var o=n[i];l(o.value,{componentStack:o.stack})}}finally{te.T=t,_e.p=a}}Zn&3&&Wf(),Cn(e),a=e.pendingLanes,r&261930&&a&42?e===Vm?Rs++:(Rs=0,Vm=e):Rs=0,Cu(0)}}function A2(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,xu(t)))}function Wf(){return C2(),T2(),w2(),O2()}function O2(){if(ft!==5)return!1;var e=Pa,t=Km;Km=0;var r=Py(Zn),n=te.T,a=_e.p;try{_e.p=32>r?32:r,te.T=null,r=Gm,Gm=null;var l=Pa,i=Zn;if(ft=0,qi=Pa=null,Zn=0,$e&6)throw Error(j(331));var o=$e;if($e|=4,p2(l.current),c2(l,l.current,i,r),$e=o,Cu(0,!1),hr&&typeof hr.onPostCommitFiberRoot=="function")try{hr.onPostCommitFiberRoot(yu,l)}catch{}return!0}finally{_e.p=a,te.T=n,A2(e,t)}}function PE(e,t,r){t=Lr(r,t),t=km(e.stateNode,t,2),e=Fa(e,t,2),e!==null&&(vu(e,2),Cn(e))}function we(e,t,r){if(e.tag===3)PE(e,e,r);else for(;t!==null;){if(t.tag===3){PE(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Ba===null||!Ba.has(n))){e=Lr(r,e),r=Kw(2),n=Fa(t,r,2),n!==null&&(Gw(r,n,t,e),vu(n,2),Cn(n));break}}t=t.return}}function Th(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new R9;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(r)||(bb=!0,a.add(r),e=B9.bind(null,e,t,r),t.then(e,e))}function B9(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Re===e&&(fe&r)===r&&(We===4||We===3&&(fe&62914560)===fe&&300>pr()-Vf?!($e&2)&&Wi(e,0):vb|=r,Yi===fe&&(Yi=0)),Cn(e)}function D2(e,t){t===0&&(t=ST()),e=jl(e,t),e!==null&&(vu(e,t),Cn(e))}function P9(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),D2(e,r)}function I9(e,t){var r=0;switch(e.tag){case 31:case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(j(314))}n!==null&&n.delete(t),D2(e,r)}function k9(e,t){return Fy(e,t)}var Gd=null,si=null,Ym=!1,Vd=!1,wh=!1,Da=0;function Cn(e){e!==si&&e.next===null&&(si===null?Gd=si=e:si=si.next=e),Vd=!0,Ym||(Ym=!0,H9())}function Cu(e,t){if(!wh&&Vd){wh=!0;do for(var r=!1,n=Gd;n!==null;){if(e!==0){var a=n.pendingLanes;if(a===0)var l=0;else{var i=n.suspendedLanes,o=n.pingedLanes;l=(1<<31-gr(42|e)+1)-1,l&=a&~(i&~o),l=l&201326741?l&201326741|1:l?l|2:0}l!==0&&(r=!0,IE(n,l))}else l=fe,l=Ff(n,n===Re?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),!(l&3)||bu(n,l)||(r=!0,IE(n,l));n=n.next}while(r);wh=!1}}function z9(){R2()}function R2(){Vd=Ym=!1;var e=0;Da!==0&&Z9()&&(e=Da);for(var t=pr(),r=null,n=Gd;n!==null;){var a=n.next,l=N2(n,t);l===0?(n.next=null,r===null?Gd=a:r.next=a,a===null&&(si=r)):(r=n,(e!==0||l&3)&&(Vd=!0)),n=a}ft!==0&&ft!==5||Cu(e),Da!==0&&(Da=0)}function N2(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,l=e.pendingLanes&-62914561;0<l;){var i=31-gr(l),o=1<<i,s=a[i];s===-1?(!(o&r)||o&n)&&(a[i]=p7(o,t)):s<=t&&(e.expiredLanes|=o),l&=~o}if(t=Re,r=fe,r=Ff(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,r===0||e===t&&(Te===2||Te===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&th(n),e.callbackNode=null,e.callbackPriority=0;if(!(r&3)||bu(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(n!==null&&th(n),Py(r)){case 2:case 8:r=vT;break;case 32:r=Ad;break;case 268435456:r=ET;break;default:r=Ad}return n=L2.bind(null,e),r=Fy(r,n),e.callbackPriority=t,e.callbackNode=r,t}return n!==null&&n!==null&&th(n),e.callbackPriority=2,e.callbackNode=null,2}function L2(e,t){if(ft!==0&&ft!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(Wf()&&e.callbackNode!==r)return null;var n=fe;return n=Ff(e,e===Re?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(b2(e,n,t),N2(e,pr()),e.callbackNode!=null&&e.callbackNode===r?L2.bind(null,e):null)}function IE(e,t){if(Wf())return null;b2(e,t,!0)}function H9(){J9(function(){$e&6?Fy(bT,z9):R2()})}function Sb(){if(Da===0){var e=Ki;e===0&&(e=Xu,Xu<<=1,!(Xu&261888)&&(Xu=256)),Da=e}return Da}function kE(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Gc(""+e)}function zE(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function U9(e,t,r,n,a){if(t==="submit"&&r&&r.stateNode===a){var l=kE((a[rr]||null).action),i=n.submitter;i&&(t=(t=i[rr]||null)?kE(t.formAction):i.getAttribute("formAction"),t!==null&&(l=t,i=null));var o=new Bf("action","action",null,n,a);e.push({event:o,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Da!==0){var s=i?zE(a,i):new FormData(a);Pm(r,{pending:!0,data:s,method:a.method,action:l},null,s)}}else typeof l=="function"&&(o.preventDefault(),s=i?zE(a,i):new FormData(a),Pm(r,{pending:!0,data:s,method:a.method,action:l},l,s))},currentTarget:a}]})}}for(var Ah=0;Ah<Cm.length;Ah++){var Oh=Cm[Ah],j9=Oh.toLowerCase(),K9=Oh[0].toUpperCase()+Oh.slice(1);en(j9,"on"+K9)}en(GT,"onAnimationEnd");en(VT,"onAnimationIteration");en(YT,"onAnimationStart");en("dblclick","onDoubleClick");en("focusin","onFocus");en("focusout","onBlur");en(i9,"onTransitionRun");en(o9,"onTransitionStart");en(s9,"onTransitionCancel");en(qT,"onTransitionEnd");Ui("onMouseEnter",["mouseout","mouseover"]);Ui("onMouseLeave",["mouseout","mouseover"]);Ui("onPointerEnter",["pointerout","pointerover"]);Ui("onPointerLeave",["pointerout","pointerover"]);zl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));zl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));zl("onBeforeInput",["compositionend","keypress","textInput","paste"]);zl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));zl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));zl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ys="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(" "),G9=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ys));function M2(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],a=n.event;n=n.listeners;e:{var l=void 0;if(t)for(var i=n.length-1;0<=i;i--){var o=n[i],s=o.instance,u=o.currentTarget;if(o=o.listener,s!==l&&a.isPropagationStopped())break e;l=o,a.currentTarget=u;try{l(a)}catch(c){Dd(c)}a.currentTarget=null,l=s}else for(i=0;i<n.length;i++){if(o=n[i],s=o.instance,u=o.currentTarget,o=o.listener,s!==l&&a.isPropagationStopped())break e;l=o,a.currentTarget=u;try{l(a)}catch(c){Dd(c)}a.currentTarget=null,l=s}}}}function ce(e,t){var r=t[ym];r===void 0&&(r=t[ym]=new Set);var n=e+"__bubble";r.has(n)||(F2(t,e,2,!1),r.add(n))}function Dh(e,t,r){var n=0;t&&(n|=4),F2(r,e,n,t)}var ic="_reactListening"+Math.random().toString(36).slice(2);function xb(e){if(!e[ic]){e[ic]=!0,TT.forEach(function(r){r!=="selectionchange"&&(G9.has(r)||Dh(r,!1,e),Dh(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ic]||(t[ic]=!0,Dh("selectionchange",!1,t))}}function F2(e,t,r,n){switch(q2(t)){case 2:var a=vN;break;case 8:a=EN;break;default:a=Tb}r=a.bind(null,t,r,e),a=void 0,!xm||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):a!==void 0?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function Rh(e,t,r,n,a){var l=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var i=n.tag;if(i===3||i===4){var o=n.stateNode.containerInfo;if(o===a)break;if(i===4)for(i=n.return;i!==null;){var s=i.tag;if((s===3||s===4)&&i.stateNode.containerInfo===a)return;i=i.return}for(;o!==null;){if(i=hi(o),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){n=l=i;continue e}o=o.parentNode}}n=n.return}MT(function(){var u=l,c=zy(r),d=[];e:{var f=WT.get(e);if(f!==void 0){var p=Bf,b=e;switch(e){case"keypress":if(Yc(r)===0)break e;case"keydown":case"keyup":p=I7;break;case"focusin":b="focus",p=ih;break;case"focusout":b="blur",p=ih;break;case"beforeblur":case"afterblur":p=ih;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=qv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=T7;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=H7;break;case GT:case VT:case YT:p=O7;break;case qT:p=j7;break;case"scroll":case"scrollend":p=_7;break;case"wheel":p=G7;break;case"copy":case"cut":case"paste":p=R7;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Xv;break;case"toggle":case"beforetoggle":p=Y7}var v=(t&4)!==0,S=!v&&(e==="scroll"||e==="scrollend"),h=v?f!==null?f+"Capture":null:f;v=[];for(var y=u,E;y!==null;){var x=y;if(E=x.stateNode,x=x.tag,x!==5&&x!==26&&x!==27||E===null||h===null||(x=ks(y,h),x!=null&&v.push(qs(y,x,E))),S)break;y=y.return}0<v.length&&(f=new p(f,b,null,r,c),d.push({event:f,listeners:v}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&r!==Sm&&(b=r.relatedTarget||r.fromElement)&&(hi(b)||b[vo]))break e;if((p||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,p?(b=r.relatedTarget||r.toElement,p=u,b=b?hi(b):null,b!==null&&(S=mu(b),v=b.tag,b!==S||v!==5&&v!==27&&v!==6)&&(b=null)):(p=null,b=u),p!==b)){if(v=qv,x="onMouseLeave",h="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(v=Xv,x="onPointerLeave",h="onPointerEnter",y="pointer"),S=p==null?f:us(p),E=b==null?f:us(b),f=new v(x,y+"leave",p,r,c),f.target=S,f.relatedTarget=E,x=null,hi(c)===u&&(v=new v(h,y+"enter",b,r,c),v.target=E,v.relatedTarget=S,x=v),S=x,p&&b)t:{for(v=V9,h=p,y=b,E=0,x=h;x;x=v(x))E++;x=0;for(var T=y;T;T=v(T))x++;for(;0<E-x;)h=v(h),E--;for(;0<x-E;)y=v(y),x--;for(;E--;){if(h===y||y!==null&&h===y.alternate){v=h;break t}h=v(h),y=v(y)}v=null}else v=null;p!==null&&HE(d,f,p,v,!1),b!==null&&S!==null&&HE(d,S,b,v,!0)}}e:{if(f=u?us(u):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var _=eE;else if(Jv(f))if(zT)_=n9;else{_=t9;var C=e9}else p=f.nodeName,!p||p.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?u&&ky(u.elementType)&&(_=eE):_=r9;if(_&&(_=_(e,u))){kT(d,_,r,c);break e}C&&C(e,f,u),e==="focusout"&&u&&f.type==="number"&&u.memoizedProps.value!=null&&Em(f,"number",f.value)}switch(C=u?us(u):window,e){case"focusin":(Jv(C)||C.contentEditable==="true")&&(yi=C,$m=u,xs=null);break;case"focusout":xs=$m=yi=null;break;case"mousedown":_m=!0;break;case"contextmenu":case"mouseup":case"dragend":_m=!1,lE(d,r,c);break;case"selectionchange":if(l9)break;case"keydown":case"keyup":lE(d,r,c)}var O;if(jy)e:{switch(e){case"compositionstart":var D="onCompositionStart";break e;case"compositionend":D="onCompositionEnd";break e;case"compositionupdate":D="onCompositionUpdate";break e}D=void 0}else mi?PT(e,r)&&(D="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(D="onCompositionStart");D&&(BT&&r.locale!=="ko"&&(mi||D!=="onCompositionStart"?D==="onCompositionEnd"&&mi&&(O=FT()):(wa=c,Hy="value"in wa?wa.value:wa.textContent,mi=!0)),C=Yd(u,D),0<C.length&&(D=new Wv(D,e,null,r,c),d.push({event:D,listeners:C}),O?D.data=O:(O=IT(r),O!==null&&(D.data=O)))),(O=W7?X7(e,r):Z7(e,r))&&(D=Yd(u,"onBeforeInput"),0<D.length&&(C=new Wv("onBeforeInput","beforeinput",null,r,c),d.push({event:C,listeners:D}),C.data=O)),U9(d,e,u,r,c)}M2(d,t)})}function qs(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Yd(e,t){for(var r=t+"Capture",n=[];e!==null;){var a=e,l=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||l===null||(a=ks(e,r),a!=null&&n.unshift(qs(e,a,l)),a=ks(e,t),a!=null&&n.push(qs(e,a,l))),e.tag===3)return n;e=e.return}return[]}function V9(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function HE(e,t,r,n,a){for(var l=t._reactName,i=[];r!==null&&r!==n;){var o=r,s=o.alternate,u=o.stateNode;if(o=o.tag,s!==null&&s===n)break;o!==5&&o!==26&&o!==27||u===null||(s=u,a?(u=ks(r,l),u!=null&&i.unshift(qs(r,u,s))):a||(u=ks(r,l),u!=null&&i.push(qs(r,u,s)))),r=r.return}i.length!==0&&e.push({event:t,listeners:i})}var Y9=/\r\n?/g,q9=/\u0000|\uFFFD/g;function UE(e){return(typeof e=="string"?e:""+e).replace(Y9,`
|
|
42
|
-
`).replace(q9,"")}function B2(e,t){return t=UE(t),UE(e)===t}function Oe(e,t,r,n,a,l){switch(r){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||ji(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&ji(e,""+n);break;case"className":Ju(e,"class",n);break;case"tabIndex":Ju(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Ju(e,r,n);break;case"style":LT(e,n,l);break;case"data":if(t!=="object"){Ju(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(r);break}n=Gc(""+n),e.setAttribute(r,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(r,"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 l=="function"&&(r==="formAction"?(t!=="input"&&Oe(e,t,"name",a.name,a,null),Oe(e,t,"formEncType",a.formEncType,a,null),Oe(e,t,"formMethod",a.formMethod,a,null),Oe(e,t,"formTarget",a.formTarget,a,null)):(Oe(e,t,"encType",a.encType,a,null),Oe(e,t,"method",a.method,a,null),Oe(e,t,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(r);break}n=Gc(""+n),e.setAttribute(r,n);break;case"onClick":n!=null&&(e.onclick=Vn);break;case"onScroll":n!=null&&ce("scroll",e);break;case"onScrollEnd":n!=null&&ce("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(j(61));if(r=n.__html,r!=null){if(a.children!=null)throw Error(j(60));e.innerHTML=r}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}r=Gc(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(r,""+n):e.removeAttribute(r);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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":n===!0?e.setAttribute(r,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(r,n):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(r,n):e.removeAttribute(r);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(r):e.setAttribute(r,n);break;case"popover":ce("beforetoggle",e),ce("toggle",e),Kc(e,"popover",n);break;case"xlinkActuate":Dn(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Dn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Dn(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Dn(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Dn(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Dn(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Dn(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Dn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Dn(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Kc(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=x7.get(r)||r,Kc(e,r,n))}}function qm(e,t,r,n,a,l){switch(r){case"style":LT(e,n,l);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(j(61));if(r=n.__html,r!=null){if(a.children!=null)throw Error(j(60));e.innerHTML=r}}break;case"children":typeof n=="string"?ji(e,n):(typeof n=="number"||typeof n=="bigint")&&ji(e,""+n);break;case"onScroll":n!=null&&ce("scroll",e);break;case"onScrollEnd":n!=null&&ce("scrollend",e);break;case"onClick":n!=null&&(e.onclick=Vn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!wT.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(a=r.endsWith("Capture"),t=r.slice(2,a?r.length-7:void 0),l=e[rr]||null,l=l!=null?l[r]:null,typeof l=="function"&&e.removeEventListener(t,l,a),typeof n=="function")){typeof l!="function"&&l!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,n,a);break e}r in e?e[r]=n:n===!0?e.setAttribute(r,""):Kc(e,r,n)}}}function wt(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ce("error",e),ce("load",e);var n=!1,a=!1,l;for(l in r)if(r.hasOwnProperty(l)){var i=r[l];if(i!=null)switch(l){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(j(137,t));default:Oe(e,t,l,i,r,null)}}a&&Oe(e,t,"srcSet",r.srcSet,r,null),n&&Oe(e,t,"src",r.src,r,null);return;case"input":ce("invalid",e);var o=l=i=a=null,s=null,u=null;for(n in r)if(r.hasOwnProperty(n)){var c=r[n];if(c!=null)switch(n){case"name":a=c;break;case"type":i=c;break;case"checked":s=c;break;case"defaultChecked":u=c;break;case"value":l=c;break;case"defaultValue":o=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(j(137,t));break;default:Oe(e,t,n,c,r,null)}}DT(e,l,o,s,u,i,a,!1);return;case"select":ce("invalid",e),n=i=l=null;for(a in r)if(r.hasOwnProperty(a)&&(o=r[a],o!=null))switch(a){case"value":l=o;break;case"defaultValue":i=o;break;case"multiple":n=o;default:Oe(e,t,a,o,r,null)}t=l,r=i,e.multiple=!!n,t!=null?Oi(e,!!n,t,!1):r!=null&&Oi(e,!!n,r,!0);return;case"textarea":ce("invalid",e),l=a=n=null;for(i in r)if(r.hasOwnProperty(i)&&(o=r[i],o!=null))switch(i){case"value":n=o;break;case"defaultValue":a=o;break;case"children":l=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(j(91));break;default:Oe(e,t,i,o,r,null)}NT(e,n,a,l);return;case"option":for(s in r)if(r.hasOwnProperty(s)&&(n=r[s],n!=null))switch(s){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:Oe(e,t,s,n,r,null)}return;case"dialog":ce("beforetoggle",e),ce("toggle",e),ce("cancel",e),ce("close",e);break;case"iframe":case"object":ce("load",e);break;case"video":case"audio":for(n=0;n<Ys.length;n++)ce(Ys[n],e);break;case"image":ce("error",e),ce("load",e);break;case"details":ce("toggle",e);break;case"embed":case"source":case"link":ce("error",e),ce("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 r)if(r.hasOwnProperty(u)&&(n=r[u],n!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(j(137,t));default:Oe(e,t,u,n,r,null)}return;default:if(ky(t)){for(c in r)r.hasOwnProperty(c)&&(n=r[c],n!==void 0&&qm(e,t,c,n,r,void 0));return}}for(o in r)r.hasOwnProperty(o)&&(n=r[o],n!=null&&Oe(e,t,o,n,r,null))}function W9(e,t,r,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,l=null,i=null,o=null,s=null,u=null,c=null;for(p in r){var d=r[p];if(r.hasOwnProperty(p)&&d!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":s=d;default:n.hasOwnProperty(p)||Oe(e,t,p,null,n,d)}}for(var f in n){var p=n[f];if(d=r[f],n.hasOwnProperty(f)&&(p!=null||d!=null))switch(f){case"type":l=p;break;case"name":a=p;break;case"checked":u=p;break;case"defaultChecked":c=p;break;case"value":i=p;break;case"defaultValue":o=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(j(137,t));break;default:p!==d&&Oe(e,t,f,p,n,d)}}vm(e,i,o,s,u,c,l,a);return;case"select":p=i=o=f=null;for(l in r)if(s=r[l],r.hasOwnProperty(l)&&s!=null)switch(l){case"value":break;case"multiple":p=s;default:n.hasOwnProperty(l)||Oe(e,t,l,null,n,s)}for(a in n)if(l=n[a],s=r[a],n.hasOwnProperty(a)&&(l!=null||s!=null))switch(a){case"value":f=l;break;case"defaultValue":o=l;break;case"multiple":i=l;default:l!==s&&Oe(e,t,a,l,n,s)}t=o,r=i,n=p,f!=null?Oi(e,!!r,f,!1):!!n!=!!r&&(t!=null?Oi(e,!!r,t,!0):Oi(e,!!r,r?[]:"",!1));return;case"textarea":p=f=null;for(o in r)if(a=r[o],r.hasOwnProperty(o)&&a!=null&&!n.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Oe(e,t,o,null,n,a)}for(i in n)if(a=n[i],l=r[i],n.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case"value":f=a;break;case"defaultValue":p=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(j(91));break;default:a!==l&&Oe(e,t,i,a,n,l)}RT(e,f,p);return;case"option":for(var b in r)if(f=r[b],r.hasOwnProperty(b)&&f!=null&&!n.hasOwnProperty(b))switch(b){case"selected":e.selected=!1;break;default:Oe(e,t,b,null,n,f)}for(s in n)if(f=n[s],p=r[s],n.hasOwnProperty(s)&&f!==p&&(f!=null||p!=null))switch(s){case"selected":e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:Oe(e,t,s,f,n,p)}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 v in r)f=r[v],r.hasOwnProperty(v)&&f!=null&&!n.hasOwnProperty(v)&&Oe(e,t,v,null,n,f);for(u in n)if(f=n[u],p=r[u],n.hasOwnProperty(u)&&f!==p&&(f!=null||p!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(j(137,t));break;default:Oe(e,t,u,f,n,p)}return;default:if(ky(t)){for(var S in r)f=r[S],r.hasOwnProperty(S)&&f!==void 0&&!n.hasOwnProperty(S)&&qm(e,t,S,void 0,n,f);for(c in n)f=n[c],p=r[c],!n.hasOwnProperty(c)||f===p||f===void 0&&p===void 0||qm(e,t,c,f,n,p);return}}for(var h in r)f=r[h],r.hasOwnProperty(h)&&f!=null&&!n.hasOwnProperty(h)&&Oe(e,t,h,null,n,f);for(d in n)f=n[d],p=r[d],!n.hasOwnProperty(d)||f===p||f==null&&p==null||Oe(e,t,d,f,n,p)}function jE(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function X9(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,r=performance.getEntriesByType("resource"),n=0;n<r.length;n++){var a=r[n],l=a.transferSize,i=a.initiatorType,o=a.duration;if(l&&o&&jE(i)){for(i=0,o=a.responseEnd,n+=1;n<r.length;n++){var s=r[n],u=s.startTime;if(u>o)break;var c=s.transferSize,d=s.initiatorType;c&&jE(d)&&(s=s.responseEnd,i+=c*(s<o?1:(o-u)/(s-u)))}if(--n,t+=8*(l+i)/(a.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 Wm=null,Xm=null;function qd(e){return e.nodeType===9?e:e.ownerDocument}function KE(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 P2(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 Zm(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 Nh=null;function Z9(){var e=window.event;return e&&e.type==="popstate"?e===Nh?!1:(Nh=e,!0):(Nh=null,!1)}var I2=typeof setTimeout=="function"?setTimeout:void 0,Q9=typeof clearTimeout=="function"?clearTimeout:void 0,GE=typeof Promise=="function"?Promise:void 0,J9=typeof queueMicrotask=="function"?queueMicrotask:typeof GE<"u"?function(e){return GE.resolve(null).then(e).catch(eN)}:I2;function eN(e){setTimeout(function(){throw e})}function qa(e){return e==="head"}function VE(e,t){var r=t,n=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"||r==="/&"){if(n===0){e.removeChild(a),Zi(t);return}n--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")n++;else if(r==="html")Ns(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,Ns(r);for(var l=r.firstChild;l;){var i=l.nextSibling,o=l.nodeName;l[Eu]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&l.rel.toLowerCase()==="stylesheet"||r.removeChild(l),l=i}}else r==="body"&&Ns(e.ownerDocument.body);r=a}while(r);Zi(t)}function YE(e,t){var r=e;e=0;do{var n=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=n}while(r)}function Qm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Qm(r),Iy(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function tN(e,t,r,n){for(;e.nodeType===1;){var a=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Eu])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(l=e.getAttribute("rel"),l==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(l!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(l=e.getAttribute("src"),(l!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var l=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===l)return e}else return e;if(e=Pr(e.nextSibling),e===null)break}return null}function rN(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=Pr(e.nextSibling),e===null))return null;return e}function k2(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Pr(e.nextSibling),e===null))return null;return e}function Jm(e){return e.data==="$?"||e.data==="$~"}function e0(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function nN(e,t){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||r.readyState!=="loading")t();else{var n=function(){t(),r.removeEventListener("DOMContentLoaded",n)};r.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Pr(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 t0=null;function qE(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(t===0)return Pr(e.nextSibling);t--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||t++}e=e.nextSibling}return null}function WE(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(t===0)return e;t--}else r!=="/$"&&r!=="/&"||t++}e=e.previousSibling}return null}function z2(e,t,r){switch(t=qd(r),e){case"html":if(e=t.documentElement,!e)throw Error(j(452));return e;case"head":if(e=t.head,!e)throw Error(j(453));return e;case"body":if(e=t.body,!e)throw Error(j(454));return e;default:throw Error(j(451))}}function Ns(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Iy(e)}var kr=new Map,XE=new Set;function Wd(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var la=_e.d;_e.d={f:aN,r:lN,D:iN,C:oN,L:sN,m:uN,X:dN,S:cN,M:fN};function aN(){var e=la.f(),t=Yf();return e||t}function lN(e){var t=Eo(e);t!==null&&t.tag===5&&t.type==="form"?Lw(t):la.r(e)}var _o=typeof document>"u"?null:document;function H2(e,t,r){var n=_o;if(n&&typeof t=="string"&&t){var a=Nr(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof r=="string"&&(a+='[crossorigin="'+r+'"]'),XE.has(a)||(XE.add(a),e={rel:e,crossOrigin:r,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),wt(t,"link",e),mt(t),n.head.appendChild(t)))}}function iN(e){la.D(e),H2("dns-prefetch",e,null)}function oN(e,t){la.C(e,t),H2("preconnect",e,t)}function sN(e,t,r){la.L(e,t,r);var n=_o;if(n&&e&&t){var a='link[rel="preload"][as="'+Nr(t)+'"]';t==="image"&&r&&r.imageSrcSet?(a+='[imagesrcset="'+Nr(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(a+='[imagesizes="'+Nr(r.imageSizes)+'"]')):a+='[href="'+Nr(e)+'"]';var l=a;switch(t){case"style":l=Xi(e);break;case"script":l=Co(e)}kr.has(l)||(e=Ie({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),kr.set(l,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(Tu(l))||t==="script"&&n.querySelector(wu(l))||(t=n.createElement("link"),wt(t,"link",e),mt(t),n.head.appendChild(t)))}}function uN(e,t){la.m(e,t);var r=_o;if(r&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+Nr(n)+'"][href="'+Nr(e)+'"]',l=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=Co(e)}if(!kr.has(l)&&(e=Ie({rel:"modulepreload",href:e},t),kr.set(l,e),r.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(wu(l)))return}n=r.createElement("link"),wt(n,"link",e),mt(n),r.head.appendChild(n)}}}function cN(e,t,r){la.S(e,t,r);var n=_o;if(n&&e){var a=Ai(n).hoistableStyles,l=Xi(e);t=t||"default";var i=a.get(l);if(!i){var o={loading:0,preload:null};if(i=n.querySelector(Tu(l)))o.loading=5;else{e=Ie({rel:"stylesheet",href:e,"data-precedence":t},r),(r=kr.get(l))&&$b(e,r);var s=i=n.createElement("link");mt(s),wt(s,"link",e),s._p=new Promise(function(u,c){s.onload=u,s.onerror=c}),s.addEventListener("load",function(){o.loading|=1}),s.addEventListener("error",function(){o.loading|=2}),o.loading|=4,td(i,t,n)}i={type:"stylesheet",instance:i,count:1,state:o},a.set(l,i)}}}function dN(e,t){la.X(e,t);var r=_o;if(r&&e){var n=Ai(r).hoistableScripts,a=Co(e),l=n.get(a);l||(l=r.querySelector(wu(a)),l||(e=Ie({src:e,async:!0},t),(t=kr.get(a))&&_b(e,t),l=r.createElement("script"),mt(l),wt(l,"link",e),r.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},n.set(a,l))}}function fN(e,t){la.M(e,t);var r=_o;if(r&&e){var n=Ai(r).hoistableScripts,a=Co(e),l=n.get(a);l||(l=r.querySelector(wu(a)),l||(e=Ie({src:e,async:!0,type:"module"},t),(t=kr.get(a))&&_b(e,t),l=r.createElement("script"),mt(l),wt(l,"link",e),r.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},n.set(a,l))}}function ZE(e,t,r,n){var a=(a=Na.current)?Wd(a):null;if(!a)throw Error(j(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=Xi(r.href),r=Ai(a).hoistableStyles,n=r.get(t),n||(n={type:"style",instance:null,count:0,state:null},r.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=Xi(r.href);var l=Ai(a).hoistableStyles,i=l.get(e);if(i||(a=a.ownerDocument||a,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},l.set(e,i),(l=a.querySelector(Tu(e)))&&!l._p&&(i.instance=l,i.state.loading=5),kr.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},kr.set(e,r),l||pN(a,e,r,i.state))),t&&n===null)throw Error(j(528,""));return i}if(t&&n!==null)throw Error(j(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Co(r),r=Ai(a).hoistableScripts,n=r.get(t),n||(n={type:"script",instance:null,count:0,state:null},r.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(j(444,e))}}function Xi(e){return'href="'+Nr(e)+'"'}function Tu(e){return'link[rel="stylesheet"]['+e+"]"}function U2(e){return Ie({},e,{"data-precedence":e.precedence,precedence:null})}function pN(e,t,r,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),wt(t,"link",r),mt(t),e.head.appendChild(t))}function Co(e){return'[src="'+Nr(e)+'"]'}function wu(e){return"script[async]"+e}function QE(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Nr(r.href)+'"]');if(n)return t.instance=n,mt(n),n;var a=Ie({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),mt(n),wt(n,"style",a),td(n,r.precedence,e),t.instance=n;case"stylesheet":a=Xi(r.href);var l=e.querySelector(Tu(a));if(l)return t.state.loading|=4,t.instance=l,mt(l),l;n=U2(r),(a=kr.get(a))&&$b(n,a),l=(e.ownerDocument||e).createElement("link"),mt(l);var i=l;return i._p=new Promise(function(o,s){i.onload=o,i.onerror=s}),wt(l,"link",n),t.state.loading|=4,td(l,r.precedence,e),t.instance=l;case"script":return l=Co(r.src),(a=e.querySelector(wu(l)))?(t.instance=a,mt(a),a):(n=r,(a=kr.get(l))&&(n=Ie({},r),_b(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),mt(a),wt(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(j(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(n=t.instance,t.state.loading|=4,td(n,r.precedence,e));return t.instance}function td(e,t,r){for(var n=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,l=a,i=0;i<n.length;i++){var o=n[i];if(o.dataset.precedence===t)l=o;else if(l!==a)break}l?l.parentNode.insertBefore(e,l.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function $b(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function _b(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var rd=null;function JE(e,t,r){if(rd===null){var n=new Map,a=rd=new Map;a.set(r,n)}else a=rd,n=a.get(r),n||(n=new Map,a.set(r,n));if(n.has(e))return n;for(n.set(e,null),r=r.getElementsByTagName(e),a=0;a<r.length;a++){var l=r[a];if(!(l[Eu]||l[$t]||e==="link"&&l.getAttribute("rel")==="stylesheet")&&l.namespaceURI!=="http://www.w3.org/2000/svg"){var i=l.getAttribute(t)||"";i=e+i;var o=n.get(i);o?o.push(l):n.set(i,[l])}}return n}function eS(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function hN(e,t,r){if(r===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 j2(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function gN(e,t,r,n){if(r.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(r.state.loading&4)){if(r.instance===null){var a=Xi(n.href),l=t.querySelector(Tu(a));if(l){t=l._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Xd.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=l,mt(l);return}l=t.ownerDocument||t,n=U2(n),(a=kr.get(a))&&$b(n,a),l=l.createElement("link"),mt(l);var i=l;i._p=new Promise(function(o,s){i.onload=o,i.onerror=s}),wt(l,"link",n),r.instance=l}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&!(r.state.loading&3)&&(e.count++,r=Xd.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var Lh=0;function mN(e,t){return e.stylesheets&&e.count===0&&nd(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var n=setTimeout(function(){if(e.stylesheets&&nd(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4+t);0<e.imgBytes&&Lh===0&&(Lh=62500*X9());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&nd(e,e.stylesheets),e.unsuspend)){var l=e.unsuspend;e.unsuspend=null,l()}},(e.imgBytes>Lh?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function Xd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zd=null;function nd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zd=new Map,t.forEach(yN,e),Zd=null,Xd.call(e))}function yN(e,t){if(!(t.state.loading&4)){var r=Zd.get(e);if(r)var n=r.get(null);else{r=new Map,Zd.set(e,r);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),l=0;l<a.length;l++){var i=a[l];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(r.set(i.dataset.precedence,i),n=i)}n&&r.set(null,n)}a=t.instance,i=a.getAttribute("data-precedence"),l=r.get(i)||n,l===n&&r.set(null,a),r.set(i,a),this.count++,n=Xd.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),l?l.parentNode.insertBefore(a,l.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Ws={$$typeof:Gn,Provider:null,Consumer:null,_currentValue:El,_currentValue2:El,_threadCount:0};function bN(e,t,r,n,a,l,i,o,s){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=rh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rh(0),this.hiddenUpdates=rh(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=l,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function K2(e,t,r,n,a,l,i,o,s,u,c,d){return e=new bN(e,t,r,i,s,u,c,d,o),t=1,l===!0&&(t|=24),l=dr(3,null,null,t),e.current=l,l.stateNode=e,t=Xy(),t.refCount++,e.pooledCache=t,t.refCount++,l.memoizedState={element:n,isDehydrated:r,cache:t},Jy(l),e}function G2(e){return e?(e=Ei,e):Ei}function V2(e,t,r,n,a,l){a=G2(a),n.context===null?n.context=a:n.pendingContext=a,n=Ma(t),n.payload={element:r},l=l===void 0?null:l,l!==null&&(n.callback=l),r=Fa(e,n,t),r!==null&&(tr(r,e,t),_s(r,e,t))}function tS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Cb(e,t){tS(e,t),(e=e.alternate)&&tS(e,t)}function Y2(e){if(e.tag===13||e.tag===31){var t=jl(e,67108864);t!==null&&tr(t,e,67108864),Cb(e,67108864)}}function rS(e){if(e.tag===13||e.tag===31){var t=mr();t=By(t);var r=jl(e,t);r!==null&&tr(r,e,t),Cb(e,t)}}var Qd=!0;function vN(e,t,r,n){var a=te.T;te.T=null;var l=_e.p;try{_e.p=2,Tb(e,t,r,n)}finally{_e.p=l,te.T=a}}function EN(e,t,r,n){var a=te.T;te.T=null;var l=_e.p;try{_e.p=8,Tb(e,t,r,n)}finally{_e.p=l,te.T=a}}function Tb(e,t,r,n){if(Qd){var a=r0(n);if(a===null)Rh(e,t,n,Jd,r),nS(e,n);else if(xN(a,e,t,r,n))n.stopPropagation();else if(nS(e,n),t&4&&-1<SN.indexOf(e)){for(;a!==null;){var l=Eo(a);if(l!==null)switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var i=ul(l.pendingLanes);if(i!==0){var o=l;for(o.pendingLanes|=2,o.entangledLanes|=2;i;){var s=1<<31-gr(i);o.entanglements[1]|=s,i&=~s}Cn(l),!($e&6)&&(Ud=pr()+500,Cu(0))}}break;case 31:case 13:o=jl(l,2),o!==null&&tr(o,l,2),Yf(),Cb(l,2)}if(l=r0(n),l===null&&Rh(e,t,n,Jd,r),l===a)break;a=l}a!==null&&n.stopPropagation()}else Rh(e,t,n,null,r)}}function r0(e){return e=zy(e),wb(e)}var Jd=null;function wb(e){if(Jd=null,e=hi(e),e!==null){var t=mu(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=pT(t),e!==null)return e;e=null}else if(r===31){if(e=hT(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Jd=e,null}function q2(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(i7()){case bT:return 2;case vT:return 8;case Ad:case o7:return 32;case ET:return 268435456;default:return 32}default:return 32}}var n0=!1,Ia=null,ka=null,za=null,Xs=new Map,Zs=new Map,_a=[],SN="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 nS(e,t){switch(e){case"focusin":case"focusout":Ia=null;break;case"dragenter":case"dragleave":ka=null;break;case"mouseover":case"mouseout":za=null;break;case"pointerover":case"pointerout":Xs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zs.delete(t.pointerId)}}function Vo(e,t,r,n,a,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:l,targetContainers:[a]},t!==null&&(t=Eo(t),t!==null&&Y2(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function xN(e,t,r,n,a){switch(t){case"focusin":return Ia=Vo(Ia,e,t,r,n,a),!0;case"dragenter":return ka=Vo(ka,e,t,r,n,a),!0;case"mouseover":return za=Vo(za,e,t,r,n,a),!0;case"pointerover":var l=a.pointerId;return Xs.set(l,Vo(Xs.get(l)||null,e,t,r,n,a)),!0;case"gotpointercapture":return l=a.pointerId,Zs.set(l,Vo(Zs.get(l)||null,e,t,r,n,a)),!0}return!1}function W2(e){var t=hi(e.target);if(t!==null){var r=mu(t);if(r!==null){if(t=r.tag,t===13){if(t=pT(r),t!==null){e.blockedOn=t,Hv(e.priority,function(){rS(r)});return}}else if(t===31){if(t=hT(r),t!==null){e.blockedOn=t,Hv(e.priority,function(){rS(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ad(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=r0(e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Sm=n,r.target.dispatchEvent(n),Sm=null}else return t=Eo(r),t!==null&&Y2(t),e.blockedOn=r,!1;t.shift()}return!0}function aS(e,t,r){ad(e)&&r.delete(t)}function $N(){n0=!1,Ia!==null&&ad(Ia)&&(Ia=null),ka!==null&&ad(ka)&&(ka=null),za!==null&&ad(za)&&(za=null),Xs.forEach(aS),Zs.forEach(aS)}function oc(e,t){e.blockedOn===t&&(e.blockedOn=null,n0||(n0=!0,pt.unstable_scheduleCallback(pt.unstable_NormalPriority,$N)))}var sc=null;function lS(e){sc!==e&&(sc=e,pt.unstable_scheduleCallback(pt.unstable_NormalPriority,function(){sc===e&&(sc=null);for(var t=0;t<e.length;t+=3){var r=e[t],n=e[t+1],a=e[t+2];if(typeof n!="function"){if(wb(n||r)===null)continue;break}var l=Eo(r);l!==null&&(e.splice(t,3),t-=3,Pm(l,{pending:!0,data:a,method:r.method,action:n},n,a))}}))}function Zi(e){function t(s){return oc(s,e)}Ia!==null&&oc(Ia,e),ka!==null&&oc(ka,e),za!==null&&oc(za,e),Xs.forEach(t),Zs.forEach(t);for(var r=0;r<_a.length;r++){var n=_a[r];n.blockedOn===e&&(n.blockedOn=null)}for(;0<_a.length&&(r=_a[0],r.blockedOn===null);)W2(r),r.blockedOn===null&&_a.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(n=0;n<r.length;n+=3){var a=r[n],l=r[n+1],i=a[rr]||null;if(typeof l=="function")i||lS(r);else if(i){var o=null;if(l&&l.hasAttribute("formAction")){if(a=l,i=l[rr]||null)o=i.formAction;else if(wb(a)!==null)continue}else o=i.action;typeof o=="function"?r[n+1]=o:(r.splice(n,3),n-=3),lS(r)}}}function X2(){function e(l){l.canIntercept&&l.info==="react-transition"&&l.intercept({handler:function(){return new Promise(function(i){return a=i})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),n||setTimeout(r,20)}function r(){if(!n&&!navigation.transition){var l=navigation.currentEntry;l&&l.url!=null&&navigation.navigate(l.url,{state:l.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function Ab(e){this._internalRoot=e}Xf.prototype.render=Ab.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(j(409));var r=t.current,n=mr();V2(r,n,e,t,null,null)};Xf.prototype.unmount=Ab.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;V2(e.current,2,null,e,null,null),Yf(),t[vo]=null}};function Xf(e){this._internalRoot=e}Xf.prototype.unstable_scheduleHydration=function(e){if(e){var t=CT();e={blockedOn:null,target:e,priority:t};for(var r=0;r<_a.length&&t!==0&&t<_a[r].priority;r++);_a.splice(r,0,e),r===0&&W2(e)}};var iS=dT.version;if(iS!=="19.2.4")throw Error(j(527,iS,"19.2.4"));_e.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(j(188)):(e=Object.keys(e).join(","),Error(j(268,e)));return e=J8(t),e=e!==null?gT(e):null,e=e===null?null:e.stateNode,e};var _N={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:te,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uc.isDisabled&&uc.supportsFiber)try{yu=uc.inject(_N),hr=uc}catch{}}Lf.createRoot=function(e,t){if(!fT(e))throw Error(j(299));var r=!1,n="",a=Hw,l=Uw,i=jw;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(l=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=K2(e,1,!1,null,null,r,n,null,a,l,i,X2),e[vo]=t.current,xb(e),new Ab(t)};Lf.hydrateRoot=function(e,t,r){if(!fT(e))throw Error(j(299));var n=!1,a="",l=Hw,i=Uw,o=jw,s=null;return r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onUncaughtError!==void 0&&(l=r.onUncaughtError),r.onCaughtError!==void 0&&(i=r.onCaughtError),r.onRecoverableError!==void 0&&(o=r.onRecoverableError),r.formState!==void 0&&(s=r.formState)),t=K2(e,1,!0,t,r??null,n,a,s,l,i,o,X2),t.context=G2(null),r=t.current,n=mr(),n=By(n),a=Ma(n),a.callback=null,Fa(r,a,n),r=n,t.current.lanes=r,vu(t,r),Cn(t),e[vo]=t.current,xb(e),new Xf(t)};Lf.version="19.2.4";function Z2(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Z2)}catch(e){console.error(e)}}Z2(),aT.exports=Lf;var CN=aT.exports,ef=new Map;function TN(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var wN=({callback:e,children:t})=>{let r=g.useRef();return g.useLayoutEffect(()=>{r.current!==e&&(r.current=e,e())},[e]),t};typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let e=null,t=null;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}});var AN=async(e,t,r)=>{let n=await DN(t,r);if(TN()){n.render(e);return}let{promise:a,resolve:l}=Promise.withResolvers();return n.render(g.createElement(wN,{callback:l},e)),a},ON=(e,t)=>{let r=ef.get(e);r&&(r.unmount(),ef.delete(e))},DN=async(e,t)=>{let r=ef.get(e);return r||(r=CN.createRoot(e,t),ef.set(e,r)),r},tn=e=>`control-${e.replace(/\s+/g,"-")}`,Zf=e=>`set-${e.replace(/\s+/g,"-")}`;function At(){return At=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},At.apply(null,arguments)}function RN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qs(e,t){return Qs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Qs(e,t)}function NN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qs(e,t)}function a0(e){return a0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a0(e)}function LN(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Q2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Q2=function(){return!!e})()}function MN(e,t,r){if(Q2())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&Qs(a,r.prototype),a}function l0(e){var t=typeof Map=="function"?new Map:void 0;return l0=function(r){if(r===null||!LN(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return MN(r,arguments,a0(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Qs(n,r)},l0(e)}var yn=function(e){NN(t,e);function t(r){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this,RN(n)}return t}(l0(Error));function Mh(e){return Math.round(e*255)}function FN(e,t,r){return Mh(e)+","+Mh(t)+","+Mh(r)}function tf(e,t,r,n){if(n===void 0&&(n=FN),t===0)return n(r,r,r);var a=(e%360+360)%360/60,l=(1-Math.abs(2*r-1))*t,i=l*(1-Math.abs(a%2-1)),o=0,s=0,u=0;a>=0&&a<1?(o=l,s=i):a>=1&&a<2?(o=i,s=l):a>=2&&a<3?(s=l,u=i):a>=3&&a<4?(s=i,u=l):a>=4&&a<5?(o=i,u=l):a>=5&&a<6&&(o=l,u=i);var c=r-l/2,d=o+c,f=s+c,p=u+c;return n(d,f,p)}var oS={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function BN(e){if(typeof e!="string")return e;var t=e.toLowerCase();return oS[t]?"#"+oS[t]:e}var PN=/^#[a-fA-F0-9]{6}$/,IN=/^#[a-fA-F0-9]{8}$/,kN=/^#[a-fA-F0-9]{3}$/,zN=/^#[a-fA-F0-9]{4}$/,Fh=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,HN=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,UN=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,jN=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Qi(e){if(typeof e!="string")throw new yn(3);var t=BN(e);if(t.match(PN))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(IN)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(kN))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(zN)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=Fh.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var l=HN.exec(t.substring(0,50));if(l)return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10),alpha:parseFloat(""+l[4])>1?parseFloat(""+l[4])/100:parseFloat(""+l[4])};var i=UN.exec(t);if(i){var o=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,c="rgb("+tf(o,s,u)+")",d=Fh.exec(c);if(!d)throw new yn(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=jN.exec(t.substring(0,50));if(f){var p=parseInt(""+f[1],10),b=parseInt(""+f[2],10)/100,v=parseInt(""+f[3],10)/100,S="rgb("+tf(p,b,v)+")",h=Fh.exec(S);if(!h)throw new yn(4,t,S);return{red:parseInt(""+h[1],10),green:parseInt(""+h[2],10),blue:parseInt(""+h[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new yn(5)}function KN(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),l=Math.min(t,r,n),i=(a+l)/2;if(a===l)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var o,s=a-l,u=i>.5?s/(2-a-l):s/(a+l);switch(a){case t:o=(r-n)/s+(r<n?6:0);break;case r:o=(n-t)/s+2;break;default:o=(t-r)/s+4;break}return o*=60,e.alpha!==void 0?{hue:o,saturation:u,lightness:i,alpha:e.alpha}:{hue:o,saturation:u,lightness:i}}function Wa(e){return KN(Qi(e))}var GN=function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},i0=GN;function fl(e){var t=e.toString(16);return t.length===1?"0"+t:t}function Bh(e){return fl(Math.round(e*255))}function VN(e,t,r){return i0("#"+Bh(e)+Bh(t)+Bh(r))}function J2(e,t,r){return tf(e,t,r,VN)}function YN(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return J2(e.hue,e.saturation,e.lightness);throw new yn(1)}function qN(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?J2(e.hue,e.saturation,e.lightness):"rgba("+tf(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new yn(2)}function o0(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return i0("#"+fl(e)+fl(t)+fl(r));if(typeof e=="object"&&t===void 0&&r===void 0)return i0("#"+fl(e.red)+fl(e.green)+fl(e.blue));throw new yn(6)}function Ml(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=Qi(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?o0(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?o0(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new yn(7)}var WN=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},XN=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},ZN=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},QN=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Xa(e){if(typeof e!="object")throw new yn(8);if(XN(e))return Ml(e);if(WN(e))return o0(e);if(QN(e))return qN(e);if(ZN(e))return YN(e);throw new yn(8)}function eA(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):eA(e,t,n)}}function Er(e){return eA(e,e.length,[])}function JN(e,t){if(t==="transparent")return t;var r=Wa(t);return Xa(At({},r,{hue:r.hue+parseFloat(e)}))}Er(JN);function To(e,t,r){return Math.max(e,Math.min(t,r))}function eL(e,t){if(t==="transparent")return t;var r=Wa(t);return Xa(At({},r,{lightness:To(0,1,r.lightness-parseFloat(e))}))}var tL=Er(eL),Lt=tL;function rL(e,t){if(t==="transparent")return t;var r=Wa(t);return Xa(At({},r,{saturation:To(0,1,r.saturation-parseFloat(e))}))}Er(rL);function nL(e,t){if(t==="transparent")return t;var r=Wa(t);return Xa(At({},r,{lightness:To(0,1,r.lightness+parseFloat(e))}))}var aL=Er(nL),ld=aL;function lL(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=Qi(t),a=At({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),l=Qi(r),i=At({},l,{alpha:typeof l.alpha=="number"?l.alpha:1}),o=a.alpha-i.alpha,s=parseFloat(e)*2-1,u=s*o===-1?s:s+o,c=1+s*o,d=(u/c+1)/2,f=1-d,p={red:Math.floor(a.red*d+i.red*f),green:Math.floor(a.green*d+i.green*f),blue:Math.floor(a.blue*d+i.blue*f),alpha:a.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return Ml(p)}var iL=Er(lL),tA=iL;function oL(e,t){if(t==="transparent")return t;var r=Qi(t),n=typeof r.alpha=="number"?r.alpha:1,a=At({},r,{alpha:To(0,1,(n*100+parseFloat(e)*100)/100)});return Ml(a)}var sL=Er(oL),uL=sL;function cL(e,t){if(t==="transparent")return t;var r=Wa(t);return Xa(At({},r,{saturation:To(0,1,r.saturation+parseFloat(e))}))}Er(cL);function dL(e,t){return t==="transparent"?t:Xa(At({},Wa(t),{hue:parseFloat(e)}))}Er(dL);function fL(e,t){return t==="transparent"?t:Xa(At({},Wa(t),{lightness:parseFloat(e)}))}Er(fL);function pL(e,t){return t==="transparent"?t:Xa(At({},Wa(t),{saturation:parseFloat(e)}))}Er(pL);function hL(e,t){return t==="transparent"?t:tA(parseFloat(e),"rgb(0, 0, 0)",t)}Er(hL);function gL(e,t){return t==="transparent"?t:tA(parseFloat(e),"rgb(255, 255, 255)",t)}Er(gL);function mL(e,t){if(t==="transparent")return t;var r=Qi(t),n=typeof r.alpha=="number"?r.alpha:1,a=At({},r,{alpha:To(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Ml(a)}var yL=Er(mL),aa=yL,Z={primary:"#FF4785",secondary:"#006DEB",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F6F9FC",light:"#EEF2F6",mediumlight:"#ECF2F9",medium:"#D9E5F2",mediumdark:"#737F8C",dark:"#5C6570",darker:"#454C54",darkest:"#2E3338",border:"hsl(212 50% 30% / 0.15)",positive:"#66BF3C",warning:"#E69D00",negative:"#FF4400",critical:"#FFFFFF",defaultText:"#2E3338",inverseText:"#FFFFFF",positiveText:"#427C27",warningText:"#955B1E",negativeText:"#C23400"},jn={app:"#F6F9FC",bar:Z.lightest,content:Z.lightest,preview:Z.lightest,gridCellSize:10,positive:"#F1FFEB",warning:"#FFF9EB",negative:"#FFF0EB",critical:"#D13800"},Qr={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},s0={light:{fgColor:{default:Z.darkest,muted:Z.dark,accent:Z.secondary,inverse:Z.lightest,positive:"#427C27",warning:"#7A4100",negative:"#C23400",critical:"#FFFFFF"},bgColor:{default:Z.lightest,muted:jn.app,positive:"#F1FFEB",warning:"#FFF7EB",negative:"#FFF0EB",critical:"#D13800"},borderColor:{default:Z.border,muted:"hsl(0 0% 0% / 0.1)",inverse:"hsl(0 0% 100% / 0.1)",positive:"#BFE7AC",warning:"#FFCE85",negative:"#FFC3AD",critical:"hsl(16 100% 100% / 0)"}},dark:{fgColor:{default:"#C9CCCF",muted:"#95999D",accent:"#479DFF",inverse:"#1B1C1D",positive:"#86CE64",warning:"#FFAD33",negative:"#FF6933",critical:"#FF6933"},bgColor:{default:"#222325",muted:"#1B1C1D",positive:"hsl(101 100% 100% / 0)",warning:"hsl(101 100% 100% / 0)",negative:"hsl(101 100% 100% / 0)",critical:"hsl(101 100% 100% / 0)"},borderColor:{default:"hsl(0 0% 100% / 0.1)",muted:"hsl(0 0% 100% / 0.5)",inverse:"hsl(0 0% 0% / 0.1)",positive:"hsl(101 52% 64% / 0.15)",warning:"hsl(36 100% 64% / 0.15)",negative:"hsl(16 100% 64% / 0.15)",critical:"#FF6933"}}},bL={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#479DFF",appBg:"#1B1C1D",appContentBg:"#222325",appHoverBg:"#233952",appPreviewBg:Z.lightest,appBorderColor:"hsl(0 0% 100% / 0.1)",appBorderRadius:4,fontBase:Qr.fonts.base,fontCode:Qr.fonts.mono,textColor:"#C9CCCF",textInverseColor:"#1B1C1D",textMutedColor:"#95999D",barTextColor:"#95999D",barHoverColor:"#70B3FF",barSelectedColor:"#479DFF",barBg:"#222325",buttonBg:"#1B1C1D",buttonBorder:"hsl(0 0% 100% / 0.1)",booleanBg:"#1B1C1D",booleanSelectedBg:"#292B2E",inputBg:"#1B1C1D",inputBorder:"hsl(0 0% 100% / 0.1)",inputTextColor:"#C9CCCF",inputBorderRadius:4},vL=bL,EL={base:"light",colorPrimary:Z.primary,colorSecondary:Z.secondary,appBg:jn.app,appContentBg:Z.lightest,appHoverBg:"#DBECFF",appPreviewBg:Z.lightest,appBorderColor:Z.border,appBorderRadius:4,fontBase:Qr.fonts.base,fontCode:Qr.fonts.mono,textColor:Z.darkest,textInverseColor:Z.lightest,textMutedColor:Z.dark,barTextColor:Z.dark,barHoverColor:"#005CC7",barSelectedColor:"#0063D6",barBg:Z.lightest,buttonBg:jn.app,buttonBorder:Z.medium,booleanBg:Z.mediumlight,booleanSelectedBg:Z.lightest,inputBg:Z.lightest,inputBorder:Z.border,inputTextColor:Z.darkest,inputBorderRadius:4},u0=EL;const{logger:SL}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:xL}=__STORYBOOK_MODULE_GLOBAL__;var{window:Ph}=xL,$L=e=>({color:e}),_L=e=>typeof e!="string"?(SL.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,CL=e=>!/(gradient|var|calc)/.test(e),TL=(e,t)=>e==="darken"?Ml(`${Lt(1,t)}`,.95):e==="lighten"?Ml(`${ld(1,t)}`,.95):t,wL=e=>t=>{if(!_L(t)||!CL(t))return t;try{return TL(e,t)}catch{return t}},Ob=wL("lighten"),Db=()=>!Ph||!Ph.matchMedia?"light":Ph.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",sS={light:u0,dark:vL},id=Db(),Cl={...sS,normal:sS[id]},rA=(e={base:id},t)=>{let r={...Cl[id],...Cl[e.base]||{},...e,base:Cl[e.base]?e.base:id};return{...t,...r,barSelectedColor:e.barSelectedColor||r.colorSecondary}},Gl=Ft({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return function r(n,a,l){function i(u,c){if(!a[u]){if(!n[u]){var d=typeof Yu=="function"&&Yu;if(!c&&d)return d(u,!0);if(o)return o(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var p=a[u]={exports:{}};n[u][0].call(p.exports,function(b){var v=n[u][1][b];return i(v||b)},p,p.exports,r,n,a,l)}return a[u].exports}for(var o=typeof Yu=="function"&&Yu,s=0;s<l.length;s++)i(l[s]);return i}({1:[function(r,n,a){n.exports=function(l){if(typeof Map!="function"||l){var i=r("./similar");return new i}else return new Map}},{"./similar":2}],2:[function(r,n,a){function l(){return this.list=[],this.lastItem=void 0,this.size=0,this}l.prototype.get=function(i){var o;if(this.lastItem&&this.isEqual(this.lastItem.key,i))return this.lastItem.val;if(o=this.indexOf(i),o>=0)return this.lastItem=this.list[o],this.list[o].val},l.prototype.set=function(i,o){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=o,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=o,this):(this.lastItem={key:i,val:o},this.list.push(this.lastItem),this.size++,this))},l.prototype.delete=function(i){var o;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),o=this.indexOf(i),o>=0)return this.size--,this.list.splice(o,1)[0]},l.prototype.has=function(i){var o;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(o=this.indexOf(i),o>=0?(this.lastItem=this.list[o],!0):!1)},l.prototype.forEach=function(i,o){var s;for(s=0;s<this.size;s++)i.call(o||this,this.list[s].val,this.list[s].key,this)},l.prototype.indexOf=function(i){var o;for(o=0;o<this.size;o++)if(this.isEqual(this.list[o].key,i))return o;return-1},l.prototype.isEqual=function(i,o){return i===o||i!==i&&o!==o},n.exports=l},{}],3:[function(r,n,a){var l=r("map-or-similar");n.exports=function(u){var c=new l(!1),d=[];return function(f){var p=function(){var b=c,v,S,h=arguments.length-1,y=Array(h+1),E=!0,x;if((p.numArgs||p.numArgs===0)&&p.numArgs!==h+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(x=0;x<h;x++){if(y[x]={cacheItem:b,arg:arguments[x]},b.has(arguments[x])){b=b.get(arguments[x]);continue}E=!1,v=new l(!1),b.set(arguments[x],v),b=v}return E&&(b.has(arguments[h])?S=b.get(arguments[h]):E=!1),E||(S=f.apply(null,arguments),b.set(arguments[h],S)),u>0&&(y[h]={cacheItem:b,arg:arguments[h]},E?i(d,y):d.push(y),d.length>u&&o(d.shift())),p.wasMemoized=E,p.numArgs=h+1,S};return p.limit=u,p.wasMemoized=!1,p.cache=c,p.lru=d,p}};function i(u,c){var d=u.length,f=c.length,p,b,v;for(b=0;b<d;b++){for(p=!0,v=0;v<f;v++)if(!s(u[b][v].arg,c[v].arg)){p=!1;break}if(p)break}u.push(u.splice(b,1)[0])}function o(u){var c=u.length,d=u[c-1],f,p;for(d.cacheItem.delete(d.arg),p=c-2;p>=0&&(d=u[p],f=d.cacheItem.get(d.arg),!f||!f.size);p--)d.cacheItem.delete(d.arg)}function s(u,c){return u===c||u!==u&&c!==c}},{"map-or-similar":1}]},{},[3])(3)})}});function Rr(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var a=n.reduce(function(o,s){var u=s.match(/\n([\t ]+|(?!\s).)/g);return u?o.concat(u.map(function(c){var d,f;return(f=(d=c.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&f!==void 0?f:0})):o},[]);if(a.length){var l=new RegExp(`
|
|
42
|
+
`).replace(q9,"")}function B2(e,t){return t=UE(t),UE(e)===t}function Oe(e,t,r,n,a,l){switch(r){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||ji(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&ji(e,""+n);break;case"className":Ju(e,"class",n);break;case"tabIndex":Ju(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Ju(e,r,n);break;case"style":LT(e,n,l);break;case"data":if(t!=="object"){Ju(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(r);break}n=Gc(""+n),e.setAttribute(r,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(r,"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 l=="function"&&(r==="formAction"?(t!=="input"&&Oe(e,t,"name",a.name,a,null),Oe(e,t,"formEncType",a.formEncType,a,null),Oe(e,t,"formMethod",a.formMethod,a,null),Oe(e,t,"formTarget",a.formTarget,a,null)):(Oe(e,t,"encType",a.encType,a,null),Oe(e,t,"method",a.method,a,null),Oe(e,t,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(r);break}n=Gc(""+n),e.setAttribute(r,n);break;case"onClick":n!=null&&(e.onclick=Vn);break;case"onScroll":n!=null&&ce("scroll",e);break;case"onScrollEnd":n!=null&&ce("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(j(61));if(r=n.__html,r!=null){if(a.children!=null)throw Error(j(60));e.innerHTML=r}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}r=Gc(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(r,""+n):e.removeAttribute(r);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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":n===!0?e.setAttribute(r,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(r,n):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(r,n):e.removeAttribute(r);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(r):e.setAttribute(r,n);break;case"popover":ce("beforetoggle",e),ce("toggle",e),Kc(e,"popover",n);break;case"xlinkActuate":Dn(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Dn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Dn(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Dn(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Dn(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Dn(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Dn(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Dn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Dn(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Kc(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=x7.get(r)||r,Kc(e,r,n))}}function qm(e,t,r,n,a,l){switch(r){case"style":LT(e,n,l);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(j(61));if(r=n.__html,r!=null){if(a.children!=null)throw Error(j(60));e.innerHTML=r}}break;case"children":typeof n=="string"?ji(e,n):(typeof n=="number"||typeof n=="bigint")&&ji(e,""+n);break;case"onScroll":n!=null&&ce("scroll",e);break;case"onScrollEnd":n!=null&&ce("scrollend",e);break;case"onClick":n!=null&&(e.onclick=Vn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!wT.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(a=r.endsWith("Capture"),t=r.slice(2,a?r.length-7:void 0),l=e[rr]||null,l=l!=null?l[r]:null,typeof l=="function"&&e.removeEventListener(t,l,a),typeof n=="function")){typeof l!="function"&&l!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,n,a);break e}r in e?e[r]=n:n===!0?e.setAttribute(r,""):Kc(e,r,n)}}}function wt(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ce("error",e),ce("load",e);var n=!1,a=!1,l;for(l in r)if(r.hasOwnProperty(l)){var i=r[l];if(i!=null)switch(l){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(j(137,t));default:Oe(e,t,l,i,r,null)}}a&&Oe(e,t,"srcSet",r.srcSet,r,null),n&&Oe(e,t,"src",r.src,r,null);return;case"input":ce("invalid",e);var o=l=i=a=null,s=null,u=null;for(n in r)if(r.hasOwnProperty(n)){var c=r[n];if(c!=null)switch(n){case"name":a=c;break;case"type":i=c;break;case"checked":s=c;break;case"defaultChecked":u=c;break;case"value":l=c;break;case"defaultValue":o=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(j(137,t));break;default:Oe(e,t,n,c,r,null)}}DT(e,l,o,s,u,i,a,!1);return;case"select":ce("invalid",e),n=i=l=null;for(a in r)if(r.hasOwnProperty(a)&&(o=r[a],o!=null))switch(a){case"value":l=o;break;case"defaultValue":i=o;break;case"multiple":n=o;default:Oe(e,t,a,o,r,null)}t=l,r=i,e.multiple=!!n,t!=null?Oi(e,!!n,t,!1):r!=null&&Oi(e,!!n,r,!0);return;case"textarea":ce("invalid",e),l=a=n=null;for(i in r)if(r.hasOwnProperty(i)&&(o=r[i],o!=null))switch(i){case"value":n=o;break;case"defaultValue":a=o;break;case"children":l=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(j(91));break;default:Oe(e,t,i,o,r,null)}NT(e,n,a,l);return;case"option":for(s in r)if(r.hasOwnProperty(s)&&(n=r[s],n!=null))switch(s){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:Oe(e,t,s,n,r,null)}return;case"dialog":ce("beforetoggle",e),ce("toggle",e),ce("cancel",e),ce("close",e);break;case"iframe":case"object":ce("load",e);break;case"video":case"audio":for(n=0;n<Ys.length;n++)ce(Ys[n],e);break;case"image":ce("error",e),ce("load",e);break;case"details":ce("toggle",e);break;case"embed":case"source":case"link":ce("error",e),ce("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 r)if(r.hasOwnProperty(u)&&(n=r[u],n!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(j(137,t));default:Oe(e,t,u,n,r,null)}return;default:if(ky(t)){for(c in r)r.hasOwnProperty(c)&&(n=r[c],n!==void 0&&qm(e,t,c,n,r,void 0));return}}for(o in r)r.hasOwnProperty(o)&&(n=r[o],n!=null&&Oe(e,t,o,n,r,null))}function W9(e,t,r,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,l=null,i=null,o=null,s=null,u=null,c=null;for(p in r){var d=r[p];if(r.hasOwnProperty(p)&&d!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":s=d;default:n.hasOwnProperty(p)||Oe(e,t,p,null,n,d)}}for(var f in n){var p=n[f];if(d=r[f],n.hasOwnProperty(f)&&(p!=null||d!=null))switch(f){case"type":l=p;break;case"name":a=p;break;case"checked":u=p;break;case"defaultChecked":c=p;break;case"value":i=p;break;case"defaultValue":o=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(j(137,t));break;default:p!==d&&Oe(e,t,f,p,n,d)}}vm(e,i,o,s,u,c,l,a);return;case"select":p=i=o=f=null;for(l in r)if(s=r[l],r.hasOwnProperty(l)&&s!=null)switch(l){case"value":break;case"multiple":p=s;default:n.hasOwnProperty(l)||Oe(e,t,l,null,n,s)}for(a in n)if(l=n[a],s=r[a],n.hasOwnProperty(a)&&(l!=null||s!=null))switch(a){case"value":f=l;break;case"defaultValue":o=l;break;case"multiple":i=l;default:l!==s&&Oe(e,t,a,l,n,s)}t=o,r=i,n=p,f!=null?Oi(e,!!r,f,!1):!!n!=!!r&&(t!=null?Oi(e,!!r,t,!0):Oi(e,!!r,r?[]:"",!1));return;case"textarea":p=f=null;for(o in r)if(a=r[o],r.hasOwnProperty(o)&&a!=null&&!n.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Oe(e,t,o,null,n,a)}for(i in n)if(a=n[i],l=r[i],n.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case"value":f=a;break;case"defaultValue":p=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(j(91));break;default:a!==l&&Oe(e,t,i,a,n,l)}RT(e,f,p);return;case"option":for(var b in r)if(f=r[b],r.hasOwnProperty(b)&&f!=null&&!n.hasOwnProperty(b))switch(b){case"selected":e.selected=!1;break;default:Oe(e,t,b,null,n,f)}for(s in n)if(f=n[s],p=r[s],n.hasOwnProperty(s)&&f!==p&&(f!=null||p!=null))switch(s){case"selected":e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:Oe(e,t,s,f,n,p)}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 v in r)f=r[v],r.hasOwnProperty(v)&&f!=null&&!n.hasOwnProperty(v)&&Oe(e,t,v,null,n,f);for(u in n)if(f=n[u],p=r[u],n.hasOwnProperty(u)&&f!==p&&(f!=null||p!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(j(137,t));break;default:Oe(e,t,u,f,n,p)}return;default:if(ky(t)){for(var S in r)f=r[S],r.hasOwnProperty(S)&&f!==void 0&&!n.hasOwnProperty(S)&&qm(e,t,S,void 0,n,f);for(c in n)f=n[c],p=r[c],!n.hasOwnProperty(c)||f===p||f===void 0&&p===void 0||qm(e,t,c,f,n,p);return}}for(var h in r)f=r[h],r.hasOwnProperty(h)&&f!=null&&!n.hasOwnProperty(h)&&Oe(e,t,h,null,n,f);for(d in n)f=n[d],p=r[d],!n.hasOwnProperty(d)||f===p||f==null&&p==null||Oe(e,t,d,f,n,p)}function jE(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function X9(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,r=performance.getEntriesByType("resource"),n=0;n<r.length;n++){var a=r[n],l=a.transferSize,i=a.initiatorType,o=a.duration;if(l&&o&&jE(i)){for(i=0,o=a.responseEnd,n+=1;n<r.length;n++){var s=r[n],u=s.startTime;if(u>o)break;var c=s.transferSize,d=s.initiatorType;c&&jE(d)&&(s=s.responseEnd,i+=c*(s<o?1:(o-u)/(s-u)))}if(--n,t+=8*(l+i)/(a.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 Wm=null,Xm=null;function qd(e){return e.nodeType===9?e:e.ownerDocument}function KE(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 P2(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 Zm(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 Nh=null;function Z9(){var e=window.event;return e&&e.type==="popstate"?e===Nh?!1:(Nh=e,!0):(Nh=null,!1)}var I2=typeof setTimeout=="function"?setTimeout:void 0,Q9=typeof clearTimeout=="function"?clearTimeout:void 0,GE=typeof Promise=="function"?Promise:void 0,J9=typeof queueMicrotask=="function"?queueMicrotask:typeof GE<"u"?function(e){return GE.resolve(null).then(e).catch(eN)}:I2;function eN(e){setTimeout(function(){throw e})}function qa(e){return e==="head"}function VE(e,t){var r=t,n=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"||r==="/&"){if(n===0){e.removeChild(a),Zi(t);return}n--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")n++;else if(r==="html")Ns(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,Ns(r);for(var l=r.firstChild;l;){var i=l.nextSibling,o=l.nodeName;l[Eu]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&l.rel.toLowerCase()==="stylesheet"||r.removeChild(l),l=i}}else r==="body"&&Ns(e.ownerDocument.body);r=a}while(r);Zi(t)}function YE(e,t){var r=e;e=0;do{var n=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=n}while(r)}function Qm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Qm(r),Iy(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function tN(e,t,r,n){for(;e.nodeType===1;){var a=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Eu])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(l=e.getAttribute("rel"),l==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(l!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(l=e.getAttribute("src"),(l!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var l=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===l)return e}else return e;if(e=Pr(e.nextSibling),e===null)break}return null}function rN(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=Pr(e.nextSibling),e===null))return null;return e}function k2(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Pr(e.nextSibling),e===null))return null;return e}function Jm(e){return e.data==="$?"||e.data==="$~"}function e0(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function nN(e,t){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||r.readyState!=="loading")t();else{var n=function(){t(),r.removeEventListener("DOMContentLoaded",n)};r.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Pr(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 t0=null;function qE(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(t===0)return Pr(e.nextSibling);t--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||t++}e=e.nextSibling}return null}function WE(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(t===0)return e;t--}else r!=="/$"&&r!=="/&"||t++}e=e.previousSibling}return null}function z2(e,t,r){switch(t=qd(r),e){case"html":if(e=t.documentElement,!e)throw Error(j(452));return e;case"head":if(e=t.head,!e)throw Error(j(453));return e;case"body":if(e=t.body,!e)throw Error(j(454));return e;default:throw Error(j(451))}}function Ns(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Iy(e)}var kr=new Map,XE=new Set;function Wd(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var la=_e.d;_e.d={f:aN,r:lN,D:iN,C:oN,L:sN,m:uN,X:dN,S:cN,M:fN};function aN(){var e=la.f(),t=Yf();return e||t}function lN(e){var t=Eo(e);t!==null&&t.tag===5&&t.type==="form"?Lw(t):la.r(e)}var _o=typeof document>"u"?null:document;function H2(e,t,r){var n=_o;if(n&&typeof t=="string"&&t){var a=Nr(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof r=="string"&&(a+='[crossorigin="'+r+'"]'),XE.has(a)||(XE.add(a),e={rel:e,crossOrigin:r,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),wt(t,"link",e),mt(t),n.head.appendChild(t)))}}function iN(e){la.D(e),H2("dns-prefetch",e,null)}function oN(e,t){la.C(e,t),H2("preconnect",e,t)}function sN(e,t,r){la.L(e,t,r);var n=_o;if(n&&e&&t){var a='link[rel="preload"][as="'+Nr(t)+'"]';t==="image"&&r&&r.imageSrcSet?(a+='[imagesrcset="'+Nr(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(a+='[imagesizes="'+Nr(r.imageSizes)+'"]')):a+='[href="'+Nr(e)+'"]';var l=a;switch(t){case"style":l=Xi(e);break;case"script":l=Co(e)}kr.has(l)||(e=Ie({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),kr.set(l,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(Tu(l))||t==="script"&&n.querySelector(wu(l))||(t=n.createElement("link"),wt(t,"link",e),mt(t),n.head.appendChild(t)))}}function uN(e,t){la.m(e,t);var r=_o;if(r&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+Nr(n)+'"][href="'+Nr(e)+'"]',l=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=Co(e)}if(!kr.has(l)&&(e=Ie({rel:"modulepreload",href:e},t),kr.set(l,e),r.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(wu(l)))return}n=r.createElement("link"),wt(n,"link",e),mt(n),r.head.appendChild(n)}}}function cN(e,t,r){la.S(e,t,r);var n=_o;if(n&&e){var a=Ai(n).hoistableStyles,l=Xi(e);t=t||"default";var i=a.get(l);if(!i){var o={loading:0,preload:null};if(i=n.querySelector(Tu(l)))o.loading=5;else{e=Ie({rel:"stylesheet",href:e,"data-precedence":t},r),(r=kr.get(l))&&$b(e,r);var s=i=n.createElement("link");mt(s),wt(s,"link",e),s._p=new Promise(function(u,c){s.onload=u,s.onerror=c}),s.addEventListener("load",function(){o.loading|=1}),s.addEventListener("error",function(){o.loading|=2}),o.loading|=4,td(i,t,n)}i={type:"stylesheet",instance:i,count:1,state:o},a.set(l,i)}}}function dN(e,t){la.X(e,t);var r=_o;if(r&&e){var n=Ai(r).hoistableScripts,a=Co(e),l=n.get(a);l||(l=r.querySelector(wu(a)),l||(e=Ie({src:e,async:!0},t),(t=kr.get(a))&&_b(e,t),l=r.createElement("script"),mt(l),wt(l,"link",e),r.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},n.set(a,l))}}function fN(e,t){la.M(e,t);var r=_o;if(r&&e){var n=Ai(r).hoistableScripts,a=Co(e),l=n.get(a);l||(l=r.querySelector(wu(a)),l||(e=Ie({src:e,async:!0,type:"module"},t),(t=kr.get(a))&&_b(e,t),l=r.createElement("script"),mt(l),wt(l,"link",e),r.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},n.set(a,l))}}function ZE(e,t,r,n){var a=(a=Na.current)?Wd(a):null;if(!a)throw Error(j(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=Xi(r.href),r=Ai(a).hoistableStyles,n=r.get(t),n||(n={type:"style",instance:null,count:0,state:null},r.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=Xi(r.href);var l=Ai(a).hoistableStyles,i=l.get(e);if(i||(a=a.ownerDocument||a,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},l.set(e,i),(l=a.querySelector(Tu(e)))&&!l._p&&(i.instance=l,i.state.loading=5),kr.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},kr.set(e,r),l||pN(a,e,r,i.state))),t&&n===null)throw Error(j(528,""));return i}if(t&&n!==null)throw Error(j(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Co(r),r=Ai(a).hoistableScripts,n=r.get(t),n||(n={type:"script",instance:null,count:0,state:null},r.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(j(444,e))}}function Xi(e){return'href="'+Nr(e)+'"'}function Tu(e){return'link[rel="stylesheet"]['+e+"]"}function U2(e){return Ie({},e,{"data-precedence":e.precedence,precedence:null})}function pN(e,t,r,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),wt(t,"link",r),mt(t),e.head.appendChild(t))}function Co(e){return'[src="'+Nr(e)+'"]'}function wu(e){return"script[async]"+e}function QE(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Nr(r.href)+'"]');if(n)return t.instance=n,mt(n),n;var a=Ie({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),mt(n),wt(n,"style",a),td(n,r.precedence,e),t.instance=n;case"stylesheet":a=Xi(r.href);var l=e.querySelector(Tu(a));if(l)return t.state.loading|=4,t.instance=l,mt(l),l;n=U2(r),(a=kr.get(a))&&$b(n,a),l=(e.ownerDocument||e).createElement("link"),mt(l);var i=l;return i._p=new Promise(function(o,s){i.onload=o,i.onerror=s}),wt(l,"link",n),t.state.loading|=4,td(l,r.precedence,e),t.instance=l;case"script":return l=Co(r.src),(a=e.querySelector(wu(l)))?(t.instance=a,mt(a),a):(n=r,(a=kr.get(l))&&(n=Ie({},r),_b(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),mt(a),wt(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(j(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(n=t.instance,t.state.loading|=4,td(n,r.precedence,e));return t.instance}function td(e,t,r){for(var n=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,l=a,i=0;i<n.length;i++){var o=n[i];if(o.dataset.precedence===t)l=o;else if(l!==a)break}l?l.parentNode.insertBefore(e,l.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function $b(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function _b(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var rd=null;function JE(e,t,r){if(rd===null){var n=new Map,a=rd=new Map;a.set(r,n)}else a=rd,n=a.get(r),n||(n=new Map,a.set(r,n));if(n.has(e))return n;for(n.set(e,null),r=r.getElementsByTagName(e),a=0;a<r.length;a++){var l=r[a];if(!(l[Eu]||l[$t]||e==="link"&&l.getAttribute("rel")==="stylesheet")&&l.namespaceURI!=="http://www.w3.org/2000/svg"){var i=l.getAttribute(t)||"";i=e+i;var o=n.get(i);o?o.push(l):n.set(i,[l])}}return n}function eS(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function hN(e,t,r){if(r===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 j2(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function gN(e,t,r,n){if(r.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(r.state.loading&4)){if(r.instance===null){var a=Xi(n.href),l=t.querySelector(Tu(a));if(l){t=l._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Xd.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=l,mt(l);return}l=t.ownerDocument||t,n=U2(n),(a=kr.get(a))&&$b(n,a),l=l.createElement("link"),mt(l);var i=l;i._p=new Promise(function(o,s){i.onload=o,i.onerror=s}),wt(l,"link",n),r.instance=l}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&!(r.state.loading&3)&&(e.count++,r=Xd.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var Lh=0;function mN(e,t){return e.stylesheets&&e.count===0&&nd(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var n=setTimeout(function(){if(e.stylesheets&&nd(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4+t);0<e.imgBytes&&Lh===0&&(Lh=62500*X9());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&nd(e,e.stylesheets),e.unsuspend)){var l=e.unsuspend;e.unsuspend=null,l()}},(e.imgBytes>Lh?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function Xd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zd=null;function nd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zd=new Map,t.forEach(yN,e),Zd=null,Xd.call(e))}function yN(e,t){if(!(t.state.loading&4)){var r=Zd.get(e);if(r)var n=r.get(null);else{r=new Map,Zd.set(e,r);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),l=0;l<a.length;l++){var i=a[l];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(r.set(i.dataset.precedence,i),n=i)}n&&r.set(null,n)}a=t.instance,i=a.getAttribute("data-precedence"),l=r.get(i)||n,l===n&&r.set(null,a),r.set(i,a),this.count++,n=Xd.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),l?l.parentNode.insertBefore(a,l.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Ws={$$typeof:Gn,Provider:null,Consumer:null,_currentValue:El,_currentValue2:El,_threadCount:0};function bN(e,t,r,n,a,l,i,o,s){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=rh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rh(0),this.hiddenUpdates=rh(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=l,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function K2(e,t,r,n,a,l,i,o,s,u,c,d){return e=new bN(e,t,r,i,s,u,c,d,o),t=1,l===!0&&(t|=24),l=dr(3,null,null,t),e.current=l,l.stateNode=e,t=Xy(),t.refCount++,e.pooledCache=t,t.refCount++,l.memoizedState={element:n,isDehydrated:r,cache:t},Jy(l),e}function G2(e){return e?(e=Ei,e):Ei}function V2(e,t,r,n,a,l){a=G2(a),n.context===null?n.context=a:n.pendingContext=a,n=Ma(t),n.payload={element:r},l=l===void 0?null:l,l!==null&&(n.callback=l),r=Fa(e,n,t),r!==null&&(tr(r,e,t),_s(r,e,t))}function tS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Cb(e,t){tS(e,t),(e=e.alternate)&&tS(e,t)}function Y2(e){if(e.tag===13||e.tag===31){var t=jl(e,67108864);t!==null&&tr(t,e,67108864),Cb(e,67108864)}}function rS(e){if(e.tag===13||e.tag===31){var t=mr();t=By(t);var r=jl(e,t);r!==null&&tr(r,e,t),Cb(e,t)}}var Qd=!0;function vN(e,t,r,n){var a=te.T;te.T=null;var l=_e.p;try{_e.p=2,Tb(e,t,r,n)}finally{_e.p=l,te.T=a}}function EN(e,t,r,n){var a=te.T;te.T=null;var l=_e.p;try{_e.p=8,Tb(e,t,r,n)}finally{_e.p=l,te.T=a}}function Tb(e,t,r,n){if(Qd){var a=r0(n);if(a===null)Rh(e,t,n,Jd,r),nS(e,n);else if(xN(a,e,t,r,n))n.stopPropagation();else if(nS(e,n),t&4&&-1<SN.indexOf(e)){for(;a!==null;){var l=Eo(a);if(l!==null)switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var i=ul(l.pendingLanes);if(i!==0){var o=l;for(o.pendingLanes|=2,o.entangledLanes|=2;i;){var s=1<<31-gr(i);o.entanglements[1]|=s,i&=~s}Cn(l),!($e&6)&&(Ud=pr()+500,Cu(0))}}break;case 31:case 13:o=jl(l,2),o!==null&&tr(o,l,2),Yf(),Cb(l,2)}if(l=r0(n),l===null&&Rh(e,t,n,Jd,r),l===a)break;a=l}a!==null&&n.stopPropagation()}else Rh(e,t,n,null,r)}}function r0(e){return e=zy(e),wb(e)}var Jd=null;function wb(e){if(Jd=null,e=hi(e),e!==null){var t=mu(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=pT(t),e!==null)return e;e=null}else if(r===31){if(e=hT(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Jd=e,null}function q2(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(i7()){case bT:return 2;case vT:return 8;case Ad:case o7:return 32;case ET:return 268435456;default:return 32}default:return 32}}var n0=!1,Ia=null,ka=null,za=null,Xs=new Map,Zs=new Map,_a=[],SN="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 nS(e,t){switch(e){case"focusin":case"focusout":Ia=null;break;case"dragenter":case"dragleave":ka=null;break;case"mouseover":case"mouseout":za=null;break;case"pointerover":case"pointerout":Xs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zs.delete(t.pointerId)}}function Vo(e,t,r,n,a,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:l,targetContainers:[a]},t!==null&&(t=Eo(t),t!==null&&Y2(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function xN(e,t,r,n,a){switch(t){case"focusin":return Ia=Vo(Ia,e,t,r,n,a),!0;case"dragenter":return ka=Vo(ka,e,t,r,n,a),!0;case"mouseover":return za=Vo(za,e,t,r,n,a),!0;case"pointerover":var l=a.pointerId;return Xs.set(l,Vo(Xs.get(l)||null,e,t,r,n,a)),!0;case"gotpointercapture":return l=a.pointerId,Zs.set(l,Vo(Zs.get(l)||null,e,t,r,n,a)),!0}return!1}function W2(e){var t=hi(e.target);if(t!==null){var r=mu(t);if(r!==null){if(t=r.tag,t===13){if(t=pT(r),t!==null){e.blockedOn=t,Hv(e.priority,function(){rS(r)});return}}else if(t===31){if(t=hT(r),t!==null){e.blockedOn=t,Hv(e.priority,function(){rS(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ad(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=r0(e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Sm=n,r.target.dispatchEvent(n),Sm=null}else return t=Eo(r),t!==null&&Y2(t),e.blockedOn=r,!1;t.shift()}return!0}function aS(e,t,r){ad(e)&&r.delete(t)}function $N(){n0=!1,Ia!==null&&ad(Ia)&&(Ia=null),ka!==null&&ad(ka)&&(ka=null),za!==null&&ad(za)&&(za=null),Xs.forEach(aS),Zs.forEach(aS)}function oc(e,t){e.blockedOn===t&&(e.blockedOn=null,n0||(n0=!0,pt.unstable_scheduleCallback(pt.unstable_NormalPriority,$N)))}var sc=null;function lS(e){sc!==e&&(sc=e,pt.unstable_scheduleCallback(pt.unstable_NormalPriority,function(){sc===e&&(sc=null);for(var t=0;t<e.length;t+=3){var r=e[t],n=e[t+1],a=e[t+2];if(typeof n!="function"){if(wb(n||r)===null)continue;break}var l=Eo(r);l!==null&&(e.splice(t,3),t-=3,Pm(l,{pending:!0,data:a,method:r.method,action:n},n,a))}}))}function Zi(e){function t(s){return oc(s,e)}Ia!==null&&oc(Ia,e),ka!==null&&oc(ka,e),za!==null&&oc(za,e),Xs.forEach(t),Zs.forEach(t);for(var r=0;r<_a.length;r++){var n=_a[r];n.blockedOn===e&&(n.blockedOn=null)}for(;0<_a.length&&(r=_a[0],r.blockedOn===null);)W2(r),r.blockedOn===null&&_a.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(n=0;n<r.length;n+=3){var a=r[n],l=r[n+1],i=a[rr]||null;if(typeof l=="function")i||lS(r);else if(i){var o=null;if(l&&l.hasAttribute("formAction")){if(a=l,i=l[rr]||null)o=i.formAction;else if(wb(a)!==null)continue}else o=i.action;typeof o=="function"?r[n+1]=o:(r.splice(n,3),n-=3),lS(r)}}}function X2(){function e(l){l.canIntercept&&l.info==="react-transition"&&l.intercept({handler:function(){return new Promise(function(i){return a=i})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),n||setTimeout(r,20)}function r(){if(!n&&!navigation.transition){var l=navigation.currentEntry;l&&l.url!=null&&navigation.navigate(l.url,{state:l.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function Ab(e){this._internalRoot=e}Xf.prototype.render=Ab.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(j(409));var r=t.current,n=mr();V2(r,n,e,t,null,null)};Xf.prototype.unmount=Ab.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;V2(e.current,2,null,e,null,null),Yf(),t[vo]=null}};function Xf(e){this._internalRoot=e}Xf.prototype.unstable_scheduleHydration=function(e){if(e){var t=CT();e={blockedOn:null,target:e,priority:t};for(var r=0;r<_a.length&&t!==0&&t<_a[r].priority;r++);_a.splice(r,0,e),r===0&&W2(e)}};var iS=dT.version;if(iS!=="19.2.5")throw Error(j(527,iS,"19.2.5"));_e.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(j(188)):(e=Object.keys(e).join(","),Error(j(268,e)));return e=J8(t),e=e!==null?gT(e):null,e=e===null?null:e.stateNode,e};var _N={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:te,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uc.isDisabled&&uc.supportsFiber)try{yu=uc.inject(_N),hr=uc}catch{}}Lf.createRoot=function(e,t){if(!fT(e))throw Error(j(299));var r=!1,n="",a=Hw,l=Uw,i=jw;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(l=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=K2(e,1,!1,null,null,r,n,null,a,l,i,X2),e[vo]=t.current,xb(e),new Ab(t)};Lf.hydrateRoot=function(e,t,r){if(!fT(e))throw Error(j(299));var n=!1,a="",l=Hw,i=Uw,o=jw,s=null;return r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onUncaughtError!==void 0&&(l=r.onUncaughtError),r.onCaughtError!==void 0&&(i=r.onCaughtError),r.onRecoverableError!==void 0&&(o=r.onRecoverableError),r.formState!==void 0&&(s=r.formState)),t=K2(e,1,!0,t,r??null,n,a,s,l,i,o,X2),t.context=G2(null),r=t.current,n=mr(),n=By(n),a=Ma(n),a.callback=null,Fa(r,a,n),r=n,t.current.lanes=r,vu(t,r),Cn(t),e[vo]=t.current,xb(e),new Xf(t)};Lf.version="19.2.5";function Z2(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Z2)}catch(e){console.error(e)}}Z2(),aT.exports=Lf;var CN=aT.exports,ef=new Map;function TN(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var wN=({callback:e,children:t})=>{let r=g.useRef();return g.useLayoutEffect(()=>{r.current!==e&&(r.current=e,e())},[e]),t};typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let e=null,t=null;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}});var AN=async(e,t,r)=>{let n=await DN(t,r);if(TN()){n.render(e);return}let{promise:a,resolve:l}=Promise.withResolvers();return n.render(g.createElement(wN,{callback:l},e)),a},ON=(e,t)=>{let r=ef.get(e);r&&(r.unmount(),ef.delete(e))},DN=async(e,t)=>{let r=ef.get(e);return r||(r=CN.createRoot(e,t),ef.set(e,r)),r},tn=e=>`control-${e.replace(/\s+/g,"-")}`,Zf=e=>`set-${e.replace(/\s+/g,"-")}`;function At(){return At=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},At.apply(null,arguments)}function RN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qs(e,t){return Qs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Qs(e,t)}function NN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qs(e,t)}function a0(e){return a0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a0(e)}function LN(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Q2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Q2=function(){return!!e})()}function MN(e,t,r){if(Q2())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&Qs(a,r.prototype),a}function l0(e){var t=typeof Map=="function"?new Map:void 0;return l0=function(r){if(r===null||!LN(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return MN(r,arguments,a0(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Qs(n,r)},l0(e)}var yn=function(e){NN(t,e);function t(r){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this,RN(n)}return t}(l0(Error));function Mh(e){return Math.round(e*255)}function FN(e,t,r){return Mh(e)+","+Mh(t)+","+Mh(r)}function tf(e,t,r,n){if(n===void 0&&(n=FN),t===0)return n(r,r,r);var a=(e%360+360)%360/60,l=(1-Math.abs(2*r-1))*t,i=l*(1-Math.abs(a%2-1)),o=0,s=0,u=0;a>=0&&a<1?(o=l,s=i):a>=1&&a<2?(o=i,s=l):a>=2&&a<3?(s=l,u=i):a>=3&&a<4?(s=i,u=l):a>=4&&a<5?(o=i,u=l):a>=5&&a<6&&(o=l,u=i);var c=r-l/2,d=o+c,f=s+c,p=u+c;return n(d,f,p)}var oS={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function BN(e){if(typeof e!="string")return e;var t=e.toLowerCase();return oS[t]?"#"+oS[t]:e}var PN=/^#[a-fA-F0-9]{6}$/,IN=/^#[a-fA-F0-9]{8}$/,kN=/^#[a-fA-F0-9]{3}$/,zN=/^#[a-fA-F0-9]{4}$/,Fh=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,HN=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,UN=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,jN=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Qi(e){if(typeof e!="string")throw new yn(3);var t=BN(e);if(t.match(PN))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(IN)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(kN))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(zN)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=Fh.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var l=HN.exec(t.substring(0,50));if(l)return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10),alpha:parseFloat(""+l[4])>1?parseFloat(""+l[4])/100:parseFloat(""+l[4])};var i=UN.exec(t);if(i){var o=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,c="rgb("+tf(o,s,u)+")",d=Fh.exec(c);if(!d)throw new yn(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=jN.exec(t.substring(0,50));if(f){var p=parseInt(""+f[1],10),b=parseInt(""+f[2],10)/100,v=parseInt(""+f[3],10)/100,S="rgb("+tf(p,b,v)+")",h=Fh.exec(S);if(!h)throw new yn(4,t,S);return{red:parseInt(""+h[1],10),green:parseInt(""+h[2],10),blue:parseInt(""+h[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new yn(5)}function KN(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),l=Math.min(t,r,n),i=(a+l)/2;if(a===l)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var o,s=a-l,u=i>.5?s/(2-a-l):s/(a+l);switch(a){case t:o=(r-n)/s+(r<n?6:0);break;case r:o=(n-t)/s+2;break;default:o=(t-r)/s+4;break}return o*=60,e.alpha!==void 0?{hue:o,saturation:u,lightness:i,alpha:e.alpha}:{hue:o,saturation:u,lightness:i}}function Wa(e){return KN(Qi(e))}var GN=function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},i0=GN;function fl(e){var t=e.toString(16);return t.length===1?"0"+t:t}function Bh(e){return fl(Math.round(e*255))}function VN(e,t,r){return i0("#"+Bh(e)+Bh(t)+Bh(r))}function J2(e,t,r){return tf(e,t,r,VN)}function YN(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return J2(e.hue,e.saturation,e.lightness);throw new yn(1)}function qN(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?J2(e.hue,e.saturation,e.lightness):"rgba("+tf(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new yn(2)}function o0(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return i0("#"+fl(e)+fl(t)+fl(r));if(typeof e=="object"&&t===void 0&&r===void 0)return i0("#"+fl(e.red)+fl(e.green)+fl(e.blue));throw new yn(6)}function Ml(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=Qi(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?o0(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?o0(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new yn(7)}var WN=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},XN=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},ZN=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},QN=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Xa(e){if(typeof e!="object")throw new yn(8);if(XN(e))return Ml(e);if(WN(e))return o0(e);if(QN(e))return qN(e);if(ZN(e))return YN(e);throw new yn(8)}function eA(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):eA(e,t,n)}}function Er(e){return eA(e,e.length,[])}function JN(e,t){if(t==="transparent")return t;var r=Wa(t);return Xa(At({},r,{hue:r.hue+parseFloat(e)}))}Er(JN);function To(e,t,r){return Math.max(e,Math.min(t,r))}function eL(e,t){if(t==="transparent")return t;var r=Wa(t);return Xa(At({},r,{lightness:To(0,1,r.lightness-parseFloat(e))}))}var tL=Er(eL),Lt=tL;function rL(e,t){if(t==="transparent")return t;var r=Wa(t);return Xa(At({},r,{saturation:To(0,1,r.saturation-parseFloat(e))}))}Er(rL);function nL(e,t){if(t==="transparent")return t;var r=Wa(t);return Xa(At({},r,{lightness:To(0,1,r.lightness+parseFloat(e))}))}var aL=Er(nL),ld=aL;function lL(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=Qi(t),a=At({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),l=Qi(r),i=At({},l,{alpha:typeof l.alpha=="number"?l.alpha:1}),o=a.alpha-i.alpha,s=parseFloat(e)*2-1,u=s*o===-1?s:s+o,c=1+s*o,d=(u/c+1)/2,f=1-d,p={red:Math.floor(a.red*d+i.red*f),green:Math.floor(a.green*d+i.green*f),blue:Math.floor(a.blue*d+i.blue*f),alpha:a.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return Ml(p)}var iL=Er(lL),tA=iL;function oL(e,t){if(t==="transparent")return t;var r=Qi(t),n=typeof r.alpha=="number"?r.alpha:1,a=At({},r,{alpha:To(0,1,(n*100+parseFloat(e)*100)/100)});return Ml(a)}var sL=Er(oL),uL=sL;function cL(e,t){if(t==="transparent")return t;var r=Wa(t);return Xa(At({},r,{saturation:To(0,1,r.saturation+parseFloat(e))}))}Er(cL);function dL(e,t){return t==="transparent"?t:Xa(At({},Wa(t),{hue:parseFloat(e)}))}Er(dL);function fL(e,t){return t==="transparent"?t:Xa(At({},Wa(t),{lightness:parseFloat(e)}))}Er(fL);function pL(e,t){return t==="transparent"?t:Xa(At({},Wa(t),{saturation:parseFloat(e)}))}Er(pL);function hL(e,t){return t==="transparent"?t:tA(parseFloat(e),"rgb(0, 0, 0)",t)}Er(hL);function gL(e,t){return t==="transparent"?t:tA(parseFloat(e),"rgb(255, 255, 255)",t)}Er(gL);function mL(e,t){if(t==="transparent")return t;var r=Qi(t),n=typeof r.alpha=="number"?r.alpha:1,a=At({},r,{alpha:To(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Ml(a)}var yL=Er(mL),aa=yL,Z={primary:"#FF4785",secondary:"#006DEB",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F6F9FC",light:"#EEF2F6",mediumlight:"#ECF2F9",medium:"#D9E5F2",mediumdark:"#737F8C",dark:"#5C6570",darker:"#454C54",darkest:"#2E3338",border:"hsl(212 50% 30% / 0.15)",positive:"#66BF3C",warning:"#E69D00",negative:"#FF4400",critical:"#FFFFFF",defaultText:"#2E3338",inverseText:"#FFFFFF",positiveText:"#427C27",warningText:"#955B1E",negativeText:"#C23400"},jn={app:"#F6F9FC",bar:Z.lightest,content:Z.lightest,preview:Z.lightest,gridCellSize:10,positive:"#F1FFEB",warning:"#FFF9EB",negative:"#FFF0EB",critical:"#D13800"},Qr={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},s0={light:{fgColor:{default:Z.darkest,muted:Z.dark,accent:Z.secondary,inverse:Z.lightest,positive:"#427C27",warning:"#7A4100",negative:"#C23400",critical:"#FFFFFF"},bgColor:{default:Z.lightest,muted:jn.app,positive:"#F1FFEB",warning:"#FFF7EB",negative:"#FFF0EB",critical:"#D13800"},borderColor:{default:Z.border,muted:"hsl(0 0% 0% / 0.1)",inverse:"hsl(0 0% 100% / 0.1)",positive:"#BFE7AC",warning:"#FFCE85",negative:"#FFC3AD",critical:"hsl(16 100% 100% / 0)"}},dark:{fgColor:{default:"#C9CCCF",muted:"#95999D",accent:"#479DFF",inverse:"#1B1C1D",positive:"#86CE64",warning:"#FFAD33",negative:"#FF6933",critical:"#FF6933"},bgColor:{default:"#222325",muted:"#1B1C1D",positive:"hsl(101 100% 100% / 0)",warning:"hsl(101 100% 100% / 0)",negative:"hsl(101 100% 100% / 0)",critical:"hsl(101 100% 100% / 0)"},borderColor:{default:"hsl(0 0% 100% / 0.1)",muted:"hsl(0 0% 100% / 0.5)",inverse:"hsl(0 0% 0% / 0.1)",positive:"hsl(101 52% 64% / 0.15)",warning:"hsl(36 100% 64% / 0.15)",negative:"hsl(16 100% 64% / 0.15)",critical:"#FF6933"}}},bL={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#479DFF",appBg:"#1B1C1D",appContentBg:"#222325",appHoverBg:"#233952",appPreviewBg:Z.lightest,appBorderColor:"hsl(0 0% 100% / 0.1)",appBorderRadius:4,fontBase:Qr.fonts.base,fontCode:Qr.fonts.mono,textColor:"#C9CCCF",textInverseColor:"#1B1C1D",textMutedColor:"#95999D",barTextColor:"#95999D",barHoverColor:"#70B3FF",barSelectedColor:"#479DFF",barBg:"#222325",buttonBg:"#1B1C1D",buttonBorder:"hsl(0 0% 100% / 0.1)",booleanBg:"#1B1C1D",booleanSelectedBg:"#292B2E",inputBg:"#1B1C1D",inputBorder:"hsl(0 0% 100% / 0.1)",inputTextColor:"#C9CCCF",inputBorderRadius:4},vL=bL,EL={base:"light",colorPrimary:Z.primary,colorSecondary:Z.secondary,appBg:jn.app,appContentBg:Z.lightest,appHoverBg:"#DBECFF",appPreviewBg:Z.lightest,appBorderColor:Z.border,appBorderRadius:4,fontBase:Qr.fonts.base,fontCode:Qr.fonts.mono,textColor:Z.darkest,textInverseColor:Z.lightest,textMutedColor:Z.dark,barTextColor:Z.dark,barHoverColor:"#005CC7",barSelectedColor:"#0063D6",barBg:Z.lightest,buttonBg:jn.app,buttonBorder:Z.medium,booleanBg:Z.mediumlight,booleanSelectedBg:Z.lightest,inputBg:Z.lightest,inputBorder:Z.border,inputTextColor:Z.darkest,inputBorderRadius:4},u0=EL;const{logger:SL}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:xL}=__STORYBOOK_MODULE_GLOBAL__;var{window:Ph}=xL,$L=e=>({color:e}),_L=e=>typeof e!="string"?(SL.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,CL=e=>!/(gradient|var|calc)/.test(e),TL=(e,t)=>e==="darken"?Ml(`${Lt(1,t)}`,.95):e==="lighten"?Ml(`${ld(1,t)}`,.95):t,wL=e=>t=>{if(!_L(t)||!CL(t))return t;try{return TL(e,t)}catch{return t}},Ob=wL("lighten"),Db=()=>!Ph||!Ph.matchMedia?"light":Ph.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",sS={light:u0,dark:vL},id=Db(),Cl={...sS,normal:sS[id]},rA=(e={base:id},t)=>{let r={...Cl[id],...Cl[e.base]||{},...e,base:Cl[e.base]?e.base:id};return{...t,...r,barSelectedColor:e.barSelectedColor||r.colorSecondary}},Gl=Ft({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return function r(n,a,l){function i(u,c){if(!a[u]){if(!n[u]){var d=typeof Yu=="function"&&Yu;if(!c&&d)return d(u,!0);if(o)return o(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var p=a[u]={exports:{}};n[u][0].call(p.exports,function(b){var v=n[u][1][b];return i(v||b)},p,p.exports,r,n,a,l)}return a[u].exports}for(var o=typeof Yu=="function"&&Yu,s=0;s<l.length;s++)i(l[s]);return i}({1:[function(r,n,a){n.exports=function(l){if(typeof Map!="function"||l){var i=r("./similar");return new i}else return new Map}},{"./similar":2}],2:[function(r,n,a){function l(){return this.list=[],this.lastItem=void 0,this.size=0,this}l.prototype.get=function(i){var o;if(this.lastItem&&this.isEqual(this.lastItem.key,i))return this.lastItem.val;if(o=this.indexOf(i),o>=0)return this.lastItem=this.list[o],this.list[o].val},l.prototype.set=function(i,o){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=o,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=o,this):(this.lastItem={key:i,val:o},this.list.push(this.lastItem),this.size++,this))},l.prototype.delete=function(i){var o;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),o=this.indexOf(i),o>=0)return this.size--,this.list.splice(o,1)[0]},l.prototype.has=function(i){var o;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(o=this.indexOf(i),o>=0?(this.lastItem=this.list[o],!0):!1)},l.prototype.forEach=function(i,o){var s;for(s=0;s<this.size;s++)i.call(o||this,this.list[s].val,this.list[s].key,this)},l.prototype.indexOf=function(i){var o;for(o=0;o<this.size;o++)if(this.isEqual(this.list[o].key,i))return o;return-1},l.prototype.isEqual=function(i,o){return i===o||i!==i&&o!==o},n.exports=l},{}],3:[function(r,n,a){var l=r("map-or-similar");n.exports=function(u){var c=new l(!1),d=[];return function(f){var p=function(){var b=c,v,S,h=arguments.length-1,y=Array(h+1),E=!0,x;if((p.numArgs||p.numArgs===0)&&p.numArgs!==h+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(x=0;x<h;x++){if(y[x]={cacheItem:b,arg:arguments[x]},b.has(arguments[x])){b=b.get(arguments[x]);continue}E=!1,v=new l(!1),b.set(arguments[x],v),b=v}return E&&(b.has(arguments[h])?S=b.get(arguments[h]):E=!1),E||(S=f.apply(null,arguments),b.set(arguments[h],S)),u>0&&(y[h]={cacheItem:b,arg:arguments[h]},E?i(d,y):d.push(y),d.length>u&&o(d.shift())),p.wasMemoized=E,p.numArgs=h+1,S};return p.limit=u,p.wasMemoized=!1,p.cache=c,p.lru=d,p}};function i(u,c){var d=u.length,f=c.length,p,b,v;for(b=0;b<d;b++){for(p=!0,v=0;v<f;v++)if(!s(u[b][v].arg,c[v].arg)){p=!1;break}if(p)break}u.push(u.splice(b,1)[0])}function o(u){var c=u.length,d=u[c-1],f,p;for(d.cacheItem.delete(d.arg),p=c-2;p>=0&&(d=u[p],f=d.cacheItem.get(d.arg),!f||!f.size);p--)d.cacheItem.delete(d.arg)}function s(u,c){return u===c||u!==u&&c!==c}},{"map-or-similar":1}]},{},[3])(3)})}});function Rr(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var a=n.reduce(function(o,s){var u=s.match(/\n([\t ]+|(?!\s).)/g);return u?o.concat(u.map(function(c){var d,f;return(f=(d=c.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&f!==void 0?f:0})):o},[]);if(a.length){var l=new RegExp(`
|
|
43
43
|
[ ]{`+Math.min.apply(Math,a)+"}","g");n=n.map(function(o){return o.replace(l,`
|
|
44
44
|
`)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(o,s){var u=i.match(/(?:^|\n)( *)$/),c=u?u[1]:"",d=o;typeof o=="string"&&o.includes(`
|
|
45
45
|
`)&&(d=String(o).split(`
|
|
@@ -699,7 +699,7 @@ Inner error message: ${n==null?void 0:n.message}`))}}const{once:yU}=__STORYBOOK_
|
|
|
699
699
|
it's possible a CORS error happened.
|
|
700
700
|
|
|
701
701
|
Please check your dev-tools network tab.
|
|
702
|
-
`});let T=s.versions&&Object.keys(s.versions).length?s.versions:b.versions;await l.setRef(u,{id:u,url:h.url,...b,...T?{versions:T}:{},type:b.storyIndex?"lazy":"auto-inject"})},getRefs:()=>{let{refs:s={}}=e.getState();return s},setRef:async(s,{storyIndex:u,setStoriesData:c,...d},f=!1)=>{if(r)return;let p,b,v,{filters:S}=e.getState(),{storyMapper:h=RO}=t.getConfig(),y=l.getRefs()[s];(u||c)&&(p=c?BY(KY(c,y,{storyMapper:h})):u,v=cf(u,{provider:t,docsOptions:n,filters:S,allStatuses:{}}),b=cf(u,{provider:t,docsOptions:n,filters:{},allStatuses:{}})),b&&(b=C$(b,y)),v&&(v=C$(v,y)),await l.updateRef(s,{...y,...d,index:b,filteredIndex:v,internal_index:p})},updateRef:async(s,u)=>{let{[s]:c,...d}=l.getRefs();d[s]={...c,...u};let f=Object.keys(o).reduce((p,b)=>(p[b]=d[b],p),{});await e.setState({refs:f})}},i=!r&&AO.REFS||{},o=i;return a&&new Promise(async s=>{for(let u of Object.values(i))await l.checkRef({...u,stories:{}});s(void 0)}),{api:l,state:{refs:o}}},sr=(e,t)=>{let{source:r,refId:n,type:a}=e,[l,i]=DO(r,n),o;(n||l==="external")&&(o=n&&t.getRefs()[n]?t.getRefs()[n]:t.findRef(i));let s={source:r,sourceType:l,sourceLocation:i,refId:n,ref:o,type:a};switch(!0){case typeof n=="string":case l==="local":case l==="external":return s;default:return NY.warn(`Received a ${a} frame that was not configured as a ref`),null}},VY=({store:e,fullAPI:t,provider:r})=>{var i,o;let n={getGlobals(){return e.getState().globals},getUserGlobals(){return e.getState().userGlobals},getStoryGlobals(){return e.getState().storyGlobals},getGlobalTypes(){return e.getState().globalTypes},updateGlobals(s){var u;(u=r.channel)==null||u.emit(RY,{globals:s,options:{target:"storybook-preview-iframe"}})}},a={globals:{},userGlobals:{},storyGlobals:{},globalTypes:{}},l=({globals:s,storyGlobals:u,userGlobals:c})=>{let{globals:d,userGlobals:f,storyGlobals:p}=e.getState();bn(s,d)||e.setState({globals:s}),bn(c,f)||e.setState({userGlobals:c}),bn(u,p)||e.setState({storyGlobals:u})};return(i=r.channel)==null||i.on(OY,function({globals:s,storyGlobals:u,userGlobals:c}){let{ref:d}=sr(this,t);d?x$.warn("received a GLOBALS_UPDATED from a non-local ref. This is not currently supported."):l({globals:s,storyGlobals:u,userGlobals:c})}),(o=r.channel)==null||o.on(DY,function({globals:s,globalTypes:u}){var f;let{ref:c}=sr(this,t),d=(f=e.getState())==null?void 0:f.userGlobals;c?Object.keys(s).length>0&&x$.warn("received globals from a non-local ref. This is not currently supported."):e.setState({globals:s,userGlobals:s,globalTypes:u}),d&&Object.keys(d).length!==0&&!bn(s,d)&&n.updateGlobals(d)}),{api:n,state:a}},w1={};Dt(w1,{ActiveTabs:()=>NO,DEFAULT_BOTTOM_PANEL_HEIGHT:()=>df,DEFAULT_NAV_SIZE:()=>ou,DEFAULT_RIGHT_PANEL_WIDTH:()=>ff,focusableUIElements:()=>pa,getDefaultLayoutState:()=>LO,init:()=>WY});const{SET_CONFIG:YY}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:qY}=__STORYBOOK_MODULE_GLOBAL__;var{document:wc}=qY,ug=e=>typeof e=="function",NO={SIDEBAR:"sidebar",CANVAS:"canvas",ADDONS:"addons"},ou=300,df=300,ff=400,LO=()=>({ui:{enableShortcuts:!0},layout:{initialActive:NO.CANVAS,showToolbar:!0,navSize:ou,bottomPanelHeight:df,rightPanelWidth:ff,recentVisibleSizes:{navSize:ou,bottomPanelHeight:df,rightPanelWidth:ff},panelPosition:"bottom",showTabs:!0},layoutCustomisations:{showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:rA()}),pa={addonPanel:"storybook-panel-region",storySearchField:"storybook-explorer-searchfield",storyListMenu:"storybook-explorer-menu",storyPanelRoot:"storybook-panel-root",showAddonPanel:"storybook-show-addon-panel",sidebarRegion:"storybook-sidebar-region",showSidebar:"storybook-show-sidebar"},I0=e=>e.layout.navSize>0,k0=e=>{let{bottomPanelHeight:t,rightPanelWidth:r,panelPosition:n}=e.layout;return n==="bottom"&&t>0||n==="right"&&r>0},w$=e=>!I0(e)&&!k0(e),Ac=e=>({navSize:e.navSize>0?e.navSize:e.recentVisibleSizes.navSize,bottomPanelHeight:e.bottomPanelHeight>0?e.bottomPanelHeight:e.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.rightPanelWidth>0?e.rightPanelWidth:e.recentVisibleSizes.rightPanelWidth}),WY=({store:e,provider:t,singleStory:r})=>{var l;let n={toggleFullscreen(i){return e.setState(o=>{let s=w$(o),u=typeof i=="boolean"?i:!s;return u===s?{layout:o.layout}:u?{layout:{...o.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Ac(o.layout)}}:{layout:{...o.layout,navSize:o.singleStory?0:o.layout.recentVisibleSizes.navSize,bottomPanelHeight:o.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:o.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"session"})},togglePanel(i){return e.setState(o=>{let s=k0(o),u=typeof i=="boolean"?i:!s;return u===s?{layout:o.layout}:u?{layout:{...o.layout,bottomPanelHeight:o.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:o.layout.recentVisibleSizes.rightPanelWidth}}:{layout:{...o.layout,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Ac(o.layout)}}},{persistence:"session"})},togglePanelPosition(i){return e.setState(o=>{let s=i||(o.layout.panelPosition==="right"?"bottom":"right");return{layout:{...o.layout,panelPosition:s,bottomPanelHeight:o.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:o.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"permanent"})},toggleNav(i){return e.setState(o=>{if(o.singleStory)return{layout:o.layout};let s=I0(o),u=typeof i=="boolean"?i:!s;return u===s?{layout:o.layout}:u?{layout:{...o.layout,navSize:o.layout.recentVisibleSizes.navSize}}:{layout:{...o.layout,navSize:0,recentVisibleSizes:Ac(o.layout)}}},{persistence:"session"})},toggleToolbar(i){return e.setState(o=>{let s=typeof i<"u"?i:!o.layout.showToolbar;return{layout:{...o.layout,showToolbar:s}}},{persistence:"session"})},setSizes({navSize:i,bottomPanelHeight:o,rightPanelWidth:s}){return e.setState(u=>{let c={...u.layout,navSize:i??u.layout.navSize,bottomPanelHeight:o??u.layout.bottomPanelHeight,rightPanelWidth:s??u.layout.rightPanelWidth};return{layout:{...c,recentVisibleSizes:Ac(c)}}},{persistence:"session"})},focusOnUIElement(i,o){let{forceFocus:s=!1,select:u=!1,poll:c=!0}=typeof o=="boolean"?{select:o}:o??{};if(!i)return!1;let d=()=>{var p,b;let f=wc.getElementById(i);return!f||(f.focus(),f!==wc.activeElement&&s&&f.getAttribute("tabindex")===null&&(f.setAttribute("tabindex","-1"),f.focus()),f!==wc.activeElement&&f.id!==((p=wc.activeElement)==null?void 0:p.id))?!1:(u&&((b=f.select)==null||b.call(f)),!0)};return d()?!0:c?new Promise(f=>{let p=Date.now(),b=500,v=setInterval(()=>{let S=Date.now()-p;if(d()){clearInterval(v),f(!0);return}S>=b&&(clearInterval(v),f(!1))},50)}):!1},getInitialOptions(){let{theme:i,selectedPanel:o,layoutCustomisations:s,...u}=t.getConfig(),c=LO();return{...c,layout:{...Wp(c.layout,ko(u,Object.keys(c.layout))),...r&&{navSize:0}},layoutCustomisations:{...c.layoutCustomisations,...s??{}},ui:Wp(c.ui,ko(u,Object.keys(c.ui))),selectedPanel:o||c.selectedPanel,theme:i||c.theme}},getIsFullscreen(){return w$(e.getState())},getIsPanelShown(){return k0(e.getState())},getIsNavShown(){return I0(e.getState())},getShowToolbarWithCustomisations(i){let o=e.getState();return ug(o.layoutCustomisations.showToolbar)?o.layoutCustomisations.showToolbar(o,i)??i:i},getShowPanelWithCustomisations(i){let o=e.getState();return ug(o.layoutCustomisations.showPanel)?o.layoutCustomisations.showPanel(o,i)??i:i},getNavSizeWithCustomisations(i){let o=e.getState();if(ug(o.layoutCustomisations.showSidebar)){let s=o.layoutCustomisations.showSidebar(o,i!==0);if(i===0&&s===!0)return o.layout.recentVisibleSizes.navSize;if(i!==0&&s===!1)return 0}return i},setOptions:i=>{let{layout:o,ui:s,selectedPanel:u,theme:c}=e.getState();if(!i)return;let d={...o,...i.layout||{},...ko(i,Object.keys(o)),...r&&{navSize:0}},f={...s,...i.ui,...Wp(i.ui||{},ko(i,Object.keys(s)))},p={...c,...i.theme},b={};pn(s,f)||(b.ui=f),pn(o,d)||(b.layout=d),i.selectedPanel&&!pn(u,i.selectedPanel)&&(b.selectedPanel=i.selectedPanel),Object.keys(b).length&&e.setState(b,{persistence:"permanent"}),pn(c,p)||e.setState({theme:p})}},a=ko(e.getState(),["layout","selectedPanel"]);return(l=t.channel)==null||l.on(YY,()=>{n.setOptions(wl(n.getInitialOptions(),a))}),{api:n,state:wl(n.getInitialOptions(),a)}},MO={};Dt(MO,{init:()=>XY});var XY=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:r})=>{let[n,a]=LS(r,l=>l.id===t.id);return n.forEach(l=>{l.onClear&&l.onClear({dismissed:!1,timeout:!1})}),{notifications:[...a,t]}})},clearNotification:t=>{e.setState(({notifications:r})=>{let[n,a]=LS(r,l=>l.id===t);return n.forEach(l=>{l.onClear&&l.onClear({dismissed:!1,timeout:!1})}),{notifications:a}})}},state:{notifications:[]}}),FO={};Dt(FO,{init:()=>QY});const{OPEN_IN_EDITOR_REQUEST:ZY,OPEN_IN_EDITOR_RESPONSE:cg}=__STORYBOOK_MODULE_CORE_EVENTS__;var QY=({provider:e,fullAPI:t})=>({api:{openInEditor(r){return new Promise(n=>{var s,u;let{file:a,line:l,column:i}=r,o=c=>{var d;c.file===a&&c.line===l&&c.column===i&&((d=e.channel)==null||d.off(cg,o),n(c))};(s=e.channel)==null||s.on(cg,o),(u=e.channel)==null||u.emit(ZY,r)})}},state:{notifications:[]},init:async()=>{var n;let{color:r}=await Qn(async()=>{const{color:a}=await Promise.resolve().then(()=>GM);return{color:a}},void 0,import.meta.url);(n=e.channel)==null||n.on(cg,a=>{a.error!==null&&t.addNotification({id:"open-in-editor-error",content:{headline:"Failed to open in editor",subHeadline:a.error||"Check the Storybook process on the command line for more details."},icon:m.createElement(KF,{color:r.negative}),duration:8e3})})}}),BO={};Dt(BO,{init:()=>JY});var JY=({provider:e,fullAPI:t})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{},init:()=>{e.handleAPI(t)}}),PO={};Dt(PO,{init:()=>eq});var eq=({store:e,navigate:t,fullAPI:r})=>({state:{settings:{lastTrackedStoryId:null}},api:{closeSettings:()=>{let{settings:{lastTrackedStoryId:n}}=e.getState();n?r.selectStory(n):r.selectFirstStory()},changeSettingsTab:n=>{t(`/settings/${n}`)},isSettingsScreenActive:()=>{let{path:n}=r.getUrlState();return!!(n||"").match(/^\/settings/)},retrieveSelection(){let{settings:n}=e.getState();return n.lastTrackedStoryId},storeSelection:async()=>{let{storyId:n,settings:a}=e.getState();await e.setState({settings:{...a,lastTrackedStoryId:n}})}}}),IO={};Dt(IO,{controlOrMetaKey:()=>ui,defaultShortcuts:()=>ci,init:()=>gq,isMacLike:()=>zO,keys:()=>z0});var tq=Kt(yY(),1);const{FORCE_REMOUNT:rq,PREVIEW_KEYDOWN:nq,STORIES_COLLAPSE_ALL:aq,STORIES_EXPAND_ALL:lq}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:kO}=__STORYBOOK_MODULE_GLOBAL__,{global:iq}=__STORYBOOK_MODULE_GLOBAL__;var{navigator:dg}=iq,oq=()=>dg&&dg.platform?!!dg.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,sq=()=>oq()?"⌥":"alt",uq=e=>{var l;if(["Meta","Alt","Control","Shift","Tab"].includes(e.key))return null;let t=[];e.altKey&&t.push("alt"),e.ctrlKey&&t.push("control"),e.metaKey&&t.push("meta"),e.shiftKey&&t.push("shift");let r=(l=e.code)==null?void 0:l.toUpperCase(),n={MINUS:"-",EQUAL:"=",BRACKETLEFT:"[",BRACKETRIGHT:"]",BACKSLASH:"\\",SEMICOLON:";",QUOTE:"'",BACKQUOTE:"`",COMMA:",",PERIOD:".",SLASH:"/"},a=r?r.startsWith("KEY")&&r.length===4?r.replace("KEY",""):r.startsWith("DIGIT")?r.replace("DIGIT",""):n[r]:void 0;if(e.key&&e.key.length===1&&e.key!==" "){let i=e.key.toUpperCase(),o=a;o&&o.length===1&&o!==i?t.push([i,o]):t.push(i)}else e.key==="Dead"&&a&&t.push(a);return e.key===" "&&t.push("space"),e.key==="Escape"&&t.push("escape"),e.key==="ArrowRight"&&t.push("ArrowRight"),e.key==="ArrowDown"&&t.push("ArrowDown"),e.key==="ArrowUp"&&t.push("ArrowUp"),e.key==="ArrowLeft"&&t.push("ArrowLeft"),t.length>0?t:null},cq=(e,t)=>!e||!t||(e.join("").startsWith("shift/")&&e.shift(),e.length!==t.length)?!1:!e.find((r,n)=>Array.isArray(r)?!r.includes(t[n]):r!==t[n]),dq=e=>e==="alt"?sq():e==="control"?"⌃":e==="meta"?"⌘":e==="shift"?"⇧":e==="Enter"||e==="Backspace"||e==="Esc"||e==="escape"?"":e===" "?"SPACE":e==="ArrowUp"?"↑":e==="ArrowDown"?"↓":e==="ArrowLeft"?"←":e==="ArrowRight"?"→":e==null?void 0:e.toUpperCase(),fq=e=>e.map(dq).join(" "),pq=e=>e.map(t=>t==="+"?"plus":t===" "?"space":t).join("+"),{navigator:fg,document:Ea}=kO;function A$(e){return Ea.activeElement&&(e==null?void 0:e.contains(Ea.activeElement))}var zO=()=>fg&&fg.platform?!!fg.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,ui=()=>zO()?"meta":"control";function z0(e){return Object.keys(e)}var ci=Object.freeze({fullScreen:["alt","F"],togglePanel:["alt","A"],panelPosition:["alt","D"],toggleNav:["alt","S"],toolbar:["alt","T"],search:[ui(),"K"],focusNav:["1"],focusIframe:["2"],focusPanel:["3"],prevComponent:["alt","ArrowUp"],nextComponent:["alt","ArrowDown"],prevStory:["alt","ArrowLeft"],nextStory:["alt","ArrowRight"],shortcutsPage:[ui(),"shift",","],aboutPage:[ui(),","],escape:["escape"],collapseAll:[ui(),"shift","ArrowUp"],expandAll:[ui(),"shift","ArrowDown"],remount:["alt","R"],openInEditor:["alt","shift","E"],openInIsolation:["alt","shift","I"],copyStoryLink:["alt","shift","L"],goToPreviousLandmark:["shift","F6"],goToNextLandmark:["F6"]}),pg={};function hq(e){let t=e.target;return!!(/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null||t.closest("dialog[open]"))}var gq=({store:e,fullAPI:t,provider:r})=>{let n={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...ci,...n.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return pg},getAddonsShortcutLabels(){let i={};return Object.entries(n.getAddonsShortcuts()).forEach(([o,{label:s}])=>{i[o]=s}),i},getAddonsShortcutDefaults(){let i={};return Object.entries(n.getAddonsShortcuts()).forEach(([o,{defaultShortcut:s}])=>{i[o]=s}),i},async setShortcuts(i){let{shortcuts:o}=await e.setState(s=>({shortcuts:typeof i=="function"?i(s.shortcuts):i}),{persistence:"permanent"});return o},async restoreAllDefaultShortcuts(){return n.setShortcuts(n.getDefaultShortcuts())},async setShortcut(i,o){return await n.setShortcuts(s=>({...s,[i]:o})),o},async setAddonShortcut(i,o){return await n.setShortcuts(s=>({...s,[`${i}-${o.actionName}`]:o.defaultShortcut})),pg[`${i}-${o.actionName}`]=o,o},async restoreDefaultShortcut(i){let o=n.getDefaultShortcuts()[i];return n.setShortcut(i,o)},handleKeydownEvent(i){let o=uq(i),s=n.getShortcutKeys(),u=z0(s).find(c=>cq(o,s[c]));u&&n.handleShortcutFeature(u,i)},handleShortcutFeature(i,o){let{ui:{enableShortcuts:s},storyId:u,refId:c,viewMode:d}=e.getState();if(s)switch(o!=null&&o.preventDefault&&o.preventDefault(),i){case"escape":{t.getIsFullscreen()?t.toggleFullscreen(!1):t.getIsNavShown()&&t.toggleNav(!0);break}case"goToNextLandmark":case"goToPreviousLandmark":break;case"focusNav":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),t.focusOnUIElement(pa.storyListMenu);break}case"search":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(pa.storySearchField,!0)},0);break}case"focusIframe":{let f=Ea.getElementById("storybook-preview-iframe");if(f)try{f.contentWindow.focus()}catch{}break}case"focusPanel":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.focusOnUIElement(pa.storyPanelRoot);break}case"nextStory":{t.jumpToStory(1);break}case"prevStory":{t.jumpToStory(-1);break}case"nextComponent":{t.jumpToComponent(1);break}case"prevComponent":{t.jumpToComponent(-1);break}case"fullScreen":{t.toggleFullscreen();break}case"togglePanel":{let f=t.getIsPanelShown(),p=Ea.getElementById(pa.addonPanel);t.togglePanel(),f&&A$(p)&&t.focusOnUIElement(pa.showAddonPanel,{poll:!0}).then(b=>{b===!1&&Ea.body.focus()});break}case"toggleNav":{let f=t.getIsNavShown(),p=Ea.getElementById(pa.sidebarRegion);t.toggleNav(),f&&A$(p)&&t.focusOnUIElement(pa.showSidebar,{poll:!0}).then(b=>{b===!1&&Ea.body.focus()});break}case"toolbar":{t.toggleToolbar();break}case"panelPosition":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.togglePanelPosition();break}case"aboutPage":{t.navigate("/settings/about");break}case"shortcutsPage":{t.navigate("/settings/shortcuts");break}case"collapseAll":{t.emit(aq);break}case"expandAll":{t.emit(lq);break}case"remount":{t.emit(rq,{storyId:u});break}case"openInEditor":{kO.CONFIG_TYPE==="DEVELOPMENT"&&t.openInEditor({file:t.getCurrentStoryData().importPath});break}case"openInIsolation":{if(u&&d==="story"){let{previewHref:f}=t.getStoryHrefs(u,{refId:c});window.open(f,"_blank","noopener,noreferrer")}break}case"copyStoryLink":{if(u){let{managerHref:f}=t.getStoryHrefs(u,{refId:c});(0,tq.default)(f)}break}default:pg[i].action();break}}},{shortcuts:a=ci}=e.getState(),l={shortcuts:z0(ci).reduce((i,o)=>({...i,[o]:a[o]||ci[o]}),ci)};return{api:n,state:l,init:()=>{var i;Ea.addEventListener("keydown",o=>{hq(o)||n.handleKeydownEvent(o)}),(i=r.channel)==null||i.on(nq,o=>{n.handleKeydownEvent(o.event)})}}},HO={};Dt(HO,{getDefaultTagsFromPreset:()=>KO,init:()=>jq});var mq=Kt(Gl(),1);const{logger:yq}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:bq,CURRENT_STORY_WAS_SET:vq,DOCS_PREPARED:Eq,PRELOAD_ENTRIES:Sq,RESET_STORY_ARGS:xq,SELECT_STORY:$q,SET_CONFIG:_q,SET_CURRENT_STORY:Cq,SET_FILTER:Tq,SET_INDEX:wq,SET_STORIES:Aq,STORY_ARGS_UPDATED:Oq,STORY_CHANGED:Dq,STORY_INDEX_INVALIDATED:Rq,STORY_MISSING:Nq,STORY_PREPARED:Lq,STORY_SPECIFIED:Mq,UPDATE_STORY_ARGS:Fq}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:UO}=__STORYBOOK_MODULE_GLOBAL__;Kt(ok(),1);var Bq=class extends Jb{constructor(e){super({name:"StatusTypeIdMismatchError",category:"CORE-SERVER",code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},Pq={id:"storybook/status",leader:!0,initialState:{}},hg={SELECT:"select"};function Iq({universalStatusStore:e,useUniversalStore:t,environment:r}){let n={getAll(){return e.getState()},set(l){e.setState(i=>{let o={...i};for(let s of l){let{storyId:u,typeId:c}=s;o[u]={...o[u]??{},[c]:s}}return o})},onAllStatusChange(l){return e.onStateChange((i,o)=>{l(i,o)})},onSelect(l){return e.subscribe(hg.SELECT,i=>{l(i.payload)})},selectStatuses:l=>{e.send({type:hg.SELECT,payload:l})},unset(l){if(!l){e.setState({});return}e.setState(i=>{let o={...i};for(let s of l)delete o[s];return o})},typeId:void 0},a=l=>({getAll:n.getAll,set(i){e.setState(o=>{let s={...o};for(let u of i){let{storyId:c}=u;if(u.typeId!==l)switch(r){case"server":throw new Bq({status:u,typeId:l});case"manager":throw new ak({status:u,typeId:l});case"preview":default:throw new lk({status:u,typeId:l})}s[c]={...s[c]??{},[l]:u}}return s})},onAllStatusChange:n.onAllStatusChange,onSelect(i){return e.subscribe(hg.SELECT,o=>{o.payload.some(s=>s.typeId===l)&&i(o.payload)})},unset(i){e.setState(o=>{var u;let s={...o};for(let c in s)if((u=s[c])!=null&&u[l]&&(!i||i!=null&&i.includes(c))){let{[l]:d,...f}=s[c];s[c]=f}return s})},typeId:l});return t?{getStatusStoreByTypeId:a,fullStatusStore:n,universalStatusStore:e,useStatusStore:l=>t(e,l)[0]}:{getStatusStoreByTypeId:a,fullStatusStore:n,universalStatusStore:e}}var jO=(e,t)=>{let r=g.useRef(t?t(e.getState()):e.getState()),n=g.useCallback(l=>e.onStateChange((i,o)=>{if(!t){r.current=i,l();return}let s=t(i),u=t(o);!pn(s,u)&&(r.current=s,l())}),[e,t]),a=g.useCallback(()=>{let l=e.getState(),i=t?t(l):l;return pn(i,r.current)||(r.current=i),r.current},[e,t]);return[g.useSyncExternalStore(n,a),e.setState]},kq=Iq({universalStatusStore:Ub.create({...Pq,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:jO,environment:"manager"}),{fullStatusStore:O$}=kq,{fetch:zq}=UO,Hq="./index.json",gg="tags-filter",D$="static-filter",KO=(0,mq.default)(1)(e=>{let t=Object.entries(e);return{included:t.filter(([,r])=>r.defaultFilterSelection==="include").map(([r])=>r),excluded:t.filter(([,r])=>r.defaultFilterSelection==="exclude").map(([r])=>r)}}),R$=e=>{let t=Object.entries(e).reduce((r,n)=>{let[a,l]=n;return l.excludeFromSidebar&&(r[a]=!0),r},{});return r=>{let n=r.tags??[];return(n.includes(Bi.DEV)||r.type==="docs")&&n.filter(a=>t[a]).length===0}},mg=(e,t)=>{let r=n=>Object.values(n.reduce((a,l)=>(Object.hasOwn(MS,l)?a["built-in"].push(MS[l]):a.user.push(sk(l)),a),{"built-in":[],user:[]})).filter(a=>a.length>0);return n=>{let a=r(e),l=r(t);return(!a.length||a.every(i=>i.some(o=>o(n,!1))))&&(!l.length||l.every(i=>i.every(o=>o(n,!0))))}},Uq=["enableShortcuts","theme","showRoots"];function yg(e){if(!e||typeof e=="string")return e;let t={...e};return Uq.forEach(r=>{r in t&&delete t[r]}),t}var jq=({fullAPI:e,store:t,navigate:r,provider:n,storyId:a,viewMode:l,docsOptions:i={}})=>{var S,h,y,E,x,T,_,C,O,D,L,w,I,k,M,B;let o={storyId:vc,getData:($,A)=>{let R=o.resolveStory($,A);if((R==null?void 0:R.type)==="story"||(R==null?void 0:R.type)==="docs")return R},isPrepared:($,A)=>{let R=o.getData($,A);return R?R.type==="story"?R.prepared:!0:!1},resolveStory:($,A)=>{var N,z;let{refs:R,index:P}=t.getState();if(!(A&&!R[A]))return A?((z=(N=R==null?void 0:R[A])==null?void 0:N.index)==null?void 0:z[$])??void 0:P?P[$]:void 0},getCurrentStoryData:()=>{let{storyId:$,refId:A}=t.getState();return o.getData($,A)},getIndex:()=>{let{internal_index:$}=t.getState();return $},getParameters:($,A)=>{let{storyId:R,refId:P}=typeof $=="string"?{storyId:$,refId:void 0}:$,N=o.getData(R,P);if(["story","docs"].includes(N==null?void 0:N.type)){let{parameters:z}=N;if(z)return A?z[A]:z}return null},getCurrentParameter:$=>{let{storyId:A,refId:R}=t.getState();return o.getParameters({storyId:A,refId:R},$)||void 0},jumpToComponent:$=>{let{filteredIndex:A,storyId:R,refs:P,refId:N}=t.getState();if(!o.getData(R,N))return;let z=N?P[N].filteredIndex||{}:A;if(!z)return;let U=o.findSiblingStoryId(R,z,$,!0);U&&o.selectStory(U,void 0,{ref:N})},jumpToStory:$=>{let{filteredIndex:A,storyId:R,refs:P,refId:N}=t.getState(),z=o.getData(R,N);if(!z)return;let U=z.refId?P[z.refId].filteredIndex:A;if(!U)return;let K=o.findSiblingStoryId(R,U,$,!1);K&&o.selectStory(K,void 0,{ref:N})},selectFirstStory:()=>{let{index:$}=t.getState();if(!$)return;let A=Object.keys($).find(R=>$[R].type==="story");if(A){o.selectStory(A);return}r("/")},selectStory:($=void 0,A=void 0,R={})=>{let{ref:P}=R,{storyId:N,index:z,filteredIndex:U,refs:K,settings:G}=t.getState(),H=W=>(W==null?void 0:W.type)==="docs"||(W==null?void 0:W.type)==="story"?(t.setState({settings:{...G,lastTrackedStoryId:W.id}}),r(`/${W.type}/${W.refId?`${W.refId}_${W.id}`:W.id}`),!0):!1,V=N==null?void 0:N.split("--",2)[0],q=P?K[P].index:z,ee=P?K[P].filteredIndex:U;if(!(!q||!ee))if(A)if(!$)H(q[vc(V,A)]);else{let W=P?`${P}_${vc($,A)}`:vc($,A);if(q[W])H(q[W]);else{let ke=q[ao($)];if((ke==null?void 0:ke.type)==="component"){let J=ke.children.find(Y=>q[Y].name===A);H(J?q[J]:void 0)}}}else{let W=$?q[$]||q[ao($)]:q[V];if(!W)throw new Error(`Unknown id or title: '${$}'`);H(W)||H(o.findLeafEntry(ee,W.id))}},findLeafEntry($,A){let R=$[A];if(R.type==="docs"||R.type==="story")return R;let P=R.children.find(N=>$[N])||R.children[0];return o.findLeafEntry($,P)},findLeafStoryId($,A){var R;return(R=o.findLeafEntry($,A))==null?void 0:R.id},findAllLeafStoryIds($){let{index:A}=t.getState();if(!A)return[];let R=(P,N=[])=>{var U;let z=A[P];return z&&(z.type==="story"&&N.push(z.id),"children"in z&&((U=z.children)==null||U.forEach(K=>R(K,N)))),N};return R($,[])},findSiblingStoryId($,A,R,P){if(P){let U=zY(A),K=U.findIndex(G=>G.includes($));return K===U.length-1&&R>0||K===0&&R<0?void 0:U[K+R]?U[K+R][0]:void 0}let N=HY(A),z=N.indexOf($);if(!(z===N.length-1&&R>0)&&!(z===0&&R<0))return N[z+R]},updateStoryArgs:($,A)=>{var N;let{id:R,refId:P}=$;(N=n.channel)==null||N.emit(Fq,{storyId:R,updatedArgs:A,options:{target:P}})},resetStoryArgs:($,A)=>{var N;let{id:R,refId:P}=$;(N=n.channel)==null||N.emit(xq,{storyId:R,argNames:A,options:{target:P}})},fetchIndex:async()=>{try{let $=await zq(Hq);if($.status!==200)throw new Error(await $.text());let A=await $.json();if(A.v<3){yq.warn(`Skipping story index with version v${A.v}, awaiting SET_STORIES.`);return}await o.setIndex(A)}catch($){await t.setState({indexError:$})}},setIndex:async $=>{let{filteredIndex:A,index:R,filters:P}=t.getState(),N=O$.getAll(),z=cf($,{provider:n,docsOptions:i,filters:P,allStatuses:N}),U=cf($,{provider:n,docsOptions:i,filters:{},allStatuses:N});await t.setState({internal_index:$,filteredIndex:$$(z,A),index:$$(U,R),indexError:void 0})},updateStory:async($,A,R)=>{if(R){let{id:P,index:N,filteredIndex:z}=R;N&&N[$]&&(N[$]={...N[$],...A}),z&&z[$]&&(z[$]={...z[$],...A}),await e.updateRef(P,{index:N,filteredIndex:z})}else{let{index:P,filteredIndex:N}=t.getState();P&&P[$]&&(P[$]={...P[$],...A}),N&&N[$]&&(N[$]={...N[$],...A}),(P||N)&&await t.setState({index:P,filteredIndex:N})}},updateDocs:async($,A,R)=>{if(R){let{id:P,index:N,filteredIndex:z}=R;N[$]={...N[$],...A},z[$]={...z[$],...A},await e.updateRef(P,{index:N,filteredIndex:z})}else{let{index:P,filteredIndex:N}=t.getState();P&&(P[$]={...P[$],...A}),N&&(N[$]={...N[$],...A}),(P||N)&&await t.setState({index:P,filteredIndex:N})}},setPreviewInitialized:async $=>{$?e.updateRef($.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async($,A)=>{var N;await t.setState({filters:{...t.getState().filters,[$]:A}});let{internal_index:R}=t.getState();if(!R)return;await o.setIndex(R);let P=await e.getRefs();for(let[z,{internal_index:U,...K}]of Object.entries(P))await e.setRef(z,{...K,storyIndex:U},!0);(N=n.channel)==null||N.emit(Tq,{id:$})},resetTagFilters:async()=>{await t.setState($=>({includedTagFilters:$.defaultIncludedTagFilters,excludedTagFilters:$.defaultExcludedTagFilters}),{persistence:"permanent"}),s()},setAllTagFilters:async($,A)=>{await t.setState({includedTagFilters:$,excludedTagFilters:A},{persistence:"permanent"}),s()},addTagFilters:async($,A)=>{let R=t.getState(),P=new Set(R.includedTagFilters),N=new Set(R.excludedTagFilters);for(let z of $)A?(P.delete(z),N.add(z)):(P.add(z),N.delete(z));await t.setState({includedTagFilters:Array.from(P),excludedTagFilters:Array.from(N)},{persistence:"permanent"}),s()},removeTagFilters:async $=>{let A=t.getState();await t.setState({includedTagFilters:A.includedTagFilters.filter(R=>!$.includes(R)),excludedTagFilters:A.excludedTagFilters.filter(R=>!$.includes(R))},{persistence:"permanent"}),s()}},s=()=>{let{includedTagFilters:$,excludedTagFilters:A}=t.getState();o.experimental_setFilter(gg,mg($,A))};(S=n.channel)==null||S.on(Mq,function({storyId:$,viewMode:A}){var P,N;let{sourceType:R}=sr(this,e);if(R==="local"){let z=t.getState(),U=z.path==="/"||z.viewMode==="story"||z.viewMode==="docs",K=z.viewMode&&z.storyId,G=z.viewMode!==A||z.storyId!==$,{type:H}=((P=z.index)==null?void 0:P[z.storyId])||{};U&&(K&&G&&!(H==="root"||H==="component"||H==="group")?(N=n.channel)==null||N.emit(Cq,{storyId:z.storyId,viewMode:z.viewMode}):G&&r(`/${A}/${$}`))}}),(h=n.channel)==null||h.on(vq,function(){let{ref:$}=sr(this,e);o.setPreviewInitialized($)}),(y=n.channel)==null||y.on(Dq,function(){let{sourceType:$}=sr(this,e);if($==="local"){let A=o.getCurrentParameter("options");A&&e.setOptions(yg(A))}}),(E=n.channel)==null||E.on(Lq,function({id:$,...A}){var N;let{ref:R,sourceType:P}=sr(this,e);if(o.updateStory($,{...A,prepared:!0},R),!R&&!t.getState().hasCalledSetOptions){let{options:z}=A.parameters;e.setOptions(yg(z)),t.setState({hasCalledSetOptions:!0})}if(P==="local"){let{storyId:z,index:U,refId:K}=t.getState();if(!U)return;let G=Array.from(new Set([o.findSiblingStoryId(z,U,1,!0),o.findSiblingStoryId(z,U,-1,!0)])).filter(Boolean);(N=n.channel)==null||N.emit(Sq,{ids:G,options:{target:K}})}}),(x=n.channel)==null||x.on(Eq,function({id:$,...A}){let{ref:R}=sr(this,e);o.updateStory($,{...A,prepared:!0},R)}),(T=n.channel)==null||T.on(wq,function($){let{ref:A}=sr(this,e);if(A)e.setRef(A.id,{...A,storyIndex:$},!0);else{o.setIndex($);let R=o.getCurrentParameter("options");e.setOptions(yg(R))}}),(_=n.channel)==null||_.on(Aq,function($){let{ref:A}=sr(this,e),R=$.v?FY($):$.stories;if(A)e.setRef(A.id,{...A,setStoriesData:R},!0);else throw new Error("Cannot call SET_STORIES for local frame")}),(C=n.channel)==null||C.on($q,function({kind:$,title:A=$,story:R,name:P=R,storyId:N,...z}){let{ref:U}=sr(this,e);U?e.selectStory(N||A,P,{...z,ref:U.id}):e.selectStory(N||A,P,z)}),(O=n.channel)==null||O.on(Oq,function({storyId:$,args:A}){let{ref:R}=sr(this,e);o.updateStory($,{args:A},R)}),(D=n.channel)==null||D.on(bq,function($){let{ref:A}=sr(this,e);o.setPreviewInitialized(A)}),(L=n.channel)==null||L.on(Nq,function($){let{ref:A}=sr(this,e);o.setPreviewInitialized(A)}),(w=n.channel)==null||w.on(_q,()=>{var N,z;let $=((z=(N=n.getConfig())==null?void 0:N.sidebar)==null?void 0:z.filters)||{},{includedTagFilters:A,excludedTagFilters:R,tagPresets:P}=t.getState();t.setState({filters:{...t.getState().filters,...$,[D$]:R$(P),[gg]:mg(A,R)}})}),O$.onAllStatusChange(async()=>{let{internal_index:$}=t.getState();if(!$)return;await o.setIndex($);let A=await e.getRefs();Object.entries(A).forEach(([R,{internal_index:P,...N}])=>{e.setRef(R,{...N,storyIndex:P},!0)})});let u=((k=(I=n.getConfig())==null?void 0:I.sidebar)==null?void 0:k.filters)||{},c=UO.TAGS_OPTIONS||{},d=KO(c),f=t.getState(),p=f.includedTagFilters??((M=f.layout)==null?void 0:M.includedTagFilters)??d.included,b=f.excludedTagFilters??((B=f.layout)==null?void 0:B.excludedTagFilters)??d.excluded,v={...u,[D$]:R$(c),[gg]:mg(p,b)};return{api:o,state:{storyId:a,viewMode:l,hasCalledSetOptions:!1,previewInitialized:!1,filters:v,tagPresets:c,defaultIncludedTagFilters:d.included,defaultExcludedTagFilters:d.excluded,includedTagFilters:p,excludedTagFilters:b},init:async()=>{var $;($=n.channel)==null||$.on(Rq,()=>o.fetchIndex()),await o.fetchIndex()}}},GO={};Dt(GO,{init:()=>Xq});const{GLOBALS_UPDATED:Kq,NAVIGATE_URL:Gq,SET_CURRENT_STORY:Vq,STORY_ARGS_UPDATED:Yq,UPDATE_QUERY_PARAMS:qq}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:ni}=__STORYBOOK_MODULE_GLOBAL__;var N$=Kt(d5(),1),rl=e=>{if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1},L$=e=>Object.fromEntries(e.split(";").map(t=>t.split(":")).map(([t,r])=>[t,encodeURIComponent(r)]).filter(([t,r])=>t&&r)),M$=(e,t)=>{let r=L$(e),n=L$(t);return Object.entries({...r,...n}).map(([a,l])=>`${a}:${l}`).join(";")},bg,Wq=({state:{location:e,path:t,viewMode:r,storyId:n},singleStory:a})=>{let{full:l,panel:i,nav:o,shortcuts:s,addonPanel:u,tabs:c,path:d,...f}=Ij(e),p,b,v;rl(l)===!0?(p=0,b=0,v=0):rl(l)===!1&&(p=ou,b=df,v=ff),a||(rl(o)===!0&&(p=ou),rl(o)===!1&&(p=0)),rl(i)===!1&&(b=0,v=0);let S={navSize:p,bottomPanelHeight:b,rightPanelWidth:v,panelPosition:["right","bottom"].includes(i)?i:void 0,showTabs:rl(c)},h={enableShortcuts:rl(s)},y=u||void 0,E=n,x=bn(bg,f)?bg:f;return bg=x,{viewMode:r,layout:S,ui:h,selectedPanel:y,location:e,path:t,customQueryParams:x,storyId:E}},Xq=e=>{var u,c,d,f;let{store:t,navigate:r,provider:n,fullAPI:a}=e,l=(p,b={},v={})=>{let S=Object.entries(b).filter(([,y])=>y).sort(([y],[E])=>y<E?-1:1).map(([y,E])=>`${y}=${E}`),h=[p,...S].join("&");return r(h,v)},i={getStoryHrefs(p,b={}){let{id:v,refId:S}=a.getCurrentStoryData()??{},h=p===v&&b.refId===S,{customQueryParams:y,location:E,refs:x}=t.getState(),{base:T,inheritArgs:_=h,inheritGlobals:C=!0,queryParams:O={},refId:D,viewMode:L="story"}=b;if(D&&!x[D])throw new Error(`Invalid refId: ${D}`);let w=E.pathname||"/",I=ni.window.location.origin+w,k=ni.STORYBOOK_NETWORK_ADDRESS??I,M=T==="origin"?I:T==="network"?k:w,B=D?x[D].url+"/iframe.html":ni.PREVIEW_URL||`${M.replace(/\/[^/]*\.html$/,"").replace(/\/?$/,"/")}iframe.html`,$=D?`&refId=${encodeURIComponent(D)}`:"",{args:A="",globals:R="",...P}=O,N=_?M$((y==null?void 0:y.args)??"",A):A,z=C?M$((y==null?void 0:y.globals)??"",R):R,U=(0,N$.stringify)(P,{nesting:!0,nestingSyntax:"js"}),K=(0,N$.stringify)(T8(P,["id","viewMode"]),{nesting:!0,nestingSyntax:"js"});return N=N&&`&args=${N}`,z=z&&`&globals=${z}`,U=U&&`&${U}`,K=K&&`&${K}`,{managerHref:`${M}?path=/${L}/${D?`${D}_`:""}${p}${N}${z}${U}`,previewHref:`${B}?id=${p}&viewMode=${L}${$}${N}${D?"":z}${K}`}},getQueryParam(p){let{customQueryParams:b}=t.getState();return b?b[p]:void 0},getUrlState(){let{location:p,path:b,customQueryParams:v,storyId:S,url:h,viewMode:y}=t.getState();return{path:b,hash:p.hash??"",queryParams:v,storyId:S,url:h,viewMode:y}},setQueryParams(p){var h;let{customQueryParams:b}=t.getState(),v={},S={...b,...Object.entries(p).reduce((y,[E,x])=>(x!==null&&(y[E]=x),y),v)};bn(b,S)||(t.setState({customQueryParams:S}),(h=n.channel)==null||h.emit(qq,S))},applyQueryParams(p,b){let{path:v,hash:S="",queryParams:h}=i.getUrlState();l(`${v}${S}`,{...h,...p},b),i.setQueryParams(p)},navigateUrl(p,b){r(p,{plain:!0,...b})}},o=()=>{let{path:p,hash:b="",queryParams:v,viewMode:S}=i.getUrlState();if(S!=="story")return;let h=a.getCurrentStoryData();if((h==null?void 0:h.type)!=="story")return;let{args:y,initialArgs:E}=h,x=Xx(E,y);l(`${p}${b}`,{...v,args:x},{replace:!0}),i.setQueryParams({args:x})};(u=n.channel)==null||u.on(Vq,()=>o());let s;return(c=n.channel)==null||c.on(Yq,()=>{"requestIdleCallback"in ni.window?(s&&ni.window.cancelIdleCallback(s),s=ni.window.requestIdleCallback(o,{timeout:1e3})):(s&&clearTimeout(s),setTimeout(o,100))}),(d=n.channel)==null||d.on(Kq,({userGlobals:p,initialGlobals:b})=>{let{path:v,hash:S="",queryParams:h}=i.getUrlState(),y=Xx(b,wl(b,p));l(`${v}${S}`,{...h,globals:y},{replace:!0}),i.setQueryParams({globals:y})}),(f=n.channel)==null||f.on(Gq,(p,b)=>{i.navigateUrl(p,b)}),{api:i,state:Wq(e)}},VO={};Dt(VO,{init:()=>tW});var Zq=Kt(Gl(),1);const{global:H0}=__STORYBOOK_MODULE_GLOBAL__;var Qq="10.3.4",{VERSIONCHECK:Jq}=H0,F$=(0,Zq.default)(1)(()=>{try{return{...JSON.parse(Jq).data||{}}}catch{return{}}}),eW=e=>e.includes("vue")?"vue":e,tW=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),r={versions:{current:{version:Qq},...F$()},dismissedVersionNotification:t},n={getCurrentVersion:()=>{let{versions:{current:a}}=e.getState();return a},getLatestVersion:()=>{let{versions:{latest:a,next:l,current:i}}=e.getState();return i&&or.prerelease(i.version)&&l?a&&or.gt(a.version,l.version)?a:l:a},getDocsUrl:({asset:a,subpath:l=a,versioned:i,renderer:o,ref:s="ui"})=>{var S,h;let{versions:u}=e.getState(),c=(S=u.latest)==null?void 0:S.version,d=(h=u.current)==null?void 0:h.version,f=(d==null?void 0:d.startsWith("0.0.0"))&&c||d,p=`https://storybook.js.org/${a?"docs-assets":"docs"}/`;if(a&&f)p+=`${or.major(f)}.${or.minor(f)}/`;else if(i&&f&&c){let y=or.diff(c,f);y==="patch"||y===null||(p+=`${or.major(f)}.${or.minor(f)}/`)}let[b,v]=(l==null?void 0:l.split("#"))||[];if(b&&(p+=a?b:`${b}/`),o&&typeof H0.STORYBOOK_RENDERER<"u"){let y=H0.STORYBOOK_RENDERER;y&&(p+=`?renderer=${eW(y)}`)}return s&&(p+=`${p.includes("?")?"&":"?"}ref=${s}`),v&&(p+=`#${v}`),p},versionUpdateAvailable:()=>{let a=n.getLatestVersion(),l=n.getCurrentVersion();if(a){if(!a.version||!l.version)return!0;let i=or.prerelease(l.version)?`${or.major(l.version)}.${or.minor(l.version)}.${or.patch(l.version)}`:l.version,o=or.diff(i,a.version);return or.gt(a.version,i)&&o!=="patch"&&!o.includes("pre")}return!1}};return{init:async()=>{let{versions:a={}}=e.getState(),{latest:l,next:i}=F$();await e.setState({versions:{...a,latest:l,next:i}})},state:r,api:n}},YO={};Dt(YO,{init:()=>sW});const{REQUEST_WHATS_NEW_DATA:rW,RESULT_WHATS_NEW_DATA:nW,SET_WHATS_NEW_CACHE:aW,TOGGLE_WHATS_NEW_NOTIFICATIONS:lW}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:iW}=__STORYBOOK_MODULE_GLOBAL__;var B$="whats-new",oW=({color:e="currentColor",size:t=14})=>m.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z",fill:e})),sW=({fullAPI:e,store:t,provider:r})=>{let n={whatsNewData:void 0};function a(s){t.setState({whatsNewData:s}),n.whatsNewData=s}let l={isWhatsNewUnread(){var s;return((s=n.whatsNewData)==null?void 0:s.status)==="SUCCESS"&&!n.whatsNewData.postIsRead},whatsNewHasBeenRead(){var s;((s=n.whatsNewData)==null?void 0:s.status)==="SUCCESS"&&(o({lastReadPost:n.whatsNewData.url}),a({...n.whatsNewData,postIsRead:!0}),e.clearNotification(B$))},toggleWhatsNewNotifications(){var s,u;((s=n.whatsNewData)==null?void 0:s.status)==="SUCCESS"&&(a({...n.whatsNewData,disableWhatsNewNotifications:!n.whatsNewData.disableWhatsNewNotifications}),(u=r.channel)==null||u.emit(lW,{disableWhatsNewNotifications:n.whatsNewData.disableWhatsNewNotifications}))}};function i(){var s;return(s=r.channel)==null||s.emit(rW),new Promise(u=>{var c;return(c=r.channel)==null?void 0:c.once(nW,({data:d})=>u(d))})}function o(s){var u;(u=r.channel)==null||u.emit(aW,s)}return{init:async()=>{var c;if(iW.CONFIG_TYPE!=="DEVELOPMENT")return;let s=await i();a(s);let u=e.getUrlState();!((u==null?void 0:u.path)==="/onboarding"||((c=u.queryParams)==null?void 0:c.onboarding)==="true")&&s.status==="SUCCESS"&&!s.disableWhatsNewNotifications&&s.showNotification&&e.addNotification({id:B$,link:"/settings/whats-new",content:{headline:s.title,subHeadline:"Learn what's new in Storybook"},icon:m.createElement(oW,null),onClear({dismissed:d}){d&&o({lastDismissedPost:s.url})}})},state:n,api:l}},fs=Kt(bY(),1),uW=e=>{e.fn("set",function(t,r){return e.set(this._area,this._in(t),tk(r,{maxDepth:50}))}),e.fn("get",function(t,r){let n=e.get(this._area,this._in(t));return n!==null?nk(n):r||n})};uW(fs.default._);var qO="@storybook/manager/store";function U0(e){return e.get(qO)||{}}function cW(e,t){return e.set(qO,t)}function dW(e,t){let r=U0(e);return cW(e,{...r,...t})}var fW=class{constructor({allowPersistence:e,setState:t,getState:r}){this.upstreamPersistence=e??!0,this.upstreamSetState=t,this.upstreamGetState=r}getInitialState(e){return{...e,...U0(fs.default.local),...U0(fs.default.session)}}getState(){return this.upstreamGetState()}async setState(e,t,r){let n,a;typeof t=="function"?(n=t,a=r):a=t;let{persistence:l="none"}=a||{},i={},o={};typeof e=="function"?i=u=>(o=e(u),o):(i=e,o=i);let s=await new Promise(u=>{this.upstreamSetState(i,()=>{u(this.getState())})});if(l!=="none"&&this.upstreamPersistence){let u=l==="session"?fs.default.session:fs.default.local;await dW(u,o)}return n&&n(s),s}},{ActiveTabs:upe}=w1,WO=vY({api:void 0,state:B0({})}),pW=(...e)=>EY({},...e),hW=class extends g.Component{constructor(e){super(e),this.api={},this.initModules=()=>{this.modules.forEach(v=>{"init"in v&&v.init()})};let{location:t,path:r,refId:n,viewMode:a=e.docsOptions.docsMode?"docs":e.viewMode,singleStory:l,storyId:i,docsOptions:o,navigate:s}=e,u=new fW({getState:()=>this.state,setState:(v,S)=>(this.setState(v,()=>S(this.state)),this.state)}),c={location:t,path:r,viewMode:a,singleStory:l,storyId:i,refId:n},d={docsOptions:o};this.state=u.getInitialState(B0({...c,...d}));let f={navigate:s,store:u,provider:e.provider};this.modules=[BO,CO,_O,w1,MO,PO,IO,HO,wO,TO,GO,VO,YO,FO].map(v=>v.init({...c,...d,...f,state:this.state,fullAPI:this.api}));let p=B0(this.state,...this.modules.map(v=>v.state)),b=Object.assign(this.api,{navigate:s},...this.modules.map(v=>v.api));this.state=p,this.api=b}static getDerivedStateFromProps(e,t){return t.path!==e.path?{...t,location:e.location,path:e.path,refId:e.refId,viewMode:e.viewMode,storyId:e.storyId}:null}shouldComponentUpdate(e,t){let r=this.props,n=this.state;return r.path!==e.path||!pn(n,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return m.createElement(gW,{effect:this.initModules},m.createElement(WO.Provider,{value:t},m.createElement(yW,null,e)))}};hW.displayName="Manager";var gW=({children:e,effect:t})=>(m.useEffect(t,[]),e),mW=e=>e;function yW({filter:e=mW,children:t}){let r=g.useContext(WO),n=g.useRef(t),a=g.useRef(e);if(typeof n.current!="function")return m.createElement(g.Fragment,null,n.current);let l=a.current(r),i=g.useMemo(()=>[...Object.entries(l).reduce((o,s)=>o.concat(s),[])],[r.state]);return g.useMemo(()=>{let o=n.current;return m.createElement(o,{...l})},i)}globalThis.STORYBOOK_ADDON_STATE={};const{Channel:cpe}=__STORYBOOK_MODULE_CHANNELS__;var bW={id:"storybook/test-provider",leader:!0,initialState:{}};function vW({universalTestProviderStore:e,useUniversalStore:t}){let r={settingsChanged:()=>{e.untilReady().then(()=>{e.send({type:"settings-changed"})})},onRunAll:l=>e.subscribe("run-all",l),onClearAll:l=>e.subscribe("clear-all",l)},n={...r,getFullState:e.getState,setFullState:e.setState,onSettingsChanged:l=>e.subscribe("settings-changed",l),runAll:async()=>{await e.untilReady(),e.send({type:"run-all"})},clearAll:async()=>{await e.untilReady(),e.send({type:"clear-all"})}},a=l=>{let i=()=>e.getState()[l]??"test-provider-state:pending",o=s=>{e.untilReady().then(()=>{e.setState(u=>({...u,[l]:s}))})};return{...r,testProviderId:l,getState:i,setState:o,runWithState:async s=>{o("test-provider-state:running");try{await s(),o("test-provider-state:succeeded")}catch{o("test-provider-state:crashed")}}}};return t?{getTestProviderStoreById:a,fullTestProviderStore:n,universalTestProviderStore:e,useTestProviderStore:l=>t(e,l)[0]}:{getTestProviderStoreById:a,fullTestProviderStore:n,universalTestProviderStore:e}}vW({universalTestProviderStore:Ub.create({...bW,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:jO});var EW={items:{accessibilityTests:{status:"open"},autodocs:{status:"open"},ciTests:{status:"open"},controls:{status:"open"},coverage:{status:"open"},guidedTour:{status:"open"},installA11y:{status:"open"},installChromatic:{status:"open"},installDocs:{status:"open"},installVitest:{status:"open"},mdxDocs:{status:"open"},moreComponents:{status:"open"},moreStories:{status:"open"},onboardingSurvey:{status:"open"},organizeStories:{status:"open"},publishStorybook:{status:"open"},renderComponent:{status:"open"},runTests:{status:"open"},viewports:{status:"open"},visualTests:{status:"open"},whatsNewStorybook10:{status:"open"},writeInteractions:{status:"open"}},widget:{}},SW={id:"storybook/checklist",initialState:EW};Ub.create({...SW,leader:globalThis.CONFIG_TYPE==="PRODUCTION"});var XO={exports:{}},ZO={};/**
|
|
702
|
+
`});let T=s.versions&&Object.keys(s.versions).length?s.versions:b.versions;await l.setRef(u,{id:u,url:h.url,...b,...T?{versions:T}:{},type:b.storyIndex?"lazy":"auto-inject"})},getRefs:()=>{let{refs:s={}}=e.getState();return s},setRef:async(s,{storyIndex:u,setStoriesData:c,...d},f=!1)=>{if(r)return;let p,b,v,{filters:S}=e.getState(),{storyMapper:h=RO}=t.getConfig(),y=l.getRefs()[s];(u||c)&&(p=c?BY(KY(c,y,{storyMapper:h})):u,v=cf(u,{provider:t,docsOptions:n,filters:S,allStatuses:{}}),b=cf(u,{provider:t,docsOptions:n,filters:{},allStatuses:{}})),b&&(b=C$(b,y)),v&&(v=C$(v,y)),await l.updateRef(s,{...y,...d,index:b,filteredIndex:v,internal_index:p})},updateRef:async(s,u)=>{let{[s]:c,...d}=l.getRefs();d[s]={...c,...u};let f=Object.keys(o).reduce((p,b)=>(p[b]=d[b],p),{});await e.setState({refs:f})}},i=!r&&AO.REFS||{},o=i;return a&&new Promise(async s=>{for(let u of Object.values(i))await l.checkRef({...u,stories:{}});s(void 0)}),{api:l,state:{refs:o}}},sr=(e,t)=>{let{source:r,refId:n,type:a}=e,[l,i]=DO(r,n),o;(n||l==="external")&&(o=n&&t.getRefs()[n]?t.getRefs()[n]:t.findRef(i));let s={source:r,sourceType:l,sourceLocation:i,refId:n,ref:o,type:a};switch(!0){case typeof n=="string":case l==="local":case l==="external":return s;default:return NY.warn(`Received a ${a} frame that was not configured as a ref`),null}},VY=({store:e,fullAPI:t,provider:r})=>{var i,o;let n={getGlobals(){return e.getState().globals},getUserGlobals(){return e.getState().userGlobals},getStoryGlobals(){return e.getState().storyGlobals},getGlobalTypes(){return e.getState().globalTypes},updateGlobals(s){var u;(u=r.channel)==null||u.emit(RY,{globals:s,options:{target:"storybook-preview-iframe"}})}},a={globals:{},userGlobals:{},storyGlobals:{},globalTypes:{}},l=({globals:s,storyGlobals:u,userGlobals:c})=>{let{globals:d,userGlobals:f,storyGlobals:p}=e.getState();bn(s,d)||e.setState({globals:s}),bn(c,f)||e.setState({userGlobals:c}),bn(u,p)||e.setState({storyGlobals:u})};return(i=r.channel)==null||i.on(OY,function({globals:s,storyGlobals:u,userGlobals:c}){let{ref:d}=sr(this,t);d?x$.warn("received a GLOBALS_UPDATED from a non-local ref. This is not currently supported."):l({globals:s,storyGlobals:u,userGlobals:c})}),(o=r.channel)==null||o.on(DY,function({globals:s,globalTypes:u}){var f;let{ref:c}=sr(this,t),d=(f=e.getState())==null?void 0:f.userGlobals;c?Object.keys(s).length>0&&x$.warn("received globals from a non-local ref. This is not currently supported."):e.setState({globals:s,userGlobals:s,globalTypes:u}),d&&Object.keys(d).length!==0&&!bn(s,d)&&n.updateGlobals(d)}),{api:n,state:a}},w1={};Dt(w1,{ActiveTabs:()=>NO,DEFAULT_BOTTOM_PANEL_HEIGHT:()=>df,DEFAULT_NAV_SIZE:()=>ou,DEFAULT_RIGHT_PANEL_WIDTH:()=>ff,focusableUIElements:()=>pa,getDefaultLayoutState:()=>LO,init:()=>WY});const{SET_CONFIG:YY}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:qY}=__STORYBOOK_MODULE_GLOBAL__;var{document:wc}=qY,ug=e=>typeof e=="function",NO={SIDEBAR:"sidebar",CANVAS:"canvas",ADDONS:"addons"},ou=300,df=300,ff=400,LO=()=>({ui:{enableShortcuts:!0},layout:{initialActive:NO.CANVAS,showToolbar:!0,navSize:ou,bottomPanelHeight:df,rightPanelWidth:ff,recentVisibleSizes:{navSize:ou,bottomPanelHeight:df,rightPanelWidth:ff},panelPosition:"bottom",showTabs:!0},layoutCustomisations:{showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:rA()}),pa={addonPanel:"storybook-panel-region",storySearchField:"storybook-explorer-searchfield",storyListMenu:"storybook-explorer-menu",storyPanelRoot:"storybook-panel-root",showAddonPanel:"storybook-show-addon-panel",sidebarRegion:"storybook-sidebar-region",showSidebar:"storybook-show-sidebar"},I0=e=>e.layout.navSize>0,k0=e=>{let{bottomPanelHeight:t,rightPanelWidth:r,panelPosition:n}=e.layout;return n==="bottom"&&t>0||n==="right"&&r>0},w$=e=>!I0(e)&&!k0(e),Ac=e=>({navSize:e.navSize>0?e.navSize:e.recentVisibleSizes.navSize,bottomPanelHeight:e.bottomPanelHeight>0?e.bottomPanelHeight:e.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.rightPanelWidth>0?e.rightPanelWidth:e.recentVisibleSizes.rightPanelWidth}),WY=({store:e,provider:t,singleStory:r})=>{var l;let n={toggleFullscreen(i){return e.setState(o=>{let s=w$(o),u=typeof i=="boolean"?i:!s;return u===s?{layout:o.layout}:u?{layout:{...o.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Ac(o.layout)}}:{layout:{...o.layout,navSize:o.singleStory?0:o.layout.recentVisibleSizes.navSize,bottomPanelHeight:o.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:o.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"session"})},togglePanel(i){return e.setState(o=>{let s=k0(o),u=typeof i=="boolean"?i:!s;return u===s?{layout:o.layout}:u?{layout:{...o.layout,bottomPanelHeight:o.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:o.layout.recentVisibleSizes.rightPanelWidth}}:{layout:{...o.layout,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Ac(o.layout)}}},{persistence:"session"})},togglePanelPosition(i){return e.setState(o=>{let s=i||(o.layout.panelPosition==="right"?"bottom":"right");return{layout:{...o.layout,panelPosition:s,bottomPanelHeight:o.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:o.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"permanent"})},toggleNav(i){return e.setState(o=>{if(o.singleStory)return{layout:o.layout};let s=I0(o),u=typeof i=="boolean"?i:!s;return u===s?{layout:o.layout}:u?{layout:{...o.layout,navSize:o.layout.recentVisibleSizes.navSize}}:{layout:{...o.layout,navSize:0,recentVisibleSizes:Ac(o.layout)}}},{persistence:"session"})},toggleToolbar(i){return e.setState(o=>{let s=typeof i<"u"?i:!o.layout.showToolbar;return{layout:{...o.layout,showToolbar:s}}},{persistence:"session"})},setSizes({navSize:i,bottomPanelHeight:o,rightPanelWidth:s}){return e.setState(u=>{let c={...u.layout,navSize:i??u.layout.navSize,bottomPanelHeight:o??u.layout.bottomPanelHeight,rightPanelWidth:s??u.layout.rightPanelWidth};return{layout:{...c,recentVisibleSizes:Ac(c)}}},{persistence:"session"})},focusOnUIElement(i,o){let{forceFocus:s=!1,select:u=!1,poll:c=!0}=typeof o=="boolean"?{select:o}:o??{};if(!i)return!1;let d=()=>{var p,b;let f=wc.getElementById(i);return!f||(f.focus(),f!==wc.activeElement&&s&&f.getAttribute("tabindex")===null&&(f.setAttribute("tabindex","-1"),f.focus()),f!==wc.activeElement&&f.id!==((p=wc.activeElement)==null?void 0:p.id))?!1:(u&&((b=f.select)==null||b.call(f)),!0)};return d()?!0:c?new Promise(f=>{let p=Date.now(),b=500,v=setInterval(()=>{let S=Date.now()-p;if(d()){clearInterval(v),f(!0);return}S>=b&&(clearInterval(v),f(!1))},50)}):!1},getInitialOptions(){let{theme:i,selectedPanel:o,layoutCustomisations:s,...u}=t.getConfig(),c=LO();return{...c,layout:{...Wp(c.layout,ko(u,Object.keys(c.layout))),...r&&{navSize:0}},layoutCustomisations:{...c.layoutCustomisations,...s??{}},ui:Wp(c.ui,ko(u,Object.keys(c.ui))),selectedPanel:o||c.selectedPanel,theme:i||c.theme}},getIsFullscreen(){return w$(e.getState())},getIsPanelShown(){return k0(e.getState())},getIsNavShown(){return I0(e.getState())},getShowToolbarWithCustomisations(i){let o=e.getState();return ug(o.layoutCustomisations.showToolbar)?o.layoutCustomisations.showToolbar(o,i)??i:i},getShowPanelWithCustomisations(i){let o=e.getState();return ug(o.layoutCustomisations.showPanel)?o.layoutCustomisations.showPanel(o,i)??i:i},getNavSizeWithCustomisations(i){let o=e.getState();if(ug(o.layoutCustomisations.showSidebar)){let s=o.layoutCustomisations.showSidebar(o,i!==0);if(i===0&&s===!0)return o.layout.recentVisibleSizes.navSize;if(i!==0&&s===!1)return 0}return i},setOptions:i=>{let{layout:o,ui:s,selectedPanel:u,theme:c}=e.getState();if(!i)return;let d={...o,...i.layout||{},...ko(i,Object.keys(o)),...r&&{navSize:0}},f={...s,...i.ui,...Wp(i.ui||{},ko(i,Object.keys(s)))},p={...c,...i.theme},b={};pn(s,f)||(b.ui=f),pn(o,d)||(b.layout=d),i.selectedPanel&&!pn(u,i.selectedPanel)&&(b.selectedPanel=i.selectedPanel),Object.keys(b).length&&e.setState(b,{persistence:"permanent"}),pn(c,p)||e.setState({theme:p})}},a=ko(e.getState(),["layout","selectedPanel"]);return(l=t.channel)==null||l.on(YY,()=>{n.setOptions(wl(n.getInitialOptions(),a))}),{api:n,state:wl(n.getInitialOptions(),a)}},MO={};Dt(MO,{init:()=>XY});var XY=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:r})=>{let[n,a]=LS(r,l=>l.id===t.id);return n.forEach(l=>{l.onClear&&l.onClear({dismissed:!1,timeout:!1})}),{notifications:[...a,t]}})},clearNotification:t=>{e.setState(({notifications:r})=>{let[n,a]=LS(r,l=>l.id===t);return n.forEach(l=>{l.onClear&&l.onClear({dismissed:!1,timeout:!1})}),{notifications:a}})}},state:{notifications:[]}}),FO={};Dt(FO,{init:()=>QY});const{OPEN_IN_EDITOR_REQUEST:ZY,OPEN_IN_EDITOR_RESPONSE:cg}=__STORYBOOK_MODULE_CORE_EVENTS__;var QY=({provider:e,fullAPI:t})=>({api:{openInEditor(r){return new Promise(n=>{var s,u;let{file:a,line:l,column:i}=r,o=c=>{var d;c.file===a&&c.line===l&&c.column===i&&((d=e.channel)==null||d.off(cg,o),n(c))};(s=e.channel)==null||s.on(cg,o),(u=e.channel)==null||u.emit(ZY,r)})}},state:{notifications:[]},init:async()=>{var n;let{color:r}=await Qn(async()=>{const{color:a}=await Promise.resolve().then(()=>GM);return{color:a}},void 0,import.meta.url);(n=e.channel)==null||n.on(cg,a=>{a.error!==null&&t.addNotification({id:"open-in-editor-error",content:{headline:"Failed to open in editor",subHeadline:a.error||"Check the Storybook process on the command line for more details."},icon:m.createElement(KF,{color:r.negative}),duration:8e3})})}}),BO={};Dt(BO,{init:()=>JY});var JY=({provider:e,fullAPI:t})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{},init:()=>{e.handleAPI(t)}}),PO={};Dt(PO,{init:()=>eq});var eq=({store:e,navigate:t,fullAPI:r})=>({state:{settings:{lastTrackedStoryId:null}},api:{closeSettings:()=>{let{settings:{lastTrackedStoryId:n}}=e.getState();n?r.selectStory(n):r.selectFirstStory()},changeSettingsTab:n=>{t(`/settings/${n}`)},isSettingsScreenActive:()=>{let{path:n}=r.getUrlState();return!!(n||"").match(/^\/settings/)},retrieveSelection(){let{settings:n}=e.getState();return n.lastTrackedStoryId},storeSelection:async()=>{let{storyId:n,settings:a}=e.getState();await e.setState({settings:{...a,lastTrackedStoryId:n}})}}}),IO={};Dt(IO,{controlOrMetaKey:()=>ui,defaultShortcuts:()=>ci,init:()=>gq,isMacLike:()=>zO,keys:()=>z0});var tq=Kt(yY(),1);const{FORCE_REMOUNT:rq,PREVIEW_KEYDOWN:nq,STORIES_COLLAPSE_ALL:aq,STORIES_EXPAND_ALL:lq}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:kO}=__STORYBOOK_MODULE_GLOBAL__,{global:iq}=__STORYBOOK_MODULE_GLOBAL__;var{navigator:dg}=iq,oq=()=>dg&&dg.platform?!!dg.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,sq=()=>oq()?"⌥":"alt",uq=e=>{var l;if(["Meta","Alt","Control","Shift","Tab"].includes(e.key))return null;let t=[];e.altKey&&t.push("alt"),e.ctrlKey&&t.push("control"),e.metaKey&&t.push("meta"),e.shiftKey&&t.push("shift");let r=(l=e.code)==null?void 0:l.toUpperCase(),n={MINUS:"-",EQUAL:"=",BRACKETLEFT:"[",BRACKETRIGHT:"]",BACKSLASH:"\\",SEMICOLON:";",QUOTE:"'",BACKQUOTE:"`",COMMA:",",PERIOD:".",SLASH:"/"},a=r?r.startsWith("KEY")&&r.length===4?r.replace("KEY",""):r.startsWith("DIGIT")?r.replace("DIGIT",""):n[r]:void 0;if(e.key&&e.key.length===1&&e.key!==" "){let i=e.key.toUpperCase(),o=a;o&&o.length===1&&o!==i?t.push([i,o]):t.push(i)}else e.key==="Dead"&&a&&t.push(a);return e.key===" "&&t.push("space"),e.key==="Escape"&&t.push("escape"),e.key==="ArrowRight"&&t.push("ArrowRight"),e.key==="ArrowDown"&&t.push("ArrowDown"),e.key==="ArrowUp"&&t.push("ArrowUp"),e.key==="ArrowLeft"&&t.push("ArrowLeft"),t.length>0?t:null},cq=(e,t)=>!e||!t||(e.join("").startsWith("shift/")&&e.shift(),e.length!==t.length)?!1:!e.find((r,n)=>Array.isArray(r)?!r.includes(t[n]):r!==t[n]),dq=e=>e==="alt"?sq():e==="control"?"⌃":e==="meta"?"⌘":e==="shift"?"⇧":e==="Enter"||e==="Backspace"||e==="Esc"||e==="escape"?"":e===" "?"SPACE":e==="ArrowUp"?"↑":e==="ArrowDown"?"↓":e==="ArrowLeft"?"←":e==="ArrowRight"?"→":e==null?void 0:e.toUpperCase(),fq=e=>e.map(dq).join(" "),pq=e=>e.map(t=>t==="+"?"plus":t===" "?"space":t).join("+"),{navigator:fg,document:Ea}=kO;function A$(e){return Ea.activeElement&&(e==null?void 0:e.contains(Ea.activeElement))}var zO=()=>fg&&fg.platform?!!fg.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,ui=()=>zO()?"meta":"control";function z0(e){return Object.keys(e)}var ci=Object.freeze({fullScreen:["alt","F"],togglePanel:["alt","A"],panelPosition:["alt","D"],toggleNav:["alt","S"],toolbar:["alt","T"],search:[ui(),"K"],focusNav:["1"],focusIframe:["2"],focusPanel:["3"],prevComponent:["alt","ArrowUp"],nextComponent:["alt","ArrowDown"],prevStory:["alt","ArrowLeft"],nextStory:["alt","ArrowRight"],shortcutsPage:[ui(),"shift",","],aboutPage:[ui(),","],escape:["escape"],collapseAll:[ui(),"shift","ArrowUp"],expandAll:[ui(),"shift","ArrowDown"],remount:["alt","R"],openInEditor:["alt","shift","E"],openInIsolation:["alt","shift","I"],copyStoryLink:["alt","shift","L"],goToPreviousLandmark:["shift","F6"],goToNextLandmark:["F6"]}),pg={};function hq(e){let t=e.target;return!!(/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null||t.closest("dialog[open]"))}var gq=({store:e,fullAPI:t,provider:r})=>{let n={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...ci,...n.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return pg},getAddonsShortcutLabels(){let i={};return Object.entries(n.getAddonsShortcuts()).forEach(([o,{label:s}])=>{i[o]=s}),i},getAddonsShortcutDefaults(){let i={};return Object.entries(n.getAddonsShortcuts()).forEach(([o,{defaultShortcut:s}])=>{i[o]=s}),i},async setShortcuts(i){let{shortcuts:o}=await e.setState(s=>({shortcuts:typeof i=="function"?i(s.shortcuts):i}),{persistence:"permanent"});return o},async restoreAllDefaultShortcuts(){return n.setShortcuts(n.getDefaultShortcuts())},async setShortcut(i,o){return await n.setShortcuts(s=>({...s,[i]:o})),o},async setAddonShortcut(i,o){return await n.setShortcuts(s=>({...s,[`${i}-${o.actionName}`]:o.defaultShortcut})),pg[`${i}-${o.actionName}`]=o,o},async restoreDefaultShortcut(i){let o=n.getDefaultShortcuts()[i];return n.setShortcut(i,o)},handleKeydownEvent(i){let o=uq(i),s=n.getShortcutKeys(),u=z0(s).find(c=>cq(o,s[c]));u&&n.handleShortcutFeature(u,i)},handleShortcutFeature(i,o){let{ui:{enableShortcuts:s},storyId:u,refId:c,viewMode:d}=e.getState();if(s)switch(o!=null&&o.preventDefault&&o.preventDefault(),i){case"escape":{t.getIsFullscreen()?t.toggleFullscreen(!1):t.getIsNavShown()&&t.toggleNav(!0);break}case"goToNextLandmark":case"goToPreviousLandmark":break;case"focusNav":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),t.focusOnUIElement(pa.storyListMenu);break}case"search":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(pa.storySearchField,!0)},0);break}case"focusIframe":{let f=Ea.getElementById("storybook-preview-iframe");if(f)try{f.contentWindow.focus()}catch{}break}case"focusPanel":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.focusOnUIElement(pa.storyPanelRoot);break}case"nextStory":{t.jumpToStory(1);break}case"prevStory":{t.jumpToStory(-1);break}case"nextComponent":{t.jumpToComponent(1);break}case"prevComponent":{t.jumpToComponent(-1);break}case"fullScreen":{t.toggleFullscreen();break}case"togglePanel":{let f=t.getIsPanelShown(),p=Ea.getElementById(pa.addonPanel);t.togglePanel(),f&&A$(p)&&t.focusOnUIElement(pa.showAddonPanel,{poll:!0}).then(b=>{b===!1&&Ea.body.focus()});break}case"toggleNav":{let f=t.getIsNavShown(),p=Ea.getElementById(pa.sidebarRegion);t.toggleNav(),f&&A$(p)&&t.focusOnUIElement(pa.showSidebar,{poll:!0}).then(b=>{b===!1&&Ea.body.focus()});break}case"toolbar":{t.toggleToolbar();break}case"panelPosition":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.togglePanelPosition();break}case"aboutPage":{t.navigate("/settings/about");break}case"shortcutsPage":{t.navigate("/settings/shortcuts");break}case"collapseAll":{t.emit(aq);break}case"expandAll":{t.emit(lq);break}case"remount":{t.emit(rq,{storyId:u});break}case"openInEditor":{kO.CONFIG_TYPE==="DEVELOPMENT"&&t.openInEditor({file:t.getCurrentStoryData().importPath});break}case"openInIsolation":{if(u&&d==="story"){let{previewHref:f}=t.getStoryHrefs(u,{refId:c});window.open(f,"_blank","noopener,noreferrer")}break}case"copyStoryLink":{if(u){let{managerHref:f}=t.getStoryHrefs(u,{refId:c});(0,tq.default)(f)}break}default:pg[i].action();break}}},{shortcuts:a=ci}=e.getState(),l={shortcuts:z0(ci).reduce((i,o)=>({...i,[o]:a[o]||ci[o]}),ci)};return{api:n,state:l,init:()=>{var i;Ea.addEventListener("keydown",o=>{hq(o)||n.handleKeydownEvent(o)}),(i=r.channel)==null||i.on(nq,o=>{n.handleKeydownEvent(o.event)})}}},HO={};Dt(HO,{getDefaultTagsFromPreset:()=>KO,init:()=>jq});var mq=Kt(Gl(),1);const{logger:yq}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:bq,CURRENT_STORY_WAS_SET:vq,DOCS_PREPARED:Eq,PRELOAD_ENTRIES:Sq,RESET_STORY_ARGS:xq,SELECT_STORY:$q,SET_CONFIG:_q,SET_CURRENT_STORY:Cq,SET_FILTER:Tq,SET_INDEX:wq,SET_STORIES:Aq,STORY_ARGS_UPDATED:Oq,STORY_CHANGED:Dq,STORY_INDEX_INVALIDATED:Rq,STORY_MISSING:Nq,STORY_PREPARED:Lq,STORY_SPECIFIED:Mq,UPDATE_STORY_ARGS:Fq}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:UO}=__STORYBOOK_MODULE_GLOBAL__;Kt(ok(),1);var Bq=class extends Jb{constructor(e){super({name:"StatusTypeIdMismatchError",category:"CORE-SERVER",code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},Pq={id:"storybook/status",leader:!0,initialState:{}},hg={SELECT:"select"};function Iq({universalStatusStore:e,useUniversalStore:t,environment:r}){let n={getAll(){return e.getState()},set(l){e.setState(i=>{let o={...i};for(let s of l){let{storyId:u,typeId:c}=s;o[u]={...o[u]??{},[c]:s}}return o})},onAllStatusChange(l){return e.onStateChange((i,o)=>{l(i,o)})},onSelect(l){return e.subscribe(hg.SELECT,i=>{l(i.payload)})},selectStatuses:l=>{e.send({type:hg.SELECT,payload:l})},unset(l){if(!l){e.setState({});return}e.setState(i=>{let o={...i};for(let s of l)delete o[s];return o})},typeId:void 0},a=l=>({getAll:n.getAll,set(i){e.setState(o=>{let s={...o};for(let u of i){let{storyId:c}=u;if(u.typeId!==l)switch(r){case"server":throw new Bq({status:u,typeId:l});case"manager":throw new ak({status:u,typeId:l});case"preview":default:throw new lk({status:u,typeId:l})}s[c]={...s[c]??{},[l]:u}}return s})},onAllStatusChange:n.onAllStatusChange,onSelect(i){return e.subscribe(hg.SELECT,o=>{o.payload.some(s=>s.typeId===l)&&i(o.payload)})},unset(i){e.setState(o=>{var u;let s={...o};for(let c in s)if((u=s[c])!=null&&u[l]&&(!i||i!=null&&i.includes(c))){let{[l]:d,...f}=s[c];s[c]=f}return s})},typeId:l});return t?{getStatusStoreByTypeId:a,fullStatusStore:n,universalStatusStore:e,useStatusStore:l=>t(e,l)[0]}:{getStatusStoreByTypeId:a,fullStatusStore:n,universalStatusStore:e}}var jO=(e,t)=>{let r=g.useRef(t?t(e.getState()):e.getState()),n=g.useCallback(l=>e.onStateChange((i,o)=>{if(!t){r.current=i,l();return}let s=t(i),u=t(o);!pn(s,u)&&(r.current=s,l())}),[e,t]),a=g.useCallback(()=>{let l=e.getState(),i=t?t(l):l;return pn(i,r.current)||(r.current=i),r.current},[e,t]);return[g.useSyncExternalStore(n,a),e.setState]},kq=Iq({universalStatusStore:Ub.create({...Pq,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:jO,environment:"manager"}),{fullStatusStore:O$}=kq,{fetch:zq}=UO,Hq="./index.json",gg="tags-filter",D$="static-filter",KO=(0,mq.default)(1)(e=>{let t=Object.entries(e);return{included:t.filter(([,r])=>r.defaultFilterSelection==="include").map(([r])=>r),excluded:t.filter(([,r])=>r.defaultFilterSelection==="exclude").map(([r])=>r)}}),R$=e=>{let t=Object.entries(e).reduce((r,n)=>{let[a,l]=n;return l.excludeFromSidebar&&(r[a]=!0),r},{});return r=>{let n=r.tags??[];return(n.includes(Bi.DEV)||r.type==="docs")&&n.filter(a=>t[a]).length===0}},mg=(e,t)=>{let r=n=>Object.values(n.reduce((a,l)=>(Object.hasOwn(MS,l)?a["built-in"].push(MS[l]):a.user.push(sk(l)),a),{"built-in":[],user:[]})).filter(a=>a.length>0);return n=>{let a=r(e),l=r(t);return(!a.length||a.every(i=>i.some(o=>o(n,!1))))&&(!l.length||l.every(i=>i.every(o=>o(n,!0))))}},Uq=["enableShortcuts","theme","showRoots"];function yg(e){if(!e||typeof e=="string")return e;let t={...e};return Uq.forEach(r=>{r in t&&delete t[r]}),t}var jq=({fullAPI:e,store:t,navigate:r,provider:n,storyId:a,viewMode:l,docsOptions:i={}})=>{var S,h,y,E,x,T,_,C,O,D,L,w,I,k,M,B;let o={storyId:vc,getData:($,A)=>{let R=o.resolveStory($,A);if((R==null?void 0:R.type)==="story"||(R==null?void 0:R.type)==="docs")return R},isPrepared:($,A)=>{let R=o.getData($,A);return R?R.type==="story"?R.prepared:!0:!1},resolveStory:($,A)=>{var N,z;let{refs:R,index:P}=t.getState();if(!(A&&!R[A]))return A?((z=(N=R==null?void 0:R[A])==null?void 0:N.index)==null?void 0:z[$])??void 0:P?P[$]:void 0},getCurrentStoryData:()=>{let{storyId:$,refId:A}=t.getState();return o.getData($,A)},getIndex:()=>{let{internal_index:$}=t.getState();return $},getParameters:($,A)=>{let{storyId:R,refId:P}=typeof $=="string"?{storyId:$,refId:void 0}:$,N=o.getData(R,P);if(["story","docs"].includes(N==null?void 0:N.type)){let{parameters:z}=N;if(z)return A?z[A]:z}return null},getCurrentParameter:$=>{let{storyId:A,refId:R}=t.getState();return o.getParameters({storyId:A,refId:R},$)||void 0},jumpToComponent:$=>{let{filteredIndex:A,storyId:R,refs:P,refId:N}=t.getState();if(!o.getData(R,N))return;let z=N?P[N].filteredIndex||{}:A;if(!z)return;let U=o.findSiblingStoryId(R,z,$,!0);U&&o.selectStory(U,void 0,{ref:N})},jumpToStory:$=>{let{filteredIndex:A,storyId:R,refs:P,refId:N}=t.getState(),z=o.getData(R,N);if(!z)return;let U=z.refId?P[z.refId].filteredIndex:A;if(!U)return;let K=o.findSiblingStoryId(R,U,$,!1);K&&o.selectStory(K,void 0,{ref:N})},selectFirstStory:()=>{let{index:$}=t.getState();if(!$)return;let A=Object.keys($).find(R=>$[R].type==="story");if(A){o.selectStory(A);return}r("/")},selectStory:($=void 0,A=void 0,R={})=>{let{ref:P}=R,{storyId:N,index:z,filteredIndex:U,refs:K,settings:G}=t.getState(),H=W=>(W==null?void 0:W.type)==="docs"||(W==null?void 0:W.type)==="story"?(t.setState({settings:{...G,lastTrackedStoryId:W.id}}),r(`/${W.type}/${W.refId?`${W.refId}_${W.id}`:W.id}`),!0):!1,V=N==null?void 0:N.split("--",2)[0],q=P?K[P].index:z,ee=P?K[P].filteredIndex:U;if(!(!q||!ee))if(A)if(!$)H(q[vc(V,A)]);else{let W=P?`${P}_${vc($,A)}`:vc($,A);if(q[W])H(q[W]);else{let ke=q[ao($)];if((ke==null?void 0:ke.type)==="component"){let J=ke.children.find(Y=>q[Y].name===A);H(J?q[J]:void 0)}}}else{let W=$?q[$]||q[ao($)]:q[V];if(!W)throw new Error(`Unknown id or title: '${$}'`);H(W)||H(o.findLeafEntry(ee,W.id))}},findLeafEntry($,A){let R=$[A];if(R.type==="docs"||R.type==="story")return R;let P=R.children.find(N=>$[N])||R.children[0];return o.findLeafEntry($,P)},findLeafStoryId($,A){var R;return(R=o.findLeafEntry($,A))==null?void 0:R.id},findAllLeafStoryIds($){let{index:A}=t.getState();if(!A)return[];let R=(P,N=[])=>{var U;let z=A[P];return z&&(z.type==="story"&&N.push(z.id),"children"in z&&((U=z.children)==null||U.forEach(K=>R(K,N)))),N};return R($,[])},findSiblingStoryId($,A,R,P){if(P){let U=zY(A),K=U.findIndex(G=>G.includes($));return K===U.length-1&&R>0||K===0&&R<0?void 0:U[K+R]?U[K+R][0]:void 0}let N=HY(A),z=N.indexOf($);if(!(z===N.length-1&&R>0)&&!(z===0&&R<0))return N[z+R]},updateStoryArgs:($,A)=>{var N;let{id:R,refId:P}=$;(N=n.channel)==null||N.emit(Fq,{storyId:R,updatedArgs:A,options:{target:P}})},resetStoryArgs:($,A)=>{var N;let{id:R,refId:P}=$;(N=n.channel)==null||N.emit(xq,{storyId:R,argNames:A,options:{target:P}})},fetchIndex:async()=>{try{let $=await zq(Hq);if($.status!==200)throw new Error(await $.text());let A=await $.json();if(A.v<3){yq.warn(`Skipping story index with version v${A.v}, awaiting SET_STORIES.`);return}await o.setIndex(A)}catch($){await t.setState({indexError:$})}},setIndex:async $=>{let{filteredIndex:A,index:R,filters:P}=t.getState(),N=O$.getAll(),z=cf($,{provider:n,docsOptions:i,filters:P,allStatuses:N}),U=cf($,{provider:n,docsOptions:i,filters:{},allStatuses:N});await t.setState({internal_index:$,filteredIndex:$$(z,A),index:$$(U,R),indexError:void 0})},updateStory:async($,A,R)=>{if(R){let{id:P,index:N,filteredIndex:z}=R;N&&N[$]&&(N[$]={...N[$],...A}),z&&z[$]&&(z[$]={...z[$],...A}),await e.updateRef(P,{index:N,filteredIndex:z})}else{let{index:P,filteredIndex:N}=t.getState();P&&P[$]&&(P[$]={...P[$],...A}),N&&N[$]&&(N[$]={...N[$],...A}),(P||N)&&await t.setState({index:P,filteredIndex:N})}},updateDocs:async($,A,R)=>{if(R){let{id:P,index:N,filteredIndex:z}=R;N[$]={...N[$],...A},z[$]={...z[$],...A},await e.updateRef(P,{index:N,filteredIndex:z})}else{let{index:P,filteredIndex:N}=t.getState();P&&(P[$]={...P[$],...A}),N&&(N[$]={...N[$],...A}),(P||N)&&await t.setState({index:P,filteredIndex:N})}},setPreviewInitialized:async $=>{$?e.updateRef($.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async($,A)=>{var N;await t.setState({filters:{...t.getState().filters,[$]:A}});let{internal_index:R}=t.getState();if(!R)return;await o.setIndex(R);let P=await e.getRefs();for(let[z,{internal_index:U,...K}]of Object.entries(P))await e.setRef(z,{...K,storyIndex:U},!0);(N=n.channel)==null||N.emit(Tq,{id:$})},resetTagFilters:async()=>{await t.setState($=>({includedTagFilters:$.defaultIncludedTagFilters,excludedTagFilters:$.defaultExcludedTagFilters}),{persistence:"permanent"}),s()},setAllTagFilters:async($,A)=>{await t.setState({includedTagFilters:$,excludedTagFilters:A},{persistence:"permanent"}),s()},addTagFilters:async($,A)=>{let R=t.getState(),P=new Set(R.includedTagFilters),N=new Set(R.excludedTagFilters);for(let z of $)A?(P.delete(z),N.add(z)):(P.add(z),N.delete(z));await t.setState({includedTagFilters:Array.from(P),excludedTagFilters:Array.from(N)},{persistence:"permanent"}),s()},removeTagFilters:async $=>{let A=t.getState();await t.setState({includedTagFilters:A.includedTagFilters.filter(R=>!$.includes(R)),excludedTagFilters:A.excludedTagFilters.filter(R=>!$.includes(R))},{persistence:"permanent"}),s()}},s=()=>{let{includedTagFilters:$,excludedTagFilters:A}=t.getState();o.experimental_setFilter(gg,mg($,A))};(S=n.channel)==null||S.on(Mq,function({storyId:$,viewMode:A}){var P,N;let{sourceType:R}=sr(this,e);if(R==="local"){let z=t.getState(),U=z.path==="/"||z.viewMode==="story"||z.viewMode==="docs",K=z.viewMode&&z.storyId,G=z.viewMode!==A||z.storyId!==$,{type:H}=((P=z.index)==null?void 0:P[z.storyId])||{};U&&(K&&G&&!(H==="root"||H==="component"||H==="group")?(N=n.channel)==null||N.emit(Cq,{storyId:z.storyId,viewMode:z.viewMode}):G&&r(`/${A}/${$}`))}}),(h=n.channel)==null||h.on(vq,function(){let{ref:$}=sr(this,e);o.setPreviewInitialized($)}),(y=n.channel)==null||y.on(Dq,function(){let{sourceType:$}=sr(this,e);if($==="local"){let A=o.getCurrentParameter("options");A&&e.setOptions(yg(A))}}),(E=n.channel)==null||E.on(Lq,function({id:$,...A}){var N;let{ref:R,sourceType:P}=sr(this,e);if(o.updateStory($,{...A,prepared:!0},R),!R&&!t.getState().hasCalledSetOptions){let{options:z}=A.parameters;e.setOptions(yg(z)),t.setState({hasCalledSetOptions:!0})}if(P==="local"){let{storyId:z,index:U,refId:K}=t.getState();if(!U)return;let G=Array.from(new Set([o.findSiblingStoryId(z,U,1,!0),o.findSiblingStoryId(z,U,-1,!0)])).filter(Boolean);(N=n.channel)==null||N.emit(Sq,{ids:G,options:{target:K}})}}),(x=n.channel)==null||x.on(Eq,function({id:$,...A}){let{ref:R}=sr(this,e);o.updateStory($,{...A,prepared:!0},R)}),(T=n.channel)==null||T.on(wq,function($){let{ref:A}=sr(this,e);if(A)e.setRef(A.id,{...A,storyIndex:$},!0);else{o.setIndex($);let R=o.getCurrentParameter("options");e.setOptions(yg(R))}}),(_=n.channel)==null||_.on(Aq,function($){let{ref:A}=sr(this,e),R=$.v?FY($):$.stories;if(A)e.setRef(A.id,{...A,setStoriesData:R},!0);else throw new Error("Cannot call SET_STORIES for local frame")}),(C=n.channel)==null||C.on($q,function({kind:$,title:A=$,story:R,name:P=R,storyId:N,...z}){let{ref:U}=sr(this,e);U?e.selectStory(N||A,P,{...z,ref:U.id}):e.selectStory(N||A,P,z)}),(O=n.channel)==null||O.on(Oq,function({storyId:$,args:A}){let{ref:R}=sr(this,e);o.updateStory($,{args:A},R)}),(D=n.channel)==null||D.on(bq,function($){let{ref:A}=sr(this,e);o.setPreviewInitialized(A)}),(L=n.channel)==null||L.on(Nq,function($){let{ref:A}=sr(this,e);o.setPreviewInitialized(A)}),(w=n.channel)==null||w.on(_q,()=>{var N,z;let $=((z=(N=n.getConfig())==null?void 0:N.sidebar)==null?void 0:z.filters)||{},{includedTagFilters:A,excludedTagFilters:R,tagPresets:P}=t.getState();t.setState({filters:{...t.getState().filters,...$,[D$]:R$(P),[gg]:mg(A,R)}})}),O$.onAllStatusChange(async()=>{let{internal_index:$}=t.getState();if(!$)return;await o.setIndex($);let A=await e.getRefs();Object.entries(A).forEach(([R,{internal_index:P,...N}])=>{e.setRef(R,{...N,storyIndex:P},!0)})});let u=((k=(I=n.getConfig())==null?void 0:I.sidebar)==null?void 0:k.filters)||{},c=UO.TAGS_OPTIONS||{},d=KO(c),f=t.getState(),p=f.includedTagFilters??((M=f.layout)==null?void 0:M.includedTagFilters)??d.included,b=f.excludedTagFilters??((B=f.layout)==null?void 0:B.excludedTagFilters)??d.excluded,v={...u,[D$]:R$(c),[gg]:mg(p,b)};return{api:o,state:{storyId:a,viewMode:l,hasCalledSetOptions:!1,previewInitialized:!1,filters:v,tagPresets:c,defaultIncludedTagFilters:d.included,defaultExcludedTagFilters:d.excluded,includedTagFilters:p,excludedTagFilters:b},init:async()=>{var $;($=n.channel)==null||$.on(Rq,()=>o.fetchIndex()),await o.fetchIndex()}}},GO={};Dt(GO,{init:()=>Xq});const{GLOBALS_UPDATED:Kq,NAVIGATE_URL:Gq,SET_CURRENT_STORY:Vq,STORY_ARGS_UPDATED:Yq,UPDATE_QUERY_PARAMS:qq}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:ni}=__STORYBOOK_MODULE_GLOBAL__;var N$=Kt(d5(),1),rl=e=>{if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1},L$=e=>Object.fromEntries(e.split(";").map(t=>t.split(":")).map(([t,r])=>[t,encodeURIComponent(r)]).filter(([t,r])=>t&&r)),M$=(e,t)=>{let r=L$(e),n=L$(t);return Object.entries({...r,...n}).map(([a,l])=>`${a}:${l}`).join(";")},bg,Wq=({state:{location:e,path:t,viewMode:r,storyId:n},singleStory:a})=>{let{full:l,panel:i,nav:o,shortcuts:s,addonPanel:u,tabs:c,path:d,...f}=Ij(e),p,b,v;rl(l)===!0?(p=0,b=0,v=0):rl(l)===!1&&(p=ou,b=df,v=ff),a||(rl(o)===!0&&(p=ou),rl(o)===!1&&(p=0)),rl(i)===!1&&(b=0,v=0);let S={navSize:p,bottomPanelHeight:b,rightPanelWidth:v,panelPosition:["right","bottom"].includes(i)?i:void 0,showTabs:rl(c)},h={enableShortcuts:rl(s)},y=u||void 0,E=n,x=bn(bg,f)?bg:f;return bg=x,{viewMode:r,layout:S,ui:h,selectedPanel:y,location:e,path:t,customQueryParams:x,storyId:E}},Xq=e=>{var u,c,d,f;let{store:t,navigate:r,provider:n,fullAPI:a}=e,l=(p,b={},v={})=>{let S=Object.entries(b).filter(([,y])=>y).sort(([y],[E])=>y<E?-1:1).map(([y,E])=>`${y}=${E}`),h=[p,...S].join("&");return r(h,v)},i={getStoryHrefs(p,b={}){let{id:v,refId:S}=a.getCurrentStoryData()??{},h=p===v&&b.refId===S,{customQueryParams:y,location:E,refs:x}=t.getState(),{base:T,inheritArgs:_=h,inheritGlobals:C=!0,queryParams:O={},refId:D,viewMode:L="story"}=b;if(D&&!x[D])throw new Error(`Invalid refId: ${D}`);let w=E.pathname||"/",I=ni.window.location.origin+w,k=ni.STORYBOOK_NETWORK_ADDRESS??I,M=T==="origin"?I:T==="network"?k:w,B=D?x[D].url+"/iframe.html":ni.PREVIEW_URL||`${M.replace(/\/[^/]*\.html$/,"").replace(/\/?$/,"/")}iframe.html`,$=D?`&refId=${encodeURIComponent(D)}`:"",{args:A="",globals:R="",...P}=O,N=_?M$((y==null?void 0:y.args)??"",A):A,z=C?M$((y==null?void 0:y.globals)??"",R):R,U=(0,N$.stringify)(P,{nesting:!0,nestingSyntax:"js"}),K=(0,N$.stringify)(T8(P,["id","viewMode"]),{nesting:!0,nestingSyntax:"js"});return N=N&&`&args=${N}`,z=z&&`&globals=${z}`,U=U&&`&${U}`,K=K&&`&${K}`,{managerHref:`${M}?path=/${L}/${D?`${D}_`:""}${p}${N}${z}${U}`,previewHref:`${B}?id=${p}&viewMode=${L}${$}${N}${D?"":z}${K}`}},getQueryParam(p){let{customQueryParams:b}=t.getState();return b?b[p]:void 0},getUrlState(){let{location:p,path:b,customQueryParams:v,storyId:S,url:h,viewMode:y}=t.getState();return{path:b,hash:p.hash??"",queryParams:v,storyId:S,url:h,viewMode:y}},setQueryParams(p){var h;let{customQueryParams:b}=t.getState(),v={},S={...b,...Object.entries(p).reduce((y,[E,x])=>(x!==null&&(y[E]=x),y),v)};bn(b,S)||(t.setState({customQueryParams:S}),(h=n.channel)==null||h.emit(qq,S))},applyQueryParams(p,b){let{path:v,hash:S="",queryParams:h}=i.getUrlState();l(`${v}${S}`,{...h,...p},b),i.setQueryParams(p)},navigateUrl(p,b){r(p,{plain:!0,...b})}},o=()=>{let{path:p,hash:b="",queryParams:v,viewMode:S}=i.getUrlState();if(S!=="story")return;let h=a.getCurrentStoryData();if((h==null?void 0:h.type)!=="story")return;let{args:y,initialArgs:E}=h,x=Xx(E,y);l(`${p}${b}`,{...v,args:x},{replace:!0}),i.setQueryParams({args:x})};(u=n.channel)==null||u.on(Vq,()=>o());let s;return(c=n.channel)==null||c.on(Yq,()=>{"requestIdleCallback"in ni.window?(s&&ni.window.cancelIdleCallback(s),s=ni.window.requestIdleCallback(o,{timeout:1e3})):(s&&clearTimeout(s),setTimeout(o,100))}),(d=n.channel)==null||d.on(Kq,({userGlobals:p,initialGlobals:b})=>{let{path:v,hash:S="",queryParams:h}=i.getUrlState(),y=Xx(b,wl(b,p));l(`${v}${S}`,{...h,globals:y},{replace:!0}),i.setQueryParams({globals:y})}),(f=n.channel)==null||f.on(Gq,(p,b)=>{i.navigateUrl(p,b)}),{api:i,state:Wq(e)}},VO={};Dt(VO,{init:()=>tW});var Zq=Kt(Gl(),1);const{global:H0}=__STORYBOOK_MODULE_GLOBAL__;var Qq="10.3.5",{VERSIONCHECK:Jq}=H0,F$=(0,Zq.default)(1)(()=>{try{return{...JSON.parse(Jq).data||{}}}catch{return{}}}),eW=e=>e.includes("vue")?"vue":e,tW=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),r={versions:{current:{version:Qq},...F$()},dismissedVersionNotification:t},n={getCurrentVersion:()=>{let{versions:{current:a}}=e.getState();return a},getLatestVersion:()=>{let{versions:{latest:a,next:l,current:i}}=e.getState();return i&&or.prerelease(i.version)&&l?a&&or.gt(a.version,l.version)?a:l:a},getDocsUrl:({asset:a,subpath:l=a,versioned:i,renderer:o,ref:s="ui"})=>{var S,h;let{versions:u}=e.getState(),c=(S=u.latest)==null?void 0:S.version,d=(h=u.current)==null?void 0:h.version,f=(d==null?void 0:d.startsWith("0.0.0"))&&c||d,p=`https://storybook.js.org/${a?"docs-assets":"docs"}/`;if(a&&f)p+=`${or.major(f)}.${or.minor(f)}/`;else if(i&&f&&c){let y=or.diff(c,f);y==="patch"||y===null||(p+=`${or.major(f)}.${or.minor(f)}/`)}let[b,v]=(l==null?void 0:l.split("#"))||[];if(b&&(p+=a?b:`${b}/`),o&&typeof H0.STORYBOOK_RENDERER<"u"){let y=H0.STORYBOOK_RENDERER;y&&(p+=`?renderer=${eW(y)}`)}return s&&(p+=`${p.includes("?")?"&":"?"}ref=${s}`),v&&(p+=`#${v}`),p},versionUpdateAvailable:()=>{let a=n.getLatestVersion(),l=n.getCurrentVersion();if(a){if(!a.version||!l.version)return!0;let i=or.prerelease(l.version)?`${or.major(l.version)}.${or.minor(l.version)}.${or.patch(l.version)}`:l.version,o=or.diff(i,a.version);return or.gt(a.version,i)&&o!=="patch"&&!o.includes("pre")}return!1}};return{init:async()=>{let{versions:a={}}=e.getState(),{latest:l,next:i}=F$();await e.setState({versions:{...a,latest:l,next:i}})},state:r,api:n}},YO={};Dt(YO,{init:()=>sW});const{REQUEST_WHATS_NEW_DATA:rW,RESULT_WHATS_NEW_DATA:nW,SET_WHATS_NEW_CACHE:aW,TOGGLE_WHATS_NEW_NOTIFICATIONS:lW}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:iW}=__STORYBOOK_MODULE_GLOBAL__;var B$="whats-new",oW=({color:e="currentColor",size:t=14})=>m.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z",fill:e})),sW=({fullAPI:e,store:t,provider:r})=>{let n={whatsNewData:void 0};function a(s){t.setState({whatsNewData:s}),n.whatsNewData=s}let l={isWhatsNewUnread(){var s;return((s=n.whatsNewData)==null?void 0:s.status)==="SUCCESS"&&!n.whatsNewData.postIsRead},whatsNewHasBeenRead(){var s;((s=n.whatsNewData)==null?void 0:s.status)==="SUCCESS"&&(o({lastReadPost:n.whatsNewData.url}),a({...n.whatsNewData,postIsRead:!0}),e.clearNotification(B$))},toggleWhatsNewNotifications(){var s,u;((s=n.whatsNewData)==null?void 0:s.status)==="SUCCESS"&&(a({...n.whatsNewData,disableWhatsNewNotifications:!n.whatsNewData.disableWhatsNewNotifications}),(u=r.channel)==null||u.emit(lW,{disableWhatsNewNotifications:n.whatsNewData.disableWhatsNewNotifications}))}};function i(){var s;return(s=r.channel)==null||s.emit(rW),new Promise(u=>{var c;return(c=r.channel)==null?void 0:c.once(nW,({data:d})=>u(d))})}function o(s){var u;(u=r.channel)==null||u.emit(aW,s)}return{init:async()=>{var c;if(iW.CONFIG_TYPE!=="DEVELOPMENT")return;let s=await i();a(s);let u=e.getUrlState();!((u==null?void 0:u.path)==="/onboarding"||((c=u.queryParams)==null?void 0:c.onboarding)==="true")&&s.status==="SUCCESS"&&!s.disableWhatsNewNotifications&&s.showNotification&&e.addNotification({id:B$,link:"/settings/whats-new",content:{headline:s.title,subHeadline:"Learn what's new in Storybook"},icon:m.createElement(oW,null),onClear({dismissed:d}){d&&o({lastDismissedPost:s.url})}})},state:n,api:l}},fs=Kt(bY(),1),uW=e=>{e.fn("set",function(t,r){return e.set(this._area,this._in(t),tk(r,{maxDepth:50}))}),e.fn("get",function(t,r){let n=e.get(this._area,this._in(t));return n!==null?nk(n):r||n})};uW(fs.default._);var qO="@storybook/manager/store";function U0(e){return e.get(qO)||{}}function cW(e,t){return e.set(qO,t)}function dW(e,t){let r=U0(e);return cW(e,{...r,...t})}var fW=class{constructor({allowPersistence:e,setState:t,getState:r}){this.upstreamPersistence=e??!0,this.upstreamSetState=t,this.upstreamGetState=r}getInitialState(e){return{...e,...U0(fs.default.local),...U0(fs.default.session)}}getState(){return this.upstreamGetState()}async setState(e,t,r){let n,a;typeof t=="function"?(n=t,a=r):a=t;let{persistence:l="none"}=a||{},i={},o={};typeof e=="function"?i=u=>(o=e(u),o):(i=e,o=i);let s=await new Promise(u=>{this.upstreamSetState(i,()=>{u(this.getState())})});if(l!=="none"&&this.upstreamPersistence){let u=l==="session"?fs.default.session:fs.default.local;await dW(u,o)}return n&&n(s),s}},{ActiveTabs:upe}=w1,WO=vY({api:void 0,state:B0({})}),pW=(...e)=>EY({},...e),hW=class extends g.Component{constructor(e){super(e),this.api={},this.initModules=()=>{this.modules.forEach(v=>{"init"in v&&v.init()})};let{location:t,path:r,refId:n,viewMode:a=e.docsOptions.docsMode?"docs":e.viewMode,singleStory:l,storyId:i,docsOptions:o,navigate:s}=e,u=new fW({getState:()=>this.state,setState:(v,S)=>(this.setState(v,()=>S(this.state)),this.state)}),c={location:t,path:r,viewMode:a,singleStory:l,storyId:i,refId:n},d={docsOptions:o};this.state=u.getInitialState(B0({...c,...d}));let f={navigate:s,store:u,provider:e.provider};this.modules=[BO,CO,_O,w1,MO,PO,IO,HO,wO,TO,GO,VO,YO,FO].map(v=>v.init({...c,...d,...f,state:this.state,fullAPI:this.api}));let p=B0(this.state,...this.modules.map(v=>v.state)),b=Object.assign(this.api,{navigate:s},...this.modules.map(v=>v.api));this.state=p,this.api=b}static getDerivedStateFromProps(e,t){return t.path!==e.path?{...t,location:e.location,path:e.path,refId:e.refId,viewMode:e.viewMode,storyId:e.storyId}:null}shouldComponentUpdate(e,t){let r=this.props,n=this.state;return r.path!==e.path||!pn(n,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return m.createElement(gW,{effect:this.initModules},m.createElement(WO.Provider,{value:t},m.createElement(yW,null,e)))}};hW.displayName="Manager";var gW=({children:e,effect:t})=>(m.useEffect(t,[]),e),mW=e=>e;function yW({filter:e=mW,children:t}){let r=g.useContext(WO),n=g.useRef(t),a=g.useRef(e);if(typeof n.current!="function")return m.createElement(g.Fragment,null,n.current);let l=a.current(r),i=g.useMemo(()=>[...Object.entries(l).reduce((o,s)=>o.concat(s),[])],[r.state]);return g.useMemo(()=>{let o=n.current;return m.createElement(o,{...l})},i)}globalThis.STORYBOOK_ADDON_STATE={};const{Channel:cpe}=__STORYBOOK_MODULE_CHANNELS__;var bW={id:"storybook/test-provider",leader:!0,initialState:{}};function vW({universalTestProviderStore:e,useUniversalStore:t}){let r={settingsChanged:()=>{e.untilReady().then(()=>{e.send({type:"settings-changed"})})},onRunAll:l=>e.subscribe("run-all",l),onClearAll:l=>e.subscribe("clear-all",l)},n={...r,getFullState:e.getState,setFullState:e.setState,onSettingsChanged:l=>e.subscribe("settings-changed",l),runAll:async()=>{await e.untilReady(),e.send({type:"run-all"})},clearAll:async()=>{await e.untilReady(),e.send({type:"clear-all"})}},a=l=>{let i=()=>e.getState()[l]??"test-provider-state:pending",o=s=>{e.untilReady().then(()=>{e.setState(u=>({...u,[l]:s}))})};return{...r,testProviderId:l,getState:i,setState:o,runWithState:async s=>{o("test-provider-state:running");try{await s(),o("test-provider-state:succeeded")}catch{o("test-provider-state:crashed")}}}};return t?{getTestProviderStoreById:a,fullTestProviderStore:n,universalTestProviderStore:e,useTestProviderStore:l=>t(e,l)[0]}:{getTestProviderStoreById:a,fullTestProviderStore:n,universalTestProviderStore:e}}vW({universalTestProviderStore:Ub.create({...bW,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:jO});var EW={items:{accessibilityTests:{status:"open"},autodocs:{status:"open"},ciTests:{status:"open"},controls:{status:"open"},coverage:{status:"open"},guidedTour:{status:"open"},installA11y:{status:"open"},installChromatic:{status:"open"},installDocs:{status:"open"},installVitest:{status:"open"},mdxDocs:{status:"open"},moreComponents:{status:"open"},moreStories:{status:"open"},onboardingSurvey:{status:"open"},organizeStories:{status:"open"},publishStorybook:{status:"open"},renderComponent:{status:"open"},runTests:{status:"open"},viewports:{status:"open"},visualTests:{status:"open"},whatsNewStorybook10:{status:"open"},writeInteractions:{status:"open"}},widget:{}},SW={id:"storybook/checklist",initialState:EW};Ub.create({...SW,leader:globalThis.CONFIG_TYPE==="PRODUCTION"});var XO={exports:{}},ZO={};/**
|
|
703
703
|
* @license React
|
|
704
704
|
* use-sync-external-store-shim.production.js
|
|
705
705
|
*
|
|
@@ -707,7 +707,7 @@ Inner error message: ${n==null?void 0:n.message}`))}}const{once:yU}=__STORYBOOK_
|
|
|
707
707
|
*
|
|
708
708
|
* This source code is licensed under the MIT license found in the
|
|
709
709
|
* LICENSE file in the root directory of this source tree.
|
|
710
|
-
*/var lo=g;function xW(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $W=typeof Object.is=="function"?Object.is:xW,_W=lo.useState,CW=lo.useEffect,TW=lo.useLayoutEffect,wW=lo.useDebugValue;function AW(e,t){var r=t(),n=_W({inst:{value:r,getSnapshot:t}}),a=n[0].inst,l=n[1];return TW(function(){a.value=r,a.getSnapshot=t,vg(a)&&l({inst:a})},[e,r,t]),CW(function(){return vg(a)&&l({inst:a}),e(function(){vg(a)&&l({inst:a})})},[e]),wW(r),r}function vg(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!$W(e,r)}catch{return!0}}function OW(e,t){return t()}var DW=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?OW:AW;ZO.useSyncExternalStore=lo.useSyncExternalStore!==void 0?lo.useSyncExternalStore:DW;XO.exports=ZO;var RW=XO.exports,ze=({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e},No=({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),ia=({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?"1px solid hsl(0 0 0 / 0.05)":"1px solid hsl(0 0 100 / 0.05)",color:e.color.defaultText,backgroundColor:e.base==="light"?"hsl(0 0 0 / 0.01)":"hsl(0 0 100 / 0.02)"}),Ge=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),Wl={margin:"16px 0"},A1=F.div(Ge),NW=({href:e="",...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return m.createElement("a",{href:r,target:n,...t})},QO=F(NW)(({theme:e})=>({...Ge({theme:e}),fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"}})),JO=F.blockquote(({theme:e})=>({...Ge({theme:e}),...Wl,borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),Al=[],io=null,LW=g.lazy(async()=>{let{SyntaxHighlighter:e}=await Qn(async()=>{const{SyntaxHighlighter:t}=await import("./syntaxhighlighter-OH4MV7E3-Can2sBRZ.js");return{SyntaxHighlighter:t}},__vite__mapDeps([0,1,2,3]),import.meta.url);return Al.length>0&&(Al.forEach(t=>{e.registerLanguage(...t)}),Al=[]),io===null&&(io=e),{default:t=>m.createElement(e,{...t})}}),MW=g.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Qn(()=>import("./syntaxhighlighter-OH4MV7E3-Can2sBRZ.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),Qn(()=>import("./formatter-EIJCOSYU-oeR5mOii.js"),__vite__mapDeps([4,1,2,3]),import.meta.url)]);return Al.length>0&&(Al.forEach(r=>{e.registerLanguage(...r)}),Al=[]),io===null&&(io=e),{default:r=>m.createElement(e,{...r,formatter:t})}}),Bu=e=>m.createElement(g.Suspense,{fallback:m.createElement("div",null)},e.format!==!1?m.createElement(MW,{...e}):m.createElement(LW,{...e}));Bu.registerLanguage=(...e)=>{if(io!==null){io.registerLanguage(...e);return}Al.push(e)};var FW=e=>typeof e=="string",BW=/[\n\r]/g,PW=F.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit",...ia({theme:e})})),IW=F(Bu)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),O1=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),a=g.Children.toArray(t);return a.filter(FW).some(l=>l.match(BW))?m.createElement(IW,{bordered:!0,copyable:!0,language:(n==null?void 0:n[1])??"text",format:!1,...r},t):m.createElement(PW,{...r,className:e},a)},e3=F.dl(({theme:e})=>({...Ge({theme:e}),...Wl,padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}})),t3=F.div(Ge),r3=F.h1(({theme:e})=>({...Ge({theme:e}),...No({theme:e}),fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),D1=F.h2(({theme:e})=>({...Ge({theme:e}),...No({theme:e}),fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),R1=F.h3(({theme:e})=>({...Ge({theme:e}),...No({theme:e}),fontSize:`${e.typography.size.m1}px`})),n3=F.h4(({theme:e})=>({...Ge({theme:e}),...No({theme:e}),fontSize:`${e.typography.size.s3}px`})),a3=F.h5(({theme:e})=>({...Ge({theme:e}),...No({theme:e}),fontSize:`${e.typography.size.s2}px`})),l3=F.h6(({theme:e})=>({...Ge({theme:e}),...No({theme:e}),fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),i3=F.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),o3=F.img({maxWidth:"100%"}),s3=F.li(({theme:e})=>({...Ge({theme:e}),fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":ia({theme:e})})),kW={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},u3=F.ol(({theme:e})=>({...Ge({theme:e}),...Wl,...kW,listStyle:"decimal"})),c3=F.p(({theme:e})=>({...Ge({theme:e}),...Wl,fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":ia({theme:e})})),d3=F.pre(({theme:e})=>({...Ge({theme:e}),...Wl,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),f3=F.span(({theme:e})=>({...Ge({theme:e}),"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),p3=F.title(ia),h3=F.table(({theme:e})=>({...Ge({theme:e}),...Wl,fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),zW={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},g3=F.ul(({theme:e})=>({...Ge({theme:e}),...Wl,...zW,listStyle:"disc"})),m3={h1:e=>m.createElement(r3,{...ze(e,"h1")}),h2:e=>m.createElement(D1,{...ze(e,"h2")}),h3:e=>m.createElement(R1,{...ze(e,"h3")}),h4:e=>m.createElement(n3,{...ze(e,"h4")}),h5:e=>m.createElement(a3,{...ze(e,"h5")}),h6:e=>m.createElement(l3,{...ze(e,"h6")}),pre:e=>m.createElement(d3,{...ze(e,"pre")}),a:e=>m.createElement(QO,{...ze(e,"a")}),hr:e=>m.createElement(i3,{...ze(e,"hr")}),dl:e=>m.createElement(e3,{...ze(e,"dl")}),blockquote:e=>m.createElement(JO,{...ze(e,"blockquote")}),table:e=>m.createElement(h3,{...ze(e,"table")}),img:e=>m.createElement(o3,{...ze(e,"img")}),div:e=>m.createElement(t3,{...ze(e,"div")}),span:e=>m.createElement(f3,{...ze(e,"span")}),li:e=>m.createElement(s3,{...ze(e,"li")}),ul:e=>m.createElement(g3,{...ze(e,"ul")}),ol:e=>m.createElement(u3,{...ze(e,"ol")}),p:e=>m.createElement(c3,{...ze(e,"p")}),code:e=>m.createElement(O1,{...ze(e,"code")}),tt:e=>m.createElement(p3,{...ze(e,"tt")}),resetwrapper:e=>m.createElement(A1,{...ze(e,"resetwrapper")})};F.div(({theme:e,compact:t})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"12px",minWidth:20,borderRadius:20,padding:t?"4px 7px":"4px 10px"}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.fgColor.critical,background:e.bgColor.critical,boxShadow:`inset 0 0 0 1px ${e.borderColor.critical}`};case"negative":return{color:e.fgColor.negative,background:e.bgColor.negative,boxShadow:`inset 0 0 0 1px ${e.borderColor.negative}`};case"warning":return{color:e.fgColor.warning,background:e.bgColor.warning,boxShadow:`inset 0 0 0 1px ${e.borderColor.warning}`};case"neutral":return{color:e.fgColor.muted,background:e.base==="dark"?e.barBg:e.background.app,boxShadow:`inset 0 0 0 1px ${aa(.8,e.textMutedColor)}`};case"positive":return{color:e.fgColor.positive,background:e.bgColor.positive,boxShadow:`inset 0 0 0 1px ${e.borderColor.positive}`};case"active":return{color:e.base==="light"?Lt(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${aa(.9,e.color.secondary)}`};default:return{}}});const{deprecate:HW}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var UW=0,jW=e=>e.button===UW&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,KW=(e,t)=>{jW(e)&&(e.preventDefault(),t(e))},GW=F.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),VW=F.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:Lt(.07,e.color.secondary),"svg path:not([fill])":{fill:Lt(.07,e.color.secondary)}},"&:active":{color:Lt(.1,e.color.secondary),"svg path:not([fill])":{fill:Lt(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.secondary,e.color.secondary]),r&&(n=[e.color.dark,e.color.secondary,e.color.secondary]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e,theme:t})=>e?{border:0,borderRadius:t.input.borderRadius,background:"none",padding:0,fontSize:"inherit",lineHeight:"inherit","&:focus-visible":{outline:`2px solid ${t.color.secondary}`,outlineOffset:2,zIndex:"1"}}:{}),oo=g.forwardRef(({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:a=!1,className:l=void 0,isButton:i=void 0,href:o,...s},u)=>(i!==void 0&&HW("Link: `isButton` is deprecated and will be removed in Storybook 11. Links without a `href` are automatically rendered as buttons."),m.createElement(VW,{as:o?"a":"button",href:o,...s,ref:u,isButton:!o||i===!0,onClick:r&&e?c=>KW(c,r):r,className:l},m.createElement(GW,{withArrow:n,containsIcon:a},t,n&&m.createElement(HA,null)))));oo.displayName="Link";F.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"?e.color.darkest:e.color.dark}}));const{deprecate:j0}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function P$(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function YW(...e){return t=>{let r=!1,n=e.map(a=>{let l=P$(a,t);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let a=0;a<n.length;a++){let l=n[a];typeof l=="function"?l():P$(e[a],null)}}}}var qW=Symbol.for("react.lazy"),pf=Y8[" use ".trim().toString()];function WW(e){return typeof e=="object"&&e!==null&&"then"in e}function y3(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===qW&&"_payload"in e&&WW(e._payload)}function XW(e){let t=QW(e),r=g.forwardRef((n,a)=>{let{children:l,...i}=n;y3(l)&&typeof pf=="function"&&(l=pf(l._payload));let o=g.Children.toArray(l),s=o.find(eX);if(s){let u=s.props.children,c=o.map(d=>d===s?g.Children.count(u)>1?g.Children.only(null):g.isValidElement(u)?u.props.children:null:d);return pe.jsx(t,{...i,ref:a,children:g.isValidElement(u)?g.cloneElement(u,void 0,c):null})}return pe.jsx(t,{...i,ref:a,children:l})});return r.displayName=`${e}.Slot`,r}var ZW=XW("Slot");function QW(e){let t=g.forwardRef((r,n)=>{let{children:a,...l}=r;if(y3(a)&&typeof pf=="function"&&(a=pf(a._payload)),g.isValidElement(a)){let i=rX(a),o=tX(l,a.props);return a.type!==g.Fragment&&(o.ref=n?YW(n,i):i),g.cloneElement(a,o)}return g.Children.count(a)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var JW=Symbol("radix.slottable");function eX(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===JW}function tX(e,t){let r={...t};for(let n in t){let a=e[n],l=t[n];/^on[A-Z]/.test(n)?a&&l?r[n]=(...i)=>{let o=l(...i);return a(...i),o}:a&&(r[n]=a):n==="style"?r[n]={...a,...l}:n==="className"&&(r[n]=[a,l].filter(Boolean).join(" "))}return{...e,...r}}function rX(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var nX=F.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)"})),b3=({note:e,...t})=>m.createElement(nX,{...t},e);const{deprecate:aX}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ve=typeof document<"u"?m.useLayoutEffect:()=>{};function lX(e){let[t,r]=g.useState(e),n=g.useRef(t),a=g.useRef(null),l=g.useRef(()=>{if(!a.current)return;let o=a.current.next();if(o.done){a.current=null;return}n.current===o.value?l.current():r(o.value)});ve(()=>{n.current=t,a.current&&l.current()});let i=g.useCallback(o=>{a.current=o(n.current),l.current()},[l]);return[t,i]}var v3={prefix:String(Math.round(Math.random()*1e10)),current:0},E3=m.createContext(v3),iX=m.createContext(!1),Eg=new WeakMap;function oX(e=!1){let t=g.useContext(E3),r=g.useRef(null);if(r.current===null&&!e){var n,a;let l=(a=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(n=a.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(l){let i=Eg.get(l);i==null?Eg.set(l,{id:t.current,state:l.memoizedState}):l.memoizedState!==i.state&&(t.current=i.id,Eg.delete(l))}r.current=++t.current}return r.current}function sX(e){let t=g.useContext(E3),r=oX(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function uX(e){let t=m.useId(),[r]=g.useState(Xl()),n=r?"react-aria":`react-aria${v3.prefix}`;return e||`${n}-${t}`}var cX=typeof m.useId=="function"?uX:sX;function dX(){return!1}function fX(){return!0}function pX(e){return()=>{}}function Xl(){return typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore(pX,dX,fX):g.useContext(iX)}var hX=!!(typeof window<"u"&&window.document&&window.document.createElement),Pi=new Map,ps;typeof FinalizationRegistry<"u"&&(ps=new FinalizationRegistry(e=>{Pi.delete(e)}));function Ot(e){let[t,r]=g.useState(e),n=g.useRef(null),a=cX(t),l=g.useRef(null);if(ps&&ps.register(l,a),hX){let i=Pi.get(a);i&&!i.includes(n)?i.push(n):Pi.set(a,[n])}return ve(()=>{let i=a;return()=>{ps&&ps.unregister(l),Pi.delete(i)}},[a]),g.useEffect(()=>{let i=n.current;return i&&r(i),()=>{i&&(n.current=null)}}),a}function gX(e,t){if(e===t)return e;let r=Pi.get(e);if(r)return r.forEach(a=>a.current=t),t;let n=Pi.get(t);return n?(n.forEach(a=>a.current=e),e):t}function gd(e=[]){let t=Ot(),[r,n]=lX(t),a=g.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return ve(a,[t,a,...e]),r}function Pu(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var Ee=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Fr=e=>e&&"window"in e&&e.window===e?e:Ee(e).defaultView||window;function Cr(e,t){return t&&e?e.contains(t):!1}var bt=(e=document)=>e.activeElement;function Ze(e){return e.target}function mX(e,t,r,n){return e.createTreeWalker(t,r,n)}function S3(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=S3(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function yX(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=S3(e))&&(n&&(n+=" "),n+=t);return n}var bX=yX;function oe(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let a in n){let l=t[a],i=n[a];typeof l=="function"&&typeof i=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?t[a]=Pu(l,i):(a==="className"||a==="UNSAFE_className")&&typeof l=="string"&&typeof i=="string"?t[a]=bX(l,i):a==="id"&&l&&i?t.id=gX(l,i):t[a]=i!==void 0?i:l}}return t}function N1(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1,n=e.map(a=>{let l=I$(a,t);return r||(r=typeof l=="function"),l});if(r)return()=>{n.forEach((a,l)=>{typeof a=="function"?a():I$(e[l],null)})}}}function I$(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}var vX=new Set(["id"]),EX=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),SX=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),xX=new Set(["dir","lang","hidden","inert","translate"]),k$=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),$X=/^(data-.*)$/;function Ve(e,t={}){let{labelable:r,isLink:n,global:a,events:l=a,propNames:i}=t,o={};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(vX.has(s)||r&&EX.has(s)||n&&SX.has(s)||a&&xX.has(s)||l&&(k$.has(s)||s.endsWith("Capture")&&k$.has(s.slice(0,-7)))||i!=null&&i.has(s)||$X.test(s))&&(o[s]=e[s]);return o}function Qt(e){if(_X())e.focus({preventScroll:!0});else{let t=CX(e);e.focus(),TX(t)}}var Oc=null;function _X(){if(Oc==null){Oc=!1;try{document.createElement("div").focus({get preventScroll(){return Oc=!0,!0}})}catch{}}return Oc}function CX(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function TX(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function Cp(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function L1(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function oa(e){let t=null;return()=>(t==null&&(t=e()),t)}var Pl=oa(function(){return L1(/^Mac/i)}),wX=oa(function(){return L1(/^iPhone/i)}),x3=oa(function(){return L1(/^iPad/i)||Pl()&&navigator.maxTouchPoints>1}),Tp=oa(function(){return wX()||x3()}),AX=oa(function(){return Pl()||Tp()}),$3=oa(function(){return Cp(/AppleWebKit/i)&&!_3()}),_3=oa(function(){return Cp(/Chrome/i)}),M1=oa(function(){return Cp(/Android/i)}),OX=oa(function(){return Cp(/Firefox/i)}),DX=g.createContext({isNative:!0,open:LX,useHref:e=>e});function wp(){return g.useContext(DX)}function RX(e,t){let r=e.getAttribute("target");return(!r||r==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Il(e,t,r=!0){var n,a;let{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}=t;OX()&&!((a=window.event)===null||a===void 0||(n=a.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(Pl()?l=!0:i=!0);let u=$3()&&Pl()&&!x3()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}):new MouseEvent("click",{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});Il.isOpening=r,Qt(e),e.dispatchEvent(u),Il.isOpening=!1}Il.isOpening=!1;function NX(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function LX(e,t){NX(e,r=>Il(r,t))}function C3(e){let t=wp();var r;let n=t.useHref((r=e==null?void 0:e.href)!==null&&r!==void 0?r:"");return{href:e!=null&&e.href?n:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}function MX(e,t,r,n){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&RX(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,n))}var Ca=new Map,K0=new Set;function z$(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let a=Ca.get(n.target);a||(a=new Set,Ca.set(n.target,a),n.target.addEventListener("transitioncancel",r,{once:!0})),a.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let a=Ca.get(n.target);if(a&&(a.delete(n.propertyName),a.size===0&&(n.target.removeEventListener("transitioncancel",r),Ca.delete(n.target)),Ca.size===0)){for(let l of K0)l();K0.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?z$():document.addEventListener("DOMContentLoaded",z$));function FX(){for(let[e]of Ca)"isConnected"in e&&!e.isConnected&&Ca.delete(e)}function T3(e){requestAnimationFrame(()=>{FX(),Ca.size===0?e():K0.add(e)})}function Ap(){let e=g.useRef(new Map),t=g.useCallback((a,l,i,o)=>{let s=o!=null&&o.once?(...u)=>{e.current.delete(i),i(...u)}:i;e.current.set(i,{type:l,eventTarget:a,fn:s,options:o}),a.addEventListener(l,s,o)},[]),r=g.useCallback((a,l,i,o)=>{var s;let u=((s=e.current.get(i))===null||s===void 0?void 0:s.fn)||i;a.removeEventListener(l,u,o),e.current.delete(i)},[]),n=g.useCallback(()=>{e.current.forEach((a,l)=>{r(a.eventTarget,a.type,l,a.options)})},[r]);return g.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Op(e,t){let{id:r,"aria-label":n,"aria-labelledby":a}=e;return r=Ot(r),a&&n?a=[...new Set([r,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),!n&&!a&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":a}}function an(e){let t=g.useRef(null),r=g.useRef(void 0),n=g.useCallback(a=>{if(typeof e=="function"){let l=e,i=l(a);return()=>{typeof i=="function"?i():l(null)}}else if(e)return e.current=a,()=>{e.current=null}},[e]);return g.useMemo(()=>({get current(){return t.current},set current(a){t.current=a,r.current&&(r.current(),r.current=void 0),a!=null&&(r.current=n(a))}}),[n])}var Sg,BX=(Sg=m.useInsertionEffect)!==null&&Sg!==void 0?Sg:ve;function xt(e){let t=g.useRef(null);return BX(()=>{t.current=e},[e]),g.useCallback((...r)=>{let n=t.current;return n==null?void 0:n(...r)},[])}function H$(e,t){let r=g.useRef(!0),n=g.useRef(null);ve(()=>(r.current=!0,()=>{r.current=!1}),[]),ve(()=>{r.current?r.current=!1:(!n.current||t.some((a,l)=>!Object.is(a,n[l])))&&e(),n.current=t},t)}function PX(){return typeof window.ResizeObserver<"u"}function hf(e){let{ref:t,box:r,onResize:n}=e,a=xt(n);g.useEffect(()=>{let l=t==null?void 0:t.current;if(l)if(PX()){let i=new window.ResizeObserver(o=>{o.length&&a()});return i.observe(l,{box:r}),()=>{l&&i.unobserve(l)}}else return window.addEventListener("resize",a,!1),()=>{window.removeEventListener("resize",a,!1)}},[t,r])}function F1(e,t){ve(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function so(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function w3(e,t){let r=e;for(so(r,t)&&(r=r.parentElement);r&&!so(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function IX(e,t){let r=[];for(;e&&e!==document.documentElement;)so(e,t)&&r.push(e),e=e.parentElement;return r}function di(e){return Pl()?e.metaKey:e.ctrlKey}var kX=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function xg(e){return e instanceof HTMLInputElement&&!kX.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var zX=0,$g=new Map;function HX(e){let[t,r]=g.useState();return ve(()=>{if(!e)return;let n=$g.get(e);if(n)r(n.element.id);else{let a=`react-aria-description-${zX++}`;r(a);let l=document.createElement("div");l.id=a,l.style.display="none",l.textContent=e,document.body.appendChild(l),n={refCount:0,element:l},$g.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),$g.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function hs(e,t,r,n){let a=xt(r),l=r==null;g.useEffect(()=>{if(l||!e.current)return;let i=e.current;return i.addEventListener(t,a,n),()=>{i.removeEventListener(t,a,n)}},[e,t,n,l])}function A3(e,t){let r=U$(e,t,"left"),n=U$(e,t,"top"),a=t.offsetWidth,l=t.offsetHeight,i=e.scrollLeft,o=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:p}=getComputedStyle(e),b=i+parseInt(u,10),v=o+parseInt(s,10),S=b+e.clientWidth,h=v+e.clientHeight,y=parseInt(c,10)||0,E=parseInt(f,10)||0,x=parseInt(d,10)||0,T=parseInt(p,10)||0;r<=i+T?i=r-parseInt(u,10)-T:r+a>S-x&&(i+=r+a-S+x),n<=v+y?o=n-parseInt(s,10)-y:n+l>h-E&&(o+=n+l-h+E),e.scrollLeft=i,e.scrollTop=o}function U$(e,t,r){let n=r==="left"?"offsetLeft":"offsetTop",a=0;for(;t.offsetParent&&(a+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){a-=e[n];break}t=t.offsetParent}return a}function j$(e,t){if(e&&document.contains(e)){let i=document.scrollingElement||document.documentElement,o=window.getComputedStyle(i).overflow==="hidden";if(o){let s=IX(e);o||s.push(i);for(let u of s)A3(u,e)}else{var r;let{left:s,top:u}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(s-c)>1||Math.abs(u-d)>1){var n,a,l;t==null||(a=t.containingElement)===null||a===void 0||(n=a.scrollIntoView)===null||n===void 0||n.call(a,{block:"center",inline:"center"}),(l=e.scrollIntoView)===null||l===void 0||l.call(e,{block:"nearest"})}}}}function O3(e){return e.pointerType===""&&e.isTrusted?!0:M1()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function UX(e){return!M1()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function K$(e){let t=g.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var jX="react-aria-clear-focus",KX="react-aria-focus";function D3(e,t=!0){let[r,n]=g.useState(!0),a=r&&t;return ve(()=>{if(a&&e.current&&"getAnimations"in e.current)for(let l of e.current.getAnimations())l instanceof CSSTransition&&l.cancel()},[e,a]),N3(e,a,g.useCallback(()=>n(!1),[])),a}function R3(e,t){let[r,n]=g.useState(t?"open":"closed");switch(r){case"open":t||n("exiting");break;case"closed":case"exiting":t&&n("open");break}let a=r==="exiting";return N3(e,a,g.useCallback(()=>{n(l=>l==="exiting"?"closed":l)},[])),a}function N3(e,t,r){ve(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){r();return}let n=e.current.getAnimations();if(n.length===0){r();return}let a=!1;return Promise.all(n.map(l=>l.finished)).then(()=>{a||bo.flushSync(()=>{r()})}).catch(()=>{}),()=>{a=!0}}},[e,t,r])}var GX=typeof Element<"u"&&"checkVisibility"in Element.prototype;function VX(e){let t=Fr(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,a=r!=="none"&&n!=="hidden"&&n!=="collapse";if(a){let{getComputedStyle:l}=e.ownerDocument.defaultView,{display:i,visibility:o}=l(e);a=i!=="none"&&o!=="hidden"&&o!=="collapse"}return a}function YX(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function B1(e,t){return GX?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&VX(e)&&YX(e,t)&&(!e.parentElement||B1(e.parentElement,e))}var P1=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],qX=P1.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";P1.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var WX=P1.join(':not([hidden]):not([tabindex="-1"]),');function L3(e){return e.matches(qX)&&B1(e)&&!M3(e)}function XX(e){return e.matches(WX)&&B1(e)&&!M3(e)}function M3(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var _g,ZX=typeof document<"u"?(_g=m.useInsertionEffect)!==null&&_g!==void 0?_g:m.useLayoutEffect:()=>{};function Dp(e,t,r){let[n,a]=g.useState(e||t),l=g.useRef(n),i=g.useRef(e!==void 0),o=e!==void 0;g.useEffect(()=>{i.current,i.current=o},[o]);let s=o?e:n;ZX(()=>{l.current=s});let[,u]=g.useReducer(()=>({}),{}),c=g.useCallback((d,...f)=>{let p=typeof d=="function"?d(l.current):d;Object.is(l.current,p)||(l.current=p,a(p),u(),r==null||r(p,...f))},[r]);return[s,c]}function su(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function I1(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function F3(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function B3(e){let t=g.useRef({isFocused:!1,observer:null});ve(()=>{let n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=xt(n=>{e==null||e(n)});return g.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let a=n.target,l=i=>{if(t.current.isFocused=!1,a.disabled){let o=I1(i);r(o)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};a.addEventListener("focusout",l,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&a.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let o=a===document.activeElement?null:document.activeElement;a.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),t.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[r])}var gf=!1;function QX(e){for(;e&&!L3(e);)e=e.parentElement;let t=Fr(e),r=t.document.activeElement;if(!r||r===e)return;gf=!0;let n=!1,a=c=>{(c.target===r||n)&&c.stopImmediatePropagation()},l=c=>{(c.target===r||n)&&(c.stopImmediatePropagation(),!e&&!n&&(n=!0,Qt(r),s()))},i=c=>{(c.target===e||n)&&c.stopImmediatePropagation()},o=c=>{(c.target===e||n)&&(c.stopImmediatePropagation(),n||(n=!0,Qt(r),s()))};t.addEventListener("blur",a,!0),t.addEventListener("focusout",l,!0),t.addEventListener("focusin",o,!0),t.addEventListener("focus",i,!0);let s=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",a,!0),t.removeEventListener("focusout",l,!0),t.removeEventListener("focusin",o,!0),t.removeEventListener("focus",i,!0),gf=!1,n=!1},u=requestAnimationFrame(s);return s}var Ti="default",G0="",md=new WeakMap;function JX(e){if(Tp()){if(Ti==="default"){let t=Ee(e);G0=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ti="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";md.set(e,e.style[t]),e.style[t]="none"}}function G$(e){if(Tp()){if(Ti!=="disabled")return;Ti="restoring",setTimeout(()=>{T3(()=>{if(Ti==="restoring"){let t=Ee(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=G0||""),G0="",Ti="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&md.has(e)){let t=md.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),md.delete(e)}}var uu=m.createContext({register:()=>{}});uu.displayName="PressResponderContext";function eZ(e,t){return t.get?t.get.call(e):t.value}function P3(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function tZ(e,t){var r=P3(e,t,"get");return eZ(e,r)}function rZ(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function nZ(e,t,r){rZ(e,t),t.set(e,r)}function aZ(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function V$(e,t,r){var n=P3(e,t,"set");return aZ(e,n,r),r}function lZ(e){let t=g.useContext(uu);if(t){let{register:r,...n}=t;e=oe(n,e),r()}return F1(t,e.ref),e}var Dc=new WeakMap,Rc=class{continuePropagation(){V$(this,Dc,!1)}get shouldStopPropagation(){return tZ(this,Dc)}constructor(e,t,r,n){nZ(this,Dc,{writable:!0,value:void 0}),V$(this,Dc,!0);var a;let l=(a=n==null?void 0:n.target)!==null&&a!==void 0?a:r.currentTarget,i=l==null?void 0:l.getBoundingClientRect(),o,s=0,u,c=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,c=r.clientY),i&&(u!=null&&c!=null?(o=u-i.left,s=c-i.top):(o=i.width/2,s=i.height/2)),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=o,this.y=s}},Y$=Symbol("linkClicked"),q$="react-aria-pressable-style",W$="data-react-aria-pressable";function Iu(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:a,onPressUp:l,onClick:i,isDisabled:o,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...p}=lZ(e),[b,v]=g.useState(!1),S=g.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:h,removeAllGlobalListeners:y}=Ap(),E=xt((w,I)=>{let k=S.current;if(o||k.didFirePressStart)return!1;let M=!0;if(k.isTriggeringEvent=!0,n){let B=new Rc("pressstart",I,w);n(B),M=B.shouldStopPropagation}return r&&r(!0),k.isTriggeringEvent=!1,k.didFirePressStart=!0,v(!0),M}),x=xt((w,I,k=!0)=>{let M=S.current;if(!M.didFirePressStart)return!1;M.didFirePressStart=!1,M.isTriggeringEvent=!0;let B=!0;if(a){let $=new Rc("pressend",I,w);a($),B=$.shouldStopPropagation}if(r&&r(!1),v(!1),t&&k&&!o){let $=new Rc("press",I,w);t($),B&&(B=$.shouldStopPropagation)}return M.isTriggeringEvent=!1,B}),T=xt((w,I)=>{let k=S.current;if(o)return!1;if(l){k.isTriggeringEvent=!0;let M=new Rc("pressup",I,w);return l(M),k.isTriggeringEvent=!1,M.shouldStopPropagation}return!0}),_=xt(w=>{let I=S.current;if(I.isPressed&&I.target){I.didFirePressStart&&I.pointerType!=null&&x(nl(I.target,w),I.pointerType,!1),I.isPressed=!1,I.isOverTarget=!1,I.activePointerId=null,I.pointerType=null,y(),d||G$(I.target);for(let k of I.disposables)k();I.disposables=[]}}),C=xt(w=>{c&&_(w)}),O=xt(w=>{o||(i==null||i(w))}),D=xt((w,I)=>{if(!o&&i){let k=new MouseEvent("click",w);F3(k,I),i(I1(k))}}),L=g.useMemo(()=>{let w=S.current,I={onKeyDown(M){if(Cg(M.nativeEvent,M.currentTarget)&&Cr(M.currentTarget,Ze(M.nativeEvent))){var B;X$(Ze(M.nativeEvent),M.key)&&M.preventDefault();let $=!0;if(!w.isPressed&&!M.repeat){w.target=M.currentTarget,w.isPressed=!0,w.pointerType="keyboard",$=E(M,"keyboard");let A=M.currentTarget,R=P=>{Cg(P,A)&&!P.repeat&&Cr(A,Ze(P))&&w.target&&T(nl(w.target,P),"keyboard")};h(Ee(M.currentTarget),"keyup",Pu(R,k),!0)}$&&M.stopPropagation(),M.metaKey&&Pl()&&((B=w.metaKeyEvents)===null||B===void 0||B.set(M.key,M.nativeEvent))}else M.key==="Meta"&&(w.metaKeyEvents=new Map)},onClick(M){if(!(M&&!Cr(M.currentTarget,Ze(M.nativeEvent)))&&M&&M.button===0&&!w.isTriggeringEvent&&!Il.isOpening){let B=!0;if(o&&M.preventDefault(),!w.ignoreEmulatedMouseEvents&&!w.isPressed&&(w.pointerType==="virtual"||O3(M.nativeEvent))){let $=E(M,"virtual"),A=T(M,"virtual"),R=x(M,"virtual");O(M),B=$&&A&&R}else if(w.isPressed&&w.pointerType!=="keyboard"){let $=w.pointerType||M.nativeEvent.pointerType||"virtual",A=T(nl(M.currentTarget,M),$),R=x(nl(M.currentTarget,M),$,!0);B=A&&R,w.isOverTarget=!1,O(M),_(M)}w.ignoreEmulatedMouseEvents=!1,B&&M.stopPropagation()}}},k=M=>{var B;if(w.isPressed&&w.target&&Cg(M,w.target)){var $;X$(Ze(M),M.key)&&M.preventDefault();let R=Ze(M),P=Cr(w.target,Ze(M));x(nl(w.target,M),"keyboard",P),P&&D(M,w.target),y(),M.key!=="Enter"&&k1(w.target)&&Cr(w.target,R)&&!M[Y$]&&(M[Y$]=!0,Il(w.target,M,!1)),w.isPressed=!1,($=w.metaKeyEvents)===null||$===void 0||$.delete(M.key)}else if(M.key==="Meta"&&!((B=w.metaKeyEvents)===null||B===void 0)&&B.size){var A;let R=w.metaKeyEvents;w.metaKeyEvents=void 0;for(let P of R.values())(A=w.target)===null||A===void 0||A.dispatchEvent(new KeyboardEvent("keyup",P))}};if(typeof PointerEvent<"u"){I.onPointerDown=$=>{if($.button!==0||!Cr($.currentTarget,Ze($.nativeEvent)))return;if(UX($.nativeEvent)){w.pointerType="virtual";return}w.pointerType=$.pointerType;let A=!0;if(!w.isPressed){w.isPressed=!0,w.isOverTarget=!0,w.activePointerId=$.pointerId,w.target=$.currentTarget,d||JX(w.target),A=E($,w.pointerType);let R=Ze($.nativeEvent);"releasePointerCapture"in R&&R.releasePointerCapture($.pointerId),h(Ee($.currentTarget),"pointerup",M,!1),h(Ee($.currentTarget),"pointercancel",B,!1)}A&&$.stopPropagation()},I.onMouseDown=$=>{if(Cr($.currentTarget,Ze($.nativeEvent))&&$.button===0){if(u){let A=QX($.target);A&&w.disposables.push(A)}$.stopPropagation()}},I.onPointerUp=$=>{!Cr($.currentTarget,Ze($.nativeEvent))||w.pointerType==="virtual"||$.button===0&&!w.isPressed&&T($,w.pointerType||$.pointerType)},I.onPointerEnter=$=>{$.pointerId===w.activePointerId&&w.target&&!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,E(nl(w.target,$),w.pointerType))},I.onPointerLeave=$=>{$.pointerId===w.activePointerId&&w.target&&w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,x(nl(w.target,$),w.pointerType,!1),C($))};let M=$=>{if($.pointerId===w.activePointerId&&w.isPressed&&$.button===0&&w.target){if(Cr(w.target,Ze($))&&w.pointerType!=null){let A=!1,R=setTimeout(()=>{w.isPressed&&w.target instanceof HTMLElement&&(A?_($):(Qt(w.target),w.target.click()))},80);h($.currentTarget,"click",()=>A=!0,!0),w.disposables.push(()=>clearTimeout(R))}else _($);w.isOverTarget=!1}},B=$=>{_($)};I.onDragStart=$=>{Cr($.currentTarget,Ze($.nativeEvent))&&_($)}}return I},[h,o,u,y,d,_,C,x,E,T,O,D]);return g.useEffect(()=>{if(!f)return;let w=Ee(f.current);if(!w||!w.head||w.getElementById(q$))return;let I=w.createElement("style");I.id=q$,I.textContent=`
|
|
710
|
+
*/var lo=g;function xW(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $W=typeof Object.is=="function"?Object.is:xW,_W=lo.useState,CW=lo.useEffect,TW=lo.useLayoutEffect,wW=lo.useDebugValue;function AW(e,t){var r=t(),n=_W({inst:{value:r,getSnapshot:t}}),a=n[0].inst,l=n[1];return TW(function(){a.value=r,a.getSnapshot=t,vg(a)&&l({inst:a})},[e,r,t]),CW(function(){return vg(a)&&l({inst:a}),e(function(){vg(a)&&l({inst:a})})},[e]),wW(r),r}function vg(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!$W(e,r)}catch{return!0}}function OW(e,t){return t()}var DW=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?OW:AW;ZO.useSyncExternalStore=lo.useSyncExternalStore!==void 0?lo.useSyncExternalStore:DW;XO.exports=ZO;var RW=XO.exports,ze=({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e},No=({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),ia=({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?"1px solid hsl(0 0 0 / 0.05)":"1px solid hsl(0 0 100 / 0.05)",color:e.color.defaultText,backgroundColor:e.base==="light"?"hsl(0 0 0 / 0.01)":"hsl(0 0 100 / 0.02)"}),Ge=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),Wl={margin:"16px 0"},A1=F.div(Ge),NW=({href:e="",...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return m.createElement("a",{href:r,target:n,...t})},QO=F(NW)(({theme:e})=>({...Ge({theme:e}),fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"}})),JO=F.blockquote(({theme:e})=>({...Ge({theme:e}),...Wl,borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),Al=[],io=null,LW=g.lazy(async()=>{let{SyntaxHighlighter:e}=await Qn(async()=>{const{SyntaxHighlighter:t}=await import("./syntaxhighlighter-OH4MV7E3-C5g7sJvt.js");return{SyntaxHighlighter:t}},__vite__mapDeps([0,1,2,3]),import.meta.url);return Al.length>0&&(Al.forEach(t=>{e.registerLanguage(...t)}),Al=[]),io===null&&(io=e),{default:t=>m.createElement(e,{...t})}}),MW=g.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Qn(()=>import("./syntaxhighlighter-OH4MV7E3-C5g7sJvt.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),Qn(()=>import("./formatter-EIJCOSYU-BiTxXm4h.js"),__vite__mapDeps([4,1,2,3]),import.meta.url)]);return Al.length>0&&(Al.forEach(r=>{e.registerLanguage(...r)}),Al=[]),io===null&&(io=e),{default:r=>m.createElement(e,{...r,formatter:t})}}),Bu=e=>m.createElement(g.Suspense,{fallback:m.createElement("div",null)},e.format!==!1?m.createElement(MW,{...e}):m.createElement(LW,{...e}));Bu.registerLanguage=(...e)=>{if(io!==null){io.registerLanguage(...e);return}Al.push(e)};var FW=e=>typeof e=="string",BW=/[\n\r]/g,PW=F.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit",...ia({theme:e})})),IW=F(Bu)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),O1=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),a=g.Children.toArray(t);return a.filter(FW).some(l=>l.match(BW))?m.createElement(IW,{bordered:!0,copyable:!0,language:(n==null?void 0:n[1])??"text",format:!1,...r},t):m.createElement(PW,{...r,className:e},a)},e3=F.dl(({theme:e})=>({...Ge({theme:e}),...Wl,padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}})),t3=F.div(Ge),r3=F.h1(({theme:e})=>({...Ge({theme:e}),...No({theme:e}),fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),D1=F.h2(({theme:e})=>({...Ge({theme:e}),...No({theme:e}),fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),R1=F.h3(({theme:e})=>({...Ge({theme:e}),...No({theme:e}),fontSize:`${e.typography.size.m1}px`})),n3=F.h4(({theme:e})=>({...Ge({theme:e}),...No({theme:e}),fontSize:`${e.typography.size.s3}px`})),a3=F.h5(({theme:e})=>({...Ge({theme:e}),...No({theme:e}),fontSize:`${e.typography.size.s2}px`})),l3=F.h6(({theme:e})=>({...Ge({theme:e}),...No({theme:e}),fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),i3=F.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),o3=F.img({maxWidth:"100%"}),s3=F.li(({theme:e})=>({...Ge({theme:e}),fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":ia({theme:e})})),kW={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},u3=F.ol(({theme:e})=>({...Ge({theme:e}),...Wl,...kW,listStyle:"decimal"})),c3=F.p(({theme:e})=>({...Ge({theme:e}),...Wl,fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":ia({theme:e})})),d3=F.pre(({theme:e})=>({...Ge({theme:e}),...Wl,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),f3=F.span(({theme:e})=>({...Ge({theme:e}),"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),p3=F.title(ia),h3=F.table(({theme:e})=>({...Ge({theme:e}),...Wl,fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),zW={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},g3=F.ul(({theme:e})=>({...Ge({theme:e}),...Wl,...zW,listStyle:"disc"})),m3={h1:e=>m.createElement(r3,{...ze(e,"h1")}),h2:e=>m.createElement(D1,{...ze(e,"h2")}),h3:e=>m.createElement(R1,{...ze(e,"h3")}),h4:e=>m.createElement(n3,{...ze(e,"h4")}),h5:e=>m.createElement(a3,{...ze(e,"h5")}),h6:e=>m.createElement(l3,{...ze(e,"h6")}),pre:e=>m.createElement(d3,{...ze(e,"pre")}),a:e=>m.createElement(QO,{...ze(e,"a")}),hr:e=>m.createElement(i3,{...ze(e,"hr")}),dl:e=>m.createElement(e3,{...ze(e,"dl")}),blockquote:e=>m.createElement(JO,{...ze(e,"blockquote")}),table:e=>m.createElement(h3,{...ze(e,"table")}),img:e=>m.createElement(o3,{...ze(e,"img")}),div:e=>m.createElement(t3,{...ze(e,"div")}),span:e=>m.createElement(f3,{...ze(e,"span")}),li:e=>m.createElement(s3,{...ze(e,"li")}),ul:e=>m.createElement(g3,{...ze(e,"ul")}),ol:e=>m.createElement(u3,{...ze(e,"ol")}),p:e=>m.createElement(c3,{...ze(e,"p")}),code:e=>m.createElement(O1,{...ze(e,"code")}),tt:e=>m.createElement(p3,{...ze(e,"tt")}),resetwrapper:e=>m.createElement(A1,{...ze(e,"resetwrapper")})};F.div(({theme:e,compact:t})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"12px",minWidth:20,borderRadius:20,padding:t?"4px 7px":"4px 10px"}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.fgColor.critical,background:e.bgColor.critical,boxShadow:`inset 0 0 0 1px ${e.borderColor.critical}`};case"negative":return{color:e.fgColor.negative,background:e.bgColor.negative,boxShadow:`inset 0 0 0 1px ${e.borderColor.negative}`};case"warning":return{color:e.fgColor.warning,background:e.bgColor.warning,boxShadow:`inset 0 0 0 1px ${e.borderColor.warning}`};case"neutral":return{color:e.fgColor.muted,background:e.base==="dark"?e.barBg:e.background.app,boxShadow:`inset 0 0 0 1px ${aa(.8,e.textMutedColor)}`};case"positive":return{color:e.fgColor.positive,background:e.bgColor.positive,boxShadow:`inset 0 0 0 1px ${e.borderColor.positive}`};case"active":return{color:e.base==="light"?Lt(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${aa(.9,e.color.secondary)}`};default:return{}}});const{deprecate:HW}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var UW=0,jW=e=>e.button===UW&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,KW=(e,t)=>{jW(e)&&(e.preventDefault(),t(e))},GW=F.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),VW=F.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:Lt(.07,e.color.secondary),"svg path:not([fill])":{fill:Lt(.07,e.color.secondary)}},"&:active":{color:Lt(.1,e.color.secondary),"svg path:not([fill])":{fill:Lt(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.secondary,e.color.secondary]),r&&(n=[e.color.dark,e.color.secondary,e.color.secondary]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e,theme:t})=>e?{border:0,borderRadius:t.input.borderRadius,background:"none",padding:0,fontSize:"inherit",lineHeight:"inherit","&:focus-visible":{outline:`2px solid ${t.color.secondary}`,outlineOffset:2,zIndex:"1"}}:{}),oo=g.forwardRef(({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:a=!1,className:l=void 0,isButton:i=void 0,href:o,...s},u)=>(i!==void 0&&HW("Link: `isButton` is deprecated and will be removed in Storybook 11. Links without a `href` are automatically rendered as buttons."),m.createElement(VW,{as:o?"a":"button",href:o,...s,ref:u,isButton:!o||i===!0,onClick:r&&e?c=>KW(c,r):r,className:l},m.createElement(GW,{withArrow:n,containsIcon:a},t,n&&m.createElement(HA,null)))));oo.displayName="Link";F.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"?e.color.darkest:e.color.dark}}));const{deprecate:j0}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function P$(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function YW(...e){return t=>{let r=!1,n=e.map(a=>{let l=P$(a,t);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let a=0;a<n.length;a++){let l=n[a];typeof l=="function"?l():P$(e[a],null)}}}}var qW=Symbol.for("react.lazy"),pf=Y8[" use ".trim().toString()];function WW(e){return typeof e=="object"&&e!==null&&"then"in e}function y3(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===qW&&"_payload"in e&&WW(e._payload)}function XW(e){let t=QW(e),r=g.forwardRef((n,a)=>{let{children:l,...i}=n;y3(l)&&typeof pf=="function"&&(l=pf(l._payload));let o=g.Children.toArray(l),s=o.find(eX);if(s){let u=s.props.children,c=o.map(d=>d===s?g.Children.count(u)>1?g.Children.only(null):g.isValidElement(u)?u.props.children:null:d);return pe.jsx(t,{...i,ref:a,children:g.isValidElement(u)?g.cloneElement(u,void 0,c):null})}return pe.jsx(t,{...i,ref:a,children:l})});return r.displayName=`${e}.Slot`,r}var ZW=XW("Slot");function QW(e){let t=g.forwardRef((r,n)=>{let{children:a,...l}=r;if(y3(a)&&typeof pf=="function"&&(a=pf(a._payload)),g.isValidElement(a)){let i=rX(a),o=tX(l,a.props);return a.type!==g.Fragment&&(o.ref=n?YW(n,i):i),g.cloneElement(a,o)}return g.Children.count(a)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var JW=Symbol("radix.slottable");function eX(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===JW}function tX(e,t){let r={...t};for(let n in t){let a=e[n],l=t[n];/^on[A-Z]/.test(n)?a&&l?r[n]=(...i)=>{let o=l(...i);return a(...i),o}:a&&(r[n]=a):n==="style"?r[n]={...a,...l}:n==="className"&&(r[n]=[a,l].filter(Boolean).join(" "))}return{...e,...r}}function rX(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var nX=F.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)"})),b3=({note:e,...t})=>m.createElement(nX,{...t},e);const{deprecate:aX}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ve=typeof document<"u"?m.useLayoutEffect:()=>{};function lX(e){let[t,r]=g.useState(e),n=g.useRef(t),a=g.useRef(null),l=g.useRef(()=>{if(!a.current)return;let o=a.current.next();if(o.done){a.current=null;return}n.current===o.value?l.current():r(o.value)});ve(()=>{n.current=t,a.current&&l.current()});let i=g.useCallback(o=>{a.current=o(n.current),l.current()},[l]);return[t,i]}var v3={prefix:String(Math.round(Math.random()*1e10)),current:0},E3=m.createContext(v3),iX=m.createContext(!1),Eg=new WeakMap;function oX(e=!1){let t=g.useContext(E3),r=g.useRef(null);if(r.current===null&&!e){var n,a;let l=(a=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(n=a.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(l){let i=Eg.get(l);i==null?Eg.set(l,{id:t.current,state:l.memoizedState}):l.memoizedState!==i.state&&(t.current=i.id,Eg.delete(l))}r.current=++t.current}return r.current}function sX(e){let t=g.useContext(E3),r=oX(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function uX(e){let t=m.useId(),[r]=g.useState(Xl()),n=r?"react-aria":`react-aria${v3.prefix}`;return e||`${n}-${t}`}var cX=typeof m.useId=="function"?uX:sX;function dX(){return!1}function fX(){return!0}function pX(e){return()=>{}}function Xl(){return typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore(pX,dX,fX):g.useContext(iX)}var hX=!!(typeof window<"u"&&window.document&&window.document.createElement),Pi=new Map,ps;typeof FinalizationRegistry<"u"&&(ps=new FinalizationRegistry(e=>{Pi.delete(e)}));function Ot(e){let[t,r]=g.useState(e),n=g.useRef(null),a=cX(t),l=g.useRef(null);if(ps&&ps.register(l,a),hX){let i=Pi.get(a);i&&!i.includes(n)?i.push(n):Pi.set(a,[n])}return ve(()=>{let i=a;return()=>{ps&&ps.unregister(l),Pi.delete(i)}},[a]),g.useEffect(()=>{let i=n.current;return i&&r(i),()=>{i&&(n.current=null)}}),a}function gX(e,t){if(e===t)return e;let r=Pi.get(e);if(r)return r.forEach(a=>a.current=t),t;let n=Pi.get(t);return n?(n.forEach(a=>a.current=e),e):t}function gd(e=[]){let t=Ot(),[r,n]=lX(t),a=g.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return ve(a,[t,a,...e]),r}function Pu(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var Ee=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Fr=e=>e&&"window"in e&&e.window===e?e:Ee(e).defaultView||window;function Cr(e,t){return t&&e?e.contains(t):!1}var bt=(e=document)=>e.activeElement;function Ze(e){return e.target}function mX(e,t,r,n){return e.createTreeWalker(t,r,n)}function S3(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=S3(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function yX(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=S3(e))&&(n&&(n+=" "),n+=t);return n}var bX=yX;function oe(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let a in n){let l=t[a],i=n[a];typeof l=="function"&&typeof i=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?t[a]=Pu(l,i):(a==="className"||a==="UNSAFE_className")&&typeof l=="string"&&typeof i=="string"?t[a]=bX(l,i):a==="id"&&l&&i?t.id=gX(l,i):t[a]=i!==void 0?i:l}}return t}function N1(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1,n=e.map(a=>{let l=I$(a,t);return r||(r=typeof l=="function"),l});if(r)return()=>{n.forEach((a,l)=>{typeof a=="function"?a():I$(e[l],null)})}}}function I$(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}var vX=new Set(["id"]),EX=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),SX=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),xX=new Set(["dir","lang","hidden","inert","translate"]),k$=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),$X=/^(data-.*)$/;function Ve(e,t={}){let{labelable:r,isLink:n,global:a,events:l=a,propNames:i}=t,o={};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(vX.has(s)||r&&EX.has(s)||n&&SX.has(s)||a&&xX.has(s)||l&&(k$.has(s)||s.endsWith("Capture")&&k$.has(s.slice(0,-7)))||i!=null&&i.has(s)||$X.test(s))&&(o[s]=e[s]);return o}function Qt(e){if(_X())e.focus({preventScroll:!0});else{let t=CX(e);e.focus(),TX(t)}}var Oc=null;function _X(){if(Oc==null){Oc=!1;try{document.createElement("div").focus({get preventScroll(){return Oc=!0,!0}})}catch{}}return Oc}function CX(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function TX(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function Cp(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function L1(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function oa(e){let t=null;return()=>(t==null&&(t=e()),t)}var Pl=oa(function(){return L1(/^Mac/i)}),wX=oa(function(){return L1(/^iPhone/i)}),x3=oa(function(){return L1(/^iPad/i)||Pl()&&navigator.maxTouchPoints>1}),Tp=oa(function(){return wX()||x3()}),AX=oa(function(){return Pl()||Tp()}),$3=oa(function(){return Cp(/AppleWebKit/i)&&!_3()}),_3=oa(function(){return Cp(/Chrome/i)}),M1=oa(function(){return Cp(/Android/i)}),OX=oa(function(){return Cp(/Firefox/i)}),DX=g.createContext({isNative:!0,open:LX,useHref:e=>e});function wp(){return g.useContext(DX)}function RX(e,t){let r=e.getAttribute("target");return(!r||r==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Il(e,t,r=!0){var n,a;let{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}=t;OX()&&!((a=window.event)===null||a===void 0||(n=a.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(Pl()?l=!0:i=!0);let u=$3()&&Pl()&&!x3()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}):new MouseEvent("click",{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});Il.isOpening=r,Qt(e),e.dispatchEvent(u),Il.isOpening=!1}Il.isOpening=!1;function NX(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function LX(e,t){NX(e,r=>Il(r,t))}function C3(e){let t=wp();var r;let n=t.useHref((r=e==null?void 0:e.href)!==null&&r!==void 0?r:"");return{href:e!=null&&e.href?n:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}function MX(e,t,r,n){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&RX(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,n))}var Ca=new Map,K0=new Set;function z$(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let a=Ca.get(n.target);a||(a=new Set,Ca.set(n.target,a),n.target.addEventListener("transitioncancel",r,{once:!0})),a.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let a=Ca.get(n.target);if(a&&(a.delete(n.propertyName),a.size===0&&(n.target.removeEventListener("transitioncancel",r),Ca.delete(n.target)),Ca.size===0)){for(let l of K0)l();K0.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?z$():document.addEventListener("DOMContentLoaded",z$));function FX(){for(let[e]of Ca)"isConnected"in e&&!e.isConnected&&Ca.delete(e)}function T3(e){requestAnimationFrame(()=>{FX(),Ca.size===0?e():K0.add(e)})}function Ap(){let e=g.useRef(new Map),t=g.useCallback((a,l,i,o)=>{let s=o!=null&&o.once?(...u)=>{e.current.delete(i),i(...u)}:i;e.current.set(i,{type:l,eventTarget:a,fn:s,options:o}),a.addEventListener(l,s,o)},[]),r=g.useCallback((a,l,i,o)=>{var s;let u=((s=e.current.get(i))===null||s===void 0?void 0:s.fn)||i;a.removeEventListener(l,u,o),e.current.delete(i)},[]),n=g.useCallback(()=>{e.current.forEach((a,l)=>{r(a.eventTarget,a.type,l,a.options)})},[r]);return g.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Op(e,t){let{id:r,"aria-label":n,"aria-labelledby":a}=e;return r=Ot(r),a&&n?a=[...new Set([r,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),!n&&!a&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":a}}function an(e){let t=g.useRef(null),r=g.useRef(void 0),n=g.useCallback(a=>{if(typeof e=="function"){let l=e,i=l(a);return()=>{typeof i=="function"?i():l(null)}}else if(e)return e.current=a,()=>{e.current=null}},[e]);return g.useMemo(()=>({get current(){return t.current},set current(a){t.current=a,r.current&&(r.current(),r.current=void 0),a!=null&&(r.current=n(a))}}),[n])}var Sg,BX=(Sg=m.useInsertionEffect)!==null&&Sg!==void 0?Sg:ve;function xt(e){let t=g.useRef(null);return BX(()=>{t.current=e},[e]),g.useCallback((...r)=>{let n=t.current;return n==null?void 0:n(...r)},[])}function H$(e,t){let r=g.useRef(!0),n=g.useRef(null);ve(()=>(r.current=!0,()=>{r.current=!1}),[]),ve(()=>{r.current?r.current=!1:(!n.current||t.some((a,l)=>!Object.is(a,n[l])))&&e(),n.current=t},t)}function PX(){return typeof window.ResizeObserver<"u"}function hf(e){let{ref:t,box:r,onResize:n}=e,a=xt(n);g.useEffect(()=>{let l=t==null?void 0:t.current;if(l)if(PX()){let i=new window.ResizeObserver(o=>{o.length&&a()});return i.observe(l,{box:r}),()=>{l&&i.unobserve(l)}}else return window.addEventListener("resize",a,!1),()=>{window.removeEventListener("resize",a,!1)}},[t,r])}function F1(e,t){ve(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function so(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function w3(e,t){let r=e;for(so(r,t)&&(r=r.parentElement);r&&!so(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function IX(e,t){let r=[];for(;e&&e!==document.documentElement;)so(e,t)&&r.push(e),e=e.parentElement;return r}function di(e){return Pl()?e.metaKey:e.ctrlKey}var kX=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function xg(e){return e instanceof HTMLInputElement&&!kX.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var zX=0,$g=new Map;function HX(e){let[t,r]=g.useState();return ve(()=>{if(!e)return;let n=$g.get(e);if(n)r(n.element.id);else{let a=`react-aria-description-${zX++}`;r(a);let l=document.createElement("div");l.id=a,l.style.display="none",l.textContent=e,document.body.appendChild(l),n={refCount:0,element:l},$g.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),$g.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function hs(e,t,r,n){let a=xt(r),l=r==null;g.useEffect(()=>{if(l||!e.current)return;let i=e.current;return i.addEventListener(t,a,n),()=>{i.removeEventListener(t,a,n)}},[e,t,n,l])}function A3(e,t){let r=U$(e,t,"left"),n=U$(e,t,"top"),a=t.offsetWidth,l=t.offsetHeight,i=e.scrollLeft,o=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:p}=getComputedStyle(e),b=i+parseInt(u,10),v=o+parseInt(s,10),S=b+e.clientWidth,h=v+e.clientHeight,y=parseInt(c,10)||0,E=parseInt(f,10)||0,x=parseInt(d,10)||0,T=parseInt(p,10)||0;r<=i+T?i=r-parseInt(u,10)-T:r+a>S-x&&(i+=r+a-S+x),n<=v+y?o=n-parseInt(s,10)-y:n+l>h-E&&(o+=n+l-h+E),e.scrollLeft=i,e.scrollTop=o}function U$(e,t,r){let n=r==="left"?"offsetLeft":"offsetTop",a=0;for(;t.offsetParent&&(a+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){a-=e[n];break}t=t.offsetParent}return a}function j$(e,t){if(e&&document.contains(e)){let i=document.scrollingElement||document.documentElement,o=window.getComputedStyle(i).overflow==="hidden";if(o){let s=IX(e);o||s.push(i);for(let u of s)A3(u,e)}else{var r;let{left:s,top:u}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(s-c)>1||Math.abs(u-d)>1){var n,a,l;t==null||(a=t.containingElement)===null||a===void 0||(n=a.scrollIntoView)===null||n===void 0||n.call(a,{block:"center",inline:"center"}),(l=e.scrollIntoView)===null||l===void 0||l.call(e,{block:"nearest"})}}}}function O3(e){return e.pointerType===""&&e.isTrusted?!0:M1()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function UX(e){return!M1()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function K$(e){let t=g.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var jX="react-aria-clear-focus",KX="react-aria-focus";function D3(e,t=!0){let[r,n]=g.useState(!0),a=r&&t;return ve(()=>{if(a&&e.current&&"getAnimations"in e.current)for(let l of e.current.getAnimations())l instanceof CSSTransition&&l.cancel()},[e,a]),N3(e,a,g.useCallback(()=>n(!1),[])),a}function R3(e,t){let[r,n]=g.useState(t?"open":"closed");switch(r){case"open":t||n("exiting");break;case"closed":case"exiting":t&&n("open");break}let a=r==="exiting";return N3(e,a,g.useCallback(()=>{n(l=>l==="exiting"?"closed":l)},[])),a}function N3(e,t,r){ve(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){r();return}let n=e.current.getAnimations();if(n.length===0){r();return}let a=!1;return Promise.all(n.map(l=>l.finished)).then(()=>{a||bo.flushSync(()=>{r()})}).catch(()=>{}),()=>{a=!0}}},[e,t,r])}var GX=typeof Element<"u"&&"checkVisibility"in Element.prototype;function VX(e){let t=Fr(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,a=r!=="none"&&n!=="hidden"&&n!=="collapse";if(a){let{getComputedStyle:l}=e.ownerDocument.defaultView,{display:i,visibility:o}=l(e);a=i!=="none"&&o!=="hidden"&&o!=="collapse"}return a}function YX(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function B1(e,t){return GX?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&VX(e)&&YX(e,t)&&(!e.parentElement||B1(e.parentElement,e))}var P1=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],qX=P1.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";P1.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var WX=P1.join(':not([hidden]):not([tabindex="-1"]),');function L3(e){return e.matches(qX)&&B1(e)&&!M3(e)}function XX(e){return e.matches(WX)&&B1(e)&&!M3(e)}function M3(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var _g,ZX=typeof document<"u"?(_g=m.useInsertionEffect)!==null&&_g!==void 0?_g:m.useLayoutEffect:()=>{};function Dp(e,t,r){let[n,a]=g.useState(e||t),l=g.useRef(n),i=g.useRef(e!==void 0),o=e!==void 0;g.useEffect(()=>{i.current,i.current=o},[o]);let s=o?e:n;ZX(()=>{l.current=s});let[,u]=g.useReducer(()=>({}),{}),c=g.useCallback((d,...f)=>{let p=typeof d=="function"?d(l.current):d;Object.is(l.current,p)||(l.current=p,a(p),u(),r==null||r(p,...f))},[r]);return[s,c]}function su(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function I1(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function F3(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function B3(e){let t=g.useRef({isFocused:!1,observer:null});ve(()=>{let n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=xt(n=>{e==null||e(n)});return g.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let a=n.target,l=i=>{if(t.current.isFocused=!1,a.disabled){let o=I1(i);r(o)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};a.addEventListener("focusout",l,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&a.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let o=a===document.activeElement?null:document.activeElement;a.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),t.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[r])}var gf=!1;function QX(e){for(;e&&!L3(e);)e=e.parentElement;let t=Fr(e),r=t.document.activeElement;if(!r||r===e)return;gf=!0;let n=!1,a=c=>{(c.target===r||n)&&c.stopImmediatePropagation()},l=c=>{(c.target===r||n)&&(c.stopImmediatePropagation(),!e&&!n&&(n=!0,Qt(r),s()))},i=c=>{(c.target===e||n)&&c.stopImmediatePropagation()},o=c=>{(c.target===e||n)&&(c.stopImmediatePropagation(),n||(n=!0,Qt(r),s()))};t.addEventListener("blur",a,!0),t.addEventListener("focusout",l,!0),t.addEventListener("focusin",o,!0),t.addEventListener("focus",i,!0);let s=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",a,!0),t.removeEventListener("focusout",l,!0),t.removeEventListener("focusin",o,!0),t.removeEventListener("focus",i,!0),gf=!1,n=!1},u=requestAnimationFrame(s);return s}var Ti="default",G0="",md=new WeakMap;function JX(e){if(Tp()){if(Ti==="default"){let t=Ee(e);G0=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ti="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";md.set(e,e.style[t]),e.style[t]="none"}}function G$(e){if(Tp()){if(Ti!=="disabled")return;Ti="restoring",setTimeout(()=>{T3(()=>{if(Ti==="restoring"){let t=Ee(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=G0||""),G0="",Ti="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&md.has(e)){let t=md.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),md.delete(e)}}var uu=m.createContext({register:()=>{}});uu.displayName="PressResponderContext";function eZ(e,t){return t.get?t.get.call(e):t.value}function P3(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function tZ(e,t){var r=P3(e,t,"get");return eZ(e,r)}function rZ(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function nZ(e,t,r){rZ(e,t),t.set(e,r)}function aZ(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function V$(e,t,r){var n=P3(e,t,"set");return aZ(e,n,r),r}function lZ(e){let t=g.useContext(uu);if(t){let{register:r,...n}=t;e=oe(n,e),r()}return F1(t,e.ref),e}var Dc=new WeakMap,Rc=class{continuePropagation(){V$(this,Dc,!1)}get shouldStopPropagation(){return tZ(this,Dc)}constructor(e,t,r,n){nZ(this,Dc,{writable:!0,value:void 0}),V$(this,Dc,!0);var a;let l=(a=n==null?void 0:n.target)!==null&&a!==void 0?a:r.currentTarget,i=l==null?void 0:l.getBoundingClientRect(),o,s=0,u,c=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,c=r.clientY),i&&(u!=null&&c!=null?(o=u-i.left,s=c-i.top):(o=i.width/2,s=i.height/2)),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=o,this.y=s}},Y$=Symbol("linkClicked"),q$="react-aria-pressable-style",W$="data-react-aria-pressable";function Iu(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:a,onPressUp:l,onClick:i,isDisabled:o,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...p}=lZ(e),[b,v]=g.useState(!1),S=g.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:h,removeAllGlobalListeners:y}=Ap(),E=xt((w,I)=>{let k=S.current;if(o||k.didFirePressStart)return!1;let M=!0;if(k.isTriggeringEvent=!0,n){let B=new Rc("pressstart",I,w);n(B),M=B.shouldStopPropagation}return r&&r(!0),k.isTriggeringEvent=!1,k.didFirePressStart=!0,v(!0),M}),x=xt((w,I,k=!0)=>{let M=S.current;if(!M.didFirePressStart)return!1;M.didFirePressStart=!1,M.isTriggeringEvent=!0;let B=!0;if(a){let $=new Rc("pressend",I,w);a($),B=$.shouldStopPropagation}if(r&&r(!1),v(!1),t&&k&&!o){let $=new Rc("press",I,w);t($),B&&(B=$.shouldStopPropagation)}return M.isTriggeringEvent=!1,B}),T=xt((w,I)=>{let k=S.current;if(o)return!1;if(l){k.isTriggeringEvent=!0;let M=new Rc("pressup",I,w);return l(M),k.isTriggeringEvent=!1,M.shouldStopPropagation}return!0}),_=xt(w=>{let I=S.current;if(I.isPressed&&I.target){I.didFirePressStart&&I.pointerType!=null&&x(nl(I.target,w),I.pointerType,!1),I.isPressed=!1,I.isOverTarget=!1,I.activePointerId=null,I.pointerType=null,y(),d||G$(I.target);for(let k of I.disposables)k();I.disposables=[]}}),C=xt(w=>{c&&_(w)}),O=xt(w=>{o||(i==null||i(w))}),D=xt((w,I)=>{if(!o&&i){let k=new MouseEvent("click",w);F3(k,I),i(I1(k))}}),L=g.useMemo(()=>{let w=S.current,I={onKeyDown(M){if(Cg(M.nativeEvent,M.currentTarget)&&Cr(M.currentTarget,Ze(M.nativeEvent))){var B;X$(Ze(M.nativeEvent),M.key)&&M.preventDefault();let $=!0;if(!w.isPressed&&!M.repeat){w.target=M.currentTarget,w.isPressed=!0,w.pointerType="keyboard",$=E(M,"keyboard");let A=M.currentTarget,R=P=>{Cg(P,A)&&!P.repeat&&Cr(A,Ze(P))&&w.target&&T(nl(w.target,P),"keyboard")};h(Ee(M.currentTarget),"keyup",Pu(R,k),!0)}$&&M.stopPropagation(),M.metaKey&&Pl()&&((B=w.metaKeyEvents)===null||B===void 0||B.set(M.key,M.nativeEvent))}else M.key==="Meta"&&(w.metaKeyEvents=new Map)},onClick(M){if(!(M&&!Cr(M.currentTarget,Ze(M.nativeEvent)))&&M&&M.button===0&&!w.isTriggeringEvent&&!Il.isOpening){let B=!0;if(o&&M.preventDefault(),!w.ignoreEmulatedMouseEvents&&!w.isPressed&&(w.pointerType==="virtual"||O3(M.nativeEvent))){let $=E(M,"virtual"),A=T(M,"virtual"),R=x(M,"virtual");O(M),B=$&&A&&R}else if(w.isPressed&&w.pointerType!=="keyboard"){let $=w.pointerType||M.nativeEvent.pointerType||"virtual",A=T(nl(M.currentTarget,M),$),R=x(nl(M.currentTarget,M),$,!0);B=A&&R,w.isOverTarget=!1,O(M),_(M)}w.ignoreEmulatedMouseEvents=!1,B&&M.stopPropagation()}}},k=M=>{var B;if(w.isPressed&&w.target&&Cg(M,w.target)){var $;X$(Ze(M),M.key)&&M.preventDefault();let R=Ze(M),P=Cr(w.target,Ze(M));x(nl(w.target,M),"keyboard",P),P&&D(M,w.target),y(),M.key!=="Enter"&&k1(w.target)&&Cr(w.target,R)&&!M[Y$]&&(M[Y$]=!0,Il(w.target,M,!1)),w.isPressed=!1,($=w.metaKeyEvents)===null||$===void 0||$.delete(M.key)}else if(M.key==="Meta"&&!((B=w.metaKeyEvents)===null||B===void 0)&&B.size){var A;let R=w.metaKeyEvents;w.metaKeyEvents=void 0;for(let P of R.values())(A=w.target)===null||A===void 0||A.dispatchEvent(new KeyboardEvent("keyup",P))}};if(typeof PointerEvent<"u"){I.onPointerDown=$=>{if($.button!==0||!Cr($.currentTarget,Ze($.nativeEvent)))return;if(UX($.nativeEvent)){w.pointerType="virtual";return}w.pointerType=$.pointerType;let A=!0;if(!w.isPressed){w.isPressed=!0,w.isOverTarget=!0,w.activePointerId=$.pointerId,w.target=$.currentTarget,d||JX(w.target),A=E($,w.pointerType);let R=Ze($.nativeEvent);"releasePointerCapture"in R&&R.releasePointerCapture($.pointerId),h(Ee($.currentTarget),"pointerup",M,!1),h(Ee($.currentTarget),"pointercancel",B,!1)}A&&$.stopPropagation()},I.onMouseDown=$=>{if(Cr($.currentTarget,Ze($.nativeEvent))&&$.button===0){if(u){let A=QX($.target);A&&w.disposables.push(A)}$.stopPropagation()}},I.onPointerUp=$=>{!Cr($.currentTarget,Ze($.nativeEvent))||w.pointerType==="virtual"||$.button===0&&!w.isPressed&&T($,w.pointerType||$.pointerType)},I.onPointerEnter=$=>{$.pointerId===w.activePointerId&&w.target&&!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,E(nl(w.target,$),w.pointerType))},I.onPointerLeave=$=>{$.pointerId===w.activePointerId&&w.target&&w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,x(nl(w.target,$),w.pointerType,!1),C($))};let M=$=>{if($.pointerId===w.activePointerId&&w.isPressed&&$.button===0&&w.target){if(Cr(w.target,Ze($))&&w.pointerType!=null){let A=!1,R=setTimeout(()=>{w.isPressed&&w.target instanceof HTMLElement&&(A?_($):(Qt(w.target),w.target.click()))},80);h($.currentTarget,"click",()=>A=!0,!0),w.disposables.push(()=>clearTimeout(R))}else _($);w.isOverTarget=!1}},B=$=>{_($)};I.onDragStart=$=>{Cr($.currentTarget,Ze($.nativeEvent))&&_($)}}return I},[h,o,u,y,d,_,C,x,E,T,O,D]);return g.useEffect(()=>{if(!f)return;let w=Ee(f.current);if(!w||!w.head||w.getElementById(q$))return;let I=w.createElement("style");I.id=q$,I.textContent=`
|
|
711
711
|
@layer {
|
|
712
712
|
[${W$}] {
|
|
713
713
|
touch-action: pan-x pan-y pinch-zoom;
|
|
@@ -728,7 +728,7 @@ ${t}`);let r=t.match(bee);if(!r)return m.createElement(g.Fragment,null,t);let[,n
|
|
|
728
728
|
`,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1,cursor:"default",transition:"opacity 100ms ease-in-out, transform 100ms ease-in-out",transformOrigin:"top",transform:"translateY(0)",opacity:1,"@starting-style":{transform:"translateY(-0.25rem) scale(0.95)",opacity:0}},"& optgroup label":{display:"block",padding:"3px 6px"},"& option":{lineHeight:"18px",padding:"7px 10px",borderRadius:4,outline:"none",cursor:"pointer",color:e.color.defaultText,"&::checkmark":{display:"none"},"&:hover, &:focus-visible":{backgroundColor:e.background.hoverable},"&:checked":{color:e.color.secondary,fontWeight:e.typography.weight.bold},"&:disabled":{backgroundColor:"transparent",cursor:"default",color:e.color.defaultText}}})),Mee=({children:e,...t})=>m.createElement(Lee,{...t},!MF()&&m.createElement("button",null,m.createElement("selectedcontent",null),m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},m.createElement("path",{d:"m6 9 6 6 6-6"}))),m.createElement("optgroup",null,e)),Fee=g.useLayoutEffect,Bee=function(e){var t=m.useRef(e);return Fee(function(){t.current=e}),t},N_=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},Pee=function(e,t){var r=m.useRef();return m.useCallback(function(n){e.current=n,r.current&&N_(r.current,null),r.current=t,t&&N_(t,n)},[t])},L_={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},Iee=function(e){Object.keys(L_).forEach(function(t){e.style.setProperty(t,L_[t],"important")})},M_=Iee,zt=null,F_=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function kee(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),zt||(zt=document.createElement("textarea"),zt.setAttribute("tabindex","-1"),zt.setAttribute("aria-hidden","true"),M_(zt)),zt.parentNode===null&&document.body.appendChild(zt);var a=e.paddingSize,l=e.borderSize,i=e.sizingStyle,o=i.boxSizing;Object.keys(i).forEach(function(f){var p=f;zt.style[p]=i[p]}),M_(zt),zt.value=t;var s=F_(zt,e);zt.value=t,s=F_(zt,e),zt.value="x";var u=zt.scrollHeight-a,c=u*r;o==="border-box"&&(c=c+a+l),s=Math.max(c,s);var d=u*n;return o==="border-box"&&(d=d+a+l),s=Math.min(d,s),[s,u]}var B_=function(){},zee=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},Hee=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],Uee=!!document.documentElement.currentStyle,jee=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=zee(Hee,t),n=r.boxSizing;if(n==="")return null;Uee&&n==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var a=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),l=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:a,borderSize:l}},Kee=jee;function J1(e,t,r){var n=Bee(r);g.useLayoutEffect(function(){var a=function(l){return n.current(l)};if(e)return e.addEventListener(t,a),function(){return e.removeEventListener(t,a)}},[])}var Gee=function(e,t){J1(document.body,"reset",function(r){e.current.form===r.target&&t(r)})},Vee=function(e){J1(window,"resize",e)},Yee=function(e){J1(document.fonts,"loadingdone",e)},qee=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],Wee=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,a=e.minRows,l=e.onChange,i=l===void 0?B_:l,o=e.onHeightChange,s=o===void 0?B_:o,u=LF(e,qee),c=u.value!==void 0,d=g.useRef(null),f=Pee(d,t),p=g.useRef(0),b=g.useRef(),v=function(){var h=d.current,y=r&&b.current?b.current:Kee(h);if(y){b.current=y;var E=kee(y,h.value||h.placeholder||"x",a,n),x=E[0],T=E[1];p.current!==x&&(p.current=x,h.style.setProperty("height",x+"px","important"),s(x,{rowHeight:T}))}},S=function(h){c||v(),i(h)};return g.useLayoutEffect(v),Gee(d,function(){if(!c){var h=d.current.value;requestAnimationFrame(function(){var y=d.current;y&&h!==y.value&&v()})}}),Vee(v),Yee(v),g.createElement("textarea",At({},u,{onChange:S,ref:f}))},Xee=g.forwardRef(Wee),Zee=Object.assign(F(g.forwardRef(function({size:e,valid:t,align:r,...n},a){return m.createElement(Xee,{...n,ref:a})}))(Q1,Z1,wR,AR,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),Zl=Object.assign(F.form({boxSizing:"border-box",width:"100%"}),{Field:Tee,Input:Dee,Select:Mee,Textarea:Zee,Button:je,Checkbox:$ee,Radio:Nee}),Qee=F.div(({hasCloseButton:e,padding:t})=>({display:"inline-block",position:"relative",minHeight:e?36:void 0,zIndex:2147483647,colorScheme:"light dark",padding:t}),({theme:e,hasChrome:t})=>t?{filter:`
|
|
729
729
|
drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
|
|
730
730
|
drop-shadow(0 1px 3px rgba(0,0,0,0.1))
|
|
731
|
-
`,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t==="default"&&{background:e.base==="light"?Ob(e.background.app):e.background.app,color:e.color.defaultText},({theme:e,bgColor:t})=>t==="inverse"&&{background:e.base==="light"?e.color.darkest:e.color.lightest,color:e.color.inverseText},({theme:e,bgColor:t})=>(t==="positive"||t==="negative"||t==="warning")&&{background:e.background[t],color:e.color[`${t}Text`]}),Jee=F(je)({position:"absolute",top:4,right:4}),Uu=g.forwardRef(({children:e,color:t="default",hasChrome:r=!0,hideLabel:n="Close",onHide:a,padding:l=8,...i},o)=>m.createElement(Qee,{bgColor:t,hasChrome:r,hasCloseButton:!!a,padding:l,ref:o,...i},e,a&&m.createElement(Jee,{ariaLabel:n,onClick:a,padding:"small",variant:"ghost",size:"small"},m.createElement(jF,null))));Uu.displayName="Popover";var OR=({id:e,title:t,description:r,icon:n,aside:a,children:l,isSelected:i,isActive:o,onClick:s,onFocus:u,onKeyDown:c,shouldLookDisabled:d=!1,...f})=>m.createElement(bd.Item,{...f,id:e,role:"option",tabIndex:o?0:-1,"aria-selected":i,"aria-disabled":d?!0:void 0,onClick:s,onFocus:u,onKeyDown:c},l??m.createElement(m.Fragment,null,n&&m.createElement(bd.Icon,null,n),m.createElement(bd.Text,null,m.createElement("p",null,t),r&&m.createElement("small",null,r)),a));OR.displayName="SelectOption";var Bc=5,DR=Symbol.for("undefined");function ete(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"}function uy(e){return{...e,type:"option",value:vd(e.value)}}function zg(e){return"type"in e&&e.type==="reset"?e:uy(e)}function rs(e){if(e!==DR)return e}function vd(e){return e===void 0?DR:e}var tte=F("ul")({minWidth:180,height:"100%",borderRadius:6,overflow:"hidden auto",listStyle:"none",margin:0,padding:4});function P_(e,{value:t}){return`${e}-opt-${String(t)??"sb-reset"}`}var rte=F.span(({theme:e})=>({appearance:"none",color:e.textMutedColor,fontSize:12}));function I_(e,t){return t===void 0?[]:ete(t)?e.filter(r=>r.value===t).map(uy):e.filter(r=>t.some(n=>r.value===n)).map(uy)}var nte=F(je)(({$isOpen:e,$hasSelection:t,theme:r})=>e||t?{boxShadow:"none",background:aa(.93,r.barSelectedColor),color:r.base==="light"?Lt(.1,r.color.secondary):r.color.secondary}:{}),ate=F.div({position:"fixed",inset:0,zIndex:1e3}),lte=({children:e,handleClose:t,triggerRef:r})=>{let n=m.useRef(null);K3({ref:n,onInteractOutside:t}),g.useEffect(()=>{if(n.current)return Mp([n.current],{shouldUseInert:!0})},[]);let{overlayProps:a}=V1({targetRef:r,overlayRef:n,placement:"bottom start",offset:8,maxHeight:504,isOpen:!0}),{overlayProps:l,underlayProps:i}=q1({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},n),o=ap();return a.style={...a.style,overflow:"hidden auto",scrollbarColor:`${o.barTextColor} transparent`,scrollbarWidth:"thin"},m.createElement($f,{disableFocusManagement:!0,...l},m.createElement(ate,{...i}),m.createElement(Uu,{hasChrome:!0,ref:n,padding:0,...a},e))},RR=g.forwardRef(({children:e,icon:t,disabled:r=!1,options:n,defaultOptions:a,multiSelect:l=!1,onReset:i,padding:o="small",resetLabel:s,onSelect:u,onDeselect:c,onChange:d,tooltip:f,ariaLabel:p,showSelectedOptionTitle:b=!0,...v},S)=>{var G;let[h,y]=g.useState(v.defaultOpen||!1),[E,x]=g.useState(!1),T=an(S),_=g.useMemo(()=>"select-"+Math.random().toString(36).substring(2,15),[]),C=`${_}-listbox`,O=g.useRef(null),D=zu({isOpen:h&&!r,onOpenChange:y}),L=g.useCallback(()=>{y(!1),x(!0)},[]);g.useEffect(()=>{var H;!D.isOpen&&E&&((H=T.current)==null||H.focus(),x(!1))},[D.isOpen,E,T]);let[w,I]=g.useState(I_(n,a)),k=g.useCallback(H=>{H.type==="reset"?(d==null||d([]),i==null||i(),I([])):I(l?V=>{let q=[];return V!=null&&V.some(ee=>ee.value===H.value)?(c==null||c(rs(H.value)),q=(V==null?void 0:V.filter(ee=>ee.value!==H.value))??[]):(u==null||u(rs(H.value)),q=[...V??[],H]),d==null||d(q.map(ee=>rs(ee.value))),q}:V=>V.every(q=>q.value!==H.value)?(u==null||u(rs(H.value)),d==null||d([rs(H.value)]),[H]):V)},[l,d,u,c,i]),M=g.useMemo(()=>i?{type:"reset",value:void 0,title:s??"Reset selection",icon:m.createElement(QF,null),description:void 0,children:void 0}:void 0,[i,s]),B=g.useMemo(()=>M?[M,...n]:n,[n,M]);g.useEffect(()=>{a&&I(I_(n,a))},[a,n]);let[$,A]=g.useState(void 0),R=g.useCallback((H,V=!0)=>{A(zg(H)),!l&&V&&k(zg(H))},[l,k]),P=g.useCallback((H=1)=>{if(!h||!$){R(B[H===1?0:Math.min(H,B.length-1)]);return}let V=B.findIndex(W=>$.type==="reset"?"type"in W&&W.type==="reset":vd(W.value)===$.value),q=V+H,ee;q>=B.length&&V===B.length-1?ee=B[0]:ee=B[Math.min(B.length-1,q)],R(ee)},[h,$,R,B]),N=g.useCallback((H=1)=>{if(!h||!$){R(B[Math.max(0,B.length-H)]);return}let V=B.findIndex(W=>$.type==="reset"?"type"in W&&W.type==="reset":vd(W.value)===$.value),q=V-H,ee;q<0&&V===0?ee=B[B.length-1]:ee=B[Math.max(0,q)],R(ee)},[h,$,R,B]),z=g.useCallback(H=>{let V=J=>{H.preventDefault(),R(B[J]),y(!0)},q=B.findIndex(J=>w.some(Y=>Y.value===vd(J.value))),ee=q!==-1,W=M&&!ee?1:0,ke=B.length-1;H.key==="Enter"||H.key===" "?V(ee?Math.min(q,ke):W):H.key==="ArrowDown"?V(ee?Math.min(q+1,ke):W):H.key==="ArrowUp"?V(ee?Math.max(q-1,W):ke):H.key==="Home"?V(W):H.key==="End"?V(ke):H.key==="PageDown"?V(Math.min((ee?q:W)+Bc,ke)):H.key==="PageUp"&&V(Math.max(0,(ee?q:ke)-Bc))},[B,M,R,w]),U=g.useCallback(H=>{H.key!=="Tab"?H.preventDefault():L(),H.key==="Escape"?L():H.key==="ArrowDown"?P():H.key==="ArrowUp"?N():H.key==="Home"?R(B[0]):H.key==="End"?R(B[B.length-1]):H.key==="PageDown"?P(Bc):H.key==="PageUp"&&N(Bc)},[L,P,N,B,R]);g.useEffect(()=>{var H;if(h&&$){let V=document.getElementById(P_(_,$));V&&(V.scrollIntoView({block:"nearest"}),V.focus())}else h&&((H=O.current)==null||H.focus())},[h,$,_]);let K=g.useMemo(()=>w.length===1?`${p} ${w[0].title}`:w.length?`${p}, ${w.length} values selected`:p,[p,w]);return m.createElement(m.Fragment,null,m.createElement(nte,{...v,variant:"ghost",ariaLabel:K,tooltip:f??p,disableAllTooltips:h,id:_,ref:T,padding:o,$isOpen:h,$hasSelection:!!w.length,"aria-disabled":r,disabled:r,onClick:()=>{h?L():y(!0)},tabIndex:h?-1:0,onKeyDown:z,role:"button","aria-controls":h?C:void 0,"aria-expanded":h,"aria-haspopup":"listbox"},!l&&m.createElement(m.Fragment,null,t,b&&((G=w[0])==null?void 0:G.title)||e),l&&m.createElement(m.Fragment,null,t,e,!!w.length&&m.createElement(rte,{"aria-label":`${w.length} ${w.length>1?"items":"item"} selected`},w==null?void 0:w.length))),D.isOpen&&m.createElement(lte,{handleClose:L,triggerRef:T},m.createElement(tte,{"aria-label":p,role:"listbox",id:C,ref:O,"aria-multiselectable":l,onKeyDown:U,tabIndex:h?0:-1},B.map(H=>({option:zg(H),externalOption:H})).map(({externalOption:H,option:V})=>{let q=(w==null?void 0:w.some(W=>W.value===V.value))&&V!==M,ee=V===M;return m.createElement(OR,{key:V.value===void 0?"sb-reset":String(V.value),title:V.title,description:V.description,aside:V.aside,icon:!ee&&l?m.createElement(Zl.Checkbox,{checked:q,hidden:!0,role:"presentation"}):V.icon,id:P_(_,V),isActive:h&&($==null?void 0:$.value)===V.value,isSelected:q,onClick:()=>{k(V),l||L()},onFocus:()=>R(H,!1),shouldLookDisabled:ee&&w.length===0&&l,onKeyDown:W=>{W.key==="Enter"||W.key===" "?(W.preventDefault(),k(V),l||L()):W.key==="Tab"&&(l||k(V),L())}},V.children)}))))});RR.displayName="Select";const{deprecate:ite}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Ql=class{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,r){let n=this.clone();return t.addDescendants(n,e),n}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},NR=class extends Ql{filter(e,t,r){let[n,a]=BR(e,t,this.firstChildKey,r),l=this.clone();return l.firstChildKey=n,l.lastChildKey=a,l}},LR=class extends Ql{};LR.type="header";var ote=class extends Ql{};ote.type="loader";var MR=class extends NR{filter(e,t,r){if(r(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};MR.type="item";var FR=class extends NR{filter(e,t,r){let n=super.filter(e,t,r);if(n&&n.lastChildKey!==null){let a=e.getItem(n.lastChildKey);if(a&&a.type!=="header")return n}return null}};FR.type="section";var ste=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let r=t.get(e),n=(r==null?void 0:r.firstChildKey)!=null?t.get(r.firstChildKey):null;for(;n;)yield n,n=n.nextKey!=null?t.get(n.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!=="item"&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!=="item"&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var t;return(t=e==null?void 0:e.key)!==null&&t!==void 0?t:null}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let r=t.getChildren(e.key);for(let n of r)this.addDescendants(n,t)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let t=this.keyMap.get(e);t!=null&&t.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!r}filter(e){let t=new this.constructor,[r,n]=BR(this,t,this.firstKey,e);return t==null||t.commit(r,n),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function BR(e,t,r,n){if(r==null)return[null,null];let a=null,l=null,i=e.getItem(r);for(;i!=null;){let u=i.filter(e,t,n);u!=null&&(u.nextKey=null,l&&(u.prevKey=l.key,l.nextKey=u.key),a==null&&(a=u),t.addNode(u),l=u),i=i.nextKey?e.getItem(i.nextKey):null}if(l&&l.type==="separator"){let u=l.prevKey;t.removeNode(l.key),u?(l=t.getItem(u),l.nextKey=null):l=null}var o,s;return[(o=a==null?void 0:a.key)!==null&&o!==void 0?o:null,(s=l==null?void 0:l.key)!==null&&s!==void 0?s:null]}var PR=class{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}},Hg=class cy extends PR{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof cy?this.parentNode.level+(((t=this.node)===null||t===void 0?void 0:t.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,r,n,a,l,i,o,s;let u=this.nextVisibleSibling,c=this.getMutableNode();if(c!=null){c.index=this.index,c.level=this.level;var d;c.parentKey=this.parentNode instanceof cy&&(d=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&d!==void 0?d:null;var f;c.prevKey=(f=(n=this.previousVisibleSibling)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&f!==void 0?f:null;var p;c.nextKey=(p=u==null||(a=u.node)===null||a===void 0?void 0:a.key)!==null&&p!==void 0?p:null,c.hasChildNodes=!!this.firstChild;var b;c.firstChildKey=(b=(i=this.firstVisibleChild)===null||i===void 0||(l=i.node)===null||l===void 0?void 0:l.key)!==null&&b!==void 0?b:null;var v;if(c.lastChildKey=(v=(s=this.lastVisibleChild)===null||s===void 0||(o=s.node)===null||o===void 0?void 0:o.key)!==null&&v!==void 0?v:null,(c.colSpan!=null||c.colIndex!=null)&&u){var S,h;let y=((S=c.colIndex)!==null&&S!==void 0?S:c.index)+((h=c.colSpan)!==null&&h!==void 0?h:1);if(u.node!=null&&y!==u.node.colIndex){let E=u.getMutableNode();E.colIndex=y}}}}setProps(t,r,n,a,l){let i,{value:o,textValue:s,id:u,...c}=t;if(this.node==null?(i=new n(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=i):i=this.getMutableNode(),c.ref=r,i.props=c,i.rendered=a,i.render=l,i.value=o,i.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",u!=null&&u!==i.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(i.colSpan=c.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(r){let n=r==="none";if(t.isHidden!==n){var a,l;(((a=t.parentNode)===null||a===void 0?void 0:a.firstVisibleChild)===t||((l=t.parentNode)===null||l===void 0?void 0:l.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let i=t.previousVisibleSibling,o=t.nextVisibleSibling;i&&t.ownerDocument.markDirty(i),o&&t.ownerDocument.markDirty(o),t.isHidden=n,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}},ute=class extends PR{get isConnected(){return this.isMounted}createElement(e){return new Hg(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let r of e)this.addNode(r);t.addNode(e.node)}removeNode(e){if(e.node!=null){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key)}}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof Hg&&(!i.isConnected||i.isHidden)?this.removeNode(i):i.updateChildIndices();for(let i of this.dirtyNodes)i instanceof Hg&&(i.isConnected&&!i.isHidden&&(i.updateNode(),this.addNode(i)),i.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,r,n,a,l;this.nextCollection.commit((a=(t=this.firstVisibleChild)===null||t===void 0||(e=t.node)===null||e===void 0?void 0:e.key)!==null&&a!==void 0?a:null,(l=(n=this.lastVisibleChild)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&l!==void 0?l:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}};function IR(e){let{children:t,items:r,idScope:n,addIdAndValue:a,dependencies:l=[]}=e,i=g.useMemo(()=>new WeakMap,l);return g.useMemo(()=>{if(r&&typeof t=="function"){let u=[];for(let c of r){let d=i.get(c);if(!d){d=t(c);var o,s;let f=(s=(o=d.props.id)!==null&&o!==void 0?o:c.key)!==null&&s!==void 0?s:c.id;if(f==null)throw new Error("Could not determine key for item");n&&(f=n+":"+f),d=g.cloneElement(d,a?{key:f,id:f,value:c}:{key:f}),i.set(c,d)}u.push(d)}return u}else if(typeof t!="function")return t},[t,r,i,n,a])}if(typeof HTMLTemplateElement<"u"){let e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}var _f=g.createContext(!1);function cte(e){if(g.useContext(_f))return m.createElement(m.Fragment,null,e.children);let t=m.createElement(_f.Provider,{value:!0},e.children);return m.createElement("template",{"data-react-aria-hidden":!0},t)}function ev(e){let t=(r,n)=>g.useContext(_f)?null:e(r,n);return t.displayName=e.displayName||e.name,g.forwardRef(t)}function dte(){return g.useContext(_f)}var kR=g.createContext(!1),pu=g.createContext(null);function zR(e){if(g.useContext(pu))return e.content;let{collection:t,document:r}=gte(e.createCollection);return m.createElement(m.Fragment,null,m.createElement(cte,null,m.createElement(pu.Provider,{value:r},e.content)),m.createElement(fte,{render:e.children,collection:t}))}function fte({collection:e,render:t}){return t(e)}function pte(e,t,r){let n=Xl(),a=g.useRef(n);a.current=n;let l=g.useCallback(()=>a.current?r():t(),[t,r]);return RW.useSyncExternalStore(e,l)}var hte=typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore:pte;function gte(e){let[t]=g.useState(()=>new ute((e==null?void 0:e())||new ste)),r=g.useCallback(i=>t.subscribe(i),[t]),n=g.useCallback(()=>{let i=t.getCollection();return t.isSSR&&t.resetAfterSSR(),i},[t]),a=g.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),l=hte(r,n,a);return ve(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:l,document:t}}var dy=g.createContext(null);function mte(e){var t;return t=class extends Ql{},t.type=e,t}function HR(e,t,r,n,a,l){typeof e=="string"&&(e=mte(e));let i=g.useCallback(s=>{s==null||s.setProps(t,r,e,n,l)},[t,r,n,l,e]),o=g.useContext(dy);if(o){let s=o.ownerDocument.nodesByProps.get(t);return s||(s=o.ownerDocument.createElement(e.type),s.setProps(t,r,e,n,l),o.appendChild(s),o.ownerDocument.updateCollection(),o.ownerDocument.nodesByProps.set(t,s)),a?m.createElement(dy.Provider,{value:s},a):null}return m.createElement(e.type,{ref:i},a)}function Bp(e,t){let r=({node:a})=>t(a.props,a.props.ref,a),n=g.forwardRef((a,l)=>{let i=g.useContext(bf);if(!g.useContext(kR)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(a,l)}return HR(e,a,l,"children"in a?a.children:null,null,o=>m.createElement(bf.Provider,{value:i},m.createElement(r,{node:o})))});return n.displayName=t.name,n}function tv(e,t,r=UR){let n=({node:l})=>t(l.props,l.props.ref,l),a=g.forwardRef((l,i)=>{let o=r(l);var s;return(s=HR(e,l,i,null,o,u=>m.createElement(n,{node:u})))!==null&&s!==void 0?s:m.createElement(m.Fragment,null)});return a.displayName=t.name,a}function UR(e){return IR({...e,addIdAndValue:!0})}var k_=g.createContext(null);function jR(e){let t=g.useContext(k_),r=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies),n=e.idScope||(t==null?void 0:t.idScope),a=UR({...e,idScope:n,dependencies:r});return g.useContext(pu)&&(a=m.createElement(yte,null,a)),t=g.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),m.createElement(k_.Provider,{value:t},a)}function yte({children:e}){let t=g.useContext(pu),r=g.useMemo(()=>m.createElement(pu.Provider,{value:null},m.createElement(kR.Provider,{value:!0},e)),[e]);return Xl()?m.createElement(dy.Provider,{value:t},r):bo.createPortal(r,t)}var KR=g.createContext({});ev(function(e,t){[e,t]=Bt(e,t,KR);let{elementType:r="label",...n}=e;return m.createElement(r,{className:"react-aria-Label",...n,ref:t})});function bte(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":a,labelElementType:l="label"}=e;t=Ot(t);let i=Ot(),o={};r&&(n=n?`${i} ${n}`:i,o={id:i,htmlFor:l==="label"?t:void 0});let s=Op({id:t,"aria-label":a,"aria-labelledby":n});return{labelProps:o,fieldProps:s}}function vte(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:a,isIndeterminate:l,formatOptions:i={style:"percent"}}=e,o=Ve(e,{labelable:!0}),{labelProps:s,fieldProps:u}=bte({...e,labelElementType:"span"});t=su(t,r,n);let c=(t-r)/(n-r),d=UQ(i);if(!l&&!a){let f=i.style==="percent"?c:t;a=d.format(f)}return{progressBarProps:oe(o,{...u,"aria-valuenow":l?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":l?void 0:a,role:"progressbar"}),labelProps:s}}var GR=g.createContext(null);g.forwardRef(function(e,t){[e,t]=Bt(e,t,GR);let{value:r=0,minValue:n=0,maxValue:a=100,isIndeterminate:l=!1}=e;r=su(r,n,a);let[i,o]=G3(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:s,labelProps:u}=vte({...e,label:o}),c=l?void 0:(r-n)/(a-n)*100,d=Sr({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:c,valueText:s["aria-valuetext"],isIndeterminate:l}}),f=Ve(e,{global:!0});return m.createElement("div",{...oe(f,d,s),ref:t,slot:e.slot||void 0},m.createElement(KR.Provider,{value:{...u,ref:i,elementType:"span"}},d.children))});var sn=null;function z_(e,t="assertive",r=7e3){sn?sn.announce(e,t,r):(sn=new Ete,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?sn.announce(e,t,r):setTimeout(()=>{sn!=null&&sn.isAttached()&&(sn==null||sn.announce(e,t,r))},100))}var Ete=class{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",r=7e3){var n,a;if(!this.node)return;let l=document.createElement("div");typeof e=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",e["aria-labelledby"])):l.textContent=e,t==="assertive"?(n=this.assertiveLog)===null||n===void 0||n.appendChild(l):(a=this.politeLog)===null||a===void 0||a.appendChild(l),e!==""&&setTimeout(()=>{l.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}};function Ste(e,t){let{elementType:r="button",isDisabled:n,onPress:a,onPressStart:l,onPressEnd:i,onPressUp:o,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:f,target:p,rel:b,type:v="button"}=e,S;r==="button"?S={type:v,disabled:n,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:S={role:"button",href:r==="a"&&!n?f:void 0,target:r==="a"?p:void 0,type:r==="input"?v:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?b:void 0};let{pressProps:h,isPressed:y}=Iu({onPressStart:l,onPressEnd:i,onPressChange:s,onPress:a,onPressUp:o,onClick:d,isDisabled:n,preventFocusOnPress:u,ref:t}),{focusableProps:E}=ku(e,t);c&&(E.tabIndex=n?-1:E.tabIndex);let x=oe(E,h,Ve(e,{labelable:!0}));return{isPressed:y,buttonProps:oe(S,x,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}var VR=g.createContext({});ev(function(e,t){[e,t]=Bt(e,t,VR),e=xte(e);let r=e,{isPending:n}=r,{buttonProps:a,isPressed:l}=Ste(e,t),{focusProps:i,isFocused:o,isFocusVisible:s}=Lp(e),{hoverProps:u,isHovered:c}=Lo({...e,isDisabled:e.isDisabled||n}),d={isHovered:c,isPressed:(r.isPressed||l)&&!n,isFocused:o,isFocusVisible:s,isDisabled:e.isDisabled||!1,isPending:n??!1},f=Sr({...e,values:d,defaultClassName:"react-aria-Button"}),p=Ot(a.id),b=Ot(),v=a["aria-labelledby"];n&&(v?v=`${v} ${b}`:a["aria-label"]&&(v=`${p} ${b}`));let S=g.useRef(n);g.useEffect(()=>{let y={"aria-labelledby":v||p};(!S.current&&o&&n||S.current&&o&&!n)&&z_(y,"assertive"),S.current=n},[n,o,v,p]);let h=Ve(e,{global:!0});return delete h.onClick,m.createElement("button",{...oe(h,f,a,i,u),type:a.type==="submit"&&n?"button":a.type,id:p,ref:t,"aria-labelledby":v,slot:e.slot||void 0,"aria-disabled":n?"true":a["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":c||void 0,"data-focused":o||void 0,"data-pending":n||void 0,"data-focus-visible":s||void 0},m.createElement(GR.Provider,{value:{id:b}},f.children))});function xte(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}var rv=g.createContext(null),H_=g.createContext(null),$te=g.forwardRef(function(e,t){[e,t]=Bt(e,t,rv);let r=g.useContext(Ip),n=zu(e),a=e.isOpen!=null||e.defaultOpen!=null||!r?n:r,l=R3(t,a.isOpen)||e.isExiting||!1,i=dte(),{direction:o}=ua();if(i){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),m.createElement(m.Fragment,null,s)}return a&&!a.isOpen&&!l?null:m.createElement(_te,{...e,triggerRef:e.triggerRef,state:a,popoverRef:t,isExiting:l,dir:o})});function _te({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:n,...a}){let l=g.useRef(null),i=g.useRef(null),o=g.useContext(H_),s=o&&a.trigger==="SubmenuTrigger";var u;let{popoverProps:c,underlayProps:d,arrowProps:f,placement:p,triggerAnchorPoint:b}=bJ({...a,offset:(u=a.offset)!==null&&u!==void 0?u:8,arrowRef:l,groupRef:s?o:i},e),v=a.popoverRef,S=D3(v,!!p)||a.isEntering||!1,h=Sr({...a,defaultClassName:"react-aria-Popover",values:{trigger:a.trigger||null,placement:p,isEntering:S,isExiting:t}}),y=!a.isNonModal||a.trigger==="SubmenuTrigger",[E,x]=g.useState(!1);ve(()=>{v.current&&x(y&&!v.current.querySelector("[role=dialog]"))},[v,y]),g.useEffect(()=>{E&&a.trigger!=="SubmenuTrigger"&&v.current&&!v.current.contains(document.activeElement)&&Va(v.current)},[E,v,a.trigger]);let T=g.useMemo(()=>{let D=h.children;if(n)for(let L of n)D=m.createElement(L.Provider,{value:null},D);return D},[h.children,n]),_={...c.style,"--trigger-anchor-point":b?`${b.x}px ${b.y}px`:void 0,...h.style},C=m.createElement("div",{...oe(Ve(a,{global:!0}),c),...h,role:E?"dialog":void 0,tabIndex:E?-1:void 0,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"],ref:v,slot:a.slot||void 0,style:_,dir:a.dir,"data-trigger":a.trigger,"data-placement":p,"data-entering":S||void 0,"data-exiting":t||void 0},!a.isNonModal&&m.createElement(__,{onDismiss:e.close}),m.createElement(K1.Provider,{value:{...f,placement:p,ref:l}},T),m.createElement(__,{onDismiss:e.close}));if(!s)return m.createElement($f,{...a,shouldContainFocus:E,isExiting:t,portalContainer:r},!a.isNonModal&&e.isOpen&&m.createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),m.createElement("div",{ref:i,style:{display:"contents"}},m.createElement(H_.Provider,{value:i},C)));var O;return m.createElement($f,{...a,shouldContainFocus:E,isExiting:t,portalContainer:(O=r??(o==null?void 0:o.current))!==null&&O!==void 0?O:void 0},C)}var YR=g.createContext(null);tv("section",(e,t,r)=>{let{name:n,render:a}=g.useContext(YR);return a(e,t,r,"react-aria-Section")});var qR={CollectionRoot({collection:e,renderDropIndicator:t}){return U_(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return U_(e,t,r)}};function U_(e,t,r){return IR({items:t?e.getChildren(t.key):e,dependencies:[r],children(n){let a=n.render(n);return!r||n.type!=="item"?a:m.createElement(m.Fragment,null,r({type:"item",key:n.key,dropPosition:"before"}),a,Cte(e,n,r))}})}function Cte(e,t,r){let n=t.key,a=e.getKeyAfter(n),l=a!=null?e.getItem(a):null;for(;l!=null&&l.type!=="item";)a=e.getKeyAfter(l.key),l=a!=null?e.getItem(a):null;let i=t.nextKey!=null?e.getItem(t.nextKey):null;for(;i!=null&&i.type!=="item";)i=i.nextKey!=null?e.getItem(i.nextKey):null;let o=[];if(i==null){let s=t;for(;s&&(!l||s.parentKey!==l.parentKey&&l.level<s.level);){let u=r({type:"item",key:s.key,dropPosition:"after"});g.isValidElement(u)&&o.push(g.cloneElement(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return o}var ju=g.createContext(qR);function WR(e){return g.useMemo(()=>e!=null?new Set([e]):null,[e])}var j_=g.createContext(null),Tte=g.createContext(null),XR=g.createContext({});Bp(LR,function(e,t){return[e,t]=Bt(e,t,XR),m.createElement("header",{className:"react-aria-Header",...e,ref:t},e.children)});var ZR=g.createContext({});g.forwardRef(function(e,t){return[e,t]=Bt(e,t,ZR),m.createElement("kbd",{dir:"ltr",...e,ref:t})});function wte(e){let t=Ve(e,{labelable:!0}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}var QR=g.createContext({}),JR=class extends Ql{filter(e,t){let r=t.getItem(this.prevKey);if(r&&r.type!=="separator"){let n=this.clone();return t.addDescendants(n,e),n}return null}};JR.type="separator";Bp(JR,function(e,t){[e,t]=Bt(e,t,QR);let{elementType:r,orientation:n,style:a,className:l,slot:i,...o}=e,s=r||"hr";s==="hr"&&n==="vertical"&&(s="div");let{separatorProps:u}=wte({...o,elementType:r,orientation:n}),c=Ve(e,{global:!0});return m.createElement(s,{...oe(c,u),style:a,className:l??"react-aria-Separator",ref:t,slot:i||void 0})});var e4=new WeakMap;function fy(e){return AX()?e.altKey:e.ctrlKey}function Ed(e,t){var r,n;let a=`[data-key="${CSS.escape(String(t))}"]`,l=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return l&&(a=`[data-collection="${CSS.escape(l)}"]${a}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(a)}var t4=new WeakMap;function Ate(e){let t=Ot();return t4.set(e,t),t}function Ote(e){return t4.get(e)}var Dte=1e3;function Rte(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,a=g.useRef({search:"",timeout:void 0}).current,l=i=>{let o=Nte(i.key);if(!(!o||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target)||a.search.length===0&&o===" ")){if(o===" "&&a.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.stopPropagation()),a.search+=o,t.getKeyForSearch!=null){let s=t.getKeyForSearch(a.search,r.focusedKey);s==null&&(s=t.getKeyForSearch(a.search)),s!=null&&(r.setFocusedKey(s),n&&n(s))}clearTimeout(a.timeout),a.timeout=setTimeout(()=>{a.search=""},Dte)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?l:void 0}}}function Nte(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function r4(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:a=!1,shouldFocusWrap:l=!1,disallowEmptySelection:i=!1,disallowSelectAll:o=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:b=n,linkBehavior:v="action"}=e,{direction:S}=ua(),h=wp(),y=A=>{var R;if(A.altKey&&A.key==="Tab"&&A.preventDefault(),!(!((R=n.current)===null||R===void 0)&&R.contains(A.target)))return;let P=(Y,X)=>{if(Y!=null){if(t.isLink(Y)&&v==="selection"&&u&&!fy(A)){bo.flushSync(()=>{t.setFocusedKey(Y,X)});let le=Ed(n,Y),ye=t.getItemProps(Y);le&&h.open(le,A,ye.href,ye.routerOptions);return}if(t.setFocusedKey(Y,X),t.isLink(Y)&&v==="override")return;A.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&!fy(A)&&t.replaceSelection(Y)}};switch(A.key){case"ArrowDown":if(r.getKeyBelow){var N,z,U;let Y=t.focusedKey!=null?(N=r.getKeyBelow)===null||N===void 0?void 0:N.call(r,t.focusedKey):(z=r.getFirstKey)===null||z===void 0?void 0:z.call(r);Y==null&&l&&(Y=(U=r.getFirstKey)===null||U===void 0?void 0:U.call(r,t.focusedKey)),Y!=null&&(A.preventDefault(),P(Y))}break;case"ArrowUp":if(r.getKeyAbove){var K,G,H;let Y=t.focusedKey!=null?(K=r.getKeyAbove)===null||K===void 0?void 0:K.call(r,t.focusedKey):(G=r.getLastKey)===null||G===void 0?void 0:G.call(r);Y==null&&l&&(Y=(H=r.getLastKey)===null||H===void 0?void 0:H.call(r,t.focusedKey)),Y!=null&&(A.preventDefault(),P(Y))}break;case"ArrowLeft":if(r.getKeyLeftOf){var V,q,ee;let Y=t.focusedKey!=null?(V=r.getKeyLeftOf)===null||V===void 0?void 0:V.call(r,t.focusedKey):null;Y==null&&l&&(Y=S==="rtl"?(q=r.getFirstKey)===null||q===void 0?void 0:q.call(r,t.focusedKey):(ee=r.getLastKey)===null||ee===void 0?void 0:ee.call(r,t.focusedKey)),Y!=null&&(A.preventDefault(),P(Y,S==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var W,ke,J;let Y=t.focusedKey!=null?(W=r.getKeyRightOf)===null||W===void 0?void 0:W.call(r,t.focusedKey):null;Y==null&&l&&(Y=S==="rtl"?(ke=r.getLastKey)===null||ke===void 0?void 0:ke.call(r,t.focusedKey):(J=r.getFirstKey)===null||J===void 0?void 0:J.call(r,t.focusedKey)),Y!=null&&(A.preventDefault(),P(Y,S==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&A.shiftKey)return;A.preventDefault();let Y=r.getFirstKey(t.focusedKey,di(A));t.setFocusedKey(Y),Y!=null&&(di(A)&&A.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&t.replaceSelection(Y))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&A.shiftKey)return;A.preventDefault();let Y=r.getLastKey(t.focusedKey,di(A));t.setFocusedKey(Y),Y!=null&&(di(A)&&A.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&t.replaceSelection(Y))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let Y=r.getKeyPageBelow(t.focusedKey);Y!=null&&(A.preventDefault(),P(Y))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let Y=r.getKeyPageAbove(t.focusedKey);Y!=null&&(A.preventDefault(),P(Y))}break;case"a":di(A)&&t.selectionMode==="multiple"&&o!==!0&&(A.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!i&&t.selectedKeys.size!==0&&(A.stopPropagation(),A.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(A.shiftKey)n.current.focus();else{let Y=er(n.current,{tabbable:!0}),X,le;do le=Y.lastChild(),le&&(X=le);while(le);X&&!X.contains(document.activeElement)&&Qt(X)}break}}},E=g.useRef({top:0,left:0});hs(b,"scroll",p?void 0:()=>{var A,R,P,N;E.current={top:(P=(A=b.current)===null||A===void 0?void 0:A.scrollTop)!==null&&P!==void 0?P:0,left:(N=(R=b.current)===null||R===void 0?void 0:R.scrollLeft)!==null&&N!==void 0?N:0}});let x=A=>{if(t.isFocused){A.currentTarget.contains(A.target)||t.setFocused(!1);return}if(A.currentTarget.contains(A.target)){if(t.setFocused(!0),t.focusedKey==null){var R,P;let U=G=>{G!=null&&(t.setFocusedKey(G),u&&!t.isSelected(G)&&t.replaceSelection(G))},K=A.relatedTarget;var N,z;K&&A.currentTarget.compareDocumentPosition(K)&Node.DOCUMENT_POSITION_FOLLOWING?U((N=t.lastSelectedKey)!==null&&N!==void 0?N:(R=r.getLastKey)===null||R===void 0?void 0:R.call(r)):U((z=t.firstSelectedKey)!==null&&z!==void 0?z:(P=r.getFirstKey)===null||P===void 0?void 0:P.call(r))}else!p&&b.current&&(b.current.scrollTop=E.current.top,b.current.scrollLeft=E.current.left);if(t.focusedKey!=null&&b.current){let U=Ed(n,t.focusedKey);U instanceof HTMLElement&&(!U.contains(document.activeElement)&&!d&&Qt(U),fu()==="keyboard"&&j$(U,{containingElement:n.current}))}}},T=A=>{A.currentTarget.contains(A.relatedTarget)||t.setFocused(!1)},_=g.useRef(!1);hs(n,KX,d?A=>{let{detail:R}=A;A.stopPropagation(),t.setFocused(!0),(R==null?void 0:R.focusStrategy)==="first"&&(_.current=!0)}:void 0);let C=xt(()=>{var A,R;let P=(R=(A=r.getFirstKey)===null||A===void 0?void 0:A.call(r))!==null&&R!==void 0?R:null;if(P==null){let N=bt();yD(n.current),bD(N,null),t.collection.size>0&&(_.current=!1)}else t.setFocusedKey(P),_.current=!1});H$(()=>{_.current&&C()},[t.collection,C]);let O=xt(()=>{t.collection.size>0&&(_.current=!1)});H$(()=>{O()},[t.focusedKey,O]),hs(n,jX,d?A=>{var R;A.stopPropagation(),t.setFocused(!1),!((R=A.detail)===null||R===void 0)&&R.clearFocusKey&&t.setFocusedKey(null)}:void 0);let D=g.useRef(a),L=g.useRef(!1);g.useEffect(()=>{if(D.current){var A,R;let z=null;var P;a==="first"&&(z=(P=(A=r.getFirstKey)===null||A===void 0?void 0:A.call(r))!==null&&P!==void 0?P:null);var N;a==="last"&&(z=(N=(R=r.getLastKey)===null||R===void 0?void 0:R.call(r))!==null&&N!==void 0?N:null);let U=t.selectedKeys;if(U.size){for(let K of U)if(t.canSelectItem(K)){z=K;break}}t.setFocused(!0),t.setFocusedKey(z),z==null&&!d&&n.current&&Va(n.current),t.collection.size>0&&(D.current=!1,L.current=!0)}});let w=g.useRef(t.focusedKey),I=g.useRef(null);g.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==w.current||L.current)&&b.current&&n.current){let A=fu(),R=Ed(n,t.focusedKey);if(!(R instanceof HTMLElement))return;(A==="keyboard"||L.current)&&(I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{b.current&&(A3(b.current,R),A!=="virtual"&&j$(R,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&w.current!=null&&n.current&&Va(n.current),w.current=t.focusedKey,L.current=!1}),g.useEffect(()=>()=>{I.current&&cancelAnimationFrame(I.current)},[]),hs(n,"react-aria-focus-scope-restore",A=>{A.preventDefault(),t.setFocused(!0)});let k={onKeyDown:y,onFocus:x,onBlur:T,onMouseDown(A){b.current===A.target&&A.preventDefault()}},{typeSelectProps:M}=Rte({keyboardDelegate:r,selectionManager:t});c||(k=oe(M,k));let B;d||(B=t.focusedKey==null?0:-1);let $=Ate(t.collection);return{collectionProps:oe(k,{tabIndex:B,"data-collection":$})}}function n4(e){let{id:t,selectionManager:r,key:n,ref:a,shouldSelectOnPressUp:l,shouldUseVirtualFocus:i,focus:o,isDisabled:s,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,f=wp();t=Ot(t);let p=N=>{if(N.pointerType==="keyboard"&&fy(N))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(d==="selection"&&a.current){let z=r.getItemProps(n);f.open(a.current,N,z.href,z.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(d==="override"||d==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):N&&N.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||N&&(di(N)||N.pointerType==="touch"||N.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};g.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(i?yD(a.current):o?o():document.activeElement!==a.current&&a.current&&Va(a.current))},[a,n,r.focusedKey,r.childFocusStrategy,r.isFocused,i]),s=s||r.isDisabled(n);let b={};!i&&!s?b={tabIndex:n===r.focusedKey?0:-1,onFocus(N){N.target===a.current&&r.setFocusedKey(n)}}:s&&(b.onMouseDown=N=>{N.preventDefault()});let v=r.isLink(n)&&d==="override",S=u&&e.UNSTABLE_itemBehavior==="action",h=r.isLink(n)&&d!=="selection"&&d!=="none",y=!s&&r.canSelectItem(n)&&!v&&!S,E=(u||h)&&!s,x=E&&(r.selectionBehavior==="replace"?!y:!y||r.isEmpty),T=E&&y&&r.selectionBehavior==="replace",_=x||T,C=g.useRef(null),O=_&&y,D=g.useRef(!1),L=g.useRef(!1),w=r.getItemProps(n),I=N=>{if(u){var z;u(),(z=a.current)===null||z===void 0||z.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}h&&a.current&&f.open(a.current,N,w.href,w.routerOptions)},k={ref:a};if(l?(k.onPressStart=N=>{C.current=N.pointerType,D.current=O,N.pointerType==="keyboard"&&(!_||G_())&&p(N)},c?(k.onPressUp=x?void 0:N=>{N.pointerType==="mouse"&&y&&p(N)},k.onPress=x?I:N=>{N.pointerType!=="keyboard"&&N.pointerType!=="mouse"&&y&&p(N)}):k.onPress=N=>{if(x||T&&N.pointerType!=="mouse"){if(N.pointerType==="keyboard"&&!K_())return;I(N)}else N.pointerType!=="keyboard"&&y&&p(N)}):(k.onPressStart=N=>{C.current=N.pointerType,D.current=O,L.current=x,y&&(N.pointerType==="mouse"&&!x||N.pointerType==="keyboard"&&(!E||G_()))&&p(N)},k.onPress=N=>{(N.pointerType==="touch"||N.pointerType==="pen"||N.pointerType==="virtual"||N.pointerType==="keyboard"&&_&&K_()||N.pointerType==="mouse"&&L.current)&&(_?I(N):y&&p(N))}),b["data-collection"]=Ote(r.collection),b["data-key"]=n,k.preventFocusOnPress=i,i&&(k=oe(k,{onPressStart(N){N.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(N){N.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),w)for(let N of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])w[N]&&(k[N]=Pu(k[N],w[N]));let{pressProps:M,isPressed:B}=Iu(k),$=T?N=>{C.current==="mouse"&&(N.stopPropagation(),N.preventDefault(),I(N))}:void 0,{longPressProps:A}=_Z({isDisabled:!O,onLongPress(N){N.pointerType==="touch"&&(p(N),r.setSelectionBehavior("toggle"))}}),R=N=>{C.current==="touch"&&D.current&&N.preventDefault()},P=d!=="none"&&r.isLink(n)?N=>{Il.isOpening||N.preventDefault()}:void 0;return{itemProps:oe(b,y||x||i&&!s?M:{},O?A:{},{onDoubleClick:$,onDragStartCapture:R,onClick:P,id:t},i?{onMouseDown:N=>N.preventDefault()}:void 0),isPressed:B,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:s,allowsSelection:y,hasAction:_}}function K_(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function G_(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}var V_=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let r=e!=null?Ed(this.ref,e):null;if(!r)return null;let n=t.getBoundingClientRect(),a=r.getBoundingClientRect();return{x:a.left-n.left-t.clientLeft+t.scrollLeft,y:a.top-n.top-t.clientTop+t.scrollTop,width:a.width,height:a.height}}getContentSize(){let e=this.ref.current;var t,r;return{width:(t=e==null?void 0:e.scrollWidth)!==null&&t!==void 0?t:0,height:(r=e==null?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var t,r,n,a;return{x:(t=e==null?void 0:e.scrollLeft)!==null&&t!==void 0?t:0,y:(r=e==null?void 0:e.scrollTop)!==null&&r!==void 0?r:0,width:(n=e==null?void 0:e.clientWidth)!==null&&n!==void 0?n:0,height:(a=e==null?void 0:e.clientHeight)!==null&&a!==void 0?a:0}}constructor(e){this.ref=e}},Lte=class{isDisabled(e){var t;return this.disabledBehavior==="all"&&(((t=e.props)===null||t===void 0?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let r=e;for(;r!=null;){let n=this.collection.getItem(r);if((n==null?void 0:n.type)==="item"&&!this.isDisabled(n))return r;r=t(r)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}findKey(e,t,r){let n=e,a=this.layoutDelegate.getItemRect(n);if(!a||n==null)return null;let l=a;do{if(n=t(n),n==null)break;a=this.layoutDelegate.getItemRect(n)}while(a&&r(l,a)&&n!=null);return n}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getNextKey(t),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getPreviousKey(t),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let t=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyAfter(t))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyBefore(t))}getKeyPageAbove(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!so(t))return this.getFirstKey();let n=e;if(this.orientation==="horizontal"){let a=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>a&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let a=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>a&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!so(t))return this.getLastKey();let n=e;if(this.orientation==="horizontal"){let a=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<a&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let a=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<a&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let r=this.collection,n=t||this.getFirstKey();for(;n!=null;){let a=r.getItem(n);if(!a)return null;let l=a.textValue.slice(0,e.length);if(a.textValue&&this.collator.compare(l,e)===0)return n;n=this.getNextKey(n)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new V_(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new V_(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function Mte(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:a,keyboardDelegate:l,layoutDelegate:i}=e,o=jQ({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,u=g.useMemo(()=>l||new Lte({collection:r,disabledKeys:n,disabledBehavior:s,ref:a,collator:o,layoutDelegate:i}),[l,i,r,n,a,o,s]),{collectionProps:c}=r4({...e,ref:a,selectionManager:t,keyboardDelegate:u});return{listProps:c}}function Fte(e,t,r){let{shouldFocusWrap:n=!0,onKeyDown:a,onKeyUp:l,...i}=e;!e["aria-label"]&&e["aria-labelledby"];let o=Ve(e,{labelable:!0}),{listProps:s}=Mte({...i,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return e4.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:oe(o,{onKeyDown:a,onKeyUp:l},{role:"menu",...s,onKeyDown:u=>{var c;(u.key!=="Escape"||e.shouldUseVirtualFocus)&&((c=s.onKeyDown)===null||c===void 0||c.call(s,u))}})}}function a4(e){return null}a4.getCollectionNode=function*(e,t){let{childItems:r,title:n,children:a}=e,l=e.title||e.children,i=e.textValue||(typeof l=="string"?l:"")||e["aria-label"]||"";!i&&(t!=null&&t.suppressTextValueWarning),yield{type:"item",props:e,rendered:l,textValue:i,"aria-label":e["aria-label"],hasChildNodes:Bte(e),*childNodes(){if(r)for(let o of r)yield{type:"item",value:o};else if(n){let o=[];m.Children.forEach(a,s=>{o.push({type:"item",element:s})}),yield*o}}}};function Bte(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&m.Children.count(e.children)>0)}var Pte=a4,Ite=class{build(e,t){return this.context=t,Y_(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:r}=e;if(m.isValidElement(t)&&t.type===m.Fragment)yield*this.iterateCollection({children:t.props.children,items:r});else if(typeof t=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let n=0;for(let a of r)yield*this.getFullNode({value:a,index:n},{renderer:t}),n++}else{let n=[];m.Children.forEach(t,l=>{l&&n.push(l)});let a=0;for(let l of n){let i=this.getFullNode({element:l,index:a},{});for(let o of i)a++,yield o}}}getKey(e,t,r,n){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return`${n}${t.key}`;let a=t.value;if(a!=null){var l;let i=(l=a.key)!==null&&l!==void 0?l:a.id;if(i==null)throw new Error("No key found for item");return i}return n?`${n}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,r,n){if(m.isValidElement(e.element)&&e.element.type===m.Fragment){let v=[];m.Children.forEach(e.element.props.children,h=>{v.push(h)});var a;let S=(a=e.index)!==null&&a!==void 0?a:0;for(let h of v)yield*this.getFullNode({element:h,index:S++},t,r,n);return}let l=e.element;if(!l&&e.value&&t&&t.renderer){let v=this.cache.get(e.value);if(v&&(!v.shouldInvalidate||!v.shouldInvalidate(this.context))){v.index=e.index,v.parentKey=n?n.key:null,yield v;return}l=t.renderer(e.value)}if(m.isValidElement(l)){let v=l.type;if(typeof v!="function"&&typeof v.getCollectionNode!="function"){let E=l.type;throw new Error(`Unknown element <${E}> in collection.`)}let S=v.getCollectionNode(l.props,this.context);var i;let h=(i=e.index)!==null&&i!==void 0?i:0,y=S.next();for(;!y.done&&y.value;){let E=y.value;e.index=h;var o;let x=(o=E.key)!==null&&o!==void 0?o:null;x==null&&(x=E.element?null:this.getKey(l,e,t,r));let T=[...this.getFullNode({...E,key:x,index:h,wrapper:kte(e.wrapper,E.wrapper)},this.getChildState(t,E),r?`${r}${l.key}`:l.key,n)];for(let _ of T){var s,u;_.value=(u=(s=E.value)!==null&&s!==void 0?s:e.value)!==null&&u!==void 0?u:null,_.value&&this.cache.set(_.value,_);var c;if(e.type&&_.type!==e.type)throw new Error(`Unsupported type <${Ug(_.type)}> in <${Ug((c=n==null?void 0:n.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${Ug(e.type)}> is supported.`);h++,yield _}y=S.next(T)}return}if(e.key==null||e.type==null)return;let d=this;var f,p;let b={type:e.type,props:e.props,key:e.key,parentKey:n?n.key:null,value:(f=e.value)!==null&&f!==void 0?f:null,level:n?n.level+1:0,index:e.index,rendered:e.rendered,textValue:(p=e.textValue)!==null&&p!==void 0?p:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Y_(function*(){if(!e.hasChildNodes||!e.childNodes)return;let v=0;for(let S of e.childNodes()){S.key!=null&&(S.key=`${b.key}${S.key}`);let h=d.getFullNode({...S,index:v},d.getChildState(t,S),b.key,b);for(let y of h)v++,yield y}})};yield b}constructor(){this.cache=new WeakMap}};function Y_(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function kte(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Ug(e){return e[0].toUpperCase()+e.slice(1)}function l4(e,t,r){let n=g.useMemo(()=>new Ite,[]),{children:a,items:l,collection:i}=e;return g.useMemo(()=>{if(i)return i;let o=n.build({children:a,items:l},r);return t(o)},[n,a,l,i,r,t])}function i4(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function zte(e){return Hte(e)}function Hte(e,t){for(let r of e)return r}function jg(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...q_(e,t),t],a=[...q_(e,r),r],l=n.slice(0,a.length).findIndex((i,o)=>i!==a[o]);return l!==-1?(t=n[l],r=a[l],t.index-r.index):n.findIndex(i=>i===r)>=0?1:(a.findIndex(i=>i===t)>=0,-1)}function q_(e,t){let r=[],n=t;for(;(n==null?void 0:n.parentKey)!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}var W_=new WeakMap;function Ute(e){let t=W_.get(e);if(t!=null)return t;let r=0,n=a=>{for(let l of a)l.type==="section"?n(i4(l,e)):l.type==="item"&&r++};return n(e),W_.set(e,r),r}function jte(e,t,r){let{id:n,key:a,closeOnSelect:l,isVirtualized:i,"aria-haspopup":o,onPressStart:s,onPressUp:u,onPress:c,onPressChange:d,onPressEnd:f,onClick:p,onHoverStart:b,onHoverChange:v,onHoverEnd:S,onKeyDown:h,onKeyUp:y,onFocus:E,onFocusChange:x,onBlur:T,selectionManager:_=t.selectionManager}=e,C=!!o,O=C&&e["aria-expanded"]==="true";var D;let L=(D=e.isDisabled)!==null&&D!==void 0?D:_.isDisabled(a);var w;let I=(w=e.isSelected)!==null&&w!==void 0?w:_.isSelected(a),k=e4.get(t),M=t.collection.getItem(a),B=e.onClose||k.onClose,$=wp(),A=()=>{var Q;if(!C&&(!(M==null||(Q=M.props)===null||Q===void 0)&&Q.onAction?M.props.onAction():e.onAction&&e.onAction(a),k.onAction)){let kt=k.onAction;kt(a)}},R="menuitem";C||(_.selectionMode==="single"?R="menuitemradio":_.selectionMode==="multiple"&&(R="menuitemcheckbox"));let P=gd(),N=gd(),z=gd(),U={id:n,"aria-disabled":L||void 0,role:R,"aria-label":e["aria-label"],"aria-labelledby":P,"aria-describedby":[N,z].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":o,"aria-expanded":e["aria-expanded"]};_.selectionMode!=="none"&&!C&&(U["aria-checked"]=I),i&&(U["aria-posinset"]=M==null?void 0:M.index,U["aria-setsize"]=Ute(t.collection));let K=g.useRef(!1),G=Q=>{d==null||d(Q),K.current=Q},H=g.useRef(null),V=Q=>{Q.pointerType!=="keyboard"&&(H.current={pointerType:Q.pointerType}),Q.pointerType==="mouse"&&(K.current||Q.target.click()),u==null||u(Q)},q=Q=>{var kt,jr;p==null||p(Q),A(),MX(Q,$,M.props.href,M==null?void 0:M.props.routerOptions);let ir=((kt=H.current)===null||kt===void 0?void 0:kt.pointerType)==="keyboard"?((jr=H.current)===null||jr===void 0?void 0:jr.key)==="Enter"||_.selectionMode==="none"||_.isLink(a):_.selectionMode!=="multiple"||_.isLink(a);ir=l??ir,B&&!C&&ir&&B(),H.current=null},{itemProps:ee,isFocused:W}=n4({id:n,selectionManager:_,key:a,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:k.shouldUseVirtualFocus}),{pressProps:ke,isPressed:J}=Iu({onPressStart:s,onPress:c,onPressUp:V,onPressChange:G,onPressEnd:f,isDisabled:L}),{hoverProps:Y}=Lo({isDisabled:L,onHoverStart(Q){!du()&&!(O&&o)&&(_.setFocused(!0),_.setFocusedKey(a)),b==null||b(Q)},onHoverChange:v,onHoverEnd:S}),{keyboardProps:X}=j3({onKeyDown:Q=>{if(Q.repeat){Q.continuePropagation();return}switch(Q.key){case" ":H.current={pointerType:"keyboard",key:" "},Q.target.click();break;case"Enter":H.current={pointerType:"keyboard",key:"Enter"},Q.target.tagName!=="A"&&Q.target.click();break;default:C||Q.continuePropagation(),h==null||h(Q);break}},onKeyUp:y}),{focusProps:le}=H1({onBlur:T,onFocus:E,onFocusChange:x}),ye=Ve(M==null?void 0:M.props);delete ye.id;let It=C3(M==null?void 0:M.props);return{menuItemProps:{...U,...oe(ye,It,C?{onFocus:ee.onFocus,"data-collection":ee["data-collection"],"data-key":ee["data-key"]}:ee,ke,Y,X,le,k.shouldUseVirtualFocus||C?{onMouseDown:Q=>Q.preventDefault()}:void 0,L?void 0:{onClick:q}),tabIndex:ee.tabIndex!=null&&O&&!k.shouldUseVirtualFocus?-1:ee.tabIndex},labelProps:{id:P},descriptionProps:{id:N},keyboardShortcutProps:{id:z},isFocused:W,isFocusVisible:W&&_.isFocused&&du()&&!O,isSelected:I,isPressed:J,isDisabled:L}}function Kte(e){let{heading:t,"aria-label":r}=e,n=Ot();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}var Pc=2,Gte=50,Vte=1e3,X_=Math.PI/12;function Yte(e){let{menuRef:t,submenuRef:r,isOpen:n,isDisabled:a}=e,l=g.useRef(void 0),i=g.useRef(void 0),o=g.useRef(0),s=g.useRef(void 0),u=g.useRef(void 0),c=g.useRef(void 0),d=g.useRef(2),[f,p]=g.useState(!1);hf({ref:r,onResize:()=>{r.current&&(i.current=r.current.getBoundingClientRect(),c.current=void 0)}});let b=()=>{p(!1),d.current=Pc,l.current=void 0},v=dZ(),S=xt(h=>{f&&h.preventDefault()});g.useEffect(()=>{f&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,f]),g.useEffect(()=>{let h=r.current,y=t.current;if(a||!h||!n||v!=="pointer"||!y){b();return}i.current=h.getBoundingClientRect();let E=x=>{if(x.pointerType==="touch"||x.pointerType==="pen")return;let T=Date.now();if(T-o.current<Gte)return;clearTimeout(s.current),clearTimeout(u.current);let{clientX:_,clientY:C}=x;if(!l.current){l.current={x:_,y:C};return}if(!i.current)return;if(c.current||(c.current=_>i.current.right?"left":"right"),_<y.getBoundingClientRect().left||_>y.getBoundingClientRect().right||C<y.getBoundingClientRect().top||C>y.getBoundingClientRect().bottom){b();return}let O=l.current.x,D=l.current.y,L=c.current==="right"?i.current.left-O:O-i.current.right,w=Math.atan2(D-i.current.top,L)+X_,I=Math.atan2(D-i.current.bottom,L)-X_,k=Math.atan2(D-C,c.current==="left"?-(_-O):_-O),M=k<w&&k>I;d.current=M?Math.min(d.current+1,Pc):Math.max(d.current-1,0),d.current>=Pc?p(!0):p(!1),o.current=T,l.current={x:_,y:C},M&&(s.current=setTimeout(()=>{b(),u.current=setTimeout(()=>{let B=document.elementFromPoint(_,C);B&&y.contains(B)&&B.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},Vte))};return window.addEventListener("pointermove",E),window.addEventListener("pointerdown",S,!0),()=>{window.removeEventListener("pointermove",E),window.removeEventListener("pointerdown",S,!0),clearTimeout(s.current),clearTimeout(u.current),d.current=Pc}},[a,n,t,v,p,S,r])}function qte(e,t,r){let{parentMenuRef:n,submenuRef:a,type:l="menu",isDisabled:i,delay:o=200,shouldUseVirtualFocus:s}=e,u=Ot(),c=Ot(),{direction:d}=ua(),f=g.useRef(void 0),p=g.useCallback(()=>{f.current&&(clearTimeout(f.current),f.current=void 0)},[f]),b=xt(O=>{p(),t.open(O)}),v=xt(()=>{p(),t.close()});ve(()=>()=>{p()},[p]);let S=O=>{if(O.currentTarget.contains(document.activeElement))switch(O.key){case"ArrowLeft":d==="ltr"&&O.currentTarget.contains(O.target)&&(O.preventDefault(),O.stopPropagation(),v(),!s&&r.current&&Qt(r.current));break;case"ArrowRight":d==="rtl"&&O.currentTarget.contains(O.target)&&(O.preventDefault(),O.stopPropagation(),v(),!s&&r.current&&Qt(r.current));break;case"Escape":var D;!((D=a.current)===null||D===void 0)&&D.contains(O.target)&&(O.stopPropagation(),v(),!s&&r.current&&Qt(r.current));break}};var h;let y={id:c,"aria-labelledby":u,submenuLevel:t.submenuLevel,...l==="menu"&&{onClose:t.closeAll,autoFocus:(h=t.focusStrategy)!==null&&h!==void 0?h:void 0,onKeyDown:S}},E=O=>{switch(O.key){case"ArrowRight":i||(d==="ltr"?(O.preventDefault(),t.isOpen||b("first"),l==="menu"&&(a!=null&&a.current)&&document.activeElement===(r==null?void 0:r.current)&&Qt(a.current)):t.isOpen?v():O.continuePropagation());break;case"ArrowLeft":i||(d==="rtl"?(O.preventDefault(),t.isOpen||b("first"),l==="menu"&&(a!=null&&a.current)&&document.activeElement===(r==null?void 0:r.current)&&Qt(a.current)):t.isOpen?v():O.continuePropagation());break;default:O.continuePropagation();break}},x=O=>{!i&&(O.pointerType==="virtual"||O.pointerType==="keyboard")&&b("first")},T=O=>{!i&&(O.pointerType==="touch"||O.pointerType==="mouse")&&b()},_=O=>{i||(O&&!t.isOpen?f.current||(f.current=setTimeout(()=>{b()},o)):O||p())};hs(n,"focusin",O=>{var D;t.isOpen&&!((D=n.current)===null||D===void 0)&&D.contains(O.target)&&O.target!==r.current&&v()});let C=O=>O!==r.current;return Yte({menuRef:n,submenuRef:a,isOpen:t.isOpen,isDisabled:i}),{submenuTriggerProps:{id:u,"aria-controls":t.isOpen?c:void 0,"aria-haspopup":i?void 0:l,"aria-expanded":t.isOpen?"true":"false",onPressStart:x,onPress:T,onHoverChange:_,onKeyDown:E,isOpen:t.isOpen},submenuProps:y,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:C}}}function o4(e){let t=zu(e),[r,n]=g.useState(null),[a,l]=g.useState([]),i=()=>{l([]),t.close()};return{focusStrategy:r,...t,open(o=null){n(o),t.open()},toggle(o=null){n(o),t.toggle()},close(){i()},expandedKeysStack:a,openSubmenu:(o,s)=>{l(u=>s>u.length?u:[...u.slice(0,s),o])},closeSubmenu:(o,s)=>{l(u=>u[s]===o?u.slice(0,s):u)}}}function Wte(e,t){let{triggerKey:r}=e,{expandedKeysStack:n,openSubmenu:a,closeSubmenu:l,close:i}=t,[o]=g.useState(n==null?void 0:n.length),s=g.useMemo(()=>n[o]===r,[n,r,o]),[u,c]=g.useState(null),d=g.useCallback(b=>{c(b??null),a(r,o)},[a,o,r]),f=g.useCallback(()=>{c(null),l(r,o)},[l,o,r]),p=g.useCallback(b=>{c(b??null),s?f():d(b)},[f,d,s]);return g.useMemo(()=>({focusStrategy:u,isOpen:s,open:d,close:f,closeAll:i,submenuLevel:o,setOpen:()=>{},toggle:p}),[s,d,f,i,u,p,o])}var Xte=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var r;return t&&(r=t.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let t=this.keyMap.get(e);var r;return t&&(r=t.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t=t||new Set;let r=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&(i.type==="section"||t.has(i.key)))for(let o of i.childNodes)r(o)};for(let i of e)r(i);let n=null,a=0;for(let[i,o]of this.keyMap)n?(n.nextKey=i,o.prevKey=n.key):(this.firstKey=i,o.prevKey=void 0),o.type==="item"&&(o.index=a++),n=o,n.nextKey=void 0;var l;this.lastKey=(l=n==null?void 0:n.key)!==null&&l!==void 0?l:null}},zn=class s4 extends Set{constructor(t,r,n){super(t),t instanceof s4?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}};function Zte(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function nv(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:a="toggle",disabledBehavior:l="all"}=e,i=g.useRef(!1),[,o]=g.useState(!1),s=g.useRef(null),u=g.useRef(null),[,c]=g.useState(null),d=g.useMemo(()=>Z_(e.selectedKeys),[e.selectedKeys]),f=g.useMemo(()=>Z_(e.defaultSelectedKeys,new zn),[e.defaultSelectedKeys]),[p,b]=Dp(d,f,e.onSelectionChange),v=g.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[S,h]=g.useState(a);a==="replace"&&S==="toggle"&&typeof p=="object"&&p.size===0&&h("replace");let y=g.useRef(a);return g.useEffect(()=>{a!==y.current&&(h(a),y.current=a)},[a]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:S,setSelectionBehavior:h,get isFocused(){return i.current},setFocused(E){i.current=E,o(E)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(E,x="first"){s.current=E,u.current=x,c(E)},selectedKeys:p,setSelectedKeys(E){(n||!Zte(E,p))&&b(E)},disabledKeys:v,disabledBehavior:l}}function Z_(e,t){return e?e==="all"?"all":new zn(e):t}var av=class u4{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let a=this.collection.getItem(n);(!t||a&&jg(this.collection,a,t)<0)&&(t=a)}var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let a=this.collection.getItem(n);(!t||a&&jg(this.collection,a,t)>0)&&(t=a)}var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new zn([r],r,r);else{let i=this.state.selectedKeys;var a;let o=(a=i.anchorKey)!==null&&a!==void 0?a:r;n=new zn(i,o,r);var l;for(let s of this.getKeyRange(o,(l=i.currentKey)!==null&&l!==void 0?l:r))n.delete(s);for(let s of this.getKeyRange(r,o))this.canSelectItem(s)&&n.add(s)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),a=this.collection.getItem(r);return n&&a?jg(this.collection,n,a)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let a=[],l=t;for(;l!=null;){let i=this.collection.getItem(l);if(i&&(i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&a.push(l),l===r)return a;l=this.collection.getKeyAfter(l)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new zn(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new zn([r],r,r):new zn;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new zn;for(let n of t){let a=this.getKey(n);if(a!=null&&(r.add(a),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var a;let i=this.collection.getItem(n);(i==null?void 0:i.type)==="item"&&t.push(n);var l;i!=null&&i.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&r((l=(a=zte(i4(i,this.collection)))===null||a===void 0?void 0:a.key)!==null&&l!==void 0?l:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new zn)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}withCollection(t){return new u4(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,r,n){this.collection=t,this.state=r;var a;this.allowsCellSelection=(a=n==null?void 0:n.allowsCellSelection)!==null&&a!==void 0?a:!1,this._isSelectAll=null,this.layoutDelegate=(n==null?void 0:n.layoutDelegate)||null}};function Qte(e){let{onExpandedChange:t}=e,[r,n]=Dp(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),a=nv(e),l=g.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=l4(e,g.useCallback(o=>new Xte(o,{expandedKeys:r}),[r]),null);return g.useEffect(()=>{a.focusedKey!=null&&!i.getItem(a.focusedKey)&&a.setFocusedKey(null)},[i,a.focusedKey]),{collection:i,expandedKeys:r,disabledKeys:l,toggleKey:o=>{n(Jte(r,o))},setExpandedKeys:n,selectionManager:new av(i,a)}}function Jte(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}var c4=g.createContext(null),Pp=g.createContext(null),Cf=g.createContext(null),Tf=g.createContext(null),d4=g.createContext(null),f4=class extends Ql{filter(e,t,r){let n=e.getItem(this.firstChildKey);if(n&&r(n.textValue,this)){let a=this.clone();return t.addDescendants(a,e),a}return null}};f4.type="submenutrigger";tv(f4,(e,t,r)=>{let{CollectionBranch:n}=g.useContext(ju),a=g.useContext(Pp),l=g.useContext(Cf),i=Wte({triggerKey:r.key},l),o=g.useRef(null),s=an(t),{parentMenuRef:u,shouldUseVirtualFocus:c}=g.useContext(d4),{submenuTriggerProps:d,submenuProps:f,popoverProps:p}=qte({parentMenuRef:u,submenuRef:o,delay:e.delay,shouldUseVirtualFocus:c},i,s);return m.createElement(sa,{values:[[wf,{...d,onAction:void 0,ref:s}],[c4,{ref:o,...f}],[Ip,i],[rv,{trigger:"SubmenuTrigger",triggerRef:s,placement:"end top","aria-labelledby":f["aria-labelledby"],...p}]]},m.createElement(n,{collection:a.collection,parent:r}),e.children[1])},e=>e.children[0]);g.forwardRef(function(e,t){return[e,t]=Bt(e,t,c4),m.createElement(zR,{content:m.createElement(jR,e)},r=>m.createElement(ere,{props:e,collection:r,menuRef:t}))});function ere({props:e,collection:t,menuRef:r}){[e,r]=Bt(e,r,j_);let{filter:n,...a}=e,l=g.useMemo(()=>n?t.filter(n):t,[t,n]),i=Qte({...e,collection:l,children:void 0}),o=g.useContext(Cf),{isVirtualized:s,CollectionRoot:u}=g.useContext(ju),{menuProps:c}=Fte({...e,isVirtualized:s,onClose:e.onClose||(o==null?void 0:o.close)},i,r),d=Sr({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:i.collection.size===0}}),f=null;i.collection.size===0&&e.renderEmptyState&&(f=m.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let p=Ve(e,{global:!0});return m.createElement(Y1,null,m.createElement("div",{...oe(p,d,c),ref:r,slot:e.slot||void 0,"data-empty":i.collection.size===0||void 0,onScroll:e.onScroll},m.createElement(sa,{values:[[Pp,i],[QR,{elementType:"div"}],[YR,{name:"MenuSection",render:p4}],[d4,{parentMenuRef:r,shouldUseVirtualFocus:a==null?void 0:a.shouldUseVirtualFocus}],[wf,null],[j_,null],[Tte,null],[Tf,i.selectionManager],[Cf,o??o4({})]]},m.createElement(u,{collection:i.collection,persistedKeys:WR(i.selectionManager.focusedKey),scrollRef:r})),f))}var tre=class extends av{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,t){super(e.collection,t),this.parent=e}};function p4(e,t,r,n="react-aria-MenuSection"){var a,l;let i=g.useContext(Pp),{CollectionBranch:o}=g.useContext(ju),[s,u]=G3();var c;let{headingProps:d,groupProps:f}=Kte({heading:u,"aria-label":(c=r.props["aria-label"])!==null&&c!==void 0?c:void 0}),p=Sr({defaultClassName:n,className:(a=r.props)===null||a===void 0?void 0:a.className,style:(l=r.props)===null||l===void 0?void 0:l.style,values:{}}),b=g.useContext(Tf),v=nv(e),S=e.selectionMode!=null?new tre(b,v):b,h=Ve(e,{global:!0});return delete h.id,m.createElement("section",{...oe(h,p,f),ref:t},m.createElement(sa,{values:[[XR,{...d,ref:s}],[Tf,S]]},m.createElement(o,{collection:i.collection,parent:r})))}tv(FR,p4);var wf=g.createContext(null);Bp(MR,function(e,t,r){var n;[e,t]=Bt(e,t,wf);let a=(n=j1(wf))===null||n===void 0?void 0:n.id,l=g.useContext(Pp),i=an(t),o=g.useContext(Tf),{menuItemProps:s,labelProps:u,descriptionProps:c,keyboardShortcutProps:d,...f}=jte({...e,id:a,key:r.key,selectionManager:o},l,i),{hoverProps:p,isHovered:b}=Lo({isDisabled:f.isDisabled}),v=Sr({...e,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...f,isHovered:b,isFocusVisible:f.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),S=e.href?"a":"div",h=Ve(e,{global:!0});return delete h.id,delete h.onClick,m.createElement(S,{...oe(h,v,s,p),ref:i,"data-disabled":f.isDisabled||void 0,"data-hovered":b||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-selected":f.isSelected||void 0,"data-selection-mode":o.selectionMode==="none"?void 0:o.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},m.createElement(sa,{values:[[mR,{slots:{[vf]:u,label:u,description:c}}],[ZR,d]]},v.children))});function rre(e,t){let{role:r="dialog"}=e,n=gd();n=e["aria-label"]?void 0:n;let a=g.useRef(!1);return g.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Va(t.current);let l=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(a.current=!0,t.current&&(t.current.blur(),Va(t.current)),a.current=!1)},500);return()=>{clearTimeout(l)}}},[t]),nR(),{dialogProps:{...Ve(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:l=>{a.current&&l.stopPropagation()}},titleProps:{id:n}}}var h4=g.createContext(null),Ip=g.createContext(null);function nre(e){let t=o4(e),r=g.useRef(null),{triggerProps:n,overlayProps:a}=aJ({},t,r),[l,i]=g.useState(null),o=g.useCallback(()=>{r.current&&i(r.current.offsetWidth+"px")},[r]);return hf({ref:r,onResize:o}),n.id=Ot(),a["aria-labelledby"]=n.id,m.createElement(sa,{values:[[Ip,t],[Cf,t],[h4,a],[rv,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":a["aria-labelledby"],style:{"--trigger-width":l}}]]},m.createElement(vZ,{...n,ref:r,isPressed:t.isOpen},e.children))}g.forwardRef(function(e,t){let r=e["aria-labelledby"];[e,t]=Bt(e,t,h4);let{dialogProps:n,titleProps:a}=rre({...e,"aria-labelledby":r},t),l=g.useContext(Ip);!n["aria-label"]&&!n["aria-labelledby"]&&(e["aria-labelledby"]&&(n["aria-labelledby"]=e["aria-labelledby"]));let i=Sr({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(l==null?void 0:l.close)||(()=>{})}}),o=Ve(e,{global:!0});return m.createElement("section",{...oe(o,i,n),ref:t,slot:e.slot||void 0},m.createElement(sa,{values:[[gR,{slots:{[vf]:{},title:{...a,level:2}}}],[VR,{slots:{[vf]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},i.children))});var lv=({ariaLabel:e,placement:t="bottom-start",hasChrome:r=!0,hasCloseButton:n=!1,closeLabel:a,offset:l=8,padding:i,popover:o,children:s,defaultVisible:u,visible:c,onVisibleChange:d,...f})=>{e||ite("The 'ariaLabel' prop on 'PopoverProvider' will become mandatory in Storybook 11. Provide a concise, accessible label describing the popover's purpose.");let p=X1(t),[b,v]=g.useState(u??!1),S=g.useCallback(y=>{v(y),d==null||d(y)},[d]),h=g.useCallback(()=>S(!1),[S]);return m.createElement(nre,{defaultOpen:u,isOpen:c??b,onOpenChange:S,...f},m.createElement(bZ,null,g.cloneElement(s,{"aria-haspopup":"dialog"})),m.createElement($te,{"aria-label":e,placement:p,offset:l,style:{outline:"none"}},m.createElement(Uu,{hasChrome:r,hideLabel:a,onHide:n?h:void 0,padding:i},typeof o=="function"?o({onHide:h}):o)))},g4=g.forwardRef((e,t)=>m.createElement(Uu,{ref:t,...e}));g4.displayName="Tooltip";g.lazy(()=>Qn(()=>import("./WithTooltip-65CFNBJE-Ty2foy7t.js"),__vite__mapDeps([5,1,2,3]),import.meta.url).then(e=>({default:e.WithTooltip})));g.lazy(()=>Qn(()=>import("./WithTooltip-65CFNBJE-Ty2foy7t.js"),__vite__mapDeps([5,1,2,3]),import.meta.url).then(e=>({default:e.WithTooltipPure})));const{deprecate:dpe}=__STORYBOOK_MODULE_CLIENT_LOGGER__;F.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));F.span();F.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}}));F.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"}));F.div({padding:15,width:280,boxSizing:"border-box"});const{deprecate:are}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var lre=Kt(Gl(),1);const{deprecate:ire}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ore=F(({active:e,loading:t,disabled:r,...n})=>m.createElement("span",{...n}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:t.textMutedColor}:{}),sre=F.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"}}),ure=F.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column",minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),cre=F.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),dre=F.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),fre=F.button(({theme:e})=>({width:"100%",minWidth:0,border:"none",borderRadius:e.appBorderRadius,background:"none",fontSize:e.typography.size.s1,transition:"background 150ms ease-out",color:e.color.dark,textDecoration:"none",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:0}}),({theme:e,href:t,onClick:r})=>(t||r)&&{cursor:"pointer","&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}},({theme:e,as:t})=>t==="label"&&{"&:has(input:not(:disabled))":{cursor:"pointer","&:hover":{background:e.background.hoverable}}},({disabled:e})=>e&&{cursor:"not-allowed"}),pre=(0,lre.default)(100)(({onClick:e,input:t,href:r,LinkWrapper:n})=>({...e&&{as:"button",role:"button",onClick:e},...t&&{as:"label"},...r&&{as:"a",role:"link",href:r,...n&&{as:n,to:r}}})),m4=g.forwardRef((e,t)=>{let{loading:r=!1,title:n=m.createElement("span",null,"Loading state"),center:a=null,right:l=null,active:i=!1,disabled:o=!1,isIndented:s=!1,href:u=void 0,onClick:c=void 0,icon:d,input:f,LinkWrapper:p=void 0,...b}=e,v={active:i,disabled:o},S=pre(e),h=d||f;return ire("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),m.createElement(fre,{"data-deprecated":"ListItem",ref:t,...b,...v,...S},m.createElement(m.Fragment,null,h&&m.createElement(dre,{...v},h),n||a?m.createElement(ure,{isIndented:s&&!h},n&&m.createElement(ore,{...v,loading:r},n),a&&m.createElement(cre,{...v},a)):null,l&&m.createElement(sre,{...v},l)))});m4.displayName="ListItem";var y4=m4,hre=F.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32+8},({theme:e})=>({borderRadius:e.appBorderRadius+2}),({theme:e})=>e.base==="dark"?{background:e.background.content}:{}),gre=F.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),mre=({id:e,onClick:t,...r})=>{let{active:n,disabled:a,title:l,href:i}=r,o=g.useCallback(s=>t==null?void 0:t(s,{id:e,active:n,disabled:a,title:l,href:i}),[t,e,n,a,l,i]);return m.createElement(y4,{id:`list-item-${e}`,...r,...t&&{onClick:o}})},b4=({links:e,LinkWrapper:t,...r})=>{are("`TooltipLinkList` is deprecated and will be removed in Storybook 11, use `ActionList` or `MenuItem` and `WithMenu` instead.");let n=Array.isArray(e[0])?e:[e],a=n.some(l=>l.some(i=>"icon"in i&&i.icon||"input"in i&&i.input));return m.createElement(hre,{"data-deprecated":"TooltipLinkList",...r,className:"sb-list"},n.filter(l=>l.length).map((l,i)=>m.createElement(gre,{key:l.map(o=>o.id).join(`~${i}~`)},l.map(o=>"content"in o?m.createElement(g.Fragment,{key:o.id},o.content):m.createElement(mre,{key:o.id,isIndented:a,LinkWrapper:t,...o})))))};const{deprecate:kp}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:yre}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var bre=F.div(({backgroundColor:e,border:t=!1,innerStyle:r={},scrollable:n,theme:a})=>({color:a.barTextColor,width:"100%",minHeight:40,flexShrink:0,scrollbarColor:`${a.barTextColor} ${t?e||a.barBg:"transparent"}`,scrollbarWidth:"thin",overflow:n?"auto":"hidden",overflowY:"hidden",display:"flex",alignItems:"center",gap:n?0:6,paddingInline:n?0:6,...t?{boxShadow:`${a.appBorderColor} 0 -1px 0 0 inset`,background:e||a.barBg}:{},...r})),vre=F.div(({innerStyle:e})=>({minHeight:40,display:"flex",alignItems:"center",width:"100%",gap:6,paddingInline:6,...e})),Mo=g.forwardRef(({scrollable:e=!0,children:t,innerStyle:r,...n},a)=>m.createElement(bre,{...n,ref:a,innerStyle:e?void 0:r,scrollable:e},e?m.createElement(vre,{innerStyle:r},t):t));Mo.displayName="Bar";var py=F.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:10},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{gap:6}:{});py.displayName="Side";var Ere=F.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,width:"100%",backgroundColor:e||""})),Sre=F(Mo)({paddingInline:0}),iv=({children:e,backgroundColor:t,className:r="",...n})=>{yre('FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.');let[a,l]=g.Children.toArray(e);return m.createElement(Sre,{"data-deprecated":"FlexBar",backgroundColor:t,className:`sb-bar ${r}`,...n},m.createElement(Ere,{bgColor:t},m.createElement(py,{scrollable:n.scrollable,left:!0},a),l?m.createElement(py,{right:!0},l):null))};iv.displayName="FlexBar";const{deprecate:xre}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var $re=e=>typeof e.props.href=="string",_re=e=>typeof e.props.href!="string";function Cre({children:e,...t},r){let n={props:t,ref:r};if($re(n))return m.createElement("a",{ref:n.ref,...n.props},e);if(_re(n))return m.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var v4=g.forwardRef(Cre);v4.displayName="ButtonOrLink";var Tre=F(v4,{shouldForwardProp:ip})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}}),Ku=g.forwardRef((e,t)=>(xre("The `TabButton` component is deprecated. Use `TabList` instead."),m.createElement(Tre,{"data-deprecated":"TabButton",ref:t,...e})));Ku.displayName="TabButton";var wre=F.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),Are=F.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),Ore=F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.color.defaultText})),Dre=F.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),Rre=F.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),Gu=({title:e,description:t,footer:r})=>m.createElement(wre,null,m.createElement(Are,null,m.createElement(Ore,null,e),t&&m.createElement(Rre,null,t)),r&&m.createElement(Dre,null,r));const{deprecate:Nre}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var E4=F.div(({active:e})=>e?{display:"block"}:{display:"none"}),Lre=e=>(Nre("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),g.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:a}})=>{let l=Array.isArray(a)?a[0]:a;return{title:t,id:r,...n?{color:n}:{},render:typeof l=="function"?l:({active:i})=>m.createElement(E4,{active:i,role:"tabpanel"},l)}}));const{deprecate:Mre}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Fre=F.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),Bre=F(Ku)(({active:e,theme:t,preActive:r})=>`
|
|
731
|
+
`,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t==="default"&&{background:e.base==="light"?Ob(e.background.app):e.background.app,color:e.color.defaultText},({theme:e,bgColor:t})=>t==="inverse"&&{background:e.base==="light"?e.color.darkest:e.color.lightest,color:e.color.inverseText},({theme:e,bgColor:t})=>(t==="positive"||t==="negative"||t==="warning")&&{background:e.background[t],color:e.color[`${t}Text`]}),Jee=F(je)({position:"absolute",top:4,right:4}),Uu=g.forwardRef(({children:e,color:t="default",hasChrome:r=!0,hideLabel:n="Close",onHide:a,padding:l=8,...i},o)=>m.createElement(Qee,{bgColor:t,hasChrome:r,hasCloseButton:!!a,padding:l,ref:o,...i},e,a&&m.createElement(Jee,{ariaLabel:n,onClick:a,padding:"small",variant:"ghost",size:"small"},m.createElement(jF,null))));Uu.displayName="Popover";var OR=({id:e,title:t,description:r,icon:n,aside:a,children:l,isSelected:i,isActive:o,onClick:s,onFocus:u,onKeyDown:c,shouldLookDisabled:d=!1,...f})=>m.createElement(bd.Item,{...f,id:e,role:"option",tabIndex:o?0:-1,"aria-selected":i,"aria-disabled":d?!0:void 0,onClick:s,onFocus:u,onKeyDown:c},l??m.createElement(m.Fragment,null,n&&m.createElement(bd.Icon,null,n),m.createElement(bd.Text,null,m.createElement("p",null,t),r&&m.createElement("small",null,r)),a));OR.displayName="SelectOption";var Bc=5,DR=Symbol.for("undefined");function ete(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"}function uy(e){return{...e,type:"option",value:vd(e.value)}}function zg(e){return"type"in e&&e.type==="reset"?e:uy(e)}function rs(e){if(e!==DR)return e}function vd(e){return e===void 0?DR:e}var tte=F("ul")({minWidth:180,height:"100%",borderRadius:6,overflow:"hidden auto",listStyle:"none",margin:0,padding:4});function P_(e,{value:t}){return`${e}-opt-${String(t)??"sb-reset"}`}var rte=F.span(({theme:e})=>({appearance:"none",color:e.textMutedColor,fontSize:12}));function I_(e,t){return t===void 0?[]:ete(t)?e.filter(r=>r.value===t).map(uy):e.filter(r=>t.some(n=>r.value===n)).map(uy)}var nte=F(je)(({$isOpen:e,$hasSelection:t,theme:r})=>e||t?{boxShadow:"none",background:aa(.93,r.barSelectedColor),color:r.base==="light"?Lt(.1,r.color.secondary):r.color.secondary}:{}),ate=F.div({position:"fixed",inset:0,zIndex:1e3}),lte=({children:e,handleClose:t,triggerRef:r})=>{let n=m.useRef(null);K3({ref:n,onInteractOutside:t}),g.useEffect(()=>{if(n.current)return Mp([n.current],{shouldUseInert:!0})},[]);let{overlayProps:a}=V1({targetRef:r,overlayRef:n,placement:"bottom start",offset:8,maxHeight:504,isOpen:!0}),{overlayProps:l,underlayProps:i}=q1({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},n),o=ap();return a.style={...a.style,overflow:"hidden auto",scrollbarColor:`${o.barTextColor} transparent`,scrollbarWidth:"thin"},m.createElement($f,{disableFocusManagement:!0,...l},m.createElement(ate,{...i}),m.createElement(Uu,{hasChrome:!0,ref:n,padding:0,...a},e))},RR=g.forwardRef(({children:e,icon:t,disabled:r=!1,options:n,defaultOptions:a,multiSelect:l=!1,onReset:i,padding:o="small",resetLabel:s,onSelect:u,onDeselect:c,onChange:d,tooltip:f,ariaLabel:p,showSelectedOptionTitle:b=!0,...v},S)=>{var G;let[h,y]=g.useState(v.defaultOpen||!1),[E,x]=g.useState(!1),T=an(S),_=g.useMemo(()=>"select-"+Math.random().toString(36).substring(2,15),[]),C=`${_}-listbox`,O=g.useRef(null),D=zu({isOpen:h&&!r,onOpenChange:y}),L=g.useCallback(()=>{y(!1),x(!0)},[]);g.useEffect(()=>{var H;!D.isOpen&&E&&((H=T.current)==null||H.focus(),x(!1))},[D.isOpen,E,T]);let[w,I]=g.useState(I_(n,a)),k=g.useCallback(H=>{H.type==="reset"?(d==null||d([]),i==null||i(),I([])):I(l?V=>{let q=[];return V!=null&&V.some(ee=>ee.value===H.value)?(c==null||c(rs(H.value)),q=(V==null?void 0:V.filter(ee=>ee.value!==H.value))??[]):(u==null||u(rs(H.value)),q=[...V??[],H]),d==null||d(q.map(ee=>rs(ee.value))),q}:V=>V.every(q=>q.value!==H.value)?(u==null||u(rs(H.value)),d==null||d([rs(H.value)]),[H]):V)},[l,d,u,c,i]),M=g.useMemo(()=>i?{type:"reset",value:void 0,title:s??"Reset selection",icon:m.createElement(QF,null),description:void 0,children:void 0}:void 0,[i,s]),B=g.useMemo(()=>M?[M,...n]:n,[n,M]);g.useEffect(()=>{a&&I(I_(n,a))},[a,n]);let[$,A]=g.useState(void 0),R=g.useCallback((H,V=!0)=>{A(zg(H)),!l&&V&&k(zg(H))},[l,k]),P=g.useCallback((H=1)=>{if(!h||!$){R(B[H===1?0:Math.min(H,B.length-1)]);return}let V=B.findIndex(W=>$.type==="reset"?"type"in W&&W.type==="reset":vd(W.value)===$.value),q=V+H,ee;q>=B.length&&V===B.length-1?ee=B[0]:ee=B[Math.min(B.length-1,q)],R(ee)},[h,$,R,B]),N=g.useCallback((H=1)=>{if(!h||!$){R(B[Math.max(0,B.length-H)]);return}let V=B.findIndex(W=>$.type==="reset"?"type"in W&&W.type==="reset":vd(W.value)===$.value),q=V-H,ee;q<0&&V===0?ee=B[B.length-1]:ee=B[Math.max(0,q)],R(ee)},[h,$,R,B]),z=g.useCallback(H=>{let V=J=>{H.preventDefault(),R(B[J]),y(!0)},q=B.findIndex(J=>w.some(Y=>Y.value===vd(J.value))),ee=q!==-1,W=M&&!ee?1:0,ke=B.length-1;H.key==="Enter"||H.key===" "?V(ee?Math.min(q,ke):W):H.key==="ArrowDown"?V(ee?Math.min(q+1,ke):W):H.key==="ArrowUp"?V(ee?Math.max(q-1,W):ke):H.key==="Home"?V(W):H.key==="End"?V(ke):H.key==="PageDown"?V(Math.min((ee?q:W)+Bc,ke)):H.key==="PageUp"&&V(Math.max(0,(ee?q:ke)-Bc))},[B,M,R,w]),U=g.useCallback(H=>{H.key!=="Tab"?H.preventDefault():L(),H.key==="Escape"?L():H.key==="ArrowDown"?P():H.key==="ArrowUp"?N():H.key==="Home"?R(B[0]):H.key==="End"?R(B[B.length-1]):H.key==="PageDown"?P(Bc):H.key==="PageUp"&&N(Bc)},[L,P,N,B,R]);g.useEffect(()=>{var H;if(h&&$){let V=document.getElementById(P_(_,$));V&&(V.scrollIntoView({block:"nearest"}),V.focus())}else h&&((H=O.current)==null||H.focus())},[h,$,_]);let K=g.useMemo(()=>w.length===1?`${p} ${w[0].title}`:w.length?`${p}, ${w.length} values selected`:p,[p,w]);return m.createElement(m.Fragment,null,m.createElement(nte,{...v,variant:"ghost",ariaLabel:K,tooltip:f??p,disableAllTooltips:h,id:_,ref:T,padding:o,$isOpen:h,$hasSelection:!!w.length,"aria-disabled":r,disabled:r,onClick:()=>{h?L():y(!0)},tabIndex:h?-1:0,onKeyDown:z,role:"button","aria-controls":h?C:void 0,"aria-expanded":h,"aria-haspopup":"listbox"},!l&&m.createElement(m.Fragment,null,t,b&&((G=w[0])==null?void 0:G.title)||e),l&&m.createElement(m.Fragment,null,t,e,!!w.length&&m.createElement(rte,{"aria-label":`${w.length} ${w.length>1?"items":"item"} selected`},w==null?void 0:w.length))),D.isOpen&&m.createElement(lte,{handleClose:L,triggerRef:T},m.createElement(tte,{"aria-label":p,role:"listbox",id:C,ref:O,"aria-multiselectable":l,onKeyDown:U,tabIndex:h?0:-1},B.map(H=>({option:zg(H),externalOption:H})).map(({externalOption:H,option:V})=>{let q=(w==null?void 0:w.some(W=>W.value===V.value))&&V!==M,ee=V===M;return m.createElement(OR,{key:V.value===void 0?"sb-reset":String(V.value),title:V.title,description:V.description,aside:V.aside,icon:!ee&&l?m.createElement(Zl.Checkbox,{checked:q,hidden:!0,role:"presentation"}):V.icon,id:P_(_,V),isActive:h&&($==null?void 0:$.value)===V.value,isSelected:q,onClick:()=>{k(V),l||L()},onFocus:()=>R(H,!1),shouldLookDisabled:ee&&w.length===0&&l,onKeyDown:W=>{W.key==="Enter"||W.key===" "?(W.preventDefault(),k(V),l||L()):W.key==="Tab"&&(l||k(V),L())}},V.children)}))))});RR.displayName="Select";const{deprecate:ite}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Ql=class{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,r){let n=this.clone();return t.addDescendants(n,e),n}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},NR=class extends Ql{filter(e,t,r){let[n,a]=BR(e,t,this.firstChildKey,r),l=this.clone();return l.firstChildKey=n,l.lastChildKey=a,l}},LR=class extends Ql{};LR.type="header";var ote=class extends Ql{};ote.type="loader";var MR=class extends NR{filter(e,t,r){if(r(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};MR.type="item";var FR=class extends NR{filter(e,t,r){let n=super.filter(e,t,r);if(n&&n.lastChildKey!==null){let a=e.getItem(n.lastChildKey);if(a&&a.type!=="header")return n}return null}};FR.type="section";var ste=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let r=t.get(e),n=(r==null?void 0:r.firstChildKey)!=null?t.get(r.firstChildKey):null;for(;n;)yield n,n=n.nextKey!=null?t.get(n.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!=="item"&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!=="item"&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var t;return(t=e==null?void 0:e.key)!==null&&t!==void 0?t:null}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let r=t.getChildren(e.key);for(let n of r)this.addDescendants(n,t)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let t=this.keyMap.get(e);t!=null&&t.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!r}filter(e){let t=new this.constructor,[r,n]=BR(this,t,this.firstKey,e);return t==null||t.commit(r,n),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function BR(e,t,r,n){if(r==null)return[null,null];let a=null,l=null,i=e.getItem(r);for(;i!=null;){let u=i.filter(e,t,n);u!=null&&(u.nextKey=null,l&&(u.prevKey=l.key,l.nextKey=u.key),a==null&&(a=u),t.addNode(u),l=u),i=i.nextKey?e.getItem(i.nextKey):null}if(l&&l.type==="separator"){let u=l.prevKey;t.removeNode(l.key),u?(l=t.getItem(u),l.nextKey=null):l=null}var o,s;return[(o=a==null?void 0:a.key)!==null&&o!==void 0?o:null,(s=l==null?void 0:l.key)!==null&&s!==void 0?s:null]}var PR=class{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}},Hg=class cy extends PR{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof cy?this.parentNode.level+(((t=this.node)===null||t===void 0?void 0:t.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,r,n,a,l,i,o,s;let u=this.nextVisibleSibling,c=this.getMutableNode();if(c!=null){c.index=this.index,c.level=this.level;var d;c.parentKey=this.parentNode instanceof cy&&(d=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&d!==void 0?d:null;var f;c.prevKey=(f=(n=this.previousVisibleSibling)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&f!==void 0?f:null;var p;c.nextKey=(p=u==null||(a=u.node)===null||a===void 0?void 0:a.key)!==null&&p!==void 0?p:null,c.hasChildNodes=!!this.firstChild;var b;c.firstChildKey=(b=(i=this.firstVisibleChild)===null||i===void 0||(l=i.node)===null||l===void 0?void 0:l.key)!==null&&b!==void 0?b:null;var v;if(c.lastChildKey=(v=(s=this.lastVisibleChild)===null||s===void 0||(o=s.node)===null||o===void 0?void 0:o.key)!==null&&v!==void 0?v:null,(c.colSpan!=null||c.colIndex!=null)&&u){var S,h;let y=((S=c.colIndex)!==null&&S!==void 0?S:c.index)+((h=c.colSpan)!==null&&h!==void 0?h:1);if(u.node!=null&&y!==u.node.colIndex){let E=u.getMutableNode();E.colIndex=y}}}}setProps(t,r,n,a,l){let i,{value:o,textValue:s,id:u,...c}=t;if(this.node==null?(i=new n(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=i):i=this.getMutableNode(),c.ref=r,i.props=c,i.rendered=a,i.render=l,i.value=o,i.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",u!=null&&u!==i.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(i.colSpan=c.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(r){let n=r==="none";if(t.isHidden!==n){var a,l;(((a=t.parentNode)===null||a===void 0?void 0:a.firstVisibleChild)===t||((l=t.parentNode)===null||l===void 0?void 0:l.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let i=t.previousVisibleSibling,o=t.nextVisibleSibling;i&&t.ownerDocument.markDirty(i),o&&t.ownerDocument.markDirty(o),t.isHidden=n,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}},ute=class extends PR{get isConnected(){return this.isMounted}createElement(e){return new Hg(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let r of e)this.addNode(r);t.addNode(e.node)}removeNode(e){if(e.node!=null){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key)}}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof Hg&&(!i.isConnected||i.isHidden)?this.removeNode(i):i.updateChildIndices();for(let i of this.dirtyNodes)i instanceof Hg&&(i.isConnected&&!i.isHidden&&(i.updateNode(),this.addNode(i)),i.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,r,n,a,l;this.nextCollection.commit((a=(t=this.firstVisibleChild)===null||t===void 0||(e=t.node)===null||e===void 0?void 0:e.key)!==null&&a!==void 0?a:null,(l=(n=this.lastVisibleChild)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&l!==void 0?l:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}};function IR(e){let{children:t,items:r,idScope:n,addIdAndValue:a,dependencies:l=[]}=e,i=g.useMemo(()=>new WeakMap,l);return g.useMemo(()=>{if(r&&typeof t=="function"){let u=[];for(let c of r){let d=i.get(c);if(!d){d=t(c);var o,s;let f=(s=(o=d.props.id)!==null&&o!==void 0?o:c.key)!==null&&s!==void 0?s:c.id;if(f==null)throw new Error("Could not determine key for item");n&&(f=n+":"+f),d=g.cloneElement(d,a?{key:f,id:f,value:c}:{key:f}),i.set(c,d)}u.push(d)}return u}else if(typeof t!="function")return t},[t,r,i,n,a])}if(typeof HTMLTemplateElement<"u"){let e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}var _f=g.createContext(!1);function cte(e){if(g.useContext(_f))return m.createElement(m.Fragment,null,e.children);let t=m.createElement(_f.Provider,{value:!0},e.children);return m.createElement("template",{"data-react-aria-hidden":!0},t)}function ev(e){let t=(r,n)=>g.useContext(_f)?null:e(r,n);return t.displayName=e.displayName||e.name,g.forwardRef(t)}function dte(){return g.useContext(_f)}var kR=g.createContext(!1),pu=g.createContext(null);function zR(e){if(g.useContext(pu))return e.content;let{collection:t,document:r}=gte(e.createCollection);return m.createElement(m.Fragment,null,m.createElement(cte,null,m.createElement(pu.Provider,{value:r},e.content)),m.createElement(fte,{render:e.children,collection:t}))}function fte({collection:e,render:t}){return t(e)}function pte(e,t,r){let n=Xl(),a=g.useRef(n);a.current=n;let l=g.useCallback(()=>a.current?r():t(),[t,r]);return RW.useSyncExternalStore(e,l)}var hte=typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore:pte;function gte(e){let[t]=g.useState(()=>new ute((e==null?void 0:e())||new ste)),r=g.useCallback(i=>t.subscribe(i),[t]),n=g.useCallback(()=>{let i=t.getCollection();return t.isSSR&&t.resetAfterSSR(),i},[t]),a=g.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),l=hte(r,n,a);return ve(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:l,document:t}}var dy=g.createContext(null);function mte(e){var t;return t=class extends Ql{},t.type=e,t}function HR(e,t,r,n,a,l){typeof e=="string"&&(e=mte(e));let i=g.useCallback(s=>{s==null||s.setProps(t,r,e,n,l)},[t,r,n,l,e]),o=g.useContext(dy);if(o){let s=o.ownerDocument.nodesByProps.get(t);return s||(s=o.ownerDocument.createElement(e.type),s.setProps(t,r,e,n,l),o.appendChild(s),o.ownerDocument.updateCollection(),o.ownerDocument.nodesByProps.set(t,s)),a?m.createElement(dy.Provider,{value:s},a):null}return m.createElement(e.type,{ref:i},a)}function Bp(e,t){let r=({node:a})=>t(a.props,a.props.ref,a),n=g.forwardRef((a,l)=>{let i=g.useContext(bf);if(!g.useContext(kR)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(a,l)}return HR(e,a,l,"children"in a?a.children:null,null,o=>m.createElement(bf.Provider,{value:i},m.createElement(r,{node:o})))});return n.displayName=t.name,n}function tv(e,t,r=UR){let n=({node:l})=>t(l.props,l.props.ref,l),a=g.forwardRef((l,i)=>{let o=r(l);var s;return(s=HR(e,l,i,null,o,u=>m.createElement(n,{node:u})))!==null&&s!==void 0?s:m.createElement(m.Fragment,null)});return a.displayName=t.name,a}function UR(e){return IR({...e,addIdAndValue:!0})}var k_=g.createContext(null);function jR(e){let t=g.useContext(k_),r=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies),n=e.idScope||(t==null?void 0:t.idScope),a=UR({...e,idScope:n,dependencies:r});return g.useContext(pu)&&(a=m.createElement(yte,null,a)),t=g.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),m.createElement(k_.Provider,{value:t},a)}function yte({children:e}){let t=g.useContext(pu),r=g.useMemo(()=>m.createElement(pu.Provider,{value:null},m.createElement(kR.Provider,{value:!0},e)),[e]);return Xl()?m.createElement(dy.Provider,{value:t},r):bo.createPortal(r,t)}var KR=g.createContext({});ev(function(e,t){[e,t]=Bt(e,t,KR);let{elementType:r="label",...n}=e;return m.createElement(r,{className:"react-aria-Label",...n,ref:t})});function bte(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":a,labelElementType:l="label"}=e;t=Ot(t);let i=Ot(),o={};r&&(n=n?`${i} ${n}`:i,o={id:i,htmlFor:l==="label"?t:void 0});let s=Op({id:t,"aria-label":a,"aria-labelledby":n});return{labelProps:o,fieldProps:s}}function vte(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:a,isIndeterminate:l,formatOptions:i={style:"percent"}}=e,o=Ve(e,{labelable:!0}),{labelProps:s,fieldProps:u}=bte({...e,labelElementType:"span"});t=su(t,r,n);let c=(t-r)/(n-r),d=UQ(i);if(!l&&!a){let f=i.style==="percent"?c:t;a=d.format(f)}return{progressBarProps:oe(o,{...u,"aria-valuenow":l?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":l?void 0:a,role:"progressbar"}),labelProps:s}}var GR=g.createContext(null);g.forwardRef(function(e,t){[e,t]=Bt(e,t,GR);let{value:r=0,minValue:n=0,maxValue:a=100,isIndeterminate:l=!1}=e;r=su(r,n,a);let[i,o]=G3(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:s,labelProps:u}=vte({...e,label:o}),c=l?void 0:(r-n)/(a-n)*100,d=Sr({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:c,valueText:s["aria-valuetext"],isIndeterminate:l}}),f=Ve(e,{global:!0});return m.createElement("div",{...oe(f,d,s),ref:t,slot:e.slot||void 0},m.createElement(KR.Provider,{value:{...u,ref:i,elementType:"span"}},d.children))});var sn=null;function z_(e,t="assertive",r=7e3){sn?sn.announce(e,t,r):(sn=new Ete,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?sn.announce(e,t,r):setTimeout(()=>{sn!=null&&sn.isAttached()&&(sn==null||sn.announce(e,t,r))},100))}var Ete=class{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",r=7e3){var n,a;if(!this.node)return;let l=document.createElement("div");typeof e=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",e["aria-labelledby"])):l.textContent=e,t==="assertive"?(n=this.assertiveLog)===null||n===void 0||n.appendChild(l):(a=this.politeLog)===null||a===void 0||a.appendChild(l),e!==""&&setTimeout(()=>{l.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}};function Ste(e,t){let{elementType:r="button",isDisabled:n,onPress:a,onPressStart:l,onPressEnd:i,onPressUp:o,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:f,target:p,rel:b,type:v="button"}=e,S;r==="button"?S={type:v,disabled:n,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:S={role:"button",href:r==="a"&&!n?f:void 0,target:r==="a"?p:void 0,type:r==="input"?v:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?b:void 0};let{pressProps:h,isPressed:y}=Iu({onPressStart:l,onPressEnd:i,onPressChange:s,onPress:a,onPressUp:o,onClick:d,isDisabled:n,preventFocusOnPress:u,ref:t}),{focusableProps:E}=ku(e,t);c&&(E.tabIndex=n?-1:E.tabIndex);let x=oe(E,h,Ve(e,{labelable:!0}));return{isPressed:y,buttonProps:oe(S,x,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}var VR=g.createContext({});ev(function(e,t){[e,t]=Bt(e,t,VR),e=xte(e);let r=e,{isPending:n}=r,{buttonProps:a,isPressed:l}=Ste(e,t),{focusProps:i,isFocused:o,isFocusVisible:s}=Lp(e),{hoverProps:u,isHovered:c}=Lo({...e,isDisabled:e.isDisabled||n}),d={isHovered:c,isPressed:(r.isPressed||l)&&!n,isFocused:o,isFocusVisible:s,isDisabled:e.isDisabled||!1,isPending:n??!1},f=Sr({...e,values:d,defaultClassName:"react-aria-Button"}),p=Ot(a.id),b=Ot(),v=a["aria-labelledby"];n&&(v?v=`${v} ${b}`:a["aria-label"]&&(v=`${p} ${b}`));let S=g.useRef(n);g.useEffect(()=>{let y={"aria-labelledby":v||p};(!S.current&&o&&n||S.current&&o&&!n)&&z_(y,"assertive"),S.current=n},[n,o,v,p]);let h=Ve(e,{global:!0});return delete h.onClick,m.createElement("button",{...oe(h,f,a,i,u),type:a.type==="submit"&&n?"button":a.type,id:p,ref:t,"aria-labelledby":v,slot:e.slot||void 0,"aria-disabled":n?"true":a["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":c||void 0,"data-focused":o||void 0,"data-pending":n||void 0,"data-focus-visible":s||void 0},m.createElement(GR.Provider,{value:{id:b}},f.children))});function xte(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}var rv=g.createContext(null),H_=g.createContext(null),$te=g.forwardRef(function(e,t){[e,t]=Bt(e,t,rv);let r=g.useContext(Ip),n=zu(e),a=e.isOpen!=null||e.defaultOpen!=null||!r?n:r,l=R3(t,a.isOpen)||e.isExiting||!1,i=dte(),{direction:o}=ua();if(i){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),m.createElement(m.Fragment,null,s)}return a&&!a.isOpen&&!l?null:m.createElement(_te,{...e,triggerRef:e.triggerRef,state:a,popoverRef:t,isExiting:l,dir:o})});function _te({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:n,...a}){let l=g.useRef(null),i=g.useRef(null),o=g.useContext(H_),s=o&&a.trigger==="SubmenuTrigger";var u;let{popoverProps:c,underlayProps:d,arrowProps:f,placement:p,triggerAnchorPoint:b}=bJ({...a,offset:(u=a.offset)!==null&&u!==void 0?u:8,arrowRef:l,groupRef:s?o:i},e),v=a.popoverRef,S=D3(v,!!p)||a.isEntering||!1,h=Sr({...a,defaultClassName:"react-aria-Popover",values:{trigger:a.trigger||null,placement:p,isEntering:S,isExiting:t}}),y=!a.isNonModal||a.trigger==="SubmenuTrigger",[E,x]=g.useState(!1);ve(()=>{v.current&&x(y&&!v.current.querySelector("[role=dialog]"))},[v,y]),g.useEffect(()=>{E&&a.trigger!=="SubmenuTrigger"&&v.current&&!v.current.contains(document.activeElement)&&Va(v.current)},[E,v,a.trigger]);let T=g.useMemo(()=>{let D=h.children;if(n)for(let L of n)D=m.createElement(L.Provider,{value:null},D);return D},[h.children,n]),_={...c.style,"--trigger-anchor-point":b?`${b.x}px ${b.y}px`:void 0,...h.style},C=m.createElement("div",{...oe(Ve(a,{global:!0}),c),...h,role:E?"dialog":void 0,tabIndex:E?-1:void 0,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"],ref:v,slot:a.slot||void 0,style:_,dir:a.dir,"data-trigger":a.trigger,"data-placement":p,"data-entering":S||void 0,"data-exiting":t||void 0},!a.isNonModal&&m.createElement(__,{onDismiss:e.close}),m.createElement(K1.Provider,{value:{...f,placement:p,ref:l}},T),m.createElement(__,{onDismiss:e.close}));if(!s)return m.createElement($f,{...a,shouldContainFocus:E,isExiting:t,portalContainer:r},!a.isNonModal&&e.isOpen&&m.createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),m.createElement("div",{ref:i,style:{display:"contents"}},m.createElement(H_.Provider,{value:i},C)));var O;return m.createElement($f,{...a,shouldContainFocus:E,isExiting:t,portalContainer:(O=r??(o==null?void 0:o.current))!==null&&O!==void 0?O:void 0},C)}var YR=g.createContext(null);tv("section",(e,t,r)=>{let{name:n,render:a}=g.useContext(YR);return a(e,t,r,"react-aria-Section")});var qR={CollectionRoot({collection:e,renderDropIndicator:t}){return U_(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return U_(e,t,r)}};function U_(e,t,r){return IR({items:t?e.getChildren(t.key):e,dependencies:[r],children(n){let a=n.render(n);return!r||n.type!=="item"?a:m.createElement(m.Fragment,null,r({type:"item",key:n.key,dropPosition:"before"}),a,Cte(e,n,r))}})}function Cte(e,t,r){let n=t.key,a=e.getKeyAfter(n),l=a!=null?e.getItem(a):null;for(;l!=null&&l.type!=="item";)a=e.getKeyAfter(l.key),l=a!=null?e.getItem(a):null;let i=t.nextKey!=null?e.getItem(t.nextKey):null;for(;i!=null&&i.type!=="item";)i=i.nextKey!=null?e.getItem(i.nextKey):null;let o=[];if(i==null){let s=t;for(;s&&(!l||s.parentKey!==l.parentKey&&l.level<s.level);){let u=r({type:"item",key:s.key,dropPosition:"after"});g.isValidElement(u)&&o.push(g.cloneElement(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return o}var ju=g.createContext(qR);function WR(e){return g.useMemo(()=>e!=null?new Set([e]):null,[e])}var j_=g.createContext(null),Tte=g.createContext(null),XR=g.createContext({});Bp(LR,function(e,t){return[e,t]=Bt(e,t,XR),m.createElement("header",{className:"react-aria-Header",...e,ref:t},e.children)});var ZR=g.createContext({});g.forwardRef(function(e,t){return[e,t]=Bt(e,t,ZR),m.createElement("kbd",{dir:"ltr",...e,ref:t})});function wte(e){let t=Ve(e,{labelable:!0}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}var QR=g.createContext({}),JR=class extends Ql{filter(e,t){let r=t.getItem(this.prevKey);if(r&&r.type!=="separator"){let n=this.clone();return t.addDescendants(n,e),n}return null}};JR.type="separator";Bp(JR,function(e,t){[e,t]=Bt(e,t,QR);let{elementType:r,orientation:n,style:a,className:l,slot:i,...o}=e,s=r||"hr";s==="hr"&&n==="vertical"&&(s="div");let{separatorProps:u}=wte({...o,elementType:r,orientation:n}),c=Ve(e,{global:!0});return m.createElement(s,{...oe(c,u),style:a,className:l??"react-aria-Separator",ref:t,slot:i||void 0})});var e4=new WeakMap;function fy(e){return AX()?e.altKey:e.ctrlKey}function Ed(e,t){var r,n;let a=`[data-key="${CSS.escape(String(t))}"]`,l=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return l&&(a=`[data-collection="${CSS.escape(l)}"]${a}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(a)}var t4=new WeakMap;function Ate(e){let t=Ot();return t4.set(e,t),t}function Ote(e){return t4.get(e)}var Dte=1e3;function Rte(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,a=g.useRef({search:"",timeout:void 0}).current,l=i=>{let o=Nte(i.key);if(!(!o||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target)||a.search.length===0&&o===" ")){if(o===" "&&a.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.stopPropagation()),a.search+=o,t.getKeyForSearch!=null){let s=t.getKeyForSearch(a.search,r.focusedKey);s==null&&(s=t.getKeyForSearch(a.search)),s!=null&&(r.setFocusedKey(s),n&&n(s))}clearTimeout(a.timeout),a.timeout=setTimeout(()=>{a.search=""},Dte)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?l:void 0}}}function Nte(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function r4(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:a=!1,shouldFocusWrap:l=!1,disallowEmptySelection:i=!1,disallowSelectAll:o=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:b=n,linkBehavior:v="action"}=e,{direction:S}=ua(),h=wp(),y=A=>{var R;if(A.altKey&&A.key==="Tab"&&A.preventDefault(),!(!((R=n.current)===null||R===void 0)&&R.contains(A.target)))return;let P=(Y,X)=>{if(Y!=null){if(t.isLink(Y)&&v==="selection"&&u&&!fy(A)){bo.flushSync(()=>{t.setFocusedKey(Y,X)});let le=Ed(n,Y),ye=t.getItemProps(Y);le&&h.open(le,A,ye.href,ye.routerOptions);return}if(t.setFocusedKey(Y,X),t.isLink(Y)&&v==="override")return;A.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&!fy(A)&&t.replaceSelection(Y)}};switch(A.key){case"ArrowDown":if(r.getKeyBelow){var N,z,U;let Y=t.focusedKey!=null?(N=r.getKeyBelow)===null||N===void 0?void 0:N.call(r,t.focusedKey):(z=r.getFirstKey)===null||z===void 0?void 0:z.call(r);Y==null&&l&&(Y=(U=r.getFirstKey)===null||U===void 0?void 0:U.call(r,t.focusedKey)),Y!=null&&(A.preventDefault(),P(Y))}break;case"ArrowUp":if(r.getKeyAbove){var K,G,H;let Y=t.focusedKey!=null?(K=r.getKeyAbove)===null||K===void 0?void 0:K.call(r,t.focusedKey):(G=r.getLastKey)===null||G===void 0?void 0:G.call(r);Y==null&&l&&(Y=(H=r.getLastKey)===null||H===void 0?void 0:H.call(r,t.focusedKey)),Y!=null&&(A.preventDefault(),P(Y))}break;case"ArrowLeft":if(r.getKeyLeftOf){var V,q,ee;let Y=t.focusedKey!=null?(V=r.getKeyLeftOf)===null||V===void 0?void 0:V.call(r,t.focusedKey):null;Y==null&&l&&(Y=S==="rtl"?(q=r.getFirstKey)===null||q===void 0?void 0:q.call(r,t.focusedKey):(ee=r.getLastKey)===null||ee===void 0?void 0:ee.call(r,t.focusedKey)),Y!=null&&(A.preventDefault(),P(Y,S==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var W,ke,J;let Y=t.focusedKey!=null?(W=r.getKeyRightOf)===null||W===void 0?void 0:W.call(r,t.focusedKey):null;Y==null&&l&&(Y=S==="rtl"?(ke=r.getLastKey)===null||ke===void 0?void 0:ke.call(r,t.focusedKey):(J=r.getFirstKey)===null||J===void 0?void 0:J.call(r,t.focusedKey)),Y!=null&&(A.preventDefault(),P(Y,S==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&A.shiftKey)return;A.preventDefault();let Y=r.getFirstKey(t.focusedKey,di(A));t.setFocusedKey(Y),Y!=null&&(di(A)&&A.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&t.replaceSelection(Y))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&A.shiftKey)return;A.preventDefault();let Y=r.getLastKey(t.focusedKey,di(A));t.setFocusedKey(Y),Y!=null&&(di(A)&&A.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&t.replaceSelection(Y))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let Y=r.getKeyPageBelow(t.focusedKey);Y!=null&&(A.preventDefault(),P(Y))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let Y=r.getKeyPageAbove(t.focusedKey);Y!=null&&(A.preventDefault(),P(Y))}break;case"a":di(A)&&t.selectionMode==="multiple"&&o!==!0&&(A.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!i&&t.selectedKeys.size!==0&&(A.stopPropagation(),A.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(A.shiftKey)n.current.focus();else{let Y=er(n.current,{tabbable:!0}),X,le;do le=Y.lastChild(),le&&(X=le);while(le);X&&!X.contains(document.activeElement)&&Qt(X)}break}}},E=g.useRef({top:0,left:0});hs(b,"scroll",p?void 0:()=>{var A,R,P,N;E.current={top:(P=(A=b.current)===null||A===void 0?void 0:A.scrollTop)!==null&&P!==void 0?P:0,left:(N=(R=b.current)===null||R===void 0?void 0:R.scrollLeft)!==null&&N!==void 0?N:0}});let x=A=>{if(t.isFocused){A.currentTarget.contains(A.target)||t.setFocused(!1);return}if(A.currentTarget.contains(A.target)){if(t.setFocused(!0),t.focusedKey==null){var R,P;let U=G=>{G!=null&&(t.setFocusedKey(G),u&&!t.isSelected(G)&&t.replaceSelection(G))},K=A.relatedTarget;var N,z;K&&A.currentTarget.compareDocumentPosition(K)&Node.DOCUMENT_POSITION_FOLLOWING?U((N=t.lastSelectedKey)!==null&&N!==void 0?N:(R=r.getLastKey)===null||R===void 0?void 0:R.call(r)):U((z=t.firstSelectedKey)!==null&&z!==void 0?z:(P=r.getFirstKey)===null||P===void 0?void 0:P.call(r))}else!p&&b.current&&(b.current.scrollTop=E.current.top,b.current.scrollLeft=E.current.left);if(t.focusedKey!=null&&b.current){let U=Ed(n,t.focusedKey);U instanceof HTMLElement&&(!U.contains(document.activeElement)&&!d&&Qt(U),fu()==="keyboard"&&j$(U,{containingElement:n.current}))}}},T=A=>{A.currentTarget.contains(A.relatedTarget)||t.setFocused(!1)},_=g.useRef(!1);hs(n,KX,d?A=>{let{detail:R}=A;A.stopPropagation(),t.setFocused(!0),(R==null?void 0:R.focusStrategy)==="first"&&(_.current=!0)}:void 0);let C=xt(()=>{var A,R;let P=(R=(A=r.getFirstKey)===null||A===void 0?void 0:A.call(r))!==null&&R!==void 0?R:null;if(P==null){let N=bt();yD(n.current),bD(N,null),t.collection.size>0&&(_.current=!1)}else t.setFocusedKey(P),_.current=!1});H$(()=>{_.current&&C()},[t.collection,C]);let O=xt(()=>{t.collection.size>0&&(_.current=!1)});H$(()=>{O()},[t.focusedKey,O]),hs(n,jX,d?A=>{var R;A.stopPropagation(),t.setFocused(!1),!((R=A.detail)===null||R===void 0)&&R.clearFocusKey&&t.setFocusedKey(null)}:void 0);let D=g.useRef(a),L=g.useRef(!1);g.useEffect(()=>{if(D.current){var A,R;let z=null;var P;a==="first"&&(z=(P=(A=r.getFirstKey)===null||A===void 0?void 0:A.call(r))!==null&&P!==void 0?P:null);var N;a==="last"&&(z=(N=(R=r.getLastKey)===null||R===void 0?void 0:R.call(r))!==null&&N!==void 0?N:null);let U=t.selectedKeys;if(U.size){for(let K of U)if(t.canSelectItem(K)){z=K;break}}t.setFocused(!0),t.setFocusedKey(z),z==null&&!d&&n.current&&Va(n.current),t.collection.size>0&&(D.current=!1,L.current=!0)}});let w=g.useRef(t.focusedKey),I=g.useRef(null);g.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==w.current||L.current)&&b.current&&n.current){let A=fu(),R=Ed(n,t.focusedKey);if(!(R instanceof HTMLElement))return;(A==="keyboard"||L.current)&&(I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{b.current&&(A3(b.current,R),A!=="virtual"&&j$(R,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&w.current!=null&&n.current&&Va(n.current),w.current=t.focusedKey,L.current=!1}),g.useEffect(()=>()=>{I.current&&cancelAnimationFrame(I.current)},[]),hs(n,"react-aria-focus-scope-restore",A=>{A.preventDefault(),t.setFocused(!0)});let k={onKeyDown:y,onFocus:x,onBlur:T,onMouseDown(A){b.current===A.target&&A.preventDefault()}},{typeSelectProps:M}=Rte({keyboardDelegate:r,selectionManager:t});c||(k=oe(M,k));let B;d||(B=t.focusedKey==null?0:-1);let $=Ate(t.collection);return{collectionProps:oe(k,{tabIndex:B,"data-collection":$})}}function n4(e){let{id:t,selectionManager:r,key:n,ref:a,shouldSelectOnPressUp:l,shouldUseVirtualFocus:i,focus:o,isDisabled:s,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,f=wp();t=Ot(t);let p=N=>{if(N.pointerType==="keyboard"&&fy(N))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(d==="selection"&&a.current){let z=r.getItemProps(n);f.open(a.current,N,z.href,z.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(d==="override"||d==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):N&&N.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||N&&(di(N)||N.pointerType==="touch"||N.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};g.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(i?yD(a.current):o?o():document.activeElement!==a.current&&a.current&&Va(a.current))},[a,n,r.focusedKey,r.childFocusStrategy,r.isFocused,i]),s=s||r.isDisabled(n);let b={};!i&&!s?b={tabIndex:n===r.focusedKey?0:-1,onFocus(N){N.target===a.current&&r.setFocusedKey(n)}}:s&&(b.onMouseDown=N=>{N.preventDefault()});let v=r.isLink(n)&&d==="override",S=u&&e.UNSTABLE_itemBehavior==="action",h=r.isLink(n)&&d!=="selection"&&d!=="none",y=!s&&r.canSelectItem(n)&&!v&&!S,E=(u||h)&&!s,x=E&&(r.selectionBehavior==="replace"?!y:!y||r.isEmpty),T=E&&y&&r.selectionBehavior==="replace",_=x||T,C=g.useRef(null),O=_&&y,D=g.useRef(!1),L=g.useRef(!1),w=r.getItemProps(n),I=N=>{if(u){var z;u(),(z=a.current)===null||z===void 0||z.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}h&&a.current&&f.open(a.current,N,w.href,w.routerOptions)},k={ref:a};if(l?(k.onPressStart=N=>{C.current=N.pointerType,D.current=O,N.pointerType==="keyboard"&&(!_||G_())&&p(N)},c?(k.onPressUp=x?void 0:N=>{N.pointerType==="mouse"&&y&&p(N)},k.onPress=x?I:N=>{N.pointerType!=="keyboard"&&N.pointerType!=="mouse"&&y&&p(N)}):k.onPress=N=>{if(x||T&&N.pointerType!=="mouse"){if(N.pointerType==="keyboard"&&!K_())return;I(N)}else N.pointerType!=="keyboard"&&y&&p(N)}):(k.onPressStart=N=>{C.current=N.pointerType,D.current=O,L.current=x,y&&(N.pointerType==="mouse"&&!x||N.pointerType==="keyboard"&&(!E||G_()))&&p(N)},k.onPress=N=>{(N.pointerType==="touch"||N.pointerType==="pen"||N.pointerType==="virtual"||N.pointerType==="keyboard"&&_&&K_()||N.pointerType==="mouse"&&L.current)&&(_?I(N):y&&p(N))}),b["data-collection"]=Ote(r.collection),b["data-key"]=n,k.preventFocusOnPress=i,i&&(k=oe(k,{onPressStart(N){N.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(N){N.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),w)for(let N of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])w[N]&&(k[N]=Pu(k[N],w[N]));let{pressProps:M,isPressed:B}=Iu(k),$=T?N=>{C.current==="mouse"&&(N.stopPropagation(),N.preventDefault(),I(N))}:void 0,{longPressProps:A}=_Z({isDisabled:!O,onLongPress(N){N.pointerType==="touch"&&(p(N),r.setSelectionBehavior("toggle"))}}),R=N=>{C.current==="touch"&&D.current&&N.preventDefault()},P=d!=="none"&&r.isLink(n)?N=>{Il.isOpening||N.preventDefault()}:void 0;return{itemProps:oe(b,y||x||i&&!s?M:{},O?A:{},{onDoubleClick:$,onDragStartCapture:R,onClick:P,id:t},i?{onMouseDown:N=>N.preventDefault()}:void 0),isPressed:B,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:s,allowsSelection:y,hasAction:_}}function K_(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function G_(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}var V_=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let r=e!=null?Ed(this.ref,e):null;if(!r)return null;let n=t.getBoundingClientRect(),a=r.getBoundingClientRect();return{x:a.left-n.left-t.clientLeft+t.scrollLeft,y:a.top-n.top-t.clientTop+t.scrollTop,width:a.width,height:a.height}}getContentSize(){let e=this.ref.current;var t,r;return{width:(t=e==null?void 0:e.scrollWidth)!==null&&t!==void 0?t:0,height:(r=e==null?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var t,r,n,a;return{x:(t=e==null?void 0:e.scrollLeft)!==null&&t!==void 0?t:0,y:(r=e==null?void 0:e.scrollTop)!==null&&r!==void 0?r:0,width:(n=e==null?void 0:e.clientWidth)!==null&&n!==void 0?n:0,height:(a=e==null?void 0:e.clientHeight)!==null&&a!==void 0?a:0}}constructor(e){this.ref=e}},Lte=class{isDisabled(e){var t;return this.disabledBehavior==="all"&&(((t=e.props)===null||t===void 0?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let r=e;for(;r!=null;){let n=this.collection.getItem(r);if((n==null?void 0:n.type)==="item"&&!this.isDisabled(n))return r;r=t(r)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}findKey(e,t,r){let n=e,a=this.layoutDelegate.getItemRect(n);if(!a||n==null)return null;let l=a;do{if(n=t(n),n==null)break;a=this.layoutDelegate.getItemRect(n)}while(a&&r(l,a)&&n!=null);return n}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getNextKey(t),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getPreviousKey(t),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let t=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyAfter(t))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyBefore(t))}getKeyPageAbove(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!so(t))return this.getFirstKey();let n=e;if(this.orientation==="horizontal"){let a=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>a&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let a=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>a&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!so(t))return this.getLastKey();let n=e;if(this.orientation==="horizontal"){let a=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<a&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let a=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<a&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let r=this.collection,n=t||this.getFirstKey();for(;n!=null;){let a=r.getItem(n);if(!a)return null;let l=a.textValue.slice(0,e.length);if(a.textValue&&this.collator.compare(l,e)===0)return n;n=this.getNextKey(n)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new V_(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new V_(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function Mte(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:a,keyboardDelegate:l,layoutDelegate:i}=e,o=jQ({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,u=g.useMemo(()=>l||new Lte({collection:r,disabledKeys:n,disabledBehavior:s,ref:a,collator:o,layoutDelegate:i}),[l,i,r,n,a,o,s]),{collectionProps:c}=r4({...e,ref:a,selectionManager:t,keyboardDelegate:u});return{listProps:c}}function Fte(e,t,r){let{shouldFocusWrap:n=!0,onKeyDown:a,onKeyUp:l,...i}=e;!e["aria-label"]&&e["aria-labelledby"];let o=Ve(e,{labelable:!0}),{listProps:s}=Mte({...i,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return e4.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:oe(o,{onKeyDown:a,onKeyUp:l},{role:"menu",...s,onKeyDown:u=>{var c;(u.key!=="Escape"||e.shouldUseVirtualFocus)&&((c=s.onKeyDown)===null||c===void 0||c.call(s,u))}})}}function a4(e){return null}a4.getCollectionNode=function*(e,t){let{childItems:r,title:n,children:a}=e,l=e.title||e.children,i=e.textValue||(typeof l=="string"?l:"")||e["aria-label"]||"";!i&&(t!=null&&t.suppressTextValueWarning),yield{type:"item",props:e,rendered:l,textValue:i,"aria-label":e["aria-label"],hasChildNodes:Bte(e),*childNodes(){if(r)for(let o of r)yield{type:"item",value:o};else if(n){let o=[];m.Children.forEach(a,s=>{o.push({type:"item",element:s})}),yield*o}}}};function Bte(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&m.Children.count(e.children)>0)}var Pte=a4,Ite=class{build(e,t){return this.context=t,Y_(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:r}=e;if(m.isValidElement(t)&&t.type===m.Fragment)yield*this.iterateCollection({children:t.props.children,items:r});else if(typeof t=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let n=0;for(let a of r)yield*this.getFullNode({value:a,index:n},{renderer:t}),n++}else{let n=[];m.Children.forEach(t,l=>{l&&n.push(l)});let a=0;for(let l of n){let i=this.getFullNode({element:l,index:a},{});for(let o of i)a++,yield o}}}getKey(e,t,r,n){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return`${n}${t.key}`;let a=t.value;if(a!=null){var l;let i=(l=a.key)!==null&&l!==void 0?l:a.id;if(i==null)throw new Error("No key found for item");return i}return n?`${n}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,r,n){if(m.isValidElement(e.element)&&e.element.type===m.Fragment){let v=[];m.Children.forEach(e.element.props.children,h=>{v.push(h)});var a;let S=(a=e.index)!==null&&a!==void 0?a:0;for(let h of v)yield*this.getFullNode({element:h,index:S++},t,r,n);return}let l=e.element;if(!l&&e.value&&t&&t.renderer){let v=this.cache.get(e.value);if(v&&(!v.shouldInvalidate||!v.shouldInvalidate(this.context))){v.index=e.index,v.parentKey=n?n.key:null,yield v;return}l=t.renderer(e.value)}if(m.isValidElement(l)){let v=l.type;if(typeof v!="function"&&typeof v.getCollectionNode!="function"){let E=l.type;throw new Error(`Unknown element <${E}> in collection.`)}let S=v.getCollectionNode(l.props,this.context);var i;let h=(i=e.index)!==null&&i!==void 0?i:0,y=S.next();for(;!y.done&&y.value;){let E=y.value;e.index=h;var o;let x=(o=E.key)!==null&&o!==void 0?o:null;x==null&&(x=E.element?null:this.getKey(l,e,t,r));let T=[...this.getFullNode({...E,key:x,index:h,wrapper:kte(e.wrapper,E.wrapper)},this.getChildState(t,E),r?`${r}${l.key}`:l.key,n)];for(let _ of T){var s,u;_.value=(u=(s=E.value)!==null&&s!==void 0?s:e.value)!==null&&u!==void 0?u:null,_.value&&this.cache.set(_.value,_);var c;if(e.type&&_.type!==e.type)throw new Error(`Unsupported type <${Ug(_.type)}> in <${Ug((c=n==null?void 0:n.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${Ug(e.type)}> is supported.`);h++,yield _}y=S.next(T)}return}if(e.key==null||e.type==null)return;let d=this;var f,p;let b={type:e.type,props:e.props,key:e.key,parentKey:n?n.key:null,value:(f=e.value)!==null&&f!==void 0?f:null,level:n?n.level+1:0,index:e.index,rendered:e.rendered,textValue:(p=e.textValue)!==null&&p!==void 0?p:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Y_(function*(){if(!e.hasChildNodes||!e.childNodes)return;let v=0;for(let S of e.childNodes()){S.key!=null&&(S.key=`${b.key}${S.key}`);let h=d.getFullNode({...S,index:v},d.getChildState(t,S),b.key,b);for(let y of h)v++,yield y}})};yield b}constructor(){this.cache=new WeakMap}};function Y_(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function kte(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Ug(e){return e[0].toUpperCase()+e.slice(1)}function l4(e,t,r){let n=g.useMemo(()=>new Ite,[]),{children:a,items:l,collection:i}=e;return g.useMemo(()=>{if(i)return i;let o=n.build({children:a,items:l},r);return t(o)},[n,a,l,i,r,t])}function i4(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function zte(e){return Hte(e)}function Hte(e,t){for(let r of e)return r}function jg(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...q_(e,t),t],a=[...q_(e,r),r],l=n.slice(0,a.length).findIndex((i,o)=>i!==a[o]);return l!==-1?(t=n[l],r=a[l],t.index-r.index):n.findIndex(i=>i===r)>=0?1:(a.findIndex(i=>i===t)>=0,-1)}function q_(e,t){let r=[],n=t;for(;(n==null?void 0:n.parentKey)!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}var W_=new WeakMap;function Ute(e){let t=W_.get(e);if(t!=null)return t;let r=0,n=a=>{for(let l of a)l.type==="section"?n(i4(l,e)):l.type==="item"&&r++};return n(e),W_.set(e,r),r}function jte(e,t,r){let{id:n,key:a,closeOnSelect:l,isVirtualized:i,"aria-haspopup":o,onPressStart:s,onPressUp:u,onPress:c,onPressChange:d,onPressEnd:f,onClick:p,onHoverStart:b,onHoverChange:v,onHoverEnd:S,onKeyDown:h,onKeyUp:y,onFocus:E,onFocusChange:x,onBlur:T,selectionManager:_=t.selectionManager}=e,C=!!o,O=C&&e["aria-expanded"]==="true";var D;let L=(D=e.isDisabled)!==null&&D!==void 0?D:_.isDisabled(a);var w;let I=(w=e.isSelected)!==null&&w!==void 0?w:_.isSelected(a),k=e4.get(t),M=t.collection.getItem(a),B=e.onClose||k.onClose,$=wp(),A=()=>{var Q;if(!C&&(!(M==null||(Q=M.props)===null||Q===void 0)&&Q.onAction?M.props.onAction():e.onAction&&e.onAction(a),k.onAction)){let kt=k.onAction;kt(a)}},R="menuitem";C||(_.selectionMode==="single"?R="menuitemradio":_.selectionMode==="multiple"&&(R="menuitemcheckbox"));let P=gd(),N=gd(),z=gd(),U={id:n,"aria-disabled":L||void 0,role:R,"aria-label":e["aria-label"],"aria-labelledby":P,"aria-describedby":[N,z].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":o,"aria-expanded":e["aria-expanded"]};_.selectionMode!=="none"&&!C&&(U["aria-checked"]=I),i&&(U["aria-posinset"]=M==null?void 0:M.index,U["aria-setsize"]=Ute(t.collection));let K=g.useRef(!1),G=Q=>{d==null||d(Q),K.current=Q},H=g.useRef(null),V=Q=>{Q.pointerType!=="keyboard"&&(H.current={pointerType:Q.pointerType}),Q.pointerType==="mouse"&&(K.current||Q.target.click()),u==null||u(Q)},q=Q=>{var kt,jr;p==null||p(Q),A(),MX(Q,$,M.props.href,M==null?void 0:M.props.routerOptions);let ir=((kt=H.current)===null||kt===void 0?void 0:kt.pointerType)==="keyboard"?((jr=H.current)===null||jr===void 0?void 0:jr.key)==="Enter"||_.selectionMode==="none"||_.isLink(a):_.selectionMode!=="multiple"||_.isLink(a);ir=l??ir,B&&!C&&ir&&B(),H.current=null},{itemProps:ee,isFocused:W}=n4({id:n,selectionManager:_,key:a,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:k.shouldUseVirtualFocus}),{pressProps:ke,isPressed:J}=Iu({onPressStart:s,onPress:c,onPressUp:V,onPressChange:G,onPressEnd:f,isDisabled:L}),{hoverProps:Y}=Lo({isDisabled:L,onHoverStart(Q){!du()&&!(O&&o)&&(_.setFocused(!0),_.setFocusedKey(a)),b==null||b(Q)},onHoverChange:v,onHoverEnd:S}),{keyboardProps:X}=j3({onKeyDown:Q=>{if(Q.repeat){Q.continuePropagation();return}switch(Q.key){case" ":H.current={pointerType:"keyboard",key:" "},Q.target.click();break;case"Enter":H.current={pointerType:"keyboard",key:"Enter"},Q.target.tagName!=="A"&&Q.target.click();break;default:C||Q.continuePropagation(),h==null||h(Q);break}},onKeyUp:y}),{focusProps:le}=H1({onBlur:T,onFocus:E,onFocusChange:x}),ye=Ve(M==null?void 0:M.props);delete ye.id;let It=C3(M==null?void 0:M.props);return{menuItemProps:{...U,...oe(ye,It,C?{onFocus:ee.onFocus,"data-collection":ee["data-collection"],"data-key":ee["data-key"]}:ee,ke,Y,X,le,k.shouldUseVirtualFocus||C?{onMouseDown:Q=>Q.preventDefault()}:void 0,L?void 0:{onClick:q}),tabIndex:ee.tabIndex!=null&&O&&!k.shouldUseVirtualFocus?-1:ee.tabIndex},labelProps:{id:P},descriptionProps:{id:N},keyboardShortcutProps:{id:z},isFocused:W,isFocusVisible:W&&_.isFocused&&du()&&!O,isSelected:I,isPressed:J,isDisabled:L}}function Kte(e){let{heading:t,"aria-label":r}=e,n=Ot();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}var Pc=2,Gte=50,Vte=1e3,X_=Math.PI/12;function Yte(e){let{menuRef:t,submenuRef:r,isOpen:n,isDisabled:a}=e,l=g.useRef(void 0),i=g.useRef(void 0),o=g.useRef(0),s=g.useRef(void 0),u=g.useRef(void 0),c=g.useRef(void 0),d=g.useRef(2),[f,p]=g.useState(!1);hf({ref:r,onResize:()=>{r.current&&(i.current=r.current.getBoundingClientRect(),c.current=void 0)}});let b=()=>{p(!1),d.current=Pc,l.current=void 0},v=dZ(),S=xt(h=>{f&&h.preventDefault()});g.useEffect(()=>{f&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,f]),g.useEffect(()=>{let h=r.current,y=t.current;if(a||!h||!n||v!=="pointer"||!y){b();return}i.current=h.getBoundingClientRect();let E=x=>{if(x.pointerType==="touch"||x.pointerType==="pen")return;let T=Date.now();if(T-o.current<Gte)return;clearTimeout(s.current),clearTimeout(u.current);let{clientX:_,clientY:C}=x;if(!l.current){l.current={x:_,y:C};return}if(!i.current)return;if(c.current||(c.current=_>i.current.right?"left":"right"),_<y.getBoundingClientRect().left||_>y.getBoundingClientRect().right||C<y.getBoundingClientRect().top||C>y.getBoundingClientRect().bottom){b();return}let O=l.current.x,D=l.current.y,L=c.current==="right"?i.current.left-O:O-i.current.right,w=Math.atan2(D-i.current.top,L)+X_,I=Math.atan2(D-i.current.bottom,L)-X_,k=Math.atan2(D-C,c.current==="left"?-(_-O):_-O),M=k<w&&k>I;d.current=M?Math.min(d.current+1,Pc):Math.max(d.current-1,0),d.current>=Pc?p(!0):p(!1),o.current=T,l.current={x:_,y:C},M&&(s.current=setTimeout(()=>{b(),u.current=setTimeout(()=>{let B=document.elementFromPoint(_,C);B&&y.contains(B)&&B.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},Vte))};return window.addEventListener("pointermove",E),window.addEventListener("pointerdown",S,!0),()=>{window.removeEventListener("pointermove",E),window.removeEventListener("pointerdown",S,!0),clearTimeout(s.current),clearTimeout(u.current),d.current=Pc}},[a,n,t,v,p,S,r])}function qte(e,t,r){let{parentMenuRef:n,submenuRef:a,type:l="menu",isDisabled:i,delay:o=200,shouldUseVirtualFocus:s}=e,u=Ot(),c=Ot(),{direction:d}=ua(),f=g.useRef(void 0),p=g.useCallback(()=>{f.current&&(clearTimeout(f.current),f.current=void 0)},[f]),b=xt(O=>{p(),t.open(O)}),v=xt(()=>{p(),t.close()});ve(()=>()=>{p()},[p]);let S=O=>{if(O.currentTarget.contains(document.activeElement))switch(O.key){case"ArrowLeft":d==="ltr"&&O.currentTarget.contains(O.target)&&(O.preventDefault(),O.stopPropagation(),v(),!s&&r.current&&Qt(r.current));break;case"ArrowRight":d==="rtl"&&O.currentTarget.contains(O.target)&&(O.preventDefault(),O.stopPropagation(),v(),!s&&r.current&&Qt(r.current));break;case"Escape":var D;!((D=a.current)===null||D===void 0)&&D.contains(O.target)&&(O.stopPropagation(),v(),!s&&r.current&&Qt(r.current));break}};var h;let y={id:c,"aria-labelledby":u,submenuLevel:t.submenuLevel,...l==="menu"&&{onClose:t.closeAll,autoFocus:(h=t.focusStrategy)!==null&&h!==void 0?h:void 0,onKeyDown:S}},E=O=>{switch(O.key){case"ArrowRight":i||(d==="ltr"?(O.preventDefault(),t.isOpen||b("first"),l==="menu"&&(a!=null&&a.current)&&document.activeElement===(r==null?void 0:r.current)&&Qt(a.current)):t.isOpen?v():O.continuePropagation());break;case"ArrowLeft":i||(d==="rtl"?(O.preventDefault(),t.isOpen||b("first"),l==="menu"&&(a!=null&&a.current)&&document.activeElement===(r==null?void 0:r.current)&&Qt(a.current)):t.isOpen?v():O.continuePropagation());break;default:O.continuePropagation();break}},x=O=>{!i&&(O.pointerType==="virtual"||O.pointerType==="keyboard")&&b("first")},T=O=>{!i&&(O.pointerType==="touch"||O.pointerType==="mouse")&&b()},_=O=>{i||(O&&!t.isOpen?f.current||(f.current=setTimeout(()=>{b()},o)):O||p())};hs(n,"focusin",O=>{var D;t.isOpen&&!((D=n.current)===null||D===void 0)&&D.contains(O.target)&&O.target!==r.current&&v()});let C=O=>O!==r.current;return Yte({menuRef:n,submenuRef:a,isOpen:t.isOpen,isDisabled:i}),{submenuTriggerProps:{id:u,"aria-controls":t.isOpen?c:void 0,"aria-haspopup":i?void 0:l,"aria-expanded":t.isOpen?"true":"false",onPressStart:x,onPress:T,onHoverChange:_,onKeyDown:E,isOpen:t.isOpen},submenuProps:y,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:C}}}function o4(e){let t=zu(e),[r,n]=g.useState(null),[a,l]=g.useState([]),i=()=>{l([]),t.close()};return{focusStrategy:r,...t,open(o=null){n(o),t.open()},toggle(o=null){n(o),t.toggle()},close(){i()},expandedKeysStack:a,openSubmenu:(o,s)=>{l(u=>s>u.length?u:[...u.slice(0,s),o])},closeSubmenu:(o,s)=>{l(u=>u[s]===o?u.slice(0,s):u)}}}function Wte(e,t){let{triggerKey:r}=e,{expandedKeysStack:n,openSubmenu:a,closeSubmenu:l,close:i}=t,[o]=g.useState(n==null?void 0:n.length),s=g.useMemo(()=>n[o]===r,[n,r,o]),[u,c]=g.useState(null),d=g.useCallback(b=>{c(b??null),a(r,o)},[a,o,r]),f=g.useCallback(()=>{c(null),l(r,o)},[l,o,r]),p=g.useCallback(b=>{c(b??null),s?f():d(b)},[f,d,s]);return g.useMemo(()=>({focusStrategy:u,isOpen:s,open:d,close:f,closeAll:i,submenuLevel:o,setOpen:()=>{},toggle:p}),[s,d,f,i,u,p,o])}var Xte=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var r;return t&&(r=t.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let t=this.keyMap.get(e);var r;return t&&(r=t.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t=t||new Set;let r=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&(i.type==="section"||t.has(i.key)))for(let o of i.childNodes)r(o)};for(let i of e)r(i);let n=null,a=0;for(let[i,o]of this.keyMap)n?(n.nextKey=i,o.prevKey=n.key):(this.firstKey=i,o.prevKey=void 0),o.type==="item"&&(o.index=a++),n=o,n.nextKey=void 0;var l;this.lastKey=(l=n==null?void 0:n.key)!==null&&l!==void 0?l:null}},zn=class s4 extends Set{constructor(t,r,n){super(t),t instanceof s4?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}};function Zte(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function nv(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:a="toggle",disabledBehavior:l="all"}=e,i=g.useRef(!1),[,o]=g.useState(!1),s=g.useRef(null),u=g.useRef(null),[,c]=g.useState(null),d=g.useMemo(()=>Z_(e.selectedKeys),[e.selectedKeys]),f=g.useMemo(()=>Z_(e.defaultSelectedKeys,new zn),[e.defaultSelectedKeys]),[p,b]=Dp(d,f,e.onSelectionChange),v=g.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[S,h]=g.useState(a);a==="replace"&&S==="toggle"&&typeof p=="object"&&p.size===0&&h("replace");let y=g.useRef(a);return g.useEffect(()=>{a!==y.current&&(h(a),y.current=a)},[a]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:S,setSelectionBehavior:h,get isFocused(){return i.current},setFocused(E){i.current=E,o(E)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(E,x="first"){s.current=E,u.current=x,c(E)},selectedKeys:p,setSelectedKeys(E){(n||!Zte(E,p))&&b(E)},disabledKeys:v,disabledBehavior:l}}function Z_(e,t){return e?e==="all"?"all":new zn(e):t}var av=class u4{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let a=this.collection.getItem(n);(!t||a&&jg(this.collection,a,t)<0)&&(t=a)}var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let a=this.collection.getItem(n);(!t||a&&jg(this.collection,a,t)>0)&&(t=a)}var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new zn([r],r,r);else{let i=this.state.selectedKeys;var a;let o=(a=i.anchorKey)!==null&&a!==void 0?a:r;n=new zn(i,o,r);var l;for(let s of this.getKeyRange(o,(l=i.currentKey)!==null&&l!==void 0?l:r))n.delete(s);for(let s of this.getKeyRange(r,o))this.canSelectItem(s)&&n.add(s)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),a=this.collection.getItem(r);return n&&a?jg(this.collection,n,a)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let a=[],l=t;for(;l!=null;){let i=this.collection.getItem(l);if(i&&(i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&a.push(l),l===r)return a;l=this.collection.getKeyAfter(l)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new zn(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new zn([r],r,r):new zn;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new zn;for(let n of t){let a=this.getKey(n);if(a!=null&&(r.add(a),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var a;let i=this.collection.getItem(n);(i==null?void 0:i.type)==="item"&&t.push(n);var l;i!=null&&i.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&r((l=(a=zte(i4(i,this.collection)))===null||a===void 0?void 0:a.key)!==null&&l!==void 0?l:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new zn)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}withCollection(t){return new u4(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,r,n){this.collection=t,this.state=r;var a;this.allowsCellSelection=(a=n==null?void 0:n.allowsCellSelection)!==null&&a!==void 0?a:!1,this._isSelectAll=null,this.layoutDelegate=(n==null?void 0:n.layoutDelegate)||null}};function Qte(e){let{onExpandedChange:t}=e,[r,n]=Dp(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),a=nv(e),l=g.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=l4(e,g.useCallback(o=>new Xte(o,{expandedKeys:r}),[r]),null);return g.useEffect(()=>{a.focusedKey!=null&&!i.getItem(a.focusedKey)&&a.setFocusedKey(null)},[i,a.focusedKey]),{collection:i,expandedKeys:r,disabledKeys:l,toggleKey:o=>{n(Jte(r,o))},setExpandedKeys:n,selectionManager:new av(i,a)}}function Jte(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}var c4=g.createContext(null),Pp=g.createContext(null),Cf=g.createContext(null),Tf=g.createContext(null),d4=g.createContext(null),f4=class extends Ql{filter(e,t,r){let n=e.getItem(this.firstChildKey);if(n&&r(n.textValue,this)){let a=this.clone();return t.addDescendants(a,e),a}return null}};f4.type="submenutrigger";tv(f4,(e,t,r)=>{let{CollectionBranch:n}=g.useContext(ju),a=g.useContext(Pp),l=g.useContext(Cf),i=Wte({triggerKey:r.key},l),o=g.useRef(null),s=an(t),{parentMenuRef:u,shouldUseVirtualFocus:c}=g.useContext(d4),{submenuTriggerProps:d,submenuProps:f,popoverProps:p}=qte({parentMenuRef:u,submenuRef:o,delay:e.delay,shouldUseVirtualFocus:c},i,s);return m.createElement(sa,{values:[[wf,{...d,onAction:void 0,ref:s}],[c4,{ref:o,...f}],[Ip,i],[rv,{trigger:"SubmenuTrigger",triggerRef:s,placement:"end top","aria-labelledby":f["aria-labelledby"],...p}]]},m.createElement(n,{collection:a.collection,parent:r}),e.children[1])},e=>e.children[0]);g.forwardRef(function(e,t){return[e,t]=Bt(e,t,c4),m.createElement(zR,{content:m.createElement(jR,e)},r=>m.createElement(ere,{props:e,collection:r,menuRef:t}))});function ere({props:e,collection:t,menuRef:r}){[e,r]=Bt(e,r,j_);let{filter:n,...a}=e,l=g.useMemo(()=>n?t.filter(n):t,[t,n]),i=Qte({...e,collection:l,children:void 0}),o=g.useContext(Cf),{isVirtualized:s,CollectionRoot:u}=g.useContext(ju),{menuProps:c}=Fte({...e,isVirtualized:s,onClose:e.onClose||(o==null?void 0:o.close)},i,r),d=Sr({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:i.collection.size===0}}),f=null;i.collection.size===0&&e.renderEmptyState&&(f=m.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let p=Ve(e,{global:!0});return m.createElement(Y1,null,m.createElement("div",{...oe(p,d,c),ref:r,slot:e.slot||void 0,"data-empty":i.collection.size===0||void 0,onScroll:e.onScroll},m.createElement(sa,{values:[[Pp,i],[QR,{elementType:"div"}],[YR,{name:"MenuSection",render:p4}],[d4,{parentMenuRef:r,shouldUseVirtualFocus:a==null?void 0:a.shouldUseVirtualFocus}],[wf,null],[j_,null],[Tte,null],[Tf,i.selectionManager],[Cf,o??o4({})]]},m.createElement(u,{collection:i.collection,persistedKeys:WR(i.selectionManager.focusedKey),scrollRef:r})),f))}var tre=class extends av{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,t){super(e.collection,t),this.parent=e}};function p4(e,t,r,n="react-aria-MenuSection"){var a,l;let i=g.useContext(Pp),{CollectionBranch:o}=g.useContext(ju),[s,u]=G3();var c;let{headingProps:d,groupProps:f}=Kte({heading:u,"aria-label":(c=r.props["aria-label"])!==null&&c!==void 0?c:void 0}),p=Sr({defaultClassName:n,className:(a=r.props)===null||a===void 0?void 0:a.className,style:(l=r.props)===null||l===void 0?void 0:l.style,values:{}}),b=g.useContext(Tf),v=nv(e),S=e.selectionMode!=null?new tre(b,v):b,h=Ve(e,{global:!0});return delete h.id,m.createElement("section",{...oe(h,p,f),ref:t},m.createElement(sa,{values:[[XR,{...d,ref:s}],[Tf,S]]},m.createElement(o,{collection:i.collection,parent:r})))}tv(FR,p4);var wf=g.createContext(null);Bp(MR,function(e,t,r){var n;[e,t]=Bt(e,t,wf);let a=(n=j1(wf))===null||n===void 0?void 0:n.id,l=g.useContext(Pp),i=an(t),o=g.useContext(Tf),{menuItemProps:s,labelProps:u,descriptionProps:c,keyboardShortcutProps:d,...f}=jte({...e,id:a,key:r.key,selectionManager:o},l,i),{hoverProps:p,isHovered:b}=Lo({isDisabled:f.isDisabled}),v=Sr({...e,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...f,isHovered:b,isFocusVisible:f.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),S=e.href?"a":"div",h=Ve(e,{global:!0});return delete h.id,delete h.onClick,m.createElement(S,{...oe(h,v,s,p),ref:i,"data-disabled":f.isDisabled||void 0,"data-hovered":b||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-selected":f.isSelected||void 0,"data-selection-mode":o.selectionMode==="none"?void 0:o.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},m.createElement(sa,{values:[[mR,{slots:{[vf]:u,label:u,description:c}}],[ZR,d]]},v.children))});function rre(e,t){let{role:r="dialog"}=e,n=gd();n=e["aria-label"]?void 0:n;let a=g.useRef(!1);return g.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Va(t.current);let l=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(a.current=!0,t.current&&(t.current.blur(),Va(t.current)),a.current=!1)},500);return()=>{clearTimeout(l)}}},[t]),nR(),{dialogProps:{...Ve(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:l=>{a.current&&l.stopPropagation()}},titleProps:{id:n}}}var h4=g.createContext(null),Ip=g.createContext(null);function nre(e){let t=o4(e),r=g.useRef(null),{triggerProps:n,overlayProps:a}=aJ({},t,r),[l,i]=g.useState(null),o=g.useCallback(()=>{r.current&&i(r.current.offsetWidth+"px")},[r]);return hf({ref:r,onResize:o}),n.id=Ot(),a["aria-labelledby"]=n.id,m.createElement(sa,{values:[[Ip,t],[Cf,t],[h4,a],[rv,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":a["aria-labelledby"],style:{"--trigger-width":l}}]]},m.createElement(vZ,{...n,ref:r,isPressed:t.isOpen},e.children))}g.forwardRef(function(e,t){let r=e["aria-labelledby"];[e,t]=Bt(e,t,h4);let{dialogProps:n,titleProps:a}=rre({...e,"aria-labelledby":r},t),l=g.useContext(Ip);!n["aria-label"]&&!n["aria-labelledby"]&&(e["aria-labelledby"]&&(n["aria-labelledby"]=e["aria-labelledby"]));let i=Sr({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(l==null?void 0:l.close)||(()=>{})}}),o=Ve(e,{global:!0});return m.createElement("section",{...oe(o,i,n),ref:t,slot:e.slot||void 0},m.createElement(sa,{values:[[gR,{slots:{[vf]:{},title:{...a,level:2}}}],[VR,{slots:{[vf]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},i.children))});var lv=({ariaLabel:e,placement:t="bottom-start",hasChrome:r=!0,hasCloseButton:n=!1,closeLabel:a,offset:l=8,padding:i,popover:o,children:s,defaultVisible:u,visible:c,onVisibleChange:d,...f})=>{e||ite("The 'ariaLabel' prop on 'PopoverProvider' will become mandatory in Storybook 11. Provide a concise, accessible label describing the popover's purpose.");let p=X1(t),[b,v]=g.useState(u??!1),S=g.useCallback(y=>{v(y),d==null||d(y)},[d]),h=g.useCallback(()=>S(!1),[S]);return m.createElement(nre,{defaultOpen:u,isOpen:c??b,onOpenChange:S,...f},m.createElement(bZ,null,g.cloneElement(s,{"aria-haspopup":"dialog"})),m.createElement($te,{"aria-label":e,placement:p,offset:l,style:{outline:"none"}},m.createElement(Uu,{hasChrome:r,hideLabel:a,onHide:n?h:void 0,padding:i},typeof o=="function"?o({onHide:h}):o)))},g4=g.forwardRef((e,t)=>m.createElement(Uu,{ref:t,...e}));g4.displayName="Tooltip";g.lazy(()=>Qn(()=>import("./WithTooltip-65CFNBJE-CXtzAlgs.js"),__vite__mapDeps([5,1,2,3]),import.meta.url).then(e=>({default:e.WithTooltip})));g.lazy(()=>Qn(()=>import("./WithTooltip-65CFNBJE-CXtzAlgs.js"),__vite__mapDeps([5,1,2,3]),import.meta.url).then(e=>({default:e.WithTooltipPure})));const{deprecate:dpe}=__STORYBOOK_MODULE_CLIENT_LOGGER__;F.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));F.span();F.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}}));F.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"}));F.div({padding:15,width:280,boxSizing:"border-box"});const{deprecate:are}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var lre=Kt(Gl(),1);const{deprecate:ire}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ore=F(({active:e,loading:t,disabled:r,...n})=>m.createElement("span",{...n}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:t.textMutedColor}:{}),sre=F.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"}}),ure=F.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column",minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),cre=F.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),dre=F.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),fre=F.button(({theme:e})=>({width:"100%",minWidth:0,border:"none",borderRadius:e.appBorderRadius,background:"none",fontSize:e.typography.size.s1,transition:"background 150ms ease-out",color:e.color.dark,textDecoration:"none",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:0}}),({theme:e,href:t,onClick:r})=>(t||r)&&{cursor:"pointer","&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}},({theme:e,as:t})=>t==="label"&&{"&:has(input:not(:disabled))":{cursor:"pointer","&:hover":{background:e.background.hoverable}}},({disabled:e})=>e&&{cursor:"not-allowed"}),pre=(0,lre.default)(100)(({onClick:e,input:t,href:r,LinkWrapper:n})=>({...e&&{as:"button",role:"button",onClick:e},...t&&{as:"label"},...r&&{as:"a",role:"link",href:r,...n&&{as:n,to:r}}})),m4=g.forwardRef((e,t)=>{let{loading:r=!1,title:n=m.createElement("span",null,"Loading state"),center:a=null,right:l=null,active:i=!1,disabled:o=!1,isIndented:s=!1,href:u=void 0,onClick:c=void 0,icon:d,input:f,LinkWrapper:p=void 0,...b}=e,v={active:i,disabled:o},S=pre(e),h=d||f;return ire("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),m.createElement(fre,{"data-deprecated":"ListItem",ref:t,...b,...v,...S},m.createElement(m.Fragment,null,h&&m.createElement(dre,{...v},h),n||a?m.createElement(ure,{isIndented:s&&!h},n&&m.createElement(ore,{...v,loading:r},n),a&&m.createElement(cre,{...v},a)):null,l&&m.createElement(sre,{...v},l)))});m4.displayName="ListItem";var y4=m4,hre=F.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32+8},({theme:e})=>({borderRadius:e.appBorderRadius+2}),({theme:e})=>e.base==="dark"?{background:e.background.content}:{}),gre=F.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),mre=({id:e,onClick:t,...r})=>{let{active:n,disabled:a,title:l,href:i}=r,o=g.useCallback(s=>t==null?void 0:t(s,{id:e,active:n,disabled:a,title:l,href:i}),[t,e,n,a,l,i]);return m.createElement(y4,{id:`list-item-${e}`,...r,...t&&{onClick:o}})},b4=({links:e,LinkWrapper:t,...r})=>{are("`TooltipLinkList` is deprecated and will be removed in Storybook 11, use `ActionList` or `MenuItem` and `WithMenu` instead.");let n=Array.isArray(e[0])?e:[e],a=n.some(l=>l.some(i=>"icon"in i&&i.icon||"input"in i&&i.input));return m.createElement(hre,{"data-deprecated":"TooltipLinkList",...r,className:"sb-list"},n.filter(l=>l.length).map((l,i)=>m.createElement(gre,{key:l.map(o=>o.id).join(`~${i}~`)},l.map(o=>"content"in o?m.createElement(g.Fragment,{key:o.id},o.content):m.createElement(mre,{key:o.id,isIndented:a,LinkWrapper:t,...o})))))};const{deprecate:kp}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:yre}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var bre=F.div(({backgroundColor:e,border:t=!1,innerStyle:r={},scrollable:n,theme:a})=>({color:a.barTextColor,width:"100%",minHeight:40,flexShrink:0,scrollbarColor:`${a.barTextColor} ${t?e||a.barBg:"transparent"}`,scrollbarWidth:"thin",overflow:n?"auto":"hidden",overflowY:"hidden",display:"flex",alignItems:"center",gap:n?0:6,paddingInline:n?0:6,...t?{boxShadow:`${a.appBorderColor} 0 -1px 0 0 inset`,background:e||a.barBg}:{},...r})),vre=F.div(({innerStyle:e})=>({minHeight:40,display:"flex",alignItems:"center",width:"100%",gap:6,paddingInline:6,...e})),Mo=g.forwardRef(({scrollable:e=!0,children:t,innerStyle:r,...n},a)=>m.createElement(bre,{...n,ref:a,innerStyle:e?void 0:r,scrollable:e},e?m.createElement(vre,{innerStyle:r},t):t));Mo.displayName="Bar";var py=F.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:10},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{gap:6}:{});py.displayName="Side";var Ere=F.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,width:"100%",backgroundColor:e||""})),Sre=F(Mo)({paddingInline:0}),iv=({children:e,backgroundColor:t,className:r="",...n})=>{yre('FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.');let[a,l]=g.Children.toArray(e);return m.createElement(Sre,{"data-deprecated":"FlexBar",backgroundColor:t,className:`sb-bar ${r}`,...n},m.createElement(Ere,{bgColor:t},m.createElement(py,{scrollable:n.scrollable,left:!0},a),l?m.createElement(py,{right:!0},l):null))};iv.displayName="FlexBar";const{deprecate:xre}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var $re=e=>typeof e.props.href=="string",_re=e=>typeof e.props.href!="string";function Cre({children:e,...t},r){let n={props:t,ref:r};if($re(n))return m.createElement("a",{ref:n.ref,...n.props},e);if(_re(n))return m.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var v4=g.forwardRef(Cre);v4.displayName="ButtonOrLink";var Tre=F(v4,{shouldForwardProp:ip})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}}),Ku=g.forwardRef((e,t)=>(xre("The `TabButton` component is deprecated. Use `TabList` instead."),m.createElement(Tre,{"data-deprecated":"TabButton",ref:t,...e})));Ku.displayName="TabButton";var wre=F.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),Are=F.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),Ore=F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.color.defaultText})),Dre=F.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),Rre=F.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),Gu=({title:e,description:t,footer:r})=>m.createElement(wre,null,m.createElement(Are,null,m.createElement(Ore,null,e),t&&m.createElement(Rre,null,t)),r&&m.createElement(Dre,null,r));const{deprecate:Nre}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var E4=F.div(({active:e})=>e?{display:"block"}:{display:"none"}),Lre=e=>(Nre("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),g.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:a}})=>{let l=Array.isArray(a)?a[0]:a;return{title:t,id:r,...n?{color:n}:{},render:typeof l=="function"?l:({active:i})=>m.createElement(E4,{active:i,role:"tabpanel"},l)}}));const{deprecate:Mre}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Fre=F.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),Bre=F(Ku)(({active:e,theme:t,preActive:r})=>`
|
|
732
732
|
color: ${r||e?t.barSelectedColor:t.barTextColor};
|
|
733
733
|
.addon-collapsible-icon {
|
|
734
734
|
color: ${r||e?t.barSelectedColor:t.barTextColor};
|
|
@@ -792,7 +792,7 @@ ${t}`);let r=t.match(bee);if(!r)return m.createElement(g.Fragment,null,t);let[,n
|
|
|
792
792
|
${Fs(.02,e.input.background)} 100%)`:`linear-gradient(to right,
|
|
793
793
|
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
|
|
794
794
|
${by(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
|
|
795
|
-
${by(.02,e.input.background)} 100%)`,borderRadius:6,boxShadow:`${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"} 0 0 0 1px inset`,cursor:a?"not-allowed":"pointer",height:6,width:"100%"},i={borderColor:ho(e.color.secondary,.4)},o={width:16,height:16,borderRadius:50,cursor:a?"not-allowed":"grab",background:e.input.background,border:`1px solid ${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,boxShadow:e.base==="light"?`0 1px 3px 0px ${ho(e.appBorderColor,.2)}`:"unset",transition:"all 150ms ease-out"},s={background:`${Fs(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},u={background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)"},c={borderColor:e.color.secondary,boxShadow:e.base==="light"?`0 0px 5px 0px ${e.color.secondary}`:"unset"};return{appearance:"none",backgroundColor:"transparent",width:"100%","&::-webkit-slider-runnable-track":l,"&::-moz-range-track":l,"&::-ms-track":{...l,color:"transparent"},"&::-moz-range-thumb":{...o,"&:hover":s,"&:active":u},"&::-webkit-slider-thumb":{...o,marginTop:"-6px",appearance:"none","&:hover":s,"&:active":u},"&::-ms-thumb":{...o,marginTop:0,"&:hover":s,"&:active":u},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":i,"&::-moz-range-track":i,"&::-ms-track":i,"&::-webkit-slider-thumb":c,"&::-moz-range-thumb":c,"&::-ms-thumb":c},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}}),c6=F.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),Uie=F(c6)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),jie=F.div(({readOnly:e})=>({display:"flex",alignItems:"center",width:"100%",opacity:e?.5:1}));function Kie(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var Gie=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:l=1,onBlur:i,onFocus:o,argType:s})=>{var b;let u=v=>{r(rie(v.target.value))},c=t!==void 0,d=g.useMemo(()=>Kie(l),[l]),f=!!((b=s==null?void 0:s.table)!=null&&b.readonly),p=tn(e);return m.createElement(jie,{readOnly:f},m.createElement("label",{htmlFor:p,className:"sb-sr-only"},e),m.createElement(c6,null,n),m.createElement(Hie,{id:p,type:"range",disabled:f,onChange:u,name:e,min:n,max:a,step:l,onFocus:o,onBlur:i,value:t??n}),m.createElement(Uie,{numberOFDecimalsPlaces:d,max:a},c?t.toFixed(d):"--"," / ",a))},Vie=F.label({display:"flex"}),Yie=F.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),qie=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:l,argType:i})=>{var p;let o=b=>{r(b.target.value)},s=!!((p=i==null?void 0:i.table)!=null&&p.readonly),[u,c]=g.useState(!1),d=g.useCallback(()=>{r(""),c(!0)},[c]);if(t===void 0)return m.createElement(je,{ariaLabel:!1,variant:"outline",size:"medium",disabled:s,id:Zf(e),onClick:d},"Set string");let f=typeof t=="string";return m.createElement(Vie,null,m.createElement(Zl.Textarea,{id:tn(e),maxLength:l,onChange:o,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:u,valid:f?void 0:"error",name:e,value:f?t:"",onFocus:n,onBlur:a}),l&&m.createElement(Yie,{isMaxed:(t==null?void 0:t.length)===l},(t==null?void 0:t.length)??0," / ",l))},Wie=F(Zl.Input)({padding:10});function Xie(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var Zie=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var u;let l=g.useRef(null),i=(u=a==null?void 0:a.control)==null?void 0:u.readOnly;function o(c){if(!c.target.files)return;let d=Array.from(c.target.files).map(f=>URL.createObjectURL(f));e(d),Xie(n||[])}g.useEffect(()=>{n==null&&l.current&&(l.current.value="")},[n,t]);let s=tn(t);return m.createElement(m.Fragment,null,m.createElement("label",{htmlFor:s,className:"sb-sr-only"},t),m.createElement(Wie,{ref:l,id:s,type:"file",name:t,multiple:!0,disabled:i,onChange:o,accept:r,size:"flex"}))},Qie=g.lazy(()=>Qn(()=>import("./Color-FRDS63T2-Bo-vvTV8.js"),__vite__mapDeps([6,1,2,3]),import.meta.url)),Jie=e=>m.createElement(g.Suspense,{fallback:m.createElement("div",null)},m.createElement(Qie,{...e})),eoe={array:wC,object:wC,boolean:qle,color:Jie,date:eie,number:aie,check:li,"inline-check":li,radio:li,"inline-radio":li,select:li,"multi-select":li,range:Gie,text:qie,file:Zie},AC=()=>m.createElement(m.Fragment,null,"-"),toe=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var v;let{key:a,control:l}=e,[i,o]=g.useState(!1),[s,u]=g.useState({value:t});g.useEffect(()=>{i||u({value:t})},[i,t]);let c=g.useCallback(S=>(u({value:S}),r({[a]:S}),S),[r,a]),d=g.useCallback(()=>o(!1),[]),f=g.useCallback(()=>o(!0),[]);if(!l||l.disable){let S=(l==null?void 0:l.disable)!==!0&&((v=e==null?void 0:e.type)==null?void 0:v.name)!=="function";return n&&S?m.createElement(oo,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},"Setup controls"):m.createElement(AC,null)}let p={name:a,argType:e,value:s.value,onChange:c,onBlur:d,onFocus:f},b=eoe[l.type]||AC;return m.createElement(b,{...p,...l,controlType:l.type})},roe=F.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:ia({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),noe=({tags:e})=>{var l,i;let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:m.createElement(m.Fragment,null,m.createElement(roe,null,m.createElement("tbody",null,n&&m.createElement("tr",{key:"deprecated"},m.createElement("td",{colSpan:2},m.createElement("strong",null,"Deprecated"),": ",(l=e.deprecated)==null?void 0:l.toString())),r&&t.map(o=>m.createElement("tr",{key:o.name},m.createElement("td",null,m.createElement("code",null,o.name)),m.createElement("td",null,o.description))),a&&m.createElement("tr",{key:"returns"},m.createElement("td",null,m.createElement("code",null,"Returns")),m.createElement("td",null,(i=e.returns)==null?void 0:i.description)))))};function aoe(e){return[...new Set(e)]}var Df=8,OC=F.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),loe=F.details({display:"flex",flexDirection:"column",summary:{order:2},"summary::-webkit-details-marker":{display:"none"},"summary::marker":{content:"none"}}),ioe=F.div({display:"flex",flexDirection:"column",flexWrap:"wrap",alignItems:"flex-start"}),ooe=F.span(ia,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),soe=F.summary(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,cursor:"pointer",lineHeight:"normal",margin:"0 0 4px",padding:"1px 6px",background:"none",border:"none"})),uoe=F.button(ia,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center",cursor:"pointer","&:hover":{border:e.base==="light"?"1px solid hsl(0 0 0 / 0.15)":"1px solid hsl(0 0 100 / 0.15)"},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:"2px"}})),coe=F.div(({theme:e})=>({minWidth:200,maxWidth:800,paddingRight:16,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),doe=F(qF)({marginLeft:4}),foe=F(UA)({marginLeft:4}),poe=()=>m.createElement("span",null,"-"),gv=({text:e,simple:t})=>m.createElement(ooe,{simple:t},e),hoe=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return aoe(t)},DC=e=>e.slice(0,Df).map(t=>m.createElement(gv,{key:t,text:t===""?'""':t})),goe=e=>e.slice(Df).map(t=>m.createElement(gv,{key:t,text:t===""?'""':t})),moe=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,l]=g.useState(!1),[i,o]=g.useState(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return m.createElement(gv,{text:s});let u=hoe(s),c=u.length;return c>Df?m.createElement(OC,{isExpanded:i},DC(u),m.createElement(loe,{open:i,onToggle:d=>o(d.currentTarget.open)},m.createElement(ioe,null,goe(u)),m.createElement(soe,{role:"button"},i?"Show less...":`Show ${c-Df} more...`))):m.createElement(OC,null,DC(u))}return m.createElement(lv,{ariaLabel:"Arg value details",placement:"bottom",visible:a,onVisibleChange:u=>{l(u)},hasCloseButton:!0,popover:m.createElement(coe,null,m.createElement(Bu,{language:"jsx",format:!1},n))},m.createElement(uoe,{className:"sbdocs-expandable"},m.createElement("span",null,s),a?m.createElement(doe,null):m.createElement(foe,null)))},em=({value:e,initialExpandedArgs:t})=>e==null?m.createElement(poe,null):m.createElement(moe,{value:e,initialExpandedArgs:t}),yoe=F.span({fontWeight:"bold"}),boe=F.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),voe=F.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...ia({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),Eoe=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?it(.1,e.color.defaultText):it(.2,e.color.defaultText),marginTop:t?4:0})),Soe=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?it(.1,e.color.defaultText):it(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),xoe=F.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),$oe=e=>e&&{summary:typeof e=="string"?e:e.name},Hc=e=>{var v;let[t,r]=g.useState(!1),{row:n,updateArgs:a,compact:l,expandable:i,initialExpandedArgs:o}=e,{name:s,description:u}=n,c=n.table||{},d=c.type||$oe(n.type),f=c.defaultValue||n.defaultValue,p=(v=n.type)==null?void 0:v.required,b=u!=null&&u!=="";return m.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},m.createElement(xoe,{expandable:i??!1},m.createElement(yoe,null,s),p?m.createElement(boe,{title:"Required"},"*"):null),l?null:m.createElement("td",null,b&&m.createElement(voe,null,m.createElement(Z4,null,u)),c.jsDocTags!=null?m.createElement(m.Fragment,null,m.createElement(Soe,{hasDescription:b},m.createElement(em,{value:d,initialExpandedArgs:o})),m.createElement(noe,{tags:c.jsDocTags})):m.createElement(Eoe,{hasDescription:b},m.createElement(em,{value:d,initialExpandedArgs:o}))),l?null:m.createElement("td",null,m.createElement(em,{value:f,initialExpandedArgs:o})),a?m.createElement("td",null,m.createElement(toe,{...e,isHovered:t})):null)},_oe=F.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content})),Coe=F.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),Toe=({inAddonPanel:e})=>{let[t,r]=g.useState(!0);return g.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:m.createElement(_oe,{inAddonPanel:e},m.createElement(Gu,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:m.createElement(m.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:m.createElement(Coe,null,e&&m.createElement(m.Fragment,null,m.createElement(oo,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},m.createElement(y0,null)," Read docs")),!e&&m.createElement(oo,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},m.createElement(y0,null)," Learn how to set that up"))}))},woe=F(YF)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?it(.25,e.color.defaultText):it(.3,e.color.defaultText),border:"none",display:"inline-block"})),Aoe=F(HA)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?it(.25,e.color.defaultText):it(.3,e.color.defaultText),border:"none",display:"inline-block"})),Ooe=F.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),Doe=F.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?it(.4,e.color.defaultText):it(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),Roe=F.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),Noe=F.td({position:"relative"}),Loe=F.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${by(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),RC=F.button({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}),tm=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[l,i]=g.useState(n),o=e==="subsection"?Roe:Doe,s=(r==null?void 0:r.length)||0,u=e==="subsection"?`${s} item${s!==1?"s":""}`:"",c=`${l?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return m.createElement(m.Fragment,null,m.createElement(Loe,{title:c},m.createElement(o,{colSpan:1},m.createElement(RC,{onClick:d=>i(!l),tabIndex:0},c),m.createElement(Ooe,null,l?m.createElement(woe,null):m.createElement(Aoe,null),t)),m.createElement(Noe,{colSpan:a-1},m.createElement(RC,{onClick:d=>i(!l),tabIndex:-1,style:{outline:"none"}},c),l?null:u)),l?r:null)},Moe=F.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),Uc=F.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Rt=F.div(({position:e,theme:t})=>{let r={display:"flex",flexDirection:"column",gap:5,padding:"10px 15px",alignItems:"flex-start"};switch(e){case"first":return{...r,width:"25%",paddingLeft:20};case"second":return{...r,width:"35%"};case"third":return{...r,width:"15%"};case"last":return{...r,width:"25%",paddingRight:20}}}),st=F.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Foe=()=>m.createElement(Moe,null,m.createElement(Uc,null,m.createElement(Rt,{position:"first"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"second"},m.createElement(st,{width:"30%"})),m.createElement(Rt,{position:"third"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"last"},m.createElement(st,{width:"60%"}))),m.createElement(Uc,null,m.createElement(Rt,{position:"first"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"second"},m.createElement(st,{width:"80%"}),m.createElement(st,{width:"30%"})),m.createElement(Rt,{position:"third"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"last"},m.createElement(st,{width:"60%"}))),m.createElement(Uc,null,m.createElement(Rt,{position:"first"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"second"},m.createElement(st,{width:"80%"}),m.createElement(st,{width:"30%"})),m.createElement(Rt,{position:"third"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"last"},m.createElement(st,{width:"60%"}))),m.createElement(Uc,null,m.createElement(Rt,{position:"first"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"second"},m.createElement(st,{width:"80%"}),m.createElement(st,{width:"30%"})),m.createElement(Rt,{position:"third"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"last"},m.createElement(st,{width:"60%"})))),Boe=F.table(({theme:e,compact:t,inAddonPanel:r,inTabPanel:n})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"19px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.textMutedColor,paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginInline:r||n?0:1,paddingInline:n?3:0,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),Poe=F.div({position:"relative"}),Ioe=F.div({position:"absolute",right:22,top:10}),koe=F(je)({margin:"-4px -12px -4px 0"}),zoe={alpha:(e,t)=>(e.name??"").localeCompare(t.name??""),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||(e.name??"").localeCompare(t.name??"")},none:null},Hoe=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([l,i])=>{let{category:o,subcategory:s}=(i==null?void 0:i.table)||{};if(o){let u=r.sections[o]||{ungrouped:[],subsections:{}};if(!s)u.ungrouped.push({key:l,...i});else{let c=u.subsections[s]||[];c.push({key:l,...i}),u.subsections[s]=c}r.sections[o]=u}else if(s){let u=r.ungroupedSubsections[s]||[];u.push({key:l,...i}),r.ungroupedSubsections[s]=u}else r.ungrouped.push({key:l,...i})});let n=zoe[t],a=l=>n?Object.keys(l).reduce((i,o)=>({...i,[o]:l[o].sort(n)}),{}):l;return{ungrouped:n?r.ungrouped.sort(n):r.ungrouped,ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((l,i)=>({...l,[i]:{ungrouped:n?r.sections[i].ungrouped.sort(n):r.sections[i].ungrouped,subsections:a(r.sections[i].subsections)}}),{})}},Uoe=(e,t,r)=>{try{return DU(e,t,r)}catch(n){return dae.warn(n.message),!1}},Rf=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,inTabPanel:l,initialExpandedArgs:i,sort:o="none",isLoading:s}=e;if("error"in e){let{error:E}=e;return m.createElement(H4,null,E," ",m.createElement(oo,{href:"http://storybook.js.org/docs/?ref=ui",target:"_blank",withArrow:!0},m.createElement(y0,null)," Read the docs"))}if(s)return m.createElement(Foe,null);let{rows:u,args:c,globals:d}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},f=Hoe(zae(u||{},E=>{var x;return!((x=E==null?void 0:E.table)!=null&&x.disable)&&Uoe(E,c||{},d||{})}),o),p=f.ungrouped.length===0,b=Object.entries(f.sections).length===0,v=Object.entries(f.ungroupedSubsections).length===0;if(p&&b&&v)return m.createElement(Toe,{inAddonPanel:a});let S=1;t&&(S+=1),n||(S+=2);let h=Object.keys(f.sections).length>0,y={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:i};return m.createElement(A1,null,m.createElement(Poe,null,t&&!s&&r&&m.createElement(Ioe,null,m.createElement(koe,{variant:"ghost",padding:"small",onClick:()=>r(),ariaLabel:"Reset controls"},m.createElement(ZF,null))),m.createElement(Boe,{compact:n,inAddonPanel:a,inTabPanel:l,className:"docblock-argstable sb-unstyled"},m.createElement("thead",{className:"docblock-argstable-head"},m.createElement("tr",null,m.createElement("th",null,m.createElement("span",null,"Name")),n?null:m.createElement("th",null,m.createElement("span",null,"Description")),n?null:m.createElement("th",null,m.createElement("span",null,"Default")),t?m.createElement("th",null,m.createElement("span",null,"Control")):null)),m.createElement("tbody",{className:"docblock-argstable-body"},f.ungrouped.map(E=>m.createElement(Hc,{key:E.key,row:E,arg:c&&c[E.key],...y})),Object.entries(f.ungroupedSubsections).map(([E,x])=>m.createElement(tm,{key:E,label:E,level:"subsection",colSpan:S},x.map(T=>m.createElement(Hc,{key:T.key,row:T,arg:c&&c[T.key],expandable:h,...y})))),Object.entries(f.sections).map(([E,x])=>m.createElement(tm,{key:E,label:E,level:"section",colSpan:S},x.ungrouped.map(T=>m.createElement(Hc,{key:T.key,row:T,arg:c&&c[T.key],...y})),Object.entries(x.subsections).map(([T,_])=>m.createElement(tm,{key:T,label:T,level:"subsection",colSpan:S},_.map(C=>m.createElement(Hc,{key:C.key,row:C,arg:c&&c[C.key],expandable:h,...y}))))))))))},ut=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,mv=600,joe=F.h1(({theme:e})=>({...Ge({theme:e}),color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${mv}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),Koe=F.h2(({theme:e})=>({...Ge({theme:e}),fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${mv}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:it(.25,e.color.defaultText)})),Goe=F.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?it(.1,e.color.defaultText):it(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,[ut("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"}},[ut("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[ut("div")]:t,[ut("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[ut("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[ut("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[ut("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[ut("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[ut("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[ut("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[ut("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[ut("img")]:{maxWidth:"100%"},[ut("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[ut("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[ut("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[ut("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[ut("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[ut("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[ut("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),Voe=F.div(({theme:e})=>({background:e.background.content,display:"flex",flexDirection:"row-reverse",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${mv}px)`]:{}})),Yoe=({children:e,toc:t})=>m.createElement(Voe,{className:"sbdocs sbdocs-wrapper"},t,m.createElement(Goe,{className:"sbdocs sbdocs-content"},e));const{logger:qoe}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var d6=typeof document<"u"?m.useLayoutEffect:()=>{},f6={prefix:String(Math.round(Math.random()*1e10)),current:0},p6=m.createContext(f6),Woe=m.createContext(!1),rm=new WeakMap;function Xoe(e=!1){let t=g.useContext(p6),r=g.useRef(null);if(r.current===null&&!e){var n,a;let l=(a=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(n=a.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(l){let i=rm.get(l);i==null?rm.set(l,{id:t.current,state:l.memoizedState}):l.memoizedState!==i.state&&(t.current=i.id,rm.delete(l))}r.current=++t.current}return r.current}function Zoe(e){let t=g.useContext(p6),r=Xoe(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function Qoe(e){let t=m.useId(),[r]=g.useState(nse()),n=r?"react-aria":`react-aria${f6.prefix}`;return e||`${n}-${t}`}var Joe=typeof m.useId=="function"?Qoe:Zoe;function ese(){return!1}function tse(){return!0}function rse(e){return()=>{}}function nse(){return typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore(rse,ese,tse):g.useContext(Woe)}var ase=!!(typeof window<"u"&&window.document&&window.document.createElement),$d=new Map,ys;typeof FinalizationRegistry<"u"&&(ys=new FinalizationRegistry(e=>{$d.delete(e)}));function lse(e){let[t,r]=g.useState(e),n=g.useRef(null),a=Joe(t),l=g.useRef(null);if(ys&&ys.register(l,a),ase){let i=$d.get(a);i&&!i.includes(n)?i.push(n):$d.set(a,[n])}return d6(()=>{let i=a;return()=>{ys&&ys.unregister(l),$d.delete(i)}},[a]),g.useEffect(()=>{let i=n.current;return i&&r(i),()=>{i&&(n.current=null)}}),a}function ise(e){if(ose())e.focus({preventScroll:!0});else{let t=sse(e);e.focus(),use(t)}}var jc=null;function ose(){if(jc==null){jc=!1;try{document.createElement("div").focus({get preventScroll(){return jc=!0,!0}})}catch{}}return jc}function sse(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function use(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function yv(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function h6(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Vu(e){let t=null;return()=>(t==null&&(t=e()),t)}var xy=Vu(function(){return h6(/^Mac/i)}),cse=Vu(function(){return h6(/^iPad/i)||xy()&&navigator.maxTouchPoints>1}),dse=Vu(function(){return yv(/AppleWebKit/i)&&!fse()}),fse=Vu(function(){return yv(/Chrome/i)}),pse=Vu(function(){return yv(/Firefox/i)});g.createContext({isNative:!0,open:gse,useHref:e=>e});function Nf(e,t,r=!0){var n,a;let{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}=t;pse()&&!((a=window.event)===null||a===void 0||(n=a.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(xy()?l=!0:i=!0);let u=dse()&&xy()&&!cse()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}):new MouseEvent("click",{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});Nf.isOpening=r,ise(e),e.dispatchEvent(u),Nf.isOpening=!1}Nf.isOpening=!1;function hse(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function gse(e,t){hse(e,r=>Nf(r,t))}var as=new Map,NC=new Set;function LC(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let a=as.get(n.target);a||(a=new Set,as.set(n.target,a),n.target.addEventListener("transitioncancel",r,{once:!0})),a.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let a=as.get(n.target);if(a&&(a.delete(n.propertyName),a.size===0&&(n.target.removeEventListener("transitioncancel",r),as.delete(n.target)),as.size===0)){for(let l of NC)l();NC.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?LC():document.addEventListener("DOMContentLoaded",LC));var nm;nm=m.useInsertionEffect;var am;typeof document<"u"&&((am=m.useInsertionEffect)!==null&&am!==void 0||m.useLayoutEffect);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=g.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var Ur=globalThis?globalThis.__DOCS_CONTEXT__:g.createContext(null);function mse(e,t){let r=yse([e],t);return r&&r[0]}function yse(e,t){let[r,n]=g.useState({});return g.useEffect(()=>{Promise.all(e.map(async a=>{let l=await t.loadStory(a);n(i=>i[a]===l?i:{...i,[a]:l})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return}})}var bse=Symbol("mdxWrappedBlock"),MC=m.createContext(null),Pt=(e,t)=>{let r=n=>{let a=m.useContext(MC),l=cv()[e];if(a!=null&&a.has(e)||l===r)return m.createElement(t,{...n});if(l){let i=new Set(a??[]);return i.add(e),m.createElement(MC.Provider,{value:i},m.createElement(l,{...n}))}return m.createElement(t,{...n})};return r.displayName=e,r[bse]=!0,r},g6=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},vse=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,l=a.story||{};if(a.disable)return null;if(e.inline??l.inline??!1){let o=e.height??l.height,s=e.autoplay??l.autoplay??!1;return{story:t,inline:!0,height:o,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??l.height??l.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},Ese=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=g.useContext(Ur),r=g6(e,t),n=mse(r,t);if(!n)return m.createElement(b6,null);let a=vse(e,n,t);return a?m.createElement(wse,{...a}):null},Sse=Pt("Story",Ese),Kp=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),m6=(e,t={})=>{let r=globalThis.PREVIEW_URL||"iframe.html",[n,a]=r.split("?"),l=new URLSearchParams(a||"");return Object.entries(t).forEach(([i,o])=>{l.set(i,o)}),l.set("id",e),`${n}?${l.toString()}`},{window:xse}=globalThis,$se=class extends g.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=xse.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...l}=this.props;return m.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...l})}},y6=g.createContext({scale:1}),$y=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,_se=e=>{let t=g.useRef(),[r,n]=g.useState(!0),[a,l]=g.useState(),{story:i,height:o,autoplay:s,forceInitialArgs:u,renderStoryToElement:c}=e;return g.useEffect(()=>{if(!(i&&t.current))return()=>{};let d=t.current,f=c(i,d,{showMain:()=>{},showError:({title:p,description:b})=>l(new Error(`${p} - ${b}`)),showException:p=>l(p)},{autoplay:s,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then(()=>f())}},[s,c,i]),a?m.createElement("pre",null,m.createElement(TR,{error:a})):m.createElement(m.Fragment,null,o?m.createElement("style",null,`#${$y(e)} { min-height: ${o}; transform: translateZ(0); overflow: auto }`):null,r&&m.createElement(b6,null),m.createElement("div",{ref:t,id:`${$y(e)}-inner`,"data-name":i.name}))},Cse=({story:e,height:t="500px"})=>m.createElement("div",{style:{width:"100%",height:t}},m.createElement(y6.Consumer,null,({scale:r})=>m.createElement($se,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:m6(e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),Tse=F.strong(({theme:e})=>({color:e.color.orange})),wse=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?m.createElement(Tse,null,"This story mounts inside of play. Set"," ",m.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story?ref=ui#autoplay"},"autoplay")," ","to true to view this story."):m.createElement("div",{id:$y(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?m.createElement(_se,{...e}):m.createElement(Cse,{...e}))},b6=()=>m.createElement(F4,null),Ase=F(_4)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear",display:"flex",alignItems:"center"}),lm=F.div({display:"flex",alignItems:"center",gap:4}),FC=F.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),Ose=({isLoading:e,storyId:t,zoom:r,resetZoom:n,...a})=>m.createElement(Ase,{innerStyle:{gap:4,paddingInline:7,justifyContent:"space-between"},...a},m.createElement(lm,{key:"left"},e?[1,2,3].map(l=>m.createElement(FC,{key:l})):m.createElement(m.Fragment,null,m.createElement(je,{padding:"small",variant:"ghost",key:"zoomin",onClick:l=>{l.preventDefault(),r(.8)},ariaLabel:"Zoom in"},m.createElement(FF,null)),m.createElement(je,{padding:"small",variant:"ghost",key:"zoomout",onClick:l=>{l.preventDefault(),r(1.25)},ariaLabel:"Zoom out"},m.createElement(BF,null)),m.createElement(je,{padding:"small",variant:"ghost",key:"zoomreset",onClick:l=>{l.preventDefault(),n()},ariaLabel:"Reset zoom"},m.createElement(PF,null)))),e?m.createElement(lm,{key:"right"},m.createElement(FC,null)):t&&m.createElement(lm,{key:"right"},m.createElement(je,{asChild:!0,padding:"small",variant:"ghost",key:"opener",ariaLabel:"Open canvas in new tab"},m.createElement("a",{href:m6(t),target:"_blank",rel:"noopener noreferrer"},m.createElement(VF,null))))),Dse=F.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded",inline:t})=>e==="centered"||e==="padded"?{padding:t?"32px 22px":"0px","& .innerZoomElementWrapper > *":{width:"auto",border:"8px solid transparent!important"}}:{},({layout:e="padded",inline:t})=>e==="centered"&&t?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),Rse=F(Mo)({marginTop:-40,marginBottom:40}),Nse=F(uv)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Fs(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Fs(.05,e.background.content)}})),Lse=F.div(({theme:e})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Kp(e),"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40});function Mse(e){if(g.Children.count(e)===1){let t=e;if(t.props)return t.props}return null}var Fse=F(Ose)({position:"absolute",top:0,left:0,right:0,height:40}),Bse=2e3,v6=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:l=!1,isExpanded:i=!1,additionalActions:o,className:s,layout:u="padded",inline:c=!1,...d})=>{let[f,p]=g.useState(i),[b,v]=g.useState(null),[S,h]=g.useState(1),y=g.useMemo(()=>o?[...o]:[],[o]),E=lse(),x=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),T=g.useContext(Ur),_=g.useCallback(async w=>{let{createCopyToClipboardFunction:I}=await Qn(async()=>{const{createCopyToClipboardFunction:k}=await Promise.resolve().then(()=>yne);return{createCopyToClipboardFunction:k}},void 0,import.meta.url);await I()(w)},[]),C=g.useCallback(async()=>{try{await _((a==null?void 0:a.code)??""),v("Copied!")}catch(w){qoe.error(w),v("Copy error!")}globalThis.window.setTimeout(()=>v(null),Bse)},[_,a==null?void 0:a.code]),O=Mse(n),D=!!(a&&a.error),L=!!(a&&!a.error);return m.createElement(m.Fragment,null,m.createElement(Lse,{withSource:a,withToolbar:l,...d,className:x.join(" ")},l&&m.createElement(Fse,{isLoading:e,border:!0,zoom:w=>h(S*w),resetZoom:()=>h(1),storyId:!e&&O?g6(O,T):void 0}),m.createElement(y6.Provider,{value:{scale:S}},m.createElement(Dse,{isColumn:t||!Array.isArray(n),columns:r,layout:u,inline:c,className:"docs-story"},m.createElement(CR.Element,{centered:u==="centered",scale:c?S:1},Array.isArray(n)?n.map((w,I)=>m.createElement("div",{key:I},w)):m.createElement("div",null,n)))),L&&f&&m.createElement("div",{id:E},m.createElement(Nse,{...a,dark:!0,copyable:!1}))),(a||y.length>0)&&m.createElement(Rse,{className:"sbdocs sbdocs-preview-actions",innerStyle:{paddingInline:0}},D&&m.createElement(je,{ariaLabel:!1,disabled:!0,variant:"ghost",className:"docblock-code-toggle docblock-code-toggle--disabled"},m.createElement(xS,null)," No code available"),L&&m.createElement(m.Fragment,null,m.createElement(Hu,{ariaLabel:!1,pressed:f,"aria-expanded":f,"aria-controls":E,onClick:()=>p(!f),variant:"ghost",className:`docblock-code-toggle${f?" docblock-code-toggle--expanded":""}`},m.createElement(xS,null)," ",f?"Hide code":"Show code"),m.createElement(je,{ariaLabel:!1,variant:"ghost",onClick:C},m.createElement(kF,null)," ",b??"Copy code")),y.map(({title:w,className:I,onClick:k,disabled:M},B)=>m.createElement(je,{key:B,className:I,onClick:k,disabled:!!M,variant:"ghost"},w))))};F(v6)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var Pse=F(L4)({height:"fit-content"}),E6=({tabs:e,...t})=>{let r=Object.entries(e);if(r.length===1)return m.createElement(Rf,{...r[0][1],...t});let n=r.map(([a,l],i)=>({id:`prop_table_div_${a}`,title:a,children:()=>{let o=i===0?t:{sort:t.sort};return m.createElement(Rf,{inTabPanel:!0,key:`prop_table_${a}`,...l,...o})}}));return m.createElement(Pse,{tabs:n})};F.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?it(.4,e.color.defaultText):it(.6,e.color.defaultText)}));F.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});F.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});F.div(Ge,({theme:e})=>({...Kp(e),margin:"25px 0 40px",padding:"30px 20px"}));F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));F.div(({theme:e})=>({color:it(.3,e.color.defaultText)}));F.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});F.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:it(.3,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));F.div({display:"flex",flexDirection:"row"});F.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));F.div(({theme:e})=>({...Kp(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));F.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});F.div({flex:1,display:"flex",flexDirection:"row"});F.div({display:"flex",alignItems:"flex-start"});F.div({flex:"0 0 30%"});F.div({flex:1});F.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:it(.3,e.color.defaultText)}));F.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));F.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s1,color:e.color.defaultText,marginLeft:10,lineHeight:1.2,display:"-webkit-box",overflow:"hidden",wordBreak:"break-word",textOverflow:"ellipsis",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}));F.div(({theme:e})=>({...Kp(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));F.div({display:"inline-flex",flexDirection:"row",alignItems:"center",width:"100%"});F.div({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gridGap:"8px 16px",gridAutoFlow:"row dense",gridAutoRows:50});const{NAVIGATE_URL:Ise}=__STORYBOOK_MODULE_CORE_EVENTS__;function kse(e){let t=[].forEach,r=[].some,n=typeof window<"u"&&document.body,a=" ",l,i=!0,o=0;function s(L,w){let I=w.appendChild(c(L));if(L.children.length){let k=d(L.isCollapsed);L.children.forEach(M=>{s(M,k)}),I.appendChild(k)}}function u(L,w){let I=d(!1);if(w.forEach(k=>{s(k,I)}),l=L||l,l!==null)return l.firstChild&&l.removeChild(l.firstChild),w.length===0?l:l.appendChild(I)}function c(L){let w=document.createElement("li"),I=document.createElement("a");return e.listItemClass&&w.setAttribute("class",e.listItemClass),e.onClick&&(I.onclick=e.onClick),e.includeTitleTags&&I.setAttribute("title",L.textContent),e.includeHtml&&L.childNodes.length?t.call(L.childNodes,k=>{I.appendChild(k.cloneNode(!0))}):I.textContent=L.textContent,I.setAttribute("href",`${e.basePath}#${L.id}`),I.setAttribute("class",`${e.linkClass+a}node-name--${L.nodeName}${a}${e.extraLinkClasses}`),w.appendChild(I),w}function d(L){let w=e.orderedList?"ol":"ul",I=document.createElement(w),k=e.listClass+a+e.extraListClasses;return L&&(k=k+a+e.collapsibleClass,k=k+a+e.isCollapsedClass),I.setAttribute("class",k),I}function f(){let L=C(),w=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=l.offsetTop),L>e.fixedSidebarOffset?w.className.indexOf(e.positionFixedClass)===-1&&(w.className+=a+e.positionFixedClass):w.className=w.className.replace(a+e.positionFixedClass,"")}function p(L){let w=0;return L!==null&&(w=L.offsetTop,e.hasInnerContainers&&(w+=p(L.offsetParent))),w}function b(L,w){return L&&L.className!==w&&(L.className=w),L}function v(L,w){var $,A;e.positionFixedSelector&&f();let I=L,k=($=w==null?void 0:w.target)!=null&&$.getAttribute?(A=w==null?void 0:w.target)==null?void 0:A.getAttribute("href"):null,M=k&&k.charAt(0)==="#"?x(k.replace("#","")):!1,B=i||M;if(w&&o<5&&o++,B&&l&&I.length>0){let R=O(I),P=l.querySelector(`.${e.activeLinkClass}`),N=R.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),z=window.location.hash.replace("#",""),U=N,K=T();k&&M?U=k.replace("#",""):z&&z!==N&&K&&(x(N)||o<=2)&&(U=z);let G=l.querySelector(`.${e.linkClass}[href="${e.basePath}#${U}"]`);if(P===G)return;let H=l.querySelectorAll(`.${e.linkClass}`);t.call(H,W=>{b(W,W.className.replace(a+e.activeLinkClass,""))});let V=l.querySelectorAll(`.${e.listItemClass}`);t.call(V,W=>{b(W,W.className.replace(a+e.activeListItemClass,""))}),G&&G.className.indexOf(e.activeLinkClass)===-1&&(G.className+=a+e.activeLinkClass);let q=G==null?void 0:G.parentNode;q&&q.className.indexOf(e.activeListItemClass)===-1&&(q.className+=a+e.activeListItemClass);let ee=l.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(ee,W=>{W.className.indexOf(e.isCollapsedClass)===-1&&(W.className+=a+e.isCollapsedClass)}),G!=null&&G.nextSibling&&G.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&b(G.nextSibling,G.nextSibling.className.replace(a+e.isCollapsedClass,"")),S(G==null?void 0:G.parentNode.parentNode)}}function S(L){return L&&L.className.indexOf(e.collapsibleClass)!==-1&&L.className.indexOf(e.isCollapsedClass)!==-1?(b(L,L.className.replace(a+e.isCollapsedClass,"")),S(L.parentNode.parentNode)):L}function h(L){let w=L.target||L.srcElement;typeof w.className!="string"||w.className.indexOf(e.linkClass)===-1||(i=!1)}function y(){i=!0}function E(){return i}function x(L){let w=_();return(document==null?void 0:document.getElementById(L)).offsetTop>w.offsetHeight-w.clientHeight*1.4-e.bottomModeThreshold}function T(){let L=_(),w=L.scrollHeight>L.clientHeight,I=C()+L.clientHeight>L.offsetHeight-e.bottomModeThreshold;return w&&I}function _(){let L;return e.scrollContainer&&document.querySelector(e.scrollContainer)?L=document.querySelector(e.scrollContainer):L=document.documentElement||n,L}function C(){var L;return((L=_())==null?void 0:L.scrollTop)||0}function O(L,w=C()){let I;return r.call(L,(k,M)=>{if(p(k)>w+e.headingsOffset+10){let B=M===0?M:M-1;return I=L[B],!0}if(M===L.length-1)return I=L[L.length-1],!0}),I}function D(L){let w=C(),I=O(L,w),k=T();if((!I||w<5)&&!k)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(I&&!k){let M=`#${I.id}`;window.location.hash!==M&&window.history.pushState(null,null,M)}}return{enableTocAnimation:y,disableTocAnimation:h,render:u,updateToc:v,getCurrentlyHighlighting:E,getTopHeader:O,getScrollTop:C,updateUrlHashForHeader:D}}var zse={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:"auto",scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function Hse(e){let t=[].reduce;function r(u){return u[u.length-1]}function n(u){return+u.nodeName.toUpperCase().replace("H","")}function a(u){try{return u instanceof window.HTMLElement||u instanceof window.parent.HTMLElement}catch{return u instanceof window.HTMLElement}}function l(u){if(!a(u))return u;if(e.ignoreHiddenElements&&(!u.offsetHeight||!u.offsetParent))return null;let c=u.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(u.innerText)):(u.innerText||u.textContent).trim()),d={id:u.id,children:[],nodeName:u.nodeName,headingLevel:n(u),textContent:c};return e.includeHtml&&(d.childNodes=u.childNodes),e.headingObjectCallback?e.headingObjectCallback(d,u):d}function i(u,c){let d=l(u),f=d.headingLevel,p=c,b=r(p),v=b?b.headingLevel:0,S=f-v;for(;S>0&&(b=r(p),!(b&&f===b.headingLevel));)b&&b.children!==void 0&&(p=b.children),S--;return f>=e.collapseDepth&&(d.isCollapsed=!0),p.push(d),p}function o(u,c){let d=c;e.ignoreSelector&&(d=c.split(",").map(function(f){return`${f.trim()}:not(${e.ignoreSelector})`}));try{return u.querySelectorAll(d)}catch{return console.warn(`Headers not found with selector: ${d}`),null}}function s(u){return t.call(u,function(c,d){let f=l(d);return f&&i(f,c.nest),c},{nest:[]})}return{nestHeadingsArray:s,selectHeadings:o}}function Use(e){var t=e.duration,r=e.offset;if(typeof window>"u"||typeof location>"u")return;var n=location.hash?i(location.href):location.href;a();function a(){document.body.addEventListener("click",s,!1);function s(u){!l(u.target)||u.target.className.indexOf("no-smooth-scroll")>-1||u.target.href.charAt(u.target.href.length-2)==="#"&&u.target.href.charAt(u.target.href.length-1)==="!"||u.target.className.indexOf(e.linkClass)===-1||jse(u.target.hash,{duration:t,offset:r,callback:function(){o(u.target.hash)}})}}function l(s){return s.tagName.toLowerCase()==="a"&&(s.hash.length>0||s.href.charAt(s.href.length-1)==="#")&&(i(s.href)===n||i(s.href)+"#"===n)}function i(s){return s.slice(0,s.lastIndexOf("#"))}function o(s){var u=document.getElementById(s.substring(1));u&&(/^(?:a|select|input|button|textarea)$/i.test(u.tagName)||(u.tabIndex=-1),u.focus())}}function jse(e,t){var r=window.pageYOffset,n={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||d},a=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),l=typeof e=="string"?n.offset+(e?a&&a.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,i=typeof n.duration=="function"?n.duration(l):n.duration,o,s;requestAnimationFrame(function(f){o=f,u(f)});function u(f){s=f-o,window.scrollTo(0,n.easing(s,r,l,i)),s<i?requestAnimationFrame(u):c()}function c(){window.scrollTo(0,r+l),typeof n.callback=="function"&&n.callback()}function d(f,p,b,v){return f/=v/2,f<1?b/2*f*f+p:(f--,-b/2*(f*(f-2)-1)+p)}}function Kse(e){let t=e.tocScrollingWrapper||e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){let r=t.querySelector(`.${e.activeListItemClass}`);if(r){let n=r.offsetTop-e.tocScrollOffset;t.scrollTop=n>0?n:0}}}var ie={},Vr,im,ol,Wr,Ps;function S6(e){let t=!1;ie=Yse(zse,e||{}),ie.scrollSmooth&&(ie.duration=ie.scrollSmoothDuration,ie.offset=ie.scrollSmoothOffset,Use(ie)),Vr=kse(ie),im=Hse(ie),bv();let r=Wse(ie);if(r===null)return;let n=x6(ie);if(n===null||(ol=im.selectHeadings(r,ie.headingSelector),ol===null))return;let a=im.nestHeadingsArray(ol).nest;if(!ie.skipRendering)Vr.render(n,a);else return this;let l=!1,i=ie.scrollHandlerTimeout||ie.throttleTimeout;Wr=((s,u)=>qse(s,u,ie.scrollHandlerType))(s=>{var c,d,f;Vr.updateToc(ol,s),!ie.disableTocScrollSync&&!l&&Kse(ie),ie.enableUrlHashUpdateOnScroll&&t&&Vr.getCurrentlyHighlighting()&&Vr.updateUrlHashForHeader(ol);let u=((d=(c=s==null?void 0:s.target)==null?void 0:c.scrollingElement)==null?void 0:d.scrollTop)===0;(s&&(s.eventPhase===0||s.currentTarget===null)||u)&&(Vr.updateToc(ol),(f=ie.scrollEndCallback)==null||f.call(ie,s))},i),t||(Wr(),t=!0),window.onhashchange=window.onscrollend=s=>{Wr(s)},ie.scrollContainer&&document.querySelector(ie.scrollContainer)?(document.querySelector(ie.scrollContainer).addEventListener("scroll",Wr,!1),document.querySelector(ie.scrollContainer).addEventListener("resize",Wr,!1)):(document.addEventListener("scroll",Wr,!1),document.addEventListener("resize",Wr,!1));let o=null;Ps=_y(s=>{l=!0,ie.scrollSmooth&&Vr.disableTocAnimation(s),Vr.updateToc(ol,s),o&&clearTimeout(o),o=setTimeout(()=>{Vr.enableTocAnimation()},ie.scrollSmoothDuration),setTimeout(()=>{l=!1},ie.scrollSmoothDuration+100)},ie.throttleTimeout),ie.scrollContainer&&document.querySelector(ie.scrollContainer)?document.querySelector(ie.scrollContainer).addEventListener("click",Ps,!1):document.addEventListener("click",Ps,!1)}function bv(){let e=x6(ie);e!==null&&(ie.skipRendering||e&&(e.innerHTML=""),ie.scrollContainer&&document.querySelector(ie.scrollContainer)?(document.querySelector(ie.scrollContainer).removeEventListener("scroll",Wr,!1),document.querySelector(ie.scrollContainer).removeEventListener("resize",Wr,!1),Vr&&document.querySelector(ie.scrollContainer).removeEventListener("click",Ps,!1)):(document.removeEventListener("scroll",Wr,!1),document.removeEventListener("resize",Wr,!1),Vr&&document.removeEventListener("click",Ps,!1)))}function Gse(e){bv(),S6(e||ie)}var Vse=Object.prototype.hasOwnProperty;function Yse(...e){let t={};for(let r=0;r<e.length;r++){let n=e[r];for(let a in n)Vse.call(n,a)&&(t[a]=n[a])}return t}function _y(e,t,r){t||(t=250);let n,a;return function(...l){let i=this,o=+new Date;n&&o<n+t?(clearTimeout(a),a=setTimeout(()=>{n=o,e.apply(i,l)},t)):(n=o,e.apply(i,l))}}function BC(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function qse(e,t,r="auto"){switch(r){case"debounce":return BC(e,t);case"throttle":return _y(e,t);default:return t<334?BC(e,t):_y(e,t)}}function Wse(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function x6(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}var Xse={destroy:bv,init:S6,refresh:Gse},PC=Xse,Zse=F.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),Qse=F.nav(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),Jse=F.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.color.defaultText,textTransform:"uppercase",marginBottom:10})),eue=({headingId:e,title:t})=>typeof t=="string"||!t?m.createElement(Jse,{as:"h2",id:e,className:t?"":"sb-sr-only"},t||"Table of contents"):m.createElement("div",{id:e},t),tue=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:a,unsafeTocbotOptions:l,channel:i,className:o})=>{g.useEffect(()=>{if(t)return()=>{};let u={tocSelector:".toc-wrapper",contentSelector:n??".sbdocs-content",headingSelector:r??"h3",ignoreSelector:a??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:d=>{if(d.preventDefault(),d.currentTarget instanceof HTMLAnchorElement){let[,f]=d.currentTarget.href.split("#");f&&i.emit(Ise,`#${f}`)}},...l},c=setTimeout(()=>PC.init(u),100);return()=>{clearTimeout(c),PC.destroy()}},[i,t,a,n,r,l]);let s="table-of-contents";return m.createElement(Zse,{className:o},t?null:m.createElement(Qse,{"aria-labelledby":s},m.createElement(eue,{headingId:s,title:e}),m.createElement("div",{className:"toc-wrapper"})))},rue=e=>`anchor--${e}`,nue=({storyId:e,children:t})=>m.createElement("div",{id:rue(e),className:"sb-anchor"},t);const{filterArgTypes:IC}=__STORYBOOK_MODULE_PREVIEW_API__;var Jl=(e,t)=>g.useContext(Ur).resolveOf(e,t),aue=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),$6=e=>{if(e)return typeof e=="string"?e.includes("-")?aue(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function lue(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function _6(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}function iue(e){if(e.type==="component"){let{component:l,projectAnnotations:{parameters:i}}=e;return{argTypes:_6(l,i),parameters:i,component:l}}if(e.type==="meta"){let{preparedMeta:{argTypes:l,parameters:i,component:o,subcomponents:s}}=e;return{argTypes:l,parameters:i,component:o,subcomponents:s}}let{story:{argTypes:t,parameters:r,component:n,subcomponents:a}}=e;return{argTypes:t,parameters:r,component:n,subcomponents:a}}var oue=e=>{var v;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=Jl(t||"meta"),{argTypes:n,parameters:a,component:l,subcomponents:i}=iue(r),o=((v=a==null?void 0:a.docs)==null?void 0:v.argTypes)||{},s=e.include??o.include,u=e.exclude??o.exclude,c=e.sort??o.sort,d=IC(n,s,u);if(!(i&&Object.keys(i||{}).length>0))return m.createElement(Rf,{rows:d,sort:c});let f=$6(l)||"Main",p=Object.fromEntries(Object.entries(i||{}).map(([S,h])=>[S,{rows:IC(_6(h,a),s,u),sort:c}])),b={[f]:{rows:d,sort:c},...p};return m.createElement(E6,{tabs:b,sort:c})};Pt("ArgTypes",oue);var sue=Object.create,C6=Object.defineProperty,uue=Object.getOwnPropertyDescriptor,T6=Object.getOwnPropertyNames,cue=Object.getPrototypeOf,due=Object.prototype.hasOwnProperty,ue=(e,t)=>function(){return t||(0,e[T6(e)[0]])((t={exports:{}}).exports,t),t.exports},fue=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of T6(t))!due.call(e,a)&&a!==r&&C6(e,a,{get:()=>t[a],enumerable:!(n=uue(t,a))||n.enumerable});return e},vv=(e,t,r)=>(r=e!=null?sue(cue(e)):{},fue(!e||!e.__esModule?C6(r,"default",{value:e,enumerable:!0}):r,e)),pue=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],hue=["detail"];function gue(e){let t=pue.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of hue.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var w6=ue({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),mue=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),yue=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),bue=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),vue=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),Eue=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),Ev=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),Sue=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),xue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),$ue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),_ue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),Cue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),Tue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),wue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),Aue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),Oue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=Aue();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),Due=ue({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Sv=ue({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=Due();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),Rue=ue({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),A6=ue({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),a=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var l=42;r[n]=l;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var o=Object.getOwnPropertySymbols(r);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==l||s.enumerable!==!0)return!1}return!0}}}),O6=ue({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=A6();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),D6=ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),R6=ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=w6();t.exports=r.getPrototypeOf||null}}),Nue=ue({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,a=Math.max,l="[object Function]",i=function(u,c){for(var d=[],f=0;f<u.length;f+=1)d[f]=u[f];for(var p=0;p<c.length;p+=1)d[p+u.length]=c[p];return d},o=function(u,c){for(var d=[],f=c,p=0;f<u.length;f+=1,p+=1)d[p]=u[f];return d},s=function(u,c){for(var d="",f=0;f<u.length;f+=1)d+=u[f],f+1<u.length&&(d+=c);return d};t.exports=function(u){var c=this;if(typeof c!="function"||n.apply(c)!==l)throw new TypeError(r+c);for(var d=o(arguments,1),f,p=function(){if(this instanceof f){var y=c.apply(this,i(d,arguments));return Object(y)===y?y:this}return c.apply(u,i(d,arguments))},b=a(0,c.length-d.length),v=[],S=0;S<b;S++)v[S]="$"+S;if(f=Function("binder","return function ("+s(v,",")+"){ return binder.apply(this,arguments); }")(p),c.prototype){var h=function(){};h.prototype=c.prototype,f.prototype=new h,h.prototype=null}return f}}}),Gp=ue({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=Nue();t.exports=Function.prototype.bind||r}}),xv=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),N6=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),Lue=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),Mue=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=Gp(),n=N6(),a=xv(),l=Lue();t.exports=l||r.call(a,n)}}),L6=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=Gp(),n=Ev(),a=xv(),l=Mue();t.exports=function(i){if(i.length<1||typeof i[0]!="function")throw new n("a function is required");return l(r,a,i)}}}),Fue=ue({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=L6(),n=Sv(),a;try{a=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var l=!!a&&n&&n(Object.prototype,"__proto__"),i=Object,o=i.getPrototypeOf;t.exports=l&&typeof l.get=="function"?r([l.get]):typeof o=="function"?function(s){return o(s==null?s:i(s))}:!1}}),Bue=ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=D6(),n=R6(),a=Fue();t.exports=r?function(l){return r(l)}:n?function(l){if(!l||typeof l!="object"&&typeof l!="function")throw new TypeError("getProto: not an object");return n(l)}:a?function(l){return a(l)}:null}}),M6=ue({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,a=Gp();t.exports=a.call(r,n)}}),Pue=ue({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=w6(),a=mue(),l=yue(),i=bue(),o=vue(),s=Eue(),u=Ev(),c=Sue(),d=xue(),f=$ue(),p=_ue(),b=Cue(),v=Tue(),S=wue(),h=Oue(),y=Function,E=function(J){try{return y('"use strict"; return ('+J+").constructor;")()}catch{}},x=Sv(),T=Rue(),_=function(){throw new u},C=x?function(){try{return arguments.callee,_}catch{try{return x(arguments,"callee").get}catch{return _}}}():_,O=O6()(),D=Bue(),L=R6(),w=D6(),I=N6(),k=xv(),M={},B=typeof Uint8Array>"u"||!D?r:D(Uint8Array),$={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":O&&D?D([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":M,"%AsyncGenerator%":M,"%AsyncGeneratorFunction%":M,"%AsyncIteratorPrototype%":M,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":l,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":M,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&D?D(D([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!O||!D?r:D(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":o,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!O||!D?r:D(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&D?D(""[Symbol.iterator]()):r,"%Symbol%":O?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":C,"%TypedArray%":B,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":I,"%Object.defineProperty%":T,"%Object.getPrototypeOf%":L,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":b,"%Math.pow%":v,"%Math.round%":S,"%Math.sign%":h,"%Reflect.getPrototypeOf%":w};if(D)try{null.error}catch(J){A=D(D(J)),$["%Error.prototype%"]=A}var A,R=function J(Y){var X;if(Y==="%AsyncFunction%")X=E("async function () {}");else if(Y==="%GeneratorFunction%")X=E("function* () {}");else if(Y==="%AsyncGeneratorFunction%")X=E("async function* () {}");else if(Y==="%AsyncGenerator%"){var le=J("%AsyncGeneratorFunction%");le&&(X=le.prototype)}else if(Y==="%AsyncIteratorPrototype%"){var ye=J("%AsyncGenerator%");ye&&D&&(X=D(ye.prototype))}return $[Y]=X,X},P={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=Gp(),z=M6(),U=N.call(k,Array.prototype.concat),K=N.call(I,Array.prototype.splice),G=N.call(k,String.prototype.replace),H=N.call(k,String.prototype.slice),V=N.call(k,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ee=/\\(\\)?/g,W=function(J){var Y=H(J,0,1),X=H(J,-1);if(Y==="%"&&X!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(X==="%"&&Y!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var le=[];return G(J,q,function(ye,It,Q,kt){le[le.length]=Q?G(kt,ee,"$1"):It||ye}),le},ke=function(J,Y){var X=J,le;if(z(P,X)&&(le=P[X],X="%"+le[0]+"%"),z($,X)){var ye=$[X];if(ye===M&&(ye=R(X)),typeof ye>"u"&&!Y)throw new u("intrinsic "+J+" exists, but is not available. Please file an issue!");return{alias:le,name:X,value:ye}}throw new s("intrinsic "+J+" does not exist!")};t.exports=function(J,Y){if(typeof J!="string"||J.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Y!="boolean")throw new u('"allowMissing" argument must be a boolean');if(V(/^%?[^%]*%?$/,J)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var X=W(J),le=X.length>0?X[0]:"",ye=ke("%"+le+"%",Y),It=ye.name,Q=ye.value,kt=!1,jr=ye.alias;jr&&(le=jr[0],K(X,U([0,1],jr)));for(var ir=1,Kr=!0;ir<X.length;ir+=1){var ot=X[ir],wn=H(ot,0,1),An=H(ot,-1);if((wn==='"'||wn==="'"||wn==="`"||An==='"'||An==="'"||An==="`")&&wn!==An)throw new s("property names with quotes must have matching quotes");if((ot==="constructor"||!Kr)&&(kt=!0),le+="."+ot,It="%"+le+"%",z($,It))Q=$[It];else if(Q!=null){if(!(ot in Q)){if(!Y)throw new u("base intrinsic for "+J+" exists, but the property is not available.");return}if(x&&ir+1>=X.length){var On=x(Q,ot);Kr=!!On,Kr&&"get"in On&&!("originalValue"in On.get)?Q=On.get:Q=Q[ot]}else Kr=z(Q,ot),Q=Q[ot];Kr&&!kt&&($[It]=Q)}}return Q}}}),$v=ue({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=Pue(),n=L6(),a=n([r("%String.prototype.indexOf%")]);t.exports=function(l,i){var o=r(l,!!i);return typeof o=="function"&&a(l,".prototype.")>-1?n([o]):o}}}),Iue=ue({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=A6();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),F6=ue({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=$v(),n=Iue()(),a=M6(),l=Sv(),i;n?(o=r("RegExp.prototype.exec"),s={},u=function(){throw s},c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),i=function(p){if(!p||typeof p!="object")return!1;var b=l(p,"lastIndex"),v=b&&a(b,"value");if(!v)return!1;try{o(p,c)}catch(S){return S===s}}):(d=r("Object.prototype.toString"),f="[object RegExp]",i=function(p){return!p||typeof p!="object"&&typeof p!="function"?!1:d(p)===f});var o,s,u,c,d,f;t.exports=i}}),kue=ue({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(a){if(!a)return!1;var l=r.call(a);return l==="[object Function]"||typeof a=="function"&&l!=="[object RegExp]"||typeof window<"u"&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}}}),zue=ue({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=$v(),n=F6(),a=r("RegExp.prototype.exec"),l=Ev();t.exports=function(i){if(!n(i))throw new l("`regex` must be a RegExp");return function(o){return a(i,o)!==null}}}}),Hue=ue({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=$v(),n=r("Object.prototype.toString"),a=O6()(),l=zue();a?(i=r("Symbol.prototype.toString"),o=l(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:o(i(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return s(u)}catch{return!1}}):t.exports=function(u){return!1};var i,o,s}}),Uue=vv(F6()),jue=vv(kue()),Kue=vv(Hue());function Gue(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var Vue=typeof global=="object"&&global&&global.Object===Object&&global,Yue=Vue,que=typeof self=="object"&&self&&self.Object===Object&&self,Wue=Yue||que||Function("return this")(),_v=Wue,Xue=_v.Symbol,mo=Xue,B6=Object.prototype,Zue=B6.hasOwnProperty,Que=B6.toString,ls=mo?mo.toStringTag:void 0;function Jue(e){var t=Zue.call(e,ls),r=e[ls];try{e[ls]=void 0;var n=!0}catch{}var a=Que.call(e);return n&&(t?e[ls]=r:delete e[ls]),a}var ece=Jue,tce=Object.prototype,rce=tce.toString;function nce(e){return rce.call(e)}var ace=nce,lce="[object Null]",ice="[object Undefined]",kC=mo?mo.toStringTag:void 0;function oce(e){return e==null?e===void 0?ice:lce:kC&&kC in Object(e)?ece(e):ace(e)}var sce=oce,zC=mo?mo.prototype:void 0;zC&&zC.toString;function uce(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var P6=uce,cce="[object AsyncFunction]",dce="[object Function]",fce="[object GeneratorFunction]",pce="[object Proxy]";function hce(e){if(!P6(e))return!1;var t=sce(e);return t==dce||t==fce||t==cce||t==pce}var gce=hce,mce=_v["__core-js_shared__"],om=mce,HC=function(){var e=/[^.]+$/.exec(om&&om.keys&&om.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function yce(e){return!!HC&&HC in e}var bce=yce,vce=Function.prototype,Ece=vce.toString;function Sce(e){if(e!=null){try{return Ece.call(e)}catch{}try{return e+""}catch{}}return""}var xce=Sce,$ce=/[\\^$.*+?()[\]{}|]/g,_ce=/^\[object .+?Constructor\]$/,Cce=Function.prototype,Tce=Object.prototype,wce=Cce.toString,Ace=Tce.hasOwnProperty,Oce=RegExp("^"+wce.call(Ace).replace($ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Dce(e){if(!P6(e)||bce(e))return!1;var t=gce(e)?Oce:_ce;return t.test(xce(e))}var Rce=Dce;function Nce(e,t){return e==null?void 0:e[t]}var Lce=Nce;function Mce(e,t){var r=Lce(e,t);return Rce(r)?r:void 0}var I6=Mce;function Fce(e,t){return e===t||e!==e&&t!==t}var Bce=Fce,Pce=I6(Object,"create"),gu=Pce;function Ice(){this.__data__=gu?gu(null):{},this.size=0}var kce=Ice;function zce(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Hce=zce,Uce="__lodash_hash_undefined__",jce=Object.prototype,Kce=jce.hasOwnProperty;function Gce(e){var t=this.__data__;if(gu){var r=t[e];return r===Uce?void 0:r}return Kce.call(t,e)?t[e]:void 0}var Vce=Gce,Yce=Object.prototype,qce=Yce.hasOwnProperty;function Wce(e){var t=this.__data__;return gu?t[e]!==void 0:qce.call(t,e)}var Xce=Wce,Zce="__lodash_hash_undefined__";function Qce(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=gu&&t===void 0?Zce:t,this}var Jce=Qce;function Bo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Bo.prototype.clear=kce;Bo.prototype.delete=Hce;Bo.prototype.get=Vce;Bo.prototype.has=Xce;Bo.prototype.set=Jce;var UC=Bo;function ede(){this.__data__=[],this.size=0}var tde=ede;function rde(e,t){for(var r=e.length;r--;)if(Bce(e[r][0],t))return r;return-1}var Vp=rde,nde=Array.prototype,ade=nde.splice;function lde(e){var t=this.__data__,r=Vp(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ade.call(t,r,1),--this.size,!0}var ide=lde;function ode(e){var t=this.__data__,r=Vp(t,e);return r<0?void 0:t[r][1]}var sde=ode;function ude(e){return Vp(this.__data__,e)>-1}var cde=ude;function dde(e,t){var r=this.__data__,n=Vp(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var fde=dde;function Po(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Po.prototype.clear=tde;Po.prototype.delete=ide;Po.prototype.get=sde;Po.prototype.has=cde;Po.prototype.set=fde;var pde=Po,hde=I6(_v,"Map"),gde=hde;function mde(){this.size=0,this.__data__={hash:new UC,map:new(gde||pde),string:new UC}}var yde=mde;function bde(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var vde=bde;function Ede(e,t){var r=e.__data__;return vde(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Yp=Ede;function Sde(e){var t=Yp(this,e).delete(e);return this.size-=t?1:0,t}var xde=Sde;function $de(e){return Yp(this,e).get(e)}var _de=$de;function Cde(e){return Yp(this,e).has(e)}var Tde=Cde;function wde(e,t){var r=Yp(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Ade=wde;function Io(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Io.prototype.clear=yde;Io.prototype.delete=xde;Io.prototype.get=_de;Io.prototype.has=Tde;Io.prototype.set=Ade;var k6=Io,Ode="Expected a function";function Cv(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ode);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],l=r.cache;if(l.has(a))return l.get(a);var i=e.apply(this,n);return r.cache=l.set(a,i)||l,i};return r.cache=new(Cv.Cache||k6),r}Cv.Cache=k6;var Dde=Cv,Rde=500;function Nde(e){var t=Dde(e,function(n){return r.size===Rde&&r.clear(),n}),r=t.cache;return t}var Lde=Nde,Mde=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fde=/\\(\\)?/g;Lde(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Mde,function(r,n,a,l){t.push(a?l.replace(Fde,"$1"):n||r)}),t});var Bde=Gue,Pde=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function z6(e){if(!Bde(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=gue(t),r=!0),t=Object.keys(t).reduce((n,a)=>{try{t[a]&&t[a].toJSON,n[a]=t[a]}catch{r=!0}return n},{}),r?t:e}var Ide=function(e){let t,r,n,a;return function(l,i){var o;try{if(l==="")return a=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let s=r.get(this)||this;for(;n.length&&s!==n[0];)n.shift(),a.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===Number.NEGATIVE_INFINITY?"_-Infinity_":i===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return Pde.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,Uue.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,jue.default)(i))return;if((0,Kue.default)(i)){if(!e.allowSymbol)return;let c=Symbol.keyFor(i);return c!==void 0?`_gsymbol_${c}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(a)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if((o=i==null?void 0:i.constructor)!=null&&o.name&&i.constructor.name!=="Object"&&!Array.isArray(i)){let c=t.get(i);if(!c){let d={__isClassInstance__:!0,__className__:i.constructor.name,...Object.getOwnPropertyNames(i).reduce((f,p)=>{try{f[p]=i[p]}catch{}return f},{})};return a.push(l),n.unshift(d),t.set(i,JSON.stringify(a)),i!==d&&r.set(i,d),d}return`_duplicate_${c}`}let u=t.get(i);if(!u){let c=Array.isArray(i)?i:z6(i);return a.push(l),n.unshift(c),t.set(i,JSON.stringify(a)),i!==c&&r.set(i,c),c}return`_duplicate_${u}`}catch{return}}},kde={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},zde=(e,t={})=>{let r={...kde,...t};return JSON.stringify(z6(e),Ide(r),t.space)};function H6(e){return zde(e,{maxDepth:50})}var Tv=g.createContext({sources:{}}),U6="--unknown--",Hde=({children:e,channel:t})=>{let[r,n]=g.useState({});return g.useEffect(()=>{let a=(l,i=null,o=!1)=>{let{id:s,args:u=void 0,source:c,format:d}=typeof l=="string"?{id:l,source:i,format:o}:l,f=u?H6(u):U6;n(p=>({...p,[s]:{...p[s],[f]:{code:c||"",format:d}}}))};return t.on(Nv,a),()=>t.off(Nv,a)},[]),m.createElement(Tv.Provider,{value:{sources:r}},e)};function Ude(e,t,r){let[n,a]=g.useState("Transforming..."),l=t?t==null?void 0:t(e,r):e;return g.useEffect(()=>{async function i(){let o=await l;o!==n&&a(o)}i()}),typeof l=="object"&&typeof l.then=="function"?n:l}var jde=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[H6(t)])||(a==null?void 0:a[U6])||{code:""}},Kde=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var d;let a=t.parameters??{},{__isArgsStory:l}=a,i=((d=a.docs)==null?void 0:d.source)||{},o=r||i.type||Xp.AUTO,s=o===Xp.DYNAMIC||o===Xp.AUTO&&e&&l?e:i.originalSource||"",u=n??i.transform,c=u?Ude(s,u,t):s;return i.code!==void 0?i.code:c},j6=(e,t,r)=>{var p,b;let{of:n}=e,a=g.useMemo(()=>{if(n)return t.resolveOf(n,["story"]).story;try{return t.storyById()}catch{}},[t,n]),l=a?t.getStoryContext(a):{},i=e.__forceInitialArgs?l.initialArgs:l.unmappedArgs,o=a?jde(a.id,i,r):null,s=Kde({snippet:o?o.code:"",storyContext:{...l,args:i},typeFromProps:e.type,transformFromProps:e.transform});if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let u=((b=(p=a==null?void 0:a.parameters)==null?void 0:p.docs)==null?void 0:b.source)||{},c=e.format,d=e.language??u.language??"jsx",f=e.dark??u.dark??!1;return!e.code&&!a?{error:"Oh no! The source is not available."}:e.code?{code:e.code,format:c,language:d,dark:f}:(c=(o==null?void 0:o.format)??!0,{code:s,format:c,language:d,dark:f})},Gde=e=>{let t=g.useContext(Tv),r=g.useContext(Ur),n=j6(e,r,t);return m.createElement(uv,{...n})};Pt("Source",Gde);var Vde=e=>{var p,b,v,S,h,y,E,x,T,_,C,O,D,L;let t=g.useContext(Ur),r=g.useContext(Tv),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:l}=Jl(n||"story",["story"]),i=j6({...a,...n&&{of:n}},t,r),o=e.layout??l.parameters.layout??((b=(p=l.parameters.docs)==null?void 0:p.canvas)==null?void 0:b.layout)??"padded",s=e.withToolbar??((S=(v=l.parameters.docs)==null?void 0:v.canvas)==null?void 0:S.withToolbar)??!1,u=e.additionalActions??((y=(h=l.parameters.docs)==null?void 0:h.canvas)==null?void 0:y.additionalActions),c=e.sourceState??((x=(E=l.parameters.docs)==null?void 0:E.canvas)==null?void 0:x.sourceState)??"hidden",d=e.className??((_=(T=l.parameters.docs)==null?void 0:T.canvas)==null?void 0:_.className),f=((C=e.story)==null?void 0:C.inline)??((L=(D=(O=l.parameters)==null?void 0:O.docs)==null?void 0:D.story)==null?void 0:L.inline)??!1;return m.createElement(v6,{withSource:c==="none"?void 0:i,isExpanded:c==="shown",withToolbar:s,additionalActions:u,className:d,layout:o,inline:f},m.createElement(Sse,{of:n||l.moduleExport,meta:e.meta,...e.story}))},Yde=Pt("Canvas",Vde);const{filterArgTypes:jC}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:qde,STORY_ARGS_UPDATED:KC,UPDATE_STORY_ARGS:Wde}=__STORYBOOK_MODULE_CORE_EVENTS__;var Xde=(e,t)=>{let r=Zde(e,t);if(!r)throw new Error("No result when story was defined");return r},Zde=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,l]=g.useState(r.args);g.useEffect(()=>{let s=u=>{u.storyId===n&&l(u.args)};return t.channel.on(KC,s),()=>t.channel.off(KC,s)},[n,t.channel]);let i=g.useCallback(s=>t.channel.emit(Wde,{storyId:n,updatedArgs:s}),[n,t.channel]),o=g.useCallback(s=>t.channel.emit(qde,{storyId:n,argNames:s}),[n,t.channel]);return e&&[a,i,o]};const{GLOBALS_UPDATED:GC}=__STORYBOOK_MODULE_CORE_EVENTS__;var Qde=(e,t)=>{let r=t.getStoryContext(e),[n,a]=g.useState(r.globals);return g.useEffect(()=>{let l=i=>{a(i.globals)};return t.channel.on(GC,l),()=>t.channel.off(GC,l)},[t.channel]),[n]};const{Tag:Jde}=__STORYBOOK_MODULE_PREVIEW_API__;var K6=()=>g.useContext(Ur).componentStories().find(e=>e.tags.includes(Jde.AUTODOCS));function efe(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var tfe=e=>{var T;let{of:t}=e,r=g.useContext(Ur),n=K6(),a=t?r.resolveOf(t,["story"]).story:n;if(!a)return null;let{parameters:l,argTypes:i,component:o,subcomponents:s}=a,u=((T=l.docs)==null?void 0:T.controls)||{},c=e.include??u.include,d=e.exclude??u.exclude,f=e.sort??u.sort,[p,b,v]=Xde(a,r),[S]=Qde(a,r),h=jC(i,c,d);if(!(s&&Object.keys(s||{}).length>0))return Object.keys(h).length>0||Object.keys(p).length>0?m.createElement(Rf,{rows:h,sort:f,args:p,globals:S,updateArgs:b,resetArgs:v}):null;let y=$6(o)||"Story",E=Object.fromEntries(Object.entries(s||{}).map(([_,C])=>[_,{rows:jC(efe(C,l),c,d),sort:f}])),x={[y]:{rows:h,sort:f},...E};return m.createElement(E6,{tabs:x,sort:f,args:p,globals:S,updateArgs:b,resetArgs:v})},rfe=Pt("Controls",tfe);const{NAVIGATE_URL:nfe}=__STORYBOOK_MODULE_CORE_EVENTS__;var{document:G6}=globalThis,V6=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return m.createElement(O1,null,t);let n=e&&e.split("-");return m.createElement(uv,{language:n&&n[1]||"text",format:!1,code:t,...r})};function wv(e,t){e.channel.emit(nfe,t)}var Cy=B4.a,afe=({hash:e,children:t})=>{let r=g.useContext(Ur);return m.createElement(Cy,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);G6.getElementById(a)&&wv(r,e)}},t)},Y6=e=>{let{href:t,target:r,children:n,...a}=e,l=g.useContext(Ur);return!t||r==="_blank"||/^https?:\/\//.test(t)?m.createElement(Cy,{...e}):t.startsWith("#")?m.createElement(afe,{hash:t},n):m.createElement(Cy,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),wv(l,i.currentTarget.getAttribute("href")||""))},target:r,...a},n)},q6=["h1","h2","h3","h4","h5","h6"],lfe=q6.reduce((e,t)=>({...e,[t]:F(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),ife=F.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),ofe=({as:e,id:t,children:r,...n})=>{let a=g.useContext(Ur),l=lfe[e],i=`#${t}`;return m.createElement(l,{id:t,...n},m.createElement(ife,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:o=>{G6.getElementById(t)&&wv(a,i)}},m.createElement(GF,null)),r)},Av=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return m.createElement(ofe,{as:t,id:r,...a},n);let l=t,{as:i,...o}=e;return m.createElement(l,{...ze(o,t)})},W6=q6.reduce((e,t)=>({...e,[t]:r=>m.createElement(Av,{as:t,...r})}),{}),sfe=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(cae`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
|
|
795
|
+
${by(.02,e.input.background)} 100%)`,borderRadius:6,boxShadow:`${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"} 0 0 0 1px inset`,cursor:a?"not-allowed":"pointer",height:6,width:"100%"},i={borderColor:ho(e.color.secondary,.4)},o={width:16,height:16,borderRadius:50,cursor:a?"not-allowed":"grab",background:e.input.background,border:`1px solid ${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,boxShadow:e.base==="light"?`0 1px 3px 0px ${ho(e.appBorderColor,.2)}`:"unset",transition:"all 150ms ease-out"},s={background:`${Fs(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},u={background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)"},c={borderColor:e.color.secondary,boxShadow:e.base==="light"?`0 0px 5px 0px ${e.color.secondary}`:"unset"};return{appearance:"none",backgroundColor:"transparent",width:"100%","&::-webkit-slider-runnable-track":l,"&::-moz-range-track":l,"&::-ms-track":{...l,color:"transparent"},"&::-moz-range-thumb":{...o,"&:hover":s,"&:active":u},"&::-webkit-slider-thumb":{...o,marginTop:"-6px",appearance:"none","&:hover":s,"&:active":u},"&::-ms-thumb":{...o,marginTop:0,"&:hover":s,"&:active":u},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":i,"&::-moz-range-track":i,"&::-ms-track":i,"&::-webkit-slider-thumb":c,"&::-moz-range-thumb":c,"&::-ms-thumb":c},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}}),c6=F.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),Uie=F(c6)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),jie=F.div(({readOnly:e})=>({display:"flex",alignItems:"center",width:"100%",opacity:e?.5:1}));function Kie(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var Gie=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:l=1,onBlur:i,onFocus:o,argType:s})=>{var b;let u=v=>{r(rie(v.target.value))},c=t!==void 0,d=g.useMemo(()=>Kie(l),[l]),f=!!((b=s==null?void 0:s.table)!=null&&b.readonly),p=tn(e);return m.createElement(jie,{readOnly:f},m.createElement("label",{htmlFor:p,className:"sb-sr-only"},e),m.createElement(c6,null,n),m.createElement(Hie,{id:p,type:"range",disabled:f,onChange:u,name:e,min:n,max:a,step:l,onFocus:o,onBlur:i,value:t??n}),m.createElement(Uie,{numberOFDecimalsPlaces:d,max:a},c?t.toFixed(d):"--"," / ",a))},Vie=F.label({display:"flex"}),Yie=F.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),qie=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:l,argType:i})=>{var p;let o=b=>{r(b.target.value)},s=!!((p=i==null?void 0:i.table)!=null&&p.readonly),[u,c]=g.useState(!1),d=g.useCallback(()=>{r(""),c(!0)},[c]);if(t===void 0)return m.createElement(je,{ariaLabel:!1,variant:"outline",size:"medium",disabled:s,id:Zf(e),onClick:d},"Set string");let f=typeof t=="string";return m.createElement(Vie,null,m.createElement(Zl.Textarea,{id:tn(e),maxLength:l,onChange:o,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:u,valid:f?void 0:"error",name:e,value:f?t:"",onFocus:n,onBlur:a}),l&&m.createElement(Yie,{isMaxed:(t==null?void 0:t.length)===l},(t==null?void 0:t.length)??0," / ",l))},Wie=F(Zl.Input)({padding:10});function Xie(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var Zie=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var u;let l=g.useRef(null),i=(u=a==null?void 0:a.control)==null?void 0:u.readOnly;function o(c){if(!c.target.files)return;let d=Array.from(c.target.files).map(f=>URL.createObjectURL(f));e(d),Xie(n||[])}g.useEffect(()=>{n==null&&l.current&&(l.current.value="")},[n,t]);let s=tn(t);return m.createElement(m.Fragment,null,m.createElement("label",{htmlFor:s,className:"sb-sr-only"},t),m.createElement(Wie,{ref:l,id:s,type:"file",name:t,multiple:!0,disabled:i,onChange:o,accept:r,size:"flex"}))},Qie=g.lazy(()=>Qn(()=>import("./Color-FRDS63T2-D7DceWd3.js"),__vite__mapDeps([6,1,2,3]),import.meta.url)),Jie=e=>m.createElement(g.Suspense,{fallback:m.createElement("div",null)},m.createElement(Qie,{...e})),eoe={array:wC,object:wC,boolean:qle,color:Jie,date:eie,number:aie,check:li,"inline-check":li,radio:li,"inline-radio":li,select:li,"multi-select":li,range:Gie,text:qie,file:Zie},AC=()=>m.createElement(m.Fragment,null,"-"),toe=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var v;let{key:a,control:l}=e,[i,o]=g.useState(!1),[s,u]=g.useState({value:t});g.useEffect(()=>{i||u({value:t})},[i,t]);let c=g.useCallback(S=>(u({value:S}),r({[a]:S}),S),[r,a]),d=g.useCallback(()=>o(!1),[]),f=g.useCallback(()=>o(!0),[]);if(!l||l.disable){let S=(l==null?void 0:l.disable)!==!0&&((v=e==null?void 0:e.type)==null?void 0:v.name)!=="function";return n&&S?m.createElement(oo,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},"Setup controls"):m.createElement(AC,null)}let p={name:a,argType:e,value:s.value,onChange:c,onBlur:d,onFocus:f},b=eoe[l.type]||AC;return m.createElement(b,{...p,...l,controlType:l.type})},roe=F.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:ia({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),noe=({tags:e})=>{var l,i;let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:m.createElement(m.Fragment,null,m.createElement(roe,null,m.createElement("tbody",null,n&&m.createElement("tr",{key:"deprecated"},m.createElement("td",{colSpan:2},m.createElement("strong",null,"Deprecated"),": ",(l=e.deprecated)==null?void 0:l.toString())),r&&t.map(o=>m.createElement("tr",{key:o.name},m.createElement("td",null,m.createElement("code",null,o.name)),m.createElement("td",null,o.description))),a&&m.createElement("tr",{key:"returns"},m.createElement("td",null,m.createElement("code",null,"Returns")),m.createElement("td",null,(i=e.returns)==null?void 0:i.description)))))};function aoe(e){return[...new Set(e)]}var Df=8,OC=F.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),loe=F.details({display:"flex",flexDirection:"column",summary:{order:2},"summary::-webkit-details-marker":{display:"none"},"summary::marker":{content:"none"}}),ioe=F.div({display:"flex",flexDirection:"column",flexWrap:"wrap",alignItems:"flex-start"}),ooe=F.span(ia,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),soe=F.summary(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,cursor:"pointer",lineHeight:"normal",margin:"0 0 4px",padding:"1px 6px",background:"none",border:"none"})),uoe=F.button(ia,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center",cursor:"pointer","&:hover":{border:e.base==="light"?"1px solid hsl(0 0 0 / 0.15)":"1px solid hsl(0 0 100 / 0.15)"},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:"2px"}})),coe=F.div(({theme:e})=>({minWidth:200,maxWidth:800,paddingRight:16,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),doe=F(qF)({marginLeft:4}),foe=F(UA)({marginLeft:4}),poe=()=>m.createElement("span",null,"-"),gv=({text:e,simple:t})=>m.createElement(ooe,{simple:t},e),hoe=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return aoe(t)},DC=e=>e.slice(0,Df).map(t=>m.createElement(gv,{key:t,text:t===""?'""':t})),goe=e=>e.slice(Df).map(t=>m.createElement(gv,{key:t,text:t===""?'""':t})),moe=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,l]=g.useState(!1),[i,o]=g.useState(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return m.createElement(gv,{text:s});let u=hoe(s),c=u.length;return c>Df?m.createElement(OC,{isExpanded:i},DC(u),m.createElement(loe,{open:i,onToggle:d=>o(d.currentTarget.open)},m.createElement(ioe,null,goe(u)),m.createElement(soe,{role:"button"},i?"Show less...":`Show ${c-Df} more...`))):m.createElement(OC,null,DC(u))}return m.createElement(lv,{ariaLabel:"Arg value details",placement:"bottom",visible:a,onVisibleChange:u=>{l(u)},hasCloseButton:!0,popover:m.createElement(coe,null,m.createElement(Bu,{language:"jsx",format:!1},n))},m.createElement(uoe,{className:"sbdocs-expandable"},m.createElement("span",null,s),a?m.createElement(doe,null):m.createElement(foe,null)))},em=({value:e,initialExpandedArgs:t})=>e==null?m.createElement(poe,null):m.createElement(moe,{value:e,initialExpandedArgs:t}),yoe=F.span({fontWeight:"bold"}),boe=F.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),voe=F.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...ia({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),Eoe=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?it(.1,e.color.defaultText):it(.2,e.color.defaultText),marginTop:t?4:0})),Soe=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?it(.1,e.color.defaultText):it(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),xoe=F.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),$oe=e=>e&&{summary:typeof e=="string"?e:e.name},Hc=e=>{var v;let[t,r]=g.useState(!1),{row:n,updateArgs:a,compact:l,expandable:i,initialExpandedArgs:o}=e,{name:s,description:u}=n,c=n.table||{},d=c.type||$oe(n.type),f=c.defaultValue||n.defaultValue,p=(v=n.type)==null?void 0:v.required,b=u!=null&&u!=="";return m.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},m.createElement(xoe,{expandable:i??!1},m.createElement(yoe,null,s),p?m.createElement(boe,{title:"Required"},"*"):null),l?null:m.createElement("td",null,b&&m.createElement(voe,null,m.createElement(Z4,null,u)),c.jsDocTags!=null?m.createElement(m.Fragment,null,m.createElement(Soe,{hasDescription:b},m.createElement(em,{value:d,initialExpandedArgs:o})),m.createElement(noe,{tags:c.jsDocTags})):m.createElement(Eoe,{hasDescription:b},m.createElement(em,{value:d,initialExpandedArgs:o}))),l?null:m.createElement("td",null,m.createElement(em,{value:f,initialExpandedArgs:o})),a?m.createElement("td",null,m.createElement(toe,{...e,isHovered:t})):null)},_oe=F.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content})),Coe=F.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),Toe=({inAddonPanel:e})=>{let[t,r]=g.useState(!0);return g.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:m.createElement(_oe,{inAddonPanel:e},m.createElement(Gu,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:m.createElement(m.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:m.createElement(Coe,null,e&&m.createElement(m.Fragment,null,m.createElement(oo,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},m.createElement(y0,null)," Read docs")),!e&&m.createElement(oo,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},m.createElement(y0,null)," Learn how to set that up"))}))},woe=F(YF)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?it(.25,e.color.defaultText):it(.3,e.color.defaultText),border:"none",display:"inline-block"})),Aoe=F(HA)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?it(.25,e.color.defaultText):it(.3,e.color.defaultText),border:"none",display:"inline-block"})),Ooe=F.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),Doe=F.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?it(.4,e.color.defaultText):it(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),Roe=F.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),Noe=F.td({position:"relative"}),Loe=F.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${by(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),RC=F.button({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}),tm=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[l,i]=g.useState(n),o=e==="subsection"?Roe:Doe,s=(r==null?void 0:r.length)||0,u=e==="subsection"?`${s} item${s!==1?"s":""}`:"",c=`${l?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return m.createElement(m.Fragment,null,m.createElement(Loe,{title:c},m.createElement(o,{colSpan:1},m.createElement(RC,{onClick:d=>i(!l),tabIndex:0},c),m.createElement(Ooe,null,l?m.createElement(woe,null):m.createElement(Aoe,null),t)),m.createElement(Noe,{colSpan:a-1},m.createElement(RC,{onClick:d=>i(!l),tabIndex:-1,style:{outline:"none"}},c),l?null:u)),l?r:null)},Moe=F.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),Uc=F.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Rt=F.div(({position:e,theme:t})=>{let r={display:"flex",flexDirection:"column",gap:5,padding:"10px 15px",alignItems:"flex-start"};switch(e){case"first":return{...r,width:"25%",paddingLeft:20};case"second":return{...r,width:"35%"};case"third":return{...r,width:"15%"};case"last":return{...r,width:"25%",paddingRight:20}}}),st=F.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Foe=()=>m.createElement(Moe,null,m.createElement(Uc,null,m.createElement(Rt,{position:"first"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"second"},m.createElement(st,{width:"30%"})),m.createElement(Rt,{position:"third"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"last"},m.createElement(st,{width:"60%"}))),m.createElement(Uc,null,m.createElement(Rt,{position:"first"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"second"},m.createElement(st,{width:"80%"}),m.createElement(st,{width:"30%"})),m.createElement(Rt,{position:"third"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"last"},m.createElement(st,{width:"60%"}))),m.createElement(Uc,null,m.createElement(Rt,{position:"first"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"second"},m.createElement(st,{width:"80%"}),m.createElement(st,{width:"30%"})),m.createElement(Rt,{position:"third"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"last"},m.createElement(st,{width:"60%"}))),m.createElement(Uc,null,m.createElement(Rt,{position:"first"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"second"},m.createElement(st,{width:"80%"}),m.createElement(st,{width:"30%"})),m.createElement(Rt,{position:"third"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"last"},m.createElement(st,{width:"60%"})))),Boe=F.table(({theme:e,compact:t,inAddonPanel:r,inTabPanel:n})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"19px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.textMutedColor,paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginInline:r||n?0:1,paddingInline:n?3:0,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),Poe=F.div({position:"relative"}),Ioe=F.div({position:"absolute",right:22,top:10}),koe=F(je)({margin:"-4px -12px -4px 0"}),zoe={alpha:(e,t)=>(e.name??"").localeCompare(t.name??""),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||(e.name??"").localeCompare(t.name??"")},none:null},Hoe=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([l,i])=>{let{category:o,subcategory:s}=(i==null?void 0:i.table)||{};if(o){let u=r.sections[o]||{ungrouped:[],subsections:{}};if(!s)u.ungrouped.push({key:l,...i});else{let c=u.subsections[s]||[];c.push({key:l,...i}),u.subsections[s]=c}r.sections[o]=u}else if(s){let u=r.ungroupedSubsections[s]||[];u.push({key:l,...i}),r.ungroupedSubsections[s]=u}else r.ungrouped.push({key:l,...i})});let n=zoe[t],a=l=>n?Object.keys(l).reduce((i,o)=>({...i,[o]:l[o].sort(n)}),{}):l;return{ungrouped:n?r.ungrouped.sort(n):r.ungrouped,ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((l,i)=>({...l,[i]:{ungrouped:n?r.sections[i].ungrouped.sort(n):r.sections[i].ungrouped,subsections:a(r.sections[i].subsections)}}),{})}},Uoe=(e,t,r)=>{try{return DU(e,t,r)}catch(n){return dae.warn(n.message),!1}},Rf=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,inTabPanel:l,initialExpandedArgs:i,sort:o="none",isLoading:s}=e;if("error"in e){let{error:E}=e;return m.createElement(H4,null,E," ",m.createElement(oo,{href:"http://storybook.js.org/docs/?ref=ui",target:"_blank",withArrow:!0},m.createElement(y0,null)," Read the docs"))}if(s)return m.createElement(Foe,null);let{rows:u,args:c,globals:d}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},f=Hoe(zae(u||{},E=>{var x;return!((x=E==null?void 0:E.table)!=null&&x.disable)&&Uoe(E,c||{},d||{})}),o),p=f.ungrouped.length===0,b=Object.entries(f.sections).length===0,v=Object.entries(f.ungroupedSubsections).length===0;if(p&&b&&v)return m.createElement(Toe,{inAddonPanel:a});let S=1;t&&(S+=1),n||(S+=2);let h=Object.keys(f.sections).length>0,y={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:i};return m.createElement(A1,null,m.createElement(Poe,null,t&&!s&&r&&m.createElement(Ioe,null,m.createElement(koe,{variant:"ghost",padding:"small",onClick:()=>r(),ariaLabel:"Reset controls"},m.createElement(ZF,null))),m.createElement(Boe,{compact:n,inAddonPanel:a,inTabPanel:l,className:"docblock-argstable sb-unstyled"},m.createElement("thead",{className:"docblock-argstable-head"},m.createElement("tr",null,m.createElement("th",null,m.createElement("span",null,"Name")),n?null:m.createElement("th",null,m.createElement("span",null,"Description")),n?null:m.createElement("th",null,m.createElement("span",null,"Default")),t?m.createElement("th",null,m.createElement("span",null,"Control")):null)),m.createElement("tbody",{className:"docblock-argstable-body"},f.ungrouped.map(E=>m.createElement(Hc,{key:E.key,row:E,arg:c&&c[E.key],...y})),Object.entries(f.ungroupedSubsections).map(([E,x])=>m.createElement(tm,{key:E,label:E,level:"subsection",colSpan:S},x.map(T=>m.createElement(Hc,{key:T.key,row:T,arg:c&&c[T.key],expandable:h,...y})))),Object.entries(f.sections).map(([E,x])=>m.createElement(tm,{key:E,label:E,level:"section",colSpan:S},x.ungrouped.map(T=>m.createElement(Hc,{key:T.key,row:T,arg:c&&c[T.key],...y})),Object.entries(x.subsections).map(([T,_])=>m.createElement(tm,{key:T,label:T,level:"subsection",colSpan:S},_.map(C=>m.createElement(Hc,{key:C.key,row:C,arg:c&&c[C.key],expandable:h,...y}))))))))))},ut=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,mv=600,joe=F.h1(({theme:e})=>({...Ge({theme:e}),color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${mv}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),Koe=F.h2(({theme:e})=>({...Ge({theme:e}),fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${mv}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:it(.25,e.color.defaultText)})),Goe=F.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?it(.1,e.color.defaultText):it(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,[ut("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"}},[ut("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[ut("div")]:t,[ut("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[ut("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[ut("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[ut("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[ut("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[ut("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[ut("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[ut("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[ut("img")]:{maxWidth:"100%"},[ut("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[ut("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[ut("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[ut("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[ut("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[ut("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[ut("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),Voe=F.div(({theme:e})=>({background:e.background.content,display:"flex",flexDirection:"row-reverse",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${mv}px)`]:{}})),Yoe=({children:e,toc:t})=>m.createElement(Voe,{className:"sbdocs sbdocs-wrapper"},t,m.createElement(Goe,{className:"sbdocs sbdocs-content"},e));const{logger:qoe}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var d6=typeof document<"u"?m.useLayoutEffect:()=>{},f6={prefix:String(Math.round(Math.random()*1e10)),current:0},p6=m.createContext(f6),Woe=m.createContext(!1),rm=new WeakMap;function Xoe(e=!1){let t=g.useContext(p6),r=g.useRef(null);if(r.current===null&&!e){var n,a;let l=(a=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(n=a.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(l){let i=rm.get(l);i==null?rm.set(l,{id:t.current,state:l.memoizedState}):l.memoizedState!==i.state&&(t.current=i.id,rm.delete(l))}r.current=++t.current}return r.current}function Zoe(e){let t=g.useContext(p6),r=Xoe(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function Qoe(e){let t=m.useId(),[r]=g.useState(nse()),n=r?"react-aria":`react-aria${f6.prefix}`;return e||`${n}-${t}`}var Joe=typeof m.useId=="function"?Qoe:Zoe;function ese(){return!1}function tse(){return!0}function rse(e){return()=>{}}function nse(){return typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore(rse,ese,tse):g.useContext(Woe)}var ase=!!(typeof window<"u"&&window.document&&window.document.createElement),$d=new Map,ys;typeof FinalizationRegistry<"u"&&(ys=new FinalizationRegistry(e=>{$d.delete(e)}));function lse(e){let[t,r]=g.useState(e),n=g.useRef(null),a=Joe(t),l=g.useRef(null);if(ys&&ys.register(l,a),ase){let i=$d.get(a);i&&!i.includes(n)?i.push(n):$d.set(a,[n])}return d6(()=>{let i=a;return()=>{ys&&ys.unregister(l),$d.delete(i)}},[a]),g.useEffect(()=>{let i=n.current;return i&&r(i),()=>{i&&(n.current=null)}}),a}function ise(e){if(ose())e.focus({preventScroll:!0});else{let t=sse(e);e.focus(),use(t)}}var jc=null;function ose(){if(jc==null){jc=!1;try{document.createElement("div").focus({get preventScroll(){return jc=!0,!0}})}catch{}}return jc}function sse(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function use(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function yv(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function h6(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Vu(e){let t=null;return()=>(t==null&&(t=e()),t)}var xy=Vu(function(){return h6(/^Mac/i)}),cse=Vu(function(){return h6(/^iPad/i)||xy()&&navigator.maxTouchPoints>1}),dse=Vu(function(){return yv(/AppleWebKit/i)&&!fse()}),fse=Vu(function(){return yv(/Chrome/i)}),pse=Vu(function(){return yv(/Firefox/i)});g.createContext({isNative:!0,open:gse,useHref:e=>e});function Nf(e,t,r=!0){var n,a;let{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}=t;pse()&&!((a=window.event)===null||a===void 0||(n=a.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(xy()?l=!0:i=!0);let u=dse()&&xy()&&!cse()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}):new MouseEvent("click",{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});Nf.isOpening=r,ise(e),e.dispatchEvent(u),Nf.isOpening=!1}Nf.isOpening=!1;function hse(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function gse(e,t){hse(e,r=>Nf(r,t))}var as=new Map,NC=new Set;function LC(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let a=as.get(n.target);a||(a=new Set,as.set(n.target,a),n.target.addEventListener("transitioncancel",r,{once:!0})),a.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let a=as.get(n.target);if(a&&(a.delete(n.propertyName),a.size===0&&(n.target.removeEventListener("transitioncancel",r),as.delete(n.target)),as.size===0)){for(let l of NC)l();NC.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?LC():document.addEventListener("DOMContentLoaded",LC));var nm;nm=m.useInsertionEffect;var am;typeof document<"u"&&((am=m.useInsertionEffect)!==null&&am!==void 0||m.useLayoutEffect);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=g.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var Ur=globalThis?globalThis.__DOCS_CONTEXT__:g.createContext(null);function mse(e,t){let r=yse([e],t);return r&&r[0]}function yse(e,t){let[r,n]=g.useState({});return g.useEffect(()=>{Promise.all(e.map(async a=>{let l=await t.loadStory(a);n(i=>i[a]===l?i:{...i,[a]:l})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return}})}var bse=Symbol("mdxWrappedBlock"),MC=m.createContext(null),Pt=(e,t)=>{let r=n=>{let a=m.useContext(MC),l=cv()[e];if(a!=null&&a.has(e)||l===r)return m.createElement(t,{...n});if(l){let i=new Set(a??[]);return i.add(e),m.createElement(MC.Provider,{value:i},m.createElement(l,{...n}))}return m.createElement(t,{...n})};return r.displayName=e,r[bse]=!0,r},g6=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},vse=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,l=a.story||{};if(a.disable)return null;if(e.inline??l.inline??!1){let o=e.height??l.height,s=e.autoplay??l.autoplay??!1;return{story:t,inline:!0,height:o,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??l.height??l.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},Ese=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=g.useContext(Ur),r=g6(e,t),n=mse(r,t);if(!n)return m.createElement(b6,null);let a=vse(e,n,t);return a?m.createElement(wse,{...a}):null},Sse=Pt("Story",Ese),Kp=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),m6=(e,t={})=>{let r=globalThis.PREVIEW_URL||"iframe.html",[n,a]=r.split("?"),l=new URLSearchParams(a||"");return Object.entries(t).forEach(([i,o])=>{l.set(i,o)}),l.set("id",e),`${n}?${l.toString()}`},{window:xse}=globalThis,$se=class extends g.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=xse.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...l}=this.props;return m.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...l})}},y6=g.createContext({scale:1}),$y=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,_se=e=>{let t=g.useRef(),[r,n]=g.useState(!0),[a,l]=g.useState(),{story:i,height:o,autoplay:s,forceInitialArgs:u,renderStoryToElement:c}=e;return g.useEffect(()=>{if(!(i&&t.current))return()=>{};let d=t.current,f=c(i,d,{showMain:()=>{},showError:({title:p,description:b})=>l(new Error(`${p} - ${b}`)),showException:p=>l(p)},{autoplay:s,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then(()=>f())}},[s,c,i]),a?m.createElement("pre",null,m.createElement(TR,{error:a})):m.createElement(m.Fragment,null,o?m.createElement("style",null,`#${$y(e)} { min-height: ${o}; transform: translateZ(0); overflow: auto }`):null,r&&m.createElement(b6,null),m.createElement("div",{ref:t,id:`${$y(e)}-inner`,"data-name":i.name}))},Cse=({story:e,height:t="500px"})=>m.createElement("div",{style:{width:"100%",height:t}},m.createElement(y6.Consumer,null,({scale:r})=>m.createElement($se,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:m6(e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),Tse=F.strong(({theme:e})=>({color:e.color.orange})),wse=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?m.createElement(Tse,null,"This story mounts inside of play. Set"," ",m.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story?ref=ui#autoplay"},"autoplay")," ","to true to view this story."):m.createElement("div",{id:$y(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?m.createElement(_se,{...e}):m.createElement(Cse,{...e}))},b6=()=>m.createElement(F4,null),Ase=F(_4)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear",display:"flex",alignItems:"center"}),lm=F.div({display:"flex",alignItems:"center",gap:4}),FC=F.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),Ose=({isLoading:e,storyId:t,zoom:r,resetZoom:n,...a})=>m.createElement(Ase,{innerStyle:{gap:4,paddingInline:7,justifyContent:"space-between"},...a},m.createElement(lm,{key:"left"},e?[1,2,3].map(l=>m.createElement(FC,{key:l})):m.createElement(m.Fragment,null,m.createElement(je,{padding:"small",variant:"ghost",key:"zoomin",onClick:l=>{l.preventDefault(),r(.8)},ariaLabel:"Zoom in"},m.createElement(FF,null)),m.createElement(je,{padding:"small",variant:"ghost",key:"zoomout",onClick:l=>{l.preventDefault(),r(1.25)},ariaLabel:"Zoom out"},m.createElement(BF,null)),m.createElement(je,{padding:"small",variant:"ghost",key:"zoomreset",onClick:l=>{l.preventDefault(),n()},ariaLabel:"Reset zoom"},m.createElement(PF,null)))),e?m.createElement(lm,{key:"right"},m.createElement(FC,null)):t&&m.createElement(lm,{key:"right"},m.createElement(je,{asChild:!0,padding:"small",variant:"ghost",key:"opener",ariaLabel:"Open canvas in new tab"},m.createElement("a",{href:m6(t),target:"_blank",rel:"noopener noreferrer"},m.createElement(VF,null))))),Dse=F.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded",inline:t})=>e==="centered"||e==="padded"?{padding:t?"32px 22px":"0px","& .innerZoomElementWrapper > *":{width:"auto",border:"8px solid transparent!important"}}:{},({layout:e="padded",inline:t})=>e==="centered"&&t?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),Rse=F(Mo)({marginTop:-40,marginBottom:40}),Nse=F(uv)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Fs(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Fs(.05,e.background.content)}})),Lse=F.div(({theme:e})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Kp(e),"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40});function Mse(e){if(g.Children.count(e)===1){let t=e;if(t.props)return t.props}return null}var Fse=F(Ose)({position:"absolute",top:0,left:0,right:0,height:40}),Bse=2e3,v6=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:l=!1,isExpanded:i=!1,additionalActions:o,className:s,layout:u="padded",inline:c=!1,...d})=>{let[f,p]=g.useState(i),[b,v]=g.useState(null),[S,h]=g.useState(1),y=g.useMemo(()=>o?[...o]:[],[o]),E=lse(),x=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),T=g.useContext(Ur),_=g.useCallback(async w=>{let{createCopyToClipboardFunction:I}=await Qn(async()=>{const{createCopyToClipboardFunction:k}=await Promise.resolve().then(()=>yne);return{createCopyToClipboardFunction:k}},void 0,import.meta.url);await I()(w)},[]),C=g.useCallback(async()=>{try{await _((a==null?void 0:a.code)??""),v("Copied!")}catch(w){qoe.error(w),v("Copy error!")}globalThis.window.setTimeout(()=>v(null),Bse)},[_,a==null?void 0:a.code]),O=Mse(n),D=!!(a&&a.error),L=!!(a&&!a.error);return m.createElement(m.Fragment,null,m.createElement(Lse,{withSource:a,withToolbar:l,...d,className:x.join(" ")},l&&m.createElement(Fse,{isLoading:e,border:!0,zoom:w=>h(S*w),resetZoom:()=>h(1),storyId:!e&&O?g6(O,T):void 0}),m.createElement(y6.Provider,{value:{scale:S}},m.createElement(Dse,{isColumn:t||!Array.isArray(n),columns:r,layout:u,inline:c,className:"docs-story"},m.createElement(CR.Element,{centered:u==="centered",scale:c?S:1},Array.isArray(n)?n.map((w,I)=>m.createElement("div",{key:I},w)):m.createElement("div",null,n)))),L&&f&&m.createElement("div",{id:E},m.createElement(Nse,{...a,dark:!0,copyable:!1}))),(a||y.length>0)&&m.createElement(Rse,{className:"sbdocs sbdocs-preview-actions",innerStyle:{paddingInline:0}},D&&m.createElement(je,{ariaLabel:!1,disabled:!0,variant:"ghost",className:"docblock-code-toggle docblock-code-toggle--disabled"},m.createElement(xS,null)," No code available"),L&&m.createElement(m.Fragment,null,m.createElement(Hu,{ariaLabel:!1,pressed:f,"aria-expanded":f,"aria-controls":E,onClick:()=>p(!f),variant:"ghost",className:`docblock-code-toggle${f?" docblock-code-toggle--expanded":""}`},m.createElement(xS,null)," ",f?"Hide code":"Show code"),m.createElement(je,{ariaLabel:!1,variant:"ghost",onClick:C},m.createElement(kF,null)," ",b??"Copy code")),y.map(({title:w,className:I,onClick:k,disabled:M},B)=>m.createElement(je,{key:B,className:I,onClick:k,disabled:!!M,variant:"ghost"},w))))};F(v6)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var Pse=F(L4)({height:"fit-content"}),E6=({tabs:e,...t})=>{let r=Object.entries(e);if(r.length===1)return m.createElement(Rf,{...r[0][1],...t});let n=r.map(([a,l],i)=>({id:`prop_table_div_${a}`,title:a,children:()=>{let o=i===0?t:{sort:t.sort};return m.createElement(Rf,{inTabPanel:!0,key:`prop_table_${a}`,...l,...o})}}));return m.createElement(Pse,{tabs:n})};F.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?it(.4,e.color.defaultText):it(.6,e.color.defaultText)}));F.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});F.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});F.div(Ge,({theme:e})=>({...Kp(e),margin:"25px 0 40px",padding:"30px 20px"}));F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));F.div(({theme:e})=>({color:it(.3,e.color.defaultText)}));F.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});F.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:it(.3,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));F.div({display:"flex",flexDirection:"row"});F.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));F.div(({theme:e})=>({...Kp(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));F.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});F.div({flex:1,display:"flex",flexDirection:"row"});F.div({display:"flex",alignItems:"flex-start"});F.div({flex:"0 0 30%"});F.div({flex:1});F.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:it(.3,e.color.defaultText)}));F.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));F.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s1,color:e.color.defaultText,marginLeft:10,lineHeight:1.2,display:"-webkit-box",overflow:"hidden",wordBreak:"break-word",textOverflow:"ellipsis",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}));F.div(({theme:e})=>({...Kp(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));F.div({display:"inline-flex",flexDirection:"row",alignItems:"center",width:"100%"});F.div({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gridGap:"8px 16px",gridAutoFlow:"row dense",gridAutoRows:50});const{NAVIGATE_URL:Ise}=__STORYBOOK_MODULE_CORE_EVENTS__;function kse(e){let t=[].forEach,r=[].some,n=typeof window<"u"&&document.body,a=" ",l,i=!0,o=0;function s(L,w){let I=w.appendChild(c(L));if(L.children.length){let k=d(L.isCollapsed);L.children.forEach(M=>{s(M,k)}),I.appendChild(k)}}function u(L,w){let I=d(!1);if(w.forEach(k=>{s(k,I)}),l=L||l,l!==null)return l.firstChild&&l.removeChild(l.firstChild),w.length===0?l:l.appendChild(I)}function c(L){let w=document.createElement("li"),I=document.createElement("a");return e.listItemClass&&w.setAttribute("class",e.listItemClass),e.onClick&&(I.onclick=e.onClick),e.includeTitleTags&&I.setAttribute("title",L.textContent),e.includeHtml&&L.childNodes.length?t.call(L.childNodes,k=>{I.appendChild(k.cloneNode(!0))}):I.textContent=L.textContent,I.setAttribute("href",`${e.basePath}#${L.id}`),I.setAttribute("class",`${e.linkClass+a}node-name--${L.nodeName}${a}${e.extraLinkClasses}`),w.appendChild(I),w}function d(L){let w=e.orderedList?"ol":"ul",I=document.createElement(w),k=e.listClass+a+e.extraListClasses;return L&&(k=k+a+e.collapsibleClass,k=k+a+e.isCollapsedClass),I.setAttribute("class",k),I}function f(){let L=C(),w=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=l.offsetTop),L>e.fixedSidebarOffset?w.className.indexOf(e.positionFixedClass)===-1&&(w.className+=a+e.positionFixedClass):w.className=w.className.replace(a+e.positionFixedClass,"")}function p(L){let w=0;return L!==null&&(w=L.offsetTop,e.hasInnerContainers&&(w+=p(L.offsetParent))),w}function b(L,w){return L&&L.className!==w&&(L.className=w),L}function v(L,w){var $,A;e.positionFixedSelector&&f();let I=L,k=($=w==null?void 0:w.target)!=null&&$.getAttribute?(A=w==null?void 0:w.target)==null?void 0:A.getAttribute("href"):null,M=k&&k.charAt(0)==="#"?x(k.replace("#","")):!1,B=i||M;if(w&&o<5&&o++,B&&l&&I.length>0){let R=O(I),P=l.querySelector(`.${e.activeLinkClass}`),N=R.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),z=window.location.hash.replace("#",""),U=N,K=T();k&&M?U=k.replace("#",""):z&&z!==N&&K&&(x(N)||o<=2)&&(U=z);let G=l.querySelector(`.${e.linkClass}[href="${e.basePath}#${U}"]`);if(P===G)return;let H=l.querySelectorAll(`.${e.linkClass}`);t.call(H,W=>{b(W,W.className.replace(a+e.activeLinkClass,""))});let V=l.querySelectorAll(`.${e.listItemClass}`);t.call(V,W=>{b(W,W.className.replace(a+e.activeListItemClass,""))}),G&&G.className.indexOf(e.activeLinkClass)===-1&&(G.className+=a+e.activeLinkClass);let q=G==null?void 0:G.parentNode;q&&q.className.indexOf(e.activeListItemClass)===-1&&(q.className+=a+e.activeListItemClass);let ee=l.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(ee,W=>{W.className.indexOf(e.isCollapsedClass)===-1&&(W.className+=a+e.isCollapsedClass)}),G!=null&&G.nextSibling&&G.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&b(G.nextSibling,G.nextSibling.className.replace(a+e.isCollapsedClass,"")),S(G==null?void 0:G.parentNode.parentNode)}}function S(L){return L&&L.className.indexOf(e.collapsibleClass)!==-1&&L.className.indexOf(e.isCollapsedClass)!==-1?(b(L,L.className.replace(a+e.isCollapsedClass,"")),S(L.parentNode.parentNode)):L}function h(L){let w=L.target||L.srcElement;typeof w.className!="string"||w.className.indexOf(e.linkClass)===-1||(i=!1)}function y(){i=!0}function E(){return i}function x(L){let w=_();return(document==null?void 0:document.getElementById(L)).offsetTop>w.offsetHeight-w.clientHeight*1.4-e.bottomModeThreshold}function T(){let L=_(),w=L.scrollHeight>L.clientHeight,I=C()+L.clientHeight>L.offsetHeight-e.bottomModeThreshold;return w&&I}function _(){let L;return e.scrollContainer&&document.querySelector(e.scrollContainer)?L=document.querySelector(e.scrollContainer):L=document.documentElement||n,L}function C(){var L;return((L=_())==null?void 0:L.scrollTop)||0}function O(L,w=C()){let I;return r.call(L,(k,M)=>{if(p(k)>w+e.headingsOffset+10){let B=M===0?M:M-1;return I=L[B],!0}if(M===L.length-1)return I=L[L.length-1],!0}),I}function D(L){let w=C(),I=O(L,w),k=T();if((!I||w<5)&&!k)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(I&&!k){let M=`#${I.id}`;window.location.hash!==M&&window.history.pushState(null,null,M)}}return{enableTocAnimation:y,disableTocAnimation:h,render:u,updateToc:v,getCurrentlyHighlighting:E,getTopHeader:O,getScrollTop:C,updateUrlHashForHeader:D}}var zse={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:"auto",scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function Hse(e){let t=[].reduce;function r(u){return u[u.length-1]}function n(u){return+u.nodeName.toUpperCase().replace("H","")}function a(u){try{return u instanceof window.HTMLElement||u instanceof window.parent.HTMLElement}catch{return u instanceof window.HTMLElement}}function l(u){if(!a(u))return u;if(e.ignoreHiddenElements&&(!u.offsetHeight||!u.offsetParent))return null;let c=u.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(u.innerText)):(u.innerText||u.textContent).trim()),d={id:u.id,children:[],nodeName:u.nodeName,headingLevel:n(u),textContent:c};return e.includeHtml&&(d.childNodes=u.childNodes),e.headingObjectCallback?e.headingObjectCallback(d,u):d}function i(u,c){let d=l(u),f=d.headingLevel,p=c,b=r(p),v=b?b.headingLevel:0,S=f-v;for(;S>0&&(b=r(p),!(b&&f===b.headingLevel));)b&&b.children!==void 0&&(p=b.children),S--;return f>=e.collapseDepth&&(d.isCollapsed=!0),p.push(d),p}function o(u,c){let d=c;e.ignoreSelector&&(d=c.split(",").map(function(f){return`${f.trim()}:not(${e.ignoreSelector})`}));try{return u.querySelectorAll(d)}catch{return console.warn(`Headers not found with selector: ${d}`),null}}function s(u){return t.call(u,function(c,d){let f=l(d);return f&&i(f,c.nest),c},{nest:[]})}return{nestHeadingsArray:s,selectHeadings:o}}function Use(e){var t=e.duration,r=e.offset;if(typeof window>"u"||typeof location>"u")return;var n=location.hash?i(location.href):location.href;a();function a(){document.body.addEventListener("click",s,!1);function s(u){!l(u.target)||u.target.className.indexOf("no-smooth-scroll")>-1||u.target.href.charAt(u.target.href.length-2)==="#"&&u.target.href.charAt(u.target.href.length-1)==="!"||u.target.className.indexOf(e.linkClass)===-1||jse(u.target.hash,{duration:t,offset:r,callback:function(){o(u.target.hash)}})}}function l(s){return s.tagName.toLowerCase()==="a"&&(s.hash.length>0||s.href.charAt(s.href.length-1)==="#")&&(i(s.href)===n||i(s.href)+"#"===n)}function i(s){return s.slice(0,s.lastIndexOf("#"))}function o(s){var u=document.getElementById(s.substring(1));u&&(/^(?:a|select|input|button|textarea)$/i.test(u.tagName)||(u.tabIndex=-1),u.focus())}}function jse(e,t){var r=window.pageYOffset,n={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||d},a=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),l=typeof e=="string"?n.offset+(e?a&&a.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,i=typeof n.duration=="function"?n.duration(l):n.duration,o,s;requestAnimationFrame(function(f){o=f,u(f)});function u(f){s=f-o,window.scrollTo(0,n.easing(s,r,l,i)),s<i?requestAnimationFrame(u):c()}function c(){window.scrollTo(0,r+l),typeof n.callback=="function"&&n.callback()}function d(f,p,b,v){return f/=v/2,f<1?b/2*f*f+p:(f--,-b/2*(f*(f-2)-1)+p)}}function Kse(e){let t=e.tocScrollingWrapper||e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){let r=t.querySelector(`.${e.activeListItemClass}`);if(r){let n=r.offsetTop-e.tocScrollOffset;t.scrollTop=n>0?n:0}}}var ie={},Vr,im,ol,Wr,Ps;function S6(e){let t=!1;ie=Yse(zse,e||{}),ie.scrollSmooth&&(ie.duration=ie.scrollSmoothDuration,ie.offset=ie.scrollSmoothOffset,Use(ie)),Vr=kse(ie),im=Hse(ie),bv();let r=Wse(ie);if(r===null)return;let n=x6(ie);if(n===null||(ol=im.selectHeadings(r,ie.headingSelector),ol===null))return;let a=im.nestHeadingsArray(ol).nest;if(!ie.skipRendering)Vr.render(n,a);else return this;let l=!1,i=ie.scrollHandlerTimeout||ie.throttleTimeout;Wr=((s,u)=>qse(s,u,ie.scrollHandlerType))(s=>{var c,d,f;Vr.updateToc(ol,s),!ie.disableTocScrollSync&&!l&&Kse(ie),ie.enableUrlHashUpdateOnScroll&&t&&Vr.getCurrentlyHighlighting()&&Vr.updateUrlHashForHeader(ol);let u=((d=(c=s==null?void 0:s.target)==null?void 0:c.scrollingElement)==null?void 0:d.scrollTop)===0;(s&&(s.eventPhase===0||s.currentTarget===null)||u)&&(Vr.updateToc(ol),(f=ie.scrollEndCallback)==null||f.call(ie,s))},i),t||(Wr(),t=!0),window.onhashchange=window.onscrollend=s=>{Wr(s)},ie.scrollContainer&&document.querySelector(ie.scrollContainer)?(document.querySelector(ie.scrollContainer).addEventListener("scroll",Wr,!1),document.querySelector(ie.scrollContainer).addEventListener("resize",Wr,!1)):(document.addEventListener("scroll",Wr,!1),document.addEventListener("resize",Wr,!1));let o=null;Ps=_y(s=>{l=!0,ie.scrollSmooth&&Vr.disableTocAnimation(s),Vr.updateToc(ol,s),o&&clearTimeout(o),o=setTimeout(()=>{Vr.enableTocAnimation()},ie.scrollSmoothDuration),setTimeout(()=>{l=!1},ie.scrollSmoothDuration+100)},ie.throttleTimeout),ie.scrollContainer&&document.querySelector(ie.scrollContainer)?document.querySelector(ie.scrollContainer).addEventListener("click",Ps,!1):document.addEventListener("click",Ps,!1)}function bv(){let e=x6(ie);e!==null&&(ie.skipRendering||e&&(e.innerHTML=""),ie.scrollContainer&&document.querySelector(ie.scrollContainer)?(document.querySelector(ie.scrollContainer).removeEventListener("scroll",Wr,!1),document.querySelector(ie.scrollContainer).removeEventListener("resize",Wr,!1),Vr&&document.querySelector(ie.scrollContainer).removeEventListener("click",Ps,!1)):(document.removeEventListener("scroll",Wr,!1),document.removeEventListener("resize",Wr,!1),Vr&&document.removeEventListener("click",Ps,!1)))}function Gse(e){bv(),S6(e||ie)}var Vse=Object.prototype.hasOwnProperty;function Yse(...e){let t={};for(let r=0;r<e.length;r++){let n=e[r];for(let a in n)Vse.call(n,a)&&(t[a]=n[a])}return t}function _y(e,t,r){t||(t=250);let n,a;return function(...l){let i=this,o=+new Date;n&&o<n+t?(clearTimeout(a),a=setTimeout(()=>{n=o,e.apply(i,l)},t)):(n=o,e.apply(i,l))}}function BC(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function qse(e,t,r="auto"){switch(r){case"debounce":return BC(e,t);case"throttle":return _y(e,t);default:return t<334?BC(e,t):_y(e,t)}}function Wse(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function x6(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}var Xse={destroy:bv,init:S6,refresh:Gse},PC=Xse,Zse=F.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),Qse=F.nav(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),Jse=F.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.color.defaultText,textTransform:"uppercase",marginBottom:10})),eue=({headingId:e,title:t})=>typeof t=="string"||!t?m.createElement(Jse,{as:"h2",id:e,className:t?"":"sb-sr-only"},t||"Table of contents"):m.createElement("div",{id:e},t),tue=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:a,unsafeTocbotOptions:l,channel:i,className:o})=>{g.useEffect(()=>{if(t)return()=>{};let u={tocSelector:".toc-wrapper",contentSelector:n??".sbdocs-content",headingSelector:r??"h3",ignoreSelector:a??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:d=>{if(d.preventDefault(),d.currentTarget instanceof HTMLAnchorElement){let[,f]=d.currentTarget.href.split("#");f&&i.emit(Ise,`#${f}`)}},...l},c=setTimeout(()=>PC.init(u),100);return()=>{clearTimeout(c),PC.destroy()}},[i,t,a,n,r,l]);let s="table-of-contents";return m.createElement(Zse,{className:o},t?null:m.createElement(Qse,{"aria-labelledby":s},m.createElement(eue,{headingId:s,title:e}),m.createElement("div",{className:"toc-wrapper"})))},rue=e=>`anchor--${e}`,nue=({storyId:e,children:t})=>m.createElement("div",{id:rue(e),className:"sb-anchor"},t);const{filterArgTypes:IC}=__STORYBOOK_MODULE_PREVIEW_API__;var Jl=(e,t)=>g.useContext(Ur).resolveOf(e,t),aue=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),$6=e=>{if(e)return typeof e=="string"?e.includes("-")?aue(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function lue(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function _6(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}function iue(e){if(e.type==="component"){let{component:l,projectAnnotations:{parameters:i}}=e;return{argTypes:_6(l,i),parameters:i,component:l}}if(e.type==="meta"){let{preparedMeta:{argTypes:l,parameters:i,component:o,subcomponents:s}}=e;return{argTypes:l,parameters:i,component:o,subcomponents:s}}let{story:{argTypes:t,parameters:r,component:n,subcomponents:a}}=e;return{argTypes:t,parameters:r,component:n,subcomponents:a}}var oue=e=>{var v;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=Jl(t||"meta"),{argTypes:n,parameters:a,component:l,subcomponents:i}=iue(r),o=((v=a==null?void 0:a.docs)==null?void 0:v.argTypes)||{},s=e.include??o.include,u=e.exclude??o.exclude,c=e.sort??o.sort,d=IC(n,s,u);if(!(i&&Object.keys(i||{}).length>0))return m.createElement(Rf,{rows:d,sort:c});let f=$6(l)||"Main",p=Object.fromEntries(Object.entries(i||{}).map(([S,h])=>[S,{rows:IC(_6(h,a),s,u),sort:c}])),b={[f]:{rows:d,sort:c},...p};return m.createElement(E6,{tabs:b,sort:c})};Pt("ArgTypes",oue);var sue=Object.create,C6=Object.defineProperty,uue=Object.getOwnPropertyDescriptor,T6=Object.getOwnPropertyNames,cue=Object.getPrototypeOf,due=Object.prototype.hasOwnProperty,ue=(e,t)=>function(){return t||(0,e[T6(e)[0]])((t={exports:{}}).exports,t),t.exports},fue=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of T6(t))!due.call(e,a)&&a!==r&&C6(e,a,{get:()=>t[a],enumerable:!(n=uue(t,a))||n.enumerable});return e},vv=(e,t,r)=>(r=e!=null?sue(cue(e)):{},fue(!e||!e.__esModule?C6(r,"default",{value:e,enumerable:!0}):r,e)),pue=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],hue=["detail"];function gue(e){let t=pue.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of hue.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var w6=ue({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),mue=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),yue=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),bue=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),vue=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),Eue=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),Ev=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),Sue=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),xue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),$ue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),_ue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),Cue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),Tue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),wue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),Aue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),Oue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=Aue();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),Due=ue({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Sv=ue({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=Due();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),Rue=ue({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),A6=ue({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),a=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var l=42;r[n]=l;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var o=Object.getOwnPropertySymbols(r);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==l||s.enumerable!==!0)return!1}return!0}}}),O6=ue({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=A6();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),D6=ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),R6=ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=w6();t.exports=r.getPrototypeOf||null}}),Nue=ue({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,a=Math.max,l="[object Function]",i=function(u,c){for(var d=[],f=0;f<u.length;f+=1)d[f]=u[f];for(var p=0;p<c.length;p+=1)d[p+u.length]=c[p];return d},o=function(u,c){for(var d=[],f=c,p=0;f<u.length;f+=1,p+=1)d[p]=u[f];return d},s=function(u,c){for(var d="",f=0;f<u.length;f+=1)d+=u[f],f+1<u.length&&(d+=c);return d};t.exports=function(u){var c=this;if(typeof c!="function"||n.apply(c)!==l)throw new TypeError(r+c);for(var d=o(arguments,1),f,p=function(){if(this instanceof f){var y=c.apply(this,i(d,arguments));return Object(y)===y?y:this}return c.apply(u,i(d,arguments))},b=a(0,c.length-d.length),v=[],S=0;S<b;S++)v[S]="$"+S;if(f=Function("binder","return function ("+s(v,",")+"){ return binder.apply(this,arguments); }")(p),c.prototype){var h=function(){};h.prototype=c.prototype,f.prototype=new h,h.prototype=null}return f}}}),Gp=ue({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=Nue();t.exports=Function.prototype.bind||r}}),xv=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),N6=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),Lue=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),Mue=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=Gp(),n=N6(),a=xv(),l=Lue();t.exports=l||r.call(a,n)}}),L6=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=Gp(),n=Ev(),a=xv(),l=Mue();t.exports=function(i){if(i.length<1||typeof i[0]!="function")throw new n("a function is required");return l(r,a,i)}}}),Fue=ue({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=L6(),n=Sv(),a;try{a=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var l=!!a&&n&&n(Object.prototype,"__proto__"),i=Object,o=i.getPrototypeOf;t.exports=l&&typeof l.get=="function"?r([l.get]):typeof o=="function"?function(s){return o(s==null?s:i(s))}:!1}}),Bue=ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=D6(),n=R6(),a=Fue();t.exports=r?function(l){return r(l)}:n?function(l){if(!l||typeof l!="object"&&typeof l!="function")throw new TypeError("getProto: not an object");return n(l)}:a?function(l){return a(l)}:null}}),M6=ue({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,a=Gp();t.exports=a.call(r,n)}}),Pue=ue({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=w6(),a=mue(),l=yue(),i=bue(),o=vue(),s=Eue(),u=Ev(),c=Sue(),d=xue(),f=$ue(),p=_ue(),b=Cue(),v=Tue(),S=wue(),h=Oue(),y=Function,E=function(J){try{return y('"use strict"; return ('+J+").constructor;")()}catch{}},x=Sv(),T=Rue(),_=function(){throw new u},C=x?function(){try{return arguments.callee,_}catch{try{return x(arguments,"callee").get}catch{return _}}}():_,O=O6()(),D=Bue(),L=R6(),w=D6(),I=N6(),k=xv(),M={},B=typeof Uint8Array>"u"||!D?r:D(Uint8Array),$={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":O&&D?D([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":M,"%AsyncGenerator%":M,"%AsyncGeneratorFunction%":M,"%AsyncIteratorPrototype%":M,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":l,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":M,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&D?D(D([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!O||!D?r:D(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":o,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!O||!D?r:D(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&D?D(""[Symbol.iterator]()):r,"%Symbol%":O?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":C,"%TypedArray%":B,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":I,"%Object.defineProperty%":T,"%Object.getPrototypeOf%":L,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":b,"%Math.pow%":v,"%Math.round%":S,"%Math.sign%":h,"%Reflect.getPrototypeOf%":w};if(D)try{null.error}catch(J){A=D(D(J)),$["%Error.prototype%"]=A}var A,R=function J(Y){var X;if(Y==="%AsyncFunction%")X=E("async function () {}");else if(Y==="%GeneratorFunction%")X=E("function* () {}");else if(Y==="%AsyncGeneratorFunction%")X=E("async function* () {}");else if(Y==="%AsyncGenerator%"){var le=J("%AsyncGeneratorFunction%");le&&(X=le.prototype)}else if(Y==="%AsyncIteratorPrototype%"){var ye=J("%AsyncGenerator%");ye&&D&&(X=D(ye.prototype))}return $[Y]=X,X},P={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=Gp(),z=M6(),U=N.call(k,Array.prototype.concat),K=N.call(I,Array.prototype.splice),G=N.call(k,String.prototype.replace),H=N.call(k,String.prototype.slice),V=N.call(k,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ee=/\\(\\)?/g,W=function(J){var Y=H(J,0,1),X=H(J,-1);if(Y==="%"&&X!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(X==="%"&&Y!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var le=[];return G(J,q,function(ye,It,Q,kt){le[le.length]=Q?G(kt,ee,"$1"):It||ye}),le},ke=function(J,Y){var X=J,le;if(z(P,X)&&(le=P[X],X="%"+le[0]+"%"),z($,X)){var ye=$[X];if(ye===M&&(ye=R(X)),typeof ye>"u"&&!Y)throw new u("intrinsic "+J+" exists, but is not available. Please file an issue!");return{alias:le,name:X,value:ye}}throw new s("intrinsic "+J+" does not exist!")};t.exports=function(J,Y){if(typeof J!="string"||J.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Y!="boolean")throw new u('"allowMissing" argument must be a boolean');if(V(/^%?[^%]*%?$/,J)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var X=W(J),le=X.length>0?X[0]:"",ye=ke("%"+le+"%",Y),It=ye.name,Q=ye.value,kt=!1,jr=ye.alias;jr&&(le=jr[0],K(X,U([0,1],jr)));for(var ir=1,Kr=!0;ir<X.length;ir+=1){var ot=X[ir],wn=H(ot,0,1),An=H(ot,-1);if((wn==='"'||wn==="'"||wn==="`"||An==='"'||An==="'"||An==="`")&&wn!==An)throw new s("property names with quotes must have matching quotes");if((ot==="constructor"||!Kr)&&(kt=!0),le+="."+ot,It="%"+le+"%",z($,It))Q=$[It];else if(Q!=null){if(!(ot in Q)){if(!Y)throw new u("base intrinsic for "+J+" exists, but the property is not available.");return}if(x&&ir+1>=X.length){var On=x(Q,ot);Kr=!!On,Kr&&"get"in On&&!("originalValue"in On.get)?Q=On.get:Q=Q[ot]}else Kr=z(Q,ot),Q=Q[ot];Kr&&!kt&&($[It]=Q)}}return Q}}}),$v=ue({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=Pue(),n=L6(),a=n([r("%String.prototype.indexOf%")]);t.exports=function(l,i){var o=r(l,!!i);return typeof o=="function"&&a(l,".prototype.")>-1?n([o]):o}}}),Iue=ue({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=A6();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),F6=ue({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=$v(),n=Iue()(),a=M6(),l=Sv(),i;n?(o=r("RegExp.prototype.exec"),s={},u=function(){throw s},c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),i=function(p){if(!p||typeof p!="object")return!1;var b=l(p,"lastIndex"),v=b&&a(b,"value");if(!v)return!1;try{o(p,c)}catch(S){return S===s}}):(d=r("Object.prototype.toString"),f="[object RegExp]",i=function(p){return!p||typeof p!="object"&&typeof p!="function"?!1:d(p)===f});var o,s,u,c,d,f;t.exports=i}}),kue=ue({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(a){if(!a)return!1;var l=r.call(a);return l==="[object Function]"||typeof a=="function"&&l!=="[object RegExp]"||typeof window<"u"&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}}}),zue=ue({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=$v(),n=F6(),a=r("RegExp.prototype.exec"),l=Ev();t.exports=function(i){if(!n(i))throw new l("`regex` must be a RegExp");return function(o){return a(i,o)!==null}}}}),Hue=ue({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=$v(),n=r("Object.prototype.toString"),a=O6()(),l=zue();a?(i=r("Symbol.prototype.toString"),o=l(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:o(i(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return s(u)}catch{return!1}}):t.exports=function(u){return!1};var i,o,s}}),Uue=vv(F6()),jue=vv(kue()),Kue=vv(Hue());function Gue(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var Vue=typeof global=="object"&&global&&global.Object===Object&&global,Yue=Vue,que=typeof self=="object"&&self&&self.Object===Object&&self,Wue=Yue||que||Function("return this")(),_v=Wue,Xue=_v.Symbol,mo=Xue,B6=Object.prototype,Zue=B6.hasOwnProperty,Que=B6.toString,ls=mo?mo.toStringTag:void 0;function Jue(e){var t=Zue.call(e,ls),r=e[ls];try{e[ls]=void 0;var n=!0}catch{}var a=Que.call(e);return n&&(t?e[ls]=r:delete e[ls]),a}var ece=Jue,tce=Object.prototype,rce=tce.toString;function nce(e){return rce.call(e)}var ace=nce,lce="[object Null]",ice="[object Undefined]",kC=mo?mo.toStringTag:void 0;function oce(e){return e==null?e===void 0?ice:lce:kC&&kC in Object(e)?ece(e):ace(e)}var sce=oce,zC=mo?mo.prototype:void 0;zC&&zC.toString;function uce(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var P6=uce,cce="[object AsyncFunction]",dce="[object Function]",fce="[object GeneratorFunction]",pce="[object Proxy]";function hce(e){if(!P6(e))return!1;var t=sce(e);return t==dce||t==fce||t==cce||t==pce}var gce=hce,mce=_v["__core-js_shared__"],om=mce,HC=function(){var e=/[^.]+$/.exec(om&&om.keys&&om.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function yce(e){return!!HC&&HC in e}var bce=yce,vce=Function.prototype,Ece=vce.toString;function Sce(e){if(e!=null){try{return Ece.call(e)}catch{}try{return e+""}catch{}}return""}var xce=Sce,$ce=/[\\^$.*+?()[\]{}|]/g,_ce=/^\[object .+?Constructor\]$/,Cce=Function.prototype,Tce=Object.prototype,wce=Cce.toString,Ace=Tce.hasOwnProperty,Oce=RegExp("^"+wce.call(Ace).replace($ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Dce(e){if(!P6(e)||bce(e))return!1;var t=gce(e)?Oce:_ce;return t.test(xce(e))}var Rce=Dce;function Nce(e,t){return e==null?void 0:e[t]}var Lce=Nce;function Mce(e,t){var r=Lce(e,t);return Rce(r)?r:void 0}var I6=Mce;function Fce(e,t){return e===t||e!==e&&t!==t}var Bce=Fce,Pce=I6(Object,"create"),gu=Pce;function Ice(){this.__data__=gu?gu(null):{},this.size=0}var kce=Ice;function zce(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Hce=zce,Uce="__lodash_hash_undefined__",jce=Object.prototype,Kce=jce.hasOwnProperty;function Gce(e){var t=this.__data__;if(gu){var r=t[e];return r===Uce?void 0:r}return Kce.call(t,e)?t[e]:void 0}var Vce=Gce,Yce=Object.prototype,qce=Yce.hasOwnProperty;function Wce(e){var t=this.__data__;return gu?t[e]!==void 0:qce.call(t,e)}var Xce=Wce,Zce="__lodash_hash_undefined__";function Qce(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=gu&&t===void 0?Zce:t,this}var Jce=Qce;function Bo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Bo.prototype.clear=kce;Bo.prototype.delete=Hce;Bo.prototype.get=Vce;Bo.prototype.has=Xce;Bo.prototype.set=Jce;var UC=Bo;function ede(){this.__data__=[],this.size=0}var tde=ede;function rde(e,t){for(var r=e.length;r--;)if(Bce(e[r][0],t))return r;return-1}var Vp=rde,nde=Array.prototype,ade=nde.splice;function lde(e){var t=this.__data__,r=Vp(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ade.call(t,r,1),--this.size,!0}var ide=lde;function ode(e){var t=this.__data__,r=Vp(t,e);return r<0?void 0:t[r][1]}var sde=ode;function ude(e){return Vp(this.__data__,e)>-1}var cde=ude;function dde(e,t){var r=this.__data__,n=Vp(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var fde=dde;function Po(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Po.prototype.clear=tde;Po.prototype.delete=ide;Po.prototype.get=sde;Po.prototype.has=cde;Po.prototype.set=fde;var pde=Po,hde=I6(_v,"Map"),gde=hde;function mde(){this.size=0,this.__data__={hash:new UC,map:new(gde||pde),string:new UC}}var yde=mde;function bde(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var vde=bde;function Ede(e,t){var r=e.__data__;return vde(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Yp=Ede;function Sde(e){var t=Yp(this,e).delete(e);return this.size-=t?1:0,t}var xde=Sde;function $de(e){return Yp(this,e).get(e)}var _de=$de;function Cde(e){return Yp(this,e).has(e)}var Tde=Cde;function wde(e,t){var r=Yp(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Ade=wde;function Io(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Io.prototype.clear=yde;Io.prototype.delete=xde;Io.prototype.get=_de;Io.prototype.has=Tde;Io.prototype.set=Ade;var k6=Io,Ode="Expected a function";function Cv(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ode);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],l=r.cache;if(l.has(a))return l.get(a);var i=e.apply(this,n);return r.cache=l.set(a,i)||l,i};return r.cache=new(Cv.Cache||k6),r}Cv.Cache=k6;var Dde=Cv,Rde=500;function Nde(e){var t=Dde(e,function(n){return r.size===Rde&&r.clear(),n}),r=t.cache;return t}var Lde=Nde,Mde=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fde=/\\(\\)?/g;Lde(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Mde,function(r,n,a,l){t.push(a?l.replace(Fde,"$1"):n||r)}),t});var Bde=Gue,Pde=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function z6(e){if(!Bde(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=gue(t),r=!0),t=Object.keys(t).reduce((n,a)=>{try{t[a]&&t[a].toJSON,n[a]=t[a]}catch{r=!0}return n},{}),r?t:e}var Ide=function(e){let t,r,n,a;return function(l,i){var o;try{if(l==="")return a=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let s=r.get(this)||this;for(;n.length&&s!==n[0];)n.shift(),a.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===Number.NEGATIVE_INFINITY?"_-Infinity_":i===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return Pde.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,Uue.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,jue.default)(i))return;if((0,Kue.default)(i)){if(!e.allowSymbol)return;let c=Symbol.keyFor(i);return c!==void 0?`_gsymbol_${c}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(a)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if((o=i==null?void 0:i.constructor)!=null&&o.name&&i.constructor.name!=="Object"&&!Array.isArray(i)){let c=t.get(i);if(!c){let d={__isClassInstance__:!0,__className__:i.constructor.name,...Object.getOwnPropertyNames(i).reduce((f,p)=>{try{f[p]=i[p]}catch{}return f},{})};return a.push(l),n.unshift(d),t.set(i,JSON.stringify(a)),i!==d&&r.set(i,d),d}return`_duplicate_${c}`}let u=t.get(i);if(!u){let c=Array.isArray(i)?i:z6(i);return a.push(l),n.unshift(c),t.set(i,JSON.stringify(a)),i!==c&&r.set(i,c),c}return`_duplicate_${u}`}catch{return}}},kde={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},zde=(e,t={})=>{let r={...kde,...t};return JSON.stringify(z6(e),Ide(r),t.space)};function H6(e){return zde(e,{maxDepth:50})}var Tv=g.createContext({sources:{}}),U6="--unknown--",Hde=({children:e,channel:t})=>{let[r,n]=g.useState({});return g.useEffect(()=>{let a=(l,i=null,o=!1)=>{let{id:s,args:u=void 0,source:c,format:d}=typeof l=="string"?{id:l,source:i,format:o}:l,f=u?H6(u):U6;n(p=>({...p,[s]:{...p[s],[f]:{code:c||"",format:d}}}))};return t.on(Nv,a),()=>t.off(Nv,a)},[]),m.createElement(Tv.Provider,{value:{sources:r}},e)};function Ude(e,t,r){let[n,a]=g.useState("Transforming..."),l=t?t==null?void 0:t(e,r):e;return g.useEffect(()=>{async function i(){let o=await l;o!==n&&a(o)}i()}),typeof l=="object"&&typeof l.then=="function"?n:l}var jde=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[H6(t)])||(a==null?void 0:a[U6])||{code:""}},Kde=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var d;let a=t.parameters??{},{__isArgsStory:l}=a,i=((d=a.docs)==null?void 0:d.source)||{},o=r||i.type||Xp.AUTO,s=o===Xp.DYNAMIC||o===Xp.AUTO&&e&&l?e:i.originalSource||"",u=n??i.transform,c=u?Ude(s,u,t):s;return i.code!==void 0?i.code:c},j6=(e,t,r)=>{var p,b;let{of:n}=e,a=g.useMemo(()=>{if(n)return t.resolveOf(n,["story"]).story;try{return t.storyById()}catch{}},[t,n]),l=a?t.getStoryContext(a):{},i=e.__forceInitialArgs?l.initialArgs:l.unmappedArgs,o=a?jde(a.id,i,r):null,s=Kde({snippet:o?o.code:"",storyContext:{...l,args:i},typeFromProps:e.type,transformFromProps:e.transform});if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let u=((b=(p=a==null?void 0:a.parameters)==null?void 0:p.docs)==null?void 0:b.source)||{},c=e.format,d=e.language??u.language??"jsx",f=e.dark??u.dark??!1;return!e.code&&!a?{error:"Oh no! The source is not available."}:e.code?{code:e.code,format:c,language:d,dark:f}:(c=(o==null?void 0:o.format)??!0,{code:s,format:c,language:d,dark:f})},Gde=e=>{let t=g.useContext(Tv),r=g.useContext(Ur),n=j6(e,r,t);return m.createElement(uv,{...n})};Pt("Source",Gde);var Vde=e=>{var p,b,v,S,h,y,E,x,T,_,C,O,D,L;let t=g.useContext(Ur),r=g.useContext(Tv),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:l}=Jl(n||"story",["story"]),i=j6({...a,...n&&{of:n}},t,r),o=e.layout??l.parameters.layout??((b=(p=l.parameters.docs)==null?void 0:p.canvas)==null?void 0:b.layout)??"padded",s=e.withToolbar??((S=(v=l.parameters.docs)==null?void 0:v.canvas)==null?void 0:S.withToolbar)??!1,u=e.additionalActions??((y=(h=l.parameters.docs)==null?void 0:h.canvas)==null?void 0:y.additionalActions),c=e.sourceState??((x=(E=l.parameters.docs)==null?void 0:E.canvas)==null?void 0:x.sourceState)??"hidden",d=e.className??((_=(T=l.parameters.docs)==null?void 0:T.canvas)==null?void 0:_.className),f=((C=e.story)==null?void 0:C.inline)??((L=(D=(O=l.parameters)==null?void 0:O.docs)==null?void 0:D.story)==null?void 0:L.inline)??!1;return m.createElement(v6,{withSource:c==="none"?void 0:i,isExpanded:c==="shown",withToolbar:s,additionalActions:u,className:d,layout:o,inline:f},m.createElement(Sse,{of:n||l.moduleExport,meta:e.meta,...e.story}))},Yde=Pt("Canvas",Vde);const{filterArgTypes:jC}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:qde,STORY_ARGS_UPDATED:KC,UPDATE_STORY_ARGS:Wde}=__STORYBOOK_MODULE_CORE_EVENTS__;var Xde=(e,t)=>{let r=Zde(e,t);if(!r)throw new Error("No result when story was defined");return r},Zde=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,l]=g.useState(r.args);g.useEffect(()=>{let s=u=>{u.storyId===n&&l(u.args)};return t.channel.on(KC,s),()=>t.channel.off(KC,s)},[n,t.channel]);let i=g.useCallback(s=>t.channel.emit(Wde,{storyId:n,updatedArgs:s}),[n,t.channel]),o=g.useCallback(s=>t.channel.emit(qde,{storyId:n,argNames:s}),[n,t.channel]);return e&&[a,i,o]};const{GLOBALS_UPDATED:GC}=__STORYBOOK_MODULE_CORE_EVENTS__;var Qde=(e,t)=>{let r=t.getStoryContext(e),[n,a]=g.useState(r.globals);return g.useEffect(()=>{let l=i=>{a(i.globals)};return t.channel.on(GC,l),()=>t.channel.off(GC,l)},[t.channel]),[n]};const{Tag:Jde}=__STORYBOOK_MODULE_PREVIEW_API__;var K6=()=>g.useContext(Ur).componentStories().find(e=>e.tags.includes(Jde.AUTODOCS));function efe(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var tfe=e=>{var T;let{of:t}=e,r=g.useContext(Ur),n=K6(),a=t?r.resolveOf(t,["story"]).story:n;if(!a)return null;let{parameters:l,argTypes:i,component:o,subcomponents:s}=a,u=((T=l.docs)==null?void 0:T.controls)||{},c=e.include??u.include,d=e.exclude??u.exclude,f=e.sort??u.sort,[p,b,v]=Xde(a,r),[S]=Qde(a,r),h=jC(i,c,d);if(!(s&&Object.keys(s||{}).length>0))return Object.keys(h).length>0||Object.keys(p).length>0?m.createElement(Rf,{rows:h,sort:f,args:p,globals:S,updateArgs:b,resetArgs:v}):null;let y=$6(o)||"Story",E=Object.fromEntries(Object.entries(s||{}).map(([_,C])=>[_,{rows:jC(efe(C,l),c,d),sort:f}])),x={[y]:{rows:h,sort:f},...E};return m.createElement(E6,{tabs:x,sort:f,args:p,globals:S,updateArgs:b,resetArgs:v})},rfe=Pt("Controls",tfe);const{NAVIGATE_URL:nfe}=__STORYBOOK_MODULE_CORE_EVENTS__;var{document:G6}=globalThis,V6=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return m.createElement(O1,null,t);let n=e&&e.split("-");return m.createElement(uv,{language:n&&n[1]||"text",format:!1,code:t,...r})};function wv(e,t){e.channel.emit(nfe,t)}var Cy=B4.a,afe=({hash:e,children:t})=>{let r=g.useContext(Ur);return m.createElement(Cy,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);G6.getElementById(a)&&wv(r,e)}},t)},Y6=e=>{let{href:t,target:r,children:n,...a}=e,l=g.useContext(Ur);return!t||r==="_blank"||/^https?:\/\//.test(t)?m.createElement(Cy,{...e}):t.startsWith("#")?m.createElement(afe,{hash:t},n):m.createElement(Cy,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),wv(l,i.currentTarget.getAttribute("href")||""))},target:r,...a},n)},q6=["h1","h2","h3","h4","h5","h6"],lfe=q6.reduce((e,t)=>({...e,[t]:F(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),ife=F.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),ofe=({as:e,id:t,children:r,...n})=>{let a=g.useContext(Ur),l=lfe[e],i=`#${t}`;return m.createElement(l,{id:t,...n},m.createElement(ife,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:o=>{G6.getElementById(t)&&wv(a,i)}},m.createElement(GF,null)),r)},Av=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return m.createElement(ofe,{as:t,id:r,...a},n);let l=t,{as:i,...o}=e;return m.createElement(l,{...ze(o,t)})},W6=q6.reduce((e,t)=>({...e,[t]:r=>m.createElement(Av,{as:t,...r})}),{}),sfe=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(cae`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
|
|
796
796
|
This is often caused by not wrapping the child in a template string.
|
|
797
797
|
|
|
798
798
|
This is invalid:
|