@v-miniapp/ui-react 1.0.71 → 1.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/toast/index.d.ts +1 -0
- package/dist/components/uploader/uploader.js +52 -52
- package/dist/external/index.js +103 -102
- package/dist/index.js +36 -34
- package/dist-storybook/assets/{AIApp-C4keJkW8.js → AIApp-_PxNw_hL.js} +1 -1
- package/dist-storybook/assets/{App-BkiRuUOF.js → App-m4MKIZCb.js} +1 -1
- package/dist-storybook/assets/{Color-6BZIO3FS-EdXZe4iv.js → Color-6BZIO3FS-C41L_hs-.js} +1 -1
- package/dist-storybook/assets/{DEEPLINK-CvpIbZVm.js → DEEPLINK-iTWtPNB4.js} +1 -1
- package/dist-storybook/assets/{DocsRenderer-LL677BLK-Ch7ovClC.js → DocsRenderer-LL677BLK-BsK3wzRV.js} +2 -2
- package/dist-storybook/assets/{EVENTS-Bnl2ehlm.js → EVENTS-0ZvCoqwd.js} +1 -1
- package/dist-storybook/assets/{GETTING_STARTED-CBY9dL2_.js → GETTING_STARTED-BRRlSurV.js} +1 -1
- package/dist-storybook/assets/{GETTING_STARTED-BmHWFQQE.js → GETTING_STARTED-COsppkHO.js} +1 -1
- package/dist-storybook/assets/{GETTING_STARTED-BYcN9hg3.js → GETTING_STARTED-CnKJAqB3.js} +1 -1
- package/dist-storybook/assets/{GETTING_STARTED-C1AOB25Z.js → GETTING_STARTED-nxH3uKar.js} +1 -1
- package/dist-storybook/assets/ICON-BBbwr8Pg.js +6 -0
- package/dist-storybook/assets/ICON-Zs313Mkv.js +6 -0
- package/dist-storybook/assets/{INFINITE_SCROLL-BJeWhgO7.js → INFINITE_SCROLL-BXWtrTQ3.js} +1 -1
- package/dist-storybook/assets/{LocalesProvider-CQEwtoq3.js → LocalesProvider-DTUh3RfY.js} +1 -1
- package/dist-storybook/assets/{MIGRATE_DARKMODE_TO_THEME-DCxXgvQC.js → MIGRATE_DARKMODE_TO_THEME-CKvZp9GT.js} +1 -1
- package/dist-storybook/assets/{MIGRATION_GUIDE-BN_V-xNj.js → MIGRATION_GUIDE-Bg7ISavE.js} +1 -1
- package/dist-storybook/assets/{OVERVIEW-AI-CLWBzviY.js → OVERVIEW-AI-BTli3w2O.js} +1 -1
- package/dist-storybook/assets/{OVERVIEW-Byly3lQV.js → OVERVIEW-Kl077pou.js} +1 -1
- package/dist-storybook/assets/{Router-CO6rjSXr.js → Router-9Ke7YUA9.js} +1 -1
- package/dist-storybook/assets/{TAILWIND_INTEGRATION-CpN4_fSu.js → TAILWIND_INTEGRATION-DZqhxmz1.js} +1 -1
- package/dist-storybook/assets/{THEME-B9Y39f9D.js → THEME-8FOoAaa4.js} +1 -1
- package/dist-storybook/assets/{WithTooltip-65CFNBJE-D6J_7FjK.js → WithTooltip-65CFNBJE-BAGccKXr.js} +1 -1
- package/dist-storybook/assets/{alert.stories-CUItfPLn.js → alert.stories-B5Lru6_J.js} +1 -1
- package/dist-storybook/assets/{app.store-BJVKVv1J.js → app.store-cpcSSeoH.js} +1 -1
- package/dist-storybook/assets/{avatar.stories-8_vV7Bb0.js → avatar.stories-zcCOvBCb.js} +1 -1
- package/dist-storybook/assets/{axe-4EaTvypG.js → axe-Dp1_m3af.js} +1 -1
- package/dist-storybook/assets/{badge-Gh2kTOE3.js → badge-BDzxT0vO.js} +1 -1
- package/dist-storybook/assets/{badge.stories-BXGAtgaV.js → badge.stories-DmRzf4im.js} +1 -1
- package/dist-storybook/assets/{blocks-CB7UwFa4.js → blocks-YH_FlHNe.js} +5 -5
- package/dist-storybook/assets/{bottom-tab-bar.stories-OrY-k1sb.js → bottom-tab-bar.stories-CW90Xs7W.js} +1 -1
- package/dist-storybook/assets/{button-BLW8SOpg.js → button-Dllugowd.js} +1 -1
- package/dist-storybook/assets/{button.stories--0kpp_af.js → button.stories-CxnCKWb3.js} +1 -1
- package/dist-storybook/assets/{calendar-ySr-9cXG.js → calendar-CX_QciaU.js} +1 -1
- package/dist-storybook/assets/{calendar.stories-4MQj1nsX.js → calendar.stories-C1bOkxWg.js} +1 -1
- package/dist-storybook/assets/{carousel.stories-CMtljvBR.js → carousel.stories-CKQ26RPC.js} +1 -1
- package/dist-storybook/assets/{checkbox.stories-xYjsVg2X.js → checkbox.stories-D_V1uHuA.js} +1 -1
- package/dist-storybook/assets/{chip.stories-DYEfUGq3.js → chip.stories-D7zIpToa.js} +1 -1
- package/dist-storybook/assets/{classname-Bl5epEs-.js → classname-j9cKNBJt.js} +1 -1
- package/dist-storybook/assets/{client-CN8vOzuD.js → client-QENDbUXM.js} +1 -1
- package/dist-storybook/assets/{date-DWIyMGld.js → date-CudELDq-.js} +1 -1
- package/dist-storybook/assets/{date-field.stories-5Tlzdpvr.js → date-field.stories-BYkkO7Of.js} +1 -1
- package/dist-storybook/assets/{date-picker-DeB43YU4.js → date-picker-CUPSmKVv.js} +1 -1
- package/dist-storybook/assets/{date-picker.stories-Shn-MmVG.js → date-picker.stories-Ct1nyYF9.js} +1 -1
- package/dist-storybook/assets/{dialog.stories-DeNKN0oJ.js → dialog.stories-DYNLtwcR.js} +1 -1
- package/dist-storybook/assets/{dropdown.stories-Bqmu2_KM.js → dropdown.stories-DuMHcPmK.js} +1 -1
- package/dist-storybook/assets/{embla-carousel-react.esm-DOEAp-w3.js → embla-carousel-react.esm-kjiVLhoj.js} +1 -1
- package/dist-storybook/assets/formatter-EIJCOSYU-v8aQ1Zfa.js +1 -0
- package/dist-storybook/assets/{icon-Cc9W858e.js → icon-CNKWXprF.js} +1 -1
- package/dist-storybook/assets/{icon-list-grid-CSnpdoAW.js → icon-list-grid-DoOsBMQg.js} +1 -1
- package/dist-storybook/assets/{icon.stories-DE484rTd.js → icon.stories-CYR8KraY.js} +1 -1
- package/dist-storybook/assets/{iframe-Crg_lbde.js → iframe-CwpOmiVg.js} +4 -4
- package/dist-storybook/assets/{image-CB4oeTy-.js → image-DfceViqD.js} +1 -1
- package/dist-storybook/assets/{image.stories-BlYIb_Qu.js → image.stories-Cab_evZi.js} +1 -1
- package/dist-storybook/assets/{index-B24pfkXD.js → index-C962ZRj_.js} +1 -1
- package/dist-storybook/assets/{index-hDlmuyu2.js → index-Dvav2jPE.js} +1 -1
- package/dist-storybook/assets/{index-CdnALcTP.js → index-SQXvi4Hn.js} +1 -1
- package/dist-storybook/assets/{input-wrapper-Gd3QJKqj.js → input-wrapper-Dt4hGcjK.js} +1 -1
- package/dist-storybook/assets/{label-zfqCJTGJ.js → label-BZ7u7vau.js} +1 -1
- package/dist-storybook/assets/{label.stories-C-MVt-cu.js → label.stories-_Zb4g3mj.js} +1 -1
- package/dist-storybook/assets/{navigation-bar.stories-CZ-y3eDE.js → navigation-bar.stories-Ce1QRdE0.js} +1 -1
- package/dist-storybook/assets/{number-field.stories-BA0FySSU.js → number-field.stories-Cv1LVFpi.js} +1 -1
- package/dist-storybook/assets/{omit-CRXr8Lio.js → omit-VA9qWaRH.js} +1 -1
- package/dist-storybook/assets/{option-item-DFWc14Up.js → option-item-BGTpH6mG.js} +1 -1
- package/dist-storybook/assets/{option-item.stories-DqA-ydWX.js → option-item.stories-1n_m-NYN.js} +1 -1
- package/dist-storybook/assets/{pagination-CjgiVNvu.js → pagination-DlQ4OdLE.js} +1 -1
- package/dist-storybook/assets/{pagination.stories-BsKHvdF4.js → pagination.stories-DofUDp5F.js} +1 -1
- package/dist-storybook/assets/{radio.stories-CBmxZRxo.js → radio.stories-DJtDgFV2.js} +1 -1
- package/dist-storybook/assets/{rating.stories-CcdFtcNH.js → rating.stories-_c1IMAaP.js} +1 -1
- package/dist-storybook/assets/{react-18-D2tl8ksm.js → react-18-DDzsHhPn.js} +1 -1
- package/dist-storybook/assets/{react-DO0-owxu.js → react-D0pCkoQ5.js} +1 -1
- package/dist-storybook/assets/{search-field-zl4ROLfn.js → search-field-D8PnC6xh.js} +1 -1
- package/dist-storybook/assets/{search-field.stories-DoclnxtC.js → search-field.stories-CoKWeGCe.js} +1 -1
- package/dist-storybook/assets/{section.stories-Bqz_QgYp.js → section.stories-BluBPEOh.js} +1 -1
- package/dist-storybook/assets/{sheet-body-2dWL2AE5.js → sheet-body-C2iQbsjb.js} +1 -1
- package/dist-storybook/assets/{sheet-footer-DuPhbVOb.js → sheet-footer-BXXMuZ71.js} +1 -1
- package/dist-storybook/assets/{sheet.stories-CoXnt4LG.js → sheet.stories-D_AjI4ZQ.js} +1 -1
- package/dist-storybook/assets/{skeleton-BVLpHxKT.js → skeleton-D4olSWeN.js} +1 -1
- package/dist-storybook/assets/{skeleton.stories-B-OfMZId.js → skeleton.stories-DNvCIPdU.js} +1 -1
- package/dist-storybook/assets/{switch.stories-D4PQjgbo.js → switch.stories-DhlXmlW0.js} +1 -1
- package/dist-storybook/assets/{syntaxhighlighter-ED5Y7EFY-BxRQp_WE.js → syntaxhighlighter-ED5Y7EFY-CCu2o3S4.js} +1 -1
- package/dist-storybook/assets/{tab-bar.stories-BrcQMypS.js → tab-bar.stories-Cl57k4wB.js} +1 -1
- package/dist-storybook/assets/{text-area.stories-Bpaw2_4A.js → text-area.stories-DSi8_IE3.js} +1 -1
- package/dist-storybook/assets/{text-field-CqJG0bIl.js → text-field-Dvj2ft-b.js} +1 -1
- package/dist-storybook/assets/{text-field.stories-PQoP3DbL.js → text-field.stories-DIcrzICP.js} +1 -1
- package/dist-storybook/assets/{toast.stories-DmPy9T3m.js → toast.stories-G9BdRB3z.js} +1 -1
- package/dist-storybook/assets/{tooltip.stories-Be_kIaDc.js → tooltip.stories-D_I3ZlPZ.js} +1 -1
- package/dist-storybook/assets/{typography-CMIMyivt.js → typography-B019AQYH.js} +1 -1
- package/dist-storybook/assets/{typography.stories-DSt5W_AG.js → typography.stories-1dyN8AoL.js} +1 -1
- package/dist-storybook/assets/{uploader.stories-C5CmeXEk.js → uploader.stories-Yj8ZHgmi.js} +10 -10
- package/dist-storybook/assets/{use-app-pause-_ycnhKwZ.js → use-app-pause-B-gOoNBn.js} +1 -1
- package/dist-storybook/assets/{use-app-resume-CWb2s-wo.js → use-app-resume-Bk4GckOL.js} +1 -1
- package/dist-storybook/assets/{use-bottom-tab-bar--DRl-8c4.js → use-bottom-tab-bar-BKcVNDJd.js} +1 -1
- package/dist-storybook/assets/{use-custom-icon-event-BXcRPkLg.js → use-custom-icon-event-CBdHlZ04.js} +1 -1
- package/dist-storybook/assets/{use-did-hide-LBcrwoUo.js → use-did-hide-BExFPTMC.js} +1 -1
- package/dist-storybook/assets/{use-did-show-BXLstTgt.js → use-did-show-fGnLVYD9.js} +1 -1
- package/dist-storybook/assets/{use-histories-Cz7ncXaj.js → use-histories-BknZeX2F.js} +1 -1
- package/dist-storybook/assets/{use-history-B_w6SPwr.js → use-history-Bp7OOVl1.js} +1 -1
- package/dist-storybook/assets/{use-language-D84C9QNT.js → use-language-DYxdY6Ft.js} +1 -1
- package/dist-storybook/assets/{use-load-more-Bb9YFkAE.js → use-load-more-DOeXmNjp.js} +1 -1
- package/dist-storybook/assets/{use-location-DnxJ5FvJ.js → use-location-Dn6n38WV.js} +1 -1
- package/dist-storybook/assets/{use-navigate-OLqoL3vR.js → use-navigate-DrOR9Tq1.js} +1 -1
- package/dist-storybook/assets/{use-navigation-bar-D5BX6S-r.js → use-navigation-bar-C-h-uIVX.js} +1 -1
- package/dist-storybook/assets/{use-navigation-type-Cq7T35ur.js → use-navigation-type-hrwQdqXJ.js} +1 -1
- package/dist-storybook/assets/{use-page-layout-BrFRWwC6.js → use-page-layout-COmNtUSO.js} +1 -1
- package/dist-storybook/assets/{use-page-scroll-BZ8XiPza.js → use-page-scroll-B13Lqf5-.js} +1 -1
- package/dist-storybook/assets/{use-pull-to-refresh-BEjtxiFn.js → use-pull-to-refresh-CG2UoiVR.js} +1 -1
- package/dist-storybook/assets/{use-settings-changed-UaQRSWAg.js → use-settings-changed-CyyTxLz7.js} +1 -1
- package/dist-storybook/assets/{use-translate-BO8E9Sde.js → use-translate-BU2rC7hs.js} +1 -1
- package/dist-storybook/iframe.html +1 -1
- package/dist-storybook/project.json +1 -1
- package/package.json +1 -1
- package/dist-storybook/assets/ICON-BaZgXbtw.js +0 -6
- package/dist-storybook/assets/ICON-CT1pTB1A.js +0 -6
- package/dist-storybook/assets/formatter-EIJCOSYU-DZLV30KU.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as x,j as T}from"./iframe-Crg_lbde.js";import{i as Bn,T as No,S as Oo,a as Fn,P as Uo,b as $o}from"./blocks-CB7UwFa4.js";import{c as Wo,g as ti}from"./classname-Bl5epEs-.js";import{c as Ko}from"./react-DO0-owxu.js";import{r as _o,I as Nn}from"./icon-Cc9W858e.js";import{T as Go}from"./typography-CMIMyivt.js";import{B as ot}from"./button-BLW8SOpg.js";import{t as m}from"./store-BwIebEt6.js";import"./preload-helper-PPVm8Dsz.js";import"./index-CdnALcTP.js";import"./colors-_6nFGM3e.js";const zo=3e3,oe=Ko((t,e)=>{let n=0;const s=()=>++n;return{items:[],add:i=>{const r=s();return t(o=>{const a=i.position||"top",c=o.items.filter(h=>h.config.position==="top"),u=o.items.filter(h=>h.config.position==="bottom");return a==="top"?c.push({config:{...i,position:a},id:r}):u.push({config:{...i,position:a},id:r}),{items:[...c.slice(-3),...u.slice(-3)]}}),setTimeout(()=>{e().remove(r)},i.duration||zo),r},remove:i=>{t(r=>(r.items.find(a=>a.id===i)?.config?.onHide?.(),{items:r.items.filter(a=>a.id!==i)}))},clear:()=>{t({items:[]})}}}),Pt=ti("toast"),D=({type:t="informative",message:e,closeAction:n=!0,onCloseActionClick:s,action:i,onActionClick:r,icon:o})=>{const a=x.useMemo(()=>{if(o)return _o(o);const c={neutral:null,informative:"circle-info",positive:"circle-check",negative:"triangle-warning"}[t];if(c)return T.jsx(Nn,{name:c,type:"fill",size:24})},[o,t]);return T.jsxs("div",{className:Wo(Pt,`${Pt}--${t}`),children:[!!a&&T.jsx("span",{className:`${Pt}__icon`,children:a}),T.jsx(Go,{component:"div",size:"base",weight:"regular",color:"inherit",className:`${Pt}__content`,children:e}),i&&T.jsx(ot,{size:"medium",type:"ghost",theme:t==="informative"||t==="neutral"?"neutral-inverse":"neutral",onClick:r,children:i}),n&&T.jsx("div",{onClick:s,className:`${Pt}__close-icon`,children:T.jsx(Nn,{name:"xmark",size:16})})]})};D.show=t=>oe.getState().add(t);D.hide=t=>t?oe.getState().remove(t):oe.getState().clear();D.__docgenInfo={description:"",methods:[{name:"show",docblock:null,modifiers:["static"],params:[{name:"config",optional:!1,type:null}],returns:null},{name:"hide",docblock:null,modifiers:["static"],params:[{name:"id",optional:!1,type:null}],returns:null}],displayName:"Toast",props:{type:{defaultValue:{value:"'informative'",computed:!1},required:!1},closeAction:{defaultValue:{value:"true",computed:!1},required:!1}}};const Qe=x.createContext({});function tn(t){const e=x.useRef(null);return e.current===null&&(e.current=t()),e.current}const en=typeof window<"u",ei=en?x.useLayoutEffect:x.useEffect,fe=x.createContext(null);function nn(t,e){t.indexOf(e)===-1&&t.push(e)}function sn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const q=(t,e,n)=>n>e?e:n<t?t:n;let on=()=>{};const Z={},ni=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function si(t){return typeof t=="object"&&t!==null}const ii=t=>/^0[^.\s]+$/u.test(t);function rn(t){let e;return()=>(e===void 0&&(e=t()),e)}const G=t=>t,Ho=(t,e)=>n=>e(t(n)),It=(...t)=>t.reduce(Ho),Et=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class an{constructor(){this.subscriptions=[]}add(e){return nn(this.subscriptions,e),()=>sn(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<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const X=t=>t*1e3,_=t=>t/1e3;function oi(t,e){return e?t*(1e3/e):0}const ri=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Xo=1e-7,Yo=12;function qo(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=ri(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>Xo&&++a<Yo);return o}function Bt(t,e,n,s){if(t===e&&n===s)return G;const i=r=>qo(r,0,1,t,n);return r=>r===0||r===1?r:ri(i(r),e,s)}const ai=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ci=t=>e=>1-t(1-e),li=Bt(.33,1.53,.69,.99),cn=ci(li),ui=ai(cn),hi=t=>(t*=2)<1?.5*cn(t):.5*(2-Math.pow(2,-10*(t-1))),ln=t=>1-Math.sin(Math.acos(t)),fi=ci(ln),di=ai(ln),Zo=Bt(.42,0,1,1),Jo=Bt(0,0,.58,1),mi=Bt(.42,0,.58,1),Qo=t=>Array.isArray(t)&&typeof t[0]!="number",pi=t=>Array.isArray(t)&&typeof t[0]=="number",tr={linear:G,easeIn:Zo,easeInOut:mi,easeOut:Jo,circIn:ln,circInOut:di,circOut:fi,backIn:cn,backInOut:ui,backOut:li,anticipate:hi},er=t=>typeof t=="string",On=t=>{if(pi(t)){on(t.length===4);const[e,n,s,i]=t;return Bt(e,n,s,i)}else if(er(t))return tr[t];return t},Ot=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function nr(t,e){let n=new Set,s=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(l){o.has(l)&&(u.schedule(l),t()),l(a)}const u={schedule:(l,h=!1,f=!1)=>{const p=f&&i?n:s;return h&&o.add(l),p.has(l)||p.add(l),l},cancel:l=>{s.delete(l),o.delete(l)},process:l=>{if(a=l,i){r=!0;return}i=!0,[n,s]=[s,n],n.forEach(c),n.clear(),i=!1,r&&(r=!1,u.process(l))}};return u}const sr=40;function gi(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Ot.reduce((v,C)=>(v[C]=nr(r),v),{}),{setup:a,read:c,resolveKeyframes:u,preUpdate:l,update:h,preRender:f,render:d,postRender:p}=o,y=()=>{const v=Z.useManualTiming?i.timestamp:performance.now();n=!1,Z.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(v-i.timestamp,sr),1)),i.timestamp=v,i.isProcessing=!0,a.process(i),c.process(i),u.process(i),l.process(i),h.process(i),f.process(i),d.process(i),p.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(y))},w=()=>{n=!0,s=!0,i.isProcessing||t(y)};return{schedule:Ot.reduce((v,C)=>{const P=o[C];return v[C]=(M,V=!1,b=!1)=>(n||w(),P.schedule(M,V,b)),v},{}),cancel:v=>{for(let C=0;C<Ot.length;C++)o[Ot[C]].cancel(v)},state:i,steps:o}}const{schedule:E,cancel:tt,state:F,steps:ge}=gi(typeof requestAnimationFrame<"u"?requestAnimationFrame:G,!0);let ee;function ir(){ee=void 0}const $={now:()=>(ee===void 0&&$.set(F.isProcessing||Z.useManualTiming?F.timestamp:performance.now()),ee),set:t=>{ee=t,queueMicrotask(ir)}},yi=t=>e=>typeof e=="string"&&e.startsWith(t),vi=yi("--"),or=yi("var(--"),un=t=>or(t)?rr.test(t.split("/*")[0].trim()):!1,rr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Tt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Rt={...Tt,transform:t=>q(0,1,t)},Ut={...Tt,default:1},Ct=t=>Math.round(t*1e5)/1e5,hn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ar(t){return t==null}const cr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fn=(t,e)=>n=>!!(typeof n=="string"&&cr.test(n)&&n.startsWith(t)||e&&!ar(n)&&Object.prototype.hasOwnProperty.call(n,e)),xi=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(hn);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},lr=t=>q(0,255,t),ye={...Tt,transform:t=>Math.round(lr(t))},at={test:fn("rgb","red"),parse:xi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+ye.transform(t)+", "+ye.transform(e)+", "+ye.transform(n)+", "+Ct(Rt.transform(s))+")"};function ur(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 Re={test:fn("#"),parse:ur,transform:at.transform},Ft=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Q=Ft("deg"),Y=Ft("%"),S=Ft("px"),hr=Ft("vh"),fr=Ft("vw"),Un={...Y,parse:t=>Y.parse(t)/100,transform:t=>Y.transform(t*100)},ft={test:fn("hsl","hue"),parse:xi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+Y.transform(Ct(e))+", "+Y.transform(Ct(n))+", "+Ct(Rt.transform(s))+")"},L={test:t=>at.test(t)||Re.test(t)||ft.test(t),parse:t=>at.test(t)?at.parse(t):ft.test(t)?ft.parse(t):Re.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?at.transform(t):ft.transform(t),getAnimatableNone:t=>{const e=L.parse(t);return e.alpha=0,L.transform(e)}},dr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function mr(t){return isNaN(t)&&typeof t=="string"&&(t.match(hn)?.length||0)+(t.match(dr)?.length||0)>0}const Ti="number",wi="color",pr="var",gr="var(",$n="${}",yr=/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 kt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(yr,c=>(L.test(c)?(s.color.push(r),i.push(wi),n.push(L.parse(c))):c.startsWith(gr)?(s.var.push(r),i.push(pr),n.push(c)):(s.number.push(r),i.push(Ti),n.push(parseFloat(c))),++r,$n)).split($n);return{values:n,split:a,indexes:s,types:i}}function Ai(t){return kt(t).values}function Pi(t){const{split:e,types:n}=kt(t),s=e.length;return i=>{let r="";for(let o=0;o<s;o++)if(r+=e[o],i[o]!==void 0){const a=n[o];a===Ti?r+=Ct(i[o]):a===wi?r+=L.transform(i[o]):r+=i[o]}return r}}const vr=t=>typeof t=="number"?0:L.test(t)?L.getAnimatableNone(t):t;function xr(t){const e=Ai(t);return Pi(t)(e.map(vr))}const et={test:mr,parse:Ai,createTransformer:Pi,getAnimatableNone:xr};function ve(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 Tr({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,c=2*n-a;i=ve(c,a,t+1/3),r=ve(c,a,t),o=ve(c,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function re(t,e){return n=>n>0?e:t}const R=(t,e,n)=>t+(e-t)*n,xe=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},wr=[Re,at,ft],Ar=t=>wr.find(e=>e.test(t));function Wn(t){const e=Ar(t);if(!e)return!1;let n=e.parse(t);return e===ft&&(n=Tr(n)),n}const Kn=(t,e)=>{const n=Wn(t),s=Wn(e);if(!n||!s)return re(t,e);const i={...n};return r=>(i.red=xe(n.red,s.red,r),i.green=xe(n.green,s.green,r),i.blue=xe(n.blue,s.blue,r),i.alpha=R(n.alpha,s.alpha,r),at.transform(i))},ke=new Set(["none","hidden"]);function Pr(t,e){return ke.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Sr(t,e){return n=>R(t,e,n)}function dn(t){return typeof t=="number"?Sr:typeof t=="string"?un(t)?re:L.test(t)?Kn:Mr:Array.isArray(t)?Si:typeof t=="object"?L.test(t)?Kn:br:re}function Si(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>dn(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function br(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=dn(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Cr(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const r=e.types[i],o=t.indexes[r][s[r]],a=t.values[o]??0;n[i]=a,s[r]++}return n}const Mr=(t,e)=>{const n=et.createTransformer(e),s=kt(t),i=kt(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?ke.has(t)&&!i.values.length||ke.has(e)&&!s.values.length?Pr(t,e):It(Si(Cr(s,i),i.values),n):re(t,e)};function bi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?R(t,e,n):dn(t)(t,e)}const Vr=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>E.update(e,n),stop:()=>tt(e),now:()=>F.isProcessing?F.timestamp:$.now()}},Ci=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r<i;r++)s+=Math.round(t(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},ae=2e4;function mn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<ae;)e+=n,s=t.next(e);return e>=ae?1/0:e}function Dr(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(mn(s),ae);return{type:"keyframes",ease:r=>s.next(i*r).value/e,duration:_(i)}}const Er=5;function Mi(t,e,n){const s=Math.max(e-Er,0);return oi(n-t(s),e-s)}const k={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Te=.001;function Rr({duration:t=k.duration,bounce:e=k.bounce,velocity:n=k.velocity,mass:s=k.mass}){let i,r,o=1-e;o=q(k.minDamping,k.maxDamping,o),t=q(k.minDuration,k.maxDuration,_(t)),o<1?(i=u=>{const l=u*o,h=l*t,f=l-n,d=Le(u,o),p=Math.exp(-h);return Te-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),y=Le(Math.pow(u,2),o);return(-i(u)+Te>0?-1:1)*((f-d)*p)/y}):(i=u=>{const l=Math.exp(-u*t),h=(u-n)*t+1;return-Te+l*h},r=u=>{const l=Math.exp(-u*t),h=(n-u)*(t*t);return l*h});const a=5/t,c=Lr(i,r,a);if(t=X(t),isNaN(c))return{stiffness:k.stiffness,damping:k.damping,duration:t};{const u=Math.pow(c,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:t}}}const kr=12;function Lr(t,e,n){let s=n;for(let i=1;i<kr;i++)s=s-t(s)/e(s);return s}function Le(t,e){return t*Math.sqrt(1-e*e)}const jr=["duration","bounce"],Ir=["stiffness","damping","mass"];function _n(t,e){return e.some(n=>t[n]!==void 0)}function Br(t){let e={velocity:k.velocity,stiffness:k.stiffness,damping:k.damping,mass:k.mass,isResolvedFromDuration:!1,...t};if(!_n(t,Ir)&&_n(t,jr))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*q(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:k.mass,stiffness:i,damping:r}}else{const n=Rr(t);e={...e,...n,mass:k.mass},e.isResolvedFromDuration=!0}return e}function ce(t=k.visualDuration,e=k.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:c,damping:u,mass:l,duration:h,velocity:f,isResolvedFromDuration:d}=Br({...n,velocity:-_(n.velocity||0)}),p=f||0,y=u/(2*Math.sqrt(c*l)),w=o-r,g=_(Math.sqrt(c/l)),A=Math.abs(w)<5;s||(s=A?k.restSpeed.granular:k.restSpeed.default),i||(i=A?k.restDelta.granular:k.restDelta.default);let v;if(y<1){const P=Le(g,y);v=M=>{const V=Math.exp(-y*g*M);return o-V*((p+y*g*w)/P*Math.sin(P*M)+w*Math.cos(P*M))}}else if(y===1)v=P=>o-Math.exp(-g*P)*(w+(p+g*w)*P);else{const P=g*Math.sqrt(y*y-1);v=M=>{const V=Math.exp(-y*g*M),b=Math.min(P*M,300);return o-V*((p+y*g*w)*Math.sinh(b)+P*w*Math.cosh(b))/P}}const C={calculatedDuration:d&&h||null,next:P=>{const M=v(P);if(d)a.done=P>=h;else{let V=P===0?p:0;y<1&&(V=P===0?X(p):Mi(v,P,M));const b=Math.abs(V)<=s,I=Math.abs(o-M)<=i;a.done=b&&I}return a.value=a.done?o:M,a},toString:()=>{const P=Math.min(mn(C),ae),M=Ci(V=>C.next(P*V).value,P,30);return P+"ms "+M},toTransition:()=>{}};return C}ce.applyToOptions=t=>{const e=Dr(t,100,ce);return t.ease=e.ease,t.duration=X(e.duration),t.type="keyframes",t};function je({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:c,restDelta:u=.5,restSpeed:l}){const h=t[0],f={done:!1,value:h},d=b=>a!==void 0&&b<a||c!==void 0&&b>c,p=b=>a===void 0?c:c===void 0||Math.abs(a-b)<Math.abs(c-b)?a:c;let y=n*e;const w=h+y,g=o===void 0?w:o(w);g!==w&&(y=g-h);const A=b=>-y*Math.exp(-b/s),v=b=>g+A(b),C=b=>{const I=A(b),O=v(b);f.done=Math.abs(I)<=u,f.value=f.done?g:O};let P,M;const V=b=>{d(f.value)&&(P=b,M=ce({keyframes:[f.value,p(f.value)],velocity:Mi(v,b,f.value),damping:i,stiffness:r,restDelta:u,restSpeed:l}))};return V(0),{calculatedDuration:null,next:b=>{let I=!1;return!M&&P===void 0&&(I=!0,C(b),V(b)),P!==void 0&&b>=P?M.next(b-P):(!I&&C(b),f)}}}function Fr(t,e,n){const s=[],i=n||Z.mix||bi,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const c=Array.isArray(e)?e[o]||G:e;a=It(c,a)}s.push(a)}return s}function Nr(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(on(r===e.length),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Fr(e,s,i),c=a.length,u=l=>{if(o&&l<t[0])return e[0];let h=0;if(c>1)for(;h<t.length-2&&!(l<t[h+1]);h++);const f=Et(t[h],t[h+1],l);return a[h](f)};return n?l=>u(q(t[0],t[r-1],l)):u}function Or(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Et(0,e,s);t.push(R(n,1,i))}}function Ur(t){const e=[0];return Or(e,t.length-1),e}function $r(t,e){return t.map(n=>n*e)}function Wr(t,e){return t.map(()=>e||mi).splice(0,t.length-1)}function Mt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Qo(s)?s.map(On):On(s),r={done:!1,value:e[0]},o=$r(n&&n.length===e.length?n:Ur(e),t),a=Nr(o,e,{ease:Array.isArray(i)?i:Wr(e,i)});return{calculatedDuration:t,next:c=>(r.value=a(c),r.done=c>=t,r)}}const Kr=t=>t!==null;function pn(t,{repeat:e,repeatType:n="loop"},s,i=1){const r=t.filter(Kr),a=i<0||e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const _r={decay:je,inertia:je,tween:Mt,keyframes:Mt,spring:ce};function Vi(t){typeof t.type=="string"&&(t.type=_r[t.type])}class gn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const Gr=t=>t/100;class yn extends gn{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==$.now()&&this.tick($.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Vi(e);const{type:n=Mt,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const c=n||Mt;c!==Mt&&typeof a[0]!="number"&&(this.mixKeyframes=It(Gr,bi(a[0],a[1])),a=[0,100]);const u=c({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=mn(u));const{calculatedDuration:l}=u;this.calculatedDuration=l,this.resolvedDuration=l+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=u}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:l,repeat:h,repeatType:f,repeatDelay:d,type:p,onUpdate:y,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),A=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,C=s;if(h){const b=Math.min(this.currentTime,i)/a;let I=Math.floor(b),O=b%1;!O&&b>=1&&(O=1),O===1&&I--,I=Math.min(I,h+1),I%2&&(f==="reverse"?(O=1-O,d&&(O-=d/a)):f==="mirror"&&(C=o)),v=q(0,1,O)*a}const P=A?{done:!1,value:l[0]}:C.next(v);r&&(P.value=r(P.value));let{done:M}=P;!A&&c!==null&&(M=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return V&&p!==je&&(P.value=pn(l,this.options,w,this.speed)),y&&y(P.value),V&&this.finish(),P}then(e,n){return this.finished.then(e,n)}get duration(){return _(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+_(e)}get time(){return _(this.currentTime)}set time(e){e=X(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime($.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=_(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Vr,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime($.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function zr(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const ct=t=>t*180/Math.PI,Ie=t=>{const e=ct(Math.atan2(t[1],t[0]));return Be(e)},Hr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ie,rotateZ:Ie,skewX:t=>ct(Math.atan(t[1])),skewY:t=>ct(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Be=t=>(t=t%360,t<0&&(t+=360),t),Gn=Ie,zn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Hn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Xr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:zn,scaleY:Hn,scale:t=>(zn(t)+Hn(t))/2,rotateX:t=>Be(ct(Math.atan2(t[6],t[5]))),rotateY:t=>Be(ct(Math.atan2(-t[2],t[0]))),rotateZ:Gn,rotate:Gn,skewX:t=>ct(Math.atan(t[4])),skewY:t=>ct(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Fe(t){return t.includes("scale")?1:0}function Ne(t,e){if(!t||t==="none")return Fe(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Xr,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Hr,i=a}if(!i)return Fe(e);const r=s[e],o=i[1].split(",").map(qr);return typeof r=="function"?r(o):o[r]}const Yr=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Ne(n,e)};function qr(t){return parseFloat(t.trim())}const wt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],At=new Set(wt),Xn=t=>t===Tt||t===S,Zr=new Set(["x","y","z"]),Jr=wt.filter(t=>!Zr.has(t));function Qr(t){const e=[];return Jr.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const lt={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:(t,{transform:e})=>Ne(e,"x"),y:(t,{transform:e})=>Ne(e,"y")};lt.translateX=lt.x;lt.translateY=lt.y;const ut=new Set;let Oe=!1,Ue=!1,$e=!1;function Di(){if(Ue){const t=Array.from(ut).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Qr(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])=>{s.getValue(r)?.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Ue=!1,Oe=!1,ut.forEach(t=>t.complete($e)),ut.clear()}function Ei(){ut.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ue=!0)})}function ta(){$e=!0,Ei(),Di(),$e=!1}class vn{constructor(e,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ut.add(this),Oe||(Oe=!0,E.read(Ei),E.resolveKeyframes(Di))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const r=i?.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}zr(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ut.delete(this)}cancel(){this.state==="scheduled"&&(ut.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ea=t=>t.startsWith("--");function na(t,e,n){ea(e)?t.style.setProperty(e,n):t.style[e]=n}const sa=rn(()=>window.ScrollTimeline!==void 0),ia={};function oa(t,e){const n=rn(t);return()=>ia[e]??n()}const Ri=oa(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),bt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Yn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bt([0,.65,.55,1]),circOut:bt([.55,0,1,.45]),backIn:bt([.31,.01,.66,-.59]),backOut:bt([.33,1.53,.69,.99])};function ki(t,e){if(t)return typeof t=="function"?Ri()?Ci(t,e):"ease-out":pi(t)?bt(t):Array.isArray(t)?t.map(n=>ki(n,e)||Yn.easeOut):Yn[t]}function ra(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:c}={},u=void 0){const l={[e]:n};c&&(l.offset=c);const h=ki(a,i);Array.isArray(h)&&(l.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(l,f)}function Li(t){return typeof t=="function"&&"applyToOptions"in t}function aa({type:t,...e}){return Li(t)&&Ri()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class ca extends gn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,on(typeof e.type!="string");const u=aa(e);this.animation=ra(n,s,i,u,r),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const l=pn(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(l):na(n,s,l),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return _(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+_(e)}get time(){return _(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=X(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&sa()?(this.animation.timeline=e,G):n(this)}}const ji={anticipate:hi,backInOut:ui,circInOut:di};function la(t){return t in ji}function ua(t){typeof t.ease=="string"&&la(t.ease)&&(t.ease=ji[t.ease])}const qn=10;class ha extends ca{constructor(e){ua(e),Vi(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new yn({...o,autoplay:!1}),c=X(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-qn).value,a.sample(c).value,qn),a.stop()}}const Zn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(et.test(t)||t==="0")&&!t.startsWith("url("));function fa(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function da(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=Zn(i,e),a=Zn(r,e);return!o||!a?!1:fa(t)||(n==="spring"||Li(n))&&s}function We(t){t.duration=0,t.type="keyframes"}const ma=new Set(["opacity","clipPath","filter","transform"]),pa=rn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ga(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:r,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=e.owner.getProps();return pa()&&n&&ma.has(n)&&(n!=="transform"||!u)&&!c&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const ya=40;class va extends gn{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:c,motionValue:u,element:l,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=$.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:c,motionValue:u,element:l,...h},d=l?.KeyframeResolver||vn;this.keyframeResolver=new d(a,(p,y,w)=>this.onKeyframesResolved(p,y,f,!w),c,u,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:c,isHandoff:u,onUpdate:l}=s;this.resolvedAt=$.now(),da(e,r,o,a)||((Z.instantAnimations||!c)&&l?.(pn(e,s,n)),e[0]=e[e.length-1],We(s),s.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>ya?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},d=!u&&ga(f)?new ha({...f,element:f.motionValue.owner.current}):new yn(f);d.finished.then(()=>this.notifyFinished()).catch(G),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ta()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const xa=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ta(t){const e=xa.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Ii(t,e,n=1){const[s,i]=Ta(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return ni(o)?parseFloat(o):o}return un(i)?Ii(i,e,n+1):i}function xn(t,e){return t?.[e]??t?.default??t}const Bi=new Set(["width","height","top","left","right","bottom",...wt]),wa={test:t=>t==="auto",parse:t=>t},Fi=t=>e=>e.test(t),Ni=[Tt,S,Y,Q,fr,hr,wa],Jn=t=>Ni.find(Fi(t));function Aa(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||ii(t):!0}const Pa=new Set(["brightness","contrast","saturate","opacity"]);function Sa(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(hn)||[];if(!s)return t;const i=n.replace(s,"");let r=Pa.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const ba=/\b([a-z-]*)\(.*?\)/gu,Ke={...et,getAnimatableNone:t=>{const e=t.match(ba);return e?e.map(Sa).join(" "):t}},Qn={...Tt,transform:Math.round},Ca={rotate:Q,rotateX:Q,rotateY:Q,rotateZ:Q,scale:Ut,scaleX:Ut,scaleY:Ut,scaleZ:Ut,skew:Q,skewX:Q,skewY:Q,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:Rt,originX:Un,originY:Un,originZ:S},Tn={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,radius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,backgroundPositionX:S,backgroundPositionY:S,...Ca,zIndex:Qn,fillOpacity:Rt,strokeOpacity:Rt,numOctaves:Qn},Ma={...Tn,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:Ke,WebkitFilter:Ke},Oi=t=>Ma[t];function Ui(t,e){let n=Oi(t);return n!==Ke&&(n=et),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Va=new Set(["auto","none","0"]);function Da(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!Va.has(r)&&kt(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=Ui(n,i)}class Ea extends vn{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let u=e[c];if(typeof u=="string"&&(u=u.trim(),un(u))){const l=Ii(u,n.current);l!==void 0&&(e[c]=l),c===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Bi.has(s)||e.length!==2)return;const[i,r]=e,o=Jn(i),a=Jn(r);if(o!==a)if(Xn(o)&&Xn(a))for(let c=0;c<e.length;c++){const u=e[c];typeof u=="string"&&(e[c]=parseFloat(u))}else lt[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Aa(e[i]))&&s.push(i);s.length&&Da(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=lt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=lt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{e.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function Ra(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}const $i=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Wi(t){return si(t)&&"offsetHeight"in t}const ts=30,ka=t=>!isNaN(parseFloat(t));class La{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=$.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},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=ka(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 an);const s=this.events[e].add(n);return e==="change"?()=>{s(),E.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){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}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()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=$.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ts)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ts);return oi(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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function vt(t,e){return new La(t,e)}const{schedule:wn}=gi(queueMicrotask,!1),H={x:!1,y:!1};function Ki(){return H.x||H.y}function ja(t){return t==="x"||t==="y"?H[t]?null:(H[t]=!0,()=>{H[t]=!1}):H.x||H.y?null:(H.x=H.y=!0,()=>{H.x=H.y=!1})}function _i(t,e){const n=Ra(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function es(t){return!(t.pointerType==="touch"||Ki())}function Ia(t,e,n={}){const[s,i,r]=_i(t,n),o=a=>{if(!es(a))return;const{target:c}=a,u=e(c,a);if(typeof u!="function"||!c)return;const l=h=>{es(h)&&(u(h),c.removeEventListener("pointerleave",l))};c.addEventListener("pointerleave",l,i)};return s.forEach(a=>{a.addEventListener("pointerenter",o,i)}),r}const Gi=(t,e)=>e?t===e?!0:Gi(t,e.parentElement):!1,An=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Ba=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Fa(t){return Ba.has(t.tagName)||t.tabIndex!==-1}const ne=new WeakSet;function ns(t){return e=>{e.key==="Enter"&&t(e)}}function we(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Na=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=ns(()=>{if(ne.has(n))return;we(n,"down");const i=ns(()=>{we(n,"up")}),r=()=>we(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function ss(t){return An(t)&&!Ki()}function Oa(t,e,n={}){const[s,i,r]=_i(t,n),o=a=>{const c=a.currentTarget;if(!ss(a))return;ne.add(c);const u=e(c,a),l=(d,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),ne.has(c)&&ne.delete(c),ss(d)&&typeof u=="function"&&u(d,{success:p})},h=d=>{l(d,c===window||c===document||n.useGlobalTarget||Gi(c,d.target))},f=d=>{l(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Wi(a)&&(a.addEventListener("focus",u=>Na(u,i)),!Fa(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function zi(t){return si(t)&&"ownerSVGElement"in t}function Ua(t){return zi(t)&&t.tagName==="svg"}const N=t=>!!(t&&t.getVelocity),$a=[...Ni,L,et],Wa=t=>$a.find(Fi(t)),Pn=x.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function is(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Ka(...t){return e=>{let n=!1;const s=t.map(i=>{const r=is(i,e);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let i=0;i<s.length;i++){const r=s[i];typeof r=="function"?r():is(t[i],null)}}}}function _a(...t){return x.useCallback(Ka(...t),t)}class Ga extends x.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=n.offsetParent,i=Wi(s)&&s.offsetWidth||0,r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft,r.right=i-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function za({children:t,isPresent:e,anchorX:n,root:s}){const i=x.useId(),r=x.useRef(null),o=x.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=x.useContext(Pn),c=_a(r,t?.ref);return x.useInsertionEffect(()=>{const{width:u,height:l,top:h,left:f,right:d}=o.current;if(e||!r.current||!u||!l)return;const p=n==="left"?`left: ${f}`:`right: ${d}`;r.current.dataset.motionPopId=i;const y=document.createElement("style");a&&(y.nonce=a);const w=s??document.head;return w.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
1
|
+
import{r as x,j as T}from"./iframe-CwpOmiVg.js";import{i as Bn,T as No,S as Oo,a as Fn,P as Uo,b as $o}from"./blocks-YH_FlHNe.js";import{c as Wo,g as ti}from"./classname-j9cKNBJt.js";import{c as Ko}from"./react-D0pCkoQ5.js";import{r as _o,I as Nn}from"./icon-CNKWXprF.js";import{T as Go}from"./typography-B019AQYH.js";import{B as ot}from"./button-Dllugowd.js";import{t as m}from"./store-BwIebEt6.js";import"./preload-helper-PPVm8Dsz.js";import"./index-SQXvi4Hn.js";import"./colors-_6nFGM3e.js";const zo=3e3,oe=Ko((t,e)=>{let n=0;const s=()=>++n;return{items:[],add:i=>{const r=s();return t(o=>{const a=i.position||"top",c=o.items.filter(h=>h.config.position==="top"),u=o.items.filter(h=>h.config.position==="bottom");return a==="top"?c.push({config:{...i,position:a},id:r}):u.push({config:{...i,position:a},id:r}),{items:[...c.slice(-3),...u.slice(-3)]}}),setTimeout(()=>{e().remove(r)},i.duration||zo),r},remove:i=>{t(r=>(r.items.find(a=>a.id===i)?.config?.onHide?.(),{items:r.items.filter(a=>a.id!==i)}))},clear:()=>{t({items:[]})}}}),Pt=ti("toast"),D=({type:t="informative",message:e,closeAction:n=!0,onCloseActionClick:s,action:i,onActionClick:r,icon:o})=>{const a=x.useMemo(()=>{if(o)return _o(o);const c={neutral:null,informative:"circle-info",positive:"circle-check",negative:"triangle-warning"}[t];if(c)return T.jsx(Nn,{name:c,type:"fill",size:24})},[o,t]);return T.jsxs("div",{className:Wo(Pt,`${Pt}--${t}`),children:[!!a&&T.jsx("span",{className:`${Pt}__icon`,children:a}),T.jsx(Go,{component:"div",size:"base",weight:"regular",color:"inherit",className:`${Pt}__content`,children:e}),i&&T.jsx(ot,{size:"medium",type:"ghost",theme:t==="informative"||t==="neutral"?"neutral-inverse":"neutral",onClick:r,children:i}),n&&T.jsx("div",{onClick:s,className:`${Pt}__close-icon`,children:T.jsx(Nn,{name:"xmark",size:16})})]})};D.show=t=>oe.getState().add(t);D.hide=t=>t?oe.getState().remove(t):oe.getState().clear();D.__docgenInfo={description:"",methods:[{name:"show",docblock:null,modifiers:["static"],params:[{name:"config",optional:!1,type:null}],returns:null},{name:"hide",docblock:null,modifiers:["static"],params:[{name:"id",optional:!1,type:null}],returns:null}],displayName:"Toast",props:{type:{defaultValue:{value:"'informative'",computed:!1},required:!1},closeAction:{defaultValue:{value:"true",computed:!1},required:!1}}};const Qe=x.createContext({});function tn(t){const e=x.useRef(null);return e.current===null&&(e.current=t()),e.current}const en=typeof window<"u",ei=en?x.useLayoutEffect:x.useEffect,fe=x.createContext(null);function nn(t,e){t.indexOf(e)===-1&&t.push(e)}function sn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const q=(t,e,n)=>n>e?e:n<t?t:n;let on=()=>{};const Z={},ni=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function si(t){return typeof t=="object"&&t!==null}const ii=t=>/^0[^.\s]+$/u.test(t);function rn(t){let e;return()=>(e===void 0&&(e=t()),e)}const G=t=>t,Ho=(t,e)=>n=>e(t(n)),It=(...t)=>t.reduce(Ho),Et=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class an{constructor(){this.subscriptions=[]}add(e){return nn(this.subscriptions,e),()=>sn(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<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const X=t=>t*1e3,_=t=>t/1e3;function oi(t,e){return e?t*(1e3/e):0}const ri=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Xo=1e-7,Yo=12;function qo(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=ri(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>Xo&&++a<Yo);return o}function Bt(t,e,n,s){if(t===e&&n===s)return G;const i=r=>qo(r,0,1,t,n);return r=>r===0||r===1?r:ri(i(r),e,s)}const ai=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ci=t=>e=>1-t(1-e),li=Bt(.33,1.53,.69,.99),cn=ci(li),ui=ai(cn),hi=t=>(t*=2)<1?.5*cn(t):.5*(2-Math.pow(2,-10*(t-1))),ln=t=>1-Math.sin(Math.acos(t)),fi=ci(ln),di=ai(ln),Zo=Bt(.42,0,1,1),Jo=Bt(0,0,.58,1),mi=Bt(.42,0,.58,1),Qo=t=>Array.isArray(t)&&typeof t[0]!="number",pi=t=>Array.isArray(t)&&typeof t[0]=="number",tr={linear:G,easeIn:Zo,easeInOut:mi,easeOut:Jo,circIn:ln,circInOut:di,circOut:fi,backIn:cn,backInOut:ui,backOut:li,anticipate:hi},er=t=>typeof t=="string",On=t=>{if(pi(t)){on(t.length===4);const[e,n,s,i]=t;return Bt(e,n,s,i)}else if(er(t))return tr[t];return t},Ot=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function nr(t,e){let n=new Set,s=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(l){o.has(l)&&(u.schedule(l),t()),l(a)}const u={schedule:(l,h=!1,f=!1)=>{const p=f&&i?n:s;return h&&o.add(l),p.has(l)||p.add(l),l},cancel:l=>{s.delete(l),o.delete(l)},process:l=>{if(a=l,i){r=!0;return}i=!0,[n,s]=[s,n],n.forEach(c),n.clear(),i=!1,r&&(r=!1,u.process(l))}};return u}const sr=40;function gi(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Ot.reduce((v,C)=>(v[C]=nr(r),v),{}),{setup:a,read:c,resolveKeyframes:u,preUpdate:l,update:h,preRender:f,render:d,postRender:p}=o,y=()=>{const v=Z.useManualTiming?i.timestamp:performance.now();n=!1,Z.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(v-i.timestamp,sr),1)),i.timestamp=v,i.isProcessing=!0,a.process(i),c.process(i),u.process(i),l.process(i),h.process(i),f.process(i),d.process(i),p.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(y))},w=()=>{n=!0,s=!0,i.isProcessing||t(y)};return{schedule:Ot.reduce((v,C)=>{const P=o[C];return v[C]=(M,V=!1,b=!1)=>(n||w(),P.schedule(M,V,b)),v},{}),cancel:v=>{for(let C=0;C<Ot.length;C++)o[Ot[C]].cancel(v)},state:i,steps:o}}const{schedule:E,cancel:tt,state:F,steps:ge}=gi(typeof requestAnimationFrame<"u"?requestAnimationFrame:G,!0);let ee;function ir(){ee=void 0}const $={now:()=>(ee===void 0&&$.set(F.isProcessing||Z.useManualTiming?F.timestamp:performance.now()),ee),set:t=>{ee=t,queueMicrotask(ir)}},yi=t=>e=>typeof e=="string"&&e.startsWith(t),vi=yi("--"),or=yi("var(--"),un=t=>or(t)?rr.test(t.split("/*")[0].trim()):!1,rr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Tt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Rt={...Tt,transform:t=>q(0,1,t)},Ut={...Tt,default:1},Ct=t=>Math.round(t*1e5)/1e5,hn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ar(t){return t==null}const cr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fn=(t,e)=>n=>!!(typeof n=="string"&&cr.test(n)&&n.startsWith(t)||e&&!ar(n)&&Object.prototype.hasOwnProperty.call(n,e)),xi=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(hn);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},lr=t=>q(0,255,t),ye={...Tt,transform:t=>Math.round(lr(t))},at={test:fn("rgb","red"),parse:xi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+ye.transform(t)+", "+ye.transform(e)+", "+ye.transform(n)+", "+Ct(Rt.transform(s))+")"};function ur(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 Re={test:fn("#"),parse:ur,transform:at.transform},Ft=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Q=Ft("deg"),Y=Ft("%"),S=Ft("px"),hr=Ft("vh"),fr=Ft("vw"),Un={...Y,parse:t=>Y.parse(t)/100,transform:t=>Y.transform(t*100)},ft={test:fn("hsl","hue"),parse:xi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+Y.transform(Ct(e))+", "+Y.transform(Ct(n))+", "+Ct(Rt.transform(s))+")"},L={test:t=>at.test(t)||Re.test(t)||ft.test(t),parse:t=>at.test(t)?at.parse(t):ft.test(t)?ft.parse(t):Re.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?at.transform(t):ft.transform(t),getAnimatableNone:t=>{const e=L.parse(t);return e.alpha=0,L.transform(e)}},dr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function mr(t){return isNaN(t)&&typeof t=="string"&&(t.match(hn)?.length||0)+(t.match(dr)?.length||0)>0}const Ti="number",wi="color",pr="var",gr="var(",$n="${}",yr=/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 kt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(yr,c=>(L.test(c)?(s.color.push(r),i.push(wi),n.push(L.parse(c))):c.startsWith(gr)?(s.var.push(r),i.push(pr),n.push(c)):(s.number.push(r),i.push(Ti),n.push(parseFloat(c))),++r,$n)).split($n);return{values:n,split:a,indexes:s,types:i}}function Ai(t){return kt(t).values}function Pi(t){const{split:e,types:n}=kt(t),s=e.length;return i=>{let r="";for(let o=0;o<s;o++)if(r+=e[o],i[o]!==void 0){const a=n[o];a===Ti?r+=Ct(i[o]):a===wi?r+=L.transform(i[o]):r+=i[o]}return r}}const vr=t=>typeof t=="number"?0:L.test(t)?L.getAnimatableNone(t):t;function xr(t){const e=Ai(t);return Pi(t)(e.map(vr))}const et={test:mr,parse:Ai,createTransformer:Pi,getAnimatableNone:xr};function ve(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 Tr({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,c=2*n-a;i=ve(c,a,t+1/3),r=ve(c,a,t),o=ve(c,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function re(t,e){return n=>n>0?e:t}const R=(t,e,n)=>t+(e-t)*n,xe=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},wr=[Re,at,ft],Ar=t=>wr.find(e=>e.test(t));function Wn(t){const e=Ar(t);if(!e)return!1;let n=e.parse(t);return e===ft&&(n=Tr(n)),n}const Kn=(t,e)=>{const n=Wn(t),s=Wn(e);if(!n||!s)return re(t,e);const i={...n};return r=>(i.red=xe(n.red,s.red,r),i.green=xe(n.green,s.green,r),i.blue=xe(n.blue,s.blue,r),i.alpha=R(n.alpha,s.alpha,r),at.transform(i))},ke=new Set(["none","hidden"]);function Pr(t,e){return ke.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Sr(t,e){return n=>R(t,e,n)}function dn(t){return typeof t=="number"?Sr:typeof t=="string"?un(t)?re:L.test(t)?Kn:Mr:Array.isArray(t)?Si:typeof t=="object"?L.test(t)?Kn:br:re}function Si(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>dn(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function br(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=dn(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Cr(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const r=e.types[i],o=t.indexes[r][s[r]],a=t.values[o]??0;n[i]=a,s[r]++}return n}const Mr=(t,e)=>{const n=et.createTransformer(e),s=kt(t),i=kt(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?ke.has(t)&&!i.values.length||ke.has(e)&&!s.values.length?Pr(t,e):It(Si(Cr(s,i),i.values),n):re(t,e)};function bi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?R(t,e,n):dn(t)(t,e)}const Vr=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>E.update(e,n),stop:()=>tt(e),now:()=>F.isProcessing?F.timestamp:$.now()}},Ci=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r<i;r++)s+=Math.round(t(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},ae=2e4;function mn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<ae;)e+=n,s=t.next(e);return e>=ae?1/0:e}function Dr(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(mn(s),ae);return{type:"keyframes",ease:r=>s.next(i*r).value/e,duration:_(i)}}const Er=5;function Mi(t,e,n){const s=Math.max(e-Er,0);return oi(n-t(s),e-s)}const k={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Te=.001;function Rr({duration:t=k.duration,bounce:e=k.bounce,velocity:n=k.velocity,mass:s=k.mass}){let i,r,o=1-e;o=q(k.minDamping,k.maxDamping,o),t=q(k.minDuration,k.maxDuration,_(t)),o<1?(i=u=>{const l=u*o,h=l*t,f=l-n,d=Le(u,o),p=Math.exp(-h);return Te-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),y=Le(Math.pow(u,2),o);return(-i(u)+Te>0?-1:1)*((f-d)*p)/y}):(i=u=>{const l=Math.exp(-u*t),h=(u-n)*t+1;return-Te+l*h},r=u=>{const l=Math.exp(-u*t),h=(n-u)*(t*t);return l*h});const a=5/t,c=Lr(i,r,a);if(t=X(t),isNaN(c))return{stiffness:k.stiffness,damping:k.damping,duration:t};{const u=Math.pow(c,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:t}}}const kr=12;function Lr(t,e,n){let s=n;for(let i=1;i<kr;i++)s=s-t(s)/e(s);return s}function Le(t,e){return t*Math.sqrt(1-e*e)}const jr=["duration","bounce"],Ir=["stiffness","damping","mass"];function _n(t,e){return e.some(n=>t[n]!==void 0)}function Br(t){let e={velocity:k.velocity,stiffness:k.stiffness,damping:k.damping,mass:k.mass,isResolvedFromDuration:!1,...t};if(!_n(t,Ir)&&_n(t,jr))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*q(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:k.mass,stiffness:i,damping:r}}else{const n=Rr(t);e={...e,...n,mass:k.mass},e.isResolvedFromDuration=!0}return e}function ce(t=k.visualDuration,e=k.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:c,damping:u,mass:l,duration:h,velocity:f,isResolvedFromDuration:d}=Br({...n,velocity:-_(n.velocity||0)}),p=f||0,y=u/(2*Math.sqrt(c*l)),w=o-r,g=_(Math.sqrt(c/l)),A=Math.abs(w)<5;s||(s=A?k.restSpeed.granular:k.restSpeed.default),i||(i=A?k.restDelta.granular:k.restDelta.default);let v;if(y<1){const P=Le(g,y);v=M=>{const V=Math.exp(-y*g*M);return o-V*((p+y*g*w)/P*Math.sin(P*M)+w*Math.cos(P*M))}}else if(y===1)v=P=>o-Math.exp(-g*P)*(w+(p+g*w)*P);else{const P=g*Math.sqrt(y*y-1);v=M=>{const V=Math.exp(-y*g*M),b=Math.min(P*M,300);return o-V*((p+y*g*w)*Math.sinh(b)+P*w*Math.cosh(b))/P}}const C={calculatedDuration:d&&h||null,next:P=>{const M=v(P);if(d)a.done=P>=h;else{let V=P===0?p:0;y<1&&(V=P===0?X(p):Mi(v,P,M));const b=Math.abs(V)<=s,I=Math.abs(o-M)<=i;a.done=b&&I}return a.value=a.done?o:M,a},toString:()=>{const P=Math.min(mn(C),ae),M=Ci(V=>C.next(P*V).value,P,30);return P+"ms "+M},toTransition:()=>{}};return C}ce.applyToOptions=t=>{const e=Dr(t,100,ce);return t.ease=e.ease,t.duration=X(e.duration),t.type="keyframes",t};function je({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:c,restDelta:u=.5,restSpeed:l}){const h=t[0],f={done:!1,value:h},d=b=>a!==void 0&&b<a||c!==void 0&&b>c,p=b=>a===void 0?c:c===void 0||Math.abs(a-b)<Math.abs(c-b)?a:c;let y=n*e;const w=h+y,g=o===void 0?w:o(w);g!==w&&(y=g-h);const A=b=>-y*Math.exp(-b/s),v=b=>g+A(b),C=b=>{const I=A(b),O=v(b);f.done=Math.abs(I)<=u,f.value=f.done?g:O};let P,M;const V=b=>{d(f.value)&&(P=b,M=ce({keyframes:[f.value,p(f.value)],velocity:Mi(v,b,f.value),damping:i,stiffness:r,restDelta:u,restSpeed:l}))};return V(0),{calculatedDuration:null,next:b=>{let I=!1;return!M&&P===void 0&&(I=!0,C(b),V(b)),P!==void 0&&b>=P?M.next(b-P):(!I&&C(b),f)}}}function Fr(t,e,n){const s=[],i=n||Z.mix||bi,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const c=Array.isArray(e)?e[o]||G:e;a=It(c,a)}s.push(a)}return s}function Nr(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(on(r===e.length),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Fr(e,s,i),c=a.length,u=l=>{if(o&&l<t[0])return e[0];let h=0;if(c>1)for(;h<t.length-2&&!(l<t[h+1]);h++);const f=Et(t[h],t[h+1],l);return a[h](f)};return n?l=>u(q(t[0],t[r-1],l)):u}function Or(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Et(0,e,s);t.push(R(n,1,i))}}function Ur(t){const e=[0];return Or(e,t.length-1),e}function $r(t,e){return t.map(n=>n*e)}function Wr(t,e){return t.map(()=>e||mi).splice(0,t.length-1)}function Mt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Qo(s)?s.map(On):On(s),r={done:!1,value:e[0]},o=$r(n&&n.length===e.length?n:Ur(e),t),a=Nr(o,e,{ease:Array.isArray(i)?i:Wr(e,i)});return{calculatedDuration:t,next:c=>(r.value=a(c),r.done=c>=t,r)}}const Kr=t=>t!==null;function pn(t,{repeat:e,repeatType:n="loop"},s,i=1){const r=t.filter(Kr),a=i<0||e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const _r={decay:je,inertia:je,tween:Mt,keyframes:Mt,spring:ce};function Vi(t){typeof t.type=="string"&&(t.type=_r[t.type])}class gn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const Gr=t=>t/100;class yn extends gn{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==$.now()&&this.tick($.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Vi(e);const{type:n=Mt,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const c=n||Mt;c!==Mt&&typeof a[0]!="number"&&(this.mixKeyframes=It(Gr,bi(a[0],a[1])),a=[0,100]);const u=c({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=mn(u));const{calculatedDuration:l}=u;this.calculatedDuration=l,this.resolvedDuration=l+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=u}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:l,repeat:h,repeatType:f,repeatDelay:d,type:p,onUpdate:y,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),A=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,C=s;if(h){const b=Math.min(this.currentTime,i)/a;let I=Math.floor(b),O=b%1;!O&&b>=1&&(O=1),O===1&&I--,I=Math.min(I,h+1),I%2&&(f==="reverse"?(O=1-O,d&&(O-=d/a)):f==="mirror"&&(C=o)),v=q(0,1,O)*a}const P=A?{done:!1,value:l[0]}:C.next(v);r&&(P.value=r(P.value));let{done:M}=P;!A&&c!==null&&(M=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return V&&p!==je&&(P.value=pn(l,this.options,w,this.speed)),y&&y(P.value),V&&this.finish(),P}then(e,n){return this.finished.then(e,n)}get duration(){return _(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+_(e)}get time(){return _(this.currentTime)}set time(e){e=X(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime($.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=_(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Vr,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime($.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function zr(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const ct=t=>t*180/Math.PI,Ie=t=>{const e=ct(Math.atan2(t[1],t[0]));return Be(e)},Hr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ie,rotateZ:Ie,skewX:t=>ct(Math.atan(t[1])),skewY:t=>ct(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Be=t=>(t=t%360,t<0&&(t+=360),t),Gn=Ie,zn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Hn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Xr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:zn,scaleY:Hn,scale:t=>(zn(t)+Hn(t))/2,rotateX:t=>Be(ct(Math.atan2(t[6],t[5]))),rotateY:t=>Be(ct(Math.atan2(-t[2],t[0]))),rotateZ:Gn,rotate:Gn,skewX:t=>ct(Math.atan(t[4])),skewY:t=>ct(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Fe(t){return t.includes("scale")?1:0}function Ne(t,e){if(!t||t==="none")return Fe(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Xr,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Hr,i=a}if(!i)return Fe(e);const r=s[e],o=i[1].split(",").map(qr);return typeof r=="function"?r(o):o[r]}const Yr=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Ne(n,e)};function qr(t){return parseFloat(t.trim())}const wt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],At=new Set(wt),Xn=t=>t===Tt||t===S,Zr=new Set(["x","y","z"]),Jr=wt.filter(t=>!Zr.has(t));function Qr(t){const e=[];return Jr.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const lt={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:(t,{transform:e})=>Ne(e,"x"),y:(t,{transform:e})=>Ne(e,"y")};lt.translateX=lt.x;lt.translateY=lt.y;const ut=new Set;let Oe=!1,Ue=!1,$e=!1;function Di(){if(Ue){const t=Array.from(ut).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Qr(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])=>{s.getValue(r)?.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Ue=!1,Oe=!1,ut.forEach(t=>t.complete($e)),ut.clear()}function Ei(){ut.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ue=!0)})}function ta(){$e=!0,Ei(),Di(),$e=!1}class vn{constructor(e,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ut.add(this),Oe||(Oe=!0,E.read(Ei),E.resolveKeyframes(Di))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const r=i?.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}zr(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ut.delete(this)}cancel(){this.state==="scheduled"&&(ut.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ea=t=>t.startsWith("--");function na(t,e,n){ea(e)?t.style.setProperty(e,n):t.style[e]=n}const sa=rn(()=>window.ScrollTimeline!==void 0),ia={};function oa(t,e){const n=rn(t);return()=>ia[e]??n()}const Ri=oa(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),bt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Yn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bt([0,.65,.55,1]),circOut:bt([.55,0,1,.45]),backIn:bt([.31,.01,.66,-.59]),backOut:bt([.33,1.53,.69,.99])};function ki(t,e){if(t)return typeof t=="function"?Ri()?Ci(t,e):"ease-out":pi(t)?bt(t):Array.isArray(t)?t.map(n=>ki(n,e)||Yn.easeOut):Yn[t]}function ra(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:c}={},u=void 0){const l={[e]:n};c&&(l.offset=c);const h=ki(a,i);Array.isArray(h)&&(l.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(l,f)}function Li(t){return typeof t=="function"&&"applyToOptions"in t}function aa({type:t,...e}){return Li(t)&&Ri()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class ca extends gn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,on(typeof e.type!="string");const u=aa(e);this.animation=ra(n,s,i,u,r),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const l=pn(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(l):na(n,s,l),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return _(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+_(e)}get time(){return _(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=X(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&sa()?(this.animation.timeline=e,G):n(this)}}const ji={anticipate:hi,backInOut:ui,circInOut:di};function la(t){return t in ji}function ua(t){typeof t.ease=="string"&&la(t.ease)&&(t.ease=ji[t.ease])}const qn=10;class ha extends ca{constructor(e){ua(e),Vi(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new yn({...o,autoplay:!1}),c=X(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-qn).value,a.sample(c).value,qn),a.stop()}}const Zn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(et.test(t)||t==="0")&&!t.startsWith("url("));function fa(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function da(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=Zn(i,e),a=Zn(r,e);return!o||!a?!1:fa(t)||(n==="spring"||Li(n))&&s}function We(t){t.duration=0,t.type="keyframes"}const ma=new Set(["opacity","clipPath","filter","transform"]),pa=rn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ga(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:r,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=e.owner.getProps();return pa()&&n&&ma.has(n)&&(n!=="transform"||!u)&&!c&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const ya=40;class va extends gn{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:c,motionValue:u,element:l,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=$.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:c,motionValue:u,element:l,...h},d=l?.KeyframeResolver||vn;this.keyframeResolver=new d(a,(p,y,w)=>this.onKeyframesResolved(p,y,f,!w),c,u,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:c,isHandoff:u,onUpdate:l}=s;this.resolvedAt=$.now(),da(e,r,o,a)||((Z.instantAnimations||!c)&&l?.(pn(e,s,n)),e[0]=e[e.length-1],We(s),s.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>ya?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},d=!u&&ga(f)?new ha({...f,element:f.motionValue.owner.current}):new yn(f);d.finished.then(()=>this.notifyFinished()).catch(G),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ta()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const xa=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ta(t){const e=xa.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Ii(t,e,n=1){const[s,i]=Ta(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return ni(o)?parseFloat(o):o}return un(i)?Ii(i,e,n+1):i}function xn(t,e){return t?.[e]??t?.default??t}const Bi=new Set(["width","height","top","left","right","bottom",...wt]),wa={test:t=>t==="auto",parse:t=>t},Fi=t=>e=>e.test(t),Ni=[Tt,S,Y,Q,fr,hr,wa],Jn=t=>Ni.find(Fi(t));function Aa(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||ii(t):!0}const Pa=new Set(["brightness","contrast","saturate","opacity"]);function Sa(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(hn)||[];if(!s)return t;const i=n.replace(s,"");let r=Pa.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const ba=/\b([a-z-]*)\(.*?\)/gu,Ke={...et,getAnimatableNone:t=>{const e=t.match(ba);return e?e.map(Sa).join(" "):t}},Qn={...Tt,transform:Math.round},Ca={rotate:Q,rotateX:Q,rotateY:Q,rotateZ:Q,scale:Ut,scaleX:Ut,scaleY:Ut,scaleZ:Ut,skew:Q,skewX:Q,skewY:Q,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:Rt,originX:Un,originY:Un,originZ:S},Tn={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,radius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,backgroundPositionX:S,backgroundPositionY:S,...Ca,zIndex:Qn,fillOpacity:Rt,strokeOpacity:Rt,numOctaves:Qn},Ma={...Tn,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:Ke,WebkitFilter:Ke},Oi=t=>Ma[t];function Ui(t,e){let n=Oi(t);return n!==Ke&&(n=et),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Va=new Set(["auto","none","0"]);function Da(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!Va.has(r)&&kt(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=Ui(n,i)}class Ea extends vn{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let u=e[c];if(typeof u=="string"&&(u=u.trim(),un(u))){const l=Ii(u,n.current);l!==void 0&&(e[c]=l),c===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Bi.has(s)||e.length!==2)return;const[i,r]=e,o=Jn(i),a=Jn(r);if(o!==a)if(Xn(o)&&Xn(a))for(let c=0;c<e.length;c++){const u=e[c];typeof u=="string"&&(e[c]=parseFloat(u))}else lt[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Aa(e[i]))&&s.push(i);s.length&&Da(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=lt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=lt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{e.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function Ra(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}const $i=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Wi(t){return si(t)&&"offsetHeight"in t}const ts=30,ka=t=>!isNaN(parseFloat(t));class La{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=$.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},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=ka(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 an);const s=this.events[e].add(n);return e==="change"?()=>{s(),E.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){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}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()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=$.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ts)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ts);return oi(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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function vt(t,e){return new La(t,e)}const{schedule:wn}=gi(queueMicrotask,!1),H={x:!1,y:!1};function Ki(){return H.x||H.y}function ja(t){return t==="x"||t==="y"?H[t]?null:(H[t]=!0,()=>{H[t]=!1}):H.x||H.y?null:(H.x=H.y=!0,()=>{H.x=H.y=!1})}function _i(t,e){const n=Ra(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function es(t){return!(t.pointerType==="touch"||Ki())}function Ia(t,e,n={}){const[s,i,r]=_i(t,n),o=a=>{if(!es(a))return;const{target:c}=a,u=e(c,a);if(typeof u!="function"||!c)return;const l=h=>{es(h)&&(u(h),c.removeEventListener("pointerleave",l))};c.addEventListener("pointerleave",l,i)};return s.forEach(a=>{a.addEventListener("pointerenter",o,i)}),r}const Gi=(t,e)=>e?t===e?!0:Gi(t,e.parentElement):!1,An=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Ba=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Fa(t){return Ba.has(t.tagName)||t.tabIndex!==-1}const ne=new WeakSet;function ns(t){return e=>{e.key==="Enter"&&t(e)}}function we(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Na=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=ns(()=>{if(ne.has(n))return;we(n,"down");const i=ns(()=>{we(n,"up")}),r=()=>we(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function ss(t){return An(t)&&!Ki()}function Oa(t,e,n={}){const[s,i,r]=_i(t,n),o=a=>{const c=a.currentTarget;if(!ss(a))return;ne.add(c);const u=e(c,a),l=(d,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),ne.has(c)&&ne.delete(c),ss(d)&&typeof u=="function"&&u(d,{success:p})},h=d=>{l(d,c===window||c===document||n.useGlobalTarget||Gi(c,d.target))},f=d=>{l(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Wi(a)&&(a.addEventListener("focus",u=>Na(u,i)),!Fa(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function zi(t){return si(t)&&"ownerSVGElement"in t}function Ua(t){return zi(t)&&t.tagName==="svg"}const N=t=>!!(t&&t.getVelocity),$a=[...Ni,L,et],Wa=t=>$a.find(Fi(t)),Pn=x.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function is(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Ka(...t){return e=>{let n=!1;const s=t.map(i=>{const r=is(i,e);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let i=0;i<s.length;i++){const r=s[i];typeof r=="function"?r():is(t[i],null)}}}}function _a(...t){return x.useCallback(Ka(...t),t)}class Ga extends x.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=n.offsetParent,i=Wi(s)&&s.offsetWidth||0,r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft,r.right=i-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function za({children:t,isPresent:e,anchorX:n,root:s}){const i=x.useId(),r=x.useRef(null),o=x.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=x.useContext(Pn),c=_a(r,t?.ref);return x.useInsertionEffect(()=>{const{width:u,height:l,top:h,left:f,right:d}=o.current;if(e||!r.current||!u||!l)return;const p=n==="left"?`left: ${f}`:`right: ${d}`;r.current.dataset.motionPopId=i;const y=document.createElement("style");a&&(y.nonce=a);const w=s??document.head;return w.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
2
2
|
[data-motion-pop-id="${i}"] {
|
|
3
3
|
position: absolute !important;
|
|
4
4
|
width: ${u}px !important;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t}from"./iframe-
|
|
1
|
+
import{j as t}from"./iframe-CwpOmiVg.js";import{c as d,g as b}from"./classname-j9cKNBJt.js";import{I as v}from"./icon-CNKWXprF.js";import{t as o}from"./store-BwIebEt6.js";import{T,S as j,a as h,P as $,b as D}from"./blocks-YH_FlHNe.js";import"./preload-helper-PPVm8Dsz.js";import"./colors-_6nFGM3e.js";import"./index-SQXvi4Hn.js";const s=b("tooltip"),e=a=>{const{type:m="default",position:x="top",closeable:g,className:y,children:f,...u}=a;return t.jsxs("div",{className:d(s,`${s}--${m}`,y),...u,children:[t.jsx("div",{className:d(`${s}__arrow`,`${s}__arrow--${x}`,`${s}__arrow--${m}`)}),t.jsx("div",{className:`${s}__content`,children:f}),g&&t.jsx("div",{className:`${s}__close`,children:t.jsx(v,{name:"xmark",size:16})})]})};e.__docgenInfo={description:"",methods:[],displayName:"Tooltip"};const B=()=>{const a=`
|
|
2
2
|
## ${o("common.table.title")}
|
|
3
3
|
| ${o("common.table.name")} | ${o("common.table.type")} | ${o("common.table.required")} | ${o("common.table.description")} |
|
|
4
4
|
| :--- | :--- | :---: | :--- |
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as l}from"./iframe-
|
|
1
|
+
import{j as l}from"./iframe-CwpOmiVg.js";import{c as m,g as n}from"./classname-j9cKNBJt.js";import{g as f}from"./colors-_6nFGM3e.js";const e=n("typography"),u=({component:s,size:a="inherit",weight:o="inherit",color:r,className:t,...i})=>{const p=s||"div";return l.jsx(p,{className:m(e,`${e}__size--${a}`,`${e}__weight--${o}`,t),...i,style:{color:f(r)}})};u.__docgenInfo={description:"",methods:[],displayName:"Typography",props:{size:{defaultValue:{value:"'inherit'",computed:!1},required:!1},weight:{defaultValue:{value:"'inherit'",computed:!1},required:!1}}};export{u as T};
|
package/dist-storybook/assets/{typography.stories-DSt5W_AG.js → typography.stories-1dyN8AoL.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as o}from"./iframe-
|
|
1
|
+
import{j as o}from"./iframe-CwpOmiVg.js";import{T as t}from"./typography-B019AQYH.js";import{t as e}from"./store-BwIebEt6.js";import{T as c,S as l,a as g,P as m,b as d}from"./blocks-YH_FlHNe.js";import"./preload-helper-PPVm8Dsz.js";import"./classname-j9cKNBJt.js";import"./colors-_6nFGM3e.js";import"./index-SQXvi4Hn.js";const f=()=>{const h=`
|
|
2
2
|
## ${e("common.table.title")}
|
|
3
3
|
|
|
4
4
|
### Typography
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as
|
|
1
|
+
import{r as y,j as s}from"./iframe-CwpOmiVg.js";import{c as N,g as U}from"./classname-j9cKNBJt.js";import{u as k}from"./index-Dvav2jPE.js";import{I as j}from"./icon-CNKWXprF.js";import{I as E}from"./image-DfceViqD.js";import{t as e}from"./store-BwIebEt6.js";import{T as W,S as z,a as P,P as B,b as L}from"./blocks-YH_FlHNe.js";import"./preload-helper-PPVm8Dsz.js";import"./index-B-Ksafg0.js";import"./colors-_6nFGM3e.js";import"./index-SQXvi4Hn.js";const R=(o={})=>new Promise((n,l)=>{vsf.chooseImage({...o,success:r=>{n(r)},fail:r=>{l(r)}})});async function q(o){try{const{count:n=1}=o||{},l=await R({count:n,includeBase64:!0}),r=[];return(l.tempFiles||[]).forEach($=>{if(!$.data)return;const C={tempFile:$};r.push(C)}),r}catch(n){return console.error("Failed to upload image",n),[]}}const a=U("uploader"),M=o=>{const n={};return o.value!==void 0&&(n.value=o.value),o.onChange!==void 0&&(n.onChange=o.onChange),n},x=({limit:o,disabled:n,showPreview:l,className:r,includeBase64:F,value:$,onChange:C,...D})=>{const[p,m]=k(M(D),{defaultValue:[],trigger:"onChange"}),S=y.useCallback(async()=>{if(n||o&&(p??[]).length>=o)return;const t=await q({includeBase64:F});m(c=>{const i=[...c??[]];return t.forEach(_=>{o&&i.length>=o||i.unshift(_)}),i})},[o,n,F,p,m]),I=y.useCallback(t=>{m(c=>{const i=[...c];return i.splice(t,1),i})},[m]);return s.jsxs("div",{...D,className:N(a,{[`${a}--disabled`]:n},r),children:[s.jsx("div",{className:`${a}__trigger`,onClick:S,children:s.jsx(j,{name:"plus",type:"outline",size:40,color:n?"alias-object-disabled":"global-neutral-neutral-50"})}),l&&!!p&&s.jsx("div",{className:`${a}__preview-list`,children:p.map((t,c)=>s.jsx(T,{previewSrc:t.tempFile.data,onDelete:()=>I(c)},t.tempFile.path))})]})},T=({previewSrc:o,onDelete:n})=>s.jsxs("div",{className:`${a}__preview-item`,children:[s.jsx(E,{className:`${a}__preview-image`,fit:"cover",src:o}),s.jsx("div",{className:`${a}__delete-button`,onClick:n,children:s.jsx(j,{name:"xmark",size:16,color:"white"})})]});x.__docgenInfo={description:"",methods:[],displayName:"Uploader"};T.__docgenInfo={description:"",methods:[],displayName:"FilePreview",props:{previewSrc:{required:!1,tsType:{name:"string"},description:""},onDelete:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}}};const V=()=>{const o=`
|
|
2
2
|
## ${e("common.table.title")}
|
|
3
3
|
| ${e("common.table.name")} | ${e("common.table.type")} | ${e("common.table.required")} | ${e("common.table.description")} |
|
|
4
4
|
| :--- | :--- | :---: | :--- |
|
|
@@ -10,43 +10,43 @@ import{r as x,j as o}from"./iframe-Crg_lbde.js";import{c as N,g as U}from"./clas
|
|
|
10
10
|
| \`includeBase64\` | \`boolean\` | ${e("common.table.no")} | ${e("components.uploader.argTypes.includeBase64Description")} |
|
|
11
11
|
| \`className\` | \`string\` | ${e("common.table.no")} | ${e("components.uploader.argTypes.classNameDescription")} |
|
|
12
12
|
| \`...props\` | \`ComponentPropsWithRef<'div'>\` | ${e("common.table.no")} | ${e("components.uploader.argTypes.propsDescription")} |
|
|
13
|
-
`;return
|
|
13
|
+
`;return s.jsxs(s.Fragment,{children:[s.jsx(W,{}),s.jsx(z,{}),s.jsx(P,{children:e("components.uploader.description")}),s.jsx(B,{}),s.jsx(P,{children:o}),s.jsx(L,{})]})},oe={title:"Components/Uploader",component:x,parameters:{layout:"padded",docs:{page:V}},tags:["autodocs"],argTypes:{value:{control:!1,description:e("components.uploader.argTypes.valueDescription"),table:{type:{summary:"IFileUpload[]"}}},onChange:{action:"changed",description:e("components.uploader.argTypes.onChangeDescription"),table:{type:{summary:"(files: IFileUpload[]) => void"}}},limit:{control:{type:"number",min:1,max:10,step:1},description:e("components.uploader.argTypes.limitDescription"),table:{type:{summary:"number"}}},disabled:{control:"boolean",description:e("components.uploader.argTypes.disabledDescription"),table:{type:{summary:"boolean"}}},showPreview:{control:"boolean",description:e("components.uploader.argTypes.showPreviewDescription"),table:{type:{summary:"boolean"}}},includeBase64:{control:"boolean",description:e("components.uploader.argTypes.includeBase64Description"),table:{type:{summary:"boolean"}}},className:{control:"text",description:e("components.uploader.argTypes.classNameDescription"),table:{type:{summary:"string"}}}}},d={name:e("components.uploader.stories.default.name"),args:{}},u={name:e("components.uploader.stories.controlled.name"),render:()=>{const[o,n]=y.useState([]);return s.jsx(x,{value:o,onChange:n})}},g={name:e("components.uploader.stories.withLimit.name"),args:{limit:3}},h={name:e("components.uploader.stories.withPreview.name"),args:{showPreview:!0}},v={name:e("components.uploader.stories.disabled.name"),args:{disabled:!0}},b={name:e("components.uploader.stories.singleFile.name"),args:{limit:1,showPreview:!0}},f={name:e("components.uploader.stories.multipleFiles.name"),args:{limit:5,showPreview:!0}},w={name:e("components.uploader.stories.interactive.name"),render:()=>{const[o,n]=y.useState([]);return s.jsxs("div",{children:[s.jsx(x,{value:o,onChange:n,showPreview:!0,limit:3}),s.jsx("p",{style:{marginTop:"16px",fontSize:"14px"},children:e("components.uploader.stories.interactive.filesUploaded",{count:o.length})})]})}};d.parameters={...d.parameters,docs:{...d.parameters?.docs,source:{originalSource:`{
|
|
14
14
|
name: t('components.uploader.stories.default.name'),
|
|
15
15
|
args: {}
|
|
16
|
-
}`,...
|
|
16
|
+
}`,...d.parameters?.docs?.source}}};u.parameters={...u.parameters,docs:{...u.parameters?.docs,source:{originalSource:`{
|
|
17
17
|
name: t('components.uploader.stories.controlled.name'),
|
|
18
18
|
render: () => {
|
|
19
19
|
const [files, setFiles] = useState<IFileUpload[]>([]);
|
|
20
20
|
return <Uploader value={files} onChange={setFiles} />;
|
|
21
21
|
}
|
|
22
|
-
}`,...
|
|
22
|
+
}`,...u.parameters?.docs?.source}}};g.parameters={...g.parameters,docs:{...g.parameters?.docs,source:{originalSource:`{
|
|
23
23
|
name: t('components.uploader.stories.withLimit.name'),
|
|
24
24
|
args: {
|
|
25
25
|
limit: 3
|
|
26
26
|
}
|
|
27
|
-
}`,...
|
|
27
|
+
}`,...g.parameters?.docs?.source}}};h.parameters={...h.parameters,docs:{...h.parameters?.docs,source:{originalSource:`{
|
|
28
28
|
name: t('components.uploader.stories.withPreview.name'),
|
|
29
29
|
args: {
|
|
30
30
|
showPreview: true
|
|
31
31
|
}
|
|
32
|
-
}`,...
|
|
32
|
+
}`,...h.parameters?.docs?.source}}};v.parameters={...v.parameters,docs:{...v.parameters?.docs,source:{originalSource:`{
|
|
33
33
|
name: t('components.uploader.stories.disabled.name'),
|
|
34
34
|
args: {
|
|
35
35
|
disabled: true
|
|
36
36
|
}
|
|
37
|
-
}`,...
|
|
37
|
+
}`,...v.parameters?.docs?.source}}};b.parameters={...b.parameters,docs:{...b.parameters?.docs,source:{originalSource:`{
|
|
38
38
|
name: t('components.uploader.stories.singleFile.name'),
|
|
39
39
|
args: {
|
|
40
40
|
limit: 1,
|
|
41
41
|
showPreview: true
|
|
42
42
|
}
|
|
43
|
-
}`,...
|
|
43
|
+
}`,...b.parameters?.docs?.source}}};f.parameters={...f.parameters,docs:{...f.parameters?.docs,source:{originalSource:`{
|
|
44
44
|
name: t('components.uploader.stories.multipleFiles.name'),
|
|
45
45
|
args: {
|
|
46
46
|
limit: 5,
|
|
47
47
|
showPreview: true
|
|
48
48
|
}
|
|
49
|
-
}`,...f.parameters?.docs?.source}}};
|
|
49
|
+
}`,...f.parameters?.docs?.source}}};w.parameters={...w.parameters,docs:{...w.parameters?.docs,source:{originalSource:`{
|
|
50
50
|
name: t('components.uploader.stories.interactive.name'),
|
|
51
51
|
render: () => {
|
|
52
52
|
const [files, setFiles] = useState<IFileUpload[]>([]);
|
|
@@ -62,4 +62,4 @@ import{r as x,j as o}from"./iframe-Crg_lbde.js";import{c as N,g as U}from"./clas
|
|
|
62
62
|
</p>
|
|
63
63
|
</div>;
|
|
64
64
|
}
|
|
65
|
-
}`,...
|
|
65
|
+
}`,...w.parameters?.docs?.source}}};const se=["Default","Controlled","WithLimit","WithPreview","Disabled","SingleFile","MultipleFiles","Interactive"];export{u as Controlled,d as Default,v as Disabled,w as Interactive,f as MultipleFiles,b as SingleFile,g as WithLimit,h as WithPreview,se as __namedExportsOrder,oe as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./iframe-
|
|
1
|
+
import{j as e}from"./iframe-CwpOmiVg.js";import{useMDXComponents as a}from"./index-C962ZRj_.js";import{M as t,a as p}from"./blocks-YH_FlHNe.js";import"./preload-helper-PPVm8Dsz.js";import"./index-SQXvi4Hn.js";function r(s){const n={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",strong:"strong",...a(),...s.components};return e.jsxs(e.Fragment,{children:[`
|
|
2
2
|
`,`
|
|
3
3
|
`,e.jsx(t,{title:"Router/useAppPause"}),`
|
|
4
4
|
`,e.jsx(n.h1,{id:"useapppause",children:"useAppPause"}),`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./iframe-
|
|
1
|
+
import{j as e}from"./iframe-CwpOmiVg.js";import{useMDXComponents as t}from"./index-C962ZRj_.js";import{M as o,a as p}from"./blocks-YH_FlHNe.js";import"./preload-helper-PPVm8Dsz.js";import"./index-SQXvi4Hn.js";function s(r){const n={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",strong:"strong",...t(),...r.components};return e.jsxs(e.Fragment,{children:[`
|
|
2
2
|
`,`
|
|
3
3
|
`,e.jsx(o,{title:"Router/useAppResume"}),`
|
|
4
4
|
`,e.jsx(n.h1,{id:"useappresume",children:"useAppResume"}),`
|
package/dist-storybook/assets/{use-bottom-tab-bar--DRl-8c4.js → use-bottom-tab-bar-BKcVNDJd.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t}from"./iframe-
|
|
1
|
+
import{j as t}from"./iframe-CwpOmiVg.js";import{useMDXComponents as a}from"./index-C962ZRj_.js";import{M as r,a as i}from"./blocks-YH_FlHNe.js";import"./preload-helper-PPVm8Dsz.js";import"./index-SQXvi4Hn.js";function o(n){const e={code:"code",h1:"h1",h2:"h2",h3:"h3",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...a(),...n.components};return t.jsxs(t.Fragment,{children:[`
|
|
2
2
|
`,`
|
|
3
3
|
`,t.jsx(r,{title:"UI React/useBottomTabBar"}),`
|
|
4
4
|
`,t.jsx(e.h1,{id:"usebottomtabbar",children:"useBottomTabBar"}),`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as n}from"./iframe-
|
|
1
|
+
import{j as n}from"./iframe-CwpOmiVg.js";import{useMDXComponents as i}from"./index-C962ZRj_.js";import{M as c,a as s}from"./blocks-YH_FlHNe.js";import"./preload-helper-PPVm8Dsz.js";import"./index-SQXvi4Hn.js";function t(o){const e={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",strong:"strong",...i(),...o.components};return n.jsxs(n.Fragment,{children:[`
|
|
2
2
|
`,`
|
|
3
3
|
`,n.jsx(c,{title:"UI React/useCustomIconEvent"}),`
|
|
4
4
|
`,n.jsx(e.h1,{id:"usecustomiconevent",children:"useCustomIconEvent"}),`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./iframe-
|
|
1
|
+
import{j as e}from"./iframe-CwpOmiVg.js";import{useMDXComponents as s}from"./index-C962ZRj_.js";import{M as o,a as d}from"./blocks-YH_FlHNe.js";import"./preload-helper-PPVm8Dsz.js";import"./index-SQXvi4Hn.js";function r(i){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...s(),...i.components};return e.jsxs(e.Fragment,{children:[`
|
|
2
2
|
`,`
|
|
3
3
|
`,e.jsx(o,{title:"Router/useDidHide"}),`
|
|
4
4
|
`,e.jsx(n.h1,{id:"usedidhide",children:"useDidHide"}),`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as n}from"./iframe-
|
|
1
|
+
import{j as n}from"./iframe-CwpOmiVg.js";import{useMDXComponents as r}from"./index-C962ZRj_.js";import{M as s,a as t}from"./blocks-YH_FlHNe.js";import"./preload-helper-PPVm8Dsz.js";import"./index-SQXvi4Hn.js";function o(i){const e={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...r(),...i.components};return n.jsxs(n.Fragment,{children:[`
|
|
2
2
|
`,`
|
|
3
3
|
`,n.jsx(s,{title:"Router/useDidShow"}),`
|
|
4
4
|
`,n.jsx(e.h1,{id:"usedidshow",children:"useDidShow"}),`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as n}from"./iframe-
|
|
1
|
+
import{j as n}from"./iframe-CwpOmiVg.js";import{useMDXComponents as r}from"./index-C962ZRj_.js";import{M as i}from"./blocks-YH_FlHNe.js";import"./preload-helper-PPVm8Dsz.js";import"./index-SQXvi4Hn.js";function t(s){const e={a:"a",code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...r(),...s.components};return n.jsxs(n.Fragment,{children:[`
|
|
2
2
|
`,`
|
|
3
3
|
`,n.jsx(i,{title:"Router/useHistories"}),`
|
|
4
4
|
`,n.jsx(e.h1,{id:"usehistories",children:"useHistories"}),`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as n}from"./iframe-
|
|
1
|
+
import{j as n}from"./iframe-CwpOmiVg.js";import{useMDXComponents as o}from"./index-C962ZRj_.js";import{M as i,a as s}from"./blocks-YH_FlHNe.js";import"./preload-helper-PPVm8Dsz.js";import"./index-SQXvi4Hn.js";function e(r){const t={code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...o(),...r.components};return n.jsxs(n.Fragment,{children:[`
|
|
2
2
|
`,`
|
|
3
3
|
`,n.jsx(i,{title:"Router/useHistory"}),`
|
|
4
4
|
`,n.jsx(t.h1,{id:"usehistory",children:"useHistory"}),`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as n}from"./iframe-
|
|
1
|
+
import{j as n}from"./iframe-CwpOmiVg.js";import{useMDXComponents as s}from"./index-C962ZRj_.js";import{M as t,a as i}from"./blocks-YH_FlHNe.js";import"./preload-helper-PPVm8Dsz.js";import"./index-SQXvi4Hn.js";function a(g){const e={code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",pre:"pre",strong:"strong",...s(),...g.components};return n.jsxs(n.Fragment,{children:[`
|
|
2
2
|
`,`
|
|
3
3
|
`,n.jsx(t,{title:"Locale/useLanguage"}),`
|
|
4
4
|
`,n.jsx(e.h1,{id:"uselanguage",children:"useLanguage"}),`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./iframe-
|
|
1
|
+
import{j as e}from"./iframe-CwpOmiVg.js";import{useMDXComponents as r}from"./index-C962ZRj_.js";import{M as s,a as o}from"./blocks-YH_FlHNe.js";import"./preload-helper-PPVm8Dsz.js";import"./index-SQXvi4Hn.js";function t(i){const n={code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...r(),...i.components};return e.jsxs(e.Fragment,{children:[`
|
|
2
2
|
`,`
|
|
3
3
|
`,e.jsx(s,{title:"UI React/useLoadMore"}),`
|
|
4
4
|
`,e.jsx(n.h1,{id:"useloadmore",children:"useLoadMore"}),`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as n}from"./iframe-
|
|
1
|
+
import{j as n}from"./iframe-CwpOmiVg.js";import{useMDXComponents as i}from"./index-C962ZRj_.js";import{M as r,a as s}from"./blocks-YH_FlHNe.js";import"./preload-helper-PPVm8Dsz.js";import"./index-SQXvi4Hn.js";function o(e){const t={code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...i(),...e.components};return n.jsxs(n.Fragment,{children:[`
|
|
2
2
|
`,`
|
|
3
3
|
`,n.jsx(r,{title:"Router/useLocation"}),`
|
|
4
4
|
`,n.jsx(t.h1,{id:"uselocation",children:"useLocation"}),`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as n}from"./iframe-
|
|
1
|
+
import{j as n}from"./iframe-CwpOmiVg.js";import{useMDXComponents as r}from"./index-C962ZRj_.js";import{M as s,a as t}from"./blocks-YH_FlHNe.js";import"./preload-helper-PPVm8Dsz.js";import"./index-SQXvi4Hn.js";function i(a){const e={code:"code",h1:"h1",h2:"h2",h3:"h3",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...r(),...a.components};return n.jsxs(n.Fragment,{children:[`
|
|
2
2
|
`,`
|
|
3
3
|
`,n.jsx(s,{title:"Router/useNavigate"}),`
|
|
4
4
|
`,n.jsx(e.h1,{id:"usenavigate",children:"useNavigate"}),`
|
package/dist-storybook/assets/{use-navigation-bar-D5BX6S-r.js → use-navigation-bar-C-h-uIVX.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a}from"./iframe-
|
|
1
|
+
import{j as a}from"./iframe-CwpOmiVg.js";import{useMDXComponents as i}from"./index-C962ZRj_.js";import{M as r,a as o}from"./blocks-YH_FlHNe.js";import"./preload-helper-PPVm8Dsz.js";import"./index-SQXvi4Hn.js";function e(t){const n={code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",pre:"pre",strong:"strong",...i(),...t.components};return a.jsxs(a.Fragment,{children:[`
|
|
2
2
|
`,`
|
|
3
3
|
`,a.jsx(r,{title:"UI React/useNavigationBar"}),`
|
|
4
4
|
`,a.jsx(n.h1,{id:"usenavigationbar",children:"useNavigationBar"}),`
|
package/dist-storybook/assets/{use-navigation-type-Cq7T35ur.js → use-navigation-type-hrwQdqXJ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as n}from"./iframe-
|
|
1
|
+
import{j as n}from"./iframe-CwpOmiVg.js";import{useMDXComponents as t}from"./index-C962ZRj_.js";import{M as o,a as s}from"./blocks-YH_FlHNe.js";import"./preload-helper-PPVm8Dsz.js";import"./index-SQXvi4Hn.js";function r(i){const e={code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...t(),...i.components};return n.jsxs(n.Fragment,{children:[`
|
|
2
2
|
`,`
|
|
3
3
|
`,n.jsx(o,{title:"Router/useNavigationType"}),`
|
|
4
4
|
`,n.jsx(e.h1,{id:"usenavigationtype",children:"useNavigationType"}),`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./iframe-
|
|
1
|
+
import{j as e}from"./iframe-CwpOmiVg.js";import{useMDXComponents as o}from"./index-C962ZRj_.js";import{M as s,a as r}from"./blocks-YH_FlHNe.js";import"./preload-helper-PPVm8Dsz.js";import"./index-SQXvi4Hn.js";function n(t){const a={code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",pre:"pre",strong:"strong",...o(),...t.components};return e.jsxs(e.Fragment,{children:[`
|
|
2
2
|
`,`
|
|
3
3
|
`,e.jsx(s,{title:"UI React/usePageLayout"}),`
|
|
4
4
|
`,e.jsx(a.h1,{id:"usepagelayout",children:"usePageLayout"}),`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./iframe-
|
|
1
|
+
import{j as e}from"./iframe-CwpOmiVg.js";import{useMDXComponents as l}from"./index-C962ZRj_.js";import{M as o,a as s}from"./blocks-YH_FlHNe.js";import"./preload-helper-PPVm8Dsz.js";import"./index-SQXvi4Hn.js";function r(t){const n={code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",pre:"pre",strong:"strong",...l(),...t.components};return e.jsxs(e.Fragment,{children:[`
|
|
2
2
|
`,`
|
|
3
3
|
`,e.jsx(o,{title:"UI React/usePageScroll"}),`
|
|
4
4
|
`,e.jsx(n.h1,{id:"usepagescroll",children:"usePageScroll"}),`
|
package/dist-storybook/assets/{use-pull-to-refresh-BEjtxiFn.js → use-pull-to-refresh-CG2UoiVR.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./iframe-
|
|
1
|
+
import{j as e}from"./iframe-CwpOmiVg.js";import{useMDXComponents as t}from"./index-C962ZRj_.js";import{M as i,a as o}from"./blocks-YH_FlHNe.js";import"./preload-helper-PPVm8Dsz.js";import"./index-SQXvi4Hn.js";function s(r){const n={code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...t(),...r.components};return e.jsxs(e.Fragment,{children:[`
|
|
2
2
|
`,`
|
|
3
3
|
`,e.jsx(i,{title:"UI React/usePullToRefresh"}),`
|
|
4
4
|
`,e.jsx(n.h1,{id:"usepulltorefresh",children:"usePullToRefresh"}),`
|
package/dist-storybook/assets/{use-settings-changed-UaQRSWAg.js → use-settings-changed-CyyTxLz7.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as n}from"./iframe-
|
|
1
|
+
import{j as n}from"./iframe-CwpOmiVg.js";import{useMDXComponents as s}from"./index-C962ZRj_.js";import{M as r,a as h}from"./blocks-YH_FlHNe.js";import"./preload-helper-PPVm8Dsz.js";import"./index-SQXvi4Hn.js";function i(e){const t={code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...s(),...e.components};return n.jsxs(n.Fragment,{children:[`
|
|
2
2
|
`,`
|
|
3
3
|
`,n.jsx(r,{title:"UI React/useSettingsChanged"}),`
|
|
4
4
|
`,n.jsx(t.h1,{id:"usesettingschanged",children:"useSettingsChanged"}),`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as n}from"./iframe-
|
|
1
|
+
import{j as n}from"./iframe-CwpOmiVg.js";import{useMDXComponents as s}from"./index-C962ZRj_.js";import{M as i}from"./blocks-YH_FlHNe.js";import"./preload-helper-PPVm8Dsz.js";import"./index-SQXvi4Hn.js";function r(t){const e={code:"code",h1:"h1",h2:"h2",h3:"h3",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...s(),...t.components};return n.jsxs(n.Fragment,{children:[`
|
|
2
2
|
`,`
|
|
3
3
|
`,n.jsx(i,{title:"Locale/useTranslate"}),`
|
|
4
4
|
`,n.jsx(e.h1,{id:"usetranslate",children:"useTranslate"}),`
|
|
@@ -530,7 +530,7 @@
|
|
|
530
530
|
}
|
|
531
531
|
</style>
|
|
532
532
|
|
|
533
|
-
<script type="module" crossorigin src="./assets/iframe-
|
|
533
|
+
<script type="module" crossorigin src="./assets/iframe-CwpOmiVg.js"></script>
|
|
534
534
|
<link rel="modulepreload" crossorigin href="./assets/preload-helper-PPVm8Dsz.js">
|
|
535
535
|
<link rel="stylesheet" crossorigin href="./assets/iframe-BBKyXin_.css">
|
|
536
536
|
</head>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"generatedAt":
|
|
1
|
+
{"generatedAt":1773994588822,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"knownPackages":{"testPackages":{"@storybook/addon-vitest":"10.2.13","@vitest/browser":"3.2.4","@vitest/coverage-v8":"4.0.18","playwright":"1.58.2","vitest":"4.0.18"},"stylingPackages":{"sass":"^1.92.1"},"stateManagementPackages":{"zustand":"^5.0.9"}},"hasRouterPackage":false,"packageManager":{"type":"pnpm","version":"10.20.0","agent":"pnpm","nodeLinker":"undefined"},"preview":{"usesGlobals":true},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","portableStoriesFileCount":0,"applicationFileCount":57,"storybookVersion":"10.2.13","storybookVersionSpecifier":"^10.2.10","language":"typescript","storybookPackages":{"@storybook/addon-vitest":{"version":"10.2.13"},"@storybook/react-vite":{"version":"10.2.13"},"eslint-plugin-storybook":{"version":"9.1.16"},"storybook":{}},"addons":{"@storybook/addon-docs":{"version":"10.2.13"},"@storybook/addon-a11y":{"version":"10.2.13"}},"packageJsonType":"module"}
|
package/package.json
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./iframe-Crg_lbde.js";import{useMDXComponents as i}from"./index-B24pfkXD.js";import{M as m}from"./blocks-CB7UwFa4.js";import{I as e}from"./icon-list-grid-CSnpdoAW.js";import"./preload-helper-PPVm8Dsz.js";import"./index-CdnALcTP.js";import"./icon-Cc9W858e.js";import"./colors-_6nFGM3e.js";import"./classname-Bl5epEs-.js";import"./search-field-zl4ROLfn.js";import"./index-hDlmuyu2.js";import"./index-B-Ksafg0.js";import"./text-field-CqJG0bIl.js";import"./omit-CRXr8Lio.js";import"./input-wrapper-Gd3QJKqj.js";import"./label-zfqCJTGJ.js";import"./skeleton-BVLpHxKT.js";import"./typography-CMIMyivt.js";import"./button-BLW8SOpg.js";function r(o){const n={h1:"h1",p:"p",...i(),...o.components};return t.jsxs(t.Fragment,{children:[`
|
|
2
|
-
`,`
|
|
3
|
-
`,t.jsx(m,{title:"UI React (AI)/Icons"}),`
|
|
4
|
-
`,t.jsx(n.h1,{id:"icons",children:"Icons"}),`
|
|
5
|
-
`,t.jsx(n.p,{children:"Dưới đây là toàn bộ icon có sẵn. Gõ vào ô tìm kiếm để lọc theo tên."}),`
|
|
6
|
-
`,t.jsx(e,{})]})}function R(o={}){const{wrapper:n}={...i(),...o.components};return n?t.jsx(n,{...o,children:t.jsx(r,{...o})}):r(o)}export{R as default};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./iframe-Crg_lbde.js";import{useMDXComponents as i}from"./index-B24pfkXD.js";import{M as m}from"./blocks-CB7UwFa4.js";import{I as e}from"./icon-list-grid-CSnpdoAW.js";import"./preload-helper-PPVm8Dsz.js";import"./index-CdnALcTP.js";import"./icon-Cc9W858e.js";import"./colors-_6nFGM3e.js";import"./classname-Bl5epEs-.js";import"./search-field-zl4ROLfn.js";import"./index-hDlmuyu2.js";import"./index-B-Ksafg0.js";import"./text-field-CqJG0bIl.js";import"./omit-CRXr8Lio.js";import"./input-wrapper-Gd3QJKqj.js";import"./label-zfqCJTGJ.js";import"./skeleton-BVLpHxKT.js";import"./typography-CMIMyivt.js";import"./button-BLW8SOpg.js";function r(o){const n={h1:"h1",p:"p",...i(),...o.components};return t.jsxs(t.Fragment,{children:[`
|
|
2
|
-
`,`
|
|
3
|
-
`,t.jsx(m,{title:"UI React/Icons"}),`
|
|
4
|
-
`,t.jsx(n.h1,{id:"icons",children:"Icons"}),`
|
|
5
|
-
`,t.jsx(n.p,{children:"Dưới đây là toàn bộ icon có sẵn. Gõ vào ô tìm kiếm để lọc theo tên."}),`
|
|
6
|
-
`,t.jsx(e,{})]})}function R(o={}){const{wrapper:n}={...i(),...o.components};return n?t.jsx(n,{...o,children:t.jsx(r,{...o})}):r(o)}export{R as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as i,_ as m,r as t}from"./blocks-CB7UwFa4.js";import"./preload-helper-PPVm8Dsz.js";import"./iframe-Crg_lbde.js";import"./index-CdnALcTP.js";var o=m(t(),1),s=(0,o.default)(2)(async(e,r)=>e===!1?r:i(r));export{s as formatter};
|