kf-chat-sdk 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/global.css +0 -0
- package/.storybook/logo.png +0 -0
- package/.storybook/main.ts +17 -0
- package/.storybook/manager.ts +14 -0
- package/.storybook/preview-head.html +1 -0
- package/.storybook/preview.ts +22 -0
- package/.storybook/public/favicon.ico +0 -0
- package/.storybook/vitest.setup.ts +7 -0
- package/README.md +67 -0
- package/dist/kf-chat-sdk.cjs.js +2 -0
- package/dist/kf-chat-sdk.es.js +210 -0
- package/dist/kf-chat-sdk.iife.js +2 -0
- package/dist/kf-chat-sdk.umd.js +2 -0
- package/dist/src/ai-chat.d.ts +19 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/src/stories/Config.stories.d.ts +105 -0
- package/dist/src/types.d.ts +26 -0
- package/dist/src/utils.d.ts +6 -0
- package/dist/vite.svg +1 -0
- package/example/test.html +34 -0
- package/package.json +47 -0
- package/public/vite.svg +1 -0
- package/src/ai-chat.scss +92 -0
- package/src/ai-chat.ts +180 -0
- package/src/assets/chatlogo.png +0 -0
- package/src/assets/rebotframes.png +0 -0
- package/src/assets/rebotframes.png.zip +0 -0
- package/src/index.ts +13 -0
- package/src/stories/01-QuickStart.mdx +61 -0
- package/src/stories/02-KfAiChatInstance.mdx +60 -0
- package/src/stories/Config.stories.ts +419 -0
- package/src/stories/assets/accessibility.png +0 -0
- package/src/stories/assets/accessibility.svg +1 -0
- package/src/stories/assets/addon-library.png +0 -0
- package/src/stories/assets/assets.png +0 -0
- package/src/stories/assets/avif-test-image.avif +0 -0
- package/src/stories/assets/context.png +0 -0
- package/src/stories/assets/discord.svg +1 -0
- package/src/stories/assets/docs.png +0 -0
- package/src/stories/assets/figma-plugin.png +0 -0
- package/src/stories/assets/github.svg +1 -0
- package/src/stories/assets/share.png +0 -0
- package/src/stories/assets/styling.png +0 -0
- package/src/stories/assets/testing.png +0 -0
- package/src/stories/assets/theming.png +0 -0
- package/src/stories/assets/tutorials.svg +1 -0
- package/src/stories/assets/youtube.svg +1 -0
- package/src/stories/test.js +6 -0
- package/src/style.css +96 -0
- package/src/types.ts +28 -0
- package/src/typescript.svg +1 -0
- package/src/utils.ts +22 -0
- package/storybook-static/addon-visual-tests-assets/visual-test-illustration.mp4 +0 -0
- package/storybook-static/assets/01-QuickStart-B5SD5CD3.js +47 -0
- package/storybook-static/assets/02-KfAiChatInstance-C4aIC-m_.js +45 -0
- package/storybook-static/assets/Color-ASIRERSW-DTVqMCUO.js +1 -0
- package/storybook-static/assets/Config.stories-C4cl_xx1.js +334 -0
- package/storybook-static/assets/DocsRenderer-GHJI37HO-T8mt1n5r.js +10 -0
- package/storybook-static/assets/WithTooltip-IO6J4KBT-B70Ikd3l.js +9 -0
- package/storybook-static/assets/_commonjsHelpers-CqkleIqs.js +1 -0
- package/storybook-static/assets/axe-C1vtPvrb.js +20 -0
- package/storybook-static/assets/blocks-Cd8GYnjc.js +750 -0
- package/storybook-static/assets/formatter-QJ4M4OGQ-cj5x2rLy.js +1 -0
- package/storybook-static/assets/iframe-D_e5PX1O.js +1024 -0
- package/storybook-static/assets/index-CNTZSS8S.js +1 -0
- package/storybook-static/assets/matchers-DMFSMG2O-8XxnESUZ.js +14 -0
- package/storybook-static/assets/preload-helper-BDBacUwf.js +1 -0
- package/storybook-static/assets/syntaxhighlighter-IQDEPFLK-D60nBfBQ.js +6 -0
- package/storybook-static/favicon-wrapper.svg +46 -0
- package/storybook-static/favicon.ico +0 -0
- package/storybook-static/favicon.svg +1 -0
- package/storybook-static/iframe.html +687 -0
- package/storybook-static/index.html +155 -0
- package/storybook-static/index.json +1 -0
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/sb-addons/a11y-3/manager-bundle.js +5 -0
- package/storybook-static/sb-addons/chromatic-com-storybook-1/manager-bundle.js +352 -0
- package/storybook-static/sb-addons/chromatic-com-storybook-1/manager-bundle.js.LEGAL.txt +40 -0
- package/storybook-static/sb-addons/docs-4/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/storybook-5/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +628 -0
- package/storybook-static/sb-addons/vitest-2/manager-bundle.js +3 -0
- package/storybook-static/sb-common-assets/favicon-wrapper.svg +46 -0
- package/storybook-static/sb-common-assets/favicon.svg +1 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-runtime.js +75605 -0
- package/storybook-static/sb-manager/globals.js +24 -0
- package/storybook-static/sb-manager/manager-stores.js +23 -0
- package/storybook-static/sb-manager/runtime.js +19713 -0
- package/storybook-static/src/ai-chat.d.ts +19 -0
- package/storybook-static/src/index.d.ts +6 -0
- package/storybook-static/src/stories/Config.stories.d.ts +105 -0
- package/storybook-static/src/types.d.ts +26 -0
- package/storybook-static/src/utils.d.ts +6 -0
- package/storybook-static/vite-inject-mocker-entry.js +2 -0
- package/storybook-static/vite.svg +1 -0
- package/tsconfig.json +26 -0
- package/vite.config.ts +60 -0
- package/vitest.shims.d.ts +1 -0
|
@@ -0,0 +1,750 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./syntaxhighlighter-IQDEPFLK-D60nBfBQ.js","./iframe-D_e5PX1O.js","./preload-helper-BDBacUwf.js","./_commonjsHelpers-CqkleIqs.js","./formatter-QJ4M4OGQ-cj5x2rLy.js","./WithTooltip-IO6J4KBT-B70Ikd3l.js","./Color-ASIRERSW-DTVqMCUO.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var bw=Object.defineProperty,Ew=Object.defineProperties;var vw=Object.getOwnPropertyDescriptors;var Si=Object.getOwnPropertySymbols;var yp=Object.prototype.hasOwnProperty,bp=Object.prototype.propertyIsEnumerable;var Bl=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Sw=e=>{throw TypeError(e)};var jl=(e,t,r)=>t in e?bw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,E=(e,t)=>{for(var r in t||(t={}))yp.call(t,r)&&jl(e,r,t[r]);if(Si)for(var r of Si(t))bp.call(t,r)&&jl(e,r,t[r]);return e},P=(e,t)=>Ew(e,vw(t));var po=e=>typeof e=="symbol"?e:e+"",G=(e,t)=>{var r={};for(var n in e)yp.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Si)for(var n of Si(e))t.indexOf(n)<0&&bp.call(e,n)&&(r[n]=e[n]);return r};var Vt=(e,t,r)=>jl(e,typeof t!="symbol"?t+"":t,r);var xw=function(e,t){this[0]=e,this[1]=t};var Cr=e=>{var t=e[Bl("asyncIterator")],r=!1,n,o={};return t==null?(t=e[Bl("iterator")](),n=i=>o[i]=a=>t[i](a)):(t=t.call(e),n=i=>o[i]=a=>{if(r){if(r=!1,i==="throw")throw a;return a}return r=!0,{done:!1,value:new xw(new Promise(l=>{var s=t[i](a);s instanceof Object||Sw("Object expected"),l(s)}),1)}}),o[Bl("iterator")]=()=>o,n("next"),"throw"in t?n("throw"):o.throw=i=>{throw i},"return"in t&&n("return"),o};import{_ as Fr}from"./preload-helper-BDBacUwf.js";import{g as vd}from"./_commonjsHelpers-CqkleIqs.js";import{c as tt,i as ar,d as $w,e as ww,g as Ep,f as Cw,r as _w,s as Tw,h as Aw,j as Ow,n as Rw,k as Dw,o as Hl,l as vp,m as Pw,p as Iw,q as Fw,t as Lw,u as kw,v as Nw,w as Mw,x as Bw,y as jw,z as Hw,A as Uw,B as zw,C as Kw,D as Gw,E as Ww,F as Vw,G as qw,H as Sp,I as xi,b as vt,J as qe,S as xp,K as Yw,L as Ul,_ as Xw,a as Jw,M as $i}from"./iframe-D_e5PX1O.js";function Zw(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(n,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var $p="backgrounds",Qw="outline",eC={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}};function tC(){var e,t,r;try{return!!globalThis.__vitest_browser__||!!((r=(t=(e=globalThis.window)==null?void 0:e.navigator)==null?void 0:t.userAgent)!=null&&r.match(/StorybookTestRunner/))}catch(n){return!1}}var My=tt({"../node_modules/picoquery/lib/string-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(o,i)=>"%"+((i<16?"0":"")+i.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(o){let i=o.length;if(i===0)return"";let a="",l=0,s=0;e:for(;s<i;s++){let u=o.charCodeAt(s);for(;u<128;){if(r[u]!==1&&(l<s&&(a+=o.slice(l,s)),l=s+1,a+=t[u]),++s===i)break e;u=o.charCodeAt(s)}if(l<s&&(a+=o.slice(l,s)),u<2048){l=s+1,a+=t[192|u>>6]+t[128|u&63];continue}if(u<55296||u>=57344){l=s+1,a+=t[224|u>>12]+t[128|u>>6&63]+t[128|u&63];continue}if(++s,s>=i)throw new Error("URI malformed");let c=o.charCodeAt(s)&1023;l=s+1,u=65536+((u&1023)<<10|c),a+=t[240|u>>18]+t[128|u>>12&63]+t[128|u>>6&63]+t[128|u&63]}return l===0?o:l<i?a+o.slice(l):a}}}),Sd=tt({"../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=My(),r=i=>{switch(typeof i){case"string":return(0,t.encodeString)(i);case"bigint":case"boolean":return""+i;case"number":if(Number.isFinite(i))return i<1e21?""+i:(0,t.encodeString)(""+i);break}return i instanceof Date?(0,t.encodeString)(i.toISOString()):""};e.defaultValueSerializer=r;var n=i=>i instanceof Date;e.defaultShouldSerializeObject=n;var o=i=>i;e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:o,valueSerializer:e.defaultValueSerializer,keyDeserializer:o,shouldSerializeObject:e.defaultShouldSerializeObject}}}),By=tt({"../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=c;var t=Sd(),r=My();function n(d){return d==="__proto__"||d==="constructor"||d==="prototype"}function o(d,f,p,m,y){if(n(f))return d;let S=d[f];return typeof S=="object"&&S!==null?S:!m&&(y||typeof p=="number"||typeof p=="string"&&p*0===0&&p.indexOf(".")===-1)?d[f]=[]:d[f]={}}var i=20,a="[]",l="[",s="]",u=".";function c(d,f,p=0,m,y){let{nestingSyntax:S=t.defaultOptions.nestingSyntax,arrayRepeat:b=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:v=t.defaultOptions.arrayRepeatSyntax,nesting:x=t.defaultOptions.nesting,delimiter:C=t.defaultOptions.delimiter,valueSerializer:A=t.defaultOptions.valueSerializer,shouldSerializeObject:$=t.defaultOptions.shouldSerializeObject}=f,w=typeof C=="number"?String.fromCharCode(C):C,_=y===!0&&b,O=S==="dot"||S==="js"&&!y;if(p>i)return"";let T="",I=!0,D=!1;for(let M in d){let k=d[M];if(k===void 0)continue;let R;m?(R=m,_?v==="bracket"&&(R+=a):O?(R+=u,R+=M):(R+=l,R+=M,R+=s)):R=M,I||(T+=w),typeof k=="object"&&k!==null&&!$(k)?(D=k.pop!==void 0,(x||b&&D)&&(T+=c(k,f,p+1,R,D))):(T+=(0,r.encodeString)(R),T+="=",T+=A(k,M)),I&&(I=!1)}return T}}}),rC=tt({"../node_modules/picoquery/lib/decode-uri-component.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeURIComponent=o;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 o(l){let s=l.indexOf("%");if(s===-1)return l;let u=l.length,c="",d=0,f=0,p=s,m=t;for(;s>-1&&s<u;){let y=a(l[s+1],4),S=a(l[s+2],0),b=y|S,v=n[b];if(m=n[256+m+v],f=f<<6|b&n[364+v],m===t)c+=l.slice(d,p),c+=f<=65535?String.fromCharCode(f):String.fromCharCode(55232+(f>>10),56320+(f&1023)),f=0,d=s+3,s=p=l.indexOf("%",d);else{if(m===r)return null;if(s+=3,s<u&&l.charCodeAt(s)===37)continue;return null}}return c+l.slice(d)}var i={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function a(l,s){let u=i[l];return u===void 0?255:u<<s}}}),nC=tt({"../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=u;var t=By(),r=Sd(),n=rC(),o=c=>{let d=Number(c);return Number.isNaN(d)?c:d};e.numberKeyDeserializer=o;var i=c=>{let d=Number(c);return Number.isNaN(d)?c:d};e.numberValueDeserializer=i;var a=/\+/g,l=function(){};l.prototype=Object.create(null);function s(c,d,f,p,m){let y=c.substring(d,f);return p&&(y=y.replace(a," ")),m&&(y=(0,n.decodeURIComponent)(y)||y),y}function u(c,d){let{valueDeserializer:f=r.defaultOptions.valueDeserializer,keyDeserializer:p=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:m=r.defaultOptions.arrayRepeatSyntax,nesting:y=r.defaultOptions.nesting,arrayRepeat:S=r.defaultOptions.arrayRepeat,nestingSyntax:b=r.defaultOptions.nestingSyntax,delimiter:v=r.defaultOptions.delimiter}=d!=null?d:{},x=typeof v=="string"?v.charCodeAt(0):v,C=b==="js",A=new l;if(typeof c!="string")return A;let $=c.length,w="",_=-1,O=-1,T=-1,I=A,D,M="",k="",R=!1,j=!1,L=!1,z=!1,U=!1,B=!1,F=0,H=-1,W=-1,V=-1;for(let K=0;K<$+1;K++){if(F=K!==$?c.charCodeAt(K):x,F===x){if(B=O>_,B||(O=K),T!==O-1&&(k=s(c,T+1,H>-1?H:O,L,R),M=p(k),D!==void 0&&(I=(0,t.getDeepObject)(I,D,M,C&&U,void 0))),B||M!==""){B&&(w=c.slice(O+1,K),z&&(w=w.replace(a," ")),j&&(w=(0,n.decodeURIComponent)(w)||w));let q=f(w,M);if(S){let X=I[M];X===void 0?H>-1?I[M]=[q]:I[M]=q:X.pop?X.push(q):I[M]=[X,q]}else I[M]=q}w="",_=K,O=K,R=!1,j=!1,L=!1,z=!1,U=!1,H=-1,T=K,I=A,D=void 0,M=""}else F===93?(S&&m==="bracket"&&V===91&&(H=W),y&&(b==="index"||C)&&O<=_&&(T!==W&&(k=s(c,T+1,K,L,R),M=p(k),D!==void 0&&(I=(0,t.getDeepObject)(I,D,M,void 0,void 0)),D=M,L=!1,R=!1),T=K,U=!1)):F===46?y&&(b==="dot"||C)&&O<=_&&(T!==W&&(k=s(c,T+1,K,L,R),M=p(k),D!==void 0&&(I=(0,t.getDeepObject)(I,D,M,C)),D=M,L=!1,R=!1),U=!0,T=K):F===91?y&&(b==="index"||C)&&O<=_&&(T!==W&&(k=s(c,T+1,K,L,R),M=p(k),C&&D!==void 0&&(I=(0,t.getDeepObject)(I,D,M,C)),D=M,L=!1,R=!1,U=!1),T=K):F===61?O<=_?O=K:j=!0:F===43?O>_?z=!0:L=!0:F===37&&(O>_?j=!0:R=!0);W=K,V=F}return A}}}),oC=tt({"../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=By();function r(n,o){if(n===null||typeof n!="object")return"";let i=o!=null?o:{};return(0,t.stringifyObject)(n,i)}}}),iC=tt({"../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?(function(i,a,l,s){s===void 0&&(s=l);var u=Object.getOwnPropertyDescriptor(a,l);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[l]}}),Object.defineProperty(i,s,u)}):(function(i,a,l,s){s===void 0&&(s=l),i[s]=a[l]})),r=e&&e.__exportStar||function(i,a){for(var l in i)l!=="default"&&!Object.prototype.hasOwnProperty.call(a,l)&&t(a,i,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=nC();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return n.parse}});var o=oC();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),r(Sd(),e)}});function aC(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let i=n[o],a=e[i];r[i]=t(a,i,e)}return r}function lC(e){return e==="__proto__"}function bt(e,t,r){let n=Object.keys(t);for(let o=0;o<n.length;o++){let i=n[o];if(lC(i))continue;let a=t[i],l=e[i],s=r(l,a,i,e,t);s!==void 0?e[i]=s:Array.isArray(a)?Array.isArray(l)?e[i]=bt(l,a,r):e[i]=bt([],a,r):ar(a)?ar(l)?e[i]=bt(l,a,r):e[i]=bt({},a,r):(l===void 0||a!==void 0)&&(e[i]=a)}return e}function ho(e,t){let r={};for(let n=0;n<t.length;n++){let o=t[n];Object.hasOwn(e,o)&&(r[o]=e[o])}return r}function zl(e){if($w(e))return e;if(Array.isArray(e)||ww(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e),r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){let n=new r(e);return n.lastIndex=e.lastIndex,n}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let n=new r(e.message);return n.stack=e.stack,n.name=e.name,n.cause=e.cause,n}if(typeof File<"u"&&e instanceof File)return new r([e],e.name,{type:e.type,lastModified:e.lastModified});if(typeof e=="object"){let n=Object.create(t);return Object.assign(n,e)}return e}function Kl(e,t){return bt(zl(e),t,function r(n,o){if(Array.isArray(o))return Array.isArray(n)?bt(zl(n),o,r):bt([],o,r);if(ar(o))return ar(n)?bt(zl(n),o,r):bt({},o,r)})}function sC(){}function uC(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function cC(e,t,r){return To(e,t,void 0,void 0,void 0,void 0,r)}function To(e,t,r,n,o,i,a){let l=a(e,t,r,n,o,i);if(l!==void 0)return l;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return Io(e,t,i,a)}return Io(e,t,i,a)}function Io(e,t,r,n){if(Object.is(e,t))return!0;let o=Ep(e),i=Ep(t);if(o===Sp&&(o=Hl),i===Sp&&(i=Hl),o!==i)return!1;switch(o){case Dw:return e.toString()===t.toString();case Rw:{let s=e.valueOf(),u=t.valueOf();return uC(s,u)}case Ow:case Aw:case Tw:return Object.is(e.valueOf(),t.valueOf());case _w:return e.source===t.source&&e.flags===t.flags;case Cw:return e===t}r=r!=null?r:new Map;let a=r.get(e),l=r.get(t);if(a!=null&&l!=null)return a===t;r.set(e,t),r.set(t,e);try{switch(o){case qw:{if(e.size!==t.size)return!1;for(let[s,u]of e.entries())if(!t.has(s)||!To(u,t.get(s),s,e,t,r,n))return!1;return!0}case Vw:{if(e.size!==t.size)return!1;let s=Array.from(e.values()),u=Array.from(t.values());for(let c=0;c<s.length;c++){let d=s[c],f=u.findIndex(p=>To(d,p,void 0,e,t,r,n));if(f===-1)return!1;u.splice(f,1)}return!0}case Ww:case Gw:case Kw:case zw:case Uw:case Hw:case jw:case Bw:case Mw:case Nw:case kw:case Lw:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let s=0;s<e.length;s++)if(!To(e[s],t[s],s,e,t,r,n))return!1;return!0}case Fw:return e.byteLength!==t.byteLength?!1:Io(new Uint8Array(e),new Uint8Array(t),r,n);case Iw:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:Io(new Uint8Array(e),new Uint8Array(t),r,n);case Pw:return e.name===t.name&&e.message===t.message;case Hl:{if(!(Io(e.constructor,t.constructor,r,n)||ar(e)&&ar(t)))return!1;let s=[...Object.keys(e),...vp(e)],u=[...Object.keys(t),...vp(t)];if(s.length!==u.length)return!1;for(let c=0;c<s.length;c++){let d=s[c],f=e[d];if(!Object.hasOwn(t,d))return!1;let p=t[d];if(!To(f,p,d,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}function Qt(e,t){return cC(e,t,sC)}var dC="Invariant failed";function ec(e,t){if(!e)throw new Error(dC)}var Qn=tt({"../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,o,i){function a(u,c){if(!o[u]){if(!n[u]){var d=typeof xi=="function"&ξif(!c&&d)return d(u,!0);if(l)return l(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var p=o[u]={exports:{}};n[u][0].call(p.exports,function(m){var y=n[u][1][m];return a(y||m)},p,p.exports,r,n,o,i)}return o[u].exports}for(var l=typeof xi=="function"&&xi,s=0;s<i.length;s++)a(i[s]);return a})({1:[function(r,n,o){n.exports=function(i){if(typeof Map!="function"||i){var a=r("./similar");return new a}else return new Map}},{"./similar":2}],2:[function(r,n,o){function i(){return this.list=[],this.lastItem=void 0,this.size=0,this}i.prototype.get=function(a){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,a))return this.lastItem.val;if(l=this.indexOf(a),l>=0)return this.lastItem=this.list[l],this.list[l].val},i.prototype.set=function(a,l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,a)?(this.lastItem.val=l,this):(s=this.indexOf(a),s>=0?(this.lastItem=this.list[s],this.list[s].val=l,this):(this.lastItem={key:a,val:l},this.list.push(this.lastItem),this.size++,this))},i.prototype.delete=function(a){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,a)&&(this.lastItem=void 0),l=this.indexOf(a),l>=0)return this.size--,this.list.splice(l,1)[0]},i.prototype.has=function(a){var l;return this.lastItem&&this.isEqual(this.lastItem.key,a)?!0:(l=this.indexOf(a),l>=0?(this.lastItem=this.list[l],!0):!1)},i.prototype.forEach=function(a,l){var s;for(s=0;s<this.size;s++)a.call(l||this,this.list[s].val,this.list[s].key,this)},i.prototype.indexOf=function(a){var l;for(l=0;l<this.size;l++)if(this.isEqual(this.list[l].key,a))return l;return-1},i.prototype.isEqual=function(a,l){return a===l||a!==a&&l!==l},n.exports=i},{}],3:[function(r,n,o){var i=r("map-or-similar");n.exports=function(u){var c=new i(!1),d=[];return function(f){var p=function(){var m=c,y,S,b=arguments.length-1,v=Array(b+1),x=!0,C;if((p.numArgs||p.numArgs===0)&&p.numArgs!==b+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(C=0;C<b;C++){if(v[C]={cacheItem:m,arg:arguments[C]},m.has(arguments[C])){m=m.get(arguments[C]);continue}x=!1,y=new i(!1),m.set(arguments[C],y),m=y}return x&&(m.has(arguments[b])?S=m.get(arguments[b]):x=!1),x||(S=f.apply(null,arguments),m.set(arguments[b],S)),u>0&&(v[b]={cacheItem:m,arg:arguments[b]},x?a(d,v):d.push(v),d.length>u&&l(d.shift())),p.wasMemoized=x,p.numArgs=b+1,S};return p.limit=u,p.wasMemoized=!1,p.cache=c,p.lru=d,p}};function a(u,c){var d=u.length,f=c.length,p,m,y;for(m=0;m<d;m++){for(p=!0,y=0;y<f;y++)if(!s(u[m][y].arg,c[y].arg)){p=!1;break}if(p)break}u.push(u.splice(m,1)[0])}function l(u){var c=u.length,d=u[c-1],f,p;for(d.cacheItem.delete(d.arg),p=c-2;p>=0&&(d=u[p],f=d.cacheItem.get(d.arg),!f||!f.size);p--)d.cacheItem.delete(d.arg)}function s(u,c){return u===c||u!==u&&c!==c}},{"map-or-similar":1}]},{},[3])(3)})}});function At(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(l,s){var u=s.match(/\n([\t ]+|(?!\s).)/g);return u?l.concat(u.map(function(c){var d,f;return(f=(d=c.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&f!==void 0?f:0})):l},[]);if(o.length){var i=new RegExp(`
|
|
3
|
+
[ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(l){return l.replace(i,`
|
|
4
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var a=n[0];return t.forEach(function(l,s){var u=a.match(/(?:^|\n)( *)$/),c=u?u[1]:"",d=l;typeof l=="string"&&l.includes(`
|
|
5
|
+
`)&&(d=String(l).split(`
|
|
6
|
+
`).map(function(f,p){return p===0?f:""+c+f}).join(`
|
|
7
|
+
`)),a+=d+n[s+1]}),a}var Ua="storybook/highlight",fC=`${Ua}/add`,pC=`${Ua}/remove`,hC=`${Ua}/reset`,gC=`${Ua}/scroll-into-view`,wp=2147483647,Or=28,mC="storybook/actions",yC=`${mC}/action-event`,bC={depth:10,clearOnStoryChange:!0,limit:50};const{ImplicitActionsDuringRendering:EC}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:Cp}=__STORYBOOK_MODULE_GLOBAL__,{addons:vC}=__STORYBOOK_MODULE_PREVIEW_API__;var jy=(e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:jy(r,t)},SC=e=>!!(typeof e=="object"&&e&&jy(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),xC=e=>{if(SC(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",P(E({},r),{value:Object.create(n.constructor.prototype)})),t}return e};function xd(e,t={}){let r=E(E({},bC),t),n=function(...o){var d,f;if(t.implicit){let p=(d="__STORYBOOK_PREVIEW__"in Cp?Cp.__STORYBOOK_PREVIEW__:void 0)==null?void 0:d.storyRenders.find(m=>m.phase==="playing"||m.phase==="rendering");if(p){let m=!((f=globalThis==null?void 0:globalThis.FEATURES)!=null&&f.disallowImplicitActionsInRenderV8),y=new EC({phase:p.phase,name:e,deprecated:m});if(m)console.warn(y);else throw y}}let i=vC.getChannel(),a=Date.now().toString(36)+Math.random().toString(36).substring(2),l=5,s=o.map(xC),u=o.length>1?s:s[0],c={id:a,count:0,data:{name:e,args:u},options:P(E({},r),{maxDepth:l+(r.depth||3)})};i.emit(yC,c)};return n.isAction=!0,n.implicit=t.implicit,n}var dr={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"},$C={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]},Hy=Object.entries($C);function za(e){return String(e)}za.open="";za.close="";Hy.reduce((e,[t])=>(e[t]=za,e),{isColorSupported:!1});function wC(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 CC(e=!1){let t=wC(e),r=(a,l,s,u)=>{let c="",d=0;do c+=a.substring(d,u)+s,d=u+l.length,u=a.indexOf(l,d);while(~u);return c+a.substring(d)},n=(a,l,s=a)=>{let u=c=>{let d=String(c),f=d.indexOf(l,a.length);return~f?a+r(d,l,s,f)+l:a+d+l};return u.open=a,u.close=l,u},o={isColorSupported:t},i=a=>`\x1B[${a}m`;for(let[a,l]of Hy)o[a]=t?n(i(l[0]),i(l[1]),l[2]):za;return o}var yr=CC();function Uy(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 o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(e)}function _C(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&n.push(o);return n}function ri(e,t,r,n,o,i,a=": "){let l="",s=0,u=e.next();if(!u.done){l+=t.spacingOuter;let c=r+t.indent;for(;!u.done;){if(l+=c,s++===t.maxWidth){l+="…";break}let d=i(u.value[0],t,c,n,o),f=i(u.value[1],t,c,n,o);l+=d+a+f,u=e.next(),u.done?t.min||(l+=","):l+=`,${t.spacingInner}`}l+=t.spacingOuter+r}return l}function $d(e,t,r,n,o,i){let a="",l=0,s=e.next();if(!s.done){a+=t.spacingOuter;let u=r+t.indent;for(;!s.done;){if(a+=u,l++===t.maxWidth){a+="…";break}a+=i(s.value,t,u,n,o),s=e.next(),s.done?t.min||(a+=","):a+=`,${t.spacingInner}`}a+=t.spacingOuter+r}return a}function ma(e,t,r,n,o,i){let a="";e=e instanceof ArrayBuffer?new DataView(e):e;let l=u=>u instanceof DataView,s=l(e)?e.byteLength:e.length;if(s>0){a+=t.spacingOuter;let u=r+t.indent;for(let c=0;c<s;c++){if(a+=u,c===t.maxWidth){a+="…";break}(l(e)||c in e)&&(a+=i(l(e)?e.getInt8(c):e[c],t,u,n,o)),c<s-1?a+=`,${t.spacingInner}`:t.min||(a+=",")}a+=t.spacingOuter+r}return a}function wd(e,t,r,n,o,i){let a="",l=_C(e,t.compareKeys);if(l.length>0){a+=t.spacingOuter;let s=r+t.indent;for(let u=0;u<l.length;u++){let c=l[u],d=i(c,t,s,n,o),f=i(e[c],t,s,n,o);a+=`${s+d}: ${f}`,u<l.length-1?a+=`,${t.spacingInner}`:t.min||(a+=",")}a+=t.spacingOuter+r}return a}var TC=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Gl=" ",AC=(e,t,r,n,o,i)=>{let a=e.toString();if(a==="ArrayContaining"||a==="ArrayNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+Gl}[${ma(e.sample,t,r,n,o,i)}]`;if(a==="ObjectContaining"||a==="ObjectNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+Gl}{${wd(e.sample,t,r,n,o,i)}}`;if(a==="StringMatching"||a==="StringNotMatching"||a==="StringContaining"||a==="StringNotContaining")return a+Gl+i(e.sample,t,r,n,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},OC=e=>e&&e.$$typeof===TC,RC={serialize:AC,test:OC},DC=" ",zy=new Set(["DOMStringMap","NamedNodeMap"]),PC=/^(?:HTML\w*Collection|NodeList)$/;function IC(e){return zy.has(e)||PC.test(e)}var FC=e=>e&&e.constructor&&!!e.constructor.name&&IC(e.constructor.name);function LC(e){return e.constructor.name==="NamedNodeMap"}var kC=(e,t,r,n,o,i)=>{let a=e.constructor.name;return++n>t.maxDepth?`[${a}]`:(t.min?"":a+DC)+(zy.has(a)?`{${wd(LC(e)?[...e].reduce((l,s)=>(l[s.name]=s.value,l),{}):E({},e),t,r,n,o,i)}}`:`[${ma([...e],t,r,n,o,i)}]`)},NC={serialize:kC,test:FC};function Ky(e){return e.replaceAll("<","<").replaceAll(">",">")}function Cd(e,t,r,n,o,i,a){let l=n+r.indent,s=r.colors;return e.map(u=>{let c=t[u],d=a(c,r,l,o,i);return typeof c!="string"&&(d.includes(`
|
|
8
|
+
`)&&(d=r.spacingOuter+l+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 _d(e,t,r,n,o,i){return e.map(a=>t.spacingOuter+r+(typeof a=="string"?Gy(a,t):i(a,t,r,n,o))).join("")}function Gy(e,t){let r=t.colors.content;return r.open+Ky(e)+r.close}function MC(e,t){let r=t.colors.comment;return`${r.open}<!--${Ky(e)}-->${r.close}`}function Td(e,t,r,n,o){let i=n.colors.tag;return`${i.open}<${e}${t&&i.close+t+n.spacingOuter+o+i.open}${r?`>${i.close}${r}${n.spacingOuter}${o}${i.open}</${e}`:`${t&&!n.min?"":" "}/`}>${i.close}`}function Ad(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}var BC=1,Wy=3,Vy=8,qy=11,jC=/^(?:(?:HTML|SVG)\w*)?Element$/;function HC(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch(t){return!1}}function UC(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||HC(e);return r===BC&&(jC.test(t)||o)||r===Wy&&t==="Text"||r===Vy&&t==="Comment"||r===qy&&t==="DocumentFragment"}var zC=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&UC(e)};function KC(e){return e.nodeType===Wy}function GC(e){return e.nodeType===Vy}function Wl(e){return e.nodeType===qy}var WC=(e,t,r,n,o,i)=>{if(KC(e))return Gy(e.data,t);if(GC(e))return MC(e.data,t);let a=Wl(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?Ad(a,t):Td(a,Cd(Wl(e)?[]:Array.from(e.attributes,l=>l.name).sort(),Wl(e)?{}:[...e.attributes].reduce((l,s)=>(l[s.name]=s.value,l),{}),t,r+t.indent,n,o,i),_d(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,i),t,r)},VC={serialize:WC,test:zC},qC="@@__IMMUTABLE_ITERABLE__@@",YC="@@__IMMUTABLE_LIST__@@",XC="@@__IMMUTABLE_KEYED__@@",JC="@@__IMMUTABLE_MAP__@@",_p="@@__IMMUTABLE_ORDERED__@@",ZC="@@__IMMUTABLE_RECORD__@@",QC="@@__IMMUTABLE_SEQ__@@",e_="@@__IMMUTABLE_SET__@@",t_="@@__IMMUTABLE_STACK__@@",kn=e=>`Immutable.${e}`,Ka=e=>`[${e}]`,Bo=" ",Tp="…";function r_(e,t,r,n,o,i,a){return++n>t.maxDepth?Ka(kn(a)):`${kn(a)+Bo}{${ri(e.entries(),t,r,n,o,i)}}`}function n_(e){let t=0;return{next(){if(t<e._keys.length){let r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}function o_(e,t,r,n,o,i){let a=kn(e._name||"Record");return++n>t.maxDepth?Ka(a):`${a+Bo}{${ri(n_(e),t,r,n,o,i)}}`}function i_(e,t,r,n,o,i){let a=kn("Seq");return++n>t.maxDepth?Ka(a):e[XC]?`${a+Bo}{${e._iter||e._object?ri(e.entries(),t,r,n,o,i):Tp}}`:`${a+Bo}[${e._iter||e._array||e._collection||e._iterable?$d(e.values(),t,r,n,o,i):Tp}]`}function Vl(e,t,r,n,o,i,a){return++n>t.maxDepth?Ka(kn(a)):`${kn(a)+Bo}[${$d(e.values(),t,r,n,o,i)}]`}var a_=(e,t,r,n,o,i)=>e[JC]?r_(e,t,r,n,o,i,e[_p]?"OrderedMap":"Map"):e[YC]?Vl(e,t,r,n,o,i,"List"):e[e_]?Vl(e,t,r,n,o,i,e[_p]?"OrderedSet":"Set"):e[t_]?Vl(e,t,r,n,o,i,"Stack"):e[QC]?i_(e,t,r,n,o,i):o_(e,t,r,n,o,i),l_=e=>e&&(e[qC]===!0||e[ZC]===!0),s_={serialize:a_,test:l_};function Yy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ap={exports:{}},ve={},Op;function u_(){if(Op)return ve;Op=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=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 m(y){if(typeof y=="object"&&y!==null){var S=y.$$typeof;switch(S){case e:switch(y=y.type,y){case r:case o:case n:case s:case u:case f:return y;default:switch(y=y&&y.$$typeof,y){case a:case l:case d:case c:return y;case i:return y;default:return S}}case t:return S}}}return ve.ContextConsumer=i,ve.ContextProvider=a,ve.Element=e,ve.ForwardRef=l,ve.Fragment=r,ve.Lazy=d,ve.Memo=c,ve.Portal=t,ve.Profiler=o,ve.StrictMode=n,ve.Suspense=s,ve.SuspenseList=u,ve.isContextConsumer=function(y){return m(y)===i},ve.isContextProvider=function(y){return m(y)===a},ve.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},ve.isForwardRef=function(y){return m(y)===l},ve.isFragment=function(y){return m(y)===r},ve.isLazy=function(y){return m(y)===d},ve.isMemo=function(y){return m(y)===c},ve.isPortal=function(y){return m(y)===t},ve.isProfiler=function(y){return m(y)===o},ve.isStrictMode=function(y){return m(y)===n},ve.isSuspense=function(y){return m(y)===s},ve.isSuspenseList=function(y){return m(y)===u},ve.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===o||y===n||y===s||y===u||typeof y=="object"&&y!==null&&(y.$$typeof===d||y.$$typeof===c||y.$$typeof===a||y.$$typeof===i||y.$$typeof===l||y.$$typeof===p||y.getModuleId!==void 0)},ve.typeOf=m,ve}var Rp;function c_(){return Rp||(Rp=1,Ap.exports=u_()),Ap.exports}var Xy=c_(),d_=Yy(Xy),f_=Uy({__proto__:null,default:d_},[Xy]),Dp={exports:{}},Ee={},Pp;function p_(){if(Pp)return Ee;Pp=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=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"),m;m=Symbol.for("react.module.reference");function y(S){if(typeof S=="object"&&S!==null){var b=S.$$typeof;switch(b){case e:switch(S=S.type,S){case r:case o:case n:case u:case c:return S;default:switch(S=S&&S.$$typeof,S){case l:case a:case s:case f:case d:case i:return S;default:return b}}case t:return b}}}return Ee.ContextConsumer=a,Ee.ContextProvider=i,Ee.Element=e,Ee.ForwardRef=s,Ee.Fragment=r,Ee.Lazy=f,Ee.Memo=d,Ee.Portal=t,Ee.Profiler=o,Ee.StrictMode=n,Ee.Suspense=u,Ee.SuspenseList=c,Ee.isAsyncMode=function(){return!1},Ee.isConcurrentMode=function(){return!1},Ee.isContextConsumer=function(S){return y(S)===a},Ee.isContextProvider=function(S){return y(S)===i},Ee.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},Ee.isForwardRef=function(S){return y(S)===s},Ee.isFragment=function(S){return y(S)===r},Ee.isLazy=function(S){return y(S)===f},Ee.isMemo=function(S){return y(S)===d},Ee.isPortal=function(S){return y(S)===t},Ee.isProfiler=function(S){return y(S)===o},Ee.isStrictMode=function(S){return y(S)===n},Ee.isSuspense=function(S){return y(S)===u},Ee.isSuspenseList=function(S){return y(S)===c},Ee.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===o||S===n||S===u||S===c||S===p||typeof S=="object"&&S!==null&&(S.$$typeof===f||S.$$typeof===d||S.$$typeof===i||S.$$typeof===a||S.$$typeof===s||S.$$typeof===m||S.getModuleId!==void 0)},Ee.typeOf=y,Ee}var Ip;function h_(){return Ip||(Ip=1,Dp.exports=p_()),Dp.exports}var Jy=h_(),g_=Yy(Jy),m_=Uy({__proto__:null,default:g_},[Jy]),y_=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],Yr=Object.fromEntries(y_.map(e=>[e,t=>m_[e](t)||f_[e](t)]));function Zy(e,t=[]){if(Array.isArray(e))for(let r of e)Zy(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function Fp(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(Yr.isFragment(e))return"React.Fragment";if(Yr.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(Yr.isContextProvider(e))return"Context.Provider";if(Yr.isContextConsumer(e))return"Context.Consumer";if(Yr.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(Yr.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function b_(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var E_=(e,t,r,n,o,i)=>++n>t.maxDepth?Ad(Fp(e),t):Td(Fp(e),Cd(b_(e),e.props,t,r+t.indent,n,o,i),_d(Zy(e.props.children),t,r+t.indent,n,o,i),t,r),v_=e=>e!=null&&Yr.isElement(e),S_={serialize:E_,test:v_},x_=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function $_(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var w_=(e,t,r,n,o,i)=>++n>t.maxDepth?Ad(e.type,t):Td(e.type,e.props?Cd($_(e),e.props,t,r+t.indent,n,o,i):"",e.children?_d(e.children,t,r+t.indent,n,o,i):"",t,r),C_=e=>e&&e.$$typeof===x_,__={serialize:w_,test:C_},Qy=Object.prototype.toString,T_=Date.prototype.toISOString,A_=Error.prototype.toString,Lp=RegExp.prototype.toString;function Ji(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function O_(e){return typeof window<"u"&&e===window}var R_=/^Symbol\((.*)\)(.*)$/,D_=/\n/g,eb=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function P_(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 I_(e){return Object.is(e,-0)?"-0":String(e)}function F_(e){return`${e}n`}function kp(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function Np(e){return String(e).replace(R_,"Symbol($1)")}function Mp(e){return`[${A_.call(e)}]`}function tb(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let o=typeof e;if(o==="number")return I_(e);if(o==="bigint")return F_(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return kp(e,t);if(o==="symbol")return Np(e);let i=Qy.call(e);return i==="[object WeakMap]"?"WeakMap {}":i==="[object WeakSet]"?"WeakSet {}":i==="[object Function]"||i==="[object GeneratorFunction]"?kp(e,t):i==="[object Symbol]"?Np(e):i==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":T_.call(e):i==="[object Error]"?Mp(e):i==="[object RegExp]"?r?Lp.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):Lp.call(e):e instanceof Error?Mp(e):null}function rb(e,t,r,n,o,i){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);let a=++n>t.maxDepth,l=t.min;if(t.callToJSON&&!a&&e.toJSON&&typeof e.toJSON=="function"&&!i)return Rr(e.toJSON(),t,r,n,o,!0);let s=Qy.call(e);return s==="[object Arguments]"?a?"[Arguments]":`${l?"":"Arguments "}[${ma(e,t,r,n,o,Rr)}]`:P_(s)?a?`[${e.constructor.name}]`:`${l||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${ma(e,t,r,n,o,Rr)}]`:s==="[object Map]"?a?"[Map]":`Map {${ri(e.entries(),t,r,n,o,Rr," => ")}}`:s==="[object Set]"?a?"[Set]":`Set {${$d(e.values(),t,r,n,o,Rr)}}`:a||O_(e)?`[${Ji(e)}]`:`${l||!t.printBasicPrototype&&Ji(e)==="Object"?"":`${Ji(e)} `}{${wd(e,t,r,n,o,Rr)}}`}var L_={test:e=>e&&e instanceof Error,serialize(e,t,r,n,o,i){if(o.includes(e))return"[Circular]";o=[...o,e];let a=++n>t.maxDepth,f=e,{message:l,cause:s}=f,u=G(f,["message","cause"]),c=E(E(E({message:l},typeof s<"u"?{cause:s}:{}),e instanceof AggregateError?{errors:e.errors}:{}),u),d=e.name!=="Error"?e.name:Ji(e);return a?`[${d}]`:`${d} {${ri(Object.entries(c).values(),t,r,n,o,i)}}`}};function k_(e){return e.serialize!=null}function nb(e,t,r,n,o,i){let a;try{a=k_(e)?e.serialize(t,r,n,o,i,Rr):e.print(t,l=>Rr(l,r,n,o,i),l=>{let s=n+r.indent;return s+l.replaceAll(D_,`
|
|
9
|
+
${s}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(l){throw new eb(l.message,l.stack)}if(typeof a!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof a}".`);return a}function ob(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new eb(n.message,n.stack)}return null}function Rr(e,t,r,n,o,i){let a=ob(t.plugins,e);if(a!==null)return nb(a,e,t,r,n,o);let l=tb(e,t.printFunctionName,t.escapeRegex,t.escapeString);return l!==null?l:rb(e,t,r,n,o,i)}var Od={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},ib=Object.keys(Od),Nt={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:Od};function N_(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Nt,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 M_(){return ib.reduce((e,t)=>{let r=Od[t],n=r&&yr[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 B_(){return ib.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function ab(e){var t;return(t=e==null?void 0:e.printFunctionName)!=null?t:Nt.printFunctionName}function lb(e){var t;return(t=e==null?void 0:e.escapeRegex)!=null?t:Nt.escapeRegex}function sb(e){var t;return(t=e==null?void 0:e.escapeString)!=null?t:Nt.escapeString}function Bp(e){var t,r,n,o,i,a,l;return{callToJSON:(t=e==null?void 0:e.callToJSON)!=null?t:Nt.callToJSON,colors:e!=null&&e.highlight?M_():B_(),compareKeys:typeof(e==null?void 0:e.compareKeys)=="function"||(e==null?void 0:e.compareKeys)===null?e.compareKeys:Nt.compareKeys,escapeRegex:lb(e),escapeString:sb(e),indent:e!=null&&e.min?"":j_((r=e==null?void 0:e.indent)!=null?r:Nt.indent),maxDepth:(n=e==null?void 0:e.maxDepth)!=null?n:Nt.maxDepth,maxWidth:(o=e==null?void 0:e.maxWidth)!=null?o:Nt.maxWidth,min:(i=e==null?void 0:e.min)!=null?i:Nt.min,plugins:(a=e==null?void 0:e.plugins)!=null?a:Nt.plugins,printBasicPrototype:(l=e==null?void 0:e.printBasicPrototype)!=null?l:!0,printFunctionName:ab(e),spacingInner:e!=null&&e.min?" ":`
|
|
10
|
+
`,spacingOuter:e!=null&&e.min?"":`
|
|
11
|
+
`}}function j_(e){return Array.from({length:e+1}).join(" ")}function er(e,t){if(t&&(N_(t),t.plugins)){let n=ob(t.plugins,e);if(n!==null)return nb(n,e,Bp(t),"",0,[])}let r=tb(e,ab(t),lb(t),sb(t));return r!==null?r:rb(e,Bp(t),"",0,[])}var Rd={AsymmetricMatcher:RC,DOMCollection:NC,DOMElement:VC,Immutable:s_,ReactElement:S_,ReactTestComponent:__,Error:L_},jp={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"]},H_={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Nn="…";function U_(e,t){let r=jp[H_[t]]||jp[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function z_({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:a=1/0,seen:l=[],truncate:s=1/0,stylize:u=String}={},c){let d={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(a),truncate:Number(s),seen:l,inspect:c,stylize:u};return d.colors&&(d.stylize=U_),d}function K_(e){return e>="\uD800"&&e<="\uDBFF"}function Nr(e,t,r=Nn){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let i=t-n;return i>0&&K_(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}function Ut(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let i=t.truncate,a="",l="",s="";for(let u=0;u<o;u+=1){let c=u+1===e.length,d=u+2===e.length;s=`${Nn}(${e.length-u})`;let f=e[u];t.truncate=i-a.length-(c?0:n.length);let p=l||r(f,t)+(c?"":n),m=a.length+p.length,y=m+s.length;if(c&&m>i&&a.length+s.length<=i||!c&&!d&&y>i||(l=c?"":r(e[u+1],t)+(d?"":n),!c&&d&&y>i&&m+l.length>i))break;if(a+=p,!c&&!d&&m+l.length>=i){s=`${Nn}(${e.length-u-1})`;break}s=""}return`${a}${s}`}function G_(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function jo([e,t],r){return r.truncate-=2,typeof e=="string"?e=G_(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function W_(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=Ut(e,t);t.truncate-=n.length;let o="";return r.length&&(o=Ut(r.map(i=>[i,e[i]]),t,jo)),`[ ${n}${o?`, ${o}`:""} ]`}var V_=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function fr(e,t){let r=V_(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let a=0;a<e.length;a++){let l=`${t.stylize(Nr(e[a],t.truncate),"number")}${a===e.length-1?"":", "}`;if(t.truncate-=l.length,e[a]!==e.length&&t.truncate<=3){o+=`${Nn}(${e.length-e[a]+1})`;break}o+=l}let i="";return n.length&&(i=Ut(n.map(a=>[a,e[a]]),t,jo)),`${r}[ ${o}${i?`, ${i}`:""} ]`}function q_(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${Nr(n[1],t.truncate-o.length-1)}`,"date")}function Hp(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Nr(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function Y_([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function X_(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}function J_(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Ut(X_(e),t,Y_)} }`)}var Z_=Number.isNaN||(e=>e!==e);function Up(e,t){return Z_(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(Nr(String(e),t.truncate),"number")}function zp(e,t){let r=Nr(e.toString(),t.truncate-1);return r!==Nn&&(r+="n"),t.stylize(r,"bigint")}function Q_(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${Nr(o,n)}/${r}`,"regexp")}function eT(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function tT(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Ut(eT(e),t)} }`)}var Kp=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),rT={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},nT=16;function oT(e){return rT[e]||`\\u${`0000${e.charCodeAt(0).toString(nT)}`.slice(-4)}`}function Gp(e,t){return Kp.test(e)&&(e=e.replace(Kp,oT)),t.stylize(`'${Nr(e,t.truncate-2)}'`,"string")}function Wp(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var iT=()=>"Promise{…}",aT=iT;function Zi(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 o=Ut(r.map(l=>[l,e[l]]),t,jo),i=Ut(n.map(l=>[l,e[l]]),t,jo);t.seen.pop();let a="";return o&&i&&(a=", "),`{ ${o}${a}${i} }`}var ql=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function lT(e,t){let r="";return ql&&ql in e&&(r=e[ql]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${Zi(e,t)}`}function sT(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Ut(e,t)} ]`)}var uT=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function cT(e,t){let r=Object.getOwnPropertyNames(e).filter(a=>uT.indexOf(a)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=Nr(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let i=Ut(r.map(a=>[a,e[a]]),t,jo);return`${n}${o}${i?` { ${i} }`:""}`}function dT([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function tc(e,t){return Ut(e,t,fT,`
|
|
12
|
+
`)}function fT(e,t){switch(e.nodeType){case 1:return ub(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function ub(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),i=t.stylize(">","special"),a=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let l="";r.length>0&&(l+=" ",l+=Ut(r.map(c=>[c,e.getAttribute(c)]),t,dT," ")),t.truncate-=l.length;let s=t.truncate,u=tc(e.children,t);return u&&u.length>s&&(u=`${Nn}(${e.children.length})`),`${o}${l}${i}${u}${a}`}var pT=typeof Symbol=="function"&&typeof Symbol.for=="function",Yl=pT?Symbol.for("chai/inspect"):"@@chai/inspect",Xl=Symbol.for("nodejs.util.inspect.custom"),Vp=new WeakMap,qp={},Yp={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:Up,Number:Up,bigint:zp,BigInt:zp,string:Gp,String:Gp,function:Hp,Function:Hp,symbol:Wp,Symbol:Wp,Array:W_,Date:q_,Map:J_,Set:tT,RegExp:Q_,Promise:aT,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:sT,Int8Array:fr,Uint8Array:fr,Uint8ClampedArray:fr,Int16Array:fr,Uint16Array:fr,Int32Array:fr,Uint32Array:fr,Float32Array:fr,Float64Array:fr,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:cT,HTMLCollection:tc,NodeList:tc},hT=(e,t,r,n)=>Yl in e&&typeof e[Yl]=="function"?e[Yl](t):Xl in e&&typeof e[Xl]=="function"?e[Xl](t.depth,t,n):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Vp.has(e.constructor)?Vp.get(e.constructor)(e,t):qp[r]?qp[r](e,t):"",gT=Object.prototype.toString;function Qi(e,t={}){let r=z_(t,Qi),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=gT.call(e).slice(8,-1)),o in Yp)return Yp[o](e,r);if(n&&e){let a=hT(e,r,o,Qi);if(a)return typeof a=="string"?a:Qi(a,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?Zi(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?ub(e,r):"constructor"in e?e.constructor!==Object?lT(e,r):Zi(e,r):e===Object(e)?Zi(e,r):r.stylize(String(e),o)}var{AsymmetricMatcher:mT,DOMCollection:yT,DOMElement:bT,Immutable:ET,ReactElement:vT,ReactTestComponent:ST}=Rd,Xp=[ST,vT,bT,yT,ET,mT];function Ho(e,t=10,o={}){var i=o,{maxLength:r}=i,n=G(i,["maxLength"]);let a=r!=null?r:1e4,l;try{l=er(e,E({maxDepth:t,escapeString:!1,plugins:Xp},n))}catch(s){l=er(e,E({callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Xp},n))}return l.length>=a&&t>1?Ho(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),E({maxLength:r},n)):l}var xT=/%[sdjifoOc%]/g;function $T(...e){if(typeof e[0]!="string"){let i=[];for(let a=0;a<e.length;a++)i.push(go(e[a],{depth:0,colors:!1}));return i.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(xT,i=>{if(i==="%%")return"%";if(r>=t)return i;switch(i){case"%s":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:typeof a=="number"&&a===0&&1/a<0?"-0":typeof a=="object"&&a!==null?typeof a.toString=="function"&&a.toString!==Object.prototype.toString?a.toString():go(a,{depth:0,colors:!1}):String(a)}case"%d":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:Number(a).toString()}case"%i":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:Number.parseInt(String(a)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return go(e[r++],{showHidden:!0,showProxy:!0});case"%O":return go(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(a){let l=a.message;if(l.includes("circular structure")||l.includes("cyclic structures")||l.includes("cyclic object"))return"[Circular]";throw a}default:return i}});for(let i=e[r];r<t;i=e[++r])i===null||typeof i!="object"?o+=` ${i}`:o+=` ${go(i)}`;return o}function go(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Qi(e,t)}function wT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function CT(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function rc(e){return Object.prototype.toString.apply(e).slice(8,-1)}function _T(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function cb(e){let t=new Set;return CT(e)?[]:(_T(e,t),Array.from(t))}var db={forceWritable:!1};function Jp(e,t=db){return nc(e,new WeakMap,t)}function nc(e,t,r=db){let n,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:n=e.length}),t.set(e,o);n--;)o[n]=nc(e[n],t,r);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let i=cb(e);for(let a of i){let l=Object.getOwnPropertyDescriptor(e,a);if(!l)continue;let s=nc(e[a],t,r);r.forceWritable?Object.defineProperty(o,a,{enumerable:l.enumerable,configurable:!0,writable:!0,value:s}):"get"in l?Object.defineProperty(o,a,P(E({},l),{get(){return s}})):Object.defineProperty(o,a,P(E({},l),{value:s}))}return o}return e}var Qe=-1,We=1,Ae=0,Ce=class{constructor(e,t){Vt(this,0);Vt(this,1);this[0]=e,this[1]=t}};function TT(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),o=n,i=0;for(;r<o;)e.substring(i,o)===t.substring(i,o)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o}function fb(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,n=Math.min(e.length,t.length),o=n,i=0;for(;r<o;)e.substring(e.length-o,e.length-i)===t.substring(t.length-o,t.length-i)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o}function Zp(e,t){let r=e.length,n=t.length;if(r===0||n===0)return 0;r>n?e=e.substring(r-n):r<n&&(t=t.substring(0,r));let o=Math.min(r,n);if(e===t)return o;let i=0,a=1;for(;;){let l=e.substring(o-a),s=t.indexOf(l);if(s===-1)return i;a+=s,(s===0||e.substring(o-a)===t.substring(0,a))&&(i=a,a++)}}function AT(e){let t=!1,r=[],n=0,o=null,i=0,a=0,l=0,s=0,u=0;for(;i<e.length;)e[i][0]===Ae?(r[n++]=i,a=s,l=u,s=0,u=0,o=e[i][1]):(e[i][0]===We?s+=e[i][1].length:u+=e[i][1].length,o&&o.length<=Math.max(a,l)&&o.length<=Math.max(s,u)&&(e.splice(r[n-1],0,new Ce(Qe,o)),e[r[n-1]+1][0]=We,n--,n--,i=n>0?r[n-1]:-1,a=0,l=0,s=0,u=0,o=null,t=!0)),i++;for(t&&pb(e),DT(e),i=1;i<e.length;){if(e[i-1][0]===Qe&&e[i][0]===We){let c=e[i-1][1],d=e[i][1],f=Zp(c,d),p=Zp(d,c);f>=p?(f>=c.length/2||f>=d.length/2)&&(e.splice(i,0,new Ce(Ae,d.substring(0,f))),e[i-1][1]=c.substring(0,c.length-f),e[i+1][1]=d.substring(f),i++):(p>=c.length/2||p>=d.length/2)&&(e.splice(i,0,new Ce(Ae,c.substring(0,p))),e[i-1][0]=We,e[i-1][1]=d.substring(0,d.length-p),e[i+1][0]=Qe,e[i+1][1]=c.substring(p),i++),i++}i++}}var Qp=/[^a-z0-9]/i,eh=/\s/,th=/[\r\n]/,OT=/\n\r?\n$/,RT=/^\r?\n\r?\n/;function DT(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===Ae&&e[t+1][0]===Ae){let r=e[t-1][1],n=e[t][1],o=e[t+1][1],i=fb(r,n);if(i){let c=n.substring(n.length-i);r=r.substring(0,r.length-i),n=c+n.substring(0,n.length-i),o=c+o}let a=r,l=n,s=o,u=wi(r,n)+wi(n,o);for(;n.charAt(0)===o.charAt(0);){r+=n.charAt(0),n=n.substring(1)+o.charAt(0),o=o.substring(1);let c=wi(r,n)+wi(n,o);c>=u&&(u=c,a=r,l=n,s=o)}e[t-1][1]!==a&&(a?e[t-1][1]=a:(e.splice(t-1,1),t--),e[t][1]=l,s?e[t+1][1]=s:(e.splice(t+1,1),t--))}t++}}function pb(e){e.push(new Ce(Ae,""));let t=0,r=0,n=0,o="",i="",a;for(;t<e.length;)switch(e[t][0]){case We:n++,i+=e[t][1],t++;break;case Qe:r++,o+=e[t][1],t++;break;case Ae:r+n>1?(r!==0&&n!==0&&(a=TT(i,o),a!==0&&(t-r-n>0&&e[t-r-n-1][0]===Ae?e[t-r-n-1][1]+=i.substring(0,a):(e.splice(0,0,new Ce(Ae,i.substring(0,a))),t++),i=i.substring(a),o=o.substring(a)),a=fb(i,o),a!==0&&(e[t][1]=i.substring(i.length-a)+e[t][1],i=i.substring(0,i.length-a),o=o.substring(0,o.length-a))),t-=r+n,e.splice(t,r+n),o.length&&(e.splice(t,0,new Ce(Qe,o)),t++),i.length&&(e.splice(t,0,new Ce(We,i)),t++),t++):t!==0&&e[t-1][0]===Ae?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,o="",i="";break}e[e.length-1][1]===""&&e.pop();let l=!1;for(t=1;t<e.length-1;)e[t-1][0]===Ae&&e[t+1][0]===Ae&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),l=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),l=!0)),t++;l&&pb(e)}function wi(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),o=r.match(Qp),i=n.match(Qp),a=o&&r.match(eh),l=i&&n.match(eh),s=a&&r.match(th),u=l&&n.match(th),c=s&&e.match(OT),d=u&&t.match(RT);return c||d?5:s||u?4:o&&!a&&l?3:a||l?2:o||i?1:0}var hb="Compared values have no visual difference.",PT="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Ci={},rh;function IT(){if(rh)return Ci;rh=1,Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.default=f;let e="diff-sequences",t=0,r=(p,m,y,S,b)=>{let v=0;for(;p<m&&y<S&&b(p,y);)p+=1,y+=1,v+=1;return v},n=(p,m,y,S,b)=>{let v=0;for(;p<=m&&y<=S&&b(m,S);)m-=1,S-=1,v+=1;return v},o=(p,m,y,S,b,v,x)=>{let C=0,A=-p,$=v[C],w=$;v[C]+=r($+1,m,S+$-A+1,y,b);let _=p<x?p:x;for(C+=1,A+=2;C<=_;C+=1,A+=2){if(C!==p&&w<v[C])$=v[C];else if($=w+1,m<=$)return C-1;w=v[C],v[C]=$+r($+1,m,S+$-A+1,y,b)}return x},i=(p,m,y,S,b,v,x)=>{let C=0,A=p,$=v[C],w=$;v[C]-=n(m,$-1,y,S+$-A-1,b);let _=p<x?p:x;for(C+=1,A-=2;C<=_;C+=1,A-=2){if(C!==p&&v[C]<w)$=v[C];else if($=w-1,$<m)return C-1;w=v[C],v[C]=$-n(m,$-1,y,S+$-A-1,b)}return x},a=(p,m,y,S,b,v,x,C,A,$,w)=>{let _=S-m,O=y-m,T=b-S-O,I=-T-(p-1),D=-T+(p-1),M=t,k=p<C?p:C;for(let R=0,j=-p;R<=k;R+=1,j+=2){let L=R===0||R!==p&&M<x[R],z=L?x[R]:M,U=L?z:z+1,B=_+U-j,F=r(U+1,y,B+1,b,v),H=U+F;if(M=x[R],x[R]=H,I<=j&&j<=D){let W=(p-1-(j+T))/2;if(W<=$&&A[W]-1<=H){let V=_+z-(L?j+1:j-1),K=n(m,z,S,V,v),q=z-K,X=V-K,te=q+1,J=X+1;w.nChangePreceding=p-1,p-1===te+J-m-S?(w.aEndPreceding=m,w.bEndPreceding=S):(w.aEndPreceding=te,w.bEndPreceding=J),w.nCommonPreceding=K,K!==0&&(w.aCommonPreceding=te,w.bCommonPreceding=J),w.nCommonFollowing=F,F!==0&&(w.aCommonFollowing=U+1,w.bCommonFollowing=B+1);let Oe=H+1,re=B+F+1;return w.nChangeFollowing=p-1,p-1===y+b-Oe-re?(w.aStartFollowing=y,w.bStartFollowing=b):(w.aStartFollowing=Oe,w.bStartFollowing=re),!0}}}return!1},l=(p,m,y,S,b,v,x,C,A,$,w)=>{let _=b-y,O=y-m,T=b-S-O,I=T-p,D=T+p,M=t,k=p<$?p:$;for(let R=0,j=p;R<=k;R+=1,j-=2){let L=R===0||R!==p&&A[R]<M,z=L?A[R]:M,U=L?z:z-1,B=_+U-j,F=n(m,U-1,S,B-1,v),H=U-F;if(M=A[R],A[R]=H,I<=j&&j<=D){let W=(p+(j-T))/2;if(W<=C&&H-1<=x[W]){let V=B-F;if(w.nChangePreceding=p,p===H+V-m-S?(w.aEndPreceding=m,w.bEndPreceding=S):(w.aEndPreceding=H,w.bEndPreceding=V),w.nCommonPreceding=F,F!==0&&(w.aCommonPreceding=H,w.bCommonPreceding=V),w.nChangeFollowing=p-1,p===1)w.nCommonFollowing=0,w.aStartFollowing=y,w.bStartFollowing=b;else{let K=_+z-(L?j-1:j+1),q=r(z,y,K,b,v);w.nCommonFollowing=q,q!==0&&(w.aCommonFollowing=z,w.bCommonFollowing=K);let X=z+q,te=K+q;p-1===y+b-X-te?(w.aStartFollowing=y,w.bStartFollowing=b):(w.aStartFollowing=X,w.bStartFollowing=te)}return!0}}}return!1},s=(p,m,y,S,b,v,x,C,A)=>{let $=S-m,w=b-y,_=y-m,O=b-S,T=O-_,I=_,D=_;if(x[0]=m-1,C[0]=y,T%2===0){let M=(p||T)/2,k=(_+O)/2;for(let R=1;R<=k;R+=1)if(I=o(R,y,b,$,v,x,I),R<M)D=i(R,m,S,w,v,C,D);else if(l(R,m,y,S,b,v,x,I,C,D,A))return}else{let M=((p||T)+1)/2,k=(_+O+1)/2,R=1;for(I=o(R,y,b,$,v,x,I),R+=1;R<=k;R+=1)if(D=i(R-1,m,S,w,v,C,D),R<M)I=o(R,y,b,$,v,x,I);else if(a(R,m,y,S,b,v,x,I,C,D,A))return}throw new Error(`${e}: no overlap aStart=${m} aEnd=${y} bStart=${S} bEnd=${b}`)},u=(p,m,y,S,b,v,x,C,A,$)=>{if(b-S<y-m){if(v=!v,v&&x.length===1){let{foundSubsequence:W,isCommon:V}=x[0];x[1]={foundSubsequence:(K,q,X)=>{W(K,X,q)},isCommon:(K,q)=>V(q,K)}}let F=m,H=y;m=S,y=b,S=F,b=H}let{foundSubsequence:w,isCommon:_}=x[v?1:0];s(p,m,y,S,b,_,C,A,$);let{nChangePreceding:O,aEndPreceding:T,bEndPreceding:I,nCommonPreceding:D,aCommonPreceding:M,bCommonPreceding:k,nCommonFollowing:R,aCommonFollowing:j,bCommonFollowing:L,nChangeFollowing:z,aStartFollowing:U,bStartFollowing:B}=$;m<T&&S<I&&u(O,m,T,S,I,v,x,C,A,$),D!==0&&w(D,M,k),R!==0&&w(R,j,L),U<y&&B<b&&u(z,U,y,B,b,v,x,C,A,$)},c=(p,m)=>{if(typeof m!="number")throw new TypeError(`${e}: ${p} typeof ${typeof m} is not a number`);if(!Number.isSafeInteger(m))throw new RangeError(`${e}: ${p} value ${m} is not a safe integer`);if(m<0)throw new RangeError(`${e}: ${p} value ${m} is a negative integer`)},d=(p,m)=>{let y=typeof m;if(y!=="function")throw new TypeError(`${e}: ${p} typeof ${y} is not a function`)};function f(p,m,y,S){c("aLength",p),c("bLength",m),d("isCommon",y),d("foundSubsequence",S);let b=r(0,p,0,m,y);if(b!==0&&S(b,0,0),p!==b||m!==b){let v=b,x=b,C=n(v,p-1,x,m-1,y),A=p-C,$=m-C,w=b+C;p!==w&&m!==w&&u(0,v,A,x,$,!1,[{foundSubsequence:S,isCommon:y}],[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}),C!==0&&S(C,A,$)}}return Ci}var FT=IT(),gb=wT(FT);function LT(e,t){return e.replace(/\s+$/,r=>t(r))}function Dd(e,t,r,n,o,i){return e.length!==0?r(`${n} ${LT(e,o)}`):n!==" "?r(n):t&&i.length!==0?r(`${n} ${i}`):""}function mb(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return Dd(e,t,r,n,o,i)}function yb(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return Dd(e,t,r,n,o,i)}function bb(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return Dd(e,t,r,n,o,i)}function nh(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function kT(e,t){let r=e.length,n=t.contextLines,o=n+n,i=r,a=!1,l=0,s=0;for(;s!==r;){let C=s;for(;s!==r&&e[s][0]===Ae;)s+=1;if(C!==s)if(C===0)s>n&&(i-=s-n,a=!0);else if(s===r){let A=s-C;A>n&&(i-=A-n,a=!0)}else{let A=s-C;A>o&&(i-=A-o,l+=1)}for(;s!==r&&e[s][0]!==Ae;)s+=1}let u=l!==0||a;l!==0?i+=l+1:a&&(i+=1);let c=i-1,d=[],f=0;u&&d.push("");let p=0,m=0,y=0,S=0,b=C=>{let A=d.length;d.push(bb(C,A===0||A===c,t)),y+=1,S+=1},v=C=>{let A=d.length;d.push(mb(C,A===0||A===c,t)),y+=1},x=C=>{let A=d.length;d.push(yb(C,A===0||A===c,t)),S+=1};for(s=0;s!==r;){let C=s;for(;s!==r&&e[s][0]===Ae;)s+=1;if(C!==s)if(C===0){s>n&&(C=s-n,p=C,m=C,y=p,S=m);for(let A=C;A!==s;A+=1)b(e[A][1])}else if(s===r){let A=s-C>n?C+n:s;for(let $=C;$!==A;$+=1)b(e[$][1])}else{let A=s-C;if(A>o){let $=C+n;for(let _=C;_!==$;_+=1)b(e[_][1]);d[f]=nh(p,y,m,S,t),f=d.length,d.push("");let w=A-o;p=y+w,m=S+w,y=p,S=m;for(let _=s-n;_!==s;_+=1)b(e[_][1])}else for(let $=C;$!==s;$+=1)b(e[$][1])}for(;s!==r&&e[s][0]===Qe;)v(e[s][1]),s+=1;for(;s!==r&&e[s][0]===We;)x(e[s][1]),s+=1}return u&&(d[f]=nh(p,y,m,S,t)),d.join(`
|
|
13
|
+
`)}function NT(e,t){return e.map((r,n,o)=>{let i=r[1],a=n===0||n===o.length-1;switch(r[0]){case Qe:return mb(i,a,t);case We:return yb(i,a,t);default:return bb(i,a,t)}}).join(`
|
|
14
|
+
`)}var Jl=e=>e,Eb=5,MT=0;function BT(){return{aAnnotation:"Expected",aColor:yr.green,aIndicator:"-",bAnnotation:"Received",bColor:yr.red,bIndicator:"+",changeColor:yr.inverse,changeLineTrailingSpaceColor:Jl,commonColor:yr.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Jl,compareKeys:void 0,contextLines:Eb,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:yr.yellow,printBasicPrototype:!1,truncateThreshold:MT,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Jl}}function jT(e){return e&&typeof e=="function"?e:void 0}function HT(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:Eb}function pn(e={}){return P(E(E({},BT()),e),{compareKeys:jT(e.compareKeys),contextLines:HT(e.contextLines)})}function Tn(e){return e.length===1&&e[0].length===0}function UT(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case Qe:t+=1;break;case We:r+=1;break}}),{a:t,b:r}}function zT({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:i,includeChangeCounts:a,omitAnnotationLines:l},s){if(l)return"";let u="",c="";if(a){let p=String(s.a),m=String(s.b),y=n.length-e.length,S=" ".repeat(Math.max(0,y)),b=" ".repeat(Math.max(0,-y)),v=m.length-p.length,x=" ".repeat(Math.max(0,v)),C=" ".repeat(Math.max(0,-v));u=`${S} ${r} ${x}${p}`,c=`${b} ${i} ${C}${m}`}let d=`${r} ${e}${u}`,f=`${i} ${n}${c}`;return`${t(d)}
|
|
15
|
+
${o(f)}
|
|
16
|
+
|
|
17
|
+
`}function Pd(e,t,r){return zT(r,UT(e))+(r.expand?NT(e,r):kT(e,r))+(t?r.truncateAnnotationColor(`
|
|
18
|
+
${r.truncateAnnotation}`):"")}function Ga(e,t,r){let n=pn(r),[o,i]=vb(Tn(e)?[]:e,Tn(t)?[]:t,n);return Pd(o,i,n)}function KT(e,t,r,n,o){if(Tn(e)&&Tn(r)&&(e=[],r=[]),Tn(t)&&Tn(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return Ga(e,t,o);let[i,a]=vb(r,n,o),l=0,s=0;return i.forEach(u=>{switch(u[0]){case Qe:u[1]=e[l],l+=1;break;case We:u[1]=t[s],s+=1;break;default:u[1]=t[s],l+=1,s+=1}}),Pd(i,a,pn(o))}function vb(e,t,r){var f,p;let n=(f=r==null?void 0:r.truncateThreshold)!=null?f:!1,o=Math.max(Math.floor((p=r==null?void 0:r.truncateThreshold)!=null?p:0),0),i=n?Math.min(e.length,o):e.length,a=n?Math.min(t.length,o):t.length,l=i!==e.length||a!==t.length,s=(m,y)=>e[m]===t[y],u=[],c=0,d=0;for(gb(i,a,s,(m,y,S)=>{for(;c!==y;c+=1)u.push(new Ce(Qe,e[c]));for(;d!==S;d+=1)u.push(new Ce(We,t[d]));for(;m!==0;m-=1,c+=1,d+=1)u.push(new Ce(Ae,t[d]))});c!==i;c+=1)u.push(new Ce(Qe,e[c]));for(;d!==a;d+=1)u.push(new Ce(We,t[d]));return[u,l]}function oh(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 ih(e){return e.includes(`\r
|
|
19
|
+
`)?`\r
|
|
20
|
+
`:`
|
|
21
|
+
`}function GT(e,t,r){var f,p;let n=(f=r==null?void 0:r.truncateThreshold)!=null?f:!1,o=Math.max(Math.floor((p=r==null?void 0:r.truncateThreshold)!=null?p:0),0),i=e.length,a=t.length;if(n){let m=e.includes(`
|
|
22
|
+
`),y=t.includes(`
|
|
23
|
+
`),S=ih(e),b=ih(t),v=m?`${e.split(S,o).join(S)}
|
|
24
|
+
`:e,x=y?`${t.split(b,o).join(b)}
|
|
25
|
+
`:t;i=v.length,a=x.length}let l=i!==e.length||a!==t.length,s=(m,y)=>e[m]===t[y],u=0,c=0,d=[];return gb(i,a,s,(m,y,S)=>{u!==y&&d.push(new Ce(Qe,e.slice(u,y))),c!==S&&d.push(new Ce(We,t.slice(c,S))),u=y+m,c=S+m,d.push(new Ce(Ae,t.slice(S,c)))}),u!==i&&d.push(new Ce(Qe,e.slice(u))),c!==a&&d.push(new Ce(We,t.slice(c))),[d,l]}function WT(e,t,r){return t.reduce((n,o)=>n+(o[0]===Ae?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}var ah=class{constructor(e,t){Vt(this,"op");Vt(this,"line");Vt(this,"lines");Vt(this,"changeColor");this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new Ce(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new Ce(this.op,WT(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new Ce(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(`
|
|
26
|
+
`)){let r=t.split(`
|
|
27
|
+
`),n=r.length-1;r.forEach((o,i)=>{i<n?(this.pushSubstring(o),this.pushLine()):o.length!==0&&this.pushSubstring(o)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},VT=class{constructor(e,t){Vt(this,"deleteBuffer");Vt(this,"insertBuffer");Vt(this,"lines");this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],r=e[1];if(r.includes(`
|
|
28
|
+
`)){let n=r.split(`
|
|
29
|
+
`),o=n.length-1;n.forEach((i,a)=>{if(a===0){let l=new Ce(t,i);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(l)):(this.pushDiffChangeLines(l),this.flushChangeLines())}else a<o?this.pushDiffCommonLine(new Ce(t,i)):i.length!==0&&this.pushDiffChangeLines(new Ce(t,i))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function qT(e,t){let r=new ah(Qe,t),n=new ah(We,t),o=new VT(r,n);return e.forEach(i=>{switch(i[0]){case Qe:r.align(i);break;case We:n.align(i);break;default:o.align(i)}}),o.getLines()}function YT(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===Ae&&(o!==r||n[1]!==`
|
|
30
|
+
`))}return e.some(r=>r[0]===Ae)}function XT(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
|
|
31
|
+
`)||t.includes(`
|
|
32
|
+
`),[o,i]=Sb(n?`${e}
|
|
33
|
+
`:e,n?`${t}
|
|
34
|
+
`:t,!0,r);if(YT(o,n)){let a=pn(r),l=qT(o,a.changeColor);return Pd(l,i,a)}}return Ga(e.split(`
|
|
35
|
+
`),t.split(`
|
|
36
|
+
`),r)}function Sb(e,t,r,n){let[o,i]=GT(e,t,n);return AT(o),[o,i]}function oc(e,t){let{commonColor:r}=pn(t);return r(e)}var{AsymmetricMatcher:JT,DOMCollection:ZT,DOMElement:QT,Immutable:eA,ReactElement:tA,ReactTestComponent:rA}=Rd,xb=[rA,tA,QT,ZT,eA,JT,Rd.Error],ic={maxDepth:20,plugins:xb},$b={callToJSON:!1,maxDepth:8,plugins:xb};function nA(e,t,r){if(Object.is(e,t))return"";let n=oh(e),o=n,i=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),i=o==="string"}if(o!==oh(t)){let a=function(x){return x.length<=S?x:`${x.slice(0,S)}...`},{aAnnotation:l,aColor:s,aIndicator:u,bAnnotation:c,bColor:d,bIndicator:f}=pn(r),p=ac($b,r),m=er(e,p),y=er(t,p),S=1e5;m=a(m),y=a(y);let b=`${s(`${u} ${l}:`)}
|
|
37
|
+
${m}`,v=`${d(`${f} ${c}:`)}
|
|
38
|
+
${y}`;return`${b}
|
|
39
|
+
|
|
40
|
+
${v}`}if(!i)switch(n){case"string":return Ga(e.split(`
|
|
41
|
+
`),t.split(`
|
|
42
|
+
`),r);case"boolean":case"number":return oA(e,t,r);case"map":return Zl(lh(e),lh(t),r);case"set":return Zl(sh(e),sh(t),r);default:return Zl(e,t,r)}}function oA(e,t,r){let n=er(e,ic),o=er(t,ic);return n===o?"":Ga(n.split(`
|
|
43
|
+
`),o.split(`
|
|
44
|
+
`),r)}function lh(e){return new Map(Array.from(e.entries()).sort())}function sh(e){return new Set(Array.from(e.values()).sort())}function Zl(e,t,r){let n,o=!1;try{let a=ac(ic,r);n=uh(e,t,a,r)}catch(a){o=!0}let i=oc(hb,r);if(n===void 0||n===i){let a=ac($b,r);n=uh(e,t,a,r),n!==i&&!o&&(n=`${oc(PT,r)}
|
|
45
|
+
|
|
46
|
+
${n}`)}return n}function ac(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:o}=pn(t);return P(E({},e),{compareKeys:r,printBasicPrototype:n,maxDepth:o!=null?o:e.maxDepth})}function uh(e,t,r,n){let o=P(E({},r),{indent:0}),i=er(e,o),a=er(t,o);if(i===a)return oc(hb,n);{let l=er(e,r),s=er(t,r);return KT(l.split(`
|
|
47
|
+
`),s.split(`
|
|
48
|
+
`),i.split(`
|
|
49
|
+
`),a.split(`
|
|
50
|
+
`),n)}}var ch=2e4;function dh(e){return rc(e)==="Object"&&typeof e.asymmetricMatch=="function"}function fh(e,t){let r=rc(e),n=rc(t);return r===n&&(r==="Object"||r==="Array")}function iA(e,t,r){let{aAnnotation:n,bAnnotation:o}=pn(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=ch&&e.length<=ch&&t!==e){if(t.includes(`
|
|
51
|
+
`)||e.includes(`
|
|
52
|
+
`))return XT(t,e,r);let[u]=Sb(t,e),c=u.some(m=>m[0]===Ae),d=aA(n,o),f=d(n)+uA(ph(u,Qe,c)),p=d(o)+sA(ph(u,We,c));return`${f}
|
|
53
|
+
${p}`}let i=Jp(t,{forceWritable:!0}),a=Jp(e,{forceWritable:!0}),{replacedExpected:l,replacedActual:s}=wb(a,i);return nA(l,s,r)}function wb(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}):fh(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),cb(t).forEach(o=>{let i=t[o],a=e[o];if(dh(i))i.asymmetricMatch(a)&&(e[o]=i);else if(dh(a))a.asymmetricMatch(i)&&(t[o]=a);else if(fh(a,i)){let l=wb(a,i,r,n);e[o]=l.replacedActual,t[o]=l.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function aA(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var lA="·";function Cb(e){return e.replace(/\s+$/gm,t=>lA.repeat(t.length))}function sA(e){return yr.red(Cb(Ho(e)))}function uA(e){return yr.green(Cb(Ho(e)))}function ph(e,t,r){return e.reduce((n,o)=>n+(o[0]===Ae?o[1]:o[0]===t?r?yr.inverse(o[1]):o[1]:""),"")}var cA="@@__IMMUTABLE_RECORD__@@",dA="@@__IMMUTABLE_ITERABLE__@@";function fA(e){return e&&(e[dA]||e[cA])}var pA=Object.getPrototypeOf({});function hh(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function Dr(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"&&_i(()=>{var n;return(n=r.message)!=null?n:r.message=e.message}),typeof e.stack=="string"&&_i(()=>{var n;return(n=r.stack)!=null?n:r.stack=e.stack}),typeof e.name=="string"&&_i(()=>{var n;return(n=r.name)!=null?n:r.name=e.name}),e.cause!=null&&_i(()=>{var n;return(n=r.cause)!=null?n:r.cause=Dr(e.cause,t)})),Dr(r,t)}if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(fA(e))return Dr(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()} ${$T(e.sample)}`;if(typeof e.toJSON=="function")return Dr(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,o)=>{try{r[o]=Dr(n,t)}catch(i){r[o]=hh(i)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==pA;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=Dr(e[o],t)}catch(i){delete r[o],r[o]=hh(i)}}),n=Object.getPrototypeOf(n);return r}}function _i(e){try{return e()}catch(t){}}function hA(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function _b(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=iA(n.actual,n.expected,E(E({},t),n.diffOptions))),"expected"in n&&typeof n.expected!="string"&&(n.expected=Ho(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=Ho(n.actual,10));try{typeof n.message=="string"&&(n.message=hA(n.message))}catch(o){}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=_b(n.cause,t,r))}catch(o){}try{return Dr(n)}catch(o){return Dr(new Error(`Failed to fully serialize error: ${o==null?void 0:o.message}
|
|
54
|
+
Inner error message: ${n==null?void 0:n.message}`))}}const{once:gA}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_REMOUNT:gh,SET_CURRENT_STORY:mA,STORY_RENDER_PHASE_CHANGED:yA}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Tt}=__STORYBOOK_MODULE_GLOBAL__;var Ql=globalThis.__STORYBOOK_ADDONS_PREVIEW,bA=new Error("This function ran after the play function completed. Did you forget to `await` it?"),mh=e=>Object.prototype.toString.call(e)==="[object Object]",EA=e=>Object.prototype.toString.call(e)==="[object Module]",vA=e=>{if(!mh(e)&&!EA(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!mh(t)},SA=e=>{try{return new e.constructor}catch(t){return{}}},es=()=>({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}),yh=(e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(o=>o.retain);if(!r.length)return;let n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,o])=>o.retain));return{cursor:r.length,calls:r,callRefsByResult:n}},xA=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{var l,s;try{this.state=((s=(l=Tt.window)==null?void 0:l.parent)==null?void 0:s.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__)||{}}catch(u){this.detached=!0}},this.updateParentWindowState=()=>{try{Tt.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch(l){this.detached=!0}},this.loadParentWindowState();let e=({storyId:l,renderPhase:s,isPlaying:u=!0,isDebugging:c=!1})=>{let d=this.getState(l);this.setState(l,P(E(E({},es()),yh(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(l)},t=l=>({storyId:s,playUntil:u})=>{this.getState(s).isDebugging||this.setState(s,({calls:d})=>({calls:[],shadowCalls:d.map(f=>P(E({},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(m=>m.id===c[0].callId);return{playUntil:(p=d.slice(0,f).filter(m=>{var y;return m.interceptable&&!((y=m.ancestors)!=null&&y.length)}).slice(-1)[0])==null?void 0:p.id}}),l.emit(gh,{storyId:s,isDebugging:!0})},r=l=>({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,m)=>f>=0||p.status==="waiting"?f:m,-1);t(l)({storyId:s,playUntil:(d=u[c-1])==null?void 0:d.callId})},n=l=>({storyId:s,callId:u})=>{var y;let{calls:c,shadowCalls:d,resolvers:f}=this.getState(s),p=c.find(({id:S})=>S===u),m=d.find(({id:S})=>S===u);if(!p&&m&&Object.values(f).length>0){let S=(y=this.getLog(s).find(b=>b.status==="waiting"))==null?void 0:y.callId;m.id!==S&&this.setState(s,{playUntil:m.id}),Object.values(f).forEach(b=>b())}else t(l)({storyId:s,playUntil:u})},o=l=>({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(l)({storyId:s,playUntil:d}):i({storyId:s})}},i=({storyId:l})=>{this.setState(l,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(l).resolvers).forEach(s=>s())},a=({storyId:l,newPhase:s})=>{let{isDebugging:u}=this.getState(l);if(s==="preparing"&&u)return e({storyId:l,renderPhase:s,isDebugging:u});if(s==="playing")return e({storyId:l,renderPhase:s,isDebugging:u});s==="played"?this.setState(l,{renderPhase:s,isLocked:!1,isPlaying:!1,isDebugging:!1}):s==="errored"?this.setState(l,{renderPhase:s,isLocked:!1,isPlaying:!1}):s==="aborted"?this.setState(l,{renderPhase:s,isLocked:!0,isPlaying:!1}):this.setState(l,{renderPhase:s}),this.sync(l)};Ql&&Ql.ready().then(()=>{this.channel=Ql.getChannel(),this.channel.on(gh,e),this.channel.on(yA,a),this.channel.on(mA,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(dr.START,t(this.channel)),this.channel.on(dr.BACK,r(this.channel)),this.channel.on(dr.GOTO,n(this.channel)),this.channel.on(dr.NEXT,o(this.channel)),this.channel.on(dr.END,i)})}getState(e){return this.state[e]||es()}setState(e,t){if(e){let r=this.getState(e),n=typeof t=="function"?t(r):t;this.state=P(E({},this.state),{[e]:E(E({},r),n)}),this.updateParentWindowState()}}cleanup(){var t;this.state=Object.entries(this.state).reduce((r,[n,o])=>{let i=yh(o);return i&&(r[n]=Object.assign(es(),i)),r},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};(t=this.channel)==null||t.emit(dr.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:t,shadowCalls:r}=this.getState(e),n=[...r];t.forEach((i,a)=>{n[a]=i});let o=new Set;return n.reduceRight((i,a)=>(a.args.forEach(l=>{l!=null&&l.__callId__&&o.add(l.__callId__)}),a.path.forEach(l=>{l.__callId__&&o.add(l.__callId__)}),(a.interceptable||a.exception)&&!o.has(a.id)&&(i.unshift({callId:a.id,status:a.status,ancestors:a.ancestors}),o.add(a.id)),i),[])}instrument(e,t,r=0){if(!vA(e))return e;let{mutate:n=!1,path:o=[]}=t,i=t.getKeys?t.getKeys(e,r):Object.keys(e);return r+=1,i.reduce((a,l)=>{let s=wA(e,l);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(a,l,{get:()=>this.instrument(c(),P(E({},t),{path:o.concat(l)}),r)})}return a}let u=e[l];return typeof u!="function"?(a[l]=this.instrument(u,P(E({},t),{path:o.concat(l)}),r),a):"__originalFn__"in u&&typeof u.__originalFn__=="function"?(a[l]=u,a):(a[l]=(...c)=>this.track(l,u,e,c,t),a[l].__originalFn__=u,Object.defineProperty(a[l],"name",{value:l,writable:!1}),Object.keys(u).length>0&&Object.assign(a[l],this.instrument(E({},u),P(E({},t),{path:o.concat(l)}),r)),a)},n?e:SA(e))}track(e,t,r,n,o){var y,S,b,v;let i=((y=n==null?void 0:n[0])==null?void 0:y.__storyId__)||((v=(b=(S=Tt.__STORYBOOK_PREVIEW__)==null?void 0:S.selectionStore)==null?void 0:b.selection)==null?void 0:v.storyId),{cursor:a,ancestors:l}=this.getState(i);this.setState(i,{cursor:a+1});let s=`${l.slice(-1)[0]||i} [${a}] ${e}`,{path:u=[],intercept:c=!1,retain:d=!1}=o,f=typeof c=="function"?c(e,u):c,p={id:s,cursor:a,storyId:i,ancestors:l,path:u,method:e,args:n,interceptable:f,retain:d},m=(f&&!l.length?this.intercept:this.invoke).call(this,t,r,p,o);return this.instrument(m,P(E({},o),{mutate:!0,path:[{__callId__:p.id}]}))}intercept(e,t,r,n){let{chainedCallIds:o,isDebugging:i,playUntil:a}=this.getState(r.storyId),l=o.has(r.id);return!i||l||a?(a===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:P(E({},u),{[r.id]:s})}))}).then(()=>(this.setState(r.storyId,s=>{var d;let f=s.resolvers,{[d=r.id]:u}=f;return{isLocked:!0,resolvers:G(f,[po(d)])}}),this.invoke(e,t,r,n)))}invoke(e,t,r,n){let{callRefsByResult:o,renderPhase:i}=this.getState(r.storyId),a=25,l=(c,d,f)=>{var p,m,y;if(f.includes(c))return"[Circular]";if(f=[...f,c],d>a)return"...";if(o.has(c))return o.get(c);if(c instanceof Array)return c.map(S=>l(S,++d,f));if(c instanceof Date)return{__date__:{value:c.toISOString()}};if(c instanceof Error){let{name:S,message:b,stack:v}=c;return{__error__:{name:S,message:b,stack:v}}}if(c instanceof RegExp){let{flags:S,source:b}=c;return{__regexp__:{flags:S,source:b}}}if(c instanceof((p=Tt.window)==null?void 0:p.HTMLElement)){let{prefix:S,localName:b,id:v,classList:x,innerText:C}=c,A=Array.from(x);return{__element__:{prefix:S,localName:b,id:v,classNames:A,innerText:C}}}return typeof c=="function"?{__function__:{name:"getMockName"in c?c.getMockName():c.name}}:typeof c=="symbol"?{__symbol__:{description:c.description}}:typeof c=="object"&&((m=c==null?void 0:c.constructor)!=null&&m.name)&&((y=c==null?void 0:c.constructor)==null?void 0:y.name)!=="Object"?{__class__:{name:c.constructor.name}}:Object.prototype.toString.call(c)==="[object Object]"?Object.fromEntries(Object.entries(c).map(([S,b])=>[S,l(b,++d,f)])):c},s=P(E({},r),{args:r.args.map(c=>l(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:m,callId:y=r.id}=c,{showDiff:S=void 0,diff:b=void 0,actual:v=void 0,expected:x=void 0}=c.name==="AssertionError"?_b(c):c,C={name:f,message:p,stack:m,callId:y,showDiff:S,diff:b,actual:v,expected:x};if(this.update(P(E({},s),{status:"error",exception:C})),this.setState(r.storyId,A=>({callRefsByResult:new Map([...Array.from(A.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(i==="played"&&!r.retain)throw bA;let c=(n.getArgs?n.getArgs(r,this.getState(r.storyId)):r.args).map(f=>typeof f!="function"||CA(f)||Object.keys(f).length?f:(...p)=>{let{cursor:m,ancestors:y}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...y,r.id]});let S=()=>this.setState(r.storyId,{cursor:m,ancestors:y}),b=!1;try{let v=f(...p);return v instanceof Promise?(b=!0,v.finally(S)):v}finally{b||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(P(E({},s),{status:d instanceof Promise?"active":"done"})),d instanceof Promise?d.then(f=>(this.update(P(E({},s),{status:"done"})),f),u):d}catch(c){return u(c)}}update(e){var t;(t=this.channel)==null||t.emit(dr.CALL,e),this.setState(e.storyId,({calls:r})=>{let n=r.concat(e).reduce((o,i)=>Object.assign(o,{[i.id]:i}),{});return{calls:Object.values(n).sort((o,i)=>o.id.localeCompare(i.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),o=this.getLog(e),i=(u=o.filter(({ancestors:f})=>!f.length).find(f=>f.status==="waiting"))==null?void 0:u.callId,a=o.some(f=>f.status==="active");if(this.detached||r||a||o.length===0){let f={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:o};(c=this.channel)==null||c.emit(dr.SYNC,f);return}let l=o.some(f=>f.status==="done"||f.status==="error"),s={controlStates:{detached:this.detached,start:l,back:l,goto:!0,next:n,end:n},logItems:o,pausedAt:i};(d=this.channel)==null||d.emit(dr.SYNC,s)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function $A(e,t={}){var r,n,o,i,a,l,s,u;try{let c=!1,d=!1;return(o=(n=(r=Tt.window)==null?void 0:r.location)==null?void 0:n.search)!=null&&o.includes("instrument=true")?c=!0:(l=(a=(i=Tt.window)==null?void 0:i.location)==null?void 0:a.search)!=null&&l.includes("instrument=false")&&(d=!0),((s=Tt.window)==null?void 0:s.parent)===Tt.window&&!c||d?e:(Tt.window&&!Tt.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(Tt.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new xA),((u=Tt.window)==null?void 0:u.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(c){return gA.warn(c),e}}function wA(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function CA(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}var _A=tt({"../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(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,i){return(function a(l,s,u){var c,d,f,p=t.call(l),m=t.call(s);if(l===s)return!0;if(l==null||s==null)return!1;if(u.indexOf(l)>-1&&u.indexOf(s)>-1)return!0;if(u.push(l,s),p!=m||(c=n(l),d=n(s),c.length!=d.length||c.some(function(y){return!a(l[y],s[y],u)})))return!1;switch(p.slice(8,-1)){case"Symbol":return l.valueOf()==s.valueOf();case"Date":case"Number":return+l==+s||+l!=+l&&+s!=+s;case"RegExp":case"Function":case"String":case"Boolean":return""+l==""+s;case"Set":case"Map":c=l.entries(),d=s.entries();do if(!a((f=c.next()).value,d.next().value,u))return!1;while(!f.done);return!0;case"ArrayBuffer":l=new Uint8Array(l),s=new Uint8Array(s);case"DataView":l=new Uint8Array(l.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(l.length!=s.length)return!1;for(f=0;f<l.length;f++)if((f in l||f in s)&&(f in l!=f in s||!a(l[f],s[f],u)))return!1;return!0;case"Object":return a(r(l),r(s),u);default:return!1}})(o,i,[])}})()}}),bh=vt(_A(),1),Tb=e=>e.map(t=>typeof t<"u").filter(Boolean).length,TA=(e,t)=>{let{exists:r,eq:n,neq:o,truthy:i}=e;if(Tb([r,n,o,i])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,bh.isEqual)(t,n);if(typeof o<"u")return!(0,bh.isEqual)(t,o);if(typeof r<"u"){let a=typeof t<"u";return r?a:!a}return typeof i>"u"||i?!!t:!t},AA=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(Tb([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let i=n?t[n]:r[o];return TA(e.if,i)},OA={};qe(OA,{argsEnhancers:()=>PA});var Ab=(e,t)=>typeof t[e]>"u"&&!(e in t),RA=e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:o}}=e;if(!o||o.disable||!o.argTypesRegex||!r)return{};let i=new RegExp(o.argTypesRegex);return Object.entries(r).filter(([a])=>!!i.test(a)).reduce((a,[l,s])=>(Ab(l,t)&&(a[l]=xd(l,{implicit:!0,id:n})),a),{})},DA=e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n!=null&&n.disable||!r?{}:Object.entries(r).filter(([o,i])=>!!i.action).reduce((o,[i,a])=>(Ab(i,t)&&(o[i]=xd(typeof a.action=="string"?a.action:i)),o),{})},PA=[DA,RA],IA={};qe(IA,{loaders:()=>kA});const{onMockCall:FA}=__STORYBOOK_MODULE_TEST__;var Eh=!1,LA=e=>{var r;let{parameters:t}=e;(r=t==null?void 0:t.actions)!=null&&r.disable||Eh||(FA((n,o)=>{let i=n.getMockName();i!=="spy"&&i!=="vi.fn()"&&(!/^next\/.*::/.test(i)||["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(a=>i.startsWith(a)))&&xd(i)(o)}),Eh=!0)},kA=[LA];const{useEffect:vh}=__STORYBOOK_MODULE_PREVIEW_API__;var{document:jt}=globalThis,NA=()=>{var e;return globalThis!=null&&globalThis.matchMedia?!!((e=globalThis.matchMedia("(prefers-reduced-motion: reduce)"))!=null&&e.matches):!1},Sh=e=>{(Array.isArray(e)?e:[e]).forEach(MA)},MA=e=>{if(!jt)return;let t=jt.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},BA=(e,t)=>{if(!jt)return;let r=jt.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=jt.createElement("style");n.setAttribute("id",e),n.innerHTML=t,jt.head.appendChild(n)}},jA=(e,t,r)=>{var o;if(!jt)return;let n=jt.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let i=jt.createElement("style");i.setAttribute("id",e),i.innerHTML=t;let a=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,l=jt.getElementById(a);l?(o=l.parentElement)==null||o.insertBefore(i,l):jt.head.appendChild(i)}},HA={cellSize:100,cellAmount:10,opacity:.8},xh="addon-backgrounds",$h="addon-backgrounds-grid",UA=NA()?"":"transition: background-color 0.3s;",zA=(e,t)=>{let{globals:r={},parameters:n={},viewMode:o,id:i}=t,{options:a=eC,disable:l,grid:s=HA}=n[$p]||{},u=r[$p]||{},c=typeof u=="string"?u:u==null?void 0:u.value,d=c?a[c]:void 0,f=typeof d=="string"?d:(d==null?void 0:d.value)||"transparent",p=typeof u=="string"?!1:u.grid||!1,m=!!d&&!l,y=o==="docs"?`#anchor--${i} .docs-story`:".sb-show-main",S=o==="docs"?`#anchor--${i} .docs-story`:".sb-show-main",b=n.layout===void 0||n.layout==="padded",v=o==="docs"?20:b?16:0,{cellAmount:x,cellSize:C,opacity:A,offsetX:$=v,offsetY:w=v}=s,_=o==="docs"?`${xh}-docs-${i}`:`${xh}-color`,O=o==="docs"?i:null;vh(()=>{let I=`
|
|
55
|
+
${y} {
|
|
56
|
+
background: ${f} !important;
|
|
57
|
+
${UA}
|
|
58
|
+
}`;if(!m){Sh(_);return}jA(_,I,O)},[y,_,O,m,f]);let T=o==="docs"?`${$h}-docs-${i}`:`${$h}`;return vh(()=>{if(!p){Sh(T);return}let I=[`${C*x}px ${C*x}px`,`${C*x}px ${C*x}px`,`${C}px ${C}px`,`${C}px ${C}px`].join(", "),D=`
|
|
59
|
+
${S} {
|
|
60
|
+
background-size: ${I} !important;
|
|
61
|
+
background-position: ${$}px ${w}px, ${$}px ${w}px, ${$}px ${w}px, ${$}px ${w}px !important;
|
|
62
|
+
background-blend-mode: difference !important;
|
|
63
|
+
background-image: linear-gradient(rgba(130, 130, 130, ${A}) 1px, transparent 1px),
|
|
64
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${A}) 1px, transparent 1px),
|
|
65
|
+
linear-gradient(rgba(130, 130, 130, ${A/2}) 1px, transparent 1px),
|
|
66
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${A/2}) 1px, transparent 1px) !important;
|
|
67
|
+
}
|
|
68
|
+
`;BA(T,D)},[x,C,S,T,p,$,w,A]),e()},Fy;(Fy=globalThis.FEATURES)!=null&&Fy.backgrounds;var{step:hq}=$A({step:async(e,t,r)=>t(r)},{intercept:!0});const{addons:Ti}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_RENDER_PHASE_CHANGED:KA}=__STORYBOOK_MODULE_CORE_EVENTS__;var wh={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"]},GA="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),Be=(e,t={},r)=>{let n=GA.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([o,i])=>{/[A-Z]/.test(o)?(o==="onClick"&&(n.addEventListener("click",i),n.addEventListener("keydown",a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),i())})),o==="onMouseEnter"&&n.addEventListener("mouseenter",i),o==="onMouseLeave"&&n.addEventListener("mouseleave",i)):n.setAttribute(o,i)}),r==null||r.forEach(o=>{if(!(o==null||o===!1))try{n.appendChild(o)}catch(i){n.appendChild(document.createTextNode(String(o)))}}),n},Ai=e=>wh[e]&&Be("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},wh[e].map(t=>Be("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),WA=e=>{if("elements"in e){let{elements:o,color:i,style:a}=e;return{id:void 0,priority:0,selectors:o,styles:{outline:`2px ${a} ${i}`,outlineOffset:"2px",boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"},menu:void 0}}let n=e,{menu:t}=n,r=G(n,["menu"]);return P(E({id:void 0,priority:0,styles:{outline:"2px dashed #029cfd"}},r),{menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0})},VA=e=>e instanceof Function,mo=new Map,Ur=new Map,Oi=new Map,pr=e=>{let t=Symbol();return Ur.set(t,[]),mo.set(t,e),{get:()=>mo.get(t),set:r=>{var i;let n=mo.get(t),o=VA(r)?r(n):r;o!==n&&(mo.set(t,o),(i=Ur.get(t))==null||i.forEach(a=>{var l;(l=Oi.get(a))==null||l(),Oi.set(a,a(o))}))},subscribe:r=>{var n;return(n=Ur.get(t))==null||n.push(r),()=>{let o=Ur.get(t);o&&Ur.set(t,o.filter(i=>i!==r))}},teardown:()=>{var r;(r=Ur.get(t))==null||r.forEach(n=>{var o;(o=Oi.get(n))==null||o(),Oi.delete(n)}),Ur.delete(t),mo.delete(t)}}},Ch=e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let n of e){let{priority:o=0}=n;for(let i of n.selectors){let a=[...document.querySelectorAll(`:is(${i}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...(t==null?void 0:t.querySelectorAll(i))||[]];for(let l of a){let s=r.get(l);(!s||s.priority<=o)&&r.set(l,P(E({},n),{priority:o,selectors:Array.from(new Set(((s==null?void 0:s.selectors)||[]).concat(i)))}))}}}return r},qA=e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:o,focusStyles:i,menu:a}])=>{let{top:l,left:s,width:u,height:c}=t.getBoundingClientRect(),{position:d}=getComputedStyle(t);return{element:t,selectors:r,styles:n,hoverStyles:o,focusStyles:i,menu:a,top:d==="fixed"?l:l+window.scrollY,left:d==="fixed"?s:s+window.scrollX,width:u,height:c}}).sort((t,r)=>r.width*r.height-t.width*t.height),_h=(e,t)=>{let r=e.getBoundingClientRect(),{x:n,y:o}=t;return(r==null?void 0:r.top)&&(r==null?void 0:r.left)&&n>=r.left&&n<=r.left+r.width&&o>=r.top&&o<=r.top+r.height},Th=(e,t,r)=>{if(!t||!r)return!1;let{left:n,top:o,width:i,height:a}=e;a<Or&&(o=o-Math.round((Or-a)/2),a=Or),i<Or&&(n=n-Math.round((Or-i)/2),i=Or),t.style.position==="fixed"&&(n+=window.scrollX,o+=window.scrollY);let{x:l,y:s}=r;return l>=n&&l<=n+i&&s>=o&&s<=o+a},YA=(e,t,r={})=>{let{x:n,y:o}=t,{margin:i=5,topOffset:a=0,centered:l=!1}=r,{scrollX:s,scrollY:u,innerHeight:c,innerWidth:d}=window,f=Math.min(e.style.position==="fixed"?o-u:o,c-e.clientHeight-i-a+u),p=l?e.clientWidth/2:0,m=e.style.position==="fixed"?Math.max(Math.min(n-s,d-p-i),p+i):Math.max(Math.min(n,d-p-i+s),p+i+s);Object.assign(e.style,E(E({},m!==n&&{left:`${m}px`}),f!==o&&{top:`${f}px`}))},Ah=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},XA=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},JA=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}}),xe="storybook-highlights-menu",Oh="storybook-highlights-root",ZA="storybook-root",QA=e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=pr([]),n=pr(new Map),o=pr([]),i=pr(),a=pr(),l=pr([]),s=pr([]),u=pr(),c=pr(),d=t.getElementById(Oh);r.subscribe(()=>{d||(d=Be("div",{id:Oh}),t.body.appendChild(d))}),r.subscribe(w=>{let _=t.getElementById(ZA);if(!_)return;n.set(Ch(w));let O=new MutationObserver(()=>n.set(Ch(w)));return O.observe(_,{subtree:!0,childList:!0}),()=>{O.disconnect()}}),n.subscribe(w=>{let _=()=>requestAnimationFrame(()=>o.set(qA(w))),O=new ResizeObserver(_);O.observe(t.body),Array.from(w.keys()).forEach(I=>O.observe(I));let T=Array.from(t.body.querySelectorAll("*")).filter(I=>{let{overflow:D,overflowX:M,overflowY:k}=window.getComputedStyle(I);return["auto","scroll"].some(R=>[D,M,k].includes(R))});return T.forEach(I=>I.addEventListener("scroll",_)),()=>{O.disconnect(),T.forEach(I=>I.removeEventListener("scroll",_))}}),n.subscribe(w=>{let _=Array.from(w.keys()).filter(({style:T})=>T.position==="sticky"),O=()=>requestAnimationFrame(()=>{o.set(T=>T.map(I=>{if(_.includes(I.element)){let{top:D,left:M}=I.element.getBoundingClientRect();return P(E({},I),{top:D+window.scrollY,left:M+window.scrollX})}return I}))});return t.addEventListener("scroll",O),()=>t.removeEventListener("scroll",O)}),n.subscribe(w=>{l.set(_=>_.filter(({element:O})=>w.has(O)))}),l.subscribe(w=>{w.length?(c.set(_=>w.some(O=>O.element===(_==null?void 0:_.element))?_:void 0),u.set(_=>w.some(O=>O.element===(_==null?void 0:_.element))?_:void 0)):(c.set(void 0),u.set(void 0),i.set(void 0))});let f=new Map(new Map);r.subscribe(w=>{w.forEach(({keyframes:_})=>{if(_){let O=f.get(_);O||(O=t.createElement("style"),O.setAttribute("data-highlight","keyframes"),f.set(_,O),t.head.appendChild(O)),O.innerHTML=_}}),f.forEach((_,O)=>{w.some(T=>T.keyframes===O)||(_.remove(),f.delete(O))})});let p=new Map(new Map);o.subscribe(w=>{w.forEach(_=>{let O=p.get(_.element);if(d&&!O){let T={popover:"manual","data-highlight-dimensions":`w${_.width.toFixed(0)}h${_.height.toFixed(0)}`,"data-highlight-coordinates":`x${_.left.toFixed(0)}y${_.top.toFixed(0)}`};O=d.appendChild(Be("div",T,[Be("div")])),p.set(_.element,O)}}),p.forEach((_,O)=>{w.some(({element:T})=>T===O)||(_.remove(),p.delete(O))})}),o.subscribe(w=>{let _=w.filter(T=>T.menu);if(!_.length)return;let O=T=>{requestAnimationFrame(()=>{let I=t.getElementById(xe),D={x:T.pageX,y:T.pageY};if(I&&!_h(I,D)){let M=_.filter(k=>{let R=p.get(k.element);return Th(k,R,D)});i.set(M.length?D:void 0),l.set(M)}})};return t.addEventListener("click",O),()=>t.removeEventListener("click",O)});let m=()=>{let w=t.getElementById(xe),_=a.get();!_||w&&_h(w,_)||s.set(O=>{let T=o.get().filter(k=>{let R=p.get(k.element);return Th(k,R,_)}),I=O.filter(k=>T.includes(k)),D=T.filter(k=>!O.includes(k)),M=O.length-I.length;return D.length||M?[...I,...D]:O})};a.subscribe(m),o.subscribe(m);let y=()=>{let w=c.get(),_=w?[w]:l.get(),O=_.length===1?_[0]:u.get(),T=i.get()!==void 0;o.get().forEach(I=>{var M;let D=p.get(I.element);if(D){let k=O===I,R=T?O?k:_.includes(I):(M=s.get())==null?void 0:M.includes(I);Object.assign(D.style,P(E(E(E({animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px"},I.styles),R?I.hoverStyles:{}),k?I.focusStyles:{}),{position:getComputedStyle(I.element).position==="fixed"?"fixed":"absolute",zIndex:wp-10,top:`${I.top}px`,left:`${I.left}px`,width:`${I.width}px`,height:`${I.height}px`,margin:0,padding:0,cursor:I.menu&&R?"pointer":"default",pointerEvents:I.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"})),Object.assign(D.children[0].style,{width:"100%",height:"100%",minHeight:`${Or}px`,minWidth:`${Or}px`,boxSizing:"content-box",padding:D.style.outlineWidth||"0px"}),Ah(D)}})};o.subscribe(y),l.subscribe(y),s.subscribe(y),u.subscribe(y),c.subscribe(y);let S=()=>{var I;if(!d)return;let w=t.getElementById(xe);if(w)w.innerHTML="";else{let D={id:xe,popover:"manual"};w=d.appendChild(Be("div",D)),d.appendChild(Be("style",{},[`
|
|
69
|
+
#${xe} {
|
|
70
|
+
position: absolute;
|
|
71
|
+
z-index: ${wp};
|
|
72
|
+
width: 300px;
|
|
73
|
+
padding: 0px;
|
|
74
|
+
margin: 15px 0 0 0;
|
|
75
|
+
transform: translateX(-50%);
|
|
76
|
+
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
77
|
+
font-size: 12px;
|
|
78
|
+
background: white;
|
|
79
|
+
border: none;
|
|
80
|
+
border-radius: 6px;
|
|
81
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
|
|
82
|
+
color: #2E3438;
|
|
83
|
+
}
|
|
84
|
+
#${xe} ul {
|
|
85
|
+
list-style: none;
|
|
86
|
+
margin: 0;
|
|
87
|
+
padding: 0;
|
|
88
|
+
}
|
|
89
|
+
#${xe} > ul {
|
|
90
|
+
max-height: 300px;
|
|
91
|
+
overflow-y: auto;
|
|
92
|
+
padding: 4px 0;
|
|
93
|
+
}
|
|
94
|
+
#${xe} li {
|
|
95
|
+
padding: 0 4px;
|
|
96
|
+
margin: 0;
|
|
97
|
+
}
|
|
98
|
+
#${xe} li > :not(ul) {
|
|
99
|
+
display: flex;
|
|
100
|
+
padding: 8px;
|
|
101
|
+
margin: 0;
|
|
102
|
+
align-items: center;
|
|
103
|
+
gap: 8px;
|
|
104
|
+
border-radius: 4px;
|
|
105
|
+
}
|
|
106
|
+
#${xe} button {
|
|
107
|
+
width: 100%;
|
|
108
|
+
border: 0;
|
|
109
|
+
background: transparent;
|
|
110
|
+
color: inherit;
|
|
111
|
+
text-align: left;
|
|
112
|
+
font-family: inherit;
|
|
113
|
+
font-size: inherit;
|
|
114
|
+
}
|
|
115
|
+
#${xe} button:focus-visible {
|
|
116
|
+
outline-color: #029CFD;
|
|
117
|
+
}
|
|
118
|
+
#${xe} button:hover {
|
|
119
|
+
background: rgba(2, 156, 253, 0.07);
|
|
120
|
+
color: #029CFD;
|
|
121
|
+
cursor: pointer;
|
|
122
|
+
}
|
|
123
|
+
#${xe} li code {
|
|
124
|
+
white-space: nowrap;
|
|
125
|
+
overflow: hidden;
|
|
126
|
+
text-overflow: ellipsis;
|
|
127
|
+
line-height: 16px;
|
|
128
|
+
font-size: 11px;
|
|
129
|
+
}
|
|
130
|
+
#${xe} li svg {
|
|
131
|
+
flex-shrink: 0;
|
|
132
|
+
margin: 1px;
|
|
133
|
+
color: #73828C;
|
|
134
|
+
}
|
|
135
|
+
#${xe} li > button:hover svg, #${xe} li > button:focus-visible svg {
|
|
136
|
+
color: #029CFD;
|
|
137
|
+
}
|
|
138
|
+
#${xe} .element-list li svg {
|
|
139
|
+
display: none;
|
|
140
|
+
}
|
|
141
|
+
#${xe} li.selectable svg, #${xe} li.selected svg {
|
|
142
|
+
display: block;
|
|
143
|
+
}
|
|
144
|
+
#${xe} .menu-list {
|
|
145
|
+
border-top: 1px solid rgba(38, 85, 115, 0.15);
|
|
146
|
+
}
|
|
147
|
+
#${xe} .menu-list > li:not(:last-child) {
|
|
148
|
+
padding-bottom: 4px;
|
|
149
|
+
margin-bottom: 4px;
|
|
150
|
+
border-bottom: 1px solid rgba(38, 85, 115, 0.15);
|
|
151
|
+
}
|
|
152
|
+
#${xe} .menu-items, #${xe} .menu-items li {
|
|
153
|
+
padding: 0;
|
|
154
|
+
}
|
|
155
|
+
#${xe} .menu-item {
|
|
156
|
+
display: flex;
|
|
157
|
+
}
|
|
158
|
+
#${xe} .menu-item-content {
|
|
159
|
+
display: flex;
|
|
160
|
+
flex-direction: column;
|
|
161
|
+
flex-grow: 1;
|
|
162
|
+
}
|
|
163
|
+
`]))}let _=c.get(),O=_?[_]:l.get();if(O.length&&(w.style.position=getComputedStyle(O[0].element).position==="fixed"?"fixed":"absolute",w.appendChild(Be("ul",{class:"element-list"},O.map(D=>{var j;let M=O.length>1&&!!((j=D.menu)!=null&&j.some(L=>L.some(z=>!z.selectors||z.selectors.some(U=>D.selectors.includes(U))))),k=M?{class:"selectable",onClick:()=>c.set(D),onMouseEnter:()=>u.set(D),onMouseLeave:()=>u.set(void 0)}:_?{class:"selected",onClick:()=>c.set(void 0)}:{},R=M||_;return Be("li",k,[Be(R?"button":"div",R?{type:"button"}:{},[_?Ai("chevronLeft"):null,Be("code",{},[D.element.outerHTML]),M?Ai("chevronRight"):null])])})))),c.get()||l.get().length===1){let D=c.get()||l.get()[0],M=(I=D.menu)==null?void 0:I.filter(k=>k.some(R=>!R.selectors||R.selectors.some(j=>D.selectors.includes(j))));M!=null&&M.length&&w.appendChild(Be("ul",{class:"menu-list"},M.map(k=>Be("li",{},[Be("ul",{class:"menu-items"},k.map(({id:R,title:j,description:L,iconLeft:z,iconRight:U,clickEvent:B})=>{let F=B&&(()=>e.emit(B,R,JA(D)));return Be("li",{},[Be(F?"button":"div",F?{class:"menu-item",type:"button",onClick:F}:{class:"menu-item"},[z?Ai(z):null,Be("div",{class:"menu-item-content"},[Be(L?"strong":"span",{},[j]),L&&Be("span",{},[L])]),U?Ai(U):null])])}))]))))}let T=i.get();T?(Object.assign(w.style,{display:"block",left:`${w.style.position==="fixed"?T.x-window.scrollX:T.x}px`,top:`${w.style.position==="fixed"?T.y-window.scrollY:T.y}px`}),Ah(w),requestAnimationFrame(()=>YA(w,T,{topOffset:15,centered:!0}))):(XA(w),Object.assign(w.style,{display:"none"}))};l.subscribe(S),c.subscribe(S);let b=w=>{let _=WA(w);r.set(O=>{var I;let T=_.id?O.filter(D=>D.id!==_.id):O;return(I=_.selectors)!=null&&I.length?[...T,_]:T})},v=w=>{w&&r.set(_=>_.filter(O=>O.id!==w))},x=()=>{r.set([]),n.set(new Map),o.set([]),i.set(void 0),a.set(void 0),l.set([]),s.set([]),u.set(void 0),c.set(void 0)},C,A=(w,_)=>{let O="scrollIntoView-highlight";clearTimeout(C),v(O);let T=t.querySelector(w);if(!T){console.warn(`Cannot scroll into view: ${w} not found`);return}T.scrollIntoView(E({behavior:"smooth",block:"center"},_));let I=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(D=>[...D,{id:O,priority:1e3,selectors:[w],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${I} 3s linear forwards`},keyframes:`@keyframes ${I} {
|
|
164
|
+
0% { outline: 2px solid #1EA7FD; }
|
|
165
|
+
20% { outline: 2px solid #1EA7FD00; }
|
|
166
|
+
40% { outline: 2px solid #1EA7FD; }
|
|
167
|
+
60% { outline: 2px solid #1EA7FD00; }
|
|
168
|
+
80% { outline: 2px solid #1EA7FD; }
|
|
169
|
+
100% { outline: 2px solid #1EA7FD00; }
|
|
170
|
+
}`}]),C=setTimeout(()=>v(O),3500)},$=w=>{requestAnimationFrame(()=>a.set({x:w.pageX,y:w.pageY}))};t.body.addEventListener("mousemove",$),e.on(fC,b),e.on(pC,v),e.on(hC,x),e.on(gC,A),e.on(KA,({newPhase:w})=>{w==="loading"&&x()})},Ly;(Ly=globalThis==null?void 0:globalThis.FEATURES)!=null&&Ly.highlight&&(Ti!=null&&Ti.ready)&&Ti.ready().then(QA);const{useEffect:Rh}=__STORYBOOK_MODULE_PREVIEW_API__,{global:ya}=__STORYBOOK_MODULE_GLOBAL__;function Ob(){let e=ya.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function eO(){let e=ya.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");ec(t!=null);let{width:r,height:n}=Ob();return lc(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",ya.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}function lc(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let o=ya.window.devicePixelRatio;e.width=Math.floor(r*o),e.height=Math.floor(n*o),t.scale(o,o)}var je={};function tO(){je.canvas||(je=eO())}function Rb(){var e,t;je.context&&je.context.clearRect(0,0,(e=je.width)!=null?e:0,(t=je.height)!=null?t:0)}function rO(e){Rb(),e(je.context)}function nO(){ec(je.canvas),ec(je.context),lc(je.canvas,je.context,{width:0,height:0});let{width:e,height:t}=Ob();lc(je.canvas,je.context,{width:e,height:t}),je.width=e,je.height=t}function oO(){var e;je.canvas&&(Rb(),(e=je.canvas.parentNode)==null||e.removeChild(je.canvas),je={})}const{global:Bt}=__STORYBOOK_MODULE_GLOBAL__;var Sn={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},Er=6;function Dh(e,{x:t,y:r,w:n,h:o,r:i}){t=t-n/2,r=r-o/2,n<2*i&&(i=n/2),o<2*i&&(i=o/2),e.beginPath(),e.moveTo(t+i,r),e.arcTo(t+n,r,t+n,r+o,i),e.arcTo(t+n,r+o,t,r+o,i),e.arcTo(t,r+o,t,r,i),e.arcTo(t,r,t+n,r,i),e.closePath()}function iO(e,{padding:t,border:r,width:n,height:o,top:i,left:a}){let l=n-r.left-r.right-t.left-t.right,s=o-t.top-t.bottom-r.top-r.bottom,u=a+r.left+t.left,c=i+r.top+t.top;return e==="top"?u+=l/2:e==="right"?(u+=l,c+=s/2):e==="bottom"?(u+=l/2,c+=s):e==="left"?c+=s/2:e==="center"&&(u+=l/2,c+=s/2),{x:u,y:c}}function aO(e,t,{margin:r,border:n,padding:o},i,a){let l=f=>0,s=0,u=0,c=a?1:.5,d=a?i*2:0;return e==="padding"?l=f=>o[f]*c+d:e==="border"?l=f=>o[f]+n[f]*c+d:e==="margin"&&(l=f=>o[f]+n[f]+r[f]*c+d),t==="top"?u=-l("top"):t==="right"?s=l("right"):t==="bottom"?u=l("bottom"):t==="left"&&(s=-l("left")),{offsetX:s,offsetY:u}}function lO(e,t){return Math.abs(e.x-t.x)<Math.abs(e.w+t.w)/2&&Math.abs(e.y-t.y)<Math.abs(e.h+t.h)/2}function sO(e,t,r){return e==="top"?t.y=r.y-r.h-Er:e==="right"?t.x=r.x+r.w/2+Er+t.w/2:e==="bottom"?t.y=r.y+r.h+Er:e==="left"&&(t.x=r.x-r.w/2-Er-t.w/2),{x:t.x,y:t.y}}function Db(e,t,{x:r,y:n,w:o,h:i},a){return Dh(e,{x:r,y:n,w:o,h:i,r:3}),e.fillStyle=`${Sn[t]}dd`,e.fill(),e.strokeStyle=Sn[t],e.stroke(),e.fillStyle=Sn.text,e.fillText(a,r,n),Dh(e,{x:r,y:n,w:o,h:i,r:3}),e.fillStyle=`${Sn[t]}dd`,e.fill(),e.strokeStyle=Sn[t],e.stroke(),e.fillStyle=Sn.text,e.fillText(a,r,n),{x:r,y:n,w:o,h:i}}function Pb(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";let r=e.measureText(t),n=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent,o=r.width+Er*2,i=n+Er*2;return{w:o,h:i}}function uO(e,t,{type:r,position:n="center",text:o},i,a=!1){let{x:l,y:s}=iO(n,t),{offsetX:u,offsetY:c}=aO(r,n,t,Er+1,a);l+=u,s+=c;let{w:d,h:f}=Pb(e,o);if(i&&lO({x:l,y:s,w:d,h:f},i)){let p=sO(n,{x:l,y:s,w:d},i);l=p.x,s=p.y}return Db(e,r,{x:l,y:s,w:d,h:f},o)}function cO(e,{w:t,h:r}){let n=t*.5+Er,o=r*.5+Er;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*o}}function dO(e,t,{type:r,text:n}){let{floatingAlignment:o,extremities:i}=t,a=i[o.x],l=i[o.y],{w:s,h:u}=Pb(e,n),{offsetX:c,offsetY:d}=cO(o,{w:s,h:u});return a+=c,l+=d,Db(e,r,{x:a,y:l,w:s,h:u},n)}function yo(e,t,r,n){let o=[];r.forEach((i,a)=>{let l=n&&i.position==="center"?dO(e,t,i):uO(e,t,i,o[a-1],n);o[a]=l})}function fO(e,t,r,n){let o=r.reduce((i,a)=>{var l;return Object.prototype.hasOwnProperty.call(i,a.position)||(i[a.position]=[]),(l=i[a.position])==null||l.push(a),i},{});o.top&&yo(e,t,o.top,n),o.right&&yo(e,t,o.right,n),o.bottom&&yo(e,t,o.bottom,n),o.left&&yo(e,t,o.left,n),o.center&&yo(e,t,o.center,n)}var Wa={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},Ph=30;function wt(e){return parseInt(e.replace("px",""),10)}function An(e){return Number.isInteger(e)?e:e.toFixed(2)}function Id(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function pO(e){let t={top:Bt.window.scrollY,bottom:Bt.window.scrollY+Bt.window.innerHeight,left:Bt.window.scrollX,right:Bt.window.scrollX+Bt.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 hO(e){let t=Bt.getComputedStyle(e),{top:r,left:n,right:o,bottom:i,width:a,height:l}=e.getBoundingClientRect(),{marginTop:s,marginBottom:u,marginLeft:c,marginRight:d,paddingTop:f,paddingBottom:p,paddingLeft:m,paddingRight:y,borderBottomWidth:S,borderTopWidth:b,borderLeftWidth:v,borderRightWidth:x}=t;r=r+Bt.window.scrollY,n=n+Bt.window.scrollX,i=i+Bt.window.scrollY,o=o+Bt.window.scrollX;let C={top:wt(s),bottom:wt(u),left:wt(c),right:wt(d)},A={top:wt(f),bottom:wt(p),left:wt(m),right:wt(y)},$={top:wt(b),bottom:wt(S),left:wt(v),right:wt(x)},w={top:r-C.top,bottom:i+C.bottom,left:n-C.left,right:o+C.right};return{margin:C,padding:A,border:$,top:r,left:n,bottom:i,right:o,width:a,height:l,extremities:w,floatingAlignment:pO(w)}}function gO(e,{margin:t,width:r,height:n,top:o,left:i,bottom:a,right:l}){let s=n+t.bottom+t.top;e.fillStyle=Wa.margin,e.fillRect(i,o-t.top,r,t.top),e.fillRect(l,o-t.top,t.right,s),e.fillRect(i,a,r,t.bottom),e.fillRect(i-t.left,o-t.top,t.left,s);let u=[{type:"margin",text:An(t.top),position:"top"},{type:"margin",text:An(t.right),position:"right"},{type:"margin",text:An(t.bottom),position:"bottom"},{type:"margin",text:An(t.left),position:"left"}];return Id(u)}function mO(e,{padding:t,border:r,width:n,height:o,top:i,left:a,bottom:l,right:s}){let u=n-r.left-r.right,c=o-t.top-t.bottom-r.top-r.bottom;e.fillStyle=Wa.padding,e.fillRect(a+r.left,i+r.top,u,t.top),e.fillRect(s-t.right-r.right,i+t.top+r.top,t.right,c),e.fillRect(a+r.left,l-t.bottom-r.bottom,u,t.bottom),e.fillRect(a+r.left,i+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 Id(d)}function yO(e,{border:t,width:r,height:n,top:o,left:i,bottom:a,right:l}){let s=n-t.top-t.bottom;e.fillStyle=Wa.border,e.fillRect(i,o,r,t.top),e.fillRect(i,a-t.bottom,r,t.bottom),e.fillRect(i,o+t.top,t.left,s),e.fillRect(l-t.right,o+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 Id(u)}function bO(e,{padding:t,border:r,width:n,height:o,top:i,left:a}){let l=n-r.left-r.right-t.left-t.right,s=o-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=Wa.content,e.fillRect(a+r.left+t.left,i+r.top+t.top,l,s),[{type:"content",position:"center",text:`${An(l)} x ${An(s)}`}]}function EO(e){return t=>{if(e&&t){let r=hO(e),n=gO(t,r),o=mO(t,r),i=yO(t,r),a=bO(t,r),l=r.width<=Ph*3||r.height<=Ph;fO(t,r,[...a,...o,...i,...n],l)}}}function vO(e){rO(EO(e))}const{global:SO}=__STORYBOOK_MODULE_GLOBAL__;var xO=(e,t)=>{let r=SO.document.elementFromPoint(e,t),n=o=>{if(o&&o.shadowRoot){let i=o.shadowRoot.elementFromPoint(e,t);return o.isEqualNode(i)?o:i.shadowRoot?n(i):i}return o};return n(r)||r},Ih,Ri={x:0,y:0};function Fh(e,t){Ih=xO(e,t),vO(Ih)}var $O=(e,t)=>{let{measureEnabled:r}=t.globals||{};return Rh(()=>{if(typeof globalThis.document>"u")return;let n=o=>{window.requestAnimationFrame(()=>{o.stopPropagation(),Ri.x=o.clientX,Ri.y=o.clientY})};return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),Rh(()=>{let n=i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),Fh(i.clientX,i.clientY)})},o=()=>{window.requestAnimationFrame(()=>{nO()})};return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),tO(),globalThis.window.addEventListener("resize",o),Fh(Ri.x,Ri.y)),()=>{globalThis.window.removeEventListener("resize",o),oO()}},[r,t.viewMode]),e()},ky;(ky=globalThis.FEATURES)!=null&&ky.measure;const{useEffect:wO,useMemo:CO}=__STORYBOOK_MODULE_PREVIEW_API__,{global:ea}=__STORYBOOK_MODULE_GLOBAL__;var Lh=e=>{(Array.isArray(e)?e:[e]).forEach(_O)},_O=e=>{let t=typeof e=="string"?e:e.join(""),r=ea.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},TO=(e,t)=>{let r=ea.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=ea.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,ea.document.head.appendChild(n)}};function AO(e){return At`
|
|
171
|
+
${e} body {
|
|
172
|
+
outline: 1px solid #2980b9 !important;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
${e} article {
|
|
176
|
+
outline: 1px solid #3498db !important;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
${e} nav {
|
|
180
|
+
outline: 1px solid #0088c3 !important;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
${e} aside {
|
|
184
|
+
outline: 1px solid #33a0ce !important;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
${e} section {
|
|
188
|
+
outline: 1px solid #66b8da !important;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
${e} header {
|
|
192
|
+
outline: 1px solid #99cfe7 !important;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
${e} footer {
|
|
196
|
+
outline: 1px solid #cce7f3 !important;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
${e} h1 {
|
|
200
|
+
outline: 1px solid #162544 !important;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
${e} h2 {
|
|
204
|
+
outline: 1px solid #314e6e !important;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
${e} h3 {
|
|
208
|
+
outline: 1px solid #3e5e85 !important;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
${e} h4 {
|
|
212
|
+
outline: 1px solid #449baf !important;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
${e} h5 {
|
|
216
|
+
outline: 1px solid #c7d1cb !important;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
${e} h6 {
|
|
220
|
+
outline: 1px solid #4371d0 !important;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
${e} main {
|
|
224
|
+
outline: 1px solid #2f4f90 !important;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
${e} address {
|
|
228
|
+
outline: 1px solid #1a2c51 !important;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
${e} div {
|
|
232
|
+
outline: 1px solid #036cdb !important;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
${e} p {
|
|
236
|
+
outline: 1px solid #ac050b !important;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
${e} hr {
|
|
240
|
+
outline: 1px solid #ff063f !important;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
${e} pre {
|
|
244
|
+
outline: 1px solid #850440 !important;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
${e} blockquote {
|
|
248
|
+
outline: 1px solid #f1b8e7 !important;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
${e} ol {
|
|
252
|
+
outline: 1px solid #ff050c !important;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
${e} ul {
|
|
256
|
+
outline: 1px solid #d90416 !important;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
${e} li {
|
|
260
|
+
outline: 1px solid #d90416 !important;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
${e} dl {
|
|
264
|
+
outline: 1px solid #fd3427 !important;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
${e} dt {
|
|
268
|
+
outline: 1px solid #ff0043 !important;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
${e} dd {
|
|
272
|
+
outline: 1px solid #e80174 !important;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
${e} figure {
|
|
276
|
+
outline: 1px solid #ff00bb !important;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
${e} figcaption {
|
|
280
|
+
outline: 1px solid #bf0032 !important;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
${e} table {
|
|
284
|
+
outline: 1px solid #00cc99 !important;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
${e} caption {
|
|
288
|
+
outline: 1px solid #37ffc4 !important;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
${e} thead {
|
|
292
|
+
outline: 1px solid #98daca !important;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
${e} tbody {
|
|
296
|
+
outline: 1px solid #64a7a0 !important;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
${e} tfoot {
|
|
300
|
+
outline: 1px solid #22746b !important;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
${e} tr {
|
|
304
|
+
outline: 1px solid #86c0b2 !important;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
${e} th {
|
|
308
|
+
outline: 1px solid #a1e7d6 !important;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
${e} td {
|
|
312
|
+
outline: 1px solid #3f5a54 !important;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
${e} col {
|
|
316
|
+
outline: 1px solid #6c9a8f !important;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
${e} colgroup {
|
|
320
|
+
outline: 1px solid #6c9a9d !important;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
${e} button {
|
|
324
|
+
outline: 1px solid #da8301 !important;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
${e} datalist {
|
|
328
|
+
outline: 1px solid #c06000 !important;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
${e} fieldset {
|
|
332
|
+
outline: 1px solid #d95100 !important;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
${e} form {
|
|
336
|
+
outline: 1px solid #d23600 !important;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
${e} input {
|
|
340
|
+
outline: 1px solid #fca600 !important;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
${e} keygen {
|
|
344
|
+
outline: 1px solid #b31e00 !important;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
${e} label {
|
|
348
|
+
outline: 1px solid #ee8900 !important;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
${e} legend {
|
|
352
|
+
outline: 1px solid #de6d00 !important;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
${e} meter {
|
|
356
|
+
outline: 1px solid #e8630c !important;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
${e} optgroup {
|
|
360
|
+
outline: 1px solid #b33600 !important;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
${e} option {
|
|
364
|
+
outline: 1px solid #ff8a00 !important;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
${e} output {
|
|
368
|
+
outline: 1px solid #ff9619 !important;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
${e} progress {
|
|
372
|
+
outline: 1px solid #e57c00 !important;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
${e} select {
|
|
376
|
+
outline: 1px solid #e26e0f !important;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
${e} textarea {
|
|
380
|
+
outline: 1px solid #cc5400 !important;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
${e} details {
|
|
384
|
+
outline: 1px solid #33848f !important;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
${e} summary {
|
|
388
|
+
outline: 1px solid #60a1a6 !important;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
${e} command {
|
|
392
|
+
outline: 1px solid #438da1 !important;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
${e} menu {
|
|
396
|
+
outline: 1px solid #449da6 !important;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
${e} del {
|
|
400
|
+
outline: 1px solid #bf0000 !important;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
${e} ins {
|
|
404
|
+
outline: 1px solid #400000 !important;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
${e} img {
|
|
408
|
+
outline: 1px solid #22746b !important;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
${e} iframe {
|
|
412
|
+
outline: 1px solid #64a7a0 !important;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
${e} embed {
|
|
416
|
+
outline: 1px solid #98daca !important;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
${e} object {
|
|
420
|
+
outline: 1px solid #00cc99 !important;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
${e} param {
|
|
424
|
+
outline: 1px solid #37ffc4 !important;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
${e} video {
|
|
428
|
+
outline: 1px solid #6ee866 !important;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
${e} audio {
|
|
432
|
+
outline: 1px solid #027353 !important;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
${e} source {
|
|
436
|
+
outline: 1px solid #012426 !important;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
${e} canvas {
|
|
440
|
+
outline: 1px solid #a2f570 !important;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
${e} track {
|
|
444
|
+
outline: 1px solid #59a600 !important;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
${e} map {
|
|
448
|
+
outline: 1px solid #7be500 !important;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
${e} area {
|
|
452
|
+
outline: 1px solid #305900 !important;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
${e} a {
|
|
456
|
+
outline: 1px solid #ff62ab !important;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
${e} em {
|
|
460
|
+
outline: 1px solid #800b41 !important;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
${e} strong {
|
|
464
|
+
outline: 1px solid #ff1583 !important;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
${e} i {
|
|
468
|
+
outline: 1px solid #803156 !important;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
${e} b {
|
|
472
|
+
outline: 1px solid #cc1169 !important;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
${e} u {
|
|
476
|
+
outline: 1px solid #ff0430 !important;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
${e} s {
|
|
480
|
+
outline: 1px solid #f805e3 !important;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
${e} small {
|
|
484
|
+
outline: 1px solid #d107b2 !important;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
${e} abbr {
|
|
488
|
+
outline: 1px solid #4a0263 !important;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
${e} q {
|
|
492
|
+
outline: 1px solid #240018 !important;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
${e} cite {
|
|
496
|
+
outline: 1px solid #64003c !important;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
${e} dfn {
|
|
500
|
+
outline: 1px solid #b4005a !important;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
${e} sub {
|
|
504
|
+
outline: 1px solid #dba0c8 !important;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
${e} sup {
|
|
508
|
+
outline: 1px solid #cc0256 !important;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
${e} time {
|
|
512
|
+
outline: 1px solid #d6606d !important;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
${e} code {
|
|
516
|
+
outline: 1px solid #e04251 !important;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
${e} kbd {
|
|
520
|
+
outline: 1px solid #5e001f !important;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
${e} samp {
|
|
524
|
+
outline: 1px solid #9c0033 !important;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
${e} var {
|
|
528
|
+
outline: 1px solid #d90047 !important;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
${e} mark {
|
|
532
|
+
outline: 1px solid #ff0053 !important;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
${e} bdi {
|
|
536
|
+
outline: 1px solid #bf3668 !important;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
${e} bdo {
|
|
540
|
+
outline: 1px solid #6f1400 !important;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
${e} ruby {
|
|
544
|
+
outline: 1px solid #ff7b93 !important;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
${e} rt {
|
|
548
|
+
outline: 1px solid #ff2f54 !important;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
${e} rp {
|
|
552
|
+
outline: 1px solid #803e49 !important;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
${e} span {
|
|
556
|
+
outline: 1px solid #cc2643 !important;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
${e} br {
|
|
560
|
+
outline: 1px solid #db687d !important;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
${e} wbr {
|
|
564
|
+
outline: 1px solid #db175b !important;
|
|
565
|
+
}`}var OO=(e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[Qw]),o=t.viewMode==="docs",i=CO(()=>AO(o?'[data-story-block="true"]':".sb-show-main"),[t]);return wO(()=>{let a=o?`addon-outline-docs-${t.id}`:"addon-outline";return n?TO(a,i):Lh(a),()=>{Lh(a)}},[n,i,t]),e()},Ny;(Ny=globalThis.FEATURES)!=null&&Ny.outline;const{clearAllMocks:gq,fn:mq,isMockFunction:yq,resetAllMocks:bq,restoreAllMocks:Eq,uninstrumentedUserEvent:vq,within:Sq}=__STORYBOOK_MODULE_TEST__;var Mn=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),kh=(e,t)=>{let r=Mn(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},Di=(e,t)=>`${kh(e,"kind")}${t?`--${kh(t,"name")}`:""}`,ts={exports:{}},bo={};var Nh;function RO(){if(Nh)return bo;Nh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,i){var a=null;if(i!==void 0&&(a=""+i),o.key!==void 0&&(a=""+o.key),"key"in o){i={};for(var l in o)l!=="key"&&(i[l]=o[l])}else i=o;return o=i.ref,{$$typeof:e,type:n,key:a,ref:o!==void 0?o:null,props:i}}return bo.Fragment=t,bo.jsx=r,bo.jsxs=r,bo}var Mh;function DO(){return Mh||(Mh=1,ts.exports=RO()),ts.exports}var ce=DO(),rs={exports:{}},ne={};var Bh;function PO(){if(Bh)return ne;Bh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),f=Symbol.iterator;function p(F){return F===null||typeof F!="object"?null:(F=f&&F[f]||F["@@iterator"],typeof F=="function"?F:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,S={};function b(F,H,W){this.props=F,this.context=H,this.refs=S,this.updater=W||m}b.prototype.isReactComponent={},b.prototype.setState=function(F,H){if(typeof F!="object"&&typeof F!="function"&&F!=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,F,H,"setState")},b.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function v(){}v.prototype=b.prototype;function x(F,H,W){this.props=F,this.context=H,this.refs=S,this.updater=W||m}var C=x.prototype=new v;C.constructor=x,y(C,b.prototype),C.isPureReactComponent=!0;var A=Array.isArray;function $(){}var w={H:null,A:null,T:null,S:null},_=Object.prototype.hasOwnProperty;function O(F,H,W){var V=W.ref;return{$$typeof:e,type:F,key:H,ref:V!==void 0?V:null,props:W}}function T(F,H){return O(F.type,H,F.props)}function I(F){return typeof F=="object"&&F!==null&&F.$$typeof===e}function D(F){var H={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(W){return H[W]})}var M=/\/+/g;function k(F,H){return typeof F=="object"&&F!==null&&F.key!=null?D(""+F.key):H.toString(36)}function R(F){switch(F.status){case"fulfilled":return F.value;case"rejected":throw F.reason;default:switch(typeof F.status=="string"?F.then($,$):(F.status="pending",F.then(function(H){F.status==="pending"&&(F.status="fulfilled",F.value=H)},function(H){F.status==="pending"&&(F.status="rejected",F.reason=H)})),F.status){case"fulfilled":return F.value;case"rejected":throw F.reason}}throw F}function j(F,H,W,V,K){var q=typeof F;(q==="undefined"||q==="boolean")&&(F=null);var X=!1;if(F===null)X=!0;else switch(q){case"bigint":case"string":case"number":X=!0;break;case"object":switch(F.$$typeof){case e:case t:X=!0;break;case c:return X=F._init,j(X(F._payload),H,W,V,K)}}if(X)return K=K(F),X=V===""?"."+k(F,0):V,A(K)?(W="",X!=null&&(W=X.replace(M,"$&/")+"/"),j(K,H,W,"",function(Oe){return Oe})):K!=null&&(I(K)&&(K=T(K,W+(K.key==null||F&&F.key===K.key?"":(""+K.key).replace(M,"$&/")+"/")+X)),H.push(K)),1;X=0;var te=V===""?".":V+":";if(A(F))for(var J=0;J<F.length;J++)V=F[J],q=te+k(V,J),X+=j(V,H,W,q,K);else if(J=p(F),typeof J=="function")for(F=J.call(F),J=0;!(V=F.next()).done;)V=V.value,q=te+k(V,J++),X+=j(V,H,W,q,K);else if(q==="object"){if(typeof F.then=="function")return j(R(F),H,W,V,K);throw H=String(F),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return X}function L(F,H,W){if(F==null)return F;var V=[],K=0;return j(F,V,"","",function(q){return H.call(W,q,K++)}),V}function z(F){if(F._status===-1){var H=F._result;H=H(),H.then(function(W){(F._status===0||F._status===-1)&&(F._status=1,F._result=W)},function(W){(F._status===0||F._status===-1)&&(F._status=2,F._result=W)}),F._status===-1&&(F._status=0,F._result=H)}if(F._status===1)return F._result.default;throw F._result}var U=typeof reportError=="function"?reportError:function(F){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof F=="object"&&F!==null&&typeof F.message=="string"?String(F.message):String(F),error:F});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",F);return}console.error(F)},B={map:L,forEach:function(F,H,W){L(F,function(){H.apply(this,arguments)},W)},count:function(F){var H=0;return L(F,function(){H++}),H},toArray:function(F){return L(F,function(H){return H})||[]},only:function(F){if(!I(F))throw Error("React.Children.only expected to receive a single React element child.");return F}};return ne.Activity=d,ne.Children=B,ne.Component=b,ne.Fragment=r,ne.Profiler=o,ne.PureComponent=x,ne.StrictMode=n,ne.Suspense=s,ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,ne.__COMPILER_RUNTIME={__proto__:null,c:function(F){return w.H.useMemoCache(F)}},ne.cache=function(F){return function(){return F.apply(null,arguments)}},ne.cacheSignal=function(){return null},ne.cloneElement=function(F,H,W){if(F==null)throw Error("The argument must be a React element, but you passed "+F+".");var V=y({},F.props),K=F.key;if(H!=null)for(q in H.key!==void 0&&(K=""+H.key),H)!_.call(H,q)||q==="key"||q==="__self"||q==="__source"||q==="ref"&&H.ref===void 0||(V[q]=H[q]);var q=arguments.length-2;if(q===1)V.children=W;else if(1<q){for(var X=Array(q),te=0;te<q;te++)X[te]=arguments[te+2];V.children=X}return O(F.type,K,V)},ne.createContext=function(F){return F={$$typeof:a,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null},F.Provider=F,F.Consumer={$$typeof:i,_context:F},F},ne.createElement=function(F,H,W){var V,K={},q=null;if(H!=null)for(V in H.key!==void 0&&(q=""+H.key),H)_.call(H,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(K[V]=H[V]);var X=arguments.length-2;if(X===1)K.children=W;else if(1<X){for(var te=Array(X),J=0;J<X;J++)te[J]=arguments[J+2];K.children=te}if(F&&F.defaultProps)for(V in X=F.defaultProps,X)K[V]===void 0&&(K[V]=X[V]);return O(F,q,K)},ne.createRef=function(){return{current:null}},ne.forwardRef=function(F){return{$$typeof:l,render:F}},ne.isValidElement=I,ne.lazy=function(F){return{$$typeof:c,_payload:{_status:-1,_result:F},_init:z}},ne.memo=function(F,H){return{$$typeof:u,type:F,compare:H===void 0?null:H}},ne.startTransition=function(F){var H=w.T,W={};w.T=W;try{var V=F(),K=w.S;K!==null&&K(W,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then($,U)}catch(q){U(q)}finally{H!==null&&W.types!==null&&(H.types=W.types),w.T=H}},ne.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},ne.use=function(F){return w.H.use(F)},ne.useActionState=function(F,H,W){return w.H.useActionState(F,H,W)},ne.useCallback=function(F,H){return w.H.useCallback(F,H)},ne.useContext=function(F){return w.H.useContext(F)},ne.useDebugValue=function(){},ne.useDeferredValue=function(F,H){return w.H.useDeferredValue(F,H)},ne.useEffect=function(F,H){return w.H.useEffect(F,H)},ne.useEffectEvent=function(F){return w.H.useEffectEvent(F)},ne.useId=function(){return w.H.useId()},ne.useImperativeHandle=function(F,H,W){return w.H.useImperativeHandle(F,H,W)},ne.useInsertionEffect=function(F,H){return w.H.useInsertionEffect(F,H)},ne.useLayoutEffect=function(F,H){return w.H.useLayoutEffect(F,H)},ne.useMemo=function(F,H){return w.H.useMemo(F,H)},ne.useOptimistic=function(F,H){return w.H.useOptimistic(F,H)},ne.useReducer=function(F,H,W){return w.H.useReducer(F,H,W)},ne.useRef=function(F){return w.H.useRef(F)},ne.useState=function(F){return w.H.useState(F)},ne.useSyncExternalStore=function(F,H,W){return w.H.useSyncExternalStore(F,H,W)},ne.useTransition=function(){return w.H.useTransition()},ne.version="19.2.3",ne}var jh;function Fd(){return jh||(jh=1,rs.exports=PO()),rs.exports}var h=Fd();const g=vd(h),IO=Zw({__proto__:null,default:g},[h]);var zt=e=>`control-${e.replace(/\s+/g,"-")}`,Va=e=>`set-${e.replace(/\s+/g,"-")}`;function Ve(){return Ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ve.apply(null,arguments)}function FO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uo(e,t){return Uo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Uo(e,t)}function LO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Uo(e,t)}function sc(e){return sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},sc(e)}function kO(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch(t){return typeof e=="function"}}function Ib(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Ib=function(){return!!e})()}function NO(e,t,r){if(Ib())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Uo(o,r.prototype),o}function uc(e){var t=typeof Map=="function"?new Map:void 0;return uc=function(r){if(r===null||!kO(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return NO(r,arguments,sc(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Uo(n,r)},uc(e)}var tr=(function(e){LO(t,e);function t(r){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this,FO(n)}return t})(uc(Error));function ns(e){return Math.round(e*255)}function MO(e,t,r){return ns(e)+","+ns(t)+","+ns(r)}function ba(e,t,r,n){if(n===void 0&&(n=MO),t===0)return n(r,r,r);var o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*t,a=i*(1-Math.abs(o%2-1)),l=0,s=0,u=0;o>=0&&o<1?(l=i,s=a):o>=1&&o<2?(l=a,s=i):o>=2&&o<3?(s=i,u=a):o>=3&&o<4?(s=a,u=i):o>=4&&o<5?(l=a,u=i):o>=5&&o<6&&(l=i,u=a);var c=r-i/2,d=l+c,f=s+c,p=u+c;return n(d,f,p)}var Hh={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 BO(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Hh[t]?"#"+Hh[t]:e}var jO=/^#[a-fA-F0-9]{6}$/,HO=/^#[a-fA-F0-9]{8}$/,UO=/^#[a-fA-F0-9]{3}$/,zO=/^#[a-fA-F0-9]{4}$/,os=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,KO=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,GO=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,WO=/^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 Bn(e){if(typeof e!="string")throw new tr(3);var t=BO(e);if(t.match(jO))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(HO)){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(UO))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(zO)){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 o=os.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=KO.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var a=GO.exec(t);if(a){var l=parseInt(""+a[1],10),s=parseInt(""+a[2],10)/100,u=parseInt(""+a[3],10)/100,c="rgb("+ba(l,s,u)+")",d=os.exec(c);if(!d)throw new tr(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=WO.exec(t.substring(0,50));if(f){var p=parseInt(""+f[1],10),m=parseInt(""+f[2],10)/100,y=parseInt(""+f[3],10)/100,S="rgb("+ba(p,m,y)+")",b=os.exec(S);if(!b)throw new tr(4,t,S);return{red:parseInt(""+b[1],10),green:parseInt(""+b[2],10),blue:parseInt(""+b[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new tr(5)}function VO(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),i=Math.min(t,r,n),a=(o+i)/2;if(o===i)return e.alpha!==void 0?{hue:0,saturation:0,lightness:a,alpha:e.alpha}:{hue:0,saturation:0,lightness:a};var l,s=o-i,u=a>.5?s/(2-o-i):s/(o+i);switch(o){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;default:l=(t-r)/s+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:a,alpha:e.alpha}:{hue:l,saturation:u,lightness:a}}function Mr(e){return VO(Bn(e))}var qO=function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},cc=qO;function Xr(e){var t=e.toString(16);return t.length===1?"0"+t:t}function is(e){return Xr(Math.round(e*255))}function YO(e,t,r){return cc("#"+is(e)+is(t)+is(r))}function Fb(e,t,r){return ba(e,t,r,YO)}function XO(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return Fb(e.hue,e.saturation,e.lightness);throw new tr(1)}function JO(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Fb(e.hue,e.saturation,e.lightness):"rgba("+ba(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new tr(2)}function dc(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return cc("#"+Xr(e)+Xr(t)+Xr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return cc("#"+Xr(e.red)+Xr(e.green)+Xr(e.blue));throw new tr(6)}function ln(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=Bn(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?dc(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?dc(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new tr(7)}var ZO=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},QO=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},eR=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},tR=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Br(e){if(typeof e!="object")throw new tr(8);if(QO(e))return ln(e);if(ZO(e))return dc(e);if(tR(e))return JO(e);if(eR(e))return XO(e);throw new tr(8)}function Lb(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):Lb(e,t,n)}}function St(e){return Lb(e,e.length,[])}function rR(e,t){if(t==="transparent")return t;var r=Mr(t);return Br(Ve({},r,{hue:r.hue+parseFloat(e)}))}St(rR);function eo(e,t,r){return Math.max(e,Math.min(t,r))}function nR(e,t){if(t==="transparent")return t;var r=Mr(t);return Br(Ve({},r,{lightness:eo(0,1,r.lightness-parseFloat(e))}))}var oR=St(nR),Ze=oR;function iR(e,t){if(t==="transparent")return t;var r=Mr(t);return Br(Ve({},r,{saturation:eo(0,1,r.saturation-parseFloat(e))}))}St(iR);function aR(e,t){if(t==="transparent")return t;var r=Mr(t);return Br(Ve({},r,{lightness:eo(0,1,r.lightness+parseFloat(e))}))}var lR=St(aR),ta=lR;function sR(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=Bn(t),o=Ve({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),i=Bn(r),a=Ve({},i,{alpha:typeof i.alpha=="number"?i.alpha:1}),l=o.alpha-a.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,c=1+s*l,d=(u/c+1)/2,f=1-d,p={red:Math.floor(o.red*d+a.red*f),green:Math.floor(o.green*d+a.green*f),blue:Math.floor(o.blue*d+a.blue*f),alpha:o.alpha*parseFloat(e)+a.alpha*(1-parseFloat(e))};return ln(p)}var uR=St(sR),kb=uR;function cR(e,t){if(t==="transparent")return t;var r=Bn(t),n=typeof r.alpha=="number"?r.alpha:1,o=Ve({},r,{alpha:eo(0,1,(n*100+parseFloat(e)*100)/100)});return ln(o)}var dR=St(cR),fR=dR;function pR(e,t){if(t==="transparent")return t;var r=Mr(t);return Br(Ve({},r,{saturation:eo(0,1,r.saturation+parseFloat(e))}))}St(pR);function hR(e,t){return t==="transparent"?t:Br(Ve({},Mr(t),{hue:parseFloat(e)}))}St(hR);function gR(e,t){return t==="transparent"?t:Br(Ve({},Mr(t),{lightness:parseFloat(e)}))}St(gR);function mR(e,t){return t==="transparent"?t:Br(Ve({},Mr(t),{saturation:parseFloat(e)}))}St(mR);function yR(e,t){return t==="transparent"?t:kb(parseFloat(e),"rgb(0, 0, 0)",t)}St(yR);function bR(e,t){return t==="transparent"?t:kb(parseFloat(e),"rgb(255, 255, 255)",t)}St(bR);function ER(e,t){if(t==="transparent")return t;var r=Bn(t),n=typeof r.alpha=="number"?r.alpha:1,o=Ve({},r,{alpha:eo(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return ln(o)}var vR=St(ER),vr=vR,Q={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"},br={app:"#F6F9FC",bar:Q.lightest,content:Q.lightest,preview:Q.lightest,gridCellSize:10,positive:"#F1FFEB",warning:"#FFF9EB",negative:"#FFF0EB",critical:"#D13800"},Ht={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}},fc={light:{fgColor:{default:Q.darkest,muted:Q.dark,accent:Q.secondary,inverse:Q.lightest,positive:"#427C27",warning:"#7A4100",negative:"#C23400",critical:"#FFFFFF"},bgColor:{default:Q.lightest,muted:br.app,positive:"#F1FFEB",warning:"#FFF7EB",negative:"#FFF0EB",critical:"#D13800"},borderColor:{default:Q.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"}}},SR={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#479DFF",appBg:"#1B1C1D",appContentBg:"#222325",appHoverBg:"#233952",appPreviewBg:Q.lightest,appBorderColor:"hsl(0 0% 100% / 0.1)",appBorderRadius:4,fontBase:Ht.fonts.base,fontCode:Ht.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},xR=SR,$R={base:"light",colorPrimary:Q.primary,colorSecondary:Q.secondary,appBg:br.app,appContentBg:Q.lightest,appHoverBg:"#DBECFF",appPreviewBg:Q.lightest,appBorderColor:Q.border,appBorderRadius:4,fontBase:Ht.fonts.base,fontCode:Ht.fonts.mono,textColor:Q.darkest,textInverseColor:Q.lightest,textMutedColor:Q.dark,barTextColor:Q.dark,barHoverColor:"#005CC7",barSelectedColor:"#0063D6",barBg:Q.lightest,buttonBg:br.app,buttonBorder:Q.medium,booleanBg:Q.mediumlight,booleanSelectedBg:Q.lightest,inputBg:Q.lightest,inputBorder:Q.border,inputTextColor:Q.darkest,inputBorderRadius:4},pc=$R;const{logger:wR}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:CR}=__STORYBOOK_MODULE_GLOBAL__;var{window:as}=CR,_R=e=>({color:e}),TR=e=>typeof e!="string"?(wR.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,AR=e=>!/(gradient|var|calc)/.test(e),OR=(e,t)=>e==="darken"?ln(`${Ze(1,t)}`,.95):e==="lighten"?ln(`${ta(1,t)}`,.95):t,RR=e=>t=>{if(!TR(t)||!AR(t))return t;try{return OR(e,t)}catch(r){return t}},Ld=RR("lighten"),kd=()=>!as||!as.matchMedia?"light":as.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",Uh={light:pc,dark:xR},ra=kd(),nn=P(E({},Uh),{normal:Uh[ra]}),Nb=(e={base:ra},t)=>{let r=P(E(E(E({},nn[ra]),nn[e.base]||{}),e),{base:nn[e.base]?e.base:ra});return P(E(E({},t),r),{barSelectedColor:e.barSelectedColor||r.colorSecondary})},DR=tt({"../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,o=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,l=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,m=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,S=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function C($){if(typeof $=="object"&&$!==null){var w=$.$$typeof;switch(w){case r:switch($=$.type,$){case u:case c:case o:case a:case i:case f:return $;default:switch($=$&&$.$$typeof,$){case s:case d:case y:case m:case l:return $;default:return w}}case n:return w}}}function A($){return C($)===c}e.AsyncMode=u,e.ConcurrentMode=c,e.ContextConsumer=s,e.ContextProvider=l,e.Element=r,e.ForwardRef=d,e.Fragment=o,e.Lazy=y,e.Memo=m,e.Portal=n,e.Profiler=a,e.StrictMode=i,e.Suspense=f,e.isAsyncMode=function($){return A($)||C($)===u},e.isConcurrentMode=A,e.isContextConsumer=function($){return C($)===s},e.isContextProvider=function($){return C($)===l},e.isElement=function($){return typeof $=="object"&&$!==null&&$.$$typeof===r},e.isForwardRef=function($){return C($)===d},e.isFragment=function($){return C($)===o},e.isLazy=function($){return C($)===y},e.isMemo=function($){return C($)===m},e.isPortal=function($){return C($)===n},e.isProfiler=function($){return C($)===a},e.isStrictMode=function($){return C($)===i},e.isSuspense=function($){return C($)===f},e.isValidElementType=function($){return typeof $=="string"||typeof $=="function"||$===o||$===c||$===a||$===i||$===f||$===p||typeof $=="object"&&$!==null&&($.$$typeof===y||$.$$typeof===m||$.$$typeof===l||$.$$typeof===s||$.$$typeof===d||$.$$typeof===b||$.$$typeof===v||$.$$typeof===x||$.$$typeof===S)},e.typeOf=C}}),PR=tt({"../node_modules/react-is/index.js"(e,t){t.exports=DR()}}),Mb=tt({"../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){var r=PR(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[r.ForwardRef]=i,l[r.Memo]=a;function s(S){return r.isMemo(S)?a:l[S.$$typeof]||n}var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function y(S,b,v){if(typeof b!="string"){if(m){var x=p(b);x&&x!==m&&y(S,x,v)}var C=c(b);d&&(C=C.concat(d(b)));for(var A=s(S),$=s(b),w=0;w<C.length;++w){var _=C[w];if(!o[_]&&!(v&&v[_])&&!($&&$[_])&&!(A&&A[_])){var O=f(b,_);try{u(S,_,O)}catch(T){}}}}return S}t.exports=y}});function IR(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function FR(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var LR=(function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(FR(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=IR(n);try{o.insertRule(r,o.cssRules.length)}catch(i){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Je="-ms-",Ea="-moz-",ye="-webkit-",Bb="comm",Nd="rule",Md="decl",kR="@import",jb="@keyframes",NR="@layer",MR=Math.abs,qa=String.fromCharCode,BR=Object.assign;function jR(e,t){return Ge(e,0)^45?(((t<<2^Ge(e,0))<<2^Ge(e,1))<<2^Ge(e,2))<<2^Ge(e,3):0}function Hb(e){return e.trim()}function HR(e,t){return(e=t.exec(e))?e[0]:e}function be(e,t,r){return e.replace(t,r)}function hc(e,t){return e.indexOf(t)}function Ge(e,t){return e.charCodeAt(t)|0}function zo(e,t,r){return e.slice(t,r)}function Jt(e){return e.length}function Bd(e){return e.length}function Pi(e,t){return t.push(e),e}function UR(e,t){return e.map(t).join("")}var Ya=1,jn=1,Ub=0,ft=0,Fe=0,to="";function Xa(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Ya,column:jn,length:a,return:""}}function Eo(e,t){return BR(Xa("",null,null,"",null,null,0),e,{length:-e.length},t)}function zR(){return Fe}function KR(){return Fe=ft>0?Ge(to,--ft):0,jn--,Fe===10&&(jn=1,Ya--),Fe}function Et(){return Fe=ft<Ub?Ge(to,ft++):0,jn++,Fe===10&&(jn=1,Ya++),Fe}function ir(){return Ge(to,ft)}function na(){return ft}function ni(e,t){return zo(to,e,t)}function Ko(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function zb(e){return Ya=jn=1,Ub=Jt(to=e),ft=0,[]}function Kb(e){return to="",e}function oa(e){return Hb(ni(ft-1,gc(e===91?e+2:e===40?e+1:e)))}function GR(e){for(;(Fe=ir())&&Fe<33;)Et();return Ko(e)>2||Ko(Fe)>3?"":" "}function WR(e,t){for(;--t&&Et()&&!(Fe<48||Fe>102||Fe>57&&Fe<65||Fe>70&&Fe<97););return ni(e,na()+(t<6&&ir()==32&&Et()==32))}function gc(e){for(;Et();)switch(Fe){case e:return ft;case 34:case 39:e!==34&&e!==39&&gc(Fe);break;case 40:e===41&&gc(e);break;case 92:Et();break}return ft}function VR(e,t){for(;Et()&&e+Fe!==57&&!(e+Fe===84&&ir()===47););return"/*"+ni(t,ft-1)+"*"+qa(e===47?e:Et())}function qR(e){for(;!Ko(ir());)Et();return ni(e,ft)}function YR(e){return Kb(ia("",null,null,null,[""],e=zb(e),0,[0],e))}function ia(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,f=0,p=0,m=0,y=1,S=1,b=1,v=0,x="",C=o,A=i,$=n,w=x;S;)switch(m=v,v=Et()){case 40:if(m!=108&&Ge(w,d-1)==58){hc(w+=be(oa(v),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:w+=oa(v);break;case 9:case 10:case 13:case 32:w+=GR(m);break;case 92:w+=WR(na()-1,7);continue;case 47:switch(ir()){case 42:case 47:Pi(XR(VR(Et(),na()),t,r),s);break;default:w+="/"}break;case 123*y:l[u++]=Jt(w)*b;case 125*y:case 59:case 0:switch(v){case 0:case 125:S=0;case 59+c:b==-1&&(w=be(w,/\f/g,"")),p>0&&Jt(w)-d&&Pi(p>32?Kh(w+";",n,r,d-1):Kh(be(w," ","")+";",n,r,d-2),s);break;case 59:w+=";";default:if(Pi($=zh(w,t,r,u,c,o,l,x,C=[],A=[],d),i),v===123)if(c===0)ia(w,t,$,$,C,i,d,l,A);else switch(f===99&&Ge(w,3)===110?100:f){case 100:case 108:case 109:case 115:ia(e,$,$,n&&Pi(zh(e,$,$,0,0,o,l,x,o,C=[],d),A),o,A,d,l,n?C:A);break;default:ia(w,$,$,$,[""],A,0,l,A)}}u=c=p=0,y=b=1,x=w="",d=a;break;case 58:d=1+Jt(w),p=m;default:if(y<1){if(v==123)--y;else if(v==125&&y++==0&&KR()==125)continue}switch(w+=qa(v),v*y){case 38:b=c>0?1:(w+="\f",-1);break;case 44:l[u++]=(Jt(w)-1)*b,b=1;break;case 64:ir()===45&&(w+=oa(Et())),f=ir(),c=d=Jt(x=w+=qR(na())),v++;break;case 45:m===45&&Jt(w)==2&&(y=0)}}return i}function zh(e,t,r,n,o,i,a,l,s,u,c){for(var d=o-1,f=o===0?i:[""],p=Bd(f),m=0,y=0,S=0;m<n;++m)for(var b=0,v=zo(e,d+1,d=MR(y=a[m])),x=e;b<p;++b)(x=Hb(y>0?f[b]+" "+v:be(v,/&\f/g,f[b])))&&(s[S++]=x);return Xa(e,t,r,o===0?Nd:l,s,u,c)}function XR(e,t,r){return Xa(e,t,r,Bb,qa(zR()),zo(e,2,-2),0)}function Kh(e,t,r,n){return Xa(e,t,r,Md,zo(e,0,n),zo(e,n+1,-1),n)}function Dn(e,t){for(var r="",n=Bd(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function JR(e,t,r,n){switch(e.type){case NR:if(e.children.length)break;case kR:case Md:return e.return=e.return||e.value;case Bb:return"";case jb:return e.return=e.value+"{"+Dn(e.children,n)+"}";case Nd:e.value=e.props.join(",")}return Jt(r=Dn(e.children,n))?e.return=e.value+"{"+r+"}":""}function ZR(e){var t=Bd(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}function QR(e){return function(t){t.root||(t=t.return)&&e(t)}}var Gh=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}};function Gb(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var eD=function(e,t,r){for(var n=0,o=0;n=o,o=ir(),n===38&&o===12&&(t[r]=1),!Ko(o);)Et();return ni(e,ft)},tD=function(e,t){var r=-1,n=44;do switch(Ko(n)){case 0:n===38&&ir()===12&&(t[r]=1),e[r]+=eD(ft-1,t,r);break;case 2:e[r]+=oa(n);break;case 4:if(n===44){e[++r]=ir()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=qa(n)}while(n=Et());return e},rD=function(e,t){return Kb(tD(zb(e),t))},Wh=new WeakMap,nD=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Wh.get(r))&&!n){Wh.set(e,!0);for(var o=[],i=rD(t,o),a=r.props,l=0,s=0;l<i.length;l++)for(var u=0;u<a.length;u++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[u]):a[u]+" "+i[l]}}},oD=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function Wb(e,t){switch(jR(e,t)){case 5103:return ye+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ye+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ye+e+Ea+e+Je+e+e;case 6828:case 4268:return ye+e+Je+e+e;case 6165:return ye+e+Je+"flex-"+e+e;case 5187:return ye+e+be(e,/(\w+).+(:[^]+)/,ye+"box-$1$2"+Je+"flex-$1$2")+e;case 5443:return ye+e+Je+"flex-item-"+be(e,/flex-|-self/,"")+e;case 4675:return ye+e+Je+"flex-line-pack"+be(e,/align-content|flex-|-self/,"")+e;case 5548:return ye+e+Je+be(e,"shrink","negative")+e;case 5292:return ye+e+Je+be(e,"basis","preferred-size")+e;case 6060:return ye+"box-"+be(e,"-grow","")+ye+e+Je+be(e,"grow","positive")+e;case 4554:return ye+be(e,/([^-])(transform)/g,"$1"+ye+"$2")+e;case 6187:return be(be(be(e,/(zoom-|grab)/,ye+"$1"),/(image-set)/,ye+"$1"),e,"")+e;case 5495:case 3959:return be(e,/(image-set\([^]*)/,ye+"$1$`$1");case 4968:return be(be(e,/(.+:)(flex-)?(.*)/,ye+"box-pack:$3"+Je+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ye+e+e;case 4095:case 3583:case 4068:case 2532:return be(e,/(.+)-inline(.+)/,ye+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Jt(e)-1-t>6)switch(Ge(e,t+1)){case 109:if(Ge(e,t+4)!==45)break;case 102:return be(e,/(.+:)(.+)-([^]+)/,"$1"+ye+"$2-$3$1"+Ea+(Ge(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~hc(e,"stretch")?Wb(be(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ge(e,t+1)!==115)break;case 6444:switch(Ge(e,Jt(e)-3-(~hc(e,"!important")&&10))){case 107:return be(e,":",":"+ye)+e;case 101:return be(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ye+(Ge(e,14)===45?"inline-":"")+"box$3$1"+ye+"$2$3$1"+Je+"$2box$3")+e}break;case 5936:switch(Ge(e,t+11)){case 114:return ye+e+Je+be(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ye+e+Je+be(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ye+e+Je+be(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ye+e+Je+e+e}return e}var iD=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Md:e.return=Wb(e.value,e.length);break;case jb:return Dn([Eo(e,{value:be(e.value,"@","@"+ye)})],n);case Nd:if(e.length)return UR(e.props,function(o){switch(HR(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Dn([Eo(e,{props:[be(o,/:(read-\w+)/,":"+Ea+"$1")]})],n);case"::placeholder":return Dn([Eo(e,{props:[be(o,/:(plac\w+)/,":"+ye+"input-$1")]}),Eo(e,{props:[be(o,/:(plac\w+)/,":"+Ea+"$1")]}),Eo(e,{props:[be(o,/:(plac\w+)/,Je+"input-$1")]})],n)}return""})}},aD=[iD],Vb=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(m){var y=m.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||aD,o={},i,a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var y=m.getAttribute("data-emotion").split(" "),S=1;S<y.length;S++)o[y[S]]=!0;a.push(m)});var l,s=[nD,oD];{var u,c=[JR,QR(function(m){u.insert(m)})],d=ZR(s.concat(n,c)),f=function(m){return Dn(YR(m),d)};l=function(m,y,S,b){u=S,f(m?m+"{"+y.styles+"}":y.styles),b&&(p.inserted[y.name]=!0)}}var p={key:t,sheet:new LR({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return p.sheet.hydrate(a),p};vt(Mb());var lD=!0;function jd(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Ja=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||lD===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},Za=function(e,t,r){Ja(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function sD(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=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(o){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 uD={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},cD=/[A-Z]|^ms/g,dD=/_EMO_([^_]+?)_([^]*?)_EMO_/g,qb=function(e){return e.charCodeAt(1)===45},Vh=function(e){return e!=null&&typeof e!="boolean"},ls=Gb(function(e){return qb(e)?e:e.replace(cD,"-$&").toLowerCase()}),qh=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(dD,function(r,n,o){return Zt={name:n,styles:o,next:Zt},n})}return uD[e]!==1&&!qb(e)&&typeof t=="number"&&t!==0?t+"px":t};function Go(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 o=r;if(o.anim===1)return Zt={name:o.name,styles:o.styles,next:Zt},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Zt={name:a.name,styles:a.styles,next:Zt},a=a.next;var l=i.styles+";";return l}return fD(e,t,r)}case"function":{if(e!==void 0){var s=Zt,u=r(e);return Zt=s,Go(e,t,u)}break}}var c=r;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function fD(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Go(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?n+=i+"{"+t[l]+"}":Vh(l)&&(n+=ls(i)+":"+qh(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)Vh(a[s])&&(n+=ls(i)+":"+qh(i,a[s])+";");else{var u=Go(e,t,a);switch(i){case"animation":case"animationName":{n+=ls(i)+":"+u+";";break}default:n+=i+"{"+u+"}"}}}return n}var Yh=/label:\s*([^\s;{]+)\s*(;|$)/g,Zt;function oi(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";Zt=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=Go(r,t,i);else{var a=i;o+=a[0]}for(var l=1;l<e.length;l++)if(o+=Go(r,t,e[l]),n){var s=i;o+=s[l]}Yh.lastIndex=0;for(var u="",c;(c=Yh.exec(o))!==null;)u+="-"+c[1];var d=sD(o)+u;return{name:d,styles:o,next:Zt}}var pD=function(e){return e()},Yb=h.useInsertionEffect?h.useInsertionEffect:!1,Hd=Yb||pD,Xh=Yb||h.useLayoutEffect,Xb=h.createContext(typeof HTMLElement<"u"?Vb({key:"css"}):null);Xb.Provider;var Qa=function(e){return h.forwardRef(function(t,r){var n=h.useContext(Xb);return e(t,n,r)})},sn=h.createContext({}),el=function(){return h.useContext(sn)},hD=function(e,t){if(typeof t=="function"){var r=t(e);return r}return Ve({},e,t)},gD=Gh(function(e){return Gh(function(t){return hD(e,t)})}),Ud=function(e){var t=h.useContext(sn);return e.theme!==t&&(t=gD(t)(e.theme)),h.createElement(sn.Provider,{value:t},e.children)},zd={}.hasOwnProperty,mc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",mD=function(e,t){var r={};for(var n in t)zd.call(t,n)&&(r[n]=t[n]);return r[mc]=e,r},yD=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Ja(t,r,n),Hd(function(){return Za(t,r,n)}),null},bD=Qa(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[mc],i=[n],a="";typeof e.className=="string"?a=jd(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var l=oi(i,void 0,h.useContext(sn));a+=t.key+"-"+l.name;var s={};for(var u in e)zd.call(e,u)&&u!=="css"&&u!==mc&&(s[u]=e[u]);return s.className=a,r&&(s.ref=r),h.createElement(h.Fragment,null,h.createElement(yD,{cache:t,serialized:l,isStringTag:typeof o=="string"}),h.createElement(o,s))}),ED=bD;vt(Mb());var yc=function(e,t){var r=arguments;if(t==null||!zd.call(t,"css"))return h.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=ED,o[1]=mD(e,t);for(var i=2;i<n;i++)o[i]=r[i];return h.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(yc||(yc={}));Qa(function(e,t){var r=e.styles,n=oi([r],void 0,h.useContext(sn)),o=h.useRef();return Xh(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,s=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),s!==null&&(l=!0,s.setAttribute("data-emotion",i),a.hydrate([s])),o.current=[a,l],function(){a.flush()}},[t]),Xh(function(){var i=o.current,a=i[0],l=i[1];if(l){i[1]=!1;return}if(n.next!==void 0&&Za(t,n.next,!0),a.tags.length){var s=a.tags[a.tags.length-1].nextElementSibling;a.before=s,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});function tl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return oi(t)}function Ke(){var e=tl.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var vD=function e(t){for(var r=t.length,n=0,o="";n<r;n++){var i=t[n];if(i!=null){var a=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))a=e(i);else{a="";for(var l in i)i[l]&&l&&(a&&(a+=" "),a+=l)}break}default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function SD(e,t,r){var n=[],o=jd(e,n,r);return n.length<2?r:o+t(n)}var xD=function(e){var t=e.cache,r=e.serializedArr;return Hd(function(){for(var n=0;n<r.length;n++)Za(t,r[n],!1)}),null};Qa(function(e,t){var r=[],n=function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];var c=oi(s,t.registered);return r.push(c),Ja(t,c,!1),t.key+"-"+c.name},o=function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];return SD(t.registered,n,vD(s))},i={css:n,cx:o,theme:h.useContext(sn)},a=e.children(i);return h.createElement(h.Fragment,null,h.createElement(xD,{cache:t,serializedArr:r}),a)});var $D=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,rl=Gb(function(e){return $D.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),wD=rl,CD=function(e){return e!=="theme"},Jh=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?wD:CD},Zh=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(i){return e.__emotion_forwardProp(i)&&o(i)}:o}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n},_D=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Ja(t,r,n),Hd(function(){return Za(t,r,n)}),null},TD=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var l=Zh(t,r,n),s=l||Jh(o),u=!s("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),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,m=1;m<p;m++)d.push(c[m],f[m])}var y=Qa(function(S,b,v){var x=u&&S.as||o,C="",A=[],$=S;if(S.theme==null){$={};for(var w in S)$[w]=S[w];$.theme=h.useContext(sn)}typeof S.className=="string"?C=jd(b.registered,A,S.className):S.className!=null&&(C=S.className+" ");var _=oi(d.concat(A),b.registered,$);C+=b.key+"-"+_.name,a!==void 0&&(C+=" "+a);var O=u&&l===void 0?Jh(x):s,T={};for(var I in S)u&&I==="as"||O(I)&&(T[I]=S[I]);return T.className=C,v&&(T.ref=v),h.createElement(h.Fragment,null,h.createElement(_D,{cache:b,serialized:_,isStringTag:typeof x=="string"}),h.createElement(x,T))});return y.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=o,y.__emotion_styles=d,y.__emotion_forwardProp=l,Object.defineProperty(y,"toString",{value:function(){return"."+a}}),y.withComponent=function(S,b){var v=e(S,Ve({},r,b,{shouldForwardProp:Zh(y,b,!0)}));return v.apply(void 0,d)},y}},AD=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],N=TD.bind(null);AD.forEach(function(e){N[e]=N(e)});var Jb=vt(Qn(),1),Zb=(0,Jb.default)(1)(({typography:e})=>({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}));(0,Jb.default)(1)(({color:e,background:t,typography:r})=>{let n=Zb({typography:r});return P(E({},n),{body:P(E({},n.body),{color:e.defaultText,background:t.app,overflow:"hidden"}),hr:P(E({},n.hr),{borderTop:`1px solid ${e.border}`}),".sb-sr-only, .sb-hidden-until-focus:not(:focus)":{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",border:0},".sb-hidden-until-focus":{opacity:0,transition:"opacity 150ms ease-out"},".sb-hidden-until-focus:focus":{opacity:1},".react-aria-Popover:focus-visible":{outline:"none"}})});var OD={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},RD=Ke`
|
|
566
|
+
from {
|
|
567
|
+
transform: rotate(0deg);
|
|
568
|
+
}
|
|
569
|
+
to {
|
|
570
|
+
transform: rotate(360deg);
|
|
571
|
+
}
|
|
572
|
+
`,Qb=Ke`
|
|
573
|
+
0%, 100% { opacity: 1; }
|
|
574
|
+
50% { opacity: .4; }
|
|
575
|
+
`,DD=Ke`
|
|
576
|
+
0% { transform: translateY(1px); }
|
|
577
|
+
25% { transform: translateY(0px); }
|
|
578
|
+
50% { transform: translateY(-3px); }
|
|
579
|
+
100% { transform: translateY(1px); }
|
|
580
|
+
`,PD=Ke`
|
|
581
|
+
0%, 100% { transform:translate3d(0,0,0); }
|
|
582
|
+
12.5%, 62.5% { transform:translate3d(-4px,0,0); }
|
|
583
|
+
37.5%, 87.5% { transform: translate3d(4px,0,0); }
|
|
584
|
+
`,ID=tl`
|
|
585
|
+
animation: ${Qb} 1.5s ease-in-out infinite;
|
|
586
|
+
color: transparent;
|
|
587
|
+
cursor: progress;
|
|
588
|
+
`,FD=tl`
|
|
589
|
+
transition: all 150ms ease-out;
|
|
590
|
+
transform: translate3d(0, 0, 0);
|
|
591
|
+
|
|
592
|
+
&:hover {
|
|
593
|
+
transform: translate3d(0, -2px, 0);
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
&:active {
|
|
597
|
+
transform: translate3d(0, 0, 0);
|
|
598
|
+
}
|
|
599
|
+
`,LD={rotate360:RD,glow:Qb,float:DD,jiggle:PD,inlineGlow:ID,hoverable:FD},kD={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"},ND={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"},MD=e=>Object.entries(e).reduce((t,[r,n])=>P(E({},t),{[r]:_R(n)}),{}),BD=({colors:e,mono:t})=>{let r=MD(e);return{token:{fontFamily:t,WebkitFontSmoothing:"antialiased","&.tag":r.red3,"&.comment":P(E({},r.green1),{fontStyle:"italic"}),"&.prolog":P(E({},r.green1),{fontStyle:"italic"}),"&.doctype":P(E({},r.green1),{fontStyle:"italic"}),"&.cdata":P(E({},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":E({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}}},jD={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#eb0000",gray1:"#393A34",cyan1:"#008380",cyan2:"#007ca0",blue1:"#0000ff",blue2:"#00009f"},HD={green1:"#95999D",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},UD=e=>({primary:e.colorPrimary,secondary:e.colorSecondary,tertiary:Q.tertiary,ancillary:Q.ancillary,orange:Q.orange,gold:Q.gold,green:Q.green,seafoam:Q.seafoam,purple:Q.purple,ultraviolet:Q.ultraviolet,lightest:Q.lightest,lighter:Q.lighter,light:Q.light,mediumlight:Q.mediumlight,medium:Q.medium,mediumdark:Q.mediumdark,dark:Q.dark,darker:Q.darker,darkest:Q.darkest,border:Q.border,positive:Q.positive,negative:Q.negative,warning:Q.warning,critical:Q.critical,defaultText:e.textColor||Q.darkest,inverseText:e.textInverseColor||Q.lightest,positiveText:Q.positiveText,negativeText:Q.negativeText,warningText:Q.warningText}),va=(e=nn[kd()])=>{let j=e,{base:t,colorPrimary:r,colorSecondary:n,appBg:o,appContentBg:i,appHoverBg:a,appPreviewBg:l,appBorderColor:s,appBorderRadius:u,fontBase:c,fontCode:d,textColor:f,textInverseColor:p,barTextColor:m,barHoverColor:y,barSelectedColor:S,barBg:b,buttonBg:v,buttonBorder:x,booleanBg:C,booleanSelectedBg:A,inputBg:$,inputBorder:w,inputTextColor:_,inputBorderRadius:O,brandTitle:T,brandUrl:I,brandImage:D,brandTarget:M,gridCellSize:k}=j,R=G(j,["base","colorPrimary","colorSecondary","appBg","appContentBg","appHoverBg","appPreviewBg","appBorderColor","appBorderRadius","fontBase","fontCode","textColor","textInverseColor","barTextColor","barHoverColor","barSelectedColor","barBg","buttonBg","buttonBorder","booleanBg","booleanSelectedBg","inputBg","inputBorder","inputTextColor","inputBorderRadius","brandTitle","brandUrl","brandImage","brandTarget","gridCellSize"]);return P(E(P(E({},R),{base:t}),t==="dark"?fc.dark:fc.light),{color:UD(e),background:{app:o,bar:b,content:i,preview:l,gridCellSize:k||br.gridCellSize,hoverable:a,positive:br.positive,negative:br.negative,warning:br.warning,critical:br.critical},typography:{fonts:{base:c,mono:d},weight:Ht.weight,size:Ht.size},animation:LD,easing:OD,input:{background:$,border:w,borderRadius:O,color:_},button:{background:v||$,border:x||w},boolean:{background:C||w,selectedBackground:A||$},layoutMargin:10,appBorderColor:s,appBorderRadius:u,barTextColor:m,barHoverColor:y||n,barSelectedColor:S||n,barBg:b,brand:{title:T,url:I,image:D||(T?null:void 0),target:M},code:BD({colors:t==="dark"?HD:jD,mono:d}),addonActionsTheme:P(E({},t==="dark"?kD:ND),{BASE_FONT_FAMILY:d,BASE_FONT_SIZE:Ht.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:f,ARROW_COLOR:fR(.2,s),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:d,TREENODE_FONT_SIZE:Ht.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12})})};const{logger:zD}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var KD=e=>Object.keys(e).length===0,ss=e=>e!=null&&typeof e=="object",GD=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),WD=()=>Object.create(null),e1=(e,t)=>e===t||!ss(e)||!ss(t)?{}:Object.keys(e).reduce((r,n)=>{if(GD(t,n)){let o=e1(e[n],t[n]);return ss(o)&&KD(o)||(r[n]=o),r}return r[n]=void 0,r},WD()),VD=e1,t1=e=>{if(!e)return va(pc);let t=VD(pc,e);return Object.keys(t).length&&zD.warn(At`
|
|
600
|
+
Your theme is missing properties, you should update your theme!
|
|
601
|
+
|
|
602
|
+
theme-data missing:
|
|
603
|
+
`,t),va(e)},Sa="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";const qD=Object.freeze(Object.defineProperty({__proto__:null,ThemeProvider:Ud,background:br,color:Q,convert:va,create:Nb,createCache:Vb,createReset:Zb,css:tl,ensure:t1,getPreferredColorScheme:kd,ignoreSsrWarning:Sa,isPropValid:rl,get jsx(){return yc},keyframes:Ke,lighten:Ld,styled:N,themes:nn,tokens:fc,typography:Ht,useTheme:el},Symbol.toStringTag,{value:"Module"}));var us={exports:{}},Ye={};var Qh;function YD(){if(Qh)return Ye;Qh=1;var e=Fd();function t(s){var u="https://react.dev/errors/"+s;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)u+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+s+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function i(s,u,c){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:d==null?null:""+d,children:s,containerInfo:u,implementation:c}}var a=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(s,u){if(s==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return Ye.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,Ye.createPortal=function(s,u){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(t(299));return i(s,u,null,c)},Ye.flushSync=function(s){var u=a.T,c=n.p;try{if(a.T=null,n.p=2,s)return s()}finally{a.T=u,n.p=c,n.d.f()}},Ye.preconnect=function(s,u){typeof s=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,n.d.C(s,u))},Ye.prefetchDNS=function(s){typeof s=="string"&&n.d.D(s)},Ye.preinit=function(s,u){if(typeof s=="string"&&u&&typeof u.as=="string"){var c=u.as,d=l(c,u.crossOrigin),f=typeof u.integrity=="string"?u.integrity:void 0,p=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;c==="style"?n.d.S(s,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:d,integrity:f,fetchPriority:p}):c==="script"&&n.d.X(s,{crossOrigin:d,integrity:f,fetchPriority:p,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},Ye.preinitModule=function(s,u){if(typeof s=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var c=l(u.as,u.crossOrigin);n.d.M(s,{crossOrigin:c,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&n.d.M(s)},Ye.preload=function(s,u){if(typeof s=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var c=u.as,d=l(c,u.crossOrigin);n.d.L(s,c,{crossOrigin:d,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},Ye.preloadModule=function(s,u){if(typeof s=="string")if(u){var c=l(u.as,u.crossOrigin);n.d.m(s,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:c,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else n.d.m(s)},Ye.requestFormReset=function(s){n.d.r(s)},Ye.unstable_batchedUpdates=function(s,u){return s(u)},Ye.useFormState=function(s,u,c){return a.H.useFormState(s,u,c)},Ye.useFormStatus=function(){return a.H.useHostTransitionStatus()},Ye.version="19.2.3",Ye}var eg;function XD(){if(eg)return us.exports;eg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),us.exports=YD(),us.exports}var ii=XD();const r1=vd(ii);var JD=N.div(({theme:e})=>({position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:e.background.content,zIndex:1})),n1=N.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});n1.displayName="ActionButton";var o1=r=>{var n=r,{actionItems:e}=n,t=G(n,["actionItems"]);return g.createElement(JD,E({},t),e.map(({title:o,className:i,onClick:a,disabled:l},s)=>g.createElement(n1,{key:s,className:i,onClick:a,disabled:!!l},o)))};function ZD(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function i1(...e){return t=>e.forEach(r=>ZD(r,t))}function hn(...e){return h.useCallback(i1(...e),e)}var a1=h.forwardRef((e,t)=>{let a=e,{children:r}=a,n=G(a,["children"]),o=h.Children.toArray(r),i=o.find(e5);if(i){let l=i.props.children,s=o.map(u=>u===i?h.Children.count(l)>1?h.Children.only(null):h.isValidElement(l)?l.props.children:null:u);return ce.jsx(bc,P(E({},n),{ref:t,children:h.isValidElement(l)?h.cloneElement(l,void 0,s):null}))}return ce.jsx(bc,P(E({},n),{ref:t,children:r}))});a1.displayName="Slot";var bc=h.forwardRef((e,t)=>{let o=e,{children:r}=o,n=G(o,["children"]);if(h.isValidElement(r)){let i=r5(r);return h.cloneElement(r,P(E({},t5(n,r.props)),{ref:t?i1(t,i):i}))}return h.Children.count(r)>1?h.Children.only(null):null});bc.displayName="SlotClone";var QD=({children:e})=>ce.jsx(ce.Fragment,{children:e});function e5(e){return h.isValidElement(e)&&e.type===QD}function t5(e,t){let r=E({},t);for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{i(...a),o(...a)}:o&&(r[n]=o):n==="style"?r[n]=E(E({},o),i):n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return E(E({},e),r)}function r5(e){var n,o;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=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var n5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ai=n5.reduce((e,t)=>{let r=h.forwardRef((n,o)=>{let s=n,{asChild:i}=s,a=G(s,["asChild"]),l=i?a1:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ce.jsx(l,P(E({},a),{ref:o}))});return r.displayName=`Primitive.${t}`,P(E({},e),{[t]:r})},{}),Ec=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{};function o5(e,t){return h.useReducer((r,n)=>{var o;return(o=t[r][n])!=null?o:r},e)}var li=e=>{let{present:t,children:r}=e,n=i5(t),o=typeof r=="function"?r({present:n.isPresent}):h.Children.only(r),i=hn(n.ref,a5(o));return typeof r=="function"||n.isPresent?h.cloneElement(o,{ref:i}):null};li.displayName="Presence";function i5(e){let[t,r]=h.useState(),n=h.useRef({}),o=h.useRef(e),i=h.useRef("none"),a=e?"mounted":"unmounted",[l,s]=o5(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{let u=Ii(n.current);i.current=l==="mounted"?u:"none"},[l]),Ec(()=>{let u=n.current,c=o.current;if(c!==e){let d=i.current,f=Ii(u);e?s("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(c&&d!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),Ec(()=>{if(t){let u=d=>{let f=Ii(n.current).includes(d.animationName);d.target===t&&f&&ii.flushSync(()=>s("ANIMATION_END"))},c=d=>{d.target===t&&(i.current=Ii(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(l),ref:h.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function Ii(e){return(e==null?void 0:e.animationName)||"none"}function a5(e){var n,o;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=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function l5(e,t=[]){let r=[];function n(i,a){let l=h.createContext(a),s=r.length;r=[...r,a];function u(d){let b=d,{scope:f,children:p}=b,m=G(b,["scope","children"]),y=(f==null?void 0:f[e][s])||l,S=h.useMemo(()=>m,Object.values(m));return ce.jsx(y.Provider,{value:S,children:p})}function c(d,f){let p=(f==null?void 0:f[e][s])||l,m=h.useContext(p);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}let o=()=>{let i=r.map(a=>h.createContext(a));return function(a){let l=(a==null?void 0:a[e])||i;return h.useMemo(()=>({[`__scope${e}`]:P(E({},a),{[e]:l})}),[a,l])}};return o.scopeName=e,[n,s5(o,...t)]}function s5(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){let i=n.reduce((a,{useScope:l,scopeName:s})=>{let u=l(o)[`__scope${s}`];return E(E({},a),u)},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Qr(e){let t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}var u5=h.createContext(void 0);function c5(e){let t=h.useContext(u5);return e||t||"ltr"}function d5(e,[t,r]){return Math.min(r,Math.max(t,e))}function on(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 f5(e,t){return h.useReducer((r,n)=>{var o;return(o=t[r][n])!=null?o:r},e)}var Kd="ScrollArea",[l1]=l5(Kd),[p5,Pt]=l1(Kd),s1=h.forwardRef((e,t)=>{let I=e,{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:i=600}=I,a=G(I,["__scopeScrollArea","type","dir","scrollHideDelay"]),[l,s]=h.useState(null),[u,c]=h.useState(null),[d,f]=h.useState(null),[p,m]=h.useState(null),[y,S]=h.useState(null),[b,v]=h.useState(0),[x,C]=h.useState(0),[A,$]=h.useState(!1),[w,_]=h.useState(!1),O=hn(t,D=>s(D)),T=c5(o);return ce.jsx(p5,{scope:r,type:n,dir:T,scrollHideDelay:i,scrollArea:l,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:A,onScrollbarXEnabledChange:$,scrollbarY:y,onScrollbarYChange:S,scrollbarYEnabled:w,onScrollbarYEnabledChange:_,onCornerWidthChange:v,onCornerHeightChange:C,children:ce.jsx(ai.div,P(E({dir:T},a),{ref:O,style:E({position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":x+"px"},e.style)}))})});s1.displayName=Kd;var u1="ScrollAreaViewport",c1=h.forwardRef((e,t)=>{let c=e,{__scopeScrollArea:r,children:n,asChild:o,nonce:i}=c,a=G(c,["__scopeScrollArea","children","asChild","nonce"]),l=Pt(u1,r),s=h.useRef(null),u=hn(t,s,l.onViewportChange);return ce.jsxs(ce.Fragment,{children:[ce.jsx("style",{dangerouslySetInnerHTML:{__html:`
|
|
604
|
+
[data-radix-scroll-area-viewport] {
|
|
605
|
+
scrollbar-width: none;
|
|
606
|
+
-ms-overflow-style: none;
|
|
607
|
+
-webkit-overflow-scrolling: touch;
|
|
608
|
+
}
|
|
609
|
+
[data-radix-scroll-area-viewport]::-webkit-scrollbar {
|
|
610
|
+
display: none;
|
|
611
|
+
}
|
|
612
|
+
:where([data-radix-scroll-area-viewport]) {
|
|
613
|
+
display: flex;
|
|
614
|
+
flex-direction: column;
|
|
615
|
+
align-items: stretch;
|
|
616
|
+
}
|
|
617
|
+
:where([data-radix-scroll-area-content]) {
|
|
618
|
+
flex-grow: 1;
|
|
619
|
+
}
|
|
620
|
+
`},nonce:i}),ce.jsx(ai.div,P(E({"data-radix-scroll-area-viewport":""},a),{asChild:o,ref:u,style:E({overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden"},e.style),children:$5({asChild:o,children:n},d=>ce.jsx("div",{"data-radix-scroll-area-content":"",ref:l.onContentChange,style:{minWidth:l.scrollbarXEnabled?"fit-content":void 0},children:d}))}))]})});c1.displayName=u1;var lr="ScrollAreaScrollbar",d1=h.forwardRef((e,t)=>{let s=e,{forceMount:r}=s,n=G(s,["forceMount"]),o=Pt(lr,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=o,l=e.orientation==="horizontal";return h.useEffect(()=>(l?i(!0):a(!0),()=>{l?i(!1):a(!1)}),[l,i,a]),o.type==="hover"?ce.jsx(h5,P(E({},n),{ref:t,forceMount:r})):o.type==="scroll"?ce.jsx(g5,P(E({},n),{ref:t,forceMount:r})):o.type==="auto"?ce.jsx(f1,P(E({},n),{ref:t,forceMount:r})):o.type==="always"?ce.jsx(Gd,P(E({},n),{ref:t})):null});d1.displayName=lr;var h5=h.forwardRef((e,t)=>{let l=e,{forceMount:r}=l,n=G(l,["forceMount"]),o=Pt(lr,e.__scopeScrollArea),[i,a]=h.useState(!1);return h.useEffect(()=>{let s=o.scrollArea,u=0;if(s){let c=()=>{window.clearTimeout(u),a(!0)},d=()=>{u=window.setTimeout(()=>a(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",c),s.addEventListener("pointerleave",d),()=>{window.clearTimeout(u),s.removeEventListener("pointerenter",c),s.removeEventListener("pointerleave",d)}}},[o.scrollArea,o.scrollHideDelay]),ce.jsx(li,{present:r||i,children:ce.jsx(f1,P(E({"data-state":i?"visible":"hidden"},n),{ref:t}))})}),g5=h.forwardRef((e,t)=>{let u=e,{forceMount:r}=u,n=G(u,["forceMount"]),o=Pt(lr,e.__scopeScrollArea),i=e.orientation==="horizontal",a=ol(()=>s("SCROLL_END"),100),[l,s]=f5("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 h.useEffect(()=>{if(l==="idle"){let c=window.setTimeout(()=>s("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(c)}},[l,o.scrollHideDelay,s]),h.useEffect(()=>{let c=o.viewport,d=i?"scrollLeft":"scrollTop";if(c){let f=c[d],p=()=>{let m=c[d];f!==m&&(s("SCROLL"),a()),f=m};return c.addEventListener("scroll",p),()=>c.removeEventListener("scroll",p)}},[o.viewport,i,s,a]),ce.jsx(li,{present:r||l!=="hidden",children:ce.jsx(Gd,P(E({"data-state":l==="hidden"?"hidden":"visible"},n),{ref:t,onPointerEnter:on(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:on(e.onPointerLeave,()=>s("POINTER_LEAVE"))}))})}),f1=h.forwardRef((e,t)=>{let r=Pt(lr,e.__scopeScrollArea),u=e,{forceMount:n}=u,o=G(u,["forceMount"]),[i,a]=h.useState(!1),l=e.orientation==="horizontal",s=ol(()=>{if(r.viewport){let c=r.viewport.offsetWidth<r.viewport.scrollWidth,d=r.viewport.offsetHeight<r.viewport.scrollHeight;a(l?c:d)}},10);return Hn(r.viewport,s),Hn(r.content,s),ce.jsx(li,{present:n||i,children:ce.jsx(Gd,P(E({"data-state":i?"visible":"hidden"},o),{ref:t}))})}),Gd=h.forwardRef((e,t)=>{let f=e,{orientation:r="vertical"}=f,n=G(f,["orientation"]),o=Pt(lr,e.__scopeScrollArea),i=h.useRef(null),a=h.useRef(0),[l,s]=h.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=y1(l.viewport,l.content),c=P(E({},n),{sizes:l,onSizesChange:s,hasThumb:u>0&&u<1,onThumbChange:p=>i.current=p,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:p=>a.current=p});function d(p,m){return S5(p,a.current,l,m)}return r==="horizontal"?ce.jsx(m5,P(E({},c),{ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){let p=o.viewport.scrollLeft,m=tg(p,l,o.dir);i.current.style.transform=`translate3d(${m}px, 0, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollLeft=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollLeft=d(p,o.dir))}})):r==="vertical"?ce.jsx(y5,P(E({},c),{ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){let p=o.viewport.scrollTop,m=tg(p,l);i.current.style.transform=`translate3d(0, ${m}px, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollTop=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollTop=d(p))}})):null}),m5=h.forwardRef((e,t)=>{let c=e,{sizes:r,onSizesChange:n}=c,o=G(c,["sizes","onSizesChange"]),i=Pt(lr,e.__scopeScrollArea),[a,l]=h.useState(),s=h.useRef(null),u=hn(t,s,i.onScrollbarXChange);return h.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),ce.jsx(h1,P(E({"data-orientation":"horizontal"},o),{ref:u,sizes:r,style:E({bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":nl(r)+"px"},e.style),onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,f)=>{if(i.viewport){let p=i.viewport.scrollLeft+d.deltaX;e.onWheelScroll(p),E1(p,f)&&d.preventDefault()}},onResize:()=>{s.current&&i.viewport&&a&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:$a(a.paddingLeft),paddingEnd:$a(a.paddingRight)}})}}))}),y5=h.forwardRef((e,t)=>{let c=e,{sizes:r,onSizesChange:n}=c,o=G(c,["sizes","onSizesChange"]),i=Pt(lr,e.__scopeScrollArea),[a,l]=h.useState(),s=h.useRef(null),u=hn(t,s,i.onScrollbarYChange);return h.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),ce.jsx(h1,P(E({"data-orientation":"vertical"},o),{ref:u,sizes:r,style:E({top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":nl(r)+"px"},e.style),onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,f)=>{if(i.viewport){let p=i.viewport.scrollTop+d.deltaY;e.onWheelScroll(p),E1(p,f)&&d.preventDefault()}},onResize:()=>{s.current&&i.viewport&&a&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:$a(a.paddingTop),paddingEnd:$a(a.paddingBottom)}})}}))}),[b5,p1]=l1(lr),h1=h.forwardRef((e,t)=>{let O=e,{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:l,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:c,onResize:d}=O,f=G(O,["__scopeScrollArea","sizes","hasThumb","onThumbChange","onThumbPointerUp","onThumbPointerDown","onThumbPositionChange","onDragScroll","onWheelScroll","onResize"]),p=Pt(lr,r),[m,y]=h.useState(null),S=hn(t,T=>y(T)),b=h.useRef(null),v=h.useRef(""),x=p.viewport,C=n.content-n.viewport,A=Qr(c),$=Qr(s),w=ol(d,10);function _(T){if(b.current){let I=T.clientX-b.current.left,D=T.clientY-b.current.top;u({x:I,y:D})}}return h.useEffect(()=>{let T=I=>{let D=I.target;m!=null&&m.contains(D)&&A(I,C)};return document.addEventListener("wheel",T,{passive:!1}),()=>document.removeEventListener("wheel",T,{passive:!1})},[x,m,C,A]),h.useEffect($,[n,$]),Hn(m,w),Hn(p.content,w),ce.jsx(b5,{scope:r,scrollbar:m,hasThumb:o,onThumbChange:Qr(i),onThumbPointerUp:Qr(a),onThumbPositionChange:$,onThumbPointerDown:Qr(l),children:ce.jsx(ai.div,P(E({},f),{ref:S,style:E({position:"absolute"},f.style),onPointerDown:on(e.onPointerDown,T=>{T.button===0&&(T.target.setPointerCapture(T.pointerId),b.current=m.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),_(T))}),onPointerMove:on(e.onPointerMove,_),onPointerUp:on(e.onPointerUp,T=>{let I=T.target;I.hasPointerCapture(T.pointerId)&&I.releasePointerCapture(T.pointerId),document.body.style.webkitUserSelect=v.current,p.viewport&&(p.viewport.style.scrollBehavior=""),b.current=null})}))})}),xa="ScrollAreaThumb",g1=h.forwardRef((e,t)=>{let i=e,{forceMount:r}=i,n=G(i,["forceMount"]),o=p1(xa,e.__scopeScrollArea);return ce.jsx(li,{present:r||o.hasThumb,children:ce.jsx(E5,E({ref:t},n))})}),E5=h.forwardRef((e,t)=>{let d=e,{__scopeScrollArea:r,style:n}=d,o=G(d,["__scopeScrollArea","style"]),i=Pt(xa,r),a=p1(xa,r),{onThumbPositionChange:l}=a,s=hn(t,f=>a.onThumbChange(f)),u=h.useRef(),c=ol(()=>{u.current&&(u.current(),u.current=void 0)},100);return h.useEffect(()=>{let f=i.viewport;if(f){let p=()=>{if(c(),!u.current){let m=x5(f,l);u.current=m,l()}};return l(),f.addEventListener("scroll",p),()=>f.removeEventListener("scroll",p)}},[i.viewport,c,l]),ce.jsx(ai.div,P(E({"data-state":a.hasThumb?"visible":"hidden"},o),{ref:s,style:E({width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)"},n),onPointerDownCapture:on(e.onPointerDownCapture,f=>{let p=f.target.getBoundingClientRect(),m=f.clientX-p.left,y=f.clientY-p.top;a.onThumbPointerDown({x:m,y})}),onPointerUp:on(e.onPointerUp,a.onThumbPointerUp)}))});g1.displayName=xa;var Wd="ScrollAreaCorner",m1=h.forwardRef((e,t)=>{let r=Pt(Wd,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?ce.jsx(v5,P(E({},e),{ref:t})):null});m1.displayName=Wd;var v5=h.forwardRef((e,t)=>{let c=e,{__scopeScrollArea:r}=c,n=G(c,["__scopeScrollArea"]),o=Pt(Wd,r),[i,a]=h.useState(0),[l,s]=h.useState(0),u=!!(i&&l);return Hn(o.scrollbarX,()=>{var f;let d=((f=o.scrollbarX)==null?void 0:f.offsetHeight)||0;o.onCornerHeightChange(d),s(d)}),Hn(o.scrollbarY,()=>{var f;let d=((f=o.scrollbarY)==null?void 0:f.offsetWidth)||0;o.onCornerWidthChange(d),a(d)}),u?ce.jsx(ai.div,P(E({},n),{ref:t,style:E({width:i,height:l,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0},e.style)})):null});function $a(e){return e?parseInt(e,10):0}function y1(e,t){let r=e/t;return isNaN(r)?0:r}function nl(e){let t=y1(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function S5(e,t,r,n="ltr"){let o=nl(r),i=o/2,a=t||i,l=o-a,s=r.scrollbar.paddingStart+a,u=r.scrollbar.size-r.scrollbar.paddingEnd-l,c=r.content-r.viewport,d=n==="ltr"?[0,c]:[c*-1,0];return b1([s,u],d)(e)}function tg(e,t,r="ltr"){let n=nl(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,a=t.content-t.viewport,l=i-n,s=r==="ltr"?[0,a]:[a*-1,0],u=d5(e,s);return b1([0,a],[0,l])(u)}function b1(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 E1(e,t){return e>0&&e<t}var x5=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return(function o(){let i={left:e.scrollLeft,top:e.scrollTop},a=r.left!==i.left,l=r.top!==i.top;(a||l)&&t(),r=i,n=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(n)};function ol(e,t){let r=Qr(e),n=h.useRef(0);return h.useEffect(()=>()=>window.clearTimeout(n.current),[]),h.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function Hn(e,t){let r=Qr(t);Ec(()=>{let n=0;if(e){let o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}function $5(e,t){let{asChild:r,children:n}=e;if(!r)return typeof t=="function"?t(n):t;let o=h.Children.only(n);return h.cloneElement(o,{children:typeof t=="function"?t(o.props.children):t})}var w5=s1,C5=c1,_5=d1,T5=g1,A5=m1,O5=N(w5)(({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`})),R5=N(C5)({width:"100%",height:"100%"}),rg=N(_5)(({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}})),ng=N(T5)(({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%"}})),Vd=h.forwardRef(({children:e,horizontal:t=!1,vertical:r=!1,offset:n=2,scrollbarSize:o=6,scrollPadding:i=0,className:a},l)=>g.createElement(O5,{scrollbarsize:o,offset:n,className:a},g.createElement(R5,{ref:l,style:{scrollPadding:i}},e),t&&g.createElement(rg,{orientation:"horizontal",offset:n,horizontal:t.toString(),vertical:r.toString()},g.createElement(ng,null)),r&&g.createElement(rg,{orientation:"vertical",offset:n,horizontal:t.toString(),vertical:r.toString()},g.createElement(ng,null)),t&&r&&g.createElement(A5,null)));Vd.displayName="ScrollArea";const{global:D5}=__STORYBOOK_MODULE_GLOBAL__;var{document:vo,window:vc}=D5;async function P5(e){var t;try{await((t=vc.top)==null?void 0:t.navigator.clipboard.writeText(e))}catch(r){await vc.navigator.clipboard.writeText(e)}}async function I5(e){let t=vo.createElement("TEXTAREA"),r=vo.activeElement;t.value=e,vo.body.appendChild(t),t.select(),vo.execCommand("copy"),vo.body.removeChild(t),r.focus()}function F5(){var e;return(e=vc.navigator)!=null&&e.clipboard?P5:I5}function L5(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 k5=h.forwardRef((o,n)=>{var i=o,{color:e="currentColor",size:t=14}=i,r=G(i,["color","size"]);return h.createElement("svg",E({width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},r),h.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}),h.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}))}),N5=h.forwardRef((o,n)=>{var i=o,{color:e="currentColor",size:t=14}=i,r=G(i,["color","size"]);return h.createElement("svg",E({width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},r),h.createElement("path",{d:"M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z",fill:e}),h.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}))}),M5=h.forwardRef((o,n)=>{var i=o,{color:e="currentColor",size:t=14}=i,r=G(i,["color","size"]);return h.createElement("svg",E({width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},r),h.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}))}),B5=h.forwardRef((o,n)=>{var i=o,{color:e="currentColor",size:t=14}=i,r=G(i,["color","size"]);return h.createElement("svg",E({width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},r),h.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}))}),Sc=h.forwardRef((o,n)=>{var i=o,{color:e="currentColor",size:t=14}=i,r=G(i,["color","size"]);return h.createElement("svg",E({width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},r),h.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}),h.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}))}),xq=h.forwardRef((o,n)=>{var i=o,{color:e="currentColor",size:t=14}=i,r=G(i,["color","size"]);return h.createElement("svg",E({width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},r),h.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}))}),v1=h.forwardRef((o,n)=>{var i=o,{color:e="currentColor",size:t=14}=i,r=G(i,["color","size"]);return h.createElement("svg",E({width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},r),h.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708L6.293 7l-5.147 5.146a.5.5 0 00.708.708L7 7.707l5.146 5.147a.5.5 0 00.708-.708L7.707 7l5.147-5.146a.5.5 0 00-.708-.708L7 6.293 1.854 1.146z",fill:e}))}),j5=h.forwardRef((o,n)=>{var i=o,{color:e="currentColor",size:t=14}=i,r=G(i,["color","size"]);return h.createElement("svg",E({width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},r),h.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}),h.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}))}),H5=h.forwardRef((o,n)=>{var i=o,{color:e="currentColor",size:t=14}=i,r=G(i,["color","size"]);return h.createElement("svg",E({width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},r),h.createElement("path",{d:"M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:e}),h.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}))}),U5=h.forwardRef((o,n)=>{var i=o,{color:e="currentColor",size:t=14}=i,r=G(i,["color","size"]);return h.createElement("svg",E({width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},r),h.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}),h.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}))}),z5=h.forwardRef((o,n)=>{var i=o,{color:e="currentColor",size:t=14}=i,r=G(i,["color","size"]);return h.createElement("svg",E({width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},r),h.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}))}),K5=h.forwardRef((o,n)=>{var i=o,{color:e="currentColor",size:t=14}=i,r=G(i,["color","size"]);return h.createElement("svg",E({width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},r),h.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}),h.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}))}),G5=h.forwardRef((o,n)=>{var i=o,{color:e="currentColor",size:t=14}=i,r=G(i,["color","size"]);return h.createElement("svg",E({width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},r),h.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}),h.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}))}),W5=h.forwardRef((o,n)=>{var i=o,{color:e="currentColor",size:t=14}=i,r=G(i,["color","size"]);return h.createElement("svg",E({width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},r),h.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}))}),S1=h.forwardRef((o,n)=>{var i=o,{color:e="currentColor",size:t=14}=i,r=G(i,["color","size"]);return h.createElement("svg",E({width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},r),h.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}))}),V5=h.forwardRef((o,n)=>{var i=o,{color:e="currentColor",size:t=14}=i,r=G(i,["color","size"]);return h.createElement("svg",E({width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},r),h.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}))}),x1=h.forwardRef((o,n)=>{var i=o,{color:e="currentColor",size:t=14}=i,r=G(i,["color","size"]);return h.createElement("svg",E({width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},r),h.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}))}),q5=h.forwardRef((o,n)=>{var i=o,{color:e="currentColor",size:t=14}=i,r=G(i,["color","size"]);return h.createElement("svg",E({width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},r),h.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}))}),Y5=h.forwardRef((o,n)=>{var i=o,{color:e="currentColor",size:t=14}=i,r=G(i,["color","size"]);return h.createElement("svg",E({width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},r),h.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}))}),X5=h.forwardRef((o,n)=>{var i=o,{color:e="currentColor",size:t=14}=i,r=G(i,["color","size"]);return h.createElement("svg",E({width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},r),h.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}))}),J5=h.forwardRef((o,n)=>{var i=o,{color:e="currentColor",size:t=14}=i,r=G(i,["color","size"]);return h.createElement("svg",E({width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},r),h.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}))}),og=new Map,Z5="UNIVERSAL_STORE:",Ct={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},Jr=class oe{constructor(t,r){var n,o,i;if(this.debugging=!1,this.listeners=new Map([["*",new Set]]),this.getState=()=>(this.debug("getState",{state:this.state}),this.state),this.subscribe=(a,l)=>{let s=typeof a=="function",u=s?"*":a,c=s?a:l;if(this.debug("subscribe",{eventType:u,listener:c}),!c)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(u)||this.listeners.set(u,new Set),this.listeners.get(u).add(c),()=>{var d;this.debug("unsubscribe",{eventType:u,listener:c}),this.listeners.has(u)&&(this.listeners.get(u).delete(c),((d=this.listeners.get(u))==null?void 0:d.size)===0&&this.listeners.delete(u))}},this.send=a=>{if(this.debug("send",{event:a}),this.status!==oe.Status.READY)throw new TypeError(At`Cannot send event before store is ready. You can get the current status with store.status,
|
|
621
|
+
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
622
|
+
${JSON.stringify({event:a,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.emitToListeners(a,{actor:this.actor}),this.emitToChannel(a,{actor:this.actor})},this.debugging=(n=t.debug)!=null?n:!1,!oe.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(oe.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?oe.ActorType.LEADER:oe.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${Z5}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===oe.ActorType.LEADER)this.syncing={state:Ct.RESOLVED,promise:Promise.resolve()};else{let a,l,s=new Promise((u,c)=>{a=()=>{this.syncing.state===Ct.PENDING&&(this.syncing.state=Ct.RESOLVED,u())},l=d=>{this.syncing.state===Ct.PENDING&&(this.syncing.state=Ct.REJECTED,c(d))}});this.syncing={state:Ct.PENDING,promise:s,resolve:a,reject:l}}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=(o=r==null?void 0:r.channel)!=null?o:oe.preparation.channel,this.environment=(i=r==null?void 0:r.environment)!=null?i:oe.preparation.environment,this.channel&&this.environment?(oe.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):oe.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,n=new Promise((o,i)=>{t=a=>{o(a)},r=(...a)=>{i(a)}});oe.preparation={resolve:t,reject:r,promise:n}}get actor(){var t;return Object.freeze({id:this.actorId,type:this.actorType,environment:(t=this.environment)!=null?t:oe.Environment.UNKNOWN})}get status(){var t;if(!this.channel||!this.environment)return oe.Status.UNPREPARED;switch((t=this.syncing)==null?void 0:t.state){case Ct.PENDING:case void 0:return oe.Status.SYNCING;case Ct.REJECTED:return oe.Status.ERROR;case Ct.RESOLVED:default:return oe.Status.READY}}untilReady(){var t;return Promise.all([oe.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(At`[UniversalStore]
|
|
623
|
+
create`,{options:t});let r=og.get(t.id);if(r)return console.warn(At`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
|
|
624
|
+
You should reuse the existing instance instead of trying to create a new one.`),r;oe.isInternalConstructing=!0;let n=new oe(t);return og.set(t.id,n),n}static __prepare(t,r){oe.preparation.channel=t,oe.preparation.environment=r,oe.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!==oe.Status.READY)throw new TypeError(At`Cannot set state before store is ready. You can get the current status with store.status,
|
|
625
|
+
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
626
|
+
${JSON.stringify({newState:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=n;let o={type:oe.InternalEventType.SET_STATE,payload:{state:n,previousState:r}};this.emitToChannel(o,{actor:this.actor}),this.emitToListeners(o,{actor:this.actor})}onStateChange(t){return this.debug("onStateChange",{listener:t}),this.subscribe(oe.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===oe.ActorType.LEADER?this.emitToChannel({type:oe.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:oe.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:oe.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),o=this.listeners.get("*");this.debug("emitToListeners",{event:t,eventInfo:r,eventTypeListeners:n,everythingListeners:o}),[...n!=null?n:[],...o!=null?o:[]].forEach(i=>i(t,r))}handleChannelEvents(t){var o,i,a,l,s;let{event:r,eventInfo:n}=t;if([n.actor.id,(o=n.forwardingActor)==null?void 0:o.id].includes(this.actor.id)){this.debug("handleChannelEvents: Ignoring event from self",{channelEvent:t});return}else if(((i=this.syncing)==null?void 0:i.state)===Ct.PENDING&&r.type!==oe.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===oe.ActorType.LEADER){let u=!0;switch(r.type){case oe.InternalEventType.EXISTING_STATE_REQUEST:u=!1;let c={type:oe.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 oe.InternalEventType.LEADER_CREATED:u=!1,this.syncing.state=Ct.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(At`Detected multiple UniversalStore leaders created with the same id "${this.id}".
|
|
627
|
+
Only one leader can exists at a time, your stores are now in an invalid state.
|
|
628
|
+
Leaders detected:
|
|
629
|
+
this: ${JSON.stringify(this.actor,null,2)}
|
|
630
|
+
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===oe.ActorType.FOLLOWER)switch(r.type){case oe.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),((a=this.syncing)==null?void 0:a.state)!==Ct.PENDING)break;(s=(l=this.syncing).resolve)==null||s.call(l);let u={type:oe.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(u,n);break}r.type===oe.InternalEventType.SET_STATE&&(this.debug("handleChannelEvents: Setting state",{event:r}),this.state=r.payload.state),this.emitToListeners(r,{actor:n.actor})}debug(t,r){var n;this.debugging&&console.debug(At`[UniversalStore::${this.id}::${(n=this.environment)!=null?n:oe.Environment.UNKNOWN}]
|
|
631
|
+
${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){oe.preparation.reject(new Error("reset")),oe.setupPreparationPromise(),oe.isInternalConstructing=!1}};Jr.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},Jr.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},Jr.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"},Jr.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},Jr.isInternalConstructing=!1,Jr.setupPreparationPromise();var qd=Jr,Q5=Object.create,$1=Object.defineProperty,e3=Object.getOwnPropertyDescriptor,w1=Object.getOwnPropertyNames,t3=Object.getPrototypeOf,r3=Object.prototype.hasOwnProperty,se=(e,t)=>function(){return t||(0,e[w1(e)[0]])((t={exports:{}}).exports,t),t.exports},n3=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of w1(t))!r3.call(e,o)&&o!==r&&$1(e,o,{get:()=>t[o],enumerable:!(n=e3(t,o))||n.enumerable});return e},Yd=(e,t,r)=>(r=e!=null?Q5(t3(e)):{},n3(!e||!e.__esModule?$1(r,"default",{value:e,enumerable:!0}):r,e)),o3=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],i3=["detail"];function a3(e){let t=o3.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of i3.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var C1=se({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),l3=se({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),s3=se({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),u3=se({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),c3=se({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),d3=se({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),Xd=se({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),f3=se({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),p3=se({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),h3=se({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),g3=se({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),m3=se({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),y3=se({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),b3=se({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),E3=se({"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}}}),v3=se({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=E3();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),S3=se({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Jd=se({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=S3();if(r)try{r([],"length")}catch(n){r=null}t.exports=r}}),x3=se({"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(n){r=!1}t.exports=r}}),_1=se({"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"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var i=42;r[n]=i;for(var a 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 l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==i||s.enumerable!==!0)return!1}return!0}}}),T1=se({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=_1();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),A1=se({"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}}),O1=se({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=C1();t.exports=r.getPrototypeOf||null}}),$3=se({"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,o=Math.max,i="[object Function]",a=function(u,c){for(var d=[],f=0;f<u.length;f+=1)d[f]=u[f];for(var p=0;p<c.length;p+=1)d[p+u.length]=c[p];return d},l=function(u,c){for(var d=[],f=c,p=0;f<u.length;f+=1,p+=1)d[p]=u[f];return d},s=function(u,c){for(var d="",f=0;f<u.length;f+=1)d+=u[f],f+1<u.length&&(d+=c);return d};t.exports=function(u){var c=this;if(typeof c!="function"||n.apply(c)!==i)throw new TypeError(r+c);for(var d=l(arguments,1),f,p=function(){if(this instanceof f){var v=c.apply(this,a(d,arguments));return Object(v)===v?v:this}return c.apply(u,a(d,arguments))},m=o(0,c.length-d.length),y=[],S=0;S<m;S++)y[S]="$"+S;if(f=Function("binder","return function ("+s(y,",")+"){ return binder.apply(this,arguments); }")(p),c.prototype){var b=function(){};b.prototype=c.prototype,f.prototype=new b,b.prototype=null}return f}}}),il=se({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=$3();t.exports=Function.prototype.bind||r}}),Zd=se({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),R1=se({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),w3=se({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),C3=se({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=il(),n=R1(),o=Zd(),i=w3();t.exports=i||r.call(o,n)}}),D1=se({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=il(),n=Xd(),o=Zd(),i=C3();t.exports=function(a){if(a.length<1||typeof a[0]!="function")throw new n("a function is required");return i(r,o,a)}}}),_3=se({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=D1(),n=Jd(),o;try{o=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var i=!!o&&n&&n(Object.prototype,"__proto__"),a=Object,l=a.getPrototypeOf;t.exports=i&&typeof i.get=="function"?r([i.get]):typeof l=="function"?(function(s){return l(s==null?s:a(s))}):!1}}),T3=se({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=A1(),n=O1(),o=_3();t.exports=r?function(i){return r(i)}:n?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return n(i)}:o?function(i){return o(i)}:null}}),P1=se({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=il();t.exports=o.call(r,n)}}),A3=se({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=C1(),o=l3(),i=s3(),a=u3(),l=c3(),s=d3(),u=Xd(),c=f3(),d=p3(),f=h3(),p=g3(),m=m3(),y=y3(),S=b3(),b=v3(),v=Function,x=function(re){try{return v('"use strict"; return ('+re+").constructor;")()}catch(Y){}},C=Jd(),A=x3(),$=function(){throw new u},w=C?(function(){try{return arguments.callee,$}catch(re){try{return C(arguments,"callee").get}catch(Y){return $}}})():$,_=T1()(),O=T3(),T=O1(),I=A1(),D=R1(),M=Zd(),k={},R=typeof Uint8Array>"u"||!O?r:O(Uint8Array),j={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":_&&O?O([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%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%":o,"%eval%":eval,"%EvalError%":i,"%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%":k,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&O?O(O([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_||!O?r:O(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":C,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_||!O?r:O(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&O?O(""[Symbol.iterator]()):r,"%Symbol%":_?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":w,"%TypedArray%":R,"%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%":M,"%Function.prototype.apply%":D,"%Object.defineProperty%":A,"%Object.getPrototypeOf%":T,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":y,"%Math.round%":S,"%Math.sign%":b,"%Reflect.getPrototypeOf%":I};if(O)try{null.error}catch(re){L=O(O(re)),j["%Error.prototype%"]=L}var L,z=function re(Y){var Z;if(Y==="%AsyncFunction%")Z=x("async function () {}");else if(Y==="%GeneratorFunction%")Z=x("function* () {}");else if(Y==="%AsyncGeneratorFunction%")Z=x("async function* () {}");else if(Y==="%AsyncGenerator%"){var ie=re("%AsyncGeneratorFunction%");ie&&(Z=ie.prototype)}else if(Y==="%AsyncIteratorPrototype%"){var pe=re("%AsyncGenerator%");pe&&O&&(Z=O(pe.prototype))}return j[Y]=Z,Z},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=il(),F=P1(),H=B.call(M,Array.prototype.concat),W=B.call(D,Array.prototype.splice),V=B.call(M,String.prototype.replace),K=B.call(M,String.prototype.slice),q=B.call(M,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,te=/\\(\\)?/g,J=function(re){var Y=K(re,0,1),Z=K(re,-1);if(Y==="%"&&Z!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(Z==="%"&&Y!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var ie=[];return V(re,X,function(pe,nt,ee,ot){ie[ie.length]=ee?V(ot,te,"$1"):nt||pe}),ie},Oe=function(re,Y){var Z=re,ie;if(F(U,Z)&&(ie=U[Z],Z="%"+ie[0]+"%"),F(j,Z)){var pe=j[Z];if(pe===k&&(pe=z(Z)),typeof pe>"u"&&!Y)throw new u("intrinsic "+re+" exists, but is not available. Please file an issue!");return{alias:ie,name:Z,value:pe}}throw new s("intrinsic "+re+" does not exist!")};t.exports=function(re,Y){if(typeof re!="string"||re.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Y!="boolean")throw new u('"allowMissing" argument must be a boolean');if(q(/^%?[^%]*%?$/,re)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Z=J(re),ie=Z.length>0?Z[0]:"",pe=Oe("%"+ie+"%",Y),nt=pe.name,ee=pe.value,ot=!1,Ft=pe.alias;Ft&&(ie=Ft[0],W(Z,H([0,1],Ft)));for(var ht=1,Lt=!0;ht<Z.length;ht+=1){var ke=Z[ht],sr=K(ke,0,1),ur=K(ke,-1);if((sr==='"'||sr==="'"||sr==="`"||ur==='"'||ur==="'"||ur==="`")&&sr!==ur)throw new s("property names with quotes must have matching quotes");if((ke==="constructor"||!Lt)&&(ot=!0),ie+="."+ke,nt="%"+ie+"%",F(j,nt))ee=j[nt];else if(ee!=null){if(!(ke in ee)){if(!Y)throw new u("base intrinsic for "+re+" exists, but the property is not available.");return}if(C&&ht+1>=Z.length){var cr=C(ee,ke);Lt=!!cr,Lt&&"get"in cr&&!("originalValue"in cr.get)?ee=cr.get:ee=ee[ke]}else Lt=F(ee,ke),ee=ee[ke];Lt&&!ot&&(j[nt]=ee)}}return ee}}}),Qd=se({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=A3(),n=D1(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(i,a){var l=r(i,!!a);return typeof l=="function"&&o(i,".prototype.")>-1?n([l]):l}}}),O3=se({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=_1();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),I1=se({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=Qd(),n=O3()(),o=P1(),i=Jd(),a;n?(l=r("RegExp.prototype.exec"),s={},u=function(){throw s},c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),a=function(p){if(!p||typeof p!="object")return!1;var m=i(p,"lastIndex"),y=m&&o(m,"value");if(!y)return!1;try{l(p,c)}catch(S){return S===s}}):(d=r("Object.prototype.toString"),f="[object RegExp]",a=function(p){return!p||typeof p!="object"&&typeof p!="function"?!1:d(p)===f});var l,s,u,c,d,f;t.exports=a}}),R3=se({"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(o){if(!o)return!1;var i=r.call(o);return i==="[object Function]"||typeof o=="function"&&i!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),D3=se({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=Qd(),n=I1(),o=r("RegExp.prototype.exec"),i=Xd();t.exports=function(a){if(!n(a))throw new i("`regex` must be a RegExp");return function(l){return o(a,l)!==null}}}}),P3=se({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=Qd(),n=r("Object.prototype.toString"),o=T1()(),i=D3();o?(a=r("Symbol.prototype.toString"),l=i(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(a(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(c){return!1}}):t.exports=function(u){return!1};var a,l,s}}),I3=Yd(I1()),F3=Yd(R3()),L3=Yd(P3());function k3(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var N3=typeof global=="object"&&global&&global.Object===Object&&global,M3=N3,B3=typeof self=="object"&&self&&self.Object===Object&&self,j3=M3||B3||Function("return this")(),ef=j3,H3=ef.Symbol,Un=H3,F1=Object.prototype,U3=F1.hasOwnProperty,z3=F1.toString,So=Un?Un.toStringTag:void 0;function K3(e){var t=U3.call(e,So),r=e[So];try{e[So]=void 0;var n=!0}catch(i){}var o=z3.call(e);return n&&(t?e[So]=r:delete e[So]),o}var G3=K3,W3=Object.prototype,V3=W3.toString;function q3(e){return V3.call(e)}var Y3=q3,X3="[object Null]",J3="[object Undefined]",ig=Un?Un.toStringTag:void 0;function Z3(e){return e==null?e===void 0?J3:X3:ig&&ig in Object(e)?G3(e):Y3(e)}var L1=Z3;function Q3(e){return e!=null&&typeof e=="object"}var eP=Q3,tP="[object Symbol]";function rP(e){return typeof e=="symbol"||eP(e)&&L1(e)==tP}var tf=rP;function nP(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var oP=nP,iP=Array.isArray,rf=iP,ag=Un?Un.prototype:void 0,lg=ag?ag.toString:void 0;function k1(e){if(typeof e=="string")return e;if(rf(e))return oP(e,k1)+"";if(tf(e))return lg?lg.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var aP=k1;function lP(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var N1=lP,sP="[object AsyncFunction]",uP="[object Function]",cP="[object GeneratorFunction]",dP="[object Proxy]";function fP(e){if(!N1(e))return!1;var t=L1(e);return t==uP||t==cP||t==sP||t==dP}var pP=fP,hP=ef["__core-js_shared__"],cs=hP,sg=(function(){var e=/[^.]+$/.exec(cs&&cs.keys&&cs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function gP(e){return!!sg&&sg in e}var mP=gP,yP=Function.prototype,bP=yP.toString;function EP(e){if(e!=null){try{return bP.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var vP=EP,SP=/[\\^$.*+?()[\]{}|]/g,xP=/^\[object .+?Constructor\]$/,$P=Function.prototype,wP=Object.prototype,CP=$P.toString,_P=wP.hasOwnProperty,TP=RegExp("^"+CP.call(_P).replace(SP,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function AP(e){if(!N1(e)||mP(e))return!1;var t=pP(e)?TP:xP;return t.test(vP(e))}var OP=AP;function RP(e,t){return e==null?void 0:e[t]}var DP=RP;function PP(e,t){var r=DP(e,t);return OP(r)?r:void 0}var M1=PP;function IP(e,t){return e===t||e!==e&&t!==t}var FP=IP,LP=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,kP=/^\w*$/;function NP(e,t){if(rf(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||tf(e)?!0:kP.test(e)||!LP.test(e)||t!=null&&e in Object(t)}var MP=NP,BP=M1(Object,"create"),Wo=BP;function jP(){this.__data__=Wo?Wo(null):{},this.size=0}var HP=jP;function UP(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var zP=UP,KP="__lodash_hash_undefined__",GP=Object.prototype,WP=GP.hasOwnProperty;function VP(e){var t=this.__data__;if(Wo){var r=t[e];return r===KP?void 0:r}return WP.call(t,e)?t[e]:void 0}var qP=VP,YP=Object.prototype,XP=YP.hasOwnProperty;function JP(e){var t=this.__data__;return Wo?t[e]!==void 0:XP.call(t,e)}var ZP=JP,QP="__lodash_hash_undefined__";function e2(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Wo&&t===void 0?QP:t,this}var t2=e2;function ro(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ro.prototype.clear=HP;ro.prototype.delete=zP;ro.prototype.get=qP;ro.prototype.has=ZP;ro.prototype.set=t2;var ug=ro;function r2(){this.__data__=[],this.size=0}var n2=r2;function o2(e,t){for(var r=e.length;r--;)if(FP(e[r][0],t))return r;return-1}var al=o2,i2=Array.prototype,a2=i2.splice;function l2(e){var t=this.__data__,r=al(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():a2.call(t,r,1),--this.size,!0}var s2=l2;function u2(e){var t=this.__data__,r=al(t,e);return r<0?void 0:t[r][1]}var c2=u2;function d2(e){return al(this.__data__,e)>-1}var f2=d2;function p2(e,t){var r=this.__data__,n=al(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var h2=p2;function no(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}no.prototype.clear=n2;no.prototype.delete=s2;no.prototype.get=c2;no.prototype.has=f2;no.prototype.set=h2;var g2=no,m2=M1(ef,"Map"),y2=m2;function b2(){this.size=0,this.__data__={hash:new ug,map:new(y2||g2),string:new ug}}var E2=b2;function v2(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var S2=v2;function x2(e,t){var r=e.__data__;return S2(t)?r[typeof t=="string"?"string":"hash"]:r.map}var ll=x2;function $2(e){var t=ll(this,e).delete(e);return this.size-=t?1:0,t}var w2=$2;function C2(e){return ll(this,e).get(e)}var _2=C2;function T2(e){return ll(this,e).has(e)}var A2=T2;function O2(e,t){var r=ll(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var R2=O2;function oo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}oo.prototype.clear=E2;oo.prototype.delete=w2;oo.prototype.get=_2;oo.prototype.has=A2;oo.prototype.set=R2;var B1=oo,D2="Expected a function";function nf(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(D2);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(nf.Cache||B1),r}nf.Cache=B1;var P2=nf,I2=500;function F2(e){var t=P2(e,function(n){return r.size===I2&&r.clear(),n}),r=t.cache;return t}var L2=F2,k2=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,N2=/\\(\\)?/g,M2=L2(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(k2,function(r,n,o,i){t.push(o?i.replace(N2,"$1"):n||r)}),t}),B2=M2;function j2(e){return e==null?"":aP(e)}var H2=j2;function U2(e,t){return rf(e)?e:MP(e,t)?[e]:B2(H2(e))}var z2=U2;function K2(e){if(typeof e=="string"||tf(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var G2=K2;function W2(e,t){t=z2(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[G2(t[r++])];return r&&r==n?e:void 0}var V2=W2;function q2(e,t,r){var n=e==null?void 0:V2(e,t);return n===void 0?r:n}var Y2=q2,of=k3,X2=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,J2=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function j1(e){if(!of(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=a3(t),r=!0),t=Object.keys(t).reduce((n,o)=>{try{t[o]&&t[o].toJSON,n[o]=t[o]}catch(i){r=!0}return n},{}),r?t:e}var Z2=function(e){let t,r,n,o;return function(i,a){var l;try{if(i==="")return o=[],t=new Map([[a,"[]"]]),r=new Map,n=[],a;let s=r.get(this)||this;for(;n.length&&s!==n[0];)n.shift(),o.pop();if(typeof a=="boolean")return a;if(a===void 0)return e.allowUndefined?"_undefined_":void 0;if(a===null)return null;if(typeof a=="number")return a===Number.NEGATIVE_INFINITY?"_-Infinity_":a===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(a)?"_NaN_":a;if(typeof a=="bigint")return`_bigint_${a.toString()}`;if(typeof a=="string")return X2.test(a)?e.allowDate?`_date_${a}`:void 0:a;if((0,I3.default)(a))return e.allowRegExp?`_regexp_${a.flags}|${a.source}`:void 0;if((0,F3.default)(a))return;if((0,L3.default)(a)){if(!e.allowSymbol)return;let c=Symbol.keyFor(a);return c!==void 0?`_gsymbol_${c}`:`_symbol_${a.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(a)?`[Array(${a.length})]`:"[Object]";if(a===this)return`_duplicate_${JSON.stringify(o)}`;if(a instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:P(E(E({},a.cause?{cause:a.cause}:{}),a),{name:a.name,message:a.message,stack:a.stack,"_constructor-name_":a.constructor.name})};if((l=a==null?void 0:a.constructor)!=null&&l.name&&a.constructor.name!=="Object"&&!Array.isArray(a)){let c=t.get(a);if(!c){let d=E({__isClassInstance__:!0,__className__:a.constructor.name},Object.getOwnPropertyNames(a).reduce((f,p)=>{try{f[p]=a[p]}catch(m){}return f},{}));return o.push(i),n.unshift(d),t.set(a,JSON.stringify(o)),a!==d&&r.set(a,d),d}return`_duplicate_${c}`}let u=t.get(a);if(!u){let c=Array.isArray(a)?a:j1(a);return o.push(i),n.unshift(c),t.set(a,JSON.stringify(o)),a!==c&&r.set(a,c),c}return`_duplicate_${u}`}catch(s){return}}},Q2=function(e){let t=[],r;return function(n,o){if(n===""&&(r=o,t.forEach(({target:a,container:l,replacement:s})=>{let u=J2(s)?JSON.parse(s):s.split(".");u.length===0?l[a]=r:l[a]=Y2(r,u)})),n==="_constructor-name_")return o;if(of(o)&&o.__isConvertedError__){let i=o.errorProperties,{message:a}=i,l=G(i,["message"]),s=new Error(a);return Object.assign(s,l),s}if(typeof o=="string"&&o.startsWith("_regexp_")&&e.allowRegExp){let[,a,l]=o.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(l,a)}return typeof o=="string"&&o.startsWith("_date_")&&e.allowDate?new Date(o.replace("_date_","")):typeof o=="string"&&o.startsWith("_duplicate_")?(t.push({target:n,container:this,replacement:o.replace(/^_duplicate_/,"")}),null):typeof o=="string"&&o.startsWith("_symbol_")&&e.allowSymbol?Symbol(o.replace("_symbol_","")):typeof o=="string"&&o.startsWith("_gsymbol_")&&e.allowSymbol?Symbol.for(o.replace("_gsymbol_","")):typeof o=="string"&&o==="_-Infinity_"?Number.NEGATIVE_INFINITY:typeof o=="string"&&o==="_Infinity_"?Number.POSITIVE_INFINITY:typeof o=="string"&&o==="_NaN_"?Number.NaN:typeof o=="string"&&o.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(o.replace("_bigint_","")):o}},H1={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},eI=(e,t={})=>{let r=E(E({},H1),t);return JSON.stringify(j1(e),Z2(r),t.space)},tI=()=>{let e=new Map;return function t(r){of(r)&&Object.entries(r).forEach(([n,o])=>{o==="_undefined_"?r[n]=void 0:e.get(o)||(e.set(o,!0),t(o))}),Array.isArray(r)&&r.forEach((n,o)=>{n==="_undefined_"?(e.set(n,!0),r[o]=void 0):e.get(n)||(e.set(n,!0),t(n))})}},rI=(e,t={})=>{let r=E(E({},H1),t),n=JSON.parse(e,Q2(r));return tI()(n),n};function cg({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}function dg(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(t){return e}}var af=class U1 extends Error{constructor(t){var r,n,o;super(U1.getFullMessage(t)),this.data={},this.fromStorybook=!0,this.isHandledError=!1,this.subErrors=[],this.category=t.category,this.documentation=(r=t.documentation)!=null?r:!1,this.code=t.code,this.isHandledError=(n=t.isHandledError)!=null?n:!1,this.name=t.name,this.subErrors=(o=t.subErrors)!=null?o:[]}get fullErrorCode(){return cg({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:o}){let i;return t===!0?i=`https://storybook.js.org/error/${cg({code:r,category:n})}?ref=error`:typeof t=="string"?i=dg(t):Array.isArray(t)&&(i=`
|
|
632
|
+
${t.map(a=>` - ${dg(a)}`).join(`
|
|
633
|
+
`)}`),`${o}${i!=null?`
|
|
634
|
+
|
|
635
|
+
More info: ${i}
|
|
636
|
+
`:""}`}},nI=class extends af{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}},oI=class extends af{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}},fg=Object.prototype.hasOwnProperty;function pg(e,t,r){for(r of e.keys())if(rr(r,t))return r}function rr(e,t){var r,n,o;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--&&rr(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(o=n,o&&typeof o=="object"&&(o=pg(t,o),!o)||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(o=n[0],o&&typeof o=="object"&&(o=pg(t,o),!o)||!rr(n[1],t.get(o)))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(fg.call(e,r)&&++n&&!fg.call(t,r)||!(r in t)||!rr(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function hg(e,t){let r=[],n=[];for(let o=0;o<e.length;o++){let i=e[o];t(i)?r.push(i):n.push(i)}return[r,n]}function iI(e,t){var n;let r={};for(let o=0;o<e.length;o++){let i=e[o],a=t(i);r[a]=((n=r[a])!=null?n:0)+1}return r}var aI=tt({"../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}});const{once:lI}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var lf=vt(Qn(),1),z1=vt(iC(),1),sI=/\/([^/]+)\/(?:(.*)_)?([^/]+)?/;(0,lf.default)(1e3)(e=>{let t={viewMode:void 0,storyId:void 0,refId:void 0};if(e){let[,r,n,o]=e.toLowerCase().match(sI)||[];r&&Object.assign(t,{viewMode:r,storyId:o,refId:n})}return t});var aa=Symbol("Deeply equal"),xc=(e,t)=>{if(typeof e!=typeof t)return t;if(Qt(e,t))return aa;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,o,i)=>{let a=xc(e[i],o);return a!==aa&&(n[i]=a),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return ar(e)&&ar(t)?Object.keys(E(E({},e),t)).reduce((r,n)=>{let o=xc(e==null?void 0:e[n],t==null?void 0:t[n]);return o===aa?r:Object.assign(r,{[n]:o})},{}):t},gg=/^[a-zA-Z0-9 _-]*$/,uI=/^-?[0-9]+(\.[0-9]+)?$/,K1=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,G1=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,$c=(e="",t)=>e===null||e===""||!gg.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?gg.test(t)||uI.test(t)||K1.test(t)||G1.test(t):Array.isArray(t)?t.every(r=>$c(e,r)):ar(t)?Object.entries(t).every(([r,n])=>$c(r,n)):!1,wc=e=>e===void 0?"!undefined":e===null?"!null":typeof e=="string"?K1.test(e)?`!hex(${e.slice(1)})`:G1.test(e)?`!${e.replace(/[\s%]/g,"")}`:e:typeof e=="boolean"?`!${e}`:e instanceof Date?`!date(${e.toISOString()})`:Array.isArray(e)?e.map(wc):ar(e)?Object.entries(e).reduce((t,[r,n])=>Object.assign(t,{[r]:wc(n)}),{}):e,cI=e=>{switch(e){case"%20":return"+";case"%5B":return"[";case"%5D":return"]";case"%2C":return",";case"%3A":return":"}return e},dI=/%[0-9A-F]{2}/g,mg=(e,t)=>{let r=xc(e,t);if(!r||r===aa)return"";let n=Object.entries(r).reduce((o,[i,a])=>$c(i,a)?Object.assign(o,{[i]:a}):(lI.warn(At`
|
|
637
|
+
Omitted potentially unsafe URL args.
|
|
638
|
+
|
|
639
|
+
More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url
|
|
640
|
+
`),o),{});return(0,z1.stringify)(wc(n),{delimiter:";",nesting:!0,nestingSyntax:"js"}).replace(dI,cI).split(";").map(o=>o.replace("=",":")).join(";")},fI=(0,lf.default)(1e3)(e=>e!==void 0?(0,z1.parse)(e):{}),pI=e=>fI(e.search?e.search.slice(1):"");(0,lf.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,o=e&&t&&e.match(t);return n||o?{path:e}:null});const{global:hI}=__STORYBOOK_MODULE_GLOBAL__;function Cc(){return Cc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cc.apply(this,arguments)}var yg;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(yg||(yg={}));function Rt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function _c(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 W1(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 bg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(bg||(bg={}));function Tc(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 gI(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?W1(e):e;return{pathname:r?r.startsWith("/")?r:mI(r,t):t,search:yI(n),hash:bI(o)}}function mI(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 ds(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function V1(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function q1(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=W1(e):(o=Cc({},e),Rt(!o.pathname||!o.pathname.includes("?"),ds("?","pathname","search",o)),Rt(!o.pathname||!o.pathname.includes("#"),ds("#","pathname","hash",o)),Rt(!o.search||!o.search.includes("#"),ds("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(n||a==null)l=r;else{let d=t.length-1;if(a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}l=d>=0?t[d]:"/"}let s=gI(o,l),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}var sf=e=>e.join("/").replace(/\/\/+/g,"/"),yI=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bI=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function EI(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Y1=["post","put","patch","delete"];new Set(Y1);var vI=["get",...Y1];new Set(vI);function Ac(){return Ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ac.apply(this,arguments)}var uf=h.createContext(null),X1=h.createContext(null);h.createContext(null);var gn=h.createContext(null),J1=h.createContext(null),si=h.createContext({outlet:null,matches:[],isDataRoute:!1}),SI=h.createContext(null);function xI(e,t){let{relative:r}=t===void 0?{}:t;cf()||Rt(!1);let{basename:n,navigator:o}=h.useContext(gn),{hash:i,pathname:a,search:l}=sl(e,{relative:r}),s=a;return n!=="/"&&(s=a==="/"?n:sf([n,a])),o.createHref({pathname:s,search:l,hash:i})}function cf(){return h.useContext(J1)!=null}function ui(){return cf()||Rt(!1),h.useContext(J1).location}function Z1(e){h.useContext(gn).static||h.useLayoutEffect(e)}function $I(){let{isDataRoute:e}=h.useContext(si);return e?DI():wI()}function wI(){cf()||Rt(!1);let e=h.useContext(uf),{basename:t,navigator:r}=h.useContext(gn),{matches:n}=h.useContext(si),{pathname:o}=ui(),i=JSON.stringify(V1(n).map(l=>l.pathnameBase)),a=h.useRef(!1);return Z1(()=>{a.current=!0}),h.useCallback(function(l,s){if(s===void 0&&(s={}),!a.current)return;if(typeof l=="number"){r.go(l);return}let u=q1(l,JSON.parse(i),o,s.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:sf([t,u.pathname])),(s.replace?r.replace:r.push)(u,s.state,s)},[t,r,i,o,e])}h.createContext(null);function sl(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=h.useContext(si),{pathname:o}=ui(),i=JSON.stringify(V1(n).map(a=>a.pathnameBase));return h.useMemo(()=>q1(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function CI(){let e=RI(),t=EI(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)",o={padding:"0.5rem",backgroundColor:n};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),r?h.createElement("pre",{style:o},r):null,null)}h.createElement(CI,null);var Q1=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(Q1||{}),Vo=(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})(Vo||{});function _I(e){let t=h.useContext(uf);return t||Rt(!1),t}function TI(e){let t=h.useContext(X1);return t||Rt(!1),t}function AI(e){let t=h.useContext(si);return t||Rt(!1),t}function df(e){let t=AI(),r=t.matches[t.matches.length-1];return r.route.id||Rt(!1),r.route.id}function OI(){return df(Vo.UseRouteId)}function RI(){var e;let t=h.useContext(SI),r=TI(Vo.UseRouteError),n=df(Vo.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function DI(){let{router:e}=_I(Q1.UseNavigateStable),t=df(Vo.UseNavigateStable),r=h.useRef(!1);return Z1(()=>{r.current=!0}),h.useCallback(function(n,o){o===void 0&&(o={}),r.current&&(typeof n=="number"?e.navigate(n):e.navigate(n,Ac({fromRouteId:t},o)))},[e,t])}var PI=(function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e})(PI||{});new Promise(()=>{});function un(){return un=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},un.apply(this,arguments)}function ff(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var la="get",fs="application/x-www-form-urlencoded";function ul(e){return e!=null&&typeof e.tagName=="string"}function II(e){return ul(e)&&e.tagName.toLowerCase()==="button"}function FI(e){return ul(e)&&e.tagName.toLowerCase()==="form"}function LI(e){return ul(e)&&e.tagName.toLowerCase()==="input"}function kI(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function NI(e,t){return e.button===0&&(!t||t==="_self")&&!kI(e)}var Fi=null;function MI(){if(Fi===null)try{new FormData(document.createElement("form"),0),Fi=!1}catch(e){Fi=!0}return Fi}var BI=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ps(e){return e!=null&&!BI.has(e)?null:e}function jI(e,t){let r,n,o,i,a;if(FI(e)){let l=e.getAttribute("action");n=l?Tc(l,t):null,r=e.getAttribute("method")||la,o=ps(e.getAttribute("enctype"))||fs,i=new FormData(e)}else if(II(e)||LI(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||l.getAttribute("action");if(n=s?Tc(s,t):null,r=e.getAttribute("formmethod")||l.getAttribute("method")||la,o=ps(e.getAttribute("formenctype"))||ps(l.getAttribute("enctype"))||fs,i=new FormData(l,e),!MI()){let{name:u,type:c,value:d}=e;if(c==="image"){let f=u?u+".":"";i.append(f+"x","0"),i.append(f+"y","0")}else u&&i.append(u,d)}}else{if(ul(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=la,n=null,o=fs,a=e}return i&&o==="text/plain"&&(a=i,i=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:i,body:a}}var HI=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],UI=["aria-current","caseSensitive","className","end","style","to","children"],zI=["reloadDocument","replace","state","method","action","onSubmit","submit","relative","preventScrollReset"],KI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",GI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,WI=h.forwardRef(function(e,t){let{onClick:r,relative:n,reloadDocument:o,replace:i,state:a,target:l,to:s,preventScrollReset:u}=e,c=ff(e,HI),{basename:d}=h.useContext(gn),f,p=!1;if(typeof s=="string"&&GI.test(s)&&(f=s,KI))try{let b=new URL(window.location.href),v=s.startsWith("//")?new URL(b.protocol+s):new URL(s),x=Tc(v.pathname,d);v.origin===b.origin&&x!=null?s=x+v.search+v.hash:p=!0}catch(b){}let m=xI(s,{relative:n}),y=YI(s,{replace:i,state:a,target:l,preventScrollReset:u,relative:n});function S(b){r&&r(b),b.defaultPrevented||y(b)}return h.createElement("a",un({},c,{href:f||m,onClick:p||o?r:S,ref:t,target:l}))});h.forwardRef(function(e,t){let{"aria-current":r="page",caseSensitive:n=!1,className:o="",end:i=!1,style:a,to:l,children:s}=e,u=ff(e,UI),c=sl(l,{relative:u.relative}),d=ui(),f=h.useContext(X1),{navigator:p}=h.useContext(gn),m=p.encodeLocation?p.encodeLocation(c).pathname:c.pathname,y=d.pathname,S=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;n||(y=y.toLowerCase(),S=S?S.toLowerCase():null,m=m.toLowerCase());let b=y===m||!i&&y.startsWith(m)&&y.charAt(m.length)==="/",v=S!=null&&(S===m||!i&&S.startsWith(m)&&S.charAt(m.length)==="/"),x=b?r:void 0,C;typeof o=="function"?C=o({isActive:b,isPending:v}):C=[o,b?"active":null,v?"pending":null].filter(Boolean).join(" ");let A=typeof a=="function"?a({isActive:b,isPending:v}):a;return h.createElement(WI,un({},u,{"aria-current":x,className:C,ref:t,style:A,to:l}),typeof s=="function"?s({isActive:b,isPending:v}):s)});h.forwardRef((e,t)=>{let r=JI();return h.createElement(VI,un({},e,{submit:r,ref:t}))});var VI=h.forwardRef((e,t)=>{let{reloadDocument:r,replace:n,state:o,method:i=la,action:a,onSubmit:l,submit:s,relative:u,preventScrollReset:c}=e,d=ff(e,zI),f=i.toLowerCase()==="get"?"get":"post",p=ZI(a,{relative:u});return h.createElement("form",un({ref:t,method:f,action:p,onSubmit:r?l:m=>{if(l&&l(m),m.defaultPrevented)return;m.preventDefault();let y=m.nativeEvent.submitter,S=(y==null?void 0:y.getAttribute("formmethod"))||i;s(y||m.currentTarget,{method:S,replace:n,state:o,relative:u,preventScrollReset:c})}},d))}),Oc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(Oc||(Oc={}));var Eg;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Eg||(Eg={}));function qI(e){let t=h.useContext(uf);return t||Rt(!1),t}function YI(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,l=$I(),s=ui(),u=sl(e,{relative:a});return h.useCallback(c=>{if(NI(c,r)){c.preventDefault();let d=n!==void 0?n:_c(s)===_c(u);l(e,{replace:d,state:o,preventScrollReset:i,relative:a})}},[s,l,u,n,o,r,e,i,a])}function XI(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}function JI(){let{router:e}=qI(Oc.UseSubmit),{basename:t}=h.useContext(gn),r=OI();return h.useCallback(function(n,o){o===void 0&&(o={}),XI();let{action:i,method:a,encType:l,formData:s,body:u}=jI(n,t);e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||a,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:r})},[e,t,r])}function ZI(e,t){let{relative:r}=t===void 0?{}:t,{basename:n}=h.useContext(gn),o=h.useContext(si);o||Rt(!1);let[i]=o.matches.slice(-1),a=un({},sl(e||".",{relative:r})),l=ui();if(e==null&&(a.search=l.search,i.route.index)){let s=new URLSearchParams(a.search);s.delete("index"),a.search=s.toString()?"?"+s.toString():""}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:sf([n,a.pathname])),_c(a)}var{document:wq}=hI,Li={exports:{}},hs,vg;function cl(){if(vg)return hs;vg=1;const e="2.0.0",t=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,o=t-6;return hs={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},hs}var gs,Sg;function dl(){if(Sg)return gs;Sg=1;var e={};return gs=typeof process=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{},gs}var xg;function ci(){return xg||(xg=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:o}=cl(),i=dl();t=e.exports={};const a=t.re=[],l=t.safeRe=[],s=t.src=[],u=t.safeSrc=[],c=t.t={};let d=0;const f="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[f,n]],m=S=>{for(const[b,v]of p)S=S.split(`${b}*`).join(`${b}{0,${v}}`).split(`${b}+`).join(`${b}{1,${v}}`);return S},y=(S,b,v)=>{const x=m(b),C=d++;i(S,C,b),c[S]=C,s[C]=b,u[C]=x,a[C]=new RegExp(b,v?"g":void 0),l[C]=new RegExp(x,v?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),y("MAINVERSION",`(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${s[c.NONNUMERICIDENTIFIER]}|${s[c.NUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${s[c.NONNUMERICIDENTIFIER]}|${s[c.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASE",`(?:-(${s[c.PRERELEASEIDENTIFIER]}(?:\\.${s[c.PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${s[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[c.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",`${f}+`),y("BUILD",`(?:\\+(${s[c.BUILDIDENTIFIER]}(?:\\.${s[c.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${s[c.MAINVERSION]}${s[c.PRERELEASE]}?${s[c.BUILD]}?`),y("FULL",`^${s[c.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${s[c.MAINVERSIONLOOSE]}${s[c.PRERELEASELOOSE]}?${s[c.BUILD]}?`),y("LOOSE",`^${s[c.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRANGEIDENTIFIERLOOSE",`${s[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),y("XRANGEIDENTIFIER",`${s[c.NUMERICIDENTIFIER]}|x|X|\\*`),y("XRANGEPLAIN",`[v=\\s]*(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:${s[c.PRERELEASE]})?${s[c.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:${s[c.PRERELEASELOOSE]})?${s[c.BUILD]}?)?)?`),y("XRANGE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAIN]}$`),y("XRANGELOOSE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAINLOOSE]}$`),y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),y("COERCE",`${s[c.COERCEPLAIN]}(?:$|[^\\d])`),y("COERCEFULL",s[c.COERCEPLAIN]+`(?:${s[c.PRERELEASE]})?(?:${s[c.BUILD]})?(?:$|[^\\d])`),y("COERCERTL",s[c.COERCE],!0),y("COERCERTLFULL",s[c.COERCEFULL],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${s[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",y("TILDE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAIN]}$`),y("TILDELOOSE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${s[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",y("CARET",`^${s[c.LONECARET]}${s[c.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${s[c.LONECARET]}${s[c.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${s[c.GTLT]}\\s*(${s[c.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]}|${s[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",y("HYPHENRANGE",`^\\s*(${s[c.XRANGEPLAIN]})\\s+-\\s+(${s[c.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${s[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[c.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Li,Li.exports)),Li.exports}var ms,$g;function pf(){if($g)return ms;$g=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return ms=n=>n?typeof n!="object"?e:n:t,ms}var ys,wg;function eE(){if(wg)return ys;wg=1;const e=/^[0-9]+$/,t=(n,o)=>{if(typeof n=="number"&&typeof o=="number")return n===o?0:n<o?-1:1;const i=e.test(n),a=e.test(o);return i&&a&&(n=+n,o=+o),n===o?0:i&&!a?-1:a&&!i?1:n<o?-1:1};return ys={compareIdentifiers:t,rcompareIdentifiers:(n,o)=>t(o,n)},ys}var bs,Cg;function lt(){if(Cg)return bs;Cg=1;const e=dl(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:r}=cl(),{safeRe:n,t:o}=ci(),i=pf(),{compareIdentifiers:a}=eE();class l{constructor(u,c){if(c=i(c),u instanceof l){if(u.loose===!!c.loose&&u.includePrerelease===!!c.includePrerelease)return u;u=u.version}else if(typeof u!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof u}".`);if(u.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",u,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;const d=u.trim().match(c.loose?n[o.LOOSE]:n[o.FULL]);if(!d)throw new TypeError(`Invalid Version: ${u}`);if(this.raw=u,this.major=+d[1],this.minor=+d[2],this.patch=+d[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");d[4]?this.prerelease=d[4].split(".").map(f=>{if(/^[0-9]+$/.test(f)){const p=+f;if(p>=0&&p<r)return p}return f}):this.prerelease=[],this.build=d[5]?d[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(u){if(e("SemVer.compare",this.version,this.options,u),!(u instanceof l)){if(typeof u=="string"&&u===this.version)return 0;u=new l(u,this.options)}return u.version===this.version?0:this.compareMain(u)||this.comparePre(u)}compareMain(u){return u instanceof l||(u=new l(u,this.options)),this.major<u.major?-1:this.major>u.major?1:this.minor<u.minor?-1:this.minor>u.minor?1:this.patch<u.patch?-1:this.patch>u.patch?1:0}comparePre(u){if(u instanceof l||(u=new l(u,this.options)),this.prerelease.length&&!u.prerelease.length)return-1;if(!this.prerelease.length&&u.prerelease.length)return 1;if(!this.prerelease.length&&!u.prerelease.length)return 0;let c=0;do{const d=this.prerelease[c],f=u.prerelease[c];if(e("prerelease compare",c,d,f),d===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(d===void 0)return-1;if(d===f)continue;return a(d,f)}while(++c)}compareBuild(u){u instanceof l||(u=new l(u,this.options));let c=0;do{const d=this.build[c],f=u.build[c];if(e("build compare",c,d,f),d===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(d===void 0)return-1;if(d===f)continue;return a(d,f)}while(++c)}inc(u,c,d){if(u.startsWith("pre")){if(!c&&d===!1)throw new Error("invalid increment argument: identifier is empty");if(c){const f=`-${c}`.match(this.options.loose?n[o.PRERELEASELOOSE]:n[o.PRERELEASE]);if(!f||f[1]!==c)throw new Error(`invalid identifier: ${c}`)}}switch(u){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",c,d);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",c,d);break;case"prepatch":this.prerelease.length=0,this.inc("patch",c,d),this.inc("pre",c,d);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",c,d),this.inc("pre",c,d);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const f=Number(d)?1:0;if(this.prerelease.length===0)this.prerelease=[f];else{let p=this.prerelease.length;for(;--p>=0;)typeof this.prerelease[p]=="number"&&(this.prerelease[p]++,p=-2);if(p===-1){if(c===this.prerelease.join(".")&&d===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(f)}}if(c){let p=[c,f];d===!1&&(p=[c]),a(this.prerelease[0],c)===0?isNaN(this.prerelease[1])&&(this.prerelease=p):this.prerelease=p}break}default:throw new Error(`invalid increment argument: ${u}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return bs=l,bs}var Es,_g;function io(){if(_g)return Es;_g=1;const e=lt();return Es=(r,n,o=!1)=>{if(r instanceof e)return r;try{return new e(r,n)}catch(i){if(!o)return null;throw i}},Es}var vs,Tg;function QI(){if(Tg)return vs;Tg=1;const e=io();return vs=(r,n)=>{const o=e(r,n);return o?o.version:null},vs}var Ss,Ag;function eF(){if(Ag)return Ss;Ag=1;const e=io();return Ss=(r,n)=>{const o=e(r.trim().replace(/^[=v]+/,""),n);return o?o.version:null},Ss}var xs,Og;function tF(){if(Og)return xs;Og=1;const e=lt();return xs=(r,n,o,i,a)=>{typeof o=="string"&&(a=i,i=o,o=void 0);try{return new e(r instanceof e?r.version:r,o).inc(n,i,a).version}catch(l){return null}},xs}var $s,Rg;function rF(){if(Rg)return $s;Rg=1;const e=io();return $s=(r,n)=>{const o=e(r,null,!0),i=e(n,null,!0),a=o.compare(i);if(a===0)return null;const l=a>0,s=l?o:i,u=l?i:o,c=!!s.prerelease.length;if(!!u.prerelease.length&&!c){if(!u.patch&&!u.minor)return"major";if(u.compareMain(s)===0)return u.minor&&!u.patch?"minor":"patch"}const f=c?"pre":"";return o.major!==i.major?f+"major":o.minor!==i.minor?f+"minor":o.patch!==i.patch?f+"patch":"prerelease"},$s}var ws,Dg;function nF(){if(Dg)return ws;Dg=1;const e=lt();return ws=(r,n)=>new e(r,n).major,ws}var Cs,Pg;function oF(){if(Pg)return Cs;Pg=1;const e=lt();return Cs=(r,n)=>new e(r,n).minor,Cs}var _s,Ig;function iF(){if(Ig)return _s;Ig=1;const e=lt();return _s=(r,n)=>new e(r,n).patch,_s}var Ts,Fg;function aF(){if(Fg)return Ts;Fg=1;const e=io();return Ts=(r,n)=>{const o=e(r,n);return o&&o.prerelease.length?o.prerelease:null},Ts}var As,Lg;function Kt(){if(Lg)return As;Lg=1;const e=lt();return As=(r,n,o)=>new e(r,o).compare(new e(n,o)),As}var Os,kg;function lF(){if(kg)return Os;kg=1;const e=Kt();return Os=(r,n,o)=>e(n,r,o),Os}var Rs,Ng;function sF(){if(Ng)return Rs;Ng=1;const e=Kt();return Rs=(r,n)=>e(r,n,!0),Rs}var Ds,Mg;function hf(){if(Mg)return Ds;Mg=1;const e=lt();return Ds=(r,n,o)=>{const i=new e(r,o),a=new e(n,o);return i.compare(a)||i.compareBuild(a)},Ds}var Ps,Bg;function uF(){if(Bg)return Ps;Bg=1;const e=hf();return Ps=(r,n)=>r.sort((o,i)=>e(o,i,n)),Ps}var Is,jg;function cF(){if(jg)return Is;jg=1;const e=hf();return Is=(r,n)=>r.sort((o,i)=>e(i,o,n)),Is}var Fs,Hg;function fl(){if(Hg)return Fs;Hg=1;const e=Kt();return Fs=(r,n,o)=>e(r,n,o)>0,Fs}var Ls,Ug;function gf(){if(Ug)return Ls;Ug=1;const e=Kt();return Ls=(r,n,o)=>e(r,n,o)<0,Ls}var ks,zg;function tE(){if(zg)return ks;zg=1;const e=Kt();return ks=(r,n,o)=>e(r,n,o)===0,ks}var Ns,Kg;function rE(){if(Kg)return Ns;Kg=1;const e=Kt();return Ns=(r,n,o)=>e(r,n,o)!==0,Ns}var Ms,Gg;function mf(){if(Gg)return Ms;Gg=1;const e=Kt();return Ms=(r,n,o)=>e(r,n,o)>=0,Ms}var Bs,Wg;function yf(){if(Wg)return Bs;Wg=1;const e=Kt();return Bs=(r,n,o)=>e(r,n,o)<=0,Bs}var js,Vg;function nE(){if(Vg)return js;Vg=1;const e=tE(),t=rE(),r=fl(),n=mf(),o=gf(),i=yf();return js=(l,s,u,c)=>{switch(s){case"===":return typeof l=="object"&&(l=l.version),typeof u=="object"&&(u=u.version),l===u;case"!==":return typeof l=="object"&&(l=l.version),typeof u=="object"&&(u=u.version),l!==u;case"":case"=":case"==":return e(l,u,c);case"!=":return t(l,u,c);case">":return r(l,u,c);case">=":return n(l,u,c);case"<":return o(l,u,c);case"<=":return i(l,u,c);default:throw new TypeError(`Invalid operator: ${s}`)}},js}var Hs,qg;function dF(){if(qg)return Hs;qg=1;const e=lt(),t=io(),{safeRe:r,t:n}=ci();return Hs=(i,a)=>{if(i instanceof e)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;a=a||{};let l=null;if(!a.rtl)l=i.match(a.includePrerelease?r[n.COERCEFULL]:r[n.COERCE]);else{const p=a.includePrerelease?r[n.COERCERTLFULL]:r[n.COERCERTL];let m;for(;(m=p.exec(i))&&(!l||l.index+l[0].length!==i.length);)(!l||m.index+m[0].length!==l.index+l[0].length)&&(l=m),p.lastIndex=m.index+m[1].length+m[2].length;p.lastIndex=-1}if(l===null)return null;const s=l[2],u=l[3]||"0",c=l[4]||"0",d=a.includePrerelease&&l[5]?`-${l[5]}`:"",f=a.includePrerelease&&l[6]?`+${l[6]}`:"";return t(`${s}.${u}.${c}${d}${f}`,a)},Hs}var Us,Yg;function fF(){if(Yg)return Us;Yg=1;class e{constructor(){this.max=1e3,this.map=new Map}get(r){const n=this.map.get(r);if(n!==void 0)return this.map.delete(r),this.map.set(r,n),n}delete(r){return this.map.delete(r)}set(r,n){if(!this.delete(r)&&n!==void 0){if(this.map.size>=this.max){const i=this.map.keys().next().value;this.delete(i)}this.map.set(r,n)}return this}}return Us=e,Us}var zs,Xg;function Gt(){if(Xg)return zs;Xg=1;const e=/\s+/g;class t{constructor(R,j){if(j=o(j),R instanceof t)return R.loose===!!j.loose&&R.includePrerelease===!!j.includePrerelease?R:new t(R.raw,j);if(R instanceof i)return this.raw=R.value,this.set=[[R]],this.formatted=void 0,this;if(this.options=j,this.loose=!!j.loose,this.includePrerelease=!!j.includePrerelease,this.raw=R.trim().replace(e," "),this.set=this.raw.split("||").map(L=>this.parseRange(L.trim())).filter(L=>L.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const L=this.set[0];if(this.set=this.set.filter(z=>!y(z[0])),this.set.length===0)this.set=[L];else if(this.set.length>1){for(const z of this.set)if(z.length===1&&S(z[0])){this.set=[z];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let R=0;R<this.set.length;R++){R>0&&(this.formatted+="||");const j=this.set[R];for(let L=0;L<j.length;L++)L>0&&(this.formatted+=" "),this.formatted+=j[L].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(R){const L=((this.options.includePrerelease&&p)|(this.options.loose&&m))+":"+R,z=n.get(L);if(z)return z;const U=this.options.loose,B=U?s[u.HYPHENRANGELOOSE]:s[u.HYPHENRANGE];R=R.replace(B,D(this.options.includePrerelease)),a("hyphen replace",R),R=R.replace(s[u.COMPARATORTRIM],c),a("comparator trim",R),R=R.replace(s[u.TILDETRIM],d),a("tilde trim",R),R=R.replace(s[u.CARETTRIM],f),a("caret trim",R);let F=R.split(" ").map(K=>v(K,this.options)).join(" ").split(/\s+/).map(K=>I(K,this.options));U&&(F=F.filter(K=>(a("loose invalid filter",K,this.options),!!K.match(s[u.COMPARATORLOOSE])))),a("range list",F);const H=new Map,W=F.map(K=>new i(K,this.options));for(const K of W){if(y(K))return[K];H.set(K.value,K)}H.size>1&&H.has("")&&H.delete("");const V=[...H.values()];return n.set(L,V),V}intersects(R,j){if(!(R instanceof t))throw new TypeError("a Range is required");return this.set.some(L=>b(L,j)&&R.set.some(z=>b(z,j)&&L.every(U=>z.every(B=>U.intersects(B,j)))))}test(R){if(!R)return!1;if(typeof R=="string")try{R=new l(R,this.options)}catch(j){return!1}for(let j=0;j<this.set.length;j++)if(M(this.set[j],R,this.options))return!0;return!1}}zs=t;const r=fF(),n=new r,o=pf(),i=pl(),a=dl(),l=lt(),{safeRe:s,t:u,comparatorTrimReplace:c,tildeTrimReplace:d,caretTrimReplace:f}=ci(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:m}=cl(),y=k=>k.value==="<0.0.0-0",S=k=>k.value==="",b=(k,R)=>{let j=!0;const L=k.slice();let z=L.pop();for(;j&&L.length;)j=L.every(U=>z.intersects(U,R)),z=L.pop();return j},v=(k,R)=>(k=k.replace(s[u.BUILD],""),a("comp",k,R),k=$(k,R),a("caret",k),k=C(k,R),a("tildes",k),k=_(k,R),a("xrange",k),k=T(k,R),a("stars",k),k),x=k=>!k||k.toLowerCase()==="x"||k==="*",C=(k,R)=>k.trim().split(/\s+/).map(j=>A(j,R)).join(" "),A=(k,R)=>{const j=R.loose?s[u.TILDELOOSE]:s[u.TILDE];return k.replace(j,(L,z,U,B,F)=>{a("tilde",k,L,z,U,B,F);let H;return x(z)?H="":x(U)?H=`>=${z}.0.0 <${+z+1}.0.0-0`:x(B)?H=`>=${z}.${U}.0 <${z}.${+U+1}.0-0`:F?(a("replaceTilde pr",F),H=`>=${z}.${U}.${B}-${F} <${z}.${+U+1}.0-0`):H=`>=${z}.${U}.${B} <${z}.${+U+1}.0-0`,a("tilde return",H),H})},$=(k,R)=>k.trim().split(/\s+/).map(j=>w(j,R)).join(" "),w=(k,R)=>{a("caret",k,R);const j=R.loose?s[u.CARETLOOSE]:s[u.CARET],L=R.includePrerelease?"-0":"";return k.replace(j,(z,U,B,F,H)=>{a("caret",k,z,U,B,F,H);let W;return x(U)?W="":x(B)?W=`>=${U}.0.0${L} <${+U+1}.0.0-0`:x(F)?U==="0"?W=`>=${U}.${B}.0${L} <${U}.${+B+1}.0-0`:W=`>=${U}.${B}.0${L} <${+U+1}.0.0-0`:H?(a("replaceCaret pr",H),U==="0"?B==="0"?W=`>=${U}.${B}.${F}-${H} <${U}.${B}.${+F+1}-0`:W=`>=${U}.${B}.${F}-${H} <${U}.${+B+1}.0-0`:W=`>=${U}.${B}.${F}-${H} <${+U+1}.0.0-0`):(a("no pr"),U==="0"?B==="0"?W=`>=${U}.${B}.${F}${L} <${U}.${B}.${+F+1}-0`:W=`>=${U}.${B}.${F}${L} <${U}.${+B+1}.0-0`:W=`>=${U}.${B}.${F} <${+U+1}.0.0-0`),a("caret return",W),W})},_=(k,R)=>(a("replaceXRanges",k,R),k.split(/\s+/).map(j=>O(j,R)).join(" ")),O=(k,R)=>{k=k.trim();const j=R.loose?s[u.XRANGELOOSE]:s[u.XRANGE];return k.replace(j,(L,z,U,B,F,H)=>{a("xRange",k,L,z,U,B,F,H);const W=x(U),V=W||x(B),K=V||x(F),q=K;return z==="="&&q&&(z=""),H=R.includePrerelease?"-0":"",W?z===">"||z==="<"?L="<0.0.0-0":L="*":z&&q?(V&&(B=0),F=0,z===">"?(z=">=",V?(U=+U+1,B=0,F=0):(B=+B+1,F=0)):z==="<="&&(z="<",V?U=+U+1:B=+B+1),z==="<"&&(H="-0"),L=`${z+U}.${B}.${F}${H}`):V?L=`>=${U}.0.0${H} <${+U+1}.0.0-0`:K&&(L=`>=${U}.${B}.0${H} <${U}.${+B+1}.0-0`),a("xRange return",L),L})},T=(k,R)=>(a("replaceStars",k,R),k.trim().replace(s[u.STAR],"")),I=(k,R)=>(a("replaceGTE0",k,R),k.trim().replace(s[R.includePrerelease?u.GTE0PRE:u.GTE0],"")),D=k=>(R,j,L,z,U,B,F,H,W,V,K,q)=>(x(L)?j="":x(z)?j=`>=${L}.0.0${k?"-0":""}`:x(U)?j=`>=${L}.${z}.0${k?"-0":""}`:B?j=`>=${j}`:j=`>=${j}${k?"-0":""}`,x(W)?H="":x(V)?H=`<${+W+1}.0.0-0`:x(K)?H=`<${W}.${+V+1}.0-0`:q?H=`<=${W}.${V}.${K}-${q}`:k?H=`<${W}.${V}.${+K+1}-0`:H=`<=${H}`,`${j} ${H}`.trim()),M=(k,R,j)=>{for(let L=0;L<k.length;L++)if(!k[L].test(R))return!1;if(R.prerelease.length&&!j.includePrerelease){for(let L=0;L<k.length;L++)if(a(k[L].semver),k[L].semver!==i.ANY&&k[L].semver.prerelease.length>0){const z=k[L].semver;if(z.major===R.major&&z.minor===R.minor&&z.patch===R.patch)return!0}return!1}return!0};return zs}var Ks,Jg;function pl(){if(Jg)return Ks;Jg=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(c,d){if(d=r(d),c instanceof t){if(c.loose===!!d.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),a("comparator",c,d),this.options=d,this.loose=!!d.loose,this.parse(c),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(c){const d=this.options.loose?n[o.COMPARATORLOOSE]:n[o.COMPARATOR],f=c.match(d);if(!f)throw new TypeError(`Invalid comparator: ${c}`);this.operator=f[1]!==void 0?f[1]:"",this.operator==="="&&(this.operator=""),f[2]?this.semver=new l(f[2],this.options.loose):this.semver=e}toString(){return this.value}test(c){if(a("Comparator.test",c,this.options.loose),this.semver===e||c===e)return!0;if(typeof c=="string")try{c=new l(c,this.options)}catch(d){return!1}return i(c,this.operator,this.semver,this.options)}intersects(c,d){if(!(c instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new s(c.value,d).test(this.value):c.operator===""?c.value===""?!0:new s(this.value,d).test(c.semver):(d=r(d),d.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||c.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&c.operator.startsWith(">")||this.operator.startsWith("<")&&c.operator.startsWith("<")||this.semver.version===c.semver.version&&this.operator.includes("=")&&c.operator.includes("=")||i(this.semver,"<",c.semver,d)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||i(this.semver,">",c.semver,d)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}}Ks=t;const r=pf(),{safeRe:n,t:o}=ci(),i=nE(),a=dl(),l=lt(),s=Gt();return Ks}var Gs,Zg;function hl(){if(Zg)return Gs;Zg=1;const e=Gt();return Gs=(r,n,o)=>{try{n=new e(n,o)}catch(i){return!1}return n.test(r)},Gs}var Ws,Qg;function pF(){if(Qg)return Ws;Qg=1;const e=Gt();return Ws=(r,n)=>new e(r,n).set.map(o=>o.map(i=>i.value).join(" ").trim().split(" ")),Ws}var Vs,em;function hF(){if(em)return Vs;em=1;const e=lt(),t=Gt();return Vs=(n,o,i)=>{let a=null,l=null,s=null;try{s=new t(o,i)}catch(u){return null}return n.forEach(u=>{s.test(u)&&(!a||l.compare(u)===-1)&&(a=u,l=new e(a,i))}),a},Vs}var qs,tm;function gF(){if(tm)return qs;tm=1;const e=lt(),t=Gt();return qs=(n,o,i)=>{let a=null,l=null,s=null;try{s=new t(o,i)}catch(u){return null}return n.forEach(u=>{s.test(u)&&(!a||l.compare(u)===1)&&(a=u,l=new e(a,i))}),a},qs}var Ys,rm;function mF(){if(rm)return Ys;rm=1;const e=lt(),t=Gt(),r=fl();return Ys=(o,i)=>{o=new t(o,i);let a=new e("0.0.0");if(o.test(a)||(a=new e("0.0.0-0"),o.test(a)))return a;a=null;for(let l=0;l<o.set.length;++l){const s=o.set[l];let u=null;s.forEach(c=>{const d=new e(c.semver.version);switch(c.operator){case">":d.prerelease.length===0?d.patch++:d.prerelease.push(0),d.raw=d.format();case"":case">=":(!u||r(d,u))&&(u=d);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),u&&(!a||r(a,u))&&(a=u)}return a&&o.test(a)?a:null},Ys}var Xs,nm;function yF(){if(nm)return Xs;nm=1;const e=Gt();return Xs=(r,n)=>{try{return new e(r,n).range||"*"}catch(o){return null}},Xs}var Js,om;function bf(){if(om)return Js;om=1;const e=lt(),t=pl(),{ANY:r}=t,n=Gt(),o=hl(),i=fl(),a=gf(),l=yf(),s=mf();return Js=(c,d,f,p)=>{c=new e(c,p),d=new n(d,p);let m,y,S,b,v;switch(f){case">":m=i,y=l,S=a,b=">",v=">=";break;case"<":m=a,y=s,S=i,b="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(c,d,p))return!1;for(let x=0;x<d.set.length;++x){const C=d.set[x];let A=null,$=null;if(C.forEach(w=>{w.semver===r&&(w=new t(">=0.0.0")),A=A||w,$=$||w,m(w.semver,A.semver,p)?A=w:S(w.semver,$.semver,p)&&($=w)}),A.operator===b||A.operator===v||(!$.operator||$.operator===b)&&y(c,$.semver))return!1;if($.operator===v&&S(c,$.semver))return!1}return!0},Js}var Zs,im;function bF(){if(im)return Zs;im=1;const e=bf();return Zs=(r,n,o)=>e(r,n,">",o),Zs}var Qs,am;function EF(){if(am)return Qs;am=1;const e=bf();return Qs=(r,n,o)=>e(r,n,"<",o),Qs}var eu,lm;function vF(){if(lm)return eu;lm=1;const e=Gt();return eu=(r,n,o)=>(r=new e(r,o),n=new e(n,o),r.intersects(n,o)),eu}var tu,sm;function SF(){if(sm)return tu;sm=1;const e=hl(),t=Kt();return tu=(r,n,o)=>{const i=[];let a=null,l=null;const s=r.sort((f,p)=>t(f,p,o));for(const f of s)e(f,n,o)?(l=f,a||(a=f)):(l&&i.push([a,l]),l=null,a=null);a&&i.push([a,null]);const u=[];for(const[f,p]of i)f===p?u.push(f):!p&&f===s[0]?u.push("*"):p?f===s[0]?u.push(`<=${p}`):u.push(`${f} - ${p}`):u.push(`>=${f}`);const c=u.join(" || "),d=typeof n.raw=="string"?n.raw:String(n);return c.length<d.length?c:n},tu}var ru,um;function xF(){if(um)return ru;um=1;const e=Gt(),t=pl(),{ANY:r}=t,n=hl(),o=Kt(),i=(d,f,p={})=>{if(d===f)return!0;d=new e(d,p),f=new e(f,p);let m=!1;e:for(const y of d.set){for(const S of f.set){const b=s(y,S,p);if(m=m||b!==null,b)continue e}if(m)return!1}return!0},a=[new t(">=0.0.0-0")],l=[new t(">=0.0.0")],s=(d,f,p)=>{if(d===f)return!0;if(d.length===1&&d[0].semver===r){if(f.length===1&&f[0].semver===r)return!0;p.includePrerelease?d=a:d=l}if(f.length===1&&f[0].semver===r){if(p.includePrerelease)return!0;f=l}const m=new Set;let y,S;for(const _ of d)_.operator===">"||_.operator===">="?y=u(y,_,p):_.operator==="<"||_.operator==="<="?S=c(S,_,p):m.add(_.semver);if(m.size>1)return null;let b;if(y&&S){if(b=o(y.semver,S.semver,p),b>0)return null;if(b===0&&(y.operator!==">="||S.operator!=="<="))return null}for(const _ of m){if(y&&!n(_,String(y),p)||S&&!n(_,String(S),p))return null;for(const O of f)if(!n(_,String(O),p))return!1;return!0}let v,x,C,A,$=S&&!p.includePrerelease&&S.semver.prerelease.length?S.semver:!1,w=y&&!p.includePrerelease&&y.semver.prerelease.length?y.semver:!1;$&&$.prerelease.length===1&&S.operator==="<"&&$.prerelease[0]===0&&($=!1);for(const _ of f){if(A=A||_.operator===">"||_.operator===">=",C=C||_.operator==="<"||_.operator==="<=",y){if(w&&_.semver.prerelease&&_.semver.prerelease.length&&_.semver.major===w.major&&_.semver.minor===w.minor&&_.semver.patch===w.patch&&(w=!1),_.operator===">"||_.operator===">="){if(v=u(y,_,p),v===_&&v!==y)return!1}else if(y.operator===">="&&!n(y.semver,String(_),p))return!1}if(S){if($&&_.semver.prerelease&&_.semver.prerelease.length&&_.semver.major===$.major&&_.semver.minor===$.minor&&_.semver.patch===$.patch&&($=!1),_.operator==="<"||_.operator==="<="){if(x=c(S,_,p),x===_&&x!==S)return!1}else if(S.operator==="<="&&!n(S.semver,String(_),p))return!1}if(!_.operator&&(S||y)&&b!==0)return!1}return!(y&&C&&!S&&b!==0||S&&A&&!y&&b!==0||w||$)},u=(d,f,p)=>{if(!d)return f;const m=o(d.semver,f.semver,p);return m>0?d:m<0||f.operator===">"&&d.operator===">="?f:d},c=(d,f,p)=>{if(!d)return f;const m=o(d.semver,f.semver,p);return m<0?d:m>0||f.operator==="<"&&d.operator==="<="?f:d};return ru=i,ru}var nu,cm;function $F(){if(cm)return nu;cm=1;const e=ci(),t=cl(),r=lt(),n=eE(),o=io(),i=QI(),a=eF(),l=tF(),s=rF(),u=nF(),c=oF(),d=iF(),f=aF(),p=Kt(),m=lF(),y=sF(),S=hf(),b=uF(),v=cF(),x=fl(),C=gf(),A=tE(),$=rE(),w=mf(),_=yf(),O=nE(),T=dF(),I=pl(),D=Gt(),M=hl(),k=pF(),R=hF(),j=gF(),L=mF(),z=yF(),U=bf(),B=bF(),F=EF(),H=vF(),W=SF(),V=xF();return nu={parse:o,valid:i,clean:a,inc:l,diff:s,major:u,minor:c,patch:d,prerelease:f,compare:p,rcompare:m,compareLoose:y,compareBuild:S,sort:b,rsort:v,gt:x,lt:C,eq:A,neq:$,gte:w,lte:_,cmp:O,coerce:T,Comparator:I,Range:D,satisfies:M,toComparators:k,maxSatisfying:R,minSatisfying:j,minVersion:L,validRange:z,outside:U,gtr:B,ltr:F,intersects:H,simplifyRange:W,subset:V,SemVer:r,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:n.compareIdentifiers,rcompareIdentifiers:n.rcompareIdentifiers},nu}var wF=$F();const gt=vd(wF);var CF=tt({"../node_modules/toggle-selection/index.js"(e,t){t.exports=function(){var r=document.getSelection();if(!r.rangeCount)return function(){};for(var n=document.activeElement,o=[],i=0;i<r.rangeCount;i++)o.push(r.getRangeAt(i));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null;break}return r.removeAllRanges(),function(){r.type==="Caret"&&r.removeAllRanges(),r.rangeCount||o.forEach(function(a){r.addRange(a)}),n&&n.focus()}}}}),_F=tt({"../node_modules/copy-to-clipboard/index.js"(e,t){var r=CF(),n={"text/plain":"Text","text/html":"Url",default:"Text"},o="Copy to clipboard: #{key}, Enter";function i(l){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return l.replace(/#{\s*key\s*}/g,s)}function a(l,s){var u,c,d,f,p,m,y=!1;s||(s={}),u=s.debug||!1;try{d=r(),f=document.createRange(),p=document.getSelection(),m=document.createElement("span"),m.textContent=l,m.ariaHidden="true",m.style.all="unset",m.style.position="fixed",m.style.top=0,m.style.clip="rect(0, 0, 0, 0)",m.style.whiteSpace="pre",m.style.webkitUserSelect="text",m.style.MozUserSelect="text",m.style.msUserSelect="text",m.style.userSelect="text",m.addEventListener("copy",function(b){if(b.stopPropagation(),s.format)if(b.preventDefault(),typeof b.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var v=n[s.format]||n.default;window.clipboardData.setData(v,l)}else b.clipboardData.clearData(),b.clipboardData.setData(s.format,l);s.onCopy&&(b.preventDefault(),s.onCopy(b.clipboardData))}),document.body.appendChild(m),f.selectNodeContents(m),p.addRange(f);var S=document.execCommand("copy");if(!S)throw new Error("copy command was unsuccessful");y=!0}catch(b){u&&console.error("unable to copy using execCommand: ",b),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",l),s.onCopy&&s.onCopy(window.clipboardData),y=!0}catch(v){u&&console.error("unable to copy using clipboardData: ",v),u&&console.error("falling back to prompt"),c=i("message"in s?s.message:o),window.prompt(c,l)}}finally{p&&(typeof p.removeRange=="function"?p.removeRange(f):p.removeAllRanges()),m&&document.body.removeChild(m),d()}return y}t.exports=a}}),TF=tt({"../node_modules/store2/dist/store2.js"(e,t){(function(r,n){var o={version:"2.14.4",areas:{},apis:{},nsdelim:".",inherit:function(a,l){for(var s in a)l.hasOwnProperty(s)||Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(a,s));return l},stringify:function(a,l){return a===void 0||typeof a=="function"?a+"":JSON.stringify(a,l||o.replace)},parse:function(a,l){try{return JSON.parse(a,l||o.revive)}catch(s){return a}},fn:function(a,l){o.storeAPI[a]=l;for(var s in o.apis)o.apis[s][a]=l},get:function(a,l){return a.getItem(l)},set:function(a,l,s){a.setItem(l,s)},remove:function(a,l){a.removeItem(l)},key:function(a,l){return a.key(l)},length:function(a){return a.length},clear:function(a){a.clear()},Store:function(a,l,s){var u=o.inherit(o.storeAPI,function(d,f,p){return arguments.length===0?u.getAll():typeof f=="function"?u.transact(d,f,p):f!==void 0?u.set(d,f,p):typeof d=="string"||typeof d=="number"?u.get(d):typeof d=="function"?u.each(d):d?u.setAll(d,f):u.clear()});u._id=a;try{var c="__store2_test";l.setItem(c,"ok"),u._area=l,l.removeItem(c)}catch(d){u._area=o.storage("fake")}return u._ns=s||"",o.areas[a]||(o.areas[a]=u._area),o.apis[u._ns+u._id]||(o.apis[u._ns+u._id]=u),u},storeAPI:{area:function(a,l){var s=this[a];return(!s||!s.area)&&(s=o.Store(a,l,this._ns),this[a]||(this[a]=s)),s},namespace:function(a,l,s){if(s=s||this._delim||o.nsdelim,!a)return this._ns?this._ns.substring(0,this._ns.length-s.length):"";var u=a,c=this[u];if((!c||!c.namespace)&&(c=o.Store(this._id,this._area,this._ns+u+s),c._delim=s,this[u]||(this[u]=c),!l))for(var d in o.areas)c.area(d,o.areas[d]);return c},isFake:function(a){return a?(this._real=this._area,this._area=o.storage("fake")):a===!1&&(this._area=this._real||this._area),this._area.name==="fake"},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(a){return this._area.has?this._area.has(this._in(a)):this._in(a)in this._area},size:function(){return this.keys().length},each:function(a,l){for(var s=0,u=o.length(this._area);s<u;s++){var c=this._out(o.key(this._area,s));if(c!==void 0&&a.call(this,c,this.get(c),l)===!1)break;u>o.length(this._area)&&(u--,s--)}return l||this},keys:function(a){return this.each(function(l,s,u){u.push(l)},a||[])},get:function(a,l){var s=o.get(this._area,this._in(a)),u;return typeof l=="function"&&(u=l,l=null),s!==null?o.parse(s,u):l!=null?l:s},getAll:function(a){return this.each(function(l,s,u){u[l]=s},a||{})},transact:function(a,l,s){var u=this.get(a,s),c=l(u);return this.set(a,c===void 0?u:c),this},set:function(a,l,s){var u=this.get(a),c;return u!=null&&s===!1?l:(typeof s=="function"&&(c=s,s=void 0),o.set(this._area,this._in(a),o.stringify(l,c),s)||u)},setAll:function(a,l){var s,u;for(var c in a)u=a[c],this.set(c,u,l)!==u&&(s=!0);return s},add:function(a,l,s){var u=this.get(a);if(u instanceof Array)l=u.concat(l);else if(u!==null){var c=typeof u;if(c===typeof l&&c==="object"){for(var d in l)u[d]=l[d];l=u}else l=u+l}return o.set(this._area,this._in(a),o.stringify(l,s)),l},remove:function(a,l){var s=this.get(a,l);return o.remove(this._area,this._in(a)),s},clear:function(){return this._ns?this.each(function(a){o.remove(this._area,this._in(a))},1):o.clear(this._area),this},clearAll:function(){var a=this._area;for(var l in o.areas)o.areas.hasOwnProperty(l)&&(this._area=o.areas[l],this.clear());return this._area=a,this},_in:function(a){return typeof a!="string"&&(a=o.stringify(a)),this._ns?this._ns+a:a},_out:function(a){return this._ns?a&&a.indexOf(this._ns)===0?a.substring(this._ns.length):void 0:a}},storage:function(a){return o.inherit(o.storageAPI,{items:{},name:a})},storageAPI:{length:0,has:function(a){return this.items.hasOwnProperty(a)},key:function(a){var l=0;for(var s in this.items)if(this.has(s)&&a===l++)return s},setItem:function(a,l){this.has(a)||this.length++,this.items[a]=l},removeItem:function(a){this.has(a)&&(delete this.items[a],this.length--)},getItem:function(a){return this.has(a)?this.items[a]:null},clear:function(){for(var a in this.items)this.removeItem(a)}}},i=o.Store("local",(function(){try{return localStorage}catch(a){}})());i.local=i,i._=o,i.area("session",(function(){try{return sessionStorage}catch(a){}})()),i.area("page",o.storage("page")),typeof n=="function"&&n.amd!==void 0?n("store2",[],function(){return i}):typeof t<"u"&&t.exports?t.exports=i:(r.store&&(o.conflict=r.store),r.store=i)})(e,e&&e.define)}});const{DOCS_PREPARED:Cq,SET_STORIES:_q,SHARED_STATE_CHANGED:Tq,SHARED_STATE_SET:Aq,STORY_CHANGED:Oq,STORY_PREPARED:Rq}=__STORYBOOK_MODULE_CORE_EVENTS__;var AF=({api:e,state:t})=>h.createContext({api:e,state:t});const{logger:dm}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Pn=(e,...t)=>{let r={};r=bt({},e,(n,o)=>{if(Array.isArray(o)&&Array.isArray(n))return o.forEach(i=>{n.find(a=>a===i||Qt(a,i))||n.push(i)}),n;if(Array.isArray(n))return dm.log(["the types mismatch, picking",n]),n});for(let n of t)r=bt(r,n,(o,i)=>{if(Array.isArray(i)&&Array.isArray(o))return i.forEach(a=>{o.find(l=>l===a||Qt(l,a))||o.push(a)}),o;if(Array.isArray(o))return dm.log(["the types mismatch, picking",o]),o});return r},OF=(e,...t)=>{let r={};r=bt({},e,(n,o)=>{if(Array.isArray(o))return o});for(let n of t)r=bt(r,n,(o,i)=>{if(Array.isArray(i))return i});return r},RF=(...e)=>e.reduce((t,r)=>Pn(t,r),{}),Rc=RF;const{logger:DF}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{SET_CONFIG:fm}=__STORYBOOK_MODULE_CORE_EVENTS__,{Addon_TypesEnum:Dq}=__STORYBOOK_MODULE_TYPES__,{global:ou}=__STORYBOOK_MODULE_GLOBAL__,{Channel:PF}=__STORYBOOK_MODULE_CHANNELS__;function IF(){let e={setHandler:()=>{},send:()=>{}};return new PF({transport:e})}var FF=class{constructor(){this.loaders={},this.elements={},this.config={},this.getChannel=()=>(this.channel||this.setChannel(IF()),this.channel),this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.setChannel=e=>{this.channel=e,this.resolve()},this.setConfig=e=>{Object.assign(this.config,e),this.hasChannel()?this.getChannel().emit(fm,this.config):this.ready().then(t=>{t.emit(fm,this.config)})},this.getConfig=()=>this.config,this.register=(e,t)=>{this.loaders[e]&&DF.warn(`${e} was loaded twice, this could have bad side-effects`),this.loaders[e]=t},this.loadAddons=e=>{Object.values(this.loaders).forEach(t=>t(e))},this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}getElements(e){return this.elements[e]||(this.elements[e]={}),this.elements[e]}add(e,t){let{type:r}=t,n=this.getElements(r);n[e]=P(E({},t),{id:e})}experimental_getRegisteredAddons(){return Object.keys(this.loaders)}},iu="__STORYBOOK_ADDONS_MANAGER";function LF(){return ou[iu]||(ou[iu]=new FF),ou[iu]}LF();var oE={};qe(oE,{ensurePanel:()=>Dc,init:()=>kF});const{Addon_TypesEnum:pm}=__STORYBOOK_MODULE_TYPES__;function Dc(e,t,r){let n=Object.keys(e);return n.indexOf(t)>=0?t:n.length?n[0]:r}var kF=({provider:e,store:t,fullAPI:r})=>{let n={getElements:o=>e.getElements(o),getSelectedPanel:()=>{let{selectedPanel:o}=t.getState();return Dc(n.getElements(pm.PANEL),o,o)},setSelectedPanel:o=>{t.setState({selectedPanel:o},{persistence:"session"})},setAddonState(o,i,a){let l=typeof i=="function"?i:()=>i;return t.setState(s=>P(E({},s),{addons:P(E({},s.addons),{[o]:l(s.addons[o])})}),a).then(()=>n.getAddonState(o))},getAddonState:o=>t.getState().addons[o]||(globalThis==null?void 0:globalThis.STORYBOOK_ADDON_STATE[o])};return{api:n,state:{selectedPanel:Dc(n.getElements(pm.PANEL),t.getState().selectedPanel),addons:{}}}},iE={};qe(iE,{init:()=>NF});var NF=({provider:e})=>({api:{getChannel:()=>e.channel,on:(t,r)=>{var n;return(n=e.channel)==null||n.on(t,r),()=>{var o;return(o=e.channel)==null?void 0:o.off(t,r)}},off:(t,r)=>{var n;return(n=e.channel)==null?void 0:n.off(t,r)},once:(t,r)=>{var n;return(n=e.channel)==null?void 0:n.once(t,r)},emit:(t,r,...n)=>{var o,i;(o=r==null?void 0:r.options)!=null&&o.target&&r.options.target!=="storybook-preview-iframe"&&!r.options.target.startsWith("storybook-ref-")&&(r.options.target=r.options.target!=="storybook_internal"?`storybook-ref-${r.options.target}`:"storybook-preview-iframe"),(i=e.channel)==null||i.emit(t,r,...n)}},state:{}}),aE={};qe(aE,{init:()=>t4});const{logger:hm}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{GLOBALS_UPDATED:MF,SET_GLOBALS:BF,UPDATE_GLOBALS:jF}=__STORYBOOK_MODULE_CORE_EVENTS__,{logger:HF}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var lE={};qe(lE,{defaultStoryMapper:()=>dE,getSourceType:()=>cE,init:()=>e4});const{global:sE}=__STORYBOOK_MODULE_GLOBAL__;var uE=vt(Qn(),1),UF=(e,t)=>!Array.isArray(e)||!Array.isArray(t)||!e.length||!t.length?[]:e.reduce((r,n)=>(t.includes(n)&&r.push(n),r),[]),zF=/\s*\/\s*/,KF=({globalParameters:e,kindParameters:t,stories:r})=>aC(r,n=>P(E({},n),{parameters:$8(e,t[n.kind],n.parameters)})),GF=e=>({v:5,entries:Object.entries(e).reduce((t,[r,n])=>{if(!n)return t;let s=n.parameters,{docsOnly:o,fileName:i}=s,a=G(s,["docsOnly","fileName"]),l={title:n.kind,id:r,name:n.name,importPath:i};if(o)t[r]=E({type:"docs",tags:["stories-mdx"],storiesImports:[]},l);else{let{argTypes:u,args:c,initialArgs:d}=n;t[r]=P(E({type:"story",subtype:"story"},l),{parameters:a,argTypes:u,args:c,initialArgs:d})}return t},{})}),WF=e=>({v:3,stories:Object.values(e.stories).reduce((t,r)=>(t[r.id]=P(E({},r),{title:r.kind,name:r.name||r.story,importPath:r.parameters.fileName||""}),t),{})}),VF=e=>{let t=iI(Object.values(e.stories),r=>r.title);return{v:4,entries:Object.values(e.stories).reduce((r,n)=>{var i;let o="story";return((i=n.parameters)!=null&&i.docsOnly||n.name==="Page"&&t[n.title]===1)&&(o="docs"),r[n.id]=E(E({type:o},o==="docs"&&{tags:["stories-mdx"],storiesImports:[]}),n),delete r[n.id].story,delete r[n.id].kind,r},{})}},qF=e=>({v:5,entries:Object.values(e.entries).reduce((t,r)=>(t[r.id]=P(E({},r),{tags:r.tags?["dev","test",...r.tags]:["dev"]}),t),{})}),wa=(e,{provider:t,docsOptions:r,filters:n,allStatuses:o})=>{if(!e.v)throw new Error("Composition: Missing stories.json version");let i=e;i=i.v===2?WF(i):i,i=i.v===3?VF(i):i,i=i.v===4?qF(i):i,i=i;let a=Object.values(i.entries),l=Object.values(n),s=a.filter(b=>{var x;let v=(x=o[b.id])!=null?x:{};return Object.values(v).some(({value:C})=>C==="status-value:error")||l.every(C=>C(P(E({},b),{statuses:v})))?!0:a.filter(C=>"parent"in C&&C.parent===b.id).some(C=>l.every(A=>A(P(E({},C),{statuses:v}))))}),{sidebar:u={}}=t.getConfig(),{showRoots:c,collapsedRoots:d=[],renderLabel:f}=u,p=typeof c<"u",m=s.reduce((b,v)=>{if(r.docsMode&&v.type!=="docs")return b;let{title:x}=v,C=x.trim().split(zF),A=(!p||c)&&C.length>1?[C.shift()]:[],$=[...A,...C],w=$.reduce((_,O,T)=>{let I=T>0&&_[T-1],D=Mn(I?`${I}-${O}`:O);if(O.trim()==="")throw new Error(At`Invalid title ${x} ending in slash.`);if(I===D)throw new Error(At`
|
|
641
|
+
Invalid part '${O}', leading to id === parentId ('${D}'), inside title '${x}'
|
|
642
|
+
|
|
643
|
+
Did you create a path that uses the separator char accidentally, such as 'Vue <docs/>' where '/' is a separator char? See https://github.com/storybookjs/storybook/issues/6128
|
|
644
|
+
`);return _.push(D),_},[]);return w.forEach((_,O)=>{let T=w[O+1]||v.id;A.length&&O===0?b[_]=Pn(b[_]||{},{type:"root",id:_,name:$[O],tags:[],depth:O,renderLabel:f,startCollapsed:d.includes(_),children:[T]}):(!b[_]||b[_].type==="component")&&O===w.length-1?b[_]=Pn(b[_]||{},E({type:"component",id:_,name:$[O],tags:[],parent:w[O-1],depth:O,renderLabel:f},T&&{children:[T]})):b[_]=Pn(b[_]||{},E({type:"group",id:_,name:$[O],tags:[],parent:w[O-1],depth:O,renderLabel:f},T&&{children:[T]}))}),b[v.id]=P(E({tags:[]},v),{depth:w.length,parent:"parent"in v?v.parent:w[w.length-1],renderLabel:f,prepared:!!v.parameters}),b},{});function y(b,v){if(b[v.id]||(b[v.id]=v,"children"in v&&v.children&&(v.children.forEach(x=>y(b,m[x])),v.tags=v.children.reduce((x,C)=>x===null?b[C].tags:UF(x,b[C].tags),null)||[])),v.type==="component"){let x=b[v.children[0]];x&&"importPath"in x&&(v.importPath=x.importPath)}return b}let S=Object.values(m).filter(b=>b.type!=="root"&&!b.parent).reduce((b,v)=>y(b,v),{});return S=Object.values(m).filter(b=>b.type==="root").reduce(y,S),S=Object.values(S).reduce((b,v)=>{if(v.type==="story"&&v.subtype==="test"){let x=b[v.parent],C=b[x.parent];b[C.id]=P(E({},C),{children:C.children&&C.children.filter(A=>A!==v.id)}),b[x.id]=P(E({},x),{children:(x.children||[]).concat(v.id)}),b[v.id]=P(E({},v),{depth:v.depth+1})}else b[v.id]=v;return b},{}),S},gm=(e,t)=>t?Object.fromEntries(Object.entries(e).map(([r,n])=>{let o=t[r];return n.type==="story"&&(o==null?void 0:o.type)==="story"&&o.prepared?("children"in o&&delete o.children,[r,P(E(E({},o),n),{prepared:!0})]):[r,n]})):e,YF=(0,uE.default)(1)(e=>Object.entries(e).reduce((t,r)=>{let n=r[1];return n.type==="component"&&t.push([...n.children]),t},[])),XF=(0,uE.default)(1)(e=>Object.keys(e).filter(t=>["story","docs"].includes(e[t].type))),{location:JF,fetch:mm}=sE,cE=(e,t)=>{let{origin:r,pathname:n}=JF,{origin:o,pathname:i}=new URL(e),a=`${r+n}`.replace("/iframe.html","").replace(/\/$/,""),l=`${o+i}`.replace("/iframe.html","").replace(/\/$/,"");return a===l?["local",l]:t||e?["external",l]:[null,null]},dE=(e,t)=>P(E({},t),{kind:t.kind.replace("|","/")}),ym=(e,t)=>Object.entries(e).reduce((r,[n,o])=>P(E({},r),{[n]:P(E({},o),{refId:t.id})}),{});async function bm(e){if(!e)return{};try{let t=await e;if(t===!1||t===!0)throw new Error("Unexpected boolean response");if(!t.ok)throw new Error(`Unexpected response not OK: ${t.statusText}`);let r=await t.json();return r.entries||r.stories?{storyIndex:r}:r}catch(t){return{indexError:t}}}var ZF=e=>{let t=/https?:\/\/(.+:.+)@/,r=e,n,[,o]=e.match(t)||[];return o&&(r=e.replace(`${o}@`,""),n=btoa(`${o}`)),{url:r,authorization:n}},QF=(e,t,r)=>{let{storyMapper:n}=r;return n?Object.entries(e).reduce((o,[i,a])=>P(E({},o),{[i]:n(t,a)}),{}):e},e4=({store:e,provider:t,singleStory:r,docsOptions:n={}},{runCheck:o=!0}={})=>{let i={findRef:s=>{let u=i.getRefs();return Object.values(u).find(({url:c})=>c.match(s))},changeRefVersion:async(s,u)=>{let{versions:c,title:d}=i.getRefs()[s],f={id:s,url:u,versions:c,title:d,index:{},filteredIndex:{},expanded:!0};await i.setRef(s,P(E({},f),{type:"unknown"}),!1),await i.checkRef(f)},changeRefState:(s,u)=>{let f=i.getRefs(),{[s]:c}=f,d=G(f,[po(s)]);d[s]=P(E({},c),{previewInitialized:u}),e.setState({refs:d})},checkRef:async s=>{let{id:u,url:c,version:d,type:f}=s,p=f==="server-checked",m={},y=d?`?version=${d}`:"",S=p?"omit":"include",b=ZF(c),v={Accept:"application/json"};b.authorization&&Object.assign(v,{Authorization:`Basic ${b.authorization}`});let[x,C]=await Promise.all(["index.json","stories.json"].map(async $=>bm(mm(`${b.url}/${$}${y}`,{headers:v,credentials:S}))));if(!x.indexError||!C.indexError){let $=await bm(mm(`${b.url}/metadata.json${y}`,{headers:v,credentials:S,cache:"no-cache"}).catch(()=>!1));Object.assign(m,E(E({},x.indexError?C:x),!$.indexError&&$))}else p||(m.indexError={message:At`
|
|
645
|
+
Error: Loading of ref failed
|
|
646
|
+
at fetch (lib/api/src/modules/refs.ts)
|
|
647
|
+
|
|
648
|
+
URL: ${b.url}
|
|
649
|
+
|
|
650
|
+
We weren't able to load the above URL,
|
|
651
|
+
it's possible a CORS error happened.
|
|
652
|
+
|
|
653
|
+
Please check your dev-tools network tab.
|
|
654
|
+
`});let A=s.versions&&Object.keys(s.versions).length?s.versions:m.versions;await i.setRef(u,P(E(E({id:u,url:b.url},m),A?{versions:A}:{}),{type:m.storyIndex?"lazy":"auto-inject"}))},getRefs:()=>{let{refs:s={}}=e.getState();return s},setRef:async(s,p,f=!1)=>{var m=p,{storyIndex:u,setStoriesData:c}=m,d=G(m,["storyIndex","setStoriesData"]);if(r)return;let y,S,b,{filters:v}=e.getState(),{storyMapper:x=dE}=t.getConfig(),C=i.getRefs()[s];(u||c)&&(y=c?GF(QF(c,C,{storyMapper:x})):u,b=wa(u,{provider:t,docsOptions:n,filters:v,allStatuses:{}}),S=wa(u,{provider:t,docsOptions:n,filters:{},allStatuses:{}})),S&&(S=ym(S,C)),b&&(b=ym(b,C)),await i.updateRef(s,P(E(E({},C),d),{index:S,filteredIndex:b,internal_index:y}))},updateRef:async(s,u)=>{let p=i.getRefs(),{[s]:c}=p,d=G(p,[po(s)]);d[s]=E(E({},c),u);let f=Object.keys(l).reduce((m,y)=>(m[y]=d[y],m),{});await e.setState({refs:f})}},a=!r&&sE.REFS||{},l=a;return o&&new Promise(async s=>{for(let u of Object.values(a))await i.checkRef(P(E({},u),{stories:{}}));s(void 0)}),{api:i,state:{refs:l}}},mt=(e,t)=>{let{source:r,refId:n,type:o}=e,[i,a]=cE(r,n),l;(n||i==="external")&&(l=n&&t.getRefs()[n]?t.getRefs()[n]:t.findRef(a));let s={source:r,sourceType:i,sourceLocation:a,refId:n,ref:l,type:o};switch(!0){case typeof n=="string":case i==="local":case i==="external":return s;default:return HF.warn(`Received a ${o} frame that was not configured as a ref`),null}},t4=({store:e,fullAPI:t,provider:r})=>{var a,l;let n={getGlobals(){return e.getState().globals},getUserGlobals(){return e.getState().userGlobals},getStoryGlobals(){return e.getState().storyGlobals},getGlobalTypes(){return e.getState().globalTypes},updateGlobals(s){var u;(u=r.channel)==null||u.emit(jF,{globals:s,options:{target:"storybook-preview-iframe"}})}},o={globals:{},userGlobals:{},storyGlobals:{},globalTypes:{}},i=({globals:s,storyGlobals:u,userGlobals:c})=>{let{globals:d,userGlobals:f,storyGlobals:p}=e.getState();rr(s,d)||e.setState({globals:s}),rr(c,f)||e.setState({userGlobals:c}),rr(u,p)||e.setState({storyGlobals:u})};return(a=r.channel)==null||a.on(MF,function({globals:s,storyGlobals:u,userGlobals:c}){let{ref:d}=mt(this,t);d?hm.warn("received a GLOBALS_UPDATED from a non-local ref. This is not currently supported."):i({globals:s,storyGlobals:u,userGlobals:c})}),(l=r.channel)==null||l.on(BF,function({globals:s,globalTypes:u}){var f;let{ref:c}=mt(this,t),d=(f=e.getState())==null?void 0:f.globals;c?Object.keys(s).length>0&&hm.warn("received globals from a non-local ref. This is not currently supported."):e.setState({globals:s,userGlobals:s,globalTypes:u}),d&&Object.keys(d).length!==0&&!rr(s,d)&&n.updateGlobals(d)}),{api:n,state:o}},Ef={};qe(Ef,{ActiveTabs:()=>fE,defaultLayoutState:()=>yt,focusableUIElements:()=>sa,init:()=>o4});const{SET_CONFIG:r4}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:n4}=__STORYBOOK_MODULE_GLOBAL__;var{document:Em}=n4,au=e=>typeof e=="function",fE={SIDEBAR:"sidebar",CANVAS:"canvas",ADDONS:"addons"},yt={ui:{enableShortcuts:!0},layout:{initialActive:fE.CANVAS,showToolbar:!0,navSize:300,bottomPanelHeight:300,rightPanelWidth:400,recentVisibleSizes:{navSize:300,bottomPanelHeight:300,rightPanelWidth:400},panelPosition:"bottom",showTabs:!0},layoutCustomisations:{showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:Nb()},sa={storySearchField:"storybook-explorer-searchfield",storyListMenu:"storybook-explorer-menu",storyPanelRoot:"storybook-panel-root"},Pc=e=>e.layout.navSize>0,Ic=e=>{let{bottomPanelHeight:t,rightPanelWidth:r,panelPosition:n}=e.layout;return n==="bottom"&&t>0||n==="right"&&r>0},vm=e=>!Pc(e)&&!Ic(e),ki=e=>({navSize:e.navSize>0?e.navSize:e.recentVisibleSizes.navSize,bottomPanelHeight:e.bottomPanelHeight>0?e.bottomPanelHeight:e.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.rightPanelWidth>0?e.rightPanelWidth:e.recentVisibleSizes.rightPanelWidth}),o4=({store:e,provider:t,singleStory:r})=>{var i;let n={toggleFullscreen(a){return e.setState(l=>{let s=vm(l),u=typeof a=="boolean"?a:!s;return u===s?{layout:l.layout}:u?{layout:P(E({},l.layout),{navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:ki(l.layout)})}:{layout:P(E({},l.layout),{navSize:l.singleStory?0:l.layout.recentVisibleSizes.navSize,bottomPanelHeight:l.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:l.layout.recentVisibleSizes.rightPanelWidth})}},{persistence:"session"})},togglePanel(a){return e.setState(l=>{let s=Ic(l),u=typeof a=="boolean"?a:!s;return u===s?{layout:l.layout}:u?{layout:P(E({},l.layout),{bottomPanelHeight:l.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:l.layout.recentVisibleSizes.rightPanelWidth})}:{layout:P(E({},l.layout),{bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:ki(l.layout)})}},{persistence:"session"})},togglePanelPosition(a){return e.setState(l=>{let s=a||(l.layout.panelPosition==="right"?"bottom":"right");return{layout:P(E({},l.layout),{panelPosition:s,bottomPanelHeight:l.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:l.layout.recentVisibleSizes.rightPanelWidth})}},{persistence:"permanent"})},toggleNav(a){return e.setState(l=>{if(l.singleStory)return{layout:l.layout};let s=Pc(l),u=typeof a=="boolean"?a:!s;return u===s?{layout:l.layout}:u?{layout:P(E({},l.layout),{navSize:l.layout.recentVisibleSizes.navSize})}:{layout:P(E({},l.layout),{navSize:0,recentVisibleSizes:ki(l.layout)})}},{persistence:"session"})},toggleToolbar(a){return e.setState(l=>{let s=typeof a<"u"?a:!l.layout.showToolbar;return{layout:P(E({},l.layout),{showToolbar:s})}},{persistence:"session"})},setSizes({navSize:a,bottomPanelHeight:l,rightPanelWidth:s}){return e.setState(u=>{let c=P(E({},u.layout),{navSize:a!=null?a:u.layout.navSize,bottomPanelHeight:l!=null?l:u.layout.bottomPanelHeight,rightPanelWidth:s!=null?s:u.layout.rightPanelWidth});return{layout:P(E({},c),{recentVisibleSizes:ki(c)})}},{persistence:"session"})},focusOnUIElement(a,l){if(!a)return;let s=Date.now(),u=500,c=50,d=()=>{var m;let p=Em.getElementById(a);return!p||(p.focus(),p!==Em.activeElement)?!1:(l&&((m=p.select)==null||m.call(p)),!0)};if(d())return;let f=setInterval(()=>{if(Date.now()-s>=u){clearInterval(f);return}d()&&clearInterval(f)},c)},getInitialOptions(){let c=t.getConfig(),{theme:a,selectedPanel:l,layoutCustomisations:s}=c,u=G(c,["theme","selectedPanel","layoutCustomisations"]);return P(E({},yt),{layout:E(E({},Kl(yt.layout,ho(u,Object.keys(yt.layout)))),r&&{navSize:0}),layoutCustomisations:E(E({},yt.layoutCustomisations),s!=null?s:{}),ui:Kl(yt.ui,ho(u,Object.keys(yt.ui))),selectedPanel:l||yt.selectedPanel,theme:a||yt.theme})},getIsFullscreen(){return vm(e.getState())},getIsPanelShown(){return Ic(e.getState())},getIsNavShown(){return Pc(e.getState())},getShowToolbarWithCustomisations(a){var s;let l=e.getState();return au(l.layoutCustomisations.showToolbar)&&(s=l.layoutCustomisations.showToolbar(l,a))!=null?s:a},getShowPanelWithCustomisations(a){var s;let l=e.getState();return au(l.layoutCustomisations.showPanel)&&(s=l.layoutCustomisations.showPanel(l,a))!=null?s:a},getNavSizeWithCustomisations(a){let l=e.getState();if(au(l.layoutCustomisations.showSidebar)){let s=l.layoutCustomisations.showSidebar(l,a!==0);if(a===0&&s===!0)return l.layout.recentVisibleSizes.navSize;if(a!==0&&s===!1)return 0}return a},setOptions:a=>{let{layout:l,ui:s,selectedPanel:u,theme:c}=e.getState();if(!a)return;let d=E(E(E(E({},l),a.layout||{}),ho(a,Object.keys(l))),r&&{navSize:0}),f=E(E(E({},s),a.ui),Kl(a.ui||{},ho(a,Object.keys(s)))),p=E(E({},c),a.theme),m={};Qt(s,f)||(m.ui=f),Qt(l,d)||(m.layout=d),a.selectedPanel&&!Qt(u,a.selectedPanel)&&(m.selectedPanel=a.selectedPanel),Object.keys(m).length&&e.setState(m,{persistence:"permanent"}),Qt(c,p)||e.setState({theme:p})}},o=ho(e.getState(),["layout","selectedPanel"]);return(i=t.channel)==null||i.on(r4,()=>{n.setOptions(Pn(n.getInitialOptions(),o))}),{api:n,state:Pn(n.getInitialOptions(),o)}},pE={};qe(pE,{init:()=>i4});var i4=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=hg(r,i=>i.id===t.id);return n.forEach(i=>{i.onClear&&i.onClear({dismissed:!1,timeout:!1})}),{notifications:[...o,t]}})},clearNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=hg(r,i=>i.id===t);return n.forEach(i=>{i.onClear&&i.onClear({dismissed:!1,timeout:!1})}),{notifications:o}})}},state:{notifications:[]}}),hE={};qe(hE,{init:()=>l4});const{OPEN_IN_EDITOR_REQUEST:a4,OPEN_IN_EDITOR_RESPONSE:lu}=__STORYBOOK_MODULE_CORE_EVENTS__;var l4=({provider:e,fullAPI:t})=>({api:{openInEditor(r){return new Promise(n=>{var s,u;let{file:o,line:i,column:a}=r,l=c=>{var d;c.file===o&&c.line===i&&c.column===a&&((d=e.channel)==null||d.off(lu,l),n(c))};(s=e.channel)==null||s.on(lu,l),(u=e.channel)==null||u.emit(a4,r)})}},state:{notifications:[]},init:async()=>{var n;let{color:r}=await Fr(async()=>{const{color:o}=await Promise.resolve().then(()=>qD);return{color:o}},void 0,import.meta.url);(n=e.channel)==null||n.on(lu,o=>{o.error!==null&&t.addNotification({id:"open-in-editor-error",content:{headline:"Failed to open in editor",subHeadline:o.error||"Check the Storybook process on the command line for more details."},icon:g.createElement(z5,{color:r.negative}),duration:8e3})})}}),gE={};qe(gE,{init:()=>s4});var s4=({provider:e,fullAPI:t})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{},init:()=>{e.handleAPI(t)}}),mE={};qe(mE,{init:()=>u4});var u4=({store:e,navigate:t,fullAPI:r})=>({state:{settings:{lastTrackedStoryId:null}},api:{closeSettings:()=>{let{settings:{lastTrackedStoryId:n}}=e.getState();n?r.selectStory(n):r.selectFirstStory()},changeSettingsTab:n=>{t(`/settings/${n}`)},isSettingsScreenActive:()=>{let{path:n}=r.getUrlState();return!!(n||"").match(/^\/settings/)},retrieveSelection(){let{settings:n}=e.getState();return n.lastTrackedStoryId},storeSelection:async()=>{let{storyId:n,settings:o}=e.getState();await e.setState({settings:P(E({},o),{lastTrackedStoryId:n})})}}}),yE={};qe(yE,{controlOrMetaKey:()=>wn,defaultShortcuts:()=>Cn,init:()=>w4,isMacLike:()=>EE,keys:()=>Fc});var c4=vt(_F(),1);const{FORCE_REMOUNT:d4,PREVIEW_KEYDOWN:f4,STORIES_COLLAPSE_ALL:p4,STORIES_EXPAND_ALL:h4}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:bE}=__STORYBOOK_MODULE_GLOBAL__,{global:g4}=__STORYBOOK_MODULE_GLOBAL__;var{navigator:su}=g4,m4=()=>su&&su.platform?!!su.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,y4=()=>m4()?"⌥":"alt",b4=e=>{var i;if(["Meta","Alt","Control","Shift","Tab"].includes(e.key))return null;let t=[];e.altKey&&t.push("alt"),e.ctrlKey&&t.push("control"),e.metaKey&&t.push("meta"),e.shiftKey&&t.push("shift");let r=(i=e.code)==null?void 0:i.toUpperCase(),n={MINUS:"-",EQUAL:"=",BRACKETLEFT:"[",BRACKETRIGHT:"]",BACKSLASH:"\\",SEMICOLON:";",QUOTE:"'",BACKQUOTE:"`",COMMA:",",PERIOD:".",SLASH:"/"},o=r?r.startsWith("KEY")&&r.length===4?r.replace("KEY",""):r.startsWith("DIGIT")?r.replace("DIGIT",""):n[r]:void 0;if(e.key&&e.key.length===1&&e.key!==" "){let a=e.key.toUpperCase(),l=o;l&&l.length===1&&l!==a?t.push([a,l]):t.push(a)}else e.key==="Dead"&&o&&t.push(o);return e.key===" "&&t.push("space"),e.key==="Escape"&&t.push("escape"),e.key==="ArrowRight"&&t.push("ArrowRight"),e.key==="ArrowDown"&&t.push("ArrowDown"),e.key==="ArrowUp"&&t.push("ArrowUp"),e.key==="ArrowLeft"&&t.push("ArrowLeft"),t.length>0?t:null},E4=(e,t)=>!e||!t||(e.join("").startsWith("shift/")&&e.shift(),e.length!==t.length)?!1:!e.find((r,n)=>Array.isArray(r)?!r.includes(t[n]):r!==t[n]),v4=e=>e==="alt"?y4():e==="control"?"⌃":e==="meta"?"⌘":e==="shift"?"⇧":e==="Enter"||e==="Backspace"||e==="Esc"||e==="escape"?"":e===" "?"SPACE":e==="ArrowUp"?"↑":e==="ArrowDown"?"↓":e==="ArrowLeft"?"←":e==="ArrowRight"?"→":e==null?void 0:e.toUpperCase(),S4=e=>e.map(v4).join(" "),x4=e=>e.map(t=>t==="+"?"plus":t===" "?"space":t).join("+"),{navigator:uu,document:Sm}=bE,EE=()=>uu&&uu.platform?!!uu.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,wn=()=>EE()?"meta":"control";function Fc(e){return Object.keys(e)}var Cn=Object.freeze({fullScreen:["alt","F"],togglePanel:["alt","A"],panelPosition:["alt","D"],toggleNav:["alt","S"],toolbar:["alt","T"],search:[wn(),"K"],focusNav:["1"],focusIframe:["2"],focusPanel:["3"],prevComponent:["alt","ArrowUp"],nextComponent:["alt","ArrowDown"],prevStory:["alt","ArrowLeft"],nextStory:["alt","ArrowRight"],shortcutsPage:[wn(),"shift",","],aboutPage:[wn(),","],escape:["escape"],collapseAll:[wn(),"shift","ArrowUp"],expandAll:[wn(),"shift","ArrowDown"],remount:["alt","R"],openInEditor:["alt","shift","E"],copyStoryLink:["alt","shift","L"]}),cu={};function $4(e){let t=e.target;return!!(/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null||t.closest("dialog[open]"))}var w4=({store:e,fullAPI:t,provider:r})=>{let n={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return E(E({},Cn),n.getAddonsShortcutDefaults())},getAddonsShortcuts(){return cu},getAddonsShortcutLabels(){let a={};return Object.entries(n.getAddonsShortcuts()).forEach(([l,{label:s}])=>{a[l]=s}),a},getAddonsShortcutDefaults(){let a={};return Object.entries(n.getAddonsShortcuts()).forEach(([l,{defaultShortcut:s}])=>{a[l]=s}),a},async setShortcuts(a){return await e.setState({shortcuts:a},{persistence:"permanent"}),a},async restoreAllDefaultShortcuts(){return n.setShortcuts(n.getDefaultShortcuts())},async setShortcut(a,l){let s=n.getShortcutKeys();return await n.setShortcuts(P(E({},s),{[a]:l})),l},async setAddonShortcut(a,l){let s=n.getShortcutKeys();return await n.setShortcuts(P(E({},s),{[`${a}-${l.actionName}`]:l.defaultShortcut})),cu[`${a}-${l.actionName}`]=l,l},async restoreDefaultShortcut(a){let l=n.getDefaultShortcuts()[a];return n.setShortcut(a,l)},handleKeydownEvent(a){let l=b4(a),s=n.getShortcutKeys(),u=Fc(s).find(c=>E4(l,s[c]));u&&n.handleShortcutFeature(u,a)},handleShortcutFeature(a,l){let{ui:{enableShortcuts:s},storyId:u}=e.getState();if(s)switch(l!=null&&l.preventDefault&&l.preventDefault(),a){case"escape":{t.getIsFullscreen()?t.toggleFullscreen(!1):t.getIsNavShown()&&t.toggleNav(!0);break}case"focusNav":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),t.focusOnUIElement(sa.storyListMenu);break}case"search":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(sa.storySearchField,!0)},0);break}case"focusIframe":{let c=Sm.getElementById("storybook-preview-iframe");if(c)try{c.contentWindow.focus()}catch(d){}break}case"focusPanel":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.focusOnUIElement(sa.storyPanelRoot);break}case"nextStory":{t.jumpToStory(1);break}case"prevStory":{t.jumpToStory(-1);break}case"nextComponent":{t.jumpToComponent(1);break}case"prevComponent":{t.jumpToComponent(-1);break}case"fullScreen":{t.toggleFullscreen();break}case"togglePanel":{t.togglePanel();break}case"toggleNav":{t.toggleNav();break}case"toolbar":{t.toggleToolbar();break}case"panelPosition":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.togglePanelPosition();break}case"aboutPage":{t.navigate("/settings/about");break}case"shortcutsPage":{t.navigate("/settings/shortcuts");break}case"collapseAll":{t.emit(p4);break}case"expandAll":{t.emit(h4);break}case"remount":{t.emit(d4,{storyId:u});break}case"openInEditor":{bE.CONFIG_TYPE==="DEVELOPMENT"&&t.openInEditor({file:t.getCurrentStoryData().importPath});break}case"copyStoryLink":{(0,c4.default)(window.location.href);break}default:cu[a].action();break}}},{shortcuts:o=Cn}=e.getState(),i={shortcuts:Fc(Cn).reduce((a,l)=>P(E({},a),{[l]:o[l]||Cn[l]}),Cn)};return{api:n,state:i,init:()=>{var a;Sm.addEventListener("keydown",l=>{$4(l)||n.handleKeydownEvent(l)}),(a=r.channel)==null||a.on(f4,l=>{n.handleKeydownEvent(l.event)})}}},vE={};qe(vE,{init:()=>Z4});const{logger:C4}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:_4,CURRENT_STORY_WAS_SET:T4,DOCS_PREPARED:A4,PRELOAD_ENTRIES:O4,RESET_STORY_ARGS:R4,SELECT_STORY:D4,SET_CONFIG:P4,SET_CURRENT_STORY:I4,SET_FILTER:F4,SET_INDEX:L4,SET_STORIES:k4,STORY_ARGS_UPDATED:N4,STORY_CHANGED:M4,STORY_INDEX_INVALIDATED:B4,STORY_MISSING:j4,STORY_PREPARED:H4,STORY_SPECIFIED:U4,UPDATE_STORY_ARGS:z4}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:K4}=__STORYBOOK_MODULE_GLOBAL__;vt(aI(),1);var G4=class extends af{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}},W4={id:"storybook/status",leader:!0,initialState:{}},du={SELECT:"select"};function V4({universalStatusStore:e,useUniversalStore:t,environment:r}){let n={getAll(){return e.getState()},set(i){e.setState(a=>{var s;let l=E({},a);for(let u of i){let{storyId:c,typeId:d}=u;l[c]=P(E({},(s=l[c])!=null?s:{}),{[d]:u})}return l})},onAllStatusChange(i){return e.onStateChange((a,l)=>{i(a,l)})},onSelect(i){return e.subscribe(du.SELECT,a=>{i(a.payload)})},selectStatuses:i=>{e.send({type:du.SELECT,payload:i})},unset(i){if(!i){e.setState({});return}e.setState(a=>{let l=E({},a);for(let s of i)delete l[s];return l})},typeId:void 0},o=i=>({getAll:n.getAll,set(a){e.setState(l=>{var u;let s=E({},l);for(let c of a){let{storyId:d}=c;if(c.typeId!==i)switch(r){case"server":throw new G4({status:c,typeId:i});case"manager":throw new nI({status:c,typeId:i});default:throw new oI({status:c,typeId:i})}s[d]=P(E({},(u=s[d])!=null?u:{}),{[i]:c})}return s})},onAllStatusChange:n.onAllStatusChange,onSelect(a){return e.subscribe(du.SELECT,l=>{l.payload.some(s=>s.typeId===i)&&a(l.payload)})},unset(a){e.setState(l=>{var u;let s=E({},l);for(let d in s)if((u=s[d])!=null&&u[i]&&(!a||a!=null&&a.includes(d))){let c=s[d],{[i]:f}=c,p=G(c,[po(i)]);s[d]=p}return s})},typeId:i});return t?{getStatusStoreByTypeId:o,fullStatusStore:n,universalStatusStore:e,useStatusStore:i=>t(e,i)[0]}:{getStatusStoreByTypeId:o,fullStatusStore:n,universalStatusStore:e}}var SE=(e,t)=>{let r=h.useRef(t?t(e.getState()):e.getState()),n=h.useCallback(i=>e.onStateChange((a,l)=>{if(!t){r.current=a,i();return}let s=t(a),u=t(l);!Qt(s,u)&&(r.current=s,i())}),[e,t]),o=h.useCallback(()=>{let i=e.getState(),a=t?t(i):i;return Qt(a,r.current)||(r.current=a),r.current},[e,t]);return[h.useSyncExternalStore(n,o),e.setState]},q4=V4({universalStatusStore:qd.create(P(E({},W4),{leader:globalThis.CONFIG_TYPE==="PRODUCTION"})),useUniversalStore:SE,environment:"manager"}),{fullStatusStore:xm}=q4,{fetch:Y4}=K4,X4="./index.json",J4=["enableShortcuts","theme","showRoots"];function fu(e){if(!e||typeof e=="string")return e;let t=E({},e);return J4.forEach(r=>{r in t&&delete t[r]}),t}var Z4=({fullAPI:e,store:t,navigate:r,provider:n,storyId:o,viewMode:i,docsOptions:a={}})=>{var u,c,d,f,p,m,y,S,b,v,x,C,A;let l={storyId:Di,getData:($,w)=>{let _=l.resolveStory($,w);if((_==null?void 0:_.type)==="story"||(_==null?void 0:_.type)==="docs")return _},isPrepared:($,w)=>{let _=l.getData($,w);return _?_.type==="story"?_.prepared:!0:!1},resolveStory:($,w)=>{var T,I,D;let{refs:_,index:O}=t.getState();if(!(w&&!_[w]))return w?(D=(I=(T=_==null?void 0:_[w])==null?void 0:T.index)==null?void 0:I[$])!=null?D:void 0:O?O[$]:void 0},getCurrentStoryData:()=>{let{storyId:$,refId:w}=t.getState();return l.getData($,w)},getIndex:()=>{let{internal_index:$}=t.getState();return $},getParameters:($,w)=>{let{storyId:_,refId:O}=typeof $=="string"?{storyId:$,refId:void 0}:$,T=l.getData(_,O);if(["story","docs"].includes(T==null?void 0:T.type)){let{parameters:I}=T;if(I)return w?I[w]:I}return null},getCurrentParameter:$=>{let{storyId:w,refId:_}=t.getState();return l.getParameters({storyId:w,refId:_},$)||void 0},jumpToComponent:$=>{let{filteredIndex:w,storyId:_,refs:O,refId:T}=t.getState();if(!l.getData(_,T))return;let I=T?O[T].filteredIndex||{}:w;if(!I)return;let D=l.findSiblingStoryId(_,I,$,!0);D&&l.selectStory(D,void 0,{ref:T})},jumpToStory:$=>{let{filteredIndex:w,storyId:_,refs:O,refId:T}=t.getState(),I=l.getData(_,T);if(!I)return;let D=I.refId?O[I.refId].filteredIndex:w;if(!D)return;let M=l.findSiblingStoryId(_,D,$,!1);M&&l.selectStory(M,void 0,{ref:T})},selectFirstStory:()=>{let{index:$}=t.getState();if(!$)return;let w=Object.keys($).find(_=>$[_].type==="story");if(w){l.selectStory(w);return}r("/")},selectStory:($=void 0,w=void 0,_={})=>{let{ref:O}=_,{storyId:T,index:I,filteredIndex:D,refs:M,settings:k}=t.getState(),R=U=>(U==null?void 0:U.type)==="docs"||(U==null?void 0:U.type)==="story"?(t.setState({settings:P(E({},k),{lastTrackedStoryId:U.id})}),r(`/${U.type}/${U.refId?`${U.refId}_${U.id}`:U.id}`),!0):!1,j=T==null?void 0:T.split("--",2)[0],L=O?M[O].index:I,z=O?M[O].filteredIndex:D;if(!(!L||!z))if(w)if(!$)R(L[Di(j,w)]);else{let U=O?`${O}_${Di($,w)}`:Di($,w);if(L[U])R(L[U]);else{let B=L[Mn($)];if((B==null?void 0:B.type)==="component"){let F=B.children.find(H=>L[H].name===w);R(F?L[F]:void 0)}}}else{let U=$?L[$]||L[Mn($)]:L[j];if(!U)throw new Error(`Unknown id or title: '${$}'`);R(U)||R(l.findLeafEntry(z,U.id))}},findLeafEntry($,w){let _=$[w];if(_.type==="docs"||_.type==="story")return _;let O=_.children.find(T=>$[T])||_.children[0];return l.findLeafEntry($,O)},findLeafStoryId($,w){var _;return(_=l.findLeafEntry($,w))==null?void 0:_.id},findAllLeafStoryIds($){let{index:w}=t.getState();if(!w)return[];let _=(O,T=[])=>{var D;let I=w[O];return I&&(I.type==="story"&&T.push(I.id),"children"in I&&((D=I.children)==null||D.forEach(M=>_(M,T)))),T};return _($,[])},findSiblingStoryId($,w,_,O){if(O){let D=YF(w),M=D.findIndex(k=>k.includes($));return M===D.length-1&&_>0||M===0&&_<0?void 0:D[M+_]?D[M+_][0]:void 0}let T=XF(w),I=T.indexOf($);if(!(I===T.length-1&&_>0)&&!(I===0&&_<0))return T[I+_]},updateStoryArgs:($,w)=>{var T;let{id:_,refId:O}=$;(T=n.channel)==null||T.emit(z4,{storyId:_,updatedArgs:w,options:{target:O}})},resetStoryArgs:($,w)=>{var T;let{id:_,refId:O}=$;(T=n.channel)==null||T.emit(R4,{storyId:_,argNames:w,options:{target:O}})},fetchIndex:async()=>{try{let $=await Y4(X4);if($.status!==200)throw new Error(await $.text());let w=await $.json();if(w.v<3){C4.warn(`Skipping story index with version v${w.v}, awaiting SET_STORIES.`);return}await l.setIndex(w)}catch($){await t.setState({indexError:$})}},setIndex:async $=>{let{filteredIndex:w,index:_,filters:O}=t.getState(),T=xm.getAll(),I=wa($,{provider:n,docsOptions:a,filters:O,allStatuses:T}),D=wa($,{provider:n,docsOptions:a,filters:{},allStatuses:T});await t.setState({internal_index:$,filteredIndex:gm(I,w),index:gm(D,_),indexError:void 0})},updateStory:async($,w,_)=>{if(_){let{id:O,index:T,filteredIndex:I}=_;T[$]=E(E({},T[$]),w),I[$]=E(E({},I[$]),w),await e.updateRef(O,{index:T,filteredIndex:I})}else{let{index:O,filteredIndex:T}=t.getState();O&&(O[$]=E(E({},O[$]),w)),T&&(T[$]=E(E({},T[$]),w)),(O||T)&&await t.setState({index:O,filteredIndex:T})}},updateDocs:async($,w,_)=>{if(_){let{id:O,index:T,filteredIndex:I}=_;T[$]=E(E({},T[$]),w),I[$]=E(E({},I[$]),w),await e.updateRef(O,{index:T,filteredIndex:I})}else{let{index:O,filteredIndex:T}=t.getState();O&&(O[$]=E(E({},O[$]),w)),T&&(T[$]=E(E({},T[$]),w)),(O||T)&&await t.setState({index:O,filteredIndex:T})}},setPreviewInitialized:async $=>{$?e.updateRef($.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async($,w)=>{var T;await t.setState({filters:P(E({},t.getState().filters),{[$]:w})});let{internal_index:_}=t.getState();if(!_)return;await l.setIndex(_);let O=await e.getRefs();Object.entries(O).forEach(k=>{var[I,R]=k,j=R,{internal_index:D}=j,M=G(j,["internal_index"]);e.setRef(I,P(E({},M),{storyIndex:D}),!0)}),(T=n.channel)==null||T.emit(F4,{id:$})}};(u=n.channel)==null||u.on(U4,function({storyId:$,viewMode:w}){var O,T;let{sourceType:_}=mt(this,e);if(_==="local"){let I=t.getState(),D=I.path==="/"||I.viewMode==="story"||I.viewMode==="docs",M=I.viewMode&&I.storyId,k=I.viewMode!==w||I.storyId!==$,{type:R}=((O=I.index)==null?void 0:O[I.storyId])||{};D&&(M&&k&&!(R==="root"||R==="component"||R==="group")?(T=n.channel)==null||T.emit(I4,{storyId:I.storyId,viewMode:I.viewMode}):k&&r(`/${w}/${$}`))}}),(c=n.channel)==null||c.on(T4,function(){let{ref:$}=mt(this,e);l.setPreviewInitialized($)}),(d=n.channel)==null||d.on(M4,function(){let{sourceType:$}=mt(this,e);if($==="local"){let w=l.getCurrentParameter("options");w&&e.setOptions(fu(w))}}),(f=n.channel)==null||f.on(H4,function(_){var O=_,{id:$}=O,w=G(O,["id"]);var D;let{ref:T,sourceType:I}=mt(this,e);if(l.updateStory($,P(E({},w),{prepared:!0}),T),!T&&!t.getState().hasCalledSetOptions){let{options:M}=w.parameters;e.setOptions(fu(M)),t.setState({hasCalledSetOptions:!0})}if(I==="local"){let{storyId:M,index:k,refId:R}=t.getState();if(!k)return;let j=Array.from(new Set([l.findSiblingStoryId(M,k,1,!0),l.findSiblingStoryId(M,k,-1,!0)])).filter(Boolean);(D=n.channel)==null||D.emit(O4,{ids:j,options:{target:R}})}}),(p=n.channel)==null||p.on(A4,function(_){var O=_,{id:$}=O,w=G(O,["id"]);let{ref:T}=mt(this,e);l.updateStory($,P(E({},w),{prepared:!0}),T)}),(m=n.channel)==null||m.on(L4,function($){let{ref:w}=mt(this,e);if(w)e.setRef(w.id,P(E({},w),{storyIndex:$}),!0);else{l.setIndex($);let _=l.getCurrentParameter("options");e.setOptions(fu(_))}}),(y=n.channel)==null||y.on(k4,function($){let{ref:w}=mt(this,e),_=$.v?KF($):$.stories;if(w)e.setRef(w.id,P(E({},w),{setStoriesData:_}),!0);else throw new Error("Cannot call SET_STORIES for local frame")}),(S=n.channel)==null||S.on(D4,function(D){var M=D,{kind:$,title:w=$,story:_,name:O=_,storyId:T}=M,I=G(M,["kind","title","story","name","storyId"]);let{ref:k}=mt(this,e);k?e.selectStory(T||w,O,P(E({},I),{ref:k.id})):e.selectStory(T||w,O,I)}),(b=n.channel)==null||b.on(N4,function({storyId:$,args:w}){let{ref:_}=mt(this,e);l.updateStory($,{args:w},_)}),(v=n.channel)==null||v.on(_4,function($){let{ref:w}=mt(this,e);l.setPreviewInitialized(w)}),(x=n.channel)==null||x.on(j4,function($){let{ref:w}=mt(this,e);l.setPreviewInitialized(w)}),(C=n.channel)==null||C.on(P4,()=>{var w,_;let $=n.getConfig();(w=$==null?void 0:$.sidebar)!=null&&w.filters&&t.setState({filters:E(E({},t.getState().filters),(_=$==null?void 0:$.sidebar)==null?void 0:_.filters)})}),xm.onAllStatusChange(async()=>{let{internal_index:$}=t.getState();if(!$)return;await l.setIndex($);let w=await e.getRefs();Object.entries(w).forEach(I=>{var[_,D]=I,M=D,{internal_index:O}=M,T=G(M,["internal_index"]);e.setRef(_,P(E({},T),{storyIndex:O}),!0)})});let s=n.getConfig();return{api:l,state:{storyId:o,viewMode:i,hasCalledSetOptions:!1,previewInitialized:!1,filters:((A=s==null?void 0:s.sidebar)==null?void 0:A.filters)||{}},init:async()=>{var $;($=n.channel)==null||$.on(B4,()=>l.fetchIndex()),await l.fetchIndex()}}},xE={};qe(xE,{init:()=>a8});const{GLOBALS_UPDATED:Q4,NAVIGATE_URL:e8,SET_CURRENT_STORY:t8,STORY_ARGS_UPDATED:r8,UPDATE_QUERY_PARAMS:n8}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:o8}=__STORYBOOK_MODULE_GLOBAL__;var{window:pu}=o8,zr=e=>{if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1},hu,i8=({state:{location:e,path:t,viewMode:r,storyId:n},singleStory:o})=>{let A=pI(e),{full:i,panel:a,nav:l,shortcuts:s,addonPanel:u,tabs:c,path:d}=A,f=G(A,["full","panel","nav","shortcuts","addonPanel","tabs","path"]),p,m,y;zr(i)===!0?(p=0,m=0,y=0):zr(i)===!1&&(p=yt.layout.navSize,m=yt.layout.bottomPanelHeight,y=yt.layout.rightPanelWidth),o||(zr(l)===!0&&(p=yt.layout.navSize),zr(l)===!1&&(p=0)),zr(a)===!1&&(m=0,y=0);let S={navSize:p,bottomPanelHeight:m,rightPanelWidth:y,panelPosition:["right","bottom"].includes(a)?a:void 0,showTabs:zr(c)},b={enableShortcuts:zr(s)},v=u||void 0,x=n,C=rr(hu,f)?hu:f;return hu=C,{viewMode:r,layout:S,ui:b,selectedPanel:v,location:e,path:t,customQueryParams:C,storyId:x}},a8=e=>{var u,c,d,f;let{store:t,navigate:r,provider:n,fullAPI:o}=e,i=(p,m={},y={})=>{let S=Object.entries(m).filter(([,v])=>v).sort(([v],[x])=>v<x?-1:1).map(([v,x])=>`${v}=${x}`),b=[p,...S].join("&");return r(b,y)},a={getQueryParam(p){let{customQueryParams:m}=t.getState();return m?m[p]:void 0},getUrlState(){var x;let{location:p,path:m,customQueryParams:y,storyId:S,url:b,viewMode:v}=t.getState();return{path:m,hash:(x=p.hash)!=null?x:"",queryParams:y,storyId:S,url:b,viewMode:v}},setQueryParams(p){var b;let{customQueryParams:m}=t.getState(),y={},S=E(E({},m),Object.entries(p).reduce((v,[x,C])=>(C!==null&&(v[x]=C),v),y));rr(m,S)||(t.setState({customQueryParams:S}),(b=n.channel)==null||b.emit(n8,S))},applyQueryParams(p,m){let{path:y,hash:S="",queryParams:b}=a.getUrlState();i(`${y}${S}`,E(E({},b),p),m),a.setQueryParams(p)},navigateUrl(p,m){r(p,E({plain:!0},m))}},l=()=>{let{path:p,hash:m="",queryParams:y,viewMode:S}=a.getUrlState();if(S!=="story")return;let b=o.getCurrentStoryData();if((b==null?void 0:b.type)!=="story")return;let{args:v,initialArgs:x}=b,C=mg(x,v);i(`${p}${m}`,P(E({},y),{args:C}),{replace:!0}),a.setQueryParams({args:C})};(u=n.channel)==null||u.on(t8,()=>l());let s;return(c=n.channel)==null||c.on(r8,()=>{"requestIdleCallback"in pu?(s&&pu.cancelIdleCallback(s),s=pu.requestIdleCallback(l,{timeout:1e3})):(s&&clearTimeout(s),setTimeout(l,100))}),(d=n.channel)==null||d.on(Q4,({userGlobals:p,initialGlobals:m})=>{let{path:y,hash:S="",queryParams:b}=a.getUrlState(),v=mg(m,p);i(`${y}${S}`,P(E({},b),{globals:v}),{replace:!0}),a.setQueryParams({globals:v})}),(f=n.channel)==null||f.on(e8,(p,m)=>{a.navigateUrl(p,m)}),{api:a,state:i8(e)}},$E={};qe($E,{init:()=>d8});var l8=vt(Qn(),1);const{global:Lc}=__STORYBOOK_MODULE_GLOBAL__;var s8="10.1.10",{VERSIONCHECK:u8}=Lc,$m=(0,l8.default)(1)(()=>{try{return E({},JSON.parse(u8).data||{})}catch(e){return{}}}),c8=e=>e.includes("vue")?"vue":e,d8=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),r={versions:E({current:{version:s8}},$m()),dismissedVersionNotification:t},n={getCurrentVersion:()=>{let{versions:{current:o}}=e.getState();return o},getLatestVersion:()=>{let{versions:{latest:o,next:i,current:a}}=e.getState();return a&>.prerelease(a.version)&&i?o&>.gt(o.version,i.version)?o:i:o},getDocsUrl:({asset:o,subpath:i=o,versioned:a,renderer:l,ref:s="ui"})=>{var S,b;let{versions:u}=e.getState(),c=(S=u.latest)==null?void 0:S.version,d=(b=u.current)==null?void 0:b.version,f=(d==null?void 0:d.startsWith("0.0.0"))&&c||d,p=`https://storybook.js.org/${o?"docs-assets":"docs"}/`;if(o&&f)p+=`${gt.major(f)}.${gt.minor(f)}/`;else if(a&&f&&c){let v=gt.diff(c,f);v==="patch"||v===null||(p+=`${gt.major(f)}.${gt.minor(f)}/`)}let[m,y]=(i==null?void 0:i.split("#"))||[];if(m&&(p+=o?m:`${m}/`),l&&typeof Lc.STORYBOOK_RENDERER<"u"){let v=Lc.STORYBOOK_RENDERER;v&&(p+=`?renderer=${c8(v)}`)}return s&&(p+=`${p.includes("?")?"&":"?"}ref=${s}`),y&&(p+=`#${y}`),p},versionUpdateAvailable:()=>{let o=n.getLatestVersion(),i=n.getCurrentVersion();if(o){if(!o.version||!i.version)return!0;let a=gt.prerelease(i.version)?`${gt.major(i.version)}.${gt.minor(i.version)}.${gt.patch(i.version)}`:i.version,l=gt.diff(a,o.version);return gt.gt(o.version,a)&&l!=="patch"&&!l.includes("pre")}return!1}};return{init:async()=>{let{versions:o={}}=e.getState(),{latest:i,next:a}=$m();await e.setState({versions:P(E({},o),{latest:i,next:a})})},state:r,api:n}},wE={};qe(wE,{init:()=>b8});const{REQUEST_WHATS_NEW_DATA:f8,RESULT_WHATS_NEW_DATA:p8,SET_WHATS_NEW_CACHE:h8,TOGGLE_WHATS_NEW_NOTIFICATIONS:g8}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:m8}=__STORYBOOK_MODULE_GLOBAL__;var wm="whats-new",y8=({color:e="currentColor",size:t=14})=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z",fill:e})),b8=({fullAPI:e,store:t,provider:r})=>{let n={whatsNewData:void 0};function o(s){t.setState({whatsNewData:s}),n.whatsNewData=s}let i={isWhatsNewUnread(){var s;return((s=n.whatsNewData)==null?void 0:s.status)==="SUCCESS"&&!n.whatsNewData.postIsRead},whatsNewHasBeenRead(){var s;((s=n.whatsNewData)==null?void 0:s.status)==="SUCCESS"&&(l({lastReadPost:n.whatsNewData.url}),o(P(E({},n.whatsNewData),{postIsRead:!0})),e.clearNotification(wm))},toggleWhatsNewNotifications(){var s,u;((s=n.whatsNewData)==null?void 0:s.status)==="SUCCESS"&&(o(P(E({},n.whatsNewData),{disableWhatsNewNotifications:!n.whatsNewData.disableWhatsNewNotifications})),(u=r.channel)==null||u.emit(g8,{disableWhatsNewNotifications:n.whatsNewData.disableWhatsNewNotifications}))}};function a(){var s;return(s=r.channel)==null||s.emit(f8),new Promise(u=>{var c;return(c=r.channel)==null?void 0:c.once(p8,({data:d})=>u(d))})}function l(s){var u;(u=r.channel)==null||u.emit(h8,s)}return{init:async()=>{var c;if(m8.CONFIG_TYPE!=="DEVELOPMENT")return;let s=await a();o(s);let u=e.getUrlState();!((u==null?void 0:u.path)==="/onboarding"||((c=u.queryParams)==null?void 0:c.onboarding)==="true")&&s.status==="SUCCESS"&&!s.disableWhatsNewNotifications&&s.showNotification&&e.addNotification({id:wm,link:"/settings/whats-new",content:{headline:s.title,subHeadline:"Learn what's new in Storybook"},icon:g.createElement(y8,null),onClear({dismissed:d}){d&&l({lastDismissedPost:s.url})}})},state:n,api:i}},Ao=vt(TF(),1),E8=e=>{e.fn("set",function(t,r){return e.set(this._area,this._in(t),eI(r,{maxDepth:50}))}),e.fn("get",function(t,r){let n=e.get(this._area,this._in(t));return n!==null?rI(n):r||n})};E8(Ao.default._);var CE="@storybook/manager/store";function kc(e){return e.get(CE)||{}}function v8(e,t){return e.set(CE,t)}function S8(e,t){let r=kc(e);return v8(e,E(E({},r),t))}var x8=class{constructor({setState:e,getState:t}){this.upstreamSetState=e,this.upstreamGetState=t}getInitialState(e){return E(E(E({},e),kc(Ao.default.local)),kc(Ao.default.session))}getState(){return this.upstreamGetState()}async setState(e,t,r){let n,o;typeof t=="function"?(n=t,o=r):o=t;let{persistence:i="none"}=o||{},a={},l={};typeof e=="function"?a=u=>(l=e(u),l):(a=e,l=a);let s=await new Promise(u=>{this.upstreamSetState(a,()=>{u(this.getState())})});if(i!=="none"){let u=i==="session"?Ao.default.session:Ao.default.local;await S8(u,l)}return n&&n(s),s}},{ActiveTabs:Pq}=Ef,_E=AF({api:void 0,state:Rc({})}),$8=(...e)=>OF({},...e),w8=class extends h.Component{constructor(e){super(e),this.api={},this.initModules=()=>{this.modules.forEach(y=>{"init"in y&&y.init()})};let{location:t,path:r,refId:n,viewMode:o=e.docsOptions.docsMode?"docs":e.viewMode,singleStory:i,storyId:a,docsOptions:l,navigate:s}=e,u=new x8({getState:()=>this.state,setState:(y,S)=>(this.setState(y,()=>S(this.state)),this.state)}),c={location:t,path:r,viewMode:o,singleStory:i,storyId:a,refId:n},d={docsOptions:l};this.state=u.getInitialState(Rc(E(E({},c),d)));let f={navigate:s,store:u,provider:e.provider};this.modules=[gE,iE,oE,Ef,pE,mE,yE,vE,lE,aE,xE,$E,wE,hE].map(y=>y.init(P(E(E(E({},c),d),f),{state:this.state,fullAPI:this.api})));let p=Rc(this.state,...this.modules.map(y=>y.state)),m=Object.assign(this.api,{navigate:s},...this.modules.map(y=>y.api));this.state=p,this.api=m}static getDerivedStateFromProps(e,t){return t.path!==e.path?P(E({},t),{location:e.location,path:e.path,refId:e.refId,viewMode:e.viewMode,storyId:e.storyId}):null}shouldComponentUpdate(e,t){let r=this.props,n=this.state;return r.path!==e.path||!Qt(n,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return g.createElement(C8,{effect:this.initModules},g.createElement(_E.Provider,{value:t},g.createElement(T8,null,e)))}};w8.displayName="Manager";var C8=({children:e,effect:t})=>(g.useEffect(t,[]),e),_8=e=>e;function T8({filter:e=_8,children:t}){let r=h.useContext(_E),n=h.useRef(t),o=h.useRef(e);if(typeof n.current!="function")return g.createElement(h.Fragment,null,n.current);let i=o.current(r),a=h.useMemo(()=>[...Object.entries(i).reduce((l,s)=>l.concat(s),[])],[r.state]);return h.useMemo(()=>{let l=n.current;return g.createElement(l,E({},i))},a)}globalThis.STORYBOOK_ADDON_STATE={};const{Channel:Iq}=__STORYBOOK_MODULE_CHANNELS__;var A8={id:"storybook/test-provider",leader:!0,initialState:{}};function O8({universalTestProviderStore:e,useUniversalStore:t}){let r={settingsChanged:()=>{e.untilReady().then(()=>{e.send({type:"settings-changed"})})},onRunAll:i=>e.subscribe("run-all",i),onClearAll:i=>e.subscribe("clear-all",i)},n=P(E({},r),{getFullState:e.getState,setFullState:e.setState,onSettingsChanged:i=>e.subscribe("settings-changed",i),runAll:async()=>{await e.untilReady(),e.send({type:"run-all"})},clearAll:async()=>{await e.untilReady(),e.send({type:"clear-all"})}}),o=i=>{let a=()=>{var s;return(s=e.getState()[i])!=null?s:"test-provider-state:pending"},l=s=>{e.untilReady().then(()=>{e.setState(u=>P(E({},u),{[i]:s}))})};return P(E({},r),{testProviderId:i,getState:a,setState:l,runWithState:async s=>{l("test-provider-state:running");try{await s(),l("test-provider-state:succeeded")}catch(u){l("test-provider-state:crashed")}}})};return t?{getTestProviderStoreById:o,fullTestProviderStore:n,universalTestProviderStore:e,useTestProviderStore:i=>t(e,i)[0]}:{getTestProviderStoreById:o,fullTestProviderStore:n,universalTestProviderStore:e}}O8({universalTestProviderStore:qd.create(P(E({},A8),{leader:globalThis.CONFIG_TYPE==="PRODUCTION"})),useUniversalStore:SE});var R8={items:{accessibilityTests:{status:"open"},autodocs:{status:"open"},ciTests:{status:"open"},controls:{status:"open"},coverage:{status:"open"},guidedTour:{status:"open"},installA11y:{status:"open"},installChromatic:{status:"open"},installDocs:{status:"open"},installVitest:{status:"open"},mdxDocs:{status:"open"},moreComponents:{status:"open"},moreStories:{status:"open"},onboardingSurvey:{status:"open"},organizeStories:{status:"open"},publishStorybook:{status:"open"},renderComponent:{status:"open"},runTests:{status:"open"},viewports:{status:"open"},visualTests:{status:"open"},whatsNewStorybook10:{status:"open"},writeInteractions:{status:"open"}},widget:{}},D8={id:"storybook/checklist",initialState:R8};qd.create(P(E({},D8),{leader:globalThis.CONFIG_TYPE==="PRODUCTION"}));var gu={exports:{}},mu={};var Cm;function P8(){if(Cm)return mu;Cm=1;var e=Fd();function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function l(d,f){var p=f(),m=n({inst:{value:p,getSnapshot:f}}),y=m[0].inst,S=m[1];return i(function(){y.value=p,y.getSnapshot=f,s(y)&&S({inst:y})},[d,p,f]),o(function(){return s(y)&&S({inst:y}),d(function(){s(y)&&S({inst:y})})},[d]),a(p),p}function s(d){var f=d.getSnapshot;d=d.value;try{var p=f();return!r(d,p)}catch(m){return!0}}function u(d,f){return f()}var c=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?u:l;return mu.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,mu}var _m;function I8(){return _m||(_m=1,gu.exports=P8()),gu.exports}var F8=I8(),$e=(r,t)=>{var e=G(r,[]);let n=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...n].filter(Boolean).join(" "),e},ao=({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),Sr=({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?"1px solid hsl(0 0 0 / 0.05)":"1px solid hsl(0 0 100 / 0.05)",color:e.color.defaultText,backgroundColor:e.base==="light"?"hsl(0 0 0 / 0.01)":"hsl(0 0 100 / 0.02)"}),_e=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),mn={margin:"16px 0"},vf=N.div(_e),L8=r=>{var n=r,{href:e=""}=n,t=G(n,["href"]);let o=/^\//.test(e)?`./?path=${e}`:e,i=/^#.*/.test(e)?"_self":"_top";return g.createElement("a",E({href:o,target:i},t))},TE=N(L8)(_e,({theme:e})=>({fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}})),AE=N.blockquote(_e,mn,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),an=[],zn=null,k8=h.lazy(async()=>{let{SyntaxHighlighter:e}=await Fr(async()=>{const{SyntaxHighlighter:t}=await import("./syntaxhighlighter-IQDEPFLK-D60nBfBQ.js");return{SyntaxHighlighter:t}},__vite__mapDeps([0,1,2,3]),import.meta.url);return an.length>0&&(an.forEach(t=>{e.registerLanguage(...t)}),an=[]),zn===null&&(zn=e),{default:t=>g.createElement(e,E({},t))}}),N8=h.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Fr(()=>import("./syntaxhighlighter-IQDEPFLK-D60nBfBQ.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),Fr(()=>import("./formatter-QJ4M4OGQ-cj5x2rLy.js"),__vite__mapDeps([4,1,2,3]),import.meta.url)]);return an.length>0&&(an.forEach(r=>{e.registerLanguage(...r)}),an=[]),zn===null&&(zn=e),{default:r=>g.createElement(e,P(E({},r),{formatter:t}))}}),di=e=>g.createElement(h.Suspense,{fallback:g.createElement("div",null)},e.format!==!1?g.createElement(N8,E({},e)):g.createElement(k8,E({},e)));di.registerLanguage=(...e)=>{if(zn!==null){zn.registerLanguage(...e);return}an.push(e)};var M8=e=>typeof e=="string",B8=/[\n\r]/g,j8=N.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),Sr),H8=N(di)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),Sf=n=>{var o=n,{className:e,children:t}=o,r=G(o,["className","children"]);var l;let i=(e||"").match(/lang-(\S+)/),a=h.Children.toArray(t);return a.filter(M8).some(s=>s.match(B8))?g.createElement(H8,E({bordered:!0,copyable:!0,language:(l=i==null?void 0:i[1])!=null?l:"text",format:!1},r),t):g.createElement(j8,P(E({},r),{className:e}),a)},OE=N.dl(_e,mn,{padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}}),RE=N.div(_e),DE=N.h1(_e,ao,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),xf=N.h2(_e,ao,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),$f=N.h3(_e,ao,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),PE=N.h4(_e,ao,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),IE=N.h5(_e,ao,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),FE=N.h6(_e,ao,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),LE=N.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),kE=N.img({maxWidth:"100%"}),NE=N.li(_e,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":Sr({theme:e})})),U8={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},ME=N.ol(_e,mn,U8,{listStyle:"decimal"}),BE=N.p(_e,mn,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":Sr({theme:e})})),jE=N.pre(_e,mn,({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),HE=N.span(_e,({theme:e})=>({"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),UE=N.title(Sr),zE=N.table(_e,mn,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),z8={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},KE=N.ul(_e,mn,z8,{listStyle:"disc"}),GE={h1:e=>g.createElement(DE,E({},$e(e,"h1"))),h2:e=>g.createElement(xf,E({},$e(e,"h2"))),h3:e=>g.createElement($f,E({},$e(e,"h3"))),h4:e=>g.createElement(PE,E({},$e(e,"h4"))),h5:e=>g.createElement(IE,E({},$e(e,"h5"))),h6:e=>g.createElement(FE,E({},$e(e,"h6"))),pre:e=>g.createElement(jE,E({},$e(e,"pre"))),a:e=>g.createElement(TE,E({},$e(e,"a"))),hr:e=>g.createElement(LE,E({},$e(e,"hr"))),dl:e=>g.createElement(OE,E({},$e(e,"dl"))),blockquote:e=>g.createElement(AE,E({},$e(e,"blockquote"))),table:e=>g.createElement(zE,E({},$e(e,"table"))),img:e=>g.createElement(kE,E({},$e(e,"img"))),div:e=>g.createElement(RE,E({},$e(e,"div"))),span:e=>g.createElement(HE,E({},$e(e,"span"))),li:e=>g.createElement(NE,E({},$e(e,"li"))),ul:e=>g.createElement(KE,E({},$e(e,"ul"))),ol:e=>g.createElement(ME,E({},$e(e,"ol"))),p:e=>g.createElement(BE,E({},$e(e,"p"))),code:e=>g.createElement(Sf,E({},$e(e,"code"))),tt:e=>g.createElement(UE,E({},$e(e,"tt"))),resetwrapper:e=>g.createElement(vf,E({},$e(e,"resetwrapper")))};N.div(({theme:e,compact:t})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"12px",minWidth:20,borderRadius:20,padding:t?"4px 7px":"4px 10px"}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.fgColor.critical,background:e.bgColor.critical,boxShadow:`inset 0 0 0 1px ${e.borderColor.critical}`};case"negative":return{color:e.fgColor.negative,background:e.bgColor.negative,boxShadow:`inset 0 0 0 1px ${e.borderColor.negative}`};case"warning":return{color:e.fgColor.warning,background:e.bgColor.warning,boxShadow:`inset 0 0 0 1px ${e.borderColor.warning}`};case"neutral":return{color:e.fgColor.muted,background:e.base==="dark"?e.barBg:e.background.app,boxShadow:`inset 0 0 0 1px ${vr(.8,e.textMutedColor)}`};case"positive":return{color:e.fgColor.positive,background:e.bgColor.positive,boxShadow:`inset 0 0 0 1px ${e.borderColor.positive}`};case"active":return{color:e.base==="light"?Ze(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${vr(.9,e.color.secondary)}`};default:return{}}});var K8=0,G8=e=>e.button===K8&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,W8=(e,t)=>{G8(e)&&(e.preventDefault(),t(e))},V8=N.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),q8=N.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:Ze(.07,e.color.secondary),"svg path:not([fill])":{fill:Ze(.07,e.color.secondary)}},"&:active":{color:Ze(.1,e.color.secondary),"svg path:not([fill])":{fill:Ze(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.secondary,e.color.secondary]),r&&(n=[e.color.dark,e.color.secondary,e.color.secondary]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}),Kn=h.forwardRef((c,u)=>{var d=c,{cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:o=!1,className:i=void 0,style:a=void 0,isButton:l=!1}=d,s=G(d,["cancel","children","onClick","withArrow","containsIcon","className","style","isButton"]);return g.createElement(q8,P(E({},s),{ref:u,isButton:l,role:l?"button":void 0,onClick:r&&e?f=>W8(f,r):r,className:i}),g.createElement(V8,{withArrow:n,containsIcon:o},t,n&&g.createElement(S1,null)))});Kn.displayName="Link";N.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"?e.color.darkest:e.color.dark}}));const{deprecate:Nc}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function Tm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Y8(...e){return t=>{let r=!1,n=e.map(o=>{let i=Tm(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){let i=n[o];typeof i=="function"?i():Tm(e[o],null)}}}}var X8=Symbol.for("react.lazy"),Ca=IO[" use ".trim().toString()];function J8(e){return typeof e=="object"&&e!==null&&"then"in e}function WE(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===X8&&"_payload"in e&&J8(e._payload)}function Z8(e){let t=e6(e),r=h.forwardRef((n,o)=>{let u=n,{children:i}=u,a=G(u,["children"]);WE(i)&&typeof Ca=="function"&&(i=Ca(i._payload));let l=h.Children.toArray(i),s=l.find(r6);if(s){let c=s.props.children,d=l.map(f=>f===s?h.Children.count(c)>1?h.Children.only(null):h.isValidElement(c)?c.props.children:null:f);return ce.jsx(t,P(E({},a),{ref:o,children:h.isValidElement(c)?h.cloneElement(c,void 0,d):null}))}return ce.jsx(t,P(E({},a),{ref:o,children:i}))});return r.displayName=`${e}.Slot`,r}var Q8=Z8("Slot");function e6(e){let t=h.forwardRef((r,n)=>{let a=r,{children:o}=a,i=G(a,["children"]);if(WE(o)&&typeof Ca=="function"&&(o=Ca(o._payload)),h.isValidElement(o)){let l=o6(o),s=n6(i,o.props);return o.type!==h.Fragment&&(s.ref=n?Y8(n,l):l),h.cloneElement(o,s)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var t6=Symbol("radix.slottable");function r6(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===t6}function n6(e,t){let r=E({},t);for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{let l=i(...a);return o(...a),l}:o&&(r[n]=o):n==="style"?r[n]=E(E({},o),i):n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return E(E({},e),r)}function o6(e){var n,o;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=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var i6=N.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)"})),VE=r=>{var n=r,{note:e}=n,t=G(n,["note"]);return g.createElement(i6,E({},t),e)};const{deprecate:a6}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ge=typeof document<"u"?g.useLayoutEffect:()=>{},yu,l6=(yu=g.useInsertionEffect)!==null&&yu!==void 0?yu:ge;function Ue(e){let t=h.useRef(null);return l6(()=>{t.current=e},[e]),h.useCallback((...r)=>{let n=t.current;return n==null?void 0:n(...r)},[])}function s6(e){let[t,r]=h.useState(e),n=h.useRef(null),o=Ue(()=>{if(!n.current)return;let a=n.current.next();if(a.done){n.current=null;return}t===a.value?o():r(a.value)});ge(()=>{n.current&&o()});let i=Ue(a=>{n.current=a(t),o()});return[t,i]}var qE={prefix:String(Math.round(Math.random()*1e10)),current:0},YE=g.createContext(qE),u6=g.createContext(!1),bu=new WeakMap;function c6(e=!1){let t=h.useContext(YE),r=h.useRef(null);if(r.current===null&&!e){var n,o;let i=(o=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(i){let a=bu.get(i);a==null?bu.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,bu.delete(i))}r.current=++t.current}return r.current}function d6(e){let t=h.useContext(YE),r=c6(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function f6(e){let t=g.useId(),[r]=h.useState(yn()),n=r?"react-aria":`react-aria${qE.prefix}`;return e||`${n}-${t}`}var p6=typeof g.useId=="function"?f6:d6;function h6(){return!1}function g6(){return!0}function m6(e){return()=>{}}function yn(){return typeof g.useSyncExternalStore=="function"?g.useSyncExternalStore(m6,h6,g6):h.useContext(u6)}var y6=!!(typeof window<"u"&&window.document&&window.document.createElement),In=new Map,Oo;typeof FinalizationRegistry<"u"&&(Oo=new FinalizationRegistry(e=>{In.delete(e)}));function et(e){let[t,r]=h.useState(e),n=h.useRef(null),o=p6(t),i=h.useRef(null);if(Oo&&Oo.register(i,o),y6){let a=In.get(o);a&&!a.includes(n)?a.push(n):In.set(o,[n])}return ge(()=>{let a=o;return()=>{Oo&&Oo.unregister(i),In.delete(a)}},[o]),h.useEffect(()=>{let a=n.current;return a&&r(a),()=>{a&&(n.current=null)}}),o}function b6(e,t){if(e===t)return e;let r=In.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=In.get(t);return n?(n.forEach(o=>o.current=e),e):t}function ua(e=[]){let t=et(),[r,n]=s6(t),o=h.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return ge(o,[t,o,...e]),r}function fi(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var me=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Ot=e=>e&&"window"in e&&e.window===e?e:me(e).defaultView||window;function _t(e,t){return t&&e?e.contains(t):!1}var ze=(e=document)=>e.activeElement;function De(e){return e.target}function E6(e,t,r,n){return e.createTreeWalker(t,r,n)}function XE(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=XE(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function v6(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=XE(e))&&(n&&(n+=" "),n+=t);return n}var S6=v6;function le(...e){let t=E({},e[0]);for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],a=n[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=fi(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=S6(i,a):o==="id"&&i&&a?t.id=b6(i,a):t[o]=a!==void 0?a:i}}return t}function wf(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1,n=e.map(o=>{let i=Am(o,t);return r||(r=typeof i=="function"),i});if(r)return()=>{n.forEach((o,i)=>{typeof o=="function"?o():Am(e[i],null)})}}}function Am(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}var x6=new Set(["id"]),$6=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),w6=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),C6=new Set(["dir","lang","hidden","inert","translate"]),Om=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),_6=/^(data-.*)$/;function Te(e,t={}){let{labelable:r,isLink:n,global:o,events:i=o,propNames:a}=t,l={};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(x6.has(s)||r&&$6.has(s)||n&&w6.has(s)||o&&C6.has(s)||i&&Om.has(s)||s.endsWith("Capture")&&Om.has(s.slice(0,-7))||a!=null&&a.has(s)||_6.test(s))&&(l[s]=e[s]);return l}function ut(e){if(T6())e.focus({preventScroll:!0});else{let t=A6(e);e.focus(),O6(t)}}var Ni=null;function T6(){if(Ni==null){Ni=!1;try{document.createElement("div").focus({get preventScroll(){return Ni=!0,!0}})}catch(e){}}return Ni}function A6(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function O6(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function gl(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function Cf(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function xr(e){let t=null;return()=>(t==null&&(t=e()),t)}var cn=xr(function(){return Cf(/^Mac/i)}),R6=xr(function(){return Cf(/^iPhone/i)}),JE=xr(function(){return Cf(/^iPad/i)||cn()&&navigator.maxTouchPoints>1}),ml=xr(function(){return R6()||JE()}),D6=xr(function(){return cn()||ml()}),ZE=xr(function(){return gl(/AppleWebKit/i)&&!_f()}),_f=xr(function(){return gl(/Chrome/i)}),Tf=xr(function(){return gl(/Android/i)}),P6=xr(function(){return gl(/Firefox/i)}),I6=h.createContext({isNative:!0,open:k6,useHref:e=>e});function yl(){return h.useContext(I6)}function F6(e,t){let r=e.getAttribute("target");return(!r||r==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function dn(e,t,r=!0){var n,o;let{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}=t;P6()&&!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(cn()?i=!0:a=!0);let u=ZE()&&cn()&&!JE()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s,bubbles:!0,cancelable:!0});dn.isOpening=r,ut(e),e.dispatchEvent(u),dn.isOpening=!1}dn.isOpening=!1;function L6(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function k6(e,t){L6(e,r=>dn(r,t))}function QE(e){let t=yl();var r;let n=t.useHref((r=e==null?void 0:e.href)!==null&&r!==void 0?r:"");return{href:e!=null&&e.href?n:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}function N6(e,t,r,n){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&F6(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,n))}var Pr=new Map,Mc=new Set;function Rm(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Pr.get(n.target);o||(o=new Set,Pr.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=Pr.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Pr.delete(n.target)),Pr.size===0)){for(let i of Mc)i();Mc.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Rm():document.addEventListener("DOMContentLoaded",Rm));function M6(){for(let[e]of Pr)"isConnected"in e&&!e.isConnected&&Pr.delete(e)}function ev(e){requestAnimationFrame(()=>{M6(),Pr.size===0?e():Mc.add(e)})}function bl(){let e=h.useRef(new Map),t=h.useCallback((o,i,a,l)=>{let s=l!=null&&l.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:i,eventTarget:o,fn:s,options:l}),o.addEventListener(i,s,l)},[]),r=h.useCallback((o,i,a,l)=>{var s;let u=((s=e.current.get(a))===null||s===void 0?void 0:s.fn)||a;o.removeEventListener(i,u,l),e.current.delete(a)},[]),n=h.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return h.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function El(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=et(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function Wt(e){let t=h.useRef(null),r=h.useRef(void 0),n=h.useCallback(o=>{if(typeof e=="function"){let i=e,a=i(o);return()=>{typeof a=="function"?a():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return h.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}function Dm(e,t){let r=h.useRef(!0),n=h.useRef(null);ge(()=>(r.current=!0,()=>{r.current=!1}),[]),ge(()=>{r.current?r.current=!1:(!n.current||t.some((o,i)=>!Object.is(o,n[i])))&&e(),n.current=t},t)}function B6(){return typeof window.ResizeObserver<"u"}function _a(e){let{ref:t,box:r,onResize:n}=e;h.useEffect(()=>{let o=t==null?void 0:t.current;if(o)if(B6()){let i=new window.ResizeObserver(a=>{a.length&&n()});return i.observe(o,{box:r}),()=>{o&&i.unobserve(o)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t,r])}function Af(e,t){ge(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Gn(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function tv(e,t){let r=e;for(Gn(r,t)&&(r=r.parentElement);r&&!Gn(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function j6(e,t){let r=[];for(;e&&e!==document.documentElement;)Gn(e,t)&&r.push(e),e=e.parentElement;return r}function _n(e){return cn()?e.metaKey:e.ctrlKey}var H6=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Eu(e){return e instanceof HTMLInputElement&&!H6.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var U6=0,vu=new Map;function z6(e){let[t,r]=h.useState();return ge(()=>{if(!e)return;let n=vu.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${U6++}`;r(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),n={refCount:0,element:i},vu.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),vu.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Ro(e,t,r,n){let o=Ue(r),i=r==null;h.useEffect(()=>{if(i||!e.current)return;let a=e.current;return a.addEventListener(t,o,n),()=>{a.removeEventListener(t,o,n)}},[e,t,n,i,o])}function rv(e,t){let r=Pm(e,t,"left"),n=Pm(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:p}=getComputedStyle(e),{scrollMarginTop:m,scrollMarginRight:y,scrollMarginBottom:S,scrollMarginLeft:b}=getComputedStyle(t),v=a+parseInt(u,10),x=l+parseInt(s,10),C=v+e.clientWidth,A=x+e.clientHeight,$=parseInt(c,10)||0,w=parseInt(f,10)||0,_=parseInt(d,10)||0,O=parseInt(p,10)||0,T=parseInt(m,10)||0,I=parseInt(S,10)||0,D=parseInt(y,10)||0,M=parseInt(b,10)||0,k=r-M,R=r+o+D,j=n-T,L=n+i+I,z=a+parseInt(u,10)+O,U=C-_,B=l+parseInt(s,10)+$,F=A-w;(k>z||R<U)&&(k<=a+O?a=k-parseInt(u,10)-O:R>C-_&&(a+=R-C+_)),(j>B||L<F)&&(j<=x+$?l=j-parseInt(s,10)-$:L>A-w&&(l+=L-A+w)),e.scrollTo({left:a,top:l})}function Pm(e,t,r){let n=r==="left"?"offsetLeft":"offsetTop",o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function Im(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow!=="hidden"&&!_f()){var r;let{left:l,top:s}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:u,top:c}=e.getBoundingClientRect();if(Math.abs(l-u)>1||Math.abs(s-c)>1){var n,o,i;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}else{let l=j6(e);for(let s of l)rv(s,e)}}}function nv(e){return e.pointerType===""&&e.isTrusted?!0:Tf()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function K6(e){return!Tf()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Fm(e){let t=h.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var G6="react-aria-clear-focus",W6="react-aria-focus";function ov(e,t=!0){let[r,n]=h.useState(!0),o=r&&t;return ge(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let i of e.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[e,o]),av(e,o,h.useCallback(()=>n(!1),[])),o}function iv(e,t){let[r,n]=h.useState(t?"open":"closed");switch(r){case"open":t||n("exiting");break;case"closed":case"exiting":t&&n("open");break}let o=r==="exiting";return av(e,o,h.useCallback(()=>{n(i=>i==="exiting"?"closed":i)},[])),o}function av(e,t,r){ge(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){r();return}let n=e.current.getAnimations();if(n.length===0){r();return}let o=!1;return Promise.all(n.map(i=>i.finished)).then(()=>{o||ii.flushSync(()=>{r()})}).catch(()=>{}),()=>{o=!0}}},[e,t,r])}var V6=typeof Element<"u"&&"checkVisibility"in Element.prototype;function q6(e){let t=Ot(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){let{getComputedStyle:i}=e.ownerDocument.defaultView,{display:a,visibility:l}=i(e);o=a!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function Y6(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Of(e,t){return V6?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&q6(e)&&Y6(e,t)&&(!e.parentElement||Of(e.parentElement,e))}var Rf=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],X6=Rf.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Rf.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var J6=Rf.join(':not([hidden]):not([tabindex="-1"]),');function lv(e){return e.matches(X6)&&Of(e)&&!sv(e)}function Z6(e){return e.matches(J6)&&Of(e)&&!sv(e)}function sv(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function vl(e,t,r){let[n,o]=h.useState(e||t),i=h.useRef(e!==void 0),a=e!==void 0;h.useEffect(()=>{i.current,i.current=a},[a]);let l=a?e:n,s=h.useCallback((u,...c)=>{let d=(f,...p)=>{r&&(Object.is(l,f)||r(f,...p)),a||(l=f)};typeof u=="function"?o((f,...p)=>{let m=u(a?l:f,...p);return d(m,...c),a?f:m}):(a||o(u),d(u,...c))},[a,l,r]);return[l,s]}function qo(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function Df(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function uv(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function cv(e){let t=h.useRef({isFocused:!1,observer:null});ge(()=>{let n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=Ue(n=>{e==null||e(n)});return h.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,i=a=>{if(t.current.isFocused=!1,o.disabled){let l=Df(a);r(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let l=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}var Ta=!1;function Q6(e){for(;e&&!lv(e);)e=e.parentElement;let t=Ot(e),r=t.document.activeElement;if(!r||r===e)return;Ta=!0;let n=!1,o=c=>{(c.target===r||n)&&c.stopImmediatePropagation()},i=c=>{(c.target===r||n)&&(c.stopImmediatePropagation(),!e&&!n&&(n=!0,ut(r),s()))},a=c=>{(c.target===e||n)&&c.stopImmediatePropagation()},l=c=>{(c.target===e||n)&&(c.stopImmediatePropagation(),n||(n=!0,ut(r),s()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",a,!0);let s=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",a,!0),Ta=!1,n=!1},u=requestAnimationFrame(s);return s}var On="default",Bc="",ca=new WeakMap;function eL(e){if(ml()){if(On==="default"){let t=me(e);Bc=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}On="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";ca.set(e,e.style[t]),e.style[t]="none"}}function Lm(e){if(ml()){if(On!=="disabled")return;On="restoring",setTimeout(()=>{ev(()=>{if(On==="restoring"){let t=me(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Bc||""),Bc="",On="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ca.has(e)){let t=ca.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),ca.delete(e)}}var Yo=g.createContext({register:()=>{}});Yo.displayName="PressResponderContext";function tL(e,t){return t.get?t.get.call(e):t.value}function dv(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function rL(e,t){var r=dv(e,t,"get");return tL(e,r)}function nL(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function oL(e,t,r){nL(e,t),t.set(e,r)}function iL(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function km(e,t,r){var n=dv(e,t,"set");return iL(e,n,r),r}function aL(e){let t=h.useContext(Yo);if(t){let r=t,{register:n}=r,o=G(r,["register"]);e=le(o,e),n()}return Af(t,e.ref),e}var Mi=new WeakMap,Bi=class{continuePropagation(){km(this,Mi,!1)}get shouldStopPropagation(){return rL(this,Mi)}constructor(e,t,r,n){oL(this,Mi,{writable:!0,value:void 0}),km(this,Mi,!0);var o;let i=(o=n==null?void 0:n.target)!==null&&o!==void 0?o:r.currentTarget,a=i==null?void 0:i.getBoundingClientRect(),l,s=0,u,c=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,c=r.clientY),a&&(u!=null&&c!=null?(l=u-a.left,s=c-a.top):(l=a.width/2,s=a.height/2)),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=s}},Nm=Symbol("linkClicked"),Mm="react-aria-pressable-style",Bm="data-react-aria-pressable";function pi(e){let I=aL(e),{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:a,isDisabled:l,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f}=I,p=G(I,["onPress","onPressChange","onPressStart","onPressEnd","onPressUp","onClick","isDisabled","isPressed","preventFocusOnPress","shouldCancelOnPointerExit","allowTextSelectionOnPress","ref"]),[m,y]=h.useState(!1),S=h.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:v}=bl(),x=Ue((D,M)=>{let k=S.current;if(l||k.didFirePressStart)return!1;let R=!0;if(k.isTriggeringEvent=!0,n){let j=new Bi("pressstart",M,D);n(j),R=j.shouldStopPropagation}return r&&r(!0),k.isTriggeringEvent=!1,k.didFirePressStart=!0,y(!0),R}),C=Ue((D,M,k=!0)=>{let R=S.current;if(!R.didFirePressStart)return!1;R.didFirePressStart=!1,R.isTriggeringEvent=!0;let j=!0;if(o){let L=new Bi("pressend",M,D);o(L),j=L.shouldStopPropagation}if(r&&r(!1),y(!1),t&&k&&!l){let L=new Bi("press",M,D);t(L),j&&(j=L.shouldStopPropagation)}return R.isTriggeringEvent=!1,j}),A=Ue((D,M)=>{let k=S.current;if(l)return!1;if(i){k.isTriggeringEvent=!0;let R=new Bi("pressup",M,D);return i(R),k.isTriggeringEvent=!1,R.shouldStopPropagation}return!0}),$=Ue(D=>{let M=S.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&C(Kr(M.target,D),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,v(),d||Lm(M.target);for(let k of M.disposables)k();M.disposables=[]}}),w=Ue(D=>{c&&$(D)}),_=Ue(D=>{l||(a==null||a(D))}),O=Ue((D,M)=>{if(!l&&a){let k=new MouseEvent("click",D);uv(k,M),a(Df(k))}}),T=h.useMemo(()=>{let D=S.current,M={onKeyDown(R){if(Su(R.nativeEvent,R.currentTarget)&&_t(R.currentTarget,De(R.nativeEvent))){var j;jm(De(R.nativeEvent),R.key)&&R.preventDefault();let L=!0;if(!D.isPressed&&!R.repeat){D.target=R.currentTarget,D.isPressed=!0,D.pointerType="keyboard",L=x(R,"keyboard");let z=R.currentTarget,U=B=>{Su(B,z)&&!B.repeat&&_t(z,De(B))&&D.target&&A(Kr(D.target,B),"keyboard")};b(me(R.currentTarget),"keyup",fi(U,k),!0)}L&&R.stopPropagation(),R.metaKey&&cn()&&((j=D.metaKeyEvents)===null||j===void 0||j.set(R.key,R.nativeEvent))}else R.key==="Meta"&&(D.metaKeyEvents=new Map)},onClick(R){if(!(R&&!_t(R.currentTarget,De(R.nativeEvent)))&&R&&R.button===0&&!D.isTriggeringEvent&&!dn.isOpening){let j=!0;if(l&&R.preventDefault(),!D.ignoreEmulatedMouseEvents&&!D.isPressed&&(D.pointerType==="virtual"||nv(R.nativeEvent))){let L=x(R,"virtual"),z=A(R,"virtual"),U=C(R,"virtual");_(R),j=L&&z&&U}else if(D.isPressed&&D.pointerType!=="keyboard"){let L=D.pointerType||R.nativeEvent.pointerType||"virtual",z=A(Kr(R.currentTarget,R),L),U=C(Kr(R.currentTarget,R),L,!0);j=z&&U,D.isOverTarget=!1,_(R),$(R)}D.ignoreEmulatedMouseEvents=!1,j&&R.stopPropagation()}}},k=R=>{var j;if(D.isPressed&&D.target&&Su(R,D.target)){var L;jm(De(R),R.key)&&R.preventDefault();let U=De(R),B=_t(D.target,De(R));C(Kr(D.target,R),"keyboard",B),B&&O(R,D.target),v(),R.key!=="Enter"&&Pf(D.target)&&_t(D.target,U)&&!R[Nm]&&(R[Nm]=!0,dn(D.target,R,!1)),D.isPressed=!1,(L=D.metaKeyEvents)===null||L===void 0||L.delete(R.key)}else if(R.key==="Meta"&&!((j=D.metaKeyEvents)===null||j===void 0)&&j.size){var z;let U=D.metaKeyEvents;D.metaKeyEvents=void 0;for(let B of U.values())(z=D.target)===null||z===void 0||z.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){M.onPointerDown=L=>{if(L.button!==0||!_t(L.currentTarget,De(L.nativeEvent)))return;if(K6(L.nativeEvent)){D.pointerType="virtual";return}D.pointerType=L.pointerType;let z=!0;if(!D.isPressed){D.isPressed=!0,D.isOverTarget=!0,D.activePointerId=L.pointerId,D.target=L.currentTarget,d||eL(D.target),z=x(L,D.pointerType);let U=De(L.nativeEvent);"releasePointerCapture"in U&&U.releasePointerCapture(L.pointerId),b(me(L.currentTarget),"pointerup",R,!1),b(me(L.currentTarget),"pointercancel",j,!1)}z&&L.stopPropagation()},M.onMouseDown=L=>{if(_t(L.currentTarget,De(L.nativeEvent))&&L.button===0){if(u){let z=Q6(L.target);z&&D.disposables.push(z)}L.stopPropagation()}},M.onPointerUp=L=>{!_t(L.currentTarget,De(L.nativeEvent))||D.pointerType==="virtual"||L.button===0&&!D.isPressed&&A(L,D.pointerType||L.pointerType)},M.onPointerEnter=L=>{L.pointerId===D.activePointerId&&D.target&&!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,x(Kr(D.target,L),D.pointerType))},M.onPointerLeave=L=>{L.pointerId===D.activePointerId&&D.target&&D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,C(Kr(D.target,L),D.pointerType,!1),w(L))};let R=L=>{if(L.pointerId===D.activePointerId&&D.isPressed&&L.button===0&&D.target){if(_t(D.target,De(L))&&D.pointerType!=null){let z=!1,U=setTimeout(()=>{D.isPressed&&D.target instanceof HTMLElement&&(z?$(L):(ut(D.target),D.target.click()))},80);b(L.currentTarget,"click",()=>z=!0,!0),D.disposables.push(()=>clearTimeout(U))}else $(L);D.isOverTarget=!1}},j=L=>{$(L)};M.onDragStart=L=>{_t(L.currentTarget,De(L.nativeEvent))&&$(L)}}return M},[b,l,u,v,d,$,w,C,x,A,_,O]);return h.useEffect(()=>{if(!f)return;let D=me(f.current);if(!D||!D.head||D.getElementById(Mm))return;let M=D.createElement("style");M.id=Mm,M.textContent=`
|
|
655
|
+
@layer {
|
|
656
|
+
[${Bm}] {
|
|
657
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
`.trim(),D.head.prepend(M)},[f]),h.useEffect(()=>{let D=S.current;return()=>{var M;d||Lm((M=D.target)!==null&&M!==void 0?M:void 0);for(let k of D.disposables)k();D.disposables=[]}},[d]),{isPressed:s||m,pressProps:le(p,T,{[Bm]:!0})}}function Pf(e){return e.tagName==="A"&&e.hasAttribute("href")}function Su(e,t){let{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof Ot(o).HTMLInputElement&&!fv(o,r)||o instanceof Ot(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&Pf(o))&&r!=="Enter")}function Kr(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function lL(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Pf(e)}function jm(e,t){return e instanceof HTMLInputElement?!fv(e,t):lL(e)}var sL=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function fv(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":sL.has(e.type)}var Lr=null,Xo=new Set,Fo=new Map,fn=!1,jc=!1,uL={Tab:!0,Escape:!0};function If(e,t){for(let r of Xo)r(e,t)}function cL(e){return!(e.metaKey||!cn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Aa(e){fn=!0,cL(e)&&(Lr="keyboard",If("keyboard",e))}function Fn(e){Lr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(fn=!0,If("pointer",e))}function pv(e){nv(e)&&(fn=!0,Lr="virtual")}function hv(e){e.target===window||e.target===document||Ta||!e.isTrusted||(!fn&&!jc&&(Lr="virtual",If("virtual",e)),fn=!1,jc=!1)}function gv(){Ta||(fn=!1,jc=!0)}function Oa(e){if(typeof window>"u"||typeof document>"u"||Fo.get(Ot(e)))return;let t=Ot(e),r=me(e),n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){fn=!0,n.apply(this,arguments)},r.addEventListener("keydown",Aa,!0),r.addEventListener("keyup",Aa,!0),r.addEventListener("click",pv,!0),t.addEventListener("focus",hv,!0),t.addEventListener("blur",gv,!1),typeof PointerEvent<"u"&&(r.addEventListener("pointerdown",Fn,!0),r.addEventListener("pointermove",Fn,!0),r.addEventListener("pointerup",Fn,!0)),t.addEventListener("beforeunload",()=>{mv(e)},{once:!0}),Fo.set(t,{focus:n})}var mv=(e,t)=>{let r=Ot(e),n=me(e);t&&n.removeEventListener("DOMContentLoaded",t),Fo.has(r)&&(r.HTMLElement.prototype.focus=Fo.get(r).focus,n.removeEventListener("keydown",Aa,!0),n.removeEventListener("keyup",Aa,!0),n.removeEventListener("click",pv,!0),r.removeEventListener("focus",hv,!0),r.removeEventListener("blur",gv,!1),typeof PointerEvent<"u"&&(n.removeEventListener("pointerdown",Fn,!0),n.removeEventListener("pointermove",Fn,!0),n.removeEventListener("pointerup",Fn,!0)),Fo.delete(r))};function dL(e){let t=me(e),r;return t.readyState!=="loading"?Oa(e):(r=()=>{Oa(e)},t.addEventListener("DOMContentLoaded",r)),()=>mv(e,r)}typeof document<"u"&&dL();function Jo(){return Lr!=="pointer"}function Zo(){return Lr}function fL(){Oa();let[e,t]=h.useState(Lr);return h.useEffect(()=>{let r=()=>{t(Lr)};return Xo.add(r),()=>{Xo.delete(r)}},[]),yn()?null:e}var pL=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function hL(e,t,r){let n=me(r==null?void 0:r.target),o=typeof window<"u"?Ot(r==null?void 0:r.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?Ot(r==null?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?Ot(r==null?void 0:r.target).HTMLElement:HTMLElement,l=typeof window<"u"?Ot(r==null?void 0:r.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!pL.has(n.activeElement.type)||n.activeElement instanceof i||n.activeElement instanceof a&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof l&&!uL[r.key])}function gL(e,t,r){Oa(),h.useEffect(()=>{let n=(o,i)=>{hL(!!(r!=null&&r.isTextInput),o,i)&&e(Jo())};return Xo.add(n),()=>{Xo.delete(n)}},t)}function kr(e){let t=me(e),r=ze(t);if(Zo()==="virtual"){let n=r;ev(()=>{ze(t)===n&&e.isConnected&&ut(e)})}else ut(e)}function Ff(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e,i=h.useCallback(s=>{if(s.target===s.currentTarget)return n&&n(s),o&&o(!1),!0},[n,o]),a=cv(i),l=h.useCallback(s=>{let u=me(s.target),c=u?ze(u):ze();s.target===s.currentTarget&&c===De(s.nativeEvent)&&(r&&r(s),o&&o(!0),a(s))},[o,r,a]);return{focusProps:{onFocus:!t&&(r||o||n)?l:void 0,onBlur:!t&&(n||o)?i:void 0}}}function Hm(e){if(!e)return;let t=!0;return r=>{let n=P(E({},r),{preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}});e(n),t&&r.stopPropagation()}}function yv(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Hm(e.onKeyDown),onKeyUp:Hm(e.onKeyUp)}}}var Ra=g.createContext(null);function mL(e){let t=h.useContext(Ra)||{};Af(t,e);let o=t,{ref:r}=o;return G(o,["ref"])}var yL=g.forwardRef(function(e,t){let a=e,{children:r}=a,n=G(a,["children"]),o=Wt(t),i=P(E({},n),{ref:o});return g.createElement(Ra.Provider,{value:i},r)});function hi(e,t){let{focusProps:r}=Ff(e),{keyboardProps:n}=yv(e),o=le(r,n),i=mL(t),a=e.isDisabled?{}:i,l=h.useRef(e.autoFocus);h.useEffect(()=>{l.current&&t.current&&kr(t.current),l.current=!1},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:le(P(E({},o),{tabIndex:s}),a)}}var bL=h.forwardRef((n,r)=>{var o=n,{children:e}=o,t=G(o,["children"]);r=Wt(r);let{focusableProps:i}=hi(t,r),a=g.Children.only(e);h.useEffect(()=>{},[r,t.isDisabled]);let l=parseInt(g.version,10)<19?a.ref:a.props.ref;return g.cloneElement(a,P(E({},le(i,a.props)),{ref:wf(l,r)}))}),EL=g.forwardRef((n,r)=>{var o=n,{children:e}=o,t=G(o,["children"]);r=Wt(r);let{pressProps:i}=pi(P(E({},t),{ref:r})),{focusableProps:a}=hi(t,r),l=g.Children.only(e);h.useEffect(()=>{},[r,t.isDisabled]);let s=parseInt(g.version,10)<19?l.ref:l.props.ref;return g.cloneElement(l,P(E({},le(i,a,l.props)),{ref:wf(s,r)}))}),vL=g.forwardRef((n,r)=>{var o=n,{children:e}=o,t=G(o,["children"]);let i=h.useRef(!1),a=h.useContext(Yo);r=Wt(r||(a==null?void 0:a.ref));let l=le(a||{},P(E({},t),{ref:r,register(){i.current=!0,a&&a.register()}}));return Af(a,r),h.useEffect(()=>{i.current||(i.current=!0)},[]),g.createElement(Yo.Provider,{value:l},e)});function SL({children:e}){let t=h.useMemo(()=>({register:()=>{}}),[]);return g.createElement(Yo.Provider,{value:t},e)}function Lf(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,i=h.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:l}=bl(),s=h.useCallback(d=>{d.currentTarget.contains(d.target)&&i.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(i.current.isFocusWithin=!1,l(),r&&r(d),o&&o(!1))},[r,o,i,l]),u=cv(s),c=h.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;let f=me(d.target),p=ze(f);if(!i.current.isFocusWithin&&p===De(d.nativeEvent)){n&&n(d),o&&o(!0),i.current.isFocusWithin=!0,u(d);let m=d.currentTarget;a(f,"focus",y=>{if(i.current.isFocusWithin&&!_t(m,y.target)){let S=new f.defaultView.FocusEvent("blur",{relatedTarget:y.target});uv(S,m);let b=Df(S);s(b)}},{capture:!0})}},[n,o,u,a,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:s}}}var Hc=!1,ji=0;function xL(){Hc=!0,setTimeout(()=>{Hc=!1},50)}function Um(e){e.pointerType==="touch"&&xL()}function $L(){if(!(typeof document>"u"))return ji===0&&(typeof PointerEvent<"u"&&document.addEventListener("pointerup",Um)),ji++,()=>{ji--,!(ji>0)&&(typeof PointerEvent<"u"&&document.removeEventListener("pointerup",Um))}}function lo(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[i,a]=h.useState(!1),l=h.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;h.useEffect($L,[]);let{addGlobalListener:s,removeAllGlobalListeners:u}=bl(),{hoverProps:c,triggerHoverEnd:d}=h.useMemo(()=>{let f=(y,S)=>{if(l.pointerType=S,o||S==="touch"||l.isHovered||!y.currentTarget.contains(y.target))return;l.isHovered=!0;let b=y.currentTarget;l.target=b,s(me(y.target),"pointerover",v=>{l.isHovered&&l.target&&!_t(l.target,v.target)&&p(v,v.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:b,pointerType:S}),r&&r(!0),a(!0)},p=(y,S)=>{let b=l.target;l.pointerType="",l.target=null,!(S==="touch"||!l.isHovered||!b)&&(l.isHovered=!1,u(),n&&n({type:"hoverend",target:b,pointerType:S}),r&&r(!1),a(!1))},m={};return typeof PointerEvent<"u"&&(m.onPointerEnter=y=>{Hc&&y.pointerType==="mouse"||f(y,y.pointerType)},m.onPointerLeave=y=>{!o&&y.currentTarget.contains(y.target)&&p(y,y.pointerType)}),{hoverProps:m,triggerHoverEnd:p}},[t,r,n,o,l,s,u]);return h.useEffect(()=>{o&&d({currentTarget:l.target},l.pointerType)},[o]),{hoverProps:c,isHovered:i}}function bv(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,i=h.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Ue(s=>{r&&zm(s,t)&&(o&&o(s),i.current.isPointerDown=!0)}),l=Ue(s=>{r&&r(s)});h.useEffect(()=>{let s=i.current;if(n)return;let u=t.current,c=me(u);if(typeof PointerEvent<"u"){let d=f=>{s.isPointerDown&&zm(f,t)&&l(f),s.isPointerDown=!1};return c.addEventListener("pointerdown",a,!0),c.addEventListener("click",d,!0),()=>{c.removeEventListener("pointerdown",a,!0),c.removeEventListener("click",d,!0)}}},[t,n,a,l])}function zm(e,t){if(e.button>0)return!1;if(e.target){let r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}var wL=500;function CL(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:i=wL,accessibilityDescription:a}=e,l=h.useRef(void 0),{addGlobalListener:s,removeGlobalListener:u}=bl(),{pressProps:c}=pi({isDisabled:t,onPressStart(f){if(f.continuePropagation(),(f.pointerType==="mouse"||f.pointerType==="touch")&&(r&&r(P(E({},f),{type:"longpressstart"})),l.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),me(f.target).activeElement!==f.target&&ut(f.target),o&&o(P(E({},f),{type:"longpress"})),l.current=void 0},i),f.pointerType==="touch")){let p=m=>{m.preventDefault()};s(f.target,"contextmenu",p,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(f.target,"contextmenu",p)},30)},{once:!0})}},onPressEnd(f){l.current&&clearTimeout(l.current),n&&(f.pointerType==="mouse"||f.pointerType==="touch")&&n(P(E({},f),{type:"longpressend"}))}}),d=z6(o&&!t?a:void 0);return{longPressProps:le(c,d)}}var Da=Symbol("default");function $r({values:e,children:t}){for(let[r,n]of e)t=g.createElement(r.Provider,{value:n},t);return t}function xt(e){let{className:t,style:r,children:n,defaultClassName:o,defaultChildren:i,defaultStyle:a,values:l}=e;return h.useMemo(()=>{let s,u,c;return typeof t=="function"?s=t(P(E({},l),{defaultClassName:o})):s=t,typeof r=="function"?u=r(P(E({},l),{defaultStyle:a||{}})):u=r,typeof n=="function"?c=n(P(E({},l),{defaultChildren:i})):n==null?c=i:c=n,{className:s!=null?s:o,style:u||a?E(E({},a),u):void 0,children:c!=null?c:i,"data-rac":""}},[t,r,n,o,i,a,l])}function kf(e,t){let r=h.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=t||Da;if(!r.slots[n]){let o=new Intl.ListFormat().format(Object.keys(r.slots).map(a=>`"${a}"`)),i=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return r.slots[n]}return r}function rt(e,t,r){let n=kf(r,e.slot)||{},s=n,{ref:o}=s,i=G(s,["ref"]),a=Wt(h.useMemo(()=>wf(t,o),[t,o])),l=le(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?l.style=u=>{let c=typeof i.style=="function"?i.style(u):i.style,d=E(E({},u.defaultStyle),c),f=typeof e.style=="function"?e.style(P(E({},u),{defaultStyle:d})):e.style;return E(E({},d),f)}:l.style=E(E({},i.style),e.style)),[l,a]}function Ev(e=!0){let[t,r]=h.useState(e),n=h.useRef(!1),o=h.useCallback(i=>{n.current=!0,r(!!i)},[]);return ge(()=>{n.current||r(!1)},[]),[o,t]}var Nf=h.createContext({placement:"bottom"});h.forwardRef(function(e,t){[e,t]=rt(e,t,Nf);let r=e.placement,n={position:"absolute",transform:r==="top"||r==="bottom"?"translateX(-50%)":"translateY(-50%)"};r!=null&&(n[r]="100%");let o=xt(P(E({},e),{defaultClassName:"react-aria-OverlayArrow",values:{placement:r}}));o.style&&Object.keys(o.style).forEach(a=>o.style[a]===void 0&&delete o.style[a]);let i=Te(e);return g.createElement("div",P(E(E({},i),o),{style:E(E({},n),o.style),ref:t,"data-placement":r}))});function _L(e,t){let r=Te(e,{labelable:!0}),{hoverProps:n}=lo({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:le(r,n,{role:"tooltip"})}}function TL(e,t,r){let{isDisabled:n,trigger:o}=e,i=et(),a=h.useRef(!1),l=h.useRef(!1),s=()=>{(a.current||l.current)&&t.open(l.current)},u=b=>{!a.current&&!l.current&&t.close(b)};h.useEffect(()=>{let b=v=>{r&&r.current&&v.key==="Escape"&&(v.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",b,!0),()=>{document.removeEventListener("keydown",b,!0)}},[r,t]);let c=()=>{o!=="focus"&&(Zo()==="pointer"?a.current=!0:a.current=!1,s())},d=()=>{o!=="focus"&&(l.current=!1,a.current=!1,u())},f=()=>{l.current=!1,a.current=!1,u(!0)},p=()=>{Jo()&&(l.current=!0,s())},m=()=>{l.current=!1,a.current=!1,u(!0)},{hoverProps:y}=lo({isDisabled:n,onHoverStart:c,onHoverEnd:d}),{focusableProps:S}=hi({isDisabled:n,onFocus:p,onBlur:m},r);return{triggerProps:P(E({"aria-describedby":t.isOpen?i:void 0},le(S,y,{onPointerDown:f,onKeyDown:f})),{tabIndex:void 0}),tooltipProps:{id:i}}}var nr={top:"top",bottom:"top",left:"left",right:"left"},Pa={top:"bottom",bottom:"top",left:"right",right:"left"},AL={top:"left",left:"top"},Uc={top:"height",left:"width"},vv={width:"totalWidth",height:"totalHeight"},Hi={},He=typeof document<"u"?window.visualViewport:null;function Km(e){let t=0,r=0,n=0,o=0,i=0,a=0,l={};var s;let u=((s=He==null?void 0:He.scale)!==null&&s!==void 0?s:1)>1;if(e.tagName==="BODY"){let m=document.documentElement;n=m.clientWidth,o=m.clientHeight;var c;t=(c=He==null?void 0:He.width)!==null&&c!==void 0?c:n;var d;r=(d=He==null?void 0:He.height)!==null&&d!==void 0?d:o,l.top=m.scrollTop||e.scrollTop,l.left=m.scrollLeft||e.scrollLeft,He&&(i=He.offsetTop,a=He.offsetLeft)}else({width:t,height:r,top:i,left:a}=Ln(e,!1)),l.top=e.scrollTop,l.left=e.scrollLeft,n=t,o=r;if(ZE()&&(e.tagName==="BODY"||e.tagName==="HTML")&&u){l.top=0,l.left=0;var f;i=(f=He==null?void 0:He.pageTop)!==null&&f!==void 0?f:0;var p;a=(p=He==null?void 0:He.pageLeft)!==null&&p!==void 0?p:0}return{width:t,height:r,totalWidth:n,totalHeight:o,scroll:l,top:i,left:a}}function OL(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Gm(e,t,r,n,o,i,a){var l;let s=(l=o.scroll[e])!==null&&l!==void 0?l:0,u=n[Uc[e]],c=n.scroll[nr[e]]+i,d=u+n.scroll[nr[e]]-i,f=t-s+a[e]-n[nr[e]],p=t-s+r+a[e]-n[nr[e]];return f<c?c-f:p>d?Math.max(d-p,c-f):0}function RL(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Wm(e){if(Hi[e])return Hi[e];let[t,r]=e.split(" "),n=nr[t]||"right",o=AL[n];nr[r]||(r="center");let i=Uc[n],a=Uc[o];return Hi[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:i,crossSize:a},Hi[e]}function xu(e,t,r,n,o,i,a,l,s,u){let{placement:c,crossPlacement:d,axis:f,crossAxis:p,size:m,crossSize:y}=n,S={};var b;S[p]=(b=e[p])!==null&&b!==void 0?b:0;var v,x,C,A;d==="center"?S[p]+=(((v=e[y])!==null&&v!==void 0?v:0)-((x=r[y])!==null&&x!==void 0?x:0))/2:d!==p&&(S[p]+=((C=e[y])!==null&&C!==void 0?C:0)-((A=r[y])!==null&&A!==void 0?A:0)),S[p]+=i;let $=e[p]-r[y]+s+u,w=e[p]+e[y]-s-u;if(S[p]=qo(S[p],$,w),c===f){let _=l?a[m]:t[vv[m]];S[Pa[f]]=Math.floor(_-e[f]+o)}else S[f]=Math.floor(e[f]+e[m]+o);return S}function DL(e,t,r,n,o,i,a,l){let s=n?r.height:t[vv.height];var u;let c=e.top!=null?r.top+e.top:r.top+(s-((u=e.bottom)!==null&&u!==void 0?u:0)-a);var d,f,p,m,y,S;let b=l!=="top"?Math.max(0,t.height+t.top+((d=t.scroll.top)!==null&&d!==void 0?d:0)-c-(((f=o.top)!==null&&f!==void 0?f:0)+((p=o.bottom)!==null&&p!==void 0?p:0)+i)):Math.max(0,c+a-(t.top+((m=t.scroll.top)!==null&&m!==void 0?m:0))-(((y=o.top)!==null&&y!==void 0?y:0)+((S=o.bottom)!==null&&S!==void 0?S:0)+i));return Math.min(t.height-i*2,b)}function Vm(e,t,r,n,o,i){let{placement:a,axis:l,size:s}=i;var u,c;if(a===l)return Math.max(0,r[l]-e[l]-((u=e.scroll[l])!==null&&u!==void 0?u:0)+t[l]-((c=n[l])!==null&&c!==void 0?c:0)-n[Pa[l]]-o);var d;return Math.max(0,e[s]+e[l]+e.scroll[l]-t[l]-r[l]-r[s]-((d=n[l])!==null&&d!==void 0?d:0)-n[Pa[l]]-o)}function PL(e,t,r,n,o,i,a,l,s,u,c,d,f,p,m,y){let S=Wm(e),{size:b,crossAxis:v,crossSize:x,placement:C,crossPlacement:A}=S,$=xu(t,l,r,S,c,d,u,f,m,y),w=c,_=Vm(l,u,t,o,i+c,S);if(a&&n[b]>_){let X=Wm(`${Pa[C]} ${A}`),te=xu(t,l,r,X,c,d,u,f,m,y);Vm(l,u,t,o,i+c,X)>_&&(S=X,$=te,w=c)}let O="bottom";S.axis==="top"?S.placement==="top"?O="top":S.placement==="bottom"&&(O="bottom"):S.crossAxis==="top"&&(S.crossPlacement==="top"?O="bottom":S.crossPlacement==="bottom"&&(O="top"));let T=Gm(v,$[v],r[x],l,s,i,u);$[v]+=T;let I=DL($,l,u,f,o,i,r.height,O);p&&p<I&&(I=p),r.height=Math.min(r.height,I),$=xu(t,l,r,S,w,d,u,f,m,y),T=Gm(v,$[v],r[x],l,s,i,u),$[v]+=T;let D={},M=t[v]-$[v]-o[nr[v]],k=M+.5*t[x],R=m/2+y;var j,L,z,U;let B=nr[v]==="left"?((j=o.left)!==null&&j!==void 0?j:0)+((L=o.right)!==null&&L!==void 0?L:0):((z=o.top)!==null&&z!==void 0?z:0)+((U=o.bottom)!==null&&U!==void 0?U:0),F=r[x]-B-m/2-y,H=t[v]+m/2-($[v]+o[nr[v]]),W=t[v]+t[x]-m/2-($[v]+o[nr[v]]),V=qo(k,H,W);D[v]=qo(V,R,F),{placement:C,crossPlacement:A}=S,m?M=D[v]:A==="right"?M+=t[x]:A==="center"&&(M+=t[x]/2);let K=C==="left"||C==="top"?r[b]:0,q={x:C==="top"||C==="bottom"?M:K,y:C==="left"||C==="right"?M:K};return{position:$,maxHeight:I,arrowOffsetLeft:D.left,arrowOffsetTop:D.top,placement:C,triggerAnchorPoint:q}}function IL(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:l,offset:s,crossOffset:u,maxHeight:c,arrowSize:d=0,arrowBoundaryOffset:f=0}=e,p=n instanceof HTMLElement?FL(n):document.documentElement,m=p===document.documentElement,y=window.getComputedStyle(p).position,S=!!y&&y!=="static",b=m?Ln(r,!1):qm(r,p,!1);if(!m){let{marginTop:D,marginLeft:M}=window.getComputedStyle(r);b.top+=parseInt(D,10)||0,b.left+=parseInt(M,10)||0}let v=Ln(n,!0),x=RL(n);var C,A;v.width+=((C=x.left)!==null&&C!==void 0?C:0)+((A=x.right)!==null&&A!==void 0?A:0);var $,w;v.height+=(($=x.top)!==null&&$!==void 0?$:0)+((w=x.bottom)!==null&&w!==void 0?w:0);let _=OL(o),O=Km(l),T=Km(p),I=l.tagName==="BODY"?Ln(p,!1):qm(p,l,!1);return p.tagName==="HTML"&&l.tagName==="BODY"&&(T.scroll.top=0,T.scroll.left=0),PL(t,b,v,_,x,i,a,O,T,I,s,u,S,c,d,f)}function Mf(e,t){let{top:r,left:n,width:o,height:i}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(o=e.offsetWidth,i=e.offsetHeight),{top:r,left:n,width:o,height:i}}function Ln(e,t){let{top:r,left:n,width:o,height:i}=Mf(e,t),{scrollTop:a,scrollLeft:l,clientTop:s,clientLeft:u}=document.documentElement;return{top:r+a-s,left:n+l-u,width:o,height:i}}function qm(e,t,r){let n=window.getComputedStyle(e),o;if(n.position==="fixed")o=Mf(e,r);else{o=Ln(e,r);let i=Ln(t,r),a=window.getComputedStyle(t);i.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,o.top-=i.top,o.left-=i.left}return o.top-=parseInt(n.marginTop,10)||0,o.left-=parseInt(n.marginLeft,10)||0,o}function FL(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Ym(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Ym(t);)t=t.parentElement;return t||document.documentElement}function Ym(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}var Sv=new WeakMap;function LL(e){let{triggerRef:t,isOpen:r,onClose:n}=e;h.useEffect(()=>{if(!r||n===null)return;let o=i=>{let a=i.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let l=n||Sv.get(t.current);l&&l()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,t])}var kL=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),NL=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ML(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return kL.has(r.script)}let t=e.split("-")[0];return NL.has(t)}var BL=Symbol.for("react-aria.i18n.locale");function xv(){let e=typeof window<"u"&&window[BL]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:ML(e)?"rtl":"ltr"}}var zc=xv(),Do=new Set;function Xm(){zc=xv();for(let e of Do)e(zc)}function jL(){let e=yn(),[t,r]=h.useState(zc);return h.useEffect(()=>(Do.size===0&&window.addEventListener("languagechange",Xm),Do.add(r),()=>{Do.delete(r),Do.size===0&&window.removeEventListener("languagechange",Xm)}),[]),e?{locale:"en-US",direction:"ltr"}:t}var HL=g.createContext(null);function wr(){let e=jL();return h.useContext(HL)||e}var Kc=function(e,t){return Kc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Kc(e,t)};function Sl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Kc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var he=function(){return he=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},he.apply(this,arguments)};function UL(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function $u(e,t,r){if(arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function wu(e,t){var r=t&&t.cache?t.cache:YL,n=t&&t.serializer?t.serializer:VL,o=t&&t.strategy?t.strategy:GL;return o(e,{cache:r,serializer:n})}function zL(e){return e==null||typeof e=="number"||typeof e=="boolean"}function KL(e,t,r,n){var o=zL(n)?n:r(n),i=t.get(o);return typeof i>"u"&&(i=e.call(this,n),t.set(o,i)),i}function $v(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,n),t.set(o,i)),i}function wv(e,t,r,n,o){return r.bind(t,e,n,o)}function GL(e,t){var r=e.length===1?KL:$v;return wv(e,this,r,t.cache.create(),t.serializer)}function WL(e,t){return wv(e,this,$v,t.cache.create(),t.serializer)}var VL=function(){return JSON.stringify(arguments)},qL=(function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e})(),YL={create:function(){return new qL}},Cu={variadic:WL},de;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(de||(de={}));var we;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(we||(we={}));var Wn;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Wn||(Wn={}));function Jm(e){return e.type===we.literal}function XL(e){return e.type===we.argument}function Cv(e){return e.type===we.number}function _v(e){return e.type===we.date}function Tv(e){return e.type===we.time}function Av(e){return e.type===we.select}function Ov(e){return e.type===we.plural}function JL(e){return e.type===we.pound}function Rv(e){return e.type===we.tag}function Dv(e){return!!(e&&typeof e=="object"&&e.type===Wn.number)}function Gc(e){return!!(e&&typeof e=="object"&&e.type===Wn.dateTime)}var Pv=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ZL=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function QL(e){var t={};return e.replace(ZL,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var ek=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function tk(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(ek).filter(function(f){return f.length>0}),r=[],n=0,o=t;n<o.length;n++){var i=o[n],a=i.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var l=a[0],s=a.slice(1),u=0,c=s;u<c.length;u++){var d=c[u];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:s})}return r}function rk(e){return e.replace(/^(.*?)-/,"")}var Zm=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Iv=/^(@+)?(\+|#+)?[rs]?$/g,nk=/(\*)(0+)|(#+)(0+)|(0+)/g,Fv=/^(0+)$/;function Qm(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Iv,function(r,n,o){return typeof o!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):o==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof o=="string"?o.length:0)),""}),t}function Lv(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ok(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Fv.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function e0(e){var t={},r=Lv(e);return r||t}function ik(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=rk(o.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=he(he(he({},t),{notation:"scientific"}),o.options.reduce(function(s,u){return he(he({},s),e0(u))},{}));continue;case"engineering":t=he(he(he({},t),{notation:"engineering"}),o.options.reduce(function(s,u){return he(he({},s),e0(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(nk,function(s,u,c,d,f,p){if(u)t.minimumIntegerDigits=c.length;else{if(d&&f)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Fv.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(Zm.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Zm,function(s,u,c,d,f,p){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:f&&p?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+p.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var i=o.options[0];i==="w"?t=he(he({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=he(he({},t),Qm(i)));continue}if(Iv.test(o.stem)){t=he(he({},t),Qm(o.stem));continue}var a=Lv(o.stem);a&&(t=he(he({},t),a));var l=ok(o.stem);l&&(t=he(he({},t),l))}return t}var Ui={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function ak(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if(o==="j"){for(var i=0;n+1<e.length&&e.charAt(n+1)===o;)i++,n++;var a=1+(i&1),l=i<2?1:3+(i>>1),s="a",u=lk(t);for((u=="H"||u=="k")&&(l=0);l-- >0;)r+=s;for(;a-- >0;)r=u+r}else o==="J"?r+="H":r+=o}return r}function lk(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var o=Ui[n||""]||Ui[r||""]||Ui["".concat(r,"-001")]||Ui["001"];return o[0]}var _u,sk=new RegExp("^".concat(Pv.source,"*")),uk=new RegExp("".concat(Pv.source,"*$"));function fe(e,t){return{start:e,end:t}}var ck=!!String.prototype.startsWith&&"_a".startsWith("a",1),dk=!!String.fromCodePoint,fk=!!Object.fromEntries,pk=!!String.prototype.codePointAt,hk=!!String.prototype.trimStart,gk=!!String.prototype.trimEnd,mk=!!Number.isSafeInteger,yk=mk?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Wc=!0;try{t0=Nv("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Wc=((_u=t0.exec("a"))===null||_u===void 0?void 0:_u[0])==="a"}catch(e){Wc=!1}var t0,r0=ck?(function(e,t,r){return e.startsWith(t,r)}):(function(e,t,r){return e.slice(r,r+t.length)===t}),Vc=dk?String.fromCodePoint:(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r="",n=e.length,o=0,i;n>o;){if(i=e[o++],i>1114111)throw RangeError(i+" is not a valid code point");r+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return r}),n0=fk?Object.fromEntries:(function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],a=o[1];t[i]=a}return t}),kv=pk?(function(e,t){return e.codePointAt(t)}):(function(e,t){var r=e.length;if(!(t<0||t>=r)){var n=e.charCodeAt(t),o;return n<55296||n>56319||t+1===r||(o=e.charCodeAt(t+1))<56320||o>57343?n:(n-55296<<10)+(o-56320)+65536}}),bk=hk?(function(e){return e.trimStart()}):(function(e){return e.replace(sk,"")}),Ek=gk?(function(e){return e.trimEnd()}):(function(e){return e.replace(uk,"")});function Nv(e,t){return new RegExp(e,t)}var qc;Wc?(Tu=Nv("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),qc=function(e,t){var r;Tu.lastIndex=t;var n=Tu.exec(e);return(r=n[1])!==null&&r!==void 0?r:""}):qc=function(e,t){for(var r=[];;){var n=kv(e,t);if(n===void 0||Mv(n)||$k(n))break;r.push(n),t+=n>=65536?2:1}return Vc.apply(void 0,r)};var Tu,vk=(function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(t,n);if(a.err)return a;o.push(a.val)}else{if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),o.push({type:we.pound,location:fe(l,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(de.UNMATCHED_CLOSING_TAG,fe(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Yc(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;o.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;o.push(a.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:we.literal,value:"<".concat(o,"/>"),location:fe(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,!0);if(i.err)return i;var a=i.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Yc(this.char()))return this.error(de.INVALID_TAG,fe(l,this.clonePosition()));var s=this.clonePosition(),u=this.parseTagName();return o!==u?this.error(de.UNMATCHED_CLOSING_TAG,fe(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:we.tag,value:o,children:a,location:fe(n,this.clonePosition())},err:null}:this.error(de.INVALID_TAG,fe(l,this.clonePosition())))}else return this.error(de.UNCLOSED_TAG,fe(n,this.clonePosition()))}else return this.error(de.INVALID_TAG,fe(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&xk(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),o="";;){var i=this.tryParseQuote(r);if(i){o+=i;continue}var a=this.tryParseUnquoted(t,r);if(a){o+=a;continue}var l=this.tryParseLeftAngleBracket();if(l){o+=l;continue}break}var s=fe(n,this.clonePosition());return{val:{type:we.literal,value:o,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Sk(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return Vc.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Vc(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(de.EXPECT_ARGUMENT_CLOSING_BRACE,fe(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(de.EMPTY_ARGUMENT,fe(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(de.MALFORMED_ARGUMENT,fe(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(de.EXPECT_ARGUMENT_CLOSING_BRACE,fe(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:we.argument,value:o,location:fe(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(de.EXPECT_ARGUMENT_CLOSING_BRACE,fe(n,this.clonePosition())):this.parseArgumentOptions(t,r,o,n);default:return this.error(de.MALFORMED_ARGUMENT,fe(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=qc(this.message,r),o=r+n.length;this.bumpTo(o);var i=this.clonePosition(),a=fe(t,i);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,o){var i,a=this.clonePosition(),l=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(l){case"":return this.error(de.EXPECT_ARGUMENT_TYPE,fe(a,s));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var f=Ek(d.val);if(f.length===0)return this.error(de.EXPECT_ARGUMENT_STYLE,fe(this.clonePosition(),this.clonePosition()));var p=fe(c,this.clonePosition());u={style:f,styleLocation:p}}var m=this.tryParseArgumentClose(o);if(m.err)return m;var y=fe(o,this.clonePosition());if(u&&r0(u==null?void 0:u.style,"::",0)){var S=bk(u.style.slice(2));if(l==="number"){var d=this.parseNumberSkeletonFromString(S,u.styleLocation);return d.err?d:{val:{type:we.number,value:n,location:y,style:d.val},err:null}}else{if(S.length===0)return this.error(de.EXPECT_DATE_TIME_SKELETON,y);var b=S;this.locale&&(b=ak(S,this.locale));var f={type:Wn.dateTime,pattern:b,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?QL(b):{}},v=l==="date"?we.date:we.time;return{val:{type:v,value:n,location:y,style:f},err:null}}}return{val:{type:l==="number"?we.number:l==="date"?we.date:we.time,value:n,location:y,style:(i=u==null?void 0:u.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var x=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(de.EXPECT_SELECT_ARGUMENT_OPTIONS,fe(x,he({},x)));this.bumpSpace();var C=this.parseIdentifierIfPossible(),A=0;if(l!=="select"&&C.value==="offset"){if(!this.bumpIf(":"))return this.error(de.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,fe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(de.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,de.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),C=this.parseIdentifierIfPossible(),A=d.val}var $=this.tryParsePluralOrSelectOptions(t,l,r,C);if($.err)return $;var m=this.tryParseArgumentClose(o);if(m.err)return m;var w=fe(o,this.clonePosition());return l==="select"?{val:{type:we.select,value:n,options:n0($.val),location:w},err:null}:{val:{type:we.plural,value:n,options:n0($.val),offset:A,pluralType:l==="plural"?"cardinal":"ordinal",location:w},err:null}}default:return this.error(de.INVALID_ARGUMENT_TYPE,fe(a,s))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(de.EXPECT_ARGUMENT_CLOSING_BRACE,fe(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(de.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,fe(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=tk(t)}catch(o){return this.error(de.INVALID_NUMBER_SKELETON,r)}return{val:{type:Wn.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?ik(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,o){for(var i,a=!1,l=[],s=new Set,u=o.value,c=o.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(de.EXPECT_PLURAL_ARGUMENT_SELECTOR,de.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=fe(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(s.has(u))return this.error(r==="select"?de.DUPLICATE_SELECT_ARGUMENT_SELECTOR:de.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?de.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:de.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,fe(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,r,n);if(m.err)return m;var y=this.tryParseArgumentClose(p);if(y.err)return y;l.push([u,{value:m.val,location:fe(p,this.clonePosition())}]),s.add(u),this.bumpSpace(),i=this.parseIdentifierIfPossible(),u=i.value,c=i.location}return l.length===0?this.error(r==="select"?de.EXPECT_SELECT_ARGUMENT_SELECTOR:de.EXPECT_PLURAL_ARGUMENT_SELECTOR,fe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(de.MISSING_OTHER_CLAUSE,fe(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)i=!0,a=a*10+(l-48),this.bump();else break}var s=fe(o,this.clonePosition());return i?(a*=n,yk(a)?{val:a,err:null}:this.error(r,s)):this.error(t,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=kv(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(r0(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Mv(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e})();function Yc(e){return e>=97&&e<=122||e>=65&&e<=90}function Sk(e){return Yc(e)||e===47}function xk(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Mv(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function $k(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Xc(e){e.forEach(function(t){if(delete t.location,Av(t)||Ov(t))for(var r in t.options)delete t.options[r].location,Xc(t.options[r].value);else Cv(t)&&Dv(t.style)||(_v(t)||Tv(t))&&Gc(t.style)?delete t.style.location:Rv(t)&&Xc(t.children)})}function wk(e,t){t===void 0&&(t={}),t=he({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new vk(e,t).parse();if(r.err){var n=SyntaxError(de[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Xc(r.val),r.val}var Vn;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Vn||(Vn={}));var xl=(function(e){Sl(t,e);function t(r,n,o){var i=e.call(this,r)||this;return i.code=n,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t})(Error),o0=(function(e){Sl(t,e);function t(r,n,o,i){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(o).join('", "'),'"'),Vn.INVALID_VALUE,i)||this}return t})(xl),Ck=(function(e){Sl(t,e);function t(r,n,o){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Vn.INVALID_VALUE,o)||this}return t})(xl),_k=(function(e){Sl(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),Vn.MISSING_VALUE,n)||this}return t})(xl),at;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(at||(at={}));function Tk(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==at.literal||r.type!==at.literal?t.push(r):n.value+=r.value,t},[])}function Ak(e){return typeof e=="function"}function da(e,t,r,n,o,i,a){if(e.length===1&&Jm(e[0]))return[{type:at.literal,value:e[0].value}];for(var l=[],s=0,u=e;s<u.length;s++){var c=u[s];if(Jm(c)){l.push({type:at.literal,value:c.value});continue}if(JL(c)){typeof i=="number"&&l.push({type:at.literal,value:r.getNumberFormat(t).format(i)});continue}var d=c.value;if(!(o&&d in o))throw new _k(d,a);var f=o[d];if(XL(c)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),l.push({type:typeof f=="string"?at.literal:at.object,value:f});continue}if(_v(c)){var p=typeof c.style=="string"?n.date[c.style]:Gc(c.style)?c.style.parsedOptions:void 0;l.push({type:at.literal,value:r.getDateTimeFormat(t,p).format(f)});continue}if(Tv(c)){var p=typeof c.style=="string"?n.time[c.style]:Gc(c.style)?c.style.parsedOptions:n.time.medium;l.push({type:at.literal,value:r.getDateTimeFormat(t,p).format(f)});continue}if(Cv(c)){var p=typeof c.style=="string"?n.number[c.style]:Dv(c.style)?c.style.parsedOptions:void 0;p&&p.scale&&(f=f*(p.scale||1)),l.push({type:at.literal,value:r.getNumberFormat(t,p).format(f)});continue}if(Rv(c)){var m=c.children,y=c.value,S=o[y];if(!Ak(S))throw new Ck(y,"function",a);var b=da(m,t,r,n,o,i),v=S(b.map(function(A){return A.value}));Array.isArray(v)||(v=[v]),l.push.apply(l,v.map(function(A){return{type:typeof A=="string"?at.literal:at.object,value:A}}))}if(Av(c)){var x=c.options[f]||c.options.other;if(!x)throw new o0(c.value,f,Object.keys(c.options),a);l.push.apply(l,da(x.value,t,r,n,o));continue}if(Ov(c)){var x=c.options["=".concat(f)];if(!x){if(!Intl.PluralRules)throw new xl(`Intl.PluralRules is not available in this environment.
|
|
661
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
662
|
+
`,Vn.MISSING_INTL_API,a);var C=r.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0));x=c.options[C]||c.options.other}if(!x)throw new o0(c.value,f,Object.keys(c.options),a);l.push.apply(l,da(x.value,t,r,n,o,f-(c.offset||0)));continue}}return Tk(l)}function Ok(e,t){return t?he(he(he({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=he(he({},e[n]),t[n]||{}),r},{})):e}function Rk(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Ok(e[n],t[n]),r},he({},e)):e}function Au(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Dk(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:wu(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,$u([void 0],r,!1)))},{cache:Au(e.number),strategy:Cu.variadic}),getDateTimeFormat:wu(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,$u([void 0],r,!1)))},{cache:Au(e.dateTime),strategy:Cu.variadic}),getPluralRules:wu(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,$u([void 0],r,!1)))},{cache:Au(e.pluralRules),strategy:Cu.variadic})}}(function(){function e(t,r,n,o){r===void 0&&(r=e.defaultLocale);var i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(s){var u=i.formatToParts(s);if(u.length===1)return u[0].value;var c=u.reduce(function(d,f){return!d.length||f.type!==at.literal||typeof d[d.length-1]!="string"?d.push(f.value):d[d.length-1]+=f.value,d},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(s){return da(i.ast,i.locales,i.formatters,i.formats,s,void 0,i.message)},this.resolvedOptions=function(){var s;return{locale:((s=i.resolvedLocale)===null||s===void 0?void 0:s.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=o||{};a.formatters;var l=UL(a,["formatters"]);this.ast=e.__parse(t,he(he({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Rk(e.formats,n),this.formatters=o&&o.formatters||Dk(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=wk,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e})();var Pk=Symbol.for("react-aria.i18n.locale"),Ik=Symbol.for("react-aria.i18n.strings"),xn,Bv=class jv{getStringForLocale(t,r){let n=this.getStringsForLocale(r)[t];if(!n)throw new Error(`Could not find intl message ${t} in ${r} locale`);return n}getStringsForLocale(t){let r=this.strings[t];return r||(r=Fk(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[Pk];if(xn===void 0){let o=window[Ik];if(!o)return null;xn={};for(let i in o)xn[i]=new jv({[r]:o[i]},r)}let n=xn==null?void 0:xn[t];if(!n)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,n])=>n)),this.defaultLocale=r}};function Fk(e,t,r="en-US"){if(t[e])return t[e];let n=Lk(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function Lk(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}var i0=new Map,a0=new Map,kk=class{format(e,t){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(t,this):r}plural(e,t,r="cardinal"){let n=t["="+e];if(n)return typeof n=="function"?n():n;let o=this.locale+":"+r,i=i0.get(o);i||(i=new Intl.PluralRules(this.locale,{type:r}),i0.set(o,i));let a=i.select(e);return n=t[a]||t.other,typeof n=="function"?n():n}number(e){let t=a0.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),a0.set(this.locale,t)),t.format(e)}select(e,t){let r=e[t]||e.other;return typeof r=="function"?r():r}constructor(e,t){this.locale=e,this.strings=t}},l0=new WeakMap;function Nk(e){let t=l0.get(e);return t||(t=new Bv(e),l0.set(e,t)),t}function Mk(e,t){return Bv.getGlobalDictionaryForPackage(t)||Nk(e)}function Bk(e,t){let{locale:r}=wr(),n=Mk(e,t);return h.useMemo(()=>new kk(r,n),[r,n])}var Ou=new Map,Jc=!1;try{Jc=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch(e){}var Ia=!1;try{Ia=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch(e){}var Hv={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}},jk=class{format(e){let t="";if(!Jc&&this.options.signDisplay!=null?t=Uk(this.numberFormatter,this.options.signDisplay,e):t=this.numberFormatter.format(e),this.options.style==="unit"&&!Ia){var r;let{unit:n,unitDisplay:o="short",locale:i}=this.resolvedOptions();if(!n)return t;let a=(r=Hv[n])===null||r===void 0?void 0:r[o];t+=a[i]||a.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(e),n=this.numberFormatter.formatToParts(t);return[...r.map(o=>P(E({},o),{source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...n.map(o=>P(E({},o),{source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!Jc&&this.options.signDisplay!=null&&(e=P(E({},e),{signDisplay:this.options.signDisplay})),!Ia&&this.options.style==="unit"&&(e=P(E({},e),{style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay})),e}constructor(e,t={}){this.numberFormatter=Hk(e,t),this.options=t}};function Hk(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!Ia){var n;let{unit:a,unitDisplay:l="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=Hv[a])===null||n===void 0)&&n[l]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${l}`);t=P(E({},t),{style:"decimal"})}let o=e+(t?Object.entries(t).sort((a,l)=>a[0]<l[0]?-1:1).join():"");if(Ou.has(o))return Ou.get(o);let i=new Intl.NumberFormat(e,t);return Ou.set(o,i),i}function Uk(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),i=e.format(r),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(r)}}function zk(e={}){let{locale:t}=wr();return h.useMemo(()=>new jk(t,e),[t,e])}var Ru=new Map;function Kk(e){let{locale:t}=wr(),r=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(Ru.has(r))return Ru.get(r);let n=new Intl.Collator(t,e);return Ru.set(r,n),n}var Re=typeof document<"u"?window.visualViewport:null;function Bf(e){let{direction:t}=wr(),{arrowSize:r,targetRef:n,overlayRef:o,arrowRef:i,scrollRef:a=o,placement:l="bottom",containerPadding:s=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:m=!0,onClose:y,maxHeight:S,arrowBoundaryOffset:b=0}=e,[v,x]=h.useState(null),C=[p,l,o.current,n.current,i==null?void 0:i.current,a.current,s,u,c,d,f,m,t,S,b,r],A=h.useRef(Re==null?void 0:Re.scale);h.useEffect(()=>{m&&(A.current=Re==null?void 0:Re.scale)},[m]);let $=h.useCallback(()=>{if(p===!1||!m||!o.current||!n.current||!c||(Re==null?void 0:Re.scale)!==A.current)return;let D=null;if(a.current&&a.current.contains(document.activeElement)){var M;let B=(M=document.activeElement)===null||M===void 0?void 0:M.getBoundingClientRect(),F=a.current.getBoundingClientRect();var k;if(D={type:"top",offset:((k=B==null?void 0:B.top)!==null&&k!==void 0?k:0)-F.top},D.offset>F.height/2){D.type="bottom";var R;D.offset=((R=B==null?void 0:B.bottom)!==null&&R!==void 0?R:0)-F.bottom}}let j=o.current;if(!S&&o.current){var L;j.style.top="0px",j.style.bottom="";var z;j.style.maxHeight=((z=(L=window.visualViewport)===null||L===void 0?void 0:L.height)!==null&&z!==void 0?z:window.innerHeight)+"px"}let U=IL({placement:Wk(l,t),overlayNode:o.current,targetNode:n.current,scrollNode:a.current||o.current,padding:s,shouldFlip:u,boundaryElement:c,offset:d,crossOffset:f,maxHeight:S,arrowSize:r!=null?r:i!=null&&i.current?Mf(i.current,!0).width:0,arrowBoundaryOffset:b});if(U.position){if(j.style.top="",j.style.bottom="",j.style.left="",j.style.right="",Object.keys(U.position).forEach(B=>j.style[B]=U.position[B]+"px"),j.style.maxHeight=U.maxHeight!=null?U.maxHeight+"px":"",D&&document.activeElement&&a.current){let B=document.activeElement.getBoundingClientRect(),F=a.current.getBoundingClientRect(),H=B[D.type]-F[D.type];a.current.scrollTop+=H-D.offset}x(U)}},C);ge($,C),Gk($),_a({ref:o,onResize:$}),_a({ref:n,onResize:$});let w=h.useRef(!1);ge(()=>{let D,M=()=>{w.current=!0,clearTimeout(D),D=setTimeout(()=>{w.current=!1},500),$()},k=()=>{w.current&&M()};return Re==null||Re.addEventListener("resize",M),Re==null||Re.addEventListener("scroll",k),()=>{Re==null||Re.removeEventListener("resize",M),Re==null||Re.removeEventListener("scroll",k)}},[$]);let _=h.useCallback(()=>{w.current||(y==null||y())},[y,w]);LL({triggerRef:n,isOpen:m,onClose:y&&_});var O,T,I;return{overlayProps:{style:P(E({position:v?"absolute":"fixed",top:v?void 0:0,left:v?void 0:0,zIndex:1e5},v==null?void 0:v.position),{maxHeight:(O=v==null?void 0:v.maxHeight)!==null&&O!==void 0?O:"100vh"})},placement:(T=v==null?void 0:v.placement)!==null&&T!==void 0?T:null,triggerAnchorPoint:(I=v==null?void 0:v.triggerAnchorPoint)!==null&&I!==void 0?I:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:v==null?void 0:v.arrowOffsetLeft,top:v==null?void 0:v.arrowOffsetTop}},updatePosition:$}}function Gk(e){ge(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function Wk(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}var s0=g.createContext(null),Zc="react-aria-focus-scope-restore",Se=null;function jf(e){let{children:t,contain:r,restoreFocus:n,autoFocus:o}=e,i=h.useRef(null),a=h.useRef(null),l=h.useRef([]),{parentNode:s}=h.useContext(s0)||{},u=h.useMemo(()=>new ed({scopeRef:l}),[l]);ge(()=>{let f=s||Ie.root;if(Ie.getTreeNode(f.scopeRef)&&Se&&!Fa(Se,f.scopeRef)){let p=Ie.getTreeNode(Se);p&&(f=p)}f.addChild(u),Ie.addNode(u)},[u,s]),ge(()=>{let f=Ie.getTreeNode(l);f&&(f.contain=!!r)},[r]),ge(()=>{var f;let p=(f=i.current)===null||f===void 0?void 0:f.nextSibling,m=[],y=S=>S.stopPropagation();for(;p&&p!==a.current;)m.push(p),p.addEventListener(Zc,y),p=p.nextSibling;return l.current=m,()=>{for(let S of m)S.removeEventListener(Zc,y)}},[t]),Zk(l,n,r),Yk(l,r),Qk(l,n,r),Jk(l,o),h.useEffect(()=>{let f=ze(me(l.current?l.current[0]:void 0)),p=null;if(Dt(f,l.current)){for(let m of Ie.traverse())m.scopeRef&&Dt(f,m.scopeRef.current)&&(p=m);p===Ie.getTreeNode(l)&&(Se=p.scopeRef)}},[l]),ge(()=>()=>{var f,p,m;let y=(m=(p=Ie.getTreeNode(l))===null||p===void 0||(f=p.parent)===null||f===void 0?void 0:f.scopeRef)!==null&&m!==void 0?m:null;(l===Se||Fa(l,Se))&&(!y||Ie.getTreeNode(y))&&(Se=y),Ie.removeTreeNode(l)},[l]);let c=h.useMemo(()=>Vk(l),[]),d=h.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return g.createElement(s0.Provider,{value:d},g.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,g.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function Vk(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:a}=t;var l;let s=n||ze(me((l=r[0])!==null&&l!==void 0?l:void 0)),u=r[0].previousElementSibling,c=tn(r),d=dt(c,{tabbable:o,accept:a},r);d.currentNode=Dt(s,r)?s:u;let f=d.nextNode();return!f&&i&&(d.currentNode=u,f=d.nextNode()),f&&ct(f,!0),f},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:a}=t;var l;let s=n||ze(me((l=r[0])!==null&&l!==void 0?l:void 0)),u=r[r.length-1].nextElementSibling,c=tn(r),d=dt(c,{tabbable:o,accept:a},r);d.currentNode=Dt(s,r)?s:u;let f=d.previousNode();return!f&&i&&(d.currentNode=u,f=d.previousNode()),f&&ct(f,!0),f},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=tn(r),a=dt(i,{tabbable:n,accept:o},r);a.currentNode=r[0].previousElementSibling;let l=a.nextNode();return l&&ct(l,!0),l},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=tn(r),a=dt(i,{tabbable:n,accept:o},r);a.currentNode=r[r.length-1].nextElementSibling;let l=a.previousNode();return l&&ct(l,!0),l}}}function tn(e){return e[0].parentElement}function Po(e){let t=Ie.getTreeNode(Se);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function qk(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...me(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(o=>!o.form);else{var r,n;let o=(n=e.form)===null||n===void 0||(r=n.elements)===null||r===void 0?void 0:r.namedItem(e.name);t=[...o!=null?o:[]]}return t?!t.some(o=>o.checked):!1}function Yk(e,t){let r=h.useRef(void 0),n=h.useRef(void 0);ge(()=>{let o=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}let i=me(o?o[0]:void 0),a=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Po(e)||u.isComposing)return;let c=ze(i),d=e.current;if(!d||!Dt(c,d))return;let f=tn(d),p=dt(f,{tabbable:!0},d);if(!c)return;p.currentNode=c;let m=u.shiftKey?p.previousNode():p.nextNode();m||(p.currentNode=u.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,m=u.shiftKey?p.previousNode():p.nextNode()),u.preventDefault(),m&&ct(m,!0)},l=u=>{(!Se||Fa(Se,e))&&Dt(De(u),e.current)?(Se=e,r.current=De(u)):Po(e)&&!Ir(De(u),e)?r.current?r.current.focus():Se&&Se.current&&Qc(Se.current):Po(e)&&(r.current=De(u))},s=u=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let c=Zo(),d=(c==="virtual"||c===null)&&Tf()&&_f(),f=ze(i);if(!d&&f&&Po(e)&&!Ir(f,e)){Se=e;let m=De(u);if(m&&m.isConnected){var p;r.current=m,(p=r.current)===null||p===void 0||p.focus()}else Se.current&&Qc(Se.current)}})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",l,!1),o==null||o.forEach(u=>u.addEventListener("focusin",l,!1)),o==null||o.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",l,!1),o==null||o.forEach(u=>u.removeEventListener("focusin",l,!1)),o==null||o.forEach(u=>u.removeEventListener("focusout",s,!1))}},[e,t]),ge(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function Uv(e){return Ir(e)}function Dt(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function Ir(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of Ie.traverse(Ie.getTreeNode(t)))if(r&&Dt(e,r.current))return!0;return!1}function Xk(e){return Ir(e,Se)}function Fa(e,t){var r;let n=(r=Ie.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function ct(e,t=!1){if(e!=null&&!t)try{kr(e)}catch(r){}else if(e!=null)try{e.focus()}catch(r){}}function zv(e,t=!0){let r=e[0].previousElementSibling,n=tn(e),o=dt(n,{tabbable:t},e);o.currentNode=r;let i=o.nextNode();return t&&!i&&(n=tn(e),o=dt(n,{tabbable:!1},e),o.currentNode=r,i=o.nextNode()),i}function Qc(e,t=!0){ct(zv(e,t))}function Jk(e,t){let r=g.useRef(t);h.useEffect(()=>{if(r.current){Se=e;let n=me(e.current?e.current[0]:void 0);!Dt(ze(n),Se.current)&&e.current&&Qc(e.current)}r.current=!1},[e])}function Zk(e,t,r){ge(()=>{if(t||r)return;let n=e.current,o=me(n?n[0]:void 0),i=a=>{let l=De(a);Dt(l,e.current)?Se=e:Uv(l)||(Se=null)};return o.addEventListener("focusin",i,!1),n==null||n.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),n==null||n.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,t,r])}function u0(e){let t=Ie.getTreeNode(Se);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Qk(e,t,r){let n=h.useRef(typeof document<"u"?ze(me(e.current?e.current[0]:void 0)):null);ge(()=>{let o=e.current,i=me(o?o[0]:void 0);if(!t||r)return;let a=()=>{(!Se||Fa(Se,e))&&Dt(ze(i),e.current)&&(Se=e)};return i.addEventListener("focusin",a,!1),o==null||o.forEach(l=>l.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),o==null||o.forEach(l=>l.removeEventListener("focusin",a,!1))}},[e,r]),ge(()=>{let o=me(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!Po(e)||a.isComposing)return;let l=o.activeElement;if(!Ir(l,e)||!u0(e))return;let s=Ie.getTreeNode(e);if(!s)return;let u=s.nodeToRestore,c=dt(o.body,{tabbable:!0});c.currentNode=l;let d=a.shiftKey?c.previousNode():c.nextNode();if((!u||!u.isConnected||u===o.body)&&(u=void 0,s.nodeToRestore=void 0),(!d||!Ir(d,e))&&u){c.currentNode=u;do d=a.shiftKey?c.previousNode():c.nextNode();while(Ir(d,e));a.preventDefault(),a.stopPropagation(),d?ct(d,!0):Uv(u)?ct(u,!0):l.blur()}};return r||o.addEventListener("keydown",i,!0),()=>{r||o.removeEventListener("keydown",i,!0)}},[e,t,r]),ge(()=>{let o=me(e.current?e.current[0]:void 0);if(!t)return;let i=Ie.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=n.current)!==null&&a!==void 0?a:void 0,()=>{let l=Ie.getTreeNode(e);if(!l)return;let s=l.nodeToRestore,u=ze(o);if(t&&s&&(u&&Ir(u,e)||u===o.body&&u0(e))){let c=Ie.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=c.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){c0(d.nodeToRestore);return}d=d.parent}for(d=c.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&Ie.getTreeNode(d.scopeRef)){let f=zv(d.scopeRef.current,!0);c0(f);return}d=d.parent}}})}}}},[e,t])}function c0(e){e.dispatchEvent(new CustomEvent(Zc,{bubbles:!0,cancelable:!0}))&&ct(e)}function dt(e,t,r){let n=t!=null&&t.tabbable?Z6:lv,o=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,i=me(o),a=E6(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(l){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(l)||t!=null&&t.tabbable&&l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(!qk(l)||a.currentNode.tagName==="INPUT"&&a.currentNode.type==="radio"&&a.currentNode.name===l.name)?NodeFilter.FILTER_REJECT:n(l)&&(!r||Dt(l,r))&&(!(t!=null&&t.accept)||t.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(a.currentNode=t.from),a}function e7(e,t={}){return{focusNext(r={}){let n=e.current;if(!n)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:l=t.accept}=r,s=o||ze(me(n)),u=dt(n,{tabbable:i,accept:l});n.contains(s)&&(u.currentNode=s);let c=u.nextNode();return!c&&a&&(u.currentNode=n,c=u.nextNode()),c&&ct(c,!0),c},focusPrevious(r=t){let n=e.current;if(!n)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:l=t.accept}=r,s=o||ze(me(n)),u=dt(n,{tabbable:i,accept:l});if(n.contains(s))u.currentNode=s;else{let d=Du(u);return d&&ct(d,!0),d!=null?d:null}let c=u.previousNode();if(!c&&a){u.currentNode=n;let d=Du(u);if(!d)return null;c=d}return c&&ct(c,!0),c!=null?c:null},focusFirst(r=t){let n=e.current;if(!n)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=r,a=dt(n,{tabbable:o,accept:i}).nextNode();return a&&ct(a,!0),a},focusLast(r=t){let n=e.current;if(!n)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=r,a=dt(n,{tabbable:o,accept:i}),l=Du(a);return l&&ct(l,!0),l!=null?l:null}}}function Du(e){let t,r;do r=e.lastChild(),r&&(t=r);while(r);return t}var t7=class Kv{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r!=null?r:null);if(!o)return;let i=new ed({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&Dt(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(i=>n&&n.addChild(i))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*Cr(this.traverse(r))}clone(){var t;let r=new Kv;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new ed({scopeRef:null}),this.fastMap.set(null,this.root)}},ed=class{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}},Ie=new t7;function $l(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=h.useRef({isFocused:!1,isFocusVisible:t||Jo()}),[i,a]=h.useState(!1),[l,s]=h.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=h.useCallback(()=>s(o.current.isFocused&&o.current.isFocusVisible),[]),c=h.useCallback(p=>{o.current.isFocused=p,a(p),u()},[u]);gL(p=>{o.current.isFocusVisible=p,u()},[],{isTextInput:r});let{focusProps:d}=Ff({isDisabled:n,onFocusChange:c}),{focusWithinProps:f}=Lf({isDisabled:!n,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:l,focusProps:n?f:d}}function r7(e,t){let[r,n]=h.useState(!1);return ge(()=>{if(e!=null&&e.current){let o=()=>{if(e.current){let a=dt(e.current,{tabbable:!0});n(!!a.nextNode())}};o();let i=new MutationObserver(o);return i.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{i.disconnect()}}}),r}function Gv(e){let t=o7(me(e));t!==e&&(t&&n7(t,e),e&&Wv(e,t))}function n7(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function Wv(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function o7(e){let t=ze(e),r=t==null?void 0:t.getAttribute("aria-activedescendant");return r&&e.getElementById(r)||t}var qt=[];function Hf(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:l}=e;h.useEffect(()=>{if(o&&!qt.includes(t))return qt.push(t),()=>{let m=qt.indexOf(t);m>=0&&qt.splice(m,1)}},[o,t]);let s=()=>{qt[qt.length-1]===t&&r&&r()},u=m=>{(!l||l(m.target))&&qt[qt.length-1]===t&&(m.stopPropagation(),m.preventDefault())},c=m=>{(!l||l(m.target))&&(qt[qt.length-1]===t&&(m.stopPropagation(),m.preventDefault()),s())},d=m=>{m.key==="Escape"&&!a&&!m.nativeEvent.isComposing&&(m.stopPropagation(),m.preventDefault(),s())};bv({ref:t,onInteractOutside:i&&o?c:void 0,onInteractOutsideStart:u});let{focusWithinProps:f}=Lf({isDisabled:!n,onBlurWithin:m=>{!m.relatedTarget||Xk(m.relatedTarget)||(!l||l(m.relatedTarget))&&(r==null||r())}}),p=m=>{m.target===m.currentTarget&&m.preventDefault()};return{overlayProps:E({onKeyDown:d},f),underlayProps:{onPointerDown:p}}}function i7(e,t,r){let{isOpen:n}=t;h.useEffect(()=>{r&&r.current&&Sv.set(r.current,t.close)});let o,i=et();return{triggerProps:{"aria-haspopup":o,"aria-expanded":n,"aria-controls":n?i:void 0,onPress:t.toggle},overlayProps:{id:i}}}var Lo=typeof document<"u"&&window.visualViewport,zi=0,Pu;function Vv(e={}){let{isDisabled:t}=e;ge(()=>{if(!t)return zi++,zi===1&&(ml()?Pu=l7():Pu=a7()),()=>{zi--,zi===0&&Pu()}},[t])}function a7(){let e=window.innerWidth-document.documentElement.clientWidth;return fi(e>0&&("scrollbarGutter"in document.documentElement.style?Iu(document.documentElement,"scrollbarGutter","stable"):Iu(document.documentElement,"paddingRight",`${e}px`)),Iu(document.documentElement,"overflow","hidden"))}function l7(){let e,t=!1,r=s=>{let u=s.target;e=Gn(u)?u:tv(u,!0),t=!1;let c=u.ownerDocument.defaultView.getSelection();c&&!c.isCollapsed&&c.containsNode(u,!0)&&(t=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(t=!0)},n=document.createElement("style");n.textContent=`
|
|
663
|
+
@layer {
|
|
664
|
+
* {
|
|
665
|
+
overscroll-behavior: contain;
|
|
666
|
+
}
|
|
667
|
+
}`.trim(),document.head.prepend(n);let o=s=>{if(!(s.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){s.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&s.preventDefault()}},i=s=>{let u=s.target,c=s.relatedTarget;if(c&&Eu(c))c.focus({preventScroll:!0}),d0(c,Eu(u));else if(!c){var d;let f=(d=u.parentElement)===null||d===void 0?void 0:d.closest("[tabindex]");f==null||f.focus({preventScroll:!0})}},a=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(s){let u=document.activeElement!=null&&Eu(document.activeElement);a.call(this,P(E({},s),{preventScroll:!0})),(!s||!s.preventScroll)&&d0(this,u)};let l=fi(Fu(document,"touchstart",r,{passive:!1,capture:!0}),Fu(document,"touchmove",o,{passive:!1,capture:!0}),Fu(document,"blur",i,!0));return()=>{l(),n.remove(),HTMLElement.prototype.focus=a}}function Iu(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function Fu(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function d0(e,t){t||!Lo?f0(e):Lo.addEventListener("resize",()=>f0(e),{once:!0})}function f0(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let n=tv(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(i.top<o.top||i.bottom>o.top+r.clientHeight){let a=o.bottom;Lo&&(a=Math.min(a,Lo.offsetTop+Lo.height));let l=i.top-o.top-((a-o.top)/2-i.height/2);n.scrollTo({top:Math.max(0,Math.min(n.scrollHeight-n.clientHeight,n.scrollTop+l)),behavior:"smooth"})}}r=n.parentElement}}var s7=h.createContext({});function qv(){var e;return(e=h.useContext(s7))!==null&&e!==void 0?e:{}}var td=g.createContext(null);function u7(e){let{children:t}=e,r=h.useContext(td),[n,o]=h.useState(0),i=h.useMemo(()=>({parent:r,modalCount:n,addModal(){o(a=>a+1),r&&r.addModal()},removeModal(){o(a=>a-1),r&&r.removeModal()}}),[r,n]);return g.createElement(td.Provider,{value:i},t)}function c7(){let e=h.useContext(td);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function d7(e){let{modalProviderProps:t}=c7();return g.createElement("div",E(E({"data-overlay-container":!0},e),t))}function f7(e){return g.createElement(u7,null,g.createElement(d7,e))}function p7(e){let t=yn(),a=e,{portalContainer:r=t?null:document.body}=a,n=G(a,["portalContainer"]),{getContainer:o}=qv();if(!e.portalContainer&&o&&(r=o()),g.useEffect(()=>{if(r!=null&&r.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let i=g.createElement(f7,n);return r1.createPortal(i,r)}var Yv={};Yv={dismiss:"تجاهل"};var Xv={};Xv={dismiss:"Отхвърляне"};var Jv={};Jv={dismiss:"Odstranit"};var Zv={};Zv={dismiss:"Luk"};var Qv={};Qv={dismiss:"Schließen"};var eS={};eS={dismiss:"Απόρριψη"};var tS={};tS={dismiss:"Dismiss"};var rS={};rS={dismiss:"Descartar"};var nS={};nS={dismiss:"Lõpeta"};var oS={};oS={dismiss:"Hylkää"};var iS={};iS={dismiss:"Rejeter"};var aS={};aS={dismiss:"התעלם"};var lS={};lS={dismiss:"Odbaci"};var sS={};sS={dismiss:"Elutasítás"};var uS={};uS={dismiss:"Ignora"};var cS={};cS={dismiss:"閉じる"};var dS={};dS={dismiss:"무시"};var fS={};fS={dismiss:"Atmesti"};var pS={};pS={dismiss:"Nerādīt"};var hS={};hS={dismiss:"Lukk"};var gS={};gS={dismiss:"Negeren"};var mS={};mS={dismiss:"Zignoruj"};var yS={};yS={dismiss:"Descartar"};var bS={};bS={dismiss:"Dispensar"};var ES={};ES={dismiss:"Revocare"};var vS={};vS={dismiss:"Пропустить"};var SS={};SS={dismiss:"Zrušiť"};var xS={};xS={dismiss:"Opusti"};var $S={};$S={dismiss:"Odbaci"};var wS={};wS={dismiss:"Avvisa"};var CS={};CS={dismiss:"Kapat"};var _S={};_S={dismiss:"Скасувати"};var TS={};TS={dismiss:"取消"};var AS={};AS={dismiss:"關閉"};var OS={};OS={"ar-AE":Yv,"bg-BG":Xv,"cs-CZ":Jv,"da-DK":Zv,"de-DE":Qv,"el-GR":eS,"en-US":tS,"es-ES":rS,"et-EE":nS,"fi-FI":oS,"fr-FR":iS,"he-IL":aS,"hr-HR":lS,"hu-HU":sS,"it-IT":uS,"ja-JP":cS,"ko-KR":dS,"lt-LT":fS,"lv-LV":pS,"nb-NO":hS,"nl-NL":gS,"pl-PL":mS,"pt-BR":yS,"pt-PT":bS,"ro-RO":ES,"ru-RU":vS,"sk-SK":SS,"sl-SI":xS,"sr-SP":$S,"sv-SE":wS,"tr-TR":CS,"uk-UA":_S,"zh-CN":TS,"zh-TW":AS};var p0={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function h7(e={}){let{style:t,isFocusable:r}=e,[n,o]=h.useState(!1),{focusWithinProps:i}=Lf({isDisabled:!r,onFocusWithinChange:l=>o(l)}),a=h.useMemo(()=>n?t:t?E(E({},p0),t):p0,[n]);return{visuallyHiddenProps:P(E({},i),{style:a})}}function g7(e){let l=e,{children:t,elementType:r="div",isFocusable:n,style:o}=l,i=G(l,["children","elementType","isFocusable","style"]),{visuallyHiddenProps:a}=h7(e);return g.createElement(r,le(i,a),t)}function m7(e){return e&&e.__esModule?e.default:e}function h0(e){let a=e,{onDismiss:t}=a,r=G(a,["onDismiss"]),n=Bk(m7(OS),"@react-aria/overlays"),o=El(r,n.format("dismiss")),i=()=>{t&&t()};return g.createElement(g7,null,g.createElement("button",P(E({},o),{tabIndex:-1,onClick:i,style:{width:1,height:1}})))}var y7=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,xo=new WeakMap,st=[];function wl(e,t){let r=Ot(e==null?void 0:e[0]),n=t instanceof r.Element?{root:t}:t;var o;let i=(o=n==null?void 0:n.root)!==null&&o!==void 0?o:document.body,a=(n==null?void 0:n.shouldUseInert)&&y7,l=new Set(e),s=new Set,u=y=>a&&y instanceof r.HTMLElement?y.inert:y.getAttribute("aria-hidden")==="true",c=(y,S)=>{a&&y instanceof r.HTMLElement?y.inert=S:S?y.setAttribute("aria-hidden","true"):(y.removeAttribute("aria-hidden"),y instanceof r.HTMLElement&&(y.inert=!1))},d=y=>{for(let x of y.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(x);let S=x=>{if(s.has(x)||l.has(x)||x.parentElement&&s.has(x.parentElement)&&x.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let C of l)if(x.contains(C))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},b=document.createTreeWalker(y,NodeFilter.SHOW_ELEMENT,{acceptNode:S}),v=S(y);if(v===NodeFilter.FILTER_ACCEPT&&f(y),v!==NodeFilter.FILTER_REJECT){let x=b.nextNode();for(;x!=null;)f(x),x=b.nextNode()}},f=y=>{var S;let b=(S=xo.get(y))!==null&&S!==void 0?S:0;u(y)&&b===0||(b===0&&c(y,!0),s.add(y),xo.set(y,b+1))};st.length&&st[st.length-1].disconnect(),d(i);let p=new MutationObserver(y=>{for(let S of y)if(S.type==="childList"&&![...l,...s].some(b=>b.contains(S.target)))for(let b of S.addedNodes)(b instanceof HTMLElement||b instanceof SVGElement)&&(b.dataset.liveAnnouncer==="true"||b.dataset.reactAriaTopLayer==="true")?l.add(b):b instanceof Element&&d(b)});p.observe(i,{childList:!0,subtree:!0});let m={visibleNodes:l,hiddenNodes:s,observe(){p.observe(i,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}};return st.push(m),()=>{p.disconnect();for(let y of s){let S=xo.get(y);S!=null&&(S===1?(c(y,!1),xo.delete(y)):xo.set(y,S-1))}m===st[st.length-1]?(st.pop(),st.length&&st[st.length-1].observe()):st.splice(st.indexOf(m),1)}}function b7(e){let t=st[st.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function E7(e,t){let S=e,{triggerRef:r,popoverRef:n,groupRef:o,isNonModal:i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:l}=S,s=G(S,["triggerRef","popoverRef","groupRef","isNonModal","isKeyboardDismissDisabled","shouldCloseOnInteractOutside"]),u=s.trigger==="SubmenuTrigger",{overlayProps:c,underlayProps:d}=Hf({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i||u,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:l},o!=null?o:n),{overlayProps:f,arrowProps:p,placement:m,triggerAnchorPoint:y}=Bf(P(E({},s),{targetRef:r,overlayRef:n,isOpen:t.isOpen,onClose:i&&!u?t.close:null}));return Vv({isDisabled:i||!t.isOpen}),h.useEffect(()=>{if(t.isOpen&&n.current){var b,v;return i?b7((b=o==null?void 0:o.current)!==null&&b!==void 0?b:n.current):wl([(v=o==null?void 0:o.current)!==null&&v!==void 0?v:n.current],{shouldUseInert:!0})}},[i,t.isOpen,n,o]),{popoverProps:le(c,f),arrowProps:p,underlayProps:d,placement:m,triggerAnchorPoint:y}}var RS=g.createContext(null);function La(e){let t=yn(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[o,i]=h.useState(!1),a=h.useMemo(()=>({contain:o,setContain:i}),[o,i]),{getContainer:l}=qv();if(!e.portalContainer&&l&&(r=l()),!r)return null;let s=e.children;return e.disableFocusManagement||(s=g.createElement(jf,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!n},s)),s=g.createElement(RS.Provider,{value:a},g.createElement(SL,null,s)),r1.createPortal(s,r)}function DS(){let e=h.useContext(RS),t=e==null?void 0:e.setContain;ge(()=>{t==null||t(!0)},[t])}function v7(e,t,r){let{overlayProps:n,underlayProps:o}=Hf(P(E({},e),{isOpen:t.isOpen,onClose:t.close}),r);return Vv({isDisabled:!t.isOpen}),DS(),h.useEffect(()=>{if(t.isOpen&&r.current)return wl([r.current],{shouldUseInert:!0})},[t.isOpen,r]),{modalProps:le(n),underlayProps:o}}function gi(e){let[t,r]=vl(e.isOpen,e.defaultOpen||!1,e.onOpenChange),n=h.useCallback(()=>{r(!0)},[r]),o=h.useCallback(()=>{r(!1)},[r]),i=h.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:o,toggle:i}}var S7=1500,g0=500,Gr={},x7=0,$o=!1,hr=null,Wr=null;function PS(e={}){let{delay:t=S7,closeDelay:r=g0}=e,{isOpen:n,open:o,close:i}=gi(e),a=h.useMemo(()=>`${++x7}`,[]),l=h.useRef(null),s=h.useRef(i),u=()=>{Gr[a]=f},c=()=>{for(let m in Gr)m!==a&&(Gr[m](!0),delete Gr[m])},d=()=>{l.current&&clearTimeout(l.current),l.current=null,c(),u(),$o=!0,o(),hr&&(clearTimeout(hr),hr=null),Wr&&(clearTimeout(Wr),Wr=null)},f=m=>{m||r<=0?(l.current&&clearTimeout(l.current),l.current=null,s.current()):l.current||(l.current=setTimeout(()=>{l.current=null,s.current()},r)),hr&&(clearTimeout(hr),hr=null),$o&&(Wr&&clearTimeout(Wr),Wr=setTimeout(()=>{delete Gr[a],Wr=null,$o=!1},Math.max(g0,r)))},p=()=>{c(),u(),!n&&!hr&&!$o?hr=setTimeout(()=>{hr=null,$o=!0,d()},t):n||d()};return h.useEffect(()=>{s.current=i},[i]),h.useEffect(()=>()=>{l.current&&clearTimeout(l.current),Gr[a]&&delete Gr[a]},[a]),{isOpen:n,open:m=>{!m&&t>0&&!l.current?p():d()},close:f}}var Uf=h.createContext(null),IS=h.createContext(null);function $7(e){let t=PS(e),r=h.useRef(null),{triggerProps:n,tooltipProps:o}=TL(e,t,r);return g.createElement($r,{values:[[Uf,t],[IS,P(E({},o),{triggerRef:r})]]},g.createElement(yL,P(E({},n),{ref:r}),e.children))}var w7=h.forwardRef(function(n,r){var o=n,{UNSTABLE_portalContainer:e}=o,t=G(o,["UNSTABLE_portalContainer"]);[t,r]=rt(t,r,IS);let i=h.useContext(Uf),a=PS(t),l=t.isOpen!=null||t.defaultOpen!=null||!i?a:i,s=iv(r,l.isOpen)||t.isExiting||!1;return!l.isOpen&&!s?null:g.createElement(p7,{portalContainer:e},g.createElement(C7,P(E({},t),{tooltipRef:r,isExiting:s})))});function C7(e){let t=h.useContext(Uf),r=h.useRef(null),{overlayProps:n,arrowProps:o,placement:i,triggerAnchorPoint:a}=Bf({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:r,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),l=ov(e.tooltipRef,!!i)||e.isEntering||!1,s=xt(P(E({},e),{defaultClassName:"react-aria-Tooltip",values:{placement:i,isEntering:l,isExiting:e.isExiting,state:t}}));e=le(e,n);let{tooltipProps:u}=_L(e,t),c=Te(e,{global:!0});return g.createElement("div",P(E({},le(c,s,u)),{ref:e.tooltipRef,style:E(P(E({},n.style),{"--trigger-anchor-point":a?`${a.x}px ${a.y}px`:void 0}),s.style),"data-placement":i!=null?i:void 0,"data-entering":l||void 0,"data-exiting":e.isExiting||void 0}),g.createElement(Nf.Provider,{value:P(E({},o),{placement:i,ref:r})},s.children))}var _7=vt(Qn(),1),zf=(0,_7.default)(1e3)(e=>e==="left-end"?"left bottom":e==="right-end"?"right bottom":e==="left-start"?"left top":e==="right-start"?"right top":e.replace("-"," "));N.div({width:500,height:500,paddingTop:100,overflowY:"scroll",background:"#eee",position:"relative"});var T7=h.forwardRef((e,t)=>g.createElement("button",P(E({},e),{ref:t,style:{width:120,height:50,margin:10}})));T7.displayName="Trigger";var Kf=f=>{var p=f,{triggerOnFocusOnly:e=!1,placement:t="top",offset:r=8,tooltip:n,children:o,defaultVisible:i,startOpen:a,delayShow:l=400,delayHide:s=200,visible:u,onVisibleChange:c}=p,d=G(p,["triggerOnFocusOnly","placement","offset","tooltip","children","defaultVisible","startOpen","delayShow","delayHide","visible","onVisibleChange"]);var x;let m=zf(t),y=g.Children.only(o);a!==void 0&&a6("The `startOpen` prop is deprecated. Please use `defaultVisible` instead.");let[S,b]=h.useState((x=i!=null?i:a)!=null?x:!1),v=h.useCallback(C=>{b(C),c==null||c(C)},[c]);return g.createElement($7,E({delay:l,closeDelay:s,isOpen:u!=null?u:S,onOpenChange:v,trigger:e?"focus":void 0},d),g.createElement(bL,null,g.cloneElement(y,{"aria-describedby":null})),g.createElement(w7,E({"data-testid":"tooltip",placement:m,offset:r,onOpenChange:v,style:{outline:"none"}},d),n))},FS=({children:e,disableAllTooltips:t,shortcut:r,tooltip:n})=>{let o=h.useMemo(()=>{var a;let i=((a=document==null?void 0:document.body)==null?void 0:a.getAttribute("data-shortcuts-enabled"))!=="false";if(!(!n&&(!r||!i)))return[n,r&&i&&`[${S4(r)}]`].filter(Boolean).join(" ")},[r,n]);return o?g.createElement(Kf,{placement:"top",tooltip:g.createElement(VE,{note:o}),visible:t?!1:void 0},e):g.createElement(g.Fragment,null,e)};FS.displayName="InteractiveTooltipWrapper";function A7(e=""){let t=e.toLowerCase().trim().replace(/\s+/g,"-");return{ariaDescriptionAttrs:{"aria-describedby":e?t:void 0},AriaDescription:()=>e?g.createElement("span",{id:t,hidden:!0},e):null}}var Pe=h.forwardRef((b,S)=>{var v=b,{as:e="button",asChild:t=!1,animation:r="none",size:n="small",variant:o="outline",padding:i="medium",disabled:a=!1,readOnly:l=!1,active:s,onClick:u,ariaLabel:c,ariaDescription:d=void 0,tooltip:f=void 0,shortcut:p=void 0,disableAllTooltips:m=!1}=v,y=G(v,["as","asChild","animation","size","variant","padding","disabled","readOnly","active","onClick","ariaLabel","ariaDescription","tooltip","shortcut","disableAllTooltips"]);let x=t?Q8:e,C;!l&&(c===void 0||c==="")&&(C="ariaLabel",Nc(`The 'ariaLabel' prop on 'Button' will become mandatory in Storybook 11. Buttons with text content should set 'ariaLabel={false}' to indicate that they are accessible as-is. Buttons without text content must provide a meaningful 'ariaLabel' for accessibility. The button content is: ${y.children}.`)),s!==void 0&&(C="active",Nc("The `active` prop on `Button` is deprecated and will be removed in Storybook 11. Use specialized components like `ToggleButton` or `Select` instead."));let{ariaDescriptionAttrs:A,AriaDescription:$}=A7(d),w=h.useMemo(()=>p?x4(p):void 0,[p]),[_,O]=h.useState(!1),T=I=>{u&&u(I),r!=="none"&&O(!0)};return h.useEffect(()=>{let I=setTimeout(()=>{_&&O(!1)},1e3);return()=>clearTimeout(I)},[_]),g.createElement(g.Fragment,null,g.createElement(FS,{disableAllTooltips:m,shortcut:p,tooltip:f||(c!==!1?c:void 0)},g.createElement(O7,E(E({"data-deprecated":C,as:x,ref:S,variant:o,size:n,padding:i,disabled:a||l,readOnly:l,active:s,animating:_,animation:r,onClick:T,"aria-label":!l&&c!==!1?c:void 0,"aria-keyshortcuts":l?void 0:w},l?{}:A),y))),g.createElement($,null))});Pe.displayName="Button";var O7=N("button",{shouldForwardProp:e=>rl(e)})(({theme:e,variant:t,size:r,disabled:n,readOnly:o,active:i,animating:a,animation:l="none",padding:s})=>P(E({border:0,cursor:o?"inherit":n?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:s==="none"?0:s==="small"&&r==="small"?"0 7px":s==="small"&&r==="medium"?"0 9px":r==="small"?"0 10px":r==="medium"?"0 12px":0,height:r==="small"?"28px":"32px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:n&&!o?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:"1",background:t==="solid"?e.base==="light"?e.color.secondary:Ze(.18,e.color.secondary):t==="outline"?e.button.background:t==="ghost"&&i?vr(.93,e.barSelectedColor):"transparent",color:t==="solid"?e.color.lightest:t==="outline"?e.input.color:t==="ghost"&&i?e.base==="light"?Ze(.1,e.color.secondary):e.color.secondary:t==="ghost"?e.textMutedColor:e.input.color,boxShadow:t==="outline"?`${e.button.border} 0 0 0 1px inset`:"none",borderRadius:e.input.borderRadius,flexShrink:0},!o&&{"&:hover":{color:t==="ghost"?e.color.secondary:void 0,background:(()=>{let u=e.color.secondary;return t==="solid"&&(u=e.base==="light"?ta(.1,e.color.secondary):Ze(.3,e.color.secondary)),t==="outline"&&(u=e.button.background),t==="ghost"?vr(.86,e.color.secondary):e.base==="light"?Ze(.02,u):ta(.03,u)})()},"&:active":{color:t==="ghost"?e.color.secondary:void 0,background:(()=>{let u=e.color.secondary;return t==="solid"&&(u=e.color.secondary),t==="outline"&&(u=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?Ze(.02,u):ta(.03,u)})()},"&:focus-visible":{outline:`2px solid ${ln(e.color.secondary,1)}`,outlineOffset:2,zIndex:"1"},".sb-bar &:focus-visible, .sb-list &:focus-visible":{outlineOffset:0}}),{"> svg":{flex:"0 0 auto",animation:a&&l!=="none"?`${e.animation[l]} 1000ms ease-out`:""}})),LS=h.forwardRef((e,t)=>(Nc("`IconButton` is deprecated and will be removed in Storybook 11, use `Button` instead."),g.createElement(Pe,P(E({ref:t},e),{"data-deprecated":"IconButton"}))));LS.displayName="IconButton";var Cl=h.forwardRef((n,r)=>{var o=n,{pressed:e}=o,t=G(o,["pressed"]);return g.createElement(R7,E({role:"switch","aria-checked":e,ref:r,pressed:e},t))});Cl.displayName="ToggleButton";var R7=N(Pe)(({theme:e,variant:t="outline",pressed:r})=>E({},r?E(E(E({},t==="solid"?{background:e.base==="lighten"?Ze(.1,e.color.secondary):Ze(.2,e.color.secondary)}:{}),t==="outline"?{background:vr(.94,e.barSelectedColor),boxShadow:`${e.barSelectedColor} 0 0 0 1px inset`,color:e.barSelectedColor}:{}),t==="ghost"?{background:vr(.93,e.barSelectedColor),color:e.base==="light"?Ze(.1,e.color.secondary):e.color.secondary}:{}):{})),kS=N.li(({active:e,theme:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",flex:"0 0 auto",overflow:"hidden",gap:4,fontSize:t.typography.size.s1,fontWeight:e?t.typography.weight.bold:t.typography.weight.regular,color:e?t.color.secondary:t.color.defaultText,"--listbox-item-muted-color":e?t.color.secondary:t.color.mediumdark,"&:not(:hover, :has(:focus-visible)) svg + input":{position:"absolute",opacity:0},"@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transition:"all var(--transition-duration, 0.2s)",transitionBehavior:"allow-discrete"},"@media (prefers-reduced-motion: reduce)":{transition:"none"}}),({transitionStatus:e})=>{switch(e){case"preEnter":case"exiting":case"exited":return{opacity:0,blockSize:0,contentVisibility:"hidden"};default:return{opacity:1,blockSize:"auto",contentVisibility:"visible"}}}),D7=N(kS)(({targetId:e})=>({gap:0,[`& [data-target-id="${e}"]`]:{inlineSize:"auto",marginLeft:4,opacity:1,"@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transitionProperty:"inline-size, margin-left, opacity, padding-inline",transitionDuration:"var(--transition-duration, 0.2s)"}},[`&:not(:hover, :has(:focus-visible)) [data-target-id="${e}"]`]:{inlineSize:0,marginLeft:0,opacity:0,paddingInline:0}})),P7=N(Pe)({"&:focus-visible":{outlineOffset:-2}}),I7=N(Cl)({"&:focus-visible":{outlineOffset:-2}}),NS=h.forwardRef(function(i,o){var a=i,{padding:e="small",size:t="medium",variant:r="ghost"}=a,n=G(a,["padding","size","variant"]);return g.createElement(P7,P(E({},n),{variant:r,padding:e,size:t,ref:o}))}),F7=h.forwardRef(function(i,o){var a=i,{padding:e="small",size:t="medium",variant:r="ghost"}=a,n=G(a,["padding","size","variant"]);return g.createElement(I7,P(E({},n),{variant:r,padding:e,size:t,ref:o}))}),MS=N(NS)(({theme:e})=>({flex:"0 1 100%",textAlign:"start",justifyContent:"space-between",fontWeight:"inherit",color:"inherit","&:hover":{color:"inherit"},"& input:enabled:focus-visible":{outline:"none"},"&:has(input:focus-visible)":{outline:`2px solid ${e.color.secondary}`,outlineOffset:-2}})),L7=e=>g.createElement(MS,E({as:"a"},e)),k7=N.div({display:"flex",alignItems:"center",gap:8,flexGrow:1,minWidth:0,padding:"8px 0",lineHeight:"16px","& span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"&:first-child":{paddingLeft:8},"&:last-child":{paddingRight:8},"button > &:first-child":{paddingLeft:0},"button > &:last-child":{paddingRight:0}}),N7=N.div({display:"flex",alignItems:"center",justifyContent:"center",flex:"0 0 14px",width:14,height:14,color:"var(--listbox-item-muted-color)"});Object.assign(N.ul(({theme:e,onClick:t})=>({listStyle:"none",margin:0,padding:4,cursor:t?"pointer":"default","& + *":{borderTop:`1px solid ${e.appBorderColor}`}})),{Item:kS,HoverItem:D7,Button:NS,Toggle:F7,Action:MS,Link:L7,Text:k7,Icon:N7});var m0=N.div(({collapsed:e=!1})=>({blockSize:e?0:"auto",contentVisibility:e?"hidden":"visible",transform:e?"translateY(-10px)":"translateY(0)",opacity:e?0:1,overflow:"hidden","@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transition:"all var(--transition-duration, 0.2s)",transitionBehavior:"allow-discrete"},"@media (prefers-reduced-motion: reduce)":{transition:"none"}}));Object.assign(function(a){var l=a,{children:e,summary:t,collapsed:r,disabled:n,state:o}=l,i=G(l,["children","summary","collapsed","disabled","state"]);let s=M7(r,n),u=o||s;return g.createElement(g.Fragment,null,typeof t=="function"?t(u):t,g.createElement(m0,P(E({},i),{id:u.contentId,collapsed:u.isCollapsed,"aria-hidden":u.isCollapsed}),typeof e=="function"?e(u):e))},{Content:m0});var M7=(e,t)=>{let[r,n]=h.useState(!!e);h.useEffect(()=>{e!==void 0&&n(e)},[e]);let o=h.useCallback(a=>{a==null||a.stopPropagation(),t||n(l=>!l)},[t]),i=et();return{contentId:i,isCollapsed:r,isDisabled:!!t,setCollapsed:n,toggleCollapsed:o,toggleProps:{disabled:t,onClick:o,"aria-controls":i,"aria-expanded":!r}}},B7=Ke({"0%":{opacity:0},"5%":{opacity:1},"25%":{opacity:1},"30%":{opacity:0}}),j7=Ke({"0%":{transform:"rotate(0deg)"},"10%":{transform:"rotate(10deg)"},"40%":{transform:"rotate(170deg)"},"50%":{transform:"rotate(180deg)"},"60%":{transform:"rotate(190deg)"},"90%":{transform:"rotate(350deg)"},"100%":{transform:"rotate(360deg)"}}),H7=Ke({to:{backgroundPositionX:"36%"}}),y0=N.div(({theme:e})=>({borderRadius:e.appBorderRadius,backgroundColor:e.background.content,position:"relative"})),b0=N.div(({animation:e="none",color:t,theme:r})=>({position:"relative",width:"100%",padding:1,overflow:"hidden",backgroundColor:r.background.content,borderRadius:r.appBorderRadius+1,boxShadow:`inset 0 0 0 1px ${e==="none"&&t&&r.color[t]||r.appBorderColor}, var(--card-box-shadow, transparent 0 0)`,transition:"box-shadow 1s","@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transition:"all var(--transition-duration, 0.2s), box-shadow 1s",transitionBehavior:"allow-discrete"},"@media (prefers-reduced-motion: reduce)":{transition:"box-shadow 1s"},"&:before":E(E({content:'""',display:e==="none"?"none":"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",opacity:1},e==="rainbow"&&{animation:`${H7} 10s infinite linear, ${B7} 60s infinite linear`,backgroundImage:"linear-gradient(45deg,rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181), rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181))",backgroundSize:"1000%",backgroundPositionX:"100%"}),e==="spin"&&{left:"50%",top:"50%",marginLeft:"calc(max(100vw, 100vh) * -0.5)",marginTop:"calc(max(100vw, 100vh) * -0.5)",height:"max(100vw, 100vh)",width:"max(100vw, 100vh)",animation:`${j7} 3s linear infinite`,backgroundImage:t==="negative"?"conic-gradient(transparent 90deg, #FC521F 150deg, #FFAE00 210deg, transparent 270deg)":"conic-gradient(transparent 90deg, #029CFD 150deg, #37D5D3 210deg, transparent 270deg)"})}));Object.assign(h.forwardRef(function(o,n){var i=o,{outlineAnimation:e="none",outlineColor:t}=i,r=G(i,["outlineAnimation","outlineColor"]);return g.createElement(b0,{animation:e,color:t,ref:n},g.createElement(y0,E({},r)))}),{Content:y0,Outline:b0});const{deprecate:Lu}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var U7=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],BS=e=>({_s:e,status:U7[e],isEnter:e<3,isMounted:e!==6,isResolved:e===2||e>4}),rd=e=>e?6:5,z7=(e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return rd(t)}},K7=e=>typeof e=="object"?[e.enter,e.exit]:[e,e],G7=(e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0),E0=(e,t,r,n,o)=>{clearTimeout(n.current);let i=BS(e);t(i),r.current=i,o&&o({current:i})},W7=({enter:e=!0,exit:t=!0,preEnter:r,preExit:n,timeout:o,initialEntered:i,mountOnEnter:a,unmountOnExit:l,onStateChange:s}={})=>{let[u,c]=h.useState(()=>BS(i?2:rd(a))),d=h.useRef(u),f=h.useRef(),[p,m]=K7(o),y=h.useCallback(()=>{let b=z7(d.current._s,l);b&&E0(b,c,d,f,s)},[s,l]),S=h.useCallback(b=>{let v=C=>{switch(E0(C,c,d,f,s),C){case 1:p>=0&&(f.current=setTimeout(y,p));break;case 4:m>=0&&(f.current=setTimeout(y,m));break;case 0:case 3:f.current=G7(v,C);break}},x=d.current.isEnter;typeof b!="boolean"&&(b=!x),b?!x&&v(e?r?0:1:2):x&&v(t?n?3:4:rd(l))},[y,s,e,t,r,n,p,m,l]);return[u,S,y]};function V7(e){let t=i=>typeof window<"u"?window.matchMedia(i).matches:!1,[r,n]=h.useState(t(e));function o(){n(t(e))}return h.useEffect(()=>{let i=window.matchMedia(e);return o(),i.addEventListener("change",o),()=>{i.removeEventListener("change",o)}},[e]),r}var jS={};qe(jS,{Actions:()=>sN,Close:()=>_l,CloseButton:()=>nN,Col:()=>qS,Container:()=>WS,Content:()=>oN,Description:()=>lN,Dialog:()=>rN,Error:()=>uN,ErrorWrapper:()=>YS,Header:()=>iN,Overlay:()=>GS,Row:()=>VS,Title:()=>aN});const{deprecate:HS}=__STORYBOOK_MODULE_CLIENT_LOGGER__;h.createContext(null);h.createContext(null);h.createContext(null);h.createContext(null);h.createContext(null);var US=h.createContext({}),q7=h.forwardRef(function(e,t){[e,t]=rt(e,t,US);let l=e,{children:r,level:n=3,className:o}=l,i=G(l,["children","level","className"]),a=`h${n}`;return g.createElement(a,P(E({},i),{ref:t,className:o!=null?o:"react-aria-Heading"}),r)}),zS=h.createContext({}),Y7=h.forwardRef(function(e,t){[e,t]=rt(e,t,zS);let o=e,{elementType:r="span"}=o,n=G(o,["elementType"]);return g.createElement(r,P(E({className:"react-aria-Text"},n),{ref:t}))}),KS=Ke({from:{opacity:0},to:{opacity:1}}),X7=Ke({from:{opacity:1},to:{opacity:0}}),J7=Ke({from:{maxHeight:0},to:{}}),Z7=Ke({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),Q7=Ke({from:{opacity:1,transform:"translate(-50%, -50%) scale(1)"},to:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"}}),eN=Ke({from:{opacity:0,maxHeight:"0px"},to:{opacity:1,maxHeight:"80vh"}}),tN=Ke({from:{opacity:1,maxHeight:"80vh"},to:{opacity:0,maxHeight:"0px"}}),GS=N.div(({$status:e,$transitionDuration:t})=>({backdropFilter:"blur(24px)",background:"rgba(0, 0, 0, 0.4)",position:"absolute",inset:0,width:"100%",height:"100%",zIndex:90,"@media (prefers-reduced-motion: no-preference)":{animation:e==="exiting"||e==="preExit"?`${X7} ${t}ms`:`${KS} ${t}ms`,animationFillMode:"forwards"}})),WS=N.div(({theme:e})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:"0px 4px 67px 0px #00000040",position:"absolute",overflow:"auto",zIndex:100,"&:focus-visible":{outline:"none"}}),({width:e,height:t,$variant:r,$status:n,$transitionDuration:o})=>r==="dialog"?{top:"50%",left:"50%",width:e!=null?e:740,height:t!=null?t:"auto",maxWidth:"calc(100% - 40px)",maxHeight:"85vh","@media (prefers-reduced-motion: no-preference)":{willChange:"transform, opacity",animationTimingFunction:"cubic-bezier(0.32, 0.72, 0, 1)",animation:n==="exiting"||n==="preExit"?`${Q7} ${o}ms`:`${Z7} ${o}ms`,animationFillMode:"forwards !important"},"@media (prefers-reduced-motion: reduce)":{transform:"translate(-50%, -50%) scale(1)"}}:{bottom:"0",left:"0",right:"0",width:e!=null?e:"100%",height:t!=null?t:"80%",maxWidth:"100%","@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords"},"@media (prefers-reduced-motion: no-preference)":{animationTimingFunction:"cubic-bezier(.9,.16,.77,.64)",animation:n==="exiting"||n==="preExit"?`${tN} ${o}ms`:`${eN} ${o}ms`,animationFillMode:"forwards !important"}}),_l=o=>{var i=o,{asChild:e,children:t,onClick:r}=i,n=G(i,["asChild","children","onClick"]);let{close:a}=h.useContext(XS);if(e&&g.isValidElement(t)){let l=s=>{var u,c;r==null||r(s),(c=(u=t.props).onClick)==null||c.call(u,s),a==null||a()};return g.cloneElement(t,P(E({},n),{onClick:l}))}return g.createElement(Pe,{padding:"small",ariaLabel:"Close modal",variant:"ghost",shortcut:["Escape"],onClick:a},g.createElement(v1,null))},rN={Close:()=>(HS("Modal.Dialog.Close is deprecated, please use Modal.Close instead."),g.createElement(_l,{"data-deprecated":"Modal.Dialog.Close"}))},nN=r=>{var n=r,{ariaLabel:e}=n,t=G(n,["ariaLabel"]);return HS("Modal.CloseButton is deprecated, please use Modal.Close instead."),g.createElement(_l,{asChild:!0},g.createElement(Pe,E({ariaLabel:e||"Close","data-deprecated":"Modal.CloseButton"},t),g.createElement(v1,null)))},oN=N.div({display:"flex",flexDirection:"column",margin:16,gap:16}),VS=N.div({display:"flex",justifyContent:"space-between",gap:16}),qS=N.div({display:"flex",flexDirection:"column",gap:4}),iN=n=>{var o=n,{hasClose:e=!0,onClose:t}=o,r=G(o,["hasClose","onClose"]);return g.createElement(VS,null,g.createElement(qS,E({},r)),e&&g.createElement(_l,{onClick:t}))},aN=N(e=>g.createElement(q7,E({level:2},e)))(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),lN=N(Y7)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),sN=N.div({display:"flex",flexDirection:"row-reverse",gap:8}),YS=N.div(({theme:e})=>({maxHeight:100,overflow:"auto","@media (prefers-reduced-motion: no-preference)":{animation:`${J7} 300ms, ${KS} 300ms`},backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),uN=r=>{var n=r,{children:e}=n,t=G(n,["children"]);return g.createElement(YS,E({},t),g.createElement("div",null,e))},XS=h.createContext({});function cN(b){var v=b,{container:e,portalSelector:t,children:r,width:n,height:o,ariaLabel:i,dismissOnClickOutside:a=!0,dismissOnEscape:l=!0,className:s,open:u,onEscapeKeyDown:c,onInteractOutside:d,onOpenChange:f,defaultOpen:p,transitionDuration:m=200,variant:y="dialog"}=v,S=G(v,["container","portalSelector","children","width","height","ariaLabel","dismissOnClickOutside","dismissOnEscape","className","open","onEscapeKeyDown","onInteractOutside","onOpenChange","defaultOpen","transitionDuration","variant"]);let x;(i===void 0||i==="")&&(x="ariaLabel",Lu("The `ariaLabel` prop on `Modal` will become mandatory in Storybook 11.")),c!==void 0&&(x="onEscapeKeyDown",Lu("The `onEscapeKeyDown` prop is deprecated and will be removed in Storybook 11. Use `dismissOnEscape` instead.")),d!==void 0&&(x="onInteractOutside",Lu("The `onInteractOutside` prop is deprecated and will be removed in Storybook 11. Use `dismissOnInteractOutside` instead."));let C=h.useRef(null),A=V7("(prefers-reduced-motion: reduce)"),[{status:$,isMounted:w},_]=W7({timeout:A?0:m,mountOnEnter:!0,unmountOnExit:!0}),O=gi({isOpen:u||w,defaultOpen:p,onOpenChange:R=>{_(R),f==null||f(R)}}),T=()=>{O.close()},{modalProps:I,underlayProps:D}=v7({isDismissable:a,isKeyboardDismissDisabled:!0,shouldCloseOnInteractOutside:d?R=>{let j=new MouseEvent("click",{bubbles:!0,cancelable:!0,relatedTarget:R});return d(j),!j.defaultPrevented}:void 0},O,C);if(h.useEffect(()=>{var j;let R=(j=u!=null?u:p)!=null?j:!1;R&&!w?_(!0):!R&&w&&_(!1)},[u,p,w,_]),h.useEffect(()=>{w&&(u||p)&&(f==null||f(!0))},[w]),h.useEffect(()=>{if(w&&(u||p)&&C.current)return wl([C.current],{shouldUseInert:!0})},[w,u,p,C]),!w||$==="exited"||$==="unmounted")return null;let M=le(I,{onKeyDown:R=>{var j;R.key!=="Escape"?(j=I.onKeyDown)==null||j.call(I,R):l&&(c==null||c(R.nativeEvent),R.nativeEvent.defaultPrevented||T())}}),k=e!=null?e:t?document.querySelector(t):void 0;return g.createElement(La,{disableFocusManagement:!0,portalContainer:k||void 0},g.createElement(jf,{restoreFocus:!0,contain:!0,autoFocus:!0},g.createElement(GS,E({$status:$,$transitionDuration:m},D)),g.createElement("div",E({role:"dialog","aria-label":i,ref:C},M),g.createElement(XS.Provider,{value:{close:T}},g.createElement(WS,E({"data-deprecated":x,$variant:y,$status:$,$transitionDuration:m,className:s,width:n,height:o},S),r)))))}Object.assign(cN,jS);N.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${Sa}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${Sa}`]:{marginTop:0}},({theme:e,outer:t,col:r,row:n})=>{switch(!0){case!!(t&&r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&n):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}});N.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));N.div();N.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1}));function dN(e,t){var r=h.useRef(null),n=h.useRef(null);n.current=t;var o=h.useRef(null);h.useEffect(function(){i()});var i=h.useCallback(function(){var a=o.current,l=n.current,s=a||(l?l instanceof Element?l:l.current:null);r.current&&r.current.element===s&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:s,subscriber:e,cleanup:s?e(s):void 0})},[e]);return h.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),h.useCallback(function(a){o.current=a,i()},[i])}function v0(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:t==="contentBoxSize"?e.contentRect[r==="inlineSize"?"width":"height"]:void 0}function JS(e){e===void 0&&(e={});var t=e.onResize,r=h.useRef(void 0);r.current=t;var n=e.round||Math.round,o=h.useRef(),i=h.useState({width:void 0,height:void 0}),a=i[0],l=i[1],s=h.useRef(!1);h.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var u=h.useRef({width:void 0,height:void 0}),c=dN(h.useCallback(function(d){return(!o.current||o.current.box!==e.box||o.current.round!==n)&&(o.current={box:e.box,round:n,instance:new ResizeObserver(function(f){var p=f[0],m=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",y=v0(p,m,"inlineSize"),S=v0(p,m,"blockSize"),b=y?n(y):void 0,v=S?n(S):void 0;if(u.current.width!==b||u.current.height!==v){var x={width:b,height:v};u.current.width=b,u.current.height=v,r.current?r.current(x):s.current||l(x)}})}),o.current.instance.observe(d,{box:e.box}),function(){o.current&&o.current.instance.unobserve(d)}},[e.box,n]),e.ref);return h.useMemo(function(){return{ref:c,width:a.width,height:a.height}},[c,a.width,a.height])}var fN=N.div(({centered:e=!1,scale:t=1,elementHeight:r})=>({height:r||"auto",transformOrigin:e?"center top":"left top",transform:`scale(${1/t})`}));function pN({centered:e,scale:t,children:r}){let n=h.useRef(null),[o,i]=h.useState(0),a=h.useCallback(({height:l})=>{l&&i(l/t)},[t]);return h.useEffect(()=>{n.current&&i(n.current.getBoundingClientRect().height)},[t]),JS({ref:n,onResize:a}),g.createElement(fN,{centered:e,scale:t,elementHeight:o},g.createElement("div",{ref:n,className:"innerZoomElementWrapper"},r))}var ZS={Element:pN};const{global:hN}=__STORYBOOK_MODULE_GLOBAL__;var{document:gN}=hN,mN=N.strong(({theme:e})=>({color:e.color.orange})),yN=N.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),S0=N.em(({theme:e})=>({color:e.textMutedColor})),bN=/(Error): (.*)\n/,EN=/at (?:(.*) )?\(?(.+)\)?/,vN=/([^@]+)?(?:\/<)?@(.+)?/,SN=/([^@]+)?@(.+)?/,QS=({error:e})=>{if(!e)return g.createElement(h.Fragment,null,"This error has no stack or message");if(!e.stack)return g.createElement(h.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message}
|
|
668
|
+
|
|
669
|
+
${t}`);let r=t.match(bN);if(!r)return g.createElement(h.Fragment,null,t);let[,n,o]=r,i=t.split(/\n/).slice(1),[,...a]=i.map(l=>{let s=l.match(EN)||l.match(vN)||l.match(SN);return s?{name:(s[1]||"").replace("/<",""),location:s[2].replace(gN.location.origin,"")}:null}).filter(Boolean);return g.createElement(h.Fragment,null,g.createElement("span",null,n),": ",g.createElement(mN,null,o),g.createElement("br",null),a.map((l,s)=>l!=null&&l.name?g.createElement(h.Fragment,{key:s}," ","at ",g.createElement(yN,null,l.name)," (",g.createElement(S0,null,l.location),")",g.createElement("br",null)):g.createElement(h.Fragment,{key:s}," ","at ",g.createElement(S0,null,l==null?void 0:l.location),g.createElement("br",null))))},xN=N.input(({theme:e})=>({appearance:"none",backgroundColor:e.input.background,border:`1px solid ${e.base==="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,borderRadius:2,display:"grid",flexShrink:0,height:14,margin:0,placeContent:"center",transition:"background-color 0.1s",width:14,"&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:"transparent",borderColor:e.input.border},"&:disabled:checked, &:disabled:indeterminate":{backgroundColor:e.base==="dark"?Q.dark:e.color.mediumdark},"&:checked, &:indeterminate":{border:"none",backgroundColor:Q.secondary},"&:checked::before":{content:'""',width:14,height:14,background:`no-repeat center url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='m3 7 2.5 2.5L11 4'/%3E%3C/svg%3E")`},"&:indeterminate::before":{content:'""',width:8,height:2,background:"white"},"&:enabled:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:2}})),$N=e=>g.createElement(xN,P(E({},e),{type:"checkbox"})),wN=N.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),CN=N.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),_N=n=>{var o=n,{label:e,children:t}=o,r=G(o,["label","children"]);return g.createElement(wN,E({},r),e?g.createElement(CN,null,g.createElement("span",null,e)):null,t)},Gf=(({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};default:return{display:"inline"}}}),ex=(({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};default:return{textAlign:"left"}}}),tx=(({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};default:return{}}}),TN={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},rx=(({theme:e})=>P(E({},TN),{transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none","@media (forced-colors: active)":{outline:"1px solid highlight"}},"&[disabled]":{background:e.base==="light"?e.color.lighter:"transparent"},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}})),AN=Object.assign(N(h.forwardRef(function(i,o){var a=i,{size:e,valid:t,align:r}=a,n=G(a,["size","valid","align"]);return g.createElement("input",P(E({},n),{ref:o}))}))(rx,Gf,ex,tx,{minHeight:32}),{displayName:"Input"}),ON=N.input(({theme:e})=>({appearance:"none",backgroundColor:e.input.background,border:`1px solid ${e.base==="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,borderRadius:8,display:"grid",flexShrink:0,height:16,margin:-1,placeContent:"center",transition:"background-color 0.1s",width:16,"&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:"transparent",borderColor:e.input.border},"&:disabled:checked":{backgroundColor:e.base==="dark"?Q.dark:e.color.mediumdark,borderColor:e.base==="dark"?Q.dark:e.color.mediumdark},"&:checked":{backgroundColor:Q.secondary,borderColor:Q.secondary,boxShadow:`inset 0 0 0 2px ${e.input.background}`},"&:enabled:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:2}})),RN=e=>g.createElement(ON,P(E({},e),{type:"radio"})),DN=N.select(Gf,({theme:e})=>({appearance:"none",background:`calc(100% - 12px) center no-repeat url("data:image/svg+xml,%3Csvg width='8' height='4' viewBox='0 0 8 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.30303 0.196815C1.13566 0.0294472 0.864304 0.0294472 0.696937 0.196815C0.529569 0.364182 0.529569 0.635539 0.696937 0.802906L3.69694 3.80291C3.8643 3.97027 4.13566 3.97027 4.30303 3.80291L7.30303 0.802906C7.4704 0.635539 7.4704 0.364182 7.30303 0.196815C7.13566 0.0294473 6.8643 0.0294473 6.69694 0.196815L3.99998 2.89377L1.30303 0.196815Z' fill='%2373828C'/%3E%3C/svg%3E%0A")`,backgroundSize:10,padding:"6px 30px 6px 10px","@supports (appearance: base-select)":{appearance:"base-select",background:e.input.background,padding:"6px 10px"},transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",boxSizing:"border-box",border:"none",cursor:"pointer","& > button":{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",gap:8,"& > svg":{width:14,height:14,color:e.textMutedColor}},"&:has(option:not([hidden]):checked)":{color:e.color.defaultText},"&:focus-visible, &:focus-within":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset`},"&::picker-icon":{display:"none"},"&::picker(select)":{appearance:"base-select",border:"1px solid #e4e4e7",padding:4,marginTop:4,background:e.base==="light"?Ld(e.background.app):e.background.app,filter:`
|
|
670
|
+
drop-shadow(0 5px 5px rgba(0,0,0,0.05))
|
|
671
|
+
drop-shadow(0 0 3px rgba(0,0,0,0.1))
|
|
672
|
+
`,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1,cursor:"default",transition:"opacity 100ms ease-in-out, transform 100ms ease-in-out",transformOrigin:"top",transform:"translateY(0)",opacity:1,"@starting-style":{transform:"translateY(-0.25rem) scale(0.95)",opacity:0}},"& optgroup label":{display:"block",padding:"3px 6px"},"& option":{lineHeight:"18px",padding:"7px 10px",borderRadius:4,outline:"none",cursor:"pointer",color:e.color.defaultText,"&::checkmark":{display:"none"},"&:hover, &:focus-visible":{backgroundColor:e.background.hoverable},"&:checked":{color:e.color.secondary,fontWeight:e.typography.weight.bold},"&:disabled":{backgroundColor:"transparent",cursor:"default",color:e.color.defaultText}}})),PN=r=>{var n=r,{children:e}=n,t=G(n,["children"]);return g.createElement(DN,E({},t),!tC()&&g.createElement("button",null,g.createElement("selectedcontent",null),g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},g.createElement("path",{d:"m6 9 6 6 6-6"}))),g.createElement("optgroup",null,e))},IN=h.useLayoutEffect,FN=function(e){var t=g.useRef(e);return IN(function(){t.current=e}),t},x0=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},LN=function(e,t){var r=g.useRef();return g.useCallback(function(n){e.current=n,r.current&&x0(r.current,null),r.current=t,t&&x0(t,n)},[t])},$0={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},kN=function(e){Object.keys($0).forEach(function(t){e.style.setProperty(t,$0[t],"important")})},w0=kN,it=null,C0=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function NN(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),it||(it=document.createElement("textarea"),it.setAttribute("tabindex","-1"),it.setAttribute("aria-hidden","true"),w0(it)),it.parentNode===null&&document.body.appendChild(it);var o=e.paddingSize,i=e.borderSize,a=e.sizingStyle,l=a.boxSizing;Object.keys(a).forEach(function(f){var p=f;it.style[p]=a[p]}),w0(it),it.value=t;var s=C0(it,e);it.value=t,s=C0(it,e),it.value="x";var u=it.scrollHeight-o,c=u*r;l==="border-box"&&(c=c+o+i),s=Math.max(c,s);var d=u*n;return l==="border-box"&&(d=d+o+i),s=Math.min(d,s),[s,u]}var _0=function(){},MN=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},BN=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],jN=!!document.documentElement.currentStyle,HN=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=MN(BN,t),n=r.boxSizing;if(n==="")return null;jN&&n==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var o=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),i=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:o,borderSize:i}},UN=HN;function Wf(e,t,r){var n=FN(r);h.useLayoutEffect(function(){var o=function(i){return n.current(i)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var zN=function(e,t){Wf(document.body,"reset",function(r){e.current.form===r.target&&t(r)})},KN=function(e){Wf(window,"resize",e)},GN=function(e){Wf(document.fonts,"loadingdone",e)},WN=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],VN=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,o=e.minRows,i=e.onChange,a=i===void 0?_0:i,l=e.onHeightChange,s=l===void 0?_0:l,u=L5(e,WN),c=u.value!==void 0,d=h.useRef(null),f=LN(d,t),p=h.useRef(0),m=h.useRef(),y=function(){var b=d.current,v=r&&m.current?m.current:UN(b);if(v){m.current=v;var x=NN(v,b.value||b.placeholder||"x",o,n),C=x[0],A=x[1];p.current!==C&&(p.current=C,b.style.setProperty("height",C+"px","important"),s(C,{rowHeight:A}))}},S=function(b){c||y(),a(b)};return h.useLayoutEffect(y),zN(d,function(){if(!c){var b=d.current.value;requestAnimationFrame(function(){var v=d.current;v&&b!==v.value&&y()})}}),KN(y),GN(y),h.createElement("textarea",Ve({},u,{onChange:S,ref:f}))},qN=h.forwardRef(VN),YN=Object.assign(N(h.forwardRef(function(i,o){var a=i,{size:e,valid:t,align:r}=a,n=G(a,["size","valid","align"]);return g.createElement(qN,P(E({},n),{ref:o}))}))(rx,Gf,ex,tx,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),bn=Object.assign(N.form({boxSizing:"border-box",width:"100%"}),{Field:_N,Input:AN,Select:PN,Textarea:YN,Button:Pe,Checkbox:$N,Radio:RN}),XN=N.div(({hasCloseButton:e,padding:t})=>({display:"inline-block",position:"relative",minHeight:e?36:void 0,zIndex:2147483647,colorScheme:"light dark",padding:t}),({theme:e,hasChrome:t})=>t?{filter:`
|
|
673
|
+
drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
|
|
674
|
+
drop-shadow(0 1px 3px rgba(0,0,0,0.1))
|
|
675
|
+
`,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t==="default"&&{background:e.base==="light"?Ld(e.background.app):e.background.app,color:e.color.defaultText},({theme:e,bgColor:t})=>t==="inverse"&&{background:e.base==="light"?e.color.darkest:e.color.lightest,color:e.color.inverseText},({theme:e,bgColor:t})=>(t==="positive"||t==="negative"||t==="warning")&&{background:e.background[t],color:e.color[`${t}Text`]}),JN=N(Pe)({position:"absolute",top:4,right:4}),mi=h.forwardRef((s,l)=>{var u=s,{children:e,color:t="default",hasChrome:r=!0,hideLabel:n="Close",onHide:o,padding:i=8}=u,a=G(u,["children","color","hasChrome","hideLabel","onHide","padding"]);return g.createElement(XN,E({bgColor:t,hasChrome:r,hasCloseButton:!!o,padding:i,ref:l},a),e,o&&g.createElement(JN,{ariaLabel:n,onClick:o,padding:"small",variant:"ghost",size:"small"},g.createElement(U5,null)))});mi.displayName="Popover";var ZN=N("li")(({theme:e})=>({padding:"6px 12px",fontSize:12,lineHeight:1.5,background:"transparent",color:e.color.defaultText,cursor:"pointer",borderRadius:4,'&[aria-disabled="true"]':{opacity:.5,cursor:"not-allowed"},'&[aria-selected="true"]':{color:e.base==="light"?Ze(.1,e.color.secondary):e.color.secondary,fontWeight:e.typography.weight.bold},":hover":{background:vr(.93,e.color.secondary)},":focus-visible":{background:e.background.hoverable,outline:`2px solid ${e.barSelectedColor}`,outlineOffset:1,borderRadius:2},display:"flex",alignItems:"flex-start",gap:8})),QN=N("div")({display:"flex",flexDirection:"row",gap:4,alignItems:"center"}),e9=N("div")({display:"flex",flexDirection:"column",flexGrow:1}),t9=N("span")(()=>({display:"block",height:"1rem",width:"1rem"})),r9=N("span")(({})=>({})),n9=N("span")(({theme:e})=>({fontSize:11,color:e.textMutedColor})),nx=f=>{var p=f,{id:e,title:t,description:r,icon:n,children:o,isSelected:i,isActive:a,onClick:l,onFocus:s,onKeyDown:u,shouldLookDisabled:c=!1}=p,d=G(p,["id","title","description","icon","children","isSelected","isActive","onClick","onFocus","onKeyDown","shouldLookDisabled"]);return g.createElement(ZN,P(E({},d),{id:e,role:"option",tabIndex:a?0:-1,"aria-selected":i,"aria-disabled":c?!0:void 0,onClick:l,onFocus:s,onKeyDown:u}),o!=null?o:g.createElement(QN,null,n&&g.createElement(t9,null,n),g.createElement(e9,null,g.createElement(r9,null,t),r&&g.createElement(n9,null,r))))};nx.displayName="SelectOption";var Ki=5,ox=Symbol.for("undefined");function o9(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"}function nd(e){return P(E({},e),{type:"option",value:fa(e.value)})}function ku(e){return"type"in e&&e.type==="reset"?e:nd(e)}function wo(e){if(e!==ox)return e}function fa(e){return e===void 0?ox:e}var i9=N("ul")({minWidth:180,height:"100%",borderRadius:6,overflow:"hidden auto",listStyle:"none",margin:0,padding:4});function T0(e,{value:t}){var r;return`${e}-opt-${(r=String(t))!=null?r:"sb-reset"}`}var a9=N.span(({theme:e})=>({appearance:"none",color:e.textMutedColor,fontSize:12}));function A0(e,t){return t===void 0?[]:o9(t)?e.filter(r=>r.value===t).map(nd):e.filter(r=>t.some(n=>r.value===n)).map(nd)}var l9=N(Pe)(({$isOpen:e,$hasSelection:t,theme:r})=>e||t?{boxShadow:"none",background:vr(.93,r.barSelectedColor),color:r.base==="light"?Ze(.1,r.color.secondary):r.color.secondary}:{}),s9=N.div({position:"fixed",inset:0,zIndex:1e3}),u9=({children:e,handleClose:t,triggerRef:r})=>{let n=g.useRef(null);bv({ref:n,onInteractOutside:t}),h.useEffect(()=>{if(n.current)return wl([n.current],{shouldUseInert:!0})},[]);let{overlayProps:o}=Bf({targetRef:r,overlayRef:n,placement:"bottom start",offset:8,maxHeight:504,isOpen:!0}),{overlayProps:i,underlayProps:a}=Hf({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},n),l=el();return o.style=P(E({},o.style),{overflow:"hidden auto",scrollbarColor:`${l.barTextColor} transparent`,scrollbarWidth:"thin"}),g.createElement(La,E({disableFocusManagement:!0},i),g.createElement(s9,E({},a)),g.createElement(mi,E({hasChrome:!0,ref:n,padding:0},o),e))},ix=h.forwardRef((S,y)=>{var b=S,{children:e,icon:t,disabled:r=!1,options:n,defaultOptions:o,multiSelect:i=!1,onReset:a,padding:l="small",resetLabel:s,onSelect:u,onDeselect:c,onChange:d,tooltip:f,ariaLabel:p}=b,m=G(b,["children","icon","disabled","options","defaultOptions","multiSelect","onReset","padding","resetLabel","onSelect","onDeselect","onChange","tooltip","ariaLabel"]);var W,V;let[v,x]=h.useState(m.defaultOpen||!1),C=Wt(y),A=h.useMemo(()=>"select-"+Math.random().toString(36).substring(2,15),[]),$=`${A}-listbox`,w=h.useRef(null),_=gi({isOpen:v&&!r,onOpenChange:x}),O=h.useCallback(()=>{var K;x(!1),(K=C.current)==null||K.focus()},[C]),[T,I]=h.useState(A0(n,o)),D=h.useCallback(K=>{K.type==="reset"?T.length&&(d==null||d([]),a==null||a(),I([])):I(i?q=>{var te;let X=[];return q!=null&&q.some(J=>J.value===K.value)?(c==null||c(wo(K.value)),X=(te=q==null?void 0:q.filter(J=>J.value!==K.value))!=null?te:[]):(u==null||u(wo(K.value)),X=[...q!=null?q:[],K]),d==null||d(X.map(J=>wo(J.value))),X}:q=>q.every(X=>X.value!==K.value)?(u==null||u(wo(K.value)),d==null||d([wo(K.value)]),[K]):q)},[i,d,u,c,a,T]),M=h.useMemo(()=>a?{type:"reset",value:void 0,title:s!=null?s:"Reset selection",icon:g.createElement(J5,null),description:void 0,children:void 0}:void 0,[a,s]),k=h.useMemo(()=>M?[M,...n]:n,[n,M]);h.useEffect(()=>{o&&I(A0(n,o))},[o,n]);let[R,j]=h.useState(void 0),L=h.useCallback(K=>{j(ku(K)),i||D(ku(K))},[i,D]),z=h.useCallback((K=1)=>{if(!v||!R){L(k[K===1?0:Math.min(K,k.length-1)]);return}let q=k.findIndex(J=>R.type==="reset"?"type"in J&&J.type==="reset":fa(J.value)===R.value),X=q+K,te;X>=k.length&&q===k.length-1?te=k[0]:te=k[Math.min(k.length-1,X)],L(te)},[v,R,L,k]),U=h.useCallback((K=1)=>{if(!v||!R){L(k[Math.max(0,k.length-K)]);return}let q=k.findIndex(J=>R.type==="reset"?"type"in J&&J.type==="reset":fa(J.value)===R.value),X=q-K,te;X<0&&q===0?te=k[k.length-1]:te=k[Math.max(0,X)],L(te)},[v,R,L,k]),B=h.useCallback(K=>{let q=re=>{K.preventDefault(),L(k[re]),x(!0)},X=k.findIndex(re=>T.some(Y=>Y.value===fa(re.value))),te=X!==-1,J=M&&!te?1:0,Oe=k.length-1;K.key==="Enter"||K.key===" "?q(te?Math.min(X,Oe):J):K.key==="ArrowDown"?q(te?Math.min(X+1,Oe):J):K.key==="ArrowUp"?q(te?Math.max(X-1,J):Oe):K.key==="Home"?q(J):K.key==="End"?q(Oe):K.key==="PageDown"?q(Math.min((te?X:J)+Ki,Oe)):K.key==="PageUp"&&q(Math.max(0,(te?X:Oe)-Ki))},[k,M,L,T]),F=h.useCallback(K=>{K.key!=="Tab"?K.preventDefault():O(),K.key==="Escape"?O():K.key==="ArrowDown"?z():K.key==="ArrowUp"?U():K.key==="Home"?L(k[0]):K.key==="End"?L(k[k.length-1]):K.key==="PageDown"?z(Ki):K.key==="PageUp"&&U(Ki)},[O,z,U,k,L]);h.useEffect(()=>{var K;if(v&&R){let q=document.getElementById(T0(A,R));q&&(q.scrollIntoView({block:"nearest"}),q.focus())}else v&&((K=w.current)==null||K.focus())},[v,R,A]);let H=h.useMemo(()=>T.length===1?`${p} ${T[0].title}`:T.length?`${p}, ${T.length} values selected`:p,[p,T]);return g.createElement(g.Fragment,null,g.createElement(l9,P(E({},m),{variant:"ghost",ariaLabel:H,tooltip:f!=null?f:p,disableAllTooltips:v,id:A,ref:C,padding:l,$isOpen:v,$hasSelection:!!T.length,"aria-disabled":r,disabled:r,onClick:()=>{v?O():x(!0)},tabIndex:v?-1:0,onKeyDown:B,role:"button","aria-controls":v?$:void 0,"aria-expanded":v,"aria-haspopup":"listbox"}),!i&&g.createElement(g.Fragment,null,t,(V=(W=T[0])==null?void 0:W.title)!=null?V:e),i&&g.createElement(g.Fragment,null,t,e,!!T.length&&g.createElement(a9,{"aria-label":`${T.length} ${T.length>1?"items":"item"} selected`},T==null?void 0:T.length))),_.isOpen&&g.createElement(u9,{handleClose:O,triggerRef:C},g.createElement(i9,{"aria-label":p,role:"listbox",id:$,ref:w,"aria-multiselectable":i,onKeyDown:F,tabIndex:v?0:-1},k.map(K=>({option:ku(K),externalOption:K})).map(({externalOption:K,option:q})=>{let X=(T==null?void 0:T.some(J=>J.value===q.value))&&q!==M,te=q===M;return g.createElement(nx,{key:q.value===void 0?"sb-reset":String(q.value),title:q.title,description:q.description,icon:!te&&i?g.createElement(bn.Checkbox,{checked:X,hidden:!0,role:"presentation"}):q.icon,id:T0(A,q),isActive:v&&(R==null?void 0:R.value)===q.value,isSelected:X,onClick:()=>{D(q),i||O()},onFocus:()=>L(K),shouldLookDisabled:te&&T.length===0&&i,onKeyDown:J=>{J.key==="Enter"||J.key===" "?(J.preventDefault(),D(q),i||O()):J.key==="Tab"&&(i||D(q),O())}},q.children)}))))});ix.displayName="Select";var En=class{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,r){let n=this.clone();return t.addDescendants(n,e),n}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},ax=class extends En{filter(e,t,r){let[n,o]=cx(e,t,this.firstChildKey,r),i=this.clone();return i.firstChildKey=n,i.lastChildKey=o,i}},lx=class extends En{};lx.type="header";var c9=class extends En{};c9.type="loader";var sx=class extends ax{filter(e,t,r){if(r(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};sx.type="item";var ux=class extends ax{filter(e,t,r){let n=super.filter(e,t,r);if(n&&n.lastChildKey!==null){let o=e.getItem(n.lastChildKey);if(o&&o.type!=="header")return n}return null}};ux.type="section";var d9=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let r=t.get(e),n=(r==null?void 0:r.firstChildKey)!=null?t.get(r.firstChildKey):null;for(;n;)yield n,n=n.nextKey!=null?t.get(n.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!=="item"&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!=="item"&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var t;return(t=e==null?void 0:e.key)!==null&&t!==void 0?t:null}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let r=t.getChildren(e.key);for(let n of r)this.addDescendants(n,t)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let t=this.keyMap.get(e);t!=null&&t.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!r}filter(e){let t=new this.constructor,[r,n]=cx(this,t,this.firstKey,e);return t==null||t.commit(r,n),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function cx(e,t,r,n){if(r==null)return[null,null];let o=null,i=null,a=e.getItem(r);for(;a!=null;){let u=a.filter(e,t,n);u!=null&&(u.nextKey=null,i&&(u.prevKey=i.key,i.nextKey=u.key),o==null&&(o=u),t.addNode(u),i=u),a=a.nextKey?e.getItem(a.nextKey):null}if(i&&i.type==="separator"){let u=i.prevKey;t.removeNode(i.key),u?(i=t.getItem(u),i.nextKey=null):i=null}var l,s;return[(l=o==null?void 0:o.key)!==null&&l!==void 0?l:null,(s=i==null?void 0:i.key)!==null&&s!==void 0?s:null]}var dx=class{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}},Nu=class od extends dx{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof od?this.parentNode.level+(((t=this.node)===null||t===void 0?void 0:t.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,r,n,o,i,a,l,s;let u=this.nextVisibleSibling,c=this.getMutableNode();if(c!=null){c.index=this.index,c.level=this.level;var d;c.parentKey=this.parentNode instanceof od&&(d=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&d!==void 0?d:null;var f;c.prevKey=(f=(n=this.previousVisibleSibling)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&f!==void 0?f:null;var p;c.nextKey=(p=u==null||(o=u.node)===null||o===void 0?void 0:o.key)!==null&&p!==void 0?p:null,c.hasChildNodes=!!this.firstChild;var m;c.firstChildKey=(m=(a=this.firstVisibleChild)===null||a===void 0||(i=a.node)===null||i===void 0?void 0:i.key)!==null&&m!==void 0?m:null;var y;if(c.lastChildKey=(y=(s=this.lastVisibleChild)===null||s===void 0||(l=s.node)===null||l===void 0?void 0:l.key)!==null&&y!==void 0?y:null,(c.colSpan!=null||c.colIndex!=null)&&u){var S,b;let v=((S=c.colIndex)!==null&&S!==void 0?S:c.index)+((b=c.colSpan)!==null&&b!==void 0?b:1);if(u.node!=null&&v!==u.node.colIndex){let x=u.getMutableNode();x.colIndex=v}}}}setProps(t,r,n,o,i){let a,d=t,{value:l,textValue:s,id:u}=d,c=G(d,["value","textValue","id"]);if(this.node==null?(a=new n(u!=null?u:`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),c.ref=r,a.props=c,a.rendered=o,a.render=i,a.value=l,a.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",u!=null&&u!==a.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(a.colSpan=c.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(r){let n=r==="none";if(t.isHidden!==n){var o,i;(((o=t.parentNode)===null||o===void 0?void 0:o.firstVisibleChild)===t||((i=t.parentNode)===null||i===void 0?void 0:i.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let a=t.previousVisibleSibling,l=t.nextVisibleSibling;a&&t.ownerDocument.markDirty(a),l&&t.ownerDocument.markDirty(l),t.isHidden=n,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}},f9=class extends dx{get isConnected(){return this.isMounted}createElement(e){return new Nu(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let r of e)this.addNode(r);t.addNode(e.node)}removeNode(e){if(e.node!=null){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key)}}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let a of this.dirtyNodes)a instanceof Nu&&(!a.isConnected||a.isHidden)?this.removeNode(a):a.updateChildIndices();for(let a of this.dirtyNodes)a instanceof Nu&&(a.isConnected&&!a.isHidden&&(a.updateNode(),this.addNode(a)),a.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,r,n,o,i;this.nextCollection.commit((o=(t=this.firstVisibleChild)===null||t===void 0||(e=t.node)===null||e===void 0?void 0:e.key)!==null&&o!==void 0?o:null,(i=(n=this.lastVisibleChild)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&i!==void 0?i:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}};function fx(e){let{children:t,items:r,idScope:n,addIdAndValue:o,dependencies:i=[]}=e,a=h.useMemo(()=>new WeakMap,i);return h.useMemo(()=>{if(r&&typeof t=="function"){let u=[];for(let c of r){let d=a.get(c);if(!d){d=t(c);var l,s;let f=(s=(l=d.props.id)!==null&&l!==void 0?l:c.key)!==null&&s!==void 0?s:c.id;if(f==null)throw new Error("Could not determine key for item");n&&(f=n+":"+f),d=h.cloneElement(d,o?{key:f,id:f,value:c}:{key:f}),a.set(c,d)}u.push(d)}return u}else if(typeof t!="function")return t},[t,r,a,n,o])}if(typeof HTMLTemplateElement<"u"){let e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}var ka=h.createContext(!1);function p9(e){if(h.useContext(ka))return g.createElement(g.Fragment,null,e.children);let t=g.createElement(ka.Provider,{value:!0},e.children);return g.createElement("template",{"data-react-aria-hidden":!0},t)}function Vf(e){let t=(r,n)=>h.useContext(ka)?null:e(r,n);return t.displayName=e.displayName||e.name,h.forwardRef(t)}function h9(){return h.useContext(ka)}var px=h.createContext(!1),Qo=h.createContext(null);function hx(e){if(h.useContext(Qo))return e.content;let{collection:t,document:r}=b9(e.createCollection);return g.createElement(g.Fragment,null,g.createElement(p9,null,g.createElement(Qo.Provider,{value:r},e.content)),g.createElement(g9,{render:e.children,collection:t}))}function g9({collection:e,render:t}){return t(e)}function m9(e,t,r){let n=yn(),o=h.useRef(n);o.current=n;let i=h.useCallback(()=>o.current?r():t(),[t,r]);return F8.useSyncExternalStore(e,i)}var y9=typeof g.useSyncExternalStore=="function"?g.useSyncExternalStore:m9;function b9(e){let[t]=h.useState(()=>new f9((e==null?void 0:e())||new d9)),r=h.useCallback(a=>t.subscribe(a),[t]),n=h.useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=h.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),i=y9(r,n,o);return ge(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:i,document:t}}var id=h.createContext(null);function E9(e){var t;return t=class extends En{},t.type=e,t}function gx(e,t,r,n,o,i){typeof e=="string"&&(e=E9(e));let a=h.useCallback(s=>{s==null||s.setProps(t,r,e,n,i)},[t,r,n,i,e]),l=h.useContext(id);if(l){let s=l.ownerDocument.nodesByProps.get(t);return s||(s=l.ownerDocument.createElement(e.type),s.setProps(t,r,e,n,i),l.appendChild(s),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(t,s)),o?g.createElement(id.Provider,{value:s},o):null}return g.createElement(e.type,{ref:a},o)}function Tl(e,t){let r=({node:o})=>t(o.props,o.props.ref,o),n=h.forwardRef((o,i)=>{let a=h.useContext(Ra);if(!h.useContext(px)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return gx(e,o,i,"children"in o?o.children:null,null,l=>g.createElement(Ra.Provider,{value:a},g.createElement(r,{node:l})))});return n.displayName=t.name,n}function qf(e,t,r=mx){let n=({node:i})=>t(i.props,i.props.ref,i),o=h.forwardRef((i,a)=>{let l=r(i);var s;return(s=gx(e,i,a,null,l,u=>g.createElement(n,{node:u})))!==null&&s!==void 0?s:g.createElement(g.Fragment,null)});return o.displayName=t.name,o}function mx(e){return fx(P(E({},e),{addIdAndValue:!0}))}var O0=h.createContext(null);function yx(e){let t=h.useContext(O0),r=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies),n=e.idScope||(t==null?void 0:t.idScope),o=mx(P(E({},e),{idScope:n,dependencies:r}));return h.useContext(Qo)&&(o=g.createElement(v9,null,o)),t=h.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),g.createElement(O0.Provider,{value:t},o)}function v9({children:e}){let t=h.useContext(Qo),r=h.useMemo(()=>g.createElement(Qo.Provider,{value:null},g.createElement(px.Provider,{value:!0},e)),[e]);return yn()?g.createElement(id.Provider,{value:t},r):ii.createPortal(r,t)}var bx=h.createContext({});Vf(function(e,t){[e,t]=rt(e,t,bx);let o=e,{elementType:r="label"}=o,n=G(o,["elementType"]);return g.createElement(r,P(E({className:"react-aria-Label"},n),{ref:t}))});function S9(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=e;t=et(t);let a=et(),l={};r&&(n=n?`${a} ${n}`:a,l={id:a,htmlFor:i==="label"?t:void 0});let s=El({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:l,fieldProps:s}}function x9(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,l=Te(e,{labelable:!0}),{labelProps:s,fieldProps:u}=S9(P(E({},e),{labelElementType:"span"}));t=qo(t,r,n);let c=(t-r)/(n-r),d=zk(a);if(!i&&!o){let f=a.style==="percent"?c:t;o=d.format(f)}return{progressBarProps:le(l,P(E({},u),{"aria-valuenow":i?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":i?void 0:o,role:"progressbar"})),labelProps:s}}var Ex=h.createContext(null);h.forwardRef(function(e,t){[e,t]=rt(e,t,Ex);let{value:r=0,minValue:n=0,maxValue:o=100,isIndeterminate:i=!1}=e;r=qo(r,n,o);let[a,l]=Ev(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:s,labelProps:u}=x9(P(E({},e),{label:l})),c=i?void 0:(r-n)/(o-n)*100,d=xt(P(E({},e),{defaultClassName:"react-aria-ProgressBar",values:{percentage:c,valueText:s["aria-valuetext"],isIndeterminate:i}})),f=Te(e,{global:!0});return g.createElement("div",P(E({},le(f,d,s)),{ref:t,slot:e.slot||void 0}),g.createElement(bx.Provider,{value:P(E({},u),{ref:a,elementType:"span"})},d.children))});var Yt=null;function R0(e,t="assertive",r=7e3){Yt?Yt.announce(e,t,r):(Yt=new $9,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Yt.announce(e,t,r):setTimeout(()=>{Yt!=null&&Yt.isAttached()&&(Yt==null||Yt.announce(e,t,r))},100))}var $9=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,o;if(!this.node)return;let i=document.createElement("div");typeof e=="object"?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",e["aria-labelledby"])):i.textContent=e,t==="assertive"?(n=this.assertiveLog)===null||n===void 0||n.appendChild(i):(o=this.politeLog)===null||o===void 0||o.appendChild(i),e!==""&&setTimeout(()=>{i.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 w9(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:a,onPressUp:l,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:f,target:p,rel:m,type:y="button"}=e,S;r==="button"?S={type:y,disabled:n,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:S={role:"button",href:r==="a"&&!n?f:void 0,target:r==="a"?p:void 0,type:r==="input"?y:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?m:void 0};let{pressProps:b,isPressed:v}=pi({onPressStart:i,onPressEnd:a,onPressChange:s,onPress:o,onPressUp:l,onClick:d,isDisabled:n,preventFocusOnPress:u,ref:t}),{focusableProps:x}=hi(e,t);c&&(x.tabIndex=n?-1:x.tabIndex);let C=le(x,b,Te(e,{labelable:!0}));return{isPressed:v,buttonProps:le(S,C,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}var vx=h.createContext({});Vf(function(e,t){[e,t]=rt(e,t,vx),e=C9(e);let r=e,{isPending:n}=r,{buttonProps:o,isPressed:i}=w9(e,t),{focusProps:a,isFocused:l,isFocusVisible:s}=$l(e),{hoverProps:u,isHovered:c}=lo(P(E({},e),{isDisabled:e.isDisabled||n})),d={isHovered:c,isPressed:(r.isPressed||i)&&!n,isFocused:l,isFocusVisible:s,isDisabled:e.isDisabled||!1,isPending:n!=null?n:!1},f=xt(P(E({},e),{values:d,defaultClassName:"react-aria-Button"})),p=et(o.id),m=et(),y=o["aria-labelledby"];n&&(y?y=`${y} ${m}`:o["aria-label"]&&(y=`${p} ${m}`));let S=h.useRef(n);h.useEffect(()=>{let v={"aria-labelledby":y||p};(!S.current&&l&&n||S.current&&l&&!n)&&R0(v,"assertive"),S.current=n},[n,l,y,p]);let b=Te(e,{global:!0});return delete b.onClick,g.createElement("button",P(E({},le(b,f,o,a,u)),{type:o.type==="submit"&&n?"button":o.type,id:p,ref:t,"aria-labelledby":y,slot:e.slot||void 0,"aria-disabled":n?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":c||void 0,"data-focused":l||void 0,"data-pending":n||void 0,"data-focus-visible":s||void 0}),g.createElement(Ex.Provider,{value:{id:m}},f.children))});function C9(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}var Yf=h.createContext(null),D0=h.createContext(null),_9=h.forwardRef(function(e,t){[e,t]=rt(e,t,Yf);let r=h.useContext(Ol),n=gi(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?n:r,i=iv(t,o.isOpen)||e.isExiting||!1,a=h9(),{direction:l}=wr();if(a){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),g.createElement(g.Fragment,null,s)}return o&&!o.isOpen&&!i?null:g.createElement(T9,P(E({},e),{triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:i,dir:l}))});function T9(i){var a=i,{state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:n}=a,o=G(a,["state","isExiting","UNSTABLE_portalContainer","clearContexts"]);let l=h.useRef(null),s=h.useRef(null),u=h.useContext(D0),c=u&&o.trigger==="SubmenuTrigger";var d;let{popoverProps:f,underlayProps:p,arrowProps:m,placement:y,triggerAnchorPoint:S}=E7(P(E({},o),{offset:(d=o.offset)!==null&&d!==void 0?d:8,arrowRef:l,groupRef:c?u:s}),e),b=o.popoverRef,v=ov(b,!!y)||o.isEntering||!1,x=xt(P(E({},o),{defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:y,isEntering:v,isExiting:t}})),C=!o.isNonModal||o.trigger==="SubmenuTrigger",[A,$]=h.useState(!1);ge(()=>{b.current&&$(C&&!b.current.querySelector("[role=dialog]"))},[b,C]),h.useEffect(()=>{A&&o.trigger!=="SubmenuTrigger"&&b.current&&!b.current.contains(document.activeElement)&&kr(b.current)},[A,b,o.trigger]);let w=h.useMemo(()=>{let I=x.children;if(n)for(let D of n)I=g.createElement(D.Provider,{value:null},I);return I},[x.children,n]),_=E(P(E({},f.style),{"--trigger-anchor-point":S?`${S.x}px ${S.y}px`:void 0}),x.style),O=g.createElement("div",P(E(E({},le(Te(o,{global:!0}),f)),x),{role:A?"dialog":void 0,tabIndex:A?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:b,slot:o.slot||void 0,style:_,dir:o.dir,"data-trigger":o.trigger,"data-placement":y,"data-entering":v||void 0,"data-exiting":t||void 0}),!o.isNonModal&&g.createElement(h0,{onDismiss:e.close}),g.createElement(Nf.Provider,{value:P(E({},m),{placement:y,ref:l})},w),g.createElement(h0,{onDismiss:e.close}));if(!c)return g.createElement(La,P(E({},o),{shouldContainFocus:A,isExiting:t,portalContainer:r}),!o.isNonModal&&e.isOpen&&g.createElement("div",P(E({"data-testid":"underlay"},p),{style:{position:"fixed",inset:0}})),g.createElement("div",{ref:s,style:{display:"contents"}},g.createElement(D0.Provider,{value:s},O)));var T;return g.createElement(La,P(E({},o),{shouldContainFocus:A,isExiting:t,portalContainer:(T=r!=null?r:u==null?void 0:u.current)!==null&&T!==void 0?T:void 0}),O)}var Sx=h.createContext(null);qf("section",(e,t,r)=>{let{name:n,render:o}=h.useContext(Sx);return o(e,t,r,"react-aria-Section")});var xx={CollectionRoot({collection:e,renderDropIndicator:t}){return P0(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return P0(e,t,r)}};function P0(e,t,r){return fx({items:t?e.getChildren(t.key):e,dependencies:[r],children(n){let o=n.render(n);return!r||n.type!=="item"?o:g.createElement(g.Fragment,null,r({type:"item",key:n.key,dropPosition:"before"}),o,A9(e,n,r))}})}function A9(e,t,r){let n=t.key,o=e.getKeyAfter(n),i=o!=null?e.getItem(o):null;for(;i!=null&&i.type!=="item";)o=e.getKeyAfter(i.key),i=o!=null?e.getItem(o):null;let a=t.nextKey!=null?e.getItem(t.nextKey):null;for(;a!=null&&a.type!=="item";)a=a.nextKey!=null?e.getItem(a.nextKey):null;let l=[];if(a==null){let s=t;for(;s&&(!i||s.parentKey!==i.parentKey&&i.level<s.level);){let u=r({type:"item",key:s.key,dropPosition:"after"});h.isValidElement(u)&&l.push(h.cloneElement(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return l}var yi=h.createContext(xx);function $x(e){return h.useMemo(()=>e!=null?new Set([e]):null,[e])}var I0=h.createContext(null),O9=h.createContext(null),wx=h.createContext({});Tl(lx,function(e,t){return[e,t]=rt(e,t,wx),g.createElement("header",P(E({className:"react-aria-Header"},e),{ref:t}),e.children)});var Cx=h.createContext({});h.forwardRef(function(e,t){return[e,t]=rt(e,t,Cx),g.createElement("kbd",P(E({dir:"ltr"},e),{ref:t}))});function R9(e){let t=Te(e,{labelable:!0}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:P(E({},t),{role:"separator","aria-orientation":r})}:{separatorProps:t}}var _x=h.createContext({}),Tx=class extends En{filter(e,t){let r=t.getItem(this.prevKey);if(r&&r.type!=="separator"){let n=this.clone();return t.addDescendants(n,e),n}return null}};Tx.type="separator";Tl(Tx,function(e,t){[e,t]=rt(e,t,_x);let d=e,{elementType:r,orientation:n,style:o,className:i,slot:a}=d,l=G(d,["elementType","orientation","style","className","slot"]),s=r||"hr";s==="hr"&&n==="vertical"&&(s="div");let{separatorProps:u}=R9(P(E({},l),{elementType:r,orientation:n})),c=Te(e,{global:!0});return g.createElement(s,P(E({},le(c,u)),{style:o,className:i!=null?i:"react-aria-Separator",ref:t,slot:a||void 0}))});var Ax=new WeakMap;function ad(e){return D6()?e.altKey:e.ctrlKey}function pa(e,t){var r,n;let o=`[data-key="${CSS.escape(String(t))}"]`,i=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return i&&(o=`[data-collection="${CSS.escape(i)}"]${o}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(o)}var Ox=new WeakMap;function D9(e){let t=et();return Ox.set(e,t),t}function P9(e){return Ox.get(e)}var I9=1e3;function F9(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=h.useRef({search:"",timeout:void 0}).current,i=a=>{let l=L9(a.key);if(!(!l||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target)||o.search.length===0&&l===" ")){if(l===" "&&o.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),o.search+=l,t.getKeyForSearch!=null){let s=t.getKeyForSearch(o.search,r.focusedKey);s==null&&(s=t.getKeyForSearch(o.search)),s!=null&&(r.setFocusedKey(s),n&&n(s))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},I9)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function L9(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Rx(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:l=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:m=n,linkBehavior:y="action"}=e,{direction:S}=wr(),b=yl(),v=L=>{var z;if(L.altKey&&L.key==="Tab"&&L.preventDefault(),!(!((z=n.current)===null||z===void 0)&&z.contains(L.target)))return;let U=(Y,Z)=>{if(Y!=null){if(t.isLink(Y)&&y==="selection"&&u&&!ad(L)){ii.flushSync(()=>{t.setFocusedKey(Y,Z)});let ie=pa(n,Y),pe=t.getItemProps(Y);ie&&b.open(ie,L,pe.href,pe.routerOptions);return}if(t.setFocusedKey(Y,Z),t.isLink(Y)&&y==="override")return;L.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&!ad(L)&&t.replaceSelection(Y)}};switch(L.key){case"ArrowDown":if(r.getKeyBelow){var B,F,H;let Y=t.focusedKey!=null?(B=r.getKeyBelow)===null||B===void 0?void 0:B.call(r,t.focusedKey):(F=r.getFirstKey)===null||F===void 0?void 0:F.call(r);Y==null&&i&&(Y=(H=r.getFirstKey)===null||H===void 0?void 0:H.call(r,t.focusedKey)),Y!=null&&(L.preventDefault(),U(Y))}break;case"ArrowUp":if(r.getKeyAbove){var W,V,K;let Y=t.focusedKey!=null?(W=r.getKeyAbove)===null||W===void 0?void 0:W.call(r,t.focusedKey):(V=r.getLastKey)===null||V===void 0?void 0:V.call(r);Y==null&&i&&(Y=(K=r.getLastKey)===null||K===void 0?void 0:K.call(r,t.focusedKey)),Y!=null&&(L.preventDefault(),U(Y))}break;case"ArrowLeft":if(r.getKeyLeftOf){var q,X,te;let Y=t.focusedKey!=null?(q=r.getKeyLeftOf)===null||q===void 0?void 0:q.call(r,t.focusedKey):null;Y==null&&i&&(Y=S==="rtl"?(X=r.getFirstKey)===null||X===void 0?void 0:X.call(r,t.focusedKey):(te=r.getLastKey)===null||te===void 0?void 0:te.call(r,t.focusedKey)),Y!=null&&(L.preventDefault(),U(Y,S==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var J,Oe,re;let Y=t.focusedKey!=null?(J=r.getKeyRightOf)===null||J===void 0?void 0:J.call(r,t.focusedKey):null;Y==null&&i&&(Y=S==="rtl"?(Oe=r.getLastKey)===null||Oe===void 0?void 0:Oe.call(r,t.focusedKey):(re=r.getFirstKey)===null||re===void 0?void 0:re.call(r,t.focusedKey)),Y!=null&&(L.preventDefault(),U(Y,S==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&L.shiftKey)return;L.preventDefault();let Y=r.getFirstKey(t.focusedKey,_n(L));t.setFocusedKey(Y),Y!=null&&(_n(L)&&L.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&t.replaceSelection(Y))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&L.shiftKey)return;L.preventDefault();let Y=r.getLastKey(t.focusedKey,_n(L));t.setFocusedKey(Y),Y!=null&&(_n(L)&&L.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&t.replaceSelection(Y))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let Y=r.getKeyPageBelow(t.focusedKey);Y!=null&&(L.preventDefault(),U(Y))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let Y=r.getKeyPageAbove(t.focusedKey);Y!=null&&(L.preventDefault(),U(Y))}break;case"a":_n(L)&&t.selectionMode==="multiple"&&l!==!0&&(L.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(L.stopPropagation(),L.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(L.shiftKey)n.current.focus();else{let Y=dt(n.current,{tabbable:!0}),Z,ie;do ie=Y.lastChild(),ie&&(Z=ie);while(ie);Z&&!Z.contains(document.activeElement)&&ut(Z)}break}}},x=h.useRef({top:0,left:0});Ro(m,"scroll",p?void 0:()=>{var L,z,U,B;x.current={top:(U=(L=m.current)===null||L===void 0?void 0:L.scrollTop)!==null&&U!==void 0?U:0,left:(B=(z=m.current)===null||z===void 0?void 0:z.scrollLeft)!==null&&B!==void 0?B:0}});let C=L=>{if(t.isFocused){L.currentTarget.contains(L.target)||t.setFocused(!1);return}if(L.currentTarget.contains(L.target)){if(t.setFocused(!0),t.focusedKey==null){var z,U;let H=V=>{V!=null&&(t.setFocusedKey(V),u&&!t.isSelected(V)&&t.replaceSelection(V))},W=L.relatedTarget;var B,F;W&&L.currentTarget.compareDocumentPosition(W)&Node.DOCUMENT_POSITION_FOLLOWING?H((B=t.lastSelectedKey)!==null&&B!==void 0?B:(z=r.getLastKey)===null||z===void 0?void 0:z.call(r)):H((F=t.firstSelectedKey)!==null&&F!==void 0?F:(U=r.getFirstKey)===null||U===void 0?void 0:U.call(r))}else!p&&m.current&&(m.current.scrollTop=x.current.top,m.current.scrollLeft=x.current.left);if(t.focusedKey!=null&&m.current){let H=pa(n,t.focusedKey);H instanceof HTMLElement&&(!H.contains(document.activeElement)&&!d&&ut(H),Zo()==="keyboard"&&Im(H,{containingElement:n.current}))}}},A=L=>{L.currentTarget.contains(L.relatedTarget)||t.setFocused(!1)},$=h.useRef(!1);Ro(n,W6,d?L=>{let{detail:z}=L;L.stopPropagation(),t.setFocused(!0),(z==null?void 0:z.focusStrategy)==="first"&&($.current=!0)}:void 0);let w=Ue(()=>{var L,z;let U=(z=(L=r.getFirstKey)===null||L===void 0?void 0:L.call(r))!==null&&z!==void 0?z:null;if(U==null){let B=ze();Gv(n.current),Wv(B,null),t.collection.size>0&&($.current=!1)}else t.setFocusedKey(U),$.current=!1});Dm(()=>{$.current&&w()},[t.collection,w]);let _=Ue(()=>{t.collection.size>0&&($.current=!1)});Dm(()=>{_()},[t.focusedKey,_]),Ro(n,G6,d?L=>{var z;L.stopPropagation(),t.setFocused(!1),!((z=L.detail)===null||z===void 0)&&z.clearFocusKey&&t.setFocusedKey(null)}:void 0);let O=h.useRef(o),T=h.useRef(!1);h.useEffect(()=>{if(O.current){var L,z;let F=null;var U;o==="first"&&(F=(U=(L=r.getFirstKey)===null||L===void 0?void 0:L.call(r))!==null&&U!==void 0?U:null);var B;o==="last"&&(F=(B=(z=r.getLastKey)===null||z===void 0?void 0:z.call(r))!==null&&B!==void 0?B:null);let H=t.selectedKeys;if(H.size){for(let W of H)if(t.canSelectItem(W)){F=W;break}}t.setFocused(!0),t.setFocusedKey(F),F==null&&!d&&n.current&&kr(n.current),t.collection.size>0&&(O.current=!1,T.current=!0)}});let I=h.useRef(t.focusedKey),D=h.useRef(null);h.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==I.current||T.current)&&m.current&&n.current){let L=Zo(),z=pa(n,t.focusedKey);if(!(z instanceof HTMLElement))return;(L==="keyboard"||T.current)&&(D.current&&cancelAnimationFrame(D.current),D.current=requestAnimationFrame(()=>{m.current&&(rv(m.current,z),L!=="virtual"&&Im(z,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&I.current!=null&&n.current&&kr(n.current),I.current=t.focusedKey,T.current=!1}),h.useEffect(()=>()=>{D.current&&cancelAnimationFrame(D.current)},[]),Ro(n,"react-aria-focus-scope-restore",L=>{L.preventDefault(),t.setFocused(!0)});let M={onKeyDown:v,onFocus:C,onBlur:A,onMouseDown(L){m.current===L.target&&L.preventDefault()}},{typeSelectProps:k}=F9({keyboardDelegate:r,selectionManager:t});c||(M=le(k,M));let R;d||(R=t.focusedKey==null?0:-1);let j=D9(t.collection);return{collectionProps:le(M,{tabIndex:R,"data-collection":j})}}function Dx(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:l,isDisabled:s,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,f=yl();t=et(t);let p=B=>{if(B.pointerType==="keyboard"&&ad(B))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(d==="selection"&&o.current){let F=r.getItemProps(n);f.open(o.current,B,F.href,F.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(d==="override"||d==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):B&&B.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||B&&(_n(B)||B.pointerType==="touch"||B.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};h.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(a?Gv(o.current):l?l():document.activeElement!==o.current&&o.current&&kr(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,a]),s=s||r.isDisabled(n);let m={};!a&&!s?m={tabIndex:n===r.focusedKey?0:-1,onFocus(B){B.target===o.current&&r.setFocusedKey(n)}}:s&&(m.onMouseDown=B=>{B.preventDefault()});let y=r.isLink(n)&&d==="override",S=u&&e.UNSTABLE_itemBehavior==="action",b=r.isLink(n)&&d!=="selection"&&d!=="none",v=!s&&r.canSelectItem(n)&&!y&&!S,x=(u||b)&&!s,C=x&&(r.selectionBehavior==="replace"?!v:!v||r.isEmpty),A=x&&v&&r.selectionBehavior==="replace",$=C||A,w=h.useRef(null),_=$&&v,O=h.useRef(!1),T=h.useRef(!1),I=r.getItemProps(n),D=B=>{if(u){var F;u(),(F=o.current)===null||F===void 0||F.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}b&&o.current&&f.open(o.current,B,I.href,I.routerOptions)},M={ref:o};if(i?(M.onPressStart=B=>{w.current=B.pointerType,O.current=_,B.pointerType==="keyboard"&&(!$||L0())&&p(B)},c?(M.onPressUp=C?void 0:B=>{B.pointerType==="mouse"&&v&&p(B)},M.onPress=C?D:B=>{B.pointerType!=="keyboard"&&B.pointerType!=="mouse"&&v&&p(B)}):M.onPress=B=>{if(C||A&&B.pointerType!=="mouse"){if(B.pointerType==="keyboard"&&!F0())return;D(B)}else B.pointerType!=="keyboard"&&v&&p(B)}):(M.onPressStart=B=>{w.current=B.pointerType,O.current=_,T.current=C,v&&(B.pointerType==="mouse"&&!C||B.pointerType==="keyboard"&&(!x||L0()))&&p(B)},M.onPress=B=>{(B.pointerType==="touch"||B.pointerType==="pen"||B.pointerType==="virtual"||B.pointerType==="keyboard"&&$&&F0()||B.pointerType==="mouse"&&T.current)&&($?D(B):v&&p(B))}),m["data-collection"]=P9(r.collection),m["data-key"]=n,M.preventFocusOnPress=a,a&&(M=le(M,{onPressStart(B){B.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(B){B.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),I)for(let B of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])I[B]&&(M[B]=fi(M[B],I[B]));let{pressProps:k,isPressed:R}=pi(M),j=A?B=>{w.current==="mouse"&&(B.stopPropagation(),B.preventDefault(),D(B))}:void 0,{longPressProps:L}=CL({isDisabled:!_,onLongPress(B){B.pointerType==="touch"&&(p(B),r.setSelectionBehavior("toggle"))}}),z=B=>{w.current==="touch"&&O.current&&B.preventDefault()},U=d!=="none"&&r.isLink(n)?B=>{dn.isOpening||B.preventDefault()}:void 0;return{itemProps:le(m,v||C||a&&!s?k:{},_?L:{},{onDoubleClick:j,onDragStartCapture:z,onClick:U,id:t},a?{onMouseDown:B=>B.preventDefault()}:void 0),isPressed:R,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:s,allowsSelection:v,hasAction:$}}function F0(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function L0(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}var k0=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let r=e!=null?pa(this.ref,e):null;if(!r)return null;let n=t.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-n.left-t.clientLeft+t.scrollLeft,y:o.top-n.top-t.clientTop+t.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var t,r;return{width:(t=e==null?void 0:e.scrollWidth)!==null&&t!==void 0?t:0,height:(r=e==null?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var t,r,n,o;return{x:(t=e==null?void 0:e.scrollLeft)!==null&&t!==void 0?t:0,y:(r=e==null?void 0:e.scrollTop)!==null&&r!==void 0?r:0,width:(n=e==null?void 0:e.clientWidth)!==null&&n!==void 0?n:0,height:(o=e==null?void 0:e.clientHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}},k9=class{isDisabled(e){var t;return this.disabledBehavior==="all"&&(((t=e.props)===null||t===void 0?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let r=e;for(;r!=null;){let n=this.collection.getItem(r);if((n==null?void 0:n.type)==="item"&&!this.isDisabled(n))return r;r=t(r)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}findKey(e,t,r){let n=e,o=this.layoutDelegate.getItemRect(n);if(!o||n==null)return null;let i=o;do{if(n=t(n),n==null)break;o=this.layoutDelegate.getItemRect(n)}while(o&&r(i,o)&&n!=null);return n}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getNextKey(t),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getPreviousKey(t),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let t=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyAfter(t))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyBefore(t))}getKeyPageAbove(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!Gn(t))return this.getFirstKey();let n=e;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n!=null?n:this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!Gn(t))return this.getLastKey();let n=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n!=null?n:this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let r=this.collection,n=t||this.getFirstKey();for(;n!=null;){let o=r.getItem(n);if(!o)return null;let i=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(i,e)===0)return n;n=this.getNextKey(n)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new k0(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new k0(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function N9(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:i,layoutDelegate:a}=e,l=Kk({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,u=h.useMemo(()=>i||new k9({collection:r,disabledKeys:n,disabledBehavior:s,ref:o,collator:l,layoutDelegate:a}),[i,a,r,n,o,l,s]),{collectionProps:c}=Rx(P(E({},e),{ref:o,selectionManager:t,keyboardDelegate:u}));return{listProps:c}}function M9(e,t,r){let u=e,{shouldFocusWrap:n=!0,onKeyDown:o,onKeyUp:i}=u,a=G(u,["shouldFocusWrap","onKeyDown","onKeyUp"]);!e["aria-label"]&&e["aria-labelledby"];let l=Te(e,{labelable:!0}),{listProps:s}=N9(P(E({},a),{ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"}));return Ax.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:le(l,{onKeyDown:o,onKeyUp:i},P(E({role:"menu"},s),{onKeyDown:c=>{var d;(c.key!=="Escape"||e.shouldUseVirtualFocus)&&((d=s.onKeyDown)===null||d===void 0||d.call(s,c))}}))}}function Px(e){return null}Px.getCollectionNode=function*(e,t){let{childItems:r,title:n,children:o}=e,i=e.title||e.children,a=e.textValue||(typeof i=="string"?i:"")||e["aria-label"]||"";!a&&(t!=null&&t.suppressTextValueWarning),yield{type:"item",props:e,rendered:i,textValue:a,"aria-label":e["aria-label"],hasChildNodes:B9(e),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(n){let l=[];g.Children.forEach(o,s=>{l.push({type:"item",element:s})}),yield*Cr(l)}}}};function B9(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&g.Children.count(e.children)>0)}var j9=Px,H9=class{build(e,t){return this.context=t,N0(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:r}=e;if(g.isValidElement(t)&&t.type===g.Fragment)yield*Cr(this.iterateCollection({children:t.props.children,items:r}));else if(typeof t=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let n=0;for(let o of r)yield*Cr(this.getFullNode({value:o,index:n},{renderer:t})),n++}else{let n=[];g.Children.forEach(t,i=>{i&&n.push(i)});let o=0;for(let i of n){let a=this.getFullNode({element:i,index:o},{});for(let l of a)o++,yield l}}}getKey(e,t,r,n){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return`${n}${t.key}`;let o=t.value;if(o!=null){var i;let a=(i=o.key)!==null&&i!==void 0?i:o.id;if(a==null)throw new Error("No key found for item");return a}return n?`${n}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,r,n){if(g.isValidElement(e.element)&&e.element.type===g.Fragment){let y=[];g.Children.forEach(e.element.props.children,b=>{y.push(b)});var o;let S=(o=e.index)!==null&&o!==void 0?o:0;for(let b of y)yield*Cr(this.getFullNode({element:b,index:S++},t,r,n));return}let i=e.element;if(!i&&e.value&&t&&t.renderer){let y=this.cache.get(e.value);if(y&&(!y.shouldInvalidate||!y.shouldInvalidate(this.context))){y.index=e.index,y.parentKey=n?n.key:null,yield y;return}i=t.renderer(e.value)}if(g.isValidElement(i)){let y=i.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let x=i.type;throw new Error(`Unknown element <${x}> in collection.`)}let S=y.getCollectionNode(i.props,this.context);var a;let b=(a=e.index)!==null&&a!==void 0?a:0,v=S.next();for(;!v.done&&v.value;){let x=v.value;e.index=b;var l;let C=(l=x.key)!==null&&l!==void 0?l:null;C==null&&(C=x.element?null:this.getKey(i,e,t,r));let A=[...this.getFullNode(P(E({},x),{key:C,index:b,wrapper:U9(e.wrapper,x.wrapper)}),this.getChildState(t,x),r?`${r}${i.key}`:i.key,n)];for(let $ of A){var s,u;$.value=(u=(s=x.value)!==null&&s!==void 0?s:e.value)!==null&&u!==void 0?u:null,$.value&&this.cache.set($.value,$);var c;if(e.type&&$.type!==e.type)throw new Error(`Unsupported type <${Mu($.type)}> in <${Mu((c=n==null?void 0:n.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${Mu(e.type)}> is supported.`);b++,yield $}v=S.next(A)}return}if(e.key==null||e.type==null)return;let d=this;var f,p;let m={type:e.type,props:e.props,key:e.key,parentKey:n?n.key:null,value:(f=e.value)!==null&&f!==void 0?f:null,level:n?n.level+1:0,index:e.index,rendered:e.rendered,textValue:(p=e.textValue)!==null&&p!==void 0?p:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:N0(function*(){if(!e.hasChildNodes||!e.childNodes)return;let y=0;for(let S of e.childNodes()){S.key!=null&&(S.key=`${m.key}${S.key}`);let b=d.getFullNode(P(E({},S),{index:y}),d.getChildState(t,S),m.key,m);for(let v of b)y++,yield v}})};yield m}constructor(){this.cache=new WeakMap}};function N0(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function U9(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Mu(e){return e[0].toUpperCase()+e.slice(1)}function Ix(e,t,r){let n=h.useMemo(()=>new H9,[]),{children:o,items:i,collection:a}=e;return h.useMemo(()=>{if(a)return a;let l=n.build({children:o,items:i},r);return t(l)},[n,o,i,a,r,t])}function Fx(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function z9(e){return K9(e)}function K9(e,t){for(let r of e)return r}function Bu(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...M0(e,t),t],o=[...M0(e,r),r],i=n.slice(0,o.length).findIndex((a,l)=>a!==o[l]);return i!==-1?(t=n[i],r=o[i],t.index-r.index):n.findIndex(a=>a===r)>=0?1:(o.findIndex(a=>a===t)>=0,-1)}function M0(e,t){let r=[],n=t;for(;(n==null?void 0:n.parentKey)!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}var B0=new WeakMap;function G9(e){let t=B0.get(e);if(t!=null)return t;let r=0,n=o=>{for(let i of o)i.type==="section"?n(Fx(i,e)):i.type==="item"&&r++};return n(e),B0.set(e,r),r}function W9(e,t,r){let{id:n,key:o,closeOnSelect:i,isVirtualized:a,"aria-haspopup":l,onPressStart:s,onPressUp:u,onPress:c,onPressChange:d,onPressEnd:f,onClick:p,onHoverStart:m,onHoverChange:y,onHoverEnd:S,onKeyDown:b,onKeyUp:v,onFocus:x,onFocusChange:C,onBlur:A,selectionManager:$=t.selectionManager}=e,w=!!l,_=w&&e["aria-expanded"]==="true";var O;let T=(O=e.isDisabled)!==null&&O!==void 0?O:$.isDisabled(o);var I;let D=(I=e.isSelected)!==null&&I!==void 0?I:$.isSelected(o),M=Ax.get(t),k=t.collection.getItem(o),R=e.onClose||M.onClose,j=yl(),L=()=>{var ee;if(!w&&(!(k==null||(ee=k.props)===null||ee===void 0)&&ee.onAction?k.props.onAction():e.onAction&&e.onAction(o),M.onAction)){let ot=M.onAction;ot(o)}},z="menuitem";w||($.selectionMode==="single"?z="menuitemradio":$.selectionMode==="multiple"&&(z="menuitemcheckbox"));let U=ua(),B=ua(),F=ua(),H={id:n,"aria-disabled":T||void 0,role:z,"aria-label":e["aria-label"],"aria-labelledby":U,"aria-describedby":[B,F].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":l,"aria-expanded":e["aria-expanded"]};$.selectionMode!=="none"&&!w&&(H["aria-checked"]=D),a&&(H["aria-posinset"]=k==null?void 0:k.index,H["aria-setsize"]=G9(t.collection));let W=h.useRef(!1),V=ee=>{d==null||d(ee),W.current=ee},K=h.useRef(null),q=ee=>{ee.pointerType!=="keyboard"&&(K.current={pointerType:ee.pointerType}),ee.pointerType==="mouse"&&(W.current||ee.target.click()),u==null||u(ee)},X=ee=>{var ot,Ft;p==null||p(ee),L(),N6(ee,j,k.props.href,k==null?void 0:k.props.routerOptions);let ht=((ot=K.current)===null||ot===void 0?void 0:ot.pointerType)==="keyboard"?((Ft=K.current)===null||Ft===void 0?void 0:Ft.key)==="Enter"||$.selectionMode==="none"||$.isLink(o):$.selectionMode!=="multiple"||$.isLink(o);ht=i!=null?i:ht,R&&!w&&ht&&R(),K.current=null},{itemProps:te,isFocused:J}=Dx({id:n,selectionManager:$,key:o,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:M.shouldUseVirtualFocus}),{pressProps:Oe,isPressed:re}=pi({onPressStart:s,onPress:c,onPressUp:q,onPressChange:V,onPressEnd:f,isDisabled:T}),{hoverProps:Y}=lo({isDisabled:T,onHoverStart(ee){!Jo()&&!(_&&l)&&($.setFocused(!0),$.setFocusedKey(o)),m==null||m(ee)},onHoverChange:y,onHoverEnd:S}),{keyboardProps:Z}=yv({onKeyDown:ee=>{if(ee.repeat){ee.continuePropagation();return}switch(ee.key){case" ":K.current={pointerType:"keyboard",key:" "},ee.target.click();break;case"Enter":K.current={pointerType:"keyboard",key:"Enter"},ee.target.tagName!=="A"&&ee.target.click();break;default:w||ee.continuePropagation(),b==null||b(ee);break}},onKeyUp:v}),{focusProps:ie}=Ff({onBlur:A,onFocus:x,onFocusChange:C}),pe=Te(k==null?void 0:k.props);delete pe.id;let nt=QE(k==null?void 0:k.props);return{menuItemProps:P(E(E({},H),le(pe,nt,w?{onFocus:te.onFocus,"data-collection":te["data-collection"],"data-key":te["data-key"]}:te,Oe,Y,Z,ie,M.shouldUseVirtualFocus||w?{onMouseDown:ee=>ee.preventDefault()}:void 0,T?void 0:{onClick:X})),{tabIndex:te.tabIndex!=null&&_&&!M.shouldUseVirtualFocus?-1:te.tabIndex}),labelProps:{id:U},descriptionProps:{id:B},keyboardShortcutProps:{id:F},isFocused:J,isFocusVisible:J&&$.isFocused&&Jo()&&!_,isSelected:D,isPressed:re,isDisabled:T}}function V9(e){let{heading:t,"aria-label":r}=e,n=et();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}var Gi=2,q9=50,Y9=1e3,j0=Math.PI/12;function X9(e){let{menuRef:t,submenuRef:r,isOpen:n,isDisabled:o}=e,i=h.useRef(void 0),a=h.useRef(void 0),l=h.useRef(0),s=h.useRef(void 0),u=h.useRef(void 0),c=h.useRef(void 0),d=h.useRef(2),[f,p]=h.useState(!1);_a({ref:r,onResize:()=>{r.current&&(a.current=r.current.getBoundingClientRect(),c.current=void 0)}});let m=()=>{p(!1),d.current=Gi,i.current=void 0},y=fL(),S=Ue(b=>{f&&b.preventDefault()});h.useEffect(()=>{f&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,f]),h.useEffect(()=>{let b=r.current,v=t.current;if(o||!b||!n||y!=="pointer"||!v){m();return}a.current=b.getBoundingClientRect();let x=C=>{if(C.pointerType==="touch"||C.pointerType==="pen")return;let A=Date.now();if(A-l.current<q9)return;clearTimeout(s.current),clearTimeout(u.current);let{clientX:$,clientY:w}=C;if(!i.current){i.current={x:$,y:w};return}if(!a.current)return;if(c.current||(c.current=$>a.current.right?"left":"right"),$<v.getBoundingClientRect().left||$>v.getBoundingClientRect().right||w<v.getBoundingClientRect().top||w>v.getBoundingClientRect().bottom){m();return}let _=i.current.x,O=i.current.y,T=c.current==="right"?a.current.left-_:_-a.current.right,I=Math.atan2(O-a.current.top,T)+j0,D=Math.atan2(O-a.current.bottom,T)-j0,M=Math.atan2(O-w,c.current==="left"?-($-_):$-_),k=M<I&&M>D;d.current=k?Math.min(d.current+1,Gi):Math.max(d.current-1,0),d.current>=Gi?p(!0):p(!1),l.current=A,i.current={x:$,y:w},k&&(s.current=setTimeout(()=>{m(),u.current=setTimeout(()=>{let R=document.elementFromPoint($,w);R&&v.contains(R)&&R.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},Y9))};return window.addEventListener("pointermove",x),window.addEventListener("pointerdown",S,!0),()=>{window.removeEventListener("pointermove",x),window.removeEventListener("pointerdown",S,!0),clearTimeout(s.current),clearTimeout(u.current),d.current=Gi}},[o,n,t,y,p,S,r])}function J9(e,t,r){let{parentMenuRef:n,submenuRef:o,type:i="menu",isDisabled:a,delay:l=200,shouldUseVirtualFocus:s}=e,u=et(),c=et(),{direction:d}=wr(),f=h.useRef(void 0),p=h.useCallback(()=>{f.current&&(clearTimeout(f.current),f.current=void 0)},[f]),m=Ue(_=>{p(),t.open(_)}),y=Ue(()=>{p(),t.close()});ge(()=>()=>{p()},[p]);let S=_=>{if(_.currentTarget.contains(document.activeElement))switch(_.key){case"ArrowLeft":d==="ltr"&&_.currentTarget.contains(_.target)&&(_.preventDefault(),_.stopPropagation(),y(),!s&&r.current&&ut(r.current));break;case"ArrowRight":d==="rtl"&&_.currentTarget.contains(_.target)&&(_.preventDefault(),_.stopPropagation(),y(),!s&&r.current&&ut(r.current));break;case"Escape":var O;!((O=o.current)===null||O===void 0)&&O.contains(_.target)&&(_.stopPropagation(),y(),!s&&r.current&&ut(r.current));break}};var b;let v=E({id:c,"aria-labelledby":u,submenuLevel:t.submenuLevel},i==="menu"&&{onClose:t.closeAll,autoFocus:(b=t.focusStrategy)!==null&&b!==void 0?b:void 0,onKeyDown:S}),x=_=>{switch(_.key){case"ArrowRight":a||(d==="ltr"?(_.preventDefault(),t.isOpen||m("first"),i==="menu"&&(o!=null&&o.current)&&document.activeElement===(r==null?void 0:r.current)&&ut(o.current)):t.isOpen?y():_.continuePropagation());break;case"ArrowLeft":a||(d==="rtl"?(_.preventDefault(),t.isOpen||m("first"),i==="menu"&&(o!=null&&o.current)&&document.activeElement===(r==null?void 0:r.current)&&ut(o.current)):t.isOpen?y():_.continuePropagation());break;default:_.continuePropagation();break}},C=_=>{!a&&(_.pointerType==="virtual"||_.pointerType==="keyboard")&&m("first")},A=_=>{!a&&(_.pointerType==="touch"||_.pointerType==="mouse")&&m()},$=_=>{a||(_&&!t.isOpen?f.current||(f.current=setTimeout(()=>{m()},l)):_||p())};Ro(n,"focusin",_=>{var O;t.isOpen&&!((O=n.current)===null||O===void 0)&&O.contains(_.target)&&_.target!==r.current&&y()});let w=_=>_!==r.current;return X9({menuRef:n,submenuRef:o,isOpen:t.isOpen,isDisabled:a}),{submenuTriggerProps:{id:u,"aria-controls":t.isOpen?c:void 0,"aria-haspopup":a?void 0:i,"aria-expanded":t.isOpen?"true":"false",onPressStart:C,onPress:A,onHoverChange:$,onKeyDown:x,isOpen:t.isOpen},submenuProps:v,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:w}}}function Lx(e){let t=gi(e),[r,n]=h.useState(null),[o,i]=h.useState([]),a=()=>{i([]),t.close()};return P(E({focusStrategy:r},t),{open(l=null){n(l),t.open()},toggle(l=null){n(l),t.toggle()},close(){a()},expandedKeysStack:o,openSubmenu:(l,s)=>{i(u=>s>u.length?u:[...u.slice(0,s),l])},closeSubmenu:(l,s)=>{i(u=>u[s]===l?u.slice(0,s):u)}})}function Z9(e,t){let{triggerKey:r}=e,{expandedKeysStack:n,openSubmenu:o,closeSubmenu:i,close:a}=t,[l]=h.useState(n==null?void 0:n.length),s=h.useMemo(()=>n[l]===r,[n,r,l]),[u,c]=h.useState(null),d=h.useCallback(m=>{c(m!=null?m:null),o(r,l)},[o,l,r]),f=h.useCallback(()=>{c(null),i(r,l)},[i,l,r]),p=h.useCallback(m=>{c(m!=null?m:null),s?f():d(m)},[f,d,s]);return h.useMemo(()=>({focusStrategy:u,isOpen:s,open:d,close:f,closeAll:a,submenuLevel:l,setOpen:()=>{},toggle:p}),[s,d,f,a,u,p,l])}var Q9=class{*[Symbol.iterator](){yield*Cr(this.iterable)}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var r;return t&&(r=t.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let t=this.keyMap.get(e);var r;return t&&(r=t.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t=t||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||t.has(a.key)))for(let l of a.childNodes)r(l)};for(let a of e)r(a);let n=null,o=0;for(let[a,l]of this.keyMap)n?(n.nextKey=a,l.prevKey=n.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=o++),n=l,n.nextKey=void 0;var i;this.lastKey=(i=n==null?void 0:n.key)!==null&&i!==void 0?i:null}},mr=class kx extends Set{constructor(t,r,n){super(t),t instanceof kx?(this.anchorKey=r!=null?r:t.anchorKey,this.currentKey=n!=null?n:t.currentKey):(this.anchorKey=r!=null?r:null,this.currentKey=n!=null?n:null)}};function eM(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function Xf(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,a=h.useRef(!1),[,l]=h.useState(!1),s=h.useRef(null),u=h.useRef(null),[,c]=h.useState(null),d=h.useMemo(()=>H0(e.selectedKeys),[e.selectedKeys]),f=h.useMemo(()=>H0(e.defaultSelectedKeys,new mr),[e.defaultSelectedKeys]),[p,m]=vl(d,f,e.onSelectionChange),y=h.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[S,b]=h.useState(o);o==="replace"&&S==="toggle"&&typeof p=="object"&&p.size===0&&b("replace");let v=h.useRef(o);return h.useEffect(()=>{o!==v.current&&(b(o),v.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:S,setSelectionBehavior:b,get isFocused(){return a.current},setFocused(x){a.current=x,l(x)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(x,C="first"){s.current=x,u.current=C,c(x)},selectedKeys:p,setSelectedKeys(x){(n||!eM(x,p))&&m(x)},disabledKeys:y,disabledBehavior:i}}function H0(e,t){return e?e==="all"?"all":new mr(e):t}var Jf=class Nx{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&Bu(this.collection,o,t)<0)&&(t=o)}var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&Bu(this.collection,o,t)>0)&&(t=o)}var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new mr([r],r,r);else{let a=this.state.selectedKeys;var o;let l=(o=a.anchorKey)!==null&&o!==void 0?o:r;n=new mr(a,l,r);var i;for(let s of this.getKeyRange(l,(i=a.currentKey)!==null&&i!==void 0?i:r))n.delete(s);for(let s of this.getKeyRange(r,l))this.canSelectItem(s)&&n.add(s)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?Bu(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let o=[],i=t;for(;i!=null;){let a=this.collection.getItem(i);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&o.push(i),i===r)return o;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new mr(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new mr([r],r,r):new mr;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new mr;for(let n of t){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var o;let a=this.collection.getItem(n);(a==null?void 0:a.type)==="item"&&t.push(n);var i;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&r((i=(o=z9(Fx(a,this.collection)))===null||o===void 0?void 0:o.key)!==null&&i!==void 0?i:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new mr)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}withCollection(t){return new Nx(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n==null?void 0:n.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=(n==null?void 0:n.layoutDelegate)||null}};function tM(e){let{onExpandedChange:t}=e,[r,n]=vl(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=Xf(e),i=h.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=Ix(e,h.useCallback(l=>new Q9(l,{expandedKeys:r}),[r]),null);return h.useEffect(()=>{o.focusedKey!=null&&!a.getItem(o.focusedKey)&&o.setFocusedKey(null)},[a,o.focusedKey]),{collection:a,expandedKeys:r,disabledKeys:i,toggleKey:l=>{n(rM(r,l))},setExpandedKeys:n,selectionManager:new Jf(a,o)}}function rM(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}var Mx=h.createContext(null),Al=h.createContext(null),Na=h.createContext(null),Ma=h.createContext(null),Bx=h.createContext(null),jx=class extends En{filter(e,t,r){let n=e.getItem(this.firstChildKey);if(n&&r(n.textValue,this)){let o=this.clone();return t.addDescendants(o,e),o}return null}};jx.type="submenutrigger";qf(jx,(e,t,r)=>{let{CollectionBranch:n}=h.useContext(yi),o=h.useContext(Al),i=h.useContext(Na),a=Z9({triggerKey:r.key},i),l=h.useRef(null),s=Wt(t),{parentMenuRef:u,shouldUseVirtualFocus:c}=h.useContext(Bx),{submenuTriggerProps:d,submenuProps:f,popoverProps:p}=J9({parentMenuRef:u,submenuRef:l,delay:e.delay,shouldUseVirtualFocus:c},a,s);return g.createElement($r,{values:[[Ba,P(E({},d),{onAction:void 0,ref:s})],[Mx,E({ref:l},f)],[Ol,a],[Yf,E({trigger:"SubmenuTrigger",triggerRef:s,placement:"end top","aria-labelledby":f["aria-labelledby"]},p)]]},g.createElement(n,{collection:o.collection,parent:r}),e.children[1])},e=>e.children[0]);h.forwardRef(function(e,t){return[e,t]=rt(e,t,Mx),g.createElement(hx,{content:g.createElement(yx,e)},r=>g.createElement(nM,{props:e,collection:r,menuRef:t}))});function nM({props:e,collection:t,menuRef:r}){[e,r]=rt(e,r,I0);let m=e,{filter:n}=m,o=G(m,["filter"]),i=h.useMemo(()=>n?t.filter(n):t,[t,n]),a=tM(P(E({},e),{collection:i,children:void 0})),l=h.useContext(Na),{isVirtualized:s,CollectionRoot:u}=h.useContext(yi),{menuProps:c}=M9(P(E({},e),{isVirtualized:s,onClose:e.onClose||(l==null?void 0:l.close)}),a,r),d=xt({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:a.collection.size===0}}),f=null;a.collection.size===0&&e.renderEmptyState&&(f=g.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let p=Te(e,{global:!0});return g.createElement(jf,null,g.createElement("div",P(E({},le(p,d,c)),{ref:r,slot:e.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:e.onScroll}),g.createElement($r,{values:[[Al,a],[_x,{elementType:"div"}],[Sx,{name:"MenuSection",render:Hx}],[Bx,{parentMenuRef:r,shouldUseVirtualFocus:o==null?void 0:o.shouldUseVirtualFocus}],[Ba,null],[I0,null],[O9,null],[Ma,a.selectionManager],[Na,l!=null?l:Lx({})]]},g.createElement(u,{collection:a.collection,persistedKeys:$x(a.selectionManager.focusedKey),scrollRef:r})),f))}var oM=class extends Jf{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,t){super(e.collection,t),this.parent=e}};function Hx(e,t,r,n="react-aria-MenuSection"){var o,i;let a=h.useContext(Al),{CollectionBranch:l}=h.useContext(yi),[s,u]=Ev();var c;let{headingProps:d,groupProps:f}=V9({heading:u,"aria-label":(c=r.props["aria-label"])!==null&&c!==void 0?c:void 0}),p=xt({defaultClassName:n,className:(o=r.props)===null||o===void 0?void 0:o.className,style:(i=r.props)===null||i===void 0?void 0:i.style,values:{}}),m=h.useContext(Ma),y=Xf(e),S=e.selectionMode!=null?new oM(m,y):m,b=Te(e,{global:!0});return delete b.id,g.createElement("section",P(E({},le(b,p,f)),{ref:t}),g.createElement($r,{values:[[wx,P(E({},d),{ref:s})],[Ma,S]]},g.createElement(l,{collection:a.collection,parent:r})))}qf(ux,Hx);var Ba=h.createContext(null);Tl(sx,function(e,t,r){var n;[e,t]=rt(e,t,Ba);let o=(n=kf(Ba))===null||n===void 0?void 0:n.id,i=h.useContext(Al),a=Wt(t),l=h.useContext(Ma),v=W9(P(E({},e),{id:o,key:r.key,selectionManager:l}),i,a),{menuItemProps:s,labelProps:u,descriptionProps:c,keyboardShortcutProps:d}=v,f=G(v,["menuItemProps","labelProps","descriptionProps","keyboardShortcutProps"]),{hoverProps:p,isHovered:m}=lo({isDisabled:f.isDisabled}),y=xt(P(E({},e),{children:r.rendered,defaultClassName:"react-aria-MenuItem",values:P(E({},f),{isHovered:m,isFocusVisible:f.isFocusVisible,selectionMode:l.selectionMode,selectionBehavior:l.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"})})),S=e.href?"a":"div",b=Te(e,{global:!0});return delete b.id,delete b.onClick,g.createElement(S,P(E({},le(b,y,s,p)),{ref:a,"data-disabled":f.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-selected":f.isSelected||void 0,"data-selection-mode":l.selectionMode==="none"?void 0:l.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0}),g.createElement($r,{values:[[zS,{slots:{[Da]:u,label:u,description:c}}],[Cx,d]]},y.children))});function iM(e,t){let{role:r="dialog"}=e,n=ua();n=e["aria-label"]?void 0:n;let o=h.useRef(!1);return h.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){kr(t.current);let i=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),kr(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),DS(),{dialogProps:P(E({},Te(e,{labelable:!0})),{role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:i=>{o.current&&i.stopPropagation()}}),titleProps:{id:n}}}var Ux=h.createContext(null),Ol=h.createContext(null);function aM(e){let t=Lx(e),r=h.useRef(null),{triggerProps:n,overlayProps:o}=i7({},t,r),[i,a]=h.useState(null),l=h.useCallback(()=>{r.current&&a(r.current.offsetWidth+"px")},[r]);return _a({ref:r,onResize:l}),n.id=et(),o["aria-labelledby"]=n.id,g.createElement($r,{values:[[Ol,t],[Na,t],[Ux,o],[Yf,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":o["aria-labelledby"],style:{"--trigger-width":i}}]]},g.createElement(vL,P(E({},n),{ref:r,isPressed:t.isOpen}),e.children))}h.forwardRef(function(e,t){let r=e["aria-labelledby"];[e,t]=rt(e,t,Ux);let{dialogProps:n,titleProps:o}=iM(P(E({},e),{"aria-labelledby":r}),t),i=h.useContext(Ol);!n["aria-label"]&&!n["aria-labelledby"]&&(e["aria-labelledby"]&&(n["aria-labelledby"]=e["aria-labelledby"]));let a=xt({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(i==null?void 0:i.close)||(()=>{})}}),l=Te(e,{global:!0});return g.createElement("section",P(E({},le(l,a,n)),{ref:t,slot:e.slot||void 0}),g.createElement($r,{values:[[US,{slots:{[Da]:{},title:P(E({},o),{level:2})}}],[vx,{slots:{[Da]:{},close:{onPress:()=>i==null?void 0:i.close()}}}]]},a.children))});var zx=f=>{var p=f,{placement:e="bottom-start",hasChrome:t=!0,hasCloseButton:r=!1,closeLabel:n,offset:o=8,padding:i,popover:a,children:l,defaultVisible:s,visible:u,onVisibleChange:c}=p,d=G(p,["placement","hasChrome","hasCloseButton","closeLabel","offset","padding","popover","children","defaultVisible","visible","onVisibleChange"]);let m=zf(e),[y,S]=h.useState(s!=null?s:!1),b=h.useCallback(x=>{S(x),c==null||c(x)},[c]),v=h.useCallback(()=>S(!1),[]);return g.createElement(aM,E({defaultOpen:s,isOpen:u!=null?u:y,onOpenChange:b},d),g.createElement(EL,null,l),g.createElement(_9,{placement:m,offset:o,style:{outline:"none"}},g.createElement(mi,{hasChrome:t,hideLabel:n,onHide:r?v:void 0,padding:i},typeof a=="function"?a({onHide:v}):a)))},Kx=h.forwardRef((e,t)=>g.createElement(mi,E({ref:t},e)));Kx.displayName="Tooltip";h.lazy(()=>Fr(()=>import("./WithTooltip-IO6J4KBT-B70Ikd3l.js"),__vite__mapDeps([5,1,2,3]),import.meta.url).then(e=>({default:e.WithTooltip})));h.lazy(()=>Fr(()=>import("./WithTooltip-IO6J4KBT-B70Ikd3l.js"),__vite__mapDeps([5,1,2,3]),import.meta.url).then(e=>({default:e.WithTooltipPure})));const{deprecate:Fq}=__STORYBOOK_MODULE_CLIENT_LOGGER__;N.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));N.span();N.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}}));N.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"}));N.div({padding:15,width:280,boxSizing:"border-box"});const{deprecate:lM}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var sM=vt(Qn(),1);const{deprecate:uM}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var cM=N(o=>{var i=o,{active:e,loading:t,disabled:r}=i,n=G(i,["active","loading","disabled"]);return g.createElement("span",E({},n))})(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?E({display:"inline-block",flex:"none"},t.animation.inlineGlow):{},({disabled:e,theme:t})=>e?{color:t.textMutedColor}:{}),dM=N.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"}}),fM=N.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column",minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),pM=N.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),hM=N.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),gM=N.button(({theme:e})=>({width:"100%",minWidth:0,border:"none",borderRadius:e.appBorderRadius,background:"none",fontSize:e.typography.size.s1,transition:"background 150ms ease-out",color:e.color.dark,textDecoration:"none",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:0}}),({theme:e,href:t,onClick:r})=>(t||r)&&{cursor:"pointer","&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}},({theme:e,as:t})=>t==="label"&&{"&:has(input:not(:disabled))":{cursor:"pointer","&:hover":{background:e.background.hoverable}}},({disabled:e})=>e&&{cursor:"not-allowed"}),mM=(0,sM.default)(100)(({onClick:e,input:t,href:r,LinkWrapper:n})=>E(E(E({},e&&{as:"button",role:"button",onClick:e}),t&&{as:"label"}),r&&E({as:"a",role:"link",href:r},n&&{as:n,to:r}))),Gx=h.forwardRef((e,t)=>{let v=e,{loading:r=!1,title:n=g.createElement("span",null,"Loading state"),center:o=null,right:i=null,active:a=!1,disabled:l=!1,isIndented:s=!1,href:u=void 0,onClick:c=void 0,icon:d,input:f,LinkWrapper:p=void 0}=v,m=G(v,["loading","title","center","right","active","disabled","isIndented","href","onClick","icon","input","LinkWrapper"]),y={active:a,disabled:l},S=mM(e),b=d||f;return uM("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),g.createElement(gM,E(E(E({"data-deprecated":"ListItem",ref:t},m),y),S),g.createElement(g.Fragment,null,b&&g.createElement(hM,E({},y),b),n||o?g.createElement(fM,{isIndented:s&&!b},n&&g.createElement(cM,P(E({},y),{loading:r}),n),o&&g.createElement(pM,E({},y),o)):null,i&&g.createElement(dM,E({},y),i)))});Gx.displayName="ListItem";var Wx=Gx,yM=N.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32+8},({theme:e})=>({borderRadius:e.appBorderRadius+2}),({theme:e})=>e.base==="dark"?{background:e.background.content}:{}),bM=N.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),EM=n=>{var o=n,{id:e,onClick:t}=o,r=G(o,["id","onClick"]);let{active:i,disabled:a,title:l,href:s}=r,u=h.useCallback(c=>t==null?void 0:t(c,{id:e,active:i,disabled:a,title:l,href:s}),[t,e,i,a,l,s]);return g.createElement(Wx,E(E({id:`list-item-${e}`},r),t&&{onClick:u}))},Vx=n=>{var o=n,{links:e,LinkWrapper:t}=o,r=G(o,["links","LinkWrapper"]);lM("`TooltipLinkList` is deprecated and will be removed in Storybook 11, use `ActionList` or `MenuItem` and `WithMenu` instead.");let i=Array.isArray(e[0])?e:[e],a=i.some(l=>l.some(s=>"icon"in s&&s.icon||"input"in s&&s.input));return g.createElement(yM,P(E({"data-deprecated":"TooltipLinkList"},r),{className:"sb-list"}),i.filter(l=>l.length).map((l,s)=>g.createElement(bM,{key:l.map(u=>u.id).join(`~${s}~`)},l.map(u=>"content"in u?g.createElement(h.Fragment,{key:u.id},u.content):g.createElement(EM,E({key:u.id,isIndented:a,LinkWrapper:t},u))))))};const{deprecate:Rl}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:vM}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var SM=N.div(({backgroundColor:e,border:t=!1,innerStyle:r={},scrollable:n,theme:o})=>E(E({color:o.barTextColor,width:"100%",minHeight:40,flexShrink:0,scrollbarColor:`${o.barTextColor} ${t?e||o.barBg:"transparent"}`,scrollbarWidth:"thin",overflow:n?"auto":"hidden",overflowY:"hidden",display:"flex",alignItems:"center",gap:n?0:6,paddingInline:n?0:6},t?{boxShadow:`${o.appBorderColor} 0 -1px 0 0 inset`,background:e||o.barBg}:{}),r)),xM=N.div(({innerStyle:e})=>E({minHeight:40,display:"flex",alignItems:"center",width:"100%",gap:6,paddingInline:6},e)),bi=h.forwardRef((i,o)=>{var a=i,{scrollable:e=!0,children:t,innerStyle:r}=a,n=G(a,["scrollable","children","innerStyle"]);return g.createElement(SM,P(E({},n),{ref:o,innerStyle:e?void 0:r,scrollable:e}),e?g.createElement(xM,{innerStyle:r},t):t)});bi.displayName="Bar";var ld=N.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:10},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{gap:6}:{});ld.displayName="Side";var $M=N.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,width:"100%",backgroundColor:e||""})),wM=N(bi)({paddingInline:0}),Zf=o=>{var i=o,{children:e,backgroundColor:t,className:r=""}=i,n=G(i,["children","backgroundColor","className"]);vM('FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.');let[a,l]=h.Children.toArray(e);return g.createElement(wM,E({"data-deprecated":"FlexBar",backgroundColor:t,className:`sb-bar ${r}`},n),g.createElement($M,{bgColor:t},g.createElement(ld,{scrollable:n.scrollable,left:!0},a),l?g.createElement(ld,{right:!0},l):null))};Zf.displayName="FlexBar";const{deprecate:CM}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var _M=e=>typeof e.props.href=="string",TM=e=>typeof e.props.href!="string";function AM(n,r){var o=n,{children:e}=o,t=G(o,["children"]);let i={props:t,ref:r};if(_M(i))return g.createElement("a",E({ref:i.ref},i.props),e);if(TM(i))return g.createElement("button",E({ref:i.ref,type:"button"},i.props),e);throw new Error("invalid props")}var qx=h.forwardRef(AM);qx.displayName="ButtonOrLink";var OM=N(qx,{shouldForwardProp:rl})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}}),Ei=h.forwardRef((e,t)=>(CM("The `TabButton` component is deprecated. Use `TabList` instead."),g.createElement(OM,E({"data-deprecated":"TabButton",ref:t},e))));Ei.displayName="TabButton";var RM=N.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),DM=N.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),PM=N.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.color.defaultText})),IM=N.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),FM=N.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),vi=({title:e,description:t,footer:r})=>g.createElement(RM,null,g.createElement(DM,null,g.createElement(PM,null,e),t&&g.createElement(FM,null,t)),r&&g.createElement(IM,null,r));const{deprecate:LM}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Yx=N.div(({active:e})=>e?{display:"block"}:{display:"none"}),kM=e=>(LM("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),h.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:o}})=>{let i=Array.isArray(o)?o[0]:o;return P(E({title:t,id:r},n?{color:n}:{}),{render:typeof i=="function"?i:({active:a})=>g.createElement(Yx,{active:a,role:"tabpanel"},i)})}));const{deprecate:NM}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var MM=N.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),BM=N(Ei)(({active:e,theme:t,preActive:r})=>`
|
|
676
|
+
color: ${r||e?t.barSelectedColor:t.barTextColor};
|
|
677
|
+
.addon-collapsible-icon {
|
|
678
|
+
color: ${r||e?t.barSelectedColor:t.barTextColor};
|
|
679
|
+
}
|
|
680
|
+
&:hover {
|
|
681
|
+
color: ${t.barHoverColor};
|
|
682
|
+
.addon-collapsible-icon {
|
|
683
|
+
color: ${t.barHoverColor};
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
`);function jM(e){NM("The `useList` tabs hook is deprecated. Use `TabsView` instead.");let t=h.useRef(),r=h.useRef(),n=h.useRef(new Map),{width:o=1}=JS({ref:t}),[i,a]=h.useState(e),[l,s]=h.useState([]),u=h.useRef(e),c=h.useCallback(({menuName:f,actions:p})=>{let m=l.some(({active:b})=>b),[y,S]=h.useState(!1);return g.createElement(g.Fragment,null,g.createElement(zx,{visible:y,onVisibleChange:S,placement:"bottom",popover:g.createElement(Vx,{links:l.map(({title:b,id:v,color:x,active:C})=>({id:v,title:b,color:x,active:C,onClick:A=>{A.preventDefault(),p.onSelect(v)}}))})},g.createElement(BM,{id:"addons-menu-button",ref:r,active:m,preActive:y,style:{visibility:l.length?"visible":"hidden"},"aria-hidden":!l.length,className:"tabbutton",type:"button",role:"tab"},f,g.createElement(MM,{className:"addon-collapsible-icon",isActive:m||y}))),l.map(({title:b,id:v,color:x},C)=>{var $;let A=`index-${C}`;return g.createElement(Ei,{id:`tabbutton-${($=Mn(v))!=null?$:A}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:w=>{n.current.set(v,w)},className:"tabbutton",type:"button",key:v,textColor:x,role:"tab"},b)}))},[l]),d=h.useCallback(()=>{if(!t.current||!r.current)return;let{x:f,width:p}=t.current.getBoundingClientRect(),{width:m}=r.current.getBoundingClientRect(),y=l.length?f+p-m:f+p,S=[],b=0,v=e.filter(x=>{let{id:C}=x,A=n.current.get(C),{width:$=0}=(A==null?void 0:A.getBoundingClientRect())||{},w=f+b+$>y;return(!w||!A)&&S.push(x),b+=$,w});(S.length!==i.length||u.current!==e)&&(a(S),s(v),u.current=e)},[l.length,e,i]);return h.useLayoutEffect(d,[d,o]),{tabRefs:n,addonsRef:r,tabBarRef:t,visibleList:i,invisibleList:l,AddonTab:c}}var HM="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",UM=N.div(({theme:e,bordered:t})=>t?{backgroundClip:"padding-box",border:`1px solid ${e.appBorderColor}`,borderRadius:e.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{},({absolute:e})=>e?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"}),zM=N.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1}),Qf=h.forwardRef((e,t)=>(Rl("The `TabBar` component is deprecated. Use `TabsView` instead."),g.createElement(zM,P(E({"data-deprecated":"TabBar"},e),{ref:t}))));Qf.displayName="TabBar";var KM=N.div({display:"block",position:"relative",container:"tab-content / inline-size"},({theme:e})=>({fontSize:e.typography.size.s2-1,background:e.background.content}),({bordered:e,theme:t})=>e?{borderRadius:`0 0 ${t.appBorderRadius-1}px ${t.appBorderRadius-1}px`}:{},({absolute:e,bordered:t})=>e?{height:`calc(100% - ${t?42:40}px)`,position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:40+(t?1:0),overflow:"auto",[`& > *:first-child${HM}`]:{position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:0+(t?1:0),height:`calc(100% - ${t?2:0}px)`,overflow:"auto"}}:{}),Xx=h.forwardRef(({active:e,render:t,children:r},n)=>(Rl("The `TabWrapper` component is deprecated. Use `TabsView` instead."),g.createElement(Yx,{"data-deprecated":"TabWrapper",ref:n,active:e},t?t():r)));Xx.displayName="TabWrapper";var GM=class extends h.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error("Error rendering addon panel"),console.error(e),console.error(t.componentStack)}render(){return this.state.hasError&&this.props.active?g.createElement(vi,{title:"This addon has errors",description:"Check your browser logs and addon code to pinpoint what went wrong. This issue was not caused by Storybook."}):this.props.children}},ep=h.memo(({children:e,selected:t=null,actions:r,absolute:n=!1,bordered:o=!1,tools:i=null,backgroundColor:a,id:l=null,menuName:s="Tabs",emptyState:u,showToolsWhenEmpty:c})=>{Rl("The `Tabs` component is deprecated. Use `TabsView` instead.");let d=h.useMemo(()=>kM(e).map((b,v)=>P(E({},b),{active:t?b.id===t:v===0})),[e,t]),{visibleList:f,tabBarRef:p,tabRefs:m,AddonTab:y}=jM(d),S=u!=null?u:g.createElement(vi,{title:"Nothing found"});return!c&&d.length===0?S:g.createElement(UM,{"data-deprecated":"Tabs",absolute:n,bordered:o,id:l},g.createElement(Zf,{scrollable:!1,border:!0,backgroundColor:a},g.createElement(Qf,{style:{whiteSpace:"normal"},ref:p,role:"tablist"},f.map(({title:b,id:v,active:x,color:C},A)=>{var w;let $=`index-${A}`;return g.createElement(Ei,{id:`tabbutton-${(w=Mn(v))!=null?w:$}`,ref:_=>{m.current.set(v,_)},className:`tabbutton ${x?"tabbutton-active":""}`,type:"button",key:v,active:x,textColor:C,onClick:_=>{_.preventDefault(),r.onSelect(v)},role:"tab","aria-selected":x},typeof b=="function"?g.createElement("title",null):b)}),g.createElement(y,{menuName:s,actions:r})),i),g.createElement(KM,{id:"panel-tab-content",bordered:o,absolute:n},d.length?d.map(({id:b,active:v,render:x})=>g.createElement(GM,{key:b,active:v},g.createElement(x,{active:v},null))):S))});ep.displayName="Tabs";var Jx=class extends h.Component{constructor(e){super(e),this.handlers={onSelect:t=>this.setState({selected:t})},Rl("The `TabsState` class is deprecated. Use `TabsView` instead."),this.state={selected:e.initial}}render(){let{bordered:e=!1,absolute:t=!1,children:r,backgroundColor:n,menuName:o}=this.props,{selected:i}=this.state;return g.createElement(ep,{bordered:e,absolute:t,selected:i,backgroundColor:n,menuName:o,actions:this.handlers},r)}};Jx.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0};var Zx=N.span(({theme:e})=>({width:1,height:20,background:e.appBorderColor,marginLeft:2,marginRight:2}),({force:e})=>e?{}:{"& + &":{display:"none"}});Zx.displayName="Separator";N.div(({theme:e})=>({fontSize:e.typography.size.s2-1,height:"100%"}));function WM(e,t){let{"aria-label":r,"aria-labelledby":n,orientation:o="horizontal"}=e,[i,a]=h.useState(!1);ge(()=>{var m;a(!!(t.current&&!((m=t.current.parentElement)===null||m===void 0)&&m.closest('[role="toolbar"]')))});let{direction:l}=wr(),s=l==="rtl"&&o==="horizontal",u=e7(t),c=m=>{if(m.currentTarget.contains(m.target)){if(o==="horizontal"&&m.key==="ArrowRight"||o==="vertical"&&m.key==="ArrowDown")s?u.focusPrevious():u.focusNext();else if(o==="horizontal"&&m.key==="ArrowLeft"||o==="vertical"&&m.key==="ArrowUp")s?u.focusNext():u.focusPrevious();else if(m.key==="Tab"){m.stopPropagation(),d.current=document.activeElement,m.shiftKey?u.focusFirst():u.focusLast();return}else return;m.stopPropagation(),m.preventDefault()}},d=h.useRef(null),f=m=>{!m.currentTarget.contains(m.relatedTarget)&&!d.current&&(d.current=m.target)},p=m=>{var y;if(d.current&&!m.currentTarget.contains(m.relatedTarget)&&!((y=t.current)===null||y===void 0)&&y.contains(m.target)){var S;(S=d.current)===null||S===void 0||S.focus(),d.current=null}};return{toolbarProps:P(E({},Te(e,{labelable:!0})),{role:i?"group":"toolbar","aria-orientation":o,"aria-label":r,"aria-labelledby":r==null?n:void 0,onKeyDownCapture:i?void 0:c,onFocusCapture:i?void 0:p,onBlurCapture:i?void 0:f})}}var Qx=n=>{var o=n,{"aria-label":e,"aria-labelledby":t}=o,r=G(o,["aria-label","aria-labelledby"]);let i=h.useRef(null),{toolbarProps:a}=WM({"aria-label":e,"aria-labelledby":t,orientation:"horizontal"},i);return g.createElement(bi,E(E({ref:i},a),r))},e$=new WeakMap;function ja(e,t,r){return e?(typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${e$.get(e)}-${r}-${t}`):""}function t$(e,t,r){let{key:n,isDisabled:o,shouldSelectOnPressUp:i}=e,{selectionManager:a,selectedKey:l}=t,s=n===l,u=o||t.isDisabled||t.selectionManager.isDisabled(n),{itemProps:c,isPressed:d}=Dx({selectionManager:a,key:n,ref:r,isDisabled:u,shouldSelectOnPressUp:i,linkBehavior:"selection"}),f=ja(t,n,"tab"),p=ja(t,n,"tabpanel"),{tabIndex:m}=c,y=t.collection.getItem(n),S=Te(y==null?void 0:y.props,{labelable:!0});delete S.id;let b=QE(y==null?void 0:y.props),{focusableProps:v}=hi({isDisabled:u},r);return{tabProps:le(S,v,b,c,{id:f,"aria-selected":s,"aria-disabled":u||void 0,"aria-controls":s?p:void 0,tabIndex:u?void 0:m,role:"tab"}),isSelected:s,isDisabled:u,isPressed:d}}function r$(e,t,r){let n=r7(r)?void 0:0;var o;let i=ja(t,(o=e.id)!==null&&o!==void 0?o:t==null?void 0:t.selectedKey,"tabpanel"),a=El(P(E({},e),{id:i,"aria-labelledby":ja(t,t==null?void 0:t.selectedKey,"tab")}));return{tabPanelProps:le(a,{tabIndex:n,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}var VM=class{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var t,r;return this.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(t=r.props)===null||t===void 0)&&t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(t!=null&&this.isDisabled(t));return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(t!=null&&this.isDisabled(t));return t}constructor(e,t,r,n=new Set){this.collection=e,this.flipDirection=t==="rtl"&&r==="horizontal",this.disabledKeys=n,this.tabDirection=r==="horizontal"}};function n$(e,t,r){let{orientation:n="horizontal",keyboardActivation:o="automatic"}=e,{collection:i,selectionManager:a,disabledKeys:l}=t,{direction:s}=wr(),u=h.useMemo(()=>new VM(i,s,n,l),[i,l,n,s]),{collectionProps:c}=Rx({ref:r,selectionManager:a,keyboardDelegate:u,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),d=et();e$.set(t,d);let f=El(P(E({},e),{id:d}));return{tabListProps:P(E({},le(c,f)),{role:"tablist","aria-orientation":n,tabIndex:void 0})}}var qM=N.button({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none",scrollSnapAlign:"start","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus-visible":{outline:"0 none",boxShadow:`inset 0 0 0 2px ${e.barSelectedColor}`}}),({isSelected:e,theme:t})=>e?{color:t.barSelectedColor,borderBottomColor:t.barSelectedColor}:{color:t.barTextColor,borderBottomColor:"transparent","&:hover":{color:t.barHoverColor}}),YM=N.div({display:"flex",alignItems:"center",flexShrink:0,position:"relative",overflow:"hidden"}),XM=N.div({display:"flex",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",WebkitScrollbar:"none",scrollSnapType:"x mandatory",flex:1,"&::-webkit-scrollbar":{display:"none"}}),JM=N.div({display:"flex",flexShrink:0}),U0=28,z0=N.div(({$showStartBorder:e,$showEndBorder:t,theme:r})=>({flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",padding:6,boxShadow:e?`inset 1px 0 0 ${r.appBorderColor}`:t?`inset -1px 0 0 ${r.appBorderColor}`:"none"})),K0=N(Pe)({flexShrink:0,paddingInline:0,width:16}),ZM=({item:e,state:t})=>{let{rendered:r}=e,n=g.useRef(null),o=t,{tabProps:i,isDisabled:a,isPressed:l,isSelected:s}=t$(e,o,n);return g.createElement(qM,P(E({},i),{isDisabled:a,isPressed:l,isSelected:s,className:`tabbutton ${s?"tabbutton-active":""}`,ref:n}),r)},o$=r=>{var n=r,{state:e}=n,t=G(n,["state"]);let o=h.useRef(null),i=h.useRef(null),a=h.useRef(null),{tabListProps:l}=n$({orientation:"horizontal"},e,a),[s,u]=h.useState(!1),[c,d]=h.useState(!1),[f,p]=h.useState(!1),m=h.useCallback(()=>{let x=i.current,C=o.current;if(!x||!C)return;let{scrollLeft:A,scrollWidth:$,clientWidth:w}=x,_=C.clientWidth-(s?U0*2:0),O=$>_;u(O),O?(d(A>0),p(A<$-w)):(d(!1),p(!1))},[s]),y=h.useCallback(()=>{m()},[m]);h.useEffect(()=>{let x=i.current;if(!x||typeof window>"u")return;x.addEventListener("scroll",y,{passive:!0});let C=null;typeof ResizeObserver<"u"&&(C=new ResizeObserver(y),C.observe(x));let A=setTimeout(y,0);return()=>{clearTimeout(A),x.removeEventListener("scroll",y),C&&C.disconnect()}},[y]);let S=h.useCallback(x=>{let C=i.current,A=o.current;if(!C||!A||typeof window>"u")return;let $=A.clientWidth-U0*2,w=x==="backward"?-$:$;typeof C.scrollBy=="function"?C.scrollBy({left:w,behavior:"smooth"}):C.scrollLeft+=w},[]),b=h.useCallback(()=>S("backward"),[S]),v=h.useCallback(()=>S("forward"),[S]);return g.createElement(YM,P(E({},t),{ref:o,"data-show-scroll-buttons":s}),s&&g.createElement(z0,{$showEndBorder:c},g.createElement(K0,{variant:"ghost",padding:"small",size:"small",ariaLabel:"Scroll backward",disabled:!c,onClick:b,tabIndex:-1},g.createElement(q5,null))),g.createElement(XM,{ref:i},g.createElement(JM,E({ref:a},l),[...e.collection].map(x=>g.createElement(ZM,{key:x.key,item:x,state:e})))),s&&g.createElement(z0,{$showStartBorder:f},g.createElement(K0,{variant:"ghost",padding:"small",size:"small",ariaLabel:"Scroll forward",disabled:!f,onClick:v,tabIndex:-1},g.createElement(Y5,null))))},QM=N.div({overflowY:"hidden",height:"100%"}),i$=({hasScrollbar:e=!0,renderAllChildren:t=!1,state:r})=>{var a;let n=h.useRef(null),o=r,{tabPanelProps:i}=r$((a=o.selectedItem)!=null?a:{},o,n);return(t?[...o.collection]:[o.selectedItem]).filter(l=>!!l).map(l=>{let s=o.selectedKey===l.key;return g.createElement(QM,P(E({key:l.key,ref:s?n:void 0},s?i:{}),{id:s?`${i.id}`.replace(/null$/,`${l.key}`):void 0,hidden:s?void 0:!0}),e?g.createElement(Vd,{vertical:!0},l.props.children):l.props.children)})},G0=class{*[Symbol.iterator](){yield*Cr(this.iterable)}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var r;return t&&(r=t.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let t=this.keyMap.get(e);var r;return t&&(r=t.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(t==null?void 0:t.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let l of a.childNodes)t(l)};for(let a of e)t(a);let r=null,n=0,o=0;for(let[a,l]of this.keyMap)r?(r.nextKey=a,l.prevKey=r.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=n++),(l.type==="section"||l.type==="item")&&o++,r=l,r.nextKey=void 0;this._size=o;var i;this.lastKey=(i=r==null?void 0:r.key)!==null&&i!==void 0?i:null}};function eB(e){let{filter:t,layoutDelegate:r}=e,n=Xf(e),o=h.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=h.useCallback(u=>t?new G0(t(u)):new G0(u),[t]),a=h.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),l=Ix(e,i,a),s=h.useMemo(()=>new Jf(l,n,{layoutDelegate:r}),[l,n,r]);return tB(l,s),{collection:l,disabledKeys:o,selectionManager:s}}function tB(e,t){let r=h.useRef(null);h.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&r.current){let c=r.current.getItem(t.focusedKey),d=[...r.current.getKeys()].map(b=>{let v=r.current.getItem(b);return(v==null?void 0:v.type)==="item"?v:null}).filter(b=>b!==null),f=[...e.getKeys()].map(b=>{let v=e.getItem(b);return(v==null?void 0:v.type)==="item"?v:null}).filter(b=>b!==null);var n,o;let p=((n=d==null?void 0:d.length)!==null&&n!==void 0?n:0)-((o=f==null?void 0:f.length)!==null&&o!==void 0?o:0);var i,a,l;let m=Math.min(p>1?Math.max(((i=c==null?void 0:c.index)!==null&&i!==void 0?i:0)-p+1,0):(a=c==null?void 0:c.index)!==null&&a!==void 0?a:0,((l=f==null?void 0:f.length)!==null&&l!==void 0?l:0)-1),y=null,S=!1;for(;m>=0;){if(!t.isDisabled(f[m].key)){y=f[m];break}if(m<f.length-1&&!S)m++;else{S=!0;var s,u;m>((s=c==null?void 0:c.index)!==null&&s!==void 0?s:0)&&(m=(u=c==null?void 0:c.index)!==null&&u!==void 0?u:0),m--}}t.setFocusedKey(y?y.key:null)}r.current=e},[e,t])}function rB(e){var t;let[r,n]=vl(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=h.useMemo(()=>r!=null?[r]:[],[r]),{collection:i,disabledKeys:a,selectionManager:l}=eB(P(E({},e),{selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:u=>{if(u==="all")return;var c;let d=(c=u.values().next().value)!==null&&c!==void 0?c:null;d===r&&e.onSelectionChange&&e.onSelectionChange(d),n(d)}})),s=r!=null?i.getItem(r):null;return{collection:i,disabledKeys:a,selectionManager:l,selectedKey:r,setSelectedKey:n,selectedItem:s}}function a$(e){var t,r;let n=rB(P(E({},e),{onSelectionChange:e.onSelectionChange?s=>{var u;s!=null&&((u=e.onSelectionChange)===null||u===void 0||u.call(e,s))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(r=(t=e.defaultSelectedKey)!==null&&t!==void 0?t:W0(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set))!==null&&r!==void 0?r:void 0})),{selectionManager:o,collection:i,selectedKey:a}=n,l=h.useRef(a);return h.useEffect(()=>{let s=a;e.selectedKey==null&&(o.isEmpty||s==null||!i.getItem(s))&&(s=W0(i,n.disabledKeys),s!=null&&o.setSelectedKeys([s])),(s!=null&&o.focusedKey==null||!o.isFocused&&s!==l.current)&&o.setFocusedKey(s),l.current=s}),P(E({},n),{isDisabled:e.isDisabled||!1})}function W0(e,t){let r=null;if(e){var n,o,i,a;for(r=e.getFirstKey();r!=null&&(t.has(r)||!((o=e.getItem(r))===null||o===void 0||(n=o.props)===null||n===void 0)&&n.isDisabled)&&r!==e.getLastKey();)r=e.getKeyAfter(r);r!=null&&(t.has(r)||!((a=e.getItem(r))===null||a===void 0||(i=a.props)===null||i===void 0)&&i.isDisabled)&&r===e.getLastKey()&&(r=e.getFirstKey())}return r}var l$=({defaultSelected:e,onSelectionChange:t,selected:r,tabs:n})=>a$({children:n.map(({children:o,id:i,"aria-label":a,title:l})=>g.createElement(j9,{key:i,"aria-label":a,title:typeof l=="function"?g.createElement(l,null):l},typeof o=="function"?g.createElement(o,null):o)),disabledKeys:n.filter(({isDisabled:o})=>o).map(({id:o})=>o),defaultSelectedKey:e,onSelectionChange:o=>t==null?void 0:t(`${o}`),selectedKey:r}),nB=N.div({display:"flex",flexDirection:"column",height:"100%"}),oB=N(i$)(()=>({flex:1})),iB=N(o$)(({$simulatedGap:e})=>({flex:"1 1 0%",'&[data-show-scroll-buttons="true"]':{marginInlineEnd:e}})),s$=d=>{var f=d,{backgroundColor:e,barInnerStyle:t,defaultSelected:r,emptyState:n,onSelectionChange:o,panelProps:i={},selected:a,showToolsWhenEmpty:l,tabs:s,tools:u}=f,c=G(f,["backgroundColor","barInnerStyle","defaultSelected","emptyState","onSelectionChange","panelProps","selected","showToolsWhenEmpty","tabs","tools"]);var S;let p=l$({defaultSelected:r,onSelectionChange:o,selected:a,tabs:s}),m=n!=null?n:g.createElement(vi,{title:"Nothing found"}),y=s.length>0;return!l&&!y?m:g.createElement(nB,E({},c),g.createElement(bi,{scrollable:!1,border:!0,backgroundColor:e,innerStyle:P(E({display:"flex",justifyContent:"space-between",paddingInlineStart:0,paddingInlineEnd:10,"> *:not(:last-child)":{order:2},"> *":{flexShrink:0}},t),{gap:0})},u,y?g.createElement(iB,{state:p,$simulatedGap:(S=t==null?void 0:t.gap)!=null?S:6}):g.createElement("div",null)),y?g.createElement(oB,E({state:p},i)):m)},Dl=h.createContext(null),qn=h.createContext(null),aB=h.forwardRef(function(e,t){[e,t]=rt(e,t,Dl);let{children:r,orientation:n="horizontal"}=e;return r=h.useMemo(()=>typeof r=="function"?r({orientation:n,defaultChildren:null}):r,[r,n]),g.createElement(hx,{content:r},o=>g.createElement(lB,{props:e,collection:o,tabsRef:t}))});function lB({props:e,tabsRef:t,collection:r}){let{orientation:n="horizontal"}=e,o=a$(P(E({},e),{collection:r,children:void 0})),{focusProps:i,isFocused:a,isFocusVisible:l}=$l({within:!0}),s=h.useMemo(()=>({orientation:n,isFocusWithin:a,isFocusVisible:l}),[n,a,l]),u=xt(P(E({},e),{defaultClassName:"react-aria-Tabs",values:s})),c=Te(e,{global:!0});return g.createElement("div",P(E({},le(c,u,i)),{ref:t,slot:e.slot||void 0,"data-focused":a||void 0,"data-orientation":n,"data-focus-visible":l||void 0,"data-disabled":o.isDisabled||void 0}),g.createElement($r,{values:[[Dl,e],[qn,o]]},u.children))}var sB=h.forwardRef(function(e,t){return h.useContext(qn)?g.createElement(uB,{props:e,forwardedRef:t}):g.createElement(yx,e)});function uB({props:e,forwardedRef:t}){let r=h.useContext(qn),{CollectionRoot:n}=h.useContext(yi),{orientation:o="horizontal",keyboardActivation:i="automatic"}=kf(Dl),a=Wt(t),{tabListProps:l}=n$(P(E({},e),{orientation:o,keyboardActivation:i}),r,a),s=xt(P(E({},e),{children:null,defaultClassName:"react-aria-TabList",values:{orientation:o,state:r}})),u=Te(e,{global:!0});return delete u.id,g.createElement("div",P(E({},le(u,s,l)),{ref:a,"data-orientation":o||void 0}),g.createElement(n,{collection:r.collection,persistedKeys:$x(r.selectionManager.focusedKey)}))}var u$=class extends En{};u$.type="item";var cB=Tl(u$,(e,t,r)=>{let n=h.useContext(qn),o=Wt(t),{tabProps:i,isSelected:a,isDisabled:l,isPressed:s}=t$(E({key:r.key},e),n,o),{focusProps:u,isFocused:c,isFocusVisible:d}=$l(),{hoverProps:f,isHovered:p}=lo({isDisabled:l,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),m=xt(P(E({},e),{children:r.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:a,isDisabled:l,isFocused:c,isFocusVisible:d,isPressed:s,isHovered:p}})),y=r.props.href?"a":"div",S=Te(e,{global:!0});return delete S.id,delete S.onClick,g.createElement(y,P(E({},le(S,m,i,u,f)),{ref:o,"data-selected":a||void 0,"data-disabled":l||void 0,"data-focused":c||void 0,"data-focus-visible":d||void 0,"data-pressed":s||void 0,"data-hovered":p||void 0}),m.children)}),dB=Vf(function(e,t){let r=h.useContext(qn),n=Wt(t),m=e,{id:o}=m,i=G(m,["id"]),{tabPanelProps:a}=r$(e,r,n),{focusProps:l,isFocused:s,isFocusVisible:u}=$l(),c=r.selectedKey===e.id,d=xt(P(E({},e),{defaultClassName:"react-aria-TabPanel",values:{isFocused:s,isFocusVisible:u,isInert:Fm(!c),state:r}}));if(!c&&!e.shouldForceMount)return null;let f=Te(i,{global:!0});delete f.id;let p=c?le(f,a,l,d):d;return g.createElement("div",P(E({},p),{ref:n,"data-focused":s||void 0,"data-focus-visible":u||void 0,inert:Fm(!c||e.inert),"data-inert":c?void 0:"true"}),g.createElement($r,{values:[[Dl,null],[qn,null]]},g.createElement(yi.Provider,{value:xx},d.children)))});N.div({display:"flex",alignItems:"center",flexShrink:0,position:"relative",overflow:"hidden"});N.div({display:"flex",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",WebkitScrollbar:"none",scrollSnapType:"x mandatory",flex:1,"&::-webkit-scrollbar":{display:"none"}});N(sB)({display:"flex",flexShrink:0});N.div(({$showStartBorder:e,$showEndBorder:t,theme:r})=>({flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",padding:6,boxShadow:e?`inset 1px 0 0 ${r.appBorderColor}`:t?`inset -1px 0 0 ${r.appBorderColor}`:"none"}));N(Pe)({flexShrink:0,paddingInline:0,width:16});N(dB)({overflowY:"hidden",height:"100%",display:"block",'&[inert="true"]':{display:"none"}});N(aB)(({$simulatedGap:e})=>({display:"flex",flexDirection:"column",height:"100%",".tablist":{flex:"1 1 100%"},".tablist.tablist-has-scroll":{marginInlineEnd:e},"& > :not(:first-child)":{flex:1}}));N(cB)(({theme:e})=>({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none",scrollSnapAlign:"start","&:empty":{display:"none"},"&[hidden]":{display:"none"},padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus-visible":{outline:"0 none",boxShadow:`inset 0 0 0 2px ${e.barSelectedColor}`},color:e.barTextColor,borderBottomColor:"transparent","&:hover":{color:e.barHoverColor},"&[data-selected]":{color:e.barSelectedColor,borderBottomColor:e.barSelectedColor}}));var fB=Ke`
|
|
687
|
+
from {
|
|
688
|
+
transform: rotate(0deg);
|
|
689
|
+
}
|
|
690
|
+
to {
|
|
691
|
+
transform: rotate(360deg);
|
|
692
|
+
}
|
|
693
|
+
`,pB=N.div(({size:e=32})=>({borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-(e/2),marginLeft:-(e/2),height:e,width:e,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:"rgba(97, 97, 97, 0.29)",borderTopColor:"rgb(100,100,100)",animation:`${fB} 0.7s linear infinite`,mixBlendMode:"difference"})),V0=N.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),hB=N.div(({theme:e})=>({position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:vr(.8,e.color.secondary),overflow:"hidden",cursor:"progress"})),gB=N.div(({theme:e})=>({position:"absolute",top:0,left:0,height:"100%",background:e.color.secondary})),q0=N.div(({theme:e})=>({minHeight:"2em",fontSize:`${e.typography.size.s1}px`,color:e.textMutedColor})),mB=N(B5)(({theme:e})=>({width:20,height:20,marginBottom:"0.5rem",color:e.textMutedColor})),yB=Ke`
|
|
694
|
+
from { content: "..." }
|
|
695
|
+
33% { content: "." }
|
|
696
|
+
66% { content: ".." }
|
|
697
|
+
to { content: "..." }
|
|
698
|
+
`,bB=N.span({"&::after":{content:"'...'",animation:`${yB} 1s linear infinite`,animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),c$=o=>{var i=o,{progress:e,error:t,size:r}=i,n=G(i,["progress","error","size"]);if(t)return g.createElement(V0,E({"aria-label":t.toString(),"aria-live":"polite",role:"status"},n),g.createElement(mB,null),g.createElement(q0,null,t.message));if(e){let{value:a,modules:l}=e,{message:s}=e;return l&&(s+=` ${l.complete} / ${l.total} modules`),g.createElement(V0,E({"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":a*100,"aria-valuetext":s,role:"progressbar"},n),g.createElement(hB,null,g.createElement(gB,{style:{width:`${a*100}%`}})),g.createElement(q0,null,s,a<1&&g.createElement(bB,{key:s})))}return g.createElement(pB,E({"aria-label":"Content is loading...","aria-live":"polite",role:"status",size:r},n))},EB=Ke({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});N.div(({size:e})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",minWidth:e,minHeight:e}));N.svg(({size:e,width:t})=>({position:"absolute",width:`${e}px!important`,height:`${e}px!important`,transform:"rotate(-90deg)",circle:{r:(e-Math.ceil(t))/2,cx:e/2,cy:e/2,opacity:.15,fill:"transparent",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeDasharray:Math.PI*(e-Math.ceil(t))}}),({progress:e})=>e&&{circle:{opacity:.75}},({spinner:e})=>e&&{animation:`${EB} 1s linear infinite`,circle:{opacity:.25}});function vB(e){let t={},r=e.split("&");for(let n=0;n<r.length;n++){let o=r[n].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"")}return t}var tp=(e,t,r={})=>{let[n,o]=e.split("?"),i=o?P(E(E({},vB(o)),r),{id:t}):P(E({},r),{id:t});return`${n}?${Object.entries(i).map(a=>`${a[0]}=${a[1]}`).join("&")}`};N.pre`
|
|
699
|
+
line-height: 18px;
|
|
700
|
+
padding: 11px 1rem;
|
|
701
|
+
white-space: pre-wrap;
|
|
702
|
+
background: rgba(0, 0, 0, 0.05);
|
|
703
|
+
color: ${Q.darkest};
|
|
704
|
+
border-radius: 3px;
|
|
705
|
+
margin: 1rem 0;
|
|
706
|
+
width: 100%;
|
|
707
|
+
display: block;
|
|
708
|
+
overflow: hidden;
|
|
709
|
+
font-family: ${Ht.fonts.mono};
|
|
710
|
+
font-size: ${Ht.size.s2-1}px;
|
|
711
|
+
`;var d$=GE;Object.keys(GE).forEach(e=>{h.forwardRef((t,r)=>h.createElement(e,P(E({},t),{ref:r})))});const SB=Object.freeze(Object.defineProperty({__proto__:null,A:TE,ActionBar:o1,Bar:bi,Blockquote:AE,Button:Pe,Code:Sf,DL:OE,Div:RE,EmptyTabContent:vi,ErrorFormatter:QS,FlexBar:Zf,Form:bn,H1:DE,H2:xf,H3:$f,H4:PE,H5:IE,H6:FE,HR:LE,IconButton:LS,Img:kE,LI:NE,Link:Kn,ListItem:Wx,Loader:c$,OL:ME,P:BE,Popover:mi,PopoverProvider:zx,Pre:jE,ResetWrapper:vf,ScrollArea:Vd,Select:ix,Separator:Zx,Span:HE,SyntaxHighlighter:di,TT:UE,TabBar:Qf,TabButton:Ei,TabList:o$,TabPanel:i$,TabWrapper:Xx,Table:zE,Tabs:ep,TabsState:Jx,TabsView:s$,ToggleButton:Cl,Toolbar:Qx,Tooltip:Kx,TooltipLinkList:Vx,TooltipNote:VE,TooltipProvider:Kf,UL:KE,Zoom:ZS,codeCommon:Sr,components:d$,convertToReactAriaPlacement:zf,createCopyToClipboardFunction:F5,getStoryHref:tp,nameSpaceClassNames:$e,useTabsState:l$,withReset:_e},Symbol.toStringTag,{value:"Module"}));function pt(){return pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pt.apply(null,arguments)}function xB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ei(e,t){return ei=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ei(e,t)}function $B(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ei(e,t)}function sd(e){return sd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},sd(e)}function wB(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch(t){return typeof e=="function"}}function f$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f$=function(){return!!e})()}function CB(e,t,r){if(f$())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&ei(o,r.prototype),o}function ud(e){var t=typeof Map=="function"?new Map:void 0;return ud=function(r){if(r===null||!wB(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return CB(r,arguments,sd(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ei(n,r)},ud(e)}var or=(function(e){$B(t,e);function t(r){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this,xB(n)}return t})(ud(Error));function ju(e){return Math.round(e*255)}function _B(e,t,r){return ju(e)+","+ju(t)+","+ju(r)}function Ha(e,t,r,n){if(n===void 0&&(n=_B),t===0)return n(r,r,r);var o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*t,a=i*(1-Math.abs(o%2-1)),l=0,s=0,u=0;o>=0&&o<1?(l=i,s=a):o>=1&&o<2?(l=a,s=i):o>=2&&o<3?(s=i,u=a):o>=3&&o<4?(s=a,u=i):o>=4&&o<5?(l=a,u=i):o>=5&&o<6&&(l=i,u=a);var c=r-i/2,d=l+c,f=s+c,p=u+c;return n(d,f,p)}var Y0={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 TB(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Y0[t]?"#"+Y0[t]:e}var AB=/^#[a-fA-F0-9]{6}$/,OB=/^#[a-fA-F0-9]{8}$/,RB=/^#[a-fA-F0-9]{3}$/,DB=/^#[a-fA-F0-9]{4}$/,Hu=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,PB=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,IB=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,FB=/^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 Yn(e){if(typeof e!="string")throw new or(3);var t=TB(e);if(t.match(AB))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(OB)){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(RB))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(DB)){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 o=Hu.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=PB.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var a=IB.exec(t);if(a){var l=parseInt(""+a[1],10),s=parseInt(""+a[2],10)/100,u=parseInt(""+a[3],10)/100,c="rgb("+Ha(l,s,u)+")",d=Hu.exec(c);if(!d)throw new or(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=FB.exec(t.substring(0,50));if(f){var p=parseInt(""+f[1],10),m=parseInt(""+f[2],10)/100,y=parseInt(""+f[3],10)/100,S="rgb("+Ha(p,m,y)+")",b=Hu.exec(S);if(!b)throw new or(4,t,S);return{red:parseInt(""+b[1],10),green:parseInt(""+b[2],10),blue:parseInt(""+b[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new or(5)}function LB(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),i=Math.min(t,r,n),a=(o+i)/2;if(o===i)return e.alpha!==void 0?{hue:0,saturation:0,lightness:a,alpha:e.alpha}:{hue:0,saturation:0,lightness:a};var l,s=o-i,u=a>.5?s/(2-o-i):s/(o+i);switch(o){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;default:l=(t-r)/s+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:a,alpha:e.alpha}:{hue:l,saturation:u,lightness:a}}function jr(e){return LB(Yn(e))}var kB=function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},cd=kB;function Zr(e){var t=e.toString(16);return t.length===1?"0"+t:t}function Uu(e){return Zr(Math.round(e*255))}function NB(e,t,r){return cd("#"+Uu(e)+Uu(t)+Uu(r))}function p$(e,t,r){return Ha(e,t,r,NB)}function MB(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return p$(e.hue,e.saturation,e.lightness);throw new or(1)}function BB(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?p$(e.hue,e.saturation,e.lightness):"rgba("+Ha(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new or(2)}function h$(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return cd("#"+Zr(e)+Zr(t)+Zr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return cd("#"+Zr(e.red)+Zr(e.green)+Zr(e.blue));throw new or(6)}function Xn(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=Yn(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?h$(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new or(7)}var jB=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},HB=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},UB=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},zB=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Hr(e){if(typeof e!="object")throw new or(8);if(HB(e))return Xn(e);if(jB(e))return h$(e);if(zB(e))return BB(e);if(UB(e))return MB(e);throw new or(8)}function g$(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):g$(e,t,n)}}function $t(e){return g$(e,e.length,[])}function KB(e,t){if(t==="transparent")return t;var r=jr(t);return Hr(pt({},r,{hue:r.hue+parseFloat(e)}))}$t(KB);function so(e,t,r){return Math.max(e,Math.min(t,r))}function GB(e,t){if(t==="transparent")return t;var r=jr(t);return Hr(pt({},r,{lightness:so(0,1,r.lightness-parseFloat(e))}))}var WB=$t(GB),ko=WB;function VB(e,t){if(t==="transparent")return t;var r=jr(t);return Hr(pt({},r,{saturation:so(0,1,r.saturation-parseFloat(e))}))}$t(VB);function qB(e,t){if(t==="transparent")return t;var r=jr(t);return Hr(pt({},r,{lightness:so(0,1,r.lightness+parseFloat(e))}))}var YB=$t(qB),dd=YB;function XB(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=Yn(t),o=pt({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),i=Yn(r),a=pt({},i,{alpha:typeof i.alpha=="number"?i.alpha:1}),l=o.alpha-a.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,c=1+s*l,d=(u/c+1)/2,f=1-d,p={red:Math.floor(o.red*d+a.red*f),green:Math.floor(o.green*d+a.green*f),blue:Math.floor(o.blue*d+a.blue*f),alpha:o.alpha*parseFloat(e)+a.alpha*(1-parseFloat(e))};return Xn(p)}var JB=$t(XB),m$=JB;function ZB(e,t){if(t==="transparent")return t;var r=Yn(t),n=typeof r.alpha=="number"?r.alpha:1,o=pt({},r,{alpha:so(0,1,(n*100+parseFloat(e)*100)/100)});return Xn(o)}var QB=$t(ZB),Wi=QB;function ej(e,t){if(t==="transparent")return t;var r=jr(t);return Hr(pt({},r,{saturation:so(0,1,r.saturation+parseFloat(e))}))}$t(ej);function tj(e,t){return t==="transparent"?t:Hr(pt({},jr(t),{hue:parseFloat(e)}))}$t(tj);function rj(e,t){return t==="transparent"?t:Hr(pt({},jr(t),{lightness:parseFloat(e)}))}$t(rj);function nj(e,t){return t==="transparent"?t:Hr(pt({},jr(t),{saturation:parseFloat(e)}))}$t(nj);function oj(e,t){return t==="transparent"?t:m$(parseFloat(e),"rgb(0, 0, 0)",t)}$t(oj);function ij(e,t){return t==="transparent"?t:m$(parseFloat(e),"rgb(255, 255, 255)",t)}$t(ij);function aj(e,t){if(t==="transparent")return t;var r=Yn(t),n=typeof r.alpha=="number"?r.alpha:1,o=pt({},r,{alpha:so(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Xn(o)}var lj=$t(aj),Le=lj,sj=N.div(_e,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:Le(.3,e.color.defaultText),fontSize:e.typography.size.s2})),y$=e=>g.createElement(sj,P(E({},e),{className:"docblock-emptyblock sb-unstyled"})),uj=N(di)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),cj=N.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),Vi=N.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Sa}`]:{margin:0}})),dj=()=>g.createElement(cj,null,g.createElement(Vi,null),g.createElement(Vi,{style:{width:"80%"}}),g.createElement(Vi,{style:{width:"30%"}}),g.createElement(Vi,{style:{width:"80%"}})),b$=l=>{var s=l,{isLoading:e,error:t,language:r,code:n,dark:o,format:i=!0}=s,a=G(s,["isLoading","error","language","code","dark","format"]);let{typography:u}=el();if(e)return g.createElement(dj,null);if(t)return g.createElement(y$,null,t);let c=g.createElement(uj,E({bordered:!0,copyable:!0,format:i,language:r!=null?r:"jsx",className:"docblock-source sb-unstyled"},a),n);if(typeof o>"u")return c;let d=o?nn.dark:nn.light;return g.createElement(Ud,{theme:va(P(E({},d),{fontCode:u.fonts.mono,fontBase:u.fonts.base}))},c)},fj=Jw({"../../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,o,i){function a(u,c){if(!o[u]){if(!n[u]){var d=typeof $i=="function"&&$i;if(!c&&d)return d(u,!0);if(l)return l(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var p=o[u]={exports:{}};n[u][0].call(p.exports,function(m){var y=n[u][1][m];return a(y||m)},p,p.exports,r,n,o,i)}return o[u].exports}for(var l=typeof $i=="function"&&$i,s=0;s<i.length;s++)a(i[s]);return a})({1:[function(r,n,o){n.exports=function(i){if(typeof Map!="function"||i){var a=r("./similar");return new a}else return new Map}},{"./similar":2}],2:[function(r,n,o){function i(){return this.list=[],this.lastItem=void 0,this.size=0,this}i.prototype.get=function(a){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,a))return this.lastItem.val;if(l=this.indexOf(a),l>=0)return this.lastItem=this.list[l],this.list[l].val},i.prototype.set=function(a,l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,a)?(this.lastItem.val=l,this):(s=this.indexOf(a),s>=0?(this.lastItem=this.list[s],this.list[s].val=l,this):(this.lastItem={key:a,val:l},this.list.push(this.lastItem),this.size++,this))},i.prototype.delete=function(a){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,a)&&(this.lastItem=void 0),l=this.indexOf(a),l>=0)return this.size--,this.list.splice(l,1)[0]},i.prototype.has=function(a){var l;return this.lastItem&&this.isEqual(this.lastItem.key,a)?!0:(l=this.indexOf(a),l>=0?(this.lastItem=this.list[l],!0):!1)},i.prototype.forEach=function(a,l){var s;for(s=0;s<this.size;s++)a.call(l||this,this.list[s].val,this.list[s].key,this)},i.prototype.indexOf=function(a){var l;for(l=0;l<this.size;l++)if(this.isEqual(this.list[l].key,a))return l;return-1},i.prototype.isEqual=function(a,l){return a===l||a!==a&&l!==l},n.exports=i},{}],3:[function(r,n,o){var i=r("map-or-similar");n.exports=function(u){var c=new i(!1),d=[];return function(f){var p=function(){var m=c,y,S,b=arguments.length-1,v=Array(b+1),x=!0,C;if((p.numArgs||p.numArgs===0)&&p.numArgs!==b+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(C=0;C<b;C++){if(v[C]={cacheItem:m,arg:arguments[C]},m.has(arguments[C])){m=m.get(arguments[C]);continue}x=!1,y=new i(!1),m.set(arguments[C],y),m=y}return x&&(m.has(arguments[b])?S=m.get(arguments[b]):x=!1),x||(S=f.apply(null,arguments),m.set(arguments[b],S)),u>0&&(v[b]={cacheItem:m,arg:arguments[b]},x?a(d,v):d.push(v),d.length>u&&l(d.shift())),p.wasMemoized=x,p.numArgs=b+1,S};return p.limit=u,p.wasMemoized=!1,p.cache=c,p.lru=d,p}};function a(u,c){var d=u.length,f=c.length,p,m,y;for(m=0;m<d;m++){for(p=!0,y=0;y<f;y++)if(!s(u[m][y].arg,c[y].arg)){p=!1;break}if(p)break}u.push(u.splice(m,1)[0])}function l(u){var c=u.length,d=u[c-1],f,p;for(d.cacheItem.delete(d.arg),p=c-2;p>=0&&(d=u[p],f=d.cacheItem.get(d.arg),!f||!f.size);p--)d.cacheItem.delete(d.arg)}function s(u,c){return u===c||u!==u&&c!==c}},{"map-or-similar":1}]},{},[3])(3)})}});const{once:pj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function hj(e){return e==null||typeof e!="object"&&typeof e!="function"}function gj(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function mj(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function yj(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var bj="[object RegExp]",Ej="[object String]",vj="[object Number]",Sj="[object Boolean]",xj="[object Arguments]",$j="[object Symbol]",wj="[object Date]",Cj="[object Map]",_j="[object Set]",Tj="[object Array]",Aj="[object ArrayBuffer]",Oj="[object Object]",Rj="[object DataView]",Dj="[object Uint8Array]",Pj="[object Uint8ClampedArray]",Ij="[object Uint16Array]",Fj="[object Uint32Array]",Lj="[object Int8Array]",kj="[object Int16Array]",Nj="[object Int32Array]",Mj="[object Float32Array]",Bj="[object Float64Array]";function Rn(e,t,r,n=new Map,o=void 0){let i=o==null?void 0:o(e,t,r,n);if(i!==void 0)return i;if(hj(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){let a=new Array(e.length);n.set(e,a);for(let l=0;l<e.length;l++)a[l]=Rn(e[l],l,r,n,o);return Object.hasOwn(e,"index")&&(a.index=e.index),Object.hasOwn(e,"input")&&(a.input=e.input),a}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let a=new RegExp(e.source,e.flags);return a.lastIndex=e.lastIndex,a}if(e instanceof Map){let a=new Map;n.set(e,a);for(let[l,s]of e)a.set(l,Rn(s,l,r,n,o));return a}if(e instanceof Set){let a=new Set;n.set(e,a);for(let l of e)a.add(Rn(l,void 0,r,n,o));return a}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(gj(e)){let a=new(Object.getPrototypeOf(e)).constructor(e.length);n.set(e,a);for(let l=0;l<e.length;l++)a[l]=Rn(e[l],l,r,n,o);return a}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let a=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,a),_r(a,e,r,n,o),a}if(typeof File<"u"&&e instanceof File){let a=new File([e],e.name,{type:e.type});return n.set(e,a),_r(a,e,r,n,o),a}if(typeof Blob<"u"&&e instanceof Blob){let a=new Blob([e],{type:e.type});return n.set(e,a),_r(a,e,r,n,o),a}if(e instanceof Error){let a=new e.constructor;return n.set(e,a),a.message=e.message,a.name=e.name,a.stack=e.stack,a.cause=e.cause,_r(a,e,r,n,o),a}if(e instanceof Boolean){let a=new Boolean(e.valueOf());return n.set(e,a),_r(a,e,r,n,o),a}if(e instanceof Number){let a=new Number(e.valueOf());return n.set(e,a),_r(a,e,r,n,o),a}if(e instanceof String){let a=new String(e.valueOf());return n.set(e,a),_r(a,e,r,n,o),a}if(typeof e=="object"&&jj(e)){let a=Object.create(Object.getPrototypeOf(e));return n.set(e,a),_r(a,e,r,n,o),a}return e}function _r(e,t,r=e,n,o){let i=[...Object.keys(t),...mj(t)];for(let a=0;a<i.length;a++){let l=i[a],s=Object.getOwnPropertyDescriptor(e,l);(s==null||s.writable)&&(e[l]=Rn(t[l],l,r,n,o))}}function jj(e){switch(yj(e)){case xj:case Tj:case Aj:case Rj:case Sj:case wj:case Mj:case Bj:case Lj:case kj:case Nj:case Cj:case vj:case Oj:case bj:case _j:case Ej:case $j:case Dj:case Pj:case Ij:case Fj:return!0;default:return!1}}function Hj(e){return Rn(e,void 0,e,new Map,void 0)}function Uj(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let i=n[o],a=e[i];t(a,i)&&(r[i]=a)}return r}function en(){return en=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},en.apply(this,arguments)}var zj=["children","options"],X0=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),J0={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},Kj=["style","script","pre"],Gj=["src","href","data","formAction","srcDoc","action"],Wj=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Vj=/\n{2,}$/,Z0=/^(\s*>[\s\S]*?)(?=\n\n|$)/,qj=/^ *> ?/gm,Yj=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,Xj=/^ {2,}\n/,Jj=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,Q0=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,ey=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Zj=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,Qj=/^(?:\n *)*\n/,eH=/\r\n?/g,tH=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,rH=/^\[\^([^\]]+)]/,nH=/\f/g,oH=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,iH=/^\s*?\[(x|\s)\]/,ty=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,ry=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,ny=/^([^\n]+)\n *(=|-)\2{2,} *\n/,zu=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,aH=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,oy=/^<!--[\s\S]*?(?:-->)/,lH=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ku=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,sH=/^\{.*\}$/,uH=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,cH=/^<([^ >]+[:@\/][^ >]+)>/,dH=/-([a-z])?/gi,iy=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,fH=/^[^\n]+(?: \n|\n{2,})/,pH=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,hH=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,gH=/^\[([^\]]*)\] ?\[([^\]]*)\]/,mH=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,yH=/\t/g,bH=/(^ *\||\| *$)/g,EH=/^ *:-+: *$/,vH=/^ *:-+ *$/,SH=/^ *-+: *$/,Pl=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Il="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",xH=RegExp(`^([*_])\\1${Pl(1)}${Il}\\1\\1(?!\\1)`),$H=RegExp(`^([*_])${Pl(0)}${Il}\\1(?!\\1)`),wH=RegExp(`^(==)${Pl(0)}${Il}\\1`),CH=RegExp(`^(~~)${Pl(0)}${Il}\\1`),_H=/^(:[a-zA-Z0-9-_]+:)/,TH=/^\\([^0-9A-Za-z\s])/,AH=/\\([^0-9A-Za-z\s])/g,OH=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,RH=/^\n+/,DH=/^([ \t]*)/,PH=/(?:^|\n)( *)$/,rp="(?:\\d+\\.)",np="(?:[*+-])";function E$(e){return"( *)("+(e===1?rp:np)+") +"}var v$=E$(1),S$=E$(2);function x$(e){return RegExp("^"+(e===1?v$:S$))}var IH=x$(1),FH=x$(2);function $$(e){return RegExp("^"+(e===1?v$:S$)+"[^\\n]*(?:\\n(?!\\1"+(e===1?rp:np)+" )[^\\n]*)*(\\n|$)","gm")}var LH=$$(1),kH=$$(2);function w$(e){let t=e===1?rp:np;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var C$=w$(1),_$=w$(2);function ay(e,t){let r=t===1,n=r?C$:_$,o=r?LH:kH,i=r?IH:FH;return{t:a=>i.test(a),o:Jn(function(a,l){let s=PH.exec(l.prevCapture);return s&&(l.list||!l.inline&&!l.simple)?n.exec(a=s[1]+a):null}),i:1,u(a,l,s){let u=r?+a[2]:void 0,c=a[0].replace(Vj,`
|
|
712
|
+
`).match(o),d=!1;return{items:c.map(function(f,p){let m=i.exec(f)[0].length,y=RegExp("^ {1,"+m+"}","gm"),S=f.replace(y,"").replace(i,""),b=p===c.length-1,v=S.indexOf(`
|
|
713
|
+
|
|
714
|
+
`)!==-1||b&&d;d=v;let x=s.inline,C=s.list,A;s.list=!0,v?(s.inline=!1,A=No(S)+`
|
|
715
|
+
|
|
716
|
+
`):(s.inline=!0,A=No(S));let $=l(A,s);return s.inline=x,s.list=C,$}),ordered:r,start:u}},l:(a,l,s)=>e(a.ordered?"ol":"ul",{key:s.key,start:a.type==="20"?a.start:void 0},a.items.map(function(u,c){return e("li",{key:c},l(u,s))}))}}var NH=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),MH=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function ly(e){return typeof e=="string"}function No(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function ha(e,t){return e.startsWith(t)}function BH(e,t,r){if(Array.isArray(r)){for(let n=0;n<r.length;n++)if(ha(e,r[n]))return!0;return!1}return r(e,t)}function Co(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function jH(e){return SH.test(e)?"right":EH.test(e)?"center":vH.test(e)?"left":null}function sy(e,t,r,n){let o=r.inTable;r.inTable=!0;let i=[[]],a="";function l(){if(!a)return;let s=i[i.length-1];s.push.apply(s,t(a,r)),a=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((s,u,c)=>{s.trim()==="|"&&(l(),n)?u!==0&&u!==c.length-1&&i.push([]):a+=s}),l(),r.inTable=o,i}function HH(e,t,r){r.inline=!0;let n=e[2]?e[2].replace(bH,"").split("|").map(jH):[],o=e[3]?(function(a,l,s){return a.trim().split(`
|
|
717
|
+
`).map(function(u){return sy(u,l,s,!0)})})(e[3],t,r):[],i=sy(e[1],t,r,!!o.length);return r.inline=!1,o.length?{align:n,cells:o,header:i,type:"25"}:{children:i,type:"21"}}function uy(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Jn(e){return e.inline=1,e}function Vr(e){return Jn(function(t,r){return r.inline?e.exec(t):null})}function Tr(e){return Jn(function(t,r){return r.inline||r.simple?e.exec(t):null})}function gr(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function qi(e){return Jn(function(t){return e.exec(t)})}var UH=/(javascript|vbscript|data(?!:image)):/i;function zH(e){try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(UH.test(t))return null}catch(t){return null}return e}function Xt(e){return e&&e.replace(AH,"$1")}function ga(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;let i=e(t,r);return r.inline=n,r.simple=o,i}function KH(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;let i=e(t,r);return r.inline=n,r.simple=o,i}function GH(e,t,r){let n=r.inline||!1;r.inline=!1;let o=e(t,r);return r.inline=n,o}var Gu=(e,t,r)=>({children:ga(t,e[2],r)});function Wu(){return{}}function Vu(){return null}function WH(...e){return e.filter(Boolean).join(" ")}function qu(e,t,r){let n=e,o=t.split(".");for(;o.length&&(n=n[o[0]],n!==void 0);)o.shift();return n||r}function VH(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?en({},J0,t.namedCodesToUnicode):J0;let r=t.slugify||Co,n=t.sanitizer||zH,o=t.createElement||h.createElement,i=[Z0,Q0,ey,t.enforceAtxHeadings?ry:ty,ny,iy,C$,_$],a=[...i,fH,zu,oy,Ku];function l(b,v){for(let x=0;x<b.length;x++)if(b[x].test(v))return!0;return!1}function s(b,v,...x){let C=qu(t.overrides,b+".props",{});return o((function(A,$){let w=qu($,A);return w?typeof w=="function"||typeof w=="object"&&"render"in w?w:qu($,A+".component",A):A})(b,t.overrides),en({},v,C,{className:WH(v==null?void 0:v.className,C.className)||void 0}),...x)}function u(b){b=b.replace(oH,"");let v=!1;t.forceInline?v=!0:t.forceBlock||(v=mH.test(b)===!1);let x=y(m(v?b:No(b).replace(RH,"")+`
|
|
718
|
+
|
|
719
|
+
`,{inline:v}));for(;ly(x[x.length-1])&&!x[x.length-1].trim();)x.pop();if(t.wrapper===null)return x;let C=t.wrapper||(v?"span":"div"),A;if(x.length>1||t.forceWrapper)A=x;else{if(x.length===1)return A=x[0],typeof A=="string"?s("span",{key:"outer"},A):A;A=null}return o(C,{key:"outer"},A)}function c(b,v){if(!v||!v.trim())return null;let x=v.match(Wj);return x?x.reduce(function(C,A){let $=A.indexOf("=");if($!==-1){let w=(function(I){return I.indexOf("-")!==-1&&I.match(lH)===null&&(I=I.replace(dH,function(D,M){return M.toUpperCase()})),I})(A.slice(0,$)).trim(),_=(function(I){let D=I[0];return(D==='"'||D==="'")&&I.length>=2&&I[I.length-1]===D?I.slice(1,-1):I})(A.slice($+1).trim()),O=X0[w]||w;if(O==="ref")return C;let T=C[O]=(function(I,D,M,k){return D==="style"?(function(R){let j=[],L="",z=!1,U=!1,B="";if(!R)return j;for(let H=0;H<R.length;H++){let W=R[H];if(W!=='"'&&W!=="'"||z||(U?W===B&&(U=!1,B=""):(U=!0,B=W)),W==="("&&L.endsWith("url")?z=!0:W===")"&&z&&(z=!1),W!==";"||U||z)L+=W;else{let V=L.trim();if(V){let K=V.indexOf(":");if(K>0){let q=V.slice(0,K).trim(),X=V.slice(K+1).trim();j.push([q,X])}}L=""}}let F=L.trim();if(F){let H=F.indexOf(":");if(H>0){let W=F.slice(0,H).trim(),V=F.slice(H+1).trim();j.push([W,V])}}return j})(M).reduce(function(R,[j,L]){return R[j.replace(/(-[a-z])/g,z=>z[1].toUpperCase())]=k(L,I,j),R},{}):Gj.indexOf(D)!==-1?k(Xt(M),I,D):(M.match(sH)&&(M=Xt(M.slice(1,M.length-1))),M==="true"||M!=="false"&&M)})(b,w,_,n);typeof T=="string"&&(zu.test(T)||Ku.test(T))&&(C[O]=u(T.trim()))}else A!=="style"&&(C[X0[A]||A]=!0);return C},{}):null}let d=[],f={},p={0:{t:[">"],o:gr(Z0),i:1,u(b,v,x){let[,C,A]=b[0].replace(qj,"").match(Yj);return{alert:C,children:v(A,x)}},l(b,v,x){let C={key:x.key};return b.alert&&(C.className="markdown-alert-"+r(b.alert.toLowerCase(),Co),b.children.unshift({attrs:{},children:[{type:"27",text:b.alert}],noInnerParse:!0,type:"11",tag:"header"})),s("blockquote",C,v(b.children,x))}},1:{t:[" "],o:qi(Xj),i:1,u:Wu,l:(b,v,x)=>s("br",{key:x.key})},2:{t:["--","__","**","- ","* ","_ "],o:gr(Jj),i:1,u:Wu,l:(b,v,x)=>s("hr",{key:x.key})},3:{t:[" "],o:gr(ey),i:0,u:b=>({lang:void 0,text:Xt(No(b[0].replace(/^ {4}/gm,"")))}),l:(b,v,x)=>s("pre",{key:x.key},s("code",en({},b.attrs,{className:b.lang?"lang-"+b.lang:""}),b.text))},4:{t:["```","~~~"],o:gr(Q0),i:0,u:b=>({attrs:c("code",b[3]||""),lang:b[2]||void 0,text:b[4],type:"3"})},5:{t:["`"],o:Tr(Zj),i:3,u:b=>({text:Xt(b[2])}),l:(b,v,x)=>s("code",{key:x.key},b.text)},6:{t:["[^"],o:gr(tH),i:0,u:b=>(d.push({footnote:b[2],identifier:b[1]}),{}),l:Vu},7:{t:["[^"],o:Vr(rH),i:1,u:b=>({target:"#"+r(b[1],Co),text:b[1]}),l:(b,v,x)=>s("a",{key:x.key,href:n(b.target,"a","href")},s("sup",{key:x.key},b.text))},8:{t:["[ ]","[x]"],o:Vr(iH),i:1,u:b=>({completed:b[1].toLowerCase()==="x"}),l:(b,v,x)=>s("input",{checked:b.completed,key:x.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:gr(t.enforceAtxHeadings?ry:ty),i:1,u:(b,v,x)=>({children:ga(v,b[2],x),id:r(b[2],Co),level:b[1].length}),l:(b,v,x)=>s("h"+b.level,{id:b.id,key:x.key},v(b.children,x))},10:{t:b=>{let v=b.indexOf(`
|
|
720
|
+
`);return v>0&&v<b.length-1&&(b[v+1]==="="||b[v+1]==="-")},o:gr(ny),i:1,u:(b,v,x)=>({children:ga(v,b[1],x),level:b[2]==="="?1:2,type:"9"})},11:{t:["<"],o:qi(zu),i:1,u(b,v,x){let[,C]=b[3].match(DH),A=RegExp("^"+C,"gm"),$=b[3].replace(A,""),w=l(a,$)?GH:ga,_=b[1].toLowerCase(),O=Kj.indexOf(_)!==-1,T=(O?_:b[1]).trim(),I={attrs:c(T,b[2]),noInnerParse:O,tag:T};if(x.inAnchor=x.inAnchor||_==="a",O)I.text=b[3];else{let D=x.inHTML;x.inHTML=!0,I.children=w(v,$,x),x.inHTML=D}return x.inAnchor=!1,I},l:(b,v,x)=>s(b.tag,en({key:x.key},b.attrs),b.text||(b.children?v(b.children,x):""))},13:{t:["<"],o:qi(Ku),i:1,u(b){let v=b[1].trim();return{attrs:c(v,b[2]||""),tag:v}},l:(b,v,x)=>s(b.tag,en({},b.attrs,{key:x.key}))},12:{t:["<!--"],o:qi(oy),i:1,u:()=>({}),l:Vu},14:{t:["!["],o:Tr(MH),i:1,u:b=>({alt:Xt(b[1]),target:Xt(b[2]),title:Xt(b[3])}),l:(b,v,x)=>s("img",{key:x.key,alt:b.alt||void 0,title:b.title||void 0,src:n(b.target,"img","src")})},15:{t:["["],o:Vr(NH),i:3,u:(b,v,x)=>({children:KH(v,b[1],x),target:Xt(b[2]),title:Xt(b[3])}),l:(b,v,x)=>s("a",{key:x.key,href:n(b.target,"a","href"),title:b.title},v(b.children,x))},16:{t:["<"],o:Vr(cH),i:0,u(b){let v=b[1],x=!1;return v.indexOf("@")!==-1&&v.indexOf("//")===-1&&(x=!0,v=v.replace("mailto:","")),{children:[{text:v,type:"27"}],target:x?"mailto:"+v:v,type:"15"}}},17:{t:(b,v)=>!v.inAnchor&&!t.disableAutoLink&&(ha(b,"http://")||ha(b,"https://")),o:Vr(uH),i:0,u:b=>({children:[{text:b[1],type:"27"}],target:b[1],title:void 0,type:"15"})},20:ay(s,1),33:ay(s,2),19:{t:[`
|
|
721
|
+
`],o:gr(Qj),i:3,u:Wu,l:()=>`
|
|
722
|
+
`},21:{o:Jn(function(b,v){if(v.inline||v.simple||v.inHTML&&b.indexOf(`
|
|
723
|
+
|
|
724
|
+
`)===-1&&v.prevCapture.indexOf(`
|
|
725
|
+
|
|
726
|
+
`)===-1)return null;let x="",C=0;for(;;){let $=b.indexOf(`
|
|
727
|
+
`,C),w=b.slice(C,$===-1?void 0:$+1);if(l(i,w)||(x+=w,$===-1||!w.trim()))break;C=$+1}let A=No(x);return A===""?null:[x,,A]}),i:3,u:Gu,l:(b,v,x)=>s("p",{key:x.key},v(b.children,x))},22:{t:["["],o:Vr(pH),i:0,u:b=>(f[b[1]]={target:b[2],title:b[4]},{}),l:Vu},23:{t:["!["],o:Tr(hH),i:0,u:b=>({alt:b[1]?Xt(b[1]):void 0,ref:b[2]}),l:(b,v,x)=>f[b.ref]?s("img",{key:x.key,alt:b.alt,src:n(f[b.ref].target,"img","src"),title:f[b.ref].title}):null},24:{t:b=>b[0]==="["&&b.indexOf("](")===-1,o:Vr(gH),i:0,u:(b,v,x)=>({children:v(b[1],x),fallbackChildren:b[0],ref:b[2]}),l:(b,v,x)=>f[b.ref]?s("a",{key:x.key,href:n(f[b.ref].target,"a","href"),title:f[b.ref].title},v(b.children,x)):s("span",{key:x.key},b.fallbackChildren)},25:{t:["|"],o:gr(iy),i:1,u:HH,l(b,v,x){let C=b;return s("table",{key:x.key},s("thead",null,s("tr",null,C.header.map(function(A,$){return s("th",{key:$,style:uy(C,$)},v(A,x))}))),s("tbody",null,C.cells.map(function(A,$){return s("tr",{key:$},A.map(function(w,_){return s("td",{key:_,style:uy(C,_)},v(w,x))}))})))}},27:{o:Jn(function(b,v){let x;return ha(b,":")&&(x=_H.exec(b)),x||OH.exec(b)}),i:4,u(b){let v=b[0];return{text:v.indexOf("&")===-1?v:v.replace(aH,(x,C)=>t.namedCodesToUnicode[C]||x)}},l:b=>b.text},28:{t:["**","__"],o:Tr(xH),i:2,u:(b,v,x)=>({children:v(b[2],x)}),l:(b,v,x)=>s("strong",{key:x.key},v(b.children,x))},29:{t:b=>{let v=b[0];return(v==="*"||v==="_")&&b[1]!==v},o:Tr($H),i:3,u:(b,v,x)=>({children:v(b[2],x)}),l:(b,v,x)=>s("em",{key:x.key},v(b.children,x))},30:{t:["\\"],o:Tr(TH),i:1,u:b=>({text:b[1],type:"27"})},31:{t:["=="],o:Tr(wH),i:3,u:Gu,l:(b,v,x)=>s("mark",{key:x.key},v(b.children,x))},32:{t:["~~"],o:Tr(CH),i:3,u:Gu,l:(b,v,x)=>s("del",{key:x.key},v(b.children,x))}};t.disableParsingRawHTML===!0&&(delete p[11],delete p[13]);let m=(function(b){var v=Object.keys(b);function x(C,A){var $=[];if(A.prevCapture=A.prevCapture||"",C.trim())for(;C;)for(var w=0;w<v.length;){var _=v[w],O=b[_];if(!O.t||BH(C,A,O.t)){var T=O.o(C,A);if(T&&T[0]){C=C.substring(T[0].length);var I=O.u(T,x,A);A.prevCapture+=T[0],I.type||(I.type=_),$.push(I);break}w++}else w++}return A.prevCapture="",$}return v.sort(function(C,A){return b[C].i-b[A].i||(C<A?-1:1)}),function(C,A){return x((function($){return $.replace(eH,`
|
|
728
|
+
`).replace(nH,"").replace(yH," ")})(C),A)}})(p),y=(function(b,v){return function x(C,A={}){if(Array.isArray(C)){let $=A.key,w=[],_=!1;for(let O=0;O<C.length;O++){A.key=O;let T=x(C[O],A),I=ly(T);I&&_?w[w.length-1]+=T:T!==null&&w.push(T),_=I}return A.key=$,w}return(function($,w,_){let O=b[$.type].l;return v?v(()=>O($,w,_),$,w,_):O($,w,_)})(C,x,A)}})(p,t.renderRule),S=u(e);return d.length?s("div",null,S,s("footer",{key:"footer"},d.map(function(b){return s("div",{id:r(b.identifier,Co),key:b.identifier},b.identifier,y(m(b.footnote,{inline:!0})))}))):S}var T$=e=>{let{children:t,options:r}=e,n=(function(o,i){if(o==null)return{};var a,l,s={},u=Object.keys(o);for(l=0;l<u.length;l++)i.indexOf(a=u[l])>=0||(s[a]=o[a]);return s})(e,zj);return h.cloneElement(VH(t!=null?t:"",r),n)},qH=N.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`},"@media (forced-colors: active)":{"&:focus":{outline:"1px solid highlight"}}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:Le(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${Wi(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${Wi(.05,e.appBorderColor)} 0 0 0 2px inset`,color:Wi(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${Wi(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px","@media (forced-colors: active)":{textDecoration:"underline"}}})),YH=e=>e==="true",XH=({name:e,value:t,onChange:r,onBlur:n,onFocus:o,argType:i})=>{var c;let a=h.useCallback(()=>r(!1),[r]),l=!!((c=i==null?void 0:i.table)!=null&&c.readonly);if(t===void 0)return g.createElement(Pe,{ariaLabel:!1,variant:"outline",size:"medium",id:Va(e),onClick:a,disabled:l},"Set boolean");let s=zt(e),u=typeof t=="string"?YH(t):t;return g.createElement(qH,{"aria-disabled":l,htmlFor:s,"aria-label":e},g.createElement("input",{id:s,type:"checkbox",onChange:d=>r(d.target.checked),checked:u,role:"switch",disabled:l,name:e,onBlur:n,onFocus:o}),g.createElement("span",{"aria-hidden":"true"},"False"),g.createElement("span",{"aria-hidden":"true"},"True"))},JH=e=>{let[t,r,n]=e.split("-"),o=new Date;return o.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),o},ZH=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},QH=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),o=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${o}`},eU=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},cy=N(bn.Input)(({theme:e,readOnly:t})=>t?{background:e.base==="light"?e.color.lighter:"transparent"}:{}),tU=N.fieldset(({theme:e})=>({flex:1,display:"flex",border:0,marginInline:0,padding:0,input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),rU=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,argType:i})=>{var m;let[a,l]=h.useState(!0),s=h.useRef(),u=h.useRef(),c=!!((m=i==null?void 0:i.table)!=null&&m.readonly);h.useEffect(()=>{a!==!1&&(s&&s.current&&(s.current.value=t?QH(t):""),u&&u.current&&(u.current.value=t?eU(t):""))},[t]);let d=y=>{if(!y.target.value)return r();let S=JH(y.target.value),b=new Date(t!=null?t:"");b.setFullYear(S.getFullYear(),S.getMonth(),S.getDate());let v=b.getTime();v&&r(v),l(!!v)},f=y=>{if(!y.target.value)return r();let S=ZH(y.target.value),b=new Date(t!=null?t:"");b.setHours(S.getHours()),b.setMinutes(S.getMinutes());let v=b.getTime();v&&r(v),l(!!v)},p=zt(e);return g.createElement(tU,null,g.createElement("legend",{className:"sb-sr-only"},e),g.createElement("label",{htmlFor:`${p}-date`,className:"sb-sr-only"},"Date"),g.createElement(cy,{type:"date",max:"9999-12-31",ref:s,id:`${p}-date`,name:`${p}-date`,readOnly:c,onChange:d,onFocus:n,onBlur:o}),g.createElement("label",{htmlFor:`${p}-time`,className:"sb-sr-only"},"Time"),g.createElement(cy,{type:"time",id:`${p}-time`,name:`${p}-time`,ref:u,onChange:f,readOnly:c,onFocus:n,onBlur:o}),a?null:g.createElement("div",null,"invalid"))},nU=N.label({display:"flex"}),oU=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},iU=N(bn.Input)(({theme:e})=>({background:e.base==="light"?e.color.lighter:"transparent"})),aU=({name:e,value:t,onChange:r,min:n,max:o,step:i,onBlur:a,onFocus:l,argType:s})=>{var x;let[u,c]=h.useState(typeof t=="number"?t:""),[d,f]=h.useState(!1),[p,m]=h.useState(null),y=!!((x=s==null?void 0:s.table)!=null&&x.readonly),S=h.useCallback(C=>{c(C.target.value);let A=parseFloat(C.target.value);if(Number.isNaN(A))m(new Error(`'${C.target.value}' is not a number`));else{let $=A;typeof n=="number"&&$<n&&($=n),typeof o=="number"&&$>o&&($=o),r($),m(null),$!==A&&c(String($))}},[r,m,n,o]),b=h.useCallback(()=>{c("0"),r(0),f(!0)},[f]),v=h.useRef(null);return h.useEffect(()=>{d&&v.current&&v.current.select()},[d]),h.useEffect(()=>{let C=typeof t=="number"?t:"";u!==C&&c(C)},[t]),t===void 0?g.createElement(Pe,{ariaLabel:!1,variant:"outline",size:"medium",id:Va(e),onClick:b,disabled:y},"Set number"):g.createElement(nU,null,g.createElement(iU,{ref:v,id:zt(e),type:"number",onChange:S,size:"flex",placeholder:"Edit number...",value:u,valid:p?"error":void 0,autoFocus:d,readOnly:y,name:e,min:n,max:o,step:i,onFocus:l,onBlur:a}))};const{logger:lU}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var A$=(e,t)=>{let r=t&&Object.entries(t).find(([n,o])=>o===e);return r?r[0]:void 0},fd=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],O$=(e,t)=>e&&t&&e.map(r=>t[r]),sU=N.fieldset({border:"none",marginInline:0,padding:0,display:"flex",alignItems:"flex-start"},({$isInline:e})=>e?{flexWrap:"wrap",gap:15,label:{display:"inline-flex"}}:{flexDirection:"column",gap:8,label:{display:"flex"}}),uU=N.span(({$readOnly:e})=>({opacity:e?.5:1})),cU=N.label(({$readOnly:e})=>({lineHeight:"20px",alignItems:"center",cursor:e?"not-allowed":"pointer",input:{cursor:e?"not-allowed":"pointer",margin:0,marginRight:6}})),dy=({name:e,options:t,value:r,onChange:n,isInline:o,argType:i})=>{var f;if(!t)return lU.warn(`Checkbox with no options: ${e}`),g.createElement(g.Fragment,null,"-");let a=fd(r||[],t),[l,s]=h.useState(a),u=!!((f=i==null?void 0:i.table)!=null&&f.readonly),c=p=>{let m=p.target.value,y=[...l];y.includes(m)?y.splice(y.indexOf(m),1):y.push(m),n(O$(y,t)),s(y)};h.useEffect(()=>{s(fd(r||[],t))},[r]);let d=zt(e);return g.createElement(sU,{$isInline:o},g.createElement("legend",{className:"sb-sr-only"},e),Object.keys(t).map((p,m)=>{let y=`${d}-${m}`;return g.createElement(cU,{key:y,htmlFor:y,$readOnly:u},g.createElement("input",{type:"checkbox",disabled:u,id:y,name:y,value:p,onChange:c,checked:l==null?void 0:l.includes(p)}),g.createElement(uU,{$readOnly:u},p))}))};const{logger:dU}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var fU=N.fieldset({border:"none",marginInline:0,padding:0,display:"flex",alignItems:"flex-start"},({isInline:e})=>e?{flexWrap:"wrap",gap:15,label:{display:"inline-flex"}}:{flexDirection:"column",gap:8,label:{display:"flex"}}),pU=N.span(({$readOnly:e})=>({opacity:e?.5:1})),hU=N.label(({$readOnly:e})=>({lineHeight:"20px",alignItems:"center",cursor:e?"not-allowed":"pointer",input:{cursor:e?"not-allowed":"pointer",margin:0,marginRight:6}})),fy=({name:e,options:t,value:r,onChange:n,isInline:o,argType:i})=>{var u;if(!t)return dU.warn(`Radio with no options: ${e}`),g.createElement(g.Fragment,null,"-");let a=A$(r,t),l=zt(e),s=!!((u=i==null?void 0:i.table)!=null&&u.readonly);return g.createElement(fU,{isInline:o},g.createElement("legend",{className:"sb-sr-only"},e),Object.keys(t).map((c,d)=>{let f=`${l}-${d}`;return g.createElement(hU,{key:f,htmlFor:f,$readOnly:s},g.createElement("input",{type:"radio",id:f,name:l,disabled:s,value:c,onChange:p=>n(t[p.currentTarget.value]),checked:c===a}),g.createElement(pU,{$readOnly:s},c))}))};const{logger:gU}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var mU={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},R$=N.select(mU,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1,"&:hover":{background:e.background.hoverable},"&:checked":{background:"transparent",color:e.color.secondary,fontWeight:e.typography.weight.bold}}}})),D$=N.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),py="Choose option...",yU=({name:e,value:t,options:r,onChange:n,argType:o})=>{var u;let i=c=>{n(r[c.currentTarget.value])},a=A$(t,r)||py,l=zt(e),s=!!((u=o==null?void 0:o.table)!=null&&u.readonly);return g.createElement(D$,null,g.createElement(x1,null),g.createElement("label",{htmlFor:l,className:"sb-sr-only"},e),g.createElement(R$,{disabled:s,id:l,value:a,onChange:i},g.createElement("option",{key:"no-selection",disabled:!0},py),Object.keys(r).map(c=>g.createElement("option",{key:c,value:c},c))))},bU=({name:e,value:t,options:r,onChange:n,argType:o})=>{var u;let i=c=>{let d=Array.from(c.currentTarget.options).filter(f=>f.selected).map(f=>f.value);n(O$(d,r))},a=fd(t,r),l=zt(e),s=!!((u=o==null?void 0:o.table)!=null&&u.readonly);return g.createElement(D$,null,g.createElement("label",{htmlFor:l,className:"sb-sr-only"},e),g.createElement(R$,{disabled:s,id:l,multiple:!0,value:a,onChange:i},Object.keys(r).map(c=>g.createElement("option",{key:c,value:c},c))))},hy=e=>{let{name:t,options:r}=e;return r?e.isMulti?g.createElement(bU,E({},e)):g.createElement(yU,E({},e)):(gU.warn(`Select with no options: ${t}`),g.createElement(g.Fragment,null,"-"))},EU=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[(t==null?void 0:t[n])||String(n)]=n,r),{}):e,vU={check:dy,"inline-check":dy,radio:fy,"inline-radio":fy,select:hy,"multi-select":hy},$n=e=>{let{type:t="select",labels:r,argType:n}=e,o=P(E({},e),{argType:n,options:n?EU(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")}),i=vU[t];if(i)return g.createElement(i,E({},o));throw new Error(`Unknown options type: ${t}`)},SU=N.div(({theme:e})=>({position:"relative",":hover":{"& > .rejt-accordion-button::after":{background:e.color.secondary},"& > .rejt-accordion-region > :is(.rejt-plus-menu, .rejt-minus-menu)":{opacity:1}}})),xU=N.button(({theme:e})=>({padding:0,background:"transparent",border:"none",marginRight:"3px",lineHeight:"22px",color:e.color.secondary,"::after":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",height:"22px",background:"transparent",borderRadius:4,transition:"background 0.2s",opacity:.1,paddingRight:"20px"},"::before":{content:'""',position:"absolute"},'&[aria-expanded="true"]::before':{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},'&[aria-expanded="false"]::before':{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"}})),$U=N.div({display:"inline"});function P$(a){var l=a,{children:e,name:t,collapsed:r,keyPath:n,deep:o}=l,i=G(l,["children","name","collapsed","keyPath","deep"]);var d;let s=`${(d=n.at(-1))!=null?d:"root"}-${t}-${o}`,u={trigger:`${s}-trigger`,region:`${s}-region`},c=n.length>0?"li":"div";return g.createElement(SU,{as:c},g.createElement(xU,E({type:"button","aria-expanded":!r,id:u.trigger,"aria-controls":u.region,className:"rejt-accordion-button"},i),t," :"),g.createElement($U,{role:"region",id:u.region,"aria-labelledby":u.trigger,className:"rejt-accordion-region"},e))}var wU="Error",CU="Object",_U="Array",TU="String",AU="Number",OU="Boolean",RU="Date",DU="Null",PU="Undefined",IU="Function",FU="Symbol",I$="ADD_DELTA_TYPE",F$="REMOVE_DELTA_TYPE",L$="UPDATE_DELTA_TYPE",op="value";function rn(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function k$(e,t){let r=rn(e),n=rn(t);return(r==="Function"||n==="Function")&&n!==r}var ip=class extends h.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus()}onKeydown(e){if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat)return;let{inputRefKey:t,inputRefValue:r}=this.state,{addButtonElement:n,handleCancel:o}=this.props;[t,r,n].some(i=>i===e.target)&&((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),o()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:o}=this.props,{inputRefKey:i,inputRefValue:a}=this.state,l={};if(!t){if(!i.value)return;l.key=i.value}l.newValue=r(!1,n,o,l.key,a.value),e(l)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:o,keyPath:i,deep:a}=this.props,l=r&&h.cloneElement(r,{onClick:this.onSubmit}),s=n&&h.cloneElement(n,{onClick:e}),u=o(op,i,a),c=h.cloneElement(u,{placeholder:"Value",ref:this.refInputValue,onKeyDown:this.onKeydown}),d=null;if(!t){let f=o("key",i,a);d=h.cloneElement(f,{placeholder:"Key",ref:this.refInputKey,onKeyDown:this.onKeydown})}return g.createElement("span",{className:"rejt-add-value-node"},d,c,l,s)}};ip.defaultProps={onlyValue:!1,addButtonElement:g.createElement("button",null,"+"),cancelButtonElement:g.createElement("button",null,"c")};var N$=class extends h.Component{constructor(e){var r,n,o;super(e);let t=[...e.keyPath||[],e.name];this.state={data:e.data,name:e.name,keyPath:t!=null?t:[],deep:(r=e.deep)!=null?r:0,nextDeep:((n=e.deep)!=null?n:0)+1,collapsed:e.isCollapsed(t,(o=e.deep)!=null?o:0,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n=[]}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,i=n.length;o(n[i-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o,nextDeep:i}=this.state,a=n[e];(t||Promise.resolve.bind(Promise))(e,o,i,a).then(()=>{let l={keyPath:o,deep:i,key:e,oldValue:a,type:F$};n.splice(e,1),this.setState({data:n});let{onUpdate:s,onDeltaUpdate:u}=this.props;s(o[o.length-1],n),u(l)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r=[],nextDeep:n}=this.state,{beforeAddAction:o,logger:i}=this.props,a=t.length;(o||Promise.resolve.bind(Promise))(a,r,n,e).then(()=>{t[a]=e,this.setState({data:t}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(r[r.length-1],t),s({type:I$,keyPath:r,deep:n,key:a,newValue:e})}).catch(i.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:i,keyPath:a,nextDeep:l}=this.state,s=i[e];(o||Promise.resolve.bind(Promise))(e,a,l,s,t).then(()=>{i[e]=t,this.setState({data:i});let{onUpdate:u,onDeltaUpdate:c}=this.props;u(a[a.length-1],i),c({type:L$,keyPath:a,deep:l,key:e,newValue:t,oldValue:s}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:o,readOnly:i,getStyle:a,dataType:l,minusMenuElement:s}=this.props,{minus:u,collapsed:c}=a(e,t,r,n,l),d=i(e,t,r,n,l),f=s&&h.cloneElement(s,{onClick:o,className:"rejt-minus-menu",style:u,"aria-label":`remove the array '${String(e)}'`});return g.createElement(g.Fragment,null,g.createElement("span",{style:c},"[...] ",t.length," ",t.length===1?"item":"items"),!d&&f)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:o,nextDeep:i}=this.state,{isCollapsed:a,handleRemove:l,onDeltaUpdate:s,readOnly:u,getStyle:c,dataType:d,addButtonElement:f,cancelButtonElement:p,inputElementGenerator:m,textareaElementGenerator:y,minusMenuElement:S,plusMenuElement:b,beforeRemoveAction:v,beforeAddAction:x,beforeUpdateAction:C,logger:A,onSubmitValueParser:$}=this.props,{minus:w,plus:_,delimiter:O,ul:T,addForm:I}=c(e,t,r,n,d),D=u(e,t,r,n,d),M=b&&h.cloneElement(b,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:_,"aria-label":`add a new item to the '${String(e)}' array`}),k=S&&h.cloneElement(S,{onClick:l,className:"rejt-minus-menu",style:w,"aria-label":`remove the array '${String(e)}'`});return g.createElement(g.Fragment,null,g.createElement("span",{className:"rejt-not-collapsed-delimiter",style:O},"["),!o&&M,g.createElement("ul",{className:"rejt-not-collapsed-list",style:T},t.map((R,j)=>g.createElement(Fl,{key:j,name:j.toString(),data:R,keyPath:r,deep:i,isCollapsed:a,handleRemove:this.handleRemoveItem(j),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:u,getStyle:c,addButtonElement:f,cancelButtonElement:p,inputElementGenerator:m,textareaElementGenerator:y,minusMenuElement:S,plusMenuElement:b,beforeRemoveAction:v,beforeAddAction:x,beforeUpdateAction:C,logger:A,onSubmitValueParser:$}))),!D&&o&&g.createElement("div",{className:"rejt-add-form",style:I},g.createElement(ip,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:f,cancelButtonElement:p,inputElementGenerator:m,keyPath:r,deep:n,onSubmitValueParser:$})),g.createElement("span",{className:"rejt-not-collapsed-delimiter",style:O},"]"),!D&&k)}render(){let{name:e,collapsed:t,keyPath:r,deep:n}=this.state,o=t?this.renderCollapsed():this.renderNotCollapsed();return g.createElement(P$,{name:e,collapsed:t,deep:n,keyPath:r,onClick:this.handleCollapseMode},o)}};N$.defaultProps={keyPath:[],deep:0,minusMenuElement:g.createElement("span",null," - "),plusMenuElement:g.createElement("span",null," + ")};var M$=class extends h.Component{constructor(e){var r;super(e);let t=[...e.keyPath||[],e.name];this.state={value:e.value,name:e.name,keyPath:t!=null?t:[],deep:(r=e.deep)!=null?r:0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:i}=this.state,{readOnly:a,dataType:l}=this.props,s=a(r,n,o,i,l);e&&!s&&typeof t.focus=="function"&&t.focus()}onKeydown(e){let{inputRef:t}=this.state;e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||t!==e.target||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:i,name:a,deep:l}=this.state;if(!i)return;let s=n(!0,o,l,a,i.value),u={value:s,key:a};(e||Promise.resolve.bind(Promise))(u).then(()=>{k$(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:i,originalValue:a,readOnly:l,dataType:s,getStyle:u,textareaElementGenerator:c,minusMenuElement:d,keyPath:f=[]}=this.props,p=u(e,a,n,o,s),m=null,y=null,S=l(e,a,n,o,s);if(r&&!S){let b=c(op,f,o,e,a,s),v=h.cloneElement(b,{ref:this.refInput,defaultValue:t,onKeyDown:this.onKeydown});m=g.createElement("span",{className:"rejt-edit-form",style:p.editForm},v),y=null}else{m=g.createElement("span",{className:"rejt-value",style:p.value,onClick:S?void 0:this.handleEditMode},t);let b=f.at(-1),v=d&&h.cloneElement(d,{onClick:i,className:"rejt-minus-menu",style:p.minus,"aria-label":`remove the function '${String(e)}'${String(b)?` from '${String(b)}'`:""}`});y=S?null:v}return g.createElement("li",{className:"rejt-value-node",style:p.li},g.createElement("span",{className:"rejt-name",style:p.name},e," :"," "),m,y)}};M$.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},cancelButtonElement:g.createElement("button",null,"c"),minusMenuElement:g.createElement("span",null," - ")};var Fl=class extends h.Component{constructor(e){var t,r;super(e),this.state={data:e.data,name:e.name,keyPath:(t=e.keyPath)!=null?t:[],deep:(r=e.deep)!=null?r:0}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:o,handleRemove:i,handleUpdateValue:a,onUpdate:l,onDeltaUpdate:s,readOnly:u,getStyle:c,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,textareaElementGenerator:m,minusMenuElement:y,plusMenuElement:S,beforeRemoveAction:b,beforeAddAction:v,beforeUpdateAction:x,logger:C,onSubmitValueParser:A}=this.props,$=()=>!0,w=rn(e);switch(w){case wU:return g.createElement(pd,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:i,onUpdate:l,onDeltaUpdate:s,readOnly:$,dataType:w,getStyle:c,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,textareaElementGenerator:m,minusMenuElement:y,plusMenuElement:S,beforeRemoveAction:b,beforeAddAction:v,beforeUpdateAction:x,logger:C,onSubmitValueParser:A});case CU:return g.createElement(pd,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:i,onUpdate:l,onDeltaUpdate:s,readOnly:u,dataType:w,getStyle:c,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,textareaElementGenerator:m,minusMenuElement:y,plusMenuElement:S,beforeRemoveAction:b,beforeAddAction:v,beforeUpdateAction:x,logger:C,onSubmitValueParser:A});case _U:return g.createElement(N$,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:i,onUpdate:l,onDeltaUpdate:s,readOnly:u,dataType:w,getStyle:c,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,textareaElementGenerator:m,minusMenuElement:y,plusMenuElement:S,beforeRemoveAction:b,beforeAddAction:v,beforeUpdateAction:x,logger:C,onSubmitValueParser:A});case TU:return g.createElement(Ar,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:u,dataType:w,getStyle:c,cancelButtonElement:f,inputElementGenerator:p,minusMenuElement:y,logger:C,onSubmitValueParser:A});case AU:return g.createElement(Ar,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:u,dataType:w,getStyle:c,cancelButtonElement:f,inputElementGenerator:p,minusMenuElement:y,logger:C,onSubmitValueParser:A});case OU:return g.createElement(Ar,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:u,dataType:w,getStyle:c,cancelButtonElement:f,inputElementGenerator:p,minusMenuElement:y,logger:C,onSubmitValueParser:A});case RU:return g.createElement(Ar,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:$,dataType:w,getStyle:c,cancelButtonElement:f,inputElementGenerator:p,minusMenuElement:y,logger:C,onSubmitValueParser:A});case DU:return g.createElement(Ar,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:u,dataType:w,getStyle:c,cancelButtonElement:f,inputElementGenerator:p,minusMenuElement:y,logger:C,onSubmitValueParser:A});case PU:return g.createElement(Ar,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:u,dataType:w,getStyle:c,cancelButtonElement:f,inputElementGenerator:p,minusMenuElement:y,logger:C,onSubmitValueParser:A});case IU:return g.createElement(M$,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:u,dataType:w,getStyle:c,cancelButtonElement:f,textareaElementGenerator:m,minusMenuElement:y,logger:C,onSubmitValueParser:A});case FU:return g.createElement(Ar,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:$,dataType:w,getStyle:c,cancelButtonElement:f,inputElementGenerator:p,minusMenuElement:y,logger:C,onSubmitValueParser:A});default:return null}}};Fl.defaultProps={keyPath:[],deep:0};var pd=class extends h.Component{constructor(e){var r,n,o;super(e);let t=e.deep===-1?[]:[...e.keyPath||[],e.name];this.state={name:e.name,data:e.data,keyPath:t!=null?t:[],deep:(r=e.deep)!=null?r:0,nextDeep:((n=e.deep)!=null?n:0)+1,collapsed:e.isCollapsed(t,(o=e.deep)!=null?o:0,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n=[]}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,i=n.length;o(n[i-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n=[],nextDeep:o}=this.state,{beforeAddAction:i,logger:a}=this.props;(i||Promise.resolve.bind(Promise))(e,n,o,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(n[n.length-1],r),s({type:I$,keyPath:n,deep:o,key:e,newValue:t})}).catch(a.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o=[],nextDeep:i}=this.state,a=n[e];(t||Promise.resolve.bind(Promise))(e,o,i,a).then(()=>{let l={keyPath:o,deep:i,key:e,oldValue:a,type:F$};delete n[e],this.setState({data:n});let{onUpdate:s,onDeltaUpdate:u}=this.props;s(o[o.length-1],n),u(l)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:i,keyPath:a=[],nextDeep:l}=this.state,s=i[e];(o||Promise.resolve.bind(Promise))(e,a,l,s,t).then(()=>{i[e]=t,this.setState({data:i});let{onUpdate:u,onDeltaUpdate:c}=this.props;u(a[a.length-1],i),c({type:L$,keyPath:a,deep:l,key:e,newValue:t,oldValue:s}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:o,readOnly:i,dataType:a,getStyle:l,minusMenuElement:s}=this.props,{minus:u,collapsed:c}=l(e,n,t,r,a),d=Object.getOwnPropertyNames(n),f=i(e,n,t,r,a),p=s&&h.cloneElement(s,{onClick:o,className:"rejt-minus-menu",style:u,"aria-label":`remove the object '${String(e)}'`});return g.createElement(g.Fragment,null,g.createElement("span",{style:c},"{...}"," ",d.length," ",d.length===1?"key":"keys"),!f&&p)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:o,addFormVisible:i}=this.state,{isCollapsed:a,handleRemove:l,onDeltaUpdate:s,readOnly:u,getStyle:c,dataType:d,addButtonElement:f,cancelButtonElement:p,inputElementGenerator:m,textareaElementGenerator:y,minusMenuElement:S,plusMenuElement:b,beforeRemoveAction:v,beforeAddAction:x,beforeUpdateAction:C,logger:A,onSubmitValueParser:$}=this.props,{minus:w,plus:_,addForm:O,ul:T,delimiter:I}=c(e,t,r,n,d),D=Object.getOwnPropertyNames(t),M=u(e,t,r,n,d),k=b&&h.cloneElement(b,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:_,"aria-label":`add a new property to the object '${String(e)}'`}),R=S&&h.cloneElement(S,{onClick:l,className:"rejt-minus-menu",style:w,"aria-label":`remove the object '${String(e)}'`}),j=D.map(L=>g.createElement(Fl,{key:L,name:L,data:t[L],keyPath:r,deep:o,isCollapsed:a,handleRemove:this.handleRemoveValue(L),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:u,getStyle:c,addButtonElement:f,cancelButtonElement:p,inputElementGenerator:m,textareaElementGenerator:y,minusMenuElement:S,plusMenuElement:b,beforeRemoveAction:v,beforeAddAction:x,beforeUpdateAction:C,logger:A,onSubmitValueParser:$}));return g.createElement(g.Fragment,null,g.createElement("span",{className:"rejt-not-collapsed-delimiter",style:I},"{"),!M&&k,g.createElement("ul",{className:"rejt-not-collapsed-list",style:T},j),!M&&i&&g.createElement("div",{className:"rejt-add-form",style:O},g.createElement(ip,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:f,cancelButtonElement:p,inputElementGenerator:m,keyPath:r,deep:n,onSubmitValueParser:$})),g.createElement("span",{className:"rejt-not-collapsed-delimiter",style:I},"}"),!M&&R)}render(){let{name:e,collapsed:t,keyPath:r,deep:n=0}=this.state,o=t?this.renderCollapsed():this.renderNotCollapsed();return g.createElement(P$,{name:e,collapsed:t,deep:n,keyPath:r,onClick:this.handleCollapseMode},o)}};pd.defaultProps={keyPath:[],deep:0,minusMenuElement:g.createElement("span",null," - "),plusMenuElement:g.createElement("span",null," + ")};var Ar=class extends h.Component{constructor(e){var r;super(e);let t=[...e.keyPath||[],e.name];this.state={value:e.value,name:e.name,keyPath:t!=null?t:[],deep:(r=e.deep)!=null?r:0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:i}=this.state,{readOnly:a,dataType:l}=this.props,s=a(r,n,o,i,l);e&&!s&&typeof t.focus=="function"&&t.focus()}onKeydown(e){let{inputRef:t}=this.state;e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||t!==e.target||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:i,name:a,deep:l}=this.state;if(!i)return;let s=n(!0,o,l,a,i.value),u={value:s,key:a};(e||Promise.resolve.bind(Promise))(u).then(()=>{k$(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:i,originalValue:a,readOnly:l,dataType:s,getStyle:u,inputElementGenerator:c,minusMenuElement:d,keyPath:f}=this.props,p=u(e,a,n,o,s),m=l(e,a,n,o,s),y=r&&!m,S=c(op,f,o,e,a,s),b=h.cloneElement(S,{ref:this.refInput,defaultValue:JSON.stringify(a),onKeyDown:this.onKeydown}),v=n.at(-2),x=d&&h.cloneElement(d,{onClick:i,className:"rejt-minus-menu",style:p.minus,"aria-label":`remove the property '${String(e)}' with value '${String(a)}'${String(v)?` from '${String(v)}'`:""}`});return g.createElement("li",{className:"rejt-value-node",style:p.li},g.createElement("span",{className:"rejt-name",style:p.name},e," : "),y?g.createElement("span",{className:"rejt-edit-form",style:p.editForm},b):g.createElement("span",{className:"rejt-value",style:p.value,onClick:m?void 0:this.handleEditMode},String(t)),!m&&!y&&x)}};Ar.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),cancelButtonElement:g.createElement("button",null,"c"),minusMenuElement:g.createElement("span",null," - ")};function LU(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch(r){}return t}var kU={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},NU={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},MU={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}},B$=class extends h.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){var r,n;this.setState({data:t}),(n=(r=this.props).onFullyUpdate)==null||n.call(r,t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:o,getStyle:i,addButtonElement:a,cancelButtonElement:l,inputElement:s,textareaElement:u,minusMenuElement:c,plusMenuElement:d,beforeRemoveAction:f,beforeAddAction:p,beforeUpdateAction:m,logger:y,onSubmitValueParser:S,fallback:b=null}=this.props,v=rn(e),x=o;rn(o)==="Boolean"&&(x=()=>o);let C=s;s&&rn(s)!=="Function"&&(C=()=>s);let A=u;return u&&rn(u)!=="Function"&&(A=()=>u),v==="Object"||v==="Array"?g.createElement("div",{className:"rejt-tree"},g.createElement(Fl,{data:e,name:t||"root",deep:-1,isCollapsed:r!=null?r:(()=>!1),onUpdate:this.onUpdate,onDeltaUpdate:n!=null?n:(()=>{}),readOnly:x,getStyle:i!=null?i:(()=>({})),addButtonElement:a,cancelButtonElement:l,inputElementGenerator:C,textareaElementGenerator:A,minusMenuElement:c,plusMenuElement:d,handleRemove:this.removeRoot,beforeRemoveAction:f,beforeAddAction:p,beforeUpdateAction:m,logger:y!=null?y:{},onSubmitValueParser:S!=null?S:($=>$)})):b}};B$.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,o)=>{switch(o){case"Object":case"Error":return kU;case"Array":return NU;default:return MU}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,o)=>LU(o),inputElement:()=>g.createElement("input",null),textareaElement:()=>g.createElement("textarea",null),fallback:null};var{window:BU}=globalThis,jU=N.div(({theme:e})=>({position:"relative",display:"flex",isolation:"isolate",".rejt-tree":{marginLeft:"1rem",fontSize:"13px",listStyleType:"none"},".rejt-value-node:hover":{"& > button":{opacity:1}},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.base==="light"?e.color.lighter:"hsl(0 0 100 / 0.02)",borderColor:e.appBorderColor}})),gy=N.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer"})),my=N.button(({theme:e})=>({background:"none",border:0,display:"inline-flex",verticalAlign:"middle",padding:3,marginLeft:5,color:e.textMutedColor,opacity:0,transition:"opacity 0.2s",cursor:"pointer",position:"relative",svg:{width:9,height:9},":disabled":{cursor:"not-allowed"},":hover, :focus-visible":{opacity:1},"&:hover:not(:disabled), &:focus-visible:not(:disabled)":{"&.rejt-plus-menu":{color:e.color.ancillary},"&.rejt-minus-menu":{color:e.color.negative}}})),yy=N.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),HU=N(Cl)({position:"absolute",zIndex:2,top:2,right:2}),UU=N(bn.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),zU={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},KU=e=>{e.currentTarget.dispatchEvent(new BU.KeyboardEvent("keydown",zU))},GU=e=>{e.currentTarget.select()},WU=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),by=({name:e,value:t,onChange:r,argType:n})=>{var x;let o=el(),i=h.useMemo(()=>t&&Hj(t),[t]),a=i!=null,[l,s]=h.useState(!a),[u,c]=h.useState(null),d=!!((x=n==null?void 0:n.table)!=null&&x.readonly),f=h.useCallback(C=>{try{C&&r(JSON.parse(C)),c(null)}catch(A){c(A)}},[r]),[p,m]=h.useState(!1),y=h.useCallback(()=>{r({}),m(!0)},[m]),S=h.useRef(null);if(h.useEffect(()=>{p&&S.current&&S.current.select()},[p]),!a)return g.createElement(Pe,{ariaLabel:!1,disabled:d,id:Va(e),onClick:y},"Set object");let b=g.createElement(UU,{ref:S,id:zt(e),minRows:3,name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:C=>f(C.target.value),placeholder:"Edit JSON string...",autoFocus:p,valid:u?"error":void 0,readOnly:d}),v=Array.isArray(t)||typeof t=="object"&&(t==null?void 0:t.constructor)===Object;return g.createElement(jU,null,v&&g.createElement(HU,{disabled:d,pressed:l,ariaLabel:`Edit the ${e} properties in JSON format`,onClick:C=>{C.preventDefault(),s(A=>!A)}},"Edit JSON"),l?b:g.createElement(B$,{readOnly:d||!v,isCollapsed:v?void 0:()=>!0,data:i,rootName:e,onFullyUpdate:r,getStyle:WU(o),cancelButtonElement:g.createElement(gy,{type:"button"},"Cancel"),addButtonElement:g.createElement(gy,{type:"submit",primary:!0},"Save"),plusMenuElement:g.createElement(my,{type:"button"},g.createElement(j5,null)),minusMenuElement:g.createElement(my,{type:"button"},g.createElement(H5,null)),inputElement:(C,A,$,w)=>w?g.createElement(yy,{onFocus:GU,onBlur:KU}):g.createElement(yy,null),fallback:b}))},VU=N.input(({theme:e,min:t,max:r,value:n,disabled:o})=>{let i={background:e.base==="light"?`linear-gradient(to right,
|
|
729
|
+
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
|
|
730
|
+
${ko(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
|
|
731
|
+
${ko(.02,e.input.background)} 100%)`:`linear-gradient(to right,
|
|
732
|
+
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
|
|
733
|
+
${dd(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
|
|
734
|
+
${dd(.02,e.input.background)} 100%)`,borderRadius:6,boxShadow:`${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"} 0 0 0 1px inset`,cursor:o?"not-allowed":"pointer",height:6,width:"100%"},a={borderColor:Xn(e.color.secondary,.4)},l={width:16,height:16,borderRadius:50,cursor:o?"not-allowed":"grab",background:e.input.background,border:`1px solid ${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,boxShadow:e.base==="light"?`0 1px 3px 0px ${Xn(e.appBorderColor,.2)}`:"unset",transition:"all 150ms ease-out"},s={background:`${ko(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},u={background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)"},c={borderColor:e.color.secondary,boxShadow:e.base==="light"?`0 0px 5px 0px ${e.color.secondary}`:"unset"};return{appearance:"none",backgroundColor:"transparent",width:"100%","&::-webkit-slider-runnable-track":i,"&::-moz-range-track":i,"&::-ms-track":P(E({},i),{color:"transparent"}),"&::-moz-range-thumb":P(E({},l),{"&:hover":s,"&:active":u}),"&::-webkit-slider-thumb":P(E({},l),{marginTop:"-6px",appearance:"none","&:hover":s,"&:active":u}),"&::-ms-thumb":P(E({},l),{marginTop:0,"&:hover":s,"&:active":u}),"&:focus":{outline:"none","&::-webkit-slider-runnable-track":a,"&::-moz-range-track":a,"&::-ms-track":a,"&::-webkit-slider-thumb":c,"&::-moz-range-thumb":c,"&::-ms-thumb":c},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}}),j$=N.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),qU=N(j$)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),YU=N.div(({readOnly:e})=>({display:"flex",alignItems:"center",width:"100%",opacity:e?.5:1}));function XU(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var JU=({name:e,value:t,onChange:r,min:n=0,max:o=100,step:i=1,onBlur:a,onFocus:l,argType:s})=>{var m;let u=y=>{r(oU(y.target.value))},c=t!==void 0,d=h.useMemo(()=>XU(i),[i]),f=!!((m=s==null?void 0:s.table)!=null&&m.readonly),p=zt(e);return g.createElement(YU,{readOnly:f},g.createElement("label",{htmlFor:p,className:"sb-sr-only"},e),g.createElement(j$,null,n),g.createElement(VU,{id:p,type:"range",disabled:f,onChange:u,name:e,min:n,max:o,step:i,onFocus:l,onBlur:a,value:t!=null?t:n}),g.createElement(qU,{numberOFDecimalsPlaces:d,max:o},c?t.toFixed(d):"--"," / ",o))},ZU=N.label({display:"flex"}),QU=N.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),ez=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:i,argType:a})=>{var p,m;let l=y=>{r(y.target.value)},s=!!((p=a==null?void 0:a.table)!=null&&p.readonly),[u,c]=h.useState(!1),d=h.useCallback(()=>{r(""),c(!0)},[c]);if(t===void 0)return g.createElement(Pe,{ariaLabel:!1,variant:"outline",size:"medium",disabled:s,id:Va(e),onClick:d},"Set string");let f=typeof t=="string";return g.createElement(ZU,null,g.createElement(bn.Textarea,{id:zt(e),maxLength:i,onChange:l,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:u,valid:f?void 0:"error",name:e,value:f?t:"",onFocus:n,onBlur:o}),i&&g.createElement(QU,{isMaxed:(t==null?void 0:t.length)===i},(m=t==null?void 0:t.length)!=null?m:0," / ",i))},tz=N(bn.Input)({padding:10});function rz(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var nz=({onChange:e,name:t,accept:r="image/*",value:n,argType:o})=>{var u;let i=h.useRef(null),a=(u=o==null?void 0:o.control)==null?void 0:u.readOnly;function l(c){if(!c.target.files)return;let d=Array.from(c.target.files).map(f=>URL.createObjectURL(f));e(d),rz(n||[])}h.useEffect(()=>{n==null&&i.current&&(i.current.value="")},[n,t]);let s=zt(t);return g.createElement(g.Fragment,null,g.createElement("label",{htmlFor:s,className:"sb-sr-only"},t),g.createElement(tz,{ref:i,id:s,type:"file",name:t,multiple:!0,disabled:a,onChange:l,accept:r,size:"flex"}))},oz=h.lazy(()=>Fr(()=>import("./Color-ASIRERSW-DTVqMCUO.js"),__vite__mapDeps([6,1,2,3]),import.meta.url)),iz=e=>g.createElement(h.Suspense,{fallback:g.createElement("div",null)},g.createElement(oz,E({},e))),az={array:by,object:by,boolean:XH,color:iz,date:rU,number:aU,check:$n,"inline-check":$n,radio:$n,"inline-radio":$n,select:$n,"multi-select":$n,range:JU,text:ez,file:nz},Ey=()=>g.createElement(g.Fragment,null,"-"),lz=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var y;let{key:o,control:i}=e,[a,l]=h.useState(!1),[s,u]=h.useState({value:t});h.useEffect(()=>{a||u({value:t})},[a,t]);let c=h.useCallback(S=>(u({value:S}),r({[o]:S}),S),[r,o]),d=h.useCallback(()=>l(!1),[]),f=h.useCallback(()=>l(!0),[]);if(!i||i.disable){let S=(i==null?void 0:i.disable)!==!0&&((y=e==null?void 0:e.type)==null?void 0:y.name)!=="function";return n&&S?g.createElement(Kn,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},"Setup controls"):g.createElement(Ey,null)}let p={name:o,argType:e,value:s.value,onChange:c,onBlur:d,onFocus:f},m=az[i.type]||Ey;return g.createElement(m,P(E(E({},p),i),{controlType:i.type}))},sz=N.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Sr({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),uz=({tags:e})=>{var i,a;let t=(e.params||[]).filter(l=>l.description),r=t.length!==0,n=e.deprecated!=null,o=e.returns!=null&&e.returns.description!=null;return!r&&!o&&!n?null:g.createElement(g.Fragment,null,g.createElement(sz,null,g.createElement("tbody",null,n&&g.createElement("tr",{key:"deprecated"},g.createElement("td",{colSpan:2},g.createElement("strong",null,"Deprecated"),": ",(i=e.deprecated)==null?void 0:i.toString())),r&&t.map(l=>g.createElement("tr",{key:l.name},g.createElement("td",null,g.createElement("code",null,l.name)),g.createElement("td",null,l.description))),o&&g.createElement("tr",{key:"returns"},g.createElement("td",null,g.createElement("code",null,"Returns")),g.createElement("td",null,(a=e.returns)==null?void 0:a.description)))))};function cz(e){return[...new Set(e)]}var dz=Xw(fj()),hd=8,vy=N.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),fz=N.span(Sr,({theme:e,simple:t=!1})=>E({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px"},t&&{background:"transparent",border:"0 none",paddingLeft:0})),pz=N.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),hz=N.div(Sr,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),gz=N.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),mz=N(V5)({marginLeft:4}),yz=N(x1)({marginLeft:4}),bz=()=>g.createElement("span",null,"-"),H$=({text:e,simple:t})=>g.createElement(fz,{simple:t},e),Ez=(0,dz.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),vz=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return cz(t)},Sy=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,hd)),r.map(n=>g.createElement(H$,{key:n,text:n===""?'""':n}))},Sz=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,i]=h.useState(!1),[a,l]=h.useState(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return g.createElement(H$,{text:s});let u=vz(s),c=u.length;return c>hd?g.createElement(vy,{isExpanded:a},Sy(u,a),g.createElement(pz,{onClick:()=>l(!a)},a?"Show less...":`Show ${c-hd} more...`)):g.createElement(vy,null,Sy(u))}return g.createElement(Kf,{placement:"bottom",visible:o,onVisibleChange:u=>{i(u)},tooltip:g.createElement(gz,{width:Ez(n)},g.createElement(di,{language:"jsx",format:!1},n))},g.createElement(hz,{className:"sbdocs-expandable"},g.createElement("span",null,s),o?g.createElement(mz,null):g.createElement(yz,null)))},Yu=({value:e,initialExpandedArgs:t})=>e==null?g.createElement(bz,null):g.createElement(Sz,{value:e,initialExpandedArgs:t}),xz=N.span({fontWeight:"bold"}),$z=N.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),wz=N.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:P(E({},Sr({theme:e})),{fontSize:12,fontFamily:e.typography.fonts.mono}),"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),Cz=N.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?Le(.1,e.color.defaultText):Le(.2,e.color.defaultText),marginTop:t?4:0})),_z=N.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?Le(.1,e.color.defaultText):Le(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),Tz=N.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),Az=e=>e&&{summary:typeof e=="string"?e:e.name},Yi=e=>{var y;let[t,r]=h.useState(!1),{row:n,updateArgs:o,compact:i,expandable:a,initialExpandedArgs:l}=e,{name:s,description:u}=n,c=n.table||{},d=c.type||Az(n.type),f=c.defaultValue||n.defaultValue,p=(y=n.type)==null?void 0:y.required,m=u!=null&&u!=="";return g.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},g.createElement(Tz,{expandable:a!=null?a:!1},g.createElement(xz,null,s),p?g.createElement($z,{title:"Required"},"*"):null),i?null:g.createElement("td",null,m&&g.createElement(wz,null,g.createElement(T$,null,u)),c.jsDocTags!=null?g.createElement(g.Fragment,null,g.createElement(_z,{hasDescription:m},g.createElement(Yu,{value:d,initialExpandedArgs:l})),g.createElement(uz,{tags:c.jsDocTags})):g.createElement(Cz,{hasDescription:m},g.createElement(Yu,{value:d,initialExpandedArgs:l}))),i?null:g.createElement("td",null,g.createElement(Yu,{value:f,initialExpandedArgs:l})),o?g.createElement("td",null,g.createElement(lz,P(E({},e),{isHovered:t}))):null)},Oz=N.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content})),Rz=N.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),Dz=({inAddonPanel:e})=>{let[t,r]=h.useState(!0);return h.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:g.createElement(Oz,{inAddonPanel:e},g.createElement(vi,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:g.createElement(g.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:g.createElement(Rz,null,e&&g.createElement(g.Fragment,null,g.createElement(Kn,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},g.createElement(Sc,null)," Read docs")),!e&&g.createElement(Kn,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},g.createElement(Sc,null)," Learn how to set that up"))}))},Pz=N(W5)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?Le(.25,e.color.defaultText):Le(.3,e.color.defaultText),border:"none",display:"inline-block"})),Iz=N(S1)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?Le(.25,e.color.defaultText):Le(.3,e.color.defaultText),border:"none",display:"inline-block"})),Fz=N.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),Lz=N.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?Le(.4,e.color.defaultText):Le(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),kz=N.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),Nz=N.td({position:"relative"}),Mz=N.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${dd(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),xy=N.button({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}),Xu=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[i,a]=h.useState(n),l=e==="subsection"?kz:Lz,s=(r==null?void 0:r.length)||0,u=e==="subsection"?`${s} item${s!==1?"s":""}`:"",c=`${i?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return g.createElement(g.Fragment,null,g.createElement(Mz,{title:c},g.createElement(l,{colSpan:1},g.createElement(xy,{onClick:d=>a(!i),tabIndex:0},c),g.createElement(Fz,null,i?g.createElement(Pz,null):g.createElement(Iz,null),t)),g.createElement(Nz,{colSpan:o-1},g.createElement(xy,{onClick:d=>a(!i),tabIndex:-1,style:{outline:"none"}},c),i?null:u)),i?r:null)},Bz=N.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),Xi=N.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Xe=N.div(({position:e,theme:t})=>{let r={display:"flex",flexDirection:"column",gap:5,padding:"10px 15px",alignItems:"flex-start"};switch(e){case"first":return P(E({},r),{width:"25%",paddingLeft:20});case"second":return P(E({},r),{width:"35%"});case"third":return P(E({},r),{width:"15%"});case"last":return P(E({},r),{width:"25%",paddingRight:20})}}),Ne=N.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),jz=()=>g.createElement(Bz,null,g.createElement(Xi,null,g.createElement(Xe,{position:"first"},g.createElement(Ne,{width:"60%"})),g.createElement(Xe,{position:"second"},g.createElement(Ne,{width:"30%"})),g.createElement(Xe,{position:"third"},g.createElement(Ne,{width:"60%"})),g.createElement(Xe,{position:"last"},g.createElement(Ne,{width:"60%"}))),g.createElement(Xi,null,g.createElement(Xe,{position:"first"},g.createElement(Ne,{width:"60%"})),g.createElement(Xe,{position:"second"},g.createElement(Ne,{width:"80%"}),g.createElement(Ne,{width:"30%"})),g.createElement(Xe,{position:"third"},g.createElement(Ne,{width:"60%"})),g.createElement(Xe,{position:"last"},g.createElement(Ne,{width:"60%"}))),g.createElement(Xi,null,g.createElement(Xe,{position:"first"},g.createElement(Ne,{width:"60%"})),g.createElement(Xe,{position:"second"},g.createElement(Ne,{width:"80%"}),g.createElement(Ne,{width:"30%"})),g.createElement(Xe,{position:"third"},g.createElement(Ne,{width:"60%"})),g.createElement(Xe,{position:"last"},g.createElement(Ne,{width:"60%"}))),g.createElement(Xi,null,g.createElement(Xe,{position:"first"},g.createElement(Ne,{width:"60%"})),g.createElement(Xe,{position:"second"},g.createElement(Ne,{width:"80%"}),g.createElement(Ne,{width:"30%"})),g.createElement(Xe,{position:"third"},g.createElement(Ne,{width:"60%"})),g.createElement(Xe,{position:"last"},g.createElement(Ne,{width:"60%"})))),Hz=N.table(({theme:e,compact:t,inAddonPanel:r,inTabPanel:n})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":E({},t?null:{width:"35%"}),"td:nth-of-type(3)":E({},t?null:{width:"15%"}),"th:last-of-type, td:last-of-type":E({paddingRight:20},t?null:{width:"25%"}),th:{color:e.textMutedColor,paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginInline:r||n?0:1,paddingInline:n?3:0,tbody:E(P(E({},r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"}),{"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`}}),r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}})}})),Uz=N.div({position:"relative"}),zz=N.div({position:"absolute",right:22,top:10}),Kz=N(Pe)({margin:"-4px -12px -4px 0"}),Gz={alpha:(e,t)=>{var r,n;return((r=e.name)!=null?r:"").localeCompare((n=t.name)!=null?n:"")},requiredFirst:(e,t)=>{var r,n,o,i;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||((o=e.name)!=null?o:"").localeCompare((i=t.name)!=null?i:"")},none:null},Wz=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([i,a])=>{let{category:l,subcategory:s}=(a==null?void 0:a.table)||{};if(l){let u=r.sections[l]||{ungrouped:[],subsections:{}};if(!s)u.ungrouped.push(E({key:i},a));else{let c=u.subsections[s]||[];c.push(E({key:i},a)),u.subsections[s]=c}r.sections[l]=u}else if(s){let u=r.ungroupedSubsections[s]||[];u.push(E({key:i},a)),r.ungroupedSubsections[s]=u}else r.ungrouped.push(E({key:i},a))});let n=Gz[t],o=i=>n?Object.keys(i).reduce((a,l)=>P(E({},a),{[l]:i[l].sort(n)}),{}):i;return{ungrouped:n?r.ungrouped.sort(n):r.ungrouped,ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((i,a)=>P(E({},i),{[a]:{ungrouped:n?r.sections[a].ungrouped.sort(n):r.sections[a].ungrouped,subsections:o(r.sections[a].subsections)}}),{})}},Vz=(e,t,r)=>{try{return AA(e,t,r)}catch(n){return pj.warn(n.message),!1}},gd=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,inTabPanel:i,initialExpandedArgs:a,sort:l="none",isLoading:s}=e;if("error"in e){let{error:x}=e;return g.createElement(y$,null,x," ",g.createElement(Kn,{href:"http://storybook.js.org/docs/?ref=ui",target:"_blank",withArrow:!0},g.createElement(Sc,null)," Read the docs"))}if(s)return g.createElement(jz,null);let{rows:u,args:c,globals:d}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},f=Wz(Uj(u||{},x=>{var C;return!((C=x==null?void 0:x.table)!=null&&C.disable)&&Vz(x,c||{},d||{})}),l),p=f.ungrouped.length===0,m=Object.entries(f.sections).length===0,y=Object.entries(f.ungroupedSubsections).length===0;if(p&&m&&y)return g.createElement(Dz,{inAddonPanel:o});let S=1;t&&(S+=1),n||(S+=2);let b=Object.keys(f.sections).length>0,v={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:a};return g.createElement(vf,null,g.createElement(Uz,null,t&&!s&&r&&g.createElement(zz,null,g.createElement(Kz,{variant:"ghost",padding:"small",onClick:()=>r(),ariaLabel:"Reset controls"},g.createElement(X5,null))),g.createElement(Hz,{compact:n,inAddonPanel:o,inTabPanel:i,className:"docblock-argstable sb-unstyled"},g.createElement("thead",{className:"docblock-argstable-head"},g.createElement("tr",null,g.createElement("th",null,g.createElement("span",null,"Name")),n?null:g.createElement("th",null,g.createElement("span",null,"Description")),n?null:g.createElement("th",null,g.createElement("span",null,"Default")),t?g.createElement("th",null,g.createElement("span",null,"Control")):null)),g.createElement("tbody",{className:"docblock-argstable-body"},f.ungrouped.map(x=>g.createElement(Yi,E({key:x.key,row:x,arg:c&&c[x.key]},v))),Object.entries(f.ungroupedSubsections).map(([x,C])=>g.createElement(Xu,{key:x,label:x,level:"subsection",colSpan:S},C.map(A=>g.createElement(Yi,E({key:A.key,row:A,arg:c&&c[A.key],expandable:b},v))))),Object.entries(f.sections).map(([x,C])=>g.createElement(Xu,{key:x,label:x,level:"section",colSpan:S},C.ungrouped.map(A=>g.createElement(Yi,E({key:A.key,row:A,arg:c&&c[A.key]},v))),Object.entries(C.subsections).map(([A,$])=>g.createElement(Xu,{key:A,label:A,level:"subsection",colSpan:S},$.map(w=>g.createElement(Yi,E({key:w.key,row:w,arg:c&&c[w.key],expandable:b},v)))))))))))},Me=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,ap=600,qz=N.h1(_e,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${ap}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),Yz=N.h2(_e,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${ap}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:Le(.25,e.color.defaultText)})),Xz=N.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?Le(.1,e.color.defaultText):Le(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,[Me("a")]:P(E({},t),{fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}}),[Me("blockquote")]:P(E({},t),{margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}}),[Me("div")]:t,[Me("dl")]:P(E({},t),{margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}}),[Me("h1")]:P(E(E({},t),r),{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold}),[Me("h2")]:P(E(E({},t),r),{fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`}),[Me("h3")]:P(E(E({},t),r),{fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold}),[Me("h4")]:P(E(E({},t),r),{fontSize:`${e.typography.size.s3}px`}),[Me("h5")]:P(E(E({},t),r),{fontSize:`${e.typography.size.s2}px`}),[Me("h6")]:P(E(E({},t),r),{fontSize:`${e.typography.size.s2}px`,color:e.color.dark}),[Me("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[Me("img")]:{maxWidth:"100%"},[Me("li")]:P(E({},t),{fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n}),[Me("ol")]:P(E({},t),{margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}}),[Me("p")]:P(E({},t),{margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n}),[Me("pre")]:P(E({},t),{fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}}),[Me("span")]:P(E({},t),{"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}}),[Me("table")]:P(E({},t),{margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}}),[Me("ul")]:P(E({},t),{margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"})}}),Jz=N.div(({theme:e})=>({background:e.background.content,display:"flex",flexDirection:"row-reverse",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${ap}px)`]:{}})),Zz=({children:e,toc:t})=>g.createElement(Jz,{className:"sbdocs sbdocs-wrapper"},t,g.createElement(Xz,{className:"sbdocs sbdocs-content"},e));globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=h.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var It=globalThis?globalThis.__DOCS_CONTEXT__:h.createContext(null);function Qz(e,t){let r=eK([e],t);return r&&r[0]}function eK(e,t){let[r,n]=h.useState({});return h.useEffect(()=>{Promise.all(e.map(async o=>{let i=await t.loadStory(o);n(a=>a[o]===i?a:P(E({},a),{[o]:i}))}))}),e.map(o=>{if(r[o])return r[o];try{return t.storyById(o)}catch(i){return}})}var U$=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},tK=(e,t,r)=>{var l,s,u,c,d,f,p,m;let{parameters:n={}}=t||{},{docs:o={}}=n,i=o.story||{};if(o.disable)return null;if((s=(l=e.inline)!=null?l:i.inline)!=null&&s){let y=(u=e.height)!=null?u:i.height,S=(d=(c=e.autoplay)!=null?c:i.autoplay)!=null?d:!1;return{story:t,inline:!0,height:y,autoplay:S,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let a=(m=(p=(f=e.height)!=null?f:i.height)!=null?p:i.iframeHeight)!=null?m:"100px";return{story:t,inline:!1,height:a,primary:!!e.__primary}},rK=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=h.useContext(It),r=U$(e,t),n=Qz(r,t);if(!n)return g.createElement(K$,null);let o=tK(e,n,t);return o?g.createElement(cK,E({},o)):null},Ll=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),{window:nK}=globalThis,oK=class extends h.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=nK.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let a=this.props,{id:e,title:t,src:r,allowFullScreen:n,scale:o}=a,i=G(a,["id","title","src","allowFullScreen","scale"]);return g.createElement("iframe",E(P(E({id:e,title:t,src:r},n?{allow:"fullscreen"}:{}),{loading:"lazy"}),i))}},z$=h.createContext({scale:1}),{PREVIEW_URL:iK}=globalThis,aK=iK||"iframe.html",md=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,lK=e=>{let t=h.useRef(),[r,n]=h.useState(!0),[o,i]=h.useState(),{story:a,height:l,autoplay:s,forceInitialArgs:u,renderStoryToElement:c}=e;return h.useEffect(()=>{if(!(a&&t.current))return()=>{};let d=t.current,f=c(a,d,{showMain:()=>{},showError:({title:p,description:m})=>i(new Error(`${p} - ${m}`)),showException:p=>i(p)},{autoplay:s,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then(()=>f())}},[s,c,a]),o?g.createElement("pre",null,g.createElement(QS,{error:o})):g.createElement(g.Fragment,null,l?g.createElement("style",null,`#${md(e)} { min-height: ${l}; transform: translateZ(0); overflow: auto }`):null,r&&g.createElement(K$,null),g.createElement("div",{ref:t,id:`${md(e)}-inner`,"data-name":a.name}))},sK=({story:e,height:t="500px"})=>g.createElement("div",{style:{width:"100%",height:t}},g.createElement(z$.Consumer,null,({scale:r})=>g.createElement(oK,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:tp(aK,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),uK=N.strong(({theme:e})=>({color:e.color.orange})),cK=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?g.createElement(uK,null,"This story mounts inside of play. Set"," ",g.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story?ref=ui#autoplay"},"autoplay")," ","to true to view this story."):g.createElement("div",{id:md(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?g.createElement(lK,E({},e)):g.createElement(sK,E({},e)))},K$=()=>g.createElement(c$,null),dK=N(Qx)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear",display:"flex",alignItems:"center"}),Ju=N.div({display:"flex",alignItems:"center",gap:4}),$y=N.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),fK=a=>{var l=a,{isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:o}=l,i=G(l,["isLoading","storyId","baseUrl","zoom","resetZoom"]);return g.createElement(dK,E({innerStyle:{gap:4,paddingInline:7,justifyContent:"space-between"}},i),g.createElement(Ju,{key:"left"},e?[1,2,3].map(s=>g.createElement($y,{key:s})):g.createElement(g.Fragment,null,g.createElement(Pe,{padding:"small",variant:"ghost",key:"zoomin",onClick:s=>{s.preventDefault(),n(.8)},ariaLabel:"Zoom in"},g.createElement(k5,null)),g.createElement(Pe,{padding:"small",variant:"ghost",key:"zoomout",onClick:s=>{s.preventDefault(),n(1.25)},ariaLabel:"Zoom out"},g.createElement(N5,null)),g.createElement(Pe,{padding:"small",variant:"ghost",key:"zoomreset",onClick:s=>{s.preventDefault(),o()},ariaLabel:"Reset zoom"},g.createElement(M5,null)))),e?g.createElement(Ju,{key:"right"},g.createElement($y,null)):r&&t&&g.createElement(Ju,{key:"right"},g.createElement(Pe,{asChild:!0,padding:"small",variant:"ghost",key:"opener",ariaLabel:"Open canvas in new tab"},g.createElement("a",{href:tp(r,t),target:"_blank",rel:"noopener noreferrer"},g.createElement(G5,null)))))},pK=N.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded",inline:t})=>e==="centered"||e==="padded"?{padding:t?"32px 22px":"0px","& .innerZoomElementWrapper > *":{width:"auto",border:"8px solid transparent!important"}}:{},({layout:e="padded",inline:t})=>e==="centered"&&t?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),wy=N(b$)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":ko(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":ko(.05,e.background.content)}})),hK=N.div(({theme:e,withSource:t,isExpanded:r})=>P(E({position:"relative",overflow:"hidden",margin:"25px 0 40px"},Ll(e)),{borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),gK=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:g.createElement(wy,P(E({},e),{dark:!0})),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:g.createElement(wy,P(E({},e),{dark:!0})),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function mK(e){if(h.Children.count(e)===1){let t=e;if(t.props)return t.props}return null}var yK=N(fK)({position:"absolute",top:0,left:0,right:0,height:40}),bK=N.div({overflow:"hidden",position:"relative"}),G$=f=>{var p=f,{isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:i=!1,isExpanded:a=!1,additionalActions:l,className:s,layout:u="padded",inline:c=!1}=p,d=G(p,["isLoading","isColumn","columns","children","withSource","withToolbar","isExpanded","additionalActions","className","layout","inline"]);let[m,y]=h.useState(a),{source:S,actionItem:b}=gK(o,m,y),[v,x]=h.useState(1),C=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),A=o?[b]:[],[$,w]=h.useState(l?[...l]:[]),_=[...A,...$],{window:O}=globalThis,T=h.useContext(It),I=h.useCallback(async k=>{let{createCopyToClipboardFunction:R}=await Fr(async()=>{const{createCopyToClipboardFunction:j}=await Promise.resolve().then(()=>SB);return{createCopyToClipboardFunction:j}},void 0,import.meta.url);R()},[]),D=k=>{var j;let R=O.getSelection();R&&R.type==="Range"||(k.preventDefault(),$.filter(L=>L.title==="Copied").length===0&&I((j=S==null?void 0:S.props.code)!=null?j:"").then(()=>{w([...$,{title:"Copied",onClick:()=>{}}]),O.setTimeout(()=>w($.filter(L=>L.title!=="Copied")),1500)}))},M=mK(n);return g.createElement(hK,P(E({withSource:o,withToolbar:i},d),{className:C.join(" ")}),i&&g.createElement(yK,{isLoading:e,border:!0,zoom:k=>x(v*k),resetZoom:()=>x(1),storyId:!e&&M?U$(M,T):void 0,baseUrl:"./iframe.html"}),g.createElement(z$.Provider,{value:{scale:v}},g.createElement(bK,{className:"docs-story",onCopyCapture:o&&D},g.createElement(pK,{isColumn:t||!Array.isArray(n),columns:r,layout:u,inline:c},g.createElement(ZS.Element,{centered:u==="centered",scale:c?v:1},Array.isArray(n)?n.map((k,R)=>g.createElement("div",{key:R},k)):g.createElement("div",null,n))),g.createElement(o1,{actionItems:_}))),o&&m&&S)};N(G$)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var EK=N(s$)({height:"fit-content"}),vK=r=>{var n=r,{tabs:e}=n,t=G(n,["tabs"]);let o=Object.entries(e);if(o.length===1)return g.createElement(gd,E(E({},o[0][1]),t));let i=o.map(([a,l],s)=>({id:`prop_table_div_${a}`,title:a,children:()=>{let u=s===0?t:{sort:t.sort};return g.createElement(gd,E(E({inTabPanel:!0,key:`prop_table_${a}`},l),u))}}));return g.createElement(EK,{tabs:i})};N.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?Le(.4,e.color.defaultText):Le(.6,e.color.defaultText)}));N.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});N.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});N.div(_e,({theme:e})=>P(E({},Ll(e)),{margin:"25px 0 40px",padding:"30px 20px"}));N.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));N.div(({theme:e})=>({color:Le(.3,e.color.defaultText)}));N.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});N.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:Le(.3,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));N.div({display:"flex",flexDirection:"row"});N.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));N.div(({theme:e})=>P(E({},Ll(e)),{display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));N.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});N.div({flex:1,display:"flex",flexDirection:"row"});N.div({display:"flex",alignItems:"flex-start"});N.div({flex:"0 0 30%"});N.div({flex:1});N.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:Le(.3,e.color.defaultText)}));N.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));N.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s1,color:e.color.defaultText,marginLeft:10,lineHeight:1.2,display:"-webkit-box",overflow:"hidden",wordBreak:"break-word",textOverflow:"ellipsis",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}));N.div(({theme:e})=>P(E({},Ll(e)),{overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));N.div({display:"inline-flex",flexDirection:"row",alignItems:"center",width:"100%"});N.div({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gridGap:"8px 16px",gridAutoFlow:"row dense",gridAutoRows:50});const{NAVIGATE_URL:SK}=__STORYBOOK_MODULE_CORE_EVENTS__;function xK(e){let t=[].forEach,r=[].some,n=typeof window<"u"&&document.body,o=" ",i,a=!0,l=0;function s(T,I){let D=I.appendChild(c(T));if(T.children.length){let M=d(T.isCollapsed);T.children.forEach(k=>{s(k,M)}),D.appendChild(M)}}function u(T,I){let D=d(!1);if(I.forEach(M=>{s(M,D)}),i=T||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),I.length===0?i:i.appendChild(D)}function c(T){let I=document.createElement("li"),D=document.createElement("a");return e.listItemClass&&I.setAttribute("class",e.listItemClass),e.onClick&&(D.onclick=e.onClick),e.includeTitleTags&&D.setAttribute("title",T.textContent),e.includeHtml&&T.childNodes.length?t.call(T.childNodes,M=>{D.appendChild(M.cloneNode(!0))}):D.textContent=T.textContent,D.setAttribute("href",`${e.basePath}#${T.id}`),D.setAttribute("class",`${e.linkClass+o}node-name--${T.nodeName}${o}${e.extraLinkClasses}`),I.appendChild(D),I}function d(T){let I=e.orderedList?"ol":"ul",D=document.createElement(I),M=e.listClass+o+e.extraListClasses;return T&&(M=M+o+e.collapsibleClass,M=M+o+e.isCollapsedClass),D.setAttribute("class",M),D}function f(){let T=w(),I=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=i.offsetTop),T>e.fixedSidebarOffset?I.className.indexOf(e.positionFixedClass)===-1&&(I.className+=o+e.positionFixedClass):I.className=I.className.replace(o+e.positionFixedClass,"")}function p(T){let I=0;return T!==null&&(I=T.offsetTop,e.hasInnerContainers&&(I+=p(T.offsetParent))),I}function m(T,I){return T&&T.className!==I&&(T.className=I),T}function y(T,I){var j,L;e.positionFixedSelector&&f();let D=T,M=(j=I==null?void 0:I.target)!=null&&j.getAttribute?(L=I==null?void 0:I.target)==null?void 0:L.getAttribute("href"):null,k=M&&M.charAt(0)==="#"?C(M.replace("#","")):!1,R=a||k;if(I&&l<5&&l++,R&&i&&D.length>0){let z=_(D),U=i.querySelector(`.${e.activeLinkClass}`),B=z.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),F=window.location.hash.replace("#",""),H=B,W=A();M&&k?H=M.replace("#",""):F&&F!==B&&W&&(C(B)||l<=2)&&(H=F);let V=i.querySelector(`.${e.linkClass}[href="${e.basePath}#${H}"]`);if(U===V)return;let K=i.querySelectorAll(`.${e.linkClass}`);t.call(K,J=>{m(J,J.className.replace(o+e.activeLinkClass,""))});let q=i.querySelectorAll(`.${e.listItemClass}`);t.call(q,J=>{m(J,J.className.replace(o+e.activeListItemClass,""))}),V&&V.className.indexOf(e.activeLinkClass)===-1&&(V.className+=o+e.activeLinkClass);let X=V==null?void 0:V.parentNode;X&&X.className.indexOf(e.activeListItemClass)===-1&&(X.className+=o+e.activeListItemClass);let te=i.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(te,J=>{J.className.indexOf(e.isCollapsedClass)===-1&&(J.className+=o+e.isCollapsedClass)}),V!=null&&V.nextSibling&&V.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&m(V.nextSibling,V.nextSibling.className.replace(o+e.isCollapsedClass,"")),S(V==null?void 0:V.parentNode.parentNode)}}function S(T){return T&&T.className.indexOf(e.collapsibleClass)!==-1&&T.className.indexOf(e.isCollapsedClass)!==-1?(m(T,T.className.replace(o+e.isCollapsedClass,"")),S(T.parentNode.parentNode)):T}function b(T){let I=T.target||T.srcElement;typeof I.className!="string"||I.className.indexOf(e.linkClass)===-1||(a=!1)}function v(){a=!0}function x(){return a}function C(T){let I=$();return(document==null?void 0:document.getElementById(T)).offsetTop>I.offsetHeight-I.clientHeight*1.4-e.bottomModeThreshold}function A(){let T=$(),I=T.scrollHeight>T.clientHeight,D=w()+T.clientHeight>T.offsetHeight-e.bottomModeThreshold;return I&&D}function $(){let T;return e.scrollContainer&&document.querySelector(e.scrollContainer)?T=document.querySelector(e.scrollContainer):T=document.documentElement||n,T}function w(){var T;return((T=$())==null?void 0:T.scrollTop)||0}function _(T,I=w()){let D;return r.call(T,(M,k)=>{if(p(M)>I+e.headingsOffset+10){let R=k===0?k:k-1;return D=T[R],!0}if(k===T.length-1)return D=T[T.length-1],!0}),D}function O(T){let I=w(),D=_(T,I),M=A();if((!D||I<5)&&!M)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(D&&!M){let k=`#${D.id}`;window.location.hash!==k&&window.history.pushState(null,null,k)}}return{enableTocAnimation:v,disableTocAnimation:b,render:u,updateToc:y,getCurrentlyHighlighting:x,getTopHeader:_,getScrollTop:w,updateUrlHashForHeader:O}}var $K={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:"auto",scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function wK(e){let t=[].reduce;function r(u){return u[u.length-1]}function n(u){return+u.nodeName.toUpperCase().replace("H","")}function o(u){try{return u instanceof window.HTMLElement||u instanceof window.parent.HTMLElement}catch(c){return u instanceof window.HTMLElement}}function i(u){if(!o(u))return u;if(e.ignoreHiddenElements&&(!u.offsetHeight||!u.offsetParent))return null;let c=u.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(u.innerText)):(u.innerText||u.textContent).trim()),d={id:u.id,children:[],nodeName:u.nodeName,headingLevel:n(u),textContent:c};return e.includeHtml&&(d.childNodes=u.childNodes),e.headingObjectCallback?e.headingObjectCallback(d,u):d}function a(u,c){let d=i(u),f=d.headingLevel,p=c,m=r(p),y=m?m.headingLevel:0,S=f-y;for(;S>0&&(m=r(p),!(m&&f===m.headingLevel));)m&&m.children!==void 0&&(p=m.children),S--;return f>=e.collapseDepth&&(d.isCollapsed=!0),p.push(d),p}function l(u,c){let d=c;e.ignoreSelector&&(d=c.split(",").map(function(f){return`${f.trim()}:not(${e.ignoreSelector})`}));try{return u.querySelectorAll(d)}catch(f){return console.warn(`Headers not found with selector: ${d}`),null}}function s(u){return t.call(u,function(c,d){let f=i(d);return f&&a(f,c.nest),c},{nest:[]})}return{nestHeadingsArray:s,selectHeadings:l}}function CK(e){var t=e.duration,r=e.offset;if(typeof window>"u"||typeof location>"u")return;var n=location.hash?a(location.href):location.href;o();function o(){document.body.addEventListener("click",s,!1);function s(u){!i(u.target)||u.target.className.indexOf("no-smooth-scroll")>-1||u.target.href.charAt(u.target.href.length-2)==="#"&&u.target.href.charAt(u.target.href.length-1)==="!"||u.target.className.indexOf(e.linkClass)===-1||_K(u.target.hash,{duration:t,offset:r,callback:function(){l(u.target.hash)}})}}function i(s){return s.tagName.toLowerCase()==="a"&&(s.hash.length>0||s.href.charAt(s.href.length-1)==="#")&&(a(s.href)===n||a(s.href)+"#"===n)}function a(s){return s.slice(0,s.lastIndexOf("#"))}function l(s){var u=document.getElementById(s.substring(1));u&&(/^(?:a|select|input|button|textarea)$/i.test(u.tagName)||(u.tabIndex=-1),u.focus())}}function _K(e,t){var r=window.pageYOffset,n={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||d},o=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),i=typeof e=="string"?n.offset+(e?o&&o.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,a=typeof n.duration=="function"?n.duration(i):n.duration,l,s;requestAnimationFrame(function(f){l=f,u(f)});function u(f){s=f-l,window.scrollTo(0,n.easing(s,r,i,a)),s<a?requestAnimationFrame(u):c()}function c(){window.scrollTo(0,r+i),typeof n.callback=="function"&&n.callback()}function d(f,p,m,y){return f/=y/2,f<1?m/2*f*f+p:(f--,-m/2*(f*(f-2)-1)+p)}}function TK(e){let t=e.tocScrollingWrapper||e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){let r=t.querySelector(`.${e.activeListItemClass}`);if(r){let n=r.offsetTop-e.tocScrollOffset;t.scrollTop=n>0?n:0}}}var ae={},kt,Zu,qr,Mt,Mo;function W$(e){let t=!1;ae=RK($K,e||{}),ae.scrollSmooth&&(ae.duration=ae.scrollSmoothDuration,ae.offset=ae.scrollSmoothOffset,CK(ae)),kt=xK(ae),Zu=wK(ae),lp();let r=PK(ae);if(r===null)return;let n=V$(ae);if(n===null||(qr=Zu.selectHeadings(r,ae.headingSelector),qr===null))return;let o=Zu.nestHeadingsArray(qr).nest;if(!ae.skipRendering)kt.render(n,o);else return this;let i=!1,a=ae.scrollHandlerTimeout||ae.throttleTimeout;Mt=((s,u)=>DK(s,u,ae.scrollHandlerType))(s=>{var c,d,f;kt.updateToc(qr,s),!ae.disableTocScrollSync&&!i&&TK(ae),ae.enableUrlHashUpdateOnScroll&&t&&kt.getCurrentlyHighlighting()&&kt.updateUrlHashForHeader(qr);let u=((d=(c=s==null?void 0:s.target)==null?void 0:c.scrollingElement)==null?void 0:d.scrollTop)===0;(s&&(s.eventPhase===0||s.currentTarget===null)||u)&&(kt.updateToc(qr),(f=ae.scrollEndCallback)==null||f.call(ae,s))},a),t||(Mt(),t=!0),window.onhashchange=window.onscrollend=s=>{Mt(s)},ae.scrollContainer&&document.querySelector(ae.scrollContainer)?(document.querySelector(ae.scrollContainer).addEventListener("scroll",Mt,!1),document.querySelector(ae.scrollContainer).addEventListener("resize",Mt,!1)):(document.addEventListener("scroll",Mt,!1),document.addEventListener("resize",Mt,!1));let l=null;Mo=yd(s=>{i=!0,ae.scrollSmooth&&kt.disableTocAnimation(s),kt.updateToc(qr,s),l&&clearTimeout(l),l=setTimeout(()=>{kt.enableTocAnimation()},ae.scrollSmoothDuration),setTimeout(()=>{i=!1},ae.scrollSmoothDuration+100)},ae.throttleTimeout),ae.scrollContainer&&document.querySelector(ae.scrollContainer)?document.querySelector(ae.scrollContainer).addEventListener("click",Mo,!1):document.addEventListener("click",Mo,!1)}function lp(){let e=V$(ae);e!==null&&(ae.skipRendering||e&&(e.innerHTML=""),ae.scrollContainer&&document.querySelector(ae.scrollContainer)?(document.querySelector(ae.scrollContainer).removeEventListener("scroll",Mt,!1),document.querySelector(ae.scrollContainer).removeEventListener("resize",Mt,!1),kt&&document.querySelector(ae.scrollContainer).removeEventListener("click",Mo,!1)):(document.removeEventListener("scroll",Mt,!1),document.removeEventListener("resize",Mt,!1),kt&&document.removeEventListener("click",Mo,!1)))}function AK(e){lp(),W$(e||ae)}var OK=Object.prototype.hasOwnProperty;function RK(...e){let t={};for(let r=0;r<e.length;r++){let n=e[r];for(let o in n)OK.call(n,o)&&(t[o]=n[o])}return t}function yd(e,t,r){t||(t=250);let n,o;return function(...i){let a=this,l=+new Date;n&&l<n+t?(clearTimeout(o),o=setTimeout(()=>{n=l,e.apply(a,i)},t)):(n=l,e.apply(a,i))}}function Cy(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function DK(e,t,r="auto"){switch(r){case"debounce":return Cy(e,t);case"throttle":return yd(e,t);default:return t<334?Cy(e,t):yd(e,t)}}function PK(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch(t){return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function V$(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch(t){return console.warn(`TOC element not found: ${e.tocSelector}`),null}}var IK={destroy:lp,init:W$,refresh:AK},_y=IK,FK=N.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),LK=N.nav(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),kK=N.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.color.defaultText,textTransform:"uppercase",marginBottom:10})),NK=({headingId:e,title:t})=>typeof t=="string"||!t?g.createElement(kK,{as:"h2",id:e,className:t?"":"sb-sr-only"},t||"Table of contents"):g.createElement("div",{id:e},t),MK=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:o,unsafeTocbotOptions:i,channel:a,className:l})=>{h.useEffect(()=>{if(t)return()=>{};let u=E({tocSelector:".toc-wrapper",contentSelector:n!=null?n:".sbdocs-content",headingSelector:r!=null?r:"h3",ignoreSelector:o!=null?o:".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:d=>{if(d.preventDefault(),d.currentTarget instanceof HTMLAnchorElement){let[,f]=d.currentTarget.href.split("#");f&&a.emit(SK,`#${f}`)}}},i),c=setTimeout(()=>_y.init(u),100);return()=>{clearTimeout(c),_y.destroy()}},[a,t,o,n,r,i]);let s="table-of-contents";return g.createElement(FK,{className:l},t?null:g.createElement(LK,{"aria-labelledby":s},g.createElement(NK,{headingId:s,title:e}),g.createElement("div",{className:"toc-wrapper"})))},BK=e=>`anchor--${e}`,q$=({storyId:e,children:t})=>g.createElement("div",{id:BK(e),className:"sb-anchor"},t);const{filterArgTypes:Lq}=__STORYBOOK_MODULE_PREVIEW_API__;var vn=(e,t)=>h.useContext(It).resolveOf(e,t),jK=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),HK=e=>{if(e)return typeof e=="string"?e.includes("-")?jK(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function UK(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}var zK=Object.create,Y$=Object.defineProperty,KK=Object.getOwnPropertyDescriptor,X$=Object.getOwnPropertyNames,GK=Object.getPrototypeOf,WK=Object.prototype.hasOwnProperty,ue=(e,t)=>function(){return t||(0,e[X$(e)[0]])((t={exports:{}}).exports,t),t.exports},VK=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of X$(t))!WK.call(e,o)&&o!==r&&Y$(e,o,{get:()=>t[o],enumerable:!(n=KK(t,o))||n.enumerable});return e},sp=(e,t,r)=>(r=e!=null?zK(GK(e)):{},VK(!e||!e.__esModule?Y$(r,"default",{value:e,enumerable:!0}):r,e)),qK=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],YK=["detail"];function XK(e){let t=qK.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of YK.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var J$=ue({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),JK=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),ZK=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),QK=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),eG=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),tG=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),up=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),rG=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),nG=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),oG=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),iG=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),aG=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),lG=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),sG=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),uG=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),cG=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=uG();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),dG=ue({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),cp=ue({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=dG();if(r)try{r([],"length")}catch(n){r=null}t.exports=r}}),fG=ue({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch(n){r=!1}t.exports=r}}),Z$=ue({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var i=42;r[n]=i;for(var a 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 l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==i||s.enumerable!==!0)return!1}return!0}}}),Q$=ue({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=Z$();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),ew=ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),tw=ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=J$();t.exports=r.getPrototypeOf||null}}),pG=ue({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,o=Math.max,i="[object Function]",a=function(u,c){for(var d=[],f=0;f<u.length;f+=1)d[f]=u[f];for(var p=0;p<c.length;p+=1)d[p+u.length]=c[p];return d},l=function(u,c){for(var d=[],f=c,p=0;f<u.length;f+=1,p+=1)d[p]=u[f];return d},s=function(u,c){for(var d="",f=0;f<u.length;f+=1)d+=u[f],f+1<u.length&&(d+=c);return d};t.exports=function(u){var c=this;if(typeof c!="function"||n.apply(c)!==i)throw new TypeError(r+c);for(var d=l(arguments,1),f,p=function(){if(this instanceof f){var v=c.apply(this,a(d,arguments));return Object(v)===v?v:this}return c.apply(u,a(d,arguments))},m=o(0,c.length-d.length),y=[],S=0;S<m;S++)y[S]="$"+S;if(f=Function("binder","return function ("+s(y,",")+"){ return binder.apply(this,arguments); }")(p),c.prototype){var b=function(){};b.prototype=c.prototype,f.prototype=new b,b.prototype=null}return f}}}),kl=ue({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=pG();t.exports=Function.prototype.bind||r}}),dp=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),rw=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),hG=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),gG=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=kl(),n=rw(),o=dp(),i=hG();t.exports=i||r.call(o,n)}}),nw=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=kl(),n=up(),o=dp(),i=gG();t.exports=function(a){if(a.length<1||typeof a[0]!="function")throw new n("a function is required");return i(r,o,a)}}}),mG=ue({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=nw(),n=cp(),o;try{o=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var i=!!o&&n&&n(Object.prototype,"__proto__"),a=Object,l=a.getPrototypeOf;t.exports=i&&typeof i.get=="function"?r([i.get]):typeof l=="function"?(function(s){return l(s==null?s:a(s))}):!1}}),yG=ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=ew(),n=tw(),o=mG();t.exports=r?function(i){return r(i)}:n?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return n(i)}:o?function(i){return o(i)}:null}}),ow=ue({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=kl();t.exports=o.call(r,n)}}),bG=ue({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=J$(),o=JK(),i=ZK(),a=QK(),l=eG(),s=tG(),u=up(),c=rG(),d=nG(),f=oG(),p=iG(),m=aG(),y=lG(),S=sG(),b=cG(),v=Function,x=function(re){try{return v('"use strict"; return ('+re+").constructor;")()}catch(Y){}},C=cp(),A=fG(),$=function(){throw new u},w=C?(function(){try{return arguments.callee,$}catch(re){try{return C(arguments,"callee").get}catch(Y){return $}}})():$,_=Q$()(),O=yG(),T=tw(),I=ew(),D=rw(),M=dp(),k={},R=typeof Uint8Array>"u"||!O?r:O(Uint8Array),j={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":_&&O?O([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%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%":o,"%eval%":eval,"%EvalError%":i,"%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%":k,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&O?O(O([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_||!O?r:O(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":C,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_||!O?r:O(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&O?O(""[Symbol.iterator]()):r,"%Symbol%":_?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":w,"%TypedArray%":R,"%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%":M,"%Function.prototype.apply%":D,"%Object.defineProperty%":A,"%Object.getPrototypeOf%":T,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":y,"%Math.round%":S,"%Math.sign%":b,"%Reflect.getPrototypeOf%":I};if(O)try{null.error}catch(re){L=O(O(re)),j["%Error.prototype%"]=L}var L,z=function re(Y){var Z;if(Y==="%AsyncFunction%")Z=x("async function () {}");else if(Y==="%GeneratorFunction%")Z=x("function* () {}");else if(Y==="%AsyncGeneratorFunction%")Z=x("async function* () {}");else if(Y==="%AsyncGenerator%"){var ie=re("%AsyncGeneratorFunction%");ie&&(Z=ie.prototype)}else if(Y==="%AsyncIteratorPrototype%"){var pe=re("%AsyncGenerator%");pe&&O&&(Z=O(pe.prototype))}return j[Y]=Z,Z},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=kl(),F=ow(),H=B.call(M,Array.prototype.concat),W=B.call(D,Array.prototype.splice),V=B.call(M,String.prototype.replace),K=B.call(M,String.prototype.slice),q=B.call(M,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,te=/\\(\\)?/g,J=function(re){var Y=K(re,0,1),Z=K(re,-1);if(Y==="%"&&Z!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(Z==="%"&&Y!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var ie=[];return V(re,X,function(pe,nt,ee,ot){ie[ie.length]=ee?V(ot,te,"$1"):nt||pe}),ie},Oe=function(re,Y){var Z=re,ie;if(F(U,Z)&&(ie=U[Z],Z="%"+ie[0]+"%"),F(j,Z)){var pe=j[Z];if(pe===k&&(pe=z(Z)),typeof pe>"u"&&!Y)throw new u("intrinsic "+re+" exists, but is not available. Please file an issue!");return{alias:ie,name:Z,value:pe}}throw new s("intrinsic "+re+" does not exist!")};t.exports=function(re,Y){if(typeof re!="string"||re.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Y!="boolean")throw new u('"allowMissing" argument must be a boolean');if(q(/^%?[^%]*%?$/,re)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Z=J(re),ie=Z.length>0?Z[0]:"",pe=Oe("%"+ie+"%",Y),nt=pe.name,ee=pe.value,ot=!1,Ft=pe.alias;Ft&&(ie=Ft[0],W(Z,H([0,1],Ft)));for(var ht=1,Lt=!0;ht<Z.length;ht+=1){var ke=Z[ht],sr=K(ke,0,1),ur=K(ke,-1);if((sr==='"'||sr==="'"||sr==="`"||ur==='"'||ur==="'"||ur==="`")&&sr!==ur)throw new s("property names with quotes must have matching quotes");if((ke==="constructor"||!Lt)&&(ot=!0),ie+="."+ke,nt="%"+ie+"%",F(j,nt))ee=j[nt];else if(ee!=null){if(!(ke in ee)){if(!Y)throw new u("base intrinsic for "+re+" exists, but the property is not available.");return}if(C&&ht+1>=Z.length){var cr=C(ee,ke);Lt=!!cr,Lt&&"get"in cr&&!("originalValue"in cr.get)?ee=cr.get:ee=ee[ke]}else Lt=F(ee,ke),ee=ee[ke];Lt&&!ot&&(j[nt]=ee)}}return ee}}}),fp=ue({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=bG(),n=nw(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(i,a){var l=r(i,!!a);return typeof l=="function"&&o(i,".prototype.")>-1?n([l]):l}}}),EG=ue({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=Z$();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),iw=ue({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=fp(),n=EG()(),o=ow(),i=cp(),a;n?(l=r("RegExp.prototype.exec"),s={},u=function(){throw s},c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),a=function(p){if(!p||typeof p!="object")return!1;var m=i(p,"lastIndex"),y=m&&o(m,"value");if(!y)return!1;try{l(p,c)}catch(S){return S===s}}):(d=r("Object.prototype.toString"),f="[object RegExp]",a=function(p){return!p||typeof p!="object"&&typeof p!="function"?!1:d(p)===f});var l,s,u,c,d,f;t.exports=a}}),vG=ue({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var i=r.call(o);return i==="[object Function]"||typeof o=="function"&&i!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),SG=ue({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=fp(),n=iw(),o=r("RegExp.prototype.exec"),i=up();t.exports=function(a){if(!n(a))throw new i("`regex` must be a RegExp");return function(l){return o(a,l)!==null}}}}),xG=ue({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=fp(),n=r("Object.prototype.toString"),o=Q$()(),i=SG();o?(a=r("Symbol.prototype.toString"),l=i(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(a(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(c){return!1}}):t.exports=function(u){return!1};var a,l,s}}),$G=sp(iw()),wG=sp(vG()),CG=sp(xG());function _G(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var TG=typeof global=="object"&&global&&global.Object===Object&&global,AG=TG,OG=typeof self=="object"&&self&&self.Object===Object&&self,RG=AG||OG||Function("return this")(),pp=RG,DG=pp.Symbol,Zn=DG,aw=Object.prototype,PG=aw.hasOwnProperty,IG=aw.toString,_o=Zn?Zn.toStringTag:void 0;function FG(e){var t=PG.call(e,_o),r=e[_o];try{e[_o]=void 0;var n=!0}catch(i){}var o=IG.call(e);return n&&(t?e[_o]=r:delete e[_o]),o}var LG=FG,kG=Object.prototype,NG=kG.toString;function MG(e){return NG.call(e)}var BG=MG,jG="[object Null]",HG="[object Undefined]",Ty=Zn?Zn.toStringTag:void 0;function UG(e){return e==null?e===void 0?HG:jG:Ty&&Ty in Object(e)?LG(e):BG(e)}var zG=UG,Ay=Zn?Zn.prototype:void 0;Ay&&Ay.toString;function KG(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var lw=KG,GG="[object AsyncFunction]",WG="[object Function]",VG="[object GeneratorFunction]",qG="[object Proxy]";function YG(e){if(!lw(e))return!1;var t=zG(e);return t==WG||t==VG||t==GG||t==qG}var XG=YG,JG=pp["__core-js_shared__"],Qu=JG,Oy=(function(){var e=/[^.]+$/.exec(Qu&&Qu.keys&&Qu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function ZG(e){return!!Oy&&Oy in e}var QG=ZG,eW=Function.prototype,tW=eW.toString;function rW(e){if(e!=null){try{return tW.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var nW=rW,oW=/[\\^$.*+?()[\]{}|]/g,iW=/^\[object .+?Constructor\]$/,aW=Function.prototype,lW=Object.prototype,sW=aW.toString,uW=lW.hasOwnProperty,cW=RegExp("^"+sW.call(uW).replace(oW,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dW(e){if(!lw(e)||QG(e))return!1;var t=XG(e)?cW:iW;return t.test(nW(e))}var fW=dW;function pW(e,t){return e==null?void 0:e[t]}var hW=pW;function gW(e,t){var r=hW(e,t);return fW(r)?r:void 0}var sw=gW;function mW(e,t){return e===t||e!==e&&t!==t}var yW=mW,bW=sw(Object,"create"),ti=bW;function EW(){this.__data__=ti?ti(null):{},this.size=0}var vW=EW;function SW(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var xW=SW,$W="__lodash_hash_undefined__",wW=Object.prototype,CW=wW.hasOwnProperty;function _W(e){var t=this.__data__;if(ti){var r=t[e];return r===$W?void 0:r}return CW.call(t,e)?t[e]:void 0}var TW=_W,AW=Object.prototype,OW=AW.hasOwnProperty;function RW(e){var t=this.__data__;return ti?t[e]!==void 0:OW.call(t,e)}var DW=RW,PW="__lodash_hash_undefined__";function IW(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ti&&t===void 0?PW:t,this}var FW=IW;function uo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}uo.prototype.clear=vW;uo.prototype.delete=xW;uo.prototype.get=TW;uo.prototype.has=DW;uo.prototype.set=FW;var Ry=uo;function LW(){this.__data__=[],this.size=0}var kW=LW;function NW(e,t){for(var r=e.length;r--;)if(yW(e[r][0],t))return r;return-1}var Nl=NW,MW=Array.prototype,BW=MW.splice;function jW(e){var t=this.__data__,r=Nl(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():BW.call(t,r,1),--this.size,!0}var HW=jW;function UW(e){var t=this.__data__,r=Nl(t,e);return r<0?void 0:t[r][1]}var zW=UW;function KW(e){return Nl(this.__data__,e)>-1}var GW=KW;function WW(e,t){var r=this.__data__,n=Nl(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var VW=WW;function co(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}co.prototype.clear=kW;co.prototype.delete=HW;co.prototype.get=zW;co.prototype.has=GW;co.prototype.set=VW;var qW=co,YW=sw(pp,"Map"),XW=YW;function JW(){this.size=0,this.__data__={hash:new Ry,map:new(XW||qW),string:new Ry}}var ZW=JW;function QW(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var eV=QW;function tV(e,t){var r=e.__data__;return eV(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Ml=tV;function rV(e){var t=Ml(this,e).delete(e);return this.size-=t?1:0,t}var nV=rV;function oV(e){return Ml(this,e).get(e)}var iV=oV;function aV(e){return Ml(this,e).has(e)}var lV=aV;function sV(e,t){var r=Ml(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var uV=sV;function fo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}fo.prototype.clear=ZW;fo.prototype.delete=nV;fo.prototype.get=iV;fo.prototype.has=lV;fo.prototype.set=uV;var uw=fo,cV="Expected a function";function hp(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(cV);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(hp.Cache||uw),r}hp.Cache=uw;var dV=hp,fV=500;function pV(e){var t=dV(e,function(n){return r.size===fV&&r.clear(),n}),r=t.cache;return t}var hV=pV,gV=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mV=/\\(\\)?/g;hV(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(gV,function(r,n,o,i){t.push(o?i.replace(mV,"$1"):n||r)}),t});var yV=_G,bV=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function cw(e){if(!yV(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=XK(t),r=!0),t=Object.keys(t).reduce((n,o)=>{try{t[o]&&t[o].toJSON,n[o]=t[o]}catch(i){r=!0}return n},{}),r?t:e}var EV=function(e){let t,r,n,o;return function(i,a){var l;try{if(i==="")return o=[],t=new Map([[a,"[]"]]),r=new Map,n=[],a;let s=r.get(this)||this;for(;n.length&&s!==n[0];)n.shift(),o.pop();if(typeof a=="boolean")return a;if(a===void 0)return e.allowUndefined?"_undefined_":void 0;if(a===null)return null;if(typeof a=="number")return a===Number.NEGATIVE_INFINITY?"_-Infinity_":a===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(a)?"_NaN_":a;if(typeof a=="bigint")return`_bigint_${a.toString()}`;if(typeof a=="string")return bV.test(a)?e.allowDate?`_date_${a}`:void 0:a;if((0,$G.default)(a))return e.allowRegExp?`_regexp_${a.flags}|${a.source}`:void 0;if((0,wG.default)(a))return;if((0,CG.default)(a)){if(!e.allowSymbol)return;let c=Symbol.keyFor(a);return c!==void 0?`_gsymbol_${c}`:`_symbol_${a.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(a)?`[Array(${a.length})]`:"[Object]";if(a===this)return`_duplicate_${JSON.stringify(o)}`;if(a instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:P(E(E({},a.cause?{cause:a.cause}:{}),a),{name:a.name,message:a.message,stack:a.stack,"_constructor-name_":a.constructor.name})};if((l=a==null?void 0:a.constructor)!=null&&l.name&&a.constructor.name!=="Object"&&!Array.isArray(a)){let c=t.get(a);if(!c){let d=E({__isClassInstance__:!0,__className__:a.constructor.name},Object.getOwnPropertyNames(a).reduce((f,p)=>{try{f[p]=a[p]}catch(m){}return f},{}));return o.push(i),n.unshift(d),t.set(a,JSON.stringify(o)),a!==d&&r.set(a,d),d}return`_duplicate_${c}`}let u=t.get(a);if(!u){let c=Array.isArray(a)?a:cw(a);return o.push(i),n.unshift(c),t.set(a,JSON.stringify(o)),a!==c&&r.set(a,c),c}return`_duplicate_${u}`}catch(s){return}}},vV={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},SV=(e,t={})=>{let r=E(E({},vV),t);return JSON.stringify(cw(e),EV(r),t.space)};function dw(e){return SV(e,{maxDepth:50})}var fw=h.createContext({sources:{}}),pw="--unknown--",xV=({children:e,channel:t})=>{let[r,n]=h.useState({});return h.useEffect(()=>{let o=(i,a=null,l=!1)=>{let{id:s,args:u=void 0,source:c,format:d}=typeof i=="string"?{id:i,source:a,format:l}:i,f=u?dw(u):pw;n(p=>P(E({},p),{[s]:P(E({},p[s]),{[f]:{code:c||"",format:d}})}))};return t.on(xp,o),()=>t.off(xp,o)},[]),g.createElement(fw.Provider,{value:{sources:r}},e)};function $V(e,t,r){let[n,o]=h.useState("Transforming..."),i=t?t==null?void 0:t(e,r):e;return h.useEffect(()=>{async function a(){let l=await i;l!==n&&o(l)}a()}),typeof i=="object"&&typeof i.then=="function"?n:i}var wV=(e,t,r)=>{let{sources:n}=r,o=n==null?void 0:n[e];return(o==null?void 0:o[dw(t)])||(o==null?void 0:o[pw])||{code:""}},CV=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var d,f;let o=(d=t.parameters)!=null?d:{},{__isArgsStory:i}=o,a=((f=o.docs)==null?void 0:f.source)||{},l=r||a.type||Ul.AUTO,s=l===Ul.DYNAMIC||l===Ul.AUTO&&e&&i?e:a.originalSource||"",u=n!=null?n:a.transform,c=u?$V(s,u,t):s;return a.code!==void 0?a.code:c},_V=(e,t,r)=>{var p,m,y,S,b,v,x;let{of:n}=e,o=h.useMemo(()=>{if(n)return t.resolveOf(n,["story"]).story;try{return t.storyById()}catch(C){}},[t,n]),i=o?t.getStoryContext(o):{},a=e.__forceInitialArgs?i.initialArgs:i.unmappedArgs,l=o?wV(o.id,a,r):null,s=CV({snippet:l?l.code:"",storyContext:P(E({},i),{args:a}),typeFromProps:e.type,transformFromProps:e.transform});if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let u=((m=(p=o==null?void 0:o.parameters)==null?void 0:p.docs)==null?void 0:m.source)||{},c=e.format,d=(S=(y=e.language)!=null?y:u.language)!=null?S:"jsx",f=(v=(b=e.dark)!=null?b:u.dark)!=null?v:!1;return!e.code&&!o?{error:"Oh no! The source is not available."}:e.code?{code:e.code,format:c,language:d,dark:f}:(c=(x=l==null?void 0:l.format)!=null?x:!0,{code:s,format:c,language:d,dark:f})},TV=e=>{var p,m,y,S,b,v,x,C,A,$,w,_,O,T,I,D,M,k,R,j,L,z,U,B,F;let t=h.useContext(It),r=h.useContext(fw),{of:n,source:o}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:i}=vn(n||"story",["story"]),a=_V(E(E({},o),n&&{of:n}),t,r),l=(b=(S=(p=e.layout)!=null?p:i.parameters.layout)!=null?S:(y=(m=i.parameters.docs)==null?void 0:m.canvas)==null?void 0:y.layout)!=null?b:"padded",s=(A=(C=e.withToolbar)!=null?C:(x=(v=i.parameters.docs)==null?void 0:v.canvas)==null?void 0:x.withToolbar)!=null?A:!1,u=(_=e.additionalActions)!=null?_:(w=($=i.parameters.docs)==null?void 0:$.canvas)==null?void 0:w.additionalActions,c=(D=(I=e.sourceState)!=null?I:(T=(O=i.parameters.docs)==null?void 0:O.canvas)==null?void 0:T.sourceState)!=null?D:"hidden",d=(R=e.className)!=null?R:(k=(M=i.parameters.docs)==null?void 0:M.canvas)==null?void 0:k.className,f=(F=(B=(j=e.story)==null?void 0:j.inline)!=null?B:(U=(z=(L=i.parameters)==null?void 0:L.docs)==null?void 0:z.story)==null?void 0:U.inline)!=null?F:!1;return g.createElement(G$,{withSource:c==="none"?void 0:a,isExpanded:c==="shown",withToolbar:s,additionalActions:u,className:d,layout:l,inline:f},g.createElement(rK,E({of:n||i.moduleExport,meta:e.meta},e.story)))};const{filterArgTypes:Dy}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:AV,STORY_ARGS_UPDATED:Py,UPDATE_STORY_ARGS:OV}=__STORYBOOK_MODULE_CORE_EVENTS__;var RV=(e,t)=>{let r=DV(e,t);if(!r)throw new Error("No result when story was defined");return r},DV=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[o,i]=h.useState(r.args);h.useEffect(()=>{let s=u=>{u.storyId===n&&i(u.args)};return t.channel.on(Py,s),()=>t.channel.off(Py,s)},[n,t.channel]);let a=h.useCallback(s=>t.channel.emit(OV,{storyId:n,updatedArgs:s}),[n,t.channel]),l=h.useCallback(s=>t.channel.emit(AV,{storyId:n,argNames:s}),[n,t.channel]);return e&&[o,a,l]};const{GLOBALS_UPDATED:Iy}=__STORYBOOK_MODULE_CORE_EVENTS__;var PV=(e,t)=>{let r=t.getStoryContext(e),[n,o]=h.useState(r.globals);return h.useEffect(()=>{let i=a=>{o(a.globals)};return t.channel.on(Iy,i),()=>t.channel.off(Iy,i)},[t.channel]),[n]};function IV(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var FV=e=>{var C,A,$,w;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=h.useContext(It),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:o,argTypes:i,component:a,subcomponents:l}=n,s=((C=o.docs)==null?void 0:C.controls)||{},u=(A=e.include)!=null?A:s.include,c=($=e.exclude)!=null?$:s.exclude,d=(w=e.sort)!=null?w:s.sort,[f,p,m]=RV(n,r),[y]=PV(n,r),S=Dy(i,u,c);if(!(l&&Object.keys(l||{}).length>0))return Object.keys(S).length>0||Object.keys(f).length>0?g.createElement(gd,{rows:S,sort:d,args:f,globals:y,updateArgs:p,resetArgs:m}):null;let b=HK(a)||"Story",v=Object.fromEntries(Object.entries(l||{}).map(([_,O])=>[_,{rows:Dy(IV(O,o),u,c),sort:d}])),x=E({[b]:{rows:S,sort:d}},v);return g.createElement(vK,{tabs:x,sort:d,args:f,globals:y,updateArgs:p,resetArgs:m})};const{NAVIGATE_URL:LV}=__STORYBOOK_MODULE_CORE_EVENTS__;var{document:hw}=globalThis,kV=n=>{var o=n,{className:e,children:t}=o,r=G(o,["className","children"]);if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return g.createElement(Sf,null,t);let i=e&&e.split("-");return g.createElement(b$,E({language:i&&i[1]||"text",format:!1,code:t},r))};function gp(e,t){e.channel.emit(LV,t)}var bd=d$.a,NV=({hash:e,children:t})=>{let r=h.useContext(It);return g.createElement(bd,{href:e,target:"_self",onClick:n=>{let o=e.substring(1);hw.getElementById(o)&&gp(r,e)}},t)},MV=e=>{let a=e,{href:t,target:r,children:n}=a,o=G(a,["href","target","children"]),i=h.useContext(It);return!t||r==="_blank"||/^https?:\/\//.test(t)?g.createElement(bd,E({},e)):t.startsWith("#")?g.createElement(NV,{hash:t},n):g.createElement(bd,E({href:t,onClick:l=>{l.button===0&&!l.altKey&&!l.ctrlKey&&!l.metaKey&&!l.shiftKey&&(l.preventDefault(),gp(i,l.currentTarget.getAttribute("href")||""))},target:r},o),n)},gw=["h1","h2","h3","h4","h5","h6"],BV=gw.reduce((e,t)=>P(E({},e),{[t]:N(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),jV=N.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),HV=o=>{var i=o,{as:e,id:t,children:r}=i,n=G(i,["as","id","children"]);let a=h.useContext(It),l=BV[e],s=`#${t}`;return g.createElement(l,E({id:t},n),g.createElement(jV,{"aria-hidden":"true",href:s,tabIndex:-1,target:"_self",onClick:u=>{hw.getElementById(t)&&gp(a,s)}},g.createElement(K5,null)),r)},mp=e=>{let s=e,{as:t,id:r,children:n}=s,o=G(s,["as","id","children"]);if(r)return g.createElement(HV,E({as:t,id:r},o),n);let i=t,u=e,{as:a}=u,l=G(u,["as"]);return g.createElement(i,E({},$e(l,t)))},UV=gw.reduce((e,t)=>P(E({},e),{[t]:r=>g.createElement(mp,E({as:t},r))}),{}),zV=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(Yw`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
|
|
735
|
+
This is often caused by not wrapping the child in a template string.
|
|
736
|
+
|
|
737
|
+
This is invalid:
|
|
738
|
+
<Markdown>
|
|
739
|
+
# Some heading
|
|
740
|
+
A paragraph
|
|
741
|
+
</Markdown>
|
|
742
|
+
|
|
743
|
+
Instead do:
|
|
744
|
+
<Markdown>
|
|
745
|
+
{\`
|
|
746
|
+
# Some heading
|
|
747
|
+
A paragraph
|
|
748
|
+
\`}
|
|
749
|
+
</Markdown>
|
|
750
|
+
`);return g.createElement(T$,P(E({},e),{options:E({forceBlock:!0,overrides:E(E({code:kV,a:MV},UV),(t=e==null?void 0:e.options)==null?void 0:t.overrides)},e==null?void 0:e.options)}))},KV=e=>{var t,r,n,o,i,a,l,s;switch(e.type){case"story":return((r=(t=e.story.parameters.docs)==null?void 0:t.description)==null?void 0:r.story)||null;case"meta":{let{parameters:u,component:c}=e.preparedMeta;return((o=(n=u.docs)==null?void 0:n.description)==null?void 0:o.component)||((a=(i=u.docs)==null?void 0:i.extractComponentDescription)==null?void 0:a.call(i,c,{component:c,parameters:u}))||null}case"component":{let{component:u,projectAnnotations:{parameters:c}}=e;return((s=(l=c==null?void 0:c.docs)==null?void 0:l.extractComponentDescription)==null?void 0:s.call(l,u,{component:u,parameters:c}))||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${e.type}`)}},Ed=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=vn(t||"meta"),n=KV(r);return n?g.createElement(zV,null,n):null},{document:GV,window:WV}=globalThis,VV=({context:e,theme:t,children:r})=>{var o,i,a,l,s;let n;try{n=(i=(o=e.resolveOf("meta",["meta"]).preparedMeta.parameters)==null?void 0:o.docs)==null?void 0:i.toc}catch(u){n=(s=(l=(a=e==null?void 0:e.projectAnnotations)==null?void 0:a.parameters)==null?void 0:l.docs)==null?void 0:s.toc}return h.useEffect(()=>{let u;try{if(u=new URL(WV.parent.location.toString()),u.hash){let c=GV.getElementById(decodeURIComponent(u.hash.substring(1)));c&&setTimeout(()=>{UK(c)},200)}}catch(c){}}),g.createElement(It.Provider,{value:e},g.createElement(xV,{channel:e.channel},g.createElement(Ud,{theme:t1(t)},g.createElement(Zz,{toc:n?g.createElement(MK,E({className:"sbdocs sbdocs-toc--custom",channel:e.channel},n)):null},r))))},qV=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,YV=Object.hasOwnProperty,XV=class{constructor(){this.occurrences,this.reset()}slug(e,t){let r=this,n=JV(e,t===!0),o=n;for(;YV.call(r.occurrences,n);)r.occurrences[o]++,n=o+"-"+r.occurrences[o];return r.occurrences[n]=0,n}reset(){this.occurrences=Object.create(null)}};function JV(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(qV,"").replace(/ /g,"-"))}var mw=new XV,ZV=n=>{var o=n,{children:e,disableAnchor:t}=o,r=G(o,["children","disableAnchor"]);if(t||typeof e!="string")return g.createElement(xf,null,e);let i=mw.slug(e.toLowerCase());return g.createElement(mp,E({as:"h2",id:i},r),e)},QV=({children:e,disableAnchor:t})=>{if(t||typeof e!="string")return g.createElement($f,null,e);let r=mw.slug(e.toLowerCase());return g.createElement(mp,{as:"h3",id:r},e)},yw=({of:e,expanded:t=!0,withToolbar:r=!1,__forceInitialArgs:n=!1,__primary:o=!1})=>{var l,s,u;let{story:i}=vn(e||"story",["story"]),a=(u=(s=(l=i.parameters.docs)==null?void 0:l.canvas)==null?void 0:s.withToolbar)!=null?u:r;return g.createElement(q$,{storyId:i.id},t&&g.createElement(g.Fragment,null,g.createElement(QV,null,i.name),g.createElement(Ed,{of:e})),g.createElement(TV,{of:e,withToolbar:a,story:{__forceInitialArgs:n,__primary:o},source:{__forceInitialArgs:n}}))},eq=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{csfFile:r}=vn(t||"meta",["meta"]),n=h.useContext(It).componentStoriesFromCSFFile(r)[0];return n?g.createElement(yw,{of:n.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},tq=N(ZV)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}})),rq=({title:e="Stories",includePrimary:t=!0})=>{var l;let{componentStories:r,projectAnnotations:n,getStoryContext:o}=h.useContext(It),i=r(),{stories:{filter:a}={filter:void 0}}=((l=n.parameters)==null?void 0:l.docs)||{};return a&&(i=i.filter(s=>a(s,o(s)))),i.some(s=>{var u;return(u=s.tags)==null?void 0:u.includes("autodocs")})&&(i=i.filter(s=>{var u;return((u=s.tags)==null?void 0:u.includes("autodocs"))&&!s.usesMount})),t||(i=i.slice(1)),!i||i.length===0?null:g.createElement(g.Fragment,null,typeof e=="string"?g.createElement(tq,null,e):e,i.map(s=>s&&g.createElement(yw,{key:s.id,of:s.moduleExport,expanded:!0,__forceInitialArgs:!0})))};const{deprecate:nq}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var oq="https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle",iq=e=>{let{of:t,children:r}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let n;try{n=vn(t||"meta",["meta"]).preparedMeta}catch(l){if(r&&!l.message.includes("did you forget to use <Meta of={} />?"))throw l}let{componentSubtitle:o,docs:i}=(n==null?void 0:n.parameters)||{};o&&nq(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${oq}`);let a=r||(i==null?void 0:i.subtitle)||o;return a?g.createElement(Yz,{className:"sbdocs-subtitle sb-unstyled"},a):null},aq=/\s*\/\s*/,lq=e=>{let t=e.trim().split(aq);return(t==null?void 0:t[(t==null?void 0:t.length)-1])||e},sq=e=>{let{children:t,of:r}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let n;try{n=vn(r||"meta",["meta"]).preparedMeta}catch(i){if(t&&i instanceof Error&&!i.message.includes("did you forget to use <Meta of={} />?"))throw i}let o=t||lq((n==null?void 0:n.title)||"");return o?g.createElement(qz,{className:"sbdocs-title sb-unstyled"},o):null},uq=()=>{let e=vn("meta",["meta"]),{stories:t}=e.csfFile,r=Object.keys(t).length===1;return g.createElement(g.Fragment,null,g.createElement(sq,null),g.createElement(iq,null),g.createElement(Ed,{of:"meta"}),r?g.createElement(Ed,{of:"story"}):null,g.createElement(eq,null),g.createElement(FV,null),r?null:g.createElement(rq,null))};function kq({context:e,docsParameter:t}){let r=t.container||VV,n=t.page||uq;return g.createElement(r,{context:e,theme:t.theme},g.createElement(n,null))}const{composeConfigs:Nq}=__STORYBOOK_MODULE_PREVIEW_API__,{Channel:Mq}=__STORYBOOK_MODULE_CHANNELS__,{Preview:Bq,composeConfigs:jq}=__STORYBOOK_MODULE_PREVIEW_API__,{DocsContext:Hq}=__STORYBOOK_MODULE_PREVIEW_API__;var Uq=({of:e})=>{let t=h.useContext(It);e&&t.referenceMeta(e,!0);try{let r=t.storyById();return g.createElement(q$,{storyId:r.id})}catch(r){return null}};export{o1 as A,Pe as B,kV as C,kq as D,bn as F,UV as H,Uq as M,zx as P,g as R,Vd as S,Ve as _,xq as a,Qn as b,r1 as c,At as d,L5 as e,ii as f,zt as g,F5 as h,Fd as i,ce as j,XD as k,Ld as l,MV as m,h as r,N as s};
|