From c81d3c7078fefb24005ed2c2e142519fa3b88450 Mon Sep 17 00:00:00 2001 From: namdaeun Date: Wed, 20 Nov 2024 08:31:21 +0000 Subject: [PATCH] deploy: 0285fb054ddf85f140fd36db283c2e6791acaa8a --- .../{Button-aaJpuFF7.js => Button-D1nFQNRa.js} | 2 +- ...s-SfXPEIvu.js => Button.stories-BvaTDkHX.js} | 2 +- ...yle-CoALCM8f.js => Button.style-C-RQzMju.js} | 2 +- ...9MJBGgFk.js => Carousel.stories-Kd065ibm.js} | 2 +- ...heckBox-B0NBCG01.js => CheckBox--BKu8vEN.js} | 2 +- ...BmStllQS.js => CheckBox.stories-BGaZmj6a.js} | 2 +- ...A-D41Ad0KX.js => Color-KGDBMAHA-DA2-Pv-O.js} | 2 +- ...q65.js => CommandButton.stories-DqCt5CaW.js} | 2 +- ...M5lQU4.js => ContentBox.stories-9dRmPIUT.js} | 2 +- ...0ZdS.js => CountedInput.stories-BctlYxzy.js} | 2 +- ..._m-QTd.js => DatePicker.stories-i7H_Wn8q.js} | 2 +- assets/DeleteModal.stories-CtogTm-O.js | 17 +++++++++++++++++ assets/DeleteModal.stories-DLLfBuro.js | 17 ----------------- ...-D2SHbI4e.js => Divider.stories-CzxOs0c1.js} | 2 +- ...3vH.js => DocsRenderer-PKQXORMH-CLTnEESS.js} | 10 +++++----- ...bm2V4I8q.js => FileGrid.stories-Cgc9RzcR.js} | 2 +- ...90.js => FileListHeader.stories-CBmQnwAl.js} | 2 +- ...Hatl.js => FileListItem.stories-BRbfBFbC.js} | 2 +- assets/{Flex-CcBQZiMH.js => Flex-DMgVUl98.js} | 2 +- ...ies-BovLbUJZ.js => Flex.stories-CRa1_0Al.js} | 2 +- ...VcaEy6.js => FolderGrid.stories-BEEuzsre.js} | 2 +- ...s-K2gSrBT6.js => Header.stories-BV3C6KMO.js} | 2 +- ...s-DbmChReU.js => Header.stories-CiLudgVc.js} | 2 +- ...{Heading-BCYRSNXR.js => Heading-FD1nScCb.js} | 2 +- ...-DUmlZFQw.js => Heading.stories-D_UsrQyH.js} | 2 +- assets/{Input-_bQPWmrw.js => Input-B4nzLRzl.js} | 2 +- ...es-0yTp_Bua.js => Input.stories-BuYgWvMo.js} | 2 +- ...ies-BtFdaKjG.js => Item.stories-BLHpfNL6.js} | 2 +- assets/{Label-Dvf5dr16.js => Label-BPjTE68Y.js} | 2 +- ...es-C8TXh-Zu.js => Label.stories-DqYxSaWl.js} | 2 +- ...C2T4bQC9.js => ListItem.stories-B_kIm6op.js} | 2 +- ...enuList-Cq7c8mmt.js => MenuList-DtX22AXJ.js} | 2 +- ...BEPTfUph.js => MenuList.stories-B1vx54lR.js} | 2 +- ...F4Mhz.js => QueryClientProvider-BufXlfUi.js} | 2 +- ...w0ovdv.js => RadioGroup.stories-BFC6xYwb.js} | 2 +- ...outeNav-Dgfqahe_.js => RouteNav-DeIolqf0.js} | 2 +- ...C6fvwcUI.js => RouteNav.stories-B38Ukb7l.js} | 2 +- .../{Select-MF-KBPgn.js => Select-0cv1h5wR.js} | 2 +- ...s-SZ88fAI0.js => Select.stories-DSpHOza-.js} | 2 +- ...t-_IVHGPES.js => SupportingText-C1HExhiQ.js} | 2 +- ...s-BzOCKOrq.js => Switch.stories-B4J4BIVE.js} | 2 +- ...Button-B-1B9T34.js => TabButton-7djQDVd5.js} | 2 +- ...CdiYlZz.js => TabButton.stories-DrzmEdB4.js} | 2 +- ...ies-CPuOSPvd.js => Tabs.stories-X1x1tC5D.js} | 2 +- assets/{Tag-Bv1RKcm4.js => Tag-C4ARU73M.js} | 2 +- ...ries-BWxk2UzF.js => Tag.stories-DanSqrtd.js} | 2 +- assets/{Text-BdNMkr7S.js => Text-9RJ8J0eA.js} | 2 +- ...ies-D6np-j7S.js => Text.stories-CMvodB7C.js} | 2 +- ...es-CUsiLrgT.js => Toast.stories-D71zdOlk.js} | 2 +- ...{ToolTip-B5zzYkah.js => ToolTip-DREpUNuj.js} | 2 +- ...-Dikhmx-h.js => ToolTip.stories-Dda_168L.js} | 2 +- ...Z-.js => WorkSpaceModal.stories-B27xY6G2.js} | 2 +- ...me-BrOTZTuV.js => WorkSpaceName-DaJLJb5F.js} | 4 ++-- ...XnwbWaTF.js => _commonjsHelpers-Dq6BK7nx.js} | 2 +- assets/{axe-DKSXRCTo.js => axe-CqI-cweo.js} | 2 +- ...llipsis-Bk2wdyyW.js => ellipsis-bMyq7Nk3.js} | 2 +- ...js => emotion-react.browser.esm-Cyl1vPjg.js} | 2 +- ...ew-Gy9vRDWP.js => entry-preview-BkFveEtM.js} | 2 +- ...TFxFuJ.js => entry-preview-docs-BUyBerJ_.js} | 2 +- assets/{file-o2e5cVZ2.js => file-CAHT9y9p.js} | 2 +- ...c_check-BYJyafRx.js => ic_check-DODkcSEC.js} | 2 +- ...ts-BVRLYobK.js => ic_three_dots-DhrEP3KX.js} | 2 +- ...c_trash-D7lR1pQ_.js => ic_trash-zLH-eJlm.js} | 2 +- .../{iframe-BnffqoK7.js => iframe-AJyGuqY3.js} | 4 ++-- assets/{index-C_edrjnw.js => index-BHRAuaXy.js} | 2 +- assets/{index-ChjQAJHq.js => index-BIpICc0P.js} | 2 +- assets/{index-DNeIa3IR.js => index-BggmREGX.js} | 2 +- assets/{index-B4Z6PsAH.js => index-Bs6nXyGp.js} | 2 +- assets/{index-BZ6RFkQt.js => index-CuYyT4jL.js} | 2 +- ...tyle-TC8qthSU.js => index.style-BqtEg6R5.js} | 2 +- ...{isArray-BI8z6s7d.js => isArray-vVmlok3Z.js} | 2 +- assets/{path-DPor8ESZ.js => path-8_1M5Knd.js} | 2 +- ...{preview-BUgjy1AX.js => preview-BBdobtET.js} | 2 +- ...{preview-BgSD07K3.js => preview-Bzjl1GZu.js} | 4 ++-- ...{preview-nfUgTCsP.js => preview-CjoBTVcJ.js} | 4 ++-- assets/{proxy-4sgmHMJ7.js => proxy-BfgkLHSP.js} | 2 +- ...eact-18-C2ppDB-h.js => react-18-CzVEcH-F.js} | 2 +- assets/{react-CVxNFIA5.js => react-H2B7brmx.js} | 2 +- .../{scroll-Cr_SEktn.js => scroll-BeA4HMGQ.js} | 2 +- assets/{theme-DwD7F4-e.js => theme-Cuq_aI8Z.js} | 2 +- assets/{toast-izQVgPOM.js => toast-C2VtnlsU.js} | 2 +- ...-COUwwguf.js => useOutsideClick-CEpXkKWK.js} | 2 +- ...erlay-jcCv9x_t.js => useOverlay-COpOggKz.js} | 2 +- iframe.html | 2 +- project.json | 2 +- .../manager-bundle.js | 2 +- 86 files changed, 109 insertions(+), 109 deletions(-) rename assets/{Button-aaJpuFF7.js => Button-D1nFQNRa.js} (89%) rename assets/{Button.stories-SfXPEIvu.js => Button.stories-BvaTDkHX.js} (86%) rename assets/{Button.style-CoALCM8f.js => Button.style-C-RQzMju.js} (92%) rename assets/{Carousel.stories-9MJBGgFk.js => Carousel.stories-Kd065ibm.js} (96%) rename assets/{CheckBox-B0NBCG01.js => CheckBox--BKu8vEN.js} (84%) rename assets/{CheckBox.stories-BmStllQS.js => CheckBox.stories-BGaZmj6a.js} (75%) rename assets/{Color-KGDBMAHA-D41Ad0KX.js => Color-KGDBMAHA-DA2-Pv-O.js} (98%) rename assets/{CommandButton.stories-DnL3aq65.js => CommandButton.stories-DqCt5CaW.js} (95%) rename assets/{ContentBox.stories-BFM5lQU4.js => ContentBox.stories-9dRmPIUT.js} (93%) rename assets/{CountedInput.stories-CKTW0ZdS.js => CountedInput.stories-BctlYxzy.js} (85%) rename assets/{DatePicker.stories-Dq_m-QTd.js => DatePicker.stories-i7H_Wn8q.js} (98%) create mode 100644 assets/DeleteModal.stories-CtogTm-O.js delete mode 100644 assets/DeleteModal.stories-DLLfBuro.js rename assets/{Divider.stories-D2SHbI4e.js => Divider.stories-CzxOs0c1.js} (88%) rename assets/{DocsRenderer-PKQXORMH-Df6NR3vH.js => DocsRenderer-PKQXORMH-CLTnEESS.js} (99%) rename assets/{FileGrid.stories-bm2V4I8q.js => FileGrid.stories-Cgc9RzcR.js} (84%) rename assets/{FileListHeader.stories-CNI2LH90.js => FileListHeader.stories-CBmQnwAl.js} (80%) rename assets/{FileListItem.stories-Cl7BHatl.js => FileListItem.stories-BRbfBFbC.js} (83%) rename assets/{Flex-CcBQZiMH.js => Flex-DMgVUl98.js} (91%) rename assets/{Flex.stories-BovLbUJZ.js => Flex.stories-CRa1_0Al.js} (90%) rename assets/{FolderGrid.stories-DgVcaEy6.js => FolderGrid.stories-BEEuzsre.js} (80%) rename assets/{Header.stories-K2gSrBT6.js => Header.stories-BV3C6KMO.js} (89%) rename assets/{Header.stories-DbmChReU.js => Header.stories-CiLudgVc.js} (67%) rename assets/{Heading-BCYRSNXR.js => Heading-FD1nScCb.js} (84%) rename assets/{Heading.stories-DUmlZFQw.js => Heading.stories-D_UsrQyH.js} (84%) rename assets/{Input-_bQPWmrw.js => Input-B4nzLRzl.js} (77%) rename assets/{Input.stories-0yTp_Bua.js => Input.stories-BuYgWvMo.js} (90%) rename assets/{Item.stories-BtFdaKjG.js => Item.stories-BLHpfNL6.js} (87%) rename assets/{Label-Dvf5dr16.js => Label-BPjTE68Y.js} (75%) rename assets/{Label.stories-C8TXh-Zu.js => Label.stories-DqYxSaWl.js} (74%) rename assets/{ListItem.stories-C2T4bQC9.js => ListItem.stories-B_kIm6op.js} (93%) rename assets/{MenuList-Cq7c8mmt.js => MenuList-DtX22AXJ.js} (90%) rename assets/{MenuList.stories-BEPTfUph.js => MenuList.stories-B1vx54lR.js} (85%) rename assets/{QueryClientProvider-CVYF4Mhz.js => QueryClientProvider-BufXlfUi.js} (99%) rename assets/{RadioGroup.stories-D2w0ovdv.js => RadioGroup.stories-BFC6xYwb.js} (92%) rename assets/{RouteNav-Dgfqahe_.js => RouteNav-DeIolqf0.js} (94%) rename assets/{RouteNav.stories-C6fvwcUI.js => RouteNav.stories-B38Ukb7l.js} (63%) rename assets/{Select-MF-KBPgn.js => Select-0cv1h5wR.js} (94%) rename assets/{Select.stories-SZ88fAI0.js => Select.stories-DSpHOza-.js} (94%) rename assets/{SupportingText-_IVHGPES.js => SupportingText-C1HExhiQ.js} (88%) rename assets/{Switch.stories-BzOCKOrq.js => Switch.stories-B4J4BIVE.js} (96%) rename assets/{TabButton-B-1B9T34.js => TabButton-7djQDVd5.js} (89%) rename assets/{TabButton.stories-BCdiYlZz.js => TabButton.stories-DrzmEdB4.js} (79%) rename assets/{Tabs.stories-CPuOSPvd.js => Tabs.stories-X1x1tC5D.js} (89%) rename assets/{Tag-Bv1RKcm4.js => Tag-C4ARU73M.js} (86%) rename assets/{Tag.stories-BWxk2UzF.js => Tag.stories-DanSqrtd.js} (83%) rename assets/{Text-BdNMkr7S.js => Text-9RJ8J0eA.js} (90%) rename assets/{Text.stories-D6np-j7S.js => Text.stories-CMvodB7C.js} (86%) rename assets/{Toast.stories-CUsiLrgT.js => Toast.stories-D71zdOlk.js} (92%) rename assets/{ToolTip-B5zzYkah.js => ToolTip-DREpUNuj.js} (93%) rename assets/{ToolTip.stories-Dikhmx-h.js => ToolTip.stories-Dda_168L.js} (79%) rename assets/{WorkSpaceModal.stories-BQ8lGmZ-.js => WorkSpaceModal.stories-B27xY6G2.js} (79%) rename assets/{WorkSpaceName-BrOTZTuV.js => WorkSpaceName-DaJLJb5F.js} (99%) rename assets/{_commonjsHelpers-XnwbWaTF.js => _commonjsHelpers-Dq6BK7nx.js} (93%) rename assets/{axe-DKSXRCTo.js => axe-CqI-cweo.js} (99%) rename assets/{ellipsis-Bk2wdyyW.js => ellipsis-bMyq7Nk3.js} (85%) rename assets/{emotion-react.browser.esm-DVCGPw0o.js => emotion-react.browser.esm-Cyl1vPjg.js} (99%) rename assets/{entry-preview-Gy9vRDWP.js => entry-preview-BkFveEtM.js} (86%) rename assets/{entry-preview-docs-CQTFxFuJ.js => entry-preview-docs-BUyBerJ_.js} (99%) rename assets/{file-o2e5cVZ2.js => file-CAHT9y9p.js} (88%) rename assets/{ic_check-BYJyafRx.js => ic_check-DODkcSEC.js} (95%) rename assets/{ic_three_dots-BVRLYobK.js => ic_three_dots-DhrEP3KX.js} (95%) rename assets/{ic_trash-D7lR1pQ_.js => ic_trash-zLH-eJlm.js} (96%) rename assets/{iframe-BnffqoK7.js => iframe-AJyGuqY3.js} (53%) rename assets/{index-C_edrjnw.js => index-BHRAuaXy.js} (99%) rename assets/{index-ChjQAJHq.js => index-BIpICc0P.js} (82%) rename assets/{index-DNeIa3IR.js => index-BggmREGX.js} (84%) rename assets/{index-B4Z6PsAH.js => index-Bs6nXyGp.js} (98%) rename assets/{index-BZ6RFkQt.js => index-CuYyT4jL.js} (99%) rename assets/{index.style-TC8qthSU.js => index.style-BqtEg6R5.js} (96%) rename assets/{isArray-BI8z6s7d.js => isArray-vVmlok3Z.js} (99%) rename assets/{path-DPor8ESZ.js => path-8_1M5Knd.js} (91%) rename assets/{preview-BUgjy1AX.js => preview-BBdobtET.js} (96%) rename assets/{preview-BgSD07K3.js => preview-Bzjl1GZu.js} (76%) rename assets/{preview-nfUgTCsP.js => preview-CjoBTVcJ.js} (68%) rename assets/{proxy-4sgmHMJ7.js => proxy-BfgkLHSP.js} (99%) rename assets/{react-18-C2ppDB-h.js => react-18-CzVEcH-F.js} (85%) rename assets/{react-CVxNFIA5.js => react-H2B7brmx.js} (93%) rename assets/{scroll-Cr_SEktn.js => scroll-BeA4HMGQ.js} (79%) rename assets/{theme-DwD7F4-e.js => theme-Cuq_aI8Z.js} (97%) rename assets/{toast-izQVgPOM.js => toast-C2VtnlsU.js} (88%) rename assets/{useOutsideClick-COUwwguf.js => useOutsideClick-CEpXkKWK.js} (92%) rename assets/{useOverlay-jcCv9x_t.js => useOverlay-COpOggKz.js} (88%) diff --git a/assets/Button-aaJpuFF7.js b/assets/Button-D1nFQNRa.js similarity index 89% rename from assets/Button-aaJpuFF7.js rename to assets/Button-D1nFQNRa.js index 8a8a8cfdb..8701481df 100644 --- a/assets/Button-aaJpuFF7.js +++ b/assets/Button-D1nFQNRa.js @@ -1 +1 @@ -import{a as r}from"./emotion-react.browser.esm-DVCGPw0o.js";import{b as n,v as m,s as i}from"./Button.style-CoALCM8f.js";import"./iframe-BnffqoK7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="ef04ece9-a836-4bcc-86a0-64e7f0a54359",e._sentryDebugIdIdentifier="sentry-dbid-ef04ece9-a836-4bcc-86a0-64e7f0a54359")}catch{}})();const u=({variant:e="primary",children:a,size:l="medium",...t})=>r("button",{type:"button",css:[n,m(e),i(l)],...t,children:a});u.__docgenInfo={description:"",methods:[],displayName:"Button",props:{variant:{required:!1,tsType:{name:"union",raw:"'primary' | 'secondary' | 'tertiary' | 'outline' | 'text'",elements:[{name:"literal",value:"'primary'"},{name:"literal",value:"'secondary'"},{name:"literal",value:"'tertiary'"},{name:"literal",value:"'outline'"},{name:"literal",value:"'text'"}]},description:"",defaultValue:{value:"'primary'",computed:!1}},size:{required:!1,tsType:{name:"Extract",elements:[{name:"union",raw:"'xxSmall' | 'xSmall' | 'small' | 'medium' | 'large' | 'xLarge' | 'xxLarge'",elements:[{name:"literal",value:"'xxSmall'"},{name:"literal",value:"'xSmall'"},{name:"literal",value:"'small'"},{name:"literal",value:"'medium'"},{name:"literal",value:"'large'"},{name:"literal",value:"'xLarge'"},{name:"literal",value:"'xxLarge'"}]},{name:"union",raw:"'xLarge' | 'large' | 'medium' | 'small' | 'xSmall'",elements:[{name:"literal",value:"'xLarge'"},{name:"literal",value:"'large'"},{name:"literal",value:"'medium'"},{name:"literal",value:"'small'"},{name:"literal",value:"'xSmall'"}]}],raw:"Extract"},description:"",defaultValue:{value:"'medium'",computed:!1}}},composes:["ButtonHTMLAttributes"]};export{u as B}; +import{a as r}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{b as n,v as m,s as i}from"./Button.style-C-RQzMju.js";import"./iframe-AJyGuqY3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="ef04ece9-a836-4bcc-86a0-64e7f0a54359",e._sentryDebugIdIdentifier="sentry-dbid-ef04ece9-a836-4bcc-86a0-64e7f0a54359")}catch{}})();const u=({variant:e="primary",children:a,size:l="medium",...t})=>r("button",{type:"button",css:[n,m(e),i(l)],...t,children:a});u.__docgenInfo={description:"",methods:[],displayName:"Button",props:{variant:{required:!1,tsType:{name:"union",raw:"'primary' | 'secondary' | 'tertiary' | 'outline' | 'text'",elements:[{name:"literal",value:"'primary'"},{name:"literal",value:"'secondary'"},{name:"literal",value:"'tertiary'"},{name:"literal",value:"'outline'"},{name:"literal",value:"'text'"}]},description:"",defaultValue:{value:"'primary'",computed:!1}},size:{required:!1,tsType:{name:"Extract",elements:[{name:"union",raw:"'xxSmall' | 'xSmall' | 'small' | 'medium' | 'large' | 'xLarge' | 'xxLarge'",elements:[{name:"literal",value:"'xxSmall'"},{name:"literal",value:"'xSmall'"},{name:"literal",value:"'small'"},{name:"literal",value:"'medium'"},{name:"literal",value:"'large'"},{name:"literal",value:"'xLarge'"},{name:"literal",value:"'xxLarge'"}]},{name:"union",raw:"'xLarge' | 'large' | 'medium' | 'small' | 'xSmall'",elements:[{name:"literal",value:"'xLarge'"},{name:"literal",value:"'large'"},{name:"literal",value:"'medium'"},{name:"literal",value:"'small'"},{name:"literal",value:"'xSmall'"}]}],raw:"Extract"},description:"",defaultValue:{value:"'medium'",computed:!1}}},composes:["ButtonHTMLAttributes"]};export{u as B}; diff --git a/assets/Button.stories-SfXPEIvu.js b/assets/Button.stories-BvaTDkHX.js similarity index 86% rename from assets/Button.stories-SfXPEIvu.js rename to assets/Button.stories-BvaTDkHX.js index 5c777370e..dd814c2d0 100644 --- a/assets/Button.stories-SfXPEIvu.js +++ b/assets/Button.stories-BvaTDkHX.js @@ -1,4 +1,4 @@ -import{j as T,a as j,F as O}from"./emotion-react.browser.esm-DVCGPw0o.js";import{S as k}from"./ic_check-BYJyafRx.js";import{B as z}from"./Button-aaJpuFF7.js";import"./iframe-BnffqoK7.js";import"./index-B4Z6PsAH.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./extends-ClQVCWlZ.js";import"./Button.style-CoALCM8f.js";import"./theme-DwD7F4-e.js";import"../sb-preview/runtime.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[i]="3281bcfb-c161-481e-996c-923749accf56",r._sentryDebugIdIdentifier="sentry-dbid-3281bcfb-c161-481e-996c-923749accf56")}catch{}})();const J={title:"Common/Button",component:z,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{variant:{control:{type:"radio"},options:["primary","secondary","tertiary","outline","underline"]},size:{control:{type:"radio"},options:["xLarge","large","medium","small","xSmall"]},children:{control:{type:"text"}},disabled:{control:{type:"boolean"}}},args:{variant:"primary",size:"small",children:"Button",disabled:!1}},e=r=>({args:{variant:r},argsType:{variant:{control:!1}}}),t=e("primary"),a=e("secondary"),o=e("tertiary"),s=e("outline"),n=e("text"),c={args:{variant:"tertiary",children:T(O,{children:[j(k,{}),"Icon"]})}};var d,m,p;t.parameters={...t.parameters,docs:{...(d=t.parameters)==null?void 0:d.docs,source:{originalSource:"createButtonStory('primary')",...(p=(m=t.parameters)==null?void 0:m.docs)==null?void 0:p.source}}};var l,u,y;a.parameters={...a.parameters,docs:{...(l=a.parameters)==null?void 0:l.docs,source:{originalSource:"createButtonStory('secondary')",...(y=(u=a.parameters)==null?void 0:u.docs)==null?void 0:y.source}}};var g,f,S;o.parameters={...o.parameters,docs:{...(g=o.parameters)==null?void 0:g.docs,source:{originalSource:"createButtonStory('tertiary')",...(S=(f=o.parameters)==null?void 0:f.docs)==null?void 0:S.source}}};var b,I,B;s.parameters={...s.parameters,docs:{...(b=s.parameters)==null?void 0:b.docs,source:{originalSource:"createButtonStory('outline')",...(B=(I=s.parameters)==null?void 0:I.docs)==null?void 0:B.source}}};var h,x,v;n.parameters={...n.parameters,docs:{...(h=n.parameters)==null?void 0:h.docs,source:{originalSource:"createButtonStory('text')",...(v=(x=n.parameters)==null?void 0:x.docs)==null?void 0:v.source}}};var _,w,D;c.parameters={...c.parameters,docs:{...(_=c.parameters)==null?void 0:_.docs,source:{originalSource:`{ +import{j as T,a as j,F as O}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{S as k}from"./ic_check-DODkcSEC.js";import{B as z}from"./Button-D1nFQNRa.js";import"./iframe-AJyGuqY3.js";import"./index-Bs6nXyGp.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./extends-ClQVCWlZ.js";import"./Button.style-C-RQzMju.js";import"./theme-Cuq_aI8Z.js";import"../sb-preview/runtime.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[i]="3281bcfb-c161-481e-996c-923749accf56",r._sentryDebugIdIdentifier="sentry-dbid-3281bcfb-c161-481e-996c-923749accf56")}catch{}})();const J={title:"Common/Button",component:z,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{variant:{control:{type:"radio"},options:["primary","secondary","tertiary","outline","underline"]},size:{control:{type:"radio"},options:["xLarge","large","medium","small","xSmall"]},children:{control:{type:"text"}},disabled:{control:{type:"boolean"}}},args:{variant:"primary",size:"small",children:"Button",disabled:!1}},e=r=>({args:{variant:r},argsType:{variant:{control:!1}}}),t=e("primary"),a=e("secondary"),o=e("tertiary"),s=e("outline"),n=e("text"),c={args:{variant:"tertiary",children:T(O,{children:[j(k,{}),"Icon"]})}};var d,m,p;t.parameters={...t.parameters,docs:{...(d=t.parameters)==null?void 0:d.docs,source:{originalSource:"createButtonStory('primary')",...(p=(m=t.parameters)==null?void 0:m.docs)==null?void 0:p.source}}};var l,u,y;a.parameters={...a.parameters,docs:{...(l=a.parameters)==null?void 0:l.docs,source:{originalSource:"createButtonStory('secondary')",...(y=(u=a.parameters)==null?void 0:u.docs)==null?void 0:y.source}}};var g,f,S;o.parameters={...o.parameters,docs:{...(g=o.parameters)==null?void 0:g.docs,source:{originalSource:"createButtonStory('tertiary')",...(S=(f=o.parameters)==null?void 0:f.docs)==null?void 0:S.source}}};var b,I,B;s.parameters={...s.parameters,docs:{...(b=s.parameters)==null?void 0:b.docs,source:{originalSource:"createButtonStory('outline')",...(B=(I=s.parameters)==null?void 0:I.docs)==null?void 0:B.source}}};var h,x,v;n.parameters={...n.parameters,docs:{...(h=n.parameters)==null?void 0:h.docs,source:{originalSource:"createButtonStory('text')",...(v=(x=n.parameters)==null?void 0:x.docs)==null?void 0:v.source}}};var _,w,D;c.parameters={...c.parameters,docs:{...(_=c.parameters)==null?void 0:_.docs,source:{originalSource:`{ args: { variant: 'tertiary', children: <> diff --git a/assets/Button.style-CoALCM8f.js b/assets/Button.style-C-RQzMju.js similarity index 92% rename from assets/Button.style-CoALCM8f.js rename to assets/Button.style-C-RQzMju.js index 51587a464..c370b4a0d 100644 --- a/assets/Button.style-CoALCM8f.js +++ b/assets/Button.style-C-RQzMju.js @@ -1 +1 @@ -import{c as r}from"./emotion-react.browser.esm-DVCGPw0o.js";import{t as o}from"./theme-DwD7F4-e.js";import"./iframe-BnffqoK7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fc0eff7b-0340-4b78-9cec-49586b5eb0c5",e._sentryDebugIdIdentifier="sentry-dbid-fc0eff7b-0340-4b78-9cec-49586b5eb0c5")}catch{}})();const l=r({display:"flex",justifyContent:"center",alignItems:"center",gap:"0.4rem",border:"none",borderRadius:"8px",fontWeight:500,whiteSpace:"nowrap",cursor:"pointer","&:disabled:not(:focus)":{backgroundColor:o.colors.gray_100,color:o.colors.gray_500},transition:"all .2s ease-in"}),d=e=>({primary:r({color:o.colors.white,backgroundColor:o.colors.key_500,"&:hover":{backgroundColor:o.colors.key_600}}),secondary:r({color:o.colors.key_500,backgroundColor:o.colors.key_100,"&:hover":{backgroundColor:o.colors.key_200}}),tertiary:r({color:o.colors.gray_800,backgroundColor:o.colors.gray_100,"&:hover":{backgroundColor:o.colors.gray_200}}),outline:r({color:o.colors.gray_800,backgroundColor:o.colors.white,boxShadow:o.shadow.inset,"&:hover":{backgroundColor:o.colors.gray_100}}),text:r({padding:0,color:o.colors.gray_800,backgroundColor:"transparent",fontWeight:400,...o.text.body06,"&:hover":{textDecoration:"underline"},"&:disabled:not(:focus)":{color:o.colors.gray_500,backgroundColor:"transparent",textDecoration:"underline"}})})[e],i=e=>({xLarge:r({padding:"1.6rem 1.4rem",...o.text.body06}),large:r({padding:"1.4rem",...o.text.body08}),medium:r({padding:"1.2rem 1.4rem",...o.text.body08}),small:r({padding:"1rem 1.4rem",...o.text.body08}),xSmall:r({padding:"0.6rem 1rem",borderRadius:"1.2rem",...o.text.body08})})[e];export{l as b,i as s,d as v}; +import{c as r}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{t as o}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fc0eff7b-0340-4b78-9cec-49586b5eb0c5",e._sentryDebugIdIdentifier="sentry-dbid-fc0eff7b-0340-4b78-9cec-49586b5eb0c5")}catch{}})();const l=r({display:"flex",justifyContent:"center",alignItems:"center",gap:"0.4rem",border:"none",borderRadius:"8px",fontWeight:500,whiteSpace:"nowrap",cursor:"pointer","&:disabled:not(:focus)":{backgroundColor:o.colors.gray_100,color:o.colors.gray_500},transition:"all .2s ease-in"}),d=e=>({primary:r({color:o.colors.white,backgroundColor:o.colors.key_500,"&:hover":{backgroundColor:o.colors.key_600}}),secondary:r({color:o.colors.key_500,backgroundColor:o.colors.key_100,"&:hover":{backgroundColor:o.colors.key_200}}),tertiary:r({color:o.colors.gray_800,backgroundColor:o.colors.gray_100,"&:hover":{backgroundColor:o.colors.gray_200}}),outline:r({color:o.colors.gray_800,backgroundColor:o.colors.white,boxShadow:o.shadow.inset,"&:hover":{backgroundColor:o.colors.gray_100}}),text:r({padding:0,color:o.colors.gray_800,backgroundColor:"transparent",fontWeight:400,...o.text.body06,"&:hover":{textDecoration:"underline"},"&:disabled:not(:focus)":{color:o.colors.gray_500,backgroundColor:"transparent",textDecoration:"underline"}})})[e],i=e=>({xLarge:r({padding:"1.6rem 1.4rem",...o.text.body06}),large:r({padding:"1.4rem",...o.text.body08}),medium:r({padding:"1.2rem 1.4rem",...o.text.body08}),small:r({padding:"1rem 1.4rem",...o.text.body08}),xSmall:r({padding:"0.6rem 1rem",borderRadius:"1.2rem",...o.text.body08})})[e];export{l as b,i as s,d as v}; diff --git a/assets/Carousel.stories-9MJBGgFk.js b/assets/Carousel.stories-Kd065ibm.js similarity index 96% rename from assets/Carousel.stories-9MJBGgFk.js rename to assets/Carousel.stories-Kd065ibm.js index 11a0c5d84..3589f3d78 100644 --- a/assets/Carousel.stories-9MJBGgFk.js +++ b/assets/Carousel.stories-Kd065ibm.js @@ -1,4 +1,4 @@ -import{c as m,a as n,j as f,F as T}from"./emotion-react.browser.esm-DVCGPw0o.js";import{r}from"./index-B4Z6PsAH.js";import{B as W}from"./Button-aaJpuFF7.js";import"./iframe-BnffqoK7.js";import{r as C}from"./index-C_edrjnw.js";import{H as F}from"./Heading-BCYRSNXR.js";import{t as q}from"./theme-DwD7F4-e.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./Button.style-CoALCM8f.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8653b6ff-53ad-4055-9e56-5613beaa8f80",e._sentryDebugIdIdentifier="sentry-dbid-8653b6ff-53ad-4055-9e56-5613beaa8f80")}catch{}})();const V=e=>r.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("g",{id:"icons/arrow"},r.createElement("path",{id:"Vector 710",d:"M11 1L4 8L11 15",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))),D=e=>r.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("g",{id:"icons/arrow"},r.createElement("path",{id:"Vector 710",d:"M5 1L12 8L5 15",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))),O=e=>m({width:"100%",height:e,flexShrink:0,position:"relative","& > *":{width:"100%",height:e,objectFit:"cover"}}),N=e=>m({display:"flex",width:"100%",height:e,overflow:"hidden","& > div":{width:"100%",height:e}}),U=({width:e,height:t})=>m({position:"relative",width:e,height:t,borderRadius:"16px",overflow:"hidden","& *":{userSelect:"none",touchAction:"none"}}),$=e=>m({position:"absolute",top:0,bottom:0,left:e==="left"?"1.6rem":"auto",right:e==="right"?"1.6rem":"auto",display:"flex",justifyContent:"center",alignItems:"center",margin:"auto 0",width:"3.2rem",height:"3.2rem",border:"none",borderRadius:"16px",background:"rgb(255,255,255,0.3)",cursor:"pointer"}),z=m` +import{c as m,a as n,j as f,F as T}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{r}from"./index-Bs6nXyGp.js";import{B as W}from"./Button-D1nFQNRa.js";import"./iframe-AJyGuqY3.js";import{r as C}from"./index-BHRAuaXy.js";import{H as F}from"./Heading-FD1nScCb.js";import{t as q}from"./theme-Cuq_aI8Z.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./Button.style-C-RQzMju.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8653b6ff-53ad-4055-9e56-5613beaa8f80",e._sentryDebugIdIdentifier="sentry-dbid-8653b6ff-53ad-4055-9e56-5613beaa8f80")}catch{}})();const V=e=>r.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("g",{id:"icons/arrow"},r.createElement("path",{id:"Vector 710",d:"M11 1L4 8L11 15",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))),D=e=>r.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("g",{id:"icons/arrow"},r.createElement("path",{id:"Vector 710",d:"M5 1L12 8L5 15",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))),O=e=>m({width:"100%",height:e,flexShrink:0,position:"relative","& > *":{width:"100%",height:e,objectFit:"cover"}}),N=e=>m({display:"flex",width:"100%",height:e,overflow:"hidden","& > div":{width:"100%",height:e}}),U=({width:e,height:t})=>m({position:"relative",width:e,height:t,borderRadius:"16px",overflow:"hidden","& *":{userSelect:"none",touchAction:"none"}}),$=e=>m({position:"absolute",top:0,bottom:0,left:e==="left"?"1.6rem":"auto",right:e==="right"?"1.6rem":"auto",display:"flex",justifyContent:"center",alignItems:"center",margin:"auto 0",width:"3.2rem",height:"3.2rem",border:"none",borderRadius:"16px",background:"rgb(255,255,255,0.3)",cursor:"pointer"}),z=m` display: flex; gap: 0.8rem; diff --git a/assets/CheckBox-B0NBCG01.js b/assets/CheckBox--BKu8vEN.js similarity index 84% rename from assets/CheckBox-B0NBCG01.js rename to assets/CheckBox--BKu8vEN.js index 55f018002..2fa7140ff 100644 --- a/assets/CheckBox-B0NBCG01.js +++ b/assets/CheckBox--BKu8vEN.js @@ -1 +1 @@ -import{c as t,a as c}from"./emotion-react.browser.esm-DVCGPw0o.js";import{t as r}from"./theme-DwD7F4-e.js";import"./iframe-BnffqoK7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="a7471f88-e6c5-4c99-9036-6ec65fc05030",e._sentryDebugIdIdentifier="sentry-dbid-a7471f88-e6c5-4c99-9036-6ec65fc05030")}catch{}})();const s=t({appearance:"none",WebkitAppearance:"none",MozAppearance:"none",width:"1.8rem",height:"1.8rem",border:"none",borderRadius:"2px",backgroundColor:r.colors.gray_300,"&:checked":{backgroundColor:r.colors.key_500},cursor:"pointer","&:before":{content:'"✓"',display:"flex",justifyContent:"center",alignItems:"center",color:r.colors.white,fontSize:"15px"}}),i=({isChecked:e,onChange:o,...n})=>c("input",{"aria-checked":e,type:"checkbox",css:s,onChange:o,checked:e,...n});i.__docgenInfo={description:"",methods:[],displayName:"CheckBox",props:{isChecked:{required:!0,tsType:{name:"boolean"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}},composes:["HTMLAttributes"]};export{i as C}; +import{c as t,a as c}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{t as r}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="a7471f88-e6c5-4c99-9036-6ec65fc05030",e._sentryDebugIdIdentifier="sentry-dbid-a7471f88-e6c5-4c99-9036-6ec65fc05030")}catch{}})();const s=t({appearance:"none",WebkitAppearance:"none",MozAppearance:"none",width:"1.8rem",height:"1.8rem",border:"none",borderRadius:"2px",backgroundColor:r.colors.gray_300,"&:checked":{backgroundColor:r.colors.key_500},cursor:"pointer","&:before":{content:'"✓"',display:"flex",justifyContent:"center",alignItems:"center",color:r.colors.white,fontSize:"15px"}}),i=({isChecked:e,onChange:o,...n})=>c("input",{"aria-checked":e,type:"checkbox",css:s,onChange:o,checked:e,...n});i.__docgenInfo={description:"",methods:[],displayName:"CheckBox",props:{isChecked:{required:!0,tsType:{name:"boolean"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}},composes:["HTMLAttributes"]};export{i as C}; diff --git a/assets/CheckBox.stories-BmStllQS.js b/assets/CheckBox.stories-BGaZmj6a.js similarity index 75% rename from assets/CheckBox.stories-BmStllQS.js rename to assets/CheckBox.stories-BGaZmj6a.js index ea5950930..a29e002d4 100644 --- a/assets/CheckBox.stories-BmStllQS.js +++ b/assets/CheckBox.stories-BGaZmj6a.js @@ -1 +1 @@ -import{C as n}from"./CheckBox-B0NBCG01.js";import"./iframe-BnffqoK7.js";import"./emotion-react.browser.esm-DVCGPw0o.js";import"./index-B4Z6PsAH.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./extends-ClQVCWlZ.js";import"./theme-DwD7F4-e.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="92d96959-2042-4ece-9fe5-2739104e1832",e._sentryDebugIdIdentifier="sentry-dbid-92d96959-2042-4ece-9fe5-2739104e1832")}catch{}})();const g={title:"Common/CheckBox",component:n,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{isChecked:{control:{type:"boolean"}}},args:{isChecked:!1,onChange:()=>{}}},o={};var r,s,a;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(a=(s=o.parameters)==null?void 0:s.docs)==null?void 0:a.source}}};const b=["Default"];export{o as Default,b as __namedExportsOrder,g as default}; +import{C as n}from"./CheckBox--BKu8vEN.js";import"./iframe-AJyGuqY3.js";import"./emotion-react.browser.esm-Cyl1vPjg.js";import"./index-Bs6nXyGp.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./extends-ClQVCWlZ.js";import"./theme-Cuq_aI8Z.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="92d96959-2042-4ece-9fe5-2739104e1832",e._sentryDebugIdIdentifier="sentry-dbid-92d96959-2042-4ece-9fe5-2739104e1832")}catch{}})();const g={title:"Common/CheckBox",component:n,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{isChecked:{control:{type:"boolean"}}},args:{isChecked:!1,onChange:()=>{}}},o={};var r,s,a;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(a=(s=o.parameters)==null?void 0:s.docs)==null?void 0:a.source}}};const b=["Default"];export{o as Default,b as __namedExportsOrder,g as default}; diff --git a/assets/Color-KGDBMAHA-D41Ad0KX.js b/assets/Color-KGDBMAHA-DA2-Pv-O.js similarity index 98% rename from assets/Color-KGDBMAHA-D41Ad0KX.js rename to assets/Color-KGDBMAHA-DA2-Pv-O.js index be8672939..328ea5a1e 100644 --- a/assets/Color-KGDBMAHA-D41Ad0KX.js +++ b/assets/Color-KGDBMAHA-DA2-Pv-O.js @@ -1 +1 @@ -import{ae as Me,af as $,a2 as ce,a0 as Ce,b as $e,ag as Ie,ah as Oe}from"./DocsRenderer-PKQXORMH-Df6NR3vH.js";import{R as d,r as b}from"./index-B4Z6PsAH.js";import{g as ue}from"./_commonjsHelpers-XnwbWaTF.js";import"./iframe-BnffqoK7.js";import{_ as Ne,i as fe}from"./isArray-BI8z6s7d.js";import"./react-18-C2ppDB-h.js";import"./index-C_edrjnw.js";import"./index-CBYM4yTB.js";import"./extends-ClQVCWlZ.js";import"./index-BWTWe0Km.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e84671e8-3519-4bd7-ae25-dd721759038d",e._sentryDebugIdIdentifier="sentry-dbid-e84671e8-3519-4bd7-ae25-dd721759038d")}catch{}})();function O(){return(O=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=b.useRef(e),n=b.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var R=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(te(o.current,p,l.current)):M(!1)},j=function(){return M(!1)};function M(p){var m=i.current,w=V(o.current),E=p?w.addEventListener:w.removeEventListener;E(m?"touchmove":"mousemove",x),E(m?"touchend":"mouseup",j)}return[function(p){var m=p.nativeEvent,w=o.current;if(w&&(ne(m),!function(k,I){return I&&!F(k)}(m,i.current)&&w)){if(F(m)){i.current=!0;var E=m.changedTouches||[];E.length&&(l.current=E[0].identifier)}w.focus(),a(te(w,m,l.current)),M(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},M]},[s,a]),h=c[0],f=c[1],g=c[2];return b.useEffect(function(){return g},[g]),d.createElement("div",O({},r,{onTouchStart:h,onMouseDown:h,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),T=function(e){return e.filter(Boolean).join(" ")},Z=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=T(["react-colorful__pointer",e.className]);return d.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},d.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?y(parseInt(e.substring(6,8),16)/255,2):1}},je=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},ze=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Fe({h:je(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Fe=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},He=function(e){return Pe(he(e))},de=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},G=function(e){var t=de(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},B=function(e){var t=de(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},he=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),l=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:y(255*[r,l,s,s,i,r][c]),g:y(255*[i,r,r,l,s,s][c]),b:y(255*[s,s,i,r,r,l][c]),a:y(o,2)}},Te=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},P=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?P(y(255*o)):"";return"#"+P(t)+P(n)+P(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},be=d.memo(function(e){var t=e.hue,n=e.onChange,r=T(["react-colorful__hue",e.className]);return d.createElement("div",{className:r},d.createElement(Q,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:R(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},d.createElement(Z,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),me=d.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return d.createElement("div",{className:"react-colorful__saturation",style:r},d.createElement(Q,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:R(t.s+100*o.left,0,100),v:R(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},d.createElement(Z,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=b.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,l.current.color)){var c=e.toHsva(t);l.current={hsva:c,color:t},s(c)}},[t,e]),b.useEffect(function(){var c;ve(a,l.current.hsva)||e.equal(c=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:c},r(c))},[a,e,r]);var i=b.useCallback(function(c){s(function(h){return Object.assign({},h,c)})},[]);return[a,i]}var qe=typeof window<"u"?b.useLayoutEffect:b.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},re=new Map,xe=function(e){qe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!re.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,re.set(t,n);var r=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},De=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=J(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],h=i[1],f=T(["react-colorful",t]);return d.createElement("div",O({},s,{ref:l,className:f}),d.createElement(me,{hsva:c,onChange:h}),d.createElement(be,{hue:c.h,onChange:h,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return He({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},We=function(e){return d.createElement(De,O({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+B(Object.assign({},n,{a:0}))+", "+B(Object.assign({},n,{a:1}))+")"},a=T(["react-colorful__alpha",t]),s=y(100*n.a);return d.createElement("div",{className:a},d.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),d.createElement(Q,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:R(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},d.createElement(Z,{className:"react-colorful__alpha-pointer",left:n.a,color:B(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=J(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],h=i[1],f=T(["react-colorful",t]);return d.createElement("div",O({},s,{ref:l,className:f}),d.createElement(me,{hsva:c,onChange:h}),d.createElement(be,{hue:c.h,onChange:h}),d.createElement(Ke,{hsva:c,onChange:h,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:ze,fromHsva:B,equal:pe},Ae=function(e){return d.createElement(we,O({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Te,fromHsva:function(e){var t=he(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return d.createElement(we,O({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const H=Ye,ke={};for(const e of Object.keys(H))ke[H[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let l,i;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=s/(a+o):i=s/(2-a-o),[l,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,i=e[2]/255,c=Math.max(s,l,i),h=c-Math.min(s,l,i),f=function(g){return(c-g)/6/h+1/2};return h===0?(o=0,a=0):(a=h/c,t=f(s),n=f(l),r=f(i),s===c?o=r-n:l===c?o=1/3+t-r:i===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,c*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(H)){const a=H[o],s=Je(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,i=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,i[c]=s*255;return i};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,s];case 1:return[l,r,s];case 2:return[s,r,i];case 3:return[s,l,r];case 4:return[i,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const i=n+a*(l-n);let c,h,f;switch(s){default:case 6:case 0:c=l,h=i,f=n;break;case 1:c=i,h=l,f=n;break;case 2:c=n,h=l,f=i;break;case 3:c=n,h=i,f=l;break;case 4:c=i,h=n,f=l;break;case 5:c=l,h=n,f=i;break}return[c*255,h*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,i=o**3,c=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,i;return s<1?l=a/(1-s):l=0,s<=0?i=0:o===t?i=(n-r)/s%6:o===n?i=2+(r-t)/s:i=4+(t-n)/s,i/=6,i%=1,[i*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*r,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const D=_e;function Qe(){const e={},t=Object.keys(D);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{N[e]={},Object.defineProperty(N[e],"channels",{value:U[e].channels}),Object.defineProperty(N[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];N[e][r]=st(o),N[e][r].raw=at(o)})});var lt=N;const _=ue(lt);var it=Ne,ct=function(){return it.Date.now()},ut=ct,ft=/\s/;function dt(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var ht=dt,gt=ht,bt=/^\s+/;function mt(e){return e&&e.slice(0,gt(e)+1).replace(bt,"")}var vt=mt,pt=vt,oe=fe,yt=Me,ae=NaN,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return ae;if(oe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?ae:+e}var Mt=Et,Ct=fe,W=ut,se=Mt,$t="Expected a function",It=Math.max,Ot=Math.min;function Nt(e,t,n){var r,o,a,s,l,i,c=0,h=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=se(t)||0,Ct(n)&&(h=!!n.leading,f="maxWait"in n,a=f?It(se(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function x(v){var C=r,z=o;return r=o=void 0,c=v,s=e.apply(z,C),s}function j(v){return c=v,l=setTimeout(m,t),h?x(v):s}function M(v){var C=v-i,z=v-c,ee=t-C;return f?Ot(ee,a-z):ee}function p(v){var C=v-i,z=v-c;return i===void 0||C>=t||C<0||f&&z>=a}function m(){var v=W();if(p(v))return w(v);l=setTimeout(m,M(v))}function w(v){return l=void 0,g&&r?x(v):(r=o=void 0,s)}function E(){l!==void 0&&clearTimeout(l),c=0,r=i=o=l=void 0}function k(){return l===void 0?s:w(W())}function I(){var v=W(),C=p(v);if(r=arguments,o=this,i=v,C){if(l===void 0)return j(i);if(f)return clearTimeout(l),l=setTimeout(m,t),x(i)}return l===void 0&&(l=setTimeout(m,t)),s}return I.cancel=E,I.flush=k,I}var St=Nt;const Rt=ue(St);var jt=$.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),zt=$(ce)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Ft=$.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Ht=$(Ce)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Tt=$.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Pt=$.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Lt=`url('data:image/svg+xml;charset=utf-8,')`,le=({value:e,style:t,...n})=>{let r=`linear-gradient(${e}, ${e}), ${Lt}, linear-gradient(#fff, #fff)`;return d.createElement(Pt,{...n,style:{...t,backgroundImage:r}})},qt=$($e.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Bt=$(Ie)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),L=Object.values(Ee),Dt=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Xt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Wt=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Kt=/^\s*#?([0-9a-f]{3})\s*$/i,Vt={hex:We,rgb:Ue,hsl:Ae},q={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ie=e=>{let t=e==null?void 0:e.match(Dt);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},S=e=>{if(!e)return;let t=!0;if(Xt.test(e)){let[s,l,i,c]=ie(e),[h,f,g]=_.rgb.hsl([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:_.rgb.keyword([s,l,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${h}, ${f}%, ${g}%, ${c})`,hex:`#${_.rgb.hex([s,l,i]).toLowerCase()}`}}if(Wt.test(e)){let[s,l,i,c]=ie(e),[h,f,g]=_.hsl.rgb([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:_.hsl.keyword([s,l,i]),colorSpace:"hsl",rgb:`rgba(${h}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${_.hsl.hex([s,l,i]).toLowerCase()}`}}let n=e.replace("#",""),r=_.keyword.rgb(n)||_.hex.rgb(n),o=_.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{_.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:_.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},At=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return q[n];if(n!=="hex")return(t==null?void 0:t[n])||q[n];if(!t.hex.startsWith("#"))try{return`#${_.keyword.hex(t.hex)}`}catch{return q.hex}let r=t.hex.match(Kt);if(!r)return Y.test(t.hex)?t.hex:q.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Gt=(e,t)=>{let[n,r]=b.useState(e||""),[o,a]=b.useState(()=>S(n)),[s,l]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let f=e||"",g=S(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=b.useMemo(()=>At(n,o,s).toLowerCase(),[n,o,s]),c=b.useCallback(f=>{let g=S(f),x=(g==null?void 0:g.value)||f||"";r(x),x===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),h=b.useCallback(()=>{let f=L.indexOf(s)+1;f>=L.length&&(f=0),l(L[f]);let g=(o==null?void 0:o[L[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:s,cycleColorSpace:h}},X=e=>e.replace(/\s*/,"").toLowerCase(),Ut=(e,t,n)=>{let[r,o]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.useMemo(()=>(e||[]).map(l=>typeof l=="string"?S(l):l.title?{...S(l.color),keyword:l.title}:S(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=b.useCallback(l=>{l!=null&&l.valid&&(a.some(i=>X(i[n])===X(l[n]))||o(i=>i.concat(l)))},[n,a]);return{presets:a,addPreset:s}},Yt=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1,argType:l})=>{var E;let i=b.useCallback(Rt(n,200),[n]),{value:c,realValue:h,updateValue:f,color:g,colorSpace:x,cycleColorSpace:j}=Gt(t,i),{presets:M,addPreset:p}=Ut(a,g,x),m=Vt[x],w=!!((E=l==null?void 0:l.table)!=null&&E.readonly);return d.createElement(jt,{"aria-readonly":w},d.createElement(zt,{startOpen:s,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>p(g),tooltip:d.createElement(Ft,null,d.createElement(m,{color:h==="transparent"?"#000000":h,onChange:f,onFocus:r,onBlur:o}),M.length>0&&d.createElement(Tt,null,M.map((k,I)=>d.createElement(ce,{key:`${k.value}-${I}`,hasChrome:!1,tooltip:d.createElement(Ht,{note:k.keyword||k.value})},d.createElement(le,{value:k[x],active:g&&X(k[x])===X(g[x]),onClick:()=>f(k.value)})))))},d.createElement(le,{value:h,style:{margin:4}})),d.createElement(qt,{id:Oe(e),value:c,onChange:k=>f(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),c?d.createElement(Bt,{onClick:j}):null)},cn=Yt;export{Yt as ColorControl,cn as default}; +import{ae as Me,af as $,a2 as ce,a0 as Ce,b as $e,ag as Ie,ah as Oe}from"./DocsRenderer-PKQXORMH-CLTnEESS.js";import{R as d,r as b}from"./index-Bs6nXyGp.js";import{g as ue}from"./_commonjsHelpers-Dq6BK7nx.js";import"./iframe-AJyGuqY3.js";import{_ as Ne,i as fe}from"./isArray-vVmlok3Z.js";import"./react-18-CzVEcH-F.js";import"./index-BHRAuaXy.js";import"./index-CBYM4yTB.js";import"./extends-ClQVCWlZ.js";import"./index-BWTWe0Km.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e84671e8-3519-4bd7-ae25-dd721759038d",e._sentryDebugIdIdentifier="sentry-dbid-e84671e8-3519-4bd7-ae25-dd721759038d")}catch{}})();function O(){return(O=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=b.useRef(e),n=b.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var R=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(te(o.current,p,l.current)):M(!1)},j=function(){return M(!1)};function M(p){var m=i.current,w=V(o.current),E=p?w.addEventListener:w.removeEventListener;E(m?"touchmove":"mousemove",x),E(m?"touchend":"mouseup",j)}return[function(p){var m=p.nativeEvent,w=o.current;if(w&&(ne(m),!function(k,I){return I&&!F(k)}(m,i.current)&&w)){if(F(m)){i.current=!0;var E=m.changedTouches||[];E.length&&(l.current=E[0].identifier)}w.focus(),a(te(w,m,l.current)),M(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},M]},[s,a]),h=c[0],f=c[1],g=c[2];return b.useEffect(function(){return g},[g]),d.createElement("div",O({},r,{onTouchStart:h,onMouseDown:h,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),T=function(e){return e.filter(Boolean).join(" ")},Z=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=T(["react-colorful__pointer",e.className]);return d.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},d.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?y(parseInt(e.substring(6,8),16)/255,2):1}},je=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},ze=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Fe({h:je(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Fe=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},He=function(e){return Pe(he(e))},de=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},G=function(e){var t=de(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},B=function(e){var t=de(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},he=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),l=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:y(255*[r,l,s,s,i,r][c]),g:y(255*[i,r,r,l,s,s][c]),b:y(255*[s,s,i,r,r,l][c]),a:y(o,2)}},Te=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},P=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?P(y(255*o)):"";return"#"+P(t)+P(n)+P(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},be=d.memo(function(e){var t=e.hue,n=e.onChange,r=T(["react-colorful__hue",e.className]);return d.createElement("div",{className:r},d.createElement(Q,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:R(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},d.createElement(Z,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),me=d.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return d.createElement("div",{className:"react-colorful__saturation",style:r},d.createElement(Q,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:R(t.s+100*o.left,0,100),v:R(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},d.createElement(Z,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=b.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,l.current.color)){var c=e.toHsva(t);l.current={hsva:c,color:t},s(c)}},[t,e]),b.useEffect(function(){var c;ve(a,l.current.hsva)||e.equal(c=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:c},r(c))},[a,e,r]);var i=b.useCallback(function(c){s(function(h){return Object.assign({},h,c)})},[]);return[a,i]}var qe=typeof window<"u"?b.useLayoutEffect:b.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},re=new Map,xe=function(e){qe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!re.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,re.set(t,n);var r=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},De=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=J(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],h=i[1],f=T(["react-colorful",t]);return d.createElement("div",O({},s,{ref:l,className:f}),d.createElement(me,{hsva:c,onChange:h}),d.createElement(be,{hue:c.h,onChange:h,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return He({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},We=function(e){return d.createElement(De,O({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+B(Object.assign({},n,{a:0}))+", "+B(Object.assign({},n,{a:1}))+")"},a=T(["react-colorful__alpha",t]),s=y(100*n.a);return d.createElement("div",{className:a},d.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),d.createElement(Q,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:R(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},d.createElement(Z,{className:"react-colorful__alpha-pointer",left:n.a,color:B(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=J(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],h=i[1],f=T(["react-colorful",t]);return d.createElement("div",O({},s,{ref:l,className:f}),d.createElement(me,{hsva:c,onChange:h}),d.createElement(be,{hue:c.h,onChange:h}),d.createElement(Ke,{hsva:c,onChange:h,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:ze,fromHsva:B,equal:pe},Ae=function(e){return d.createElement(we,O({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Te,fromHsva:function(e){var t=he(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return d.createElement(we,O({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const H=Ye,ke={};for(const e of Object.keys(H))ke[H[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let l,i;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=s/(a+o):i=s/(2-a-o),[l,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,i=e[2]/255,c=Math.max(s,l,i),h=c-Math.min(s,l,i),f=function(g){return(c-g)/6/h+1/2};return h===0?(o=0,a=0):(a=h/c,t=f(s),n=f(l),r=f(i),s===c?o=r-n:l===c?o=1/3+t-r:i===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,c*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(H)){const a=H[o],s=Je(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,i=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,i[c]=s*255;return i};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,s];case 1:return[l,r,s];case 2:return[s,r,i];case 3:return[s,l,r];case 4:return[i,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const i=n+a*(l-n);let c,h,f;switch(s){default:case 6:case 0:c=l,h=i,f=n;break;case 1:c=i,h=l,f=n;break;case 2:c=n,h=l,f=i;break;case 3:c=n,h=i,f=l;break;case 4:c=i,h=n,f=l;break;case 5:c=l,h=n,f=i;break}return[c*255,h*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,i=o**3,c=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,i;return s<1?l=a/(1-s):l=0,s<=0?i=0:o===t?i=(n-r)/s%6:o===n?i=2+(r-t)/s:i=4+(t-n)/s,i/=6,i%=1,[i*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*r,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const D=_e;function Qe(){const e={},t=Object.keys(D);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{N[e]={},Object.defineProperty(N[e],"channels",{value:U[e].channels}),Object.defineProperty(N[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];N[e][r]=st(o),N[e][r].raw=at(o)})});var lt=N;const _=ue(lt);var it=Ne,ct=function(){return it.Date.now()},ut=ct,ft=/\s/;function dt(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var ht=dt,gt=ht,bt=/^\s+/;function mt(e){return e&&e.slice(0,gt(e)+1).replace(bt,"")}var vt=mt,pt=vt,oe=fe,yt=Me,ae=NaN,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return ae;if(oe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?ae:+e}var Mt=Et,Ct=fe,W=ut,se=Mt,$t="Expected a function",It=Math.max,Ot=Math.min;function Nt(e,t,n){var r,o,a,s,l,i,c=0,h=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=se(t)||0,Ct(n)&&(h=!!n.leading,f="maxWait"in n,a=f?It(se(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function x(v){var C=r,z=o;return r=o=void 0,c=v,s=e.apply(z,C),s}function j(v){return c=v,l=setTimeout(m,t),h?x(v):s}function M(v){var C=v-i,z=v-c,ee=t-C;return f?Ot(ee,a-z):ee}function p(v){var C=v-i,z=v-c;return i===void 0||C>=t||C<0||f&&z>=a}function m(){var v=W();if(p(v))return w(v);l=setTimeout(m,M(v))}function w(v){return l=void 0,g&&r?x(v):(r=o=void 0,s)}function E(){l!==void 0&&clearTimeout(l),c=0,r=i=o=l=void 0}function k(){return l===void 0?s:w(W())}function I(){var v=W(),C=p(v);if(r=arguments,o=this,i=v,C){if(l===void 0)return j(i);if(f)return clearTimeout(l),l=setTimeout(m,t),x(i)}return l===void 0&&(l=setTimeout(m,t)),s}return I.cancel=E,I.flush=k,I}var St=Nt;const Rt=ue(St);var jt=$.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),zt=$(ce)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Ft=$.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Ht=$(Ce)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Tt=$.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Pt=$.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Lt=`url('data:image/svg+xml;charset=utf-8,')`,le=({value:e,style:t,...n})=>{let r=`linear-gradient(${e}, ${e}), ${Lt}, linear-gradient(#fff, #fff)`;return d.createElement(Pt,{...n,style:{...t,backgroundImage:r}})},qt=$($e.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Bt=$(Ie)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),L=Object.values(Ee),Dt=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Xt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Wt=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Kt=/^\s*#?([0-9a-f]{3})\s*$/i,Vt={hex:We,rgb:Ue,hsl:Ae},q={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ie=e=>{let t=e==null?void 0:e.match(Dt);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},S=e=>{if(!e)return;let t=!0;if(Xt.test(e)){let[s,l,i,c]=ie(e),[h,f,g]=_.rgb.hsl([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:_.rgb.keyword([s,l,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${h}, ${f}%, ${g}%, ${c})`,hex:`#${_.rgb.hex([s,l,i]).toLowerCase()}`}}if(Wt.test(e)){let[s,l,i,c]=ie(e),[h,f,g]=_.hsl.rgb([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:_.hsl.keyword([s,l,i]),colorSpace:"hsl",rgb:`rgba(${h}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${_.hsl.hex([s,l,i]).toLowerCase()}`}}let n=e.replace("#",""),r=_.keyword.rgb(n)||_.hex.rgb(n),o=_.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{_.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:_.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},At=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return q[n];if(n!=="hex")return(t==null?void 0:t[n])||q[n];if(!t.hex.startsWith("#"))try{return`#${_.keyword.hex(t.hex)}`}catch{return q.hex}let r=t.hex.match(Kt);if(!r)return Y.test(t.hex)?t.hex:q.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Gt=(e,t)=>{let[n,r]=b.useState(e||""),[o,a]=b.useState(()=>S(n)),[s,l]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let f=e||"",g=S(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=b.useMemo(()=>At(n,o,s).toLowerCase(),[n,o,s]),c=b.useCallback(f=>{let g=S(f),x=(g==null?void 0:g.value)||f||"";r(x),x===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),h=b.useCallback(()=>{let f=L.indexOf(s)+1;f>=L.length&&(f=0),l(L[f]);let g=(o==null?void 0:o[L[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:s,cycleColorSpace:h}},X=e=>e.replace(/\s*/,"").toLowerCase(),Ut=(e,t,n)=>{let[r,o]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.useMemo(()=>(e||[]).map(l=>typeof l=="string"?S(l):l.title?{...S(l.color),keyword:l.title}:S(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=b.useCallback(l=>{l!=null&&l.valid&&(a.some(i=>X(i[n])===X(l[n]))||o(i=>i.concat(l)))},[n,a]);return{presets:a,addPreset:s}},Yt=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1,argType:l})=>{var E;let i=b.useCallback(Rt(n,200),[n]),{value:c,realValue:h,updateValue:f,color:g,colorSpace:x,cycleColorSpace:j}=Gt(t,i),{presets:M,addPreset:p}=Ut(a,g,x),m=Vt[x],w=!!((E=l==null?void 0:l.table)!=null&&E.readonly);return d.createElement(jt,{"aria-readonly":w},d.createElement(zt,{startOpen:s,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>p(g),tooltip:d.createElement(Ft,null,d.createElement(m,{color:h==="transparent"?"#000000":h,onChange:f,onFocus:r,onBlur:o}),M.length>0&&d.createElement(Tt,null,M.map((k,I)=>d.createElement(ce,{key:`${k.value}-${I}`,hasChrome:!1,tooltip:d.createElement(Ht,{note:k.keyword||k.value})},d.createElement(le,{value:k[x],active:g&&X(k[x])===X(g[x]),onClick:()=>f(k.value)})))))},d.createElement(le,{value:h,style:{margin:4}})),d.createElement(qt,{id:Oe(e),value:c,onChange:k=>f(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),c?d.createElement(Bt,{onClick:j}):null)},cn=Yt;export{Yt as ColorControl,cn as default}; diff --git a/assets/CommandButton.stories-DnL3aq65.js b/assets/CommandButton.stories-DqCt5CaW.js similarity index 95% rename from assets/CommandButton.stories-DnL3aq65.js rename to assets/CommandButton.stories-DqCt5CaW.js index 8cd99f19a..5b9891231 100644 --- a/assets/CommandButton.stories-DnL3aq65.js +++ b/assets/CommandButton.stories-DqCt5CaW.js @@ -1,4 +1,4 @@ -import{c as a,j as d,a as u,F as z}from"./emotion-react.browser.esm-DVCGPw0o.js";import{S as D}from"./ic_check-BYJyafRx.js";import{r as g}from"./index-B4Z6PsAH.js";import{v as M}from"./Button.style-CoALCM8f.js";import{t as r}from"./theme-DwD7F4-e.js";import"./iframe-BnffqoK7.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-XnwbWaTF.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c8f0e0fb-65d7-4e7e-b434-baea43daffad",e._sentryDebugIdIdentifier="sentry-dbid-c8f0e0fb-65d7-4e7e-b434-baea43daffad")}catch{}})();const q=e=>g.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M7.29167 1.25C6.4875 1.25 5.83333 1.90417 5.83333 2.70833V3.33333H4.16667V2.70833C4.16667 1.90417 3.5125 1.25 2.70833 1.25C1.90417 1.25 1.25 1.90417 1.25 2.70833C1.25 3.5125 1.90417 4.16667 2.70833 4.16667H3.33333V5.83333H2.70833C1.90417 5.83333 1.25 6.4875 1.25 7.29167C1.25 8.09583 1.90417 8.75 2.70833 8.75C3.5125 8.75 4.16667 8.09583 4.16667 7.29167V6.66667H5.83333V7.29167C5.83333 8.09583 6.4875 8.75 7.29167 8.75C8.09583 8.75 8.75 8.09583 8.75 7.29167C8.75 6.4875 8.09583 5.83333 7.29167 5.83333H6.66667V4.16667H7.29167C8.09583 4.16667 8.75 3.5125 8.75 2.70833C8.75 1.90417 8.09583 1.25 7.29167 1.25ZM6.66667 3.33333V2.70833C6.66667 2.3625 6.94583 2.08333 7.29167 2.08333C7.6375 2.08333 7.91667 2.3625 7.91667 2.70833C7.91667 3.05417 7.6375 3.33333 7.29167 3.33333H6.66667ZM2.70833 3.33333C2.3625 3.33333 2.08333 3.05417 2.08333 2.70833C2.08333 2.3625 2.3625 2.08333 2.70833 2.08333C3.05417 2.08333 3.33333 2.3625 3.33333 2.70833V3.33333H2.70833ZM4.16667 5.83333V4.16667H5.83333V5.83333H4.16667ZM7.29167 7.91667C6.94583 7.91667 6.66667 7.6375 6.66667 7.29167V6.66667H7.29167C7.6375 6.66667 7.91667 6.94583 7.91667 7.29167C7.91667 7.6375 7.6375 7.91667 7.29167 7.91667ZM2.70833 7.91667C2.3625 7.91667 2.08333 7.6375 2.08333 7.29167C2.08333 6.94583 2.3625 6.66667 2.70833 6.66667H3.33333V7.29167C3.33333 7.6375 3.05417 7.91667 2.70833 7.91667Z",fill:"#525866"})),K=e=>a({display:"flex",alignItems:"center",justifyContent:"space-between",padding:e?"1rem":"1.1rem 1rem 1.1rem 1.4rem",border:"none",borderRadius:"0.8rem",gap:"0.4rem","&:disabled:not(:focus)":{backgroundColor:r.colors.gray_100,color:r.colors.gray_500},cursor:"pointer"}),Z=a({display:"flex",padding:"0.4rem 0.6rem",borderRadius:"0.4rem",color:r.colors.gray_800,...r.text.body10}),j=e=>({primary:a({backgroundColor:r.colors.white,"&:disabled:not(:focus)":{backgroundColor:r.colors.gray_100,color:r.colors.gray_500}}),tertiary:a({backgroundColor:r.colors.gray_100,"&:disabled:not(:focus)":{backgroundColor:r.colors.gray_100,color:r.colors.gray_500}}),outline:a({backgroundColor:r.colors.gray_100,"&:disabled:not(:focus)":{backgroundColor:r.colors.gray_100,color:r.colors.gray_500}})})[e],F=a({display:"flex",alignItems:"center",padding:"0.4rem",gap:"0.4rem"}),O=e=>({large:a({padding:"1.1rem 1.0rem 1.1rem 1.4rem",...r.text.body08}),small:a({padding:"0.6rem 1.4rem",...r.text.body08})})[e],V=({variant:e="primary",size:t="small",commandKey:c,isCommand:y=!0,isFrontIcon:H=!1,children:E,onClick:o,...P})=>{const k=m=>{y&&m.key===c&&(m.preventDefault(),o==null||o(m))};return d("button",{type:"button",css:[K(H),M(e),O(t)],tabIndex:0,onClick:o,onKeyDown:k,...P,children:[u("span",{css:F,children:E}),d("div",{css:[Z,j(e)],children:[y&&u(q,{}),c]})]})};V.__docgenInfo={description:"",methods:[],displayName:"CommandButton",props:{variant:{required:!1,tsType:{name:"Extract",elements:[{name:"ButtonProps['variant']",raw:"ButtonProps['variant']"},{name:"union",raw:"'primary' | 'tertiary' | 'outline'",elements:[{name:"literal",value:"'primary'"},{name:"literal",value:"'tertiary'"},{name:"literal",value:"'outline'"}]}],raw:"Extract"},description:"",defaultValue:{value:"'primary'",computed:!1}},size:{required:!1,tsType:{name:"Extract",elements:[{name:"ButtonProps['size']",raw:"ButtonProps['size']"},{name:"union",raw:"'large' | 'small'",elements:[{name:"literal",value:"'large'"},{name:"literal",value:"'small'"}]}],raw:"Extract"},description:"",defaultValue:{value:"'small'",computed:!1}},commandKey:{required:!0,tsType:{name:"string"},description:""},isCommand:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}},isFrontIcon:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},onClick:{required:!1,tsType:{name:"signature",type:"function",raw:"(event: SyntheticEvent) => void",signature:{arguments:[{type:{name:"SyntheticEvent"},name:"event"}],return:{name:"void"}}},description:""}},composes:["ButtonHTMLAttributes"]};const X={title:"Common/CommandButton",component:V,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{variant:{control:{type:"radio"},options:["primary","tertiary","outline"]},size:{control:{type:"radio"},options:["large","small"]},commandKey:{control:{type:"text"}},isCommand:{control:{type:"boolean"}},children:{control:{type:"text"}},disabled:{control:{type:"boolean"}}},args:{variant:"primary",size:"large",children:"Button",disabled:!1}},p=(e,t)=>({args:{variant:t,commandKey:e},argTypes:{variant:{control:"radio"}}}),n=p("T","primary"),s=p("T","tertiary"),l=p("T","outline"),i={args:{variant:"tertiary",children:d(z,{children:[u(D,{}),"Icon"]}),commandKey:"T"}};var f,b,C;n.parameters={...n.parameters,docs:{...(f=n.parameters)==null?void 0:f.docs,source:{originalSource:"createCommandButtonStory('T', 'primary')",...(C=(b=n.parameters)==null?void 0:b.docs)==null?void 0:C.source}}};var v,h,w;s.parameters={...s.parameters,docs:{...(v=s.parameters)==null?void 0:v.docs,source:{originalSource:"createCommandButtonStory('T', 'tertiary')",...(w=(h=s.parameters)==null?void 0:h.docs)==null?void 0:w.source}}};var x,S,T;l.parameters={...l.parameters,docs:{...(x=l.parameters)==null?void 0:x.docs,source:{originalSource:"createCommandButtonStory('T', 'outline')",...(T=(S=l.parameters)==null?void 0:S.docs)==null?void 0:T.source}}};var _,I,B;i.parameters={...i.parameters,docs:{...(_=i.parameters)==null?void 0:_.docs,source:{originalSource:`{ +import{c as a,j as d,a as u,F as z}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{S as D}from"./ic_check-DODkcSEC.js";import{r as g}from"./index-Bs6nXyGp.js";import{v as M}from"./Button.style-C-RQzMju.js";import{t as r}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c8f0e0fb-65d7-4e7e-b434-baea43daffad",e._sentryDebugIdIdentifier="sentry-dbid-c8f0e0fb-65d7-4e7e-b434-baea43daffad")}catch{}})();const q=e=>g.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M7.29167 1.25C6.4875 1.25 5.83333 1.90417 5.83333 2.70833V3.33333H4.16667V2.70833C4.16667 1.90417 3.5125 1.25 2.70833 1.25C1.90417 1.25 1.25 1.90417 1.25 2.70833C1.25 3.5125 1.90417 4.16667 2.70833 4.16667H3.33333V5.83333H2.70833C1.90417 5.83333 1.25 6.4875 1.25 7.29167C1.25 8.09583 1.90417 8.75 2.70833 8.75C3.5125 8.75 4.16667 8.09583 4.16667 7.29167V6.66667H5.83333V7.29167C5.83333 8.09583 6.4875 8.75 7.29167 8.75C8.09583 8.75 8.75 8.09583 8.75 7.29167C8.75 6.4875 8.09583 5.83333 7.29167 5.83333H6.66667V4.16667H7.29167C8.09583 4.16667 8.75 3.5125 8.75 2.70833C8.75 1.90417 8.09583 1.25 7.29167 1.25ZM6.66667 3.33333V2.70833C6.66667 2.3625 6.94583 2.08333 7.29167 2.08333C7.6375 2.08333 7.91667 2.3625 7.91667 2.70833C7.91667 3.05417 7.6375 3.33333 7.29167 3.33333H6.66667ZM2.70833 3.33333C2.3625 3.33333 2.08333 3.05417 2.08333 2.70833C2.08333 2.3625 2.3625 2.08333 2.70833 2.08333C3.05417 2.08333 3.33333 2.3625 3.33333 2.70833V3.33333H2.70833ZM4.16667 5.83333V4.16667H5.83333V5.83333H4.16667ZM7.29167 7.91667C6.94583 7.91667 6.66667 7.6375 6.66667 7.29167V6.66667H7.29167C7.6375 6.66667 7.91667 6.94583 7.91667 7.29167C7.91667 7.6375 7.6375 7.91667 7.29167 7.91667ZM2.70833 7.91667C2.3625 7.91667 2.08333 7.6375 2.08333 7.29167C2.08333 6.94583 2.3625 6.66667 2.70833 6.66667H3.33333V7.29167C3.33333 7.6375 3.05417 7.91667 2.70833 7.91667Z",fill:"#525866"})),K=e=>a({display:"flex",alignItems:"center",justifyContent:"space-between",padding:e?"1rem":"1.1rem 1rem 1.1rem 1.4rem",border:"none",borderRadius:"0.8rem",gap:"0.4rem","&:disabled:not(:focus)":{backgroundColor:r.colors.gray_100,color:r.colors.gray_500},cursor:"pointer"}),Z=a({display:"flex",padding:"0.4rem 0.6rem",borderRadius:"0.4rem",color:r.colors.gray_800,...r.text.body10}),j=e=>({primary:a({backgroundColor:r.colors.white,"&:disabled:not(:focus)":{backgroundColor:r.colors.gray_100,color:r.colors.gray_500}}),tertiary:a({backgroundColor:r.colors.gray_100,"&:disabled:not(:focus)":{backgroundColor:r.colors.gray_100,color:r.colors.gray_500}}),outline:a({backgroundColor:r.colors.gray_100,"&:disabled:not(:focus)":{backgroundColor:r.colors.gray_100,color:r.colors.gray_500}})})[e],F=a({display:"flex",alignItems:"center",padding:"0.4rem",gap:"0.4rem"}),O=e=>({large:a({padding:"1.1rem 1.0rem 1.1rem 1.4rem",...r.text.body08}),small:a({padding:"0.6rem 1.4rem",...r.text.body08})})[e],V=({variant:e="primary",size:t="small",commandKey:c,isCommand:y=!0,isFrontIcon:H=!1,children:E,onClick:o,...P})=>{const k=m=>{y&&m.key===c&&(m.preventDefault(),o==null||o(m))};return d("button",{type:"button",css:[K(H),M(e),O(t)],tabIndex:0,onClick:o,onKeyDown:k,...P,children:[u("span",{css:F,children:E}),d("div",{css:[Z,j(e)],children:[y&&u(q,{}),c]})]})};V.__docgenInfo={description:"",methods:[],displayName:"CommandButton",props:{variant:{required:!1,tsType:{name:"Extract",elements:[{name:"ButtonProps['variant']",raw:"ButtonProps['variant']"},{name:"union",raw:"'primary' | 'tertiary' | 'outline'",elements:[{name:"literal",value:"'primary'"},{name:"literal",value:"'tertiary'"},{name:"literal",value:"'outline'"}]}],raw:"Extract"},description:"",defaultValue:{value:"'primary'",computed:!1}},size:{required:!1,tsType:{name:"Extract",elements:[{name:"ButtonProps['size']",raw:"ButtonProps['size']"},{name:"union",raw:"'large' | 'small'",elements:[{name:"literal",value:"'large'"},{name:"literal",value:"'small'"}]}],raw:"Extract"},description:"",defaultValue:{value:"'small'",computed:!1}},commandKey:{required:!0,tsType:{name:"string"},description:""},isCommand:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}},isFrontIcon:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},onClick:{required:!1,tsType:{name:"signature",type:"function",raw:"(event: SyntheticEvent) => void",signature:{arguments:[{type:{name:"SyntheticEvent"},name:"event"}],return:{name:"void"}}},description:""}},composes:["ButtonHTMLAttributes"]};const X={title:"Common/CommandButton",component:V,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{variant:{control:{type:"radio"},options:["primary","tertiary","outline"]},size:{control:{type:"radio"},options:["large","small"]},commandKey:{control:{type:"text"}},isCommand:{control:{type:"boolean"}},children:{control:{type:"text"}},disabled:{control:{type:"boolean"}}},args:{variant:"primary",size:"large",children:"Button",disabled:!1}},p=(e,t)=>({args:{variant:t,commandKey:e},argTypes:{variant:{control:"radio"}}}),n=p("T","primary"),s=p("T","tertiary"),l=p("T","outline"),i={args:{variant:"tertiary",children:d(z,{children:[u(D,{}),"Icon"]}),commandKey:"T"}};var f,b,C;n.parameters={...n.parameters,docs:{...(f=n.parameters)==null?void 0:f.docs,source:{originalSource:"createCommandButtonStory('T', 'primary')",...(C=(b=n.parameters)==null?void 0:b.docs)==null?void 0:C.source}}};var v,h,w;s.parameters={...s.parameters,docs:{...(v=s.parameters)==null?void 0:v.docs,source:{originalSource:"createCommandButtonStory('T', 'tertiary')",...(w=(h=s.parameters)==null?void 0:h.docs)==null?void 0:w.source}}};var x,S,T;l.parameters={...l.parameters,docs:{...(x=l.parameters)==null?void 0:x.docs,source:{originalSource:"createCommandButtonStory('T', 'outline')",...(T=(S=l.parameters)==null?void 0:S.docs)==null?void 0:T.source}}};var _,I,B;i.parameters={...i.parameters,docs:{...(_=i.parameters)==null?void 0:_.docs,source:{originalSource:`{ args: { variant: 'tertiary', children: <> diff --git a/assets/ContentBox.stories-BFM5lQU4.js b/assets/ContentBox.stories-9dRmPIUT.js similarity index 93% rename from assets/ContentBox.stories-BFM5lQU4.js rename to assets/ContentBox.stories-9dRmPIUT.js index 0857f774c..72486d6f3 100644 --- a/assets/ContentBox.stories-BFM5lQU4.js +++ b/assets/ContentBox.stories-9dRmPIUT.js @@ -1,4 +1,4 @@ -import{c as a,j as r,a as e,F as b}from"./emotion-react.browser.esm-DVCGPw0o.js";import{B as O}from"./Button-aaJpuFF7.js";import{F as i}from"./Flex-CcBQZiMH.js";import{I as h}from"./Input-_bQPWmrw.js";import{T as g}from"./Text-BdNMkr7S.js";import{t as o}from"./theme-DwD7F4-e.js";import{r as n}from"./index-B4Z6PsAH.js";import{S as _}from"./ic_trash-D7lR1pQ_.js";import{H as E}from"./Heading-BCYRSNXR.js";import{s as M}from"./scroll-Cr_SEktn.js";import"./iframe-BnffqoK7.js";import"./extends-ClQVCWlZ.js";import"./Button.style-CoALCM8f.js";import"./Label-Dvf5dr16.js";import"./SupportingText-_IVHGPES.js";import"./_commonjsHelpers-XnwbWaTF.js";import"../sb-preview/runtime.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new Error().stack;c&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[c]="afc0e640-43bc-47fd-9e62-24c949ed5c26",t._sentryDebugIdIdentifier="sentry-dbid-afc0e640-43bc-47fd-9e62-24c949ed5c26")}catch{}})();const Z=t=>n.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},n.createElement("path",{d:"M6.1135 3.99996L7.44683 5.33329H13.3335V12H2.66683V3.99996H6.1135ZM6.66683 2.66663H2.66683C1.9335 2.66663 1.34016 3.26663 1.34016 3.99996L1.3335 12C1.3335 12.7333 1.9335 13.3333 2.66683 13.3333H13.3335C14.0668 13.3333 14.6668 12.7333 14.6668 12V5.33329C14.6668 4.59996 14.0668 3.99996 13.3335 3.99996H8.00016L6.66683 2.66663Z",fill:"#525866"})),j=t=>n.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},n.createElement("path",{d:"M12.6667 3.33333V9.33333H9.33333V12.6667H3.33333V3.33333H12.6667ZM12.6667 2H3.33333C2.6 2 2 2.6 2 3.33333V12.6667C2 13.4 2.6 14 3.33333 14H10L14 10V3.33333C14 2.6 13.4 2 12.6667 2ZM8 9.33333H4.66667V8H8V9.33333ZM11.3333 6.66667H4.66667V5.33333H11.3333V6.66667Z",fill:"#525866"})),N=t=>n.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},n.createElement("path",{d:"M8 10H4V11.3333H8V10Z",fill:"#525866"}),n.createElement("path",{d:"M12 4.66667H8V6H12V4.66667Z",fill:"#525866"}),n.createElement("path",{d:"M10 7.33333H6V8.66667H10V7.33333Z",fill:"#525866"}),n.createElement("path",{d:"M12.6667 2H3.33333C2.6 2 2 2.6 2 3.33333V12.6667C2 13.4 2.6 14 3.33333 14H12.6667C13.4 14 14 13.4 14 12.6667V3.33333C14 2.6 13.4 2 12.6667 2ZM12.6667 12.6667H3.33333V3.33333H12.6667V12.6667Z",fill:"#525866"})),q=a({position:"relative",width:"100%",height:"calc(100vh - 11.6rem - 4.8rem - 2rem)",padding:"0 1.6rem",border:`1px solid ${o.colors.gray_300}`,borderRadius:"16px",overflow:"hidden"}),D=a({display:"flex",alignItems:"center",gap:"0.8rem",...o.text.body04,fontWeight:500,whiteSpace:"nowrap"}),L=a({display:"flex",alignItems:"center",gap:"0.8rem"}),R=a({...o.text.body08,color:o.colors.gray_500,whiteSpace:"nowrap"}),k=a({display:"flex",justifyContent:"space-between",alignItems:"center",gap:"1rem",position:"sticky",top:0,height:"7.2rem",padding:"1.6rem 0rem",borderBottom:`1px solid ${o.colors.gray_200}`,backgroundColor:o.colors.white}),A=a({width:"100%",padding:"0.8rem 0",backgroundColor:o.colors.white}),W=a({width:"100%",height:"calc(100vh - 11.6rem - 7.2rem - 6.4rem - 4.8rem - 2rem - 0.2rem - 0.8rem)",marginTop:"0.8rem",overflowY:"scroll",scrollBehavior:"smooth"}),Y={timeline:e(N,{width:16,height:16}),file:e(Z,{width:16,height:16}),deleted:e(_,{width:16,height:16}),handover:e(j,{width:16,height:16})},s=({variant:t,title:c,headerOption:u,contentOption:F,description:V,children:I,...T})=>r("section",{css:q,...T,children:[r("header",{css:k,children:[r("div",{css:L,children:[r(E,{css:D,tag:"H2",children:[Y[t],c]}),e("p",{css:R,children:V})]}),u]}),e("div",{css:A,children:F}),e("div",{css:[W,M],children:I})]});s.__docgenInfo={description:"",methods:[],displayName:"ContentBox",props:{variant:{required:!0,tsType:{name:"union",raw:"'timeline' | 'file' | 'deleted' | 'handover'",elements:[{name:"literal",value:"'timeline'"},{name:"literal",value:"'file'"},{name:"literal",value:"'deleted'"},{name:"literal",value:"'handover'"}]},description:"ContentBox를 활용할 도메인, timeline | file | deleted | handover"},title:{required:!0,tsType:{name:"string"},description:""},description:{required:!1,tsType:{name:"string"},description:""},children:{required:!0,tsType:{name:"ReactNode"},description:""},headerOption:{required:!1,tsType:{name:"ReactNode"},description:""},contentOption:{required:!1,tsType:{name:"ReactNode"},description:""}},composes:["ComponentPropsWithoutRef"]};const se={title:"Shared/ContentBox",component:s,parameters:{layout:"centered"},tags:["autodocs"],decorators:[t=>e("div",{css:{width:"80rem"},children:e(t,{})})],args:{variant:"timeline",title:"컨텐츠",children:e(b,{})}},l=({children:t})=>e(O,{variant:"primary",css:{padding:"1.4rem 1.2rem",width:"max-content",...o.text.body08},children:t}),d={render:()=>e(s,{variant:"file",title:"파일",headerOption:r(i,{styles:{align:"center",gap:"0.8rem"},children:[e(h,{placeholder:"파일 및 폴더명을 검색해보세요"}),e(l,{children:"파일 업로드"})]}),contentOption:r(i,{styles:{align:"center",gap:"0.8rem"},children:[e(l,{children:"삭제"}),e(l,{children:"선택"})]}),children:e(i,{styles:{width:"100%",height:"50rem",justify:"center",align:"center"},children:e(g,{children:"드라이브에 파일이 존재하지 않습니다."})})})},m={render:()=>e(s,{variant:"timeline",title:"타임라인",headerOption:r(i,{styles:{align:"center",gap:"0.8rem"},children:[e(h,{placeholder:"파일 및 폴더명을 검색해보세요"}),e(l,{children:"파일 업로드"})]}),contentOption:r(i,{styles:{align:"center",gap:"0.8rem"},children:[e(l,{children:"삭제"}),e(l,{children:"선택"})]}),children:e(i,{styles:{width:"100%",height:"50rem",justify:"center",align:"center"},children:e(g,{children:"타임라인 뷰입니다."})})})},p={render:()=>e(s,{variant:"deleted",title:"휴지통",headerOption:r(i,{styles:{align:"center",gap:"0.8rem"},children:[e(h,{placeholder:"파일 및 폴더명을 검색해보세요"}),e(l,{children:"파일 업로드"})]}),contentOption:r(i,{styles:{align:"center",gap:"0.8rem"},children:[e(l,{children:"삭제"}),e(l,{children:"선택"})]}),children:e(i,{styles:{width:"100%",height:"50rem",justify:"center",align:"center"},children:e(g,{children:"휴지통 뷰입니다."})})})};var y,f,x;d.parameters={...d.parameters,docs:{...(y=d.parameters)==null?void 0:y.docs,source:{originalSource:`{ +import{c as a,j as r,a as e,F as b}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{B as O}from"./Button-D1nFQNRa.js";import{F as i}from"./Flex-DMgVUl98.js";import{I as h}from"./Input-B4nzLRzl.js";import{T as g}from"./Text-9RJ8J0eA.js";import{t as o}from"./theme-Cuq_aI8Z.js";import{r as n}from"./index-Bs6nXyGp.js";import{S as _}from"./ic_trash-zLH-eJlm.js";import{H as E}from"./Heading-FD1nScCb.js";import{s as M}from"./scroll-BeA4HMGQ.js";import"./iframe-AJyGuqY3.js";import"./extends-ClQVCWlZ.js";import"./Button.style-C-RQzMju.js";import"./Label-BPjTE68Y.js";import"./SupportingText-C1HExhiQ.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"../sb-preview/runtime.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new Error().stack;c&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[c]="afc0e640-43bc-47fd-9e62-24c949ed5c26",t._sentryDebugIdIdentifier="sentry-dbid-afc0e640-43bc-47fd-9e62-24c949ed5c26")}catch{}})();const Z=t=>n.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},n.createElement("path",{d:"M6.1135 3.99996L7.44683 5.33329H13.3335V12H2.66683V3.99996H6.1135ZM6.66683 2.66663H2.66683C1.9335 2.66663 1.34016 3.26663 1.34016 3.99996L1.3335 12C1.3335 12.7333 1.9335 13.3333 2.66683 13.3333H13.3335C14.0668 13.3333 14.6668 12.7333 14.6668 12V5.33329C14.6668 4.59996 14.0668 3.99996 13.3335 3.99996H8.00016L6.66683 2.66663Z",fill:"#525866"})),j=t=>n.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},n.createElement("path",{d:"M12.6667 3.33333V9.33333H9.33333V12.6667H3.33333V3.33333H12.6667ZM12.6667 2H3.33333C2.6 2 2 2.6 2 3.33333V12.6667C2 13.4 2.6 14 3.33333 14H10L14 10V3.33333C14 2.6 13.4 2 12.6667 2ZM8 9.33333H4.66667V8H8V9.33333ZM11.3333 6.66667H4.66667V5.33333H11.3333V6.66667Z",fill:"#525866"})),N=t=>n.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},n.createElement("path",{d:"M8 10H4V11.3333H8V10Z",fill:"#525866"}),n.createElement("path",{d:"M12 4.66667H8V6H12V4.66667Z",fill:"#525866"}),n.createElement("path",{d:"M10 7.33333H6V8.66667H10V7.33333Z",fill:"#525866"}),n.createElement("path",{d:"M12.6667 2H3.33333C2.6 2 2 2.6 2 3.33333V12.6667C2 13.4 2.6 14 3.33333 14H12.6667C13.4 14 14 13.4 14 12.6667V3.33333C14 2.6 13.4 2 12.6667 2ZM12.6667 12.6667H3.33333V3.33333H12.6667V12.6667Z",fill:"#525866"})),q=a({position:"relative",width:"100%",height:"calc(100vh - 11.6rem - 4.8rem - 2rem)",padding:"0 1.6rem",border:`1px solid ${o.colors.gray_300}`,borderRadius:"16px",overflow:"hidden"}),D=a({display:"flex",alignItems:"center",gap:"0.8rem",...o.text.body04,fontWeight:500,whiteSpace:"nowrap"}),L=a({display:"flex",alignItems:"center",gap:"0.8rem"}),R=a({...o.text.body08,color:o.colors.gray_500,whiteSpace:"nowrap"}),k=a({display:"flex",justifyContent:"space-between",alignItems:"center",gap:"1rem",position:"sticky",top:0,height:"7.2rem",padding:"1.6rem 0rem",borderBottom:`1px solid ${o.colors.gray_200}`,backgroundColor:o.colors.white}),A=a({width:"100%",padding:"0.8rem 0",backgroundColor:o.colors.white}),W=a({width:"100%",height:"calc(100vh - 11.6rem - 7.2rem - 6.4rem - 4.8rem - 2rem - 0.2rem - 0.8rem)",marginTop:"0.8rem",overflowY:"scroll",scrollBehavior:"smooth"}),Y={timeline:e(N,{width:16,height:16}),file:e(Z,{width:16,height:16}),deleted:e(_,{width:16,height:16}),handover:e(j,{width:16,height:16})},s=({variant:t,title:c,headerOption:u,contentOption:F,description:V,children:I,...T})=>r("section",{css:q,...T,children:[r("header",{css:k,children:[r("div",{css:L,children:[r(E,{css:D,tag:"H2",children:[Y[t],c]}),e("p",{css:R,children:V})]}),u]}),e("div",{css:A,children:F}),e("div",{css:[W,M],children:I})]});s.__docgenInfo={description:"",methods:[],displayName:"ContentBox",props:{variant:{required:!0,tsType:{name:"union",raw:"'timeline' | 'file' | 'deleted' | 'handover'",elements:[{name:"literal",value:"'timeline'"},{name:"literal",value:"'file'"},{name:"literal",value:"'deleted'"},{name:"literal",value:"'handover'"}]},description:"ContentBox를 활용할 도메인, timeline | file | deleted | handover"},title:{required:!0,tsType:{name:"string"},description:""},description:{required:!1,tsType:{name:"string"},description:""},children:{required:!0,tsType:{name:"ReactNode"},description:""},headerOption:{required:!1,tsType:{name:"ReactNode"},description:""},contentOption:{required:!1,tsType:{name:"ReactNode"},description:""}},composes:["ComponentPropsWithoutRef"]};const se={title:"Shared/ContentBox",component:s,parameters:{layout:"centered"},tags:["autodocs"],decorators:[t=>e("div",{css:{width:"80rem"},children:e(t,{})})],args:{variant:"timeline",title:"컨텐츠",children:e(b,{})}},l=({children:t})=>e(O,{variant:"primary",css:{padding:"1.4rem 1.2rem",width:"max-content",...o.text.body08},children:t}),d={render:()=>e(s,{variant:"file",title:"파일",headerOption:r(i,{styles:{align:"center",gap:"0.8rem"},children:[e(h,{placeholder:"파일 및 폴더명을 검색해보세요"}),e(l,{children:"파일 업로드"})]}),contentOption:r(i,{styles:{align:"center",gap:"0.8rem"},children:[e(l,{children:"삭제"}),e(l,{children:"선택"})]}),children:e(i,{styles:{width:"100%",height:"50rem",justify:"center",align:"center"},children:e(g,{children:"드라이브에 파일이 존재하지 않습니다."})})})},m={render:()=>e(s,{variant:"timeline",title:"타임라인",headerOption:r(i,{styles:{align:"center",gap:"0.8rem"},children:[e(h,{placeholder:"파일 및 폴더명을 검색해보세요"}),e(l,{children:"파일 업로드"})]}),contentOption:r(i,{styles:{align:"center",gap:"0.8rem"},children:[e(l,{children:"삭제"}),e(l,{children:"선택"})]}),children:e(i,{styles:{width:"100%",height:"50rem",justify:"center",align:"center"},children:e(g,{children:"타임라인 뷰입니다."})})})},p={render:()=>e(s,{variant:"deleted",title:"휴지통",headerOption:r(i,{styles:{align:"center",gap:"0.8rem"},children:[e(h,{placeholder:"파일 및 폴더명을 검색해보세요"}),e(l,{children:"파일 업로드"})]}),contentOption:r(i,{styles:{align:"center",gap:"0.8rem"},children:[e(l,{children:"삭제"}),e(l,{children:"선택"})]}),children:e(i,{styles:{width:"100%",height:"50rem",justify:"center",align:"center"},children:e(g,{children:"휴지통 뷰입니다."})})})};var y,f,x;d.parameters={...d.parameters,docs:{...(y=d.parameters)==null?void 0:y.docs,source:{originalSource:`{ render: () => label":{margin:"0 0 1rem"}}),I=s({width:"100%",paddingRight:"4rem",border:"none",backgroundColor:"transparent",fontWeight:400,...r.text.body06,outline:"none","::placeholder":{color:r.colors.gray_500,...r.text.body06}}),C=s({display:"flex",alignItems:"center",gap:"1rem",position:"relative",height:"4rem",padding:"1.3rem 1.2rem",backgroundColor:"transparent",boxShadow:r.shadow.inset,borderRadius:"8px","&:focus-within":{boxShadow:r.shadow.inset_focus}}),v=s({position:"absolute",...r.text.body06,color:r.colors.gray_500,right:"1.2rem"}),D=({label:e,maxLength:t,isError:a=!1,isSuccess:b=!1,supportingText:u,...h},y)=>{const[c,S]=d.useState(0);return l("div",{css:_,children:[e&&n(x,{id:e,children:e}),l("div",{css:C,children:[n("input",{ref:y,css:I,onChange:i=>{c===t&&(i.target.value=i.target.value.substring(0,t)),S(i.target.value.length)},...h}),n("span",{css:v,children:`${c}/${t}`})]}),u&&n(w,{isError:a,isSuccess:b,children:u})]})},g=d.forwardRef(D),O={title:"Common/CountedInput",component:g,parameters:{layout:"centered"},tags:["autodocs"]},o={args:{maxLength:20,label:"카운트 인풋"},render:e=>{const t=d.useRef(null);return n("form",{onSubmit:()=>{t.current&&t.current.value},children:n(g,{...e,ref:t})})}};var f,m,p;o.parameters={...o.parameters,docs:{...(f=o.parameters)==null?void 0:f.docs,source:{originalSource:`{ +import{c as s,j as l,a as n}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{r as d}from"./index-Bs6nXyGp.js";import{t as r}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";import{L as x}from"./Label-BPjTE68Y.js";import{S as w}from"./SupportingText-C1HExhiQ.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a94ffedb-1c3a-4e1a-9969-280b8d1dc257",e._sentryDebugIdIdentifier="sentry-dbid-a94ffedb-1c3a-4e1a-9969-280b8d1dc257")}catch{}})();const _=s({display:"flex",flexDirection:"column",gap:"0.2rem",width:"100%","& > label":{margin:"0 0 1rem"}}),I=s({width:"100%",paddingRight:"4rem",border:"none",backgroundColor:"transparent",fontWeight:400,...r.text.body06,outline:"none","::placeholder":{color:r.colors.gray_500,...r.text.body06}}),C=s({display:"flex",alignItems:"center",gap:"1rem",position:"relative",height:"4rem",padding:"1.3rem 1.2rem",backgroundColor:"transparent",boxShadow:r.shadow.inset,borderRadius:"8px","&:focus-within":{boxShadow:r.shadow.inset_focus}}),v=s({position:"absolute",...r.text.body06,color:r.colors.gray_500,right:"1.2rem"}),D=({label:e,maxLength:t,isError:a=!1,isSuccess:b=!1,supportingText:u,...h},y)=>{const[c,S]=d.useState(0);return l("div",{css:_,children:[e&&n(x,{id:e,children:e}),l("div",{css:C,children:[n("input",{ref:y,css:I,onChange:i=>{c===t&&(i.target.value=i.target.value.substring(0,t)),S(i.target.value.length)},...h}),n("span",{css:v,children:`${c}/${t}`})]}),u&&n(w,{isError:a,isSuccess:b,children:u})]})},g=d.forwardRef(D),O={title:"Common/CountedInput",component:g,parameters:{layout:"centered"},tags:["autodocs"]},o={args:{maxLength:20,label:"카운트 인풋"},render:e=>{const t=d.useRef(null);return n("form",{onSubmit:()=>{t.current&&t.current.value},children:n(g,{...e,ref:t})})}};var f,m,p;o.parameters={...o.parameters,docs:{...(f=o.parameters)==null?void 0:f.docs,source:{originalSource:`{ args: { maxLength: 20, label: '카운트 인풋' diff --git a/assets/DatePicker.stories-Dq_m-QTd.js b/assets/DatePicker.stories-i7H_Wn8q.js similarity index 98% rename from assets/DatePicker.stories-Dq_m-QTd.js rename to assets/DatePicker.stories-i7H_Wn8q.js index f0efd1436..e0141d92c 100644 --- a/assets/DatePicker.stories-Dq_m-QTd.js +++ b/assets/DatePicker.stories-i7H_Wn8q.js @@ -1,4 +1,4 @@ -import{c as M,a as f,j as _,F as We}from"./emotion-react.browser.esm-DVCGPw0o.js";import{t as h}from"./theme-DwD7F4-e.js";import"./iframe-BnffqoK7.js";import{T as j}from"./Text-BdNMkr7S.js";import{r as x}from"./index-B4Z6PsAH.js";import{F as le}from"./Flex-CcBQZiMH.js";import{I as U}from"./Input-_bQPWmrw.js";import{L as Oe}from"./Label-Dvf5dr16.js";import{u as Se}from"./useOutsideClick-COUwwguf.js";import{u as pe}from"./useOverlay-jcCv9x_t.js";import"./extends-ClQVCWlZ.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./SupportingText-_IVHGPES.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="5b981815-b998-4bed-8eaf-0f25679fbb6b",n._sentryDebugIdIdentifier="sentry-dbid-5b981815-b998-4bed-8eaf-0f25679fbb6b")}catch{}})();const G={borderTop:`1px solid ${h.colors.key_500}`,borderBottom:`1px solid ${h.colors.key_500}`,backgroundColor:h.colors.key_100},me={marginBottom:"0.3rem",marginTop:"0.3rem"},Te=M({display:"flex",flexDirection:"column",gap:"1.6rem",position:"absolute",top:"calc(100% + 0.4rem)",left:0,width:"25.6rem",zIndex:h.zIndex.overlayMiddle,padding:"1.6rem",border:`1px solid ${h.colors.gray_300}`,borderRadius:"8px",backgroundColor:h.colors.white}),he=M({display:"grid",gridTemplateColumns:"repeat(7, 1fr)",textAlign:"center"}),Ye=M({...G,margin:"0.3rem 0",padding:"0.3rem 0",borderLeft:"none",borderRight:"none",borderRadius:"0"}),Ee=M({...me,...G,marginLeft:"0.3rem",marginRight:"0",paddingRight:"0.3rem",borderLeft:`1px solid ${h.colors.key_500}`,borderRight:"none",borderTopLeftRadius:"50%",borderBottomLeftRadius:"50%",borderTopRightRadius:"0",borderBottomRightRadius:"0"}),Ce=M({...me,...G,marginLeft:"0",marginRight:"0.3rem",paddingLeft:"0.3rem",borderRight:`1px solid ${h.colors.key_500}`,borderLeft:"none",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderTopLeftRadius:"0",borderBottomLeftRadius:"0"}),_e=M({alignContent:"center",height:"2.6rem",margin:"0.3rem",borderRadius:"50%",border:"none",color:h.colors.gray_600,cursor:"pointer",...h.text.body08,fontWeight:500}),p=M({borderRadius:"50%",border:`1px solid ${h.colors.key_500}`,backgroundColor:h.colors.key_100}),qe=M({"&:hover, &:focus":{backgroundColor:h.colors.gray_100}}),fe=6048e5,Fe=864e5,K=Symbol.for("constructDateFrom");function b(n,e){return typeof n=="function"?n(e):n&&typeof n=="object"&&K in n?n[K](e):n instanceof Date?new n.constructor(e):new Date(e)}function d(n,e){return b(e||n,n)}function Ne(n,e,t){const r=d(n,t==null?void 0:t.in);return isNaN(e)?b(n,NaN):(e&&r.setDate(r.getDate()+e),r)}function ge(n,e,t){const r=d(n,t==null?void 0:t.in);if(isNaN(e))return b(n,NaN);if(!e)return r;const a=r.getDate(),i=b(n,r.getTime());i.setMonth(r.getMonth()+e+1,0);const s=i.getDate();return a>=s?i:(r.setFullYear(i.getFullYear(),i.getMonth(),a),r)}let Le={};function q(){return Le}function S(n,e){var o,c,l,m;const t=q(),r=(e==null?void 0:e.weekStartsOn)??((c=(o=e==null?void 0:e.locale)==null?void 0:o.options)==null?void 0:c.weekStartsOn)??t.weekStartsOn??((m=(l=t.locale)==null?void 0:l.options)==null?void 0:m.weekStartsOn)??0,a=d(n,e==null?void 0:e.in),i=a.getDay(),s=(i=i.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function Z(n){const e=d(n),t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+n-+t}function I(n,...e){const t=b.bind(null,e.find(r=>typeof r=="object"));return e.map(t)}function $(n,e){const t=d(n,e==null?void 0:e.in);return t.setHours(0,0,0,0),t}function Re(n,e,t){const[r,a]=I(t==null?void 0:t.in,n,e),i=$(r),s=$(a),o=+i-Z(i),c=+s-Z(s);return Math.round((o-c)/Fe)}function $e(n,e){const t=ye(n,e),r=b(n,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),R(r)}function T(n,e,t){const[r,a]=I(t==null?void 0:t.in,n,e);return+$(r)==+$(a)}function He(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function Ie(n){return!(!He(n)&&typeof n!="number"||isNaN(+d(n)))}function Q(n,e){const t=d(n,e==null?void 0:e.in),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function Xe(n,e){const[t,r]=I(n,e.start,e.end);return{start:t,end:r}}function Ae(n,e){const{start:t,end:r}=Xe(e==null?void 0:e.in,n);let a=+t>+r;const i=a?+t:+r,s=a?r:t;s.setHours(0,0,0,0);let o=1;const c=[];for(;+s<=i;)c.push(b(t,s)),s.setDate(s.getDate()+o),s.setHours(0,0,0,0);return a?c.reverse():c}function B(n,e){const t=d(n,e==null?void 0:e.in);return t.setDate(1),t.setHours(0,0,0,0),t}function Qe(n,e){const t=d(n,e==null?void 0:e.in);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}function Be(n,e){var o,c;const t=q(),r=t.weekStartsOn??((c=(o=t.locale)==null?void 0:o.options)==null?void 0:c.weekStartsOn)??0,a=d(n,e==null?void 0:e.in),i=a.getDay(),s=(i{let r;const a=Ve[n];return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function E(n){return(e={})=>{const t=e.width?String(e.width):n.defaultWidth;return n.formats[t]||n.formats[n.defaultWidth]}}const Ge={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ze={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Je={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ue={date:E({formats:Ge,defaultWidth:"full"}),time:E({formats:ze,defaultWidth:"full"}),dateTime:E({formats:Je,defaultWidth:"full"})},Ke={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ze=(n,e,t,r)=>Ke[n];function D(n){return(e,t)=>{const r=t!=null&&t.context?String(t.context):"standalone";let a;if(r==="formatting"&&n.formattingValues){const s=n.defaultFormattingWidth||n.defaultWidth,o=t!=null&&t.width?String(t.width):s;a=n.formattingValues[o]||n.formattingValues[s]}else{const s=n.defaultWidth,o=t!=null&&t.width?String(t.width):n.defaultWidth;a=n.values[o]||n.values[s]}const i=n.argumentCallback?n.argumentCallback(e):e;return a[i]}}const et={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},tt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},nt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},rt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},at={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},it={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},st=(n,e)=>{const t=Number(n),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},ot={ordinalNumber:st,era:D({values:et,defaultWidth:"wide"}),quarter:D({values:tt,defaultWidth:"wide",argumentCallback:n=>n-1}),month:D({values:nt,defaultWidth:"wide"}),day:D({values:rt,defaultWidth:"wide"}),dayPeriod:D({values:at,defaultWidth:"wide",formattingValues:it,defaultFormattingWidth:"wide"})};function v(n){return(e,t={})=>{const r=t.width,a=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],i=e.match(a);if(!i)return null;const s=i[0],o=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],c=Array.isArray(o)?ut(o,g=>g.test(s)):ct(o,g=>g.test(s));let l;l=n.valueCallback?n.valueCallback(c):c,l=t.valueCallback?t.valueCallback(l):l;const m=e.slice(s.length);return{value:l,rest:m}}}function ct(n,e){for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&e(n[t]))return t}function ut(n,e){for(let t=0;t{const r=e.match(n.matchPattern);if(!r)return null;const a=r[0],i=e.match(n.parsePattern);if(!i)return null;let s=n.valueCallback?n.valueCallback(i[0]):i[0];s=t.valueCallback?t.valueCallback(s):s;const o=e.slice(a.length);return{value:s,rest:o}}}const dt=/^(\d+)(th|st|nd|rd)?/i,lt=/\d+/i,mt={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ht={any:[/^b/i,/^(a|c)/i]},ft={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},gt={any:[/1/i,/2/i,/3/i,/4/i]},yt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},wt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},bt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Dt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},vt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Mt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},kt={ordinalNumber:we({matchPattern:dt,parsePattern:lt,valueCallback:n=>parseInt(n,10)}),era:v({matchPatterns:mt,defaultMatchWidth:"wide",parsePatterns:ht,defaultParseWidth:"any"}),quarter:v({matchPatterns:ft,defaultMatchWidth:"wide",parsePatterns:gt,defaultParseWidth:"any",valueCallback:n=>n+1}),month:v({matchPatterns:yt,defaultMatchWidth:"wide",parsePatterns:wt,defaultParseWidth:"any"}),day:v({matchPatterns:bt,defaultMatchWidth:"wide",parsePatterns:Dt,defaultParseWidth:"any"}),dayPeriod:v({matchPatterns:vt,defaultMatchWidth:"any",parsePatterns:Mt,defaultParseWidth:"any"})},Pt={code:"en-US",formatDistance:je,formatLong:Ue,formatRelative:Ze,localize:ot,match:kt,options:{weekStartsOn:0,firstWeekContainsDate:1}};function xt(n,e){const t=d(n,e==null?void 0:e.in);return Re(t,Qe(t))+1}function Wt(n,e){const t=d(n,e==null?void 0:e.in),r=+R(t)-+$e(t);return Math.round(r/fe)+1}function be(n,e){var m,g,k,P;const t=d(n,e==null?void 0:e.in),r=t.getFullYear(),a=q(),i=(e==null?void 0:e.firstWeekContainsDate)??((g=(m=e==null?void 0:e.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??a.firstWeekContainsDate??((P=(k=a.locale)==null?void 0:k.options)==null?void 0:P.firstWeekContainsDate)??1,s=b((e==null?void 0:e.in)||n,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const o=S(s,e),c=b((e==null?void 0:e.in)||n,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const l=S(c,e);return+t>=+o?r+1:+t>=+l?r:r-1}function Ot(n,e){var o,c,l,m;const t=q(),r=(e==null?void 0:e.firstWeekContainsDate)??((c=(o=e==null?void 0:e.locale)==null?void 0:o.options)==null?void 0:c.firstWeekContainsDate)??t.firstWeekContainsDate??((m=(l=t.locale)==null?void 0:l.options)==null?void 0:m.firstWeekContainsDate)??1,a=be(n,e),i=b((e==null?void 0:e.in)||n,0);return i.setFullYear(a,0,r),i.setHours(0,0,0,0),S(i,e)}function St(n,e){const t=d(n,e==null?void 0:e.in),r=+S(t,e)-+Ot(t,e);return Math.round(r/fe)+1}function u(n,e){const t=n<0?"-":"",r=Math.abs(n).toString().padStart(e,"0");return t+r}const W={y(n,e){const t=n.getFullYear(),r=t>0?t:1-t;return u(e==="yy"?r%100:r,e.length)},M(n,e){const t=n.getMonth();return e==="M"?String(t+1):u(t+1,2)},d(n,e){return u(n.getDate(),e.length)},a(n,e){const t=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(n,e){return u(n.getHours()%12||12,e.length)},H(n,e){return u(n.getHours(),e.length)},m(n,e){return u(n.getMinutes(),e.length)},s(n,e){return u(n.getSeconds(),e.length)},S(n,e){const t=e.length,r=n.getMilliseconds(),a=Math.trunc(r*Math.pow(10,t-3));return u(a,e.length)}},Y={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ee={G:function(n,e,t){const r=n.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});case"GGGG":default:return t.era(r,{width:"wide"})}},y:function(n,e,t){if(e==="yo"){const r=n.getFullYear(),a=r>0?r:1-r;return t.ordinalNumber(a,{unit:"year"})}return W.y(n,e)},Y:function(n,e,t,r){const a=be(n,r),i=a>0?a:1-a;if(e==="YY"){const s=i%100;return u(s,2)}return e==="Yo"?t.ordinalNumber(i,{unit:"year"}):u(i,e.length)},R:function(n,e){const t=ye(n);return u(t,e.length)},u:function(n,e){const t=n.getFullYear();return u(t,e.length)},Q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return u(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return u(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,e,t){const r=n.getMonth();switch(e){case"M":case"MM":return W.M(n,e);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(n,e,t){const r=n.getMonth();switch(e){case"L":return String(r+1);case"LL":return u(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(n,e,t,r){const a=St(n,r);return e==="wo"?t.ordinalNumber(a,{unit:"week"}):u(a,e.length)},I:function(n,e,t){const r=Wt(n);return e==="Io"?t.ordinalNumber(r,{unit:"week"}):u(r,e.length)},d:function(n,e,t){return e==="do"?t.ordinalNumber(n.getDate(),{unit:"date"}):W.d(n,e)},D:function(n,e,t){const r=xt(n);return e==="Do"?t.ordinalNumber(r,{unit:"dayOfYear"}):u(r,e.length)},E:function(n,e,t){const r=n.getDay();switch(e){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});case"EEEE":default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(n,e,t,r){const a=n.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return u(i,2);case"eo":return t.ordinalNumber(i,{unit:"day"});case"eee":return t.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(a,{width:"short",context:"formatting"});case"eeee":default:return t.day(a,{width:"wide",context:"formatting"})}},c:function(n,e,t,r){const a=n.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return u(i,e.length);case"co":return t.ordinalNumber(i,{unit:"day"});case"ccc":return t.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(a,{width:"narrow",context:"standalone"});case"cccccc":return t.day(a,{width:"short",context:"standalone"});case"cccc":default:return t.day(a,{width:"wide",context:"standalone"})}},i:function(n,e,t){const r=n.getDay(),a=r===0?7:r;switch(e){case"i":return String(a);case"ii":return u(a,e.length);case"io":return t.ordinalNumber(a,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});case"iiii":default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(n,e,t){const a=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(n,e,t){const r=n.getHours();let a;switch(r===12?a=Y.noon:r===0?a=Y.midnight:a=r/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(n,e,t){const r=n.getHours();let a;switch(r>=17?a=Y.evening:r>=12?a=Y.afternoon:r>=4?a=Y.morning:a=Y.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(n,e,t){if(e==="ho"){let r=n.getHours()%12;return r===0&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return W.h(n,e)},H:function(n,e,t){return e==="Ho"?t.ordinalNumber(n.getHours(),{unit:"hour"}):W.H(n,e)},K:function(n,e,t){const r=n.getHours()%12;return e==="Ko"?t.ordinalNumber(r,{unit:"hour"}):u(r,e.length)},k:function(n,e,t){let r=n.getHours();return r===0&&(r=24),e==="ko"?t.ordinalNumber(r,{unit:"hour"}):u(r,e.length)},m:function(n,e,t){return e==="mo"?t.ordinalNumber(n.getMinutes(),{unit:"minute"}):W.m(n,e)},s:function(n,e,t){return e==="so"?t.ordinalNumber(n.getSeconds(),{unit:"second"}):W.s(n,e)},S:function(n,e){return W.S(n,e)},X:function(n,e,t){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return ne(r);case"XXXX":case"XX":return O(r);case"XXXXX":case"XXX":default:return O(r,":")}},x:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"x":return ne(r);case"xxxx":case"xx":return O(r);case"xxxxx":case"xxx":default:return O(r,":")}},O:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+te(r,":");case"OOOO":default:return"GMT"+O(r,":")}},z:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+te(r,":");case"zzzz":default:return"GMT"+O(r,":")}},t:function(n,e,t){const r=Math.trunc(+n/1e3);return u(r,e.length)},T:function(n,e,t){return u(+n,e.length)}};function te(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),a=Math.trunc(r/60),i=r%60;return i===0?t+String(a):t+String(a)+e+u(i,2)}function ne(n,e){return n%60===0?(n>0?"-":"+")+u(Math.abs(n)/60,2):O(n,e)}function O(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),a=u(Math.trunc(r/60),2),i=u(r%60,2);return t+a+e+i}const re=(n,e)=>{switch(n){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},De=(n,e)=>{switch(n){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},pt=(n,e)=>{const t=n.match(/(P+)(p+)?/)||[],r=t[1],a=t[2];if(!a)return re(n,e);let i;switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",re(r,e)).replace("{{time}}",De(a,e))},Tt={p:De,P:pt},Yt=/^D+$/,Et=/^Y+$/,Ct=["D","DD","YY","YYYY"];function _t(n){return Yt.test(n)}function qt(n){return Et.test(n)}function Ft(n,e,t){const r=Nt(n,e,t);if(console.warn(r),Ct.includes(n))throw new RangeError(r)}function Nt(n,e,t){const r=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${e}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Lt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Rt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$t=/^'([^]*?)'?$/,Ht=/''/g,It=/[a-zA-Z]/;function H(n,e,t){var m,g,k,P,F,C,z,J;const r=q(),a=(t==null?void 0:t.locale)??r.locale??Pt,i=(t==null?void 0:t.firstWeekContainsDate)??((g=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??r.firstWeekContainsDate??((P=(k=r.locale)==null?void 0:k.options)==null?void 0:P.firstWeekContainsDate)??1,s=(t==null?void 0:t.weekStartsOn)??((C=(F=t==null?void 0:t.locale)==null?void 0:F.options)==null?void 0:C.weekStartsOn)??r.weekStartsOn??((J=(z=r.locale)==null?void 0:z.options)==null?void 0:J.weekStartsOn)??0,o=d(n,t==null?void 0:t.in);if(!Ie(o))throw new RangeError("Invalid time value");let c=e.match(Rt).map(w=>{const y=w[0];if(y==="p"||y==="P"){const A=Tt[y];return A(w,a.formatLong)}return w}).join("").match(Lt).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const y=w[0];if(y==="'")return{isToken:!1,value:Xt(w)};if(ee[y])return{isToken:!0,value:w};if(y.match(It))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:w}});a.localize.preprocessor&&(c=a.localize.preprocessor(o,c));const l={firstWeekContainsDate:i,weekStartsOn:s,locale:a};return c.map(w=>{if(!w.isToken)return w.value;const y=w.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&qt(y)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&_t(y))&&Ft(y,e,String(n));const A=ee[y[0]];return A(o,y,a.localize,l)}).join("")}function Xt(n){const e=n.match($t);return e?e[1].replace(Ht,"'"):n}function ae(n,e){return d(n,e==null?void 0:e.in).getDay()}function At(n,e){return+d(n)<+d(e)}function V(n,e,t){const[r,a]=I(t==null?void 0:t.in,n,e);return r.getFullYear()===a.getFullYear()&&r.getMonth()===a.getMonth()}function Qt(n,e,t){const r=+d(n,t==null?void 0:t.in),[a,i]=[+d(e.start,t==null?void 0:t.in),+d(e.end,t==null?void 0:t.in)].sort((s,o)=>s-o);return r>=a&&r<=i}function Bt(n,e,t){return ge(n,-e,t)}const Vt=(n,e,t,r)=>{const a=C=>e&&t&&Qt(C,{start:e,end:t})&&V(r,C),i=e&&T(e,n),s=t&&T(t,n),o=i&&s,c=a(n),l=ae(n)===0&&c,m=ae(n)===6&&c,g=T(n,B(r)),k=T(n,Q(r)),P=e&&T(e,Q(r)),F=t&&T(t,B(r));if(P&&c||F&&c)return p;if(V(r,n))if(t&&e){if(o||g&&s||k&&i)return p;if(i||l&&c||g&&c)return Ee;if(s||m&&c||k&&c)return Ce;if(c)return Ye}else return i?p:qe;return null},ve=({currentMonth:n,currentMonthAllDates:e,selectedDate:t,endDate:r,setSelectedDate:a})=>f("div",{css:he,children:e.map((i,s)=>f("div",{role:"button",tabIndex:0,"aria-label":`${i.getMonth()+1}월 ${i.getDate()}일`,css:[_e,Vt(i,t,r,n)],onClick:()=>a(i),onKeyDown:o=>{o.key==="Enter"&&a(i)},children:V(n,i)?i.getDate():""},s))});ve.__docgenInfo={description:"",methods:[],displayName:"CalendarDates",props:{currentMonth:{required:!0,tsType:{name:"Date"},description:""},currentMonthAllDates:{required:!0,tsType:{name:"Array",elements:[{name:"Date"}],raw:"Date[]"},description:""},selectedDate:{required:!0,tsType:{name:"union",raw:"Date | null",elements:[{name:"Date"},{name:"null"}]},description:""},endDate:{required:!0,tsType:{name:"union",raw:"Date | null",elements:[{name:"Date"},{name:"null"}]},description:""},setSelectedDate:{required:!0,tsType:{name:"signature",type:"function",raw:"(date: Date) => void",signature:{arguments:[{type:{name:"Date"},name:"date"}],return:{name:"void"}}},description:""},variant:{required:!0,tsType:{name:"union",raw:"'single' | 'range'",elements:[{name:"literal",value:"'single'"},{name:"literal",value:"'range'"}]},description:""}}};const Me=({weekDays:n})=>f("div",{css:he,children:n.map((e,t)=>f(j,{tag:"body8",role:"button",css:{fontWeight:500},tabIndex:0,children:e},t))});Me.__docgenInfo={description:"",methods:[],displayName:"CalendarDays",props:{weekDays:{required:!0,tsType:{name:"Array",elements:[{name:"string"}],raw:"string[]"},description:""}}};const jt=n=>x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},x.createElement("rect",{x:.375,y:.375,width:23.25,height:23.25,rx:5.625,stroke:"#DFE1E8",strokeWidth:.75}),x.createElement("path",{d:"M14.25 8.92045L13.5675 8.25L9.75 12L13.5675 15.75L14.25 15.0795L11.115 12L14.25 8.92045Z",fill:"#525866"})),Gt=n=>x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},x.createElement("rect",{x:-.375,y:.375,width:23.25,height:23.25,rx:5.625,transform:"matrix(-1 0 0 1 23.25 0)",stroke:"#DFE1E8",strokeWidth:.75}),x.createElement("path",{d:"M9.75 8.92045L10.4325 8.25L14.25 12L10.4325 15.75L9.75 15.0795L12.885 12L9.75 8.92045Z",fill:"#525866"})),ke=({currentMonth:n,onClickPrev:e,onClickNext:t})=>_(le,{styles:{justify:"space-between",align:"center",gap:"1rem"},children:[f(jt,{onClick:e,width:24,height:24,css:{cursor:"pointer"}}),f(j,{tag:"body6",css:{textAlign:"center",fontWeight:500},children:H(n,"yyyy.MM")}),f(Gt,{onClick:t,width:24,height:24,css:{cursor:"pointer"}})]});ke.__docgenInfo={description:"",methods:[],displayName:"CalendarHeader",props:{currentMonth:{required:!0,tsType:{name:"Date"},description:""},onClickPrev:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onClickNext:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}}};const zt={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},Jt=(n,e,t)=>{let r;const a=zt[n];return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?r+" 후":r+" 전":r},Ut={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},Kt={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Zt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},en={date:E({formats:Ut,defaultWidth:"full"}),time:E({formats:Kt,defaultWidth:"full"}),dateTime:E({formats:Zt,defaultWidth:"full"})},tn={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},nn=(n,e,t,r)=>tn[n],rn={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},an={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},sn={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},on={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},cn={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},un={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},dn=(n,e)=>{const t=Number(n);switch(String(e==null?void 0:e.unit)){case"minute":case"second":return String(t);case"date":return t+"일";default:return t+"번째"}},ln={ordinalNumber:dn,era:D({values:rn,defaultWidth:"wide"}),quarter:D({values:an,defaultWidth:"wide",argumentCallback:n=>n-1}),month:D({values:sn,defaultWidth:"wide"}),day:D({values:on,defaultWidth:"wide"}),dayPeriod:D({values:cn,defaultWidth:"wide",formattingValues:un,defaultFormattingWidth:"wide"})},mn=/^(\d+)(일|번째)?/i,hn=/\d+/i,fn={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},gn={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},yn={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},wn={any:[/1/i,/2/i,/3/i,/4/i]},bn={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},Dn={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},vn={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},Mn={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},kn={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},Pn={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},xn={ordinalNumber:we({matchPattern:mn,parsePattern:hn,valueCallback:n=>parseInt(n,10)}),era:v({matchPatterns:fn,defaultMatchWidth:"wide",parsePatterns:gn,defaultParseWidth:"any"}),quarter:v({matchPatterns:yn,defaultMatchWidth:"wide",parsePatterns:wn,defaultParseWidth:"any",valueCallback:n=>n+1}),month:v({matchPatterns:bn,defaultMatchWidth:"wide",parsePatterns:Dn,defaultParseWidth:"any"}),day:v({matchPatterns:vn,defaultMatchWidth:"wide",parsePatterns:Mn,defaultParseWidth:"any"}),dayPeriod:v({matchPatterns:kn,defaultMatchWidth:"any",parsePatterns:Pn,defaultParseWidth:"any"})},Wn={code:"ko",formatDistance:Jt,formatLong:en,formatRelative:nn,localize:ln,match:xn,options:{weekStartsOn:0,firstWeekContainsDate:1}},On=n=>{const[e,t]=x.useState(n),r=S(new Date),a=Array.from({length:7},(k,P)=>H(Ne(r,P),"EEEEE",{locale:Wn})),i=B(e),s=Q(e),o=S(i),c=Be(s),l=Ae({start:o,end:c});return{weekDays:a,currentMonthAllDates:l,currentMonth:e,toNextMonth:()=>{t(ge(e,1))},toPrevMonth:()=>{t(Bt(e,1))}}},Pe=({selectedDate:n,endDate:e,setSelectedDate:t,variant:r})=>{const{currentMonth:a,currentMonthAllDates:i,weekDays:s,toNextMonth:o,toPrevMonth:c}=On(n);return _("div",{css:Te,children:[f(ke,{currentMonth:a,onClickPrev:c,onClickNext:o}),f(Me,{weekDays:s}),f(ve,{currentMonth:a,currentMonthAllDates:i,selectedDate:n,endDate:e,setSelectedDate:t,variant:r})]})};Pe.__docgenInfo={description:"",methods:[],displayName:"DatePickerCalendar",props:{selectedDate:{required:!0,tsType:{name:"Date"},description:""},endDate:{required:!0,tsType:{name:"union",raw:"Date | null",elements:[{name:"Date"},{name:"null"}]},description:""},setSelectedDate:{required:!0,tsType:{name:"signature",type:"function",raw:"(date: Date) => void",signature:{arguments:[{type:{name:"Date"},name:"date"}],return:{name:"void"}}},description:""},variant:{required:!0,tsType:{name:"union",raw:"'single' | 'range'",elements:[{name:"literal",value:"'single'"},{name:"literal",value:"'range'"}]},description:""}}};const Sn=M({color:h.colors.gray_800}),xe=({selectedDate:n,endDate:e,onClick:t,variant:r})=>_(le,{styles:{direction:"row",align:"center",gap:"0.4rem"},children:[f(U,{value:n?H(n,"yyyy.MM.dd"):"",placeholder:"YYYY.MM.DD",readOnly:!0,onClick:t,css:{cursor:"pointer",width:"100%",...h.text.body08,"::placeholder":{...h.text.body08}}}),r==="range"&&_(We,{children:[f(j,{tag:"body6",css:Sn,children:"~"}),f(U,{value:e?H(e,"yyyy.MM.dd"):"",placeholder:"YYYY.MM.DD",readOnly:!0,onClick:t,css:{cursor:"pointer",width:"100%",...h.text.body08,"::placeholder":{...h.text.body08}}})]})]});xe.__docgenInfo={description:"",methods:[],displayName:"DatePickerTrigger",props:{selectedDate:{required:!0,tsType:{name:"union",raw:"Date | null",elements:[{name:"Date"},{name:"null"}]},description:""},endDate:{required:!1,tsType:{name:"union",raw:"Date | null",elements:[{name:"Date"},{name:"null"}]},description:""},onClick:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},variant:{required:!0,tsType:{name:"union",raw:"'single' | 'range'",elements:[{name:"literal",value:"'single'"},{name:"literal",value:"'range'"}]},description:""}}};const pn=n=>M({display:"flex",flexDirection:"column",gap:"1.2rem",position:"relative",width:n}),Tn=n=>{const[e,t]=x.useState(null),[r,a]=x.useState(null);return{selectedDate:e,endDate:r,handleSelectDate:o=>{n==="range"?!e||e&&r?(t(o),a(null)):At(o,e)?(a(e),t(o)):a(o):t(o)},clearDates:()=>{t(null),a(null)}}},X=({label:n,variant:e,triggerWidth:t="10.3rem"})=>{const{isOpen:r,close:a,toggle:i}=pe(),s=Se(a),{selectedDate:o,endDate:c,handleSelectDate:l,clearDates:m}=Tn(e),g=()=>{!r&&o&&c&&m(),i()};return _("div",{ref:s,css:pn(t),children:[n&&f(Oe,{id:n,children:n}),f(xe,{selectedDate:o,endDate:c,onClick:g,variant:e}),r&&f(Pe,{selectedDate:o||new Date,endDate:c,setSelectedDate:l,variant:e})]})};X.__docgenInfo={description:"",methods:[],displayName:"DatePicker",props:{label:{required:!1,tsType:{name:"string"},description:""},variant:{required:!0,tsType:{name:"union",raw:"'single' | 'range'",elements:[{name:"literal",value:"'single'"},{name:"literal",value:"'range'"}]},description:""},triggerWidth:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'10.3rem'",computed:!1}}}};const Qn={title:"Common/DatePicker",component:X,parameters:{layout:"centered"},tags:["autodocs"]},N={render:()=>f(X,{label:"데이트피커",variant:"single",triggerWidth:"10.3rem"})},L={render:()=>f(X,{label:"데이트피커",variant:"range",triggerWidth:"10.3rem"})};var ie,se,oe;N.parameters={...N.parameters,docs:{...(ie=N.parameters)==null?void 0:ie.docs,source:{originalSource:`{ +import{c as M,a as f,j as _,F as We}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{t as h}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";import{T as j}from"./Text-9RJ8J0eA.js";import{r as x}from"./index-Bs6nXyGp.js";import{F as le}from"./Flex-DMgVUl98.js";import{I as U}from"./Input-B4nzLRzl.js";import{L as Oe}from"./Label-BPjTE68Y.js";import{u as Se}from"./useOutsideClick-CEpXkKWK.js";import{u as pe}from"./useOverlay-COpOggKz.js";import"./extends-ClQVCWlZ.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./SupportingText-C1HExhiQ.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="5b981815-b998-4bed-8eaf-0f25679fbb6b",n._sentryDebugIdIdentifier="sentry-dbid-5b981815-b998-4bed-8eaf-0f25679fbb6b")}catch{}})();const G={borderTop:`1px solid ${h.colors.key_500}`,borderBottom:`1px solid ${h.colors.key_500}`,backgroundColor:h.colors.key_100},me={marginBottom:"0.3rem",marginTop:"0.3rem"},Te=M({display:"flex",flexDirection:"column",gap:"1.6rem",position:"absolute",top:"calc(100% + 0.4rem)",left:0,width:"25.6rem",zIndex:h.zIndex.overlayMiddle,padding:"1.6rem",border:`1px solid ${h.colors.gray_300}`,borderRadius:"8px",backgroundColor:h.colors.white}),he=M({display:"grid",gridTemplateColumns:"repeat(7, 1fr)",textAlign:"center"}),Ye=M({...G,margin:"0.3rem 0",padding:"0.3rem 0",borderLeft:"none",borderRight:"none",borderRadius:"0"}),Ee=M({...me,...G,marginLeft:"0.3rem",marginRight:"0",paddingRight:"0.3rem",borderLeft:`1px solid ${h.colors.key_500}`,borderRight:"none",borderTopLeftRadius:"50%",borderBottomLeftRadius:"50%",borderTopRightRadius:"0",borderBottomRightRadius:"0"}),Ce=M({...me,...G,marginLeft:"0",marginRight:"0.3rem",paddingLeft:"0.3rem",borderRight:`1px solid ${h.colors.key_500}`,borderLeft:"none",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderTopLeftRadius:"0",borderBottomLeftRadius:"0"}),_e=M({alignContent:"center",height:"2.6rem",margin:"0.3rem",borderRadius:"50%",border:"none",color:h.colors.gray_600,cursor:"pointer",...h.text.body08,fontWeight:500}),p=M({borderRadius:"50%",border:`1px solid ${h.colors.key_500}`,backgroundColor:h.colors.key_100}),qe=M({"&:hover, &:focus":{backgroundColor:h.colors.gray_100}}),fe=6048e5,Fe=864e5,K=Symbol.for("constructDateFrom");function b(n,e){return typeof n=="function"?n(e):n&&typeof n=="object"&&K in n?n[K](e):n instanceof Date?new n.constructor(e):new Date(e)}function d(n,e){return b(e||n,n)}function Ne(n,e,t){const r=d(n,t==null?void 0:t.in);return isNaN(e)?b(n,NaN):(e&&r.setDate(r.getDate()+e),r)}function ge(n,e,t){const r=d(n,t==null?void 0:t.in);if(isNaN(e))return b(n,NaN);if(!e)return r;const a=r.getDate(),i=b(n,r.getTime());i.setMonth(r.getMonth()+e+1,0);const s=i.getDate();return a>=s?i:(r.setFullYear(i.getFullYear(),i.getMonth(),a),r)}let Le={};function q(){return Le}function S(n,e){var o,c,l,m;const t=q(),r=(e==null?void 0:e.weekStartsOn)??((c=(o=e==null?void 0:e.locale)==null?void 0:o.options)==null?void 0:c.weekStartsOn)??t.weekStartsOn??((m=(l=t.locale)==null?void 0:l.options)==null?void 0:m.weekStartsOn)??0,a=d(n,e==null?void 0:e.in),i=a.getDay(),s=(i=i.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function Z(n){const e=d(n),t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+n-+t}function I(n,...e){const t=b.bind(null,e.find(r=>typeof r=="object"));return e.map(t)}function $(n,e){const t=d(n,e==null?void 0:e.in);return t.setHours(0,0,0,0),t}function Re(n,e,t){const[r,a]=I(t==null?void 0:t.in,n,e),i=$(r),s=$(a),o=+i-Z(i),c=+s-Z(s);return Math.round((o-c)/Fe)}function $e(n,e){const t=ye(n,e),r=b(n,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),R(r)}function T(n,e,t){const[r,a]=I(t==null?void 0:t.in,n,e);return+$(r)==+$(a)}function He(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function Ie(n){return!(!He(n)&&typeof n!="number"||isNaN(+d(n)))}function Q(n,e){const t=d(n,e==null?void 0:e.in),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function Xe(n,e){const[t,r]=I(n,e.start,e.end);return{start:t,end:r}}function Ae(n,e){const{start:t,end:r}=Xe(e==null?void 0:e.in,n);let a=+t>+r;const i=a?+t:+r,s=a?r:t;s.setHours(0,0,0,0);let o=1;const c=[];for(;+s<=i;)c.push(b(t,s)),s.setDate(s.getDate()+o),s.setHours(0,0,0,0);return a?c.reverse():c}function B(n,e){const t=d(n,e==null?void 0:e.in);return t.setDate(1),t.setHours(0,0,0,0),t}function Qe(n,e){const t=d(n,e==null?void 0:e.in);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}function Be(n,e){var o,c;const t=q(),r=t.weekStartsOn??((c=(o=t.locale)==null?void 0:o.options)==null?void 0:c.weekStartsOn)??0,a=d(n,e==null?void 0:e.in),i=a.getDay(),s=(i{let r;const a=Ve[n];return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function E(n){return(e={})=>{const t=e.width?String(e.width):n.defaultWidth;return n.formats[t]||n.formats[n.defaultWidth]}}const Ge={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ze={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Je={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ue={date:E({formats:Ge,defaultWidth:"full"}),time:E({formats:ze,defaultWidth:"full"}),dateTime:E({formats:Je,defaultWidth:"full"})},Ke={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ze=(n,e,t,r)=>Ke[n];function D(n){return(e,t)=>{const r=t!=null&&t.context?String(t.context):"standalone";let a;if(r==="formatting"&&n.formattingValues){const s=n.defaultFormattingWidth||n.defaultWidth,o=t!=null&&t.width?String(t.width):s;a=n.formattingValues[o]||n.formattingValues[s]}else{const s=n.defaultWidth,o=t!=null&&t.width?String(t.width):n.defaultWidth;a=n.values[o]||n.values[s]}const i=n.argumentCallback?n.argumentCallback(e):e;return a[i]}}const et={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},tt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},nt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},rt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},at={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},it={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},st=(n,e)=>{const t=Number(n),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},ot={ordinalNumber:st,era:D({values:et,defaultWidth:"wide"}),quarter:D({values:tt,defaultWidth:"wide",argumentCallback:n=>n-1}),month:D({values:nt,defaultWidth:"wide"}),day:D({values:rt,defaultWidth:"wide"}),dayPeriod:D({values:at,defaultWidth:"wide",formattingValues:it,defaultFormattingWidth:"wide"})};function v(n){return(e,t={})=>{const r=t.width,a=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],i=e.match(a);if(!i)return null;const s=i[0],o=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],c=Array.isArray(o)?ut(o,g=>g.test(s)):ct(o,g=>g.test(s));let l;l=n.valueCallback?n.valueCallback(c):c,l=t.valueCallback?t.valueCallback(l):l;const m=e.slice(s.length);return{value:l,rest:m}}}function ct(n,e){for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&e(n[t]))return t}function ut(n,e){for(let t=0;t{const r=e.match(n.matchPattern);if(!r)return null;const a=r[0],i=e.match(n.parsePattern);if(!i)return null;let s=n.valueCallback?n.valueCallback(i[0]):i[0];s=t.valueCallback?t.valueCallback(s):s;const o=e.slice(a.length);return{value:s,rest:o}}}const dt=/^(\d+)(th|st|nd|rd)?/i,lt=/\d+/i,mt={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ht={any:[/^b/i,/^(a|c)/i]},ft={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},gt={any:[/1/i,/2/i,/3/i,/4/i]},yt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},wt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},bt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Dt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},vt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Mt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},kt={ordinalNumber:we({matchPattern:dt,parsePattern:lt,valueCallback:n=>parseInt(n,10)}),era:v({matchPatterns:mt,defaultMatchWidth:"wide",parsePatterns:ht,defaultParseWidth:"any"}),quarter:v({matchPatterns:ft,defaultMatchWidth:"wide",parsePatterns:gt,defaultParseWidth:"any",valueCallback:n=>n+1}),month:v({matchPatterns:yt,defaultMatchWidth:"wide",parsePatterns:wt,defaultParseWidth:"any"}),day:v({matchPatterns:bt,defaultMatchWidth:"wide",parsePatterns:Dt,defaultParseWidth:"any"}),dayPeriod:v({matchPatterns:vt,defaultMatchWidth:"any",parsePatterns:Mt,defaultParseWidth:"any"})},Pt={code:"en-US",formatDistance:je,formatLong:Ue,formatRelative:Ze,localize:ot,match:kt,options:{weekStartsOn:0,firstWeekContainsDate:1}};function xt(n,e){const t=d(n,e==null?void 0:e.in);return Re(t,Qe(t))+1}function Wt(n,e){const t=d(n,e==null?void 0:e.in),r=+R(t)-+$e(t);return Math.round(r/fe)+1}function be(n,e){var m,g,k,P;const t=d(n,e==null?void 0:e.in),r=t.getFullYear(),a=q(),i=(e==null?void 0:e.firstWeekContainsDate)??((g=(m=e==null?void 0:e.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??a.firstWeekContainsDate??((P=(k=a.locale)==null?void 0:k.options)==null?void 0:P.firstWeekContainsDate)??1,s=b((e==null?void 0:e.in)||n,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const o=S(s,e),c=b((e==null?void 0:e.in)||n,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const l=S(c,e);return+t>=+o?r+1:+t>=+l?r:r-1}function Ot(n,e){var o,c,l,m;const t=q(),r=(e==null?void 0:e.firstWeekContainsDate)??((c=(o=e==null?void 0:e.locale)==null?void 0:o.options)==null?void 0:c.firstWeekContainsDate)??t.firstWeekContainsDate??((m=(l=t.locale)==null?void 0:l.options)==null?void 0:m.firstWeekContainsDate)??1,a=be(n,e),i=b((e==null?void 0:e.in)||n,0);return i.setFullYear(a,0,r),i.setHours(0,0,0,0),S(i,e)}function St(n,e){const t=d(n,e==null?void 0:e.in),r=+S(t,e)-+Ot(t,e);return Math.round(r/fe)+1}function u(n,e){const t=n<0?"-":"",r=Math.abs(n).toString().padStart(e,"0");return t+r}const W={y(n,e){const t=n.getFullYear(),r=t>0?t:1-t;return u(e==="yy"?r%100:r,e.length)},M(n,e){const t=n.getMonth();return e==="M"?String(t+1):u(t+1,2)},d(n,e){return u(n.getDate(),e.length)},a(n,e){const t=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(n,e){return u(n.getHours()%12||12,e.length)},H(n,e){return u(n.getHours(),e.length)},m(n,e){return u(n.getMinutes(),e.length)},s(n,e){return u(n.getSeconds(),e.length)},S(n,e){const t=e.length,r=n.getMilliseconds(),a=Math.trunc(r*Math.pow(10,t-3));return u(a,e.length)}},Y={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ee={G:function(n,e,t){const r=n.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});case"GGGG":default:return t.era(r,{width:"wide"})}},y:function(n,e,t){if(e==="yo"){const r=n.getFullYear(),a=r>0?r:1-r;return t.ordinalNumber(a,{unit:"year"})}return W.y(n,e)},Y:function(n,e,t,r){const a=be(n,r),i=a>0?a:1-a;if(e==="YY"){const s=i%100;return u(s,2)}return e==="Yo"?t.ordinalNumber(i,{unit:"year"}):u(i,e.length)},R:function(n,e){const t=ye(n);return u(t,e.length)},u:function(n,e){const t=n.getFullYear();return u(t,e.length)},Q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return u(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return u(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,e,t){const r=n.getMonth();switch(e){case"M":case"MM":return W.M(n,e);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(n,e,t){const r=n.getMonth();switch(e){case"L":return String(r+1);case"LL":return u(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(n,e,t,r){const a=St(n,r);return e==="wo"?t.ordinalNumber(a,{unit:"week"}):u(a,e.length)},I:function(n,e,t){const r=Wt(n);return e==="Io"?t.ordinalNumber(r,{unit:"week"}):u(r,e.length)},d:function(n,e,t){return e==="do"?t.ordinalNumber(n.getDate(),{unit:"date"}):W.d(n,e)},D:function(n,e,t){const r=xt(n);return e==="Do"?t.ordinalNumber(r,{unit:"dayOfYear"}):u(r,e.length)},E:function(n,e,t){const r=n.getDay();switch(e){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});case"EEEE":default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(n,e,t,r){const a=n.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return u(i,2);case"eo":return t.ordinalNumber(i,{unit:"day"});case"eee":return t.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(a,{width:"short",context:"formatting"});case"eeee":default:return t.day(a,{width:"wide",context:"formatting"})}},c:function(n,e,t,r){const a=n.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return u(i,e.length);case"co":return t.ordinalNumber(i,{unit:"day"});case"ccc":return t.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(a,{width:"narrow",context:"standalone"});case"cccccc":return t.day(a,{width:"short",context:"standalone"});case"cccc":default:return t.day(a,{width:"wide",context:"standalone"})}},i:function(n,e,t){const r=n.getDay(),a=r===0?7:r;switch(e){case"i":return String(a);case"ii":return u(a,e.length);case"io":return t.ordinalNumber(a,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});case"iiii":default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(n,e,t){const a=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(n,e,t){const r=n.getHours();let a;switch(r===12?a=Y.noon:r===0?a=Y.midnight:a=r/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(n,e,t){const r=n.getHours();let a;switch(r>=17?a=Y.evening:r>=12?a=Y.afternoon:r>=4?a=Y.morning:a=Y.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(n,e,t){if(e==="ho"){let r=n.getHours()%12;return r===0&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return W.h(n,e)},H:function(n,e,t){return e==="Ho"?t.ordinalNumber(n.getHours(),{unit:"hour"}):W.H(n,e)},K:function(n,e,t){const r=n.getHours()%12;return e==="Ko"?t.ordinalNumber(r,{unit:"hour"}):u(r,e.length)},k:function(n,e,t){let r=n.getHours();return r===0&&(r=24),e==="ko"?t.ordinalNumber(r,{unit:"hour"}):u(r,e.length)},m:function(n,e,t){return e==="mo"?t.ordinalNumber(n.getMinutes(),{unit:"minute"}):W.m(n,e)},s:function(n,e,t){return e==="so"?t.ordinalNumber(n.getSeconds(),{unit:"second"}):W.s(n,e)},S:function(n,e){return W.S(n,e)},X:function(n,e,t){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return ne(r);case"XXXX":case"XX":return O(r);case"XXXXX":case"XXX":default:return O(r,":")}},x:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"x":return ne(r);case"xxxx":case"xx":return O(r);case"xxxxx":case"xxx":default:return O(r,":")}},O:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+te(r,":");case"OOOO":default:return"GMT"+O(r,":")}},z:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+te(r,":");case"zzzz":default:return"GMT"+O(r,":")}},t:function(n,e,t){const r=Math.trunc(+n/1e3);return u(r,e.length)},T:function(n,e,t){return u(+n,e.length)}};function te(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),a=Math.trunc(r/60),i=r%60;return i===0?t+String(a):t+String(a)+e+u(i,2)}function ne(n,e){return n%60===0?(n>0?"-":"+")+u(Math.abs(n)/60,2):O(n,e)}function O(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),a=u(Math.trunc(r/60),2),i=u(r%60,2);return t+a+e+i}const re=(n,e)=>{switch(n){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},De=(n,e)=>{switch(n){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},pt=(n,e)=>{const t=n.match(/(P+)(p+)?/)||[],r=t[1],a=t[2];if(!a)return re(n,e);let i;switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",re(r,e)).replace("{{time}}",De(a,e))},Tt={p:De,P:pt},Yt=/^D+$/,Et=/^Y+$/,Ct=["D","DD","YY","YYYY"];function _t(n){return Yt.test(n)}function qt(n){return Et.test(n)}function Ft(n,e,t){const r=Nt(n,e,t);if(console.warn(r),Ct.includes(n))throw new RangeError(r)}function Nt(n,e,t){const r=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${e}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Lt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Rt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$t=/^'([^]*?)'?$/,Ht=/''/g,It=/[a-zA-Z]/;function H(n,e,t){var m,g,k,P,F,C,z,J;const r=q(),a=(t==null?void 0:t.locale)??r.locale??Pt,i=(t==null?void 0:t.firstWeekContainsDate)??((g=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??r.firstWeekContainsDate??((P=(k=r.locale)==null?void 0:k.options)==null?void 0:P.firstWeekContainsDate)??1,s=(t==null?void 0:t.weekStartsOn)??((C=(F=t==null?void 0:t.locale)==null?void 0:F.options)==null?void 0:C.weekStartsOn)??r.weekStartsOn??((J=(z=r.locale)==null?void 0:z.options)==null?void 0:J.weekStartsOn)??0,o=d(n,t==null?void 0:t.in);if(!Ie(o))throw new RangeError("Invalid time value");let c=e.match(Rt).map(w=>{const y=w[0];if(y==="p"||y==="P"){const A=Tt[y];return A(w,a.formatLong)}return w}).join("").match(Lt).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const y=w[0];if(y==="'")return{isToken:!1,value:Xt(w)};if(ee[y])return{isToken:!0,value:w};if(y.match(It))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:w}});a.localize.preprocessor&&(c=a.localize.preprocessor(o,c));const l={firstWeekContainsDate:i,weekStartsOn:s,locale:a};return c.map(w=>{if(!w.isToken)return w.value;const y=w.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&qt(y)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&_t(y))&&Ft(y,e,String(n));const A=ee[y[0]];return A(o,y,a.localize,l)}).join("")}function Xt(n){const e=n.match($t);return e?e[1].replace(Ht,"'"):n}function ae(n,e){return d(n,e==null?void 0:e.in).getDay()}function At(n,e){return+d(n)<+d(e)}function V(n,e,t){const[r,a]=I(t==null?void 0:t.in,n,e);return r.getFullYear()===a.getFullYear()&&r.getMonth()===a.getMonth()}function Qt(n,e,t){const r=+d(n,t==null?void 0:t.in),[a,i]=[+d(e.start,t==null?void 0:t.in),+d(e.end,t==null?void 0:t.in)].sort((s,o)=>s-o);return r>=a&&r<=i}function Bt(n,e,t){return ge(n,-e,t)}const Vt=(n,e,t,r)=>{const a=C=>e&&t&&Qt(C,{start:e,end:t})&&V(r,C),i=e&&T(e,n),s=t&&T(t,n),o=i&&s,c=a(n),l=ae(n)===0&&c,m=ae(n)===6&&c,g=T(n,B(r)),k=T(n,Q(r)),P=e&&T(e,Q(r)),F=t&&T(t,B(r));if(P&&c||F&&c)return p;if(V(r,n))if(t&&e){if(o||g&&s||k&&i)return p;if(i||l&&c||g&&c)return Ee;if(s||m&&c||k&&c)return Ce;if(c)return Ye}else return i?p:qe;return null},ve=({currentMonth:n,currentMonthAllDates:e,selectedDate:t,endDate:r,setSelectedDate:a})=>f("div",{css:he,children:e.map((i,s)=>f("div",{role:"button",tabIndex:0,"aria-label":`${i.getMonth()+1}월 ${i.getDate()}일`,css:[_e,Vt(i,t,r,n)],onClick:()=>a(i),onKeyDown:o=>{o.key==="Enter"&&a(i)},children:V(n,i)?i.getDate():""},s))});ve.__docgenInfo={description:"",methods:[],displayName:"CalendarDates",props:{currentMonth:{required:!0,tsType:{name:"Date"},description:""},currentMonthAllDates:{required:!0,tsType:{name:"Array",elements:[{name:"Date"}],raw:"Date[]"},description:""},selectedDate:{required:!0,tsType:{name:"union",raw:"Date | null",elements:[{name:"Date"},{name:"null"}]},description:""},endDate:{required:!0,tsType:{name:"union",raw:"Date | null",elements:[{name:"Date"},{name:"null"}]},description:""},setSelectedDate:{required:!0,tsType:{name:"signature",type:"function",raw:"(date: Date) => void",signature:{arguments:[{type:{name:"Date"},name:"date"}],return:{name:"void"}}},description:""},variant:{required:!0,tsType:{name:"union",raw:"'single' | 'range'",elements:[{name:"literal",value:"'single'"},{name:"literal",value:"'range'"}]},description:""}}};const Me=({weekDays:n})=>f("div",{css:he,children:n.map((e,t)=>f(j,{tag:"body8",role:"button",css:{fontWeight:500},tabIndex:0,children:e},t))});Me.__docgenInfo={description:"",methods:[],displayName:"CalendarDays",props:{weekDays:{required:!0,tsType:{name:"Array",elements:[{name:"string"}],raw:"string[]"},description:""}}};const jt=n=>x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},x.createElement("rect",{x:.375,y:.375,width:23.25,height:23.25,rx:5.625,stroke:"#DFE1E8",strokeWidth:.75}),x.createElement("path",{d:"M14.25 8.92045L13.5675 8.25L9.75 12L13.5675 15.75L14.25 15.0795L11.115 12L14.25 8.92045Z",fill:"#525866"})),Gt=n=>x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},x.createElement("rect",{x:-.375,y:.375,width:23.25,height:23.25,rx:5.625,transform:"matrix(-1 0 0 1 23.25 0)",stroke:"#DFE1E8",strokeWidth:.75}),x.createElement("path",{d:"M9.75 8.92045L10.4325 8.25L14.25 12L10.4325 15.75L9.75 15.0795L12.885 12L9.75 8.92045Z",fill:"#525866"})),ke=({currentMonth:n,onClickPrev:e,onClickNext:t})=>_(le,{styles:{justify:"space-between",align:"center",gap:"1rem"},children:[f(jt,{onClick:e,width:24,height:24,css:{cursor:"pointer"}}),f(j,{tag:"body6",css:{textAlign:"center",fontWeight:500},children:H(n,"yyyy.MM")}),f(Gt,{onClick:t,width:24,height:24,css:{cursor:"pointer"}})]});ke.__docgenInfo={description:"",methods:[],displayName:"CalendarHeader",props:{currentMonth:{required:!0,tsType:{name:"Date"},description:""},onClickPrev:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onClickNext:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}}};const zt={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},Jt=(n,e,t)=>{let r;const a=zt[n];return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?r+" 후":r+" 전":r},Ut={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},Kt={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Zt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},en={date:E({formats:Ut,defaultWidth:"full"}),time:E({formats:Kt,defaultWidth:"full"}),dateTime:E({formats:Zt,defaultWidth:"full"})},tn={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},nn=(n,e,t,r)=>tn[n],rn={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},an={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},sn={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},on={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},cn={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},un={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},dn=(n,e)=>{const t=Number(n);switch(String(e==null?void 0:e.unit)){case"minute":case"second":return String(t);case"date":return t+"일";default:return t+"번째"}},ln={ordinalNumber:dn,era:D({values:rn,defaultWidth:"wide"}),quarter:D({values:an,defaultWidth:"wide",argumentCallback:n=>n-1}),month:D({values:sn,defaultWidth:"wide"}),day:D({values:on,defaultWidth:"wide"}),dayPeriod:D({values:cn,defaultWidth:"wide",formattingValues:un,defaultFormattingWidth:"wide"})},mn=/^(\d+)(일|번째)?/i,hn=/\d+/i,fn={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},gn={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},yn={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},wn={any:[/1/i,/2/i,/3/i,/4/i]},bn={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},Dn={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},vn={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},Mn={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},kn={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},Pn={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},xn={ordinalNumber:we({matchPattern:mn,parsePattern:hn,valueCallback:n=>parseInt(n,10)}),era:v({matchPatterns:fn,defaultMatchWidth:"wide",parsePatterns:gn,defaultParseWidth:"any"}),quarter:v({matchPatterns:yn,defaultMatchWidth:"wide",parsePatterns:wn,defaultParseWidth:"any",valueCallback:n=>n+1}),month:v({matchPatterns:bn,defaultMatchWidth:"wide",parsePatterns:Dn,defaultParseWidth:"any"}),day:v({matchPatterns:vn,defaultMatchWidth:"wide",parsePatterns:Mn,defaultParseWidth:"any"}),dayPeriod:v({matchPatterns:kn,defaultMatchWidth:"any",parsePatterns:Pn,defaultParseWidth:"any"})},Wn={code:"ko",formatDistance:Jt,formatLong:en,formatRelative:nn,localize:ln,match:xn,options:{weekStartsOn:0,firstWeekContainsDate:1}},On=n=>{const[e,t]=x.useState(n),r=S(new Date),a=Array.from({length:7},(k,P)=>H(Ne(r,P),"EEEEE",{locale:Wn})),i=B(e),s=Q(e),o=S(i),c=Be(s),l=Ae({start:o,end:c});return{weekDays:a,currentMonthAllDates:l,currentMonth:e,toNextMonth:()=>{t(ge(e,1))},toPrevMonth:()=>{t(Bt(e,1))}}},Pe=({selectedDate:n,endDate:e,setSelectedDate:t,variant:r})=>{const{currentMonth:a,currentMonthAllDates:i,weekDays:s,toNextMonth:o,toPrevMonth:c}=On(n);return _("div",{css:Te,children:[f(ke,{currentMonth:a,onClickPrev:c,onClickNext:o}),f(Me,{weekDays:s}),f(ve,{currentMonth:a,currentMonthAllDates:i,selectedDate:n,endDate:e,setSelectedDate:t,variant:r})]})};Pe.__docgenInfo={description:"",methods:[],displayName:"DatePickerCalendar",props:{selectedDate:{required:!0,tsType:{name:"Date"},description:""},endDate:{required:!0,tsType:{name:"union",raw:"Date | null",elements:[{name:"Date"},{name:"null"}]},description:""},setSelectedDate:{required:!0,tsType:{name:"signature",type:"function",raw:"(date: Date) => void",signature:{arguments:[{type:{name:"Date"},name:"date"}],return:{name:"void"}}},description:""},variant:{required:!0,tsType:{name:"union",raw:"'single' | 'range'",elements:[{name:"literal",value:"'single'"},{name:"literal",value:"'range'"}]},description:""}}};const Sn=M({color:h.colors.gray_800}),xe=({selectedDate:n,endDate:e,onClick:t,variant:r})=>_(le,{styles:{direction:"row",align:"center",gap:"0.4rem"},children:[f(U,{value:n?H(n,"yyyy.MM.dd"):"",placeholder:"YYYY.MM.DD",readOnly:!0,onClick:t,css:{cursor:"pointer",width:"100%",...h.text.body08,"::placeholder":{...h.text.body08}}}),r==="range"&&_(We,{children:[f(j,{tag:"body6",css:Sn,children:"~"}),f(U,{value:e?H(e,"yyyy.MM.dd"):"",placeholder:"YYYY.MM.DD",readOnly:!0,onClick:t,css:{cursor:"pointer",width:"100%",...h.text.body08,"::placeholder":{...h.text.body08}}})]})]});xe.__docgenInfo={description:"",methods:[],displayName:"DatePickerTrigger",props:{selectedDate:{required:!0,tsType:{name:"union",raw:"Date | null",elements:[{name:"Date"},{name:"null"}]},description:""},endDate:{required:!1,tsType:{name:"union",raw:"Date | null",elements:[{name:"Date"},{name:"null"}]},description:""},onClick:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},variant:{required:!0,tsType:{name:"union",raw:"'single' | 'range'",elements:[{name:"literal",value:"'single'"},{name:"literal",value:"'range'"}]},description:""}}};const pn=n=>M({display:"flex",flexDirection:"column",gap:"1.2rem",position:"relative",width:n}),Tn=n=>{const[e,t]=x.useState(null),[r,a]=x.useState(null);return{selectedDate:e,endDate:r,handleSelectDate:o=>{n==="range"?!e||e&&r?(t(o),a(null)):At(o,e)?(a(e),t(o)):a(o):t(o)},clearDates:()=>{t(null),a(null)}}},X=({label:n,variant:e,triggerWidth:t="10.3rem"})=>{const{isOpen:r,close:a,toggle:i}=pe(),s=Se(a),{selectedDate:o,endDate:c,handleSelectDate:l,clearDates:m}=Tn(e),g=()=>{!r&&o&&c&&m(),i()};return _("div",{ref:s,css:pn(t),children:[n&&f(Oe,{id:n,children:n}),f(xe,{selectedDate:o,endDate:c,onClick:g,variant:e}),r&&f(Pe,{selectedDate:o||new Date,endDate:c,setSelectedDate:l,variant:e})]})};X.__docgenInfo={description:"",methods:[],displayName:"DatePicker",props:{label:{required:!1,tsType:{name:"string"},description:""},variant:{required:!0,tsType:{name:"union",raw:"'single' | 'range'",elements:[{name:"literal",value:"'single'"},{name:"literal",value:"'range'"}]},description:""},triggerWidth:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'10.3rem'",computed:!1}}}};const Qn={title:"Common/DatePicker",component:X,parameters:{layout:"centered"},tags:["autodocs"]},N={render:()=>f(X,{label:"데이트피커",variant:"single",triggerWidth:"10.3rem"})},L={render:()=>f(X,{label:"데이트피커",variant:"range",triggerWidth:"10.3rem"})};var ie,se,oe;N.parameters={...N.parameters,docs:{...(ie=N.parameters)==null?void 0:ie.docs,source:{originalSource:`{ render: () => }`,...(oe=(se=N.parameters)==null?void 0:se.docs)==null?void 0:oe.source}}};var ce,ue,de;L.parameters={...L.parameters,docs:{...(ce=L.parameters)==null?void 0:ce.docs,source:{originalSource:`{ render: () => diff --git a/assets/DeleteModal.stories-CtogTm-O.js b/assets/DeleteModal.stories-CtogTm-O.js new file mode 100644 index 000000000..a06b22363 --- /dev/null +++ b/assets/DeleteModal.stories-CtogTm-O.js @@ -0,0 +1,17 @@ +import{c as f,j as h,a as r,F as B}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{r as o}from"./index-Bs6nXyGp.js";import{r as ye}from"./index-BHRAuaXy.js";import{f as Ce,r as De,b as we}from"./toast-C2VtnlsU.js";import{t as g}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";import{B as _}from"./Button-D1nFQNRa.js";import{F as b}from"./Flex-DMgVUl98.js";import{I as A}from"./Input-B4nzLRzl.js";import{T as L}from"./Text-9RJ8J0eA.js";import{S as be}from"./SupportingText-C1HExhiQ.js";import{H as X}from"./Heading-FD1nScCb.js";import{c as Z,u as ke,Q as Se,e as Ee,f as ve,g as xe,h as F,i as W,j as Me,k as Ie,D as Te,l as Le,m as ee,s as Ve,n as _e,a as Be,d as Fe,b as He,W as Ne}from"./WorkSpaceName-DaJLJb5F.js";import{e as qe}from"./file-CAHT9y9p.js";import{u as $}from"./QueryClientProvider-BufXlfUi.js";import{c as te}from"./react-H2B7brmx.js";import{S as Re}from"./Select-0cv1h5wR.js";import{u as Oe}from"./useOutsideClick-CEpXkKWK.js";import{u as Ae}from"./useOverlay-COpOggKz.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"../sb-preview/runtime.js";import"./Button.style-C-RQzMju.js";import"./Label-BPjTE68Y.js";import"./path-8_1M5Knd.js";import"./scroll-BeA4HMGQ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="557ea673-10c8-46e1-9386-4d3d1d159b32",e._sentryDebugIdIdentifier="sentry-dbid-557ea673-10c8-46e1-9386-4d3d1d159b32")}catch{}})();const Ze=f({display:"flex",justifyContent:"center",alignItems:"center",position:"fixed",top:0,left:0,zIndex:g.zIndex.overlayHigh,width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.5)",animation:`${Ce} 0.2s ease-in`}),We=f({display:"block",position:"fixed",top:"50%",left:"50%",zIndex:g.zIndex.overlayTop,padding:"3.2rem 2rem",borderRadius:"16px",border:"none",outline:"none",background:g.colors.white,transform:"translate(-50%, -50%)"}),$e=({isOpen:e,children:n,onClose:t})=>{const a=o.useCallback(s=>{s.key==="Escape"&&(t==null||t())},[t]);return o.useEffect(()=>{if(e){const s=document.body.clientWidth;document.body.style.overflow="hidden",document.body.style.maxWidth=`${s}px`,window.addEventListener("keydown",a)}return()=>{document.body.style.overflow="auto",document.body.style.maxWidth="100vw",window.removeEventListener("keydown",a)}},[e,a]),e&&ye.createPortal(h(B,{children:[r("div",{"aria-hidden":!0,onClick:()=>t==null?void 0:t(),css:Ze}),r("dialog",{onClick:s=>s.stopPropagation(),css:We,children:n})]}),document.body)},Ue=e=>f({width:"32rem",marginTop:"2.4rem",cursor:"pointer",...e&&{"&:hover":{color:g.colors.gray_500}}}),je=f({color:g.colors.gray_700,fontWeight:400}),ze=f({color:g.colors.gray_500,fontSize:"2rem"}),Pe=f({marginTop:"0.8rem",...g.text.body07,fontWeight:400}),N={START:"시작 기간이 입력되지 않았습니다.",END:"종료 기간이 입력되지 않았습니다.",OTHER:"유효한 기간이 아닙니다. 확인 후 다시 입력해주세요."},Qe=e=>e.length!==8?e:`${e.slice(0,4)}-${e.slice(4,6)}-${e.slice(6,8)}`,ne=e=>{if(!/^\d{4}-\d{2}-\d{2}$/.test(e))return!1;const[t,a,s]=e.split("-").map(Number),i=new Date(t,a-1,s),l=t>=1900;return i.getFullYear()===t&&i.getMonth()===a-1&&i.getDate()===s&&l},P=e=>{if(ne(e)){const[n,t,a]=e.split("-").map(Number);return new Date(n,t-1,a)}return null},Q=e=>e.replace(/\./g,"-"),Ye=(e="",n="",t,a,s)=>{const[i,l]=o.useState({startDate:e,endDate:n}),[C,c]=o.useState({isStartDateValid:!0,isEndDateValid:!0,isStartDateError:!1,isEndDateError:!1,errorMessage:""}),[d,p]=o.useState(!1),D=(y,k,S,m)=>{const v=k.replace(/\D/g,""),E=v.length<=8?Qe(v):v;l(u=>{const w={...u,[y]:E};return t(w.startDate),a(w.endDate),w});const x=v.length===8&&ne(E);c(u=>({...u,[m?"isStartDateValid":"isEndDateValid"]:x})),v?E.length===10?!x||!S?(c(u=>({...u,[m?"isStartDateError":"isEndDateError"]:!0,errorMessage:N.OTHER})),p(!1),s(!1)):I(E,i.startDate,i.endDate,m):(c(u=>({...u,[m?"isStartDateError":"isEndDateError"]:!1,errorMessage:""})),p(!1),s(!1)):(c(u=>({...u,[m?"isStartDateError":"isEndDateError"]:!0,errorMessage:m?N.START:N.END})),p(!1),s(!1))},I=(y,k,S,m)=>{const v=P(m?y:k),E=P(m?S:y);if(v&&E){const x=v<=E;p(x),s(x),c(x?{isStartDateValid:!0,isEndDateValid:!0,isStartDateError:!1,isEndDateError:!1,errorMessage:""}:{isStartDateValid:!0,isEndDateValid:!0,isStartDateError:m,isEndDateError:!m,errorMessage:N.OTHER})}else p(!0),s(!0),c({isStartDateValid:!0,isEndDateValid:!0,isStartDateError:!1,isEndDateError:!1,errorMessage:""})};return{dates:i,validation:C,isDateRangeValid:d,handleChange:D}},re=({startDate:e,endDate:n,onSetStartDate:t,onSetEndDate:a,onSetIsDateRangeValid:s})=>{const{dates:i,validation:l,handleChange:C}=Ye(e,n,d=>t(d),d=>a(d),s),c=d=>f` + text-align: ${d.length===10?"center":"left"}; + `;return h(B,{children:[h(b,{styles:{direction:"row",align:"center",gap:"1.2rem"},children:[r(A,{placeholder:"YYYY-MM-DD",css:[{width:"10.3rem"},c(i.startDate)],value:i.startDate,onChange:d=>C("startDate",d.target.value,l.isEndDateValid,!0),maxLength:10,isError:l.isStartDateError}),r("p",{css:ze,children:"~"}),r(A,{placeholder:"YYYY-MM-DD",css:[{width:"10.3rem"},c(i.endDate)],value:i.endDate,onChange:d=>C("endDate",d.target.value,l.isStartDateValid,!1),maxLength:10,isError:l.isEndDateError})]}),r("div",{css:{height:"1.6rem"},children:(l.isStartDateError||l.isEndDateError)&&r(be,{isError:!0,css:Pe,children:l.errorMessage})})]})};re.__docgenInfo={description:"",methods:[],displayName:"BlockDate",props:{startDate:{required:!0,tsType:{name:"string"},description:""},endDate:{required:!0,tsType:{name:"string"},description:""},onSetStartDate:{required:!0,tsType:{name:"signature",type:"function",raw:"(date: string) => void",signature:{arguments:[{type:{name:"string"},name:"date"}],return:{name:"void"}}},description:""},onSetEndDate:{required:!0,tsType:{name:"signature",type:"function",raw:"(date: string) => void",signature:{arguments:[{type:{name:"string"},name:"date"}],return:{name:"void"}}},description:""},onSetIsDateRangeValid:{required:!0,tsType:{name:"signature",type:"function",raw:"(isValid: boolean) => void",signature:{arguments:[{type:{name:"boolean"},name:"isValid"}],return:{name:"void"}}},description:""}}};const Ke=f({display:"flex",justifyContent:"center",alignItems:"center",width:"5rem",height:"5rem",borderRadius:"100%",border:`1.2px solid ${g.colors.gray_400}`,overflow:"hidden",cursor:"pointer","&:hover":{backgroundColor:g.colors.blue_100}}),Ge=f({border:`1.6px solid ${g.colors.key_500}`,backgroundColor:g.colors.blue_100}),Je=f({display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",gap:"1.2rem"}),Xe=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.78009 4C8.13009 4 7.65009 4.61 7.81009 5.24L8.50009 8H8.52009C5.95009 8 3.80009 9.95 3.54009 12.5L3.17009 16.22C3.05009 17.37 3.34009 18.53 3.98009 19.49L4.10009 19.66C4.66009 20.49 5.59009 21 6.60009 21H17.3901C18.3901 21 19.3301 20.5 19.8901 19.66L20.0101 19.49C20.6501 18.53 20.9401 17.37 20.8201 16.22L20.4501 12.5C20.1901 9.94 18.0401 8 15.4701 8H15.4901L16.1801 5.24C16.3401 4.61 15.8601 4 15.2101 4H8.77009H8.78009Z",fill:"#353F9B"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5002 11.0498C13.0002 11.1598 13.3602 11.4298 13.6102 11.7698C13.9102 12.1898 14.0002 12.6698 14.0002 12.9998H13.0002C13.0002 12.8298 12.9402 12.5598 12.7902 12.3498C12.6602 12.1698 12.4302 11.9998 12.0002 11.9998C11.5702 11.9998 11.3402 12.1698 11.2102 12.3498C11.1102 12.4898 11.0502 12.6598 11.0202 12.8098L13.8602 15.6498L13.9402 15.7298L13.9802 15.8398C14.0902 16.1798 14.1402 16.7198 13.8402 17.1998C13.5802 17.6098 13.1402 17.8798 12.5002 17.9598V18.9898H11.5002V17.9598C10.8702 17.8698 10.4502 17.5998 10.2102 17.1798C9.98018 16.7698 9.99018 16.2998 10.0002 16.0698C10.0002 16.0398 10.0002 16.0198 10.0002 15.9998H11.0002V16.0798C11.0002 16.3498 11.0002 16.5398 11.0902 16.6998C11.1502 16.7998 11.3102 17.0098 12.0002 17.0098C12.6902 17.0098 12.9202 16.7998 12.9902 16.6798C13.0602 16.5598 13.0802 16.4098 13.0502 16.2698L10.1502 13.3698L10.0002 13.2198V13.0098C10.0002 12.6798 10.0902 12.1998 10.3902 11.7798C10.6302 11.4398 11.0002 11.1698 11.5002 11.0598V10.0098H12.5002V11.0598V11.0498Z",fill:"#D9D9D9"})),et=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M0.820312 14.8467L10.1536 11.5133L4.15365 5.51332L0.820312 14.8467ZM7.72031 10.9667L3.02031 12.6467L4.70031 7.94665L7.72031 10.9667Z",fill:"white"}),o.createElement("path",{d:"M9.17365 8.53332L12.9003 4.80665C13.227 4.47999 13.7536 4.47999 14.0803 4.80665L14.4736 5.19999L15.1803 4.49332L14.787 4.09999C14.0736 3.38665 12.907 3.38665 12.1936 4.09999L8.46698 7.82665L9.17365 8.53332Z",fill:"white"}),o.createElement("path",{d:"M6.19365 4.76665L5.80031 5.15999L6.50698 5.86665L6.90031 5.47332C7.61365 4.75999 7.61365 3.59332 6.90031 2.87999L6.50698 2.48665L5.80031 3.19999L6.19365 3.59332C6.51365 3.91332 6.51365 4.44665 6.19365 4.76665Z",fill:"white"}),o.createElement("path",{d:"M10.8603 8.09999L9.80031 9.15999L10.507 9.86665L11.567 8.80665C11.8936 8.47999 12.4203 8.47999 12.747 8.80665L13.8203 9.87999L14.527 9.17332L13.4536 8.09999C12.7336 7.38665 11.5736 7.38665 10.8603 8.09999Z",fill:"white"}),o.createElement("path",{d:"M9.52698 4.09999L7.13365 6.49332L7.84031 7.19999L10.2336 4.80665C10.947 4.09332 10.947 2.92665 10.2336 2.21332L9.17365 1.15332L8.46698 1.85999L9.52698 2.91999C9.84698 3.24665 9.84698 3.77999 9.52698 4.09999Z",fill:"white"})),tt=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.6667 1.99999H9.88C9.6 1.22666 8.86667 0.666656 8 0.666656C7.13333 0.666656 6.4 1.22666 6.12 1.99999H3.33333C2.6 1.99999 2 2.59999 2 3.33332V14C2 14.7333 2.6 15.3333 3.33333 15.3333H12.6667C13.4 15.3333 14 14.7333 14 14V3.33332C14 2.59999 13.4 1.99999 12.6667 1.99999ZM8 1.99999C8.36667 1.99999 8.66667 2.29999 8.66667 2.66666C8.66667 3.03332 8.36667 3.33332 8 3.33332C7.63333 3.33332 7.33333 3.03332 7.33333 2.66666C7.33333 2.29999 7.63333 1.99999 8 1.99999ZM12.6667 14H3.33333V3.33332H4.66667V5.33332H11.3333V3.33332H12.6667V14Z",fill:"white"})),nt=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M9.33334 2.66668V6.00001C9.33334 6.74668 9.58 7.44001 10 8.00001H6C6.43334 7.42668 6.66667 6.73334 6.66667 6.00001V2.66668H9.33334ZM11.3333 1.33334H4.66667C4.3 1.33334 4 1.63334 4 2.00001C4 2.36668 4.3 2.66668 4.66667 2.66668H5.33334V6.00001C5.33334 7.10668 4.44 8.00001 3.33334 8.00001V9.33334H7.31334V14L7.98 14.6667L8.64667 14V9.33334H12.6667V8.00001C11.56 8.00001 10.6667 7.10668 10.6667 6.00001V2.66668H11.3333C11.7 2.66668 12 2.36668 12 2.00001C12 1.63334 11.7 1.33334 11.3333 1.33334Z",fill:"white"})),rt=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("g",{id:"Property 1=study"},o.createElement("g",{id:"Vector"},o.createElement("path",{d:"M14 2.66668C13.26 2.43334 12.4467 2.33334 11.6667 2.33334C10.3667 2.33334 8.96667 2.60001 8.00001 3.33334C7.03334 2.60001 5.63334 2.33334 4.33334 2.33334C3.03334 2.33334 1.63334 2.60001 0.666672 3.33334V13.1C0.666672 13.2667 0.833338 13.4333 1.00001 13.4333C1.06667 13.4333 1.10001 13.4 1.16667 13.4C2.06667 12.9667 3.36667 12.6667 4.33334 12.6667C5.63334 12.6667 7.03334 12.9333 8.00001 13.6667C8.90001 13.1 10.5333 12.6667 11.6667 12.6667C12.7667 12.6667 13.9 12.8667 14.8333 13.3667C14.9 13.4 14.9333 13.4 15 13.4C15.1667 13.4 15.3333 13.2333 15.3333 13.0667V3.33334C14.9333 3.03334 14.5 2.83334 14 2.66668ZM14 11.6667C13.2667 11.4333 12.4667 11.3333 11.6667 11.3333C10.5333 11.3333 8.90001 11.7667 8.00001 12.3333V4.66668C8.90001 4.10001 10.5333 3.66668 11.6667 3.66668C12.4667 3.66668 13.2667 3.76668 14 4.00001V11.6667Z",fill:"white"}),o.createElement("path",{d:"M11.6667 6.33334C12.2533 6.33334 12.82 6.39334 13.3333 6.50668V5.49334C12.8067 5.39334 12.24 5.33334 11.6667 5.33334C10.5333 5.33334 9.50667 5.52668 8.66667 5.88668V6.99334C9.42001 6.56668 10.4667 6.33334 11.6667 6.33334Z",fill:"white"}),o.createElement("path",{d:"M8.66667 7.66001V8.76668C9.42001 8.34001 10.4667 8.10668 11.6667 8.10668C12.2533 8.10668 12.82 8.16668 13.3333 8.28001V7.26668C12.8067 7.16668 12.24 7.10668 11.6667 7.10668C10.5333 7.10668 9.50667 7.30668 8.66667 7.66001Z",fill:"white"}),o.createElement("path",{d:"M11.6667 8.88668C10.5333 8.88668 9.50667 9.08001 8.66667 9.44001V10.5467C9.42001 10.12 10.4667 9.88668 11.6667 9.88668C12.2533 9.88668 12.82 9.94668 13.3333 10.06V9.04668C12.8067 8.94001 12.24 8.88668 11.6667 8.88668Z",fill:"white"})))),ot=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M3.1001 4.1C3.1001 3.5 3.5001 3 4.1001 3H19.9001C20.5001 3 21.0001 3.5 20.9001 4.1L20.0001 12H4.0001L3.1001 4.1Z",fill:"#D9D9D9"}),o.createElement("path",{d:"M4.1001 5.1C4.1001 4.5 4.5001 4 5.1001 4H18.9001C19.5001 4 20.0001 4.5 19.9001 5.1L19.1001 12H4.9001L4.1001 5.1Z",fill:"#353F9B"}),o.createElement("path",{d:"M4.00021 12H20.0002L20.9002 19.9C21.0002 20.5 20.5002 21 19.9002 21H4.10021C3.50021 21 3.00021 20.5 3.10021 19.9L4.00021 12Z",fill:"#D9D9D9"}),o.createElement("path",{d:"M8.5 19H15.5C15.8 19 16 19.2 16 19.5C16 19.8 15.8 20 15.5 20H8.5C8.2 20 8 19.8 8 19.5C8 19.2 8.2 19 8.5 19Z",fill:"#353F9B"})),oe=[{name:"MEETING",icon:r(tt,{width:24,height:24,css:{flexShrink:0}})},{name:"ACCOUNTING",icon:r(Xe,{width:24,height:24,css:{flexShrink:0}})},{name:"TASK",icon:r(ot,{width:24,height:24,css:{flexShrink:0}})},{name:"NOTICE",icon:r(nt,{width:24,height:24,css:{flexShrink:0}})},{name:"STUDY",icon:r(rt,{width:24,height:24,css:{flexShrink:0}})},{name:"EVENT",icon:r(et,{width:24,height:24,css:{flexShrink:0}})}],ae=({selectedBlockIcon:e,onBlockIconSelect:n})=>{const t=a=>{n(e===a?-1:a)};return r("div",{css:Je,children:oe.map((a,s)=>r("div",{css:[Ke,e===s&&Ge],onClick:()=>t(s),children:a.icon},s))})};ae.__docgenInfo={description:"",methods:[],displayName:"BlockIcon",props:{selectedBlockIcon:{required:!0,tsType:{name:"number"},description:""},onBlockIconSelect:{required:!0,tsType:{name:"signature",type:"function",raw:"(index: number) => void",signature:{arguments:[{type:{name:"number"},name:"index"}],return:{name:"void"}}},description:""}}};const R=({title:e,children:n})=>h(b,{tag:"div",styles:{direction:"column",align:"flex-start",gap:"1.2rem",width:"36.5rem"},children:[r(X,{tag:"H6",css:{fontWeight:500},children:e}),n]});R.__docgenInfo={description:"",methods:[],displayName:"BlockBox",props:{title:{required:!0,tsType:{name:"string"},description:""},children:{required:!0,tsType:{name:"ReactNode"},description:""}}};const se=o.createContext(void 0),U=()=>{const e=o.useContext(se);if(!e)throw new Error("Error useBlockContext");return e},ie=({children:e})=>{const[n,t]=o.useState(1),[a,s]=o.useState({blockName:"",blockType:"",blockColor:"",startDate:"",endDate:""}),i=o.useCallback(()=>t(c=>c+1),[]),l=o.useCallback(()=>{t(1),s({blockName:"",blockType:"",blockColor:"",startDate:"",endDate:""})},[]),C=o.useCallback(c=>{s(d=>({...d,...c}))},[]);return r(se.Provider,{value:{step:n,formData:a,setFormData:C,nextStep:i,reset:l},children:e})};ie.__docgenInfo={description:"",methods:[],displayName:"BlockProvider",props:{children:{required:!0,tsType:{name:"ReactNode"},description:""}}};const le=({isVisible:e})=>{const[n,t]=o.useState(-1),[a,s]=o.useState(!1),{formData:i,setFormData:l,nextStep:C}=U(),c=D=>{D.target.value.length<=25&&l({blockName:D.target.value})},d=i.blockName.trim()!==""&&n!==-1&&i.startDate.length===10&&i.endDate.length===10&&a,p=()=>{if(d){const D=oe[n].name;l({blockType:D,startDate:i.startDate,endDate:i.endDate}),C()}};return e?h(b,{tag:"section",styles:{direction:"column",justify:"space-between",align:"center",height:"55.11rem",gap:"2.4rem"},children:[r(Z,{step:"block",title:"블록 생성하기",info:"타임라인에 생성할 블록 정보를 입력해주세요"}),h(b,{styles:{direction:"column",align:"center",gap:"2.4rem",paddingLeft:"6.8rem",paddingRight:"6.8rem"},children:[r(R,{title:"블록 아이콘",children:r(ae,{selectedBlockIcon:n,onBlockIconSelect:t})}),r(R,{title:"블록명",children:h(b,{styles:{align:"flex-end",direction:"column",gap:"0.8rem",width:"100%"},children:[r(A,{placeholder:"활동,행사명 등",css:{width:"100%"},value:i.blockName,onChange:c}),h(L,{tag:"body7",css:je,children:[i.blockName.length," / 25"]})]})}),r(R,{title:"기간",children:r(b,{styles:{align:"flex-start",direction:"column",padding:"0",width:"100%"},children:r(re,{startDate:i.startDate,endDate:i.endDate,onSetStartDate:D=>l({startDate:D}),onSetEndDate:D=>l({endDate:D}),onSetIsDateRangeValid:s})})})]}),r(_,{variant:"primary",size:"medium",css:Ue(d),disabled:!d,onClick:p,children:"다음"})]}):null};le.__docgenInfo={description:"",methods:[],displayName:"BlockModal",props:{isVisible:{required:!0,tsType:{name:"boolean"},description:""}}};const at=f({borderRadius:"8px",border:`1px dashed ${g.colors.gray_400}`,color:g.colors.gray_500});f({color:g.colors.gray_500});const st=f({padding:"0",width:"6.4rem",textDecoration:"underline",...g.text.body06,fontWeight:600,color:g.colors.gray_500});function it(e,n){return ke({...e,enabled:!0,suspense:!0,throwOnError:Ee,placeholderData:void 0},Se)}const lt=({files:e,onFilesChange:n,setFileUrls:t,setUploadStatus:a})=>{const s=o.useRef(null),{mutateAsync:i}=ve(),l=o.useCallback(async p=>{if(!p)return;const I=Array.from(p).filter(S=>!e.some(m=>m.name===S.name&&m.size===S.size));n([...e,...I]);const y={},k={};for(let S=0;S({...w,...k}));const u=E==null?void 0:E.url;if(m&&u){const w=Date.now(),M=await i({presignedUrl:u,file:m}),T=Date.now()-w,V=Math.max(0,2e3-T);setTimeout(()=>{M&&(y[x]=M,k[x]=!0,a(O=>({...O,...k})),t(O=>({...O,...y})))},V)}}s.current&&(s.current.value="")},[e,n,i,t,a]),C=o.useCallback(p=>{l(p.target.files)},[l]),c=o.useCallback(p=>{p.preventDefault()},[]),d=o.useCallback(p=>{p.preventDefault(),l(p.dataTransfer.files)},[l]);return{fileInputRef:s,handleFileChange:C,handleDragOver:c,handleDrop:d}},ce=({files:e,onFilesChange:n,setFileUrls:t,setUploadStatus:a})=>{const{fileInputRef:s,handleFileChange:i,handleDragOver:l,handleDrop:C}=lt({files:e,onFilesChange:n,setFileUrls:t,setUploadStatus:a});return r(b,{styles:{direction:"column",justify:"center",align:"center",padding:"3.2rem 6.35rem",width:"100%"},css:at,onDragOver:l,onDrop:c=>C(c),children:h(b,{tag:"form",styles:{direction:"column",align:"center",justify:"center"},children:[r("input",{type:"file",multiple:!0,style:{display:"none"},ref:s,onChange:i}),r(L,{tag:"body6",children:"업로드할 파일을 여기로 드래그 하세요"}),h(b,{styles:{direction:"row",align:"center",justify:"center",gap:"0.3rem"},css:{marginTop:"1.6rem",whiteSpace:"nowrap"},children:[r(L,{tag:"body6",children:"또는"}),r(_,{variant:"text",css:st,onClick:()=>{var c;return(c=s.current)==null?void 0:c.click()},children:"여기를 클릭"}),r(L,{tag:"body6",children:"하여"})]}),r(L,{tag:"body6",css:{marginTop:"0.5rem"},children:"업로드할 파일을 선택하세요"})]})})};ce.__docgenInfo={description:"",methods:[],displayName:"BlockAdd",props:{files:{required:!0,tsType:{name:"Array",elements:[{name:"File"}],raw:"File[]"},description:""},onFilesChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(files: File[]) => void",signature:{arguments:[{type:{name:"Array",elements:[{name:"File"}],raw:"File[]"},name:"files"}],return:{name:"void"}}},description:""},setFileUrls:{required:!0,tsType:{name:"Dispatch",elements:[{name:"SetStateAction",elements:[{name:"Files"}],raw:"SetStateAction"}],raw:"Dispatch>"},description:""},setUploadStatus:{required:!0,tsType:{name:"Dispatch",elements:[{name:"SetStateAction",elements:[{name:"signature",type:"object",raw:"{ [key: string]: boolean }",signature:{properties:[{key:{name:"string"},value:{name:"boolean",required:!0}}]}}],raw:"SetStateAction<{ [key: string]: boolean }>"}],raw:"Dispatch>"},description:""}}};const ct=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M13.8334 7.5V15.8333H7.16675V7.5H13.8334ZM12.5834 2.5H8.41675L7.58341 3.33333H4.66675V5H16.3334V3.33333H13.4167L12.5834 2.5ZM15.5001 5.83333H5.50008V15.8333C5.50008 16.75 6.25008 17.5 7.16675 17.5H13.8334C14.7501 17.5 15.5001 16.75 15.5001 15.8333V5.83333Z",fill:"#56585D"})),dt=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("g",{clipPath:"url(#clip0_1676_1227)"},o.createElement("path",{opacity:.2,d:"M10 19.6875C4.66155 19.6875 0.3125 15.3385 0.3125 10C0.3125 4.66155 4.66155 0.3125 10 0.3125C15.3385 0.3125 19.6875 4.66155 19.6875 10C19.6875 15.3385 15.3385 19.6875 10 19.6875ZM10 2.47615C5.85753 2.47615 2.48702 5.84666 2.48702 9.98913C2.48702 14.1316 5.85753 17.5021 10 17.5021C14.1425 17.5021 17.513 14.1316 17.513 9.98913C17.513 5.84666 14.1425 2.47615 10 2.47615Z",fill:"#909090"}),o.createElement("path",{d:"M18.6271 10.9375C18.0381 10.9375 17.5561 10.455 17.5561 9.86535C17.5561 5.78046 14.2358 2.4568 10.155 2.4568C9.5659 2.4568 9.0625 1.97433 9.0625 1.38465C9.0625 0.794968 9.52306 0.3125 10.1121 0.3125H10.1443C15.4139 0.3125 19.6875 4.6011 19.6875 9.86535C19.6875 10.455 19.2055 10.9375 18.6164 10.9375H18.6271Z",fill:"#909090"})),o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_1676_1227"},o.createElement("rect",{width:20,height:20,fill:"white"})))),de=({size:e=20})=>r(dt,{width:e,height:e,css:{animation:`${De} 1s linear infinite`,fill:`${g.colors.key_500}`}});de.__docgenInfo={description:"",methods:[],displayName:"Spinner",props:{size:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"20",computed:!1}}}};const ut=f({borderRadius:"8px",border:`1px solid ${g.colors.gray_300}`,width:"37.5rem"}),mt=f({color:g.colors.gray_800,fontWeight:500,maxWidth:"30rem"}),ue=({title:e,onDelete:n,isUploading:t})=>h(b,{styles:{direction:"row",align:"center",justify:"space-between",padding:"1.5rem 1.2rem"},css:ut,children:[r(L,{tag:"body6",css:mt,children:e}),t?r(de,{size:20}):r(ct,{width:20,height:20,css:{cursor:"pointer"},onClick:n})]});ue.__docgenInfo={description:"",methods:[],displayName:"BlockItem",props:{title:{required:!0,tsType:{name:"string"},description:""},onDelete:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},isUploading:{required:!0,tsType:{name:"boolean"},description:""}}};const pt=f({display:"flex",flexDirection:"column",maxHeight:"18rem",width:"38.5rem",gap:"0.8rem",position:"relative",paddingRight:"1rem",overflowY:"auto",boxSizing:"content-box","&::-webkit-scrollbar":{width:"1rem"},"&::-webkit-scrollbar-thumb":{backgroundColor:g.colors.gray_300,borderRadius:"4px"},"&::-webkit-scrollbar-track":{backgroundColor:"transparent"}}),gt=f({flexDirection:"column",justifyContent:"space-between",alignItems:"center",height:"55.11rem",paddingLeft:"6.8rem",paddingRight:"6.8rem",gap:"2.4rem"}),ht=async(e,n,t)=>(await F.post(`/time-blocks/team/${e}/time-block`,t,{params:{type:n}})).data,ft=async(e,n)=>await F.delete(`/time-blocks/team/${e}/time-block/${n}`),yt=(e,n)=>{const t=$();return W({mutationFn:a=>ht(e,n,a),onSuccess:()=>{t.invalidateQueries({queryKey:["timeBlock"]})}})},Y=["#FFE6E8","#F8E2CB","#C4F2E5","#DCD8FA","#E2E8F8","#F8E1F5","#D3EFFA"],Ct=()=>{const e=Math.floor(Math.random()*Y.length);return Y[e]},Dt=async()=>(await F.get("/members/teams")).data.data,wt=()=>Me({queryKey:["clubInfo"],queryFn:()=>Dt()}),bt=te(e=>({teamId:Number(localStorage.getItem("teamId")),actions:{setTeamId:n=>e({teamId:n})}})),kt=()=>bt(e=>e.actions),St=()=>{const{setTeamId:e}=kt(),{data:n,isSuccess:t}=wt();if(t&&!localStorage.getItem("teamId")){const a=n.belongTeamGetResponses[0].id;return localStorage.setItem("teamId",a.toString()),e(a),a}return Number(localStorage.getItem("teamId"))},H=te(e=>({isOpen:!1,contentType:null,modalData:null,actions:{openModal:(n,t=null)=>{e({isOpen:!0,contentType:n,modalData:t})},closeModal:()=>e({isOpen:!1,contentType:null,modalData:null})}})),Et=()=>H(e=>e.isOpen),vt=()=>H(e=>e.contentType),xt=()=>H(e=>e.modalData),Mt=()=>H(n=>n.actions.openModal),j=()=>H(n=>n.actions.closeModal),me=({isVisible:e})=>{const n=St(),{formData:t,reset:a}=U(),s=j(),[i,l]=o.useState([]),[C,c]=o.useState({}),[d,p]=o.useState({}),[D,I]=o.useState(!0),{mutate:y}=yt(n,"executive"),{mutate:k}=Ie(),{createToast:S}=we();o.useEffect(()=>{const u=i.length===0||i.length>0&&Object.values(d).every(w=>w);I(u)},[d,i.length]);const m=u=>{l(w=>{const M=u.filter(T=>!w.some(V=>V.name===T.name&&V.size===T.size));return[...w,...M]}),I(!1)},v=u=>{const w=i.find(M=>M.name===u);w&&k({fileName:w.name},{onSuccess:()=>{l(M=>M.filter(V=>V.name!==u)),c(M=>{const T={...M};return delete T[u],T}),p(M=>{const T={...M};return delete T[u],T})}})};if(!e)return null;const E={name:t.blockName,color:Ct(),startDate:Q(t.startDate),endDate:Q(t.endDate),blockType:t.blockType,files:C},x=()=>{y(E,{onSuccess:()=>{S("활동 블록이 생성되었습니다","success"),s(),a()}})};return h(b,{tag:"section",css:gt,children:[r(Z,{step:"upload",title:"블록 생성하기",info:"해당 블록에 업로드할 문서를 선택해주세요"}),h(b,{styles:{direction:"column",align:"flex-start",grow:"1",width:"100%",gap:"2.4rem"},children:[r(ce,{files:i,onFilesChange:m,setFileUrls:c,setUploadStatus:p}),r("div",{className:"scroll",css:pt,children:i.map(u=>r(ue,{title:u.name,onDelete:()=>v(u.name),isUploading:!d[u.name]},u.name))})]}),r(_,{variant:"primary",size:"medium",css:{width:"32rem"},onClick:x,disabled:!D,children:"저장"})]})};me.__docgenInfo={description:"",methods:[],displayName:"UploadModal",props:{isVisible:{required:!0,tsType:{name:"boolean"},description:""}}};const pe=()=>{const{step:e}=U();return h(B,{children:[r(le,{isVisible:e===1}),r(me,{isVisible:e===2})]})};pe.__docgenInfo={description:"",methods:[],displayName:"BlockFlow"};const It=()=>{const e=$();return W({mutationFn:({teamId:t,blockId:a})=>ft(t,a),onSuccess:()=>{e.invalidateQueries({queryKey:["timeBlock"]}),e.invalidateQueries({queryKey:["document"]})}})},Tt=async(e,n)=>await F.delete(`/documents/team/${e}/document/${n}`),Lt=()=>{const e=$();return W({mutationFn:({teamId:t,documentId:a})=>Tt(t,a),onSuccess:()=>{e.invalidateQueries({queryKey:["document"]})}})},Vt=f({"&:hover":{backgroundColor:g.colors.key_200},width:"15.8rem"}),_t=f({"&:hover":{backgroundColor:g.colors.blue_100},width:"15.8rem"}),ge=()=>{const e=xt(),n=j(),{mutate:t}=It(),{mutate:a}=Lt();if(!e)return null;const{teamId:s,itemId:i,itemType:l}=e,d=l==="block"?()=>{s&&i&&t({teamId:s,blockId:i},{onSuccess:()=>{n()}})}:()=>{s&&i&&a({teamId:s,documentId:i},{onSuccess:()=>{n()}})};return!l||!s||!i?null:h(b,{styles:{direction:"column",align:"center",justify:"center",paddingRight:"9.35rem",paddingLeft:"9.35rem"},children:[r(X,{tag:"H5",css:{fontWeight:600},children:Te[l.toUpperCase()]}),r(L,{tag:"body4",css:{marginTop:"1rem",fontWeight:400},children:Le[l.toUpperCase()]}),h(b,{styles:{direction:"row",align:"center",justify:"center",gap:"0.8rem",marginTop:"2.4rem"},children:[r(_,{variant:"secondary",size:"large",onClick:n,css:_t,children:"취소"}),r(_,{variant:"primary",size:"large",onClick:d,css:Vt,children:"삭제"})]})]})};ge.__docgenInfo={description:"",methods:[],displayName:"DeleteModal"};const Bt=async()=>(await F.get("/teams/category")).data,Ft=(e=!0)=>it({queryKey:["category"],queryFn:()=>Bt(),select:n=>{var a;const t=((a=n==null?void 0:n.data)==null?void 0:a.categories)||[];return e?t:t.filter(s=>s!=="전체")}}),he=({isVisible:e})=>{const{isOpen:n,close:t,toggle:a}=Ae(),{setFormData:s,nextStep:i}=ee(),l=Oe(t),[C,c]=o.useState(""),{data:d}=Ft(!1);if(o.useEffect(()=>{const y=k=>{var m;if(!l.current||!(k.target instanceof HTMLElement))return;!l.current.contains(k.target)&&!((m=k.target)!=null&&m.className.includes("select-container"))&&(t==null||t())};return n?window.addEventListener("mousedown",y):window.removeEventListener("mousedown",y),()=>{window.removeEventListener("mousedown",y)}},[n,t,l]),!e)return null;const p=y=>{c(y),s({category:y}),t==null||t()},D=()=>{i()},I=C.trim().length>0;return h(b,{tag:"section",styles:{direction:"column",justify:"center",align:"center"},css:Ve,children:[r(Z,{step:"category",title:"새로운 워크 스페이스 생성하기",info:"팀 카테고리를 선택해주세요."}),r("div",{css:{width:"32rem",marginTop:"2.4rem"},ref:l,children:r(Re,{css:{"& ul":{maxHeight:"25rem"}},placeholder:"선택",variant:"outline",isOpen:n,onTrigger:a,onSelect:p,options:d.map(y=>({value:y})),className:"select-container"})}),r(_,{variant:"primary",size:"medium",css:_e(I),disabled:!I,onClick:D,children:"다음"})]})};he.__docgenInfo={description:"",methods:[],displayName:"WorkSpaceCategory",props:{isVisible:{required:!0,tsType:{name:"boolean"},description:""}}};const fe=()=>{const{step:e}=ee();return h(B,{children:[r(Be,{isVisible:e==1}),r(he,{isVisible:e==2}),r(Fe,{isVisible:e==3}),r(He,{isVisible:e==4})]})};fe.__docgenInfo={description:"",methods:[],displayName:"WorkSpaceFlow"};const z=()=>{const e=Et(),n=vt(),t=j(),a=()=>{switch(n){case"create-workspace":return r(Ne,{children:r(fe,{})});case"create-block":return r(ie,{children:r(pe,{})});case"delete":return r(ge,{});default:return null}};return!e||!n?null:r($e,{isOpen:e,onClose:t,children:a()})};z.__docgenInfo={description:"",methods:[],displayName:"ModalContainer"};const ln={title:"Shared/DeleteModal",component:z,parameters:{layout:"centered"},args:{isOpen:!1},argTypes:{children:{control:!1}}},q={render:()=>{const e=Mt();return h(B,{children:[r("button",{onClick:()=>e("delete",{teamId:1,itemId:1,itemType:"block"}),children:"Open Delete Modal"}),r(z,{})]})}};var K,G,J;q.parameters={...q.parameters,docs:{...(K=q.parameters)==null?void 0:K.docs,source:{originalSource:`{ + render: () => { + const openModal = useOpenModal(); + return <> + + + ; + } +}`,...(J=(G=q.parameters)==null?void 0:G.docs)==null?void 0:J.source}}};const cn=["Delete"];export{q as Delete,cn as __namedExportsOrder,ln as default}; diff --git a/assets/DeleteModal.stories-DLLfBuro.js b/assets/DeleteModal.stories-DLLfBuro.js deleted file mode 100644 index 3b101e680..000000000 --- a/assets/DeleteModal.stories-DLLfBuro.js +++ /dev/null @@ -1,17 +0,0 @@ -import{c as f,j as g,a as n,F as B}from"./emotion-react.browser.esm-DVCGPw0o.js";import{r as o}from"./index-B4Z6PsAH.js";import{r as fe}from"./index-C_edrjnw.js";import{f as ye,r as Ce,b as De}from"./toast-izQVgPOM.js";import{t as h}from"./theme-DwD7F4-e.js";import"./iframe-BnffqoK7.js";import{B as _}from"./Button-aaJpuFF7.js";import{F as b}from"./Flex-CcBQZiMH.js";import{I as Z}from"./Input-_bQPWmrw.js";import{T as L}from"./Text-BdNMkr7S.js";import{S as we}from"./SupportingText-_IVHGPES.js";import{H as X}from"./Heading-BCYRSNXR.js";import{c as A,u as be,Q as ke,e as Ee,f as ve,g as Se,h as R,i as W,j as xe,D as Me,k as Te,l as ee,s as Ie,m as Le,a as Ve,d as _e,b as Be,W as He}from"./WorkSpaceName-BrOTZTuV.js";import{e as Fe}from"./file-o2e5cVZ2.js";import{u as $}from"./QueryClientProvider-CVYF4Mhz.js";import{c as Ne}from"./react-CVxNFIA5.js";import{S as qe}from"./Select-MF-KBPgn.js";import{u as Re}from"./useOutsideClick-COUwwguf.js";import{u as Oe}from"./useOverlay-jcCv9x_t.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-XnwbWaTF.js";import"../sb-preview/runtime.js";import"./Button.style-CoALCM8f.js";import"./Label-Dvf5dr16.js";import"./path-DPor8ESZ.js";import"./scroll-Cr_SEktn.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="24268c6c-3cbe-416c-9675-5200be98d3f7",e._sentryDebugIdIdentifier="sentry-dbid-24268c6c-3cbe-416c-9675-5200be98d3f7")}catch{}})();const Ze=f({display:"flex",justifyContent:"center",alignItems:"center",position:"fixed",top:0,left:0,zIndex:h.zIndex.overlayHigh,width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.5)",animation:`${ye} 0.2s ease-in`}),Ae=f({display:"block",position:"fixed",top:"50%",left:"50%",zIndex:h.zIndex.overlayTop,padding:"3.2rem 2rem",borderRadius:"16px",border:"none",outline:"none",background:h.colors.white,transform:"translate(-50%, -50%)"}),We=({isOpen:e,children:r,onClose:t})=>{const a=o.useCallback(s=>{s.key==="Escape"&&(t==null||t())},[t]);return o.useEffect(()=>{if(e){const s=document.body.clientWidth;document.body.style.overflow="hidden",document.body.style.maxWidth=`${s}px`,window.addEventListener("keydown",a)}return()=>{document.body.style.overflow="auto",document.body.style.maxWidth="100vw",window.removeEventListener("keydown",a)}},[e,a]),e&&fe.createPortal(g(B,{children:[n("div",{"aria-hidden":!0,onClick:()=>t==null?void 0:t(),css:Ze}),n("dialog",{onClick:s=>s.stopPropagation(),css:Ae,children:r})]}),document.body)},$e=e=>f({width:"32rem",marginTop:"2.4rem",cursor:"pointer",...e&&{"&:hover":{color:h.colors.gray_500}}}),Ue=f({color:h.colors.gray_700,fontWeight:400}),je=f({color:h.colors.gray_500,fontSize:"2rem"}),ze=f({marginTop:"0.8rem",...h.text.body07,fontWeight:400}),F={START:"시작 기간이 입력되지 않았습니다.",END:"종료 기간이 입력되지 않았습니다.",OTHER:"유효한 기간이 아닙니다. 확인 후 다시 입력해주세요."},Pe=e=>e.length!==8?e:`${e.slice(0,4)}-${e.slice(4,6)}-${e.slice(6,8)}`,te=e=>{if(!/^\d{4}-\d{2}-\d{2}$/.test(e))return!1;const[t,a,s]=e.split("-").map(Number),i=new Date(t,a-1,s),l=t>=1900;return i.getFullYear()===t&&i.getMonth()===a-1&&i.getDate()===s&&l},P=e=>{if(te(e)){const[r,t,a]=e.split("-").map(Number);return new Date(r,t-1,a)}return null},Y=e=>e.replace(/\./g,"-"),Ye=(e="",r="",t,a,s)=>{const[i,l]=o.useState({startDate:e,endDate:r}),[C,c]=o.useState({isStartDateValid:!0,isEndDateValid:!0,isStartDateError:!1,isEndDateError:!1,errorMessage:""}),[d,p]=o.useState(!1),D=(y,k,E,m)=>{const S=k.replace(/\D/g,""),v=S.length<=8?Pe(S):S;l(u=>{const w={...u,[y]:v};return t(w.startDate),a(w.endDate),w});const x=S.length===8&&te(v);c(u=>({...u,[m?"isStartDateValid":"isEndDateValid"]:x})),S?v.length===10?!x||!E?(c(u=>({...u,[m?"isStartDateError":"isEndDateError"]:!0,errorMessage:F.OTHER})),p(!1),s(!1)):T(v,i.startDate,i.endDate,m):(c(u=>({...u,[m?"isStartDateError":"isEndDateError"]:!1,errorMessage:""})),p(!1),s(!1)):(c(u=>({...u,[m?"isStartDateError":"isEndDateError"]:!0,errorMessage:m?F.START:F.END})),p(!1),s(!1))},T=(y,k,E,m)=>{const S=P(m?y:k),v=P(m?E:y);if(S&&v){const x=S<=v;p(x),s(x),c(x?{isStartDateValid:!0,isEndDateValid:!0,isStartDateError:!1,isEndDateError:!1,errorMessage:""}:{isStartDateValid:!0,isEndDateValid:!0,isStartDateError:m,isEndDateError:!m,errorMessage:F.OTHER})}else p(!0),s(!0),c({isStartDateValid:!0,isEndDateValid:!0,isStartDateError:!1,isEndDateError:!1,errorMessage:""})};return{dates:i,validation:C,isDateRangeValid:d,handleChange:D}},ne=({startDate:e,endDate:r,onSetStartDate:t,onSetEndDate:a,onSetIsDateRangeValid:s})=>{const{dates:i,validation:l,handleChange:C}=Ye(e,r,d=>t(d),d=>a(d),s),c=d=>f` - text-align: ${d.length===10?"center":"left"}; - `;return g(B,{children:[g(b,{styles:{direction:"row",align:"center",gap:"1.2rem"},children:[n(Z,{placeholder:"YYYY-MM-DD",css:[{width:"10.3rem"},c(i.startDate)],value:i.startDate,onChange:d=>C("startDate",d.target.value,l.isEndDateValid,!0),maxLength:10,isError:l.isStartDateError}),n("p",{css:je,children:"~"}),n(Z,{placeholder:"YYYY-MM-DD",css:[{width:"10.3rem"},c(i.endDate)],value:i.endDate,onChange:d=>C("endDate",d.target.value,l.isStartDateValid,!1),maxLength:10,isError:l.isEndDateError})]}),n("div",{css:{height:"1.6rem"},children:(l.isStartDateError||l.isEndDateError)&&n(we,{isError:!0,css:ze,children:l.errorMessage})})]})};ne.__docgenInfo={description:"",methods:[],displayName:"BlockDate",props:{startDate:{required:!0,tsType:{name:"string"},description:""},endDate:{required:!0,tsType:{name:"string"},description:""},onSetStartDate:{required:!0,tsType:{name:"signature",type:"function",raw:"(date: string) => void",signature:{arguments:[{type:{name:"string"},name:"date"}],return:{name:"void"}}},description:""},onSetEndDate:{required:!0,tsType:{name:"signature",type:"function",raw:"(date: string) => void",signature:{arguments:[{type:{name:"string"},name:"date"}],return:{name:"void"}}},description:""},onSetIsDateRangeValid:{required:!0,tsType:{name:"signature",type:"function",raw:"(isValid: boolean) => void",signature:{arguments:[{type:{name:"boolean"},name:"isValid"}],return:{name:"void"}}},description:""}}};const Qe=f({display:"flex",justifyContent:"center",alignItems:"center",width:"5rem",height:"5rem",borderRadius:"100%",border:`1.2px solid ${h.colors.gray_400}`,overflow:"hidden",cursor:"pointer","&:hover":{backgroundColor:h.colors.blue_100}}),Ke=f({border:`1.6px solid ${h.colors.key_500}`,backgroundColor:h.colors.blue_100}),Ge=f({display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",gap:"1.2rem"}),Je=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.78009 4C8.13009 4 7.65009 4.61 7.81009 5.24L8.50009 8H8.52009C5.95009 8 3.80009 9.95 3.54009 12.5L3.17009 16.22C3.05009 17.37 3.34009 18.53 3.98009 19.49L4.10009 19.66C4.66009 20.49 5.59009 21 6.60009 21H17.3901C18.3901 21 19.3301 20.5 19.8901 19.66L20.0101 19.49C20.6501 18.53 20.9401 17.37 20.8201 16.22L20.4501 12.5C20.1901 9.94 18.0401 8 15.4701 8H15.4901L16.1801 5.24C16.3401 4.61 15.8601 4 15.2101 4H8.77009H8.78009Z",fill:"#353F9B"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5002 11.0498C13.0002 11.1598 13.3602 11.4298 13.6102 11.7698C13.9102 12.1898 14.0002 12.6698 14.0002 12.9998H13.0002C13.0002 12.8298 12.9402 12.5598 12.7902 12.3498C12.6602 12.1698 12.4302 11.9998 12.0002 11.9998C11.5702 11.9998 11.3402 12.1698 11.2102 12.3498C11.1102 12.4898 11.0502 12.6598 11.0202 12.8098L13.8602 15.6498L13.9402 15.7298L13.9802 15.8398C14.0902 16.1798 14.1402 16.7198 13.8402 17.1998C13.5802 17.6098 13.1402 17.8798 12.5002 17.9598V18.9898H11.5002V17.9598C10.8702 17.8698 10.4502 17.5998 10.2102 17.1798C9.98018 16.7698 9.99018 16.2998 10.0002 16.0698C10.0002 16.0398 10.0002 16.0198 10.0002 15.9998H11.0002V16.0798C11.0002 16.3498 11.0002 16.5398 11.0902 16.6998C11.1502 16.7998 11.3102 17.0098 12.0002 17.0098C12.6902 17.0098 12.9202 16.7998 12.9902 16.6798C13.0602 16.5598 13.0802 16.4098 13.0502 16.2698L10.1502 13.3698L10.0002 13.2198V13.0098C10.0002 12.6798 10.0902 12.1998 10.3902 11.7798C10.6302 11.4398 11.0002 11.1698 11.5002 11.0598V10.0098H12.5002V11.0598V11.0498Z",fill:"#D9D9D9"})),Xe=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M0.820312 14.8467L10.1536 11.5133L4.15365 5.51332L0.820312 14.8467ZM7.72031 10.9667L3.02031 12.6467L4.70031 7.94665L7.72031 10.9667Z",fill:"white"}),o.createElement("path",{d:"M9.17365 8.53332L12.9003 4.80665C13.227 4.47999 13.7536 4.47999 14.0803 4.80665L14.4736 5.19999L15.1803 4.49332L14.787 4.09999C14.0736 3.38665 12.907 3.38665 12.1936 4.09999L8.46698 7.82665L9.17365 8.53332Z",fill:"white"}),o.createElement("path",{d:"M6.19365 4.76665L5.80031 5.15999L6.50698 5.86665L6.90031 5.47332C7.61365 4.75999 7.61365 3.59332 6.90031 2.87999L6.50698 2.48665L5.80031 3.19999L6.19365 3.59332C6.51365 3.91332 6.51365 4.44665 6.19365 4.76665Z",fill:"white"}),o.createElement("path",{d:"M10.8603 8.09999L9.80031 9.15999L10.507 9.86665L11.567 8.80665C11.8936 8.47999 12.4203 8.47999 12.747 8.80665L13.8203 9.87999L14.527 9.17332L13.4536 8.09999C12.7336 7.38665 11.5736 7.38665 10.8603 8.09999Z",fill:"white"}),o.createElement("path",{d:"M9.52698 4.09999L7.13365 6.49332L7.84031 7.19999L10.2336 4.80665C10.947 4.09332 10.947 2.92665 10.2336 2.21332L9.17365 1.15332L8.46698 1.85999L9.52698 2.91999C9.84698 3.24665 9.84698 3.77999 9.52698 4.09999Z",fill:"white"})),et=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.6667 1.99999H9.88C9.6 1.22666 8.86667 0.666656 8 0.666656C7.13333 0.666656 6.4 1.22666 6.12 1.99999H3.33333C2.6 1.99999 2 2.59999 2 3.33332V14C2 14.7333 2.6 15.3333 3.33333 15.3333H12.6667C13.4 15.3333 14 14.7333 14 14V3.33332C14 2.59999 13.4 1.99999 12.6667 1.99999ZM8 1.99999C8.36667 1.99999 8.66667 2.29999 8.66667 2.66666C8.66667 3.03332 8.36667 3.33332 8 3.33332C7.63333 3.33332 7.33333 3.03332 7.33333 2.66666C7.33333 2.29999 7.63333 1.99999 8 1.99999ZM12.6667 14H3.33333V3.33332H4.66667V5.33332H11.3333V3.33332H12.6667V14Z",fill:"white"})),tt=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M9.33334 2.66668V6.00001C9.33334 6.74668 9.58 7.44001 10 8.00001H6C6.43334 7.42668 6.66667 6.73334 6.66667 6.00001V2.66668H9.33334ZM11.3333 1.33334H4.66667C4.3 1.33334 4 1.63334 4 2.00001C4 2.36668 4.3 2.66668 4.66667 2.66668H5.33334V6.00001C5.33334 7.10668 4.44 8.00001 3.33334 8.00001V9.33334H7.31334V14L7.98 14.6667L8.64667 14V9.33334H12.6667V8.00001C11.56 8.00001 10.6667 7.10668 10.6667 6.00001V2.66668H11.3333C11.7 2.66668 12 2.36668 12 2.00001C12 1.63334 11.7 1.33334 11.3333 1.33334Z",fill:"white"})),nt=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("g",{id:"Property 1=study"},o.createElement("g",{id:"Vector"},o.createElement("path",{d:"M14 2.66668C13.26 2.43334 12.4467 2.33334 11.6667 2.33334C10.3667 2.33334 8.96667 2.60001 8.00001 3.33334C7.03334 2.60001 5.63334 2.33334 4.33334 2.33334C3.03334 2.33334 1.63334 2.60001 0.666672 3.33334V13.1C0.666672 13.2667 0.833338 13.4333 1.00001 13.4333C1.06667 13.4333 1.10001 13.4 1.16667 13.4C2.06667 12.9667 3.36667 12.6667 4.33334 12.6667C5.63334 12.6667 7.03334 12.9333 8.00001 13.6667C8.90001 13.1 10.5333 12.6667 11.6667 12.6667C12.7667 12.6667 13.9 12.8667 14.8333 13.3667C14.9 13.4 14.9333 13.4 15 13.4C15.1667 13.4 15.3333 13.2333 15.3333 13.0667V3.33334C14.9333 3.03334 14.5 2.83334 14 2.66668ZM14 11.6667C13.2667 11.4333 12.4667 11.3333 11.6667 11.3333C10.5333 11.3333 8.90001 11.7667 8.00001 12.3333V4.66668C8.90001 4.10001 10.5333 3.66668 11.6667 3.66668C12.4667 3.66668 13.2667 3.76668 14 4.00001V11.6667Z",fill:"white"}),o.createElement("path",{d:"M11.6667 6.33334C12.2533 6.33334 12.82 6.39334 13.3333 6.50668V5.49334C12.8067 5.39334 12.24 5.33334 11.6667 5.33334C10.5333 5.33334 9.50667 5.52668 8.66667 5.88668V6.99334C9.42001 6.56668 10.4667 6.33334 11.6667 6.33334Z",fill:"white"}),o.createElement("path",{d:"M8.66667 7.66001V8.76668C9.42001 8.34001 10.4667 8.10668 11.6667 8.10668C12.2533 8.10668 12.82 8.16668 13.3333 8.28001V7.26668C12.8067 7.16668 12.24 7.10668 11.6667 7.10668C10.5333 7.10668 9.50667 7.30668 8.66667 7.66001Z",fill:"white"}),o.createElement("path",{d:"M11.6667 8.88668C10.5333 8.88668 9.50667 9.08001 8.66667 9.44001V10.5467C9.42001 10.12 10.4667 9.88668 11.6667 9.88668C12.2533 9.88668 12.82 9.94668 13.3333 10.06V9.04668C12.8067 8.94001 12.24 8.88668 11.6667 8.88668Z",fill:"white"})))),rt=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M3.1001 4.1C3.1001 3.5 3.5001 3 4.1001 3H19.9001C20.5001 3 21.0001 3.5 20.9001 4.1L20.0001 12H4.0001L3.1001 4.1Z",fill:"#D9D9D9"}),o.createElement("path",{d:"M4.1001 5.1C4.1001 4.5 4.5001 4 5.1001 4H18.9001C19.5001 4 20.0001 4.5 19.9001 5.1L19.1001 12H4.9001L4.1001 5.1Z",fill:"#353F9B"}),o.createElement("path",{d:"M4.00021 12H20.0002L20.9002 19.9C21.0002 20.5 20.5002 21 19.9002 21H4.10021C3.50021 21 3.00021 20.5 3.10021 19.9L4.00021 12Z",fill:"#D9D9D9"}),o.createElement("path",{d:"M8.5 19H15.5C15.8 19 16 19.2 16 19.5C16 19.8 15.8 20 15.5 20H8.5C8.2 20 8 19.8 8 19.5C8 19.2 8.2 19 8.5 19Z",fill:"#353F9B"})),re=[{name:"MEETING",icon:n(et,{width:24,height:24,css:{flexShrink:0}})},{name:"ACCOUNTING",icon:n(Je,{width:24,height:24,css:{flexShrink:0}})},{name:"TASK",icon:n(rt,{width:24,height:24,css:{flexShrink:0}})},{name:"NOTICE",icon:n(tt,{width:24,height:24,css:{flexShrink:0}})},{name:"STUDY",icon:n(nt,{width:24,height:24,css:{flexShrink:0}})},{name:"EVENT",icon:n(Xe,{width:24,height:24,css:{flexShrink:0}})}],oe=({selectedBlockIcon:e,onBlockIconSelect:r})=>{const t=a=>{r(e===a?-1:a)};return n("div",{css:Ge,children:re.map((a,s)=>n("div",{css:[Qe,e===s&&Ke],onClick:()=>t(s),children:a.icon},s))})};oe.__docgenInfo={description:"",methods:[],displayName:"BlockIcon",props:{selectedBlockIcon:{required:!0,tsType:{name:"number"},description:""},onBlockIconSelect:{required:!0,tsType:{name:"signature",type:"function",raw:"(index: number) => void",signature:{arguments:[{type:{name:"number"},name:"index"}],return:{name:"void"}}},description:""}}};const q=({title:e,children:r})=>g(b,{tag:"div",styles:{direction:"column",align:"flex-start",gap:"1.2rem",width:"36.5rem"},children:[n(X,{tag:"H6",css:{fontWeight:500},children:e}),r]});q.__docgenInfo={description:"",methods:[],displayName:"BlockBox",props:{title:{required:!0,tsType:{name:"string"},description:""},children:{required:!0,tsType:{name:"ReactNode"},description:""}}};const ae=o.createContext(void 0),U=()=>{const e=o.useContext(ae);if(!e)throw new Error("Error useBlockContext");return e},se=({children:e})=>{const[r,t]=o.useState(1),[a,s]=o.useState({blockName:"",blockType:"",blockColor:"",startDate:"",endDate:""}),i=o.useCallback(()=>t(c=>c+1),[]),l=o.useCallback(()=>{t(1),s({blockName:"",blockType:"",blockColor:"",startDate:"",endDate:""})},[]),C=o.useCallback(c=>{s(d=>({...d,...c}))},[]);return n(ae.Provider,{value:{step:r,formData:a,setFormData:C,nextStep:i,reset:l},children:e})};se.__docgenInfo={description:"",methods:[],displayName:"BlockProvider",props:{children:{required:!0,tsType:{name:"ReactNode"},description:""}}};const ie=({isVisible:e})=>{const[r,t]=o.useState(-1),[a,s]=o.useState(!1),{formData:i,setFormData:l,nextStep:C}=U(),c=D=>{D.target.value.length<=25&&l({blockName:D.target.value})},d=i.blockName.trim()!==""&&r!==-1&&i.startDate.length===10&&i.endDate.length===10&&a,p=()=>{if(d){const D=re[r].name;l({blockType:D,startDate:i.startDate,endDate:i.endDate}),C()}};return e?g(b,{tag:"section",styles:{direction:"column",justify:"space-between",align:"center",height:"55.11rem",gap:"2.4rem"},children:[n(A,{step:"block",title:"블록 생성하기",info:"타임라인에 생성할 블록 정보를 입력해주세요"}),g(b,{styles:{direction:"column",align:"center",gap:"2.4rem",paddingLeft:"6.8rem",paddingRight:"6.8rem"},children:[n(q,{title:"블록 아이콘",children:n(oe,{selectedBlockIcon:r,onBlockIconSelect:t})}),n(q,{title:"블록명",children:g(b,{styles:{align:"flex-end",direction:"column",gap:"0.8rem",width:"100%"},children:[n(Z,{placeholder:"활동,행사명 등",css:{width:"100%"},value:i.blockName,onChange:c}),g(L,{tag:"body7",css:Ue,children:[i.blockName.length," / 25"]})]})}),n(q,{title:"기간",children:n(b,{styles:{align:"flex-start",direction:"column",padding:"0",width:"100%"},children:n(ne,{startDate:i.startDate,endDate:i.endDate,onSetStartDate:D=>l({startDate:D}),onSetEndDate:D=>l({endDate:D}),onSetIsDateRangeValid:s})})})]}),n(_,{variant:"primary",size:"medium",css:$e(d),disabled:!d,onClick:p,children:"다음"})]}):null};ie.__docgenInfo={description:"",methods:[],displayName:"BlockModal",props:{isVisible:{required:!0,tsType:{name:"boolean"},description:""}}};const ot=f({borderRadius:"8px",border:`1px dashed ${h.colors.gray_400}`,color:h.colors.gray_500});f({color:h.colors.gray_500});const at=f({padding:"0",width:"6.4rem",textDecoration:"underline",...h.text.body06,fontWeight:600,color:h.colors.gray_500});function st(e,r){return be({...e,enabled:!0,suspense:!0,throwOnError:Ee,placeholderData:void 0},ke)}const it=({files:e,onFilesChange:r,setFileUrls:t,setUploadStatus:a})=>{const s=o.useRef(null),{mutateAsync:i}=ve(),l=o.useCallback(async p=>{if(!p)return;const T=Array.from(p).filter(E=>!e.some(m=>m.name===E.name&&m.size===E.size));r([...e,...T]);const y={},k={};for(let E=0;E({...w,...k}));const u=v==null?void 0:v.url;if(m&&u){const w=Date.now(),M=await i({presignedUrl:u,file:m}),I=Date.now()-w,V=Math.max(0,2e3-I);setTimeout(()=>{M&&(y[x]=M,k[x]=!0,a(O=>({...O,...k})),t(O=>({...O,...y})))},V)}}s.current&&(s.current.value="")},[e,r,i,t,a]),C=o.useCallback(p=>{l(p.target.files)},[l]),c=o.useCallback(p=>{p.preventDefault()},[]),d=o.useCallback(p=>{p.preventDefault(),l(p.dataTransfer.files)},[l]);return{fileInputRef:s,handleFileChange:C,handleDragOver:c,handleDrop:d}},le=({files:e,onFilesChange:r,setFileUrls:t,setUploadStatus:a})=>{const{fileInputRef:s,handleFileChange:i,handleDragOver:l,handleDrop:C}=it({files:e,onFilesChange:r,setFileUrls:t,setUploadStatus:a});return n(b,{styles:{direction:"column",justify:"center",align:"center",padding:"3.2rem 6.35rem",width:"100%"},css:ot,onDragOver:l,onDrop:c=>C(c),children:g(b,{tag:"form",styles:{direction:"column",align:"center",justify:"center"},children:[n("input",{type:"file",multiple:!0,style:{display:"none"},ref:s,onChange:i}),n(L,{tag:"body6",children:"업로드할 파일을 여기로 드래그 하세요"}),g(b,{styles:{direction:"row",align:"center",justify:"center",gap:"0.3rem"},css:{marginTop:"1.6rem",whiteSpace:"nowrap"},children:[n(L,{tag:"body6",children:"또는"}),n(_,{variant:"text",css:at,onClick:()=>{var c;return(c=s.current)==null?void 0:c.click()},children:"여기를 클릭"}),n(L,{tag:"body6",children:"하여"})]}),n(L,{tag:"body6",css:{marginTop:"0.5rem"},children:"업로드할 파일을 선택하세요"})]})})};le.__docgenInfo={description:"",methods:[],displayName:"BlockAdd",props:{files:{required:!0,tsType:{name:"Array",elements:[{name:"File"}],raw:"File[]"},description:""},onFilesChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(files: File[]) => void",signature:{arguments:[{type:{name:"Array",elements:[{name:"File"}],raw:"File[]"},name:"files"}],return:{name:"void"}}},description:""},setFileUrls:{required:!0,tsType:{name:"Dispatch",elements:[{name:"SetStateAction",elements:[{name:"Files"}],raw:"SetStateAction"}],raw:"Dispatch>"},description:""},setUploadStatus:{required:!0,tsType:{name:"Dispatch",elements:[{name:"SetStateAction",elements:[{name:"signature",type:"object",raw:"{ [key: string]: boolean }",signature:{properties:[{key:{name:"string"},value:{name:"boolean",required:!0}}]}}],raw:"SetStateAction<{ [key: string]: boolean }>"}],raw:"Dispatch>"},description:""}}};const lt=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M13.8334 7.5V15.8333H7.16675V7.5H13.8334ZM12.5834 2.5H8.41675L7.58341 3.33333H4.66675V5H16.3334V3.33333H13.4167L12.5834 2.5ZM15.5001 5.83333H5.50008V15.8333C5.50008 16.75 6.25008 17.5 7.16675 17.5H13.8334C14.7501 17.5 15.5001 16.75 15.5001 15.8333V5.83333Z",fill:"#56585D"})),ct=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("g",{clipPath:"url(#clip0_1676_1227)"},o.createElement("path",{opacity:.2,d:"M10 19.6875C4.66155 19.6875 0.3125 15.3385 0.3125 10C0.3125 4.66155 4.66155 0.3125 10 0.3125C15.3385 0.3125 19.6875 4.66155 19.6875 10C19.6875 15.3385 15.3385 19.6875 10 19.6875ZM10 2.47615C5.85753 2.47615 2.48702 5.84666 2.48702 9.98913C2.48702 14.1316 5.85753 17.5021 10 17.5021C14.1425 17.5021 17.513 14.1316 17.513 9.98913C17.513 5.84666 14.1425 2.47615 10 2.47615Z",fill:"#909090"}),o.createElement("path",{d:"M18.6271 10.9375C18.0381 10.9375 17.5561 10.455 17.5561 9.86535C17.5561 5.78046 14.2358 2.4568 10.155 2.4568C9.5659 2.4568 9.0625 1.97433 9.0625 1.38465C9.0625 0.794968 9.52306 0.3125 10.1121 0.3125H10.1443C15.4139 0.3125 19.6875 4.6011 19.6875 9.86535C19.6875 10.455 19.2055 10.9375 18.6164 10.9375H18.6271Z",fill:"#909090"})),o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_1676_1227"},o.createElement("rect",{width:20,height:20,fill:"white"})))),ce=({size:e=20})=>n(ct,{width:e,height:e,css:{animation:`${Ce} 1s linear infinite`,fill:`${h.colors.key_500}`}});ce.__docgenInfo={description:"",methods:[],displayName:"Spinner",props:{size:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"20",computed:!1}}}};const dt=f({borderRadius:"8px",border:`1px solid ${h.colors.gray_300}`,width:"37.5rem"}),ut=f({color:h.colors.gray_800,fontWeight:500,maxWidth:"30rem"}),de=({title:e,onDelete:r,isUploading:t})=>g(b,{styles:{direction:"row",align:"center",justify:"space-between",padding:"1.5rem 1.2rem"},css:dt,children:[n(L,{tag:"body6",css:ut,children:e}),t?n(ce,{size:20}):n(lt,{width:20,height:20,css:{cursor:"pointer"},onClick:r})]});de.__docgenInfo={description:"",methods:[],displayName:"BlockItem",props:{title:{required:!0,tsType:{name:"string"},description:""},onDelete:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},isUploading:{required:!0,tsType:{name:"boolean"},description:""}}};const mt=f({display:"flex",flexDirection:"column",maxHeight:"18rem",width:"38.5rem",gap:"0.8rem",position:"relative",paddingRight:"1rem",overflowY:"auto",boxSizing:"content-box","&::-webkit-scrollbar":{width:"1rem"},"&::-webkit-scrollbar-thumb":{backgroundColor:h.colors.gray_300,borderRadius:"4px"},"&::-webkit-scrollbar-track":{backgroundColor:"transparent"}}),pt=f({flexDirection:"column",justifyContent:"space-between",alignItems:"center",height:"55.11rem",paddingLeft:"6.8rem",paddingRight:"6.8rem",gap:"2.4rem"}),ht=async(e,r,t)=>(await R.post(`/time-blocks/team/${e}/time-block`,t,{params:{type:r}})).data,gt=async(e,r)=>await R.delete(`/time-blocks/team/${e}/time-block/${r}`),ft=(e,r)=>{const t=$();return W({mutationFn:a=>ht(e,r,a),onSuccess:()=>{t.invalidateQueries({queryKey:["timeBlock"]})}})},Q=["#FFE6E8","#F8E2CB","#C4F2E5","#DCD8FA","#E2E8F8","#F8E1F5","#D3EFFA"],yt=()=>{const e=Math.floor(Math.random()*Q.length);return Q[e]},H=Ne(e=>({isOpen:!1,contentType:null,modalData:null,actions:{openModal:(r,t=null)=>{e({isOpen:!0,contentType:r,modalData:t})},closeModal:()=>e({isOpen:!1,contentType:null,modalData:null})}})),Ct=()=>H(e=>e.isOpen),Dt=()=>H(e=>e.contentType),wt=()=>H(e=>e.modalData),bt=()=>H(r=>r.actions.openModal),j=()=>H(r=>r.actions.closeModal),ue=({isVisible:e})=>{const r=localStorage.getItem("teamId"),{formData:t,reset:a}=U(),s=j(),[i,l]=o.useState([]),[C,c]=o.useState({}),[d,p]=o.useState({}),[D,T]=o.useState(!0),{mutate:y}=ft(+r,"executive"),{mutate:k}=xe(),{createToast:E}=De();o.useEffect(()=>{const u=i.length===0||i.length>0&&Object.values(d).every(w=>w);T(u)},[d,i.length]);const m=u=>{l(w=>{const M=u.filter(I=>!w.some(V=>V.name===I.name&&V.size===I.size));return[...w,...M]}),T(!1)},S=u=>{const w=i.find(M=>M.name===u);w&&k({fileName:w.name},{onSuccess:()=>{l(M=>M.filter(V=>V.name!==u)),c(M=>{const I={...M};return delete I[u],I}),p(M=>{const I={...M};return delete I[u],I})}})};if(!e)return null;const v={name:t.blockName,color:yt(),startDate:Y(t.startDate),endDate:Y(t.endDate),blockType:t.blockType,files:C},x=()=>{y(v,{onSuccess:()=>{E("활동 블록이 생성되었습니다","success"),s(),a()}})};return g(b,{tag:"section",css:pt,children:[n(A,{step:"upload",title:"블록 생성하기",info:"해당 블록에 업로드할 문서를 선택해주세요"}),g(b,{styles:{direction:"column",align:"flex-start",grow:"1",width:"100%",gap:"2.4rem"},children:[n(le,{files:i,onFilesChange:m,setFileUrls:c,setUploadStatus:p}),n("div",{className:"scroll",css:mt,children:i.map(u=>n(de,{title:u.name,onDelete:()=>S(u.name),isUploading:!d[u.name]},u.name))})]}),n(_,{variant:"primary",size:"medium",css:{width:"32rem"},onClick:x,disabled:!D,children:"저장"})]})};ue.__docgenInfo={description:"",methods:[],displayName:"UploadModal",props:{isVisible:{required:!0,tsType:{name:"boolean"},description:""}}};const me=()=>{const{step:e}=U();return g(B,{children:[n(ie,{isVisible:e===1}),n(ue,{isVisible:e===2})]})};me.__docgenInfo={description:"",methods:[],displayName:"BlockFlow"};const kt=()=>{const e=$();return W({mutationFn:({teamId:t,blockId:a})=>gt(t,a),onSuccess:()=>{e.invalidateQueries({queryKey:["timeBlock"]}),e.invalidateQueries({queryKey:["document"]})}})},Et=async(e,r)=>await R.delete(`/documents/team/${e}/document/${r}`),vt=()=>{const e=$();return W({mutationFn:({teamId:t,documentId:a})=>Et(t,a),onSuccess:()=>{e.invalidateQueries({queryKey:["document"]})}})},St=f({"&:hover":{backgroundColor:h.colors.key_200},width:"15.8rem"}),xt=f({"&:hover":{backgroundColor:h.colors.blue_100},width:"15.8rem"}),pe=()=>{const e=wt(),r=j(),{mutate:t}=kt(),{mutate:a}=vt();if(!e)return null;const{teamId:s,itemId:i,itemType:l}=e,d=l==="block"?()=>{s&&i&&t({teamId:s,blockId:i},{onSuccess:()=>{r()}})}:()=>{s&&i&&a({teamId:s,documentId:i},{onSuccess:()=>{r()}})};return!l||!s||!i?null:g(b,{styles:{direction:"column",align:"center",justify:"center",paddingRight:"9.35rem",paddingLeft:"9.35rem"},children:[n(X,{tag:"H5",css:{fontWeight:600},children:Me[l.toUpperCase()]}),n(L,{tag:"body4",css:{marginTop:"1rem",fontWeight:400},children:Te[l.toUpperCase()]}),g(b,{styles:{direction:"row",align:"center",justify:"center",gap:"0.8rem",marginTop:"2.4rem"},children:[n(_,{variant:"secondary",size:"large",onClick:r,css:xt,children:"취소"}),n(_,{variant:"primary",size:"large",onClick:d,css:St,children:"삭제"})]})]})};pe.__docgenInfo={description:"",methods:[],displayName:"DeleteModal"};const Mt=async()=>(await R.get("/teams/category")).data,Tt=(e=!0)=>st({queryKey:["category"],queryFn:()=>Mt(),select:r=>{var a;const t=((a=r==null?void 0:r.data)==null?void 0:a.categories)||[];return e?t:t.filter(s=>s!=="전체")}}),he=({isVisible:e})=>{const{isOpen:r,close:t,toggle:a}=Oe(),{setFormData:s,nextStep:i}=ee(),l=Re(t),[C,c]=o.useState(""),{data:d}=Tt(!1);if(o.useEffect(()=>{const y=k=>{var m;if(!l.current||!(k.target instanceof HTMLElement))return;!l.current.contains(k.target)&&!((m=k.target)!=null&&m.className.includes("select-container"))&&(t==null||t())};return r?window.addEventListener("mousedown",y):window.removeEventListener("mousedown",y),()=>{window.removeEventListener("mousedown",y)}},[r,t,l]),!e)return null;const p=y=>{c(y),s({category:y}),t==null||t()},D=()=>{i()},T=C.trim().length>0;return g(b,{tag:"section",styles:{direction:"column",justify:"center",align:"center"},css:Ie,children:[n(A,{step:"category",title:"새로운 워크 스페이스 생성하기",info:"팀 카테고리를 선택해주세요."}),n("div",{css:{width:"32rem",marginTop:"2.4rem"},ref:l,children:n(qe,{css:{"& ul":{maxHeight:"25rem"}},placeholder:"선택",variant:"outline",isOpen:r,onTrigger:a,onSelect:p,options:d.map(y=>({value:y})),className:"select-container"})}),n(_,{variant:"primary",size:"medium",css:Le(T),disabled:!T,onClick:D,children:"다음"})]})};he.__docgenInfo={description:"",methods:[],displayName:"WorkSpaceCategory",props:{isVisible:{required:!0,tsType:{name:"boolean"},description:""}}};const ge=()=>{const{step:e}=ee();return g(B,{children:[n(Ve,{isVisible:e==1}),n(he,{isVisible:e==2}),n(_e,{isVisible:e==3}),n(Be,{isVisible:e==4})]})};ge.__docgenInfo={description:"",methods:[],displayName:"WorkSpaceFlow"};const z=()=>{const e=Ct(),r=Dt(),t=j(),a=()=>{switch(r){case"create-workspace":return n(He,{children:n(ge,{})});case"create-block":return n(se,{children:n(me,{})});case"delete":return n(pe,{});default:return null}};return!e||!r?null:n(We,{isOpen:e,onClose:t,children:a()})};z.__docgenInfo={description:"",methods:[],displayName:"ModalContainer"};const tn={title:"Shared/DeleteModal",component:z,parameters:{layout:"centered"},args:{isOpen:!1},argTypes:{children:{control:!1}}},N={render:()=>{const e=bt();return g(B,{children:[n("button",{onClick:()=>e("delete",{teamId:1,itemId:1,itemType:"block"}),children:"Open Delete Modal"}),n(z,{})]})}};var K,G,J;N.parameters={...N.parameters,docs:{...(K=N.parameters)==null?void 0:K.docs,source:{originalSource:`{ - render: () => { - const openModal = useOpenModal(); - return <> - - - ; - } -}`,...(J=(G=N.parameters)==null?void 0:G.docs)==null?void 0:J.source}}};const nn=["Delete"];export{N as Delete,nn as __namedExportsOrder,tn as default}; diff --git a/assets/Divider.stories-D2SHbI4e.js b/assets/Divider.stories-CzxOs0c1.js similarity index 88% rename from assets/Divider.stories-D2SHbI4e.js rename to assets/Divider.stories-CzxOs0c1.js index 11ce40f05..bb0f46a07 100644 --- a/assets/Divider.stories-D2SHbI4e.js +++ b/assets/Divider.stories-CzxOs0c1.js @@ -1,4 +1,4 @@ -import{c as s,a as i}from"./emotion-react.browser.esm-DVCGPw0o.js";import{t as y}from"./theme-DwD7F4-e.js";import"./iframe-BnffqoK7.js";import"./index-B4Z6PsAH.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./extends-ClQVCWlZ.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="29d8c655-8535-4823-a676-af7f11b16da4",e._sentryDebugIdIdentifier="sentry-dbid-29d8c655-8535-4823-a676-af7f11b16da4")}catch{}})();const f=e=>s({border:"none",backgroundColor:e??y.colors.gray_200}),h=(e,r)=>({horizontal:s({width:`${r}%`,height:"0.1rem"}),vertical:s({width:"0.1rem",height:`${r}%`})})[e],u=({type:e="horizontal",size:r=100,color:a})=>i("hr",{css:[f(a),h(e,r)]});u.__docgenInfo={description:"",methods:[],displayName:"Divider",props:{type:{required:!1,tsType:{name:"union",raw:"'horizontal' | 'vertical'",elements:[{name:"literal",value:"'horizontal'"},{name:"literal",value:"'vertical'"}]},description:"",defaultValue:{value:"'horizontal'",computed:!1}},size:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"100",computed:!1}},color:{required:!1,tsType:{name:"string"},description:""}},composes:["HTMLAttributes"]};const I={title:"Common/Divider",component:u,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{type:{control:{type:"radio"},options:["horizontal","vertical"]},size:{control:{type:"number"}},color:{control:{type:"color"}}},args:{type:"horizontal",size:50},decorators:[e=>i("div",{style:{width:"70rem",height:"5rem"},children:i(e,{})})]},t={args:{type:"horizontal",size:100}},o={args:{type:"vertical",size:100}};var n,l,c;t.parameters={...t.parameters,docs:{...(n=t.parameters)==null?void 0:n.docs,source:{originalSource:`{ +import{c as s,a as i}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{t as y}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";import"./index-Bs6nXyGp.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./extends-ClQVCWlZ.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="29d8c655-8535-4823-a676-af7f11b16da4",e._sentryDebugIdIdentifier="sentry-dbid-29d8c655-8535-4823-a676-af7f11b16da4")}catch{}})();const f=e=>s({border:"none",backgroundColor:e??y.colors.gray_200}),h=(e,r)=>({horizontal:s({width:`${r}%`,height:"0.1rem"}),vertical:s({width:"0.1rem",height:`${r}%`})})[e],u=({type:e="horizontal",size:r=100,color:a})=>i("hr",{css:[f(a),h(e,r)]});u.__docgenInfo={description:"",methods:[],displayName:"Divider",props:{type:{required:!1,tsType:{name:"union",raw:"'horizontal' | 'vertical'",elements:[{name:"literal",value:"'horizontal'"},{name:"literal",value:"'vertical'"}]},description:"",defaultValue:{value:"'horizontal'",computed:!1}},size:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"100",computed:!1}},color:{required:!1,tsType:{name:"string"},description:""}},composes:["HTMLAttributes"]};const I={title:"Common/Divider",component:u,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{type:{control:{type:"radio"},options:["horizontal","vertical"]},size:{control:{type:"number"}},color:{control:{type:"color"}}},args:{type:"horizontal",size:50},decorators:[e=>i("div",{style:{width:"70rem",height:"5rem"},children:i(e,{})})]},t={args:{type:"horizontal",size:100}},o={args:{type:"vertical",size:100}};var n,l,c;t.parameters={...t.parameters,docs:{...(n=t.parameters)==null?void 0:n.docs,source:{originalSource:`{ args: { type: 'horizontal', size: 100 diff --git a/assets/DocsRenderer-PKQXORMH-Df6NR3vH.js b/assets/DocsRenderer-PKQXORMH-CLTnEESS.js similarity index 99% rename from assets/DocsRenderer-PKQXORMH-Df6NR3vH.js rename to assets/DocsRenderer-PKQXORMH-CLTnEESS.js index 9343ce605..858384bf2 100644 --- a/assets/DocsRenderer-PKQXORMH-Df6NR3vH.js +++ b/assets/DocsRenderer-PKQXORMH-CLTnEESS.js @@ -1,5 +1,5 @@ -const __vite__fileDeps=["./index-ChjQAJHq.js","./iframe-BnffqoK7.js","./index-B4Z6PsAH.js","./_commonjsHelpers-XnwbWaTF.js","./react-18-C2ppDB-h.js","./index-C_edrjnw.js","./index-CBYM4yTB.js","./extends-ClQVCWlZ.js","./isArray-BI8z6s7d.js","./index-BWTWe0Km.js","./Color-KGDBMAHA-D41Ad0KX.js","./index-DNeIa3IR.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -var wD=Object.defineProperty;var ED=(e,t,r)=>t in e?wD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var wr=(e,t,r)=>ED(e,typeof t!="symbol"?t+"":t,r);import{_ as ip}from"./iframe-BnffqoK7.js";import{r as l,R as y}from"./index-B4Z6PsAH.js";import{r as xD,u as CD}from"./react-18-C2ppDB-h.js";import{w as d3,r as lp}from"./index-C_edrjnw.js";import{O as p3,P as DD}from"./index-CBYM4yTB.js";import{_ as ot}from"./extends-ClQVCWlZ.js";import{g as Ss}from"./_commonjsHelpers-XnwbWaTF.js";import{_ as mr,h as f3,i as ka,j as sp,d as gr,a as As,c as wn,k as SD,l as AD,b as h3,e as Xh,s as Lu}from"./isArray-BI8z6s7d.js";import{d as kD}from"./index-BWTWe0Km.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d48859ee-4b1f-421c-979b-b4ad092381fe",e._sentryDebugIdIdentifier="sentry-dbid-d48859ee-4b1f-421c-979b-b4ad092381fe")}catch{}})();var _D=Object.create,m3=Object.defineProperty,FD=Object.getOwnPropertyDescriptor,g3=Object.getOwnPropertyNames,ID=Object.getPrototypeOf,TD=Object.prototype.hasOwnProperty,_a=(e,t)=>function(){return t||(0,e[g3(e)[0]])((t={exports:{}}).exports,t),t.exports},RD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of g3(t))!TD.call(e,a)&&a!==r&&m3(e,a,{get:()=>t[a],enumerable:!(n=FD(t,a))||n.enumerable});return e},BD=(e,t,r)=>(r=e!=null?_D(ID(e)):{},RD(!e||!e.__esModule?m3(r,"default",{value:e,enumerable:!0}):r,e)),Dt=e=>`control-${e.replace(/\s+/g,"-")}`,ks=e=>`set-${e.replace(/\s+/g,"-")}`,zD=Object.create,up=Object.defineProperty,$D=Object.getOwnPropertyDescriptor,LD=Object.getOwnPropertyNames,OD=Object.getPrototypeOf,MD=Object.prototype.hasOwnProperty,I=(e,t)=>up(e,"name",{value:t,configurable:!0}),zi=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),_s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),PD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of LD(t))!MD.call(e,a)&&a!==r&&up(e,a,{get:()=>t[a],enumerable:!(n=$D(t,a))||n.enumerable});return e},cp=(e,t,r)=>(r=e!=null?zD(OD(e)):{},PD(t||!e||!e.__esModule?up(r,"default",{value:e,enumerable:!0}):r,e)),ND=_s(e=>{(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,b=t?Symbol.for("react.block"):60121,C=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function E(P){return typeof P=="string"||typeof P=="function"||P===a||P===p||P===i||P===o||P===m||P===f||typeof P=="object"&&P!==null&&(P.$$typeof===g||P.$$typeof===v||P.$$typeof===s||P.$$typeof===u||P.$$typeof===h||P.$$typeof===C||P.$$typeof===w||P.$$typeof===x||P.$$typeof===b)}I(E,"isValidElementType");function D(P){if(typeof P=="object"&&P!==null){var ct=P.$$typeof;switch(ct){case r:var _t=P.type;switch(_t){case d:case p:case a:case i:case o:case m:return _t;default:var Ur=_t&&_t.$$typeof;switch(Ur){case u:case h:case g:case v:case s:return Ur;default:return ct}}case n:return ct}}}I(D,"typeOf");var S=d,A=p,k=u,F=s,T=r,R=h,$=a,z=g,O=v,L=n,M=i,j=o,G=m,H=!1;function K(P){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),te(P)||D(P)===d}I(K,"isAsyncMode");function te(P){return D(P)===p}I(te,"isConcurrentMode");function le(P){return D(P)===u}I(le,"isContextConsumer");function Q(P){return D(P)===s}I(Q,"isContextProvider");function re(P){return typeof P=="object"&&P!==null&&P.$$typeof===r}I(re,"isElement");function N(P){return D(P)===h}I(N,"isForwardRef");function Y(P){return D(P)===a}I(Y,"isFragment");function J(P){return D(P)===g}I(J,"isLazy");function pe(P){return D(P)===v}I(pe,"isMemo");function Se(P){return D(P)===n}I(Se,"isPortal");function kt(P){return D(P)===i}I(kt,"isProfiler");function Ue(P){return D(P)===o}I(Ue,"isStrictMode");function ut(P){return D(P)===m}I(ut,"isSuspense"),e.AsyncMode=S,e.ConcurrentMode=A,e.ContextConsumer=k,e.ContextProvider=F,e.Element=T,e.ForwardRef=R,e.Fragment=$,e.Lazy=z,e.Memo=O,e.Portal=L,e.Profiler=M,e.StrictMode=j,e.Suspense=G,e.isAsyncMode=K,e.isConcurrentMode=te,e.isContextConsumer=le,e.isContextProvider=Q,e.isElement=re,e.isForwardRef=N,e.isFragment=Y,e.isLazy=J,e.isMemo=pe,e.isPortal=Se,e.isProfiler=kt,e.isStrictMode=Ue,e.isSuspense=ut,e.isValidElementType=E,e.typeOf=D})()}),HD=_s((e,t)=>{t.exports=ND()}),v3=_s((e,t)=>{var r=HD(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[r.ForwardRef]=o,s[r.Memo]=i;function u(b){return r.isMemo(b)?i:s[b.$$typeof]||n}I(u,"getStatics");var d=Object.defineProperty,p=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,v=Object.prototype;function g(b,C,w){if(typeof C!="string"){if(v){var x=f(C);x&&x!==v&&g(b,x,w)}var E=p(C);h&&(E=E.concat(h(C)));for(var D=u(b),S=u(C),A=0;A{(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 I(function r(n,a,o){function i(d,p){if(!a[d]){if(!n[d]){var h=typeof zi=="function"&&zi;if(!p&&h)return h(d,!0);if(s)return s(d,!0);var m=new Error("Cannot find module '"+d+"'");throw m.code="MODULE_NOT_FOUND",m}var f=a[d]={exports:{}};n[d][0].call(f.exports,function(v){var g=n[d][1][v];return i(g||v)},f,f.exports,r,n,a,o)}return a[d].exports}I(i,"s");for(var s=typeof zi=="function"&&zi,u=0;u=0)return this.lastItem=this.list[s],this.list[s].val},o.prototype.set=function(i,s){var u;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(u=this.indexOf(i),u>=0?(this.lastItem=this.list[u],this.list[u].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},o.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},o.prototype.forEach=function(i,s){var u;for(u=0;u0&&(w[C]={cacheItem:v,arg:arguments[C]},x?i(h,w):h.push(w),h.length>d&&s(h.shift())),f.wasMemoized=x,f.numArgs=C+1,b},"memoizerific");return f.limit=d,f.wasMemoized=!1,f.cache=p,f.lru=h,f}};function i(d,p){var h=d.length,m=p.length,f,v,g;for(v=0;v=0&&(h=d[f],m=h.cacheItem.get(h.arg),!m||!m.size);f--)h.cacheItem.delete(h.arg)}I(s,"removeCachedResult");function u(d,p){return d===p||d!==d&&p!==p}I(u,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function Gt(){return Gt=Object.assign?Object.assign.bind():function(e){for(var t=1;ti.map(i=>__vite__fileDeps[i]); +var wD=Object.defineProperty;var ED=(e,t,r)=>t in e?wD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var wr=(e,t,r)=>ED(e,typeof t!="symbol"?t+"":t,r);import{_ as ip}from"./iframe-AJyGuqY3.js";import{r as l,R as y}from"./index-Bs6nXyGp.js";import{r as xD,u as CD}from"./react-18-CzVEcH-F.js";import{w as d3,r as lp}from"./index-BHRAuaXy.js";import{O as p3,P as DD}from"./index-CBYM4yTB.js";import{_ as ot}from"./extends-ClQVCWlZ.js";import{g as Ss}from"./_commonjsHelpers-Dq6BK7nx.js";import{_ as mr,h as f3,i as ka,j as sp,d as gr,a as As,c as wn,k as SD,l as AD,b as h3,e as Xh,s as Lu}from"./isArray-vVmlok3Z.js";import{d as kD}from"./index-BWTWe0Km.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d48859ee-4b1f-421c-979b-b4ad092381fe",e._sentryDebugIdIdentifier="sentry-dbid-d48859ee-4b1f-421c-979b-b4ad092381fe")}catch{}})();var _D=Object.create,m3=Object.defineProperty,FD=Object.getOwnPropertyDescriptor,g3=Object.getOwnPropertyNames,ID=Object.getPrototypeOf,TD=Object.prototype.hasOwnProperty,_a=(e,t)=>function(){return t||(0,e[g3(e)[0]])((t={exports:{}}).exports,t),t.exports},RD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of g3(t))!TD.call(e,a)&&a!==r&&m3(e,a,{get:()=>t[a],enumerable:!(n=FD(t,a))||n.enumerable});return e},BD=(e,t,r)=>(r=e!=null?_D(ID(e)):{},RD(!e||!e.__esModule?m3(r,"default",{value:e,enumerable:!0}):r,e)),Dt=e=>`control-${e.replace(/\s+/g,"-")}`,ks=e=>`set-${e.replace(/\s+/g,"-")}`,zD=Object.create,up=Object.defineProperty,$D=Object.getOwnPropertyDescriptor,LD=Object.getOwnPropertyNames,OD=Object.getPrototypeOf,MD=Object.prototype.hasOwnProperty,I=(e,t)=>up(e,"name",{value:t,configurable:!0}),zi=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),_s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),PD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of LD(t))!MD.call(e,a)&&a!==r&&up(e,a,{get:()=>t[a],enumerable:!(n=$D(t,a))||n.enumerable});return e},cp=(e,t,r)=>(r=e!=null?zD(OD(e)):{},PD(t||!e||!e.__esModule?up(r,"default",{value:e,enumerable:!0}):r,e)),ND=_s(e=>{(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,b=t?Symbol.for("react.block"):60121,C=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function E(P){return typeof P=="string"||typeof P=="function"||P===a||P===p||P===i||P===o||P===m||P===f||typeof P=="object"&&P!==null&&(P.$$typeof===g||P.$$typeof===v||P.$$typeof===s||P.$$typeof===u||P.$$typeof===h||P.$$typeof===C||P.$$typeof===w||P.$$typeof===x||P.$$typeof===b)}I(E,"isValidElementType");function D(P){if(typeof P=="object"&&P!==null){var ct=P.$$typeof;switch(ct){case r:var _t=P.type;switch(_t){case d:case p:case a:case i:case o:case m:return _t;default:var Ur=_t&&_t.$$typeof;switch(Ur){case u:case h:case g:case v:case s:return Ur;default:return ct}}case n:return ct}}}I(D,"typeOf");var S=d,A=p,k=u,F=s,T=r,R=h,$=a,z=g,O=v,L=n,M=i,j=o,G=m,H=!1;function K(P){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),te(P)||D(P)===d}I(K,"isAsyncMode");function te(P){return D(P)===p}I(te,"isConcurrentMode");function le(P){return D(P)===u}I(le,"isContextConsumer");function Q(P){return D(P)===s}I(Q,"isContextProvider");function re(P){return typeof P=="object"&&P!==null&&P.$$typeof===r}I(re,"isElement");function N(P){return D(P)===h}I(N,"isForwardRef");function Y(P){return D(P)===a}I(Y,"isFragment");function J(P){return D(P)===g}I(J,"isLazy");function pe(P){return D(P)===v}I(pe,"isMemo");function Se(P){return D(P)===n}I(Se,"isPortal");function kt(P){return D(P)===i}I(kt,"isProfiler");function Ue(P){return D(P)===o}I(Ue,"isStrictMode");function ut(P){return D(P)===m}I(ut,"isSuspense"),e.AsyncMode=S,e.ConcurrentMode=A,e.ContextConsumer=k,e.ContextProvider=F,e.Element=T,e.ForwardRef=R,e.Fragment=$,e.Lazy=z,e.Memo=O,e.Portal=L,e.Profiler=M,e.StrictMode=j,e.Suspense=G,e.isAsyncMode=K,e.isConcurrentMode=te,e.isContextConsumer=le,e.isContextProvider=Q,e.isElement=re,e.isForwardRef=N,e.isFragment=Y,e.isLazy=J,e.isMemo=pe,e.isPortal=Se,e.isProfiler=kt,e.isStrictMode=Ue,e.isSuspense=ut,e.isValidElementType=E,e.typeOf=D})()}),HD=_s((e,t)=>{t.exports=ND()}),v3=_s((e,t)=>{var r=HD(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[r.ForwardRef]=o,s[r.Memo]=i;function u(b){return r.isMemo(b)?i:s[b.$$typeof]||n}I(u,"getStatics");var d=Object.defineProperty,p=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,v=Object.prototype;function g(b,C,w){if(typeof C!="string"){if(v){var x=f(C);x&&x!==v&&g(b,x,w)}var E=p(C);h&&(E=E.concat(h(C)));for(var D=u(b),S=u(C),A=0;A{(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 I(function r(n,a,o){function i(d,p){if(!a[d]){if(!n[d]){var h=typeof zi=="function"&&zi;if(!p&&h)return h(d,!0);if(s)return s(d,!0);var m=new Error("Cannot find module '"+d+"'");throw m.code="MODULE_NOT_FOUND",m}var f=a[d]={exports:{}};n[d][0].call(f.exports,function(v){var g=n[d][1][v];return i(g||v)},f,f.exports,r,n,a,o)}return a[d].exports}I(i,"s");for(var s=typeof zi=="function"&&zi,u=0;u=0)return this.lastItem=this.list[s],this.list[s].val},o.prototype.set=function(i,s){var u;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(u=this.indexOf(i),u>=0?(this.lastItem=this.list[u],this.list[u].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},o.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},o.prototype.forEach=function(i,s){var u;for(u=0;u0&&(w[C]={cacheItem:v,arg:arguments[C]},x?i(h,w):h.push(w),h.length>d&&s(h.shift())),f.wasMemoized=x,f.numArgs=C+1,b},"memoizerific");return f.limit=d,f.wasMemoized=!1,f.cache=p,f.lru=h,f}};function i(d,p){var h=d.length,m=p.length,f,v,g;for(v=0;v=0&&(h=d[f],m=h.cacheItem.get(h.arg),!m||!m.size);f--)h.cacheItem.delete(h.arg)}I(s,"removeCachedResult");function u(d,p){return d===p||d!==d&&p!==p}I(u,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function Gt(){return Gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?be(Fa,--je):0,sa--,de===10&&(sa=1,Ts--),de}I(A3,"prev");function Pe(){return de=je2||ua(de)>3?"":" "}I(k3,"whitespace");function _3(e,t){for(;--t&&Pe()&&!(de<48||de>102||de>57&&de<65||de>70&&de<97););return Ia(e,_o()+(t<6&&yt()==32&&Pe()==32))}I(_3,"escaping");function zl(e){for(;Pe();)switch(de){case e:return je;case 34:case 39:e!==34&&e!==39&&zl(de);break;case 40:e===41&&zl(e);break;case 92:Pe();break}return je}I(zl,"delimiter");function F3(e,t){for(;Pe()&&e+de!==57&&!(e+de===84&&yt()===47););return"/*"+Ia(t,je-1)+"*"+Fs(e===47?e:Pe())}I(F3,"commenter");function I3(e){for(;!ua(yt());)Pe();return Ia(e,je)}I(I3,"identifier");function T3(e){return yp(Io("",null,null,null,[""],e=vp(e),0,[0],e))}I(T3,"compile");function Io(e,t,r,n,a,o,i,s,u){for(var d=0,p=0,h=i,m=0,f=0,v=0,g=1,b=1,C=1,w=0,x="",E=a,D=o,S=n,A=x;b;)switch(v=w,w=Pe()){case 40:if(v!=108&&be(A,h-1)==58){Bl(A+=X(Fo(w),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:A+=Fo(w);break;case 9:case 10:case 13:case 32:A+=k3(v);break;case 92:A+=_3(_o()-1,7);continue;case 47:switch(yt()){case 42:case 47:vo(R3(F3(Pe(),_o()),t,r),u);break;default:A+="/"}break;case 123*g:s[d++]=ht(A)*C;case 125*g:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+p:C==-1&&(A=X(A,/\f/g,"")),f>0&&ht(A)-h&&vo(f>32?ud(A+";",n,r,h-1):ud(X(A," ","")+";",n,r,h-2),u);break;case 59:A+=";";default:if(vo(S=sd(A,t,r,d,p,a,s,x,E=[],D=[],h),o),w===123)if(p===0)Io(A,t,S,S,E,o,h,s,D);else switch(m===99&&be(A,3)===110?100:m){case 100:case 108:case 109:case 115:Io(e,S,S,n&&vo(sd(e,S,S,0,0,a,s,x,a,E=[],h),D),a,D,h,s,n?E:D);break;default:Io(A,S,S,S,[""],D,0,s,D)}}d=p=f=0,g=C=1,x=A="",h=i;break;case 58:h=1+ht(A),f=v;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&A3()==125)continue}switch(A+=Fs(w),w*g){case 38:C=p>0?1:(A+="\f",-1);break;case 44:s[d++]=(ht(A)-1)*C,C=1;break;case 64:yt()===45&&(A+=Fo(Pe())),m=yt(),p=h=ht(x=A+=I3(_o())),w++;break;case 45:v===45&&ht(A)==2&&(g=0)}}return o}I(Io,"parse");function sd(e,t,r,n,a,o,i,s,u,d,p){for(var h=a-1,m=a===0?o:[""],f=Is(m),v=0,g=0,b=0;v0?m[C]+" "+w:X(w,/&\f/g,m[C])))&&(u[b++]=x);return ni(e,t,r,a===0?hp:s,u,d,p)}I(sd,"ruleset");function R3(e,t,r){return ni(e,t,r,fp,Fs(S3()),la(e,2,-2),0)}I(R3,"comment");function ud(e,t,r,n){return ni(e,t,r,mp,la(e,0,n),la(e,n+1,-1),n)}I(ud,"declaration");function cn(e,t){for(var r="",n=Is(e),a=0;a-1},"isIgnoringComment"),rS=I(function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var a=t.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=!!t.parent,i=o?t.parent.children:n,s=i.length-1;s>=0;s--){var u=i[s];if(u.line=0;r--)if(!$3(t[r]))return!0;return!1},"isPrependedWithRegularRules"),tm=I(function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},"nullifyElement"),aS=I(function(e,t,r){$3(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),tm(e)):nS(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),tm(e)))},"incorrectImportAlarm");function bp(e,t){switch(E3(e,t)){case 5103:return ee+"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 ee+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ee+e+Rl+e+Fe+e+e;case 6828:case 4268:return ee+e+Fe+e+e;case 6165:return ee+e+Fe+"flex-"+e+e;case 5187:return ee+e+X(e,/(\w+).+(:[^]+)/,ee+"box-$1$2"+Fe+"flex-$1$2")+e;case 5443:return ee+e+Fe+"flex-item-"+X(e,/flex-|-self/,"")+e;case 4675:return ee+e+Fe+"flex-line-pack"+X(e,/align-content|flex-|-self/,"")+e;case 5548:return ee+e+Fe+X(e,"shrink","negative")+e;case 5292:return ee+e+Fe+X(e,"basis","preferred-size")+e;case 6060:return ee+"box-"+X(e,"-grow","")+ee+e+Fe+X(e,"grow","positive")+e;case 4554:return ee+X(e,/([^-])(transform)/g,"$1"+ee+"$2")+e;case 6187:return X(X(X(e,/(zoom-|grab)/,ee+"$1"),/(image-set)/,ee+"$1"),e,"")+e;case 5495:case 3959:return X(e,/(image-set\([^]*)/,ee+"$1$`$1");case 4968:return X(X(e,/(.+:)(flex-)?(.*)/,ee+"box-pack:$3"+Fe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ee+e+e;case 4095:case 3583:case 4068:case 2532:return X(e,/(.+)-inline(.+)/,ee+"$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(ht(e)-1-t>6)switch(be(e,t+1)){case 109:if(be(e,t+4)!==45)break;case 102:return X(e,/(.+:)(.+)-([^]+)/,"$1"+ee+"$2-$3$1"+Rl+(be(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Bl(e,"stretch")?bp(X(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(be(e,t+1)!==115)break;case 6444:switch(be(e,ht(e)-3-(~Bl(e,"!important")&&10))){case 107:return X(e,":",":"+ee)+e;case 101:return X(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ee+(be(e,14)===45?"inline-":"")+"box$3$1"+ee+"$2$3$1"+Fe+"$2box$3")+e}break;case 5936:switch(be(e,t+11)){case 114:return ee+e+Fe+X(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ee+e+Fe+X(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ee+e+Fe+X(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ee+e+Fe+e+e}return e}I(bp,"prefix");var oS=I(function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case mp:e.return=bp(e.value,e.length);break;case w3:return cn([Un(e,{value:X(e.value,"@","@"+ee)})],n);case hp:if(e.length)return C3(e.props,function(a){switch(x3(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cn([Un(e,{props:[X(a,/:(read-\w+)/,":"+Rl+"$1")]})],n);case"::placeholder":return cn([Un(e,{props:[X(a,/:(plac\w+)/,":"+ee+"input-$1")]}),Un(e,{props:[X(a,/:(plac\w+)/,":"+Rl+"$1")]}),Un(e,{props:[X(a,/:(plac\w+)/,Fe+"input-$1")]})],n)}return""})}},"prefixer"),iS=[oS],lS=I(function(e){var t=e.key;if(!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache. If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var g=v.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var n=e.stylisPlugins||iS;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var a={},o,i=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(v){for(var g=v.getAttribute("data-emotion").split(" "),b=1;b=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}I(L3,"murmur2");var dS={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,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},rm=`You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". @@ -537,7 +537,7 @@ ${t}`);let r=t.match(Gz);if(!r)return y.createElement(l.Fragment,null,t);let[,n, * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */const{global:at}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:TX,once:RX,logger:jh}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{filterArgTypes:Yy,composeConfigs:Lre,Preview:Ore,DocsContext:Mre}=__STORYBOOK_MODULE_PREVIEW_API__,{GLOBALS_UPDATED:Jy,STORY_ARGS_UPDATED:Zy,UPDATE_STORY_ARGS:BX,RESET_STORY_ARGS:zX,NAVIGATE_URL:$X}=__STORYBOOK_MODULE_CORE_EVENTS__;__STORYBOOK_MODULE_CHANNELS__;var LX=_a({"../../node_modules/tocbot/src/js/default-options.js"(e,t){t.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",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(r){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(r){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0}}}),OX=_a({"../../node_modules/tocbot/src/js/build-html.js"(e,t){t.exports=function(r){var n=[].forEach,a=[].some,o=document.body,i,s=!0,u=" ";function d(E,D){var S=D.appendChild(h(E));if(E.children.length){var A=m(E.isCollapsed);E.children.forEach(function(k){d(k,A)}),S.appendChild(A)}}function p(E,D){var S=!1,A=m(S);if(D.forEach(function(k){d(k,A)}),i=E||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),D.length===0?i:i.appendChild(A)}function h(E){var D=document.createElement("li"),S=document.createElement("a");return r.listItemClass&&D.setAttribute("class",r.listItemClass),r.onClick&&(S.onclick=r.onClick),r.includeTitleTags&&S.setAttribute("title",E.textContent),r.includeHtml&&E.childNodes.length?n.call(E.childNodes,function(A){S.appendChild(A.cloneNode(!0))}):S.textContent=E.textContent,S.setAttribute("href",r.basePath+"#"+E.id),S.setAttribute("class",r.linkClass+u+"node-name--"+E.nodeName+u+r.extraLinkClasses),D.appendChild(S),D}function m(E){var D=r.orderedList?"ol":"ul",S=document.createElement(D),A=r.listClass+u+r.extraListClasses;return E&&(A=A+u+r.collapsibleClass,A=A+u+r.isCollapsedClass),S.setAttribute("class",A),S}function f(){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var E;E=document.querySelector(r.scrollContainer).scrollTop}else E=document.documentElement.scrollTop||o.scrollTop;var D=document.querySelector(r.positionFixedSelector);r.fixedSidebarOffset==="auto"&&(r.fixedSidebarOffset=i.offsetTop),E>r.fixedSidebarOffset?D.className.indexOf(r.positionFixedClass)===-1&&(D.className+=u+r.positionFixedClass):D.className=D.className.replace(u+r.positionFixedClass,"")}function v(E){var D=0;return E!==null&&(D=E.offsetTop,r.hasInnerContainers&&(D+=v(E.offsetParent))),D}function g(E,D){return E&&E.className!==D&&(E.className=D),E}function b(E){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var D;D=document.querySelector(r.scrollContainer).scrollTop}else D=document.documentElement.scrollTop||o.scrollTop;r.positionFixedSelector&&f();var S=E,A;if(s&&i!==null&&S.length>0){a.call(S,function(O,L){if(v(O)>D+r.headingsOffset+10){var M=L===0?L:L-1;return A=S[M],!0}else if(L===S.length-1)return A=S[S.length-1],!0});var k=i.querySelector("."+r.activeLinkClass),F=i.querySelector("."+r.linkClass+".node-name--"+A.nodeName+'[href="'+r.basePath+"#"+A.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")+'"]');if(k===F)return;var T=i.querySelectorAll("."+r.linkClass);n.call(T,function(O){g(O,O.className.replace(u+r.activeLinkClass,""))});var R=i.querySelectorAll("."+r.listItemClass);n.call(R,function(O){g(O,O.className.replace(u+r.activeListItemClass,""))}),F&&F.className.indexOf(r.activeLinkClass)===-1&&(F.className+=u+r.activeLinkClass);var $=F&&F.parentNode;$&&$.className.indexOf(r.activeListItemClass)===-1&&($.className+=u+r.activeListItemClass);var z=i.querySelectorAll("."+r.listClass+"."+r.collapsibleClass);n.call(z,function(O){O.className.indexOf(r.isCollapsedClass)===-1&&(O.className+=u+r.isCollapsedClass)}),F&&F.nextSibling&&F.nextSibling.className.indexOf(r.isCollapsedClass)!==-1&&g(F.nextSibling,F.nextSibling.className.replace(u+r.isCollapsedClass,"")),C(F&&F.parentNode.parentNode)}}function C(E){return E&&E.className.indexOf(r.collapsibleClass)!==-1&&E.className.indexOf(r.isCollapsedClass)!==-1?(g(E,E.className.replace(u+r.isCollapsedClass,"")),C(E.parentNode.parentNode)):E}function w(E){var D=E.target||E.srcElement;typeof D.className!="string"||D.className.indexOf(r.linkClass)===-1||(s=!1)}function x(){s=!0}return{enableTocAnimation:x,disableTocAnimation:w,render:p,updateToc:b}}}}),MX=_a({"../../node_modules/tocbot/src/js/parse-content.js"(e,t){t.exports=function(r){var n=[].reduce;function a(h){return h[h.length-1]}function o(h){return+h.nodeName.toUpperCase().replace("H","")}function i(h){try{return h instanceof window.HTMLElement||h instanceof window.parent.HTMLElement}catch{return h instanceof window.HTMLElement}}function s(h){if(!i(h))return h;if(r.ignoreHiddenElements&&(!h.offsetHeight||!h.offsetParent))return null;let m=h.getAttribute("data-heading-label")||(r.headingLabelCallback?String(r.headingLabelCallback(h.innerText)):(h.innerText||h.textContent).trim());var f={id:h.id,children:[],nodeName:h.nodeName,headingLevel:o(h),textContent:m};return r.includeHtml&&(f.childNodes=h.childNodes),r.headingObjectCallback?r.headingObjectCallback(f,h):f}function u(h,m){for(var f=s(h),v=f.headingLevel,g=m,b=a(g),C=b?b.headingLevel:0,w=v-C;w>0&&(b=a(g),!(b&&v===b.headingLevel));)b&&b.children!==void 0&&(g=b.children),w--;return v>=r.collapseDepth&&(f.isCollapsed=!0),g.push(f),g}function d(h,m){var f=m;r.ignoreSelector&&(f=m.split(",").map(function(v){return v.trim()+":not("+r.ignoreSelector+")"}));try{return h.querySelectorAll(f)}catch{return console.warn("Headers not found with selector: "+f),null}}function p(h){return n.call(h,function(m,f){var v=s(f);return v&&u(v,m.nest),m},{nest:[]})}return{nestHeadingsArray:p,selectHeadings:d}}}}),PX=_a({"../../node_modules/tocbot/src/js/update-toc-scroll.js"(e,t){t.exports=function(r){var n=r.tocElement||document.querySelector(r.tocSelector);if(n&&n.scrollHeight>n.clientHeight){var a=n.querySelector("."+r.activeListItemClass);a&&(n.scrollTop=a.offsetTop-r.tocScrollOffset)}}}}),NX=_a({"../../node_modules/tocbot/src/js/scroll-smooth/index.js"(e){e.initSmoothScrolling=t;function t(n){var a=n.duration,o=n.offset,i=location.hash?d(location.href):location.href;s();function s(){document.body.addEventListener("click",h,!1);function h(m){!u(m.target)||m.target.className.indexOf("no-smooth-scroll")>-1||m.target.href.charAt(m.target.href.length-2)==="#"&&m.target.href.charAt(m.target.href.length-1)==="!"||m.target.className.indexOf(n.linkClass)===-1||r(m.target.hash,{duration:a,offset:o,callback:function(){p(m.target.hash)}})}}function u(h){return h.tagName.toLowerCase()==="a"&&(h.hash.length>0||h.href.charAt(h.href.length-1)==="#")&&(d(h.href)===i||d(h.href)+"#"===i)}function d(h){return h.slice(0,h.lastIndexOf("#"))}function p(h){var m=document.getElementById(h.substring(1));m&&(/^(?:a|select|input|button|textarea)$/i.test(m.tagName)||(m.tabIndex=-1),m.focus())}}function r(n,a){var o=window.pageYOffset,i={duration:a.duration,offset:a.offset||0,callback:a.callback,easing:a.easing||v},s=document.querySelector('[id="'+decodeURI(n).split("#").join("")+'"]')||document.querySelector('[id="'+n.split("#").join("")+'"]'),u=typeof n=="string"?i.offset+(n?s&&s.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):n,d=typeof i.duration=="function"?i.duration(u):i.duration,p,h;requestAnimationFrame(function(g){p=g,m(g)});function m(g){h=g-p,window.scrollTo(0,i.easing(h,o,u,d)),h"u"&&!h)return;var m,f=Object.prototype.hasOwnProperty;function v(){for(var w={},x=0;x({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:ie(.3,e.color.defaultText),fontSize:e.typography.size.s2})),qC=e=>y.createElement(jX,{...e,className:"docblock-emptyblock sb-unstyled"}),VX=_(lh)(({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"}})),UX=_.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"})),il=_.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${fd}`]:{margin:0}})),qX=()=>y.createElement(UX,null,y.createElement(il,null),y.createElement(il,{style:{width:"80%"}}),y.createElement(il,{style:{width:"30%"}}),y.createElement(il,{style:{width:"80%"}})),WC=({isLoading:e,error:t,language:r,code:n,dark:a,format:o=!1,...i})=>{let{typography:s}=j3();if(e)return y.createElement(qX,null);if(t)return y.createElement(qC,null,t);let u=y.createElement(VX,{bordered:!0,copyable:!0,format:o,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return u;let d=a?dd.dark:dd.light;return y.createElement(V3,{theme:pd({...d,fontCode:s.fonts.mono,fontBase:s.fonts.base})},u)},fe=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Vh=600,WX=_.h1(ue,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Vh}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),GX=_.h2(ue,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Vh}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:ie(.25,e.color.defaultText)})),KX=_.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"?ie(.1,e.color.defaultText):ie(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[fe("a")]:{...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}},[fe("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[fe("div")]:t,[fe("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[fe("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[fe("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[fe("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[fe("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[fe("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[fe("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[fe("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[fe("img")]:{maxWidth:"100%"},[fe("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[fe("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[fe("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[fe("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[fe("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[fe("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[fe("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),YX=_.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Vh}px)`]:{}})),JX=({children:e,toc:t})=>y.createElement(YX,{className:"sbdocs sbdocs-wrapper"},y.createElement(KX,{className:"sbdocs sbdocs-content"},e),t),Ru=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}`}),ZX=_(gh)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),XX=_.div({display:"flex",alignItems:"center",gap:4}),QX=_.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`})),eQ=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>y.createElement(ZX,{...o},y.createElement(XX,{key:"left"},e?[1,2,3].map(i=>y.createElement(QX,{key:i})):y.createElement(y.Fragment,null,y.createElement(fn,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},y.createElement(cO,null)),y.createElement(fn,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},y.createElement(dO,null)),y.createElement(fn,{key:"zoomreset",onClick:i=>{i.preventDefault(),a()},title:"Reset zoom"},y.createElement(pO,null))))),GC=l.createContext({scale:1}),{window:tQ}=at,rQ=class extends l.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=tQ.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...o}=this.props;return y.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...o})}},{PREVIEW_URL:nQ}=at,aQ=nQ||"iframe.html",Q1=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,oQ=e=>{let t=l.useRef(),[r,n]=l.useState(!0),[a,o]=l.useState(),{story:i,height:s,autoplay:u,forceInitialArgs:d,renderStoryToElement:p}=e;return l.useEffect(()=>{if(!(i&&t.current))return()=>{};let h=t.current,m=p(i,h,{showMain:()=>{},showError:({title:f,description:v})=>o(new Error(`${f} - ${v}`)),showException:f=>o(f)},{autoplay:u,forceInitialArgs:d});return n(!1),()=>{Promise.resolve().then(()=>m())}},[u,p,i]),a?y.createElement("pre",null,y.createElement(Zz,{error:a})):y.createElement(y.Fragment,null,s?y.createElement("style",null,`#${Q1(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,r&&y.createElement(KC,null),y.createElement("div",{ref:t,id:`${Q1(e)}-inner`,"data-name":i.name}))},iQ=({story:e,height:t="500px"})=>y.createElement("div",{style:{width:"100%",height:t}},y.createElement(GC.Consumer,null,({scale:r})=>y.createElement(rQ,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:wL(aQ,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),lQ=_.strong(({theme:e})=>({color:e.color.orange})),sQ=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?y.createElement(lQ,null,"This story mounts inside of play. Set"," ",y.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):y.createElement("div",{id:Q1(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?y.createElement(oQ,{...e}):y.createElement(iQ,{...e}))},KC=()=>y.createElement(bL,null),uQ=_.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"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),Xy=_(WC)(({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)":Ot(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Ot(.05,e.background.content)}})),cQ=_.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Ru(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),dQ=(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:y.createElement(Xy,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:y.createElement(Xy,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function pQ(e){if(l.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var fQ=_(eQ)({position:"absolute",top:0,left:0,right:0,height:40}),hQ=_.div({overflow:"hidden",position:"relative"}),YC=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:o=!1,isExpanded:i=!1,additionalActions:s,className:u,layout:d="padded",...p})=>{let[h,m]=l.useState(i),{source:f,actionItem:v}=dQ(a,h,m),[g,b]=l.useState(1),C=[u].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),w=a?[v]:[],[x,E]=l.useState(s?[...s]:[]),D=[...w,...x],{window:S}=at,A=l.useCallback(async F=>{let{createCopyToClipboardFunction:T}=await ip(()=>import("./index-ChjQAJHq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url);T()},[]),k=F=>{let T=S.getSelection();T&&T.type==="Range"||(F.preventDefault(),x.filter(R=>R.title==="Copied").length===0&&A(f.props.code).then(()=>{E([...x,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>E(x.filter(R=>R.title!=="Copied")),1500)}))};return y.createElement(cQ,{withSource:a,withToolbar:o,...p,className:C.join(" ")},o&&y.createElement(fQ,{isLoading:e,border:!0,zoom:F=>b(g*F),resetZoom:()=>b(1),storyId:pQ(n),baseUrl:"./iframe.html"}),y.createElement(GC.Provider,{value:{scale:g}},y.createElement(hQ,{className:"docs-story",onCopyCapture:a&&k},y.createElement(uQ,{isColumn:t||!Array.isArray(n),columns:r,layout:d},y.createElement(Vz.Element,{scale:g},Array.isArray(n)?n.map((F,T)=>y.createElement("div",{key:T},F)):y.createElement("div",null,n))),y.createElement(Op,{actionItems:D}))),a&&h&&f)};_(YC)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var mQ=_.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:Hr({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),gQ=({tags:e})=>{let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:y.createElement(y.Fragment,null,y.createElement(mQ,null,y.createElement("tbody",null,n&&y.createElement("tr",{key:"deprecated"},y.createElement("td",{colSpan:2},y.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(o=>y.createElement("tr",{key:o.name},y.createElement("td",null,y.createElement("code",null,o.name)),y.createElement("td",null,o.description))),a&&y.createElement("tr",{key:"returns"},y.createElement("td",null,y.createElement("code",null,"Returns")),y.createElement("td",null,e.returns.description)))))},ep=8,Qy=_.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),vQ=_.span(Hr,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),yQ=_.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),bQ=_.div(Hr,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),wQ=_.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"}})),EQ=_(EO)({marginLeft:4}),xQ=_(Ox)({marginLeft:4}),CQ=()=>y.createElement("span",null,"-"),JC=({text:e,simple:t})=>y.createElement(vQ,{simple:t},e),DQ=TC(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),SQ=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return kG(t)},e3=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,ep)),r.map(n=>y.createElement(JC,{key:n,text:n===""?'""':n}))},AQ=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,o]=l.useState(!1),[i,s]=l.useState(t||!1);if(r==null)return null;let u=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(u))return y.createElement(JC,{text:u});let d=SQ(u),p=d.length;return p>ep?y.createElement(Qy,{isExpanded:i},e3(d,i),y.createElement(yQ,{onClick:()=>s(!i)},i?"Show less...":`Show ${p-ep} more...`)):y.createElement(Qy,null,e3(d))}return y.createElement(C$,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:d=>{o(d)},tooltip:y.createElement(wQ,{width:DQ(n)},y.createElement(lh,{language:"jsx",format:!1},n))},y.createElement(bQ,{className:"sbdocs-expandable"},y.createElement("span",null,u),a?y.createElement(EQ,null):y.createElement(xQ,null)))},od=({value:e,initialExpandedArgs:t})=>e==null?y.createElement(CQ,null):y.createElement(AQ,{value:e,initialExpandedArgs:t}),kQ=_.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`}},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:ie(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${nl(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${nl(.05,e.appBorderColor)} 0 0 0 2px inset`,color:nl(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"?`${nl(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}})),_Q=e=>e==="true",FQ=({name:e,value:t,onChange:r,onBlur:n,onFocus:a,argType:o})=>{var p;let i=l.useCallback(()=>r(!1),[r]),s=!!((p=o==null?void 0:o.table)!=null&&p.readonly);if(t===void 0)return y.createElement(Fn,{variant:"outline",size:"medium",id:ks(e),onClick:i,disabled:s},"Set boolean");let u=Dt(e),d=typeof t=="string"?_Q(t):t;return y.createElement(kQ,{"aria-disabled":s,htmlFor:u,"aria-label":e},y.createElement("input",{id:u,type:"checkbox",onChange:h=>r(h.target.checked),checked:d,role:"switch",disabled:s,name:e,onBlur:n,onFocus:a}),y.createElement("span",{"aria-hidden":"true"},"False"),y.createElement("span",{"aria-hidden":"true"},"True"))},IQ=e=>{let[t,r,n]=e.split("-"),a=new Date;return a.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),a},TQ=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},RQ=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),a=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${a}`},BQ=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},t3=_(Fi.Input)(({readOnly:e})=>({opacity:e?.5:1})),zQ=_.div(({theme:e})=>({flex:1,display:"flex",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}})),$Q=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,argType:o})=>{var v;let[i,s]=l.useState(!0),u=l.useRef(),d=l.useRef(),p=!!((v=o==null?void 0:o.table)!=null&&v.readonly);l.useEffect(()=>{i!==!1&&(u&&u.current&&(u.current.value=t?RQ(t):""),d&&d.current&&(d.current.value=t?BQ(t):""))},[t]);let h=g=>{if(!g.target.value)return r();let b=IQ(g.target.value),C=new Date(t);C.setFullYear(b.getFullYear(),b.getMonth(),b.getDate());let w=C.getTime();w&&r(w),s(!!w)},m=g=>{if(!g.target.value)return r();let b=TQ(g.target.value),C=new Date(t);C.setHours(b.getHours()),C.setMinutes(b.getMinutes());let w=C.getTime();w&&r(w),s(!!w)},f=Dt(e);return y.createElement(zQ,null,y.createElement(t3,{type:"date",max:"9999-12-31",ref:u,id:`${f}-date`,name:`${f}-date`,readOnly:p,onChange:h,onFocus:n,onBlur:a}),y.createElement(t3,{type:"time",id:`${f}-time`,name:`${f}-time`,ref:d,onChange:m,readOnly:p,onFocus:n,onBlur:a}),i?null:y.createElement("div",null,"invalid"))},LQ=_.label({display:"flex"}),OQ=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},MQ=_(Fi.Input)(({readOnly:e})=>({opacity:e?.5:1})),PQ=({name:e,value:t,onChange:r,min:n,max:a,step:o,onBlur:i,onFocus:s,argType:u})=>{var x;let[d,p]=l.useState(typeof t=="number"?t:""),[h,m]=l.useState(!1),[f,v]=l.useState(null),g=!!((x=u==null?void 0:u.table)!=null&&x.readonly),b=l.useCallback(E=>{p(E.target.value);let D=parseFloat(E.target.value);Number.isNaN(D)?v(new Error(`'${E.target.value}' is not a number`)):(r(D),v(null))},[r,v]),C=l.useCallback(()=>{p("0"),r(0),m(!0)},[m]),w=l.useRef(null);return l.useEffect(()=>{h&&w.current&&w.current.select()},[h]),l.useEffect(()=>{d!==(typeof t=="number"?t:"")&&p(t)},[t]),t===void 0?y.createElement(Fn,{variant:"outline",size:"medium",id:ks(e),onClick:C,disabled:g},"Set number"):y.createElement(LQ,null,y.createElement(MQ,{ref:w,id:Dt(e),type:"number",onChange:b,size:"flex",placeholder:"Edit number...",value:d,valid:f?"error":null,autoFocus:h,readOnly:g,name:e,min:n,max:a,step:o,onFocus:s,onBlur:i}))},ZC=(e,t)=>{let r=t&&Object.entries(t).find(([n,a])=>a===e);return r?r[0]:void 0},tp=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],XC=(e,t)=>e&&t&&e.map(r=>t[r]),NQ=_.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),HQ=_.span({"[aria-readonly=true] &":{opacity:.5}}),jQ=_.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),r3=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{var m;if(!t)return jh.warn(`Checkbox with no options: ${e}`),y.createElement(y.Fragment,null,"-");let i=tp(r,t),[s,u]=l.useState(i),d=!!((m=o==null?void 0:o.table)!=null&&m.readonly),p=f=>{let v=f.target.value,g=[...s];g.includes(v)?g.splice(g.indexOf(v),1):g.push(v),n(XC(g,t)),u(g)};l.useEffect(()=>{u(tp(r,t))},[r]);let h=Dt(e);return y.createElement(NQ,{"aria-readonly":d,isInline:a},Object.keys(t).map((f,v)=>{let g=`${h}-${v}`;return y.createElement(jQ,{key:g,htmlFor:g},y.createElement("input",{type:"checkbox",disabled:d,id:g,name:g,value:f,onChange:p,checked:s==null?void 0:s.includes(f)}),y.createElement(HQ,null,f))}))},VQ=_.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),UQ=_.span({"[aria-readonly=true] &":{opacity:.5}}),qQ=_.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),n3=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{var d;if(!t)return jh.warn(`Radio with no options: ${e}`),y.createElement(y.Fragment,null,"-");let i=ZC(r,t),s=Dt(e),u=!!((d=o==null?void 0:o.table)!=null&&d.readonly);return y.createElement(VQ,{"aria-readonly":u,isInline:a},Object.keys(t).map((p,h)=>{let m=`${s}-${h}`;return y.createElement(qQ,{key:m,htmlFor:m},y.createElement("input",{type:"radio",id:m,name:s,disabled:u,value:p,onChange:f=>n(t[f.currentTarget.value]),checked:p===i}),y.createElement(UQ,null,p))}))},WQ={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},QC=_.select(WQ,({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}}})),eD=_.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}}})),a3="Choose option...",GQ=({name:e,value:t,options:r,onChange:n,argType:a})=>{var d;let o=p=>{n(r[p.currentTarget.value])},i=ZC(t,r)||a3,s=Dt(e),u=!!((d=a==null?void 0:a.table)!=null&&d.readonly);return y.createElement(eD,null,y.createElement(Ox,null),y.createElement(QC,{disabled:u,id:s,value:i,onChange:o},y.createElement("option",{key:"no-selection",disabled:!0},a3),Object.keys(r).map(p=>y.createElement("option",{key:p,value:p},p))))},KQ=({name:e,value:t,options:r,onChange:n,argType:a})=>{var d;let o=p=>{let h=Array.from(p.currentTarget.options).filter(m=>m.selected).map(m=>m.value);n(XC(h,r))},i=tp(t,r),s=Dt(e),u=!!((d=a==null?void 0:a.table)!=null&&d.readonly);return y.createElement(eD,null,y.createElement(QC,{disabled:u,id:s,multiple:!0,value:i,onChange:o},Object.keys(r).map(p=>y.createElement("option",{key:p,value:p},p))))},o3=e=>{let{name:t,options:r}=e;return r?e.isMulti?y.createElement(KQ,{...e}):y.createElement(GQ,{...e}):(jh.warn(`Select with no options: ${t}`),y.createElement(y.Fragment,null,"-"))},YQ=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[(t==null?void 0:t[n])||String(n)]=n,r),{}):e,JQ={check:r3,"inline-check":r3,radio:n3,"inline-radio":n3,select:o3,"multi-select":o3},Vn=e=>{let{type:t="select",labels:r,argType:n}=e,a={...e,argType:n,options:n?YQ(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},o=JQ[t];if(o)return y.createElement(o,{...a});throw new Error(`Unknown options type: ${t}`)},Uh="value",ZQ="key",XQ="Error",QQ="Object",eee="Array",tee="String",ree="Number",nee="Boolean",aee="Date",oee="Null",iee="Undefined",lee="Function",see="Symbol",tD="ADD_DELTA_TYPE",rD="REMOVE_DELTA_TYPE",nD="UPDATE_DELTA_TYPE";function un(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 aD(e,t){let r=un(e),n=un(t);return(r==="Function"||n==="Function")&&n!==r}var qh=class extends l.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(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:a}=this.props,{inputRefKey:o,inputRefValue:i}=this.state,s={};if(!t){if(!o.value)return;s.key=o.value}s.newValue=r(!1,n,a,s.key,i.value),e(s)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:a,keyPath:o,deep:i}=this.props,s=l.cloneElement(r,{onClick:this.onSubmit}),u=l.cloneElement(n,{onClick:e}),d=a(Uh,o,i),p=l.cloneElement(d,{placeholder:"Value",ref:this.refInputValue}),h=null;if(!t){let m=a(ZQ,o,i);h=l.cloneElement(m,{placeholder:"Key",ref:this.refInputKey})}return y.createElement("span",{className:"rejt-add-value-node"},h,p,u,s)}};qh.defaultProps={onlyValue:!1,addButtonElement:y.createElement("button",null,"+"),cancelButtonElement:y.createElement("button",null,"c")};var oD=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];t(e,a,o,i).then(()=>{let s={keyPath:a,deep:o,key:e,oldValue:i,type:rD};n.splice(e,1),this.setState({data:n});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(a[a.length-1],n),d(s)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r,nextDeep:n}=this.state,{beforeAddAction:a,logger:o}=this.props;a(t.length,r,n,e).then(()=>{let i=[...t,e];this.setState({data:i}),this.handleAddValueCancel();let{onUpdate:s,onDeltaUpdate:u}=this.props;s(r[r.length-1],i),u({type:tD,keyPath:r,deep:n,key:i.length-1,newValue:e})}).catch(o.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:s}=this.state,u=o[e];a(e,i,s,u,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:d,onDeltaUpdate:p}=this.props;d(i[i.length-1],o),p({type:nD,keyPath:i,deep:s,key:e,newValue:t,oldValue:u}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:a,readOnly:o,getStyle:i,dataType:s,minusMenuElement:u}=this.props,{minus:d,collapsed:p}=i(e,t,r,n,s),h=o(e,t,r,n,s),m=l.cloneElement(u,{onClick:a,className:"rejt-minus-menu",style:d});return y.createElement("span",{className:"rejt-collapsed"},y.createElement("span",{className:"rejt-collapsed-text",style:p,onClick:this.handleCollapseMode},"[...] ",t.length," ",t.length===1?"item":"items"),!h&&m)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:a,nextDeep:o}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:u,readOnly:d,getStyle:p,dataType:h,addButtonElement:m,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:b,minusMenuElement:C,plusMenuElement:w,beforeRemoveAction:x,beforeAddAction:E,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}=this.props,{minus:k,plus:F,delimiter:T,ul:R,addForm:$}=p(e,t,r,n,h),z=d(e,t,r,n,h),O=l.cloneElement(w,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:F}),L=l.cloneElement(C,{onClick:s,className:"rejt-minus-menu",style:k});return y.createElement("span",{className:"rejt-not-collapsed"},y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:T},"["),!a&&O,y.createElement("ul",{className:"rejt-not-collapsed-list",style:R},t.map((M,j)=>y.createElement(Bu,{key:j,name:j.toString(),data:M,keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveItem(j),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:u,readOnly:d,getStyle:p,addButtonElement:m,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:b,minusMenuElement:C,plusMenuElement:w,beforeRemoveAction:x,beforeAddAction:E,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}))),!z&&a&&y.createElement("div",{className:"rejt-add-form",style:$},y.createElement(qh,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:m,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:A})),y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:T},"]"),!z&&L)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{dataType:o,getStyle:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),u=i(e,r,n,a,o);return y.createElement("div",{className:"rejt-array-node"},y.createElement("span",{onClick:this.handleCollapseMode},y.createElement("span",{className:"rejt-name",style:u.name},e," :"," ")),s)}};oD.defaultProps={keyPath:[],deep:0,minusMenuElement:y.createElement("span",null," - "),plusMenuElement:y.createElement("span",null," + ")};var iD=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:s}=this.props,u=i(r,n,a,o,s);e&&!u&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:s}=this.state;if(!o)return;let u=n(!0,a,s,i,o.value);e({value:u,key:i}).then(()=>{aD(t,u)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:s,dataType:u,getStyle:d,editButtonElement:p,cancelButtonElement:h,textareaElementGenerator:m,minusMenuElement:f,keyPath:v}=this.props,g=d(e,i,n,a,u),b=null,C=null,w=s(e,i,n,a,u);if(r&&!w){let x=m(Uh,v,a,e,i,u),E=l.cloneElement(p,{onClick:this.handleEdit}),D=l.cloneElement(h,{onClick:this.handleCancelEdit}),S=l.cloneElement(x,{ref:this.refInput,defaultValue:i});b=y.createElement("span",{className:"rejt-edit-form",style:g.editForm},S," ",D,E),C=null}else{b=y.createElement("span",{className:"rejt-value",style:g.value,onClick:w?null:this.handleEditMode},t);let x=l.cloneElement(f,{onClick:o,className:"rejt-minus-menu",style:g.minus});C=w?null:x}return y.createElement("li",{className:"rejt-function-value-node",style:g.li},y.createElement("span",{className:"rejt-name",style:g.name},e," :"," "),b,C)}};iD.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:y.createElement("button",null,"e"),cancelButtonElement:y.createElement("button",null,"c"),minusMenuElement:y.createElement("span",null," - ")};var Bu=class extends l.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:a,handleRemove:o,handleUpdateValue:i,onUpdate:s,onDeltaUpdate:u,readOnly:d,getStyle:p,addButtonElement:h,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:C,beforeRemoveAction:w,beforeAddAction:x,beforeUpdateAction:E,logger:D,onSubmitValueParser:S}=this.props,A=()=>!0,k=un(e);switch(k){case XQ:return y.createElement(rp,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:A,dataType:k,getStyle:p,addButtonElement:h,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:C,beforeRemoveAction:w,beforeAddAction:x,beforeUpdateAction:E,logger:D,onSubmitValueParser:S});case QQ:return y.createElement(rp,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:d,dataType:k,getStyle:p,addButtonElement:h,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:C,beforeRemoveAction:w,beforeAddAction:x,beforeUpdateAction:E,logger:D,onSubmitValueParser:S});case eee:return y.createElement(oD,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:d,dataType:k,getStyle:p,addButtonElement:h,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:C,beforeRemoveAction:w,beforeAddAction:x,beforeUpdateAction:E,logger:D,onSubmitValueParser:S});case tee:return y.createElement(Dr,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case ree:return y.createElement(Dr,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case nee:return y.createElement(Dr,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case aee:return y.createElement(Dr,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:A,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case oee:return y.createElement(Dr,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case iee:return y.createElement(Dr,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case lee:return y.createElement(iD,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,textareaElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case see:return y.createElement(Dr,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:A,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});default:return null}}};Bu.defaultProps={keyPath:[],deep:0};var rp=class extends l.Component{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath,e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n,nextDeep:a}=this.state,{beforeAddAction:o,logger:i}=this.props;o(e,n,a,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:s,onDeltaUpdate:u}=this.props;s(n[n.length-1],r),u({type:tD,keyPath:n,deep:a,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];t(e,a,o,i).then(()=>{let s={keyPath:a,deep:o,key:e,oldValue:i,type:rD};delete n[e],this.setState({data:n});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(a[a.length-1],n),d(s)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:s}=this.state,u=o[e];a(e,i,s,u,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:d,onDeltaUpdate:p}=this.props;d(i[i.length-1],o),p({type:nD,keyPath:i,deep:s,key:e,newValue:t,oldValue:u}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:a,readOnly:o,dataType:i,getStyle:s,minusMenuElement:u}=this.props,{minus:d,collapsed:p}=s(e,n,t,r,i),h=Object.getOwnPropertyNames(n),m=o(e,n,t,r,i),f=l.cloneElement(u,{onClick:a,className:"rejt-minus-menu",style:d});return y.createElement("span",{className:"rejt-collapsed"},y.createElement("span",{className:"rejt-collapsed-text",style:p,onClick:this.handleCollapseMode},"{...}"," ",h.length," ",h.length===1?"key":"keys"),!m&&f)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:a,addFormVisible:o}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:u,readOnly:d,getStyle:p,dataType:h,addButtonElement:m,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:b,minusMenuElement:C,plusMenuElement:w,beforeRemoveAction:x,beforeAddAction:E,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}=this.props,{minus:k,plus:F,addForm:T,ul:R,delimiter:$}=p(e,t,r,n,h),z=Object.getOwnPropertyNames(t),O=d(e,t,r,n,h),L=l.cloneElement(w,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:F}),M=l.cloneElement(C,{onClick:s,className:"rejt-minus-menu",style:k}),j=z.map(G=>y.createElement(Bu,{key:G,name:G,data:t[G],keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveValue(G),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:u,readOnly:d,getStyle:p,addButtonElement:m,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:b,minusMenuElement:C,plusMenuElement:w,beforeRemoveAction:x,beforeAddAction:E,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}));return y.createElement("span",{className:"rejt-not-collapsed"},y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:$},"{"),!O&&L,y.createElement("ul",{className:"rejt-not-collapsed-list",style:R},j),!O&&o&&y.createElement("div",{className:"rejt-add-form",style:T},y.createElement(qh,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:m,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:A})),y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:$},"}"),!O&&M)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{getStyle:o,dataType:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),u=o(e,r,n,a,i);return y.createElement("div",{className:"rejt-object-node"},y.createElement("span",{onClick:this.handleCollapseMode},y.createElement("span",{className:"rejt-name",style:u.name},e," :"," ")),s)}};rp.defaultProps={keyPath:[],deep:0,minusMenuElement:y.createElement("span",null," - "),plusMenuElement:y.createElement("span",null," + ")};var Dr=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:s}=this.props,u=i(r,n,a,o,s);e&&!u&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:s}=this.state;if(!o)return;let u=n(!0,a,s,i,o.value);e({value:u,key:i}).then(()=>{aD(t,u)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:s,dataType:u,getStyle:d,editButtonElement:p,cancelButtonElement:h,inputElementGenerator:m,minusMenuElement:f,keyPath:v}=this.props,g=d(e,i,n,a,u),b=s(e,i,n,a,u),C=r&&!b,w=m(Uh,v,a,e,i,u),x=l.cloneElement(p,{onClick:this.handleEdit}),E=l.cloneElement(h,{onClick:this.handleCancelEdit}),D=l.cloneElement(w,{ref:this.refInput,defaultValue:JSON.stringify(i)}),S=l.cloneElement(f,{onClick:o,className:"rejt-minus-menu",style:g.minus});return y.createElement("li",{className:"rejt-value-node",style:g.li},y.createElement("span",{className:"rejt-name",style:g.name},e," : "),C?y.createElement("span",{className:"rejt-edit-form",style:g.editForm},D," ",E,x):y.createElement("span",{className:"rejt-value",style:g.value,onClick:b?null:this.handleEditMode},String(t)),!b&&!C&&S)}};Dr.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:y.createElement("button",null,"e"),cancelButtonElement:y.createElement("button",null,"c"),minusMenuElement:y.createElement("span",null," - ")};var uee={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},cee={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},dee={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}};function pee(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var lD=class extends l.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){this.setState({data:t}),this.props.onFullyUpdate(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:a,getStyle:o,addButtonElement:i,cancelButtonElement:s,editButtonElement:u,inputElement:d,textareaElement:p,minusMenuElement:h,plusMenuElement:m,beforeRemoveAction:f,beforeAddAction:v,beforeUpdateAction:g,logger:b,onSubmitValueParser:C,fallback:w=null}=this.props,x=un(e),E=a;un(a)==="Boolean"&&(E=()=>a);let D=d;d&&un(d)!=="Function"&&(D=()=>d);let S=p;return p&&un(p)!=="Function"&&(S=()=>p),x==="Object"||x==="Array"?y.createElement("div",{className:"rejt-tree"},y.createElement(Bu,{data:e,name:t,deep:-1,isCollapsed:r,onUpdate:this.onUpdate,onDeltaUpdate:n,readOnly:E,getStyle:o,addButtonElement:i,cancelButtonElement:s,editButtonElement:u,inputElementGenerator:D,textareaElementGenerator:S,minusMenuElement:h,plusMenuElement:m,handleRemove:this.removeRoot,beforeRemoveAction:f,beforeAddAction:v,beforeUpdateAction:g,logger:b,onSubmitValueParser:C})):w}};lD.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,a)=>{switch(a){case"Object":case"Error":return uee;case"Array":return cee;default:return dee}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,a)=>pee(a),inputElement:()=>y.createElement("input",null),textareaElement:()=>y.createElement("textarea",null),fallback:null};var{window:fee}=at,hee=_.div(({theme:e})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".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-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".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.color.lighter,borderColor:e.appBorderColor}})),id=_.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",order:t?"initial":9})),mee=_(gO)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.ancillary},"svg + &":{marginLeft:0}})),gee=_(vO)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.negative},"svg + &":{marginLeft:0}})),i3=_.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}`}})),vee=_(fn)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),yee=_(Fi.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"}})),bee={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},wee=e=>{e.currentTarget.dispatchEvent(new fee.KeyboardEvent("keydown",bee))},Eee=e=>{e.currentTarget.select()},xee=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),l3=({name:e,value:t,onChange:r,argType:n})=>{var x;let a=j3(),o=l.useMemo(()=>t&&pJ(t),[t]),i=o!=null,[s,u]=l.useState(!i),[d,p]=l.useState(null),h=!!((x=n==null?void 0:n.table)!=null&&x.readonly),m=l.useCallback(E=>{try{E&&r(JSON.parse(E)),p(void 0)}catch(D){p(D)}},[r]),[f,v]=l.useState(!1),g=l.useCallback(()=>{r({}),v(!0)},[v]),b=l.useRef(null);if(l.useEffect(()=>{f&&b.current&&b.current.select()},[f]),!i)return y.createElement(Fn,{disabled:h,id:ks(e),onClick:g},"Set object");let C=y.createElement(yee,{ref:b,id:Dt(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:E=>m(E.target.value),placeholder:"Edit JSON string...",autoFocus:f,valid:d?"error":null,readOnly:h}),w=Array.isArray(t)||typeof t=="object"&&(t==null?void 0:t.constructor)===Object;return y.createElement(hee,{"aria-readonly":h},w&&y.createElement(vee,{onClick:E=>{E.preventDefault(),u(D=>!D)}},s?y.createElement(hO,null):y.createElement(fO,null),y.createElement("span",null,"RAW")),s?C:y.createElement(lD,{readOnly:h||!w,isCollapsed:w?void 0:()=>!0,data:o,rootName:e,onFullyUpdate:r,getStyle:xee(a),cancelButtonElement:y.createElement(id,{type:"button"},"Cancel"),editButtonElement:y.createElement(id,{type:"submit"},"Save"),addButtonElement:y.createElement(id,{type:"submit",primary:!0},"Save"),plusMenuElement:y.createElement(mee,null),minusMenuElement:y.createElement(gee,null),inputElement:(E,D,S,A)=>A?y.createElement(i3,{onFocus:Eee,onBlur:wee}):y.createElement(i3,null),fallback:C}))},Cee=_.input(({theme:e,min:t,max:r,value:n,disabled:a})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right, + */const{global:at}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:TX,once:RX,logger:jh}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{filterArgTypes:Yy,composeConfigs:Lre,Preview:Ore,DocsContext:Mre}=__STORYBOOK_MODULE_PREVIEW_API__,{GLOBALS_UPDATED:Jy,STORY_ARGS_UPDATED:Zy,UPDATE_STORY_ARGS:BX,RESET_STORY_ARGS:zX,NAVIGATE_URL:$X}=__STORYBOOK_MODULE_CORE_EVENTS__;__STORYBOOK_MODULE_CHANNELS__;var LX=_a({"../../node_modules/tocbot/src/js/default-options.js"(e,t){t.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",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(r){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(r){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0}}}),OX=_a({"../../node_modules/tocbot/src/js/build-html.js"(e,t){t.exports=function(r){var n=[].forEach,a=[].some,o=document.body,i,s=!0,u=" ";function d(E,D){var S=D.appendChild(h(E));if(E.children.length){var A=m(E.isCollapsed);E.children.forEach(function(k){d(k,A)}),S.appendChild(A)}}function p(E,D){var S=!1,A=m(S);if(D.forEach(function(k){d(k,A)}),i=E||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),D.length===0?i:i.appendChild(A)}function h(E){var D=document.createElement("li"),S=document.createElement("a");return r.listItemClass&&D.setAttribute("class",r.listItemClass),r.onClick&&(S.onclick=r.onClick),r.includeTitleTags&&S.setAttribute("title",E.textContent),r.includeHtml&&E.childNodes.length?n.call(E.childNodes,function(A){S.appendChild(A.cloneNode(!0))}):S.textContent=E.textContent,S.setAttribute("href",r.basePath+"#"+E.id),S.setAttribute("class",r.linkClass+u+"node-name--"+E.nodeName+u+r.extraLinkClasses),D.appendChild(S),D}function m(E){var D=r.orderedList?"ol":"ul",S=document.createElement(D),A=r.listClass+u+r.extraListClasses;return E&&(A=A+u+r.collapsibleClass,A=A+u+r.isCollapsedClass),S.setAttribute("class",A),S}function f(){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var E;E=document.querySelector(r.scrollContainer).scrollTop}else E=document.documentElement.scrollTop||o.scrollTop;var D=document.querySelector(r.positionFixedSelector);r.fixedSidebarOffset==="auto"&&(r.fixedSidebarOffset=i.offsetTop),E>r.fixedSidebarOffset?D.className.indexOf(r.positionFixedClass)===-1&&(D.className+=u+r.positionFixedClass):D.className=D.className.replace(u+r.positionFixedClass,"")}function v(E){var D=0;return E!==null&&(D=E.offsetTop,r.hasInnerContainers&&(D+=v(E.offsetParent))),D}function g(E,D){return E&&E.className!==D&&(E.className=D),E}function b(E){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var D;D=document.querySelector(r.scrollContainer).scrollTop}else D=document.documentElement.scrollTop||o.scrollTop;r.positionFixedSelector&&f();var S=E,A;if(s&&i!==null&&S.length>0){a.call(S,function(O,L){if(v(O)>D+r.headingsOffset+10){var M=L===0?L:L-1;return A=S[M],!0}else if(L===S.length-1)return A=S[S.length-1],!0});var k=i.querySelector("."+r.activeLinkClass),F=i.querySelector("."+r.linkClass+".node-name--"+A.nodeName+'[href="'+r.basePath+"#"+A.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")+'"]');if(k===F)return;var T=i.querySelectorAll("."+r.linkClass);n.call(T,function(O){g(O,O.className.replace(u+r.activeLinkClass,""))});var R=i.querySelectorAll("."+r.listItemClass);n.call(R,function(O){g(O,O.className.replace(u+r.activeListItemClass,""))}),F&&F.className.indexOf(r.activeLinkClass)===-1&&(F.className+=u+r.activeLinkClass);var $=F&&F.parentNode;$&&$.className.indexOf(r.activeListItemClass)===-1&&($.className+=u+r.activeListItemClass);var z=i.querySelectorAll("."+r.listClass+"."+r.collapsibleClass);n.call(z,function(O){O.className.indexOf(r.isCollapsedClass)===-1&&(O.className+=u+r.isCollapsedClass)}),F&&F.nextSibling&&F.nextSibling.className.indexOf(r.isCollapsedClass)!==-1&&g(F.nextSibling,F.nextSibling.className.replace(u+r.isCollapsedClass,"")),C(F&&F.parentNode.parentNode)}}function C(E){return E&&E.className.indexOf(r.collapsibleClass)!==-1&&E.className.indexOf(r.isCollapsedClass)!==-1?(g(E,E.className.replace(u+r.isCollapsedClass,"")),C(E.parentNode.parentNode)):E}function w(E){var D=E.target||E.srcElement;typeof D.className!="string"||D.className.indexOf(r.linkClass)===-1||(s=!1)}function x(){s=!0}return{enableTocAnimation:x,disableTocAnimation:w,render:p,updateToc:b}}}}),MX=_a({"../../node_modules/tocbot/src/js/parse-content.js"(e,t){t.exports=function(r){var n=[].reduce;function a(h){return h[h.length-1]}function o(h){return+h.nodeName.toUpperCase().replace("H","")}function i(h){try{return h instanceof window.HTMLElement||h instanceof window.parent.HTMLElement}catch{return h instanceof window.HTMLElement}}function s(h){if(!i(h))return h;if(r.ignoreHiddenElements&&(!h.offsetHeight||!h.offsetParent))return null;let m=h.getAttribute("data-heading-label")||(r.headingLabelCallback?String(r.headingLabelCallback(h.innerText)):(h.innerText||h.textContent).trim());var f={id:h.id,children:[],nodeName:h.nodeName,headingLevel:o(h),textContent:m};return r.includeHtml&&(f.childNodes=h.childNodes),r.headingObjectCallback?r.headingObjectCallback(f,h):f}function u(h,m){for(var f=s(h),v=f.headingLevel,g=m,b=a(g),C=b?b.headingLevel:0,w=v-C;w>0&&(b=a(g),!(b&&v===b.headingLevel));)b&&b.children!==void 0&&(g=b.children),w--;return v>=r.collapseDepth&&(f.isCollapsed=!0),g.push(f),g}function d(h,m){var f=m;r.ignoreSelector&&(f=m.split(",").map(function(v){return v.trim()+":not("+r.ignoreSelector+")"}));try{return h.querySelectorAll(f)}catch{return console.warn("Headers not found with selector: "+f),null}}function p(h){return n.call(h,function(m,f){var v=s(f);return v&&u(v,m.nest),m},{nest:[]})}return{nestHeadingsArray:p,selectHeadings:d}}}}),PX=_a({"../../node_modules/tocbot/src/js/update-toc-scroll.js"(e,t){t.exports=function(r){var n=r.tocElement||document.querySelector(r.tocSelector);if(n&&n.scrollHeight>n.clientHeight){var a=n.querySelector("."+r.activeListItemClass);a&&(n.scrollTop=a.offsetTop-r.tocScrollOffset)}}}}),NX=_a({"../../node_modules/tocbot/src/js/scroll-smooth/index.js"(e){e.initSmoothScrolling=t;function t(n){var a=n.duration,o=n.offset,i=location.hash?d(location.href):location.href;s();function s(){document.body.addEventListener("click",h,!1);function h(m){!u(m.target)||m.target.className.indexOf("no-smooth-scroll")>-1||m.target.href.charAt(m.target.href.length-2)==="#"&&m.target.href.charAt(m.target.href.length-1)==="!"||m.target.className.indexOf(n.linkClass)===-1||r(m.target.hash,{duration:a,offset:o,callback:function(){p(m.target.hash)}})}}function u(h){return h.tagName.toLowerCase()==="a"&&(h.hash.length>0||h.href.charAt(h.href.length-1)==="#")&&(d(h.href)===i||d(h.href)+"#"===i)}function d(h){return h.slice(0,h.lastIndexOf("#"))}function p(h){var m=document.getElementById(h.substring(1));m&&(/^(?:a|select|input|button|textarea)$/i.test(m.tagName)||(m.tabIndex=-1),m.focus())}}function r(n,a){var o=window.pageYOffset,i={duration:a.duration,offset:a.offset||0,callback:a.callback,easing:a.easing||v},s=document.querySelector('[id="'+decodeURI(n).split("#").join("")+'"]')||document.querySelector('[id="'+n.split("#").join("")+'"]'),u=typeof n=="string"?i.offset+(n?s&&s.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):n,d=typeof i.duration=="function"?i.duration(u):i.duration,p,h;requestAnimationFrame(function(g){p=g,m(g)});function m(g){h=g-p,window.scrollTo(0,i.easing(h,o,u,d)),h"u"&&!h)return;var m,f=Object.prototype.hasOwnProperty;function v(){for(var w={},x=0;x({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:ie(.3,e.color.defaultText),fontSize:e.typography.size.s2})),qC=e=>y.createElement(jX,{...e,className:"docblock-emptyblock sb-unstyled"}),VX=_(lh)(({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"}})),UX=_.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"})),il=_.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${fd}`]:{margin:0}})),qX=()=>y.createElement(UX,null,y.createElement(il,null),y.createElement(il,{style:{width:"80%"}}),y.createElement(il,{style:{width:"30%"}}),y.createElement(il,{style:{width:"80%"}})),WC=({isLoading:e,error:t,language:r,code:n,dark:a,format:o=!1,...i})=>{let{typography:s}=j3();if(e)return y.createElement(qX,null);if(t)return y.createElement(qC,null,t);let u=y.createElement(VX,{bordered:!0,copyable:!0,format:o,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return u;let d=a?dd.dark:dd.light;return y.createElement(V3,{theme:pd({...d,fontCode:s.fonts.mono,fontBase:s.fonts.base})},u)},fe=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Vh=600,WX=_.h1(ue,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Vh}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),GX=_.h2(ue,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Vh}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:ie(.25,e.color.defaultText)})),KX=_.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"?ie(.1,e.color.defaultText):ie(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[fe("a")]:{...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}},[fe("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[fe("div")]:t,[fe("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[fe("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[fe("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[fe("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[fe("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[fe("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[fe("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[fe("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[fe("img")]:{maxWidth:"100%"},[fe("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[fe("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[fe("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[fe("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[fe("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[fe("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[fe("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),YX=_.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Vh}px)`]:{}})),JX=({children:e,toc:t})=>y.createElement(YX,{className:"sbdocs sbdocs-wrapper"},y.createElement(KX,{className:"sbdocs sbdocs-content"},e),t),Ru=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}`}),ZX=_(gh)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),XX=_.div({display:"flex",alignItems:"center",gap:4}),QX=_.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`})),eQ=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>y.createElement(ZX,{...o},y.createElement(XX,{key:"left"},e?[1,2,3].map(i=>y.createElement(QX,{key:i})):y.createElement(y.Fragment,null,y.createElement(fn,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},y.createElement(cO,null)),y.createElement(fn,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},y.createElement(dO,null)),y.createElement(fn,{key:"zoomreset",onClick:i=>{i.preventDefault(),a()},title:"Reset zoom"},y.createElement(pO,null))))),GC=l.createContext({scale:1}),{window:tQ}=at,rQ=class extends l.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=tQ.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...o}=this.props;return y.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...o})}},{PREVIEW_URL:nQ}=at,aQ=nQ||"iframe.html",Q1=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,oQ=e=>{let t=l.useRef(),[r,n]=l.useState(!0),[a,o]=l.useState(),{story:i,height:s,autoplay:u,forceInitialArgs:d,renderStoryToElement:p}=e;return l.useEffect(()=>{if(!(i&&t.current))return()=>{};let h=t.current,m=p(i,h,{showMain:()=>{},showError:({title:f,description:v})=>o(new Error(`${f} - ${v}`)),showException:f=>o(f)},{autoplay:u,forceInitialArgs:d});return n(!1),()=>{Promise.resolve().then(()=>m())}},[u,p,i]),a?y.createElement("pre",null,y.createElement(Zz,{error:a})):y.createElement(y.Fragment,null,s?y.createElement("style",null,`#${Q1(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,r&&y.createElement(KC,null),y.createElement("div",{ref:t,id:`${Q1(e)}-inner`,"data-name":i.name}))},iQ=({story:e,height:t="500px"})=>y.createElement("div",{style:{width:"100%",height:t}},y.createElement(GC.Consumer,null,({scale:r})=>y.createElement(rQ,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:wL(aQ,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),lQ=_.strong(({theme:e})=>({color:e.color.orange})),sQ=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?y.createElement(lQ,null,"This story mounts inside of play. Set"," ",y.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):y.createElement("div",{id:Q1(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?y.createElement(oQ,{...e}):y.createElement(iQ,{...e}))},KC=()=>y.createElement(bL,null),uQ=_.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"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),Xy=_(WC)(({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)":Ot(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Ot(.05,e.background.content)}})),cQ=_.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Ru(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),dQ=(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:y.createElement(Xy,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:y.createElement(Xy,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function pQ(e){if(l.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var fQ=_(eQ)({position:"absolute",top:0,left:0,right:0,height:40}),hQ=_.div({overflow:"hidden",position:"relative"}),YC=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:o=!1,isExpanded:i=!1,additionalActions:s,className:u,layout:d="padded",...p})=>{let[h,m]=l.useState(i),{source:f,actionItem:v}=dQ(a,h,m),[g,b]=l.useState(1),C=[u].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),w=a?[v]:[],[x,E]=l.useState(s?[...s]:[]),D=[...w,...x],{window:S}=at,A=l.useCallback(async F=>{let{createCopyToClipboardFunction:T}=await ip(()=>import("./index-BIpICc0P.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url);T()},[]),k=F=>{let T=S.getSelection();T&&T.type==="Range"||(F.preventDefault(),x.filter(R=>R.title==="Copied").length===0&&A(f.props.code).then(()=>{E([...x,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>E(x.filter(R=>R.title!=="Copied")),1500)}))};return y.createElement(cQ,{withSource:a,withToolbar:o,...p,className:C.join(" ")},o&&y.createElement(fQ,{isLoading:e,border:!0,zoom:F=>b(g*F),resetZoom:()=>b(1),storyId:pQ(n),baseUrl:"./iframe.html"}),y.createElement(GC.Provider,{value:{scale:g}},y.createElement(hQ,{className:"docs-story",onCopyCapture:a&&k},y.createElement(uQ,{isColumn:t||!Array.isArray(n),columns:r,layout:d},y.createElement(Vz.Element,{scale:g},Array.isArray(n)?n.map((F,T)=>y.createElement("div",{key:T},F)):y.createElement("div",null,n))),y.createElement(Op,{actionItems:D}))),a&&h&&f)};_(YC)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var mQ=_.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:Hr({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),gQ=({tags:e})=>{let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:y.createElement(y.Fragment,null,y.createElement(mQ,null,y.createElement("tbody",null,n&&y.createElement("tr",{key:"deprecated"},y.createElement("td",{colSpan:2},y.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(o=>y.createElement("tr",{key:o.name},y.createElement("td",null,y.createElement("code",null,o.name)),y.createElement("td",null,o.description))),a&&y.createElement("tr",{key:"returns"},y.createElement("td",null,y.createElement("code",null,"Returns")),y.createElement("td",null,e.returns.description)))))},ep=8,Qy=_.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),vQ=_.span(Hr,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),yQ=_.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),bQ=_.div(Hr,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),wQ=_.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"}})),EQ=_(EO)({marginLeft:4}),xQ=_(Ox)({marginLeft:4}),CQ=()=>y.createElement("span",null,"-"),JC=({text:e,simple:t})=>y.createElement(vQ,{simple:t},e),DQ=TC(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),SQ=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return kG(t)},e3=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,ep)),r.map(n=>y.createElement(JC,{key:n,text:n===""?'""':n}))},AQ=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,o]=l.useState(!1),[i,s]=l.useState(t||!1);if(r==null)return null;let u=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(u))return y.createElement(JC,{text:u});let d=SQ(u),p=d.length;return p>ep?y.createElement(Qy,{isExpanded:i},e3(d,i),y.createElement(yQ,{onClick:()=>s(!i)},i?"Show less...":`Show ${p-ep} more...`)):y.createElement(Qy,null,e3(d))}return y.createElement(C$,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:d=>{o(d)},tooltip:y.createElement(wQ,{width:DQ(n)},y.createElement(lh,{language:"jsx",format:!1},n))},y.createElement(bQ,{className:"sbdocs-expandable"},y.createElement("span",null,u),a?y.createElement(EQ,null):y.createElement(xQ,null)))},od=({value:e,initialExpandedArgs:t})=>e==null?y.createElement(CQ,null):y.createElement(AQ,{value:e,initialExpandedArgs:t}),kQ=_.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`}},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:ie(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${nl(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${nl(.05,e.appBorderColor)} 0 0 0 2px inset`,color:nl(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"?`${nl(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}})),_Q=e=>e==="true",FQ=({name:e,value:t,onChange:r,onBlur:n,onFocus:a,argType:o})=>{var p;let i=l.useCallback(()=>r(!1),[r]),s=!!((p=o==null?void 0:o.table)!=null&&p.readonly);if(t===void 0)return y.createElement(Fn,{variant:"outline",size:"medium",id:ks(e),onClick:i,disabled:s},"Set boolean");let u=Dt(e),d=typeof t=="string"?_Q(t):t;return y.createElement(kQ,{"aria-disabled":s,htmlFor:u,"aria-label":e},y.createElement("input",{id:u,type:"checkbox",onChange:h=>r(h.target.checked),checked:d,role:"switch",disabled:s,name:e,onBlur:n,onFocus:a}),y.createElement("span",{"aria-hidden":"true"},"False"),y.createElement("span",{"aria-hidden":"true"},"True"))},IQ=e=>{let[t,r,n]=e.split("-"),a=new Date;return a.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),a},TQ=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},RQ=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),a=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${a}`},BQ=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},t3=_(Fi.Input)(({readOnly:e})=>({opacity:e?.5:1})),zQ=_.div(({theme:e})=>({flex:1,display:"flex",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}})),$Q=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,argType:o})=>{var v;let[i,s]=l.useState(!0),u=l.useRef(),d=l.useRef(),p=!!((v=o==null?void 0:o.table)!=null&&v.readonly);l.useEffect(()=>{i!==!1&&(u&&u.current&&(u.current.value=t?RQ(t):""),d&&d.current&&(d.current.value=t?BQ(t):""))},[t]);let h=g=>{if(!g.target.value)return r();let b=IQ(g.target.value),C=new Date(t);C.setFullYear(b.getFullYear(),b.getMonth(),b.getDate());let w=C.getTime();w&&r(w),s(!!w)},m=g=>{if(!g.target.value)return r();let b=TQ(g.target.value),C=new Date(t);C.setHours(b.getHours()),C.setMinutes(b.getMinutes());let w=C.getTime();w&&r(w),s(!!w)},f=Dt(e);return y.createElement(zQ,null,y.createElement(t3,{type:"date",max:"9999-12-31",ref:u,id:`${f}-date`,name:`${f}-date`,readOnly:p,onChange:h,onFocus:n,onBlur:a}),y.createElement(t3,{type:"time",id:`${f}-time`,name:`${f}-time`,ref:d,onChange:m,readOnly:p,onFocus:n,onBlur:a}),i?null:y.createElement("div",null,"invalid"))},LQ=_.label({display:"flex"}),OQ=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},MQ=_(Fi.Input)(({readOnly:e})=>({opacity:e?.5:1})),PQ=({name:e,value:t,onChange:r,min:n,max:a,step:o,onBlur:i,onFocus:s,argType:u})=>{var x;let[d,p]=l.useState(typeof t=="number"?t:""),[h,m]=l.useState(!1),[f,v]=l.useState(null),g=!!((x=u==null?void 0:u.table)!=null&&x.readonly),b=l.useCallback(E=>{p(E.target.value);let D=parseFloat(E.target.value);Number.isNaN(D)?v(new Error(`'${E.target.value}' is not a number`)):(r(D),v(null))},[r,v]),C=l.useCallback(()=>{p("0"),r(0),m(!0)},[m]),w=l.useRef(null);return l.useEffect(()=>{h&&w.current&&w.current.select()},[h]),l.useEffect(()=>{d!==(typeof t=="number"?t:"")&&p(t)},[t]),t===void 0?y.createElement(Fn,{variant:"outline",size:"medium",id:ks(e),onClick:C,disabled:g},"Set number"):y.createElement(LQ,null,y.createElement(MQ,{ref:w,id:Dt(e),type:"number",onChange:b,size:"flex",placeholder:"Edit number...",value:d,valid:f?"error":null,autoFocus:h,readOnly:g,name:e,min:n,max:a,step:o,onFocus:s,onBlur:i}))},ZC=(e,t)=>{let r=t&&Object.entries(t).find(([n,a])=>a===e);return r?r[0]:void 0},tp=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],XC=(e,t)=>e&&t&&e.map(r=>t[r]),NQ=_.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),HQ=_.span({"[aria-readonly=true] &":{opacity:.5}}),jQ=_.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),r3=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{var m;if(!t)return jh.warn(`Checkbox with no options: ${e}`),y.createElement(y.Fragment,null,"-");let i=tp(r,t),[s,u]=l.useState(i),d=!!((m=o==null?void 0:o.table)!=null&&m.readonly),p=f=>{let v=f.target.value,g=[...s];g.includes(v)?g.splice(g.indexOf(v),1):g.push(v),n(XC(g,t)),u(g)};l.useEffect(()=>{u(tp(r,t))},[r]);let h=Dt(e);return y.createElement(NQ,{"aria-readonly":d,isInline:a},Object.keys(t).map((f,v)=>{let g=`${h}-${v}`;return y.createElement(jQ,{key:g,htmlFor:g},y.createElement("input",{type:"checkbox",disabled:d,id:g,name:g,value:f,onChange:p,checked:s==null?void 0:s.includes(f)}),y.createElement(HQ,null,f))}))},VQ=_.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),UQ=_.span({"[aria-readonly=true] &":{opacity:.5}}),qQ=_.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),n3=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{var d;if(!t)return jh.warn(`Radio with no options: ${e}`),y.createElement(y.Fragment,null,"-");let i=ZC(r,t),s=Dt(e),u=!!((d=o==null?void 0:o.table)!=null&&d.readonly);return y.createElement(VQ,{"aria-readonly":u,isInline:a},Object.keys(t).map((p,h)=>{let m=`${s}-${h}`;return y.createElement(qQ,{key:m,htmlFor:m},y.createElement("input",{type:"radio",id:m,name:s,disabled:u,value:p,onChange:f=>n(t[f.currentTarget.value]),checked:p===i}),y.createElement(UQ,null,p))}))},WQ={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},QC=_.select(WQ,({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}}})),eD=_.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}}})),a3="Choose option...",GQ=({name:e,value:t,options:r,onChange:n,argType:a})=>{var d;let o=p=>{n(r[p.currentTarget.value])},i=ZC(t,r)||a3,s=Dt(e),u=!!((d=a==null?void 0:a.table)!=null&&d.readonly);return y.createElement(eD,null,y.createElement(Ox,null),y.createElement(QC,{disabled:u,id:s,value:i,onChange:o},y.createElement("option",{key:"no-selection",disabled:!0},a3),Object.keys(r).map(p=>y.createElement("option",{key:p,value:p},p))))},KQ=({name:e,value:t,options:r,onChange:n,argType:a})=>{var d;let o=p=>{let h=Array.from(p.currentTarget.options).filter(m=>m.selected).map(m=>m.value);n(XC(h,r))},i=tp(t,r),s=Dt(e),u=!!((d=a==null?void 0:a.table)!=null&&d.readonly);return y.createElement(eD,null,y.createElement(QC,{disabled:u,id:s,multiple:!0,value:i,onChange:o},Object.keys(r).map(p=>y.createElement("option",{key:p,value:p},p))))},o3=e=>{let{name:t,options:r}=e;return r?e.isMulti?y.createElement(KQ,{...e}):y.createElement(GQ,{...e}):(jh.warn(`Select with no options: ${t}`),y.createElement(y.Fragment,null,"-"))},YQ=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[(t==null?void 0:t[n])||String(n)]=n,r),{}):e,JQ={check:r3,"inline-check":r3,radio:n3,"inline-radio":n3,select:o3,"multi-select":o3},Vn=e=>{let{type:t="select",labels:r,argType:n}=e,a={...e,argType:n,options:n?YQ(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},o=JQ[t];if(o)return y.createElement(o,{...a});throw new Error(`Unknown options type: ${t}`)},Uh="value",ZQ="key",XQ="Error",QQ="Object",eee="Array",tee="String",ree="Number",nee="Boolean",aee="Date",oee="Null",iee="Undefined",lee="Function",see="Symbol",tD="ADD_DELTA_TYPE",rD="REMOVE_DELTA_TYPE",nD="UPDATE_DELTA_TYPE";function un(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 aD(e,t){let r=un(e),n=un(t);return(r==="Function"||n==="Function")&&n!==r}var qh=class extends l.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(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:a}=this.props,{inputRefKey:o,inputRefValue:i}=this.state,s={};if(!t){if(!o.value)return;s.key=o.value}s.newValue=r(!1,n,a,s.key,i.value),e(s)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:a,keyPath:o,deep:i}=this.props,s=l.cloneElement(r,{onClick:this.onSubmit}),u=l.cloneElement(n,{onClick:e}),d=a(Uh,o,i),p=l.cloneElement(d,{placeholder:"Value",ref:this.refInputValue}),h=null;if(!t){let m=a(ZQ,o,i);h=l.cloneElement(m,{placeholder:"Key",ref:this.refInputKey})}return y.createElement("span",{className:"rejt-add-value-node"},h,p,u,s)}};qh.defaultProps={onlyValue:!1,addButtonElement:y.createElement("button",null,"+"),cancelButtonElement:y.createElement("button",null,"c")};var oD=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];t(e,a,o,i).then(()=>{let s={keyPath:a,deep:o,key:e,oldValue:i,type:rD};n.splice(e,1),this.setState({data:n});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(a[a.length-1],n),d(s)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r,nextDeep:n}=this.state,{beforeAddAction:a,logger:o}=this.props;a(t.length,r,n,e).then(()=>{let i=[...t,e];this.setState({data:i}),this.handleAddValueCancel();let{onUpdate:s,onDeltaUpdate:u}=this.props;s(r[r.length-1],i),u({type:tD,keyPath:r,deep:n,key:i.length-1,newValue:e})}).catch(o.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:s}=this.state,u=o[e];a(e,i,s,u,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:d,onDeltaUpdate:p}=this.props;d(i[i.length-1],o),p({type:nD,keyPath:i,deep:s,key:e,newValue:t,oldValue:u}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:a,readOnly:o,getStyle:i,dataType:s,minusMenuElement:u}=this.props,{minus:d,collapsed:p}=i(e,t,r,n,s),h=o(e,t,r,n,s),m=l.cloneElement(u,{onClick:a,className:"rejt-minus-menu",style:d});return y.createElement("span",{className:"rejt-collapsed"},y.createElement("span",{className:"rejt-collapsed-text",style:p,onClick:this.handleCollapseMode},"[...] ",t.length," ",t.length===1?"item":"items"),!h&&m)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:a,nextDeep:o}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:u,readOnly:d,getStyle:p,dataType:h,addButtonElement:m,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:b,minusMenuElement:C,plusMenuElement:w,beforeRemoveAction:x,beforeAddAction:E,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}=this.props,{minus:k,plus:F,delimiter:T,ul:R,addForm:$}=p(e,t,r,n,h),z=d(e,t,r,n,h),O=l.cloneElement(w,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:F}),L=l.cloneElement(C,{onClick:s,className:"rejt-minus-menu",style:k});return y.createElement("span",{className:"rejt-not-collapsed"},y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:T},"["),!a&&O,y.createElement("ul",{className:"rejt-not-collapsed-list",style:R},t.map((M,j)=>y.createElement(Bu,{key:j,name:j.toString(),data:M,keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveItem(j),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:u,readOnly:d,getStyle:p,addButtonElement:m,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:b,minusMenuElement:C,plusMenuElement:w,beforeRemoveAction:x,beforeAddAction:E,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}))),!z&&a&&y.createElement("div",{className:"rejt-add-form",style:$},y.createElement(qh,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:m,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:A})),y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:T},"]"),!z&&L)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{dataType:o,getStyle:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),u=i(e,r,n,a,o);return y.createElement("div",{className:"rejt-array-node"},y.createElement("span",{onClick:this.handleCollapseMode},y.createElement("span",{className:"rejt-name",style:u.name},e," :"," ")),s)}};oD.defaultProps={keyPath:[],deep:0,minusMenuElement:y.createElement("span",null," - "),plusMenuElement:y.createElement("span",null," + ")};var iD=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:s}=this.props,u=i(r,n,a,o,s);e&&!u&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:s}=this.state;if(!o)return;let u=n(!0,a,s,i,o.value);e({value:u,key:i}).then(()=>{aD(t,u)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:s,dataType:u,getStyle:d,editButtonElement:p,cancelButtonElement:h,textareaElementGenerator:m,minusMenuElement:f,keyPath:v}=this.props,g=d(e,i,n,a,u),b=null,C=null,w=s(e,i,n,a,u);if(r&&!w){let x=m(Uh,v,a,e,i,u),E=l.cloneElement(p,{onClick:this.handleEdit}),D=l.cloneElement(h,{onClick:this.handleCancelEdit}),S=l.cloneElement(x,{ref:this.refInput,defaultValue:i});b=y.createElement("span",{className:"rejt-edit-form",style:g.editForm},S," ",D,E),C=null}else{b=y.createElement("span",{className:"rejt-value",style:g.value,onClick:w?null:this.handleEditMode},t);let x=l.cloneElement(f,{onClick:o,className:"rejt-minus-menu",style:g.minus});C=w?null:x}return y.createElement("li",{className:"rejt-function-value-node",style:g.li},y.createElement("span",{className:"rejt-name",style:g.name},e," :"," "),b,C)}};iD.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:y.createElement("button",null,"e"),cancelButtonElement:y.createElement("button",null,"c"),minusMenuElement:y.createElement("span",null," - ")};var Bu=class extends l.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:a,handleRemove:o,handleUpdateValue:i,onUpdate:s,onDeltaUpdate:u,readOnly:d,getStyle:p,addButtonElement:h,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:C,beforeRemoveAction:w,beforeAddAction:x,beforeUpdateAction:E,logger:D,onSubmitValueParser:S}=this.props,A=()=>!0,k=un(e);switch(k){case XQ:return y.createElement(rp,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:A,dataType:k,getStyle:p,addButtonElement:h,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:C,beforeRemoveAction:w,beforeAddAction:x,beforeUpdateAction:E,logger:D,onSubmitValueParser:S});case QQ:return y.createElement(rp,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:d,dataType:k,getStyle:p,addButtonElement:h,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:C,beforeRemoveAction:w,beforeAddAction:x,beforeUpdateAction:E,logger:D,onSubmitValueParser:S});case eee:return y.createElement(oD,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:d,dataType:k,getStyle:p,addButtonElement:h,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:C,beforeRemoveAction:w,beforeAddAction:x,beforeUpdateAction:E,logger:D,onSubmitValueParser:S});case tee:return y.createElement(Dr,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case ree:return y.createElement(Dr,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case nee:return y.createElement(Dr,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case aee:return y.createElement(Dr,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:A,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case oee:return y.createElement(Dr,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case iee:return y.createElement(Dr,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case lee:return y.createElement(iD,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,textareaElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case see:return y.createElement(Dr,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:A,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});default:return null}}};Bu.defaultProps={keyPath:[],deep:0};var rp=class extends l.Component{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath,e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n,nextDeep:a}=this.state,{beforeAddAction:o,logger:i}=this.props;o(e,n,a,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:s,onDeltaUpdate:u}=this.props;s(n[n.length-1],r),u({type:tD,keyPath:n,deep:a,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];t(e,a,o,i).then(()=>{let s={keyPath:a,deep:o,key:e,oldValue:i,type:rD};delete n[e],this.setState({data:n});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(a[a.length-1],n),d(s)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:s}=this.state,u=o[e];a(e,i,s,u,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:d,onDeltaUpdate:p}=this.props;d(i[i.length-1],o),p({type:nD,keyPath:i,deep:s,key:e,newValue:t,oldValue:u}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:a,readOnly:o,dataType:i,getStyle:s,minusMenuElement:u}=this.props,{minus:d,collapsed:p}=s(e,n,t,r,i),h=Object.getOwnPropertyNames(n),m=o(e,n,t,r,i),f=l.cloneElement(u,{onClick:a,className:"rejt-minus-menu",style:d});return y.createElement("span",{className:"rejt-collapsed"},y.createElement("span",{className:"rejt-collapsed-text",style:p,onClick:this.handleCollapseMode},"{...}"," ",h.length," ",h.length===1?"key":"keys"),!m&&f)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:a,addFormVisible:o}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:u,readOnly:d,getStyle:p,dataType:h,addButtonElement:m,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:b,minusMenuElement:C,plusMenuElement:w,beforeRemoveAction:x,beforeAddAction:E,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}=this.props,{minus:k,plus:F,addForm:T,ul:R,delimiter:$}=p(e,t,r,n,h),z=Object.getOwnPropertyNames(t),O=d(e,t,r,n,h),L=l.cloneElement(w,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:F}),M=l.cloneElement(C,{onClick:s,className:"rejt-minus-menu",style:k}),j=z.map(G=>y.createElement(Bu,{key:G,name:G,data:t[G],keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveValue(G),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:u,readOnly:d,getStyle:p,addButtonElement:m,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:b,minusMenuElement:C,plusMenuElement:w,beforeRemoveAction:x,beforeAddAction:E,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}));return y.createElement("span",{className:"rejt-not-collapsed"},y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:$},"{"),!O&&L,y.createElement("ul",{className:"rejt-not-collapsed-list",style:R},j),!O&&o&&y.createElement("div",{className:"rejt-add-form",style:T},y.createElement(qh,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:m,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:A})),y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:$},"}"),!O&&M)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{getStyle:o,dataType:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),u=o(e,r,n,a,i);return y.createElement("div",{className:"rejt-object-node"},y.createElement("span",{onClick:this.handleCollapseMode},y.createElement("span",{className:"rejt-name",style:u.name},e," :"," ")),s)}};rp.defaultProps={keyPath:[],deep:0,minusMenuElement:y.createElement("span",null," - "),plusMenuElement:y.createElement("span",null," + ")};var Dr=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:s}=this.props,u=i(r,n,a,o,s);e&&!u&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:s}=this.state;if(!o)return;let u=n(!0,a,s,i,o.value);e({value:u,key:i}).then(()=>{aD(t,u)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:s,dataType:u,getStyle:d,editButtonElement:p,cancelButtonElement:h,inputElementGenerator:m,minusMenuElement:f,keyPath:v}=this.props,g=d(e,i,n,a,u),b=s(e,i,n,a,u),C=r&&!b,w=m(Uh,v,a,e,i,u),x=l.cloneElement(p,{onClick:this.handleEdit}),E=l.cloneElement(h,{onClick:this.handleCancelEdit}),D=l.cloneElement(w,{ref:this.refInput,defaultValue:JSON.stringify(i)}),S=l.cloneElement(f,{onClick:o,className:"rejt-minus-menu",style:g.minus});return y.createElement("li",{className:"rejt-value-node",style:g.li},y.createElement("span",{className:"rejt-name",style:g.name},e," : "),C?y.createElement("span",{className:"rejt-edit-form",style:g.editForm},D," ",E,x):y.createElement("span",{className:"rejt-value",style:g.value,onClick:b?null:this.handleEditMode},String(t)),!b&&!C&&S)}};Dr.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:y.createElement("button",null,"e"),cancelButtonElement:y.createElement("button",null,"c"),minusMenuElement:y.createElement("span",null," - ")};var uee={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},cee={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},dee={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}};function pee(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var lD=class extends l.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){this.setState({data:t}),this.props.onFullyUpdate(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:a,getStyle:o,addButtonElement:i,cancelButtonElement:s,editButtonElement:u,inputElement:d,textareaElement:p,minusMenuElement:h,plusMenuElement:m,beforeRemoveAction:f,beforeAddAction:v,beforeUpdateAction:g,logger:b,onSubmitValueParser:C,fallback:w=null}=this.props,x=un(e),E=a;un(a)==="Boolean"&&(E=()=>a);let D=d;d&&un(d)!=="Function"&&(D=()=>d);let S=p;return p&&un(p)!=="Function"&&(S=()=>p),x==="Object"||x==="Array"?y.createElement("div",{className:"rejt-tree"},y.createElement(Bu,{data:e,name:t,deep:-1,isCollapsed:r,onUpdate:this.onUpdate,onDeltaUpdate:n,readOnly:E,getStyle:o,addButtonElement:i,cancelButtonElement:s,editButtonElement:u,inputElementGenerator:D,textareaElementGenerator:S,minusMenuElement:h,plusMenuElement:m,handleRemove:this.removeRoot,beforeRemoveAction:f,beforeAddAction:v,beforeUpdateAction:g,logger:b,onSubmitValueParser:C})):w}};lD.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,a)=>{switch(a){case"Object":case"Error":return uee;case"Array":return cee;default:return dee}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,a)=>pee(a),inputElement:()=>y.createElement("input",null),textareaElement:()=>y.createElement("textarea",null),fallback:null};var{window:fee}=at,hee=_.div(({theme:e})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".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-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".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.color.lighter,borderColor:e.appBorderColor}})),id=_.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",order:t?"initial":9})),mee=_(gO)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.ancillary},"svg + &":{marginLeft:0}})),gee=_(vO)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.negative},"svg + &":{marginLeft:0}})),i3=_.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}`}})),vee=_(fn)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),yee=_(Fi.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"}})),bee={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},wee=e=>{e.currentTarget.dispatchEvent(new fee.KeyboardEvent("keydown",bee))},Eee=e=>{e.currentTarget.select()},xee=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),l3=({name:e,value:t,onChange:r,argType:n})=>{var x;let a=j3(),o=l.useMemo(()=>t&&pJ(t),[t]),i=o!=null,[s,u]=l.useState(!i),[d,p]=l.useState(null),h=!!((x=n==null?void 0:n.table)!=null&&x.readonly),m=l.useCallback(E=>{try{E&&r(JSON.parse(E)),p(void 0)}catch(D){p(D)}},[r]),[f,v]=l.useState(!1),g=l.useCallback(()=>{r({}),v(!0)},[v]),b=l.useRef(null);if(l.useEffect(()=>{f&&b.current&&b.current.select()},[f]),!i)return y.createElement(Fn,{disabled:h,id:ks(e),onClick:g},"Set object");let C=y.createElement(yee,{ref:b,id:Dt(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:E=>m(E.target.value),placeholder:"Edit JSON string...",autoFocus:f,valid:d?"error":null,readOnly:h}),w=Array.isArray(t)||typeof t=="object"&&(t==null?void 0:t.constructor)===Object;return y.createElement(hee,{"aria-readonly":h},w&&y.createElement(vee,{onClick:E=>{E.preventDefault(),u(D=>!D)}},s?y.createElement(hO,null):y.createElement(fO,null),y.createElement("span",null,"RAW")),s?C:y.createElement(lD,{readOnly:h||!w,isCollapsed:w?void 0:()=>!0,data:o,rootName:e,onFullyUpdate:r,getStyle:xee(a),cancelButtonElement:y.createElement(id,{type:"button"},"Cancel"),editButtonElement:y.createElement(id,{type:"submit"},"Save"),addButtonElement:y.createElement(id,{type:"submit",primary:!0},"Save"),plusMenuElement:y.createElement(mee,null),minusMenuElement:y.createElement(gee,null),inputElement:(E,D,S,A)=>A?y.createElement(i3,{onFocus:Eee,onBlur:wee}):y.createElement(i3,null),fallback:C}))},Cee=_.input(({theme:e,min:t,max:r,value:n,disabled:a})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${Ot(.02,e.input.background)} ${(n-t)/(r-t)*100}%, ${Ot(.02,e.input.background)} 100%)`:`linear-gradient(to right, @@ -555,7 +555,7 @@ ${t}`);let r=t.match(Gz);if(!r)return y.createElement(l.Fragment,null,t);let[,n, ${Ot(.02,e.input.background)} 100%)`:`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${en(.02,e.input.background)} ${(n-t)/(r-t)*100}%, - ${en(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${Pt(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),sD=_.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),Dee=_(sD)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),See=_.div({display:"flex",alignItems:"center",width:"100%"});function Aee(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 kee=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:s,argType:u})=>{var f;let d=v=>{r(OQ(v.target.value))},p=t!==void 0,h=l.useMemo(()=>Aee(o),[o]),m=!!((f=u==null?void 0:u.table)!=null&&f.readonly);return y.createElement(See,{"aria-readonly":m},y.createElement(sD,null,n),y.createElement(Cee,{id:Dt(e),type:"range",disabled:m,onChange:d,name:e,value:t,min:n,max:a,step:o,onFocus:s,onBlur:i}),y.createElement(Dee,{numberOFDecimalsPlaces:h,max:a},p?t.toFixed(h):"--"," / ",a))},_ee=_.label({display:"flex"}),Fee=_.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),Iee=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o,argType:i})=>{var f;let s=v=>{r(v.target.value)},u=!!((f=i==null?void 0:i.table)!=null&&f.readonly),[d,p]=l.useState(!1),h=l.useCallback(()=>{r(""),p(!0)},[p]);if(t===void 0)return y.createElement(Fn,{variant:"outline",size:"medium",disabled:u,id:ks(e),onClick:h},"Set string");let m=typeof t=="string";return y.createElement(_ee,null,y.createElement(Fi.Textarea,{id:Dt(e),maxLength:o,onChange:s,disabled:u,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:m?null:"error",name:e,value:m?t:"",onFocus:n,onBlur:a}),o&&y.createElement(Fee,{isMaxed:(t==null?void 0:t.length)===o},(t==null?void 0:t.length)??0," / ",o))},Tee=_(Fi.Input)({padding:10});function Ree(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var Bee=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var u;let o=l.useRef(null),i=(u=a==null?void 0:a.control)==null?void 0:u.readOnly;function s(d){if(!d.target.files)return;let p=Array.from(d.target.files).map(h=>URL.createObjectURL(h));e(p),Ree(n)}return l.useEffect(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),y.createElement(Tee,{ref:o,id:Dt(t),type:"file",name:t,multiple:!0,disabled:i,onChange:s,accept:r,size:"flex"})},zee=l.lazy(()=>ip(()=>import("./Color-KGDBMAHA-D41Ad0KX.js"),__vite__mapDeps([10,2,3,1,8,4,5,6,7,9]),import.meta.url)),$ee=e=>y.createElement(l.Suspense,{fallback:y.createElement("div",null)},y.createElement(zee,{...e})),Lee={array:l3,object:l3,boolean:FQ,color:$ee,date:$Q,number:PQ,check:Vn,"inline-check":Vn,radio:Vn,"inline-radio":Vn,select:Vn,"multi-select":Vn,range:kee,text:Iee,file:Bee},s3=()=>y.createElement(y.Fragment,null,"-"),Oee=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var g;let{key:a,control:o}=e,[i,s]=l.useState(!1),[u,d]=l.useState({value:t});l.useEffect(()=>{i||d({value:t})},[i,t]);let p=l.useCallback(b=>(d({value:b}),r({[a]:b}),b),[r,a]),h=l.useCallback(()=>s(!1),[]),m=l.useCallback(()=>s(!0),[]);if(!o||o.disable){let b=(o==null?void 0:o.disable)!==!0&&((g=e==null?void 0:e.type)==null?void 0:g.name)!=="function";return n&&b?y.createElement(ia,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):y.createElement(s3,null)}let f={name:a,argType:e,value:u.value,onChange:p,onBlur:h,onFocus:m},v=Lee[o.type]||s3;return y.createElement(v,{...f,...o,controlType:o.type})},Mee=_.span({fontWeight:"bold"}),Pee=_.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),Nee=_.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Hr({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),Hee=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ie(.1,e.color.defaultText):ie(.2,e.color.defaultText),marginTop:t?4:0})),jee=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ie(.1,e.color.defaultText):ie(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),Vee=_.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),Uee=e=>e&&{summary:typeof e=="string"?e:e.name},ll=e=>{var g;let[t,r]=l.useState(!1),{row:n,updateArgs:a,compact:o,expandable:i,initialExpandedArgs:s}=e,{name:u,description:d}=n,p=n.table||{},h=p.type||Uee(n.type),m=p.defaultValue||n.defaultValue,f=(g=n.type)==null?void 0:g.required,v=d!=null&&d!=="";return y.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},y.createElement(Vee,{expandable:i},y.createElement(Mee,null,u),f?y.createElement(Pee,{title:"Required"},"*"):null),o?null:y.createElement("td",null,v&&y.createElement(Nee,null,y.createElement(FC,null,d)),p.jsDocTags!=null?y.createElement(y.Fragment,null,y.createElement(jee,{hasDescription:v},y.createElement(od,{value:h,initialExpandedArgs:s})),y.createElement(gQ,{tags:p.jsDocTags})):y.createElement(Hee,{hasDescription:v},y.createElement(od,{value:h,initialExpandedArgs:s}))),o?null:y.createElement("td",null,y.createElement(od,{value:m,initialExpandedArgs:s})),a?y.createElement("td",null,y.createElement(Oee,{...e,isHovered:t})):null)},qee=_(bO)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ie(.25,e.color.defaultText):ie(.3,e.color.defaultText),border:"none",display:"inline-block"})),Wee=_(wO)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ie(.25,e.color.defaultText):ie(.3,e.color.defaultText),border:"none",display:"inline-block"})),Gee=_.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),Kee=_.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"?ie(.4,e.color.defaultText):ie(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),Yee=_.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),Jee=_.td(()=>({position:"relative"})),Zee=_.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${en(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),u3=_.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"})),ld=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,i]=l.useState(n),s=e==="subsection"?Yee:Kee,u=(r==null?void 0:r.length)||0,d=e==="subsection"?`${u} item${u!==1?"s":""}`:"",p=`${o?"Hide":"Show"} ${e==="subsection"?u:t} item${u!==1?"s":""}`;return y.createElement(y.Fragment,null,y.createElement(Zee,{title:p},y.createElement(s,{colSpan:1},y.createElement(u3,{onClick:h=>i(!o),tabIndex:0},p),y.createElement(Gee,null,o?y.createElement(qee,null):y.createElement(Wee,null),t)),y.createElement(Jee,{colSpan:a-1},y.createElement(u3,{onClick:h=>i(!o),tabIndex:-1,style:{outline:"none"}},p),o?null:d)),o?r:null)},sl=_.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),ke=_.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),he=_.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})),_e=[2,4,2,2],Xee=()=>y.createElement(y.Fragment,null,y.createElement(sl,null,y.createElement(ke,{numColumn:_e[0]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[1]},y.createElement(he,{width:"30%"})),y.createElement(ke,{numColumn:_e[2]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[3]},y.createElement(he,{width:"60%"}))),y.createElement(sl,null,y.createElement(ke,{numColumn:_e[0]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[1]},y.createElement(he,{width:"80%"}),y.createElement(he,{width:"30%"})),y.createElement(ke,{numColumn:_e[2]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[3]},y.createElement(he,{width:"60%"}))),y.createElement(sl,null,y.createElement(ke,{numColumn:_e[0]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[1]},y.createElement(he,{width:"80%"}),y.createElement(he,{width:"30%"})),y.createElement(ke,{numColumn:_e[2]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[3]},y.createElement(he,{width:"60%"}))),y.createElement(sl,null,y.createElement(ke,{numColumn:_e[0]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[1]},y.createElement(he,{width:"80%"}),y.createElement(he,{width:"30%"})),y.createElement(ke,{numColumn:_e[2]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[3]},y.createElement(he,{width:"60%"})))),Qee=_.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,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),ete=_.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),tte=_.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),rte=({inAddonPanel:e})=>{let[t,r]=l.useState(!0);return l.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:y.createElement(Qee,{inAddonPanel:e},y.createElement(Fx,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:y.createElement(y.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:y.createElement(ete,null,e&&y.createElement(y.Fragment,null,y.createElement(ia,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},y.createElement(mO,null)," Watch 5m video"),y.createElement(tte,null),y.createElement(ia,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(q1,null)," Read docs")),!e&&y.createElement(ia,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(q1,null)," Learn how to set that up"))}))},nte=_.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{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)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?ie(.25,e.color.defaultText):ie(.45,e.color.defaultText),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}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),ate=_(fn)(({theme:e})=>({margin:"-4px -12px -4px 0"})),ote=_.span({display:"flex",justifyContent:"space-between"}),ite={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},lte=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,i])=>{let{category:s,subcategory:u}=(i==null?void 0:i.table)||{};if(s){let d=r.sections[s]||{ungrouped:[],subsections:{}};if(!u)d.ungrouped.push({key:o,...i});else{let p=d.subsections[u]||[];p.push({key:o,...i}),d.subsections[u]=p}r.sections[s]=d}else if(u){let d=r.ungroupedSubsections[u]||[];d.push({key:o,...i}),r.ungroupedSubsections[u]=d}else r.ungrouped.push({key:o,...i})});let n=ite[t],a=o=>n?Object.keys(o).reduce((i,s)=>({...i,[s]:o[s].sort(n)}),{}):o;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((o,i)=>({...o,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},ste=(e,t,r)=>{try{return DD(e,t,r)}catch(n){return RX.warn(n.message),!1}},np=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:i="none",isLoading:s}=e;if("error"in e){let{error:w}=e;return y.createElement(qC,null,w," ",y.createElement(ia,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},y.createElement(q1,null)," Read the docs"))}if(s)return y.createElement(Xee,null);let{rows:u,args:d,globals:p}="rows"in e&&e,h=lte(jq(u,w=>{var x;return!((x=w==null?void 0:w.table)!=null&&x.disable)&&ste(w,d||{},p||{})}),i),m=h.ungrouped.length===0,f=Object.entries(h.sections).length===0,v=Object.entries(h.ungroupedSubsections).length===0;if(m&&f&&v)return y.createElement(rte,{inAddonPanel:a});let g=1;t&&(g+=1),n||(g+=2);let b=Object.keys(h.sections).length>0,C={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return y.createElement(o9,null,y.createElement(nte,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},y.createElement("thead",{className:"docblock-argstable-head"},y.createElement("tr",null,y.createElement("th",null,y.createElement("span",null,"Name")),n?null:y.createElement("th",null,y.createElement("span",null,"Description")),n?null:y.createElement("th",null,y.createElement("span",null,"Default")),t?y.createElement("th",null,y.createElement(ote,null,"Control"," ",!s&&r&&y.createElement(ate,{onClick:()=>r(),title:"Reset controls"},y.createElement(xO,{"aria-hidden":!0})))):null)),y.createElement("tbody",{className:"docblock-argstable-body"},h.ungrouped.map(w=>y.createElement(ll,{key:w.key,row:w,arg:d&&d[w.key],...C})),Object.entries(h.ungroupedSubsections).map(([w,x])=>y.createElement(ld,{key:w,label:w,level:"subsection",colSpan:g},x.map(E=>y.createElement(ll,{key:E.key,row:E,arg:d&&d[E.key],expandable:b,...C})))),Object.entries(h.sections).map(([w,x])=>y.createElement(ld,{key:w,label:w,level:"section",colSpan:g},x.ungrouped.map(E=>y.createElement(ll,{key:E.key,row:E,arg:d&&d[E.key],...C})),Object.entries(x.subsections).map(([E,D])=>y.createElement(ld,{key:E,label:E,level:"subsection",colSpan:g},D.map(S=>y.createElement(ll,{key:S.key,row:S,arg:d&&d[S.key],expandable:b,...C})))))))))},ute=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?y.createElement(np,{...r[0][1],...t}):y.createElement(oL,null,r.map((n,a)=>{let[o,i]=n,s=`prop_table_div_${o}`,u="div",d=a===0?t:{sort:t.sort};return y.createElement(u,{key:s,id:s,title:o},({active:p})=>p?y.createElement(np,{key:`prop_table_${o}`,...i,...d}):null)}))};_.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?ie(.4,e.color.defaultText):ie(.6,e.color.defaultText)}));_.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});_.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});_.div(ue,({theme:e})=>({...Ru(e),margin:"25px 0 40px",padding:"30px 20px"}));_.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));_.div(({theme:e})=>({color:e.base==="light"?ie(.2,e.color.defaultText):ie(.6,e.color.defaultText)}));_.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});_.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?ie(.4,e.color.defaultText):ie(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));_.div({display:"flex",flexDirection:"row"});_.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));_.div(({theme:e})=>({...Ru(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"}));_.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});_.div({flex:1,display:"flex",flexDirection:"row"});_.div({display:"flex",alignItems:"flex-start"});_.div({flex:"0 0 30%"});_.div({flex:1});_.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?ie(.4,e.color.defaultText):ie(.6,e.color.defaultText)}));_.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));_.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));_.div(({theme:e})=>({...Ru(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));_.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});_.div({display:"flex",flexFlow:"row wrap"});var cte=e=>`anchor--${e}`,dte=({storyId:e,children:t})=>y.createElement("div",{id:cte(e),className:"sb-anchor"},t);at&&at.__DOCS_CONTEXT__===void 0&&(at.__DOCS_CONTEXT__=l.createContext(null),at.__DOCS_CONTEXT__.displayName="DocsContext");var rr=at?at.__DOCS_CONTEXT__:l.createContext(null),Tn=(e,t)=>l.useContext(rr).resolveOf(e,t),pte=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),fte=e=>{if(e)return typeof e=="string"?e.includes("-")?pte(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function hte(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function uD(e){return IX(e,{allowFunction:!1})}var cD=l.createContext({sources:{}}),dD="--unknown--",mte=({children:e,channel:t})=>{let[r,n]=l.useState({});return l.useEffect(()=>{let a=(o,i=null,s=!1)=>{let{id:u,args:d=void 0,source:p,format:h}=typeof o=="string"?{id:o,source:i,format:s}:o,m=d?uD(d):dD;n(f=>({...f,[u]:{...f[u],[m]:{code:p,format:h}}}))};return t.on(Xh,a),()=>t.off(Xh,a)},[]),y.createElement(cD.Provider,{value:{sources:r}},e)},gte=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[uD(t)])||(a==null?void 0:a[dD])||{code:""}},vte=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var u,d;let{__isArgsStory:a}=t.parameters,o=((u=t.parameters.docs)==null?void 0:u.source)||{},i=r||o.type||Lu.AUTO;if(o.code!==void 0)return o.code;let s=i===Lu.DYNAMIC||i===Lu.AUTO&&e&&a?e:o.originalSource||"";return((d=n??o.transform)==null?void 0:d(s,t))||s},yte=(e,t,r)=>{var f,v,g,b;let n,{of:a}=e;if("of"in e&&a===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(a)n=t.resolveOf(a,["story"]).story;else try{n=t.storyById()}catch{}let o=((v=(f=n==null?void 0:n.parameters)==null?void 0:f.docs)==null?void 0:v.source)||{},{code:i}=e,s=e.format??o.format,u=e.language??o.language??"jsx",d=e.dark??o.dark??!1;if(!i&&!n)return{error:"Oh no! The source is not available."};if(i)return{code:i,format:s,language:u,dark:d};let p=t.getStoryContext(n),h=e.__forceInitialArgs?p.initialArgs:p.unmappedArgs,m=gte(n.id,h,r);return s=m.format??((b=(g=n.parameters.docs)==null?void 0:g.source)==null?void 0:b.format)??!1,{code:vte({snippet:m.code,storyContext:{...p,args:h},typeFromProps:e.type,transformFromProps:e.transform}),format:s,language:u,dark:d}};function bte(e,t){let r=wte([e],t);return r&&r[0]}function wte(e,t){let[r,n]=l.useState({});return l.useEffect(()=>{Promise.all(e.map(async a=>{let o=await t.loadStory(a);n(i=>i[a]===o?i:{...i,[a]:o})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var Ete=(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},xte=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,o=a.story||{};if(a.disable)return null;if(e.inline??o.inline??!1){let s=e.height??o.height,u=e.autoplay??o.autoplay??!1;return{story:t,inline:!0,height:s,autoplay:u,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??o.height??o.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},Cte=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=l.useContext(rr),r=Ete(e,t),n=bte(r,t);if(!n)return y.createElement(KC,null);let a=xte(e,n,t);return a?y.createElement(sQ,{...a}):null},Dte=e=>{var m,f,v,g,b,C,w,x,E,D;let t=l.useContext(rr),r=l.useContext(cD),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:o}=Tn(n||"story",["story"]),i=yte({...a,...n&&{of:n}},t,r),s=e.layout??o.parameters.layout??((f=(m=o.parameters.docs)==null?void 0:m.canvas)==null?void 0:f.layout)??"padded",u=e.withToolbar??((g=(v=o.parameters.docs)==null?void 0:v.canvas)==null?void 0:g.withToolbar)??!1,d=e.additionalActions??((C=(b=o.parameters.docs)==null?void 0:b.canvas)==null?void 0:C.additionalActions),p=e.sourceState??((x=(w=o.parameters.docs)==null?void 0:w.canvas)==null?void 0:x.sourceState)??"hidden",h=e.className??((D=(E=o.parameters.docs)==null?void 0:E.canvas)==null?void 0:D.className);return y.createElement(YC,{withSource:p==="none"?void 0:i,isExpanded:p==="shown",withToolbar:u,additionalActions:d,className:h,layout:s},y.createElement(Cte,{of:n||o.moduleExport,meta:e.meta,...e.story}))},Ste=(e,t)=>{let r=t.getStoryContext(e),[n,a]=l.useState(r.globals);return l.useEffect(()=>{let o=i=>{a(i.globals)};return t.channel.on(Jy,o),()=>t.channel.off(Jy,o)},[t.channel]),[n]},Ate=(e,t)=>{let r=kte(e,t);if(!r)throw new Error("No result when story was defined");return r},kte=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,o]=l.useState(r.args);l.useEffect(()=>{let u=d=>{d.storyId===n&&o(d.args)};return t.channel.on(Zy,u),()=>t.channel.off(Zy,u)},[n,t.channel]);let i=l.useCallback(u=>t.channel.emit(BX,{storyId:n,updatedArgs:u}),[n,t.channel]),s=l.useCallback(u=>t.channel.emit(zX,{storyId:n,argNames:u}),[n,t.channel]);return e&&[a,i,s]};function _te(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var Fte=e=>{var 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=l.useContext(rr),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:o,component:i,subcomponents:s}=n,u=((E=a.docs)==null?void 0:E.controls)||{},d=e.include??u.include,p=e.exclude??u.exclude,h=e.sort??u.sort,[m,f,v]=Ate(n,r),[g]=Ste(n,r),b=Yy(o,d,p);if(!(s&&Object.keys(s).length>0))return Object.keys(b).length>0||Object.keys(m).length>0?y.createElement(np,{rows:b,sort:h,args:m,globals:g,updateArgs:f,resetArgs:v}):null;let C=fte(i),w=Object.fromEntries(Object.entries(s).map(([D,S])=>[D,{rows:Yy(_te(S,a),d,p),sort:h}])),x={[C]:{rows:b,sort:h},...w};return y.createElement(ute,{tabs:x,sort:h,args:m,globals:g,updateArgs:f,resetArgs:v})},{document:pD}=at,fD=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return y.createElement(r9,null,t);let n=e&&e.split("-");return y.createElement(WC,{language:n&&n[1]||"text",format:!1,code:t,...r})};function Wh(e,t){e.channel.emit($X,t)}var ap=xL.a,Ite=({hash:e,children:t})=>{let r=l.useContext(rr);return y.createElement(ap,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);pD.getElementById(a)&&Wh(r,e)}},t)},hD=e=>{let{href:t,target:r,children:n,...a}=e,o=l.useContext(rr);return!t||r==="_blank"||/^https?:\/\//.test(t)?y.createElement(ap,{...e}):t.startsWith("#")?y.createElement(Ite,{hash:t},n):y.createElement(ap,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),Wh(o,i.currentTarget.getAttribute("href")))},target:r,...a},n)},mD=["h1","h2","h3","h4","h5","h6"],Tte=mD.reduce((e,t)=>({...e,[t]:_(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),Rte=_.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),Bte=({as:e,id:t,children:r,...n})=>{let a=l.useContext(rr),o=Tte[e],i=`#${t}`;return y.createElement(o,{id:t,...n},y.createElement(Rte,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:s=>{pD.getElementById(t)&&Wh(a,i)}},y.createElement(yO,null)),r)},Gh=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return y.createElement(Bte,{as:t,id:r,...a},n);let o=t,{as:i,...s}=e;return y.createElement(o,{...se(s,t)})},gD=mD.reduce((e,t)=>({...e,[t]:r=>y.createElement(Gh,{as:t,...r})}),{}),zte=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(kD`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' + ${en(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${Pt(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),sD=_.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),Dee=_(sD)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),See=_.div({display:"flex",alignItems:"center",width:"100%"});function Aee(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 kee=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:s,argType:u})=>{var f;let d=v=>{r(OQ(v.target.value))},p=t!==void 0,h=l.useMemo(()=>Aee(o),[o]),m=!!((f=u==null?void 0:u.table)!=null&&f.readonly);return y.createElement(See,{"aria-readonly":m},y.createElement(sD,null,n),y.createElement(Cee,{id:Dt(e),type:"range",disabled:m,onChange:d,name:e,value:t,min:n,max:a,step:o,onFocus:s,onBlur:i}),y.createElement(Dee,{numberOFDecimalsPlaces:h,max:a},p?t.toFixed(h):"--"," / ",a))},_ee=_.label({display:"flex"}),Fee=_.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),Iee=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o,argType:i})=>{var f;let s=v=>{r(v.target.value)},u=!!((f=i==null?void 0:i.table)!=null&&f.readonly),[d,p]=l.useState(!1),h=l.useCallback(()=>{r(""),p(!0)},[p]);if(t===void 0)return y.createElement(Fn,{variant:"outline",size:"medium",disabled:u,id:ks(e),onClick:h},"Set string");let m=typeof t=="string";return y.createElement(_ee,null,y.createElement(Fi.Textarea,{id:Dt(e),maxLength:o,onChange:s,disabled:u,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:m?null:"error",name:e,value:m?t:"",onFocus:n,onBlur:a}),o&&y.createElement(Fee,{isMaxed:(t==null?void 0:t.length)===o},(t==null?void 0:t.length)??0," / ",o))},Tee=_(Fi.Input)({padding:10});function Ree(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var Bee=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var u;let o=l.useRef(null),i=(u=a==null?void 0:a.control)==null?void 0:u.readOnly;function s(d){if(!d.target.files)return;let p=Array.from(d.target.files).map(h=>URL.createObjectURL(h));e(p),Ree(n)}return l.useEffect(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),y.createElement(Tee,{ref:o,id:Dt(t),type:"file",name:t,multiple:!0,disabled:i,onChange:s,accept:r,size:"flex"})},zee=l.lazy(()=>ip(()=>import("./Color-KGDBMAHA-DA2-Pv-O.js"),__vite__mapDeps([10,2,3,1,8,4,5,6,7,9]),import.meta.url)),$ee=e=>y.createElement(l.Suspense,{fallback:y.createElement("div",null)},y.createElement(zee,{...e})),Lee={array:l3,object:l3,boolean:FQ,color:$ee,date:$Q,number:PQ,check:Vn,"inline-check":Vn,radio:Vn,"inline-radio":Vn,select:Vn,"multi-select":Vn,range:kee,text:Iee,file:Bee},s3=()=>y.createElement(y.Fragment,null,"-"),Oee=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var g;let{key:a,control:o}=e,[i,s]=l.useState(!1),[u,d]=l.useState({value:t});l.useEffect(()=>{i||d({value:t})},[i,t]);let p=l.useCallback(b=>(d({value:b}),r({[a]:b}),b),[r,a]),h=l.useCallback(()=>s(!1),[]),m=l.useCallback(()=>s(!0),[]);if(!o||o.disable){let b=(o==null?void 0:o.disable)!==!0&&((g=e==null?void 0:e.type)==null?void 0:g.name)!=="function";return n&&b?y.createElement(ia,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):y.createElement(s3,null)}let f={name:a,argType:e,value:u.value,onChange:p,onBlur:h,onFocus:m},v=Lee[o.type]||s3;return y.createElement(v,{...f,...o,controlType:o.type})},Mee=_.span({fontWeight:"bold"}),Pee=_.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),Nee=_.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Hr({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),Hee=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ie(.1,e.color.defaultText):ie(.2,e.color.defaultText),marginTop:t?4:0})),jee=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ie(.1,e.color.defaultText):ie(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),Vee=_.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),Uee=e=>e&&{summary:typeof e=="string"?e:e.name},ll=e=>{var g;let[t,r]=l.useState(!1),{row:n,updateArgs:a,compact:o,expandable:i,initialExpandedArgs:s}=e,{name:u,description:d}=n,p=n.table||{},h=p.type||Uee(n.type),m=p.defaultValue||n.defaultValue,f=(g=n.type)==null?void 0:g.required,v=d!=null&&d!=="";return y.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},y.createElement(Vee,{expandable:i},y.createElement(Mee,null,u),f?y.createElement(Pee,{title:"Required"},"*"):null),o?null:y.createElement("td",null,v&&y.createElement(Nee,null,y.createElement(FC,null,d)),p.jsDocTags!=null?y.createElement(y.Fragment,null,y.createElement(jee,{hasDescription:v},y.createElement(od,{value:h,initialExpandedArgs:s})),y.createElement(gQ,{tags:p.jsDocTags})):y.createElement(Hee,{hasDescription:v},y.createElement(od,{value:h,initialExpandedArgs:s}))),o?null:y.createElement("td",null,y.createElement(od,{value:m,initialExpandedArgs:s})),a?y.createElement("td",null,y.createElement(Oee,{...e,isHovered:t})):null)},qee=_(bO)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ie(.25,e.color.defaultText):ie(.3,e.color.defaultText),border:"none",display:"inline-block"})),Wee=_(wO)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ie(.25,e.color.defaultText):ie(.3,e.color.defaultText),border:"none",display:"inline-block"})),Gee=_.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),Kee=_.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"?ie(.4,e.color.defaultText):ie(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),Yee=_.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),Jee=_.td(()=>({position:"relative"})),Zee=_.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${en(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),u3=_.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"})),ld=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,i]=l.useState(n),s=e==="subsection"?Yee:Kee,u=(r==null?void 0:r.length)||0,d=e==="subsection"?`${u} item${u!==1?"s":""}`:"",p=`${o?"Hide":"Show"} ${e==="subsection"?u:t} item${u!==1?"s":""}`;return y.createElement(y.Fragment,null,y.createElement(Zee,{title:p},y.createElement(s,{colSpan:1},y.createElement(u3,{onClick:h=>i(!o),tabIndex:0},p),y.createElement(Gee,null,o?y.createElement(qee,null):y.createElement(Wee,null),t)),y.createElement(Jee,{colSpan:a-1},y.createElement(u3,{onClick:h=>i(!o),tabIndex:-1,style:{outline:"none"}},p),o?null:d)),o?r:null)},sl=_.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),ke=_.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),he=_.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})),_e=[2,4,2,2],Xee=()=>y.createElement(y.Fragment,null,y.createElement(sl,null,y.createElement(ke,{numColumn:_e[0]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[1]},y.createElement(he,{width:"30%"})),y.createElement(ke,{numColumn:_e[2]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[3]},y.createElement(he,{width:"60%"}))),y.createElement(sl,null,y.createElement(ke,{numColumn:_e[0]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[1]},y.createElement(he,{width:"80%"}),y.createElement(he,{width:"30%"})),y.createElement(ke,{numColumn:_e[2]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[3]},y.createElement(he,{width:"60%"}))),y.createElement(sl,null,y.createElement(ke,{numColumn:_e[0]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[1]},y.createElement(he,{width:"80%"}),y.createElement(he,{width:"30%"})),y.createElement(ke,{numColumn:_e[2]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[3]},y.createElement(he,{width:"60%"}))),y.createElement(sl,null,y.createElement(ke,{numColumn:_e[0]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[1]},y.createElement(he,{width:"80%"}),y.createElement(he,{width:"30%"})),y.createElement(ke,{numColumn:_e[2]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[3]},y.createElement(he,{width:"60%"})))),Qee=_.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,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),ete=_.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),tte=_.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),rte=({inAddonPanel:e})=>{let[t,r]=l.useState(!0);return l.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:y.createElement(Qee,{inAddonPanel:e},y.createElement(Fx,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:y.createElement(y.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:y.createElement(ete,null,e&&y.createElement(y.Fragment,null,y.createElement(ia,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},y.createElement(mO,null)," Watch 5m video"),y.createElement(tte,null),y.createElement(ia,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(q1,null)," Read docs")),!e&&y.createElement(ia,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(q1,null)," Learn how to set that up"))}))},nte=_.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{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)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?ie(.25,e.color.defaultText):ie(.45,e.color.defaultText),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}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),ate=_(fn)(({theme:e})=>({margin:"-4px -12px -4px 0"})),ote=_.span({display:"flex",justifyContent:"space-between"}),ite={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},lte=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,i])=>{let{category:s,subcategory:u}=(i==null?void 0:i.table)||{};if(s){let d=r.sections[s]||{ungrouped:[],subsections:{}};if(!u)d.ungrouped.push({key:o,...i});else{let p=d.subsections[u]||[];p.push({key:o,...i}),d.subsections[u]=p}r.sections[s]=d}else if(u){let d=r.ungroupedSubsections[u]||[];d.push({key:o,...i}),r.ungroupedSubsections[u]=d}else r.ungrouped.push({key:o,...i})});let n=ite[t],a=o=>n?Object.keys(o).reduce((i,s)=>({...i,[s]:o[s].sort(n)}),{}):o;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((o,i)=>({...o,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},ste=(e,t,r)=>{try{return DD(e,t,r)}catch(n){return RX.warn(n.message),!1}},np=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:i="none",isLoading:s}=e;if("error"in e){let{error:w}=e;return y.createElement(qC,null,w," ",y.createElement(ia,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},y.createElement(q1,null)," Read the docs"))}if(s)return y.createElement(Xee,null);let{rows:u,args:d,globals:p}="rows"in e&&e,h=lte(jq(u,w=>{var x;return!((x=w==null?void 0:w.table)!=null&&x.disable)&&ste(w,d||{},p||{})}),i),m=h.ungrouped.length===0,f=Object.entries(h.sections).length===0,v=Object.entries(h.ungroupedSubsections).length===0;if(m&&f&&v)return y.createElement(rte,{inAddonPanel:a});let g=1;t&&(g+=1),n||(g+=2);let b=Object.keys(h.sections).length>0,C={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return y.createElement(o9,null,y.createElement(nte,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},y.createElement("thead",{className:"docblock-argstable-head"},y.createElement("tr",null,y.createElement("th",null,y.createElement("span",null,"Name")),n?null:y.createElement("th",null,y.createElement("span",null,"Description")),n?null:y.createElement("th",null,y.createElement("span",null,"Default")),t?y.createElement("th",null,y.createElement(ote,null,"Control"," ",!s&&r&&y.createElement(ate,{onClick:()=>r(),title:"Reset controls"},y.createElement(xO,{"aria-hidden":!0})))):null)),y.createElement("tbody",{className:"docblock-argstable-body"},h.ungrouped.map(w=>y.createElement(ll,{key:w.key,row:w,arg:d&&d[w.key],...C})),Object.entries(h.ungroupedSubsections).map(([w,x])=>y.createElement(ld,{key:w,label:w,level:"subsection",colSpan:g},x.map(E=>y.createElement(ll,{key:E.key,row:E,arg:d&&d[E.key],expandable:b,...C})))),Object.entries(h.sections).map(([w,x])=>y.createElement(ld,{key:w,label:w,level:"section",colSpan:g},x.ungrouped.map(E=>y.createElement(ll,{key:E.key,row:E,arg:d&&d[E.key],...C})),Object.entries(x.subsections).map(([E,D])=>y.createElement(ld,{key:E,label:E,level:"subsection",colSpan:g},D.map(S=>y.createElement(ll,{key:S.key,row:S,arg:d&&d[S.key],expandable:b,...C})))))))))},ute=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?y.createElement(np,{...r[0][1],...t}):y.createElement(oL,null,r.map((n,a)=>{let[o,i]=n,s=`prop_table_div_${o}`,u="div",d=a===0?t:{sort:t.sort};return y.createElement(u,{key:s,id:s,title:o},({active:p})=>p?y.createElement(np,{key:`prop_table_${o}`,...i,...d}):null)}))};_.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?ie(.4,e.color.defaultText):ie(.6,e.color.defaultText)}));_.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});_.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});_.div(ue,({theme:e})=>({...Ru(e),margin:"25px 0 40px",padding:"30px 20px"}));_.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));_.div(({theme:e})=>({color:e.base==="light"?ie(.2,e.color.defaultText):ie(.6,e.color.defaultText)}));_.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});_.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?ie(.4,e.color.defaultText):ie(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));_.div({display:"flex",flexDirection:"row"});_.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));_.div(({theme:e})=>({...Ru(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"}));_.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});_.div({flex:1,display:"flex",flexDirection:"row"});_.div({display:"flex",alignItems:"flex-start"});_.div({flex:"0 0 30%"});_.div({flex:1});_.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?ie(.4,e.color.defaultText):ie(.6,e.color.defaultText)}));_.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));_.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));_.div(({theme:e})=>({...Ru(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));_.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});_.div({display:"flex",flexFlow:"row wrap"});var cte=e=>`anchor--${e}`,dte=({storyId:e,children:t})=>y.createElement("div",{id:cte(e),className:"sb-anchor"},t);at&&at.__DOCS_CONTEXT__===void 0&&(at.__DOCS_CONTEXT__=l.createContext(null),at.__DOCS_CONTEXT__.displayName="DocsContext");var rr=at?at.__DOCS_CONTEXT__:l.createContext(null),Tn=(e,t)=>l.useContext(rr).resolveOf(e,t),pte=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),fte=e=>{if(e)return typeof e=="string"?e.includes("-")?pte(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function hte(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function uD(e){return IX(e,{allowFunction:!1})}var cD=l.createContext({sources:{}}),dD="--unknown--",mte=({children:e,channel:t})=>{let[r,n]=l.useState({});return l.useEffect(()=>{let a=(o,i=null,s=!1)=>{let{id:u,args:d=void 0,source:p,format:h}=typeof o=="string"?{id:o,source:i,format:s}:o,m=d?uD(d):dD;n(f=>({...f,[u]:{...f[u],[m]:{code:p,format:h}}}))};return t.on(Xh,a),()=>t.off(Xh,a)},[]),y.createElement(cD.Provider,{value:{sources:r}},e)},gte=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[uD(t)])||(a==null?void 0:a[dD])||{code:""}},vte=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var u,d;let{__isArgsStory:a}=t.parameters,o=((u=t.parameters.docs)==null?void 0:u.source)||{},i=r||o.type||Lu.AUTO;if(o.code!==void 0)return o.code;let s=i===Lu.DYNAMIC||i===Lu.AUTO&&e&&a?e:o.originalSource||"";return((d=n??o.transform)==null?void 0:d(s,t))||s},yte=(e,t,r)=>{var f,v,g,b;let n,{of:a}=e;if("of"in e&&a===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(a)n=t.resolveOf(a,["story"]).story;else try{n=t.storyById()}catch{}let o=((v=(f=n==null?void 0:n.parameters)==null?void 0:f.docs)==null?void 0:v.source)||{},{code:i}=e,s=e.format??o.format,u=e.language??o.language??"jsx",d=e.dark??o.dark??!1;if(!i&&!n)return{error:"Oh no! The source is not available."};if(i)return{code:i,format:s,language:u,dark:d};let p=t.getStoryContext(n),h=e.__forceInitialArgs?p.initialArgs:p.unmappedArgs,m=gte(n.id,h,r);return s=m.format??((b=(g=n.parameters.docs)==null?void 0:g.source)==null?void 0:b.format)??!1,{code:vte({snippet:m.code,storyContext:{...p,args:h},typeFromProps:e.type,transformFromProps:e.transform}),format:s,language:u,dark:d}};function bte(e,t){let r=wte([e],t);return r&&r[0]}function wte(e,t){let[r,n]=l.useState({});return l.useEffect(()=>{Promise.all(e.map(async a=>{let o=await t.loadStory(a);n(i=>i[a]===o?i:{...i,[a]:o})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var Ete=(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},xte=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,o=a.story||{};if(a.disable)return null;if(e.inline??o.inline??!1){let s=e.height??o.height,u=e.autoplay??o.autoplay??!1;return{story:t,inline:!0,height:s,autoplay:u,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??o.height??o.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},Cte=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=l.useContext(rr),r=Ete(e,t),n=bte(r,t);if(!n)return y.createElement(KC,null);let a=xte(e,n,t);return a?y.createElement(sQ,{...a}):null},Dte=e=>{var m,f,v,g,b,C,w,x,E,D;let t=l.useContext(rr),r=l.useContext(cD),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:o}=Tn(n||"story",["story"]),i=yte({...a,...n&&{of:n}},t,r),s=e.layout??o.parameters.layout??((f=(m=o.parameters.docs)==null?void 0:m.canvas)==null?void 0:f.layout)??"padded",u=e.withToolbar??((g=(v=o.parameters.docs)==null?void 0:v.canvas)==null?void 0:g.withToolbar)??!1,d=e.additionalActions??((C=(b=o.parameters.docs)==null?void 0:b.canvas)==null?void 0:C.additionalActions),p=e.sourceState??((x=(w=o.parameters.docs)==null?void 0:w.canvas)==null?void 0:x.sourceState)??"hidden",h=e.className??((D=(E=o.parameters.docs)==null?void 0:E.canvas)==null?void 0:D.className);return y.createElement(YC,{withSource:p==="none"?void 0:i,isExpanded:p==="shown",withToolbar:u,additionalActions:d,className:h,layout:s},y.createElement(Cte,{of:n||o.moduleExport,meta:e.meta,...e.story}))},Ste=(e,t)=>{let r=t.getStoryContext(e),[n,a]=l.useState(r.globals);return l.useEffect(()=>{let o=i=>{a(i.globals)};return t.channel.on(Jy,o),()=>t.channel.off(Jy,o)},[t.channel]),[n]},Ate=(e,t)=>{let r=kte(e,t);if(!r)throw new Error("No result when story was defined");return r},kte=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,o]=l.useState(r.args);l.useEffect(()=>{let u=d=>{d.storyId===n&&o(d.args)};return t.channel.on(Zy,u),()=>t.channel.off(Zy,u)},[n,t.channel]);let i=l.useCallback(u=>t.channel.emit(BX,{storyId:n,updatedArgs:u}),[n,t.channel]),s=l.useCallback(u=>t.channel.emit(zX,{storyId:n,argNames:u}),[n,t.channel]);return e&&[a,i,s]};function _te(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var Fte=e=>{var 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=l.useContext(rr),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:o,component:i,subcomponents:s}=n,u=((E=a.docs)==null?void 0:E.controls)||{},d=e.include??u.include,p=e.exclude??u.exclude,h=e.sort??u.sort,[m,f,v]=Ate(n,r),[g]=Ste(n,r),b=Yy(o,d,p);if(!(s&&Object.keys(s).length>0))return Object.keys(b).length>0||Object.keys(m).length>0?y.createElement(np,{rows:b,sort:h,args:m,globals:g,updateArgs:f,resetArgs:v}):null;let C=fte(i),w=Object.fromEntries(Object.entries(s).map(([D,S])=>[D,{rows:Yy(_te(S,a),d,p),sort:h}])),x={[C]:{rows:b,sort:h},...w};return y.createElement(ute,{tabs:x,sort:h,args:m,globals:g,updateArgs:f,resetArgs:v})},{document:pD}=at,fD=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return y.createElement(r9,null,t);let n=e&&e.split("-");return y.createElement(WC,{language:n&&n[1]||"text",format:!1,code:t,...r})};function Wh(e,t){e.channel.emit($X,t)}var ap=xL.a,Ite=({hash:e,children:t})=>{let r=l.useContext(rr);return y.createElement(ap,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);pD.getElementById(a)&&Wh(r,e)}},t)},hD=e=>{let{href:t,target:r,children:n,...a}=e,o=l.useContext(rr);return!t||r==="_blank"||/^https?:\/\//.test(t)?y.createElement(ap,{...e}):t.startsWith("#")?y.createElement(Ite,{hash:t},n):y.createElement(ap,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),Wh(o,i.currentTarget.getAttribute("href")))},target:r,...a},n)},mD=["h1","h2","h3","h4","h5","h6"],Tte=mD.reduce((e,t)=>({...e,[t]:_(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),Rte=_.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),Bte=({as:e,id:t,children:r,...n})=>{let a=l.useContext(rr),o=Tte[e],i=`#${t}`;return y.createElement(o,{id:t,...n},y.createElement(Rte,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:s=>{pD.getElementById(t)&&Wh(a,i)}},y.createElement(yO,null)),r)},Gh=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return y.createElement(Bte,{as:t,id:r,...a},n);let o=t,{as:i,...s}=e;return y.createElement(o,{...se(s,t)})},gD=mD.reduce((e,t)=>({...e,[t]:r=>y.createElement(Gh,{as:t,...r})}),{}),zte=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(kD`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' This is often caused by not wrapping the child in a template string. This is invalid: @@ -571,4 +571,4 @@ ${t}`);let r=t.match(Gz);if(!r)return y.createElement(l.Fragment,null,t);let[,n, A paragraph \`} - `);return y.createElement(FC,{...e,options:{forceBlock:!0,overrides:{code:fD,a:hD,...gD,...(t=e==null?void 0:e.options)==null?void 0:t.overrides},...e==null?void 0:e.options}})},$te=(e=>(e.INFO="info",e.NOTES="notes",e.DOCGEN="docgen",e.AUTO="auto",e))($te||{}),Lte=e=>{var t,r,n,a,o,i,s,u;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:d,component:p}=e.preparedMeta;return((a=(n=d.docs)==null?void 0:n.description)==null?void 0:a.component)||((i=(o=d.docs)==null?void 0:o.extractComponentDescription)==null?void 0:i.call(o,p,{component:p,parameters:d}))||null}case"component":{let{component:d,projectAnnotations:{parameters:p}}=e;return((u=(s=p.docs)==null?void 0:s.extractComponentDescription)==null?void 0:u.call(s,d,{component:d,parameters:p}))||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${e.type}`)}},op=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=Tn(t||"meta"),n=Lte(r);return n?y.createElement(zte,null,n):null},c3=BD(HX()),Ote=_.div(({theme:e})=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),Mte=_.div(({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"}})),Pte=_.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.textColor,textTransform:"uppercase",marginBottom:10})),Nte=({title:e})=>e===null?null:typeof e=="string"?y.createElement(Pte,null,e):e,Hte=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:a,unsafeTocbotOptions:o})=>(l.useEffect(()=>{let i={tocSelector:".toc-wrapper",contentSelector:n??".sbdocs-content",headingSelector:r??"h3",ignoreSelector:a??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:()=>!1,...o},s=setTimeout(()=>c3.init(i),100);return()=>{clearTimeout(s),c3.destroy()}},[t]),y.createElement(y.Fragment,null,y.createElement(Ote,null,t?null:y.createElement(Mte,null,y.createElement(Nte,{title:e||null}),y.createElement("div",{className:"toc-wrapper"}))))),{document:jte,window:Vte}=at,Ute=({context:e,theme:t,children:r})=>{var a,o,i,s,u;let n;try{n=(o=(a=e.resolveOf("meta",["meta"]).preparedMeta.parameters)==null?void 0:a.docs)==null?void 0:o.toc}catch{n=(u=(s=(i=e==null?void 0:e.projectAnnotations)==null?void 0:i.parameters)==null?void 0:s.docs)==null?void 0:u.toc}return l.useEffect(()=>{let d;try{if(d=new URL(Vte.parent.location.toString()),d.hash){let p=jte.getElementById(d.hash.substring(1));p&&setTimeout(()=>{hte(p)},200)}}catch{}}),y.createElement(rr.Provider,{value:e},y.createElement(mte,{channel:e.channel},y.createElement(V3,{theme:kA(t)},y.createElement(JX,{toc:n?y.createElement(Hte,{className:"sbdocs sbdocs-toc--custom",...n}):null},r))))},qte=/\s*\/\s*/,Wte=e=>{let t=e.trim().split(qte);return(t==null?void 0:t[(t==null?void 0:t.length)-1])||e},Gte=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=Tn(r||"meta",["meta"]).preparedMeta}catch(o){if(t&&!o.message.includes("did you forget to use ?"))throw o}let a=t||Wte(n==null?void 0:n.title);return a?y.createElement(WX,{className:"sbdocs-title sb-unstyled"},a):null},Kte="https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle",Yte=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=Tn(t||"meta",["meta"]).preparedMeta}catch(s){if(r&&!s.message.includes("did you forget to use ?"))throw s}let{componentSubtitle:a,docs:o}=(n==null?void 0:n.parameters)||{};a&&TX(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${Kte}`);let i=r||(o==null?void 0:o.subtitle)||a;return i?y.createElement(GX,{className:"sbdocs-subtitle sb-unstyled"},i):null},Jte=({children:e,disableAnchor:t})=>{if(t||typeof e!="string")return y.createElement(a9,null,e);let r=globalThis.encodeURIComponent(e.toLowerCase());return y.createElement(Gh,{as:"h3",id:r},e)},vD=({of:e,expanded:t=!0,withToolbar:r=!1,__forceInitialArgs:n=!1,__primary:a=!1})=>{var s,u;let{story:o}=Tn(e||"story",["story"]),i=((u=(s=o.parameters.docs)==null?void 0:s.canvas)==null?void 0:u.withToolbar)??r;return y.createElement(dte,{storyId:o.id},t&&y.createElement(y.Fragment,null,y.createElement(Jte,null,o.name),y.createElement(op,{of:e})),y.createElement(Dte,{of:e,withToolbar:i,story:{__forceInitialArgs:n,__primary:a},source:{__forceInitialArgs:n}}))},Zte=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}=Tn(t||"meta",["meta"]),n=l.useContext(rr).componentStoriesFromCSFFile(r)[0];return n?y.createElement(vD,{of:n.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},Xte=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return y.createElement(n9,null,e);let n=e.toLowerCase().replace(/[^a-z0-9]/gi,"-");return y.createElement(Gh,{as:"h2",id:n,...r},e)},Qte=_(Xte)(({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"}})),ere=({title:e="Stories",includePrimary:t=!0})=>{var s;let{componentStories:r,projectAnnotations:n,getStoryContext:a}=l.useContext(rr),o=r(),{stories:{filter:i}={filter:void 0}}=((s=n.parameters)==null?void 0:s.docs)||{};return i&&(o=o.filter(u=>i(u,a(u)))),o.some(u=>{var d;return(d=u.tags)==null?void 0:d.includes("autodocs")})&&(o=o.filter(u=>{var d;return((d=u.tags)==null?void 0:d.includes("autodocs"))&&!u.usesMount})),t||(o=o.slice(1)),!o||o.length===0?null:y.createElement(y.Fragment,null,y.createElement(Qte,null,e),o.map(u=>u&&y.createElement(vD,{key:u.id,of:u.moduleExport,expanded:!0,__forceInitialArgs:!0})))},tre=()=>{let e=Tn("meta",["meta"]),{stories:t}=e.csfFile,r=Object.keys(t).length===1;return y.createElement(y.Fragment,null,y.createElement(Gte,null),y.createElement(Yte,null),y.createElement(op,{of:"meta"}),r?y.createElement(op,{of:"story"}):null,y.createElement(Zte,null),y.createElement(Fte,null),r?null:y.createElement(ere,null))};function rre({context:e,docsParameter:t}){let r=t.container||Ute,n=t.page||tre;return y.createElement(r,{context:e,theme:t.theme},y.createElement(n,null))}var yD={code:fD,a:hD,...gD},nre=class extends l.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:y.createElement(y.Fragment,null,t)}},are=class{constructor(){this.render=async(e,t,r)=>{let n={...yD,...t==null?void 0:t.components},a=rre;return new Promise((o,i)=>{ip(async()=>{const{MDXProvider:s}=await import("./index-DNeIa3IR.js");return{MDXProvider:s}},__vite__mapDeps([11,2,3,1]),import.meta.url).then(({MDXProvider:s})=>xD(y.createElement(nre,{showException:i,key:Math.random()},y.createElement(s,{components:n},y.createElement(a,{context:e,docsParameter:t}))),r)).then(()=>o())})},this.unmount=e=>{CD(e)}}};const Pre=Object.freeze(Object.defineProperty({__proto__:null,DocsRenderer:are,defaultComponents:yD},Symbol.toStringTag,{value:"Module"}));export{fF as $,Ax as A,Ire as B,n9 as C,mre as D,a9 as E,Fn as F,lh as G,gre as H,wre as I,Zz as J,Ix as K,sF as L,dF as M,gh as N,wu as O,Are as P,pF as Q,rF as R,Fre as S,Fx as T,Tx as U,oL as V,j$ as W,Sre as X,Cre as Y,zre as Z,Rx as _,Q_ as a,Dre as a0,mF as a1,xre as a2,C$ as a3,Vz as a4,Hr as a5,xL as a6,yd as a7,wL as a8,N1 as a9,_re as aa,se as ab,CL as ac,ue as ad,Fh as ae,_ as af,$re as ag,Dt as ah,Pre as ai,Fi as b,tF as c,nF as d,aF as e,fn as f,iF as g,P$ as h,Op as i,bL as j,oF as k,yre as l,uF as m,cF as n,bre as o,Bre as p,ia as q,Rre as r,W_ as s,Tre as t,G_ as u,jl as v,r9 as w,eF as x,X_ as y,o9 as z}; + `);return y.createElement(FC,{...e,options:{forceBlock:!0,overrides:{code:fD,a:hD,...gD,...(t=e==null?void 0:e.options)==null?void 0:t.overrides},...e==null?void 0:e.options}})},$te=(e=>(e.INFO="info",e.NOTES="notes",e.DOCGEN="docgen",e.AUTO="auto",e))($te||{}),Lte=e=>{var t,r,n,a,o,i,s,u;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:d,component:p}=e.preparedMeta;return((a=(n=d.docs)==null?void 0:n.description)==null?void 0:a.component)||((i=(o=d.docs)==null?void 0:o.extractComponentDescription)==null?void 0:i.call(o,p,{component:p,parameters:d}))||null}case"component":{let{component:d,projectAnnotations:{parameters:p}}=e;return((u=(s=p.docs)==null?void 0:s.extractComponentDescription)==null?void 0:u.call(s,d,{component:d,parameters:p}))||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${e.type}`)}},op=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=Tn(t||"meta"),n=Lte(r);return n?y.createElement(zte,null,n):null},c3=BD(HX()),Ote=_.div(({theme:e})=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),Mte=_.div(({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"}})),Pte=_.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.textColor,textTransform:"uppercase",marginBottom:10})),Nte=({title:e})=>e===null?null:typeof e=="string"?y.createElement(Pte,null,e):e,Hte=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:a,unsafeTocbotOptions:o})=>(l.useEffect(()=>{let i={tocSelector:".toc-wrapper",contentSelector:n??".sbdocs-content",headingSelector:r??"h3",ignoreSelector:a??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:()=>!1,...o},s=setTimeout(()=>c3.init(i),100);return()=>{clearTimeout(s),c3.destroy()}},[t]),y.createElement(y.Fragment,null,y.createElement(Ote,null,t?null:y.createElement(Mte,null,y.createElement(Nte,{title:e||null}),y.createElement("div",{className:"toc-wrapper"}))))),{document:jte,window:Vte}=at,Ute=({context:e,theme:t,children:r})=>{var a,o,i,s,u;let n;try{n=(o=(a=e.resolveOf("meta",["meta"]).preparedMeta.parameters)==null?void 0:a.docs)==null?void 0:o.toc}catch{n=(u=(s=(i=e==null?void 0:e.projectAnnotations)==null?void 0:i.parameters)==null?void 0:s.docs)==null?void 0:u.toc}return l.useEffect(()=>{let d;try{if(d=new URL(Vte.parent.location.toString()),d.hash){let p=jte.getElementById(d.hash.substring(1));p&&setTimeout(()=>{hte(p)},200)}}catch{}}),y.createElement(rr.Provider,{value:e},y.createElement(mte,{channel:e.channel},y.createElement(V3,{theme:kA(t)},y.createElement(JX,{toc:n?y.createElement(Hte,{className:"sbdocs sbdocs-toc--custom",...n}):null},r))))},qte=/\s*\/\s*/,Wte=e=>{let t=e.trim().split(qte);return(t==null?void 0:t[(t==null?void 0:t.length)-1])||e},Gte=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=Tn(r||"meta",["meta"]).preparedMeta}catch(o){if(t&&!o.message.includes("did you forget to use ?"))throw o}let a=t||Wte(n==null?void 0:n.title);return a?y.createElement(WX,{className:"sbdocs-title sb-unstyled"},a):null},Kte="https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle",Yte=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=Tn(t||"meta",["meta"]).preparedMeta}catch(s){if(r&&!s.message.includes("did you forget to use ?"))throw s}let{componentSubtitle:a,docs:o}=(n==null?void 0:n.parameters)||{};a&&TX(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${Kte}`);let i=r||(o==null?void 0:o.subtitle)||a;return i?y.createElement(GX,{className:"sbdocs-subtitle sb-unstyled"},i):null},Jte=({children:e,disableAnchor:t})=>{if(t||typeof e!="string")return y.createElement(a9,null,e);let r=globalThis.encodeURIComponent(e.toLowerCase());return y.createElement(Gh,{as:"h3",id:r},e)},vD=({of:e,expanded:t=!0,withToolbar:r=!1,__forceInitialArgs:n=!1,__primary:a=!1})=>{var s,u;let{story:o}=Tn(e||"story",["story"]),i=((u=(s=o.parameters.docs)==null?void 0:s.canvas)==null?void 0:u.withToolbar)??r;return y.createElement(dte,{storyId:o.id},t&&y.createElement(y.Fragment,null,y.createElement(Jte,null,o.name),y.createElement(op,{of:e})),y.createElement(Dte,{of:e,withToolbar:i,story:{__forceInitialArgs:n,__primary:a},source:{__forceInitialArgs:n}}))},Zte=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}=Tn(t||"meta",["meta"]),n=l.useContext(rr).componentStoriesFromCSFFile(r)[0];return n?y.createElement(vD,{of:n.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},Xte=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return y.createElement(n9,null,e);let n=e.toLowerCase().replace(/[^a-z0-9]/gi,"-");return y.createElement(Gh,{as:"h2",id:n,...r},e)},Qte=_(Xte)(({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"}})),ere=({title:e="Stories",includePrimary:t=!0})=>{var s;let{componentStories:r,projectAnnotations:n,getStoryContext:a}=l.useContext(rr),o=r(),{stories:{filter:i}={filter:void 0}}=((s=n.parameters)==null?void 0:s.docs)||{};return i&&(o=o.filter(u=>i(u,a(u)))),o.some(u=>{var d;return(d=u.tags)==null?void 0:d.includes("autodocs")})&&(o=o.filter(u=>{var d;return((d=u.tags)==null?void 0:d.includes("autodocs"))&&!u.usesMount})),t||(o=o.slice(1)),!o||o.length===0?null:y.createElement(y.Fragment,null,y.createElement(Qte,null,e),o.map(u=>u&&y.createElement(vD,{key:u.id,of:u.moduleExport,expanded:!0,__forceInitialArgs:!0})))},tre=()=>{let e=Tn("meta",["meta"]),{stories:t}=e.csfFile,r=Object.keys(t).length===1;return y.createElement(y.Fragment,null,y.createElement(Gte,null),y.createElement(Yte,null),y.createElement(op,{of:"meta"}),r?y.createElement(op,{of:"story"}):null,y.createElement(Zte,null),y.createElement(Fte,null),r?null:y.createElement(ere,null))};function rre({context:e,docsParameter:t}){let r=t.container||Ute,n=t.page||tre;return y.createElement(r,{context:e,theme:t.theme},y.createElement(n,null))}var yD={code:fD,a:hD,...gD},nre=class extends l.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:y.createElement(y.Fragment,null,t)}},are=class{constructor(){this.render=async(e,t,r)=>{let n={...yD,...t==null?void 0:t.components},a=rre;return new Promise((o,i)=>{ip(async()=>{const{MDXProvider:s}=await import("./index-BggmREGX.js");return{MDXProvider:s}},__vite__mapDeps([11,2,3,1]),import.meta.url).then(({MDXProvider:s})=>xD(y.createElement(nre,{showException:i,key:Math.random()},y.createElement(s,{components:n},y.createElement(a,{context:e,docsParameter:t}))),r)).then(()=>o())})},this.unmount=e=>{CD(e)}}};const Pre=Object.freeze(Object.defineProperty({__proto__:null,DocsRenderer:are,defaultComponents:yD},Symbol.toStringTag,{value:"Module"}));export{fF as $,Ax as A,Ire as B,n9 as C,mre as D,a9 as E,Fn as F,lh as G,gre as H,wre as I,Zz as J,Ix as K,sF as L,dF as M,gh as N,wu as O,Are as P,pF as Q,rF as R,Fre as S,Fx as T,Tx as U,oL as V,j$ as W,Sre as X,Cre as Y,zre as Z,Rx as _,Q_ as a,Dre as a0,mF as a1,xre as a2,C$ as a3,Vz as a4,Hr as a5,xL as a6,yd as a7,wL as a8,N1 as a9,_re as aa,se as ab,CL as ac,ue as ad,Fh as ae,_ as af,$re as ag,Dt as ah,Pre as ai,Fi as b,tF as c,nF as d,aF as e,fn as f,iF as g,P$ as h,Op as i,bL as j,oF as k,yre as l,uF as m,cF as n,bre as o,Bre as p,ia as q,Rre as r,W_ as s,Tre as t,G_ as u,jl as v,r9 as w,eF as x,X_ as y,o9 as z}; diff --git a/assets/FileGrid.stories-bm2V4I8q.js b/assets/FileGrid.stories-Cgc9RzcR.js similarity index 84% rename from assets/FileGrid.stories-bm2V4I8q.js rename to assets/FileGrid.stories-Cgc9RzcR.js index e7808b27a..72673925d 100644 --- a/assets/FileGrid.stories-bm2V4I8q.js +++ b/assets/FileGrid.stories-Cgc9RzcR.js @@ -1,4 +1,4 @@ -import{j as t,a as r}from"./emotion-react.browser.esm-DVCGPw0o.js";import{r as V}from"./index-B4Z6PsAH.js";import{S as B}from"./ic_three_dots-BVRLYobK.js";import{C as G}from"./CheckBox-B0NBCG01.js";import{F as p}from"./Flex-CcBQZiMH.js";import{H as R}from"./Heading-BCYRSNXR.js";import{M as W,a as A,b as m}from"./MenuList-Cq7c8mmt.js";import{T as h}from"./Text-BdNMkr7S.js";import"./iframe-BnffqoK7.js";import{u as z}from"./useOverlay-jcCv9x_t.js";import{c as J,i as K,n as Q,o as U,a as u,O as f,t as b,F as y}from"./index.style-TC8qthSU.js";import{g as X}from"./file-o2e5cVZ2.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./theme-DwD7F4-e.js";import"./useOutsideClick-COUwwguf.js";import"../sb-preview/runtime.js";import"./ic_trash-D7lR1pQ_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="0822b569-f554-4b4c-9a51-79bc960aa804",e._sentryDebugIdIdentifier="sentry-dbid-0822b569-f554-4b4c-9a51-79bc960aa804")}catch{}})();const Y=e=>e==="pdf"?y.pdf:e==="word"?y.word:y.image,L=({title:e,type:s,volume:g,variant:a="primary",isSelectable:j=!1,onSelect:d,isSelected:k=!1})=>{const{isOpen:E,close:P,toggle:H}=z(),l=V.useRef(null),M=()=>{if(!l.current)return!1;const{y:N}=l.current.getBoundingClientRect();return N+118+20d==null?void 0:d()}),r("div",{css:K(a!=="primary"),children:Y(s)}),t(p,{styles:{direction:"column",gap:a==="primary"?"1.2rem":"0.8rem"},children:[t(p,{styles:{width:"100%",justify:"space-between",align:"center"},children:[r(R,{css:Q,tag:"H3",children:e}),a==="primary"&&t(W,{onClose:P,children:[r("div",{ref:l,children:r(B,{onClick:H,css:{cursor:"pointer"},width:16,height:16})}),t(A,{css:U(M()),isOpen:E,children:[r(m,{css:u,LeftIcon:f.download,onSelect:()=>{},children:"파일 다운로드"}),r(m,{css:u,LeftIcon:f.deleted,onSelect:()=>{},children:"휴지통으로 이동"}),r(m,{css:u,LeftIcon:f.handover,onSelect:()=>{},children:"인수인계 노트 보기"})]})]})]}),t(p,{styles:{width:"100%",justify:"space-between",align:"center"},children:[t(h,{tag:"body8",css:b,children:[s," 문서"]}),r(h,{tag:"body8",css:b,children:X(g)})]})]})]})};L.__docgenInfo={description:"",methods:[],displayName:"FileGrid",props:{variant:{required:!1,tsType:{name:"union",raw:"'primary' | 'secondary'",elements:[{name:"literal",value:"'primary'"},{name:"literal",value:"'secondary'"}]},description:"",defaultValue:{value:"'primary'",computed:!1}},title:{required:!0,tsType:{name:"string"},description:""},type:{required:!0,tsType:{name:"union",raw:"File['type']"},description:"API 명세에 따라 달라질 수 있음 + 추후 삭제"},volume:{required:!0,tsType:{name:"number"},description:""},isSelectable:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},onSelect:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},isSelected:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}}}};const ge={title:"Shared/FileGrid",component:L,parameters:{layout:"centered"},tags:["autodocs"],decorators:[e=>r("div",{css:{width:"20rem"},children:r(e,{})})],args:{volume:2e3}},o={args:{title:"최주용",type:"pdf"}},n={args:{title:"김규홍",type:"word",volume:3e4}},i={args:{title:"이채원",type:"pdf"}},c={decorators:[e=>r("div",{css:{width:"16rem"},children:r(e,{})})],args:{variant:"secondary",title:"이채원",type:"pdf"}};var w,v,I;o.parameters={...o.parameters,docs:{...(w=o.parameters)==null?void 0:w.docs,source:{originalSource:`{ +import{j as t,a as r}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{r as V}from"./index-Bs6nXyGp.js";import{S as B}from"./ic_three_dots-DhrEP3KX.js";import{C as G}from"./CheckBox--BKu8vEN.js";import{F as p}from"./Flex-DMgVUl98.js";import{H as R}from"./Heading-FD1nScCb.js";import{M as W,a as A,b as m}from"./MenuList-DtX22AXJ.js";import{T as h}from"./Text-9RJ8J0eA.js";import"./iframe-AJyGuqY3.js";import{u as z}from"./useOverlay-COpOggKz.js";import{c as J,i as K,n as Q,o as U,a as u,O as f,t as b,F as y}from"./index.style-BqtEg6R5.js";import{g as X}from"./file-CAHT9y9p.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./theme-Cuq_aI8Z.js";import"./useOutsideClick-CEpXkKWK.js";import"../sb-preview/runtime.js";import"./ic_trash-zLH-eJlm.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="0822b569-f554-4b4c-9a51-79bc960aa804",e._sentryDebugIdIdentifier="sentry-dbid-0822b569-f554-4b4c-9a51-79bc960aa804")}catch{}})();const Y=e=>e==="pdf"?y.pdf:e==="word"?y.word:y.image,L=({title:e,type:s,volume:g,variant:a="primary",isSelectable:j=!1,onSelect:d,isSelected:k=!1})=>{const{isOpen:E,close:P,toggle:H}=z(),l=V.useRef(null),M=()=>{if(!l.current)return!1;const{y:N}=l.current.getBoundingClientRect();return N+118+20d==null?void 0:d()}),r("div",{css:K(a!=="primary"),children:Y(s)}),t(p,{styles:{direction:"column",gap:a==="primary"?"1.2rem":"0.8rem"},children:[t(p,{styles:{width:"100%",justify:"space-between",align:"center"},children:[r(R,{css:Q,tag:"H3",children:e}),a==="primary"&&t(W,{onClose:P,children:[r("div",{ref:l,children:r(B,{onClick:H,css:{cursor:"pointer"},width:16,height:16})}),t(A,{css:U(M()),isOpen:E,children:[r(m,{css:u,LeftIcon:f.download,onSelect:()=>{},children:"파일 다운로드"}),r(m,{css:u,LeftIcon:f.deleted,onSelect:()=>{},children:"휴지통으로 이동"}),r(m,{css:u,LeftIcon:f.handover,onSelect:()=>{},children:"인수인계 노트 보기"})]})]})]}),t(p,{styles:{width:"100%",justify:"space-between",align:"center"},children:[t(h,{tag:"body8",css:b,children:[s," 문서"]}),r(h,{tag:"body8",css:b,children:X(g)})]})]})]})};L.__docgenInfo={description:"",methods:[],displayName:"FileGrid",props:{variant:{required:!1,tsType:{name:"union",raw:"'primary' | 'secondary'",elements:[{name:"literal",value:"'primary'"},{name:"literal",value:"'secondary'"}]},description:"",defaultValue:{value:"'primary'",computed:!1}},title:{required:!0,tsType:{name:"string"},description:""},type:{required:!0,tsType:{name:"union",raw:"File['type']"},description:"API 명세에 따라 달라질 수 있음 + 추후 삭제"},volume:{required:!0,tsType:{name:"number"},description:""},isSelectable:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},onSelect:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},isSelected:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}}}};const ge={title:"Shared/FileGrid",component:L,parameters:{layout:"centered"},tags:["autodocs"],decorators:[e=>r("div",{css:{width:"20rem"},children:r(e,{})})],args:{volume:2e3}},o={args:{title:"최주용",type:"pdf"}},n={args:{title:"김규홍",type:"word",volume:3e4}},i={args:{title:"이채원",type:"pdf"}},c={decorators:[e=>r("div",{css:{width:"16rem"},children:r(e,{})})],args:{variant:"secondary",title:"이채원",type:"pdf"}};var w,v,I;o.parameters={...o.parameters,docs:{...(w=o.parameters)==null?void 0:w.docs,source:{originalSource:`{ args: { title: '최주용', type: 'pdf' diff --git a/assets/FileListHeader.stories-CNI2LH90.js b/assets/FileListHeader.stories-CBmQnwAl.js similarity index 80% rename from assets/FileListHeader.stories-CNI2LH90.js rename to assets/FileListHeader.stories-CBmQnwAl.js index 71c6a8762..16c7e0aa8 100644 --- a/assets/FileListHeader.stories-CNI2LH90.js +++ b/assets/FileListHeader.stories-CBmQnwAl.js @@ -1 +1 @@ -import{c,j as a,a as r}from"./emotion-react.browser.esm-DVCGPw0o.js";import{C as m}from"./CheckBox-B0NBCG01.js";import{F as p}from"./Flex-CcBQZiMH.js";import{T as t}from"./Text-BdNMkr7S.js";import{e as f}from"./ellipsis-Bk2wdyyW.js";import"./iframe-BnffqoK7.js";import"./index-B4Z6PsAH.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./extends-ClQVCWlZ.js";import"./theme-DwD7F4-e.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="4a4bf08f-1131-482a-9424-c55e97ec9ca3",e._sentryDebugIdIdentifier="sentry-dbid-4a4bf08f-1131-482a-9424-c55e97ec9ca3")}catch{}})();const g=c({display:"grid",gridTemplateColumns:"0.55fr 0.45fr",alignItems:"center",width:"100%",height:"4.8rem",padding:"1.4rem 0","& p":{fontWeight:400,...f}}),u=c({flex:.5,display:"grid",gridTemplateColumns:"3fr 2fr 3.6fr 0.4fr",alignItems:"center"}),l=({onSelectAll:e})=>a("header",{css:g,children:[a(p,{styles:{grow:"0.5",align:"center",gap:"1.6rem"},children:[r(m,{isChecked:!1,onChange:e}),r(t,{tag:"body6",children:"이름"})]}),a("div",{css:u,children:[r(t,{tag:"body6",children:"크기"}),r(t,{tag:"body6",children:"종류"}),r(t,{tag:"body6",children:"추가된 날짜"})]})]});l.__docgenInfo={description:"",methods:[],displayName:"FileListHeader",props:{onSelectAll:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}}};const T={title:"Page/Drive/FileListHeader",component:l,parameters:{layout:"centered"},tags:["autodocs"],decorators:[e=>r("div",{css:{width:"80vw"},children:r(e,{})})],args:{onSelectAll:()=>{}}},s={};var o,d,n;s.parameters={...s.parameters,docs:{...(o=s.parameters)==null?void 0:o.docs,source:{originalSource:"{}",...(n=(d=s.parameters)==null?void 0:d.docs)==null?void 0:n.source}}};const j=["Default"];export{s as Default,j as __namedExportsOrder,T as default}; +import{c,j as a,a as r}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{C as m}from"./CheckBox--BKu8vEN.js";import{F as p}from"./Flex-DMgVUl98.js";import{T as t}from"./Text-9RJ8J0eA.js";import{e as f}from"./ellipsis-bMyq7Nk3.js";import"./iframe-AJyGuqY3.js";import"./index-Bs6nXyGp.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./extends-ClQVCWlZ.js";import"./theme-Cuq_aI8Z.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="4a4bf08f-1131-482a-9424-c55e97ec9ca3",e._sentryDebugIdIdentifier="sentry-dbid-4a4bf08f-1131-482a-9424-c55e97ec9ca3")}catch{}})();const g=c({display:"grid",gridTemplateColumns:"0.55fr 0.45fr",alignItems:"center",width:"100%",height:"4.8rem",padding:"1.4rem 0","& p":{fontWeight:400,...f}}),u=c({flex:.5,display:"grid",gridTemplateColumns:"3fr 2fr 3.6fr 0.4fr",alignItems:"center"}),l=({onSelectAll:e})=>a("header",{css:g,children:[a(p,{styles:{grow:"0.5",align:"center",gap:"1.6rem"},children:[r(m,{isChecked:!1,onChange:e}),r(t,{tag:"body6",children:"이름"})]}),a("div",{css:u,children:[r(t,{tag:"body6",children:"크기"}),r(t,{tag:"body6",children:"종류"}),r(t,{tag:"body6",children:"추가된 날짜"})]})]});l.__docgenInfo={description:"",methods:[],displayName:"FileListHeader",props:{onSelectAll:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}}};const T={title:"Page/Drive/FileListHeader",component:l,parameters:{layout:"centered"},tags:["autodocs"],decorators:[e=>r("div",{css:{width:"80vw"},children:r(e,{})})],args:{onSelectAll:()=>{}}},s={};var o,d,n;s.parameters={...s.parameters,docs:{...(o=s.parameters)==null?void 0:o.docs,source:{originalSource:"{}",...(n=(d=s.parameters)==null?void 0:d.docs)==null?void 0:n.source}}};const j=["Default"];export{s as Default,j as __namedExportsOrder,T as default}; diff --git a/assets/FileListItem.stories-Cl7BHatl.js b/assets/FileListItem.stories-BRbfBFbC.js similarity index 83% rename from assets/FileListItem.stories-Cl7BHatl.js rename to assets/FileListItem.stories-BRbfBFbC.js index 1db80fb5c..9d09250c7 100644 --- a/assets/FileListItem.stories-Cl7BHatl.js +++ b/assets/FileListItem.stories-BRbfBFbC.js @@ -1 +1 @@ -import{c as o,j as a,a as t}from"./emotion-react.browser.esm-DVCGPw0o.js";import{S as g}from"./ic_three_dots-BVRLYobK.js";import{C as y}from"./CheckBox-B0NBCG01.js";import{F as h}from"./Flex-CcBQZiMH.js";import{T as n}from"./Text-BdNMkr7S.js";import{e as v}from"./ellipsis-Bk2wdyyW.js";import{t as b}from"./theme-DwD7F4-e.js";import"./iframe-BnffqoK7.js";import{g as w}from"./file-o2e5cVZ2.js";import"./index-B4Z6PsAH.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./extends-ClQVCWlZ.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="f107f2bd-8c21-48e6-9638-30fe9f9ad5ed",e._sentryDebugIdIdentifier="sentry-dbid-f107f2bd-8c21-48e6-9638-30fe9f9ad5ed")}catch{}})();const I=o({display:"grid",gridTemplateColumns:"0.55fr 0.45fr",alignItems:"center",width:"100%",height:"4.8rem",padding:"1.4rem 0","& p, & time":{fontWeight:400,...v}}),T=o({...b.text.body06}),S=o({display:"grid",gridTemplateColumns:"3fr 2fr 3.6fr 0.4fr",alignItems:"center",gap:"0.2rem"}),p=({title:e,volume:r,createdAt:s,type:c,isSelected:u=!1,onFileSelect:f=()=>{}})=>a("div",{css:I,children:[a(h,{styles:{grow:"0.5",align:"center",gap:"1.6rem"},children:[t(y,{isChecked:u,onChange:f}),t(n,{tag:"body6",children:e})]}),a("div",{css:S,children:[t(n,{tag:"body6",children:w(r)}),t(n,{tag:"body6",children:c}),t("time",{css:T,dateTime:s,children:s}),t(g,{onClick:()=>{},css:{cursor:"pointer"},role:"button",width:20,height:20})]})]});p.__docgenInfo={description:"",methods:[],displayName:"FileListItem",props:{fileId:{required:!0,tsType:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]},description:""},title:{required:!0,tsType:{name:"string"},description:""},volume:{required:!0,tsType:{name:"number"},description:""},createdAt:{required:!0,tsType:{name:"string"},description:""},type:{required:!0,tsType:{name:"union",raw:"'pdf' | 'jpeg' | 'png' | 'jpg' | 'ppt' | 'word'",elements:[{name:"literal",value:"'pdf'"},{name:"literal",value:"'jpeg'"},{name:"literal",value:"'png'"},{name:"literal",value:"'jpg'"},{name:"literal",value:"'ppt'"},{name:"literal",value:"'word'"}]},description:""},isSelected:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},onFileSelect:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"",defaultValue:{value:"() => {}",computed:!1}}}};const N={title:"Page/Drive/FileListItem",component:p,parameters:{layout:"centered"},tags:["autodocs"],decorators:[e=>t("div",{css:{width:"80vw"},children:t(e,{})})],args:{fileId:1,title:"폴더 이름",volume:3e3,createdAt:"2024년 9월 30일 오전 10:13",type:"jpeg"}},i={};var d,l,m;i.parameters={...i.parameters,docs:{...(d=i.parameters)==null?void 0:d.docs,source:{originalSource:"{}",...(m=(l=i.parameters)==null?void 0:l.docs)==null?void 0:m.source}}};const O=["Default"];export{i as Default,O as __namedExportsOrder,N as default}; +import{c as o,j as a,a as t}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{S as g}from"./ic_three_dots-DhrEP3KX.js";import{C as y}from"./CheckBox--BKu8vEN.js";import{F as h}from"./Flex-DMgVUl98.js";import{T as n}from"./Text-9RJ8J0eA.js";import{e as v}from"./ellipsis-bMyq7Nk3.js";import{t as b}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";import{g as w}from"./file-CAHT9y9p.js";import"./index-Bs6nXyGp.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./extends-ClQVCWlZ.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="f107f2bd-8c21-48e6-9638-30fe9f9ad5ed",e._sentryDebugIdIdentifier="sentry-dbid-f107f2bd-8c21-48e6-9638-30fe9f9ad5ed")}catch{}})();const I=o({display:"grid",gridTemplateColumns:"0.55fr 0.45fr",alignItems:"center",width:"100%",height:"4.8rem",padding:"1.4rem 0","& p, & time":{fontWeight:400,...v}}),T=o({...b.text.body06}),S=o({display:"grid",gridTemplateColumns:"3fr 2fr 3.6fr 0.4fr",alignItems:"center",gap:"0.2rem"}),p=({title:e,volume:r,createdAt:s,type:c,isSelected:u=!1,onFileSelect:f=()=>{}})=>a("div",{css:I,children:[a(h,{styles:{grow:"0.5",align:"center",gap:"1.6rem"},children:[t(y,{isChecked:u,onChange:f}),t(n,{tag:"body6",children:e})]}),a("div",{css:S,children:[t(n,{tag:"body6",children:w(r)}),t(n,{tag:"body6",children:c}),t("time",{css:T,dateTime:s,children:s}),t(g,{onClick:()=>{},css:{cursor:"pointer"},role:"button",width:20,height:20})]})]});p.__docgenInfo={description:"",methods:[],displayName:"FileListItem",props:{fileId:{required:!0,tsType:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]},description:""},title:{required:!0,tsType:{name:"string"},description:""},volume:{required:!0,tsType:{name:"number"},description:""},createdAt:{required:!0,tsType:{name:"string"},description:""},type:{required:!0,tsType:{name:"union",raw:"'pdf' | 'jpeg' | 'png' | 'jpg' | 'ppt' | 'word'",elements:[{name:"literal",value:"'pdf'"},{name:"literal",value:"'jpeg'"},{name:"literal",value:"'png'"},{name:"literal",value:"'jpg'"},{name:"literal",value:"'ppt'"},{name:"literal",value:"'word'"}]},description:""},isSelected:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},onFileSelect:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"",defaultValue:{value:"() => {}",computed:!1}}}};const N={title:"Page/Drive/FileListItem",component:p,parameters:{layout:"centered"},tags:["autodocs"],decorators:[e=>t("div",{css:{width:"80vw"},children:t(e,{})})],args:{fileId:1,title:"폴더 이름",volume:3e3,createdAt:"2024년 9월 30일 오전 10:13",type:"jpeg"}},i={};var d,l,m;i.parameters={...i.parameters,docs:{...(d=i.parameters)==null?void 0:d.docs,source:{originalSource:"{}",...(m=(l=i.parameters)==null?void 0:l.docs)==null?void 0:m.source}}};const O=["Default"];export{i as Default,O as __namedExportsOrder,N as default}; diff --git a/assets/Flex-CcBQZiMH.js b/assets/Flex-DMgVUl98.js similarity index 91% rename from assets/Flex-CcBQZiMH.js rename to assets/Flex-DMgVUl98.js index 3bb611d8d..e9c2a6db7 100644 --- a/assets/Flex-CcBQZiMH.js +++ b/assets/Flex-DMgVUl98.js @@ -1 +1 @@ -import{c as h,a as S}from"./emotion-react.browser.esm-DVCGPw0o.js";import"./iframe-BnffqoK7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="48ae957f-7491-41d3-8fa9-dfe79b63082d",e._sentryDebugIdIdentifier="sentry-dbid-48ae957f-7491-41d3-8fa9-dfe79b63082d")}catch{}})();const j=({direction:e="row",align:t="flex-start",justify:s="flex-start",gap:a="0px",position:l="static",top:d="",right:n="",bottom:r="",left:f="",wrap:o="nowrap",basis:i="auto",grow:p="0",shrink:u=0,width:c="",height:y="",maxWidth:x="",maxHeight:m="",margin:b="0",marginRight:g="",marginTop:w="",marginLeft:I="",marginBottom:_="",padding:v="",paddingTop:D="",paddingRight:F="",paddingBottom:E="",paddingLeft:T=""})=>h({display:"flex",position:l,top:d,right:n,bottom:r,left:f,flexWrap:o,flexBasis:i,flexGrow:p,flexShrink:u,flexDirection:e,alignItems:t,justifyContent:s,gap:a,width:c,height:y,maxWidth:x,maxHeight:m,margin:b,marginRight:g,marginLeft:I,marginTop:w,marginBottom:_,padding:v,paddingTop:D,paddingRight:F,paddingBottom:E,paddingLeft:T}),k=({tag:e="div",styles:t={},children:s,...a})=>S(e,{css:j(t),...a,children:s});k.__docgenInfo={description:"",methods:[],displayName:"Flex",props:{tag:{required:!1,tsType:{name:"ElementType"},description:"",defaultValue:{value:"'div'",computed:!1}},styles:{required:!1,tsType:{name:"FlexStyle"},description:"",defaultValue:{value:"{}",computed:!1}}},composes:["HTMLAttributes"]};export{k as F}; +import{c as h,a as S}from"./emotion-react.browser.esm-Cyl1vPjg.js";import"./iframe-AJyGuqY3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="48ae957f-7491-41d3-8fa9-dfe79b63082d",e._sentryDebugIdIdentifier="sentry-dbid-48ae957f-7491-41d3-8fa9-dfe79b63082d")}catch{}})();const j=({direction:e="row",align:t="flex-start",justify:s="flex-start",gap:a="0px",position:l="static",top:d="",right:n="",bottom:r="",left:f="",wrap:o="nowrap",basis:i="auto",grow:p="0",shrink:u=0,width:c="",height:y="",maxWidth:x="",maxHeight:m="",margin:b="0",marginRight:g="",marginTop:w="",marginLeft:I="",marginBottom:_="",padding:v="",paddingTop:D="",paddingRight:F="",paddingBottom:E="",paddingLeft:T=""})=>h({display:"flex",position:l,top:d,right:n,bottom:r,left:f,flexWrap:o,flexBasis:i,flexGrow:p,flexShrink:u,flexDirection:e,alignItems:t,justifyContent:s,gap:a,width:c,height:y,maxWidth:x,maxHeight:m,margin:b,marginRight:g,marginLeft:I,marginTop:w,marginBottom:_,padding:v,paddingTop:D,paddingRight:F,paddingBottom:E,paddingLeft:T}),k=({tag:e="div",styles:t={},children:s,...a})=>S(e,{css:j(t),...a,children:s});k.__docgenInfo={description:"",methods:[],displayName:"Flex",props:{tag:{required:!1,tsType:{name:"ElementType"},description:"",defaultValue:{value:"'div'",computed:!1}},styles:{required:!1,tsType:{name:"FlexStyle"},description:"",defaultValue:{value:"{}",computed:!1}}},composes:["HTMLAttributes"]};export{k as F}; diff --git a/assets/Flex.stories-BovLbUJZ.js b/assets/Flex.stories-CRa1_0Al.js similarity index 90% rename from assets/Flex.stories-BovLbUJZ.js rename to assets/Flex.stories-CRa1_0Al.js index efe3eb060..89de5a479 100644 --- a/assets/Flex.stories-BovLbUJZ.js +++ b/assets/Flex.stories-CRa1_0Al.js @@ -1,4 +1,4 @@ -import{j as h,a as e}from"./emotion-react.browser.esm-DVCGPw0o.js";import{F as o}from"./Flex-CcBQZiMH.js";import"./iframe-BnffqoK7.js";import"./index-B4Z6PsAH.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./extends-ClQVCWlZ.js";import"../sb-preview/runtime.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[s]="615db46e-6cda-44b0-882c-6d9ac3c06cf5",r._sentryDebugIdIdentifier="sentry-dbid-615db46e-6cda-44b0-882c-6d9ac3c06cf5")}catch{}})();const C={title:"Common/Flex",component:o,parameters:{layout:"centered"},tags:["autodocs"],args:{tag:"div"}},n={render:()=>h(o,{styles:{gap:"2.4rem"},children:[e("div",{css:{width:"20rem",height:"20rem",backgroundColor:"red"},children:"1"}),e("div",{css:{width:"20rem",height:"20rem",backgroundColor:"black"},children:"2"}),e("div",{css:{width:"20rem",height:"20rem",backgroundColor:"blue"},children:"3"})]})},d={render:()=>h(o,{styles:{direction:"column",gap:"2.4rem"},children:[e("div",{css:{width:"20rem",height:"20rem",backgroundColor:"red"},children:"1"}),e("div",{css:{width:"20rem",height:"20rem",backgroundColor:"black"},children:"2"}),e("div",{css:{width:"20rem",height:"20rem",backgroundColor:"blue"},children:"3"})]})};var i,t,c;n.parameters={...n.parameters,docs:{...(i=n.parameters)==null?void 0:i.docs,source:{originalSource:`{ +import{j as h,a as e}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{F as o}from"./Flex-DMgVUl98.js";import"./iframe-AJyGuqY3.js";import"./index-Bs6nXyGp.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./extends-ClQVCWlZ.js";import"../sb-preview/runtime.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[s]="615db46e-6cda-44b0-882c-6d9ac3c06cf5",r._sentryDebugIdIdentifier="sentry-dbid-615db46e-6cda-44b0-882c-6d9ac3c06cf5")}catch{}})();const C={title:"Common/Flex",component:o,parameters:{layout:"centered"},tags:["autodocs"],args:{tag:"div"}},n={render:()=>h(o,{styles:{gap:"2.4rem"},children:[e("div",{css:{width:"20rem",height:"20rem",backgroundColor:"red"},children:"1"}),e("div",{css:{width:"20rem",height:"20rem",backgroundColor:"black"},children:"2"}),e("div",{css:{width:"20rem",height:"20rem",backgroundColor:"blue"},children:"3"})]})},d={render:()=>h(o,{styles:{direction:"column",gap:"2.4rem"},children:[e("div",{css:{width:"20rem",height:"20rem",backgroundColor:"red"},children:"1"}),e("div",{css:{width:"20rem",height:"20rem",backgroundColor:"black"},children:"2"}),e("div",{css:{width:"20rem",height:"20rem",backgroundColor:"blue"},children:"3"})]})};var i,t,c;n.parameters={...n.parameters,docs:{...(i=n.parameters)==null?void 0:i.docs,source:{originalSource:`{ render: () => diff --git a/assets/FolderGrid.stories-DgVcaEy6.js b/assets/FolderGrid.stories-BEEuzsre.js similarity index 80% rename from assets/FolderGrid.stories-DgVcaEy6.js rename to assets/FolderGrid.stories-BEEuzsre.js index 305d167c9..e6c509f3c 100644 --- a/assets/FolderGrid.stories-DgVcaEy6.js +++ b/assets/FolderGrid.stories-BEEuzsre.js @@ -1,4 +1,4 @@ -import{j as s,a as r}from"./emotion-react.browser.esm-DVCGPw0o.js";import{r as l}from"./index-B4Z6PsAH.js";import{S as v}from"./ic_three_dots-BVRLYobK.js";import{F as I}from"./Flex-CcBQZiMH.js";import{H as b}from"./Heading-BCYRSNXR.js";import{M as D,a as x,b as n}from"./MenuList-Cq7c8mmt.js";import"./iframe-BnffqoK7.js";import{u as H}from"./useOverlay-jcCv9x_t.js";import{t as _}from"./theme-DwD7F4-e.js";import{c as C,i as L,n as O,a as i,O as c}from"./index.style-TC8qthSU.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./useOutsideClick-COUwwguf.js";import"../sb-preview/runtime.js";import"./ic_trash-D7lR1pQ_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e36fc839-6354-4dd3-a16d-578396b9f438",e._sentryDebugIdIdentifier="sentry-dbid-e36fc839-6354-4dd3-a16d-578396b9f438")}catch{}})();const F=e=>l.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M15.2835 9.99984L18.6168 13.3332H33.3335V29.9998H6.66683V9.99984H15.2835ZM16.6668 6.6665H6.66683C4.8335 6.6665 3.35016 8.1665 3.35016 9.99984L3.3335 29.9998C3.3335 31.8332 4.8335 33.3332 6.66683 33.3332H33.3335C35.1668 33.3332 36.6668 31.8332 36.6668 29.9998V13.3332C36.6668 11.4998 35.1668 9.99984 33.3335 9.99984H20.0002L16.6668 6.6665Z",fill:"#D6D5D5"})),h=({title:e,variant:t="primary"})=>{const{isOpen:d,close:w,toggle:S}=H();return s("article",{css:C(t!=="primary"),children:[r("div",{css:L(t!=="primary"),children:r(F,{width:40,height:40})}),s(I,{styles:{width:"100%",justify:"space-between",align:"center"},children:[r(b,{css:O,tag:"H3",children:e}),t==="primary"&&s(D,{onClose:w,children:[r(v,{onClick:S,css:{cursor:"pointer"},width:16,height:16}),s(x,{css:{top:"calc(100% + 0.4rem)",right:0,backgroundColor:_.colors.white},isOpen:d,children:[r(n,{css:i,LeftIcon:c.name,onSelect:()=>console.log("select"),children:"이름 변경"}),r(n,{css:i,LeftIcon:c.download,onSelect:()=>console.log("select"),children:"폴더 전체 다운로드"}),r(n,{css:i,LeftIcon:c.deleted,onSelect:()=>console.log("select"),children:"휴지통으로 이동"})]})]})]})]})};h.__docgenInfo={description:"",methods:[],displayName:"FolderGrid",props:{variant:{required:!1,tsType:{name:"union",raw:"'primary' | 'secondary'",elements:[{name:"literal",value:"'primary'"},{name:"literal",value:"'secondary'"}]},description:"",defaultValue:{value:"'primary'",computed:!1}},title:{required:!0,tsType:{name:"string"},description:""}}};const J={title:"Shared/FolderGrid",component:h,parameters:{layout:"centered"},decorators:[e=>r("div",{css:{width:"20rem"},children:r(e,{})})]},o={args:{title:"폴더 이름"}},a={decorators:[e=>r("div",{css:{width:"16rem"},children:r(e,{})})],args:{variant:"secondary",title:"폴더 이름"}};var m,p,u;o.parameters={...o.parameters,docs:{...(m=o.parameters)==null?void 0:m.docs,source:{originalSource:`{ +import{j as s,a as r}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{r as l}from"./index-Bs6nXyGp.js";import{S as v}from"./ic_three_dots-DhrEP3KX.js";import{F as I}from"./Flex-DMgVUl98.js";import{H as b}from"./Heading-FD1nScCb.js";import{M as D,a as x,b as n}from"./MenuList-DtX22AXJ.js";import"./iframe-AJyGuqY3.js";import{u as H}from"./useOverlay-COpOggKz.js";import{t as _}from"./theme-Cuq_aI8Z.js";import{c as C,i as L,n as O,a as i,O as c}from"./index.style-BqtEg6R5.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./useOutsideClick-CEpXkKWK.js";import"../sb-preview/runtime.js";import"./ic_trash-zLH-eJlm.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e36fc839-6354-4dd3-a16d-578396b9f438",e._sentryDebugIdIdentifier="sentry-dbid-e36fc839-6354-4dd3-a16d-578396b9f438")}catch{}})();const F=e=>l.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M15.2835 9.99984L18.6168 13.3332H33.3335V29.9998H6.66683V9.99984H15.2835ZM16.6668 6.6665H6.66683C4.8335 6.6665 3.35016 8.1665 3.35016 9.99984L3.3335 29.9998C3.3335 31.8332 4.8335 33.3332 6.66683 33.3332H33.3335C35.1668 33.3332 36.6668 31.8332 36.6668 29.9998V13.3332C36.6668 11.4998 35.1668 9.99984 33.3335 9.99984H20.0002L16.6668 6.6665Z",fill:"#D6D5D5"})),h=({title:e,variant:t="primary"})=>{const{isOpen:d,close:w,toggle:S}=H();return s("article",{css:C(t!=="primary"),children:[r("div",{css:L(t!=="primary"),children:r(F,{width:40,height:40})}),s(I,{styles:{width:"100%",justify:"space-between",align:"center"},children:[r(b,{css:O,tag:"H3",children:e}),t==="primary"&&s(D,{onClose:w,children:[r(v,{onClick:S,css:{cursor:"pointer"},width:16,height:16}),s(x,{css:{top:"calc(100% + 0.4rem)",right:0,backgroundColor:_.colors.white},isOpen:d,children:[r(n,{css:i,LeftIcon:c.name,onSelect:()=>console.log("select"),children:"이름 변경"}),r(n,{css:i,LeftIcon:c.download,onSelect:()=>console.log("select"),children:"폴더 전체 다운로드"}),r(n,{css:i,LeftIcon:c.deleted,onSelect:()=>console.log("select"),children:"휴지통으로 이동"})]})]})]})]})};h.__docgenInfo={description:"",methods:[],displayName:"FolderGrid",props:{variant:{required:!1,tsType:{name:"union",raw:"'primary' | 'secondary'",elements:[{name:"literal",value:"'primary'"},{name:"literal",value:"'secondary'"}]},description:"",defaultValue:{value:"'primary'",computed:!1}},title:{required:!0,tsType:{name:"string"},description:""}}};const J={title:"Shared/FolderGrid",component:h,parameters:{layout:"centered"},decorators:[e=>r("div",{css:{width:"20rem"},children:r(e,{})})]},o={args:{title:"폴더 이름"}},a={decorators:[e=>r("div",{css:{width:"16rem"},children:r(e,{})})],args:{variant:"secondary",title:"폴더 이름"}};var m,p,u;o.parameters={...o.parameters,docs:{...(m=o.parameters)==null?void 0:m.docs,source:{originalSource:`{ args: { title: '폴더 이름' } diff --git a/assets/Header.stories-K2gSrBT6.js b/assets/Header.stories-BV3C6KMO.js similarity index 89% rename from assets/Header.stories-K2gSrBT6.js rename to assets/Header.stories-BV3C6KMO.js index 514bc0488..4c63e6899 100644 --- a/assets/Header.stories-K2gSrBT6.js +++ b/assets/Header.stories-BV3C6KMO.js @@ -1 +1 @@ -import{c as f,a as r,j as u}from"./emotion-react.browser.esm-DVCGPw0o.js";import{r as t}from"./index-B4Z6PsAH.js";import"./iframe-BnffqoK7.js";import{c as C}from"./react-CVxNFIA5.js";import{B as a}from"./Button-aaJpuFF7.js";import{t as n}from"./theme-DwD7F4-e.js";import{a as w,b as x}from"./index-BZ6RFkQt.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-XnwbWaTF.js";import"../sb-preview/runtime.js";import"./Button.style-CoALCM8f.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="33cb4990-ec43-48df-953e-219a3c01acf4",e._sentryDebugIdIdentifier="sentry-dbid-33cb4990-ec43-48df-953e-219a3c01acf4")}catch{}})();const c=e=>t.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 108 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("g",{clipPath:"url(#clip0_486_5023)"},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.58 1.19043C16.7671 1.19043 18.54 2.96338 18.54 5.15043V10.1004C18.54 10.1524 18.539 10.2044 18.537 10.2564L18.5336 10.3439L18.524 10.6079C18.5158 10.8388 18.5045 11.1748 18.4918 11.5916C18.4664 12.4259 18.436 13.5796 18.4158 14.8571C18.3744 17.4675 18.3794 20.4074 18.5272 22.2428C18.6432 23.6816 19.2762 25.9763 20.7025 27.813C22.0054 29.4909 24.0232 30.8904 27.45 30.8904C30.8769 30.8904 32.8946 29.4909 34.1976 27.813C35.6239 25.9763 36.2569 23.6816 36.3728 22.2428C36.5484 20.0628 38.458 18.438 40.638 18.6136C42.818 18.7892 44.4429 20.6988 44.2672 22.8787C44.0532 25.5365 43.0032 29.3867 40.453 32.6706C37.7794 36.1134 33.5272 38.8104 27.45 38.8104C21.3729 38.8104 17.1206 36.1134 14.4471 32.6706C11.8969 29.3867 10.8469 25.5365 10.6328 22.8787C10.4507 20.6176 10.4556 17.3273 10.4968 14.7316C10.5004 14.5037 10.5043 14.2796 10.5085 14.0604H4.68003C2.49298 14.0604 0.720032 12.2875 0.720032 10.1004C0.720032 7.91338 2.49298 6.14043 4.68003 6.14043H10.62V5.15043C10.62 2.96338 12.393 1.19043 14.58 1.19043Z",fill:"#6D77FF"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M85.6681 2.42905C87.2145 3.97553 87.2145 6.48286 85.6681 8.02933L73.7196 19.9778L85.6681 31.9263C87.2145 33.4728 87.2145 35.9802 85.6681 37.5266C84.1216 39.0731 81.6143 39.0731 80.0678 37.5266L65.3191 22.778C63.7727 21.2315 63.7727 18.7242 65.3191 17.1777L80.0678 2.42905C81.6143 0.882573 84.1216 0.882573 85.6681 2.42905Z",fill:"#6D77FF"}),t.createElement("rect",{x:50.22,y:1.19043,width:7.92,height:27.72,rx:3.96,fill:"#6D77FF"}),t.createElement("rect",{x:50.22,y:30.8896,width:7.92,height:7.92,rx:3.96,fill:"#6D77FF"}),t.createElement("rect",{width:7.92,height:27.72,rx:3.96,transform:"matrix(1 0 0 -1 95.76 38.8096)",fill:"#6D77FF"}),t.createElement("rect",{width:7.92,height:7.92,rx:3.96,transform:"matrix(1 0 0 -1 95.76 9.11035)",fill:"#6D77FF"})),t.createElement("defs",null,t.createElement("clipPath",{id:"clip0_486_5023"},t.createElement("rect",{width:108,height:40,fill:"white"})))),y=C(e=>({isLoggedIn:!1,actions:{login:()=>e({isLoggedIn:!0}),logout:()=>e({isLoggedIn:!1})}})),v=()=>y(e=>e.isLoggedIn),d=f({display:"flex",alignItems:"center",justifyContent:"space-between",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",zIndex:n.zIndex.overlayMiddle,height:"9rem",padding:"2.4rem 8rem 2.4rem 8rem",backgroundColor:n.colors.white,"& > svg":{width:"10rem",height:"4rem",cursor:"pointer"}}),g=()=>{const{pathname:e}=w(),o=v(),i=x(),p=new RegExp("^(/signin(/.*)?|/password(/.*)?)$");return e.match(p)?u("header",{css:d,children:[r(c,{onClick:()=>i("/showcase")}),r("div",{children:o?r(a,{variant:"secondary",size:"small",children:"로그아웃"}):r(a,{variant:"secondary",size:"small",children:"로그인"})})]}):r("header",{css:d,children:r(c,{onClick:()=>i("/showcase")})})};g.__docgenInfo={description:"",methods:[],displayName:"Header"};const M={title:"Common/Header",component:g,parameters:{layout:"centered"},decorators:[e=>r("div",{css:{width:"100vw"},children:r(e,{})})],tags:["autodocs"]},s={};var l,m,h;s.parameters={...s.parameters,docs:{...(l=s.parameters)==null?void 0:l.docs,source:{originalSource:"{}",...(h=(m=s.parameters)==null?void 0:m.docs)==null?void 0:h.source}}};const P=["Default"];export{s as Default,P as __namedExportsOrder,M as default}; +import{c as f,a as r,j as u}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{r as t}from"./index-Bs6nXyGp.js";import"./iframe-AJyGuqY3.js";import{c as C}from"./react-H2B7brmx.js";import{B as a}from"./Button-D1nFQNRa.js";import{t as n}from"./theme-Cuq_aI8Z.js";import{a as w,b as x}from"./index-CuYyT4jL.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"../sb-preview/runtime.js";import"./Button.style-C-RQzMju.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="33cb4990-ec43-48df-953e-219a3c01acf4",e._sentryDebugIdIdentifier="sentry-dbid-33cb4990-ec43-48df-953e-219a3c01acf4")}catch{}})();const c=e=>t.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 108 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("g",{clipPath:"url(#clip0_486_5023)"},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.58 1.19043C16.7671 1.19043 18.54 2.96338 18.54 5.15043V10.1004C18.54 10.1524 18.539 10.2044 18.537 10.2564L18.5336 10.3439L18.524 10.6079C18.5158 10.8388 18.5045 11.1748 18.4918 11.5916C18.4664 12.4259 18.436 13.5796 18.4158 14.8571C18.3744 17.4675 18.3794 20.4074 18.5272 22.2428C18.6432 23.6816 19.2762 25.9763 20.7025 27.813C22.0054 29.4909 24.0232 30.8904 27.45 30.8904C30.8769 30.8904 32.8946 29.4909 34.1976 27.813C35.6239 25.9763 36.2569 23.6816 36.3728 22.2428C36.5484 20.0628 38.458 18.438 40.638 18.6136C42.818 18.7892 44.4429 20.6988 44.2672 22.8787C44.0532 25.5365 43.0032 29.3867 40.453 32.6706C37.7794 36.1134 33.5272 38.8104 27.45 38.8104C21.3729 38.8104 17.1206 36.1134 14.4471 32.6706C11.8969 29.3867 10.8469 25.5365 10.6328 22.8787C10.4507 20.6176 10.4556 17.3273 10.4968 14.7316C10.5004 14.5037 10.5043 14.2796 10.5085 14.0604H4.68003C2.49298 14.0604 0.720032 12.2875 0.720032 10.1004C0.720032 7.91338 2.49298 6.14043 4.68003 6.14043H10.62V5.15043C10.62 2.96338 12.393 1.19043 14.58 1.19043Z",fill:"#6D77FF"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M85.6681 2.42905C87.2145 3.97553 87.2145 6.48286 85.6681 8.02933L73.7196 19.9778L85.6681 31.9263C87.2145 33.4728 87.2145 35.9802 85.6681 37.5266C84.1216 39.0731 81.6143 39.0731 80.0678 37.5266L65.3191 22.778C63.7727 21.2315 63.7727 18.7242 65.3191 17.1777L80.0678 2.42905C81.6143 0.882573 84.1216 0.882573 85.6681 2.42905Z",fill:"#6D77FF"}),t.createElement("rect",{x:50.22,y:1.19043,width:7.92,height:27.72,rx:3.96,fill:"#6D77FF"}),t.createElement("rect",{x:50.22,y:30.8896,width:7.92,height:7.92,rx:3.96,fill:"#6D77FF"}),t.createElement("rect",{width:7.92,height:27.72,rx:3.96,transform:"matrix(1 0 0 -1 95.76 38.8096)",fill:"#6D77FF"}),t.createElement("rect",{width:7.92,height:7.92,rx:3.96,transform:"matrix(1 0 0 -1 95.76 9.11035)",fill:"#6D77FF"})),t.createElement("defs",null,t.createElement("clipPath",{id:"clip0_486_5023"},t.createElement("rect",{width:108,height:40,fill:"white"})))),y=C(e=>({isLoggedIn:!1,actions:{login:()=>e({isLoggedIn:!0}),logout:()=>e({isLoggedIn:!1})}})),v=()=>y(e=>e.isLoggedIn),d=f({display:"flex",alignItems:"center",justifyContent:"space-between",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",zIndex:n.zIndex.overlayMiddle,height:"9rem",padding:"2.4rem 8rem 2.4rem 8rem",backgroundColor:n.colors.white,"& > svg":{width:"10rem",height:"4rem",cursor:"pointer"}}),g=()=>{const{pathname:e}=w(),o=v(),i=x(),p=new RegExp("^(/signin(/.*)?|/password(/.*)?)$");return e.match(p)?u("header",{css:d,children:[r(c,{onClick:()=>i("/showcase")}),r("div",{children:o?r(a,{variant:"secondary",size:"small",children:"로그아웃"}):r(a,{variant:"secondary",size:"small",children:"로그인"})})]}):r("header",{css:d,children:r(c,{onClick:()=>i("/showcase")})})};g.__docgenInfo={description:"",methods:[],displayName:"Header"};const M={title:"Common/Header",component:g,parameters:{layout:"centered"},decorators:[e=>r("div",{css:{width:"100vw"},children:r(e,{})})],tags:["autodocs"]},s={};var l,m,h;s.parameters={...s.parameters,docs:{...(l=s.parameters)==null?void 0:l.docs,source:{originalSource:"{}",...(h=(m=s.parameters)==null?void 0:m.docs)==null?void 0:h.source}}};const P=["Default"];export{s as Default,P as __namedExportsOrder,M as default}; diff --git a/assets/Header.stories-DbmChReU.js b/assets/Header.stories-CiLudgVc.js similarity index 67% rename from assets/Header.stories-DbmChReU.js rename to assets/Header.stories-CiLudgVc.js index e7f321cfc..403e5b878 100644 --- a/assets/Header.stories-DbmChReU.js +++ b/assets/Header.stories-CiLudgVc.js @@ -1 +1 @@ -import{c,j as m,a as o}from"./emotion-react.browser.esm-DVCGPw0o.js";import{H as p}from"./Heading-BCYRSNXR.js";import{t as a}from"./theme-DwD7F4-e.js";import"./iframe-BnffqoK7.js";import{R as f}from"./RouteNav-Dgfqahe_.js";import{P as l}from"./path-DPor8ESZ.js";import{u}from"./index-BZ6RFkQt.js";import"./index-B4Z6PsAH.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./extends-ClQVCWlZ.js";import"../sb-preview/runtime.js";import"./index-C_edrjnw.js";import"./proxy-4sgmHMJ7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="64d10a6b-8a7d-4d5b-a3ef-746e9a387edc",e._sentryDebugIdIdentifier="sentry-dbid-64d10a6b-8a7d-4d5b-a3ef-746e9a387edc")}catch{}})();const g=c({display:"flex",flexDirection:"column",gap:"2rem",width:"fit-content",paddingBottom:"2rem",backgroundColor:a.colors.white,"& > h1":{padding:"1rem",...a.heading.heading05,fontWeight:600}}),n=()=>{const e="TIKI 워크스페이스",t=u(l.DASHBOARD);return m("header",{css:g,children:[o(p,{tag:"H1",children:e}),!t&&o(f,{})]})};n.__docgenInfo={description:"",methods:[],displayName:"Header"};const R={title:"Shared/Header",component:n,parameters:{layout:"centered"},decorators:[e=>o("div",{css:{width:"50vw"},children:o(e,{})})]},r={};var d,s,i;r.parameters={...r.parameters,docs:{...(d=r.parameters)==null?void 0:d.docs,source:{originalSource:"{}",...(i=(s=r.parameters)==null?void 0:s.docs)==null?void 0:i.source}}};const k=["Delete"];export{r as Delete,k as __namedExportsOrder,R as default}; +import{c,j as m,a as o}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{H as p}from"./Heading-FD1nScCb.js";import{t as a}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";import{R as f}from"./RouteNav-DeIolqf0.js";import{P as l}from"./path-8_1M5Knd.js";import{u}from"./index-CuYyT4jL.js";import"./index-Bs6nXyGp.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./extends-ClQVCWlZ.js";import"../sb-preview/runtime.js";import"./index-BHRAuaXy.js";import"./proxy-BfgkLHSP.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="64d10a6b-8a7d-4d5b-a3ef-746e9a387edc",e._sentryDebugIdIdentifier="sentry-dbid-64d10a6b-8a7d-4d5b-a3ef-746e9a387edc")}catch{}})();const g=c({display:"flex",flexDirection:"column",gap:"2rem",width:"fit-content",paddingBottom:"2rem",backgroundColor:a.colors.white,"& > h1":{padding:"1rem",...a.heading.heading05,fontWeight:600}}),n=()=>{const e="TIKI 워크스페이스",t=u(l.DASHBOARD);return m("header",{css:g,children:[o(p,{tag:"H1",children:e}),!t&&o(f,{})]})};n.__docgenInfo={description:"",methods:[],displayName:"Header"};const R={title:"Shared/Header",component:n,parameters:{layout:"centered"},decorators:[e=>o("div",{css:{width:"50vw"},children:o(e,{})})]},r={};var d,s,i;r.parameters={...r.parameters,docs:{...(d=r.parameters)==null?void 0:d.docs,source:{originalSource:"{}",...(i=(s=r.parameters)==null?void 0:s.docs)==null?void 0:i.source}}};const k=["Delete"];export{r as Delete,k as __namedExportsOrder,R as default}; diff --git a/assets/Heading-BCYRSNXR.js b/assets/Heading-FD1nScCb.js similarity index 84% rename from assets/Heading-BCYRSNXR.js rename to assets/Heading-FD1nScCb.js index e5cb08994..225878289 100644 --- a/assets/Heading-BCYRSNXR.js +++ b/assets/Heading-FD1nScCb.js @@ -1 +1 @@ -import{c as a,a as t}from"./emotion-react.browser.esm-DVCGPw0o.js";import{t as n}from"./theme-DwD7F4-e.js";import"./iframe-BnffqoK7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="36a51138-1e6c-4e3c-8059-a4a4efc8cbe0",e._sentryDebugIdIdentifier="sentry-dbid-36a51138-1e6c-4e3c-8059-a4a4efc8cbe0")}catch{}})();const s={H1:a(n.heading.heading01),H2:a(n.heading.heading02),H3:a(n.heading.heading03),H4:a(n.heading.heading04),H5:a(n.heading.heading05),H6:a(n.heading.heading06)},l={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6"},r=({tag:e="H3",...i})=>{const d=l[e];return t(d,{css:s[e],...i,children:i.children})};r.__docgenInfo={description:"",methods:[],displayName:"Heading",props:{tag:{required:!1,tsType:{name:"union",raw:"'H1' | 'H2' | 'H3' | 'H4' | 'H5' | 'H6'",elements:[{name:"literal",value:"'H1'"},{name:"literal",value:"'H2'"},{name:"literal",value:"'H3'"},{name:"literal",value:"'H4'"},{name:"literal",value:"'H5'"},{name:"literal",value:"'H6'"}]},description:"",defaultValue:{value:"'H3'",computed:!1}}},composes:["ComponentPropsWithoutRef"]};export{r as H}; +import{c as a,a as t}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{t as n}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="36a51138-1e6c-4e3c-8059-a4a4efc8cbe0",e._sentryDebugIdIdentifier="sentry-dbid-36a51138-1e6c-4e3c-8059-a4a4efc8cbe0")}catch{}})();const s={H1:a(n.heading.heading01),H2:a(n.heading.heading02),H3:a(n.heading.heading03),H4:a(n.heading.heading04),H5:a(n.heading.heading05),H6:a(n.heading.heading06)},l={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6"},r=({tag:e="H3",...i})=>{const d=l[e];return t(d,{css:s[e],...i,children:i.children})};r.__docgenInfo={description:"",methods:[],displayName:"Heading",props:{tag:{required:!1,tsType:{name:"union",raw:"'H1' | 'H2' | 'H3' | 'H4' | 'H5' | 'H6'",elements:[{name:"literal",value:"'H1'"},{name:"literal",value:"'H2'"},{name:"literal",value:"'H3'"},{name:"literal",value:"'H4'"},{name:"literal",value:"'H5'"},{name:"literal",value:"'H6'"}]},description:"",defaultValue:{value:"'H3'",computed:!1}}},composes:["ComponentPropsWithoutRef"]};export{r as H}; diff --git a/assets/Heading.stories-DUmlZFQw.js b/assets/Heading.stories-D_UsrQyH.js similarity index 84% rename from assets/Heading.stories-DUmlZFQw.js rename to assets/Heading.stories-D_UsrQyH.js index 79e99aacd..bafaa65f3 100644 --- a/assets/Heading.stories-DUmlZFQw.js +++ b/assets/Heading.stories-D_UsrQyH.js @@ -1,4 +1,4 @@ -import{j as l,a as e}from"./emotion-react.browser.esm-DVCGPw0o.js";import{F as o}from"./Flex-CcBQZiMH.js";import{H as a}from"./Heading-BCYRSNXR.js";import"./iframe-BnffqoK7.js";import"./index-B4Z6PsAH.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./extends-ClQVCWlZ.js";import"./theme-DwD7F4-e.js";import"../sb-preview/runtime.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[r]="c848f611-e207-41a1-9694-d09557aa7431",i._sentryDebugIdIdentifier="sentry-dbid-c848f611-e207-41a1-9694-d09557aa7431")}catch{}})();const x={title:"Common/Heading",component:a,tags:["autodocs"],parameters:{layout:"centered"},argTypes:{tag:{control:"radio"}},args:{tag:"H3"}},n={render:()=>l(o,{tag:"ul",styles:{direction:"column",gap:"1rem"},children:[e("li",{children:e(a,{tag:"H1",children:"Heading 1"})}),e("li",{children:e(a,{tag:"H2",children:"Heading 2"})}),e("li",{children:e(a,{tag:"H3",children:"Heading 3"})}),e("li",{children:e(a,{tag:"H4",children:"Heading 4"})}),e("li",{children:e(a,{tag:"H5",children:"Heading 5"})}),e("li",{children:e(a,{tag:"H6",children:"Heading 6"})})]}),argTypes:{tag:{control:!1}}};var d,t,g;n.parameters={...n.parameters,docs:{...(d=n.parameters)==null?void 0:d.docs,source:{originalSource:`{ +import{j as l,a as e}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{F as o}from"./Flex-DMgVUl98.js";import{H as a}from"./Heading-FD1nScCb.js";import"./iframe-AJyGuqY3.js";import"./index-Bs6nXyGp.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./extends-ClQVCWlZ.js";import"./theme-Cuq_aI8Z.js";import"../sb-preview/runtime.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[r]="c848f611-e207-41a1-9694-d09557aa7431",i._sentryDebugIdIdentifier="sentry-dbid-c848f611-e207-41a1-9694-d09557aa7431")}catch{}})();const x={title:"Common/Heading",component:a,tags:["autodocs"],parameters:{layout:"centered"},argTypes:{tag:{control:"radio"}},args:{tag:"H3"}},n={render:()=>l(o,{tag:"ul",styles:{direction:"column",gap:"1rem"},children:[e("li",{children:e(a,{tag:"H1",children:"Heading 1"})}),e("li",{children:e(a,{tag:"H2",children:"Heading 2"})}),e("li",{children:e(a,{tag:"H3",children:"Heading 3"})}),e("li",{children:e(a,{tag:"H4",children:"Heading 4"})}),e("li",{children:e(a,{tag:"H5",children:"Heading 5"})}),e("li",{children:e(a,{tag:"H6",children:"Heading 6"})})]}),argTypes:{tag:{control:!1}}};var d,t,g;n.parameters={...n.parameters,docs:{...(d=n.parameters)==null?void 0:d.docs,source:{originalSource:`{ render: () => label":{margin:"0 0 1rem"}}),y=n({width:"100%",border:"none",backgroundColor:"transparent",fontWeight:400,...o.text.body06,outline:"none","::placeholder":{color:o.colors.gray_500,...o.text.body06}}),g=e=>n({display:"flex",alignItems:"center",gap:"1rem",position:"relative",height:"4rem",padding:"1.3rem 1.2rem",backgroundColor:e?o.colors.gray_100:"none",boxShadow:o.shadow.inset,borderRadius:"8px","&:focus-within":{boxShadow:o.shadow.inset_focus}}),h=({label:e,isFilled:r=!1,LeftIcon:s,isError:a=!1,isSuccess:c=!1,supportingText:d,...f},l)=>i("div",{css:u,children:[e&&t(b,{id:e,children:e}),i("div",{css:g(r),children:[s,t("input",{ref:l,css:y,...f})]}),d&&t(m,{isError:a,isSuccess:c,children:d})]}),v=p.forwardRef(h);export{v as I}; +import{c as n,j as i,a as t}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{r as p}from"./index-Bs6nXyGp.js";import{t as o}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";import{L as b}from"./Label-BPjTE68Y.js";import{S as m}from"./SupportingText-C1HExhiQ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="f6fbf0eb-d4b0-4de3-9fce-10c2c10b69a1",e._sentryDebugIdIdentifier="sentry-dbid-f6fbf0eb-d4b0-4de3-9fce-10c2c10b69a1")}catch{}})();const u=n({display:"flex",flexDirection:"column",gap:"0.2rem",width:"100%","&>label":{margin:"0 0 1rem"}}),y=n({width:"100%",border:"none",backgroundColor:"transparent",fontWeight:400,...o.text.body06,outline:"none","::placeholder":{color:o.colors.gray_500,...o.text.body06}}),g=e=>n({display:"flex",alignItems:"center",gap:"1rem",position:"relative",height:"4rem",padding:"1.3rem 1.2rem",backgroundColor:e?o.colors.gray_100:"none",boxShadow:o.shadow.inset,borderRadius:"8px","&:focus-within":{boxShadow:o.shadow.inset_focus}}),h=({label:e,isFilled:r=!1,LeftIcon:s,isError:a=!1,isSuccess:c=!1,supportingText:d,...f},l)=>i("div",{css:u,children:[e&&t(b,{id:e,children:e}),i("div",{css:g(r),children:[s,t("input",{ref:l,css:y,...f})]}),d&&t(m,{isError:a,isSuccess:c,children:d})]}),v=p.forwardRef(h);export{v as I}; diff --git a/assets/Input.stories-0yTp_Bua.js b/assets/Input.stories-BuYgWvMo.js similarity index 90% rename from assets/Input.stories-0yTp_Bua.js rename to assets/Input.stories-BuYgWvMo.js index d5549b627..36dc64691 100644 --- a/assets/Input.stories-0yTp_Bua.js +++ b/assets/Input.stories-BuYgWvMo.js @@ -1,4 +1,4 @@ -import{a as h}from"./emotion-react.browser.esm-DVCGPw0o.js";import{r as a}from"./index-B4Z6PsAH.js";import{I as T}from"./Input-_bQPWmrw.js";import"./iframe-BnffqoK7.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./theme-DwD7F4-e.js";import"./Label-Dvf5dr16.js";import"./SupportingText-_IVHGPES.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="538b2274-b207-4365-bf5a-1e5a5042fabd",e._sentryDebugIdIdentifier="sentry-dbid-538b2274-b207-4365-bf5a-1e5a5042fabd")}catch{}})();const x=e=>a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.22723 1.4044e-08C5.23416 8.4615e-05 4.2555 0.237646 3.37291 0.692863C2.49032 1.14808 1.72939 1.80775 1.15361 2.61685C0.577831 3.42594 0.203895 4.36099 0.0629995 5.34398C-0.0778956 6.32698 0.0183362 7.32941 0.343666 8.26765C0.668997 9.20589 1.21399 10.0527 1.93318 10.7375C2.65237 11.4223 3.5249 11.9252 4.47797 12.2042C5.43105 12.4832 6.43703 12.5303 7.41199 12.3414C8.38694 12.1526 9.30261 11.7334 10.0826 11.1187L12.7583 13.7943C12.8965 13.9278 13.0816 14.0016 13.2737 14C13.4658 13.9983 13.6496 13.9213 13.7854 13.7854C13.9212 13.6496 13.9983 13.4658 14 13.2737C14.0016 13.0816 13.9278 12.8965 13.7943 12.7584L11.1186 10.0827C11.8425 9.16444 12.2932 8.06091 12.4192 6.89843C12.5451 5.73595 12.3413 4.56149 11.8309 3.50946C11.3206 2.45743 10.5243 1.57033 9.5333 0.949684C8.54229 0.329038 7.39656 -7.84986e-05 6.22723 1.4044e-08ZM1.46483 6.22753C1.46483 4.96451 1.96658 3.75321 2.8597 2.86012C3.75283 1.96703 4.96416 1.4653 6.22723 1.4653C7.4903 1.4653 8.70164 1.96703 9.59476 2.86012C10.4879 3.75321 10.9896 4.96451 10.9896 6.22753C10.9896 7.49055 10.4879 8.70184 9.59476 9.59493C8.70164 10.488 7.4903 10.9898 6.22723 10.9898C4.96416 10.9898 3.75283 10.488 2.8597 9.59493C1.96658 8.70184 1.46483 7.49055 1.46483 6.22753Z",fill:"#ADADAD"})),R={title:"Common/Input",component:T,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{label:{control:{type:"text"}},supportingText:{control:{type:"text"}}},args:{label:"라벨입니다.",placeholder:"입력해주세요."}},r={args:{},argTypes:{}},o={args:{LeftIcon:h(x,{width:16,height:16}),isFilled:!1},argTypes:{LeftIcon:{control:!1},isFilled:{control:{type:"boolean"}}}},t={args:{isFilled:!0},argTypes:{isFilled:{control:!1}}},s={args:{supportingText:"this is supporingText"},argTypes:{isSuccess:{control:{type:"boolean"}},isError:{control:{type:"boolean"}}}};var l,i,p;r.parameters={...r.parameters,docs:{...(l=r.parameters)==null?void 0:l.docs,source:{originalSource:`{ +import{a as h}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{r as a}from"./index-Bs6nXyGp.js";import{I as T}from"./Input-B4nzLRzl.js";import"./iframe-AJyGuqY3.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./theme-Cuq_aI8Z.js";import"./Label-BPjTE68Y.js";import"./SupportingText-C1HExhiQ.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="538b2274-b207-4365-bf5a-1e5a5042fabd",e._sentryDebugIdIdentifier="sentry-dbid-538b2274-b207-4365-bf5a-1e5a5042fabd")}catch{}})();const x=e=>a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.22723 1.4044e-08C5.23416 8.4615e-05 4.2555 0.237646 3.37291 0.692863C2.49032 1.14808 1.72939 1.80775 1.15361 2.61685C0.577831 3.42594 0.203895 4.36099 0.0629995 5.34398C-0.0778956 6.32698 0.0183362 7.32941 0.343666 8.26765C0.668997 9.20589 1.21399 10.0527 1.93318 10.7375C2.65237 11.4223 3.5249 11.9252 4.47797 12.2042C5.43105 12.4832 6.43703 12.5303 7.41199 12.3414C8.38694 12.1526 9.30261 11.7334 10.0826 11.1187L12.7583 13.7943C12.8965 13.9278 13.0816 14.0016 13.2737 14C13.4658 13.9983 13.6496 13.9213 13.7854 13.7854C13.9212 13.6496 13.9983 13.4658 14 13.2737C14.0016 13.0816 13.9278 12.8965 13.7943 12.7584L11.1186 10.0827C11.8425 9.16444 12.2932 8.06091 12.4192 6.89843C12.5451 5.73595 12.3413 4.56149 11.8309 3.50946C11.3206 2.45743 10.5243 1.57033 9.5333 0.949684C8.54229 0.329038 7.39656 -7.84986e-05 6.22723 1.4044e-08ZM1.46483 6.22753C1.46483 4.96451 1.96658 3.75321 2.8597 2.86012C3.75283 1.96703 4.96416 1.4653 6.22723 1.4653C7.4903 1.4653 8.70164 1.96703 9.59476 2.86012C10.4879 3.75321 10.9896 4.96451 10.9896 6.22753C10.9896 7.49055 10.4879 8.70184 9.59476 9.59493C8.70164 10.488 7.4903 10.9898 6.22723 10.9898C4.96416 10.9898 3.75283 10.488 2.8597 9.59493C1.96658 8.70184 1.46483 7.49055 1.46483 6.22753Z",fill:"#ADADAD"})),R={title:"Common/Input",component:T,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{label:{control:{type:"text"}},supportingText:{control:{type:"text"}}},args:{label:"라벨입니다.",placeholder:"입력해주세요."}},r={args:{},argTypes:{}},o={args:{LeftIcon:h(x,{width:16,height:16}),isFilled:!1},argTypes:{LeftIcon:{control:!1},isFilled:{control:{type:"boolean"}}}},t={args:{isFilled:!0},argTypes:{isFilled:{control:!1}}},s={args:{supportingText:"this is supporingText"},argTypes:{isSuccess:{control:{type:"boolean"}},isError:{control:{type:"boolean"}}}};var l,i,p;r.parameters={...r.parameters,docs:{...(l=r.parameters)==null?void 0:l.docs,source:{originalSource:`{ args: {}, argTypes: {} }`,...(p=(i=r.parameters)==null?void 0:i.docs)==null?void 0:p.source}}};var c,d,g;o.parameters={...o.parameters,docs:{...(c=o.parameters)==null?void 0:c.docs,source:{originalSource:`{ diff --git a/assets/Item.stories-BtFdaKjG.js b/assets/Item.stories-BLHpfNL6.js similarity index 87% rename from assets/Item.stories-BtFdaKjG.js rename to assets/Item.stories-BLHpfNL6.js index bbd341c2b..4c1a90918 100644 --- a/assets/Item.stories-BtFdaKjG.js +++ b/assets/Item.stories-BLHpfNL6.js @@ -1,4 +1,4 @@ -import{c as n,j as v,a as o}from"./emotion-react.browser.esm-DVCGPw0o.js";import{r as I}from"./index-B4Z6PsAH.js";import{F as x}from"./Flex-CcBQZiMH.js";import{T as _}from"./ToolTip-B5zzYkah.js";import{t as r}from"./theme-DwD7F4-e.js";import"./iframe-BnffqoK7.js";import{m as w}from"./proxy-4sgmHMJ7.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-XnwbWaTF.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b2ccabff-cd76-47e0-bfe6-82bd0bd32388",e._sentryDebugIdIdentifier="sentry-dbid-b2ccabff-cd76-47e0-bfe6-82bd0bd32388")}catch{}})();const k=e=>n({display:"flex",alignItems:"center",justifyContent:"center",width:"3.6rem",height:"3.6rem",padding:"0.1rem",backgroundColor:r.colors.gray_100,borderRadius:"10px",border:e?`1px solid ${r.colors.key_500}`:0,"&:hover":{border:`1px solid ${r.colors.key_500}`},cursor:"pointer"}),T=n({position:"absolute",left:0}),S=n({font:`${r.text.body06}`,color:r.colors.gray_500}),D=(e,t)=>n({width:"0.4rem",height:e?"2.4rem":t?"1.6rem":0,borderRadius:"0 100px 100px 0",backgroundColor:e?r.colors.key_500:t?r.colors.key_300:r.colors.white}),a=({logoUrl:e="",isClicked:t,onLogoClick:i,hoverMessage:d,...u})=>{const[f,l]=I.useState(!1),g=()=>{l(!0)},y=()=>{l(!1)},b=h=>{h.key==="Enter"&&i()};return v(x,{tag:"li",styles:{align:"center",justify:"center",padding:"2rem"},...u,children:[t&&o(w.div,{layoutId:"snb_indicator",css:[D(t,f),T]}),o(_,{message:d,position:"right",gap:.8,children:o("div",{role:"button",tabIndex:0,css:k(t),onClick:i,onKeyDown:b,onMouseEnter:g,onMouseLeave:y,children:e?o("img",{src:e,alt:"버튼 아이콘"}):o("span",{css:S,children:d[0]})})})]})};a.__docgenInfo={description:"",methods:[],displayName:"Item",props:{hoverMessage:{required:!0,tsType:{name:"string"},description:""},logoUrl:{required:!1,tsType:{name:"union",raw:"string | null",elements:[{name:"string"},{name:"null"}]},description:"",defaultValue:{value:"''",computed:!1}},isClicked:{required:!0,tsType:{name:"boolean"},description:""},onLogoClick:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}},composes:["HTMLAttributes"]};const N={title:"Shared/SideNavBar/Item",component:a,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{hoverMessage:{control:{type:"text"}},isClicked:{control:{type:"boolean"}},logoUrl:{control:{type:"text"}}},args:{hoverMessage:"Tiki 화이팅",logoUrl:"",isClicked:!1,onLogoClick:()=>{}}},s={render:e=>o("div",{css:{position:"relative"},children:o(a,{...e})})};var c,p,m;s.parameters={...s.parameters,docs:{...(c=s.parameters)==null?void 0:c.docs,source:{originalSource:`{ +import{c as n,j as v,a as o}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{r as I}from"./index-Bs6nXyGp.js";import{F as x}from"./Flex-DMgVUl98.js";import{T as _}from"./ToolTip-DREpUNuj.js";import{t as r}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";import{m as w}from"./proxy-BfgkLHSP.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b2ccabff-cd76-47e0-bfe6-82bd0bd32388",e._sentryDebugIdIdentifier="sentry-dbid-b2ccabff-cd76-47e0-bfe6-82bd0bd32388")}catch{}})();const k=e=>n({display:"flex",alignItems:"center",justifyContent:"center",width:"3.6rem",height:"3.6rem",padding:"0.1rem",backgroundColor:r.colors.gray_100,borderRadius:"10px",border:e?`1px solid ${r.colors.key_500}`:0,"&:hover":{border:`1px solid ${r.colors.key_500}`},cursor:"pointer"}),T=n({position:"absolute",left:0}),S=n({font:`${r.text.body06}`,color:r.colors.gray_500}),D=(e,t)=>n({width:"0.4rem",height:e?"2.4rem":t?"1.6rem":0,borderRadius:"0 100px 100px 0",backgroundColor:e?r.colors.key_500:t?r.colors.key_300:r.colors.white}),a=({logoUrl:e="",isClicked:t,onLogoClick:i,hoverMessage:d,...u})=>{const[f,l]=I.useState(!1),g=()=>{l(!0)},y=()=>{l(!1)},b=h=>{h.key==="Enter"&&i()};return v(x,{tag:"li",styles:{align:"center",justify:"center",padding:"2rem"},...u,children:[t&&o(w.div,{layoutId:"snb_indicator",css:[D(t,f),T]}),o(_,{message:d,position:"right",gap:.8,children:o("div",{role:"button",tabIndex:0,css:k(t),onClick:i,onKeyDown:b,onMouseEnter:g,onMouseLeave:y,children:e?o("img",{src:e,alt:"버튼 아이콘"}):o("span",{css:S,children:d[0]})})})]})};a.__docgenInfo={description:"",methods:[],displayName:"Item",props:{hoverMessage:{required:!0,tsType:{name:"string"},description:""},logoUrl:{required:!1,tsType:{name:"union",raw:"string | null",elements:[{name:"string"},{name:"null"}]},description:"",defaultValue:{value:"''",computed:!1}},isClicked:{required:!0,tsType:{name:"boolean"},description:""},onLogoClick:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}},composes:["HTMLAttributes"]};const N={title:"Shared/SideNavBar/Item",component:a,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{hoverMessage:{control:{type:"text"}},isClicked:{control:{type:"boolean"}},logoUrl:{control:{type:"text"}}},args:{hoverMessage:"Tiki 화이팅",logoUrl:"",isClicked:!1,onLogoClick:()=>{}}},s={render:e=>o("div",{css:{position:"relative"},children:o(a,{...e})})};var c,p,m;s.parameters={...s.parameters,docs:{...(c=s.parameters)==null?void 0:c.docs,source:{originalSource:`{ render: args =>
diff --git a/assets/Label-Dvf5dr16.js b/assets/Label-BPjTE68Y.js similarity index 75% rename from assets/Label-Dvf5dr16.js rename to assets/Label-BPjTE68Y.js index eeb216179..d743df0fd 100644 --- a/assets/Label-Dvf5dr16.js +++ b/assets/Label-BPjTE68Y.js @@ -1 +1 @@ -import{c as s,a as n}from"./emotion-react.browser.esm-DVCGPw0o.js";import{t as o}from"./theme-DwD7F4-e.js";import"./iframe-BnffqoK7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="616c623f-2a86-46d1-825e-1ce717cff4cd",e._sentryDebugIdIdentifier="sentry-dbid-616c623f-2a86-46d1-825e-1ce717cff4cd")}catch{}})();const d=s({fontSize:o.text.body04.fontSize,lineHeight:o.text.body04.lineHeight}),r=({id:e,children:t})=>n("label",{css:d,htmlFor:e,children:t});r.__docgenInfo={description:"",methods:[],displayName:"Label",props:{id:{required:!0,tsType:{name:"string"},description:""}},composes:["ComponentPropsWithoutRef"]};export{r as L}; +import{c as s,a as n}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{t as o}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="616c623f-2a86-46d1-825e-1ce717cff4cd",e._sentryDebugIdIdentifier="sentry-dbid-616c623f-2a86-46d1-825e-1ce717cff4cd")}catch{}})();const d=s({fontSize:o.text.body04.fontSize,lineHeight:o.text.body04.lineHeight}),r=({id:e,children:t})=>n("label",{css:d,htmlFor:e,children:t});r.__docgenInfo={description:"",methods:[],displayName:"Label",props:{id:{required:!0,tsType:{name:"string"},description:""}},composes:["ComponentPropsWithoutRef"]};export{r as L}; diff --git a/assets/Label.stories-C8TXh-Zu.js b/assets/Label.stories-DqYxSaWl.js similarity index 74% rename from assets/Label.stories-C8TXh-Zu.js rename to assets/Label.stories-DqYxSaWl.js index e45ac854d..d44e675c5 100644 --- a/assets/Label.stories-C8TXh-Zu.js +++ b/assets/Label.stories-DqYxSaWl.js @@ -1 +1 @@ -import{L as s}from"./Label-Dvf5dr16.js";import"./iframe-BnffqoK7.js";import"./emotion-react.browser.esm-DVCGPw0o.js";import"./index-B4Z6PsAH.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./extends-ClQVCWlZ.js";import"./theme-DwD7F4-e.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c904175f-d541-4d83-afba-27ba77afa776",e._sentryDebugIdIdentifier="sentry-dbid-c904175f-d541-4d83-afba-27ba77afa776")}catch{}})();const y={title:"Common/Label",component:s,parameters:{layout:"centered"},argTypes:{children:{control:{type:"text"}}},args:{children:"Label",id:"label"}},r={};var a,o,d;r.parameters={...r.parameters,docs:{...(a=r.parameters)==null?void 0:a.docs,source:{originalSource:"{}",...(d=(o=r.parameters)==null?void 0:o.docs)==null?void 0:d.source}}};const g=["Default"];export{r as Default,g as __namedExportsOrder,y as default}; +import{L as s}from"./Label-BPjTE68Y.js";import"./iframe-AJyGuqY3.js";import"./emotion-react.browser.esm-Cyl1vPjg.js";import"./index-Bs6nXyGp.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./extends-ClQVCWlZ.js";import"./theme-Cuq_aI8Z.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c904175f-d541-4d83-afba-27ba77afa776",e._sentryDebugIdIdentifier="sentry-dbid-c904175f-d541-4d83-afba-27ba77afa776")}catch{}})();const y={title:"Common/Label",component:s,parameters:{layout:"centered"},argTypes:{children:{control:{type:"text"}}},args:{children:"Label",id:"label"}},r={};var a,o,d;r.parameters={...r.parameters,docs:{...(a=r.parameters)==null?void 0:a.docs,source:{originalSource:"{}",...(d=(o=r.parameters)==null?void 0:o.docs)==null?void 0:d.source}}};const g=["Default"];export{r as Default,g as __namedExportsOrder,y as default}; diff --git a/assets/ListItem.stories-C2T4bQC9.js b/assets/ListItem.stories-B_kIm6op.js similarity index 93% rename from assets/ListItem.stories-C2T4bQC9.js rename to assets/ListItem.stories-B_kIm6op.js index 062f6dab7..fe7d8ed2e 100644 --- a/assets/ListItem.stories-C2T4bQC9.js +++ b/assets/ListItem.stories-B_kIm6op.js @@ -1,4 +1,4 @@ -import{c,j as g,a as m}from"./emotion-react.browser.esm-DVCGPw0o.js";import{r as o}from"./index-B4Z6PsAH.js";import{F as b}from"./Flex-CcBQZiMH.js";import{T as S}from"./Tag-Bv1RKcm4.js";import{T as p}from"./Text-BdNMkr7S.js";import{t}from"./theme-DwD7F4-e.js";import"./iframe-BnffqoK7.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-XnwbWaTF.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="d56d8e64-a94e-4050-9154-de964147c6ad",e._sentryDebugIdIdentifier="sentry-dbid-d56d8e64-a94e-4050-9154-de964147c6ad")}catch{}})();const D=e=>o.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("mask",{id:"path-1-inside-1_376_7126",fill:"white"},o.createElement("rect",{x:2,y:3,width:12,height:11,rx:1})),o.createElement("rect",{x:2,y:3,width:12,height:11,rx:1,stroke:"#525866",strokeWidth:2.4,mask:"url(#path-1-inside-1_376_7126)"}),o.createElement("path",{d:"M2.5 6H13.5",stroke:"#525866",strokeWidth:1.2}),o.createElement("path",{d:"M5.1 2C5.1 1.66863 4.83137 1.4 4.5 1.4C4.16863 1.4 3.9 1.66863 3.9 2H5.1ZM5.1 3.5V2H3.9V3.5H5.1Z",fill:"#525866"}),o.createElement("path",{d:"M12.1 2C12.1 1.66863 11.8314 1.4 11.5 1.4C11.1686 1.4 10.9 1.66863 10.9 2H12.1ZM12.1 3.5V2H10.9V3.5H12.1Z",fill:"#525866"}),o.createElement("rect",{x:4,y:7,width:3,height:2,rx:.6,fill:"#525866"})),B=e=>{switch(e){case"#FFE6E8":return t.colors.red_200;case"#F8E2CB":return t.colors.yellow_200;case"#C4F2E5":return t.colors.green_200;case"#DCD8FA":return t.colors.purple_200;case"#E2E8F8":return t.colors.blue_200;case"#F8E1F5":return t.colors.pink_200;case"#D3EFFA":return t.colors.sky_200;default:return t.colors.white}},H=c({flexDirection:"column",alignItems:"center",width:"100%",padding:"1.6rem",backgroundColor:t.colors.gray_100,borderRadius:"8px",cursor:"pointer",":hover":{backgroundColor:t.colors.gray_200,transition:"all ease 0.5s"}}),q=c({width:"100%",paddingBottom:"0.6rem",color:t.colors.black}),M=c({width:"100%",paddingBottom:"1.6rem",color:t.colors.gray_800,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),V=c({justifyContent:"space-between",alignItems:"center",width:"100%",overflow:"hidden"}),f=c({alignItems:"center",gap:"0.4rem"}),W=e=>c({maxWidth:"18rem",color:B(e),whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),Z=(e,a,n)=>{let i=0;const d=[];for(const l of e){const r=document.createElement("span");r.style.display="inline-block",r.style.visibility="hidden",r.style.position="absolute",r.innerText=l.content,document.body.appendChild(r);const s=r.offsetWidth;if(document.body.removeChild(r),i+s*2+n>a){l.tagId==0&&d.push(l);break}i+=s*2+n,d.push(l)}return d},k=({title:e,content:a,date:n,tags:i=[],...d})=>{const l=o.useRef(null),r=Z(i,210,4);return g(b,{tag:"li",css:H,...d,children:[m(p,{tag:"body6",css:q,children:e}),m(p,{tag:"body8",css:M,children:a}),g(b,{css:V,children:[g("div",{ref:l,css:[f,{display:"flex",overflow:"hidden"}],children:[r.map(s=>m(S,{css:W(s.bgColor),bgColor:s.bgColor,children:s.content},s.tagId)),r.lengtho.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("mask",{id:"path-1-inside-1_376_7126",fill:"white"},o.createElement("rect",{x:2,y:3,width:12,height:11,rx:1})),o.createElement("rect",{x:2,y:3,width:12,height:11,rx:1,stroke:"#525866",strokeWidth:2.4,mask:"url(#path-1-inside-1_376_7126)"}),o.createElement("path",{d:"M2.5 6H13.5",stroke:"#525866",strokeWidth:1.2}),o.createElement("path",{d:"M5.1 2C5.1 1.66863 4.83137 1.4 4.5 1.4C4.16863 1.4 3.9 1.66863 3.9 2H5.1ZM5.1 3.5V2H3.9V3.5H5.1Z",fill:"#525866"}),o.createElement("path",{d:"M12.1 2C12.1 1.66863 11.8314 1.4 11.5 1.4C11.1686 1.4 10.9 1.66863 10.9 2H12.1ZM12.1 3.5V2H10.9V3.5H12.1Z",fill:"#525866"}),o.createElement("rect",{x:4,y:7,width:3,height:2,rx:.6,fill:"#525866"})),B=e=>{switch(e){case"#FFE6E8":return t.colors.red_200;case"#F8E2CB":return t.colors.yellow_200;case"#C4F2E5":return t.colors.green_200;case"#DCD8FA":return t.colors.purple_200;case"#E2E8F8":return t.colors.blue_200;case"#F8E1F5":return t.colors.pink_200;case"#D3EFFA":return t.colors.sky_200;default:return t.colors.white}},H=c({flexDirection:"column",alignItems:"center",width:"100%",padding:"1.6rem",backgroundColor:t.colors.gray_100,borderRadius:"8px",cursor:"pointer",":hover":{backgroundColor:t.colors.gray_200,transition:"all ease 0.5s"}}),q=c({width:"100%",paddingBottom:"0.6rem",color:t.colors.black}),M=c({width:"100%",paddingBottom:"1.6rem",color:t.colors.gray_800,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),V=c({justifyContent:"space-between",alignItems:"center",width:"100%",overflow:"hidden"}),f=c({alignItems:"center",gap:"0.4rem"}),W=e=>c({maxWidth:"18rem",color:B(e),whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),Z=(e,a,n)=>{let i=0;const d=[];for(const l of e){const r=document.createElement("span");r.style.display="inline-block",r.style.visibility="hidden",r.style.position="absolute",r.innerText=l.content,document.body.appendChild(r);const s=r.offsetWidth;if(document.body.removeChild(r),i+s*2+n>a){l.tagId==0&&d.push(l);break}i+=s*2+n,d.push(l)}return d},k=({title:e,content:a,date:n,tags:i=[],...d})=>{const l=o.useRef(null),r=Z(i,210,4);return g(b,{tag:"li",css:H,...d,children:[m(p,{tag:"body6",css:q,children:e}),m(p,{tag:"body8",css:M,children:a}),g(b,{css:V,children:[g("div",{ref:l,css:[f,{display:"flex",overflow:"hidden"}],children:[r.map(s=>m(S,{css:W(s.bgColor),bgColor:s.bgColor,children:s.content},s.tagId)),r.lengthn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M2.6665 14H13.3332M3.77717 8.79131C3.49291 9.0762 3.33324 9.4622 3.33317 9.86465V12H5.48184C5.8845 12 6.2705 11.84 6.55517 11.5546L12.8885 5.21798C13.1727 4.93304 13.3322 4.54706 13.3322 4.14465C13.3322 3.74224 13.1727 3.35625 12.8885 3.07131L12.2632 2.44465C12.1221 2.30355 11.9547 2.19163 11.7704 2.11529C11.5861 2.03895 11.3885 1.99969 11.189 1.99976C10.9895 1.99982 10.792 2.0392 10.6078 2.11565C10.4235 2.1921 10.2561 2.30413 10.1152 2.44531L3.77717 8.79131Z",stroke:"#525866",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),u=({children:e,onClose:o,...t})=>{const s=l(o);return i("div",{ref:s,css:{position:"relative"},...t,children:e})},v=n.forwardRef(u),p=a({display:"flex",alignItems:"center",gap:"0.8rem",padding:"0.8rem 0.4rem 0.8rem 0.8rem ",borderRadius:"8px",backgroundColor:r.colors.white,...r.text.body08,color:r.colors.black,whiteSpace:"nowrap",cursor:"pointer",":hover, :focus":{outline:r.colors.gray_100,backgroundColor:r.colors.gray_100}}),m=({LeftIcon:e,onSelect:o,children:t,...s})=>d("li",{role:"button",tabIndex:0,css:p,onKeyDown:c=>{c.key},onClick:o,...s,children:[e,t]});m.__docgenInfo={description:"",methods:[],displayName:"MenuItem",props:{onSelect:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},LeftIcon:{required:!1,tsType:{name:"ReactNode"},description:""}},composes:["HTMLAttributes"]};const f=a({position:"absolute",display:"flex",flexDirection:"column",width:"19.5rem",padding:"0.8rem",gap:"0.6rem",borderRadius:"8px",border:`1px solid ${r.colors.gray_300}`,boxShadow:"0.4rem 0.4rem 1rem 0 rgba(0, 0, 0, 0.1)",zIndex:r.zIndex.overlayTop}),b=({children:e,isOpen:o=!1,...t})=>o&&i("ul",{css:f,...t,children:e});b.__docgenInfo={description:"",methods:[],displayName:"MenuList",props:{isOpen:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}}},composes:["HTMLAttributes"]};export{v as M,I as S,b as a,m as b}; +import{r as n}from"./index-Bs6nXyGp.js";import{a as i,c as a,j as d}from"./emotion-react.browser.esm-Cyl1vPjg.js";import"./iframe-AJyGuqY3.js";import{u as l}from"./useOutsideClick-CEpXkKWK.js";import{t as r}from"./theme-Cuq_aI8Z.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="acc0a416-74e7-451c-8248-1f286b5263eb",e._sentryDebugIdIdentifier="sentry-dbid-acc0a416-74e7-451c-8248-1f286b5263eb")}catch{}})();const I=e=>n.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M2.6665 14H13.3332M3.77717 8.79131C3.49291 9.0762 3.33324 9.4622 3.33317 9.86465V12H5.48184C5.8845 12 6.2705 11.84 6.55517 11.5546L12.8885 5.21798C13.1727 4.93304 13.3322 4.54706 13.3322 4.14465C13.3322 3.74224 13.1727 3.35625 12.8885 3.07131L12.2632 2.44465C12.1221 2.30355 11.9547 2.19163 11.7704 2.11529C11.5861 2.03895 11.3885 1.99969 11.189 1.99976C10.9895 1.99982 10.792 2.0392 10.6078 2.11565C10.4235 2.1921 10.2561 2.30413 10.1152 2.44531L3.77717 8.79131Z",stroke:"#525866",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),u=({children:e,onClose:o,...t})=>{const s=l(o);return i("div",{ref:s,css:{position:"relative"},...t,children:e})},v=n.forwardRef(u),p=a({display:"flex",alignItems:"center",gap:"0.8rem",padding:"0.8rem 0.4rem 0.8rem 0.8rem ",borderRadius:"8px",backgroundColor:r.colors.white,...r.text.body08,color:r.colors.black,whiteSpace:"nowrap",cursor:"pointer",":hover, :focus":{outline:r.colors.gray_100,backgroundColor:r.colors.gray_100}}),m=({LeftIcon:e,onSelect:o,children:t,...s})=>d("li",{role:"button",tabIndex:0,css:p,onKeyDown:c=>{c.key},onClick:o,...s,children:[e,t]});m.__docgenInfo={description:"",methods:[],displayName:"MenuItem",props:{onSelect:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},LeftIcon:{required:!1,tsType:{name:"ReactNode"},description:""}},composes:["HTMLAttributes"]};const f=a({position:"absolute",display:"flex",flexDirection:"column",width:"19.5rem",padding:"0.8rem",gap:"0.6rem",borderRadius:"8px",border:`1px solid ${r.colors.gray_300}`,boxShadow:"0.4rem 0.4rem 1rem 0 rgba(0, 0, 0, 0.1)",zIndex:r.zIndex.overlayTop}),b=({children:e,isOpen:o=!1,...t})=>o&&i("ul",{css:f,...t,children:e});b.__docgenInfo={description:"",methods:[],displayName:"MenuList",props:{isOpen:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}}},composes:["HTMLAttributes"]};export{v as M,I as S,b as a,m as b}; diff --git a/assets/MenuList.stories-BEPTfUph.js b/assets/MenuList.stories-B1vx54lR.js similarity index 85% rename from assets/MenuList.stories-BEPTfUph.js rename to assets/MenuList.stories-B1vx54lR.js index a06542c4c..21e4c782c 100644 --- a/assets/MenuList.stories-BEPTfUph.js +++ b/assets/MenuList.stories-B1vx54lR.js @@ -1,4 +1,4 @@ -import{j as s,a as e,F as g}from"./emotion-react.browser.esm-DVCGPw0o.js";import{M as u,a as m,S as i,b as l}from"./MenuList-Cq7c8mmt.js";import"./index-B4Z6PsAH.js";import"./iframe-BnffqoK7.js";import{u as h}from"./useOverlay-jcCv9x_t.js";import"./extends-ClQVCWlZ.js";import"./useOutsideClick-COUwwguf.js";import"./theme-DwD7F4-e.js";import"./_commonjsHelpers-XnwbWaTF.js";import"../sb-preview/runtime.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="56676ef0-ab6a-4d1b-9d79-db25757d254f",t._sentryDebugIdIdentifier="sentry-dbid-56676ef0-ab6a-4d1b-9d79-db25757d254f")}catch{}})();const O={title:"Common/Menu",component:u,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{children:{control:!1}},args:{onClose:()=>{},children:s(g,{children:[e("button",{children:"trigger button"}),s("ul",{children:[e("li",{children:"item 1"}),e("li",{children:"item 2"})]})]})}},r={render:({})=>{const{isOpen:t,close:o,toggle:n}=h();return s(u,{onClose:o,children:[e("button",{type:"button",onClick:n,children:"Trigger"}),s(m,{isOpen:t,css:{left:"100%",top:0},children:[e(l,{LeftIcon:e(i,{width:16,height:16}),onSelect:n,children:"이름 변경"}),e(l,{LeftIcon:e(i,{width:16,height:16}),onSelect:n,children:"휴지통으로 이동"}),e(l,{LeftIcon:e(i,{width:16,height:16}),onSelect:n,children:"폴더 전체 다운로드"})]})]})},args:{onClose:()=>{}},argTypes:{}};var c,d,a;r.parameters={...r.parameters,docs:{...(c=r.parameters)==null?void 0:c.docs,source:{originalSource:`{ +import{j as s,a as e,F as g}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{M as u,a as m,S as i,b as l}from"./MenuList-DtX22AXJ.js";import"./index-Bs6nXyGp.js";import"./iframe-AJyGuqY3.js";import{u as h}from"./useOverlay-COpOggKz.js";import"./extends-ClQVCWlZ.js";import"./useOutsideClick-CEpXkKWK.js";import"./theme-Cuq_aI8Z.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"../sb-preview/runtime.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="56676ef0-ab6a-4d1b-9d79-db25757d254f",t._sentryDebugIdIdentifier="sentry-dbid-56676ef0-ab6a-4d1b-9d79-db25757d254f")}catch{}})();const O={title:"Common/Menu",component:u,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{children:{control:!1}},args:{onClose:()=>{},children:s(g,{children:[e("button",{children:"trigger button"}),s("ul",{children:[e("li",{children:"item 1"}),e("li",{children:"item 2"})]})]})}},r={render:({})=>{const{isOpen:t,close:o,toggle:n}=h();return s(u,{onClose:o,children:[e("button",{type:"button",onClick:n,children:"Trigger"}),s(m,{isOpen:t,css:{left:"100%",top:0},children:[e(l,{LeftIcon:e(i,{width:16,height:16}),onSelect:n,children:"이름 변경"}),e(l,{LeftIcon:e(i,{width:16,height:16}),onSelect:n,children:"휴지통으로 이동"}),e(l,{LeftIcon:e(i,{width:16,height:16}),onSelect:n,children:"폴더 전체 다운로드"})]})]})},args:{onClose:()=>{}},argTypes:{}};var c,d,a;r.parameters={...r.parameters,docs:{...(c=r.parameters)==null?void 0:c.docs,source:{originalSource:`{ render: ({}) => { const { isOpen, diff --git a/assets/QueryClientProvider-CVYF4Mhz.js b/assets/QueryClientProvider-BufXlfUi.js similarity index 99% rename from assets/QueryClientProvider-CVYF4Mhz.js rename to assets/QueryClientProvider-BufXlfUi.js index f0a33b6f3..2a7c4afd1 100644 --- a/assets/QueryClientProvider-CVYF4Mhz.js +++ b/assets/QueryClientProvider-BufXlfUi.js @@ -1 +1 @@ -var it=e=>{throw TypeError(e)};var X=(e,t,s)=>t.has(e)||it("Cannot "+s);var r=(e,t,s)=>(X(e,t,"read from private field"),s?s.call(e):t.get(e)),y=(e,t,s)=>t.has(e)?it("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),u=(e,t,s,i)=>(X(e,t,"write to private field"),i?i.call(e,s):t.set(e,s),s),w=(e,t,s)=>(X(e,t,"access private method"),s);import{r as et}from"./index-B4Z6PsAH.js";import{b as Ft}from"./emotion-react.browser.esm-DVCGPw0o.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a6a27be5-74a8-4543-839a-d74217a52a7b",e._sentryDebugIdIdentifier="sentry-dbid-a6a27be5-74a8-4543-839a-d74217a52a7b")}catch{}})();var dt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},W=typeof window>"u"||"Deno"in globalThis;function rt(){}function Qt(e,t){return typeof e=="function"?e(t):e}function Ct(e){return typeof e=="number"&&e>=0&&e!==1/0}function gt(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Nt(e,t){return typeof e=="function"?e(t):e}function Rt(e,t){return typeof e=="function"?e(t):e}function Ht(e,t){const{type:s="all",exact:i,fetchStatus:n,predicate:d,queryKey:h,stale:l}=e;if(h){if(i){if(t.queryHash!==Et(h,t.options))return!1}else if(!st(t.queryKey,h))return!1}if(s!=="all"){const b=t.isActive();if(s==="active"&&!b||s==="inactive"&&b)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||n&&n!==t.state.fetchStatus||d&&!d(t))}function _t(e,t){const{exact:s,status:i,predicate:n,mutationKey:d}=e;if(d){if(!t.options.mutationKey)return!1;if(s){if(Z(t.options.mutationKey)!==Z(d))return!1}else if(!st(t.options.mutationKey,d))return!1}return!(i&&t.state.status!==i||n&&!n(t))}function Et(e,t){return((t==null?void 0:t.queryKeyHashFn)||Z)(e)}function Z(e){return JSON.stringify(e,(t,s)=>tt(s)?Object.keys(s).sort().reduce((i,n)=>(i[n]=s[n],i),{}):s)}function st(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(s=>!st(e[s],t[s])):!1}function ft(e,t){if(e===t)return e;const s=nt(e)&&nt(t);if(s||tt(e)&&tt(t)){const i=s?e:Object.keys(e),n=i.length,d=s?t:Object.keys(t),h=d.length,l=s?[]:{};let b=0;for(let C=0;C{setTimeout(t,e)})}function Ot(e,t,s){return typeof s.structuralSharing=="function"?s.structuralSharing(e,t):s.structuralSharing!==!1?ft(e,t):t}function zt(e,t,s=0){const i=[...e,t];return s&&i.length>s?i.slice(1):i}function $t(e,t,s=0){const i=[t,...e];return s&&i.length>s?i.slice(0,-1):i}var xt=Symbol(),Dt=(e,t)=>!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===xt?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn,A,T,Q,ot,Mt=(ot=class extends dt{constructor(){super();y(this,A);y(this,T);y(this,Q);u(this,Q,t=>{if(!W&&window.addEventListener){const s=()=>t();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){r(this,T)||this.setEventListener(r(this,Q))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,T))==null||t.call(this),u(this,T,void 0))}setEventListener(t){var s;u(this,Q,t),(s=r(this,T))==null||s.call(this),u(this,T,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){r(this,A)!==t&&(u(this,A,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(s=>{s(t)})}isFocused(){var t;return typeof r(this,A)=="boolean"?r(this,A):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},A=new WeakMap,T=new WeakMap,Q=new WeakMap,ot),jt=new Mt,N,U,H,ut,qt=(ut=class extends dt{constructor(){super();y(this,N,!0);y(this,U);y(this,H);u(this,H,t=>{if(!W&&window.addEventListener){const s=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",i)}}})}onSubscribe(){r(this,U)||this.setEventListener(r(this,H))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,U))==null||t.call(this),u(this,U,void 0))}setEventListener(t){var s;u(this,H,t),(s=r(this,U))==null||s.call(this),u(this,U,t(this.setOnline.bind(this)))}setOnline(t){r(this,N)!==t&&(u(this,N,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return r(this,N)}},N=new WeakMap,U=new WeakMap,H=new WeakMap,ut),yt=new qt;function Tt(e){return Math.min(1e3*2**e,3e4)}function pt(e){return(e??"online")==="online"?yt.isOnline():!0}var mt=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Y(e){return e instanceof mt}function vt(e){let t=!1,s=0,i=!1,n,d,h;const l=new Promise((c,p)=>{d=c,h=p}),b=c=>{var p;i||(g(new mt(c)),(p=e.abort)==null||p.call(e))},C=()=>{t=!0},f=()=>{t=!1},o=()=>jt.isFocused()&&(e.networkMode==="always"||yt.isOnline())&&e.canRun(),a=()=>pt(e.networkMode)&&e.canRun(),v=c=>{var p;i||(i=!0,(p=e.onSuccess)==null||p.call(e,c),n==null||n(),d(c))},g=c=>{var p;i||(i=!0,(p=e.onError)==null||p.call(e,c),n==null||n(),h(c))},P=()=>new Promise(c=>{var p;n=R=>{(i||o())&&c(R)},(p=e.onPause)==null||p.call(e)}).then(()=>{var c;n=void 0,i||(c=e.onContinue)==null||c.call(e)}),G=()=>{if(i)return;let c;const p=s===0?e.initialPromise:void 0;try{c=p??e.fn()}catch(R){c=Promise.reject(R)}Promise.resolve(c).then(v).catch(R=>{var m;if(i)return;const j=e.retry??(W?0:3),K=e.retryDelay??Tt,$=typeof K=="function"?K(s,R):K,V=j===!0||typeof j=="number"&&so()?void 0:P()).then(()=>{t?g(R):G()})})};return{promise:l,cancel:b,continue:()=>(n==null||n(),l),cancelRetry:C,continueRetry:f,canStart:a,start:()=>(a()?G():P().then(G),l)}}function Ut(){let e=[],t=0,s=a=>{a()},i=a=>{a()},n=a=>setTimeout(a,0);const d=a=>{n=a},h=a=>{let v;t++;try{v=a()}finally{t--,t||C()}return v},l=a=>{t?e.push(a):n(()=>{s(a)})},b=a=>(...v)=>{l(()=>{a(...v)})},C=()=>{const a=e;e=[],a.length&&n(()=>{i(()=>{a.forEach(v=>{s(v)})})})};return{batch:h,batchCalls:b,schedule:l,setNotifyFunction:a=>{s=a},setBatchNotifyFunction:a=>{i=a},setScheduler:d}}var bt=Ut(),I,ht,wt=(ht=class{constructor(){y(this,I)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ct(this.gcTime)&&u(this,I,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(W?1/0:5*60*1e3))}clearGcTimeout(){r(this,I)&&(clearTimeout(r(this,I)),u(this,I,void 0))}},I=new WeakMap,ht),_,B,E,S,z,k,O,M,ct,Vt=(ct=class extends wt{constructor(t){super();y(this,O);y(this,_);y(this,B);y(this,E);y(this,S);y(this,z);y(this,k);u(this,k,!1),u(this,z,t.defaultOptions),this.setOptions(t.options),this.observers=[],u(this,E,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,u(this,_,t.state||It(this.options)),this.state=r(this,_),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=r(this,S))==null?void 0:t.promise}setOptions(t){this.options={...r(this,z),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&r(this,E).remove(this)}setData(t,s){const i=Ot(this.state.data,t,this.options);return w(this,O,M).call(this,{data:i,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),i}setState(t,s){w(this,O,M).call(this,{type:"setState",state:t,setStateOptions:s})}cancel(t){var i,n;const s=(i=r(this,S))==null?void 0:i.promise;return(n=r(this,S))==null||n.cancel(t),s?s.then(rt).catch(rt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(r(this,_))}isActive(){return this.observers.some(t=>Rt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!gt(this.state.dataUpdatedAt,t)}onFocus(){var s;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(s=r(this,S))==null||s.continue()}onOnline(){var s;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(s=r(this,S))==null||s.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),r(this,E).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(s=>s!==t),this.observers.length||(r(this,S)&&(r(this,k)?r(this,S).cancel({revert:!0}):r(this,S).cancelRetry()),this.scheduleGc()),r(this,E).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||w(this,O,M).call(this,{type:"invalidate"})}fetch(t,s){var b,C,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(r(this,S))return r(this,S).continueRetry(),r(this,S).promise}if(t&&this.setOptions(t),!this.options.queryFn){const o=this.observers.find(a=>a.options.queryFn);o&&this.setOptions(o.options)}const i=new AbortController,n=o=>{Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(u(this,k,!0),i.signal)})},d=()=>{const o=Dt(this.options,s),a={queryKey:this.queryKey,meta:this.meta};return n(a),u(this,k,!1),this.options.persister?this.options.persister(o,a,this):o(a)},h={fetchOptions:s,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:d};n(h),(b=this.options.behavior)==null||b.onFetch(h,this),u(this,B,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((C=h.fetchOptions)==null?void 0:C.meta))&&w(this,O,M).call(this,{type:"fetch",meta:(f=h.fetchOptions)==null?void 0:f.meta});const l=o=>{var a,v,g,P;Y(o)&&o.silent||w(this,O,M).call(this,{type:"error",error:o}),Y(o)||((v=(a=r(this,E).config).onError)==null||v.call(a,o,this),(P=(g=r(this,E).config).onSettled)==null||P.call(g,this.state.data,o,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return u(this,S,vt({initialPromise:s==null?void 0:s.initialPromise,fn:h.fetchFn,abort:i.abort.bind(i),onSuccess:o=>{var a,v,g,P;if(o===void 0){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(o),(v=(a=r(this,E).config).onSuccess)==null||v.call(a,o,this),(P=(g=r(this,E).config).onSettled)==null||P.call(g,o,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(o,a)=>{w(this,O,M).call(this,{type:"failed",failureCount:o,error:a})},onPause:()=>{w(this,O,M).call(this,{type:"pause"})},onContinue:()=>{w(this,O,M).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0})),r(this,S).start()}},_=new WeakMap,B=new WeakMap,E=new WeakMap,S=new WeakMap,z=new WeakMap,k=new WeakMap,O=new WeakSet,M=function(t){const s=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...At(i.data,this.options),fetchMeta:t.meta??null};case"success":return{...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=t.error;return Y(n)&&n.revert&&r(this,B)?{...r(this,B),fetchStatus:"idle"}:{...i,error:n,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=s(this.state),bt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),r(this,E).notify({query:this,type:"updated",action:t})})},ct);function At(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:pt(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function It(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,s=t!==void 0,i=s?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var x,F,L,D,q,lt,Jt=(lt=class extends wt{constructor(t){super();y(this,D);y(this,x);y(this,F);y(this,L);this.mutationId=t.mutationId,u(this,F,t.mutationCache),u(this,x,[]),this.state=t.state||kt(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){r(this,x).includes(t)||(r(this,x).push(t),this.clearGcTimeout(),r(this,F).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){u(this,x,r(this,x).filter(s=>s!==t)),this.scheduleGc(),r(this,F).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){r(this,x).length||(this.state.status==="pending"?this.scheduleGc():r(this,F).remove(this))}continue(){var t;return((t=r(this,L))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var n,d,h,l,b,C,f,o,a,v,g,P,G,c,p,R,j,K,$,V;u(this,L,vt({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(m,J)=>{w(this,D,q).call(this,{type:"failed",failureCount:m,error:J})},onPause:()=>{w(this,D,q).call(this,{type:"pause"})},onContinue:()=>{w(this,D,q).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>r(this,F).canRun(this)}));const s=this.state.status==="pending",i=!r(this,L).canStart();try{if(!s){w(this,D,q).call(this,{type:"pending",variables:t,isPaused:i}),await((d=(n=r(this,F).config).onMutate)==null?void 0:d.call(n,t,this));const J=await((l=(h=this.options).onMutate)==null?void 0:l.call(h,t));J!==this.state.context&&w(this,D,q).call(this,{type:"pending",context:J,variables:t,isPaused:i})}const m=await r(this,L).start();return await((C=(b=r(this,F).config).onSuccess)==null?void 0:C.call(b,m,t,this.state.context,this)),await((o=(f=this.options).onSuccess)==null?void 0:o.call(f,m,t,this.state.context)),await((v=(a=r(this,F).config).onSettled)==null?void 0:v.call(a,m,null,this.state.variables,this.state.context,this)),await((P=(g=this.options).onSettled)==null?void 0:P.call(g,m,null,t,this.state.context)),w(this,D,q).call(this,{type:"success",data:m}),m}catch(m){try{throw await((c=(G=r(this,F).config).onError)==null?void 0:c.call(G,m,t,this.state.context,this)),await((R=(p=this.options).onError)==null?void 0:R.call(p,m,t,this.state.context)),await((K=(j=r(this,F).config).onSettled)==null?void 0:K.call(j,void 0,m,this.state.variables,this.state.context,this)),await((V=($=this.options).onSettled)==null?void 0:V.call($,void 0,m,t,this.state.context)),m}finally{w(this,D,q).call(this,{type:"error",error:m})}}finally{r(this,F).runNext(this)}}},x=new WeakMap,F=new WeakMap,L=new WeakMap,D=new WeakSet,q=function(t){const s=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=s(this.state),bt.batch(()=>{r(this,x).forEach(i=>{i.onMutationUpdate(t)}),r(this,F).notify({mutation:this,type:"updated",action:t})})},lt);function kt(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var St=et.createContext(void 0),Wt=e=>{const t=et.useContext(St);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Xt=({client:e,children:t})=>(et.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Ft.jsx(St.Provider,{value:e,children:t}));export{Jt as M,Vt as Q,dt as S,_t as a,rt as b,$t as c,zt as d,Dt as e,jt as f,Qt as g,Et as h,Z as i,Xt as j,Rt as k,Bt as l,Ht as m,bt as n,yt as o,st as p,W as q,Nt as r,xt as s,Ct as t,Wt as u,gt as v,At as w,Ot as x,kt as y}; +var it=e=>{throw TypeError(e)};var X=(e,t,s)=>t.has(e)||it("Cannot "+s);var r=(e,t,s)=>(X(e,t,"read from private field"),s?s.call(e):t.get(e)),y=(e,t,s)=>t.has(e)?it("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),u=(e,t,s,i)=>(X(e,t,"write to private field"),i?i.call(e,s):t.set(e,s),s),w=(e,t,s)=>(X(e,t,"access private method"),s);import{r as et}from"./index-Bs6nXyGp.js";import{b as Ft}from"./emotion-react.browser.esm-Cyl1vPjg.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a6a27be5-74a8-4543-839a-d74217a52a7b",e._sentryDebugIdIdentifier="sentry-dbid-a6a27be5-74a8-4543-839a-d74217a52a7b")}catch{}})();var dt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},W=typeof window>"u"||"Deno"in globalThis;function rt(){}function Qt(e,t){return typeof e=="function"?e(t):e}function Ct(e){return typeof e=="number"&&e>=0&&e!==1/0}function gt(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Nt(e,t){return typeof e=="function"?e(t):e}function Rt(e,t){return typeof e=="function"?e(t):e}function Ht(e,t){const{type:s="all",exact:i,fetchStatus:n,predicate:d,queryKey:h,stale:l}=e;if(h){if(i){if(t.queryHash!==Et(h,t.options))return!1}else if(!st(t.queryKey,h))return!1}if(s!=="all"){const b=t.isActive();if(s==="active"&&!b||s==="inactive"&&b)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||n&&n!==t.state.fetchStatus||d&&!d(t))}function _t(e,t){const{exact:s,status:i,predicate:n,mutationKey:d}=e;if(d){if(!t.options.mutationKey)return!1;if(s){if(Z(t.options.mutationKey)!==Z(d))return!1}else if(!st(t.options.mutationKey,d))return!1}return!(i&&t.state.status!==i||n&&!n(t))}function Et(e,t){return((t==null?void 0:t.queryKeyHashFn)||Z)(e)}function Z(e){return JSON.stringify(e,(t,s)=>tt(s)?Object.keys(s).sort().reduce((i,n)=>(i[n]=s[n],i),{}):s)}function st(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(s=>!st(e[s],t[s])):!1}function ft(e,t){if(e===t)return e;const s=nt(e)&&nt(t);if(s||tt(e)&&tt(t)){const i=s?e:Object.keys(e),n=i.length,d=s?t:Object.keys(t),h=d.length,l=s?[]:{};let b=0;for(let C=0;C{setTimeout(t,e)})}function Ot(e,t,s){return typeof s.structuralSharing=="function"?s.structuralSharing(e,t):s.structuralSharing!==!1?ft(e,t):t}function zt(e,t,s=0){const i=[...e,t];return s&&i.length>s?i.slice(1):i}function $t(e,t,s=0){const i=[t,...e];return s&&i.length>s?i.slice(0,-1):i}var xt=Symbol(),Dt=(e,t)=>!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===xt?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn,A,T,Q,ot,Mt=(ot=class extends dt{constructor(){super();y(this,A);y(this,T);y(this,Q);u(this,Q,t=>{if(!W&&window.addEventListener){const s=()=>t();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){r(this,T)||this.setEventListener(r(this,Q))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,T))==null||t.call(this),u(this,T,void 0))}setEventListener(t){var s;u(this,Q,t),(s=r(this,T))==null||s.call(this),u(this,T,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){r(this,A)!==t&&(u(this,A,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(s=>{s(t)})}isFocused(){var t;return typeof r(this,A)=="boolean"?r(this,A):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},A=new WeakMap,T=new WeakMap,Q=new WeakMap,ot),jt=new Mt,N,U,H,ut,qt=(ut=class extends dt{constructor(){super();y(this,N,!0);y(this,U);y(this,H);u(this,H,t=>{if(!W&&window.addEventListener){const s=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",i)}}})}onSubscribe(){r(this,U)||this.setEventListener(r(this,H))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,U))==null||t.call(this),u(this,U,void 0))}setEventListener(t){var s;u(this,H,t),(s=r(this,U))==null||s.call(this),u(this,U,t(this.setOnline.bind(this)))}setOnline(t){r(this,N)!==t&&(u(this,N,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return r(this,N)}},N=new WeakMap,U=new WeakMap,H=new WeakMap,ut),yt=new qt;function Tt(e){return Math.min(1e3*2**e,3e4)}function pt(e){return(e??"online")==="online"?yt.isOnline():!0}var mt=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Y(e){return e instanceof mt}function vt(e){let t=!1,s=0,i=!1,n,d,h;const l=new Promise((c,p)=>{d=c,h=p}),b=c=>{var p;i||(g(new mt(c)),(p=e.abort)==null||p.call(e))},C=()=>{t=!0},f=()=>{t=!1},o=()=>jt.isFocused()&&(e.networkMode==="always"||yt.isOnline())&&e.canRun(),a=()=>pt(e.networkMode)&&e.canRun(),v=c=>{var p;i||(i=!0,(p=e.onSuccess)==null||p.call(e,c),n==null||n(),d(c))},g=c=>{var p;i||(i=!0,(p=e.onError)==null||p.call(e,c),n==null||n(),h(c))},P=()=>new Promise(c=>{var p;n=R=>{(i||o())&&c(R)},(p=e.onPause)==null||p.call(e)}).then(()=>{var c;n=void 0,i||(c=e.onContinue)==null||c.call(e)}),G=()=>{if(i)return;let c;const p=s===0?e.initialPromise:void 0;try{c=p??e.fn()}catch(R){c=Promise.reject(R)}Promise.resolve(c).then(v).catch(R=>{var m;if(i)return;const j=e.retry??(W?0:3),K=e.retryDelay??Tt,$=typeof K=="function"?K(s,R):K,V=j===!0||typeof j=="number"&&so()?void 0:P()).then(()=>{t?g(R):G()})})};return{promise:l,cancel:b,continue:()=>(n==null||n(),l),cancelRetry:C,continueRetry:f,canStart:a,start:()=>(a()?G():P().then(G),l)}}function Ut(){let e=[],t=0,s=a=>{a()},i=a=>{a()},n=a=>setTimeout(a,0);const d=a=>{n=a},h=a=>{let v;t++;try{v=a()}finally{t--,t||C()}return v},l=a=>{t?e.push(a):n(()=>{s(a)})},b=a=>(...v)=>{l(()=>{a(...v)})},C=()=>{const a=e;e=[],a.length&&n(()=>{i(()=>{a.forEach(v=>{s(v)})})})};return{batch:h,batchCalls:b,schedule:l,setNotifyFunction:a=>{s=a},setBatchNotifyFunction:a=>{i=a},setScheduler:d}}var bt=Ut(),I,ht,wt=(ht=class{constructor(){y(this,I)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ct(this.gcTime)&&u(this,I,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(W?1/0:5*60*1e3))}clearGcTimeout(){r(this,I)&&(clearTimeout(r(this,I)),u(this,I,void 0))}},I=new WeakMap,ht),_,B,E,S,z,k,O,M,ct,Vt=(ct=class extends wt{constructor(t){super();y(this,O);y(this,_);y(this,B);y(this,E);y(this,S);y(this,z);y(this,k);u(this,k,!1),u(this,z,t.defaultOptions),this.setOptions(t.options),this.observers=[],u(this,E,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,u(this,_,t.state||It(this.options)),this.state=r(this,_),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=r(this,S))==null?void 0:t.promise}setOptions(t){this.options={...r(this,z),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&r(this,E).remove(this)}setData(t,s){const i=Ot(this.state.data,t,this.options);return w(this,O,M).call(this,{data:i,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),i}setState(t,s){w(this,O,M).call(this,{type:"setState",state:t,setStateOptions:s})}cancel(t){var i,n;const s=(i=r(this,S))==null?void 0:i.promise;return(n=r(this,S))==null||n.cancel(t),s?s.then(rt).catch(rt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(r(this,_))}isActive(){return this.observers.some(t=>Rt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!gt(this.state.dataUpdatedAt,t)}onFocus(){var s;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(s=r(this,S))==null||s.continue()}onOnline(){var s;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(s=r(this,S))==null||s.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),r(this,E).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(s=>s!==t),this.observers.length||(r(this,S)&&(r(this,k)?r(this,S).cancel({revert:!0}):r(this,S).cancelRetry()),this.scheduleGc()),r(this,E).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||w(this,O,M).call(this,{type:"invalidate"})}fetch(t,s){var b,C,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(r(this,S))return r(this,S).continueRetry(),r(this,S).promise}if(t&&this.setOptions(t),!this.options.queryFn){const o=this.observers.find(a=>a.options.queryFn);o&&this.setOptions(o.options)}const i=new AbortController,n=o=>{Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(u(this,k,!0),i.signal)})},d=()=>{const o=Dt(this.options,s),a={queryKey:this.queryKey,meta:this.meta};return n(a),u(this,k,!1),this.options.persister?this.options.persister(o,a,this):o(a)},h={fetchOptions:s,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:d};n(h),(b=this.options.behavior)==null||b.onFetch(h,this),u(this,B,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((C=h.fetchOptions)==null?void 0:C.meta))&&w(this,O,M).call(this,{type:"fetch",meta:(f=h.fetchOptions)==null?void 0:f.meta});const l=o=>{var a,v,g,P;Y(o)&&o.silent||w(this,O,M).call(this,{type:"error",error:o}),Y(o)||((v=(a=r(this,E).config).onError)==null||v.call(a,o,this),(P=(g=r(this,E).config).onSettled)==null||P.call(g,this.state.data,o,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return u(this,S,vt({initialPromise:s==null?void 0:s.initialPromise,fn:h.fetchFn,abort:i.abort.bind(i),onSuccess:o=>{var a,v,g,P;if(o===void 0){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(o),(v=(a=r(this,E).config).onSuccess)==null||v.call(a,o,this),(P=(g=r(this,E).config).onSettled)==null||P.call(g,o,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(o,a)=>{w(this,O,M).call(this,{type:"failed",failureCount:o,error:a})},onPause:()=>{w(this,O,M).call(this,{type:"pause"})},onContinue:()=>{w(this,O,M).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0})),r(this,S).start()}},_=new WeakMap,B=new WeakMap,E=new WeakMap,S=new WeakMap,z=new WeakMap,k=new WeakMap,O=new WeakSet,M=function(t){const s=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...At(i.data,this.options),fetchMeta:t.meta??null};case"success":return{...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=t.error;return Y(n)&&n.revert&&r(this,B)?{...r(this,B),fetchStatus:"idle"}:{...i,error:n,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=s(this.state),bt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),r(this,E).notify({query:this,type:"updated",action:t})})},ct);function At(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:pt(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function It(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,s=t!==void 0,i=s?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var x,F,L,D,q,lt,Jt=(lt=class extends wt{constructor(t){super();y(this,D);y(this,x);y(this,F);y(this,L);this.mutationId=t.mutationId,u(this,F,t.mutationCache),u(this,x,[]),this.state=t.state||kt(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){r(this,x).includes(t)||(r(this,x).push(t),this.clearGcTimeout(),r(this,F).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){u(this,x,r(this,x).filter(s=>s!==t)),this.scheduleGc(),r(this,F).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){r(this,x).length||(this.state.status==="pending"?this.scheduleGc():r(this,F).remove(this))}continue(){var t;return((t=r(this,L))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var n,d,h,l,b,C,f,o,a,v,g,P,G,c,p,R,j,K,$,V;u(this,L,vt({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(m,J)=>{w(this,D,q).call(this,{type:"failed",failureCount:m,error:J})},onPause:()=>{w(this,D,q).call(this,{type:"pause"})},onContinue:()=>{w(this,D,q).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>r(this,F).canRun(this)}));const s=this.state.status==="pending",i=!r(this,L).canStart();try{if(!s){w(this,D,q).call(this,{type:"pending",variables:t,isPaused:i}),await((d=(n=r(this,F).config).onMutate)==null?void 0:d.call(n,t,this));const J=await((l=(h=this.options).onMutate)==null?void 0:l.call(h,t));J!==this.state.context&&w(this,D,q).call(this,{type:"pending",context:J,variables:t,isPaused:i})}const m=await r(this,L).start();return await((C=(b=r(this,F).config).onSuccess)==null?void 0:C.call(b,m,t,this.state.context,this)),await((o=(f=this.options).onSuccess)==null?void 0:o.call(f,m,t,this.state.context)),await((v=(a=r(this,F).config).onSettled)==null?void 0:v.call(a,m,null,this.state.variables,this.state.context,this)),await((P=(g=this.options).onSettled)==null?void 0:P.call(g,m,null,t,this.state.context)),w(this,D,q).call(this,{type:"success",data:m}),m}catch(m){try{throw await((c=(G=r(this,F).config).onError)==null?void 0:c.call(G,m,t,this.state.context,this)),await((R=(p=this.options).onError)==null?void 0:R.call(p,m,t,this.state.context)),await((K=(j=r(this,F).config).onSettled)==null?void 0:K.call(j,void 0,m,this.state.variables,this.state.context,this)),await((V=($=this.options).onSettled)==null?void 0:V.call($,void 0,m,t,this.state.context)),m}finally{w(this,D,q).call(this,{type:"error",error:m})}}finally{r(this,F).runNext(this)}}},x=new WeakMap,F=new WeakMap,L=new WeakMap,D=new WeakSet,q=function(t){const s=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=s(this.state),bt.batch(()=>{r(this,x).forEach(i=>{i.onMutationUpdate(t)}),r(this,F).notify({mutation:this,type:"updated",action:t})})},lt);function kt(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var St=et.createContext(void 0),Wt=e=>{const t=et.useContext(St);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Xt=({client:e,children:t})=>(et.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Ft.jsx(St.Provider,{value:e,children:t}));export{Jt as M,Vt as Q,dt as S,_t as a,rt as b,$t as c,zt as d,Dt as e,jt as f,Qt as g,Et as h,Z as i,Xt as j,Rt as k,Bt as l,Ht as m,bt as n,yt as o,st as p,W as q,Nt as r,xt as s,Ct as t,Wt as u,gt as v,At as w,Ot as x,kt as y}; diff --git a/assets/RadioGroup.stories-D2w0ovdv.js b/assets/RadioGroup.stories-BFC6xYwb.js similarity index 92% rename from assets/RadioGroup.stories-D2w0ovdv.js rename to assets/RadioGroup.stories-BFC6xYwb.js index 8eb836d7c..fb76a8d2b 100644 --- a/assets/RadioGroup.stories-D2w0ovdv.js +++ b/assets/RadioGroup.stories-BFC6xYwb.js @@ -1,4 +1,4 @@ -import{c as d,j as f,a as n}from"./emotion-react.browser.esm-DVCGPw0o.js";import{r as S}from"./index-B4Z6PsAH.js";import{t as u}from"./theme-DwD7F4-e.js";import"./iframe-BnffqoK7.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-XnwbWaTF.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2009cdb0-1d9b-425c-9eeb-e4f5922dd9db",e._sentryDebugIdIdentifier="sentry-dbid-2009cdb0-1d9b-425c-9eeb-e4f5922dd9db")}catch{}})();const C=d({display:"flex",gap:"0.4rem",cursor:"pointer"}),w=d({"& + label":{cursor:"pointer",transition:"0.2s ease-in-out",...u.text.body06},accentColor:u.colors.key_500,cursor:"pointer"}),I=d({color:u.colors.black,whiteSpace:"nowrap"}),x=d({display:"flex",gap:"0.8rem"}),b=({label:e,value:t,id:r,checked:a,...c})=>f("div",{role:"radio","aria-label":"radio-button","aria-checked":a,tabIndex:0,css:C,children:[n("input",{id:r,type:"radio",value:t,css:w,...c}),n("label",{htmlFor:r,css:I,children:e})]});b.__docgenInfo={description:"",methods:[],displayName:"RadioButton",props:{label:{required:!0,tsType:{name:"string"},description:""},name:{required:!0,tsType:{name:"string"},description:""},checked:{required:!0,tsType:{name:"boolean"},description:""}},composes:["InputHTMLAttributes"]};const l=({options:e,onChange:t,value:r})=>{const a=i=>{const o=i.target.value;t({target:{value:o}})};return n("div",{role:"radiogroup",css:x,children:e.map(({label:i,value:o,name:p},v)=>{const m=`${p}-${v}`;return n(b,{id:m,label:i,name:p,value:o,onChange:a,checked:r===o},m)})})};l.__docgenInfo={description:"",methods:[],displayName:"RadioGroup",props:{options:{required:!0,tsType:{name:"Array",elements:[{name:"RadioProps"}],raw:"RadioProps[]"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(e: ChangeEvent) => void",signature:{arguments:[{type:{name:"ChangeEvent",elements:[{name:"HTMLInputElement"}],raw:"ChangeEvent"},name:"e"}],return:{name:"void"}}},description:""},value:{required:!0,tsType:{name:"string"},description:""}}};const B={title:"Common/RadioGroup",component:l,parameters:{layout:"centered"},tags:["autodocs"]},s={decorators:[e=>n("div",{css:{width:"24rem"},children:n(e,{})})],render:()=>{const[e,t]=S.useState("작성 완료"),r=a=>{t(a)};return n("div",{css:{display:"flex",gap:"0.4rem"},children:n(l,{options:[{label:"작성 완료",value:"작성 완료",name:"note"},{label:"작성 미완료",value:"작성 미완료",name:"note"}],onChange:a=>r(a.target.value),value:e})})}};var g,y,h;s.parameters={...s.parameters,docs:{...(g=s.parameters)==null?void 0:g.docs,source:{originalSource:`{ +import{c as d,j as f,a as n}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{r as S}from"./index-Bs6nXyGp.js";import{t as u}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2009cdb0-1d9b-425c-9eeb-e4f5922dd9db",e._sentryDebugIdIdentifier="sentry-dbid-2009cdb0-1d9b-425c-9eeb-e4f5922dd9db")}catch{}})();const C=d({display:"flex",gap:"0.4rem",cursor:"pointer"}),w=d({"& + label":{cursor:"pointer",transition:"0.2s ease-in-out",...u.text.body06},accentColor:u.colors.key_500,cursor:"pointer"}),I=d({color:u.colors.black,whiteSpace:"nowrap"}),x=d({display:"flex",gap:"0.8rem"}),b=({label:e,value:t,id:r,checked:a,...c})=>f("div",{role:"radio","aria-label":"radio-button","aria-checked":a,tabIndex:0,css:C,children:[n("input",{id:r,type:"radio",value:t,css:w,...c}),n("label",{htmlFor:r,css:I,children:e})]});b.__docgenInfo={description:"",methods:[],displayName:"RadioButton",props:{label:{required:!0,tsType:{name:"string"},description:""},name:{required:!0,tsType:{name:"string"},description:""},checked:{required:!0,tsType:{name:"boolean"},description:""}},composes:["InputHTMLAttributes"]};const l=({options:e,onChange:t,value:r})=>{const a=i=>{const o=i.target.value;t({target:{value:o}})};return n("div",{role:"radiogroup",css:x,children:e.map(({label:i,value:o,name:p},v)=>{const m=`${p}-${v}`;return n(b,{id:m,label:i,name:p,value:o,onChange:a,checked:r===o},m)})})};l.__docgenInfo={description:"",methods:[],displayName:"RadioGroup",props:{options:{required:!0,tsType:{name:"Array",elements:[{name:"RadioProps"}],raw:"RadioProps[]"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(e: ChangeEvent) => void",signature:{arguments:[{type:{name:"ChangeEvent",elements:[{name:"HTMLInputElement"}],raw:"ChangeEvent"},name:"e"}],return:{name:"void"}}},description:""},value:{required:!0,tsType:{name:"string"},description:""}}};const B={title:"Common/RadioGroup",component:l,parameters:{layout:"centered"},tags:["autodocs"]},s={decorators:[e=>n("div",{css:{width:"24rem"},children:n(e,{})})],render:()=>{const[e,t]=S.useState("작성 완료"),r=a=>{t(a)};return n("div",{css:{display:"flex",gap:"0.4rem"},children:n(l,{options:[{label:"작성 완료",value:"작성 완료",name:"note"},{label:"작성 미완료",value:"작성 미완료",name:"note"}],onChange:a=>r(a.target.value),value:e})})}};var g,y,h;s.parameters={...s.parameters,docs:{...(g=s.parameters)==null?void 0:g.docs,source:{originalSource:`{ decorators: [Story =>
diff --git a/assets/RouteNav-Dgfqahe_.js b/assets/RouteNav-DeIolqf0.js similarity index 94% rename from assets/RouteNav-Dgfqahe_.js rename to assets/RouteNav-DeIolqf0.js index 4a9da3c66..64e4da37f 100644 --- a/assets/RouteNav-Dgfqahe_.js +++ b/assets/RouteNav-DeIolqf0.js @@ -1,4 +1,4 @@ -import{c as m,a as d,j as h}from"./emotion-react.browser.esm-DVCGPw0o.js";import{r as o}from"./index-B4Z6PsAH.js";import"./index-C_edrjnw.js";import{N as F,s as T,c as Z,b as j,a as A,d as B,e as I}from"./index-BZ6RFkQt.js";import{t as l}from"./theme-DwD7F4-e.js";import"./iframe-BnffqoK7.js";import{P as u}from"./path-DPor8ESZ.js";import{m as b}from"./proxy-4sgmHMJ7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9170ae10-943b-499e-955c-91a5cfe0490f",e._sentryDebugIdIdentifier="sentry-dbid-9170ae10-943b-499e-955c-91a5cfe0490f")}catch{}})();/** +import{c as m,a as d,j as h}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{r as o}from"./index-Bs6nXyGp.js";import"./index-BHRAuaXy.js";import{N as F,s as T,c as Z,b as j,a as A,d as B,e as I}from"./index-CuYyT4jL.js";import{t as l}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";import{P as u}from"./path-8_1M5Knd.js";import{m as b}from"./proxy-BfgkLHSP.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9170ae10-943b-499e-955c-91a5cfe0490f",e._sentryDebugIdIdentifier="sentry-dbid-9170ae10-943b-499e-955c-91a5cfe0490f")}catch{}})();/** * React Router DOM v6.24.1 * * Copyright (c) Remix Software Inc. diff --git a/assets/RouteNav.stories-C6fvwcUI.js b/assets/RouteNav.stories-B38Ukb7l.js similarity index 63% rename from assets/RouteNav.stories-C6fvwcUI.js rename to assets/RouteNav.stories-B38Ukb7l.js index 1a98924bd..ac37bc92a 100644 --- a/assets/RouteNav.stories-C6fvwcUI.js +++ b/assets/RouteNav.stories-B38Ukb7l.js @@ -1 +1 @@ -import{R as s}from"./RouteNav-Dgfqahe_.js";import"./iframe-BnffqoK7.js";import"./emotion-react.browser.esm-DVCGPw0o.js";import"./index-B4Z6PsAH.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./extends-ClQVCWlZ.js";import"./index-C_edrjnw.js";import"./index-BZ6RFkQt.js";import"./theme-DwD7F4-e.js";import"./path-DPor8ESZ.js";import"./proxy-4sgmHMJ7.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="fa2d85bd-0156-4de9-a8cb-5bb0312290dc",e._sentryDebugIdIdentifier="sentry-dbid-fa2d85bd-0156-4de9-a8cb-5bb0312290dc")}catch{}})();const w={title:"Shared/RouteNav",component:s,parameters:{layout:"centered"},tags:["autodocs"]},t={};var o,a,d;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:"{}",...(d=(a=t.parameters)==null?void 0:a.docs)==null?void 0:d.source}}};const I=["Default"];export{t as Default,I as __namedExportsOrder,w as default}; +import{R as s}from"./RouteNav-DeIolqf0.js";import"./iframe-AJyGuqY3.js";import"./emotion-react.browser.esm-Cyl1vPjg.js";import"./index-Bs6nXyGp.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./extends-ClQVCWlZ.js";import"./index-BHRAuaXy.js";import"./index-CuYyT4jL.js";import"./theme-Cuq_aI8Z.js";import"./path-8_1M5Knd.js";import"./proxy-BfgkLHSP.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="fa2d85bd-0156-4de9-a8cb-5bb0312290dc",e._sentryDebugIdIdentifier="sentry-dbid-fa2d85bd-0156-4de9-a8cb-5bb0312290dc")}catch{}})();const w={title:"Shared/RouteNav",component:s,parameters:{layout:"centered"},tags:["autodocs"]},t={};var o,a,d;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:"{}",...(d=(a=t.parameters)==null?void 0:a.docs)==null?void 0:d.source}}};const I=["Default"];export{t as Default,I as __namedExportsOrder,w as default}; diff --git a/assets/Select-MF-KBPgn.js b/assets/Select-0cv1h5wR.js similarity index 94% rename from assets/Select-MF-KBPgn.js rename to assets/Select-0cv1h5wR.js index 615801ece..e18bd169f 100644 --- a/assets/Select-MF-KBPgn.js +++ b/assets/Select-0cv1h5wR.js @@ -1 +1 @@ -import{c as n,j as c,a as s}from"./emotion-react.browser.esm-DVCGPw0o.js";import{r as l}from"./index-B4Z6PsAH.js";import{t}from"./theme-DwD7F4-e.js";import"./iframe-BnffqoK7.js";import{L as D}from"./Label-Dvf5dr16.js";import{s as _}from"./scroll-Cr_SEktn.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="da7af8ee-7f51-4ff6-a3f9-c8079157dc48",e._sentryDebugIdIdentifier="sentry-dbid-da7af8ee-7f51-4ff6-a3f9-c8079157dc48")}catch{}})();const k=e=>l.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M6 8L10 12L14 8",stroke:"#909090",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),C=e=>l.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M5.68765 7.60957L2.5199 3.64988C2.31038 3.38797 2.49685 3 2.83225 3L9.16775 3C9.50315 3 9.68962 3.38797 9.4801 3.64988L6.31235 7.60957C6.15222 7.80973 5.84778 7.80973 5.68765 7.60957Z",fill:"#2C3030"})),S=n({display:"flex",flexDirection:"column",gap:"0.4rem",position:"relative"}),L=n({position:"absolute",top:"100%",minWidth:"100%",width:"max-content",zIndex:t.zIndex.overlayHigh,backgroundColor:t.colors.white}),j=n({cursor:"pointer"}),R=({children:e,label:o,...i},d)=>c("div",{ref:d,css:S,...i,children:[o&&s(D,{id:o,children:o}),e]}),W=l.forwardRef(R),u=({onSelect:e,children:o,...i})=>s("li",{css:j,role:"button",tabIndex:0,onKeyDown:a=>{a.key==="Enter"&&(e==null||e())},onClick:e,...i,children:o});u.__docgenInfo={description:"",methods:[],displayName:"DropdownItem",props:{onSelect:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}},composes:["ComponentPropsWithoutRef"]};const w=({isOpen:e=!1,children:o,...i})=>e&&s("ul",{css:L,...i,children:o});w.__docgenInfo={description:"",methods:[],displayName:"DropdownList",props:{isOpen:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}}},composes:["ComponentPropsWithoutRef"]};const E=({as:e})=>e,f=Object.assign(W,{List:w,Item:u,Trigger:E}),T=e=>n({maxHeight:"30rem",top:"calc(100% + 0.2rem)",right:0,borderRadius:"8px",border:`1px solid ${t.colors.gray_200}`,boxShadow:e?t.shadow.shadow02:"none",overflowY:"auto",overscrollBehavior:"contain"}),$=e=>n({display:"flex",alignItems:"center",gap:e==="option"?"0.4rem":"1.6rem",padding:"1rem 1.2rem",margin:e==="option"?"0.4rem":"0.8rem",borderRadius:"8px","&:hover, &:focus":{color:t.colors.key_500,backgroundColor:t.colors.blue_100}},{"& > *":{...e==="option"||e==="user"?t.text.body08:t.text.body05}}),B=n({width:"3.2rem",height:"3.2rem",borderRadius:"50%",objectFit:"cover"}),K=n({display:"flex",flexDirection:"column",alignItems:"start",gap:"0.6rem",fontWeight:500,"& > span":{fontWeight:400,color:t.colors.gray_800}}),O=(e,o)=>n({display:"flex",alignItems:"center",height:"4.8rem",padding:"1.2rem 1rem",border:"none",backgroundColor:t.colors.white,whiteSpace:"nowrap","& > span":{...t.text.body06,width:"80%",textAlign:"start",textOverflow:"ellipsis",overflow:"hidden"}},e==="underline"?{borderBottom:`1px solid ${o?t.colors.key_500:t.colors.gray_400}`}:{borderRadius:"8px",boxShadow:e==="outline"?o?t.shadow.inset_focus:t.shadow.inset:"none"},e==="option"?{justifyContent:"flex-end",gap:"0.2rem",fontWeight:400,color:t.colors.gray_800}:{justifyContent:"space-between",gap:"0.8rem",fontWeight:500,color:o?t.colors.black:t.colors.gray_500}),m=e=>n({flexShrink:0,transform:e?"rotate(180deg)":"rotate(0)",transition:"all 0.2s ease-in"}),h=(e,o)=>Object.hasOwn(e,o),q=({variant:e="default",isOpen:o=!1,defaultValue:i,placeholder:d,label:a,onTrigger:y,onSelect:p,options:x,...b},v)=>{const[g,I]=l.useState(i||d);return c(f,{css:{width:"100%"},ref:v,role:"listbox",label:a,...b,children:[c("button",{onClick:y,css:O(e,g!==d),children:[s("span",{children:g}),e==="option"?s(C,{css:m(o),width:12,height:12}):s(k,{css:m(o),width:20,height:20})]}),s(f.List,{css:[T(o),_],isOpen:o,children:x.map(r=>c(f.Item,{css:$(e),onSelect:()=>{p==null||p(r.value),I(r.value)},children:[h(r,"profileUrl")&&s("img",{src:r.profileUrl,css:B,alt:`${r.value} profile`}),c("p",{css:K,children:[r.value,h(r,"description")&&s("span",{children:r.description})]}),h(r,"svg")&&r.svg]},r.value))})]})},U=l.forwardRef(q);export{U as S}; +import{c as n,j as c,a as s}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{r as l}from"./index-Bs6nXyGp.js";import{t}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";import{L as D}from"./Label-BPjTE68Y.js";import{s as _}from"./scroll-BeA4HMGQ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="da7af8ee-7f51-4ff6-a3f9-c8079157dc48",e._sentryDebugIdIdentifier="sentry-dbid-da7af8ee-7f51-4ff6-a3f9-c8079157dc48")}catch{}})();const k=e=>l.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M6 8L10 12L14 8",stroke:"#909090",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),C=e=>l.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M5.68765 7.60957L2.5199 3.64988C2.31038 3.38797 2.49685 3 2.83225 3L9.16775 3C9.50315 3 9.68962 3.38797 9.4801 3.64988L6.31235 7.60957C6.15222 7.80973 5.84778 7.80973 5.68765 7.60957Z",fill:"#2C3030"})),S=n({display:"flex",flexDirection:"column",gap:"0.4rem",position:"relative"}),L=n({position:"absolute",top:"100%",minWidth:"100%",width:"max-content",zIndex:t.zIndex.overlayHigh,backgroundColor:t.colors.white}),j=n({cursor:"pointer"}),R=({children:e,label:o,...i},d)=>c("div",{ref:d,css:S,...i,children:[o&&s(D,{id:o,children:o}),e]}),W=l.forwardRef(R),u=({onSelect:e,children:o,...i})=>s("li",{css:j,role:"button",tabIndex:0,onKeyDown:a=>{a.key==="Enter"&&(e==null||e())},onClick:e,...i,children:o});u.__docgenInfo={description:"",methods:[],displayName:"DropdownItem",props:{onSelect:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}},composes:["ComponentPropsWithoutRef"]};const w=({isOpen:e=!1,children:o,...i})=>e&&s("ul",{css:L,...i,children:o});w.__docgenInfo={description:"",methods:[],displayName:"DropdownList",props:{isOpen:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}}},composes:["ComponentPropsWithoutRef"]};const E=({as:e})=>e,f=Object.assign(W,{List:w,Item:u,Trigger:E}),T=e=>n({maxHeight:"30rem",top:"calc(100% + 0.2rem)",right:0,borderRadius:"8px",border:`1px solid ${t.colors.gray_200}`,boxShadow:e?t.shadow.shadow02:"none",overflowY:"auto",overscrollBehavior:"contain"}),$=e=>n({display:"flex",alignItems:"center",gap:e==="option"?"0.4rem":"1.6rem",padding:"1rem 1.2rem",margin:e==="option"?"0.4rem":"0.8rem",borderRadius:"8px","&:hover, &:focus":{color:t.colors.key_500,backgroundColor:t.colors.blue_100}},{"& > *":{...e==="option"||e==="user"?t.text.body08:t.text.body05}}),B=n({width:"3.2rem",height:"3.2rem",borderRadius:"50%",objectFit:"cover"}),K=n({display:"flex",flexDirection:"column",alignItems:"start",gap:"0.6rem",fontWeight:500,"& > span":{fontWeight:400,color:t.colors.gray_800}}),O=(e,o)=>n({display:"flex",alignItems:"center",height:"4.8rem",padding:"1.2rem 1rem",border:"none",backgroundColor:t.colors.white,whiteSpace:"nowrap","& > span":{...t.text.body06,width:"80%",textAlign:"start",textOverflow:"ellipsis",overflow:"hidden"}},e==="underline"?{borderBottom:`1px solid ${o?t.colors.key_500:t.colors.gray_400}`}:{borderRadius:"8px",boxShadow:e==="outline"?o?t.shadow.inset_focus:t.shadow.inset:"none"},e==="option"?{justifyContent:"flex-end",gap:"0.2rem",fontWeight:400,color:t.colors.gray_800}:{justifyContent:"space-between",gap:"0.8rem",fontWeight:500,color:o?t.colors.black:t.colors.gray_500}),m=e=>n({flexShrink:0,transform:e?"rotate(180deg)":"rotate(0)",transition:"all 0.2s ease-in"}),h=(e,o)=>Object.hasOwn(e,o),q=({variant:e="default",isOpen:o=!1,defaultValue:i,placeholder:d,label:a,onTrigger:y,onSelect:p,options:x,...b},v)=>{const[g,I]=l.useState(i||d);return c(f,{css:{width:"100%"},ref:v,role:"listbox",label:a,...b,children:[c("button",{onClick:y,css:O(e,g!==d),children:[s("span",{children:g}),e==="option"?s(C,{css:m(o),width:12,height:12}):s(k,{css:m(o),width:20,height:20})]}),s(f.List,{css:[T(o),_],isOpen:o,children:x.map(r=>c(f.Item,{css:$(e),onSelect:()=>{p==null||p(r.value),I(r.value)},children:[h(r,"profileUrl")&&s("img",{src:r.profileUrl,css:B,alt:`${r.value} profile`}),c("p",{css:K,children:[r.value,h(r,"description")&&s("span",{children:r.description})]}),h(r,"svg")&&r.svg]},r.value))})]})},U=l.forwardRef(q);export{U as S}; diff --git a/assets/Select.stories-SZ88fAI0.js b/assets/Select.stories-DSpHOza-.js similarity index 94% rename from assets/Select.stories-SZ88fAI0.js rename to assets/Select.stories-DSpHOza-.js index d162fe547..bd9ea7f13 100644 --- a/assets/Select.stories-SZ88fAI0.js +++ b/assets/Select.stories-DSpHOza-.js @@ -1,4 +1,4 @@ -import{a as t}from"./emotion-react.browser.esm-DVCGPw0o.js";import{r as d}from"./index-B4Z6PsAH.js";import{S as p}from"./Select-MF-KBPgn.js";import"./iframe-BnffqoK7.js";import{u}from"./useOutsideClick-COUwwguf.js";import{u as g}from"./useOverlay-jcCv9x_t.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./theme-DwD7F4-e.js";import"./Label-Dvf5dr16.js";import"./scroll-Cr_SEktn.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="4f298c02-59b2-48cd-9fdd-1caae10b1e5f",e._sentryDebugIdIdentifier="sentry-dbid-4f298c02-59b2-48cd-9fdd-1caae10b1e5f")}catch{}})();const I=e=>d.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M5.5 8.005V2L6.5 2V8.005H8L6 10L4 8.005H5.5Z",fill:"#2C3030"})),A=e=>d.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M5.5 3.995V10H6.5V3.995H8L6 2L4 3.995H5.5Z",fill:"#2C3030"})),P={title:"Common/Select",component:p,parameters:{layout:"centered"},args:{options:[{value:"option 1"},{value:"option 2"},{value:"최주용 남다은 이채원 김규홍 정보운 김보미"}]}},m={decorators:[e=>t("div",{css:{width:"24rem"},children:t(e,{})})],render:e=>{const{isOpen:o,close:r,toggle:s}=g(),l=u(r),[n,c]=d.useState(""),a=i=>{c(i),r()};return t(p,{"aria-label":`선택된 아이템: ${n}`,variant:"default",...e,ref:l,isOpen:o,placeholder:"Primary Select",onTrigger:s,onSelect:a})}},S={decorators:[e=>t("div",{css:{width:"24rem"},children:t(e,{})})],render:e=>{const{isOpen:o,close:r,toggle:s}=g(),l=u(r),[n,c]=d.useState(""),a=$=>{c($),r()},i=[{value:"Option 1",description:"WEB",profileUrl:"https://images.unsplash.com/photo-1728585255223-c158ab095e1f?w=900&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxmZWF0dXJlZC1waG90b3MtZmVlZHwzfHx8ZW58MHx8fHx8"},{value:"Option 2",description:"SERVER",profileUrl:"https://images.unsplash.com/photo-1728585255223-c158ab095e1f?w=900&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxmZWF0dXJlZC1waG90b3MtZmVlZHwzfHx8ZW58MHx8fHx8"}];return t(p,{"aria-label":`선택된 아이템: ${n}`,label:"아웃라인 셀렉트",variant:"user",...e,ref:l,isOpen:o,placeholder:"Outline Select",onTrigger:s,onSelect:a,options:i})}},f={render:e=>{const{isOpen:o,close:r,toggle:s}=g(),l=u(r),[n,c]=d.useState(""),a=i=>{c(i),r()};return t(p,{"aria-label":`선택된 아이템: ${n}`,variant:"outline",...e,ref:l,isOpen:o,placeholder:"Scroll Select",onTrigger:s,onSelect:a})}},v={decorators:[e=>t("div",{css:{width:"24rem"},children:t(e,{})})],render:()=>{const{isOpen:e,close:o,toggle:r}=g(),[s,l]=d.useState(""),n=u(o),c=i=>{l(i),o()},a=[{value:"Option 1"},{value:"Option 2"},{value:"Option 3"},{value:"Option 4"},{value:"Option 5"},{value:"Option 6"},{value:"Option 7"},{value:"Option 8"},{value:"Option 9"}];return t(p,{"aria-label":`선택된 아이템: ${s}`,variant:"outline",options:a,ref:n,placeholder:"최근 업로드 순",isOpen:e,onTrigger:()=>r(),onSelect:c})}},O={decorators:[e=>t("div",{css:{width:"12rem"},children:t(e,{})})],render:()=>{const{isOpen:e,close:o,toggle:r}=g(),[s,l]=d.useState(""),n=u(o),c=i=>{l(i),o()},a=[{value:"최근 정렬 순",svg:t(A,{})},{value:"과거 정렬 순대를 먹을래 말래",svg:t(I,{})}];return t(p,{"aria-label":`선택된 아이템: ${s}`,variant:"option",options:a,ref:n,placeholder:"최근 업로드 순",isOpen:e,onTrigger:()=>r(),onSelect:c})}};var h,w,b;m.parameters={...m.parameters,docs:{...(h=m.parameters)==null?void 0:h.docs,source:{originalSource:`{ +import{a as t}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{r as d}from"./index-Bs6nXyGp.js";import{S as p}from"./Select-0cv1h5wR.js";import"./iframe-AJyGuqY3.js";import{u}from"./useOutsideClick-CEpXkKWK.js";import{u as g}from"./useOverlay-COpOggKz.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./theme-Cuq_aI8Z.js";import"./Label-BPjTE68Y.js";import"./scroll-BeA4HMGQ.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="4f298c02-59b2-48cd-9fdd-1caae10b1e5f",e._sentryDebugIdIdentifier="sentry-dbid-4f298c02-59b2-48cd-9fdd-1caae10b1e5f")}catch{}})();const I=e=>d.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M5.5 8.005V2L6.5 2V8.005H8L6 10L4 8.005H5.5Z",fill:"#2C3030"})),A=e=>d.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M5.5 3.995V10H6.5V3.995H8L6 2L4 3.995H5.5Z",fill:"#2C3030"})),P={title:"Common/Select",component:p,parameters:{layout:"centered"},args:{options:[{value:"option 1"},{value:"option 2"},{value:"최주용 남다은 이채원 김규홍 정보운 김보미"}]}},m={decorators:[e=>t("div",{css:{width:"24rem"},children:t(e,{})})],render:e=>{const{isOpen:o,close:r,toggle:s}=g(),l=u(r),[n,c]=d.useState(""),a=i=>{c(i),r()};return t(p,{"aria-label":`선택된 아이템: ${n}`,variant:"default",...e,ref:l,isOpen:o,placeholder:"Primary Select",onTrigger:s,onSelect:a})}},S={decorators:[e=>t("div",{css:{width:"24rem"},children:t(e,{})})],render:e=>{const{isOpen:o,close:r,toggle:s}=g(),l=u(r),[n,c]=d.useState(""),a=$=>{c($),r()},i=[{value:"Option 1",description:"WEB",profileUrl:"https://images.unsplash.com/photo-1728585255223-c158ab095e1f?w=900&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxmZWF0dXJlZC1waG90b3MtZmVlZHwzfHx8ZW58MHx8fHx8"},{value:"Option 2",description:"SERVER",profileUrl:"https://images.unsplash.com/photo-1728585255223-c158ab095e1f?w=900&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxmZWF0dXJlZC1waG90b3MtZmVlZHwzfHx8ZW58MHx8fHx8"}];return t(p,{"aria-label":`선택된 아이템: ${n}`,label:"아웃라인 셀렉트",variant:"user",...e,ref:l,isOpen:o,placeholder:"Outline Select",onTrigger:s,onSelect:a,options:i})}},f={render:e=>{const{isOpen:o,close:r,toggle:s}=g(),l=u(r),[n,c]=d.useState(""),a=i=>{c(i),r()};return t(p,{"aria-label":`선택된 아이템: ${n}`,variant:"outline",...e,ref:l,isOpen:o,placeholder:"Scroll Select",onTrigger:s,onSelect:a})}},v={decorators:[e=>t("div",{css:{width:"24rem"},children:t(e,{})})],render:()=>{const{isOpen:e,close:o,toggle:r}=g(),[s,l]=d.useState(""),n=u(o),c=i=>{l(i),o()},a=[{value:"Option 1"},{value:"Option 2"},{value:"Option 3"},{value:"Option 4"},{value:"Option 5"},{value:"Option 6"},{value:"Option 7"},{value:"Option 8"},{value:"Option 9"}];return t(p,{"aria-label":`선택된 아이템: ${s}`,variant:"outline",options:a,ref:n,placeholder:"최근 업로드 순",isOpen:e,onTrigger:()=>r(),onSelect:c})}},O={decorators:[e=>t("div",{css:{width:"12rem"},children:t(e,{})})],render:()=>{const{isOpen:e,close:o,toggle:r}=g(),[s,l]=d.useState(""),n=u(o),c=i=>{l(i),o()},a=[{value:"최근 정렬 순",svg:t(A,{})},{value:"과거 정렬 순대를 먹을래 말래",svg:t(I,{})}];return t(p,{"aria-label":`선택된 아이템: ${s}`,variant:"option",options:a,ref:n,placeholder:"최근 업로드 순",isOpen:e,onTrigger:()=>r(),onSelect:c})}};var h,w,b;m.parameters={...m.parameters,docs:{...(h=m.parameters)==null?void 0:h.docs,source:{originalSource:`{ decorators: [Story =>
diff --git a/assets/SupportingText-_IVHGPES.js b/assets/SupportingText-C1HExhiQ.js similarity index 88% rename from assets/SupportingText-_IVHGPES.js rename to assets/SupportingText-C1HExhiQ.js index 2ff5e60db..a8bf4e542 100644 --- a/assets/SupportingText-_IVHGPES.js +++ b/assets/SupportingText-C1HExhiQ.js @@ -1 +1 @@ -import{c as a,a as n}from"./emotion-react.browser.esm-DVCGPw0o.js";import{t}from"./theme-DwD7F4-e.js";import"./iframe-BnffqoK7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="a66ed4a7-21d1-4770-8e28-7f523ec2987e",e._sentryDebugIdIdentifier="sentry-dbid-a66ed4a7-21d1-4770-8e28-7f523ec2987e")}catch{}})();const d=(e,s)=>{const o=e?t.colors.sementic_red:s?t.colors.sementic_success:t.colors.gray_500;return a({color:o,paddingLeft:"0.8rem",wordBreak:"break-word",...t.text.body09,whiteSpace:"pre-line"})},i=({isError:e=!1,isSuccess:s=!1,children:o,...r})=>n("p",{...r,css:d(e,s),children:o});i.__docgenInfo={description:"",methods:[],displayName:"SupportingText",props:{isError:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},isSuccess:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}}},composes:["ComponentPropsWithoutRef"]};export{i as S}; +import{c as a,a as n}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{t}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="a66ed4a7-21d1-4770-8e28-7f523ec2987e",e._sentryDebugIdIdentifier="sentry-dbid-a66ed4a7-21d1-4770-8e28-7f523ec2987e")}catch{}})();const d=(e,s)=>{const o=e?t.colors.sementic_red:s?t.colors.sementic_success:t.colors.gray_500;return a({color:o,paddingLeft:"0.8rem",wordBreak:"break-word",...t.text.body09,whiteSpace:"pre-line"})},i=({isError:e=!1,isSuccess:s=!1,children:o,...r})=>n("p",{...r,css:d(e,s),children:o});i.__docgenInfo={description:"",methods:[],displayName:"SupportingText",props:{isError:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},isSuccess:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}}},composes:["ComponentPropsWithoutRef"]};export{i as S}; diff --git a/assets/Switch.stories-BzOCKOrq.js b/assets/Switch.stories-B4J4BIVE.js similarity index 96% rename from assets/Switch.stories-BzOCKOrq.js rename to assets/Switch.stories-B4J4BIVE.js index db3fbc07f..6006ada1a 100644 --- a/assets/Switch.stories-BzOCKOrq.js +++ b/assets/Switch.stories-B4J4BIVE.js @@ -1,4 +1,4 @@ -import{c as h,j as C,a}from"./emotion-react.browser.esm-DVCGPw0o.js";import{r as s}from"./index-B4Z6PsAH.js";import{t as r}from"./theme-DwD7F4-e.js";import"./iframe-BnffqoK7.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-XnwbWaTF.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c204bda0-813e-4a71-acb3-93610f963a0a",e._sentryDebugIdIdentifier="sentry-dbid-c204bda0-813e-4a71-acb3-93610f963a0a")}catch{}})();const y=e=>s.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M2.68182 2C2.50099 2 2.32757 2.07024 2.1997 2.19526C2.07183 2.32029 2 2.48986 2 2.66667V6.66667C2 6.84348 2.07183 7.01305 2.1997 7.13807C2.32757 7.2631 2.50099 7.33333 2.68182 7.33333H6.63636C6.81719 7.33333 6.99062 7.2631 7.11848 7.13807C7.24635 7.01305 7.31818 6.84348 7.31818 6.66667V2.66667C7.31818 2.48986 7.24635 2.32029 7.11848 2.19526C6.99062 2.07024 6.81719 2 6.63636 2H2.68182ZM3.36364 6V3.33333H5.95454V6H3.36364ZM2.68182 8.66667C2.50099 8.66667 2.32757 8.7369 2.1997 8.86193C2.07183 8.98695 2 9.15652 2 9.33333V13.3333C2 13.5101 2.07183 13.6797 2.1997 13.8047C2.32757 13.9298 2.50099 14 2.68182 14H6.63636C6.81719 14 6.99062 13.9298 7.11848 13.8047C7.24635 13.6797 7.31818 13.5101 7.31818 13.3333V9.33333C7.31818 9.15652 7.24635 8.98695 7.11848 8.86193C6.99062 8.7369 6.81719 8.66667 6.63636 8.66667H2.68182ZM3.36364 12.6667V10H5.95454V12.6667H3.36364ZM8.68182 2.66667C8.68182 2.48986 8.75365 2.32029 8.88152 2.19526C9.00938 2.07024 9.18281 2 9.36364 2H13.3182C13.499 2 13.6724 2.07024 13.8003 2.19526C13.9282 2.32029 14 2.48986 14 2.66667V6.66667C14 6.84348 13.9282 7.01305 13.8003 7.13807C13.6724 7.2631 13.499 7.33333 13.3182 7.33333H9.36364C9.18281 7.33333 9.00938 7.2631 8.88152 7.13807C8.75365 7.01305 8.68182 6.84348 8.68182 6.66667V2.66667ZM10.0455 3.33333V6H12.6364V3.33333H10.0455ZM9.36364 8.66667C9.18281 8.66667 9.00938 8.7369 8.88152 8.86193C8.75365 8.98695 8.68182 9.15652 8.68182 9.33333V13.3333C8.68182 13.5101 8.75365 13.6797 8.88152 13.8047C9.00938 13.9298 9.18281 14 9.36364 14H13.3182C13.499 14 13.6724 13.9298 13.8003 13.8047C13.9282 13.6797 14 13.5101 14 13.3333V9.33333C14 9.15652 13.9282 8.98695 13.8003 8.86193C13.6724 8.7369 13.499 8.66667 13.3182 8.66667H9.36364ZM10.0455 12.6667V10H12.6364V12.6667H10.0455Z",fill:"#909090"})),w=e=>s.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M2 3H14M2 8H14M2 13H14",stroke:"#909090",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),V=h({display:"flex"}),u=(e,t)=>{const n=t?1:1.6,o=t?r.colors.gray_100:r.colors.white,S={display:"flex",gap:"0.2rem",padding:`0.8rem ${n}rem`,width:"100%",backgroundColor:o,borderTopLeftRadius:e==="left"?"100px":"none",borderBottomLeftRadius:e==="left"?"100px":"none",borderTopRightRadius:e==="right"?"100px":"none",borderBottomRightRadius:e==="right"?"100px":"none",border:`1px solid ${r.colors.gray_200}`,borderRight:e==="left"?"none":`1px solid ${r.colors.gray_200}`},c=t&&e==="left"?{content:'"✓"',display:"flex",justifyContent:"center",alignItems:"center",width:"1.6rem",height:"1.6rem",fontSize:"18px",color:r.colors.gray_800}:{},m=t&&e==="right"?{content:'"✓"',display:"flex",justifyContent:"center",alignItems:"center",width:"1.6rem",height:"1.6rem",fontSize:"18px",color:r.colors.gray_800}:{};return{...S,...c&&{"::before":c},...m&&{"::after":m}}},d=(e,t)=>h({width:"1.6rem",height:"1.6rem"},e&&{"& > path":{fill:t==="fill"?r.colors.gray_800:"",stroke:t==="stroke"?r.colors.gray_800:""}}),i=({status:e="left",LeftIcon:t,onSwitchChange:n,RightIcon:o})=>C("div",{role:"switch","aria-checked":e==="left",css:V,children:[a("button",{css:u("left",e==="left"),onClick:()=>{n("left")},children:a(t.Icon,{css:d(e==="left",t.mode)})}),a("button",{css:u("right",e==="right"),onClick:()=>{n("right")},children:a(o.Icon,{css:d(e==="right",o.mode)})})]});i.__docgenInfo={description:"",methods:[],displayName:"Switch",props:{status:{required:!1,tsType:{name:"union",raw:"'left' | 'right'",elements:[{name:"literal",value:"'left'"},{name:"literal",value:"'right'"}]},description:"",defaultValue:{value:"'left'",computed:!1}},LeftIcon:{required:!0,tsType:{name:"signature",type:"object",raw:`{ +import{c as h,j as C,a}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{r as s}from"./index-Bs6nXyGp.js";import{t as r}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c204bda0-813e-4a71-acb3-93610f963a0a",e._sentryDebugIdIdentifier="sentry-dbid-c204bda0-813e-4a71-acb3-93610f963a0a")}catch{}})();const y=e=>s.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M2.68182 2C2.50099 2 2.32757 2.07024 2.1997 2.19526C2.07183 2.32029 2 2.48986 2 2.66667V6.66667C2 6.84348 2.07183 7.01305 2.1997 7.13807C2.32757 7.2631 2.50099 7.33333 2.68182 7.33333H6.63636C6.81719 7.33333 6.99062 7.2631 7.11848 7.13807C7.24635 7.01305 7.31818 6.84348 7.31818 6.66667V2.66667C7.31818 2.48986 7.24635 2.32029 7.11848 2.19526C6.99062 2.07024 6.81719 2 6.63636 2H2.68182ZM3.36364 6V3.33333H5.95454V6H3.36364ZM2.68182 8.66667C2.50099 8.66667 2.32757 8.7369 2.1997 8.86193C2.07183 8.98695 2 9.15652 2 9.33333V13.3333C2 13.5101 2.07183 13.6797 2.1997 13.8047C2.32757 13.9298 2.50099 14 2.68182 14H6.63636C6.81719 14 6.99062 13.9298 7.11848 13.8047C7.24635 13.6797 7.31818 13.5101 7.31818 13.3333V9.33333C7.31818 9.15652 7.24635 8.98695 7.11848 8.86193C6.99062 8.7369 6.81719 8.66667 6.63636 8.66667H2.68182ZM3.36364 12.6667V10H5.95454V12.6667H3.36364ZM8.68182 2.66667C8.68182 2.48986 8.75365 2.32029 8.88152 2.19526C9.00938 2.07024 9.18281 2 9.36364 2H13.3182C13.499 2 13.6724 2.07024 13.8003 2.19526C13.9282 2.32029 14 2.48986 14 2.66667V6.66667C14 6.84348 13.9282 7.01305 13.8003 7.13807C13.6724 7.2631 13.499 7.33333 13.3182 7.33333H9.36364C9.18281 7.33333 9.00938 7.2631 8.88152 7.13807C8.75365 7.01305 8.68182 6.84348 8.68182 6.66667V2.66667ZM10.0455 3.33333V6H12.6364V3.33333H10.0455ZM9.36364 8.66667C9.18281 8.66667 9.00938 8.7369 8.88152 8.86193C8.75365 8.98695 8.68182 9.15652 8.68182 9.33333V13.3333C8.68182 13.5101 8.75365 13.6797 8.88152 13.8047C9.00938 13.9298 9.18281 14 9.36364 14H13.3182C13.499 14 13.6724 13.9298 13.8003 13.8047C13.9282 13.6797 14 13.5101 14 13.3333V9.33333C14 9.15652 13.9282 8.98695 13.8003 8.86193C13.6724 8.7369 13.499 8.66667 13.3182 8.66667H9.36364ZM10.0455 12.6667V10H12.6364V12.6667H10.0455Z",fill:"#909090"})),w=e=>s.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M2 3H14M2 8H14M2 13H14",stroke:"#909090",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),V=h({display:"flex"}),u=(e,t)=>{const n=t?1:1.6,o=t?r.colors.gray_100:r.colors.white,S={display:"flex",gap:"0.2rem",padding:`0.8rem ${n}rem`,width:"100%",backgroundColor:o,borderTopLeftRadius:e==="left"?"100px":"none",borderBottomLeftRadius:e==="left"?"100px":"none",borderTopRightRadius:e==="right"?"100px":"none",borderBottomRightRadius:e==="right"?"100px":"none",border:`1px solid ${r.colors.gray_200}`,borderRight:e==="left"?"none":`1px solid ${r.colors.gray_200}`},c=t&&e==="left"?{content:'"✓"',display:"flex",justifyContent:"center",alignItems:"center",width:"1.6rem",height:"1.6rem",fontSize:"18px",color:r.colors.gray_800}:{},m=t&&e==="right"?{content:'"✓"',display:"flex",justifyContent:"center",alignItems:"center",width:"1.6rem",height:"1.6rem",fontSize:"18px",color:r.colors.gray_800}:{};return{...S,...c&&{"::before":c},...m&&{"::after":m}}},d=(e,t)=>h({width:"1.6rem",height:"1.6rem"},e&&{"& > path":{fill:t==="fill"?r.colors.gray_800:"",stroke:t==="stroke"?r.colors.gray_800:""}}),i=({status:e="left",LeftIcon:t,onSwitchChange:n,RightIcon:o})=>C("div",{role:"switch","aria-checked":e==="left",css:V,children:[a("button",{css:u("left",e==="left"),onClick:()=>{n("left")},children:a(t.Icon,{css:d(e==="left",t.mode)})}),a("button",{css:u("right",e==="right"),onClick:()=>{n("right")},children:a(o.Icon,{css:d(e==="right",o.mode)})})]});i.__docgenInfo={description:"",methods:[],displayName:"Switch",props:{status:{required:!1,tsType:{name:"union",raw:"'left' | 'right'",elements:[{name:"literal",value:"'left'"},{name:"literal",value:"'right'"}]},description:"",defaultValue:{value:"'left'",computed:!1}},LeftIcon:{required:!0,tsType:{name:"signature",type:"object",raw:`{ Icon: FunctionComponent>; mode: 'fill' | 'stroke'; }`,signature:{properties:[{key:"Icon",value:{name:"FunctionComponent",elements:[{name:"SVGProps",elements:[{name:"SVGSVGElement"}],raw:"SVGProps"}],raw:"FunctionComponent>",required:!0}},{key:"mode",value:{name:"union",raw:"'fill' | 'stroke'",elements:[{name:"literal",value:"'fill'"},{name:"literal",value:"'stroke'"}],required:!0}}]}},description:""},RightIcon:{required:!0,tsType:{name:"signature",type:"object",raw:`{ diff --git a/assets/TabButton-B-1B9T34.js b/assets/TabButton-7djQDVd5.js similarity index 89% rename from assets/TabButton-B-1B9T34.js rename to assets/TabButton-7djQDVd5.js index 0c22f1e96..887f98b7f 100644 --- a/assets/TabButton-B-1B9T34.js +++ b/assets/TabButton-7djQDVd5.js @@ -1 +1 @@ -import{c as n,a as i}from"./emotion-react.browser.esm-DVCGPw0o.js";import{t as o}from"./theme-DwD7F4-e.js";import"./iframe-BnffqoK7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fa731788-a210-4229-881e-667688220abd",e._sentryDebugIdIdentifier="sentry-dbid-fa731788-a210-4229-881e-667688220abd")}catch{}})();const g=n({display:"flex"}),u=()=>n({display:"flex",justifyContent:"center",alignItems:"center",width:"100%",whiteSpace:"nowrap",cursor:"pointer"}),c=e=>({round:n({gap:"0.8rem",padding:"1.6rem 2rem",...o.text.body06,fontWeight:500,border:"none",borderRadius:"8px"})})[e],f=(e,t)=>({round:e?n({backgroundColor:o.colors.gray_100,color:o.colors.black,fontWeight:"600",pointerEvents:"none"}):n({backgroundColor:o.colors.white,color:o.colors.gray_800,fontWeight:"500"})})[t],p=({tabId:e=0,children:t,isSelected:a=!1,onTabClick:l=()=>{},variant:r="round",...d})=>{const s=()=>{l(e)};return i("li",{role:"tab",tabIndex:0,"aria-selected":a,"aria-controls":`panel${e}`,onClick:s,onKeyDown:s,css:[u,c(r),f(a,r)],...d,children:t},e)};p.__docgenInfo={description:"",methods:[],displayName:"TabButton",props:{tabId:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"0",computed:!1}},isSelected:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},onTabClick:{required:!1,tsType:{name:"signature",type:"function",raw:"(tabId: number) => void",signature:{arguments:[{type:{name:"number"},name:"tabId"}],return:{name:"void"}}},description:"",defaultValue:{value:"() => {}",computed:!1}},variant:{required:!1,tsType:{name:"literal",value:"'round'"},description:"",defaultValue:{value:"'round'",computed:!1}}},composes:["ComponentPropsWithoutRef"]};export{p as T,g as t}; +import{c as n,a as i}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{t as o}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fa731788-a210-4229-881e-667688220abd",e._sentryDebugIdIdentifier="sentry-dbid-fa731788-a210-4229-881e-667688220abd")}catch{}})();const g=n({display:"flex"}),u=()=>n({display:"flex",justifyContent:"center",alignItems:"center",width:"100%",whiteSpace:"nowrap",cursor:"pointer"}),c=e=>({round:n({gap:"0.8rem",padding:"1.6rem 2rem",...o.text.body06,fontWeight:500,border:"none",borderRadius:"8px"})})[e],f=(e,t)=>({round:e?n({backgroundColor:o.colors.gray_100,color:o.colors.black,fontWeight:"600",pointerEvents:"none"}):n({backgroundColor:o.colors.white,color:o.colors.gray_800,fontWeight:"500"})})[t],p=({tabId:e=0,children:t,isSelected:a=!1,onTabClick:l=()=>{},variant:r="round",...d})=>{const s=()=>{l(e)};return i("li",{role:"tab",tabIndex:0,"aria-selected":a,"aria-controls":`panel${e}`,onClick:s,onKeyDown:s,css:[u,c(r),f(a,r)],...d,children:t},e)};p.__docgenInfo={description:"",methods:[],displayName:"TabButton",props:{tabId:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"0",computed:!1}},isSelected:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},onTabClick:{required:!1,tsType:{name:"signature",type:"function",raw:"(tabId: number) => void",signature:{arguments:[{type:{name:"number"},name:"tabId"}],return:{name:"void"}}},description:"",defaultValue:{value:"() => {}",computed:!1}},variant:{required:!1,tsType:{name:"literal",value:"'round'"},description:"",defaultValue:{value:"'round'",computed:!1}}},composes:["ComponentPropsWithoutRef"]};export{p as T,g as t}; diff --git a/assets/TabButton.stories-BCdiYlZz.js b/assets/TabButton.stories-DrzmEdB4.js similarity index 79% rename from assets/TabButton.stories-BCdiYlZz.js rename to assets/TabButton.stories-DrzmEdB4.js index 1e80a8661..e60402170 100644 --- a/assets/TabButton.stories-BCdiYlZz.js +++ b/assets/TabButton.stories-DrzmEdB4.js @@ -1,4 +1,4 @@ -import{T as s}from"./TabButton-B-1B9T34.js";import"./iframe-BnffqoK7.js";import"./emotion-react.browser.esm-DVCGPw0o.js";import"./index-B4Z6PsAH.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./extends-ClQVCWlZ.js";import"./theme-DwD7F4-e.js";import"../sb-preview/runtime.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="6b90c40d-04ff-4cb9-a434-a933719a43c0",t._sentryDebugIdIdentifier="sentry-dbid-6b90c40d-04ff-4cb9-a434-a933719a43c0")}catch{}})();const g={title:"Common/TabButton",component:s,parameters:{layout:"centered"},tags:["autodocs"],args:{children:"TabButton",tabId:0,isSelected:!1}},o={args:{variant:"round"},argTypes:{variant:{control:"radio",options:["round"]}}};var n,a,e;o.parameters={...o.parameters,docs:{...(n=o.parameters)==null?void 0:n.docs,source:{originalSource:`{ +import{T as s}from"./TabButton-7djQDVd5.js";import"./iframe-AJyGuqY3.js";import"./emotion-react.browser.esm-Cyl1vPjg.js";import"./index-Bs6nXyGp.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./extends-ClQVCWlZ.js";import"./theme-Cuq_aI8Z.js";import"../sb-preview/runtime.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="6b90c40d-04ff-4cb9-a434-a933719a43c0",t._sentryDebugIdIdentifier="sentry-dbid-6b90c40d-04ff-4cb9-a434-a933719a43c0")}catch{}})();const g={title:"Common/TabButton",component:s,parameters:{layout:"centered"},tags:["autodocs"],args:{children:"TabButton",tabId:0,isSelected:!1}},o={args:{variant:"round"},argTypes:{variant:{control:"radio",options:["round"]}}};var n,a,e;o.parameters={...o.parameters,docs:{...(n=o.parameters)==null?void 0:n.docs,source:{originalSource:`{ args: { variant: 'round' }, diff --git a/assets/Tabs.stories-CPuOSPvd.js b/assets/Tabs.stories-X1x1tC5D.js similarity index 89% rename from assets/Tabs.stories-CPuOSPvd.js rename to assets/Tabs.stories-X1x1tC5D.js index 7181c8dcf..77b16a9de 100644 --- a/assets/Tabs.stories-CPuOSPvd.js +++ b/assets/Tabs.stories-X1x1tC5D.js @@ -1,4 +1,4 @@ -import{a as n,F as y,j as i}from"./emotion-react.browser.esm-DVCGPw0o.js";import{R as p,r as c}from"./index-B4Z6PsAH.js";import{t as g,T as v}from"./TabButton-B-1B9T34.js";import"./iframe-BnffqoK7.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./theme-DwD7F4-e.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="54954799-fca9-477c-9861-0f46182ef33a",e._sentryDebugIdIdentifier="sentry-dbid-54954799-fca9-477c-9861-0f46182ef33a")}catch{}})();const T=({children:e,selectedTab:t,onTabClick:a,...r})=>n("nav",{children:n("ul",{role:"tablist",css:g,...r,children:p.Children.toArray(e).map((s,l)=>c.cloneElement(s,{tabId:l,isSelected:t===l,onTabClick:a}))})});T.__docgenInfo={description:"",methods:[],displayName:"TabList",props:{selectedTab:{required:!0,tsType:{name:"number"},description:""},onTabClick:{required:!0,tsType:{name:"signature",type:"function",raw:"(tabId: number) => void",signature:{arguments:[{type:{name:"number"},name:"tabId"}],return:{name:"void"}}},description:""}},composes:["ComponentPropsWithoutRef"]};const f=({children:e,selectedTab:t,...a})=>n("div",{...a,children:p.Children.toArray(e).map((r,s)=>c.cloneElement(r,{role:"tabpanel",id:`panel${s}`,ariaLabelledby:s})).filter((r,s)=>s===t)});f.__docgenInfo={description:"",methods:[],displayName:"TabPanel",props:{selectedTab:{required:!0,tsType:{name:"number"},description:""}},composes:["ComponentPropsWithoutRef"]};const h=({children:e,...t})=>n("section",{...t,children:e});h.__docgenInfo={description:"",methods:[],displayName:"Tabs"};const o=Object.assign(h,{Button:v,List:T,Panel:f}),w={title:"Common/Tab",component:o,parameters:{layout:"centered"},tags:["autodocs"],args:{children:n(y,{})}},d={render:()=>{const[e,t]=c.useState(0),a=r=>{t(r)};return i(o,{children:[i(o.List,{selectedTab:e,onTabClick:a,children:[n(o.Button,{variant:"round",children:"선택된 블록"}),n(o.Button,{variant:"round",children:"전체 문서"})]}),i(o.Panel,{selectedTab:e,children:[n("div",{children:"1번 탭"}),n("div",{children:"2번 탭"})]})]})}};var b,u,m;d.parameters={...d.parameters,docs:{...(b=d.parameters)==null?void 0:b.docs,source:{originalSource:`{ +import{a as n,F as y,j as i}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{R as p,r as c}from"./index-Bs6nXyGp.js";import{t as g,T as v}from"./TabButton-7djQDVd5.js";import"./iframe-AJyGuqY3.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./theme-Cuq_aI8Z.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="54954799-fca9-477c-9861-0f46182ef33a",e._sentryDebugIdIdentifier="sentry-dbid-54954799-fca9-477c-9861-0f46182ef33a")}catch{}})();const T=({children:e,selectedTab:t,onTabClick:a,...r})=>n("nav",{children:n("ul",{role:"tablist",css:g,...r,children:p.Children.toArray(e).map((s,l)=>c.cloneElement(s,{tabId:l,isSelected:t===l,onTabClick:a}))})});T.__docgenInfo={description:"",methods:[],displayName:"TabList",props:{selectedTab:{required:!0,tsType:{name:"number"},description:""},onTabClick:{required:!0,tsType:{name:"signature",type:"function",raw:"(tabId: number) => void",signature:{arguments:[{type:{name:"number"},name:"tabId"}],return:{name:"void"}}},description:""}},composes:["ComponentPropsWithoutRef"]};const f=({children:e,selectedTab:t,...a})=>n("div",{...a,children:p.Children.toArray(e).map((r,s)=>c.cloneElement(r,{role:"tabpanel",id:`panel${s}`,ariaLabelledby:s})).filter((r,s)=>s===t)});f.__docgenInfo={description:"",methods:[],displayName:"TabPanel",props:{selectedTab:{required:!0,tsType:{name:"number"},description:""}},composes:["ComponentPropsWithoutRef"]};const h=({children:e,...t})=>n("section",{...t,children:e});h.__docgenInfo={description:"",methods:[],displayName:"Tabs"};const o=Object.assign(h,{Button:v,List:T,Panel:f}),w={title:"Common/Tab",component:o,parameters:{layout:"centered"},tags:["autodocs"],args:{children:n(y,{})}},d={render:()=>{const[e,t]=c.useState(0),a=r=>{t(r)};return i(o,{children:[i(o.List,{selectedTab:e,onTabClick:a,children:[n(o.Button,{variant:"round",children:"선택된 블록"}),n(o.Button,{variant:"round",children:"전체 문서"})]}),i(o.Panel,{selectedTab:e,children:[n("div",{children:"1번 탭"}),n("div",{children:"2번 탭"})]})]})}};var b,u,m;d.parameters={...d.parameters,docs:{...(b=d.parameters)==null?void 0:b.docs,source:{originalSource:`{ render: () => { const [selectedTab, setSelectedTab] = useState(0); const handleTabClick = (tabId: number) => { diff --git a/assets/Tag-Bv1RKcm4.js b/assets/Tag-C4ARU73M.js similarity index 86% rename from assets/Tag-Bv1RKcm4.js rename to assets/Tag-C4ARU73M.js index e0d2a54e3..697033414 100644 --- a/assets/Tag-Bv1RKcm4.js +++ b/assets/Tag-C4ARU73M.js @@ -1 +1 @@ -import{c as o,a as t}from"./emotion-react.browser.esm-DVCGPw0o.js";import{t as d}from"./theme-DwD7F4-e.js";import"./iframe-BnffqoK7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="28e64064-d75f-48a1-b996-18ba22da2450",e._sentryDebugIdIdentifier="sentry-dbid-28e64064-d75f-48a1-b996-18ba22da2450")}catch{}})();const u=()=>o({color:d.colors.white,...d.text.body08}),i=({variant:e,color:r,bgColor:a})=>({round:o({padding:"0.4rem 0.8rem",borderRadius:"1rem",color:r,backgroundColor:a}),square:o({padding:"0.8rem",borderRadius:"0.4rem",color:r,backgroundColor:a})})[e],l=({variant:e="round",color:r="#FFFFFF",bgColor:a="#909090",children:s,...n})=>t("div",{css:[u,i({variant:e,color:r,bgColor:a})],...n,children:t("span",{children:s})});l.__docgenInfo={description:"",methods:[],displayName:"Tag",props:{variant:{required:!1,tsType:{name:"union",raw:"'round' | 'square'",elements:[{name:"literal",value:"'round'"},{name:"literal",value:"'square'"}]},description:"",defaultValue:{value:"'round'",computed:!1}},color:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'#FFFFFF'",computed:!1}},bgColor:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'#909090'",computed:!1}}},composes:["ComponentPropsWithRef"]};export{l as T}; +import{c as o,a as t}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{t as d}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="28e64064-d75f-48a1-b996-18ba22da2450",e._sentryDebugIdIdentifier="sentry-dbid-28e64064-d75f-48a1-b996-18ba22da2450")}catch{}})();const u=()=>o({color:d.colors.white,...d.text.body08}),i=({variant:e,color:r,bgColor:a})=>({round:o({padding:"0.4rem 0.8rem",borderRadius:"1rem",color:r,backgroundColor:a}),square:o({padding:"0.8rem",borderRadius:"0.4rem",color:r,backgroundColor:a})})[e],l=({variant:e="round",color:r="#FFFFFF",bgColor:a="#909090",children:s,...n})=>t("div",{css:[u,i({variant:e,color:r,bgColor:a})],...n,children:t("span",{children:s})});l.__docgenInfo={description:"",methods:[],displayName:"Tag",props:{variant:{required:!1,tsType:{name:"union",raw:"'round' | 'square'",elements:[{name:"literal",value:"'round'"},{name:"literal",value:"'square'"}]},description:"",defaultValue:{value:"'round'",computed:!1}},color:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'#FFFFFF'",computed:!1}},bgColor:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'#909090'",computed:!1}}},composes:["ComponentPropsWithRef"]};export{l as T}; diff --git a/assets/Tag.stories-BWxk2UzF.js b/assets/Tag.stories-DanSqrtd.js similarity index 83% rename from assets/Tag.stories-BWxk2UzF.js rename to assets/Tag.stories-DanSqrtd.js index ea8a18822..90827d9b1 100644 --- a/assets/Tag.stories-BWxk2UzF.js +++ b/assets/Tag.stories-DanSqrtd.js @@ -1,4 +1,4 @@ -import{T as p}from"./Tag-Bv1RKcm4.js";import"./iframe-BnffqoK7.js";import"./emotion-react.browser.esm-DVCGPw0o.js";import"./index-B4Z6PsAH.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./extends-ClQVCWlZ.js";import"./theme-DwD7F4-e.js";import"../sb-preview/runtime.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="ae6f8ed2-b733-4884-93e4-636375840c3b",r._sentryDebugIdIdentifier="sentry-dbid-ae6f8ed2-b733-4884-93e4-636375840c3b")}catch{}})();const _={title:"Common/Tag",component:p,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{variant:{control:{type:"radio"},options:["round","square"]},children:{control:{type:"text"}},color:{control:{type:"color"}},bgColor:{control:{type:"color"}}}},e={args:{variant:"round",children:"meeting"}},o={args:{variant:"square",children:"작성 완료"}};var n,a,s;e.parameters={...e.parameters,docs:{...(n=e.parameters)==null?void 0:n.docs,source:{originalSource:`{ +import{T as p}from"./Tag-C4ARU73M.js";import"./iframe-AJyGuqY3.js";import"./emotion-react.browser.esm-Cyl1vPjg.js";import"./index-Bs6nXyGp.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./extends-ClQVCWlZ.js";import"./theme-Cuq_aI8Z.js";import"../sb-preview/runtime.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="ae6f8ed2-b733-4884-93e4-636375840c3b",r._sentryDebugIdIdentifier="sentry-dbid-ae6f8ed2-b733-4884-93e4-636375840c3b")}catch{}})();const _={title:"Common/Tag",component:p,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{variant:{control:{type:"radio"},options:["round","square"]},children:{control:{type:"text"}},color:{control:{type:"color"}},bgColor:{control:{type:"color"}}}},e={args:{variant:"round",children:"meeting"}},o={args:{variant:"square",children:"작성 완료"}};var n,a,s;e.parameters={...e.parameters,docs:{...(n=e.parameters)==null?void 0:n.docs,source:{originalSource:`{ args: { variant: 'round', children: 'meeting' diff --git a/assets/Text-BdNMkr7S.js b/assets/Text-9RJ8J0eA.js similarity index 90% rename from assets/Text-BdNMkr7S.js rename to assets/Text-9RJ8J0eA.js index 4a7774569..0e72869f2 100644 --- a/assets/Text-BdNMkr7S.js +++ b/assets/Text-9RJ8J0eA.js @@ -1 +1 @@ -import{c as t,a as d}from"./emotion-react.browser.esm-DVCGPw0o.js";import{t as e}from"./theme-DwD7F4-e.js";import"./iframe-BnffqoK7.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[i]="b574f986-2292-4fb9-a918-ed19783600e5",o._sentryDebugIdIdentifier="sentry-dbid-b574f986-2292-4fb9-a918-ed19783600e5")}catch{}})();const l=o=>({body1:t({fontSize:e.text.body01.fontSize,lineHeight:e.text.body01.lineHeight}),body2:t({fontSize:e.text.body02.fontSize,lineHeight:e.text.body02.lineHeight}),body3:t({fontSize:e.text.body03.fontSize,lineHeight:e.text.body03.lineHeight}),body4:t({fontSize:e.text.body04.fontSize,lineHeight:e.text.body04.lineHeight}),body5:t({fontSize:e.text.body05.fontSize,lineHeight:e.text.body05.lineHeight}),body6:t({fontSize:e.text.body06.fontSize,lineHeight:e.text.body06.lineHeight}),body7:t({fontSize:e.text.body07.fontSize,lineHeight:e.text.body07.lineHeight}),body8:t({fontSize:e.text.body08.fontSize,lineHeight:e.text.body08.lineHeight}),body9:t({fontSize:e.text.body09.fontSize,lineHeight:e.text.body09.lineHeight}),body10:t({fontSize:e.text.body10.fontSize,lineHeight:e.text.body10.lineHeight})})[o],y=({tag:o="body3",children:i,...n})=>d("p",{css:l(o),...n,children:i});y.__docgenInfo={description:"",methods:[],displayName:"Text",props:{tag:{required:!1,tsType:{name:"union",raw:"'body1' | 'body2' | 'body3' | 'body4' | 'body5' | 'body6' | 'body7' | 'body8' | 'body9' | 'body10'",elements:[{name:"literal",value:"'body1'"},{name:"literal",value:"'body2'"},{name:"literal",value:"'body3'"},{name:"literal",value:"'body4'"},{name:"literal",value:"'body5'"},{name:"literal",value:"'body6'"},{name:"literal",value:"'body7'"},{name:"literal",value:"'body8'"},{name:"literal",value:"'body9'"},{name:"literal",value:"'body10'"}]},description:"",defaultValue:{value:"'body3'",computed:!1}}},composes:["HTMLAttributes"]};export{y as T}; +import{c as t,a as d}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{t as e}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[i]="b574f986-2292-4fb9-a918-ed19783600e5",o._sentryDebugIdIdentifier="sentry-dbid-b574f986-2292-4fb9-a918-ed19783600e5")}catch{}})();const l=o=>({body1:t({fontSize:e.text.body01.fontSize,lineHeight:e.text.body01.lineHeight}),body2:t({fontSize:e.text.body02.fontSize,lineHeight:e.text.body02.lineHeight}),body3:t({fontSize:e.text.body03.fontSize,lineHeight:e.text.body03.lineHeight}),body4:t({fontSize:e.text.body04.fontSize,lineHeight:e.text.body04.lineHeight}),body5:t({fontSize:e.text.body05.fontSize,lineHeight:e.text.body05.lineHeight}),body6:t({fontSize:e.text.body06.fontSize,lineHeight:e.text.body06.lineHeight}),body7:t({fontSize:e.text.body07.fontSize,lineHeight:e.text.body07.lineHeight}),body8:t({fontSize:e.text.body08.fontSize,lineHeight:e.text.body08.lineHeight}),body9:t({fontSize:e.text.body09.fontSize,lineHeight:e.text.body09.lineHeight}),body10:t({fontSize:e.text.body10.fontSize,lineHeight:e.text.body10.lineHeight})})[o],y=({tag:o="body3",children:i,...n})=>d("p",{css:l(o),...n,children:i});y.__docgenInfo={description:"",methods:[],displayName:"Text",props:{tag:{required:!1,tsType:{name:"union",raw:"'body1' | 'body2' | 'body3' | 'body4' | 'body5' | 'body6' | 'body7' | 'body8' | 'body9' | 'body10'",elements:[{name:"literal",value:"'body1'"},{name:"literal",value:"'body2'"},{name:"literal",value:"'body3'"},{name:"literal",value:"'body4'"},{name:"literal",value:"'body5'"},{name:"literal",value:"'body6'"},{name:"literal",value:"'body7'"},{name:"literal",value:"'body8'"},{name:"literal",value:"'body9'"},{name:"literal",value:"'body10'"}]},description:"",defaultValue:{value:"'body3'",computed:!1}}},composes:["HTMLAttributes"]};export{y as T}; diff --git a/assets/Text.stories-D6np-j7S.js b/assets/Text.stories-CMvodB7C.js similarity index 86% rename from assets/Text.stories-D6np-j7S.js rename to assets/Text.stories-CMvodB7C.js index 0c5e82a45..301d86d4f 100644 --- a/assets/Text.stories-D6np-j7S.js +++ b/assets/Text.stories-CMvodB7C.js @@ -1,4 +1,4 @@ -import{j as n,a as e}from"./emotion-react.browser.esm-DVCGPw0o.js";import{F as a}from"./Flex-CcBQZiMH.js";import{T as r}from"./Text-BdNMkr7S.js";import"./iframe-BnffqoK7.js";import"./index-B4Z6PsAH.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./extends-ClQVCWlZ.js";import"./theme-DwD7F4-e.js";import"../sb-preview/runtime.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="1d2c0998-0601-471e-bd0c-e0e3b9b47a9c",t._sentryDebugIdIdentifier="sentry-dbid-1d2c0998-0601-471e-bd0c-e0e3b9b47a9c")}catch{}})();const u={title:"Common/Text",component:r,parameters:{layout:"centered"},args:{children:"Text"},argTypes:{children:{control:{type:"text"}},tag:{control:{type:"radio"}}}},d={render:()=>n(a,{styles:{direction:"column",gap:"1rem"},children:[e("li",{children:e(r,{tag:"body1",children:"Body 1 (2.4rem, 2.4rem)"})}),e("li",{children:e(r,{tag:"body2",children:"Body 2 (2.4rem, 3.36rem)"})}),e("li",{children:e(r,{tag:"body3",children:"Body 3 (2rem, 2rem)"})}),e("li",{children:e(r,{tag:"body4",children:"Body 4 (1.6rem, 1.6rem)"})}),e("li",{children:e(r,{tag:"body5",children:"Body 5 (1.6rem, 2.24rem)"})}),e("li",{children:e(r,{tag:"body6",children:"Body 6 (1.4rem, 1.4rem)"})}),e("li",{children:e(r,{tag:"body7",children:"Body 7 (1.4rem, 1.68rem)"})}),e("li",{children:e(r,{tag:"body8",children:"Body 8 (1.2rem, 1.2rem)"})})]})};var i,l,m;d.parameters={...d.parameters,docs:{...(i=d.parameters)==null?void 0:i.docs,source:{originalSource:`{ +import{j as n,a as e}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{F as a}from"./Flex-DMgVUl98.js";import{T as r}from"./Text-9RJ8J0eA.js";import"./iframe-AJyGuqY3.js";import"./index-Bs6nXyGp.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./extends-ClQVCWlZ.js";import"./theme-Cuq_aI8Z.js";import"../sb-preview/runtime.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="1d2c0998-0601-471e-bd0c-e0e3b9b47a9c",t._sentryDebugIdIdentifier="sentry-dbid-1d2c0998-0601-471e-bd0c-e0e3b9b47a9c")}catch{}})();const u={title:"Common/Text",component:r,parameters:{layout:"centered"},args:{children:"Text"},argTypes:{children:{control:{type:"text"}},tag:{control:{type:"radio"}}}},d={render:()=>n(a,{styles:{direction:"column",gap:"1rem"},children:[e("li",{children:e(r,{tag:"body1",children:"Body 1 (2.4rem, 2.4rem)"})}),e("li",{children:e(r,{tag:"body2",children:"Body 2 (2.4rem, 3.36rem)"})}),e("li",{children:e(r,{tag:"body3",children:"Body 3 (2rem, 2rem)"})}),e("li",{children:e(r,{tag:"body4",children:"Body 4 (1.6rem, 1.6rem)"})}),e("li",{children:e(r,{tag:"body5",children:"Body 5 (1.6rem, 2.24rem)"})}),e("li",{children:e(r,{tag:"body6",children:"Body 6 (1.4rem, 1.4rem)"})}),e("li",{children:e(r,{tag:"body7",children:"Body 7 (1.4rem, 1.68rem)"})}),e("li",{children:e(r,{tag:"body8",children:"Body 8 (1.2rem, 1.2rem)"})})]})};var i,l,m;d.parameters={...d.parameters,docs:{...(i=d.parameters)==null?void 0:i.docs,source:{originalSource:`{ render: () => r.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{d:"M7.00004 0.333008C3.32004 0.333008 0.333374 3.31967 0.333374 6.99967C0.333374 10.6797 3.32004 13.6663 7.00004 13.6663C10.68 13.6663 13.6667 10.6797 13.6667 6.99967C13.6667 3.31967 10.68 0.333008 7.00004 0.333008ZM7.66671 10.333H6.33337V8.99967H7.66671V10.333ZM7.66671 7.66634H6.33337V3.66634H7.66671V7.66634Z",fill:"#FE4F60"})),$=e=>r.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{d:"M14.7 7.9998C14.7 11.6998 11.7 14.6998 8.00005 14.6998C4.30005 14.6998 1.30005 11.6998 1.30005 7.9998C1.30005 4.2998 4.30005 1.2998 8.00005 1.2998C11.7 1.2998 14.7 4.2998 14.7 7.9998Z",fill:"#4952A5"}),r.createElement("path",{d:"M12.7 5.2998L11.7 4.2998L6.70005 9.3998L4.30005 6.9998L3.30005 7.9998L6.70005 11.2998L12.7 5.2998Z",fill:"white"})),B=e=>E({display:"flex",justifyContent:"center",alignItems:"center",gap:"0.6rem",padding:"1rem 2rem",borderRadius:"24px",color:i.colors.white,backgroundColor:"rgba(44, 48, 48, 0.8)",fontSize:i.text.body06.fontSize,lineHeight:i.text.body06.lineHeight,animation:e?`${M} 0.2s ease-in, ${Z} .2s ease-in`:`${z} .2s ease-in forwards`,"& > svg":{width:"2rem",height:"2rem"}}),_=({variant:e,children:o,showDuration:n=3e3,onClose:f,...k})=>{const[L,D]=r.useState(!0),[H,R]=r.useState(!0),T=r.useRef(),h=r.useRef(),F=()=>e==="error"?t(V,{}):e==="success"?t($,{}):null,j=()=>{h.current=setTimeout(()=>{D(!1),f==null||f(),clearTimeout(T.current)},600)};return r.useEffect(()=>(T.current=setTimeout(()=>{R(!1),j()},n),()=>clearTimeout(h.current)),[n]),L&&A.createPortal(d("div",{role:"alert","aria-live":"assertive",css:B(H),...k,children:[t("span",{children:o}),t(F,{})]}),document.getElementById("toast-container"))},N=E({display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"1.6rem",position:"fixed",bottom:"4rem",width:"100%",zIndex:i.zIndex.overlayTop}),m=()=>t("div",{css:N,id:"toast-container"});m.__docgenInfo={description:"",methods:[],displayName:"ToastContainer"};const p=()=>{const e=P(),{removeToast:o}=l();return t(u,{children:e.map(n=>t(_,{onClose:()=>o(n.id),variant:n.variant,children:n.message},n.id))})};p.__docgenInfo={description:"",methods:[],displayName:"ToastFactory"};const ee={title:"Common/Toast",component:_,args:{children:"토스트 컴포넌트라고 합니다 !"},argTypes:{children:{control:{type:"text"}}}},a={render:()=>{const{createToast:e}=l();return d(u,{children:[t(m,{}),t(p,{}),t("button",{onClick:()=>e("토스트 띄우기 성공!"),children:"Create Toast"})]})}},s={render:()=>{const{createToast:e}=l();return d(u,{children:[t(m,{}),t(p,{}),t("button",{onClick:()=>e("에러가 발생하였어요 에러가 발생하였어요 에러가 발생하였어요","error"),children:"Create Toast"})]})}},c={render:()=>{const{createToast:e}=l();return d(u,{children:[t(m,{}),t(p,{}),t("button",{onClick:()=>e("축하드려요 ! 성공했습니다.","success"),children:"Create Toast"})]})}};var g,b,C;a.parameters={...a.parameters,docs:{...(g=a.parameters)==null?void 0:g.docs,source:{originalSource:`{ +import{c as E,j as d,a as t,F as u}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{r}from"./index-Bs6nXyGp.js";import{r as A}from"./index-BHRAuaXy.js";import{m as M,f as Z,a as z,u as P,b as l}from"./toast-C2VtnlsU.js";import{t as i}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";import"./extends-ClQVCWlZ.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./react-H2B7brmx.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new s().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="4db64761-0c20-425f-ab8e-d0b18c4cef7b",e._sentryDebugIdIdentifier="sentry-dbid-4db64761-0c20-425f-ab8e-d0b18c4cef7b")}catch{}})();const V=e=>r.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{d:"M7.00004 0.333008C3.32004 0.333008 0.333374 3.31967 0.333374 6.99967C0.333374 10.6797 3.32004 13.6663 7.00004 13.6663C10.68 13.6663 13.6667 10.6797 13.6667 6.99967C13.6667 3.31967 10.68 0.333008 7.00004 0.333008ZM7.66671 10.333H6.33337V8.99967H7.66671V10.333ZM7.66671 7.66634H6.33337V3.66634H7.66671V7.66634Z",fill:"#FE4F60"})),$=e=>r.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{d:"M14.7 7.9998C14.7 11.6998 11.7 14.6998 8.00005 14.6998C4.30005 14.6998 1.30005 11.6998 1.30005 7.9998C1.30005 4.2998 4.30005 1.2998 8.00005 1.2998C11.7 1.2998 14.7 4.2998 14.7 7.9998Z",fill:"#4952A5"}),r.createElement("path",{d:"M12.7 5.2998L11.7 4.2998L6.70005 9.3998L4.30005 6.9998L3.30005 7.9998L6.70005 11.2998L12.7 5.2998Z",fill:"white"})),B=e=>E({display:"flex",justifyContent:"center",alignItems:"center",gap:"0.6rem",padding:"1rem 2rem",borderRadius:"24px",color:i.colors.white,backgroundColor:"rgba(44, 48, 48, 0.8)",fontSize:i.text.body06.fontSize,lineHeight:i.text.body06.lineHeight,animation:e?`${M} 0.2s ease-in, ${Z} .2s ease-in`:`${z} .2s ease-in forwards`,"& > svg":{width:"2rem",height:"2rem"}}),_=({variant:e,children:o,showDuration:n=3e3,onClose:f,...k})=>{const[L,D]=r.useState(!0),[H,R]=r.useState(!0),T=r.useRef(),h=r.useRef(),F=()=>e==="error"?t(V,{}):e==="success"?t($,{}):null,j=()=>{h.current=setTimeout(()=>{D(!1),f==null||f(),clearTimeout(T.current)},600)};return r.useEffect(()=>(T.current=setTimeout(()=>{R(!1),j()},n),()=>clearTimeout(h.current)),[n]),L&&A.createPortal(d("div",{role:"alert","aria-live":"assertive",css:B(H),...k,children:[t("span",{children:o}),t(F,{})]}),document.getElementById("toast-container"))},N=E({display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"1.6rem",position:"fixed",bottom:"4rem",width:"100%",zIndex:i.zIndex.overlayTop}),m=()=>t("div",{css:N,id:"toast-container"});m.__docgenInfo={description:"",methods:[],displayName:"ToastContainer"};const p=()=>{const e=P(),{removeToast:o}=l();return t(u,{children:e.map(n=>t(_,{onClose:()=>o(n.id),variant:n.variant,children:n.message},n.id))})};p.__docgenInfo={description:"",methods:[],displayName:"ToastFactory"};const ee={title:"Common/Toast",component:_,args:{children:"토스트 컴포넌트라고 합니다 !"},argTypes:{children:{control:{type:"text"}}}},a={render:()=>{const{createToast:e}=l();return d(u,{children:[t(m,{}),t(p,{}),t("button",{onClick:()=>e("토스트 띄우기 성공!"),children:"Create Toast"})]})}},s={render:()=>{const{createToast:e}=l();return d(u,{children:[t(m,{}),t(p,{}),t("button",{onClick:()=>e("에러가 발생하였어요 에러가 발생하였어요 에러가 발생하였어요","error"),children:"Create Toast"})]})}},c={render:()=>{const{createToast:e}=l();return d(u,{children:[t(m,{}),t(p,{}),t("button",{onClick:()=>e("축하드려요 ! 성공했습니다.","success"),children:"Create Toast"})]})}};var g,b,C;a.parameters={...a.parameters,docs:{...(g=a.parameters)==null?void 0:g.docs,source:{originalSource:`{ render: () => { const { createToast diff --git a/assets/ToolTip-B5zzYkah.js b/assets/ToolTip-DREpUNuj.js similarity index 93% rename from assets/ToolTip-B5zzYkah.js rename to assets/ToolTip-DREpUNuj.js index c5efc68de..cf32b7741 100644 --- a/assets/ToolTip-B5zzYkah.js +++ b/assets/ToolTip-DREpUNuj.js @@ -1 +1 @@ -import{c as o,j as c,a as u}from"./emotion-react.browser.esm-DVCGPw0o.js";import{r as n}from"./index-B4Z6PsAH.js";import{t as s}from"./theme-DwD7F4-e.js";import"./iframe-BnffqoK7.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="4dd446a9-deb4-4fa0-9e17-6429e6682c14",t._sentryDebugIdIdentifier="sentry-dbid-4dd446a9-deb4-4fa0-9e17-6429e6682c14")}catch{}})();const y=t=>n.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 7 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},n.createElement("path",{id:"Vector 757",d:"M6.5 7.13841L1.00778 4L6.5 0.86159L6.5 7.13841Z",fill:"#323A4C",stroke:"#323A4C"})),b=o({display:"inline-block",position:"relative"}),g=t=>o({position:"absolute",width:"max-content",padding:"1rem",borderRadius:"8px",backgroundColor:`${s.colors.gray_900}`,font:`${s.text.body08}`,color:`${s.colors.white}`,visibility:t?"visible":"hidden",transitionDelay:t?"0.2s":"0",pointerEvents:"none"}),h=(t,e)=>({top:o({left:"50%",bottom:"100%",transform:`translateX(-50%) translateY(calc(-${e}rem - 8px) )`}),bottom:o({left:"50%",up:"100%",transform:`translateX(-50%) translateY(calc(${e}rem + 8px))`}),left:o({top:"50%",right:"100%",transform:`translateY(-50%) translateX(calc(-${e}rem - 8px))`}),right:o({top:"50%",left:"100%",transform:`translateY(-50%) translateX(calc(${e}rem + 8px))`})})[t],w=o({position:"absolute"}),x=t=>({top:o({left:"50%",top:"calc(100%)",transform:"translateX(-50%) translateY(-1px) rotate(270deg)"}),bottom:o({left:"50%",bottom:"calc(100%)",transform:"translateX(-50%) translateY(1px) rotate(90deg)"}),left:o({top:"50%",left:"calc(100%)",transform:"translateY(-50%) translateX(-1px) rotate(180deg)"}),right:o({top:"50%",right:"calc(100%)",transform:"translateY(-50%) translateX(1px)"})})[t],v=({position:t="right",message:e,gap:r=0,children:d,...p})=>{const[m,l]=n.useState(!1),i=()=>{l(!0)},a=()=>{l(!1)};return c("div",{"aria-describedby":e,role:"button",css:b,tabIndex:-1,onMouseEnter:i,onMouseLeave:a,onKeyDown:f=>{f.key==="Escape"&&a()},onFocus:i,onBlur:a,children:[d,c("span",{role:"tooltip",css:[g(m),h(t,r)],...p,children:[u(y,{css:[w,x(t)]}),e]})]})};v.__docgenInfo={description:"",methods:[],displayName:"ToolTip",props:{position:{required:!1,tsType:{name:"union",raw:"'top' | 'right' | 'bottom' | 'left'",elements:[{name:"literal",value:"'top'"},{name:"literal",value:"'right'"},{name:"literal",value:"'bottom'"},{name:"literal",value:"'left'"}]},description:"",defaultValue:{value:"'right'",computed:!1}},message:{required:!0,tsType:{name:"string"},description:""},gap:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"0",computed:!1}}},composes:["HTMLAttributes"]};export{v as T}; +import{c as o,j as c,a as u}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{r as n}from"./index-Bs6nXyGp.js";import{t as s}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="4dd446a9-deb4-4fa0-9e17-6429e6682c14",t._sentryDebugIdIdentifier="sentry-dbid-4dd446a9-deb4-4fa0-9e17-6429e6682c14")}catch{}})();const y=t=>n.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 7 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},n.createElement("path",{id:"Vector 757",d:"M6.5 7.13841L1.00778 4L6.5 0.86159L6.5 7.13841Z",fill:"#323A4C",stroke:"#323A4C"})),b=o({display:"inline-block",position:"relative"}),g=t=>o({position:"absolute",width:"max-content",padding:"1rem",borderRadius:"8px",backgroundColor:`${s.colors.gray_900}`,font:`${s.text.body08}`,color:`${s.colors.white}`,visibility:t?"visible":"hidden",transitionDelay:t?"0.2s":"0",pointerEvents:"none"}),h=(t,e)=>({top:o({left:"50%",bottom:"100%",transform:`translateX(-50%) translateY(calc(-${e}rem - 8px) )`}),bottom:o({left:"50%",up:"100%",transform:`translateX(-50%) translateY(calc(${e}rem + 8px))`}),left:o({top:"50%",right:"100%",transform:`translateY(-50%) translateX(calc(-${e}rem - 8px))`}),right:o({top:"50%",left:"100%",transform:`translateY(-50%) translateX(calc(${e}rem + 8px))`})})[t],w=o({position:"absolute"}),x=t=>({top:o({left:"50%",top:"calc(100%)",transform:"translateX(-50%) translateY(-1px) rotate(270deg)"}),bottom:o({left:"50%",bottom:"calc(100%)",transform:"translateX(-50%) translateY(1px) rotate(90deg)"}),left:o({top:"50%",left:"calc(100%)",transform:"translateY(-50%) translateX(-1px) rotate(180deg)"}),right:o({top:"50%",right:"calc(100%)",transform:"translateY(-50%) translateX(1px)"})})[t],v=({position:t="right",message:e,gap:r=0,children:d,...p})=>{const[m,l]=n.useState(!1),i=()=>{l(!0)},a=()=>{l(!1)};return c("div",{"aria-describedby":e,role:"button",css:b,tabIndex:-1,onMouseEnter:i,onMouseLeave:a,onKeyDown:f=>{f.key==="Escape"&&a()},onFocus:i,onBlur:a,children:[d,c("span",{role:"tooltip",css:[g(m),h(t,r)],...p,children:[u(y,{css:[w,x(t)]}),e]})]})};v.__docgenInfo={description:"",methods:[],displayName:"ToolTip",props:{position:{required:!1,tsType:{name:"union",raw:"'top' | 'right' | 'bottom' | 'left'",elements:[{name:"literal",value:"'top'"},{name:"literal",value:"'right'"},{name:"literal",value:"'bottom'"},{name:"literal",value:"'left'"}]},description:"",defaultValue:{value:"'right'",computed:!1}},message:{required:!0,tsType:{name:"string"},description:""},gap:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"0",computed:!1}}},composes:["HTMLAttributes"]};export{v as T}; diff --git a/assets/ToolTip.stories-Dikhmx-h.js b/assets/ToolTip.stories-Dda_168L.js similarity index 79% rename from assets/ToolTip.stories-Dikhmx-h.js rename to assets/ToolTip.stories-Dda_168L.js index 5e4523817..3fb6e9887 100644 --- a/assets/ToolTip.stories-Dikhmx-h.js +++ b/assets/ToolTip.stories-Dda_168L.js @@ -1,4 +1,4 @@ -import{a}from"./emotion-react.browser.esm-DVCGPw0o.js";import{F as i}from"./Flex-CcBQZiMH.js";import{T as p}from"./ToolTip-B5zzYkah.js";import{t as c}from"./theme-DwD7F4-e.js";import"./iframe-BnffqoK7.js";import"./index-B4Z6PsAH.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./extends-ClQVCWlZ.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2da0e0ef-4c6c-42a6-ac8a-c49ffe8e766c",e._sentryDebugIdIdentifier="sentry-dbid-2da0e0ef-4c6c-42a6-ac8a-c49ffe8e766c")}catch{}})();const b={title:"Common/ToolTip",component:p,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{position:{control:{type:"radio"},options:["top","bottom","left","right"]},message:{control:{type:"text"}}},args:{position:"top",message:"ToolTip",gap:.8}},o={args:{children:a(i,{style:{width:"36px",height:"36px",backgroundColor:c.colors.purple_200},styles:{justify:"center",align:"center"},children:"호버"})}};var r,n,s;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ +import{a}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{F as i}from"./Flex-DMgVUl98.js";import{T as p}from"./ToolTip-DREpUNuj.js";import{t as c}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";import"./index-Bs6nXyGp.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./extends-ClQVCWlZ.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2da0e0ef-4c6c-42a6-ac8a-c49ffe8e766c",e._sentryDebugIdIdentifier="sentry-dbid-2da0e0ef-4c6c-42a6-ac8a-c49ffe8e766c")}catch{}})();const b={title:"Common/ToolTip",component:p,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{position:{control:{type:"radio"},options:["top","bottom","left","right"]},message:{control:{type:"text"}}},args:{position:"top",message:"ToolTip",gap:.8}},o={args:{children:a(i,{style:{width:"36px",height:"36px",backgroundColor:c.colors.purple_200},styles:{justify:"center",align:"center"},children:"호버"})}};var r,n,s;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ args: { children: e(n,{children:e(r,{})})]},o={render:()=>e(O,{isVisible:!0})},s={render:()=>e(C,{isVisible:!0})},a={render:()=>{const{isOpen:r,toggle:t}=x();return v(W,{tag:"section",styles:{direction:"column",justify:"center",align:"center"},css:V,children:[e(N,{step:"category",title:"새로운 워크 스페이스 생성하기",info:"팀 카테고리를 선택해주세요."}),e("div",{css:{width:"32rem",marginTop:"2.4rem"},children:e(w,{css:{"& ul":{maxHeight:"25rem"}},placeholder:"선택",variant:"outline",isOpen:r,onTrigger:t,onSelect:t,options:[{value:"옵션 1입니다"},{value:"옵션 2입니다"}],className:"select-container"})}),e(I,{css:{width:"100%",marginTop:"18.8rem"},variant:"primary",size:"medium",children:"다음"})]})}},i={render:()=>e(T,{isVisible:!0})},V=k({height:"40rem"});var c,m,p;o.parameters={...o.parameters,docs:{...(c=o.parameters)==null?void 0:c.docs,source:{originalSource:`{ +import{a as e,j as v,c as k}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{B as I}from"./Button-D1nFQNRa.js";import{F as W}from"./Flex-DMgVUl98.js";import{S as w}from"./Select-0cv1h5wR.js";import"./index-Bs6nXyGp.js";import"./iframe-AJyGuqY3.js";import{u as x}from"./useOverlay-COpOggKz.js";import{W as n,a as O,b as C,c as N,d as T}from"./WorkSpaceName-DaJLJb5F.js";import"./extends-ClQVCWlZ.js";import"./Button.style-C-RQzMju.js";import"./theme-Cuq_aI8Z.js";import"./Label-BPjTE68Y.js";import"./scroll-BeA4HMGQ.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"../sb-preview/runtime.js";import"./QueryClientProvider-BufXlfUi.js";import"./path-8_1M5Knd.js";import"./file-CAHT9y9p.js";import"./Input-B4nzLRzl.js";import"./SupportingText-C1HExhiQ.js";import"./Heading-FD1nScCb.js";import"./Text-9RJ8J0eA.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="5926fca1-25b2-4acf-add1-146f9be08eb1",r._sentryDebugIdIdentifier="sentry-dbid-5926fca1-25b2-4acf-add1-146f9be08eb1")}catch{}})();const ee={title:"Shared/WorkSpaceModal",component:n,parameters:{layout:"centered"},decorators:[r=>e(n,{children:e(r,{})})]},o={render:()=>e(O,{isVisible:!0})},s={render:()=>e(C,{isVisible:!0})},a={render:()=>{const{isOpen:r,toggle:t}=x();return v(W,{tag:"section",styles:{direction:"column",justify:"center",align:"center"},css:V,children:[e(N,{step:"category",title:"새로운 워크 스페이스 생성하기",info:"팀 카테고리를 선택해주세요."}),e("div",{css:{width:"32rem",marginTop:"2.4rem"},children:e(w,{css:{"& ul":{maxHeight:"25rem"}},placeholder:"선택",variant:"outline",isOpen:r,onTrigger:t,onSelect:t,options:[{value:"옵션 1입니다"},{value:"옵션 2입니다"}],className:"select-container"})}),e(I,{css:{width:"100%",marginTop:"18.8rem"},variant:"primary",size:"medium",children:"다음"})]})}},i={render:()=>e(T,{isVisible:!0})},V=k({height:"40rem"});var c,m,p;o.parameters={...o.parameters,docs:{...(c=o.parameters)==null?void 0:c.docs,source:{originalSource:`{ render: () => { return ; } diff --git a/assets/WorkSpaceName-BrOTZTuV.js b/assets/WorkSpaceName-DaJLJb5F.js similarity index 99% rename from assets/WorkSpaceName-BrOTZTuV.js rename to assets/WorkSpaceName-DaJLJb5F.js index b7b1b74ed..6e5d28e09 100644 --- a/assets/WorkSpaceName-BrOTZTuV.js +++ b/assets/WorkSpaceName-DaJLJb5F.js @@ -1,6 +1,6 @@ -var Wi=Object.defineProperty;var Te=e=>{throw TypeError(e)};var Vi=(e,t,i)=>t in e?Wi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var $t=(e,t,i)=>Vi(e,typeof t!="symbol"?t+"":t,i),Kt=(e,t,i)=>t.has(e)||Te("Cannot "+i);var d=(e,t,i)=>(Kt(e,t,"read from private field"),i?i.call(e):t.get(e)),O=(e,t,i)=>t.has(e)?Te("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),S=(e,t,i,n)=>(Kt(e,t,"write to private field"),n?n.call(e,i):t.set(e,i),i),k=(e,t,i)=>(Kt(e,t,"access private method"),i);import{c as U,j as st,a as C}from"./emotion-react.browser.esm-DVCGPw0o.js";import{F as Ut}from"./Flex-CcBQZiMH.js";import"./iframe-BnffqoK7.js";import{r as w}from"./index-B4Z6PsAH.js";import{B as si}from"./Button-aaJpuFF7.js";import{L as $i}from"./Label-Dvf5dr16.js";import{t as It}from"./theme-DwD7F4-e.js";import{S as oi,k as M,l as Nt,r as Tt,b as Ki,q as Ce,t as je,v as Qi,f as Ji,w as Gi,x as Ae,n as Ft,i as Le,y as Yi,u as xe}from"./QueryClientProvider-CVYF4Mhz.js";import{P as ri}from"./path-DPor8ESZ.js";import{e as Xi}from"./file-o2e5cVZ2.js";import{I as Zi}from"./Input-_bQPWmrw.js";import{H as tn}from"./Heading-BCYRSNXR.js";import{T as Ne}from"./Text-BdNMkr7S.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a9d9d014-2a14-46d0-bf73-d899a16cf2a3",e._sentryDebugIdIdentifier="sentry-dbid-a9d9d014-2a14-46d0-bf73-d899a16cf2a3")}catch{}})();const en=U({fontWeight:600,marginTop:"1.6rem"}),nn=U({marginTop:"1.2rem"}),an=U({...It.heading.heading06,fontWeight:500}),sn={NAME:1,CATEGORY:2,IMAGE:3,BLOCK:1,UPLOAD:2},on={NAME:3,CATEGORY:3,IMAGE:3,BLOCK:2,UPLOAD:2},oo={BLOCK:"블록을 삭제하시겠습니까?",DOCS:"문서를 삭제하시겠습니까?"},ro={BLOCK:"삭제된 블록은 복구할 수 없습니다.",DOCS:"삭제된 문서는 복구할 수 없습니다."},zt=({step:e,title:t,info:i})=>{const n=a=>{if(!a)return;const s=a.toUpperCase();return on[s]??void 0};return st(Ut,{tag:"section",styles:{direction:"column",justify:"center",align:"center"},children:[e!==void 0&&st(Ne,{css:an,children:[sn[e.toUpperCase()],"/",n(e)]}),C(tn,{css:en,tag:"H5",children:t}),C(Ne,{tag:"body4",css:nn,children:i})]})};zt.__docgenInfo={description:"",methods:[],displayName:"WorkSpaceInfo",props:{step:{required:!1,tsType:{name:"union",raw:"'name' | 'category' | 'image' | 'block' | 'upload'",elements:[{name:"literal",value:"'name'"},{name:"literal",value:"'category'"},{name:"literal",value:"'image'"},{name:"literal",value:"'block'"},{name:"literal",value:"'upload'"}]},description:""},title:{required:!0,tsType:{name:"string"},description:""},info:{required:!0,tsType:{name:"string"},description:""}}};var L,g,_t,A,et,lt,q,Et,dt,ut,it,nt,Y,mt,y,gt,Xt,Zt,te,ee,ie,ne,ae,ci,ni,rn=(ni=class extends oi{constructor(t,i){super();O(this,y);O(this,L);O(this,g);O(this,_t);O(this,A);O(this,et);O(this,lt);O(this,q);O(this,Et);O(this,dt);O(this,ut);O(this,it);O(this,nt);O(this,Y);O(this,mt,new Set);this.options=i,S(this,L,t),S(this,q,null),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(d(this,g).addObserver(this),De(d(this,g),this.options)?k(this,y,gt).call(this):this.updateResult(),k(this,y,ee).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return se(d(this,g),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return se(d(this,g),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,k(this,y,ie).call(this),k(this,y,ne).call(this),d(this,g).removeObserver(this)}setOptions(t,i){const n=this.options,a=d(this,g);if(this.options=d(this,L).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof M(this.options.enabled,d(this,g))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");k(this,y,ae).call(this),d(this,g).setOptions(this.options),n._defaulted&&!Nt(this.options,n)&&d(this,L).getQueryCache().notify({type:"observerOptionsUpdated",query:d(this,g),observer:this});const s=this.hasListeners();s&&Pe(d(this,g),a,this.options,n)&&k(this,y,gt).call(this),this.updateResult(i),s&&(d(this,g)!==a||M(this.options.enabled,d(this,g))!==M(n.enabled,d(this,g))||Tt(this.options.staleTime,d(this,g))!==Tt(n.staleTime,d(this,g)))&&k(this,y,Xt).call(this);const o=k(this,y,Zt).call(this);s&&(d(this,g)!==a||M(this.options.enabled,d(this,g))!==M(n.enabled,d(this,g))||o!==d(this,Y))&&k(this,y,te).call(this,o)}getOptimisticResult(t){const i=d(this,L).getQueryCache().build(d(this,L),t),n=this.createResult(i,t);return pn(this,n)&&(S(this,A,n),S(this,lt,this.options),S(this,et,d(this,g).state)),n}getCurrentResult(){return d(this,A)}trackResult(t,i){const n={};return Object.keys(t).forEach(a=>{Object.defineProperty(n,a,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(a),i==null||i(a),t[a])})}),n}trackProp(t){d(this,mt).add(t)}getCurrentQuery(){return d(this,g)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const i=d(this,L).defaultQueryOptions(t),n=d(this,L).getQueryCache().build(d(this,L),i);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,i))}fetch(t){return k(this,y,gt).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),d(this,A)))}createResult(t,i){var W;const n=d(this,g),a=this.options,s=d(this,A),o=d(this,et),r=d(this,lt),l=t!==n?t.state:d(this,_t),{state:p}=t;let m={...p},_=!1,x;if(i._optimisticResults){const j=this.hasListeners(),Vt=!j&&De(t,i),Hi=j&&Pe(t,n,i,a);(Vt||Hi)&&(m={...m,...Gi(p.data,t.options)}),i._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:f,errorUpdatedAt:h,status:b}=m;if(i.select&&m.data!==void 0)if(s&&m.data===(o==null?void 0:o.data)&&i.select===d(this,Et))x=d(this,dt);else try{S(this,Et,i.select),x=i.select(m.data),x=Ae(s==null?void 0:s.data,x,i),S(this,dt,x),S(this,q,null)}catch(j){S(this,q,j)}else x=m.data;if(i.placeholderData!==void 0&&x===void 0&&b==="pending"){let j;if(s!=null&&s.isPlaceholderData&&i.placeholderData===(r==null?void 0:r.placeholderData))j=s.data;else if(j=typeof i.placeholderData=="function"?i.placeholderData((W=d(this,ut))==null?void 0:W.state.data,d(this,ut)):i.placeholderData,i.select&&j!==void 0)try{j=i.select(j),S(this,q,null)}catch(Vt){S(this,q,Vt)}j!==void 0&&(b="success",x=Ae(s==null?void 0:s.data,j,i),_=!0)}d(this,q)&&(f=d(this,q),x=d(this,dt),h=Date.now(),b="error");const T=m.fetchStatus==="fetching",P=b==="pending",E=b==="error",J=P&&T,Ot=x!==void 0;return{status:b,fetchStatus:m.fetchStatus,isPending:P,isSuccess:b==="success",isError:E,isInitialLoading:J,isLoading:J,data:x,dataUpdatedAt:m.dataUpdatedAt,error:f,errorUpdatedAt:h,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>l.dataUpdateCount||m.errorUpdateCount>l.errorUpdateCount,isFetching:T,isRefetching:T&&!P,isLoadingError:E&&!Ot,isPaused:m.fetchStatus==="paused",isPlaceholderData:_,isRefetchError:E&&Ot,isStale:ve(t,i),refetch:this.refetch}}updateResult(t){const i=d(this,A),n=this.createResult(d(this,g),this.options);if(S(this,et,d(this,g).state),S(this,lt,this.options),d(this,et).data!==void 0&&S(this,ut,d(this,g)),Nt(n,i))return;S(this,A,n);const a={},s=()=>{if(!i)return!0;const{notifyOnChangeProps:o}=this.options,r=typeof o=="function"?o():o;if(r==="all"||!r&&!d(this,mt).size)return!0;const u=new Set(r??d(this,mt));return this.options.throwOnError&&u.add("error"),Object.keys(d(this,A)).some(l=>{const p=l;return d(this,A)[p]!==i[p]&&u.has(p)})};(t==null?void 0:t.listeners)!==!1&&s()&&(a.listeners=!0),k(this,y,ci).call(this,{...a,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&k(this,y,ee).call(this)}},L=new WeakMap,g=new WeakMap,_t=new WeakMap,A=new WeakMap,et=new WeakMap,lt=new WeakMap,q=new WeakMap,Et=new WeakMap,dt=new WeakMap,ut=new WeakMap,it=new WeakMap,nt=new WeakMap,Y=new WeakMap,mt=new WeakMap,y=new WeakSet,gt=function(t){k(this,y,ae).call(this);let i=d(this,g).fetch(this.options,t);return t!=null&&t.throwOnError||(i=i.catch(Ki)),i},Xt=function(){k(this,y,ie).call(this);const t=Tt(this.options.staleTime,d(this,g));if(Ce||d(this,A).isStale||!je(t))return;const n=Qi(d(this,A).dataUpdatedAt,t)+1;S(this,it,setTimeout(()=>{d(this,A).isStale||this.updateResult()},n))},Zt=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(d(this,g)):this.options.refetchInterval)??!1},te=function(t){k(this,y,ne).call(this),S(this,Y,t),!(Ce||M(this.options.enabled,d(this,g))===!1||!je(d(this,Y))||d(this,Y)===0)&&S(this,nt,setInterval(()=>{(this.options.refetchIntervalInBackground||Ji.isFocused())&&k(this,y,gt).call(this)},d(this,Y)))},ee=function(){k(this,y,Xt).call(this),k(this,y,te).call(this,k(this,y,Zt).call(this))},ie=function(){d(this,it)&&(clearTimeout(d(this,it)),S(this,it,void 0))},ne=function(){d(this,nt)&&(clearInterval(d(this,nt)),S(this,nt,void 0))},ae=function(){const t=d(this,L).getQueryCache().build(d(this,L),this.options);if(t===d(this,g))return;const i=d(this,g);S(this,g,t),S(this,_t,t.state),this.hasListeners()&&(i==null||i.removeObserver(this),t.addObserver(this))},ci=function(t){Ft.batch(()=>{t.listeners&&this.listeners.forEach(i=>{i(d(this,A))}),d(this,L).getQueryCache().notify({query:d(this,g),type:"observerResultsUpdated"})})},ni);function cn(e,t){return M(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function De(e,t){return cn(e,t)||e.state.data!==void 0&&se(e,t,t.refetchOnMount)}function se(e,t,i){if(M(t.enabled,e)!==!1){const n=typeof i=="function"?i(e):i;return n==="always"||n!==!1&&ve(e,t)}return!1}function Pe(e,t,i,n){return(e!==t||M(n.enabled,e)===!1)&&(!i.suspense||e.state.status!=="error")&&ve(e,i)}function ve(e,t){return M(t.enabled,e)!==!1&&e.isStaleByTime(Tt(t.staleTime,e))}function pn(e,t){return!Nt(e.getCurrentResult(),t)}var X,Z,N,$,K,Ct,oe,ai,ln=(ai=class extends oi{constructor(t,i){super();O(this,K);O(this,X);O(this,Z);O(this,N);O(this,$);S(this,X,t),this.setOptions(i),this.bindMethods(),k(this,K,Ct).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const i=this.options;this.options=d(this,X).defaultMutationOptions(t),Nt(this.options,i)||d(this,X).getMutationCache().notify({type:"observerOptionsUpdated",mutation:d(this,N),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&Le(i.mutationKey)!==Le(this.options.mutationKey)?this.reset():((n=d(this,N))==null?void 0:n.state.status)==="pending"&&d(this,N).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=d(this,N))==null||t.removeObserver(this)}onMutationUpdate(t){k(this,K,Ct).call(this),k(this,K,oe).call(this,t)}getCurrentResult(){return d(this,Z)}reset(){var t;(t=d(this,N))==null||t.removeObserver(this),S(this,N,void 0),k(this,K,Ct).call(this),k(this,K,oe).call(this)}mutate(t,i){var n;return S(this,$,i),(n=d(this,N))==null||n.removeObserver(this),S(this,N,d(this,X).getMutationCache().build(d(this,X),this.options)),d(this,N).addObserver(this),d(this,N).execute(t)}},X=new WeakMap,Z=new WeakMap,N=new WeakMap,$=new WeakMap,K=new WeakSet,Ct=function(){var i;const t=((i=d(this,N))==null?void 0:i.state)??Yi();S(this,Z,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},oe=function(t){Ft.batch(()=>{var i,n,a,s,o,r,u,l;if(d(this,$)&&this.hasListeners()){const p=d(this,Z).variables,m=d(this,Z).context;(t==null?void 0:t.type)==="success"?((n=(i=d(this,$)).onSuccess)==null||n.call(i,t.data,p,m),(s=(a=d(this,$)).onSettled)==null||s.call(a,t.data,null,p,m)):(t==null?void 0:t.type)==="error"&&((r=(o=d(this,$)).onError)==null||r.call(o,t.error,p,m),(l=(u=d(this,$)).onSettled)==null||l.call(u,void 0,t.error,p,m))}this.listeners.forEach(p=>{p(d(this,Z))})})},ai),pi=w.createContext(!1),dn=()=>w.useContext(pi);pi.Provider;function un(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var mn=w.createContext(un()),fn=()=>w.useContext(mn);function li(e,t){return typeof e=="function"?e(...t):!!e}function hn(){}var xn=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},vn=e=>{w.useEffect(()=>{e.clearReset()},[e])},gn=({result:e,errorResetBoundary:t,throwOnError:i,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&li(i,[e.error,n]),co=(e,t)=>t.state.data===void 0,bn=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},wn=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,yn=(e,t,i)=>t.fetchOptimistic(e).catch(()=>{i.clearReset()});function Sn(e,t,i){var l,p,m,_;const n=xe(),a=dn(),s=fn(),o=n.defaultQueryOptions(e);(p=(l=n.getDefaultOptions().queries)==null?void 0:l._experimental_beforeQuery)==null||p.call(l,o),o._optimisticResults=a?"isRestoring":"optimistic",bn(o),xn(o,s),vn(s);const[r]=w.useState(()=>new t(n,o)),u=r.getOptimisticResult(o);if(w.useSyncExternalStore(w.useCallback(x=>{const f=a?()=>{}:r.subscribe(Ft.batchCalls(x));return r.updateResult(),f},[r,a]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),w.useEffect(()=>{r.setOptions(o,{listeners:!1})},[o,r]),wn(o,u))throw yn(o,r,s);if(gn({result:u,errorResetBoundary:s,throwOnError:o.throwOnError,query:n.getQueryCache().get(o.queryHash)}))throw u.error;return(_=(m=n.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||_.call(m,o,u),o.notifyOnChangeProps?u:r.trackResult(u)}function _n(e,t){return Sn(e,rn)}function ge(e,t){const i=xe(),[n]=w.useState(()=>new ln(i,e));w.useEffect(()=>{n.setOptions(e)},[n,e]);const a=w.useSyncExternalStore(w.useCallback(o=>n.subscribe(Ft.batchCalls(o)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),s=w.useCallback((o,r)=>{n.mutate(o,r).catch(hn)},[n]);if(a.error&&li(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}const di={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze(di);const ui={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(ui);var I=function(e,t,i,n){if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?n:i==="a"?n.call(e):n?n.value:t.get(e)},ct,bt,tt;class En{constructor(...t){ct.set(this,new Map),bt.set(this,new Map),tt.set(this,new Map);for(const i of t)this.define(i)}define(t,i=!1){for(let[n,a]of Object.entries(t)){n=n.toLowerCase(),a=a.map(r=>r.toLowerCase()),I(this,tt,"f").has(n)||I(this,tt,"f").set(n,new Set);const s=I(this,tt,"f").get(n);let o=!0;for(let r of a){const u=r.startsWith("*");if(r=u?r.slice(1):r,s==null||s.add(r),o&&I(this,bt,"f").set(n,r),o=!1,u)continue;const l=I(this,ct,"f").get(r);if(l&&l!=n&&!i)throw new Error(`"${n} -> ${r}" conflicts with "${l} -> ${r}". Pass \`force=true\` to override this definition.`);I(this,ct,"f").set(r,n)}}return this}getType(t){if(typeof t!="string")return null;const i=t.replace(/^.*[/\\]/,"").toLowerCase(),n=i.replace(/^.*\./,"").toLowerCase(),a=i.length{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const t of I(this,tt,"f").values())Object.freeze(t);return this}_getTestState(){return{types:I(this,ct,"f"),extensions:I(this,bt,"f")}}}ct=new WeakMap,bt=new WeakMap,tt=new WeakMap;const kn=new En(ui,di)._freeze();function mi(e,t){return function(){return e.apply(t,arguments)}}const{toString:Rn}=Object.prototype,{getPrototypeOf:be}=Object,Bt=(e=>t=>{const i=Rn.call(t);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),B=e=>(e=e.toLowerCase(),t=>Bt(t)===e),qt=e=>t=>typeof t===e,{isArray:ht}=Array,yt=qt("undefined");function On(e){return e!==null&&!yt(e)&&e.constructor!==null&&!yt(e.constructor)&&F(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const fi=B("ArrayBuffer");function Tn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&fi(e.buffer),t}const Cn=qt("string"),F=qt("function"),hi=qt("number"),Mt=e=>e!==null&&typeof e=="object",jn=e=>e===!0||e===!1,jt=e=>{if(Bt(e)!=="object")return!1;const t=be(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},An=B("Date"),Ln=B("File"),Nn=B("Blob"),Dn=B("FileList"),Pn=e=>Mt(e)&&F(e.pipe),Un=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||F(e.append)&&((t=Bt(e))==="formdata"||t==="object"&&F(e.toString)&&e.toString()==="[object FormData]"))},In=B("URLSearchParams"),[Fn,zn,Bn,qn]=["ReadableStream","Request","Response","Headers"].map(B),Mn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function kt(e,t,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),ht(e))for(n=0,a=e.length;n0;)if(a=i[n],t===a.toLowerCase())return a;return null}const vi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,gi=e=>!yt(e)&&e!==vi;function re(){const{caseless:e}=gi(this)&&this||{},t={},i=(n,a)=>{const s=e&&xi(t,a)||a;jt(t[s])&&jt(n)?t[s]=re(t[s],n):jt(n)?t[s]=re({},n):ht(n)?t[s]=n.slice():t[s]=n};for(let n=0,a=arguments.length;n(kt(t,(a,s)=>{i&&F(a)?e[s]=mi(a,i):e[s]=a},{allOwnKeys:n}),e),Wn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Vn=(e,t,i,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),i&&Object.assign(e.prototype,i)},$n=(e,t,i,n)=>{let a,s,o;const r={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),s=a.length;s-- >0;)o=a[s],(!n||n(o,e,t))&&!r[o]&&(t[o]=e[o],r[o]=!0);e=i!==!1&&be(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},Kn=(e,t,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=t.length;const n=e.indexOf(t,i);return n!==-1&&n===i},Qn=e=>{if(!e)return null;if(ht(e))return e;let t=e.length;if(!hi(t))return null;const i=new Array(t);for(;t-- >0;)i[t]=e[t];return i},Jn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&be(Uint8Array)),Gn=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const s=a.value;t.call(e,s[0],s[1])}},Yn=(e,t)=>{let i;const n=[];for(;(i=e.exec(t))!==null;)n.push(i);return n},Xn=B("HTMLFormElement"),Zn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,n,a){return n.toUpperCase()+a}),Ue=(({hasOwnProperty:e})=>(t,i)=>e.call(t,i))(Object.prototype),ta=B("RegExp"),bi=(e,t)=>{const i=Object.getOwnPropertyDescriptors(e),n={};kt(i,(a,s)=>{let o;(o=t(a,s,e))!==!1&&(n[s]=o||a)}),Object.defineProperties(e,n)},ea=e=>{bi(e,(t,i)=>{if(F(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const n=e[i];if(F(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},ia=(e,t)=>{const i={},n=a=>{a.forEach(s=>{i[s]=!0})};return ht(e)?n(e):n(String(e).split(t)),i},na=()=>{},aa=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Qt="abcdefghijklmnopqrstuvwxyz",Ie="0123456789",wi={DIGIT:Ie,ALPHA:Qt,ALPHA_DIGIT:Qt+Qt.toUpperCase()+Ie},sa=(e=16,t=wi.ALPHA_DIGIT)=>{let i="";const{length:n}=t;for(;e--;)i+=t[Math.random()*n|0];return i};function oa(e){return!!(e&&F(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ra=e=>{const t=new Array(10),i=(n,a)=>{if(Mt(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const s=ht(n)?[]:{};return kt(n,(o,r)=>{const u=i(o,a+1);!yt(u)&&(s[r]=u)}),t[a]=void 0,s}}return n};return i(e,0)},ca=B("AsyncFunction"),pa=e=>e&&(Mt(e)||F(e))&&F(e.then)&&F(e.catch),c={isArray:ht,isArrayBuffer:fi,isBuffer:On,isFormData:Un,isArrayBufferView:Tn,isString:Cn,isNumber:hi,isBoolean:jn,isObject:Mt,isPlainObject:jt,isReadableStream:Fn,isRequest:zn,isResponse:Bn,isHeaders:qn,isUndefined:yt,isDate:An,isFile:Ln,isBlob:Nn,isRegExp:ta,isFunction:F,isStream:Pn,isURLSearchParams:In,isTypedArray:Jn,isFileList:Dn,forEach:kt,merge:re,extend:Hn,trim:Mn,stripBOM:Wn,inherits:Vn,toFlatObject:$n,kindOf:Bt,kindOfTest:B,endsWith:Kn,toArray:Qn,forEachEntry:Gn,matchAll:Yn,isHTMLForm:Xn,hasOwnProperty:Ue,hasOwnProp:Ue,reduceDescriptors:bi,freezeMethods:ea,toObjectSet:ia,toCamelCase:Zn,noop:na,toFiniteNumber:aa,findKey:xi,global:vi,isContextDefined:gi,ALPHABET:wi,generateString:sa,isSpecCompliantForm:oa,toJSONObject:ra,isAsyncFn:ca,isThenable:pa};function v(e,t,i,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),i&&(this.config=i),n&&(this.request=n),a&&(this.response=a)}c.inherits(v,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const yi=v.prototype,Si={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Si[e]={value:e}});Object.defineProperties(v,Si);Object.defineProperty(yi,"isAxiosError",{value:!0});v.from=(e,t,i,n,a,s)=>{const o=Object.create(yi);return c.toFlatObject(e,o,function(u){return u!==Error.prototype},r=>r!=="isAxiosError"),v.call(o,e.message,t,i,n,a),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const la=null;function ce(e){return c.isPlainObject(e)||c.isArray(e)}function _i(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function Fe(e,t,i){return e?e.concat(t).map(function(a,s){return a=_i(a),!i&&s?"["+a+"]":a}).join(i?".":""):t}function da(e){return c.isArray(e)&&!e.some(ce)}const ua=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function Ht(e,t,i){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,i=c.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,b){return!c.isUndefined(b[h])});const n=i.metaTokens,a=i.visitor||p,s=i.dots,o=i.indexes,u=(i.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(a))throw new TypeError("visitor must be a function");function l(f){if(f===null)return"";if(c.isDate(f))return f.toISOString();if(!u&&c.isBlob(f))throw new v("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(f)||c.isTypedArray(f)?u&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function p(f,h,b){let T=f;if(f&&!b&&typeof f=="object"){if(c.endsWith(h,"{}"))h=n?h:h.slice(0,-2),f=JSON.stringify(f);else if(c.isArray(f)&&da(f)||(c.isFileList(f)||c.endsWith(h,"[]"))&&(T=c.toArray(f)))return h=_i(h),T.forEach(function(E,J){!(c.isUndefined(E)||E===null)&&t.append(o===!0?Fe([h],J,s):o===null?h:h+"[]",l(E))}),!1}return ce(f)?!0:(t.append(Fe(b,h,s),l(f)),!1)}const m=[],_=Object.assign(ua,{defaultVisitor:p,convertValue:l,isVisitable:ce});function x(f,h){if(!c.isUndefined(f)){if(m.indexOf(f)!==-1)throw Error("Circular reference detected in "+h.join("."));m.push(f),c.forEach(f,function(T,P){(!(c.isUndefined(T)||T===null)&&a.call(t,T,c.isString(P)?P.trim():P,h,_))===!0&&x(T,h?h.concat(P):[P])}),m.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return x(e),t}function ze(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function we(e,t){this._pairs=[],e&&Ht(e,this,t)}const Ei=we.prototype;Ei.append=function(t,i){this._pairs.push([t,i])};Ei.toString=function(t){const i=t?function(n){return t.call(this,n,ze)}:ze;return this._pairs.map(function(a){return i(a[0])+"="+i(a[1])},"").join("&")};function ma(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ki(e,t,i){if(!t)return e;const n=i&&i.encode||ma,a=i&&i.serialize;let s;if(a?s=a(t,i):s=c.isURLSearchParams(t)?t.toString():new we(t,i).toString(n),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Be{constructor(){this.handlers=[]}use(t,i,n){return this.handlers.push({fulfilled:t,rejected:i,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Ri={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fa=typeof URLSearchParams<"u"?URLSearchParams:we,ha=typeof FormData<"u"?FormData:null,xa=typeof Blob<"u"?Blob:null,va={isBrowser:!0,classes:{URLSearchParams:fa,FormData:ha,Blob:xa},protocols:["http","https","file","blob","url","data"]},ye=typeof window<"u"&&typeof document<"u",ga=(e=>ye&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),ba=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wa=ye&&window.location.href||"http://localhost",ya=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ye,hasStandardBrowserEnv:ga,hasStandardBrowserWebWorkerEnv:ba,origin:wa},Symbol.toStringTag,{value:"Module"})),z={...ya,...va};function Sa(e,t){return Ht(e,new z.classes.URLSearchParams,Object.assign({visitor:function(i,n,a,s){return z.isNode&&c.isBuffer(i)?(this.append(n,i.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function _a(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ea(e){const t={},i=Object.keys(e);let n;const a=i.length;let s;for(n=0;n=i.length;return o=!o&&c.isArray(a)?a.length:o,u?(c.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!r):((!a[o]||!c.isObject(a[o]))&&(a[o]=[]),t(i,n,a[o],s)&&c.isArray(a[o])&&(a[o]=Ea(a[o])),!r)}if(c.isFormData(e)&&c.isFunction(e.entries)){const i={};return c.forEachEntry(e,(n,a)=>{t(_a(n),a,i,0)}),i}return null}function ka(e,t,i){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(i||JSON.stringify)(e)}const Rt={transitional:Ri,adapter:["xhr","http","fetch"],transformRequest:[function(t,i){const n=i.getContentType()||"",a=n.indexOf("application/json")>-1,s=c.isObject(t);if(s&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return a?JSON.stringify(Oi(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let r;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Sa(t,this.formSerializer).toString();if((r=c.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Ht(r?{"files[]":t}:t,u&&new u,this.formSerializer)}}return s||a?(i.setContentType("application/json",!1),ka(t)):t}],transformResponse:[function(t){const i=this.transitional||Rt.transitional,n=i&&i.forcedJSONParsing,a=this.responseType==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(n&&!this.responseType||a)){const o=!(i&&i.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(r){if(o)throw r.name==="SyntaxError"?v.from(r,v.ERR_BAD_RESPONSE,this,null,this.response):r}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:z.classes.FormData,Blob:z.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{Rt.headers[e]={}});const Ra=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Oa=e=>{const t={};let i,n,a;return e&&e.split(` +var Wi=Object.defineProperty;var Te=e=>{throw TypeError(e)};var Vi=(e,t,i)=>t in e?Wi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var $t=(e,t,i)=>Vi(e,typeof t!="symbol"?t+"":t,i),Kt=(e,t,i)=>t.has(e)||Te("Cannot "+i);var d=(e,t,i)=>(Kt(e,t,"read from private field"),i?i.call(e):t.get(e)),O=(e,t,i)=>t.has(e)?Te("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),S=(e,t,i,n)=>(Kt(e,t,"write to private field"),n?n.call(e,i):t.set(e,i),i),k=(e,t,i)=>(Kt(e,t,"access private method"),i);import{c as U,j as st,a as C}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{F as Ut}from"./Flex-DMgVUl98.js";import"./iframe-AJyGuqY3.js";import{r as w}from"./index-Bs6nXyGp.js";import{B as si}from"./Button-D1nFQNRa.js";import{L as $i}from"./Label-BPjTE68Y.js";import{t as It}from"./theme-Cuq_aI8Z.js";import{S as oi,k as M,l as Nt,r as Tt,b as Ki,q as Ce,t as je,v as Qi,f as Ji,w as Gi,x as Ae,n as Ft,i as Le,y as Yi,u as xe}from"./QueryClientProvider-BufXlfUi.js";import{P as ri}from"./path-8_1M5Knd.js";import{e as Xi}from"./file-CAHT9y9p.js";import{I as Zi}from"./Input-B4nzLRzl.js";import{H as tn}from"./Heading-FD1nScCb.js";import{T as Ne}from"./Text-9RJ8J0eA.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="54f9bf91-3ed3-46dc-9c19-7826083c92b2",e._sentryDebugIdIdentifier="sentry-dbid-54f9bf91-3ed3-46dc-9c19-7826083c92b2")}catch{}})();const en=U({fontWeight:600,marginTop:"1.6rem"}),nn=U({marginTop:"1.2rem"}),an=U({...It.heading.heading06,fontWeight:500}),sn={NAME:1,CATEGORY:2,IMAGE:3,BLOCK:1,UPLOAD:2},on={NAME:3,CATEGORY:3,IMAGE:3,BLOCK:2,UPLOAD:2},oo={BLOCK:"블록을 삭제하시겠습니까?",DOCS:"문서를 삭제하시겠습니까?"},ro={BLOCK:"삭제된 블록은 복구할 수 없습니다.",DOCS:"삭제된 문서는 복구할 수 없습니다."},zt=({step:e,title:t,info:i})=>{const n=a=>{if(!a)return;const s=a.toUpperCase();return on[s]??void 0};return st(Ut,{tag:"section",styles:{direction:"column",justify:"center",align:"center"},children:[e!==void 0&&st(Ne,{css:an,children:[sn[e.toUpperCase()],"/",n(e)]}),C(tn,{css:en,tag:"H5",children:t}),C(Ne,{tag:"body4",css:nn,children:i})]})};zt.__docgenInfo={description:"",methods:[],displayName:"WorkSpaceInfo",props:{step:{required:!1,tsType:{name:"union",raw:"'name' | 'category' | 'image' | 'block' | 'upload'",elements:[{name:"literal",value:"'name'"},{name:"literal",value:"'category'"},{name:"literal",value:"'image'"},{name:"literal",value:"'block'"},{name:"literal",value:"'upload'"}]},description:""},title:{required:!0,tsType:{name:"string"},description:""},info:{required:!0,tsType:{name:"string"},description:""}}};var L,g,_t,A,et,lt,q,Et,dt,ut,it,nt,Y,mt,y,gt,Xt,Zt,te,ee,ie,ne,ae,ci,ni,rn=(ni=class extends oi{constructor(t,i){super();O(this,y);O(this,L);O(this,g);O(this,_t);O(this,A);O(this,et);O(this,lt);O(this,q);O(this,Et);O(this,dt);O(this,ut);O(this,it);O(this,nt);O(this,Y);O(this,mt,new Set);this.options=i,S(this,L,t),S(this,q,null),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(d(this,g).addObserver(this),De(d(this,g),this.options)?k(this,y,gt).call(this):this.updateResult(),k(this,y,ee).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return se(d(this,g),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return se(d(this,g),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,k(this,y,ie).call(this),k(this,y,ne).call(this),d(this,g).removeObserver(this)}setOptions(t,i){const n=this.options,a=d(this,g);if(this.options=d(this,L).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof M(this.options.enabled,d(this,g))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");k(this,y,ae).call(this),d(this,g).setOptions(this.options),n._defaulted&&!Nt(this.options,n)&&d(this,L).getQueryCache().notify({type:"observerOptionsUpdated",query:d(this,g),observer:this});const s=this.hasListeners();s&&Pe(d(this,g),a,this.options,n)&&k(this,y,gt).call(this),this.updateResult(i),s&&(d(this,g)!==a||M(this.options.enabled,d(this,g))!==M(n.enabled,d(this,g))||Tt(this.options.staleTime,d(this,g))!==Tt(n.staleTime,d(this,g)))&&k(this,y,Xt).call(this);const o=k(this,y,Zt).call(this);s&&(d(this,g)!==a||M(this.options.enabled,d(this,g))!==M(n.enabled,d(this,g))||o!==d(this,Y))&&k(this,y,te).call(this,o)}getOptimisticResult(t){const i=d(this,L).getQueryCache().build(d(this,L),t),n=this.createResult(i,t);return pn(this,n)&&(S(this,A,n),S(this,lt,this.options),S(this,et,d(this,g).state)),n}getCurrentResult(){return d(this,A)}trackResult(t,i){const n={};return Object.keys(t).forEach(a=>{Object.defineProperty(n,a,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(a),i==null||i(a),t[a])})}),n}trackProp(t){d(this,mt).add(t)}getCurrentQuery(){return d(this,g)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const i=d(this,L).defaultQueryOptions(t),n=d(this,L).getQueryCache().build(d(this,L),i);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,i))}fetch(t){return k(this,y,gt).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),d(this,A)))}createResult(t,i){var W;const n=d(this,g),a=this.options,s=d(this,A),o=d(this,et),r=d(this,lt),l=t!==n?t.state:d(this,_t),{state:p}=t;let m={...p},_=!1,x;if(i._optimisticResults){const j=this.hasListeners(),Vt=!j&&De(t,i),Hi=j&&Pe(t,n,i,a);(Vt||Hi)&&(m={...m,...Gi(p.data,t.options)}),i._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:f,errorUpdatedAt:h,status:b}=m;if(i.select&&m.data!==void 0)if(s&&m.data===(o==null?void 0:o.data)&&i.select===d(this,Et))x=d(this,dt);else try{S(this,Et,i.select),x=i.select(m.data),x=Ae(s==null?void 0:s.data,x,i),S(this,dt,x),S(this,q,null)}catch(j){S(this,q,j)}else x=m.data;if(i.placeholderData!==void 0&&x===void 0&&b==="pending"){let j;if(s!=null&&s.isPlaceholderData&&i.placeholderData===(r==null?void 0:r.placeholderData))j=s.data;else if(j=typeof i.placeholderData=="function"?i.placeholderData((W=d(this,ut))==null?void 0:W.state.data,d(this,ut)):i.placeholderData,i.select&&j!==void 0)try{j=i.select(j),S(this,q,null)}catch(Vt){S(this,q,Vt)}j!==void 0&&(b="success",x=Ae(s==null?void 0:s.data,j,i),_=!0)}d(this,q)&&(f=d(this,q),x=d(this,dt),h=Date.now(),b="error");const T=m.fetchStatus==="fetching",P=b==="pending",E=b==="error",J=P&&T,Ot=x!==void 0;return{status:b,fetchStatus:m.fetchStatus,isPending:P,isSuccess:b==="success",isError:E,isInitialLoading:J,isLoading:J,data:x,dataUpdatedAt:m.dataUpdatedAt,error:f,errorUpdatedAt:h,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>l.dataUpdateCount||m.errorUpdateCount>l.errorUpdateCount,isFetching:T,isRefetching:T&&!P,isLoadingError:E&&!Ot,isPaused:m.fetchStatus==="paused",isPlaceholderData:_,isRefetchError:E&&Ot,isStale:ve(t,i),refetch:this.refetch}}updateResult(t){const i=d(this,A),n=this.createResult(d(this,g),this.options);if(S(this,et,d(this,g).state),S(this,lt,this.options),d(this,et).data!==void 0&&S(this,ut,d(this,g)),Nt(n,i))return;S(this,A,n);const a={},s=()=>{if(!i)return!0;const{notifyOnChangeProps:o}=this.options,r=typeof o=="function"?o():o;if(r==="all"||!r&&!d(this,mt).size)return!0;const u=new Set(r??d(this,mt));return this.options.throwOnError&&u.add("error"),Object.keys(d(this,A)).some(l=>{const p=l;return d(this,A)[p]!==i[p]&&u.has(p)})};(t==null?void 0:t.listeners)!==!1&&s()&&(a.listeners=!0),k(this,y,ci).call(this,{...a,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&k(this,y,ee).call(this)}},L=new WeakMap,g=new WeakMap,_t=new WeakMap,A=new WeakMap,et=new WeakMap,lt=new WeakMap,q=new WeakMap,Et=new WeakMap,dt=new WeakMap,ut=new WeakMap,it=new WeakMap,nt=new WeakMap,Y=new WeakMap,mt=new WeakMap,y=new WeakSet,gt=function(t){k(this,y,ae).call(this);let i=d(this,g).fetch(this.options,t);return t!=null&&t.throwOnError||(i=i.catch(Ki)),i},Xt=function(){k(this,y,ie).call(this);const t=Tt(this.options.staleTime,d(this,g));if(Ce||d(this,A).isStale||!je(t))return;const n=Qi(d(this,A).dataUpdatedAt,t)+1;S(this,it,setTimeout(()=>{d(this,A).isStale||this.updateResult()},n))},Zt=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(d(this,g)):this.options.refetchInterval)??!1},te=function(t){k(this,y,ne).call(this),S(this,Y,t),!(Ce||M(this.options.enabled,d(this,g))===!1||!je(d(this,Y))||d(this,Y)===0)&&S(this,nt,setInterval(()=>{(this.options.refetchIntervalInBackground||Ji.isFocused())&&k(this,y,gt).call(this)},d(this,Y)))},ee=function(){k(this,y,Xt).call(this),k(this,y,te).call(this,k(this,y,Zt).call(this))},ie=function(){d(this,it)&&(clearTimeout(d(this,it)),S(this,it,void 0))},ne=function(){d(this,nt)&&(clearInterval(d(this,nt)),S(this,nt,void 0))},ae=function(){const t=d(this,L).getQueryCache().build(d(this,L),this.options);if(t===d(this,g))return;const i=d(this,g);S(this,g,t),S(this,_t,t.state),this.hasListeners()&&(i==null||i.removeObserver(this),t.addObserver(this))},ci=function(t){Ft.batch(()=>{t.listeners&&this.listeners.forEach(i=>{i(d(this,A))}),d(this,L).getQueryCache().notify({query:d(this,g),type:"observerResultsUpdated"})})},ni);function cn(e,t){return M(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function De(e,t){return cn(e,t)||e.state.data!==void 0&&se(e,t,t.refetchOnMount)}function se(e,t,i){if(M(t.enabled,e)!==!1){const n=typeof i=="function"?i(e):i;return n==="always"||n!==!1&&ve(e,t)}return!1}function Pe(e,t,i,n){return(e!==t||M(n.enabled,e)===!1)&&(!i.suspense||e.state.status!=="error")&&ve(e,i)}function ve(e,t){return M(t.enabled,e)!==!1&&e.isStaleByTime(Tt(t.staleTime,e))}function pn(e,t){return!Nt(e.getCurrentResult(),t)}var X,Z,N,$,K,Ct,oe,ai,ln=(ai=class extends oi{constructor(t,i){super();O(this,K);O(this,X);O(this,Z);O(this,N);O(this,$);S(this,X,t),this.setOptions(i),this.bindMethods(),k(this,K,Ct).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const i=this.options;this.options=d(this,X).defaultMutationOptions(t),Nt(this.options,i)||d(this,X).getMutationCache().notify({type:"observerOptionsUpdated",mutation:d(this,N),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&Le(i.mutationKey)!==Le(this.options.mutationKey)?this.reset():((n=d(this,N))==null?void 0:n.state.status)==="pending"&&d(this,N).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=d(this,N))==null||t.removeObserver(this)}onMutationUpdate(t){k(this,K,Ct).call(this),k(this,K,oe).call(this,t)}getCurrentResult(){return d(this,Z)}reset(){var t;(t=d(this,N))==null||t.removeObserver(this),S(this,N,void 0),k(this,K,Ct).call(this),k(this,K,oe).call(this)}mutate(t,i){var n;return S(this,$,i),(n=d(this,N))==null||n.removeObserver(this),S(this,N,d(this,X).getMutationCache().build(d(this,X),this.options)),d(this,N).addObserver(this),d(this,N).execute(t)}},X=new WeakMap,Z=new WeakMap,N=new WeakMap,$=new WeakMap,K=new WeakSet,Ct=function(){var i;const t=((i=d(this,N))==null?void 0:i.state)??Yi();S(this,Z,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},oe=function(t){Ft.batch(()=>{var i,n,a,s,o,r,u,l;if(d(this,$)&&this.hasListeners()){const p=d(this,Z).variables,m=d(this,Z).context;(t==null?void 0:t.type)==="success"?((n=(i=d(this,$)).onSuccess)==null||n.call(i,t.data,p,m),(s=(a=d(this,$)).onSettled)==null||s.call(a,t.data,null,p,m)):(t==null?void 0:t.type)==="error"&&((r=(o=d(this,$)).onError)==null||r.call(o,t.error,p,m),(l=(u=d(this,$)).onSettled)==null||l.call(u,void 0,t.error,p,m))}this.listeners.forEach(p=>{p(d(this,Z))})})},ai),pi=w.createContext(!1),dn=()=>w.useContext(pi);pi.Provider;function un(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var mn=w.createContext(un()),fn=()=>w.useContext(mn);function li(e,t){return typeof e=="function"?e(...t):!!e}function hn(){}var xn=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},vn=e=>{w.useEffect(()=>{e.clearReset()},[e])},gn=({result:e,errorResetBoundary:t,throwOnError:i,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&li(i,[e.error,n]),co=(e,t)=>t.state.data===void 0,bn=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},wn=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,yn=(e,t,i)=>t.fetchOptimistic(e).catch(()=>{i.clearReset()});function Sn(e,t,i){var l,p,m,_;const n=xe(),a=dn(),s=fn(),o=n.defaultQueryOptions(e);(p=(l=n.getDefaultOptions().queries)==null?void 0:l._experimental_beforeQuery)==null||p.call(l,o),o._optimisticResults=a?"isRestoring":"optimistic",bn(o),xn(o,s),vn(s);const[r]=w.useState(()=>new t(n,o)),u=r.getOptimisticResult(o);if(w.useSyncExternalStore(w.useCallback(x=>{const f=a?()=>{}:r.subscribe(Ft.batchCalls(x));return r.updateResult(),f},[r,a]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),w.useEffect(()=>{r.setOptions(o,{listeners:!1})},[o,r]),wn(o,u))throw yn(o,r,s);if(gn({result:u,errorResetBoundary:s,throwOnError:o.throwOnError,query:n.getQueryCache().get(o.queryHash)}))throw u.error;return(_=(m=n.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||_.call(m,o,u),o.notifyOnChangeProps?u:r.trackResult(u)}function _n(e,t){return Sn(e,rn)}function ge(e,t){const i=xe(),[n]=w.useState(()=>new ln(i,e));w.useEffect(()=>{n.setOptions(e)},[n,e]);const a=w.useSyncExternalStore(w.useCallback(o=>n.subscribe(Ft.batchCalls(o)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),s=w.useCallback((o,r)=>{n.mutate(o,r).catch(hn)},[n]);if(a.error&&li(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}const di={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze(di);const ui={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(ui);var I=function(e,t,i,n){if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?n:i==="a"?n.call(e):n?n.value:t.get(e)},ct,bt,tt;class En{constructor(...t){ct.set(this,new Map),bt.set(this,new Map),tt.set(this,new Map);for(const i of t)this.define(i)}define(t,i=!1){for(let[n,a]of Object.entries(t)){n=n.toLowerCase(),a=a.map(r=>r.toLowerCase()),I(this,tt,"f").has(n)||I(this,tt,"f").set(n,new Set);const s=I(this,tt,"f").get(n);let o=!0;for(let r of a){const u=r.startsWith("*");if(r=u?r.slice(1):r,s==null||s.add(r),o&&I(this,bt,"f").set(n,r),o=!1,u)continue;const l=I(this,ct,"f").get(r);if(l&&l!=n&&!i)throw new Error(`"${n} -> ${r}" conflicts with "${l} -> ${r}". Pass \`force=true\` to override this definition.`);I(this,ct,"f").set(r,n)}}return this}getType(t){if(typeof t!="string")return null;const i=t.replace(/^.*[/\\]/,"").toLowerCase(),n=i.replace(/^.*\./,"").toLowerCase(),a=i.length{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const t of I(this,tt,"f").values())Object.freeze(t);return this}_getTestState(){return{types:I(this,ct,"f"),extensions:I(this,bt,"f")}}}ct=new WeakMap,bt=new WeakMap,tt=new WeakMap;const kn=new En(ui,di)._freeze();function mi(e,t){return function(){return e.apply(t,arguments)}}const{toString:Rn}=Object.prototype,{getPrototypeOf:be}=Object,Bt=(e=>t=>{const i=Rn.call(t);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),B=e=>(e=e.toLowerCase(),t=>Bt(t)===e),qt=e=>t=>typeof t===e,{isArray:ht}=Array,yt=qt("undefined");function On(e){return e!==null&&!yt(e)&&e.constructor!==null&&!yt(e.constructor)&&F(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const fi=B("ArrayBuffer");function Tn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&fi(e.buffer),t}const Cn=qt("string"),F=qt("function"),hi=qt("number"),Mt=e=>e!==null&&typeof e=="object",jn=e=>e===!0||e===!1,jt=e=>{if(Bt(e)!=="object")return!1;const t=be(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},An=B("Date"),Ln=B("File"),Nn=B("Blob"),Dn=B("FileList"),Pn=e=>Mt(e)&&F(e.pipe),Un=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||F(e.append)&&((t=Bt(e))==="formdata"||t==="object"&&F(e.toString)&&e.toString()==="[object FormData]"))},In=B("URLSearchParams"),[Fn,zn,Bn,qn]=["ReadableStream","Request","Response","Headers"].map(B),Mn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function kt(e,t,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),ht(e))for(n=0,a=e.length;n0;)if(a=i[n],t===a.toLowerCase())return a;return null}const vi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,gi=e=>!yt(e)&&e!==vi;function re(){const{caseless:e}=gi(this)&&this||{},t={},i=(n,a)=>{const s=e&&xi(t,a)||a;jt(t[s])&&jt(n)?t[s]=re(t[s],n):jt(n)?t[s]=re({},n):ht(n)?t[s]=n.slice():t[s]=n};for(let n=0,a=arguments.length;n(kt(t,(a,s)=>{i&&F(a)?e[s]=mi(a,i):e[s]=a},{allOwnKeys:n}),e),Wn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Vn=(e,t,i,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),i&&Object.assign(e.prototype,i)},$n=(e,t,i,n)=>{let a,s,o;const r={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),s=a.length;s-- >0;)o=a[s],(!n||n(o,e,t))&&!r[o]&&(t[o]=e[o],r[o]=!0);e=i!==!1&&be(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},Kn=(e,t,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=t.length;const n=e.indexOf(t,i);return n!==-1&&n===i},Qn=e=>{if(!e)return null;if(ht(e))return e;let t=e.length;if(!hi(t))return null;const i=new Array(t);for(;t-- >0;)i[t]=e[t];return i},Jn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&be(Uint8Array)),Gn=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const s=a.value;t.call(e,s[0],s[1])}},Yn=(e,t)=>{let i;const n=[];for(;(i=e.exec(t))!==null;)n.push(i);return n},Xn=B("HTMLFormElement"),Zn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,n,a){return n.toUpperCase()+a}),Ue=(({hasOwnProperty:e})=>(t,i)=>e.call(t,i))(Object.prototype),ta=B("RegExp"),bi=(e,t)=>{const i=Object.getOwnPropertyDescriptors(e),n={};kt(i,(a,s)=>{let o;(o=t(a,s,e))!==!1&&(n[s]=o||a)}),Object.defineProperties(e,n)},ea=e=>{bi(e,(t,i)=>{if(F(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const n=e[i];if(F(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},ia=(e,t)=>{const i={},n=a=>{a.forEach(s=>{i[s]=!0})};return ht(e)?n(e):n(String(e).split(t)),i},na=()=>{},aa=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Qt="abcdefghijklmnopqrstuvwxyz",Ie="0123456789",wi={DIGIT:Ie,ALPHA:Qt,ALPHA_DIGIT:Qt+Qt.toUpperCase()+Ie},sa=(e=16,t=wi.ALPHA_DIGIT)=>{let i="";const{length:n}=t;for(;e--;)i+=t[Math.random()*n|0];return i};function oa(e){return!!(e&&F(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ra=e=>{const t=new Array(10),i=(n,a)=>{if(Mt(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const s=ht(n)?[]:{};return kt(n,(o,r)=>{const u=i(o,a+1);!yt(u)&&(s[r]=u)}),t[a]=void 0,s}}return n};return i(e,0)},ca=B("AsyncFunction"),pa=e=>e&&(Mt(e)||F(e))&&F(e.then)&&F(e.catch),c={isArray:ht,isArrayBuffer:fi,isBuffer:On,isFormData:Un,isArrayBufferView:Tn,isString:Cn,isNumber:hi,isBoolean:jn,isObject:Mt,isPlainObject:jt,isReadableStream:Fn,isRequest:zn,isResponse:Bn,isHeaders:qn,isUndefined:yt,isDate:An,isFile:Ln,isBlob:Nn,isRegExp:ta,isFunction:F,isStream:Pn,isURLSearchParams:In,isTypedArray:Jn,isFileList:Dn,forEach:kt,merge:re,extend:Hn,trim:Mn,stripBOM:Wn,inherits:Vn,toFlatObject:$n,kindOf:Bt,kindOfTest:B,endsWith:Kn,toArray:Qn,forEachEntry:Gn,matchAll:Yn,isHTMLForm:Xn,hasOwnProperty:Ue,hasOwnProp:Ue,reduceDescriptors:bi,freezeMethods:ea,toObjectSet:ia,toCamelCase:Zn,noop:na,toFiniteNumber:aa,findKey:xi,global:vi,isContextDefined:gi,ALPHABET:wi,generateString:sa,isSpecCompliantForm:oa,toJSONObject:ra,isAsyncFn:ca,isThenable:pa};function v(e,t,i,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),i&&(this.config=i),n&&(this.request=n),a&&(this.response=a)}c.inherits(v,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const yi=v.prototype,Si={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Si[e]={value:e}});Object.defineProperties(v,Si);Object.defineProperty(yi,"isAxiosError",{value:!0});v.from=(e,t,i,n,a,s)=>{const o=Object.create(yi);return c.toFlatObject(e,o,function(u){return u!==Error.prototype},r=>r!=="isAxiosError"),v.call(o,e.message,t,i,n,a),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const la=null;function ce(e){return c.isPlainObject(e)||c.isArray(e)}function _i(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function Fe(e,t,i){return e?e.concat(t).map(function(a,s){return a=_i(a),!i&&s?"["+a+"]":a}).join(i?".":""):t}function da(e){return c.isArray(e)&&!e.some(ce)}const ua=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function Ht(e,t,i){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,i=c.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,b){return!c.isUndefined(b[h])});const n=i.metaTokens,a=i.visitor||p,s=i.dots,o=i.indexes,u=(i.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(a))throw new TypeError("visitor must be a function");function l(f){if(f===null)return"";if(c.isDate(f))return f.toISOString();if(!u&&c.isBlob(f))throw new v("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(f)||c.isTypedArray(f)?u&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function p(f,h,b){let T=f;if(f&&!b&&typeof f=="object"){if(c.endsWith(h,"{}"))h=n?h:h.slice(0,-2),f=JSON.stringify(f);else if(c.isArray(f)&&da(f)||(c.isFileList(f)||c.endsWith(h,"[]"))&&(T=c.toArray(f)))return h=_i(h),T.forEach(function(E,J){!(c.isUndefined(E)||E===null)&&t.append(o===!0?Fe([h],J,s):o===null?h:h+"[]",l(E))}),!1}return ce(f)?!0:(t.append(Fe(b,h,s),l(f)),!1)}const m=[],_=Object.assign(ua,{defaultVisitor:p,convertValue:l,isVisitable:ce});function x(f,h){if(!c.isUndefined(f)){if(m.indexOf(f)!==-1)throw Error("Circular reference detected in "+h.join("."));m.push(f),c.forEach(f,function(T,P){(!(c.isUndefined(T)||T===null)&&a.call(t,T,c.isString(P)?P.trim():P,h,_))===!0&&x(T,h?h.concat(P):[P])}),m.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return x(e),t}function ze(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function we(e,t){this._pairs=[],e&&Ht(e,this,t)}const Ei=we.prototype;Ei.append=function(t,i){this._pairs.push([t,i])};Ei.toString=function(t){const i=t?function(n){return t.call(this,n,ze)}:ze;return this._pairs.map(function(a){return i(a[0])+"="+i(a[1])},"").join("&")};function ma(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ki(e,t,i){if(!t)return e;const n=i&&i.encode||ma,a=i&&i.serialize;let s;if(a?s=a(t,i):s=c.isURLSearchParams(t)?t.toString():new we(t,i).toString(n),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Be{constructor(){this.handlers=[]}use(t,i,n){return this.handlers.push({fulfilled:t,rejected:i,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Ri={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fa=typeof URLSearchParams<"u"?URLSearchParams:we,ha=typeof FormData<"u"?FormData:null,xa=typeof Blob<"u"?Blob:null,va={isBrowser:!0,classes:{URLSearchParams:fa,FormData:ha,Blob:xa},protocols:["http","https","file","blob","url","data"]},ye=typeof window<"u"&&typeof document<"u",ga=(e=>ye&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),ba=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wa=ye&&window.location.href||"http://localhost",ya=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ye,hasStandardBrowserEnv:ga,hasStandardBrowserWebWorkerEnv:ba,origin:wa},Symbol.toStringTag,{value:"Module"})),z={...ya,...va};function Sa(e,t){return Ht(e,new z.classes.URLSearchParams,Object.assign({visitor:function(i,n,a,s){return z.isNode&&c.isBuffer(i)?(this.append(n,i.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function _a(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ea(e){const t={},i=Object.keys(e);let n;const a=i.length;let s;for(n=0;n=i.length;return o=!o&&c.isArray(a)?a.length:o,u?(c.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!r):((!a[o]||!c.isObject(a[o]))&&(a[o]=[]),t(i,n,a[o],s)&&c.isArray(a[o])&&(a[o]=Ea(a[o])),!r)}if(c.isFormData(e)&&c.isFunction(e.entries)){const i={};return c.forEachEntry(e,(n,a)=>{t(_a(n),a,i,0)}),i}return null}function ka(e,t,i){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(i||JSON.stringify)(e)}const Rt={transitional:Ri,adapter:["xhr","http","fetch"],transformRequest:[function(t,i){const n=i.getContentType()||"",a=n.indexOf("application/json")>-1,s=c.isObject(t);if(s&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return a?JSON.stringify(Oi(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let r;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Sa(t,this.formSerializer).toString();if((r=c.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Ht(r?{"files[]":t}:t,u&&new u,this.formSerializer)}}return s||a?(i.setContentType("application/json",!1),ka(t)):t}],transformResponse:[function(t){const i=this.transitional||Rt.transitional,n=i&&i.forcedJSONParsing,a=this.responseType==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(n&&!this.responseType||a)){const o=!(i&&i.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(r){if(o)throw r.name==="SyntaxError"?v.from(r,v.ERR_BAD_RESPONSE,this,null,this.response):r}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:z.classes.FormData,Blob:z.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{Rt.headers[e]={}});const Ra=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Oa=e=>{const t={};let i,n,a;return e&&e.split(` `).forEach(function(o){a=o.indexOf(":"),i=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!i||t[i]&&Ra[i])&&(i==="set-cookie"?t[i]?t[i].push(n):t[i]=[n]:t[i]=t[i]?t[i]+", "+n:n)}),t},qe=Symbol("internals");function vt(e){return e&&String(e).trim().toLowerCase()}function At(e){return e===!1||e==null?e:c.isArray(e)?e.map(At):String(e)}function Ta(e){const t=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=i.exec(e);)t[n[1]]=n[2];return t}const Ca=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Jt(e,t,i,n,a){if(c.isFunction(n))return n.call(this,t,i);if(a&&(t=i),!!c.isString(t)){if(c.isString(n))return t.indexOf(n)!==-1;if(c.isRegExp(n))return n.test(t)}}function ja(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,i,n)=>i.toUpperCase()+n)}function Aa(e,t){const i=c.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+i,{value:function(a,s,o){return this[n].call(this,t,a,s,o)},configurable:!0})})}class D{constructor(t){t&&this.set(t)}set(t,i,n){const a=this;function s(r,u,l){const p=vt(u);if(!p)throw new Error("header name must be a non-empty string");const m=c.findKey(a,p);(!m||a[m]===void 0||l===!0||l===void 0&&a[m]!==!1)&&(a[m||u]=At(r))}const o=(r,u)=>c.forEach(r,(l,p)=>s(l,p,u));if(c.isPlainObject(t)||t instanceof this.constructor)o(t,i);else if(c.isString(t)&&(t=t.trim())&&!Ca(t))o(Oa(t),i);else if(c.isHeaders(t))for(const[r,u]of t.entries())s(u,r,n);else t!=null&&s(i,t,n);return this}get(t,i){if(t=vt(t),t){const n=c.findKey(this,t);if(n){const a=this[n];if(!i)return a;if(i===!0)return Ta(a);if(c.isFunction(i))return i.call(this,a,n);if(c.isRegExp(i))return i.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,i){if(t=vt(t),t){const n=c.findKey(this,t);return!!(n&&this[n]!==void 0&&(!i||Jt(this,this[n],n,i)))}return!1}delete(t,i){const n=this;let a=!1;function s(o){if(o=vt(o),o){const r=c.findKey(n,o);r&&(!i||Jt(n,n[r],r,i))&&(delete n[r],a=!0)}}return c.isArray(t)?t.forEach(s):s(t),a}clear(t){const i=Object.keys(this);let n=i.length,a=!1;for(;n--;){const s=i[n];(!t||Jt(this,this[s],s,t,!0))&&(delete this[s],a=!0)}return a}normalize(t){const i=this,n={};return c.forEach(this,(a,s)=>{const o=c.findKey(n,s);if(o){i[o]=At(a),delete i[s];return}const r=t?ja(s):String(s).trim();r!==s&&delete i[s],i[r]=At(a),n[r]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const i=Object.create(null);return c.forEach(this,(n,a)=>{n!=null&&n!==!1&&(i[a]=t&&c.isArray(n)?n.join(", "):n)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,i])=>t+": "+i).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...i){const n=new this(t);return i.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[qe]=this[qe]={accessors:{}}).accessors,a=this.prototype;function s(o){const r=vt(o);n[r]||(Aa(a,o),n[r]=!0)}return c.isArray(t)?t.forEach(s):s(t),this}}D.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(D.prototype,({value:e},t)=>{let i=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[i]=n}}});c.freezeMethods(D);function Gt(e,t){const i=this||Rt,n=t||i,a=D.from(n.headers);let s=n.data;return c.forEach(e,function(r){s=r.call(i,s,a.normalize(),t?t.status:void 0)}),a.normalize(),s}function Ti(e){return!!(e&&e.__CANCEL__)}function xt(e,t,i){v.call(this,e??"canceled",v.ERR_CANCELED,t,i),this.name="CanceledError"}c.inherits(xt,v,{__CANCEL__:!0});function Ci(e,t,i){const n=i.config.validateStatus;!i.status||!n||n(i.status)?e(i):t(new v("Request failed with status code "+i.status,[v.ERR_BAD_REQUEST,v.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function La(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Na(e,t){e=e||10;const i=new Array(e),n=new Array(e);let a=0,s=0,o;return t=t!==void 0?t:1e3,function(u){const l=Date.now(),p=n[s];o||(o=l),i[a]=u,n[a]=l;let m=s,_=0;for(;m!==a;)_+=i[m++],m=m%e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),l-on)return a&&(clearTimeout(a),a=null),i=r,e.apply(null,arguments);a||(a=setTimeout(()=>(a=null,i=Date.now(),e.apply(null,arguments)),n-(r-i)))}}const Dt=(e,t,i=3)=>{let n=0;const a=Na(50,250);return Da(s=>{const o=s.loaded,r=s.lengthComputable?s.total:void 0,u=o-n,l=a(u),p=o<=r;n=o;const m={loaded:o,total:r,progress:r?o/r:void 0,bytes:u,rate:l||void 0,estimated:l&&r&&p?(r-o)/l:void 0,event:s,lengthComputable:r!=null};m[t?"download":"upload"]=!0,e(m)},i)},Pa=z.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");let n;function a(s){let o=s;return t&&(i.setAttribute("href",o),o=i.href),i.setAttribute("href",o),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}return n=a(window.location.href),function(o){const r=c.isString(o)?a(o):o;return r.protocol===n.protocol&&r.host===n.host}}():function(){return function(){return!0}}(),Ua=z.hasStandardBrowserEnv?{write(e,t,i,n,a,s){const o=[e+"="+encodeURIComponent(t)];c.isNumber(i)&&o.push("expires="+new Date(i).toGMTString()),c.isString(n)&&o.push("path="+n),c.isString(a)&&o.push("domain="+a),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ia(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Fa(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ji(e,t){return e&&!Ia(t)?Fa(e,t):t}const Me=e=>e instanceof D?{...e}:e;function ot(e,t){t=t||{};const i={};function n(l,p,m){return c.isPlainObject(l)&&c.isPlainObject(p)?c.merge.call({caseless:m},l,p):c.isPlainObject(p)?c.merge({},p):c.isArray(p)?p.slice():p}function a(l,p,m){if(c.isUndefined(p)){if(!c.isUndefined(l))return n(void 0,l,m)}else return n(l,p,m)}function s(l,p){if(!c.isUndefined(p))return n(void 0,p)}function o(l,p){if(c.isUndefined(p)){if(!c.isUndefined(l))return n(void 0,l)}else return n(void 0,p)}function r(l,p,m){if(m in t)return n(l,p);if(m in e)return n(void 0,l)}const u={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:r,headers:(l,p)=>a(Me(l),Me(p),!0)};return c.forEach(Object.keys(Object.assign({},e,t)),function(p){const m=u[p]||a,_=m(e[p],t[p],p);c.isUndefined(_)&&m!==r||(i[p]=_)}),i}const Ai=e=>{const t=ot({},e);let{data:i,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:s,headers:o,auth:r}=t;t.headers=o=D.from(o),t.url=ki(ji(t.baseURL,t.url),e.params,e.paramsSerializer),r&&o.set("Authorization","Basic "+btoa((r.username||"")+":"+(r.password?unescape(encodeURIComponent(r.password)):"")));let u;if(c.isFormData(i)){if(z.hasStandardBrowserEnv||z.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((u=o.getContentType())!==!1){const[l,...p]=u?u.split(";").map(m=>m.trim()).filter(Boolean):[];o.setContentType([l||"multipart/form-data",...p].join("; "))}}if(z.hasStandardBrowserEnv&&(n&&c.isFunction(n)&&(n=n(t)),n||n!==!1&&Pa(t.url))){const l=a&&s&&Ua.read(s);l&&o.set(a,l)}return t},za=typeof XMLHttpRequest<"u",Ba=za&&function(e){return new Promise(function(i,n){const a=Ai(e);let s=a.data;const o=D.from(a.headers).normalize();let{responseType:r}=a,u;function l(){a.cancelToken&&a.cancelToken.unsubscribe(u),a.signal&&a.signal.removeEventListener("abort",u)}let p=new XMLHttpRequest;p.open(a.method.toUpperCase(),a.url,!0),p.timeout=a.timeout;function m(){if(!p)return;const x=D.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),h={data:!r||r==="text"||r==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:x,config:e,request:p};Ci(function(T){i(T),l()},function(T){n(T),l()},h),p=null}"onloadend"in p?p.onloadend=m:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(m)},p.onabort=function(){p&&(n(new v("Request aborted",v.ECONNABORTED,a,p)),p=null)},p.onerror=function(){n(new v("Network Error",v.ERR_NETWORK,a,p)),p=null},p.ontimeout=function(){let f=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const h=a.transitional||Ri;a.timeoutErrorMessage&&(f=a.timeoutErrorMessage),n(new v(f,h.clarifyTimeoutError?v.ETIMEDOUT:v.ECONNABORTED,a,p)),p=null},s===void 0&&o.setContentType(null),"setRequestHeader"in p&&c.forEach(o.toJSON(),function(f,h){p.setRequestHeader(h,f)}),c.isUndefined(a.withCredentials)||(p.withCredentials=!!a.withCredentials),r&&r!=="json"&&(p.responseType=a.responseType),typeof a.onDownloadProgress=="function"&&p.addEventListener("progress",Dt(a.onDownloadProgress,!0)),typeof a.onUploadProgress=="function"&&p.upload&&p.upload.addEventListener("progress",Dt(a.onUploadProgress)),(a.cancelToken||a.signal)&&(u=x=>{p&&(n(!x||x.type?new xt(null,e,p):x),p.abort(),p=null)},a.cancelToken&&a.cancelToken.subscribe(u),a.signal&&(a.signal.aborted?u():a.signal.addEventListener("abort",u)));const _=La(a.url);if(_&&z.protocols.indexOf(_)===-1){n(new v("Unsupported protocol "+_+":",v.ERR_BAD_REQUEST,e));return}p.send(s||null)})},qa=(e,t)=>{let i=new AbortController,n;const a=function(u){if(!n){n=!0,o();const l=u instanceof Error?u:this.reason;i.abort(l instanceof v?l:new xt(l instanceof Error?l.message:l))}};let s=t&&setTimeout(()=>{a(new v(`timeout ${t} of ms exceeded`,v.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u&&(u.removeEventListener?u.removeEventListener("abort",a):u.unsubscribe(a))}),e=null)};e.forEach(u=>u&&u.addEventListener&&u.addEventListener("abort",a));const{signal:r}=i;return r.unsubscribe=o,[r,()=>{s&&clearTimeout(s),s=null}]},Ma=function*(e,t){let i=e.byteLength;if(!t||i{const s=Ha(e,t,a);let o=0;return new ReadableStream({type:"bytes",async pull(r){const{done:u,value:l}=await s.next();if(u){r.close(),n();return}let p=l.byteLength;i&&i(o+=p),r.enqueue(new Uint8Array(l))},cancel(r){return n(r),s.return()}},{highWaterMark:2})},We=(e,t)=>{const i=e!=null;return n=>setTimeout(()=>t({lengthComputable:i,total:e,loaded:n}))},Wt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Li=Wt&&typeof ReadableStream=="function",pe=Wt&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Wa=Li&&(()=>{let e=!1;const t=new Request(z.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Ve=64*1024,le=Li&&!!(()=>{try{return c.isReadableStream(new Response("").body)}catch{}})(),Pt={stream:le&&(e=>e.body)};Wt&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Pt[t]&&(Pt[t]=c.isFunction(e[t])?i=>i[t]():(i,n)=>{throw new v(`Response type '${t}' is not supported`,v.ERR_NOT_SUPPORT,n)})})})(new Response);const Va=async e=>{if(e==null)return 0;if(c.isBlob(e))return e.size;if(c.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(c.isArrayBufferView(e))return e.byteLength;if(c.isURLSearchParams(e)&&(e=e+""),c.isString(e))return(await pe(e)).byteLength},$a=async(e,t)=>{const i=c.toFiniteNumber(e.getContentLength());return i??Va(t)},Ka=Wt&&(async e=>{let{url:t,method:i,data:n,signal:a,cancelToken:s,timeout:o,onDownloadProgress:r,onUploadProgress:u,responseType:l,headers:p,withCredentials:m="same-origin",fetchOptions:_}=Ai(e);l=l?(l+"").toLowerCase():"text";let[x,f]=a||s||o?qa([a,s],o):[],h,b;const T=()=>{!h&&setTimeout(()=>{x&&x.unsubscribe()}),h=!0};let P;try{if(u&&Wa&&i!=="get"&&i!=="head"&&(P=await $a(p,n))!==0){let H=new Request(t,{method:"POST",body:n,duplex:"half"}),W;c.isFormData(n)&&(W=H.headers.get("content-type"))&&p.setContentType(W),H.body&&(n=He(H.body,Ve,We(P,Dt(u)),null,pe))}c.isString(m)||(m=m?"cors":"omit"),b=new Request(t,{..._,signal:x,method:i.toUpperCase(),headers:p.normalize().toJSON(),body:n,duplex:"half",withCredentials:m});let E=await fetch(b);const J=le&&(l==="stream"||l==="response");if(le&&(r||J)){const H={};["status","statusText","headers"].forEach(j=>{H[j]=E[j]});const W=c.toFiniteNumber(E.headers.get("content-length"));E=new Response(He(E.body,Ve,r&&We(W,Dt(r,!0)),J&&T,pe),H)}l=l||"text";let Ot=await Pt[c.findKey(Pt,l)||"text"](E,e);return!J&&T(),f&&f(),await new Promise((H,W)=>{Ci(H,W,{data:Ot,headers:D.from(E.headers),status:E.status,statusText:E.statusText,config:e,request:b})})}catch(E){throw T(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new v("Network Error",v.ERR_NETWORK,e,b),{cause:E.cause||E}):v.from(E,E&&E.code,e,b)}}),de={http:la,xhr:Ba,fetch:Ka};c.forEach(de,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const $e=e=>`- ${e}`,Qa=e=>c.isFunction(e)||e===null||e===!1,Ni={getAdapter:e=>{e=c.isArray(e)?e:[e];const{length:t}=e;let i,n;const a={};for(let s=0;s`adapter ${r} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since : `+s.map($e).join(` `):" "+$e(s[0]):"as no adapter specified";throw new v("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:de};function Yt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xt(null,e)}function Ke(e){return Yt(e),e.headers=D.from(e.headers),e.data=Gt.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ni.getAdapter(e.adapter||Rt.adapter)(e).then(function(n){return Yt(e),n.data=Gt.call(e,e.transformResponse,n),n.headers=D.from(n.headers),n},function(n){return Ti(n)||(Yt(e),n&&n.response&&(n.response.data=Gt.call(e,e.transformResponse,n.response),n.response.headers=D.from(n.response.headers))),Promise.reject(n)})}const Di="1.7.2",Se={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Se[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Qe={};Se.transitional=function(t,i,n){function a(s,o){return"[Axios v"+Di+"] Transitional option '"+s+"'"+o+(n?". "+n:"")}return(s,o,r)=>{if(t===!1)throw new v(a(o," has been removed"+(i?" in "+i:"")),v.ERR_DEPRECATED);return i&&!Qe[o]&&(Qe[o]=!0,console.warn(a(o," has been deprecated since v"+i+" and will be removed in the near future"))),t?t(s,o,r):!0}};function Ja(e,t,i){if(typeof e!="object")throw new v("options must be an object",v.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const s=n[a],o=t[s];if(o){const r=e[s],u=r===void 0||o(r,s,e);if(u!==!0)throw new v("option "+s+" must be "+u,v.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new v("Unknown option "+s,v.ERR_BAD_OPTION)}}const ue={assertOptions:Ja,validators:Se},G=ue.validators;class at{constructor(t){this.defaults=t,this.interceptors={request:new Be,response:new Be}}async request(t,i){try{return await this._request(t,i)}catch(n){if(n instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const s=a.stack?a.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=` -`+s):n.stack=s}catch{}}throw n}}_request(t,i){typeof t=="string"?(i=i||{},i.url=t):i=t||{},i=ot(this.defaults,i);const{transitional:n,paramsSerializer:a,headers:s}=i;n!==void 0&&ue.assertOptions(n,{silentJSONParsing:G.transitional(G.boolean),forcedJSONParsing:G.transitional(G.boolean),clarifyTimeoutError:G.transitional(G.boolean)},!1),a!=null&&(c.isFunction(a)?i.paramsSerializer={serialize:a}:ue.assertOptions(a,{encode:G.function,serialize:G.function},!0)),i.method=(i.method||this.defaults.method||"get").toLowerCase();let o=s&&c.merge(s.common,s[i.method]);s&&c.forEach(["delete","get","head","post","put","patch","common"],f=>{delete s[f]}),i.headers=D.concat(o,s);const r=[];let u=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(i)===!1||(u=u&&h.synchronous,r.unshift(h.fulfilled,h.rejected))});const l=[];this.interceptors.response.forEach(function(h){l.push(h.fulfilled,h.rejected)});let p,m=0,_;if(!u){const f=[Ke.bind(this),void 0];for(f.unshift.apply(f,r),f.push.apply(f,l),_=f.length,p=Promise.resolve(i);m<_;)p=p.then(f[m++],f[m++]);return p}_=r.length;let x=i;for(m=0;m<_;){const f=r[m++],h=r[m++];try{x=f(x)}catch(b){h.call(this,b);break}}try{p=Ke.call(this,x)}catch(f){return Promise.reject(f)}for(m=0,_=l.length;m<_;)p=p.then(l[m++],l[m++]);return p}getUri(t){t=ot(this.defaults,t);const i=ji(t.baseURL,t.url);return ki(i,t.params,t.paramsSerializer)}}c.forEach(["delete","get","head","options"],function(t){at.prototype[t]=function(i,n){return this.request(ot(n||{},{method:t,url:i,data:(n||{}).data}))}});c.forEach(["post","put","patch"],function(t){function i(n){return function(s,o,r){return this.request(ot(r||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}at.prototype[t]=i(),at.prototype[t+"Form"]=i(!0)});class _e{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(s){i=s});const n=this;this.promise.then(a=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](a);n._listeners=null}),this.promise.then=a=>{let s;const o=new Promise(r=>{n.subscribe(r),s=r}).then(a);return o.cancel=function(){n.unsubscribe(s)},o},t(function(s,o,r){n.reason||(n.reason=new xt(s,o,r),i(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const i=this._listeners.indexOf(t);i!==-1&&this._listeners.splice(i,1)}static source(){let t;return{token:new _e(function(a){t=a}),cancel:t}}}function Ga(e){return function(i){return e.apply(null,i)}}function Ya(e){return c.isObject(e)&&e.isAxiosError===!0}const me={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(me).forEach(([e,t])=>{me[t]=e});function Pi(e){const t=new at(e),i=mi(at.prototype.request,t);return c.extend(i,at.prototype,t,{allOwnKeys:!0}),c.extend(i,t,null,{allOwnKeys:!0}),i.create=function(a){return Pi(ot(e,a))},i}const R=Pi(Rt);R.Axios=at;R.CanceledError=xt;R.CancelToken=_e;R.isCancel=Ti;R.VERSION=Di;R.toFormData=Ht;R.AxiosError=v;R.Cancel=R.CanceledError;R.all=function(t){return Promise.all(t)};R.spread=Ga;R.isAxiosError=Ya;R.mergeConfig=ot;R.AxiosHeaders=D;R.formToJSON=e=>Oi(c.isHTMLForm(e)?new FormData(e):e);R.getAdapter=Ni.getAdapter;R.HttpStatusCode=me;R.default=R;const Xa=async(e,t)=>{const i=kn.getType(t.name)||"application/octet-stream",n=await R.put(e,t,{headers:{"Content-Type":i}});if(n.status===200||n.status===204)return e.split("?")[0]},Za=()=>ge({mutationFn:({presignedUrl:e,file:t})=>Xa(e,t)}),ts=Object.prototype.toString;function es(e,t){return ts.call(e)===`[object ${t}]`}function is(e){return es(e,"Object")}function ns(e){return!!(e&&e.then&&typeof e.then=="function")}const wt="8.22.0",Q=globalThis;function Ui(e,t,i){const n=Q,a=n.__SENTRY__=n.__SENTRY__||{},s=a[wt]=a[wt]||{};return s[e]||(s[e]=t())}const Ii=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,as="Sentry Logger ",Je=["debug","info","warn","error","log","assert","trace"],Ge={};function ss(e){if(!("console"in Q))return e();const t=Q.console,i={},n=Object.keys(Ge);n.forEach(a=>{const s=Ge[a];i[a]=t[a],t[a]=s});try{return e()}finally{n.forEach(a=>{t[a]=i[a]})}}function os(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Ii?Je.forEach(i=>{t[i]=(...n)=>{e&&ss(()=>{Q.console[i](`${as}[${i}]:`,...n)})}}):Je.forEach(i=>{t[i]=()=>{}}),t}const Lt=os();function rs(e,t,i){try{Object.defineProperty(e,t,{value:i,writable:!0,configurable:!0})}catch{Ii&&Lt.log(`Failed to add non-enumerable property "${t}" to object`,e)}}const Fi=1e3;function zi(){return Date.now()/Fi}function cs(){const{performance:e}=Q;if(!e||!e.now)return zi;const t=Date.now()-e.now(),i=e.timeOrigin==null?t:e.timeOrigin;return()=>(i+e.now())/Fi}const ps=cs();(()=>{const{performance:e}=Q;if(!e||!e.now)return;const t=3600*1e3,i=e.now(),n=Date.now(),a=e.timeOrigin?Math.abs(e.timeOrigin+i-n):t,s=aMath.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(i=()=>{const n=new Uint8Array(1);return t.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(i()&15)>>n/4).toString(16))}function Ye(){return{traceId:pt(),spanId:pt().substring(16)}}function Bi(){return Ee(Q),Q}function Ee(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||wt,t[wt]=t[wt]||{}}function ls(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||ps(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:pt()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const i=e.timestamp-e.started;e.duration=i>=0?i:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}const fe="_sentrySpan";function Xe(e,t){t?rs(e,fe,t):delete e[fe]}function Ze(e){return e[fe]}const ds=100;class ke{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Ye()}clone(){const t=new ke;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Xe(t,Ze(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&ls(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,i){return this._tags={...this._tags,[t]:i},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,i){return this._extra={...this._extra,[t]:i},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,i){return i===null?delete this._contexts[t]:this._contexts[t]=i,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const i=typeof t=="function"?t(this):t,[n,a]=i instanceof St?[i.getScopeData(),i.getRequestSession()]:is(i)?[t,t.requestSession]:[],{tags:s,extra:o,user:r,contexts:u,level:l,fingerprint:p=[],propagationContext:m}=n||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...o},this._contexts={...this._contexts,...u},r&&Object.keys(r).length&&(this._user=r),l&&(this._level=l),p.length&&(this._fingerprint=p),m&&(this._propagationContext=m),a&&(this._requestSession=a),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Xe(this,void 0),this._attachments=[],this._propagationContext=Ye(),this._notifyScopeListeners(),this}addBreadcrumb(t,i){const n=typeof i=="number"?i:ds;if(n<=0)return this;const a={timestamp:zi(),...t},s=this._breadcrumbs;return s.push(a),this._breadcrumbs=s.length>n?s.slice(-n):s,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Ze(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,i){const n=i&&i.event_id?i.event_id:pt();if(!this._client)return Lt.warn("No client configured on scope - will not capture exception!"),n;const a=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:a,...i,event_id:n},this),n}captureMessage(t,i,n){const a=n&&n.event_id?n.event_id:pt();if(!this._client)return Lt.warn("No client configured on scope - will not capture message!"),a;const s=new Error(t);return this._client.captureMessage(t,i,{originalException:t,syntheticException:s,...n,event_id:a},this),a}captureEvent(t,i){const n=i&&i.event_id?i.event_id:pt();return this._client?(this._client.captureEvent(t,{...i,event_id:n},this),n):(Lt.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const St=ke;function us(){return Ui("defaultCurrentScope",()=>new St)}function ms(){return Ui("defaultIsolationScope",()=>new St)}class fs{constructor(t,i){let n;t?n=t:n=new St;let a;i?a=i:a=new St,this._stack=[{scope:n}],this._isolationScope=a}withScope(t){const i=this._pushScope();let n;try{n=t(i)}catch(a){throw this._popScope(),a}return ns(n)?n.then(a=>(this._popScope(),a),a=>{throw this._popScope(),a}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function ft(){const e=Bi(),t=Ee(e);return t.stack=t.stack||new fs(us(),ms())}function hs(e){return ft().withScope(e)}function xs(e,t){const i=ft();return i.withScope(()=>(i.getStackTop().scope=e,t(e)))}function ti(e){return ft().withScope(()=>e(ft().getIsolationScope()))}function vs(){return{withIsolationScope:ti,withScope:hs,withSetScope:xs,withSetIsolationScope:(e,t)=>ti(t),getCurrentScope:()=>ft().getScope(),getIsolationScope:()=>ft().getIsolationScope()}}function gs(e){const t=Ee(e);return t.acs?t.acs:vs()}function bs(...e){const t=Bi(),i=gs(t);if(e.length===2){const[n,a]=e;return n?i.withSetScope(n,a):i.withScope(a)}return i.withScope(e[0])}const he="ACCESS_TOKEN",V={SUCCESS:200,CREATED:201,NO_CONTENT:204,BAD_REQUEST:400,UNAUTHORIZED:401,FORBIDDEN:403,NOT_FOUND:404,CONTENT_TOO_LARGE:413,INTERNAL_SERVER_ERROR:500};class ei extends Error{constructor(i,n,a){super(n);$t(this,"statusCode");$t(this,"code");let s="HTTPError";switch(i){case V.BAD_REQUEST:{s+=": BAD_REQUESET";break}case V.UNAUTHORIZED:{s+=": UNAUTHORIZED";break}case V.FORBIDDEN:{s+=": FORBIDDEN";break}case V.NOT_FOUND:{s+=": NOT_FOUND";break}case V.CONTENT_TOO_LARGE:{s+=": CONTENT_TOO_LARGE";break}case V.INTERNAL_SERVER_ERROR:{s+=": INTERNAL_SERVER_ERROR";break}}this.name=s,this.statusCode=i,this.code=a}}const ws=async()=>(await Es.get("/auth/reissue")).data,ys=e=>{if(!e||!e.headers||e.headers.Authorization)return e;const t=localStorage.getItem(he);if(!t)throw window.location.replace(ri.LOGIN),new Error("토큰이 존재하지 않습니다.");return e.headers.Authorization=`Bearer ${t}`,e},Ss=async e=>{const t=e.config;if(!e.response||!t)throw new Error("에러가 발생했습니다.");const{status:i}=e.response;if(i===V.UNAUTHORIZED)try{const{data:n}=await ws();return localStorage.setItem(he,n.accessToken),t.data.headers.Authorization=`Bearer ${n.accessToken}`,rt(t)}catch{throw localStorage.removeItem(he),window.location.replace(ri.LOGIN),new Error("토큰 갱신에 실패하였습니다.")}return Promise.reject(e)},_s=e=>{if(!e.response)throw e;bs(n=>{n.setLevel("error"),n.captureMessage(`[API Error] ${window.location.href}`)});const{data:t,status:i}=e.response;throw i>=V.INTERNAL_SERVER_ERROR?new ei(V.INTERNAL_SERVER_ERROR,t.message):new ei(i,t.message)};var qi={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1,STORYBOOK:"true"};const rt=R.create({baseURL:`${qi.VITE_BASE_URL}/api/v1`,withCredentials:!0,headers:{"Content-Type":"application/json"}}),Es=R.create({baseURL:`${qi.VITE_BASE_URL}/api/v1`,withCredentials:!0,headers:{"Content-Type":"application/json"}});rt.interceptors.request.use(ys);rt.interceptors.response.use(e=>e,Ss);rt.interceptors.response.use(e=>e,_s);const ks=async e=>(await rt.get("/file/upload",{params:{fileFormat:e}})).data.data,Rs=async e=>await rt.post("/file",e),Os=()=>ge({mutationFn:e=>Rs(e)}),Re=U({height:"40rem"}),Ts=U({height:"1.6rem"});U({fontWeight:500,color:It.colors.gray_800});U({width:"1.3rem",height:"1.3rem"});const Cs=e=>U({width:"32rem",marginTop:"19.65rem",cursor:"pointer",...e&&{"&:hover":{backgroundColor:It.colors.key_100}}}),Mi=w.createContext(void 0),Oe=()=>{const e=w.useContext(Mi);if(!e)throw new Error("Error useWorkSpaceContext");return e},js=({children:e})=>{const[t,i]=w.useState(1),[n,a]=w.useState({name:"",category:"",fileUrlData:""}),s=w.useCallback(()=>i(u=>u+1),[]),o=w.useCallback(()=>{i(1),a({name:"",category:"",fileUrlData:""})},[]),r=w.useCallback(u=>{a(l=>({...l,...u}))},[]);return C(Mi.Provider,{value:{step:t,formData:n,setFormData:r,nextStep:s,reset:o},children:e})};js.__docgenInfo={description:"",methods:[],displayName:"WorkSpaceProvider",props:{children:{required:!0,tsType:{name:"ReactNode"},description:""}}};const As=""+new URL("workspace_complete-HHHWyzZV.png",import.meta.url).href,Ls=""+new URL("workspace_complete-D_NIujRU.webp",import.meta.url).href,Ns=({isVisible:e})=>e?st(Ut,{tag:"section",styles:{direction:"column",justify:"center",align:"center",gap:"2rem"},css:Re,children:[C(zt,{title:"워크 스페이스 생성 완료!",info:"이제 동아리 효율적인 문서와 일정관리를 이용하실 수 있습니다"}),st("picture",{children:[C("source",{srcSet:Ls}),C("img",{css:Ds,src:As,alt:"워크 스페이스 완료 이미지"})]})]}):null,Ds=U({width:"30rem",height:"30rem",objectFit:"cover"});Ns.__docgenInfo={description:"",methods:[],displayName:"WorkSpaceComplete",props:{isVisible:{required:!0,tsType:{name:"boolean"},description:""}}};const Ps=e=>w.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 201 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},w.createElement("rect",{x:.5,width:200,height:200,rx:57.1429,fill:"#FAFAFA"}),w.createElement("path",{d:"M125.537 135.166H75.4627C72.3385 135.166 70.1609 135.164 68.454 135.055C66.7761 134.947 65.7955 134.746 65.0453 134.455C62.2749 133.384 60.0847 131.193 59.0129 128.423C58.7227 127.673 58.5211 126.692 58.4135 125.014C58.3039 123.307 58.3023 121.13 58.3023 118.006V81.9969C58.3023 78.8727 58.3039 76.6952 58.4135 74.9883C58.5211 73.3104 58.7226 72.3298 59.0129 71.5797C60.0847 68.8092 62.2748 66.619 65.0452 65.5472C65.7954 65.257 66.776 65.0554 68.4538 64.9477C70.1607 64.8382 72.3383 64.8365 75.4624 64.8364L80.8907 64.8363C81.0536 64.8363 81.1796 64.8364 81.2888 64.8371C81.3603 64.8376 81.4158 64.8384 81.4598 64.8394C81.4917 64.8699 81.5315 64.9085 81.5824 64.9588C81.6602 65.0354 81.7492 65.1244 81.8644 65.2397L93.0638 76.4387C93.0945 76.4693 93.126 76.501 93.1585 76.5336C93.506 76.8828 93.9576 77.3363 94.4926 77.703C95.2789 78.2419 96.1691 78.6106 97.1061 78.7856C97.7437 78.9046 98.3837 78.9031 98.8764 78.902C98.9224 78.9019 98.9671 78.9018 99.0104 78.9018L125.538 78.9021C128.662 78.9021 130.839 78.9038 132.546 79.0133C134.224 79.121 135.205 79.3225 135.955 79.6128C138.725 80.6846 140.915 82.8748 141.987 85.6452C142.277 86.3954 142.479 87.376 142.587 89.0539C142.696 90.7608 142.698 92.9384 142.698 96.0625V118.006C142.698 121.13 142.696 123.307 142.587 125.014C142.479 126.692 142.277 127.673 141.987 128.423C140.915 131.193 138.725 133.384 135.955 134.455C135.205 134.746 134.224 134.947 132.546 135.055C130.839 135.164 128.662 135.166 125.537 135.166Z",stroke:"#CDCDCD",strokeWidth:7.03297,strokeLinejoin:"round"})),Us=e=>w.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 34 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},w.createElement("circle",{cx:17,cy:16,r:16,fill:"#CDCDCD"}),w.createElement("path",{d:"M24 10.41L22.59 9L17 14.59L11.41 9L10 10.41L15.59 16L10 21.59L11.41 23L17 17.41L22.59 23L24 21.59L18.41 16L24 10.41Z",fill:"#FAFAFA"})),Is=U({position:"relative",marginTop:"2.4rem"}),ii=U({width:"20rem",height:"20rem",borderRadius:"57.14px",objectFit:"cover",cursor:"pointer"}),Fs=U({position:"absolute",top:"0",right:"0",width:"3.3rem",height:"3.2rem",cursor:"pointer"}),zs=U({marginTop:"4.6rem",width:"32rem",cursor:"pointer","&:hover":{backgroundColor:It.colors.key_100}}),Bs=e=>{const t=e?Xi(e.name):"";return _n({queryKey:e?["fileFormat",e.name,t]:[],queryFn:()=>ks(t),enabled:!!e})},qs=()=>{const[e,t]=w.useState(""),i=w.useRef(null),[n,a]=w.useState(null),{mutate:s}=Za(),{mutate:o}=Os(),{data:r,refetch:u}=Bs(n),{setFormData:l}=Oe(),p=(x,f)=>{const h=URL.createObjectURL(x);t(h),s({presignedUrl:f,file:x},{onSuccess:b=>{URL.revokeObjectURL(h),b&&(t(b),l({fileUrlData:b}))}})};return{fileURL:e,imgUploadInput:i,handleImageChange:async x=>{var h;const f=(h=x.target.files)==null?void 0:h[0];if(f){t(URL.createObjectURL(f)),a(f),l({fileUrlData:""});const{data:b}=await u();b!=null&&b.url&&p(f,b.url)}},handleImageRemove:()=>{r!=null&&r.fileName&&o({fileName:r.fileName},{onSuccess:()=>{URL.revokeObjectURL(e),t(""),a(null),l({fileUrlData:""}),i.current&&(i.current.value="")}})}}},Ms=async e=>(await rt.post("/teams",e)).data,Hs=()=>{const e=xe();return ge({mutationFn:t=>Ms(t),onSuccess:()=>{e.invalidateQueries({queryKey:["clubInfo"]})}})},Ws=({isVisible:e})=>{const{fileURL:t,imgUploadInput:i,handleImageChange:n,handleImageRemove:a}=qs(),{nextStep:s,formData:o}=Oe(),{mutate:r}=Hs(),u=()=>{r({name:o.name,category:o.category,iconImageUrl:o.fileUrlData},{onSuccess:async()=>{s()}})};return e?st(Ut,{tag:"section",styles:{direction:"column",justify:"center",align:"center"},css:Re,children:[C(zt,{step:"image",title:"동아리 프로필 이미지 등록",info:"우리 동아리의 프로필에 표시할 이미지를 등록해주세요"}),st("div",{css:[{cursor:"pointer"},Is],children:[t?C("img",{src:t,alt:"프로필 이미지",css:ii}):C($i,{id:"imgUploadInput",css:ii,children:C(Ps,{width:200,height:200})}),t&&C(Us,{css:Fs,onClick:a})]}),C("input",{id:"imgUploadInput",css:{display:"none"},type:"file",accept:"image/*",ref:i,onChange:n}),C(si,{css:zs,variant:"primary",size:"medium",onClick:u,children:"완료"})]}):null};Ws.__docgenInfo={description:"",methods:[],displayName:"WorkSpaceImage",props:{isVisible:{required:!0,tsType:{name:"boolean"},description:""}}};const Vs=({isVisible:e})=>{const[t,i]=w.useState(""),{setFormData:n,nextStep:a}=Oe(),s=()=>{n({name:t}),a()},o=t.trim().length>0,r=u=>{i(u.target.value)};return e?st(Ut,{tag:"section",styles:{direction:"column",justify:"center",align:"center"},css:Re,children:[C(zt,{step:"name",title:"새로운 워크 스페이스 생성하기",info:"워크스페이스의 이름을 입력해주세요."}),C("article",{css:{marginTop:"2.4rem",width:"32rem"},children:C(Zi,{placeholder:"팀,동아리,조직 이름 입력",value:t,onChange:r,css:Ts})}),C(si,{variant:"primary",size:"medium",css:Cs(o),disabled:!o,onClick:s,children:"다음"})]}):null};Vs.__docgenInfo={description:"",methods:[],displayName:"WorkSpaceName",props:{isVisible:{required:!0,tsType:{name:"boolean"},description:""}}};export{oo as D,rn as Q,js as W,Vs as a,Ns as b,zt as c,Ws as d,co as e,Za as f,ks as g,rt as h,ge as i,Os as j,ro as k,Oe as l,Cs as m,Re as s,Sn as u}; +`+s):n.stack=s}catch{}}throw n}}_request(t,i){typeof t=="string"?(i=i||{},i.url=t):i=t||{},i=ot(this.defaults,i);const{transitional:n,paramsSerializer:a,headers:s}=i;n!==void 0&&ue.assertOptions(n,{silentJSONParsing:G.transitional(G.boolean),forcedJSONParsing:G.transitional(G.boolean),clarifyTimeoutError:G.transitional(G.boolean)},!1),a!=null&&(c.isFunction(a)?i.paramsSerializer={serialize:a}:ue.assertOptions(a,{encode:G.function,serialize:G.function},!0)),i.method=(i.method||this.defaults.method||"get").toLowerCase();let o=s&&c.merge(s.common,s[i.method]);s&&c.forEach(["delete","get","head","post","put","patch","common"],f=>{delete s[f]}),i.headers=D.concat(o,s);const r=[];let u=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(i)===!1||(u=u&&h.synchronous,r.unshift(h.fulfilled,h.rejected))});const l=[];this.interceptors.response.forEach(function(h){l.push(h.fulfilled,h.rejected)});let p,m=0,_;if(!u){const f=[Ke.bind(this),void 0];for(f.unshift.apply(f,r),f.push.apply(f,l),_=f.length,p=Promise.resolve(i);m<_;)p=p.then(f[m++],f[m++]);return p}_=r.length;let x=i;for(m=0;m<_;){const f=r[m++],h=r[m++];try{x=f(x)}catch(b){h.call(this,b);break}}try{p=Ke.call(this,x)}catch(f){return Promise.reject(f)}for(m=0,_=l.length;m<_;)p=p.then(l[m++],l[m++]);return p}getUri(t){t=ot(this.defaults,t);const i=ji(t.baseURL,t.url);return ki(i,t.params,t.paramsSerializer)}}c.forEach(["delete","get","head","options"],function(t){at.prototype[t]=function(i,n){return this.request(ot(n||{},{method:t,url:i,data:(n||{}).data}))}});c.forEach(["post","put","patch"],function(t){function i(n){return function(s,o,r){return this.request(ot(r||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}at.prototype[t]=i(),at.prototype[t+"Form"]=i(!0)});class _e{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(s){i=s});const n=this;this.promise.then(a=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](a);n._listeners=null}),this.promise.then=a=>{let s;const o=new Promise(r=>{n.subscribe(r),s=r}).then(a);return o.cancel=function(){n.unsubscribe(s)},o},t(function(s,o,r){n.reason||(n.reason=new xt(s,o,r),i(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const i=this._listeners.indexOf(t);i!==-1&&this._listeners.splice(i,1)}static source(){let t;return{token:new _e(function(a){t=a}),cancel:t}}}function Ga(e){return function(i){return e.apply(null,i)}}function Ya(e){return c.isObject(e)&&e.isAxiosError===!0}const me={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(me).forEach(([e,t])=>{me[t]=e});function Pi(e){const t=new at(e),i=mi(at.prototype.request,t);return c.extend(i,at.prototype,t,{allOwnKeys:!0}),c.extend(i,t,null,{allOwnKeys:!0}),i.create=function(a){return Pi(ot(e,a))},i}const R=Pi(Rt);R.Axios=at;R.CanceledError=xt;R.CancelToken=_e;R.isCancel=Ti;R.VERSION=Di;R.toFormData=Ht;R.AxiosError=v;R.Cancel=R.CanceledError;R.all=function(t){return Promise.all(t)};R.spread=Ga;R.isAxiosError=Ya;R.mergeConfig=ot;R.AxiosHeaders=D;R.formToJSON=e=>Oi(c.isHTMLForm(e)?new FormData(e):e);R.getAdapter=Ni.getAdapter;R.HttpStatusCode=me;R.default=R;const Xa=async(e,t)=>{const i=kn.getType(t.name)||"application/octet-stream",n=await R.put(e,t,{headers:{"Content-Type":i}});if(n.status===200||n.status===204)return e.split("?")[0]},Za=()=>ge({mutationFn:({presignedUrl:e,file:t})=>Xa(e,t)}),ts=Object.prototype.toString;function es(e,t){return ts.call(e)===`[object ${t}]`}function is(e){return es(e,"Object")}function ns(e){return!!(e&&e.then&&typeof e.then=="function")}const wt="8.22.0",Q=globalThis;function Ui(e,t,i){const n=Q,a=n.__SENTRY__=n.__SENTRY__||{},s=a[wt]=a[wt]||{};return s[e]||(s[e]=t())}const Ii=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,as="Sentry Logger ",Je=["debug","info","warn","error","log","assert","trace"],Ge={};function ss(e){if(!("console"in Q))return e();const t=Q.console,i={},n=Object.keys(Ge);n.forEach(a=>{const s=Ge[a];i[a]=t[a],t[a]=s});try{return e()}finally{n.forEach(a=>{t[a]=i[a]})}}function os(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Ii?Je.forEach(i=>{t[i]=(...n)=>{e&&ss(()=>{Q.console[i](`${as}[${i}]:`,...n)})}}):Je.forEach(i=>{t[i]=()=>{}}),t}const Lt=os();function rs(e,t,i){try{Object.defineProperty(e,t,{value:i,writable:!0,configurable:!0})}catch{Ii&&Lt.log(`Failed to add non-enumerable property "${t}" to object`,e)}}const Fi=1e3;function zi(){return Date.now()/Fi}function cs(){const{performance:e}=Q;if(!e||!e.now)return zi;const t=Date.now()-e.now(),i=e.timeOrigin==null?t:e.timeOrigin;return()=>(i+e.now())/Fi}const ps=cs();(()=>{const{performance:e}=Q;if(!e||!e.now)return;const t=3600*1e3,i=e.now(),n=Date.now(),a=e.timeOrigin?Math.abs(e.timeOrigin+i-n):t,s=aMath.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(i=()=>{const n=new Uint8Array(1);return t.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(i()&15)>>n/4).toString(16))}function Ye(){return{traceId:pt(),spanId:pt().substring(16)}}function Bi(){return Ee(Q),Q}function Ee(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||wt,t[wt]=t[wt]||{}}function ls(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||ps(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:pt()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const i=e.timestamp-e.started;e.duration=i>=0?i:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}const fe="_sentrySpan";function Xe(e,t){t?rs(e,fe,t):delete e[fe]}function Ze(e){return e[fe]}const ds=100;class ke{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Ye()}clone(){const t=new ke;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Xe(t,Ze(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&ls(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,i){return this._tags={...this._tags,[t]:i},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,i){return this._extra={...this._extra,[t]:i},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,i){return i===null?delete this._contexts[t]:this._contexts[t]=i,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const i=typeof t=="function"?t(this):t,[n,a]=i instanceof St?[i.getScopeData(),i.getRequestSession()]:is(i)?[t,t.requestSession]:[],{tags:s,extra:o,user:r,contexts:u,level:l,fingerprint:p=[],propagationContext:m}=n||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...o},this._contexts={...this._contexts,...u},r&&Object.keys(r).length&&(this._user=r),l&&(this._level=l),p.length&&(this._fingerprint=p),m&&(this._propagationContext=m),a&&(this._requestSession=a),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Xe(this,void 0),this._attachments=[],this._propagationContext=Ye(),this._notifyScopeListeners(),this}addBreadcrumb(t,i){const n=typeof i=="number"?i:ds;if(n<=0)return this;const a={timestamp:zi(),...t},s=this._breadcrumbs;return s.push(a),this._breadcrumbs=s.length>n?s.slice(-n):s,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Ze(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,i){const n=i&&i.event_id?i.event_id:pt();if(!this._client)return Lt.warn("No client configured on scope - will not capture exception!"),n;const a=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:a,...i,event_id:n},this),n}captureMessage(t,i,n){const a=n&&n.event_id?n.event_id:pt();if(!this._client)return Lt.warn("No client configured on scope - will not capture message!"),a;const s=new Error(t);return this._client.captureMessage(t,i,{originalException:t,syntheticException:s,...n,event_id:a},this),a}captureEvent(t,i){const n=i&&i.event_id?i.event_id:pt();return this._client?(this._client.captureEvent(t,{...i,event_id:n},this),n):(Lt.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const St=ke;function us(){return Ui("defaultCurrentScope",()=>new St)}function ms(){return Ui("defaultIsolationScope",()=>new St)}class fs{constructor(t,i){let n;t?n=t:n=new St;let a;i?a=i:a=new St,this._stack=[{scope:n}],this._isolationScope=a}withScope(t){const i=this._pushScope();let n;try{n=t(i)}catch(a){throw this._popScope(),a}return ns(n)?n.then(a=>(this._popScope(),a),a=>{throw this._popScope(),a}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function ft(){const e=Bi(),t=Ee(e);return t.stack=t.stack||new fs(us(),ms())}function hs(e){return ft().withScope(e)}function xs(e,t){const i=ft();return i.withScope(()=>(i.getStackTop().scope=e,t(e)))}function ti(e){return ft().withScope(()=>e(ft().getIsolationScope()))}function vs(){return{withIsolationScope:ti,withScope:hs,withSetScope:xs,withSetIsolationScope:(e,t)=>ti(t),getCurrentScope:()=>ft().getScope(),getIsolationScope:()=>ft().getIsolationScope()}}function gs(e){const t=Ee(e);return t.acs?t.acs:vs()}function bs(...e){const t=Bi(),i=gs(t);if(e.length===2){const[n,a]=e;return n?i.withSetScope(n,a):i.withScope(a)}return i.withScope(e[0])}const he="ACCESS_TOKEN",V={SUCCESS:200,CREATED:201,NO_CONTENT:204,BAD_REQUEST:400,UNAUTHORIZED:401,FORBIDDEN:403,NOT_FOUND:404,CONTENT_TOO_LARGE:413,INTERNAL_SERVER_ERROR:500};class ei extends Error{constructor(i,n,a){super(n);$t(this,"statusCode");$t(this,"code");let s="HTTPError";switch(i){case V.BAD_REQUEST:{s+=": BAD_REQUESET";break}case V.UNAUTHORIZED:{s+=": UNAUTHORIZED";break}case V.FORBIDDEN:{s+=": FORBIDDEN";break}case V.NOT_FOUND:{s+=": NOT_FOUND";break}case V.CONTENT_TOO_LARGE:{s+=": CONTENT_TOO_LARGE";break}case V.INTERNAL_SERVER_ERROR:{s+=": INTERNAL_SERVER_ERROR";break}}this.name=s,this.statusCode=i,this.code=a}}const ws=async()=>(await Es.get("/auth/reissue")).data,ys=e=>{if(!e||!e.headers||e.headers.Authorization)return e;const t=localStorage.getItem(he);if(!t)throw window.location.replace(ri.LOGIN),new Error("토큰이 존재하지 않습니다.");return e.headers.Authorization=`Bearer ${t}`,e},Ss=async e=>{const t=e.config;if(!e.response||!t)throw new Error("에러가 발생했습니다.");const{status:i}=e.response;if(i===V.UNAUTHORIZED)try{const{data:n}=await ws();return localStorage.setItem(he,n.accessToken),t.data.headers.Authorization=`Bearer ${n.accessToken}`,rt(t)}catch{throw localStorage.removeItem(he),window.location.replace(ri.LOGIN),new Error("토큰 갱신에 실패하였습니다.")}return Promise.reject(e)},_s=e=>{if(!e.response)throw e;bs(n=>{n.setLevel("error"),n.captureMessage(`[API Error] ${window.location.href}`)});const{data:t,status:i}=e.response;throw i>=V.INTERNAL_SERVER_ERROR?new ei(V.INTERNAL_SERVER_ERROR,t.message):new ei(i,t.message)};var qi={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1,STORYBOOK:"true"};const rt=R.create({baseURL:`${qi.VITE_BASE_URL}/api/v1`,withCredentials:!0,headers:{"Content-Type":"application/json"}}),Es=R.create({baseURL:`${qi.VITE_BASE_URL}/api/v1`,withCredentials:!0,headers:{"Content-Type":"application/json"}});rt.interceptors.request.use(ys);rt.interceptors.response.use(e=>e,Ss);rt.interceptors.response.use(e=>e,_s);const ks=async e=>(await rt.get("/file/upload",{params:{fileFormat:e}})).data.data,Rs=async e=>await rt.post("/file",e),Os=()=>ge({mutationFn:e=>Rs(e)}),Re=U({height:"40rem"}),Ts=U({height:"1.6rem"});U({fontWeight:500,color:It.colors.gray_800});U({width:"1.3rem",height:"1.3rem"});const Cs=e=>U({width:"32rem",marginTop:"19.65rem",cursor:"pointer",...e&&{"&:hover":{backgroundColor:It.colors.key_100}}}),Mi=w.createContext(void 0),Oe=()=>{const e=w.useContext(Mi);if(!e)throw new Error("Error useWorkSpaceContext");return e},js=({children:e})=>{const[t,i]=w.useState(1),[n,a]=w.useState({name:"",category:"",fileUrlData:""}),s=w.useCallback(()=>i(u=>u+1),[]),o=w.useCallback(()=>{i(1),a({name:"",category:"",fileUrlData:""})},[]),r=w.useCallback(u=>{a(l=>({...l,...u}))},[]);return C(Mi.Provider,{value:{step:t,formData:n,setFormData:r,nextStep:s,reset:o},children:e})};js.__docgenInfo={description:"",methods:[],displayName:"WorkSpaceProvider",props:{children:{required:!0,tsType:{name:"ReactNode"},description:""}}};const As=""+new URL("workspace_complete-HHHWyzZV.png",import.meta.url).href,Ls=""+new URL("workspace_complete-D_NIujRU.webp",import.meta.url).href,Ns=({isVisible:e})=>e?st(Ut,{tag:"section",styles:{direction:"column",justify:"center",align:"center",gap:"2rem"},css:Re,children:[C(zt,{title:"워크 스페이스 생성 완료!",info:"이제 동아리 효율적인 문서와 일정관리를 이용하실 수 있습니다"}),st("picture",{children:[C("source",{srcSet:Ls}),C("img",{css:Ds,src:As,alt:"워크 스페이스 완료 이미지"})]})]}):null,Ds=U({width:"30rem",height:"30rem",objectFit:"cover"});Ns.__docgenInfo={description:"",methods:[],displayName:"WorkSpaceComplete",props:{isVisible:{required:!0,tsType:{name:"boolean"},description:""}}};const Ps=e=>w.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 201 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},w.createElement("rect",{x:.5,width:200,height:200,rx:57.1429,fill:"#FAFAFA"}),w.createElement("path",{d:"M125.537 135.166H75.4627C72.3385 135.166 70.1609 135.164 68.454 135.055C66.7761 134.947 65.7955 134.746 65.0453 134.455C62.2749 133.384 60.0847 131.193 59.0129 128.423C58.7227 127.673 58.5211 126.692 58.4135 125.014C58.3039 123.307 58.3023 121.13 58.3023 118.006V81.9969C58.3023 78.8727 58.3039 76.6952 58.4135 74.9883C58.5211 73.3104 58.7226 72.3298 59.0129 71.5797C60.0847 68.8092 62.2748 66.619 65.0452 65.5472C65.7954 65.257 66.776 65.0554 68.4538 64.9477C70.1607 64.8382 72.3383 64.8365 75.4624 64.8364L80.8907 64.8363C81.0536 64.8363 81.1796 64.8364 81.2888 64.8371C81.3603 64.8376 81.4158 64.8384 81.4598 64.8394C81.4917 64.8699 81.5315 64.9085 81.5824 64.9588C81.6602 65.0354 81.7492 65.1244 81.8644 65.2397L93.0638 76.4387C93.0945 76.4693 93.126 76.501 93.1585 76.5336C93.506 76.8828 93.9576 77.3363 94.4926 77.703C95.2789 78.2419 96.1691 78.6106 97.1061 78.7856C97.7437 78.9046 98.3837 78.9031 98.8764 78.902C98.9224 78.9019 98.9671 78.9018 99.0104 78.9018L125.538 78.9021C128.662 78.9021 130.839 78.9038 132.546 79.0133C134.224 79.121 135.205 79.3225 135.955 79.6128C138.725 80.6846 140.915 82.8748 141.987 85.6452C142.277 86.3954 142.479 87.376 142.587 89.0539C142.696 90.7608 142.698 92.9384 142.698 96.0625V118.006C142.698 121.13 142.696 123.307 142.587 125.014C142.479 126.692 142.277 127.673 141.987 128.423C140.915 131.193 138.725 133.384 135.955 134.455C135.205 134.746 134.224 134.947 132.546 135.055C130.839 135.164 128.662 135.166 125.537 135.166Z",stroke:"#CDCDCD",strokeWidth:7.03297,strokeLinejoin:"round"})),Us=e=>w.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 34 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},w.createElement("circle",{cx:17,cy:16,r:16,fill:"#CDCDCD"}),w.createElement("path",{d:"M24 10.41L22.59 9L17 14.59L11.41 9L10 10.41L15.59 16L10 21.59L11.41 23L17 17.41L22.59 23L24 21.59L18.41 16L24 10.41Z",fill:"#FAFAFA"})),Is=U({position:"relative",marginTop:"2.4rem"}),ii=U({width:"20rem",height:"20rem",borderRadius:"57.14px",objectFit:"cover",cursor:"pointer"}),Fs=U({position:"absolute",top:"0",right:"0",width:"3.3rem",height:"3.2rem",cursor:"pointer"}),zs=U({marginTop:"4.6rem",width:"32rem",cursor:"pointer","&:hover":{backgroundColor:It.colors.key_100}}),Bs=e=>{const t=e?Xi(e.name):"";return _n({queryKey:e?["fileFormat",e.name,t]:[],queryFn:()=>ks(t),enabled:!!e})},qs=()=>{const[e,t]=w.useState(""),i=w.useRef(null),[n,a]=w.useState(null),{mutate:s}=Za(),{mutate:o}=Os(),{data:r,refetch:u}=Bs(n),{setFormData:l}=Oe(),p=(x,f)=>{const h=URL.createObjectURL(x);t(h),s({presignedUrl:f,file:x},{onSuccess:b=>{URL.revokeObjectURL(h),b&&(t(b),l({fileUrlData:b}))}})};return{fileURL:e,imgUploadInput:i,handleImageChange:async x=>{var h;const f=(h=x.target.files)==null?void 0:h[0];if(f){t(URL.createObjectURL(f)),a(f),l({fileUrlData:""});const{data:b}=await u();b!=null&&b.url&&p(f,b.url)}},handleImageRemove:()=>{r!=null&&r.fileName&&o({fileName:r.fileName},{onSuccess:()=>{URL.revokeObjectURL(e),t(""),a(null),l({fileUrlData:""}),i.current&&(i.current.value="")}})}}},Ms=async e=>(await rt.post("/teams",e)).data,Hs=()=>{const e=xe();return ge({mutationFn:t=>Ms(t),onSuccess:()=>{e.invalidateQueries({queryKey:["clubInfo"]})}})},Ws=({isVisible:e})=>{const{fileURL:t,imgUploadInput:i,handleImageChange:n,handleImageRemove:a}=qs(),{nextStep:s,formData:o}=Oe(),{mutate:r}=Hs(),u=()=>{r({name:o.name,category:o.category,iconImageUrl:o.fileUrlData},{onSuccess:async()=>{s()}})};return e?st(Ut,{tag:"section",styles:{direction:"column",justify:"center",align:"center"},css:Re,children:[C(zt,{step:"image",title:"동아리 프로필 이미지 등록",info:"우리 동아리의 프로필에 표시할 이미지를 등록해주세요"}),st("div",{css:[{cursor:"pointer"},Is],children:[t?C("img",{src:t,alt:"프로필 이미지",css:ii}):C($i,{id:"imgUploadInput",css:ii,children:C(Ps,{width:200,height:200})}),t&&C(Us,{css:Fs,onClick:a})]}),C("input",{id:"imgUploadInput",css:{display:"none"},type:"file",accept:"image/*",ref:i,onChange:n}),C(si,{css:zs,variant:"primary",size:"medium",onClick:u,children:"완료"})]}):null};Ws.__docgenInfo={description:"",methods:[],displayName:"WorkSpaceImage",props:{isVisible:{required:!0,tsType:{name:"boolean"},description:""}}};const Vs=({isVisible:e})=>{const[t,i]=w.useState(""),{setFormData:n,nextStep:a}=Oe(),s=()=>{n({name:t}),a()},o=t.trim().length>0,r=u=>{i(u.target.value)};return e?st(Ut,{tag:"section",styles:{direction:"column",justify:"center",align:"center"},css:Re,children:[C(zt,{step:"name",title:"새로운 워크 스페이스 생성하기",info:"워크스페이스의 이름을 입력해주세요."}),C("article",{css:{marginTop:"2.4rem",width:"32rem"},children:C(Zi,{placeholder:"팀,동아리,조직 이름 입력",value:t,onChange:r,css:Ts})}),C(si,{variant:"primary",size:"medium",css:Cs(o),disabled:!o,onClick:s,children:"다음"})]}):null};Vs.__docgenInfo={description:"",methods:[],displayName:"WorkSpaceName",props:{isVisible:{required:!0,tsType:{name:"boolean"},description:""}}};export{oo as D,rn as Q,js as W,Vs as a,Ns as b,zt as c,Ws as d,co as e,Za as f,ks as g,rt as h,ge as i,_n as j,Os as k,ro as l,Oe as m,Cs as n,Re as s,Sn as u}; diff --git a/assets/_commonjsHelpers-XnwbWaTF.js b/assets/_commonjsHelpers-Dq6BK7nx.js similarity index 93% rename from assets/_commonjsHelpers-XnwbWaTF.js rename to assets/_commonjsHelpers-Dq6BK7nx.js index 5874a18e7..2b4b606c0 100644 --- a/assets/_commonjsHelpers-XnwbWaTF.js +++ b/assets/_commonjsHelpers-Dq6BK7nx.js @@ -1 +1 @@ -import"./iframe-BnffqoK7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="62f7ef6f-7fa3-4fa1-ab88-186e6bbbe078",e._sentryDebugIdIdentifier="sentry-dbid-62f7ef6f-7fa3-4fa1-ab88-186e6bbbe078")}catch{}})();var u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function s(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}export{s as a,u as c,a as g}; +import"./iframe-AJyGuqY3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="62f7ef6f-7fa3-4fa1-ab88-186e6bbbe078",e._sentryDebugIdIdentifier="sentry-dbid-62f7ef6f-7fa3-4fa1-ab88-186e6bbbe078")}catch{}})();var u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function s(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}export{s as a,u as c,a as g}; diff --git a/assets/axe-DKSXRCTo.js b/assets/axe-CqI-cweo.js similarity index 99% rename from assets/axe-DKSXRCTo.js rename to assets/axe-CqI-cweo.js index 5115f920b..9ac4008b3 100644 --- a/assets/axe-DKSXRCTo.js +++ b/assets/axe-CqI-cweo.js @@ -1,4 +1,4 @@ -import{g as AT,c as CT}from"./_commonjsHelpers-XnwbWaTF.js";(function(){try{var mt=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Kt=new Error().stack;Kt&&(mt._sentryDebugIds=mt._sentryDebugIds||{},mt._sentryDebugIds[Kt]="9ef275bf-6d06-4d65-9800-c9b8abf5af95",mt._sentryDebugIdIdentifier="sentry-dbid-9ef275bf-6d06-4d65-9800-c9b8abf5af95")}catch{}})();function FT(mt,Kt){for(var E=0;Eet[M]})}}}return Object.freeze(Object.defineProperty(mt,Symbol.toStringTag,{value:"Module"}))}var Yu={exports:{}};/*! axe v4.9.1 +import{g as AT,c as CT}from"./_commonjsHelpers-Dq6BK7nx.js";(function(){try{var mt=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Kt=new Error().stack;Kt&&(mt._sentryDebugIds=mt._sentryDebugIds||{},mt._sentryDebugIds[Kt]="9ef275bf-6d06-4d65-9800-c9b8abf5af95",mt._sentryDebugIdIdentifier="sentry-dbid-9ef275bf-6d06-4d65-9800-c9b8abf5af95")}catch{}})();function FT(mt,Kt){for(var E=0;Eet[M]})}}}return Object.freeze(Object.defineProperty(mt,Symbol.toStringTag,{value:"Module"}))}var Yu={exports:{}};/*! axe v4.9.1 * Copyright (c) 2015 - 2024 Deque Systems, Inc. * * Your use of this Source Code Form is subject to the terms of the Mozilla Public diff --git a/assets/ellipsis-Bk2wdyyW.js b/assets/ellipsis-bMyq7Nk3.js similarity index 85% rename from assets/ellipsis-Bk2wdyyW.js rename to assets/ellipsis-bMyq7Nk3.js index 2b703df49..4cf934a85 100644 --- a/assets/ellipsis-Bk2wdyyW.js +++ b/assets/ellipsis-bMyq7Nk3.js @@ -1 +1 @@ -import"./iframe-BnffqoK7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="87ba6936-f5bb-459b-924f-4013e485ae35",e._sentryDebugIdIdentifier="sentry-dbid-87ba6936-f5bb-459b-924f-4013e485ae35")}catch{}})();const s={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"};export{s as e}; +import"./iframe-AJyGuqY3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="87ba6936-f5bb-459b-924f-4013e485ae35",e._sentryDebugIdIdentifier="sentry-dbid-87ba6936-f5bb-459b-924f-4013e485ae35")}catch{}})();const s={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"};export{s as e}; diff --git a/assets/emotion-react.browser.esm-DVCGPw0o.js b/assets/emotion-react.browser.esm-Cyl1vPjg.js similarity index 99% rename from assets/emotion-react.browser.esm-DVCGPw0o.js rename to assets/emotion-react.browser.esm-Cyl1vPjg.js index a4d385a4e..34e7ea7f7 100644 --- a/assets/emotion-react.browser.esm-DVCGPw0o.js +++ b/assets/emotion-react.browser.esm-Cyl1vPjg.js @@ -1,4 +1,4 @@ -import"./iframe-BnffqoK7.js";import{r as $,a as Ce}from"./index-B4Z6PsAH.js";import{_ as rr}from"./extends-ClQVCWlZ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="77dd22e5-1003-4e65-a04d-6d6a1392f0d5",e._sentryDebugIdIdentifier="sentry-dbid-77dd22e5-1003-4e65-a04d-6d6a1392f0d5")}catch{}})();var Me={exports:{}},X={};/** +import"./iframe-AJyGuqY3.js";import{r as $,a as Ce}from"./index-Bs6nXyGp.js";import{_ as rr}from"./extends-ClQVCWlZ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="77dd22e5-1003-4e65-a04d-6d6a1392f0d5",e._sentryDebugIdIdentifier="sentry-dbid-77dd22e5-1003-4e65-a04d-6d6a1392f0d5")}catch{}})();var Me={exports:{}},X={};/** * @license React * react-jsx-runtime.production.min.js * diff --git a/assets/entry-preview-Gy9vRDWP.js b/assets/entry-preview-BkFveEtM.js similarity index 86% rename from assets/entry-preview-Gy9vRDWP.js rename to assets/entry-preview-BkFveEtM.js index 94a2abbe8..716993f08 100644 --- a/assets/entry-preview-Gy9vRDWP.js +++ b/assets/entry-preview-BkFveEtM.js @@ -1 +1 @@ -import{R as a,r as i}from"./index-B4Z6PsAH.js";import{u,r as b}from"./react-18-C2ppDB-h.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./iframe-BnffqoK7.js";import"../sb-preview/runtime.js";import"./index-C_edrjnw.js";(function(){try{var r=typeof window<"u"?window:typeof d<"u"?d:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="b954c9bb-a738-4c89-bd26-a068a827ddc5",r._sentryDebugIdIdentifier="sentry-dbid-b954c9bb-a738-4c89-bd26-a068a827ddc5")}catch{}})();var _=Object.defineProperty,E=(r,e)=>{for(var t in e)_(r,t,{get:e[t],enumerable:!0})};const{global:d}=__STORYBOOK_MODULE_GLOBAL__;var v={};E(v,{mount:()=>D,parameters:()=>I,render:()=>w,renderToCanvas:()=>y});var w=(r,e)=>{let{id:t,component:n}=e;if(!n)throw new Error(`Unable to render story ${t} as the component annotation is missing from the default export`);return a.createElement(n,{...r})},{FRAMEWORK_OPTIONS:s}=d,g=class extends i.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){let{hasError:r}=this.state,{showMain:e}=this.props;r||e()}componentDidCatch(r){let{showException:e}=this.props;e(r)}render(){let{hasError:r}=this.state,{children:e}=this.props;return r?null:e}},l=s!=null&&s.strictMode?i.StrictMode:i.Fragment;async function y({storyContext:r,unboundStoryFn:e,showMain:t,showException:n,forceRemount:f},o){var c,m;let p=a.createElement(g,{showMain:t,showException:n},a.createElement(e,{...r})),h=l?a.createElement(l,null,p):p;return f&&u(o),await b(h,o,(m=(c=r==null?void 0:r.parameters)==null?void 0:c.react)==null?void 0:m.rootOptions),()=>u(o)}var D=r=>async e=>(e!=null&&(r.originalStoryFn=()=>e),await r.renderToCanvas(),r.canvas),I={renderer:"react"};export{D as mount,I as parameters,w as render,y as renderToCanvas}; +import{R as a,r as i}from"./index-Bs6nXyGp.js";import{u,r as b}from"./react-18-CzVEcH-F.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./iframe-AJyGuqY3.js";import"../sb-preview/runtime.js";import"./index-BHRAuaXy.js";(function(){try{var r=typeof window<"u"?window:typeof d<"u"?d:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="b954c9bb-a738-4c89-bd26-a068a827ddc5",r._sentryDebugIdIdentifier="sentry-dbid-b954c9bb-a738-4c89-bd26-a068a827ddc5")}catch{}})();var _=Object.defineProperty,E=(r,e)=>{for(var t in e)_(r,t,{get:e[t],enumerable:!0})};const{global:d}=__STORYBOOK_MODULE_GLOBAL__;var v={};E(v,{mount:()=>D,parameters:()=>I,render:()=>w,renderToCanvas:()=>y});var w=(r,e)=>{let{id:t,component:n}=e;if(!n)throw new Error(`Unable to render story ${t} as the component annotation is missing from the default export`);return a.createElement(n,{...r})},{FRAMEWORK_OPTIONS:s}=d,g=class extends i.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){let{hasError:r}=this.state,{showMain:e}=this.props;r||e()}componentDidCatch(r){let{showException:e}=this.props;e(r)}render(){let{hasError:r}=this.state,{children:e}=this.props;return r?null:e}},l=s!=null&&s.strictMode?i.StrictMode:i.Fragment;async function y({storyContext:r,unboundStoryFn:e,showMain:t,showException:n,forceRemount:f},o){var c,m;let p=a.createElement(g,{showMain:t,showException:n},a.createElement(e,{...r})),h=l?a.createElement(l,null,p):p;return f&&u(o),await b(h,o,(m=(c=r==null?void 0:r.parameters)==null?void 0:c.react)==null?void 0:m.rootOptions),()=>u(o)}var D=r=>async e=>(e!=null&&(r.originalStoryFn=()=>e),await r.renderToCanvas(),r.canvas),I={renderer:"react"};export{D as mount,I as parameters,w as render,y as renderToCanvas}; diff --git a/assets/entry-preview-docs-CQTFxFuJ.js b/assets/entry-preview-docs-BUyBerJ_.js similarity index 99% rename from assets/entry-preview-docs-CQTFxFuJ.js rename to assets/entry-preview-docs-BUyBerJ_.js index 3e3ba2b9d..b72f99f68 100644 --- a/assets/entry-preview-docs-CQTFxFuJ.js +++ b/assets/entry-preview-docs-BUyBerJ_.js @@ -1,4 +1,4 @@ -import{a as xi,b as Kn,c as Fi,d as Yn,$ as Zn,z as eu,e as tu,O as te,s as Wr,f as Gr,K as ru,B as iu,P as zr,g as $r,o as ft,H as nu}from"./isArray-BI8z6s7d.js";import{g as pt,c as lt,a as uu}from"./_commonjsHelpers-XnwbWaTF.js";import"./iframe-BnffqoK7.js";import{d as su}from"./index-BWTWe0Km.js";import{R as st,r as Ge}from"./index-B4Z6PsAH.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a9b09a74-b9db-4830-a4b6-9148d6ff6e0f",e._sentryDebugIdIdentifier="sentry-dbid-a9b09a74-b9db-4830-a4b6-9148d6ff6e0f")}catch{}})();var vi={exports:{}},au="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ou=au,lu=ou;function bi(){}function Si(){}Si.resetWarningCache=bi;var cu=function(){function e(i,u,s,a,f,p){if(p!==lu){var D=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw D.name="Invariant Violation",D}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Si,resetWarningCache:bi};return r.PropTypes=r,r};vi.exports=cu();var hu=vi.exports;const Jr=pt(hu),fu=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","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","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];var pu=fu;const du=pt(pu);var _i={},Bi={};(function(e){(function t(r){var i,u,s,a,f,p;function D(g){var x={},F,B;for(F in g)g.hasOwnProperty(F)&&(B=g[F],typeof B=="object"&&B!==null?x[F]=D(B):x[F]=B);return x}function m(g,x){var F,B,R,N;for(B=g.length,R=0;B;)F=B>>>1,N=R+F,x(g[N])?B=F:(R=N+1,B-=F+1);return R}i={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},s={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},a={},f={},p={},u={Break:a,Skip:f,Remove:p};function y(g,x){this.parent=g,this.key=x}y.prototype.replace=function(x){this.parent[this.key]=x},y.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function A(g,x,F,B){this.node=g,this.path=x,this.wrap=F,this.ref=B}function C(){}C.prototype.path=function(){var x,F,B,R,N,W;function q(M,X){if(Array.isArray(X))for(B=0,R=X.length;B=0;--F)if(g[F].node===x)return!0;return!1}C.prototype.traverse=function(x,F){var B,R,N,W,q,M,X,ne,oe,ie,Q,Ce;for(this.__initialize(x,F),Ce={},B=this.__worklist,R=this.__leavelist,B.push(new A(x,null,null,null)),R.push(new A(null,null,null,null));B.length;){if(N=B.pop(),N===Ce){if(N=R.pop(),M=this.__execute(F.leave,N),this.__state===a||M===a)return;continue}if(N.node){if(M=this.__execute(F.enter,N),this.__state===a||M===a)return;if(B.push(Ce),R.push(N),this.__state===f||M===f)continue;if(W=N.node,q=W.type||N.wrap,ie=this.__keys[q],!ie)if(this.__fallback)ie=this.__fallback(W);else throw new Error("Unknown node type "+q+".");for(ne=ie.length;(ne-=1)>=0;)if(X=ie[ne],Q=W[X],!!Q){if(Array.isArray(Q)){for(oe=Q.length;(oe-=1)>=0;)if(Q[oe]&&!b(R,Q[oe])){if(E(q,ie[ne]))N=new A(Q[oe],[X,oe],"Property",null);else if(v(Q[oe]))N=new A(Q[oe],[X,oe],null,null);else continue;B.push(N)}}else if(v(Q)){if(b(R,Q))continue;B.push(new A(Q,X,null,null))}}}}},C.prototype.replace=function(x,F){var B,R,N,W,q,M,X,ne,oe,ie,Q,Ce,Be;function Je(O){var Ve,Ct,Le,ee;if(O.ref.remove()){for(Ct=O.ref.key,ee=O.ref.parent,Ve=B.length;Ve--;)if(Le=B[Ve],Le.ref&&Le.ref.parent===ee){if(Le.ref.key=0;)if(Be=oe[X],ie=N[Be],!!ie)if(Array.isArray(ie)){for(ne=ie.length;(ne-=1)>=0;)if(ie[ne]){if(E(W,oe[X]))M=new A(ie[ne],[Be,ne],"Property",new y(ie,ne));else if(v(ie[ne]))M=new A(ie[ne],[Be,ne],null,new y(ie,ne));else continue;B.push(M)}}else v(ie)&&B.push(new A(ie,Be,null,new y(N,Be)))}}return Ce.root};function T(g,x){var F=new C;return F.traverse(g,x)}function I(g,x){var F=new C;return F.replace(g,x)}function V(g,x){var F;return F=m(x,function(R){return R.range[0]>g.range[0]}),g.extendedRange=[g.range[0],g.range[1]],F!==x.length&&(g.extendedRange[1]=x[F].range[0]),F-=1,F>=0&&(g.extendedRange[0]=x[F].range[1]),g}function S(g,x,F){var B=[],R,N,W,q;if(!g.range)throw new Error("attachComments needs range information");if(!F.length){if(x.length){for(W=0,N=x.length;WM.range[0]));)X.extendedRange[1]===M.range[0]?(M.leadingComments||(M.leadingComments=[]),M.leadingComments.push(X),B.splice(q,1)):q+=1;if(q===B.length)return u.Break;if(B[q].extendedRange[0]>M.range[1])return u.Skip}}),q=0,T(g,{leave:function(M){for(var X;qM.range[1])return u.Skip}}),g}return r.Syntax=i,r.traverse=T,r.replace=I,r.attachComments=S,r.VisitorKeys=s,r.VisitorOption=u,r.Controller=C,r.cloneEnvironment=function(){return t({})},r})(e)})(Bi);var St={},wi={exports:{}};(function(){function e(a){if(a==null)return!1;switch(a.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function t(a){if(a==null)return!1;switch(a.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function r(a){if(a==null)return!1;switch(a.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function i(a){return r(a)||a!=null&&a.type==="FunctionDeclaration"}function u(a){switch(a.type){case"IfStatement":return a.alternate!=null?a.alternate:a.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return a.body}return null}function s(a){var f;if(a.type!=="IfStatement"||a.alternate==null)return!1;f=a.consequent;do{if(f.type==="IfStatement"&&f.alternate==null)return!0;f=u(f)}while(f);return!1}wi.exports={isExpression:e,isStatement:r,isIterationStatement:t,isSourceElement:i,isProblematicIfStatement:s,trailingStatement:u}})();var mu=wi.exports,ki={exports:{}};(function(){var e,t,r,i,u,s;t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function a(b){return 48<=b&&b<=57}function f(b){return 48<=b&&b<=57||97<=b&&b<=102||65<=b&&b<=70}function p(b){return b>=48&&b<=55}r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function D(b){return b===32||b===9||b===11||b===12||b===160||b>=5760&&r.indexOf(b)>=0}function m(b){return b===10||b===13||b===8232||b===8233}function y(b){if(b<=65535)return String.fromCharCode(b);var T=String.fromCharCode(Math.floor((b-65536)/1024)+55296),I=String.fromCharCode((b-65536)%1024+56320);return T+I}for(i=new Array(128),s=0;s<128;++s)i[s]=s>=97&&s<=122||s>=65&&s<=90||s===36||s===95;for(u=new Array(128),s=0;s<128;++s)u[s]=s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||s===36||s===95;function A(b){return b<128?i[b]:t.NonAsciiIdentifierStart.test(y(b))}function C(b){return b<128?u[b]:t.NonAsciiIdentifierPart.test(y(b))}function v(b){return b<128?i[b]:e.NonAsciiIdentifierStart.test(y(b))}function E(b){return b<128?u[b]:e.NonAsciiIdentifierPart.test(y(b))}ki.exports={isDecimalDigit:a,isHexDigit:f,isOctalDigit:p,isWhiteSpace:D,isLineTerminator:m,isIdentifierStartES5:A,isIdentifierPartES5:C,isIdentifierStartES6:v,isIdentifierPartES6:E}})();var Ii=ki.exports,Ti={exports:{}};(function(){var e=Ii;function t(A){switch(A){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function r(A,C){return!C&&A==="yield"?!1:i(A,C)}function i(A,C){if(C&&t(A))return!0;switch(A.length){case 2:return A==="if"||A==="in"||A==="do";case 3:return A==="var"||A==="for"||A==="new"||A==="try";case 4:return A==="this"||A==="else"||A==="case"||A==="void"||A==="with"||A==="enum";case 5:return A==="while"||A==="break"||A==="catch"||A==="throw"||A==="const"||A==="yield"||A==="class"||A==="super";case 6:return A==="return"||A==="typeof"||A==="delete"||A==="switch"||A==="export"||A==="import";case 7:return A==="default"||A==="finally"||A==="extends";case 8:return A==="function"||A==="continue"||A==="debugger";case 10:return A==="instanceof";default:return!1}}function u(A,C){return A==="null"||A==="true"||A==="false"||r(A,C)}function s(A,C){return A==="null"||A==="true"||A==="false"||i(A,C)}function a(A){return A==="eval"||A==="arguments"}function f(A){var C,v,E;if(A.length===0||(E=A.charCodeAt(0),!e.isIdentifierStartES5(E)))return!1;for(C=1,v=A.length;C=v||(b=A.charCodeAt(C),!(56320<=b&&b<=57343)))return!1;E=p(E,b)}if(!T(E))return!1;T=e.isIdentifierPartES6}return!0}function m(A,C){return f(A)&&!u(A,C)}function y(A,C){return D(A)&&!s(A,C)}Ti.exports={isKeywordES5:r,isKeywordES6:i,isReservedWordES5:u,isReservedWordES6:s,isRestrictedWord:a,isIdentifierNameES5:f,isIdentifierNameES6:D,isIdentifierES5:m,isIdentifierES6:y}})();var gu=Ti.exports;(function(){St.ast=mu,St.code=Ii,St.keyword=gu})();var it={},Zt={},Ft={},vt={},Hr;function Du(){if(Hr)return vt;Hr=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return vt.encode=function(t){if(0<=t&&t>1;return p?-D:D}return Ft.encode=function(p){var D="",m,y=s(p);do m=y&i,y>>>=t,y>0&&(m|=u),D+=e.encode(m);while(y>0);return D},Ft.decode=function(p,D,m){var y=p.length,A=0,C=0,v,E;do{if(D>=y)throw new Error("Expected more digits in base 64 VLQ value.");if(E=e.decode(p.charCodeAt(D++)),E===-1)throw new Error("Invalid base64 digit: "+p.charAt(D-1));v=!!(E&u),E&=i,A=A+(E<=0;W--)R=B[W],R==="."?B.splice(W,1):R===".."?N++:N>0&&(R===""?(B.splice(W+1,N),N=0):(B.splice(W,2),N--));return g=B.join("/"),g===""&&(g=F?"/":"."),x?(x.path=g,s(x)):g}e.normalize=a;function f(S,g){S===""&&(S="."),g===""&&(g=".");var x=u(g),F=u(S);if(F&&(S=F.path||"/"),x&&!x.scheme)return F&&(x.scheme=F.scheme),s(x);if(x||g.match(i))return g;if(F&&!F.host&&!F.path)return F.host=g,s(F);var B=g.charAt(0)==="/"?g:a(S.replace(/\/+$/,"")+"/"+g);return F?(F.path=B,s(F)):B}e.join=f,e.isAbsolute=function(S){return S.charAt(0)==="/"||r.test(S)};function p(S,g){S===""&&(S="."),S=S.replace(/\/$/,"");for(var x=0;g.indexOf(S+"/")!==0;){var F=S.lastIndexOf("/");if(F<0||(S=S.slice(0,F),S.match(/^([^\/]+:\/)?\/*$/)))return g;++x}return Array(x+1).join("../")+g.substr(S.length+1)}e.relative=p;var D=function(){var S=Object.create(null);return!("__proto__"in S)}();function m(S){return S}function y(S){return C(S)?"$"+S:S}e.toSetString=D?m:y;function A(S){return C(S)?S.slice(1):S}e.fromSetString=D?m:A;function C(S){if(!S)return!1;var g=S.length;if(g<9||S.charCodeAt(g-1)!==95||S.charCodeAt(g-2)!==95||S.charCodeAt(g-3)!==111||S.charCodeAt(g-4)!==116||S.charCodeAt(g-5)!==111||S.charCodeAt(g-6)!==114||S.charCodeAt(g-7)!==112||S.charCodeAt(g-8)!==95||S.charCodeAt(g-9)!==95)return!1;for(var x=g-10;x>=0;x--)if(S.charCodeAt(x)!==36)return!1;return!0}function v(S,g,x){var F=b(S.source,g.source);return F!==0||(F=S.originalLine-g.originalLine,F!==0)||(F=S.originalColumn-g.originalColumn,F!==0||x)||(F=S.generatedColumn-g.generatedColumn,F!==0)||(F=S.generatedLine-g.generatedLine,F!==0)?F:b(S.name,g.name)}e.compareByOriginalPositions=v;function E(S,g,x){var F=S.generatedLine-g.generatedLine;return F!==0||(F=S.generatedColumn-g.generatedColumn,F!==0||x)||(F=b(S.source,g.source),F!==0)||(F=S.originalLine-g.originalLine,F!==0)||(F=S.originalColumn-g.originalColumn,F!==0)?F:b(S.name,g.name)}e.compareByGeneratedPositionsDeflated=E;function b(S,g){return S===g?0:S===null?1:g===null?-1:S>g?1:-1}function T(S,g){var x=S.generatedLine-g.generatedLine;return x!==0||(x=S.generatedColumn-g.generatedColumn,x!==0)||(x=b(S.source,g.source),x!==0)||(x=S.originalLine-g.originalLine,x!==0)||(x=S.originalColumn-g.originalColumn,x!==0)?x:b(S.name,g.name)}e.compareByGeneratedPositionsInflated=T;function I(S){return JSON.parse(S.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=I;function V(S,g,x){if(g=g||"",S&&(S[S.length-1]!=="/"&&g[0]!=="/"&&(S+="/"),g=S+g),x){var F=u(x);if(!F)throw new Error("sourceMapURL could not be parsed");if(F.path){var B=F.path.lastIndexOf("/");B>=0&&(F.path=F.path.substring(0,B+1))}g=f(s(F),g)}return a(g)}e.computeSourceURL=V}(er)),er}var tr={},Kr;function Ni(){if(Kr)return tr;Kr=1;var e=dt(),t=Object.prototype.hasOwnProperty,r=typeof Map<"u";function i(){this._array=[],this._set=r?new Map:Object.create(null)}return i.fromArray=function(s,a){for(var f=new i,p=0,D=s.length;p=0)return a}else{var f=e.toSetString(s);if(t.call(this._set,f))return this._set[f]}throw new Error('"'+s+'" is not in the set.')},i.prototype.at=function(s){if(s>=0&&ss||a==s&&p>=f||e.compareByGeneratedPositionsInflated(i,u)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return r.prototype.unsortedForEach=function(u,s){this._array.forEach(u,s)},r.prototype.add=function(u){t(this._last,u)?(this._last=u,this._array.push(u)):(this._sorted=!1,this._array.push(u))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},rr.MappingList=r,rr}var Zr;function Li(){if(Zr)return Zt;Zr=1;var e=Pi(),t=dt(),r=Ni().ArraySet,i=Au().MappingList;function u(s){s||(s={}),this._file=t.getArg(s,"file",null),this._sourceRoot=t.getArg(s,"sourceRoot",null),this._skipValidation=t.getArg(s,"skipValidation",!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}return u.prototype._version=3,u.fromSourceMap=function(a){var f=a.sourceRoot,p=new u({file:a.file,sourceRoot:f});return a.eachMapping(function(D){var m={generated:{line:D.generatedLine,column:D.generatedColumn}};D.source!=null&&(m.source=D.source,f!=null&&(m.source=t.relative(f,m.source)),m.original={line:D.originalLine,column:D.originalColumn},D.name!=null&&(m.name=D.name)),p.addMapping(m)}),a.sources.forEach(function(D){var m=D;f!==null&&(m=t.relative(f,D)),p._sources.has(m)||p._sources.add(m);var y=a.sourceContentFor(D);y!=null&&p.setSourceContent(D,y)}),p},u.prototype.addMapping=function(a){var f=t.getArg(a,"generated"),p=t.getArg(a,"original",null),D=t.getArg(a,"source",null),m=t.getArg(a,"name",null);this._skipValidation||this._validateMapping(f,p,D,m),D!=null&&(D=String(D),this._sources.has(D)||this._sources.add(D)),m!=null&&(m=String(m),this._names.has(m)||this._names.add(m)),this._mappings.add({generatedLine:f.line,generatedColumn:f.column,originalLine:p!=null&&p.line,originalColumn:p!=null&&p.column,source:D,name:m})},u.prototype.setSourceContent=function(a,f){var p=a;this._sourceRoot!=null&&(p=t.relative(this._sourceRoot,p)),f!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(p)]=f):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(p)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},u.prototype.applySourceMap=function(a,f,p){var D=f;if(f==null){if(a.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);D=a.file}var m=this._sourceRoot;m!=null&&(D=t.relative(m,D));var y=new r,A=new r;this._mappings.unsortedForEach(function(C){if(C.source===D&&C.originalLine!=null){var v=a.originalPositionFor({line:C.originalLine,column:C.originalColumn});v.source!=null&&(C.source=v.source,p!=null&&(C.source=t.join(p,C.source)),m!=null&&(C.source=t.relative(m,C.source)),C.originalLine=v.line,C.originalColumn=v.column,v.name!=null&&(C.name=v.name))}var E=C.source;E!=null&&!y.has(E)&&y.add(E);var b=C.name;b!=null&&!A.has(b)&&A.add(b)},this),this._sources=y,this._names=A,a.sources.forEach(function(C){var v=a.sourceContentFor(C);v!=null&&(p!=null&&(C=t.join(p,C)),m!=null&&(C=t.relative(m,C)),this.setSourceContent(C,v))},this)},u.prototype._validateMapping=function(a,f,p,D){if(f&&typeof f.line!="number"&&typeof f.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(a&&"line"in a&&"column"in a&&a.line>0&&a.column>=0&&!f&&!p&&!D)){if(a&&"line"in a&&"column"in a&&f&&"line"in f&&"column"in f&&a.line>0&&a.column>=0&&f.line>0&&f.column>=0&&p)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:p,original:f,name:D}))}},u.prototype._serializeMappings=function(){for(var a=0,f=1,p=0,D=0,m=0,y=0,A="",C,v,E,b,T=this._mappings.toArray(),I=0,V=T.length;I0){if(!t.compareByGeneratedPositionsInflated(v,T[I-1]))continue;C+=","}C+=e.encode(v.generatedColumn-a),a=v.generatedColumn,v.source!=null&&(b=this._sources.indexOf(v.source),C+=e.encode(b-y),y=b,C+=e.encode(v.originalLine-1-D),D=v.originalLine-1,C+=e.encode(v.originalColumn-p),p=v.originalColumn,v.name!=null&&(E=this._names.indexOf(v.name),C+=e.encode(E-m),m=E)),A+=C}return A},u.prototype._generateSourcesContent=function(a,f){return a.map(function(p){if(!this._sourcesContents)return null;f!=null&&(p=t.relative(f,p));var D=t.toSetString(p);return Object.prototype.hasOwnProperty.call(this._sourcesContents,D)?this._sourcesContents[D]:null},this)},u.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(a.file=this._file),this._sourceRoot!=null&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},u.prototype.toString=function(){return JSON.stringify(this.toJSON())},Zt.SourceMapGenerator=u,Zt}var nt={},ir={},ei;function Cu(){return ei||(ei=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(r,i,u,s,a,f){var p=Math.floor((i-r)/2)+r,D=a(u,s[p],!0);return D===0?p:D>0?i-p>1?t(p,i,u,s,a,f):f==e.LEAST_UPPER_BOUND?i1?t(r,p,u,s,a,f):f==e.LEAST_UPPER_BOUND?p:r<0?-1:r}e.search=function(i,u,s,a){if(u.length===0)return-1;var f=t(-1,u.length,i,u,s,a||e.GREATEST_LOWER_BOUND);if(f<0)return-1;for(;f-1>=0&&s(u[f],u[f-1],!0)===0;)--f;return f}}(ir)),ir}var nr={},ti;function Eu(){if(ti)return nr;ti=1;function e(i,u,s){var a=i[u];i[u]=i[s],i[s]=a}function t(i,u){return Math.round(i+Math.random()*(u-i))}function r(i,u,s,a){if(s=0){var E=this._originalMappings[v];if(m.column===void 0)for(var b=E.originalLine;E&&E.originalLine===b;)C.push({line:e.getArg(E,"generatedLine",null),column:e.getArg(E,"generatedColumn",null),lastColumn:e.getArg(E,"lastGeneratedColumn",null)}),E=this._originalMappings[++v];else for(var T=E.originalColumn;E&&E.originalLine===y&&E.originalColumn==T;)C.push({line:e.getArg(E,"generatedLine",null),column:e.getArg(E,"generatedColumn",null),lastColumn:e.getArg(E,"lastGeneratedColumn",null)}),E=this._originalMappings[++v]}return C},nt.SourceMapConsumer=s;function a(D,m){var y=D;typeof D=="string"&&(y=e.parseSourceMapInput(D));var A=e.getArg(y,"version"),C=e.getArg(y,"sources"),v=e.getArg(y,"names",[]),E=e.getArg(y,"sourceRoot",null),b=e.getArg(y,"sourcesContent",null),T=e.getArg(y,"mappings"),I=e.getArg(y,"file",null);if(A!=this._version)throw new Error("Unsupported version: "+A);E&&(E=e.normalize(E)),C=C.map(String).map(e.normalize).map(function(V){return E&&e.isAbsolute(E)&&e.isAbsolute(V)?e.relative(E,V):V}),this._names=r.fromArray(v.map(String),!0),this._sources=r.fromArray(C,!0),this._absoluteSources=this._sources.toArray().map(function(V){return e.computeSourceURL(E,V,m)}),this.sourceRoot=E,this.sourcesContent=b,this._mappings=T,this._sourceMapURL=m,this.file=I}a.prototype=Object.create(s.prototype),a.prototype.consumer=s,a.prototype._findSourceIndex=function(D){var m=D;if(this.sourceRoot!=null&&(m=e.relative(this.sourceRoot,m)),this._sources.has(m))return this._sources.indexOf(m);var y;for(y=0;y1&&(B.source=b+N[1],b+=N[1],B.originalLine=v+N[2],v=B.originalLine,B.originalLine+=1,B.originalColumn=E+N[3],E=B.originalColumn,N.length>4&&(B.name=T+N[4],T+=N[4])),F.push(B),typeof B.originalLine=="number"&&x.push(B)}u(F,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=F,u(x,e.compareByOriginalPositions),this.__originalMappings=x},a.prototype._findMapping=function(m,y,A,C,v,E){if(m[A]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+m[A]);if(m[C]<0)throw new TypeError("Column must be greater than or equal to 0, got "+m[C]);return t.search(m,y,v,E)},a.prototype.computeColumnSpans=function(){for(var m=0;m=0){var C=this._generatedMappings[A];if(C.generatedLine===y.generatedLine){var v=e.getArg(C,"source",null);v!==null&&(v=this._sources.at(v),v=e.computeSourceURL(this.sourceRoot,v,this._sourceMapURL));var E=e.getArg(C,"name",null);return E!==null&&(E=this._names.at(E)),{source:v,line:e.getArg(C,"originalLine",null),column:e.getArg(C,"originalColumn",null),name:E}}}return{source:null,line:null,column:null,name:null}},a.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(m){return m==null}):!1},a.prototype.sourceContentFor=function(m,y){if(!this.sourcesContent)return null;var A=this._findSourceIndex(m);if(A>=0)return this.sourcesContent[A];var C=m;this.sourceRoot!=null&&(C=e.relative(this.sourceRoot,C));var v;if(this.sourceRoot!=null&&(v=e.urlParse(this.sourceRoot))){var E=C.replace(/^file:\/\//,"");if(v.scheme=="file"&&this._sources.has(E))return this.sourcesContent[this._sources.indexOf(E)];if((!v.path||v.path=="/")&&this._sources.has("/"+C))return this.sourcesContent[this._sources.indexOf("/"+C)]}if(y)return null;throw new Error('"'+C+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(m){var y=e.getArg(m,"source");if(y=this._findSourceIndex(y),y<0)return{line:null,column:null,lastColumn:null};var A={source:y,originalLine:e.getArg(m,"line"),originalColumn:e.getArg(m,"column")},C=this._findMapping(A,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(m,"bias",s.GREATEST_LOWER_BOUND));if(C>=0){var v=this._originalMappings[C];if(v.source===A.source)return{line:e.getArg(v,"generatedLine",null),column:e.getArg(v,"generatedColumn",null),lastColumn:e.getArg(v,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},nt.BasicSourceMapConsumer=a;function p(D,m){var y=D;typeof D=="string"&&(y=e.parseSourceMapInput(D));var A=e.getArg(y,"version"),C=e.getArg(y,"sections");if(A!=this._version)throw new Error("Unsupported version: "+A);this._sources=new r,this._names=new r;var v={line:-1,column:0};this._sections=C.map(function(E){if(E.url)throw new Error("Support for url field in sections not implemented.");var b=e.getArg(E,"offset"),T=e.getArg(b,"line"),I=e.getArg(b,"column");if(T=0;p--)this.prepend(f[p]);else if(f[u]||typeof f=="string")this.children.unshift(f);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+f);return this},s.prototype.walk=function(f){for(var p,D=0,m=this.children.length;D0){for(p=[],D=0;D=6.0"},Tu=[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"http://github.com/Constellation"}],Pu={type:"git",url:"http://github.com/estools/escodegen.git"},Nu={estraverse:"^5.2.0",esutils:"^2.0.2",esprima:"^4.0.1"},Lu={"source-map":"~0.6.1"},Ou={acorn:"^8.0.4",bluebird:"^3.4.7","bower-registry-client":"^1.0.0",chai:"^4.2.0","chai-exclude":"^2.0.2","commonjs-everywhere":"^0.9.7",gulp:"^4.0.2","gulp-eslint":"^6.0.0","gulp-mocha":"^7.0.2",minimist:"^1.2.5",optionator:"^0.9.1",semver:"^7.3.4"},Ru="BSD-2-Clause",Mu={test:"gulp travis","unit-test":"gulp test",lint:"gulp lint",release:"node tools/release.js","build-min":"./node_modules/.bin/cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js",build:"./node_modules/.bin/cjsify -a path: tools/entry-point.js > escodegen.browser.js"},Vu={name:vu,description:bu,homepage:Su,main:_u,bin:Bu,files:wu,version:ku,engines:Iu,maintainers:Tu,repository:Pu,dependencies:Nu,optionalDependencies:Lu,devDependencies:Ou,license:Ru,scripts:Mu};(function(e){(function(){var t,r,i,u,s,a,f,p,D,m,y,A,C,v,E,b,T,I,V,S,g,x,F,B,R,N;s=Bi,a=St,t=s.Syntax;function W(n){return ae.Expression.hasOwnProperty(n.type)}function q(n){return ae.Statement.hasOwnProperty(n.type)}r={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,Coalesce:3,LogicalOR:4,LogicalAND:5,BitwiseOR:6,BitwiseXOR:7,BitwiseAND:8,Equality:9,Relational:10,BitwiseSHIFT:11,Additive:12,Multiplicative:13,Exponentiation:14,Await:15,Unary:15,Postfix:16,OptionalChaining:17,Call:18,New:19,TaggedTemplate:20,Member:21,Primary:22},i={"??":r.Coalesce,"||":r.LogicalOR,"&&":r.LogicalAND,"|":r.BitwiseOR,"^":r.BitwiseXOR,"&":r.BitwiseAND,"==":r.Equality,"!=":r.Equality,"===":r.Equality,"!==":r.Equality,is:r.Equality,isnt:r.Equality,"<":r.Relational,">":r.Relational,"<=":r.Relational,">=":r.Relational,in:r.Relational,instanceof:r.Relational,"<<":r.BitwiseSHIFT,">>":r.BitwiseSHIFT,">>>":r.BitwiseSHIFT,"+":r.Additive,"-":r.Additive,"*":r.Multiplicative,"%":r.Multiplicative,"/":r.Multiplicative,"**":r.Exponentiation};var M=1,X=2,ne=4,oe=8,ie=16,Q=32,Ce=64,Be=X|ne,Je=M|X,O=M|X|ne,Ve=M,Ct=ne,Le=M|ne,ee=M,be=M|Q,Et=0,Rn=M|ie,Mn=M|oe;function Nr(){return{indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:` +import{a as xi,b as Kn,c as Fi,d as Yn,$ as Zn,z as eu,e as tu,O as te,s as Wr,f as Gr,K as ru,B as iu,P as zr,g as $r,o as ft,H as nu}from"./isArray-vVmlok3Z.js";import{g as pt,c as lt,a as uu}from"./_commonjsHelpers-Dq6BK7nx.js";import"./iframe-AJyGuqY3.js";import{d as su}from"./index-BWTWe0Km.js";import{R as st,r as Ge}from"./index-Bs6nXyGp.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a9b09a74-b9db-4830-a4b6-9148d6ff6e0f",e._sentryDebugIdIdentifier="sentry-dbid-a9b09a74-b9db-4830-a4b6-9148d6ff6e0f")}catch{}})();var vi={exports:{}},au="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ou=au,lu=ou;function bi(){}function Si(){}Si.resetWarningCache=bi;var cu=function(){function e(i,u,s,a,f,p){if(p!==lu){var D=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw D.name="Invariant Violation",D}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Si,resetWarningCache:bi};return r.PropTypes=r,r};vi.exports=cu();var hu=vi.exports;const Jr=pt(hu),fu=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","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","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];var pu=fu;const du=pt(pu);var _i={},Bi={};(function(e){(function t(r){var i,u,s,a,f,p;function D(g){var x={},F,B;for(F in g)g.hasOwnProperty(F)&&(B=g[F],typeof B=="object"&&B!==null?x[F]=D(B):x[F]=B);return x}function m(g,x){var F,B,R,N;for(B=g.length,R=0;B;)F=B>>>1,N=R+F,x(g[N])?B=F:(R=N+1,B-=F+1);return R}i={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},s={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},a={},f={},p={},u={Break:a,Skip:f,Remove:p};function y(g,x){this.parent=g,this.key=x}y.prototype.replace=function(x){this.parent[this.key]=x},y.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function A(g,x,F,B){this.node=g,this.path=x,this.wrap=F,this.ref=B}function C(){}C.prototype.path=function(){var x,F,B,R,N,W;function q(M,X){if(Array.isArray(X))for(B=0,R=X.length;B=0;--F)if(g[F].node===x)return!0;return!1}C.prototype.traverse=function(x,F){var B,R,N,W,q,M,X,ne,oe,ie,Q,Ce;for(this.__initialize(x,F),Ce={},B=this.__worklist,R=this.__leavelist,B.push(new A(x,null,null,null)),R.push(new A(null,null,null,null));B.length;){if(N=B.pop(),N===Ce){if(N=R.pop(),M=this.__execute(F.leave,N),this.__state===a||M===a)return;continue}if(N.node){if(M=this.__execute(F.enter,N),this.__state===a||M===a)return;if(B.push(Ce),R.push(N),this.__state===f||M===f)continue;if(W=N.node,q=W.type||N.wrap,ie=this.__keys[q],!ie)if(this.__fallback)ie=this.__fallback(W);else throw new Error("Unknown node type "+q+".");for(ne=ie.length;(ne-=1)>=0;)if(X=ie[ne],Q=W[X],!!Q){if(Array.isArray(Q)){for(oe=Q.length;(oe-=1)>=0;)if(Q[oe]&&!b(R,Q[oe])){if(E(q,ie[ne]))N=new A(Q[oe],[X,oe],"Property",null);else if(v(Q[oe]))N=new A(Q[oe],[X,oe],null,null);else continue;B.push(N)}}else if(v(Q)){if(b(R,Q))continue;B.push(new A(Q,X,null,null))}}}}},C.prototype.replace=function(x,F){var B,R,N,W,q,M,X,ne,oe,ie,Q,Ce,Be;function Je(O){var Ve,Ct,Le,ee;if(O.ref.remove()){for(Ct=O.ref.key,ee=O.ref.parent,Ve=B.length;Ve--;)if(Le=B[Ve],Le.ref&&Le.ref.parent===ee){if(Le.ref.key=0;)if(Be=oe[X],ie=N[Be],!!ie)if(Array.isArray(ie)){for(ne=ie.length;(ne-=1)>=0;)if(ie[ne]){if(E(W,oe[X]))M=new A(ie[ne],[Be,ne],"Property",new y(ie,ne));else if(v(ie[ne]))M=new A(ie[ne],[Be,ne],null,new y(ie,ne));else continue;B.push(M)}}else v(ie)&&B.push(new A(ie,Be,null,new y(N,Be)))}}return Ce.root};function T(g,x){var F=new C;return F.traverse(g,x)}function I(g,x){var F=new C;return F.replace(g,x)}function V(g,x){var F;return F=m(x,function(R){return R.range[0]>g.range[0]}),g.extendedRange=[g.range[0],g.range[1]],F!==x.length&&(g.extendedRange[1]=x[F].range[0]),F-=1,F>=0&&(g.extendedRange[0]=x[F].range[1]),g}function S(g,x,F){var B=[],R,N,W,q;if(!g.range)throw new Error("attachComments needs range information");if(!F.length){if(x.length){for(W=0,N=x.length;WM.range[0]));)X.extendedRange[1]===M.range[0]?(M.leadingComments||(M.leadingComments=[]),M.leadingComments.push(X),B.splice(q,1)):q+=1;if(q===B.length)return u.Break;if(B[q].extendedRange[0]>M.range[1])return u.Skip}}),q=0,T(g,{leave:function(M){for(var X;qM.range[1])return u.Skip}}),g}return r.Syntax=i,r.traverse=T,r.replace=I,r.attachComments=S,r.VisitorKeys=s,r.VisitorOption=u,r.Controller=C,r.cloneEnvironment=function(){return t({})},r})(e)})(Bi);var St={},wi={exports:{}};(function(){function e(a){if(a==null)return!1;switch(a.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function t(a){if(a==null)return!1;switch(a.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function r(a){if(a==null)return!1;switch(a.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function i(a){return r(a)||a!=null&&a.type==="FunctionDeclaration"}function u(a){switch(a.type){case"IfStatement":return a.alternate!=null?a.alternate:a.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return a.body}return null}function s(a){var f;if(a.type!=="IfStatement"||a.alternate==null)return!1;f=a.consequent;do{if(f.type==="IfStatement"&&f.alternate==null)return!0;f=u(f)}while(f);return!1}wi.exports={isExpression:e,isStatement:r,isIterationStatement:t,isSourceElement:i,isProblematicIfStatement:s,trailingStatement:u}})();var mu=wi.exports,ki={exports:{}};(function(){var e,t,r,i,u,s;t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function a(b){return 48<=b&&b<=57}function f(b){return 48<=b&&b<=57||97<=b&&b<=102||65<=b&&b<=70}function p(b){return b>=48&&b<=55}r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function D(b){return b===32||b===9||b===11||b===12||b===160||b>=5760&&r.indexOf(b)>=0}function m(b){return b===10||b===13||b===8232||b===8233}function y(b){if(b<=65535)return String.fromCharCode(b);var T=String.fromCharCode(Math.floor((b-65536)/1024)+55296),I=String.fromCharCode((b-65536)%1024+56320);return T+I}for(i=new Array(128),s=0;s<128;++s)i[s]=s>=97&&s<=122||s>=65&&s<=90||s===36||s===95;for(u=new Array(128),s=0;s<128;++s)u[s]=s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||s===36||s===95;function A(b){return b<128?i[b]:t.NonAsciiIdentifierStart.test(y(b))}function C(b){return b<128?u[b]:t.NonAsciiIdentifierPart.test(y(b))}function v(b){return b<128?i[b]:e.NonAsciiIdentifierStart.test(y(b))}function E(b){return b<128?u[b]:e.NonAsciiIdentifierPart.test(y(b))}ki.exports={isDecimalDigit:a,isHexDigit:f,isOctalDigit:p,isWhiteSpace:D,isLineTerminator:m,isIdentifierStartES5:A,isIdentifierPartES5:C,isIdentifierStartES6:v,isIdentifierPartES6:E}})();var Ii=ki.exports,Ti={exports:{}};(function(){var e=Ii;function t(A){switch(A){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function r(A,C){return!C&&A==="yield"?!1:i(A,C)}function i(A,C){if(C&&t(A))return!0;switch(A.length){case 2:return A==="if"||A==="in"||A==="do";case 3:return A==="var"||A==="for"||A==="new"||A==="try";case 4:return A==="this"||A==="else"||A==="case"||A==="void"||A==="with"||A==="enum";case 5:return A==="while"||A==="break"||A==="catch"||A==="throw"||A==="const"||A==="yield"||A==="class"||A==="super";case 6:return A==="return"||A==="typeof"||A==="delete"||A==="switch"||A==="export"||A==="import";case 7:return A==="default"||A==="finally"||A==="extends";case 8:return A==="function"||A==="continue"||A==="debugger";case 10:return A==="instanceof";default:return!1}}function u(A,C){return A==="null"||A==="true"||A==="false"||r(A,C)}function s(A,C){return A==="null"||A==="true"||A==="false"||i(A,C)}function a(A){return A==="eval"||A==="arguments"}function f(A){var C,v,E;if(A.length===0||(E=A.charCodeAt(0),!e.isIdentifierStartES5(E)))return!1;for(C=1,v=A.length;C=v||(b=A.charCodeAt(C),!(56320<=b&&b<=57343)))return!1;E=p(E,b)}if(!T(E))return!1;T=e.isIdentifierPartES6}return!0}function m(A,C){return f(A)&&!u(A,C)}function y(A,C){return D(A)&&!s(A,C)}Ti.exports={isKeywordES5:r,isKeywordES6:i,isReservedWordES5:u,isReservedWordES6:s,isRestrictedWord:a,isIdentifierNameES5:f,isIdentifierNameES6:D,isIdentifierES5:m,isIdentifierES6:y}})();var gu=Ti.exports;(function(){St.ast=mu,St.code=Ii,St.keyword=gu})();var it={},Zt={},Ft={},vt={},Hr;function Du(){if(Hr)return vt;Hr=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return vt.encode=function(t){if(0<=t&&t>1;return p?-D:D}return Ft.encode=function(p){var D="",m,y=s(p);do m=y&i,y>>>=t,y>0&&(m|=u),D+=e.encode(m);while(y>0);return D},Ft.decode=function(p,D,m){var y=p.length,A=0,C=0,v,E;do{if(D>=y)throw new Error("Expected more digits in base 64 VLQ value.");if(E=e.decode(p.charCodeAt(D++)),E===-1)throw new Error("Invalid base64 digit: "+p.charAt(D-1));v=!!(E&u),E&=i,A=A+(E<=0;W--)R=B[W],R==="."?B.splice(W,1):R===".."?N++:N>0&&(R===""?(B.splice(W+1,N),N=0):(B.splice(W,2),N--));return g=B.join("/"),g===""&&(g=F?"/":"."),x?(x.path=g,s(x)):g}e.normalize=a;function f(S,g){S===""&&(S="."),g===""&&(g=".");var x=u(g),F=u(S);if(F&&(S=F.path||"/"),x&&!x.scheme)return F&&(x.scheme=F.scheme),s(x);if(x||g.match(i))return g;if(F&&!F.host&&!F.path)return F.host=g,s(F);var B=g.charAt(0)==="/"?g:a(S.replace(/\/+$/,"")+"/"+g);return F?(F.path=B,s(F)):B}e.join=f,e.isAbsolute=function(S){return S.charAt(0)==="/"||r.test(S)};function p(S,g){S===""&&(S="."),S=S.replace(/\/$/,"");for(var x=0;g.indexOf(S+"/")!==0;){var F=S.lastIndexOf("/");if(F<0||(S=S.slice(0,F),S.match(/^([^\/]+:\/)?\/*$/)))return g;++x}return Array(x+1).join("../")+g.substr(S.length+1)}e.relative=p;var D=function(){var S=Object.create(null);return!("__proto__"in S)}();function m(S){return S}function y(S){return C(S)?"$"+S:S}e.toSetString=D?m:y;function A(S){return C(S)?S.slice(1):S}e.fromSetString=D?m:A;function C(S){if(!S)return!1;var g=S.length;if(g<9||S.charCodeAt(g-1)!==95||S.charCodeAt(g-2)!==95||S.charCodeAt(g-3)!==111||S.charCodeAt(g-4)!==116||S.charCodeAt(g-5)!==111||S.charCodeAt(g-6)!==114||S.charCodeAt(g-7)!==112||S.charCodeAt(g-8)!==95||S.charCodeAt(g-9)!==95)return!1;for(var x=g-10;x>=0;x--)if(S.charCodeAt(x)!==36)return!1;return!0}function v(S,g,x){var F=b(S.source,g.source);return F!==0||(F=S.originalLine-g.originalLine,F!==0)||(F=S.originalColumn-g.originalColumn,F!==0||x)||(F=S.generatedColumn-g.generatedColumn,F!==0)||(F=S.generatedLine-g.generatedLine,F!==0)?F:b(S.name,g.name)}e.compareByOriginalPositions=v;function E(S,g,x){var F=S.generatedLine-g.generatedLine;return F!==0||(F=S.generatedColumn-g.generatedColumn,F!==0||x)||(F=b(S.source,g.source),F!==0)||(F=S.originalLine-g.originalLine,F!==0)||(F=S.originalColumn-g.originalColumn,F!==0)?F:b(S.name,g.name)}e.compareByGeneratedPositionsDeflated=E;function b(S,g){return S===g?0:S===null?1:g===null?-1:S>g?1:-1}function T(S,g){var x=S.generatedLine-g.generatedLine;return x!==0||(x=S.generatedColumn-g.generatedColumn,x!==0)||(x=b(S.source,g.source),x!==0)||(x=S.originalLine-g.originalLine,x!==0)||(x=S.originalColumn-g.originalColumn,x!==0)?x:b(S.name,g.name)}e.compareByGeneratedPositionsInflated=T;function I(S){return JSON.parse(S.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=I;function V(S,g,x){if(g=g||"",S&&(S[S.length-1]!=="/"&&g[0]!=="/"&&(S+="/"),g=S+g),x){var F=u(x);if(!F)throw new Error("sourceMapURL could not be parsed");if(F.path){var B=F.path.lastIndexOf("/");B>=0&&(F.path=F.path.substring(0,B+1))}g=f(s(F),g)}return a(g)}e.computeSourceURL=V}(er)),er}var tr={},Kr;function Ni(){if(Kr)return tr;Kr=1;var e=dt(),t=Object.prototype.hasOwnProperty,r=typeof Map<"u";function i(){this._array=[],this._set=r?new Map:Object.create(null)}return i.fromArray=function(s,a){for(var f=new i,p=0,D=s.length;p=0)return a}else{var f=e.toSetString(s);if(t.call(this._set,f))return this._set[f]}throw new Error('"'+s+'" is not in the set.')},i.prototype.at=function(s){if(s>=0&&ss||a==s&&p>=f||e.compareByGeneratedPositionsInflated(i,u)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return r.prototype.unsortedForEach=function(u,s){this._array.forEach(u,s)},r.prototype.add=function(u){t(this._last,u)?(this._last=u,this._array.push(u)):(this._sorted=!1,this._array.push(u))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},rr.MappingList=r,rr}var Zr;function Li(){if(Zr)return Zt;Zr=1;var e=Pi(),t=dt(),r=Ni().ArraySet,i=Au().MappingList;function u(s){s||(s={}),this._file=t.getArg(s,"file",null),this._sourceRoot=t.getArg(s,"sourceRoot",null),this._skipValidation=t.getArg(s,"skipValidation",!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}return u.prototype._version=3,u.fromSourceMap=function(a){var f=a.sourceRoot,p=new u({file:a.file,sourceRoot:f});return a.eachMapping(function(D){var m={generated:{line:D.generatedLine,column:D.generatedColumn}};D.source!=null&&(m.source=D.source,f!=null&&(m.source=t.relative(f,m.source)),m.original={line:D.originalLine,column:D.originalColumn},D.name!=null&&(m.name=D.name)),p.addMapping(m)}),a.sources.forEach(function(D){var m=D;f!==null&&(m=t.relative(f,D)),p._sources.has(m)||p._sources.add(m);var y=a.sourceContentFor(D);y!=null&&p.setSourceContent(D,y)}),p},u.prototype.addMapping=function(a){var f=t.getArg(a,"generated"),p=t.getArg(a,"original",null),D=t.getArg(a,"source",null),m=t.getArg(a,"name",null);this._skipValidation||this._validateMapping(f,p,D,m),D!=null&&(D=String(D),this._sources.has(D)||this._sources.add(D)),m!=null&&(m=String(m),this._names.has(m)||this._names.add(m)),this._mappings.add({generatedLine:f.line,generatedColumn:f.column,originalLine:p!=null&&p.line,originalColumn:p!=null&&p.column,source:D,name:m})},u.prototype.setSourceContent=function(a,f){var p=a;this._sourceRoot!=null&&(p=t.relative(this._sourceRoot,p)),f!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(p)]=f):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(p)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},u.prototype.applySourceMap=function(a,f,p){var D=f;if(f==null){if(a.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);D=a.file}var m=this._sourceRoot;m!=null&&(D=t.relative(m,D));var y=new r,A=new r;this._mappings.unsortedForEach(function(C){if(C.source===D&&C.originalLine!=null){var v=a.originalPositionFor({line:C.originalLine,column:C.originalColumn});v.source!=null&&(C.source=v.source,p!=null&&(C.source=t.join(p,C.source)),m!=null&&(C.source=t.relative(m,C.source)),C.originalLine=v.line,C.originalColumn=v.column,v.name!=null&&(C.name=v.name))}var E=C.source;E!=null&&!y.has(E)&&y.add(E);var b=C.name;b!=null&&!A.has(b)&&A.add(b)},this),this._sources=y,this._names=A,a.sources.forEach(function(C){var v=a.sourceContentFor(C);v!=null&&(p!=null&&(C=t.join(p,C)),m!=null&&(C=t.relative(m,C)),this.setSourceContent(C,v))},this)},u.prototype._validateMapping=function(a,f,p,D){if(f&&typeof f.line!="number"&&typeof f.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(a&&"line"in a&&"column"in a&&a.line>0&&a.column>=0&&!f&&!p&&!D)){if(a&&"line"in a&&"column"in a&&f&&"line"in f&&"column"in f&&a.line>0&&a.column>=0&&f.line>0&&f.column>=0&&p)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:p,original:f,name:D}))}},u.prototype._serializeMappings=function(){for(var a=0,f=1,p=0,D=0,m=0,y=0,A="",C,v,E,b,T=this._mappings.toArray(),I=0,V=T.length;I0){if(!t.compareByGeneratedPositionsInflated(v,T[I-1]))continue;C+=","}C+=e.encode(v.generatedColumn-a),a=v.generatedColumn,v.source!=null&&(b=this._sources.indexOf(v.source),C+=e.encode(b-y),y=b,C+=e.encode(v.originalLine-1-D),D=v.originalLine-1,C+=e.encode(v.originalColumn-p),p=v.originalColumn,v.name!=null&&(E=this._names.indexOf(v.name),C+=e.encode(E-m),m=E)),A+=C}return A},u.prototype._generateSourcesContent=function(a,f){return a.map(function(p){if(!this._sourcesContents)return null;f!=null&&(p=t.relative(f,p));var D=t.toSetString(p);return Object.prototype.hasOwnProperty.call(this._sourcesContents,D)?this._sourcesContents[D]:null},this)},u.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(a.file=this._file),this._sourceRoot!=null&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},u.prototype.toString=function(){return JSON.stringify(this.toJSON())},Zt.SourceMapGenerator=u,Zt}var nt={},ir={},ei;function Cu(){return ei||(ei=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(r,i,u,s,a,f){var p=Math.floor((i-r)/2)+r,D=a(u,s[p],!0);return D===0?p:D>0?i-p>1?t(p,i,u,s,a,f):f==e.LEAST_UPPER_BOUND?i1?t(r,p,u,s,a,f):f==e.LEAST_UPPER_BOUND?p:r<0?-1:r}e.search=function(i,u,s,a){if(u.length===0)return-1;var f=t(-1,u.length,i,u,s,a||e.GREATEST_LOWER_BOUND);if(f<0)return-1;for(;f-1>=0&&s(u[f],u[f-1],!0)===0;)--f;return f}}(ir)),ir}var nr={},ti;function Eu(){if(ti)return nr;ti=1;function e(i,u,s){var a=i[u];i[u]=i[s],i[s]=a}function t(i,u){return Math.round(i+Math.random()*(u-i))}function r(i,u,s,a){if(s=0){var E=this._originalMappings[v];if(m.column===void 0)for(var b=E.originalLine;E&&E.originalLine===b;)C.push({line:e.getArg(E,"generatedLine",null),column:e.getArg(E,"generatedColumn",null),lastColumn:e.getArg(E,"lastGeneratedColumn",null)}),E=this._originalMappings[++v];else for(var T=E.originalColumn;E&&E.originalLine===y&&E.originalColumn==T;)C.push({line:e.getArg(E,"generatedLine",null),column:e.getArg(E,"generatedColumn",null),lastColumn:e.getArg(E,"lastGeneratedColumn",null)}),E=this._originalMappings[++v]}return C},nt.SourceMapConsumer=s;function a(D,m){var y=D;typeof D=="string"&&(y=e.parseSourceMapInput(D));var A=e.getArg(y,"version"),C=e.getArg(y,"sources"),v=e.getArg(y,"names",[]),E=e.getArg(y,"sourceRoot",null),b=e.getArg(y,"sourcesContent",null),T=e.getArg(y,"mappings"),I=e.getArg(y,"file",null);if(A!=this._version)throw new Error("Unsupported version: "+A);E&&(E=e.normalize(E)),C=C.map(String).map(e.normalize).map(function(V){return E&&e.isAbsolute(E)&&e.isAbsolute(V)?e.relative(E,V):V}),this._names=r.fromArray(v.map(String),!0),this._sources=r.fromArray(C,!0),this._absoluteSources=this._sources.toArray().map(function(V){return e.computeSourceURL(E,V,m)}),this.sourceRoot=E,this.sourcesContent=b,this._mappings=T,this._sourceMapURL=m,this.file=I}a.prototype=Object.create(s.prototype),a.prototype.consumer=s,a.prototype._findSourceIndex=function(D){var m=D;if(this.sourceRoot!=null&&(m=e.relative(this.sourceRoot,m)),this._sources.has(m))return this._sources.indexOf(m);var y;for(y=0;y1&&(B.source=b+N[1],b+=N[1],B.originalLine=v+N[2],v=B.originalLine,B.originalLine+=1,B.originalColumn=E+N[3],E=B.originalColumn,N.length>4&&(B.name=T+N[4],T+=N[4])),F.push(B),typeof B.originalLine=="number"&&x.push(B)}u(F,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=F,u(x,e.compareByOriginalPositions),this.__originalMappings=x},a.prototype._findMapping=function(m,y,A,C,v,E){if(m[A]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+m[A]);if(m[C]<0)throw new TypeError("Column must be greater than or equal to 0, got "+m[C]);return t.search(m,y,v,E)},a.prototype.computeColumnSpans=function(){for(var m=0;m=0){var C=this._generatedMappings[A];if(C.generatedLine===y.generatedLine){var v=e.getArg(C,"source",null);v!==null&&(v=this._sources.at(v),v=e.computeSourceURL(this.sourceRoot,v,this._sourceMapURL));var E=e.getArg(C,"name",null);return E!==null&&(E=this._names.at(E)),{source:v,line:e.getArg(C,"originalLine",null),column:e.getArg(C,"originalColumn",null),name:E}}}return{source:null,line:null,column:null,name:null}},a.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(m){return m==null}):!1},a.prototype.sourceContentFor=function(m,y){if(!this.sourcesContent)return null;var A=this._findSourceIndex(m);if(A>=0)return this.sourcesContent[A];var C=m;this.sourceRoot!=null&&(C=e.relative(this.sourceRoot,C));var v;if(this.sourceRoot!=null&&(v=e.urlParse(this.sourceRoot))){var E=C.replace(/^file:\/\//,"");if(v.scheme=="file"&&this._sources.has(E))return this.sourcesContent[this._sources.indexOf(E)];if((!v.path||v.path=="/")&&this._sources.has("/"+C))return this.sourcesContent[this._sources.indexOf("/"+C)]}if(y)return null;throw new Error('"'+C+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(m){var y=e.getArg(m,"source");if(y=this._findSourceIndex(y),y<0)return{line:null,column:null,lastColumn:null};var A={source:y,originalLine:e.getArg(m,"line"),originalColumn:e.getArg(m,"column")},C=this._findMapping(A,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(m,"bias",s.GREATEST_LOWER_BOUND));if(C>=0){var v=this._originalMappings[C];if(v.source===A.source)return{line:e.getArg(v,"generatedLine",null),column:e.getArg(v,"generatedColumn",null),lastColumn:e.getArg(v,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},nt.BasicSourceMapConsumer=a;function p(D,m){var y=D;typeof D=="string"&&(y=e.parseSourceMapInput(D));var A=e.getArg(y,"version"),C=e.getArg(y,"sections");if(A!=this._version)throw new Error("Unsupported version: "+A);this._sources=new r,this._names=new r;var v={line:-1,column:0};this._sections=C.map(function(E){if(E.url)throw new Error("Support for url field in sections not implemented.");var b=e.getArg(E,"offset"),T=e.getArg(b,"line"),I=e.getArg(b,"column");if(T=0;p--)this.prepend(f[p]);else if(f[u]||typeof f=="string")this.children.unshift(f);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+f);return this},s.prototype.walk=function(f){for(var p,D=0,m=this.children.length;D0){for(p=[],D=0;D=6.0"},Tu=[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"http://github.com/Constellation"}],Pu={type:"git",url:"http://github.com/estools/escodegen.git"},Nu={estraverse:"^5.2.0",esutils:"^2.0.2",esprima:"^4.0.1"},Lu={"source-map":"~0.6.1"},Ou={acorn:"^8.0.4",bluebird:"^3.4.7","bower-registry-client":"^1.0.0",chai:"^4.2.0","chai-exclude":"^2.0.2","commonjs-everywhere":"^0.9.7",gulp:"^4.0.2","gulp-eslint":"^6.0.0","gulp-mocha":"^7.0.2",minimist:"^1.2.5",optionator:"^0.9.1",semver:"^7.3.4"},Ru="BSD-2-Clause",Mu={test:"gulp travis","unit-test":"gulp test",lint:"gulp lint",release:"node tools/release.js","build-min":"./node_modules/.bin/cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js",build:"./node_modules/.bin/cjsify -a path: tools/entry-point.js > escodegen.browser.js"},Vu={name:vu,description:bu,homepage:Su,main:_u,bin:Bu,files:wu,version:ku,engines:Iu,maintainers:Tu,repository:Pu,dependencies:Nu,optionalDependencies:Lu,devDependencies:Ou,license:Ru,scripts:Mu};(function(e){(function(){var t,r,i,u,s,a,f,p,D,m,y,A,C,v,E,b,T,I,V,S,g,x,F,B,R,N;s=Bi,a=St,t=s.Syntax;function W(n){return ae.Expression.hasOwnProperty(n.type)}function q(n){return ae.Statement.hasOwnProperty(n.type)}r={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,Coalesce:3,LogicalOR:4,LogicalAND:5,BitwiseOR:6,BitwiseXOR:7,BitwiseAND:8,Equality:9,Relational:10,BitwiseSHIFT:11,Additive:12,Multiplicative:13,Exponentiation:14,Await:15,Unary:15,Postfix:16,OptionalChaining:17,Call:18,New:19,TaggedTemplate:20,Member:21,Primary:22},i={"??":r.Coalesce,"||":r.LogicalOR,"&&":r.LogicalAND,"|":r.BitwiseOR,"^":r.BitwiseXOR,"&":r.BitwiseAND,"==":r.Equality,"!=":r.Equality,"===":r.Equality,"!==":r.Equality,is:r.Equality,isnt:r.Equality,"<":r.Relational,">":r.Relational,"<=":r.Relational,">=":r.Relational,in:r.Relational,instanceof:r.Relational,"<<":r.BitwiseSHIFT,">>":r.BitwiseSHIFT,">>>":r.BitwiseSHIFT,"+":r.Additive,"-":r.Additive,"*":r.Multiplicative,"%":r.Multiplicative,"/":r.Multiplicative,"**":r.Exponentiation};var M=1,X=2,ne=4,oe=8,ie=16,Q=32,Ce=64,Be=X|ne,Je=M|X,O=M|X|ne,Ve=M,Ct=ne,Le=M|ne,ee=M,be=M|Q,Et=0,Rn=M|ie,Mn=M|oe;function Nr(){return{indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:` `,space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null}}function je(n,l){var o="";for(l|=0;l>0;l>>>=1,n+=n)l&1&&(o+=n);return o}function Vn(n){return/[\r\n]/g.test(n)}function he(n){var l=n.length;return l&&a.code.isLineTerminator(n.charCodeAt(l-1))}function Lr(n,l){var o;for(o in l)l.hasOwnProperty(o)&&(n[o]=l[o]);return n}function yt(n,l){var o,c;function d(_){return typeof _=="object"&&_ instanceof Object&&!(_ instanceof RegExp)}for(o in l)l.hasOwnProperty(o)&&(c=l[o],d(c)?d(n[o])?yt(n[o],c):n[o]=yt({},c):n[o]=c);return n}function jn(n){var l,o,c,d,_;if(n!==n)throw new Error("Numeric literal whose value is NaN");if(n<0||n===0&&1/n<0)throw new Error("Numeric literal whose value is negative");if(n===1/0)return D?"null":m?"1e400":"1e+400";if(l=""+n,!m||l.length<3)return l;for(o=l.indexOf("."),!D&&l.charCodeAt(0)===48&&o===1&&(o=0,l=l.slice(1)),c=l,l=l.replace("e+","e"),d=0,(_=c.indexOf("e"))>0&&(d=+c.slice(_+1),c=c.slice(0,_)),o>=0&&(d-=c.length-o-1,c=+(c.slice(0,o)+c.slice(o+1))+""),_=0;c.charCodeAt(c.length+_-1)===48;)--_;return _!==0&&(d-=_,c=c.slice(0,_)),d!==0&&(c+="e"+d),(c.length1e12&&Math.floor(n)===n&&(c="0x"+n.toString(16)).length255?"\\u"+"0000".slice(o.length)+o:n===0&&!a.code.isDecimalDigit(l)?"\\0":n===11?"\\x0B":"\\x"+"00".slice(o.length)+o)}function Wn(n){if(n===92)return"\\\\";if(n===10)return"\\n";if(n===13)return"\\r";if(n===8232)return"\\u2028";if(n===8233)return"\\u2029";throw new Error("Incorrectly classified character")}function Gn(n){var l,o,c,d;for(d=A==="double"?'"':"'",l=0,o=n.length;l126))){l+=Un(d,n.charCodeAt(o+1));continue}l+=String.fromCharCode(d)}if(k=!(A==="double"||A==="auto"&&w<_),L=k?"'":'"',!(k?_:w))return L+l+L;for(n=l,l=L,o=0,c=n.length;o=0&&!a.code.isLineTerminator(n.charCodeAt(l));--l);return n.length-1-l}function Jn(n,l){var o,c,d,_,w,k,L,J;for(o=n.split(/\r\n|[\r\n]/),k=Number.MAX_VALUE,c=1,d=o.length;cw&&(k=w)}for(typeof l<"u"?(L=f,o[1][k]==="*"&&(l+=" "),f=l):(k&1&&--k,L=f),c=1,d=o.length;c0){if(_=l,B){for(d=n.leadingComments[0],l=[],J=d.extendedRange,ce=d.range,Xe=F.substring(J[0],ce[0]),Se=(Xe.match(/\n/g)||[]).length,Se>0?(l.push(je(` diff --git a/assets/file-o2e5cVZ2.js b/assets/file-CAHT9y9p.js similarity index 88% rename from assets/file-o2e5cVZ2.js rename to assets/file-CAHT9y9p.js index ac16b0cf0..74ec1194a 100644 --- a/assets/file-o2e5cVZ2.js +++ b/assets/file-CAHT9y9p.js @@ -1 +1 @@ -import"./iframe-BnffqoK7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="07f8cde7-2e5b-4528-89fa-3bfeeaacc36a",e._sentryDebugIdIdentifier="sentry-dbid-07f8cde7-2e5b-4528-89fa-3bfeeaacc36a")}catch{}})();const d=e=>{const t=e.lastIndexOf(".");return t!==-1?e.substring(t+1):""},r=e=>{const t=["B","KB","MB","GB","TB"];let n=0;for(;e>=1024;)e/=1024,n++;return`${e.toFixed(2)}${t[n]}`};export{d as e,r as g}; +import"./iframe-AJyGuqY3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="07f8cde7-2e5b-4528-89fa-3bfeeaacc36a",e._sentryDebugIdIdentifier="sentry-dbid-07f8cde7-2e5b-4528-89fa-3bfeeaacc36a")}catch{}})();const d=e=>{const t=e.lastIndexOf(".");return t!==-1?e.substring(t+1):""},r=e=>{const t=["B","KB","MB","GB","TB"];let n=0;for(;e>=1024;)e/=1024,n++;return`${e.toFixed(2)}${t[n]}`};export{d as e,r as g}; diff --git a/assets/ic_check-BYJyafRx.js b/assets/ic_check-DODkcSEC.js similarity index 95% rename from assets/ic_check-BYJyafRx.js rename to assets/ic_check-DODkcSEC.js index e0916acd9..230c38c28 100644 --- a/assets/ic_check-BYJyafRx.js +++ b/assets/ic_check-DODkcSEC.js @@ -1 +1 @@ -import{r as t}from"./index-B4Z6PsAH.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="d17d1ae6-acf3-463e-860d-592f887311a8",e._sentryDebugIdIdentifier="sentry-dbid-d17d1ae6-acf3-463e-860d-592f887311a8")}catch{}})();const o=e=>t.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.9262 4.1689C12.9966 4.22926 13.0545 4.30291 13.0964 4.38563C13.1384 4.46836 13.1636 4.55854 13.1707 4.65102C13.1778 4.7435 13.1666 4.83648 13.1377 4.92462C13.1088 5.01277 13.0629 5.09436 13.0024 5.16474L7.35495 11.7535C7.29164 11.8274 7.21373 11.8873 7.12613 11.9297C7.03853 11.972 6.94313 11.9958 6.8459 11.9995C6.74868 12.0032 6.65174 11.9868 6.56117 11.9512C6.4706 11.9157 6.38835 11.8618 6.31958 11.793L3.02521 8.49865C2.89668 8.36544 2.82561 8.18709 2.8273 8.002C2.829 7.8169 2.90332 7.63988 3.03427 7.50905C3.16522 7.37823 3.34231 7.30407 3.52741 7.30255C3.7125 7.30103 3.89079 7.37227 4.02387 7.50092L6.77985 10.256L11.9313 4.24608C12.0532 4.10413 12.2264 4.01636 12.413 4.00207C12.5995 3.98777 12.7841 4.04717 12.9262 4.1689Z",fill:"#525866"}));export{o as S}; +import{r as t}from"./index-Bs6nXyGp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="d17d1ae6-acf3-463e-860d-592f887311a8",e._sentryDebugIdIdentifier="sentry-dbid-d17d1ae6-acf3-463e-860d-592f887311a8")}catch{}})();const o=e=>t.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.9262 4.1689C12.9966 4.22926 13.0545 4.30291 13.0964 4.38563C13.1384 4.46836 13.1636 4.55854 13.1707 4.65102C13.1778 4.7435 13.1666 4.83648 13.1377 4.92462C13.1088 5.01277 13.0629 5.09436 13.0024 5.16474L7.35495 11.7535C7.29164 11.8274 7.21373 11.8873 7.12613 11.9297C7.03853 11.972 6.94313 11.9958 6.8459 11.9995C6.74868 12.0032 6.65174 11.9868 6.56117 11.9512C6.4706 11.9157 6.38835 11.8618 6.31958 11.793L3.02521 8.49865C2.89668 8.36544 2.82561 8.18709 2.8273 8.002C2.829 7.8169 2.90332 7.63988 3.03427 7.50905C3.16522 7.37823 3.34231 7.30407 3.52741 7.30255C3.7125 7.30103 3.89079 7.37227 4.02387 7.50092L6.77985 10.256L11.9313 4.24608C12.0532 4.10413 12.2264 4.01636 12.413 4.00207C12.5995 3.98777 12.7841 4.04717 12.9262 4.1689Z",fill:"#525866"}));export{o as S}; diff --git a/assets/ic_three_dots-BVRLYobK.js b/assets/ic_three_dots-DhrEP3KX.js similarity index 95% rename from assets/ic_three_dots-BVRLYobK.js rename to assets/ic_three_dots-DhrEP3KX.js index 73a974fc6..492e54d8e 100644 --- a/assets/ic_three_dots-BVRLYobK.js +++ b/assets/ic_three_dots-DhrEP3KX.js @@ -1 +1 @@ -import{r as t}from"./index-B4Z6PsAH.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="f8792118-491c-4a97-b10a-920127096a6e",e._sentryDebugIdIdentifier="sentry-dbid-f8792118-491c-4a97-b10a-920127096a6e")}catch{}})();const s=e=>t.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M8.00016 8.66658C8.36835 8.66658 8.66683 8.36811 8.66683 7.99992C8.66683 7.63173 8.36835 7.33325 8.00016 7.33325C7.63197 7.33325 7.3335 7.63173 7.3335 7.99992C7.3335 8.36811 7.63197 8.66658 8.00016 8.66658Z",fill:"#909090",stroke:"#909090",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M8.00016 4.00008C8.36835 4.00008 8.66683 3.7016 8.66683 3.33341C8.66683 2.96522 8.36835 2.66675 8.00016 2.66675C7.63197 2.66675 7.3335 2.96522 7.3335 3.33341C7.3335 3.7016 7.63197 4.00008 8.00016 4.00008Z",fill:"#909090",stroke:"#909090",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M8.00016 13.3333C8.36835 13.3333 8.66683 13.0349 8.66683 12.6667C8.66683 12.2985 8.36835 12 8.00016 12C7.63197 12 7.3335 12.2985 7.3335 12.6667C7.3335 13.0349 7.63197 13.3333 8.00016 13.3333Z",fill:"#909090",stroke:"#909090",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}));export{s as S}; +import{r as t}from"./index-Bs6nXyGp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="f8792118-491c-4a97-b10a-920127096a6e",e._sentryDebugIdIdentifier="sentry-dbid-f8792118-491c-4a97-b10a-920127096a6e")}catch{}})();const s=e=>t.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M8.00016 8.66658C8.36835 8.66658 8.66683 8.36811 8.66683 7.99992C8.66683 7.63173 8.36835 7.33325 8.00016 7.33325C7.63197 7.33325 7.3335 7.63173 7.3335 7.99992C7.3335 8.36811 7.63197 8.66658 8.00016 8.66658Z",fill:"#909090",stroke:"#909090",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M8.00016 4.00008C8.36835 4.00008 8.66683 3.7016 8.66683 3.33341C8.66683 2.96522 8.36835 2.66675 8.00016 2.66675C7.63197 2.66675 7.3335 2.96522 7.3335 3.33341C7.3335 3.7016 7.63197 4.00008 8.00016 4.00008Z",fill:"#909090",stroke:"#909090",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M8.00016 13.3333C8.36835 13.3333 8.66683 13.0349 8.66683 12.6667C8.66683 12.2985 8.36835 12 8.00016 12C7.63197 12 7.3335 12.2985 7.3335 12.6667C7.3335 13.0349 7.63197 13.3333 8.00016 13.3333Z",fill:"#909090",stroke:"#909090",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}));export{s as S}; diff --git a/assets/ic_trash-D7lR1pQ_.js b/assets/ic_trash-zLH-eJlm.js similarity index 96% rename from assets/ic_trash-D7lR1pQ_.js rename to assets/ic_trash-zLH-eJlm.js index 542a57dca..8f9832302 100644 --- a/assets/ic_trash-D7lR1pQ_.js +++ b/assets/ic_trash-zLH-eJlm.js @@ -1 +1 @@ -import{r as t}from"./index-B4Z6PsAH.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="21114c64-edf7-4659-b131-5ae2bfe734d2",e._sentryDebugIdIdentifier="sentry-dbid-21114c64-edf7-4659-b131-5ae2bfe734d2")}catch{}})();const l=e=>t.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3333 3.33325V2.66659C11.3333 2.31296 11.1929 1.97382 10.9428 1.72378C10.6928 1.47373 10.3536 1.33325 10 1.33325H6C5.64638 1.33325 5.30724 1.47373 5.05719 1.72378C4.80714 1.97382 4.66667 2.31296 4.66667 2.66659V3.33325H2.66667C2.48986 3.33325 2.32029 3.40349 2.19526 3.52851C2.07024 3.65354 2 3.82311 2 3.99992C2 4.17673 2.07024 4.3463 2.19526 4.47132C2.32029 4.59635 2.48986 4.66658 2.66667 4.66658H3.33333V11.9999C3.33333 12.5304 3.54405 13.0391 3.91912 13.4141C4.29419 13.7892 4.8029 13.9999 5.33333 13.9999H10.6667C11.1971 13.9999 11.7058 13.7892 12.0809 13.4141C12.456 13.0391 12.6667 12.5304 12.6667 11.9999V4.66658H13.3333C13.5101 4.66658 13.6797 4.59635 13.8047 4.47132C13.9298 4.3463 14 4.17673 14 3.99992C14 3.82311 13.9298 3.65354 13.8047 3.52851C13.6797 3.40349 13.5101 3.33325 13.3333 3.33325H11.3333ZM10 2.66659H6V3.33325H10V2.66659ZM11.3333 4.66658H4.66667V11.9999C4.66667 12.1767 4.7369 12.3463 4.86193 12.4713C4.98695 12.5963 5.15652 12.6666 5.33333 12.6666H10.6667C10.8435 12.6666 11.013 12.5963 11.1381 12.4713C11.2631 12.3463 11.3333 12.1767 11.3333 11.9999V4.66658Z",fill:"#525866"}),t.createElement("path",{d:"M6 6H7.33333V11.3333H6V6ZM8.66667 6H10V11.3333H8.66667V6Z",fill:"#525866"}));export{l as S}; +import{r as t}from"./index-Bs6nXyGp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="21114c64-edf7-4659-b131-5ae2bfe734d2",e._sentryDebugIdIdentifier="sentry-dbid-21114c64-edf7-4659-b131-5ae2bfe734d2")}catch{}})();const l=e=>t.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3333 3.33325V2.66659C11.3333 2.31296 11.1929 1.97382 10.9428 1.72378C10.6928 1.47373 10.3536 1.33325 10 1.33325H6C5.64638 1.33325 5.30724 1.47373 5.05719 1.72378C4.80714 1.97382 4.66667 2.31296 4.66667 2.66659V3.33325H2.66667C2.48986 3.33325 2.32029 3.40349 2.19526 3.52851C2.07024 3.65354 2 3.82311 2 3.99992C2 4.17673 2.07024 4.3463 2.19526 4.47132C2.32029 4.59635 2.48986 4.66658 2.66667 4.66658H3.33333V11.9999C3.33333 12.5304 3.54405 13.0391 3.91912 13.4141C4.29419 13.7892 4.8029 13.9999 5.33333 13.9999H10.6667C11.1971 13.9999 11.7058 13.7892 12.0809 13.4141C12.456 13.0391 12.6667 12.5304 12.6667 11.9999V4.66658H13.3333C13.5101 4.66658 13.6797 4.59635 13.8047 4.47132C13.9298 4.3463 14 4.17673 14 3.99992C14 3.82311 13.9298 3.65354 13.8047 3.52851C13.6797 3.40349 13.5101 3.33325 13.3333 3.33325H11.3333ZM10 2.66659H6V3.33325H10V2.66659ZM11.3333 4.66658H4.66667V11.9999C4.66667 12.1767 4.7369 12.3463 4.86193 12.4713C4.98695 12.5963 5.15652 12.6666 5.33333 12.6666H10.6667C10.8435 12.6666 11.013 12.5963 11.1381 12.4713C11.2631 12.3463 11.3333 12.1767 11.3333 11.9999V4.66658Z",fill:"#525866"}),t.createElement("path",{d:"M6 6H7.33333V11.3333H6V6ZM8.66667 6H10V11.3333H8.66667V6Z",fill:"#525866"}));export{l as S}; diff --git a/assets/iframe-BnffqoK7.js b/assets/iframe-AJyGuqY3.js similarity index 53% rename from assets/iframe-BnffqoK7.js rename to assets/iframe-AJyGuqY3.js index ed7a52c41..7158594fc 100644 --- a/assets/iframe-BnffqoK7.js +++ b/assets/iframe-AJyGuqY3.js @@ -1,2 +1,2 @@ -const __vite__fileDeps=["./Button.stories-SfXPEIvu.js","./emotion-react.browser.esm-DVCGPw0o.js","./index-B4Z6PsAH.js","./_commonjsHelpers-XnwbWaTF.js","./extends-ClQVCWlZ.js","./ic_check-BYJyafRx.js","./Button-aaJpuFF7.js","./Button.style-CoALCM8f.js","./theme-DwD7F4-e.js","./Carousel.stories-9MJBGgFk.js","./index-C_edrjnw.js","./Heading-BCYRSNXR.js","./CheckBox.stories-BmStllQS.js","./CheckBox-B0NBCG01.js","./CommandButton.stories-DnL3aq65.js","./CountedInput.stories-CKTW0ZdS.js","./Label-Dvf5dr16.js","./SupportingText-_IVHGPES.js","./DatePicker.stories-Dq_m-QTd.js","./Text-BdNMkr7S.js","./Flex-CcBQZiMH.js","./Input-_bQPWmrw.js","./useOutsideClick-COUwwguf.js","./useOverlay-jcCv9x_t.js","./Divider.stories-D2SHbI4e.js","./Flex.stories-BovLbUJZ.js","./Header.stories-K2gSrBT6.js","./react-CVxNFIA5.js","./index-BZ6RFkQt.js","./Heading.stories-DUmlZFQw.js","./Input.stories-0yTp_Bua.js","./Label.stories-C8TXh-Zu.js","./MenuList.stories-BEPTfUph.js","./MenuList-Cq7c8mmt.js","./RadioGroup.stories-D2w0ovdv.js","./Select.stories-SZ88fAI0.js","./Select-MF-KBPgn.js","./scroll-Cr_SEktn.js","./Switch.stories-BzOCKOrq.js","./TabButton.stories-BCdiYlZz.js","./TabButton-B-1B9T34.js","./Tabs.stories-CPuOSPvd.js","./Tag.stories-BWxk2UzF.js","./Tag-Bv1RKcm4.js","./Text.stories-D6np-j7S.js","./Toast.stories-CUsiLrgT.js","./toast-izQVgPOM.js","./ToolTip.stories-Dikhmx-h.js","./ToolTip-B5zzYkah.js","./ListItem.stories-C2T4bQC9.js","./FileListHeader.stories-CNI2LH90.js","./ellipsis-Bk2wdyyW.js","./FileListItem.stories-Cl7BHatl.js","./ic_three_dots-BVRLYobK.js","./file-o2e5cVZ2.js","./ContentBox.stories-BFM5lQU4.js","./ic_trash-D7lR1pQ_.js","./DeleteModal.stories-DLLfBuro.js","./WorkSpaceName-BrOTZTuV.js","./QueryClientProvider-CVYF4Mhz.js","./path-DPor8ESZ.js","./FileGrid.stories-bm2V4I8q.js","./index.style-TC8qthSU.js","./FolderGrid.stories-DgVcaEy6.js","./Header.stories-DbmChReU.js","./RouteNav-Dgfqahe_.js","./proxy-4sgmHMJ7.js","./RouteNav.stories-C6fvwcUI.js","./Item.stories-BtFdaKjG.js","./WorkSpaceModal.stories-BQ8lGmZ-.js","./entry-preview-Gy9vRDWP.js","./react-18-C2ppDB-h.js","./entry-preview-docs-CQTFxFuJ.js","./isArray-BI8z6s7d.js","./index-BWTWe0Km.js","./preview-CSvKwb8l.js","./index-CBYM4yTB.js","./preview-CK52aZOB.js","./preview-BtSsoOY_.js","./preview-BUgjy1AX.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import"../sb-preview/runtime.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_=new Error().stack;_&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[_]="e8bda7d2-305a-452a-a8cb-5174b4e69265",r._sentryDebugIdIdentifier="sentry-dbid-e8bda7d2-305a-452a-a8cb-5174b4e69265")}catch{}})();var O=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};O.SENTRY_RELEASE={id:"dc57735b3ed14285c74d958c2e904cd4a0260b24"};(function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const e of o)if(e.type==="childList")for(const s of e.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&a(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const e={};return o.integrity&&(e.integrity=o.integrity),o.referrerPolicy&&(e.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?e.credentials="include":o.crossOrigin==="anonymous"?e.credentials="omit":e.credentials="same-origin",e}function a(o){if(o.ep)return;o.ep=!0;const e=n(o);fetch(o.href,e)}})();const R="modulepreload",T=function(r,_){return new URL(r,_).href},E={},t=function(_,n,a){let o=Promise.resolve();if(n&&n.length>0){const e=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=Promise.all(n.map(i=>{if(i=T(i,a),i in E)return;E[i]=!0;const c=i.endsWith(".css"),y=c?'[rel="stylesheet"]':"";if(!!a)for(let u=e.length-1;u>=0;u--){const d=e[u];if(d.href===i&&(!c||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${y}`))return;const m=document.createElement("link");if(m.rel=c?"stylesheet":R,c||(m.as="script",m.crossOrigin=""),m.href=i,l&&m.setAttribute("nonce",l),document.head.appendChild(m),c)return new Promise((u,d)=>{m.addEventListener("load",u),m.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})}))}return o.then(()=>_()).catch(e=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=e,window.dispatchEvent(s),!s.defaultPrevented)throw e})},{createBrowserChannel:L}=__STORYBOOK_MODULE_CHANNELS__,{addons:f}=__STORYBOOK_MODULE_PREVIEW_API__,p=L({page:"preview"});f.setChannel(p);window.__STORYBOOK_ADDONS_CHANNEL__=p;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=p);const I={"./src/story/common/Button.stories.tsx":async()=>t(()=>import("./Button.stories-SfXPEIvu.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),"./src/story/common/Carousel.stories.tsx":async()=>t(()=>import("./Carousel.stories-9MJBGgFk.js"),__vite__mapDeps([9,1,2,3,4,6,7,8,10,11]),import.meta.url),"./src/story/common/CheckBox.stories.tsx":async()=>t(()=>import("./CheckBox.stories-BmStllQS.js"),__vite__mapDeps([12,13,1,2,3,4,8]),import.meta.url),"./src/story/common/CommandButton.stories.tsx":async()=>t(()=>import("./CommandButton.stories-DnL3aq65.js"),__vite__mapDeps([14,1,2,3,4,5,7,8]),import.meta.url),"./src/story/common/CountedInput.stories.tsx":async()=>t(()=>import("./CountedInput.stories-CKTW0ZdS.js"),__vite__mapDeps([15,1,2,3,4,8,16,17]),import.meta.url),"./src/story/common/DatePicker.stories.tsx":async()=>t(()=>import("./DatePicker.stories-Dq_m-QTd.js"),__vite__mapDeps([18,1,2,3,4,8,19,20,21,16,17,22,23]),import.meta.url),"./src/story/common/Divider.stories.tsx":async()=>t(()=>import("./Divider.stories-D2SHbI4e.js"),__vite__mapDeps([24,1,2,3,4,8]),import.meta.url),"./src/story/common/Flex.stories.tsx":async()=>t(()=>import("./Flex.stories-BovLbUJZ.js"),__vite__mapDeps([25,1,2,3,4,20]),import.meta.url),"./src/story/common/Header.stories.tsx":async()=>t(()=>import("./Header.stories-K2gSrBT6.js"),__vite__mapDeps([26,1,2,3,4,27,6,7,8,28]),import.meta.url),"./src/story/common/Heading.stories.tsx":async()=>t(()=>import("./Heading.stories-DUmlZFQw.js"),__vite__mapDeps([29,1,2,3,4,20,11,8]),import.meta.url),"./src/story/common/Input.stories.tsx":async()=>t(()=>import("./Input.stories-0yTp_Bua.js"),__vite__mapDeps([30,1,2,3,4,21,8,16,17]),import.meta.url),"./src/story/common/Label.stories.tsx":async()=>t(()=>import("./Label.stories-C8TXh-Zu.js"),__vite__mapDeps([31,16,1,2,3,4,8]),import.meta.url),"./src/story/common/MenuList.stories.tsx":async()=>t(()=>import("./MenuList.stories-BEPTfUph.js"),__vite__mapDeps([32,1,2,3,4,33,22,8,23]),import.meta.url),"./src/story/common/RadioGroup.stories.tsx":async()=>t(()=>import("./RadioGroup.stories-D2w0ovdv.js"),__vite__mapDeps([34,1,2,3,4,8]),import.meta.url),"./src/story/common/Select.stories.tsx":async()=>t(()=>import("./Select.stories-SZ88fAI0.js"),__vite__mapDeps([35,1,2,3,4,36,8,16,37,22,23]),import.meta.url),"./src/story/common/Switch.stories.tsx":async()=>t(()=>import("./Switch.stories-BzOCKOrq.js"),__vite__mapDeps([38,1,2,3,4,8]),import.meta.url),"./src/story/common/TabButton.stories.tsx":async()=>t(()=>import("./TabButton.stories-BCdiYlZz.js"),__vite__mapDeps([39,40,1,2,3,4,8]),import.meta.url),"./src/story/common/Tabs.stories.tsx":async()=>t(()=>import("./Tabs.stories-CPuOSPvd.js"),__vite__mapDeps([41,1,2,3,4,40,8]),import.meta.url),"./src/story/common/Tag.stories.tsx":async()=>t(()=>import("./Tag.stories-BWxk2UzF.js"),__vite__mapDeps([42,43,1,2,3,4,8]),import.meta.url),"./src/story/common/Text.stories.tsx":async()=>t(()=>import("./Text.stories-D6np-j7S.js"),__vite__mapDeps([44,1,2,3,4,20,19,8]),import.meta.url),"./src/story/common/Toast.stories.tsx":async()=>t(()=>import("./Toast.stories-CUsiLrgT.js"),__vite__mapDeps([45,1,2,3,4,10,46,27,8]),import.meta.url),"./src/story/common/ToolTip.stories.tsx":async()=>t(()=>import("./ToolTip.stories-Dikhmx-h.js"),__vite__mapDeps([47,1,2,3,4,20,48,8]),import.meta.url),"./src/story/page/dashboard/component/ListItem.stories.tsx":async()=>t(()=>import("./ListItem.stories-C2T4bQC9.js"),__vite__mapDeps([49,1,2,3,4,20,43,8,19]),import.meta.url),"./src/story/page/drive/FileListHeader.stories.tsx":async()=>t(()=>import("./FileListHeader.stories-CNI2LH90.js"),__vite__mapDeps([50,1,2,3,4,13,8,20,19,51]),import.meta.url),"./src/story/page/drive/FileListItem.stories.tsx":async()=>t(()=>import("./FileListItem.stories-Cl7BHatl.js"),__vite__mapDeps([52,1,2,3,4,53,13,8,20,19,51,54]),import.meta.url),"./src/story/shared/ContentBox.stories.tsx":async()=>t(()=>import("./ContentBox.stories-BFM5lQU4.js"),__vite__mapDeps([55,1,2,3,4,6,7,8,20,21,16,17,19,56,11,37]),import.meta.url),"./src/story/shared/DeleteModal.stories.tsx":async()=>t(()=>import("./DeleteModal.stories-DLLfBuro.js"),__vite__mapDeps([57,1,2,3,4,10,46,27,8,6,7,20,21,16,17,19,11,58,59,60,54,36,37,22,23]),import.meta.url),"./src/story/shared/FileGrid.stories.tsx":async()=>t(()=>import("./FileGrid.stories-bm2V4I8q.js"),__vite__mapDeps([61,1,2,3,4,53,13,8,20,11,33,22,19,23,62,56,54]),import.meta.url),"./src/story/shared/FolderGrid.stories.tsx":async()=>t(()=>import("./FolderGrid.stories-DgVcaEy6.js"),__vite__mapDeps([63,1,2,3,4,53,20,11,8,33,22,23,62,56]),import.meta.url),"./src/story/shared/Header.stories.tsx":async()=>t(()=>import("./Header.stories-DbmChReU.js"),__vite__mapDeps([64,1,2,3,4,11,8,65,10,28,60,66]),import.meta.url),"./src/story/shared/RouteNav.stories.tsx":async()=>t(()=>import("./RouteNav.stories-C6fvwcUI.js"),__vite__mapDeps([67,65,1,2,3,4,10,28,8,60,66]),import.meta.url),"./src/story/shared/SideNavBar/Item.stories.tsx":async()=>t(()=>import("./Item.stories-BtFdaKjG.js"),__vite__mapDeps([68,1,2,3,4,20,48,8,66]),import.meta.url),"./src/story/shared/WorkSpaceModal.stories.tsx":async()=>t(()=>import("./WorkSpaceModal.stories-BQ8lGmZ-.js"),__vite__mapDeps([69,1,2,3,4,6,7,8,20,36,16,37,23,58,59,60,54,21,17,11,19]),import.meta.url)};async function D(r){return I[r]()}const{composeConfigs:P,PreviewWeb:v,ClientApi:g}=__STORYBOOK_MODULE_PREVIEW_API__,V=async(r=[])=>{const _=await Promise.all([r.at(0)??t(()=>import("./entry-preview-Gy9vRDWP.js"),__vite__mapDeps([70,2,3,71,10]),import.meta.url),r.at(1)??t(()=>import("./entry-preview-docs-CQTFxFuJ.js"),__vite__mapDeps([72,73,3,74,2]),import.meta.url),r.at(2)??t(()=>import("./preview-CSvKwb8l.js"),__vite__mapDeps([75,76]),import.meta.url),r.at(3)??t(()=>import("./preview-nfUgTCsP.js"),[],import.meta.url),r.at(4)??t(()=>import("./preview-eT5WzXzE.js"),[],import.meta.url),r.at(5)??t(()=>import("./preview-CK52aZOB.js"),__vite__mapDeps([77,74]),import.meta.url),r.at(6)??t(()=>import("./preview-4LrVg9OI.js"),[],import.meta.url),r.at(7)??t(()=>import("./preview-D5zRKxdV.js"),[],import.meta.url),r.at(8)??t(()=>import("./preview-BtSsoOY_.js"),__vite__mapDeps([78,74]),import.meta.url),r.at(9)??t(()=>import("./preview-DsUzrJvW.js"),[],import.meta.url),r.at(10)??t(()=>import("./preview-BgSD07K3.js"),[],import.meta.url),r.at(11)??t(()=>import("./preview-BjrsZQib.js"),[],import.meta.url),r.at(12)??t(()=>import("./preview-BUgjy1AX.js"),__vite__mapDeps([79,1,2,3,4,59,8,28]),import.meta.url)]);return P(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new v(D,V);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; +const __vite__fileDeps=["./Button.stories-BvaTDkHX.js","./emotion-react.browser.esm-Cyl1vPjg.js","./index-Bs6nXyGp.js","./_commonjsHelpers-Dq6BK7nx.js","./extends-ClQVCWlZ.js","./ic_check-DODkcSEC.js","./Button-D1nFQNRa.js","./Button.style-C-RQzMju.js","./theme-Cuq_aI8Z.js","./Carousel.stories-Kd065ibm.js","./index-BHRAuaXy.js","./Heading-FD1nScCb.js","./CheckBox.stories-BGaZmj6a.js","./CheckBox--BKu8vEN.js","./CommandButton.stories-DqCt5CaW.js","./CountedInput.stories-BctlYxzy.js","./Label-BPjTE68Y.js","./SupportingText-C1HExhiQ.js","./DatePicker.stories-i7H_Wn8q.js","./Text-9RJ8J0eA.js","./Flex-DMgVUl98.js","./Input-B4nzLRzl.js","./useOutsideClick-CEpXkKWK.js","./useOverlay-COpOggKz.js","./Divider.stories-CzxOs0c1.js","./Flex.stories-CRa1_0Al.js","./Header.stories-BV3C6KMO.js","./react-H2B7brmx.js","./index-CuYyT4jL.js","./Heading.stories-D_UsrQyH.js","./Input.stories-BuYgWvMo.js","./Label.stories-DqYxSaWl.js","./MenuList.stories-B1vx54lR.js","./MenuList-DtX22AXJ.js","./RadioGroup.stories-BFC6xYwb.js","./Select.stories-DSpHOza-.js","./Select-0cv1h5wR.js","./scroll-BeA4HMGQ.js","./Switch.stories-B4J4BIVE.js","./TabButton.stories-DrzmEdB4.js","./TabButton-7djQDVd5.js","./Tabs.stories-X1x1tC5D.js","./Tag.stories-DanSqrtd.js","./Tag-C4ARU73M.js","./Text.stories-CMvodB7C.js","./Toast.stories-D71zdOlk.js","./toast-C2VtnlsU.js","./ToolTip.stories-Dda_168L.js","./ToolTip-DREpUNuj.js","./ListItem.stories-B_kIm6op.js","./FileListHeader.stories-CBmQnwAl.js","./ellipsis-bMyq7Nk3.js","./FileListItem.stories-BRbfBFbC.js","./ic_three_dots-DhrEP3KX.js","./file-CAHT9y9p.js","./ContentBox.stories-9dRmPIUT.js","./ic_trash-zLH-eJlm.js","./DeleteModal.stories-CtogTm-O.js","./WorkSpaceName-DaJLJb5F.js","./QueryClientProvider-BufXlfUi.js","./path-8_1M5Knd.js","./FileGrid.stories-Cgc9RzcR.js","./index.style-BqtEg6R5.js","./FolderGrid.stories-BEEuzsre.js","./Header.stories-CiLudgVc.js","./RouteNav-DeIolqf0.js","./proxy-BfgkLHSP.js","./RouteNav.stories-B38Ukb7l.js","./Item.stories-BLHpfNL6.js","./WorkSpaceModal.stories-B27xY6G2.js","./entry-preview-BkFveEtM.js","./react-18-CzVEcH-F.js","./entry-preview-docs-BUyBerJ_.js","./isArray-vVmlok3Z.js","./index-BWTWe0Km.js","./preview-CSvKwb8l.js","./index-CBYM4yTB.js","./preview-CK52aZOB.js","./preview-BtSsoOY_.js","./preview-BBdobtET.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import"../sb-preview/runtime.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_=new Error().stack;_&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[_]="8f2d7219-722c-4833-a4ea-ddbf77e0dde2",r._sentryDebugIdIdentifier="sentry-dbid-8f2d7219-722c-4833-a4ea-ddbf77e0dde2")}catch{}})();var O=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};O.SENTRY_RELEASE={id:"0285fb054ddf85f140fd36db283c2e6791acaa8a"};(function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const e of o)if(e.type==="childList")for(const s of e.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&a(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const e={};return o.integrity&&(e.integrity=o.integrity),o.referrerPolicy&&(e.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?e.credentials="include":o.crossOrigin==="anonymous"?e.credentials="omit":e.credentials="same-origin",e}function a(o){if(o.ep)return;o.ep=!0;const e=n(o);fetch(o.href,e)}})();const R="modulepreload",f=function(r,_){return new URL(r,_).href},E={},t=function(_,n,a){let o=Promise.resolve();if(n&&n.length>0){const e=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=Promise.all(n.map(i=>{if(i=f(i,a),i in E)return;E[i]=!0;const c=i.endsWith(".css"),y=c?'[rel="stylesheet"]':"";if(!!a)for(let u=e.length-1;u>=0;u--){const d=e[u];if(d.href===i&&(!c||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${y}`))return;const m=document.createElement("link");if(m.rel=c?"stylesheet":R,c||(m.as="script",m.crossOrigin=""),m.href=i,l&&m.setAttribute("nonce",l),document.head.appendChild(m),c)return new Promise((u,d)=>{m.addEventListener("load",u),m.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})}))}return o.then(()=>_()).catch(e=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=e,window.dispatchEvent(s),!s.defaultPrevented)throw e})},{createBrowserChannel:T}=__STORYBOOK_MODULE_CHANNELS__,{addons:L}=__STORYBOOK_MODULE_PREVIEW_API__,p=T({page:"preview"});L.setChannel(p);window.__STORYBOOK_ADDONS_CHANNEL__=p;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=p);const I={"./src/story/common/Button.stories.tsx":async()=>t(()=>import("./Button.stories-BvaTDkHX.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),"./src/story/common/Carousel.stories.tsx":async()=>t(()=>import("./Carousel.stories-Kd065ibm.js"),__vite__mapDeps([9,1,2,3,4,6,7,8,10,11]),import.meta.url),"./src/story/common/CheckBox.stories.tsx":async()=>t(()=>import("./CheckBox.stories-BGaZmj6a.js"),__vite__mapDeps([12,13,1,2,3,4,8]),import.meta.url),"./src/story/common/CommandButton.stories.tsx":async()=>t(()=>import("./CommandButton.stories-DqCt5CaW.js"),__vite__mapDeps([14,1,2,3,4,5,7,8]),import.meta.url),"./src/story/common/CountedInput.stories.tsx":async()=>t(()=>import("./CountedInput.stories-BctlYxzy.js"),__vite__mapDeps([15,1,2,3,4,8,16,17]),import.meta.url),"./src/story/common/DatePicker.stories.tsx":async()=>t(()=>import("./DatePicker.stories-i7H_Wn8q.js"),__vite__mapDeps([18,1,2,3,4,8,19,20,21,16,17,22,23]),import.meta.url),"./src/story/common/Divider.stories.tsx":async()=>t(()=>import("./Divider.stories-CzxOs0c1.js"),__vite__mapDeps([24,1,2,3,4,8]),import.meta.url),"./src/story/common/Flex.stories.tsx":async()=>t(()=>import("./Flex.stories-CRa1_0Al.js"),__vite__mapDeps([25,1,2,3,4,20]),import.meta.url),"./src/story/common/Header.stories.tsx":async()=>t(()=>import("./Header.stories-BV3C6KMO.js"),__vite__mapDeps([26,1,2,3,4,27,6,7,8,28]),import.meta.url),"./src/story/common/Heading.stories.tsx":async()=>t(()=>import("./Heading.stories-D_UsrQyH.js"),__vite__mapDeps([29,1,2,3,4,20,11,8]),import.meta.url),"./src/story/common/Input.stories.tsx":async()=>t(()=>import("./Input.stories-BuYgWvMo.js"),__vite__mapDeps([30,1,2,3,4,21,8,16,17]),import.meta.url),"./src/story/common/Label.stories.tsx":async()=>t(()=>import("./Label.stories-DqYxSaWl.js"),__vite__mapDeps([31,16,1,2,3,4,8]),import.meta.url),"./src/story/common/MenuList.stories.tsx":async()=>t(()=>import("./MenuList.stories-B1vx54lR.js"),__vite__mapDeps([32,1,2,3,4,33,22,8,23]),import.meta.url),"./src/story/common/RadioGroup.stories.tsx":async()=>t(()=>import("./RadioGroup.stories-BFC6xYwb.js"),__vite__mapDeps([34,1,2,3,4,8]),import.meta.url),"./src/story/common/Select.stories.tsx":async()=>t(()=>import("./Select.stories-DSpHOza-.js"),__vite__mapDeps([35,1,2,3,4,36,8,16,37,22,23]),import.meta.url),"./src/story/common/Switch.stories.tsx":async()=>t(()=>import("./Switch.stories-B4J4BIVE.js"),__vite__mapDeps([38,1,2,3,4,8]),import.meta.url),"./src/story/common/TabButton.stories.tsx":async()=>t(()=>import("./TabButton.stories-DrzmEdB4.js"),__vite__mapDeps([39,40,1,2,3,4,8]),import.meta.url),"./src/story/common/Tabs.stories.tsx":async()=>t(()=>import("./Tabs.stories-X1x1tC5D.js"),__vite__mapDeps([41,1,2,3,4,40,8]),import.meta.url),"./src/story/common/Tag.stories.tsx":async()=>t(()=>import("./Tag.stories-DanSqrtd.js"),__vite__mapDeps([42,43,1,2,3,4,8]),import.meta.url),"./src/story/common/Text.stories.tsx":async()=>t(()=>import("./Text.stories-CMvodB7C.js"),__vite__mapDeps([44,1,2,3,4,20,19,8]),import.meta.url),"./src/story/common/Toast.stories.tsx":async()=>t(()=>import("./Toast.stories-D71zdOlk.js"),__vite__mapDeps([45,1,2,3,4,10,46,27,8]),import.meta.url),"./src/story/common/ToolTip.stories.tsx":async()=>t(()=>import("./ToolTip.stories-Dda_168L.js"),__vite__mapDeps([47,1,2,3,4,20,48,8]),import.meta.url),"./src/story/page/dashboard/component/ListItem.stories.tsx":async()=>t(()=>import("./ListItem.stories-B_kIm6op.js"),__vite__mapDeps([49,1,2,3,4,20,43,8,19]),import.meta.url),"./src/story/page/drive/FileListHeader.stories.tsx":async()=>t(()=>import("./FileListHeader.stories-CBmQnwAl.js"),__vite__mapDeps([50,1,2,3,4,13,8,20,19,51]),import.meta.url),"./src/story/page/drive/FileListItem.stories.tsx":async()=>t(()=>import("./FileListItem.stories-BRbfBFbC.js"),__vite__mapDeps([52,1,2,3,4,53,13,8,20,19,51,54]),import.meta.url),"./src/story/shared/ContentBox.stories.tsx":async()=>t(()=>import("./ContentBox.stories-9dRmPIUT.js"),__vite__mapDeps([55,1,2,3,4,6,7,8,20,21,16,17,19,56,11,37]),import.meta.url),"./src/story/shared/DeleteModal.stories.tsx":async()=>t(()=>import("./DeleteModal.stories-CtogTm-O.js"),__vite__mapDeps([57,1,2,3,4,10,46,27,8,6,7,20,21,16,17,19,11,58,59,60,54,36,37,22,23]),import.meta.url),"./src/story/shared/FileGrid.stories.tsx":async()=>t(()=>import("./FileGrid.stories-Cgc9RzcR.js"),__vite__mapDeps([61,1,2,3,4,53,13,8,20,11,33,22,19,23,62,56,54]),import.meta.url),"./src/story/shared/FolderGrid.stories.tsx":async()=>t(()=>import("./FolderGrid.stories-BEEuzsre.js"),__vite__mapDeps([63,1,2,3,4,53,20,11,8,33,22,23,62,56]),import.meta.url),"./src/story/shared/Header.stories.tsx":async()=>t(()=>import("./Header.stories-CiLudgVc.js"),__vite__mapDeps([64,1,2,3,4,11,8,65,10,28,60,66]),import.meta.url),"./src/story/shared/RouteNav.stories.tsx":async()=>t(()=>import("./RouteNav.stories-B38Ukb7l.js"),__vite__mapDeps([67,65,1,2,3,4,10,28,8,60,66]),import.meta.url),"./src/story/shared/SideNavBar/Item.stories.tsx":async()=>t(()=>import("./Item.stories-BLHpfNL6.js"),__vite__mapDeps([68,1,2,3,4,20,48,8,66]),import.meta.url),"./src/story/shared/WorkSpaceModal.stories.tsx":async()=>t(()=>import("./WorkSpaceModal.stories-B27xY6G2.js"),__vite__mapDeps([69,1,2,3,4,6,7,8,20,36,16,37,23,58,59,60,54,21,17,11,19]),import.meta.url)};async function D(r){return I[r]()}const{composeConfigs:P,PreviewWeb:v,ClientApi:g}=__STORYBOOK_MODULE_PREVIEW_API__,V=async(r=[])=>{const _=await Promise.all([r.at(0)??t(()=>import("./entry-preview-BkFveEtM.js"),__vite__mapDeps([70,2,3,71,10]),import.meta.url),r.at(1)??t(()=>import("./entry-preview-docs-BUyBerJ_.js"),__vite__mapDeps([72,73,3,74,2]),import.meta.url),r.at(2)??t(()=>import("./preview-CSvKwb8l.js"),__vite__mapDeps([75,76]),import.meta.url),r.at(3)??t(()=>import("./preview-CjoBTVcJ.js"),[],import.meta.url),r.at(4)??t(()=>import("./preview-eT5WzXzE.js"),[],import.meta.url),r.at(5)??t(()=>import("./preview-CK52aZOB.js"),__vite__mapDeps([77,74]),import.meta.url),r.at(6)??t(()=>import("./preview-4LrVg9OI.js"),[],import.meta.url),r.at(7)??t(()=>import("./preview-D5zRKxdV.js"),[],import.meta.url),r.at(8)??t(()=>import("./preview-BtSsoOY_.js"),__vite__mapDeps([78,74]),import.meta.url),r.at(9)??t(()=>import("./preview-DsUzrJvW.js"),[],import.meta.url),r.at(10)??t(()=>import("./preview-Bzjl1GZu.js"),[],import.meta.url),r.at(11)??t(()=>import("./preview-BjrsZQib.js"),[],import.meta.url),r.at(12)??t(()=>import("./preview-BBdobtET.js"),__vite__mapDeps([79,1,2,3,4,59,8,28]),import.meta.url)]);return P(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new v(D,V);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; diff --git a/assets/index-C_edrjnw.js b/assets/index-BHRAuaXy.js similarity index 99% rename from assets/index-C_edrjnw.js rename to assets/index-BHRAuaXy.js index 8f9b6afd9..48342ff02 100644 --- a/assets/index-C_edrjnw.js +++ b/assets/index-BHRAuaXy.js @@ -1,4 +1,4 @@ -import{g as _a}from"./_commonjsHelpers-XnwbWaTF.js";import"./iframe-BnffqoK7.js";import{r as Na}from"./index-B4Z6PsAH.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9dddcb7d-7b8a-4233-ae7c-eccd159c66c7",e._sentryDebugIdIdentifier="sentry-dbid-9dddcb7d-7b8a-4233-ae7c-eccd159c66c7")}catch{}})();var Co={exports:{}},ve={},xo={exports:{}},_o={};/** +import{g as _a}from"./_commonjsHelpers-Dq6BK7nx.js";import"./iframe-AJyGuqY3.js";import{r as Na}from"./index-Bs6nXyGp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9dddcb7d-7b8a-4233-ae7c-eccd159c66c7",e._sentryDebugIdIdentifier="sentry-dbid-9dddcb7d-7b8a-4233-ae7c-eccd159c66c7")}catch{}})();var Co={exports:{}},ve={},xo={exports:{}},_o={};/** * @license React * scheduler.production.min.js * diff --git a/assets/index-ChjQAJHq.js b/assets/index-BIpICc0P.js similarity index 82% rename from assets/index-ChjQAJHq.js rename to assets/index-BIpICc0P.js index ecd6052f7..92c530ff4 100644 --- a/assets/index-ChjQAJHq.js +++ b/assets/index-BIpICc0P.js @@ -1 +1 @@ -import{s as y,i as T,S as g,D as S,A as f,u as I,F as B,Z as L,w as C,a as H,y as h,H as k,T as D,J as w,N as P,b as W,x as A,C as F,E as _,c as v,R as x,d as E,e as R,f as M,X as N,B as q,k as O,g as U,q as Z,h as j,j as z,l as G,L as J,m as K,I as Q,n as V,z as X,v as Y,_ as $,o as aa,M as sa,p as oa,r as ea,t as ta,G as ra,$ as na,K as ia,O as pa,P as da,Q as ca,U as la,V as ma,W as ba,Y as ua,a0 as ya,a1 as Ta,a2 as ga,a3 as Sa,a4 as fa,a5 as Ia,a6 as Ba,a7 as La,a8 as Ca,a9 as Ha,aa as ha,ab as ka,ac as Da,ad as wa}from"./DocsRenderer-PKQXORMH-Df6NR3vH.js";import"./iframe-BnffqoK7.js";import"../sb-preview/runtime.js";import"./index-B4Z6PsAH.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./react-18-C2ppDB-h.js";import"./index-C_edrjnw.js";import"./index-CBYM4yTB.js";import"./extends-ClQVCWlZ.js";import"./isArray-BI8z6s7d.js";import"./index-BWTWe0Km.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[s]="a2ea7aaa-dac3-4678-9cc7-c04dea60218b",a._sentryDebugIdIdentifier="sentry-dbid-a2ea7aaa-dac3-4678-9cc7-c04dea60218b")}catch{}})();export{y as A,T as ActionBar,g as AddonPanel,S as Badge,f as Bar,I as Blockquote,B as Button,L as ClipboardCode,C as Code,H as DL,h as Div,k as DocumentWrapper,D as EmptyTabContent,w as ErrorFormatter,P as FlexBar,W as Form,A as H1,F as H2,_ as H3,v as H4,x as H5,E as H6,R as HR,M as IconButton,N as IconButtonSkeleton,q as Icons,O as Img,U as LI,Z as Link,j as ListItem,z as Loader,G as Modal,J as OL,K as P,Q as Placeholder,V as Pre,X as ResetWrapper,Y as ScrollArea,$ as Separator,aa as Spaced,sa as Span,oa as StorybookIcon,ea as StorybookLogo,ta as Symbols,ra as SyntaxHighlighter,na as TT,ia as TabBar,pa as TabButton,da as TabWrapper,ca as Table,la as Tabs,ma as TabsState,ba as TooltipLinkList,ua as TooltipMessage,ya as TooltipNote,Ta as UL,ga as WithTooltip,Sa as WithTooltipPure,fa as Zoom,Ia as codeCommon,Ba as components,La as createCopyToClipboardFunction,Ca as getStoryHref,Ha as icons,ha as interleaveSeparators,ka as nameSpaceClassNames,Da as resetComponents,wa as withReset}; +import{s as y,i as T,S as g,D as S,A as f,u as I,F as B,Z as L,w as C,a as H,y as h,H as k,T as D,J as w,N as P,b as W,x as A,C as F,E as _,c as v,R as x,d as E,e as R,f as M,X as N,B as q,k as O,g as U,q as Z,h as j,j as z,l as G,L as J,m as K,I as Q,n as V,z as X,v as Y,_ as $,o as aa,M as sa,p as oa,r as ea,t as ta,G as ra,$ as na,K as ia,O as pa,P as da,Q as ca,U as la,V as ma,W as ba,Y as ua,a0 as ya,a1 as Ta,a2 as ga,a3 as Sa,a4 as fa,a5 as Ia,a6 as Ba,a7 as La,a8 as Ca,a9 as Ha,aa as ha,ab as ka,ac as Da,ad as wa}from"./DocsRenderer-PKQXORMH-CLTnEESS.js";import"./iframe-AJyGuqY3.js";import"../sb-preview/runtime.js";import"./index-Bs6nXyGp.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./react-18-CzVEcH-F.js";import"./index-BHRAuaXy.js";import"./index-CBYM4yTB.js";import"./extends-ClQVCWlZ.js";import"./isArray-vVmlok3Z.js";import"./index-BWTWe0Km.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[s]="a2ea7aaa-dac3-4678-9cc7-c04dea60218b",a._sentryDebugIdIdentifier="sentry-dbid-a2ea7aaa-dac3-4678-9cc7-c04dea60218b")}catch{}})();export{y as A,T as ActionBar,g as AddonPanel,S as Badge,f as Bar,I as Blockquote,B as Button,L as ClipboardCode,C as Code,H as DL,h as Div,k as DocumentWrapper,D as EmptyTabContent,w as ErrorFormatter,P as FlexBar,W as Form,A as H1,F as H2,_ as H3,v as H4,x as H5,E as H6,R as HR,M as IconButton,N as IconButtonSkeleton,q as Icons,O as Img,U as LI,Z as Link,j as ListItem,z as Loader,G as Modal,J as OL,K as P,Q as Placeholder,V as Pre,X as ResetWrapper,Y as ScrollArea,$ as Separator,aa as Spaced,sa as Span,oa as StorybookIcon,ea as StorybookLogo,ta as Symbols,ra as SyntaxHighlighter,na as TT,ia as TabBar,pa as TabButton,da as TabWrapper,ca as Table,la as Tabs,ma as TabsState,ba as TooltipLinkList,ua as TooltipMessage,ya as TooltipNote,Ta as UL,ga as WithTooltip,Sa as WithTooltipPure,fa as Zoom,Ia as codeCommon,Ba as components,La as createCopyToClipboardFunction,Ca as getStoryHref,Ha as icons,ha as interleaveSeparators,ka as nameSpaceClassNames,Da as resetComponents,wa as withReset}; diff --git a/assets/index-DNeIa3IR.js b/assets/index-BggmREGX.js similarity index 84% rename from assets/index-DNeIa3IR.js rename to assets/index-BggmREGX.js index 07c301ad4..e328cd699 100644 --- a/assets/index-DNeIa3IR.js +++ b/assets/index-BggmREGX.js @@ -1 +1 @@ -import{R as t}from"./index-B4Z6PsAH.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./iframe-BnffqoK7.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c050eaba-db7b-4e07-ac52-743d7755b466",e._sentryDebugIdIdentifier="sentry-dbid-c050eaba-db7b-4e07-ac52-743d7755b466")}catch{}})();const o={},d=t.createContext(o);function r(e){const n=t.useContext(d);return t.useMemo(function(){return typeof e=="function"?e(n):{...n,...e}},[n,e])}function i(e){let n;return e.disableParentContext?n=typeof e.components=="function"?e.components(o):e.components||o:n=r(e.components),t.createElement(d.Provider,{value:n},e.children)}export{i as MDXProvider,r as useMDXComponents}; +import{R as t}from"./index-Bs6nXyGp.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./iframe-AJyGuqY3.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c050eaba-db7b-4e07-ac52-743d7755b466",e._sentryDebugIdIdentifier="sentry-dbid-c050eaba-db7b-4e07-ac52-743d7755b466")}catch{}})();const o={},d=t.createContext(o);function r(e){const n=t.useContext(d);return t.useMemo(function(){return typeof e=="function"?e(n):{...n,...e}},[n,e])}function i(e){let n;return e.disableParentContext?n=typeof e.components=="function"?e.components(o):e.components||o:n=r(e.components),t.createElement(d.Provider,{value:n},e.children)}export{i as MDXProvider,r as useMDXComponents}; diff --git a/assets/index-B4Z6PsAH.js b/assets/index-Bs6nXyGp.js similarity index 98% rename from assets/index-B4Z6PsAH.js rename to assets/index-Bs6nXyGp.js index b3c494b59..fa33cd7f3 100644 --- a/assets/index-B4Z6PsAH.js +++ b/assets/index-Bs6nXyGp.js @@ -1,4 +1,4 @@ -import{g as T}from"./_commonjsHelpers-XnwbWaTF.js";import"./iframe-BnffqoK7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="261b09ab-82c6-424a-9b2c-ec799bae80df",e._sentryDebugIdIdentifier="sentry-dbid-261b09ab-82c6-424a-9b2c-ec799bae80df")}catch{}})();function V(e,t){for(var n=0;nu[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var R={exports:{}},r={};/** +import{g as T}from"./_commonjsHelpers-Dq6BK7nx.js";import"./iframe-AJyGuqY3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="261b09ab-82c6-424a-9b2c-ec799bae80df",e._sentryDebugIdIdentifier="sentry-dbid-261b09ab-82c6-424a-9b2c-ec799bae80df")}catch{}})();function V(e,t){for(var n=0;nu[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var R={exports:{}},r={};/** * @license React * react.production.min.js * diff --git a/assets/index-BZ6RFkQt.js b/assets/index-CuYyT4jL.js similarity index 99% rename from assets/index-BZ6RFkQt.js rename to assets/index-CuYyT4jL.js index 5c3a63339..54af80ebf 100644 --- a/assets/index-BZ6RFkQt.js +++ b/assets/index-CuYyT4jL.js @@ -1,4 +1,4 @@ -import{r as o,a as J}from"./index-B4Z6PsAH.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8c81ac4a-8e9c-4808-9016-10228286f10e",e._sentryDebugIdIdentifier="sentry-dbid-8c81ac4a-8e9c-4808-9016-10228286f10e")}catch{}})();/** +import{r as o,a as J}from"./index-Bs6nXyGp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8c81ac4a-8e9c-4808-9016-10228286f10e",e._sentryDebugIdIdentifier="sentry-dbid-8c81ac4a-8e9c-4808-9016-10228286f10e")}catch{}})();/** * @remix-run/router v1.17.1 * * Copyright (c) Remix Software Inc. diff --git a/assets/index.style-TC8qthSU.js b/assets/index.style-BqtEg6R5.js similarity index 96% rename from assets/index.style-TC8qthSU.js rename to assets/index.style-BqtEg6R5.js index 24d5b77f0..eb0f9d83a 100644 --- a/assets/index.style-TC8qthSU.js +++ b/assets/index.style-BqtEg6R5.js @@ -1 +1 @@ -import{a as i,c as o}from"./emotion-react.browser.esm-DVCGPw0o.js";import{r as t}from"./index-B4Z6PsAH.js";import{S as l}from"./MenuList-Cq7c8mmt.js";import{S as n}from"./ic_trash-D7lR1pQ_.js";import"./iframe-BnffqoK7.js";import{t as C}from"./theme-DwD7F4-e.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="1a982293-d38f-47cb-880d-2e6a254c3617",e._sentryDebugIdIdentifier="sentry-dbid-1a982293-d38f-47cb-880d-2e6a254c3617")}catch{}})();const a=e=>t.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M14.9999 12.4997V14.9997H4.99992V12.4997H3.33325V14.9997C3.33325 15.9163 4.08325 16.6663 4.99992 16.6663H14.9999C15.9166 16.6663 16.6666 15.9163 16.6666 14.9997V12.4997H14.9999ZM14.1666 9.16634L12.9916 7.99134L10.8333 10.1413V3.33301H9.16658V10.1413L7.00825 7.99134L5.83325 9.16634L9.99992 13.333L14.1666 9.16634Z",fill:"#56585D"})),h=e=>t.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M12.2778 2H3.71611C3.04389 2 2.5 2.6 2.5 3.33333L2.50611 12.6667C2.50611 13.4 3.05 14 3.72222 14H9.83333L13.5 10V3.33333C13.5 2.6 12.95 2 12.2778 2ZM4.94444 5.33333H11.0556V6.66667H4.94444V5.33333ZM8 9.33333H4.94444V8H8V9.33333ZM9.22222 13V9.33333H12.5833L9.22222 13Z",fill:"#525866"})),d=e=>t.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M35 5H5C3.33333 5 1.66667 6.66667 1.66667 8.33333V31.6667C1.66667 33.5 3.16667 35 5 35H35C36.6667 35 38.3333 33.3333 38.3333 31.6667V8.33333C38.3333 6.66667 36.6667 5 35 5ZM35 31.5333C34.9667 31.5833 34.9 31.6333 34.8667 31.6667H5V8.46667L5.13333 8.33333H34.85C34.9 8.36667 34.95 8.43333 34.9833 8.46667V31.5333H35ZM18.3333 25.85L14.1667 20.8333L8.33333 28.3333H31.6667L24.1667 18.3333L18.3333 25.85Z",fill:"#D6D5D5"})),H=e=>t.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M25.3332 3.3335H11.9998C10.1665 3.3335 8.68317 4.8335 8.68317 6.66683L8.6665 33.3335C8.6665 35.1668 10.1498 36.6668 11.9832 36.6668H31.9998C33.8332 36.6668 35.3332 35.1668 35.3332 33.3335V13.3335L25.3332 3.3335ZM11.9998 33.3335V6.66683H23.6665V15.0002H31.9998V33.3335H11.9998Z",fill:"#D6D5D5"}),t.createElement("path",{d:"M0 17C0 16.4477 0.447715 16 1 16H20C20.5523 16 21 16.4477 21 17V27C21 27.5523 20.5523 28 20 28H1C0.447715 28 0 27.5523 0 27V17Z",fill:"#E84A4F"}),t.createElement("path",{d:"M13.9473 19.1719H17.459V19.9102H14.8066V21.6289H17.2051V22.3633H14.8066V24.8281H13.9473V19.1719Z",fill:"white"}),t.createElement("path",{d:"M8.85742 24.8281V24.0742H10.209C10.6361 24.0742 10.9915 23.9935 11.2754 23.832C11.5592 23.6706 11.7715 23.4362 11.9121 23.1289C12.0553 22.819 12.127 22.4401 12.127 21.9922C12.127 21.5495 12.0566 21.1745 11.916 20.8672C11.778 20.5573 11.5697 20.3229 11.291 20.1641C11.015 20.0052 10.6712 19.9258 10.2598 19.9258H8.82617V19.1719H10.3105C10.8652 19.1719 11.3418 19.2839 11.7402 19.5078C12.1413 19.7318 12.4473 20.056 12.6582 20.4805C12.8717 20.9049 12.9785 21.4089 12.9785 21.9922C12.9785 22.5807 12.8704 23.0872 12.6543 23.5117C12.4408 23.9362 12.1296 24.2617 11.7207 24.4883C11.3145 24.7148 10.8275 24.8281 10.2598 24.8281H8.85742ZM9.2832 24.8281H8.42383V19.1719H9.2832V24.8281Z",fill:"white"}),t.createElement("path",{d:"M3.54102 19.1719H5.55664C5.98372 19.1719 6.3444 19.2513 6.63867 19.4102C6.93294 19.5664 7.15299 19.7826 7.29883 20.0586C7.44727 20.332 7.52148 20.6484 7.52148 21.0078C7.52148 21.362 7.44727 21.6771 7.29883 21.9531C7.15039 22.2292 6.92904 22.4466 6.63477 22.6055C6.34049 22.7643 5.97982 22.8438 5.55273 22.8438H4.16211V22.1133H5.4707C5.74154 22.1133 5.96549 22.0664 6.14258 21.9727C6.31966 21.8763 6.44857 21.7461 6.5293 21.582C6.61263 21.4154 6.6543 21.224 6.6543 21.0078C6.6543 20.7865 6.61263 20.5938 6.5293 20.4297C6.44857 20.2656 6.31836 20.138 6.13867 20.0469C5.96159 19.9557 5.73763 19.9102 5.4668 19.9102H4.40039V24.8281H3.54102V19.1719Z",fill:"white"})),c=e=>t.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M25.3332 3.3335H11.9998C10.1665 3.3335 8.68317 4.8335 8.68317 6.66683L8.6665 33.3335C8.6665 35.1668 10.1498 36.6668 11.9832 36.6668H31.9998C33.8332 36.6668 35.3332 35.1668 35.3332 33.3335V13.3335L25.3332 3.3335ZM11.9998 33.3335V6.66683H23.6665V15.0002H31.9998V33.3335H11.9998Z",fill:"#D6D5D5"}),t.createElement("path",{d:"M0 17C0 16.4477 0.447715 16 1 16H29.54C30.0923 16 30.54 16.4477 30.54 17V27C30.54 27.5523 30.0923 28 29.54 28H1C0.447717 28 0 27.5523 0 27V17Z",fill:"#41A5F0"}),t.createElement("path",{d:"M22.4971 24.9043V24.1504H23.8486C24.2757 24.1504 24.6312 24.0697 24.915 23.9082C25.1989 23.7467 25.4111 23.5124 25.5518 23.2051C25.695 22.8952 25.7666 22.5163 25.7666 22.0684C25.7666 21.6257 25.6963 21.2507 25.5557 20.9434C25.4176 20.6335 25.2093 20.3991 24.9307 20.2402C24.6546 20.0814 24.3109 20.002 23.8994 20.002H22.4658V19.248H23.9502C24.5049 19.248 24.9814 19.36 25.3799 19.584C25.7809 19.8079 26.0869 20.1322 26.2979 20.5566C26.5114 20.9811 26.6182 21.485 26.6182 22.0684C26.6182 22.6569 26.5101 23.1634 26.2939 23.5879C26.0804 24.0124 25.7692 24.3379 25.3604 24.5645C24.9541 24.791 24.4671 24.9043 23.8994 24.9043H22.4971ZM22.9229 24.9043H22.0635V19.248H22.9229V24.9043Z",fill:"white"}),t.createElement("path",{d:"M17.1338 19.248H19.1494C19.5817 19.248 19.9437 19.3223 20.2354 19.4707C20.5296 19.6165 20.7497 19.8236 20.8955 20.0918C21.0413 20.36 21.1143 20.6712 21.1143 21.0254C21.1143 21.3743 21.0413 21.6803 20.8955 21.9434C20.7497 22.2038 20.5283 22.4069 20.2314 22.5527C19.9372 22.6986 19.5752 22.7715 19.1455 22.7715H17.6182V22.0254H19.0635C19.3395 22.0254 19.5648 21.9863 19.7393 21.9082C19.9137 21.8301 20.0413 21.7168 20.1221 21.5684C20.2054 21.4199 20.2471 21.2389 20.2471 21.0254C20.2471 20.804 20.2054 20.6165 20.1221 20.4629C20.0413 20.3066 19.9124 20.1882 19.7354 20.1074C19.5583 20.0267 19.333 19.9863 19.0596 19.9863H17.9932V24.9043H17.1338V19.248ZM21.3252 24.9043H20.3447L18.9775 22.3535H19.9307L21.3252 24.9043Z",fill:"white"}),t.createElement("path",{d:"M16.1611 22.0762C16.1611 22.6647 16.0518 23.179 15.833 23.6191C15.6143 24.0592 15.3122 24.3965 14.9268 24.6309C14.5439 24.8652 14.1064 24.9824 13.6143 24.9824C13.1221 24.9824 12.6833 24.8652 12.2979 24.6309C11.915 24.3965 11.6143 24.0592 11.3955 23.6191C11.1768 23.179 11.0674 22.6647 11.0674 22.0762C11.0674 21.4824 11.1768 20.9668 11.3955 20.5293C11.6143 20.0918 11.915 19.7559 12.2979 19.5215C12.6833 19.2871 13.1221 19.1699 13.6143 19.1699C14.1064 19.1699 14.5439 19.2871 14.9268 19.5215C15.3122 19.7559 15.6143 20.0918 15.833 20.5293C16.0518 20.9668 16.1611 21.4824 16.1611 22.0762ZM15.3135 22.0762C15.3135 21.6283 15.2406 21.2454 15.0947 20.9277C14.9489 20.6074 14.7484 20.3652 14.4932 20.2012C14.238 20.0371 13.945 19.9551 13.6143 19.9551C13.2861 19.9551 12.9932 20.0371 12.7354 20.2012C12.4801 20.3652 12.2796 20.6074 12.1338 20.9277C11.988 21.2454 11.915 21.6283 11.915 22.0762C11.915 22.5241 11.988 22.9082 12.1338 23.2285C12.2796 23.5462 12.4801 23.7871 12.7354 23.9512C12.9932 24.1152 13.2861 24.1973 13.6143 24.1973C13.945 24.1973 14.238 24.1152 14.4932 23.9512C14.7484 23.7871 14.9489 23.5462 15.0947 23.2285C15.2406 22.9082 15.3135 22.5241 15.3135 22.0762Z",fill:"white"}),t.createElement("path",{d:"M3.54004 19.248H4.44238L5.54395 23.6191H5.59863L6.73926 19.248H7.63379L8.78223 23.623H8.8291L9.93457 19.248H10.833L9.2627 24.9043H8.39551L7.21191 20.6738H7.16895L5.97754 24.9043H5.11035L3.54004 19.248Z",fill:"white"})),L={download:i(a,{width:16,height:16}),deleted:i(n,{width:16,height:16}),handover:i(h,{width:16,height:16}),name:i(l,{width:16,height:16})},v={pdf:i(H,{width:40,height:40}),word:i(c,{width:40,height:40}),image:i(d,{width:40,height:40})},M=e=>o({position:"relative",minWidth:"16rem",maxWidth:"22rem",width:e?"16rem":"100%",height:e?"12.2rem":"16rem",padding:e?"1.2rem":"2.4rem 2rem",border:`1px solid ${C.colors.gray_300}`,borderRadius:"12px",cursor:"pointer"}),Z=e=>o({width:"100%",padding:e?"0 0 2rem":"1.2rem 0 2rem 0"}),E=o({...C.text.body06,fontWeight:500}),x=o({color:C.colors.gray_500}),y=e=>o({backgroundColor:C.colors.white,"& svg":{flexShrink:0}},e?{top:"calc(100% + 1rem)",right:0}:{bottom:"calc(100% + 1rem)",right:0}),I=o({whiteSpace:"nowrap",...C.text.body08,backgroundColor:C.colors.white,fontWeight:400});export{v as F,L as O,I as a,M as c,Z as i,E as n,y as o,x as t}; +import{a as i,c as o}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{r as t}from"./index-Bs6nXyGp.js";import{S as l}from"./MenuList-DtX22AXJ.js";import{S as n}from"./ic_trash-zLH-eJlm.js";import"./iframe-AJyGuqY3.js";import{t as C}from"./theme-Cuq_aI8Z.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="1a982293-d38f-47cb-880d-2e6a254c3617",e._sentryDebugIdIdentifier="sentry-dbid-1a982293-d38f-47cb-880d-2e6a254c3617")}catch{}})();const a=e=>t.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M14.9999 12.4997V14.9997H4.99992V12.4997H3.33325V14.9997C3.33325 15.9163 4.08325 16.6663 4.99992 16.6663H14.9999C15.9166 16.6663 16.6666 15.9163 16.6666 14.9997V12.4997H14.9999ZM14.1666 9.16634L12.9916 7.99134L10.8333 10.1413V3.33301H9.16658V10.1413L7.00825 7.99134L5.83325 9.16634L9.99992 13.333L14.1666 9.16634Z",fill:"#56585D"})),h=e=>t.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M12.2778 2H3.71611C3.04389 2 2.5 2.6 2.5 3.33333L2.50611 12.6667C2.50611 13.4 3.05 14 3.72222 14H9.83333L13.5 10V3.33333C13.5 2.6 12.95 2 12.2778 2ZM4.94444 5.33333H11.0556V6.66667H4.94444V5.33333ZM8 9.33333H4.94444V8H8V9.33333ZM9.22222 13V9.33333H12.5833L9.22222 13Z",fill:"#525866"})),d=e=>t.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M35 5H5C3.33333 5 1.66667 6.66667 1.66667 8.33333V31.6667C1.66667 33.5 3.16667 35 5 35H35C36.6667 35 38.3333 33.3333 38.3333 31.6667V8.33333C38.3333 6.66667 36.6667 5 35 5ZM35 31.5333C34.9667 31.5833 34.9 31.6333 34.8667 31.6667H5V8.46667L5.13333 8.33333H34.85C34.9 8.36667 34.95 8.43333 34.9833 8.46667V31.5333H35ZM18.3333 25.85L14.1667 20.8333L8.33333 28.3333H31.6667L24.1667 18.3333L18.3333 25.85Z",fill:"#D6D5D5"})),H=e=>t.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M25.3332 3.3335H11.9998C10.1665 3.3335 8.68317 4.8335 8.68317 6.66683L8.6665 33.3335C8.6665 35.1668 10.1498 36.6668 11.9832 36.6668H31.9998C33.8332 36.6668 35.3332 35.1668 35.3332 33.3335V13.3335L25.3332 3.3335ZM11.9998 33.3335V6.66683H23.6665V15.0002H31.9998V33.3335H11.9998Z",fill:"#D6D5D5"}),t.createElement("path",{d:"M0 17C0 16.4477 0.447715 16 1 16H20C20.5523 16 21 16.4477 21 17V27C21 27.5523 20.5523 28 20 28H1C0.447715 28 0 27.5523 0 27V17Z",fill:"#E84A4F"}),t.createElement("path",{d:"M13.9473 19.1719H17.459V19.9102H14.8066V21.6289H17.2051V22.3633H14.8066V24.8281H13.9473V19.1719Z",fill:"white"}),t.createElement("path",{d:"M8.85742 24.8281V24.0742H10.209C10.6361 24.0742 10.9915 23.9935 11.2754 23.832C11.5592 23.6706 11.7715 23.4362 11.9121 23.1289C12.0553 22.819 12.127 22.4401 12.127 21.9922C12.127 21.5495 12.0566 21.1745 11.916 20.8672C11.778 20.5573 11.5697 20.3229 11.291 20.1641C11.015 20.0052 10.6712 19.9258 10.2598 19.9258H8.82617V19.1719H10.3105C10.8652 19.1719 11.3418 19.2839 11.7402 19.5078C12.1413 19.7318 12.4473 20.056 12.6582 20.4805C12.8717 20.9049 12.9785 21.4089 12.9785 21.9922C12.9785 22.5807 12.8704 23.0872 12.6543 23.5117C12.4408 23.9362 12.1296 24.2617 11.7207 24.4883C11.3145 24.7148 10.8275 24.8281 10.2598 24.8281H8.85742ZM9.2832 24.8281H8.42383V19.1719H9.2832V24.8281Z",fill:"white"}),t.createElement("path",{d:"M3.54102 19.1719H5.55664C5.98372 19.1719 6.3444 19.2513 6.63867 19.4102C6.93294 19.5664 7.15299 19.7826 7.29883 20.0586C7.44727 20.332 7.52148 20.6484 7.52148 21.0078C7.52148 21.362 7.44727 21.6771 7.29883 21.9531C7.15039 22.2292 6.92904 22.4466 6.63477 22.6055C6.34049 22.7643 5.97982 22.8438 5.55273 22.8438H4.16211V22.1133H5.4707C5.74154 22.1133 5.96549 22.0664 6.14258 21.9727C6.31966 21.8763 6.44857 21.7461 6.5293 21.582C6.61263 21.4154 6.6543 21.224 6.6543 21.0078C6.6543 20.7865 6.61263 20.5938 6.5293 20.4297C6.44857 20.2656 6.31836 20.138 6.13867 20.0469C5.96159 19.9557 5.73763 19.9102 5.4668 19.9102H4.40039V24.8281H3.54102V19.1719Z",fill:"white"})),c=e=>t.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M25.3332 3.3335H11.9998C10.1665 3.3335 8.68317 4.8335 8.68317 6.66683L8.6665 33.3335C8.6665 35.1668 10.1498 36.6668 11.9832 36.6668H31.9998C33.8332 36.6668 35.3332 35.1668 35.3332 33.3335V13.3335L25.3332 3.3335ZM11.9998 33.3335V6.66683H23.6665V15.0002H31.9998V33.3335H11.9998Z",fill:"#D6D5D5"}),t.createElement("path",{d:"M0 17C0 16.4477 0.447715 16 1 16H29.54C30.0923 16 30.54 16.4477 30.54 17V27C30.54 27.5523 30.0923 28 29.54 28H1C0.447717 28 0 27.5523 0 27V17Z",fill:"#41A5F0"}),t.createElement("path",{d:"M22.4971 24.9043V24.1504H23.8486C24.2757 24.1504 24.6312 24.0697 24.915 23.9082C25.1989 23.7467 25.4111 23.5124 25.5518 23.2051C25.695 22.8952 25.7666 22.5163 25.7666 22.0684C25.7666 21.6257 25.6963 21.2507 25.5557 20.9434C25.4176 20.6335 25.2093 20.3991 24.9307 20.2402C24.6546 20.0814 24.3109 20.002 23.8994 20.002H22.4658V19.248H23.9502C24.5049 19.248 24.9814 19.36 25.3799 19.584C25.7809 19.8079 26.0869 20.1322 26.2979 20.5566C26.5114 20.9811 26.6182 21.485 26.6182 22.0684C26.6182 22.6569 26.5101 23.1634 26.2939 23.5879C26.0804 24.0124 25.7692 24.3379 25.3604 24.5645C24.9541 24.791 24.4671 24.9043 23.8994 24.9043H22.4971ZM22.9229 24.9043H22.0635V19.248H22.9229V24.9043Z",fill:"white"}),t.createElement("path",{d:"M17.1338 19.248H19.1494C19.5817 19.248 19.9437 19.3223 20.2354 19.4707C20.5296 19.6165 20.7497 19.8236 20.8955 20.0918C21.0413 20.36 21.1143 20.6712 21.1143 21.0254C21.1143 21.3743 21.0413 21.6803 20.8955 21.9434C20.7497 22.2038 20.5283 22.4069 20.2314 22.5527C19.9372 22.6986 19.5752 22.7715 19.1455 22.7715H17.6182V22.0254H19.0635C19.3395 22.0254 19.5648 21.9863 19.7393 21.9082C19.9137 21.8301 20.0413 21.7168 20.1221 21.5684C20.2054 21.4199 20.2471 21.2389 20.2471 21.0254C20.2471 20.804 20.2054 20.6165 20.1221 20.4629C20.0413 20.3066 19.9124 20.1882 19.7354 20.1074C19.5583 20.0267 19.333 19.9863 19.0596 19.9863H17.9932V24.9043H17.1338V19.248ZM21.3252 24.9043H20.3447L18.9775 22.3535H19.9307L21.3252 24.9043Z",fill:"white"}),t.createElement("path",{d:"M16.1611 22.0762C16.1611 22.6647 16.0518 23.179 15.833 23.6191C15.6143 24.0592 15.3122 24.3965 14.9268 24.6309C14.5439 24.8652 14.1064 24.9824 13.6143 24.9824C13.1221 24.9824 12.6833 24.8652 12.2979 24.6309C11.915 24.3965 11.6143 24.0592 11.3955 23.6191C11.1768 23.179 11.0674 22.6647 11.0674 22.0762C11.0674 21.4824 11.1768 20.9668 11.3955 20.5293C11.6143 20.0918 11.915 19.7559 12.2979 19.5215C12.6833 19.2871 13.1221 19.1699 13.6143 19.1699C14.1064 19.1699 14.5439 19.2871 14.9268 19.5215C15.3122 19.7559 15.6143 20.0918 15.833 20.5293C16.0518 20.9668 16.1611 21.4824 16.1611 22.0762ZM15.3135 22.0762C15.3135 21.6283 15.2406 21.2454 15.0947 20.9277C14.9489 20.6074 14.7484 20.3652 14.4932 20.2012C14.238 20.0371 13.945 19.9551 13.6143 19.9551C13.2861 19.9551 12.9932 20.0371 12.7354 20.2012C12.4801 20.3652 12.2796 20.6074 12.1338 20.9277C11.988 21.2454 11.915 21.6283 11.915 22.0762C11.915 22.5241 11.988 22.9082 12.1338 23.2285C12.2796 23.5462 12.4801 23.7871 12.7354 23.9512C12.9932 24.1152 13.2861 24.1973 13.6143 24.1973C13.945 24.1973 14.238 24.1152 14.4932 23.9512C14.7484 23.7871 14.9489 23.5462 15.0947 23.2285C15.2406 22.9082 15.3135 22.5241 15.3135 22.0762Z",fill:"white"}),t.createElement("path",{d:"M3.54004 19.248H4.44238L5.54395 23.6191H5.59863L6.73926 19.248H7.63379L8.78223 23.623H8.8291L9.93457 19.248H10.833L9.2627 24.9043H8.39551L7.21191 20.6738H7.16895L5.97754 24.9043H5.11035L3.54004 19.248Z",fill:"white"})),L={download:i(a,{width:16,height:16}),deleted:i(n,{width:16,height:16}),handover:i(h,{width:16,height:16}),name:i(l,{width:16,height:16})},v={pdf:i(H,{width:40,height:40}),word:i(c,{width:40,height:40}),image:i(d,{width:40,height:40})},M=e=>o({position:"relative",minWidth:"16rem",maxWidth:"22rem",width:e?"16rem":"100%",height:e?"12.2rem":"16rem",padding:e?"1.2rem":"2.4rem 2rem",border:`1px solid ${C.colors.gray_300}`,borderRadius:"12px",cursor:"pointer"}),Z=e=>o({width:"100%",padding:e?"0 0 2rem":"1.2rem 0 2rem 0"}),E=o({...C.text.body06,fontWeight:500}),x=o({color:C.colors.gray_500}),y=e=>o({backgroundColor:C.colors.white,"& svg":{flexShrink:0}},e?{top:"calc(100% + 1rem)",right:0}:{bottom:"calc(100% + 1rem)",right:0}),I=o({whiteSpace:"nowrap",...C.text.body08,backgroundColor:C.colors.white,fontWeight:400});export{v as F,L as O,I as a,M as c,Z as i,E as n,y as o,x as t}; diff --git a/assets/isArray-BI8z6s7d.js b/assets/isArray-vVmlok3Z.js similarity index 99% rename from assets/isArray-BI8z6s7d.js rename to assets/isArray-vVmlok3Z.js index e75450a26..65a1ae1e6 100644 --- a/assets/isArray-BI8z6s7d.js +++ b/assets/isArray-vVmlok3Z.js @@ -1,4 +1,4 @@ -import"./iframe-BnffqoK7.js";import{c as Ae,g as fn}from"./_commonjsHelpers-XnwbWaTF.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="510fa9fd-8a68-4474-afd0-54c1a87027c7",r._sentryDebugIdIdentifier="sentry-dbid-510fa9fd-8a68-4474-afd0-54c1a87027c7")}catch{}})();var Tn=Object.create,Ye=Object.defineProperty,vn=Object.getOwnPropertyDescriptor,hn=Object.getOwnPropertyNames,gn=Object.getPrototypeOf,bn=Object.prototype.hasOwnProperty,a=(r,t)=>Ye(r,"name",{value:t,configurable:!0}),f=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),Jn=(r,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of hn(t))!bn.call(r,i)&&i!==n&&Ye(r,i,{get:()=>t[i],enumerable:!(o=vn(t,i))||o.enumerable});return r},It=(r,t,n)=>(n=r!=null?Tn(gn(r)):{},Jn(Ye(n,"default",{value:r,enumerable:!0}),r)),Rt=f((r,t)=>{var n=typeof global=="object"&&global&&global.Object===Object&&global;t.exports=n}),Z=f((r,t)=>{var n=Rt(),o=typeof self=="object"&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i}),Re=f((r,t)=>{var n=Z(),o=n.Symbol;t.exports=o}),xn=f((r,t)=>{var n=Re(),o=Object.prototype,i=o.hasOwnProperty,c=o.toString,l=n?n.toStringTag:void 0;function u(y){var m=i.call(y,l),T=y[l];try{y[l]=void 0;var h=!0}catch{}var x=c.call(y);return h&&(m?y[l]=T:delete y[l]),x}a(u,"getRawTag"),t.exports=u}),wn=f((r,t)=>{var n=Object.prototype,o=n.toString;function i(c){return o.call(c)}a(i,"objectToString"),t.exports=i}),ge=f((r,t)=>{var n=Re(),o=xn(),i=wn(),c="[object Null]",l="[object Undefined]",u=n?n.toStringTag:void 0;function y(m){return m==null?m===void 0?l:c:u&&u in Object(m)?o(m):i(m)}a(y,"baseGetTag"),t.exports=y}),ze=f((r,t)=>{function n(o){var i=typeof o;return o!=null&&(i=="object"||i=="function")}a(n,"isObject"),t.exports=n}),Ft=f((r,t)=>{var n=ge(),o=ze(),i="[object AsyncFunction]",c="[object Function]",l="[object GeneratorFunction]",u="[object Proxy]";function y(m){if(!o(m))return!1;var T=n(m);return T==c||T==l||T==i||T==u}a(y,"isFunction"),t.exports=y}),Pn=f((r,t)=>{var n=Z(),o=n["__core-js_shared__"];t.exports=o}),On=f((r,t)=>{var n=Pn(),o=function(){var c=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}();function i(c){return!!o&&o in c}a(i,"isMasked"),t.exports=i}),Lt=f((r,t)=>{var n=Function.prototype,o=n.toString;function i(c){if(c!=null){try{return o.call(c)}catch{}try{return c+""}catch{}}return""}a(i,"toSource"),t.exports=i}),Nn=f((r,t)=>{var n=Ft(),o=On(),i=ze(),c=Lt(),l=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,y=Function.prototype,m=Object.prototype,T=y.toString,h=m.hasOwnProperty,x=RegExp("^"+T.call(h).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function g(w){if(!i(w)||o(w))return!1;var _=n(w)?x:u;return _.test(c(w))}a(g,"baseIsNative"),t.exports=g}),_n=f((r,t)=>{function n(o,i){return o==null?void 0:o[i]}a(n,"getValue"),t.exports=n}),ie=f((r,t)=>{var n=Nn(),o=_n();function i(c,l){var u=o(c,l);return n(u)?u:void 0}a(i,"getNative"),t.exports=i}),Sn=f((r,t)=>{var n=ie(),o=function(){try{var i=n(Object,"defineProperty");return i({},"",{}),i}catch{}}();t.exports=o}),jn=f((r,t)=>{var n=Sn();function o(i,c,l){c=="__proto__"&&n?n(i,c,{configurable:!0,enumerable:!0,value:l,writable:!0}):i[c]=l}a(o,"baseAssignValue"),t.exports=o}),En=f((r,t)=>{function n(o){return function(i,c,l){for(var u=-1,y=Object(i),m=l(i),T=m.length;T--;){var h=m[o?T:++u];if(c(y[h],h,y)===!1)break}return i}}a(n,"createBaseFor"),t.exports=n}),kn=f((r,t)=>{var n=En(),o=n();t.exports=o}),An=f((r,t)=>{function n(o,i){for(var c=-1,l=Array(o);++c{function n(o){return o!=null&&typeof o=="object"}a(n,"isObjectLike"),t.exports=n}),In=f((r,t)=>{var n=ge(),o=be(),i="[object Arguments]";function c(l){return o(l)&&n(l)==i}a(c,"baseIsArguments"),t.exports=c}),Ut=f((r,t)=>{var n=In(),o=be(),i=Object.prototype,c=i.hasOwnProperty,l=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(y){return o(y)&&c.call(y,"callee")&&!l.call(y,"callee")};t.exports=u}),ne=f((r,t)=>{var n=Array.isArray;t.exports=n}),Rn=f((r,t)=>{function n(){return!1}a(n,"stubFalse"),t.exports=n}),Vt=f((r,t)=>{var n=Z(),o=Rn(),i=typeof r=="object"&&r&&!r.nodeType&&r,c=i&&typeof t=="object"&&t&&!t.nodeType&&t,l=c&&c.exports===i,u=l?n.Buffer:void 0,y=u?u.isBuffer:void 0,m=y||o;t.exports=m}),$t=f((r,t)=>{var n=9007199254740991,o=/^(?:0|[1-9]\d*)$/;function i(c,l){var u=typeof c;return l=l??n,!!l&&(u=="number"||u!="symbol"&&o.test(c))&&c>-1&&c%1==0&&c{var n=9007199254740991;function o(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=n}a(o,"isLength"),t.exports=o}),Fn=f((r,t)=>{var n=ge(),o=We(),i=be(),c="[object Arguments]",l="[object Array]",u="[object Boolean]",y="[object Date]",m="[object Error]",T="[object Function]",h="[object Map]",x="[object Number]",g="[object Object]",w="[object RegExp]",_="[object Set]",L="[object String]",R="[object WeakMap]",P="[object ArrayBuffer]",A="[object DataView]",j="[object Float32Array]",D="[object Float64Array]",I="[object Int8Array]",V="[object Int16Array]",E="[object Int32Array]",k="[object Uint8Array]",N="[object Uint8ClampedArray]",K="[object Uint16Array]",G="[object Uint32Array]",S={};S[j]=S[D]=S[I]=S[V]=S[E]=S[k]=S[N]=S[K]=S[G]=!0,S[c]=S[l]=S[P]=S[u]=S[A]=S[y]=S[m]=S[T]=S[h]=S[x]=S[g]=S[w]=S[_]=S[L]=S[R]=!1;function Y(M){return i(M)&&o(M.length)&&!!S[n(M)]}a(Y,"baseIsTypedArray"),t.exports=Y}),Ln=f((r,t)=>{function n(o){return function(i){return o(i)}}a(n,"baseUnary"),t.exports=n}),Un=f((r,t)=>{var n=Rt(),o=typeof r=="object"&&r&&!r.nodeType&&r,i=o&&typeof t=="object"&&t&&!t.nodeType&&t,c=i&&i.exports===o,l=c&&n.process,u=function(){try{var y=i&&i.require&&i.require("util").types;return y||l&&l.binding&&l.binding("util")}catch{}}();t.exports=u}),Dt=f((r,t)=>{var n=Fn(),o=Ln(),i=Un(),c=i&&i.isTypedArray,l=c?o(c):n;t.exports=l}),Vn=f((r,t)=>{var n=An(),o=Ut(),i=ne(),c=Vt(),l=$t(),u=Dt(),y=Object.prototype,m=y.hasOwnProperty;function T(h,x){var g=i(h),w=!g&&o(h),_=!g&&!w&&c(h),L=!g&&!w&&!_&&u(h),R=g||w||_||L,P=R?n(h.length,String):[],A=P.length;for(var j in h)(x||m.call(h,j))&&!(R&&(j=="length"||_&&(j=="offset"||j=="parent")||L&&(j=="buffer"||j=="byteLength"||j=="byteOffset")||l(j,A)))&&P.push(j);return P}a(T,"arrayLikeKeys"),t.exports=T}),$n=f((r,t)=>{var n=Object.prototype;function o(i){var c=i&&i.constructor,l=typeof c=="function"&&c.prototype||n;return i===l}a(o,"isPrototype"),t.exports=o}),Dn=f((r,t)=>{function n(o,i){return function(c){return o(i(c))}}a(n,"overArg"),t.exports=n}),Kn=f((r,t)=>{var n=Dn(),o=n(Object.keys,Object);t.exports=o}),Cn=f((r,t)=>{var n=$n(),o=Kn(),i=Object.prototype,c=i.hasOwnProperty;function l(u){if(!n(u))return o(u);var y=[];for(var m in Object(u))c.call(u,m)&&m!="constructor"&&y.push(m);return y}a(l,"baseKeys"),t.exports=l}),Mn=f((r,t)=>{var n=Ft(),o=We();function i(c){return c!=null&&o(c.length)&&!n(c)}a(i,"isArrayLike"),t.exports=i}),He=f((r,t)=>{var n=Vn(),o=Cn(),i=Mn();function c(l){return i(l)?n(l):o(l)}a(c,"keys"),t.exports=c}),qn=f((r,t)=>{var n=kn(),o=He();function i(c,l){return c&&n(c,l,o)}a(i,"baseForOwn"),t.exports=i}),Bn=f((r,t)=>{function n(){this.__data__=[],this.size=0}a(n,"listCacheClear"),t.exports=n}),Kt=f((r,t)=>{function n(o,i){return o===i||o!==o&&i!==i}a(n,"eq"),t.exports=n}),Fe=f((r,t)=>{var n=Kt();function o(i,c){for(var l=i.length;l--;)if(n(i[l][0],c))return l;return-1}a(o,"assocIndexOf"),t.exports=o}),Gn=f((r,t)=>{var n=Fe(),o=Array.prototype,i=o.splice;function c(l){var u=this.__data__,y=n(u,l);if(y<0)return!1;var m=u.length-1;return y==m?u.pop():i.call(u,y,1),--this.size,!0}a(c,"listCacheDelete"),t.exports=c}),Yn=f((r,t)=>{var n=Fe();function o(i){var c=this.__data__,l=n(c,i);return l<0?void 0:c[l][1]}a(o,"listCacheGet"),t.exports=o}),zn=f((r,t)=>{var n=Fe();function o(i){return n(this.__data__,i)>-1}a(o,"listCacheHas"),t.exports=o}),Wn=f((r,t)=>{var n=Fe();function o(i,c){var l=this.__data__,u=n(l,i);return u<0?(++this.size,l.push([i,c])):l[u][1]=c,this}a(o,"listCacheSet"),t.exports=o}),Le=f((r,t)=>{var n=Bn(),o=Gn(),i=Yn(),c=zn(),l=Wn();function u(y){var m=-1,T=y==null?0:y.length;for(this.clear();++m{var n=Le();function o(){this.__data__=new n,this.size=0}a(o,"stackClear"),t.exports=o}),Xn=f((r,t)=>{function n(o){var i=this.__data__,c=i.delete(o);return this.size=i.size,c}a(n,"stackDelete"),t.exports=n}),Qn=f((r,t)=>{function n(o){return this.__data__.get(o)}a(n,"stackGet"),t.exports=n}),Zn=f((r,t)=>{function n(o){return this.__data__.has(o)}a(n,"stackHas"),t.exports=n}),Xe=f((r,t)=>{var n=ie(),o=Z(),i=n(o,"Map");t.exports=i}),Ue=f((r,t)=>{var n=ie(),o=n(Object,"create");t.exports=o}),ea=f((r,t)=>{var n=Ue();function o(){this.__data__=n?n(null):{},this.size=0}a(o,"hashClear"),t.exports=o}),ta=f((r,t)=>{function n(o){var i=this.has(o)&&delete this.__data__[o];return this.size-=i?1:0,i}a(n,"hashDelete"),t.exports=n}),ra=f((r,t)=>{var n=Ue(),o="__lodash_hash_undefined__",i=Object.prototype,c=i.hasOwnProperty;function l(u){var y=this.__data__;if(n){var m=y[u];return m===o?void 0:m}return c.call(y,u)?y[u]:void 0}a(l,"hashGet"),t.exports=l}),na=f((r,t)=>{var n=Ue(),o=Object.prototype,i=o.hasOwnProperty;function c(l){var u=this.__data__;return n?u[l]!==void 0:i.call(u,l)}a(c,"hashHas"),t.exports=c}),aa=f((r,t)=>{var n=Ue(),o="__lodash_hash_undefined__";function i(c,l){var u=this.__data__;return this.size+=this.has(c)?0:1,u[c]=n&&l===void 0?o:l,this}a(i,"hashSet"),t.exports=i}),oa=f((r,t)=>{var n=ea(),o=ta(),i=ra(),c=na(),l=aa();function u(y){var m=-1,T=y==null?0:y.length;for(this.clear();++m{var n=oa(),o=Le(),i=Xe();function c(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}a(c,"mapCacheClear"),t.exports=c}),ia=f((r,t)=>{function n(o){var i=typeof o;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?o!=="__proto__":o===null}a(n,"isKeyable"),t.exports=n}),Ve=f((r,t)=>{var n=ia();function o(i,c){var l=i.__data__;return n(c)?l[typeof c=="string"?"string":"hash"]:l.map}a(o,"getMapData"),t.exports=o}),ca=f((r,t)=>{var n=Ve();function o(i){var c=n(this,i).delete(i);return this.size-=c?1:0,c}a(o,"mapCacheDelete"),t.exports=o}),pa=f((r,t)=>{var n=Ve();function o(i){return n(this,i).get(i)}a(o,"mapCacheGet"),t.exports=o}),la=f((r,t)=>{var n=Ve();function o(i){return n(this,i).has(i)}a(o,"mapCacheHas"),t.exports=o}),ua=f((r,t)=>{var n=Ve();function o(i,c){var l=n(this,i),u=l.size;return l.set(i,c),this.size+=l.size==u?0:1,this}a(o,"mapCacheSet"),t.exports=o}),Qe=f((r,t)=>{var n=sa(),o=ca(),i=pa(),c=la(),l=ua();function u(y){var m=-1,T=y==null?0:y.length;for(this.clear();++m{var n=Le(),o=Xe(),i=Qe(),c=200;function l(u,y){var m=this.__data__;if(m instanceof n){var T=m.__data__;if(!o||T.length{var n=Le(),o=Hn(),i=Xn(),c=Qn(),l=Zn(),u=ya();function y(m){var T=this.__data__=new n(m);this.size=T.size}a(y,"Stack"),y.prototype.clear=o,y.prototype.delete=i,y.prototype.get=c,y.prototype.has=l,y.prototype.set=u,t.exports=y}),da=f((r,t)=>{var n="__lodash_hash_undefined__";function o(i){return this.__data__.set(i,n),this}a(o,"setCacheAdd"),t.exports=o}),ma=f((r,t)=>{function n(o){return this.__data__.has(o)}a(n,"setCacheHas"),t.exports=n}),fa=f((r,t)=>{var n=Qe(),o=da(),i=ma();function c(l){var u=-1,y=l==null?0:l.length;for(this.__data__=new n;++u{function n(o,i){for(var c=-1,l=o==null?0:o.length;++c{function n(o,i){return o.has(i)}a(n,"cacheHas"),t.exports=n}),Mt=f((r,t)=>{var n=fa(),o=Ta(),i=va(),c=1,l=2;function u(y,m,T,h,x,g){var w=T&c,_=y.length,L=m.length;if(_!=L&&!(w&&L>_))return!1;var R=g.get(y),P=g.get(m);if(R&&P)return R==m&&P==y;var A=-1,j=!0,D=T&l?new n:void 0;for(g.set(y,m),g.set(m,y);++A<_;){var I=y[A],V=m[A];if(h)var E=w?h(V,I,A,m,y,g):h(I,V,A,y,m,g);if(E!==void 0){if(E)continue;j=!1;break}if(D){if(!o(m,function(k,N){if(!i(D,N)&&(I===k||x(I,k,T,h,g)))return D.push(N)})){j=!1;break}}else if(!(I===V||x(I,V,T,h,g))){j=!1;break}}return g.delete(y),g.delete(m),j}a(u,"equalArrays"),t.exports=u}),ha=f((r,t)=>{var n=Z(),o=n.Uint8Array;t.exports=o}),ga=f((r,t)=>{function n(o){var i=-1,c=Array(o.size);return o.forEach(function(l,u){c[++i]=[u,l]}),c}a(n,"mapToArray"),t.exports=n}),ba=f((r,t)=>{function n(o){var i=-1,c=Array(o.size);return o.forEach(function(l){c[++i]=l}),c}a(n,"setToArray"),t.exports=n}),Ja=f((r,t)=>{var n=Re(),o=ha(),i=Kt(),c=Mt(),l=ga(),u=ba(),y=1,m=2,T="[object Boolean]",h="[object Date]",x="[object Error]",g="[object Map]",w="[object Number]",_="[object RegExp]",L="[object Set]",R="[object String]",P="[object Symbol]",A="[object ArrayBuffer]",j="[object DataView]",D=n?n.prototype:void 0,I=D?D.valueOf:void 0;function V(E,k,N,K,G,S,Y){switch(N){case j:if(E.byteLength!=k.byteLength||E.byteOffset!=k.byteOffset)return!1;E=E.buffer,k=k.buffer;case A:return!(E.byteLength!=k.byteLength||!S(new o(E),new o(k)));case T:case h:case w:return i(+E,+k);case x:return E.name==k.name&&E.message==k.message;case _:case R:return E==k+"";case g:var M=l;case L:var J=K&y;if(M||(M=u),E.size!=k.size&&!J)return!1;var oe=Y.get(E);if(oe)return oe==k;K|=m,Y.set(E,k);var ee=c(M(E),M(k),K,G,S,Y);return Y.delete(E),ee;case P:if(I)return I.call(E)==I.call(k)}return!1}a(V,"equalByTag"),t.exports=V}),xa=f((r,t)=>{function n(o,i){for(var c=-1,l=i.length,u=o.length;++c{var n=xa(),o=ne();function i(c,l,u){var y=l(c);return o(c)?y:n(y,u(c))}a(i,"baseGetAllKeys"),t.exports=i}),Pa=f((r,t)=>{function n(o,i){for(var c=-1,l=o==null?0:o.length,u=0,y=[];++c{function n(){return[]}a(n,"stubArray"),t.exports=n}),Na=f((r,t)=>{var n=Pa(),o=Oa(),i=Object.prototype,c=i.propertyIsEnumerable,l=Object.getOwnPropertySymbols,u=l?function(y){return y==null?[]:(y=Object(y),n(l(y),function(m){return c.call(y,m)}))}:o;t.exports=u}),_a=f((r,t)=>{var n=wa(),o=Na(),i=He();function c(l){return n(l,i,o)}a(c,"getAllKeys"),t.exports=c}),Sa=f((r,t)=>{var n=_a(),o=1,i=Object.prototype,c=i.hasOwnProperty;function l(u,y,m,T,h,x){var g=m&o,w=n(u),_=w.length,L=n(y),R=L.length;if(_!=R&&!g)return!1;for(var P=_;P--;){var A=w[P];if(!(g?A in y:c.call(y,A)))return!1}var j=x.get(u),D=x.get(y);if(j&&D)return j==y&&D==u;var I=!0;x.set(u,y),x.set(y,u);for(var V=g;++P<_;){A=w[P];var E=u[A],k=y[A];if(T)var N=g?T(k,E,A,y,u,x):T(E,k,A,u,y,x);if(!(N===void 0?E===k||h(E,k,m,T,x):N)){I=!1;break}V||(V=A=="constructor")}if(I&&!V){var K=u.constructor,G=y.constructor;K!=G&&"constructor"in u&&"constructor"in y&&!(typeof K=="function"&&K instanceof K&&typeof G=="function"&&G instanceof G)&&(I=!1)}return x.delete(u),x.delete(y),I}a(l,"equalObjects"),t.exports=l}),ja=f((r,t)=>{var n=ie(),o=Z(),i=n(o,"DataView");t.exports=i}),Ea=f((r,t)=>{var n=ie(),o=Z(),i=n(o,"Promise");t.exports=i}),ka=f((r,t)=>{var n=ie(),o=Z(),i=n(o,"Set");t.exports=i}),Aa=f((r,t)=>{var n=ie(),o=Z(),i=n(o,"WeakMap");t.exports=i}),Ia=f((r,t)=>{var n=ja(),o=Xe(),i=Ea(),c=ka(),l=Aa(),u=ge(),y=Lt(),m="[object Map]",T="[object Object]",h="[object Promise]",x="[object Set]",g="[object WeakMap]",w="[object DataView]",_=y(n),L=y(o),R=y(i),P=y(c),A=y(l),j=u;(n&&j(new n(new ArrayBuffer(1)))!=w||o&&j(new o)!=m||i&&j(i.resolve())!=h||c&&j(new c)!=x||l&&j(new l)!=g)&&(j=a(function(D){var I=u(D),V=I==T?D.constructor:void 0,E=V?y(V):"";if(E)switch(E){case _:return w;case L:return m;case R:return h;case P:return x;case A:return g}return I},"getTag")),t.exports=j}),Ra=f((r,t)=>{var n=Ct(),o=Mt(),i=Ja(),c=Sa(),l=Ia(),u=ne(),y=Vt(),m=Dt(),T=1,h="[object Arguments]",x="[object Array]",g="[object Object]",w=Object.prototype,_=w.hasOwnProperty;function L(R,P,A,j,D,I){var V=u(R),E=u(P),k=V?x:l(R),N=E?x:l(P);k=k==h?g:k,N=N==h?g:N;var K=k==g,G=N==g,S=k==N;if(S&&y(R)){if(!y(P))return!1;V=!0,K=!1}if(S&&!K)return I||(I=new n),V||m(R)?o(R,P,A,j,D,I):i(R,P,k,A,j,D,I);if(!(A&T)){var Y=K&&_.call(R,"__wrapped__"),M=G&&_.call(P,"__wrapped__");if(Y||M){var J=Y?R.value():R,oe=M?P.value():P;return I||(I=new n),D(J,oe,A,j,I)}}return S?(I||(I=new n),c(R,P,A,j,D,I)):!1}a(L,"baseIsEqualDeep"),t.exports=L}),qt=f((r,t)=>{var n=Ra(),o=be();function i(c,l,u,y,m){return c===l?!0:c==null||l==null||!o(c)&&!o(l)?c!==c&&l!==l:n(c,l,u,y,i,m)}a(i,"baseIsEqual"),t.exports=i}),Fa=f((r,t)=>{var n=Ct(),o=qt(),i=1,c=2;function l(u,y,m,T){var h=m.length,x=h,g=!T;if(u==null)return!x;for(u=Object(u);h--;){var w=m[h];if(g&&w[2]?w[1]!==u[w[0]]:!(w[0]in u))return!1}for(;++h{var n=ze();function o(i){return i===i&&!n(i)}a(o,"isStrictComparable"),t.exports=o}),La=f((r,t)=>{var n=Bt(),o=He();function i(c){for(var l=o(c),u=l.length;u--;){var y=l[u],m=c[y];l[u]=[y,m,n(m)]}return l}a(i,"getMatchData"),t.exports=i}),Gt=f((r,t)=>{function n(o,i){return function(c){return c==null?!1:c[o]===i&&(i!==void 0||o in Object(c))}}a(n,"matchesStrictComparable"),t.exports=n}),Ua=f((r,t)=>{var n=Fa(),o=La(),i=Gt();function c(l){var u=o(l);return u.length==1&&u[0][2]?i(u[0][0],u[0][1]):function(y){return y===l||n(y,l,u)}}a(c,"baseMatches"),t.exports=c}),Ze=f((r,t)=>{var n=ge(),o=be(),i="[object Symbol]";function c(l){return typeof l=="symbol"||o(l)&&n(l)==i}a(c,"isSymbol"),t.exports=c}),et=f((r,t)=>{var n=ne(),o=Ze(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;function l(u,y){if(n(u))return!1;var m=typeof u;return m=="number"||m=="symbol"||m=="boolean"||u==null||o(u)?!0:c.test(u)||!i.test(u)||y!=null&&u in Object(y)}a(l,"isKey"),t.exports=l}),Va=f((r,t)=>{var n=Qe(),o="Expected a function";function i(c,l){if(typeof c!="function"||l!=null&&typeof l!="function")throw new TypeError(o);var u=a(function(){var y=arguments,m=l?l.apply(this,y):y[0],T=u.cache;if(T.has(m))return T.get(m);var h=c.apply(this,y);return u.cache=T.set(m,h)||T,h},"memoized");return u.cache=new(i.Cache||n),u}a(i,"memoize"),i.Cache=n,t.exports=i}),$a=f((r,t)=>{var n=Va(),o=500;function i(c){var l=n(c,function(y){return u.size===o&&u.clear(),y}),u=l.cache;return l}a(i,"memoizeCapped"),t.exports=i}),Da=f((r,t)=>{var n=$a(),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,c=n(function(l){var u=[];return l.charCodeAt(0)===46&&u.push(""),l.replace(o,function(y,m,T,h){u.push(T?h.replace(i,"$1"):m||y)}),u});t.exports=c}),Ka=f((r,t)=>{function n(o,i){for(var c=-1,l=o==null?0:o.length,u=Array(l);++c{var n=Re(),o=Ka(),i=ne(),c=Ze(),l=1/0,u=n?n.prototype:void 0,y=u?u.toString:void 0;function m(T){if(typeof T=="string")return T;if(i(T))return o(T,m)+"";if(c(T))return y?y.call(T):"";var h=T+"";return h=="0"&&1/T==-l?"-0":h}a(m,"baseToString"),t.exports=m}),Ma=f((r,t)=>{var n=Ca();function o(i){return i==null?"":n(i)}a(o,"toString"),t.exports=o}),Yt=f((r,t)=>{var n=ne(),o=et(),i=Da(),c=Ma();function l(u,y){return n(u)?u:o(u,y)?[u]:i(c(u))}a(l,"castPath"),t.exports=l}),$e=f((r,t)=>{var n=Ze(),o=1/0;function i(c){if(typeof c=="string"||n(c))return c;var l=c+"";return l=="0"&&1/c==-o?"-0":l}a(i,"toKey"),t.exports=i}),zt=f((r,t)=>{var n=Yt(),o=$e();function i(c,l){l=n(l,c);for(var u=0,y=l.length;c!=null&&u{var n=zt();function o(i,c,l){var u=i==null?void 0:n(i,c);return u===void 0?l:u}a(o,"get"),t.exports=o}),Ba=f((r,t)=>{function n(o,i){return o!=null&&i in Object(o)}a(n,"baseHasIn"),t.exports=n}),Ga=f((r,t)=>{var n=Yt(),o=Ut(),i=ne(),c=$t(),l=We(),u=$e();function y(m,T,h){T=n(T,m);for(var x=-1,g=T.length,w=!1;++x{var n=Ba(),o=Ga();function i(c,l){return c!=null&&o(c,l,n)}a(i,"hasIn"),t.exports=i}),za=f((r,t)=>{var n=qt(),o=qa(),i=Ya(),c=et(),l=Bt(),u=Gt(),y=$e(),m=1,T=2;function h(x,g){return c(x)&&l(g)?u(y(x),g):function(w){var _=o(w,x);return _===void 0&&_===g?i(w,x):n(g,_,m|T)}}a(h,"baseMatchesProperty"),t.exports=h}),Wa=f((r,t)=>{function n(o){return o}a(n,"identity"),t.exports=n}),Ha=f((r,t)=>{function n(o){return function(i){return i==null?void 0:i[o]}}a(n,"baseProperty"),t.exports=n}),Xa=f((r,t)=>{var n=zt();function o(i){return function(c){return n(c,i)}}a(o,"basePropertyDeep"),t.exports=o}),Qa=f((r,t)=>{var n=Ha(),o=Xa(),i=et(),c=$e();function l(u){return i(u)?n(c(u)):o(u)}a(l,"property"),t.exports=l}),Za=f((r,t)=>{var n=Ua(),o=za(),i=Wa(),c=ne(),l=Qa();function u(y){return typeof y=="function"?y:y==null?i:typeof y=="object"?c(y)?o(y[0],y[1]):n(y):l(y)}a(u,"baseIteratee"),t.exports=u}),eo=f((r,t)=>{var n=jn(),o=qn(),i=Za();function c(l,u){var y={};return u=i(u,3),o(l,function(m,T,h){n(y,T,u(m,T,h))}),y}a(c,"mapValues"),t.exports=c}),to=f((r,t)=>{(function(n,o){typeof r=="object"&&typeof t<"u"?o(r):typeof define=="function"&&define.amd?define(["exports"],o):(n=typeof globalThis<"u"?globalThis:n||self,o(n.jtpp={}))})(r,function(n){function o(e){return e.text!==void 0&&e.text!==""?`'${e.type}' with value '${e.text}'`:`'${e.type}'`}a(o,"tokenToString");let i=class Wt extends Error{constructor(s){super(`No parslet found for token: ${o(s)}`),this.token=s,Object.setPrototypeOf(this,Wt.prototype)}getToken(){return this.token}};a(i,"NoParsletFoundError");let c=i,l=class Ht extends Error{constructor(s){super(`The parsing ended early. The next token was: ${o(s)}`),this.token=s,Object.setPrototypeOf(this,Ht.prototype)}getToken(){return this.token}};a(l,"EarlyEndOfParseError");let u=l,y=class Xt extends Error{constructor(s,p){let d=`Unexpected type: '${s.type}'.`;p!==void 0&&(d+=` Message: ${p}`),super(d),Object.setPrototypeOf(this,Xt.prototype)}};a(y,"UnexpectedTypeError");let m=y;function T(e){return s=>s.startsWith(e)?{type:e,text:e}:null}a(T,"makePunctuationRule");function h(e){let s=0,p,d=e[0],v=!1;if(d!=="'"&&d!=='"')return null;for(;s{let s=w(e);return s==null?null:{type:"Identifier",text:s}},"identifierRule");function P(e){return s=>{if(!s.startsWith(e))return null;let p=s[e.length];return p!==void 0&&g.test(p)?null:{type:e,text:e}}}a(P,"makeKeyWordRule");let A=a(e=>{let s=h(e);return s==null?null:{type:"StringValue",text:s}},"stringValueRule"),j=a(e=>e.length>0?null:{type:"EOF",text:""},"eofRule"),D=a(e=>{let s=L(e);return s===null?null:{type:"Number",text:s}},"numberRule"),I=[j,T("=>"),T("("),T(")"),T("{"),T("}"),T("["),T("]"),T("|"),T("&"),T("<"),T(">"),T(","),T(";"),T("*"),T("?"),T("!"),T("="),T(":"),T("..."),T("."),T("#"),T("~"),T("/"),T("@"),P("undefined"),P("null"),P("function"),P("this"),P("new"),P("module"),P("event"),P("external"),P("typeof"),P("keyof"),P("readonly"),P("import"),P("is"),P("in"),D,R,A],V=/^\s*\n\s*/,E=class Ie{static create(s){let p=this.read(s);s=p.text;let d=this.read(s);return s=d.text,new Ie(s,void 0,p.token,d.token)}constructor(s,p,d,v){this.text="",this.text=s,this.previous=p,this.current=d,this.next=v}static read(s,p=!1){p=p||V.test(s),s=s.trim();for(let d of I){let v=d(s);if(v!==null){let b=Object.assign(Object.assign({},v),{startOfLine:p});return s=s.slice(b.text.length),{text:s,token:b}}}throw new Error("Unexpected Token "+s)}advance(){let s=Ie.read(this.text);return new Ie(s.text,this.current,this.next,s.token)}};a(E,"Lexer");let k=E;function N(e){if(e===void 0)throw new Error("Unexpected undefined");if(e.type==="JsdocTypeKeyValue"||e.type==="JsdocTypeParameterList"||e.type==="JsdocTypeProperty"||e.type==="JsdocTypeReadonlyProperty"||e.type==="JsdocTypeObjectField"||e.type==="JsdocTypeJsdocObjectField"||e.type==="JsdocTypeIndexSignature"||e.type==="JsdocTypeMappedType")throw new m(e);return e}a(N,"assertRootResult");function K(e){return e.type==="JsdocTypeKeyValue"?S(e):N(e)}a(K,"assertPlainKeyValueOrRootResult");function G(e){return e.type==="JsdocTypeName"?e:S(e)}a(G,"assertPlainKeyValueOrNameResult");function S(e){if(e.type!=="JsdocTypeKeyValue")throw new m(e);return e}a(S,"assertPlainKeyValueResult");function Y(e){var s;if(e.type==="JsdocTypeVariadic"){if(((s=e.element)===null||s===void 0?void 0:s.type)==="JsdocTypeName")return e;throw new m(e)}if(e.type!=="JsdocTypeNumber"&&e.type!=="JsdocTypeName")throw new m(e);return e}a(Y,"assertNumberOrVariadicNameResult");function M(e){return e.type==="JsdocTypeIndexSignature"||e.type==="JsdocTypeMappedType"}a(M,"isSquaredProperty");var J;(function(e){e[e.ALL=0]="ALL",e[e.PARAMETER_LIST=1]="PARAMETER_LIST",e[e.OBJECT=2]="OBJECT",e[e.KEY_VALUE=3]="KEY_VALUE",e[e.UNION=4]="UNION",e[e.INTERSECTION=5]="INTERSECTION",e[e.PREFIX=6]="PREFIX",e[e.INFIX=7]="INFIX",e[e.TUPLE=8]="TUPLE",e[e.SYMBOL=9]="SYMBOL",e[e.OPTIONAL=10]="OPTIONAL",e[e.NULLABLE=11]="NULLABLE",e[e.KEY_OF_TYPE_OF=12]="KEY_OF_TYPE_OF",e[e.FUNCTION=13]="FUNCTION",e[e.ARROW=14]="ARROW",e[e.ARRAY_BRACKETS=15]="ARRAY_BRACKETS",e[e.GENERIC=16]="GENERIC",e[e.NAME_PATH=17]="NAME_PATH",e[e.PARENTHESIS=18]="PARENTHESIS",e[e.SPECIAL_TYPES=19]="SPECIAL_TYPES"})(J||(J={}));let oe=class{constructor(s,p,d){this.grammar=s,typeof p=="string"?this._lexer=k.create(p):this._lexer=p,this.baseParser=d}get lexer(){return this._lexer}parse(){let s=this.parseType(J.ALL);if(this.lexer.current.type!=="EOF")throw new u(this.lexer.current);return s}parseType(s){return N(this.parseIntermediateType(s))}parseIntermediateType(s){let p=this.tryParslets(null,s);if(p===null)throw new c(this.lexer.current);return this.parseInfixIntermediateType(p,s)}parseInfixIntermediateType(s,p){let d=this.tryParslets(s,p);for(;d!==null;)s=d,d=this.tryParslets(s,p);return s}tryParslets(s,p){for(let d of this.grammar){let v=d(this,p,s);if(v!==null)return v}return null}consume(s){return Array.isArray(s)||(s=[s]),s.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(s){this._lexer=s.lexer}};a(oe,"Parser");let ee=oe;function Ke(e){return e==="EOF"||e==="|"||e===","||e===")"||e===">"}a(Ke,"isQuestionMarkUnknownType");let Ce=a((e,s,p)=>{let d=e.lexer.current.type,v=e.lexer.next.type;return p==null&&d==="?"&&!Ke(v)||p!=null&&d==="?"?(e.consume("?"),p==null?{type:"JsdocTypeNullable",element:e.parseType(J.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:N(p),meta:{position:"suffix"}}):null},"nullableParslet");function F(e){let s=a((p,d,v)=>{let b=p.lexer.current.type,O=p.lexer.next.type;if(v===null){if("parsePrefix"in e&&e.accept(b,O))return e.parsePrefix(p)}else if("parseInfix"in e&&e.precedence>d&&e.accept(b,O))return e.parseInfix(p,v);return null},"parslet");return Object.defineProperty(s,"name",{value:e.name}),s}a(F,"composeParslet");let xe=F({name:"optionalParslet",accept:a(e=>e==="=","accept"),precedence:J.OPTIONAL,parsePrefix:a(e=>(e.consume("="),{type:"JsdocTypeOptional",element:e.parseType(J.OPTIONAL),meta:{position:"prefix"}}),"parsePrefix"),parseInfix:a((e,s)=>(e.consume("="),{type:"JsdocTypeOptional",element:N(s),meta:{position:"suffix"}}),"parseInfix")}),we=F({name:"numberParslet",accept:a(e=>e==="Number","accept"),parsePrefix:a(e=>{let s=parseFloat(e.lexer.current.text);return e.consume("Number"),{type:"JsdocTypeNumber",value:s}},"parsePrefix")}),Yr=F({name:"parenthesisParslet",accept:a(e=>e==="(","accept"),parsePrefix:a(e=>{if(e.consume("("),e.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let s=e.parseIntermediateType(J.ALL);if(!e.consume(")"))throw new Error("Unterminated parenthesis");return s.type==="JsdocTypeParameterList"?s:s.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[s]}:{type:"JsdocTypeParenthesis",element:N(s)}},"parsePrefix")}),zr=F({name:"specialTypesParslet",accept:a((e,s)=>e==="?"&&Ke(s)||e==="null"||e==="undefined"||e==="*","accept"),parsePrefix:a(e=>{if(e.consume("null"))return{type:"JsdocTypeNull"};if(e.consume("undefined"))return{type:"JsdocTypeUndefined"};if(e.consume("*"))return{type:"JsdocTypeAny"};if(e.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+e.lexer.current.text)},"parsePrefix")}),Wr=F({name:"notNullableParslet",accept:a(e=>e==="!","accept"),precedence:J.NULLABLE,parsePrefix:a(e=>(e.consume("!"),{type:"JsdocTypeNotNullable",element:e.parseType(J.NULLABLE),meta:{position:"prefix"}}),"parsePrefix"),parseInfix:a((e,s)=>(e.consume("!"),{type:"JsdocTypeNotNullable",element:N(s),meta:{position:"suffix"}}),"parseInfix")});function dt({allowTrailingComma:e}){return F({name:"parameterListParslet",accept:a(s=>s===",","accept"),precedence:J.PARAMETER_LIST,parseInfix:a((s,p)=>{let d=[K(p)];s.consume(",");do try{let v=s.parseIntermediateType(J.PARAMETER_LIST);d.push(K(v))}catch(v){if(e&&v instanceof c)break;throw v}while(s.consume(","));if(d.length>0&&d.slice(0,-1).some(v=>v.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:d}},"parseInfix")})}a(dt,"createParameterListParslet");let Hr=F({name:"genericParslet",accept:a((e,s)=>e==="<"||e==="."&&s==="<","accept"),precedence:J.GENERIC,parseInfix:a((e,s)=>{let p=e.consume(".");e.consume("<");let d=[];do d.push(e.parseType(J.PARAMETER_LIST));while(e.consume(","));if(!e.consume(">"))throw new Error("Unterminated generic parameter list");return{type:"JsdocTypeGeneric",left:N(s),elements:d,meta:{brackets:"angle",dot:p}}},"parseInfix")}),Xr=F({name:"unionParslet",accept:a(e=>e==="|","accept"),precedence:J.UNION,parseInfix:a((e,s)=>{e.consume("|");let p=[];do p.push(e.parseType(J.UNION));while(e.consume("|"));return{type:"JsdocTypeUnion",elements:[N(s),...p]}},"parseInfix")}),Me=[Ce,xe,we,Yr,zr,Wr,dt({allowTrailingComma:!0}),Hr,Xr,xe];function le({allowSquareBracketsOnAnyType:e,allowJsdocNamePaths:s,pathGrammar:p}){return a(function(d,v,b){if(b==null||v>=J.NAME_PATH)return null;let O=d.lexer.current.type,U=d.lexer.next.type;if(!(O==="."&&U!=="<"||O==="["&&(e||b.type==="JsdocTypeName")||s&&(O==="~"||O==="#")))return null;let $,q=!1;d.consume(".")?$="property":d.consume("[")?($="property-brackets",q=!0):d.consume("~")?$="inner":(d.consume("#"),$="instance");let Q=p!==null?new ee(p,d.lexer,d):d,z=Q.parseIntermediateType(J.NAME_PATH);d.acceptLexerState(Q);let me;switch(z.type){case"JsdocTypeName":me={type:"JsdocTypeProperty",value:z.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":me={type:"JsdocTypeProperty",value:z.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":me={type:"JsdocTypeProperty",value:z.value,meta:{quote:z.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(z.specialType==="event")me=z;else throw new m(z,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new m(z,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(q&&!d.consume("]")){let jt=d.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${jt.type}' with text '${jt.text}'`)}return{type:"JsdocTypeNamePath",left:N(b),right:me,pathType:$}},"namePathParslet")}a(le,"createNamePathParslet");function W({allowedAdditionalTokens:e}){return F({name:"nameParslet",accept:a(s=>s==="Identifier"||s==="this"||s==="new"||e.includes(s),"accept"),parsePrefix:a(s=>{let{type:p,text:d}=s.lexer.current;return s.consume(p),{type:"JsdocTypeName",value:d}},"parsePrefix")})}a(W,"createNameParslet");let ue=F({name:"stringValueParslet",accept:a(e=>e==="StringValue","accept"),parsePrefix:a(e=>{let s=e.lexer.current.text;return e.consume("StringValue"),{type:"JsdocTypeStringValue",value:s.slice(1,-1),meta:{quote:s[0]==="'"?"single":"double"}}},"parsePrefix")});function ye({pathGrammar:e,allowedTypes:s}){return F({name:"specialNamePathParslet",accept:a(p=>s.includes(p),"accept"),parsePrefix:a(p=>{let d=p.lexer.current.type;if(p.consume(d),!p.consume(":"))return{type:"JsdocTypeName",value:d};let v,b=p.lexer.current;if(p.consume("StringValue"))v={type:"JsdocTypeSpecialNamePath",value:b.text.slice(1,-1),specialType:d,meta:{quote:b.text[0]==="'"?"single":"double"}};else{let $="",q=["Identifier","@","/"];for(;q.some(Q=>p.consume(Q));)$+=b.text,b=p.lexer.current;v={type:"JsdocTypeSpecialNamePath",value:$,specialType:d,meta:{quote:void 0}}}let O=new ee(e,p.lexer,p),U=O.parseInfixIntermediateType(v,J.ALL);return p.acceptLexerState(O),N(U)},"parsePrefix")})}a(ye,"createSpecialNamePathParslet");let mt=[W({allowedAdditionalTokens:["external","module"]}),ue,we,le({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],ce=[...mt,ye({allowedTypes:["event"],pathGrammar:mt})];function Pe(e){let s;if(e.type==="JsdocTypeParameterList")s=e.elements;else if(e.type==="JsdocTypeParenthesis")s=[e.element];else throw new m(e);return s.map(p=>K(p))}a(Pe,"getParameters");function ft(e){let s=Pe(e);if(s.some(p=>p.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return s}a(ft,"getUnnamedParameters");function Oe({allowNamedParameters:e,allowNoReturnType:s,allowWithoutParenthesis:p,allowNewAsFunctionKeyword:d}){return F({name:"functionParslet",accept:a((v,b)=>v==="function"||d&&v==="new"&&b==="(","accept"),parsePrefix:a(v=>{let b=v.consume("new");v.consume("function");let O=v.lexer.current.type==="(";if(!O){if(!p)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let U={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:b,parenthesis:O},$=v.parseIntermediateType(J.FUNCTION);if(e===void 0)U.parameters=ft($);else{if(b&&$.type==="JsdocTypeFunction"&&$.arrow)return U=$,U.constructor=!0,U;U.parameters=Pe($);for(let q of U.parameters)if(q.type==="JsdocTypeKeyValue"&&!e.includes(q.key))throw new Error(`only allowed named parameters are ${e.join(", ")} but got ${q.type}`)}if(v.consume(":"))U.returnType=v.parseType(J.PREFIX);else if(!s)throw new Error("function is missing return type");return U},"parsePrefix")})}a(Oe,"createFunctionParslet");function Ne({allowPostfix:e,allowEnclosingBrackets:s}){return F({name:"variadicParslet",accept:a(p=>p==="...","accept"),precedence:J.PREFIX,parsePrefix:a(p=>{p.consume("...");let d=s&&p.consume("[");try{let v=p.parseType(J.PREFIX);if(d&&!p.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:N(v),meta:{position:"prefix",squareBrackets:d}}}catch(v){if(v instanceof c){if(d)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw v}},"parsePrefix"),parseInfix:e?(p,d)=>(p.consume("..."),{type:"JsdocTypeVariadic",element:N(d),meta:{position:"suffix",squareBrackets:!1}}):void 0})}a(Ne,"createVariadicParslet");let Tt=F({name:"symbolParslet",accept:a(e=>e==="(","accept"),precedence:J.SYMBOL,parseInfix:a((e,s)=>{if(s.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");e.consume("(");let p={type:"JsdocTypeSymbol",value:s.value};if(!e.consume(")")){let d=e.parseIntermediateType(J.SYMBOL);if(p.element=Y(d),!e.consume(")"))throw new Error("Symbol does not end after value")}return p},"parseInfix")}),vt=F({name:"arrayBracketsParslet",precedence:J.ARRAY_BRACKETS,accept:a((e,s)=>e==="["&&s==="]","accept"),parseInfix:a((e,s)=>(e.consume("["),e.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[N(s)],meta:{brackets:"square",dot:!1}}),"parseInfix")});function _e({objectFieldGrammar:e,allowKeyTypes:s}){return F({name:"objectParslet",accept:a(p=>p==="{","accept"),parsePrefix:a(p=>{p.consume("{");let d={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!p.consume("}")){let v,b=new ee(e,p.lexer,p);for(;;){b.acceptLexerState(p);let O=b.parseIntermediateType(J.OBJECT);p.acceptLexerState(b),O===void 0&&s&&(O=p.parseIntermediateType(J.OBJECT));let U=!1;if(O.type==="JsdocTypeNullable"&&(U=!0,O=O.element),O.type==="JsdocTypeNumber"||O.type==="JsdocTypeName"||O.type==="JsdocTypeStringValue"){let $;O.type==="JsdocTypeStringValue"&&($=O.meta.quote),d.elements.push({type:"JsdocTypeObjectField",key:O.value.toString(),right:void 0,optional:U,readonly:!1,meta:{quote:$}})}else if(O.type==="JsdocTypeObjectField"||O.type==="JsdocTypeJsdocObjectField")d.elements.push(O);else throw new m(O);if(p.lexer.current.startOfLine)v="linebreak";else if(p.consume(","))v="comma";else if(p.consume(";"))v="semicolon";else break;if(p.lexer.current.type==="}")break}if(d.meta.separator=v??"comma",!p.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return d},"parsePrefix")})}a(_e,"createObjectParslet");function Se({allowSquaredProperties:e,allowKeyTypes:s,allowReadonly:p,allowOptional:d}){return F({name:"objectFieldParslet",precedence:J.KEY_VALUE,accept:a(v=>v===":","accept"),parseInfix:a((v,b)=>{var O;let U=!1,$=!1;d&&b.type==="JsdocTypeNullable"&&(U=!0,b=b.element),p&&b.type==="JsdocTypeReadonlyProperty"&&($=!0,b=b.element);let q=(O=v.baseParser)!==null&&O!==void 0?O:v;if(q.acceptLexerState(v),b.type==="JsdocTypeNumber"||b.type==="JsdocTypeName"||b.type==="JsdocTypeStringValue"||M(b)){if(M(b)&&!e)throw new m(b);q.consume(":");let Q;b.type==="JsdocTypeStringValue"&&(Q=b.meta.quote);let z=q.parseType(J.KEY_VALUE);return v.acceptLexerState(q),{type:"JsdocTypeObjectField",key:M(b)?b:b.value.toString(),right:z,optional:U,readonly:$,meta:{quote:Q}}}else{if(!s)throw new m(b);q.consume(":");let Q=q.parseType(J.KEY_VALUE);return v.acceptLexerState(q),{type:"JsdocTypeJsdocObjectField",left:N(b),right:Q}}},"parseInfix")})}a(Se,"createObjectFieldParslet");function je({allowOptional:e,allowVariadic:s}){return F({name:"keyValueParslet",precedence:J.KEY_VALUE,accept:a(p=>p===":","accept"),parseInfix:a((p,d)=>{let v=!1,b=!1;if(e&&d.type==="JsdocTypeNullable"&&(v=!0,d=d.element),s&&d.type==="JsdocTypeVariadic"&&d.element!==void 0&&(b=!0,d=d.element),d.type!=="JsdocTypeName")throw new m(d);p.consume(":");let O=p.parseType(J.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:d.value,right:O,optional:v,variadic:b}},"parseInfix")})}a(je,"createKeyValueParslet");let ht=[...Me,Oe({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),ue,ye({allowedTypes:["module","external","event"],pathGrammar:ce}),Ne({allowEnclosingBrackets:!0,allowPostfix:!0}),W({allowedAdditionalTokens:["keyof"]}),Tt,vt,le({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ce})],Qr=[...ht,_e({objectFieldGrammar:[W({allowedAdditionalTokens:["module","in"]}),Se({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...ht],allowKeyTypes:!0}),je({allowOptional:!0,allowVariadic:!0})],gt=F({name:"typeOfParslet",accept:a(e=>e==="typeof","accept"),parsePrefix:a(e=>(e.consume("typeof"),{type:"JsdocTypeTypeof",element:N(e.parseType(J.KEY_OF_TYPE_OF))}),"parsePrefix")}),Zr=[W({allowedAdditionalTokens:["module","keyof","event","external","in"]}),Ce,xe,ue,we,Se({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],en=[...Me,_e({allowKeyTypes:!1,objectFieldGrammar:Zr}),W({allowedAdditionalTokens:["event","external","in"]}),gt,Oe({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Ne({allowEnclosingBrackets:!1,allowPostfix:!1}),W({allowedAdditionalTokens:["keyof"]}),ye({allowedTypes:["module"],pathGrammar:ce}),le({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ce}),je({allowOptional:!1,allowVariadic:!1}),Tt];function bt({allowQuestionMark:e}){return F({name:"tupleParslet",accept:a(s=>s==="[","accept"),parsePrefix:a(s=>{s.consume("[");let p={type:"JsdocTypeTuple",elements:[]};if(s.consume("]"))return p;let d=s.parseIntermediateType(J.ALL);if(d.type==="JsdocTypeParameterList"?d.elements[0].type==="JsdocTypeKeyValue"?p.elements=d.elements.map(S):p.elements=d.elements.map(N):d.type==="JsdocTypeKeyValue"?p.elements=[S(d)]:p.elements=[N(d)],!s.consume("]"))throw new Error("Unterminated '['");if(!e&&p.elements.some(v=>v.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return p},"parsePrefix")})}a(bt,"createTupleParslet");let tn=F({name:"keyOfParslet",accept:a(e=>e==="keyof","accept"),parsePrefix:a(e=>(e.consume("keyof"),{type:"JsdocTypeKeyof",element:N(e.parseType(J.KEY_OF_TYPE_OF))}),"parsePrefix")}),rn=F({name:"importParslet",accept:a(e=>e==="import","accept"),parsePrefix:a(e=>{if(e.consume("import"),!e.consume("("))throw new Error("Missing parenthesis after import keyword");let s=e.parseType(J.PREFIX);if(s.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!e.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:s}},"parsePrefix")}),nn=F({name:"readonlyPropertyParslet",accept:a(e=>e==="readonly","accept"),parsePrefix:a(e=>(e.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:e.parseType(J.KEY_VALUE)}),"parsePrefix")}),an=F({name:"arrowFunctionParslet",precedence:J.ARROW,accept:a(e=>e==="=>","accept"),parseInfix:a((e,s)=>(e.consume("=>"),{type:"JsdocTypeFunction",parameters:Pe(s).map(G),arrow:!0,constructor:!1,parenthesis:!0,returnType:e.parseType(J.OBJECT)}),"parseInfix")}),on=F({name:"intersectionParslet",accept:a(e=>e==="&","accept"),precedence:J.INTERSECTION,parseInfix:a((e,s)=>{e.consume("&");let p=[];do p.push(e.parseType(J.INTERSECTION));while(e.consume("&"));return{type:"JsdocTypeIntersection",elements:[N(s),...p]}},"parseInfix")}),sn=F({name:"predicateParslet",precedence:J.INFIX,accept:a(e=>e==="is","accept"),parseInfix:a((e,s)=>{if(s.type!=="JsdocTypeName")throw new m(s,"A typescript predicate always has to have a name on the left side.");return e.consume("is"),{type:"JsdocTypePredicate",left:s,right:N(e.parseIntermediateType(J.INFIX))}},"parseInfix")}),cn=F({name:"objectSquareBracketPropertyParslet",accept:a(e=>e==="[","accept"),parsePrefix:a(e=>{if(e.baseParser===void 0)throw new Error("Only allowed inside object grammar");e.consume("[");let s=e.lexer.current.text;e.consume("Identifier");let p;if(e.consume(":")){let d=e.baseParser;d.acceptLexerState(e),p={type:"JsdocTypeIndexSignature",key:s,right:d.parseType(J.ARRAY_BRACKETS)},e.acceptLexerState(d)}else if(e.consume("in")){let d=e.baseParser;d.acceptLexerState(e),p={type:"JsdocTypeMappedType",key:s,right:d.parseType(J.ARRAY_BRACKETS)},e.acceptLexerState(d)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!e.consume("]"))throw new Error("Unterminated square brackets");return p},"parsePrefix")}),pn=[nn,W({allowedAdditionalTokens:["module","event","keyof","event","external","in"]}),Ce,xe,ue,we,Se({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),cn],ln=[...Me,_e({allowKeyTypes:!1,objectFieldGrammar:pn}),gt,tn,rn,ue,Oe({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),bt({allowQuestionMark:!1}),Ne({allowEnclosingBrackets:!1,allowPostfix:!1}),W({allowedAdditionalTokens:["event","external","in"]}),ye({allowedTypes:["module"],pathGrammar:ce}),vt,an,le({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:ce}),on,sn,je({allowVariadic:!0,allowOptional:!0})];function qe(e,s){switch(s){case"closure":return new ee(en,e).parse();case"jsdoc":return new ee(Qr,e).parse();case"typescript":return new ee(ln,e).parse()}}a(qe,"parse");function Jt(e,s=["typescript","closure","jsdoc"]){let p;for(let d of s)try{return qe(e,d)}catch(v){p=v}throw p}a(Jt,"tryParse");function pe(e,s){let p=e[s.type];if(p===void 0)throw new Error(`In this set of transform rules exists no rule for type ${s.type}.`);return p(s,d=>pe(e,d))}a(pe,"transform");function B(e){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}a(B,"notAvailableTransform");function Be(e){let s={params:[]};for(let p of e.parameters)p.type==="JsdocTypeKeyValue"?p.key==="this"?s.this=p.right:p.key==="new"?s.new=p.right:s.params.push(p):s.params.push(p);return s}a(Be,"extractSpecialParams");function de(e,s,p){return e==="prefix"?p+s:s+p}a(de,"applyPosition");function H(e,s){switch(s){case"double":return`"${e}"`;case"single":return`'${e}'`;case void 0:return e}}a(H,"quote");function Ge(){return{JsdocTypeParenthesis:a((e,s)=>`(${e.element!==void 0?s(e.element):""})`,"JsdocTypeParenthesis"),JsdocTypeKeyof:a((e,s)=>`keyof ${s(e.element)}`,"JsdocTypeKeyof"),JsdocTypeFunction:a((e,s)=>{if(e.arrow){if(e.returnType===void 0)throw new Error("Arrow function needs a return type.");let p=`(${e.parameters.map(s).join(", ")}) => ${s(e.returnType)}`;return e.constructor&&(p="new "+p),p}else{let p=e.constructor?"new":"function";return e.parenthesis&&(p+=`(${e.parameters.map(s).join(", ")})`,e.returnType!==void 0&&(p+=`: ${s(e.returnType)}`)),p}},"JsdocTypeFunction"),JsdocTypeName:a(e=>e.value,"JsdocTypeName"),JsdocTypeTuple:a((e,s)=>`[${e.elements.map(s).join(", ")}]`,"JsdocTypeTuple"),JsdocTypeVariadic:a((e,s)=>e.meta.position===void 0?"...":de(e.meta.position,s(e.element),"..."),"JsdocTypeVariadic"),JsdocTypeNamePath:a((e,s)=>{let p=s(e.left),d=s(e.right);switch(e.pathType){case"inner":return`${p}~${d}`;case"instance":return`${p}#${d}`;case"property":return`${p}.${d}`;case"property-brackets":return`${p}[${d}]`}},"JsdocTypeNamePath"),JsdocTypeStringValue:a(e=>H(e.value,e.meta.quote),"JsdocTypeStringValue"),JsdocTypeAny:a(()=>"*","JsdocTypeAny"),JsdocTypeGeneric:a((e,s)=>{if(e.meta.brackets==="square"){let p=e.elements[0],d=s(p);return p.type==="JsdocTypeUnion"||p.type==="JsdocTypeIntersection"?`(${d})[]`:`${d}[]`}else return`${s(e.left)}${e.meta.dot?".":""}<${e.elements.map(s).join(", ")}>`},"JsdocTypeGeneric"),JsdocTypeImport:a((e,s)=>`import(${s(e.element)})`,"JsdocTypeImport"),JsdocTypeObjectField:a((e,s)=>{let p="";return e.readonly&&(p+="readonly "),typeof e.key=="string"?p+=H(e.key,e.meta.quote):p+=s(e.key),e.optional&&(p+="?"),e.right===void 0?p:p+`: ${s(e.right)}`},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:a((e,s)=>`${s(e.left)}: ${s(e.right)}`,"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:a((e,s)=>{let p=e.key;return e.optional&&(p+="?"),e.variadic&&(p="..."+p),e.right===void 0?p:p+`: ${s(e.right)}`},"JsdocTypeKeyValue"),JsdocTypeSpecialNamePath:a(e=>`${e.specialType}:${H(e.value,e.meta.quote)}`,"JsdocTypeSpecialNamePath"),JsdocTypeNotNullable:a((e,s)=>de(e.meta.position,s(e.element),"!"),"JsdocTypeNotNullable"),JsdocTypeNull:a(()=>"null","JsdocTypeNull"),JsdocTypeNullable:a((e,s)=>de(e.meta.position,s(e.element),"?"),"JsdocTypeNullable"),JsdocTypeNumber:a(e=>e.value.toString(),"JsdocTypeNumber"),JsdocTypeObject:a((e,s)=>`{${e.elements.map(s).join((e.meta.separator==="comma"?",":";")+" ")}}`,"JsdocTypeObject"),JsdocTypeOptional:a((e,s)=>de(e.meta.position,s(e.element),"="),"JsdocTypeOptional"),JsdocTypeSymbol:a((e,s)=>`${e.value}(${e.element!==void 0?s(e.element):""})`,"JsdocTypeSymbol"),JsdocTypeTypeof:a((e,s)=>`typeof ${s(e.element)}`,"JsdocTypeTypeof"),JsdocTypeUndefined:a(()=>"undefined","JsdocTypeUndefined"),JsdocTypeUnion:a((e,s)=>e.elements.map(s).join(" | "),"JsdocTypeUnion"),JsdocTypeUnknown:a(()=>"?","JsdocTypeUnknown"),JsdocTypeIntersection:a((e,s)=>e.elements.map(s).join(" & "),"JsdocTypeIntersection"),JsdocTypeProperty:a(e=>H(e.value,e.meta.quote),"JsdocTypeProperty"),JsdocTypePredicate:a((e,s)=>`${s(e.left)} is ${s(e.right)}`,"JsdocTypePredicate"),JsdocTypeIndexSignature:a((e,s)=>`[${e.key}: ${s(e.right)}]`,"JsdocTypeIndexSignature"),JsdocTypeMappedType:a((e,s)=>`[${e.key} in ${s(e.right)}]`,"JsdocTypeMappedType")}}a(Ge,"stringifyRules");let un=Ge();function xt(e){return pe(un,e)}a(xt,"stringify");let yn=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function X(e){let s={type:"NameExpression",name:e};return yn.includes(e)&&(s.reservedWord=!0),s}a(X,"makeName");let dn={JsdocTypeOptional:a((e,s)=>{let p=s(e.element);return p.optional=!0,p},"JsdocTypeOptional"),JsdocTypeNullable:a((e,s)=>{let p=s(e.element);return p.nullable=!0,p},"JsdocTypeNullable"),JsdocTypeNotNullable:a((e,s)=>{let p=s(e.element);return p.nullable=!1,p},"JsdocTypeNotNullable"),JsdocTypeVariadic:a((e,s)=>{if(e.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let p=s(e.element);return p.repeatable=!0,p},"JsdocTypeVariadic"),JsdocTypeAny:a(()=>({type:"AllLiteral"}),"JsdocTypeAny"),JsdocTypeNull:a(()=>({type:"NullLiteral"}),"JsdocTypeNull"),JsdocTypeStringValue:a(e=>X(H(e.value,e.meta.quote)),"JsdocTypeStringValue"),JsdocTypeUndefined:a(()=>({type:"UndefinedLiteral"}),"JsdocTypeUndefined"),JsdocTypeUnknown:a(()=>({type:"UnknownLiteral"}),"JsdocTypeUnknown"),JsdocTypeFunction:a((e,s)=>{let p=Be(e),d={type:"FunctionType",params:p.params.map(s)};return p.this!==void 0&&(d.this=s(p.this)),p.new!==void 0&&(d.new=s(p.new)),e.returnType!==void 0&&(d.result=s(e.returnType)),d},"JsdocTypeFunction"),JsdocTypeGeneric:a((e,s)=>({type:"TypeApplication",applications:e.elements.map(p=>s(p)),expression:s(e.left)}),"JsdocTypeGeneric"),JsdocTypeSpecialNamePath:a(e=>X(e.specialType+":"+H(e.value,e.meta.quote)),"JsdocTypeSpecialNamePath"),JsdocTypeName:a(e=>e.value!=="function"?X(e.value):{type:"FunctionType",params:[]},"JsdocTypeName"),JsdocTypeNumber:a(e=>X(e.value.toString()),"JsdocTypeNumber"),JsdocTypeObject:a((e,s)=>{let p={type:"RecordType",fields:[]};for(let d of e.elements)d.type!=="JsdocTypeObjectField"&&d.type!=="JsdocTypeJsdocObjectField"?p.fields.push({type:"FieldType",key:s(d),value:void 0}):p.fields.push(s(d));return p},"JsdocTypeObject"),JsdocTypeObjectField:a((e,s)=>{if(typeof e.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:X(H(e.key,e.meta.quote)),value:e.right===void 0?void 0:s(e.right)}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:a((e,s)=>({type:"FieldType",key:s(e.left),value:s(e.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeUnion:a((e,s)=>({type:"TypeUnion",elements:e.elements.map(p=>s(p))}),"JsdocTypeUnion"),JsdocTypeKeyValue:a((e,s)=>({type:"FieldType",key:X(e.key),value:e.right===void 0?void 0:s(e.right)}),"JsdocTypeKeyValue"),JsdocTypeNamePath:a((e,s)=>{let p=s(e.left),d;e.right.type==="JsdocTypeSpecialNamePath"?d=s(e.right).name:d=H(e.right.value,e.right.meta.quote);let v=e.pathType==="inner"?"~":e.pathType==="instance"?"#":".";return X(`${p.name}${v}${d}`)},"JsdocTypeNamePath"),JsdocTypeSymbol:a(e=>{let s="",p=e.element,d=!1;return(p==null?void 0:p.type)==="JsdocTypeVariadic"&&(p.meta.position==="prefix"?s="...":d=!0,p=p.element),(p==null?void 0:p.type)==="JsdocTypeName"?s+=p.value:(p==null?void 0:p.type)==="JsdocTypeNumber"&&(s+=p.value.toString()),d&&(s+="..."),X(`${e.value}(${s})`)},"JsdocTypeSymbol"),JsdocTypeParenthesis:a((e,s)=>s(N(e.element)),"JsdocTypeParenthesis"),JsdocTypeMappedType:B,JsdocTypeIndexSignature:B,JsdocTypeImport:B,JsdocTypeKeyof:B,JsdocTypeTuple:B,JsdocTypeTypeof:B,JsdocTypeIntersection:B,JsdocTypeProperty:B,JsdocTypePredicate:B};function wt(e){return pe(dn,e)}a(wt,"catharsisTransform");function te(e){switch(e){case void 0:return"none";case"single":return"single";case"double":return"double"}}a(te,"getQuoteStyle");function Pt(e){switch(e){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}a(Pt,"getMemberType");function Ee(e,s){return s.length===2?{type:e,left:s[0],right:s[1]}:{type:e,left:s[0],right:Ee(e,s.slice(1))}}a(Ee,"nestResults");let mn={JsdocTypeOptional:a((e,s)=>({type:"OPTIONAL",value:s(e.element),meta:{syntax:e.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),"JsdocTypeOptional"),JsdocTypeNullable:a((e,s)=>({type:"NULLABLE",value:s(e.element),meta:{syntax:e.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),"JsdocTypeNullable"),JsdocTypeNotNullable:a((e,s)=>({type:"NOT_NULLABLE",value:s(e.element),meta:{syntax:e.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),"JsdocTypeNotNullable"),JsdocTypeVariadic:a((e,s)=>{let p={type:"VARIADIC",meta:{syntax:e.meta.position==="prefix"?"PREFIX_DOTS":e.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return e.element!==void 0&&(p.value=s(e.element)),p},"JsdocTypeVariadic"),JsdocTypeName:a(e=>({type:"NAME",name:e.value}),"JsdocTypeName"),JsdocTypeTypeof:a((e,s)=>({type:"TYPE_QUERY",name:s(e.element)}),"JsdocTypeTypeof"),JsdocTypeTuple:a((e,s)=>({type:"TUPLE",entries:e.elements.map(s)}),"JsdocTypeTuple"),JsdocTypeKeyof:a((e,s)=>({type:"KEY_QUERY",value:s(e.element)}),"JsdocTypeKeyof"),JsdocTypeImport:a(e=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:te(e.element.meta.quote),string:e.element.value}}),"JsdocTypeImport"),JsdocTypeUndefined:a(()=>({type:"NAME",name:"undefined"}),"JsdocTypeUndefined"),JsdocTypeAny:a(()=>({type:"ANY"}),"JsdocTypeAny"),JsdocTypeFunction:a((e,s)=>{let p=Be(e),d={type:e.arrow?"ARROW":"FUNCTION",params:p.params.map(v=>{if(v.type==="JsdocTypeKeyValue"){if(v.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:v.key,typeName:s(v.right)}}else return s(v)}),new:null,returns:null};return p.this!==void 0?d.this=s(p.this):e.arrow||(d.this=null),p.new!==void 0&&(d.new=s(p.new)),e.returnType!==void 0&&(d.returns=s(e.returnType)),d},"JsdocTypeFunction"),JsdocTypeGeneric:a((e,s)=>{let p={type:"GENERIC",subject:s(e.left),objects:e.elements.map(s),meta:{syntax:e.meta.brackets==="square"?"SQUARE_BRACKET":e.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return e.meta.brackets==="square"&&e.elements[0].type==="JsdocTypeFunction"&&!e.elements[0].parenthesis&&(p.objects[0]={type:"NAME",name:"function"}),p},"JsdocTypeGeneric"),JsdocTypeObjectField:a((e,s)=>{if(typeof e.key!="string")throw new Error("Index signatures and mapped types are not supported");if(e.right===void 0)return{type:"RECORD_ENTRY",key:e.key,quoteStyle:te(e.meta.quote),value:null,readonly:!1};let p=s(e.right);return e.optional&&(p={type:"OPTIONAL",value:p,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:e.key.toString(),quoteStyle:te(e.meta.quote),value:p,readonly:!1}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:a(()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:a((e,s)=>{if(e.right===void 0)return{type:"RECORD_ENTRY",key:e.key,quoteStyle:"none",value:null,readonly:!1};let p=s(e.right);return e.optional&&(p={type:"OPTIONAL",value:p,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:e.key,quoteStyle:"none",value:p,readonly:!1}},"JsdocTypeKeyValue"),JsdocTypeObject:a((e,s)=>{let p=[];for(let d of e.elements)(d.type==="JsdocTypeObjectField"||d.type==="JsdocTypeJsdocObjectField")&&p.push(s(d));return{type:"RECORD",entries:p}},"JsdocTypeObject"),JsdocTypeSpecialNamePath:a(e=>{if(e.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${e.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:te(e.meta.quote),path:e.value}}},"JsdocTypeSpecialNamePath"),JsdocTypeNamePath:a((e,s)=>{let p=!1,d,v;e.right.type==="JsdocTypeSpecialNamePath"&&e.right.specialType==="event"?(p=!0,d=e.right.value,v=te(e.right.meta.quote)):(d=e.right.value,v=te(e.right.meta.quote));let b={type:Pt(e.pathType),owner:s(e.left),name:d,quoteStyle:v,hasEventPrefix:p};if(b.owner.type==="MODULE"){let O=b.owner;return b.owner=b.owner.value,O.value=b,O}else return b},"JsdocTypeNamePath"),JsdocTypeUnion:a((e,s)=>Ee("UNION",e.elements.map(s)),"JsdocTypeUnion"),JsdocTypeParenthesis:a((e,s)=>({type:"PARENTHESIS",value:s(N(e.element))}),"JsdocTypeParenthesis"),JsdocTypeNull:a(()=>({type:"NAME",name:"null"}),"JsdocTypeNull"),JsdocTypeUnknown:a(()=>({type:"UNKNOWN"}),"JsdocTypeUnknown"),JsdocTypeStringValue:a(e=>({type:"STRING_VALUE",quoteStyle:te(e.meta.quote),string:e.value}),"JsdocTypeStringValue"),JsdocTypeIntersection:a((e,s)=>Ee("INTERSECTION",e.elements.map(s)),"JsdocTypeIntersection"),JsdocTypeNumber:a(e=>({type:"NUMBER_VALUE",number:e.value.toString()}),"JsdocTypeNumber"),JsdocTypeSymbol:B,JsdocTypeProperty:B,JsdocTypePredicate:B,JsdocTypeMappedType:B,JsdocTypeIndexSignature:B};function Ot(e){return pe(mn,e)}a(Ot,"jtpTransform");function Nt(){return{JsdocTypeIntersection:a((e,s)=>({type:"JsdocTypeIntersection",elements:e.elements.map(s)}),"JsdocTypeIntersection"),JsdocTypeGeneric:a((e,s)=>({type:"JsdocTypeGeneric",left:s(e.left),elements:e.elements.map(s),meta:{dot:e.meta.dot,brackets:e.meta.brackets}}),"JsdocTypeGeneric"),JsdocTypeNullable:a(e=>e,"JsdocTypeNullable"),JsdocTypeUnion:a((e,s)=>({type:"JsdocTypeUnion",elements:e.elements.map(s)}),"JsdocTypeUnion"),JsdocTypeUnknown:a(e=>e,"JsdocTypeUnknown"),JsdocTypeUndefined:a(e=>e,"JsdocTypeUndefined"),JsdocTypeTypeof:a((e,s)=>({type:"JsdocTypeTypeof",element:s(e.element)}),"JsdocTypeTypeof"),JsdocTypeSymbol:a((e,s)=>{let p={type:"JsdocTypeSymbol",value:e.value};return e.element!==void 0&&(p.element=s(e.element)),p},"JsdocTypeSymbol"),JsdocTypeOptional:a((e,s)=>({type:"JsdocTypeOptional",element:s(e.element),meta:{position:e.meta.position}}),"JsdocTypeOptional"),JsdocTypeObject:a((e,s)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:e.elements.map(s)}),"JsdocTypeObject"),JsdocTypeNumber:a(e=>e,"JsdocTypeNumber"),JsdocTypeNull:a(e=>e,"JsdocTypeNull"),JsdocTypeNotNullable:a((e,s)=>({type:"JsdocTypeNotNullable",element:s(e.element),meta:{position:e.meta.position}}),"JsdocTypeNotNullable"),JsdocTypeSpecialNamePath:a(e=>e,"JsdocTypeSpecialNamePath"),JsdocTypeObjectField:a((e,s)=>({type:"JsdocTypeObjectField",key:e.key,right:e.right===void 0?void 0:s(e.right),optional:e.optional,readonly:e.readonly,meta:e.meta}),"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:a((e,s)=>({type:"JsdocTypeJsdocObjectField",left:s(e.left),right:s(e.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:a((e,s)=>({type:"JsdocTypeKeyValue",key:e.key,right:e.right===void 0?void 0:s(e.right),optional:e.optional,variadic:e.variadic}),"JsdocTypeKeyValue"),JsdocTypeImport:a((e,s)=>({type:"JsdocTypeImport",element:s(e.element)}),"JsdocTypeImport"),JsdocTypeAny:a(e=>e,"JsdocTypeAny"),JsdocTypeStringValue:a(e=>e,"JsdocTypeStringValue"),JsdocTypeNamePath:a(e=>e,"JsdocTypeNamePath"),JsdocTypeVariadic:a((e,s)=>{let p={type:"JsdocTypeVariadic",meta:{position:e.meta.position,squareBrackets:e.meta.squareBrackets}};return e.element!==void 0&&(p.element=s(e.element)),p},"JsdocTypeVariadic"),JsdocTypeTuple:a((e,s)=>({type:"JsdocTypeTuple",elements:e.elements.map(s)}),"JsdocTypeTuple"),JsdocTypeName:a(e=>e,"JsdocTypeName"),JsdocTypeFunction:a((e,s)=>{let p={type:"JsdocTypeFunction",arrow:e.arrow,parameters:e.parameters.map(s),constructor:e.constructor,parenthesis:e.parenthesis};return e.returnType!==void 0&&(p.returnType=s(e.returnType)),p},"JsdocTypeFunction"),JsdocTypeKeyof:a((e,s)=>({type:"JsdocTypeKeyof",element:s(e.element)}),"JsdocTypeKeyof"),JsdocTypeParenthesis:a((e,s)=>({type:"JsdocTypeParenthesis",element:s(e.element)}),"JsdocTypeParenthesis"),JsdocTypeProperty:a(e=>e,"JsdocTypeProperty"),JsdocTypePredicate:a((e,s)=>({type:"JsdocTypePredicate",left:s(e.left),right:s(e.right)}),"JsdocTypePredicate"),JsdocTypeIndexSignature:a((e,s)=>({type:"JsdocTypeIndexSignature",key:e.key,right:s(e.right)}),"JsdocTypeIndexSignature"),JsdocTypeMappedType:a((e,s)=>({type:"JsdocTypeMappedType",key:e.key,right:s(e.right)}),"JsdocTypeMappedType")}}a(Nt,"identityTransformRules");let _t={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"]};function ke(e,s,p,d,v){d==null||d(e,s,p);let b=_t[e.type];for(let O of b){let U=e[O];if(U!==void 0)if(Array.isArray(U))for(let $ of U)ke($,e,O,d,v);else ke(U,e,O,d,v)}v==null||v(e,s,p)}a(ke,"_traverse");function St(e,s,p){ke(e,void 0,void 0,s,p)}a(St,"traverse"),n.catharsisTransform=wt,n.identityTransformRules=Nt,n.jtpTransform=Ot,n.parse=qe,n.stringify=xt,n.stringifyRules=Ge,n.transform=pe,n.traverse=St,n.tryParse=Jt,n.visitorKeys=_t})});const{UnknownArgTypesError:ro}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var Qt=/^['"]|['"]$/g,no=a(r=>r.replace(Qt,""),"trimQuotes"),ao=a(r=>Qt.test(r),"includesQuotes"),Zt=a(r=>{let t=no(r);return ao(r)||Number.isNaN(Number(t))?t:Number(t)},"parseLiteral"),oo=a(r=>{switch(r.type){case"function":return{name:"function"};case"object":let t={};return r.signature.properties.forEach(n=>{t[n.key]=ve(n.value)}),{name:"object",value:t};default:throw new ro({type:r,language:"Typescript"})}},"convertSig"),ve=a(r=>{var i,c,l,u;let{name:t,raw:n}=r,o={};switch(typeof n<"u"&&(o.raw=n),r.name){case"string":case"number":case"symbol":case"boolean":return{...o,name:t};case"Array":return{...o,name:"array",value:r.elements.map(ve)};case"signature":return{...o,...oo(r)};case"union":let y;return(i=r.elements)!=null&&i.every(m=>m.name==="literal")?y={...o,name:"enum",value:(c=r.elements)==null?void 0:c.map(m=>Zt(m.value))}:y={...o,name:t,value:(l=r.elements)==null?void 0:l.map(ve)},y;case"intersection":return{...o,name:t,value:(u=r.elements)==null?void 0:u.map(ve)};default:return{...o,name:"other",value:t}}},"convert");const{UnknownArgTypesError:so}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var io=a(r=>r.name==="literal","isLiteral"),co=a(r=>r.value.replace(/['|"]/g,""),"toEnumOption"),po=a(r=>{switch(r.type){case"function":return{name:"function"};case"object":let t={};return r.signature.properties.forEach(n=>{t[n.key]=he(n.value)}),{name:"object",value:t};default:throw new so({type:r,language:"Flow"})}},"convertSig"),he=a(r=>{var i,c,l,u;let{name:t,raw:n}=r,o={};switch(typeof n<"u"&&(o.raw=n),r.name){case"literal":return{...o,name:"other",value:r.value};case"string":case"number":case"symbol":case"boolean":return{...o,name:t};case"Array":return{...o,name:"array",value:r.elements.map(he)};case"signature":return{...o,...po(r)};case"union":return(i=r.elements)!=null&&i.every(io)?{...o,name:"enum",value:(c=r.elements)==null?void 0:c.map(co)}:{...o,name:t,value:(l=r.elements)==null?void 0:l.map(he)};case"intersection":return{...o,name:t,value:(u=r.elements)==null?void 0:u.map(he)};default:return{...o,name:"other",value:t}}},"convert"),lo=It(eo()),uo=/^\(.*\) => /,Te=a(r=>{let{name:t,raw:n,computed:o,value:i}=r,c={};switch(typeof n<"u"&&(c.raw=n),t){case"enum":{let u=o?i:i.map(y=>Zt(y.value));return{...c,name:t,value:u}}case"string":case"number":case"symbol":return{...c,name:t};case"func":return{...c,name:"function"};case"bool":case"boolean":return{...c,name:"boolean"};case"arrayOf":case"array":return{...c,name:"array",value:i&&Te(i)};case"object":return{...c,name:t};case"objectOf":return{...c,name:t,value:Te(i)};case"shape":case"exact":let l=(0,lo.default)(i,u=>Te(u));return{...c,name:"object",value:l};case"union":return{...c,name:"union",value:i.map(u=>Te(u))};case"instanceOf":case"element":case"elementType":default:{if((t==null?void 0:t.indexOf("|"))>0)try{let m=t.split("|").map(T=>JSON.parse(T));return{...c,name:"enum",value:m}}catch{}let u=i?`${t}(${i})`:t,y=uo.test(t)?"function":"other";return{...c,name:y,value:u}}}},"convert"),tt=a(r=>{let{type:t,tsType:n,flowType:o}=r;try{if(t!=null)return Te(t);if(n!=null)return ve(n);if(o!=null)return he(o)}catch(i){console.error(i)}return null},"convert"),yo=(r=>(r.JAVASCRIPT="JavaScript",r.FLOW="Flow",r.TYPESCRIPT="TypeScript",r.UNKNOWN="Unknown",r))(yo||{}),mo=["null","undefined"];function De(r){return mo.some(t=>t===r)}a(De,"isDefaultValueBlacklisted");var fo=a(r=>{if(!r)return"";if(typeof r=="string")return r;throw new Error(`Description: expected string, got: ${JSON.stringify(r)}`)},"str");function rt(r){return!!r.__docgenInfo}a(rt,"hasDocgen");function er(r){return r!=null&&Object.keys(r).length>0}a(er,"isValidDocgenSection");function tr(r,t){return rt(r)?r.__docgenInfo[t]:null}a(tr,"getDocgenSection");function rr(r){return rt(r)?fo(r.__docgenInfo.description):""}a(rr,"getDocgenDescription");var re;(function(r){r.start="/**",r.nostart="/***",r.delim="*",r.end="*/"})(re=re||(re={}));function nr(r){return/^\s+$/.test(r)}a(nr,"isSpace");function ar(r){let t=r.match(/\r+$/);return t==null?["",r]:[r.slice(-t[0].length),r.slice(0,-t[0].length)]}a(ar,"splitCR");function se(r){let t=r.match(/^\s+/);return t==null?["",r]:[r.slice(0,t[0].length),r.slice(t[0].length)]}a(se,"splitSpace");function or(r){return r.split(/\n/)}a(or,"splitLines");function sr(r={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},r)}a(sr,"seedSpec");function ir(r={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},r)}a(ir,"seedTokens");var To=/^@\S+/;function cr({fence:r="```"}={}){let t=pr(r),n=a((o,i)=>t(o)?!i:i,"toggleFence");return a(function(o){let i=[[]],c=!1;for(let l of o)To.test(l.tokens.description)&&!c?i.push([l]):i[i.length-1].push(l),c=n(l.tokens.description,c);return i},"parseBlock")}a(cr,"getParser");function pr(r){return typeof r=="string"?t=>t.split(r).length%2===0:r}a(pr,"getFencer");function lr({startLine:r=0,markers:t=re}={}){let n=null,o=r;return a(function(i){let c=i,l=ir();if([l.lineEnd,c]=ar(c),[l.start,c]=se(c),n===null&&c.startsWith(t.start)&&!c.startsWith(t.nostart)&&(n=[],l.delimiter=c.slice(0,t.start.length),c=c.slice(t.start.length),[l.postDelimiter,c]=se(c)),n===null)return o++,null;let u=c.trimRight().endsWith(t.end);if(l.delimiter===""&&c.startsWith(t.delim)&&!c.startsWith(t.end)&&(l.delimiter=t.delim,c=c.slice(t.delim.length),[l.postDelimiter,c]=se(c)),u){let y=c.trimRight();l.end=c.slice(y.length-t.end.length),c=y.slice(0,-t.end.length)}if(l.description=c,n.push({number:o,source:i,tokens:l}),o++,u){let y=n.slice();return n=null,y}return null},"parseSource")}a(lr,"getParser");function ur({tokenizers:r}){return a(function(t){var n;let o=sr({source:t});for(let i of r)if(o=i(o),!((n=o.problems[o.problems.length-1])===null||n===void 0)&&n.critical)break;return o},"parseSpec")}a(ur,"getParser");function yr(){return r=>{let{tokens:t}=r.source[0],n=t.description.match(/\s*(@(\S+))(\s*)/);return n===null?(r.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:r.source[0].number,critical:!0}),r):(t.tag=n[1],t.postTag=n[3],t.description=t.description.slice(n[0].length),r.tag=n[2],r)}}a(yr,"tagTokenizer");function dr(r="compact"){let t=mr(r);return n=>{let o=0,i=[];for(let[u,{tokens:y}]of n.source.entries()){let m="";if(u===0&&y.description[0]!=="{")return n;for(let T of y.description)if(T==="{"&&o++,T==="}"&&o--,m+=T,o===0)break;if(i.push([y,m]),o===0)break}if(o!==0)return n.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:n.source[0].number,critical:!0}),n;let c=[],l=i[0][0].postDelimiter.length;for(let[u,[y,m]]of i.entries())y.type=m,u>0&&(y.type=y.postDelimiter.slice(l)+m,y.postDelimiter=y.postDelimiter.slice(0,l)),[y.postType,y.description]=se(y.description.slice(m.length)),c.push(y.type);return c[0]=c[0].slice(1),c[c.length-1]=c[c.length-1].slice(0,-1),n.type=t(c),n}}a(dr,"typeTokenizer");var vo=a(r=>r.trim(),"trim");function mr(r){return r==="compact"?t=>t.map(vo).join(""):r==="preserve"?t=>t.join(` +import"./iframe-AJyGuqY3.js";import{c as Ae,g as fn}from"./_commonjsHelpers-Dq6BK7nx.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="510fa9fd-8a68-4474-afd0-54c1a87027c7",r._sentryDebugIdIdentifier="sentry-dbid-510fa9fd-8a68-4474-afd0-54c1a87027c7")}catch{}})();var Tn=Object.create,Ye=Object.defineProperty,vn=Object.getOwnPropertyDescriptor,hn=Object.getOwnPropertyNames,gn=Object.getPrototypeOf,bn=Object.prototype.hasOwnProperty,a=(r,t)=>Ye(r,"name",{value:t,configurable:!0}),f=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),Jn=(r,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of hn(t))!bn.call(r,i)&&i!==n&&Ye(r,i,{get:()=>t[i],enumerable:!(o=vn(t,i))||o.enumerable});return r},It=(r,t,n)=>(n=r!=null?Tn(gn(r)):{},Jn(Ye(n,"default",{value:r,enumerable:!0}),r)),Rt=f((r,t)=>{var n=typeof global=="object"&&global&&global.Object===Object&&global;t.exports=n}),Z=f((r,t)=>{var n=Rt(),o=typeof self=="object"&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i}),Re=f((r,t)=>{var n=Z(),o=n.Symbol;t.exports=o}),xn=f((r,t)=>{var n=Re(),o=Object.prototype,i=o.hasOwnProperty,c=o.toString,l=n?n.toStringTag:void 0;function u(y){var m=i.call(y,l),T=y[l];try{y[l]=void 0;var h=!0}catch{}var x=c.call(y);return h&&(m?y[l]=T:delete y[l]),x}a(u,"getRawTag"),t.exports=u}),wn=f((r,t)=>{var n=Object.prototype,o=n.toString;function i(c){return o.call(c)}a(i,"objectToString"),t.exports=i}),ge=f((r,t)=>{var n=Re(),o=xn(),i=wn(),c="[object Null]",l="[object Undefined]",u=n?n.toStringTag:void 0;function y(m){return m==null?m===void 0?l:c:u&&u in Object(m)?o(m):i(m)}a(y,"baseGetTag"),t.exports=y}),ze=f((r,t)=>{function n(o){var i=typeof o;return o!=null&&(i=="object"||i=="function")}a(n,"isObject"),t.exports=n}),Ft=f((r,t)=>{var n=ge(),o=ze(),i="[object AsyncFunction]",c="[object Function]",l="[object GeneratorFunction]",u="[object Proxy]";function y(m){if(!o(m))return!1;var T=n(m);return T==c||T==l||T==i||T==u}a(y,"isFunction"),t.exports=y}),Pn=f((r,t)=>{var n=Z(),o=n["__core-js_shared__"];t.exports=o}),On=f((r,t)=>{var n=Pn(),o=function(){var c=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}();function i(c){return!!o&&o in c}a(i,"isMasked"),t.exports=i}),Lt=f((r,t)=>{var n=Function.prototype,o=n.toString;function i(c){if(c!=null){try{return o.call(c)}catch{}try{return c+""}catch{}}return""}a(i,"toSource"),t.exports=i}),Nn=f((r,t)=>{var n=Ft(),o=On(),i=ze(),c=Lt(),l=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,y=Function.prototype,m=Object.prototype,T=y.toString,h=m.hasOwnProperty,x=RegExp("^"+T.call(h).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function g(w){if(!i(w)||o(w))return!1;var _=n(w)?x:u;return _.test(c(w))}a(g,"baseIsNative"),t.exports=g}),_n=f((r,t)=>{function n(o,i){return o==null?void 0:o[i]}a(n,"getValue"),t.exports=n}),ie=f((r,t)=>{var n=Nn(),o=_n();function i(c,l){var u=o(c,l);return n(u)?u:void 0}a(i,"getNative"),t.exports=i}),Sn=f((r,t)=>{var n=ie(),o=function(){try{var i=n(Object,"defineProperty");return i({},"",{}),i}catch{}}();t.exports=o}),jn=f((r,t)=>{var n=Sn();function o(i,c,l){c=="__proto__"&&n?n(i,c,{configurable:!0,enumerable:!0,value:l,writable:!0}):i[c]=l}a(o,"baseAssignValue"),t.exports=o}),En=f((r,t)=>{function n(o){return function(i,c,l){for(var u=-1,y=Object(i),m=l(i),T=m.length;T--;){var h=m[o?T:++u];if(c(y[h],h,y)===!1)break}return i}}a(n,"createBaseFor"),t.exports=n}),kn=f((r,t)=>{var n=En(),o=n();t.exports=o}),An=f((r,t)=>{function n(o,i){for(var c=-1,l=Array(o);++c{function n(o){return o!=null&&typeof o=="object"}a(n,"isObjectLike"),t.exports=n}),In=f((r,t)=>{var n=ge(),o=be(),i="[object Arguments]";function c(l){return o(l)&&n(l)==i}a(c,"baseIsArguments"),t.exports=c}),Ut=f((r,t)=>{var n=In(),o=be(),i=Object.prototype,c=i.hasOwnProperty,l=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(y){return o(y)&&c.call(y,"callee")&&!l.call(y,"callee")};t.exports=u}),ne=f((r,t)=>{var n=Array.isArray;t.exports=n}),Rn=f((r,t)=>{function n(){return!1}a(n,"stubFalse"),t.exports=n}),Vt=f((r,t)=>{var n=Z(),o=Rn(),i=typeof r=="object"&&r&&!r.nodeType&&r,c=i&&typeof t=="object"&&t&&!t.nodeType&&t,l=c&&c.exports===i,u=l?n.Buffer:void 0,y=u?u.isBuffer:void 0,m=y||o;t.exports=m}),$t=f((r,t)=>{var n=9007199254740991,o=/^(?:0|[1-9]\d*)$/;function i(c,l){var u=typeof c;return l=l??n,!!l&&(u=="number"||u!="symbol"&&o.test(c))&&c>-1&&c%1==0&&c{var n=9007199254740991;function o(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=n}a(o,"isLength"),t.exports=o}),Fn=f((r,t)=>{var n=ge(),o=We(),i=be(),c="[object Arguments]",l="[object Array]",u="[object Boolean]",y="[object Date]",m="[object Error]",T="[object Function]",h="[object Map]",x="[object Number]",g="[object Object]",w="[object RegExp]",_="[object Set]",L="[object String]",R="[object WeakMap]",P="[object ArrayBuffer]",A="[object DataView]",j="[object Float32Array]",D="[object Float64Array]",I="[object Int8Array]",V="[object Int16Array]",E="[object Int32Array]",k="[object Uint8Array]",N="[object Uint8ClampedArray]",K="[object Uint16Array]",G="[object Uint32Array]",S={};S[j]=S[D]=S[I]=S[V]=S[E]=S[k]=S[N]=S[K]=S[G]=!0,S[c]=S[l]=S[P]=S[u]=S[A]=S[y]=S[m]=S[T]=S[h]=S[x]=S[g]=S[w]=S[_]=S[L]=S[R]=!1;function Y(M){return i(M)&&o(M.length)&&!!S[n(M)]}a(Y,"baseIsTypedArray"),t.exports=Y}),Ln=f((r,t)=>{function n(o){return function(i){return o(i)}}a(n,"baseUnary"),t.exports=n}),Un=f((r,t)=>{var n=Rt(),o=typeof r=="object"&&r&&!r.nodeType&&r,i=o&&typeof t=="object"&&t&&!t.nodeType&&t,c=i&&i.exports===o,l=c&&n.process,u=function(){try{var y=i&&i.require&&i.require("util").types;return y||l&&l.binding&&l.binding("util")}catch{}}();t.exports=u}),Dt=f((r,t)=>{var n=Fn(),o=Ln(),i=Un(),c=i&&i.isTypedArray,l=c?o(c):n;t.exports=l}),Vn=f((r,t)=>{var n=An(),o=Ut(),i=ne(),c=Vt(),l=$t(),u=Dt(),y=Object.prototype,m=y.hasOwnProperty;function T(h,x){var g=i(h),w=!g&&o(h),_=!g&&!w&&c(h),L=!g&&!w&&!_&&u(h),R=g||w||_||L,P=R?n(h.length,String):[],A=P.length;for(var j in h)(x||m.call(h,j))&&!(R&&(j=="length"||_&&(j=="offset"||j=="parent")||L&&(j=="buffer"||j=="byteLength"||j=="byteOffset")||l(j,A)))&&P.push(j);return P}a(T,"arrayLikeKeys"),t.exports=T}),$n=f((r,t)=>{var n=Object.prototype;function o(i){var c=i&&i.constructor,l=typeof c=="function"&&c.prototype||n;return i===l}a(o,"isPrototype"),t.exports=o}),Dn=f((r,t)=>{function n(o,i){return function(c){return o(i(c))}}a(n,"overArg"),t.exports=n}),Kn=f((r,t)=>{var n=Dn(),o=n(Object.keys,Object);t.exports=o}),Cn=f((r,t)=>{var n=$n(),o=Kn(),i=Object.prototype,c=i.hasOwnProperty;function l(u){if(!n(u))return o(u);var y=[];for(var m in Object(u))c.call(u,m)&&m!="constructor"&&y.push(m);return y}a(l,"baseKeys"),t.exports=l}),Mn=f((r,t)=>{var n=Ft(),o=We();function i(c){return c!=null&&o(c.length)&&!n(c)}a(i,"isArrayLike"),t.exports=i}),He=f((r,t)=>{var n=Vn(),o=Cn(),i=Mn();function c(l){return i(l)?n(l):o(l)}a(c,"keys"),t.exports=c}),qn=f((r,t)=>{var n=kn(),o=He();function i(c,l){return c&&n(c,l,o)}a(i,"baseForOwn"),t.exports=i}),Bn=f((r,t)=>{function n(){this.__data__=[],this.size=0}a(n,"listCacheClear"),t.exports=n}),Kt=f((r,t)=>{function n(o,i){return o===i||o!==o&&i!==i}a(n,"eq"),t.exports=n}),Fe=f((r,t)=>{var n=Kt();function o(i,c){for(var l=i.length;l--;)if(n(i[l][0],c))return l;return-1}a(o,"assocIndexOf"),t.exports=o}),Gn=f((r,t)=>{var n=Fe(),o=Array.prototype,i=o.splice;function c(l){var u=this.__data__,y=n(u,l);if(y<0)return!1;var m=u.length-1;return y==m?u.pop():i.call(u,y,1),--this.size,!0}a(c,"listCacheDelete"),t.exports=c}),Yn=f((r,t)=>{var n=Fe();function o(i){var c=this.__data__,l=n(c,i);return l<0?void 0:c[l][1]}a(o,"listCacheGet"),t.exports=o}),zn=f((r,t)=>{var n=Fe();function o(i){return n(this.__data__,i)>-1}a(o,"listCacheHas"),t.exports=o}),Wn=f((r,t)=>{var n=Fe();function o(i,c){var l=this.__data__,u=n(l,i);return u<0?(++this.size,l.push([i,c])):l[u][1]=c,this}a(o,"listCacheSet"),t.exports=o}),Le=f((r,t)=>{var n=Bn(),o=Gn(),i=Yn(),c=zn(),l=Wn();function u(y){var m=-1,T=y==null?0:y.length;for(this.clear();++m{var n=Le();function o(){this.__data__=new n,this.size=0}a(o,"stackClear"),t.exports=o}),Xn=f((r,t)=>{function n(o){var i=this.__data__,c=i.delete(o);return this.size=i.size,c}a(n,"stackDelete"),t.exports=n}),Qn=f((r,t)=>{function n(o){return this.__data__.get(o)}a(n,"stackGet"),t.exports=n}),Zn=f((r,t)=>{function n(o){return this.__data__.has(o)}a(n,"stackHas"),t.exports=n}),Xe=f((r,t)=>{var n=ie(),o=Z(),i=n(o,"Map");t.exports=i}),Ue=f((r,t)=>{var n=ie(),o=n(Object,"create");t.exports=o}),ea=f((r,t)=>{var n=Ue();function o(){this.__data__=n?n(null):{},this.size=0}a(o,"hashClear"),t.exports=o}),ta=f((r,t)=>{function n(o){var i=this.has(o)&&delete this.__data__[o];return this.size-=i?1:0,i}a(n,"hashDelete"),t.exports=n}),ra=f((r,t)=>{var n=Ue(),o="__lodash_hash_undefined__",i=Object.prototype,c=i.hasOwnProperty;function l(u){var y=this.__data__;if(n){var m=y[u];return m===o?void 0:m}return c.call(y,u)?y[u]:void 0}a(l,"hashGet"),t.exports=l}),na=f((r,t)=>{var n=Ue(),o=Object.prototype,i=o.hasOwnProperty;function c(l){var u=this.__data__;return n?u[l]!==void 0:i.call(u,l)}a(c,"hashHas"),t.exports=c}),aa=f((r,t)=>{var n=Ue(),o="__lodash_hash_undefined__";function i(c,l){var u=this.__data__;return this.size+=this.has(c)?0:1,u[c]=n&&l===void 0?o:l,this}a(i,"hashSet"),t.exports=i}),oa=f((r,t)=>{var n=ea(),o=ta(),i=ra(),c=na(),l=aa();function u(y){var m=-1,T=y==null?0:y.length;for(this.clear();++m{var n=oa(),o=Le(),i=Xe();function c(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}a(c,"mapCacheClear"),t.exports=c}),ia=f((r,t)=>{function n(o){var i=typeof o;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?o!=="__proto__":o===null}a(n,"isKeyable"),t.exports=n}),Ve=f((r,t)=>{var n=ia();function o(i,c){var l=i.__data__;return n(c)?l[typeof c=="string"?"string":"hash"]:l.map}a(o,"getMapData"),t.exports=o}),ca=f((r,t)=>{var n=Ve();function o(i){var c=n(this,i).delete(i);return this.size-=c?1:0,c}a(o,"mapCacheDelete"),t.exports=o}),pa=f((r,t)=>{var n=Ve();function o(i){return n(this,i).get(i)}a(o,"mapCacheGet"),t.exports=o}),la=f((r,t)=>{var n=Ve();function o(i){return n(this,i).has(i)}a(o,"mapCacheHas"),t.exports=o}),ua=f((r,t)=>{var n=Ve();function o(i,c){var l=n(this,i),u=l.size;return l.set(i,c),this.size+=l.size==u?0:1,this}a(o,"mapCacheSet"),t.exports=o}),Qe=f((r,t)=>{var n=sa(),o=ca(),i=pa(),c=la(),l=ua();function u(y){var m=-1,T=y==null?0:y.length;for(this.clear();++m{var n=Le(),o=Xe(),i=Qe(),c=200;function l(u,y){var m=this.__data__;if(m instanceof n){var T=m.__data__;if(!o||T.length{var n=Le(),o=Hn(),i=Xn(),c=Qn(),l=Zn(),u=ya();function y(m){var T=this.__data__=new n(m);this.size=T.size}a(y,"Stack"),y.prototype.clear=o,y.prototype.delete=i,y.prototype.get=c,y.prototype.has=l,y.prototype.set=u,t.exports=y}),da=f((r,t)=>{var n="__lodash_hash_undefined__";function o(i){return this.__data__.set(i,n),this}a(o,"setCacheAdd"),t.exports=o}),ma=f((r,t)=>{function n(o){return this.__data__.has(o)}a(n,"setCacheHas"),t.exports=n}),fa=f((r,t)=>{var n=Qe(),o=da(),i=ma();function c(l){var u=-1,y=l==null?0:l.length;for(this.__data__=new n;++u{function n(o,i){for(var c=-1,l=o==null?0:o.length;++c{function n(o,i){return o.has(i)}a(n,"cacheHas"),t.exports=n}),Mt=f((r,t)=>{var n=fa(),o=Ta(),i=va(),c=1,l=2;function u(y,m,T,h,x,g){var w=T&c,_=y.length,L=m.length;if(_!=L&&!(w&&L>_))return!1;var R=g.get(y),P=g.get(m);if(R&&P)return R==m&&P==y;var A=-1,j=!0,D=T&l?new n:void 0;for(g.set(y,m),g.set(m,y);++A<_;){var I=y[A],V=m[A];if(h)var E=w?h(V,I,A,m,y,g):h(I,V,A,y,m,g);if(E!==void 0){if(E)continue;j=!1;break}if(D){if(!o(m,function(k,N){if(!i(D,N)&&(I===k||x(I,k,T,h,g)))return D.push(N)})){j=!1;break}}else if(!(I===V||x(I,V,T,h,g))){j=!1;break}}return g.delete(y),g.delete(m),j}a(u,"equalArrays"),t.exports=u}),ha=f((r,t)=>{var n=Z(),o=n.Uint8Array;t.exports=o}),ga=f((r,t)=>{function n(o){var i=-1,c=Array(o.size);return o.forEach(function(l,u){c[++i]=[u,l]}),c}a(n,"mapToArray"),t.exports=n}),ba=f((r,t)=>{function n(o){var i=-1,c=Array(o.size);return o.forEach(function(l){c[++i]=l}),c}a(n,"setToArray"),t.exports=n}),Ja=f((r,t)=>{var n=Re(),o=ha(),i=Kt(),c=Mt(),l=ga(),u=ba(),y=1,m=2,T="[object Boolean]",h="[object Date]",x="[object Error]",g="[object Map]",w="[object Number]",_="[object RegExp]",L="[object Set]",R="[object String]",P="[object Symbol]",A="[object ArrayBuffer]",j="[object DataView]",D=n?n.prototype:void 0,I=D?D.valueOf:void 0;function V(E,k,N,K,G,S,Y){switch(N){case j:if(E.byteLength!=k.byteLength||E.byteOffset!=k.byteOffset)return!1;E=E.buffer,k=k.buffer;case A:return!(E.byteLength!=k.byteLength||!S(new o(E),new o(k)));case T:case h:case w:return i(+E,+k);case x:return E.name==k.name&&E.message==k.message;case _:case R:return E==k+"";case g:var M=l;case L:var J=K&y;if(M||(M=u),E.size!=k.size&&!J)return!1;var oe=Y.get(E);if(oe)return oe==k;K|=m,Y.set(E,k);var ee=c(M(E),M(k),K,G,S,Y);return Y.delete(E),ee;case P:if(I)return I.call(E)==I.call(k)}return!1}a(V,"equalByTag"),t.exports=V}),xa=f((r,t)=>{function n(o,i){for(var c=-1,l=i.length,u=o.length;++c{var n=xa(),o=ne();function i(c,l,u){var y=l(c);return o(c)?y:n(y,u(c))}a(i,"baseGetAllKeys"),t.exports=i}),Pa=f((r,t)=>{function n(o,i){for(var c=-1,l=o==null?0:o.length,u=0,y=[];++c{function n(){return[]}a(n,"stubArray"),t.exports=n}),Na=f((r,t)=>{var n=Pa(),o=Oa(),i=Object.prototype,c=i.propertyIsEnumerable,l=Object.getOwnPropertySymbols,u=l?function(y){return y==null?[]:(y=Object(y),n(l(y),function(m){return c.call(y,m)}))}:o;t.exports=u}),_a=f((r,t)=>{var n=wa(),o=Na(),i=He();function c(l){return n(l,i,o)}a(c,"getAllKeys"),t.exports=c}),Sa=f((r,t)=>{var n=_a(),o=1,i=Object.prototype,c=i.hasOwnProperty;function l(u,y,m,T,h,x){var g=m&o,w=n(u),_=w.length,L=n(y),R=L.length;if(_!=R&&!g)return!1;for(var P=_;P--;){var A=w[P];if(!(g?A in y:c.call(y,A)))return!1}var j=x.get(u),D=x.get(y);if(j&&D)return j==y&&D==u;var I=!0;x.set(u,y),x.set(y,u);for(var V=g;++P<_;){A=w[P];var E=u[A],k=y[A];if(T)var N=g?T(k,E,A,y,u,x):T(E,k,A,u,y,x);if(!(N===void 0?E===k||h(E,k,m,T,x):N)){I=!1;break}V||(V=A=="constructor")}if(I&&!V){var K=u.constructor,G=y.constructor;K!=G&&"constructor"in u&&"constructor"in y&&!(typeof K=="function"&&K instanceof K&&typeof G=="function"&&G instanceof G)&&(I=!1)}return x.delete(u),x.delete(y),I}a(l,"equalObjects"),t.exports=l}),ja=f((r,t)=>{var n=ie(),o=Z(),i=n(o,"DataView");t.exports=i}),Ea=f((r,t)=>{var n=ie(),o=Z(),i=n(o,"Promise");t.exports=i}),ka=f((r,t)=>{var n=ie(),o=Z(),i=n(o,"Set");t.exports=i}),Aa=f((r,t)=>{var n=ie(),o=Z(),i=n(o,"WeakMap");t.exports=i}),Ia=f((r,t)=>{var n=ja(),o=Xe(),i=Ea(),c=ka(),l=Aa(),u=ge(),y=Lt(),m="[object Map]",T="[object Object]",h="[object Promise]",x="[object Set]",g="[object WeakMap]",w="[object DataView]",_=y(n),L=y(o),R=y(i),P=y(c),A=y(l),j=u;(n&&j(new n(new ArrayBuffer(1)))!=w||o&&j(new o)!=m||i&&j(i.resolve())!=h||c&&j(new c)!=x||l&&j(new l)!=g)&&(j=a(function(D){var I=u(D),V=I==T?D.constructor:void 0,E=V?y(V):"";if(E)switch(E){case _:return w;case L:return m;case R:return h;case P:return x;case A:return g}return I},"getTag")),t.exports=j}),Ra=f((r,t)=>{var n=Ct(),o=Mt(),i=Ja(),c=Sa(),l=Ia(),u=ne(),y=Vt(),m=Dt(),T=1,h="[object Arguments]",x="[object Array]",g="[object Object]",w=Object.prototype,_=w.hasOwnProperty;function L(R,P,A,j,D,I){var V=u(R),E=u(P),k=V?x:l(R),N=E?x:l(P);k=k==h?g:k,N=N==h?g:N;var K=k==g,G=N==g,S=k==N;if(S&&y(R)){if(!y(P))return!1;V=!0,K=!1}if(S&&!K)return I||(I=new n),V||m(R)?o(R,P,A,j,D,I):i(R,P,k,A,j,D,I);if(!(A&T)){var Y=K&&_.call(R,"__wrapped__"),M=G&&_.call(P,"__wrapped__");if(Y||M){var J=Y?R.value():R,oe=M?P.value():P;return I||(I=new n),D(J,oe,A,j,I)}}return S?(I||(I=new n),c(R,P,A,j,D,I)):!1}a(L,"baseIsEqualDeep"),t.exports=L}),qt=f((r,t)=>{var n=Ra(),o=be();function i(c,l,u,y,m){return c===l?!0:c==null||l==null||!o(c)&&!o(l)?c!==c&&l!==l:n(c,l,u,y,i,m)}a(i,"baseIsEqual"),t.exports=i}),Fa=f((r,t)=>{var n=Ct(),o=qt(),i=1,c=2;function l(u,y,m,T){var h=m.length,x=h,g=!T;if(u==null)return!x;for(u=Object(u);h--;){var w=m[h];if(g&&w[2]?w[1]!==u[w[0]]:!(w[0]in u))return!1}for(;++h{var n=ze();function o(i){return i===i&&!n(i)}a(o,"isStrictComparable"),t.exports=o}),La=f((r,t)=>{var n=Bt(),o=He();function i(c){for(var l=o(c),u=l.length;u--;){var y=l[u],m=c[y];l[u]=[y,m,n(m)]}return l}a(i,"getMatchData"),t.exports=i}),Gt=f((r,t)=>{function n(o,i){return function(c){return c==null?!1:c[o]===i&&(i!==void 0||o in Object(c))}}a(n,"matchesStrictComparable"),t.exports=n}),Ua=f((r,t)=>{var n=Fa(),o=La(),i=Gt();function c(l){var u=o(l);return u.length==1&&u[0][2]?i(u[0][0],u[0][1]):function(y){return y===l||n(y,l,u)}}a(c,"baseMatches"),t.exports=c}),Ze=f((r,t)=>{var n=ge(),o=be(),i="[object Symbol]";function c(l){return typeof l=="symbol"||o(l)&&n(l)==i}a(c,"isSymbol"),t.exports=c}),et=f((r,t)=>{var n=ne(),o=Ze(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;function l(u,y){if(n(u))return!1;var m=typeof u;return m=="number"||m=="symbol"||m=="boolean"||u==null||o(u)?!0:c.test(u)||!i.test(u)||y!=null&&u in Object(y)}a(l,"isKey"),t.exports=l}),Va=f((r,t)=>{var n=Qe(),o="Expected a function";function i(c,l){if(typeof c!="function"||l!=null&&typeof l!="function")throw new TypeError(o);var u=a(function(){var y=arguments,m=l?l.apply(this,y):y[0],T=u.cache;if(T.has(m))return T.get(m);var h=c.apply(this,y);return u.cache=T.set(m,h)||T,h},"memoized");return u.cache=new(i.Cache||n),u}a(i,"memoize"),i.Cache=n,t.exports=i}),$a=f((r,t)=>{var n=Va(),o=500;function i(c){var l=n(c,function(y){return u.size===o&&u.clear(),y}),u=l.cache;return l}a(i,"memoizeCapped"),t.exports=i}),Da=f((r,t)=>{var n=$a(),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,c=n(function(l){var u=[];return l.charCodeAt(0)===46&&u.push(""),l.replace(o,function(y,m,T,h){u.push(T?h.replace(i,"$1"):m||y)}),u});t.exports=c}),Ka=f((r,t)=>{function n(o,i){for(var c=-1,l=o==null?0:o.length,u=Array(l);++c{var n=Re(),o=Ka(),i=ne(),c=Ze(),l=1/0,u=n?n.prototype:void 0,y=u?u.toString:void 0;function m(T){if(typeof T=="string")return T;if(i(T))return o(T,m)+"";if(c(T))return y?y.call(T):"";var h=T+"";return h=="0"&&1/T==-l?"-0":h}a(m,"baseToString"),t.exports=m}),Ma=f((r,t)=>{var n=Ca();function o(i){return i==null?"":n(i)}a(o,"toString"),t.exports=o}),Yt=f((r,t)=>{var n=ne(),o=et(),i=Da(),c=Ma();function l(u,y){return n(u)?u:o(u,y)?[u]:i(c(u))}a(l,"castPath"),t.exports=l}),$e=f((r,t)=>{var n=Ze(),o=1/0;function i(c){if(typeof c=="string"||n(c))return c;var l=c+"";return l=="0"&&1/c==-o?"-0":l}a(i,"toKey"),t.exports=i}),zt=f((r,t)=>{var n=Yt(),o=$e();function i(c,l){l=n(l,c);for(var u=0,y=l.length;c!=null&&u{var n=zt();function o(i,c,l){var u=i==null?void 0:n(i,c);return u===void 0?l:u}a(o,"get"),t.exports=o}),Ba=f((r,t)=>{function n(o,i){return o!=null&&i in Object(o)}a(n,"baseHasIn"),t.exports=n}),Ga=f((r,t)=>{var n=Yt(),o=Ut(),i=ne(),c=$t(),l=We(),u=$e();function y(m,T,h){T=n(T,m);for(var x=-1,g=T.length,w=!1;++x{var n=Ba(),o=Ga();function i(c,l){return c!=null&&o(c,l,n)}a(i,"hasIn"),t.exports=i}),za=f((r,t)=>{var n=qt(),o=qa(),i=Ya(),c=et(),l=Bt(),u=Gt(),y=$e(),m=1,T=2;function h(x,g){return c(x)&&l(g)?u(y(x),g):function(w){var _=o(w,x);return _===void 0&&_===g?i(w,x):n(g,_,m|T)}}a(h,"baseMatchesProperty"),t.exports=h}),Wa=f((r,t)=>{function n(o){return o}a(n,"identity"),t.exports=n}),Ha=f((r,t)=>{function n(o){return function(i){return i==null?void 0:i[o]}}a(n,"baseProperty"),t.exports=n}),Xa=f((r,t)=>{var n=zt();function o(i){return function(c){return n(c,i)}}a(o,"basePropertyDeep"),t.exports=o}),Qa=f((r,t)=>{var n=Ha(),o=Xa(),i=et(),c=$e();function l(u){return i(u)?n(c(u)):o(u)}a(l,"property"),t.exports=l}),Za=f((r,t)=>{var n=Ua(),o=za(),i=Wa(),c=ne(),l=Qa();function u(y){return typeof y=="function"?y:y==null?i:typeof y=="object"?c(y)?o(y[0],y[1]):n(y):l(y)}a(u,"baseIteratee"),t.exports=u}),eo=f((r,t)=>{var n=jn(),o=qn(),i=Za();function c(l,u){var y={};return u=i(u,3),o(l,function(m,T,h){n(y,T,u(m,T,h))}),y}a(c,"mapValues"),t.exports=c}),to=f((r,t)=>{(function(n,o){typeof r=="object"&&typeof t<"u"?o(r):typeof define=="function"&&define.amd?define(["exports"],o):(n=typeof globalThis<"u"?globalThis:n||self,o(n.jtpp={}))})(r,function(n){function o(e){return e.text!==void 0&&e.text!==""?`'${e.type}' with value '${e.text}'`:`'${e.type}'`}a(o,"tokenToString");let i=class Wt extends Error{constructor(s){super(`No parslet found for token: ${o(s)}`),this.token=s,Object.setPrototypeOf(this,Wt.prototype)}getToken(){return this.token}};a(i,"NoParsletFoundError");let c=i,l=class Ht extends Error{constructor(s){super(`The parsing ended early. The next token was: ${o(s)}`),this.token=s,Object.setPrototypeOf(this,Ht.prototype)}getToken(){return this.token}};a(l,"EarlyEndOfParseError");let u=l,y=class Xt extends Error{constructor(s,p){let d=`Unexpected type: '${s.type}'.`;p!==void 0&&(d+=` Message: ${p}`),super(d),Object.setPrototypeOf(this,Xt.prototype)}};a(y,"UnexpectedTypeError");let m=y;function T(e){return s=>s.startsWith(e)?{type:e,text:e}:null}a(T,"makePunctuationRule");function h(e){let s=0,p,d=e[0],v=!1;if(d!=="'"&&d!=='"')return null;for(;s{let s=w(e);return s==null?null:{type:"Identifier",text:s}},"identifierRule");function P(e){return s=>{if(!s.startsWith(e))return null;let p=s[e.length];return p!==void 0&&g.test(p)?null:{type:e,text:e}}}a(P,"makeKeyWordRule");let A=a(e=>{let s=h(e);return s==null?null:{type:"StringValue",text:s}},"stringValueRule"),j=a(e=>e.length>0?null:{type:"EOF",text:""},"eofRule"),D=a(e=>{let s=L(e);return s===null?null:{type:"Number",text:s}},"numberRule"),I=[j,T("=>"),T("("),T(")"),T("{"),T("}"),T("["),T("]"),T("|"),T("&"),T("<"),T(">"),T(","),T(";"),T("*"),T("?"),T("!"),T("="),T(":"),T("..."),T("."),T("#"),T("~"),T("/"),T("@"),P("undefined"),P("null"),P("function"),P("this"),P("new"),P("module"),P("event"),P("external"),P("typeof"),P("keyof"),P("readonly"),P("import"),P("is"),P("in"),D,R,A],V=/^\s*\n\s*/,E=class Ie{static create(s){let p=this.read(s);s=p.text;let d=this.read(s);return s=d.text,new Ie(s,void 0,p.token,d.token)}constructor(s,p,d,v){this.text="",this.text=s,this.previous=p,this.current=d,this.next=v}static read(s,p=!1){p=p||V.test(s),s=s.trim();for(let d of I){let v=d(s);if(v!==null){let b=Object.assign(Object.assign({},v),{startOfLine:p});return s=s.slice(b.text.length),{text:s,token:b}}}throw new Error("Unexpected Token "+s)}advance(){let s=Ie.read(this.text);return new Ie(s.text,this.current,this.next,s.token)}};a(E,"Lexer");let k=E;function N(e){if(e===void 0)throw new Error("Unexpected undefined");if(e.type==="JsdocTypeKeyValue"||e.type==="JsdocTypeParameterList"||e.type==="JsdocTypeProperty"||e.type==="JsdocTypeReadonlyProperty"||e.type==="JsdocTypeObjectField"||e.type==="JsdocTypeJsdocObjectField"||e.type==="JsdocTypeIndexSignature"||e.type==="JsdocTypeMappedType")throw new m(e);return e}a(N,"assertRootResult");function K(e){return e.type==="JsdocTypeKeyValue"?S(e):N(e)}a(K,"assertPlainKeyValueOrRootResult");function G(e){return e.type==="JsdocTypeName"?e:S(e)}a(G,"assertPlainKeyValueOrNameResult");function S(e){if(e.type!=="JsdocTypeKeyValue")throw new m(e);return e}a(S,"assertPlainKeyValueResult");function Y(e){var s;if(e.type==="JsdocTypeVariadic"){if(((s=e.element)===null||s===void 0?void 0:s.type)==="JsdocTypeName")return e;throw new m(e)}if(e.type!=="JsdocTypeNumber"&&e.type!=="JsdocTypeName")throw new m(e);return e}a(Y,"assertNumberOrVariadicNameResult");function M(e){return e.type==="JsdocTypeIndexSignature"||e.type==="JsdocTypeMappedType"}a(M,"isSquaredProperty");var J;(function(e){e[e.ALL=0]="ALL",e[e.PARAMETER_LIST=1]="PARAMETER_LIST",e[e.OBJECT=2]="OBJECT",e[e.KEY_VALUE=3]="KEY_VALUE",e[e.UNION=4]="UNION",e[e.INTERSECTION=5]="INTERSECTION",e[e.PREFIX=6]="PREFIX",e[e.INFIX=7]="INFIX",e[e.TUPLE=8]="TUPLE",e[e.SYMBOL=9]="SYMBOL",e[e.OPTIONAL=10]="OPTIONAL",e[e.NULLABLE=11]="NULLABLE",e[e.KEY_OF_TYPE_OF=12]="KEY_OF_TYPE_OF",e[e.FUNCTION=13]="FUNCTION",e[e.ARROW=14]="ARROW",e[e.ARRAY_BRACKETS=15]="ARRAY_BRACKETS",e[e.GENERIC=16]="GENERIC",e[e.NAME_PATH=17]="NAME_PATH",e[e.PARENTHESIS=18]="PARENTHESIS",e[e.SPECIAL_TYPES=19]="SPECIAL_TYPES"})(J||(J={}));let oe=class{constructor(s,p,d){this.grammar=s,typeof p=="string"?this._lexer=k.create(p):this._lexer=p,this.baseParser=d}get lexer(){return this._lexer}parse(){let s=this.parseType(J.ALL);if(this.lexer.current.type!=="EOF")throw new u(this.lexer.current);return s}parseType(s){return N(this.parseIntermediateType(s))}parseIntermediateType(s){let p=this.tryParslets(null,s);if(p===null)throw new c(this.lexer.current);return this.parseInfixIntermediateType(p,s)}parseInfixIntermediateType(s,p){let d=this.tryParslets(s,p);for(;d!==null;)s=d,d=this.tryParslets(s,p);return s}tryParslets(s,p){for(let d of this.grammar){let v=d(this,p,s);if(v!==null)return v}return null}consume(s){return Array.isArray(s)||(s=[s]),s.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(s){this._lexer=s.lexer}};a(oe,"Parser");let ee=oe;function Ke(e){return e==="EOF"||e==="|"||e===","||e===")"||e===">"}a(Ke,"isQuestionMarkUnknownType");let Ce=a((e,s,p)=>{let d=e.lexer.current.type,v=e.lexer.next.type;return p==null&&d==="?"&&!Ke(v)||p!=null&&d==="?"?(e.consume("?"),p==null?{type:"JsdocTypeNullable",element:e.parseType(J.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:N(p),meta:{position:"suffix"}}):null},"nullableParslet");function F(e){let s=a((p,d,v)=>{let b=p.lexer.current.type,O=p.lexer.next.type;if(v===null){if("parsePrefix"in e&&e.accept(b,O))return e.parsePrefix(p)}else if("parseInfix"in e&&e.precedence>d&&e.accept(b,O))return e.parseInfix(p,v);return null},"parslet");return Object.defineProperty(s,"name",{value:e.name}),s}a(F,"composeParslet");let xe=F({name:"optionalParslet",accept:a(e=>e==="=","accept"),precedence:J.OPTIONAL,parsePrefix:a(e=>(e.consume("="),{type:"JsdocTypeOptional",element:e.parseType(J.OPTIONAL),meta:{position:"prefix"}}),"parsePrefix"),parseInfix:a((e,s)=>(e.consume("="),{type:"JsdocTypeOptional",element:N(s),meta:{position:"suffix"}}),"parseInfix")}),we=F({name:"numberParslet",accept:a(e=>e==="Number","accept"),parsePrefix:a(e=>{let s=parseFloat(e.lexer.current.text);return e.consume("Number"),{type:"JsdocTypeNumber",value:s}},"parsePrefix")}),Yr=F({name:"parenthesisParslet",accept:a(e=>e==="(","accept"),parsePrefix:a(e=>{if(e.consume("("),e.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let s=e.parseIntermediateType(J.ALL);if(!e.consume(")"))throw new Error("Unterminated parenthesis");return s.type==="JsdocTypeParameterList"?s:s.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[s]}:{type:"JsdocTypeParenthesis",element:N(s)}},"parsePrefix")}),zr=F({name:"specialTypesParslet",accept:a((e,s)=>e==="?"&&Ke(s)||e==="null"||e==="undefined"||e==="*","accept"),parsePrefix:a(e=>{if(e.consume("null"))return{type:"JsdocTypeNull"};if(e.consume("undefined"))return{type:"JsdocTypeUndefined"};if(e.consume("*"))return{type:"JsdocTypeAny"};if(e.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+e.lexer.current.text)},"parsePrefix")}),Wr=F({name:"notNullableParslet",accept:a(e=>e==="!","accept"),precedence:J.NULLABLE,parsePrefix:a(e=>(e.consume("!"),{type:"JsdocTypeNotNullable",element:e.parseType(J.NULLABLE),meta:{position:"prefix"}}),"parsePrefix"),parseInfix:a((e,s)=>(e.consume("!"),{type:"JsdocTypeNotNullable",element:N(s),meta:{position:"suffix"}}),"parseInfix")});function dt({allowTrailingComma:e}){return F({name:"parameterListParslet",accept:a(s=>s===",","accept"),precedence:J.PARAMETER_LIST,parseInfix:a((s,p)=>{let d=[K(p)];s.consume(",");do try{let v=s.parseIntermediateType(J.PARAMETER_LIST);d.push(K(v))}catch(v){if(e&&v instanceof c)break;throw v}while(s.consume(","));if(d.length>0&&d.slice(0,-1).some(v=>v.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:d}},"parseInfix")})}a(dt,"createParameterListParslet");let Hr=F({name:"genericParslet",accept:a((e,s)=>e==="<"||e==="."&&s==="<","accept"),precedence:J.GENERIC,parseInfix:a((e,s)=>{let p=e.consume(".");e.consume("<");let d=[];do d.push(e.parseType(J.PARAMETER_LIST));while(e.consume(","));if(!e.consume(">"))throw new Error("Unterminated generic parameter list");return{type:"JsdocTypeGeneric",left:N(s),elements:d,meta:{brackets:"angle",dot:p}}},"parseInfix")}),Xr=F({name:"unionParslet",accept:a(e=>e==="|","accept"),precedence:J.UNION,parseInfix:a((e,s)=>{e.consume("|");let p=[];do p.push(e.parseType(J.UNION));while(e.consume("|"));return{type:"JsdocTypeUnion",elements:[N(s),...p]}},"parseInfix")}),Me=[Ce,xe,we,Yr,zr,Wr,dt({allowTrailingComma:!0}),Hr,Xr,xe];function le({allowSquareBracketsOnAnyType:e,allowJsdocNamePaths:s,pathGrammar:p}){return a(function(d,v,b){if(b==null||v>=J.NAME_PATH)return null;let O=d.lexer.current.type,U=d.lexer.next.type;if(!(O==="."&&U!=="<"||O==="["&&(e||b.type==="JsdocTypeName")||s&&(O==="~"||O==="#")))return null;let $,q=!1;d.consume(".")?$="property":d.consume("[")?($="property-brackets",q=!0):d.consume("~")?$="inner":(d.consume("#"),$="instance");let Q=p!==null?new ee(p,d.lexer,d):d,z=Q.parseIntermediateType(J.NAME_PATH);d.acceptLexerState(Q);let me;switch(z.type){case"JsdocTypeName":me={type:"JsdocTypeProperty",value:z.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":me={type:"JsdocTypeProperty",value:z.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":me={type:"JsdocTypeProperty",value:z.value,meta:{quote:z.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(z.specialType==="event")me=z;else throw new m(z,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new m(z,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(q&&!d.consume("]")){let jt=d.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${jt.type}' with text '${jt.text}'`)}return{type:"JsdocTypeNamePath",left:N(b),right:me,pathType:$}},"namePathParslet")}a(le,"createNamePathParslet");function W({allowedAdditionalTokens:e}){return F({name:"nameParslet",accept:a(s=>s==="Identifier"||s==="this"||s==="new"||e.includes(s),"accept"),parsePrefix:a(s=>{let{type:p,text:d}=s.lexer.current;return s.consume(p),{type:"JsdocTypeName",value:d}},"parsePrefix")})}a(W,"createNameParslet");let ue=F({name:"stringValueParslet",accept:a(e=>e==="StringValue","accept"),parsePrefix:a(e=>{let s=e.lexer.current.text;return e.consume("StringValue"),{type:"JsdocTypeStringValue",value:s.slice(1,-1),meta:{quote:s[0]==="'"?"single":"double"}}},"parsePrefix")});function ye({pathGrammar:e,allowedTypes:s}){return F({name:"specialNamePathParslet",accept:a(p=>s.includes(p),"accept"),parsePrefix:a(p=>{let d=p.lexer.current.type;if(p.consume(d),!p.consume(":"))return{type:"JsdocTypeName",value:d};let v,b=p.lexer.current;if(p.consume("StringValue"))v={type:"JsdocTypeSpecialNamePath",value:b.text.slice(1,-1),specialType:d,meta:{quote:b.text[0]==="'"?"single":"double"}};else{let $="",q=["Identifier","@","/"];for(;q.some(Q=>p.consume(Q));)$+=b.text,b=p.lexer.current;v={type:"JsdocTypeSpecialNamePath",value:$,specialType:d,meta:{quote:void 0}}}let O=new ee(e,p.lexer,p),U=O.parseInfixIntermediateType(v,J.ALL);return p.acceptLexerState(O),N(U)},"parsePrefix")})}a(ye,"createSpecialNamePathParslet");let mt=[W({allowedAdditionalTokens:["external","module"]}),ue,we,le({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],ce=[...mt,ye({allowedTypes:["event"],pathGrammar:mt})];function Pe(e){let s;if(e.type==="JsdocTypeParameterList")s=e.elements;else if(e.type==="JsdocTypeParenthesis")s=[e.element];else throw new m(e);return s.map(p=>K(p))}a(Pe,"getParameters");function ft(e){let s=Pe(e);if(s.some(p=>p.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return s}a(ft,"getUnnamedParameters");function Oe({allowNamedParameters:e,allowNoReturnType:s,allowWithoutParenthesis:p,allowNewAsFunctionKeyword:d}){return F({name:"functionParslet",accept:a((v,b)=>v==="function"||d&&v==="new"&&b==="(","accept"),parsePrefix:a(v=>{let b=v.consume("new");v.consume("function");let O=v.lexer.current.type==="(";if(!O){if(!p)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let U={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:b,parenthesis:O},$=v.parseIntermediateType(J.FUNCTION);if(e===void 0)U.parameters=ft($);else{if(b&&$.type==="JsdocTypeFunction"&&$.arrow)return U=$,U.constructor=!0,U;U.parameters=Pe($);for(let q of U.parameters)if(q.type==="JsdocTypeKeyValue"&&!e.includes(q.key))throw new Error(`only allowed named parameters are ${e.join(", ")} but got ${q.type}`)}if(v.consume(":"))U.returnType=v.parseType(J.PREFIX);else if(!s)throw new Error("function is missing return type");return U},"parsePrefix")})}a(Oe,"createFunctionParslet");function Ne({allowPostfix:e,allowEnclosingBrackets:s}){return F({name:"variadicParslet",accept:a(p=>p==="...","accept"),precedence:J.PREFIX,parsePrefix:a(p=>{p.consume("...");let d=s&&p.consume("[");try{let v=p.parseType(J.PREFIX);if(d&&!p.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:N(v),meta:{position:"prefix",squareBrackets:d}}}catch(v){if(v instanceof c){if(d)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw v}},"parsePrefix"),parseInfix:e?(p,d)=>(p.consume("..."),{type:"JsdocTypeVariadic",element:N(d),meta:{position:"suffix",squareBrackets:!1}}):void 0})}a(Ne,"createVariadicParslet");let Tt=F({name:"symbolParslet",accept:a(e=>e==="(","accept"),precedence:J.SYMBOL,parseInfix:a((e,s)=>{if(s.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");e.consume("(");let p={type:"JsdocTypeSymbol",value:s.value};if(!e.consume(")")){let d=e.parseIntermediateType(J.SYMBOL);if(p.element=Y(d),!e.consume(")"))throw new Error("Symbol does not end after value")}return p},"parseInfix")}),vt=F({name:"arrayBracketsParslet",precedence:J.ARRAY_BRACKETS,accept:a((e,s)=>e==="["&&s==="]","accept"),parseInfix:a((e,s)=>(e.consume("["),e.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[N(s)],meta:{brackets:"square",dot:!1}}),"parseInfix")});function _e({objectFieldGrammar:e,allowKeyTypes:s}){return F({name:"objectParslet",accept:a(p=>p==="{","accept"),parsePrefix:a(p=>{p.consume("{");let d={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!p.consume("}")){let v,b=new ee(e,p.lexer,p);for(;;){b.acceptLexerState(p);let O=b.parseIntermediateType(J.OBJECT);p.acceptLexerState(b),O===void 0&&s&&(O=p.parseIntermediateType(J.OBJECT));let U=!1;if(O.type==="JsdocTypeNullable"&&(U=!0,O=O.element),O.type==="JsdocTypeNumber"||O.type==="JsdocTypeName"||O.type==="JsdocTypeStringValue"){let $;O.type==="JsdocTypeStringValue"&&($=O.meta.quote),d.elements.push({type:"JsdocTypeObjectField",key:O.value.toString(),right:void 0,optional:U,readonly:!1,meta:{quote:$}})}else if(O.type==="JsdocTypeObjectField"||O.type==="JsdocTypeJsdocObjectField")d.elements.push(O);else throw new m(O);if(p.lexer.current.startOfLine)v="linebreak";else if(p.consume(","))v="comma";else if(p.consume(";"))v="semicolon";else break;if(p.lexer.current.type==="}")break}if(d.meta.separator=v??"comma",!p.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return d},"parsePrefix")})}a(_e,"createObjectParslet");function Se({allowSquaredProperties:e,allowKeyTypes:s,allowReadonly:p,allowOptional:d}){return F({name:"objectFieldParslet",precedence:J.KEY_VALUE,accept:a(v=>v===":","accept"),parseInfix:a((v,b)=>{var O;let U=!1,$=!1;d&&b.type==="JsdocTypeNullable"&&(U=!0,b=b.element),p&&b.type==="JsdocTypeReadonlyProperty"&&($=!0,b=b.element);let q=(O=v.baseParser)!==null&&O!==void 0?O:v;if(q.acceptLexerState(v),b.type==="JsdocTypeNumber"||b.type==="JsdocTypeName"||b.type==="JsdocTypeStringValue"||M(b)){if(M(b)&&!e)throw new m(b);q.consume(":");let Q;b.type==="JsdocTypeStringValue"&&(Q=b.meta.quote);let z=q.parseType(J.KEY_VALUE);return v.acceptLexerState(q),{type:"JsdocTypeObjectField",key:M(b)?b:b.value.toString(),right:z,optional:U,readonly:$,meta:{quote:Q}}}else{if(!s)throw new m(b);q.consume(":");let Q=q.parseType(J.KEY_VALUE);return v.acceptLexerState(q),{type:"JsdocTypeJsdocObjectField",left:N(b),right:Q}}},"parseInfix")})}a(Se,"createObjectFieldParslet");function je({allowOptional:e,allowVariadic:s}){return F({name:"keyValueParslet",precedence:J.KEY_VALUE,accept:a(p=>p===":","accept"),parseInfix:a((p,d)=>{let v=!1,b=!1;if(e&&d.type==="JsdocTypeNullable"&&(v=!0,d=d.element),s&&d.type==="JsdocTypeVariadic"&&d.element!==void 0&&(b=!0,d=d.element),d.type!=="JsdocTypeName")throw new m(d);p.consume(":");let O=p.parseType(J.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:d.value,right:O,optional:v,variadic:b}},"parseInfix")})}a(je,"createKeyValueParslet");let ht=[...Me,Oe({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),ue,ye({allowedTypes:["module","external","event"],pathGrammar:ce}),Ne({allowEnclosingBrackets:!0,allowPostfix:!0}),W({allowedAdditionalTokens:["keyof"]}),Tt,vt,le({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ce})],Qr=[...ht,_e({objectFieldGrammar:[W({allowedAdditionalTokens:["module","in"]}),Se({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...ht],allowKeyTypes:!0}),je({allowOptional:!0,allowVariadic:!0})],gt=F({name:"typeOfParslet",accept:a(e=>e==="typeof","accept"),parsePrefix:a(e=>(e.consume("typeof"),{type:"JsdocTypeTypeof",element:N(e.parseType(J.KEY_OF_TYPE_OF))}),"parsePrefix")}),Zr=[W({allowedAdditionalTokens:["module","keyof","event","external","in"]}),Ce,xe,ue,we,Se({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],en=[...Me,_e({allowKeyTypes:!1,objectFieldGrammar:Zr}),W({allowedAdditionalTokens:["event","external","in"]}),gt,Oe({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Ne({allowEnclosingBrackets:!1,allowPostfix:!1}),W({allowedAdditionalTokens:["keyof"]}),ye({allowedTypes:["module"],pathGrammar:ce}),le({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ce}),je({allowOptional:!1,allowVariadic:!1}),Tt];function bt({allowQuestionMark:e}){return F({name:"tupleParslet",accept:a(s=>s==="[","accept"),parsePrefix:a(s=>{s.consume("[");let p={type:"JsdocTypeTuple",elements:[]};if(s.consume("]"))return p;let d=s.parseIntermediateType(J.ALL);if(d.type==="JsdocTypeParameterList"?d.elements[0].type==="JsdocTypeKeyValue"?p.elements=d.elements.map(S):p.elements=d.elements.map(N):d.type==="JsdocTypeKeyValue"?p.elements=[S(d)]:p.elements=[N(d)],!s.consume("]"))throw new Error("Unterminated '['");if(!e&&p.elements.some(v=>v.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return p},"parsePrefix")})}a(bt,"createTupleParslet");let tn=F({name:"keyOfParslet",accept:a(e=>e==="keyof","accept"),parsePrefix:a(e=>(e.consume("keyof"),{type:"JsdocTypeKeyof",element:N(e.parseType(J.KEY_OF_TYPE_OF))}),"parsePrefix")}),rn=F({name:"importParslet",accept:a(e=>e==="import","accept"),parsePrefix:a(e=>{if(e.consume("import"),!e.consume("("))throw new Error("Missing parenthesis after import keyword");let s=e.parseType(J.PREFIX);if(s.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!e.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:s}},"parsePrefix")}),nn=F({name:"readonlyPropertyParslet",accept:a(e=>e==="readonly","accept"),parsePrefix:a(e=>(e.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:e.parseType(J.KEY_VALUE)}),"parsePrefix")}),an=F({name:"arrowFunctionParslet",precedence:J.ARROW,accept:a(e=>e==="=>","accept"),parseInfix:a((e,s)=>(e.consume("=>"),{type:"JsdocTypeFunction",parameters:Pe(s).map(G),arrow:!0,constructor:!1,parenthesis:!0,returnType:e.parseType(J.OBJECT)}),"parseInfix")}),on=F({name:"intersectionParslet",accept:a(e=>e==="&","accept"),precedence:J.INTERSECTION,parseInfix:a((e,s)=>{e.consume("&");let p=[];do p.push(e.parseType(J.INTERSECTION));while(e.consume("&"));return{type:"JsdocTypeIntersection",elements:[N(s),...p]}},"parseInfix")}),sn=F({name:"predicateParslet",precedence:J.INFIX,accept:a(e=>e==="is","accept"),parseInfix:a((e,s)=>{if(s.type!=="JsdocTypeName")throw new m(s,"A typescript predicate always has to have a name on the left side.");return e.consume("is"),{type:"JsdocTypePredicate",left:s,right:N(e.parseIntermediateType(J.INFIX))}},"parseInfix")}),cn=F({name:"objectSquareBracketPropertyParslet",accept:a(e=>e==="[","accept"),parsePrefix:a(e=>{if(e.baseParser===void 0)throw new Error("Only allowed inside object grammar");e.consume("[");let s=e.lexer.current.text;e.consume("Identifier");let p;if(e.consume(":")){let d=e.baseParser;d.acceptLexerState(e),p={type:"JsdocTypeIndexSignature",key:s,right:d.parseType(J.ARRAY_BRACKETS)},e.acceptLexerState(d)}else if(e.consume("in")){let d=e.baseParser;d.acceptLexerState(e),p={type:"JsdocTypeMappedType",key:s,right:d.parseType(J.ARRAY_BRACKETS)},e.acceptLexerState(d)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!e.consume("]"))throw new Error("Unterminated square brackets");return p},"parsePrefix")}),pn=[nn,W({allowedAdditionalTokens:["module","event","keyof","event","external","in"]}),Ce,xe,ue,we,Se({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),cn],ln=[...Me,_e({allowKeyTypes:!1,objectFieldGrammar:pn}),gt,tn,rn,ue,Oe({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),bt({allowQuestionMark:!1}),Ne({allowEnclosingBrackets:!1,allowPostfix:!1}),W({allowedAdditionalTokens:["event","external","in"]}),ye({allowedTypes:["module"],pathGrammar:ce}),vt,an,le({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:ce}),on,sn,je({allowVariadic:!0,allowOptional:!0})];function qe(e,s){switch(s){case"closure":return new ee(en,e).parse();case"jsdoc":return new ee(Qr,e).parse();case"typescript":return new ee(ln,e).parse()}}a(qe,"parse");function Jt(e,s=["typescript","closure","jsdoc"]){let p;for(let d of s)try{return qe(e,d)}catch(v){p=v}throw p}a(Jt,"tryParse");function pe(e,s){let p=e[s.type];if(p===void 0)throw new Error(`In this set of transform rules exists no rule for type ${s.type}.`);return p(s,d=>pe(e,d))}a(pe,"transform");function B(e){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}a(B,"notAvailableTransform");function Be(e){let s={params:[]};for(let p of e.parameters)p.type==="JsdocTypeKeyValue"?p.key==="this"?s.this=p.right:p.key==="new"?s.new=p.right:s.params.push(p):s.params.push(p);return s}a(Be,"extractSpecialParams");function de(e,s,p){return e==="prefix"?p+s:s+p}a(de,"applyPosition");function H(e,s){switch(s){case"double":return`"${e}"`;case"single":return`'${e}'`;case void 0:return e}}a(H,"quote");function Ge(){return{JsdocTypeParenthesis:a((e,s)=>`(${e.element!==void 0?s(e.element):""})`,"JsdocTypeParenthesis"),JsdocTypeKeyof:a((e,s)=>`keyof ${s(e.element)}`,"JsdocTypeKeyof"),JsdocTypeFunction:a((e,s)=>{if(e.arrow){if(e.returnType===void 0)throw new Error("Arrow function needs a return type.");let p=`(${e.parameters.map(s).join(", ")}) => ${s(e.returnType)}`;return e.constructor&&(p="new "+p),p}else{let p=e.constructor?"new":"function";return e.parenthesis&&(p+=`(${e.parameters.map(s).join(", ")})`,e.returnType!==void 0&&(p+=`: ${s(e.returnType)}`)),p}},"JsdocTypeFunction"),JsdocTypeName:a(e=>e.value,"JsdocTypeName"),JsdocTypeTuple:a((e,s)=>`[${e.elements.map(s).join(", ")}]`,"JsdocTypeTuple"),JsdocTypeVariadic:a((e,s)=>e.meta.position===void 0?"...":de(e.meta.position,s(e.element),"..."),"JsdocTypeVariadic"),JsdocTypeNamePath:a((e,s)=>{let p=s(e.left),d=s(e.right);switch(e.pathType){case"inner":return`${p}~${d}`;case"instance":return`${p}#${d}`;case"property":return`${p}.${d}`;case"property-brackets":return`${p}[${d}]`}},"JsdocTypeNamePath"),JsdocTypeStringValue:a(e=>H(e.value,e.meta.quote),"JsdocTypeStringValue"),JsdocTypeAny:a(()=>"*","JsdocTypeAny"),JsdocTypeGeneric:a((e,s)=>{if(e.meta.brackets==="square"){let p=e.elements[0],d=s(p);return p.type==="JsdocTypeUnion"||p.type==="JsdocTypeIntersection"?`(${d})[]`:`${d}[]`}else return`${s(e.left)}${e.meta.dot?".":""}<${e.elements.map(s).join(", ")}>`},"JsdocTypeGeneric"),JsdocTypeImport:a((e,s)=>`import(${s(e.element)})`,"JsdocTypeImport"),JsdocTypeObjectField:a((e,s)=>{let p="";return e.readonly&&(p+="readonly "),typeof e.key=="string"?p+=H(e.key,e.meta.quote):p+=s(e.key),e.optional&&(p+="?"),e.right===void 0?p:p+`: ${s(e.right)}`},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:a((e,s)=>`${s(e.left)}: ${s(e.right)}`,"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:a((e,s)=>{let p=e.key;return e.optional&&(p+="?"),e.variadic&&(p="..."+p),e.right===void 0?p:p+`: ${s(e.right)}`},"JsdocTypeKeyValue"),JsdocTypeSpecialNamePath:a(e=>`${e.specialType}:${H(e.value,e.meta.quote)}`,"JsdocTypeSpecialNamePath"),JsdocTypeNotNullable:a((e,s)=>de(e.meta.position,s(e.element),"!"),"JsdocTypeNotNullable"),JsdocTypeNull:a(()=>"null","JsdocTypeNull"),JsdocTypeNullable:a((e,s)=>de(e.meta.position,s(e.element),"?"),"JsdocTypeNullable"),JsdocTypeNumber:a(e=>e.value.toString(),"JsdocTypeNumber"),JsdocTypeObject:a((e,s)=>`{${e.elements.map(s).join((e.meta.separator==="comma"?",":";")+" ")}}`,"JsdocTypeObject"),JsdocTypeOptional:a((e,s)=>de(e.meta.position,s(e.element),"="),"JsdocTypeOptional"),JsdocTypeSymbol:a((e,s)=>`${e.value}(${e.element!==void 0?s(e.element):""})`,"JsdocTypeSymbol"),JsdocTypeTypeof:a((e,s)=>`typeof ${s(e.element)}`,"JsdocTypeTypeof"),JsdocTypeUndefined:a(()=>"undefined","JsdocTypeUndefined"),JsdocTypeUnion:a((e,s)=>e.elements.map(s).join(" | "),"JsdocTypeUnion"),JsdocTypeUnknown:a(()=>"?","JsdocTypeUnknown"),JsdocTypeIntersection:a((e,s)=>e.elements.map(s).join(" & "),"JsdocTypeIntersection"),JsdocTypeProperty:a(e=>H(e.value,e.meta.quote),"JsdocTypeProperty"),JsdocTypePredicate:a((e,s)=>`${s(e.left)} is ${s(e.right)}`,"JsdocTypePredicate"),JsdocTypeIndexSignature:a((e,s)=>`[${e.key}: ${s(e.right)}]`,"JsdocTypeIndexSignature"),JsdocTypeMappedType:a((e,s)=>`[${e.key} in ${s(e.right)}]`,"JsdocTypeMappedType")}}a(Ge,"stringifyRules");let un=Ge();function xt(e){return pe(un,e)}a(xt,"stringify");let yn=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function X(e){let s={type:"NameExpression",name:e};return yn.includes(e)&&(s.reservedWord=!0),s}a(X,"makeName");let dn={JsdocTypeOptional:a((e,s)=>{let p=s(e.element);return p.optional=!0,p},"JsdocTypeOptional"),JsdocTypeNullable:a((e,s)=>{let p=s(e.element);return p.nullable=!0,p},"JsdocTypeNullable"),JsdocTypeNotNullable:a((e,s)=>{let p=s(e.element);return p.nullable=!1,p},"JsdocTypeNotNullable"),JsdocTypeVariadic:a((e,s)=>{if(e.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let p=s(e.element);return p.repeatable=!0,p},"JsdocTypeVariadic"),JsdocTypeAny:a(()=>({type:"AllLiteral"}),"JsdocTypeAny"),JsdocTypeNull:a(()=>({type:"NullLiteral"}),"JsdocTypeNull"),JsdocTypeStringValue:a(e=>X(H(e.value,e.meta.quote)),"JsdocTypeStringValue"),JsdocTypeUndefined:a(()=>({type:"UndefinedLiteral"}),"JsdocTypeUndefined"),JsdocTypeUnknown:a(()=>({type:"UnknownLiteral"}),"JsdocTypeUnknown"),JsdocTypeFunction:a((e,s)=>{let p=Be(e),d={type:"FunctionType",params:p.params.map(s)};return p.this!==void 0&&(d.this=s(p.this)),p.new!==void 0&&(d.new=s(p.new)),e.returnType!==void 0&&(d.result=s(e.returnType)),d},"JsdocTypeFunction"),JsdocTypeGeneric:a((e,s)=>({type:"TypeApplication",applications:e.elements.map(p=>s(p)),expression:s(e.left)}),"JsdocTypeGeneric"),JsdocTypeSpecialNamePath:a(e=>X(e.specialType+":"+H(e.value,e.meta.quote)),"JsdocTypeSpecialNamePath"),JsdocTypeName:a(e=>e.value!=="function"?X(e.value):{type:"FunctionType",params:[]},"JsdocTypeName"),JsdocTypeNumber:a(e=>X(e.value.toString()),"JsdocTypeNumber"),JsdocTypeObject:a((e,s)=>{let p={type:"RecordType",fields:[]};for(let d of e.elements)d.type!=="JsdocTypeObjectField"&&d.type!=="JsdocTypeJsdocObjectField"?p.fields.push({type:"FieldType",key:s(d),value:void 0}):p.fields.push(s(d));return p},"JsdocTypeObject"),JsdocTypeObjectField:a((e,s)=>{if(typeof e.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:X(H(e.key,e.meta.quote)),value:e.right===void 0?void 0:s(e.right)}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:a((e,s)=>({type:"FieldType",key:s(e.left),value:s(e.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeUnion:a((e,s)=>({type:"TypeUnion",elements:e.elements.map(p=>s(p))}),"JsdocTypeUnion"),JsdocTypeKeyValue:a((e,s)=>({type:"FieldType",key:X(e.key),value:e.right===void 0?void 0:s(e.right)}),"JsdocTypeKeyValue"),JsdocTypeNamePath:a((e,s)=>{let p=s(e.left),d;e.right.type==="JsdocTypeSpecialNamePath"?d=s(e.right).name:d=H(e.right.value,e.right.meta.quote);let v=e.pathType==="inner"?"~":e.pathType==="instance"?"#":".";return X(`${p.name}${v}${d}`)},"JsdocTypeNamePath"),JsdocTypeSymbol:a(e=>{let s="",p=e.element,d=!1;return(p==null?void 0:p.type)==="JsdocTypeVariadic"&&(p.meta.position==="prefix"?s="...":d=!0,p=p.element),(p==null?void 0:p.type)==="JsdocTypeName"?s+=p.value:(p==null?void 0:p.type)==="JsdocTypeNumber"&&(s+=p.value.toString()),d&&(s+="..."),X(`${e.value}(${s})`)},"JsdocTypeSymbol"),JsdocTypeParenthesis:a((e,s)=>s(N(e.element)),"JsdocTypeParenthesis"),JsdocTypeMappedType:B,JsdocTypeIndexSignature:B,JsdocTypeImport:B,JsdocTypeKeyof:B,JsdocTypeTuple:B,JsdocTypeTypeof:B,JsdocTypeIntersection:B,JsdocTypeProperty:B,JsdocTypePredicate:B};function wt(e){return pe(dn,e)}a(wt,"catharsisTransform");function te(e){switch(e){case void 0:return"none";case"single":return"single";case"double":return"double"}}a(te,"getQuoteStyle");function Pt(e){switch(e){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}a(Pt,"getMemberType");function Ee(e,s){return s.length===2?{type:e,left:s[0],right:s[1]}:{type:e,left:s[0],right:Ee(e,s.slice(1))}}a(Ee,"nestResults");let mn={JsdocTypeOptional:a((e,s)=>({type:"OPTIONAL",value:s(e.element),meta:{syntax:e.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),"JsdocTypeOptional"),JsdocTypeNullable:a((e,s)=>({type:"NULLABLE",value:s(e.element),meta:{syntax:e.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),"JsdocTypeNullable"),JsdocTypeNotNullable:a((e,s)=>({type:"NOT_NULLABLE",value:s(e.element),meta:{syntax:e.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),"JsdocTypeNotNullable"),JsdocTypeVariadic:a((e,s)=>{let p={type:"VARIADIC",meta:{syntax:e.meta.position==="prefix"?"PREFIX_DOTS":e.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return e.element!==void 0&&(p.value=s(e.element)),p},"JsdocTypeVariadic"),JsdocTypeName:a(e=>({type:"NAME",name:e.value}),"JsdocTypeName"),JsdocTypeTypeof:a((e,s)=>({type:"TYPE_QUERY",name:s(e.element)}),"JsdocTypeTypeof"),JsdocTypeTuple:a((e,s)=>({type:"TUPLE",entries:e.elements.map(s)}),"JsdocTypeTuple"),JsdocTypeKeyof:a((e,s)=>({type:"KEY_QUERY",value:s(e.element)}),"JsdocTypeKeyof"),JsdocTypeImport:a(e=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:te(e.element.meta.quote),string:e.element.value}}),"JsdocTypeImport"),JsdocTypeUndefined:a(()=>({type:"NAME",name:"undefined"}),"JsdocTypeUndefined"),JsdocTypeAny:a(()=>({type:"ANY"}),"JsdocTypeAny"),JsdocTypeFunction:a((e,s)=>{let p=Be(e),d={type:e.arrow?"ARROW":"FUNCTION",params:p.params.map(v=>{if(v.type==="JsdocTypeKeyValue"){if(v.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:v.key,typeName:s(v.right)}}else return s(v)}),new:null,returns:null};return p.this!==void 0?d.this=s(p.this):e.arrow||(d.this=null),p.new!==void 0&&(d.new=s(p.new)),e.returnType!==void 0&&(d.returns=s(e.returnType)),d},"JsdocTypeFunction"),JsdocTypeGeneric:a((e,s)=>{let p={type:"GENERIC",subject:s(e.left),objects:e.elements.map(s),meta:{syntax:e.meta.brackets==="square"?"SQUARE_BRACKET":e.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return e.meta.brackets==="square"&&e.elements[0].type==="JsdocTypeFunction"&&!e.elements[0].parenthesis&&(p.objects[0]={type:"NAME",name:"function"}),p},"JsdocTypeGeneric"),JsdocTypeObjectField:a((e,s)=>{if(typeof e.key!="string")throw new Error("Index signatures and mapped types are not supported");if(e.right===void 0)return{type:"RECORD_ENTRY",key:e.key,quoteStyle:te(e.meta.quote),value:null,readonly:!1};let p=s(e.right);return e.optional&&(p={type:"OPTIONAL",value:p,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:e.key.toString(),quoteStyle:te(e.meta.quote),value:p,readonly:!1}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:a(()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:a((e,s)=>{if(e.right===void 0)return{type:"RECORD_ENTRY",key:e.key,quoteStyle:"none",value:null,readonly:!1};let p=s(e.right);return e.optional&&(p={type:"OPTIONAL",value:p,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:e.key,quoteStyle:"none",value:p,readonly:!1}},"JsdocTypeKeyValue"),JsdocTypeObject:a((e,s)=>{let p=[];for(let d of e.elements)(d.type==="JsdocTypeObjectField"||d.type==="JsdocTypeJsdocObjectField")&&p.push(s(d));return{type:"RECORD",entries:p}},"JsdocTypeObject"),JsdocTypeSpecialNamePath:a(e=>{if(e.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${e.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:te(e.meta.quote),path:e.value}}},"JsdocTypeSpecialNamePath"),JsdocTypeNamePath:a((e,s)=>{let p=!1,d,v;e.right.type==="JsdocTypeSpecialNamePath"&&e.right.specialType==="event"?(p=!0,d=e.right.value,v=te(e.right.meta.quote)):(d=e.right.value,v=te(e.right.meta.quote));let b={type:Pt(e.pathType),owner:s(e.left),name:d,quoteStyle:v,hasEventPrefix:p};if(b.owner.type==="MODULE"){let O=b.owner;return b.owner=b.owner.value,O.value=b,O}else return b},"JsdocTypeNamePath"),JsdocTypeUnion:a((e,s)=>Ee("UNION",e.elements.map(s)),"JsdocTypeUnion"),JsdocTypeParenthesis:a((e,s)=>({type:"PARENTHESIS",value:s(N(e.element))}),"JsdocTypeParenthesis"),JsdocTypeNull:a(()=>({type:"NAME",name:"null"}),"JsdocTypeNull"),JsdocTypeUnknown:a(()=>({type:"UNKNOWN"}),"JsdocTypeUnknown"),JsdocTypeStringValue:a(e=>({type:"STRING_VALUE",quoteStyle:te(e.meta.quote),string:e.value}),"JsdocTypeStringValue"),JsdocTypeIntersection:a((e,s)=>Ee("INTERSECTION",e.elements.map(s)),"JsdocTypeIntersection"),JsdocTypeNumber:a(e=>({type:"NUMBER_VALUE",number:e.value.toString()}),"JsdocTypeNumber"),JsdocTypeSymbol:B,JsdocTypeProperty:B,JsdocTypePredicate:B,JsdocTypeMappedType:B,JsdocTypeIndexSignature:B};function Ot(e){return pe(mn,e)}a(Ot,"jtpTransform");function Nt(){return{JsdocTypeIntersection:a((e,s)=>({type:"JsdocTypeIntersection",elements:e.elements.map(s)}),"JsdocTypeIntersection"),JsdocTypeGeneric:a((e,s)=>({type:"JsdocTypeGeneric",left:s(e.left),elements:e.elements.map(s),meta:{dot:e.meta.dot,brackets:e.meta.brackets}}),"JsdocTypeGeneric"),JsdocTypeNullable:a(e=>e,"JsdocTypeNullable"),JsdocTypeUnion:a((e,s)=>({type:"JsdocTypeUnion",elements:e.elements.map(s)}),"JsdocTypeUnion"),JsdocTypeUnknown:a(e=>e,"JsdocTypeUnknown"),JsdocTypeUndefined:a(e=>e,"JsdocTypeUndefined"),JsdocTypeTypeof:a((e,s)=>({type:"JsdocTypeTypeof",element:s(e.element)}),"JsdocTypeTypeof"),JsdocTypeSymbol:a((e,s)=>{let p={type:"JsdocTypeSymbol",value:e.value};return e.element!==void 0&&(p.element=s(e.element)),p},"JsdocTypeSymbol"),JsdocTypeOptional:a((e,s)=>({type:"JsdocTypeOptional",element:s(e.element),meta:{position:e.meta.position}}),"JsdocTypeOptional"),JsdocTypeObject:a((e,s)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:e.elements.map(s)}),"JsdocTypeObject"),JsdocTypeNumber:a(e=>e,"JsdocTypeNumber"),JsdocTypeNull:a(e=>e,"JsdocTypeNull"),JsdocTypeNotNullable:a((e,s)=>({type:"JsdocTypeNotNullable",element:s(e.element),meta:{position:e.meta.position}}),"JsdocTypeNotNullable"),JsdocTypeSpecialNamePath:a(e=>e,"JsdocTypeSpecialNamePath"),JsdocTypeObjectField:a((e,s)=>({type:"JsdocTypeObjectField",key:e.key,right:e.right===void 0?void 0:s(e.right),optional:e.optional,readonly:e.readonly,meta:e.meta}),"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:a((e,s)=>({type:"JsdocTypeJsdocObjectField",left:s(e.left),right:s(e.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:a((e,s)=>({type:"JsdocTypeKeyValue",key:e.key,right:e.right===void 0?void 0:s(e.right),optional:e.optional,variadic:e.variadic}),"JsdocTypeKeyValue"),JsdocTypeImport:a((e,s)=>({type:"JsdocTypeImport",element:s(e.element)}),"JsdocTypeImport"),JsdocTypeAny:a(e=>e,"JsdocTypeAny"),JsdocTypeStringValue:a(e=>e,"JsdocTypeStringValue"),JsdocTypeNamePath:a(e=>e,"JsdocTypeNamePath"),JsdocTypeVariadic:a((e,s)=>{let p={type:"JsdocTypeVariadic",meta:{position:e.meta.position,squareBrackets:e.meta.squareBrackets}};return e.element!==void 0&&(p.element=s(e.element)),p},"JsdocTypeVariadic"),JsdocTypeTuple:a((e,s)=>({type:"JsdocTypeTuple",elements:e.elements.map(s)}),"JsdocTypeTuple"),JsdocTypeName:a(e=>e,"JsdocTypeName"),JsdocTypeFunction:a((e,s)=>{let p={type:"JsdocTypeFunction",arrow:e.arrow,parameters:e.parameters.map(s),constructor:e.constructor,parenthesis:e.parenthesis};return e.returnType!==void 0&&(p.returnType=s(e.returnType)),p},"JsdocTypeFunction"),JsdocTypeKeyof:a((e,s)=>({type:"JsdocTypeKeyof",element:s(e.element)}),"JsdocTypeKeyof"),JsdocTypeParenthesis:a((e,s)=>({type:"JsdocTypeParenthesis",element:s(e.element)}),"JsdocTypeParenthesis"),JsdocTypeProperty:a(e=>e,"JsdocTypeProperty"),JsdocTypePredicate:a((e,s)=>({type:"JsdocTypePredicate",left:s(e.left),right:s(e.right)}),"JsdocTypePredicate"),JsdocTypeIndexSignature:a((e,s)=>({type:"JsdocTypeIndexSignature",key:e.key,right:s(e.right)}),"JsdocTypeIndexSignature"),JsdocTypeMappedType:a((e,s)=>({type:"JsdocTypeMappedType",key:e.key,right:s(e.right)}),"JsdocTypeMappedType")}}a(Nt,"identityTransformRules");let _t={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"]};function ke(e,s,p,d,v){d==null||d(e,s,p);let b=_t[e.type];for(let O of b){let U=e[O];if(U!==void 0)if(Array.isArray(U))for(let $ of U)ke($,e,O,d,v);else ke(U,e,O,d,v)}v==null||v(e,s,p)}a(ke,"_traverse");function St(e,s,p){ke(e,void 0,void 0,s,p)}a(St,"traverse"),n.catharsisTransform=wt,n.identityTransformRules=Nt,n.jtpTransform=Ot,n.parse=qe,n.stringify=xt,n.stringifyRules=Ge,n.transform=pe,n.traverse=St,n.tryParse=Jt,n.visitorKeys=_t})});const{UnknownArgTypesError:ro}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var Qt=/^['"]|['"]$/g,no=a(r=>r.replace(Qt,""),"trimQuotes"),ao=a(r=>Qt.test(r),"includesQuotes"),Zt=a(r=>{let t=no(r);return ao(r)||Number.isNaN(Number(t))?t:Number(t)},"parseLiteral"),oo=a(r=>{switch(r.type){case"function":return{name:"function"};case"object":let t={};return r.signature.properties.forEach(n=>{t[n.key]=ve(n.value)}),{name:"object",value:t};default:throw new ro({type:r,language:"Typescript"})}},"convertSig"),ve=a(r=>{var i,c,l,u;let{name:t,raw:n}=r,o={};switch(typeof n<"u"&&(o.raw=n),r.name){case"string":case"number":case"symbol":case"boolean":return{...o,name:t};case"Array":return{...o,name:"array",value:r.elements.map(ve)};case"signature":return{...o,...oo(r)};case"union":let y;return(i=r.elements)!=null&&i.every(m=>m.name==="literal")?y={...o,name:"enum",value:(c=r.elements)==null?void 0:c.map(m=>Zt(m.value))}:y={...o,name:t,value:(l=r.elements)==null?void 0:l.map(ve)},y;case"intersection":return{...o,name:t,value:(u=r.elements)==null?void 0:u.map(ve)};default:return{...o,name:"other",value:t}}},"convert");const{UnknownArgTypesError:so}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var io=a(r=>r.name==="literal","isLiteral"),co=a(r=>r.value.replace(/['|"]/g,""),"toEnumOption"),po=a(r=>{switch(r.type){case"function":return{name:"function"};case"object":let t={};return r.signature.properties.forEach(n=>{t[n.key]=he(n.value)}),{name:"object",value:t};default:throw new so({type:r,language:"Flow"})}},"convertSig"),he=a(r=>{var i,c,l,u;let{name:t,raw:n}=r,o={};switch(typeof n<"u"&&(o.raw=n),r.name){case"literal":return{...o,name:"other",value:r.value};case"string":case"number":case"symbol":case"boolean":return{...o,name:t};case"Array":return{...o,name:"array",value:r.elements.map(he)};case"signature":return{...o,...po(r)};case"union":return(i=r.elements)!=null&&i.every(io)?{...o,name:"enum",value:(c=r.elements)==null?void 0:c.map(co)}:{...o,name:t,value:(l=r.elements)==null?void 0:l.map(he)};case"intersection":return{...o,name:t,value:(u=r.elements)==null?void 0:u.map(he)};default:return{...o,name:"other",value:t}}},"convert"),lo=It(eo()),uo=/^\(.*\) => /,Te=a(r=>{let{name:t,raw:n,computed:o,value:i}=r,c={};switch(typeof n<"u"&&(c.raw=n),t){case"enum":{let u=o?i:i.map(y=>Zt(y.value));return{...c,name:t,value:u}}case"string":case"number":case"symbol":return{...c,name:t};case"func":return{...c,name:"function"};case"bool":case"boolean":return{...c,name:"boolean"};case"arrayOf":case"array":return{...c,name:"array",value:i&&Te(i)};case"object":return{...c,name:t};case"objectOf":return{...c,name:t,value:Te(i)};case"shape":case"exact":let l=(0,lo.default)(i,u=>Te(u));return{...c,name:"object",value:l};case"union":return{...c,name:"union",value:i.map(u=>Te(u))};case"instanceOf":case"element":case"elementType":default:{if((t==null?void 0:t.indexOf("|"))>0)try{let m=t.split("|").map(T=>JSON.parse(T));return{...c,name:"enum",value:m}}catch{}let u=i?`${t}(${i})`:t,y=uo.test(t)?"function":"other";return{...c,name:y,value:u}}}},"convert"),tt=a(r=>{let{type:t,tsType:n,flowType:o}=r;try{if(t!=null)return Te(t);if(n!=null)return ve(n);if(o!=null)return he(o)}catch(i){console.error(i)}return null},"convert"),yo=(r=>(r.JAVASCRIPT="JavaScript",r.FLOW="Flow",r.TYPESCRIPT="TypeScript",r.UNKNOWN="Unknown",r))(yo||{}),mo=["null","undefined"];function De(r){return mo.some(t=>t===r)}a(De,"isDefaultValueBlacklisted");var fo=a(r=>{if(!r)return"";if(typeof r=="string")return r;throw new Error(`Description: expected string, got: ${JSON.stringify(r)}`)},"str");function rt(r){return!!r.__docgenInfo}a(rt,"hasDocgen");function er(r){return r!=null&&Object.keys(r).length>0}a(er,"isValidDocgenSection");function tr(r,t){return rt(r)?r.__docgenInfo[t]:null}a(tr,"getDocgenSection");function rr(r){return rt(r)?fo(r.__docgenInfo.description):""}a(rr,"getDocgenDescription");var re;(function(r){r.start="/**",r.nostart="/***",r.delim="*",r.end="*/"})(re=re||(re={}));function nr(r){return/^\s+$/.test(r)}a(nr,"isSpace");function ar(r){let t=r.match(/\r+$/);return t==null?["",r]:[r.slice(-t[0].length),r.slice(0,-t[0].length)]}a(ar,"splitCR");function se(r){let t=r.match(/^\s+/);return t==null?["",r]:[r.slice(0,t[0].length),r.slice(t[0].length)]}a(se,"splitSpace");function or(r){return r.split(/\n/)}a(or,"splitLines");function sr(r={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},r)}a(sr,"seedSpec");function ir(r={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},r)}a(ir,"seedTokens");var To=/^@\S+/;function cr({fence:r="```"}={}){let t=pr(r),n=a((o,i)=>t(o)?!i:i,"toggleFence");return a(function(o){let i=[[]],c=!1;for(let l of o)To.test(l.tokens.description)&&!c?i.push([l]):i[i.length-1].push(l),c=n(l.tokens.description,c);return i},"parseBlock")}a(cr,"getParser");function pr(r){return typeof r=="string"?t=>t.split(r).length%2===0:r}a(pr,"getFencer");function lr({startLine:r=0,markers:t=re}={}){let n=null,o=r;return a(function(i){let c=i,l=ir();if([l.lineEnd,c]=ar(c),[l.start,c]=se(c),n===null&&c.startsWith(t.start)&&!c.startsWith(t.nostart)&&(n=[],l.delimiter=c.slice(0,t.start.length),c=c.slice(t.start.length),[l.postDelimiter,c]=se(c)),n===null)return o++,null;let u=c.trimRight().endsWith(t.end);if(l.delimiter===""&&c.startsWith(t.delim)&&!c.startsWith(t.end)&&(l.delimiter=t.delim,c=c.slice(t.delim.length),[l.postDelimiter,c]=se(c)),u){let y=c.trimRight();l.end=c.slice(y.length-t.end.length),c=y.slice(0,-t.end.length)}if(l.description=c,n.push({number:o,source:i,tokens:l}),o++,u){let y=n.slice();return n=null,y}return null},"parseSource")}a(lr,"getParser");function ur({tokenizers:r}){return a(function(t){var n;let o=sr({source:t});for(let i of r)if(o=i(o),!((n=o.problems[o.problems.length-1])===null||n===void 0)&&n.critical)break;return o},"parseSpec")}a(ur,"getParser");function yr(){return r=>{let{tokens:t}=r.source[0],n=t.description.match(/\s*(@(\S+))(\s*)/);return n===null?(r.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:r.source[0].number,critical:!0}),r):(t.tag=n[1],t.postTag=n[3],t.description=t.description.slice(n[0].length),r.tag=n[2],r)}}a(yr,"tagTokenizer");function dr(r="compact"){let t=mr(r);return n=>{let o=0,i=[];for(let[u,{tokens:y}]of n.source.entries()){let m="";if(u===0&&y.description[0]!=="{")return n;for(let T of y.description)if(T==="{"&&o++,T==="}"&&o--,m+=T,o===0)break;if(i.push([y,m]),o===0)break}if(o!==0)return n.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:n.source[0].number,critical:!0}),n;let c=[],l=i[0][0].postDelimiter.length;for(let[u,[y,m]]of i.entries())y.type=m,u>0&&(y.type=y.postDelimiter.slice(l)+m,y.postDelimiter=y.postDelimiter.slice(0,l)),[y.postType,y.description]=se(y.description.slice(m.length)),c.push(y.type);return c[0]=c[0].slice(1),c[c.length-1]=c[c.length-1].slice(0,-1),n.type=t(c),n}}a(dr,"typeTokenizer");var vo=a(r=>r.trim(),"trim");function mr(r){return r==="compact"?t=>t.map(vo).join(""):r==="preserve"?t=>t.join(` `):r}a(mr,"getJoiner");var ho=a(r=>r&&r.startsWith('"')&&r.endsWith('"'),"isQuoted");function fr(){let r=a((t,{tokens:n},o)=>n.type===""?t:o,"typeEnd");return t=>{let{tokens:n}=t.source[t.source.reduce(r,0)],o=n.description.trimLeft(),i=o.split('"');if(i.length>1&&i[0]===""&&i.length%2===1)return t.name=i[1],n.name=`"${i[1]}"`,[n.postName,n.description]=se(o.slice(n.name.length)),t;let c=0,l="",u=!1,y;for(let T of o){if(c===0&&nr(T))break;T==="["&&c++,T==="]"&&c--,l+=T}if(c!==0)return t.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:t.source[0].number,critical:!0}),t;let m=l;if(l[0]==="["&&l[l.length-1]==="]"){u=!0,l=l.slice(1,-1);let T=l.split("=");if(l=T[0].trim(),T[1]!==void 0&&(y=T.slice(1).join("=").trim()),l==="")return t.problems.push({code:"spec:name:empty-name",message:"empty name",line:t.source[0].number,critical:!0}),t;if(y==="")return t.problems.push({code:"spec:name:empty-default",message:"empty default value",line:t.source[0].number,critical:!0}),t;if(!ho(y)&&/=(?!>)/.test(y))return t.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:t.source[0].number,critical:!0}),t}return t.optional=u,t.name=l,n.name=m,y!==void 0&&(t.default=y),[n.postName,n.description]=se(o.slice(n.name.length)),t}}a(fr,"nameTokenizer");function Tr(r="compact",t=re){let n=nt(r);return o=>(o.description=n(o.source,t),o)}a(Tr,"descriptionTokenizer");function nt(r){return r==="compact"?vr:r==="preserve"?hr:r}a(nt,"getJoiner");function vr(r,t=re){return r.map(({tokens:{description:n}})=>n.trim()).filter(n=>n!=="").join(" ")}a(vr,"compactJoiner");var go=a((r,{tokens:t},n)=>t.type===""?r:n,"lineNo"),bo=a(({tokens:r})=>(r.delimiter===""?r.start:r.postDelimiter.slice(1))+r.description,"getDescription");function hr(r,t=re){if(r.length===0)return"";r[0].tokens.description===""&&r[0].tokens.delimiter===t.start&&(r=r.slice(1));let n=r[r.length-1];return n!==void 0&&n.tokens.description===""&&n.tokens.end.endsWith(t.end)&&(r=r.slice(0,-1)),r=r.slice(r.reduce(go,0)),r.map(bo).join(` `)}a(hr,"preserveJoiner");function gr({startLine:r=0,fence:t="```",spacing:n="compact",markers:o=re,tokenizers:i=[yr(),dr(n),fr(),Tr(n)]}={}){if(r<0||r%1>0)throw new Error("Invalid startLine");let c=lr({startLine:r,markers:o}),l=cr({fence:t}),u=ur({tokenizers:i}),y=nt(n);return function(m){let T=[];for(let h of or(m)){let x=c(h);if(x===null)continue;let g=l(x),w=g.slice(1).map(u);T.push({description:y(g[0],o),tags:w,source:x,problems:w.reduce((_,L)=>_.concat(L.problems),[])})}return T}}a(gr,"getParser");function br(r){return r.start+r.delimiter+r.postDelimiter+r.tag+r.postTag+r.type+r.postType+r.name+r.postName+r.description+r.end+r.lineEnd}a(br,"join");function Jo(){return r=>r.source.map(({tokens:t})=>br(t)).join(` `)}a(Jo,"getStringifier");function Jr(r,t={}){return gr(t)(r)}a(Jr,"parse");var at=It(to());function xr(r){return r!=null&&r.includes("@")}a(xr,"containsJsDoc");function wr(r){let t=`/** diff --git a/assets/path-DPor8ESZ.js b/assets/path-8_1M5Knd.js similarity index 91% rename from assets/path-DPor8ESZ.js rename to assets/path-8_1M5Knd.js index 59ddb072d..a64c38bf2 100644 --- a/assets/path-DPor8ESZ.js +++ b/assets/path-8_1M5Knd.js @@ -1 +1 @@ -import"./iframe-BnffqoK7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="908bd7e1-d8c6-402a-97a5-cbffb973cf9b",e._sentryDebugIdIdentifier="sentry-dbid-908bd7e1-d8c6-402a-97a5-cbffb973cf9b")}catch{}})();const o={ROOT:"/",LANDING:"/",LOGIN:"/login",SIGNUP:"/signup",SIGNUP_INFO:"/signup-info",SIGNUP_UNIV:"/signup-univ",PASSWORD_AUTH:"/password-auth",PASSWORD_RESET:"/password-reset",DASHBOARD:"/dashboard",ARCHIVING:"/archiving",SHOWCASE:"/showcase",DRIVE:"/drive",DELETED:"/deleted",HANDOVER:"/handover",HANDOVER_NOTE:"/handover/note",COMING_SOON:"/comingsoon"};export{o as P}; +import"./iframe-AJyGuqY3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="908bd7e1-d8c6-402a-97a5-cbffb973cf9b",e._sentryDebugIdIdentifier="sentry-dbid-908bd7e1-d8c6-402a-97a5-cbffb973cf9b")}catch{}})();const o={ROOT:"/",LANDING:"/",LOGIN:"/login",SIGNUP:"/signup",SIGNUP_INFO:"/signup-info",SIGNUP_UNIV:"/signup-univ",PASSWORD_AUTH:"/password-auth",PASSWORD_RESET:"/password-reset",DASHBOARD:"/dashboard",ARCHIVING:"/archiving",SHOWCASE:"/showcase",DRIVE:"/drive",DELETED:"/deleted",HANDOVER:"/handover",HANDOVER_NOTE:"/handover/note",COMING_SOON:"/comingsoon"};export{o as P}; diff --git a/assets/preview-BUgjy1AX.js b/assets/preview-BBdobtET.js similarity index 96% rename from assets/preview-BUgjy1AX.js rename to assets/preview-BBdobtET.js index 40738d4c4..ecd9ce6bd 100644 --- a/assets/preview-BUgjy1AX.js +++ b/assets/preview-BBdobtET.js @@ -1,4 +1,4 @@ -var B=t=>{throw TypeError(t)};var G=(t,e,s)=>e.has(t)||B("Cannot "+s);var a=(t,e,s)=>(G(t,e,"read from private field"),s?s.call(t):e.get(t)),c=(t,e,s)=>e.has(t)?B("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),o=(t,e,s,r)=>(G(t,e,"write to private field"),r?r.call(t,s):e.set(t,s),s);var F=(t,e,s,r)=>({set _(i){o(t,e,i,s)},get _(){return a(t,e,r)}});import{c as ie,a as E,j as ne,G as ue,T as oe}from"./emotion-react.browser.esm-DVCGPw0o.js";import{S as Y,h as ee,Q as he,n as l,m as U,M as le,a as V,b as g,e as ce,c as fe,d as de,f as ye,o as z,r as $,g as ge,i as x,p as L,s as me,j as pe}from"./QueryClientProvider-CVYF4Mhz.js";import"./iframe-BnffqoK7.js";import{t as be}from"./theme-DwD7F4-e.js";import{M as ve}from"./index-BZ6RFkQt.js";import"./index-B4Z6PsAH.js";import"./_commonjsHelpers-XnwbWaTF.js";import"./extends-ClQVCWlZ.js";import"../sb-preview/runtime.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="7cef4699-cc4f-4ccc-a97a-94f3f4dc2f79",t._sentryDebugIdIdentifier="sentry-dbid-7cef4699-cc4f-4ccc-a97a-94f3f4dc2f79")}catch{}})();var y,J,Pe=(J=class extends Y{constructor(e={}){super();c(this,y);this.config=e,o(this,y,new Map)}build(e,s,r){const i=s.queryKey,u=s.queryHash??ee(i,s);let f=this.get(u);return f||(f=new he({cache:this,queryKey:i,queryHash:u,options:e.defaultQueryOptions(s),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(f)),f}add(e){a(this,y).has(e.queryHash)||(a(this,y).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const s=a(this,y).get(e.queryHash);s&&(e.destroy(),s===e&&a(this,y).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){l.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return a(this,y).get(e)}getAll(){return[...a(this,y).values()]}find(e){const s={exact:!0,...e};return this.getAll().find(r=>U(s,r))}findAll(e={}){const s=this.getAll();return Object.keys(e).length>0?s.filter(r=>U(e,r)):s}notify(e){l.batch(()=>{this.listeners.forEach(s=>{s(e)})})}onFocus(){l.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){l.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},y=new WeakMap,J),h,A,W,Qe=(W=class extends Y{constructor(e={}){super();c(this,h);c(this,A);this.config=e,o(this,h,new Map),o(this,A,Date.now())}build(e,s,r){const i=new le({mutationCache:this,mutationId:++F(this,A)._,options:e.defaultMutationOptions(s),state:r});return this.add(i),i}add(e){const s=S(e),r=a(this,h).get(s)??[];r.push(e),a(this,h).set(s,r),this.notify({type:"added",mutation:e})}remove(e){var r;const s=S(e);if(a(this,h).has(s)){const i=(r=a(this,h).get(s))==null?void 0:r.filter(u=>u!==e);i&&(i.length===0?a(this,h).delete(s):a(this,h).set(s,i))}this.notify({type:"removed",mutation:e})}canRun(e){var r;const s=(r=a(this,h).get(S(e)))==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===e}runNext(e){var r;const s=(r=a(this,h).get(S(e)))==null?void 0:r.find(i=>i!==e&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}clear(){l.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...a(this,h).values()].flat()}find(e){const s={exact:!0,...e};return this.getAll().find(r=>V(s,r))}findAll(e={}){return this.getAll().filter(s=>V(e,s))}notify(e){l.batch(()=>{this.listeners.forEach(s=>{s(e)})})}resumePausedMutations(){const e=this.getAll().filter(s=>s.state.isPaused);return l.batch(()=>Promise.all(e.map(s=>s.continue().catch(g))))}},h=new WeakMap,A=new WeakMap,W);function S(t){var e;return((e=t.options.scope)==null?void 0:e.id)??String(t.mutationId)}function Oe(t){return{onFetch:(e,s)=>{const r=async()=>{var T,H,k,j,R;const i=e.options,u=(k=(H=(T=e.fetchOptions)==null?void 0:T.meta)==null?void 0:H.fetchMore)==null?void 0:k.direction,f=((j=e.state.data)==null?void 0:j.pages)||[],K=((R=e.state.data)==null?void 0:R.pageParams)||[],te={pages:[],pageParams:[]};let C=!1;const se=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(e.signal.aborted?C=!0:e.signal.addEventListener("abort",()=>{C=!0}),e.signal)})},re=ce(e.options,e.fetchOptions),I=async(d,m,P)=>{if(C)return Promise.reject();if(m==null&&d.pages.length)return Promise.resolve(d);const q={queryKey:e.queryKey,pageParam:m,direction:P?"backward":"forward",meta:e.options.meta};se(q);const ae=await re(q),{maxPages:_}=e.options,N=P?fe:de;return{pages:N(d.pages,ae,_),pageParams:N(d.pageParams,m,_)}};let Q;if(u&&f.length){const d=u==="backward",m=d?we:Z,P={pages:f,pageParams:K},q=m(i,P);Q=await I(P,q,d)}else{Q=await I(te,K[0]??i.initialPageParam);const d=t??f.length;for(let m=1;m{var i,u;return(u=(i=e.options).persister)==null?void 0:u.call(i,r,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},s)}:e.fetchFn=r}}}function Z(t,{pages:e,pageParams:s}){const r=e.length-1;return t.getNextPageParam(e[r],e,s[r],s)}function we(t,{pages:e,pageParams:s}){var r;return(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,s[0],s)}var n,p,b,O,w,v,M,D,X,Me=(X=class{constructor(t={}){c(this,n);c(this,p);c(this,b);c(this,O);c(this,w);c(this,v);c(this,M);c(this,D);o(this,n,t.queryCache||new Pe),o(this,p,t.mutationCache||new Qe),o(this,b,t.defaultOptions||{}),o(this,O,new Map),o(this,w,new Map),o(this,v,0)}mount(){F(this,v)._++,a(this,v)===1&&(o(this,M,ye.subscribe(async t=>{t&&(await this.resumePausedMutations(),a(this,n).onFocus())})),o(this,D,z.subscribe(async t=>{t&&(await this.resumePausedMutations(),a(this,n).onOnline())})))}unmount(){var t,e;F(this,v)._--,a(this,v)===0&&((t=a(this,M))==null||t.call(this),o(this,M,void 0),(e=a(this,D))==null||e.call(this),o(this,D,void 0))}isFetching(t){return a(this,n).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return a(this,p).findAll({...t,status:"pending"}).length}getQueryData(t){var s;const e=this.defaultQueryOptions({queryKey:t});return(s=a(this,n).get(e.queryHash))==null?void 0:s.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);if(e===void 0)return this.fetchQuery(t);{const s=this.defaultQueryOptions(t),r=a(this,n).build(this,s);return t.revalidateIfStale&&r.isStaleByTime($(s.staleTime,r))&&this.prefetchQuery(s),Promise.resolve(e)}}getQueriesData(t){return a(this,n).findAll(t).map(({queryKey:e,state:s})=>{const r=s.data;return[e,r]})}setQueryData(t,e,s){const r=this.defaultQueryOptions({queryKey:t}),i=a(this,n).get(r.queryHash),u=i==null?void 0:i.state.data,f=ge(e,u);if(f!==void 0)return a(this,n).build(this,r).setData(f,{...s,manual:!0})}setQueriesData(t,e,s){return l.batch(()=>a(this,n).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,s)]))}getQueryState(t){var s;const e=this.defaultQueryOptions({queryKey:t});return(s=a(this,n).get(e.queryHash))==null?void 0:s.state}removeQueries(t){const e=a(this,n);l.batch(()=>{e.findAll(t).forEach(s=>{e.remove(s)})})}resetQueries(t,e){const s=a(this,n),r={type:"active",...t};return l.batch(()=>(s.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries(r,e)))}cancelQueries(t={},e={}){const s={revert:!0,...e},r=l.batch(()=>a(this,n).findAll(t).map(i=>i.cancel(s)));return Promise.all(r).then(g).catch(g)}invalidateQueries(t={},e={}){return l.batch(()=>{if(a(this,n).findAll(t).forEach(r=>{r.invalidate()}),t.refetchType==="none")return Promise.resolve();const s={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(s,e)})}refetchQueries(t={},e){const s={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},r=l.batch(()=>a(this,n).findAll(t).filter(i=>!i.isDisabled()).map(i=>{let u=i.fetch(void 0,s);return s.throwOnError||(u=u.catch(g)),i.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(r).then(g)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const s=a(this,n).build(this,e);return s.isStaleByTime($(e.staleTime,s))?s.fetch(e):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(g).catch(g)}fetchInfiniteQuery(t){return t.behavior=Oe(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(g).catch(g)}resumePausedMutations(){return z.isOnline()?a(this,p).resumePausedMutations():Promise.resolve()}getQueryCache(){return a(this,n)}getMutationCache(){return a(this,p)}getDefaultOptions(){return a(this,b)}setDefaultOptions(t){o(this,b,t)}setQueryDefaults(t,e){a(this,O).set(x(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...a(this,O).values()];let s={};return e.forEach(r=>{L(t,r.queryKey)&&(s={...s,...r.defaultOptions})}),s}setMutationDefaults(t,e){a(this,w).set(x(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...a(this,w).values()];let s={};return e.forEach(r=>{L(t,r.mutationKey)&&(s={...s,...r.defaultOptions})}),s}defaultQueryOptions(t){if(t._defaulted)return t;const e={...a(this,b).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=ee(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.enabled!==!0&&e.queryFn===me&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...a(this,b).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){a(this,n).clear(),a(this,p).clear()}},n=new WeakMap,p=new WeakMap,b=new WeakMap,O=new WeakMap,w=new WeakMap,v=new WeakMap,M=new WeakMap,D=new WeakMap,X);const De=ie` +var B=t=>{throw TypeError(t)};var G=(t,e,s)=>e.has(t)||B("Cannot "+s);var a=(t,e,s)=>(G(t,e,"read from private field"),s?s.call(t):e.get(t)),c=(t,e,s)=>e.has(t)?B("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),o=(t,e,s,r)=>(G(t,e,"write to private field"),r?r.call(t,s):e.set(t,s),s);var F=(t,e,s,r)=>({set _(i){o(t,e,i,s)},get _(){return a(t,e,r)}});import{c as ie,a as E,j as ne,G as ue,T as oe}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{S as Y,h as ee,Q as he,n as l,m as U,M as le,a as V,b as g,e as ce,c as fe,d as de,f as ye,o as z,r as $,g as ge,i as x,p as L,s as me,j as pe}from"./QueryClientProvider-BufXlfUi.js";import"./iframe-AJyGuqY3.js";import{t as be}from"./theme-Cuq_aI8Z.js";import{M as ve}from"./index-CuYyT4jL.js";import"./index-Bs6nXyGp.js";import"./_commonjsHelpers-Dq6BK7nx.js";import"./extends-ClQVCWlZ.js";import"../sb-preview/runtime.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="7cef4699-cc4f-4ccc-a97a-94f3f4dc2f79",t._sentryDebugIdIdentifier="sentry-dbid-7cef4699-cc4f-4ccc-a97a-94f3f4dc2f79")}catch{}})();var y,J,Pe=(J=class extends Y{constructor(e={}){super();c(this,y);this.config=e,o(this,y,new Map)}build(e,s,r){const i=s.queryKey,u=s.queryHash??ee(i,s);let f=this.get(u);return f||(f=new he({cache:this,queryKey:i,queryHash:u,options:e.defaultQueryOptions(s),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(f)),f}add(e){a(this,y).has(e.queryHash)||(a(this,y).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const s=a(this,y).get(e.queryHash);s&&(e.destroy(),s===e&&a(this,y).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){l.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return a(this,y).get(e)}getAll(){return[...a(this,y).values()]}find(e){const s={exact:!0,...e};return this.getAll().find(r=>U(s,r))}findAll(e={}){const s=this.getAll();return Object.keys(e).length>0?s.filter(r=>U(e,r)):s}notify(e){l.batch(()=>{this.listeners.forEach(s=>{s(e)})})}onFocus(){l.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){l.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},y=new WeakMap,J),h,A,W,Qe=(W=class extends Y{constructor(e={}){super();c(this,h);c(this,A);this.config=e,o(this,h,new Map),o(this,A,Date.now())}build(e,s,r){const i=new le({mutationCache:this,mutationId:++F(this,A)._,options:e.defaultMutationOptions(s),state:r});return this.add(i),i}add(e){const s=S(e),r=a(this,h).get(s)??[];r.push(e),a(this,h).set(s,r),this.notify({type:"added",mutation:e})}remove(e){var r;const s=S(e);if(a(this,h).has(s)){const i=(r=a(this,h).get(s))==null?void 0:r.filter(u=>u!==e);i&&(i.length===0?a(this,h).delete(s):a(this,h).set(s,i))}this.notify({type:"removed",mutation:e})}canRun(e){var r;const s=(r=a(this,h).get(S(e)))==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===e}runNext(e){var r;const s=(r=a(this,h).get(S(e)))==null?void 0:r.find(i=>i!==e&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}clear(){l.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...a(this,h).values()].flat()}find(e){const s={exact:!0,...e};return this.getAll().find(r=>V(s,r))}findAll(e={}){return this.getAll().filter(s=>V(e,s))}notify(e){l.batch(()=>{this.listeners.forEach(s=>{s(e)})})}resumePausedMutations(){const e=this.getAll().filter(s=>s.state.isPaused);return l.batch(()=>Promise.all(e.map(s=>s.continue().catch(g))))}},h=new WeakMap,A=new WeakMap,W);function S(t){var e;return((e=t.options.scope)==null?void 0:e.id)??String(t.mutationId)}function Oe(t){return{onFetch:(e,s)=>{const r=async()=>{var T,H,k,j,R;const i=e.options,u=(k=(H=(T=e.fetchOptions)==null?void 0:T.meta)==null?void 0:H.fetchMore)==null?void 0:k.direction,f=((j=e.state.data)==null?void 0:j.pages)||[],K=((R=e.state.data)==null?void 0:R.pageParams)||[],te={pages:[],pageParams:[]};let C=!1;const se=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(e.signal.aborted?C=!0:e.signal.addEventListener("abort",()=>{C=!0}),e.signal)})},re=ce(e.options,e.fetchOptions),I=async(d,m,P)=>{if(C)return Promise.reject();if(m==null&&d.pages.length)return Promise.resolve(d);const q={queryKey:e.queryKey,pageParam:m,direction:P?"backward":"forward",meta:e.options.meta};se(q);const ae=await re(q),{maxPages:_}=e.options,N=P?fe:de;return{pages:N(d.pages,ae,_),pageParams:N(d.pageParams,m,_)}};let Q;if(u&&f.length){const d=u==="backward",m=d?we:Z,P={pages:f,pageParams:K},q=m(i,P);Q=await I(P,q,d)}else{Q=await I(te,K[0]??i.initialPageParam);const d=t??f.length;for(let m=1;m{var i,u;return(u=(i=e.options).persister)==null?void 0:u.call(i,r,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},s)}:e.fetchFn=r}}}function Z(t,{pages:e,pageParams:s}){const r=e.length-1;return t.getNextPageParam(e[r],e,s[r],s)}function we(t,{pages:e,pageParams:s}){var r;return(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,s[0],s)}var n,p,b,O,w,v,M,D,X,Me=(X=class{constructor(t={}){c(this,n);c(this,p);c(this,b);c(this,O);c(this,w);c(this,v);c(this,M);c(this,D);o(this,n,t.queryCache||new Pe),o(this,p,t.mutationCache||new Qe),o(this,b,t.defaultOptions||{}),o(this,O,new Map),o(this,w,new Map),o(this,v,0)}mount(){F(this,v)._++,a(this,v)===1&&(o(this,M,ye.subscribe(async t=>{t&&(await this.resumePausedMutations(),a(this,n).onFocus())})),o(this,D,z.subscribe(async t=>{t&&(await this.resumePausedMutations(),a(this,n).onOnline())})))}unmount(){var t,e;F(this,v)._--,a(this,v)===0&&((t=a(this,M))==null||t.call(this),o(this,M,void 0),(e=a(this,D))==null||e.call(this),o(this,D,void 0))}isFetching(t){return a(this,n).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return a(this,p).findAll({...t,status:"pending"}).length}getQueryData(t){var s;const e=this.defaultQueryOptions({queryKey:t});return(s=a(this,n).get(e.queryHash))==null?void 0:s.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);if(e===void 0)return this.fetchQuery(t);{const s=this.defaultQueryOptions(t),r=a(this,n).build(this,s);return t.revalidateIfStale&&r.isStaleByTime($(s.staleTime,r))&&this.prefetchQuery(s),Promise.resolve(e)}}getQueriesData(t){return a(this,n).findAll(t).map(({queryKey:e,state:s})=>{const r=s.data;return[e,r]})}setQueryData(t,e,s){const r=this.defaultQueryOptions({queryKey:t}),i=a(this,n).get(r.queryHash),u=i==null?void 0:i.state.data,f=ge(e,u);if(f!==void 0)return a(this,n).build(this,r).setData(f,{...s,manual:!0})}setQueriesData(t,e,s){return l.batch(()=>a(this,n).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,s)]))}getQueryState(t){var s;const e=this.defaultQueryOptions({queryKey:t});return(s=a(this,n).get(e.queryHash))==null?void 0:s.state}removeQueries(t){const e=a(this,n);l.batch(()=>{e.findAll(t).forEach(s=>{e.remove(s)})})}resetQueries(t,e){const s=a(this,n),r={type:"active",...t};return l.batch(()=>(s.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries(r,e)))}cancelQueries(t={},e={}){const s={revert:!0,...e},r=l.batch(()=>a(this,n).findAll(t).map(i=>i.cancel(s)));return Promise.all(r).then(g).catch(g)}invalidateQueries(t={},e={}){return l.batch(()=>{if(a(this,n).findAll(t).forEach(r=>{r.invalidate()}),t.refetchType==="none")return Promise.resolve();const s={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(s,e)})}refetchQueries(t={},e){const s={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},r=l.batch(()=>a(this,n).findAll(t).filter(i=>!i.isDisabled()).map(i=>{let u=i.fetch(void 0,s);return s.throwOnError||(u=u.catch(g)),i.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(r).then(g)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const s=a(this,n).build(this,e);return s.isStaleByTime($(e.staleTime,s))?s.fetch(e):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(g).catch(g)}fetchInfiniteQuery(t){return t.behavior=Oe(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(g).catch(g)}resumePausedMutations(){return z.isOnline()?a(this,p).resumePausedMutations():Promise.resolve()}getQueryCache(){return a(this,n)}getMutationCache(){return a(this,p)}getDefaultOptions(){return a(this,b)}setDefaultOptions(t){o(this,b,t)}setQueryDefaults(t,e){a(this,O).set(x(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...a(this,O).values()];let s={};return e.forEach(r=>{L(t,r.queryKey)&&(s={...s,...r.defaultOptions})}),s}setMutationDefaults(t,e){a(this,w).set(x(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...a(this,w).values()];let s={};return e.forEach(r=>{L(t,r.mutationKey)&&(s={...s,...r.defaultOptions})}),s}defaultQueryOptions(t){if(t._defaulted)return t;const e={...a(this,b).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=ee(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.enabled!==!0&&e.queryFn===me&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...a(this,b).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){a(this,n).clear(),a(this,p).clear()}},n=new WeakMap,p=new WeakMap,b=new WeakMap,O=new WeakMap,w=new WeakMap,v=new WeakMap,M=new WeakMap,D=new WeakMap,X);const De=ie` * { padding: 0; margin: 0; diff --git a/assets/preview-BgSD07K3.js b/assets/preview-Bzjl1GZu.js similarity index 76% rename from assets/preview-BgSD07K3.js rename to assets/preview-Bzjl1GZu.js index a50ccaa4e..7c203a712 100644 --- a/assets/preview-BgSD07K3.js +++ b/assets/preview-Bzjl1GZu.js @@ -1,2 +1,2 @@ -const __vite__fileDeps=["./axe-DKSXRCTo.js","./_commonjsHelpers-XnwbWaTF.js","./iframe-BnffqoK7.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{_ as O}from"./iframe-BnffqoK7.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof i<"u"?i:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a333ee97-4b95-423a-a4e3-94d7d0a2134d",e._sentryDebugIdIdentifier="sentry-dbid-a333ee97-4b95-423a-a4e3-94d7d0a2134d")}catch{}})();const{global:i}=__STORYBOOK_MODULE_GLOBAL__,{addons:N}=__STORYBOOK_MODULE_PREVIEW_API__;var o="storybook/a11y",g=`${o}/result`,I=`${o}/request`,S=`${o}/running`,b=`${o}/error`,D=`${o}/manual`,a={RESULT:g,REQUEST:I,RUNNING:S,ERROR:b,MANUAL:D},{document:U}=i,n=N.getChannel(),s=!1,d,f={config:{},options:{}},L=async(e,t)=>{t!=null&&t.manual||await _(e,t??f)},_=async(e,t=f)=>{d=e;try{if(!s){s=!0,n.emit(a.RUNNING);let{default:r}=await O(()=>import("./axe-DKSXRCTo.js").then(m=>m.a),__vite__mapDeps([0,1,2]),import.meta.url),{element:c="#storybook-root",config:l,options:y={}}=t,u=U.querySelector(c);if(!u)return;r.reset(),l&&r.configure(l);let E=await r.run(u,y),R=JSON.parse(JSON.stringify(E));d===e?n.emit(a.RESULT,R):(s=!1,_(d))}}catch(r){n.emit(a.ERROR,r)}finally{s=!1}};n.on(a.REQUEST,L);n.on(a.MANUAL,_); +const __vite__fileDeps=["./axe-CqI-cweo.js","./_commonjsHelpers-Dq6BK7nx.js","./iframe-AJyGuqY3.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{_ as O}from"./iframe-AJyGuqY3.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof i<"u"?i:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a333ee97-4b95-423a-a4e3-94d7d0a2134d",e._sentryDebugIdIdentifier="sentry-dbid-a333ee97-4b95-423a-a4e3-94d7d0a2134d")}catch{}})();const{global:i}=__STORYBOOK_MODULE_GLOBAL__,{addons:N}=__STORYBOOK_MODULE_PREVIEW_API__;var o="storybook/a11y",g=`${o}/result`,I=`${o}/request`,S=`${o}/running`,b=`${o}/error`,D=`${o}/manual`,a={RESULT:g,REQUEST:I,RUNNING:S,ERROR:b,MANUAL:D},{document:U}=i,n=N.getChannel(),s=!1,d,f={config:{},options:{}},L=async(e,t)=>{t!=null&&t.manual||await _(e,t??f)},_=async(e,t=f)=>{d=e;try{if(!s){s=!0,n.emit(a.RUNNING);let{default:r}=await O(()=>import("./axe-CqI-cweo.js").then(m=>m.a),__vite__mapDeps([0,1,2]),import.meta.url),{element:c="#storybook-root",config:l,options:y={}}=t,u=U.querySelector(c);if(!u)return;r.reset(),l&&r.configure(l);let E=await r.run(u,y),R=JSON.parse(JSON.stringify(E));d===e?n.emit(a.RESULT,R):(s=!1,_(d))}}catch(r){n.emit(a.ERROR,r)}finally{s=!1}};n.on(a.REQUEST,L);n.on(a.MANUAL,_); diff --git a/assets/preview-nfUgTCsP.js b/assets/preview-CjoBTVcJ.js similarity index 68% rename from assets/preview-nfUgTCsP.js rename to assets/preview-CjoBTVcJ.js index c8f7c377e..8116b587e 100644 --- a/assets/preview-nfUgTCsP.js +++ b/assets/preview-CjoBTVcJ.js @@ -1,2 +1,2 @@ -const __vite__fileDeps=["./DocsRenderer-PKQXORMH-Df6NR3vH.js","./iframe-BnffqoK7.js","./index-B4Z6PsAH.js","./_commonjsHelpers-XnwbWaTF.js","./react-18-C2ppDB-h.js","./index-C_edrjnw.js","./index-CBYM4yTB.js","./extends-ClQVCWlZ.js","./isArray-BI8z6s7d.js","./index-BWTWe0Km.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{_ as s}from"./iframe-BnffqoK7.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof d<"u"?d:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="baf480c8-7e8c-49d8-904b-bcf95bc96d6e",e._sentryDebugIdIdentifier="sentry-dbid-baf480c8-7e8c-49d8-904b-bcf95bc96d6e")}catch{}})();const{global:d}=__STORYBOOK_MODULE_GLOBAL__;var o=Object.entries(d.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,n]=r;return n.excludeFromDocsStories&&(e[t]=!0),e},{}),c={docs:{renderer:async()=>{let{DocsRenderer:e}=await s(()=>import("./DocsRenderer-PKQXORMH-Df6NR3vH.js").then(r=>r.ai),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>o[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{c as parameters}; +const __vite__fileDeps=["./DocsRenderer-PKQXORMH-CLTnEESS.js","./iframe-AJyGuqY3.js","./index-Bs6nXyGp.js","./_commonjsHelpers-Dq6BK7nx.js","./react-18-CzVEcH-F.js","./index-BHRAuaXy.js","./index-CBYM4yTB.js","./extends-ClQVCWlZ.js","./isArray-vVmlok3Z.js","./index-BWTWe0Km.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{_ as s}from"./iframe-AJyGuqY3.js";import"../sb-preview/runtime.js";(function(){try{var e=typeof window<"u"?window:typeof d<"u"?d:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="baf480c8-7e8c-49d8-904b-bcf95bc96d6e",e._sentryDebugIdIdentifier="sentry-dbid-baf480c8-7e8c-49d8-904b-bcf95bc96d6e")}catch{}})();const{global:d}=__STORYBOOK_MODULE_GLOBAL__;var o=Object.entries(d.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,n]=r;return n.excludeFromDocsStories&&(e[t]=!0),e},{}),c={docs:{renderer:async()=>{let{DocsRenderer:e}=await s(()=>import("./DocsRenderer-PKQXORMH-CLTnEESS.js").then(r=>r.ai),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>o[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{c as parameters}; diff --git a/assets/proxy-4sgmHMJ7.js b/assets/proxy-BfgkLHSP.js similarity index 99% rename from assets/proxy-4sgmHMJ7.js rename to assets/proxy-BfgkLHSP.js index f5fb56206..91581dab7 100644 --- a/assets/proxy-4sgmHMJ7.js +++ b/assets/proxy-BfgkLHSP.js @@ -1 +1 @@ -import{b as le}from"./emotion-react.browser.esm-DVCGPw0o.js";import{r as P}from"./index-B4Z6PsAH.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="e274d3ba-860a-4731-9480-d498d3f94352",t._sentryDebugIdIdentifier="sentry-dbid-e274d3ba-860a-4731-9480-d498d3f94352")}catch{}})();function zi(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...s)=>t(...s);return new Proxy(n,{get:(s,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}function _t(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const ue=t=>Array.isArray(t);function vs(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function we(t,e,n,s){if(typeof e=="function"){const[i,r]=on(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=on(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function Kt(t,e,n){const s=t.getProps();return we(s,e,n!==void 0?n:s.custom,t)}const Ve=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ce=["initial",...Ve],wt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],it=new Set(wt),G=t=>t*1e3,$=t=>t/1e3,Hi={type:"spring",stiffness:500,damping:25,restSpeed:10},Xi=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Yi={type:"keyframes",duration:.8},qi={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Zi=(t,{keyframes:e})=>e.length>2?Yi:it.has(t)?t.startsWith("scale")?Xi(e[1]):Hi:qi;function Me(t,e){return t?t[e]||t.default||t:void 0}const Ji={skipAnimations:!1,useManualTiming:!1},Qi=t=>t!==null;function Wt(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(Qi),r=e&&n!=="loop"&&e%2===1?0:i.length-1;return!r||s===void 0?i[r]:s}const L=t=>t;function to(t){let e=new Set,n=new Set,s=!1,i=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){r.has(u)&&(l.schedule(u),t()),u(o)}const l={schedule:(u,c=!1,h=!1)=>{const d=h&&s?e:n;return c&&r.add(u),d.has(u)||d.add(u),u},cancel:u=>{n.delete(u),r.delete(u)},process:u=>{if(o=u,s){i=!0;return}s=!0,[e,n]=[n,e],n.clear(),e.forEach(a),s=!1,i&&(i=!1,l.process(u))}};return l}const Mt=["read","resolveKeyframes","update","preRender","render","postRender"],eo=40;function Ts(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Mt.reduce((m,T)=>(m[T]=to(r),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:f}=o,d=()=>{const m=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(m-i.timestamp,eo),1),i.timestamp=m,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),f.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(d))},p=()=>{n=!0,s=!0,i.isProcessing||t(d)};return{schedule:Mt.reduce((m,T)=>{const y=o[T];return m[T]=(S,b=!1,M=!1)=>(n||p(),y.schedule(S,b,M)),m},{}),cancel:m=>{for(let T=0;T(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,no=1e-7,so=12;function io(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=xs(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>no&&++aio(r,0,1,t,n);return r=>r===0||r===1?r:xs(i(r),e,s)}const Ps=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ss=t=>e=>1-t(1-e),As=Vt(.33,1.53,.69,.99),De=Ss(As),bs=Ps(De),ws=t=>(t*=2)<1?.5*De(t):.5*(2-Math.pow(2,-10*(t-1))),Re=t=>1-Math.sin(Math.acos(t)),Vs=Ss(Re),Cs=Ps(Re),Ms=t=>/^0[^.\s]+$/u.test(t);function oo(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Ms(t):!0}let ce=L;const Ds=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Rs=t=>e=>typeof e=="string"&&e.startsWith(t),Es=Rs("--"),ro=Rs("var(--"),Ee=t=>ro(t)?ao.test(t.split("/*")[0].trim()):!1,ao=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,lo=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function uo(t){const e=lo.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Ls(t,e,n=1){const[s,i]=uo(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return Ds(o)?parseFloat(o):o}return Ee(i)?Ls(i,e,n+1):i}const q=(t,e,n)=>n>e?e:ntypeof t=="number",parse:parseFloat,transform:t=>t},St={...pt,transform:t=>q(0,1,t)},Dt={...pt,default:1},Ct=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),X=Ct("deg"),U=Ct("%"),x=Ct("px"),co=Ct("vh"),ho=Ct("vw"),rn={...U,parse:t=>U.parse(t)/100,transform:t=>U.transform(t*100)},fo=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),an=t=>t===pt||t===x,ln=(t,e)=>parseFloat(t.split(", ")[e]),un=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return ln(i[1],e);{const r=s.match(/^matrix\((.+)\)$/u);return r?ln(r[1],t):0}},po=new Set(["x","y","z"]),mo=wt.filter(t=>!po.has(t));function go(t){const e=[];return mo.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const ht={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:un(4,13),y:un(5,14)};ht.translateX=ht.x;ht.translateY=ht.y;const Fs=t=>e=>e.test(t),yo={test:t=>t==="auto",parse:t=>t},Bs=[pt,x,U,X,ho,co,yo],cn=t=>Bs.find(Fs(t)),st=new Set;let he=!1,fe=!1;function ks(){if(fe){const t=Array.from(st).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=go(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{var a;(a=s.getValue(r))===null||a===void 0||a.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}fe=!1,he=!1,st.forEach(t=>t.complete()),st.clear()}function Os(){st.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(fe=!0)})}function vo(){Os(),ks()}class Le{constructor(e,n,s,i,r,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(st.add(this),he||(he=!0,w.read(Os),w.resolveKeyframes(ks))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let r=0;rMath.round(t*1e5)/1e5,Fe=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function To(t){return t==null}const xo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Be=(t,e)=>n=>!!(typeof n=="string"&&xo.test(n)&&n.startsWith(t)||e&&!To(n)&&Object.prototype.hasOwnProperty.call(n,e)),Is=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(Fe);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Po=t=>q(0,255,t),qt={...pt,transform:t=>Math.round(Po(t))},nt={test:Be("rgb","red"),parse:Is("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+qt.transform(t)+", "+qt.transform(e)+", "+qt.transform(n)+", "+vt(St.transform(s))+")"};function So(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const de={test:Be("#"),parse:So,transform:nt.transform},rt={test:Be("hsl","hue"),parse:Is("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+U.transform(vt(e))+", "+U.transform(vt(n))+", "+vt(St.transform(s))+")"},R={test:t=>nt.test(t)||de.test(t)||rt.test(t),parse:t=>nt.test(t)?nt.parse(t):rt.test(t)?rt.parse(t):de.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?nt.transform(t):rt.transform(t)},Ao=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function bo(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Fe))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Ao))===null||n===void 0?void 0:n.length)||0)>0}const js="number",Ns="color",wo="var",Vo="var(",hn="${}",Co=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function At(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(Co,l=>(R.test(l)?(s.color.push(r),i.push(Ns),n.push(R.parse(l))):l.startsWith(Vo)?(s.var.push(r),i.push(wo),n.push(l)):(s.number.push(r),i.push(js),n.push(parseFloat(l))),++r,hn)).split(hn);return{values:n,split:a,indexes:s,types:i}}function Us(t){return At(t).values}function _s(t){const{split:e,types:n}=At(t),s=e.length;return i=>{let r="";for(let o=0;otypeof t=="number"?0:t;function Do(t){const e=Us(t);return _s(t)(e.map(Mo))}const Z={test:bo,parse:Us,createTransformer:_s,getAnimatableNone:Do},Ro=new Set(["brightness","contrast","saturate","opacity"]);function Eo(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Fe)||[];if(!s)return t;const i=n.replace(s,"");let r=Ro.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const Lo=/\b([a-z-]*)\(.*?\)/gu,pe={...Z,getAnimatableNone:t=>{const e=t.match(Lo);return e?e.map(Eo).join(" "):t}},Fo={borderWidth:x,borderTopWidth:x,borderRightWidth:x,borderBottomWidth:x,borderLeftWidth:x,borderRadius:x,radius:x,borderTopLeftRadius:x,borderTopRightRadius:x,borderBottomRightRadius:x,borderBottomLeftRadius:x,width:x,maxWidth:x,height:x,maxHeight:x,top:x,right:x,bottom:x,left:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,backgroundPositionX:x,backgroundPositionY:x},Bo={rotate:X,rotateX:X,rotateY:X,rotateZ:X,scale:Dt,scaleX:Dt,scaleY:Dt,scaleZ:Dt,skew:X,skewX:X,skewY:X,distance:x,translateX:x,translateY:x,translateZ:x,x,y:x,z:x,perspective:x,transformPerspective:x,opacity:St,originX:rn,originY:rn,originZ:x},fn={...pt,transform:Math.round},ke={...Fo,...Bo,zIndex:fn,size:x,fillOpacity:St,strokeOpacity:St,numOctaves:fn},ko={...ke,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:pe,WebkitFilter:pe},Oe=t=>ko[t];function Ks(t,e){let n=Oe(t);return n!==pe&&(n=Z),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Oo=new Set(["auto","none","0"]);function Io(t,e,n){let s=0,i;for(;s{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Ie(t){return typeof t=="function"}let Et;function jo(){Et=void 0}const _={now:()=>(Et===void 0&&_.set(D.isProcessing||Ji.useManualTiming?D.timestamp:performance.now()),Et),set:t=>{Et=t,queueMicrotask(jo)}},dn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Z.test(t)||t==="0")&&!t.startsWith("url("));function No(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n_o?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&vo(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=_.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:r,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!Uo(e,s,i,r))if(o)this.options.duration=0;else{l==null||l(Wt(e,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(e,n);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function $s(t,e){return e?t*(1e3/e):0}const Ko=5;function zs(t,e,n){const s=Math.max(e-Ko,0);return $s(n-t(s),e-s)}const Zt=.001,Wo=.01,Go=10,$o=.05,zo=1;function Ho({duration:t=800,bounce:e=.25,velocity:n=0,mass:s=1}){let i,r,o=1-e;o=q($o,zo,o),t=q(Wo,Go,$(t)),o<1?(i=u=>{const c=u*o,h=c*t,f=c-n,d=me(u,o),p=Math.exp(-h);return Zt-f/d*p},r=u=>{const h=u*o*t,f=h*n+n,d=Math.pow(o,2)*Math.pow(u,2)*t,p=Math.exp(-h),g=me(Math.pow(u,2),o);return(-i(u)+Zt>0?-1:1)*((f-d)*p)/g}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-Zt+c*h},r=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=Yo(i,r,a);if(t=G(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:t}}}const Xo=12;function Yo(t,e,n){let s=n;for(let i=1;it[n]!==void 0)}function Jo(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!pn(t,Zo)&&pn(t,qo)){const n=Ho(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function Hs({keyframes:t,restDelta:e,restSpeed:n,...s}){const i=t[0],r=t[t.length-1],o={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:c,velocity:h,isResolvedFromDuration:f}=Jo({...s,velocity:-$(s.velocity||0)}),d=h||0,p=l/(2*Math.sqrt(a*u)),g=r-i,v=$(Math.sqrt(a/u)),m=Math.abs(g)<5;n||(n=m?.01:2),e||(e=m?.005:.5);let T;if(p<1){const y=me(v,p);T=S=>{const b=Math.exp(-p*v*S);return r-b*((d+p*v*g)/y*Math.sin(y*S)+g*Math.cos(y*S))}}else if(p===1)T=y=>r-Math.exp(-v*y)*(g+(d+v*g)*y);else{const y=v*Math.sqrt(p*p-1);T=S=>{const b=Math.exp(-p*v*S),M=Math.min(y*S,300);return r-b*((d+p*v*g)*Math.sinh(M)+y*g*Math.cosh(M))/y}}return{calculatedDuration:f&&c||null,next:y=>{const S=T(y);if(f)o.done=y>=c;else{let b=0;p<1&&(b=y===0?G(d):zs(T,y,S));const M=Math.abs(b)<=n,N=Math.abs(r-S)<=e;o.done=M&&N}return o.value=o.done?r:S,o}}}function mn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},d=A=>a!==void 0&&Al,p=A=>a===void 0?l:l===void 0||Math.abs(a-A)-g*Math.exp(-A/s),y=A=>m+T(A),S=A=>{const k=T(A),O=y(A);f.done=Math.abs(k)<=u,f.value=f.done?m:O};let b,M;const N=A=>{d(f.value)&&(b=A,M=Hs({keyframes:[f.value,p(f.value)],velocity:zs(y,A,f.value),damping:i,stiffness:r,restDelta:u,restSpeed:c}))};return N(0),{calculatedDuration:null,next:A=>{let k=!1;return!M&&b===void 0&&(k=!0,S(A),N(A)),b!==void 0&&A>=b?M.next(A-b):(!k&&S(A),f)}}}const Qo=Vt(.42,0,1,1),tr=Vt(0,0,.58,1),Xs=Vt(.42,0,.58,1),er=t=>Array.isArray(t)&&typeof t[0]!="number",je=t=>Array.isArray(t)&&typeof t[0]=="number",gn={linear:L,easeIn:Qo,easeInOut:Xs,easeOut:tr,circIn:Re,circInOut:Cs,circOut:Vs,backIn:De,backInOut:bs,backOut:As,anticipate:ws},yn=t=>{if(je(t)){ce(t.length===4);const[e,n,s,i]=t;return Vt(e,n,s,i)}else if(typeof t=="string")return ce(gn[t]!==void 0),gn[t];return t},nr=(t,e)=>n=>e(t(n)),z=(...t)=>t.reduce(nr),ft=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},V=(t,e,n)=>t+(e-t)*n;function Jt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function sr({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=Jt(l,a,t+1/3),r=Jt(l,a,t),o=Jt(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function Bt(t,e){return n=>n>0?e:t}const Qt=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},ir=[de,nt,rt],or=t=>ir.find(e=>e.test(t));function vn(t){const e=or(t);if(!e)return!1;let n=e.parse(t);return e===rt&&(n=sr(n)),n}const Tn=(t,e)=>{const n=vn(t),s=vn(e);if(!n||!s)return Bt(t,e);const i={...n};return r=>(i.red=Qt(n.red,s.red,r),i.green=Qt(n.green,s.green,r),i.blue=Qt(n.blue,s.blue,r),i.alpha=V(n.alpha,s.alpha,r),nt.transform(i))},ge=new Set(["none","hidden"]);function rr(t,e){return ge.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function ar(t,e){return n=>V(t,e,n)}function Ne(t){return typeof t=="number"?ar:typeof t=="string"?Ee(t)?Bt:R.test(t)?Tn:cr:Array.isArray(t)?Ys:typeof t=="object"?R.test(t)?Tn:lr:Bt}function Ys(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>Ne(r)(r,e[o]));return r=>{for(let o=0;o{for(const r in s)n[r]=s[r](i);return n}}function ur(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let r=0;r{const n=Z.createTransformer(e),s=At(t),i=At(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?ge.has(t)&&!i.values.length||ge.has(e)&&!s.values.length?rr(t,e):z(Ys(ur(s,i),i.values),n):Bt(t,e)};function qs(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?V(t,e,n):Ne(t)(t,e)}function hr(t,e,n){const s=[],i=n||qs,r=t.length-1;for(let o=0;oe[0];if(r===2&&t[0]===t[1])return()=>e[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=hr(e,s,i),a=o.length,l=u=>{let c=0;if(a>1)for(;cl(q(t[0],t[r-1],u)):l}function dr(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=ft(0,e,s);t.push(V(n,1,i))}}function pr(t){const e=[0];return dr(e,t.length-1),e}function mr(t,e){return t.map(n=>n*e)}function gr(t,e){return t.map(()=>e||Xs).splice(0,t.length-1)}function kt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=er(s)?s.map(yn):yn(s),r={done:!1,value:e[0]},o=mr(n&&n.length===e.length?n:pr(e),t),a=fr(o,e,{ease:Array.isArray(i)?i:gr(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const xn=2e4;function yr(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e=xn?1/0:e}const vr=t=>{const e=({timestamp:n})=>t(n);return{start:()=>w.update(e,!0),stop:()=>Y(e),now:()=>D.isProcessing?D.timestamp:_.now()}},Tr={decay:mn,inertia:mn,tween:kt,keyframes:kt,spring:Hs},xr=t=>t/100;class Ue extends Gs{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:s,element:i,keyframes:r}=this.options,o=(i==null?void 0:i.KeyframeResolver)||Le,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(r,a,n,s,i),this.resolver.scheduleResolve()}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=this.options,a=Ie(n)?n:Tr[n]||kt;let l,u;a!==kt&&typeof e[0]!="number"&&(l=z(xr,qs(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});r==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=yr(c));const{calculatedDuration:h}=c,f=h+i,d=f*(s+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:f,totalDuration:d}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:A}=this.options;return{done:!0,value:A[A.length-1]}}const{finalKeyframe:i,generator:r,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:h}=s;if(this.startTime===null)return r.next(0);const{delay:f,repeat:d,repeatType:p,repeatDelay:g,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const m=this.currentTime-f*(this.speed>=0?1:-1),T=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let y=this.currentTime,S=r;if(d){const A=Math.min(this.currentTime,c)/h;let k=Math.floor(A),O=A%1;!O&&A>=1&&(O=1),O===1&&k--,k=Math.min(k,d+1),!!(k%2)&&(p==="reverse"?(O=1-O,g&&(O-=g/h)):p==="mirror"&&(S=o)),y=q(0,1,O)*h}const b=T?{done:!1,value:l[0]}:S.next(y);a&&(b.value=a(b.value));let{done:M}=b;!T&&u!==null&&(M=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return N&&i!==void 0&&(b.value=Wt(l,this.options,i)),v&&v(b.value),N&&this.finish(),b}get duration(){const{resolved:e}=this;return e?$(e.calculatedDuration):0}get time(){return $(this.currentTime)}set time(e){e=G(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=$(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=vr,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Pr=new Set(["opacity","clipPath","filter","transform"]),Sr=10,Ar=(t,e)=>{let n="";const s=Math.max(Math.round(e/Sr),2);for(let i=0;i(e===void 0&&(e=t()),e)}const br={linearEasing:void 0};function wr(t,e){const n=_e(t);return()=>{var s;return(s=br[e])!==null&&s!==void 0?s:n()}}const Ot=wr(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function Zs(t){return!!(typeof t=="function"&&Ot()||!t||typeof t=="string"&&(t in ye||Ot())||je(t)||Array.isArray(t)&&t.every(Zs))}const gt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,ye={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gt([0,.65,.55,1]),circOut:gt([.55,0,1,.45]),backIn:gt([.31,.01,.66,-.59]),backOut:gt([.33,1.53,.69,.99])};function Js(t,e){if(t)return typeof t=="function"&&Ot()?Ar(t,e):je(t)?gt(t):Array.isArray(t)?t.map(n=>Js(n,e)||ye.easeOut):ye[t]}function Vr(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a,times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=Js(a,i);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:s,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}function Pn(t,e){t.timeline=e,t.onfinish=null}const Cr=_e(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),It=10,Mr=2e4;function Dr(t){return Ie(t.type)||t.type==="spring"||!Zs(t.ease)}function Rr(t,e){const n=new Ue({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const i=[];let r=0;for(;!s.done&&rthis.onKeyframesResolved(o,a),n,s,i),this.resolver.scheduleResolve()}initPlayback(e,n){var s;let{duration:i=300,times:r,ease:o,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((s=l.owner)===null||s===void 0)&&s.current))return!1;if(typeof o=="string"&&Ot()&&Er(o)&&(o=Qs[o]),Dr(this.options)){const{onComplete:f,onUpdate:d,motionValue:p,element:g,...v}=this.options,m=Rr(e,v);e=m.keyframes,e.length===1&&(e[1]=e[0]),i=m.duration,r=m.times,o=m.ease,a="keyframes"}const h=Vr(l.owner.current,u,e,{...this.options,duration:i,times:r,ease:o});return h.startTime=c??this.calcStartTime(),this.pendingTimeline?(Pn(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:f}=this.options;l.set(Wt(e,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:r,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return $(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return $(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=G(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return L;const{animation:s}=n;Pn(s,e)}return L}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s,duration:i,type:r,ease:o,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:h,element:f,...d}=this.options,p=new Ue({...d,keyframes:s,duration:i,type:r,ease:o,times:a,isGenerator:!0}),g=G(this.time);u.setWithVelocity(p.sample(g-It).value,p.sample(g).value,It)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:i,repeatType:r,damping:o,type:a}=e;return Cr()&&s&&Pr.has(s)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&r!=="mirror"&&o!==0&&a!=="inertia"}}const Lr=_e(()=>window.ScrollTimeline!==void 0);class Fr{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,n){return Promise.all(this.animations).then(e).catch(n)}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;sLr()&&i.attachTimeline?i.attachTimeline(e):n(i));return()=>{s.forEach((i,r)=>{i&&i(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;nn[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function Br({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Ke=(t,e,n,s={},i,r)=>o=>{const a=Me(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-G(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};Br(a)||(c={...c,...Zi(t,c)}),c.duration&&(c.duration=G(c.duration)),c.repeatDelay&&(c.repeatDelay=G(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(h=!0)),h&&!r&&e.get()!==void 0){const f=Wt(c.keyframes,a);if(f!==void 0)return w.update(()=>{c.onUpdate(f),c.onComplete()}),new Fr([])}return!r&&Sn.supports(c)?new Sn(c):new Ue(c)},kr=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Or=t=>ue(t)?t[t.length-1]||0:t;function We(t,e){t.indexOf(e)===-1&&t.push(e)}function Ge(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class $e{constructor(){this.subscriptions=[]}add(e){return We(this.subscriptions,e),()=>Ge(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r!isNaN(parseFloat(t));class jr{constructor(e,n={}){this.version="11.11.11",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const r=_.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=_.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ir(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new $e);const s=this.events[e].add(n);return e==="change"?()=>{s(),w.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=_.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>An)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,An);return $s(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function bt(t,e){return new jr(t,e)}function Nr(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,bt(n))}function Ur(t,e){const n=Kt(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Or(r[o]);Nr(t,o,a)}}const ze=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),_r="framerAppearId",ti="data-"+ze(_r);function ei(t){return t.props[ti]}const E=t=>!!(t&&t.getVelocity);function Kr(t){return!!(E(t)&&t.add)}function ve(t,e){const n=t.getValue("willChange");if(Kr(n))return n.add(e)}function Wr({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function ni(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(o=s);const u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const h in l){const f=t.getValue(h,(r=t.latestValues[h])!==null&&r!==void 0?r:null),d=l[h];if(d===void 0||c&&Wr(c,h))continue;const p={delay:n,...Me(o||{},h)};let g=!1;if(window.MotionHandoffAnimation){const m=ei(t);if(m){const T=window.MotionHandoffAnimation(m,h,w);T!==null&&(p.startTime=T,g=!0)}}ve(t,h),f.start(Ke(h,f,d,t.shouldReduceMotion&&it.has(h)?{type:!1}:p,t,g));const v=f.animation;v&&u.push(v)}return a&&Promise.all(u).then(()=>{w.update(()=>{a&&Ur(t,a)})}),u}function Te(t,e,n={}){var s;const i=Kt(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:r=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const o=i?()=>Promise.all(ni(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:f}=r;return Gr(t,e,c+u,h,f,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[u,c]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>c())}else return Promise.all([o(),a(n.delay)])}function Gr(t,e,n=0,s=0,i=1,r){const o=[],a=(t.variantChildren.size-1)*s,l=i===1?(u=0)=>u*s:(u=0)=>a-u*s;return Array.from(t.variantChildren).sort($r).forEach((u,c)=>{u.notify("AnimationStart",e),o.push(Te(u,e,{...r,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(o)}function $r(t,e){return t.sortNodePosition(e)}function zr(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>Te(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=Te(t,e,n);else{const i=typeof e=="function"?Kt(t,e,n.custom):e;s=Promise.all(ni(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Hr=Ce.length;function si(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?si(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;nPromise.all(e.map(({animation:n,options:s})=>zr(t,n,s)))}function Zr(t){let e=qr(t),n=bn(),s=!0;const i=l=>(u,c)=>{var h;const f=Kt(t,c,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:d,transitionEnd:p,...g}=f;u={...u,...g,...p}}return u};function r(l){e=l(t)}function o(l){const{props:u}=t,c=si(t.parent)||{},h=[],f=new Set;let d={},p=1/0;for(let v=0;vp&&S,k=!1;const O=Array.isArray(y)?y:[y];let ot=O.reduce(i(m),{});b===!1&&(ot={});const{prevResolvedValues:nn={}}=T,$i={...nn,...ot},sn=F=>{A=!0,f.has(F)&&(k=!0,f.delete(F)),T.needsAnimating[F]=!0;const K=t.getValue(F);K&&(K.liveStyle=!1)};for(const F in $i){const K=ot[F],Ht=nn[F];if(d.hasOwnProperty(F))continue;let Xt=!1;ue(K)&&ue(Ht)?Xt=!vs(K,Ht):Xt=K!==Ht,Xt?K!=null?sn(F):f.add(F):K!==void 0&&f.has(F)?sn(F):T.protectedKeys[F]=!0}T.prevProp=y,T.prevResolvedValues=ot,T.isActive&&(d={...d,...ot}),s&&t.blockInitialAnimation&&(A=!1),A&&(!(M&&N)||k)&&h.push(...O.map(F=>({animation:F,options:{type:m}})))}if(f.size){const v={};f.forEach(m=>{const T=t.getBaseTarget(m),y=t.getValue(m);y&&(y.liveStyle=!0),v[m]=T??null}),h.push({animation:v})}let g=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(g=!1),s=!1,g?e(h):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=t.variantChildren)===null||c===void 0||c.forEach(f=>{var d;return(d=f.animationState)===null||d===void 0?void 0:d.setActive(l,u)}),n[l].isActive=u;const h=o(l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=bn(),s=!0}}}function Jr(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!vs(e,t):!1}function Q(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bn(){return{animate:Q(!0),whileInView:Q(),whileHover:Q(),whileTap:Q(),whileDrag:Q(),whileFocus:Q(),exit:Q()}}class J{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Qr extends J{constructor(e){super(e),e.animationState||(e.animationState=Zr(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();_t(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let ta=0;class ea extends J{constructor(){super(...arguments),this.id=ta++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const na={animation:{Feature:Qr},exit:{Feature:ea}},ii=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Gt(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}const sa=t=>e=>ii(e)&&t(e,Gt(e));function W(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function H(t,e,n,s){return W(t,e,sa(n),s)}const wn=(t,e)=>Math.abs(t-e);function ia(t,e){const n=wn(t.x,e.x),s=wn(t.y,e.y);return Math.sqrt(n**2+s**2)}class oi{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=ee(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=ia(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:p}=h,{timestamp:g}=D;this.history.push({...p,timestamp:g});const{onStart:v,onMove:m}=this.handlers;f||(v&&v(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=te(f,this.transformPagePoint),w.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:p,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=ee(h.type==="pointercancel"?this.lastMoveEventInfo:te(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,v),p&&p(h,v)},!ii(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const o=Gt(e),a=te(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=D;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(e,ee(a,this.history)),this.removeListeners=z(H(this.contextWindow,"pointermove",this.handlePointerMove),H(this.contextWindow,"pointerup",this.handlePointerUp),H(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Y(this.updatePoint)}}function te(t,e){return e?{point:e(t.point)}:t}function Vn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ee({point:t},e){return{point:t,delta:Vn(t,ri(e)),offset:Vn(t,oa(e)),velocity:ra(e,.1)}}function oa(t){return t[0]}function ri(t){return t[t.length-1]}function ra(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=ri(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>G(e)));)n--;if(!s)return{x:0,y:0};const r=$(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function ai(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const Cn=ai("dragHorizontal"),Mn=ai("dragVertical");function li(t){let e=!1;if(t==="y")e=Mn();else if(t==="x")e=Cn();else{const n=Cn(),s=Mn();n&&s?e=()=>{n(),s()}:(n&&n(),s&&s())}return e}function ui(){const t=li(!0);return t?(t(),!1):!0}function at(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}const ci=1e-4,aa=1-ci,la=1+ci,hi=.01,ua=0-hi,ca=0+hi;function B(t){return t.max-t.min}function ha(t,e,n){return Math.abs(t-e)<=n}function Dn(t,e,n,s=.5){t.origin=s,t.originPoint=V(e.min,e.max,t.origin),t.scale=B(n)/B(e),t.translate=V(n.min,n.max,t.origin)-t.originPoint,(t.scale>=aa&&t.scale<=la||isNaN(t.scale))&&(t.scale=1),(t.translate>=ua&&t.translate<=ca||isNaN(t.translate))&&(t.translate=0)}function Tt(t,e,n,s){Dn(t.x,e.x,n.x,s?s.originX:void 0),Dn(t.y,e.y,n.y,s?s.originY:void 0)}function Rn(t,e,n){t.min=n.min+e.min,t.max=t.min+B(e)}function fa(t,e,n){Rn(t.x,e.x,n.x),Rn(t.y,e.y,n.y)}function En(t,e,n){t.min=e.min-n.min,t.max=t.min+B(e)}function xt(t,e,n){En(t.x,e.x,n.x),En(t.y,e.y,n.y)}function da(t,{min:e,max:n},s){return e!==void 0&&tn&&(t=s?V(n,t,s.max):Math.min(t,n)),t}function Ln(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function pa(t,{top:e,left:n,bottom:s,right:i}){return{x:Ln(t.x,n,i),y:Ln(t.y,e,s)}}function Fn(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.mins?n=ft(e.min,e.max-s,t.min):s>i&&(n=ft(t.min,t.max-i,e.min)),q(0,1,n)}function ya(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const xe=.35;function va(t=xe){return t===!1?t=0:t===!0&&(t=xe),{x:Bn(t,"left","right"),y:Bn(t,"top","bottom")}}function Bn(t,e,n){return{min:kn(t,e),max:kn(t,n)}}function kn(t,e){return typeof t=="number"?t:t[e]||0}const On=()=>({translate:0,scale:1,origin:0,originPoint:0}),lt=()=>({x:On(),y:On()}),In=()=>({min:0,max:0}),C=()=>({x:In(),y:In()});function j(t){return[t("x"),t("y")]}function fi({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Ta({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function xa(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function ne(t){return t===void 0||t===1}function Pe({scale:t,scaleX:e,scaleY:n}){return!ne(t)||!ne(e)||!ne(n)}function tt(t){return Pe(t)||di(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function di(t){return jn(t.x)||jn(t.y)}function jn(t){return t&&t!=="0%"}function jt(t,e,n){const s=t-n,i=e*s;return n+i}function Nn(t,e,n,s,i){return i!==void 0&&(t=jt(t,i,s)),jt(t,n,s)+e}function Se(t,e=0,n=1,s,i){t.min=Nn(t.min,e,n,s,i),t.max=Nn(t.max,e,n,s,i)}function pi(t,{x:e,y:n}){Se(t.x,e.translate,e.scale,e.originPoint),Se(t.y,n.translate,n.scale,n.originPoint)}const Un=.999999999999,_n=1.0000000000001;function Pa(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;aUn&&(e.x=1),e.y<_n&&e.y>Un&&(e.y=1)}function ut(t,e){t.min=t.min+e,t.max=t.max+e}function Kn(t,e,n,s,i=.5){const r=V(t.min,t.max,i);Se(t,e,n,r,s)}function ct(t,e){Kn(t.x,e.x,e.scaleX,e.scale,e.originX),Kn(t.y,e.y,e.scaleY,e.scale,e.originY)}function mi(t,e){return fi(xa(t.getBoundingClientRect(),e))}function Sa(t,e,n){const s=mi(t,n),{scroll:i}=e;return i&&(ut(s.x,i.offset.x),ut(s.y,i.offset.y)),s}const gi=({current:t})=>t?t.ownerDocument.defaultView:null,Aa=new WeakMap;class ba{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=C(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Gt(c,"page").point)},r=(c,h)=>{const{drag:f,dragPropagation:d,onDragStart:p}=this.getProps();if(f&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=li(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),j(v=>{let m=this.getAxisMotionValue(v).get()||0;if(U.test(m)){const{projection:T}=this.visualElement;if(T&&T.layout){const y=T.layout.layoutBox[v];y&&(m=B(y)*(parseFloat(m)/100))}}this.originPoint[v]=m}),p&&w.postRender(()=>p(c,h)),ve(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},o=(c,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:p,onDrag:g}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:v}=h;if(d&&this.currentDirection===null){this.currentDirection=wa(v),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,v),this.updateAxis("y",h.point,v),this.visualElement.render(),g&&g(c,h)},a=(c,h)=>this.stop(c,h),l=()=>j(c=>{var h;return this.getAnimationState(c)==="paused"&&((h=this.getAxisMotionValue(c).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new oi(e,{onSessionStart:i,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:gi(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:r}=this.getProps();r&&w.postRender(()=>r(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Rt(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=da(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,r=this.constraints;n&&at(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=pa(i.layoutBox,n):this.constraints=!1,this.elastic=va(s),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&j(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=ya(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!at(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=Sa(s,i.root,this.visualElement.getTransformPagePoint());let o=ma(i.layout.layoutBox,r);if(n){const a=n(Ta(o));this.hasMutatedConstraints=!!a,a&&(o=fi(a))}return o}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=j(c=>{if(!Rt(c,n,this.currentDirection))return;let h=l&&l[c]||{};o&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:s?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return ve(this.visualElement,e),s.start(Ke(e,s,0,n,this.visualElement,!1))}stopAnimation(){j(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){j(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){j(n=>{const{drag:s}=this.getProps();if(!Rt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];r.set(e[n]-V(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!at(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};j(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=ga({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),j(o=>{if(!Rt(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(V(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;Aa.set(this.visualElement,this);const e=this.visualElement.current,n=H(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();at(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),w.read(s);const o=W(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(j(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=xe,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function Rt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function wa(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Va extends J{constructor(e){super(e),this.removeGroupControls=L,this.removeListeners=L,this.controls=new ba(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||L}unmount(){this.removeGroupControls(),this.removeListeners()}}const Wn=t=>(e,n)=>{t&&w.postRender(()=>t(e,n))};class Ca extends J{constructor(){super(...arguments),this.removePointerDownListener=L}onPointerDown(e){this.session=new oi(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gi(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Wn(e),onStart:Wn(n),onMove:s,onEnd:(r,o)=>{delete this.session,i&&w.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=H(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const He=P.createContext(null);function Ma(){const t=P.useContext(He);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=P.useId();P.useEffect(()=>s(i),[]);const r=P.useCallback(()=>n&&n(i),[i,n]);return!e&&n?[!1,r]:[!0]}const yi=P.createContext({}),vi=P.createContext({}),Lt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Gn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const mt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(x.test(t))t=parseFloat(t);else return t;const n=Gn(t,e.target.x),s=Gn(t,e.target.y);return`${n}% ${s}%`}},Da={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=Z.parse(t);if(i.length>5)return s;const r=Z.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const u=V(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),r(i)}},Nt={};function Ra(t){Object.assign(Nt,t)}const{schedule:Xe,cancel:xu}=Ts(queueMicrotask,!1);class Ea extends P.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=e;Ra(La),r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),Lt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,o=s.projection;return o&&(o.isPresent=r,i||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||w.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Xe.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ti(t){const[e,n]=Ma(),s=P.useContext(yi);return le.jsx(Ea,{...t,layoutGroup:s,switchLayoutGroup:P.useContext(vi),isPresent:e,safeToRemove:n})}const La={borderRadius:{...mt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mt,borderTopRightRadius:mt,borderBottomLeftRadius:mt,borderBottomRightRadius:mt,boxShadow:Da},xi=["TopLeft","TopRight","BottomLeft","BottomRight"],Fa=xi.length,$n=t=>typeof t=="string"?parseFloat(t):t,zn=t=>typeof t=="number"||x.test(t);function Ba(t,e,n,s,i,r){i?(t.opacity=V(0,n.opacity!==void 0?n.opacity:1,ka(s)),t.opacityExit=V(e.opacity!==void 0?e.opacity:1,0,Oa(s))):r&&(t.opacity=V(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let o=0;ose?1:n(ft(t,e,s))}function Xn(t,e){t.min=e.min,t.max=e.max}function I(t,e){Xn(t.x,e.x),Xn(t.y,e.y)}function Yn(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function qn(t,e,n,s,i){return t-=e,t=jt(t,1/n,s),i!==void 0&&(t=jt(t,1/i,s)),t}function Ia(t,e=0,n=1,s=.5,i,r=t,o=t){if(U.test(e)&&(e=parseFloat(e),e=V(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=V(r.min,r.max,s);t===r&&(a-=e),t.min=qn(t.min,e,n,a,i),t.max=qn(t.max,e,n,a,i)}function Zn(t,e,[n,s,i],r,o){Ia(t,e[n],e[s],e[i],e.scale,r,o)}const ja=["x","scaleX","originX"],Na=["y","scaleY","originY"];function Jn(t,e,n,s){Zn(t.x,e,ja,n?n.x:void 0,s?s.x:void 0),Zn(t.y,e,Na,n?n.y:void 0,s?s.y:void 0)}function Qn(t){return t.translate===0&&t.scale===1}function Si(t){return Qn(t.x)&&Qn(t.y)}function ts(t,e){return t.min===e.min&&t.max===e.max}function Ua(t,e){return ts(t.x,e.x)&&ts(t.y,e.y)}function es(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ai(t,e){return es(t.x,e.x)&&es(t.y,e.y)}function ns(t){return B(t.x)/B(t.y)}function ss(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class _a{constructor(){this.members=[]}add(e){We(this.members,e),e.scheduleRender()}remove(e){if(Ge(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const r=this.members[i];if(r.isPresent!==!1){s=r;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ka(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:p}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),p&&(s+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const Wa=(t,e)=>t.depth-e.depth;class Ga{constructor(){this.children=[],this.isDirty=!1}add(e){We(this.children,e),this.isDirty=!0}remove(e){Ge(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Wa),this.isDirty=!1,this.children.forEach(e)}}function Ft(t){const e=E(t)?t.get():t;return kr(e)?e.toValue():e}function $a(t,e){const n=_.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(Y(s),t(r-e))};return w.read(s,!0),()=>Y(s)}function za(t){return t instanceof SVGElement&&t.tagName!=="svg"}function Ha(t,e,n){const s=E(t)?t:bt(t);return s.start(Ke("",s,e,n)),s.animation}const et={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},yt=typeof window<"u"&&window.MotionDebug!==void 0,se=["","X","Y","Z"],Xa={visibility:"hidden"},is=1e3;let Ya=0;function ie(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function bi(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=ei(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",w,!(i||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&bi(s)}function wi({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=Ya++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,yt&&(et.totalNodes=et.resolvedTargetDeltas=et.recalculatedProjection=0),this.nodes.forEach(Ja),this.nodes.forEach(sl),this.nodes.forEach(il),this.nodes.forEach(Qa),yt&&window.MotionDebug.record(et)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=$a(f,250),Lt.hasAnimatedSinceResize&&(Lt.hasAnimatedSinceResize=!1,this.nodes.forEach(rs))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||ul,{onLayoutAnimationStart:v,onLayoutAnimationComplete:m}=c.getProps(),T=!this.targetLayout||!Ai(this.targetLayout,p)||d,y=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||f&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,y);const S={...Me(g,"layout"),onPlay:v,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||rs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Y(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ol),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&bi(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const b=S/1e3;as(h.x,o.x,b),as(h.y,o.y,b),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(xt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),al(this.relativeTarget,this.relativeTargetOrigin,f,b),y&&Ua(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=C()),I(y,this.relativeTarget)),g&&(this.animationValues=c,Ba(c,u,this.latestValues,b,T,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Y(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=w.update(()=>{Lt.hasAnimatedSinceResize=!0,this.currentAnimation=Ha(0,is,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(is),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&Vi(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||C();const h=B(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const f=B(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}I(a,l),ct(a,c),Tt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new _a),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&ie("z",o,u,this.animationValues);for(let c=0;c{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(os),this.root.sharedNodes.clear()}}}function qa(t){t.updateLayout()}function Za(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:r}=t.options,o=n.source!==t.layout.source;r==="size"?j(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],d=B(f);f.min=s[h].min,f.max=f.min+d}):Vi(r,n.layoutBox,s)&&j(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],d=B(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=lt();Tt(a,s,n.layoutBox);const l=lt();o?Tt(l,t.applyTransform(i,!0),n.measuredBox):Tt(l,s,n.layoutBox);const u=!Si(a);let c=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const p=C();xt(p,n.layoutBox,f.layoutBox);const g=C();xt(g,s,d.layoutBox),Ai(p,g)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function Ja(t){yt&&et.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Qa(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tl(t){t.clearSnapshot()}function os(t){t.clearMeasurements()}function el(t){t.isLayoutDirty=!1}function nl(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function rs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function sl(t){t.resolveTargetDelta()}function il(t){t.calcProjection()}function ol(t){t.resetSkewAndRotation()}function rl(t){t.removeLeadSnapshot()}function as(t,e,n){t.translate=V(e.translate,0,n),t.scale=V(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ls(t,e,n,s){t.min=V(e.min,n.min,s),t.max=V(e.max,n.max,s)}function al(t,e,n,s){ls(t.x,e.x,n.x,s),ls(t.y,e.y,n.y,s)}function ll(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const ul={duration:.45,ease:[.4,0,.1,1]},us=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),cs=us("applewebkit/")&&!us("chrome/")?Math.round:L;function hs(t){t.min=cs(t.min),t.max=cs(t.max)}function cl(t){hs(t.x),hs(t.y)}function Vi(t,e,n){return t==="position"||t==="preserve-aspect"&&!ha(ns(e),ns(n),.2)}function hl(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const fl=wi({attachResizeListener:(t,e)=>W(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),oe={current:void 0},Ci=wi({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!oe.current){const t=new fl({});t.mount(window),t.setOptions({layoutScroll:!0}),oe.current=t}return oe.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),dl={pan:{Feature:Ca},drag:{Feature:Va,ProjectionNode:Ci,MeasureLayout:Ti}};function fs(t,e){const n=e?"pointerenter":"pointerleave",s=e?"onHoverStart":"onHoverEnd",i=(r,o)=>{if(r.pointerType==="touch"||ui())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e);const l=a[s];l&&w.postRender(()=>l(r,o))};return H(t.current,n,i,{passive:!t.getProps()[s]})}class pl extends J{mount(){this.unmount=z(fs(this.node,!0),fs(this.node,!1))}unmount(){}}class ml extends J{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=z(W(this.node.current,"focus",()=>this.onFocus()),W(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Mi=(t,e)=>e?t===e?!0:Mi(t,e.parentElement):!1;function re(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Gt(n))}class gl extends J{constructor(){super(...arguments),this.removeStartListeners=L,this.removeEndListeners=L,this.removeAccessibleListeners=L,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const s=this.node.getProps(),r=H(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:h}=this.node.getProps(),f=!h&&!Mi(this.node.current,a.target)?c:u;f&&w.update(()=>f(a,l))},{passive:!(s.onTap||s.onPointerUp)}),o=H(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(s.onTapCancel||s.onPointerCancel)});this.removeEndListeners=z(r,o),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=r=>{if(r.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||re("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&w.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=W(this.node.current,"keyup",o),re("down",(a,l)=>{this.startPress(a,l)})},n=W(this.node.current,"keydown",e),s=()=>{this.isPressing&&re("cancel",(r,o)=>this.cancelPress(r,o))},i=W(this.node.current,"blur",s);this.removeAccessibleListeners=z(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:s,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),s&&w.postRender(()=>s(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ui()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:s}=this.node.getProps();s&&w.postRender(()=>s(e,n))}mount(){const e=this.node.getProps(),n=H(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),s=W(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=z(n,s)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ae=new WeakMap,ae=new WeakMap,yl=t=>{const e=Ae.get(t.target);e&&e(t)},vl=t=>{t.forEach(yl)};function Tl({root:t,...e}){const n=t||document;ae.has(n)||ae.set(n,{});const s=ae.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(vl,{root:t,...e})),s[i]}function xl(t,e,n){const s=Tl(e);return Ae.set(t,n),s.observe(t),()=>{Ae.delete(t),s.unobserve(t)}}const Pl={some:0,all:1};class Sl extends J{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Pl[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,r&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=u?c:h;f&&f(l)};return xl(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Al(e,n))&&this.startObserver()}unmount(){}}function Al({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const bl={inView:{Feature:Sl},tap:{Feature:gl},focus:{Feature:ml},hover:{Feature:pl}},wl={layout:{ProjectionNode:Ci,MeasureLayout:Ti}},Di=P.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),$t=P.createContext({}),Ye=typeof window<"u",Vl=Ye?P.useLayoutEffect:P.useEffect,Ri=P.createContext({strict:!1});function Cl(t,e,n,s,i){var r,o;const{visualElement:a}=P.useContext($t),l=P.useContext(Ri),u=P.useContext(He),c=P.useContext(Di).reducedMotion,h=P.useRef();s=s||l.renderer,!h.current&&s&&(h.current=s(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=h.current,d=P.useContext(vi);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Ml(h.current,n,i,d);const p=P.useRef(!1);P.useInsertionEffect(()=>{f&&p.current&&f.update(n,u)});const g=n[ti],v=P.useRef(!!g&&!(!((r=window.MotionHandoffIsComplete)===null||r===void 0)&&r.call(window,g))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,g)));return Vl(()=>{f&&(p.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Xe.render(f.render),v.current&&f.animationState&&f.animationState.animateChanges())}),P.useEffect(()=>{f&&(!v.current&&f.animationState&&f.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,g)}),v.current=!1))}),f}function Ml(t,e,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Ei(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&at(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}function Ei(t){if(t)return t.options.allowProjection!==!1?t.projection:Ei(t.parent)}function Dl(t,e,n){return P.useCallback(s=>{s&&t.mount&&t.mount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):at(n)&&(n.current=s))},[e])}function zt(t){return _t(t.animate)||Ce.some(e=>Pt(t[e]))}function Li(t){return!!(zt(t)||t.variants)}function Rl(t,e){if(zt(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Pt(n)?n:void 0,animate:Pt(s)?s:void 0}}return t.inherit!==!1?e:{}}function El(t){const{initial:e,animate:n}=Rl(t,P.useContext($t));return P.useMemo(()=>({initial:e,animate:n}),[ds(e),ds(n)])}function ds(t){return Array.isArray(t)?t.join(" "):t}const ps={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},dt={};for(const t in ps)dt[t]={isEnabled:e=>ps[t].some(n=>!!e[n])};function Ll(t){for(const e in t)dt[e]={...dt[e],...t[e]}}const Fl=Symbol.for("motionComponentSymbol");function Bl({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){t&&Ll(t);function r(a,l){let u;const c={...P.useContext(Di),...a,layoutId:kl(a)},{isStatic:h}=c,f=El(a),d=s(a,h);if(!h&&Ye){Ol();const p=Il(c);u=p.MeasureLayout,f.visualElement=Cl(i,d,c,e,p.ProjectionNode)}return le.jsxs($t.Provider,{value:f,children:[u&&f.visualElement?le.jsx(u,{visualElement:f.visualElement,...c}):null,n(i,a,Dl(d,f.visualElement,l),d,h,f.visualElement)]})}const o=P.forwardRef(r);return o[Fl]=i,o}function kl({layoutId:t}){const e=P.useContext(yi).id;return e&&t!==void 0?e+"-"+t:t}function Ol(t,e){P.useContext(Ri).strict}function Il(t){const{drag:e,layout:n}=dt;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const jl=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function qe(t){return typeof t!="string"||t.includes("-")?!1:!!(jl.indexOf(t)>-1||/[A-Z]/u.test(t))}function Fi(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const r in n)t.style.setProperty(r,n[r])}const Bi=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ki(t,e,n,s){Fi(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Bi.has(i)?i:ze(i),e.attrs[i])}function Oi(t,{layout:e,layoutId:n}){return it.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Nt[t]||t==="opacity")}function Ze(t,e,n){var s;const{style:i}=t,r={};for(const o in i)(E(i[o])||e.style&&E(e.style[o])||Oi(o,t)||((s=n==null?void 0:n.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(r[o]=i[o]);return r}function Ii(t,e,n){const s=Ze(t,e,n);for(const i in t)if(E(t[i])||E(e[i])){const r=wt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}function Nl(t){const e=P.useRef(null);return e.current===null&&(e.current=t()),e.current}function Ul({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},s,i,r){const o={latestValues:_l(s,i,r,t),renderState:e()};return n&&(o.mount=a=>n(s,a,o)),o}const ji=t=>(e,n)=>{const s=P.useContext($t),i=P.useContext(He),r=()=>Ul(t,e,s,i);return n?r():Nl(r)};function _l(t,e,n,s){const i={},r=s(t,{});for(const f in r)i[f]=Ft(r[f]);let{initial:o,animate:a}=t;const l=zt(t),u=Li(t);e&&u&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const h=c?a:o;if(h&&typeof h!="boolean"&&!_t(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d({style:{},transform:{},transformOrigin:{},vars:{}}),Ni=()=>({...Je(),attrs:{}}),Ui=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Kl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Wl=wt.length;function Gl(t,e,n){let s="",i=!0;for(let r=0;rtypeof t=="string"&&t.toLowerCase()==="svg",Yl={useVisualState:ji({scrapeMotionValuesFromProps:Ii,createRenderState:Ni,onMount:(t,e,{renderState:n,latestValues:s})=>{w.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),w.render(()=>{tn(n,s,en(e.tagName),t.transformTemplate),ki(e,n)})}})},ql={useVisualState:ji({scrapeMotionValuesFromProps:Ze,createRenderState:Je})};function _i(t,e,n){for(const s in e)!E(e[s])&&!Oi(s,n)&&(t[s]=e[s])}function Zl({transformTemplate:t},e){return P.useMemo(()=>{const n=Je();return Qe(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Jl(t,e){const n=t.style||{},s={};return _i(s,n,t),Object.assign(s,Zl(t,e)),s}function Ql(t,e){const n={},s=Jl(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const tu=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ut(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||tu.has(t)}let Ki=t=>!Ut(t);function eu(t){t&&(Ki=e=>e.startsWith("on")?!Ut(e):t(e))}try{eu(require("@emotion/is-prop-valid").default)}catch{}function nu(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Ki(i)||n===!0&&Ut(i)||!e&&!Ut(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function su(t,e,n,s){const i=P.useMemo(()=>{const r=Ni();return tn(r,e,en(s),t.transformTemplate),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};_i(r,t.style,t),i.style={...r,...i.style}}return i}function iu(t=!1){return(n,s,i,{latestValues:r},o)=>{const l=(qe(n)?su:Ql)(s,r,o,n),u=nu(s,typeof n=="string",t),c=n!==P.Fragment?{...u,...l,ref:i}:{},{children:h}=s,f=P.useMemo(()=>E(h)?h.get():h,[h]);return P.createElement(n,{...c,children:f})}}function ou(t,e){return function(s,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...qe(s)?Yl:ql,preloadedFeatures:t,useRender:iu(i),createVisualElement:e,Component:s};return Bl(o)}}const be={current:null},Wi={current:!1};function ru(){if(Wi.current=!0,!!Ye)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>be.current=t.matches;t.addListener(e),e()}else be.current=!1}function au(t,e,n){for(const s in e){const i=e[s],r=n[s];if(E(i))t.addValue(s,i);else if(E(r))t.addValue(s,bt(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,bt(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const gs=new WeakMap,lu=[...Bs,R,Z],uu=t=>lu.find(Fs(t)),ys=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class cu{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Le,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=_.now();this.renderScheduledAtthis.bindToMotionValue(s,n)),Wi.current||ru(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:be.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){gs.delete(this.current),this.projection&&this.projection.unmount(),Y(this.notifyUpdate),Y(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=it.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&w.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),r=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in dt){const n=dt[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):C()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;sn.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=bt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Ds(i)||Ms(i))?i=parseFloat(i):!uu(i)&&Z.test(n)&&(i=Ks(e,n)),this.setBaseTarget(e,E(i)?i.get():i)),E(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const o=we(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[e])}if(s&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!E(r)?r:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new $e),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Gi extends cu{constructor(){super(...arguments),this.KeyframeResolver=Ws}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}}function hu(t){return window.getComputedStyle(t)}class fu extends Gi{constructor(){super(...arguments),this.type="html",this.renderInstance=Fi}readValueFromInstance(e,n){if(it.has(n)){const s=Oe(n);return s&&s.default||0}else{const s=hu(e),i=(Es(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return mi(e,n)}build(e,n,s){Qe(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Ze(e,n,s)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;E(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class du extends Gi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=C}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(it.has(n)){const s=Oe(n);return s&&s.default||0}return n=Bi.has(n)?n:ze(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Ii(e,n,s)}build(e,n,s){tn(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){ki(e,n,s,i)}mount(e){this.isSVGTag=en(e.tagName),super.mount(e)}}const pu=(t,e)=>qe(t)?new du(e):new fu(e,{allowProjection:t!==P.Fragment}),mu=ou({...na,...bl,...dl,...wl},pu),Su=zi(mu);export{Su as m}; +import{b as le}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{r as P}from"./index-Bs6nXyGp.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="e274d3ba-860a-4731-9480-d498d3f94352",t._sentryDebugIdIdentifier="sentry-dbid-e274d3ba-860a-4731-9480-d498d3f94352")}catch{}})();function zi(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...s)=>t(...s);return new Proxy(n,{get:(s,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}function _t(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const ue=t=>Array.isArray(t);function vs(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function we(t,e,n,s){if(typeof e=="function"){const[i,r]=on(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=on(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function Kt(t,e,n){const s=t.getProps();return we(s,e,n!==void 0?n:s.custom,t)}const Ve=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ce=["initial",...Ve],wt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],it=new Set(wt),G=t=>t*1e3,$=t=>t/1e3,Hi={type:"spring",stiffness:500,damping:25,restSpeed:10},Xi=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Yi={type:"keyframes",duration:.8},qi={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Zi=(t,{keyframes:e})=>e.length>2?Yi:it.has(t)?t.startsWith("scale")?Xi(e[1]):Hi:qi;function Me(t,e){return t?t[e]||t.default||t:void 0}const Ji={skipAnimations:!1,useManualTiming:!1},Qi=t=>t!==null;function Wt(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(Qi),r=e&&n!=="loop"&&e%2===1?0:i.length-1;return!r||s===void 0?i[r]:s}const L=t=>t;function to(t){let e=new Set,n=new Set,s=!1,i=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){r.has(u)&&(l.schedule(u),t()),u(o)}const l={schedule:(u,c=!1,h=!1)=>{const d=h&&s?e:n;return c&&r.add(u),d.has(u)||d.add(u),u},cancel:u=>{n.delete(u),r.delete(u)},process:u=>{if(o=u,s){i=!0;return}s=!0,[e,n]=[n,e],n.clear(),e.forEach(a),s=!1,i&&(i=!1,l.process(u))}};return l}const Mt=["read","resolveKeyframes","update","preRender","render","postRender"],eo=40;function Ts(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Mt.reduce((m,T)=>(m[T]=to(r),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:f}=o,d=()=>{const m=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(m-i.timestamp,eo),1),i.timestamp=m,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),f.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(d))},p=()=>{n=!0,s=!0,i.isProcessing||t(d)};return{schedule:Mt.reduce((m,T)=>{const y=o[T];return m[T]=(S,b=!1,M=!1)=>(n||p(),y.schedule(S,b,M)),m},{}),cancel:m=>{for(let T=0;T(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,no=1e-7,so=12;function io(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=xs(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>no&&++aio(r,0,1,t,n);return r=>r===0||r===1?r:xs(i(r),e,s)}const Ps=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ss=t=>e=>1-t(1-e),As=Vt(.33,1.53,.69,.99),De=Ss(As),bs=Ps(De),ws=t=>(t*=2)<1?.5*De(t):.5*(2-Math.pow(2,-10*(t-1))),Re=t=>1-Math.sin(Math.acos(t)),Vs=Ss(Re),Cs=Ps(Re),Ms=t=>/^0[^.\s]+$/u.test(t);function oo(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Ms(t):!0}let ce=L;const Ds=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Rs=t=>e=>typeof e=="string"&&e.startsWith(t),Es=Rs("--"),ro=Rs("var(--"),Ee=t=>ro(t)?ao.test(t.split("/*")[0].trim()):!1,ao=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,lo=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function uo(t){const e=lo.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Ls(t,e,n=1){const[s,i]=uo(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return Ds(o)?parseFloat(o):o}return Ee(i)?Ls(i,e,n+1):i}const q=(t,e,n)=>n>e?e:ntypeof t=="number",parse:parseFloat,transform:t=>t},St={...pt,transform:t=>q(0,1,t)},Dt={...pt,default:1},Ct=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),X=Ct("deg"),U=Ct("%"),x=Ct("px"),co=Ct("vh"),ho=Ct("vw"),rn={...U,parse:t=>U.parse(t)/100,transform:t=>U.transform(t*100)},fo=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),an=t=>t===pt||t===x,ln=(t,e)=>parseFloat(t.split(", ")[e]),un=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return ln(i[1],e);{const r=s.match(/^matrix\((.+)\)$/u);return r?ln(r[1],t):0}},po=new Set(["x","y","z"]),mo=wt.filter(t=>!po.has(t));function go(t){const e=[];return mo.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const ht={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:un(4,13),y:un(5,14)};ht.translateX=ht.x;ht.translateY=ht.y;const Fs=t=>e=>e.test(t),yo={test:t=>t==="auto",parse:t=>t},Bs=[pt,x,U,X,ho,co,yo],cn=t=>Bs.find(Fs(t)),st=new Set;let he=!1,fe=!1;function ks(){if(fe){const t=Array.from(st).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=go(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{var a;(a=s.getValue(r))===null||a===void 0||a.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}fe=!1,he=!1,st.forEach(t=>t.complete()),st.clear()}function Os(){st.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(fe=!0)})}function vo(){Os(),ks()}class Le{constructor(e,n,s,i,r,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(st.add(this),he||(he=!0,w.read(Os),w.resolveKeyframes(ks))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let r=0;rMath.round(t*1e5)/1e5,Fe=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function To(t){return t==null}const xo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Be=(t,e)=>n=>!!(typeof n=="string"&&xo.test(n)&&n.startsWith(t)||e&&!To(n)&&Object.prototype.hasOwnProperty.call(n,e)),Is=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(Fe);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Po=t=>q(0,255,t),qt={...pt,transform:t=>Math.round(Po(t))},nt={test:Be("rgb","red"),parse:Is("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+qt.transform(t)+", "+qt.transform(e)+", "+qt.transform(n)+", "+vt(St.transform(s))+")"};function So(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const de={test:Be("#"),parse:So,transform:nt.transform},rt={test:Be("hsl","hue"),parse:Is("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+U.transform(vt(e))+", "+U.transform(vt(n))+", "+vt(St.transform(s))+")"},R={test:t=>nt.test(t)||de.test(t)||rt.test(t),parse:t=>nt.test(t)?nt.parse(t):rt.test(t)?rt.parse(t):de.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?nt.transform(t):rt.transform(t)},Ao=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function bo(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Fe))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Ao))===null||n===void 0?void 0:n.length)||0)>0}const js="number",Ns="color",wo="var",Vo="var(",hn="${}",Co=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function At(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(Co,l=>(R.test(l)?(s.color.push(r),i.push(Ns),n.push(R.parse(l))):l.startsWith(Vo)?(s.var.push(r),i.push(wo),n.push(l)):(s.number.push(r),i.push(js),n.push(parseFloat(l))),++r,hn)).split(hn);return{values:n,split:a,indexes:s,types:i}}function Us(t){return At(t).values}function _s(t){const{split:e,types:n}=At(t),s=e.length;return i=>{let r="";for(let o=0;otypeof t=="number"?0:t;function Do(t){const e=Us(t);return _s(t)(e.map(Mo))}const Z={test:bo,parse:Us,createTransformer:_s,getAnimatableNone:Do},Ro=new Set(["brightness","contrast","saturate","opacity"]);function Eo(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Fe)||[];if(!s)return t;const i=n.replace(s,"");let r=Ro.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const Lo=/\b([a-z-]*)\(.*?\)/gu,pe={...Z,getAnimatableNone:t=>{const e=t.match(Lo);return e?e.map(Eo).join(" "):t}},Fo={borderWidth:x,borderTopWidth:x,borderRightWidth:x,borderBottomWidth:x,borderLeftWidth:x,borderRadius:x,radius:x,borderTopLeftRadius:x,borderTopRightRadius:x,borderBottomRightRadius:x,borderBottomLeftRadius:x,width:x,maxWidth:x,height:x,maxHeight:x,top:x,right:x,bottom:x,left:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,backgroundPositionX:x,backgroundPositionY:x},Bo={rotate:X,rotateX:X,rotateY:X,rotateZ:X,scale:Dt,scaleX:Dt,scaleY:Dt,scaleZ:Dt,skew:X,skewX:X,skewY:X,distance:x,translateX:x,translateY:x,translateZ:x,x,y:x,z:x,perspective:x,transformPerspective:x,opacity:St,originX:rn,originY:rn,originZ:x},fn={...pt,transform:Math.round},ke={...Fo,...Bo,zIndex:fn,size:x,fillOpacity:St,strokeOpacity:St,numOctaves:fn},ko={...ke,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:pe,WebkitFilter:pe},Oe=t=>ko[t];function Ks(t,e){let n=Oe(t);return n!==pe&&(n=Z),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Oo=new Set(["auto","none","0"]);function Io(t,e,n){let s=0,i;for(;s{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Ie(t){return typeof t=="function"}let Et;function jo(){Et=void 0}const _={now:()=>(Et===void 0&&_.set(D.isProcessing||Ji.useManualTiming?D.timestamp:performance.now()),Et),set:t=>{Et=t,queueMicrotask(jo)}},dn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Z.test(t)||t==="0")&&!t.startsWith("url("));function No(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n_o?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&vo(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=_.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:r,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!Uo(e,s,i,r))if(o)this.options.duration=0;else{l==null||l(Wt(e,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(e,n);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function $s(t,e){return e?t*(1e3/e):0}const Ko=5;function zs(t,e,n){const s=Math.max(e-Ko,0);return $s(n-t(s),e-s)}const Zt=.001,Wo=.01,Go=10,$o=.05,zo=1;function Ho({duration:t=800,bounce:e=.25,velocity:n=0,mass:s=1}){let i,r,o=1-e;o=q($o,zo,o),t=q(Wo,Go,$(t)),o<1?(i=u=>{const c=u*o,h=c*t,f=c-n,d=me(u,o),p=Math.exp(-h);return Zt-f/d*p},r=u=>{const h=u*o*t,f=h*n+n,d=Math.pow(o,2)*Math.pow(u,2)*t,p=Math.exp(-h),g=me(Math.pow(u,2),o);return(-i(u)+Zt>0?-1:1)*((f-d)*p)/g}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-Zt+c*h},r=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=Yo(i,r,a);if(t=G(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:t}}}const Xo=12;function Yo(t,e,n){let s=n;for(let i=1;it[n]!==void 0)}function Jo(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!pn(t,Zo)&&pn(t,qo)){const n=Ho(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function Hs({keyframes:t,restDelta:e,restSpeed:n,...s}){const i=t[0],r=t[t.length-1],o={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:c,velocity:h,isResolvedFromDuration:f}=Jo({...s,velocity:-$(s.velocity||0)}),d=h||0,p=l/(2*Math.sqrt(a*u)),g=r-i,v=$(Math.sqrt(a/u)),m=Math.abs(g)<5;n||(n=m?.01:2),e||(e=m?.005:.5);let T;if(p<1){const y=me(v,p);T=S=>{const b=Math.exp(-p*v*S);return r-b*((d+p*v*g)/y*Math.sin(y*S)+g*Math.cos(y*S))}}else if(p===1)T=y=>r-Math.exp(-v*y)*(g+(d+v*g)*y);else{const y=v*Math.sqrt(p*p-1);T=S=>{const b=Math.exp(-p*v*S),M=Math.min(y*S,300);return r-b*((d+p*v*g)*Math.sinh(M)+y*g*Math.cosh(M))/y}}return{calculatedDuration:f&&c||null,next:y=>{const S=T(y);if(f)o.done=y>=c;else{let b=0;p<1&&(b=y===0?G(d):zs(T,y,S));const M=Math.abs(b)<=n,N=Math.abs(r-S)<=e;o.done=M&&N}return o.value=o.done?r:S,o}}}function mn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},d=A=>a!==void 0&&Al,p=A=>a===void 0?l:l===void 0||Math.abs(a-A)-g*Math.exp(-A/s),y=A=>m+T(A),S=A=>{const k=T(A),O=y(A);f.done=Math.abs(k)<=u,f.value=f.done?m:O};let b,M;const N=A=>{d(f.value)&&(b=A,M=Hs({keyframes:[f.value,p(f.value)],velocity:zs(y,A,f.value),damping:i,stiffness:r,restDelta:u,restSpeed:c}))};return N(0),{calculatedDuration:null,next:A=>{let k=!1;return!M&&b===void 0&&(k=!0,S(A),N(A)),b!==void 0&&A>=b?M.next(A-b):(!k&&S(A),f)}}}const Qo=Vt(.42,0,1,1),tr=Vt(0,0,.58,1),Xs=Vt(.42,0,.58,1),er=t=>Array.isArray(t)&&typeof t[0]!="number",je=t=>Array.isArray(t)&&typeof t[0]=="number",gn={linear:L,easeIn:Qo,easeInOut:Xs,easeOut:tr,circIn:Re,circInOut:Cs,circOut:Vs,backIn:De,backInOut:bs,backOut:As,anticipate:ws},yn=t=>{if(je(t)){ce(t.length===4);const[e,n,s,i]=t;return Vt(e,n,s,i)}else if(typeof t=="string")return ce(gn[t]!==void 0),gn[t];return t},nr=(t,e)=>n=>e(t(n)),z=(...t)=>t.reduce(nr),ft=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},V=(t,e,n)=>t+(e-t)*n;function Jt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function sr({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=Jt(l,a,t+1/3),r=Jt(l,a,t),o=Jt(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function Bt(t,e){return n=>n>0?e:t}const Qt=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},ir=[de,nt,rt],or=t=>ir.find(e=>e.test(t));function vn(t){const e=or(t);if(!e)return!1;let n=e.parse(t);return e===rt&&(n=sr(n)),n}const Tn=(t,e)=>{const n=vn(t),s=vn(e);if(!n||!s)return Bt(t,e);const i={...n};return r=>(i.red=Qt(n.red,s.red,r),i.green=Qt(n.green,s.green,r),i.blue=Qt(n.blue,s.blue,r),i.alpha=V(n.alpha,s.alpha,r),nt.transform(i))},ge=new Set(["none","hidden"]);function rr(t,e){return ge.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function ar(t,e){return n=>V(t,e,n)}function Ne(t){return typeof t=="number"?ar:typeof t=="string"?Ee(t)?Bt:R.test(t)?Tn:cr:Array.isArray(t)?Ys:typeof t=="object"?R.test(t)?Tn:lr:Bt}function Ys(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>Ne(r)(r,e[o]));return r=>{for(let o=0;o{for(const r in s)n[r]=s[r](i);return n}}function ur(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let r=0;r{const n=Z.createTransformer(e),s=At(t),i=At(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?ge.has(t)&&!i.values.length||ge.has(e)&&!s.values.length?rr(t,e):z(Ys(ur(s,i),i.values),n):Bt(t,e)};function qs(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?V(t,e,n):Ne(t)(t,e)}function hr(t,e,n){const s=[],i=n||qs,r=t.length-1;for(let o=0;oe[0];if(r===2&&t[0]===t[1])return()=>e[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=hr(e,s,i),a=o.length,l=u=>{let c=0;if(a>1)for(;cl(q(t[0],t[r-1],u)):l}function dr(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=ft(0,e,s);t.push(V(n,1,i))}}function pr(t){const e=[0];return dr(e,t.length-1),e}function mr(t,e){return t.map(n=>n*e)}function gr(t,e){return t.map(()=>e||Xs).splice(0,t.length-1)}function kt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=er(s)?s.map(yn):yn(s),r={done:!1,value:e[0]},o=mr(n&&n.length===e.length?n:pr(e),t),a=fr(o,e,{ease:Array.isArray(i)?i:gr(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const xn=2e4;function yr(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e=xn?1/0:e}const vr=t=>{const e=({timestamp:n})=>t(n);return{start:()=>w.update(e,!0),stop:()=>Y(e),now:()=>D.isProcessing?D.timestamp:_.now()}},Tr={decay:mn,inertia:mn,tween:kt,keyframes:kt,spring:Hs},xr=t=>t/100;class Ue extends Gs{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:s,element:i,keyframes:r}=this.options,o=(i==null?void 0:i.KeyframeResolver)||Le,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(r,a,n,s,i),this.resolver.scheduleResolve()}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=this.options,a=Ie(n)?n:Tr[n]||kt;let l,u;a!==kt&&typeof e[0]!="number"&&(l=z(xr,qs(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});r==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=yr(c));const{calculatedDuration:h}=c,f=h+i,d=f*(s+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:f,totalDuration:d}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:A}=this.options;return{done:!0,value:A[A.length-1]}}const{finalKeyframe:i,generator:r,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:h}=s;if(this.startTime===null)return r.next(0);const{delay:f,repeat:d,repeatType:p,repeatDelay:g,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const m=this.currentTime-f*(this.speed>=0?1:-1),T=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let y=this.currentTime,S=r;if(d){const A=Math.min(this.currentTime,c)/h;let k=Math.floor(A),O=A%1;!O&&A>=1&&(O=1),O===1&&k--,k=Math.min(k,d+1),!!(k%2)&&(p==="reverse"?(O=1-O,g&&(O-=g/h)):p==="mirror"&&(S=o)),y=q(0,1,O)*h}const b=T?{done:!1,value:l[0]}:S.next(y);a&&(b.value=a(b.value));let{done:M}=b;!T&&u!==null&&(M=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return N&&i!==void 0&&(b.value=Wt(l,this.options,i)),v&&v(b.value),N&&this.finish(),b}get duration(){const{resolved:e}=this;return e?$(e.calculatedDuration):0}get time(){return $(this.currentTime)}set time(e){e=G(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=$(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=vr,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Pr=new Set(["opacity","clipPath","filter","transform"]),Sr=10,Ar=(t,e)=>{let n="";const s=Math.max(Math.round(e/Sr),2);for(let i=0;i(e===void 0&&(e=t()),e)}const br={linearEasing:void 0};function wr(t,e){const n=_e(t);return()=>{var s;return(s=br[e])!==null&&s!==void 0?s:n()}}const Ot=wr(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function Zs(t){return!!(typeof t=="function"&&Ot()||!t||typeof t=="string"&&(t in ye||Ot())||je(t)||Array.isArray(t)&&t.every(Zs))}const gt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,ye={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gt([0,.65,.55,1]),circOut:gt([.55,0,1,.45]),backIn:gt([.31,.01,.66,-.59]),backOut:gt([.33,1.53,.69,.99])};function Js(t,e){if(t)return typeof t=="function"&&Ot()?Ar(t,e):je(t)?gt(t):Array.isArray(t)?t.map(n=>Js(n,e)||ye.easeOut):ye[t]}function Vr(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a,times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=Js(a,i);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:s,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}function Pn(t,e){t.timeline=e,t.onfinish=null}const Cr=_e(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),It=10,Mr=2e4;function Dr(t){return Ie(t.type)||t.type==="spring"||!Zs(t.ease)}function Rr(t,e){const n=new Ue({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const i=[];let r=0;for(;!s.done&&rthis.onKeyframesResolved(o,a),n,s,i),this.resolver.scheduleResolve()}initPlayback(e,n){var s;let{duration:i=300,times:r,ease:o,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((s=l.owner)===null||s===void 0)&&s.current))return!1;if(typeof o=="string"&&Ot()&&Er(o)&&(o=Qs[o]),Dr(this.options)){const{onComplete:f,onUpdate:d,motionValue:p,element:g,...v}=this.options,m=Rr(e,v);e=m.keyframes,e.length===1&&(e[1]=e[0]),i=m.duration,r=m.times,o=m.ease,a="keyframes"}const h=Vr(l.owner.current,u,e,{...this.options,duration:i,times:r,ease:o});return h.startTime=c??this.calcStartTime(),this.pendingTimeline?(Pn(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:f}=this.options;l.set(Wt(e,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:r,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return $(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return $(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=G(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return L;const{animation:s}=n;Pn(s,e)}return L}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s,duration:i,type:r,ease:o,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:h,element:f,...d}=this.options,p=new Ue({...d,keyframes:s,duration:i,type:r,ease:o,times:a,isGenerator:!0}),g=G(this.time);u.setWithVelocity(p.sample(g-It).value,p.sample(g).value,It)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:i,repeatType:r,damping:o,type:a}=e;return Cr()&&s&&Pr.has(s)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&r!=="mirror"&&o!==0&&a!=="inertia"}}const Lr=_e(()=>window.ScrollTimeline!==void 0);class Fr{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,n){return Promise.all(this.animations).then(e).catch(n)}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;sLr()&&i.attachTimeline?i.attachTimeline(e):n(i));return()=>{s.forEach((i,r)=>{i&&i(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;nn[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function Br({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Ke=(t,e,n,s={},i,r)=>o=>{const a=Me(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-G(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};Br(a)||(c={...c,...Zi(t,c)}),c.duration&&(c.duration=G(c.duration)),c.repeatDelay&&(c.repeatDelay=G(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(h=!0)),h&&!r&&e.get()!==void 0){const f=Wt(c.keyframes,a);if(f!==void 0)return w.update(()=>{c.onUpdate(f),c.onComplete()}),new Fr([])}return!r&&Sn.supports(c)?new Sn(c):new Ue(c)},kr=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Or=t=>ue(t)?t[t.length-1]||0:t;function We(t,e){t.indexOf(e)===-1&&t.push(e)}function Ge(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class $e{constructor(){this.subscriptions=[]}add(e){return We(this.subscriptions,e),()=>Ge(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r!isNaN(parseFloat(t));class jr{constructor(e,n={}){this.version="11.11.11",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const r=_.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=_.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ir(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new $e);const s=this.events[e].add(n);return e==="change"?()=>{s(),w.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=_.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>An)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,An);return $s(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function bt(t,e){return new jr(t,e)}function Nr(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,bt(n))}function Ur(t,e){const n=Kt(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Or(r[o]);Nr(t,o,a)}}const ze=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),_r="framerAppearId",ti="data-"+ze(_r);function ei(t){return t.props[ti]}const E=t=>!!(t&&t.getVelocity);function Kr(t){return!!(E(t)&&t.add)}function ve(t,e){const n=t.getValue("willChange");if(Kr(n))return n.add(e)}function Wr({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function ni(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(o=s);const u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const h in l){const f=t.getValue(h,(r=t.latestValues[h])!==null&&r!==void 0?r:null),d=l[h];if(d===void 0||c&&Wr(c,h))continue;const p={delay:n,...Me(o||{},h)};let g=!1;if(window.MotionHandoffAnimation){const m=ei(t);if(m){const T=window.MotionHandoffAnimation(m,h,w);T!==null&&(p.startTime=T,g=!0)}}ve(t,h),f.start(Ke(h,f,d,t.shouldReduceMotion&&it.has(h)?{type:!1}:p,t,g));const v=f.animation;v&&u.push(v)}return a&&Promise.all(u).then(()=>{w.update(()=>{a&&Ur(t,a)})}),u}function Te(t,e,n={}){var s;const i=Kt(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:r=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const o=i?()=>Promise.all(ni(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:f}=r;return Gr(t,e,c+u,h,f,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[u,c]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>c())}else return Promise.all([o(),a(n.delay)])}function Gr(t,e,n=0,s=0,i=1,r){const o=[],a=(t.variantChildren.size-1)*s,l=i===1?(u=0)=>u*s:(u=0)=>a-u*s;return Array.from(t.variantChildren).sort($r).forEach((u,c)=>{u.notify("AnimationStart",e),o.push(Te(u,e,{...r,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(o)}function $r(t,e){return t.sortNodePosition(e)}function zr(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>Te(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=Te(t,e,n);else{const i=typeof e=="function"?Kt(t,e,n.custom):e;s=Promise.all(ni(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Hr=Ce.length;function si(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?si(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;nPromise.all(e.map(({animation:n,options:s})=>zr(t,n,s)))}function Zr(t){let e=qr(t),n=bn(),s=!0;const i=l=>(u,c)=>{var h;const f=Kt(t,c,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:d,transitionEnd:p,...g}=f;u={...u,...g,...p}}return u};function r(l){e=l(t)}function o(l){const{props:u}=t,c=si(t.parent)||{},h=[],f=new Set;let d={},p=1/0;for(let v=0;vp&&S,k=!1;const O=Array.isArray(y)?y:[y];let ot=O.reduce(i(m),{});b===!1&&(ot={});const{prevResolvedValues:nn={}}=T,$i={...nn,...ot},sn=F=>{A=!0,f.has(F)&&(k=!0,f.delete(F)),T.needsAnimating[F]=!0;const K=t.getValue(F);K&&(K.liveStyle=!1)};for(const F in $i){const K=ot[F],Ht=nn[F];if(d.hasOwnProperty(F))continue;let Xt=!1;ue(K)&&ue(Ht)?Xt=!vs(K,Ht):Xt=K!==Ht,Xt?K!=null?sn(F):f.add(F):K!==void 0&&f.has(F)?sn(F):T.protectedKeys[F]=!0}T.prevProp=y,T.prevResolvedValues=ot,T.isActive&&(d={...d,...ot}),s&&t.blockInitialAnimation&&(A=!1),A&&(!(M&&N)||k)&&h.push(...O.map(F=>({animation:F,options:{type:m}})))}if(f.size){const v={};f.forEach(m=>{const T=t.getBaseTarget(m),y=t.getValue(m);y&&(y.liveStyle=!0),v[m]=T??null}),h.push({animation:v})}let g=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(g=!1),s=!1,g?e(h):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=t.variantChildren)===null||c===void 0||c.forEach(f=>{var d;return(d=f.animationState)===null||d===void 0?void 0:d.setActive(l,u)}),n[l].isActive=u;const h=o(l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=bn(),s=!0}}}function Jr(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!vs(e,t):!1}function Q(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bn(){return{animate:Q(!0),whileInView:Q(),whileHover:Q(),whileTap:Q(),whileDrag:Q(),whileFocus:Q(),exit:Q()}}class J{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Qr extends J{constructor(e){super(e),e.animationState||(e.animationState=Zr(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();_t(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let ta=0;class ea extends J{constructor(){super(...arguments),this.id=ta++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const na={animation:{Feature:Qr},exit:{Feature:ea}},ii=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Gt(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}const sa=t=>e=>ii(e)&&t(e,Gt(e));function W(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function H(t,e,n,s){return W(t,e,sa(n),s)}const wn=(t,e)=>Math.abs(t-e);function ia(t,e){const n=wn(t.x,e.x),s=wn(t.y,e.y);return Math.sqrt(n**2+s**2)}class oi{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=ee(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=ia(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:p}=h,{timestamp:g}=D;this.history.push({...p,timestamp:g});const{onStart:v,onMove:m}=this.handlers;f||(v&&v(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=te(f,this.transformPagePoint),w.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:p,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=ee(h.type==="pointercancel"?this.lastMoveEventInfo:te(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,v),p&&p(h,v)},!ii(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const o=Gt(e),a=te(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=D;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(e,ee(a,this.history)),this.removeListeners=z(H(this.contextWindow,"pointermove",this.handlePointerMove),H(this.contextWindow,"pointerup",this.handlePointerUp),H(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Y(this.updatePoint)}}function te(t,e){return e?{point:e(t.point)}:t}function Vn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ee({point:t},e){return{point:t,delta:Vn(t,ri(e)),offset:Vn(t,oa(e)),velocity:ra(e,.1)}}function oa(t){return t[0]}function ri(t){return t[t.length-1]}function ra(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=ri(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>G(e)));)n--;if(!s)return{x:0,y:0};const r=$(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function ai(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const Cn=ai("dragHorizontal"),Mn=ai("dragVertical");function li(t){let e=!1;if(t==="y")e=Mn();else if(t==="x")e=Cn();else{const n=Cn(),s=Mn();n&&s?e=()=>{n(),s()}:(n&&n(),s&&s())}return e}function ui(){const t=li(!0);return t?(t(),!1):!0}function at(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}const ci=1e-4,aa=1-ci,la=1+ci,hi=.01,ua=0-hi,ca=0+hi;function B(t){return t.max-t.min}function ha(t,e,n){return Math.abs(t-e)<=n}function Dn(t,e,n,s=.5){t.origin=s,t.originPoint=V(e.min,e.max,t.origin),t.scale=B(n)/B(e),t.translate=V(n.min,n.max,t.origin)-t.originPoint,(t.scale>=aa&&t.scale<=la||isNaN(t.scale))&&(t.scale=1),(t.translate>=ua&&t.translate<=ca||isNaN(t.translate))&&(t.translate=0)}function Tt(t,e,n,s){Dn(t.x,e.x,n.x,s?s.originX:void 0),Dn(t.y,e.y,n.y,s?s.originY:void 0)}function Rn(t,e,n){t.min=n.min+e.min,t.max=t.min+B(e)}function fa(t,e,n){Rn(t.x,e.x,n.x),Rn(t.y,e.y,n.y)}function En(t,e,n){t.min=e.min-n.min,t.max=t.min+B(e)}function xt(t,e,n){En(t.x,e.x,n.x),En(t.y,e.y,n.y)}function da(t,{min:e,max:n},s){return e!==void 0&&tn&&(t=s?V(n,t,s.max):Math.min(t,n)),t}function Ln(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function pa(t,{top:e,left:n,bottom:s,right:i}){return{x:Ln(t.x,n,i),y:Ln(t.y,e,s)}}function Fn(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.mins?n=ft(e.min,e.max-s,t.min):s>i&&(n=ft(t.min,t.max-i,e.min)),q(0,1,n)}function ya(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const xe=.35;function va(t=xe){return t===!1?t=0:t===!0&&(t=xe),{x:Bn(t,"left","right"),y:Bn(t,"top","bottom")}}function Bn(t,e,n){return{min:kn(t,e),max:kn(t,n)}}function kn(t,e){return typeof t=="number"?t:t[e]||0}const On=()=>({translate:0,scale:1,origin:0,originPoint:0}),lt=()=>({x:On(),y:On()}),In=()=>({min:0,max:0}),C=()=>({x:In(),y:In()});function j(t){return[t("x"),t("y")]}function fi({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Ta({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function xa(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function ne(t){return t===void 0||t===1}function Pe({scale:t,scaleX:e,scaleY:n}){return!ne(t)||!ne(e)||!ne(n)}function tt(t){return Pe(t)||di(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function di(t){return jn(t.x)||jn(t.y)}function jn(t){return t&&t!=="0%"}function jt(t,e,n){const s=t-n,i=e*s;return n+i}function Nn(t,e,n,s,i){return i!==void 0&&(t=jt(t,i,s)),jt(t,n,s)+e}function Se(t,e=0,n=1,s,i){t.min=Nn(t.min,e,n,s,i),t.max=Nn(t.max,e,n,s,i)}function pi(t,{x:e,y:n}){Se(t.x,e.translate,e.scale,e.originPoint),Se(t.y,n.translate,n.scale,n.originPoint)}const Un=.999999999999,_n=1.0000000000001;function Pa(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;aUn&&(e.x=1),e.y<_n&&e.y>Un&&(e.y=1)}function ut(t,e){t.min=t.min+e,t.max=t.max+e}function Kn(t,e,n,s,i=.5){const r=V(t.min,t.max,i);Se(t,e,n,r,s)}function ct(t,e){Kn(t.x,e.x,e.scaleX,e.scale,e.originX),Kn(t.y,e.y,e.scaleY,e.scale,e.originY)}function mi(t,e){return fi(xa(t.getBoundingClientRect(),e))}function Sa(t,e,n){const s=mi(t,n),{scroll:i}=e;return i&&(ut(s.x,i.offset.x),ut(s.y,i.offset.y)),s}const gi=({current:t})=>t?t.ownerDocument.defaultView:null,Aa=new WeakMap;class ba{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=C(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Gt(c,"page").point)},r=(c,h)=>{const{drag:f,dragPropagation:d,onDragStart:p}=this.getProps();if(f&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=li(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),j(v=>{let m=this.getAxisMotionValue(v).get()||0;if(U.test(m)){const{projection:T}=this.visualElement;if(T&&T.layout){const y=T.layout.layoutBox[v];y&&(m=B(y)*(parseFloat(m)/100))}}this.originPoint[v]=m}),p&&w.postRender(()=>p(c,h)),ve(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},o=(c,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:p,onDrag:g}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:v}=h;if(d&&this.currentDirection===null){this.currentDirection=wa(v),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,v),this.updateAxis("y",h.point,v),this.visualElement.render(),g&&g(c,h)},a=(c,h)=>this.stop(c,h),l=()=>j(c=>{var h;return this.getAnimationState(c)==="paused"&&((h=this.getAxisMotionValue(c).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new oi(e,{onSessionStart:i,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:gi(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:r}=this.getProps();r&&w.postRender(()=>r(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Rt(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=da(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,r=this.constraints;n&&at(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=pa(i.layoutBox,n):this.constraints=!1,this.elastic=va(s),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&j(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=ya(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!at(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=Sa(s,i.root,this.visualElement.getTransformPagePoint());let o=ma(i.layout.layoutBox,r);if(n){const a=n(Ta(o));this.hasMutatedConstraints=!!a,a&&(o=fi(a))}return o}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=j(c=>{if(!Rt(c,n,this.currentDirection))return;let h=l&&l[c]||{};o&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:s?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return ve(this.visualElement,e),s.start(Ke(e,s,0,n,this.visualElement,!1))}stopAnimation(){j(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){j(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){j(n=>{const{drag:s}=this.getProps();if(!Rt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];r.set(e[n]-V(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!at(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};j(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=ga({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),j(o=>{if(!Rt(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(V(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;Aa.set(this.visualElement,this);const e=this.visualElement.current,n=H(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();at(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),w.read(s);const o=W(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(j(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=xe,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function Rt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function wa(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Va extends J{constructor(e){super(e),this.removeGroupControls=L,this.removeListeners=L,this.controls=new ba(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||L}unmount(){this.removeGroupControls(),this.removeListeners()}}const Wn=t=>(e,n)=>{t&&w.postRender(()=>t(e,n))};class Ca extends J{constructor(){super(...arguments),this.removePointerDownListener=L}onPointerDown(e){this.session=new oi(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gi(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Wn(e),onStart:Wn(n),onMove:s,onEnd:(r,o)=>{delete this.session,i&&w.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=H(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const He=P.createContext(null);function Ma(){const t=P.useContext(He);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=P.useId();P.useEffect(()=>s(i),[]);const r=P.useCallback(()=>n&&n(i),[i,n]);return!e&&n?[!1,r]:[!0]}const yi=P.createContext({}),vi=P.createContext({}),Lt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Gn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const mt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(x.test(t))t=parseFloat(t);else return t;const n=Gn(t,e.target.x),s=Gn(t,e.target.y);return`${n}% ${s}%`}},Da={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=Z.parse(t);if(i.length>5)return s;const r=Z.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const u=V(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),r(i)}},Nt={};function Ra(t){Object.assign(Nt,t)}const{schedule:Xe,cancel:xu}=Ts(queueMicrotask,!1);class Ea extends P.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=e;Ra(La),r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),Lt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,o=s.projection;return o&&(o.isPresent=r,i||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||w.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Xe.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ti(t){const[e,n]=Ma(),s=P.useContext(yi);return le.jsx(Ea,{...t,layoutGroup:s,switchLayoutGroup:P.useContext(vi),isPresent:e,safeToRemove:n})}const La={borderRadius:{...mt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mt,borderTopRightRadius:mt,borderBottomLeftRadius:mt,borderBottomRightRadius:mt,boxShadow:Da},xi=["TopLeft","TopRight","BottomLeft","BottomRight"],Fa=xi.length,$n=t=>typeof t=="string"?parseFloat(t):t,zn=t=>typeof t=="number"||x.test(t);function Ba(t,e,n,s,i,r){i?(t.opacity=V(0,n.opacity!==void 0?n.opacity:1,ka(s)),t.opacityExit=V(e.opacity!==void 0?e.opacity:1,0,Oa(s))):r&&(t.opacity=V(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let o=0;ose?1:n(ft(t,e,s))}function Xn(t,e){t.min=e.min,t.max=e.max}function I(t,e){Xn(t.x,e.x),Xn(t.y,e.y)}function Yn(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function qn(t,e,n,s,i){return t-=e,t=jt(t,1/n,s),i!==void 0&&(t=jt(t,1/i,s)),t}function Ia(t,e=0,n=1,s=.5,i,r=t,o=t){if(U.test(e)&&(e=parseFloat(e),e=V(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=V(r.min,r.max,s);t===r&&(a-=e),t.min=qn(t.min,e,n,a,i),t.max=qn(t.max,e,n,a,i)}function Zn(t,e,[n,s,i],r,o){Ia(t,e[n],e[s],e[i],e.scale,r,o)}const ja=["x","scaleX","originX"],Na=["y","scaleY","originY"];function Jn(t,e,n,s){Zn(t.x,e,ja,n?n.x:void 0,s?s.x:void 0),Zn(t.y,e,Na,n?n.y:void 0,s?s.y:void 0)}function Qn(t){return t.translate===0&&t.scale===1}function Si(t){return Qn(t.x)&&Qn(t.y)}function ts(t,e){return t.min===e.min&&t.max===e.max}function Ua(t,e){return ts(t.x,e.x)&&ts(t.y,e.y)}function es(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ai(t,e){return es(t.x,e.x)&&es(t.y,e.y)}function ns(t){return B(t.x)/B(t.y)}function ss(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class _a{constructor(){this.members=[]}add(e){We(this.members,e),e.scheduleRender()}remove(e){if(Ge(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const r=this.members[i];if(r.isPresent!==!1){s=r;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ka(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:p}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),p&&(s+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const Wa=(t,e)=>t.depth-e.depth;class Ga{constructor(){this.children=[],this.isDirty=!1}add(e){We(this.children,e),this.isDirty=!0}remove(e){Ge(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Wa),this.isDirty=!1,this.children.forEach(e)}}function Ft(t){const e=E(t)?t.get():t;return kr(e)?e.toValue():e}function $a(t,e){const n=_.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(Y(s),t(r-e))};return w.read(s,!0),()=>Y(s)}function za(t){return t instanceof SVGElement&&t.tagName!=="svg"}function Ha(t,e,n){const s=E(t)?t:bt(t);return s.start(Ke("",s,e,n)),s.animation}const et={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},yt=typeof window<"u"&&window.MotionDebug!==void 0,se=["","X","Y","Z"],Xa={visibility:"hidden"},is=1e3;let Ya=0;function ie(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function bi(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=ei(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",w,!(i||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&bi(s)}function wi({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=Ya++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,yt&&(et.totalNodes=et.resolvedTargetDeltas=et.recalculatedProjection=0),this.nodes.forEach(Ja),this.nodes.forEach(sl),this.nodes.forEach(il),this.nodes.forEach(Qa),yt&&window.MotionDebug.record(et)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=$a(f,250),Lt.hasAnimatedSinceResize&&(Lt.hasAnimatedSinceResize=!1,this.nodes.forEach(rs))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||ul,{onLayoutAnimationStart:v,onLayoutAnimationComplete:m}=c.getProps(),T=!this.targetLayout||!Ai(this.targetLayout,p)||d,y=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||f&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,y);const S={...Me(g,"layout"),onPlay:v,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||rs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Y(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ol),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&bi(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const b=S/1e3;as(h.x,o.x,b),as(h.y,o.y,b),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(xt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),al(this.relativeTarget,this.relativeTargetOrigin,f,b),y&&Ua(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=C()),I(y,this.relativeTarget)),g&&(this.animationValues=c,Ba(c,u,this.latestValues,b,T,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Y(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=w.update(()=>{Lt.hasAnimatedSinceResize=!0,this.currentAnimation=Ha(0,is,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(is),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&Vi(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||C();const h=B(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const f=B(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}I(a,l),ct(a,c),Tt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new _a),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&ie("z",o,u,this.animationValues);for(let c=0;c{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(os),this.root.sharedNodes.clear()}}}function qa(t){t.updateLayout()}function Za(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:r}=t.options,o=n.source!==t.layout.source;r==="size"?j(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],d=B(f);f.min=s[h].min,f.max=f.min+d}):Vi(r,n.layoutBox,s)&&j(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],d=B(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=lt();Tt(a,s,n.layoutBox);const l=lt();o?Tt(l,t.applyTransform(i,!0),n.measuredBox):Tt(l,s,n.layoutBox);const u=!Si(a);let c=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const p=C();xt(p,n.layoutBox,f.layoutBox);const g=C();xt(g,s,d.layoutBox),Ai(p,g)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function Ja(t){yt&&et.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Qa(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tl(t){t.clearSnapshot()}function os(t){t.clearMeasurements()}function el(t){t.isLayoutDirty=!1}function nl(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function rs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function sl(t){t.resolveTargetDelta()}function il(t){t.calcProjection()}function ol(t){t.resetSkewAndRotation()}function rl(t){t.removeLeadSnapshot()}function as(t,e,n){t.translate=V(e.translate,0,n),t.scale=V(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ls(t,e,n,s){t.min=V(e.min,n.min,s),t.max=V(e.max,n.max,s)}function al(t,e,n,s){ls(t.x,e.x,n.x,s),ls(t.y,e.y,n.y,s)}function ll(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const ul={duration:.45,ease:[.4,0,.1,1]},us=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),cs=us("applewebkit/")&&!us("chrome/")?Math.round:L;function hs(t){t.min=cs(t.min),t.max=cs(t.max)}function cl(t){hs(t.x),hs(t.y)}function Vi(t,e,n){return t==="position"||t==="preserve-aspect"&&!ha(ns(e),ns(n),.2)}function hl(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const fl=wi({attachResizeListener:(t,e)=>W(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),oe={current:void 0},Ci=wi({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!oe.current){const t=new fl({});t.mount(window),t.setOptions({layoutScroll:!0}),oe.current=t}return oe.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),dl={pan:{Feature:Ca},drag:{Feature:Va,ProjectionNode:Ci,MeasureLayout:Ti}};function fs(t,e){const n=e?"pointerenter":"pointerleave",s=e?"onHoverStart":"onHoverEnd",i=(r,o)=>{if(r.pointerType==="touch"||ui())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e);const l=a[s];l&&w.postRender(()=>l(r,o))};return H(t.current,n,i,{passive:!t.getProps()[s]})}class pl extends J{mount(){this.unmount=z(fs(this.node,!0),fs(this.node,!1))}unmount(){}}class ml extends J{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=z(W(this.node.current,"focus",()=>this.onFocus()),W(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Mi=(t,e)=>e?t===e?!0:Mi(t,e.parentElement):!1;function re(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Gt(n))}class gl extends J{constructor(){super(...arguments),this.removeStartListeners=L,this.removeEndListeners=L,this.removeAccessibleListeners=L,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const s=this.node.getProps(),r=H(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:h}=this.node.getProps(),f=!h&&!Mi(this.node.current,a.target)?c:u;f&&w.update(()=>f(a,l))},{passive:!(s.onTap||s.onPointerUp)}),o=H(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(s.onTapCancel||s.onPointerCancel)});this.removeEndListeners=z(r,o),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=r=>{if(r.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||re("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&w.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=W(this.node.current,"keyup",o),re("down",(a,l)=>{this.startPress(a,l)})},n=W(this.node.current,"keydown",e),s=()=>{this.isPressing&&re("cancel",(r,o)=>this.cancelPress(r,o))},i=W(this.node.current,"blur",s);this.removeAccessibleListeners=z(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:s,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),s&&w.postRender(()=>s(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ui()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:s}=this.node.getProps();s&&w.postRender(()=>s(e,n))}mount(){const e=this.node.getProps(),n=H(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),s=W(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=z(n,s)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ae=new WeakMap,ae=new WeakMap,yl=t=>{const e=Ae.get(t.target);e&&e(t)},vl=t=>{t.forEach(yl)};function Tl({root:t,...e}){const n=t||document;ae.has(n)||ae.set(n,{});const s=ae.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(vl,{root:t,...e})),s[i]}function xl(t,e,n){const s=Tl(e);return Ae.set(t,n),s.observe(t),()=>{Ae.delete(t),s.unobserve(t)}}const Pl={some:0,all:1};class Sl extends J{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Pl[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,r&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=u?c:h;f&&f(l)};return xl(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Al(e,n))&&this.startObserver()}unmount(){}}function Al({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const bl={inView:{Feature:Sl},tap:{Feature:gl},focus:{Feature:ml},hover:{Feature:pl}},wl={layout:{ProjectionNode:Ci,MeasureLayout:Ti}},Di=P.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),$t=P.createContext({}),Ye=typeof window<"u",Vl=Ye?P.useLayoutEffect:P.useEffect,Ri=P.createContext({strict:!1});function Cl(t,e,n,s,i){var r,o;const{visualElement:a}=P.useContext($t),l=P.useContext(Ri),u=P.useContext(He),c=P.useContext(Di).reducedMotion,h=P.useRef();s=s||l.renderer,!h.current&&s&&(h.current=s(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=h.current,d=P.useContext(vi);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Ml(h.current,n,i,d);const p=P.useRef(!1);P.useInsertionEffect(()=>{f&&p.current&&f.update(n,u)});const g=n[ti],v=P.useRef(!!g&&!(!((r=window.MotionHandoffIsComplete)===null||r===void 0)&&r.call(window,g))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,g)));return Vl(()=>{f&&(p.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Xe.render(f.render),v.current&&f.animationState&&f.animationState.animateChanges())}),P.useEffect(()=>{f&&(!v.current&&f.animationState&&f.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,g)}),v.current=!1))}),f}function Ml(t,e,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Ei(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&at(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}function Ei(t){if(t)return t.options.allowProjection!==!1?t.projection:Ei(t.parent)}function Dl(t,e,n){return P.useCallback(s=>{s&&t.mount&&t.mount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):at(n)&&(n.current=s))},[e])}function zt(t){return _t(t.animate)||Ce.some(e=>Pt(t[e]))}function Li(t){return!!(zt(t)||t.variants)}function Rl(t,e){if(zt(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Pt(n)?n:void 0,animate:Pt(s)?s:void 0}}return t.inherit!==!1?e:{}}function El(t){const{initial:e,animate:n}=Rl(t,P.useContext($t));return P.useMemo(()=>({initial:e,animate:n}),[ds(e),ds(n)])}function ds(t){return Array.isArray(t)?t.join(" "):t}const ps={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},dt={};for(const t in ps)dt[t]={isEnabled:e=>ps[t].some(n=>!!e[n])};function Ll(t){for(const e in t)dt[e]={...dt[e],...t[e]}}const Fl=Symbol.for("motionComponentSymbol");function Bl({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){t&&Ll(t);function r(a,l){let u;const c={...P.useContext(Di),...a,layoutId:kl(a)},{isStatic:h}=c,f=El(a),d=s(a,h);if(!h&&Ye){Ol();const p=Il(c);u=p.MeasureLayout,f.visualElement=Cl(i,d,c,e,p.ProjectionNode)}return le.jsxs($t.Provider,{value:f,children:[u&&f.visualElement?le.jsx(u,{visualElement:f.visualElement,...c}):null,n(i,a,Dl(d,f.visualElement,l),d,h,f.visualElement)]})}const o=P.forwardRef(r);return o[Fl]=i,o}function kl({layoutId:t}){const e=P.useContext(yi).id;return e&&t!==void 0?e+"-"+t:t}function Ol(t,e){P.useContext(Ri).strict}function Il(t){const{drag:e,layout:n}=dt;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const jl=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function qe(t){return typeof t!="string"||t.includes("-")?!1:!!(jl.indexOf(t)>-1||/[A-Z]/u.test(t))}function Fi(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const r in n)t.style.setProperty(r,n[r])}const Bi=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ki(t,e,n,s){Fi(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Bi.has(i)?i:ze(i),e.attrs[i])}function Oi(t,{layout:e,layoutId:n}){return it.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Nt[t]||t==="opacity")}function Ze(t,e,n){var s;const{style:i}=t,r={};for(const o in i)(E(i[o])||e.style&&E(e.style[o])||Oi(o,t)||((s=n==null?void 0:n.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(r[o]=i[o]);return r}function Ii(t,e,n){const s=Ze(t,e,n);for(const i in t)if(E(t[i])||E(e[i])){const r=wt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}function Nl(t){const e=P.useRef(null);return e.current===null&&(e.current=t()),e.current}function Ul({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},s,i,r){const o={latestValues:_l(s,i,r,t),renderState:e()};return n&&(o.mount=a=>n(s,a,o)),o}const ji=t=>(e,n)=>{const s=P.useContext($t),i=P.useContext(He),r=()=>Ul(t,e,s,i);return n?r():Nl(r)};function _l(t,e,n,s){const i={},r=s(t,{});for(const f in r)i[f]=Ft(r[f]);let{initial:o,animate:a}=t;const l=zt(t),u=Li(t);e&&u&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const h=c?a:o;if(h&&typeof h!="boolean"&&!_t(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d({style:{},transform:{},transformOrigin:{},vars:{}}),Ni=()=>({...Je(),attrs:{}}),Ui=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Kl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Wl=wt.length;function Gl(t,e,n){let s="",i=!0;for(let r=0;rtypeof t=="string"&&t.toLowerCase()==="svg",Yl={useVisualState:ji({scrapeMotionValuesFromProps:Ii,createRenderState:Ni,onMount:(t,e,{renderState:n,latestValues:s})=>{w.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),w.render(()=>{tn(n,s,en(e.tagName),t.transformTemplate),ki(e,n)})}})},ql={useVisualState:ji({scrapeMotionValuesFromProps:Ze,createRenderState:Je})};function _i(t,e,n){for(const s in e)!E(e[s])&&!Oi(s,n)&&(t[s]=e[s])}function Zl({transformTemplate:t},e){return P.useMemo(()=>{const n=Je();return Qe(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Jl(t,e){const n=t.style||{},s={};return _i(s,n,t),Object.assign(s,Zl(t,e)),s}function Ql(t,e){const n={},s=Jl(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const tu=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ut(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||tu.has(t)}let Ki=t=>!Ut(t);function eu(t){t&&(Ki=e=>e.startsWith("on")?!Ut(e):t(e))}try{eu(require("@emotion/is-prop-valid").default)}catch{}function nu(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Ki(i)||n===!0&&Ut(i)||!e&&!Ut(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function su(t,e,n,s){const i=P.useMemo(()=>{const r=Ni();return tn(r,e,en(s),t.transformTemplate),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};_i(r,t.style,t),i.style={...r,...i.style}}return i}function iu(t=!1){return(n,s,i,{latestValues:r},o)=>{const l=(qe(n)?su:Ql)(s,r,o,n),u=nu(s,typeof n=="string",t),c=n!==P.Fragment?{...u,...l,ref:i}:{},{children:h}=s,f=P.useMemo(()=>E(h)?h.get():h,[h]);return P.createElement(n,{...c,children:f})}}function ou(t,e){return function(s,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...qe(s)?Yl:ql,preloadedFeatures:t,useRender:iu(i),createVisualElement:e,Component:s};return Bl(o)}}const be={current:null},Wi={current:!1};function ru(){if(Wi.current=!0,!!Ye)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>be.current=t.matches;t.addListener(e),e()}else be.current=!1}function au(t,e,n){for(const s in e){const i=e[s],r=n[s];if(E(i))t.addValue(s,i);else if(E(r))t.addValue(s,bt(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,bt(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const gs=new WeakMap,lu=[...Bs,R,Z],uu=t=>lu.find(Fs(t)),ys=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class cu{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Le,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=_.now();this.renderScheduledAtthis.bindToMotionValue(s,n)),Wi.current||ru(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:be.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){gs.delete(this.current),this.projection&&this.projection.unmount(),Y(this.notifyUpdate),Y(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=it.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&w.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),r=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in dt){const n=dt[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):C()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;sn.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=bt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Ds(i)||Ms(i))?i=parseFloat(i):!uu(i)&&Z.test(n)&&(i=Ks(e,n)),this.setBaseTarget(e,E(i)?i.get():i)),E(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const o=we(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[e])}if(s&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!E(r)?r:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new $e),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Gi extends cu{constructor(){super(...arguments),this.KeyframeResolver=Ws}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}}function hu(t){return window.getComputedStyle(t)}class fu extends Gi{constructor(){super(...arguments),this.type="html",this.renderInstance=Fi}readValueFromInstance(e,n){if(it.has(n)){const s=Oe(n);return s&&s.default||0}else{const s=hu(e),i=(Es(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return mi(e,n)}build(e,n,s){Qe(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Ze(e,n,s)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;E(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class du extends Gi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=C}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(it.has(n)){const s=Oe(n);return s&&s.default||0}return n=Bi.has(n)?n:ze(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Ii(e,n,s)}build(e,n,s){tn(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){ki(e,n,s,i)}mount(e){this.isSVGTag=en(e.tagName),super.mount(e)}}const pu=(t,e)=>qe(t)?new du(e):new fu(e,{allowProjection:t!==P.Fragment}),mu=ou({...na,...bl,...dl,...wl},pu),Su=zi(mu);export{Su as m}; diff --git a/assets/react-18-C2ppDB-h.js b/assets/react-18-CzVEcH-F.js similarity index 85% rename from assets/react-18-C2ppDB-h.js rename to assets/react-18-CzVEcH-F.js index bb7f4f84c..9edbd1d1c 100644 --- a/assets/react-18-C2ppDB-h.js +++ b/assets/react-18-CzVEcH-F.js @@ -1 +1 @@ -import{R as f,r as a}from"./index-B4Z6PsAH.js";import"./iframe-BnffqoK7.js";import{r as c}from"./index-C_edrjnw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="4a14a3f8-c044-4f7e-9a66-0d0a1272bd3b",e._sentryDebugIdIdentifier="sentry-dbid-4a14a3f8-c044-4f7e-9a66-0d0a1272bd3b")}catch{}})();var n={},s=c;n.createRoot=s.createRoot,n.hydrateRoot=s.hydrateRoot;var o=new Map,i=({callback:e,children:r})=>{let t=a.useRef();return a.useLayoutEffect(()=>{t.current!==e&&(t.current=e,e())},[e]),r},R=async(e,r,t)=>{let d=await y(r,t);return new Promise(u=>{d.render(f.createElement(i,{callback:()=>u(null)},e))})},b=(e,r)=>{let t=o.get(e);t&&(t.unmount(),o.delete(e))},y=async(e,r)=>{let t=o.get(e);return t||(t=n.createRoot(e,r),o.set(e,t)),t};export{R as r,b as u}; +import{R as f,r as a}from"./index-Bs6nXyGp.js";import"./iframe-AJyGuqY3.js";import{r as c}from"./index-BHRAuaXy.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="4a14a3f8-c044-4f7e-9a66-0d0a1272bd3b",e._sentryDebugIdIdentifier="sentry-dbid-4a14a3f8-c044-4f7e-9a66-0d0a1272bd3b")}catch{}})();var n={},s=c;n.createRoot=s.createRoot,n.hydrateRoot=s.hydrateRoot;var o=new Map,i=({callback:e,children:r})=>{let t=a.useRef();return a.useLayoutEffect(()=>{t.current!==e&&(t.current=e,e())},[e]),r},R=async(e,r,t)=>{let d=await y(r,t);return new Promise(u=>{d.render(f.createElement(i,{callback:()=>u(null)},e))})},b=(e,r)=>{let t=o.get(e);t&&(t.unmount(),o.delete(e))},y=async(e,r)=>{let t=o.get(e);return t||(t=n.createRoot(e,r),o.set(e,t)),t};export{R as r,b as u}; diff --git a/assets/react-CVxNFIA5.js b/assets/react-H2B7brmx.js similarity index 93% rename from assets/react-CVxNFIA5.js rename to assets/react-H2B7brmx.js index b9fabd761..1a68fa83d 100644 --- a/assets/react-CVxNFIA5.js +++ b/assets/react-H2B7brmx.js @@ -1 +1 @@ -import{R as u}from"./index-B4Z6PsAH.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="cb25ad3b-6d1a-4425-92b7-0ce8086ef269",t._sentryDebugIdIdentifier="sentry-dbid-cb25ad3b-6d1a-4425-92b7-0ce8086ef269")}catch{}})();const b=t=>{let e;const n=new Set,c=(s,a)=>{const o=typeof s=="function"?s(e):s;if(!Object.is(o,e)){const l=e;e=a??(typeof o!="object"||o===null)?o:Object.assign({},e,o),n.forEach(g=>g(e,l))}},r=()=>e,i={setState:c,getState:r,getInitialState:()=>f,subscribe:s=>(n.add(s),()=>n.delete(s))},f=e=t(c,r,i);return i},S=t=>t?b(t):b,y=t=>t;function I(t,e=y){const n=u.useSyncExternalStore(t.subscribe,()=>e(t.getState()),()=>e(t.getInitialState()));return u.useDebugValue(n),n}const d=t=>{const e=S(t),n=c=>I(e,c);return Object.assign(n,e),n},j=t=>t?d(t):d;export{j as c}; +import{R as u}from"./index-Bs6nXyGp.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="cb25ad3b-6d1a-4425-92b7-0ce8086ef269",t._sentryDebugIdIdentifier="sentry-dbid-cb25ad3b-6d1a-4425-92b7-0ce8086ef269")}catch{}})();const b=t=>{let e;const n=new Set,c=(s,a)=>{const o=typeof s=="function"?s(e):s;if(!Object.is(o,e)){const l=e;e=a??(typeof o!="object"||o===null)?o:Object.assign({},e,o),n.forEach(g=>g(e,l))}},r=()=>e,i={setState:c,getState:r,getInitialState:()=>f,subscribe:s=>(n.add(s),()=>n.delete(s))},f=e=t(c,r,i);return i},S=t=>t?b(t):b,y=t=>t;function I(t,e=y){const n=u.useSyncExternalStore(t.subscribe,()=>e(t.getState()),()=>e(t.getInitialState()));return u.useDebugValue(n),n}const d=t=>{const e=S(t),n=c=>I(e,c);return Object.assign(n,e),n},j=t=>t?d(t):d;export{j as c}; diff --git a/assets/scroll-Cr_SEktn.js b/assets/scroll-BeA4HMGQ.js similarity index 79% rename from assets/scroll-Cr_SEktn.js rename to assets/scroll-BeA4HMGQ.js index 5a9b97ebb..bd2c4a025 100644 --- a/assets/scroll-Cr_SEktn.js +++ b/assets/scroll-BeA4HMGQ.js @@ -1,4 +1,4 @@ -import{c as t}from"./emotion-react.browser.esm-DVCGPw0o.js";import{t as o}from"./theme-DwD7F4-e.js";import"./iframe-BnffqoK7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="15b3e45e-fe17-4a7a-95b3-18c27fed338a",e._sentryDebugIdIdentifier="sentry-dbid-15b3e45e-fe17-4a7a-95b3-18c27fed338a")}catch{}})();const n=t` +import{c as t}from"./emotion-react.browser.esm-Cyl1vPjg.js";import{t as o}from"./theme-Cuq_aI8Z.js";import"./iframe-AJyGuqY3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="15b3e45e-fe17-4a7a-95b3-18c27fed338a",e._sentryDebugIdIdentifier="sentry-dbid-15b3e45e-fe17-4a7a-95b3-18c27fed338a")}catch{}})();const n=t` ::-webkit-scrollbar { width: 0.8rem; height: 0.8rem; diff --git a/assets/theme-DwD7F4-e.js b/assets/theme-Cuq_aI8Z.js similarity index 97% rename from assets/theme-DwD7F4-e.js rename to assets/theme-Cuq_aI8Z.js index d7509edb5..df500bb9b 100644 --- a/assets/theme-DwD7F4-e.js +++ b/assets/theme-Cuq_aI8Z.js @@ -1 +1 @@ -import"./iframe-BnffqoK7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="8e300eb3-ec10-4c7c-8d83-aad049b242ca",e._sentryDebugIdIdentifier="sentry-dbid-8e300eb3-ec10-4c7c-8d83-aad049b242ca")}catch{}})();const i={black:"#0E121B",black_shade:"linear-gradient(270deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.70) 100%)",dimmed:"rgba(0, 0, 0, 0.40)",gray_900:"#323A4C",gray_800:"#525866",gray_700:"#6B6B6B",gray_600:"#909090",gray_500:"#99A1B2",gray_400:"#CCD1DD",gray_300:"#DFE1E8",gray_200:"#ECECF1",gray_100:"#F8F8FB",white:"#FFFFFF",key_600:"#444EE4",key_500:"#6D77FF",key_400:"#99ACFF",key_300:"#B9C7FF",key_200:"#E3E8FF",key_100:"#F3F5FF",sementic_red:"#FE4F60",sementic_success:"#1FC16B",red_200:"#EB736D",red_100:"#FFE6E8",yellow_200:"#F19234",yellow_100:"#F8E2CB",green_200:"#49B078",green_100:"#C4F2E5",purple_200:"#856ECF",purple_100:"#DCD8FA",blue_200:"#607AD4",blue_100:"#E2E8F8",pink_200:"#F175C0",pink_100:"#F8E1F5",sky_200:"#48ABD2",sky_100:"#D3EFFA"},n={heading01:{fontSize:"4rem",lineHeight:"4rem"},heading02:{fontSize:"3.2rem",lineHeight:"3.2rem"},heading03:{fontSize:"2.8rem",lineHeight:"2.8rem"},heading04:{fontSize:"2.4rem",lineHeight:"2.4rem"},heading05:{fontSize:"2rem",lineHeight:"2rem"},heading06:{fontSize:"1.6rem",lineHeight:"1.6rem"}},t={body01:{fontSize:"2.4rem",lineHeight:"2.4rem"},body02:{fontSize:"2.4rem",lineHeight:"3.36rem"},body03:{fontSize:"2rem",lineHeight:"2rem"},body04:{fontSize:"1.6rem",lineHeight:"1.6rem"},body05:{fontSize:"1.6rem",lineHeight:"2.24rem"},body06:{fontSize:"1.4rem",lineHeight:"1.4rem"},body07:{fontSize:"1.4rem",lineHeight:"1.68rem"},body08:{fontSize:"1.2rem",lineHeight:"1.2rem"},body09:{fontSize:"1.2rem",lineHeight:"1.68rem"},body10:{fontSize:"1rem",lineHeight:"1rem"}},o={overlayTop:4,overlayHigh:3,overlayMiddle:2,overlayBottom:1},a={inset:`inset 0 0 0 1px ${i.gray_300}`,inset_focus:`inset 0 0 0 1px ${i.key_500}`,shadow01:"0px 2px 8px 0px rgba(99, 99, 99, 0.2)",shadow02:"0px 4px 10px rgba(0, 0, 0, 0.1)",shadow03:"0px 3px 8px rgba(0, 0, 0, 0.24)",shadow04:"rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px",shadow05:"rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px"},y={colors:i,heading:n,text:t,zIndex:o,shadow:a};export{y as t}; +import"./iframe-AJyGuqY3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="8e300eb3-ec10-4c7c-8d83-aad049b242ca",e._sentryDebugIdIdentifier="sentry-dbid-8e300eb3-ec10-4c7c-8d83-aad049b242ca")}catch{}})();const i={black:"#0E121B",black_shade:"linear-gradient(270deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.70) 100%)",dimmed:"rgba(0, 0, 0, 0.40)",gray_900:"#323A4C",gray_800:"#525866",gray_700:"#6B6B6B",gray_600:"#909090",gray_500:"#99A1B2",gray_400:"#CCD1DD",gray_300:"#DFE1E8",gray_200:"#ECECF1",gray_100:"#F8F8FB",white:"#FFFFFF",key_600:"#444EE4",key_500:"#6D77FF",key_400:"#99ACFF",key_300:"#B9C7FF",key_200:"#E3E8FF",key_100:"#F3F5FF",sementic_red:"#FE4F60",sementic_success:"#1FC16B",red_200:"#EB736D",red_100:"#FFE6E8",yellow_200:"#F19234",yellow_100:"#F8E2CB",green_200:"#49B078",green_100:"#C4F2E5",purple_200:"#856ECF",purple_100:"#DCD8FA",blue_200:"#607AD4",blue_100:"#E2E8F8",pink_200:"#F175C0",pink_100:"#F8E1F5",sky_200:"#48ABD2",sky_100:"#D3EFFA"},n={heading01:{fontSize:"4rem",lineHeight:"4rem"},heading02:{fontSize:"3.2rem",lineHeight:"3.2rem"},heading03:{fontSize:"2.8rem",lineHeight:"2.8rem"},heading04:{fontSize:"2.4rem",lineHeight:"2.4rem"},heading05:{fontSize:"2rem",lineHeight:"2rem"},heading06:{fontSize:"1.6rem",lineHeight:"1.6rem"}},t={body01:{fontSize:"2.4rem",lineHeight:"2.4rem"},body02:{fontSize:"2.4rem",lineHeight:"3.36rem"},body03:{fontSize:"2rem",lineHeight:"2rem"},body04:{fontSize:"1.6rem",lineHeight:"1.6rem"},body05:{fontSize:"1.6rem",lineHeight:"2.24rem"},body06:{fontSize:"1.4rem",lineHeight:"1.4rem"},body07:{fontSize:"1.4rem",lineHeight:"1.68rem"},body08:{fontSize:"1.2rem",lineHeight:"1.2rem"},body09:{fontSize:"1.2rem",lineHeight:"1.68rem"},body10:{fontSize:"1rem",lineHeight:"1rem"}},o={overlayTop:4,overlayHigh:3,overlayMiddle:2,overlayBottom:1},a={inset:`inset 0 0 0 1px ${i.gray_300}`,inset_focus:`inset 0 0 0 1px ${i.key_500}`,shadow01:"0px 2px 8px 0px rgba(99, 99, 99, 0.2)",shadow02:"0px 4px 10px rgba(0, 0, 0, 0.1)",shadow03:"0px 3px 8px rgba(0, 0, 0, 0.24)",shadow04:"rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px",shadow05:"rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px"},y={colors:i,heading:n,text:t,zIndex:o,shadow:a};export{y as t}; diff --git a/assets/toast-izQVgPOM.js b/assets/toast-C2VtnlsU.js similarity index 88% rename from assets/toast-izQVgPOM.js rename to assets/toast-C2VtnlsU.js index df5a075e4..a0a1808cc 100644 --- a/assets/toast-izQVgPOM.js +++ b/assets/toast-C2VtnlsU.js @@ -1,4 +1,4 @@ -import{k as o}from"./emotion-react.browser.esm-DVCGPw0o.js";import"./iframe-BnffqoK7.js";import{c as n}from"./react-CVxNFIA5.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="861c0acc-aa7f-49da-a13f-dda979078e4f",t._sentryDebugIdIdentifier="sentry-dbid-861c0acc-aa7f-49da-a13f-dda979078e4f")}catch{}})();const c=o` +import{k as o}from"./emotion-react.browser.esm-Cyl1vPjg.js";import"./iframe-AJyGuqY3.js";import{c as n}from"./react-H2B7brmx.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="861c0acc-aa7f-49da-a13f-dda979078e4f",t._sentryDebugIdIdentifier="sentry-dbid-861c0acc-aa7f-49da-a13f-dda979078e4f")}catch{}})();const c=o` 0%{ opacity: 0; } diff --git a/assets/useOutsideClick-COUwwguf.js b/assets/useOutsideClick-CEpXkKWK.js similarity index 92% rename from assets/useOutsideClick-COUwwguf.js rename to assets/useOutsideClick-CEpXkKWK.js index 165b5ca71..87e95a841 100644 --- a/assets/useOutsideClick-COUwwguf.js +++ b/assets/useOutsideClick-CEpXkKWK.js @@ -1 +1 @@ -import{r as d}from"./index-B4Z6PsAH.js";import"./iframe-BnffqoK7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="89f28c1b-8278-40be-963b-75755cafe42d",e._sentryDebugIdIdentifier="sentry-dbid-89f28c1b-8278-40be-963b-75755cafe42d")}catch{}})();const u=e=>{const t=d.useRef(null),r=d.useCallback(n=>{!t.current||!(n.target instanceof HTMLElement)||t.current.contains(n.target)||e==null||e()},[e]),i=d.useCallback(n=>{t.current&&n.key==="Escape"&&(e==null||e())},[e]);return d.useEffect(()=>(window.addEventListener("click",r),window.addEventListener("keydown",i),()=>{window.removeEventListener("click",r),window.removeEventListener("keydown",i)}),[e,i,r]),t};export{u}; +import{r as d}from"./index-Bs6nXyGp.js";import"./iframe-AJyGuqY3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="89f28c1b-8278-40be-963b-75755cafe42d",e._sentryDebugIdIdentifier="sentry-dbid-89f28c1b-8278-40be-963b-75755cafe42d")}catch{}})();const u=e=>{const t=d.useRef(null),r=d.useCallback(n=>{!t.current||!(n.target instanceof HTMLElement)||t.current.contains(n.target)||e==null||e()},[e]),i=d.useCallback(n=>{t.current&&n.key==="Escape"&&(e==null||e())},[e]);return d.useEffect(()=>(window.addEventListener("click",r),window.addEventListener("keydown",i),()=>{window.removeEventListener("click",r),window.removeEventListener("keydown",i)}),[e,i,r]),t};export{u}; diff --git a/assets/useOverlay-jcCv9x_t.js b/assets/useOverlay-COpOggKz.js similarity index 88% rename from assets/useOverlay-jcCv9x_t.js rename to assets/useOverlay-COpOggKz.js index 816b51774..877e71907 100644 --- a/assets/useOverlay-jcCv9x_t.js +++ b/assets/useOverlay-COpOggKz.js @@ -1 +1 @@ -import{r as t}from"./index-B4Z6PsAH.js";import"./iframe-BnffqoK7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="0024e237-10e6-40ca-946c-db2b4af657f8",e._sentryDebugIdIdentifier="sentry-dbid-0024e237-10e6-40ca-946c-db2b4af657f8")}catch{}})();const f=()=>{const[e,s]=t.useState(!1),n=t.useCallback(()=>{s(!0)},[]),a=t.useCallback(()=>{s(!1)},[]),o=t.useCallback(()=>{s(r=>!r)},[]);return{isOpen:e,open:n,close:a,toggle:o}};export{f as u}; +import{r as t}from"./index-Bs6nXyGp.js";import"./iframe-AJyGuqY3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="0024e237-10e6-40ca-946c-db2b4af657f8",e._sentryDebugIdIdentifier="sentry-dbid-0024e237-10e6-40ca-946c-db2b4af657f8")}catch{}})();const f=()=>{const[e,s]=t.useState(!1),n=t.useCallback(()=>{s(!0)},[]),a=t.useCallback(()=>{s(!1)},[]),o=t.useCallback(()=>{s(r=>!r)},[]);return{isOpen:e,open:n,close:a,toggle:o}};export{f as u}; diff --git a/iframe.html b/iframe.html index df65bfe1b..bee5ca6dc 100644 --- a/iframe.html +++ b/iframe.html @@ -512,7 +512,7 @@ rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/variable/pretendardvariable.css" /> - + diff --git a/project.json b/project.json index 6b0809170..7f107e0fb 100644 --- a/project.json +++ b/project.json @@ -1 +1 @@ -{"generatedAt":1731997486881,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"testPackages":{"msw":"2.3.1"},"packageManager":{"type":"pnpm","version":"9.13.2"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"8.2.6","storybookVersionSpecifier":"^8.2.6","language":"typescript","storybookPackages":{"@storybook/blocks":{"version":"8.2.6"},"@storybook/builder-vite":{"version":"8.2.6"},"@storybook/react":{"version":"8.2.6"},"@storybook/react-vite":{"version":"8.2.6"},"@storybook/test":{"version":"8.2.6"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"8.2.6"}},"addons":{"@storybook/addon-onboarding":{"version":"8.2.6"},"@storybook/addon-links":{"version":"8.2.6"},"@storybook/addon-essentials":{"version":"8.2.6"},"@storybook/addon-a11y":{"version":"8.2.6"},"@chromatic-com/storybook":{"version":"1.6.1"},"@storybook/addon-interactions":{"version":"8.2.6"},"chromatic":{"version":"11.5.4","versionSpecifier":"^11.5.4"}}} +{"generatedAt":1732091464701,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"testPackages":{"msw":"2.3.1"},"packageManager":{"type":"pnpm","version":"9.14.1"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"8.2.6","storybookVersionSpecifier":"^8.2.6","language":"typescript","storybookPackages":{"@storybook/blocks":{"version":"8.2.6"},"@storybook/builder-vite":{"version":"8.2.6"},"@storybook/react":{"version":"8.2.6"},"@storybook/react-vite":{"version":"8.2.6"},"@storybook/test":{"version":"8.2.6"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"8.2.6"}},"addons":{"@storybook/addon-onboarding":{"version":"8.2.6"},"@storybook/addon-links":{"version":"8.2.6"},"@storybook/addon-essentials":{"version":"8.2.6"},"@storybook/addon-a11y":{"version":"8.2.6"},"@chromatic-com/storybook":{"version":"1.6.1"},"@storybook/addon-interactions":{"version":"8.2.6"},"chromatic":{"version":"11.5.4","versionSpecifier":"^11.5.4"}}} diff --git a/sb-addons/chromatic-com-storybook-11/manager-bundle.js b/sb-addons/chromatic-com-storybook-11/manager-bundle.js index 5d6f57c26..e76af5445 100644 --- a/sb-addons/chromatic-com-storybook-11/manager-bundle.js +++ b/sb-addons/chromatic-com-storybook-11/manager-bundle.js @@ -1,5 +1,5 @@ try{ -(()=>{var cc=Object.create;var za=Object.defineProperty;var dc=Object.getOwnPropertyDescriptor;var uc=Object.getOwnPropertyNames;var mc=Object.getPrototypeOf,pc=Object.prototype.hasOwnProperty;var Kt=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Ua=(e,t)=>()=>(e&&(t=e(e=0)),t);var hc=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),fc=(e,t)=>{for(var n in t)za(e,n,{get:t[n],enumerable:!0})},Xo=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of uc(t))!pc.call(e,i)&&i!==n&&za(e,i,{get:()=>t[i],enumerable:!(r=dc(t,i))||r.enumerable});return e};var gc=(e,t,n)=>(n=e!=null?cc(mc(e)):{},Xo(t||!e||!e.__esModule?za(n,"default",{value:e,enumerable:!0}):n,e)),el=e=>Xo(za({},"__esModule",{value:!0}),e);var Ee=Ua(()=>{});var Ke,ke=Ua(()=>{Ke={NODE_ENV:"production",NODE_PATH:["/home/runner/work/tiki-client/tiki-client/node_modules/.pnpm/storybook@8.2.6_@babel+preset-env@7.24.7_@babel+core@7.24.7_/node_modules/storybook/bin/node_modules","/home/runner/work/tiki-client/tiki-client/node_modules/.pnpm/storybook@8.2.6_@babel+preset-env@7.24.7_@babel+core@7.24.7_/node_modules/storybook/node_modules","/home/runner/work/tiki-client/tiki-client/node_modules/.pnpm/storybook@8.2.6_@babel+preset-env@7.24.7_@babel+core@7.24.7_/node_modules","/home/runner/work/tiki-client/tiki-client/node_modules/.pnpm/node_modules","/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.13.2/node_modules/pnpm/bin/node_modules","/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.13.2/node_modules/pnpm/node_modules","/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.13.2/node_modules","/home/runner/setup-pnpm/node_modules/.pnpm/node_modules"],STORYBOOK:"true",PUBLIC_URL:"."}});var we=Ua(()=>{});var $a={};fc($a,{Children:()=>yc,Component:()=>Vt,Fragment:()=>bc,Profiler:()=>Ec,PureComponent:()=>kc,StrictMode:()=>wc,Suspense:()=>Cc,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>Sc,cloneElement:()=>xc,createContext:()=>Je,createElement:()=>x,createFactory:()=>Mc,createRef:()=>Nc,default:()=>a,forwardRef:()=>Q,isValidElement:()=>si,lazy:()=>Fc,memo:()=>Ac,startTransition:()=>Oc,unstable_act:()=>Lc,useCallback:()=>W,useContext:()=>Jt,useDebugValue:()=>Tc,useDeferredValue:()=>_c,useEffect:()=>oe,useId:()=>Zc,useImperativeHandle:()=>Ic,useInsertionEffect:()=>Rc,useLayoutEffect:()=>Bc,useMemo:()=>jt,useReducer:()=>ci,useRef:()=>Pe,useState:()=>Re,useSyncExternalStore:()=>Pc,useTransition:()=>Vc,version:()=>jc});var a,yc,Vt,bc,Ec,kc,wc,Cc,Sc,xc,Je,x,Mc,Nc,Q,si,Fc,Ac,Oc,Lc,W,Jt,Tc,_c,oe,Zc,Ic,Rc,Bc,jt,ci,Pe,Re,Pc,Vc,jc,qn=Ua(()=>{Ee();ke();we();a=__REACT__,{Children:yc,Component:Vt,Fragment:bc,Profiler:Ec,PureComponent:kc,StrictMode:wc,Suspense:Cc,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Sc,cloneElement:xc,createContext:Je,createElement:x,createFactory:Mc,createRef:Nc,forwardRef:Q,isValidElement:si,lazy:Fc,memo:Ac,startTransition:Oc,unstable_act:Lc,useCallback:W,useContext:Jt,useDebugValue:Tc,useDeferredValue:_c,useEffect:oe,useId:Zc,useImperativeHandle:Ic,useInsertionEffect:Rc,useLayoutEffect:Bc,useMemo:jt,useReducer:ci,useRef:Pe,useState:Re,useSyncExternalStore:Pc,useTransition:Vc,version:jc}=__REACT__});var gl=hc((Jn,vi)=>{Ee();ke();we();(function(e,t){typeof Jn=="object"&&typeof vi=="object"?vi.exports=t((qn(),el($a))):typeof define=="function"&&define.amd?define(["react"],t):typeof Jn=="object"?Jn.ReactConfetti=t((qn(),el($a))):e.ReactConfetti=t(e.React)})(typeof self<"u"?self:Jn,function(e){return function(t){var n={};function r(i){if(n[i])return n[i].exports;var o=n[i]={i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(i,o,l){r.o(i,o)||Object.defineProperty(i,o,{enumerable:!0,get:l})},r.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},r.t=function(i,o){if(1&o&&(i=r(i)),8&o||4&o&&typeof i=="object"&&i&&i.__esModule)return i;var l=Object.create(null);if(r.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:i}),2&o&&typeof i!="string")for(var s in i)r.d(l,s,(function(c){return i[c]}).bind(null,s));return l},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=2)}([function(t,n){t.exports=e},function(t,n,r){"use strict";var i={linear:function(o,l,s,c){return(s-l)*o/c+l},easeInQuad:function(o,l,s,c){return(s-l)*(o/=c)*o+l},easeOutQuad:function(o,l,s,c){return-(s-l)*(o/=c)*(o-2)+l},easeInOutQuad:function(o,l,s,c){var d=s-l;return(o/=c/2)<1?d/2*o*o+l:-d/2*(--o*(o-2)-1)+l},easeInCubic:function(o,l,s,c){return(s-l)*(o/=c)*o*o+l},easeOutCubic:function(o,l,s,c){return(s-l)*((o=o/c-1)*o*o+1)+l},easeInOutCubic:function(o,l,s,c){var d=s-l;return(o/=c/2)<1?d/2*o*o*o+l:d/2*((o-=2)*o*o+2)+l},easeInQuart:function(o,l,s,c){return(s-l)*(o/=c)*o*o*o+l},easeOutQuart:function(o,l,s,c){return-(s-l)*((o=o/c-1)*o*o*o-1)+l},easeInOutQuart:function(o,l,s,c){var d=s-l;return(o/=c/2)<1?d/2*o*o*o*o+l:-d/2*((o-=2)*o*o*o-2)+l},easeInQuint:function(o,l,s,c){return(s-l)*(o/=c)*o*o*o*o+l},easeOutQuint:function(o,l,s,c){return(s-l)*((o=o/c-1)*o*o*o*o+1)+l},easeInOutQuint:function(o,l,s,c){var d=s-l;return(o/=c/2)<1?d/2*o*o*o*o*o+l:d/2*((o-=2)*o*o*o*o+2)+l},easeInSine:function(o,l,s,c){var d=s-l;return-d*Math.cos(o/c*(Math.PI/2))+d+l},easeOutSine:function(o,l,s,c){return(s-l)*Math.sin(o/c*(Math.PI/2))+l},easeInOutSine:function(o,l,s,c){return-(s-l)/2*(Math.cos(Math.PI*o/c)-1)+l},easeInExpo:function(o,l,s,c){return o==0?l:(s-l)*Math.pow(2,10*(o/c-1))+l},easeOutExpo:function(o,l,s,c){var d=s-l;return o==c?l+d:d*(1-Math.pow(2,-10*o/c))+l},easeInOutExpo:function(o,l,s,c){var d=s-l;return o===0?l:o===c?l+d:(o/=c/2)<1?d/2*Math.pow(2,10*(o-1))+l:d/2*(2-Math.pow(2,-10*--o))+l},easeInCirc:function(o,l,s,c){return-(s-l)*(Math.sqrt(1-(o/=c)*o)-1)+l},easeOutCirc:function(o,l,s,c){return(s-l)*Math.sqrt(1-(o=o/c-1)*o)+l},easeInOutCirc:function(o,l,s,c){var d=s-l;return(o/=c/2)<1?-d/2*(Math.sqrt(1-o*o)-1)+l:d/2*(Math.sqrt(1-(o-=2)*o)+1)+l},easeInElastic:function(o,l,s,c){var d,u,m,p=s-l;return m=1.70158,o===0?l:(o/=c)==1?l+p:((u=0)||(u=.3*c),(d=p)=1&&this.rotationDirection===o.Positive?this.rotationDirection=o.Negative:this.rotateY<=-1&&this.rotationDirection===o.Negative&&(this.rotationDirection=o.Positive);var Ze=.1*this.rotationDirection;if(this.rotateY+=Ze,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=be,this.context.lineCap="round",this.context.lineWidth=2,fe&&typeof fe=="function")fe.call(this,this.context);else switch(this.shape){case i.Circle:this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break;case i.Square:this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break;case i.Strip:this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h)}this.context.closePath(),this.context.restore()}}])&&m(M.prototype,F),N&&m(M,N),C}();function f(C,M,F){return M in C?Object.defineProperty(C,M,{value:F,enumerable:!0,configurable:!0,writable:!0}):C[M]=F,C}var y=function C(M,F){var N=this;(function(re,P){if(!(re instanceof P))throw new TypeError("Cannot call a class as a function")})(this,C),f(this,"canvas",void 0),f(this,"context",void 0),f(this,"getOptions",void 0),f(this,"x",0),f(this,"y",0),f(this,"w",0),f(this,"h",0),f(this,"lastNumberOfPieces",0),f(this,"tweenInitTime",Date.now()),f(this,"particles",[]),f(this,"particlesGenerated",0),f(this,"removeParticleAt",function(re){N.particles.splice(re,1)}),f(this,"getParticle",function(){var re=u(N.x,N.w+N.x),P=u(N.y,N.h+N.y);return new g(N.context,N.getOptions,re,P)}),f(this,"animate",function(){var re=N.canvas,P=N.context,ve=N.particlesGenerated,be=N.lastNumberOfPieces,fe=N.getOptions(),Ze=fe.run,Pt=fe.recycle,ze=fe.numberOfPieces,gn=fe.debug,ii=fe.tweenFunction,$n=fe.tweenDuration;if(!Ze)return!1;var oi=N.particles.length,Wn=Pt?oi:ve,li=Date.now();if(Wn$n?$n:Math.max(0,li-Yo),Wn,ze,$n),Qo=Math.round(sc-Wn),Ko=0;Kore.height||Gn.y<-100||Gn.x>re.width+100||Gn.x<-100)&&(Pt&&Wn<=ze?N.particles[Jo]=N.getParticle():N.removeParticleAt(Jo))}),oi>0||Wn0&&Ze.call(P,P),P._options.run=!1)}),v(this,"reset",function(){P.generator&&P.generator.particlesGenerated>0&&(P.generator.particlesGenerated=0,P.generator.particles=[],P.generator.lastNumberOfPieces=0)}),v(this,"stop",function(){P.options={run:!1},P.rafId&&(cancelAnimationFrame(P.rafId),P.rafId=void 0)}),this.canvas=ie;var ve=this.canvas.getContext("2d");if(!ve)throw new Error("Could not get canvas context");this.context=ve,this.generator=new y(this.canvas,function(){return P.options}),this.options=re,this.update()}var M,F,N;return M=C,(F=[{key:"options",get:function(){return this._options},set:function(ie){var re=this._options&&this._options.run,P=this._options&&this._options.recycle;this.setOptionsWithDefaults(ie),this.generator&&(Object.assign(this.generator,this.options.confettiSource),typeof ie.recycle=="boolean"&&ie.recycle&&P===!1&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),typeof ie.run=="boolean"&&ie.run&&re===!1&&this.update()}}])&&h(M.prototype,F),N&&h(M,N),C}();function B(C){return function(M){if(Array.isArray(M))return xe(M)}(C)||function(M){if(typeof Symbol<"u"&&Symbol.iterator in Object(M))return Array.from(M)}(C)||Oe(C)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +(()=>{var cc=Object.create;var za=Object.defineProperty;var dc=Object.getOwnPropertyDescriptor;var uc=Object.getOwnPropertyNames;var mc=Object.getPrototypeOf,pc=Object.prototype.hasOwnProperty;var Kt=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Ua=(e,t)=>()=>(e&&(t=e(e=0)),t);var hc=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),fc=(e,t)=>{for(var n in t)za(e,n,{get:t[n],enumerable:!0})},Xo=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of uc(t))!pc.call(e,i)&&i!==n&&za(e,i,{get:()=>t[i],enumerable:!(r=dc(t,i))||r.enumerable});return e};var gc=(e,t,n)=>(n=e!=null?cc(mc(e)):{},Xo(t||!e||!e.__esModule?za(n,"default",{value:e,enumerable:!0}):n,e)),el=e=>Xo(za({},"__esModule",{value:!0}),e);var Ee=Ua(()=>{});var Ke,ke=Ua(()=>{Ke={NODE_ENV:"production",NODE_PATH:["/home/runner/work/tiki-client/tiki-client/node_modules/.pnpm/storybook@8.2.6_@babel+preset-env@7.24.7_@babel+core@7.24.7_/node_modules/storybook/bin/node_modules","/home/runner/work/tiki-client/tiki-client/node_modules/.pnpm/storybook@8.2.6_@babel+preset-env@7.24.7_@babel+core@7.24.7_/node_modules/storybook/node_modules","/home/runner/work/tiki-client/tiki-client/node_modules/.pnpm/storybook@8.2.6_@babel+preset-env@7.24.7_@babel+core@7.24.7_/node_modules","/home/runner/work/tiki-client/tiki-client/node_modules/.pnpm/node_modules","/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.14.1/node_modules/pnpm/bin/node_modules","/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.14.1/node_modules/pnpm/node_modules","/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.14.1/node_modules","/home/runner/setup-pnpm/node_modules/.pnpm/node_modules"],STORYBOOK:"true",PUBLIC_URL:"."}});var we=Ua(()=>{});var $a={};fc($a,{Children:()=>yc,Component:()=>Vt,Fragment:()=>bc,Profiler:()=>Ec,PureComponent:()=>kc,StrictMode:()=>wc,Suspense:()=>Cc,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>Sc,cloneElement:()=>xc,createContext:()=>Je,createElement:()=>x,createFactory:()=>Mc,createRef:()=>Nc,default:()=>a,forwardRef:()=>Q,isValidElement:()=>si,lazy:()=>Fc,memo:()=>Ac,startTransition:()=>Oc,unstable_act:()=>Lc,useCallback:()=>W,useContext:()=>Jt,useDebugValue:()=>Tc,useDeferredValue:()=>_c,useEffect:()=>oe,useId:()=>Zc,useImperativeHandle:()=>Ic,useInsertionEffect:()=>Rc,useLayoutEffect:()=>Bc,useMemo:()=>jt,useReducer:()=>ci,useRef:()=>Pe,useState:()=>Re,useSyncExternalStore:()=>Pc,useTransition:()=>Vc,version:()=>jc});var a,yc,Vt,bc,Ec,kc,wc,Cc,Sc,xc,Je,x,Mc,Nc,Q,si,Fc,Ac,Oc,Lc,W,Jt,Tc,_c,oe,Zc,Ic,Rc,Bc,jt,ci,Pe,Re,Pc,Vc,jc,qn=Ua(()=>{Ee();ke();we();a=__REACT__,{Children:yc,Component:Vt,Fragment:bc,Profiler:Ec,PureComponent:kc,StrictMode:wc,Suspense:Cc,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Sc,cloneElement:xc,createContext:Je,createElement:x,createFactory:Mc,createRef:Nc,forwardRef:Q,isValidElement:si,lazy:Fc,memo:Ac,startTransition:Oc,unstable_act:Lc,useCallback:W,useContext:Jt,useDebugValue:Tc,useDeferredValue:_c,useEffect:oe,useId:Zc,useImperativeHandle:Ic,useInsertionEffect:Rc,useLayoutEffect:Bc,useMemo:jt,useReducer:ci,useRef:Pe,useState:Re,useSyncExternalStore:Pc,useTransition:Vc,version:jc}=__REACT__});var gl=hc((Jn,vi)=>{Ee();ke();we();(function(e,t){typeof Jn=="object"&&typeof vi=="object"?vi.exports=t((qn(),el($a))):typeof define=="function"&&define.amd?define(["react"],t):typeof Jn=="object"?Jn.ReactConfetti=t((qn(),el($a))):e.ReactConfetti=t(e.React)})(typeof self<"u"?self:Jn,function(e){return function(t){var n={};function r(i){if(n[i])return n[i].exports;var o=n[i]={i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(i,o,l){r.o(i,o)||Object.defineProperty(i,o,{enumerable:!0,get:l})},r.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},r.t=function(i,o){if(1&o&&(i=r(i)),8&o||4&o&&typeof i=="object"&&i&&i.__esModule)return i;var l=Object.create(null);if(r.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:i}),2&o&&typeof i!="string")for(var s in i)r.d(l,s,(function(c){return i[c]}).bind(null,s));return l},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=2)}([function(t,n){t.exports=e},function(t,n,r){"use strict";var i={linear:function(o,l,s,c){return(s-l)*o/c+l},easeInQuad:function(o,l,s,c){return(s-l)*(o/=c)*o+l},easeOutQuad:function(o,l,s,c){return-(s-l)*(o/=c)*(o-2)+l},easeInOutQuad:function(o,l,s,c){var d=s-l;return(o/=c/2)<1?d/2*o*o+l:-d/2*(--o*(o-2)-1)+l},easeInCubic:function(o,l,s,c){return(s-l)*(o/=c)*o*o+l},easeOutCubic:function(o,l,s,c){return(s-l)*((o=o/c-1)*o*o+1)+l},easeInOutCubic:function(o,l,s,c){var d=s-l;return(o/=c/2)<1?d/2*o*o*o+l:d/2*((o-=2)*o*o+2)+l},easeInQuart:function(o,l,s,c){return(s-l)*(o/=c)*o*o*o+l},easeOutQuart:function(o,l,s,c){return-(s-l)*((o=o/c-1)*o*o*o-1)+l},easeInOutQuart:function(o,l,s,c){var d=s-l;return(o/=c/2)<1?d/2*o*o*o*o+l:-d/2*((o-=2)*o*o*o-2)+l},easeInQuint:function(o,l,s,c){return(s-l)*(o/=c)*o*o*o*o+l},easeOutQuint:function(o,l,s,c){return(s-l)*((o=o/c-1)*o*o*o*o+1)+l},easeInOutQuint:function(o,l,s,c){var d=s-l;return(o/=c/2)<1?d/2*o*o*o*o*o+l:d/2*((o-=2)*o*o*o*o+2)+l},easeInSine:function(o,l,s,c){var d=s-l;return-d*Math.cos(o/c*(Math.PI/2))+d+l},easeOutSine:function(o,l,s,c){return(s-l)*Math.sin(o/c*(Math.PI/2))+l},easeInOutSine:function(o,l,s,c){return-(s-l)/2*(Math.cos(Math.PI*o/c)-1)+l},easeInExpo:function(o,l,s,c){return o==0?l:(s-l)*Math.pow(2,10*(o/c-1))+l},easeOutExpo:function(o,l,s,c){var d=s-l;return o==c?l+d:d*(1-Math.pow(2,-10*o/c))+l},easeInOutExpo:function(o,l,s,c){var d=s-l;return o===0?l:o===c?l+d:(o/=c/2)<1?d/2*Math.pow(2,10*(o-1))+l:d/2*(2-Math.pow(2,-10*--o))+l},easeInCirc:function(o,l,s,c){return-(s-l)*(Math.sqrt(1-(o/=c)*o)-1)+l},easeOutCirc:function(o,l,s,c){return(s-l)*Math.sqrt(1-(o=o/c-1)*o)+l},easeInOutCirc:function(o,l,s,c){var d=s-l;return(o/=c/2)<1?-d/2*(Math.sqrt(1-o*o)-1)+l:d/2*(Math.sqrt(1-(o-=2)*o)+1)+l},easeInElastic:function(o,l,s,c){var d,u,m,p=s-l;return m=1.70158,o===0?l:(o/=c)==1?l+p:((u=0)||(u=.3*c),(d=p)=1&&this.rotationDirection===o.Positive?this.rotationDirection=o.Negative:this.rotateY<=-1&&this.rotationDirection===o.Negative&&(this.rotationDirection=o.Positive);var Ze=.1*this.rotationDirection;if(this.rotateY+=Ze,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=be,this.context.lineCap="round",this.context.lineWidth=2,fe&&typeof fe=="function")fe.call(this,this.context);else switch(this.shape){case i.Circle:this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break;case i.Square:this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break;case i.Strip:this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h)}this.context.closePath(),this.context.restore()}}])&&m(M.prototype,F),N&&m(M,N),C}();function f(C,M,F){return M in C?Object.defineProperty(C,M,{value:F,enumerable:!0,configurable:!0,writable:!0}):C[M]=F,C}var y=function C(M,F){var N=this;(function(re,P){if(!(re instanceof P))throw new TypeError("Cannot call a class as a function")})(this,C),f(this,"canvas",void 0),f(this,"context",void 0),f(this,"getOptions",void 0),f(this,"x",0),f(this,"y",0),f(this,"w",0),f(this,"h",0),f(this,"lastNumberOfPieces",0),f(this,"tweenInitTime",Date.now()),f(this,"particles",[]),f(this,"particlesGenerated",0),f(this,"removeParticleAt",function(re){N.particles.splice(re,1)}),f(this,"getParticle",function(){var re=u(N.x,N.w+N.x),P=u(N.y,N.h+N.y);return new g(N.context,N.getOptions,re,P)}),f(this,"animate",function(){var re=N.canvas,P=N.context,ve=N.particlesGenerated,be=N.lastNumberOfPieces,fe=N.getOptions(),Ze=fe.run,Pt=fe.recycle,ze=fe.numberOfPieces,gn=fe.debug,ii=fe.tweenFunction,$n=fe.tweenDuration;if(!Ze)return!1;var oi=N.particles.length,Wn=Pt?oi:ve,li=Date.now();if(Wn$n?$n:Math.max(0,li-Yo),Wn,ze,$n),Qo=Math.round(sc-Wn),Ko=0;Kore.height||Gn.y<-100||Gn.x>re.width+100||Gn.x<-100)&&(Pt&&Wn<=ze?N.particles[Jo]=N.getParticle():N.removeParticleAt(Jo))}),oi>0||Wn0&&Ze.call(P,P),P._options.run=!1)}),v(this,"reset",function(){P.generator&&P.generator.particlesGenerated>0&&(P.generator.particlesGenerated=0,P.generator.particles=[],P.generator.lastNumberOfPieces=0)}),v(this,"stop",function(){P.options={run:!1},P.rafId&&(cancelAnimationFrame(P.rafId),P.rafId=void 0)}),this.canvas=ie;var ve=this.canvas.getContext("2d");if(!ve)throw new Error("Could not get canvas context");this.context=ve,this.generator=new y(this.canvas,function(){return P.options}),this.options=re,this.update()}var M,F,N;return M=C,(F=[{key:"options",get:function(){return this._options},set:function(ie){var re=this._options&&this._options.run,P=this._options&&this._options.recycle;this.setOptionsWithDefaults(ie),this.generator&&(Object.assign(this.generator,this.options.confettiSource),typeof ie.recycle=="boolean"&&ie.recycle&&P===!1&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),typeof ie.run=="boolean"&&ie.run&&re===!1&&this.update()}}])&&h(M.prototype,F),N&&h(M,N),C}();function B(C){return function(M){if(Array.isArray(M))return xe(M)}(C)||function(M){if(typeof Symbol<"u"&&Symbol.iterator in Object(M))return Array.from(M)}(C)||Oe(C)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function j(C){return(j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M})(C)}function Y(){return(Y=Object.assign||function(C){for(var M=1;M"u"||!(Symbol.iterator in Object(F)))){var ie=[],re=!0,P=!1,ve=void 0;try{for(var be,fe=F[Symbol.iterator]();!(re=(be=fe.next()).done)&&(ie.push(be.value),!N||ie.length!==N);re=!0);}catch(Ze){P=!0,ve=Ze}finally{try{re||fe.return==null||fe.return()}finally{if(P)throw ve}}return ie}}(C,M)||Oe(C,M)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Oe(C,M){if(C){if(typeof C=="string")return xe(C,M);var F=Object.prototype.toString.call(C).slice(8,-1);return F==="Object"&&C.constructor&&(F=C.constructor.name),F==="Map"||F==="Set"?Array.from(C):F==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F)?xe(C,M):void 0}}function xe(C,M){(M==null||M>C.length)&&(M=C.length);for(var F=0,N=new Array(M);F"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var F,N=Dn(C);if(M){var ie=Dn(this).constructor;F=Reflect.construct(N,arguments,ie)}else F=N.apply(this,arguments);return _e(this,F)}}function _e(C,M){return!M||j(M)!=="object"&&typeof M!="function"?bt(C):M}function bt(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}function Dn(C){return(Dn=Object.setPrototypeOf?Object.getPrototypeOf:function(M){return M.__proto__||Object.getPrototypeOf(M)})(C)}function Qt(C,M,F){return M in C?Object.defineProperty(C,M,{value:F,enumerable:!0,configurable:!0,writable:!0}):C[M]=F,C}var ri=s.a.createRef(),zn=function(C){(function(P,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(ve&&ve.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),ve&&Fe(P,ve)})(re,C);var M,F,N,ie=Bt(re);function re(P){var ve;Qe(this,re);for(var be=arguments.length,fe=new Array(be>1?be-1:0),Ze=1;Ze8&&(k>0&&(k+=8-b),b=8),m===Uc)return b;if(h===0)v[0]=0,S=v[1]=fi.symbol[u][t?dl:ul][b];else{E=h/(r===2?Math.pow(2,b*10):Math.pow(1e3,b)),t&&(E=E*8,E>=B&&b<8&&(E=E/B,b++));let ce=Math.pow(10,b>0?i:0);v[0]=J(E*ce)/ce,v[0]===B&&b<8&&f===-1&&(v[0]=1,b++),S=v[1]=r===10&&b===1?t?Jc:Xc:fi.symbol[u][t?dl:ul][b]}if(Y&&(v[0]=-v[0]),k>0&&(v[0]=v[0].toPrecision(k)),v[1]=d[v[1]]||v[1],o===!0?v[0]=v[0].toLocaleString():o.length>0?v[0]=v[0].toLocaleString(o,l):s.length>0&&(v[0]=v[0].toString().replace(pl,s)),n&&Number.isInteger(v[0])===!1&&i>0){let ce=s||pl,Se=v[0].toString().split(ce),Oe=Se[1]||En,xe=Oe.length,Qe=i-xe;v[0]=`${Se[0]}${ce}${Oe.padEnd(xe+Qe,nd)}`}return j&&(v[1]=g[b]?g[b]:fi.fullform[u][b]+(t?Dc:zc)+(v[0]===1?En:Qc)),m===Hc?v:m===qc?{value:v[0],symbol:v[1],exponent:b,unit:S}:v.join(c)}Ee();ke();we();var Qn=__REACT_DOM__,{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:N9,createPortal:Kn,createRoot:F9,findDOMNode:A9,flushSync:O9,hydrate:L9,hydrateRoot:T9,render:_9,unmountComponentAtNode:hl,unstable_batchedUpdates:Z9,unstable_renderSubtreeIntoContainer:fl,version:I9}=__REACT_DOM__;var J1=gc(gl(),1);Ee();ke();we();Ee();ke();we();function yi({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}var rd=yi();function bi(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(rd,"")}var id=Object.create,X1=Object.defineProperty,od=Object.getOwnPropertyDescriptor,ld=Object.getOwnPropertyNames,sd=Object.getPrototypeOf,cd=Object.prototype.hasOwnProperty,dd=(e=>typeof Kt<"u"?Kt:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof Kt<"u"?Kt:t)[n]}):e)(function(e){if(typeof Kt<"u")return Kt.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),Yt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ud=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ld(t))!cd.call(e,i)&&i!==n&&X1(e,i,{get:()=>t[i],enumerable:!(r=od(t,i))||r.enumerable});return e},ht=(e,t,n)=>(n=e!=null?id(sd(e)):{},ud(t||!e||!e.__esModule?X1(n,"default",{value:e,enumerable:!0}):n,e)),Vr=Yt((e,t)=>{(function(n,r){typeof dd=="function"&&typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define(function(){return r()}):n.pluralize=r()})(e,function(){var n=[],r=[],i={},o={},l={};function s(y){return typeof y=="string"?new RegExp("^"+y+"$","i"):y}function c(y,k){return y===k?k:y===y.toLowerCase()?k.toLowerCase():y===y.toUpperCase()?k.toUpperCase():y[0]===y[0].toUpperCase()?k.charAt(0).toUpperCase()+k.substr(1).toLowerCase():k.toLowerCase()}function d(y,k){return y.replace(/\$(\d{1,2})/g,function(b,h){return k[h]||""})}function u(y,k){return y.replace(k[0],function(b,h){var v=d(k[1],arguments);return c(b===""?y[h-1]:b,v)})}function m(y,k,b){if(!y.length||i.hasOwnProperty(y))return k;for(var h=b.length;h--;){var v=b[h];if(v[0].test(k))return u(k,v)}return k}function p(y,k,b){return function(h){var v=h.toLowerCase();return k.hasOwnProperty(v)?c(h,v):y.hasOwnProperty(v)?c(h,y[v]):m(v,h,b)}}function g(y,k,b,h){return function(v){var E=v.toLowerCase();return k.hasOwnProperty(E)?!0:y.hasOwnProperty(E)?!1:m(E,E,b)===E}}function f(y,k,b){var h=k===1?f.singular(y):f.plural(y);return(b?k+" ":"")+h}return f.plural=p(l,o,n),f.isPlural=g(l,o,n),f.singular=p(o,l,r),f.isSingular=g(o,l,r),f.addPluralRule=function(y,k){n.push([s(y),k])},f.addSingularRule=function(y,k){r.push([s(y),k])},f.addUncountableRule=function(y){if(typeof y=="string"){i[y.toLowerCase()]=!0;return}f.addPluralRule(y,"$0"),f.addSingularRule(y,"$0")},f.addIrregularRule=function(y,k){k=k.toLowerCase(),y=y.toLowerCase(),l[y]=k,o[k]=y},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(y){return f.addIrregularRule(y[0],y[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(y){return f.addPluralRule(y[0],y[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(y){return f.addSingularRule(y[0],y[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(f.addUncountableRule),f})}),md=Yt((e,t)=>{var n=new Error("Element already at target scroll position"),r=new Error("Scroll cancelled"),i=Math.min,o=Date.now;t.exports={left:l("scrollLeft"),top:l("scrollTop")};function l(d){return function(u,m,p,g){p=p||{},typeof p=="function"&&(g=p,p={}),typeof g!="function"&&(g=c);var f=o(),y=u[d],k=p.ease||s,b=isNaN(p.duration)?350:+p.duration,h=!1;return y===m?g(n,u[d]):requestAnimationFrame(E),v;function v(){h=!0}function E(S){if(h)return g(r,u[d]);var B=o(),j=i(1,(B-f)/b),Y=k(j);u[d]=Y*(m-y)+y,j<1?requestAnimationFrame(E):requestAnimationFrame(function(){g(null,u[d])})}}}function s(d){return .5*(1-Math.cos(Math.PI*d))}function c(){}}),pd=Yt((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof t=="object"&&t.exports?t.exports=r():n.Scrollparent=r()})(e,function(){function n(i){var o=getComputedStyle(i,null).getPropertyValue("overflow");return o.indexOf("scroll")>-1||o.indexOf("auto")>-1}function r(i){if(i instanceof HTMLElement||i instanceof SVGElement){for(var o=i.parentNode;o.parentNode;){if(n(o))return o;o=o.parentNode}return document.scrollingElement||document.documentElement}}return r})}),bo=Yt((e,t)=>{var n=function(v){return r(v)&&!i(v)};function r(v){return!!v&&typeof v=="object"}function i(v){var E=Object.prototype.toString.call(v);return E==="[object RegExp]"||E==="[object Date]"||s(v)}var o=typeof Symbol=="function"&&Symbol.for,l=o?Symbol.for("react.element"):60103;function s(v){return v.$$typeof===l}function c(v){return Array.isArray(v)?[]:{}}function d(v,E){return E.clone!==!1&&E.isMergeableObject(v)?b(c(v),v,E):v}function u(v,E,S){return v.concat(E).map(function(B){return d(B,S)})}function m(v,E){if(!E.customMerge)return b;var S=E.customMerge(v);return typeof S=="function"?S:b}function p(v){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(v).filter(function(E){return Object.propertyIsEnumerable.call(v,E)}):[]}function g(v){return Object.keys(v).concat(p(v))}function f(v,E){try{return E in v}catch{return!1}}function y(v,E){return f(v,E)&&!(Object.hasOwnProperty.call(v,E)&&Object.propertyIsEnumerable.call(v,E))}function k(v,E,S){var B={};return S.isMergeableObject(v)&&g(v).forEach(function(j){B[j]=d(v[j],S)}),g(E).forEach(function(j){y(v,j)||(f(v,j)&&S.isMergeableObject(E[j])?B[j]=m(j,S)(v[j],E[j],S):B[j]=d(E[j],S))}),B}function b(v,E,S){S=S||{},S.arrayMerge=S.arrayMerge||u,S.isMergeableObject=S.isMergeableObject||n,S.cloneUnlessOtherwiseSpecified=d;var B=Array.isArray(E),j=Array.isArray(v),Y=B===j;return Y?B?S.arrayMerge(v,E,S):k(v,E,S):d(E,S)}b.all=function(v,E){if(!Array.isArray(v))throw new Error("first argument should be an array");return v.reduce(function(S,B){return b(S,B,E)},{})};var h=b;t.exports=h}),hd=Yt((e,t)=>{var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=n}),fd=Yt((e,t)=>{var n=hd();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function o(c,d,u,m,p,g){if(g!==n){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}o.isRequired=o;function l(){return o}var s={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:l,element:o,elementType:o,instanceOf:l,node:o,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:i,resetWarningCache:r};return s.PropTypes=s,s}}),gd=Yt((e,t)=>{t.exports=fd()()}),vd=Yt((e,t)=>{var n=function(o){return Object.prototype.hasOwnProperty.call(o,"props")},r=function(o,l){return o+i(l)},i=function(o){return o===null||typeof o=="boolean"||typeof o>"u"?"":typeof o=="number"?o.toString():typeof o=="string"?o:Array.isArray(o)?o.reduce(r,""):n(o)&&Object.prototype.hasOwnProperty.call(o.props,"children")?i(o.props.children):""};i.default=i,t.exports=i}),yd=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.25 4.254a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0zm-.5 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",fill:e}),x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 1.504v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5zM2 9.297V2.004h10v5.293L9.854 5.15a.5.5 0 00-.708 0L6.5 7.797 5.354 6.65a.5.5 0 00-.708 0L2 9.297zM9.5 6.21l2.5 2.5v3.293H2V10.71l3-3 3.146 3.146a.5.5 0 00.708-.707L7.207 8.504 9.5 6.21z",fill:e}))),es=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3.004H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h10a.5.5 0 00.5-.5v-2.5h2.5a.5.5 0 00.5-.5v-10a.5.5 0 00-.5-.5h-10a.5.5 0 00-.5.5v2.5zm1 1v2.293l2.293-2.293H4zm-1 0v6.5a.499.499 0 00.497.5H10v2H1v-9h2zm1-1h6.5a.499.499 0 01.5.5v6.5h2v-9H4v2zm6 7V7.71l-2.293 2.293H10zm0-3.707V4.71l-5.293 5.293h1.586L10 6.297zm-.707-2.293H7.707L4 7.71v1.586l5.293-5.293z",fill:e}))),bd=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{d:"M4.5 4a.5.5 0 00-.5.5v5a.5.5 0 00.5.5h5a.5.5 0 00.5-.5v-5a.5.5 0 00-.5-.5h-5z",fill:e}),x("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}))),$t=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{d:"M12.813 7.425l-9.05 5.603A.5.5 0 013 12.603V1.398a.5.5 0 01.763-.425l9.05 5.602a.5.5 0 010 .85z",fill:e}))),Ed=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{d:"M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11z",fill:e}))),ts=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("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}),x("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}))),kd=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{d:"M6 7a3 3 0 110-6h5.5a.5.5 0 010 1H10v10.5a.5.5 0 01-1 0V2H7v10.5a.5.5 0 01-1 0V7z",fill:e}))),wd=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{d:"M5.586 5.586A2 2 0 018.862 7.73a.5.5 0 10.931.365 3 3 0 10-1.697 1.697.5.5 0 10-.365-.93 2 2 0 01-2.145-3.277z",fill:e}),x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.939 6.527c.127.128.19.297.185.464a.635.635 0 01-.185.465L0 8.395a7.099 7.099 0 001.067 2.572h1.32c.182 0 .345.076.46.197a.635.635 0 01.198.46v1.317A7.097 7.097 0 005.602 14l.94-.94a.634.634 0 01.45-.186H7.021c.163 0 .326.061.45.186l.939.938a7.098 7.098 0 002.547-1.057V11.61c0-.181.075-.344.197-.46a.634.634 0 01.46-.197h1.33c.507-.76.871-1.622 1.056-2.55l-.946-.946a.635.635 0 01-.186-.465.635.635 0 01.186-.464l.943-.944a7.099 7.099 0 00-1.044-2.522h-1.34a.635.635 0 01-.46-.197.635.635 0 01-.196-.46V1.057A7.096 7.096 0 008.413.002l-.942.942a.634.634 0 01-.45.186H6.992a.634.634 0 01-.45-.186L5.598 0a7.097 7.097 0 00-2.553 1.058v1.33c0 .182-.076.345-.197.46a.635.635 0 01-.46.198h-1.33A7.098 7.098 0 00.003 5.591l.936.936zm.707 1.636c.324-.324.482-.752.479-1.172a1.634 1.634 0 00-.48-1.171l-.538-.539c.126-.433.299-.847.513-1.235h.768c.459 0 .873-.19 1.167-.49.3-.295.49-.708.49-1.167v-.77c.39-.215.807-.388 1.243-.515l.547.547c.32.32.742.48 1.157.48l.015-.001h.014c.415 0 .836-.158 1.157-.479l.545-.544c.433.126.846.299 1.234.512v.784c0 .46.19.874.49 1.168.294.3.708.49 1.167.49h.776c.209.382.378.788.502 1.213l-.545.546a1.635 1.635 0 00-.48 1.17c-.003.421.155.849.48 1.173l.549.55c-.126.434-.3.85-.513 1.239h-.77c-.458 0-.872.19-1.166.49-.3.294-.49.708-.49 1.167v.77a6.09 6.09 0 01-1.238.514l-.54-.54a1.636 1.636 0 00-1.158-.48H6.992c-.415 0-.837.159-1.157.48l-.543.543a6.091 6.091 0 01-1.247-.516v-.756c0-.459-.19-.873-.49-1.167-.294-.3-.708-.49-1.167-.49h-.761a6.094 6.094 0 01-.523-1.262l.542-.542z",fill:e}))),Cd=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{d:"M4 7a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM13 7a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM7 8.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3z",fill:e}))),Sd=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{d:"M5.903.112a.107.107 0 01.194 0l.233.505.552.066c.091.01.128.123.06.185l-.408.377.109.546a.107.107 0 01-.158.114L6 1.634l-.485.271a.107.107 0 01-.158-.114l.108-.546-.408-.377a.107.107 0 01.06-.185L5.67.617l.233-.505zM2.194.224a.214.214 0 00-.389 0l-.466 1.01-1.104.131a.214.214 0 00-.12.37l.816.755-.217 1.091a.214.214 0 00.315.23L2 3.266l.971.543c.16.09.35-.05.315-.229l-.216-1.09.816-.756a.214.214 0 00-.12-.37L2.66 1.234 2.194.224zM12.194 8.224a.214.214 0 00-.389 0l-.466 1.01-1.104.13a.214.214 0 00-.12.371l.816.755-.217 1.091a.214.214 0 00.315.23l.97-.544.971.543c.16.09.35-.05.315-.229l-.216-1.09.816-.756a.214.214 0 00-.12-.37l-1.105-.131-.466-1.01z",fill:e}),x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 12.797l-1.293-1.293 6.758-6.758L9.258 6.04 2.5 12.797zm7.465-7.465l2.828-2.828L11.5 1.211 8.672 4.04l1.293 1.293zM.147 11.857a.5.5 0 010-.707l11-11a.5.5 0 01.706 0l2 2a.5.5 0 010 .708l-11 11a.5.5 0 01-.706 0l-2-2z",fill:e}))),Eo=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{d:"M13.854 3.354a.5.5 0 00-.708-.708L5 10.793.854 6.646a.5.5 0 10-.708.708l4.5 4.5a.5.5 0 00.708 0l8.5-8.5z",fill:e}))),vl=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{d:"M11.5 2a.5.5 0 000 1h2a.5.5 0 000-1h-2zM9.3 2.6a.5.5 0 01.1.7l-5.995 7.993a.505.505 0 01-.37.206.5.5 0 01-.395-.152L.146 8.854a.5.5 0 11.708-.708l2.092 2.093L8.6 2.7a.5.5 0 01.7-.1zM11 7a.5.5 0 01.5-.5h2a.5.5 0 010 1h-2A.5.5 0 0111 7zM11.5 11a.5.5 0 000 1h2a.5.5 0 000-1h-2z",fill:e}))),xd=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("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}),x("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}))),ko=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("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}),x("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}))),ji=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm3.854-9.354a.5.5 0 010 .708l-4.5 4.5a.5.5 0 01-.708 0l-2.5-2.5a.5.5 0 11.708-.708L6 8.793l4.146-4.147a.5.5 0 01.708 0z",fill:e}))),Md=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zM3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:e}))),Wt=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("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}))),ns=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{d:"M8 8.004a1 1 0 01-.5.866v1.634a.5.5 0 01-1 0V8.87A1 1 0 118 8.004z",fill:e}),x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4.004a4 4 0 118 0v1h1.5a.5.5 0 01.5.5v8a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-8a.5.5 0 01.5-.5H3v-1zm7 1v-1a3 3 0 10-6 0v1h6zm2 1H2v7h10v-7z",fill:e}))),Nd=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{d:"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",fill:e}),x("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}))),as=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{d:"M5.25 5.25A1.75 1.75 0 117 7a.5.5 0 00-.5.5V9a.5.5 0 001 0V7.955A2.75 2.75 0 104.25 5.25a.5.5 0 001 0zM7 11.5A.75.75 0 107 10a.75.75 0 000 1.5z",fill:e}),x("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}))),Fd=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-3.524 4.89A5.972 5.972 0 017 13a5.972 5.972 0 01-3.477-1.11l1.445-1.444C5.564 10.798 6.258 11 7 11s1.436-.202 2.032-.554l1.444 1.445zm-.03-2.858l1.445 1.444A5.972 5.972 0 0013 7c0-1.296-.41-2.496-1.11-3.477l-1.444 1.445C10.798 5.564 11 6.258 11 7s-.202 1.436-.554 2.032zM9.032 3.554l1.444-1.445A5.972 5.972 0 007 1c-1.296 0-2.496.41-3.477 1.11l1.445 1.444A3.981 3.981 0 017 3c.742 0 1.436.202 2.032.554zM3.554 4.968L2.109 3.523A5.973 5.973 0 001 7c0 1.296.41 2.496 1.11 3.476l1.444-1.444A3.981 3.981 0 013 7c0-.742.202-1.436.554-2.032zM10 7a3 3 0 11-6 0 3 3 0 016 0z",fill:e}))),Ad=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{d:"M7 4.5a.5.5 0 01.5.5v3.5a.5.5 0 11-1 0V5a.5.5 0 01.5-.5zM7.75 10.5a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",fill:e}),x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.206 1.045a.498.498 0 01.23.209l6.494 10.992a.5.5 0 01-.438.754H.508a.497.497 0 01-.506-.452.498.498 0 01.072-.31l6.49-10.984a.497.497 0 01.642-.21zM7 2.483L1.376 12h11.248L7 2.483z",fill:e}))),rs=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("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}),x("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}))),Od=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("g",{clipPath:"url(#prefix__clip0_1449_588)"},x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.414 1.586a2 2 0 00-2.828 0l-4 4a2 2 0 000 2.828l4 4a2 2 0 002.828 0l4-4a2 2 0 000-2.828l-4-4zm.707-.707a3 3 0 00-4.242 0l-4 4a3 3 0 000 4.242l4 4a3 3 0 004.242 0l4-4a3 3 0 000-4.242l-4-4z",fill:e})),x("defs",null,x("clipPath",{id:"prefix__clip0_1449_588"},x("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),is=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("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}))),Ld=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{d:"M2.76 7.096a.498.498 0 00.136.258l5.5 5.5a.5.5 0 00.707-.708L3.958 7l5.147-5.146a.5.5 0 10-.708-.708l-5.5 5.5a.5.5 0 00-.137.45z",fill:e}))),Td=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("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}))),_d=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{d:"M7.354.146l4 4a.5.5 0 01-.708.708L7 1.207 3.354 4.854a.5.5 0 11-.708-.708l4-4a.5.5 0 01.708 0zM11.354 9.146a.5.5 0 010 .708l-4 4a.5.5 0 01-.708 0l-4-4a.5.5 0 11.708-.708L7 12.793l3.646-3.647a.5.5 0 01.708 0z",fill:e}))),Zd=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{d:"M3.354.146a.5.5 0 10-.708.708l4 4a.5.5 0 00.708 0l4-4a.5.5 0 00-.708-.708L7 3.793 3.354.146zM6.646 9.146a.5.5 0 01.708 0l4 4a.5.5 0 01-.708.708L7 10.207l-3.646 3.647a.5.5 0 01-.708-.708l4-4z",fill:e}))),Id=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{d:"M10.646 2.646a.5.5 0 01.708 0l1.5 1.5a.5.5 0 010 .708l-1.5 1.5a.5.5 0 01-.708-.708L11.293 5H1.5a.5.5 0 010-1h9.793l-.647-.646a.5.5 0 010-.708zM3.354 8.354L2.707 9H12.5a.5.5 0 010 1H2.707l.647.646a.5.5 0 01-.708.708l-1.5-1.5a.5.5 0 010-.708l1.5-1.5a.5.5 0 11.708.708z",fill:e}))),Rd=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("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}))),os=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{d:"M5.5 1A.5.5 0 005 .5H2a.5.5 0 000 1h1.535a6.502 6.502 0 002.383 11.91.5.5 0 10.165-.986A5.502 5.502 0 014.5 2.1V4a.5.5 0 001 0V1.353a.5.5 0 000-.023V1zM7.507 1a.5.5 0 01.576-.41 6.502 6.502 0 012.383 11.91H12a.5.5 0 010 1H9a.5.5 0 01-.5-.5v-3a.5.5 0 011 0v1.9A5.5 5.5 0 007.917 1.576.5.5 0 017.507 1z",fill:e}))),Bd=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 7a7 7 0 1114 0A7 7 0 010 7zm6.5 3.5v2.48A6.001 6.001 0 011.02 7.5H3.5a.5.5 0 000-1H1.02A6.001 6.001 0 016.5 1.02V3.5a.5.5 0 001 0V1.02a6.001 6.001 0 015.48 5.48H10.5a.5.5 0 000 1h2.48a6.002 6.002 0 01-5.48 5.48V10.5a.5.5 0 00-1 0z",fill:e}))),Pd=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{d:"M7.5 4.5a.5.5 0 00-1 0v2.634a1 1 0 101 0V4.5z",fill:e}),x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5.5A.5.5 0 016 0h2a.5.5 0 010 1h-.5v1.02a5.973 5.973 0 013.374 1.398l.772-.772a.5.5 0 01.708.708l-.772.772A6 6 0 116.5 2.02V1H6a.5.5 0 01-.5-.5zM7 3a5 5 0 100 10A5 5 0 007 3z",fill:e}))),Vd=Q(({color:e="currentColor",size:t=14,...n},r)=>x("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zM2.671 11.155c.696-1.006 2.602-1.816 3.194-1.91.226-.036.232-.658.232-.658s-.665-.658-.81-1.544c-.39 0-.63-.94-.241-1.272a2.578 2.578 0 00-.012-.13c-.066-.607-.28-2.606 1.965-2.606 2.246 0 2.031 2 1.966 2.606l-.012.13c.39.331.149 1.272-.24 1.272-.146.886-.81 1.544-.81 1.544s.004.622.23.658c.593.094 2.5.904 3.195 1.91a6 6 0 10-8.657 0z",fill:e}))),{CHROMATIC_INDEX_URL:jd,CHROMATIC_BASE_URL:jr=jd||"https://www.chromatic.com",CHROMATIC_API_URL:Hd=`${jr}/api`}=Ke,U="chromaui/addon-visual-tests",ln=`${U}/panel`,Dd=`${U}/sidebarTop`,zd=`${U}/sidebarBottom`,Hi=`${U}/access-token/${jr}`,wo=`${U}/configInfo`,yl=`${U}/configInfoDismissed`,Ud=`${U}/gitInfo`,ls=`${U}/gitInfoError`,ss=`${U}/projectInfo`,cs=`${U}/isOffline`,Di=`${U}/isOutdated`,$d=`${U}/startBuild`,Wd=`${U}/stopBuild`,ds=`${U}/localBuildProgress`,Gd=`${U}/selectedModeName`,qd=`${U}/selectedBrowserId`,Yd=`${U}/telemetry`,us=`${U}/enableFilter`,ms=`${U}/removeAddon`,Qd={autoAcceptChanges:!1,exitOnceUploaded:!1,exitZeroOnChanges:!0,forceRebuild:!0,fromCI:!1,interactive:!1,isLocalBuild:!0,skip:!1,skipUpdateCheck:!0,storybookBuildDir:void 0},ps="https://www.chromatic.com/docs/visual-tests-addon",Kd=ht(Vr()),Jd=(e,t)=>t&&{positive:{color:e.color.positiveText},warning:{color:e.color.warningText}}[t]||{},ot=w(ol)(({active:e,variant:t,theme:n})=>({display:"inline-flex",alignItems:"center",verticalAlign:"top",gap:6,margin:0,color:e||t==="outline"?n.color.secondary:n.color.mediumdark,fontWeight:"normal","& > svg":{width:"auto"}}),({active:e,status:t,theme:n})=>!e&&Jd(n,t),({active:e,theme:t})=>{let n=t.background.content===t.color.lightest,r=n?"rgb(241,248,255)":"rgb(28,37,45)",i=n?"rgb(229,243,255)":"rgb(29,44,56)";return{"--bg-color":e?r:t.background.content,"&:hover":{"--bg-color":i,color:t.color.secondary}}}),Xd=w(ui)(({theme:e})=>({padding:"4px 8px",fontSize:e.typography.size.s1})),e5=w(ot)(({theme:e})=>({fontSize:e.typography.size.s2,"&:hover [data-badge][data-status=warning], [data-badge=true][data-status=warning]":{background:"#E3F3FF",borderColor:"rgba(2, 113, 182, 0.1)",color:"#0271B6"},"&:hover [data-badge][data-status=critical], [data-badge=true][data-status=critical]":{background:e.background.negative,boxShadow:"inset 0 0 0 1px rgba(182, 2, 2, 0.1)",color:e.color.negativeText}}),({active:e,theme:t})=>!e&&pe({"&:hover":{color:t.base==="light"?t.color.defaultText:t.color.light}})),t5=w.span(({theme:e})=>({color:e.base==="light"?e.color.defaultText:e.color.light})),bl=({active:e,count:t,label:n,status:r,...i})=>a.createElement(e5,{active:e,...i},a.createElement(Xd,{status:r,"data-badge":e,"data-status":r},t),a.createElement(t5,null,(0,Kd.default)(n,t))),n5=()=>!0,a5=({status:e})=>e?.[U]?.status==="warn",r5=({status:e})=>e?.[U]?.status==="error",i5=({status:e})=>e?.[U]?.status==="warn"||e?.[U]?.status==="error",o5=(e=!1,t=!1)=>e&&t?i5:e?a5:t?r5:n5,l5=w.div({display:"flex",gap:5}),s5=({api:e,status:t})=>{let[n,r]=a.useState(!1),[i,o]=a.useState(!1),l=Object.values(t).filter(p=>p[U]?.status==="warn"),s=Object.values(t).filter(p=>p[U]?.status==="error"),c=l.length>0,d=s.length>0,u=W(()=>r(p=>!p),[]),m=W(()=>o(p=>!p),[]);return oe(()=>{let p=o5(c&&n,d&&i);e.experimental_setFilter(U,p),e.emit(us,p)},[e,c,d,n,i]),!c&&!d?null:a.createElement(l5,{id:"sidebar-bottom-wrapper"},c&&a.createElement(bl,{id:"changes-found-filter",active:n,count:l.length,label:"Change",status:"warning",onClick:u}),d&&a.createElement(bl,{id:"errors-found-filter",active:i,count:s.length,label:"Error",status:"critical",onClick:m}))},c5=e=>{let{status:t}=yn();return a.createElement(s5,{...e,status:t})},Ei=ht(Vr()),Co=()=>{},et=Co;function ft(e){return{tag:0,0:e}}function _a(e){return{tag:1,0:e}}var El=()=>typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator",d5=e=>e;function qe(e){return t=>n=>{var r=et;t(i=>{i===0?n(0):i.tag===0?(r=i[0],n(i)):e(i[0])?n(i):r(0)})}}function zi(e){return t=>n=>t(r=>{r===0||r.tag===0?n(r):n(_a(e(r[0])))})}function cr(e){return t=>n=>{var r=[],i=et,o=!1,l=!1;t(s=>{l||(s===0?(l=!0,r.length||n(0)):s.tag===0?i=s[0]:(o=!1,function(c){var d=et;c(u=>{if(u===0){if(r.length){var m=r.indexOf(d);m>-1&&(r=r.slice()).splice(m,1),r.length||(l?n(0):o||(o=!0,i(0)))}}else u.tag===0?(r.push(d=u[0]),d(0)):r.length&&(n(u),d(0))})}(e(s[0])),o||(o=!0,i(0))))}),n(ft(s=>{if(s===1){l||(l=!0,i(1));for(var c=0,d=r,u=r.length;cn=>{var r=!1;t(i=>{if(!r)if(i===0)r=!0,n(0),e();else if(i.tag===0){var o=i[0];n(ft(l=>{l===1?(r=!0,o(1),e()):o(l)}))}else n(i)})}}function dr(e){return t=>n=>{var r=!1;t(i=>{if(!r)if(i===0)r=!0,n(0);else if(i.tag===0){var o=i[0];n(ft(l=>{l===1&&(r=!0),o(l)}))}else e(i[0]),n(i)})}}function Ui(e){return t=>n=>t(r=>{r===0?n(0):r.tag===0?(n(r),e()):n(r)})}function va(e){var t=[],n=et,r=!1;return i=>{t.push(i),t.length===1&&e(o=>{if(o===0){for(var l=0,s=t,c=t.length;l{if(o===1){var l=t.indexOf(i);l>-1&&(t=t.slice()).splice(l,1),t.length||n(1)}else r||(r=!0,n(0))}))}}function kl(e){return t=>n=>{var r=et,i=et,o=!1,l=!1,s=!1,c=!1;t(d=>{c||(d===0?(c=!0,s||n(0)):d.tag===0?r=d[0]:(s&&(i(1),i=et),o?o=!1:(o=!0,r(0)),function(u){s=!0,u(m=>{s&&(m===0?(s=!1,c?n(0):o||(o=!0,r(0))):m.tag===0?(l=!1,(i=m[0])(0)):(n(m),l?l=!1:i(0)))})}(e(d[0]))))}),n(ft(d=>{d===1?(c||(c=!0,r(1)),s&&(s=!1,i(1))):(!c&&!o&&(o=!0,r(0)),s&&!l&&(l=!0,i(0)))}))}}function Hr(e){return t=>n=>{var r=et,i=!1,o=0;t(l=>{i||(l===0?(i=!0,n(0)):l.tag===0?e<=0?(i=!0,n(0),l[0](1)):r=l[0]:o++=e&&(i=!0,n(0),r(1))):n(l))}),n(ft(l=>{l===1&&!i?(i=!0,r(1)):l===0&&!i&&on=>{var r=et,i=et,o=!1;t(l=>{o||(l===0?(o=!0,i(1),n(0)):l.tag===0?(r=l[0],e(s=>{s===0||(s.tag===0?(i=s[0])(0):(o=!0,i(1),r(1),n(0)))})):n(l))}),n(ft(l=>{l===1&&!o?(o=!0,r(1),i(1)):o||r(0)}))}}function fs(e,t){return n=>r=>{var i=et,o=!1;n(l=>{o||(l===0?(o=!0,r(0)):l.tag===0?(i=l[0],r(l)):e(l[0])?r(l):(o=!0,t&&r(l),r(0),i(1)))})}}function m5(e){return t=>e()(t)}function gs(e){return t=>{var n=e[El()]&&e[El()]()||e,r=!1,i=!1,o=!1,l;t(ft(async s=>{if(s===1)r=!0,n.return&&n.return();else if(i)o=!0;else{for(o=i=!0;o&&!r;)if((l=await n.next()).done)r=!0,n.return&&await n.return(),t(0);else try{o=!1,t(_a(l.value))}catch(c){if(n.throw)(r=!!(await n.throw(c)).done)&&t(0);else throw c}i=!1}}))}}function p5(e){return e[Symbol.asyncIterator]?gs(e):t=>{var n=e[Symbol.iterator](),r=!1,i=!1,o=!1,l;t(ft(s=>{if(s===1)r=!0,n.return&&n.return();else if(i)o=!0;else{for(o=i=!0;o&&!r;)if((l=n.next()).done)r=!0,n.return&&n.return(),t(0);else try{o=!1,t(_a(l.value))}catch(c){if(n.throw)(r=!!n.throw(c).done)&&t(0);else throw c}i=!1}}))}}var h5=p5;function ma(e){return t=>{var n=!1;t(ft(r=>{r===1?n=!0:n||(n=!0,t(_a(e)),t(0))}))}}function vs(e){return t=>{var n=!1,r=e({next(i){n||t(_a(i))},complete(){n||(n=!0,t(0))}});t(ft(i=>{i===1&&!n&&(n=!0,r())}))}}function $i(){var e,t;return{source:va(vs(n=>(e=n.next,t=n.complete,Co))),next(n){e&&e(n)},complete(){t&&t()}}}function wl(e){return vs(t=>(e.then(n=>{Promise.resolve(n).then(()=>{t.next(n),t.complete()})}),Co))}function Fn(e){return t=>{var n=et,r=!1;return t(i=>{i===0?r=!0:i.tag===0?(n=i[0])(0):r||(e(i[0]),n(0))}),{unsubscribe(){r||(r=!0,n(1))}}}}function f5(e){Fn(t=>{})(e)}function xo(e){return new Promise(t=>{var n=et,r;e(i=>{i===0?Promise.resolve(r).then(t):i.tag===0?(n=i[0])(0):(r=i[0],n(0))})})}var g5={NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType"},Wi=class extends Error{constructor(e,t,n,r,i,o,l){super(e),this.name="GraphQLError",this.message=e,i&&(this.path=i),t&&(this.nodes=Array.isArray(t)?t:[t]),n&&(this.source=n),r&&(this.positions=r),o&&(this.originalError=o);var s=l;if(!s&&o){var c=o.extensions;c&&typeof c=="object"&&(s=c)}this.extensions=s||{}}toJSON(){return{...this,message:this.message}}toString(){return this.message}get[Symbol.toStringTag](){return"GraphQLError"}},Ce,ee;function Te(e){return new Wi(`Syntax Error: Unexpected token at ${ee} in ${e}`)}function Xe(e){if(e.lastIndex=ee,e.test(Ce))return Ce.slice(ee,ee=e.lastIndex)}var Ga=/ +(?=[^\s])/y;function v5(e){for(var t=e.split(` `),n="",r=0,i=0,o=t.length-1,l=0;l