import{Et as e,Jt as n,Wt as o,Xt as a,Zt as r,en as t,jt as i,yt as s}from"./630ba094.L_X-5TXi.js";import"./app.BAntcNCf.js";import{$O as l,$k as c,Ak as d,BO as u,EA as f,GO as m,HA as p,HO as b,Hk as g,MO as v,Mk as y,Nk as k,Pk as x,QO as h,RO as C,UA as A,UO as _,Uk as w,VO as S,WO as P,Xk as I,YA as j,ZO as z,Zk as R,aA as O,ak as F,dk as q,fA as B,gA as N,ik as H,ky as T,lA as $,nk as L,ok as W,rk as M,tA as E,zO as G}from"./6ec9a0fa.rdcQt2v8.js";var U=Object.keys(O).sort((e,n)=>O[e]-O[n]),V="transparent";function D(e){return Boolean(e.viewportInlineSize||e.hover||e.focus)}function Z(e){const{hover:n,focus:o}=e;return n&&o?"hoverFocus":n?"hover":o?"focus":void 0===n&&void 0===o?"plain":void 0}function X(e,n){if(void 0===e.viewportInlineSize)return!0;const{min:o}=e.viewportInlineSize;return void 0!==o&&o in O&&O[o]<=O[n]}function J(e){if(U.every(n=>void 0===e[n]))return;const n=e.base??V,o=[];let a=n;for(const r of U){if("base"===r)continue;const n=e[r]??V;n!==a&&(o.push(`(inline-size >= ${r}) ${M(n)}`),a=n)}return 0===o.length?n:`@media ${o.join(", ")}, ${M(n)}`}function Q(e){if(void 0===e)return{};if(!F(e))return{background:e};const{default:n,conditionals:o}=e,a={plain:{},hover:{},focus:{},hoverFocus:{}};for(const s of U)for(const e of o??[]){const n=e?.conditions;if(!n||!D(n)||!X(n,s))continue;const o=Z(n);void 0!==o&&(a[o][s]=e.value)}const r={},t={};for(const s of U)r[s]=a.plain[s]??n,t[s]=a.hover[s]??a.focus[s]??a.hoverFocus[s]??r[s];return{background:J(r),backgroundHoverAndFocus:(i=t,U.some(e=>i[e]!==r[e])?J(t):void 0)};var i}function Y(e){return"number"==typeof e?w(e)??"":"fitContent"===e||"fill"===e?e:g(e)?w(e)??"":e}function K(e,n=!1,o=!1){return void 0===e||"fill"===e?o?"1fr":"minmax(0, 1fr)":"auto"===e?"minmax(auto, max-content)":n?`minmax(0, ${w(e)??"1fr"})`:o?w(e)??"1fr":`minmax(0, ${w(e)??"1fr"})`}function ee(e,n=!1,o=!1){return Array.isArray(e)?e.map(e=>K(e,n,o)).join(" "):K(e,n,o)}function ne(e,n=!1,o=!1){return Array.isArray(e)?"1fr":K(e,n,o)}function oe(e){return`span ${e}`}var ae,re={backgroundImage:_,blockSize:Y,gridAutoColumns:ne,gridAutoRows:e=>ne(e,!0),gridColumn:oe,gridRow:oe,gridTemplateColumns:ee,gridTemplateRows:e=>ee(e,!0),inlineSize:Y,maxBlockSize:Y,maxInlineSize:Y,minBlockSize:Y,minInlineSize:Y},{useConditionalStyle:te}=function({staticPropertiesValues:e,dynamicPropertiesTransform:n}){function o(e,n={}){const o=new Map,t=(e,t)=>{const i=function(e,n){return function(e){return null!==e&&"object"==typeof e&&x.conditions.conditionNames.some(n=>n in e)}(n)&&Object.values(n).some(G)?Object.entries(n).reduce((n,[o,r])=>{const t=a(e,r);return i=n,s=(z(e)??[]).reduce((e,n)=>({...e,[n]:{[o]:t[n]}}),{}),Object.keys(s).reduce((e,n)=>{const o=i[n],a=s[n];return{...e,[n]:{..."object"==typeof o&&o,..."object"==typeof a&&a}}},{});var i,s},{}):a(e,n)}(e,function(e,n,o){if(F(n)){const{conditionals:a,default:t}=n;return a.length>0&&(l(e)||h(e))?a.map(({conditions:n,value:a})=>({conditions:n,value:r({property:e,value:a},o)})).map(s).reduce((e,n)=>({...e,...n}),{...t&&{base:r({property:e,value:t},o)}}):r({property:e,value:t},o)}return r({property:e,value:n},o)}(e,t,n));for(const[n,a]of Object.entries(i))o.set(n,a)};for(const a of L)a in e&&t(a,e[a]);for(const[a,r]of Object.entries(e))L.includes(a)||t(a,r);const i={};return o.forEach((e,n)=>{n in S&&e===S[n]||(i[n]=e)}),i}function a(e,n){const o=C(n),a=z(e)??[];return a.length>0?a.reduce((e,a,r)=>({...e,[a]:o?n[r]:n}),{}):{[e]:n}}function r(o,a){return function(e){return e.property in n}(o)?function(e,o,{transforms:a}){if(void 0!==o){const r=a?.[e]??n[e];if(void 0===r)return;return r(o)}}(o.property,o.value,a):function(n){return n.property in e}(o)?function(n,o,{transforms:a}){const r=e[n],t=e=>{const o=a?.[n]?.(e);return r[o??e]};if(u(o)){if(2===o.length){const[e,n]=o;return[t(e),t(n),t(e),t(n)]}return o.map(t)}return t(o)}(o.property,o.value,a):void 0}function s({conditions:e,value:n}){return e.viewportInlineSize?{[e.viewportInlineSize.min]:n}:{}}function c(e,n){return Object.keys(e).filter(e=>!(e in n)).reduce((n,o)=>Object.assign(n,{[o]:e[o]}),{})}return{useConditionalStyle:function(a,r){return t(()=>{const t=o(a,{...r}),s=c(t,n),l=c(t,e),d=k(s),{className:u,style:f}=H(l);return{className:i(d,u),style:f}},[a,r])},resolveConditionalProps:o}}({staticPropertiesValues:{alignContent:{start:"start",center:"center",end:"end"},alignItems:{start:"start",center:"center",end:"end",baseline:"baseline"},backgroundColor:{base:"base",baseSpecified:"baseSpecified",transparent:"transparent",subdued:"subdued"},backgroundColorHoverAndFocus:{base:"base",transparent:"transparent",subdued:"subdued"},backgroundFit:{contain:"contain",cover:"cover"},backgroundPosition:{bottom:"bottom",center:"center",left:"left",right:"right",top:"top"},backgroundRepeat:{repeat:"repeat",noRepeat:"noRepeat"},border:{none:"none",base:"base",dotted:"dotted",dashed:"dashed"},borderRadius:{none:"none",base:"base",small:"small",large:"large",fullyRounded:"fullyRounded",max:"max",tight:"small",loose:"large"},borderWidth:{base:"base",medium:"large100",thick:"large200"},boxShadow:{none:"none",extraSmall:"extraSmall",small:"small",base:"base",large:"large",extraLarge:"extraLarge"},display:{block:"block",inline:"inline",flex:"flex",inlineFlex:"inlineFlex",grid:"grid",inlineGrid:"inlineGrid",none:"none"},gap:{none:"none",small500:"small500",small400:"small400",small300:"small300",small200:"small200",small100:"small100",base:"base",large100:"large100",large200:"large200",large300:"large300",large400:"large400",large500:"large500",extraTight:"small400",tight:"small200",loose:"large200",extraLoose:"large500"},gridAutoFlow:{row:"row",column:"column"},justifyContent:{start:"start",center:"center",end:"end"},justifyItems:{start:"start",center:"center",end:"end"},objectFit:{contain:"contain",cover:"cover",fill:"fill"},padding:{small500:"small500",small400:"small400",small300:"small300",small200:"small200",small100:"small100",none:"none",large100:"large100",large200:"large200",large300:"large300",large400:"large400",large500:"large500",base:"base",extraTight:"small400",tight:"small200",loose:"large200",extraLoose:"large500"},position:{absolute:"absolute",relative:"relative",sticky:"sticky"},zIndex:{portal:"portal"}},dynamicPropertiesTransform:re}),ie={Pressable:"_1xqelvi1 _1xqelvi0 _1fragemyf _1fragemws _1fragem129 _1fragemym _1fragem12e",withAlignment:"_1xqelvi5 _1fragem73",appearanceVariant:{accent:"_1xqelvi8 _1xqelvi6 _1fragemxs",base:"_1xqelvi9 _1xqelvi7 _1fragemxy"},PressableContentWrapper:"_1xqelvi2",resetDefaultBlockAlignment:"_1xqelvi4 _1xqelvi3 _1fragem64 _1fragem1y",overflowHidden:"_1xqelvib _1xqelvia _1fragemup _1fragemv4",inert:"_1xqelvic _1fragemz2"},se=N((ae=function(n){const o=e(function({disableGlobalBranding:e,...o},a){const{global:{cornerRadius:r}}=q(),t=e?o:{...o,cornerRadius:r??o.cornerRadius};return s(n,{...t,ref:a})});return o.displayName=`GlobalBrandedComponent(${n.displayName||n.name||"Component"})`,o}(c(e(function({accessibilityLabel:e,accessibilityRole:n="button",appearance:a,background:r,backgroundFit:t,backgroundImage:l,backgroundPosition:c,backgroundRepeat:d,border:u,className:p,borderRadius:g,borderWidth:y,blockAlignment:k,children:x,controlId:h,cornerRadius:C,disabled:A=!1,display:_,expanded:w,id:S,inlineAlignment:z,loading:O,maxInlineSize:F,minInlineSize:q,minBlockSize:B,overflow:N,onBlur:H,onPointerDown:$,onFocus:L,onPointerEnter:M,onPointerLeave:G,onPress:U,onPointerUp:V,padding:D,pressed:Z,to:X,...J},Y){o(()=>{"expandableControl"!==n||void 0!==w&&void 0!==h||console.warn('When has accessibilityRole="expandableControl" it should also have "controlId" and "expanded" defined'),"toggle"===n&&void 0===Z&&console.warn('When has accessibilityRole="toggle" it should also have "pressed" defined')},[n,Z,h,w]);const K=f(),ee=j(),ne=k||z,{background:oe,backgroundHoverAndFocus:ae}=Q(r),{className:re}=v({backgroundColor:oe,backgroundColorHoverAndFocus:ae}),{className:se,style:le}=te({alignItems:z,justifyContent:k,backgroundFit:t,backgroundImage:l,backgroundPosition:c,backgroundRepeat:d,border:u,borderRadius:C??g,borderWidth:y,display:_??"block",maxInlineSize:F,minInlineSize:q,minBlockSize:B,padding:D},{transforms:{display:e=>ne?m(e):P(e)}}),ce=!_&&!ne,de=i(ie.Pressable,ne&&ie.withAlignment,se,re,ce&&ie.resetDefaultBlockAlignment,"hidden"===N&&ie.overflowHidden,ie.appearanceVariant[a??"base"],K&&ie.inert,p),ue="expandableControl"===n||"toggle"===n?"button":n,fe=W(),me=E(Y),pe=R(ee,{onClick:()=>{"function"==typeof U&&U()},onBlur:()=>{"function"==typeof H&&H()},onFocus:()=>{"function"==typeof L&&L()},onMouseEnter:()=>{"function"==typeof M&&M()},onMouseLeave:()=>{"function"==typeof G&&G()},onMouseDown:e=>{"function"==typeof $&&0===e.button&&$()},onMouseUp:()=>{"function"==typeof V&&V()}}),be=I(ee,{"aria-controls":"expandableControl"===n?h:void 0,"aria-expanded":"expandableControl"===n?w:void 0}),{active:ge}=ee??{},ve=O?"assertive":void 0,ye=!!K||void 0,ke={id:S,className:de,style:le,tabIndex:K?-1:void 0,...be,...pe,...J},xe=ce?s("span",{className:ie.PressableContentWrapper,children:x}):x,he=ge??Z;return s(b.Provider,{value:!0,children:X?s(T,{...ke,href:X,ref:me,ariaBusy:O,ariaLive:ve,ariaLabel:e,ariaHidden:ye,children:xe}):s("button",{ref:me,type:ue,disabled:A||O,form:"submit"===n&&fe?.nested?fe.id:void 0,"aria-pressed":"toggle"===n||"expandableControl"===n?he:void 0,"aria-busy":O,"aria-live":ve,"aria-label":e,"aria-hidden":ye,...ke,children:xe})})}))),e((e,t)=>{const{activateTarget:i,activateAction:l,onPress:c,overlay:u}=e,[f,m]=r(!1),[b,g]=r(""),v=p(),k=$(!i||"auto"!==l&&"copy"!==l&&null!=l?void 0:i),x=B(k)&&null!=k?.clipboard.text?k:void 0,h=a(async()=>{c?.();const{text:e,onCopy:n,onCopyError:o}=x.clipboard;let a=!1;try{await d(e),a=!0}catch(r){console.warn("ClipboardItem: failed to copy text to clipboard",r)}finally{if(a){const e=v("clipboardCopied");g(e),m(!0),A({content:e}),n?.()}else{const e=v("clipboardFailedToCopy");g(e),m(!0),A({content:e}),o?.()}_(),C.current=setTimeout(()=>{m(!1)},2500)}},[c,x,v]),C=n(),_=()=>{C.current&&clearTimeout(C.current)};o(()=>()=>_(),[]);const w=x?h:c,S=x?s(y,{open:f,children:b}):u;return s(ae,{...e,onPress:w,overlay:S,ref:t})})));export{ee as a,oe as i,te as n,Q as o,ne as r,se as t};