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]); 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;rn[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;ass(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;st?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>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{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>10),56320+(f&1023)),f=0,d=s+3,s=p=o.indexOf("%",d);else{if(y===r)return null;if(s+=3,s{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=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;s0&&(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=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{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;c0){i+=t.spacingOuter;let s=r+t.indent;for(let u=0;u{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("<","<").replaceAll(">",">")}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(` `)&&(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}${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}${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(tt.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,` ${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?" ":` `,spacingOuter:e!=null&&e.min?"":` `}}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;ul&&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[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{}":`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=""),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,` `)}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(``,"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{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];rt.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(;rn?e=e.substring(r-n):r0?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=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=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(;t1?(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{let v=0;for(;p{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{let x=0,_=p,$=v[x],C=$;v[x]-=n(y,$-1,b,S+$-_-1,h);let w=p{let w=S-y,A=b-y,O=h-S-A,T=-O-(p-1),M=-O+(p-1),P=t,I=p{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]{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{if(h-S{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{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(` `)}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(` `)}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)} ${a(f)} `}function Vy(e,t,r){return LN(r,NN(e))+(r.expand?wN(e,r):TN(e,r))+(t?r.truncateAnnotationColor(` ${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 `)?`\r `:` `}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(` `),p=t.includes(` `),y=CE(e),b=CE(t),S=f?`${e.split(y,a).join(y)} `:e,h=p?`${t.split(b,a).join(b)} `: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(` `)){let r=t.split(` `),n=r.length-1;r.forEach((a,l)=>{l{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{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]!==` `))}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(` `)||t.includes(` `),[a,l]=GT(n?`${e} `:e,n?`${t} `: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(` `),t.split(` `),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}:`)} ${y}`,v=`${d(`${f} ${c}:`)} ${b}`;return`${h} ${v}`}if(!l)switch(n){case"string":return kf(e.split(` `),t.split(` `),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(` `),a.split(` `),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)} ${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(` `),s.split(` `),l.split(` `),i.split(` `),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(` `)||e.includes(` `))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} ${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?`: ${e.message}`:typeof e=="string"?`: ${e}`:""}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``;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return``;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} 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;fe.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=` ${b} { background: ${f} !important; ${NL} }`;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=` ${S} { background-size: ${T} !important; background-position: ${$}px ${C}px, ${$}px ${C}px, ${$}px ${C}px, ${$}px ${C}px !important; background-blend-mode: difference !important; background-image: linear-gradient(rgba(130, 130, 130, ${_}) 1px, transparent 1px), linear-gradient(90deg, rgba(130, 130, 130, ${_}) 1px, transparent 1px), linear-gradient(rgba(130, 130, 130, ${_/2}) 1px, transparent 1px), linear-gradient(90deg, rgba(130, 130, 130, ${_/2}) 1px, transparent 1px) !important; } `;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]&>("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=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",{},[` #${He} { position: absolute; z-index: ${Hv}; width: 300px; padding: 0px; margin: 15px 0 0 0; transform: translateX(-50%); font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px; background: white; border: none; border-radius: 6px; box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1); color: #2E3438; } #${He} ul { list-style: none; margin: 0; padding: 0; } #${He} > ul { max-height: 300px; overflow-y: auto; padding: 4px 0; } #${He} li { padding: 0 4px; margin: 0; } #${He} li > :not(ul) { display: flex; padding: 8px; margin: 0; align-items: center; gap: 8px; border-radius: 4px; } #${He} button { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; font-family: inherit; font-size: inherit; } #${He} button:focus-visible { outline-color: #029CFD; } #${He} button:hover { background: rgba(2, 156, 253, 0.07); color: #029CFD; cursor: pointer; } #${He} li code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 16px; font-size: 11px; } #${He} li svg { flex-shrink: 0; margin: 1px; color: #73828C; } #${He} li > button:hover svg, #${He} li > button:focus-visible svg { color: #029CFD; } #${He} .element-list li svg { display: none; } #${He} li.selectable svg, #${He} li.selected svg { display: block; } #${He} .menu-list { border-top: 1px solid rgba(38, 85, 115, 0.15); } #${He} .menu-list > li:not(:last-child) { padding-bottom: 4px; margin-bottom: 4px; border-bottom: 1px solid rgba(38, 85, 115, 0.15); } #${He} .menu-items, #${He} .menu-items li { padding: 0; } #${He} .menu-item { display: flex; } #${He} .menu-item-content { display: flex; flex-direction: column; flex-grow: 1; } `]))}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&>("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} { 0% { outline: 2px solid #1EA7FD; } 20% { outline: 2px solid #1EA7FD00; } 40% { outline: 2px solid #1EA7FD; } 60% { outline: 2px solid #1EA7FD00; } 80% { outline: 2px solid #1EA7FD; } 100% { outline: 2px solid #1EA7FD00; } }`}]),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){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` ${e} body { outline: 1px solid #2980b9 !important; } ${e} article { outline: 1px solid #3498db !important; } ${e} nav { outline: 1px solid #0088c3 !important; } ${e} aside { outline: 1px solid #33a0ce !important; } ${e} section { outline: 1px solid #66b8da !important; } ${e} header { outline: 1px solid #99cfe7 !important; } ${e} footer { outline: 1px solid #cce7f3 !important; } ${e} h1 { outline: 1px solid #162544 !important; } ${e} h2 { outline: 1px solid #314e6e !important; } ${e} h3 { outline: 1px solid #3e5e85 !important; } ${e} h4 { outline: 1px solid #449baf !important; } ${e} h5 { outline: 1px solid #c7d1cb !important; } ${e} h6 { outline: 1px solid #4371d0 !important; } ${e} main { outline: 1px solid #2f4f90 !important; } ${e} address { outline: 1px solid #1a2c51 !important; } ${e} div { outline: 1px solid #036cdb !important; } ${e} p { outline: 1px solid #ac050b !important; } ${e} hr { outline: 1px solid #ff063f !important; } ${e} pre { outline: 1px solid #850440 !important; } ${e} blockquote { outline: 1px solid #f1b8e7 !important; } ${e} ol { outline: 1px solid #ff050c !important; } ${e} ul { outline: 1px solid #d90416 !important; } ${e} li { outline: 1px solid #d90416 !important; } ${e} dl { outline: 1px solid #fd3427 !important; } ${e} dt { outline: 1px solid #ff0043 !important; } ${e} dd { outline: 1px solid #e80174 !important; } ${e} figure { outline: 1px solid #ff00bb !important; } ${e} figcaption { outline: 1px solid #bf0032 !important; } ${e} table { outline: 1px solid #00cc99 !important; } ${e} caption { outline: 1px solid #37ffc4 !important; } ${e} thead { outline: 1px solid #98daca !important; } ${e} tbody { outline: 1px solid #64a7a0 !important; } ${e} tfoot { outline: 1px solid #22746b !important; } ${e} tr { outline: 1px solid #86c0b2 !important; } ${e} th { outline: 1px solid #a1e7d6 !important; } ${e} td { outline: 1px solid #3f5a54 !important; } ${e} col { outline: 1px solid #6c9a8f !important; } ${e} colgroup { outline: 1px solid #6c9a9d !important; } ${e} button { outline: 1px solid #da8301 !important; } ${e} datalist { outline: 1px solid #c06000 !important; } ${e} fieldset { outline: 1px solid #d95100 !important; } ${e} form { outline: 1px solid #d23600 !important; } ${e} input { outline: 1px solid #fca600 !important; } ${e} keygen { outline: 1px solid #b31e00 !important; } ${e} label { outline: 1px solid #ee8900 !important; } ${e} legend { outline: 1px solid #de6d00 !important; } ${e} meter { outline: 1px solid #e8630c !important; } ${e} optgroup { outline: 1px solid #b33600 !important; } ${e} option { outline: 1px solid #ff8a00 !important; } ${e} output { outline: 1px solid #ff9619 !important; } ${e} progress { outline: 1px solid #e57c00 !important; } ${e} select { outline: 1px solid #e26e0f !important; } ${e} textarea { outline: 1px solid #cc5400 !important; } ${e} details { outline: 1px solid #33848f !important; } ${e} summary { outline: 1px solid #60a1a6 !important; } ${e} command { outline: 1px solid #438da1 !important; } ${e} menu { outline: 1px solid #449da6 !important; } ${e} del { outline: 1px solid #bf0000 !important; } ${e} ins { outline: 1px solid #400000 !important; } ${e} img { outline: 1px solid #22746b !important; } ${e} iframe { outline: 1px solid #64a7a0 !important; } ${e} embed { outline: 1px solid #98daca !important; } ${e} object { outline: 1px solid #00cc99 !important; } ${e} param { outline: 1px solid #37ffc4 !important; } ${e} video { outline: 1px solid #6ee866 !important; } ${e} audio { outline: 1px solid #027353 !important; } ${e} source { outline: 1px solid #012426 !important; } ${e} canvas { outline: 1px solid #a2f570 !important; } ${e} track { outline: 1px solid #59a600 !important; } ${e} map { outline: 1px solid #7be500 !important; } ${e} area { outline: 1px solid #305900 !important; } ${e} a { outline: 1px solid #ff62ab !important; } ${e} em { outline: 1px solid #800b41 !important; } ${e} strong { outline: 1px solid #ff1583 !important; } ${e} i { outline: 1px solid #803156 !important; } ${e} b { outline: 1px solid #cc1169 !important; } ${e} u { outline: 1px solid #ff0430 !important; } ${e} s { outline: 1px solid #f805e3 !important; } ${e} small { outline: 1px solid #d107b2 !important; } ${e} abbr { outline: 1px solid #4a0263 !important; } ${e} q { outline: 1px solid #240018 !important; } ${e} cite { outline: 1px solid #64003c !important; } ${e} dfn { outline: 1px solid #b4005a !important; } ${e} sub { outline: 1px solid #dba0c8 !important; } ${e} sup { outline: 1px solid #cc0256 !important; } ${e} time { outline: 1px solid #d6606d !important; } ${e} code { outline: 1px solid #e04251 !important; } ${e} kbd { outline: 1px solid #5e001f !important; } ${e} samp { outline: 1px solid #9c0033 !important; } ${e} var { outline: 1px solid #d90047 !important; } ${e} mark { outline: 1px solid #ff0053 !important; } ${e} bdi { outline: 1px solid #bf3668 !important; } ${e} bdo { outline: 1px solid #6f1400 !important; } ${e} ruby { outline: 1px solid #ff7b93 !important; } ${e} rt { outline: 1px solid #ff2f54 !important; } ${e} rp { outline: 1px solid #803e49 !important; } ${e} span { outline: 1px solid #cc2643 !important; } ${e} br { outline: 1px solid #db687d !important; } ${e} wbr { outline: 1px solid #db175b !important; }`}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={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */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>>1,B=L[U];if(0>>1;Ua(Z,N))Ja(j,Z)?(L[U]=j,L[J]=N,U=J):(L[U]=Z,L[V]=N,U=V);else if(Ja(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()-AL&&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||125U?(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={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var IM=g;function hw(e){var t="https://react.dev/errors/"+e;if(1"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);/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var bt=PM,yw=g,HM=xo;function W(e){var t="https://react.dev/errors/"+e;if(1Si||(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)":-1a||s[n]!==u[a]){var c=` `+s[n].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",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` Error generating stack: `+n.message+` `+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"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"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=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)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>=i,a-=i,vn=1<<32-vr(t)+a|r<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(;ww?(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;el?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<\/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 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;oS&&(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;or?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;0o)break;var c=s.transferSize,d=s.initiatorType;c&&px(d)&&(s=s.responseEnd,i+=c*(s"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 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),0Yh?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"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=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=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;C0?Tt(Ro,--or):0,io--,ct===10&&(io=1,op--),ct}function Sr(){return ct=or2||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;y0?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;a6)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=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;a96?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({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` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,_O=_t` 0%, 100% { opacity: 1; } 50% { opacity: .4; } `,yk=_t` 0% { transform: translateY(1px); } 25% { transform: translateY(0px); } 50% { transform: translateY(-3px); } 100% { transform: translateY(1px); } `,bk=_t` 0%, 100% { transform:translate3d(0,0,0); } 12.5%, 62.5% { transform:translate3d(-4px,0,0); } 37.5%, 87.5% { transform: translate3d(4px,0,0); } `,vk=pp` animation: ${_O} 1.5s ease-in-out infinite; color: transparent; cursor: progress; `,Ek=pp` transition: all 150ms ease-out; transform: translate3d(0, 0, 0); &:hover { transform: translate3d(0, -2px, 0); } &:active { transform: translate3d(0, 0, 0); } `,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` Your theme is missing properties, you should update your theme! theme-data missing: `,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={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */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:` [data-radix-scroll-area-viewport] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-radix-scroll-area-viewport]::-webkit-scrollbar { display: none; } :where([data-radix-scroll-area-viewport]) { display: flex; flex-direction: column; align-items: stretch; } :where([data-radix-scroll-area-content]) { flex-grow: 1; } `},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{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{})=>{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, or await store.readyPromise to wait for the store to be ready before sending events. ${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] 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. 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, or await store.readyPromise to wait for the store to be ready before sending events. ${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}". Only one leader can exists at a time, your stores are now in an invalid state. Leaders detected: this: ${JSON.stringify(this.actor,null,2)} 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}] ${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"||!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){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-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();++te.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=` ${t.map(i=>` - ${t$(i)}`).join(` `)}`),`${a}${l!=null?` More info: ${l} `:""}`}},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{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` Omitted potentially unsafe URL args. More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url `),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"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 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;to.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=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