Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

807 строки
1005 KiB

  1. const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./syntaxhighlighter-RTCFPKCB-CC1fO_XQ.js","./iframe-DI5_BFY0.js","./preload-helper-C1FmrZbK.js","./iframe-BUe8Zoo3.css","./formatter-L2YTDE3Q-D4acMC8Q.js","./WithTooltip-7X4HQR7L-iCU-y5zG.js","./Color-KMSTOMOX-B7-WWyJ1.js"])))=>i.map(i=>d[i]);
  2. var f8=Object.defineProperty;var p8=(e,t,r)=>t in e?f8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var cn=(e,t,r)=>p8(e,typeof t!="symbol"?t+"":t,r);import{_ as ta}from"./preload-helper-C1FmrZbK.js";import{i as An,e as h8,f as g8,h as Iv,k as m8,r as y8,s as b8,l as v8,m as E8,n as S8,o as x8,p as Zp,q as kv,t as $8,u as _8,v as C8,w as T8,x as w8,y as A8,z as O8,A as D8,B as R8,C as N8,D as L8,E as M8,F as F8,G as B8,H as P8,I as I8,J as k8,K as zv,c as zt,L as Wu,b as Wt,M as Ft,N as z8,R as H8,O as U8,S as j8,P as Hv,Q as ya,g as My,T as Uv,U as K8,V as Qp}from"./iframe-DI5_BFY0.js";function G8(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 V8(e,t){let r={},n=Object.keys(e);for(let a=0;a<n.length;a++){let l=n[a],i=e[l];r[l]=t(i,l,e)}return r}function Y8(e){return e==="__proto__"}function hr(e,t,r){let n=Object.keys(t);for(let a=0;a<n.length;a++){let l=n[a];if(Y8(l))continue;let i=t[l],o=e[l],s=r(o,i,l,e,t);s!==void 0?e[l]=s:Array.isArray(i)?Array.isArray(o)?e[l]=hr(o,i,r):e[l]=hr([],i,r):An(i)?An(o)?e[l]=hr(o,i,r):e[l]=hr({},i,r):(o===void 0||i!==void 0)&&(e[l]=i)}return e}function Uo(e,t){let r={};for(let n=0;n<t.length;n++){let a=t[n];Object.hasOwn(e,a)&&(r[a]=e[a])}return r}function Jp(e){if(h8(e))return e;if(Array.isArray(e)||g8(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e),r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){let n=new r(e);return n.lastIndex=e.lastIndex,n}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let n=new r(e.message);return n.stack=e.stack,n.name=e.name,n.cause=e.cause,n}if(typeof File<"u"&&e instanceof File)return new r([e],e.name,{type:e.type,lastModified:e.lastModified});if(typeof e=="object"){let n=Object.create(t);return Object.assign(n,e)}return e}function q8(e,t){let r={...e};for(let n=0;n<t.length;n++){let a=t[n];delete r[a]}return r}function eh(e,t){return hr(Jp(e),t,function r(n,a){if(Array.isArray(a))return Array.isArray(n)?hr(Jp(n),a,r):hr([],a,r);if(An(a))return An(n)?hr(Jp(n),a,r):hr({},a,r)})}function W8(){}function X8(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Z8(e,t,r){return ss(e,t,void 0,void 0,void 0,void 0,r)}function ss(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 vs(e,t,l,i)}return vs(e,t,l,i)}function vs(e,t,r,n){if(Object.is(e,t))return!0;let a=Iv(e),l=Iv(t);if(a===zv&&(a=Zp),l===zv&&(l=Zp),a!==l)return!1;switch(a){case x8:return e.toString()===t.toString();case S8:{let s=e.valueOf(),u=t.valueOf();return X8(s,u)}case E8:case v8:case b8:return Object.is(e.valueOf(),t.valueOf());case y8:return e.source===t.source&&e.flags===t.flags;case m8: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 k8:{if(e.size!==t.size)return!1;for(let[s,u]of e.entries())if(!t.has(s)||!ss(u,t.get(s),s,e,t,r,n))return!1;return!0}case I8:{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=>ss(d,p,void 0,e,t,r,n));if(f===-1)return!1;u.splice(f,1)}return!0}case P8:case B8:case F8:case M8:case L8:case N8:case R8:case D8:case O8:case A8:case w8:case T8:{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(!ss(e[s],t[s],s,e,t,r,n))return!1;return!0}case C8:return e.byteLength!==t.byteLength?!1:vs(new Uint8Array(e),new Uint8Array(t),r,n);case _8:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:vs(new Uint8Array(e),new Uint8Array(t),r,n);case $8:return e.name===t.name&&e.message===t.message;case Zp:{if(!(vs(e.constructor,t.constructor,r,n)||An(e)&&An(t)))return!1;let s=[...Object.keys(e),...kv(e)],u=[...Object.keys(t),...kv(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(!ss(f,p,d,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}function yn(e,t){return Z8(e,t,W8)}var jv="backgrounds",Q8="outline",J8={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}};function e7(){var e,t,r;try{return!!globalThis.__vitest_browser__||!!((r=(t=(e=globalThis.window)==null?void 0:e.navigator)==null?void 0:t.userAgent)!=null&&r.match(/StorybookTestRunner/))}catch{return!1}}var Ma={ATTACHED_MDX:"attached-mdx",UNATTACHED_MDX:"unattached-mdx",PLAY_FN:"play-fn",DEV:"dev",TEST:"test"},Ad={_docs:(e,t)=>t?e.type!=="docs":e.type==="docs",_play:(e,t)=>{var r,n;return t?e.type!=="story"||!((r=e.tags)!=null&&r.includes(Ma.PLAY_FN)):e.type==="story"&&!!((n=e.tags)!=null&&n.includes(Ma.PLAY_FN))},_test:(e,t)=>t?e.type!=="story"||e.subtype!=="test":e.type==="story"&&e.subtype==="test"},t7=e=>(t,r)=>{var n,a;return r?!((n=t.tags)!=null&&n.includes(e)):!!((a=t.tags)!=null&&a.includes(e))},r7=({includedTagFilters:e,excludedTagFilters:t,includedStatusFilters:r,excludedStatusFilters:n})=>((e==null?void 0:e.length)??0)+((t==null?void 0:t.length)??0)+((r==null?void 0:r.length)??0)+((n==null?void 0:n.length)??0),Kv=e=>r7(e)>0,iT=zt({"../../node_modules/picoquery/lib/string-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(a,l)=>"%"+((l<16?"0":"")+l.toString(16)).toUpperCase()),r=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function n(a){let l=a.length;if(l===0)return"";let i="",o=0,s=0;e:for(;s<l;s++){let u=a.charCodeAt(s);for(;u<128;){if(r[u]!==1&&(o<s&&(i+=a.slice(o,s)),o=s+1,i+=t[u]),++s===l)break e;u=a.charCodeAt(s)}if(o<s&&(i+=a.slice(o,s)),u<2048){o=s+1,i+=t[192|u>>6]+t[128|u&63];continue}if(u<55296||u>=57344){o=s+1,i+=t[224|u>>12]+t[128|u>>6&63]+t[128|u&63];continue}if(++s,s>=l)throw new Error("URI malformed");let c=a.charCodeAt(s)&1023;o=s+1,u=65536+((u&1023)<<10|c),i+=t[240|u>>18]+t[128|u>>12&63]+t[128|u>>6&63]+t[128|u&63]}return o===0?a:o<l?i+a.slice(o):i}}}),Fy=zt({"../../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=iT(),r=l=>{switch(typeof l){case"string":return(0,t.encodeString)(l);case"bigint":case"boolean":return""+l;case"number":if(Number.isFinite(l))return l<1e21?""+l:(0,t.encodeString)(""+l);break}return l instanceof Date?(0,t.encodeString)(l.toISOString()):""};e.defaultValueSerializer=r;var n=l=>l instanceof Date;e.defaultShouldSerializeObject=n;var a=l=>l;e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:a,valueSerializer:e.defaultValueSerializer,keyDeserializer:a,shouldSerializeObject:e.defaultShouldSerializeObject}}}),oT=zt({"../../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=a,e.stringifyObject=c;var t=Fy(),r=iT();function n(d){return d==="__proto__"||d==="constructor"||d==="prototype"}function a(d,f,p,y,b){if(n(f))return d;let S=d[f];return typeof S=="object"&&S!==null?S:!y&&(b||typeof p=="number"||typeof p=="string"&&p*0===0&&p.indexOf(".")===-1)?d[f]=[]:d[f]={}}var l=20,i="[]",o="[",s="]",u=".";function c(d,f,p=0,y,b){let{nestingSyntax:S=t.defaultOptions.nestingSyntax,arrayRepeat:h=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:v=t.defaultOptions.arrayRepeatSyntax,nesting:E=t.defaultOptions.nesting,delimiter:x=t.defaultOptions.delimiter,valueSerializer:_=t.defaultOptions.valueSerializer,shouldSerializeObject:$=t.defaultOptions.shouldSerializeObject}=f,C=typeof x=="number"?String.fromCharCode(x):x,w=b===!0&&h,A=S==="dot"||S==="js"&&!b;if(p>l)return"";let O="",T=!0,M=!1;for(let P in d){let I=d[P];if(I===void 0)continue;let H;y?(H=y,w?v==="bracket"&&(H+=i):A?(H+=u,H+=P):(H+=o,H+=P,H+=s)):H=P,T||(O+=C),typeof I=="object"&&I!==null&&!$(I)?(M=I.pop!==void 0,(E||h&&M)&&(O+=c(I,f,p+1,H,M))):(O+=(0,r.encodeString)(H),O+="=",O+=_(I,P)),T&&(T=!1)}return O}}}),n7=zt({"../../node_modules/picoquery/lib/decode-uri-component.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeURIComponent=a;var t=12,r=0,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function a(o){let s=o.indexOf("%");if(s===-1)return o;let u=o.length,c="",d=0,f=0,p=s,y=t;for(;s>-1&&s<u;){let b=i(o[s+1],4),S=i(o[s+2],0),h=b|S,v=n[h];if(y=n[256+y+v],f=f<<6|h&n[364+v],y===t)c+=o.slice(d,p),c+=f<=65535?String.fromCharCode(f):String.fromCharCode(55232+(f>>10),56320+(f&1023)),f=0,d=s+3,s=p=o.indexOf("%",d);else{if(y===r)return null;if(s+=3,s<u&&o.charCodeAt(s)===37)continue;return null}}return c+o.slice(d)}var l={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function i(o,s){let u=l[o];return u===void 0?255:u<<s}}}),a7=zt({"../../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=u;var t=oT(),r=Fy(),n=n7(),a=c=>{let d=Number(c);return Number.isNaN(d)?c:d};e.numberKeyDeserializer=a;var l=c=>{let d=Number(c);return Number.isNaN(d)?c:d};e.numberValueDeserializer=l;var i=/\+/g,o=function(){};o.prototype=Object.create(null);function s(c,d,f,p,y){let b=c.substring(d,f);return p&&(b=b.replace(i," ")),y&&(b=(0,n.decodeURIComponent)(b)||b),b}function u(c,d){let{valueDeserializer:f=r.defaultOptions.valueDeserializer,keyDeserializer:p=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:y=r.defaultOptions.arrayRepeatSyntax,nesting:b=r.defaultOptions.nesting,arrayRepeat:S=r.defaultOptions.arrayRepeat,nestingSyntax:h=r.defaultOptions.nestingSyntax,delimiter:v=r.defaultOptions.delimiter}=d??{},E=typeof v=="string"?v.charCodeAt(0):v,x=h==="js",_=new o;if(typeof c!="string")return _;let $=c.length,C="",w=-1,A=-1,O=-1,T=_,M,P="",I="",H=!1,L=!1,D=!1,N=!1,U=!1,B=!1,G=0,V=-1,Z=-1,J=-1;for(let j=0;j<$+1;j++){if(G=j!==$?c.charCodeAt(j):E,G===E){if(B=A>w,B||(A=j),O!==A-1&&(I=s(c,O+1,V>-1?V:A,D,H),P=p(I),M!==void 0&&(T=(0,t.getDeepObject)(T,M,P,x&&U,void 0))),B||P!==""){B&&(C=c.slice(A+1,j),N&&(C=C.replace(i," ")),L&&(C=(0,n.decodeURIComponent)(C)||C));let X=f(C,P);if(S){let te=T[P];te===void 0?V>-1?T[P]=[X]:T[P]=X:te.pop?te.push(X):T[P]=[te,X]}else T[P]=X}C="",w=j,A=j,H=!1,L=!1,D=!1,N=!1,U=!1,V=-1,O=j,T=_,M=void 0,P=""}else G===93?(S&&y==="bracket"&&J===91&&(V=Z),b&&(h==="index"||x)&&A<=w&&(O!==Z&&(I=s(c,O+1,j,D,H),P=p(I),M!==void 0&&(T=(0,t.getDeepObject)(T,M,P,void 0,void 0)),M=P,D=!1,H=!1),O=j,U=!1)):G===46?b&&(h==="dot"||x)&&A<=w&&(O!==Z&&(I=s(c,O+1,j,D,H),P=p(I),M!==void 0&&(T=(0,t.getDeepObject)(T,M,P,x)),M=P,D=!1,H=!1),U=!0,O=j):G===91?b&&(h==="index"||x)&&A<=w&&(O!==Z&&(I=s(c,O+1,j,D,H),P=p(I),x&&M!==void 0&&(T=(0,t.getDeepObject)(T,M,P,x)),M=P,D=!1,H=!1,U=!1),O=j):G===61?A<=w?A=j:L=!0:G===43?A>w?N=!0:D=!0:G===37&&(A>w?L=!0:H=!0);Z=j,J=G}return _}}}),l7=zt({"../../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=oT();function r(n,a){if(n===null||typeof n!="object")return"";let l=a??{};return(0,t.stringifyObject)(n,l)}}}),sT=zt({"../../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?function(l,i,o,s){s===void 0&&(s=o);var u=Object.getOwnPropertyDescriptor(i,o);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(l,s,u)}:function(l,i,o,s){s===void 0&&(s=o),l[s]=i[o]}),r=e&&e.__exportStar||function(l,i){for(var o in l)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&t(i,l,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=a7();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return n.parse}});var a=l7();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return a.stringify}}),r(Fy(),e)}}),i7="Invariant failed";function gm(e,t){if(!e)throw new Error(i7)}var Kl=zt({"../../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 Wu=="function"&&Wu;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(y){var b=n[u][1][y];return i(b||y)},p,p.exports,r,n,a,l)}return a[u].exports}for(var o=typeof Wu=="function"&&Wu,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 y=c,b,S,h=arguments.length-1,v=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(v[x]={cacheItem:y,arg:arguments[x]},y.has(arguments[x])){y=y.get(arguments[x]);continue}E=!1,b=new l(!1),y.set(arguments[x],b),y=b}return E&&(y.has(arguments[h])?S=y.get(arguments[h]):E=!1),E||(S=f.apply(null,arguments),y.set(arguments[h],S)),u>0&&(v[h]={cacheItem:y,arg:arguments[h]},E?i(d,v):d.push(v),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,y,b;for(y=0;y<d;y++){for(p=!0,b=0;b<f;b++)if(!s(u[y][b].arg,c[b].arg)){p=!1;break}if(p)break}u.push(u.splice(y,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 Mr(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(`
  3. [ ]{`+Math.min.apply(Math,a)+"}","g");n=n.map(function(o){return o.replace(l,`
  4. `)})}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(`
  5. `)&&(d=String(o).split(`
  6. `).map(function(f,p){return p===0?f:""+c+f}).join(`
  7. `)),i+=d+n[s+1]}),i}var o7="storybook/actions",s7=`${o7}/action-event`,u7={depth:10,clearOnStoryChange:!0,limit:50};const{ImplicitActionsDuringRendering:c7}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:Gv}=__STORYBOOK_MODULE_GLOBAL__,{addons:d7}=__STORYBOOK_MODULE_PREVIEW_API__;var uT=(e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:uT(r,t)},f7=e=>!!(typeof e=="object"&&e&&uT(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),p7=e=>{if(f7(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let r=Object.getOwnPropertyDescriptor(t,"view"),n=r==null?void 0:r.value;return typeof n=="object"&&(n==null?void 0:n.constructor.name)==="Window"&&Object.defineProperty(t,"view",{...r,value:Object.create(n.constructor.prototype)}),t}return e};function By(e,t={}){let r={...u7,...t},n=function(...a){var d,f;if(t.implicit){let p=(d="__STORYBOOK_PREVIEW__"in Gv?Gv.__STORYBOOK_PREVIEW__:void 0)==null?void 0:d.storyRenders.find(y=>y.phase==="playing"||y.phase==="rendering");if(p){let y=!((f=globalThis==null?void 0:globalThis.FEATURES)!=null&&f.disallowImplicitActionsInRenderV8),b=new c7({phase:p.phase,name:e,deprecated:y});if(y)console.warn(b);else throw b}}let l=d7.getChannel(),i=Date.now().toString(36)+Math.random().toString(36).substring(2),o=5,s=a.map(p7),u=a.length>1?s:s[0],c={id:i,count:0,data:{name:e,args:u},options:{...r,maxDepth:o+(r.depth||3)}};l.emit(s7,c)};return n.isAction=!0,n.implicit=t.implicit,n}var Ln={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},h7={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},cT=Object.entries(h7);function Pf(e){return String(e)}Pf.open="";Pf.close="";cT.reduce((e,[t])=>(e[t]=Pf,e),{isColorSupported:!1});function g7(e=!1){let t=typeof process<"u"?process:void 0,r=(t==null?void 0:t.env)||{},n=(t==null?void 0:t.argv)||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||(t==null?void 0:t.platform)==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function m7(e=!1){let t=g7(e),r=(i,o,s,u)=>{let c="",d=0;do c+=i.substring(d,u)+s,d=u+o.length,u=i.indexOf(o,d);while(~u);return c+i.substring(d)},n=(i,o,s=i)=>{let u=c=>{let d=String(c),f=d.indexOf(o,i.length);return~f?i+r(d,o,s,f)+o:i+d+o};return u.open=i,u.close=o,u},a={isColorSupported:t},l=i=>`\x1B[${i}m`;for(let[i,o]of cT)a[i]=t?n(l(o[0]),l(o[1]),o[2]):Pf;return a}var Gn=m7();function dT(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var a=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,a.get?a:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(e)}function y7(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let a of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,a).enumerable&&n.push(a);return n}function yu(e,t,r,n,a,l,i=": "){let o="",s=0,u=e.next();if(!u.done){o+=t.spacingOuter;let c=r+t.indent;for(;!u.done;){if(o+=c,s++===t.maxWidth){o+="…";break}let d=l(u.value[0],t,c,n,a),f=l(u.value[1],t,c,n,a);o+=d+i+f,u=e.next(),u.done?t.min||(o+=","):o+=`,${t.spacingInner}`}o+=t.spacingOuter+r}return o}function Py(e,t,r,n,a,l){let i="",o=0,s=e.next();if(!s.done){i+=t.spacingOuter;let u=r+t.indent;for(;!s.done;){if(i+=u,o++===t.maxWidth){i+="…";break}i+=l(s.value,t,u,n,a),s=e.next(),s.done?t.min||(i+=","):i+=`,${t.spacingInner}`}i+=t.spacingOuter+r}return i}function Od(e,t,r,n,a,l){let i="";e=e instanceof ArrayBuffer?new DataView(e):e;let o=u=>u instanceof DataView,s=o(e)?e.byteLength:e.length;if(s>0){i+=t.spacingOuter;let u=r+t.indent;for(let c=0;c<s;c++){if(i+=u,c===t.maxWidth){i+="…";break}(o(e)||c in e)&&(i+=l(o(e)?e.getInt8(c):e[c],t,u,n,a)),c<s-1?i+=`,${t.spacingInner}`:t.min||(i+=",")}i+=t.spacingOuter+r}return i}function Iy(e,t,r,n,a,l){let i="",o=y7(e,t.compareKeys);if(o.length>0){i+=t.spacingOuter;let s=r+t.indent;for(let u=0;u<o.length;u++){let c=o[u],d=l(c,t,s,n,a),f=l(e[c],t,s,n,a);i+=`${s+d}: ${f}`,u<o.length-1?i+=`,${t.spacingInner}`:t.min||(i+=",")}i+=t.spacingOuter+r}return i}var b7=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,th=" ",v7=(e,t,r,n,a,l)=>{let i=e.toString();if(i==="ArrayContaining"||i==="ArrayNotContaining")return++n>t.maxDepth?`[${i}]`:`${i+th}[${Od(e.sample,t,r,n,a,l)}]`;if(i==="ObjectContaining"||i==="ObjectNotContaining")return++n>t.maxDepth?`[${i}]`:`${i+th}{${Iy(e.sample,t,r,n,a,l)}}`;if(i==="StringMatching"||i==="StringNotMatching"||i==="StringContaining"||i==="StringNotContaining")return i+th+l(e.sample,t,r,n,a);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},E7=e=>e&&e.$$typeof===b7,S7={serialize:v7,test:E7},x7=" ",fT=new Set(["DOMStringMap","NamedNodeMap"]),$7=/^(?:HTML\w*Collection|NodeList)$/;function _7(e){return fT.has(e)||$7.test(e)}var C7=e=>e&&e.constructor&&!!e.constructor.name&&_7(e.constructor.name);function T7(e){return e.constructor.name==="NamedNodeMap"}var w7=(e,t,r,n,a,l)=>{let i=e.constructor.name;return++n>t.maxDepth?`[${i}]`:(t.min?"":i+x7)+(fT.has(i)?`{${Iy(T7(e)?[...e].reduce((o,s)=>(o[s.name]=s.value,o),{}):{...e},t,r,n,a,l)}}`:`[${Od([...e],t,r,n,a,l)}]`)},A7={serialize:w7,test:C7};function pT(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function ky(e,t,r,n,a,l,i){let o=n+r.indent,s=r.colors;return e.map(u=>{let c=t[u],d=i(c,r,o,a,l);return typeof c!="string"&&(d.includes(`
  8. `)&&(d=r.spacingOuter+o+d+r.spacingOuter+n),d=`{${d}}`),`${r.spacingInner+n+s.prop.open+u+s.prop.close}=${s.value.open}${d}${s.value.close}`}).join("")}function zy(e,t,r,n,a,l){return e.map(i=>t.spacingOuter+r+(typeof i=="string"?hT(i,t):l(i,t,r,n,a))).join("")}function hT(e,t){let r=t.colors.content;return r.open+pT(e)+r.close}function O7(e,t){let r=t.colors.comment;return`${r.open}<!--${pT(e)}-->${r.close}`}function Hy(e,t,r,n,a){let l=n.colors.tag;return`${l.open}<${e}${t&&l.close+t+n.spacingOuter+a+l.open}${r?`>${l.close}${r}${n.spacingOuter}${a}${l.open}</${e}`:`${t&&!n.min?"":" "}/`}>${l.close}`}function Uy(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}var D7=1,gT=3,mT=8,yT=11,R7=/^(?:(?:HTML|SVG)\w*)?Element$/;function N7(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function L7(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,a=typeof n=="string"&&n.includes("-")||N7(e);return r===D7&&(R7.test(t)||a)||r===gT&&t==="Text"||r===mT&&t==="Comment"||r===yT&&t==="DocumentFragment"}var M7=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&L7(e)};function F7(e){return e.nodeType===gT}function B7(e){return e.nodeType===mT}function rh(e){return e.nodeType===yT}var P7=(e,t,r,n,a,l)=>{if(F7(e))return hT(e.data,t);if(B7(e))return O7(e.data,t);let i=rh(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?Uy(i,t):Hy(i,ky(rh(e)?[]:Array.from(e.attributes,o=>o.name).sort(),rh(e)?{}:[...e.attributes].reduce((o,s)=>(o[s.name]=s.value,o),{}),t,r+t.indent,n,a,l),zy(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,a,l),t,r)},I7={serialize:P7,test:M7},k7="@@__IMMUTABLE_ITERABLE__@@",z7="@@__IMMUTABLE_LIST__@@",H7="@@__IMMUTABLE_KEYED__@@",U7="@@__IMMUTABLE_MAP__@@",Vv="@@__IMMUTABLE_ORDERED__@@",j7="@@__IMMUTABLE_RECORD__@@",K7="@@__IMMUTABLE_SEQ__@@",G7="@@__IMMUTABLE_SET__@@",V7="@@__IMMUTABLE_STACK__@@",Gi=e=>`Immutable.${e}`,If=e=>`[${e}]`,ks=" ",Yv="…";function Y7(e,t,r,n,a,l,i){return++n>t.maxDepth?If(Gi(i)):`${Gi(i)+ks}{${yu(e.entries(),t,r,n,a,l)}}`}function q7(e){let t=0;return{next(){if(t<e._keys.length){let r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}function W7(e,t,r,n,a,l){let i=Gi(e._name||"Record");return++n>t.maxDepth?If(i):`${i+ks}{${yu(q7(e),t,r,n,a,l)}}`}function X7(e,t,r,n,a,l){let i=Gi("Seq");return++n>t.maxDepth?If(i):e[H7]?`${i+ks}{${e._iter||e._object?yu(e.entries(),t,r,n,a,l):Yv}}`:`${i+ks}[${e._iter||e._array||e._collection||e._iterable?Py(e.values(),t,r,n,a,l):Yv}]`}function nh(e,t,r,n,a,l,i){return++n>t.maxDepth?If(Gi(i)):`${Gi(i)+ks}[${Py(e.values(),t,r,n,a,l)}]`}var Z7=(e,t,r,n,a,l)=>e[U7]?Y7(e,t,r,n,a,l,e[Vv]?"OrderedMap":"Map"):e[z7]?nh(e,t,r,n,a,l,"List"):e[G7]?nh(e,t,r,n,a,l,e[Vv]?"OrderedSet":"Set"):e[V7]?nh(e,t,r,n,a,l,"Stack"):e[K7]?X7(e,t,r,n,a,l):W7(e,t,r,n,a,l),Q7=e=>e&&(e[k7]===!0||e[j7]===!0),J7={serialize:Z7,test:Q7};function bT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qv={exports:{}},Fe={},Wv;function e9(){if(Wv)return Fe;Wv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),i=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function y(b){if(typeof b=="object"&&b!==null){var S=b.$$typeof;switch(S){case e:switch(b=b.type,b){case r:case a:case n:case s:case u:case f:return b;default:switch(b=b&&b.$$typeof,b){case i:case o:case d:case c:return b;case l:return b;default:return S}}case t:return S}}}return Fe.ContextConsumer=l,Fe.ContextProvider=i,Fe.Element=e,Fe.ForwardRef=o,Fe.Fragment=r,Fe.Lazy=d,Fe.Memo=c,Fe.Portal=t,Fe.Profiler=a,Fe.StrictMode=n,Fe.Suspense=s,Fe.SuspenseList=u,Fe.isContextConsumer=function(b){return y(b)===l},Fe.isContextProvider=function(b){return y(b)===i},Fe.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Fe.isForwardRef=function(b){return y(b)===o},Fe.isFragment=function(b){return y(b)===r},Fe.isLazy=function(b){return y(b)===d},Fe.isMemo=function(b){return y(b)===c},Fe.isPortal=function(b){return y(b)===t},Fe.isProfiler=function(b){return y(b)===a},Fe.isStrictMode=function(b){return y(b)===n},Fe.isSuspense=function(b){return y(b)===s},Fe.isSuspenseList=function(b){return y(b)===u},Fe.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===a||b===n||b===s||b===u||typeof b=="object"&&b!==null&&(b.$$typeof===d||b.$$typeof===c||b.$$typeof===i||b.$$typeof===l||b.$$typeof===o||b.$$typeof===p||b.getModuleId!==void 0)},Fe.typeOf=y,Fe}var Xv;function t9(){return Xv||(Xv=1,qv.exports=e9()),qv.exports}var vT=t9(),r9=bT(vT),n9=dT({__proto__:null,default:r9},[vT]),Zv={exports:{}},De={},Qv;function a9(){if(Qv)return De;Qv=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),i=Symbol.for("react.context"),o=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function b(S){if(typeof S=="object"&&S!==null){var h=S.$$typeof;switch(h){case e:switch(S=S.type,S){case r:case a:case n:case u:case c:return S;default:switch(S=S&&S.$$typeof,S){case o:case i:case s:case f:case d:case l:return S;default:return h}}case t:return h}}}return De.ContextConsumer=i,De.ContextProvider=l,De.Element=e,De.ForwardRef=s,De.Fragment=r,De.Lazy=f,De.Memo=d,De.Portal=t,De.Profiler=a,De.StrictMode=n,De.Suspense=u,De.SuspenseList=c,De.isAsyncMode=function(){return!1},De.isConcurrentMode=function(){return!1},De.isContextConsumer=function(S){return b(S)===i},De.isContextProvider=function(S){return b(S)===l},De.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},De.isForwardRef=function(S){return b(S)===s},De.isFragment=function(S){return b(S)===r},De.isLazy=function(S){return b(S)===f},De.isMemo=function(S){return b(S)===d},De.isPortal=function(S){return b(S)===t},De.isProfiler=function(S){return b(S)===a},De.isStrictMode=function(S){return b(S)===n},De.isSuspense=function(S){return b(S)===u},De.isSuspenseList=function(S){return b(S)===c},De.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===a||S===n||S===u||S===c||S===p||typeof S=="object"&&S!==null&&(S.$$typeof===f||S.$$typeof===d||S.$$typeof===l||S.$$typeof===i||S.$$typeof===s||S.$$typeof===y||S.getModuleId!==void 0)},De.typeOf=b,De}var Jv;function l9(){return Jv||(Jv=1,Zv.exports=a9()),Zv.exports}var ET=l9(),i9=bT(ET),o9=dT({__proto__:null,default:i9},[ET]),s9=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],dl=Object.fromEntries(s9.map(e=>[e,t=>o9[e](t)||n9[e](t)]));function ST(e,t=[]){if(Array.isArray(e))for(let r of e)ST(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function eE(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(dl.isFragment(e))return"React.Fragment";if(dl.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(dl.isContextProvider(e))return"Context.Provider";if(dl.isContextConsumer(e))return"Context.Consumer";if(dl.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(dl.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function u9(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var c9=(e,t,r,n,a,l)=>++n>t.maxDepth?Uy(eE(e),t):Hy(eE(e),ky(u9(e),e.props,t,r+t.indent,n,a,l),zy(ST(e.props.children),t,r+t.indent,n,a,l),t,r),d9=e=>e!=null&&dl.isElement(e),f9={serialize:c9,test:d9},p9=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function h9(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var g9=(e,t,r,n,a,l)=>++n>t.maxDepth?Uy(e.type,t):Hy(e.type,e.props?ky(h9(e),e.props,t,r+t.indent,n,a,l):"",e.children?zy(e.children,t,r+t.indent,n,a,l):"",t,r),m9=e=>e&&e.$$typeof===p9,y9={serialize:g9,test:m9},xT=Object.prototype.toString,b9=Date.prototype.toISOString,v9=Error.prototype.toString,tE=RegExp.prototype.toString;function Vc(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function E9(e){return typeof window<"u"&&e===window}var S9=/^Symbol\((.*)\)(.*)$/,x9=/\n/g,$T=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function $9(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function _9(e){return Object.is(e,-0)?"-0":String(e)}function C9(e){return`${e}n`}function rE(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function nE(e){return String(e).replace(S9,"Symbol($1)")}function aE(e){return`[${v9.call(e)}]`}function _T(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let a=typeof e;if(a==="number")return _9(e);if(a==="bigint")return C9(e);if(a==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(a==="function")return rE(e,t);if(a==="symbol")return nE(e);let l=xT.call(e);return l==="[object WeakMap]"?"WeakMap {}":l==="[object WeakSet]"?"WeakSet {}":l==="[object Function]"||l==="[object GeneratorFunction]"?rE(e,t):l==="[object Symbol]"?nE(e):l==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":b9.call(e):l==="[object Error]"?aE(e):l==="[object RegExp]"?r?tE.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):tE.call(e):e instanceof Error?aE(e):null}function CT(e,t,r,n,a,l){if(a.includes(e))return"[Circular]";a=[...a],a.push(e);let i=++n>t.maxDepth,o=t.min;if(t.callToJSON&&!i&&e.toJSON&&typeof e.toJSON=="function"&&!l)return ba(e.toJSON(),t,r,n,a,!0);let s=xT.call(e);return s==="[object Arguments]"?i?"[Arguments]":`${o?"":"Arguments "}[${Od(e,t,r,n,a,ba)}]`:$9(s)?i?`[${e.constructor.name}]`:`${o||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Od(e,t,r,n,a,ba)}]`:s==="[object Map]"?i?"[Map]":`Map {${yu(e.entries(),t,r,n,a,ba," => ")}}`:s==="[object Set]"?i?"[Set]":`Set {${Py(e.values(),t,r,n,a,ba)}}`:i||E9(e)?`[${Vc(e)}]`:`${o||!t.printBasicPrototype&&Vc(e)==="Object"?"":`${Vc(e)} `}{${Iy(e,t,r,n,a,ba)}}`}var T9={test:e=>e&&e instanceof Error,serialize(e,t,r,n,a,l){if(a.includes(e))return"[Circular]";a=[...a,e];let i=++n>t.maxDepth,{message:o,cause:s,...u}=e,c={message:o,...typeof s<"u"?{cause:s}:{},...e instanceof AggregateError?{errors:e.errors}:{},...u},d=e.name!=="Error"?e.name:Vc(e);return i?`[${d}]`:`${d} {${yu(Object.entries(c).values(),t,r,n,a,l)}}`}};function w9(e){return e.serialize!=null}function TT(e,t,r,n,a,l){let i;try{i=w9(e)?e.serialize(t,r,n,a,l,ba):e.print(t,o=>ba(o,r,n,a,l),o=>{let s=n+r.indent;return s+o.replaceAll(x9,`
  9. ${s}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(o){throw new $T(o.message,o.stack)}if(typeof i!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof i}".`);return i}function wT(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new $T(n.message,n.stack)}return null}function ba(e,t,r,n,a,l){let i=wT(t.plugins,e);if(i!==null)return TT(i,e,t,r,n,a);let o=_T(e,t.printFunctionName,t.escapeRegex,t.escapeString);return o!==null?o:CT(e,t,r,n,a,l)}var jy={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},AT=Object.keys(jy),Zr={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:jy};function A9(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Zr,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function O9(){return AT.reduce((e,t)=>{let r=jy[t],n=r&&Gn[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}function D9(){return AT.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function OT(e){return(e==null?void 0:e.printFunctionName)??Zr.printFunctionName}function DT(e){return(e==null?void 0:e.escapeRegex)??Zr.escapeRegex}function RT(e){return(e==null?void 0:e.escapeString)??Zr.escapeString}function lE(e){return{callToJSON:(e==null?void 0:e.callToJSON)??Zr.callToJSON,colors:e!=null&&e.highlight?O9():D9(),compareKeys:typeof(e==null?void 0:e.compareKeys)=="function"||(e==null?void 0:e.compareKeys)===null?e.compareKeys:Zr.compareKeys,escapeRegex:DT(e),escapeString:RT(e),indent:e!=null&&e.min?"":R9((e==null?void 0:e.indent)??Zr.indent),maxDepth:(e==null?void 0:e.maxDepth)??Zr.maxDepth,maxWidth:(e==null?void 0:e.maxWidth)??Zr.maxWidth,min:(e==null?void 0:e.min)??Zr.min,plugins:(e==null?void 0:e.plugins)??Zr.plugins,printBasicPrototype:(e==null?void 0:e.printBasicPrototype)??!0,printFunctionName:OT(e),spacingInner:e!=null&&e.min?" ":`
  10. `,spacingOuter:e!=null&&e.min?"":`
  11. `}}function R9(e){return Array.from({length:e+1}).join(" ")}function bn(e,t){if(t&&(A9(t),t.plugins)){let n=wT(t.plugins,e);if(n!==null)return TT(n,e,lE(t),"",0,[])}let r=_T(e,OT(t),DT(t),RT(t));return r!==null?r:CT(e,lE(t),"",0,[])}var Ky={AsymmetricMatcher:S7,DOMCollection:A7,DOMElement:I7,Immutable:J7,ReactElement:f9,ReactTestComponent:y9,Error:T9},iE={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},N9={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Vi="…";function L9(e,t){let r=iE[N9[t]]||iE[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function M9({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:a=!1,maxArrayLength:l=1/0,breakLength:i=1/0,seen:o=[],truncate:s=1/0,stylize:u=String}={},c){let d={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!a,maxArrayLength:Number(l),breakLength:Number(i),truncate:Number(s),seen:o,inspect:c,stylize:u};return d.colors&&(d.stylize=L9),d}function F9(e){return e>="\uD800"&&e<="\uDBFF"}function Xa(e,t,r=Vi){e=String(e);let n=r.length,a=e.length;if(n>t&&a>n)return r;if(a>t&&a>n){let l=t-n;return l>0&&F9(e[l-1])&&(l=l-1),`${e.slice(0,l)}${r}`}return e}function nn(e,t,r,n=", "){r=r||t.inspect;let a=e.length;if(a===0)return"";let l=t.truncate,i="",o="",s="";for(let u=0;u<a;u+=1){let c=u+1===e.length,d=u+2===e.length;s=`${Vi}(${e.length-u})`;let f=e[u];t.truncate=l-i.length-(c?0:n.length);let p=o||r(f,t)+(c?"":n),y=i.length+p.length,b=y+s.length;if(c&&y>l&&i.length+s.length<=l||!c&&!d&&b>l||(o=c?"":r(e[u+1],t)+(d?"":n),!c&&d&&b>l&&y+o.length>l))break;if(i+=p,!c&&!d&&y+o.length>=l){s=`${Vi}(${e.length-u-1})`;break}s=""}return`${i}${s}`}function B9(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function zs([e,t],r){return r.truncate-=2,typeof e=="string"?e=B9(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function P9(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=nn(e,t);t.truncate-=n.length;let a="";return r.length&&(a=nn(r.map(l=>[l,e[l]]),t,zs)),`[ ${n}${a?`, ${a}`:""} ]`}var I9=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function Mn(e,t){let r=I9(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let a="";for(let i=0;i<e.length;i++){let o=`${t.stylize(Xa(e[i],t.truncate),"number")}${i===e.length-1?"":", "}`;if(t.truncate-=o.length,e[i]!==e.length&&t.truncate<=3){a+=`${Vi}(${e.length-e[i]+1})`;break}a+=o}let l="";return n.length&&(l=nn(n.map(i=>[i,e[i]]),t,zs)),`${r}[ ${a}${l?`, ${l}`:""} ]`}function k9(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),a=n[0];return t.stylize(`${a}T${Xa(n[1],t.truncate-a.length-1)}`,"date")}function oE(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Xa(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function z9([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function H9(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}function U9(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${nn(H9(e),t,z9)} }`)}var j9=Number.isNaN||(e=>e!==e);function sE(e,t){return j9(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(Xa(String(e),t.truncate),"number")}function uE(e,t){let r=Xa(e.toString(),t.truncate-1);return r!==Vi&&(r+="n"),t.stylize(r,"bigint")}function K9(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),a=e.source;return t.stylize(`/${Xa(a,n)}/${r}`,"regexp")}function G9(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function V9(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${nn(G9(e),t)} }`)}var cE=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),Y9={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},q9=16;function W9(e){return Y9[e]||`\\u${`0000${e.charCodeAt(0).toString(q9)}`.slice(-4)}`}function dE(e,t){return cE.test(e)&&(e=e.replace(cE,W9)),t.stylize(`'${Xa(e,t.truncate-2)}'`,"string")}function fE(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var NT=()=>"Promise{…}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(NT=(n,a)=>{let[l,i]=e(n);return l===t?"Promise{<pending>}":`Promise${l===r?"!":""}{${a.inspect(i,a)}}`})}catch{}var X9=NT;function Yc(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let a=nn(r.map(o=>[o,e[o]]),t,zs),l=nn(n.map(o=>[o,e[o]]),t,zs);t.seen.pop();let i="";return a&&l&&(i=", "),`{ ${a}${i}${l} }`}var ah=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function Z9(e,t){let r="";return ah&&ah in e&&(r=e[ah]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${Yc(e,t)}`}function Q9(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${nn(e,t)} ]`)}var J9=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function eN(e,t){let r=Object.getOwnPropertyNames(e).filter(i=>J9.indexOf(i)===-1),n=e.name;t.truncate-=n.length;let a="";if(typeof e.message=="string"?a=Xa(e.message,t.truncate):r.unshift("message"),a=a?`: ${a}`:"",t.truncate-=a.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let l=nn(r.map(i=>[i,e[i]]),t,zs);return`${n}${a}${l?` { ${l} }`:""}`}function tN([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function mm(e,t){return nn(e,t,rN,`
  12. `)}function rN(e,t){switch(e.nodeType){case 1:return LT(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function LT(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),a=t.stylize(`<${n}`,"special"),l=t.stylize(">","special"),i=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let o="";r.length>0&&(o+=" ",o+=nn(r.map(c=>[c,e.getAttribute(c)]),t,tN," ")),t.truncate-=o.length;let s=t.truncate,u=mm(e.children,t);return u&&u.length>s&&(u=`${Vi}(${e.children.length})`),`${a}${o}${l}${u}${i}`}var nN=typeof Symbol=="function"&&typeof Symbol.for=="function",lh=nN?Symbol.for("chai/inspect"):"@@chai/inspect",ih=Symbol.for("nodejs.util.inspect.custom"),pE=new WeakMap,hE={},gE={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:sE,Number:sE,bigint:uE,BigInt:uE,string:dE,String:dE,function:oE,Function:oE,symbol:fE,Symbol:fE,Array:P9,Date:k9,Map:U9,Set:V9,RegExp:K9,Promise:X9,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:Q9,Int8Array:Mn,Uint8Array:Mn,Uint8ClampedArray:Mn,Int16Array:Mn,Uint16Array:Mn,Int32Array:Mn,Uint32Array:Mn,Float32Array:Mn,Float64Array:Mn,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:eN,HTMLCollection:mm,NodeList:mm},aN=(e,t,r)=>lh in e&&typeof e[lh]=="function"?e[lh](t):ih in e&&typeof e[ih]=="function"?e[ih](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&pE.has(e.constructor)?pE.get(e.constructor)(e,t):hE[r]?hE[r](e,t):"",lN=Object.prototype.toString;function ym(e,t={}){let r=M9(t,ym),{customInspect:n}=r,a=e===null?"null":typeof e;if(a==="object"&&(a=lN.call(e).slice(8,-1)),a in gE)return gE[a](e,r);if(n&&e){let i=aN(e,r,a);if(i)return typeof i=="string"?i:ym(i,r)}let l=e?Object.getPrototypeOf(e):!1;return l===Object.prototype||l===null?Yc(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?LT(e,r):"constructor"in e?e.constructor!==Object?Z9(e,r):Yc(e,r):e===Object(e)?Yc(e,r):r.stylize(String(e),a)}var{AsymmetricMatcher:iN,DOMCollection:oN,DOMElement:sN,Immutable:uN,ReactElement:cN,ReactTestComponent:dN}=Ky,mE=[dN,cN,sN,oN,uN,iN];function Hs(e,t=10,{maxLength:r,...n}={}){let a=r??1e4,l;try{l=bn(e,{maxDepth:t,escapeString:!1,plugins:mE,...n})}catch{l=bn(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:mE,...n})}return l.length>=a&&t>1?Hs(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):l}var fN=/%[sdjifoOc%]/g;function pN(...e){if(typeof e[0]!="string"){let l=[];for(let i=0;i<e.length;i++)l.push(jo(e[i],{depth:0,colors:!1}));return l.join(" ")}let t=e.length,r=1,n=e[0],a=String(n).replace(fN,l=>{if(l==="%%")return"%";if(r>=t)return l;switch(l){case"%s":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:typeof i=="number"&&i===0&&1/i<0?"-0":typeof i=="object"&&i!==null?typeof i.toString=="function"&&i.toString!==Object.prototype.toString?i.toString():jo(i,{depth:0,colors:!1}):String(i)}case"%d":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number(i).toString()}case"%i":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number.parseInt(String(i)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return jo(e[r++],{showHidden:!0,showProxy:!0});case"%O":return jo(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(i){let o=i.message;if(o.includes("circular structure")||o.includes("cyclic structures")||o.includes("cyclic object"))return"[Circular]";throw i}default:return l}});for(let l=e[r];r<t;l=e[++r])l===null||typeof l!="object"?a+=` ${l}`:a+=` ${jo(l)}`;return a}function jo(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),ym(e,t)}function hN(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gN(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function bm(e){return Object.prototype.toString.apply(e).slice(8,-1)}function mN(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function MT(e){let t=new Set;return gN(e)?[]:(mN(e,t),Array.from(t))}var FT={forceWritable:!1};function yE(e,t=FT){return vm(e,new WeakMap,t)}function vm(e,t,r=FT){let n,a;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(a=Array.from({length:n=e.length}),t.set(e,a);n--;)a[n]=vm(e[n],t,r);return a}if(Object.prototype.toString.call(e)==="[object Object]"){a=Object.create(Object.getPrototypeOf(e)),t.set(e,a);let l=MT(e);for(let i of l){let o=Object.getOwnPropertyDescriptor(e,i);if(!o)continue;let s=vm(e[i],t,r);r.forceWritable?Object.defineProperty(a,i,{enumerable:o.enumerable,configurable:!0,writable:!0,value:s}):"get"in o?Object.defineProperty(a,i,{...o,get(){return s}}):Object.defineProperty(a,i,{...o,value:s})}return a}return e}var kt=-1,Dt=1,et=0,Xe=class{constructor(e,t){cn(this,0);cn(this,1);this[0]=e,this[1]=t}};function yN(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),a=n,l=0;for(;r<a;)e.substring(l,a)===t.substring(l,a)?(r=a,l=r):n=a,a=Math.floor((n-r)/2+r);return a}function BT(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,n=Math.min(e.length,t.length),a=n,l=0;for(;r<a;)e.substring(e.length-a,e.length-l)===t.substring(t.length-a,t.length-l)?(r=a,l=r):n=a,a=Math.floor((n-r)/2+r);return a}function bE(e,t){let r=e.length,n=t.length;if(r===0||n===0)return 0;r>n?e=e.substring(r-n):r<n&&(t=t.substring(0,r));let a=Math.min(r,n);if(e===t)return a;let l=0,i=1;for(;;){let o=e.substring(a-i),s=t.indexOf(o);if(s===-1)return l;i+=s,(s===0||e.substring(a-i)===t.substring(0,i))&&(l=i,i++)}}function bN(e){let t=!1,r=[],n=0,a=null,l=0,i=0,o=0,s=0,u=0;for(;l<e.length;)e[l][0]===et?(r[n++]=l,i=s,o=u,s=0,u=0,a=e[l][1]):(e[l][0]===Dt?s+=e[l][1].length:u+=e[l][1].length,a&&a.length<=Math.max(i,o)&&a.length<=Math.max(s,u)&&(e.splice(r[n-1],0,new Xe(kt,a)),e[r[n-1]+1][0]=Dt,n--,n--,l=n>0?r[n-1]:-1,i=0,o=0,s=0,u=0,a=null,t=!0)),l++;for(t&&PT(e),SN(e),l=1;l<e.length;){if(e[l-1][0]===kt&&e[l][0]===Dt){let c=e[l-1][1],d=e[l][1],f=bE(c,d),p=bE(d,c);f>=p?(f>=c.length/2||f>=d.length/2)&&(e.splice(l,0,new Xe(et,d.substring(0,f))),e[l-1][1]=c.substring(0,c.length-f),e[l+1][1]=d.substring(f),l++):(p>=c.length/2||p>=d.length/2)&&(e.splice(l,0,new Xe(et,c.substring(0,p))),e[l-1][0]=Dt,e[l-1][1]=d.substring(0,d.length-p),e[l+1][0]=kt,e[l+1][1]=c.substring(p),l++),l++}l++}}var vE=/[^a-z0-9]/i,EE=/\s/,SE=/[\r\n]/,vN=/\n\r?\n$/,EN=/^\r?\n\r?\n/;function SN(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===et&&e[t+1][0]===et){let r=e[t-1][1],n=e[t][1],a=e[t+1][1],l=BT(r,n);if(l){let c=n.substring(n.length-l);r=r.substring(0,r.length-l),n=c+n.substring(0,n.length-l),a=c+a}let i=r,o=n,s=a,u=Xu(r,n)+Xu(n,a);for(;n.charAt(0)===a.charAt(0);){r+=n.charAt(0),n=n.substring(1)+a.charAt(0),a=a.substring(1);let c=Xu(r,n)+Xu(n,a);c>=u&&(u=c,i=r,o=n,s=a)}e[t-1][1]!==i&&(i?e[t-1][1]=i:(e.splice(t-1,1),t--),e[t][1]=o,s?e[t+1][1]=s:(e.splice(t+1,1),t--))}t++}}function PT(e){e.push(new Xe(et,""));let t=0,r=0,n=0,a="",l="",i;for(;t<e.length;)switch(e[t][0]){case Dt:n++,l+=e[t][1],t++;break;case kt:r++,a+=e[t][1],t++;break;case et:r+n>1?(r!==0&&n!==0&&(i=yN(l,a),i!==0&&(t-r-n>0&&e[t-r-n-1][0]===et?e[t-r-n-1][1]+=l.substring(0,i):(e.splice(0,0,new Xe(et,l.substring(0,i))),t++),l=l.substring(i),a=a.substring(i)),i=BT(l,a),i!==0&&(e[t][1]=l.substring(l.length-i)+e[t][1],l=l.substring(0,l.length-i),a=a.substring(0,a.length-i))),t-=r+n,e.splice(t,r+n),a.length&&(e.splice(t,0,new Xe(kt,a)),t++),l.length&&(e.splice(t,0,new Xe(Dt,l)),t++),t++):t!==0&&e[t-1][0]===et?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,a="",l="";break}e[e.length-1][1]===""&&e.pop();let o=!1;for(t=1;t<e.length-1;)e[t-1][0]===et&&e[t+1][0]===et&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),o=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),o=!0)),t++;o&&PT(e)}function Xu(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),a=r.match(vE),l=n.match(vE),i=a&&r.match(EE),o=l&&n.match(EE),s=i&&r.match(SE),u=o&&n.match(SE),c=s&&e.match(vN),d=u&&t.match(EN);return c||d?5:s||u?4:a&&!i&&o?3:i||o?2:a||l?1:0}var IT="Compared values have no visual difference.",xN="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Zu={},xE;function $N(){if(xE)return Zu;xE=1,Object.defineProperty(Zu,"__esModule",{value:!0}),Zu.default=f;let e="diff-sequences",t=0,r=(p,y,b,S,h)=>{let v=0;for(;p<y&&b<S&&h(p,b);)p+=1,b+=1,v+=1;return v},n=(p,y,b,S,h)=>{let v=0;for(;p<=y&&b<=S&&h(y,S);)y-=1,S-=1,v+=1;return v},a=(p,y,b,S,h,v,E)=>{let x=0,_=-p,$=v[x],C=$;v[x]+=r($+1,y,S+$-_+1,b,h);let w=p<E?p:E;for(x+=1,_+=2;x<=w;x+=1,_+=2){if(x!==p&&C<v[x])$=v[x];else if($=C+1,y<=$)return x-1;C=v[x],v[x]=$+r($+1,y,S+$-_+1,b,h)}return E},l=(p,y,b,S,h,v,E)=>{let x=0,_=p,$=v[x],C=$;v[x]-=n(y,$-1,b,S+$-_-1,h);let w=p<E?p:E;for(x+=1,_-=2;x<=w;x+=1,_-=2){if(x!==p&&v[x]<C)$=v[x];else if($=C-1,$<y)return x-1;C=v[x],v[x]=$-n(y,$-1,b,S+$-_-1,h)}return E},i=(p,y,b,S,h,v,E,x,_,$,C)=>{let w=S-y,A=b-y,O=h-S-A,T=-O-(p-1),M=-O+(p-1),P=t,I=p<x?p:x;for(let H=0,L=-p;H<=I;H+=1,L+=2){let D=H===0||H!==p&&P<E[H],N=D?E[H]:P,U=D?N:N+1,B=w+U-L,G=r(U+1,b,B+1,h,v),V=U+G;if(P=E[H],E[H]=V,T<=L&&L<=M){let Z=(p-1-(L+O))/2;if(Z<=$&&_[Z]-1<=V){let J=w+N-(D?L+1:L-1),j=n(y,N,S,J,v),X=N-j,te=J-j,F=X+1,z=te+1;C.nChangePreceding=p-1,p-1===F+z-y-S?(C.aEndPreceding=y,C.bEndPreceding=S):(C.aEndPreceding=F,C.bEndPreceding=z),C.nCommonPreceding=j,j!==0&&(C.aCommonPreceding=F,C.bCommonPreceding=z),C.nCommonFollowing=G,G!==0&&(C.aCommonFollowing=U+1,C.bCommonFollowing=B+1);let q=V+1,K=B+G+1;return C.nChangeFollowing=p-1,p-1===b+h-q-K?(C.aStartFollowing=b,C.bStartFollowing=h):(C.aStartFollowing=q,C.bStartFollowing=K),!0}}}return!1},o=(p,y,b,S,h,v,E,x,_,$,C)=>{let w=h-b,A=b-y,O=h-S-A,T=O-p,M=O+p,P=t,I=p<$?p:$;for(let H=0,L=p;H<=I;H+=1,L-=2){let D=H===0||H!==p&&_[H]<P,N=D?_[H]:P,U=D?N:N-1,B=w+U-L,G=n(y,U-1,S,B-1,v),V=U-G;if(P=_[H],_[H]=V,T<=L&&L<=M){let Z=(p+(L-O))/2;if(Z<=x&&V-1<=E[Z]){let J=B-G;if(C.nChangePreceding=p,p===V+J-y-S?(C.aEndPreceding=y,C.bEndPreceding=S):(C.aEndPreceding=V,C.bEndPreceding=J),C.nCommonPreceding=G,G!==0&&(C.aCommonPreceding=V,C.bCommonPreceding=J),C.nChangeFollowing=p-1,p===1)C.nCommonFollowing=0,C.aStartFollowing=b,C.bStartFollowing=h;else{let j=w+N-(D?L-1:L+1),X=r(N,b,j,h,v);C.nCommonFollowing=X,X!==0&&(C.aCommonFollowing=N,C.bCommonFollowing=j);let te=N+X,F=j+X;p-1===b+h-te-F?(C.aStartFollowing=b,C.bStartFollowing=h):(C.aStartFollowing=te,C.bStartFollowing=F)}return!0}}}return!1},s=(p,y,b,S,h,v,E,x,_)=>{let $=S-y,C=h-b,w=b-y,A=h-S,O=A-w,T=w,M=w;if(E[0]=y-1,x[0]=b,O%2===0){let P=(p||O)/2,I=(w+A)/2;for(let H=1;H<=I;H+=1)if(T=a(H,b,h,$,v,E,T),H<P)M=l(H,y,S,C,v,x,M);else if(o(H,y,b,S,h,v,E,T,x,M,_))return}else{let P=((p||O)+1)/2,I=(w+A+1)/2,H=1;for(T=a(H,b,h,$,v,E,T),H+=1;H<=I;H+=1)if(M=l(H-1,y,S,C,v,x,M),H<P)T=a(H,b,h,$,v,E,T);else if(i(H,y,b,S,h,v,E,T,x,M,_))return}throw new Error(`${e}: no overlap aStart=${y} aEnd=${b} bStart=${S} bEnd=${h}`)},u=(p,y,b,S,h,v,E,x,_,$)=>{if(h-S<b-y){if(v=!v,v&&E.length===1){let{foundSubsequence:Z,isCommon:J}=E[0];E[1]={foundSubsequence:(j,X,te)=>{Z(j,te,X)},isCommon:(j,X)=>J(X,j)}}let G=y,V=b;y=S,b=h,S=G,h=V}let{foundSubsequence:C,isCommon:w}=E[v?1:0];s(p,y,b,S,h,w,x,_,$);let{nChangePreceding:A,aEndPreceding:O,bEndPreceding:T,nCommonPreceding:M,aCommonPreceding:P,bCommonPreceding:I,nCommonFollowing:H,aCommonFollowing:L,bCommonFollowing:D,nChangeFollowing:N,aStartFollowing:U,bStartFollowing:B}=$;y<O&&S<T&&u(A,y,O,S,T,v,E,x,_,$),M!==0&&C(M,P,I),H!==0&&C(H,L,D),U<b&&B<h&&u(N,U,b,B,h,v,E,x,_,$)},c=(p,y)=>{if(typeof y!="number")throw new TypeError(`${e}: ${p} typeof ${typeof y} is not a number`);if(!Number.isSafeInteger(y))throw new RangeError(`${e}: ${p} value ${y} is not a safe integer`);if(y<0)throw new RangeError(`${e}: ${p} value ${y} is a negative integer`)},d=(p,y)=>{let b=typeof y;if(b!=="function")throw new TypeError(`${e}: ${p} typeof ${b} is not a function`)};function f(p,y,b,S){c("aLength",p),c("bLength",y),d("isCommon",b),d("foundSubsequence",S);let h=r(0,p,0,y,b);if(h!==0&&S(h,0,0),p!==h||y!==h){let v=h,E=h,x=n(v,p-1,E,y-1,b),_=p-x,$=y-x,C=h+x;p!==C&&y!==C&&u(0,v,_,E,$,!1,[{foundSubsequence:S,isCommon:b}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),x!==0&&S(x,_,$)}}return Zu}var _N=$N(),kT=hN(_N);function CN(e,t){return e.replace(/\s+$/,r=>t(r))}function Gy(e,t,r,n,a,l){return e.length!==0?r(`${n} ${CN(e,a)}`):n!==" "?r(n):t&&l.length!==0?r(`${n} ${l}`):""}function zT(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:a,emptyFirstOrLastLinePlaceholder:l}){return Gy(e,t,r,n,a,l)}function HT(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:a,emptyFirstOrLastLinePlaceholder:l}){return Gy(e,t,r,n,a,l)}function UT(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:a,emptyFirstOrLastLinePlaceholder:l}){return Gy(e,t,r,n,a,l)}function $E(e,t,r,n,{patchColor:a}){return a(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function TN(e,t){let r=e.length,n=t.contextLines,a=n+n,l=r,i=!1,o=0,s=0;for(;s!==r;){let x=s;for(;s!==r&&e[s][0]===et;)s+=1;if(x!==s)if(x===0)s>n&&(l-=s-n,i=!0);else if(s===r){let _=s-x;_>n&&(l-=_-n,i=!0)}else{let _=s-x;_>a&&(l-=_-a,o+=1)}for(;s!==r&&e[s][0]!==et;)s+=1}let u=o!==0||i;o!==0?l+=o+1:i&&(l+=1);let c=l-1,d=[],f=0;u&&d.push("");let p=0,y=0,b=0,S=0,h=x=>{let _=d.length;d.push(UT(x,_===0||_===c,t)),b+=1,S+=1},v=x=>{let _=d.length;d.push(zT(x,_===0||_===c,t)),b+=1},E=x=>{let _=d.length;d.push(HT(x,_===0||_===c,t)),S+=1};for(s=0;s!==r;){let x=s;for(;s!==r&&e[s][0]===et;)s+=1;if(x!==s)if(x===0){s>n&&(x=s-n,p=x,y=x,b=p,S=y);for(let _=x;_!==s;_+=1)h(e[_][1])}else if(s===r){let _=s-x>n?x+n:s;for(let $=x;$!==_;$+=1)h(e[$][1])}else{let _=s-x;if(_>a){let $=x+n;for(let w=x;w!==$;w+=1)h(e[w][1]);d[f]=$E(p,b,y,S,t),f=d.length,d.push("");let C=_-a;p=b+C,y=S+C,b=p,S=y;for(let w=s-n;w!==s;w+=1)h(e[w][1])}else for(let $=x;$!==s;$+=1)h(e[$][1])}for(;s!==r&&e[s][0]===kt;)v(e[s][1]),s+=1;for(;s!==r&&e[s][0]===Dt;)E(e[s][1]),s+=1}return u&&(d[f]=$E(p,b,y,S,t)),d.join(`
  13. `)}function wN(e,t){return e.map((r,n,a)=>{let l=r[1],i=n===0||n===a.length-1;switch(r[0]){case kt:return zT(l,i,t);case Dt:return HT(l,i,t);default:return UT(l,i,t)}}).join(`
  14. `)}var oh=e=>e,jT=5,AN=0;function ON(){return{aAnnotation:"Expected",aColor:Gn.green,aIndicator:"-",bAnnotation:"Received",bColor:Gn.red,bIndicator:"+",changeColor:Gn.inverse,changeLineTrailingSpaceColor:oh,commonColor:Gn.dim,commonIndicator:" ",commonLineTrailingSpaceColor:oh,compareKeys:void 0,contextLines:jT,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:Gn.yellow,printBasicPrototype:!1,truncateThreshold:AN,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:oh}}function DN(e){return e&&typeof e=="function"?e:void 0}function RN(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:jT}function Gl(e={}){return{...ON(),...e,compareKeys:DN(e.compareKeys),contextLines:RN(e.contextLines)}}function bi(e){return e.length===1&&e[0].length===0}function NN(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case kt:t+=1;break;case Dt:r+=1;break}}),{a:t,b:r}}function LN({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:a,bIndicator:l,includeChangeCounts:i,omitAnnotationLines:o},s){if(o)return"";let u="",c="";if(i){let p=String(s.a),y=String(s.b),b=n.length-e.length,S=" ".repeat(Math.max(0,b)),h=" ".repeat(Math.max(0,-b)),v=y.length-p.length,E=" ".repeat(Math.max(0,v)),x=" ".repeat(Math.max(0,-v));u=`${S} ${r} ${E}${p}`,c=`${h} ${l} ${x}${y}`}let d=`${r} ${e}${u}`,f=`${l} ${n}${c}`;return`${t(d)}
  15. ${a(f)}
  16. `}function Vy(e,t,r){return LN(r,NN(e))+(r.expand?wN(e,r):TN(e,r))+(t?r.truncateAnnotationColor(`
  17. ${r.truncateAnnotation}`):"")}function kf(e,t,r){let n=Gl(r),[a,l]=KT(bi(e)?[]:e,bi(t)?[]:t,n);return Vy(a,l,n)}function MN(e,t,r,n,a){if(bi(e)&&bi(r)&&(e=[],r=[]),bi(t)&&bi(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return kf(e,t,a);let[l,i]=KT(r,n,a),o=0,s=0;return l.forEach(u=>{switch(u[0]){case kt:u[1]=e[o],o+=1;break;case Dt:u[1]=t[s],s+=1;break;default:u[1]=t[s],o+=1,s+=1}}),Vy(l,i,Gl(a))}function KT(e,t,r){let n=(r==null?void 0:r.truncateThreshold)??!1,a=Math.max(Math.floor((r==null?void 0:r.truncateThreshold)??0),0),l=n?Math.min(e.length,a):e.length,i=n?Math.min(t.length,a):t.length,o=l!==e.length||i!==t.length,s=(f,p)=>e[f]===t[p],u=[],c=0,d=0;for(kT(l,i,s,(f,p,y)=>{for(;c!==p;c+=1)u.push(new Xe(kt,e[c]));for(;d!==y;d+=1)u.push(new Xe(Dt,t[d]));for(;f!==0;f-=1,c+=1,d+=1)u.push(new Xe(et,t[d]))});c!==l;c+=1)u.push(new Xe(kt,e[c]));for(;d!==i;d+=1)u.push(new Xe(Dt,t[d]));return[u,o]}function _E(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}function CE(e){return e.includes(`\r
  18. `)?`\r
  19. `:`
  20. `}function FN(e,t,r){let n=(r==null?void 0:r.truncateThreshold)??!1,a=Math.max(Math.floor((r==null?void 0:r.truncateThreshold)??0),0),l=e.length,i=t.length;if(n){let f=e.includes(`
  21. `),p=t.includes(`
  22. `),y=CE(e),b=CE(t),S=f?`${e.split(y,a).join(y)}
  23. `:e,h=p?`${t.split(b,a).join(b)}
  24. `:t;l=S.length,i=h.length}let o=l!==e.length||i!==t.length,s=(f,p)=>e[f]===t[p],u=0,c=0,d=[];return kT(l,i,s,(f,p,y)=>{u!==p&&d.push(new Xe(kt,e.slice(u,p))),c!==y&&d.push(new Xe(Dt,t.slice(c,y))),u=p+f,c=y+f,d.push(new Xe(et,t.slice(y,c)))}),u!==l&&d.push(new Xe(kt,e.slice(u))),c!==i&&d.push(new Xe(Dt,t.slice(c))),[d,o]}function BN(e,t,r){return t.reduce((n,a)=>n+(a[0]===et?a[1]:a[0]===e&&a[1].length!==0?r(a[1]):""),"")}var TE=class{constructor(e,t){cn(this,"op");cn(this,"line");cn(this,"lines");cn(this,"changeColor");this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new Xe(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new Xe(this.op,BN(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new Xe(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
  25. `)){let r=t.split(`
  26. `),n=r.length-1;r.forEach((a,l)=>{l<n?(this.pushSubstring(a),this.pushLine()):a.length!==0&&this.pushSubstring(a)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},PN=class{constructor(e,t){cn(this,"deleteBuffer");cn(this,"insertBuffer");cn(this,"lines");this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],r=e[1];if(r.includes(`
  27. `)){let n=r.split(`
  28. `),a=n.length-1;n.forEach((l,i)=>{if(i===0){let o=new Xe(t,l);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(o)):(this.pushDiffChangeLines(o),this.flushChangeLines())}else i<a?this.pushDiffCommonLine(new Xe(t,l)):l.length!==0&&this.pushDiffChangeLines(new Xe(t,l))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function IN(e,t){let r=new TE(kt,t),n=new TE(Dt,t),a=new PN(r,n);return e.forEach(l=>{switch(l[0]){case kt:r.align(l);break;case Dt:n.align(l);break;default:a.align(l)}}),a.getLines()}function kN(e,t){if(t){let r=e.length-1;return e.some((n,a)=>n[0]===et&&(a!==r||n[1]!==`
  29. `))}return e.some(r=>r[0]===et)}function zN(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
  30. `)||t.includes(`
  31. `),[a,l]=GT(n?`${e}
  32. `:e,n?`${t}
  33. `:t,!0,r);if(kN(a,n)){let i=Gl(r),o=IN(a,i.changeColor);return Vy(o,l,i)}}return kf(e.split(`
  34. `),t.split(`
  35. `),r)}function GT(e,t,r,n){let[a,l]=FN(e,t,n);return bN(a),[a,l]}function Em(e,t){let{commonColor:r}=Gl(t);return r(e)}var{AsymmetricMatcher:HN,DOMCollection:UN,DOMElement:jN,Immutable:KN,ReactElement:GN,ReactTestComponent:VN}=Ky,VT=[VN,GN,jN,UN,KN,HN,Ky.Error],Sm={maxDepth:20,plugins:VT},YT={callToJSON:!1,maxDepth:8,plugins:VT};function YN(e,t,r){if(Object.is(e,t))return"";let n=_E(e),a=n,l=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;a=e.getExpectedType(),l=a==="string"}if(a!==_E(t)){let i=function(E){return E.length<=S?E:`${E.slice(0,S)}...`},{aAnnotation:o,aColor:s,aIndicator:u,bAnnotation:c,bColor:d,bIndicator:f}=Gl(r),p=xm(YT,r),y=bn(e,p),b=bn(t,p),S=1e5;y=i(y),b=i(b);let h=`${s(`${u} ${o}:`)}
  36. ${y}`,v=`${d(`${f} ${c}:`)}
  37. ${b}`;return`${h}
  38. ${v}`}if(!l)switch(n){case"string":return kf(e.split(`
  39. `),t.split(`
  40. `),r);case"boolean":case"number":return qN(e,t,r);case"map":return sh(wE(e),wE(t),r);case"set":return sh(AE(e),AE(t),r);default:return sh(e,t,r)}}function qN(e,t,r){let n=bn(e,Sm),a=bn(t,Sm);return n===a?"":kf(n.split(`
  41. `),a.split(`
  42. `),r)}function wE(e){return new Map(Array.from(e.entries()).sort())}function AE(e){return new Set(Array.from(e.values()).sort())}function sh(e,t,r){let n,a=!1;try{let i=xm(Sm,r);n=OE(e,t,i,r)}catch{a=!0}let l=Em(IT,r);if(n===void 0||n===l){let i=xm(YT,r);n=OE(e,t,i,r),n!==l&&!a&&(n=`${Em(xN,r)}
  43. ${n}`)}return n}function xm(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:a}=Gl(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:a??e.maxDepth}}function OE(e,t,r,n){let a={...r,indent:0},l=bn(e,a),i=bn(t,a);if(l===i)return Em(IT,n);{let o=bn(e,r),s=bn(t,r);return MN(o.split(`
  44. `),s.split(`
  45. `),l.split(`
  46. `),i.split(`
  47. `),n)}}var DE=2e4;function RE(e){return bm(e)==="Object"&&typeof e.asymmetricMatch=="function"}function NE(e,t){let r=bm(e),n=bm(t);return r===n&&(r==="Object"||r==="Array")}function WN(e,t,r){let{aAnnotation:n,bAnnotation:a}=Gl(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=DE&&e.length<=DE&&t!==e){if(t.includes(`
  48. `)||e.includes(`
  49. `))return zN(t,e,r);let[u]=GT(t,e),c=u.some(y=>y[0]===et),d=XN(n,a),f=d(n)+JN(LE(u,kt,c)),p=d(a)+QN(LE(u,Dt,c));return`${f}
  50. ${p}`}let l=yE(t,{forceWritable:!0}),i=yE(e,{forceWritable:!0}),{replacedExpected:o,replacedActual:s}=qT(i,l);return YN(o,s,r)}function qT(e,t,r=new WeakSet,n=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):NE(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),MT(t).forEach(a=>{let l=t[a],i=e[a];if(RE(l))l.asymmetricMatch(i)&&(e[a]=l);else if(RE(i))i.asymmetricMatch(l)&&(t[a]=i);else if(NE(i,l)){let o=qT(i,l,r,n);e[a]=o.replacedActual,t[a]=o.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function XN(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var ZN="·";function WT(e){return e.replace(/\s+$/gm,t=>ZN.repeat(t.length))}function QN(e){return Gn.red(WT(Hs(e)))}function JN(e){return Gn.green(WT(Hs(e)))}function LE(e,t,r){return e.reduce((n,a)=>n+(a[0]===et?a[1]:a[0]===t?r?Gn.inverse(a[1]):a[1]:""),"")}var eL="@@__IMMUTABLE_RECORD__@@",tL="@@__IMMUTABLE_ITERABLE__@@";function rL(e){return e&&(e[tL]||e[eL])}var nL=Object.getPrototypeOf({});function ME(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function va(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){let r=e.toJSON();return r&&r!==e&&typeof r=="object"&&(typeof e.message=="string"&&Qu(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&Qu(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&Qu(()=>r.name??(r.name=e.name)),e.cause!=null&&Qu(()=>r.cause??(r.cause=va(e.cause,t)))),va(r,t)}if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(rL(e))return va(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return`${e.toString()} ${pN(e.sample)}`;if(typeof e.toJSON=="function")return va(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((n,a)=>{try{r[a]=va(n,t)}catch(l){r[a]=ME(l)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==nL;)Object.getOwnPropertyNames(n).forEach(a=>{if(!(a in r))try{r[a]=va(e[a],t)}catch(l){delete r[a],r[a]=ME(l)}}),n=Object.getPrototypeOf(n);return r}}function Qu(e){try{return e()}catch{}}function aL(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function XT(e,t,r=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let n=e;(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=WN(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=Hs(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=Hs(n.actual,10));try{typeof n.message=="string"&&(n.message=aL(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=XT(n.cause,t,r))}catch{}try{return va(n)}catch(a){return va(new Error(`Failed to fully serialize error: ${a==null?void 0:a.message}
  51. Inner error message: ${n==null?void 0:n.message}`))}}const{once:lL}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_REMOUNT:FE,SET_CURRENT_STORY:iL,STORY_RENDER_PHASE_CHANGED:oL}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Nr}=__STORYBOOK_MODULE_GLOBAL__;var uh=globalThis.__STORYBOOK_ADDONS_PREVIEW,sL=new Error("This function ran after the play function completed. Did you forget to `await` it?"),BE=e=>Object.prototype.toString.call(e)==="[object Object]",uL=e=>Object.prototype.toString.call(e)==="[object Module]",cL=e=>{if(!BE(e)&&!uL(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!BE(t)},dL=e=>{try{return new e.constructor}catch{return{}}},ch=()=>({renderPhase:"preparing",isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),PE=(e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(a=>a.retain);if(!r.length)return;let n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,a])=>a.retain));return{cursor:r.length,calls:r,callRefsByResult:n}},fL=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{var o,s;try{this.state=((s=(o=Nr.window)==null?void 0:o.parent)==null?void 0:s.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__)||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{Nr.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},this.loadParentWindowState();let e=({storyId:o,renderPhase:s,isPlaying:u=!0,isDebugging:c=!1})=>{let d=this.getState(o);this.setState(o,{...ch(),...PE(d,c),renderPhase:s||d.renderPhase,shadowCalls:c?d.shadowCalls:[],chainedCallIds:c?d.chainedCallIds:new Set,playUntil:c?d.playUntil:void 0,isPlaying:u,isDebugging:c}),this.sync(o)},t=o=>({storyId:s,playUntil:u})=>{this.getState(s).isDebugging||this.setState(s,({calls:d})=>({calls:[],shadowCalls:d.map(f=>({...f,status:"waiting"})),isDebugging:!0}));let c=this.getLog(s);this.setState(s,({shadowCalls:d})=>{var p;if(u||!c.length)return{playUntil:u};let f=d.findIndex(y=>y.id===c[0].callId);return{playUntil:(p=d.slice(0,f).filter(y=>{var b;return y.interceptable&&!((b=y.ancestors)!=null&&b.length)}).slice(-1)[0])==null?void 0:p.id}}),o.emit(FE,{storyId:s,isDebugging:!0})},r=o=>({storyId:s})=>{var d;let u=this.getLog(s).filter(f=>{var p;return!((p=f.ancestors)!=null&&p.length)}),c=u.reduceRight((f,p,y)=>f>=0||p.status==="waiting"?f:y,-1);t(o)({storyId:s,playUntil:(d=u[c-1])==null?void 0:d.callId})},n=o=>({storyId:s,callId:u})=>{var b;let{calls:c,shadowCalls:d,resolvers:f}=this.getState(s),p=c.find(({id:S})=>S===u),y=d.find(({id:S})=>S===u);if(!p&&y&&Object.values(f).length>0){let S=(b=this.getLog(s).find(h=>h.status==="waiting"))==null?void 0:b.callId;y.id!==S&&this.setState(s,{playUntil:y.id}),Object.values(f).forEach(h=>h())}else t(o)({storyId:s,playUntil:u})},a=o=>({storyId:s})=>{var c;let{resolvers:u}=this.getState(s);if(Object.values(u).length>0)Object.values(u).forEach(d=>d());else{let d=(c=this.getLog(s).find(f=>f.status==="waiting"))==null?void 0:c.callId;d?t(o)({storyId:s,playUntil:d}):l({storyId:s})}},l=({storyId:o})=>{this.setState(o,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(o).resolvers).forEach(s=>s())},i=({storyId:o,newPhase:s})=>{let{isDebugging:u}=this.getState(o);if(s==="preparing"&&u)return e({storyId:o,renderPhase:s,isDebugging:u});if(s==="playing")return e({storyId:o,renderPhase:s,isDebugging:u});s==="played"?this.setState(o,{renderPhase:s,isLocked:!1,isPlaying:!1,isDebugging:!1}):s==="errored"?this.setState(o,{renderPhase:s,isLocked:!1,isPlaying:!1}):s==="aborted"?this.setState(o,{renderPhase:s,isLocked:!0,isPlaying:!1}):this.setState(o,{renderPhase:s}),this.sync(o)};uh&&uh.ready().then(()=>{this.channel=uh.getChannel(),this.channel.on(FE,e),this.channel.on(oL,i),this.channel.on(iL,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(Ln.START,t(this.channel)),this.channel.on(Ln.BACK,r(this.channel)),this.channel.on(Ln.GOTO,n(this.channel)),this.channel.on(Ln.NEXT,a(this.channel)),this.channel.on(Ln.END,l)})}getState(e){return this.state[e]||ch()}setState(e,t){if(e){let r=this.getState(e),n=typeof t=="function"?t(r):t;this.state={...this.state,[e]:{...r,...n}},this.updateParentWindowState()}}cleanup(){var t;this.state=Object.entries(this.state).reduce((r,[n,a])=>{let l=PE(a);return l&&(r[n]=Object.assign(ch(),l)),r},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};(t=this.channel)==null||t.emit(Ln.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:t,shadowCalls:r}=this.getState(e),n=[...r];t.forEach((l,i)=>{n[i]=l});let a=new Set;return n.reduceRight((l,i)=>(i.args.forEach(o=>{o!=null&&o.__callId__&&a.add(o.__callId__)}),i.path.forEach(o=>{o.__callId__&&a.add(o.__callId__)}),(i.interceptable||i.exception)&&!a.has(i.id)&&(l.unshift({callId:i.id,status:i.status,ancestors:i.ancestors}),a.add(i.id)),l),[])}instrument(e,t,r=0){if(!cL(e))return e;let{mutate:n=!1,path:a=[]}=t,l=t.getKeys?t.getKeys(e,r):Object.keys(e);return r+=1,l.reduce((i,o)=>{let s=hL(e,o);if(typeof(s==null?void 0:s.get)=="function"){if(s.configurable){let c=()=>{var d,f;return(f=(d=s==null?void 0:s.get)==null?void 0:d.bind(e))==null?void 0:f()};Object.defineProperty(i,o,{get:()=>this.instrument(c(),{...t,path:a.concat(o)},r)})}return i}let u=e[o];return typeof u!="function"?(i[o]=this.instrument(u,{...t,path:a.concat(o)},r),i):"__originalFn__"in u&&typeof u.__originalFn__=="function"?(i[o]=u,i):(i[o]=(...c)=>this.track(o,u,e,c,t),i[o].__originalFn__=u,Object.defineProperty(i[o],"name",{value:o,writable:!1}),Object.keys(u).length>0&&Object.assign(i[o],this.instrument({...u},{...t,path:a.concat(o)},r)),i)},n?e:dL(e))}track(e,t,r,n,a){var b,S,h,v;let l=((b=n==null?void 0:n[0])==null?void 0:b.__storyId__)||((v=(h=(S=Nr.__STORYBOOK_PREVIEW__)==null?void 0:S.selectionStore)==null?void 0:h.selection)==null?void 0:v.storyId),{cursor:i,ancestors:o}=this.getState(l);this.setState(l,{cursor:i+1});let s=`${o.slice(-1)[0]||l} [${i}] ${e}`,{path:u=[],intercept:c=!1,retain:d=!1}=a,f=typeof c=="function"?c(e,u):c,p={id:s,cursor:i,storyId:l,ancestors:o,path:u,method:e,args:n,interceptable:f,retain:d},y=(f&&!o.length?this.intercept:this.invoke).call(this,t,r,p,a);return this.instrument(y,{...a,mutate:!0,path:[{__callId__:p.id}]})}intercept(e,t,r,n){let{chainedCallIds:a,isDebugging:l,playUntil:i}=this.getState(r.storyId),o=a.has(r.id);return!l||o||i?(i===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(e,t,r,n)):new Promise(s=>{this.setState(r.storyId,({resolvers:u})=>({isLocked:!1,resolvers:{...u,[r.id]:s}}))}).then(()=>(this.setState(r.storyId,s=>{let{[r.id]:u,...c}=s.resolvers;return{isLocked:!0,resolvers:c}}),this.invoke(e,t,r,n)))}invoke(e,t,r,n){let{callRefsByResult:a,renderPhase:l}=this.getState(r.storyId),i=25,o=(c,d,f)=>{var p,y,b;if(f.includes(c))return"[Circular]";if(f=[...f,c],d>i)return"...";if(a.has(c))return a.get(c);if(c instanceof Array)return c.map(S=>o(S,++d,f));if(c instanceof Date)return{__date__:{value:c.toISOString()}};if(c instanceof Error){let{name:S,message:h,stack:v}=c;return{__error__:{name:S,message:h,stack:v}}}if(c instanceof RegExp){let{flags:S,source:h}=c;return{__regexp__:{flags:S,source:h}}}if(c instanceof((p=Nr.window)==null?void 0:p.HTMLElement)){let{prefix:S,localName:h,id:v,classList:E,innerText:x}=c,_=Array.from(E);return{__element__:{prefix:S,localName:h,id:v,classNames:_,innerText:x}}}return typeof c=="function"?{__function__:{name:"getMockName"in c?c.getMockName():c.name}}:typeof c=="symbol"?{__symbol__:{description:c.description}}:typeof c=="object"&&((y=c==null?void 0:c.constructor)!=null&&y.name)&&((b=c==null?void 0:c.constructor)==null?void 0:b.name)!=="Object"?{__class__:{name:c.constructor.name}}:Object.prototype.toString.call(c)==="[object Object]"?Object.fromEntries(Object.entries(c).map(([S,h])=>[S,o(h,++d,f)])):c},s={...r,args:r.args.map(c=>o(c,0,[]))};r.path.forEach(c=>{c!=null&&c.__callId__&&this.setState(r.storyId,({chainedCallIds:d})=>({chainedCallIds:new Set(Array.from(d).concat(c.__callId__))}))});let u=c=>{var d;if(c instanceof Error){let{name:f,message:p,stack:y,callId:b=r.id}=c,{showDiff:S=void 0,diff:h=void 0,actual:v=void 0,expected:E=void 0}=c.name==="AssertionError"?XT(c):c,x={name:f,message:p,stack:y,callId:b,showDiff:S,diff:h,actual:v,expected:E};if(this.update({...s,status:"error",exception:x}),this.setState(r.storyId,_=>({callRefsByResult:new Map([...Array.from(_.callRefsByResult.entries()),[c,{__callId__:r.id,retain:r.retain}]])})),(d=r.ancestors)==null?void 0:d.length)throw Object.prototype.hasOwnProperty.call(c,"callId")||Object.defineProperty(c,"callId",{value:r.id}),c}throw c};try{if(l==="played"&&!r.retain)throw sL;let c=(n.getArgs?n.getArgs(r,this.getState(r.storyId)):r.args).map(f=>typeof f!="function"||gL(f)||Object.keys(f).length?f:(...p)=>{let{cursor:y,ancestors:b}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...b,r.id]});let S=()=>this.setState(r.storyId,{cursor:y,ancestors:b}),h=!1;try{let v=f(...p);return v instanceof Promise?(h=!0,v.finally(S)):v}finally{h||S()}}),d=e.apply(t,c);return d&&["object","function","symbol"].includes(typeof d)&&this.setState(r.storyId,f=>({callRefsByResult:new Map([...Array.from(f.callRefsByResult.entries()),[d,{__callId__:r.id,retain:r.retain}]])})),this.update({...s,status:d instanceof Promise?"active":"done"}),d instanceof Promise?d.then(f=>(this.update({...s,status:"done"}),f),u):d}catch(c){return u(c)}}update(e){var t;(t=this.channel)==null||t.emit(Ln.CALL,e),this.setState(e.storyId,({calls:r})=>{let n=r.concat(e).reduce((a,l)=>Object.assign(a,{[l.id]:l}),{});return{calls:Object.values(n).sort((a,l)=>a.id.localeCompare(l.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{var u,c,d;let{isLocked:r,isPlaying:n}=this.getState(e),a=this.getLog(e),l=(u=a.filter(({ancestors:f})=>!f.length).find(f=>f.status==="waiting"))==null?void 0:u.callId,i=a.some(f=>f.status==="active");if(this.detached||r||i||a.length===0){let f={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:a};(c=this.channel)==null||c.emit(Ln.SYNC,f);return}let o=a.some(f=>f.status==="done"||f.status==="error"),s={controlStates:{detached:this.detached,start:o,back:o,goto:!0,next:n,end:n},logItems:a,pausedAt:l};(d=this.channel)==null||d.emit(Ln.SYNC,s)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function pL(e,t={}){var r,n,a,l,i,o,s,u;try{let c=!1,d=!1;return(a=(n=(r=Nr.window)==null?void 0:r.location)==null?void 0:n.search)!=null&&a.includes("instrument=true")?c=!0:(o=(i=(l=Nr.window)==null?void 0:l.location)==null?void 0:i.search)!=null&&o.includes("instrument=false")&&(d=!0),((s=Nr.window)==null?void 0:s.parent)===Nr.window&&!c||d?e:(Nr.window&&!Nr.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(Nr.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new fL),((u=Nr.window)==null?void 0:u.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(c){return lL.warn(c),e}}function hL(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function gL(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}var mL=zt({"../../node_modules/@ngard/tiny-isequal/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(a){return Object.keys(a).concat(Object.getOwnPropertySymbols(a))}:Object.keys;return function(a,l){return function i(o,s,u){var c,d,f,p=t.call(o),y=t.call(s);if(o===s)return!0;if(o==null||s==null)return!1;if(u.indexOf(o)>-1&&u.indexOf(s)>-1)return!0;if(u.push(o,s),p!=y||(c=n(o),d=n(s),c.length!=d.length||c.some(function(b){return!i(o[b],s[b],u)})))return!1;switch(p.slice(8,-1)){case"Symbol":return o.valueOf()==s.valueOf();case"Date":case"Number":return+o==+s||+o!=+o&&+s!=+s;case"RegExp":case"Function":case"String":case"Boolean":return""+o==""+s;case"Set":case"Map":c=o.entries(),d=s.entries();do if(!i((f=c.next()).value,d.next().value,u))return!1;while(!f.done);return!0;case"ArrayBuffer":o=new Uint8Array(o),s=new Uint8Array(s);case"DataView":o=new Uint8Array(o.buffer),s=new Uint8Array(s.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(o.length!=s.length)return!1;for(f=0;f<o.length;f++)if((f in o||f in s)&&(f in o!=f in s||!i(o[f],s[f],u)))return!1;return!0;case"Object":return i(r(o),r(s),u);default:return!1}}(a,l,[])}}()}}),IE=Wt(mL(),1),ZT=e=>e.map(t=>typeof t<"u").filter(Boolean).length,yL=(e,t)=>{let{exists:r,eq:n,neq:a,truthy:l}=e;if(ZT([r,n,a,l])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:a})}`);if(typeof n<"u")return(0,IE.isEqual)(t,n);if(typeof a<"u")return!(0,IE.isEqual)(t,a);if(typeof r<"u"){let i=typeof t<"u";return r?i:!i}return typeof l>"u"||l?!!t:!t},bL=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:a}=e.if;if(ZT([n,a])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:a})}`);let l=n?t[n]:r[a];return yL(e.if,l)},vL={};Ft(vL,{argsEnhancers:()=>xL});var QT=(e,t)=>typeof t[e]>"u"&&!(e in t),EL=e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:a}}=e;if(!a||a.disable||!a.argTypesRegex||!r)return{};let l=new RegExp(a.argTypesRegex);return Object.entries(r).filter(([i])=>!!l.test(i)).reduce((i,[o,s])=>(QT(o,t)&&(i[o]=By(o,{implicit:!0,id:n})),i),{})},SL=e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n!=null&&n.disable||!r?{}:Object.entries(r).filter(([a,l])=>!!l.action).reduce((a,[l,i])=>(QT(l,t)&&(a[l]=By(typeof i.action=="string"?i.action:l)),a),{})},xL=[SL,EL],$L={};Ft($L,{loaders:()=>TL});const{onMockCall:_L}=__STORYBOOK_MODULE_TEST__;var kE=!1,CL=e=>{var r;let{parameters:t}=e;(r=t==null?void 0:t.actions)!=null&&r.disable||kE||(_L((n,a)=>{let l=n.getMockName();l!=="spy"&&l!=="vi.fn()"&&(!/^next\/.*::/.test(l)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(i=>l.startsWith(i)))&&By(l)(a)}),kE=!0)},TL=[CL];const{useEffect:zE}=__STORYBOOK_MODULE_PREVIEW_API__;var{document:tn}=globalThis,wL=()=>{var e;return globalThis!=null&&globalThis.matchMedia?!!((e=globalThis.matchMedia("(prefers-reduced-motion: reduce)"))!=null&&e.matches):!1},HE=e=>{(Array.isArray(e)?e:[e]).forEach(AL)},AL=e=>{if(!tn)return;let t=tn.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},OL=(e,t)=>{if(!tn)return;let r=tn.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=tn.createElement("style");n.setAttribute("id",e),n.innerHTML=t,tn.head.appendChild(n)}},DL=(e,t,r)=>{var a;if(!tn)return;let n=tn.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let l=tn.createElement("style");l.setAttribute("id",e),l.innerHTML=t;let i=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,o=tn.getElementById(i);o?(a=o.parentElement)==null||a.insertBefore(l,o):tn.head.appendChild(l)}},RL={cellSize:100,cellAmount:10,opacity:.8},UE="addon-backgrounds",jE="addon-backgrounds-grid",NL=wL()?"":"transition: background-color 0.3s;",LL=(e,t)=>{let{globals:r={},parameters:n={},viewMode:a,id:l}=t,{options:i=J8,disable:o,grid:s=RL}=n[jv]||{},u=r[jv]||{},c=typeof u=="string"?u:u==null?void 0:u.value,d=c?i[c]:void 0,f=typeof d=="string"?d:(d==null?void 0:d.value)||"transparent",p=typeof u=="string"?!1:u.grid||!1,y=!!d&&!o,b=a==="docs"?`#anchor--${l} .docs-story, #anchor--primary--${l} .docs-story`:".sb-show-main",S=a==="docs"?`#anchor--${l} .docs-story, #anchor--primary--${l} .docs-story`:".sb-show-main",h=n.layout===void 0||n.layout==="padded",v=a==="docs"?20:h?16:0,{cellAmount:E,cellSize:x,opacity:_,offsetX:$=v,offsetY:C=v}=s,w=a==="docs"?`${UE}-docs-${l}`:`${UE}-color`,A=a==="docs"?l:null;zE(()=>{let T=`
  52. ${b} {
  53. background: ${f} !important;
  54. ${NL}
  55. }`;if(!y){HE(w);return}DL(w,T,A)},[b,w,A,y,f]);let O=a==="docs"?`${jE}-docs-${l}`:`${jE}`;return zE(()=>{if(!p){HE(O);return}let T=[`${x*E}px ${x*E}px`,`${x*E}px ${x*E}px`,`${x}px ${x}px`,`${x}px ${x}px`].join(", "),M=`
  56. ${S} {
  57. background-size: ${T} !important;
  58. background-position: ${$}px ${C}px, ${$}px ${C}px, ${$}px ${C}px, ${$}px ${C}px !important;
  59. background-blend-mode: difference !important;
  60. background-image: linear-gradient(rgba(130, 130, 130, ${_}) 1px, transparent 1px),
  61. linear-gradient(90deg, rgba(130, 130, 130, ${_}) 1px, transparent 1px),
  62. linear-gradient(rgba(130, 130, 130, ${_/2}) 1px, transparent 1px),
  63. linear-gradient(90deg, rgba(130, 130, 130, ${_/2}) 1px, transparent 1px) !important;
  64. }
  65. `;OL(O,M)},[E,x,S,O,p,$,C,_]),e()},rT;(rT=globalThis.FEATURES)!=null&&rT.backgrounds;var{step:zpe}=pL({step:async(e,t,r)=>t(r)},{intercept:!0});const{addons:Ju}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_RENDER_PHASE_CHANGED:ML}=__STORYBOOK_MODULE_CORE_EVENTS__;var KE={chevronLeft:["M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z"],chevronRight:["M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z"],info:["M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z","M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z"],shareAlt:["M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z","M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z"]},FL="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),gt=(e,t={},r)=>{let n=FL.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([a,l])=>{/[A-Z]/.test(a)?(a==="onClick"&&(n.addEventListener("click",l),n.addEventListener("keydown",i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),l())})),a==="onMouseEnter"&&n.addEventListener("mouseenter",l),a==="onMouseLeave"&&n.addEventListener("mouseleave",l)):n.setAttribute(a,l)}),r==null||r.forEach(a=>{if(!(a==null||a===!1))try{n.appendChild(a)}catch{n.appendChild(document.createTextNode(String(a)))}}),n},ec=e=>KE[e]&&gt("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},KE[e].map(t=>gt("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),BL=e=>{if("elements"in e){let{elements:n,color:a,style:l}=e;return{id:void 0,priority:0,selectors:n,styles:{outline:`2px ${l} ${a}`,outlineOffset:"2px",boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"},menu:void 0}}let{menu:t,...r}=e;return{id:void 0,priority:0,styles:{outline:"2px dashed #029cfd"},...r,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},PL=e=>e instanceof Function,Ko=new Map,nl=new Map,tc=new Map,Fn=e=>{let t=Symbol();return nl.set(t,[]),Ko.set(t,e),{get:()=>Ko.get(t),set:r=>{var l;let n=Ko.get(t),a=PL(r)?r(n):r;a!==n&&(Ko.set(t,a),(l=nl.get(t))==null||l.forEach(i=>{var o;(o=tc.get(i))==null||o(),tc.set(i,i(a))}))},subscribe:r=>{var n;return(n=nl.get(t))==null||n.push(r),()=>{let a=nl.get(t);a&&nl.set(t,a.filter(l=>l!==r))}},teardown:()=>{var r;(r=nl.get(t))==null||r.forEach(n=>{var a;(a=tc.get(n))==null||a(),tc.delete(n)}),nl.delete(t),Ko.delete(t)}}},GE=e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let n of e){let{priority:a=0}=n;for(let l of n.selectors){let i=[...document.querySelectorAll(`:is(${l}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...(t==null?void 0:t.querySelectorAll(l))||[]];for(let o of i){let s=r.get(o);(!s||s.priority<=a)&&r.set(o,{...n,priority:a,selectors:Array.from(new Set(((s==null?void 0:s.selectors)||[]).concat(l)))})}}}return r},IL=e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:a,focusStyles:l,menu:i}])=>{let{top:o,left:s,width:u,height:c}=t.getBoundingClientRect(),{position:d}=getComputedStyle(t);return{element:t,selectors:r,styles:n,hoverStyles:a,focusStyles:l,menu:i,top:d==="fixed"?o:o+window.scrollY,left:d==="fixed"?s:s+window.scrollX,width:u,height:c}}).sort((t,r)=>r.width*r.height-t.width*t.height),VE=(e,t)=>{let r=e.getBoundingClientRect(),{x:n,y:a}=t;return(r==null?void 0:r.top)&&(r==null?void 0:r.left)&&n>=r.left&&n<=r.left+r.width&&a>=r.top&&a<=r.top+r.height},YE=(e,t,r)=>{if(!t||!r)return!1;let{left:n,top:a,width:l,height:i}=e;i<ya&&(a=a-Math.round((ya-i)/2),i=ya),l<ya&&(n=n-Math.round((ya-l)/2),l=ya),t.style.position==="fixed"&&(n+=window.scrollX,a+=window.scrollY);let{x:o,y:s}=r;return o>=n&&o<=n+l&&s>=a&&s<=a+i},kL=(e,t,r={})=>{let{x:n,y:a}=t,{margin:l=5,topOffset:i=0,centered:o=!1}=r,{scrollX:s,scrollY:u,innerHeight:c,innerWidth:d}=window,f=Math.min(e.style.position==="fixed"?a-u:a,c-e.clientHeight-l-i+u),p=o?e.clientWidth/2:0,y=e.style.position==="fixed"?Math.max(Math.min(n-s,d-p-l),p+l):Math.max(Math.min(n,d-p-l+s),p+l+s);Object.assign(e.style,{...y!==n&&{left:`${y}px`},...f!==a&&{top:`${f}px`}})},qE=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},zL=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},HL=e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map(t=>[t.name,t.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),He="storybook-highlights-menu",WE="storybook-highlights-root",UL="storybook-root",jL=e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=Fn([]),n=Fn(new Map),a=Fn([]),l=Fn(),i=Fn(),o=Fn([]),s=Fn([]),u=Fn(),c=Fn(),d=t.getElementById(WE);r.subscribe(()=>{d||(d=gt("div",{id:WE}),t.body.appendChild(d))}),r.subscribe(C=>{let w=t.getElementById(UL);if(!w)return;n.set(GE(C));let A=new MutationObserver(()=>n.set(GE(C)));return A.observe(w,{subtree:!0,childList:!0}),()=>{A.disconnect()}}),n.subscribe(C=>{let w=()=>requestAnimationFrame(()=>a.set(IL(C))),A=new ResizeObserver(w);A.observe(t.body),Array.from(C.keys()).forEach(T=>A.observe(T));let O=Array.from(t.body.querySelectorAll("*")).filter(T=>{let{overflow:M,overflowX:P,overflowY:I}=window.getComputedStyle(T);return["auto","scroll"].some(H=>[M,P,I].includes(H))});return O.forEach(T=>T.addEventListener("scroll",w)),()=>{A.disconnect(),O.forEach(T=>T.removeEventListener("scroll",w))}}),n.subscribe(C=>{let w=Array.from(C.keys()).filter(({style:O})=>O.position==="sticky"),A=()=>requestAnimationFrame(()=>{a.set(O=>O.map(T=>{if(w.includes(T.element)){let{top:M,left:P}=T.element.getBoundingClientRect();return{...T,top:M+window.scrollY,left:P+window.scrollX}}return T}))});return t.addEventListener("scroll",A),()=>t.removeEventListener("scroll",A)}),n.subscribe(C=>{o.set(w=>w.filter(({element:A})=>C.has(A)))}),o.subscribe(C=>{C.length?(c.set(w=>C.some(A=>A.element===(w==null?void 0:w.element))?w:void 0),u.set(w=>C.some(A=>A.element===(w==null?void 0:w.element))?w:void 0)):(c.set(void 0),u.set(void 0),l.set(void 0))});let f=new Map(new Map);r.subscribe(C=>{C.forEach(({keyframes:w})=>{if(w){let A=f.get(w);A||(A=t.createElement("style"),A.setAttribute("data-highlight","keyframes"),f.set(w,A),t.head.appendChild(A)),A.innerHTML=w}}),f.forEach((w,A)=>{C.some(O=>O.keyframes===A)||(w.remove(),f.delete(A))})});let p=new Map(new Map);a.subscribe(C=>{C.forEach(w=>{let A=p.get(w.element);if(d&&!A){let O={popover:"manual","data-highlight-dimensions":`w${w.width.toFixed(0)}h${w.height.toFixed(0)}`,"data-highlight-coordinates":`x${w.left.toFixed(0)}y${w.top.toFixed(0)}`};A=d.appendChild(gt("div",O,[gt("div")])),p.set(w.element,A)}}),p.forEach((w,A)=>{C.some(({element:O})=>O===A)||(w.remove(),p.delete(A))})}),a.subscribe(C=>{let w=C.filter(O=>O.menu);if(!w.length)return;let A=O=>{requestAnimationFrame(()=>{let T=t.getElementById(He),M={x:O.pageX,y:O.pageY};if(T&&!VE(T,M)){let P=w.filter(I=>{let H=p.get(I.element);return YE(I,H,M)});l.set(P.length?M:void 0),o.set(P)}})};return t.addEventListener("click",A),()=>t.removeEventListener("click",A)});let y=()=>{let C=t.getElementById(He),w=i.get();!w||C&&VE(C,w)||s.set(A=>{let O=a.get().filter(I=>{let H=p.get(I.element);return YE(I,H,w)}),T=A.filter(I=>O.includes(I)),M=O.filter(I=>!A.includes(I)),P=A.length-T.length;return M.length||P?[...T,...M]:A})};i.subscribe(y),a.subscribe(y);let b=()=>{let C=c.get(),w=C?[C]:o.get(),A=w.length===1?w[0]:u.get(),O=l.get()!==void 0;a.get().forEach(T=>{var P;let M=p.get(T.element);if(M){let I=A===T,H=O?A?I:w.includes(T):(P=s.get())==null?void 0:P.includes(T);Object.assign(M.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",...T.styles,...H?T.hoverStyles:{},...I?T.focusStyles:{},position:getComputedStyle(T.element).position==="fixed"?"fixed":"absolute",zIndex:Hv-10,top:`${T.top}px`,left:`${T.left}px`,width:`${T.width}px`,height:`${T.height}px`,margin:0,padding:0,cursor:T.menu&&H?"pointer":"default",pointerEvents:T.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(M.children[0].style,{width:"100%",height:"100%",minHeight:`${ya}px`,minWidth:`${ya}px`,boxSizing:"content-box",padding:M.style.outlineWidth||"0px"}),qE(M)}})};a.subscribe(b),o.subscribe(b),s.subscribe(b),u.subscribe(b),c.subscribe(b);let S=()=>{var T;if(!d)return;let C=t.getElementById(He);if(C)C.innerHTML="";else{let M={id:He,popover:"manual"};C=d.appendChild(gt("div",M)),d.appendChild(gt("style",{},[`
  66. #${He} {
  67. position: absolute;
  68. z-index: ${Hv};
  69. width: 300px;
  70. padding: 0px;
  71. margin: 15px 0 0 0;
  72. transform: translateX(-50%);
  73. font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  74. font-size: 12px;
  75. background: white;
  76. border: none;
  77. border-radius: 6px;
  78. box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
  79. color: #2E3438;
  80. }
  81. #${He} ul {
  82. list-style: none;
  83. margin: 0;
  84. padding: 0;
  85. }
  86. #${He} > ul {
  87. max-height: 300px;
  88. overflow-y: auto;
  89. padding: 4px 0;
  90. }
  91. #${He} li {
  92. padding: 0 4px;
  93. margin: 0;
  94. }
  95. #${He} li > :not(ul) {
  96. display: flex;
  97. padding: 8px;
  98. margin: 0;
  99. align-items: center;
  100. gap: 8px;
  101. border-radius: 4px;
  102. }
  103. #${He} button {
  104. width: 100%;
  105. border: 0;
  106. background: transparent;
  107. color: inherit;
  108. text-align: left;
  109. font-family: inherit;
  110. font-size: inherit;
  111. }
  112. #${He} button:focus-visible {
  113. outline-color: #029CFD;
  114. }
  115. #${He} button:hover {
  116. background: rgba(2, 156, 253, 0.07);
  117. color: #029CFD;
  118. cursor: pointer;
  119. }
  120. #${He} li code {
  121. white-space: nowrap;
  122. overflow: hidden;
  123. text-overflow: ellipsis;
  124. line-height: 16px;
  125. font-size: 11px;
  126. }
  127. #${He} li svg {
  128. flex-shrink: 0;
  129. margin: 1px;
  130. color: #73828C;
  131. }
  132. #${He} li > button:hover svg, #${He} li > button:focus-visible svg {
  133. color: #029CFD;
  134. }
  135. #${He} .element-list li svg {
  136. display: none;
  137. }
  138. #${He} li.selectable svg, #${He} li.selected svg {
  139. display: block;
  140. }
  141. #${He} .menu-list {
  142. border-top: 1px solid rgba(38, 85, 115, 0.15);
  143. }
  144. #${He} .menu-list > li:not(:last-child) {
  145. padding-bottom: 4px;
  146. margin-bottom: 4px;
  147. border-bottom: 1px solid rgba(38, 85, 115, 0.15);
  148. }
  149. #${He} .menu-items, #${He} .menu-items li {
  150. padding: 0;
  151. }
  152. #${He} .menu-item {
  153. display: flex;
  154. }
  155. #${He} .menu-item-content {
  156. display: flex;
  157. flex-direction: column;
  158. flex-grow: 1;
  159. }
  160. `]))}let w=c.get(),A=w?[w]:o.get();if(A.length&&(C.style.position=getComputedStyle(A[0].element).position==="fixed"?"fixed":"absolute",C.appendChild(gt("ul",{class:"element-list"},A.map(M=>{var L;let P=A.length>1&&!!((L=M.menu)!=null&&L.some(D=>D.some(N=>!N.selectors||N.selectors.some(U=>M.selectors.includes(U))))),I=P?{class:"selectable",onClick:()=>c.set(M),onMouseEnter:()=>u.set(M),onMouseLeave:()=>u.set(void 0)}:w?{class:"selected",onClick:()=>c.set(void 0)}:{},H=P||w;return gt("li",I,[gt(H?"button":"div",H?{type:"button"}:{},[w?ec("chevronLeft"):null,gt("code",{},[M.element.outerHTML]),P?ec("chevronRight"):null])])})))),c.get()||o.get().length===1){let M=c.get()||o.get()[0],P=(T=M.menu)==null?void 0:T.filter(I=>I.some(H=>!H.selectors||H.selectors.some(L=>M.selectors.includes(L))));P!=null&&P.length&&C.appendChild(gt("ul",{class:"menu-list"},P.map(I=>gt("li",{},[gt("ul",{class:"menu-items"},I.map(({id:H,title:L,description:D,iconLeft:N,iconRight:U,clickEvent:B})=>{let G=B&&(()=>e.emit(B,H,HL(M)));return gt("li",{},[gt(G?"button":"div",G?{class:"menu-item",type:"button",onClick:G}:{class:"menu-item"},[N?ec(N):null,gt("div",{class:"menu-item-content"},[gt(D?"strong":"span",{},[L]),D&&gt("span",{},[D])]),U?ec(U):null])])}))]))))}let O=l.get();O?(Object.assign(C.style,{display:"block",left:`${C.style.position==="fixed"?O.x-window.scrollX:O.x}px`,top:`${C.style.position==="fixed"?O.y-window.scrollY:O.y}px`}),qE(C),requestAnimationFrame(()=>kL(C,O,{topOffset:15,centered:!0}))):(zL(C),Object.assign(C.style,{display:"none"}))};o.subscribe(S),c.subscribe(S);let h=C=>{let w=BL(C);r.set(A=>{var T;let O=w.id?A.filter(M=>M.id!==w.id):A;return(T=w.selectors)!=null&&T.length?[...O,w]:O})},v=C=>{C&&r.set(w=>w.filter(A=>A.id!==C))},E=()=>{r.set([]),n.set(new Map),a.set([]),l.set(void 0),i.set(void 0),o.set([]),s.set([]),u.set(void 0),c.set(void 0)},x,_=(C,w)=>{let A="scrollIntoView-highlight";clearTimeout(x),v(A);let O=t.querySelector(C);if(!O){console.warn(`Cannot scroll into view: ${C} not found`);return}O.scrollIntoView({behavior:"smooth",block:"center",...w});let T=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(M=>[...M,{id:A,priority:1e3,selectors:[C],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${T} 3s linear forwards`},keyframes:`@keyframes ${T} {
  161. 0% { outline: 2px solid #1EA7FD; }
  162. 20% { outline: 2px solid #1EA7FD00; }
  163. 40% { outline: 2px solid #1EA7FD; }
  164. 60% { outline: 2px solid #1EA7FD00; }
  165. 80% { outline: 2px solid #1EA7FD; }
  166. 100% { outline: 2px solid #1EA7FD00; }
  167. }`}]),x=setTimeout(()=>v(A),3500)},$=C=>{requestAnimationFrame(()=>i.set({x:C.pageX,y:C.pageY}))};t.body.addEventListener("mousemove",$),e.on(z8,h),e.on(H8,v),e.on(U8,E),e.on(j8,_),e.on(ML,({newPhase:C})=>{C==="loading"&&E()})},nT;(nT=globalThis==null?void 0:globalThis.FEATURES)!=null&&nT.highlight&&(Ju!=null&&Ju.ready)&&Ju.ready().then(jL);const{useEffect:XE}=__STORYBOOK_MODULE_PREVIEW_API__,{global:Dd}=__STORYBOOK_MODULE_GLOBAL__;function JT(){let e=Dd.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function KL(){let e=Dd.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");gm(t!=null);let{width:r,height:n}=JT();return $m(e,t,{width:r,height:n}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",Dd.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}function $m(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let a=Dd.window.devicePixelRatio;e.width=Math.floor(r*a),e.height=Math.floor(n*a),t.scale(a,a)}var mt={};function GL(){mt.canvas||(mt=KL())}function ew(){mt.context&&mt.context.clearRect(0,0,mt.width??0,mt.height??0)}function VL(e){ew(),e(mt.context)}function YL(){gm(mt.canvas),gm(mt.context),$m(mt.canvas,mt.context,{width:0,height:0});let{width:e,height:t}=JT();$m(mt.canvas,mt.context,{width:e,height:t}),mt.width=e,mt.height=t}function qL(){var e;mt.canvas&&(ew(),(e=mt.canvas.parentNode)==null||e.removeChild(mt.canvas),mt={})}const{global:en}=__STORYBOOK_MODULE_GLOBAL__;var li={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},qn=6;function ZE(e,{x:t,y:r,w:n,h:a,r:l}){t=t-n/2,r=r-a/2,n<2*l&&(l=n/2),a<2*l&&(l=a/2),e.beginPath(),e.moveTo(t+l,r),e.arcTo(t+n,r,t+n,r+a,l),e.arcTo(t+n,r+a,t,r+a,l),e.arcTo(t,r+a,t,r,l),e.arcTo(t,r,t+n,r,l),e.closePath()}function WL(e,{padding:t,border:r,width:n,height:a,top:l,left:i}){let o=n-r.left-r.right-t.left-t.right,s=a-t.top-t.bottom-r.top-r.bottom,u=i+r.left+t.left,c=l+r.top+t.top;return e==="top"?u+=o/2:e==="right"?(u+=o,c+=s/2):e==="bottom"?(u+=o/2,c+=s):e==="left"?c+=s/2:e==="center"&&(u+=o/2,c+=s/2),{x:u,y:c}}function XL(e,t,{margin:r,border:n,padding:a},l,i){let o=f=>0,s=0,u=0,c=i?1:.5,d=i?l*2:0;return e==="padding"?o=f=>a[f]*c+d:e==="border"?o=f=>a[f]+n[f]*c+d:e==="margin"&&(o=f=>a[f]+n[f]+r[f]*c+d),t==="top"?u=-o("top"):t==="right"?s=o("right"):t==="bottom"?u=o("bottom"):t==="left"&&(s=-o("left")),{offsetX:s,offsetY:u}}function ZL(e,t){return Math.abs(e.x-t.x)<Math.abs(e.w+t.w)/2&&Math.abs(e.y-t.y)<Math.abs(e.h+t.h)/2}function QL(e,t,r){return e==="top"?t.y=r.y-r.h-qn:e==="right"?t.x=r.x+r.w/2+qn+t.w/2:e==="bottom"?t.y=r.y+r.h+qn:e==="left"&&(t.x=r.x-r.w/2-qn-t.w/2),{x:t.x,y:t.y}}function tw(e,t,{x:r,y:n,w:a,h:l},i){return ZE(e,{x:r,y:n,w:a,h:l,r:3}),e.fillStyle=`${li[t]}dd`,e.fill(),e.strokeStyle=li[t],e.stroke(),e.fillStyle=li.text,e.fillText(i,r,n),ZE(e,{x:r,y:n,w:a,h:l,r:3}),e.fillStyle=`${li[t]}dd`,e.fill(),e.strokeStyle=li[t],e.stroke(),e.fillStyle=li.text,e.fillText(i,r,n),{x:r,y:n,w:a,h:l}}function rw(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";let r=e.measureText(t),n=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent,a=r.width+qn*2,l=n+qn*2;return{w:a,h:l}}function JL(e,t,{type:r,position:n="center",text:a},l,i=!1){let{x:o,y:s}=WL(n,t),{offsetX:u,offsetY:c}=XL(r,n,t,qn+1,i);o+=u,s+=c;let{w:d,h:f}=rw(e,a);if(l&&ZL({x:o,y:s,w:d,h:f},l)){let p=QL(n,{x:o,y:s,w:d},l);o=p.x,s=p.y}return tw(e,r,{x:o,y:s,w:d,h:f},a)}function eM(e,{w:t,h:r}){let n=t*.5+qn,a=r*.5+qn;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*a}}function tM(e,t,{type:r,text:n}){let{floatingAlignment:a,extremities:l}=t,i=l[a.x],o=l[a.y],{w:s,h:u}=rw(e,n),{offsetX:c,offsetY:d}=eM(a,{w:s,h:u});return i+=c,o+=d,tw(e,r,{x:i,y:o,w:s,h:u},n)}function Go(e,t,r,n){let a=[];r.forEach((l,i)=>{let o=n&&l.position==="center"?tM(e,t,l):JL(e,t,l,a[i-1],n);a[i]=o})}function rM(e,t,r,n){let a=r.reduce((l,i)=>{var o;return Object.prototype.hasOwnProperty.call(l,i.position)||(l[i.position]=[]),(o=l[i.position])==null||o.push(i),l},{});a.top&&Go(e,t,a.top,n),a.right&&Go(e,t,a.right,n),a.bottom&&Go(e,t,a.bottom,n),a.left&&Go(e,t,a.left,n),a.center&&Go(e,t,a.center,n)}var zf={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},QE=30;function Ar(e){return parseInt(e.replace("px",""),10)}function vi(e){return Number.isInteger(e)?e:e.toFixed(2)}function Yy(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function nM(e){let t={top:en.window.scrollY,bottom:en.window.scrollY+en.window.innerHeight,left:en.window.scrollX,right:en.window.scrollX+en.window.innerWidth},r={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:r.left>r.right?"left":"right",y:r.top>r.bottom?"top":"bottom"}}function aM(e){let t=en.getComputedStyle(e),{top:r,left:n,right:a,bottom:l,width:i,height:o}=e.getBoundingClientRect(),{marginTop:s,marginBottom:u,marginLeft:c,marginRight:d,paddingTop:f,paddingBottom:p,paddingLeft:y,paddingRight:b,borderBottomWidth:S,borderTopWidth:h,borderLeftWidth:v,borderRightWidth:E}=t;r=r+en.window.scrollY,n=n+en.window.scrollX,l=l+en.window.scrollY,a=a+en.window.scrollX;let x={top:Ar(s),bottom:Ar(u),left:Ar(c),right:Ar(d)},_={top:Ar(f),bottom:Ar(p),left:Ar(y),right:Ar(b)},$={top:Ar(h),bottom:Ar(S),left:Ar(v),right:Ar(E)},C={top:r-x.top,bottom:l+x.bottom,left:n-x.left,right:a+x.right};return{margin:x,padding:_,border:$,top:r,left:n,bottom:l,right:a,width:i,height:o,extremities:C,floatingAlignment:nM(C)}}function lM(e,{margin:t,width:r,height:n,top:a,left:l,bottom:i,right:o}){let s=n+t.bottom+t.top;e.fillStyle=zf.margin,e.fillRect(l,a-t.top,r,t.top),e.fillRect(o,a-t.top,t.right,s),e.fillRect(l,i,r,t.bottom),e.fillRect(l-t.left,a-t.top,t.left,s);let u=[{type:"margin",text:vi(t.top),position:"top"},{type:"margin",text:vi(t.right),position:"right"},{type:"margin",text:vi(t.bottom),position:"bottom"},{type:"margin",text:vi(t.left),position:"left"}];return Yy(u)}function iM(e,{padding:t,border:r,width:n,height:a,top:l,left:i,bottom:o,right:s}){let u=n-r.left-r.right,c=a-t.top-t.bottom-r.top-r.bottom;e.fillStyle=zf.padding,e.fillRect(i+r.left,l+r.top,u,t.top),e.fillRect(s-t.right-r.right,l+t.top+r.top,t.right,c),e.fillRect(i+r.left,o-t.bottom-r.bottom,u,t.bottom),e.fillRect(i+r.left,l+t.top+r.top,t.left,c);let d=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return Yy(d)}function oM(e,{border:t,width:r,height:n,top:a,left:l,bottom:i,right:o}){let s=n-t.top-t.bottom;e.fillStyle=zf.border,e.fillRect(l,a,r,t.top),e.fillRect(l,i-t.bottom,r,t.bottom),e.fillRect(l,a+t.top,t.left,s),e.fillRect(o-t.right,a+t.top,t.right,s);let u=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return Yy(u)}function sM(e,{padding:t,border:r,width:n,height:a,top:l,left:i}){let o=n-r.left-r.right-t.left-t.right,s=a-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=zf.content,e.fillRect(i+r.left+t.left,l+r.top+t.top,o,s),[{type:"content",position:"center",text:`${vi(o)} x ${vi(s)}`}]}function uM(e){return t=>{if(e&&t){let r=aM(e),n=lM(t,r),a=iM(t,r),l=oM(t,r),i=sM(t,r),o=r.width<=QE*3||r.height<=QE;rM(t,r,[...i,...a,...l,...n],o)}}}function cM(e){VL(uM(e))}const{global:dM}=__STORYBOOK_MODULE_GLOBAL__;var fM=(e,t)=>{let r=dM.document.elementFromPoint(e,t),n=a=>{if(a&&a.shadowRoot){let l=a.shadowRoot.elementFromPoint(e,t);return a.isEqualNode(l)?a:l.shadowRoot?n(l):l}return a};return n(r)||r},JE,rc={x:0,y:0};function eS(e,t){JE=fM(e,t),cM(JE)}var pM=(e,t)=>{let{measureEnabled:r}=t.globals||{};return XE(()=>{if(typeof globalThis.document>"u")return;let n=a=>{window.requestAnimationFrame(()=>{a.stopPropagation(),rc.x=a.clientX,rc.y=a.clientY})};return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),XE(()=>{let n=l=>{window.requestAnimationFrame(()=>{l.stopPropagation(),eS(l.clientX,l.clientY)})},a=()=>{window.requestAnimationFrame(()=>{YL()})};return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),GL(),globalThis.window.addEventListener("resize",a),eS(rc.x,rc.y)),()=>{globalThis.window.removeEventListener("resize",a),qL()}},[r,t.viewMode]),e()},aT;(aT=globalThis.FEATURES)!=null&&aT.measure;const{useEffect:hM,useMemo:gM}=__STORYBOOK_MODULE_PREVIEW_API__,{global:qc}=__STORYBOOK_MODULE_GLOBAL__;var tS=e=>{(Array.isArray(e)?e:[e]).forEach(mM)},mM=e=>{let t=typeof e=="string"?e:e.join(""),r=qc.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},yM=(e,t)=>{let r=qc.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=qc.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,qc.document.head.appendChild(n)}};function bM(e){return Mr`
  168. ${e} body {
  169. outline: 1px solid #2980b9 !important;
  170. }
  171. ${e} article {
  172. outline: 1px solid #3498db !important;
  173. }
  174. ${e} nav {
  175. outline: 1px solid #0088c3 !important;
  176. }
  177. ${e} aside {
  178. outline: 1px solid #33a0ce !important;
  179. }
  180. ${e} section {
  181. outline: 1px solid #66b8da !important;
  182. }
  183. ${e} header {
  184. outline: 1px solid #99cfe7 !important;
  185. }
  186. ${e} footer {
  187. outline: 1px solid #cce7f3 !important;
  188. }
  189. ${e} h1 {
  190. outline: 1px solid #162544 !important;
  191. }
  192. ${e} h2 {
  193. outline: 1px solid #314e6e !important;
  194. }
  195. ${e} h3 {
  196. outline: 1px solid #3e5e85 !important;
  197. }
  198. ${e} h4 {
  199. outline: 1px solid #449baf !important;
  200. }
  201. ${e} h5 {
  202. outline: 1px solid #c7d1cb !important;
  203. }
  204. ${e} h6 {
  205. outline: 1px solid #4371d0 !important;
  206. }
  207. ${e} main {
  208. outline: 1px solid #2f4f90 !important;
  209. }
  210. ${e} address {
  211. outline: 1px solid #1a2c51 !important;
  212. }
  213. ${e} div {
  214. outline: 1px solid #036cdb !important;
  215. }
  216. ${e} p {
  217. outline: 1px solid #ac050b !important;
  218. }
  219. ${e} hr {
  220. outline: 1px solid #ff063f !important;
  221. }
  222. ${e} pre {
  223. outline: 1px solid #850440 !important;
  224. }
  225. ${e} blockquote {
  226. outline: 1px solid #f1b8e7 !important;
  227. }
  228. ${e} ol {
  229. outline: 1px solid #ff050c !important;
  230. }
  231. ${e} ul {
  232. outline: 1px solid #d90416 !important;
  233. }
  234. ${e} li {
  235. outline: 1px solid #d90416 !important;
  236. }
  237. ${e} dl {
  238. outline: 1px solid #fd3427 !important;
  239. }
  240. ${e} dt {
  241. outline: 1px solid #ff0043 !important;
  242. }
  243. ${e} dd {
  244. outline: 1px solid #e80174 !important;
  245. }
  246. ${e} figure {
  247. outline: 1px solid #ff00bb !important;
  248. }
  249. ${e} figcaption {
  250. outline: 1px solid #bf0032 !important;
  251. }
  252. ${e} table {
  253. outline: 1px solid #00cc99 !important;
  254. }
  255. ${e} caption {
  256. outline: 1px solid #37ffc4 !important;
  257. }
  258. ${e} thead {
  259. outline: 1px solid #98daca !important;
  260. }
  261. ${e} tbody {
  262. outline: 1px solid #64a7a0 !important;
  263. }
  264. ${e} tfoot {
  265. outline: 1px solid #22746b !important;
  266. }
  267. ${e} tr {
  268. outline: 1px solid #86c0b2 !important;
  269. }
  270. ${e} th {
  271. outline: 1px solid #a1e7d6 !important;
  272. }
  273. ${e} td {
  274. outline: 1px solid #3f5a54 !important;
  275. }
  276. ${e} col {
  277. outline: 1px solid #6c9a8f !important;
  278. }
  279. ${e} colgroup {
  280. outline: 1px solid #6c9a9d !important;
  281. }
  282. ${e} button {
  283. outline: 1px solid #da8301 !important;
  284. }
  285. ${e} datalist {
  286. outline: 1px solid #c06000 !important;
  287. }
  288. ${e} fieldset {
  289. outline: 1px solid #d95100 !important;
  290. }
  291. ${e} form {
  292. outline: 1px solid #d23600 !important;
  293. }
  294. ${e} input {
  295. outline: 1px solid #fca600 !important;
  296. }
  297. ${e} keygen {
  298. outline: 1px solid #b31e00 !important;
  299. }
  300. ${e} label {
  301. outline: 1px solid #ee8900 !important;
  302. }
  303. ${e} legend {
  304. outline: 1px solid #de6d00 !important;
  305. }
  306. ${e} meter {
  307. outline: 1px solid #e8630c !important;
  308. }
  309. ${e} optgroup {
  310. outline: 1px solid #b33600 !important;
  311. }
  312. ${e} option {
  313. outline: 1px solid #ff8a00 !important;
  314. }
  315. ${e} output {
  316. outline: 1px solid #ff9619 !important;
  317. }
  318. ${e} progress {
  319. outline: 1px solid #e57c00 !important;
  320. }
  321. ${e} select {
  322. outline: 1px solid #e26e0f !important;
  323. }
  324. ${e} textarea {
  325. outline: 1px solid #cc5400 !important;
  326. }
  327. ${e} details {
  328. outline: 1px solid #33848f !important;
  329. }
  330. ${e} summary {
  331. outline: 1px solid #60a1a6 !important;
  332. }
  333. ${e} command {
  334. outline: 1px solid #438da1 !important;
  335. }
  336. ${e} menu {
  337. outline: 1px solid #449da6 !important;
  338. }
  339. ${e} del {
  340. outline: 1px solid #bf0000 !important;
  341. }
  342. ${e} ins {
  343. outline: 1px solid #400000 !important;
  344. }
  345. ${e} img {
  346. outline: 1px solid #22746b !important;
  347. }
  348. ${e} iframe {
  349. outline: 1px solid #64a7a0 !important;
  350. }
  351. ${e} embed {
  352. outline: 1px solid #98daca !important;
  353. }
  354. ${e} object {
  355. outline: 1px solid #00cc99 !important;
  356. }
  357. ${e} param {
  358. outline: 1px solid #37ffc4 !important;
  359. }
  360. ${e} video {
  361. outline: 1px solid #6ee866 !important;
  362. }
  363. ${e} audio {
  364. outline: 1px solid #027353 !important;
  365. }
  366. ${e} source {
  367. outline: 1px solid #012426 !important;
  368. }
  369. ${e} canvas {
  370. outline: 1px solid #a2f570 !important;
  371. }
  372. ${e} track {
  373. outline: 1px solid #59a600 !important;
  374. }
  375. ${e} map {
  376. outline: 1px solid #7be500 !important;
  377. }
  378. ${e} area {
  379. outline: 1px solid #305900 !important;
  380. }
  381. ${e} a {
  382. outline: 1px solid #ff62ab !important;
  383. }
  384. ${e} em {
  385. outline: 1px solid #800b41 !important;
  386. }
  387. ${e} strong {
  388. outline: 1px solid #ff1583 !important;
  389. }
  390. ${e} i {
  391. outline: 1px solid #803156 !important;
  392. }
  393. ${e} b {
  394. outline: 1px solid #cc1169 !important;
  395. }
  396. ${e} u {
  397. outline: 1px solid #ff0430 !important;
  398. }
  399. ${e} s {
  400. outline: 1px solid #f805e3 !important;
  401. }
  402. ${e} small {
  403. outline: 1px solid #d107b2 !important;
  404. }
  405. ${e} abbr {
  406. outline: 1px solid #4a0263 !important;
  407. }
  408. ${e} q {
  409. outline: 1px solid #240018 !important;
  410. }
  411. ${e} cite {
  412. outline: 1px solid #64003c !important;
  413. }
  414. ${e} dfn {
  415. outline: 1px solid #b4005a !important;
  416. }
  417. ${e} sub {
  418. outline: 1px solid #dba0c8 !important;
  419. }
  420. ${e} sup {
  421. outline: 1px solid #cc0256 !important;
  422. }
  423. ${e} time {
  424. outline: 1px solid #d6606d !important;
  425. }
  426. ${e} code {
  427. outline: 1px solid #e04251 !important;
  428. }
  429. ${e} kbd {
  430. outline: 1px solid #5e001f !important;
  431. }
  432. ${e} samp {
  433. outline: 1px solid #9c0033 !important;
  434. }
  435. ${e} var {
  436. outline: 1px solid #d90047 !important;
  437. }
  438. ${e} mark {
  439. outline: 1px solid #ff0053 !important;
  440. }
  441. ${e} bdi {
  442. outline: 1px solid #bf3668 !important;
  443. }
  444. ${e} bdo {
  445. outline: 1px solid #6f1400 !important;
  446. }
  447. ${e} ruby {
  448. outline: 1px solid #ff7b93 !important;
  449. }
  450. ${e} rt {
  451. outline: 1px solid #ff2f54 !important;
  452. }
  453. ${e} rp {
  454. outline: 1px solid #803e49 !important;
  455. }
  456. ${e} span {
  457. outline: 1px solid #cc2643 !important;
  458. }
  459. ${e} br {
  460. outline: 1px solid #db687d !important;
  461. }
  462. ${e} wbr {
  463. outline: 1px solid #db175b !important;
  464. }`}var vM=(e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[Q8]),a=t.viewMode==="docs",l=gM(()=>bM(a?'[data-story-block="true"]':".sb-show-main"),[t]);return hM(()=>{let i=a?`addon-outline-docs-${t.id}`:"addon-outline";return n?yM(i,l):tS(i),()=>{tS(i)}},[n,l,t]),e()},lT;(lT=globalThis.FEATURES)!=null&&lT.outline;const{clearAllMocks:Hpe,fn:Upe,isMockFunction:jpe,resetAllMocks:Kpe,restoreAllMocks:Gpe,uninstrumentedUserEvent:Vpe,within:Ype}=__STORYBOOK_MODULE_TEST__;var Yi=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),rS=(e,t)=>{let r=Yi(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},nc=(e,t)=>`${rS(e,"kind")}${t?`--${rS(t,"name")}`:""}`,nw={exports:{}},oe={};/**
  465. * @license React
  466. * react.production.js
  467. *
  468. * Copyright (c) Meta Platforms, Inc. and affiliates.
  469. *
  470. * This source code is licensed under the MIT license found in the
  471. * LICENSE file in the root directory of this source tree.
  472. */var qy=Symbol.for("react.transitional.element"),EM=Symbol.for("react.portal"),SM=Symbol.for("react.fragment"),xM=Symbol.for("react.strict_mode"),$M=Symbol.for("react.profiler"),_M=Symbol.for("react.consumer"),CM=Symbol.for("react.context"),TM=Symbol.for("react.forward_ref"),wM=Symbol.for("react.suspense"),AM=Symbol.for("react.memo"),aw=Symbol.for("react.lazy"),OM=Symbol.for("react.activity"),nS=Symbol.iterator;function DM(e){return e===null||typeof e!="object"?null:(e=nS&&e[nS]||e["@@iterator"],typeof e=="function"?e:null)}var lw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},iw=Object.assign,ow={};function So(e,t,r){this.props=e,this.context=t,this.refs=ow,this.updater=r||lw}So.prototype.isReactComponent={};So.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")};So.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function sw(){}sw.prototype=So.prototype;function Wy(e,t,r){this.props=e,this.context=t,this.refs=ow,this.updater=r||lw}var Xy=Wy.prototype=new sw;Xy.constructor=Wy;iw(Xy,So.prototype);Xy.isPureReactComponent=!0;var aS=Array.isArray;function _m(){}var Ge={H:null,A:null,T:null,S:null},uw=Object.prototype.hasOwnProperty;function Zy(e,t,r){var n=r.ref;return{$$typeof:qy,type:e,key:t,ref:n!==void 0?n:null,props:r}}function RM(e,t){return Zy(e.type,t,e.props)}function Qy(e){return typeof e=="object"&&e!==null&&e.$$typeof===qy}function NM(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var lS=/\/+/g;function dh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?NM(""+e.key):t.toString(36)}function LM(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(_m,_m):(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 fi(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 qy:case EM:i=!0;break;case aw:return i=e._init,fi(i(e._payload),t,r,n,a)}}if(i)return a=a(e),i=n===""?"."+dh(e,0):n,aS(a)?(r="",i!=null&&(r=i.replace(lS,"$&/")+"/"),fi(a,t,r,"",function(u){return u})):a!=null&&(Qy(a)&&(a=RM(a,r+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(lS,"$&/")+"/")+i)),t.push(a)),1;i=0;var o=n===""?".":n+":";if(aS(e))for(var s=0;s<e.length;s++)n=e[s],l=o+dh(n,s),i+=fi(n,t,r,l,a);else if(s=DM(e),typeof s=="function")for(e=s.call(e),s=0;!(n=e.next()).done;)n=n.value,l=o+dh(n,s++),i+=fi(n,t,r,l,a);else if(l==="object"){if(typeof e.then=="function")return fi(LM(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 ac(e,t,r){if(e==null)return e;var n=[],a=0;return fi(e,n,"","",function(l){return t.call(r,l,a++)}),n}function MM(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 iS=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)},FM={map:ac,forEach:function(e,t,r){ac(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return ac(e,function(){t++}),t},toArray:function(e){return ac(e,function(t){return t})||[]},only:function(e){if(!Qy(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};oe.Activity=OM;oe.Children=FM;oe.Component=So;oe.Fragment=SM;oe.Profiler=$M;oe.PureComponent=Wy;oe.StrictMode=xM;oe.Suspense=wM;oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ge;oe.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Ge.H.useMemoCache(e)}};oe.cache=function(e){return function(){return e.apply(null,arguments)}};oe.cacheSignal=function(){return null};oe.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var n=iw({},e.props),a=e.key;if(t!=null)for(l in t.key!==void 0&&(a=""+t.key),t)!uw.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 Zy(e.type,a,n)};oe.createContext=function(e){return e={$$typeof:CM,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:_M,_context:e},e};oe.createElement=function(e,t,r){var n,a={},l=null;if(t!=null)for(n in t.key!==void 0&&(l=""+t.key),t)uw.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 Zy(e,l,a)};oe.createRef=function(){return{current:null}};oe.forwardRef=function(e){return{$$typeof:TM,render:e}};oe.isValidElement=Qy;oe.lazy=function(e){return{$$typeof:aw,_payload:{_status:-1,_result:e},_init:MM}};oe.memo=function(e,t){return{$$typeof:AM,type:e,compare:t===void 0?null:t}};oe.startTransition=function(e){var t=Ge.T,r={};Ge.T=r;try{var n=e(),a=Ge.S;a!==null&&a(r,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(_m,iS)}catch(l){iS(l)}finally{t!==null&&r.types!==null&&(t.types=r.types),Ge.T=t}};oe.unstable_useCacheRefresh=function(){return Ge.H.useCacheRefresh()};oe.use=function(e){return Ge.H.use(e)};oe.useActionState=function(e,t,r){return Ge.H.useActionState(e,t,r)};oe.useCallback=function(e,t){return Ge.H.useCallback(e,t)};oe.useContext=function(e){return Ge.H.useContext(e)};oe.useDebugValue=function(){};oe.useDeferredValue=function(e,t){return Ge.H.useDeferredValue(e,t)};oe.useEffect=function(e,t){return Ge.H.useEffect(e,t)};oe.useEffectEvent=function(e){return Ge.H.useEffectEvent(e)};oe.useId=function(){return Ge.H.useId()};oe.useImperativeHandle=function(e,t,r){return Ge.H.useImperativeHandle(e,t,r)};oe.useInsertionEffect=function(e,t){return Ge.H.useInsertionEffect(e,t)};oe.useLayoutEffect=function(e,t){return Ge.H.useLayoutEffect(e,t)};oe.useMemo=function(e,t){return Ge.H.useMemo(e,t)};oe.useOptimistic=function(e,t){return Ge.H.useOptimistic(e,t)};oe.useReducer=function(e,t,r){return Ge.H.useReducer(e,t,r)};oe.useRef=function(e){return Ge.H.useRef(e)};oe.useState=function(e){return Ge.H.useState(e)};oe.useSyncExternalStore=function(e,t,r){return Ge.H.useSyncExternalStore(e,t,r)};oe.useTransition=function(){return Ge.H.useTransition()};oe.version="19.2.7";nw.exports=oe;var g=nw.exports;const m=My(g),BM=G8({__proto__:null,default:m},[g]);var cw={exports:{}},Hf={},dw={exports:{}},fw={};/**
  473. * @license React
  474. * scheduler.production.js
  475. *
  476. * Copyright (c) Meta Platforms, Inc. and affiliates.
  477. *
  478. * This source code is licensed under the MIT license found in the
  479. * LICENSE file in the root directory of this source tree.
  480. */(function(e){function t(L,D){var N=L.length;L.push(D);e:for(;0<N;){var U=N-1>>>1,B=L[U];if(0<a(B,D))L[U]=D,L[N]=B,N=U;else break e}}function r(L){return L.length===0?null:L[0]}function n(L){if(L.length===0)return null;var D=L[0],N=L.pop();if(N!==D){L[0]=N;e:for(var U=0,B=L.length,G=B>>>1;U<G;){var V=2*(U+1)-1,Z=L[V],J=V+1,j=L[J];if(0>a(Z,N))J<B&&0>a(j,Z)?(L[U]=j,L[J]=N,U=J):(L[U]=Z,L[V]=N,U=V);else if(J<B&&0>a(j,N))L[U]=j,L[J]=N,U=J;else break e}}return D}function a(L,D){var N=L.sortIndex-D.sortIndex;return N!==0?N:L.id-D.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,o=i.now();e.unstable_now=function(){return i.now()-o}}var s=[],u=[],c=1,d=null,f=3,p=!1,y=!1,b=!1,S=!1,h=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function x(L){for(var D=r(u);D!==null;){if(D.callback===null)n(u);else if(D.startTime<=L)n(u),D.sortIndex=D.expirationTime,t(s,D);else break;D=r(u)}}function _(L){if(b=!1,x(L),!y)if(r(s)!==null)y=!0,$||($=!0,M());else{var D=r(u);D!==null&&H(_,D.startTime-L)}}var $=!1,C=-1,w=5,A=-1;function O(){return S?!0:!(e.unstable_now()-A<w)}function T(){if(S=!1,$){var L=e.unstable_now();A=L;var D=!0;try{e:{y=!1,b&&(b=!1,v(C),C=-1),p=!0;var N=f;try{t:{for(x(L),d=r(s);d!==null&&!(d.expirationTime>L&&O());){var U=d.callback;if(typeof U=="function"){d.callback=null,f=d.priorityLevel;var B=U(d.expirationTime<=L);if(L=e.unstable_now(),typeof B=="function"){d.callback=B,x(L),D=!0;break t}d===r(s)&&n(s),x(L)}else n(s);d=r(s)}if(d!==null)D=!0;else{var G=r(u);G!==null&&H(_,G.startTime-L),D=!1}}break e}finally{d=null,f=N,p=!1}D=void 0}}finally{D?M():$=!1}}}var M;if(typeof E=="function")M=function(){E(T)};else if(typeof MessageChannel<"u"){var P=new MessageChannel,I=P.port2;P.port1.onmessage=T,M=function(){I.postMessage(null)}}else M=function(){h(T,0)};function H(L,D){C=h(function(){L(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(L){switch(f){case 1:case 2:case 3:var D=3;break;default:D=f}var N=f;f=D;try{return L()}finally{f=N}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(L,D){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var N=f;f=L;try{return D()}finally{f=N}},e.unstable_scheduleCallback=function(L,D,N){var U=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?U+N:U):N=U,L){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=N+B,L={id:c++,callback:D,priorityLevel:L,startTime:N,expirationTime:B,sortIndex:-1},N>U?(L.sortIndex=N,t(u,L),r(s)===null&&L===r(u)&&(b?(v(C),C=-1):b=!0,H(_,N-U))):(L.sortIndex=B,t(s,L),y||p||(y=!0,$||($=!0,M()))),L},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(L){var D=f;return function(){var N=f;f=D;try{return L.apply(this,arguments)}finally{f=N}}}})(fw);dw.exports=fw;var PM=dw.exports,pw={exports:{}},Xt={};/**
  481. * @license React
  482. * react-dom.production.js
  483. *
  484. * Copyright (c) Meta Platforms, Inc. and affiliates.
  485. *
  486. * This source code is licensed under the MIT license found in the
  487. * LICENSE file in the root directory of this source tree.
  488. */var IM=g;function hw(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 pa(){}var qt={d:{f:pa,r:function(){throw Error(hw(522))},D:pa,C:pa,L:pa,m:pa,X:pa,S:pa,M:pa},p:0,findDOMNode:null},kM=Symbol.for("react.portal");function zM(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:kM,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}var Es=IM.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Uf(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Xt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=qt;Xt.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(hw(299));return zM(e,t,null,r)};Xt.flushSync=function(e){var t=Es.T,r=qt.p;try{if(Es.T=null,qt.p=2,e)return e()}finally{Es.T=t,qt.p=r,qt.d.f()}};Xt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,qt.d.C(e,t))};Xt.prefetchDNS=function(e){typeof e=="string"&&qt.d.D(e)};Xt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var r=t.as,n=Uf(r,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,l=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;r==="style"?qt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:n,integrity:a,fetchPriority:l}):r==="script"&&qt.d.X(e,{crossOrigin:n,integrity:a,fetchPriority:l,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Xt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var r=Uf(t.as,t.crossOrigin);qt.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&&qt.d.M(e)};Xt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var r=t.as,n=Uf(r,t.crossOrigin);qt.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})}};Xt.preloadModule=function(e,t){if(typeof e=="string")if(t){var r=Uf(t.as,t.crossOrigin);qt.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 qt.d.m(e)};Xt.requestFormReset=function(e){qt.d.r(e)};Xt.unstable_batchedUpdates=function(e,t){return e(t)};Xt.useFormState=function(e,t,r){return Es.H.useFormState(e,t,r)};Xt.useFormStatus=function(){return Es.H.useHostTransitionStatus()};Xt.version="19.2.7";function gw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(gw)}catch(e){console.error(e)}}gw(),pw.exports=Xt;var xo=pw.exports;const mw=My(xo);/**
  489. * @license React
  490. * react-dom-client.production.js
  491. *
  492. * Copyright (c) Meta Platforms, Inc. and affiliates.
  493. *
  494. * This source code is licensed under the MIT license found in the
  495. * LICENSE file in the root directory of this source tree.
  496. */var bt=PM,yw=g,HM=xo;function W(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 bw(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function bu(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function vw(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Ew(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function oS(e){if(bu(e)!==e)throw Error(W(188))}function UM(e){var t=e.alternate;if(!t){if(t=bu(e),t===null)throw Error(W(188));return t!==e?null:e}for(var r=e,n=t;;){var a=r.return;if(a===null)break;var l=a.alternate;if(l===null){if(n=a.return,n!==null){r=n;continue}break}if(a.child===l.child){for(l=a.child;l;){if(l===r)return oS(a),e;if(l===n)return oS(a),t;l=l.sibling}throw Error(W(188))}if(r.return!==n.return)r=a,n=l;else{for(var i=!1,o=a.child;o;){if(o===r){i=!0,r=a,n=l;break}if(o===n){i=!0,n=a,r=l;break}o=o.sibling}if(!i){for(o=l.child;o;){if(o===r){i=!0,r=l,n=a;break}if(o===n){i=!0,n=l,r=a;break}o=o.sibling}if(!i)throw Error(W(189))}}if(r.alternate!==n)throw Error(W(190))}if(r.tag!==3)throw Error(W(188));return r.stateNode.current===r?e:t}function Sw(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Sw(e),t!==null)return t;e=e.sibling}return null}var Ve=Object.assign,jM=Symbol.for("react.element"),lc=Symbol.for("react.transitional.element"),us=Symbol.for("react.portal"),Ei=Symbol.for("react.fragment"),xw=Symbol.for("react.strict_mode"),Cm=Symbol.for("react.profiler"),$w=Symbol.for("react.consumer"),Wn=Symbol.for("react.context"),Jy=Symbol.for("react.forward_ref"),Tm=Symbol.for("react.suspense"),wm=Symbol.for("react.suspense_list"),eb=Symbol.for("react.memo"),Ea=Symbol.for("react.lazy"),Am=Symbol.for("react.activity"),KM=Symbol.for("react.memo_cache_sentinel"),sS=Symbol.iterator;function Vo(e){return e===null||typeof e!="object"?null:(e=sS&&e[sS]||e["@@iterator"],typeof e=="function"?e:null)}var GM=Symbol.for("react.client.reference");function Om(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===GM?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ei:return"Fragment";case Cm:return"Profiler";case xw:return"StrictMode";case Tm:return"Suspense";case wm:return"SuspenseList";case Am:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case us:return"Portal";case Wn:return e.displayName||"Context";case $w:return(e._context.displayName||"Context")+".Consumer";case Jy:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case eb:return t=e.displayName||null,t!==null?t:Om(e.type)||"Memo";case Ea:t=e._payload,e=e._init;try{return Om(e(t))}catch{}}return null}var cs=Array.isArray,ae=yw.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ae=HM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_l={pending:!1,data:null,method:null,action:null},Dm=[],Si=-1;function On(e){return{current:e}}function xt(e){0>Si||(e.current=Dm[Si],Dm[Si]=null,Si--)}function ze(e,t){Si++,Dm[Si]=e.current,e.current=t}var Tn=On(null),Us=On(null),Fa=On(null),Rd=On(null);function Nd(e,t){switch(ze(Fa,t),ze(Us,e),ze(Tn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?hx(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=hx(t),e=j2(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}xt(Tn),ze(Tn,e)}function qi(){xt(Tn),xt(Us),xt(Fa)}function Rm(e){e.memoizedState!==null&&ze(Rd,e);var t=Tn.current,r=j2(t,e.type);t!==r&&(ze(Us,e),ze(Tn,r))}function Ld(e){Us.current===e&&(xt(Tn),xt(Us)),Rd.current===e&&(xt(Rd),Js._currentValue=_l)}var fh,uS;function fl(e){if(fh===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);fh=t&&t[1]||"",uS=-1<r.stack.indexOf(`
  497. at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
  498. `+fh+e+uS}var ph=!1;function hh(e,t){if(!e||ph)return"";ph=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(p){var f=p}Reflect.construct(e,[],d)}else{try{d.call()}catch(p){f=p}e.call(d.prototype)}}else{try{throw Error()}catch(p){f=p}(d=e())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(p){if(p&&f&&typeof p.stack=="string")return[p.stack,f.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var l=n.DetermineComponentFrameRoot(),i=l[0],o=l[1];if(i&&o){var s=i.split(`
  499. `),u=o.split(`
  500. `);for(a=n=0;n<s.length&&!s[n].includes("DetermineComponentFrameRoot");)n++;for(;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;if(n===s.length||a===u.length)for(n=s.length-1,a=u.length-1;1<=n&&0<=a&&s[n]!==u[a];)a--;for(;1<=n&&0<=a;n--,a--)if(s[n]!==u[a]){if(n!==1||a!==1)do if(n--,a--,0>a||s[n]!==u[a]){var c=`
  501. `+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{ph=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?fl(r):""}function VM(e,t){switch(e.tag){case 26:case 27:case 5:return fl(e.type);case 16:return fl("Lazy");case 13:return e.child!==t&&t!==null?fl("Suspense Fallback"):fl("Suspense");case 19:return fl("SuspenseList");case 0:case 15:return hh(e.type,!1);case 11:return hh(e.type.render,!1);case 1:return hh(e.type,!0);case 31:return fl("Activity");default:return""}}function cS(e){try{var t="",r=null;do t+=VM(e,r),r=e,e=e.return;while(e);return t}catch(n){return`
  502. Error generating stack: `+n.message+`
  503. `+n.stack}}var Nm=Object.prototype.hasOwnProperty,tb=bt.unstable_scheduleCallback,gh=bt.unstable_cancelCallback,YM=bt.unstable_shouldYield,qM=bt.unstable_requestPaint,yr=bt.unstable_now,WM=bt.unstable_getCurrentPriorityLevel,_w=bt.unstable_ImmediatePriority,Cw=bt.unstable_UserBlockingPriority,Md=bt.unstable_NormalPriority,XM=bt.unstable_LowPriority,Tw=bt.unstable_IdlePriority,ZM=bt.log,QM=bt.unstable_setDisableYieldValue,vu=null,br=null;function Aa(e){if(typeof ZM=="function"&&QM(e),br&&typeof br.setStrictMode=="function")try{br.setStrictMode(vu,e)}catch{}}var vr=Math.clz32?Math.clz32:tF,JM=Math.log,eF=Math.LN2;function tF(e){return e>>>=0,e===0?32:31-(JM(e)/eF|0)|0}var ic=256,oc=262144,sc=4194304;function pl(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 jf(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=pl(n):(i&=o,i!==0?a=pl(i):r||(r=o&~e,r!==0&&(a=pl(r))))):(o=n&~l,o!==0?a=pl(o):i!==0?a=pl(i):r||(r=n&~e,r!==0&&(a=pl(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 Eu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function rF(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 ww(){var e=sc;return sc<<=1,!(sc&62914560)&&(sc=4194304),e}function mh(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Su(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function nF(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-vr(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&&Aw(e,n,0),l!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=l&~(i&~t))}function Aw(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-vr(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|r&261930}function Ow(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-vr(r),a=1<<n;a&t|e[n]&t&&(e[n]|=t),r&=~a}}function Dw(e,t){var r=t&-t;return r=r&42?1:rb(r),r&(e.suspendedLanes|t)?0:r}function rb(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 nb(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Rw(){var e=Ae.p;return e!==0?e:(e=window.event,e===void 0?32:eO(e.type))}function dS(e,t){var r=Ae.p;try{return Ae.p=e,t()}finally{Ae.p=r}}var Za=Math.random().toString(36).slice(2),At="__reactFiber$"+Za,ir="__reactProps$"+Za,$o="__reactContainer$"+Za,Lm="__reactEvents$"+Za,aF="__reactListeners$"+Za,lF="__reactHandles$"+Za,fS="__reactResources$"+Za,xu="__reactMarker$"+Za;function ab(e){delete e[At],delete e[ir],delete e[Lm],delete e[aF],delete e[lF]}function xi(e){var t=e[At];if(t)return t;for(var r=e.parentNode;r;){if(t=r[$o]||r[At]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=vx(e);e!==null;){if(r=e[At])return r;e=vx(e)}return t}e=r,r=e.parentNode}return null}function _o(e){if(e=e[At]||e[$o]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ds(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(W(33))}function Mi(e){var t=e[fS];return t||(t=e[fS]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function St(e){e[xu]=!0}var Nw=new Set,Lw={};function Vl(e,t){Wi(e,t),Wi(e+"Capture",t)}function Wi(e,t){for(Lw[e]=t,e=0;e<t.length;e++)Nw.add(t[e])}var iF=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]*$"),pS={},hS={};function oF(e){return Nm.call(hS,e)?!0:Nm.call(pS,e)?!1:iF.test(e)?hS[e]=!0:(pS[e]=!0,!1)}function Wc(e,t,r){if(oF(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 uc(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 Bn(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 Fr(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Mw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sF(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 Mm(e){if(!e._valueTracker){var t=Mw(e)?"checked":"value";e._valueTracker=sF(e,t,""+e[t])}}function Fw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Mw(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Fd(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 uF=/[\n"\\]/g;function Ir(e){return e.replace(uF,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Fm(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=""+Fr(t)):e.value!==""+Fr(t)&&(e.value=""+Fr(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?Bm(e,i,Fr(t)):r!=null?Bm(e,i,Fr(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=""+Fr(o):e.removeAttribute("name")}function Bw(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)){Mm(e);return}r=r!=null?""+Fr(r):"",t=t!=null?""+Fr(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),Mm(e)}function Bm(e,t,r){t==="number"&&Fd(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function Fi(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=""+Fr(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 Pw(e,t,r){if(t!=null&&(t=""+Fr(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+Fr(r):""}function Iw(e,t,r,n){if(t==null){if(n!=null){if(r!=null)throw Error(W(92));if(cs(n)){if(1<n.length)throw Error(W(93));n=n[0]}r=n}r==null&&(r=""),t=r}r=Fr(t),e.defaultValue=r,n=e.textContent,n===r&&n!==""&&n!==null&&(e.value=n),Mm(e)}function Xi(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var cF=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 gS(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||cF.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function kw(e,t,r){if(t!=null&&typeof t!="object")throw Error(W(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&&gS(e,a,n)}else for(var l in t)t.hasOwnProperty(l)&&gS(e,l,t[l])}function lb(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 dF=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"]]),fF=/^[\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 Xc(e){return fF.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Xn(){}var Pm=null;function ib(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $i=null,Bi=null;function mS(e){var t=_o(e);if(t&&(e=t.stateNode)){var r=e[ir]||null;e:switch(e=t.stateNode,t.type){case"input":if(Fm(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="'+Ir(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var a=n[ir]||null;if(!a)throw Error(W(90));Fm(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&&Fw(n)}break e;case"textarea":Pw(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&Fi(e,!!r.multiple,t,!1)}}}var yh=!1;function zw(e,t,r){if(yh)return e(t,r);yh=!0;try{var n=e(t);return n}finally{if(yh=!1,($i!==null||Bi!==null)&&(tp(),$i&&(t=$i,e=Bi,Bi=$i=null,mS(t),e)))for(t=0;t<e.length;t++)mS(e[t])}}function js(e,t){var r=e.stateNode;if(r===null)return null;var n=r[ir]||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(W(231,t,typeof r));return r}var ra=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Im=!1;if(ra)try{var Yo={};Object.defineProperty(Yo,"passive",{get:function(){Im=!0}}),window.addEventListener("test",Yo,Yo),window.removeEventListener("test",Yo,Yo)}catch{Im=!1}var Oa=null,ob=null,Zc=null;function Hw(){if(Zc)return Zc;var e,t=ob,r=t.length,n,a="value"in Oa?Oa.value:Oa.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 Zc=a.slice(e,1<n?1-n:void 0)}function Qc(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 cc(){return!0}function yS(){return!1}function ur(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)?cc:yS,this.isPropagationStopped=yS,this}return Ve(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=cc)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=cc)},persist:function(){},isPersistent:cc}),t}var Yl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kf=ur(Yl),$u=Ve({},Yl,{view:0,detail:0}),pF=ur($u),bh,vh,qo,Gf=Ve({},$u,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sb,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!==qo&&(qo&&e.type==="mousemove"?(bh=e.screenX-qo.screenX,vh=e.screenY-qo.screenY):vh=bh=0,qo=e),bh)},movementY:function(e){return"movementY"in e?e.movementY:vh}}),bS=ur(Gf),hF=Ve({},Gf,{dataTransfer:0}),gF=ur(hF),mF=Ve({},$u,{relatedTarget:0}),Eh=ur(mF),yF=Ve({},Yl,{animationName:0,elapsedTime:0,pseudoElement:0}),bF=ur(yF),vF=Ve({},Yl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),EF=ur(vF),SF=Ve({},Yl,{data:0}),vS=ur(SF),xF={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$F={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"},_F={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function CF(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=_F[e])?!!t[e]:!1}function sb(){return CF}var TF=Ve({},$u,{key:function(e){if(e.key){var t=xF[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Qc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$F[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sb,charCode:function(e){return e.type==="keypress"?Qc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),wF=ur(TF),AF=Ve({},Gf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ES=ur(AF),OF=Ve({},$u,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sb}),DF=ur(OF),RF=Ve({},Yl,{propertyName:0,elapsedTime:0,pseudoElement:0}),NF=ur(RF),LF=Ve({},Gf,{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}),MF=ur(LF),FF=Ve({},Yl,{newState:0,oldState:0}),BF=ur(FF),PF=[9,13,27,32],ub=ra&&"CompositionEvent"in window,Ss=null;ra&&"documentMode"in document&&(Ss=document.documentMode);var IF=ra&&"TextEvent"in window&&!Ss,Uw=ra&&(!ub||Ss&&8<Ss&&11>=Ss),SS=" ",xS=!1;function jw(e,t){switch(e){case"keyup":return PF.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _i=!1;function kF(e,t){switch(e){case"compositionend":return Kw(t);case"keypress":return t.which!==32?null:(xS=!0,SS);case"textInput":return e=t.data,e===SS&&xS?null:e;default:return null}}function zF(e,t){if(_i)return e==="compositionend"||!ub&&jw(e,t)?(e=Hw(),Zc=ob=Oa=null,_i=!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 Uw&&t.locale!=="ko"?null:t.data;default:return null}}var HF={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 $S(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!HF[e.type]:t==="textarea"}function Gw(e,t,r,n){$i?Bi?Bi.push(n):Bi=[n]:$i=n,t=Jd(t,"onChange"),0<t.length&&(r=new Kf("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var xs=null,Ks=null;function UF(e){z2(e,0)}function Vf(e){var t=ds(e);if(Fw(t))return e}function _S(e,t){if(e==="change")return t}var Vw=!1;if(ra){var Sh;if(ra){var xh="oninput"in document;if(!xh){var CS=document.createElement("div");CS.setAttribute("oninput","return;"),xh=typeof CS.oninput=="function"}Sh=xh}else Sh=!1;Vw=Sh&&(!document.documentMode||9<document.documentMode)}function TS(){xs&&(xs.detachEvent("onpropertychange",Yw),Ks=xs=null)}function Yw(e){if(e.propertyName==="value"&&Vf(Ks)){var t=[];Gw(t,Ks,e,ib(e)),zw(UF,t)}}function jF(e,t,r){e==="focusin"?(TS(),xs=t,Ks=r,xs.attachEvent("onpropertychange",Yw)):e==="focusout"&&TS()}function KF(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Vf(Ks)}function GF(e,t){if(e==="click")return Vf(t)}function VF(e,t){if(e==="input"||e==="change")return Vf(t)}function YF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xr=typeof Object.is=="function"?Object.is:YF;function Gs(e,t){if(xr(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(!Nm.call(t,a)||!xr(e[a],t[a]))return!1}return!0}function wS(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function AS(e,t){var r=wS(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=wS(r)}}function qw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ww(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Fd(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=Fd(e.document)}return t}function cb(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 qF=ra&&"documentMode"in document&&11>=document.documentMode,Ci=null,km=null,$s=null,zm=!1;function OS(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;zm||Ci==null||Ci!==Fd(n)||(n=Ci,"selectionStart"in n&&cb(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}),$s&&Gs($s,n)||($s=n,n=Jd(km,"onSelect"),0<n.length&&(t=new Kf("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Ci)))}function al(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ti={animationend:al("Animation","AnimationEnd"),animationiteration:al("Animation","AnimationIteration"),animationstart:al("Animation","AnimationStart"),transitionrun:al("Transition","TransitionRun"),transitionstart:al("Transition","TransitionStart"),transitioncancel:al("Transition","TransitionCancel"),transitionend:al("Transition","TransitionEnd")},$h={},Xw={};ra&&(Xw=document.createElement("div").style,"AnimationEvent"in window||(delete Ti.animationend.animation,delete Ti.animationiteration.animation,delete Ti.animationstart.animation),"TransitionEvent"in window||delete Ti.transitionend.transition);function ql(e){if($h[e])return $h[e];if(!Ti[e])return e;var t=Ti[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Xw)return $h[e]=t[r];return e}var Zw=ql("animationend"),Qw=ql("animationiteration"),Jw=ql("animationstart"),WF=ql("transitionrun"),XF=ql("transitionstart"),ZF=ql("transitioncancel"),eA=ql("transitionend"),tA=new Map,Hm="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(" ");Hm.push("scrollEnd");function an(e,t){tA.set(e,t),Vl(t,[e])}var Bd=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)},Lr=[],wi=0,db=0;function Yf(){for(var e=wi,t=db=wi=0;t<e;){var r=Lr[t];Lr[t++]=null;var n=Lr[t];Lr[t++]=null;var a=Lr[t];Lr[t++]=null;var l=Lr[t];if(Lr[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&&rA(r,a,l)}}function qf(e,t,r,n){Lr[wi++]=e,Lr[wi++]=t,Lr[wi++]=r,Lr[wi++]=n,db|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function fb(e,t,r,n){return qf(e,t,r,n),Pd(e)}function Wl(e,t){return qf(e,null,null,t),Pd(e)}function rA(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-vr(r),e=l.hiddenUpdates,n=e[a],n===null?e[a]=[t]:n.push(t),t.lane=r|536870912),l):null}function Pd(e){if(50<Ns)throw Ns=0,s0=null,Error(W(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ai={};function QF(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 gr(e,t,r,n){return new QF(e,t,r,n)}function pb(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qn(e,t){var r=e.alternate;return r===null?(r=gr(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 nA(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 Jc(e,t,r,n,a,l){var i=0;if(n=e,typeof e=="function")pb(e)&&(i=1);else if(typeof e=="string")i=nP(e,r,Tn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Am:return e=gr(31,r,t,a),e.elementType=Am,e.lanes=l,e;case Ei:return Cl(r.children,a,l,t);case xw:i=8,a|=24;break;case Cm:return e=gr(12,r,t,a|2),e.elementType=Cm,e.lanes=l,e;case Tm:return e=gr(13,r,t,a),e.elementType=Tm,e.lanes=l,e;case wm:return e=gr(19,r,t,a),e.elementType=wm,e.lanes=l,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wn:i=10;break e;case $w:i=9;break e;case Jy:i=11;break e;case eb:i=14;break e;case Ea:i=16,n=null;break e}i=29,r=Error(W(130,e===null?"null":typeof e,"")),n=null}return t=gr(i,r,t,a),t.elementType=e,t.type=n,t.lanes=l,t}function Cl(e,t,r,n){return e=gr(7,e,n,t),e.lanes=r,e}function _h(e,t,r){return e=gr(6,e,null,t),e.lanes=r,e}function aA(e){var t=gr(18,null,null,0);return t.stateNode=e,t}function Ch(e,t,r){return t=gr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var DS=new WeakMap;function kr(e,t){if(typeof e=="object"&&e!==null){var r=DS.get(e);return r!==void 0?r:(t={value:e,source:t,stack:cS(t)},DS.set(e,t),t)}return{value:e,source:t,stack:cS(t)}}var Oi=[],Di=0,Id=null,Vs=0,Br=[],Pr=0,Ka=null,vn=1,En="";function Kn(e,t){Oi[Di++]=Vs,Oi[Di++]=Id,Id=e,Vs=t}function lA(e,t,r){Br[Pr++]=vn,Br[Pr++]=En,Br[Pr++]=Ka,Ka=e;var n=vn;e=En;var a=32-vr(n)-1;n&=~(1<<a),r+=1;var l=32-vr(t)+a;if(30<l){var i=a-a%5;l=(n&(1<<i)-1).toString(32),n>>=i,a-=i,vn=1<<32-vr(t)+a|r<<a|n,En=l+e}else vn=1<<l|r<<a|n,En=e}function hb(e){e.return!==null&&(Kn(e,1),lA(e,1,0))}function gb(e){for(;e===Id;)Id=Oi[--Di],Oi[Di]=null,Vs=Oi[--Di],Oi[Di]=null;for(;e===Ka;)Ka=Br[--Pr],Br[Pr]=null,En=Br[--Pr],Br[Pr]=null,vn=Br[--Pr],Br[Pr]=null}function iA(e,t){Br[Pr++]=vn,Br[Pr++]=En,Br[Pr++]=Ka,vn=t.id,En=t.overflow,Ka=e}var Ot=null,je=null,Ee=!1,Ba=null,zr=!1,Um=Error(W(519));function Ga(e){var t=Error(W(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ys(kr(t,e)),Um}function RS(e){var t=e.stateNode,r=e.type,n=e.memoizedProps;switch(t[At]=e,t[ir]=n,r){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(r=0;r<Zs.length;r++)he(Zs[r],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),Bw(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),Iw(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||U2(t.textContent,r)?(n.popover!=null&&(he("beforetoggle",t),he("toggle",t)),n.onScroll!=null&&he("scroll",t),n.onScrollEnd!=null&&he("scrollend",t),n.onClick!=null&&(t.onclick=Xn),t=!0):t=!1,t||Ga(e,!0)}function NS(e){for(Ot=e.return;Ot;)switch(Ot.tag){case 5:case 31:case 13:zr=!1;return;case 27:case 3:zr=!0;return;default:Ot=Ot.return}}function ii(e){if(e!==Ot)return!1;if(!Ee)return NS(e),Ee=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||p0(e.type,e.memoizedProps)),r=!r),r&&je&&Ga(e),NS(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(W(317));je=bx(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(W(317));je=bx(e)}else t===27?(t=je,Qa(e.type)?(e=y0,y0=null,je=e):je=t):je=Ot?jr(e.stateNode.nextSibling):null;return!0}function Ll(){je=Ot=null,Ee=!1}function Th(){var e=Ba;return e!==null&&(tr===null?tr=e:tr.push.apply(tr,e),Ba=null),e}function Ys(e){Ba===null?Ba=[e]:Ba.push(e)}var jm=On(null),Xl=null,Zn=null;function $a(e,t,r){ze(jm,t._currentValue),t._currentValue=r}function Jn(e){e._currentValue=jm.current,xt(jm)}function Km(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 Gm(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),Km(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(W(341));i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),Km(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 Co(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(W(387));if(i=i.memoizedProps,i!==null){var o=a.type;xr(a.pendingProps.value,i.value)||(e!==null?e.push(o):e=[o])}}else if(a===Rd.current){if(i=a.alternate,i===null)throw Error(W(387));i.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Js):e=[Js])}a=a.return}e!==null&&Gm(t,e,r,n),t.flags|=262144}function kd(e){for(e=e.firstContext;e!==null;){if(!xr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ml(e){Xl=e,Zn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Rt(e){return oA(Xl,e)}function dc(e,t){return Xl===null&&Ml(e),oA(e,t)}function oA(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},Zn===null){if(e===null)throw Error(W(308));Zn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Zn=Zn.next=t;return r}var JF=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()})}},eB=bt.unstable_scheduleCallback,tB=bt.unstable_NormalPriority,ut={$$typeof:Wn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mb(){return{controller:new JF,data:new Map,refCount:0}}function _u(e){e.refCount--,e.refCount===0&&eB(tB,function(){e.controller.abort()})}var _s=null,Vm=0,Zi=0,Pi=null;function rB(e,t){if(_s===null){var r=_s=[];Vm=0,Zi=Hb(),Pi={status:"pending",value:void 0,then:function(n){r.push(n)}}}return Vm++,t.then(LS,LS),t}function LS(){if(--Vm===0&&_s!==null){Pi!==null&&(Pi.status="fulfilled");var e=_s;_s=null,Zi=0,Pi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function nB(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 MS=ae.S;ae.S=function(e,t){S2=yr(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&rB(e,t),MS!==null&&MS(e,t)};var Tl=On(null);function yb(){var e=Tl.current;return e!==null?e:Ie.pooledCache}function ed(e,t){t===null?ze(Tl,Tl.current):ze(Tl,t.pool)}function sA(){var e=yb();return e===null?null:{parent:ut._currentValue,pool:e}}var To=Error(W(460)),bb=Error(W(474)),Wf=Error(W(542)),zd={then:function(){}};function FS(e){return e=e.status,e==="fulfilled"||e==="rejected"}function uA(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(Xn,Xn),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,PS(e),e;default:if(typeof t.status=="string")t.then(Xn,Xn);else{if(e=Ie,e!==null&&100<e.shellSuspendCounter)throw Error(W(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,PS(e),e}throw wl=t,To}}function hl(e){try{var t=e._init;return t(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(wl=r,To):r}}var wl=null;function BS(){if(wl===null)throw Error(W(459));var e=wl;return wl=null,e}function PS(e){if(e===To||e===Wf)throw Error(W(483))}var Ii=null,qs=0;function fc(e){var t=qs;return qs+=1,Ii===null&&(Ii=[]),uA(Ii,e,t)}function Wo(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function pc(e,t){throw t.$$typeof===jM?Error(W(525)):(e=Object.prototype.toString.call(t),Error(W(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function cA(e){function t(h,v){if(e){var E=h.deletions;E===null?(h.deletions=[v],h.flags|=16):E.push(v)}}function r(h,v){if(!e)return null;for(;v!==null;)t(h,v),v=v.sibling;return null}function n(h){for(var v=new Map;h!==null;)h.key!==null?v.set(h.key,h):v.set(h.index,h),h=h.sibling;return v}function a(h,v){return h=Qn(h,v),h.index=0,h.sibling=null,h}function l(h,v,E){return h.index=E,e?(E=h.alternate,E!==null?(E=E.index,E<v?(h.flags|=67108866,v):E):(h.flags|=67108866,v)):(h.flags|=1048576,v)}function i(h){return e&&h.alternate===null&&(h.flags|=67108866),h}function o(h,v,E,x){return v===null||v.tag!==6?(v=_h(E,h.mode,x),v.return=h,v):(v=a(v,E),v.return=h,v)}function s(h,v,E,x){var _=E.type;return _===Ei?c(h,v,E.props.children,x,E.key):v!==null&&(v.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ea&&hl(_)===v.type)?(v=a(v,E.props),Wo(v,E),v.return=h,v):(v=Jc(E.type,E.key,E.props,null,h.mode,x),Wo(v,E),v.return=h,v)}function u(h,v,E,x){return v===null||v.tag!==4||v.stateNode.containerInfo!==E.containerInfo||v.stateNode.implementation!==E.implementation?(v=Ch(E,h.mode,x),v.return=h,v):(v=a(v,E.children||[]),v.return=h,v)}function c(h,v,E,x,_){return v===null||v.tag!==7?(v=Cl(E,h.mode,x,_),v.return=h,v):(v=a(v,E),v.return=h,v)}function d(h,v,E){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=_h(""+v,h.mode,E),v.return=h,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case lc:return E=Jc(v.type,v.key,v.props,null,h.mode,E),Wo(E,v),E.return=h,E;case us:return v=Ch(v,h.mode,E),v.return=h,v;case Ea:return v=hl(v),d(h,v,E)}if(cs(v)||Vo(v))return v=Cl(v,h.mode,E,null),v.return=h,v;if(typeof v.then=="function")return d(h,fc(v),E);if(v.$$typeof===Wn)return d(h,dc(h,v),E);pc(h,v)}return null}function f(h,v,E,x){var _=v!==null?v.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return _!==null?null:o(h,v,""+E,x);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case lc:return E.key===_?s(h,v,E,x):null;case us:return E.key===_?u(h,v,E,x):null;case Ea:return E=hl(E),f(h,v,E,x)}if(cs(E)||Vo(E))return _!==null?null:c(h,v,E,x,null);if(typeof E.then=="function")return f(h,v,fc(E),x);if(E.$$typeof===Wn)return f(h,v,dc(h,E),x);pc(h,E)}return null}function p(h,v,E,x,_){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return h=h.get(E)||null,o(v,h,""+x,_);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case lc:return h=h.get(x.key===null?E:x.key)||null,s(v,h,x,_);case us:return h=h.get(x.key===null?E:x.key)||null,u(v,h,x,_);case Ea:return x=hl(x),p(h,v,E,x,_)}if(cs(x)||Vo(x))return h=h.get(E)||null,c(v,h,x,_,null);if(typeof x.then=="function")return p(h,v,E,fc(x),_);if(x.$$typeof===Wn)return p(h,v,E,dc(v,x),_);pc(v,x)}return null}function y(h,v,E,x){for(var _=null,$=null,C=v,w=v=0,A=null;C!==null&&w<E.length;w++){C.index>w?(A=C,C=null):A=C.sibling;var O=f(h,C,E[w],x);if(O===null){C===null&&(C=A);break}e&&C&&O.alternate===null&&t(h,C),v=l(O,v,w),$===null?_=O:$.sibling=O,$=O,C=A}if(w===E.length)return r(h,C),Ee&&Kn(h,w),_;if(C===null){for(;w<E.length;w++)C=d(h,E[w],x),C!==null&&(v=l(C,v,w),$===null?_=C:$.sibling=C,$=C);return Ee&&Kn(h,w),_}for(C=n(C);w<E.length;w++)A=p(C,h,w,E[w],x),A!==null&&(e&&A.alternate!==null&&C.delete(A.key===null?w:A.key),v=l(A,v,w),$===null?_=A:$.sibling=A,$=A);return e&&C.forEach(function(T){return t(h,T)}),Ee&&Kn(h,w),_}function b(h,v,E,x){if(E==null)throw Error(W(151));for(var _=null,$=null,C=v,w=v=0,A=null,O=E.next();C!==null&&!O.done;w++,O=E.next()){C.index>w?(A=C,C=null):A=C.sibling;var T=f(h,C,O.value,x);if(T===null){C===null&&(C=A);break}e&&C&&T.alternate===null&&t(h,C),v=l(T,v,w),$===null?_=T:$.sibling=T,$=T,C=A}if(O.done)return r(h,C),Ee&&Kn(h,w),_;if(C===null){for(;!O.done;w++,O=E.next())O=d(h,O.value,x),O!==null&&(v=l(O,v,w),$===null?_=O:$.sibling=O,$=O);return Ee&&Kn(h,w),_}for(C=n(C);!O.done;w++,O=E.next())O=p(C,h,w,O.value,x),O!==null&&(e&&O.alternate!==null&&C.delete(O.key===null?w:O.key),v=l(O,v,w),$===null?_=O:$.sibling=O,$=O);return e&&C.forEach(function(M){return t(h,M)}),Ee&&Kn(h,w),_}function S(h,v,E,x){if(typeof E=="object"&&E!==null&&E.type===Ei&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case lc:e:{for(var _=E.key;v!==null;){if(v.key===_){if(_=E.type,_===Ei){if(v.tag===7){r(h,v.sibling),x=a(v,E.props.children),x.return=h,h=x;break e}}else if(v.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ea&&hl(_)===v.type){r(h,v.sibling),x=a(v,E.props),Wo(x,E),x.return=h,h=x;break e}r(h,v);break}else t(h,v);v=v.sibling}E.type===Ei?(x=Cl(E.props.children,h.mode,x,E.key),x.return=h,h=x):(x=Jc(E.type,E.key,E.props,null,h.mode,x),Wo(x,E),x.return=h,h=x)}return i(h);case us:e:{for(_=E.key;v!==null;){if(v.key===_)if(v.tag===4&&v.stateNode.containerInfo===E.containerInfo&&v.stateNode.implementation===E.implementation){r(h,v.sibling),x=a(v,E.children||[]),x.return=h,h=x;break e}else{r(h,v);break}else t(h,v);v=v.sibling}x=Ch(E,h.mode,x),x.return=h,h=x}return i(h);case Ea:return E=hl(E),S(h,v,E,x)}if(cs(E))return y(h,v,E,x);if(Vo(E)){if(_=Vo(E),typeof _!="function")throw Error(W(150));return E=_.call(E),b(h,v,E,x)}if(typeof E.then=="function")return S(h,v,fc(E),x);if(E.$$typeof===Wn)return S(h,v,dc(h,E),x);pc(h,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,v!==null&&v.tag===6?(r(h,v.sibling),x=a(v,E),x.return=h,h=x):(r(h,v),x=_h(E,h.mode,x),x.return=h,h=x),i(h)):r(h,v)}return function(h,v,E,x){try{qs=0;var _=S(h,v,E,x);return Ii=null,_}catch(C){if(C===To||C===Wf)throw C;var $=gr(29,C,null,h.mode);return $.lanes=x,$.return=h,$}finally{}}}var Fl=cA(!0),dA=cA(!1),Sa=!1;function vb(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ym(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 Pa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ia(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,we&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=Pd(e),rA(e,null,r),t}return qf(e,n,t,r),Pd(e)}function Cs(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,Ow(e,r)}}function wh(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 qm=!1;function Ts(){if(qm){var e=Pi;if(e!==null)throw e}}function ws(e,t,r,n){qm=!1;var a=e.updateQueue;Sa=!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?(me&f)===f:(n&f)===f){f!==0&&f===Zi&&(qm=!0),c!==null&&(c=c.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var y=e,b=o;f=t;var S=r;switch(b.tag){case 1:if(y=b.payload,typeof y=="function"){d=y.call(S,d,f);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=b.payload,f=typeof y=="function"?y.call(S,d,f):y,f==null)break e;d=Ve({},d,f);break e;case 2:Sa=!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),Ya|=i,e.lanes=i,e.memoizedState=d}}function fA(e,t){if(typeof e!="function")throw Error(W(191,e));e.call(t)}function pA(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)fA(r[e],t)}var Qi=On(null),Hd=On(0);function IS(e,t){e=ia,ze(Hd,e),ze(Qi,t),ia=e|t.baseLanes}function Wm(){ze(Hd,ia),ze(Qi,Qi.current)}function Eb(){ia=Hd.current,xt(Qi),xt(Hd)}var $r=On(null),Ur=null;function _a(e){var t=e.alternate;ze(at,at.current&1),ze($r,e),Ur===null&&(t===null||Qi.current!==null||t.memoizedState!==null)&&(Ur=e)}function Xm(e){ze(at,at.current),ze($r,e),Ur===null&&(Ur=e)}function hA(e){e.tag===22?(ze(at,at.current),ze($r,e),Ur===null&&(Ur=e)):Ca()}function Ca(){ze(at,at.current),ze($r,$r.current)}function pr(e){xt($r),Ur===e&&(Ur=null),xt(at)}var at=On(0);function Ud(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||g0(r)||m0(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 na=0,se=null,Pe=null,ot=null,jd=!1,ki=!1,Bl=!1,Kd=0,Ws=0,zi=null,aB=0;function Je(){throw Error(W(321))}function Sb(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!xr(e[r],t[r]))return!1;return!0}function xb(e,t,r,n,a,l){return na=l,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ae.H=e===null||e.memoizedState===null?GA:Lb,Bl=!1,l=r(n,a),Bl=!1,ki&&(l=mA(t,r,n,a)),gA(e),l}function gA(e){ae.H=Xs;var t=Pe!==null&&Pe.next!==null;if(na=0,ot=Pe=se=null,jd=!1,Ws=0,zi=null,t)throw Error(W(300));e===null||dt||(e=e.dependencies,e!==null&&kd(e)&&(dt=!0))}function mA(e,t,r,n){se=e;var a=0;do{if(ki&&(zi=null),Ws=0,ki=!1,25<=a)throw Error(W(301));if(a+=1,ot=Pe=null,e.updateQueue!=null){var l=e.updateQueue;l.lastEffect=null,l.events=null,l.stores=null,l.memoCache!=null&&(l.memoCache.index=0)}ae.H=VA,l=t(r,n)}while(ki);return l}function lB(){var e=ae.H,t=e.useState()[0];return t=typeof t.then=="function"?Cu(t):t,e=e.useState()[0],(Pe!==null?Pe.memoizedState:null)!==e&&(se.flags|=1024),t}function $b(){var e=Kd!==0;return Kd=0,e}function _b(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function Cb(e){if(jd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}jd=!1}na=0,ot=Pe=se=null,ki=!1,Ws=Kd=0,zi=null}function Vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ot===null?se.memoizedState=ot=e:ot=ot.next=e,ot}function lt(){if(Pe===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=Pe.next;var t=ot===null?se.memoizedState:ot.next;if(t!==null)ot=t,Pe=e;else{if(e===null)throw se.alternate===null?Error(W(467)):Error(W(310));Pe=e,e={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},ot===null?se.memoizedState=ot=e:ot=ot.next=e}return ot}function Xf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Cu(e){var t=Ws;return Ws+=1,zi===null&&(zi=[]),e=uA(zi,e,t),t=se,(ot===null?t.memoizedState:ot.next)===null&&(t=t.alternate,ae.H=t===null||t.memoizedState===null?GA:Lb),e}function Zf(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Cu(e);if(e.$$typeof===Wn)return Rt(e)}throw Error(W(438,String(e)))}function Tb(e){var t=null,r=se.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var n=se.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=Xf(),se.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]=KM;return t.index++,r}function aa(e,t){return typeof t=="function"?t(e):t}function td(e){var t=lt();return wb(t,Pe,e)}function wb(e,t,r){var n=e.queue;if(n===null)throw Error(W(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?(me&d)===d:(na&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===Zi&&(c=!0);else if((na&f)===f){u=u.next,f===Zi&&(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,se.lanes|=f,Ya|=f;d=u.action,Bl&&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,se.lanes|=d,Ya|=d;u=u.next}while(u!==null&&u!==t);if(s===null?i=l:s.next=o,!xr(l,e.memoizedState)&&(dt=!0,c&&(r=Pi,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 Ah(e){var t=lt(),r=t.queue;if(r===null)throw Error(W(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);xr(l,t.memoizedState)||(dt=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),r.lastRenderedState=l}return[l,n]}function yA(e,t,r){var n=se,a=lt(),l=Ee;if(l){if(r===void 0)throw Error(W(407));r=r()}else r=t();var i=!xr((Pe||a).memoizedState,r);if(i&&(a.memoizedState=r,dt=!0),a=a.queue,Ab(EA.bind(null,n,a,e),[e]),a.getSnapshot!==t||i||ot!==null&&ot.memoizedState.tag&1){if(n.flags|=2048,Ji(9,{destroy:void 0},vA.bind(null,n,a,r,t),null),Ie===null)throw Error(W(349));l||na&127||bA(n,t,r)}return r}function bA(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=se.updateQueue,t===null?(t=Xf(),se.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function vA(e,t,r,n){t.value=r,t.getSnapshot=n,SA(t)&&xA(e)}function EA(e,t,r){return r(function(){SA(t)&&xA(e)})}function SA(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!xr(e,r)}catch{return!0}}function xA(e){var t=Wl(e,2);t!==null&&lr(t,e,2)}function Zm(e){var t=Vt();if(typeof e=="function"){var r=e;if(e=r(),Bl){Aa(!0);try{r()}finally{Aa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:e},t}function $A(e,t,r,n){return e.baseState=r,wb(e,Pe,typeof n=="function"?n:aa)}function iB(e,t,r,n,a){if(Jf(e))throw Error(W(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)}};ae.T!==null?r(!0):l.isTransition=!1,n(l),r=t.pending,r===null?(l.next=t.pending=l,_A(t,l)):(l.next=r.next,t.pending=r.next=l)}}function _A(e,t){var r=t.action,n=t.payload,a=e.state;if(t.isTransition){var l=ae.T,i={};ae.T=i;try{var o=r(a,n),s=ae.S;s!==null&&s(i,o),kS(e,t,o)}catch(u){Qm(e,t,u)}finally{l!==null&&i.types!==null&&(l.types=i.types),ae.T=l}}else try{l=r(a,n),kS(e,t,l)}catch(u){Qm(e,t,u)}}function kS(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(n){zS(e,t,n)},function(n){return Qm(e,t,n)}):zS(e,t,r)}function zS(e,t,r){t.status="fulfilled",t.value=r,CA(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,_A(e,r)))}function Qm(e,t,r){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=r,CA(t),t=t.next;while(t!==n)}e.action=null}function CA(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function TA(e,t){return t}function HS(e,t){if(Ee){var r=Ie.formState;if(r!==null){e:{var n=se;if(Ee){if(je){t:{for(var a=je,l=zr;a.nodeType!==8;){if(!l){a=null;break t}if(a=jr(a.nextSibling),a===null){a=null;break t}}l=a.data,a=l==="F!"||l==="F"?a:null}if(a){je=jr(a.nextSibling),n=a.data==="F!";break e}}Ga(n)}n=!1}n&&(t=r[0])}}return r=Vt(),r.memoizedState=r.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:TA,lastRenderedState:t},r.queue=n,r=UA.bind(null,se,n),n.dispatch=r,n=Zm(!1),l=Nb.bind(null,se,!1,n.queue),n=Vt(),a={state:t,dispatch:null,action:e,pending:null},n.queue=a,r=iB.bind(null,se,a,l,r),a.dispatch=r,n.memoizedState=e,[t,r,!1]}function US(e){var t=lt();return wA(t,Pe,e)}function wA(e,t,r){if(t=wb(e,t,TA)[0],e=td(aa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Cu(t)}catch(i){throw i===To?Wf:i}else n=t;t=lt();var a=t.queue,l=a.dispatch;return r!==t.memoizedState&&(se.flags|=2048,Ji(9,{destroy:void 0},oB.bind(null,a,r),null)),[n,l,e]}function oB(e,t){e.action=t}function jS(e){var t=lt(),r=Pe;if(r!==null)return wA(t,r,e);lt(),t=t.memoizedState,r=lt();var n=r.queue.dispatch;return r.memoizedState=e,[t,n,!1]}function Ji(e,t,r,n){return e={tag:e,create:r,deps:n,inst:t,next:null},t=se.updateQueue,t===null&&(t=Xf(),se.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 AA(){return lt().memoizedState}function rd(e,t,r,n){var a=Vt();se.flags|=e,a.memoizedState=Ji(1|t,{destroy:void 0},r,n===void 0?null:n)}function Qf(e,t,r,n){var a=lt();n=n===void 0?null:n;var l=a.memoizedState.inst;Pe!==null&&n!==null&&Sb(n,Pe.memoizedState.deps)?a.memoizedState=Ji(t,l,r,n):(se.flags|=e,a.memoizedState=Ji(1|t,l,r,n))}function KS(e,t){rd(8390656,8,e,t)}function Ab(e,t){Qf(2048,8,e,t)}function sB(e){se.flags|=4;var t=se.updateQueue;if(t===null)t=Xf(),se.updateQueue=t,t.events=[e];else{var r=t.events;r===null?t.events=[e]:r.push(e)}}function OA(e){var t=lt().memoizedState;return sB({ref:t,nextImpl:e}),function(){if(we&2)throw Error(W(440));return t.impl.apply(void 0,arguments)}}function DA(e,t){return Qf(4,2,e,t)}function RA(e,t){return Qf(4,4,e,t)}function NA(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 LA(e,t,r){r=r!=null?r.concat([e]):null,Qf(4,4,NA.bind(null,t,e),r)}function Ob(){}function MA(e,t){var r=lt();t=t===void 0?null:t;var n=r.memoizedState;return t!==null&&Sb(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function FA(e,t){var r=lt();t=t===void 0?null:t;var n=r.memoizedState;if(t!==null&&Sb(t,n[1]))return n[0];if(n=e(),Bl){Aa(!0);try{e()}finally{Aa(!1)}}return r.memoizedState=[n,t],n}function Db(e,t,r){return r===void 0||na&1073741824&&!(me&261930)?e.memoizedState=t:(e.memoizedState=r,e=$2(),se.lanes|=e,Ya|=e,r)}function BA(e,t,r,n){return xr(r,t)?r:Qi.current!==null?(e=Db(e,r,n),xr(e,t)||(dt=!0),e):!(na&42)||na&1073741824&&!(me&261930)?(dt=!0,e.memoizedState=r):(e=$2(),se.lanes|=e,Ya|=e,t)}function PA(e,t,r,n,a){var l=Ae.p;Ae.p=l!==0&&8>l?l:8;var i=ae.T,o={};ae.T=o,Nb(e,!1,t,r);try{var s=a(),u=ae.S;if(u!==null&&u(o,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=nB(s,n);As(e,t,c,Er(e))}else As(e,t,n,Er(e))}catch(d){As(e,t,{then:function(){},status:"rejected",reason:d},Er())}finally{Ae.p=l,i!==null&&o.types!==null&&(i.types=o.types),ae.T=i}}function uB(){}function Jm(e,t,r,n){if(e.tag!==5)throw Error(W(476));var a=IA(e).queue;PA(e,a,t,_l,r===null?uB:function(){return kA(e),r(n)})}function IA(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:_l,baseState:_l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:_l},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kA(e){var t=IA(e);t.next===null&&(t=e.alternate.memoizedState),As(e,t.next.queue,{},Er())}function Rb(){return Rt(Js)}function zA(){return lt().memoizedState}function HA(){return lt().memoizedState}function cB(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=Er();e=Pa(r);var n=Ia(t,e,r);n!==null&&(lr(n,t,r),Cs(n,t,r)),t={cache:mb()},e.payload=t;return}t=t.return}}function dB(e,t,r){var n=Er();r={lane:n,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Jf(e)?jA(t,r):(r=fb(e,t,r,n),r!==null&&(lr(r,e,n),KA(r,t,n)))}function UA(e,t,r){var n=Er();As(e,t,r,n)}function As(e,t,r,n){var a={lane:n,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Jf(e))jA(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,xr(o,i))return qf(e,t,a,0),Ie===null&&Yf(),!1}catch{}finally{}if(r=fb(e,t,a,n),r!==null)return lr(r,e,n),KA(r,t,n),!0}return!1}function Nb(e,t,r,n){if(n={lane:2,revertLane:Hb(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Jf(e)){if(t)throw Error(W(479))}else t=fb(e,r,n,2),t!==null&&lr(t,e,2)}function Jf(e){var t=e.alternate;return e===se||t!==null&&t===se}function jA(e,t){ki=jd=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function KA(e,t,r){if(r&4194048){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Ow(e,r)}}var Xs={readContext:Rt,use:Zf,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useLayoutEffect:Je,useInsertionEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useSyncExternalStore:Je,useId:Je,useHostTransitionStatus:Je,useFormState:Je,useActionState:Je,useOptimistic:Je,useMemoCache:Je,useCacheRefresh:Je};Xs.useEffectEvent=Je;var GA={readContext:Rt,use:Zf,useCallback:function(e,t){return Vt().memoizedState=[e,t===void 0?null:t],e},useContext:Rt,useEffect:KS,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,rd(4194308,4,NA.bind(null,t,e),r)},useLayoutEffect:function(e,t){return rd(4194308,4,e,t)},useInsertionEffect:function(e,t){rd(4,2,e,t)},useMemo:function(e,t){var r=Vt();t=t===void 0?null:t;var n=e();if(Bl){Aa(!0);try{e()}finally{Aa(!1)}}return r.memoizedState=[n,t],n},useReducer:function(e,t,r){var n=Vt();if(r!==void 0){var a=r(t);if(Bl){Aa(!0);try{r(t)}finally{Aa(!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=dB.bind(null,se,e),[n.memoizedState,e]},useRef:function(e){var t=Vt();return e={current:e},t.memoizedState=e},useState:function(e){e=Zm(e);var t=e.queue,r=UA.bind(null,se,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:Ob,useDeferredValue:function(e,t){var r=Vt();return Db(r,e,t)},useTransition:function(){var e=Zm(!1);return e=PA.bind(null,se,e.queue,!0,!1),Vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var n=se,a=Vt();if(Ee){if(r===void 0)throw Error(W(407));r=r()}else{if(r=t(),Ie===null)throw Error(W(349));me&127||bA(n,t,r)}a.memoizedState=r;var l={value:r,getSnapshot:t};return a.queue=l,KS(EA.bind(null,n,l,e),[e]),n.flags|=2048,Ji(9,{destroy:void 0},vA.bind(null,n,l,r,t),null),r},useId:function(){var e=Vt(),t=Ie.identifierPrefix;if(Ee){var r=En,n=vn;r=(n&~(1<<32-vr(n)-1)).toString(32)+r,t="_"+t+"R_"+r,r=Kd++,0<r&&(t+="H"+r.toString(32)),t+="_"}else r=aB++,t="_"+t+"r_"+r.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Rb,useFormState:HS,useActionState:HS,useOptimistic:function(e){var t=Vt();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=Nb.bind(null,se,!0,r),r.dispatch=t,[e,t]},useMemoCache:Tb,useCacheRefresh:function(){return Vt().memoizedState=cB.bind(null,se)},useEffectEvent:function(e){var t=Vt(),r={impl:e};return t.memoizedState=r,function(){if(we&2)throw Error(W(440));return r.impl.apply(void 0,arguments)}}},Lb={readContext:Rt,use:Zf,useCallback:MA,useContext:Rt,useEffect:Ab,useImperativeHandle:LA,useInsertionEffect:DA,useLayoutEffect:RA,useMemo:FA,useReducer:td,useRef:AA,useState:function(){return td(aa)},useDebugValue:Ob,useDeferredValue:function(e,t){var r=lt();return BA(r,Pe.memoizedState,e,t)},useTransition:function(){var e=td(aa)[0],t=lt().memoizedState;return[typeof e=="boolean"?e:Cu(e),t]},useSyncExternalStore:yA,useId:zA,useHostTransitionStatus:Rb,useFormState:US,useActionState:US,useOptimistic:function(e,t){var r=lt();return $A(r,Pe,e,t)},useMemoCache:Tb,useCacheRefresh:HA};Lb.useEffectEvent=OA;var VA={readContext:Rt,use:Zf,useCallback:MA,useContext:Rt,useEffect:Ab,useImperativeHandle:LA,useInsertionEffect:DA,useLayoutEffect:RA,useMemo:FA,useReducer:Ah,useRef:AA,useState:function(){return Ah(aa)},useDebugValue:Ob,useDeferredValue:function(e,t){var r=lt();return Pe===null?Db(r,e,t):BA(r,Pe.memoizedState,e,t)},useTransition:function(){var e=Ah(aa)[0],t=lt().memoizedState;return[typeof e=="boolean"?e:Cu(e),t]},useSyncExternalStore:yA,useId:zA,useHostTransitionStatus:Rb,useFormState:jS,useActionState:jS,useOptimistic:function(e,t){var r=lt();return Pe!==null?$A(r,Pe,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:Tb,useCacheRefresh:HA};VA.useEffectEvent=OA;function Oh(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Ve({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var e0={enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Er(),a=Pa(n);a.payload=t,r!=null&&(a.callback=r),t=Ia(e,a,n),t!==null&&(lr(t,e,n),Cs(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Er(),a=Pa(n);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=Ia(e,a,n),t!==null&&(lr(t,e,n),Cs(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Er(),n=Pa(r);n.tag=2,t!=null&&(n.callback=t),t=Ia(e,n,r),t!==null&&(lr(t,e,r),Cs(t,e,r))}};function GS(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?!Gs(r,n)||!Gs(a,l):!0}function VS(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&&e0.enqueueReplaceState(t,t.state,null)}function Pl(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=Ve({},r));for(var a in e)r[a]===void 0&&(r[a]=e[a])}return r}function YA(e){Bd(e)}function qA(e){console.error(e)}function WA(e){Bd(e)}function Gd(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function YS(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 t0(e,t,r){return r=Pa(r),r.tag=3,r.payload={element:null},r.callback=function(){Gd(e,t)},r}function XA(e){return e=Pa(e),e.tag=3,e}function ZA(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(){YS(t,r,n)}}var i=r.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){YS(t,r,n),typeof a!="function"&&(ka===null?ka=new Set([this]):ka.add(this));var o=n.stack;this.componentDidCatch(n.value,{componentStack:o!==null?o:""})})}function fB(e,t,r,n,a){if(r.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=r.alternate,t!==null&&Co(t,r,a,!0),r=$r.current,r!==null){switch(r.tag){case 31:case 13:return Ur===null?Xd():r.alternate===null&&tt===0&&(tt=3),r.flags&=-257,r.flags|=65536,r.lanes=a,n===zd?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([n]):t.add(n),zh(e,n,a)),!1;case 22:return r.flags|=65536,n===zd?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)),zh(e,n,a)),!1}throw Error(W(435,r.tag))}return zh(e,n,a),Xd(),!1}if(Ee)return t=$r.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,n!==Um&&(e=Error(W(422),{cause:n}),Ys(kr(e,r)))):(n!==Um&&(t=Error(W(423),{cause:n}),Ys(kr(t,r))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,n=kr(n,r),a=t0(e.stateNode,n,a),wh(e,a),tt!==4&&(tt=2)),!1;var l=Error(W(520),{cause:n});if(l=kr(l,r),Rs===null?Rs=[l]:Rs.push(l),tt!==4&&(tt=2),t===null)return!0;n=kr(n,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=a&-a,r.lanes|=e,e=t0(r.stateNode,n,e),wh(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"&&(ka===null||!ka.has(l))))return r.flags|=65536,a&=-a,r.lanes|=a,a=XA(a),ZA(a,e,r,n),wh(r,a),!1}r=r.return}while(r!==null);return!1}var Mb=Error(W(461)),dt=!1;function Ct(e,t,r,n){t.child=e===null?dA(t,null,r,n):Fl(t,e.child,r,n)}function qS(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 Ml(t),n=xb(e,t,r,i,l,a),o=$b(),e!==null&&!dt?(_b(e,t,a),la(e,t,a)):(Ee&&o&&hb(t),t.flags|=1,Ct(e,t,n,a),t.child)}function WS(e,t,r,n,a){if(e===null){var l=r.type;return typeof l=="function"&&!pb(l)&&l.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=l,QA(e,t,l,n,a)):(e=Jc(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!Fb(e,a)){var i=l.memoizedProps;if(r=r.compare,r=r!==null?r:Gs,r(i,n)&&e.ref===t.ref)return la(e,t,a)}return t.flags|=1,e=Qn(l,n),e.ref=t.ref,e.return=t,t.child=e}function QA(e,t,r,n,a){if(e!==null){var l=e.memoizedProps;if(Gs(l,n)&&e.ref===t.ref)if(dt=!1,t.pendingProps=n=l,Fb(e,a))e.flags&131072&&(dt=!0);else return t.lanes=e.lanes,la(e,t,a)}return r0(e,t,r,n,a)}function JA(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 XS(e,t,l,r,n)}if(r&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ed(t,l!==null?l.cachePool:null),l!==null?IS(t,l):Wm(),hA(t);else return n=t.lanes=536870912,XS(e,t,l!==null?l.baseLanes|r:r,r,n)}else l!==null?(ed(t,l.cachePool),IS(t,l),Ca(),t.memoizedState=null):(e!==null&&ed(t,null),Wm(),Ca());return Ct(e,t,a,r),t.child}function fs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function XS(e,t,r,n,a){var l=yb();return l=l===null?null:{parent:ut._currentValue,pool:l},t.memoizedState={baseLanes:r,cachePool:l},e!==null&&ed(t,null),Wm(),hA(t),e!==null&&Co(e,t,n,!0),t.childLanes=a,null}function nd(e,t){return t=Vd({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ZS(e,t,r){return Fl(t,e.child,null,r),e=nd(t,t.pendingProps),e.flags|=2,pr(t),t.memoizedState=null,e}function pB(e,t,r){var n=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ee){if(n.mode==="hidden")return e=nd(t,n),t.lanes=536870912,fs(null,e);if(Xm(t),(e=je)?(e=G2(e,zr),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ka!==null?{id:vn,overflow:En}:null,retryLane:536870912,hydrationErrors:null},r=aA(e),r.return=t,t.child=r,Ot=t,je=null)):e=null,e===null)throw Ga(t);return t.lanes=536870912,null}return nd(t,n)}var l=e.memoizedState;if(l!==null){var i=l.dehydrated;if(Xm(t),a)if(t.flags&256)t.flags&=-257,t=ZS(e,t,r);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(W(558));else if(dt||Co(e,t,r,!1),a=(r&e.childLanes)!==0,dt||a){if(n=Ie,n!==null&&(i=Dw(n,r),i!==0&&i!==l.retryLane))throw l.retryLane=i,Wl(e,i),lr(n,e,i),Mb;Xd(),t=ZS(e,t,r)}else e=l.treeContext,je=jr(i.nextSibling),Ot=t,Ee=!0,Ba=null,zr=!1,e!==null&&iA(t,e),t=nd(t,n),t.flags|=4096;return t}return e=Qn(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ad(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(W(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function r0(e,t,r,n,a){return Ml(t),r=xb(e,t,r,n,void 0,a),n=$b(),e!==null&&!dt?(_b(e,t,a),la(e,t,a)):(Ee&&n&&hb(t),t.flags|=1,Ct(e,t,r,a),t.child)}function QS(e,t,r,n,a,l){return Ml(t),t.updateQueue=null,r=mA(t,n,r,a),gA(e),n=$b(),e!==null&&!dt?(_b(e,t,l),la(e,t,l)):(Ee&&n&&hb(t),t.flags|=1,Ct(e,t,r,l),t.child)}function JS(e,t,r,n,a){if(Ml(t),t.stateNode===null){var l=Ai,i=r.contextType;typeof i=="object"&&i!==null&&(l=Rt(i)),l=new r(n,l),t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=e0,t.stateNode=l,l._reactInternals=t,l=t.stateNode,l.props=n,l.state=t.memoizedState,l.refs={},vb(t),i=r.contextType,l.context=typeof i=="object"&&i!==null?Rt(i):Ai,l.state=t.memoizedState,i=r.getDerivedStateFromProps,typeof i=="function"&&(Oh(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&&e0.enqueueReplaceState(l,l.state,null),ws(t,n,l,a),Ts(),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=Pl(r,o);l.props=s;var u=l.context,c=r.contextType;i=Ai,typeof c=="object"&&c!==null&&(i=Rt(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)&&VS(t,l,n,i),Sa=!1;var f=t.memoizedState;l.state=f,ws(t,n,l,a),Ts(),u=t.memoizedState,o||f!==u||Sa?(typeof d=="function"&&(Oh(t,r,d,n),u=t.memoizedState),(s=Sa||GS(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,Ym(e,t),i=t.memoizedProps,c=Pl(r,i),l.props=c,d=t.pendingProps,f=l.context,u=r.contextType,s=Ai,typeof u=="object"&&u!==null&&(s=Rt(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)&&VS(t,l,n,s),Sa=!1,f=t.memoizedState,l.state=f,ws(t,n,l,a),Ts();var p=t.memoizedState;i!==d||f!==p||Sa||e!==null&&e.dependencies!==null&&kd(e.dependencies)?(typeof o=="function"&&(Oh(t,r,o,n),p=t.memoizedState),(c=Sa||GS(t,r,c,n,f,p,s)||e!==null&&e.dependencies!==null&&kd(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,ad(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=Fl(t,e.child,null,a),t.child=Fl(t,null,r,a)):Ct(e,t,r,a),t.memoizedState=l.state,e=t.child):e=la(e,t,a),e}function ex(e,t,r,n){return Ll(),t.flags|=256,Ct(e,t,r,n),t.child}var Dh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rh(e){return{baseLanes:e,cachePool:sA()}}function Nh(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=mr),e}function e2(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:(at.current&2)!==0),i&&(a=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ee){if(a?_a(t):Ca(),(e=je)?(e=G2(e,zr),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ka!==null?{id:vn,overflow:En}:null,retryLane:536870912,hydrationErrors:null},r=aA(e),r.return=t,t.child=r,Ot=t,je=null)):e=null,e===null)throw Ga(t);return m0(e)?t.lanes=32:t.lanes=536870912,null}var o=n.children;return n=n.fallback,a?(Ca(),a=t.mode,o=Vd({mode:"hidden",children:o},a),n=Cl(n,a,r,null),o.return=t,n.return=t,o.sibling=n,t.child=o,n=t.child,n.memoizedState=Rh(r),n.childLanes=Nh(e,i,r),t.memoizedState=Dh,fs(null,n)):(_a(t),n0(t,o))}var s=e.memoizedState;if(s!==null&&(o=s.dehydrated,o!==null)){if(l)t.flags&256?(_a(t),t.flags&=-257,t=Lh(e,t,r)):t.memoizedState!==null?(Ca(),t.child=e.child,t.flags|=128,t=null):(Ca(),o=n.fallback,a=t.mode,n=Vd({mode:"visible",children:n.children},a),o=Cl(o,a,r,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,Fl(t,e.child,null,r),n=t.child,n.memoizedState=Rh(r),n.childLanes=Nh(e,i,r),t.memoizedState=Dh,t=fs(null,n));else if(_a(t),m0(o)){if(i=o.nextSibling&&o.nextSibling.dataset,i)var u=i.dgst;i=u,n=Error(W(419)),n.stack="",n.digest=i,Ys({value:n,source:null,stack:null}),t=Lh(e,t,r)}else if(dt||Co(e,t,r,!1),i=(r&e.childLanes)!==0,dt||i){if(i=Ie,i!==null&&(n=Dw(i,r),n!==0&&n!==s.retryLane))throw s.retryLane=n,Wl(e,n),lr(i,e,n),Mb;g0(o)||Xd(),t=Lh(e,t,r)}else g0(o)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,je=jr(o.nextSibling),Ot=t,Ee=!0,Ba=null,zr=!1,e!==null&&iA(t,e),t=n0(t,n.children),t.flags|=4096);return t}return a?(Ca(),o=n.fallback,a=t.mode,s=e.child,u=s.sibling,n=Qn(s,{mode:"hidden",children:n.children}),n.subtreeFlags=s.subtreeFlags&65011712,u!==null?o=Qn(u,o):(o=Cl(o,a,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,fs(null,n),n=t.child,o=e.child.memoizedState,o===null?o=Rh(r):(a=o.cachePool,a!==null?(s=ut._currentValue,a=a.parent!==s?{parent:s,pool:s}:a):a=sA(),o={baseLanes:o.baseLanes|r,cachePool:a}),n.memoizedState=o,n.childLanes=Nh(e,i,r),t.memoizedState=Dh,fs(e.child,n)):(_a(t),r=e.child,e=r.sibling,r=Qn(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 n0(e,t){return t=Vd({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Vd(e,t){return e=gr(22,e,null,t),e.lanes=0,e}function Lh(e,t,r){return Fl(t,e.child,null,r),e=n0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tx(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Km(e.return,t,r)}function Mh(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 t2(e,t,r){var n=t.pendingProps,a=n.revealOrder,l=n.tail;n=n.children;var i=at.current,o=(i&2)!==0;if(o?(i=i&1|2,t.flags|=128):i&=1,ze(at,i),Ct(e,t,n,r),n=Ee?Vs:0,!o&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&tx(e,r,t);else if(e.tag===19)tx(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&&Ud(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),Mh(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&&Ud(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}Mh(t,!0,r,null,l,n);break;case"together":Mh(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function la(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ya|=t.lanes,!(r&t.childLanes))if(e!==null){if(Co(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(W(153));if(t.child!==null){for(e=t.child,r=Qn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Qn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Fb(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&kd(e)))}function hB(e,t,r){switch(t.tag){case 3:Nd(t,t.stateNode.containerInfo),$a(t,ut,e.memoizedState.cache),Ll();break;case 27:case 5:Rm(t);break;case 4:Nd(t,t.stateNode.containerInfo);break;case 10:$a(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Xm(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(_a(t),t.flags|=128,null):r&t.child.childLanes?e2(e,t,r):(_a(t),e=la(e,t,r),e!==null?e.sibling:null);_a(t);break;case 19:var a=(e.flags&128)!==0;if(n=(r&t.childLanes)!==0,n||(Co(e,t,r,!1),n=(r&t.childLanes)!==0),a){if(n)return t2(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),ze(at,at.current),n)break;return null;case 22:return t.lanes=0,JA(e,t,r,t.pendingProps);case 24:$a(t,ut,e.memoizedState.cache)}return la(e,t,r)}function r2(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)dt=!0;else{if(!Fb(e,r)&&!(t.flags&128))return dt=!1,hB(e,t,r);dt=!!(e.flags&131072)}else dt=!1,Ee&&t.flags&1048576&&lA(t,Vs,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=hl(t.elementType),t.type=e,typeof e=="function")pb(e)?(n=Pl(e,n),t.tag=1,t=JS(null,t,e,n,r)):(t.tag=0,t=r0(null,t,e,n,r));else{if(e!=null){var a=e.$$typeof;if(a===Jy){t.tag=11,t=qS(null,t,e,n,r);break e}else if(a===eb){t.tag=14,t=WS(null,t,e,n,r);break e}}throw t=Om(e)||e,Error(W(306,t,""))}}return t;case 0:return r0(e,t,t.type,t.pendingProps,r);case 1:return n=t.type,a=Pl(n,t.pendingProps),JS(e,t,n,a,r);case 3:e:{if(Nd(t,t.stateNode.containerInfo),e===null)throw Error(W(387));n=t.pendingProps;var l=t.memoizedState;a=l.element,Ym(e,t),ws(t,n,null,r);var i=t.memoizedState;if(n=i.cache,$a(t,ut,n),n!==l.cache&&Gm(t,[ut],r,!0),Ts(),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=ex(e,t,n,r);break e}else if(n!==a){a=kr(Error(W(424)),t),Ys(a),t=ex(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(je=jr(e.firstChild),Ot=t,Ee=!0,Ba=null,zr=!0,r=dA(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(Ll(),n===a){t=la(e,t,r);break e}Ct(e,t,n,r)}t=t.child}return t;case 26:return ad(e,t),e===null?(r=Sx(t.type,null,t.pendingProps,null))?t.memoizedState=r:Ee||(r=t.type,e=t.pendingProps,n=ef(Fa.current).createElement(r),n[At]=t,n[ir]=e,Nt(n,r,e),St(n),t.stateNode=n):t.memoizedState=Sx(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Rm(t),e===null&&Ee&&(n=t.stateNode=V2(t.type,t.pendingProps,Fa.current),Ot=t,zr=!0,a=je,Qa(t.type)?(y0=a,je=jr(n.firstChild)):je=a),Ct(e,t,t.pendingProps.children,r),ad(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ee&&((a=n=je)&&(n=KB(n,t.type,t.pendingProps,zr),n!==null?(t.stateNode=n,Ot=t,je=jr(n.firstChild),zr=!1,a=!0):a=!1),a||Ga(t)),Rm(t),a=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,n=l.children,p0(a,l)?n=null:i!==null&&p0(a,i)&&(t.flags|=32),t.memoizedState!==null&&(a=xb(e,t,lB,null,null,r),Js._currentValue=a),ad(e,t),Ct(e,t,n,r),t.child;case 6:return e===null&&Ee&&((e=r=je)&&(r=GB(r,t.pendingProps,zr),r!==null?(t.stateNode=r,Ot=t,je=null,e=!0):e=!1),e||Ga(t)),null;case 13:return e2(e,t,r);case 4:return Nd(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Fl(t,null,n,r):Ct(e,t,n,r),t.child;case 11:return qS(e,t,t.type,t.pendingProps,r);case 7:return Ct(e,t,t.pendingProps,r),t.child;case 8:return Ct(e,t,t.pendingProps.children,r),t.child;case 12:return Ct(e,t,t.pendingProps.children,r),t.child;case 10:return n=t.pendingProps,$a(t,t.type,n.value),Ct(e,t,n.children,r),t.child;case 9:return a=t.type._context,n=t.pendingProps.children,Ml(t),a=Rt(a),n=n(a),t.flags|=1,Ct(e,t,n,r),t.child;case 14:return WS(e,t,t.type,t.pendingProps,r);case 15:return QA(e,t,t.type,t.pendingProps,r);case 19:return t2(e,t,r);case 31:return pB(e,t,r);case 22:return JA(e,t,r,t.pendingProps);case 24:return Ml(t),n=Rt(ut),e===null?(a=yb(),a===null&&(a=Ie,l=mb(),a.pooledCache=l,l.refCount++,l!==null&&(a.pooledCacheLanes|=r),a=l),t.memoizedState={parent:n,cache:a},vb(t),$a(t,ut,a)):(e.lanes&r&&(Ym(e,t),ws(t,null,null,r),Ts()),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),$a(t,ut,n)):(n=l.cache,$a(t,ut,n),n!==a.cache&&Gm(t,[ut],r,!0))),Ct(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(W(156,t.tag))}function Pn(e){e.flags|=4}function Fh(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(T2())e.flags|=8192;else throw wl=zd,bb}else e.flags&=-16777217}function rx(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!W2(t))if(T2())e.flags|=8192;else throw wl=zd,bb}function hc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ww():536870912,e.lanes|=t,eo|=t)}function Xo(e,t){if(!Ee)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 Ue(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 gB(e,t,r){var n=t.pendingProps;switch(gb(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return r=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Jn(ut),qi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ii(t)?Pn(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Th())),Ue(t),null;case 26:var a=t.type,l=t.memoizedState;return e===null?(Pn(t),l!==null?(Ue(t),rx(t,l)):(Ue(t),Fh(t,a,null,n,r))):l?l!==e.memoizedState?(Pn(t),Ue(t),rx(t,l)):(Ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Pn(t),Ue(t),Fh(t,a,e,n,r)),null;case 27:if(Ld(t),r=Fa.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Pn(t);else{if(!n){if(t.stateNode===null)throw Error(W(166));return Ue(t),null}e=Tn.current,ii(t)?RS(t):(e=V2(a,n,r),t.stateNode=e,Pn(t))}return Ue(t),null;case 5:if(Ld(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Pn(t);else{if(!n){if(t.stateNode===null)throw Error(W(166));return Ue(t),null}if(l=Tn.current,ii(t))RS(t);else{var i=ef(Fa.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[At]=t,l[ir]=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(Nt(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&&Pn(t)}}return Ue(t),Fh(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Pn(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(W(166));if(e=Fa.current,ii(t)){if(e=t.stateNode,r=t.memoizedProps,n=null,a=Ot,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[At]=t,e=!!(e.nodeValue===r||n!==null&&n.suppressHydrationWarning===!0||U2(e.nodeValue,r)),e||Ga(t,!0)}else e=ef(e).createTextNode(n),e[At]=t,t.stateNode=e}return Ue(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(n=ii(t),r!==null){if(e===null){if(!n)throw Error(W(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(W(557));e[At]=t}else Ll(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ue(t),e=!1}else r=Th(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(pr(t),t):(pr(t),null);if(t.flags&128)throw Error(W(558))}return Ue(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ii(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(W(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(W(317));a[At]=t}else Ll(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ue(t),a=!1}else a=Th(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(pr(t),t):(pr(t),null)}return pr(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),hc(t,t.updateQueue),Ue(t),null);case 4:return qi(),e===null&&Ub(t.stateNode.containerInfo),Ue(t),null;case 10:return Jn(t.type),Ue(t),null;case 19:if(xt(at),n=t.memoizedState,n===null)return Ue(t),null;if(a=(t.flags&128)!==0,l=n.rendering,l===null)if(a)Xo(n,!1);else{if(tt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Ud(e),l!==null){for(t.flags|=128,Xo(n,!1),e=l.updateQueue,t.updateQueue=e,hc(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)nA(r,e),r=r.sibling;return ze(at,at.current&1|2),Ee&&Kn(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&yr()>qd&&(t.flags|=128,a=!0,Xo(n,!1),t.lanes=4194304)}else{if(!a)if(e=Ud(l),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,hc(t,e),Xo(n,!0),n.tail===null&&n.tailMode==="hidden"&&!l.alternate&&!Ee)return Ue(t),null}else 2*yr()-n.renderingStartTime>qd&&r!==536870912&&(t.flags|=128,a=!0,Xo(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=yr(),e.sibling=null,r=at.current,ze(at,a?r&1|2:r&1),Ee&&Kn(t,n.treeForkCount),e):(Ue(t),null);case 22:case 23:return pr(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)&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),r=t.updateQueue,r!==null&&hc(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&&xt(Tl),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Jn(ut),Ue(t),null;case 25:return null;case 30:return null}throw Error(W(156,t.tag))}function mB(e,t){switch(gb(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Jn(ut),qi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ld(t),null;case 31:if(t.memoizedState!==null){if(pr(t),t.alternate===null)throw Error(W(340));Ll()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(pr(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Ll()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xt(at),null;case 4:return qi(),null;case 10:return Jn(t.type),null;case 22:case 23:return pr(t),Eb(),e!==null&&xt(Tl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Jn(ut),null;case 25:return null;default:return null}}function n2(e,t){switch(gb(t),t.tag){case 3:Jn(ut),qi();break;case 26:case 27:case 5:Ld(t);break;case 4:qi();break;case 31:t.memoizedState!==null&&pr(t);break;case 13:pr(t);break;case 19:xt(at);break;case 10:Jn(t.type);break;case 22:case 23:pr(t),Eb(),e!==null&&xt(Tl);break;case 24:Jn(ut)}}function Tu(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){Le(t,t.return,o)}}function Va(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){Le(a,s,c)}}}n=n.next}while(n!==l)}}catch(c){Le(t,t.return,c)}}function a2(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{pA(t,r)}catch(n){Le(e,e.return,n)}}}function l2(e,t,r){r.props=Pl(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(n){Le(e,t,n)}}function Os(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){Le(e,t,a)}}function Sn(e,t){var r=e.ref,n=e.refCleanup;if(r!==null)if(typeof n=="function")try{n()}catch(a){Le(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){Le(e,t,a)}else r.current=null}function i2(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){Le(e,e.return,a)}}function Bh(e,t,r){try{var n=e.stateNode;IB(n,e.type,r,t),n[ir]=t}catch(a){Le(e,e.return,a)}}function o2(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qa(e.type)||e.tag===4}function Ph(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||o2(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 a0(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=Xn));else if(n!==4&&(n===27&&Qa(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(a0(e,t,r),e=e.sibling;e!==null;)a0(e,t,r),e=e.sibling}function Yd(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(Yd(e,t,r),e=e.sibling;e!==null;)Yd(e,t,r),e=e.sibling}function s2(e){var t=e.stateNode,r=e.memoizedProps;try{for(var n=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Nt(t,n,r),t[At]=e,t[ir]=r}catch(l){Le(e,e.return,l)}}var Vn=!1,st=!1,Ih=!1,nx=typeof WeakSet=="function"?WeakSet:Set,Et=null;function yB(e,t){if(e=e.containerInfo,d0=af,e=Ww(e),cb(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(f0={focusedElem:e,selectionRange:r},af=!1,Et=t;Et!==null;)if(t=Et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Et=e;else for(;Et!==null;){switch(t=Et,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 y=Pl(r.type,a);e=n.getSnapshotBeforeUpdate(y,l),n.__reactInternalSnapshotBeforeUpdate=e}catch(b){Le(r,r.return,b)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)h0(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":h0(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(W(163))}if(e=t.sibling,e!==null){e.return=t.return,Et=e;break}Et=t.return}}function u2(e,t,r){var n=r.flags;switch(r.tag){case 0:case 11:case 15:kn(e,r),n&4&&Tu(5,r);break;case 1:if(kn(e,r),n&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(i){Le(r,r.return,i)}else{var a=Pl(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){Le(r,r.return,i)}}n&64&&a2(r),n&512&&Os(r,r.return);break;case 3:if(kn(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{pA(e,t)}catch(i){Le(r,r.return,i)}}break;case 27:t===null&&n&4&&s2(r);case 26:case 5:kn(e,r),t===null&&n&4&&i2(r),n&512&&Os(r,r.return);break;case 12:kn(e,r);break;case 31:kn(e,r),n&4&&f2(e,r);break;case 13:kn(e,r),n&4&&p2(e,r),n&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=TB.bind(null,r),VB(e,r))));break;case 22:if(n=r.memoizedState!==null||Vn,!n){t=t!==null&&t.memoizedState!==null||st,a=Vn;var l=st;Vn=n,(st=t)&&!l?Un(e,r,(r.subtreeFlags&8772)!==0):kn(e,r),Vn=a,st=l}break;case 30:break;default:kn(e,r)}}function c2(e){var t=e.alternate;t!==null&&(e.alternate=null,c2(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ab(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 qe=null,er=!1;function In(e,t,r){for(r=r.child;r!==null;)d2(e,t,r),r=r.sibling}function d2(e,t,r){if(br&&typeof br.onCommitFiberUnmount=="function")try{br.onCommitFiberUnmount(vu,r)}catch{}switch(r.tag){case 26:st||Sn(r,t),In(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:st||Sn(r,t);var n=qe,a=er;Qa(r.type)&&(qe=r.stateNode,er=!1),In(e,t,r),Ls(r.stateNode),qe=n,er=a;break;case 5:st||Sn(r,t);case 6:if(n=qe,a=er,qe=null,In(e,t,r),qe=n,er=a,qe!==null)if(er)try{(qe.nodeType===9?qe.body:qe.nodeName==="HTML"?qe.ownerDocument.body:qe).removeChild(r.stateNode)}catch(l){Le(r,t,l)}else try{qe.removeChild(r.stateNode)}catch(l){Le(r,t,l)}break;case 18:qe!==null&&(er?(e=qe,mx(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),ao(e)):mx(qe,r.stateNode));break;case 4:n=qe,a=er,qe=r.stateNode.containerInfo,er=!0,In(e,t,r),qe=n,er=a;break;case 0:case 11:case 14:case 15:Va(2,r,t),st||Va(4,r,t),In(e,t,r);break;case 1:st||(Sn(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"&&l2(r,t,n)),In(e,t,r);break;case 21:In(e,t,r);break;case 22:st=(n=st)||r.memoizedState!==null,In(e,t,r),st=n;break;default:In(e,t,r)}}function f2(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ao(e)}catch(r){Le(t,t.return,r)}}}function p2(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ao(e)}catch(r){Le(t,t.return,r)}}function bB(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new nx),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new nx),t;default:throw Error(W(435,e.tag))}}function gc(e,t){var r=bB(e);t.forEach(function(n){if(!r.has(n)){r.add(n);var a=wB.bind(null,e,n);n.then(a,a)}})}function Zt(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)){qe=o.stateNode,er=!1;break e}break;case 5:qe=o.stateNode,er=!1;break e;case 3:case 4:qe=o.stateNode.containerInfo,er=!0;break e}o=o.return}if(qe===null)throw Error(W(160));d2(l,i,a),qe=null,er=!1,l=a.alternate,l!==null&&(l.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)h2(t,e),t=t.sibling}var Qr=null;function h2(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Zt(t,e),Qt(e),n&4&&(Va(3,e,e.return),Tu(3,e),Va(5,e,e.return));break;case 1:Zt(t,e),Qt(e),n&512&&(st||r===null||Sn(r,r.return)),n&64&&Vn&&(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=Qr;if(Zt(t,e),Qt(e),n&512&&(st||r===null||Sn(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[xu]||l[At]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=a.createElement(n),a.head.insertBefore(l,a.querySelector("head > title"))),Nt(l,n,r),l[At]=e,St(l),n=l;break e;case"link":var i=$x("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),Nt(l,n,r),a.head.appendChild(l);break;case"meta":if(i=$x("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),Nt(l,n,r),a.head.appendChild(l);break;default:throw Error(W(468,n))}l[At]=e,St(l),n=l}e.stateNode=n}else _x(a,e.type,e.stateNode);else e.stateNode=xx(a,n,e.memoizedProps);else l!==n?(l===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):l.count--,n===null?_x(a,e.type,e.stateNode):xx(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Bh(e,e.memoizedProps,r.memoizedProps)}break;case 27:Zt(t,e),Qt(e),n&512&&(st||r===null||Sn(r,r.return)),r!==null&&n&4&&Bh(e,e.memoizedProps,r.memoizedProps);break;case 5:if(Zt(t,e),Qt(e),n&512&&(st||r===null||Sn(r,r.return)),e.flags&32){a=e.stateNode;try{Xi(a,"")}catch(y){Le(e,e.return,y)}}n&4&&e.stateNode!=null&&(a=e.memoizedProps,Bh(e,a,r!==null?r.memoizedProps:a)),n&1024&&(Ih=!0);break;case 6:if(Zt(t,e),Qt(e),n&4){if(e.stateNode===null)throw Error(W(162));n=e.memoizedProps,r=e.stateNode;try{r.nodeValue=n}catch(y){Le(e,e.return,y)}}break;case 3:if(od=null,a=Qr,Qr=tf(t.containerInfo),Zt(t,e),Qr=a,Qt(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{ao(t.containerInfo)}catch(y){Le(e,e.return,y)}Ih&&(Ih=!1,g2(e));break;case 4:n=Qr,Qr=tf(e.stateNode.containerInfo),Zt(t,e),Qt(e),Qr=n;break;case 12:Zt(t,e),Qt(e);break;case 31:Zt(t,e),Qt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,gc(e,n)));break;case 13:Zt(t,e),Qt(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(ep=yr()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,gc(e,n)));break;case 22:a=e.memoizedState!==null;var s=r!==null&&r.memoizedState!==null,u=Vn,c=st;if(Vn=u||a,st=c||s,Zt(t,e),st=c,Vn=u,Qt(e),n&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(r===null||s||Vn||st||gl(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(y){Le(s,s.return,y)}}}else if(t.tag===6){if(r===null){s=t;try{s.stateNode.nodeValue=a?"":s.memoizedProps}catch(y){Le(s,s.return,y)}}}else if(t.tag===18){if(r===null){s=t;try{var p=s.stateNode;a?yx(p,!0):yx(s.stateNode,!1)}catch(y){Le(s,s.return,y)}}}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,gc(e,r))));break;case 19:Zt(t,e),Qt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,gc(e,n)));break;case 30:break;case 21:break;default:Zt(t,e),Qt(e)}}function Qt(e){var t=e.flags;if(t&2){try{for(var r,n=e.return;n!==null;){if(o2(n)){r=n;break}n=n.return}if(r==null)throw Error(W(160));switch(r.tag){case 27:var a=r.stateNode,l=Ph(e);Yd(e,l,a);break;case 5:var i=r.stateNode;r.flags&32&&(Xi(i,""),r.flags&=-33);var o=Ph(e);Yd(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,u=Ph(e);a0(e,u,s);break;default:throw Error(W(161))}}catch(c){Le(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function g2(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;g2(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function kn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)u2(e,t.alternate,t),t=t.sibling}function gl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Va(4,t,t.return),gl(t);break;case 1:Sn(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&l2(t,t.return,r),gl(t);break;case 27:Ls(t.stateNode);case 26:case 5:Sn(t,t.return),gl(t);break;case 22:t.memoizedState===null&&gl(t);break;case 30:gl(t);break;default:gl(t)}e=e.sibling}}function Un(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:Un(a,l,r),Tu(4,l);break;case 1:if(Un(a,l,r),n=l,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(u){Le(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++)fA(s[a],o)}catch(u){Le(n,n.return,u)}}r&&i&64&&a2(l),Os(l,l.return);break;case 27:s2(l);case 26:case 5:Un(a,l,r),r&&n===null&&i&4&&i2(l),Os(l,l.return);break;case 12:Un(a,l,r);break;case 31:Un(a,l,r),r&&i&4&&f2(a,l);break;case 13:Un(a,l,r),r&&i&4&&p2(a,l);break;case 22:l.memoizedState===null&&Un(a,l,r),Os(l,l.return);break;case 30:break;default:Un(a,l,r)}t=t.sibling}}function Bb(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&&_u(r))}function Pb(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&_u(e))}function Wr(e,t,r,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)m2(e,t,r,n),t=t.sibling}function m2(e,t,r,n){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Wr(e,t,r,n),a&2048&&Tu(9,t);break;case 1:Wr(e,t,r,n);break;case 3:Wr(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&&_u(e)));break;case 12:if(a&2048){Wr(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){Le(t,t.return,s)}}else Wr(e,t,r,n);break;case 31:Wr(e,t,r,n);break;case 13:Wr(e,t,r,n);break;case 23:break;case 22:l=t.stateNode,i=t.alternate,t.memoizedState!==null?l._visibility&2?Wr(e,t,r,n):Ds(e,t):l._visibility&2?Wr(e,t,r,n):(l._visibility|=2,pi(e,t,r,n,(t.subtreeFlags&10256)!==0||!1)),a&2048&&Bb(i,t);break;case 24:Wr(e,t,r,n),a&2048&&Pb(t.alternate,t);break;default:Wr(e,t,r,n)}}function pi(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:pi(l,i,o,s,a),Tu(8,i);break;case 23:break;case 22:var c=i.stateNode;i.memoizedState!==null?c._visibility&2?pi(l,i,o,s,a):Ds(l,i):(c._visibility|=2,pi(l,i,o,s,a)),a&&u&2048&&Bb(i.alternate,i);break;case 24:pi(l,i,o,s,a),a&&u&2048&&Pb(i.alternate,i);break;default:pi(l,i,o,s,a)}t=t.sibling}}function Ds(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:Ds(r,n),a&2048&&Bb(n.alternate,n);break;case 24:Ds(r,n),a&2048&&Pb(n.alternate,n);break;default:Ds(r,n)}t=t.sibling}}var ps=8192;function oi(e,t,r){if(e.subtreeFlags&ps)for(e=e.child;e!==null;)y2(e,t,r),e=e.sibling}function y2(e,t,r){switch(e.tag){case 26:oi(e,t,r),e.flags&ps&&e.memoizedState!==null&&aP(r,Qr,e.memoizedState,e.memoizedProps);break;case 5:oi(e,t,r);break;case 3:case 4:var n=Qr;Qr=tf(e.stateNode.containerInfo),oi(e,t,r),Qr=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=ps,ps=16777216,oi(e,t,r),ps=n):oi(e,t,r));break;default:oi(e,t,r)}}function b2(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 Zo(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var r=0;r<t.length;r++){var n=t[r];Et=n,E2(n,e)}b2(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)v2(e),e=e.sibling}function v2(e){switch(e.tag){case 0:case 11:case 15:Zo(e),e.flags&2048&&Va(9,e,e.return);break;case 3:Zo(e);break;case 12:Zo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ld(e)):Zo(e);break;default:Zo(e)}}function ld(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var r=0;r<t.length;r++){var n=t[r];Et=n,E2(n,e)}b2(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Va(8,t,t.return),ld(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,ld(t));break;default:ld(t)}e=e.sibling}}function E2(e,t){for(;Et!==null;){var r=Et;switch(r.tag){case 0:case 11:case 15:Va(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:_u(r.memoizedState.cache)}if(n=r.child,n!==null)n.return=r,Et=n;else e:for(r=e;Et!==null;){n=Et;var a=n.sibling,l=n.return;if(c2(n),n===r){Et=null;break e}if(a!==null){a.return=l,Et=a;break e}Et=l}}}var vB={getCacheForType:function(e){var t=Rt(ut),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},cacheSignal:function(){return Rt(ut).controller.signal}},EB=typeof WeakMap=="function"?WeakMap:Map,we=0,Ie=null,ge=null,me=0,Ne=0,fr=null,Da=!1,wo=!1,Ib=!1,ia=0,tt=0,Ya=0,Al=0,kb=0,mr=0,eo=0,Rs=null,tr=null,l0=!1,ep=0,S2=0,qd=1/0,Wd=null,ka=null,yt=0,za=null,to=null,ea=0,i0=0,o0=null,x2=null,Ns=0,s0=null;function Er(){return we&2&&me!==0?me&-me:ae.T!==null?Hb():Rw()}function $2(){if(mr===0)if(!(me&536870912)||Ee){var e=oc;oc<<=1,!(oc&3932160)&&(oc=262144),mr=e}else mr=536870912;return e=$r.current,e!==null&&(e.flags|=32),mr}function lr(e,t,r){(e===Ie&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)&&(ro(e,0),Ra(e,me,mr,!1)),Su(e,r),(!(we&2)||e!==Ie)&&(e===Ie&&(!(we&2)&&(Al|=r),tt===4&&Ra(e,me,mr,!1)),Dn(e))}function _2(e,t,r){if(we&6)throw Error(W(327));var n=!r&&(t&127)===0&&(t&e.expiredLanes)===0||Eu(e,t),a=n?$B(e,t):kh(e,t,!0),l=n;do{if(a===0){wo&&!n&&Ra(e,t,0,!1);break}else{if(r=e.current.alternate,l&&!SB(r)){a=kh(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=Rs;var s=o.current.memoizedState.isDehydrated;if(s&&(ro(o,i).flags|=256),i=kh(o,i,!1),i!==2){if(Ib&&!s){o.errorRecoveryDisabledLanes|=l,Al|=l,a=4;break e}l=tr,tr=a,l!==null&&(tr===null?tr=l:tr.push.apply(tr,l))}a=i}if(l=!1,a!==2)continue}}if(a===1){ro(e,0),Ra(e,t,0,!0);break}e:{switch(n=e,l=a,l){case 0:case 1:throw Error(W(345));case 4:if((t&4194048)!==t)break;case 6:Ra(n,t,mr,!Da);break e;case 2:tr=null;break;case 3:case 5:break;default:throw Error(W(329))}if((t&62914560)===t&&(a=ep+300-yr(),10<a)){if(Ra(n,t,mr,!Da),jf(n,0,!0)!==0)break e;ea=t,n.timeoutHandle=K2(ax.bind(null,n,r,tr,Wd,l0,t,mr,Al,eo,Da,l,"Throttled",-0,0),a);break e}ax(n,r,tr,Wd,l0,t,mr,Al,eo,Da,l,null,-0,0)}}break}while(!0);Dn(e)}function ax(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:Xn},y2(t,l,d);var y=(l&62914560)===l?ep-yr():(l&4194048)===l?S2-yr():0;if(y=lP(d,y),y!==null){ea=l,e.cancelPendingCommit=y(ix.bind(null,e,t,l,r,n,a,i,o,s,c,d,null,f,p)),Ra(e,l,i,!u);return}}ix(e,t,l,r,n,a,i,o,s)}function SB(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(!xr(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 Ra(e,t,r,n){t&=~kb,t&=~Al,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var a=t;0<a;){var l=31-vr(a),i=1<<l;n[l]=-1,a&=~i}r!==0&&Aw(e,r,t)}function tp(){return we&6?!0:(wu(0),!1)}function zb(){if(ge!==null){if(Ne===0)var e=ge.return;else e=ge,Zn=Xl=null,Cb(e),Ii=null,qs=0,e=ge;for(;e!==null;)n2(e.alternate,e),e=e.return;ge=null}}function ro(e,t){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,HB(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),ea=0,zb(),Ie=e,ge=r=Qn(e.current,null),me=t,Ne=0,fr=null,Da=!1,wo=Eu(e,t),Ib=!1,eo=mr=kb=Al=Ya=tt=0,tr=Rs=null,l0=!1,t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-vr(n),l=1<<a;t|=e[a],n&=~l}return ia=t,Yf(),r}function C2(e,t){se=null,ae.H=Xs,t===To||t===Wf?(t=BS(),Ne=3):t===bb?(t=BS(),Ne=4):Ne=t===Mb?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,fr=t,ge===null&&(tt=1,Gd(e,kr(t,e.current)))}function T2(){var e=$r.current;return e===null?!0:(me&4194048)===me?Ur===null:(me&62914560)===me||me&536870912?e===Ur:!1}function w2(){var e=ae.H;return ae.H=Xs,e===null?Xs:e}function A2(){var e=ae.A;return ae.A=vB,e}function Xd(){tt=4,Da||(me&4194048)!==me&&$r.current!==null||(wo=!0),!(Ya&134217727)&&!(Al&134217727)||Ie===null||Ra(Ie,me,mr,!1)}function kh(e,t,r){var n=we;we|=2;var a=w2(),l=A2();(Ie!==e||me!==t)&&(Wd=null,ro(e,t)),t=!1;var i=tt;e:do try{if(Ne!==0&&ge!==null){var o=ge,s=fr;switch(Ne){case 8:zb(),i=6;break e;case 3:case 2:case 9:case 6:$r.current===null&&(t=!0);var u=Ne;if(Ne=0,fr=null,Ri(e,o,s,u),r&&wo){i=0;break e}break;default:u=Ne,Ne=0,fr=null,Ri(e,o,s,u)}}xB(),i=tt;break}catch(c){C2(e,c)}while(!0);return t&&e.shellSuspendCounter++,Zn=Xl=null,we=n,ae.H=a,ae.A=l,ge===null&&(Ie=null,me=0,Yf()),i}function xB(){for(;ge!==null;)O2(ge)}function $B(e,t){var r=we;we|=2;var n=w2(),a=A2();Ie!==e||me!==t?(Wd=null,qd=yr()+500,ro(e,t)):wo=Eu(e,t);e:do try{if(Ne!==0&&ge!==null){t=ge;var l=fr;t:switch(Ne){case 1:Ne=0,fr=null,Ri(e,t,l,1);break;case 2:case 9:if(FS(l)){Ne=0,fr=null,lx(t);break}t=function(){Ne!==2&&Ne!==9||Ie!==e||(Ne=7),Dn(e)},l.then(t,t);break e;case 3:Ne=7;break e;case 4:Ne=5;break e;case 7:FS(l)?(Ne=0,fr=null,lx(t)):(Ne=0,fr=null,Ri(e,t,l,7));break;case 5:var i=null;switch(ge.tag){case 26:i=ge.memoizedState;case 5:case 27:var o=ge;if(i?W2(i):o.stateNode.complete){Ne=0,fr=null;var s=o.sibling;if(s!==null)ge=s;else{var u=o.return;u!==null?(ge=u,rp(u)):ge=null}break t}}Ne=0,fr=null,Ri(e,t,l,5);break;case 6:Ne=0,fr=null,Ri(e,t,l,6);break;case 8:zb(),tt=6;break e;default:throw Error(W(462))}}_B();break}catch(c){C2(e,c)}while(!0);return Zn=Xl=null,ae.H=n,ae.A=a,we=r,ge!==null?0:(Ie=null,me=0,Yf(),tt)}function _B(){for(;ge!==null&&!YM();)O2(ge)}function O2(e){var t=r2(e.alternate,e,ia);e.memoizedProps=e.pendingProps,t===null?rp(e):ge=t}function lx(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=QS(r,t,t.pendingProps,t.type,void 0,me);break;case 11:t=QS(r,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:Cb(t);default:n2(r,t),t=ge=nA(t,ia),t=r2(r,t,ia)}e.memoizedProps=e.pendingProps,t===null?rp(e):ge=t}function Ri(e,t,r,n){Zn=Xl=null,Cb(t),Ii=null,qs=0;var a=t.return;try{if(fB(e,a,t,r,me)){tt=1,Gd(e,kr(r,e.current)),ge=null;return}}catch(l){if(a!==null)throw ge=a,l;tt=1,Gd(e,kr(r,e.current)),ge=null;return}t.flags&32768?(Ee||n===1?e=!0:wo||me&536870912?e=!1:(Da=e=!0,(n===2||n===9||n===3||n===6)&&(n=$r.current,n!==null&&n.tag===13&&(n.flags|=16384))),D2(t,e)):rp(t)}function rp(e){var t=e;do{if(t.flags&32768){D2(t,Da);return}e=t.return;var r=gB(t.alternate,t,ia);if(r!==null){ge=r;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);tt===0&&(tt=5)}function D2(e,t){do{var r=mB(e.alternate,e);if(r!==null){r.flags&=32767,ge=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){ge=e;return}ge=e=r}while(e!==null);tt=6,ge=null}function ix(e,t,r,n,a,l,i,o,s){e.cancelPendingCommit=null;do np();while(yt!==0);if(we&6)throw Error(W(327));if(t!==null){if(t===e.current)throw Error(W(177));if(l=t.lanes|t.childLanes,l|=db,nF(e,r,l,i,o,s),e===Ie&&(ge=Ie=null,me=0),to=t,za=e,ea=r,i0=l,o0=a,x2=n,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,AB(Md,function(){return F2(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,t.subtreeFlags&13878||n){n=ae.T,ae.T=null,a=Ae.p,Ae.p=2,i=we,we|=4;try{yB(e,t,r)}finally{we=i,Ae.p=a,ae.T=n}}yt=1,R2(),N2(),L2()}}function R2(){if(yt===1){yt=0;var e=za,t=to,r=(t.flags&13878)!==0;if(t.subtreeFlags&13878||r){r=ae.T,ae.T=null;var n=Ae.p;Ae.p=2;var a=we;we|=4;try{h2(t,e);var l=f0,i=Ww(e.containerInfo),o=l.focusedElem,s=l.selectionRange;if(i!==o&&o&&o.ownerDocument&&qw(o.ownerDocument.documentElement,o)){if(s!==null&&cb(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(),y=o.textContent.length,b=Math.min(s.start,y),S=s.end===void 0?b:Math.min(s.end,y);!p.extend&&b>S&&(i=S,S=b,b=i);var h=AS(o,b),v=AS(o,S);if(h&&v&&(p.rangeCount!==1||p.anchorNode!==h.node||p.anchorOffset!==h.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var E=d.createRange();E.setStart(h.node,h.offset),p.removeAllRanges(),b>S?(p.addRange(E),p.extend(v.node,v.offset)):(E.setEnd(v.node,v.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}}af=!!d0,f0=d0=null}finally{we=a,Ae.p=n,ae.T=r}}e.current=t,yt=2}}function N2(){if(yt===2){yt=0;var e=za,t=to,r=(t.flags&8772)!==0;if(t.subtreeFlags&8772||r){r=ae.T,ae.T=null;var n=Ae.p;Ae.p=2;var a=we;we|=4;try{u2(e,t.alternate,t)}finally{we=a,Ae.p=n,ae.T=r}}yt=3}}function L2(){if(yt===4||yt===3){yt=0,qM();var e=za,t=to,r=ea,n=x2;t.subtreeFlags&10256||t.flags&10256?yt=5:(yt=0,to=za=null,M2(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(ka=null),nb(r),t=t.stateNode,br&&typeof br.onCommitFiberRoot=="function")try{br.onCommitFiberRoot(vu,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=ae.T,a=Ae.p,Ae.p=2,ae.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{ae.T=t,Ae.p=a}}ea&3&&np(),Dn(e),a=e.pendingLanes,r&261930&&a&42?e===s0?Ns++:(Ns=0,s0=e):Ns=0,wu(0)}}function M2(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,_u(t)))}function np(){return R2(),N2(),L2(),F2()}function F2(){if(yt!==5)return!1;var e=za,t=i0;i0=0;var r=nb(ea),n=ae.T,a=Ae.p;try{Ae.p=32>r?32:r,ae.T=null,r=o0,o0=null;var l=za,i=ea;if(yt=0,to=za=null,ea=0,we&6)throw Error(W(331));var o=we;if(we|=4,v2(l.current),m2(l,l.current,i,r),we=o,wu(0,!1),br&&typeof br.onPostCommitFiberRoot=="function")try{br.onPostCommitFiberRoot(vu,l)}catch{}return!0}finally{Ae.p=a,ae.T=n,M2(e,t)}}function ox(e,t,r){t=kr(r,t),t=t0(e.stateNode,t,2),e=Ia(e,t,2),e!==null&&(Su(e,2),Dn(e))}function Le(e,t,r){if(e.tag===3)ox(e,e,r);else for(;t!==null;){if(t.tag===3){ox(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(ka===null||!ka.has(n))){e=kr(r,e),r=XA(2),n=Ia(t,r,2),n!==null&&(ZA(r,n,t,e),Su(n,2),Dn(n));break}}t=t.return}}function zh(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new EB;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)||(Ib=!0,a.add(r),e=CB.bind(null,e,t,r),t.then(e,e))}function CB(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Ie===e&&(me&r)===r&&(tt===4||tt===3&&(me&62914560)===me&&300>yr()-ep?!(we&2)&&ro(e,0):kb|=r,eo===me&&(eo=0)),Dn(e)}function B2(e,t){t===0&&(t=ww()),e=Wl(e,t),e!==null&&(Su(e,t),Dn(e))}function TB(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),B2(e,r)}function wB(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(W(314))}n!==null&&n.delete(t),B2(e,r)}function AB(e,t){return tb(e,t)}var Zd=null,hi=null,u0=!1,Qd=!1,Hh=!1,Na=0;function Dn(e){e!==hi&&e.next===null&&(hi===null?Zd=hi=e:hi=hi.next=e),Qd=!0,u0||(u0=!0,DB())}function wu(e,t){if(!Hh&&Qd){Hh=!0;do for(var r=!1,n=Zd;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-vr(42|e)+1)-1,l&=a&~(i&~o),l=l&201326741?l&201326741|1:l?l|2:0}l!==0&&(r=!0,sx(n,l))}else l=me,l=jf(n,n===Ie?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),!(l&3)||Eu(n,l)||(r=!0,sx(n,l));n=n.next}while(r);Hh=!1}}function OB(){P2()}function P2(){Qd=u0=!1;var e=0;Na!==0&&zB()&&(e=Na);for(var t=yr(),r=null,n=Zd;n!==null;){var a=n.next,l=I2(n,t);l===0?(n.next=null,r===null?Zd=a:r.next=a,a===null&&(hi=r)):(r=n,(e!==0||l&3)&&(Qd=!0)),n=a}yt!==0&&yt!==5||wu(e),Na!==0&&(Na=0)}function I2(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,l=e.pendingLanes&-62914561;0<l;){var i=31-vr(l),o=1<<i,s=a[i];s===-1?(!(o&r)||o&n)&&(a[i]=rF(o,t)):s<=t&&(e.expiredLanes|=o),l&=~o}if(t=Ie,r=me,r=jf(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,r===0||e===t&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&gh(n),e.callbackNode=null,e.callbackPriority=0;if(!(r&3)||Eu(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(n!==null&&gh(n),nb(r)){case 2:case 8:r=Cw;break;case 32:r=Md;break;case 268435456:r=Tw;break;default:r=Md}return n=k2.bind(null,e),r=tb(r,n),e.callbackPriority=t,e.callbackNode=r,t}return n!==null&&n!==null&&gh(n),e.callbackPriority=2,e.callbackNode=null,2}function k2(e,t){if(yt!==0&&yt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(np()&&e.callbackNode!==r)return null;var n=me;return n=jf(e,e===Ie?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(_2(e,n,t),I2(e,yr()),e.callbackNode!=null&&e.callbackNode===r?k2.bind(null,e):null)}function sx(e,t){if(np())return null;_2(e,t,!0)}function DB(){UB(function(){we&6?tb(_w,OB):P2()})}function Hb(){if(Na===0){var e=Zi;e===0&&(e=ic,ic<<=1,!(ic&261888)&&(ic=256)),Na=e}return Na}function ux(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Xc(""+e)}function cx(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 RB(e,t,r,n,a){if(t==="submit"&&r&&r.stateNode===a){var l=ux((a[ir]||null).action),i=n.submitter;i&&(t=(t=i[ir]||null)?ux(t.formAction):i.getAttribute("formAction"),t!==null&&(l=t,i=null));var o=new Kf("action","action",null,n,a);e.push({event:o,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Na!==0){var s=i?cx(a,i):new FormData(a);Jm(r,{pending:!0,data:s,method:a.method,action:l},null,s)}}else typeof l=="function"&&(o.preventDefault(),s=i?cx(a,i):new FormData(a),Jm(r,{pending:!0,data:s,method:a.method,action:l},l,s))},currentTarget:a}]})}}for(var Uh=0;Uh<Hm.length;Uh++){var jh=Hm[Uh],NB=jh.toLowerCase(),LB=jh[0].toUpperCase()+jh.slice(1);an(NB,"on"+LB)}an(Zw,"onAnimationEnd");an(Qw,"onAnimationIteration");an(Jw,"onAnimationStart");an("dblclick","onDoubleClick");an("focusin","onFocus");an("focusout","onBlur");an(WF,"onTransitionRun");an(XF,"onTransitionStart");an(ZF,"onTransitionCancel");an(eA,"onTransitionEnd");Wi("onMouseEnter",["mouseout","mouseover"]);Wi("onMouseLeave",["mouseout","mouseover"]);Wi("onPointerEnter",["pointerout","pointerover"]);Wi("onPointerLeave",["pointerout","pointerover"]);Vl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Vl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Vl("onBeforeInput",["compositionend","keypress","textInput","paste"]);Vl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Vl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Vl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zs="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(" "),MB=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zs));function z2(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){Bd(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){Bd(c)}a.currentTarget=null,l=s}}}}function he(e,t){var r=t[Lm];r===void 0&&(r=t[Lm]=new Set);var n=e+"__bubble";r.has(n)||(H2(t,e,2,!1),r.add(n))}function Kh(e,t,r){var n=0;t&&(n|=4),H2(r,e,n,t)}var mc="_reactListening"+Math.random().toString(36).slice(2);function Ub(e){if(!e[mc]){e[mc]=!0,Nw.forEach(function(r){r!=="selectionchange"&&(MB.has(r)||Kh(r,!1,e),Kh(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mc]||(t[mc]=!0,Kh("selectionchange",!1,t))}}function H2(e,t,r,n){switch(eO(t)){case 2:var a=sP;break;case 8:a=uP;break;default:a=Vb}r=a.bind(null,t,r,e),a=void 0,!Im||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 Gh(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=xi(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}zw(function(){var u=l,c=ib(r),d=[];e:{var f=tA.get(e);if(f!==void 0){var p=Kf,y=e;switch(e){case"keypress":if(Qc(r)===0)break e;case"keydown":case"keyup":p=wF;break;case"focusin":y="focus",p=Eh;break;case"focusout":y="blur",p=Eh;break;case"beforeblur":case"afterblur":p=Eh;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=bS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=gF;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=DF;break;case Zw:case Qw:case Jw:p=bF;break;case eA:p=NF;break;case"scroll":case"scrollend":p=pF;break;case"wheel":p=MF;break;case"copy":case"cut":case"paste":p=EF;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=ES;break;case"toggle":case"beforetoggle":p=BF}var b=(t&4)!==0,S=!b&&(e==="scroll"||e==="scrollend"),h=b?f!==null?f+"Capture":null:f;b=[];for(var v=u,E;v!==null;){var x=v;if(E=x.stateNode,x=x.tag,x!==5&&x!==26&&x!==27||E===null||h===null||(x=js(v,h),x!=null&&b.push(Qs(v,x,E))),S)break;v=v.return}0<b.length&&(f=new p(f,y,null,r,c),d.push({event:f,listeners:b}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&r!==Pm&&(y=r.relatedTarget||r.fromElement)&&(xi(y)||y[$o]))break e;if((p||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,p?(y=r.relatedTarget||r.toElement,p=u,y=y?xi(y):null,y!==null&&(S=bu(y),b=y.tag,y!==S||b!==5&&b!==27&&b!==6)&&(y=null)):(p=null,y=u),p!==y)){if(b=bS,x="onMouseLeave",h="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(b=ES,x="onPointerLeave",h="onPointerEnter",v="pointer"),S=p==null?f:ds(p),E=y==null?f:ds(y),f=new b(x,v+"leave",p,r,c),f.target=S,f.relatedTarget=E,x=null,xi(c)===u&&(b=new b(h,v+"enter",y,r,c),b.target=E,b.relatedTarget=S,x=b),S=x,p&&y)t:{for(b=FB,h=p,v=y,E=0,x=h;x;x=b(x))E++;x=0;for(var _=v;_;_=b(_))x++;for(;0<E-x;)h=b(h),E--;for(;0<x-E;)v=b(v),x--;for(;E--;){if(h===v||v!==null&&h===v.alternate){b=h;break t}h=b(h),v=b(v)}b=null}else b=null;p!==null&&dx(d,f,p,b,!1),y!==null&&S!==null&&dx(d,S,y,b,!0)}}e:{if(f=u?ds(u):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var $=_S;else if($S(f))if(Vw)$=VF;else{$=KF;var C=jF}else p=f.nodeName,!p||p.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?u&&lb(u.elementType)&&($=_S):$=GF;if($&&($=$(e,u))){Gw(d,$,r,c);break e}C&&C(e,f,u),e==="focusout"&&u&&f.type==="number"&&u.memoizedProps.value!=null&&Bm(f,"number",f.value)}switch(C=u?ds(u):window,e){case"focusin":($S(C)||C.contentEditable==="true")&&(Ci=C,km=u,$s=null);break;case"focusout":$s=km=Ci=null;break;case"mousedown":zm=!0;break;case"contextmenu":case"mouseup":case"dragend":zm=!1,OS(d,r,c);break;case"selectionchange":if(qF)break;case"keydown":case"keyup":OS(d,r,c)}var w;if(ub)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else _i?jw(e,r)&&(A="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(A="onCompositionStart");A&&(Uw&&r.locale!=="ko"&&(_i||A!=="onCompositionStart"?A==="onCompositionEnd"&&_i&&(w=Hw()):(Oa=c,ob="value"in Oa?Oa.value:Oa.textContent,_i=!0)),C=Jd(u,A),0<C.length&&(A=new vS(A,e,null,r,c),d.push({event:A,listeners:C}),w?A.data=w:(w=Kw(r),w!==null&&(A.data=w)))),(w=IF?kF(e,r):zF(e,r))&&(A=Jd(u,"onBeforeInput"),0<A.length&&(C=new vS("onBeforeInput","beforeinput",null,r,c),d.push({event:C,listeners:A}),C.data=w)),RB(d,e,u,r,c)}z2(d,t)})}function Qs(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Jd(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=js(e,r),a!=null&&n.unshift(Qs(e,a,l)),a=js(e,t),a!=null&&n.push(Qs(e,a,l))),e.tag===3)return n;e=e.return}return[]}function FB(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function dx(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=js(r,l),u!=null&&i.unshift(Qs(r,u,s))):a||(u=js(r,l),u!=null&&i.push(Qs(r,u,s)))),r=r.return}i.length!==0&&e.push({event:t,listeners:i})}var BB=/\r\n?/g,PB=/\u0000|\uFFFD/g;function fx(e){return(typeof e=="string"?e:""+e).replace(BB,`
  504. `).replace(PB,"")}function U2(e,t){return t=fx(t),fx(e)===t}function Be(e,t,r,n,a,l){switch(r){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||Xi(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&Xi(e,""+n);break;case"className":uc(e,"class",n);break;case"tabIndex":uc(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":uc(e,r,n);break;case"style":kw(e,n,l);break;case"data":if(t!=="object"){uc(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=Xc(""+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"&&Be(e,t,"name",a.name,a,null),Be(e,t,"formEncType",a.formEncType,a,null),Be(e,t,"formMethod",a.formMethod,a,null),Be(e,t,"formTarget",a.formTarget,a,null)):(Be(e,t,"encType",a.encType,a,null),Be(e,t,"method",a.method,a,null),Be(e,t,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(r);break}n=Xc(""+n),e.setAttribute(r,n);break;case"onClick":n!=null&&(e.onclick=Xn);break;case"onScroll":n!=null&&he("scroll",e);break;case"onScrollEnd":n!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(W(61));if(r=n.__html,r!=null){if(a.children!=null)throw Error(W(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=Xc(""+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":he("beforetoggle",e),he("toggle",e),Wc(e,"popover",n);break;case"xlinkActuate":Bn(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Bn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Bn(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Bn(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Bn(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Bn(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Bn(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Bn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Bn(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Wc(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=dF.get(r)||r,Wc(e,r,n))}}function c0(e,t,r,n,a,l){switch(r){case"style":kw(e,n,l);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(W(61));if(r=n.__html,r!=null){if(a.children!=null)throw Error(W(60));e.innerHTML=r}}break;case"children":typeof n=="string"?Xi(e,n):(typeof n=="number"||typeof n=="bigint")&&Xi(e,""+n);break;case"onScroll":n!=null&&he("scroll",e);break;case"onScrollEnd":n!=null&&he("scrollend",e);break;case"onClick":n!=null&&(e.onclick=Xn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Lw.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[ir]||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,""):Wc(e,r,n)}}}function Nt(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("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(W(137,t));default:Be(e,t,l,i,r,null)}}a&&Be(e,t,"srcSet",r.srcSet,r,null),n&&Be(e,t,"src",r.src,r,null);return;case"input":he("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(W(137,t));break;default:Be(e,t,n,c,r,null)}}Bw(e,l,o,s,u,i,a,!1);return;case"select":he("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:Be(e,t,a,o,r,null)}t=l,r=i,e.multiple=!!n,t!=null?Fi(e,!!n,t,!1):r!=null&&Fi(e,!!n,r,!0);return;case"textarea":he("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(W(91));break;default:Be(e,t,i,o,r,null)}Iw(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:Be(e,t,s,n,r,null)}return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(n=0;n<Zs.length;n++)he(Zs[n],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("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(W(137,t));default:Be(e,t,u,n,r,null)}return;default:if(lb(t)){for(c in r)r.hasOwnProperty(c)&&(n=r[c],n!==void 0&&c0(e,t,c,n,r,void 0));return}}for(o in r)r.hasOwnProperty(o)&&(n=r[o],n!=null&&Be(e,t,o,n,r,null))}function IB(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)||Be(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(W(137,t));break;default:p!==d&&Be(e,t,f,p,n,d)}}Fm(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)||Be(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&&Be(e,t,a,l,n,s)}t=o,r=i,n=p,f!=null?Fi(e,!!r,f,!1):!!n!=!!r&&(t!=null?Fi(e,!!r,t,!0):Fi(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:Be(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(W(91));break;default:a!==l&&Be(e,t,i,a,n,l)}Pw(e,f,p);return;case"option":for(var y in r)if(f=r[y],r.hasOwnProperty(y)&&f!=null&&!n.hasOwnProperty(y))switch(y){case"selected":e.selected=!1;break;default:Be(e,t,y,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:Be(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 b in r)f=r[b],r.hasOwnProperty(b)&&f!=null&&!n.hasOwnProperty(b)&&Be(e,t,b,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(W(137,t));break;default:Be(e,t,u,f,n,p)}return;default:if(lb(t)){for(var S in r)f=r[S],r.hasOwnProperty(S)&&f!==void 0&&!n.hasOwnProperty(S)&&c0(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||c0(e,t,c,f,n,p);return}}for(var h in r)f=r[h],r.hasOwnProperty(h)&&f!=null&&!n.hasOwnProperty(h)&&Be(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||Be(e,t,d,f,n,p)}function px(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function kB(){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&&px(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&&px(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 d0=null,f0=null;function ef(e){return e.nodeType===9?e:e.ownerDocument}function hx(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 j2(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 p0(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 Vh=null;function zB(){var e=window.event;return e&&e.type==="popstate"?e===Vh?!1:(Vh=e,!0):(Vh=null,!1)}var K2=typeof setTimeout=="function"?setTimeout:void 0,HB=typeof clearTimeout=="function"?clearTimeout:void 0,gx=typeof Promise=="function"?Promise:void 0,UB=typeof queueMicrotask=="function"?queueMicrotask:typeof gx<"u"?function(e){return gx.resolve(null).then(e).catch(jB)}:K2;function jB(e){setTimeout(function(){throw e})}function Qa(e){return e==="head"}function mx(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),ao(t);return}n--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")n++;else if(r==="html")Ls(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,Ls(r);for(var l=r.firstChild;l;){var i=l.nextSibling,o=l.nodeName;l[xu]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&l.rel.toLowerCase()==="stylesheet"||r.removeChild(l),l=i}}else r==="body"&&Ls(e.ownerDocument.body);r=a}while(r);ao(t)}function yx(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 h0(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":h0(r),ab(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function KB(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[xu])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=jr(e.nextSibling),e===null)break}return null}function GB(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=jr(e.nextSibling),e===null))return null;return e}function G2(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=jr(e.nextSibling),e===null))return null;return e}function g0(e){return e.data==="$?"||e.data==="$~"}function m0(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function VB(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 jr(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 y0=null;function bx(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(t===0)return jr(e.nextSibling);t--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||t++}e=e.nextSibling}return null}function vx(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 V2(e,t,r){switch(t=ef(r),e){case"html":if(e=t.documentElement,!e)throw Error(W(452));return e;case"head":if(e=t.head,!e)throw Error(W(453));return e;case"body":if(e=t.body,!e)throw Error(W(454));return e;default:throw Error(W(451))}}function Ls(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ab(e)}var Gr=new Map,Ex=new Set;function tf(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var sa=Ae.d;Ae.d={f:YB,r:qB,D:WB,C:XB,L:ZB,m:QB,X:eP,S:JB,M:tP};function YB(){var e=sa.f(),t=tp();return e||t}function qB(e){var t=_o(e);t!==null&&t.tag===5&&t.type==="form"?kA(t):sa.r(e)}var Ao=typeof document>"u"?null:document;function Y2(e,t,r){var n=Ao;if(n&&typeof t=="string"&&t){var a=Ir(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof r=="string"&&(a+='[crossorigin="'+r+'"]'),Ex.has(a)||(Ex.add(a),e={rel:e,crossOrigin:r,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),Nt(t,"link",e),St(t),n.head.appendChild(t)))}}function WB(e){sa.D(e),Y2("dns-prefetch",e,null)}function XB(e,t){sa.C(e,t),Y2("preconnect",e,t)}function ZB(e,t,r){sa.L(e,t,r);var n=Ao;if(n&&e&&t){var a='link[rel="preload"][as="'+Ir(t)+'"]';t==="image"&&r&&r.imageSrcSet?(a+='[imagesrcset="'+Ir(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(a+='[imagesizes="'+Ir(r.imageSizes)+'"]')):a+='[href="'+Ir(e)+'"]';var l=a;switch(t){case"style":l=no(e);break;case"script":l=Oo(e)}Gr.has(l)||(e=Ve({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),Gr.set(l,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(Au(l))||t==="script"&&n.querySelector(Ou(l))||(t=n.createElement("link"),Nt(t,"link",e),St(t),n.head.appendChild(t)))}}function QB(e,t){sa.m(e,t);var r=Ao;if(r&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+Ir(n)+'"][href="'+Ir(e)+'"]',l=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=Oo(e)}if(!Gr.has(l)&&(e=Ve({rel:"modulepreload",href:e},t),Gr.set(l,e),r.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Ou(l)))return}n=r.createElement("link"),Nt(n,"link",e),St(n),r.head.appendChild(n)}}}function JB(e,t,r){sa.S(e,t,r);var n=Ao;if(n&&e){var a=Mi(n).hoistableStyles,l=no(e);t=t||"default";var i=a.get(l);if(!i){var o={loading:0,preload:null};if(i=n.querySelector(Au(l)))o.loading=5;else{e=Ve({rel:"stylesheet",href:e,"data-precedence":t},r),(r=Gr.get(l))&&jb(e,r);var s=i=n.createElement("link");St(s),Nt(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,id(i,t,n)}i={type:"stylesheet",instance:i,count:1,state:o},a.set(l,i)}}}function eP(e,t){sa.X(e,t);var r=Ao;if(r&&e){var n=Mi(r).hoistableScripts,a=Oo(e),l=n.get(a);l||(l=r.querySelector(Ou(a)),l||(e=Ve({src:e,async:!0},t),(t=Gr.get(a))&&Kb(e,t),l=r.createElement("script"),St(l),Nt(l,"link",e),r.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},n.set(a,l))}}function tP(e,t){sa.M(e,t);var r=Ao;if(r&&e){var n=Mi(r).hoistableScripts,a=Oo(e),l=n.get(a);l||(l=r.querySelector(Ou(a)),l||(e=Ve({src:e,async:!0,type:"module"},t),(t=Gr.get(a))&&Kb(e,t),l=r.createElement("script"),St(l),Nt(l,"link",e),r.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},n.set(a,l))}}function Sx(e,t,r,n){var a=(a=Fa.current)?tf(a):null;if(!a)throw Error(W(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=no(r.href),r=Mi(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=no(r.href);var l=Mi(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(Au(e)))&&!l._p&&(i.instance=l,i.state.loading=5),Gr.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},Gr.set(e,r),l||rP(a,e,r,i.state))),t&&n===null)throw Error(W(528,""));return i}if(t&&n!==null)throw Error(W(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Oo(r),r=Mi(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(W(444,e))}}function no(e){return'href="'+Ir(e)+'"'}function Au(e){return'link[rel="stylesheet"]['+e+"]"}function q2(e){return Ve({},e,{"data-precedence":e.precedence,precedence:null})}function rP(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}),Nt(t,"link",r),St(t),e.head.appendChild(t))}function Oo(e){return'[src="'+Ir(e)+'"]'}function Ou(e){return"script[async]"+e}function xx(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Ir(r.href)+'"]');if(n)return t.instance=n,St(n),n;var a=Ve({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),St(n),Nt(n,"style",a),id(n,r.precedence,e),t.instance=n;case"stylesheet":a=no(r.href);var l=e.querySelector(Au(a));if(l)return t.state.loading|=4,t.instance=l,St(l),l;n=q2(r),(a=Gr.get(a))&&jb(n,a),l=(e.ownerDocument||e).createElement("link"),St(l);var i=l;return i._p=new Promise(function(o,s){i.onload=o,i.onerror=s}),Nt(l,"link",n),t.state.loading|=4,id(l,r.precedence,e),t.instance=l;case"script":return l=Oo(r.src),(a=e.querySelector(Ou(l)))?(t.instance=a,St(a),a):(n=r,(a=Gr.get(l))&&(n=Ve({},r),Kb(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),St(a),Nt(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(W(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(n=t.instance,t.state.loading|=4,id(n,r.precedence,e));return t.instance}function id(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 jb(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Kb(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var od=null;function $x(e,t,r){if(od===null){var n=new Map,a=od=new Map;a.set(r,n)}else a=od,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[xu]||l[At]||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 _x(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function nP(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 W2(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function aP(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=no(n.href),l=t.querySelector(Au(a));if(l){t=l._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=rf.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=l,St(l);return}l=t.ownerDocument||t,n=q2(n),(a=Gr.get(a))&&jb(n,a),l=l.createElement("link"),St(l);var i=l;i._p=new Promise(function(o,s){i.onload=o,i.onerror=s}),Nt(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=rf.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var Yh=0;function lP(e,t){return e.stylesheets&&e.count===0&&sd(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var n=setTimeout(function(){if(e.stylesheets&&sd(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4+t);0<e.imgBytes&&Yh===0&&(Yh=62500*kB());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&sd(e,e.stylesheets),e.unsuspend)){var l=e.unsuspend;e.unsuspend=null,l()}},(e.imgBytes>Yh?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function rf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)sd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var nf=null;function sd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,nf=new Map,t.forEach(iP,e),nf=null,rf.call(e))}function iP(e,t){if(!(t.state.loading&4)){var r=nf.get(e);if(r)var n=r.get(null);else{r=new Map,nf.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=rf.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 Js={$$typeof:Wn,Provider:null,Consumer:null,_currentValue:_l,_currentValue2:_l,_threadCount:0};function oP(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=mh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mh(0),this.hiddenUpdates=mh(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 X2(e,t,r,n,a,l,i,o,s,u,c,d){return e=new oP(e,t,r,i,s,u,c,d,o),t=1,l===!0&&(t|=24),l=gr(3,null,null,t),e.current=l,l.stateNode=e,t=mb(),t.refCount++,e.pooledCache=t,t.refCount++,l.memoizedState={element:n,isDehydrated:r,cache:t},vb(l),e}function Z2(e){return e?(e=Ai,e):Ai}function Q2(e,t,r,n,a,l){a=Z2(a),n.context===null?n.context=a:n.pendingContext=a,n=Pa(t),n.payload={element:r},l=l===void 0?null:l,l!==null&&(n.callback=l),r=Ia(e,n,t),r!==null&&(lr(r,e,t),Cs(r,e,t))}function Cx(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Gb(e,t){Cx(e,t),(e=e.alternate)&&Cx(e,t)}function J2(e){if(e.tag===13||e.tag===31){var t=Wl(e,67108864);t!==null&&lr(t,e,67108864),Gb(e,67108864)}}function Tx(e){if(e.tag===13||e.tag===31){var t=Er();t=rb(t);var r=Wl(e,t);r!==null&&lr(r,e,t),Gb(e,t)}}var af=!0;function sP(e,t,r,n){var a=ae.T;ae.T=null;var l=Ae.p;try{Ae.p=2,Vb(e,t,r,n)}finally{Ae.p=l,ae.T=a}}function uP(e,t,r,n){var a=ae.T;ae.T=null;var l=Ae.p;try{Ae.p=8,Vb(e,t,r,n)}finally{Ae.p=l,ae.T=a}}function Vb(e,t,r,n){if(af){var a=b0(n);if(a===null)Gh(e,t,n,lf,r),wx(e,n);else if(dP(a,e,t,r,n))n.stopPropagation();else if(wx(e,n),t&4&&-1<cP.indexOf(e)){for(;a!==null;){var l=_o(a);if(l!==null)switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var i=pl(l.pendingLanes);if(i!==0){var o=l;for(o.pendingLanes|=2,o.entangledLanes|=2;i;){var s=1<<31-vr(i);o.entanglements[1]|=s,i&=~s}Dn(l),!(we&6)&&(qd=yr()+500,wu(0))}}break;case 31:case 13:o=Wl(l,2),o!==null&&lr(o,l,2),tp(),Gb(l,2)}if(l=b0(n),l===null&&Gh(e,t,n,lf,r),l===a)break;a=l}a!==null&&n.stopPropagation()}else Gh(e,t,n,null,r)}}function b0(e){return e=ib(e),Yb(e)}var lf=null;function Yb(e){if(lf=null,e=xi(e),e!==null){var t=bu(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=vw(t),e!==null)return e;e=null}else if(r===31){if(e=Ew(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 lf=e,null}function eO(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(WM()){case _w:return 2;case Cw:return 8;case Md:case XM:return 32;case Tw:return 268435456;default:return 32}default:return 32}}var v0=!1,Ha=null,Ua=null,ja=null,eu=new Map,tu=new Map,Ta=[],cP="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 wx(e,t){switch(e){case"focusin":case"focusout":Ha=null;break;case"dragenter":case"dragleave":Ua=null;break;case"mouseover":case"mouseout":ja=null;break;case"pointerover":case"pointerout":eu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":tu.delete(t.pointerId)}}function Qo(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=_o(t),t!==null&&J2(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function dP(e,t,r,n,a){switch(t){case"focusin":return Ha=Qo(Ha,e,t,r,n,a),!0;case"dragenter":return Ua=Qo(Ua,e,t,r,n,a),!0;case"mouseover":return ja=Qo(ja,e,t,r,n,a),!0;case"pointerover":var l=a.pointerId;return eu.set(l,Qo(eu.get(l)||null,e,t,r,n,a)),!0;case"gotpointercapture":return l=a.pointerId,tu.set(l,Qo(tu.get(l)||null,e,t,r,n,a)),!0}return!1}function tO(e){var t=xi(e.target);if(t!==null){var r=bu(t);if(r!==null){if(t=r.tag,t===13){if(t=vw(r),t!==null){e.blockedOn=t,dS(e.priority,function(){Tx(r)});return}}else if(t===31){if(t=Ew(r),t!==null){e.blockedOn=t,dS(e.priority,function(){Tx(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 ud(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=b0(e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Pm=n,r.target.dispatchEvent(n),Pm=null}else return t=_o(r),t!==null&&J2(t),e.blockedOn=r,!1;t.shift()}return!0}function Ax(e,t,r){ud(e)&&r.delete(t)}function fP(){v0=!1,Ha!==null&&ud(Ha)&&(Ha=null),Ua!==null&&ud(Ua)&&(Ua=null),ja!==null&&ud(ja)&&(ja=null),eu.forEach(Ax),tu.forEach(Ax)}function yc(e,t){e.blockedOn===t&&(e.blockedOn=null,v0||(v0=!0,bt.unstable_scheduleCallback(bt.unstable_NormalPriority,fP)))}var bc=null;function Ox(e){bc!==e&&(bc=e,bt.unstable_scheduleCallback(bt.unstable_NormalPriority,function(){bc===e&&(bc=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(Yb(n||r)===null)continue;break}var l=_o(r);l!==null&&(e.splice(t,3),t-=3,Jm(l,{pending:!0,data:a,method:r.method,action:n},n,a))}}))}function ao(e){function t(s){return yc(s,e)}Ha!==null&&yc(Ha,e),Ua!==null&&yc(Ua,e),ja!==null&&yc(ja,e),eu.forEach(t),tu.forEach(t);for(var r=0;r<Ta.length;r++){var n=Ta[r];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Ta.length&&(r=Ta[0],r.blockedOn===null);)tO(r),r.blockedOn===null&&Ta.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[ir]||null;if(typeof l=="function")i||Ox(r);else if(i){var o=null;if(l&&l.hasAttribute("formAction")){if(a=l,i=l[ir]||null)o=i.formAction;else if(Yb(a)!==null)continue}else o=i.action;typeof o=="function"?r[n+1]=o:(r.splice(n,3),n-=3),Ox(r)}}}function rO(){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 qb(e){this._internalRoot=e}ap.prototype.render=qb.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(W(409));var r=t.current,n=Er();Q2(r,n,e,t,null,null)};ap.prototype.unmount=qb.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Q2(e.current,2,null,e,null,null),tp(),t[$o]=null}};function ap(e){this._internalRoot=e}ap.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rw();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Ta.length&&t!==0&&t<Ta[r].priority;r++);Ta.splice(r,0,e),r===0&&tO(e)}};var Dx=yw.version;if(Dx!=="19.2.7")throw Error(W(527,Dx,"19.2.7"));Ae.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(W(188)):(e=Object.keys(e).join(","),Error(W(268,e)));return e=UM(t),e=e!==null?Sw(e):null,e=e===null?null:e.stateNode,e};var pP={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:ae,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vc.isDisabled&&vc.supportsFiber)try{vu=vc.inject(pP),br=vc}catch{}}Hf.createRoot=function(e,t){if(!bw(e))throw Error(W(299));var r=!1,n="",a=YA,l=qA,i=WA;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=X2(e,1,!1,null,null,r,n,null,a,l,i,rO),e[$o]=t.current,Ub(e),new qb(t)};Hf.hydrateRoot=function(e,t,r){if(!bw(e))throw Error(W(299));var n=!1,a="",l=YA,i=qA,o=WA,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=X2(e,1,!0,t,r??null,n,a,s,l,i,o,rO),t.context=Z2(null),r=t.current,n=Er(),n=rb(n),a=Pa(n),a.callback=null,Ia(r,a,n),r=n,t.current.lanes=r,Su(t,r),Dn(t),e[$o]=t.current,Ub(e),new ap(t)};Hf.version="19.2.7";function nO(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(nO)}catch(e){console.error(e)}}nO(),cw.exports=Hf;var hP=cw.exports,of=new Map;function gP(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var mP=({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 yP=async(e,t,r)=>{let n=await vP(t,r);if(gP()){n.render(e);return}let{promise:a,resolve:l}=Promise.withResolvers();return n.render(g.createElement(mP,{callback:l},e)),a},bP=(e,t)=>{let r=of.get(e);r&&(r.unmount(),of.delete(e))},vP=async(e,t)=>{let r=of.get(e);return r||(r=hP.createRoot(e,t),of.set(e,r)),r},ln=(e,t)=>{let r=e.replace(/\s+/g,"-");return t?`control-${t}-${r}`:`control-${r}`},lp=(e,t)=>{let r=e.replace(/\s+/g,"-");return t?`set-${t}-${r}`:`set-${r}`};function Lt(){return Lt=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},Lt.apply(null,arguments)}function EP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ru(e,t){return ru=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ru(e,t)}function SP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ru(e,t)}function E0(e){return E0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},E0(e)}function xP(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function aO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aO=function(){return!!e})()}function $P(e,t,r){if(aO())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&ru(a,r.prototype),a}function S0(e){var t=typeof Map=="function"?new Map:void 0;return S0=function(r){if(r===null||!xP(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 $P(r,arguments,E0(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ru(n,r)},S0(e)}var xn=function(e){SP(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,EP(n)}return t}(S0(Error));function qh(e){return Math.round(e*255)}function _P(e,t,r){return qh(e)+","+qh(t)+","+qh(r)}function sf(e,t,r,n){if(n===void 0&&(n=_P),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 Rx={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 CP(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Rx[t]?"#"+Rx[t]:e}var TP=/^#[a-fA-F0-9]{6}$/,wP=/^#[a-fA-F0-9]{8}$/,AP=/^#[a-fA-F0-9]{3}$/,OP=/^#[a-fA-F0-9]{4}$/,Wh=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,DP=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,RP=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,NP=/^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 lo(e){if(typeof e!="string")throw new xn(3);var t=CP(e);if(t.match(TP))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(wP)){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(AP))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(OP)){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=Wh.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var l=DP.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=RP.exec(t);if(i){var o=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,c="rgb("+sf(o,s,u)+")",d=Wh.exec(c);if(!d)throw new xn(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=NP.exec(t.substring(0,50));if(f){var p=parseInt(""+f[1],10),y=parseInt(""+f[2],10)/100,b=parseInt(""+f[3],10)/100,S="rgb("+sf(p,y,b)+")",h=Wh.exec(S);if(!h)throw new xn(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 xn(5)}function LP(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 Ja(e){return LP(lo(e))}var MP=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},x0=MP;function ml(e){var t=e.toString(16);return t.length===1?"0"+t:t}function Xh(e){return ml(Math.round(e*255))}function FP(e,t,r){return x0("#"+Xh(e)+Xh(t)+Xh(r))}function lO(e,t,r){return sf(e,t,r,FP)}function BP(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return lO(e.hue,e.saturation,e.lightness);throw new xn(1)}function PP(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?lO(e.hue,e.saturation,e.lightness):"rgba("+sf(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new xn(2)}function $0(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return x0("#"+ml(e)+ml(t)+ml(r));if(typeof e=="object"&&t===void 0&&r===void 0)return x0("#"+ml(e.red)+ml(e.green)+ml(e.blue));throw new xn(6)}function Il(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=lo(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?$0(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?$0(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new xn(7)}var IP=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},kP=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},zP=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},HP=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function el(e){if(typeof e!="object")throw new xn(8);if(kP(e))return Il(e);if(IP(e))return $0(e);if(HP(e))return PP(e);if(zP(e))return BP(e);throw new xn(8)}function iO(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):iO(e,t,n)}}function _r(e){return iO(e,e.length,[])}function UP(e,t){if(t==="transparent")return t;var r=Ja(t);return el(Lt({},r,{hue:r.hue+parseFloat(e)}))}_r(UP);function Do(e,t,r){return Math.max(e,Math.min(t,r))}function jP(e,t){if(t==="transparent")return t;var r=Ja(t);return el(Lt({},r,{lightness:Do(0,1,r.lightness-parseFloat(e))}))}var KP=_r(jP),It=KP;function GP(e,t){if(t==="transparent")return t;var r=Ja(t);return el(Lt({},r,{saturation:Do(0,1,r.saturation-parseFloat(e))}))}_r(GP);function VP(e,t){if(t==="transparent")return t;var r=Ja(t);return el(Lt({},r,{lightness:Do(0,1,r.lightness+parseFloat(e))}))}var YP=_r(VP),cd=YP;function qP(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=lo(t),a=Lt({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),l=lo(r),i=Lt({},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 Il(p)}var WP=_r(qP),oO=WP;function XP(e,t){if(t==="transparent")return t;var r=lo(t),n=typeof r.alpha=="number"?r.alpha:1,a=Lt({},r,{alpha:Do(0,1,(n*100+parseFloat(e)*100)/100)});return Il(a)}var ZP=_r(XP),QP=ZP;function JP(e,t){if(t==="transparent")return t;var r=Ja(t);return el(Lt({},r,{saturation:Do(0,1,r.saturation+parseFloat(e))}))}_r(JP);function eI(e,t){return t==="transparent"?t:el(Lt({},Ja(t),{hue:parseFloat(e)}))}_r(eI);function tI(e,t){return t==="transparent"?t:el(Lt({},Ja(t),{lightness:parseFloat(e)}))}_r(tI);function rI(e,t){return t==="transparent"?t:el(Lt({},Ja(t),{saturation:parseFloat(e)}))}_r(rI);function nI(e,t){return t==="transparent"?t:oO(parseFloat(e),"rgb(0, 0, 0)",t)}_r(nI);function aI(e,t){return t==="transparent"?t:oO(parseFloat(e),"rgb(255, 255, 255)",t)}_r(aI);function lI(e,t){if(t==="transparent")return t;var r=lo(t),n=typeof r.alpha=="number"?r.alpha:1,a=Lt({},r,{alpha:Do(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Il(a)}var iI=_r(lI),oa=iI,ne={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"},Yn={app:"#F6F9FC",bar:ne.lightest,content:ne.lightest,preview:ne.lightest,gridCellSize:10,positive:"#F1FFEB",warning:"#FFF9EB",negative:"#FFF0EB",critical:"#D13800"},rn={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}},_0={light:{fgColor:{default:ne.darkest,muted:ne.dark,accent:ne.secondary,inverse:ne.lightest,positive:"#427C27",warning:"#7A4100",negative:"#C23400",critical:"#FFFFFF"},bgColor:{default:ne.lightest,muted:Yn.app,positive:"#F1FFEB",warning:"#FFF7EB",negative:"#FFF0EB",critical:"#D13800"},borderColor:{default:ne.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"}}},oI={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#479DFF",appBg:"#1B1C1D",appContentBg:"#222325",appHoverBg:"#233952",appPreviewBg:ne.lightest,appBorderColor:"hsl(0 0% 100% / 0.1)",appBorderRadius:4,fontBase:rn.fonts.base,fontCode:rn.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},sI=oI,uI={base:"light",colorPrimary:ne.primary,colorSecondary:ne.secondary,appBg:Yn.app,appContentBg:ne.lightest,appHoverBg:"#DBECFF",appPreviewBg:ne.lightest,appBorderColor:ne.border,appBorderRadius:4,fontBase:rn.fonts.base,fontCode:rn.fonts.mono,textColor:ne.darkest,textInverseColor:ne.lightest,textMutedColor:ne.dark,barTextColor:ne.dark,barHoverColor:"#005CC7",barSelectedColor:"#0063D6",barBg:ne.lightest,buttonBg:Yn.app,buttonBorder:ne.medium,booleanBg:ne.mediumlight,booleanSelectedBg:ne.lightest,inputBg:ne.lightest,inputBorder:ne.border,inputTextColor:ne.darkest,inputBorderRadius:4},C0=uI;const{logger:cI}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:dI}=__STORYBOOK_MODULE_GLOBAL__;var{window:Zh}=dI,fI=e=>({color:e}),pI=e=>typeof e!="string"?(cI.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,hI=e=>!/(gradient|var|calc)/.test(e),gI=(e,t)=>e==="darken"?Il(`${It(1,t)}`,.95):e==="lighten"?Il(`${cd(1,t)}`,.95):t,mI=e=>t=>{if(!pI(t)||!hI(t))return t;try{return gI(e,t)}catch{return t}},Wb=mI("lighten"),Xb=()=>!Zh||!Zh.matchMedia?"light":Zh.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",Nx={light:C0,dark:sI},dd=Xb(),Ol={...Nx,normal:Nx[dd]},sO=(e={base:dd},t)=>{let r={...Ol[dd],...Ol[e.base]||{},...e,base:Ol[e.base]?e.base:dd};return{...t,...r,barSelectedColor:e.barSelectedColor||r.colorSecondary}},yI=zt({"../../node_modules/react-is/cjs/react-is.production.min.js"(e){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,l=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,y=t?Symbol.for("react.memo"):60115,b=t?Symbol.for("react.lazy"):60116,S=t?Symbol.for("react.block"):60121,h=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,E=t?Symbol.for("react.scope"):60119;function x($){if(typeof $=="object"&&$!==null){var C=$.$$typeof;switch(C){case r:switch($=$.type,$){case u:case c:case a:case i:case l:case f:return $;default:switch($=$&&$.$$typeof,$){case s:case d:case b:case y:case o:return $;default:return C}}case n:return C}}}function _($){return x($)===c}e.AsyncMode=u,e.ConcurrentMode=c,e.ContextConsumer=s,e.ContextProvider=o,e.Element=r,e.ForwardRef=d,e.Fragment=a,e.Lazy=b,e.Memo=y,e.Portal=n,e.Profiler=i,e.StrictMode=l,e.Suspense=f,e.isAsyncMode=function($){return _($)||x($)===u},e.isConcurrentMode=_,e.isContextConsumer=function($){return x($)===s},e.isContextProvider=function($){return x($)===o},e.isElement=function($){return typeof $=="object"&&$!==null&&$.$$typeof===r},e.isForwardRef=function($){return x($)===d},e.isFragment=function($){return x($)===a},e.isLazy=function($){return x($)===b},e.isMemo=function($){return x($)===y},e.isPortal=function($){return x($)===n},e.isProfiler=function($){return x($)===i},e.isStrictMode=function($){return x($)===l},e.isSuspense=function($){return x($)===f},e.isValidElementType=function($){return typeof $=="string"||typeof $=="function"||$===a||$===c||$===i||$===l||$===f||$===p||typeof $=="object"&&$!==null&&($.$$typeof===b||$.$$typeof===y||$.$$typeof===o||$.$$typeof===s||$.$$typeof===d||$.$$typeof===h||$.$$typeof===v||$.$$typeof===E||$.$$typeof===S)},e.typeOf=x}}),bI=zt({"../../node_modules/react-is/index.js"(e,t){t.exports=yI()}}),uO=zt({"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){var r=bI(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[r.ForwardRef]=l,o[r.Memo]=i;function s(S){return r.isMemo(S)?i:o[S.$$typeof]||n}var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,y=Object.prototype;function b(S,h,v){if(typeof h!="string"){if(y){var E=p(h);E&&E!==y&&b(S,E,v)}var x=c(h);d&&(x=x.concat(d(h)));for(var _=s(S),$=s(h),C=0;C<x.length;++C){var w=x[C];if(!a[w]&&!(v&&v[w])&&!($&&$[w])&&!(_&&_[w])){var A=f(h,w);try{u(S,w,A)}catch{}}}}return S}t.exports=b}});function vI(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function EI(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var SI=function(){function e(r){var n=this;this._insertTag=function(a){var l;n.tags.length===0?n.insertionPoint?l=n.insertionPoint.nextSibling:n.prepend?l=n.container.firstChild:l=n.before:l=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,l),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(EI(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var a=vI(n);try{a.insertRule(r,a.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Pt="-ms-",uf="-moz-",Ce="-webkit-",cO="comm",Zb="rule",Qb="decl",xI="@import",dO="@keyframes",$I="@layer",_I=Math.abs,ip=String.fromCharCode,CI=Object.assign;function TI(e,t){return Tt(e,0)^45?(((t<<2^Tt(e,0))<<2^Tt(e,1))<<2^Tt(e,2))<<2^Tt(e,3):0}function fO(e){return e.trim()}function wI(e,t){return(e=t.exec(e))?e[0]:e}function Te(e,t,r){return e.replace(t,r)}function T0(e,t){return e.indexOf(t)}function Tt(e,t){return e.charCodeAt(t)|0}function nu(e,t,r){return e.slice(t,r)}function gn(e){return e.length}function Jb(e){return e.length}function Ec(e,t){return t.push(e),e}function AI(e,t){return e.map(t).join("")}var op=1,io=1,pO=0,or=0,ct=0,Ro="";function sp(e,t,r,n,a,l,i){return{value:e,root:t,parent:r,type:n,props:a,children:l,line:op,column:io,length:i,return:""}}function Jo(e,t){return CI(sp("",null,null,"",null,null,0),e,{length:-e.length},t)}function OI(){return ct}function DI(){return ct=or>0?Tt(Ro,--or):0,io--,ct===10&&(io=1,op--),ct}function Sr(){return ct=or<pO?Tt(Ro,or++):0,io++,ct===10&&(io=1,op++),ct}function wn(){return Tt(Ro,or)}function fd(){return or}function Du(e,t){return nu(Ro,e,t)}function au(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function hO(e){return op=io=1,pO=gn(Ro=e),or=0,[]}function gO(e){return Ro="",e}function pd(e){return fO(Du(or-1,w0(e===91?e+2:e===40?e+1:e)))}function RI(e){for(;(ct=wn())&&ct<33;)Sr();return au(e)>2||au(ct)>3?"":" "}function NI(e,t){for(;--t&&Sr()&&!(ct<48||ct>102||ct>57&&ct<65||ct>70&&ct<97););return Du(e,fd()+(t<6&&wn()==32&&Sr()==32))}function w0(e){for(;Sr();)switch(ct){case e:return or;case 34:case 39:e!==34&&e!==39&&w0(ct);break;case 40:e===41&&w0(e);break;case 92:Sr();break}return or}function LI(e,t){for(;Sr()&&e+ct!==57&&!(e+ct===84&&wn()===47););return"/*"+Du(t,or-1)+"*"+ip(e===47?e:Sr())}function MI(e){for(;!au(wn());)Sr();return Du(e,or)}function FI(e){return gO(hd("",null,null,null,[""],e=hO(e),0,[0],e))}function hd(e,t,r,n,a,l,i,o,s){for(var u=0,c=0,d=i,f=0,p=0,y=0,b=1,S=1,h=1,v=0,E="",x=a,_=l,$=n,C=E;S;)switch(y=v,v=Sr()){case 40:if(y!=108&&Tt(C,d-1)==58){T0(C+=Te(pd(v),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:C+=pd(v);break;case 9:case 10:case 13:case 32:C+=RI(y);break;case 92:C+=NI(fd()-1,7);continue;case 47:switch(wn()){case 42:case 47:Ec(BI(LI(Sr(),fd()),t,r),s);break;default:C+="/"}break;case 123*b:o[u++]=gn(C)*h;case 125*b:case 59:case 0:switch(v){case 0:case 125:S=0;case 59+c:h==-1&&(C=Te(C,/\f/g,"")),p>0&&gn(C)-d&&Ec(p>32?Mx(C+";",n,r,d-1):Mx(Te(C," ","")+";",n,r,d-2),s);break;case 59:C+=";";default:if(Ec($=Lx(C,t,r,u,c,a,o,E,x=[],_=[],d),l),v===123)if(c===0)hd(C,t,$,$,x,l,d,o,_);else switch(f===99&&Tt(C,3)===110?100:f){case 100:case 108:case 109:case 115:hd(e,$,$,n&&Ec(Lx(e,$,$,0,0,a,o,E,a,x=[],d),_),a,_,d,o,n?x:_);break;default:hd(C,$,$,$,[""],_,0,o,_)}}u=c=p=0,b=h=1,E=C="",d=i;break;case 58:d=1+gn(C),p=y;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&DI()==125)continue}switch(C+=ip(v),v*b){case 38:h=c>0?1:(C+="\f",-1);break;case 44:o[u++]=(gn(C)-1)*h,h=1;break;case 64:wn()===45&&(C+=pd(Sr())),f=wn(),c=d=gn(E=C+=MI(fd())),v++;break;case 45:y===45&&gn(C)==2&&(b=0)}}return l}function Lx(e,t,r,n,a,l,i,o,s,u,c){for(var d=a-1,f=a===0?l:[""],p=Jb(f),y=0,b=0,S=0;y<n;++y)for(var h=0,v=nu(e,d+1,d=_I(b=i[y])),E=e;h<p;++h)(E=fO(b>0?f[h]+" "+v:Te(v,/&\f/g,f[h])))&&(s[S++]=E);return sp(e,t,r,a===0?Zb:o,s,u,c)}function BI(e,t,r){return sp(e,t,r,cO,ip(OI()),nu(e,2,-2),0)}function Mx(e,t,r,n){return sp(e,t,r,Qb,nu(e,0,n),nu(e,n+1,-1),n)}function Hi(e,t){for(var r="",n=Jb(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function PI(e,t,r,n){switch(e.type){case $I:if(e.children.length)break;case xI:case Qb:return e.return=e.return||e.value;case cO:return"";case dO:return e.return=e.value+"{"+Hi(e.children,n)+"}";case Zb:e.value=e.props.join(",")}return gn(r=Hi(e.children,n))?e.return=e.value+"{"+r+"}":""}function II(e){var t=Jb(e);return function(r,n,a,l){for(var i="",o=0;o<t;o++)i+=e[o](r,n,a,l)||"";return i}}function kI(e){return function(t){t.root||(t=t.return)&&e(t)}}var Fx=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}};function mO(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var zI=function(e,t,r){for(var n=0,a=0;n=a,a=wn(),n===38&&a===12&&(t[r]=1),!au(a);)Sr();return Du(e,or)},HI=function(e,t){var r=-1,n=44;do switch(au(n)){case 0:n===38&&wn()===12&&(t[r]=1),e[r]+=zI(or-1,t,r);break;case 2:e[r]+=pd(n);break;case 4:if(n===44){e[++r]=wn()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=ip(n)}while(n=Sr());return e},UI=function(e,t){return gO(HI(hO(e),t))},Bx=new WeakMap,jI=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Bx.get(r))&&!n){Bx.set(e,!0);for(var a=[],l=UI(t,a),i=r.props,o=0,s=0;o<l.length;o++)for(var u=0;u<i.length;u++,s++)e.props[s]=a[o]?l[o].replace(/&\f/g,i[u]):i[u]+" "+l[o]}}},KI=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function yO(e,t){switch(TI(e,t)){case 5103:return Ce+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ce+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ce+e+uf+e+Pt+e+e;case 6828:case 4268:return Ce+e+Pt+e+e;case 6165:return Ce+e+Pt+"flex-"+e+e;case 5187:return Ce+e+Te(e,/(\w+).+(:[^]+)/,Ce+"box-$1$2"+Pt+"flex-$1$2")+e;case 5443:return Ce+e+Pt+"flex-item-"+Te(e,/flex-|-self/,"")+e;case 4675:return Ce+e+Pt+"flex-line-pack"+Te(e,/align-content|flex-|-self/,"")+e;case 5548:return Ce+e+Pt+Te(e,"shrink","negative")+e;case 5292:return Ce+e+Pt+Te(e,"basis","preferred-size")+e;case 6060:return Ce+"box-"+Te(e,"-grow","")+Ce+e+Pt+Te(e,"grow","positive")+e;case 4554:return Ce+Te(e,/([^-])(transform)/g,"$1"+Ce+"$2")+e;case 6187:return Te(Te(Te(e,/(zoom-|grab)/,Ce+"$1"),/(image-set)/,Ce+"$1"),e,"")+e;case 5495:case 3959:return Te(e,/(image-set\([^]*)/,Ce+"$1$`$1");case 4968:return Te(Te(e,/(.+:)(flex-)?(.*)/,Ce+"box-pack:$3"+Pt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ce+e+e;case 4095:case 3583:case 4068:case 2532:return Te(e,/(.+)-inline(.+)/,Ce+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(gn(e)-1-t>6)switch(Tt(e,t+1)){case 109:if(Tt(e,t+4)!==45)break;case 102:return Te(e,/(.+:)(.+)-([^]+)/,"$1"+Ce+"$2-$3$1"+uf+(Tt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~T0(e,"stretch")?yO(Te(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Tt(e,t+1)!==115)break;case 6444:switch(Tt(e,gn(e)-3-(~T0(e,"!important")&&10))){case 107:return Te(e,":",":"+Ce)+e;case 101:return Te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ce+(Tt(e,14)===45?"inline-":"")+"box$3$1"+Ce+"$2$3$1"+Pt+"$2box$3")+e}break;case 5936:switch(Tt(e,t+11)){case 114:return Ce+e+Pt+Te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ce+e+Pt+Te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ce+e+Pt+Te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ce+e+Pt+e+e}return e}var GI=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Qb:e.return=yO(e.value,e.length);break;case dO:return Hi([Jo(e,{value:Te(e.value,"@","@"+Ce)})],n);case Zb:if(e.length)return AI(e.props,function(a){switch(wI(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hi([Jo(e,{props:[Te(a,/:(read-\w+)/,":"+uf+"$1")]})],n);case"::placeholder":return Hi([Jo(e,{props:[Te(a,/:(plac\w+)/,":"+Ce+"input-$1")]}),Jo(e,{props:[Te(a,/:(plac\w+)/,":"+uf+"$1")]}),Jo(e,{props:[Te(a,/:(plac\w+)/,Pt+"input-$1")]})],n)}return""})}},VI=[GI],bO=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var b=y.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var n=e.stylisPlugins||VI,a={},l,i=[];l=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(y){for(var b=y.getAttribute("data-emotion").split(" "),S=1;S<b.length;S++)a[b[S]]=!0;i.push(y)});var o,s=[jI,KI];{var u,c=[PI,kI(function(y){u.insert(y)})],d=II(s.concat(n,c)),f=function(y){return Hi(FI(y),d)};o=function(y,b,S,h){u=S,f(y?y+"{"+b.styles+"}":b.styles),h&&(p.inserted[b.name]=!0)}}var p={key:t,sheet:new SI({key:t,container:l,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return p.sheet.hydrate(i),p};Wt(uO());var YI=!0;function e1(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(n+=a+" ")}),n}var up=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||YI===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},cp=function(e,t,r){up(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var a=t;do e.insert(t===a?"."+n:"",a,e.sheet,!0),a=a.next;while(a!==void 0)}};function qI(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var WI={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},XI=/[A-Z]|^ms/g,ZI=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vO=function(e){return e.charCodeAt(1)===45},Px=function(e){return e!=null&&typeof e!="boolean"},Qh=mO(function(e){return vO(e)?e:e.replace(XI,"-$&").toLowerCase()}),Ix=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(ZI,function(r,n,a){return mn={name:n,styles:a,next:mn},n})}return WI[e]!==1&&!vO(e)&&typeof t=="number"&&t!==0?t+"px":t};function lu(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return mn={name:a.name,styles:a.styles,next:mn},a.name;var l=r;if(l.styles!==void 0){var i=l.next;if(i!==void 0)for(;i!==void 0;)mn={name:i.name,styles:i.styles,next:mn},i=i.next;var o=l.styles+";";return o}return QI(e,t,r)}case"function":{if(e!==void 0){var s=mn,u=r(e);return mn=s,lu(e,t,u)}break}}var c=r;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function QI(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=lu(e,t,r[a])+";";else for(var l in r){var i=r[l];if(typeof i!="object"){var o=i;t!=null&&t[o]!==void 0?n+=l+"{"+t[o]+"}":Px(o)&&(n+=Qh(l)+":"+Ix(l,o)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)Px(i[s])&&(n+=Qh(l)+":"+Ix(l,i[s])+";");else{var u=lu(e,t,i);switch(l){case"animation":case"animationName":{n+=Qh(l)+":"+u+";";break}default:n+=l+"{"+u+"}"}}}return n}var kx=/label:\s*([^\s;{]+)\s*(;|$)/g,mn;function Ru(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";mn=void 0;var l=e[0];if(l==null||l.raw===void 0)n=!1,a+=lu(r,t,l);else{var i=l;a+=i[0]}for(var o=1;o<e.length;o++)if(a+=lu(r,t,e[o]),n){var s=l;a+=s[o]}kx.lastIndex=0;for(var u="",c;(c=kx.exec(a))!==null;)u+="-"+c[1];var d=qI(a)+u;return{name:d,styles:a,next:mn}}var JI=function(e){return e()},EO=g.useInsertionEffect?g.useInsertionEffect:!1,t1=EO||JI,zx=EO||g.useLayoutEffect,SO=g.createContext(typeof HTMLElement<"u"?bO({key:"css"}):null);SO.Provider;var dp=function(e){return g.forwardRef(function(t,r){var n=g.useContext(SO);return e(t,n,r)})},kl=g.createContext({}),fp=function(){return g.useContext(kl)},ek=function(e,t){if(typeof t=="function"){var r=t(e);return r}return Lt({},e,t)},tk=Fx(function(e){return Fx(function(t){return ek(e,t)})}),r1=function(e){var t=g.useContext(kl);return e.theme!==t&&(t=tk(t)(e.theme)),g.createElement(kl.Provider,{value:t},e.children)},n1={}.hasOwnProperty,A0="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",rk=function(e,t){var r={};for(var n in t)n1.call(t,n)&&(r[n]=t[n]);return r[A0]=e,r},nk=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return up(t,r,n),t1(function(){return cp(t,r,n)}),null},ak=dp(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var a=e[A0],l=[n],i="";typeof e.className=="string"?i=e1(t.registered,l,e.className):e.className!=null&&(i=e.className+" ");var o=Ru(l,void 0,g.useContext(kl));i+=t.key+"-"+o.name;var s={};for(var u in e)n1.call(e,u)&&u!=="css"&&u!==A0&&(s[u]=e[u]);return s.className=i,r&&(s.ref=r),g.createElement(g.Fragment,null,g.createElement(nk,{cache:t,serialized:o,isStringTag:typeof a=="string"}),g.createElement(a,s))}),lk=ak;Wt(uO());var O0=function(e,t){var r=arguments;if(t==null||!n1.call(t,"css"))return g.createElement.apply(void 0,r);var n=r.length,a=new Array(n);a[0]=lk,a[1]=rk(e,t);for(var l=2;l<n;l++)a[l]=r[l];return g.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(O0||(O0={}));dp(function(e,t){var r=e.styles,n=Ru([r],void 0,g.useContext(kl)),a=g.useRef();return zx(function(){var l=t.key+"-global",i=new t.sheet.constructor({key:l,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,s=document.querySelector('style[data-emotion="'+l+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),s!==null&&(o=!0,s.setAttribute("data-emotion",l),i.hydrate([s])),a.current=[i,o],function(){i.flush()}},[t]),zx(function(){var l=a.current,i=l[0],o=l[1];if(o){l[1]=!1;return}if(n.next!==void 0&&cp(t,n.next,!0),i.tags.length){var s=i.tags[i.tags.length-1].nextElementSibling;i.before=s,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});function pp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ru(t)}function _t(){var e=pp.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var ik=function e(t){for(var r=t.length,n=0,a="";n<r;n++){var l=t[n];if(l!=null){var i=void 0;switch(typeof l){case"boolean":break;case"object":{if(Array.isArray(l))i=e(l);else{i="";for(var o in l)l[o]&&o&&(i&&(i+=" "),i+=o)}break}default:i=l}i&&(a&&(a+=" "),a+=i)}}return a};function ok(e,t,r){var n=[],a=e1(e,n,r);return n.length<2?r:a+t(n)}var sk=function(e){var t=e.cache,r=e.serializedArr;return t1(function(){for(var n=0;n<r.length;n++)cp(t,r[n],!1)}),null};dp(function(e,t){var r=[],n=function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];var c=Ru(s,t.registered);return r.push(c),up(t,c,!1),t.key+"-"+c.name},a=function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];return ok(t.registered,n,ik(s))},l={css:n,cx:a,theme:g.useContext(kl)},i=e.children(l);return g.createElement(g.Fragment,null,g.createElement(sk,{cache:t,serializedArr:r}),i)});var uk=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,hp=mO(function(e){return uk.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),ck=hp,dk=function(e){return e!=="theme"},Hx=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?ck:dk},Ux=function(e,t,r){var n;if(t){var a=t.shouldForwardProp;n=e.__emotion_forwardProp&&a?function(l){return e.__emotion_forwardProp(l)&&a(l)}:a}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n},fk=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return up(t,r,n),t1(function(){return cp(t,r,n)}),null},pk=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,l,i;r!==void 0&&(l=r.label,i=r.target);var o=Ux(t,r,n),s=o||Hx(a),u=!s("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(l!==void 0&&d.push("label:"+l+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{var f=c[0];d.push(f[0]);for(var p=c.length,y=1;y<p;y++)d.push(c[y],f[y])}var b=dp(function(S,h,v){var E=u&&S.as||a,x="",_=[],$=S;if(S.theme==null){$={};for(var C in S)$[C]=S[C];$.theme=g.useContext(kl)}typeof S.className=="string"?x=e1(h.registered,_,S.className):S.className!=null&&(x=S.className+" ");var w=Ru(d.concat(_),h.registered,$);x+=h.key+"-"+w.name,i!==void 0&&(x+=" "+i);var A=u&&o===void 0?Hx(E):s,O={};for(var T in S)u&&T==="as"||A(T)&&(O[T]=S[T]);return O.className=x,v&&(O.ref=v),g.createElement(g.Fragment,null,g.createElement(fk,{cache:h,serialized:w,isStringTag:typeof E=="string"}),g.createElement(E,O))});return b.displayName=l!==void 0?l:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=a,b.__emotion_styles=d,b.__emotion_forwardProp=o,Object.defineProperty(b,"toString",{value:function(){return"."+i}}),b.withComponent=function(S,h){var v=e(S,Lt({},r,h,{shouldForwardProp:Ux(b,h,!0)}));return v.apply(void 0,d)},b}},hk=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],R=pk.bind(null);hk.forEach(function(e){R[e]=R(e)});var xO=Wt(Kl(),1),a1={position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",border:0},$O=(0,xO.default)(1)(({typography:e})=>({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}));(0,xO.default)(1)(({color:e,background:t,typography:r})=>{let n=$O({typography:r});return{...n,body:{...n.body,position:"fixed",width:"100vw",height:"100vh",overflow:"hidden",color:e.defaultText,background:t.app},hr:{...n.hr,borderTop:`1px solid ${e.border}`},".sb-sr-only, .sb-hidden-until-focus:not(:focus)":a1,".sb-hidden-until-focus":{opacity:0,transition:"opacity 150ms ease-out"},".sb-hidden-until-focus:focus":{opacity:1},"[data-sb-landmark]":{position:"relative"},"[data-sb-landmark]:focus-visible":{outline:"none"},"[data-sb-landmark]:focus-visible::after":{outline:`2px solid ${e.primary}`,outlineOffset:"-2px"},"[data-sb-landmark]::after":{content:"''",position:"absolute",inset:0,pointerEvents:"none"},".react-aria-Popover:focus-visible":{outline:"none"}}});var gk={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},mk=_t`
  505. from {
  506. transform: rotate(0deg);
  507. }
  508. to {
  509. transform: rotate(360deg);
  510. }
  511. `,_O=_t`
  512. 0%, 100% { opacity: 1; }
  513. 50% { opacity: .4; }
  514. `,yk=_t`
  515. 0% { transform: translateY(1px); }
  516. 25% { transform: translateY(0px); }
  517. 50% { transform: translateY(-3px); }
  518. 100% { transform: translateY(1px); }
  519. `,bk=_t`
  520. 0%, 100% { transform:translate3d(0,0,0); }
  521. 12.5%, 62.5% { transform:translate3d(-4px,0,0); }
  522. 37.5%, 87.5% { transform: translate3d(4px,0,0); }
  523. `,vk=pp`
  524. animation: ${_O} 1.5s ease-in-out infinite;
  525. color: transparent;
  526. cursor: progress;
  527. `,Ek=pp`
  528. transition: all 150ms ease-out;
  529. transform: translate3d(0, 0, 0);
  530. &:hover {
  531. transform: translate3d(0, -2px, 0);
  532. }
  533. &:active {
  534. transform: translate3d(0, 0, 0);
  535. }
  536. `,Sk={rotate360:mk,glow:_O,float:yk,jiggle:bk,inlineGlow:vk,hoverable:Ek},xk={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},$k={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},_k=e=>Object.entries(e).reduce((t,[r,n])=>({...t,[r]:fI(n)}),{}),Ck=({colors:e,mono:t})=>{let r=_k(e);return{token:{fontFamily:t,WebkitFontSmoothing:"antialiased","&.tag":r.red3,"&.comment":{...r.green1,fontStyle:"italic"},"&.prolog":{...r.green1,fontStyle:"italic"},"&.doctype":{...r.green1,fontStyle:"italic"},"&.cdata":{...r.green1,fontStyle:"italic"},"&.string":r.red1,"&.url":r.cyan1,"&.symbol":r.cyan1,"&.number":r.cyan1,"&.boolean":r.cyan1,"&.variable":r.cyan1,"&.constant":r.cyan1,"&.inserted":r.cyan1,"&.atrule":r.blue1,"&.keyword":r.blue1,"&.attr-value":r.blue1,"&.punctuation":r.gray1,"&.operator":r.gray1,"&.function":r.gray1,"&.deleted":r.red2,"&.important":{fontWeight:"bold"},"&.bold":{fontWeight:"bold"},"&.italic":{fontStyle:"italic"},"&.class-name":r.cyan2,"&.selector":r.red3,"&.attr-name":r.red4,"&.property":r.red4,"&.regex":r.red4,"&.entity":r.red4,"&.directive.tag .tag":{background:"#ffff00",...r.gray1}},"language-json .token.boolean":r.blue1,"language-json .token.number":r.blue1,"language-json .token.property":r.cyan2,namespace:{opacity:.7}}},Tk={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#eb0000",gray1:"#393A34",cyan1:"#008380",cyan2:"#007ca0",blue1:"#0000ff",blue2:"#00009f"},wk={green1:"#95999D",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},Ak=e=>({primary:e.colorPrimary,secondary:e.colorSecondary,tertiary:ne.tertiary,ancillary:ne.ancillary,orange:ne.orange,gold:ne.gold,green:ne.green,seafoam:ne.seafoam,purple:ne.purple,ultraviolet:ne.ultraviolet,lightest:ne.lightest,lighter:ne.lighter,light:ne.light,mediumlight:ne.mediumlight,medium:ne.medium,mediumdark:ne.mediumdark,dark:ne.dark,darker:ne.darker,darkest:ne.darkest,border:ne.border,positive:ne.positive,negative:ne.negative,warning:ne.warning,critical:ne.critical,defaultText:e.textColor||ne.darkest,inverseText:e.textInverseColor||ne.lightest,positiveText:ne.positiveText,negativeText:ne.negativeText,warningText:ne.warningText}),cf=(e=Ol[Xb()])=>{let{base:t,colorPrimary:r,colorSecondary:n,appBg:a,appContentBg:l,appHoverBg:i,appPreviewBg:o,appBorderColor:s,appBorderRadius:u,fontBase:c,fontCode:d,textColor:f,textInverseColor:p,barTextColor:y,barHoverColor:b,barSelectedColor:S,barBg:h,buttonBg:v,buttonBorder:E,booleanBg:x,booleanSelectedBg:_,inputBg:$,inputBorder:C,inputTextColor:w,inputBorderRadius:A,brandTitle:O,brandUrl:T,brandImage:M,brandTarget:P,gridCellSize:I,...H}=e;return{...H,base:t,...t==="dark"?_0.dark:_0.light,color:Ak(e),background:{app:a,bar:h,content:l,preview:o,gridCellSize:I||Yn.gridCellSize,hoverable:i,positive:Yn.positive,negative:Yn.negative,warning:Yn.warning,critical:Yn.critical},typography:{fonts:{base:c,mono:d},weight:rn.weight,size:rn.size},animation:Sk,easing:gk,input:{background:$,border:C,borderRadius:A,color:w},button:{background:v||$,border:E||C},boolean:{background:x||C,selectedBackground:_||$},layoutMargin:10,appBorderColor:s,appBorderRadius:u,barTextColor:y,barHoverColor:b||n,barSelectedColor:S||n,barBg:h,brand:{title:O,url:T,image:M||(O?null:void 0),target:P},code:Ck({colors:t==="dark"?wk:Tk,mono:d}),addonActionsTheme:{...t==="dark"?xk:$k,BASE_FONT_FAMILY:d,BASE_FONT_SIZE:rn.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:f,ARROW_COLOR:QP(.2,s),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:d,TREENODE_FONT_SIZE:rn.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12}}};const{logger:Ok}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Dk=e=>Object.keys(e).length===0,Jh=e=>e!=null&&typeof e=="object",Rk=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),Nk=()=>Object.create(null),CO=(e,t)=>e===t||!Jh(e)||!Jh(t)?{}:Object.keys(e).reduce((r,n)=>{if(Rk(t,n)){let a=CO(e[n],t[n]);return Jh(a)&&Dk(a)||(r[n]=a),r}return r[n]=void 0,r},Nk()),Lk=CO,TO=e=>{if(!e)return cf(C0);let t=Lk(C0,e);return Object.keys(t).length&&Ok.warn(Mr`
  537. Your theme is missing properties, you should update your theme!
  538. theme-data missing:
  539. `,t),cf(e)},df="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";const Mk=Object.freeze(Object.defineProperty({__proto__:null,ThemeProvider:r1,background:Yn,color:ne,convert:cf,create:sO,createCache:bO,createReset:$O,css:pp,ensure:TO,getPreferredColorScheme:Xb,ignoreSsrWarning:df,isPropValid:hp,get jsx(){return O0},keyframes:_t,lighten:Wb,srOnlyStyles:a1,styled:R,themes:Ol,tokens:_0,typography:rn,useTheme:fp},Symbol.toStringTag,{value:"Module"}));var wO={exports:{}},gp={};/**
  540. * @license React
  541. * react-jsx-runtime.production.js
  542. *
  543. * Copyright (c) Meta Platforms, Inc. and affiliates.
  544. *
  545. * This source code is licensed under the MIT license found in the
  546. * LICENSE file in the root directory of this source tree.
  547. */var Fk=Symbol.for("react.transitional.element"),Bk=Symbol.for("react.fragment");function AO(e,t,r){var n=null;if(r!==void 0&&(n=""+r),t.key!==void 0&&(n=""+t.key),"key"in t){r={};for(var a in t)a!=="key"&&(r[a]=t[a])}else r=t;return t=r.ref,{$$typeof:Fk,type:e,key:n,ref:t!==void 0?t:null,props:r}}gp.Fragment=Bk;gp.jsx=AO;gp.jsxs=AO;wO.exports=gp;var ye=wO.exports,Pk=R.div(({theme:e,$flexLayout:t=!1})=>[{background:e.background.content},t?{display:"inline-flex",marginInlineStart:"auto",alignSelf:"flex-end"}:{position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",zIndex:1}]),OO=R.button(({theme:e})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:e.color.defaultText,background:e.background.content,fontSize:12,lineHeight:"16px",fontFamily:e.typography.fonts.base,fontWeight:e.typography.weight.bold,borderTop:`1px solid ${e.appBorderColor}`,borderLeft:`1px solid ${e.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${e.appBorderColor}`},"& + *":{borderLeft:`1px solid ${e.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${e.color.secondary} 0 -3px 0 0 inset`,outline:"0 none","@media (forced-colors: active)":{outline:"1px solid highlight"}}}),({disabled:e})=>e&&{cursor:"not-allowed",opacity:.5});OO.displayName="ActionButton";var Ik=({actionItems:e,flexLayout:t=!1,...r})=>m.createElement(Pk,{...r,$flexLayout:t},e.map(({title:n,className:a,onClick:l,disabled:i},o)=>m.createElement(OO,{key:o,className:a,onClick:l,disabled:!!i},n)));function kk(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function DO(...e){return t=>e.forEach(r=>kk(r,t))}function Zl(...e){return g.useCallback(DO(...e),e)}var RO=g.forwardRef((e,t)=>{let{children:r,...n}=e,a=g.Children.toArray(r),l=a.find(Hk);if(l){let i=l.props.children,o=a.map(s=>s===l?g.Children.count(i)>1?g.Children.only(null):g.isValidElement(i)?i.props.children:null:s);return ye.jsx(D0,{...n,ref:t,children:g.isValidElement(i)?g.cloneElement(i,void 0,o):null})}return ye.jsx(D0,{...n,ref:t,children:r})});RO.displayName="Slot";var D0=g.forwardRef((e,t)=>{let{children:r,...n}=e;if(g.isValidElement(r)){let a=jk(r);return g.cloneElement(r,{...Uk(n,r.props),ref:t?DO(t,a):a})}return g.Children.count(r)>1?g.Children.only(null):null});D0.displayName="SlotClone";var zk=({children:e})=>ye.jsx(ye.Fragment,{children:e});function Hk(e){return g.isValidElement(e)&&e.type===zk}function Uk(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)=>{l(...i),a(...i)}:a&&(r[n]=a):n==="style"?r[n]={...a,...l}:n==="className"&&(r[n]=[a,l].filter(Boolean).join(" "))}return{...e,...r}}function jk(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 Kk=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Nu=Kk.reduce((e,t)=>{let r=g.forwardRef((n,a)=>{let{asChild:l,...i}=n,o=l?RO:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ye.jsx(o,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),R0=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{};function Gk(e,t){return g.useReducer((r,n)=>t[r][n]??r,e)}var Lu=e=>{let{present:t,children:r}=e,n=Vk(t),a=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),l=Zl(n.ref,Yk(a));return typeof r=="function"||n.isPresent?g.cloneElement(a,{ref:l}):null};Lu.displayName="Presence";function Vk(e){let[t,r]=g.useState(),n=g.useRef({}),a=g.useRef(e),l=g.useRef("none"),i=e?"mounted":"unmounted",[o,s]=Gk(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{let u=Sc(n.current);l.current=o==="mounted"?u:"none"},[o]),R0(()=>{let u=n.current,c=a.current;if(c!==e){let d=l.current,f=Sc(u);e?s("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(c&&d!==f?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,s]),R0(()=>{if(t){let u=d=>{let f=Sc(n.current).includes(d.animationName);d.target===t&&f&&xo.flushSync(()=>s("ANIMATION_END"))},c=d=>{d.target===t&&(l.current=Sc(n.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:g.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function Sc(e){return(e==null?void 0:e.animationName)||"none"}function Yk(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)}function qk(e,t=[]){let r=[];function n(l,i){let o=g.createContext(i),s=r.length;r=[...r,i];function u(d){let{scope:f,children:p,...y}=d,b=(f==null?void 0:f[e][s])||o,S=g.useMemo(()=>y,Object.values(y));return ye.jsx(b.Provider,{value:S,children:p})}function c(d,f){let p=(f==null?void 0:f[e][s])||o,y=g.useContext(p);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${l}\``)}return u.displayName=l+"Provider",[u,c]}let a=()=>{let l=r.map(i=>g.createContext(i));return function(i){let o=(i==null?void 0:i[e])||l;return g.useMemo(()=>({[`__scope${e}`]:{...i,[e]:o}}),[i,o])}};return a.scopeName=e,[n,Wk(a,...t)]}function Wk(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){let l=n.reduce((i,{useScope:o,scopeName:s})=>{let u=o(a)[`__scope${s}`];return{...i,...u}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return r.scopeName=t.scopeName,r}function El(e){let t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}var Xk=g.createContext(void 0);function Zk(e){let t=g.useContext(Xk);return e||t||"ltr"}function Qk(e,[t,r]){return Math.min(r,Math.max(t,e))}function Dl(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}function Jk(e,t){return g.useReducer((r,n)=>t[r][n]??r,e)}var l1="ScrollArea",[NO]=qk(l1),[ez,Yr]=NO(l1),LO=g.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:a,scrollHideDelay:l=600,...i}=e,[o,s]=g.useState(null),[u,c]=g.useState(null),[d,f]=g.useState(null),[p,y]=g.useState(null),[b,S]=g.useState(null),[h,v]=g.useState(0),[E,x]=g.useState(0),[_,$]=g.useState(!1),[C,w]=g.useState(!1),A=Zl(t,T=>s(T)),O=Zk(a);return ye.jsx(ez,{scope:r,type:n,dir:O,scrollHideDelay:l,scrollArea:o,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:y,scrollbarXEnabled:_,onScrollbarXEnabledChange:$,scrollbarY:b,onScrollbarYChange:S,scrollbarYEnabled:C,onScrollbarYEnabledChange:w,onCornerWidthChange:v,onCornerHeightChange:x,children:ye.jsx(Nu.div,{dir:O,...i,ref:A,style:{position:"relative","--radix-scroll-area-corner-width":h+"px","--radix-scroll-area-corner-height":E+"px",...e.style}})})});LO.displayName=l1;var MO="ScrollAreaViewport",FO=g.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:n,asChild:a,nonce:l,...i}=e,o=Yr(MO,r),s=g.useRef(null),u=Zl(t,s,o.onViewportChange);return ye.jsxs(ye.Fragment,{children:[ye.jsx("style",{dangerouslySetInnerHTML:{__html:`
  548. [data-radix-scroll-area-viewport] {
  549. scrollbar-width: none;
  550. -ms-overflow-style: none;
  551. -webkit-overflow-scrolling: touch;
  552. }
  553. [data-radix-scroll-area-viewport]::-webkit-scrollbar {
  554. display: none;
  555. }
  556. :where([data-radix-scroll-area-viewport]) {
  557. display: flex;
  558. flex-direction: column;
  559. align-items: stretch;
  560. }
  561. :where([data-radix-scroll-area-content]) {
  562. flex-grow: 1;
  563. }
  564. `},nonce:l}),ye.jsx(Nu.div,{"data-radix-scroll-area-viewport":"",...i,asChild:a,ref:u,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style},children:cz({asChild:a,children:n},c=>ye.jsx("div",{"data-radix-scroll-area-content":"",ref:o.onContentChange,style:{minWidth:o.scrollbarXEnabled?"fit-content":void 0},children:c}))})]})});FO.displayName=MO;var Rn="ScrollAreaScrollbar",BO=g.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=Yr(Rn,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:i}=a,o=e.orientation==="horizontal";return g.useEffect(()=>(o?l(!0):i(!0),()=>{o?l(!1):i(!1)}),[o,l,i]),a.type==="hover"?ye.jsx(tz,{...n,ref:t,forceMount:r}):a.type==="scroll"?ye.jsx(rz,{...n,ref:t,forceMount:r}):a.type==="auto"?ye.jsx(PO,{...n,ref:t,forceMount:r}):a.type==="always"?ye.jsx(i1,{...n,ref:t}):null});BO.displayName=Rn;var tz=g.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=Yr(Rn,e.__scopeScrollArea),[l,i]=g.useState(!1);return g.useEffect(()=>{let o=a.scrollArea,s=0;if(o){let u=()=>{window.clearTimeout(s),i(!0)},c=()=>{s=window.setTimeout(()=>i(!1),a.scrollHideDelay)};return o.addEventListener("pointerenter",u),o.addEventListener("pointerleave",c),()=>{window.clearTimeout(s),o.removeEventListener("pointerenter",u),o.removeEventListener("pointerleave",c)}}},[a.scrollArea,a.scrollHideDelay]),ye.jsx(Lu,{present:r||l,children:ye.jsx(PO,{"data-state":l?"visible":"hidden",...n,ref:t})})}),rz=g.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=Yr(Rn,e.__scopeScrollArea),l=e.orientation==="horizontal",i=yp(()=>s("SCROLL_END"),100),[o,s]=Jk("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return g.useEffect(()=>{if(o==="idle"){let u=window.setTimeout(()=>s("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(u)}},[o,a.scrollHideDelay,s]),g.useEffect(()=>{let u=a.viewport,c=l?"scrollLeft":"scrollTop";if(u){let d=u[c],f=()=>{let p=u[c];d!==p&&(s("SCROLL"),i()),d=p};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[a.viewport,l,s,i]),ye.jsx(Lu,{present:r||o!=="hidden",children:ye.jsx(i1,{"data-state":o==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:Dl(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:Dl(e.onPointerLeave,()=>s("POINTER_LEAVE"))})})}),PO=g.forwardRef((e,t)=>{let r=Yr(Rn,e.__scopeScrollArea),{forceMount:n,...a}=e,[l,i]=g.useState(!1),o=e.orientation==="horizontal",s=yp(()=>{if(r.viewport){let u=r.viewport.offsetWidth<r.viewport.scrollWidth,c=r.viewport.offsetHeight<r.viewport.scrollHeight;i(o?u:c)}},10);return oo(r.viewport,s),oo(r.content,s),ye.jsx(Lu,{present:n||l,children:ye.jsx(i1,{"data-state":l?"visible":"hidden",...a,ref:t})})}),i1=g.forwardRef((e,t)=>{let{orientation:r="vertical",...n}=e,a=Yr(Rn,e.__scopeScrollArea),l=g.useRef(null),i=g.useRef(0),[o,s]=g.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=UO(o.viewport,o.content),c={...n,sizes:o,onSizesChange:s,hasThumb:u>0&&u<1,onThumbChange:f=>l.current=f,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:f=>i.current=f};function d(f,p){return sz(f,i.current,o,p)}return r==="horizontal"?ye.jsx(nz,{...c,ref:t,onThumbPositionChange:()=>{if(a.viewport&&l.current){let f=a.viewport.scrollLeft,p=jx(f,o,a.dir);l.current.style.transform=`translate3d(${p}px, 0, 0)`}},onWheelScroll:f=>{a.viewport&&(a.viewport.scrollLeft=f)},onDragScroll:f=>{a.viewport&&(a.viewport.scrollLeft=d(f,a.dir))}}):r==="vertical"?ye.jsx(az,{...c,ref:t,onThumbPositionChange:()=>{if(a.viewport&&l.current){let f=a.viewport.scrollTop,p=jx(f,o);l.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:f=>{a.viewport&&(a.viewport.scrollTop=f)},onDragScroll:f=>{a.viewport&&(a.viewport.scrollTop=d(f))}}):null}),nz=g.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...a}=e,l=Yr(Rn,e.__scopeScrollArea),[i,o]=g.useState(),s=g.useRef(null),u=Zl(t,s,l.onScrollbarXChange);return g.useEffect(()=>{s.current&&o(getComputedStyle(s.current))},[s]),ye.jsx(kO,{"data-orientation":"horizontal",...a,ref:u,sizes:r,style:{bottom:0,left:l.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:l.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":mp(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.x),onDragScroll:c=>e.onDragScroll(c.x),onWheelScroll:(c,d)=>{if(l.viewport){let f=l.viewport.scrollLeft+c.deltaX;e.onWheelScroll(f),KO(f,d)&&c.preventDefault()}},onResize:()=>{s.current&&l.viewport&&i&&n({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:pf(i.paddingLeft),paddingEnd:pf(i.paddingRight)}})}})}),az=g.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...a}=e,l=Yr(Rn,e.__scopeScrollArea),[i,o]=g.useState(),s=g.useRef(null),u=Zl(t,s,l.onScrollbarYChange);return g.useEffect(()=>{s.current&&o(getComputedStyle(s.current))},[s]),ye.jsx(kO,{"data-orientation":"vertical",...a,ref:u,sizes:r,style:{top:0,right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":mp(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.y),onDragScroll:c=>e.onDragScroll(c.y),onWheelScroll:(c,d)=>{if(l.viewport){let f=l.viewport.scrollTop+c.deltaY;e.onWheelScroll(f),KO(f,d)&&c.preventDefault()}},onResize:()=>{s.current&&l.viewport&&i&&n({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:pf(i.paddingTop),paddingEnd:pf(i.paddingBottom)}})}})}),[lz,IO]=NO(Rn),kO=g.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:n,hasThumb:a,onThumbChange:l,onThumbPointerUp:i,onThumbPointerDown:o,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,p=Yr(Rn,r),[y,b]=g.useState(null),S=Zl(t,A=>b(A)),h=g.useRef(null),v=g.useRef(""),E=p.viewport,x=n.content-n.viewport,_=El(c),$=El(s),C=yp(d,10);function w(A){if(h.current){let O=A.clientX-h.current.left,T=A.clientY-h.current.top;u({x:O,y:T})}}return g.useEffect(()=>{let A=O=>{let T=O.target;y!=null&&y.contains(T)&&_(O,x)};return document.addEventListener("wheel",A,{passive:!1}),()=>document.removeEventListener("wheel",A,{passive:!1})},[E,y,x,_]),g.useEffect($,[n,$]),oo(y,C),oo(p.content,C),ye.jsx(lz,{scope:r,scrollbar:y,hasThumb:a,onThumbChange:El(l),onThumbPointerUp:El(i),onThumbPositionChange:$,onThumbPointerDown:El(o),children:ye.jsx(Nu.div,{...f,ref:S,style:{position:"absolute",...f.style},onPointerDown:Dl(e.onPointerDown,A=>{A.button===0&&(A.target.setPointerCapture(A.pointerId),h.current=y.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),w(A))}),onPointerMove:Dl(e.onPointerMove,w),onPointerUp:Dl(e.onPointerUp,A=>{let O=A.target;O.hasPointerCapture(A.pointerId)&&O.releasePointerCapture(A.pointerId),document.body.style.webkitUserSelect=v.current,p.viewport&&(p.viewport.style.scrollBehavior=""),h.current=null})})})}),ff="ScrollAreaThumb",zO=g.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=IO(ff,e.__scopeScrollArea);return ye.jsx(Lu,{present:r||a.hasThumb,children:ye.jsx(iz,{ref:t,...n})})}),iz=g.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:n,...a}=e,l=Yr(ff,r),i=IO(ff,r),{onThumbPositionChange:o}=i,s=Zl(t,d=>i.onThumbChange(d)),u=g.useRef(),c=yp(()=>{u.current&&(u.current(),u.current=void 0)},100);return g.useEffect(()=>{let d=l.viewport;if(d){let f=()=>{if(c(),!u.current){let p=uz(d,o);u.current=p,o()}};return o(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[l.viewport,c,o]),ye.jsx(Nu.div,{"data-state":i.hasThumb?"visible":"hidden",...a,ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:Dl(e.onPointerDownCapture,d=>{let f=d.target.getBoundingClientRect(),p=d.clientX-f.left,y=d.clientY-f.top;i.onThumbPointerDown({x:p,y})}),onPointerUp:Dl(e.onPointerUp,i.onThumbPointerUp)})});zO.displayName=ff;var o1="ScrollAreaCorner",HO=g.forwardRef((e,t)=>{let r=Yr(o1,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?ye.jsx(oz,{...e,ref:t}):null});HO.displayName=o1;var oz=g.forwardRef((e,t)=>{let{__scopeScrollArea:r,...n}=e,a=Yr(o1,r),[l,i]=g.useState(0),[o,s]=g.useState(0),u=!!(l&&o);return oo(a.scrollbarX,()=>{var d;let c=((d=a.scrollbarX)==null?void 0:d.offsetHeight)||0;a.onCornerHeightChange(c),s(c)}),oo(a.scrollbarY,()=>{var d;let c=((d=a.scrollbarY)==null?void 0:d.offsetWidth)||0;a.onCornerWidthChange(c),i(c)}),u?ye.jsx(Nu.div,{...n,ref:t,style:{width:l,height:o,position:"absolute",right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function pf(e){return e?parseInt(e,10):0}function UO(e,t){let r=e/t;return isNaN(r)?0:r}function mp(e){let t=UO(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function sz(e,t,r,n="ltr"){let a=mp(r),l=a/2,i=t||l,o=a-i,s=r.scrollbar.paddingStart+i,u=r.scrollbar.size-r.scrollbar.paddingEnd-o,c=r.content-r.viewport,d=n==="ltr"?[0,c]:[c*-1,0];return jO([s,u],d)(e)}function jx(e,t,r="ltr"){let n=mp(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-a,i=t.content-t.viewport,o=l-n,s=r==="ltr"?[0,i]:[i*-1,0],u=Qk(e,s);return jO([0,i],[0,o])(u)}function jO(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function KO(e,t){return e>0&&e<t}var uz=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function a(){let l={left:e.scrollLeft,top:e.scrollTop},i=r.left!==l.left,o=r.top!==l.top;(i||o)&&t(),r=l,n=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(n)};function yp(e,t){let r=El(e),n=g.useRef(0);return g.useEffect(()=>()=>window.clearTimeout(n.current),[]),g.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function oo(e,t){let r=El(t);R0(()=>{let n=0;if(e){let a=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return a.observe(e),()=>{window.cancelAnimationFrame(n),a.unobserve(e)}}},[e,r])}function cz(e,t){let{asChild:r,children:n}=e;if(!r)return typeof t=="function"?t(n):t;let a=g.Children.only(n);return g.cloneElement(a,{children:typeof t=="function"?t(a.props.children):t})}var dz=LO,fz=FO,pz=BO,hz=zO,gz=HO,mz=R(dz)(({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`})),yz=R(fz)(({focusable:e,theme:t})=>({width:"100%",height:"100%","&:focus":e?{outline:`2px solid ${t.color.secondary}`,outlineOffset:-2}:{}})),Kx=R(pz)(({offset:e,horizontal:t,vertical:r})=>({display:"flex",userSelect:"none",touchAction:"none",background:"transparent",transition:"all 0.2s ease-out",borderRadius:"var(--scrollbar-size)",zIndex:1,'&[data-orientation="vertical"]':{width:"var(--scrollbar-size)",paddingRight:e,marginTop:e,marginBottom:t==="true"&&r==="true"?0:e},'&[data-orientation="horizontal"]':{flexDirection:"column",height:"var(--scrollbar-size)",paddingBottom:e,marginLeft:e,marginRight:t==="true"&&r==="true"?0:e}})),Gx=R(hz)(({theme:e})=>({flex:1,background:e.textMutedColor,opacity:.5,borderRadius:"var(--scrollbar-size)",position:"relative",transition:"opacity 0.2s ease-out",zIndex:1,"&:hover":{opacity:.8},"::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",width:"100%",height:"100%"}})),s1=g.forwardRef(({children:e,horizontal:t=!1,vertical:r=!1,offset:n=2,scrollbarSize:a=6,scrollPadding:l=0,className:i,focusable:o=!1},s)=>m.createElement(mz,{scrollbarsize:a,offset:n,className:i},m.createElement(yz,{ref:s,style:{scrollPadding:l},tabIndex:o?0:void 0,focusable:o},e),t&&m.createElement(Kx,{orientation:"horizontal",offset:n,horizontal:t.toString(),vertical:r.toString()},m.createElement(Gx,null)),r&&m.createElement(Kx,{orientation:"vertical",offset:n,horizontal:t.toString(),vertical:r.toString()},m.createElement(Gx,null)),t&&r&&m.createElement(gz,null)));s1.displayName="ScrollArea";var Dr=null;function Vx(e,t="assertive",r=7e3){Dr?Dr.announce(e,t,r):(Dr=new bz,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Dr.announce(e,t,r):setTimeout(()=>{Dr!=null&&Dr.isAttached()&&(Dr==null||Dr.announce(e,t,r))},100))}function qpe(e){Dr&&Dr.clear(e)}var bz=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 vz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Ez=g.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},g.createElement("path",{d:"M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z",fill:e}),g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:e}))),Sz=g.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},g.createElement("path",{d:"M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z",fill:e}),g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",fill:e}))),xz=g.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},g.createElement("path",{d:"M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z",fill:e}))),$z=g.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},g.createElement("path",{d:"M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z",fill:e}))),N0=g.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},g.createElement("path",{d:"M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",fill:e}),g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",fill:e}))),_z=g.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.746.07A.5.5 0 0011.5.003h-6a.5.5 0 00-.5.5v2.5H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h8a.5.5 0 00.5-.5v-2.5h4.5a.5.5 0 00.5-.5v-8a.498.498 0 00-.15-.357L11.857.154a.506.506 0 00-.11-.085zM9 10.003h4v-7h-1.5a.5.5 0 01-.5-.5v-1.5H6v2h.5a.5.5 0 01.357.15L8.85 5.147c.093.09.15.217.15.357v4.5zm-8-6v9h7v-7H6.5a.5.5 0 01-.5-.5v-1.5H1z",fill:e}))),Yx=g.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},g.createElement("path",{d:"M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z",fill:e}))),Cz=g.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.854 2.146l-2-2a.5.5 0 00-.708 0l-1.5 1.5-8.995 8.995a.499.499 0 00-.143.268L.012 13.39a.495.495 0 00.135.463.5.5 0 00.462.134l2.482-.496a.495.495 0 00.267-.143l8.995-8.995 1.5-1.5a.5.5 0 000-.708zM12 3.293l.793-.793L11.5 1.207 10.707 2 12 3.293zm-2-.586L1.707 11 3 12.293 11.293 4 10 2.707zM1.137 12.863l.17-.849.679.679-.849.17z",fill:e}))),GO=g.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},g.createElement("path",{d:"M11.146 2.146a.5.5 0 11.707.707L7.708 7l4.147 4.146a.5.5 0 11-.707.707L7 7.708l-4.146 4.147a.5.5 0 01-.707-.708L6.293 7 2.147 2.853a.5.5 0 11.707-.707L7 6.293l4.146-4.147z",fill:e}))),Tz=g.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},g.createElement("path",{d:"M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z",fill:e}),g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),wz=g.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},g.createElement("path",{d:"M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:e}),g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),Az=g.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},g.createElement("path",{d:"M9.854 4.146a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:e}),g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),Oz=g.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm2.854-9.854a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:e}))),Dz=g.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},g.createElement("path",{d:"M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z",fill:e}),g.createElement("path",{d:"M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z",fill:e}))),Rz=g.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},g.createElement("path",{d:"M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z",fill:e}),g.createElement("path",{d:"M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z",fill:e}))),Nz=g.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},g.createElement("path",{d:"M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z",fill:e}))),VO=g.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},g.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:e}))),Lz=g.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},g.createElement("path",{d:"M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z",fill:e}))),YO=g.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},g.createElement("path",{d:"M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z",fill:e}))),Mz=g.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.104 10.146a.5.5 0 01-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 11.708.708L5.957 7l3.147 3.146z",fill:e}))),Fz=g.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.896 10.146a.5.5 0 00.708.708l3.5-3.5a.5.5 0 000-.708l-3.5-3.5a.5.5 0 10-.708.708L8.043 7l-3.147 3.146z",fill:e}))),Bz=g.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},g.createElement("path",{d:"M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z",fill:e}))),Pz=g.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},g.createElement("path",{d:"M5.5 1A.5.5 0 005 .5H2a.5.5 0 000 1h1.535a6.502 6.502 0 002.383 11.91.5.5 0 10.165-.986A5.502 5.502 0 014.5 2.1V4a.5.5 0 001 0V1.353a.5.5 0 000-.023V1zM7.507 1a.5.5 0 01.576-.41 6.502 6.502 0 012.383 11.91H12a.5.5 0 010 1H9a.5.5 0 01-.5-.5v-3a.5.5 0 011 0v1.9A5.5 5.5 0 007.917 1.576.5.5 0 017.507 1z",fill:e}))),Iz=g.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},g.createElement("path",{d:"M7.092.5H7a6.5 6.5 0 106.41 7.583.5.5 0 10-.986-.166A5.495 5.495 0 017 12.5a5.5 5.5 0 010-11h.006a5.5 5.5 0 014.894 3H10a.5.5 0 000 1h3a.5.5 0 00.5-.5V2a.5.5 0 00-1 0v1.535A6.495 6.495 0 007.092.5z",fill:e}))),qx=new Map,kz="UNIVERSAL_STORE:",Or={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},yl=class ie{constructor(t,r){if(this.debugging=!1,this.listeners=new Map([["*",new Set]]),this.getState=()=>(this.debug("getState",{state:this.state}),this.state),this.subscribe=(n,a)=>{let l=typeof n=="function",i=l?"*":n,o=l?n:a;if(this.debug("subscribe",{eventType:i,listener:o}),!o)throw new TypeError(`Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`);return this.listeners.has(i)||this.listeners.set(i,new Set),this.listeners.get(i).add(o),()=>{var s;this.debug("unsubscribe",{eventType:i,listener:o}),this.listeners.has(i)&&(this.listeners.get(i).delete(o),((s=this.listeners.get(i))==null?void 0:s.size)===0&&this.listeners.delete(i))}},this.send=n=>{if(this.debug("send",{event:n}),this.status!==ie.Status.READY)throw new TypeError(Mr`Cannot send event before store is ready. You can get the current status with store.status,
  565. or await store.readyPromise to wait for the store to be ready before sending events.
  566. ${JSON.stringify({event:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.emitToListeners(n,{actor:this.actor}),this.emitToChannel(n,{actor:this.actor})},this.debugging=t.debug??!1,!ie.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(ie.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?ie.ActorType.LEADER:ie.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${kz}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===ie.ActorType.LEADER)this.syncing={state:Or.RESOLVED,promise:Promise.resolve()};else{let n,a,l=new Promise((i,o)=>{n=()=>{this.syncing.state===Or.PENDING&&(this.syncing.state=Or.RESOLVED,i())},a=s=>{this.syncing.state===Or.PENDING&&(this.syncing.state=Or.REJECTED,o(s))}});this.syncing={state:Or.PENDING,promise:l,resolve:n,reject:a}}this.getState=this.getState.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),this.onStateChange=this.onStateChange.bind(this),this.send=this.send.bind(this),this.emitToChannel=this.emitToChannel.bind(this),this.prepareThis=this.prepareThis.bind(this),this.emitToListeners=this.emitToListeners.bind(this),this.handleChannelEvents=this.handleChannelEvents.bind(this),this.debug=this.debug.bind(this),this.channel=(r==null?void 0:r.channel)??ie.preparation.channel,this.environment=(r==null?void 0:r.environment)??ie.preparation.environment,this.channel&&this.environment?(ie.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):ie.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,n=new Promise((a,l)=>{t=i=>{a(i)},r=(...i)=>{l(i)}});ie.preparation={resolve:t,reject:r,promise:n}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??ie.Environment.UNKNOWN})}get status(){var t;if(!this.channel||!this.environment)return ie.Status.UNPREPARED;switch((t=this.syncing)==null?void 0:t.state){case Or.PENDING:case void 0:return ie.Status.SYNCING;case Or.REJECTED:return ie.Status.ERROR;case Or.RESOLVED:default:return ie.Status.READY}}untilReady(){var t;return Promise.all([ie.preparation.promise,(t=this.syncing)==null?void 0:t.promise])}static create(t){if(!t||typeof(t==null?void 0:t.id)!="string")throw new TypeError("id is required and must be a string, when creating a UniversalStore");t.debug&&console.debug(Mr`[UniversalStore]
  567. create`,{options:t});let r=qx.get(t.id);if(r)return console.warn(Mr`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
  568. You should reuse the existing instance instead of trying to create a new one.`),r;ie.isInternalConstructing=!0;let n=new ie(t);return qx.set(t.id,n),n}static __prepare(t,r){ie.preparation.channel=t,ie.preparation.environment=r,ie.preparation.resolve({channel:t,environment:r})}setState(t){let r=this.state,n=typeof t=="function"?t(r):t;if(this.debug("setState",{newState:n,previousState:r,updater:t}),this.status!==ie.Status.READY)throw new TypeError(Mr`Cannot set state before store is ready. You can get the current status with store.status,
  569. or await store.readyPromise to wait for the store to be ready before sending events.
  570. ${JSON.stringify({newState:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=n;let a={type:ie.InternalEventType.SET_STATE,payload:{state:n,previousState:r}};this.emitToChannel(a,{actor:this.actor}),this.emitToListeners(a,{actor:this.actor})}onStateChange(t){return this.debug("onStateChange",{listener:t}),this.subscribe(ie.InternalEventType.SET_STATE,({payload:r},n)=>{t(r.state,r.previousState,n)})}emitToChannel(t,r){var n;this.debug("emitToChannel",{event:t,eventInfo:r,channel:!!this.channel}),(n=this.channel)==null||n.emit(this.channelEventName,{event:t,eventInfo:r})}prepareThis({channel:t,environment:r}){this.channel=t,this.environment=r,this.debug("prepared",{channel:!!t,environment:r}),this.channel.on(this.channelEventName,this.handleChannelEvents),this.actor.type===ie.ActorType.LEADER?this.emitToChannel({type:ie.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:ie.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:ie.InternalEventType.EXISTING_STATE_REQUEST},{actor:this.actor}),setTimeout(()=>{this.syncing.reject(new TypeError(`No existing state found for follower with id: '${this.id}'. Make sure a leader with the same id exists before creating a follower.`))},1e3))}emitToListeners(t,r){let n=this.listeners.get(t.type),a=this.listeners.get("*");this.debug("emitToListeners",{event:t,eventInfo:r,eventTypeListeners:n,everythingListeners:a}),[...n??[],...a??[]].forEach(l=>l(t,r))}handleChannelEvents(t){var a,l,i,o,s;let{event:r,eventInfo:n}=t;if([n.actor.id,(a=n.forwardingActor)==null?void 0:a.id].includes(this.actor.id)){this.debug("handleChannelEvents: Ignoring event from self",{channelEvent:t});return}else if(((l=this.syncing)==null?void 0:l.state)===Or.PENDING&&r.type!==ie.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===ie.ActorType.LEADER){let u=!0;switch(r.type){case ie.InternalEventType.EXISTING_STATE_REQUEST:u=!1;let c={type:ie.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug("handleChannelEvents: responding to existing state request",{responseEvent:c}),this.emitToChannel(c,{actor:this.actor}),this.emitToListeners(c,{actor:this.actor});break;case ie.InternalEventType.LEADER_CREATED:u=!1,this.syncing.state=Or.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(Mr`Detected multiple UniversalStore leaders created with the same id "${this.id}".
  571. Only one leader can exists at a time, your stores are now in an invalid state.
  572. Leaders detected:
  573. this: ${JSON.stringify(this.actor,null,2)}
  574. other: ${JSON.stringify(n.actor,null,2)}`);break}u&&(this.debug("handleChannelEvents: forwarding event",{channelEvent:t}),this.emitToChannel(r,{actor:n.actor,forwardingActor:this.actor}))}if(this.actor.type===ie.ActorType.FOLLOWER)switch(r.type){case ie.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),((i=this.syncing)==null?void 0:i.state)!==Or.PENDING)break;(s=(o=this.syncing).resolve)==null||s.call(o);let u={type:ie.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(u,n);break}r.type===ie.InternalEventType.SET_STATE&&(this.debug("handleChannelEvents: Setting state",{event:r}),this.state=r.payload.state),this.emitToListeners(r,{actor:n.actor})}debug(t,r){this.debugging&&console.debug(Mr`[UniversalStore::${this.id}::${this.environment??ie.Environment.UNKNOWN}]
  575. ${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){ie.preparation.reject(new Error("reset")),ie.setupPreparationPromise(),ie.isInternalConstructing=!1}};yl.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},yl.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},yl.InternalEventType={EXISTING_STATE_REQUEST:"__EXISTING_STATE_REQUEST",EXISTING_STATE_RESPONSE:"__EXISTING_STATE_RESPONSE",SET_STATE:"__SET_STATE",LEADER_CREATED:"__LEADER_CREATED",FOLLOWER_CREATED:"__FOLLOWER_CREATED"},yl.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},yl.isInternalConstructing=!1,yl.setupPreparationPromise();var u1=yl,zz=Object.create,qO=Object.defineProperty,Hz=Object.getOwnPropertyDescriptor,WO=Object.getOwnPropertyNames,Uz=Object.getPrototypeOf,jz=Object.prototype.hasOwnProperty,de=(e,t)=>function(){return t||(0,e[WO(e)[0]])((t={exports:{}}).exports,t),t.exports},Kz=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of WO(t))!jz.call(e,a)&&a!==r&&qO(e,a,{get:()=>t[a],enumerable:!(n=Hz(t,a))||n.enumerable});return e},c1=(e,t,r)=>(r=e!=null?zz(Uz(e)):{},Kz(!e||!e.__esModule?qO(r,"default",{value:e,enumerable:!0}):r,e)),Gz=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],Vz=["detail"];function Yz(e){let t=Gz.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of Vz.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var XO=de({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),qz=de({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),Wz=de({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),Xz=de({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),Zz=de({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),Qz=de({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),d1=de({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),Jz=de({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),eH=de({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),tH=de({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),rH=de({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),nH=de({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),aH=de({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),lH=de({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),iH=de({"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}}}),oH=de({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=iH();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),sH=de({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),f1=de({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=sH();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),uH=de({"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}}),ZO=de({"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}}}),QO=de({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=ZO();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),JO=de({"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}}),e5=de({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=XO();t.exports=r.getPrototypeOf||null}}),cH=de({"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 v=c.apply(this,i(d,arguments));return Object(v)===v?v:this}return c.apply(u,i(d,arguments))},y=a(0,c.length-d.length),b=[],S=0;S<y;S++)b[S]="$"+S;if(f=Function("binder","return function ("+s(b,",")+"){ return binder.apply(this,arguments); }")(p),c.prototype){var h=function(){};h.prototype=c.prototype,f.prototype=new h,h.prototype=null}return f}}}),bp=de({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=cH();t.exports=Function.prototype.bind||r}}),p1=de({"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}}),t5=de({"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}}),dH=de({"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}}),fH=de({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=bp(),n=t5(),a=p1(),l=dH();t.exports=l||r.call(a,n)}}),r5=de({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=bp(),n=d1(),a=p1(),l=fH();t.exports=function(i){if(i.length<1||typeof i[0]!="function")throw new n("a function is required");return l(r,a,i)}}}),pH=de({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=r5(),n=f1(),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}}),hH=de({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=JO(),n=e5(),a=pH();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}}),n5=de({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,a=bp();t.exports=a.call(r,n)}}),gH=de({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=XO(),a=qz(),l=Wz(),i=Xz(),o=Zz(),s=Qz(),u=d1(),c=Jz(),d=eH(),f=tH(),p=rH(),y=nH(),b=aH(),S=lH(),h=oH(),v=Function,E=function(K){try{return v('"use strict"; return ('+K+").constructor;")()}catch{}},x=f1(),_=uH(),$=function(){throw new u},C=x?function(){try{return arguments.callee,$}catch{try{return x(arguments,"callee").get}catch{return $}}}():$,w=QO()(),A=hH(),O=e5(),T=JO(),M=t5(),P=p1(),I={},H=typeof Uint8Array>"u"||!A?r:A(Uint8Array),L={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":w&&A?A([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%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%":v,"%GeneratorFunction%":I,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&A?A(A([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!w||!A?r:A(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"||!w||!A?r:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&A?A(""[Symbol.iterator]()):r,"%Symbol%":w?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":C,"%TypedArray%":H,"%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%":P,"%Function.prototype.apply%":M,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":O,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":y,"%Math.pow%":b,"%Math.round%":S,"%Math.sign%":h,"%Reflect.getPrototypeOf%":T};if(A)try{null.error}catch(K){D=A(A(K)),L["%Error.prototype%"]=D}var D,N=function K(k){var Y;if(k==="%AsyncFunction%")Y=E("async function () {}");else if(k==="%GeneratorFunction%")Y=E("function* () {}");else if(k==="%AsyncGeneratorFunction%")Y=E("async function* () {}");else if(k==="%AsyncGenerator%"){var Q=K("%AsyncGeneratorFunction%");Q&&(Y=Q.prototype)}else if(k==="%AsyncIteratorPrototype%"){var re=K("%AsyncGenerator%");re&&A&&(Y=A(re.prototype))}return L[k]=Y,Y},U={__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"]},B=bp(),G=n5(),V=B.call(P,Array.prototype.concat),Z=B.call(M,Array.prototype.splice),J=B.call(P,String.prototype.replace),j=B.call(P,String.prototype.slice),X=B.call(P,RegExp.prototype.exec),te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,F=/\\(\\)?/g,z=function(K){var k=j(K,0,1),Y=j(K,-1);if(k==="%"&&Y!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(Y==="%"&&k!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var Q=[];return J(K,te,function(re,pe,ee,Re){Q[Q.length]=ee?J(Re,F,"$1"):pe||re}),Q},q=function(K,k){var Y=K,Q;if(G(U,Y)&&(Q=U[Y],Y="%"+Q[0]+"%"),G(L,Y)){var re=L[Y];if(re===I&&(re=N(Y)),typeof re>"u"&&!k)throw new u("intrinsic "+K+" exists, but is not available. Please file an issue!");return{alias:Q,name:Y,value:re}}throw new s("intrinsic "+K+" does not exist!")};t.exports=function(K,k){if(typeof K!="string"||K.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof k!="boolean")throw new u('"allowMissing" argument must be a boolean');if(X(/^%?[^%]*%?$/,K)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Y=z(K),Q=Y.length>0?Y[0]:"",re=q("%"+Q+"%",k),pe=re.name,ee=re.value,Re=!1,Oe=re.alias;Oe&&(Q=Oe[0],Z(Y,V([0,1],Oe)));for(var be=1,le=!0;be<Y.length;be+=1){var Me=Y[be],Kt=j(Me,0,1),qr=j(Me,-1);if((Kt==='"'||Kt==="'"||Kt==="`"||qr==='"'||qr==="'"||qr==="`")&&Kt!==qr)throw new s("property names with quotes must have matching quotes");if((Me==="constructor"||!le)&&(Re=!0),Q+="."+Me,pe="%"+Q+"%",G(L,pe))ee=L[pe];else if(ee!=null){if(!(Me in ee)){if(!k)throw new u("base intrinsic for "+K+" exists, but the property is not available.");return}if(x&&be+1>=Y.length){var Nn=x(ee,Me);le=!!Nn,le&&"get"in Nn&&!("originalValue"in Nn.get)?ee=Nn.get:ee=ee[Me]}else le=G(ee,Me),ee=ee[Me];le&&!Re&&(L[pe]=ee)}}return ee}}}),h1=de({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=gH(),n=r5(),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}}}),mH=de({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=ZO();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),a5=de({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=h1(),n=mH()(),a=n5(),l=f1(),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 y=l(p,"lastIndex"),b=y&&a(y,"value");if(!b)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}}),yH=de({"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)}}}),bH=de({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=h1(),n=a5(),a=r("RegExp.prototype.exec"),l=d1();t.exports=function(i){if(!n(i))throw new l("`regex` must be a RegExp");return function(o){return a(i,o)!==null}}}}),vH=de({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=h1(),n=r("Object.prototype.toString"),a=QO()(),l=bH();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}}),EH=c1(a5()),SH=c1(yH()),xH=c1(vH());function $H(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var _H=typeof global=="object"&&global&&global.Object===Object&&global,CH=_H,TH=typeof self=="object"&&self&&self.Object===Object&&self,wH=CH||TH||Function("return this")(),g1=wH,AH=g1.Symbol,so=AH,l5=Object.prototype,OH=l5.hasOwnProperty,DH=l5.toString,es=so?so.toStringTag:void 0;function RH(e){var t=OH.call(e,es),r=e[es];try{e[es]=void 0;var n=!0}catch{}var a=DH.call(e);return n&&(t?e[es]=r:delete e[es]),a}var NH=RH,LH=Object.prototype,MH=LH.toString;function FH(e){return MH.call(e)}var BH=FH,PH="[object Null]",IH="[object Undefined]",Wx=so?so.toStringTag:void 0;function kH(e){return e==null?e===void 0?IH:PH:Wx&&Wx in Object(e)?NH(e):BH(e)}var i5=kH;function zH(e){return e!=null&&typeof e=="object"}var HH=zH,UH="[object Symbol]";function jH(e){return typeof e=="symbol"||HH(e)&&i5(e)==UH}var m1=jH;function KH(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var GH=KH,VH=Array.isArray,y1=VH,Xx=so?so.prototype:void 0,Zx=Xx?Xx.toString:void 0;function o5(e){if(typeof e=="string")return e;if(y1(e))return GH(e,o5)+"";if(m1(e))return Zx?Zx.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var YH=o5;function qH(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var s5=qH,WH="[object AsyncFunction]",XH="[object Function]",ZH="[object GeneratorFunction]",QH="[object Proxy]";function JH(e){if(!s5(e))return!1;var t=i5(e);return t==XH||t==ZH||t==WH||t==QH}var eU=JH,tU=g1["__core-js_shared__"],eg=tU,Qx=function(){var e=/[^.]+$/.exec(eg&&eg.keys&&eg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function rU(e){return!!Qx&&Qx in e}var nU=rU,aU=Function.prototype,lU=aU.toString;function iU(e){if(e!=null){try{return lU.call(e)}catch{}try{return e+""}catch{}}return""}var oU=iU,sU=/[\\^$.*+?()[\]{}|]/g,uU=/^\[object .+?Constructor\]$/,cU=Function.prototype,dU=Object.prototype,fU=cU.toString,pU=dU.hasOwnProperty,hU=RegExp("^"+fU.call(pU).replace(sU,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gU(e){if(!s5(e)||nU(e))return!1;var t=eU(e)?hU:uU;return t.test(oU(e))}var mU=gU;function yU(e,t){return e==null?void 0:e[t]}var bU=yU;function vU(e,t){var r=bU(e,t);return mU(r)?r:void 0}var u5=vU;function EU(e,t){return e===t||e!==e&&t!==t}var SU=EU,xU=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$U=/^\w*$/;function _U(e,t){if(y1(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||m1(e)?!0:$U.test(e)||!xU.test(e)||t!=null&&e in Object(t)}var CU=_U,TU=u5(Object,"create"),iu=TU;function wU(){this.__data__=iu?iu(null):{},this.size=0}var AU=wU;function OU(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var DU=OU,RU="__lodash_hash_undefined__",NU=Object.prototype,LU=NU.hasOwnProperty;function MU(e){var t=this.__data__;if(iu){var r=t[e];return r===RU?void 0:r}return LU.call(t,e)?t[e]:void 0}var FU=MU,BU=Object.prototype,PU=BU.hasOwnProperty;function IU(e){var t=this.__data__;return iu?t[e]!==void 0:PU.call(t,e)}var kU=IU,zU="__lodash_hash_undefined__";function HU(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=iu&&t===void 0?zU:t,this}var UU=HU;function No(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])}}No.prototype.clear=AU;No.prototype.delete=DU;No.prototype.get=FU;No.prototype.has=kU;No.prototype.set=UU;var Jx=No;function jU(){this.__data__=[],this.size=0}var KU=jU;function GU(e,t){for(var r=e.length;r--;)if(SU(e[r][0],t))return r;return-1}var vp=GU,VU=Array.prototype,YU=VU.splice;function qU(e){var t=this.__data__,r=vp(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():YU.call(t,r,1),--this.size,!0}var WU=qU;function XU(e){var t=this.__data__,r=vp(t,e);return r<0?void 0:t[r][1]}var ZU=XU;function QU(e){return vp(this.__data__,e)>-1}var JU=QU;function ej(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 tj=ej;function Lo(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])}}Lo.prototype.clear=KU;Lo.prototype.delete=WU;Lo.prototype.get=ZU;Lo.prototype.has=JU;Lo.prototype.set=tj;var rj=Lo,nj=u5(g1,"Map"),aj=nj;function lj(){this.size=0,this.__data__={hash:new Jx,map:new(aj||rj),string:new Jx}}var ij=lj;function oj(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var sj=oj;function uj(e,t){var r=e.__data__;return sj(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Ep=uj;function cj(e){var t=Ep(this,e).delete(e);return this.size-=t?1:0,t}var dj=cj;function fj(e){return Ep(this,e).get(e)}var pj=fj;function hj(e){return Ep(this,e).has(e)}var gj=hj;function mj(e,t){var r=Ep(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var yj=mj;function Mo(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])}}Mo.prototype.clear=ij;Mo.prototype.delete=dj;Mo.prototype.get=pj;Mo.prototype.has=gj;Mo.prototype.set=yj;var c5=Mo,bj="Expected a function";function b1(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(bj);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(b1.Cache||c5),r}b1.Cache=c5;var vj=b1,Ej=500;function Sj(e){var t=vj(e,function(n){return r.size===Ej&&r.clear(),n}),r=t.cache;return t}var xj=Sj,$j=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_j=/\\(\\)?/g,Cj=xj(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace($j,function(r,n,a,l){t.push(a?l.replace(_j,"$1"):n||r)}),t}),Tj=Cj;function wj(e){return e==null?"":YH(e)}var Aj=wj;function Oj(e,t){return y1(e)?e:CU(e,t)?[e]:Tj(Aj(e))}var Dj=Oj;function Rj(e){if(typeof e=="string"||m1(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Nj=Rj;function Lj(e,t){t=Dj(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Nj(t[r++])];return r&&r==n?e:void 0}var Mj=Lj;function Fj(e,t,r){var n=e==null?void 0:Mj(e,t);return n===void 0?r:n}var Bj=Fj,v1=$H,Pj=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Ij=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function d5(e){if(!v1(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=Yz(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 kj=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 Pj.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,EH.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,SH.default)(i))return;if((0,xH.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:d5(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}}},zj=function(e){let t=[],r;return function(n,a){if(n===""&&(r=a,t.forEach(({target:l,container:i,replacement:o})=>{let s=Ij(o)?JSON.parse(o):o.split(".");s.length===0?i[l]=r:i[l]=Bj(r,s)})),n==="_constructor-name_")return a;if(v1(a)&&a.__isConvertedError__){let{message:l,...i}=a.errorProperties,o=new Error(l);return Object.assign(o,i),o}if(typeof a=="string"&&a.startsWith("_regexp_")&&e.allowRegExp){let[,l,i]=a.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(i,l)}return typeof a=="string"&&a.startsWith("_date_")&&e.allowDate?new Date(a.replace("_date_","")):typeof a=="string"&&a.startsWith("_duplicate_")?(t.push({target:n,container:this,replacement:a.replace(/^_duplicate_/,"")}),null):typeof a=="string"&&a.startsWith("_symbol_")&&e.allowSymbol?Symbol(a.replace("_symbol_","")):typeof a=="string"&&a.startsWith("_gsymbol_")&&e.allowSymbol?Symbol.for(a.replace("_gsymbol_","")):typeof a=="string"&&a==="_-Infinity_"?Number.NEGATIVE_INFINITY:typeof a=="string"&&a==="_Infinity_"?Number.POSITIVE_INFINITY:typeof a=="string"&&a==="_NaN_"?Number.NaN:typeof a=="string"&&a.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(a.replace("_bigint_","")):a}},f5={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},Hj=(e,t={})=>{let r={...f5,...t};return JSON.stringify(d5(e),kj(r),t.space)},Uj=()=>{let e=new Map;return function t(r){v1(r)&&Object.entries(r).forEach(([n,a])=>{a==="_undefined_"?r[n]=void 0:e.get(a)||(e.set(a,!0),t(a))}),Array.isArray(r)&&r.forEach((n,a)=>{n==="_undefined_"?(e.set(n,!0),r[a]=void 0):e.get(n)||(e.set(n,!0),t(n))})}},jj=(e,t={})=>{let r={...f5,...t},n=JSON.parse(e,zj(r));return Uj()(n),n};function e$({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}function t$(e){if(/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(e))return e;try{let t=new URL(e);return t.searchParams.set("ref","error"),t.toString()}catch{return e}}var E1=class p5 extends Error{constructor(t){super(p5.getFullMessage(t),t.cause===void 0?void 0:{cause:t.cause}),this.data={},this.fromStorybook=!0,this.isHandledError=!1,this.subErrors=[],this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code,this.isHandledError=t.isHandledError??!1,this.name=t.name,this.subErrors=t.subErrors??[]}get fullErrorCode(){return e$({code:this.code,category:this.category})}get name(){let t=this._name||this.constructor.name;return`${this.fullErrorCode} (${t})`}set name(t){this._name=t}static getFullMessage({documentation:t,code:r,category:n,message:a}){let l;return t===!0?l=`https://storybook.js.org/error/${e$({code:r,category:n})}?ref=error`:typeof t=="string"?l=t$(t):Array.isArray(t)&&(l=`
  576. ${t.map(i=>` - ${t$(i)}`).join(`
  577. `)}`),`${a}${l!=null?`
  578. More info: ${l}
  579. `:""}`}},Kj=class extends E1{constructor(t){super({name:"StatusTypeIdMismatchError",category:"MANAGER_API",code:1,message:`Status has typeId "${t.status.typeId}" but was added to store with typeId "${t.typeId}". Full status: ${JSON.stringify(t.status,null,2)}`}),this.data=t}},Gj=class extends E1{constructor(e){super({name:"StatusTypeIdMismatchError",category:"PREVIEW_API",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}},Vj=zt({"../../node_modules/picocolors/picocolors.browser.js"(e,t){var r=String,n=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}};t.exports=n(),t.exports.createColors=n}});Wt(Vj(),1);var Yj=class extends E1{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}},h5="status-value:",qj=["status-value:pending","status-value:success","status-value:new","status-value:modified","status-value:affected","status-value:warning","status-value:error","status-value:unknown"],Wj=e=>{if(e==="related")return"status-value:affected";let t=`${h5}${e}`;return qj.includes(t)?t:void 0},r$=e=>e==="status-value:affected"?"related":e.slice(h5.length),Xj={id:"storybook/status",leader:!0,initialState:{}},tg={SELECT:"select"};function Zj(e){let t={};for(let r of Object.values(e))for(let n of Object.values(r))t[n.value]=(t[n.value]??0)+1;return t}function Qj({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(tg.SELECT,i=>{l(i.payload)})},selectStatuses:l=>{e.send({type:tg.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 Yj({status:u,typeId:l});case"manager":throw new Kj({status:u,typeId:l});default:throw new Gj({status:u,typeId:l})}s[c]={...s[c]??{},[l]:u}}return s})},onAllStatusChange:n.onAllStatusChange,onSelect(i){return e.subscribe(tg.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 n$=Object.prototype.hasOwnProperty;function a$(e,t,r){for(r of e.keys())if($n(r,t))return r}function $n(e,t){var r,n,a;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&$n(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(a=n,a&&typeof a=="object"&&(a=a$(t,a),!a)||!t.has(a))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(a=n[0],a&&typeof a=="object"&&(a=a$(t,a),!a)||!$n(n[1],t.get(a)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(n$.call(e,r)&&++n&&!n$.call(t,r)||!(r in t)||!$n(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function l$(e,t){let r=[],n=[];for(let a=0;a<e.length;a++){let l=e[a];t(l)?r.push(l):n.push(l)}return[r,n]}function Jj(e,t){let r={};for(let n=0;n<e.length;n++){let a=e[n],l=t(a);r[l]=(r[l]??0)+1}return r}const{once:eK}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var S1=Wt(Kl(),1),g5=Wt(sT(),1),tK=/\/([^/]+)\/(?:(.*)_)?([^/]+)?/;(0,S1.default)(1e3)(e=>{let t={viewMode:void 0,storyId:void 0,refId:void 0};if(e){let[,r,n,a]=e.toLowerCase().match(tK)||[];r&&Object.assign(t,{viewMode:r,storyId:a,refId:n})}return t});var gd=Symbol("Deeply equal"),L0=(e,t)=>{if(typeof e!=typeof t)return t;if(yn(e,t))return gd;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,a,l)=>{let i=L0(e[l],a);return i!==gd&&(n[l]=i),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return An(e)&&An(t)?Object.keys({...e,...t}).reduce((r,n)=>{let a=L0(e==null?void 0:e[n],t==null?void 0:t[n]);return a===gd?r:Object.assign(r,{[n]:a})},{}):t},i$=/^[a-zA-Z0-9 _-]*$/,rK=/^-?[0-9]+(\.[0-9]+)?$/,m5=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,y5=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,M0=(e="",t)=>e===null||e===""||!i$.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?i$.test(t)||rK.test(t)||m5.test(t)||y5.test(t):Array.isArray(t)?t.every(r=>M0(e,r)):An(t)?Object.entries(t).every(([r,n])=>M0(r,n)):!1,F0=e=>e===void 0?"!undefined":e===null?"!null":typeof e=="string"?m5.test(e)?`!hex(${e.slice(1)})`:y5.test(e)?`!${e.replace(/[\s%]/g,"")}`:e:typeof e=="boolean"?`!${e}`:e instanceof Date?`!date(${e.toISOString()})`:Array.isArray(e)?e.map(F0):An(e)?Object.entries(e).reduce((t,[r,n])=>Object.assign(t,{[r]:F0(n)}),{}):e,nK=e=>{switch(e){case"%20":return"+";case"%5B":return"[";case"%5D":return"]";case"%2C":return",";case"%3A":return":"}return e},aK=/%[0-9A-F]{2}/g,o$=(e,t)=>{let r=L0(e,t);if(!r||r===gd)return"";let n=Object.entries(r).reduce((a,[l,i])=>M0(l,i)?Object.assign(a,{[l]:i}):(eK.warn(Mr`
  580. Omitted potentially unsafe URL args.
  581. More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url
  582. `),a),{});return(0,g5.stringify)(F0(n),{delimiter:";",nesting:!0,nestingSyntax:"js"}).replace(aK,nK).split(";").map(a=>a.replace("=",":")).join(";")},lK=(0,S1.default)(1e3)(e=>e!==void 0?(0,g5.parse)(e):{}),b5=e=>lK(e!=null&&e.search?e.search.slice(1):"");(0,S1.default)(1e3)((e,t,r=!0)=>{if(r){if(typeof t!="string")throw new Error("startsWith only works with string targets");return e&&e.startsWith(t)?{path:e}:null}let n=typeof t=="string"&&e===t,a=e&&t&&e.match(t);return n||a?{path:e}:null});const{global:iK}=__STORYBOOK_MODULE_GLOBAL__;function B0(){return B0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},B0.apply(this,arguments)}var s$;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(s$||(s$={}));function Kr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function P0(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function v5(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var u$;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(u$||(u$={}));function I0(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function oK(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?v5(e):e;return{pathname:r?r.startsWith("/")?r:sK(r,t):t,search:uK(n),hash:cK(a)}}function sK(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function rg(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function E5(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function S5(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=v5(e):(a=B0({},e),Kr(!a.pathname||!a.pathname.includes("?"),rg("?","pathname","search",a)),Kr(!a.pathname||!a.pathname.includes("#"),rg("#","pathname","hash",a)),Kr(!a.search||!a.search.includes("#"),rg("#","search","hash",a)));let l=e===""||a.pathname==="",i=l?"/":a.pathname,o;if(n||i==null)o=r;else{let d=t.length-1;if(i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),d-=1;a.pathname=f.join("/")}o=d>=0?t[d]:"/"}let s=oK(a,o),u=i&&i!=="/"&&i.endsWith("/"),c=(l||i===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}var x1=e=>e.join("/").replace(/\/\/+/g,"/"),uK=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,cK=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function dK(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var x5=["post","put","patch","delete"];new Set(x5);var fK=["get",...x5];new Set(fK);function k0(){return k0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},k0.apply(this,arguments)}var $1=g.createContext(null),$5=g.createContext(null);g.createContext(null);var Ql=g.createContext(null),_5=g.createContext(null),Mu=g.createContext({outlet:null,matches:[],isDataRoute:!1}),pK=g.createContext(null);function hK(e,t){let{relative:r}=t===void 0?{}:t;_1()||Kr(!1);let{basename:n,navigator:a}=g.useContext(Ql),{hash:l,pathname:i,search:o}=Sp(e,{relative:r}),s=i;return n!=="/"&&(s=i==="/"?n:x1([n,i])),a.createHref({pathname:s,search:o,hash:l})}function _1(){return g.useContext(_5)!=null}function Fu(){return _1()||Kr(!1),g.useContext(_5).location}function C5(e){g.useContext(Ql).static||g.useLayoutEffect(e)}function gK(){let{isDataRoute:e}=g.useContext(Mu);return e?$K():mK()}function mK(){_1()||Kr(!1);let e=g.useContext($1),{basename:t,navigator:r}=g.useContext(Ql),{matches:n}=g.useContext(Mu),{pathname:a}=Fu(),l=JSON.stringify(E5(n).map(o=>o.pathnameBase)),i=g.useRef(!1);return C5(()=>{i.current=!0}),g.useCallback(function(o,s){if(s===void 0&&(s={}),!i.current)return;if(typeof o=="number"){r.go(o);return}let u=S5(o,JSON.parse(l),a,s.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:x1([t,u.pathname])),(s.replace?r.replace:r.push)(u,s.state,s)},[t,r,l,a,e])}g.createContext(null);function Sp(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=g.useContext(Mu),{pathname:a}=Fu(),l=JSON.stringify(E5(n).map(i=>i.pathnameBase));return g.useMemo(()=>S5(e,JSON.parse(l),a,r==="path"),[e,l,a,r])}function yK(){let e=xK(),t=dK(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:n};return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),r?g.createElement("pre",{style:a},r):null,null)}g.createElement(yK,null);var T5=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(T5||{}),ou=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ou||{});function bK(e){let t=g.useContext($1);return t||Kr(!1),t}function vK(e){let t=g.useContext($5);return t||Kr(!1),t}function EK(e){let t=g.useContext(Mu);return t||Kr(!1),t}function C1(e){let t=EK(),r=t.matches[t.matches.length-1];return r.route.id||Kr(!1),r.route.id}function SK(){return C1(ou.UseRouteId)}function xK(){var e;let t=g.useContext(pK),r=vK(ou.UseRouteError),n=C1(ou.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function $K(){let{router:e}=bK(T5.UseNavigateStable),t=C1(ou.UseNavigateStable),r=g.useRef(!1);return C5(()=>{r.current=!0}),g.useCallback(function(n,a){a===void 0&&(a={}),r.current&&(typeof n=="number"?e.navigate(n):e.navigate(n,k0({fromRouteId:t},a)))},[e,t])}var _K=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(_K||{});new Promise(()=>{});function zl(){return zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zl.apply(this,arguments)}function T1(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,l;for(l=0;l<n.length;l++)a=n[l],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var md="get",ng="application/x-www-form-urlencoded";function xp(e){return e!=null&&typeof e.tagName=="string"}function CK(e){return xp(e)&&e.tagName.toLowerCase()==="button"}function TK(e){return xp(e)&&e.tagName.toLowerCase()==="form"}function wK(e){return xp(e)&&e.tagName.toLowerCase()==="input"}function AK(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function OK(e,t){return e.button===0&&(!t||t==="_self")&&!AK(e)}var xc=null;function DK(){if(xc===null)try{new FormData(document.createElement("form"),0),xc=!1}catch{xc=!0}return xc}var RK=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ag(e){return e!=null&&!RK.has(e)?null:e}function NK(e,t){let r,n,a,l,i;if(TK(e)){let o=e.getAttribute("action");n=o?I0(o,t):null,r=e.getAttribute("method")||md,a=ag(e.getAttribute("enctype"))||ng,l=new FormData(e)}else if(CK(e)||wK(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||o.getAttribute("action");if(n=s?I0(s,t):null,r=e.getAttribute("formmethod")||o.getAttribute("method")||md,a=ag(e.getAttribute("formenctype"))||ag(o.getAttribute("enctype"))||ng,l=new FormData(o,e),!DK()){let{name:u,type:c,value:d}=e;if(c==="image"){let f=u?u+".":"";l.append(f+"x","0"),l.append(f+"y","0")}else u&&l.append(u,d)}}else{if(xp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=md,n=null,a=ng,i=e}return l&&a==="text/plain"&&(i=l,l=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:l,body:i}}var LK=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],MK=["aria-current","caseSensitive","className","end","style","to","children"],FK=["reloadDocument","replace","state","method","action","onSubmit","submit","relative","preventScrollReset"],BK=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",PK=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,IK=g.forwardRef(function(e,t){let{onClick:r,relative:n,reloadDocument:a,replace:l,state:i,target:o,to:s,preventScrollReset:u}=e,c=T1(e,LK),{basename:d}=g.useContext(Ql),f,p=!1;if(typeof s=="string"&&PK.test(s)&&(f=s,BK))try{let h=new URL(window.location.href),v=s.startsWith("//")?new URL(h.protocol+s):new URL(s),E=I0(v.pathname,d);v.origin===h.origin&&E!=null?s=E+v.search+v.hash:p=!0}catch{}let y=hK(s,{relative:n}),b=HK(s,{replace:l,state:i,target:o,preventScrollReset:u,relative:n});function S(h){r&&r(h),h.defaultPrevented||b(h)}return g.createElement("a",zl({},c,{href:f||y,onClick:p||a?r:S,ref:t,target:o}))});g.forwardRef(function(e,t){let{"aria-current":r="page",caseSensitive:n=!1,className:a="",end:l=!1,style:i,to:o,children:s}=e,u=T1(e,MK),c=Sp(o,{relative:u.relative}),d=Fu(),f=g.useContext($5),{navigator:p}=g.useContext(Ql),y=p.encodeLocation?p.encodeLocation(c).pathname:c.pathname,b=d.pathname,S=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;n||(b=b.toLowerCase(),S=S?S.toLowerCase():null,y=y.toLowerCase());let h=b===y||!l&&b.startsWith(y)&&b.charAt(y.length)==="/",v=S!=null&&(S===y||!l&&S.startsWith(y)&&S.charAt(y.length)==="/"),E=h?r:void 0,x;typeof a=="function"?x=a({isActive:h,isPending:v}):x=[a,h?"active":null,v?"pending":null].filter(Boolean).join(" ");let _=typeof i=="function"?i({isActive:h,isPending:v}):i;return g.createElement(IK,zl({},u,{"aria-current":E,className:x,ref:t,style:_,to:o}),typeof s=="function"?s({isActive:h,isPending:v}):s)});g.forwardRef((e,t)=>{let r=jK();return g.createElement(kK,zl({},e,{submit:r,ref:t}))});var kK=g.forwardRef((e,t)=>{let{reloadDocument:r,replace:n,state:a,method:l=md,action:i,onSubmit:o,submit:s,relative:u,preventScrollReset:c}=e,d=T1(e,FK),f=l.toLowerCase()==="get"?"get":"post",p=KK(i,{relative:u});return g.createElement("form",zl({ref:t,method:f,action:p,onSubmit:r?o:y=>{if(o&&o(y),y.defaultPrevented)return;y.preventDefault();let b=y.nativeEvent.submitter,S=(b==null?void 0:b.getAttribute("formmethod"))||l;s(b||y.currentTarget,{method:S,replace:n,state:a,relative:u,preventScrollReset:c})}},d))}),z0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(z0||(z0={}));var c$;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(c$||(c$={}));function zK(e){let t=g.useContext($1);return t||Kr(!1),t}function HK(e,t){let{target:r,replace:n,state:a,preventScrollReset:l,relative:i}=t===void 0?{}:t,o=gK(),s=Fu(),u=Sp(e,{relative:i});return g.useCallback(c=>{if(OK(c,r)){c.preventDefault();let d=n!==void 0?n:P0(s)===P0(u);o(e,{replace:d,state:a,preventScrollReset:l,relative:i})}},[s,o,u,n,a,r,e,l,i])}function UK(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}function jK(){let{router:e}=zK(z0.UseSubmit),{basename:t}=g.useContext(Ql),r=SK();return g.useCallback(function(n,a){a===void 0&&(a={}),UK();let{action:l,method:i,encType:o,formData:s,body:u}=NK(n,t);e.navigate(a.action||l,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||o,replace:a.replace,state:a.state,fromRouteId:r})},[e,t,r])}function KK(e,t){let{relative:r}=t===void 0?{}:t,{basename:n}=g.useContext(Ql),a=g.useContext(Mu);a||Kr(!1);let[l]=a.matches.slice(-1),i=zl({},Sp(e||".",{relative:r})),o=Fu();if(e==null&&(i.search=o.search,l.route.index)){let s=new URLSearchParams(i.search);s.delete("index"),i.search=s.toString()?"?"+s.toString():""}return(!e||e===".")&&l.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:x1([n,i.pathname])),P0(i)}var{document:Xpe}=iK,H0={exports:{}};const GK="2.0.0",w5=256,VK=Number.MAX_SAFE_INTEGER||9007199254740991,YK=16,qK=w5-6,WK=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var Bu={MAX_LENGTH:w5,MAX_SAFE_COMPONENT_LENGTH:YK,MAX_SAFE_BUILD_LENGTH:qK,MAX_SAFE_INTEGER:VK,RELEASE_TYPES:WK,SEMVER_SPEC_VERSION:GK,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},lg={};const XK=typeof process=="object"&&lg&&lg.NODE_DEBUG&&/\bsemver\b/i.test(lg.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var $p=XK;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:a}=Bu,l=$p;t=e.exports={};const i=t.re=[],o=t.safeRe=[],s=t.src=[],u=t.safeSrc=[],c=t.t={};let d=0;const f="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",a],[f,n]],y=S=>{for(const[h,v]of p)S=S.split(`${h}*`).join(`${h}{0,${v}}`).split(`${h}+`).join(`${h}{1,${v}}`);return S},b=(S,h,v)=>{const E=y(h),x=d++;l(S,x,h),c[S]=x,s[x]=h,u[x]=E,i[x]=new RegExp(h,v?"g":void 0),o[x]=new RegExp(E,v?"g":void 0)};b("NUMERICIDENTIFIER","0|[1-9]\\d*"),b("NUMERICIDENTIFIERLOOSE","\\d+"),b("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),b("MAINVERSION",`(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})`),b("MAINVERSIONLOOSE",`(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})`),b("PRERELEASEIDENTIFIER",`(?:${s[c.NONNUMERICIDENTIFIER]}|${s[c.NUMERICIDENTIFIER]})`),b("PRERELEASEIDENTIFIERLOOSE",`(?:${s[c.NONNUMERICIDENTIFIER]}|${s[c.NUMERICIDENTIFIERLOOSE]})`),b("PRERELEASE",`(?:-(${s[c.PRERELEASEIDENTIFIER]}(?:\\.${s[c.PRERELEASEIDENTIFIER]})*))`),b("PRERELEASELOOSE",`(?:-?(${s[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[c.PRERELEASEIDENTIFIERLOOSE]})*))`),b("BUILDIDENTIFIER",`${f}+`),b("BUILD",`(?:\\+(${s[c.BUILDIDENTIFIER]}(?:\\.${s[c.BUILDIDENTIFIER]})*))`),b("FULLPLAIN",`v?${s[c.MAINVERSION]}${s[c.PRERELEASE]}?${s[c.BUILD]}?`),b("FULL",`^${s[c.FULLPLAIN]}$`),b("LOOSEPLAIN",`[v=\\s]*${s[c.MAINVERSIONLOOSE]}${s[c.PRERELEASELOOSE]}?${s[c.BUILD]}?`),b("LOOSE",`^${s[c.LOOSEPLAIN]}$`),b("GTLT","((?:<|>)?=?)"),b("XRANGEIDENTIFIERLOOSE",`${s[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),b("XRANGEIDENTIFIER",`${s[c.NUMERICIDENTIFIER]}|x|X|\\*`),b("XRANGEPLAIN",`[v=\\s]*(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:${s[c.PRERELEASE]})?${s[c.BUILD]}?)?)?`),b("XRANGEPLAINLOOSE",`[v=\\s]*(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:${s[c.PRERELEASELOOSE]})?${s[c.BUILD]}?)?)?`),b("XRANGE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAIN]}$`),b("XRANGELOOSE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAINLOOSE]}$`),b("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),b("COERCE",`${s[c.COERCEPLAIN]}(?:$|[^\\d])`),b("COERCEFULL",s[c.COERCEPLAIN]+`(?:${s[c.PRERELEASE]})?(?:${s[c.BUILD]})?(?:$|[^\\d])`),b("COERCERTL",s[c.COERCE],!0),b("COERCERTLFULL",s[c.COERCEFULL],!0),b("LONETILDE","(?:~>?)"),b("TILDETRIM",`(\\s*)${s[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",b("TILDE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAIN]}$`),b("TILDELOOSE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAINLOOSE]}$`),b("LONECARET","(?:\\^)"),b("CARETTRIM",`(\\s*)${s[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",b("CARET",`^${s[c.LONECARET]}${s[c.XRANGEPLAIN]}$`),b("CARETLOOSE",`^${s[c.LONECARET]}${s[c.XRANGEPLAINLOOSE]}$`),b("COMPARATORLOOSE",`^${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]})$|^$`),b("COMPARATOR",`^${s[c.GTLT]}\\s*(${s[c.FULLPLAIN]})$|^$`),b("COMPARATORTRIM",`(\\s*)${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]}|${s[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",b("HYPHENRANGE",`^\\s*(${s[c.XRANGEPLAIN]})\\s+-\\s+(${s[c.XRANGEPLAIN]})\\s*$`),b("HYPHENRANGELOOSE",`^\\s*(${s[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[c.XRANGEPLAINLOOSE]})\\s*$`),b("STAR","(<|>)?=?\\s*\\*"),b("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),b("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(H0,H0.exports);var Pu=H0.exports;const ZK=Object.freeze({loose:!0}),QK=Object.freeze({}),JK=e=>e?typeof e!="object"?ZK:e:QK;var w1=JK;const d$=/^[0-9]+$/,A5=(e,t)=>{if(typeof e=="number"&&typeof t=="number")return e===t?0:e<t?-1:1;const r=d$.test(e),n=d$.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},eG=(e,t)=>A5(t,e);var O5={compareIdentifiers:A5,rcompareIdentifiers:eG};const $c=$p,{MAX_LENGTH:f$,MAX_SAFE_INTEGER:_c}=Bu,{safeRe:Cc,t:Tc}=Pu,tG=w1,{compareIdentifiers:U0}=O5,rG=(e,t)=>{const r=t.split(".");if(r.length>e.length)return!1;for(let n=0;n<r.length;n++)if(U0(e[n],r[n])!==0)return!1;return!0};let nG=class pn{constructor(t,r){if(r=tG(r),t instanceof pn){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>f$)throw new TypeError(`version is longer than ${f$} characters`);$c("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?Cc[Tc.LOOSE]:Cc[Tc.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>_c||this.major<0)throw new TypeError("Invalid major version");if(this.minor>_c||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>_c||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){const l=+a;if(l>=0&&l<_c)return l}return a}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if($c("SemVer.compare",this.version,this.options,t),!(t instanceof pn)){if(typeof t=="string"&&t===this.version)return 0;t=new pn(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof pn||(t=new pn(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof pn||(t=new pn(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{const n=this.prerelease[r],a=t.prerelease[r];if($c("prerelease compare",r,n,a),n===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(n===void 0)return-1;if(n===a)continue;return U0(n,a)}while(++r)}compareBuild(t){t instanceof pn||(t=new pn(t,this.options));let r=0;do{const n=this.build[r],a=t.build[r];if($c("build compare",r,n,a),n===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(n===void 0)return-1;if(n===a)continue;return U0(n,a)}while(++r)}inc(t,r,n){if(t.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){const a=`-${r}`.match(this.options.loose?Cc[Tc.PRERELEASELOOSE]:Cc[Tc.PRERELEASE]);if(!a||a[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const a=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[a];else{let l=this.prerelease.length;for(;--l>=0;)typeof this.prerelease[l]=="number"&&(this.prerelease[l]++,l=-2);if(l===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(r){let l=[r,a];if(n===!1&&(l=[r]),rG(this.prerelease,r)){const i=this.prerelease[r.split(".").length];isNaN(i)&&(this.prerelease=l)}else this.prerelease=l}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var Ht=nG;const p$=Ht,aG=(e,t,r=!1)=>{if(e instanceof p$)return e;try{return new p$(e,t)}catch(n){if(!r)return null;throw n}};var Jl=aG;const lG=Jl,iG=(e,t)=>{const r=lG(e,t);return r?r.version:null};var oG=iG;const sG=Jl,uG=(e,t)=>{const r=sG(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var cG=uG;const h$=Ht,dG=(e,t,r,n,a)=>{typeof r=="string"&&(a=n,n=r,r=void 0);try{return new h$(e instanceof h$?e.version:e,r).inc(t,n,a).version}catch{return null}};var fG=dG;const g$=Jl,pG=(e,t)=>{const r=g$(e,null,!0),n=g$(t,null,!0),a=r.compare(n);if(a===0)return null;const l=a>0,i=l?r:n,o=l?n:r,s=!!i.prerelease.length;if(!!o.prerelease.length&&!s){if(!o.patch&&!o.minor)return"major";if(o.compareMain(i)===0)return o.minor&&!o.patch?"minor":"patch"}const c=s?"pre":"";return r.major!==n.major?c+"major":r.minor!==n.minor?c+"minor":r.patch!==n.patch?c+"patch":"prerelease"};var hG=pG;const gG=Ht,mG=(e,t)=>new gG(e,t).major;var yG=mG;const bG=Ht,vG=(e,t)=>new bG(e,t).minor;var EG=vG;const SG=Ht,xG=(e,t)=>new SG(e,t).patch;var $G=xG;const _G=Jl,CG=(e,t)=>{const r=_G(e,t);return r&&r.prerelease.length?r.prerelease:null};var TG=CG;const m$=Ht,wG=(e,t,r)=>new m$(e,r).compare(new m$(t,r));var on=wG;const AG=on,OG=(e,t,r)=>AG(t,e,r);var DG=OG;const RG=on,NG=(e,t)=>RG(e,t,!0);var LG=NG;const y$=Ht,MG=(e,t,r)=>{const n=new y$(e,r),a=new y$(t,r);return n.compare(a)||n.compareBuild(a)};var A1=MG;const FG=A1,BG=(e,t)=>e.sort((r,n)=>FG(r,n,t));var PG=BG;const IG=A1,kG=(e,t)=>e.sort((r,n)=>IG(n,r,t));var zG=kG;const HG=on,UG=(e,t,r)=>HG(e,t,r)>0;var _p=UG;const jG=on,KG=(e,t,r)=>jG(e,t,r)<0;var O1=KG;const GG=on,VG=(e,t,r)=>GG(e,t,r)===0;var D5=VG;const YG=on,qG=(e,t,r)=>YG(e,t,r)!==0;var R5=qG;const WG=on,XG=(e,t,r)=>WG(e,t,r)>=0;var D1=XG;const ZG=on,QG=(e,t,r)=>ZG(e,t,r)<=0;var R1=QG;const JG=D5,eV=R5,tV=_p,rV=D1,nV=O1,aV=R1,lV=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return JG(e,r,n);case"!=":return eV(e,r,n);case">":return tV(e,r,n);case">=":return rV(e,r,n);case"<":return nV(e,r,n);case"<=":return aV(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var N5=lV;const iV=Ht,oV=Jl,{safeRe:wc,t:Ac}=Pu,sV=(e,t)=>{if(e instanceof iV)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?wc[Ac.COERCEFULL]:wc[Ac.COERCE]);else{const s=t.includePrerelease?wc[Ac.COERCERTLFULL]:wc[Ac.COERCERTL];let u;for(;(u=s.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),s.lastIndex=u.index+u[1].length+u[2].length;s.lastIndex=-1}if(r===null)return null;const n=r[2],a=r[3]||"0",l=r[4]||"0",i=t.includePrerelease&&r[5]?`-${r[5]}`:"",o=t.includePrerelease&&r[6]?`+${r[6]}`:"";return oV(`${n}.${a}.${l}${i}${o}`,t)};var uV=sV;const cV=Jl,dV=Bu,fV=Ht,pV=(e,t,r)=>{if(!dV.RELEASE_TYPES.includes(t))return null;const n=hV(e,r);return n&&gV(n,t)},hV=(e,t)=>{const r=e instanceof fV?e.version:e;return cV(r,t)},gV=(e,t)=>{if(mV(t))return e.version;switch(e.prerelease=[],t){case"major":e.minor=0,e.patch=0;break;case"minor":e.patch=0;break}return e.format()},mV=e=>e.startsWith("pre");var yV=pV;class bV{constructor(){this.max=1e3,this.map=new Map}get(t){const r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){const a=this.map.keys().next().value;this.delete(a)}this.map.set(t,r)}return this}}var vV=bV,ig,b$;function sn(){if(b$)return ig;b$=1;const e=/\s+/g;class t{constructor(N,U){if(U=a(U),N instanceof t)return N.loose===!!U.loose&&N.includePrerelease===!!U.includePrerelease?N:new t(N.raw,U);if(N instanceof l)return this.raw=N.value,this.set=[[N]],this.formatted=void 0,this;if(this.options=U,this.loose=!!U.loose,this.includePrerelease=!!U.includePrerelease,this.raw=N.trim().replace(e," "),this.set=this.raw.split("||").map(B=>this.parseRange(B.trim())).filter(B=>B.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const B=this.set[0];if(this.set=this.set.filter(G=>!h(G[0])),this.set.length===0)this.set=[B];else if(this.set.length>1){for(const G of this.set)if(G.length===1&&v(G[0])){this.set=[G];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let N=0;N<this.set.length;N++){N>0&&(this.formatted+="||");const U=this.set[N];for(let B=0;B<U.length;B++)B>0&&(this.formatted+=" "),this.formatted+=U[B].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(N){N=N.replace(S,"");const B=((this.options.includePrerelease&&y)|(this.options.loose&&b))+":"+N,G=n.get(B);if(G)return G;const V=this.options.loose,Z=V?s[c.HYPHENRANGELOOSE]:s[c.HYPHENRANGE];N=N.replace(Z,H(this.options.includePrerelease)),i("hyphen replace",N),N=N.replace(s[c.COMPARATORTRIM],d),i("comparator trim",N),N=N.replace(s[c.TILDETRIM],f),i("tilde trim",N),N=N.replace(s[c.CARETTRIM],p),i("caret trim",N);let J=N.split(" ").map(F=>x(F,this.options)).join(" ").split(/\s+/).map(F=>I(F,this.options));V&&(J=J.filter(F=>(i("loose invalid filter",F,this.options),!!F.match(s[c.COMPARATORLOOSE])))),i("range list",J);const j=new Map,X=J.map(F=>new l(F,this.options));for(const F of X){if(h(F))return[F];j.set(F.value,F)}j.size>1&&j.has("")&&j.delete("");const te=[...j.values()];return n.set(B,te),te}intersects(N,U){if(!(N instanceof t))throw new TypeError("a Range is required");return this.set.some(B=>E(B,U)&&N.set.some(G=>E(G,U)&&B.every(V=>G.every(Z=>V.intersects(Z,U)))))}test(N){if(!N)return!1;if(typeof N=="string")try{N=new o(N,this.options)}catch{return!1}for(let U=0;U<this.set.length;U++)if(L(this.set[U],N,this.options))return!0;return!1}}ig=t;const r=vV,n=new r,a=w1,l=Cp(),i=$p,o=Ht,{safeRe:s,src:u,t:c,comparatorTrimReplace:d,tildeTrimReplace:f,caretTrimReplace:p}=Pu,{FLAG_INCLUDE_PRERELEASE:y,FLAG_LOOSE:b}=Bu,S=new RegExp(u[c.BUILD],"g"),h=D=>D.value==="<0.0.0-0",v=D=>D.value==="",E=(D,N)=>{let U=!0;const B=D.slice();let G=B.pop();for(;U&&B.length;)U=B.every(V=>G.intersects(V,N)),G=B.pop();return U},x=(D,N)=>(D=D.replace(s[c.BUILD],""),i("comp",D,N),D=A(D,N),i("caret",D),D=C(D,N),i("tildes",D),D=T(D,N),i("xrange",D),D=P(D,N),i("stars",D),D),_=D=>!D||D.toLowerCase()==="x"||D==="*",$=(D,N,U)=>_(D)&&!_(N)||_(N)&&U&&!_(U),C=(D,N)=>D.trim().split(/\s+/).map(U=>w(U,N)).join(" "),w=(D,N)=>{const U=N.loose?s[c.TILDELOOSE]:s[c.TILDE],B=N.includePrerelease?"-0":"";return D.replace(U,(G,V,Z,J,j)=>{i("tilde",D,G,V,Z,J,j);let X;return _(V)?X="":_(Z)?X=`>=${V}.0.0${B} <${+V+1}.0.0-0`:_(J)?X=`>=${V}.${Z}.0${B} <${V}.${+Z+1}.0-0`:j?(i("replaceTilde pr",j),X=`>=${V}.${Z}.${J}-${j} <${V}.${+Z+1}.0-0`):X=`>=${V}.${Z}.${J} <${V}.${+Z+1}.0-0`,i("tilde return",X),X})},A=(D,N)=>D.trim().split(/\s+/).map(U=>O(U,N)).join(" "),O=(D,N)=>{i("caret",D,N);const U=N.loose?s[c.CARETLOOSE]:s[c.CARET],B=N.includePrerelease?"-0":"";return D.replace(U,(G,V,Z,J,j)=>{i("caret",D,G,V,Z,J,j);let X;return _(V)?X="":_(Z)?X=`>=${V}.0.0${B} <${+V+1}.0.0-0`:_(J)?V==="0"?X=`>=${V}.${Z}.0${B} <${V}.${+Z+1}.0-0`:X=`>=${V}.${Z}.0${B} <${+V+1}.0.0-0`:j?(i("replaceCaret pr",j),V==="0"?Z==="0"?X=`>=${V}.${Z}.${J}-${j} <${V}.${Z}.${+J+1}-0`:X=`>=${V}.${Z}.${J}-${j} <${V}.${+Z+1}.0-0`:X=`>=${V}.${Z}.${J}-${j} <${+V+1}.0.0-0`):(i("no pr"),V==="0"?Z==="0"?X=`>=${V}.${Z}.${J} <${V}.${Z}.${+J+1}-0`:X=`>=${V}.${Z}.${J} <${V}.${+Z+1}.0-0`:X=`>=${V}.${Z}.${J} <${+V+1}.0.0-0`),i("caret return",X),X})},T=(D,N)=>(i("replaceXRanges",D,N),D.split(/\s+/).map(U=>M(U,N)).join(" ")),M=(D,N)=>{D=D.trim();const U=N.loose?s[c.XRANGELOOSE]:s[c.XRANGE];return D.replace(U,(B,G,V,Z,J,j)=>{if(i("xRange",D,B,G,V,Z,J,j),$(V,Z,J))return D;const X=_(V),te=X||_(Z),F=te||_(J),z=F;return G==="="&&z&&(G=""),j=N.includePrerelease?"-0":"",X?G===">"||G==="<"?B="<0.0.0-0":B="*":G&&z?(te&&(Z=0),J=0,G===">"?(G=">=",te?(V=+V+1,Z=0,J=0):(Z=+Z+1,J=0)):G==="<="&&(G="<",te?V=+V+1:Z=+Z+1),G==="<"&&(j="-0"),B=`${G+V}.${Z}.${J}${j}`):te?B=`>=${V}.0.0${j} <${+V+1}.0.0-0`:F&&(B=`>=${V}.${Z}.0${j} <${V}.${+Z+1}.0-0`),i("xRange return",B),B})},P=(D,N)=>(i("replaceStars",D,N),D.trim().replace(s[c.STAR],"")),I=(D,N)=>(i("replaceGTE0",D,N),D.trim().replace(s[N.includePrerelease?c.GTE0PRE:c.GTE0],"")),H=D=>(N,U,B,G,V,Z,J,j,X,te,F,z)=>(_(B)?U="":_(G)?U=`>=${B}.0.0${D?"-0":""}`:_(V)?U=`>=${B}.${G}.0${D?"-0":""}`:Z?U=`>=${U}`:U=`>=${U}${D?"-0":""}`,_(X)?j="":_(te)?j=`<${+X+1}.0.0-0`:_(F)?j=`<${X}.${+te+1}.0-0`:z?j=`<=${X}.${te}.${F}-${z}`:D?j=`<${X}.${te}.${+F+1}-0`:j=`<=${j}`,`${U} ${j}`.trim()),L=(D,N,U)=>{for(let B=0;B<D.length;B++)if(!D[B].test(N))return!1;if(N.prerelease.length&&!U.includePrerelease){for(let B=0;B<D.length;B++)if(i(D[B].semver),D[B].semver!==l.ANY&&D[B].semver.prerelease.length>0){const G=D[B].semver;if(G.major===N.major&&G.minor===N.minor&&G.patch===N.patch)return!0}return!1}return!0};return ig}var og,v$;function Cp(){if(v$)return og;v$=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(c,d){if(d=r(d),c instanceof t){if(c.loose===!!d.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),i("comparator",c,d),this.options=d,this.loose=!!d.loose,this.parse(c),this.semver===e?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}parse(c){const d=this.options.loose?n[a.COMPARATORLOOSE]:n[a.COMPARATOR],f=c.match(d);if(!f)throw new TypeError(`Invalid comparator: ${c}`);this.operator=f[1]!==void 0?f[1]:"",this.operator==="="&&(this.operator=""),f[2]?this.semver=new o(f[2],this.options.loose):this.semver=e}toString(){return this.value}test(c){if(i("Comparator.test",c,this.options.loose),this.semver===e||c===e)return!0;if(typeof c=="string")try{c=new o(c,this.options)}catch{return!1}return l(c,this.operator,this.semver,this.options)}intersects(c,d){if(!(c instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new s(c.value,d).test(this.value):c.operator===""?c.value===""?!0:new s(this.value,d).test(c.semver):(d=r(d),d.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||c.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&c.operator.startsWith(">")||this.operator.startsWith("<")&&c.operator.startsWith("<")||this.semver.version===c.semver.version&&this.operator.includes("=")&&c.operator.includes("=")||l(this.semver,"<",c.semver,d)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||l(this.semver,">",c.semver,d)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}}og=t;const r=w1,{safeRe:n,t:a}=Pu,l=N5,i=$p,o=Ht,s=sn();return og}const EV=sn(),SV=(e,t,r)=>{try{t=new EV(t,r)}catch{return!1}return t.test(e)};var Tp=SV;const xV=sn(),$V=(e,t)=>new xV(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var _V=$V;const CV=Ht,TV=sn(),wV=(e,t,r)=>{let n=null,a=null,l=null;try{l=new TV(t,r)}catch{return null}return e.forEach(i=>{l.test(i)&&(!n||a.compare(i)===-1)&&(n=i,a=new CV(n,r))}),n};var AV=wV;const OV=Ht,DV=sn(),RV=(e,t,r)=>{let n=null,a=null,l=null;try{l=new DV(t,r)}catch{return null}return e.forEach(i=>{l.test(i)&&(!n||a.compare(i)===1)&&(n=i,a=new OV(n,r))}),n};var NV=RV;const sg=Ht,LV=sn(),E$=_p,MV=(e,t)=>{e=new LV(e,t);let r=new sg("0.0.0");if(e.test(r)||(r=new sg("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){const a=e.set[n];let l=null;a.forEach(i=>{const o=new sg(i.semver.version);switch(i.operator){case">":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!l||E$(o,l))&&(l=o);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${i.operator}`)}}),l&&(!r||E$(r,l))&&(r=l)}return r&&e.test(r)?r:null};var FV=MV;const BV=sn(),PV=(e,t)=>{try{return new BV(e,t).range||"*"}catch{return null}};var IV=PV;const kV=Ht,L5=Cp(),{ANY:zV}=L5,HV=sn(),UV=Tp,S$=_p,x$=O1,jV=R1,KV=D1,GV=(e,t,r,n)=>{e=new kV(e,n),t=new HV(t,n);let a,l,i,o,s;switch(r){case">":a=S$,l=jV,i=x$,o=">",s=">=";break;case"<":a=x$,l=KV,i=S$,o="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(UV(e,t,n))return!1;for(let u=0;u<t.set.length;++u){const c=t.set[u];let d=null,f=null;if(c.forEach(p=>{p.semver===zV&&(p=new L5(">=0.0.0")),d=d||p,f=f||p,a(p.semver,d.semver,n)?d=p:i(p.semver,f.semver,n)&&(f=p)}),d.operator===o||d.operator===s||(!f.operator||f.operator===o)&&l(e,f.semver))return!1;if(f.operator===s&&i(e,f.semver))return!1}return!0};var N1=GV;const VV=N1,YV=(e,t,r)=>VV(e,t,">",r);var qV=YV;const WV=N1,XV=(e,t,r)=>WV(e,t,"<",r);var ZV=XV;const $$=sn(),QV=(e,t,r)=>(e=new $$(e,r),t=new $$(t,r),e.intersects(t,r));var JV=QV;const eY=Tp,tY=on;var rY=(e,t,r)=>{const n=[];let a=null,l=null;const i=e.sort((c,d)=>tY(c,d,r));for(const c of i)eY(c,t,r)?(l=c,a||(a=c)):(l&&n.push([a,l]),l=null,a=null);a&&n.push([a,null]);const o=[];for(const[c,d]of n)c===d?o.push(c):!d&&c===i[0]?o.push("*"):d?c===i[0]?o.push(`<=${d}`):o.push(`${c} - ${d}`):o.push(`>=${c}`);const s=o.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return s.length<u.length?s:t};const _$=sn(),L1=Cp(),{ANY:ug}=L1,cg=Tp,M1=on,nY=(e,t,r={})=>{if(e===t)return!0;e=new _$(e,r),t=new _$(t,r);let n=!1;e:for(const a of e.set){for(const l of t.set){const i=lY(a,l,r);if(n=n||i!==null,i)continue e}if(n)return!1}return!0},aY=[new L1(">=0.0.0-0")],C$=[new L1(">=0.0.0")],lY=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===ug){if(t.length===1&&t[0].semver===ug)return!0;r.includePrerelease?e=aY:e=C$}if(t.length===1&&t[0].semver===ug){if(r.includePrerelease)return!0;t=C$}const n=new Set;let a,l;for(const p of e)p.operator===">"||p.operator===">="?a=T$(a,p,r):p.operator==="<"||p.operator==="<="?l=w$(l,p,r):n.add(p.semver);if(n.size>1)return null;let i;if(a&&l){if(i=M1(a.semver,l.semver,r),i>0)return null;if(i===0&&(a.operator!==">="||l.operator!=="<="))return null}for(const p of n){if(a&&!cg(p,String(a),r)||l&&!cg(p,String(l),r))return null;for(const y of t)if(!cg(p,String(y),r))return!1;return!0}let o,s,u,c,d=l&&!r.includePrerelease&&l.semver.prerelease.length?l.semver:!1,f=a&&!r.includePrerelease&&a.semver.prerelease.length?a.semver:!1;d&&d.prerelease.length===1&&l.operator==="<"&&d.prerelease[0]===0&&(d=!1);for(const p of t){if(c=c||p.operator===">"||p.operator===">=",u=u||p.operator==="<"||p.operator==="<=",a){if(f&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===f.major&&p.semver.minor===f.minor&&p.semver.patch===f.patch&&(f=!1),p.operator===">"||p.operator===">="){if(o=T$(a,p,r),o===p&&o!==a)return!1}else if(a.operator===">="&&!p.test(a.semver))return!1}if(l){if(d&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===d.major&&p.semver.minor===d.minor&&p.semver.patch===d.patch&&(d=!1),p.operator==="<"||p.operator==="<="){if(s=w$(l,p,r),s===p&&s!==l)return!1}else if(l.operator==="<="&&!p.test(l.semver))return!1}if(!p.operator&&(l||a)&&i!==0)return!1}return!(a&&u&&!l&&i!==0||l&&c&&!a&&i!==0||f||d)},T$=(e,t,r)=>{if(!e)return t;const n=M1(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},w$=(e,t,r)=>{if(!e)return t;const n=M1(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var iY=nY;const dg=Pu,A$=Bu,oY=Ht,O$=O5,sY=Jl,uY=oG,cY=cG,dY=fG,fY=hG,pY=yG,hY=EG,gY=$G,mY=TG,yY=on,bY=DG,vY=LG,EY=A1,SY=PG,xY=zG,$Y=_p,_Y=O1,CY=D5,TY=R5,wY=D1,AY=R1,OY=N5,DY=uV,RY=yV,NY=Cp(),LY=sn(),MY=Tp,FY=_V,BY=AV,PY=NV,IY=FV,kY=IV,zY=N1,HY=qV,UY=ZV,jY=JV,KY=rY,GY=iY;var VY={parse:sY,valid:uY,clean:cY,inc:dY,diff:fY,major:pY,minor:hY,patch:gY,prerelease:mY,compare:yY,rcompare:bY,compareLoose:vY,compareBuild:EY,sort:SY,rsort:xY,gt:$Y,lt:_Y,eq:CY,neq:TY,gte:wY,lte:AY,cmp:OY,coerce:DY,truncate:RY,Comparator:NY,Range:LY,satisfies:MY,toComparators:FY,maxSatisfying:BY,minSatisfying:PY,minVersion:IY,validRange:kY,outside:zY,gtr:HY,ltr:UY,intersects:jY,simplifyRange:KY,subset:GY,SemVer:oY,re:dg.re,src:dg.src,tokens:dg.t,SEMVER_SPEC_VERSION:A$.SEMVER_SPEC_VERSION,RELEASE_TYPES:A$.RELEASE_TYPES,compareIdentifiers:O$.compareIdentifiers,rcompareIdentifiers:O$.rcompareIdentifiers};const cr=My(VY);var YY=zt({"../../node_modules/toggle-selection/index.js"(e,t){t.exports=function(){var r=document.getSelection();if(!r.rangeCount)return function(){};for(var n=document.activeElement,a=[],l=0;l<r.rangeCount;l++)a.push(r.getRangeAt(l));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null;break}return r.removeAllRanges(),function(){r.type==="Caret"&&r.removeAllRanges(),r.rangeCount||a.forEach(function(i){r.addRange(i)}),n&&n.focus()}}}}),qY=zt({"../../node_modules/copy-to-clipboard/index.js"(e,t){var r=YY(),n={"text/plain":"Text","text/html":"Url",default:"Text"},a="Copy to clipboard: #{key}, Enter";function l(o){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,s)}function i(o,s){var u,c,d,f,p,y,b=!1;s||(s={}),u=s.debug||!1;try{d=r(),f=document.createRange(),p=document.getSelection(),y=document.createElement("span"),y.textContent=o,y.ariaHidden="true",y.style.all="unset",y.style.position="fixed",y.style.top=0,y.style.clip="rect(0, 0, 0, 0)",y.style.whiteSpace="pre",y.style.webkitUserSelect="text",y.style.MozUserSelect="text",y.style.msUserSelect="text",y.style.userSelect="text",y.addEventListener("copy",function(h){if(h.stopPropagation(),s.format)if(h.preventDefault(),typeof h.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var v=n[s.format]||n.default;window.clipboardData.setData(v,o)}else h.clipboardData.clearData(),h.clipboardData.setData(s.format,o);s.onCopy&&(h.preventDefault(),s.onCopy(h.clipboardData))}),document.body.appendChild(y),f.selectNodeContents(y),p.addRange(f);var S=document.execCommand("copy");if(!S)throw new Error("copy command was unsuccessful");b=!0}catch(h){u&&console.error("unable to copy using execCommand: ",h),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",o),s.onCopy&&s.onCopy(window.clipboardData),b=!0}catch(v){u&&console.error("unable to copy using clipboardData: ",v),u&&console.error("falling back to prompt"),c=l("message"in s?s.message:a),window.prompt(c,o)}}finally{p&&(typeof p.removeRange=="function"?p.removeRange(f):p.removeAllRanges()),y&&document.body.removeChild(y),d()}return b}t.exports=i}}),WY=zt({"../../node_modules/store2/dist/store2.js"(e,t){(function(r,n){var a={version:"2.14.4",areas:{},apis:{},nsdelim:".",inherit:function(i,o){for(var s in i)o.hasOwnProperty(s)||Object.defineProperty(o,s,Object.getOwnPropertyDescriptor(i,s));return o},stringify:function(i,o){return i===void 0||typeof i=="function"?i+"":JSON.stringify(i,o||a.replace)},parse:function(i,o){try{return JSON.parse(i,o||a.revive)}catch{return i}},fn:function(i,o){a.storeAPI[i]=o;for(var s in a.apis)a.apis[s][i]=o},get:function(i,o){return i.getItem(o)},set:function(i,o,s){i.setItem(o,s)},remove:function(i,o){i.removeItem(o)},key:function(i,o){return i.key(o)},length:function(i){return i.length},clear:function(i){i.clear()},Store:function(i,o,s){var u=a.inherit(a.storeAPI,function(d,f,p){return arguments.length===0?u.getAll():typeof f=="function"?u.transact(d,f,p):f!==void 0?u.set(d,f,p):typeof d=="string"||typeof d=="number"?u.get(d):typeof d=="function"?u.each(d):d?u.setAll(d,f):u.clear()});u._id=i;try{var c="__store2_test";o.setItem(c,"ok"),u._area=o,o.removeItem(c)}catch{u._area=a.storage("fake")}return u._ns=s||"",a.areas[i]||(a.areas[i]=u._area),a.apis[u._ns+u._id]||(a.apis[u._ns+u._id]=u),u},storeAPI:{area:function(i,o){var s=this[i];return(!s||!s.area)&&(s=a.Store(i,o,this._ns),this[i]||(this[i]=s)),s},namespace:function(i,o,s){if(s=s||this._delim||a.nsdelim,!i)return this._ns?this._ns.substring(0,this._ns.length-s.length):"";var u=i,c=this[u];if((!c||!c.namespace)&&(c=a.Store(this._id,this._area,this._ns+u+s),c._delim=s,this[u]||(this[u]=c),!o))for(var d in a.areas)c.area(d,a.areas[d]);return c},isFake:function(i){return i?(this._real=this._area,this._area=a.storage("fake")):i===!1&&(this._area=this._real||this._area),this._area.name==="fake"},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(i){return this._area.has?this._area.has(this._in(i)):this._in(i)in this._area},size:function(){return this.keys().length},each:function(i,o){for(var s=0,u=a.length(this._area);s<u;s++){var c=this._out(a.key(this._area,s));if(c!==void 0&&i.call(this,c,this.get(c),o)===!1)break;u>a.length(this._area)&&(u--,s--)}return o||this},keys:function(i){return this.each(function(o,s,u){u.push(o)},i||[])},get:function(i,o){var s=a.get(this._area,this._in(i)),u;return typeof o=="function"&&(u=o,o=null),s!==null?a.parse(s,u):o??s},getAll:function(i){return this.each(function(o,s,u){u[o]=s},i||{})},transact:function(i,o,s){var u=this.get(i,s),c=o(u);return this.set(i,c===void 0?u:c),this},set:function(i,o,s){var u=this.get(i),c;return u!=null&&s===!1?o:(typeof s=="function"&&(c=s,s=void 0),a.set(this._area,this._in(i),a.stringify(o,c),s)||u)},setAll:function(i,o){var s,u;for(var c in i)u=i[c],this.set(c,u,o)!==u&&(s=!0);return s},add:function(i,o,s){var u=this.get(i);if(u instanceof Array)o=u.concat(o);else if(u!==null){var c=typeof u;if(c===typeof o&&c==="object"){for(var d in o)u[d]=o[d];o=u}else o=u+o}return a.set(this._area,this._in(i),a.stringify(o,s)),o},remove:function(i,o){var s=this.get(i,o);return a.remove(this._area,this._in(i)),s},clear:function(){return this._ns?this.each(function(i){a.remove(this._area,this._in(i))},1):a.clear(this._area),this},clearAll:function(){var i=this._area;for(var o in a.areas)a.areas.hasOwnProperty(o)&&(this._area=a.areas[o],this.clear());return this._area=i,this},_in:function(i){return typeof i!="string"&&(i=a.stringify(i)),this._ns?this._ns+i:i},_out:function(i){return this._ns?i&&i.indexOf(this._ns)===0?i.substring(this._ns.length):void 0:i}},storage:function(i){return a.inherit(a.storageAPI,{items:{},name:i})},storageAPI:{length:0,has:function(i){return this.items.hasOwnProperty(i)},key:function(i){var o=0;for(var s in this.items)if(this.has(s)&&i===o++)return s},setItem:function(i,o){this.has(i)||this.length++,this.items[i]=o},removeItem:function(i){this.has(i)&&(delete this.items[i],this.length--)},getItem:function(i){return this.has(i)?this.items[i]:null},clear:function(){for(var i in this.items)this.removeItem(i)}}},l=a.Store("local",function(){try{return localStorage}catch{}}());l.local=l,l._=a,l.area("session",function(){try{return sessionStorage}catch{}}()),l.area("page",a.storage("page")),typeof n=="function"&&n.amd!==void 0?n("store2",[],function(){return l}):typeof t<"u"&&t.exports?t.exports=l:(r.store&&(a.conflict=r.store),r.store=l)})(e,e&&e.define)}});const{DOCS_PREPARED:Zpe,SET_STORIES:Qpe,SHARED_STATE_CHANGED:Jpe,SHARED_STATE_SET:ehe,STORY_CHANGED:the,STORY_PREPARED:rhe}=__STORYBOOK_MODULE_CORE_EVENTS__;var XY=({api:e,state:t})=>g.createContext({api:e,state:t});const{logger:D$}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Rl=(e,...t)=>{let r={};r=hr({},e,(n,a)=>{if(Array.isArray(a)&&Array.isArray(n))return a.forEach(l=>{n.find(i=>i===l||yn(i,l))||n.push(l)}),n;if(Array.isArray(n))return D$.log(["the types mismatch, picking",n]),n});for(let n of t)r=hr(r,n,(a,l)=>{if(Array.isArray(l)&&Array.isArray(a))return l.forEach(i=>{a.find(o=>o===i||yn(o,i))||a.push(i)}),a;if(Array.isArray(a))return D$.log(["the types mismatch, picking",a]),a});return r},ZY=(e,...t)=>{let r={};r=hr({},e,(n,a)=>{if(Array.isArray(a))return a});for(let n of t)r=hr(r,n,(a,l)=>{if(Array.isArray(l))return l});return r},QY=(...e)=>e.reduce((t,r)=>Rl(t,r),{}),j0=QY;const{logger:JY}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{SET_CONFIG:R$}=__STORYBOOK_MODULE_CORE_EVENTS__,{Addon_TypesEnum:nhe}=__STORYBOOK_MODULE_TYPES__,{global:fg}=__STORYBOOK_MODULE_GLOBAL__,{Channel:eq}=__STORYBOOK_MODULE_CHANNELS__;function tq(){let e={setHandler:()=>{},send:()=>{}};return new eq({transport:e})}var rq=class{constructor(){this.loaders={},this.elements={},this.config={},this.getChannel=()=>(this.channel||this.setChannel(tq()),this.channel),this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.setChannel=e=>{this.channel=e,this.resolve()},this.setConfig=e=>{Object.assign(this.config,e),this.hasChannel()?this.getChannel().emit(R$,this.config):this.ready().then(t=>{t.emit(R$,this.config)})},this.getConfig=()=>this.config,this.register=(e,t)=>{this.loaders[e]&&JY.warn(`${e} was loaded twice, this could have bad side-effects`),this.loaders[e]=t},this.loadAddons=e=>{Object.values(this.loaders).forEach(t=>t(e))},this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}getElements(e){return this.elements[e]||(this.elements[e]={}),this.elements[e]}add(e,t){let{type:r}=t,n=this.getElements(r);n[e]={...t,id:e}}experimental_getRegisteredAddons(e){return Object.keys(e?this.getElements(e):this.loaders)}},pg="__STORYBOOK_ADDONS_MANAGER";function nq(){return fg[pg]||(fg[pg]=new rq),fg[pg]}nq();var M5={};Ft(M5,{ensurePanel:()=>K0,init:()=>lq});const{logger:aq}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{Addon_TypesEnum:hg}=__STORYBOOK_MODULE_TYPES__;function K0(e,t,r){let n=Object.keys(e??{});return n.indexOf(t)>=0?t:n.length?n[0]:r}var lq=({provider:e,store:t,fullAPI:r})=>{let n={getElements:a=>e.getElements(a),clearStatuses:()=>{let a=n.getElements(hg.experimental_TEST_PROVIDER);Object.values(a).forEach(l=>{var i;try{(i=l.clear)==null||i.call(l)}catch(o){try{aq.warn(`Failed to clear test provider "${l.id}":`,o)}catch{}}})},getSelectedPanel:()=>{let{selectedPanel:a}=t.getState();return K0(n.getElements(hg.PANEL),a,a)},setSelectedPanel:a=>{t.setState({selectedPanel:a},{persistence:"session"})},setAddonState(a,l,i){let o=typeof l=="function"?l:()=>l;return t.setState(s=>({...s,addons:{...s.addons,[a]:o(s.addons[a])}}),i).then(()=>n.getAddonState(a))},getAddonState:a=>t.getState().addons[a]||(globalThis==null?void 0:globalThis.STORYBOOK_ADDON_STATE[a])};return{api:n,state:{selectedPanel:K0(n.getElements(hg.PANEL),t.getState().selectedPanel),addons:{}}}},F5={};Ft(F5,{init:()=>iq});var iq=({provider:e})=>({api:{getChannel:()=>e.channel,on:(t,r)=>{var n;return(n=e.channel)==null||n.on(t,r),()=>{var a;return(a=e.channel)==null?void 0:a.off(t,r)}},off:(t,r)=>{var n;return(n=e.channel)==null?void 0:n.off(t,r)},once:(t,r)=>{var n;return(n=e.channel)==null?void 0:n.once(t,r)},emit:(t,r,...n)=>{var a,l;(a=r==null?void 0:r.options)!=null&&a.target&&r.options.target!=="storybook-preview-iframe"&&!r.options.target.startsWith("storybook-ref-")&&(r.options.target=r.options.target!=="storybook_internal"?`storybook-ref-${r.options.target}`:"storybook-preview-iframe"),(l=e.channel)==null||l.emit(t,r,...n)}},state:{}}),B5={};Ft(B5,{init:()=>_q});const{logger:N$}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{GLOBALS_UPDATED:oq,SET_GLOBALS:sq,UPDATE_GLOBALS:uq}=__STORYBOOK_MODULE_CORE_EVENTS__,{logger:cq}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var P5={};Ft(P5,{defaultStoryMapper:()=>H5,getSourceType:()=>z5,init:()=>$q});const{global:I5}=__STORYBOOK_MODULE_GLOBAL__;var k5=Wt(Kl(),1),dq=(e,t)=>!Array.isArray(e)||!Array.isArray(t)||!e.length||!t.length?[]:e.reduce((r,n)=>(t.includes(n)&&r.push(n),r),[]),fq=/\s*\/\s*/,pq=({globalParameters:e,kindParameters:t,stories:r})=>V8(r,n=>({...n,parameters:YW(e,t[n.kind],n.parameters)})),hq=e=>({v:5,entries:Object.entries(e).reduce((t,[r,n])=>{if(!n)return t;let{docsOnly:a,fileName:l,...i}=n.parameters,o={title:n.kind,id:r,name:n.name,importPath:l};if(a)t[r]={type:"docs",tags:["stories-mdx"],storiesImports:[],...o};else{let{argTypes:s,args:u,initialArgs:c}=n;t[r]={type:"story",subtype:"story",...o,parameters:i,argTypes:s,args:u,initialArgs:c}}return t},{})}),gq=e=>({v:3,stories:Object.values(e.stories).reduce((t,r)=>(t[r.id]={...r,title:r.kind,name:r.name||r.story,importPath:r.parameters.fileName||""},t),{})}),mq=e=>{let t=Jj(Object.values(e.stories),r=>r.title);return{v:4,entries:Object.values(e.stories).reduce((r,n)=>{var l;let a="story";return((l=n.parameters)!=null&&l.docsOnly||n.name==="Page"&&t[n.title]===1)&&(a="docs"),r[n.id]={type:a,...a==="docs"&&{tags:["stories-mdx"],storiesImports:[]},...n},delete r[n.id].story,delete r[n.id].kind,r},{})}},yq=e=>({v:5,entries:Object.values(e.entries).reduce((t,r)=>(t[r.id]={...r,tags:r.tags?[Ma.DEV,Ma.TEST,...r.tags]:[Ma.DEV]},t),{})}),hf=(e,{provider:t,docsOptions:r,filters:n,allStatuses:a,statusFilterKey:l})=>{if(!e.v)throw new Error("Composition: Missing stories.json version");let i=e;i=i.v===2?gq(i):i,i=i.v===3?mq(i):i,i=i.v===4?yq(i):i,i=i;let o=Object.values(i.entries),s=Object.values(n),u=l?n[l]:void 0,c=o.filter(E=>{let x=a[E.id]??{};return u&&!u({...E,statuses:x})&&!o.filter(_=>"parent"in _&&_.parent===E.id).some(_=>u({..._,statuses:a[_.id]??{}}))?!1:Object.values(x).some(({value:_})=>_==="status-value:error")||s.every(_=>_({...E,statuses:x}))?!0:o.filter(_=>"parent"in _&&_.parent===E.id).some(_=>s.every($=>$({..._,statuses:x})))}),{sidebar:d={}}=t.getConfig(),{showRoots:f,collapsedRoots:p=[],renderLabel:y}=d,b=typeof f<"u",S=c.reduce((E,x)=>{if(r.docsMode&&x.type!=="docs")return E;let{title:_}=x,$=_.trim().split(fq),C=(!b||f)&&$.length>1?[$.shift()]:[],w=[...C,...$],A=w.reduce((O,T,M)=>{let P=M>0&&O[M-1],I=Yi(P?`${P}-${T}`:T);if(T.trim()==="")throw new Error(Mr`Invalid title ${_} ending in slash.`);if(P===I)throw new Error(Mr`
  583. Invalid part '${T}', leading to id === parentId ('${I}'), inside title '${_}'
  584. Did you create a path that uses the separator char accidentally, such as 'Vue <docs/>' where '/' is a separator char? See https://github.com/storybookjs/storybook/issues/6128
  585. `);return O.push(I),O},[]);return A.forEach((O,T)=>{let M=A[T+1]||x.id;C.length&&T===0?E[O]=Rl(E[O]||{},{type:"root",id:O,name:w[T],tags:[],depth:T,renderLabel:y,startCollapsed:p.includes(O),children:[M]}):(!E[O]||E[O].type==="component")&&T===A.length-1?E[O]=Rl(E[O]||{},{type:"component",id:O,name:w[T],tags:[],parent:A[T-1],depth:T,renderLabel:y,...M&&{children:[M]}}):E[O]=Rl(E[O]||{},{type:"group",id:O,name:w[T],tags:[],parent:A[T-1],depth:T,renderLabel:y,...M&&{children:[M]}})}),E[x.id]={tags:[],...x,depth:A.length,parent:"parent"in x?x.parent:A[A.length-1],renderLabel:y,prepared:!!x.parameters},E},{});function h(E,x){if(E[x.id]||(E[x.id]=x,"children"in x&&x.children&&(x.children.forEach(_=>h(E,S[_])),x.tags=x.children.reduce((_,$)=>_===null?E[$].tags:dq(_,E[$].tags),null)||[])),x.type==="component"){let _=E[x.children[0]];_&&"importPath"in _&&(x.importPath=_.importPath)}return E}let v=Object.values(S).filter(E=>E.type!=="root"&&!E.parent).reduce((E,x)=>h(E,x),{});return v=Object.values(S).filter(E=>E.type==="root").reduce(h,v),v=Object.values(v).reduce((E,x)=>{if(x.type==="story"&&x.subtype==="test"){let _=E[x.parent],$=E[_.parent];E[$.id]={...$,children:$.children&&$.children.filter(C=>C!==x.id)},E[_.id]={..._,children:(_.children||[]).concat(x.id)},E[x.id]={...x,depth:x.depth+1}}else E[x.id]=x;return E},{}),v},L$=(e,t)=>t?Object.fromEntries(Object.entries(e).map(([r,n])=>{let a=t[r];return n.type==="story"&&(a==null?void 0:a.type)==="story"&&a.prepared?("children"in a&&delete a.children,[r,{...a,...n,prepared:!0}]):[r,n]})):e,bq=(0,k5.default)(1)(e=>Object.entries(e).reduce((t,r)=>{let n=r[1];return n.type==="component"&&t.push([...n.children]),t},[])),vq=(0,k5.default)(1)(e=>Object.keys(e).filter(t=>["story","docs"].includes(e[t].type))),{location:Eq,fetch:M$}=I5,z5=(e,t)=>{let{origin:r,pathname:n}=Eq,{origin:a,pathname:l}=new URL(e),i=`${r+n}`.replace(/\/[^\/]*$/,""),o=`${a+l}`.replace(/\/[^\/]*$/,"");return i===o?["local",o]:t||e?["external",o]:[null,null]},H5=(e,t)=>({...t,kind:t.kind.replace("|","/")}),F$=(e,t)=>Object.entries(e).reduce((r,[n,a])=>({...r,[n]:{...a,refId:t.id}}),{});async function B$(e){if(!e)return{};try{let t=await e;if(t===!1||t===!0)throw new Error("Unexpected boolean response");if(!t.ok){if(t.status===401)try{let n=await t.json();if(n.loginUrl)return{loginUrl:n.loginUrl}}catch{}throw new Error(`Unexpected response not OK: ${t.statusText}`)}let r=await t.json();return r.entries||r.stories?{storyIndex:r}:r}catch(t){return{indexError:t}}}var Sq=e=>{let t=/https?:\/\/(.+:.+)@/,r=e,n,[,a]=e.match(t)||[];return a&&(r=e.replace(`${a}@`,""),n=btoa(`${a}`)),{url:r,authorization:n}},xq=(e,t,r)=>{let{storyMapper:n}=r;return n?Object.entries(e).reduce((a,[l,i])=>({...a,[l]:n(t,i)}),{}):e},$q=({store:e,provider:t,singleStory:r,docsOptions:n={}},{runCheck:a=!0}={})=>{let l={findRef:s=>{let u=l.getRefs();return Object.values(u).find(({url:c})=>c.match(s))},changeRefVersion:async(s,u)=>{let{versions:c,title:d}=l.getRefs()[s],f={id:s,url:u,versions:c,title:d,index:{},filteredIndex:{},expanded:!0};await l.setRef(s,{...f,type:"unknown"},!1),await l.checkRef(f)},changeRefState:(s,u)=>{let{[s]:c,...d}=l.getRefs();d[s]={...c,previewInitialized:u},e.setState({refs:d})},checkRef:async s=>{let{id:u,url:c,version:d,type:f}=s,p=f==="server-checked",y={},b=d?`?version=${d}`:"",S=p?"omit":"include",h=Sq(c),v={Accept:"application/json"};h.authorization&&Object.assign(v,{Authorization:`Basic ${h.authorization}`});let[E,x]=await Promise.all(["index.json","stories.json"].map(async $=>B$(M$(`${h.url}/${$}${b}`,{headers:v,credentials:S}))));if(!E.indexError||!x.indexError){let $=await B$(M$(`${h.url}/metadata.json${b}`,{headers:v,credentials:S,cache:"no-cache"}).catch(()=>!1));Object.assign(y,{...E.indexError?x:E,...!$.indexError&&$})}else p||(y.indexError={message:Mr`
  586. Error: Loading of ref failed
  587. at fetch (lib/api/src/modules/refs.ts)
  588. URL: ${h.url}
  589. We weren't able to load the above URL,
  590. it's possible a CORS error happened.
  591. Please check your dev-tools network tab.
  592. `});let _=s.versions&&Object.keys(s.versions).length?s.versions:y.versions;await l.setRef(u,{id:u,url:h.url,...y,..._?{versions:_}:{},type:y.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,y,b,{filters:S}=e.getState(),{storyMapper:h=H5}=t.getConfig(),v=l.getRefs()[s];(u||c)&&(p=c?hq(xq(c,v,{storyMapper:h})):u,b=hf(u,{provider:t,docsOptions:n,filters:S,allStatuses:{}}),y=hf(u,{provider:t,docsOptions:n,filters:{},allStatuses:{}})),y&&(y=F$(y,v)),b&&(b=F$(b,v)),await l.updateRef(s,{...v,...d,index:y,filteredIndex:b,internal_index:p})},updateRef:async(s,u)=>{let{[s]:c,...d}=l.getRefs();d[s]={...c,...u};let f=Object.keys(o).reduce((p,y)=>(p[y]=d[y],p),{});await e.setState({refs:f})}},i=!r&&I5.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}}},dr=(e,t)=>{let{source:r,refId:n,type:a}=e,[l,i]=z5(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 cq.warn(`Received a ${a} frame that was not configured as a ref`),null}},_q=({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(uq,{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();$n(s,d)||e.setState({globals:s}),$n(c,f)||e.setState({userGlobals:c}),$n(u,p)||e.setState({storyGlobals:u})};return(i=r.channel)==null||i.on(oq,function({globals:s,storyGlobals:u,userGlobals:c}){let{ref:d}=dr(this,t);d?N$.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(sq,function({globals:s,globalTypes:u}){var f;let{ref:c}=dr(this,t),d=(f=e.getState())==null?void 0:f.userGlobals;c?Object.keys(s).length>0&&N$.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&&!$n(s,d)&&n.updateGlobals(d)}),{api:n,state:a}},F1={};Ft(F1,{ActiveTabs:()=>U5,DEFAULT_BOTTOM_PANEL_HEIGHT:()=>gf,DEFAULT_NAV_SIZE:()=>su,DEFAULT_RIGHT_PANEL_WIDTH:()=>mf,focusableUIElements:()=>hn,getDefaultLayoutState:()=>j5,init:()=>wq});const{SET_CONFIG:Cq}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Tq}=__STORYBOOK_MODULE_GLOBAL__;var{document:Oc}=Tq,gg=e=>typeof e=="function",U5={SIDEBAR:"sidebar",CANVAS:"canvas",ADDONS:"addons"},su=300,gf=300,mf=400,j5=()=>({ui:{enableShortcuts:!0},layout:{initialActive:U5.CANVAS,showToolbar:!0,navSize:su,bottomPanelHeight:gf,rightPanelWidth:mf,recentVisibleSizes:{navSize:su,bottomPanelHeight:gf,rightPanelWidth:mf},panelPosition:"bottom",showTabs:!0},layoutCustomisations:{showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:sO()}),hn={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"},G0=e=>e.layout.navSize>0,V0=e=>{let{bottomPanelHeight:t,rightPanelWidth:r,panelPosition:n}=e.layout;return n==="bottom"&&t>0||n==="right"&&r>0},P$=e=>!G0(e)&&!V0(e),Dc=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}),wq=({store:e,provider:t,singleStory:r})=>{var l;let n={toggleFullscreen(i){return e.setState(o=>{let s=P$(o),u=typeof i=="boolean"?i:!s;return u===s?{layout:o.layout}:u?{layout:{...o.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Dc(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=V0(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:Dc(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=G0(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:Dc(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:Dc(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,y;let f=Oc.getElementById(i);return!f||(f.focus(),f!==Oc.activeElement&&s&&f.getAttribute("tabindex")===null&&(f.setAttribute("tabindex","-1"),f.focus()),f!==Oc.activeElement&&f.id!==((p=Oc.activeElement)==null?void 0:p.id))?!1:(u&&((y=f.select)==null||y.call(f)),!0)};return d()?!0:c?new Promise(f=>{let p=Date.now(),y=500,b=setInterval(()=>{let S=Date.now()-p;if(d()){clearInterval(b),f(!0);return}S>=y&&(clearInterval(b),f(!1))},50)}):!1},getInitialOptions(){let{theme:i,selectedPanel:o,layoutCustomisations:s,...u}=t.getConfig(),c=j5();return{...c,layout:{...eh(c.layout,Uo(u,Object.keys(c.layout))),...r&&{navSize:0}},layoutCustomisations:{...c.layoutCustomisations,...s??{}},ui:eh(c.ui,Uo(u,Object.keys(c.ui))),selectedPanel:o||c.selectedPanel,theme:i||c.theme}},getIsFullscreen(){return P$(e.getState())},getIsPanelShown(){return V0(e.getState())},getIsNavShown(){return G0(e.getState())},getShowToolbarWithCustomisations(i){let o=e.getState();return gg(o.layoutCustomisations.showToolbar)?o.layoutCustomisations.showToolbar(o,i)??i:i},getShowPanelWithCustomisations(i){let o=e.getState();return gg(o.layoutCustomisations.showPanel)?o.layoutCustomisations.showPanel(o,i)??i:i},getNavSizeWithCustomisations(i){let o=e.getState();if(gg(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||{},...Uo(i,Object.keys(o)),...r&&{navSize:0}},f={...s,...i.ui,...eh(i.ui||{},Uo(i,Object.keys(s)))},p={...c,...i.theme},y={};yn(s,f)||(y.ui=f),yn(o,d)||(y.layout=d),i.selectedPanel&&!yn(u,i.selectedPanel)&&(y.selectedPanel=i.selectedPanel),Object.keys(y).length&&e.setState(y,{persistence:"permanent"}),yn(c,p)||e.setState({theme:p})}},a=Uo(e.getState(),["layout","selectedPanel"]);return(l=t.channel)==null||l.on(Cq,()=>{n.setOptions(Rl(n.getInitialOptions(),a))}),{api:n,state:Rl(n.getInitialOptions(),a)}},K5={};Ft(K5,{init:()=>Aq});var Aq=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:r})=>{let[n,a]=l$(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]=l$(r,l=>l.id===t);return n.forEach(l=>{l.onClear&&l.onClear({dismissed:!1,timeout:!1})}),{notifications:a}})}},state:{notifications:[]}}),G5={};Ft(G5,{init:()=>Dq});const{OPEN_IN_EDITOR_REQUEST:Oq,OPEN_IN_EDITOR_RESPONSE:mg}=__STORYBOOK_MODULE_CORE_EVENTS__;var Dq=({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(mg,o),n(c))};(s=e.channel)==null||s.on(mg,o),(u=e.channel)==null||u.emit(Oq,r)})}},state:{notifications:[]},init:async()=>{var n;let{color:r}=await ta(async()=>{const{color:a}=await Promise.resolve().then(()=>Mk);return{color:a}},void 0,import.meta.url);(n=e.channel)==null||n.on(mg,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(Oz,{color:r.negative}),duration:8e3})})}}),V5={};Ft(V5,{init:()=>Rq});var Rq=({provider:e,fullAPI:t})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{},init:()=>{e.handleAPI(t)}}),Y5={};Ft(Y5,{init:()=>Nq});var Nq=({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}})}}}),q5={};Ft(q5,{controlOrMetaKey:()=>gi,defaultShortcuts:()=>mi,init:()=>Yq,isMacLike:()=>X5,keys:()=>Y0});var Lq=Wt(qY(),1);const{FORCE_REMOUNT:Mq,PREVIEW_KEYDOWN:Fq,STORIES_COLLAPSE_ALL:Bq,STORIES_EXPAND_ALL:Pq}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:W5}=__STORYBOOK_MODULE_GLOBAL__,{global:Iq}=__STORYBOOK_MODULE_GLOBAL__;var{navigator:yg}=Iq,kq=()=>yg&&yg.platform?!!yg.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,zq=()=>kq()?"⌥":"alt",Hq=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},Uq=(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]),jq=e=>e==="alt"?zq():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(),Kq=e=>e.map(jq).join(" "),Gq=e=>e.map(t=>t==="+"?"plus":t===" "?"space":t).join("+"),{navigator:bg,document:xa}=W5;function I$(e){return xa.activeElement&&(e==null?void 0:e.contains(xa.activeElement))}var X5=()=>bg&&bg.platform?!!bg.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,gi=()=>X5()?"meta":"control";function Y0(e){return Object.keys(e)}var mi=Object.freeze({fullScreen:["alt","F"],togglePanel:["alt","A"],panelPosition:["alt","D"],toggleNav:["alt","S"],toolbar:["alt","T"],search:[gi(),"K"],focusNav:["1"],focusIframe:["2"],focusPanel:["3"],prevComponent:["alt","ArrowUp"],nextComponent:["alt","ArrowDown"],prevStory:["alt","ArrowLeft"],nextStory:["alt","ArrowRight"],shortcutsPage:[gi(),"shift",","],aboutPage:[gi(),","],escape:["escape"],collapseAll:[gi(),"shift","ArrowUp"],expandAll:[gi(),"shift","ArrowDown"],remount:["alt","R"],openInEditor:["alt","shift","E"],openInIsolation:["alt","shift","I"],copyStoryLink:["alt","shift","L"],goToPreviousLandmark:["shift","F6"],goToNextLandmark:["F6"]}),vg={};function Vq(e){let t=e.target;return!!(/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null||t.closest("dialog[open]"))}var Yq=({store:e,fullAPI:t,provider:r})=>{let n={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...mi,...n.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return vg},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})),vg[`${i}-${o.actionName}`]=o,o},async restoreDefaultShortcut(i){let o=n.getDefaultShortcuts()[i];return n.setShortcut(i,o)},handleKeydownEvent(i){let o=Hq(i),s=n.getShortcutKeys(),u=Y0(s).find(c=>Uq(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(hn.storyListMenu);break}case"search":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(hn.storySearchField,!0)},0);break}case"focusIframe":{let f=xa.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(hn.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=xa.getElementById(hn.addonPanel);t.togglePanel(),f&&I$(p)&&t.focusOnUIElement(hn.showAddonPanel,{poll:!0}).then(y=>{y===!1&&xa.body.focus()}),f||t.focusOnUIElement(hn.addonPanel,{forceFocus:!0,poll:!0});break}case"toggleNav":{let f=t.getIsNavShown(),p=xa.getElementById(hn.sidebarRegion);t.toggleNav(),f&&I$(p)&&t.focusOnUIElement(hn.showSidebar,{poll:!0}).then(y=>{y===!1&&xa.body.focus()}),f||t.focusOnUIElement(hn.sidebarRegion,{forceFocus:!0,poll:!0});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(Bq);break}case"expandAll":{t.emit(Pq);break}case"remount":{t.emit(Mq,{storyId:u});break}case"openInEditor":{W5.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,Lq.default)(f)}break}default:vg[i].action();break}}},{shortcuts:a=mi}=e.getState(),l={shortcuts:Y0(mi).reduce((i,o)=>({...i,[o]:a[o]||mi[o]}),mi)};return{api:n,state:l,init:()=>{var i;xa.addEventListener("keydown",o=>{Vq(o)||n.handleKeydownEvent(o)}),(i=r.channel)==null||i.on(Fq,o=>{n.handleKeydownEvent(o.event)})}}},Z5={};Ft(Z5,{init:()=>_W});const{logger:qq}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:Wq,CURRENT_STORY_WAS_SET:Xq,DOCS_PREPARED:Zq,PRELOAD_ENTRIES:Qq,RESET_STORY_ARGS:Jq,SELECT_STORY:eW,SET_CONFIG:tW,SET_CURRENT_STORY:rW,SET_FILTER:nW,SET_INDEX:aW,SET_STORIES:lW,SIDEBAR_FILTER_CHANGED:iW,STORY_ARGS_UPDATED:oW,STORY_CHANGED:sW,STORY_INDEX_INVALIDATED:uW,STORY_MISSING:cW,STORY_PREPARED:dW,STORY_SPECIFIED:fW,UPDATE_STORY_ARGS:pW}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Q5}=__STORYBOOK_MODULE_GLOBAL__;var J5=(e,t={})=>{let r=Object.entries(t).filter(([,n])=>n!=null).sort(([n],[a])=>n<a?-1:1).map(([n,a])=>`${n}=${a}`);return[e,...r].join("&")},e3=(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);!yn(s,u)&&(r.current=s,l())}),[e,t]),a=g.useCallback(()=>{let l=e.getState(),i=t?t(l):l;return yn(i,r.current)||(r.current=i),r.current},[e,t]);return[g.useSyncExternalStore(n,a),e.setState]},hW=Qj({universalStatusStore:u1.create({...Xj,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:e3,environment:"manager"}),{fullStatusStore:yd}=hW,t3=(e,t)=>{if(!e)return{included:[],excluded:[]};let r=[],n=[];return e.split(";").forEach(a=>{if(!a)return;let l=a.startsWith("!"),i=t(l?a.slice(1):a);i!=null&&(l?n.push(i):r.push(i))}),{included:r,excluded:n}},gW=e=>t3(e,Wj),mW=(e,t)=>{if(!e.length&&!t.length)return;let r=e.map(a=>r$(a)).sort(),n=t.map(a=>`!${r$(a)}`).sort();return[...r,...n].join(";")},Eg=(e,t)=>r=>{if(!e.length&&!t.length)return!0;let n=(yd.getAll()??{})[r.id],a=n?Object.values(n).map(o=>o.value):[],l=!e.length||e.some(o=>a.includes(o)),i=!t.length||t.every(o=>!a.includes(o));return l&&i},yW=Wt(Kl(),1),r3={$docs:"_docs",$play:"_play",$test:"_test"},bW=e=>t3(e,t=>r3[t]??t),vW=(e,t)=>{if(!e.length&&!t.length)return"";let r=Object.fromEntries(Object.entries(r3).map(([l,i])=>[i,l])),n=e.map(l=>r[l]??l).sort(),a=t.map(l=>`!${r[l]??l}`).sort();return[...n,...a].join(";")},EW=(0,yW.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)}}),k$=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??[],a=r.type==="docs"&&!n.includes(Ma.ATTACHED_MDX)&&!n.includes(Ma.UNATTACHED_MDX);return(n.includes(Ma.DEV)||a)&&n.filter(l=>t[l]).length===0}},Sg=(e,t)=>{let r=n=>Object.values(n.reduce((a,l)=>(Object.hasOwn(Ad,l)?a["built-in"].push(Ad[l]):a.user.push(t7(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))))}},{fetch:SW}=Q5,xW="./index.json",xg="tags-filter",z$="static-filter",Rc="status-filter",si=new Set(Object.keys(Ad)),$W=["enableShortcuts","theme","showRoots"];function $g(e){if(!e||typeof e=="string")return e;let t={...e};return $W.forEach(r=>{r in t&&delete t[r]}),t}var H$={tag:{included:"includedTagFilters",excluded:"excludedTagFilters"},status:{included:"includedStatusFilters",excluded:"excludedStatusFilters"}},_W=({fullAPI:e,store:t,navigate:r,provider:n,state:{location:a}={},storyId:l,viewMode:i,docsOptions:o={}})=>{var I,H,L,D,N,U,B,G,V,Z,J,j,X,te;let s=(F,z)=>{let{customQueryParams:q}=t.getState();r(J5(F,q??{}),z)},u=F=>t.setState(F,{persistence:"url",serialize:z=>{let q=vW(z.includedTagFilters,z.excludedTagFilters),K=mW(z.includedStatusFilters,z.excludedStatusFilters);return{tags:q??null,statuses:K??null}}}),c=!1,d=async(F,z,q)=>{let{included:K,excluded:k}=H$[F],Y=t.getState(),Q=new Set(Y[K]),re=new Set(Y[k]);for(let pe of z){let[ee,Re]=q?[re,Q]:[Q,re];Re.delete(pe),ee.add(pe)}await u({[K]:Array.from(Q),[k]:Array.from(re)})},f=async(F,z)=>{let{included:q,excluded:K}=H$[F],k=t.getState(),Y=new Set(z);await u({[q]:k[q].filter(Q=>!Y.has(Q)),[K]:k[K].filter(Q=>!Y.has(Q))})},p=(F,z)=>{var Re,Oe;let q=t.getState(),K=(q.includedTagFilters??[]).filter(be=>si.has(be)),k=(q.excludedTagFilters??[]).filter(be=>si.has(be)),Y=!!((Re=globalThis==null?void 0:globalThis.FEATURES)!=null&&Re.changeDetection),Q=Y?q.includedStatusFilters??[]:[],re=Y?q.excludedStatusFilters??[]:[],pe={},ee=q.internal_index?Object.values(q.internal_index.entries):[];for(let be of new Set([...K,...k])){let le=Ad[be];pe[be]=ee.filter(Me=>le(Me)).length}if(Q.length>0||re.length>0){let be=Zj(yd.getAll());for(let le of new Set([...Q,...re]))be[le]!==void 0&&(pe[le]=be[le])}(Oe=n.channel)==null||Oe.emit(iW,{trigger:F,changed:z,activeTagFilters:{included:K,excluded:k},activeStatusFilters:{included:Q,excluded:re},storyCounts:pe})},y={storyId:nc,getData:(F,z)=>{let q=y.resolveStory(F,z);if((q==null?void 0:q.type)==="story"||(q==null?void 0:q.type)==="docs")return q},isPrepared:(F,z)=>{let q=y.getData(F,z);return q?q.type==="story"?q.prepared:!0:!1},resolveStory:(F,z)=>{var k,Y;let{refs:q,index:K}=t.getState();if(!(z&&!q[z]))return z?((Y=(k=q==null?void 0:q[z])==null?void 0:k.index)==null?void 0:Y[F])??void 0:K?K[F]:void 0},getCurrentStoryData:()=>{let{storyId:F,refId:z}=t.getState();return y.getData(F,z)},getIndex:()=>{let{internal_index:F}=t.getState();return F},getParameters:(F,z)=>{let{storyId:q,refId:K}=typeof F=="string"?{storyId:F,refId:void 0}:F,k=y.getData(q,K);if(["story","docs"].includes(k==null?void 0:k.type)){let{parameters:Y}=k;if(Y)return z?Y[z]:Y}return null},getCurrentParameter:F=>{let{storyId:z,refId:q}=t.getState();return y.getParameters({storyId:z,refId:q},F)||void 0},jumpToComponent:F=>{let{filteredIndex:z,storyId:q,refs:K,refId:k}=t.getState();if(!y.getData(q,k))return;let Y=k?K[k].filteredIndex||{}:z;if(!Y)return;let Q=y.findSiblingStoryId(q,Y,F,!0);Q&&y.selectStory(Q,void 0,{ref:k})},jumpToStory:F=>{let{filteredIndex:z,storyId:q,refs:K,refId:k}=t.getState(),Y=y.getData(q,k);if(!Y)return;let Q=Y.refId?K[Y.refId].filteredIndex:z;if(!Q)return;let re=y.findSiblingStoryId(q,Q,F,!1);re&&y.selectStory(re,void 0,{ref:k})},selectFirstStory:()=>{let F=t.getState();if(Kv(F)){let{filteredIndex:K}=F;if(!K)return;let k=Object.keys(K).find(Y=>K[Y].type==="story");k&&y.selectStory(k);return}let{index:z}=F;if(!z)return;let q=Object.keys(z).find(K=>z[K].type==="story");if(q){y.selectStory(q);return}s("/")},selectStory:(F=void 0,z=void 0,q={})=>{let{ref:K}=q,{storyId:k,index:Y,filteredIndex:Q,refs:re,settings:pe}=t.getState(),ee=le=>(le==null?void 0:le.type)==="docs"||(le==null?void 0:le.type)==="story"?(t.setState({settings:{...pe,lastTrackedStoryId:le.id}}),s(`/${le.type}/${le.refId?`${le.refId}_${le.id}`:le.id}`),!0):!1,Re=k==null?void 0:k.split("--",2)[0],Oe=K?re[K].index:Y,be=K?re[K].filteredIndex:Q;if(!(!Oe||!be))if(z)if(!F)ee(Oe[nc(Re,z)]);else{let le=K?`${K}_${nc(F,z)}`:nc(F,z);if(Oe[le])ee(Oe[le]);else{let Me=Oe[Yi(F)];if((Me==null?void 0:Me.type)==="component"){let Kt=Me.children.find(qr=>Oe[qr].name===z);ee(Kt?Oe[Kt]:void 0)}}}else{let le=F?Oe[F]||Oe[Yi(F)]:Oe[Re];if(!le)throw new Error(`Unknown id or title: '${F}'`);ee(le)||ee(y.findLeafEntry(be,le.id))}},findLeafEntry(F,z){let q=F[z];if(!q)return;if(q.type==="docs"||q.type==="story")return q;let K=q.children.find(k=>F[k]);return K?y.findLeafEntry(F,K):void 0},findLeafStoryId(F,z){var q;return(q=y.findLeafEntry(F,z))==null?void 0:q.id},findAllLeafStoryIds(F){let{index:z}=t.getState();if(!z)return[];let q=(K,k=[])=>{var Q;let Y=z[K];return Y&&(Y.type==="story"&&k.push(Y.id),"children"in Y&&((Q=Y.children)==null||Q.forEach(re=>q(re,k)))),k};return q(F,[])},findSiblingStoryId(F,z,q,K){if(K){let Q=bq(z),re=Q.findIndex(pe=>pe.includes(F));return re===Q.length-1&&q>0||re===0&&q<0?void 0:Q[re+q]?Q[re+q][0]:void 0}let k=vq(z),Y=k.indexOf(F);if(!(Y===k.length-1&&q>0)&&!(Y===0&&q<0))return k[Y+q]},updateStoryArgs:(F,z)=>{var k;let{id:q,refId:K}=F;(k=n.channel)==null||k.emit(pW,{storyId:q,updatedArgs:z,options:{target:K}})},resetStoryArgs:(F,z)=>{var k;let{id:q,refId:K}=F;(k=n.channel)==null||k.emit(Jq,{storyId:q,argNames:z,options:{target:K}})},fetchIndex:async()=>{try{let F=await SW(xW);if(F.status!==200)throw new Error(await F.text());let z=await F.json();if(z.v<3){qq.warn(`Skipping story index with version v${z.v}, awaiting SET_STORIES.`);return}await y.setIndex(z)}catch(F){await t.setState({indexError:F})}},setIndex:async F=>{let{filteredIndex:z,index:q,filters:K}=t.getState(),k=yd.getAll(),Y=hf(F,{provider:n,docsOptions:o,filters:K,allStatuses:k,statusFilterKey:Rc}),Q=hf(F,{provider:n,docsOptions:o,filters:{},allStatuses:k});await t.setState({internal_index:F,filteredIndex:L$(Y,z),index:L$(Q,q),indexError:void 0})},updateStory:async(F,z,q)=>{if(q){let{id:K,index:k,filteredIndex:Y}=q;k&&k[F]&&(k[F]={...k[F],...z}),Y&&Y[F]&&(Y[F]={...Y[F],...z}),await e.updateRef(K,{index:k,filteredIndex:Y})}else{let{index:K,filteredIndex:k}=t.getState();K&&K[F]&&(K[F]={...K[F],...z}),k&&k[F]&&(k[F]={...k[F],...z}),(K||k)&&await t.setState({index:K,filteredIndex:k})}},updateDocs:async(F,z,q)=>{if(q){let{id:K,index:k,filteredIndex:Y}=q;k[F]={...k[F],...z},Y[F]={...Y[F],...z},await e.updateRef(K,{index:k,filteredIndex:Y})}else{let{index:K,filteredIndex:k}=t.getState();K&&(K[F]={...K[F],...z}),k&&(k[F]={...k[F],...z}),(K||k)&&await t.setState({index:K,filteredIndex:k})}},setPreviewInitialized:async F=>{F?e.updateRef(F.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async(F,z)=>{var k;await t.setState({filters:{...t.getState().filters,[F]:z}});let{internal_index:q}=t.getState();if(!q)return;await y.setIndex(q);let K=await e.getRefs();for(let[Y,{internal_index:Q,...re}]of Object.entries(K))await e.setRef(Y,{...re,storyIndex:Q},!0);(k=n.channel)==null||k.emit(nW,{id:F})},resetTagFilters:async()=>{await u(F=>({includedTagFilters:F.defaultIncludedTagFilters,excludedTagFilters:F.defaultExcludedTagFilters})),await b()},setAllTagFilters:async(F,z)=>{await u({includedTagFilters:F,excludedTagFilters:z}),await b()},addTagFilters:async(F,z)=>{await d("tag",F,z),await b(),F.length===1&&si.has(F[0])&&p("interaction",{filterType:"tag",filterId:F[0],action:z?"exclude":"include"})},removeTagFilters:async F=>{await f("tag",F),await b(),F.length===1&&si.has(F[0])&&p("interaction",{filterType:"tag",filterId:F[0],action:"remove"})},resetStatusFilters:async()=>{await u({includedStatusFilters:[],excludedStatusFilters:[]}),await S()},setAllStatusFilters:async(F,z)=>{let q=t.getState(),K=new Set(q.includedStatusFilters??[]),k=new Set(q.excludedStatusFilters??[]),Y=new Set(F),Q=new Set(z);await u({includedStatusFilters:F,excludedStatusFilters:z}),await S();let re=new Set([...K,...k,...Y,...Q]);for(let pe of re){let ee=K.has(pe),Re=k.has(pe),Oe=Y.has(pe),be=Q.has(pe);if(ee===Oe&&Re===be)continue;let le;Oe?le="include":be?le="exclude":le="remove",p("interaction",{filterType:"status",filterId:pe,action:le})}},addStatusFilters:async(F,z)=>{await d("status",F,z),await S(),F.length===1&&p("interaction",{filterType:"status",filterId:F[0],action:z?"exclude":"include"})},removeStatusFilters:async F=>{await f("status",F),await S(),F.length===1&&p("interaction",{filterType:"status",filterId:F[0],action:"remove"})}},b=()=>{let{includedTagFilters:F,excludedTagFilters:z}=t.getState();return y.experimental_setFilter(xg,Sg(F,z))},S=()=>{let{includedStatusFilters:F,excludedStatusFilters:z}=t.getState();return y.experimental_setFilter(Rc,Eg(F??[],z??[]))};(I=n.channel)==null||I.on(fW,function({storyId:F,viewMode:z}){var K,k,Y;let{sourceType:q}=dr(this,e);if(q==="local"){let Q=t.getState(),re=Q.path==="/"||Q.viewMode==="story"||Q.viewMode==="docs",pe=Q.viewMode&&Q.storyId,ee=Q.viewMode!==z||Q.storyId!==F,{type:Re}=((K=Q.index)==null?void 0:K[Q.storyId])||{},Oe=!(Re==="root"||Re==="component"||Re==="group");if(re){if(Kv(Q)&&!pe){let{filteredIndex:be}=Q;if(!(be&&((k=be[F])==null?void 0:k.type)==="story")){let le=be?Object.keys(be).find(Me=>{let Kt=be[Me];return Kt.type==="story"||Kt.type==="docs"}):void 0;le&&s(`/${z}/${le}`);return}}pe&&ee&&Oe?(Y=n.channel)==null||Y.emit(rW,{storyId:Q.storyId,viewMode:Q.viewMode}):ee&&s(`/${z}/${F}`)}}}),(H=n.channel)==null||H.on(Xq,function(){let{ref:F}=dr(this,e);y.setPreviewInitialized(F)}),(L=n.channel)==null||L.on(sW,function(){let{sourceType:F}=dr(this,e);if(F==="local"){let z=y.getCurrentParameter("options");z&&e.setOptions($g(z))}}),(D=n.channel)==null||D.on(dW,function({id:F,...z}){var k;let{ref:q,sourceType:K}=dr(this,e);if(y.updateStory(F,{...z,prepared:!0},q),!q&&!t.getState().hasCalledSetOptions){let{options:Y}=z.parameters;e.setOptions($g(Y)),t.setState({hasCalledSetOptions:!0})}if(K==="local"){let{storyId:Y,index:Q,refId:re}=t.getState();if(!Q)return;let pe=Array.from(new Set([y.findSiblingStoryId(Y,Q,1,!0),y.findSiblingStoryId(Y,Q,-1,!0)])).filter(Boolean);(k=n.channel)==null||k.emit(Qq,{ids:pe,options:{target:re}})}}),(N=n.channel)==null||N.on(Zq,function({id:F,...z}){let{ref:q}=dr(this,e);y.updateStory(F,{...z,prepared:!0},q)}),(U=n.channel)==null||U.on(aW,function(F){let{ref:z}=dr(this,e);if(z)e.setRef(z.id,{...z,storyIndex:F},!0);else{y.setIndex(F);let q=y.getCurrentParameter("options");e.setOptions($g(q))}}),(B=n.channel)==null||B.on(lW,function(F){let{ref:z}=dr(this,e),q=F.v?pq(F):F.stories;if(z)e.setRef(z.id,{...z,setStoriesData:q},!0);else throw new Error("Cannot call SET_STORIES for local frame")}),(G=n.channel)==null||G.on(eW,function({kind:F,title:z=F,story:q,name:K=q,storyId:k,...Y}){let{ref:Q}=dr(this,e);Q?e.selectStory(k||z,K,{...Y,ref:Q.id}):e.selectStory(k||z,K,Y)}),(V=n.channel)==null||V.on(oW,function({storyId:F,args:z}){let{ref:q}=dr(this,e);y.updateStory(F,{args:z},q)}),(Z=n.channel)==null||Z.on(Wq,function(F){let{ref:z}=dr(this,e);y.setPreviewInitialized(z)}),(J=n.channel)==null||J.on(cW,function(F){let{ref:z}=dr(this,e);y.setPreviewInitialized(z)}),(j=n.channel)==null||j.on(tW,()=>{var Q,re;let F=((re=(Q=n.getConfig())==null?void 0:Q.sidebar)==null?void 0:re.filters)||{},{includedTagFilters:z,excludedTagFilters:q,includedStatusFilters:K,excludedStatusFilters:k,tagPresets:Y}=t.getState();t.setState({filters:{...t.getState().filters,...F,[z$]:k$(Y),[xg]:Sg(z,q),[Rc]:Eg(K,k)}})}),yd.onAllStatusChange(async()=>{S();let{internal_index:F}=t.getState();if(!F)return;await y.setIndex(F);let z=await e.getRefs();Object.entries(z).forEach(([q,{internal_index:K,...k}])=>{e.setRef(q,{...k,storyIndex:K},!0)})});let h=((te=(X=n.getConfig())==null?void 0:X.sidebar)==null?void 0:te.filters)||{},v=Q5.TAGS_OPTIONS||{},E=EW(v),{tags:x,statuses:_}=b5(a??{search:""}),$=bW(x),C=x!==void 0,w=C?$.included:E.included,A=C?$.excluded:E.excluded,O=gW(_),T=O.included,M=O.excluded,P={...h,[z$]:k$(v),[xg]:Sg(w,A),[Rc]:Eg(T,M)};return{api:y,state:{storyId:l,viewMode:i,hasCalledSetOptions:!1,previewInitialized:!1,filters:P,tagPresets:v,defaultIncludedTagFilters:E.included,defaultExcludedTagFilters:E.excluded,includedTagFilters:w,excludedTagFilters:A,includedStatusFilters:T,excludedStatusFilters:M},init:async()=>{var q,K;if((q=n.channel)==null||q.on(uW,()=>y.fetchIndex()),await y.fetchIndex(),c)return;c=!0;let F=w.some(k=>si.has(k))||A.some(k=>si.has(k)),z=!!((K=globalThis==null?void 0:globalThis.FEATURES)!=null&&K.changeDetection)&&(T.length>0||M.length>0);(F||z)&&p("url")}}},n3={};Ft(n3,{init:()=>RW});const{GLOBALS_UPDATED:CW,NAVIGATE_URL:TW,SET_CURRENT_STORY:wW,STORY_ARGS_UPDATED:AW,UPDATE_QUERY_PARAMS:OW}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:ui}=__STORYBOOK_MODULE_GLOBAL__;var U$=Wt(sT(),1),ll=e=>{if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1},j$=e=>Object.fromEntries(e.split(";").map(t=>t.split(":")).map(([t,r])=>[t,encodeURIComponent(r)]).filter(([t,r])=>t&&r)),K$=(e,t)=>{let r=j$(e),n=j$(t);return Object.entries({...r,...n}).map(([a,l])=>`${a}:${l}`).join(";")},_g,DW=({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}=b5(e),p,y,b;ll(l)===!0?(p=0,y=0,b=0):ll(l)===!1&&(p=su,y=gf,b=mf),a||(ll(o)===!0&&(p=su),ll(o)===!1&&(p=0)),ll(i)===!1&&(y=0,b=0);let S={navSize:p,bottomPanelHeight:y,rightPanelWidth:b,panelPosition:["right","bottom"].includes(i)?i:void 0,showTabs:ll(c)},h={enableShortcuts:ll(s)},v=u||void 0,E=n,x=$n(_g,f)?_g:f;return _g=x,{viewMode:r,layout:S,ui:h,selectedPanel:v,location:e,path:t,customQueryParams:x,storyId:E}},RW=e=>{var u,c,d,f;let{store:t,navigate:r,provider:n,fullAPI:a}=e,l=(p,y={},b={})=>r(J5(p,y),b),i={getStoryHrefs(p,y={}){let{id:b,refId:S}=a.getCurrentStoryData()??{},h=p===b&&y.refId===S,{customQueryParams:v,location:E,refs:x}=t.getState(),{base:_,inheritArgs:$=h,inheritGlobals:C=!0,queryParams:w={},refId:A,viewMode:O="story"}=y;if(A&&!x[A])throw new Error(`Invalid refId: ${A}`);let T=E.pathname||"/",M=ui.window.location.origin+T,P=ui.STORYBOOK_NETWORK_ADDRESS??M,I=_==="origin"?M:_==="network"?P:T,H=A?x[A].url+"/iframe.html":ui.PREVIEW_URL||`${I.replace(/\/[^/]*\.html$/,"").replace(/\/?$/,"/")}iframe.html`,L=A?`&refId=${encodeURIComponent(A)}`:"",{args:D="",globals:N="",...U}=w,B=$?K$((v==null?void 0:v.args)??"",D):D,G=C?K$((v==null?void 0:v.globals)??"",N):N,V=(0,U$.stringify)(U,{nesting:!0,nestingSyntax:"js"}),Z=(0,U$.stringify)(q8(U,["id","viewMode"]),{nesting:!0,nestingSyntax:"js"});return B=B&&`&args=${B}`,G=G&&`&globals=${G}`,V=V&&`&${V}`,Z=Z&&`&${Z}`,{managerHref:`${I}?path=/${O}/${A?`${A}_`:""}${p}${B}${G}${V}`,previewHref:`${H}?id=${p}&viewMode=${O}${L}${B}${A?"":G}${Z}`}},getQueryParam(p){let{customQueryParams:y}=t.getState();return y?y[p]:void 0},getUrlState(){let{location:p,path:y,customQueryParams:b,storyId:S,url:h,viewMode:v}=t.getState();return{path:y,hash:(p==null?void 0:p.hash)??"",queryParams:b,storyId:S,url:h,viewMode:v}},setQueryParams(p){var S;let{customQueryParams:y}=t.getState(),b={...y};for(let[h,v]of Object.entries(p))v==null?delete b[h]:b[h]=v;$n(y,b)||(t.setState({customQueryParams:b}),(S=n.channel)==null||S.emit(OW,b))},applyQueryParams(p,y){let{path:b,hash:S="",queryParams:h}=i.getUrlState();l(`${b}${S}`,{...h,...p},y),i.setQueryParams(p)},navigateUrl(p,y){r(p,{plain:!0,...y})}},o=()=>{let{path:p,hash:y="",queryParams:b,viewMode:S}=i.getUrlState();if(S!=="story")return;let h=a.getCurrentStoryData();if((h==null?void 0:h.type)!=="story")return;let{args:v,initialArgs:E}=h,x=o$(E,v);l(`${p}${y}`,{...b,args:x||null},{replace:!0}),i.setQueryParams({args:x||null})};(u=n.channel)==null||u.on(wW,()=>o());let s;return(c=n.channel)==null||c.on(AW,()=>{"requestIdleCallback"in ui.window?(s&&ui.window.cancelIdleCallback(s),s=ui.window.requestIdleCallback(o,{timeout:1e3})):(s&&clearTimeout(s),setTimeout(o,100))}),(d=n.channel)==null||d.on(CW,({userGlobals:p,initialGlobals:y})=>{let{path:b,hash:S="",queryParams:h}=i.getUrlState(),v=o$(y,Rl(y,p));l(`${b}${S}`,{...h,globals:v||null},{replace:!0}),i.setQueryParams({globals:v||null})}),(f=n.channel)==null||f.on(TW,(p,y)=>{i.navigateUrl(p,y)}),{api:i,state:DW(e),init:()=>{t.registerPersistenceHandler("url",(p,y)=>{if(y){let b=y(t.getState());i.applyQueryParams(b,{replace:!0})}})}}},a3={};Ft(a3,{init:()=>BW});var NW=Wt(Kl(),1);const{global:q0}=__STORYBOOK_MODULE_GLOBAL__;var LW="10.4.6",{VERSIONCHECK:MW}=q0,G$=(0,NW.default)(1)(()=>{try{return{...JSON.parse(MW).data||{}}}catch{return{}}}),FW=e=>e.includes("vue")?"vue":e,BW=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),r={versions:{current:{version:LW},...G$()},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&&cr.prerelease(i.version)&&l?a&&cr.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+=`${cr.major(f)}.${cr.minor(f)}/`;else if(i&&f&&c){let v=cr.diff(c,f);v==="patch"||v===null||(p+=`${cr.major(f)}.${cr.minor(f)}/`)}let[y,b]=(l==null?void 0:l.split("#"))||[];if(y&&(p+=a?y:`${y}/`),o&&typeof q0.STORYBOOK_RENDERER<"u"){let v=q0.STORYBOOK_RENDERER;v&&(p+=`?renderer=${FW(v)}`)}return s&&(p+=`${p.includes("?")?"&":"?"}ref=${s}`),b&&(p+=`#${b}`),p},versionUpdateAvailable:()=>{let a=n.getLatestVersion(),l=n.getCurrentVersion();if(a){if(!a.version||!l.version)return!0;let i=cr.prerelease(l.version)?`${cr.major(l.version)}.${cr.minor(l.version)}.${cr.patch(l.version)}`:l.version,o=cr.diff(i,a.version);return cr.gt(a.version,i)&&o!=="patch"&&!o.includes("pre")}return!1}};return{init:async()=>{let{versions:a={}}=e.getState(),{latest:l,next:i}=G$();await e.setState({versions:{...a,latest:l,next:i}})},state:r,api:n}},l3={};Ft(l3,{init:()=>jW});const{REQUEST_WHATS_NEW_DATA:PW,RESULT_WHATS_NEW_DATA:IW,SET_WHATS_NEW_CACHE:kW,TOGGLE_WHATS_NEW_NOTIFICATIONS:zW}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:HW}=__STORYBOOK_MODULE_GLOBAL__;var V$="whats-new",UW=({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})),jW=({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(V$))},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(zW,{disableWhatsNewNotifications:n.whatsNewData.disableWhatsNewNotifications}))}};function i(){var s;return(s=r.channel)==null||s.emit(PW),new Promise(u=>{var c;return(c=r.channel)==null?void 0:c.once(IW,({data:d})=>u(d))})}function o(s){var u;(u=r.channel)==null||u.emit(kW,s)}return{init:async()=>{var c;if(HW.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:V$,link:"/settings/whats-new",content:{headline:s.title,subHeadline:"Learn what's new in Storybook"},icon:m.createElement(UW,null),onClear({dismissed:d}){d&&o({lastDismissedPost:s.url})}})},state:n,api:l}},bl=Wt(WY(),1),KW=e=>{e.fn("set",function(t,r){return e.set(this._area,this._in(t),Hj(r,{maxDepth:50}))}),e.fn("get",function(t,r){let n=e.get(this._area,this._in(t));return n!==null?jj(n):r||n})};KW(bl.default._);var i3="@storybook/manager/store";function bd(e){return e.get(i3)||{}}function o3(e,t){return e.set(i3,t)}function GW(e,t){let r=bd(e);return o3(e,{...r,...t})}var VW=class{constructor({allowPersistence:e,setState:t,getState:r}){this.persistenceHandlers=new Map,this.upstreamPersistence=e??!0,this.upstreamSetState=t,this.upstreamGetState=r}registerPersistenceHandler(e,t){this.persistenceHandlers.set(e,t)}getInitialState(e){for(let n of[bl.default.local,bl.default.session]){let a=bd(n);if("includedTagFilters"in a||"excludedTagFilters"in a){let{includedTagFilters:l,excludedTagFilters:i,...o}=a;o3(n,o)}}let t=bd(bl.default.local),r=bd(bl.default.session);return{...e,...t,...r}}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)if(l==="url"){let u=this.persistenceHandlers.get("url");u&&await u(o,a==null?void 0:a.serialize)}else{let u=l==="session"?bl.default.session:bl.default.local;await GW(u,o)}return n&&n(s),s}},{ActiveTabs:ahe}=F1,s3=XY({api:void 0,state:j0({})}),YW=(...e)=>ZY({},...e),qW=class extends g.Component{constructor(e){super(e),this.api={},this.initModules=()=>{this.modules.forEach(b=>{"init"in b&&b.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 VW({getState:()=>this.state,setState:(b,S)=>(this.setState(b,()=>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(j0({...c,...d}));let f={navigate:s,store:u,provider:e.provider};this.modules=[V5,F5,M5,F1,K5,Y5,q5,Z5,P5,B5,n3,a3,l3,G5].map(b=>b.init({...c,...d,...f,state:this.state,fullAPI:this.api}));let p=j0(this.state,...this.modules.map(b=>b.state)),y=Object.assign(this.api,{navigate:s},...this.modules.map(b=>b.api));this.state=p,this.api=y}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||!yn(n,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return m.createElement(WW,{effect:this.initModules},m.createElement(s3.Provider,{value:t},m.createElement(ZW,null,e)))}};qW.displayName="Manager";var WW=({children:e,effect:t})=>(m.useEffect(t,[]),e),XW=e=>e;function ZW({filter:e=XW,children:t}){let r=g.useContext(s3),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:lhe}=__STORYBOOK_MODULE_CHANNELS__;var QW={id:"storybook/test-provider",leader:!0,initialState:{}};function JW({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}}JW({universalTestProviderStore:u1.create({...QW,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:e3});var eX={items:{accessibilityTests:{status:"open"},aiSetup:{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"},renderComponent:{status:"open"},runTests:{status:"open"},publishStorybook:{status:"open"},shareStorybook:{status:"open"},viewports:{status:"open"},visualTests:{status:"open"},whatsNewStorybook10:{status:"open"},writeInteractions:{status:"open"}},widget:{}},tX={id:"storybook/checklist",initialState:eX};u1.create({...tX,leader:globalThis.CONFIG_TYPE==="PRODUCTION"});var u3={exports:{}},c3={};/**
  593. * @license React
  594. * use-sync-external-store-shim.production.js
  595. *
  596. * Copyright (c) Meta Platforms, Inc. and affiliates.
  597. *
  598. * This source code is licensed under the MIT license found in the
  599. * LICENSE file in the root directory of this source tree.
  600. */var uo=g;function rX(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nX=typeof Object.is=="function"?Object.is:rX,aX=uo.useState,lX=uo.useEffect,iX=uo.useLayoutEffect,oX=uo.useDebugValue;function sX(e,t){var r=t(),n=aX({inst:{value:r,getSnapshot:t}}),a=n[0].inst,l=n[1];return iX(function(){a.value=r,a.getSnapshot=t,Cg(a)&&l({inst:a})},[e,r,t]),lX(function(){return Cg(a)&&l({inst:a}),e(function(){Cg(a)&&l({inst:a})})},[e]),oX(r),r}function Cg(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!nX(e,r)}catch{return!0}}function uX(e,t){return t()}var cX=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?uX:sX;c3.useSyncExternalStore=uo.useSyncExternalStore!==void 0?uo.useSyncExternalStore:cX;u3.exports=c3;var dX=u3.exports,Ye=({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e},Fo=({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"}}),ua=({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)"}),Ze=({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"}),ei={margin:"16px 0"},B1=R.div(Ze),fX=({href:e="",...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return m.createElement("a",{href:r,target:n,...t})},d3=R(fX)(({theme:e})=>({...Ze({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"},"& code":{color:"inherit",textDecoration:"underline",textDecorationThickness:"0.03125rem",paddingLeft:0,paddingRight:0,"&::before":{content:'"\\00a0"',fontSize:"0.5em"},"&::after":{content:'"\\00a0"',fontSize:"0.5em"}}})),f3=R.blockquote(({theme:e})=>({...Ze({theme:e}),...ei,borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),Nl=[],co=null,pX=g.lazy(async()=>{let{SyntaxHighlighter:e}=await ta(async()=>{const{SyntaxHighlighter:t}=await import("./syntaxhighlighter-RTCFPKCB-CC1fO_XQ.js");return{SyntaxHighlighter:t}},__vite__mapDeps([0,1,2,3]),import.meta.url);return Nl.length>0&&(Nl.forEach(t=>{e.registerLanguage(...t)}),Nl=[]),co===null&&(co=e),{default:t=>m.createElement(e,{...t})}}),hX=g.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([ta(()=>import("./syntaxhighlighter-RTCFPKCB-CC1fO_XQ.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),ta(()=>import("./formatter-L2YTDE3Q-D4acMC8Q.js"),__vite__mapDeps([4,1,2,3]),import.meta.url)]);return Nl.length>0&&(Nl.forEach(r=>{e.registerLanguage(...r)}),Nl=[]),co===null&&(co=e),{default:r=>m.createElement(e,{...r,formatter:t})}}),Iu=e=>m.createElement(g.Suspense,{fallback:m.createElement("div",null)},e.format!==!1?m.createElement(hX,{...e}):m.createElement(pX,{...e}));Iu.registerLanguage=(...e)=>{if(co!==null){co.registerLanguage(...e);return}Nl.push(e)};var gX=e=>typeof e=="string",mX=/[\n\r]/g,yX=R.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit",...ua({theme:e})})),bX=R(Iu)(({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"}})),P1=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),a=g.Children.toArray(t);return a.filter(gX).some(l=>l.match(mX))?m.createElement(bX,{bordered:!0,copyable:!0,language:(n==null?void 0:n[1])??"text",format:!1,...r},t):m.createElement(yX,{...r,className:e},a)},p3=R.dl(({theme:e})=>({...Ze({theme:e}),...ei,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}})),h3=R.div(Ze),g3=R.h1(({theme:e})=>({...Ze({theme:e}),...Fo({theme:e}),fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),I1=R.h2(({theme:e})=>({...Ze({theme:e}),...Fo({theme:e}),fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),k1=R.h3(({theme:e})=>({...Ze({theme:e}),...Fo({theme:e}),fontSize:`${e.typography.size.m1}px`})),m3=R.h4(({theme:e})=>({...Ze({theme:e}),...Fo({theme:e}),fontSize:`${e.typography.size.s3}px`})),y3=R.h5(({theme:e})=>({...Ze({theme:e}),...Fo({theme:e}),fontSize:`${e.typography.size.s2}px`})),b3=R.h6(({theme:e})=>({...Ze({theme:e}),...Fo({theme:e}),fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),v3=R.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),E3=R.img({maxWidth:"100%"}),S3=R.li(({theme:e})=>({...Ze({theme:e}),fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":ua({theme:e})})),vX={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},x3=R.ol(({theme:e})=>({...Ze({theme:e}),...ei,...vX,listStyle:"decimal"})),$3=R.p(({theme:e})=>({...Ze({theme:e}),...ei,fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":ua({theme:e})})),_3=R.pre(({theme:e})=>({...Ze({theme:e}),...ei,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"}})),C3=R.span(({theme:e})=>({...Ze({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"}}})),T3=R.title(ua),w3=R.table(({theme:e})=>({...Ze({theme:e}),...ei,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}})),EX={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},A3=R.ul(({theme:e})=>({...Ze({theme:e}),...ei,...EX,listStyle:"disc"})),O3={h1:e=>m.createElement(g3,{...Ye(e,"h1")}),h2:e=>m.createElement(I1,{...Ye(e,"h2")}),h3:e=>m.createElement(k1,{...Ye(e,"h3")}),h4:e=>m.createElement(m3,{...Ye(e,"h4")}),h5:e=>m.createElement(y3,{...Ye(e,"h5")}),h6:e=>m.createElement(b3,{...Ye(e,"h6")}),pre:e=>m.createElement(_3,{...Ye(e,"pre")}),a:e=>m.createElement(d3,{...Ye(e,"a")}),hr:e=>m.createElement(v3,{...Ye(e,"hr")}),dl:e=>m.createElement(p3,{...Ye(e,"dl")}),blockquote:e=>m.createElement(f3,{...Ye(e,"blockquote")}),table:e=>m.createElement(w3,{...Ye(e,"table")}),img:e=>m.createElement(E3,{...Ye(e,"img")}),div:e=>m.createElement(h3,{...Ye(e,"div")}),span:e=>m.createElement(C3,{...Ye(e,"span")}),li:e=>m.createElement(S3,{...Ye(e,"li")}),ul:e=>m.createElement(A3,{...Ye(e,"ul")}),ol:e=>m.createElement(x3,{...Ye(e,"ol")}),p:e=>m.createElement($3,{...Ye(e,"p")}),code:e=>m.createElement(P1,{...Ye(e,"code")}),tt:e=>m.createElement(T3,{...Ye(e,"tt")}),resetwrapper:e=>m.createElement(B1,{...Ye(e,"resetwrapper")})};R.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 ${oa(.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"?It(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${oa(.9,e.color.secondary)}`};default:return{}}});const{deprecate:SX}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var xX=0,$X=e=>e.button===xX&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,_X=(e,t)=>{$X(e)&&(e.preventDefault(),t(e))},CX=R.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}}:{}),TX=R.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:It(.07,e.color.secondary),"svg path:not([fill])":{fill:It(.07,e.color.secondary)}},"&:active":{color:It(.1,e.color.secondary),"svg path:not([fill])":{fill:It(.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"}}:{}),fo=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&&SX("Link: `isButton` is deprecated and will be removed in Storybook 11. Links without a `href` are automatically rendered as buttons."),m.createElement(TX,{as:o?"a":"button",href:o,...s,ref:u,isButton:!o||i===!0,onClick:r&&e?c=>_X(c,r):r,className:l},m.createElement(CX,{withArrow:n,containsIcon:a},t,n&&m.createElement(VO,null)))));fo.displayName="Link";R.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","& code":{color:"inherit",textDecoration:"underline",textDecorationThickness:"0.03125rem",paddingLeft:0,paddingRight:0,"&::before":{content:'"\\00a0"',fontSize:"0.5em"},"&::after":{content:'"\\00a0"',fontSize:"0.5em"}}},"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{global:wX}=__STORYBOOK_MODULE_GLOBAL__;var{document:ts,window:W0}=wX;async function AX(e){var t;try{await((t=W0.top)==null?void 0:t.navigator.clipboard.writeText(e))}catch{await W0.navigator.clipboard.writeText(e)}}async function OX(e){let t=ts.createElement("TEXTAREA"),r=ts.activeElement;t.value=e,ts.body.appendChild(t),t.select(),ts.execCommand("copy"),ts.body.removeChild(t),r.focus()}function DX(){var e;return(e=W0.navigator)!=null&&e.clipboard?AX:OX}const{deprecate:X0}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function Y$(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function RX(...e){return t=>{let r=!1,n=e.map(a=>{let l=Y$(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():Y$(e[a],null)}}}}var NX=Symbol.for("react.lazy"),yf=BM[" use ".trim().toString()];function LX(e){return typeof e=="object"&&e!==null&&"then"in e}function D3(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===NX&&"_payload"in e&&LX(e._payload)}function MX(e){let t=BX(e),r=g.forwardRef((n,a)=>{let{children:l,...i}=n;D3(l)&&typeof yf=="function"&&(l=yf(l._payload));let o=g.Children.toArray(l),s=o.find(IX);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 ye.jsx(t,{...i,ref:a,children:g.isValidElement(u)?g.cloneElement(u,void 0,c):null})}return ye.jsx(t,{...i,ref:a,children:l})});return r.displayName=`${e}.Slot`,r}var FX=MX("Slot");function BX(e){let t=g.forwardRef((r,n)=>{let{children:a,...l}=r;if(D3(a)&&typeof yf=="function"&&(a=yf(a._payload)),g.isValidElement(a)){let i=zX(a),o=kX(l,a.props);return a.type!==g.Fragment&&(o.ref=n?RX(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 PX=Symbol("radix.slottable");function IX(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===PX}function kX(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 zX(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 HX=R.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)"})),R3=({note:e,...t})=>m.createElement(HX,{...t},e);const{deprecate:UX}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var $e=typeof document<"u"?m.useLayoutEffect:()=>{};function jX(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)});$e(()=>{n.current=t,a.current&&l.current()});let i=g.useCallback(o=>{a.current=o(n.current),l.current()},[l]);return[t,i]}var N3={prefix:String(Math.round(Math.random()*1e10)),current:0},L3=m.createContext(N3),KX=m.createContext(!1),Tg=new WeakMap;function GX(e=!1){let t=g.useContext(L3),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=Tg.get(l);i==null?Tg.set(l,{id:t.current,state:l.memoizedState}):l.memoizedState!==i.state&&(t.current=i.id,Tg.delete(l))}r.current=++t.current}return r.current}function VX(e){let t=g.useContext(L3),r=GX(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function YX(e){let t=m.useId(),[r]=g.useState(ti()),n=r?"react-aria":`react-aria${N3.prefix}`;return e||`${n}-${t}`}var qX=typeof m.useId=="function"?YX:VX;function WX(){return!1}function XX(){return!0}function ZX(e){return()=>{}}function ti(){return typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore(ZX,WX,XX):g.useContext(KX)}var QX=!!(typeof window<"u"&&window.document&&window.document.createElement),Ui=new Map,hs;typeof FinalizationRegistry<"u"&&(hs=new FinalizationRegistry(e=>{Ui.delete(e)}));function Mt(e){let[t,r]=g.useState(e),n=g.useRef(null),a=qX(t),l=g.useRef(null);if(hs&&hs.register(l,a),QX){let i=Ui.get(a);i&&!i.includes(n)?i.push(n):Ui.set(a,[n])}return $e(()=>{let i=a;return()=>{hs&&hs.unregister(l),Ui.delete(i)}},[a]),g.useEffect(()=>{let i=n.current;return i&&r(i),()=>{i&&(n.current=null)}}),a}function JX(e,t){if(e===t)return e;let r=Ui.get(e);if(r)return r.forEach(a=>a.current=t),t;let n=Ui.get(t);return n?(n.forEach(a=>a.current=e),e):t}function vd(e=[]){let t=Mt(),[r,n]=jX(t),a=g.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return $e(a,[t,a,...e]),r}function ku(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var _e=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Hr=e=>e&&"window"in e&&e.window===e?e:_e(e).defaultView||window;function Rr(e,t){return t&&e?e.contains(t):!1}var $t=(e=document)=>e.activeElement;function nt(e){return e.target}function eZ(e,t,r,n){return e.createTreeWalker(t,r,n)}function M3(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=M3(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function tZ(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=M3(e))&&(n&&(n+=" "),n+=t);return n}var rZ=tZ;function ce(...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]=ku(l,i):(a==="className"||a==="UNSAFE_className")&&typeof l=="string"&&typeof i=="string"?t[a]=rZ(l,i):a==="id"&&l&&i?t.id=JX(l,i):t[a]=i!==void 0?i:l}}return t}function z1(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1,n=e.map(a=>{let l=q$(a,t);return r||(r=typeof l=="function"),l});if(r)return()=>{n.forEach((a,l)=>{typeof a=="function"?a():q$(e[l],null)})}}}function q$(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}var nZ=new Set(["id"]),aZ=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),lZ=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),iZ=new Set(["dir","lang","hidden","inert","translate"]),W$=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"]),oZ=/^(data-.*)$/;function Qe(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)&&(nZ.has(s)||r&&aZ.has(s)||n&&lZ.has(s)||a&&iZ.has(s)||l&&(W$.has(s)||s.endsWith("Capture")&&W$.has(s.slice(0,-7)))||i!=null&&i.has(s)||oZ.test(s))&&(o[s]=e[s]);return o}function rr(e){if(sZ())e.focus({preventScroll:!0});else{let t=uZ(e);e.focus(),cZ(t)}}var Nc=null;function sZ(){if(Nc==null){Nc=!1;try{document.createElement("div").focus({get preventScroll(){return Nc=!0,!0}})}catch{}}return Nc}function uZ(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 cZ(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function wp(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 H1(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 ca(e){let t=null;return()=>(t==null&&(t=e()),t)}var Hl=ca(function(){return H1(/^Mac/i)}),dZ=ca(function(){return H1(/^iPhone/i)}),F3=ca(function(){return H1(/^iPad/i)||Hl()&&navigator.maxTouchPoints>1}),Ap=ca(function(){return dZ()||F3()}),fZ=ca(function(){return Hl()||Ap()}),B3=ca(function(){return wp(/AppleWebKit/i)&&!P3()}),P3=ca(function(){return wp(/Chrome/i)}),U1=ca(function(){return wp(/Android/i)}),pZ=ca(function(){return wp(/Firefox/i)}),hZ=g.createContext({isNative:!0,open:yZ,useHref:e=>e});function Op(){return g.useContext(hZ)}function gZ(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 Ul(e,t,r=!0){var n,a;let{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}=t;pZ()&&!((a=window.event)===null||a===void 0||(n=a.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(Hl()?l=!0:i=!0);let u=B3()&&Hl()&&!F3()?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});Ul.isOpening=r,rr(e),e.dispatchEvent(u),Ul.isOpening=!1}Ul.isOpening=!1;function mZ(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 yZ(e,t){mZ(e,r=>Ul(r,t))}function I3(e){let t=Op();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 bZ(e,t,r,n){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&gZ(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,n))}var wa=new Map,Z0=new Set;function X$(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let a=wa.get(n.target);a||(a=new Set,wa.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=wa.get(n.target);if(a&&(a.delete(n.propertyName),a.size===0&&(n.target.removeEventListener("transitioncancel",r),wa.delete(n.target)),wa.size===0)){for(let l of Z0)l();Z0.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?X$():document.addEventListener("DOMContentLoaded",X$));function vZ(){for(let[e]of wa)"isConnected"in e&&!e.isConnected&&wa.delete(e)}function k3(e){requestAnimationFrame(()=>{vZ(),wa.size===0?e():Z0.add(e)})}function Dp(){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 Rp(e,t){let{id:r,"aria-label":n,"aria-labelledby":a}=e;return r=Mt(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 un(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 wg,EZ=(wg=m.useInsertionEffect)!==null&&wg!==void 0?wg:$e;function wt(e){let t=g.useRef(null);return EZ(()=>{t.current=e},[e]),g.useCallback((...r)=>{let n=t.current;return n==null?void 0:n(...r)},[])}function Z$(e,t){let r=g.useRef(!0),n=g.useRef(null);$e(()=>(r.current=!0,()=>{r.current=!1}),[]),$e(()=>{r.current?r.current=!1:(!n.current||t.some((a,l)=>!Object.is(a,n[l])))&&e(),n.current=t},t)}function SZ(){return typeof window.ResizeObserver<"u"}function bf(e){let{ref:t,box:r,onResize:n}=e,a=wt(n);g.useEffect(()=>{let l=t==null?void 0:t.current;if(l)if(SZ()){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 j1(e,t){$e(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function po(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 z3(e,t){let r=e;for(po(r,t)&&(r=r.parentElement);r&&!po(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function xZ(e,t){let r=[];for(;e&&e!==document.documentElement;)po(e,t)&&r.push(e),e=e.parentElement;return r}function yi(e){return Hl()?e.metaKey:e.ctrlKey}var $Z=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ag(e){return e instanceof HTMLInputElement&&!$Z.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var _Z=0,Og=new Map;function CZ(e){let[t,r]=g.useState();return $e(()=>{if(!e)return;let n=Og.get(e);if(n)r(n.element.id);else{let a=`react-aria-description-${_Z++}`;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},Og.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),Og.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function gs(e,t,r,n){let a=wt(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 H3(e,t){let r=Q$(e,t,"left"),n=Q$(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),y=i+parseInt(u,10),b=o+parseInt(s,10),S=y+e.clientWidth,h=b+e.clientHeight,v=parseInt(c,10)||0,E=parseInt(f,10)||0,x=parseInt(d,10)||0,_=parseInt(p,10)||0;r<=i+_?i=r-parseInt(u,10)-_:r+a>S-x&&(i+=r+a-S+x),n<=b+v?o=n-parseInt(s,10)-v:n+l>h-E&&(o+=n+l-h+E),e.scrollLeft=i,e.scrollTop=o}function Q$(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=xZ(e);o||s.push(i);for(let u of s)H3(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 U3(e){return e.pointerType===""&&e.isTrusted?!0:U1()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function TZ(e){return!U1()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function e_(e){let t=g.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var wZ="react-aria-clear-focus",AZ="react-aria-focus";function j3(e,t=!0){let[r,n]=g.useState(!0),a=r&&t;return $e(()=>{if(a&&e.current&&"getAnimations"in e.current)for(let l of e.current.getAnimations())l instanceof CSSTransition&&l.cancel()},[e,a]),G3(e,a,g.useCallback(()=>n(!1),[])),a}function K3(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 G3(e,a,g.useCallback(()=>{n(l=>l==="exiting"?"closed":l)},[])),a}function G3(e,t,r){$e(()=>{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||xo.flushSync(()=>{r()})}).catch(()=>{}),()=>{a=!0}}},[e,t,r])}var OZ=typeof Element<"u"&&"checkVisibility"in Element.prototype;function DZ(e){let t=Hr(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 RZ(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 K1(e,t){return OZ?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&DZ(e)&&RZ(e,t)&&(!e.parentElement||K1(e.parentElement,e))}var G1=["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"],NZ=G1.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";G1.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var LZ=G1.join(':not([hidden]):not([tabindex="-1"]),');function V3(e){return e.matches(NZ)&&K1(e)&&!Y3(e)}function MZ(e){return e.matches(LZ)&&K1(e)&&!Y3(e)}function Y3(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var Dg,FZ=typeof document<"u"?(Dg=m.useInsertionEffect)!==null&&Dg!==void 0?Dg:m.useLayoutEffect:()=>{};function Np(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;FZ(()=>{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 uu(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function V1(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function q3(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function W3(e){let t=g.useRef({isFocused:!1,observer:null});$e(()=>{let n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=wt(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=V1(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 vf=!1;function BZ(e){for(;e&&!V3(e);)e=e.parentElement;let t=Hr(e),r=t.document.activeElement;if(!r||r===e)return;vf=!0;let n=!1,a=c=>{(c.target===r||n)&&c.stopImmediatePropagation()},l=c=>{(c.target===r||n)&&(c.stopImmediatePropagation(),!e&&!n&&(n=!0,rr(r),s()))},i=c=>{(c.target===e||n)&&c.stopImmediatePropagation()},o=c=>{(c.target===e||n)&&(c.stopImmediatePropagation(),n||(n=!0,rr(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),vf=!1,n=!1},u=requestAnimationFrame(s);return s}var Ni="default",Q0="",Ed=new WeakMap;function PZ(e){if(Ap()){if(Ni==="default"){let t=_e(e);Q0=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ni="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Ed.set(e,e.style[t]),e.style[t]="none"}}function t_(e){if(Ap()){if(Ni!=="disabled")return;Ni="restoring",setTimeout(()=>{k3(()=>{if(Ni==="restoring"){let t=_e(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Q0||""),Q0="",Ni="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ed.has(e)){let t=Ed.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Ed.delete(e)}}var cu=m.createContext({register:()=>{}});cu.displayName="PressResponderContext";function IZ(e,t){return t.get?t.get.call(e):t.value}function X3(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function kZ(e,t){var r=X3(e,t,"get");return IZ(e,r)}function zZ(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function HZ(e,t,r){zZ(e,t),t.set(e,r)}function UZ(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 r_(e,t,r){var n=X3(e,t,"set");return UZ(e,n,r),r}function jZ(e){let t=g.useContext(cu);if(t){let{register:r,...n}=t;e=ce(n,e),r()}return j1(t,e.ref),e}var Lc=new WeakMap,Mc=class{continuePropagation(){r_(this,Lc,!1)}get shouldStopPropagation(){return kZ(this,Lc)}constructor(e,t,r,n){HZ(this,Lc,{writable:!0,value:void 0}),r_(this,Lc,!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}},n_=Symbol("linkClicked"),a_="react-aria-pressable-style",l_="data-react-aria-pressable";function zu(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}=jZ(e),[y,b]=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:v}=Dp(),E=wt((T,M)=>{let P=S.current;if(o||P.didFirePressStart)return!1;let I=!0;if(P.isTriggeringEvent=!0,n){let H=new Mc("pressstart",M,T);n(H),I=H.shouldStopPropagation}return r&&r(!0),P.isTriggeringEvent=!1,P.didFirePressStart=!0,b(!0),I}),x=wt((T,M,P=!0)=>{let I=S.current;if(!I.didFirePressStart)return!1;I.didFirePressStart=!1,I.isTriggeringEvent=!0;let H=!0;if(a){let L=new Mc("pressend",M,T);a(L),H=L.shouldStopPropagation}if(r&&r(!1),b(!1),t&&P&&!o){let L=new Mc("press",M,T);t(L),H&&(H=L.shouldStopPropagation)}return I.isTriggeringEvent=!1,H}),_=wt((T,M)=>{let P=S.current;if(o)return!1;if(l){P.isTriggeringEvent=!0;let I=new Mc("pressup",M,T);return l(I),P.isTriggeringEvent=!1,I.shouldStopPropagation}return!0}),$=wt(T=>{let M=S.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&x(il(M.target,T),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,v(),d||t_(M.target);for(let P of M.disposables)P();M.disposables=[]}}),C=wt(T=>{c&&$(T)}),w=wt(T=>{o||(i==null||i(T))}),A=wt((T,M)=>{if(!o&&i){let P=new MouseEvent("click",T);q3(P,M),i(V1(P))}}),O=g.useMemo(()=>{let T=S.current,M={onKeyDown(I){if(Rg(I.nativeEvent,I.currentTarget)&&Rr(I.currentTarget,nt(I.nativeEvent))){var H;i_(nt(I.nativeEvent),I.key)&&I.preventDefault();let L=!0;if(!T.isPressed&&!I.repeat){T.target=I.currentTarget,T.isPressed=!0,T.pointerType="keyboard",L=E(I,"keyboard");let D=I.currentTarget,N=U=>{Rg(U,D)&&!U.repeat&&Rr(D,nt(U))&&T.target&&_(il(T.target,U),"keyboard")};h(_e(I.currentTarget),"keyup",ku(N,P),!0)}L&&I.stopPropagation(),I.metaKey&&Hl()&&((H=T.metaKeyEvents)===null||H===void 0||H.set(I.key,I.nativeEvent))}else I.key==="Meta"&&(T.metaKeyEvents=new Map)},onClick(I){if(!(I&&!Rr(I.currentTarget,nt(I.nativeEvent)))&&I&&I.button===0&&!T.isTriggeringEvent&&!Ul.isOpening){let H=!0;if(o&&I.preventDefault(),!T.ignoreEmulatedMouseEvents&&!T.isPressed&&(T.pointerType==="virtual"||U3(I.nativeEvent))){let L=E(I,"virtual"),D=_(I,"virtual"),N=x(I,"virtual");w(I),H=L&&D&&N}else if(T.isPressed&&T.pointerType!=="keyboard"){let L=T.pointerType||I.nativeEvent.pointerType||"virtual",D=_(il(I.currentTarget,I),L),N=x(il(I.currentTarget,I),L,!0);H=D&&N,T.isOverTarget=!1,w(I),$(I)}T.ignoreEmulatedMouseEvents=!1,H&&I.stopPropagation()}}},P=I=>{var H;if(T.isPressed&&T.target&&Rg(I,T.target)){var L;i_(nt(I),I.key)&&I.preventDefault();let N=nt(I),U=Rr(T.target,nt(I));x(il(T.target,I),"keyboard",U),U&&A(I,T.target),v(),I.key!=="Enter"&&Y1(T.target)&&Rr(T.target,N)&&!I[n_]&&(I[n_]=!0,Ul(T.target,I,!1)),T.isPressed=!1,(L=T.metaKeyEvents)===null||L===void 0||L.delete(I.key)}else if(I.key==="Meta"&&!((H=T.metaKeyEvents)===null||H===void 0)&&H.size){var D;let N=T.metaKeyEvents;T.metaKeyEvents=void 0;for(let U of N.values())(D=T.target)===null||D===void 0||D.dispatchEvent(new KeyboardEvent("keyup",U))}};if(typeof PointerEvent<"u"){M.onPointerDown=L=>{if(L.button!==0||!Rr(L.currentTarget,nt(L.nativeEvent)))return;if(TZ(L.nativeEvent)){T.pointerType="virtual";return}T.pointerType=L.pointerType;let D=!0;if(!T.isPressed){T.isPressed=!0,T.isOverTarget=!0,T.activePointerId=L.pointerId,T.target=L.currentTarget,d||PZ(T.target),D=E(L,T.pointerType);let N=nt(L.nativeEvent);"releasePointerCapture"in N&&N.releasePointerCapture(L.pointerId),h(_e(L.currentTarget),"pointerup",I,!1),h(_e(L.currentTarget),"pointercancel",H,!1)}D&&L.stopPropagation()},M.onMouseDown=L=>{if(Rr(L.currentTarget,nt(L.nativeEvent))&&L.button===0){if(u){let D=BZ(L.target);D&&T.disposables.push(D)}L.stopPropagation()}},M.onPointerUp=L=>{!Rr(L.currentTarget,nt(L.nativeEvent))||T.pointerType==="virtual"||L.button===0&&!T.isPressed&&_(L,T.pointerType||L.pointerType)},M.onPointerEnter=L=>{L.pointerId===T.activePointerId&&T.target&&!T.isOverTarget&&T.pointerType!=null&&(T.isOverTarget=!0,E(il(T.target,L),T.pointerType))},M.onPointerLeave=L=>{L.pointerId===T.activePointerId&&T.target&&T.isOverTarget&&T.pointerType!=null&&(T.isOverTarget=!1,x(il(T.target,L),T.pointerType,!1),C(L))};let I=L=>{if(L.pointerId===T.activePointerId&&T.isPressed&&L.button===0&&T.target){if(Rr(T.target,nt(L))&&T.pointerType!=null){let D=!1,N=setTimeout(()=>{T.isPressed&&T.target instanceof HTMLElement&&(D?$(L):(rr(T.target),T.target.click()))},80);h(L.currentTarget,"click",()=>D=!0,!0),T.disposables.push(()=>clearTimeout(N))}else $(L);T.isOverTarget=!1}},H=L=>{$(L)};M.onDragStart=L=>{Rr(L.currentTarget,nt(L.nativeEvent))&&$(L)}}return M},[h,o,u,v,d,$,C,x,E,_,w,A]);return g.useEffect(()=>{if(!f)return;let T=_e(f.current);if(!T||!T.head||T.getElementById(a_))return;let M=T.createElement("style");M.id=a_,M.textContent=`
  601. @layer {
  602. [${l_}] {
  603. touch-action: pan-x pan-y pinch-zoom;
  604. }
  605. }
  606. `.trim(),T.head.prepend(M)},[f]),g.useEffect(()=>{let T=S.current;return()=>{var M;d||t_((M=T.target)!==null&&M!==void 0?M:void 0);for(let P of T.disposables)P();T.disposables=[]}},[d]),{isPressed:s||y,pressProps:ce(p,O,{[l_]:!0})}}function Y1(e){return e.tagName==="A"&&e.hasAttribute("href")}function Rg(e,t){let{key:r,code:n}=e,a=t,l=a.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(a instanceof Hr(a).HTMLInputElement&&!Z3(a,r)||a instanceof Hr(a).HTMLTextAreaElement||a.isContentEditable)&&!((l==="link"||!l&&Y1(a))&&r!=="Enter")}function il(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function KZ(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Y1(e)}function i_(e,t){return e instanceof HTMLInputElement?!Z3(e,t):KZ(e)}var GZ=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Z3(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":GZ.has(e.type)}var qa=null,du=new Set,Ms=new Map,jl=!1,J0=!1,VZ={Tab:!0,Escape:!0};function q1(e,t){for(let r of du)r(e,t)}function YZ(e){return!(e.metaKey||!Hl()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ef(e){jl=!0,YZ(e)&&(qa="keyboard",q1("keyboard",e))}function ji(e){qa="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(jl=!0,q1("pointer",e))}function Q3(e){U3(e)&&(jl=!0,qa="virtual")}function J3(e){e.target===window||e.target===document||vf||!e.isTrusted||(!jl&&!J0&&(qa="virtual",q1("virtual",e)),jl=!1,J0=!1)}function eD(){vf||(jl=!1,J0=!0)}function Sf(e){if(typeof window>"u"||typeof document>"u"||Ms.get(Hr(e)))return;let t=Hr(e),r=_e(e),n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){jl=!0,n.apply(this,arguments)},r.addEventListener("keydown",Ef,!0),r.addEventListener("keyup",Ef,!0),r.addEventListener("click",Q3,!0),t.addEventListener("focus",J3,!0),t.addEventListener("blur",eD,!1),typeof PointerEvent<"u"&&(r.addEventListener("pointerdown",ji,!0),r.addEventListener("pointermove",ji,!0),r.addEventListener("pointerup",ji,!0)),t.addEventListener("beforeunload",()=>{tD(e)},{once:!0}),Ms.set(t,{focus:n})}var tD=(e,t)=>{let r=Hr(e),n=_e(e);t&&n.removeEventListener("DOMContentLoaded",t),Ms.has(r)&&(r.HTMLElement.prototype.focus=Ms.get(r).focus,n.removeEventListener("keydown",Ef,!0),n.removeEventListener("keyup",Ef,!0),n.removeEventListener("click",Q3,!0),r.removeEventListener("focus",J3,!0),r.removeEventListener("blur",eD,!1),typeof PointerEvent<"u"&&(n.removeEventListener("pointerdown",ji,!0),n.removeEventListener("pointermove",ji,!0),n.removeEventListener("pointerup",ji,!0)),Ms.delete(r))};function qZ(e){let t=_e(e),r;return t.readyState!=="loading"?Sf(e):(r=()=>{Sf(e)},t.addEventListener("DOMContentLoaded",r)),()=>tD(e,r)}typeof document<"u"&&qZ();function fu(){return qa!=="pointer"}function pu(){return qa}function WZ(){Sf();let[e,t]=g.useState(qa);return g.useEffect(()=>{let r=()=>{t(qa)};return du.add(r),()=>{du.delete(r)}},[]),ti()?null:e}var XZ=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ZZ(e,t,r){let n=_e(r==null?void 0:r.target),a=typeof window<"u"?Hr(r==null?void 0:r.target).HTMLInputElement:HTMLInputElement,l=typeof window<"u"?Hr(r==null?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?Hr(r==null?void 0:r.target).HTMLElement:HTMLElement,o=typeof window<"u"?Hr(r==null?void 0:r.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof a&&!XZ.has(n.activeElement.type)||n.activeElement instanceof l||n.activeElement instanceof i&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof o&&!VZ[r.key])}function QZ(e,t,r){Sf(),g.useEffect(()=>{let n=(a,l)=>{ZZ(!!(r!=null&&r.isTextInput),a,l)&&e(fu())};return du.add(n),()=>{du.delete(n)}},t)}function Wa(e){let t=_e(e),r=$t(t);if(pu()==="virtual"){let n=r;k3(()=>{$t(t)===n&&e.isConnected&&rr(e)})}else rr(e)}function W1(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:a}=e,l=g.useCallback(s=>{if(s.target===s.currentTarget)return n&&n(s),a&&a(!1),!0},[n,a]),i=W3(l),o=g.useCallback(s=>{let u=_e(s.target),c=u?$t(u):$t();s.target===s.currentTarget&&c===nt(s.nativeEvent)&&(r&&r(s),a&&a(!0),i(s))},[a,r,i]);return{focusProps:{onFocus:!t&&(r||a||n)?o:void 0,onBlur:!t&&(n||a)?l:void 0}}}function o_(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(n),t&&r.stopPropagation()}}function rD(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:o_(e.onKeyDown),onKeyUp:o_(e.onKeyUp)}}}var xf=m.createContext(null);function JZ(e){let t=g.useContext(xf)||{};j1(t,e);let{ref:r,...n}=t;return n}var eQ=m.forwardRef(function(e,t){let{children:r,...n}=e,a=un(t),l={...n,ref:a};return m.createElement(xf.Provider,{value:l},r)});function Hu(e,t){let{focusProps:r}=W1(e),{keyboardProps:n}=rD(e),a=ce(r,n),l=JZ(t),i=e.isDisabled?{}:l,o=g.useRef(e.autoFocus);g.useEffect(()=>{o.current&&t.current&&Wa(t.current),o.current=!1},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:ce({...a,tabIndex:s},i)}}var tQ=g.forwardRef(({children:e,...t},r)=>{r=un(r);let{focusableProps:n}=Hu(t,r),a=m.Children.only(e);g.useEffect(()=>{},[r,t.isDisabled]);let l=parseInt(m.version,10)<19?a.ref:a.props.ref;return m.cloneElement(a,{...ce(n,a.props),ref:z1(l,r)})}),rQ=m.forwardRef(({children:e,...t},r)=>{r=un(r);let{pressProps:n}=zu({...t,ref:r}),{focusableProps:a}=Hu(t,r),l=m.Children.only(e);g.useEffect(()=>{},[r,t.isDisabled]);let i=parseInt(m.version,10)<19?l.ref:l.props.ref;return m.cloneElement(l,{...ce(n,a,l.props),ref:z1(i,r)})}),nQ=m.forwardRef(({children:e,...t},r)=>{let n=g.useRef(!1),a=g.useContext(cu);r=un(r||(a==null?void 0:a.ref));let l=ce(a||{},{...t,ref:r,register(){n.current=!0,a&&a.register()}});return j1(a,r),g.useEffect(()=>{n.current||(n.current=!0)},[]),m.createElement(cu.Provider,{value:l},e)});function aQ({children:e}){let t=g.useMemo(()=>({register:()=>{}}),[]);return m.createElement(cu.Provider,{value:t},e)}function X1(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:a}=e,l=g.useRef({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:o}=Dp(),s=g.useCallback(d=>{d.currentTarget.contains(d.target)&&l.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(l.current.isFocusWithin=!1,o(),r&&r(d),a&&a(!1))},[r,a,l,o]),u=W3(s),c=g.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;let f=_e(d.target),p=$t(f);if(!l.current.isFocusWithin&&p===nt(d.nativeEvent)){n&&n(d),a&&a(!0),l.current.isFocusWithin=!0,u(d);let y=d.currentTarget;i(f,"focus",b=>{if(l.current.isFocusWithin&&!Rr(y,b.target)){let S=new f.defaultView.FocusEvent("blur",{relatedTarget:b.target});q3(S,y);let h=V1(S);s(h)}},{capture:!0})}},[n,a,u,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:s}}}var ey=!1,Fc=0;function lQ(){ey=!0,setTimeout(()=>{ey=!1},50)}function s_(e){e.pointerType==="touch"&&lQ()}function iQ(){if(!(typeof document>"u"))return Fc===0&&(typeof PointerEvent<"u"&&document.addEventListener("pointerup",s_)),Fc++,()=>{Fc--,!(Fc>0)&&(typeof PointerEvent<"u"&&document.removeEventListener("pointerup",s_))}}function Bo(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:a}=e,[l,i]=g.useState(!1),o=g.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;g.useEffect(iQ,[]);let{addGlobalListener:s,removeAllGlobalListeners:u}=Dp(),{hoverProps:c,triggerHoverEnd:d}=g.useMemo(()=>{let f=(b,S)=>{if(o.pointerType=S,a||S==="touch"||o.isHovered||!b.currentTarget.contains(b.target))return;o.isHovered=!0;let h=b.currentTarget;o.target=h,s(_e(b.target),"pointerover",v=>{o.isHovered&&o.target&&!Rr(o.target,v.target)&&p(v,v.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:h,pointerType:S}),r&&r(!0),i(!0)},p=(b,S)=>{let h=o.target;o.pointerType="",o.target=null,!(S==="touch"||!o.isHovered||!h)&&(o.isHovered=!1,u(),n&&n({type:"hoverend",target:h,pointerType:S}),r&&r(!1),i(!1))},y={};return typeof PointerEvent<"u"&&(y.onPointerEnter=b=>{ey&&b.pointerType==="mouse"||f(b,b.pointerType)},y.onPointerLeave=b=>{!a&&b.currentTarget.contains(b.target)&&p(b,b.pointerType)}),{hoverProps:y,triggerHoverEnd:p}},[t,r,n,a,o,s,u]);return g.useEffect(()=>{a&&d({currentTarget:o.target},o.pointerType)},[a]),{hoverProps:c,isHovered:l}}function nD(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:a}=e,l=g.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=wt(s=>{r&&u_(s,t)&&(a&&a(s),l.current.isPointerDown=!0)}),o=wt(s=>{r&&r(s)});g.useEffect(()=>{let s=l.current;if(n)return;let u=t.current,c=_e(u);if(typeof PointerEvent<"u"){let d=f=>{s.isPointerDown&&u_(f,t)&&o(f),s.isPointerDown=!1};return c.addEventListener("pointerdown",i,!0),c.addEventListener("click",d,!0),()=>{c.removeEventListener("pointerdown",i,!0),c.removeEventListener("click",d,!0)}}},[t,n,i,o])}function u_(e,t){if(e.button>0)return!1;if(e.target){let r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}var oQ=500;function sQ(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:a,threshold:l=oQ,accessibilityDescription:i}=e,o=g.useRef(void 0),{addGlobalListener:s,removeGlobalListener:u}=Dp(),{pressProps:c}=zu({isDisabled:t,onPressStart(f){if(f.continuePropagation(),(f.pointerType==="mouse"||f.pointerType==="touch")&&(r&&r({...f,type:"longpressstart"}),o.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),_e(f.target).activeElement!==f.target&&rr(f.target),a&&a({...f,type:"longpress"}),o.current=void 0},l),f.pointerType==="touch")){let p=y=>{y.preventDefault()};s(f.target,"contextmenu",p,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(f.target,"contextmenu",p)},30)},{once:!0})}},onPressEnd(f){o.current&&clearTimeout(o.current),n&&(f.pointerType==="mouse"||f.pointerType==="touch")&&n({...f,type:"longpressend"})}}),d=CZ(a&&!t?i:void 0);return{longPressProps:ce(c,d)}}var $f=Symbol("default");function da({values:e,children:t}){for(let[r,n]of e)t=m.createElement(r.Provider,{value:n},t);return t}function Cr(e){let{className:t,style:r,children:n,defaultClassName:a,defaultChildren:l,defaultStyle:i,values:o}=e;return g.useMemo(()=>{let s,u,c;return typeof t=="function"?s=t({...o,defaultClassName:a}):s=t,typeof r=="function"?u=r({...o,defaultStyle:i||{}}):u=r,typeof n=="function"?c=n({...o,defaultChildren:l}):n==null?c=l:c=n,{className:s??a,style:u||i?{...i,...u}:void 0,children:c??l,"data-rac":""}},[t,r,n,a,l,i,o])}function Z1(e,t){let r=g.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=t||$f;if(!r.slots[n]){let a=new Intl.ListFormat().format(Object.keys(r.slots).map(i=>`"${i}"`)),l=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${l} Valid slot names are ${a}.`)}return r.slots[n]}return r}function Ut(e,t,r){let n=Z1(r,e.slot)||{},{ref:a,...l}=n,i=un(g.useMemo(()=>z1(t,a),[t,a])),o=ce(l,e);return"style"in l&&l.style&&"style"in e&&e.style&&(typeof l.style=="function"||typeof e.style=="function"?o.style=s=>{let u=typeof l.style=="function"?l.style(s):l.style,c={...s.defaultStyle,...u},d=typeof e.style=="function"?e.style({...s,defaultStyle:c}):e.style;return{...c,...d}}:o.style={...l.style,...e.style}),[o,i]}function aD(e=!0){let[t,r]=g.useState(e),n=g.useRef(!1),a=g.useCallback(l=>{n.current=!0,r(!!l)},[]);return $e(()=>{n.current||r(!1)},[]),[a,t]}var Q1=g.createContext({placement:"bottom"});g.forwardRef(function(e,t){[e,t]=Ut(e,t,Q1);let r=e.placement,n={position:"absolute",transform:r==="top"||r==="bottom"?"translateX(-50%)":"translateY(-50%)"};r!=null&&(n[r]="100%");let a=Cr({...e,defaultClassName:"react-aria-OverlayArrow",values:{placement:r}});a.style&&Object.keys(a.style).forEach(i=>a.style[i]===void 0&&delete a.style[i]);let l=Qe(e);return m.createElement("div",{...l,...a,style:{...n,...a.style},ref:t,"data-placement":r})});function uQ(e,t){let r=Qe(e,{labelable:!0}),{hoverProps:n}=Bo({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:ce(r,n,{role:"tooltip"})}}function cQ(e,t,r){let{isDisabled:n,trigger:a}=e,l=Mt(),i=g.useRef(!1),o=g.useRef(!1),s=()=>{(i.current||o.current)&&t.open(o.current)},u=h=>{!i.current&&!o.current&&t.close(h)};g.useEffect(()=>{let h=v=>{r&&r.current&&v.key==="Escape"&&(v.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",h,!0),()=>{document.removeEventListener("keydown",h,!0)}},[r,t]);let c=()=>{a!=="focus"&&(pu()==="pointer"?i.current=!0:i.current=!1,s())},d=()=>{a!=="focus"&&(o.current=!1,i.current=!1,u())},f=()=>{o.current=!1,i.current=!1,u(!0)},p=()=>{fu()&&(o.current=!0,s())},y=()=>{o.current=!1,i.current=!1,u(!0)},{hoverProps:b}=Bo({isDisabled:n,onHoverStart:c,onHoverEnd:d}),{focusableProps:S}=Hu({isDisabled:n,onFocus:p,onBlur:y},r);return{triggerProps:{"aria-describedby":t.isOpen?l:void 0,...ce(S,b,{onPointerDown:f,onKeyDown:f}),tabIndex:void 0},tooltipProps:{id:l}}}var _n={top:"top",bottom:"top",left:"left",right:"left"},_f={top:"bottom",bottom:"top",left:"right",right:"left"},dQ={top:"left",left:"top"},ty={top:"height",left:"width"},lD={width:"totalWidth",height:"totalHeight"},Bc={},vt=typeof document<"u"?window.visualViewport:null;function c_(e){let t=0,r=0,n=0,a=0,l=0,i=0,o={};var s;let u=((s=vt==null?void 0:vt.scale)!==null&&s!==void 0?s:1)>1;if(e.tagName==="BODY"){let y=document.documentElement;n=y.clientWidth,a=y.clientHeight;var c;t=(c=vt==null?void 0:vt.width)!==null&&c!==void 0?c:n;var d;r=(d=vt==null?void 0:vt.height)!==null&&d!==void 0?d:a,o.top=y.scrollTop||e.scrollTop,o.left=y.scrollLeft||e.scrollLeft,vt&&(l=vt.offsetTop,i=vt.offsetLeft)}else({width:t,height:r,top:l,left:i}=Ki(e,!1)),o.top=e.scrollTop,o.left=e.scrollLeft,n=t,a=r;if(B3()&&(e.tagName==="BODY"||e.tagName==="HTML")&&u){o.top=0,o.left=0;var f;l=(f=vt==null?void 0:vt.pageTop)!==null&&f!==void 0?f:0;var p;i=(p=vt==null?void 0:vt.pageLeft)!==null&&p!==void 0?p:0}return{width:t,height:r,totalWidth:n,totalHeight:a,scroll:o,top:l,left:i}}function fQ(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function d_(e,t,r,n,a,l,i){var o;let s=(o=a.scroll[e])!==null&&o!==void 0?o:0,u=n[ty[e]],c=n.scroll[_n[e]]+l,d=u+n.scroll[_n[e]]-l,f=t-s+i[e]-n[_n[e]],p=t-s+r+i[e]-n[_n[e]];return f<c?c-f:p>d?Math.max(d-p,c-f):0}function pQ(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function f_(e){if(Bc[e])return Bc[e];let[t,r]=e.split(" "),n=_n[t]||"right",a=dQ[n];_n[r]||(r="center");let l=ty[n],i=ty[a];return Bc[e]={placement:t,crossPlacement:r,axis:n,crossAxis:a,size:l,crossSize:i},Bc[e]}function Ng(e,t,r,n,a,l,i,o,s,u){let{placement:c,crossPlacement:d,axis:f,crossAxis:p,size:y,crossSize:b}=n,S={};var h;S[p]=(h=e[p])!==null&&h!==void 0?h:0;var v,E,x,_;d==="center"?S[p]+=(((v=e[b])!==null&&v!==void 0?v:0)-((E=r[b])!==null&&E!==void 0?E:0))/2:d!==p&&(S[p]+=((x=e[b])!==null&&x!==void 0?x:0)-((_=r[b])!==null&&_!==void 0?_:0)),S[p]+=l;let $=e[p]-r[b]+s+u,C=e[p]+e[b]-s-u;if(S[p]=uu(S[p],$,C),c===f){let w=o?i[y]:t[lD[y]];S[_f[f]]=Math.floor(w-e[f]+a)}else S[f]=Math.floor(e[f]+e[y]+a);return S}function hQ(e,t,r,n,a,l,i,o){let s=n?r.height:t[lD.height];var u;let c=e.top!=null?r.top+e.top:r.top+(s-((u=e.bottom)!==null&&u!==void 0?u:0)-i);var d,f,p,y,b,S;let h=o!=="top"?Math.max(0,t.height+t.top+((d=t.scroll.top)!==null&&d!==void 0?d:0)-c-(((f=a.top)!==null&&f!==void 0?f:0)+((p=a.bottom)!==null&&p!==void 0?p:0)+l)):Math.max(0,c+i-(t.top+((y=t.scroll.top)!==null&&y!==void 0?y:0))-(((b=a.top)!==null&&b!==void 0?b:0)+((S=a.bottom)!==null&&S!==void 0?S:0)+l));return Math.min(t.height-l*2,h)}function p_(e,t,r,n,a,l){let{placement:i,axis:o,size:s}=l;var u,c;if(i===o)return Math.max(0,r[o]-e[o]-((u=e.scroll[o])!==null&&u!==void 0?u:0)+t[o]-((c=n[o])!==null&&c!==void 0?c:0)-n[_f[o]]-a);var d;return Math.max(0,e[s]+e[o]+e.scroll[o]-t[o]-r[o]-r[s]-((d=n[o])!==null&&d!==void 0?d:0)-n[_f[o]]-a)}function gQ(e,t,r,n,a,l,i,o,s,u,c,d,f,p,y,b){let S=f_(e),{size:h,crossAxis:v,crossSize:E,placement:x,crossPlacement:_}=S,$=Ng(t,o,r,S,c,d,u,f,y,b),C=c,w=p_(o,u,t,a,l+c,S);if(i&&n[h]>w){let te=f_(`${_f[x]} ${_}`),F=Ng(t,o,r,te,c,d,u,f,y,b);p_(o,u,t,a,l+c,te)>w&&(S=te,$=F,C=c)}let A="bottom";S.axis==="top"?S.placement==="top"?A="top":S.placement==="bottom"&&(A="bottom"):S.crossAxis==="top"&&(S.crossPlacement==="top"?A="bottom":S.crossPlacement==="bottom"&&(A="top"));let O=d_(v,$[v],r[E],o,s,l,u);$[v]+=O;let T=hQ($,o,u,f,a,l,r.height,A);p&&p<T&&(T=p),r.height=Math.min(r.height,T),$=Ng(t,o,r,S,C,d,u,f,y,b),O=d_(v,$[v],r[E],o,s,l,u),$[v]+=O;let M={},P=t[v]-$[v]-a[_n[v]],I=P+.5*t[E],H=y/2+b;var L,D,N,U;let B=_n[v]==="left"?((L=a.left)!==null&&L!==void 0?L:0)+((D=a.right)!==null&&D!==void 0?D:0):((N=a.top)!==null&&N!==void 0?N:0)+((U=a.bottom)!==null&&U!==void 0?U:0),G=r[E]-B-y/2-b,V=t[v]+y/2-($[v]+a[_n[v]]),Z=t[v]+t[E]-y/2-($[v]+a[_n[v]]),J=uu(I,V,Z);M[v]=uu(J,H,G),{placement:x,crossPlacement:_}=S,y?P=M[v]:_==="right"?P+=t[E]:_==="center"&&(P+=t[E]/2);let j=x==="left"||x==="top"?r[h]:0,X={x:x==="top"||x==="bottom"?P:j,y:x==="left"||x==="right"?P:j};return{position:$,maxHeight:T,arrowOffsetLeft:M.left,arrowOffsetTop:M.top,placement:x,triggerAnchorPoint:X}}function mQ(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:a,padding:l,shouldFlip:i,boundaryElement:o,offset:s,crossOffset:u,maxHeight:c,arrowSize:d=0,arrowBoundaryOffset:f=0}=e,p=n instanceof HTMLElement?yQ(n):document.documentElement,y=p===document.documentElement,b=window.getComputedStyle(p).position,S=!!b&&b!=="static",h=y?Ki(r,!1):h_(r,p,!1);if(!y){let{marginTop:M,marginLeft:P}=window.getComputedStyle(r);h.top+=parseInt(M,10)||0,h.left+=parseInt(P,10)||0}let v=Ki(n,!0),E=pQ(n);var x,_;v.width+=((x=E.left)!==null&&x!==void 0?x:0)+((_=E.right)!==null&&_!==void 0?_:0);var $,C;v.height+=(($=E.top)!==null&&$!==void 0?$:0)+((C=E.bottom)!==null&&C!==void 0?C:0);let w=fQ(a),A=c_(o),O=c_(p),T=o.tagName==="BODY"?Ki(p,!1):h_(p,o,!1);return p.tagName==="HTML"&&o.tagName==="BODY"&&(O.scroll.top=0,O.scroll.left=0),gQ(t,h,v,w,E,l,i,A,O,T,s,u,S,c,d,f)}function J1(e,t){let{top:r,left:n,width:a,height:l}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(a=e.offsetWidth,l=e.offsetHeight),{top:r,left:n,width:a,height:l}}function Ki(e,t){let{top:r,left:n,width:a,height:l}=J1(e,t),{scrollTop:i,scrollLeft:o,clientTop:s,clientLeft:u}=document.documentElement;return{top:r+i-s,left:n+o-u,width:a,height:l}}function h_(e,t,r){let n=window.getComputedStyle(e),a;if(n.position==="fixed")a=J1(e,r);else{a=Ki(e,r);let l=Ki(t,r),i=window.getComputedStyle(t);l.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,l.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,a.top-=l.top,a.left-=l.left}return a.top-=parseInt(n.marginTop,10)||0,a.left-=parseInt(n.marginLeft,10)||0,a}function yQ(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!g_(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!g_(t);)t=t.parentElement;return t||document.documentElement}function g_(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}var iD=new WeakMap;function bQ(e){let{triggerRef:t,isOpen:r,onClose:n}=e;g.useEffect(()=>{if(!r||n===null)return;let a=l=>{let i=l.target;if(!t.current||i instanceof Node&&!i.contains(t.current)||l.target instanceof HTMLInputElement||l.target instanceof HTMLTextAreaElement)return;let o=n||iD.get(t.current);o&&o()};return window.addEventListener("scroll",a,!0),()=>{window.removeEventListener("scroll",a,!0)}},[r,n,t])}var vQ=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),EQ=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function SQ(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return vQ.has(r.script)}let t=e.split("-")[0];return EQ.has(t)}var xQ=Symbol.for("react-aria.i18n.locale");function oD(){let e=typeof window<"u"&&window[xQ]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:SQ(e)?"rtl":"ltr"}}var ry=oD(),ms=new Set;function m_(){ry=oD();for(let e of ms)e(ry)}function $Q(){let e=ti(),[t,r]=g.useState(ry);return g.useEffect(()=>(ms.size===0&&window.addEventListener("languagechange",m_),ms.add(r),()=>{ms.delete(r),ms.size===0&&window.removeEventListener("languagechange",m_)}),[]),e?{locale:"en-US",direction:"ltr"}:t}var _Q=m.createContext(null);function fa(){let e=$Q();return g.useContext(_Q)||e}var ny=function(e,t){return ny=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},ny(e,t)};function Lp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ny(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var xe=function(){return xe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},xe.apply(this,arguments)};function CQ(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function Lg(e,t,r){if(arguments.length===2)for(var n=0,a=t.length,l;n<a;n++)(l||!(n in t))&&(l||(l=Array.prototype.slice.call(t,0,n)),l[n]=t[n]);return e.concat(l||Array.prototype.slice.call(t))}function Mg(e,t){var r=t&&t.cache?t.cache:NQ,n=t&&t.serializer?t.serializer:DQ,a=t&&t.strategy?t.strategy:AQ;return a(e,{cache:r,serializer:n})}function TQ(e){return e==null||typeof e=="number"||typeof e=="boolean"}function wQ(e,t,r,n){var a=TQ(n)?n:r(n),l=t.get(a);return typeof l>"u"&&(l=e.call(this,n),t.set(a,l)),l}function sD(e,t,r){var n=Array.prototype.slice.call(arguments,3),a=r(n),l=t.get(a);return typeof l>"u"&&(l=e.apply(this,n),t.set(a,l)),l}function uD(e,t,r,n,a){return r.bind(t,e,n,a)}function AQ(e,t){var r=e.length===1?wQ:sD;return uD(e,this,r,t.cache.create(),t.serializer)}function OQ(e,t){return uD(e,this,sD,t.cache.create(),t.serializer)}var DQ=function(){return JSON.stringify(arguments)},RQ=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),NQ={create:function(){return new RQ}},Fg={variadic:OQ},ve;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ve||(ve={}));var We;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(We||(We={}));var ho;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(ho||(ho={}));function y_(e){return e.type===We.literal}function LQ(e){return e.type===We.argument}function cD(e){return e.type===We.number}function dD(e){return e.type===We.date}function fD(e){return e.type===We.time}function pD(e){return e.type===We.select}function hD(e){return e.type===We.plural}function MQ(e){return e.type===We.pound}function gD(e){return e.type===We.tag}function mD(e){return!!(e&&typeof e=="object"&&e.type===ho.number)}function ay(e){return!!(e&&typeof e=="object"&&e.type===ho.dateTime)}var yD=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,FQ=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function BQ(e){var t={};return e.replace(FQ,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var PQ=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function IQ(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(PQ).filter(function(f){return f.length>0}),r=[],n=0,a=t;n<a.length;n++){var l=a[n],i=l.split("/");if(i.length===0)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),u=0,c=s;u<c.length;u++){var d=c[u];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:o,options:s})}return r}function kQ(e){return e.replace(/^(.*?)-/,"")}var b_=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,bD=/^(@+)?(\+|#+)?[rs]?$/g,zQ=/(\*)(0+)|(#+)(0+)|(0+)/g,vD=/^(0+)$/;function v_(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(bD,function(r,n,a){return typeof a!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):a==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof a=="string"?a.length:0)),""}),t}function ED(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function HQ(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!vD.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function E_(e){var t={},r=ED(e);return r||t}function UQ(e){for(var t={},r=0,n=e;r<n.length;r++){var a=n[r];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=kQ(a.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=xe(xe(xe({},t),{notation:"scientific"}),a.options.reduce(function(s,u){return xe(xe({},s),E_(u))},{}));continue;case"engineering":t=xe(xe(xe({},t),{notation:"engineering"}),a.options.reduce(function(s,u){return xe(xe({},s),E_(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(a.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(zQ,function(s,u,c,d,f,p){if(u)t.minimumIntegerDigits=c.length;else{if(d&&f)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(vD.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(b_.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(b_,function(s,u,c,d,f,p){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:f&&p?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+p.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var l=a.options[0];l==="w"?t=xe(xe({},t),{trailingZeroDisplay:"stripIfInteger"}):l&&(t=xe(xe({},t),v_(l)));continue}if(bD.test(a.stem)){t=xe(xe({},t),v_(a.stem));continue}var i=ED(a.stem);i&&(t=xe(xe({},t),i));var o=HQ(a.stem);o&&(t=xe(xe({},t),o))}return t}var Pc={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function jQ(e,t){for(var r="",n=0;n<e.length;n++){var a=e.charAt(n);if(a==="j"){for(var l=0;n+1<e.length&&e.charAt(n+1)===a;)l++,n++;var i=1+(l&1),o=l<2?1:3+(l>>1),s="a",u=KQ(t);for((u=="H"||u=="k")&&(o=0);o-- >0;)r+=s;for(;i-- >0;)r=u+r}else a==="J"?r+="H":r+=a}return r}function KQ(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var a=Pc[n||""]||Pc[r||""]||Pc["".concat(r,"-001")]||Pc["001"];return a[0]}var Bg,GQ=new RegExp("^".concat(yD.source,"*")),VQ=new RegExp("".concat(yD.source,"*$"));function Se(e,t){return{start:e,end:t}}var YQ=!!String.prototype.startsWith&&"_a".startsWith("a",1),qQ=!!String.fromCodePoint,WQ=!!Object.fromEntries,XQ=!!String.prototype.codePointAt,ZQ=!!String.prototype.trimStart,QQ=!!String.prototype.trimEnd,JQ=!!Number.isSafeInteger,eJ=JQ?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ly=!0;try{S_=xD("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),ly=((Bg=S_.exec("a"))===null||Bg===void 0?void 0:Bg[0])==="a"}catch{ly=!1}var S_,x_=YQ?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},iy=qQ?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r="",n=e.length,a=0,l;n>a;){if(l=e[a++],l>1114111)throw RangeError(l+" is not a valid code point");r+=l<65536?String.fromCharCode(l):String.fromCharCode(((l-=65536)>>10)+55296,l%1024+56320)}return r},$_=WQ?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var a=n[r],l=a[0],i=a[1];t[l]=i}return t},SD=XQ?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n=e.charCodeAt(t),a;return n<55296||n>56319||t+1===r||(a=e.charCodeAt(t+1))<56320||a>57343?n:(n-55296<<10)+(a-56320)+65536}},tJ=ZQ?function(e){return e.trimStart()}:function(e){return e.replace(GQ,"")},rJ=QQ?function(e){return e.trimEnd()}:function(e){return e.replace(VQ,"")};function xD(e,t){return new RegExp(e,t)}var oy;ly?(Pg=xD("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),oy=function(e,t){var r;Pg.lastIndex=t;var n=Pg.exec(e);return(r=n[1])!==null&&r!==void 0?r:""}):oy=function(e,t){for(var r=[];;){var n=SD(e,t);if(n===void 0||$D(n)||iJ(n))break;r.push(n),t+=n>=65536?2:1}return iy.apply(void 0,r)};var Pg,nJ=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var a=[];!this.isEOF();){var l=this.char();if(l===123){var i=this.parseArgument(t,n);if(i.err)return i;a.push(i.val)}else{if(l===125&&t>0)break;if(l===35&&(r==="plural"||r==="selectordinal")){var o=this.clonePosition();this.bump(),a.push({type:We.pound,location:Se(o,this.clonePosition())})}else if(l===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(ve.UNMATCHED_CLOSING_TAG,Se(this.clonePosition(),this.clonePosition()))}else if(l===60&&!this.ignoreTag&&sy(this.peek()||0)){var i=this.parseTag(t,r);if(i.err)return i;a.push(i.val)}else{var i=this.parseLiteral(t,r);if(i.err)return i;a.push(i.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:We.literal,value:"<".concat(a,"/>"),location:Se(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var l=this.parseMessage(t+1,r,!0);if(l.err)return l;var i=l.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!sy(this.char()))return this.error(ve.INVALID_TAG,Se(o,this.clonePosition()));var s=this.clonePosition(),u=this.parseTagName();return a!==u?this.error(ve.UNMATCHED_CLOSING_TAG,Se(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:We.tag,value:a,children:i,location:Se(n,this.clonePosition())},err:null}:this.error(ve.INVALID_TAG,Se(o,this.clonePosition())))}else return this.error(ve.UNCLOSED_TAG,Se(n,this.clonePosition()))}else return this.error(ve.INVALID_TAG,Se(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&lJ(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),a="";;){var l=this.tryParseQuote(r);if(l){a+=l;continue}var i=this.tryParseUnquoted(t,r);if(i){a+=i;continue}var o=this.tryParseLeftAngleBracket();if(o){a+=o;continue}break}var s=Se(n,this.clonePosition());return{val:{type:We.literal,value:a,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!aJ(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return iy.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),iy(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ve.EXPECT_ARGUMENT_CLOSING_BRACE,Se(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ve.EMPTY_ARGUMENT,Se(n,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(ve.MALFORMED_ARGUMENT,Se(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ve.EXPECT_ARGUMENT_CLOSING_BRACE,Se(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:We.argument,value:a,location:Se(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ve.EXPECT_ARGUMENT_CLOSING_BRACE,Se(n,this.clonePosition())):this.parseArgumentOptions(t,r,a,n);default:return this.error(ve.MALFORMED_ARGUMENT,Se(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=oy(this.message,r),a=r+n.length;this.bumpTo(a);var l=this.clonePosition(),i=Se(t,l);return{value:n,location:i}},e.prototype.parseArgumentOptions=function(t,r,n,a){var l,i=this.clonePosition(),o=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(o){case"":return this.error(ve.EXPECT_ARGUMENT_TYPE,Se(i,s));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var f=rJ(d.val);if(f.length===0)return this.error(ve.EXPECT_ARGUMENT_STYLE,Se(this.clonePosition(),this.clonePosition()));var p=Se(c,this.clonePosition());u={style:f,styleLocation:p}}var y=this.tryParseArgumentClose(a);if(y.err)return y;var b=Se(a,this.clonePosition());if(u&&x_(u==null?void 0:u.style,"::",0)){var S=tJ(u.style.slice(2));if(o==="number"){var d=this.parseNumberSkeletonFromString(S,u.styleLocation);return d.err?d:{val:{type:We.number,value:n,location:b,style:d.val},err:null}}else{if(S.length===0)return this.error(ve.EXPECT_DATE_TIME_SKELETON,b);var h=S;this.locale&&(h=jQ(S,this.locale));var f={type:ho.dateTime,pattern:h,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?BQ(h):{}},v=o==="date"?We.date:We.time;return{val:{type:v,value:n,location:b,style:f},err:null}}}return{val:{type:o==="number"?We.number:o==="date"?We.date:We.time,value:n,location:b,style:(l=u==null?void 0:u.style)!==null&&l!==void 0?l:null},err:null}}case"plural":case"selectordinal":case"select":{var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ve.EXPECT_SELECT_ARGUMENT_OPTIONS,Se(E,xe({},E)));this.bumpSpace();var x=this.parseIdentifierIfPossible(),_=0;if(o!=="select"&&x.value==="offset"){if(!this.bumpIf(":"))return this.error(ve.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Se(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(ve.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ve.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),x=this.parseIdentifierIfPossible(),_=d.val}var $=this.tryParsePluralOrSelectOptions(t,o,r,x);if($.err)return $;var y=this.tryParseArgumentClose(a);if(y.err)return y;var C=Se(a,this.clonePosition());return o==="select"?{val:{type:We.select,value:n,options:$_($.val),location:C},err:null}:{val:{type:We.plural,value:n,options:$_($.val),offset:_,pluralType:o==="plural"?"cardinal":"ordinal",location:C},err:null}}default:return this.error(ve.INVALID_ARGUMENT_TYPE,Se(i,s))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ve.EXPECT_ARGUMENT_CLOSING_BRACE,Se(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ve.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Se(a,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=IQ(t)}catch{return this.error(ve.INVALID_NUMBER_SKELETON,r)}return{val:{type:ho.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?UQ(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,a){for(var l,i=!1,o=[],s=new Set,u=a.value,c=a.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(ve.EXPECT_PLURAL_ARGUMENT_SELECTOR,ve.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=Se(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(s.has(u))return this.error(r==="select"?ve.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ve.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(i=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?ve.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ve.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Se(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(t+1,r,n);if(y.err)return y;var b=this.tryParseArgumentClose(p);if(b.err)return b;o.push([u,{value:y.val,location:Se(p,this.clonePosition())}]),s.add(u),this.bumpSpace(),l=this.parseIdentifierIfPossible(),u=l.value,c=l.location}return o.length===0?this.error(r==="select"?ve.EXPECT_SELECT_ARGUMENT_SELECTOR:ve.EXPECT_PLURAL_ARGUMENT_SELECTOR,Se(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(ve.MISSING_OTHER_CLAUSE,Se(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var l=!1,i=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)l=!0,i=i*10+(o-48),this.bump();else break}var s=Se(a,this.clonePosition());return l?(i*=n,eJ(i)?{val:i,err:null}:this.error(r,s)):this.error(t,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=SD(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(x_(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&$D(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function sy(e){return e>=97&&e<=122||e>=65&&e<=90}function aJ(e){return sy(e)||e===47}function lJ(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function $D(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function iJ(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function uy(e){e.forEach(function(t){if(delete t.location,pD(t)||hD(t))for(var r in t.options)delete t.options[r].location,uy(t.options[r].value);else cD(t)&&mD(t.style)||(dD(t)||fD(t))&&ay(t.style)?delete t.style.location:gD(t)&&uy(t.children)})}function oJ(e,t){t===void 0&&(t={}),t=xe({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new nJ(e,t).parse();if(r.err){var n=SyntaxError(ve[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||uy(r.val),r.val}var go;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(go||(go={}));var Mp=function(e){Lp(t,e);function t(r,n,a){var l=e.call(this,r)||this;return l.code=n,l.originalMessage=a,l}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),__=function(e){Lp(t,e);function t(r,n,a,l){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(a).join('", "'),'"'),go.INVALID_VALUE,l)||this}return t}(Mp),sJ=function(e){Lp(t,e);function t(r,n,a){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),go.INVALID_VALUE,a)||this}return t}(Mp),uJ=function(e){Lp(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),go.MISSING_VALUE,n)||this}return t}(Mp),Yt;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Yt||(Yt={}));function cJ(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==Yt.literal||r.type!==Yt.literal?t.push(r):n.value+=r.value,t},[])}function dJ(e){return typeof e=="function"}function Sd(e,t,r,n,a,l,i){if(e.length===1&&y_(e[0]))return[{type:Yt.literal,value:e[0].value}];for(var o=[],s=0,u=e;s<u.length;s++){var c=u[s];if(y_(c)){o.push({type:Yt.literal,value:c.value});continue}if(MQ(c)){typeof l=="number"&&o.push({type:Yt.literal,value:r.getNumberFormat(t).format(l)});continue}var d=c.value;if(!(a&&d in a))throw new uJ(d,i);var f=a[d];if(LQ(c)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),o.push({type:typeof f=="string"?Yt.literal:Yt.object,value:f});continue}if(dD(c)){var p=typeof c.style=="string"?n.date[c.style]:ay(c.style)?c.style.parsedOptions:void 0;o.push({type:Yt.literal,value:r.getDateTimeFormat(t,p).format(f)});continue}if(fD(c)){var p=typeof c.style=="string"?n.time[c.style]:ay(c.style)?c.style.parsedOptions:n.time.medium;o.push({type:Yt.literal,value:r.getDateTimeFormat(t,p).format(f)});continue}if(cD(c)){var p=typeof c.style=="string"?n.number[c.style]:mD(c.style)?c.style.parsedOptions:void 0;p&&p.scale&&(f=f*(p.scale||1)),o.push({type:Yt.literal,value:r.getNumberFormat(t,p).format(f)});continue}if(gD(c)){var y=c.children,b=c.value,S=a[b];if(!dJ(S))throw new sJ(b,"function",i);var h=Sd(y,t,r,n,a,l),v=S(h.map(function(_){return _.value}));Array.isArray(v)||(v=[v]),o.push.apply(o,v.map(function(_){return{type:typeof _=="string"?Yt.literal:Yt.object,value:_}}))}if(pD(c)){var E=c.options[f]||c.options.other;if(!E)throw new __(c.value,f,Object.keys(c.options),i);o.push.apply(o,Sd(E.value,t,r,n,a));continue}if(hD(c)){var E=c.options["=".concat(f)];if(!E){if(!Intl.PluralRules)throw new Mp(`Intl.PluralRules is not available in this environment.
  607. Try polyfilling it using "@formatjs/intl-pluralrules"
  608. `,go.MISSING_INTL_API,i);var x=r.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0));E=c.options[x]||c.options.other}if(!E)throw new __(c.value,f,Object.keys(c.options),i);o.push.apply(o,Sd(E.value,t,r,n,a,f-(c.offset||0)));continue}}return cJ(o)}function fJ(e,t){return t?xe(xe(xe({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=xe(xe({},e[n]),t[n]||{}),r},{})):e}function pJ(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=fJ(e[n],t[n]),r},xe({},e)):e}function Ig(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function hJ(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Mg(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Lg([void 0],r,!1)))},{cache:Ig(e.number),strategy:Fg.variadic}),getDateTimeFormat:Mg(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Lg([void 0],r,!1)))},{cache:Ig(e.dateTime),strategy:Fg.variadic}),getPluralRules:Mg(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Lg([void 0],r,!1)))},{cache:Ig(e.pluralRules),strategy:Fg.variadic})}}(function(){function e(t,r,n,a){r===void 0&&(r=e.defaultLocale);var l=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(s){var u=l.formatToParts(s);if(u.length===1)return u[0].value;var c=u.reduce(function(d,f){return!d.length||f.type!==Yt.literal||typeof d[d.length-1]!="string"?d.push(f.value):d[d.length-1]+=f.value,d},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(s){return Sd(l.ast,l.locales,l.formatters,l.formats,s,void 0,l.message)},this.resolvedOptions=function(){var s;return{locale:((s=l.resolvedLocale)===null||s===void 0?void 0:s.toString())||Intl.NumberFormat.supportedLocalesOf(l.locales)[0]}},this.getAst=function(){return l.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var i=a||{};i.formatters;var o=CQ(i,["formatters"]);this.ast=e.__parse(t,xe(xe({},o),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=pJ(e.formats,n),this.formatters=a&&a.formatters||hJ(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=oJ,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e})();var gJ=Symbol.for("react-aria.i18n.locale"),mJ=Symbol.for("react-aria.i18n.strings"),ci,_D=class CD{getStringForLocale(t,r){let n=this.getStringsForLocale(r)[t];if(!n)throw new Error(`Could not find intl message ${t} in ${r} locale`);return n}getStringsForLocale(t){let r=this.strings[t];return r||(r=yJ(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[gJ];if(ci===void 0){let a=window[mJ];if(!a)return null;ci={};for(let l in a)ci[l]=new CD({[r]:a[l]},r)}let n=ci==null?void 0:ci[t];if(!n)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,n])=>n)),this.defaultLocale=r}};function yJ(e,t,r="en-US"){if(t[e])return t[e];let n=bJ(e);if(t[n])return t[n];for(let a in t)if(a.startsWith(n+"-"))return t[a];return t[r]}function bJ(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}var C_=new Map,T_=new Map,vJ=class{format(e,t){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(t,this):r}plural(e,t,r="cardinal"){let n=t["="+e];if(n)return typeof n=="function"?n():n;let a=this.locale+":"+r,l=C_.get(a);l||(l=new Intl.PluralRules(this.locale,{type:r}),C_.set(a,l));let i=l.select(e);return n=t[i]||t.other,typeof n=="function"?n():n}number(e){let t=T_.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),T_.set(this.locale,t)),t.format(e)}select(e,t){let r=e[t]||e.other;return typeof r=="function"?r():r}constructor(e,t){this.locale=e,this.strings=t}},w_=new WeakMap;function EJ(e){let t=w_.get(e);return t||(t=new _D(e),w_.set(e,t)),t}function SJ(e,t){return _D.getGlobalDictionaryForPackage(t)||EJ(e)}function xJ(e,t){let{locale:r}=fa(),n=SJ(e,t);return g.useMemo(()=>new vJ(r,n),[r,n])}var kg=new Map,cy=!1;try{cy=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}var Cf=!1;try{Cf=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}var TD={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}},$J=class{format(e){let t="";if(!cy&&this.options.signDisplay!=null?t=CJ(this.numberFormatter,this.options.signDisplay,e):t=this.numberFormatter.format(e),this.options.style==="unit"&&!Cf){var r;let{unit:n,unitDisplay:a="short",locale:l}=this.resolvedOptions();if(!n)return t;let i=(r=TD[n])===null||r===void 0?void 0:r[a];t+=i[l]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(e),n=this.numberFormatter.formatToParts(t);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...n.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!cy&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!Cf&&this.options.style==="unit"&&(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=_J(e,t),this.options=t}};function _J(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!Cf){var n;let{unit:i,unitDisplay:o="short"}=t;if(!i)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=TD[i])===null||n===void 0)&&n[o]))throw new Error(`Unsupported unit ${i} with unitDisplay = ${o}`);t={...t,style:"decimal"}}let a=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(kg.has(a))return kg.get(a);let l=new Intl.NumberFormat(e,t);return kg.set(a,l),l}function CJ(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let a=e.format(-r),l=e.format(r),i=a.replace(l,"").replace(/\u200e|\u061C/,"");return[...i].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),a.replace(l,"!!!").replace(i,"+").replace("!!!",l)}else return e.format(r)}}function TJ(e={}){let{locale:t}=fa();return g.useMemo(()=>new $J(t,e),[t,e])}var zg=new Map;function wJ(e){let{locale:t}=fa(),r=t+(e?Object.entries(e).sort((a,l)=>a[0]<l[0]?-1:1).join():"");if(zg.has(r))return zg.get(r);let n=new Intl.Collator(t,e);return zg.set(r,n),n}var rt=typeof document<"u"?window.visualViewport:null;function ev(e){let{direction:t}=fa(),{arrowSize:r,targetRef:n,overlayRef:a,arrowRef:l,scrollRef:i=a,placement:o="bottom",containerPadding:s=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:y=!0,onClose:b,maxHeight:S,arrowBoundaryOffset:h=0}=e,[v,E]=g.useState(null),x=[p,o,a.current,n.current,l==null?void 0:l.current,i.current,s,u,c,d,f,y,t,S,h,r],_=g.useRef(rt==null?void 0:rt.scale);g.useEffect(()=>{y&&(_.current=rt==null?void 0:rt.scale)},[y]);let $=g.useCallback(()=>{if(p===!1||!y||!a.current||!n.current||!c||(rt==null?void 0:rt.scale)!==_.current)return;let M=null;if(i.current&&i.current.contains(document.activeElement)){var P;let B=(P=document.activeElement)===null||P===void 0?void 0:P.getBoundingClientRect(),G=i.current.getBoundingClientRect();var I;if(M={type:"top",offset:((I=B==null?void 0:B.top)!==null&&I!==void 0?I:0)-G.top},M.offset>G.height/2){M.type="bottom";var H;M.offset=((H=B==null?void 0:B.bottom)!==null&&H!==void 0?H:0)-G.bottom}}let L=a.current;if(!S&&a.current){var D;L.style.top="0px",L.style.bottom="";var N;L.style.maxHeight=((N=(D=window.visualViewport)===null||D===void 0?void 0:D.height)!==null&&N!==void 0?N:window.innerHeight)+"px"}let U=mQ({placement:OJ(o,t),overlayNode:a.current,targetNode:n.current,scrollNode:i.current||a.current,padding:s,shouldFlip:u,boundaryElement:c,offset:d,crossOffset:f,maxHeight:S,arrowSize:r??(l!=null&&l.current?J1(l.current,!0).width:0),arrowBoundaryOffset:h});if(U.position){if(L.style.top="",L.style.bottom="",L.style.left="",L.style.right="",Object.keys(U.position).forEach(B=>L.style[B]=U.position[B]+"px"),L.style.maxHeight=U.maxHeight!=null?U.maxHeight+"px":"",M&&document.activeElement&&i.current){let B=document.activeElement.getBoundingClientRect(),G=i.current.getBoundingClientRect(),V=B[M.type]-G[M.type];i.current.scrollTop+=V-M.offset}E(U)}},x);$e($,x),AJ($),bf({ref:a,onResize:$}),bf({ref:n,onResize:$});let C=g.useRef(!1);$e(()=>{let M,P=()=>{C.current=!0,clearTimeout(M),M=setTimeout(()=>{C.current=!1},500),$()},I=()=>{C.current&&P()};return rt==null||rt.addEventListener("resize",P),rt==null||rt.addEventListener("scroll",I),()=>{rt==null||rt.removeEventListener("resize",P),rt==null||rt.removeEventListener("scroll",I)}},[$]);let w=g.useCallback(()=>{C.current||(b==null||b())},[b,C]);bQ({triggerRef:n,isOpen:y,onClose:b&&w});var A,O,T;return{overlayProps:{style:{position:v?"absolute":"fixed",top:v?void 0:0,left:v?void 0:0,zIndex:1e5,...v==null?void 0:v.position,maxHeight:(A=v==null?void 0:v.maxHeight)!==null&&A!==void 0?A:"100vh"}},placement:(O=v==null?void 0:v.placement)!==null&&O!==void 0?O:null,triggerAnchorPoint:(T=v==null?void 0:v.triggerAnchorPoint)!==null&&T!==void 0?T:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:v==null?void 0:v.arrowOffsetLeft,top:v==null?void 0:v.arrowOffsetTop}},updatePosition:$}}function AJ(e){$e(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function OJ(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}var A_=m.createContext(null),dy="react-aria-focus-scope-restore",ke=null;function tv(e){let{children:t,contain:r,restoreFocus:n,autoFocus:a}=e,l=g.useRef(null),i=g.useRef(null),o=g.useRef([]),{parentNode:s}=g.useContext(A_)||{},u=g.useMemo(()=>new py({scopeRef:o}),[o]);$e(()=>{let f=s||it.root;if(it.getTreeNode(f.scopeRef)&&ke&&!Tf(ke,f.scopeRef)){let p=it.getTreeNode(ke);p&&(f=p)}f.addChild(u),it.addNode(u)},[u,s]),$e(()=>{let f=it.getTreeNode(o);f&&(f.contain=!!r)},[r]),$e(()=>{var f;let p=(f=l.current)===null||f===void 0?void 0:f.nextSibling,y=[],b=S=>S.stopPropagation();for(;p&&p!==i.current;)y.push(p),p.addEventListener(dy,b),p=p.nextSibling;return o.current=y,()=>{for(let S of y)S.removeEventListener(dy,b)}},[t]),FJ(o,n,r),NJ(o,r),BJ(o,n,r),MJ(o,a),g.useEffect(()=>{let f=$t(_e(o.current?o.current[0]:void 0)),p=null;if(Vr(f,o.current)){for(let y of it.traverse())y.scopeRef&&Vr(f,y.scopeRef.current)&&(p=y);p===it.getTreeNode(o)&&(ke=p.scopeRef)}},[o]),$e(()=>()=>{var f,p,y;let b=(y=(p=it.getTreeNode(o))===null||p===void 0||(f=p.parent)===null||f===void 0?void 0:f.scopeRef)!==null&&y!==void 0?y:null;(o===ke||Tf(o,ke))&&(!b||it.getTreeNode(b))&&(ke=b),it.removeTreeNode(o)},[o]);let c=g.useMemo(()=>DJ(o),[]),d=g.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return m.createElement(A_.Provider,{value:d},m.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:l}),t,m.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:i}))}function DJ(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:a,wrap:l,accept:i}=t;var o;let s=n||$t(_e((o=r[0])!==null&&o!==void 0?o:void 0)),u=r[0].previousElementSibling,c=xl(r),d=ar(c,{tabbable:a,accept:i},r);d.currentNode=Vr(s,r)?s:u;let f=d.nextNode();return!f&&l&&(d.currentNode=u,f=d.nextNode()),f&&nr(f,!0),f},focusPrevious(t={}){let r=e.current,{from:n,tabbable:a,wrap:l,accept:i}=t;var o;let s=n||$t(_e((o=r[0])!==null&&o!==void 0?o:void 0)),u=r[r.length-1].nextElementSibling,c=xl(r),d=ar(c,{tabbable:a,accept:i},r);d.currentNode=Vr(s,r)?s:u;let f=d.previousNode();return!f&&l&&(d.currentNode=u,f=d.previousNode()),f&&nr(f,!0),f},focusFirst(t={}){let r=e.current,{tabbable:n,accept:a}=t,l=xl(r),i=ar(l,{tabbable:n,accept:a},r);i.currentNode=r[0].previousElementSibling;let o=i.nextNode();return o&&nr(o,!0),o},focusLast(t={}){let r=e.current,{tabbable:n,accept:a}=t,l=xl(r),i=ar(l,{tabbable:n,accept:a},r);i.currentNode=r[r.length-1].nextElementSibling;let o=i.previousNode();return o&&nr(o,!0),o}}}function xl(e){return e[0].parentElement}function ys(e){let t=it.getTreeNode(ke);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function RJ(e){if(e.checked)return!0;let t=[];if(!e.form)t=[..._e(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(a=>!a.form);else{var r,n;t=[...((n=e.form)===null||n===void 0||(r=n.elements)===null||r===void 0?void 0:r.namedItem(e.name))??[]]}return t?!t.some(a=>a.checked):!1}function NJ(e,t){let r=g.useRef(void 0),n=g.useRef(void 0);$e(()=>{let a=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}let l=_e(a?a[0]:void 0),i=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!ys(e)||u.isComposing)return;let c=$t(l),d=e.current;if(!d||!Vr(c,d))return;let f=xl(d),p=ar(f,{tabbable:!0},d);if(!c)return;p.currentNode=c;let y=u.shiftKey?p.previousNode():p.nextNode();y||(p.currentNode=u.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,y=u.shiftKey?p.previousNode():p.nextNode()),u.preventDefault(),y&&nr(y,!0)},o=u=>{(!ke||Tf(ke,e))&&Vr(nt(u),e.current)?(ke=e,r.current=nt(u)):ys(e)&&!La(nt(u),e)?r.current?r.current.focus():ke&&ke.current&&fy(ke.current):ys(e)&&(r.current=nt(u))},s=u=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let c=pu(),d=(c==="virtual"||c===null)&&U1()&&P3(),f=$t(l);if(!d&&f&&ys(e)&&!La(f,e)){ke=e;let y=nt(u);if(y&&y.isConnected){var p;r.current=y,(p=r.current)===null||p===void 0||p.focus()}else ke.current&&fy(ke.current)}})};return l.addEventListener("keydown",i,!1),l.addEventListener("focusin",o,!1),a==null||a.forEach(u=>u.addEventListener("focusin",o,!1)),a==null||a.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{l.removeEventListener("keydown",i,!1),l.removeEventListener("focusin",o,!1),a==null||a.forEach(u=>u.removeEventListener("focusin",o,!1)),a==null||a.forEach(u=>u.removeEventListener("focusout",s,!1))}},[e,t]),$e(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function wD(e){return La(e)}function Vr(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function La(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of it.traverse(it.getTreeNode(t)))if(r&&Vr(e,r.current))return!0;return!1}function LJ(e){return La(e,ke)}function Tf(e,t){var r;let n=(r=it.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function nr(e,t=!1){if(e!=null&&!t)try{Wa(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function AD(e,t=!0){let r=e[0].previousElementSibling,n=xl(e),a=ar(n,{tabbable:t},e);a.currentNode=r;let l=a.nextNode();return t&&!l&&(n=xl(e),a=ar(n,{tabbable:!1},e),a.currentNode=r,l=a.nextNode()),l}function fy(e,t=!0){nr(AD(e,t))}function MJ(e,t){let r=m.useRef(t);g.useEffect(()=>{if(r.current){ke=e;let n=_e(e.current?e.current[0]:void 0);!Vr($t(n),ke.current)&&e.current&&fy(e.current)}r.current=!1},[e])}function FJ(e,t,r){$e(()=>{if(t||r)return;let n=e.current,a=_e(n?n[0]:void 0),l=i=>{let o=nt(i);Vr(o,e.current)?ke=e:wD(o)||(ke=null)};return a.addEventListener("focusin",l,!1),n==null||n.forEach(i=>i.addEventListener("focusin",l,!1)),()=>{a.removeEventListener("focusin",l,!1),n==null||n.forEach(i=>i.removeEventListener("focusin",l,!1))}},[e,t,r])}function O_(e){let t=it.getTreeNode(ke);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function BJ(e,t,r){let n=g.useRef(typeof document<"u"?$t(_e(e.current?e.current[0]:void 0)):null);$e(()=>{let a=e.current,l=_e(a?a[0]:void 0);if(!t||r)return;let i=()=>{(!ke||Tf(ke,e))&&Vr($t(l),e.current)&&(ke=e)};return l.addEventListener("focusin",i,!1),a==null||a.forEach(o=>o.addEventListener("focusin",i,!1)),()=>{l.removeEventListener("focusin",i,!1),a==null||a.forEach(o=>o.removeEventListener("focusin",i,!1))}},[e,r]),$e(()=>{let a=_e(e.current?e.current[0]:void 0);if(!t)return;let l=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!ys(e)||i.isComposing)return;let o=a.activeElement;if(!La(o,e)||!O_(e))return;let s=it.getTreeNode(e);if(!s)return;let u=s.nodeToRestore,c=ar(a.body,{tabbable:!0});c.currentNode=o;let d=i.shiftKey?c.previousNode():c.nextNode();if((!u||!u.isConnected||u===a.body)&&(u=void 0,s.nodeToRestore=void 0),(!d||!La(d,e))&&u){c.currentNode=u;do d=i.shiftKey?c.previousNode():c.nextNode();while(La(d,e));i.preventDefault(),i.stopPropagation(),d?nr(d,!0):wD(u)?nr(u,!0):o.blur()}};return r||a.addEventListener("keydown",l,!0),()=>{r||a.removeEventListener("keydown",l,!0)}},[e,t,r]),$e(()=>{let a=_e(e.current?e.current[0]:void 0);if(!t)return;let l=it.getTreeNode(e);if(l){var i;return l.nodeToRestore=(i=n.current)!==null&&i!==void 0?i:void 0,()=>{let o=it.getTreeNode(e);if(!o)return;let s=o.nodeToRestore,u=$t(a);if(t&&s&&(u&&La(u,e)||u===a.body&&O_(e))){let c=it.clone();requestAnimationFrame(()=>{if(a.activeElement===a.body){let d=c.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){D_(d.nodeToRestore);return}d=d.parent}for(d=c.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&it.getTreeNode(d.scopeRef)){let f=AD(d.scopeRef.current,!0);D_(f);return}d=d.parent}}})}}}},[e,t])}function D_(e){e.dispatchEvent(new CustomEvent(dy,{bubbles:!0,cancelable:!0}))&&nr(e)}function ar(e,t,r){let n=t!=null&&t.tabbable?MZ:V3,a=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,l=_e(a),i=eZ(l,e||l,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(o)||t!=null&&t.tabbable&&o.tagName==="INPUT"&&o.getAttribute("type")==="radio"&&(!RJ(o)||i.currentNode.tagName==="INPUT"&&i.currentNode.type==="radio"&&i.currentNode.name===o.name)?NodeFilter.FILTER_REJECT:n(o)&&(!r||Vr(o,r))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function PJ(e,t={}){return{focusNext(r={}){let n=e.current;if(!n)return null;let{from:a,tabbable:l=t.tabbable,wrap:i=t.wrap,accept:o=t.accept}=r,s=a||$t(_e(n)),u=ar(n,{tabbable:l,accept:o});n.contains(s)&&(u.currentNode=s);let c=u.nextNode();return!c&&i&&(u.currentNode=n,c=u.nextNode()),c&&nr(c,!0),c},focusPrevious(r=t){let n=e.current;if(!n)return null;let{from:a,tabbable:l=t.tabbable,wrap:i=t.wrap,accept:o=t.accept}=r,s=a||$t(_e(n)),u=ar(n,{tabbable:l,accept:o});if(n.contains(s))u.currentNode=s;else{let d=Hg(u);return d&&nr(d,!0),d??null}let c=u.previousNode();if(!c&&i){u.currentNode=n;let d=Hg(u);if(!d)return null;c=d}return c&&nr(c,!0),c??null},focusFirst(r=t){let n=e.current;if(!n)return null;let{tabbable:a=t.tabbable,accept:l=t.accept}=r,i=ar(n,{tabbable:a,accept:l}).nextNode();return i&&nr(i,!0),i},focusLast(r=t){let n=e.current;if(!n)return null;let{tabbable:a=t.tabbable,accept:l=t.accept}=r,i=ar(n,{tabbable:a,accept:l}),o=Hg(i);return o&&nr(o,!0),o??null}}}function Hg(e){let t,r;do r=e.lastChild(),r&&(t=r);while(r);return t}var IJ=class OD{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let a=this.fastMap.get(r??null);if(!a)return;let l=new py({scopeRef:t});a.addChild(l),l.parent=a,this.fastMap.set(t,l),n&&(l.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let l of this.traverse())l!==r&&r.nodeToRestore&&l.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&Vr(l.nodeToRestore,r.scopeRef.current)&&(l.nodeToRestore=r.nodeToRestore);let a=r.children;n&&(n.removeChild(r),a.size>0&&a.forEach(l=>n&&n.addChild(l))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new OD;var n;for(let a of this.traverse())r.addTreeNode(a.scopeRef,(n=(t=a.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,a.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new py({scopeRef:null}),this.fastMap.set(null,this.root)}},py=class{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}},it=new IJ;function Fp(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,a=g.useRef({isFocused:!1,isFocusVisible:t||fu()}),[l,i]=g.useState(!1),[o,s]=g.useState(()=>a.current.isFocused&&a.current.isFocusVisible),u=g.useCallback(()=>s(a.current.isFocused&&a.current.isFocusVisible),[]),c=g.useCallback(p=>{a.current.isFocused=p,i(p),u()},[u]);QZ(p=>{a.current.isFocusVisible=p,u()},[],{isTextInput:r});let{focusProps:d}=W1({isDisabled:n,onFocusChange:c}),{focusWithinProps:f}=X1({isDisabled:!n,onFocusWithinChange:c});return{isFocused:l,isFocusVisible:o,focusProps:n?f:d}}function kJ(e,t){let[r,n]=g.useState(!1);return $e(()=>{if(e!=null&&e.current){let a=()=>{if(e.current){let i=ar(e.current,{tabbable:!0});n(!!i.nextNode())}};a();let l=new MutationObserver(a);return l.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),r}function DD(e){let t=HJ(_e(e));t!==e&&(t&&zJ(t,e),e&&RD(e,t))}function zJ(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function RD(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function HJ(e){let t=$t(e),r=t==null?void 0:t.getAttribute("aria-activedescendant");return r&&e.getElementById(r)||t}var dn=[];function rv(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:a,isDismissable:l=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:o}=e;g.useEffect(()=>{if(a&&!dn.includes(t))return dn.push(t),()=>{let y=dn.indexOf(t);y>=0&&dn.splice(y,1)}},[a,t]);let s=()=>{dn[dn.length-1]===t&&r&&r()},u=y=>{(!o||o(y.target))&&dn[dn.length-1]===t&&(y.stopPropagation(),y.preventDefault())},c=y=>{(!o||o(y.target))&&(dn[dn.length-1]===t&&(y.stopPropagation(),y.preventDefault()),s())},d=y=>{y.key==="Escape"&&!i&&!y.nativeEvent.isComposing&&(y.stopPropagation(),y.preventDefault(),s())};nD({ref:t,onInteractOutside:l&&a?c:void 0,onInteractOutsideStart:u});let{focusWithinProps:f}=X1({isDisabled:!n,onBlurWithin:y=>{!y.relatedTarget||LJ(y.relatedTarget)||(!o||o(y.relatedTarget))&&(r==null||r())}}),p=y=>{y.target===y.currentTarget&&y.preventDefault()};return{overlayProps:{onKeyDown:d,...f},underlayProps:{onPointerDown:p}}}function UJ(e,t,r){let{isOpen:n}=t;g.useEffect(()=>{r&&r.current&&iD.set(r.current,t.close)});let a,l=Mt();return{triggerProps:{"aria-haspopup":a,"aria-expanded":n,"aria-controls":n?l:void 0,onPress:t.toggle},overlayProps:{id:l}}}var Fs=typeof document<"u"&&window.visualViewport,Ic=0,Ug;function ND(e={}){let{isDisabled:t}=e;$e(()=>{if(!t)return Ic++,Ic===1&&(Ap()?Ug=KJ():Ug=jJ()),()=>{Ic--,Ic===0&&Ug()}},[t])}function jJ(){let e=window.innerWidth-document.documentElement.clientWidth;return ku(e>0&&("scrollbarGutter"in document.documentElement.style?jg(document.documentElement,"scrollbarGutter","stable"):jg(document.documentElement,"paddingRight",`${e}px`)),jg(document.documentElement,"overflow","hidden"))}function KJ(){let e,t=!1,r=s=>{let u=s.target;e=po(u)?u:z3(u,!0),t=!1;let c=u.ownerDocument.defaultView.getSelection();c&&!c.isCollapsed&&c.containsNode(u,!0)&&(t=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(t=!0)},n=document.createElement("style");n.textContent=`
  609. @layer {
  610. * {
  611. overscroll-behavior: contain;
  612. }
  613. }`.trim(),document.head.prepend(n);let a=s=>{if(!(s.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){s.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&s.preventDefault()}},l=s=>{let u=s.target,c=s.relatedTarget;if(c&&Ag(c))c.focus({preventScroll:!0}),R_(c,Ag(u));else if(!c){var d;let f=(d=u.parentElement)===null||d===void 0?void 0:d.closest("[tabindex]");f==null||f.focus({preventScroll:!0})}},i=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(s){let u=document.activeElement!=null&&Ag(document.activeElement);i.call(this,{...s,preventScroll:!0}),(!s||!s.preventScroll)&&R_(this,u)};let o=ku(Kg(document,"touchstart",r,{passive:!1,capture:!0}),Kg(document,"touchmove",a,{passive:!1,capture:!0}),Kg(document,"blur",l,!0));return()=>{o(),n.remove(),HTMLElement.prototype.focus=i}}function jg(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function Kg(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function R_(e,t){t||!Fs?N_(e):Fs.addEventListener("resize",()=>N_(e),{once:!0})}function N_(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let n=z3(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let a=n.getBoundingClientRect(),l=r.getBoundingClientRect();if(l.top<a.top||l.bottom>a.top+r.clientHeight){let i=a.bottom;Fs&&(i=Math.min(i,Fs.offsetTop+Fs.height));let o=l.top-a.top-((i-a.top)/2-l.height/2);n.scrollTo({top:Math.max(0,Math.min(n.scrollHeight-n.clientHeight,n.scrollTop+o)),behavior:"smooth"})}}r=n.parentElement}}var GJ=g.createContext({});function LD(){var e;return(e=g.useContext(GJ))!==null&&e!==void 0?e:{}}var hy=m.createContext(null);function VJ(e){let{children:t}=e,r=g.useContext(hy),[n,a]=g.useState(0),l=g.useMemo(()=>({parent:r,modalCount:n,addModal(){a(i=>i+1),r&&r.addModal()},removeModal(){a(i=>i-1),r&&r.removeModal()}}),[r,n]);return m.createElement(hy.Provider,{value:l},t)}function YJ(){let e=g.useContext(hy);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function qJ(e){let{modalProviderProps:t}=YJ();return m.createElement("div",{"data-overlay-container":!0,...e,...t})}function WJ(e){return m.createElement(VJ,null,m.createElement(qJ,e))}function XJ(e){let t=ti(),{portalContainer:r=t?null:document.body,...n}=e,{getContainer:a}=LD();if(!e.portalContainer&&a&&(r=a()),m.useEffect(()=>{if(r!=null&&r.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let l=m.createElement(WJ,n);return mw.createPortal(l,r)}var MD={};MD={dismiss:"تجاهل"};var FD={};FD={dismiss:"Отхвърляне"};var BD={};BD={dismiss:"Odstranit"};var PD={};PD={dismiss:"Luk"};var ID={};ID={dismiss:"Schließen"};var kD={};kD={dismiss:"Απόρριψη"};var zD={};zD={dismiss:"Dismiss"};var HD={};HD={dismiss:"Descartar"};var UD={};UD={dismiss:"Lõpeta"};var jD={};jD={dismiss:"Hylkää"};var KD={};KD={dismiss:"Rejeter"};var GD={};GD={dismiss:"התעלם"};var VD={};VD={dismiss:"Odbaci"};var YD={};YD={dismiss:"Elutasítás"};var qD={};qD={dismiss:"Ignora"};var WD={};WD={dismiss:"閉じる"};var XD={};XD={dismiss:"무시"};var ZD={};ZD={dismiss:"Atmesti"};var QD={};QD={dismiss:"Nerādīt"};var JD={};JD={dismiss:"Lukk"};var eR={};eR={dismiss:"Negeren"};var tR={};tR={dismiss:"Zignoruj"};var rR={};rR={dismiss:"Descartar"};var nR={};nR={dismiss:"Dispensar"};var aR={};aR={dismiss:"Revocare"};var lR={};lR={dismiss:"Пропустить"};var iR={};iR={dismiss:"Zrušiť"};var oR={};oR={dismiss:"Opusti"};var sR={};sR={dismiss:"Odbaci"};var uR={};uR={dismiss:"Avvisa"};var cR={};cR={dismiss:"Kapat"};var dR={};dR={dismiss:"Скасувати"};var fR={};fR={dismiss:"取消"};var pR={};pR={dismiss:"關閉"};var hR={};hR={"ar-AE":MD,"bg-BG":FD,"cs-CZ":BD,"da-DK":PD,"de-DE":ID,"el-GR":kD,"en-US":zD,"es-ES":HD,"et-EE":UD,"fi-FI":jD,"fr-FR":KD,"he-IL":GD,"hr-HR":VD,"hu-HU":YD,"it-IT":qD,"ja-JP":WD,"ko-KR":XD,"lt-LT":ZD,"lv-LV":QD,"nb-NO":JD,"nl-NL":eR,"pl-PL":tR,"pt-BR":rR,"pt-PT":nR,"ro-RO":aR,"ru-RU":lR,"sk-SK":iR,"sl-SI":oR,"sr-SP":sR,"sv-SE":uR,"tr-TR":cR,"uk-UA":dR,"zh-CN":fR,"zh-TW":pR};var L_={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"};function ZJ(e={}){let{style:t,isFocusable:r}=e,[n,a]=g.useState(!1),{focusWithinProps:l}=X1({isDisabled:!r,onFocusWithinChange:o=>a(o)}),i=g.useMemo(()=>n?t:t?{...L_,...t}:L_,[n]);return{visuallyHiddenProps:{...l,style:i}}}function QJ(e){let{children:t,elementType:r="div",isFocusable:n,style:a,...l}=e,{visuallyHiddenProps:i}=ZJ(e);return m.createElement(r,ce(l,i),t)}function JJ(e){return e&&e.__esModule?e.default:e}function M_(e){let{onDismiss:t,...r}=e,n=xJ(JJ(hR),"@react-aria/overlays"),a=Rp(r,n.format("dismiss")),l=()=>{t&&t()};return m.createElement(QJ,null,m.createElement("button",{...a,tabIndex:-1,onClick:l,style:{width:1,height:1}}))}var eee=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,rs=new WeakMap,Jt=[];function Bp(e,t){let r=Hr(e==null?void 0:e[0]),n=t instanceof r.Element?{root:t}:t;var a;let l=(a=n==null?void 0:n.root)!==null&&a!==void 0?a:document.body,i=(n==null?void 0:n.shouldUseInert)&&eee,o=new Set(e),s=new Set,u=b=>i&&b instanceof r.HTMLElement?b.inert:b.getAttribute("aria-hidden")==="true",c=(b,S)=>{i&&b instanceof r.HTMLElement?b.inert=S:S?b.setAttribute("aria-hidden","true"):(b.removeAttribute("aria-hidden"),b instanceof r.HTMLElement&&(b.inert=!1))},d=b=>{for(let E of b.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))o.add(E);let S=E=>{if(s.has(E)||o.has(E)||E.parentElement&&s.has(E.parentElement)&&E.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let x of o)if(E.contains(x))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},h=document.createTreeWalker(b,NodeFilter.SHOW_ELEMENT,{acceptNode:S}),v=S(b);if(v===NodeFilter.FILTER_ACCEPT&&f(b),v!==NodeFilter.FILTER_REJECT){let E=h.nextNode();for(;E!=null;)f(E),E=h.nextNode()}},f=b=>{var S;let h=(S=rs.get(b))!==null&&S!==void 0?S:0;u(b)&&h===0||(h===0&&c(b,!0),s.add(b),rs.set(b,h+1))};Jt.length&&Jt[Jt.length-1].disconnect(),d(l);let p=new MutationObserver(b=>{for(let S of b)if(S.type==="childList"&&![...o,...s].some(h=>h.contains(S.target)))for(let h of S.addedNodes)(h instanceof HTMLElement||h instanceof SVGElement)&&(h.dataset.liveAnnouncer==="true"||h.dataset.reactAriaTopLayer==="true")?o.add(h):h instanceof Element&&d(h)});p.observe(l,{childList:!0,subtree:!0});let y={visibleNodes:o,hiddenNodes:s,observe(){p.observe(l,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}};return Jt.push(y),()=>{p.disconnect();for(let b of s){let S=rs.get(b);S!=null&&(S===1?(c(b,!1),rs.delete(b)):rs.set(b,S-1))}y===Jt[Jt.length-1]?(Jt.pop(),Jt.length&&Jt[Jt.length-1].observe()):Jt.splice(Jt.indexOf(y),1)}}function tee(e){let t=Jt[Jt.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function ree(e,t){let{triggerRef:r,popoverRef:n,groupRef:a,isNonModal:l,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:o,...s}=e,u=s.trigger==="SubmenuTrigger",{overlayProps:c,underlayProps:d}=rv({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!l||u,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:o},a??n),{overlayProps:f,arrowProps:p,placement:y,triggerAnchorPoint:b}=ev({...s,targetRef:r,overlayRef:n,isOpen:t.isOpen,onClose:l&&!u?t.close:null});return ND({isDisabled:l||!t.isOpen}),g.useEffect(()=>{if(t.isOpen&&n.current){var S,h;return l?tee((S=a==null?void 0:a.current)!==null&&S!==void 0?S:n.current):Bp([(h=a==null?void 0:a.current)!==null&&h!==void 0?h:n.current],{shouldUseInert:!0})}},[l,t.isOpen,n,a]),{popoverProps:ce(c,f),arrowProps:p,underlayProps:d,placement:y,triggerAnchorPoint:b}}var gR=m.createContext(null);function wf(e){let t=ti(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[a,l]=g.useState(!1),i=g.useMemo(()=>({contain:a,setContain:l}),[a,l]),{getContainer:o}=LD();if(!e.portalContainer&&o&&(r=o()),!r)return null;let s=e.children;return e.disableFocusManagement||(s=m.createElement(tv,{restoreFocus:!0,contain:(e.shouldContainFocus||a)&&!n},s)),s=m.createElement(gR.Provider,{value:i},m.createElement(aQ,null,s)),mw.createPortal(s,r)}function mR(){let e=g.useContext(gR),t=e==null?void 0:e.setContain;$e(()=>{t==null||t(!0)},[t])}function nee(e,t,r){let{overlayProps:n,underlayProps:a}=rv({...e,isOpen:t.isOpen,onClose:t.close},r);return ND({isDisabled:!t.isOpen}),mR(),g.useEffect(()=>{if(t.isOpen&&r.current)return Bp([r.current],{shouldUseInert:!0})},[t.isOpen,r]),{modalProps:ce(n),underlayProps:a}}function Uu(e){let[t,r]=Np(e.isOpen,e.defaultOpen||!1,e.onOpenChange),n=g.useCallback(()=>{r(!0)},[r]),a=g.useCallback(()=>{r(!1)},[r]),l=g.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:a,toggle:l}}var aee=1500,F_=500,ol={},lee=0,ns=!1,zn=null,sl=null;function yR(e={}){let{delay:t=aee,closeDelay:r=F_}=e,{isOpen:n,open:a,close:l}=Uu(e),i=g.useMemo(()=>`${++lee}`,[]),o=g.useRef(null),s=g.useRef(l),u=()=>{ol[i]=f},c=()=>{for(let y in ol)y!==i&&(ol[y](!0),delete ol[y])},d=()=>{o.current&&clearTimeout(o.current),o.current=null,c(),u(),ns=!0,a(),zn&&(clearTimeout(zn),zn=null),sl&&(clearTimeout(sl),sl=null)},f=y=>{y||r<=0?(o.current&&clearTimeout(o.current),o.current=null,s.current()):o.current||(o.current=setTimeout(()=>{o.current=null,s.current()},r)),zn&&(clearTimeout(zn),zn=null),ns&&(sl&&clearTimeout(sl),sl=setTimeout(()=>{delete ol[i],sl=null,ns=!1},Math.max(F_,r)))},p=()=>{c(),u(),!n&&!zn&&!ns?zn=setTimeout(()=>{zn=null,ns=!0,d()},t):n||d()};return g.useEffect(()=>{s.current=l},[l]),g.useEffect(()=>()=>{o.current&&clearTimeout(o.current),ol[i]&&delete ol[i]},[i]),{isOpen:n,open:y=>{!y&&t>0&&!o.current?p():d()},close:f}}var nv=g.createContext(null),bR=g.createContext(null);function iee(e){let t=yR(e),r=g.useRef(null),{triggerProps:n,tooltipProps:a}=cQ(e,t,r);return m.createElement(da,{values:[[nv,t],[bR,{...a,triggerRef:r}]]},m.createElement(eQ,{...n,ref:r},e.children))}var oee=g.forwardRef(function({UNSTABLE_portalContainer:e,...t},r){[t,r]=Ut(t,r,bR);let n=g.useContext(nv),a=yR(t),l=t.isOpen!=null||t.defaultOpen!=null||!n?a:n,i=K3(r,l.isOpen)||t.isExiting||!1;return!l.isOpen&&!i?null:m.createElement(XJ,{portalContainer:e},m.createElement(see,{...t,tooltipRef:r,isExiting:i}))});function see(e){let t=g.useContext(nv),r=g.useRef(null),{overlayProps:n,arrowProps:a,placement:l,triggerAnchorPoint:i}=ev({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:r,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),o=j3(e.tooltipRef,!!l)||e.isEntering||!1,s=Cr({...e,defaultClassName:"react-aria-Tooltip",values:{placement:l,isEntering:o,isExiting:e.isExiting,state:t}});e=ce(e,n);let{tooltipProps:u}=uQ(e,t),c=Qe(e,{global:!0});return m.createElement("div",{...ce(c,s,u),ref:e.tooltipRef,style:{...n.style,"--trigger-anchor-point":i?`${i.x}px ${i.y}px`:void 0,...s.style},"data-placement":l??void 0,"data-entering":o||void 0,"data-exiting":e.isExiting||void 0},m.createElement(Q1.Provider,{value:{...a,placement:l,ref:r}},s.children))}var uee=Wt(Kl(),1),av=(0,uee.default)(1e3)(e=>e==="left-end"?"left bottom":e==="right-end"?"right bottom":e==="left-start"?"left top":e==="right-start"?"right top":e.replace("-"," "));R.div({width:500,height:500,paddingTop:100,overflowY:"scroll",background:"#eee",position:"relative"});var cee=g.forwardRef((e,t)=>m.createElement("button",{...e,ref:t,style:{width:120,height:50,margin:10}}));cee.displayName="Trigger";var vR=({triggerOnFocusOnly:e=!1,placement:t="top",offset:r=8,tooltip:n,children:a,defaultVisible:l,startOpen:i,delayShow:o=400,delayHide:s=200,visible:u,onVisibleChange:c,...d})=>{let f=av(t),p=m.Children.only(a);i!==void 0&&UX("The `startOpen` prop is deprecated. Please use `defaultVisible` instead.");let[y,b]=g.useState(l??i??!1),S=g.useCallback(h=>{b(h),c==null||c(h)},[c]);return m.createElement(iee,{delay:o,closeDelay:s,isOpen:u??y,onOpenChange:S,trigger:e?"focus":void 0,...d},m.createElement(tQ,null,m.cloneElement(p,{"aria-describedby":null})),m.createElement(oee,{"data-testid":"tooltip",placement:f,offset:r,onOpenChange:S,style:{outline:"none"},...d},n))},ER=({children:e,disableAllTooltips:t,shortcut:r,tooltip:n})=>{let a=g.useMemo(()=>{var i;let l=((i=document==null?void 0:document.body)==null?void 0:i.getAttribute("data-shortcuts-enabled"))!=="false";if(!(!n&&(!r||!l)))return[n,r&&l&&`[${Kq(r)}]`].filter(Boolean).join(" ")},[r,n]);return a?m.createElement(vR,{placement:"top",tooltip:m.createElement(R3,{note:a}),visible:t?!1:void 0},e):m.createElement(m.Fragment,null,e)};ER.displayName="InteractiveTooltipWrapper";function dee(e=""){let t=e.toLowerCase().trim().replace(/\s+/g,"-");return{ariaDescriptionAttrs:{"aria-describedby":e?t:void 0},AriaDescription:()=>e?m.createElement("span",{id:t,hidden:!0},e):null}}var Ke=g.forwardRef(({as:e="button",asChild:t=!1,animation:r="none",size:n="small",variant:a="outline",padding:l="medium",disabled:i=!1,readOnly:o=!1,active:s,onClick:u,ariaLabel:c,ariaDescription:d=void 0,tooltip:f=void 0,shortcut:p=void 0,disableAllTooltips:y=!1,...b},S)=>{let h=t?FX:e,v;!o&&(c===void 0||c==="")&&(v="ariaLabel",X0(`The 'ariaLabel' prop on 'Button' will become mandatory in Storybook 11. Buttons with text content should set 'ariaLabel={false}' to indicate that they are accessible as-is. Buttons without text content must provide a meaningful 'ariaLabel' for accessibility. The button content is: ${b.children}.`)),s!==void 0&&(v="active",X0("The `active` prop on `Button` is deprecated and will be removed in Storybook 11. Use specialized components like `ToggleButton` or `Select` instead."));let{ariaDescriptionAttrs:E,AriaDescription:x}=dee(d),_=g.useMemo(()=>p?Gq(p):void 0,[p]),[$,C]=g.useState(!1),w=A=>{u&&u(A),r!=="none"&&C(!0)};return g.useEffect(()=>{let A=setTimeout(()=>{$&&C(!1)},1e3);return()=>clearTimeout(A)},[$]),m.createElement(m.Fragment,null,m.createElement(ER,{disableAllTooltips:y,shortcut:p,tooltip:f||(c!==!1?c:void 0)},m.createElement(fee,{"data-deprecated":v,as:h,ref:S,variant:a,size:n,padding:l,$disabled:i||o,"aria-disabled":i||o?"true":void 0,readOnly:o,active:s,animating:$,animation:r,onClick:i||o?void 0:w,"aria-label":!o&&c!==!1?c:void 0,"aria-keyshortcuts":o?void 0:_,...o?{}:E,...b})),m.createElement(x,null))});Ke.displayName="Button";var fee=R("button",{shouldForwardProp:e=>hp(e)})(({theme:e,variant:t,size:r,$disabled:n,readOnly:a,active:l,animating:i,animation:o="none",padding:s})=>({border:0,cursor:a?"inherit":n?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:s==="none"?0:s==="small"&&r==="small"?"0 7px":s==="small"&&r==="medium"?"0 9px":r==="small"?"0 10px":r==="medium"?"0 12px":0,height:r==="small"?"28px":"32px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:n&&!a?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:"1",background:t==="solid"?e.base==="light"?e.color.secondary:It(.18,e.color.secondary):t==="outline"?e.button.background:t==="ghost"&&l?oa(.93,e.barSelectedColor):"transparent",color:t==="solid"?e.color.lightest:t==="outline"?e.input.color:t==="ghost"&&l?e.base==="light"?It(.1,e.color.secondary):e.color.secondary:t==="ghost"?e.textMutedColor:e.input.color,boxShadow:t==="outline"?`${e.button.border} 0 0 0 1px inset`:"none",borderRadius:e.input.borderRadius,flexShrink:0,...!a&&{"&:hover":{color:t==="ghost"?e.color.secondary:void 0,background:(()=>{let u=e.color.secondary;return t==="solid"&&(u=e.base==="light"?cd(.1,e.color.secondary):It(.3,e.color.secondary)),t==="outline"&&(u=e.button.background),t==="ghost"?oa(.86,e.color.secondary):e.base==="light"?It(.02,u):cd(.03,u)})()},"&:active":{color:t==="ghost"?e.color.secondary:void 0,background:(()=>{let u=e.color.secondary;return t==="solid"&&(u=e.color.secondary),t==="outline"&&(u=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?It(.02,u):cd(.03,u)})()},"&:focus-visible":{outline:`2px solid ${Il(e.color.secondary,1)}`,outlineOffset:2,zIndex:"1"},".sb-bar &:focus-visible, .sb-list &:focus-visible":{outlineOffset:0}},"> svg":{flex:"0 0 auto",animation:i&&o!=="none"?`${e.animation[o]} 1000ms ease-out`:""}})),SR=g.forwardRef((e,t)=>(X0("`IconButton` is deprecated and will be removed in Storybook 11, use `Button` instead."),m.createElement(Ke,{ref:t,...e,"data-deprecated":"IconButton"})));SR.displayName="IconButton";var ju=g.forwardRef(({pressed:e,...t},r)=>m.createElement(pee,{role:"switch","aria-checked":e,ref:r,pressed:e,...t}));ju.displayName="ToggleButton";var pee=R(Ke)(({theme:e,variant:t="outline",pressed:r})=>({...r?{...t==="solid"?{background:e.base==="lighten"?It(.1,e.color.secondary):It(.2,e.color.secondary)}:{},...t==="outline"?{background:oa(.94,e.barSelectedColor),boxShadow:`${e.barSelectedColor} 0 0 0 1px inset`,color:e.barSelectedColor}:{},...t==="ghost"?{background:oa(.93,e.barSelectedColor),color:e.base==="light"?It(.1,e.color.secondary):e.color.secondary}:{}}:{}})),xR=R.li(({active:e,theme:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",flex:"0 0 auto",overflow:"hidden",minHeight:32,gap:4,fontSize:t.typography.size.s1,fontWeight:e?t.typography.weight.bold:t.typography.weight.regular,color:e?"var(--listbox-item-active-color)":t.color.defaultText,"--listbox-item-active-color":t.base==="light"?It(.1,t.color.secondary):t.color.secondary,"--listbox-item-muted-color":e?"var(--listbox-item-active-color)":t.color.mediumdark,'&[aria-disabled="true"]':{opacity:.5,cursor:"not-allowed"},'&[aria-selected="true"]':{color:"var(--listbox-item-active-color)",fontWeight:t.typography.weight.bold,"--listbox-item-muted-color":"var(--listbox-item-active-color)"},"&:not(:hover, :has(:focus-visible)) :not(input) + input":{position:"absolute",opacity:0},'&[role="option"]':{cursor:"pointer",borderRadius:t.input.borderRadius,outlineOffset:-2,padding:"0 9px",gap:8,"&:hover":{background:oa(.86,t.color.secondary)},"&:focus-visible":{outline:`2px solid ${t.color.secondary}`}},"@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transitionBehavior:"allow-discrete",transitionDuration:"var(--transition-duration, 0.2s)",transitionProperty:"opacity, block-size, content-visibility"},"@media (prefers-reduced-motion: reduce)":{transition:"none"}}),({transitionStatus:e})=>{switch(e){case"preEnter":case"exiting":case"exited":return{opacity:0,blockSize:0,contentVisibility:"hidden"};default:return{opacity:1,blockSize:"auto",contentVisibility:"visible"}}}),hee=R(xR)(({targetId:e})=>({gap:0,[`& [data-target-id="${e}"]`]:{inlineSize:"auto",marginLeft:4,opacity:1,"@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transitionProperty:"inline-size, margin-left, opacity, padding-inline",transitionDuration:"var(--transition-duration, 0.2s)"}},[`&:not(:hover, :has(:focus-visible)) [data-target-id="${e}"]`]:{inlineSize:0,marginLeft:0,opacity:0,paddingInline:0}})),gee=R(Ke)(({size:e})=>({gap:e==="small"?6:8,"&:focus-visible":{outlineOffset:-2}})),mee=R(ju)({"&:focus-visible":{outlineOffset:-2}}),$R=g.forwardRef(function({padding:e="small",size:t="medium",variant:r="ghost",...n},a){return m.createElement(gee,{...n,variant:r,padding:e,size:t,ref:a})}),yee=g.forwardRef(function({padding:e="small",size:t="medium",variant:r="ghost",...n},a){return m.createElement(mee,{...n,variant:r,padding:e,size:t,ref:a})}),_R=R($R)(({theme:e})=>({height:"auto",minHeight:32,flex:"0 1 100%",textAlign:"start",justifyContent:"space-between",fontWeight:"inherit",color:"inherit","&:hover":{color:"inherit"},"& input:enabled:focus-visible":{outline:"none"},"&:has(input:focus-visible)":{outline:`2px solid ${e.color.secondary}`,outlineOffset:-2}})),bee=e=>m.createElement(_R,{as:"a",...e}),vee=R.div(({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"center",flexGrow:1,minWidth:0,padding:"8px 0",lineHeight:"16px","& > *":{margin:0,whiteSpace:"normal"},"& > span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& small":{fontSize:"inherit",color:e.textMutedColor},"&:first-child":{paddingLeft:8},"&:last-child":{paddingRight:8},'button > &:first-child, [role="option"] > &:first-child':{paddingLeft:0},'button > &:last-child, [role="option"] > &:last-child':{paddingRight:0}})),Eee=R.div({display:"flex",alignItems:"center",justifyContent:"center",flex:"0 0 14px",width:14,height:14,color:"var(--listbox-item-muted-color)"}),xd=Object.assign(R.ul(({theme:e,onClick:t})=>({listStyle:"none",margin:0,padding:4,cursor:t?"pointer":"default","& + *":{borderTop:`1px solid ${e.appBorderColor}`}})),{Item:xR,HoverItem:hee,Button:$R,Toggle:yee,Action:_R,Link:bee,Text:vee,Icon:Eee}),B_=R.div(({collapsed:e=!1})=>({blockSize:e?0:"auto",contentVisibility:e?"hidden":"visible",transform:e?"translateY(-10px)":"translateY(0)",opacity:e?0:1,overflow:"hidden","@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transition:"all var(--transition-duration, 0.2s)",transitionBehavior:"allow-discrete"},"@media (prefers-reduced-motion: reduce)":{transition:"none"}}));Object.assign(function({children:e,summary:t,collapsed:r,disabled:n,initialCollapsed:a,storageKey:l,state:i,...o}){let s=xee({collapsed:r,disabled:n,initialCollapsed:a,storageKey:l}),u=i||s;return m.createElement(m.Fragment,null,typeof t=="function"?t(u):t,m.createElement(B_,{...o,id:u.contentId,collapsed:u.isCollapsed,"aria-hidden":u.isCollapsed},typeof e=="function"?e(u):e))},{Content:B_});var See=(e,t)=>{let[r,n]=g.useState(()=>{try{return JSON.parse(sessionStorage.getItem(e))??t}catch{return t}});return g.useEffect(()=>{try{e&&sessionStorage.setItem(e,JSON.stringify(r))}catch{}},[e,r]),[r,n]},xee=({collapsed:e,disabled:t,initialCollapsed:r=e,storageKey:n})=>{let[a,l]=See(n&&`useCollapsible:${n}`,!!r);g.useEffect(()=>{e!==void 0&&l(e)},[e,l]);let i=g.useCallback(s=>{s==null||s.stopPropagation(),t||l(u=>!u)},[t,l]),o=Mt();return{contentId:o,isCollapsed:a,isDisabled:!!t,setCollapsed:l,toggleCollapsed:i,toggleProps:{disabled:t,onClick:i,"aria-controls":o,"aria-expanded":!a}}},$ee=_t({"0%":{opacity:0},"5%":{opacity:1},"25%":{opacity:1},"30%":{opacity:0}}),_ee=_t({"0%":{transform:"rotate(0deg)"},"10%":{transform:"rotate(10deg)"},"40%":{transform:"rotate(170deg)"},"50%":{transform:"rotate(180deg)"},"60%":{transform:"rotate(190deg)"},"90%":{transform:"rotate(350deg)"},"100%":{transform:"rotate(360deg)"}}),Cee=_t({to:{backgroundPositionX:"36%"}}),P_=R.div(({theme:e})=>({borderRadius:e.appBorderRadius,backgroundColor:e.background.content,position:"relative"})),I_=R.div(({animation:e="none",color:t,theme:r})=>({position:"relative",width:"100%",padding:1,overflow:"hidden",backgroundColor:r.background.content,borderRadius:r.appBorderRadius+1,boxShadow:`inset 0 0 0 1px ${e==="none"&&t&&r.color[t]||r.appBorderColor}, var(--card-box-shadow, transparent 0 0)`,transition:"box-shadow 1s","@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transition:"all var(--transition-duration, 0.2s), box-shadow 1s",transitionBehavior:"allow-discrete"},"@media (prefers-reduced-motion: reduce)":{transition:"box-shadow 1s"},"&:before":{content:'""',display:e==="none"?"none":"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",opacity:1,...e==="rainbow"&&{animation:`${Cee} 10s infinite linear, ${$ee} 60s infinite linear`,backgroundImage:"linear-gradient(45deg,rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181), rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181))",backgroundSize:"1000%",backgroundPositionX:"100%"},...e==="spin"&&{left:"50%",top:"50%",marginLeft:"calc(max(100vw, 100vh) * -0.5)",marginTop:"calc(max(100vw, 100vh) * -0.5)",height:"max(100vw, 100vh)",width:"max(100vw, 100vh)",animation:`${_ee} 3s linear infinite`,backgroundImage:t==="negative"?"conic-gradient(transparent 90deg, #FC521F 150deg, #FFAE00 210deg, transparent 270deg)":"conic-gradient(transparent 90deg, #029CFD 150deg, #37D5D3 210deg, transparent 270deg)"}}}));Object.assign(g.forwardRef(function({outlineAnimation:e="none",outlineColor:t,outlineAttrs:r={},...n},a){return m.createElement(I_,{animation:e,color:t,ref:a,...r},m.createElement(P_,{...n}))}),{Content:P_,Outline:I_});const{deprecate:Gg}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Tee=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],CR=e=>({_s:e,status:Tee[e],isEnter:e<3,isMounted:e!==6,isResolved:e===2||e>4}),gy=e=>e?6:5,wee=(e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return gy(t)}},Aee=e=>typeof e=="object"?[e.enter,e.exit]:[e,e],Oee=(e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0),k_=(e,t,r,n,a)=>{clearTimeout(n.current);let l=CR(e);t(l),r.current=l,a&&a({current:l})},Dee=({enter:e=!0,exit:t=!0,preEnter:r,preExit:n,timeout:a,initialEntered:l,mountOnEnter:i,unmountOnExit:o,onStateChange:s}={})=>{let[u,c]=g.useState(()=>CR(l?2:gy(i))),d=g.useRef(u),f=g.useRef(),[p,y]=Aee(a),b=g.useCallback(()=>{let h=wee(d.current._s,o);h&&k_(h,c,d,f,s)},[s,o]),S=g.useCallback(h=>{let v=x=>{switch(k_(x,c,d,f,s),x){case 1:p>=0&&(f.current=setTimeout(b,p));break;case 4:y>=0&&(f.current=setTimeout(b,y));break;case 0:case 3:f.current=Oee(v,x);break}},E=d.current.isEnter;typeof h!="boolean"&&(h=!E),h?!E&&v(e?r?0:1:2):E&&v(t?n?3:4:gy(o))},[b,s,e,t,r,n,p,y,o]);return[u,S,b]};function Ree(e){let t=l=>typeof window<"u"?window.matchMedia(l).matches:!1,[r,n]=g.useState(t(e));function a(){n(t(e))}return g.useEffect(()=>{let l=window.matchMedia(e);return a(),l.addEventListener("change",a),()=>{l.removeEventListener("change",a)}},[e]),r}var TR={};Ft(TR,{Actions:()=>Vee,Close:()=>Pp,CloseButton:()=>Hee,Col:()=>MR,Container:()=>NR,Content:()=>Uee,Description:()=>Gee,Dialog:()=>zee,Error:()=>Yee,ErrorWrapper:()=>FR,Header:()=>jee,Overlay:()=>RR,Row:()=>LR,Title:()=>Kee});const{deprecate:wR}=__STORYBOOK_MODULE_CLIENT_LOGGER__;g.createContext(null);g.createContext(null);g.createContext(null);g.createContext(null);g.createContext(null);var AR=g.createContext({}),Nee=g.forwardRef(function(e,t){[e,t]=Ut(e,t,AR);let{children:r,level:n=3,className:a,...l}=e,i=`h${n}`;return m.createElement(i,{...l,ref:t,className:a??"react-aria-Heading"},r)}),OR=g.createContext({}),Lee=g.forwardRef(function(e,t){[e,t]=Ut(e,t,OR);let{elementType:r="span",...n}=e;return m.createElement(r,{className:"react-aria-Text",...n,ref:t})}),DR=_t({from:{opacity:0},to:{opacity:1}}),Mee=_t({from:{opacity:1},to:{opacity:0}}),Fee=_t({from:{maxHeight:0},to:{}}),Bee=_t({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),Pee=_t({from:{opacity:1,transform:"translate(-50%, -50%) scale(1)"},to:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"}}),Iee=_t({from:{opacity:0,maxHeight:"0px"},to:{opacity:1,maxHeight:"80vh"}}),kee=_t({from:{opacity:1,maxHeight:"80vh"},to:{opacity:0,maxHeight:"0px"}}),RR=R.div(({$status:e,$transitionDuration:t})=>({backdropFilter:"blur(24px)",background:"rgba(0, 0, 0, 0.4)",position:"absolute",inset:0,width:"100%",height:"100%",zIndex:1e5,"@media (prefers-reduced-motion: no-preference)":{animation:e==="exiting"||e==="preExit"?`${Mee} ${t}ms`:`${DR} ${t}ms`,animationFillMode:"forwards"}})),NR=R.div(({theme:e})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:"0px 4px 67px 0px #00000040",position:"absolute",overflow:"auto",zIndex:1e5,"&:focus-visible":{outline:"none"}}),({theme:e,width:t,height:r,$variant:n,$status:a,$transitionDuration:l})=>n==="dialog"?{top:"50%",left:"50%",width:t??740,height:r??"auto",maxWidth:"calc(100% - 40px)",maxHeight:"85vh","@media (prefers-reduced-motion: no-preference)":{willChange:"transform, opacity",animationTimingFunction:"cubic-bezier(0.32, 0.72, 0, 1)",animation:a==="exiting"||a==="preExit"?`${Pee} ${l}ms`:`${Bee} ${l}ms`,animationFillMode:"forwards !important"},"@media (prefers-reduced-motion: reduce)":{transform:"translate(-50%, -50%) scale(1)"}}:{bottom:"0",left:"0",right:"0",borderRadius:"10px 10px 0 0",overflow:"hidden",width:t??"100%",height:r??"80%",maxWidth:"100%",background:e.background.content,"@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords"},"@media (prefers-reduced-motion: no-preference)":{animationTimingFunction:"cubic-bezier(.9,.16,.77,.64)",animation:a==="exiting"||a==="preExit"?`${kee} ${l}ms`:`${Iee} ${l}ms`,animationFillMode:"forwards !important"}}),Pp=({asChild:e,children:t,onClick:r,...n})=>{let{close:a}=g.useContext(BR);if(e&&m.isValidElement(t)){let l=i=>{var o,s;r==null||r(i),(s=(o=t.props).onClick)==null||s.call(o,i),a==null||a()};return m.cloneElement(t,{...n,onClick:l})}return m.createElement(Ke,{type:"button",padding:"small",ariaLabel:"Close modal",variant:"ghost",shortcut:["Escape"],onClick:a},m.createElement(GO,null))},zee={Close:()=>(wR("Modal.Dialog.Close is deprecated, please use Modal.Close instead."),m.createElement(Pp,{"data-deprecated":"Modal.Dialog.Close"}))},Hee=({ariaLabel:e,...t})=>(wR("Modal.CloseButton is deprecated, please use Modal.Close instead."),m.createElement(Pp,{asChild:!0},m.createElement(Ke,{ariaLabel:e||"Close","data-deprecated":"Modal.CloseButton",...t},m.createElement(GO,null)))),Uee=R.div({display:"flex",flexDirection:"column",margin:16,gap:16}),LR=R.div({display:"flex",justifyContent:"space-between",gap:16}),MR=R.div({display:"flex",flexDirection:"column",gap:4}),jee=({hasClose:e=!0,onClose:t,...r})=>m.createElement(LR,null,m.createElement(MR,{...r}),e&&m.createElement(Pp,{onClick:t})),Kee=R(e=>m.createElement(Nee,{level:2,...e}))(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),Gee=R(Lee)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),Vee=R.div({display:"flex",flexDirection:"row-reverse",gap:8}),FR=R.div(({theme:e})=>({maxHeight:100,overflow:"auto","@media (prefers-reduced-motion: no-preference)":{animation:`${Fee} 300ms, ${DR} 300ms`},backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),Yee=({children:e,...t})=>m.createElement(FR,{...t},m.createElement("div",null,e)),BR=g.createContext({});function qee({container:e,portalSelector:t,children:r,width:n,height:a,ariaLabel:l,dismissOnClickOutside:i=!0,dismissOnEscape:o=!0,className:s,open:u,onEscapeKeyDown:c,onInteractOutside:d,onOpenChange:f,defaultOpen:p,transitionDuration:y=200,variant:b="dialog",...S}){let h;(l===void 0||l==="")&&(h="ariaLabel",Gg("The `ariaLabel` prop on `Modal` will become mandatory in Storybook 11.")),c!==void 0&&(h="onEscapeKeyDown",Gg("The `onEscapeKeyDown` prop is deprecated and will be removed in Storybook 11. Use `dismissOnEscape` instead.")),d!==void 0&&(h="onInteractOutside",Gg("The `onInteractOutside` prop is deprecated and will be removed in Storybook 11. Use `dismissOnInteractOutside` instead."));let v=g.useRef(null),E=Ree("(prefers-reduced-motion: reduce)"),[{status:x,isMounted:_},$]=Dee({timeout:E?0:y,mountOnEnter:!0,unmountOnExit:!0}),C=Uu({isOpen:u||_,defaultOpen:p,onOpenChange:P=>{$(P),f==null||f(P)}}),w=()=>{C.close()},{modalProps:A,underlayProps:O}=nee({isDismissable:i,isKeyboardDismissDisabled:!0,shouldCloseOnInteractOutside:d?P=>{let I=new MouseEvent("click",{bubbles:!0,cancelable:!0,relatedTarget:P});return d(I),!I.defaultPrevented}:void 0},C,v);if(g.useEffect(()=>{let P=u??p??!1;P&&!_?$(!0):!P&&_&&$(!1)},[u,p,_,$]),g.useEffect(()=>{_&&(u||p)&&(f==null||f(!0))},[_]),g.useEffect(()=>{if(_&&(u||p)&&v.current)return Bp([v.current],{shouldUseInert:!0})},[_,u,p,v]),!_||x==="exited"||x==="unmounted")return null;let T=ce(A,{onKeyDown:P=>{var I;P.key!=="Escape"?(I=A.onKeyDown)==null||I.call(A,P):o&&(c==null||c(P.nativeEvent),P.nativeEvent.defaultPrevented||w())}}),M=e??(t?document.querySelector(t):void 0);return m.createElement(wf,{disableFocusManagement:!0,portalContainer:M||void 0},m.createElement(tv,{restoreFocus:!0,contain:!0,autoFocus:!0},m.createElement(RR,{$status:x,$transitionDuration:y,...O}),m.createElement("div",{role:"dialog","aria-label":l,ref:v,...T},m.createElement(BR.Provider,{value:{close:w}},m.createElement("div",{tabIndex:-1},m.createElement(NR,{"data-deprecated":h,$variant:b,$status:x,$transitionDuration:y,className:s,width:n,height:a,...S},r))))))}Object.assign(qee,TR);R.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${df}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${df}`]:{marginTop:0}},({theme:e,outer:t,col:r,row:n})=>{switch(!0){case!!(t&&r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&n):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}});R.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));R.div();R.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1}));function Wee(e,t){var r=g.useRef(null),n=g.useRef(null);n.current=t;var a=g.useRef(null);g.useEffect(function(){l()});var l=g.useCallback(function(){var i=a.current,o=n.current,s=i||(o?o instanceof Element?o:o.current:null);r.current&&r.current.element===s&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:s,subscriber:e,cleanup:s?e(s):void 0})},[e]);return g.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),g.useCallback(function(i){a.current=i,l()},[l])}function z_(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:t==="contentBoxSize"?e.contentRect[r==="inlineSize"?"width":"height"]:void 0}function PR(e){e===void 0&&(e={});var t=e.onResize,r=g.useRef(void 0);r.current=t;var n=e.round||Math.round,a=g.useRef(),l=g.useState({width:void 0,height:void 0}),i=l[0],o=l[1],s=g.useRef(!1);g.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var u=g.useRef({width:void 0,height:void 0}),c=Wee(g.useCallback(function(d){return(!a.current||a.current.box!==e.box||a.current.round!==n)&&(a.current={box:e.box,round:n,instance:new ResizeObserver(function(f){var p=f[0],y=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",b=z_(p,y,"inlineSize"),S=z_(p,y,"blockSize"),h=b?n(b):void 0,v=S?n(S):void 0;if(u.current.width!==h||u.current.height!==v){var E={width:h,height:v};u.current.width=h,u.current.height=v,r.current?r.current(E):s.current||o(E)}})}),a.current.instance.observe(d,{box:e.box}),function(){a.current&&a.current.instance.unobserve(d)}},[e.box,n]),e.ref);return g.useMemo(function(){return{ref:c,width:i.width,height:i.height}},[c,i.width,i.height])}var Xee=R.div(({centered:e=!1,scale:t=1,elementHeight:r})=>({height:r||"auto",transformOrigin:e?"center top":"left top",transform:`scale(${1/t})`}));function Zee({centered:e,scale:t,children:r}){let n=g.useRef(null),[a,l]=g.useState(0),i=g.useCallback(({height:o})=>{o&&l(o/t)},[t]);return g.useEffect(()=>{n.current&&l(n.current.getBoundingClientRect().height)},[t]),PR({ref:n,onResize:i}),m.createElement(Xee,{centered:e,scale:t,elementHeight:a},m.createElement("div",{ref:n,className:"innerZoomElementWrapper"},r))}var IR={Element:Zee};const{global:Qee}=__STORYBOOK_MODULE_GLOBAL__;var{document:Jee}=Qee,ete=R.strong(({theme:e})=>({color:e.color.orange})),tte=R.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),H_=R.em(({theme:e})=>({color:e.textMutedColor})),rte=/(Error): (.*)\n/,nte=/at (?:(.*) )?\(?(.+)\)?/,ate=/([^@]+)?(?:\/<)?@(.+)?/,lte=/([^@]+)?@(.+)?/,kR=({error:e})=>{if(!e)return m.createElement(g.Fragment,null,"This error has no stack or message");if(!e.stack)return m.createElement(g.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message}
  614. ${t}`);let r=t.match(rte);if(!r)return m.createElement(g.Fragment,null,t);let[,n,a]=r,l=t.split(/\n/).slice(1),[,...i]=l.map(o=>{let s=o.match(nte)||o.match(ate)||o.match(lte);return s?{name:(s[1]||"").replace("/<",""),location:s[2].replace(Jee.location.origin,"")}:null}).filter(Boolean);return m.createElement(g.Fragment,null,m.createElement("span",null,n),": ",m.createElement(ete,null,a),m.createElement("br",null),i.map((o,s)=>o!=null&&o.name?m.createElement(g.Fragment,{key:s}," ","at ",m.createElement(tte,null,o.name)," (",m.createElement(H_,null,o.location),")",m.createElement("br",null)):m.createElement(g.Fragment,{key:s}," ","at ",m.createElement(H_,null,o==null?void 0:o.location),m.createElement("br",null))))},ite=R.input(({theme:e})=>({appearance:"none",backgroundColor:e.input.background,border:`1px solid ${e.base==="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,borderRadius:2,display:"grid",flexShrink:0,height:14,margin:0,placeContent:"center",transition:"background-color 0.1s",width:14,"&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:"transparent",borderColor:e.input.border},"&:disabled:checked, &:disabled:indeterminate":{backgroundColor:e.base==="dark"?ne.dark:e.color.mediumdark},"&:checked, &:indeterminate":{border:"none",backgroundColor:ne.secondary},"&:checked::before":{content:'""',width:14,height:14,background:`no-repeat center url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='m3 7 2.5 2.5L11 4'/%3E%3C/svg%3E")`},"&:indeterminate::before":{content:'""',width:8,height:2,background:"white"},"&:enabled:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:2}})),ote=e=>m.createElement(ite,{...e,type:"checkbox"}),ste=R.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),ute=R.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),cte=({label:e,children:t,...r})=>m.createElement(ste,{...r},e?m.createElement(ute,null,m.createElement("span",null,e)):null,t),lv=({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};default:return{display:"inline"}}},zR=({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};default:return{textAlign:"left"}}},HR=({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};default:return{}}},dte={appearance:"none",border:"0 none",boxSizing:"inherit",display:"block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},iv=({theme:e})=>({...dte,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none","@media (forced-colors: active)":{outline:"1px solid highlight"}},'&[disabled], &[aria-disabled="true"]':{background:e.base==="light"?e.color.lighter:"transparent",cursor:"not-allowed"},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}}),fte=R.div({position:"relative",width:"100%"}),pte=R.div(({theme:e})=>({position:"absolute",left:0,right:0,top:0,bottom:0,display:"flex",alignItems:"center",pointerEvents:"none",overflow:"hidden",color:e.textMutedColor,"span:first-of-type":{opacity:0}}),e=>{let{fontSize:t,lineHeight:r,padding:n}=iv(e);return{fontSize:t,lineHeight:r,padding:n}}),hte=Object.assign(R(g.forwardRef(function({size:e,valid:t,align:r,value:n,suffix:a,...l},i){let o=Mt();return m.createElement(fte,null,m.createElement("input",{...l,value:n,ref:i,"aria-describedby":a?o:void 0}),a&&m.createElement(pte,{"aria-hidden":!0},m.createElement("span",null,n),m.createElement("span",{id:o},a)))}))(iv,lv,zR,HR,{minHeight:32,width:"100%"}),{displayName:"Input"}),gte=R.input(({theme:e})=>({appearance:"none",backgroundColor:e.input.background,border:`1px solid ${e.base==="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,borderRadius:8,display:"grid",flexShrink:0,height:16,margin:-1,placeContent:"center",transition:"background-color 0.1s",width:16,"&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:"transparent",borderColor:e.input.border},"&:disabled:checked":{backgroundColor:e.base==="dark"?ne.dark:e.color.mediumdark,borderColor:e.base==="dark"?ne.dark:e.color.mediumdark},"&:checked":{backgroundColor:ne.secondary,borderColor:ne.secondary,boxShadow:`inset 0 0 0 2px ${e.input.background}`},"&:enabled:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:2}})),mte=e=>m.createElement(gte,{...e,type:"radio"}),yte=R.select(lv,({theme:e})=>({appearance:"none",background:`calc(100% - 12px) center no-repeat url("data:image/svg+xml,%3Csvg width='8' height='4' viewBox='0 0 8 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.30303 0.196815C1.13566 0.0294472 0.864304 0.0294472 0.696937 0.196815C0.529569 0.364182 0.529569 0.635539 0.696937 0.802906L3.69694 3.80291C3.8643 3.97027 4.13566 3.97027 4.30303 3.80291L7.30303 0.802906C7.4704 0.635539 7.4704 0.364182 7.30303 0.196815C7.13566 0.0294473 6.8643 0.0294473 6.69694 0.196815L3.99998 2.89377L1.30303 0.196815Z' fill='%2373828C'/%3E%3C/svg%3E%0A")`,backgroundSize:10,padding:"6px 30px 6px 10px","@supports (appearance: base-select)":{appearance:"base-select",background:e.input.background,padding:"6px 10px"},transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",boxSizing:"border-box",border:"none",cursor:"pointer","& > button":{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",gap:8,"& > svg":{width:14,height:14,color:e.textMutedColor}},"&:has(option:not([hidden]):checked)":{color:e.color.defaultText},"&:focus-visible, &:focus-within":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset`},"&::picker-icon":{display:"none"},"&::picker(select)":{appearance:"base-select",border:`1px solid ${e.input.border}`,padding:4,marginTop:4,background:e.base==="light"?Wb(e.background.app):e.background.app,filter:`
  615. drop-shadow(0 5px 5px rgba(0,0,0,0.05))
  616. drop-shadow(0 0 3px rgba(0,0,0,0.1))
  617. `,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}}})),bte=({children:e,...t})=>m.createElement(yte,{...t},!e7()&&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)),vte=g.useLayoutEffect,Ete=function(e){var t=m.useRef(e);return vte(function(){t.current=e}),t},U_=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},Ste=function(e,t){var r=m.useRef();return m.useCallback(function(n){e.current=n,r.current&&U_(r.current,null),r.current=t,t&&U_(t,n)},[t])},j_={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},xte=function(e){Object.keys(j_).forEach(function(t){e.style.setProperty(t,j_[t],"important")})},K_=xte,Gt=null,G_=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function $te(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),Gt||(Gt=document.createElement("textarea"),Gt.setAttribute("tabindex","-1"),Gt.setAttribute("aria-hidden","true"),K_(Gt)),Gt.parentNode===null&&document.body.appendChild(Gt);var a=e.paddingSize,l=e.borderSize,i=e.sizingStyle,o=i.boxSizing;Object.keys(i).forEach(function(f){var p=f;Gt.style[p]=i[p]}),K_(Gt),Gt.value=t;var s=G_(Gt,e);Gt.value=t,s=G_(Gt,e),Gt.value="x";var u=Gt.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 V_=function(){},_te=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},Cte=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],Tte=!!document.documentElement.currentStyle,wte=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=_te(Cte,t),n=r.boxSizing;if(n==="")return null;Tte&&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}},Ate=wte;function ov(e,t,r){var n=Ete(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 Ote=function(e,t){ov(document.body,"reset",function(r){e.current.form===r.target&&t(r)})},Dte=function(e){ov(window,"resize",e)},Rte=function(e){ov(document.fonts,"loadingdone",e)},Nte=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],Lte=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,a=e.minRows,l=e.onChange,i=l===void 0?V_:l,o=e.onHeightChange,s=o===void 0?V_:o,u=vz(e,Nte),c=u.value!==void 0,d=g.useRef(null),f=Ste(d,t),p=g.useRef(0),y=g.useRef(),b=function(){var h=d.current,v=r&&y.current?y.current:Ate(h);if(v){y.current=v;var E=$te(v,h.value||h.placeholder||"x",a,n),x=E[0],_=E[1];p.current!==x&&(p.current=x,h.style.setProperty("height",x+"px","important"),s(x,{rowHeight:_}))}},S=function(h){c||b(),i(h)};return g.useLayoutEffect(b),Ote(d,function(){if(!c){var h=d.current.value;requestAnimationFrame(function(){var v=d.current;v&&h!==v.value&&b()})}}),Dte(b),Rte(b),g.createElement("textarea",Lt({},u,{onChange:S,ref:f}))},Mte=g.forwardRef(Lte),Fte=Object.assign(R(g.forwardRef(function({size:e,valid:t,align:r,...n},a){return m.createElement(Mte,{...n,ref:a})}))(iv,lv,zR,HR,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),ri=Object.assign(R.form({boxSizing:"border-box",width:"100%"}),{Field:cte,Input:hte,Select:bte,Textarea:Fte,Button:Ke,Checkbox:ote,Radio:mte}),Bte=R.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:`
  618. drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
  619. drop-shadow(0 1px 3px rgba(0,0,0,0.1))
  620. `,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t==="default"&&{background:e.base==="light"?Wb(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`]}),Pte=R(Ke)({position:"absolute",top:4,right:4}),Ku=g.forwardRef(({children:e,color:t="default",hasChrome:r=!0,hideLabel:n="Close",onHide:a,padding:l=8,...i},o)=>m.createElement(Bte,{bgColor:t,hasChrome:r,hasCloseButton:!!a,padding:l,ref:o,...i},e,a&&m.createElement(Pte,{ariaLabel:n,onClick:a,padding:"small",variant:"ghost",size:"small"},m.createElement(Az,null))));Ku.displayName="Popover";var UR=({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(xd.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(xd.Icon,null,n),m.createElement(xd.Text,null,m.createElement("p",null,t),r&&m.createElement("small",null,r)),a));UR.displayName="SelectOption";var kc=5,jR=Symbol.for("undefined");function Ite(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"}function my(e){return{...e,type:"option",value:$d(e.value)}}function Vg(e){return"type"in e&&e.type==="reset"?e:my(e)}function as(e){if(e!==jR)return e}function $d(e){return e===void 0?jR:e}var kte=R("ul")({minWidth:180,height:"100%",borderRadius:6,overflow:"hidden auto",listStyle:"none",margin:0,padding:4});function Y_(e,{value:t}){return`${e}-opt-${String(t)??"sb-reset"}`}var zte=R.span(({theme:e})=>({appearance:"none",color:e.textMutedColor,fontSize:12}));function q_(e,t){return t===void 0?[]:Ite(t)?e.filter(r=>r.value===t).map(my):e.filter(r=>t.some(n=>r.value===n)).map(my)}var Hte=R(Ke)(({$isOpen:e,$hasSelection:t,theme:r})=>e||t?{boxShadow:"none",background:oa(.93,r.barSelectedColor),color:r.base==="light"?It(.1,r.color.secondary):r.color.secondary}:{}),Ute=R.div({position:"fixed",inset:0,zIndex:1e3}),jte=({children:e,handleClose:t,triggerRef:r})=>{let n=m.useRef(null);nD({ref:n,onInteractOutside:t}),g.useEffect(()=>{if(n.current)return Bp([n.current],{shouldUseInert:!0})},[]);let{overlayProps:a}=ev({targetRef:r,overlayRef:n,placement:"bottom start",offset:8,maxHeight:504,isOpen:!0}),{overlayProps:l,underlayProps:i}=rv({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},n),o=fp();return a.style={...a.style,overflow:"hidden auto",scrollbarColor:`${o.barTextColor} transparent`,scrollbarWidth:"thin"},m.createElement(wf,{disableFocusManagement:!0,...l},m.createElement(Ute,{...i}),m.createElement(Ku,{hasChrome:!0,ref:n,padding:0,...a},e))},KR=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:y=!0,...b},S)=>{var J;let[h,v]=g.useState(b.defaultOpen||!1),[E,x]=g.useState(!1),_=un(S),$=g.useMemo(()=>"select-"+Math.random().toString(36).substring(2,15),[]),C=`${$}-listbox`,w=g.useRef(null),A=Uu({isOpen:h&&!r,onOpenChange:v}),O=g.useCallback(()=>{v(!1),x(!0)},[]);g.useEffect(()=>{var j;!A.isOpen&&E&&((j=_.current)==null||j.focus(),x(!1))},[A.isOpen,E,_]);let[T,M]=g.useState(q_(n,a)),P=g.useCallback(j=>{j.type==="reset"?(d==null||d([]),i==null||i(),M([])):M(l?X=>{let te=[];return X!=null&&X.some(F=>F.value===j.value)?(c==null||c(as(j.value)),te=(X==null?void 0:X.filter(F=>F.value!==j.value))??[]):(u==null||u(as(j.value)),te=[...X??[],j]),d==null||d(te.map(F=>as(F.value))),te}:X=>X.every(te=>te.value!==j.value)?(u==null||u(as(j.value)),d==null||d([as(j.value)]),[j]):X)},[l,d,u,c,i]),I=g.useMemo(()=>i?{type:"reset",value:void 0,title:s??"Reset selection",icon:m.createElement(Iz,null),description:void 0,children:void 0}:void 0,[i,s]),H=g.useMemo(()=>I?[I,...n]:n,[n,I]);g.useEffect(()=>{a&&M(q_(n,a))},[a,n]);let[L,D]=g.useState(void 0),N=g.useCallback((j,X=!0)=>{D(Vg(j)),!l&&X&&P(Vg(j))},[l,P]),U=g.useCallback((j=1)=>{if(!h||!L){N(H[j===1?0:Math.min(j,H.length-1)]);return}let X=H.findIndex(z=>L.type==="reset"?"type"in z&&z.type==="reset":$d(z.value)===L.value),te=X+j,F;te>=H.length&&X===H.length-1?F=H[0]:F=H[Math.min(H.length-1,te)],N(F)},[h,L,N,H]),B=g.useCallback((j=1)=>{if(!h||!L){N(H[Math.max(0,H.length-j)]);return}let X=H.findIndex(z=>L.type==="reset"?"type"in z&&z.type==="reset":$d(z.value)===L.value),te=X-j,F;te<0&&X===0?F=H[H.length-1]:F=H[Math.max(0,te)],N(F)},[h,L,N,H]),G=g.useCallback(j=>{let X=K=>{j.preventDefault(),N(H[K]),v(!0)},te=H.findIndex(K=>T.some(k=>k.value===$d(K.value))),F=te!==-1,z=I&&!F?1:0,q=H.length-1;j.key==="Enter"||j.key===" "?X(F?Math.min(te,q):z):j.key==="ArrowDown"?X(F?Math.min(te+1,q):z):j.key==="ArrowUp"?X(F?Math.max(te-1,z):q):j.key==="Home"?X(z):j.key==="End"?X(q):j.key==="PageDown"?X(Math.min((F?te:z)+kc,q)):j.key==="PageUp"&&X(Math.max(0,(F?te:q)-kc))},[H,I,N,T]),V=g.useCallback(j=>{j.key!=="Tab"?j.preventDefault():O(),j.key==="Escape"?O():j.key==="ArrowDown"?U():j.key==="ArrowUp"?B():j.key==="Home"?N(H[0]):j.key==="End"?N(H[H.length-1]):j.key==="PageDown"?U(kc):j.key==="PageUp"&&B(kc)},[O,U,B,H,N]);g.useEffect(()=>{var j;if(h&&L){let X=document.getElementById(Y_($,L));X&&(X.scrollIntoView({block:"nearest"}),X.focus())}else h&&((j=w.current)==null||j.focus())},[h,L,$]);let Z=g.useMemo(()=>T.length===1?`${p} ${T[0].title}`:T.length?`${p}, ${T.length} values selected`:p,[p,T]);return m.createElement(m.Fragment,null,m.createElement(Hte,{...b,variant:"ghost",ariaLabel:Z,tooltip:f??p,disableAllTooltips:h,id:$,ref:_,padding:o,$isOpen:h,$hasSelection:!!T.length,"aria-disabled":r,disabled:r,onClick:()=>{h?O():v(!0)},tabIndex:h?-1:0,onKeyDown:G,role:"button","aria-controls":h?C:void 0,"aria-expanded":h,"aria-haspopup":"listbox"},!l&&m.createElement(m.Fragment,null,t,y&&((J=T[0])==null?void 0:J.title)||e),l&&m.createElement(m.Fragment,null,t,e,!!T.length&&m.createElement(zte,{"aria-label":`${T.length} ${T.length>1?"items":"item"} selected`},T==null?void 0:T.length))),A.isOpen&&m.createElement(jte,{handleClose:O,triggerRef:_},m.createElement(kte,{"aria-label":p,role:"listbox",id:C,ref:w,"aria-multiselectable":l,onKeyDown:V,tabIndex:h?0:-1},H.map(j=>({option:Vg(j),externalOption:j})).map(({externalOption:j,option:X})=>{let te=(T==null?void 0:T.some(z=>z.value===X.value))&&X!==I,F=X===I;return m.createElement(UR,{key:X.value===void 0?"sb-reset":String(X.value),title:X.title,description:X.description,aside:X.aside,icon:!F&&l?m.createElement(ri.Checkbox,{checked:te,hidden:!0,role:"presentation"}):X.icon,id:Y_($,X),isActive:h&&(L==null?void 0:L.value)===X.value,isSelected:te,onClick:()=>{P(X),l||O()},onFocus:()=>N(j,!1),shouldLookDisabled:F&&T.length===0&&l,onKeyDown:z=>{z.key==="Enter"||z.key===" "?(z.preventDefault(),P(X),l||O()):z.key==="Tab"&&(l||P(X),O())}},X.children)}))))});KR.displayName="Select";const{deprecate:Kte}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ni=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}},GR=class extends ni{filter(e,t,r){let[n,a]=WR(e,t,this.firstChildKey,r),l=this.clone();return l.firstChildKey=n,l.lastChildKey=a,l}},VR=class extends ni{};VR.type="header";var Gte=class extends ni{};Gte.type="loader";var YR=class extends GR{filter(e,t,r){if(r(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};YR.type="item";var qR=class extends GR{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}};qR.type="section";var Vte=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]=WR(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 WR(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 XR=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}},Yg=class yy extends XR{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof yy?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 yy&&(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 y;c.firstChildKey=(y=(i=this.firstVisibleChild)===null||i===void 0||(l=i.node)===null||l===void 0?void 0:l.key)!==null&&y!==void 0?y:null;var b;if(c.lastChildKey=(b=(s=this.lastVisibleChild)===null||s===void 0||(o=s.node)===null||o===void 0?void 0:o.key)!==null&&b!==void 0?b:null,(c.colSpan!=null||c.colIndex!=null)&&u){var S,h;let v=((S=c.colIndex)!==null&&S!==void 0?S:c.index)+((h=c.colSpan)!==null&&h!==void 0?h:1);if(u.node!=null&&v!==u.node.colIndex){let E=u.getMutableNode();E.colIndex=v}}}}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}},Yte=class extends XR{get isConnected(){return this.isMounted}createElement(e){return new Yg(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 Yg&&(!i.isConnected||i.isHidden)?this.removeNode(i):i.updateChildIndices();for(let i of this.dirtyNodes)i instanceof Yg&&(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 ZR(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 Af=g.createContext(!1);function qte(e){if(g.useContext(Af))return m.createElement(m.Fragment,null,e.children);let t=m.createElement(Af.Provider,{value:!0},e.children);return m.createElement("template",{"data-react-aria-hidden":!0},t)}function sv(e){let t=(r,n)=>g.useContext(Af)?null:e(r,n);return t.displayName=e.displayName||e.name,g.forwardRef(t)}function Wte(){return g.useContext(Af)}var QR=g.createContext(!1),hu=g.createContext(null);function JR(e){if(g.useContext(hu))return e.content;let{collection:t,document:r}=Jte(e.createCollection);return m.createElement(m.Fragment,null,m.createElement(qte,null,m.createElement(hu.Provider,{value:r},e.content)),m.createElement(Xte,{render:e.children,collection:t}))}function Xte({collection:e,render:t}){return t(e)}function Zte(e,t,r){let n=ti(),a=g.useRef(n);a.current=n;let l=g.useCallback(()=>a.current?r():t(),[t,r]);return dX.useSyncExternalStore(e,l)}var Qte=typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore:Zte;function Jte(e){let[t]=g.useState(()=>new Yte((e==null?void 0:e())||new Vte)),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=Qte(r,n,a);return $e(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:l,document:t}}var by=g.createContext(null);function ere(e){var t;return t=class extends ni{},t.type=e,t}function e4(e,t,r,n,a,l){typeof e=="string"&&(e=ere(e));let i=g.useCallback(s=>{s==null||s.setProps(t,r,e,n,l)},[t,r,n,l,e]),o=g.useContext(by);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(by.Provider,{value:s},a):null}return m.createElement(e.type,{ref:i},a)}function Ip(e,t){let r=({node:a})=>t(a.props,a.props.ref,a),n=g.forwardRef((a,l)=>{let i=g.useContext(xf);if(!g.useContext(QR)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(a,l)}return e4(e,a,l,"children"in a?a.children:null,null,o=>m.createElement(xf.Provider,{value:i},m.createElement(r,{node:o})))});return n.displayName=t.name,n}function uv(e,t,r=t4){let n=({node:l})=>t(l.props,l.props.ref,l),a=g.forwardRef((l,i)=>{let o=r(l);var s;return(s=e4(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 t4(e){return ZR({...e,addIdAndValue:!0})}var W_=g.createContext(null);function r4(e){let t=g.useContext(W_),r=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies),n=e.idScope||(t==null?void 0:t.idScope),a=t4({...e,idScope:n,dependencies:r});return g.useContext(hu)&&(a=m.createElement(tre,null,a)),t=g.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),m.createElement(W_.Provider,{value:t},a)}function tre({children:e}){let t=g.useContext(hu),r=g.useMemo(()=>m.createElement(hu.Provider,{value:null},m.createElement(QR.Provider,{value:!0},e)),[e]);return ti()?m.createElement(by.Provider,{value:t},r):xo.createPortal(r,t)}var n4=g.createContext({});sv(function(e,t){[e,t]=Ut(e,t,n4);let{elementType:r="label",...n}=e;return m.createElement(r,{className:"react-aria-Label",...n,ref:t})});function rre(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":a,labelElementType:l="label"}=e;t=Mt(t);let i=Mt(),o={};r&&(n=n?`${i} ${n}`:i,o={id:i,htmlFor:l==="label"?t:void 0});let s=Rp({id:t,"aria-label":a,"aria-labelledby":n});return{labelProps:o,fieldProps:s}}function nre(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:a,isIndeterminate:l,formatOptions:i={style:"percent"}}=e,o=Qe(e,{labelable:!0}),{labelProps:s,fieldProps:u}=rre({...e,labelElementType:"span"});t=uu(t,r,n);let c=(t-r)/(n-r),d=TJ(i);if(!l&&!a){let f=i.style==="percent"?c:t;a=d.format(f)}return{progressBarProps:ce(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 a4=g.createContext(null);g.forwardRef(function(e,t){[e,t]=Ut(e,t,a4);let{value:r=0,minValue:n=0,maxValue:a=100,isIndeterminate:l=!1}=e;r=uu(r,n,a);let[i,o]=aD(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:s,labelProps:u}=nre({...e,label:o}),c=l?void 0:(r-n)/(a-n)*100,d=Cr({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:c,valueText:s["aria-valuetext"],isIndeterminate:l}}),f=Qe(e,{global:!0});return m.createElement("div",{...ce(f,d,s),ref:t,slot:e.slot||void 0},m.createElement(n4.Provider,{value:{...u,ref:i,elementType:"span"}},d.children))});function are(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:y,type:b="button"}=e,S;r==="button"?S={type:b,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"?b:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?y:void 0};let{pressProps:h,isPressed:v}=zu({onPressStart:l,onPressEnd:i,onPressChange:s,onPress:a,onPressUp:o,onClick:d,isDisabled:n,preventFocusOnPress:u,ref:t}),{focusableProps:E}=Hu(e,t);c&&(E.tabIndex=n?-1:E.tabIndex);let x=ce(E,h,Qe(e,{labelable:!0}));return{isPressed:v,buttonProps:ce(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 l4=g.createContext({});sv(function(e,t){[e,t]=Ut(e,t,l4),e=lre(e);let r=e,{isPending:n}=r,{buttonProps:a,isPressed:l}=are(e,t),{focusProps:i,isFocused:o,isFocusVisible:s}=Fp(e),{hoverProps:u,isHovered:c}=Bo({...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=Cr({...e,values:d,defaultClassName:"react-aria-Button"}),p=Mt(a.id),y=Mt(),b=a["aria-labelledby"];n&&(b?b=`${b} ${y}`:a["aria-label"]&&(b=`${p} ${y}`));let S=g.useRef(n);g.useEffect(()=>{let v={"aria-labelledby":b||p};(!S.current&&o&&n||S.current&&o&&!n)&&Vx(v,"assertive"),S.current=n},[n,o,b,p]);let h=Qe(e,{global:!0});return delete h.onClick,m.createElement("button",{...ce(h,f,a,i,u),type:a.type==="submit"&&n?"button":a.type,id:p,ref:t,"aria-labelledby":b,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(a4.Provider,{value:{id:y}},f.children))});function lre(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 cv=g.createContext(null),X_=g.createContext(null),ire=g.forwardRef(function(e,t){[e,t]=Ut(e,t,cv);let r=g.useContext(zp),n=Uu(e),a=e.isOpen!=null||e.defaultOpen!=null||!r?n:r,l=K3(t,a.isOpen)||e.isExiting||!1,i=Wte(),{direction:o}=fa();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(ore,{...e,triggerRef:e.triggerRef,state:a,popoverRef:t,isExiting:l,dir:o})});function ore({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:n,...a}){let l=g.useRef(null),i=g.useRef(null),o=g.useContext(X_),s=o&&a.trigger==="SubmenuTrigger";var u;let{popoverProps:c,underlayProps:d,arrowProps:f,placement:p,triggerAnchorPoint:y}=ree({...a,offset:(u=a.offset)!==null&&u!==void 0?u:8,arrowRef:l,groupRef:s?o:i},e),b=a.popoverRef,S=j3(b,!!p)||a.isEntering||!1,h=Cr({...a,defaultClassName:"react-aria-Popover",values:{trigger:a.trigger||null,placement:p,isEntering:S,isExiting:t}}),v=!a.isNonModal||a.trigger==="SubmenuTrigger",[E,x]=g.useState(!1);$e(()=>{b.current&&x(v&&!b.current.querySelector("[role=dialog]"))},[b,v]),g.useEffect(()=>{E&&a.trigger!=="SubmenuTrigger"&&b.current&&!b.current.contains(document.activeElement)&&Wa(b.current)},[E,b,a.trigger]);let _=g.useMemo(()=>{let A=h.children;if(n)for(let O of n)A=m.createElement(O.Provider,{value:null},A);return A},[h.children,n]),$={...c.style,"--trigger-anchor-point":y?`${y.x}px ${y.y}px`:void 0,...h.style},C=m.createElement("div",{...ce(Qe(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:b,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(M_,{onDismiss:e.close}),m.createElement(Q1.Provider,{value:{...f,placement:p,ref:l}},_),m.createElement(M_,{onDismiss:e.close}));if(!s)return m.createElement(wf,{...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(X_.Provider,{value:i},C)));var w;return m.createElement(wf,{...a,shouldContainFocus:E,isExiting:t,portalContainer:(w=r??(o==null?void 0:o.current))!==null&&w!==void 0?w:void 0},C)}var i4=g.createContext(null);uv("section",(e,t,r)=>{let{name:n,render:a}=g.useContext(i4);return a(e,t,r,"react-aria-Section")});var o4={CollectionRoot({collection:e,renderDropIndicator:t}){return Z_(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return Z_(e,t,r)}};function Z_(e,t,r){return ZR({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,sre(e,n,r))}})}function sre(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 Gu=g.createContext(o4);function s4(e){return g.useMemo(()=>e!=null?new Set([e]):null,[e])}var Q_=g.createContext(null),ure=g.createContext(null),u4=g.createContext({});Ip(VR,function(e,t){return[e,t]=Ut(e,t,u4),m.createElement("header",{className:"react-aria-Header",...e,ref:t},e.children)});var c4=g.createContext({});g.forwardRef(function(e,t){return[e,t]=Ut(e,t,c4),m.createElement("kbd",{dir:"ltr",...e,ref:t})});function cre(e){let t=Qe(e,{labelable:!0}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}var d4=g.createContext({}),f4=class extends ni{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}};f4.type="separator";Ip(f4,function(e,t){[e,t]=Ut(e,t,d4);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}=cre({...o,elementType:r,orientation:n}),c=Qe(e,{global:!0});return m.createElement(s,{...ce(c,u),style:a,className:l??"react-aria-Separator",ref:t,slot:i||void 0})});var p4=new WeakMap;function vy(e){return fZ()?e.altKey:e.ctrlKey}function _d(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 h4=new WeakMap;function dre(e){let t=Mt();return h4.set(e,t),t}function fre(e){return h4.get(e)}var pre=1e3;function hre(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,a=g.useRef({search:"",timeout:void 0}).current,l=i=>{let o=gre(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=""},pre)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?l:void 0}}}function gre(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function g4(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:y=n,linkBehavior:b="action"}=e,{direction:S}=fa(),h=Op(),v=D=>{var N;if(D.altKey&&D.key==="Tab"&&D.preventDefault(),!(!((N=n.current)===null||N===void 0)&&N.contains(D.target)))return;let U=(k,Y)=>{if(k!=null){if(t.isLink(k)&&b==="selection"&&u&&!vy(D)){xo.flushSync(()=>{t.setFocusedKey(k,Y)});let Q=_d(n,k),re=t.getItemProps(k);Q&&h.open(Q,D,re.href,re.routerOptions);return}if(t.setFocusedKey(k,Y),t.isLink(k)&&b==="override")return;D.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(k):u&&!vy(D)&&t.replaceSelection(k)}};switch(D.key){case"ArrowDown":if(r.getKeyBelow){var B,G,V;let k=t.focusedKey!=null?(B=r.getKeyBelow)===null||B===void 0?void 0:B.call(r,t.focusedKey):(G=r.getFirstKey)===null||G===void 0?void 0:G.call(r);k==null&&l&&(k=(V=r.getFirstKey)===null||V===void 0?void 0:V.call(r,t.focusedKey)),k!=null&&(D.preventDefault(),U(k))}break;case"ArrowUp":if(r.getKeyAbove){var Z,J,j;let k=t.focusedKey!=null?(Z=r.getKeyAbove)===null||Z===void 0?void 0:Z.call(r,t.focusedKey):(J=r.getLastKey)===null||J===void 0?void 0:J.call(r);k==null&&l&&(k=(j=r.getLastKey)===null||j===void 0?void 0:j.call(r,t.focusedKey)),k!=null&&(D.preventDefault(),U(k))}break;case"ArrowLeft":if(r.getKeyLeftOf){var X,te,F;let k=t.focusedKey!=null?(X=r.getKeyLeftOf)===null||X===void 0?void 0:X.call(r,t.focusedKey):null;k==null&&l&&(k=S==="rtl"?(te=r.getFirstKey)===null||te===void 0?void 0:te.call(r,t.focusedKey):(F=r.getLastKey)===null||F===void 0?void 0:F.call(r,t.focusedKey)),k!=null&&(D.preventDefault(),U(k,S==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var z,q,K;let k=t.focusedKey!=null?(z=r.getKeyRightOf)===null||z===void 0?void 0:z.call(r,t.focusedKey):null;k==null&&l&&(k=S==="rtl"?(q=r.getLastKey)===null||q===void 0?void 0:q.call(r,t.focusedKey):(K=r.getFirstKey)===null||K===void 0?void 0:K.call(r,t.focusedKey)),k!=null&&(D.preventDefault(),U(k,S==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&D.shiftKey)return;D.preventDefault();let k=r.getFirstKey(t.focusedKey,yi(D));t.setFocusedKey(k),k!=null&&(yi(D)&&D.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(k):u&&t.replaceSelection(k))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&D.shiftKey)return;D.preventDefault();let k=r.getLastKey(t.focusedKey,yi(D));t.setFocusedKey(k),k!=null&&(yi(D)&&D.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(k):u&&t.replaceSelection(k))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let k=r.getKeyPageBelow(t.focusedKey);k!=null&&(D.preventDefault(),U(k))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let k=r.getKeyPageAbove(t.focusedKey);k!=null&&(D.preventDefault(),U(k))}break;case"a":yi(D)&&t.selectionMode==="multiple"&&o!==!0&&(D.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!i&&t.selectedKeys.size!==0&&(D.stopPropagation(),D.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(D.shiftKey)n.current.focus();else{let k=ar(n.current,{tabbable:!0}),Y,Q;do Q=k.lastChild(),Q&&(Y=Q);while(Q);Y&&!Y.contains(document.activeElement)&&rr(Y)}break}}},E=g.useRef({top:0,left:0});gs(y,"scroll",p?void 0:()=>{var D,N,U,B;E.current={top:(U=(D=y.current)===null||D===void 0?void 0:D.scrollTop)!==null&&U!==void 0?U:0,left:(B=(N=y.current)===null||N===void 0?void 0:N.scrollLeft)!==null&&B!==void 0?B:0}});let x=D=>{if(t.isFocused){D.currentTarget.contains(D.target)||t.setFocused(!1);return}if(D.currentTarget.contains(D.target)){if(t.setFocused(!0),t.focusedKey==null){var N,U;let V=J=>{J!=null&&(t.setFocusedKey(J),u&&!t.isSelected(J)&&t.replaceSelection(J))},Z=D.relatedTarget;var B,G;Z&&D.currentTarget.compareDocumentPosition(Z)&Node.DOCUMENT_POSITION_FOLLOWING?V((B=t.lastSelectedKey)!==null&&B!==void 0?B:(N=r.getLastKey)===null||N===void 0?void 0:N.call(r)):V((G=t.firstSelectedKey)!==null&&G!==void 0?G:(U=r.getFirstKey)===null||U===void 0?void 0:U.call(r))}else!p&&y.current&&(y.current.scrollTop=E.current.top,y.current.scrollLeft=E.current.left);if(t.focusedKey!=null&&y.current){let V=_d(n,t.focusedKey);V instanceof HTMLElement&&(!V.contains(document.activeElement)&&!d&&rr(V),pu()==="keyboard"&&J$(V,{containingElement:n.current}))}}},_=D=>{D.currentTarget.contains(D.relatedTarget)||t.setFocused(!1)},$=g.useRef(!1);gs(n,AZ,d?D=>{let{detail:N}=D;D.stopPropagation(),t.setFocused(!0),(N==null?void 0:N.focusStrategy)==="first"&&($.current=!0)}:void 0);let C=wt(()=>{var D,N;let U=(N=(D=r.getFirstKey)===null||D===void 0?void 0:D.call(r))!==null&&N!==void 0?N:null;if(U==null){let B=$t();DD(n.current),RD(B,null),t.collection.size>0&&($.current=!1)}else t.setFocusedKey(U),$.current=!1});Z$(()=>{$.current&&C()},[t.collection,C]);let w=wt(()=>{t.collection.size>0&&($.current=!1)});Z$(()=>{w()},[t.focusedKey,w]),gs(n,wZ,d?D=>{var N;D.stopPropagation(),t.setFocused(!1),!((N=D.detail)===null||N===void 0)&&N.clearFocusKey&&t.setFocusedKey(null)}:void 0);let A=g.useRef(a),O=g.useRef(!1);g.useEffect(()=>{if(A.current){var D,N;let G=null;var U;a==="first"&&(G=(U=(D=r.getFirstKey)===null||D===void 0?void 0:D.call(r))!==null&&U!==void 0?U:null);var B;a==="last"&&(G=(B=(N=r.getLastKey)===null||N===void 0?void 0:N.call(r))!==null&&B!==void 0?B:null);let V=t.selectedKeys;if(V.size){for(let Z of V)if(t.canSelectItem(Z)){G=Z;break}}t.setFocused(!0),t.setFocusedKey(G),G==null&&!d&&n.current&&Wa(n.current),t.collection.size>0&&(A.current=!1,O.current=!0)}});let T=g.useRef(t.focusedKey),M=g.useRef(null);g.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==T.current||O.current)&&y.current&&n.current){let D=pu(),N=_d(n,t.focusedKey);if(!(N instanceof HTMLElement))return;(D==="keyboard"||O.current)&&(M.current&&cancelAnimationFrame(M.current),M.current=requestAnimationFrame(()=>{y.current&&(H3(y.current,N),D!=="virtual"&&J$(N,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&T.current!=null&&n.current&&Wa(n.current),T.current=t.focusedKey,O.current=!1}),g.useEffect(()=>()=>{M.current&&cancelAnimationFrame(M.current)},[]),gs(n,"react-aria-focus-scope-restore",D=>{D.preventDefault(),t.setFocused(!0)});let P={onKeyDown:v,onFocus:x,onBlur:_,onMouseDown(D){y.current===D.target&&D.preventDefault()}},{typeSelectProps:I}=hre({keyboardDelegate:r,selectionManager:t});c||(P=ce(I,P));let H;d||(H=t.focusedKey==null?0:-1);let L=dre(t.collection);return{collectionProps:ce(P,{tabIndex:H,"data-collection":L})}}function m4(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=Op();t=Mt(t);let p=B=>{if(B.pointerType==="keyboard"&&vy(B))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(d==="selection"&&a.current){let G=r.getItemProps(n);f.open(a.current,B,G.href,G.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):B&&B.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||B&&(yi(B)||B.pointerType==="touch"||B.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};g.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(i?DD(a.current):o?o():document.activeElement!==a.current&&a.current&&Wa(a.current))},[a,n,r.focusedKey,r.childFocusStrategy,r.isFocused,i]),s=s||r.isDisabled(n);let y={};!i&&!s?y={tabIndex:n===r.focusedKey?0:-1,onFocus(B){B.target===a.current&&r.setFocusedKey(n)}}:s&&(y.onMouseDown=B=>{B.preventDefault()});let b=r.isLink(n)&&d==="override",S=u&&e.UNSTABLE_itemBehavior==="action",h=r.isLink(n)&&d!=="selection"&&d!=="none",v=!s&&r.canSelectItem(n)&&!b&&!S,E=(u||h)&&!s,x=E&&(r.selectionBehavior==="replace"?!v:!v||r.isEmpty),_=E&&v&&r.selectionBehavior==="replace",$=x||_,C=g.useRef(null),w=$&&v,A=g.useRef(!1),O=g.useRef(!1),T=r.getItemProps(n),M=B=>{if(u){var G;u(),(G=a.current)===null||G===void 0||G.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}h&&a.current&&f.open(a.current,B,T.href,T.routerOptions)},P={ref:a};if(l?(P.onPressStart=B=>{C.current=B.pointerType,A.current=w,B.pointerType==="keyboard"&&(!$||eC())&&p(B)},c?(P.onPressUp=x?void 0:B=>{B.pointerType==="mouse"&&v&&p(B)},P.onPress=x?M:B=>{B.pointerType!=="keyboard"&&B.pointerType!=="mouse"&&v&&p(B)}):P.onPress=B=>{if(x||_&&B.pointerType!=="mouse"){if(B.pointerType==="keyboard"&&!J_())return;M(B)}else B.pointerType!=="keyboard"&&v&&p(B)}):(P.onPressStart=B=>{C.current=B.pointerType,A.current=w,O.current=x,v&&(B.pointerType==="mouse"&&!x||B.pointerType==="keyboard"&&(!E||eC()))&&p(B)},P.onPress=B=>{(B.pointerType==="touch"||B.pointerType==="pen"||B.pointerType==="virtual"||B.pointerType==="keyboard"&&$&&J_()||B.pointerType==="mouse"&&O.current)&&($?M(B):v&&p(B))}),y["data-collection"]=fre(r.collection),y["data-key"]=n,P.preventFocusOnPress=i,i&&(P=ce(P,{onPressStart(B){B.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(B){B.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),T)for(let B of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])T[B]&&(P[B]=ku(P[B],T[B]));let{pressProps:I,isPressed:H}=zu(P),L=_?B=>{C.current==="mouse"&&(B.stopPropagation(),B.preventDefault(),M(B))}:void 0,{longPressProps:D}=sQ({isDisabled:!w,onLongPress(B){B.pointerType==="touch"&&(p(B),r.setSelectionBehavior("toggle"))}}),N=B=>{C.current==="touch"&&A.current&&B.preventDefault()},U=d!=="none"&&r.isLink(n)?B=>{Ul.isOpening||B.preventDefault()}:void 0;return{itemProps:ce(y,v||x||i&&!s?I:{},w?D:{},{onDoubleClick:L,onDragStartCapture:N,onClick:U,id:t},i?{onMouseDown:B=>B.preventDefault()}:void 0),isPressed:H,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:s,allowsSelection:v,hasAction:$}}function J_(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function eC(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}var tC=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let r=e!=null?_d(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}},mre=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&&!po(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&&!po(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 tC(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 tC(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function yre(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:a,keyboardDelegate:l,layoutDelegate:i}=e,o=wJ({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,u=g.useMemo(()=>l||new mre({collection:r,disabledKeys:n,disabledBehavior:s,ref:a,collator:o,layoutDelegate:i}),[l,i,r,n,a,o,s]),{collectionProps:c}=g4({...e,ref:a,selectionManager:t,keyboardDelegate:u});return{listProps:c}}function bre(e,t,r){let{shouldFocusWrap:n=!0,onKeyDown:a,onKeyUp:l,...i}=e;!e["aria-label"]&&e["aria-labelledby"];let o=Qe(e,{labelable:!0}),{listProps:s}=yre({...i,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return p4.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:ce(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 y4(e){return null}y4.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:vre(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 vre(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&m.Children.count(e.children)>0)}var Ere=y4,Sre=class{build(e,t){return this.context=t,rC(()=>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 b=[];m.Children.forEach(e.element.props.children,h=>{b.push(h)});var a;let S=(a=e.index)!==null&&a!==void 0?a:0;for(let h of b)yield*this.getFullNode({element:h,index:S++},t,r,n);return}let l=e.element;if(!l&&e.value&&t&&t.renderer){let b=this.cache.get(e.value);if(b&&(!b.shouldInvalidate||!b.shouldInvalidate(this.context))){b.index=e.index,b.parentKey=n?n.key:null,yield b;return}l=t.renderer(e.value)}if(m.isValidElement(l)){let b=l.type;if(typeof b!="function"&&typeof b.getCollectionNode!="function"){let E=l.type;throw new Error(`Unknown element <${E}> in collection.`)}let S=b.getCollectionNode(l.props,this.context);var i;let h=(i=e.index)!==null&&i!==void 0?i:0,v=S.next();for(;!v.done&&v.value;){let E=v.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 _=[...this.getFullNode({...E,key:x,index:h,wrapper:xre(e.wrapper,E.wrapper)},this.getChildState(t,E),r?`${r}${l.key}`:l.key,n)];for(let $ of _){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 <${qg($.type)}> in <${qg((c=n==null?void 0:n.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${qg(e.type)}> is supported.`);h++,yield $}v=S.next(_)}return}if(e.key==null||e.type==null)return;let d=this;var f,p;let y={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:rC(function*(){if(!e.hasChildNodes||!e.childNodes)return;let b=0;for(let S of e.childNodes()){S.key!=null&&(S.key=`${y.key}${S.key}`);let h=d.getFullNode({...S,index:b},d.getChildState(t,S),y.key,y);for(let v of h)b++,yield v}})};yield y}constructor(){this.cache=new WeakMap}};function rC(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 xre(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function qg(e){return e[0].toUpperCase()+e.slice(1)}function b4(e,t,r){let n=g.useMemo(()=>new Sre,[]),{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 v4(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function $re(e){return _re(e)}function _re(e,t){for(let r of e)return r}function Wg(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...nC(e,t),t],a=[...nC(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 nC(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 aC=new WeakMap;function Cre(e){let t=aC.get(e);if(t!=null)return t;let r=0,n=a=>{for(let l of a)l.type==="section"?n(v4(l,e)):l.type==="item"&&r++};return n(e),aC.set(e,r),r}function Tre(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:y,onHoverChange:b,onHoverEnd:S,onKeyDown:h,onKeyUp:v,onFocus:E,onFocusChange:x,onBlur:_,selectionManager:$=t.selectionManager}=e,C=!!o,w=C&&e["aria-expanded"]==="true";var A;let O=(A=e.isDisabled)!==null&&A!==void 0?A:$.isDisabled(a);var T;let M=(T=e.isSelected)!==null&&T!==void 0?T:$.isSelected(a),P=p4.get(t),I=t.collection.getItem(a),H=e.onClose||P.onClose,L=Op(),D=()=>{var ee;if(!C&&(!(I==null||(ee=I.props)===null||ee===void 0)&&ee.onAction?I.props.onAction():e.onAction&&e.onAction(a),P.onAction)){let Re=P.onAction;Re(a)}},N="menuitem";C||($.selectionMode==="single"?N="menuitemradio":$.selectionMode==="multiple"&&(N="menuitemcheckbox"));let U=vd(),B=vd(),G=vd(),V={id:n,"aria-disabled":O||void 0,role:N,"aria-label":e["aria-label"],"aria-labelledby":U,"aria-describedby":[B,G].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":o,"aria-expanded":e["aria-expanded"]};$.selectionMode!=="none"&&!C&&(V["aria-checked"]=M),i&&(V["aria-posinset"]=I==null?void 0:I.index,V["aria-setsize"]=Cre(t.collection));let Z=g.useRef(!1),J=ee=>{d==null||d(ee),Z.current=ee},j=g.useRef(null),X=ee=>{ee.pointerType!=="keyboard"&&(j.current={pointerType:ee.pointerType}),ee.pointerType==="mouse"&&(Z.current||ee.target.click()),u==null||u(ee)},te=ee=>{var Re,Oe;p==null||p(ee),D(),bZ(ee,L,I.props.href,I==null?void 0:I.props.routerOptions);let be=((Re=j.current)===null||Re===void 0?void 0:Re.pointerType)==="keyboard"?((Oe=j.current)===null||Oe===void 0?void 0:Oe.key)==="Enter"||$.selectionMode==="none"||$.isLink(a):$.selectionMode!=="multiple"||$.isLink(a);be=l??be,H&&!C&&be&&H(),j.current=null},{itemProps:F,isFocused:z}=m4({id:n,selectionManager:$,key:a,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:P.shouldUseVirtualFocus}),{pressProps:q,isPressed:K}=zu({onPressStart:s,onPress:c,onPressUp:X,onPressChange:J,onPressEnd:f,isDisabled:O}),{hoverProps:k}=Bo({isDisabled:O,onHoverStart(ee){!fu()&&!(w&&o)&&($.setFocused(!0),$.setFocusedKey(a)),y==null||y(ee)},onHoverChange:b,onHoverEnd:S}),{keyboardProps:Y}=rD({onKeyDown:ee=>{if(ee.repeat){ee.continuePropagation();return}switch(ee.key){case" ":j.current={pointerType:"keyboard",key:" "},ee.target.click();break;case"Enter":j.current={pointerType:"keyboard",key:"Enter"},ee.target.tagName!=="A"&&ee.target.click();break;default:C||ee.continuePropagation(),h==null||h(ee);break}},onKeyUp:v}),{focusProps:Q}=W1({onBlur:_,onFocus:E,onFocusChange:x}),re=Qe(I==null?void 0:I.props);delete re.id;let pe=I3(I==null?void 0:I.props);return{menuItemProps:{...V,...ce(re,pe,C?{onFocus:F.onFocus,"data-collection":F["data-collection"],"data-key":F["data-key"]}:F,q,k,Y,Q,P.shouldUseVirtualFocus||C?{onMouseDown:ee=>ee.preventDefault()}:void 0,O?void 0:{onClick:te}),tabIndex:F.tabIndex!=null&&w&&!P.shouldUseVirtualFocus?-1:F.tabIndex},labelProps:{id:U},descriptionProps:{id:B},keyboardShortcutProps:{id:G},isFocused:z,isFocusVisible:z&&$.isFocused&&fu()&&!w,isSelected:M,isPressed:K,isDisabled:O}}function wre(e){let{heading:t,"aria-label":r}=e,n=Mt();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}var zc=2,Are=50,Ore=1e3,lC=Math.PI/12;function Dre(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);bf({ref:r,onResize:()=>{r.current&&(i.current=r.current.getBoundingClientRect(),c.current=void 0)}});let y=()=>{p(!1),d.current=zc,l.current=void 0},b=WZ(),S=wt(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,v=t.current;if(a||!h||!n||b!=="pointer"||!v){y();return}i.current=h.getBoundingClientRect();let E=x=>{if(x.pointerType==="touch"||x.pointerType==="pen")return;let _=Date.now();if(_-o.current<Are)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"),$<v.getBoundingClientRect().left||$>v.getBoundingClientRect().right||C<v.getBoundingClientRect().top||C>v.getBoundingClientRect().bottom){y();return}let w=l.current.x,A=l.current.y,O=c.current==="right"?i.current.left-w:w-i.current.right,T=Math.atan2(A-i.current.top,O)+lC,M=Math.atan2(A-i.current.bottom,O)-lC,P=Math.atan2(A-C,c.current==="left"?-($-w):$-w),I=P<T&&P>M;d.current=I?Math.min(d.current+1,zc):Math.max(d.current-1,0),d.current>=zc?p(!0):p(!1),o.current=_,l.current={x:$,y:C},I&&(s.current=setTimeout(()=>{y(),u.current=setTimeout(()=>{let H=document.elementFromPoint($,C);H&&v.contains(H)&&H.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},Ore))};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=zc}},[a,n,t,b,p,S,r])}function Rre(e,t,r){let{parentMenuRef:n,submenuRef:a,type:l="menu",isDisabled:i,delay:o=200,shouldUseVirtualFocus:s}=e,u=Mt(),c=Mt(),{direction:d}=fa(),f=g.useRef(void 0),p=g.useCallback(()=>{f.current&&(clearTimeout(f.current),f.current=void 0)},[f]),y=wt(w=>{p(),t.open(w)}),b=wt(()=>{p(),t.close()});$e(()=>()=>{p()},[p]);let S=w=>{if(w.currentTarget.contains(document.activeElement))switch(w.key){case"ArrowLeft":d==="ltr"&&w.currentTarget.contains(w.target)&&(w.preventDefault(),w.stopPropagation(),b(),!s&&r.current&&rr(r.current));break;case"ArrowRight":d==="rtl"&&w.currentTarget.contains(w.target)&&(w.preventDefault(),w.stopPropagation(),b(),!s&&r.current&&rr(r.current));break;case"Escape":var A;!((A=a.current)===null||A===void 0)&&A.contains(w.target)&&(w.stopPropagation(),b(),!s&&r.current&&rr(r.current));break}};var h;let v={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=w=>{switch(w.key){case"ArrowRight":i||(d==="ltr"?(w.preventDefault(),t.isOpen||y("first"),l==="menu"&&(a!=null&&a.current)&&document.activeElement===(r==null?void 0:r.current)&&rr(a.current)):t.isOpen?b():w.continuePropagation());break;case"ArrowLeft":i||(d==="rtl"?(w.preventDefault(),t.isOpen||y("first"),l==="menu"&&(a!=null&&a.current)&&document.activeElement===(r==null?void 0:r.current)&&rr(a.current)):t.isOpen?b():w.continuePropagation());break;default:w.continuePropagation();break}},x=w=>{!i&&(w.pointerType==="virtual"||w.pointerType==="keyboard")&&y("first")},_=w=>{!i&&(w.pointerType==="touch"||w.pointerType==="mouse")&&y()},$=w=>{i||(w&&!t.isOpen?f.current||(f.current=setTimeout(()=>{y()},o)):w||p())};gs(n,"focusin",w=>{var A;t.isOpen&&!((A=n.current)===null||A===void 0)&&A.contains(w.target)&&w.target!==r.current&&b()});let C=w=>w!==r.current;return Dre({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:_,onHoverChange:$,onKeyDown:E,isOpen:t.isOpen},submenuProps:v,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:C}}}function E4(e){let t=Uu(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 Nre(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(y=>{c(y??null),a(r,o)},[a,o,r]),f=g.useCallback(()=>{c(null),l(r,o)},[l,o,r]),p=g.useCallback(y=>{c(y??null),s?f():d(y)},[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 Lre=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}},jn=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 Mre(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function dv(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(()=>iC(e.selectedKeys),[e.selectedKeys]),f=g.useMemo(()=>iC(e.defaultSelectedKeys,new jn),[e.defaultSelectedKeys]),[p,y]=Np(d,f,e.onSelectionChange),b=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 v=g.useRef(a);return g.useEffect(()=>{a!==v.current&&(h(a),v.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||!Mre(E,p))&&y(E)},disabledKeys:b,disabledBehavior:l}}function iC(e,t){return e?e==="all"?"all":new jn(e):t}var fv=class x4{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&&Wg(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&&Wg(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 jn([r],r,r);else{let i=this.state.selectedKeys;var a;let o=(a=i.anchorKey)!==null&&a!==void 0?a:r;n=new jn(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?Wg(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 jn(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 jn([r],r,r):new jn;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new jn;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=$re(v4(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 jn)}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 x4(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 Fre(e){let{onExpandedChange:t}=e,[r,n]=Np(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),a=dv(e),l=g.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=b4(e,g.useCallback(o=>new Lre(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(Bre(r,o))},setExpandedKeys:n,selectionManager:new fv(i,a)}}function Bre(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}var $4=g.createContext(null),kp=g.createContext(null),Of=g.createContext(null),Df=g.createContext(null),_4=g.createContext(null),C4=class extends ni{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}};C4.type="submenutrigger";uv(C4,(e,t,r)=>{let{CollectionBranch:n}=g.useContext(Gu),a=g.useContext(kp),l=g.useContext(Of),i=Nre({triggerKey:r.key},l),o=g.useRef(null),s=un(t),{parentMenuRef:u,shouldUseVirtualFocus:c}=g.useContext(_4),{submenuTriggerProps:d,submenuProps:f,popoverProps:p}=Rre({parentMenuRef:u,submenuRef:o,delay:e.delay,shouldUseVirtualFocus:c},i,s);return m.createElement(da,{values:[[Rf,{...d,onAction:void 0,ref:s}],[$4,{ref:o,...f}],[zp,i],[cv,{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]=Ut(e,t,$4),m.createElement(JR,{content:m.createElement(r4,e)},r=>m.createElement(Pre,{props:e,collection:r,menuRef:t}))});function Pre({props:e,collection:t,menuRef:r}){[e,r]=Ut(e,r,Q_);let{filter:n,...a}=e,l=g.useMemo(()=>n?t.filter(n):t,[t,n]),i=Fre({...e,collection:l,children:void 0}),o=g.useContext(Of),{isVirtualized:s,CollectionRoot:u}=g.useContext(Gu),{menuProps:c}=bre({...e,isVirtualized:s,onClose:e.onClose||(o==null?void 0:o.close)},i,r),d=Cr({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=Qe(e,{global:!0});return m.createElement(tv,null,m.createElement("div",{...ce(p,d,c),ref:r,slot:e.slot||void 0,"data-empty":i.collection.size===0||void 0,onScroll:e.onScroll},m.createElement(da,{values:[[kp,i],[d4,{elementType:"div"}],[i4,{name:"MenuSection",render:T4}],[_4,{parentMenuRef:r,shouldUseVirtualFocus:a==null?void 0:a.shouldUseVirtualFocus}],[Rf,null],[Q_,null],[ure,null],[Df,i.selectionManager],[Of,o??E4({})]]},m.createElement(u,{collection:i.collection,persistedKeys:s4(i.selectionManager.focusedKey),scrollRef:r})),f))}var Ire=class extends fv{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 T4(e,t,r,n="react-aria-MenuSection"){var a,l;let i=g.useContext(kp),{CollectionBranch:o}=g.useContext(Gu),[s,u]=aD();var c;let{headingProps:d,groupProps:f}=wre({heading:u,"aria-label":(c=r.props["aria-label"])!==null&&c!==void 0?c:void 0}),p=Cr({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:{}}),y=g.useContext(Df),b=dv(e),S=e.selectionMode!=null?new Ire(y,b):y,h=Qe(e,{global:!0});return delete h.id,m.createElement("section",{...ce(h,p,f),ref:t},m.createElement(da,{values:[[u4,{...d,ref:s}],[Df,S]]},m.createElement(o,{collection:i.collection,parent:r})))}uv(qR,T4);var Rf=g.createContext(null);Ip(YR,function(e,t,r){var n;[e,t]=Ut(e,t,Rf);let a=(n=Z1(Rf))===null||n===void 0?void 0:n.id,l=g.useContext(kp),i=un(t),o=g.useContext(Df),{menuItemProps:s,labelProps:u,descriptionProps:c,keyboardShortcutProps:d,...f}=Tre({...e,id:a,key:r.key,selectionManager:o},l,i),{hoverProps:p,isHovered:y}=Bo({isDisabled:f.isDisabled}),b=Cr({...e,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...f,isHovered:y,isFocusVisible:f.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),S=e.href?"a":"div",h=Qe(e,{global:!0});return delete h.id,delete h.onClick,m.createElement(S,{...ce(h,b,s,p),ref:i,"data-disabled":f.isDisabled||void 0,"data-hovered":y||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(da,{values:[[OR,{slots:{[$f]:u,label:u,description:c}}],[c4,d]]},b.children))});function kre(e,t){let{role:r="dialog"}=e,n=vd();n=e["aria-label"]?void 0:n;let a=g.useRef(!1);return g.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Wa(t.current);let l=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(a.current=!0,t.current&&(t.current.blur(),Wa(t.current)),a.current=!1)},500);return()=>{clearTimeout(l)}}},[t]),mR(),{dialogProps:{...Qe(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:l=>{a.current&&l.stopPropagation()}},titleProps:{id:n}}}var w4=g.createContext(null),zp=g.createContext(null);function zre(e){let t=E4(e),r=g.useRef(null),{triggerProps:n,overlayProps:a}=UJ({},t,r),[l,i]=g.useState(null),o=g.useCallback(()=>{r.current&&i(r.current.offsetWidth+"px")},[r]);return bf({ref:r,onResize:o}),n.id=Mt(),a["aria-labelledby"]=n.id,m.createElement(da,{values:[[zp,t],[Of,t],[w4,a],[cv,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":a["aria-labelledby"],style:{"--trigger-width":l}}]]},m.createElement(nQ,{...n,ref:r,isPressed:t.isOpen},e.children))}g.forwardRef(function(e,t){let r=e["aria-labelledby"];[e,t]=Ut(e,t,w4);let{dialogProps:n,titleProps:a}=kre({...e,"aria-labelledby":r},t),l=g.useContext(zp);!n["aria-label"]&&!n["aria-labelledby"]&&(e["aria-labelledby"]&&(n["aria-labelledby"]=e["aria-labelledby"]));let i=Cr({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(l==null?void 0:l.close)||(()=>{})}}),o=Qe(e,{global:!0});return m.createElement("section",{...ce(o,i,n),ref:t,slot:e.slot||void 0},m.createElement(da,{values:[[AR,{slots:{[$f]:{},title:{...a,level:2}}}],[l4,{slots:{[$f]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},i.children))});var pv=({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||Kte("The 'ariaLabel' prop on 'PopoverProvider' will become mandatory in Storybook 11. Provide a concise, accessible label describing the popover's purpose.");let p=av(t),[y,b]=g.useState(u??!1),S=g.useCallback(v=>{b(v),d==null||d(v)},[d]),h=g.useCallback(()=>S(!1),[S]);return m.createElement(zre,{defaultOpen:u,isOpen:c??y,onOpenChange:S,...f},m.createElement(rQ,null,g.cloneElement(s,{"aria-haspopup":"dialog"})),m.createElement(ire,{"aria-label":e,placement:p,offset:l,style:{outline:"none"}},m.createElement(Ku,{hasChrome:r,hideLabel:a,onHide:n?h:void 0,padding:i},typeof o=="function"?o({onHide:h}):o)))},A4=g.forwardRef((e,t)=>m.createElement(Ku,{ref:t,...e}));A4.displayName="Tooltip";g.lazy(()=>ta(()=>import("./WithTooltip-7X4HQR7L-iCU-y5zG.js"),__vite__mapDeps([5,1,2,3]),import.meta.url).then(e=>({default:e.WithTooltip})));g.lazy(()=>ta(()=>import("./WithTooltip-7X4HQR7L-iCU-y5zG.js"),__vite__mapDeps([5,1,2,3]),import.meta.url).then(e=>({default:e.WithTooltipPure})));const{deprecate:ihe}=__STORYBOOK_MODULE_CLIENT_LOGGER__;R.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));R.span();R.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}}));R.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"}));R.div({padding:15,width:280,boxSizing:"border-box"});const{deprecate:Hre}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Ure=Wt(Kl(),1);const{deprecate:jre}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Kre=R(({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}:{}),Gre=R.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"}}),Vre=R.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column",minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),Yre=R.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),qre=R.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),Wre=R.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"}),Xre=(0,Ure.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}}})),O4=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,...y}=e,b={active:i,disabled:o},S=Xre(e),h=d||f;return jre("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),m.createElement(Wre,{"data-deprecated":"ListItem",ref:t,...y,...b,...S},m.createElement(m.Fragment,null,h&&m.createElement(qre,{...b},h),n||a?m.createElement(Vre,{isIndented:s&&!h},n&&m.createElement(Kre,{...b,loading:r},n),a&&m.createElement(Yre,{...b},a)):null,l&&m.createElement(Gre,{...b},l)))});O4.displayName="ListItem";var D4=O4,Zre=R.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}:{}),Qre=R.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),Jre=({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(D4,{id:`list-item-${e}`,...r,...t&&{onClick:o}})},R4=({links:e,LinkWrapper:t,...r})=>{Hre("`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(Zre,{"data-deprecated":"TooltipLinkList",...r,className:"sb-list"},n.filter(l=>l.length).map((l,i)=>m.createElement(Qre,{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(Jre,{key:o.id,isIndented:a,LinkWrapper:t,...o})))))};const{deprecate:Hp}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:ene}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var tne=R.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})),rne=R.div(({innerStyle:e})=>({minHeight:40,display:"flex",alignItems:"center",width:"100%",gap:6,paddingInline:6,...e})),Po=g.forwardRef(({scrollable:e=!0,children:t,innerStyle:r,...n},a)=>m.createElement(tne,{...n,ref:a,innerStyle:e?void 0:r,scrollable:e},e?m.createElement(rne,{innerStyle:r},t):t));Po.displayName="Bar";var Ey=R.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}:{});Ey.displayName="Side";var nne=R.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,width:"100%",backgroundColor:e||""})),ane=R(Po)({paddingInline:0}),hv=({children:e,backgroundColor:t,className:r="",...n})=>{ene('FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.');let[a,l]=g.Children.toArray(e);return m.createElement(ane,{"data-deprecated":"FlexBar",backgroundColor:t,className:`sb-bar ${r}`,...n},m.createElement(nne,{bgColor:t},m.createElement(Ey,{scrollable:n.scrollable,left:!0},a),l?m.createElement(Ey,{right:!0},l):null))};hv.displayName="FlexBar";const{deprecate:lne}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ine=e=>typeof e.props.href=="string",one=e=>typeof e.props.href!="string";function sne({children:e,...t},r){let n={props:t,ref:r};if(ine(n))return m.createElement("a",{ref:n.ref,...n.props},e);if(one(n))return m.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var N4=g.forwardRef(sne);N4.displayName="ButtonOrLink";var une=R(N4,{shouldForwardProp:hp})({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}}),Vu=g.forwardRef((e,t)=>(lne("The `TabButton` component is deprecated. Use `TabList` instead."),m.createElement(une,{"data-deprecated":"TabButton",ref:t,...e})));Vu.displayName="TabButton";var cne=R.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),dne=R.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),fne=R.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.color.defaultText})),pne=R.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),hne=R.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),Yu=({title:e,description:t,footer:r})=>m.createElement(cne,null,m.createElement(dne,null,m.createElement(fne,null,e),t&&m.createElement(hne,null,t)),r&&m.createElement(pne,null,r));const{deprecate:gne}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var L4=R.div(({active:e})=>e?{display:"block"}:{display:"none"}),mne=e=>(gne("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(L4,{active:i,role:"tabpanel"},l)}}));const{deprecate:yne}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var bne=R.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"})),vne=R(Vu)(({active:e,theme:t,preActive:r})=>`
  621. color: ${r||e?t.barSelectedColor:t.barTextColor};
  622. .addon-collapsible-icon {
  623. color: ${r||e?t.barSelectedColor:t.barTextColor};
  624. }
  625. &:hover {
  626. color: ${t.barHoverColor};
  627. .addon-collapsible-icon {
  628. color: ${t.barHoverColor};
  629. }
  630. }
  631. `);function Ene(e){yne("The `useList` tabs hook is deprecated. Use `TabsView` instead.");let t=g.useRef(),r=g.useRef(),n=g.useRef(new Map),{width:a=1}=PR({ref:t}),[l,i]=g.useState(e),[o,s]=g.useState([]),u=g.useRef(e),c=g.useCallback(({menuName:f,actions:p})=>{let y=o.some(({active:h})=>h),[b,S]=g.useState(!1);return m.createElement(m.Fragment,null,m.createElement(pv,{ariaLabel:"Additional tabs",visible:b,onVisibleChange:S,placement:"bottom",popover:m.createElement(R4,{links:o.map(({title:h,id:v,color:E,active:x})=>({id:v,title:h,color:E,active:x,onClick:_=>{_.preventDefault(),p.onSelect(v)}}))})},m.createElement(vne,{id:"addons-menu-button",ref:r,active:y,preActive:b,style:{visibility:o.length?"visible":"hidden"},"aria-hidden":!o.length,className:"tabbutton",type:"button",role:"tab"},f,m.createElement(bne,{className:"addon-collapsible-icon",isActive:y||b}))),o.map(({title:h,id:v,color:E},x)=>{let _=`index-${x}`;return m.createElement(Vu,{id:`tabbutton-${Yi(v)??_}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:$=>{n.current.set(v,$)},className:"tabbutton",type:"button",key:v,textColor:E,role:"tab"},h)}))},[o]),d=g.useCallback(()=>{if(!t.current||!r.current)return;let{x:f,width:p}=t.current.getBoundingClientRect(),{width:y}=r.current.getBoundingClientRect(),b=o.length?f+p-y:f+p,S=[],h=0,v=e.filter(E=>{let{id:x}=E,_=n.current.get(x),{width:$=0}=(_==null?void 0:_.getBoundingClientRect())||{},C=f+h+$>b;return(!C||!_)&&S.push(E),h+=$,C});(S.length!==l.length||u.current!==e)&&(i(S),s(v),u.current=e)},[o.length,e,l]);return g.useLayoutEffect(d,[d,a]),{tabRefs:n,addonsRef:r,tabBarRef:t,visibleList:l,invisibleList:o,AddonTab:c}}var Sne="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",xne=R.div(({theme:e,bordered:t})=>t?{backgroundClip:"padding-box",border:`1px solid ${e.appBorderColor}`,borderRadius:e.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{},({absolute:e})=>e?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"}),$ne=R.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1}),gv=g.forwardRef((e,t)=>(Hp("The `TabBar` component is deprecated. Use `TabsView` instead."),m.createElement($ne,{"data-deprecated":"TabBar",...e,ref:t})));gv.displayName="TabBar";var _ne=R.div({display:"block",position:"relative",container:"tab-content / inline-size"},({theme:e})=>({fontSize:e.typography.size.s2-1,background:e.background.content}),({bordered:e,theme:t})=>e?{borderRadius:`0 0 ${t.appBorderRadius-1}px ${t.appBorderRadius-1}px`}:{},({absolute:e,bordered:t})=>e?{height:`calc(100% - ${t?42:40}px)`,position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:40+(t?1:0),overflow:"auto",[`& > *:first-child${Sne}`]:{position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:0+(t?1:0),height:`calc(100% - ${t?2:0}px)`,overflow:"auto"}}:{}),M4=g.forwardRef(({active:e,render:t,children:r},n)=>(Hp("The `TabWrapper` component is deprecated. Use `TabsView` instead."),m.createElement(L4,{"data-deprecated":"TabWrapper",ref:n,active:e},t?t():r)));M4.displayName="TabWrapper";var Cne=class extends g.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error("Error rendering addon panel"),console.error(e),console.error(t.componentStack)}render(){return this.state.hasError&&this.props.active?m.createElement(Yu,{title:"This addon has errors",description:"Check your browser logs and addon code to pinpoint what went wrong. This issue was not caused by Storybook."}):this.props.children}},mv=g.memo(({children:e,selected:t=null,actions:r,absolute:n=!1,bordered:a=!1,tools:l=null,backgroundColor:i,id:o=null,menuName:s="Tabs",emptyState:u,showToolsWhenEmpty:c})=>{Hp("The `Tabs` component is deprecated. Use `TabsView` instead.");let d=g.useMemo(()=>mne(e).map((h,v)=>({...h,active:t?h.id===t:v===0})),[e,t]),{visibleList:f,tabBarRef:p,tabRefs:y,AddonTab:b}=Ene(d),S=u??m.createElement(Yu,{title:"Nothing found"});return!c&&d.length===0?S:m.createElement(xne,{"data-deprecated":"Tabs",absolute:n,bordered:a,id:o},m.createElement(hv,{scrollable:!1,border:!0,backgroundColor:i},m.createElement(gv,{style:{whiteSpace:"normal"},ref:p,role:"tablist"},f.map(({title:h,id:v,active:E,color:x},_)=>{let $=`index-${_}`;return m.createElement(Vu,{id:`tabbutton-${Yi(v)??$}`,ref:C=>{y.current.set(v,C)},className:`tabbutton ${E?"tabbutton-active":""}`,type:"button",key:v,active:E,textColor:x,onClick:C=>{C.preventDefault(),r.onSelect(v)},role:"tab","aria-selected":E},typeof h=="function"?m.createElement("title",null):h)}),m.createElement(b,{menuName:s,actions:r})),l),m.createElement(_ne,{id:"panel-tab-content",bordered:a,absolute:n},d.length?d.map(({id:h,active:v,render:E})=>m.createElement(Cne,{key:h,active:v},m.createElement(E,{active:v},null))):S))});mv.displayName="Tabs";var F4=class extends g.Component{constructor(e){super(e),this.handlers={onSelect:t=>this.setState({selected:t})},Hp("The `TabsState` class is deprecated. Use `TabsView` instead."),this.state={selected:e.initial}}render(){let{bordered:e=!1,absolute:t=!1,children:r,backgroundColor:n,menuName:a}=this.props,{selected:l}=this.state;return m.createElement(mv,{bordered:e,absolute:t,selected:l,backgroundColor:n,menuName:a,actions:this.handlers},r)}};F4.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0};var B4=R.span(({theme:e})=>({display:"inline-block",width:1,height:20,background:e.appBorderColor,marginLeft:2,marginRight:2}),({force:e})=>e?{}:{"& + &":{display:"none"}});B4.displayName="Separator";R.div(({theme:e})=>({fontSize:e.typography.size.s2-1,height:"100%"}));function Tne(e,t){let{"aria-label":r,"aria-labelledby":n,orientation:a="horizontal"}=e,[l,i]=g.useState(!1);$e(()=>{var y;i(!!(t.current&&!((y=t.current.parentElement)===null||y===void 0)&&y.closest('[role="toolbar"]')))});let{direction:o}=fa(),s=o==="rtl"&&a==="horizontal",u=PJ(t),c=y=>{if(y.currentTarget.contains(y.target)){if(a==="horizontal"&&y.key==="ArrowRight"||a==="vertical"&&y.key==="ArrowDown")s?u.focusPrevious():u.focusNext();else if(a==="horizontal"&&y.key==="ArrowLeft"||a==="vertical"&&y.key==="ArrowUp")s?u.focusNext():u.focusPrevious();else if(y.key==="Tab"){y.stopPropagation(),d.current=document.activeElement,y.shiftKey?u.focusFirst():u.focusLast();return}else return;y.stopPropagation(),y.preventDefault()}},d=g.useRef(null),f=y=>{!y.currentTarget.contains(y.relatedTarget)&&!d.current&&(d.current=y.target)},p=y=>{var b;if(d.current&&!y.currentTarget.contains(y.relatedTarget)&&!((b=t.current)===null||b===void 0)&&b.contains(y.target)){var S;(S=d.current)===null||S===void 0||S.focus(),d.current=null}};return{toolbarProps:{...Qe(e,{labelable:!0}),role:l?"group":"toolbar","aria-orientation":a,"aria-label":r,"aria-labelledby":r==null?n:void 0,onKeyDownCapture:l?void 0:c,onFocusCapture:l?void 0:p,onBlurCapture:l?void 0:f}}}var P4=({"aria-label":e,"aria-labelledby":t,...r})=>{let n=g.useRef(null),{toolbarProps:a}=Tne({"aria-label":e,"aria-labelledby":t,orientation:"horizontal"},n);return m.createElement(Po,{ref:n,...a,...r})},I4=new WeakMap;function Nf(e,t,r){return e?(typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${I4.get(e)}-${r}-${t}`):""}function k4(e,t,r){let{key:n,isDisabled:a,shouldSelectOnPressUp:l}=e,{selectionManager:i,selectedKey:o}=t,s=n===o,u=a||t.isDisabled||t.selectionManager.isDisabled(n),{itemProps:c,isPressed:d}=m4({selectionManager:i,key:n,ref:r,isDisabled:u,shouldSelectOnPressUp:l,linkBehavior:"selection"}),f=Nf(t,n,"tab"),p=Nf(t,n,"tabpanel"),{tabIndex:y}=c,b=t.collection.getItem(n),S=Qe(b==null?void 0:b.props,{labelable:!0});delete S.id;let h=I3(b==null?void 0:b.props),{focusableProps:v}=Hu({isDisabled:u},r);return{tabProps:ce(S,v,h,c,{id:f,"aria-selected":s,"aria-disabled":u||void 0,"aria-controls":s?p:void 0,tabIndex:u?void 0:y,role:"tab"}),isSelected:s,isDisabled:u,isPressed:d}}function z4(e,t,r){let n=kJ(r)?void 0:0;var a;let l=Nf(t,(a=e.id)!==null&&a!==void 0?a:t==null?void 0:t.selectedKey,"tabpanel"),i=Rp({...e,id:l,"aria-labelledby":Nf(t,t==null?void 0:t.selectedKey,"tab")});return{tabPanelProps:ce(i,{tabIndex:n,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}var wne=class{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var t,r;return this.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(t=r.props)===null||t===void 0)&&t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(t!=null&&this.isDisabled(t));return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(t!=null&&this.isDisabled(t));return t}constructor(e,t,r,n=new Set){this.collection=e,this.flipDirection=t==="rtl"&&r==="horizontal",this.disabledKeys=n,this.tabDirection=r==="horizontal"}};function H4(e,t,r){let{orientation:n="horizontal",keyboardActivation:a="automatic"}=e,{collection:l,selectionManager:i,disabledKeys:o}=t,{direction:s}=fa(),u=g.useMemo(()=>new wne(l,s,n,o),[l,o,n,s]),{collectionProps:c}=g4({ref:r,selectionManager:i,keyboardDelegate:u,selectOnFocus:a==="automatic",disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),d=Mt();I4.set(t,d);let f=Rp({...e,id:d});return{tabListProps:{...ce(c,f),role:"tablist","aria-orientation":n,tabIndex:void 0}}}var Ane=R.button({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none",scrollSnapAlign:"start","&: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-visible":{outline:"0 none",boxShadow:`inset 0 0 0 2px ${e.barSelectedColor}`}}),({isSelected:e,theme:t})=>e?{color:t.barSelectedColor,borderBottomColor:t.barSelectedColor}:{color:t.barTextColor,borderBottomColor:"transparent","&:hover":{color:t.barHoverColor}}),One=R.div({display:"flex",alignItems:"center",flexShrink:0,position:"relative",overflow:"hidden"}),Dne=R.div({display:"flex",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",WebkitScrollbar:"none",scrollSnapType:"x mandatory",flex:1,"&::-webkit-scrollbar":{display:"none"}}),Rne=R.div({display:"flex",flexShrink:0}),oC=28,sC=R.div(({$showStartBorder:e,$showEndBorder:t,theme:r})=>({flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",padding:6,boxShadow:e?`inset 1px 0 0 ${r.appBorderColor}`:t?`inset -1px 0 0 ${r.appBorderColor}`:"none"})),uC=R(Ke)({flexShrink:0,paddingInline:0,width:16}),Nne=({item:e,state:t})=>{let{rendered:r}=e,n=m.useRef(null),a=t,{tabProps:l,isDisabled:i,isPressed:o,isSelected:s}=k4(e,a,n);return m.createElement(Ane,{...l,isDisabled:i,isPressed:o,isSelected:s,className:`tabbutton ${s?"tabbutton-active":""}`,ref:n},r)},U4=({state:e,...t})=>{let r=g.useRef(null),n=g.useRef(null),a=g.useRef(null),{tabListProps:l}=H4({orientation:"horizontal"},e,a),[i,o]=g.useState(!1),[s,u]=g.useState(!1),[c,d]=g.useState(!1),f=g.useCallback(()=>{let h=n.current,v=r.current;if(!h||!v)return;let{scrollLeft:E,scrollWidth:x,clientWidth:_}=h,$=v.clientWidth-(i?oC*2:0),C=x>$;o(C),C?(u(E>0),d(E<x-_)):(u(!1),d(!1))},[i]),p=g.useCallback(()=>{f()},[f]);g.useEffect(()=>{let h=n.current;if(!h||typeof window>"u")return;h.addEventListener("scroll",p,{passive:!0});let v=null;typeof ResizeObserver<"u"&&(v=new ResizeObserver(p),v.observe(h));let E=setTimeout(p,0);return()=>{clearTimeout(E),h.removeEventListener("scroll",p),v&&v.disconnect()}},[p]);let y=g.useCallback(h=>{let v=n.current,E=r.current;if(!v||!E||typeof window>"u")return;let x=E.clientWidth-oC*2,_=h==="backward"?-x:x;typeof v.scrollBy=="function"?v.scrollBy({left:_,behavior:"smooth"}):v.scrollLeft+=_},[]),b=g.useCallback(()=>y("backward"),[y]),S=g.useCallback(()=>y("forward"),[y]);return m.createElement(One,{...t,ref:r,"data-show-scroll-buttons":i},i&&m.createElement(sC,{$showEndBorder:s},m.createElement(uC,{variant:"ghost",padding:"small",size:"small",ariaLabel:"Scroll backward",disabled:!s,onClick:b,tabIndex:-1},m.createElement(Mz,null))),m.createElement(Dne,{ref:n},m.createElement(Rne,{ref:a,...l},[...e.collection].map(h=>m.createElement(Nne,{key:h.key,item:h,state:e})))),i&&m.createElement(sC,{$showStartBorder:c},m.createElement(uC,{variant:"ghost",padding:"small",size:"small",ariaLabel:"Scroll forward",disabled:!c,onClick:S,tabIndex:-1},m.createElement(Fz,null))))},Lne=R.div({overflowY:"hidden",height:"100%"}),j4=({hasScrollbar:e=!0,renderAllChildren:t=!1,state:r})=>{let n=g.useRef(null),a=r,{tabPanelProps:l}=z4(a.selectedItem??{},a,n);return(t?[...a.collection]:[a.selectedItem]).filter(i=>!!i).map(i=>{let o=a.selectedKey===i.key;return m.createElement(Lne,{key:i.key,ref:o?n:void 0,...o?l:{},id:o?`${l.id}`.replace(/null$/,`${i.key}`):void 0,hidden:o?void 0:!0},e?m.createElement(s1,{vertical:!0},i.props.children):i.props.children)})},cC=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this._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])}getChildren(e){let t=this.keyMap.get(e);return(t==null?void 0:t.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let o of i.childNodes)t(o)};for(let i of e)t(i);let r=null,n=0,a=0;for(let[i,o]of this.keyMap)r?(r.nextKey=i,o.prevKey=r.key):(this.firstKey=i,o.prevKey=void 0),o.type==="item"&&(o.index=n++),(o.type==="section"||o.type==="item")&&a++,r=o,r.nextKey=void 0;this._size=a;var l;this.lastKey=(l=r==null?void 0:r.key)!==null&&l!==void 0?l:null}};function Mne(e){let{filter:t,layoutDelegate:r}=e,n=dv(e),a=g.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),l=g.useCallback(u=>t?new cC(t(u)):new cC(u),[t]),i=g.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),o=b4(e,l,i),s=g.useMemo(()=>new fv(o,n,{layoutDelegate:r}),[o,n,r]);return Fne(o,s),{collection:o,disabledKeys:a,selectionManager:s}}function Fne(e,t){let r=g.useRef(null);g.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&r.current){let c=r.current.getItem(t.focusedKey),d=[...r.current.getKeys()].map(h=>{let v=r.current.getItem(h);return(v==null?void 0:v.type)==="item"?v:null}).filter(h=>h!==null),f=[...e.getKeys()].map(h=>{let v=e.getItem(h);return(v==null?void 0:v.type)==="item"?v:null}).filter(h=>h!==null);var n,a;let p=((n=d==null?void 0:d.length)!==null&&n!==void 0?n:0)-((a=f==null?void 0:f.length)!==null&&a!==void 0?a:0);var l,i,o;let y=Math.min(p>1?Math.max(((l=c==null?void 0:c.index)!==null&&l!==void 0?l:0)-p+1,0):(i=c==null?void 0:c.index)!==null&&i!==void 0?i:0,((o=f==null?void 0:f.length)!==null&&o!==void 0?o:0)-1),b=null,S=!1;for(;y>=0;){if(!t.isDisabled(f[y].key)){b=f[y];break}if(y<f.length-1&&!S)y++;else{S=!0;var s,u;y>((s=c==null?void 0:c.index)!==null&&s!==void 0?s:0)&&(y=(u=c==null?void 0:c.index)!==null&&u!==void 0?u:0),y--}}t.setFocusedKey(b?b.key:null)}r.current=e},[e,t])}function Bne(e){var t;let[r,n]=Np(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),a=g.useMemo(()=>r!=null?[r]:[],[r]),{collection:l,disabledKeys:i,selectionManager:o}=Mne({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:a,onSelectionChange:u=>{if(u==="all")return;var c;let d=(c=u.values().next().value)!==null&&c!==void 0?c:null;d===r&&e.onSelectionChange&&e.onSelectionChange(d),n(d)}}),s=r!=null?l.getItem(r):null;return{collection:l,disabledKeys:i,selectionManager:o,selectedKey:r,setSelectedKey:n,selectedItem:s}}function K4(e){var t,r;let n=Bne({...e,onSelectionChange:e.onSelectionChange?s=>{var u;s!=null&&((u=e.onSelectionChange)===null||u===void 0||u.call(e,s))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(r=(t=e.defaultSelectedKey)!==null&&t!==void 0?t:dC(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set))!==null&&r!==void 0?r:void 0}),{selectionManager:a,collection:l,selectedKey:i}=n,o=g.useRef(i);return g.useEffect(()=>{let s=i;e.selectedKey==null&&(a.isEmpty||s==null||!l.getItem(s))&&(s=dC(l,n.disabledKeys),s!=null&&a.setSelectedKeys([s])),(s!=null&&a.focusedKey==null||!a.isFocused&&s!==o.current)&&a.setFocusedKey(s),o.current=s}),{...n,isDisabled:e.isDisabled||!1}}function dC(e,t){let r=null;if(e){var n,a,l,i;for(r=e.getFirstKey();r!=null&&(t.has(r)||!((a=e.getItem(r))===null||a===void 0||(n=a.props)===null||n===void 0)&&n.isDisabled)&&r!==e.getLastKey();)r=e.getKeyAfter(r);r!=null&&(t.has(r)||!((i=e.getItem(r))===null||i===void 0||(l=i.props)===null||l===void 0)&&l.isDisabled)&&r===e.getLastKey()&&(r=e.getFirstKey())}return r}var G4=({defaultSelected:e,onSelectionChange:t,selected:r,tabs:n})=>K4({children:n.map(({children:a,id:l,"aria-label":i,title:o})=>m.createElement(Ere,{key:l,"aria-label":i,title:typeof o=="function"?m.createElement(o,null):o},typeof a=="function"?m.createElement(a,null):a)),disabledKeys:n.filter(({isDisabled:a})=>a).map(({id:a})=>a),defaultSelectedKey:e,onSelectionChange:a=>t==null?void 0:t(`${a}`),selectedKey:r}),Pne=R.div({display:"flex",flexDirection:"column",height:"100%"}),Ine=R(j4)(()=>({flex:1})),kne=R(U4)(({$simulatedGap:e})=>({flex:"1 1 0%",'&[data-show-scroll-buttons="true"]':{marginInlineEnd:e}})),V4=({backgroundColor:e,barInnerStyle:t,defaultSelected:r,emptyState:n,onSelectionChange:a,panelProps:l={},selected:i,showToolsWhenEmpty:o,tabs:s,tools:u,...c})=>{let d=G4({defaultSelected:r,onSelectionChange:a,selected:i,tabs:s}),f=n??m.createElement(Yu,{title:"Nothing found"}),p=s.length>0;return!o&&!p?f:m.createElement(Pne,{...c},m.createElement(Po,{scrollable:!1,border:!0,backgroundColor:e,innerStyle:{display:"flex",justifyContent:"space-between",paddingInlineStart:0,paddingInlineEnd:10,"> *:not(:last-child)":{order:2},"> *":{flexShrink:0},...t,gap:0}},u,p?m.createElement(kne,{state:d,$simulatedGap:(t==null?void 0:t.gap)??6}):m.createElement("div",null)),p?m.createElement(Ine,{state:d,...l}):f)},Up=g.createContext(null),mo=g.createContext(null),zne=g.forwardRef(function(e,t){[e,t]=Ut(e,t,Up);let{children:r,orientation:n="horizontal"}=e;return r=g.useMemo(()=>typeof r=="function"?r({orientation:n,defaultChildren:null}):r,[r,n]),m.createElement(JR,{content:r},a=>m.createElement(Hne,{props:e,collection:a,tabsRef:t}))});function Hne({props:e,tabsRef:t,collection:r}){let{orientation:n="horizontal"}=e,a=K4({...e,collection:r,children:void 0}),{focusProps:l,isFocused:i,isFocusVisible:o}=Fp({within:!0}),s=g.useMemo(()=>({orientation:n,isFocusWithin:i,isFocusVisible:o}),[n,i,o]),u=Cr({...e,defaultClassName:"react-aria-Tabs",values:s}),c=Qe(e,{global:!0});return m.createElement("div",{...ce(c,u,l),ref:t,slot:e.slot||void 0,"data-focused":i||void 0,"data-orientation":n,"data-focus-visible":o||void 0,"data-disabled":a.isDisabled||void 0},m.createElement(da,{values:[[Up,e],[mo,a]]},u.children))}var Une=g.forwardRef(function(e,t){return g.useContext(mo)?m.createElement(jne,{props:e,forwardedRef:t}):m.createElement(r4,e)});function jne({props:e,forwardedRef:t}){let r=g.useContext(mo),{CollectionRoot:n}=g.useContext(Gu),{orientation:a="horizontal",keyboardActivation:l="automatic"}=Z1(Up),i=un(t),{tabListProps:o}=H4({...e,orientation:a,keyboardActivation:l},r,i),s=Cr({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:a,state:r}}),u=Qe(e,{global:!0});return delete u.id,m.createElement("div",{...ce(u,s,o),ref:i,"data-orientation":a||void 0},m.createElement(n,{collection:r.collection,persistedKeys:s4(r.selectionManager.focusedKey)}))}var Y4=class extends ni{};Y4.type="item";var Kne=Ip(Y4,(e,t,r)=>{let n=g.useContext(mo),a=un(t),{tabProps:l,isSelected:i,isDisabled:o,isPressed:s}=k4({key:r.key,...e},n,a),{focusProps:u,isFocused:c,isFocusVisible:d}=Fp(),{hoverProps:f,isHovered:p}=Bo({isDisabled:o,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),y=Cr({...e,children:r.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:i,isDisabled:o,isFocused:c,isFocusVisible:d,isPressed:s,isHovered:p}}),b=r.props.href?"a":"div",S=Qe(e,{global:!0});return delete S.id,delete S.onClick,m.createElement(b,{...ce(S,y,l,u,f),ref:a,"data-selected":i||void 0,"data-disabled":o||void 0,"data-focused":c||void 0,"data-focus-visible":d||void 0,"data-pressed":s||void 0,"data-hovered":p||void 0},y.children)}),Gne=sv(function(e,t){let r=g.useContext(mo),n=un(t),{id:a,...l}=e,{tabPanelProps:i}=z4(e,r,n),{focusProps:o,isFocused:s,isFocusVisible:u}=Fp(),c=r.selectedKey===e.id,d=Cr({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:s,isFocusVisible:u,isInert:e_(!c),state:r}});if(!c&&!e.shouldForceMount)return null;let f=Qe(l,{global:!0});delete f.id;let p=c?ce(f,i,o,d):d;return m.createElement("div",{...p,ref:n,"data-focused":s||void 0,"data-focus-visible":u||void 0,inert:e_(!c||e.inert),"data-inert":c?void 0:"true"},m.createElement(da,{values:[[Up,null],[mo,null]]},m.createElement(Gu.Provider,{value:o4},d.children)))});R.div({display:"flex",alignItems:"center",flexShrink:0,position:"relative",overflow:"hidden"});R.div({display:"flex",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",WebkitScrollbar:"none",scrollSnapType:"x mandatory",flex:1,"&::-webkit-scrollbar":{display:"none"}});R(Une)({display:"flex",flexShrink:0});R.div(({$showStartBorder:e,$showEndBorder:t,theme:r})=>({flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",padding:6,boxShadow:e?`inset 1px 0 0 ${r.appBorderColor}`:t?`inset -1px 0 0 ${r.appBorderColor}`:"none"}));R(Ke)({flexShrink:0,paddingInline:0,width:16});R(Gne)({overflowY:"hidden",height:"100%",display:"block",'&[inert="true"]':{display:"none"}});R(zne)(({$simulatedGap:e})=>({display:"flex",flexDirection:"column",height:"100%",".tablist":{flex:"1 1 100%"},".tablist.tablist-has-scroll":{marginInlineEnd:e},"& > :not(:first-child)":{flex:1}}));R(Kne)(({theme:e})=>({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none",scrollSnapAlign:"start","&:empty":{display:"none"},"&[hidden]":{display:"none"},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-visible":{outline:"0 none",boxShadow:`inset 0 0 0 2px ${e.barSelectedColor}`},color:e.barTextColor,borderBottomColor:"transparent","&:hover":{color:e.barHoverColor},"&[data-selected]":{color:e.barSelectedColor,borderBottomColor:e.barSelectedColor}}));var Vne=_t`
  632. from {
  633. transform: rotate(0deg);
  634. }
  635. to {
  636. transform: rotate(360deg);
  637. }
  638. `,Yne=R.div(({size:e=32})=>({borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-(e/2),marginLeft:-(e/2),height:e,width:e,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:"rgba(97, 97, 97, 0.29)",borderTopColor:"rgb(100,100,100)",animation:`${Vne} 0.7s linear infinite`,mixBlendMode:"difference"})),fC=R.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),qne=R.div(({theme:e})=>({position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:oa(.8,e.color.secondary),overflow:"hidden",cursor:"progress"})),Wne=R.div(({theme:e})=>({position:"absolute",top:0,left:0,height:"100%",background:e.color.secondary})),pC=R.div(({theme:e})=>({minHeight:"2em",fontSize:`${e.typography.size.s1}px`,color:e.textMutedColor})),Xne=R($z)(({theme:e})=>({width:20,height:20,marginBottom:"0.5rem",color:e.textMutedColor})),Zne=_t`
  639. from { content: "..." }
  640. 33% { content: "." }
  641. 66% { content: ".." }
  642. to { content: "..." }
  643. `,Qne=R.span({"&::after":{content:"'...'",animation:`${Zne} 1s linear infinite`,animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),q4=({progress:e,error:t,size:r,...n})=>{if(t)return m.createElement(fC,{"aria-label":t.toString(),"aria-live":"polite",role:"status",...n},m.createElement(Xne,null),m.createElement(pC,null,t.message));if(e){let{value:a,modules:l}=e,{message:i}=e;return l&&(i+=` ${l.complete} / ${l.total} modules`),m.createElement(fC,{"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":a*100,"aria-valuetext":i,role:"progressbar",...n},m.createElement(qne,null,m.createElement(Wne,{style:{width:`${a*100}%`}})),m.createElement(pC,null,i,a<1&&m.createElement(Qne,{key:i})))}return m.createElement(Yne,{"aria-label":"Content is loading...","aria-live":"polite",role:"status",size:r,...n})},Jne=_t({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});R.div(({size:e})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",minWidth:e,minHeight:e}));R.svg(({size:e,width:t})=>({position:"absolute",width:`${e}px!important`,height:`${e}px!important`,transform:"rotate(-90deg)",circle:{r:(e-Math.ceil(t))/2,cx:e/2,cy:e/2,opacity:.15,fill:"transparent",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeDasharray:Math.PI*(e-Math.ceil(t))}}),({progress:e})=>e&&{circle:{opacity:.75}},({spinner:e})=>e&&{animation:`${Jne} 1s linear infinite`,circle:{opacity:.25}});const{deprecate:ohe}=__STORYBOOK_MODULE_CLIENT_LOGGER__;R.pre`
  644. line-height: 18px;
  645. padding: 11px 1rem;
  646. white-space: pre-wrap;
  647. background: rgba(0, 0, 0, 0.05);
  648. color: ${ne.darkest};
  649. border-radius: 3px;
  650. margin: 1rem 0;
  651. width: 100%;
  652. display: block;
  653. overflow: hidden;
  654. font-family: ${rn.fonts.mono};
  655. font-size: ${rn.size.s2-1}px;
  656. `;var W4=O3;Object.keys(O3).forEach(e=>{g.forwardRef((t,r)=>g.createElement(e,{...t,ref:r}))});const eae=Object.freeze(Object.defineProperty({__proto__:null,A:d3,ActionBar:Ik,ActionList:xd,Bar:Po,Blockquote:f3,Button:Ke,Code:P1,DL:p3,Div:h3,EmptyTabContent:Yu,ErrorFormatter:kR,FlexBar:hv,Form:ri,H1:g3,H2:I1,H3:k1,H4:m3,H5:y3,H6:b3,HR:v3,IconButton:SR,Img:E3,LI:S3,Link:fo,ListItem:D4,Loader:q4,OL:x3,P:$3,Popover:Ku,PopoverProvider:pv,Pre:_3,ResetWrapper:B1,ScrollArea:s1,Select:KR,Separator:B4,Span:C3,SyntaxHighlighter:Iu,TT:T3,TabBar:gv,TabButton:Vu,TabList:U4,TabPanel:j4,TabWrapper:M4,Table:w3,Tabs:mv,TabsState:F4,TabsView:V4,ToggleButton:ju,Toolbar:P4,Tooltip:A4,TooltipLinkList:R4,TooltipNote:R3,TooltipProvider:vR,UL:A3,Zoom:IR,codeCommon:ua,components:W4,convertToReactAriaPlacement:av,createCopyToClipboardFunction:DX,nameSpaceClassNames:Ye,useTabsState:G4,withReset:Ze},Symbol.toStringTag,{value:"Module"}));function sr(){return sr=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},sr.apply(null,arguments)}function tae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gu(e,t){return gu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},gu(e,t)}function rae(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gu(e,t)}function Sy(e){return Sy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Sy(e)}function nae(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function X4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(X4=function(){return!!e})()}function aae(e,t,r){if(X4())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&gu(a,r.prototype),a}function xy(e){var t=typeof Map=="function"?new Map:void 0;return xy=function(r){if(r===null||!nae(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 aae(r,arguments,Sy(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),gu(n,r)},xy(e)}var Cn=function(e){rae(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,tae(n)}return t}(xy(Error));function Xg(e){return Math.round(e*255)}function lae(e,t,r){return Xg(e)+","+Xg(t)+","+Xg(r)}function Lf(e,t,r,n){if(n===void 0&&(n=lae),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 hC={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 iae(e){if(typeof e!="string")return e;var t=e.toLowerCase();return hC[t]?"#"+hC[t]:e}var oae=/^#[a-fA-F0-9]{6}$/,sae=/^#[a-fA-F0-9]{8}$/,uae=/^#[a-fA-F0-9]{3}$/,cae=/^#[a-fA-F0-9]{4}$/,Zg=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,dae=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,fae=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,pae=/^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 yo(e){if(typeof e!="string")throw new Cn(3);var t=iae(e);if(t.match(oae))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(sae)){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(uae))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(cae)){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=Zg.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var l=dae.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=fae.exec(t);if(i){var o=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,c="rgb("+Lf(o,s,u)+")",d=Zg.exec(c);if(!d)throw new Cn(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=pae.exec(t.substring(0,50));if(f){var p=parseInt(""+f[1],10),y=parseInt(""+f[2],10)/100,b=parseInt(""+f[3],10)/100,S="rgb("+Lf(p,y,b)+")",h=Zg.exec(S);if(!h)throw new Cn(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 Cn(5)}function hae(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 tl(e){return hae(yo(e))}var gae=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},$y=gae;function vl(e){var t=e.toString(16);return t.length===1?"0"+t:t}function Qg(e){return vl(Math.round(e*255))}function mae(e,t,r){return $y("#"+Qg(e)+Qg(t)+Qg(r))}function Z4(e,t,r){return Lf(e,t,r,mae)}function yae(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return Z4(e.hue,e.saturation,e.lightness);throw new Cn(1)}function bae(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Z4(e.hue,e.saturation,e.lightness):"rgba("+Lf(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Cn(2)}function _y(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return $y("#"+vl(e)+vl(t)+vl(r));if(typeof e=="object"&&t===void 0&&r===void 0)return $y("#"+vl(e.red)+vl(e.green)+vl(e.blue));throw new Cn(6)}function bo(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=yo(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?_y(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?_y(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Cn(7)}var vae=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},Eae=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},Sae=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},xae=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function rl(e){if(typeof e!="object")throw new Cn(8);if(Eae(e))return bo(e);if(vae(e))return _y(e);if(xae(e))return bae(e);if(Sae(e))return yae(e);throw new Cn(8)}function Q4(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):Q4(e,t,n)}}function Tr(e){return Q4(e,e.length,[])}function $ae(e,t){if(t==="transparent")return t;var r=tl(t);return rl(sr({},r,{hue:r.hue+parseFloat(e)}))}Tr($ae);function Io(e,t,r){return Math.max(e,Math.min(t,r))}function _ae(e,t){if(t==="transparent")return t;var r=tl(t);return rl(sr({},r,{lightness:Io(0,1,r.lightness-parseFloat(e))}))}var Cae=Tr(_ae),Bs=Cae;function Tae(e,t){if(t==="transparent")return t;var r=tl(t);return rl(sr({},r,{saturation:Io(0,1,r.saturation-parseFloat(e))}))}Tr(Tae);function wae(e,t){if(t==="transparent")return t;var r=tl(t);return rl(sr({},r,{lightness:Io(0,1,r.lightness+parseFloat(e))}))}var Aae=Tr(wae),Cy=Aae;function Oae(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=yo(t),a=sr({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),l=yo(r),i=sr({},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 bo(p)}var Dae=Tr(Oae),J4=Dae;function Rae(e,t){if(t==="transparent")return t;var r=yo(t),n=typeof r.alpha=="number"?r.alpha:1,a=sr({},r,{alpha:Io(0,1,(n*100+parseFloat(e)*100)/100)});return bo(a)}var Nae=Tr(Rae),Jg=Nae;function Lae(e,t){if(t==="transparent")return t;var r=tl(t);return rl(sr({},r,{saturation:Io(0,1,r.saturation+parseFloat(e))}))}Tr(Lae);function Mae(e,t){return t==="transparent"?t:rl(sr({},tl(t),{hue:parseFloat(e)}))}Tr(Mae);function Fae(e,t){return t==="transparent"?t:rl(sr({},tl(t),{lightness:parseFloat(e)}))}Tr(Fae);function Bae(e,t){return t==="transparent"?t:rl(sr({},tl(t),{saturation:parseFloat(e)}))}Tr(Bae);function Pae(e,t){return t==="transparent"?t:J4(parseFloat(e),"rgb(0, 0, 0)",t)}Tr(Pae);function Iae(e,t){return t==="transparent"?t:J4(parseFloat(e),"rgb(255, 255, 255)",t)}Tr(Iae);function kae(e,t){if(t==="transparent")return t;var r=yo(t),n=typeof r.alpha=="number"?r.alpha:1,a=sr({},r,{alpha:Io(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return bo(a)}var zae=Tr(kae),ft=zae,Hae=R.div(Ze,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:ft(.3,e.color.defaultText),fontSize:e.typography.size.s2})),e6=e=>m.createElement(Hae,{...e,className:"docblock-emptyblock sb-unstyled"}),Uae=R(Iu)(({theme:e})=>({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"}})),jae=R.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),Hc=R.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${df}`]:{margin:0}})),Kae=()=>m.createElement(jae,null,m.createElement(Hc,null),m.createElement(Hc,{style:{width:"80%"}}),m.createElement(Hc,{style:{width:"30%"}}),m.createElement(Hc,{style:{width:"80%"}})),jp=({isLoading:e,error:t,language:r,code:n,dark:a,format:l=!0,copyable:i=!0,...o})=>{let{typography:s}=fp();if(e)return m.createElement(Kae,null);if(t)return m.createElement(e6,null,t);let u=m.createElement(Uae,{bordered:!0,copyable:i,format:l,language:r??"jsx",className:"docblock-source sb-unstyled",...o},n);if(typeof a>"u")return u;let c=a?Ol.dark:Ol.light;return m.createElement(r1,{theme:cf({...c,fontCode:s.fonts.mono,fontBase:s.fonts.base})},u)};const Ty={},t6=m.createContext(Ty);function yv(e){const t=m.useContext(t6);return m.useMemo(function(){return typeof e=="function"?e(t):{...t,...e}},[t,e])}function Gae(e){let t;return e.disableParentContext?t=typeof e.components=="function"?e.components(Ty):e.components||Ty:t=yv(e.components),m.createElement(t6.Provider,{value:t},e.children)}const Vae=Object.freeze(Object.defineProperty({__proto__:null,MDXProvider:Gae,useMDXComponents:yv},Symbol.toStringTag,{value:"Module"})),{once:Yae}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function qae(e){return e==null||typeof e!="object"&&typeof e!="function"}function Wae(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Xae(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Zae(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var Qae="[object RegExp]",Jae="[object String]",ele="[object Number]",tle="[object Boolean]",rle="[object Arguments]",nle="[object Symbol]",ale="[object Date]",lle="[object Map]",ile="[object Set]",ole="[object Array]",sle="[object ArrayBuffer]",ule="[object Object]",cle="[object DataView]",dle="[object Uint8Array]",fle="[object Uint8ClampedArray]",ple="[object Uint16Array]",hle="[object Uint32Array]",gle="[object Int8Array]",mle="[object Int16Array]",yle="[object Int32Array]",ble="[object Float32Array]",vle="[object Float64Array]";function Li(e,t,r,n=new Map,a=void 0){let l=a==null?void 0:a(e,t,r,n);if(l!==void 0)return l;if(qae(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){let i=new Array(e.length);n.set(e,i);for(let o=0;o<e.length;o++)i[o]=Li(e[o],o,r,n,a);return Object.hasOwn(e,"index")&&(i.index=e.index),Object.hasOwn(e,"input")&&(i.input=e.input),i}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let i=new RegExp(e.source,e.flags);return i.lastIndex=e.lastIndex,i}if(e instanceof Map){let i=new Map;n.set(e,i);for(let[o,s]of e)i.set(o,Li(s,o,r,n,a));return i}if(e instanceof Set){let i=new Set;n.set(e,i);for(let o of e)i.add(Li(o,void 0,r,n,a));return i}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(Wae(e)){let i=new(Object.getPrototypeOf(e)).constructor(e.length);n.set(e,i);for(let o=0;o<e.length;o++)i[o]=Li(e[o],o,r,n,a);return i}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let i=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,i),ha(i,e,r,n,a),i}if(typeof File<"u"&&e instanceof File){let i=new File([e],e.name,{type:e.type});return n.set(e,i),ha(i,e,r,n,a),i}if(typeof Blob<"u"&&e instanceof Blob){let i=new Blob([e],{type:e.type});return n.set(e,i),ha(i,e,r,n,a),i}if(e instanceof Error){let i=new e.constructor;return n.set(e,i),i.message=e.message,i.name=e.name,i.stack=e.stack,i.cause=e.cause,ha(i,e,r,n,a),i}if(e instanceof Boolean){let i=new Boolean(e.valueOf());return n.set(e,i),ha(i,e,r,n,a),i}if(e instanceof Number){let i=new Number(e.valueOf());return n.set(e,i),ha(i,e,r,n,a),i}if(e instanceof String){let i=new String(e.valueOf());return n.set(e,i),ha(i,e,r,n,a),i}if(typeof e=="object"&&Ele(e)){let i=Object.create(Object.getPrototypeOf(e));return n.set(e,i),ha(i,e,r,n,a),i}return e}function ha(e,t,r=e,n,a){let l=[...Object.keys(t),...Xae(t)];for(let i=0;i<l.length;i++){let o=l[i],s=Object.getOwnPropertyDescriptor(e,o);(s==null||s.writable)&&(e[o]=Li(t[o],o,r,n,a))}}function Ele(e){switch(Zae(e)){case rle:case ole:case sle:case cle:case tle:case ale:case ble:case vle:case gle:case mle:case yle:case lle:case ele:case ule:case Qae:case ile:case Jae:case nle:case dle:case fle:case ple:case hle:return!0;default:return!1}}function Sle(e){return Li(e,void 0,e,new Map,void 0)}function xle(e,t){let r={},n=Object.keys(e);for(let a=0;a<n.length;a++){let l=n[a],i=e[l];t(i,l)&&(r[l]=i)}return r}function Sl(){return Sl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sl.apply(this,arguments)}var $le=["children","options"],gC=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),mC={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},_le=["style","script","pre"],Cle=["src","href","data","formAction","srcDoc","action"],Tle=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,wle=/\n{2,}$/,yC=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Ale=/^ *> ?/gm,Ole=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,Dle=/^ {2,}\n/,Rle=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,bC=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,vC=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Nle=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,Lle=/^(?:\n *)*\n/,Mle=/\r\n?/g,Fle=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Ble=/^\[\^([^\]]+)]/,Ple=/\f/g,Ile=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,kle=/^\s*?\[(x|\s)\]/,EC=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,SC=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,xC=/^([^\n]+)\n *(=|-)\2{2,} *\n/,em=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,zle=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,$C=/^<!--[\s\S]*?(?:-->)/,Hle=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,tm=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Ule=/^\{.*\}$/,jle=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Kle=/^<([^ >]+[:@\/][^ >]+)>/,Gle=/-([a-z])?/gi,_C=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Vle=/^[^\n]+(?: \n|\n{2,})/,Yle=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,qle=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Wle=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Xle=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Zle=/\t/g,Qle=/(^ *\||\| *$)/g,Jle=/^ *:-+: *$/,eie=/^ *:-+ *$/,tie=/^ *-+: *$/,Kp=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Gp="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",rie=RegExp(`^([*_])\\1${Kp(1)}${Gp}\\1\\1(?!\\1)`),nie=RegExp(`^([*_])${Kp(0)}${Gp}\\1(?!\\1)`),aie=RegExp(`^(==)${Kp(0)}${Gp}\\1`),lie=RegExp(`^(~~)${Kp(0)}${Gp}\\1`),iie=/^(:[a-zA-Z0-9-_]+:)/,oie=/^\\([^0-9A-Za-z\s])/,sie=/\\([^0-9A-Za-z\s])/g,uie=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,cie=/^\n+/,die=/^([ \t]*)/,fie=/(?:^|\n)( *)$/,bv="(?:\\d+\\.)",vv="(?:[*+-])";function r6(e){return"( *)("+(e===1?bv:vv)+") +"}var n6=r6(1),a6=r6(2);function l6(e){return RegExp("^"+(e===1?n6:a6))}var pie=l6(1),hie=l6(2);function i6(e){return RegExp("^"+(e===1?n6:a6)+"[^\\n]*(?:\\n(?!\\1"+(e===1?bv:vv)+" )[^\\n]*)*(\\n|$)","gm")}var gie=i6(1),mie=i6(2);function o6(e){let t=e===1?bv:vv;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var s6=o6(1),u6=o6(2);function CC(e,t){let r=t===1,n=r?s6:u6,a=r?gie:mie,l=r?pie:hie;return{t:i=>l.test(i),o:vo(function(i,o){let s=fie.exec(o.prevCapture);return s&&(o.list||!o.inline&&!o.simple)?n.exec(i=s[1]+i):null}),i:1,u(i,o,s){let u=r?+i[2]:void 0,c=i[0].replace(wle,`
  657. `).match(a),d=!1;return{items:c.map(function(f,p){let y=l.exec(f)[0].length,b=RegExp("^ {1,"+y+"}","gm"),S=f.replace(b,"").replace(l,""),h=p===c.length-1,v=S.indexOf(`
  658. `)!==-1||h&&d;d=v;let E=s.inline,x=s.list,_;s.list=!0,v?(s.inline=!1,_=Ps(S)+`
  659. `):(s.inline=!0,_=Ps(S));let $=o(_,s);return s.inline=E,s.list=x,$}),ordered:r,start:u}},l:(i,o,s)=>e(i.ordered?"ol":"ul",{key:s.key,start:i.type==="20"?i.start:void 0},i.items.map(function(u,c){return e("li",{key:c},o(u,s))}))}}var yie=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),bie=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function TC(e){return typeof e=="string"}function Ps(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Cd(e,t){return e.startsWith(t)}function vie(e,t,r){if(Array.isArray(r)){for(let n=0;n<r.length;n++)if(Cd(e,r[n]))return!0;return!1}return r(e,t)}function ls(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Eie(e){return tie.test(e)?"right":Jle.test(e)?"center":eie.test(e)?"left":null}function wC(e,t,r,n){let a=r.inTable;r.inTable=!0;let l=[[]],i="";function o(){if(!i)return;let s=l[l.length-1];s.push.apply(s,t(i,r)),i=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((s,u,c)=>{s.trim()==="|"&&(o(),n)?u!==0&&u!==c.length-1&&l.push([]):i+=s}),o(),r.inTable=a,l}function Sie(e,t,r){r.inline=!0;let n=e[2]?e[2].replace(Qle,"").split("|").map(Eie):[],a=e[3]?function(i,o,s){return i.trim().split(`
  660. `).map(function(u){return wC(u,o,s,!0)})}(e[3],t,r):[],l=wC(e[1],t,r,!!a.length);return r.inline=!1,a.length?{align:n,cells:a,header:l,type:"25"}:{children:l,type:"21"}}function AC(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function vo(e){return e.inline=1,e}function ul(e){return vo(function(t,r){return r.inline?e.exec(t):null})}function ga(e){return vo(function(t,r){return r.inline||r.simple?e.exec(t):null})}function Hn(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Uc(e){return vo(function(t){return e.exec(t)})}var xie=/(javascript|vbscript|data(?!:image)):/i;function $ie(e){try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(xie.test(t))return null}catch{return null}return e}function fn(e){return e&&e.replace(sie,"$1")}function Td(e,t,r){let n=r.inline||!1,a=r.simple||!1;r.inline=!0,r.simple=!0;let l=e(t,r);return r.inline=n,r.simple=a,l}function _ie(e,t,r){let n=r.inline||!1,a=r.simple||!1;r.inline=!1,r.simple=!0;let l=e(t,r);return r.inline=n,r.simple=a,l}function Cie(e,t,r){let n=r.inline||!1;r.inline=!1;let a=e(t,r);return r.inline=n,a}var rm=(e,t,r)=>({children:Td(t,e[2],r)});function nm(){return{}}function am(){return null}function Tie(...e){return e.filter(Boolean).join(" ")}function lm(e,t,r){let n=e,a=t.split(".");for(;a.length&&(n=n[a[0]],n!==void 0);)a.shift();return n||r}function wie(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Sl({},mC,t.namedCodesToUnicode):mC;let r=t.slugify||ls,n=t.sanitizer||$ie,a=t.createElement||g.createElement,l=[yC,bC,vC,t.enforceAtxHeadings?SC:EC,xC,_C,s6,u6],i=[...l,Vle,em,$C,tm];function o(h,v){for(let E=0;E<h.length;E++)if(h[E].test(v))return!0;return!1}function s(h,v,...E){let x=lm(t.overrides,h+".props",{});return a(function(_,$){let C=lm($,_);return C?typeof C=="function"||typeof C=="object"&&"render"in C?C:lm($,_+".component",_):_}(h,t.overrides),Sl({},v,x,{className:Tie(v==null?void 0:v.className,x.className)||void 0}),...E)}function u(h){h=h.replace(Ile,"");let v=!1;t.forceInline?v=!0:t.forceBlock||(v=Xle.test(h)===!1);let E=b(y(v?h:Ps(h).replace(cie,"")+`
  661. `,{inline:v}));for(;TC(E[E.length-1])&&!E[E.length-1].trim();)E.pop();if(t.wrapper===null)return E;let x=t.wrapper||(v?"span":"div"),_;if(E.length>1||t.forceWrapper)_=E;else{if(E.length===1)return _=E[0],typeof _=="string"?s("span",{key:"outer"},_):_;_=null}return a(x,{key:"outer"},_)}function c(h,v){if(!v||!v.trim())return null;let E=v.match(Tle);return E?E.reduce(function(x,_){let $=_.indexOf("=");if($!==-1){let C=function(T){return T.indexOf("-")!==-1&&T.match(Hle)===null&&(T=T.replace(Gle,function(M,P){return P.toUpperCase()})),T}(_.slice(0,$)).trim(),w=function(T){let M=T[0];return(M==='"'||M==="'")&&T.length>=2&&T[T.length-1]===M?T.slice(1,-1):T}(_.slice($+1).trim()),A=gC[C]||C;if(A==="ref")return x;let O=x[A]=function(T,M,P,I){return M==="style"?function(H){let L=[],D="",N=!1,U=!1,B="";if(!H)return L;for(let V=0;V<H.length;V++){let Z=H[V];if(Z!=='"'&&Z!=="'"||N||(U?Z===B&&(U=!1,B=""):(U=!0,B=Z)),Z==="("&&D.endsWith("url")?N=!0:Z===")"&&N&&(N=!1),Z!==";"||U||N)D+=Z;else{let J=D.trim();if(J){let j=J.indexOf(":");if(j>0){let X=J.slice(0,j).trim(),te=J.slice(j+1).trim();L.push([X,te])}}D=""}}let G=D.trim();if(G){let V=G.indexOf(":");if(V>0){let Z=G.slice(0,V).trim(),J=G.slice(V+1).trim();L.push([Z,J])}}return L}(P).reduce(function(H,[L,D]){return H[L.replace(/(-[a-z])/g,N=>N[1].toUpperCase())]=I(D,T,L),H},{}):Cle.indexOf(M)!==-1?I(fn(P),T,M):(P.match(Ule)&&(P=fn(P.slice(1,P.length-1))),P==="true"||P!=="false"&&P)}(h,C,w,n);typeof O=="string"&&(em.test(O)||tm.test(O))&&(x[A]=u(O.trim()))}else _!=="style"&&(x[gC[_]||_]=!0);return x},{}):null}let d=[],f={},p={0:{t:[">"],o:Hn(yC),i:1,u(h,v,E){let[,x,_]=h[0].replace(Ale,"").match(Ole);return{alert:x,children:v(_,E)}},l(h,v,E){let x={key:E.key};return h.alert&&(x.className="markdown-alert-"+r(h.alert.toLowerCase(),ls),h.children.unshift({attrs:{},children:[{type:"27",text:h.alert}],noInnerParse:!0,type:"11",tag:"header"})),s("blockquote",x,v(h.children,E))}},1:{t:[" "],o:Uc(Dle),i:1,u:nm,l:(h,v,E)=>s("br",{key:E.key})},2:{t:["--","__","**","- ","* ","_ "],o:Hn(Rle),i:1,u:nm,l:(h,v,E)=>s("hr",{key:E.key})},3:{t:[" "],o:Hn(vC),i:0,u:h=>({lang:void 0,text:fn(Ps(h[0].replace(/^ {4}/gm,"")))}),l:(h,v,E)=>s("pre",{key:E.key},s("code",Sl({},h.attrs,{className:h.lang?"lang-"+h.lang:""}),h.text))},4:{t:["```","~~~"],o:Hn(bC),i:0,u:h=>({attrs:c("code",h[3]||""),lang:h[2]||void 0,text:h[4],type:"3"})},5:{t:["`"],o:ga(Nle),i:3,u:h=>({text:fn(h[2])}),l:(h,v,E)=>s("code",{key:E.key},h.text)},6:{t:["[^"],o:Hn(Fle),i:0,u:h=>(d.push({footnote:h[2],identifier:h[1]}),{}),l:am},7:{t:["[^"],o:ul(Ble),i:1,u:h=>({target:"#"+r(h[1],ls),text:h[1]}),l:(h,v,E)=>s("a",{key:E.key,href:n(h.target,"a","href")},s("sup",{key:E.key},h.text))},8:{t:["[ ]","[x]"],o:ul(kle),i:1,u:h=>({completed:h[1].toLowerCase()==="x"}),l:(h,v,E)=>s("input",{checked:h.completed,key:E.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Hn(t.enforceAtxHeadings?SC:EC),i:1,u:(h,v,E)=>({children:Td(v,h[2],E),id:r(h[2],ls),level:h[1].length}),l:(h,v,E)=>s("h"+h.level,{id:h.id,key:E.key},v(h.children,E))},10:{t:h=>{let v=h.indexOf(`
  662. `);return v>0&&v<h.length-1&&(h[v+1]==="="||h[v+1]==="-")},o:Hn(xC),i:1,u:(h,v,E)=>({children:Td(v,h[1],E),level:h[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Uc(em),i:1,u(h,v,E){let[,x]=h[3].match(die),_=RegExp("^"+x,"gm"),$=h[3].replace(_,""),C=o(i,$)?Cie:Td,w=h[1].toLowerCase(),A=_le.indexOf(w)!==-1,O=(A?w:h[1]).trim(),T={attrs:c(O,h[2]),noInnerParse:A,tag:O};if(E.inAnchor=E.inAnchor||w==="a",A)T.text=h[3];else{let M=E.inHTML;E.inHTML=!0,T.children=C(v,$,E),E.inHTML=M}return E.inAnchor=!1,T},l:(h,v,E)=>s(h.tag,Sl({key:E.key},h.attrs),h.text||(h.children?v(h.children,E):""))},13:{t:["<"],o:Uc(tm),i:1,u(h){let v=h[1].trim();return{attrs:c(v,h[2]||""),tag:v}},l:(h,v,E)=>s(h.tag,Sl({},h.attrs,{key:E.key}))},12:{t:["<!--"],o:Uc($C),i:1,u:()=>({}),l:am},14:{t:["!["],o:ga(bie),i:1,u:h=>({alt:fn(h[1]),target:fn(h[2]),title:fn(h[3])}),l:(h,v,E)=>s("img",{key:E.key,alt:h.alt||void 0,title:h.title||void 0,src:n(h.target,"img","src")})},15:{t:["["],o:ul(yie),i:3,u:(h,v,E)=>({children:_ie(v,h[1],E),target:fn(h[2]),title:fn(h[3])}),l:(h,v,E)=>s("a",{key:E.key,href:n(h.target,"a","href"),title:h.title},v(h.children,E))},16:{t:["<"],o:ul(Kle),i:0,u(h){let v=h[1],E=!1;return v.indexOf("@")!==-1&&v.indexOf("//")===-1&&(E=!0,v=v.replace("mailto:","")),{children:[{text:v,type:"27"}],target:E?"mailto:"+v:v,type:"15"}}},17:{t:(h,v)=>!v.inAnchor&&!t.disableAutoLink&&(Cd(h,"http://")||Cd(h,"https://")),o:ul(jle),i:0,u:h=>({children:[{text:h[1],type:"27"}],target:h[1],title:void 0,type:"15"})},20:CC(s,1),33:CC(s,2),19:{t:[`
  663. `],o:Hn(Lle),i:3,u:nm,l:()=>`
  664. `},21:{o:vo(function(h,v){if(v.inline||v.simple||v.inHTML&&h.indexOf(`
  665. `)===-1&&v.prevCapture.indexOf(`
  666. `)===-1)return null;let E="",x=0;for(;;){let $=h.indexOf(`
  667. `,x),C=h.slice(x,$===-1?void 0:$+1);if(o(l,C)||(E+=C,$===-1||!C.trim()))break;x=$+1}let _=Ps(E);return _===""?null:[E,,_]}),i:3,u:rm,l:(h,v,E)=>s("p",{key:E.key},v(h.children,E))},22:{t:["["],o:ul(Yle),i:0,u:h=>(f[h[1]]={target:h[2],title:h[4]},{}),l:am},23:{t:["!["],o:ga(qle),i:0,u:h=>({alt:h[1]?fn(h[1]):void 0,ref:h[2]}),l:(h,v,E)=>f[h.ref]?s("img",{key:E.key,alt:h.alt,src:n(f[h.ref].target,"img","src"),title:f[h.ref].title}):null},24:{t:h=>h[0]==="["&&h.indexOf("](")===-1,o:ul(Wle),i:0,u:(h,v,E)=>({children:v(h[1],E),fallbackChildren:h[0],ref:h[2]}),l:(h,v,E)=>f[h.ref]?s("a",{key:E.key,href:n(f[h.ref].target,"a","href"),title:f[h.ref].title},v(h.children,E)):s("span",{key:E.key},h.fallbackChildren)},25:{t:["|"],o:Hn(_C),i:1,u:Sie,l(h,v,E){let x=h;return s("table",{key:E.key},s("thead",null,s("tr",null,x.header.map(function(_,$){return s("th",{key:$,style:AC(x,$)},v(_,E))}))),s("tbody",null,x.cells.map(function(_,$){return s("tr",{key:$},_.map(function(C,w){return s("td",{key:w,style:AC(x,w)},v(C,E))}))})))}},27:{o:vo(function(h,v){let E;return Cd(h,":")&&(E=iie.exec(h)),E||uie.exec(h)}),i:4,u(h){let v=h[0];return{text:v.indexOf("&")===-1?v:v.replace(zle,(E,x)=>t.namedCodesToUnicode[x]||E)}},l:h=>h.text},28:{t:["**","__"],o:ga(rie),i:2,u:(h,v,E)=>({children:v(h[2],E)}),l:(h,v,E)=>s("strong",{key:E.key},v(h.children,E))},29:{t:h=>{let v=h[0];return(v==="*"||v==="_")&&h[1]!==v},o:ga(nie),i:3,u:(h,v,E)=>({children:v(h[2],E)}),l:(h,v,E)=>s("em",{key:E.key},v(h.children,E))},30:{t:["\\"],o:ga(oie),i:1,u:h=>({text:h[1],type:"27"})},31:{t:["=="],o:ga(aie),i:3,u:rm,l:(h,v,E)=>s("mark",{key:E.key},v(h.children,E))},32:{t:["~~"],o:ga(lie),i:3,u:rm,l:(h,v,E)=>s("del",{key:E.key},v(h.children,E))}};t.disableParsingRawHTML===!0&&(delete p[11],delete p[13]);let y=function(h){var v=Object.keys(h);function E(x,_){var $=[];if(_.prevCapture=_.prevCapture||"",x.trim())for(;x;)for(var C=0;C<v.length;){var w=v[C],A=h[w];if(!A.t||vie(x,_,A.t)){var O=A.o(x,_);if(O&&O[0]){x=x.substring(O[0].length);var T=A.u(O,E,_);_.prevCapture+=O[0],T.type||(T.type=w),$.push(T);break}C++}else C++}return _.prevCapture="",$}return v.sort(function(x,_){return h[x].i-h[_].i||(x<_?-1:1)}),function(x,_){return E(function($){return $.replace(Mle,`
  668. `).replace(Ple,"").replace(Zle," ")}(x),_)}}(p),b=function(h,v){return function E(x,_={}){if(Array.isArray(x)){let $=_.key,C=[],w=!1;for(let A=0;A<x.length;A++){_.key=A;let O=E(x[A],_),T=TC(O);T&&w?C[C.length-1]+=O:O!==null&&C.push(O),w=T}return _.key=$,C}return function($,C,w){let A=h[$.type].l;return v?v(()=>A($,C,w),$,C,w):A($,C,w)}(x,E,_)}}(p,t.renderRule),S=u(e);return d.length?s("div",null,S,s("footer",{key:"footer"},d.map(function(h){return s("div",{id:r(h.identifier,ls),key:h.identifier},h.identifier,b(y(h.footnote,{inline:!0})))}))):S}var c6=e=>{let{children:t,options:r}=e,n=function(a,l){if(a==null)return{};var i,o,s={},u=Object.keys(a);for(o=0;o<u.length;o++)l.indexOf(i=u[o])>=0||(s[i]=a[i]);return s}(e,$le);return g.cloneElement(wie(t??"",r),n)},Aie=e=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},"@media (forced-colors: active)":{background:"ButtonFace",outline:"1px solid ButtonText"},"&:focus-within":{outline:`1px solid ${e.color.secondary}`,outlineOffset:1,"@media (forced-colors: active)":{outline:"1px solid Highlight",outlineOffset:1}},input:{...a1,appearance:"none",left:0,top:0,background:"transparent",cursor:"pointer",borderRadius:"3em"},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:ft(.5,e.color.defaultText),background:"transparent","&:active":{boxShadow:`${Jg(.05,e.appBorderColor)} 0 0 0 2px inset`,color:Jg(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8},"@media (forced-colors: active)":{color:"ButtonText",boxShadow:"none"}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${Jg(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px","@media (forced-colors: active)":{forcedColorAdjust:"none",background:"Highlight",color:"HighlightText",boxShadow:"none",outline:"1px solid ButtonText"}}}),Oie=R.label(({theme:e})=>Aie(e)),Die=e=>e==="true",Rie=({name:e,storyId:t,value:r,onChange:n,onBlur:a,onFocus:l,argType:i})=>{var d;let o=g.useCallback(()=>n(!1),[n]),s=!!((d=i==null?void 0:i.table)!=null&&d.readonly);if(r===void 0)return m.createElement(Ke,{ariaLabel:!1,variant:"outline",size:"medium",id:lp(e,t),onClick:o,disabled:s},"Set boolean");let u=ln(e,t),c=typeof r=="string"?Die(r):r;return m.createElement(Oie,{"aria-disabled":s,htmlFor:u,"aria-label":e},m.createElement("input",{id:u,type:"checkbox",onChange:f=>n(f.target.checked),checked:c,role:"switch",disabled:s,name:e,onBlur:a,onFocus:l}),m.createElement("span",{"aria-hidden":"true"},"False"),m.createElement("span",{"aria-hidden":"true"},"True"))},Nie=e=>{let[t,r,n]=e.split("-"),a=new Date;return a.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),a},Lie=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},Mie=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),a=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${a}`},Fie=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},OC=R(ri.Input)(({theme:e})=>({"&[readonly]":{background:e.base==="light"?e.color.lighter:"transparent"},"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}})),Bie=R.fieldset({flex:1,display:"flex",border:0,marginInline:0,padding:0,gap:10,"div:first-of-type":{flex:4},"div:last-of-type":{flex:3}}),Pie=({name:e,storyId:t,value:r,onChange:n,onFocus:a,onBlur:l,argType:i})=>{var b;let[o,s]=g.useState(!0),u=g.useRef(),c=g.useRef(),d=!!((b=i==null?void 0:i.table)!=null&&b.readonly);g.useEffect(()=>{o!==!1&&(u&&u.current&&(u.current.value=r?Mie(r):""),c&&c.current&&(c.current.value=r?Fie(r):""))},[r]);let f=S=>{if(!S.target.value)return n();let h=Nie(S.target.value),v=new Date(r??"");v.setFullYear(h.getFullYear(),h.getMonth(),h.getDate());let E=v.getTime();E&&n(E),s(!!E)},p=S=>{if(!S.target.value)return n();let h=Lie(S.target.value),v=new Date(r??"");v.setHours(h.getHours()),v.setMinutes(h.getMinutes());let E=v.getTime();E&&n(E),s(!!E)},y=ln(e,t);return m.createElement(Bie,null,m.createElement("legend",{className:"sb-sr-only"},e),m.createElement("label",{htmlFor:`${y}-date`,className:"sb-sr-only"},"Date"),m.createElement(OC,{type:"date",max:"9999-12-31",ref:u,id:`${y}-date`,name:`${y}-date`,readOnly:d,onChange:f,onFocus:a,onBlur:l}),m.createElement("label",{htmlFor:`${y}-time`,className:"sb-sr-only"},"Time"),m.createElement(OC,{type:"time",id:`${y}-time`,name:`${y}-time`,ref:c,onChange:p,readOnly:d,onFocus:a,onBlur:l}),o?null:m.createElement("div",null,"invalid"))},Iie=R.label({display:"flex"}),kie=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},zie=R(ri.Input)(({theme:e})=>({background:e.base==="light"?e.color.lighter:"transparent"})),Hie=({name:e,storyId:t,value:r,onChange:n,min:a,max:l,step:i,onBlur:o,onFocus:s,argType:u})=>{var x;let[c,d]=g.useState(typeof r=="number"?r:""),[f,p]=g.useState(!1),[y,b]=g.useState(null),S=!!((x=u==null?void 0:u.table)!=null&&x.readonly),h=g.useCallback(_=>{d(_.target.value);let $=parseFloat(_.target.value);if(Number.isNaN($))b(new Error(`'${_.target.value}' is not a number`));else{let C=$;typeof a=="number"&&C<a&&(C=a),typeof l=="number"&&C>l&&(C=l),n(C),b(null),C!==$&&d(String(C))}},[n,b,a,l]),v=g.useCallback(()=>{d("0"),n(0),p(!0)},[p]),E=g.useRef(null);return g.useEffect(()=>{f&&E.current&&E.current.select()},[f]),g.useEffect(()=>{let _=typeof r=="number"?r:"";c!==_&&d(_)},[r]),r===void 0?m.createElement(Ke,{ariaLabel:!1,variant:"outline",size:"medium",id:lp(e,t),onClick:v,disabled:S},"Set number"):m.createElement(Iie,null,m.createElement(zie,{ref:E,id:ln(e,t),type:"number",onChange:h,size:"flex",placeholder:"Edit number...",value:c,valid:y?"error":void 0,autoFocus:f,readOnly:S,name:e,min:a,max:l,step:i,onFocus:s,onBlur:o}))};const{logger:Uie}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var d6=(e,t)=>{let r=t&&Object.entries(t).find(([n,a])=>a===e);return r?r[0]:void 0},wy=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],f6=(e,t)=>e&&t&&e.map(r=>t[r]),jie=R.fieldset({border:"none",marginInline:0,padding:0,display:"flex",alignItems:"flex-start"},({$isInline:e})=>e?{flexWrap:"wrap",gap:15,label:{display:"inline-flex"}}:{flexDirection:"column",gap:8,label:{display:"flex"}}),Kie=R.span(({$readOnly:e})=>({opacity:e?.5:1})),Gie=R.label(({$readOnly:e})=>({lineHeight:"20px",alignItems:"center",cursor:e?"not-allowed":"pointer",input:{cursor:e?"not-allowed":"pointer",margin:0,marginRight:6}})),DC=({name:e,storyId:t,options:r,value:n,onChange:a,isInline:l,argType:i})=>{var p;if(!r)return Uie.warn(`Checkbox with no options: ${e}`),m.createElement(m.Fragment,null,"-");let o=wy(n||[],r),[s,u]=g.useState(o),c=!!((p=i==null?void 0:i.table)!=null&&p.readonly),d=y=>{let b=y.target.value,S=[...s];S.includes(b)?S.splice(S.indexOf(b),1):S.push(b),a(f6(S,r)),u(S)};g.useEffect(()=>{u(wy(n||[],r))},[n]);let f=ln(e,t);return m.createElement(jie,{$isInline:l},m.createElement("legend",{className:"sb-sr-only"},e),Object.keys(r).map((y,b)=>{let S=`${f}-${b}`;return m.createElement(Gie,{key:S,htmlFor:S,$readOnly:c},m.createElement("input",{type:"checkbox",disabled:c,id:S,name:S,value:y,onChange:d,checked:s==null?void 0:s.includes(y)}),m.createElement(Kie,{$readOnly:c},y))}))};const{logger:Vie}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Yie=R.fieldset({border:"none",marginInline:0,padding:0,display:"flex",alignItems:"flex-start"},({isInline:e})=>e?{flexWrap:"wrap",gap:15,label:{display:"inline-flex"}}:{flexDirection:"column",gap:8,label:{display:"flex"}}),qie=R.span(({$readOnly:e})=>({opacity:e?.5:1})),Wie=R.label(({$readOnly:e})=>({lineHeight:"20px",alignItems:"center",cursor:e?"not-allowed":"pointer",input:{cursor:e?"not-allowed":"pointer",margin:0,marginRight:6}})),RC=({name:e,storyId:t,options:r,value:n,onChange:a,isInline:l,argType:i})=>{var c;if(!r)return Vie.warn(`Radio with no options: ${e}`),m.createElement(m.Fragment,null,"-");let o=d6(n,r),s=ln(e,t),u=!!((c=i==null?void 0:i.table)!=null&&c.readonly);return m.createElement(Yie,{isInline:l},m.createElement("legend",{className:"sb-sr-only"},e),Object.keys(r).map((d,f)=>{let p=`${s}-${f}`;return m.createElement(Wie,{key:p,htmlFor:p,$readOnly:u},m.createElement("input",{type:"radio",id:p,name:s,disabled:u,value:d,onChange:y=>a(r[y.currentTarget.value]),checked:d===o}),m.createElement(qie,{$readOnly:u},d))}))};const{logger:Xie}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Zie={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},p6=R.select(Zie,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1,"&:hover":{background:e.background.hoverable},"&:checked":{background:"transparent",color:e.color.secondary,fontWeight:e.typography.weight.bold}}}})),h6=R.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),im="Choose option...",Qie=({name:e,storyId:t,value:r,options:n,onChange:a,argType:l})=>{var c;let i=d=>{a(n[d.currentTarget.value])},o=d6(r,n)||im,s=ln(e,t),u=!!((c=l==null?void 0:l.table)!=null&&c.readonly);return m.createElement(h6,null,m.createElement(YO,null),m.createElement("label",{htmlFor:s,className:"sb-sr-only"},e),m.createElement(p6,{disabled:u,id:s,value:o,onChange:i},m.createElement("option",{disabled:o===im,key:"no-selection"},im),Object.keys(n).map(d=>m.createElement("option",{key:d,value:d},d))))},Jie=({name:e,storyId:t,value:r,options:n,onChange:a,argType:l})=>{var c;let i=d=>{let f=Array.from(d.currentTarget.options).filter(p=>p.selected).map(p=>p.value);a(f6(f,n))},o=wy(r,n),s=ln(e,t),u=!!((c=l==null?void 0:l.table)!=null&&c.readonly);return m.createElement(h6,null,m.createElement("label",{htmlFor:s,className:"sb-sr-only"},e),m.createElement(p6,{disabled:u,id:s,multiple:!0,value:o,onChange:i},Object.keys(n).map(d=>m.createElement("option",{key:d,value:d},d))))},NC=e=>{let{name:t,options:r}=e;return r?e.isMulti?m.createElement(Jie,{...e}):m.createElement(Qie,{...e}):(Xie.warn(`Select with no options: ${t}`),m.createElement(m.Fragment,null,"-"))},eoe=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[(t==null?void 0:t[n])||String(n)]=n,r),{}):e,toe={check:DC,"inline-check":DC,radio:RC,"inline-radio":RC,select:NC,"multi-select":NC},di=e=>{let{type:t="select",labels:r,argType:n}=e,a={...e,argType:n,options:n?eoe(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},l=toe[t];if(l)return m.createElement(l,{...a});throw new Error(`Unknown options type: ${t}`)},roe=R.div(({theme:e})=>({position:"relative",":hover":{"& > .rejt-accordion-button::after":{background:e.color.secondary},"& > .rejt-accordion-region > :is(.rejt-plus-menu, .rejt-minus-menu)":{opacity:1}}})),noe=R.button(({theme:e})=>({padding:0,background:"transparent",border:"none",marginRight:"3px",lineHeight:"22px",color:e.color.secondary,"::after":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",height:"22px",background:"transparent",borderRadius:4,transition:"background 0.2s",opacity:.1,paddingRight:"20px"},"::before":{content:'""',position:"absolute"},'&[aria-expanded="true"]::before':{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},'&[aria-expanded="false"]::before':{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"}})),aoe=R.div({display:"inline"});function g6({children:e,name:t,collapsed:r,keyPath:n,deep:a,...l}){let i=`${n.at(-1)??"root"}-${t}-${a}`,o={trigger:`${i}-trigger`,region:`${i}-region`},s=n.length>0?"li":"div";return m.createElement(roe,{as:s},m.createElement(noe,{type:"button","aria-expanded":!r,id:o.trigger,"aria-controls":o.region,className:"rejt-accordion-button",...l},t," :"),m.createElement(aoe,{role:"group",id:o.region,"aria-labelledby":o.trigger,className:"rejt-accordion-region"},e))}var loe="Error",ioe="Object",ooe="Array",soe="String",uoe="Number",coe="Boolean",doe="Date",foe="Null",poe="Undefined",hoe="Function",goe="Symbol",m6="ADD_DELTA_TYPE",y6="REMOVE_DELTA_TYPE",b6="UPDATE_DELTA_TYPE",Ev="value";function $l(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function v6(e,t){let r=$l(e),n=$l(t);return(r==="Function"||n==="Function")&&n!==r}var Sv=class extends g.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus()}onKeydown(e){if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat)return;let{inputRefKey:t,inputRefValue:r}=this.state,{addButtonElement:n,handleCancel:a}=this.props;[t,r,n].some(l=>l===e.target)&&((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),a()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:a}=this.props,{inputRefKey:l,inputRefValue:i}=this.state,o={};if(!t){if(!l.value)return;o.key=l.value}o.newValue=r(!1,n,a,o.key,i.value),e(o)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:a,keyPath:l,deep:i}=this.props,o=r&&g.cloneElement(r,{onClick:this.onSubmit}),s=n&&g.cloneElement(n,{onClick:e}),u=a(Ev,l,i),c=g.cloneElement(u,{placeholder:"Value",ref:this.refInputValue,onKeyDown:this.onKeydown}),d=null;if(!t){let f=a("key",l,i);d=g.cloneElement(f,{placeholder:"Key",ref:this.refInputKey,onKeyDown:this.onKeydown})}return m.createElement("span",{className:"rejt-add-value-node"},d,c,o,s)}};Sv.defaultProps={onlyValue:!1,addButtonElement:m.createElement("button",null,"+"),cancelButtonElement:m.createElement("button",null,"c")};var E6=class extends g.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={data:e.data,name:e.name,keyPath:t??[],deep:e.deep??0,nextDeep:(e.deep??0)+1,collapsed:e.isCollapsed(t,e.deep??0,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n=[]}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,l=n.length;a(n[l-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:l}=this.state,i=n[e];(t||Promise.resolve.bind(Promise))(e,a,l,i).then(()=>{let o={keyPath:a,deep:l,key:e,oldValue:i,type:y6};n.splice(e,1),this.setState({data:n});let{onUpdate:s,onDeltaUpdate:u}=this.props;s(a[a.length-1],n),u(o)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r=[],nextDeep:n}=this.state,{beforeAddAction:a,logger:l}=this.props,i=t.length;(a||Promise.resolve.bind(Promise))(i,r,n,e).then(()=>{t[i]=e,this.setState({data:t}),this.handleAddValueCancel();let{onUpdate:o,onDeltaUpdate:s}=this.props;o(r[r.length-1],t),s({type:m6,keyPath:r,deep:n,key:i,newValue:e})}).catch(l.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:l,keyPath:i,nextDeep:o}=this.state,s=l[e];(a||Promise.resolve.bind(Promise))(e,i,o,s,t).then(()=>{l[e]=t,this.setState({data:l});let{onUpdate:u,onDeltaUpdate:c}=this.props;u(i[i.length-1],l),c({type:b6,keyPath:i,deep:o,key:e,newValue:t,oldValue:s}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:a,readOnly:l,dataType:i,minusMenuElement:o}=this.props,s=l(e,t,r,n,i),u=o&&g.cloneElement(o,{onClick:a,className:"rejt-minus-menu","aria-label":`remove the array '${String(e)}'`});return m.createElement(m.Fragment,null,m.createElement("span",{className:"rejt-collapsed-value"},"[...] ",t.length," ",t.length===1?"item":"items"),!s&&u)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:a,nextDeep:l}=this.state,{isCollapsed:i,handleRemove:o,onDeltaUpdate:s,readOnly:u,dataType:c,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,textareaElementGenerator:y,minusMenuElement:b,plusMenuElement:S,beforeRemoveAction:h,beforeAddAction:v,beforeUpdateAction:E,logger:x,onSubmitValueParser:_}=this.props,$=u(e,t,r,n,c),C=S&&g.cloneElement(S,{onClick:this.handleAddMode,className:"rejt-plus-menu","aria-label":`add a new item to the '${String(e)}' array`}),w=b&&g.cloneElement(b,{onClick:o,className:"rejt-minus-menu","aria-label":`remove the array '${String(e)}'`});return m.createElement(m.Fragment,null,m.createElement("span",{className:"rejt-not-collapsed-delimiter"},"["),!a&&C,m.createElement("ul",{className:"rejt-not-collapsed-list"},t.map((A,O)=>m.createElement(Vp,{key:O,name:O.toString(),data:A,keyPath:r,deep:l,isCollapsed:i,handleRemove:this.handleRemoveItem(O),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:u,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,textareaElementGenerator:y,minusMenuElement:b,plusMenuElement:S,beforeRemoveAction:h,beforeAddAction:v,beforeUpdateAction:E,logger:x,onSubmitValueParser:_}))),!$&&a&&m.createElement("div",{className:"rejt-add-form"},m.createElement(Sv,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,keyPath:r,deep:n,onSubmitValueParser:_})),m.createElement("span",{className:"rejt-not-collapsed-delimiter"},"]"),!$&&w)}render(){let{name:e,collapsed:t,keyPath:r,deep:n}=this.state,a=t?this.renderCollapsed():this.renderNotCollapsed();return m.createElement(g6,{name:e,collapsed:t,deep:n,keyPath:r,onClick:this.handleCollapseMode},a)}};E6.defaultProps={keyPath:[],deep:0,minusMenuElement:m.createElement("span",null," - "),plusMenuElement:m.createElement("span",null," + ")};var S6=class extends g.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={value:e.value,name:e.name,keyPath:t??[],deep:e.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:l}=this.state,{readOnly:i,dataType:o}=this.props,s=i(r,n,a,l,o);e&&!s&&typeof t.focus=="function"&&t.focus()}onKeydown(e){let{inputRef:t}=this.state;e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||t!==e.target||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:l,name:i,deep:o}=this.state;if(!l)return;let s=n(!0,a,o,i,l.value),u={value:s,key:i};(e||Promise.resolve.bind(Promise))(u).then(()=>{v6(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:l,originalValue:i,readOnly:o,dataType:s,textareaElementGenerator:u,minusMenuElement:c,keyPath:d=[]}=this.props,f=null,p=null,y=o(e,i,n,a,s);if(r&&!y){let b=u(Ev,d,a,e,i,s),S=g.cloneElement(b,{ref:this.refInput,defaultValue:t,onKeyDown:this.onKeydown});f=m.createElement("span",{className:"rejt-edit-form"},S),p=null}else{f=m.createElement("span",{className:"rejt-value",onClick:y?void 0:this.handleEditMode},t);let b=d.at(-1),S=c&&g.cloneElement(c,{onClick:l,className:"rejt-minus-menu","aria-label":`remove the function '${String(e)}'${String(b)?` from '${String(b)}'`:""}`});p=y?null:S}return m.createElement("li",{className:"rejt-value-node"},m.createElement("span",{className:"rejt-name"},e," : "),f,p)}};S6.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},cancelButtonElement:m.createElement("button",null,"c"),minusMenuElement:m.createElement("span",null," - ")};var Vp=class extends g.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath??[],deep:e.deep??0}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:a,handleRemove:l,handleUpdateValue:i,onUpdate:o,onDeltaUpdate:s,readOnly:u,addButtonElement:c,cancelButtonElement:d,inputElementGenerator:f,textareaElementGenerator:p,minusMenuElement:y,plusMenuElement:b,beforeRemoveAction:S,beforeAddAction:h,beforeUpdateAction:v,logger:E,onSubmitValueParser:x}=this.props,_=()=>!0,$=$l(e);switch($){case loe:return m.createElement(Ay,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:l,onUpdate:o,onDeltaUpdate:s,readOnly:_,dataType:$,addButtonElement:c,cancelButtonElement:d,inputElementGenerator:f,textareaElementGenerator:p,minusMenuElement:y,plusMenuElement:b,beforeRemoveAction:S,beforeAddAction:h,beforeUpdateAction:v,logger:E,onSubmitValueParser:x});case ioe:return m.createElement(Ay,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:l,onUpdate:o,onDeltaUpdate:s,readOnly:u,dataType:$,addButtonElement:c,cancelButtonElement:d,inputElementGenerator:f,textareaElementGenerator:p,minusMenuElement:y,plusMenuElement:b,beforeRemoveAction:S,beforeAddAction:h,beforeUpdateAction:v,logger:E,onSubmitValueParser:x});case ooe:return m.createElement(E6,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:l,onUpdate:o,onDeltaUpdate:s,readOnly:u,dataType:$,addButtonElement:c,cancelButtonElement:d,inputElementGenerator:f,textareaElementGenerator:p,minusMenuElement:y,plusMenuElement:b,beforeRemoveAction:S,beforeAddAction:h,beforeUpdateAction:v,logger:E,onSubmitValueParser:x});case soe:return m.createElement(ma,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:$,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:x});case uoe:return m.createElement(ma,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:$,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:x});case coe:return m.createElement(ma,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:$,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:x});case doe:return m.createElement(ma,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:_,dataType:$,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:x});case foe:return m.createElement(ma,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:$,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:x});case poe:return m.createElement(ma,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:$,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:x});case hoe:return m.createElement(S6,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:$,cancelButtonElement:d,textareaElementGenerator:p,minusMenuElement:y,logger:E,onSubmitValueParser:x});case goe:return m.createElement(ma,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:_,dataType:$,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:x});default:return null}}};Vp.defaultProps={keyPath:[],deep:0};var Ay=class extends g.Component{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath||[],e.name];this.state={name:e.name,data:e.data,keyPath:t??[],deep:e.deep??0,nextDeep:(e.deep??0)+1,collapsed:e.isCollapsed(t,e.deep??0,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n=[]}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,l=n.length;a(n[l-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n=[],nextDeep:a}=this.state,{beforeAddAction:l,logger:i}=this.props;(l||Promise.resolve.bind(Promise))(e,n,a,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:o,onDeltaUpdate:s}=this.props;o(n[n.length-1],r),s({type:m6,keyPath:n,deep:a,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a=[],nextDeep:l}=this.state,i=n[e];(t||Promise.resolve.bind(Promise))(e,a,l,i).then(()=>{let o={keyPath:a,deep:l,key:e,oldValue:i,type:y6};delete n[e],this.setState({data:n});let{onUpdate:s,onDeltaUpdate:u}=this.props;s(a[a.length-1],n),u(o)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:l,keyPath:i=[],nextDeep:o}=this.state,s=l[e];(a||Promise.resolve.bind(Promise))(e,i,o,s,t).then(()=>{l[e]=t,this.setState({data:l});let{onUpdate:u,onDeltaUpdate:c}=this.props;u(i[i.length-1],l),c({type:b6,keyPath:i,deep:o,key:e,newValue:t,oldValue:s}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:a,readOnly:l,dataType:i,minusMenuElement:o}=this.props,s=Object.getOwnPropertyNames(n),u=l(e,n,t,r,i),c=o&&g.cloneElement(o,{onClick:a,className:"rejt-minus-menu","aria-label":`remove the object '${String(e)}'`});return m.createElement(m.Fragment,null,m.createElement("span",{className:"rejt-collapsed-value"},"{...}"," ",s.length," ",s.length===1?"key":"keys"),!u&&c)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:a,addFormVisible:l}=this.state,{isCollapsed:i,handleRemove:o,onDeltaUpdate:s,readOnly:u,dataType:c,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,textareaElementGenerator:y,minusMenuElement:b,plusMenuElement:S,beforeRemoveAction:h,beforeAddAction:v,beforeUpdateAction:E,logger:x,onSubmitValueParser:_}=this.props,$=Object.getOwnPropertyNames(t),C=u(e,t,r,n,c),w=S&&g.cloneElement(S,{onClick:this.handleAddMode,className:"rejt-plus-menu","aria-label":`add a new property to the object '${String(e)}'`}),A=b&&g.cloneElement(b,{onClick:o,className:"rejt-minus-menu","aria-label":`remove the object '${String(e)}'`}),O=$.map(T=>m.createElement(Vp,{key:T,name:T,data:t[T],keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveValue(T),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:u,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,textareaElementGenerator:y,minusMenuElement:b,plusMenuElement:S,beforeRemoveAction:h,beforeAddAction:v,beforeUpdateAction:E,logger:x,onSubmitValueParser:_}));return m.createElement(m.Fragment,null,m.createElement("span",{className:"rejt-not-collapsed-delimiter"},"{"),!C&&w,m.createElement("ul",{className:"rejt-not-collapsed-list"},O),!C&&l&&m.createElement("div",{className:"rejt-add-form"},m.createElement(Sv,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,keyPath:r,deep:n,onSubmitValueParser:_})),m.createElement("span",{className:"rejt-not-collapsed-delimiter"},"}"),!C&&A)}render(){let{name:e,collapsed:t,keyPath:r,deep:n=0}=this.state,a=t?this.renderCollapsed():this.renderNotCollapsed();return m.createElement(g6,{name:e,collapsed:t,deep:n,keyPath:r,onClick:this.handleCollapseMode},a)}};Ay.defaultProps={keyPath:[],deep:0,minusMenuElement:m.createElement("span",null," - "),plusMenuElement:m.createElement("span",null," + ")};var ma=class extends g.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={value:e.value,name:e.name,keyPath:t??[],deep:e.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:l}=this.state,{readOnly:i,dataType:o}=this.props,s=i(r,n,a,l,o);e&&!s&&typeof t.focus=="function"&&t.focus()}onKeydown(e){let{inputRef:t}=this.state;e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||t!==e.target||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:l,name:i,deep:o}=this.state;if(!l)return;let s=n(!0,a,o,i,l.value),u={value:s,key:i};(e||Promise.resolve.bind(Promise))(u).then(()=>{v6(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:l,originalValue:i,readOnly:o,dataType:s,inputElementGenerator:u,minusMenuElement:c,keyPath:d}=this.props,f=o(e,i,n,a,s),p=r&&!f,y=u(Ev,d,a,e,i,s),b=g.cloneElement(y,{ref:this.refInput,defaultValue:JSON.stringify(i),onKeyDown:this.onKeydown}),S=n.at(-2),h=c&&g.cloneElement(c,{onClick:l,className:"rejt-minus-menu","aria-label":`remove the property '${String(e)}' with value '${String(i)}'${String(S)?` from '${String(S)}'`:""}`});return m.createElement("li",{className:"rejt-value-node"},m.createElement("span",{className:"rejt-name"},e," : "),p?m.createElement("span",{className:"rejt-edit-form"},b):m.createElement("span",{className:"rejt-value",onClick:f?void 0:this.handleEditMode},String(t)),!f&&!p&&h)}};ma.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),cancelButtonElement:m.createElement("button",null,"c"),minusMenuElement:m.createElement("span",null," - ")};function moe(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var x6=class extends g.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){var r,n;this.setState({data:t}),(n=(r=this.props).onFullyUpdate)==null||n.call(r,t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:a,addButtonElement:l,cancelButtonElement:i,inputElement:o,textareaElement:s,minusMenuElement:u,plusMenuElement:c,beforeRemoveAction:d,beforeAddAction:f,beforeUpdateAction:p,logger:y,onSubmitValueParser:b,fallback:S=null}=this.props,h=$l(e),v=a;$l(a)==="Boolean"&&(v=()=>a);let E=o;o&&$l(o)!=="Function"&&(E=()=>o);let x=s;return s&&$l(s)!=="Function"&&(x=()=>s),h==="Object"||h==="Array"?m.createElement("div",{className:"rejt-tree"},m.createElement(Vp,{data:e,name:t||"root",deep:-1,isCollapsed:r??(()=>!1),onUpdate:this.onUpdate,onDeltaUpdate:n??(()=>{}),readOnly:v,addButtonElement:l,cancelButtonElement:i,inputElementGenerator:E,textareaElementGenerator:x,minusMenuElement:u,plusMenuElement:c,handleRemove:this.removeRoot,beforeRemoveAction:d,beforeAddAction:f,beforeUpdateAction:p,logger:y??{},onSubmitValueParser:b??(_=>_)})):S}};x6.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,a)=>moe(a),inputElement:()=>m.createElement("input",null),textareaElement:()=>m.createElement("textarea",null),fallback:null};var{window:yoe}=globalThis,boe=R.div(({theme:e})=>({position:"relative",display:"flex",isolation:"isolate",gap:8,".rejt-tree":{flex:1,marginLeft:"1rem",fontSize:"13px",listStyleType:"none"},".rejt-value-node:hover":{"& > button":{opacity:1}},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{color:e.color.secondary,lineHeight:"22px"},".rejt-not-collapsed-list":{listStyle:"none",margin:"0 0 0 1rem",padding:0},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.base==="light"?e.color.lighter:"hsl(0 0 100 / 0.02)",borderColor:e.appBorderColor},".rejt-collapsed-value":{color:e.color.defaultText}})),LC=R.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer"})),MC=R.button(({theme:e})=>({background:"none",border:0,display:"inline-flex",verticalAlign:"middle",padding:3,marginLeft:5,color:e.textMutedColor,opacity:0,transition:"opacity 0.2s",cursor:"pointer",position:"relative",svg:{width:9,height:9},":disabled":{cursor:"not-allowed"},":hover, :focus-visible":{opacity:1},"&:hover:not(:disabled), &:focus-visible:not(:disabled)":{"&.rejt-plus-menu":{color:e.color.ancillary},"&.rejt-minus-menu":{color:e.color.negative}}})),FC=R.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),voe=R(ju)({alignSelf:"flex-start",order:2,marginRight:-10}),Eoe=R(ri.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),Soe={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},xoe=e=>{e.currentTarget.dispatchEvent(new yoe.KeyboardEvent("keydown",Soe))},$oe=e=>{e.currentTarget.select()},BC=({name:e,storyId:t,value:r,onChange:n,argType:a})=>{var x;fp();let l=g.useMemo(()=>r&&Sle(r),[r]),i=l!=null,[o,s]=g.useState(!i),[u,c]=g.useState(null),d=!!((x=a==null?void 0:a.table)!=null&&x.readonly),f=g.useCallback(_=>{try{_&&n(JSON.parse(_)),c(null)}catch($){c($)}},[n]),[p,y]=g.useState(!1),b=g.useCallback(()=>{n({}),y(!0)},[n,y]),S=g.useRef(null);g.useEffect(()=>{p&&S.current&&S.current.select()},[p]);let h=g.useMemo(()=>JSON.stringify(l??"",null,2),[l]);if(!i)return m.createElement(Ke,{ariaLabel:!1,disabled:d,id:lp(e,t),onClick:b},"Set object");let v=m.createElement(Eoe,{ref:S,id:ln(e,t),minRows:3,name:e,key:h,defaultValue:h,onBlur:_=>f(_.target.value),placeholder:"Edit JSON string...",autoFocus:p,valid:u?"error":void 0,readOnly:d}),E=Array.isArray(r)||typeof r=="object"&&(r==null?void 0:r.constructor)===Object;return m.createElement(boe,null,E&&m.createElement(voe,{disabled:d,pressed:o,ariaLabel:`Edit ${e} as JSON`,onClick:_=>{_.preventDefault(),s($=>!$)},variant:"ghost",padding:"small",size:"small"},m.createElement(Cz,null)),o?v:m.createElement(x6,{readOnly:d||!E,isCollapsed:E?void 0:()=>!0,data:l,rootName:e,onFullyUpdate:n,cancelButtonElement:m.createElement(LC,{type:"button"},"Cancel"),addButtonElement:m.createElement(LC,{type:"submit",primary:!0},"Save"),plusMenuElement:m.createElement(MC,{type:"button"},m.createElement(Tz,null)),minusMenuElement:m.createElement(MC,{type:"button"},m.createElement(wz,null)),inputElement:(_,$,C,w)=>w?m.createElement(FC,{onFocus:$oe,onBlur:xoe}):m.createElement(FC,null),fallback:v}))},_oe=R.input(({theme:e,min:t,max:r,value:n,disabled:a})=>{let l={background:e.base==="light"?`linear-gradient(to right,
  669. ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
  670. ${Bs(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
  671. ${Bs(.02,e.input.background)} 100%)`:`linear-gradient(to right,
  672. ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
  673. ${Cy(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
  674. ${Cy(.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:bo(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 ${bo(e.appBorderColor,.2)}`:"unset",transition:"all 150ms ease-out"},s={background:`${Bs(.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"}}}}),$6=R.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),Coe=R($6)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),Toe=R.div(({readOnly:e})=>({display:"flex",alignItems:"center",width:"100%",opacity:e?.5:1}));function woe(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 Aoe=({name:e,storyId:t,value:r,onChange:n,min:a=0,max:l=100,step:i=1,onBlur:o,onFocus:s,argType:u})=>{var b;let c=S=>{n(kie(S.target.value))},d=r!==void 0,f=g.useMemo(()=>woe(i),[i]),p=!!((b=u==null?void 0:u.table)!=null&&b.readonly),y=ln(e,t);return m.createElement(Toe,{readOnly:p},m.createElement("label",{htmlFor:y,className:"sb-sr-only"},e),m.createElement($6,null,a),m.createElement(_oe,{id:y,type:"range",disabled:p,onChange:c,name:e,min:a,max:l,step:i,onFocus:s,onBlur:o,value:r??a}),m.createElement(Coe,{numberOFDecimalsPlaces:f,max:l},d?r.toFixed(f):"--"," / ",l))},Ooe=R.label({display:"flex"}),Doe=R.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),Roe=({name:e,storyId:t,value:r,onChange:n,onFocus:a,onBlur:l,maxLength:i,argType:o})=>{var y;let s=b=>{n(b.target.value)},u=!!((y=o==null?void 0:o.table)!=null&&y.readonly),[c,d]=g.useState(!1),f=g.useCallback(()=>{n(""),d(!0)},[d]);if(r===void 0)return m.createElement(Ke,{ariaLabel:!1,variant:"outline",size:"medium",disabled:u,id:lp(e,t),onClick:f},"Set string");let p=typeof r=="string";return m.createElement(Ooe,null,m.createElement(ri.Textarea,{id:ln(e,t),maxLength:i,onChange:s,disabled:u,size:"flex",placeholder:"Edit string...",autoFocus:c,valid:p?void 0:"error",name:e,value:p?r:"",onFocus:a,onBlur:l}),i&&m.createElement(Doe,{isMaxed:(r==null?void 0:r.length)===i},(r==null?void 0:r.length)??0," / ",i))},Noe=R(ri.Input)({padding:10});function Loe(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var Moe=({onChange:e,name:t,storyId:r,accept:n="image/*",value:a,argType:l})=>{var c;let i=g.useRef(null),o=(c=l==null?void 0:l.control)==null?void 0:c.readOnly;function s(d){if(!d.target.files)return;let f=Array.from(d.target.files).map(p=>URL.createObjectURL(p));e(f),Loe(a||[])}g.useEffect(()=>{a==null&&i.current&&(i.current.value="")},[a,t]);let u=ln(t,r);return m.createElement(m.Fragment,null,m.createElement("label",{htmlFor:u,className:"sb-sr-only"},t),m.createElement(Noe,{ref:i,id:u,type:"file",name:t,multiple:!0,disabled:o,onChange:s,accept:n,size:"flex"}))},Foe=g.lazy(()=>ta(()=>import("./Color-KMSTOMOX-B7-WWyJ1.js"),__vite__mapDeps([6,1,2,3]),import.meta.url)),Boe=e=>m.createElement(g.Suspense,{fallback:m.createElement("div",null)},m.createElement(Foe,{...e})),Poe={array:BC,object:BC,boolean:Rie,color:Boe,date:Pie,number:Hie,check:di,"inline-check":di,radio:di,"inline-radio":di,select:di,"multi-select":di,range:Aoe,text:Roe,file:Moe},PC=()=>m.createElement(m.Fragment,null,"-"),Ioe=({row:e,arg:t,updateArgs:r,isHovered:n,storyId:a})=>{var S;let{key:l,control:i}=e,[o,s]=g.useState(!1),[u,c]=g.useState({value:t});g.useEffect(()=>{o||c({value:t})},[o,t]);let d=g.useCallback(h=>(c({value:h}),r({[l]:h}),h),[r,l]),f=g.useCallback(()=>s(!1),[]),p=g.useCallback(()=>s(!0),[]);if(!i||i.disable){let h=(i==null?void 0:i.disable)!==!0&&((S=e==null?void 0:e.type)==null?void 0:S.name)!=="function";return n&&h?m.createElement(fo,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},"Setup controls"):m.createElement(PC,null)}let y={name:l,storyId:a,argType:e,value:u.value,onChange:d,onBlur:f,onFocus:p},b=Poe[i.type]||PC;return m.createElement(b,{...y,...i,controlType:i.type})},koe=R.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:ua({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),zoe=({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(koe,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 Hoe(e){return[...new Set(e)]}var Mf=8,IC=R.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),Uoe=R.details({display:"flex",flexDirection:"column",summary:{order:2},"summary::-webkit-details-marker":{display:"none"},"summary::marker":{content:"none"}}),joe=R.div({display:"flex",flexDirection:"column",flexWrap:"wrap",alignItems:"flex-start"}),Koe=R.span(ua,({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}})),Goe=R.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"})),Voe=R.button(ua,({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"}})),Yoe=R.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"}})),qoe=R(Lz)({marginLeft:4}),Woe=R(YO)({marginLeft:4}),Xoe=()=>m.createElement("span",null,"-"),xv=({text:e,simple:t})=>m.createElement(Koe,{simple:t},e),Zoe=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return Hoe(t)},kC=e=>e.slice(0,Mf).map(t=>m.createElement(xv,{key:t,text:t===""?'""':t})),Qoe=e=>e.slice(Mf).map(t=>m.createElement(xv,{key:t,text:t===""?'""':t})),Joe=({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(xv,{text:s});let u=Zoe(s),c=u.length;return c>Mf?m.createElement(IC,{isExpanded:i},kC(u),m.createElement(Uoe,{open:i,onToggle:d=>o(d.currentTarget.open)},m.createElement(joe,null,Qoe(u)),m.createElement(Goe,{role:"button"},i?"Show less...":`Show ${c-Mf} more...`))):m.createElement(IC,null,kC(u))}return m.createElement(pv,{ariaLabel:"Arg value details",placement:"bottom",visible:a,onVisibleChange:u=>{l(u)},hasCloseButton:!0,popover:m.createElement(Yoe,null,m.createElement(Iu,{language:"jsx",format:!1},n))},m.createElement(Voe,{className:"sbdocs-expandable"},m.createElement("span",null,s),a?m.createElement(qoe,null):m.createElement(Woe,null)))},om=({value:e,initialExpandedArgs:t})=>e==null?m.createElement(Xoe,null):m.createElement(Joe,{value:e,initialExpandedArgs:t}),ese=R.span({fontWeight:"bold"}),tse=R.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),rse=R.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...ua({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),nse=R.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ft(.1,e.color.defaultText):ft(.2,e.color.defaultText),marginTop:t?4:0})),ase=R.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ft(.1,e.color.defaultText):ft(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),lse=R.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),ise=e=>e&&{summary:typeof e=="string"?e:e.name},jc=e=>{var b;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||ise(n.type),f=c.defaultValue||n.defaultValue,p=(b=n.type)==null?void 0:b.required,y=u!=null&&u!=="";return m.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},m.createElement(lse,{expandable:i??!1},m.createElement(ese,null,s),p?m.createElement(tse,{title:"Required"},"*"):null),l?null:m.createElement("td",null,y&&m.createElement(rse,null,m.createElement(c6,null,u)),c.jsDocTags!=null?m.createElement(m.Fragment,null,m.createElement(ase,{hasDescription:y},m.createElement(om,{value:d,initialExpandedArgs:o})),m.createElement(zoe,{tags:c.jsDocTags})):m.createElement(nse,{hasDescription:y},m.createElement(om,{value:d,initialExpandedArgs:o}))),l?null:m.createElement("td",null,m.createElement(om,{value:f,initialExpandedArgs:o})),a?m.createElement("td",null,m.createElement(Ioe,{...e,isHovered:t})):null)},ose=R.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})),sse=R.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),use=({inAddonPanel:e})=>{let[t,r]=g.useState(!0);return g.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:m.createElement(ose,{inAddonPanel:e},m.createElement(Yu,{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(sse,null,e&&m.createElement(m.Fragment,null,m.createElement(fo,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},m.createElement(N0,null)," Read docs")),!e&&m.createElement(fo,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},m.createElement(N0,null)," Learn how to set that up"))}))},cse=R(Nz)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ft(.25,e.color.defaultText):ft(.3,e.color.defaultText),border:"none",display:"inline-block"})),dse=R(VO)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ft(.25,e.color.defaultText):ft(.3,e.color.defaultText),border:"none",display:"inline-block"})),fse=R.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),pse=R.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"?ft(.4,e.color.defaultText):ft(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),hse=R.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),gse=R.td({position:"relative"}),mse=R.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Cy(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),zC=R.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"}),sm=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[l,i]=g.useState(n),o=e==="subsection"?hse:pse,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(mse,{title:c},m.createElement(o,{colSpan:1},m.createElement(zC,{onClick:d=>i(!l),tabIndex:0},c),m.createElement(fse,null,l?m.createElement(cse,null):m.createElement(dse,null),t)),m.createElement(gse,{colSpan:a-1},m.createElement(zC,{onClick:d=>i(!l),tabIndex:-1,style:{outline:"none"}},c),l?null:u)),l?r:null)},yse=R.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),Kc=R.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Bt=R.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}}}),pt=R.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})),bse=()=>m.createElement(yse,null,m.createElement(Kc,null,m.createElement(Bt,{position:"first"},m.createElement(pt,{width:"60%"})),m.createElement(Bt,{position:"second"},m.createElement(pt,{width:"30%"})),m.createElement(Bt,{position:"third"},m.createElement(pt,{width:"60%"})),m.createElement(Bt,{position:"last"},m.createElement(pt,{width:"60%"}))),m.createElement(Kc,null,m.createElement(Bt,{position:"first"},m.createElement(pt,{width:"60%"})),m.createElement(Bt,{position:"second"},m.createElement(pt,{width:"80%"}),m.createElement(pt,{width:"30%"})),m.createElement(Bt,{position:"third"},m.createElement(pt,{width:"60%"})),m.createElement(Bt,{position:"last"},m.createElement(pt,{width:"60%"}))),m.createElement(Kc,null,m.createElement(Bt,{position:"first"},m.createElement(pt,{width:"60%"})),m.createElement(Bt,{position:"second"},m.createElement(pt,{width:"80%"}),m.createElement(pt,{width:"30%"})),m.createElement(Bt,{position:"third"},m.createElement(pt,{width:"60%"})),m.createElement(Bt,{position:"last"},m.createElement(pt,{width:"60%"}))),m.createElement(Kc,null,m.createElement(Bt,{position:"first"},m.createElement(pt,{width:"60%"})),m.createElement(Bt,{position:"second"},m.createElement(pt,{width:"80%"}),m.createElement(pt,{width:"30%"})),m.createElement(Bt,{position:"third"},m.createElement(pt,{width:"60%"})),m.createElement(Bt,{position:"last"},m.createElement(pt,{width:"60%"})))),vse=R.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}}},"@media (forced-colors: active)":{tbody:{filter:"none","> tr > *":{borderColor:"CanvasText"}}}}})),Ese=R.div({position:"relative"}),Sse=R.div({position:"absolute",right:22,top:10}),xse=R(Ke)({margin:"-4px -12px -4px 0"}),$se={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},_se=(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=$se[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)}}),{})}},Cse=(e,t,r)=>{try{return bL(e,t,r)}catch(n){return Yae.warn(n.message),!1}},Ff=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,inTabPanel:l,initialExpandedArgs:i,sort:o="none",isLoading:s,storyId:u}=e;if("error"in e){let{error:x}=e;return m.createElement(e6,null,x," ",m.createElement(fo,{href:"http://storybook.js.org/docs/?ref=ui",target:"_blank",withArrow:!0},m.createElement(N0,null)," Read the docs"))}if(s)return m.createElement(bse,null);let{rows:c,args:d,globals:f}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},p=_se(xle(c||{},x=>{var _;return!((_=x==null?void 0:x.table)!=null&&_.disable)&&Cse(x,d||{},f||{})}),o),y=p.ungrouped.length===0,b=Object.entries(p.sections).length===0,S=Object.entries(p.ungroupedSubsections).length===0;if(y&&b&&S)return m.createElement(use,{inAddonPanel:a});let h=1;t&&(h+=1),n||(h+=2);let v=Object.keys(p.sections).length>0,E={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:i,storyId:u};return m.createElement(B1,null,m.createElement(Ese,null,t&&!s&&r&&m.createElement(Sse,null,m.createElement(xse,{variant:"ghost",padding:"small",onClick:()=>r(),ariaLabel:"Reset controls"},m.createElement(Bz,null))),m.createElement(vse,{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"},p.ungrouped.map(x=>m.createElement(jc,{key:x.key,row:x,arg:d&&d[x.key],...E})),Object.entries(p.ungroupedSubsections).map(([x,_])=>m.createElement(sm,{key:x,label:x,level:"subsection",colSpan:h},_.map($=>m.createElement(jc,{key:$.key,row:$,arg:d&&d[$.key],expandable:v,...E})))),Object.entries(p.sections).map(([x,_])=>m.createElement(sm,{key:x,label:x,level:"section",colSpan:h},_.ungrouped.map($=>m.createElement(jc,{key:$.key,row:$,arg:d&&d[$.key],...E})),Object.entries(_.subsections).map(([$,C])=>m.createElement(sm,{key:$,label:$,level:"subsection",colSpan:h},C.map(w=>m.createElement(jc,{key:w.key,row:w,arg:d&&d[w.key],expandable:v,...E}))))))))))},ht=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,$v=600,Tse=R.h1(({theme:e})=>({...Ze({theme:e}),color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${$v}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),wse=R.h2(({theme:e})=>({...Ze({theme:e}),fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${$v}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:ft(.25,e.color.defaultText)})),Ase=R.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"?ft(.1,e.color.defaultText):ft(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,[ht("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"}},[ht("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}},[ht("div")]:t,[ht("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}},[ht("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[ht("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[ht("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[ht("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[ht("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[ht("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[ht("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[ht("img")]:{maxWidth:"100%"},[ht("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[ht("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[ht("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[ht("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"}},[ht("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"}}},[ht("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}},[ht("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),Ose=R.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: ${$v}px)`]:{}})),Dse=({children:e,toc:t})=>m.createElement(Ose,{className:"sbdocs sbdocs-wrapper"},t,m.createElement(Ase,{className:"sbdocs sbdocs-content"},e));const{logger:Rse}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var _6=typeof document<"u"?m.useLayoutEffect:()=>{},C6={prefix:String(Math.round(Math.random()*1e10)),current:0},T6=m.createContext(C6),Nse=m.createContext(!1),um=new WeakMap;function Lse(e=!1){let t=g.useContext(T6),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=um.get(l);i==null?um.set(l,{id:t.current,state:l.memoizedState}):l.memoizedState!==i.state&&(t.current=i.id,um.delete(l))}r.current=++t.current}return r.current}function Mse(e){let t=g.useContext(T6),r=Lse(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function Fse(e){let t=m.useId(),[r]=g.useState(zse()),n=r?"react-aria":`react-aria${C6.prefix}`;return e||`${n}-${t}`}var Bse=typeof m.useId=="function"?Fse:Mse;function Pse(){return!1}function Ise(){return!0}function kse(e){return()=>{}}function zse(){return typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore(kse,Pse,Ise):g.useContext(Nse)}var Hse=!!(typeof window<"u"&&window.document&&window.document.createElement),wd=new Map,bs;typeof FinalizationRegistry<"u"&&(bs=new FinalizationRegistry(e=>{wd.delete(e)}));function Use(e){let[t,r]=g.useState(e),n=g.useRef(null),a=Bse(t),l=g.useRef(null);if(bs&&bs.register(l,a),Hse){let i=wd.get(a);i&&!i.includes(n)?i.push(n):wd.set(a,[n])}return _6(()=>{let i=a;return()=>{bs&&bs.unregister(l),wd.delete(i)}},[a]),g.useEffect(()=>{let i=n.current;return i&&r(i),()=>{i&&(n.current=null)}}),a}function jse(e){if(Kse())e.focus({preventScroll:!0});else{let t=Gse(e);e.focus(),Vse(t)}}var Gc=null;function Kse(){if(Gc==null){Gc=!1;try{document.createElement("div").focus({get preventScroll(){return Gc=!0,!0}})}catch{}}return Gc}function Gse(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 Vse(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function _v(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 w6(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 qu(e){let t=null;return()=>(t==null&&(t=e()),t)}var Oy=qu(function(){return w6(/^Mac/i)}),Yse=qu(function(){return w6(/^iPad/i)||Oy()&&navigator.maxTouchPoints>1}),qse=qu(function(){return _v(/AppleWebKit/i)&&!Wse()}),Wse=qu(function(){return _v(/Chrome/i)}),Xse=qu(function(){return _v(/Firefox/i)});g.createContext({isNative:!0,open:Qse,useHref:e=>e});function Bf(e,t,r=!0){var n,a;let{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}=t;Xse()&&!((a=window.event)===null||a===void 0||(n=a.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(Oy()?l=!0:i=!0);let u=qse()&&Oy()&&!Yse()?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});Bf.isOpening=r,jse(e),e.dispatchEvent(u),Bf.isOpening=!1}Bf.isOpening=!1;function Zse(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 Qse(e,t){Zse(e,r=>Bf(r,t))}var is=new Map,HC=new Set;function UC(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let a=is.get(n.target);a||(a=new Set,is.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=is.get(n.target);if(a&&(a.delete(n.propertyName),a.size===0&&(n.target.removeEventListener("transitioncancel",r),is.delete(n.target)),is.size===0)){for(let l of HC)l();HC.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?UC():document.addEventListener("DOMContentLoaded",UC));var cm;cm=m.useInsertionEffect;var dm;typeof document<"u"&&((dm=m.useInsertionEffect)!==null&&dm!==void 0||m.useLayoutEffect);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=g.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var wr=globalThis?globalThis.__DOCS_CONTEXT__:g.createContext(null);const{InvalidBlockOfPropError:Jse}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;function eue(e,t){let r=tue([e],t);return r&&r[0]}function tue(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 rue=Symbol("mdxWrappedBlock"),jC=m.createContext(null),jt=(e,t)=>{let r=n=>{let a=m.useContext(jC),l=yv()[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(jC.Provider,{value:i},m.createElement(l,{...n}))}return m.createElement(t,{...n})};return r.displayName=e,r[rue]=!0,r},A6=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Jse;return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},nue=(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}},aue=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=g.useContext(wr),r=A6(e,t),n=eue(r,t);if(!n)return m.createElement(R6,null);let a=nue(e,n,t);return a?m.createElement(due,{...a}):null},lue=jt("Story",aue),Yp=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}`}),O6=(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:iue}=globalThis,oue=class extends g.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=iue.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})}},D6=g.createContext({scale:1}),Dy=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,sue=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:y})=>l(new Error(`${p} - ${y}`)),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(kR,{error:a})):m.createElement(m.Fragment,null,o?m.createElement("style",null,`#${Dy(e)} { min-height: ${o}; transform: translateZ(0); overflow: auto }`):null,r&&m.createElement(R6,null),m.createElement("div",{ref:t,id:`${Dy(e)}-inner`,"data-name":i.name}))},uue=({story:e,height:t="500px"})=>m.createElement("div",{style:{width:"100%",height:t}},m.createElement(D6.Consumer,null,({scale:r})=>m.createElement(oue,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:O6(e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),cue=R.strong(({theme:e})=>({color:e.color.orange})),due=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?m.createElement(cue,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:Dy(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?m.createElement(sue,{...e}):m.createElement(uue,{...e}))},R6=()=>m.createElement(q4,null),fue=R(P4)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear",display:"flex",alignItems:"center"}),fm=R.div({display:"flex",alignItems:"center",gap:4}),KC=R.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`})),pue=({isLoading:e,storyId:t,zoom:r,resetZoom:n,onReloadStory:a,...l})=>m.createElement(fue,{innerStyle:{gap:4,paddingInline:7,justifyContent:"space-between"},...l},m.createElement(fm,{key:"left"},e?[1,2,3].map(i=>m.createElement(KC,{key:i})):m.createElement(m.Fragment,null,a&&m.createElement(Ke,{padding:"small",variant:"ghost",key:"reload",onClick:a,ariaLabel:"Reload story"},m.createElement(Pz,null)),m.createElement(Ke,{padding:"small",variant:"ghost",key:"zoomin",onClick:i=>{i.preventDefault(),r(.8)},ariaLabel:"Zoom in"},m.createElement(Ez,null)),m.createElement(Ke,{padding:"small",variant:"ghost",key:"zoomout",onClick:i=>{i.preventDefault(),r(1.25)},ariaLabel:"Zoom out"},m.createElement(Sz,null)),m.createElement(Ke,{padding:"small",variant:"ghost",key:"zoomreset",onClick:i=>{i.preventDefault(),n()},ariaLabel:"Reset zoom"},m.createElement(xz,null)))),e?m.createElement(fm,{key:"right"},m.createElement(KC,null)):t&&m.createElement(fm,{key:"right"},m.createElement(Ke,{asChild:!0,padding:"small",variant:"ghost",key:"opener",ariaLabel:"Open canvas in new tab"},m.createElement("a",{href:O6(t),target:"_blank",rel:"noopener noreferrer"},m.createElement(Rz,null))))),hue=R.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)`}}:{}),gue=R(Po)({marginTop:-40,marginBottom:40}),mue=R(jp)(({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)":Bs(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Bs(.05,e.background.content)}})),yue=R.div(({theme:e})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Yp(e),"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40});function bue(e){if(g.Children.count(e)===1){let t=e;if(t.props)return t.props}return null}var vue=R(pue)({position:"absolute",top:0,left:0,right:0,height:40}),Eue=2e3,N6=({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,onReloadStory:d,...f})=>{let[p,y]=g.useState(i),[b,S]=g.useState(null),[h,v]=g.useState(1),E=g.useMemo(()=>o?[...o]:[],[o]),x=Use(),_=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),$=g.useContext(wr),C=g.useCallback(async M=>{let{createCopyToClipboardFunction:P}=await ta(async()=>{const{createCopyToClipboardFunction:I}=await Promise.resolve().then(()=>eae);return{createCopyToClipboardFunction:I}},void 0,import.meta.url);await P()(M)},[]),w=g.useCallback(async()=>{try{await C((a==null?void 0:a.code)??""),S("Copied!")}catch(M){Rse.error(M),S("Copy error!")}globalThis.window.setTimeout(()=>S(null),Eue)},[C,a==null?void 0:a.code]),A=bue(n),O=!!(a&&a.error),T=!!(a&&!a.error);return m.createElement(m.Fragment,null,m.createElement(yue,{withSource:a,withToolbar:l,...f,className:_.join(" ")},l&&m.createElement(vue,{isLoading:e,border:!0,zoom:M=>v(h*M),resetZoom:()=>v(1),storyId:!e&&A?A6(A,$):void 0,onReloadStory:d}),m.createElement(D6.Provider,{value:{scale:h}},m.createElement(hue,{isColumn:t||!Array.isArray(n),columns:r,layout:u,inline:c,className:"docs-story"},m.createElement(IR.Element,{centered:u==="centered",scale:c?h:1},Array.isArray(n)?n.map((M,P)=>m.createElement("div",{key:P},M)):m.createElement("div",null,n)))),T&&p&&m.createElement("div",{id:x},m.createElement(mue,{...a,dark:!0,copyable:!1}))),(a||E.length>0)&&m.createElement(gue,{className:"sbdocs sbdocs-preview-actions",innerStyle:{paddingInline:0}},O&&m.createElement(Ke,{ariaLabel:!1,disabled:!0,variant:"ghost",className:"docblock-code-toggle docblock-code-toggle--disabled"},m.createElement(Yx,null)," No code available"),T&&m.createElement(m.Fragment,null,m.createElement(ju,{ariaLabel:!1,pressed:p,"aria-expanded":p,"aria-controls":x,onClick:()=>y(!p),variant:"ghost",className:`docblock-code-toggle${p?" docblock-code-toggle--expanded":""}`},m.createElement(Yx,null)," ",p?"Hide code":"Show code"),m.createElement(Ke,{ariaLabel:!1,variant:"ghost",onClick:w},m.createElement(_z,null)," ",b??"Copy code")),E.map(({title:M,className:P,onClick:I,disabled:H},L)=>m.createElement(Ke,{key:L,className:P,onClick:I,disabled:!!H,variant:"ghost"},M))))};R(N6)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var Sue=R(V4)({height:"fit-content"}),L6=({tabs:e,...t})=>{let r=Object.entries(e);if(r.length===1)return m.createElement(Ff,{...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(Ff,{inTabPanel:!0,key:`prop_table_${a}`,...l,...o})}}));return m.createElement(Sue,{tabs:n})};R.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?ft(.4,e.color.defaultText):ft(.6,e.color.defaultText)}));R.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});R.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});R.div(Ze,({theme:e})=>({...Yp(e),margin:"25px 0 40px",padding:"30px 20px"}));R.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));R.div(({theme:e})=>({color:ft(.3,e.color.defaultText)}));R.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});R.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:ft(.3,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));R.div({display:"flex",flexDirection:"row"});R.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));R.div(({theme:e})=>({...Yp(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"}));R.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});R.div({flex:1,display:"flex",flexDirection:"row"});R.div({display:"flex",alignItems:"flex-start"});R.div({flex:"0 0 30%"});R.div({flex:1});R.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:ft(.3,e.color.defaultText)}));R.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));R.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"}));R.div(({theme:e})=>({...Yp(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));R.div({display:"inline-flex",flexDirection:"row",alignItems:"center",width:"100%"});R.div({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gridGap:"8px 16px",gridAutoFlow:"row dense",gridAutoRows:50});const{NAVIGATE_URL:xue}=__STORYBOOK_MODULE_CORE_EVENTS__;function $ue(e){let t=[].forEach,r=[].some,n=typeof window<"u"&&document.body,a=" ",l,i=!0,o=0;function s(O,T){let M=T.appendChild(c(O));if(O.children.length){let P=d(O.isCollapsed);O.children.forEach(I=>{s(I,P)}),M.appendChild(P)}}function u(O,T){let M=d(!1);if(T.forEach(P=>{s(P,M)}),l=O||l,l!==null)return l.firstChild&&l.removeChild(l.firstChild),T.length===0?l:l.appendChild(M)}function c(O){let T=document.createElement("li"),M=document.createElement("a");return e.listItemClass&&T.setAttribute("class",e.listItemClass),e.onClick&&(M.onclick=e.onClick),e.includeTitleTags&&M.setAttribute("title",O.textContent),e.includeHtml&&O.childNodes.length?t.call(O.childNodes,P=>{M.appendChild(P.cloneNode(!0))}):M.textContent=O.textContent,M.setAttribute("href",`${e.basePath}#${O.id}`),M.setAttribute("class",`${e.linkClass+a}node-name--${O.nodeName}${a}${e.extraLinkClasses}`),T.appendChild(M),T}function d(O){let T=e.orderedList?"ol":"ul",M=document.createElement(T),P=e.listClass+a+e.extraListClasses;return O&&(P=P+a+e.collapsibleClass,P=P+a+e.isCollapsedClass),M.setAttribute("class",P),M}function f(){let O=C(),T=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=l.offsetTop),O>e.fixedSidebarOffset?T.className.indexOf(e.positionFixedClass)===-1&&(T.className+=a+e.positionFixedClass):T.className=T.className.replace(a+e.positionFixedClass,"")}function p(O){let T=0;return O!==null&&(T=O.offsetTop,e.hasInnerContainers&&(T+=p(O.offsetParent))),T}function y(O,T){return O&&O.className!==T&&(O.className=T),O}function b(O,T){var L,D;e.positionFixedSelector&&f();let M=O,P=(L=T==null?void 0:T.target)!=null&&L.getAttribute?(D=T==null?void 0:T.target)==null?void 0:D.getAttribute("href"):null,I=P&&P.charAt(0)==="#"?x(P.replace("#","")):!1,H=i||I;if(T&&o<5&&o++,H&&l&&M.length>0){let N=w(M),U=l.querySelector(`.${e.activeLinkClass}`),B=N.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),G=window.location.hash.replace("#",""),V=B,Z=_();P&&I?V=P.replace("#",""):G&&G!==B&&Z&&(x(B)||o<=2)&&(V=G);let J=l.querySelector(`.${e.linkClass}[href="${e.basePath}#${V}"]`);if(U===J)return;let j=l.querySelectorAll(`.${e.linkClass}`);t.call(j,z=>{y(z,z.className.replace(a+e.activeLinkClass,""))});let X=l.querySelectorAll(`.${e.listItemClass}`);t.call(X,z=>{y(z,z.className.replace(a+e.activeListItemClass,""))}),J&&J.className.indexOf(e.activeLinkClass)===-1&&(J.className+=a+e.activeLinkClass);let te=J==null?void 0:J.parentNode;te&&te.className.indexOf(e.activeListItemClass)===-1&&(te.className+=a+e.activeListItemClass);let F=l.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(F,z=>{z.className.indexOf(e.isCollapsedClass)===-1&&(z.className+=a+e.isCollapsedClass)}),J!=null&&J.nextSibling&&J.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&y(J.nextSibling,J.nextSibling.className.replace(a+e.isCollapsedClass,"")),S(J==null?void 0:J.parentNode.parentNode)}}function S(O){return O&&O.className.indexOf(e.collapsibleClass)!==-1&&O.className.indexOf(e.isCollapsedClass)!==-1?(y(O,O.className.replace(a+e.isCollapsedClass,"")),S(O.parentNode.parentNode)):O}function h(O){let T=O.target||O.srcElement;typeof T.className!="string"||T.className.indexOf(e.linkClass)===-1||(i=!1)}function v(){i=!0}function E(){return i}function x(O){let T=$();return(document==null?void 0:document.getElementById(O)).offsetTop>T.offsetHeight-T.clientHeight*1.4-e.bottomModeThreshold}function _(){let O=$(),T=O.scrollHeight>O.clientHeight,M=C()+O.clientHeight>O.offsetHeight-e.bottomModeThreshold;return T&&M}function $(){let O;return e.scrollContainer&&document.querySelector(e.scrollContainer)?O=document.querySelector(e.scrollContainer):O=document.documentElement||n,O}function C(){var O;return((O=$())==null?void 0:O.scrollTop)||0}function w(O,T=C()){let M;return r.call(O,(P,I)=>{if(p(P)>T+e.headingsOffset+10){let H=I===0?I:I-1;return M=O[H],!0}if(I===O.length-1)return M=O[O.length-1],!0}),M}function A(O){let T=C(),M=w(O,T),P=_();if((!M||T<5)&&!P)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(M&&!P){let I=`#${M.id}`;window.location.hash!==I&&window.history.pushState(null,null,I)}}return{enableTocAnimation:v,disableTocAnimation:h,render:u,updateToc:b,getCurrentlyHighlighting:E,getTopHeader:w,getScrollTop:C,updateUrlHashForHeader:A}}var _ue={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 Cue(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,y=r(p),b=y?y.headingLevel:0,S=f-b;for(;S>0&&(y=r(p),!(y&&f===y.headingLevel));)y&&y.children!==void 0&&(p=y.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 Tue(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||wue(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 wue(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,y,b){return f/=b/2,f<1?y/2*f*f+p:(f--,-y/2*(f*(f-2)-1)+p)}}function Aue(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 ue={},Xr,pm,cl,Jr,Is;function M6(e){let t=!1;ue=Rue(_ue,e||{}),ue.scrollSmooth&&(ue.duration=ue.scrollSmoothDuration,ue.offset=ue.scrollSmoothOffset,Tue(ue)),Xr=$ue(ue),pm=Cue(ue),Cv();let r=Lue(ue);if(r===null)return;let n=F6(ue);if(n===null||(cl=pm.selectHeadings(r,ue.headingSelector),cl===null))return;let a=pm.nestHeadingsArray(cl).nest;if(!ue.skipRendering)Xr.render(n,a);else return this;let l=!1,i=ue.scrollHandlerTimeout||ue.throttleTimeout;Jr=((s,u)=>Nue(s,u,ue.scrollHandlerType))(s=>{var c,d,f;Xr.updateToc(cl,s),!ue.disableTocScrollSync&&!l&&Aue(ue),ue.enableUrlHashUpdateOnScroll&&t&&Xr.getCurrentlyHighlighting()&&Xr.updateUrlHashForHeader(cl);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)&&(Xr.updateToc(cl),(f=ue.scrollEndCallback)==null||f.call(ue,s))},i),t||(Jr(),t=!0),window.onhashchange=window.onscrollend=s=>{Jr(s)},ue.scrollContainer&&document.querySelector(ue.scrollContainer)?(document.querySelector(ue.scrollContainer).addEventListener("scroll",Jr,!1),document.querySelector(ue.scrollContainer).addEventListener("resize",Jr,!1)):(document.addEventListener("scroll",Jr,!1),document.addEventListener("resize",Jr,!1));let o=null;Is=Ry(s=>{l=!0,ue.scrollSmooth&&Xr.disableTocAnimation(s),Xr.updateToc(cl,s),o&&clearTimeout(o),o=setTimeout(()=>{Xr.enableTocAnimation()},ue.scrollSmoothDuration),setTimeout(()=>{l=!1},ue.scrollSmoothDuration+100)},ue.throttleTimeout),ue.scrollContainer&&document.querySelector(ue.scrollContainer)?document.querySelector(ue.scrollContainer).addEventListener("click",Is,!1):document.addEventListener("click",Is,!1)}function Cv(){let e=F6(ue);e!==null&&(ue.skipRendering||e&&(e.innerHTML=""),ue.scrollContainer&&document.querySelector(ue.scrollContainer)?(document.querySelector(ue.scrollContainer).removeEventListener("scroll",Jr,!1),document.querySelector(ue.scrollContainer).removeEventListener("resize",Jr,!1),Xr&&document.querySelector(ue.scrollContainer).removeEventListener("click",Is,!1)):(document.removeEventListener("scroll",Jr,!1),document.removeEventListener("resize",Jr,!1),Xr&&document.removeEventListener("click",Is,!1)))}function Oue(e){Cv(),M6(e||ue)}var Due=Object.prototype.hasOwnProperty;function Rue(...e){let t={};for(let r=0;r<e.length;r++){let n=e[r];for(let a in n)Due.call(n,a)&&(t[a]=n[a])}return t}function Ry(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 GC(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function Nue(e,t,r="auto"){switch(r){case"debounce":return GC(e,t);case"throttle":return Ry(e,t);default:return t<334?GC(e,t):Ry(e,t)}}function Lue(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function F6(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}var Mue={destroy:Cv,init:M6,refresh:Oue},VC=Mue,Fue=R.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),Bue=R.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"}})),Pue=R.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.color.defaultText,textTransform:"uppercase",marginBottom:10})),Iue=({headingId:e,title:t})=>typeof t=="string"||!t?m.createElement(Pue,{as:"h2",id:e,className:t?"":"sb-sr-only"},t||"Table of contents"):m.createElement("div",{id:e},t),kue=({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(xue,`#${f}`)}},...l},c=setTimeout(()=>VC.init(u),100);return()=>{clearTimeout(c),VC.destroy()}},[i,t,a,n,r,l]);let s="table-of-contents";return m.createElement(Fue,{className:o},t?null:m.createElement(Bue,{"aria-labelledby":s},m.createElement(Iue,{headingId:s,title:e}),m.createElement("div",{className:"toc-wrapper"})))},zue=e=>`anchor--${e}`,Hue=({storyId:e,children:t})=>m.createElement("div",{id:zue(e),className:"sb-anchor"},t);const{InvalidBlockOfPropError:Uue}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{filterArgTypes:YC}=__STORYBOOK_MODULE_PREVIEW_API__;var ai=(e,t)=>g.useContext(wr).resolveOf(e,t),jue=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),B6=e=>{if(e)return typeof e=="string"?e.includes("-")?jue(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function Kue(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function P6(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}function Gue(e){if(e.type==="component"){let{component:l,projectAnnotations:{parameters:i}}=e;return{argTypes:P6(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 Vue=e=>{var b;let{of:t}=e;if("of"in e&&t===void 0)throw new Uue;let r=ai(t||"meta"),{argTypes:n,parameters:a,component:l,subcomponents:i}=Gue(r),o=((b=a==null?void 0:a.docs)==null?void 0:b.argTypes)||{},s=e.include??o.include,u=e.exclude??o.exclude,c=e.sort??o.sort,d=YC(n,s,u);if(!(i&&Object.keys(i||{}).length>0))return m.createElement(Ff,{rows:d,sort:c});let f=B6(l)||"Main",p=Object.fromEntries(Object.entries(i||{}).map(([S,h])=>[S,{rows:YC(P6(h,a),s,u),sort:c}])),y={[f]:{rows:d,sort:c},...p};return m.createElement(L6,{tabs:y,sort:c})};jt("ArgTypes",Vue);const{FORCE_REMOUNT:Yue}=__STORYBOOK_MODULE_CORE_EVENTS__,{InvalidBlockOfPropError:que}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{InvalidBlockOfPropError:Wue}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var Xue=Object.create,I6=Object.defineProperty,Zue=Object.getOwnPropertyDescriptor,k6=Object.getOwnPropertyNames,Que=Object.getPrototypeOf,Jue=Object.prototype.hasOwnProperty,fe=(e,t)=>function(){return t||(0,e[k6(e)[0]])((t={exports:{}}).exports,t),t.exports},ece=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of k6(t))!Jue.call(e,a)&&a!==r&&I6(e,a,{get:()=>t[a],enumerable:!(n=Zue(t,a))||n.enumerable});return e},Tv=(e,t,r)=>(r=e!=null?Xue(Que(e)):{},ece(!e||!e.__esModule?I6(r,"default",{value:e,enumerable:!0}):r,e)),tce=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],rce=["detail"];function nce(e){let t=tce.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of rce.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var z6=fe({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),ace=fe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),lce=fe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),ice=fe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),oce=fe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),sce=fe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),wv=fe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),uce=fe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),cce=fe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),dce=fe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),fce=fe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),pce=fe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),hce=fe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),gce=fe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),mce=fe({"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}}}),yce=fe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=mce();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),bce=fe({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Av=fe({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=bce();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),vce=fe({"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}}),H6=fe({"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}}}),U6=fe({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=H6();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),j6=fe({"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}}),K6=fe({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=z6();t.exports=r.getPrototypeOf||null}}),Ece=fe({"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 v=c.apply(this,i(d,arguments));return Object(v)===v?v:this}return c.apply(u,i(d,arguments))},y=a(0,c.length-d.length),b=[],S=0;S<y;S++)b[S]="$"+S;if(f=Function("binder","return function ("+s(b,",")+"){ return binder.apply(this,arguments); }")(p),c.prototype){var h=function(){};h.prototype=c.prototype,f.prototype=new h,h.prototype=null}return f}}}),qp=fe({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=Ece();t.exports=Function.prototype.bind||r}}),Ov=fe({"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}}),G6=fe({"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}}),Sce=fe({"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}}),xce=fe({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=qp(),n=G6(),a=Ov(),l=Sce();t.exports=l||r.call(a,n)}}),V6=fe({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=qp(),n=wv(),a=Ov(),l=xce();t.exports=function(i){if(i.length<1||typeof i[0]!="function")throw new n("a function is required");return l(r,a,i)}}}),$ce=fe({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=V6(),n=Av(),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}}),_ce=fe({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=j6(),n=K6(),a=$ce();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}}),Y6=fe({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,a=qp();t.exports=a.call(r,n)}}),Cce=fe({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=z6(),a=ace(),l=lce(),i=ice(),o=oce(),s=sce(),u=wv(),c=uce(),d=cce(),f=dce(),p=fce(),y=pce(),b=hce(),S=gce(),h=yce(),v=Function,E=function(K){try{return v('"use strict"; return ('+K+").constructor;")()}catch{}},x=Av(),_=vce(),$=function(){throw new u},C=x?function(){try{return arguments.callee,$}catch{try{return x(arguments,"callee").get}catch{return $}}}():$,w=U6()(),A=_ce(),O=K6(),T=j6(),M=G6(),P=Ov(),I={},H=typeof Uint8Array>"u"||!A?r:A(Uint8Array),L={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":w&&A?A([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%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%":v,"%GeneratorFunction%":I,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&A?A(A([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!w||!A?r:A(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"||!w||!A?r:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&A?A(""[Symbol.iterator]()):r,"%Symbol%":w?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":C,"%TypedArray%":H,"%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%":P,"%Function.prototype.apply%":M,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":O,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":y,"%Math.pow%":b,"%Math.round%":S,"%Math.sign%":h,"%Reflect.getPrototypeOf%":T};if(A)try{null.error}catch(K){D=A(A(K)),L["%Error.prototype%"]=D}var D,N=function K(k){var Y;if(k==="%AsyncFunction%")Y=E("async function () {}");else if(k==="%GeneratorFunction%")Y=E("function* () {}");else if(k==="%AsyncGeneratorFunction%")Y=E("async function* () {}");else if(k==="%AsyncGenerator%"){var Q=K("%AsyncGeneratorFunction%");Q&&(Y=Q.prototype)}else if(k==="%AsyncIteratorPrototype%"){var re=K("%AsyncGenerator%");re&&A&&(Y=A(re.prototype))}return L[k]=Y,Y},U={__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"]},B=qp(),G=Y6(),V=B.call(P,Array.prototype.concat),Z=B.call(M,Array.prototype.splice),J=B.call(P,String.prototype.replace),j=B.call(P,String.prototype.slice),X=B.call(P,RegExp.prototype.exec),te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,F=/\\(\\)?/g,z=function(K){var k=j(K,0,1),Y=j(K,-1);if(k==="%"&&Y!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(Y==="%"&&k!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var Q=[];return J(K,te,function(re,pe,ee,Re){Q[Q.length]=ee?J(Re,F,"$1"):pe||re}),Q},q=function(K,k){var Y=K,Q;if(G(U,Y)&&(Q=U[Y],Y="%"+Q[0]+"%"),G(L,Y)){var re=L[Y];if(re===I&&(re=N(Y)),typeof re>"u"&&!k)throw new u("intrinsic "+K+" exists, but is not available. Please file an issue!");return{alias:Q,name:Y,value:re}}throw new s("intrinsic "+K+" does not exist!")};t.exports=function(K,k){if(typeof K!="string"||K.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof k!="boolean")throw new u('"allowMissing" argument must be a boolean');if(X(/^%?[^%]*%?$/,K)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Y=z(K),Q=Y.length>0?Y[0]:"",re=q("%"+Q+"%",k),pe=re.name,ee=re.value,Re=!1,Oe=re.alias;Oe&&(Q=Oe[0],Z(Y,V([0,1],Oe)));for(var be=1,le=!0;be<Y.length;be+=1){var Me=Y[be],Kt=j(Me,0,1),qr=j(Me,-1);if((Kt==='"'||Kt==="'"||Kt==="`"||qr==='"'||qr==="'"||qr==="`")&&Kt!==qr)throw new s("property names with quotes must have matching quotes");if((Me==="constructor"||!le)&&(Re=!0),Q+="."+Me,pe="%"+Q+"%",G(L,pe))ee=L[pe];else if(ee!=null){if(!(Me in ee)){if(!k)throw new u("base intrinsic for "+K+" exists, but the property is not available.");return}if(x&&be+1>=Y.length){var Nn=x(ee,Me);le=!!Nn,le&&"get"in Nn&&!("originalValue"in Nn.get)?ee=Nn.get:ee=ee[Me]}else le=G(ee,Me),ee=ee[Me];le&&!Re&&(L[pe]=ee)}}return ee}}}),Dv=fe({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=Cce(),n=V6(),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}}}),Tce=fe({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=H6();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),q6=fe({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=Dv(),n=Tce()(),a=Y6(),l=Av(),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 y=l(p,"lastIndex"),b=y&&a(y,"value");if(!b)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}}),wce=fe({"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)}}}),Ace=fe({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=Dv(),n=q6(),a=r("RegExp.prototype.exec"),l=wv();t.exports=function(i){if(!n(i))throw new l("`regex` must be a RegExp");return function(o){return a(i,o)!==null}}}}),Oce=fe({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=Dv(),n=r("Object.prototype.toString"),a=U6()(),l=Ace();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}}),Dce=Tv(q6()),Rce=Tv(wce()),Nce=Tv(Oce());function Lce(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var Mce=typeof global=="object"&&global&&global.Object===Object&&global,Fce=Mce,Bce=typeof self=="object"&&self&&self.Object===Object&&self,Pce=Fce||Bce||Function("return this")(),Rv=Pce,Ice=Rv.Symbol,Eo=Ice,W6=Object.prototype,kce=W6.hasOwnProperty,zce=W6.toString,os=Eo?Eo.toStringTag:void 0;function Hce(e){var t=kce.call(e,os),r=e[os];try{e[os]=void 0;var n=!0}catch{}var a=zce.call(e);return n&&(t?e[os]=r:delete e[os]),a}var Uce=Hce,jce=Object.prototype,Kce=jce.toString;function Gce(e){return Kce.call(e)}var Vce=Gce,Yce="[object Null]",qce="[object Undefined]",qC=Eo?Eo.toStringTag:void 0;function Wce(e){return e==null?e===void 0?qce:Yce:qC&&qC in Object(e)?Uce(e):Vce(e)}var Xce=Wce,WC=Eo?Eo.prototype:void 0;WC&&WC.toString;function Zce(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var X6=Zce,Qce="[object AsyncFunction]",Jce="[object Function]",ede="[object GeneratorFunction]",tde="[object Proxy]";function rde(e){if(!X6(e))return!1;var t=Xce(e);return t==Jce||t==ede||t==Qce||t==tde}var nde=rde,ade=Rv["__core-js_shared__"],hm=ade,XC=function(){var e=/[^.]+$/.exec(hm&&hm.keys&&hm.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function lde(e){return!!XC&&XC in e}var ide=lde,ode=Function.prototype,sde=ode.toString;function ude(e){if(e!=null){try{return sde.call(e)}catch{}try{return e+""}catch{}}return""}var cde=ude,dde=/[\\^$.*+?()[\]{}|]/g,fde=/^\[object .+?Constructor\]$/,pde=Function.prototype,hde=Object.prototype,gde=pde.toString,mde=hde.hasOwnProperty,yde=RegExp("^"+gde.call(mde).replace(dde,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function bde(e){if(!X6(e)||ide(e))return!1;var t=nde(e)?yde:fde;return t.test(cde(e))}var vde=bde;function Ede(e,t){return e==null?void 0:e[t]}var Sde=Ede;function xde(e,t){var r=Sde(e,t);return vde(r)?r:void 0}var Z6=xde;function $de(e,t){return e===t||e!==e&&t!==t}var _de=$de,Cde=Z6(Object,"create"),mu=Cde;function Tde(){this.__data__=mu?mu(null):{},this.size=0}var wde=Tde;function Ade(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ode=Ade,Dde="__lodash_hash_undefined__",Rde=Object.prototype,Nde=Rde.hasOwnProperty;function Lde(e){var t=this.__data__;if(mu){var r=t[e];return r===Dde?void 0:r}return Nde.call(t,e)?t[e]:void 0}var Mde=Lde,Fde=Object.prototype,Bde=Fde.hasOwnProperty;function Pde(e){var t=this.__data__;return mu?t[e]!==void 0:Bde.call(t,e)}var Ide=Pde,kde="__lodash_hash_undefined__";function zde(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=mu&&t===void 0?kde:t,this}var Hde=zde;function ko(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])}}ko.prototype.clear=wde;ko.prototype.delete=Ode;ko.prototype.get=Mde;ko.prototype.has=Ide;ko.prototype.set=Hde;var ZC=ko;function Ude(){this.__data__=[],this.size=0}var jde=Ude;function Kde(e,t){for(var r=e.length;r--;)if(_de(e[r][0],t))return r;return-1}var Wp=Kde,Gde=Array.prototype,Vde=Gde.splice;function Yde(e){var t=this.__data__,r=Wp(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Vde.call(t,r,1),--this.size,!0}var qde=Yde;function Wde(e){var t=this.__data__,r=Wp(t,e);return r<0?void 0:t[r][1]}var Xde=Wde;function Zde(e){return Wp(this.__data__,e)>-1}var Qde=Zde;function Jde(e,t){var r=this.__data__,n=Wp(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var efe=Jde;function zo(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])}}zo.prototype.clear=jde;zo.prototype.delete=qde;zo.prototype.get=Xde;zo.prototype.has=Qde;zo.prototype.set=efe;var tfe=zo,rfe=Z6(Rv,"Map"),nfe=rfe;function afe(){this.size=0,this.__data__={hash:new ZC,map:new(nfe||tfe),string:new ZC}}var lfe=afe;function ife(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var ofe=ife;function sfe(e,t){var r=e.__data__;return ofe(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Xp=sfe;function ufe(e){var t=Xp(this,e).delete(e);return this.size-=t?1:0,t}var cfe=ufe;function dfe(e){return Xp(this,e).get(e)}var ffe=dfe;function pfe(e){return Xp(this,e).has(e)}var hfe=pfe;function gfe(e,t){var r=Xp(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var mfe=gfe;function Ho(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])}}Ho.prototype.clear=lfe;Ho.prototype.delete=cfe;Ho.prototype.get=ffe;Ho.prototype.has=hfe;Ho.prototype.set=mfe;var Q6=Ho,yfe="Expected a function";function Nv(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(yfe);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(Nv.Cache||Q6),r}Nv.Cache=Q6;var bfe=Nv,vfe=500;function Efe(e){var t=bfe(e,function(n){return r.size===vfe&&r.clear(),n}),r=t.cache;return t}var Sfe=Efe,xfe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$fe=/\\(\\)?/g;Sfe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(xfe,function(r,n,a,l){t.push(a?l.replace($fe,"$1"):n||r)}),t});var _fe=Lce,Cfe=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function J6(e){if(!_fe(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=nce(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 Tfe=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 Cfe.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,Dce.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,Rce.default)(i))return;if((0,Nce.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:J6(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}}},wfe={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},Afe=(e,t={})=>{let r={...wfe,...t};return JSON.stringify(J6(e),Tfe(r),t.space)};function e8(e){return Afe(e,{maxDepth:50})}var Lv=g.createContext({sources:{}}),t8="--unknown--",Ofe=({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?e8(u):t8;n(p=>({...p,[s]:{...p[s],[f]:{code:c||"",format:d}}}))};return t.on(Uv,a),()=>t.off(Uv,a)},[]),m.createElement(Lv.Provider,{value:{sources:r}},e)};function Dfe(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 Rfe={sources:{}},Nfe=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[e8(t)])||(a==null?void 0:a[t8])||{code:""}},Lfe=({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||Qp.AUTO,s=o===Qp.DYNAMIC||o===Qp.AUTO&&e&&l?e:i.originalSource||"",u=n??i.transform,c=u?Dfe(s,u,t):s;return i.code!==void 0?i.code:c},Mv=(e,t,r)=>{var p,y;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?Nfe(a.id,i,r):null,s=Lfe({snippet:o?o.code:"",storyContext:{...l,args:i},typeFromProps:e.type,transformFromProps:e.transform});if("of"in e&&n===void 0)throw new Wue;let u=((y=(p=a==null?void 0:a.parameters)==null?void 0:p.docs)==null?void 0:y.source)||{},c=e.format,d=e.language??u.language??"jsx",f=e.dark??u.dark??!1;return e.code===void 0&&!a?{error:"Oh no! The source is not available."}:e.code!==void 0?{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})},Mfe=e=>{let t=g.useContext(Lv),r=g.useContext(wr),n=Mv(e,r,t);return m.createElement(jp,{...n})},Ffe=e=>{let t=g.useContext(wr),r=Mv(e,t,Rfe);return m.createElement(jp,{...r})},Bfe=e=>e.code!==void 0?m.createElement(Ffe,{...e}):m.createElement(Mfe,{...e});jt("Source",Bfe);var Pfe=e=>{var y,b,S,h,v,E,x,_,$,C,w,A,O,T;let t=g.useContext(wr),r=g.useContext(Lv),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new que;let{story:l}=ai(n||"story",["story"]),i=Mv({...a,...n&&{of:n}},t,r),o=e.layout??l.parameters.layout??((b=(y=l.parameters.docs)==null?void 0:y.canvas)==null?void 0:b.layout)??"padded",s=e.withToolbar??((h=(S=l.parameters.docs)==null?void 0:S.canvas)==null?void 0:h.withToolbar)??!1,u=e.additionalActions??((E=(v=l.parameters.docs)==null?void 0:v.canvas)==null?void 0:E.additionalActions),c=e.sourceState??((_=(x=l.parameters.docs)==null?void 0:x.canvas)==null?void 0:_.sourceState)??"hidden",d=e.className??((C=($=l.parameters.docs)==null?void 0:$.canvas)==null?void 0:C.className),f=((w=e.story)==null?void 0:w.inline)??((T=(O=(A=l.parameters)==null?void 0:A.docs)==null?void 0:O.story)==null?void 0:T.inline)??!1,p=g.useCallback(()=>{t.channel.emit(Yue,{storyId:l.id})},[t.channel,l.id]);return m.createElement(N6,{withSource:c==="none"?void 0:i,isExpanded:c==="shown",withToolbar:s,additionalActions:u,className:d,layout:o,inline:f,onReloadStory:f?p:void 0},m.createElement(lue,{of:n||l.moduleExport,meta:e.meta,...e.story}))},Ife=jt("Canvas",Pfe);const{filterArgTypes:QC}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:kfe,STORY_ARGS_UPDATED:JC,UPDATE_STORY_ARGS:zfe}=__STORYBOOK_MODULE_CORE_EVENTS__;var Hfe=(e,t)=>{let r=Ufe(e,t);if(!r)throw new Error("No result when story was defined");return r},Ufe=(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(JC,s),()=>t.channel.off(JC,s)},[n,t.channel]);let i=g.useCallback(s=>t.channel.emit(zfe,{storyId:n,updatedArgs:s}),[n,t.channel]),o=g.useCallback(s=>t.channel.emit(kfe,{storyId:n,argNames:s}),[n,t.channel]);return e&&[a,i,o]};const{GLOBALS_UPDATED:eT}=__STORYBOOK_MODULE_CORE_EVENTS__;var jfe=(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(eT,l),()=>t.channel.off(eT,l)},[t.channel]),[n]};const{Tag:Kfe}=__STORYBOOK_MODULE_PREVIEW_API__;var r8=()=>{let e=g.useContext(wr),t=e.componentStories();return e.filterByAutodocs===!1?t[0]:t.find(r=>r.tags.includes(Kfe.AUTODOCS))};function Gfe(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var Vfe=e=>{var _;let{of:t}=e,r=g.useContext(wr),n=r8(),a=t?r.resolveOf(t,["story"]).story:n;if(!a)return null;let{parameters:l,argTypes:i,component:o,subcomponents:s}=a,u=((_=l.docs)==null?void 0:_.controls)||{},c=e.include??u.include,d=e.exclude??u.exclude,f=e.sort??u.sort,[p,y,b]=Hfe(a,r),[S]=jfe(a,r),h=QC(i,c,d);if(!(s&&Object.keys(s||{}).length>0))return Object.keys(h).length>0||Object.keys(p).length>0?m.createElement(Ff,{storyId:a.id,rows:h,sort:f,args:p,globals:S,updateArgs:y,resetArgs:b}):null;let v=B6(o)||"Story",E=Object.fromEntries(Object.entries(s||{}).map(([$,C])=>[$,{rows:QC(Gfe(C,l),c,d),sort:f}])),x={[v]:{rows:h,sort:f},...E};return m.createElement(L6,{tabs:x,sort:f,args:p,globals:S,updateArgs:y,resetArgs:b,storyId:a.id})},Yfe=jt("Controls",Vfe);const{InvalidBlockOfPropError:qfe}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{NAVIGATE_URL:Wfe}=__STORYBOOK_MODULE_CORE_EVENTS__;var{document:n8}=globalThis,a8=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return m.createElement(P1,null,t);let n=e&&e.split("-");return m.createElement(jp,{language:n&&n[1]||"text",format:!1,code:t,...r})};function Fv(e,t){e.channel.emit(Wfe,t)}var Ny=W4.a,Xfe=({hash:e,children:t})=>{let r=g.useContext(wr);return m.createElement(Ny,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);n8.getElementById(a)&&Fv(r,e)}},t)},l8=e=>{let{href:t,target:r,children:n,...a}=e,l=g.useContext(wr);return!t||r==="_blank"||/^https?:\/\//.test(t)?m.createElement(Ny,{...e}):t.startsWith("#")?m.createElement(Xfe,{hash:t},n):m.createElement(Ny,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),Fv(l,i.currentTarget.getAttribute("href")||""))},target:r,...a},n)},i8=["h1","h2","h3","h4","h5","h6"],Zfe=i8.reduce((e,t)=>({...e,[t]:R(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),Qfe=R.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),Jfe=({as:e,id:t,children:r,...n})=>{let a=g.useContext(wr),l=Zfe[e],i=`#${t}`;return m.createElement(l,{id:t,...n},m.createElement(Qfe,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:o=>{n8.getElementById(t)&&Fv(a,i)}},m.createElement(Dz,null)),r)},Bv=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return m.createElement(Jfe,{as:t,id:r,...a},n);let l=t,{as:i,...o}=e;return m.createElement(l,{...Ye(o,t)})},o8=i8.reduce((e,t)=>({...e,[t]:r=>m.createElement(Bv,{as:t,...r})}),{}),epe=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(K8`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
  675. This is often caused by not wrapping the child in a template string.
  676. This is invalid:
  677. <Markdown>
  678. # Some heading
  679. A paragraph
  680. </Markdown>
  681. Instead do:
  682. <Markdown>
  683. {\`
  684. # Some heading
  685. A paragraph
  686. \`}
  687. </Markdown>
  688. `);return m.createElement(c6,{...e,options:{forceBlock:!0,overrides:{code:a8,a:l8,...o8,...(t=e==null?void 0:e.options)==null?void 0:t.overrides},...e==null?void 0:e.options}})},tpe=jt("Markdown",epe),rpe=e=>{var t,r,n,a,l,i,o,s;switch(e.type){case"story":return((r=(t=e.story.parameters.docs)==null?void 0:t.description)==null?void 0:r.story)||null;case"meta":{let{parameters:u,component:c}=e.preparedMeta;return((a=(n=u.docs)==null?void 0:n.description)==null?void 0:a.component)||((i=(l=u.docs)==null?void 0:l.extractComponentDescription)==null?void 0:i.call(l,c,{component:c,parameters:u}))||null}case"component":{let{component:u,projectAnnotations:{parameters:c}}=e;return((s=(o=c==null?void 0:c.docs)==null?void 0:o.extractComponentDescription)==null?void 0:s.call(o,u,{component:u,parameters:c}))||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${e.type}`)}},npe=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new qfe;let r=ai(t||"meta"),n=rpe(r);return n?m.createElement(tpe,null,n):null},Ly=jt("Description",npe),ape=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,lpe=Object.hasOwnProperty,s8=class{constructor(){this.occurrences,this.reset()}slug(e,t){let r=this,n=ipe(e,t===!0),a=n;for(;lpe.call(r.occurrences,n);)r.occurrences[a]++,n=a+"-"+r.occurrences[a];return r.occurrences[n]=0,n}reset(){this.occurrences=Object.create(null)}};function ipe(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(ape,"").replace(/ /g,"-"))}var ope=()=>new s8,Pv=g.createContext(null),{document:spe,window:upe}=globalThis,cpe=({context:e,theme:t,children:r})=>{var l,i,o,s,u;let n=g.useMemo(()=>ope(),[]),a;try{a=(i=(l=e.resolveOf("meta",["meta"]).preparedMeta.parameters)==null?void 0:l.docs)==null?void 0:i.toc}catch{a=(u=(s=(o=e==null?void 0:e.projectAnnotations)==null?void 0:o.parameters)==null?void 0:s.docs)==null?void 0:u.toc}return g.useEffect(()=>{let c;try{if(c=new URL(upe.parent.location.toString()),c.hash){let d=spe.getElementById(decodeURIComponent(c.hash.substring(1)));d&&setTimeout(()=>{Kue(d)},200)}}catch{}}),m.createElement(Pv.Provider,{value:n},m.createElement(wr.Provider,{value:e},m.createElement(Ofe,{channel:e.channel},m.createElement(r1,{theme:TO(t)},m.createElement(Dse,{toc:a?m.createElement(kue,{className:"sbdocs sbdocs-toc--custom",channel:e.channel,...a}):null},r)))))},u8=new s8,dpe=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return m.createElement(I1,null,e);let n=(m.useContext(Pv)??u8).slug(e.toLowerCase());return m.createElement(Bv,{as:"h2",id:n,...r},e)},fpe=jt("Heading",dpe),ppe=({children:e,disableAnchor:t})=>{if(t||typeof e!="string")return m.createElement(k1,null,e);let r=(m.useContext(Pv)??u8).slug(e.toLowerCase());return m.createElement(Bv,{as:"h3",id:r},e)},hpe=jt("Subheading",ppe),gpe=({of:e,expanded:t=!0,withToolbar:r=!1,__forceInitialArgs:n=!1,__primary:a=!1})=>{var o,s;let{story:l}=ai(e||"story",["story"]),i=((s=(o=l.parameters.docs)==null?void 0:o.canvas)==null?void 0:s.withToolbar)??r;return m.createElement(Hue,{storyId:a?`primary--${l.id}`:l.id},t&&m.createElement(m.Fragment,null,m.createElement(hpe,null,l.name),m.createElement(Ly,{of:e})),m.createElement(Ife,{of:e,withToolbar:i,story:{__forceInitialArgs:n,__primary:a},source:{__forceInitialArgs:n}}))},c8=jt("DocsStory",gpe),mpe=()=>{let e=r8();return e?m.createElement(c8,{of:e.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},ype=jt("Primary",mpe);const{Tag:tT}=__STORYBOOK_MODULE_PREVIEW_API__;var bpe=R(fpe)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}})),vpe=({title:e="Stories",includePrimary:t=!0})=>{var o;let{componentStories:r,projectAnnotations:n,getStoryContext:a}=g.useContext(wr),l=r(),{stories:{filter:i}={filter:void 0}}=((o=n.parameters)==null?void 0:o.docs)||{};return i&&(l=l.filter(s=>i(s,a(s)))),l.some(s=>{var u;return(u=s.tags)==null?void 0:u.includes(tT.AUTODOCS)})&&(l=l.filter(s=>{var u;return((u=s.tags)==null?void 0:u.includes(tT.AUTODOCS))&&!s.usesMount})),t||(l=l.slice(1)),!l||l.length===0?null:m.createElement(m.Fragment,null,typeof e=="string"?m.createElement(bpe,null,e):e,l.map(s=>s&&m.createElement(c8,{key:s.id,of:s.moduleExport,expanded:!0,__forceInitialArgs:!0})))},Epe=jt("Stories",vpe);const{deprecate:Spe}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{InvalidBlockOfPropError:xpe}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var $pe="https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle",_pe=e=>{let{of:t,children:r}=e;if("of"in e&&t===void 0)throw new xpe;let n;try{n=ai(t||"meta",["meta"]).preparedMeta}catch(o){if(r&&!o.message.includes("did you forget to use <Meta of={} />?"))throw o}let{componentSubtitle:a,docs:l}=(n==null?void 0:n.parameters)||{};a&&Spe(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${$pe}`);let i=r||(l==null?void 0:l.subtitle)||a;return i?m.createElement(wse,{className:"sbdocs-subtitle sb-unstyled"},i):null},Cpe=jt("Subtitle",_pe);const{InvalidBlockOfPropError:Tpe}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var wpe=/\s*\/\s*/,Ape=e=>{let t=e.trim().split(wpe);return(t==null?void 0:t[(t==null?void 0:t.length)-1])||e},Ope=e=>{let{children:t,of:r}=e;if("of"in e&&r===void 0)throw new Tpe;let n;try{n=ai(r||"meta",["meta"]).preparedMeta}catch(l){if(t&&l instanceof Error&&!l.message.includes("did you forget to use <Meta of={} />?"))throw l}let a=t||Ape((n==null?void 0:n.title)||"");return a?m.createElement(Tse,{className:"sbdocs-title sb-unstyled"},a):null},Dpe=jt("Title",Ope),Rpe=()=>{let e=ai("meta",["meta"]),{stories:t}=e.csfFile,r=Object.keys(t).length===1;return m.createElement(m.Fragment,null,m.createElement(Dpe,null),m.createElement(Cpe,null),m.createElement(Ly,{of:"meta"}),r?m.createElement(Ly,{of:"story"}):null,m.createElement(ype,null),m.createElement(Yfe,null),r?null:m.createElement(Epe,null))};function Npe({context:e,docsParameter:t}){let r=t.container||cpe,n=t.page||Rpe;return m.createElement(r,{context:e,theme:t.theme},m.createElement(n,null))}const{composeConfigs:she}=__STORYBOOK_MODULE_PREVIEW_API__,{Channel:uhe}=__STORYBOOK_MODULE_CHANNELS__,{Preview:che,composeConfigs:dhe}=__STORYBOOK_MODULE_PREVIEW_API__,{DocsContext:fhe}=__STORYBOOK_MODULE_PREVIEW_API__;var Lpe=e=>m.createElement("div",{...e,className:"sb-unstyled"});jt("Unstyled",Lpe);var Mpe=({children:e})=>m.createElement("div",{style:{fontFamily:"sans-serif"}},e);jt("Wrapper",Mpe);var d8={code:a8,a:l8,...o8},Fpe=class extends g.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:m.createElement(m.Fragment,null,t)}},Bpe=class{constructor(){this.render=async(e,t,r)=>{let n={...d8,...t==null?void 0:t.components},a=Npe;return new Promise((l,i)=>{ta(async()=>{const{MDXProvider:o}=await Promise.resolve().then(()=>Vae);return{MDXProvider:o}},void 0,import.meta.url).then(({MDXProvider:o})=>yP(m.createElement(Fpe,{showException:i,key:Math.random()},m.createElement(o,{components:n},m.createElement(a,{context:e,docsParameter:t}))),r)).then(()=>l())})},this.unmount=e=>{bP(e)}}};const phe=Object.freeze(Object.defineProperty({__proto__:null,DocsRenderer:Bpe,defaultComponents:d8},Symbol.toStringTag,{value:"Module"}));export{Vx as $,Ik as A,Ke as B,phe as D,ri as F,Yx as M,pv as P,m as R,s1 as S,Lt as _,Kl as a,mw as b,vz as c,Mr as d,xo as e,qpe as f,ln as g,Wb as l,g as r,R as s};